fix(install): Copy embedded formulas to new installations

When `gt install` creates a new HQ, formulas were not being provisioned
to `.beads/formulas/`. This embeds the formula library into the gt binary
and copies them during installation.

- Add go:generate directive to copy formulas from .beads/formulas/
- Add internal/formula/embed.go with ProvisionFormulas() function
- Call ProvisionFormulas() from runInstall() after beads init
- Add generate target to Makefile (build depends on it)
- Add TestInstallFormulasProvisioned integration test
- Log warning if formula stat fails with unexpected error

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
PV
2026-01-03 13:18:14 -08:00
parent 5186cd90be
commit 4c9bc36d61
5 changed files with 133 additions and 2 deletions

3
.gitignore vendored
View File

@@ -33,3 +33,6 @@ state.json
# Clone-specific CLAUDE.md (regenerated locally per clone)
CLAUDE.md
# Generated by go:generate from .beads/formulas/
internal/formula/formulas/