Summary
Followup to #1485. Two related issues with the genie-hook thin-client native binary:
- Missing from standard build artifact —
bun run build does not produce dist/genie-hook. Operators must manually run bun build --compile src/hooks/dispatch-client.ts --outfile dist/genie-hook to get it.
- Compiled size is 99,301,083 bytes (~95MB) — vs the wish's stated gate of
<=20MB.
Both make the daemon-mode hook dispatch unusable as a production default: it's not built by default, and the manual build is 5x oversize.
Repro
cd /home/genie/workspace/repos/genie/.worktrees/dogfood-session
bun run build
ls dist/genie-hook # absent
bun build --compile src/hooks/dispatch-client.ts --outfile dist/genie-hook
ls -la dist/genie-hook
# 99,301,083 bytes
Evidence: /home/genie/workspace/agents/genie/.genie/agents/dog-fooder/state/evidence/batch-2034c4f3
Why this matters
src/hooks/inject.ts (per #1485 commit body): "buildDispatchCommand() now prefers the compiled binary at GENIE_HOOK_BIN, ~/.genie/bin/genie-hook, or repo dist/genie-hook (in that order); falls back to the legacy bun .../genie.ts hook dispatch". Since the binary isn't built, every install falls back to the legacy bun fork. Same outcome as #1490 (UDS not created in detached daemon), from a different angle.
Acceptance
Summary
Followup to #1485. Two related issues with the
genie-hookthin-client native binary:bun run builddoes not producedist/genie-hook. Operators must manually runbun build --compile src/hooks/dispatch-client.ts --outfile dist/genie-hookto get it.<=20MB.Both make the daemon-mode hook dispatch unusable as a production default: it's not built by default, and the manual build is 5x oversize.
Repro
Evidence:
/home/genie/workspace/agents/genie/.genie/agents/dog-fooder/state/evidence/batch-2034c4f3Why this matters
src/hooks/inject.ts(per #1485 commit body): "buildDispatchCommand() now prefers the compiled binary at GENIE_HOOK_BIN, ~/.genie/bin/genie-hook, or repo dist/genie-hook (in that order); falls back to the legacy bun .../genie.ts hook dispatch". Since the binary isn't built, every install falls back to the legacy bun fork. Same outcome as #1490 (UDS not created in detached daemon), from a different angle.Acceptance
bun run buildproducesdist/genie-hookas part of the standard artifact set@automagik/geniepackage includesdist/genie-hookso end-users get daemon-mode dispatch by default