feat: install herdr agent integrations after the install pipeline

herdr hook files are herdr-managed, so none is committed. The installer ends
by running `herdr integration install <agent>` for each of claude, codex, pi
and omp that is present, skipping any herdr already reports current and
saying nothing when herdr is absent. Seal and fake learn herdr; tests and two
mutations cover install, idempotence, failure and absence (G-AG-5).
This commit is contained in:
bcherb2 committed 2026-11-18 02:13:05 -05:00
1 parent f8b17a79d3
commit 4e2452e994
6 files changed
+92 -1

No files matched your search

+15
View File
@@ -142,6 +142,21 @@ go)
exit 0 ;;
esac
exit 0 ;;
herdr)
# `herdr integration status` lists one `<agent>: <state> (...)` line per
# integration; FAKE_HERDR_CURRENT names the agents to report `current`,
# every other one is `not installed`. `install` is only logged.
case ${1:-}:${2:-} in
integration:status)
for _a in pi omp claude codex copilot; do
case " ${FAKE_HERDR_CURRENT:-} " in
*" $_a "*) printf '%s: current (v11) (%s/.fake/%s)\n' "$_a" "$HOME" "$_a" ;;
*) printf '%s: not installed (%s/.fake/%s)\n' "$_a" "$HOME" "$_a" ;;
esac
done ;;
integration:install) [ "$mode" = install ] && exit 1 ;;
esac
exit 0 ;;
fzf)
# The picker's own fzf, and the only fake here whose ARGV is the thing
# under test. `--bind` strings are built across a dozen continued lines, so