@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,305 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
"""
|
|
3
|
-
Worktree utilities for Multi-Agent Pipeline.
|
|
4
|
-
|
|
5
|
-
Provides:
|
|
6
|
-
get_worktree_config - Get worktree.yaml path
|
|
7
|
-
get_worktree_base_dir - Get worktree storage directory
|
|
8
|
-
get_worktree_copy_files - Get files to copy list
|
|
9
|
-
get_worktree_post_create_hooks - Get post-create hooks
|
|
10
|
-
get_agents_dir - Get agents registry directory
|
|
11
|
-
"""
|
|
12
|
-
|
|
13
|
-
from __future__ import annotations
|
|
14
|
-
|
|
15
|
-
from pathlib import Path
|
|
16
|
-
|
|
17
|
-
from .paths import (
|
|
18
|
-
DIR_WORKFLOW,
|
|
19
|
-
get_repo_root,
|
|
20
|
-
get_workspace_dir,
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
# =============================================================================
|
|
25
|
-
# YAML Simple Parser (no dependencies)
|
|
26
|
-
# =============================================================================
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
def _unquote(s: str) -> str:
|
|
30
|
-
"""Remove exactly one layer of matching surrounding quotes.
|
|
31
|
-
|
|
32
|
-
Unlike str.strip('"'), this only removes the outermost pair,
|
|
33
|
-
preserving any nested quotes inside the value.
|
|
34
|
-
|
|
35
|
-
Examples:
|
|
36
|
-
_unquote('"hello"') -> 'hello'
|
|
37
|
-
_unquote("'hello'") -> 'hello'
|
|
38
|
-
_unquote('"echo \\'hi\\'"') -> "echo 'hi'"
|
|
39
|
-
_unquote('hello') -> 'hello'
|
|
40
|
-
_unquote('"hello\\'') -> '"hello\\'' (mismatched, unchanged)
|
|
41
|
-
"""
|
|
42
|
-
if len(s) >= 2 and s[0] == s[-1] and s[0] in ('"', "'"):
|
|
43
|
-
return s[1:-1]
|
|
44
|
-
return s
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
def parse_simple_yaml(content: str) -> dict:
|
|
48
|
-
"""Parse simple YAML with nested dict support (no dependencies).
|
|
49
|
-
|
|
50
|
-
Supports:
|
|
51
|
-
- key: value (string)
|
|
52
|
-
- key: (followed by list items)
|
|
53
|
-
- item1
|
|
54
|
-
- item2
|
|
55
|
-
- key: (followed by nested dict)
|
|
56
|
-
nested_key: value
|
|
57
|
-
nested_key2:
|
|
58
|
-
- item
|
|
59
|
-
|
|
60
|
-
Uses indentation to detect nesting (2+ spaces deeper = child).
|
|
61
|
-
|
|
62
|
-
Args:
|
|
63
|
-
content: YAML content string.
|
|
64
|
-
|
|
65
|
-
Returns:
|
|
66
|
-
Parsed dict (values can be str, list[str], or dict).
|
|
67
|
-
"""
|
|
68
|
-
lines = content.splitlines()
|
|
69
|
-
result: dict = {}
|
|
70
|
-
_parse_yaml_block(lines, 0, 0, result)
|
|
71
|
-
return result
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
def _parse_yaml_block(
|
|
75
|
-
lines: list[str], start: int, min_indent: int, target: dict
|
|
76
|
-
) -> int:
|
|
77
|
-
"""Parse a YAML block into target dict, returning next line index."""
|
|
78
|
-
i = start
|
|
79
|
-
current_list: list | None = None
|
|
80
|
-
|
|
81
|
-
while i < len(lines):
|
|
82
|
-
line = lines[i]
|
|
83
|
-
stripped = line.strip()
|
|
84
|
-
|
|
85
|
-
# Skip empty lines and comments
|
|
86
|
-
if not stripped or stripped.startswith("#"):
|
|
87
|
-
i += 1
|
|
88
|
-
continue
|
|
89
|
-
|
|
90
|
-
# Calculate indentation
|
|
91
|
-
indent = len(line) - len(line.lstrip())
|
|
92
|
-
|
|
93
|
-
# If dedented past our block, we're done
|
|
94
|
-
if indent < min_indent:
|
|
95
|
-
break
|
|
96
|
-
|
|
97
|
-
if stripped.startswith("- "):
|
|
98
|
-
if current_list is not None:
|
|
99
|
-
current_list.append(_unquote(stripped[2:].strip()))
|
|
100
|
-
i += 1
|
|
101
|
-
elif ":" in stripped:
|
|
102
|
-
key, _, value = stripped.partition(":")
|
|
103
|
-
key = key.strip()
|
|
104
|
-
value = _unquote(value.strip())
|
|
105
|
-
current_list = None
|
|
106
|
-
|
|
107
|
-
if value:
|
|
108
|
-
# key: value
|
|
109
|
-
target[key] = value
|
|
110
|
-
i += 1
|
|
111
|
-
else:
|
|
112
|
-
# key: (no value) — peek ahead to determine list vs nested dict
|
|
113
|
-
next_i, next_line = _next_content_line(lines, i + 1)
|
|
114
|
-
if next_i >= len(lines):
|
|
115
|
-
target[key] = {}
|
|
116
|
-
i = next_i
|
|
117
|
-
elif next_line.strip().startswith("- "):
|
|
118
|
-
# It's a list
|
|
119
|
-
current_list = []
|
|
120
|
-
target[key] = current_list
|
|
121
|
-
i += 1
|
|
122
|
-
else:
|
|
123
|
-
next_indent = len(next_line) - len(next_line.lstrip())
|
|
124
|
-
if next_indent > indent:
|
|
125
|
-
# It's a nested dict
|
|
126
|
-
nested: dict = {}
|
|
127
|
-
target[key] = nested
|
|
128
|
-
i = _parse_yaml_block(lines, i + 1, next_indent, nested)
|
|
129
|
-
else:
|
|
130
|
-
# Empty value, same or less indent follows
|
|
131
|
-
target[key] = {}
|
|
132
|
-
i += 1
|
|
133
|
-
else:
|
|
134
|
-
i += 1
|
|
135
|
-
|
|
136
|
-
return i
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
def _next_content_line(lines: list[str], start: int) -> tuple[int, str]:
|
|
140
|
-
"""Find the next non-empty, non-comment line."""
|
|
141
|
-
i = start
|
|
142
|
-
while i < len(lines):
|
|
143
|
-
stripped = lines[i].strip()
|
|
144
|
-
if stripped and not stripped.startswith("#"):
|
|
145
|
-
return i, lines[i]
|
|
146
|
-
i += 1
|
|
147
|
-
return i, ""
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
def _yaml_get_value(config_file: Path, key: str) -> str | None:
|
|
151
|
-
"""Read simple value from worktree.yaml.
|
|
152
|
-
|
|
153
|
-
Args:
|
|
154
|
-
config_file: Path to config file.
|
|
155
|
-
key: Key to read.
|
|
156
|
-
|
|
157
|
-
Returns:
|
|
158
|
-
Value string or None.
|
|
159
|
-
"""
|
|
160
|
-
try:
|
|
161
|
-
content = config_file.read_text(encoding="utf-8")
|
|
162
|
-
data = parse_simple_yaml(content)
|
|
163
|
-
value = data.get(key)
|
|
164
|
-
if isinstance(value, str):
|
|
165
|
-
return value
|
|
166
|
-
except (OSError, IOError):
|
|
167
|
-
pass
|
|
168
|
-
return None
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
def _yaml_get_list(config_file: Path, section: str) -> list[str]:
|
|
172
|
-
"""Read list from worktree.yaml.
|
|
173
|
-
|
|
174
|
-
Args:
|
|
175
|
-
config_file: Path to config file.
|
|
176
|
-
section: Section name.
|
|
177
|
-
|
|
178
|
-
Returns:
|
|
179
|
-
List of items.
|
|
180
|
-
"""
|
|
181
|
-
try:
|
|
182
|
-
content = config_file.read_text(encoding="utf-8")
|
|
183
|
-
data = parse_simple_yaml(content)
|
|
184
|
-
value = data.get(section)
|
|
185
|
-
if isinstance(value, list):
|
|
186
|
-
return [str(item) for item in value]
|
|
187
|
-
except (OSError, IOError):
|
|
188
|
-
pass
|
|
189
|
-
return []
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
# =============================================================================
|
|
193
|
-
# Worktree Configuration
|
|
194
|
-
# =============================================================================
|
|
195
|
-
|
|
196
|
-
# Worktree config file relative path (relative to repo root)
|
|
197
|
-
WORKTREE_CONFIG_PATH = f"{DIR_WORKFLOW}/worktree.yaml"
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
def get_worktree_config(repo_root: Path | None = None) -> Path:
|
|
201
|
-
"""Get worktree.yaml config file path.
|
|
202
|
-
|
|
203
|
-
Args:
|
|
204
|
-
repo_root: Repository root path. Defaults to auto-detected.
|
|
205
|
-
|
|
206
|
-
Returns:
|
|
207
|
-
Absolute path to config file.
|
|
208
|
-
"""
|
|
209
|
-
if repo_root is None:
|
|
210
|
-
repo_root = get_repo_root()
|
|
211
|
-
return repo_root / WORKTREE_CONFIG_PATH
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
def get_worktree_base_dir(repo_root: Path | None = None) -> Path:
|
|
215
|
-
"""Get worktree base directory.
|
|
216
|
-
|
|
217
|
-
Args:
|
|
218
|
-
repo_root: Repository root path. Defaults to auto-detected.
|
|
219
|
-
|
|
220
|
-
Returns:
|
|
221
|
-
Absolute path to worktree base directory.
|
|
222
|
-
"""
|
|
223
|
-
if repo_root is None:
|
|
224
|
-
repo_root = get_repo_root()
|
|
225
|
-
|
|
226
|
-
config = get_worktree_config(repo_root)
|
|
227
|
-
worktree_dir = _yaml_get_value(config, "worktree_dir")
|
|
228
|
-
|
|
229
|
-
# Default value
|
|
230
|
-
if not worktree_dir:
|
|
231
|
-
worktree_dir = "../worktrees"
|
|
232
|
-
|
|
233
|
-
# Handle relative path
|
|
234
|
-
if worktree_dir.startswith("../") or worktree_dir.startswith("./"):
|
|
235
|
-
# Relative to repo_root
|
|
236
|
-
return repo_root / worktree_dir
|
|
237
|
-
else:
|
|
238
|
-
# Absolute path
|
|
239
|
-
return Path(worktree_dir)
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
def get_worktree_copy_files(repo_root: Path | None = None) -> list[str]:
|
|
243
|
-
"""Get files to copy list.
|
|
244
|
-
|
|
245
|
-
Args:
|
|
246
|
-
repo_root: Repository root path. Defaults to auto-detected.
|
|
247
|
-
|
|
248
|
-
Returns:
|
|
249
|
-
List of file paths to copy.
|
|
250
|
-
"""
|
|
251
|
-
if repo_root is None:
|
|
252
|
-
repo_root = get_repo_root()
|
|
253
|
-
config = get_worktree_config(repo_root)
|
|
254
|
-
return _yaml_get_list(config, "copy")
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
def get_worktree_post_create_hooks(repo_root: Path | None = None) -> list[str]:
|
|
258
|
-
"""Get post_create hooks.
|
|
259
|
-
|
|
260
|
-
Args:
|
|
261
|
-
repo_root: Repository root path. Defaults to auto-detected.
|
|
262
|
-
|
|
263
|
-
Returns:
|
|
264
|
-
List of commands to run.
|
|
265
|
-
"""
|
|
266
|
-
if repo_root is None:
|
|
267
|
-
repo_root = get_repo_root()
|
|
268
|
-
config = get_worktree_config(repo_root)
|
|
269
|
-
return _yaml_get_list(config, "post_create")
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
# =============================================================================
|
|
273
|
-
# Agents Registry
|
|
274
|
-
# =============================================================================
|
|
275
|
-
|
|
276
|
-
def get_agents_dir(repo_root: Path | None = None) -> Path | None:
|
|
277
|
-
"""Get agents directory for current developer.
|
|
278
|
-
|
|
279
|
-
Args:
|
|
280
|
-
repo_root: Repository root path. Defaults to auto-detected.
|
|
281
|
-
|
|
282
|
-
Returns:
|
|
283
|
-
Absolute path to agents directory, or None if no workspace.
|
|
284
|
-
"""
|
|
285
|
-
if repo_root is None:
|
|
286
|
-
repo_root = get_repo_root()
|
|
287
|
-
|
|
288
|
-
workspace_dir = get_workspace_dir(repo_root)
|
|
289
|
-
if workspace_dir:
|
|
290
|
-
return workspace_dir / ".agents"
|
|
291
|
-
return None
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
# =============================================================================
|
|
295
|
-
# Main Entry (for testing)
|
|
296
|
-
# =============================================================================
|
|
297
|
-
|
|
298
|
-
if __name__ == "__main__":
|
|
299
|
-
repo = get_repo_root()
|
|
300
|
-
print(f"Repository root: {repo}")
|
|
301
|
-
print(f"Worktree config: {get_worktree_config(repo)}")
|
|
302
|
-
print(f"Worktree base dir: {get_worktree_base_dir(repo)}")
|
|
303
|
-
print(f"Copy files: {get_worktree_copy_files(repo)}")
|
|
304
|
-
print(f"Post create hooks: {get_worktree_post_create_hooks(repo)}")
|
|
305
|
-
print(f"Agents dir: {get_agents_dir(repo)}")
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"""Bootstrap path setup for multi_agent scripts.
|
|
2
|
-
|
|
3
|
-
Import this module before importing from common/:
|
|
4
|
-
|
|
5
|
-
import _bootstrap # noqa: F401
|
|
6
|
-
|
|
7
|
-
This adds the parent scripts/ directory to sys.path so that
|
|
8
|
-
`from common.xxx import yyy` works when running scripts directly
|
|
9
|
-
via `python3 .trellis/scripts/multi_agent/some_script.py`.
|
|
10
|
-
"""
|
|
11
|
-
|
|
12
|
-
import sys
|
|
13
|
-
from pathlib import Path
|
|
14
|
-
|
|
15
|
-
_scripts_dir = str(Path(__file__).resolve().parent.parent)
|
|
16
|
-
if _scripts_dir not in sys.path:
|
|
17
|
-
sys.path.insert(0, _scripts_dir)
|