beads/cmd/bd/setup
Matt Wilkie 5ea0eaa16d feat: add OpenCode recipe to bd setup
Add OpenCode as a built-in TypeSection recipe that injects a beads
workflow section into AGENTS.md, following the same pattern as the
existing factory and codex recipes.

- Register 'opencode' in BuiltinRecipes (internal/recipes/recipes.go)
- Add cmd/bd/setup/opencode.go with Install/Check/Remove functions
- Wire up 'bd setup opencode' subcommand in cmd/bd/setup.go
- Add tests for install and check modes

Supports: bd setup opencode, bd setup opencode --check,
          bd setup opencode --remove

Fixes steveyegge/beads#1321

Amp-Thread-ID: https://ampcode.com/threads/T-019cb569-6bbd-73fd-85a8-167984100b35
Co-authored-by: Amp <amp@ampcode.com>
2026-03-03 13:39:56 -07:00
..
agents.go feat(setup): add Mux setup recipe with layered AGENTS and managed hooks 2026-02-22 15:33:06 -08:00
aider.go docs(setup): use --claim in generated agent templates 2026-02-24 03:29:33 +03:00
aider_test.go Add tests for setup package (28.4% → 53.8% coverage) 2025-12-23 22:40:16 -08:00
claude.go fix(setup): avoid null values in Claude settings hooks (GH#955) 2026-01-09 23:07:46 -08:00
claude_test.go fix(setup): avoid null values in Claude settings hooks (GH#955) 2026-01-09 23:07:46 -08:00
codex.go feat(setup): add Codex CLI setup recipe (#1243) 2026-01-21 21:50:01 -08:00
codex_test.go feat(setup): add Codex CLI setup recipe (#1243) 2026-01-21 21:50:01 -08:00
constants.go feat: add context optimization features for AI agents (#297) 2025-11-12 10:48:36 -08:00
cursor.go docs(setup): use --claim in generated agent templates 2026-02-24 03:29:33 +03:00
cursor_test.go Add tests for setup package (28.4% → 53.8% coverage) 2025-12-23 22:40:16 -08:00
exit.go refactor: standardize error handling with FatalError wrappers (bd-qioh) 2026-02-21 16:27:09 -08:00
factory.go feat(setup): add Codex CLI setup recipe (#1243) 2026-01-21 21:50:01 -08:00
factory_test.go fix: move Landing the Plane inside beads integration markers (#2265) 2026-03-02 14:01:35 -08:00
gemini.go feat: add bd setup gemini for Gemini CLI integration (#845) 2026-01-02 00:02:38 -08:00
gemini_test.go test: add unit tests for bd setup gemini 2026-01-02 00:19:14 -08:00
junie.go docs(setup): use --claim in generated agent templates 2026-02-24 03:29:33 +03:00
junie_test.go feat: add Junie agent integration 2026-01-13 08:41:25 -06:00
mux.go feat(setup): add Mux setup recipe with layered AGENTS and managed hooks 2026-02-22 15:33:06 -08:00
mux_test.go feat(setup): add Mux setup recipe with layered AGENTS and managed hooks 2026-02-22 15:33:06 -08:00
opencode.go feat: add OpenCode recipe to bd setup 2026-03-03 13:39:56 -07:00
opencode_test.go feat: add OpenCode recipe to bd setup 2026-03-03 13:39:56 -07:00
setup_test_helpers.go test: refactor factory setup for coverage (#790) 2025-12-29 14:15:56 -08:00
utils.go fix(setup): preserve symlinks in atomicWriteFile 2025-12-20 20:15:55 -05:00
utils_test.go fix(setup): preserve symlinks in atomicWriteFile 2025-12-20 20:15:55 -05:00