@mindfoldhq/trellis 0.4.0 → 0.5.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +0 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/init.d.ts +0 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +2 -4
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/update.d.ts +5 -0
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +83 -22
- package/dist/commands/update.js.map +1 -1
- package/dist/configurators/antigravity.d.ts +3 -4
- package/dist/configurators/antigravity.d.ts.map +1 -1
- package/dist/configurators/antigravity.js +17 -10
- package/dist/configurators/antigravity.js.map +1 -1
- package/dist/configurators/claude.d.ts +5 -28
- package/dist/configurators/claude.d.ts.map +1 -1
- package/dist/configurators/claude.js +30 -51
- package/dist/configurators/claude.js.map +1 -1
- package/dist/configurators/codebuddy.d.ts +6 -7
- package/dist/configurators/codebuddy.d.ts.map +1 -1
- package/dist/configurators/codebuddy.js +23 -51
- package/dist/configurators/codebuddy.js.map +1 -1
- package/dist/configurators/codex.d.ts +3 -6
- package/dist/configurators/codex.d.ts.map +1 -1
- package/dist/configurators/codex.js +29 -12
- package/dist/configurators/codex.js.map +1 -1
- package/dist/configurators/copilot.d.ts +6 -5
- package/dist/configurators/copilot.d.ts.map +1 -1
- package/dist/configurators/copilot.js +42 -13
- package/dist/configurators/copilot.js.map +1 -1
- package/dist/configurators/cursor.d.ts +6 -1
- package/dist/configurators/cursor.d.ts.map +1 -1
- package/dist/configurators/cursor.js +22 -45
- package/dist/configurators/cursor.js.map +1 -1
- package/dist/configurators/droid.d.ts +6 -1
- package/dist/configurators/droid.d.ts.map +1 -1
- package/dist/configurators/droid.js +23 -41
- package/dist/configurators/droid.js.map +1 -1
- package/dist/configurators/gemini.d.ts +8 -4
- package/dist/configurators/gemini.d.ts.map +1 -1
- package/dist/configurators/gemini.js +28 -47
- package/dist/configurators/gemini.js.map +1 -1
- package/dist/configurators/index.d.ts +1 -1
- package/dist/configurators/index.d.ts.map +1 -1
- package/dist/configurators/index.js +142 -98
- package/dist/configurators/index.js.map +1 -1
- package/dist/configurators/kilo.d.ts +3 -4
- package/dist/configurators/kilo.d.ts.map +1 -1
- package/dist/configurators/kilo.js +19 -46
- package/dist/configurators/kilo.js.map +1 -1
- package/dist/configurators/kiro.d.ts +4 -4
- package/dist/configurators/kiro.d.ts.map +1 -1
- package/dist/configurators/kiro.js +18 -14
- package/dist/configurators/kiro.js.map +1 -1
- package/dist/configurators/opencode.d.ts +3 -28
- package/dist/configurators/opencode.d.ts.map +1 -1
- package/dist/configurators/opencode.js +23 -48
- package/dist/configurators/opencode.js.map +1 -1
- package/dist/configurators/qoder.d.ts +6 -4
- package/dist/configurators/qoder.d.ts.map +1 -1
- package/dist/configurators/qoder.js +20 -47
- package/dist/configurators/qoder.js.map +1 -1
- package/dist/configurators/shared.d.ts +66 -3
- package/dist/configurators/shared.d.ts.map +1 -1
- package/dist/configurators/shared.js +251 -3
- package/dist/configurators/shared.js.map +1 -1
- package/dist/configurators/windsurf.d.ts +3 -4
- package/dist/configurators/windsurf.d.ts.map +1 -1
- package/dist/configurators/windsurf.js +17 -10
- package/dist/configurators/windsurf.js.map +1 -1
- package/dist/configurators/workflow.d.ts +0 -3
- package/dist/configurators/workflow.d.ts.map +1 -1
- package/dist/configurators/workflow.js +1 -7
- package/dist/configurators/workflow.js.map +1 -1
- package/dist/migrations/manifests/0.4.0.json +1 -1
- package/dist/migrations/manifests/0.5.0-beta.0.json +1644 -0
- package/dist/templates/claude/agents/check.md +2 -29
- package/dist/templates/claude/agents/research.md +70 -52
- package/dist/templates/claude/index.d.ts +5 -37
- package/dist/templates/claude/index.d.ts.map +1 -1
- package/dist/templates/claude/index.js +3 -42
- package/dist/templates/claude/index.js.map +1 -1
- package/dist/templates/claude/settings.json +3 -4
- package/dist/templates/{iflow → codebuddy}/agents/check.md +3 -30
- package/dist/templates/{iflow → codebuddy}/agents/implement.md +1 -1
- package/dist/templates/codebuddy/agents/research.md +138 -0
- package/dist/templates/codebuddy/index.d.ts +6 -16
- package/dist/templates/codebuddy/index.d.ts.map +1 -1
- package/dist/templates/codebuddy/index.js +6 -36
- package/dist/templates/codebuddy/index.js.map +1 -1
- package/dist/templates/codebuddy/settings.json +59 -0
- package/dist/templates/codex/agents/research.toml +50 -16
- package/dist/templates/codex/config.toml +10 -0
- package/dist/templates/codex/hooks/session-start.py +65 -29
- package/dist/templates/codex/hooks.json +11 -0
- package/dist/templates/codex/index.d.ts +0 -1
- package/dist/templates/codex/index.d.ts.map +1 -1
- package/dist/templates/codex/index.js +1 -8
- package/dist/templates/codex/index.js.map +1 -1
- package/dist/templates/common/commands/continue.md +51 -0
- package/dist/templates/common/commands/finish-work.md +32 -0
- package/dist/templates/common/commands/start.md +56 -0
- package/dist/templates/common/index.d.ts +28 -0
- package/dist/templates/common/index.d.ts.map +1 -0
- package/dist/templates/common/index.js +55 -0
- package/dist/templates/common/index.js.map +1 -0
- package/dist/templates/{codebuddy/commands/trellis → common/skills}/brainstorm.md +4 -4
- package/dist/templates/{opencode/commands/trellis → common/skills}/break-loop.md +4 -4
- package/dist/templates/common/skills/check.md +87 -0
- package/dist/templates/{codebuddy/commands/trellis → common/skills}/update-spec.md +18 -21
- package/dist/templates/copilot/hooks/session-start.py +65 -29
- package/dist/templates/copilot/hooks.json +8 -0
- package/dist/templates/cursor/agents/check.md +95 -0
- package/dist/templates/cursor/agents/implement.md +95 -0
- package/dist/templates/cursor/agents/research.md +138 -0
- package/dist/templates/cursor/hooks.json +24 -0
- package/dist/templates/cursor/index.d.ts +6 -17
- package/dist/templates/cursor/index.d.ts.map +1 -1
- package/dist/templates/cursor/index.js +6 -37
- package/dist/templates/cursor/index.js.map +1 -1
- package/dist/templates/droid/droids/check.md +95 -0
- package/dist/templates/droid/droids/implement.md +95 -0
- package/dist/templates/droid/droids/research.md +138 -0
- package/dist/templates/droid/index.d.ts +7 -19
- package/dist/templates/droid/index.d.ts.map +1 -1
- package/dist/templates/droid/index.js +7 -39
- package/dist/templates/droid/index.js.map +1 -1
- package/dist/templates/droid/settings.json +59 -0
- package/dist/templates/extract.d.ts +7 -193
- package/dist/templates/extract.d.ts.map +1 -1
- package/dist/templates/extract.js +7 -310
- package/dist/templates/extract.js.map +1 -1
- package/dist/templates/gemini/agents/check.md +95 -0
- package/dist/templates/gemini/agents/implement.md +95 -0
- package/dist/templates/gemini/agents/research.md +138 -0
- package/dist/templates/gemini/index.d.ts +6 -14
- package/dist/templates/gemini/index.d.ts.map +1 -1
- package/dist/templates/gemini/index.js +6 -37
- package/dist/templates/gemini/index.js.map +1 -1
- package/dist/templates/gemini/settings.json +28 -0
- package/dist/templates/kiro/agents/check.json +13 -0
- package/dist/templates/kiro/agents/implement.json +13 -0
- package/dist/templates/kiro/agents/research.json +21 -0
- package/dist/templates/kiro/index.d.ts +11 -11
- package/dist/templates/kiro/index.d.ts.map +1 -1
- package/dist/templates/kiro/index.js +11 -33
- package/dist/templates/kiro/index.js.map +1 -1
- package/dist/templates/opencode/agents/check.md +3 -30
- package/dist/templates/opencode/agents/implement.md +1 -1
- package/dist/templates/opencode/agents/research.md +1 -2
- package/dist/templates/opencode/plugins/inject-subagent-context.js +9 -183
- package/dist/templates/opencode/plugins/inject-workflow-state.js +160 -0
- package/dist/templates/opencode/plugins/session-start.js +71 -32
- package/dist/templates/qoder/agents/check.md +95 -0
- package/dist/templates/qoder/agents/implement.md +95 -0
- package/dist/templates/qoder/agents/research.md +138 -0
- package/dist/templates/qoder/index.d.ts +7 -10
- package/dist/templates/qoder/index.d.ts.map +1 -1
- package/dist/templates/qoder/index.js +7 -32
- package/dist/templates/qoder/index.js.map +1 -1
- package/dist/templates/qoder/settings.json +47 -0
- package/dist/templates/shared-hooks/index.d.ts +19 -0
- package/dist/templates/shared-hooks/index.d.ts.map +1 -0
- package/dist/templates/shared-hooks/index.js +30 -0
- package/dist/templates/shared-hooks/index.js.map +1 -0
- package/dist/templates/{iflow/hooks → shared-hooks}/inject-subagent-context.py +74 -263
- package/dist/templates/shared-hooks/inject-workflow-state.py +231 -0
- package/dist/templates/{claude/hooks → shared-hooks}/session-start.py +162 -55
- package/dist/templates/template-utils.d.ts +26 -0
- package/dist/templates/template-utils.d.ts.map +1 -0
- package/dist/templates/template-utils.js +60 -0
- package/dist/templates/template-utils.js.map +1 -0
- package/dist/templates/trellis/index.d.ts +1 -14
- package/dist/templates/trellis/index.d.ts.map +1 -1
- package/dist/templates/trellis/index.js +2 -27
- package/dist/templates/trellis/index.js.map +1 -1
- package/dist/templates/trellis/scripts/common/cli_adapter.py +2 -2
- package/dist/templates/trellis/scripts/common/config.py +126 -1
- package/dist/templates/trellis/scripts/common/git_context.py +25 -2
- package/dist/templates/trellis/scripts/common/task_context.py +3 -23
- package/dist/templates/trellis/scripts/common/task_store.py +0 -12
- package/dist/templates/trellis/scripts/common/workflow_phase.py +176 -0
- package/dist/templates/trellis/scripts/task.py +6 -35
- package/dist/templates/trellis/workflow.md +274 -297
- package/dist/types/ai-tools.d.ts +21 -3
- package/dist/types/ai-tools.d.ts.map +1 -1
- package/dist/types/ai-tools.js +106 -15
- package/dist/types/ai-tools.js.map +1 -1
- package/dist/types/migration.d.ts +8 -1
- package/dist/types/migration.d.ts.map +1 -1
- package/package.json +3 -2
- package/dist/configurators/iflow.d.ts +0 -33
- package/dist/configurators/iflow.d.ts.map +0 -1
- package/dist/configurators/iflow.js +0 -99
- package/dist/configurators/iflow.js.map +0 -1
- package/dist/templates/antigravity/index.d.ts +0 -12
- package/dist/templates/antigravity/index.d.ts.map +0 -1
- package/dist/templates/antigravity/index.js +0 -29
- package/dist/templates/antigravity/index.js.map +0 -1
- package/dist/templates/claude/agents/debug.md +0 -106
- package/dist/templates/claude/agents/dispatch.md +0 -213
- package/dist/templates/claude/agents/plan.md +0 -396
- package/dist/templates/claude/commands/trellis/brainstorm.md +0 -487
- package/dist/templates/claude/commands/trellis/break-loop.md +0 -125
- package/dist/templates/claude/commands/trellis/check-cross-layer.md +0 -153
- package/dist/templates/claude/commands/trellis/check.md +0 -25
- package/dist/templates/claude/commands/trellis/create-command.md +0 -154
- package/dist/templates/claude/commands/trellis/finish-work.md +0 -153
- package/dist/templates/claude/commands/trellis/integrate-skill.md +0 -219
- package/dist/templates/claude/commands/trellis/onboard.md +0 -358
- package/dist/templates/claude/commands/trellis/parallel.md +0 -192
- package/dist/templates/claude/commands/trellis/record-session.md +0 -62
- package/dist/templates/claude/commands/trellis/start.md +0 -393
- package/dist/templates/claude/commands/trellis/update-spec.md +0 -354
- package/dist/templates/claude/hooks/inject-subagent-context.py +0 -803
- package/dist/templates/claude/hooks/ralph-loop.py +0 -396
- package/dist/templates/codebuddy/commands/trellis/before-dev.md +0 -29
- package/dist/templates/codebuddy/commands/trellis/break-loop.md +0 -107
- package/dist/templates/codebuddy/commands/trellis/check-cross-layer.md +0 -153
- package/dist/templates/codebuddy/commands/trellis/check.md +0 -25
- package/dist/templates/codebuddy/commands/trellis/create-command.md +0 -154
- package/dist/templates/codebuddy/commands/trellis/finish-work.md +0 -143
- package/dist/templates/codebuddy/commands/trellis/integrate-skill.md +0 -219
- package/dist/templates/codebuddy/commands/trellis/onboard.md +0 -358
- package/dist/templates/codebuddy/commands/trellis/record-session.md +0 -61
- package/dist/templates/codebuddy/commands/trellis/start.md +0 -373
- package/dist/templates/codex/codex-skills/parallel/SKILL.md +0 -194
- package/dist/templates/cursor/commands/trellis-before-dev.md +0 -29
- package/dist/templates/cursor/commands/trellis-brainstorm.md +0 -487
- package/dist/templates/cursor/commands/trellis-break-loop.md +0 -107
- package/dist/templates/cursor/commands/trellis-check-cross-layer.md +0 -153
- package/dist/templates/cursor/commands/trellis-check.md +0 -25
- package/dist/templates/cursor/commands/trellis-create-command.md +0 -154
- package/dist/templates/cursor/commands/trellis-finish-work.md +0 -143
- package/dist/templates/cursor/commands/trellis-integrate-skill.md +0 -219
- package/dist/templates/cursor/commands/trellis-onboard.md +0 -358
- package/dist/templates/cursor/commands/trellis-record-session.md +0 -62
- package/dist/templates/cursor/commands/trellis-start.md +0 -373
- package/dist/templates/cursor/commands/trellis-update-spec.md +0 -354
- package/dist/templates/droid/commands/trellis/before-dev.md +0 -33
- package/dist/templates/droid/commands/trellis/brainstorm.md +0 -491
- package/dist/templates/droid/commands/trellis/break-loop.md +0 -111
- package/dist/templates/droid/commands/trellis/check-cross-layer.md +0 -157
- package/dist/templates/droid/commands/trellis/check.md +0 -29
- package/dist/templates/droid/commands/trellis/create-command.md +0 -158
- package/dist/templates/droid/commands/trellis/finish-work.md +0 -147
- package/dist/templates/droid/commands/trellis/integrate-skill.md +0 -223
- package/dist/templates/droid/commands/trellis/onboard.md +0 -362
- package/dist/templates/droid/commands/trellis/record-session.md +0 -66
- package/dist/templates/droid/commands/trellis/start.md +0 -377
- package/dist/templates/droid/commands/trellis/update-spec.md +0 -358
- package/dist/templates/gemini/commands/trellis/before-dev.toml +0 -33
- package/dist/templates/gemini/commands/trellis/brainstorm.toml +0 -435
- package/dist/templates/gemini/commands/trellis/break-loop.toml +0 -129
- package/dist/templates/gemini/commands/trellis/check-cross-layer.toml +0 -147
- package/dist/templates/gemini/commands/trellis/check.toml +0 -29
- package/dist/templates/gemini/commands/trellis/create-command.toml +0 -119
- package/dist/templates/gemini/commands/trellis/finish-work.toml +0 -133
- package/dist/templates/gemini/commands/trellis/integrate-skill.toml +0 -104
- package/dist/templates/gemini/commands/trellis/onboard.toml +0 -111
- package/dist/templates/gemini/commands/trellis/record-session.toml +0 -66
- package/dist/templates/gemini/commands/trellis/start.toml +0 -354
- package/dist/templates/gemini/commands/trellis/update-spec.toml +0 -132
- package/dist/templates/iflow/agents/debug.md +0 -106
- package/dist/templates/iflow/agents/dispatch.md +0 -213
- package/dist/templates/iflow/agents/plan.md +0 -396
- package/dist/templates/iflow/agents/research.md +0 -120
- package/dist/templates/iflow/commands/trellis/before-dev.md +0 -29
- package/dist/templates/iflow/commands/trellis/brainstorm.md +0 -487
- package/dist/templates/iflow/commands/trellis/break-loop.md +0 -125
- package/dist/templates/iflow/commands/trellis/check-cross-layer.md +0 -153
- package/dist/templates/iflow/commands/trellis/check.md +0 -25
- package/dist/templates/iflow/commands/trellis/create-command.md +0 -152
- package/dist/templates/iflow/commands/trellis/finish-work.md +0 -153
- package/dist/templates/iflow/commands/trellis/integrate-skill.md +0 -219
- package/dist/templates/iflow/commands/trellis/onboard.md +0 -358
- package/dist/templates/iflow/commands/trellis/parallel.md +0 -192
- package/dist/templates/iflow/commands/trellis/record-session.md +0 -62
- package/dist/templates/iflow/commands/trellis/start.md +0 -393
- package/dist/templates/iflow/commands/trellis/update-spec.md +0 -354
- package/dist/templates/iflow/hooks/ralph-loop.py +0 -395
- package/dist/templates/iflow/hooks/session-start.py +0 -403
- package/dist/templates/iflow/index.d.ts +0 -54
- package/dist/templates/iflow/index.d.ts.map +0 -1
- package/dist/templates/iflow/index.js +0 -85
- package/dist/templates/iflow/index.js.map +0 -1
- package/dist/templates/iflow/settings.json +0 -60
- package/dist/templates/kilo/index.d.ts +0 -16
- package/dist/templates/kilo/index.d.ts.map +0 -1
- package/dist/templates/kilo/index.js +0 -39
- package/dist/templates/kilo/index.js.map +0 -1
- package/dist/templates/kilo/workflows/before-dev.md +0 -29
- package/dist/templates/kilo/workflows/brainstorm.md +0 -487
- package/dist/templates/kilo/workflows/break-loop.md +0 -125
- package/dist/templates/kilo/workflows/check-cross-layer.md +0 -153
- package/dist/templates/kilo/workflows/check.md +0 -25
- package/dist/templates/kilo/workflows/create-command.md +0 -152
- package/dist/templates/kilo/workflows/finish-work.md +0 -129
- package/dist/templates/kilo/workflows/integrate-skill.md +0 -219
- package/dist/templates/kilo/workflows/onboard.md +0 -358
- package/dist/templates/kilo/workflows/parallel.md +0 -193
- package/dist/templates/kilo/workflows/record-session.md +0 -62
- package/dist/templates/kilo/workflows/start.md +0 -387
- package/dist/templates/kilo/workflows/update-spec.md +0 -285
- package/dist/templates/kiro/skills/before-dev/SKILL.md +0 -34
- package/dist/templates/kiro/skills/brainstorm/SKILL.md +0 -492
- package/dist/templates/kiro/skills/break-loop/SKILL.md +0 -130
- package/dist/templates/kiro/skills/check/SKILL.md +0 -30
- package/dist/templates/kiro/skills/check-cross-layer/SKILL.md +0 -158
- package/dist/templates/kiro/skills/create-command/SKILL.md +0 -101
- package/dist/templates/kiro/skills/finish-work/SKILL.md +0 -148
- package/dist/templates/kiro/skills/integrate-skill/SKILL.md +0 -221
- package/dist/templates/kiro/skills/onboard/SKILL.md +0 -363
- package/dist/templates/kiro/skills/record-session/SKILL.md +0 -67
- package/dist/templates/kiro/skills/start/SKILL.md +0 -351
- package/dist/templates/kiro/skills/update-spec/SKILL.md +0 -335
- package/dist/templates/opencode/agents/debug.md +0 -129
- package/dist/templates/opencode/agents/dispatch.md +0 -223
- package/dist/templates/opencode/agents/trellis-plan.md +0 -427
- package/dist/templates/opencode/commands/trellis/before-dev.md +0 -29
- package/dist/templates/opencode/commands/trellis/brainstorm.md +0 -487
- package/dist/templates/opencode/commands/trellis/check-cross-layer.md +0 -153
- package/dist/templates/opencode/commands/trellis/check.md +0 -25
- package/dist/templates/opencode/commands/trellis/create-command.md +0 -154
- package/dist/templates/opencode/commands/trellis/finish-work.md +0 -144
- package/dist/templates/opencode/commands/trellis/integrate-skill.md +0 -219
- package/dist/templates/opencode/commands/trellis/migrate-specs.md +0 -0
- package/dist/templates/opencode/commands/trellis/onboard.md +0 -358
- package/dist/templates/opencode/commands/trellis/parallel.md +0 -193
- package/dist/templates/opencode/commands/trellis/record-session.md +0 -62
- package/dist/templates/opencode/commands/trellis/start.md +0 -351
- package/dist/templates/opencode/commands/trellis/update-spec.md +0 -354
- package/dist/templates/qoder/skills/before-dev/SKILL.md +0 -34
- package/dist/templates/qoder/skills/brainstorm/SKILL.md +0 -492
- package/dist/templates/qoder/skills/break-loop/SKILL.md +0 -130
- package/dist/templates/qoder/skills/check/SKILL.md +0 -30
- package/dist/templates/qoder/skills/check-cross-layer/SKILL.md +0 -158
- package/dist/templates/qoder/skills/create-command/SKILL.md +0 -101
- package/dist/templates/qoder/skills/finish-work/SKILL.md +0 -134
- package/dist/templates/qoder/skills/integrate-skill/SKILL.md +0 -221
- package/dist/templates/qoder/skills/onboard/SKILL.md +0 -363
- package/dist/templates/qoder/skills/record-session/SKILL.md +0 -67
- package/dist/templates/qoder/skills/start/SKILL.md +0 -388
- package/dist/templates/qoder/skills/update-spec/SKILL.md +0 -290
- package/dist/templates/trellis/scripts/common/phase.py +0 -254
- package/dist/templates/trellis/scripts/common/registry.py +0 -335
- package/dist/templates/trellis/scripts/common/worktree.py +0 -305
- package/dist/templates/trellis/scripts/multi_agent/__init__.py +0 -5
- package/dist/templates/trellis/scripts/multi_agent/_bootstrap.py +0 -17
- package/dist/templates/trellis/scripts/multi_agent/cleanup.py +0 -398
- package/dist/templates/trellis/scripts/multi_agent/create_pr.py +0 -620
- package/dist/templates/trellis/scripts/multi_agent/plan.py +0 -213
- package/dist/templates/trellis/scripts/multi_agent/start.py +0 -539
- package/dist/templates/trellis/scripts/multi_agent/status.py +0 -76
- package/dist/templates/trellis/scripts/multi_agent/status_display.py +0 -542
- package/dist/templates/trellis/scripts/multi_agent/status_monitor.py +0 -225
- package/dist/templates/trellis/scripts-shell-archive/add-session.sh +0 -384
- package/dist/templates/trellis/scripts-shell-archive/common/developer.sh +0 -129
- package/dist/templates/trellis/scripts-shell-archive/common/git-context.sh +0 -263
- package/dist/templates/trellis/scripts-shell-archive/common/paths.sh +0 -208
- package/dist/templates/trellis/scripts-shell-archive/common/phase.sh +0 -150
- package/dist/templates/trellis/scripts-shell-archive/common/registry.sh +0 -247
- package/dist/templates/trellis/scripts-shell-archive/common/task-queue.sh +0 -142
- package/dist/templates/trellis/scripts-shell-archive/common/task-utils.sh +0 -151
- package/dist/templates/trellis/scripts-shell-archive/common/worktree.sh +0 -128
- package/dist/templates/trellis/scripts-shell-archive/create-bootstrap.sh +0 -299
- package/dist/templates/trellis/scripts-shell-archive/get-context.sh +0 -7
- package/dist/templates/trellis/scripts-shell-archive/get-developer.sh +0 -15
- package/dist/templates/trellis/scripts-shell-archive/init-developer.sh +0 -34
- package/dist/templates/trellis/scripts-shell-archive/multi-agent/cleanup.sh +0 -396
- package/dist/templates/trellis/scripts-shell-archive/multi-agent/create-pr.sh +0 -241
- package/dist/templates/trellis/scripts-shell-archive/multi-agent/plan.sh +0 -207
- package/dist/templates/trellis/scripts-shell-archive/multi-agent/start.sh +0 -317
- package/dist/templates/trellis/scripts-shell-archive/multi-agent/status.sh +0 -828
- package/dist/templates/trellis/scripts-shell-archive/task.sh +0 -1204
- package/dist/templates/trellis/worktree.yaml +0 -47
- package/dist/templates/windsurf/index.d.ts +0 -21
- package/dist/templates/windsurf/index.d.ts.map +0 -1
- package/dist/templates/windsurf/index.js +0 -44
- package/dist/templates/windsurf/index.js.map +0 -1
- package/dist/templates/windsurf/workflows/trellis-before-dev.md +0 -31
- package/dist/templates/windsurf/workflows/trellis-brainstorm.md +0 -491
- package/dist/templates/windsurf/workflows/trellis-break-loop.md +0 -111
- package/dist/templates/windsurf/workflows/trellis-check-cross-layer.md +0 -157
- package/dist/templates/windsurf/workflows/trellis-check.md +0 -27
- package/dist/templates/windsurf/workflows/trellis-create-command.md +0 -154
- package/dist/templates/windsurf/workflows/trellis-finish-work.md +0 -147
- package/dist/templates/windsurf/workflows/trellis-integrate-skill.md +0 -220
- package/dist/templates/windsurf/workflows/trellis-onboard.md +0 -362
- package/dist/templates/windsurf/workflows/trellis-record-session.md +0 -66
- package/dist/templates/windsurf/workflows/trellis-start.md +0 -373
- package/dist/templates/windsurf/workflows/trellis-update-spec.md +0 -358
- /package/dist/templates/{claude/commands/trellis → common/skills}/before-dev.md +0 -0
- /package/dist/templates/{claude/hooks → shared-hooks}/statusline.py +0 -0
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: |
|
|
3
|
-
Issue fixing expert. Understands issues, fixes against specs, and verifies fixes. Precise fixes only.
|
|
4
|
-
mode: subagent
|
|
5
|
-
permission:
|
|
6
|
-
read: allow
|
|
7
|
-
write: allow
|
|
8
|
-
edit: allow
|
|
9
|
-
bash: allow
|
|
10
|
-
glob: allow
|
|
11
|
-
grep: allow
|
|
12
|
-
mcp__exa__*: allow
|
|
13
|
-
---
|
|
14
|
-
# Debug Agent
|
|
15
|
-
|
|
16
|
-
You are the Debug Agent in the Trellis workflow.
|
|
17
|
-
|
|
18
|
-
## Context Self-Loading
|
|
19
|
-
|
|
20
|
-
**If you see "# Debug Agent Task" header with pre-loaded context above, skip this section.**
|
|
21
|
-
|
|
22
|
-
Otherwise, load context yourself:
|
|
23
|
-
|
|
24
|
-
1. Read `.trellis/.current-task` → get task directory (e.g., `.trellis/tasks/xxx`)
|
|
25
|
-
2. Read `{task_dir}/debug.jsonl` (or `spec.jsonl` as fallback)
|
|
26
|
-
3. For each entry in JSONL:
|
|
27
|
-
- If `path` is a file → Read it
|
|
28
|
-
- If `path` is a directory → Read all `.md` files in it
|
|
29
|
-
4. Read `{task_dir}/codex-review-output.txt` if exists (Codex review results)
|
|
30
|
-
|
|
31
|
-
Then proceed with the workflow below using the loaded context.
|
|
32
|
-
|
|
33
|
-
---
|
|
34
|
-
|
|
35
|
-
## Context
|
|
36
|
-
|
|
37
|
-
Before debugging, read:
|
|
38
|
-
- `.trellis/spec/` - Development guidelines
|
|
39
|
-
- Error messages or issue descriptions provided
|
|
40
|
-
|
|
41
|
-
## Core Responsibilities
|
|
42
|
-
|
|
43
|
-
1. **Understand issues** - Analyze error messages or reported issues
|
|
44
|
-
2. **Fix against specs** - Fix issues following dev specs
|
|
45
|
-
3. **Verify fixes** - Run typecheck to ensure no new issues
|
|
46
|
-
4. **Report results** - Report fix status
|
|
47
|
-
|
|
48
|
-
---
|
|
49
|
-
|
|
50
|
-
## Workflow
|
|
51
|
-
|
|
52
|
-
### Step 1: Understand Issues
|
|
53
|
-
|
|
54
|
-
Parse the issue, categorize by priority:
|
|
55
|
-
|
|
56
|
-
- `[P1]` - Must fix (blocking)
|
|
57
|
-
- `[P2]` - Should fix (important)
|
|
58
|
-
- `[P3]` - Optional fix (nice to have)
|
|
59
|
-
|
|
60
|
-
### Step 2: Research if Needed
|
|
61
|
-
|
|
62
|
-
If you need additional info:
|
|
63
|
-
|
|
64
|
-
```bash
|
|
65
|
-
# Check knowledge base
|
|
66
|
-
ls .trellis/big-question/
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### Step 3: Fix One by One
|
|
70
|
-
|
|
71
|
-
For each issue:
|
|
72
|
-
|
|
73
|
-
1. Locate the exact position
|
|
74
|
-
2. Fix following specs
|
|
75
|
-
3. Run typecheck to verify
|
|
76
|
-
|
|
77
|
-
### Step 4: Verify
|
|
78
|
-
|
|
79
|
-
Run project's lint and typecheck commands to verify fixes.
|
|
80
|
-
|
|
81
|
-
If fix introduces new issues:
|
|
82
|
-
|
|
83
|
-
1. Revert the fix
|
|
84
|
-
2. Use a more complete solution
|
|
85
|
-
3. Re-verify
|
|
86
|
-
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
## Report Format
|
|
90
|
-
|
|
91
|
-
```markdown
|
|
92
|
-
## Fix Report
|
|
93
|
-
|
|
94
|
-
### Issues Fixed
|
|
95
|
-
|
|
96
|
-
1. `[P1]` `<file>:<line>` - <what was fixed>
|
|
97
|
-
2. `[P2]` `<file>:<line>` - <what was fixed>
|
|
98
|
-
|
|
99
|
-
### Issues Not Fixed
|
|
100
|
-
|
|
101
|
-
- `<file>:<line>` - <reason why not fixed>
|
|
102
|
-
|
|
103
|
-
### Verification
|
|
104
|
-
|
|
105
|
-
- TypeCheck: Pass
|
|
106
|
-
- Lint: Pass
|
|
107
|
-
|
|
108
|
-
### Summary
|
|
109
|
-
|
|
110
|
-
Fixed X/Y issues. Z issues require discussion.
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
---
|
|
114
|
-
|
|
115
|
-
## Guidelines
|
|
116
|
-
|
|
117
|
-
### DO
|
|
118
|
-
|
|
119
|
-
- Precise fixes for reported issues
|
|
120
|
-
- Follow specs
|
|
121
|
-
- Verify each fix
|
|
122
|
-
|
|
123
|
-
### DON'T
|
|
124
|
-
|
|
125
|
-
- Don't refactor surrounding code
|
|
126
|
-
- Don't add new features
|
|
127
|
-
- Don't modify unrelated files
|
|
128
|
-
- Don't use non-null assertion (`x!` operator)
|
|
129
|
-
- Don't execute git commit
|
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: |
|
|
3
|
-
Multi-Agent Pipeline main dispatcher. Pure dispatcher. Only responsible for calling subagents and scripts in phase order.
|
|
4
|
-
mode: primary
|
|
5
|
-
permission:
|
|
6
|
-
read: allow
|
|
7
|
-
write: deny
|
|
8
|
-
edit: deny
|
|
9
|
-
bash: allow
|
|
10
|
-
glob: deny
|
|
11
|
-
grep: deny
|
|
12
|
-
task: allow
|
|
13
|
-
mcp__exa__*: allow
|
|
14
|
-
---
|
|
15
|
-
# Dispatch Agent
|
|
16
|
-
|
|
17
|
-
You are the Dispatch Agent in the Multi-Agent Pipeline (pure dispatcher).
|
|
18
|
-
|
|
19
|
-
## Working Directory Convention
|
|
20
|
-
|
|
21
|
-
Current Task is specified by `.trellis/.current-task` file, content is the relative path to task directory.
|
|
22
|
-
|
|
23
|
-
Task directory path format: `.trellis/tasks/{MM}-{DD}-{name}/`
|
|
24
|
-
|
|
25
|
-
This directory contains all context files for the current task:
|
|
26
|
-
|
|
27
|
-
- `task.json` - Task configuration
|
|
28
|
-
- `prd.md` - Requirements document
|
|
29
|
-
- `info.md` - Technical design (optional)
|
|
30
|
-
- `implement.jsonl` - Implement context
|
|
31
|
-
- `check.jsonl` - Check context
|
|
32
|
-
- `debug.jsonl` - Debug context
|
|
33
|
-
|
|
34
|
-
## Core Principles
|
|
35
|
-
|
|
36
|
-
1. **You are a pure dispatcher** - Only responsible for calling subagents and scripts in order
|
|
37
|
-
2. **You don't read specs/requirements** - Hook will auto-inject all context to subagents
|
|
38
|
-
3. **You don't need resume** - Hook injects complete context on each subagent call
|
|
39
|
-
4. **You only need simple commands** - Tell subagent "start working" is enough
|
|
40
|
-
|
|
41
|
-
---
|
|
42
|
-
|
|
43
|
-
## Startup Flow
|
|
44
|
-
|
|
45
|
-
### Step 1: Determine Current Task Directory
|
|
46
|
-
|
|
47
|
-
Read `.trellis/.current-task` to get current task directory path:
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
TASK_DIR=$(cat .trellis/.current-task)
|
|
51
|
-
# e.g.: .trellis/tasks/02-03-my-feature
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
### Step 2: Read Task Configuration
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
cat ${TASK_DIR}/task.json
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
Get the `next_action` array, which defines the list of phases to execute.
|
|
61
|
-
|
|
62
|
-
### Step 3: Execute in Phase Order
|
|
63
|
-
|
|
64
|
-
Execute each step in `phase` order.
|
|
65
|
-
|
|
66
|
-
> **Note**: You do NOT need to manually update `current_phase`. The Hook automatically updates it when you call Task with a subagent.
|
|
67
|
-
|
|
68
|
-
---
|
|
69
|
-
|
|
70
|
-
## Phase Handling
|
|
71
|
-
|
|
72
|
-
> Hook will auto-inject all specs, requirements, and technical design to subagent context.
|
|
73
|
-
> Dispatch only needs to issue simple call commands.
|
|
74
|
-
>
|
|
75
|
-
> **OpenCode dispatch rule**: Call subagents synchronously (`run_in_background: false`).
|
|
76
|
-
> Do NOT use `TaskOutput` or background polling as the completion signal for child phases.
|
|
77
|
-
> The background wrapper can finish before the real subagent session is actually done.
|
|
78
|
-
|
|
79
|
-
### action: "implement"
|
|
80
|
-
|
|
81
|
-
```
|
|
82
|
-
Task(
|
|
83
|
-
subagent_type: "implement",
|
|
84
|
-
prompt: "Implement the feature described in prd.md in the task directory",
|
|
85
|
-
model: "opus",
|
|
86
|
-
run_in_background: false
|
|
87
|
-
)
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
Hook will auto-inject:
|
|
91
|
-
|
|
92
|
-
- All spec files from implement.jsonl
|
|
93
|
-
- Requirements document (prd.md)
|
|
94
|
-
- Technical design (info.md)
|
|
95
|
-
|
|
96
|
-
Implement receives complete context and autonomously: read → understand → implement.
|
|
97
|
-
|
|
98
|
-
### action: "check"
|
|
99
|
-
|
|
100
|
-
```
|
|
101
|
-
Task(
|
|
102
|
-
subagent_type: "check",
|
|
103
|
-
prompt: "Check code changes, fix issues yourself",
|
|
104
|
-
model: "opus",
|
|
105
|
-
run_in_background: false
|
|
106
|
-
)
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
Hook will auto-inject:
|
|
110
|
-
|
|
111
|
-
- finish-work.md
|
|
112
|
-
- check-cross-layer.md
|
|
113
|
-
- check.md
|
|
114
|
-
- All spec files from check.jsonl
|
|
115
|
-
|
|
116
|
-
### action: "debug"
|
|
117
|
-
|
|
118
|
-
```
|
|
119
|
-
Task(
|
|
120
|
-
subagent_type: "debug",
|
|
121
|
-
prompt: "Fix the issues described in the task context",
|
|
122
|
-
model: "opus",
|
|
123
|
-
run_in_background: false
|
|
124
|
-
)
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
Hook will auto-inject:
|
|
128
|
-
|
|
129
|
-
- All spec files from debug.jsonl
|
|
130
|
-
- Error context if available
|
|
131
|
-
|
|
132
|
-
### action: "finish"
|
|
133
|
-
|
|
134
|
-
```
|
|
135
|
-
Task(
|
|
136
|
-
subagent_type: "check",
|
|
137
|
-
prompt: "[finish] Execute final completion check before PR",
|
|
138
|
-
model: "opus",
|
|
139
|
-
run_in_background: false
|
|
140
|
-
)
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
**Important**: The `[finish]` marker in prompt triggers different context injection:
|
|
144
|
-
- finish-work.md checklist
|
|
145
|
-
- update-spec.md (spec update process and templates)
|
|
146
|
-
- prd.md for verifying requirements are met
|
|
147
|
-
|
|
148
|
-
The finish agent actively updates spec docs when it detects new patterns or contracts in the changes.
|
|
149
|
-
|
|
150
|
-
This is different from regular "check" which has full specs for self-fix loop.
|
|
151
|
-
|
|
152
|
-
### action: "create-pr"
|
|
153
|
-
|
|
154
|
-
This action creates a Pull Request from the feature branch. Run it via Bash:
|
|
155
|
-
|
|
156
|
-
```bash
|
|
157
|
-
python3 ./.trellis/scripts/multi_agent/create_pr.py
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
This will:
|
|
161
|
-
1. Stage and commit all changes (excluding workspace)
|
|
162
|
-
2. Push to origin
|
|
163
|
-
3. Create a Draft PR using `gh pr create`
|
|
164
|
-
4. Update task.json with status="review", pr_url, and current_phase
|
|
165
|
-
|
|
166
|
-
**Note**: This is the only action that performs git commit, as it's the final step after all implementation and checks are complete.
|
|
167
|
-
|
|
168
|
-
---
|
|
169
|
-
|
|
170
|
-
## Calling Subagents
|
|
171
|
-
|
|
172
|
-
### Basic Pattern
|
|
173
|
-
|
|
174
|
-
```
|
|
175
|
-
result = Task(
|
|
176
|
-
subagent_type: "implement", // or "check", "debug"
|
|
177
|
-
prompt: "Simple task description",
|
|
178
|
-
model: "opus",
|
|
179
|
-
run_in_background: false
|
|
180
|
-
)
|
|
181
|
-
|
|
182
|
-
// Wait for the Task call to return before starting the next phase.
|
|
183
|
-
// Do NOT call TaskOutput or use background polling inside OpenCode dispatch.
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
### Execution Rule
|
|
187
|
-
|
|
188
|
-
- Run one phase at a time
|
|
189
|
-
- Start the next phase only after the current `Task(...)` call returns
|
|
190
|
-
- If a phase returns a clear timeout or failure, handle that result explicitly
|
|
191
|
-
- Do **not** simulate completion by polling a background task wrapper
|
|
192
|
-
|
|
193
|
-
---
|
|
194
|
-
|
|
195
|
-
## Error Handling
|
|
196
|
-
|
|
197
|
-
### Timeout
|
|
198
|
-
|
|
199
|
-
If a synchronous subagent call times out, notify the user and ask for guidance:
|
|
200
|
-
|
|
201
|
-
```
|
|
202
|
-
"Subagent {phase} timed out after {time}. Options:
|
|
203
|
-
1. Retry the same phase
|
|
204
|
-
2. Skip to next phase
|
|
205
|
-
3. Abort the pipeline"
|
|
206
|
-
```
|
|
207
|
-
|
|
208
|
-
### Subagent Failure
|
|
209
|
-
|
|
210
|
-
If a synchronous subagent call reports failure, read the output and decide:
|
|
211
|
-
|
|
212
|
-
- If recoverable: call debug agent to fix
|
|
213
|
-
- If not recoverable: notify user and ask for guidance
|
|
214
|
-
- Do not switch back to `TaskOutput` polling for the same phase
|
|
215
|
-
|
|
216
|
-
---
|
|
217
|
-
|
|
218
|
-
## Key Constraints
|
|
219
|
-
|
|
220
|
-
1. **Do not read spec/requirement files directly** - Let Hook inject to subagents
|
|
221
|
-
2. **Only commit via create-pr action** - Use `multi_agent/create_pr.py` at the end of pipeline
|
|
222
|
-
3. **All subagents should use opus model for complex tasks**
|
|
223
|
-
4. **Keep dispatch logic simple** - Complex logic belongs in subagents
|