@mindfoldhq/trellis 0.4.0 → 0.5.0-beta.2
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 +100 -24
- 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
|
@@ -13,7 +13,6 @@ import { AI_TOOLS, getManagedPaths, } from "../types/ai-tools.js";
|
|
|
13
13
|
// Platform configurators
|
|
14
14
|
import { configureClaude } from "./claude.js";
|
|
15
15
|
import { configureCursor } from "./cursor.js";
|
|
16
|
-
import { configureIflow } from "./iflow.js";
|
|
17
16
|
import { configureOpenCode } from "./opencode.js";
|
|
18
17
|
import { configureCodex } from "./codex.js";
|
|
19
18
|
import { configureKilo } from "./kilo.js";
|
|
@@ -26,43 +25,65 @@ import { configureCodebuddy } from "./codebuddy.js";
|
|
|
26
25
|
import { configureCopilot } from "./copilot.js";
|
|
27
26
|
import { configureDroid } from "./droid.js";
|
|
28
27
|
// Shared utilities
|
|
29
|
-
import { resolvePlaceholders } from "./shared.js";
|
|
30
|
-
//
|
|
31
|
-
import { getAllAgents as getClaudeAgents,
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { getAllAgents as
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import { getAllCommands as getCodebuddyCommands } from "../templates/codebuddy/index.js";
|
|
42
|
-
import { getAllHooks as getCopilotHooks, getAllPrompts as getCopilotPrompts, getHooksConfig as getCopilotHooksConfig, } from "../templates/copilot/index.js";
|
|
43
|
-
import { getAllCommands as getDroidCommands } from "../templates/droid/index.js";
|
|
28
|
+
import { resolvePlaceholders, resolveAllAsSkills, resolveCommands, resolveSkills, applyPullBasedPreludeMarkdown, applyPullBasedPreludeToml, } from "./shared.js";
|
|
29
|
+
// Platform-specific template content (hooks, agents, settings — NOT commands/skills)
|
|
30
|
+
import { getAllAgents as getClaudeAgents, getSettingsTemplate as getClaudeSettings, } from "../templates/claude/index.js";
|
|
31
|
+
import { getAllAgents as getCodexAgents, getAllCodexSkills as getCodexPlatformSkills, getAllHooks as getCodexHooks, getConfigTemplate as getCodexConfigTemplate, getHooksConfig as getCodexHooksConfig, } from "../templates/codex/index.js";
|
|
32
|
+
import { getAllHooks as getCopilotHooks, getHooksConfig as getCopilotHooksConfig, } from "../templates/copilot/index.js";
|
|
33
|
+
import { getAllAgents as getQoderAgents, getSettingsTemplate as getQoderSettings, } from "../templates/qoder/index.js";
|
|
34
|
+
import { getAllAgents as getCodebuddyAgents, getSettingsTemplate as getCodebuddySettings, } from "../templates/codebuddy/index.js";
|
|
35
|
+
import { getAllDroids as getDroidDroids, getSettingsTemplate as getDroidSettings, } from "../templates/droid/index.js";
|
|
36
|
+
import { getAllAgents as getCursorAgents, getHooksConfig as getCursorHooksConfig, } from "../templates/cursor/index.js";
|
|
37
|
+
import { getAllAgents as getGeminiAgents, getSettingsTemplate as getGeminiSettings, } from "../templates/gemini/index.js";
|
|
38
|
+
import { getAllAgents as getKiroAgents } from "../templates/kiro/index.js";
|
|
39
|
+
import { getSharedHookScripts } from "../templates/shared-hooks/index.js";
|
|
44
40
|
/**
|
|
45
41
|
* Platform functions registry — maps each AITool to its behavior.
|
|
46
42
|
* When adding a new platform, add an entry here.
|
|
47
43
|
*/
|
|
44
|
+
/** Helper: collect shared hook scripts for a platform.
|
|
45
|
+
* `exclude` omits specific hooks (e.g. class-2 platforms skip
|
|
46
|
+
* inject-subagent-context.py because their platform hooks can't inject
|
|
47
|
+
* sub-agent prompts — sub-agents pull context via prelude instead).
|
|
48
|
+
*/
|
|
49
|
+
function collectSharedHooks(hooksPath, options = {}) {
|
|
50
|
+
const files = new Map();
|
|
51
|
+
const exclude = new Set(options.exclude ?? []);
|
|
52
|
+
for (const hook of getSharedHookScripts()) {
|
|
53
|
+
if (exclude.has(hook.name))
|
|
54
|
+
continue;
|
|
55
|
+
files.set(`${hooksPath}/${hook.name}`, hook.content);
|
|
56
|
+
}
|
|
57
|
+
return files;
|
|
58
|
+
}
|
|
59
|
+
/** Class-2 (pull-based) platforms: hooks that should NOT be installed
|
|
60
|
+
* because their platform hook can't inject sub-agent prompts — sub-agents
|
|
61
|
+
* pull task context themselves via the prelude written into agent defs.
|
|
62
|
+
*/
|
|
63
|
+
const PULL_BASED_HOOK_EXCLUDE = ["inject-subagent-context.py"];
|
|
64
|
+
/** Helper: collect commands + skills for "both" platforms */
|
|
65
|
+
function collectBothTemplates(ctx, cmdPath, skillRoot) {
|
|
66
|
+
const files = new Map();
|
|
67
|
+
for (const cmd of resolveCommands(ctx)) {
|
|
68
|
+
files.set(cmdPath(cmd.name), cmd.content);
|
|
69
|
+
}
|
|
70
|
+
for (const skill of resolveSkills(ctx)) {
|
|
71
|
+
files.set(`${skillRoot}/${skill.name}/SKILL.md`, skill.content);
|
|
72
|
+
}
|
|
73
|
+
return files;
|
|
74
|
+
}
|
|
48
75
|
const PLATFORM_FUNCTIONS = {
|
|
49
76
|
"claude-code": {
|
|
50
77
|
configure: configureClaude,
|
|
51
78
|
collectTemplates: () => {
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
for (const cmd of getClaudeCommands()) {
|
|
55
|
-
files.set(`.claude/commands/trellis/${cmd.name}.md`, cmd.content);
|
|
56
|
-
}
|
|
57
|
-
// Agents
|
|
79
|
+
const ctx = AI_TOOLS["claude-code"].templateContext;
|
|
80
|
+
const files = collectBothTemplates(ctx, (n) => `.claude/commands/trellis/${n}.md`, ".claude/skills");
|
|
58
81
|
for (const agent of getClaudeAgents()) {
|
|
59
82
|
files.set(`.claude/agents/${agent.name}.md`, agent.content);
|
|
60
83
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
files.set(`.claude/${hook.targetPath}`, hook.content);
|
|
84
|
+
for (const [k, v] of collectSharedHooks(".claude/hooks")) {
|
|
85
|
+
files.set(k, v);
|
|
64
86
|
}
|
|
65
|
-
// Settings (resolve {{PYTHON_CMD}} to match what configure() writes)
|
|
66
87
|
const settings = getClaudeSettings();
|
|
67
88
|
files.set(`.claude/${settings.targetPath}`, resolvePlaceholders(settings.content));
|
|
68
89
|
return files;
|
|
@@ -71,56 +92,42 @@ const PLATFORM_FUNCTIONS = {
|
|
|
71
92
|
cursor: {
|
|
72
93
|
configure: configureCursor,
|
|
73
94
|
collectTemplates: () => {
|
|
74
|
-
const files =
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
files.set(`.cursor/commands/${cmd.name}.md`, cmd.content);
|
|
95
|
+
const files = collectBothTemplates(AI_TOOLS.cursor.templateContext, (n) => `.cursor/commands/trellis-${n}.md`, ".cursor/skills");
|
|
96
|
+
for (const agent of getCursorAgents()) {
|
|
97
|
+
files.set(`.cursor/agents/${agent.name}.md`, agent.content);
|
|
78
98
|
}
|
|
99
|
+
for (const [k, v] of collectSharedHooks(".cursor/hooks")) {
|
|
100
|
+
files.set(k, v);
|
|
101
|
+
}
|
|
102
|
+
files.set(".cursor/hooks.json", resolvePlaceholders(getCursorHooksConfig()));
|
|
79
103
|
return files;
|
|
80
104
|
},
|
|
81
105
|
},
|
|
82
106
|
opencode: {
|
|
83
107
|
configure: configureOpenCode,
|
|
84
|
-
// OpenCode uses plugin system, templates handled separately during init
|
|
85
|
-
},
|
|
86
|
-
iflow: {
|
|
87
|
-
configure: configureIflow,
|
|
88
|
-
collectTemplates: () => {
|
|
89
|
-
const files = new Map();
|
|
90
|
-
// Commands
|
|
91
|
-
for (const cmd of getIflowCommands()) {
|
|
92
|
-
files.set(`.iflow/commands/trellis/${cmd.name}.md`, cmd.content);
|
|
93
|
-
}
|
|
94
|
-
// Agents
|
|
95
|
-
for (const agent of getIflowAgents()) {
|
|
96
|
-
files.set(`.iflow/agents/${agent.name}.md`, agent.content);
|
|
97
|
-
}
|
|
98
|
-
// Hooks
|
|
99
|
-
for (const hook of getIflowHooks()) {
|
|
100
|
-
files.set(`.iflow/${hook.targetPath}`, hook.content);
|
|
101
|
-
}
|
|
102
|
-
// Settings (resolve {{PYTHON_CMD}} to match what configure() writes)
|
|
103
|
-
const settings = getIflowSettings();
|
|
104
|
-
files.set(`.iflow/${settings.targetPath}`, resolvePlaceholders(settings.content));
|
|
105
|
-
return files;
|
|
106
|
-
},
|
|
107
108
|
},
|
|
108
109
|
codex: {
|
|
109
110
|
configure: configureCodex,
|
|
110
111
|
collectTemplates: () => {
|
|
111
112
|
const files = new Map();
|
|
112
|
-
for (const
|
|
113
|
-
files.set(`.agents/skills/${
|
|
113
|
+
for (const s of resolveAllAsSkills(AI_TOOLS.codex.templateContext)) {
|
|
114
|
+
files.set(`.agents/skills/${s.name}/SKILL.md`, s.content);
|
|
114
115
|
}
|
|
115
116
|
for (const skill of getCodexPlatformSkills()) {
|
|
116
117
|
files.set(`.codex/skills/${skill.name}/SKILL.md`, skill.content);
|
|
117
118
|
}
|
|
118
|
-
for (const agent of getCodexAgents()) {
|
|
119
|
+
for (const agent of applyPullBasedPreludeToml(getCodexAgents())) {
|
|
119
120
|
files.set(`.codex/agents/${agent.name}.toml`, agent.content);
|
|
120
121
|
}
|
|
121
122
|
for (const hook of getCodexHooks()) {
|
|
122
123
|
files.set(`.codex/hooks/${hook.name}`, hook.content);
|
|
123
124
|
}
|
|
125
|
+
// Shared hooks (inject-workflow-state.py etc.) — mirror configureCodex
|
|
126
|
+
for (const [k, v] of collectSharedHooks(".codex/hooks", {
|
|
127
|
+
exclude: ["session-start.py", "inject-subagent-context.py"],
|
|
128
|
+
})) {
|
|
129
|
+
files.set(k, v);
|
|
130
|
+
}
|
|
124
131
|
files.set(".codex/hooks.json", resolvePlaceholders(getCodexHooksConfig()));
|
|
125
132
|
const config = getCodexConfigTemplate();
|
|
126
133
|
files.set(`.codex/${config.targetPath}`, config.content);
|
|
@@ -129,20 +136,20 @@ const PLATFORM_FUNCTIONS = {
|
|
|
129
136
|
},
|
|
130
137
|
kilo: {
|
|
131
138
|
configure: configureKilo,
|
|
132
|
-
collectTemplates: () => {
|
|
133
|
-
const files = new Map();
|
|
134
|
-
for (const wf of getKiloWorkflows()) {
|
|
135
|
-
files.set(`.kilocode/workflows/${wf.name}.md`, wf.content);
|
|
136
|
-
}
|
|
137
|
-
return files;
|
|
138
|
-
},
|
|
139
|
+
collectTemplates: () => collectBothTemplates(AI_TOOLS.kilo.templateContext, (n) => `.kilocode/workflows/${n}.md`, ".kilocode/skills"),
|
|
139
140
|
},
|
|
140
141
|
kiro: {
|
|
141
142
|
configure: configureKiro,
|
|
142
143
|
collectTemplates: () => {
|
|
143
144
|
const files = new Map();
|
|
144
|
-
for (const
|
|
145
|
-
files.set(`.kiro/skills/${
|
|
145
|
+
for (const s of resolveAllAsSkills(AI_TOOLS.kiro.templateContext)) {
|
|
146
|
+
files.set(`.kiro/skills/${s.name}/SKILL.md`, s.content);
|
|
147
|
+
}
|
|
148
|
+
for (const agent of getKiroAgents()) {
|
|
149
|
+
files.set(`.kiro/agents/${agent.name}.json`, resolvePlaceholders(agent.content));
|
|
150
|
+
}
|
|
151
|
+
for (const [k, v] of collectSharedHooks(".kiro/hooks")) {
|
|
152
|
+
files.set(k, v);
|
|
146
153
|
}
|
|
147
154
|
return files;
|
|
148
155
|
},
|
|
@@ -150,79 +157,116 @@ const PLATFORM_FUNCTIONS = {
|
|
|
150
157
|
gemini: {
|
|
151
158
|
configure: configureGemini,
|
|
152
159
|
collectTemplates: () => {
|
|
160
|
+
const ctx = AI_TOOLS.gemini.templateContext;
|
|
153
161
|
const files = new Map();
|
|
154
|
-
for (const cmd of
|
|
155
|
-
|
|
162
|
+
for (const cmd of resolveCommands(ctx)) {
|
|
163
|
+
const toml = `description = "Trellis: ${cmd.name}"\n\nprompt = """\n${cmd.content}\n"""\n`;
|
|
164
|
+
files.set(`.gemini/commands/trellis/${cmd.name}.toml`, toml);
|
|
165
|
+
}
|
|
166
|
+
for (const skill of resolveSkills(ctx)) {
|
|
167
|
+
files.set(`.gemini/skills/${skill.name}/SKILL.md`, skill.content);
|
|
168
|
+
}
|
|
169
|
+
for (const agent of applyPullBasedPreludeMarkdown(getGeminiAgents())) {
|
|
170
|
+
files.set(`.gemini/agents/${agent.name}.md`, agent.content);
|
|
156
171
|
}
|
|
172
|
+
for (const [k, v] of collectSharedHooks(".gemini/hooks", {
|
|
173
|
+
exclude: PULL_BASED_HOOK_EXCLUDE,
|
|
174
|
+
})) {
|
|
175
|
+
files.set(k, v);
|
|
176
|
+
}
|
|
177
|
+
files.set(".gemini/settings.json", resolvePlaceholders(getGeminiSettings()));
|
|
157
178
|
return files;
|
|
158
179
|
},
|
|
159
180
|
},
|
|
160
181
|
antigravity: {
|
|
161
182
|
configure: configureAntigravity,
|
|
162
|
-
collectTemplates: () => {
|
|
163
|
-
const files = new Map();
|
|
164
|
-
for (const workflow of getAntigravityWorkflows()) {
|
|
165
|
-
files.set(`.agent/workflows/${workflow.name}.md`, workflow.content);
|
|
166
|
-
}
|
|
167
|
-
return files;
|
|
168
|
-
},
|
|
183
|
+
collectTemplates: () => collectBothTemplates(AI_TOOLS.antigravity.templateContext, (n) => `.agent/workflows/${n}.md`, ".agent/skills"),
|
|
169
184
|
},
|
|
170
185
|
windsurf: {
|
|
171
186
|
configure: configureWindsurf,
|
|
172
|
-
collectTemplates: () => {
|
|
173
|
-
const files = new Map();
|
|
174
|
-
for (const workflow of getAllWindsurfWorkflows()) {
|
|
175
|
-
files.set(`.windsurf/workflows/${workflow.name}.md`, workflow.content);
|
|
176
|
-
}
|
|
177
|
-
return files;
|
|
178
|
-
},
|
|
187
|
+
collectTemplates: () => collectBothTemplates(AI_TOOLS.windsurf.templateContext, (n) => `.windsurf/workflows/trellis-${n}.md`, ".windsurf/skills"),
|
|
179
188
|
},
|
|
180
189
|
qoder: {
|
|
181
190
|
configure: configureQoder,
|
|
182
191
|
collectTemplates: () => {
|
|
183
192
|
const files = new Map();
|
|
184
|
-
for (const
|
|
185
|
-
files.set(`.qoder/skills/${
|
|
193
|
+
for (const s of resolveAllAsSkills(AI_TOOLS.qoder.templateContext)) {
|
|
194
|
+
files.set(`.qoder/skills/${s.name}/SKILL.md`, s.content);
|
|
195
|
+
}
|
|
196
|
+
for (const agent of applyPullBasedPreludeMarkdown(getQoderAgents())) {
|
|
197
|
+
files.set(`.qoder/agents/${agent.name}.md`, agent.content);
|
|
186
198
|
}
|
|
199
|
+
for (const [k, v] of collectSharedHooks(".qoder/hooks", {
|
|
200
|
+
exclude: PULL_BASED_HOOK_EXCLUDE,
|
|
201
|
+
})) {
|
|
202
|
+
files.set(k, v);
|
|
203
|
+
}
|
|
204
|
+
const settings = getQoderSettings();
|
|
205
|
+
files.set(`.qoder/${settings.targetPath}`, resolvePlaceholders(settings.content));
|
|
187
206
|
return files;
|
|
188
207
|
},
|
|
189
208
|
},
|
|
190
209
|
codebuddy: {
|
|
191
210
|
configure: configureCodebuddy,
|
|
192
211
|
collectTemplates: () => {
|
|
193
|
-
const files =
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
212
|
+
const files = collectBothTemplates(AI_TOOLS.codebuddy.templateContext, (n) => `.codebuddy/commands/trellis/${n}.md`, ".codebuddy/skills");
|
|
213
|
+
for (const agent of getCodebuddyAgents()) {
|
|
214
|
+
files.set(`.codebuddy/agents/${agent.name}.md`, agent.content);
|
|
215
|
+
}
|
|
216
|
+
for (const [k, v] of collectSharedHooks(".codebuddy/hooks")) {
|
|
217
|
+
files.set(k, v);
|
|
197
218
|
}
|
|
219
|
+
const settings = getCodebuddySettings();
|
|
220
|
+
files.set(`.codebuddy/${settings.targetPath}`, resolvePlaceholders(settings.content));
|
|
198
221
|
return files;
|
|
199
222
|
},
|
|
200
223
|
},
|
|
201
224
|
copilot: {
|
|
202
225
|
configure: configureCopilot,
|
|
203
226
|
collectTemplates: () => {
|
|
227
|
+
const ctx = AI_TOOLS.copilot.templateContext;
|
|
204
228
|
const files = new Map();
|
|
205
|
-
for (const
|
|
206
|
-
files.set(`.github/prompts/${
|
|
229
|
+
for (const cmd of resolveCommands(ctx)) {
|
|
230
|
+
files.set(`.github/prompts/${cmd.name}.prompt.md`, cmd.content);
|
|
207
231
|
}
|
|
232
|
+
for (const skill of resolveSkills(ctx)) {
|
|
233
|
+
files.set(`.github/skills/${skill.name}/SKILL.md`, skill.content);
|
|
234
|
+
}
|
|
235
|
+
// Copilot's own session-start hook
|
|
208
236
|
for (const hook of getCopilotHooks()) {
|
|
209
237
|
files.set(`.github/copilot/hooks/${hook.name}`, hook.content);
|
|
210
238
|
}
|
|
211
|
-
//
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
239
|
+
// Shared hooks: skip session-start (Copilot has its own) and
|
|
240
|
+
// inject-subagent-context (Copilot is class-2 / pull-based).
|
|
241
|
+
for (const hook of getSharedHookScripts()) {
|
|
242
|
+
if (hook.name === "session-start.py")
|
|
243
|
+
continue;
|
|
244
|
+
if (hook.name === "inject-subagent-context.py")
|
|
245
|
+
continue;
|
|
246
|
+
files.set(`.github/copilot/hooks/${hook.name}`, hook.content);
|
|
247
|
+
}
|
|
248
|
+
// Agents: reuse Cursor content + prepend pull-based prelude
|
|
249
|
+
for (const agent of applyPullBasedPreludeMarkdown(getCursorAgents())) {
|
|
250
|
+
files.set(`.github/agents/${agent.name}.agent.md`, agent.content);
|
|
251
|
+
}
|
|
252
|
+
const hooksConfig = resolvePlaceholders(getCopilotHooksConfig());
|
|
253
|
+
files.set(".github/copilot/hooks.json", hooksConfig);
|
|
254
|
+
files.set(".github/hooks/trellis.json", hooksConfig);
|
|
215
255
|
return files;
|
|
216
256
|
},
|
|
217
257
|
},
|
|
218
258
|
droid: {
|
|
219
259
|
configure: configureDroid,
|
|
220
260
|
collectTemplates: () => {
|
|
221
|
-
const files =
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
261
|
+
const files = collectBothTemplates(AI_TOOLS.droid.templateContext, (n) => `.factory/commands/trellis/${n}.md`, ".factory/skills");
|
|
262
|
+
for (const droid of getDroidDroids()) {
|
|
263
|
+
files.set(`.factory/droids/${droid.name}.md`, droid.content);
|
|
264
|
+
}
|
|
265
|
+
for (const [k, v] of collectSharedHooks(".factory/hooks")) {
|
|
266
|
+
files.set(k, v);
|
|
225
267
|
}
|
|
268
|
+
const settings = getDroidSettings();
|
|
269
|
+
files.set(`.factory/${settings.targetPath}`, resolvePlaceholders(settings.content));
|
|
226
270
|
return files;
|
|
227
271
|
},
|
|
228
272
|
},
|
|
@@ -232,7 +276,7 @@ const PLATFORM_FUNCTIONS = {
|
|
|
232
276
|
// =============================================================================
|
|
233
277
|
/** All platform IDs */
|
|
234
278
|
export const PLATFORM_IDS = Object.keys(AI_TOOLS);
|
|
235
|
-
/** All platform config directory names (e.g., [".claude", ".cursor", ".
|
|
279
|
+
/** All platform config directory names (e.g., [".claude", ".cursor", ".opencode"]) */
|
|
236
280
|
export const CONFIG_DIRS = PLATFORM_IDS.map((id) => AI_TOOLS[id].configDir);
|
|
237
281
|
/** All managed paths for every platform (primary configDir + extra managed paths). */
|
|
238
282
|
export const PLATFORM_MANAGED_DIRS = PLATFORM_IDS.flatMap((id) => getManagedPaths(id));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/configurators/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,QAAQ,EACR,eAAe,GAGhB,MAAM,sBAAsB,CAAC;AAE9B,yBAAyB;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,kBAAkB,E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W;IAEX,OAAO,kBAAkB,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;AACvD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,wBAAwB,CACtC,UAAkB;IAElB,OAAO,kBAAkB,CAAC,UAAU,CAAC,CAAC,gBAAgB,EAAE,EAAE,CAAC;AAC7D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB;IAMhC,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QAC/B,GAAG,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,OAAO;QACzB,IAAI,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,IAAI;QACvB,cAAc,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,cAAc;QAC3C,UAAU,EAAE,EAAE;KACf,CAAC,CAAC,CAAC;AACN,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,IAAY;IACzC,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Kilo CLI
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Kilo CLI does not support hooks, so only workflows are copied.
|
|
2
|
+
* Configure Kilo CLI:
|
|
3
|
+
* - workflows/ — start + finish-work as slash commands
|
|
4
|
+
* - skills/trellis-{name}/SKILL.md — other 5 as auto-triggered skills
|
|
6
5
|
*/
|
|
7
6
|
export declare function configureKilo(cwd: string): Promise<void>;
|
|
8
7
|
//# sourceMappingURL=kilo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kilo.d.ts","sourceRoot":"","sources":["../../src/configurators/kilo.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kilo.d.ts","sourceRoot":"","sources":["../../src/configurators/kilo.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAgB9D"}
|
|
@@ -1,52 +1,25 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Kilo CLI configurator
|
|
3
|
-
*
|
|
4
|
-
* Configures Kilo CLI by copying templates from src/templates/kilo/.
|
|
5
|
-
* Kilo CLI does not support hooks, so only workflows are copied.
|
|
6
|
-
*/
|
|
7
|
-
import { readFileSync, readdirSync, statSync } from "node:fs";
|
|
8
1
|
import path from "node:path";
|
|
9
|
-
import {
|
|
2
|
+
import { AI_TOOLS } from "../types/ai-tools.js";
|
|
10
3
|
import { ensureDir, writeFile } from "../utils/file-writer.js";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
".
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
if (filename.endsWith(pattern) || filename === pattern) {
|
|
24
|
-
return true;
|
|
25
|
-
}
|
|
4
|
+
import { resolveCommands, resolveSkills } from "./shared.js";
|
|
5
|
+
/**
|
|
6
|
+
* Configure Kilo CLI:
|
|
7
|
+
* - workflows/ — start + finish-work as slash commands
|
|
8
|
+
* - skills/trellis-{name}/SKILL.md — other 5 as auto-triggered skills
|
|
9
|
+
*/
|
|
10
|
+
export async function configureKilo(cwd) {
|
|
11
|
+
const ctx = AI_TOOLS.kilo.templateContext;
|
|
12
|
+
const workflowsDir = path.join(cwd, ".kilocode", "workflows");
|
|
13
|
+
ensureDir(workflowsDir);
|
|
14
|
+
for (const cmd of resolveCommands(ctx)) {
|
|
15
|
+
await writeFile(path.join(workflowsDir, `${cmd.name}.md`), cmd.content);
|
|
26
16
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
continue;
|
|
34
|
-
}
|
|
35
|
-
const srcPath = path.join(src, entry);
|
|
36
|
-
const destPath = path.join(dest, entry);
|
|
37
|
-
const stat = statSync(srcPath);
|
|
38
|
-
if (stat.isDirectory()) {
|
|
39
|
-
await copyDirFiltered(srcPath, destPath);
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
const content = readFileSync(srcPath, "utf-8");
|
|
43
|
-
await writeFile(destPath, content);
|
|
44
|
-
}
|
|
17
|
+
const skillsDir = path.join(cwd, ".kilocode", "skills");
|
|
18
|
+
ensureDir(skillsDir);
|
|
19
|
+
for (const skill of resolveSkills(ctx)) {
|
|
20
|
+
const skillDir = path.join(skillsDir, skill.name);
|
|
21
|
+
ensureDir(skillDir);
|
|
22
|
+
await writeFile(path.join(skillDir, "SKILL.md"), skill.content);
|
|
45
23
|
}
|
|
46
24
|
}
|
|
47
|
-
export async function configureKilo(cwd) {
|
|
48
|
-
const sourcePath = getKiloTemplatePath();
|
|
49
|
-
const destPath = path.join(cwd, ".kilocode");
|
|
50
|
-
await copyDirFiltered(sourcePath, destPath);
|
|
51
|
-
}
|
|
52
25
|
//# sourceMappingURL=kilo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kilo.js","sourceRoot":"","sources":["../../src/configurators/kilo.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"kilo.js","sourceRoot":"","sources":["../../src/configurators/kilo.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE7D;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,GAAW;IAC7C,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC;IAE1C,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;IAC9D,SAAS,CAAC,YAAY,CAAC,CAAC;IACxB,KAAK,MAAM,GAAG,IAAI,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC;QACvC,MAAM,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,GAAG,GAAG,CAAC,IAAI,KAAK,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IACxD,SAAS,CAAC,SAAS,CAAC,CAAC;IACrB,KAAK,MAAM,KAAK,IAAI,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC;QACvC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QAClD,SAAS,CAAC,QAAQ,CAAC,CAAC;QACpB,MAAM,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAClE,CAAC;AACH,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Configure Kiro Code
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* -
|
|
2
|
+
* Configure Kiro Code:
|
|
3
|
+
* - skills/trellis-{name}/SKILL.md — all templates as auto-triggered skills
|
|
4
|
+
* - agents/{name}.json — sub-agent definitions (JSON, with hooks embedded)
|
|
5
|
+
* - hooks/*.py — shared hook scripts (referenced by agent JSON hooks)
|
|
6
6
|
*/
|
|
7
7
|
export declare function configureKiro(cwd: string): Promise<void>;
|
|
8
8
|
//# sourceMappingURL=kiro.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kiro.d.ts","sourceRoot":"","sources":["../../src/configurators/kiro.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kiro.d.ts","sourceRoot":"","sources":["../../src/configurators/kiro.ts"],"names":[],"mappings":"AAWA;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAkB9D"}
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { AI_TOOLS } from "../types/ai-tools.js";
|
|
3
|
+
import { resolvePlaceholders, resolveAllAsSkills, writeSkills, writeAgents, writeSharedHooks, } from "./shared.js";
|
|
4
|
+
import { getAllAgents } from "../templates/kiro/index.js";
|
|
4
5
|
/**
|
|
5
|
-
* Configure Kiro Code
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* -
|
|
6
|
+
* Configure Kiro Code:
|
|
7
|
+
* - skills/trellis-{name}/SKILL.md — all templates as auto-triggered skills
|
|
8
|
+
* - agents/{name}.json — sub-agent definitions (JSON, with hooks embedded)
|
|
9
|
+
* - hooks/*.py — shared hook scripts (referenced by agent JSON hooks)
|
|
9
10
|
*/
|
|
10
11
|
export async function configureKiro(cwd) {
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
const config = AI_TOOLS.kiro;
|
|
13
|
+
// Kiro configDir is ".kiro/skills" — agents and hooks go under ".kiro/"
|
|
14
|
+
const kiroRoot = path.join(cwd, ".kiro");
|
|
15
|
+
await writeSkills(path.join(kiroRoot, "skills"), resolveAllAsSkills(config.templateContext));
|
|
16
|
+
// Agents (JSON format, with {{PYTHON_CMD}} resolved)
|
|
17
|
+
const agents = getAllAgents().map((a) => ({
|
|
18
|
+
...a,
|
|
19
|
+
content: resolvePlaceholders(a.content),
|
|
20
|
+
}));
|
|
21
|
+
await writeAgents(path.join(kiroRoot, "agents"), agents, ".json");
|
|
22
|
+
await writeSharedHooks(path.join(kiroRoot, "hooks"));
|
|
19
23
|
}
|
|
20
24
|
//# sourceMappingURL=kiro.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kiro.js","sourceRoot":"","sources":["../../src/configurators/kiro.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"kiro.js","sourceRoot":"","sources":["../../src/configurators/kiro.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,WAAW,EACX,gBAAgB,GACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,GAAW;IAC7C,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC;IAC7B,wEAAwE;IACxE,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAEzC,MAAM,WAAW,CACf,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAC7B,kBAAkB,CAAC,MAAM,CAAC,eAAe,CAAC,CAC3C,CAAC;IAEF,qDAAqD;IACrD,MAAM,MAAM,GAAG,YAAY,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACxC,GAAG,CAAC;QACJ,OAAO,EAAE,mBAAmB,CAAC,CAAC,CAAC,OAAO,CAAC;KACxC,CAAC,CAAC,CAAC;IACJ,MAAM,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IAElE,MAAM,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -1,32 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* OpenCode
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* This uses the dogfooding pattern - the same files used by Trellis project itself.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Configure OpenCode by copying from templates
|
|
9
|
-
*
|
|
10
|
-
* The opencode templates include:
|
|
11
|
-
* - commands/ - Slash commands
|
|
12
|
-
* - agents/ - Multi-agent pipeline configurations
|
|
13
|
-
* - plugins/ - Context injection plugins
|
|
14
|
-
* - lib/ - Shared JavaScript utilities
|
|
15
|
-
* - package.json - Plugin dependencies
|
|
2
|
+
* Configure OpenCode:
|
|
3
|
+
* - agents/, plugins/, lib/, package.json from platform-specific templates
|
|
4
|
+
* - commands/trellis/ from common templates (resolved with OpenCode context)
|
|
16
5
|
*/
|
|
17
6
|
export declare function configureOpenCode(cwd: string): Promise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* Configure OpenCode agents for Multi-Agent Pipeline
|
|
20
|
-
*
|
|
21
|
-
* @deprecated Agents are now included in the main .opencode directory copy.
|
|
22
|
-
* This function is kept for backwards compatibility but does nothing.
|
|
23
|
-
*/
|
|
24
|
-
export declare function configureOpenCodeAgents(_cwd: string): Promise<void>;
|
|
25
|
-
/**
|
|
26
|
-
* Configure OpenCode with full Multi-Agent Pipeline support
|
|
27
|
-
*
|
|
28
|
-
* This is now equivalent to just calling configureOpenCode since the entire
|
|
29
|
-
* .opencode directory is copied at once.
|
|
30
|
-
*/
|
|
31
|
-
export declare function configureOpenCodeFull(cwd: string): Promise<void>;
|
|
32
7
|
//# sourceMappingURL=opencode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opencode.d.ts","sourceRoot":"","sources":["../../src/configurators/opencode.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"opencode.d.ts","sourceRoot":"","sources":["../../src/configurators/opencode.ts"],"names":[],"mappings":"AAmDA;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAsBlE"}
|