@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
package/dist/types/ai-tools.d.ts
CHANGED
|
@@ -6,16 +6,32 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* Supported AI coding tools
|
|
8
8
|
*/
|
|
9
|
-
export type AITool = "claude-code" | "cursor" | "opencode" | "
|
|
9
|
+
export type AITool = "claude-code" | "cursor" | "opencode" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "windsurf" | "qoder" | "codebuddy" | "copilot" | "droid";
|
|
10
10
|
/**
|
|
11
11
|
* Template directory categories
|
|
12
12
|
*/
|
|
13
|
-
export type TemplateDir = "common" | "claude" | "cursor" | "opencode" | "
|
|
13
|
+
export type TemplateDir = "common" | "claude" | "cursor" | "opencode" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "windsurf" | "qoder" | "codebuddy" | "copilot" | "droid";
|
|
14
14
|
/**
|
|
15
15
|
* CLI flag names for platform selection (e.g., --claude, --cursor, --kilo, --kiro, --gemini, --antigravity)
|
|
16
16
|
* Must match keys in InitOptions (src/commands/init.ts)
|
|
17
17
|
*/
|
|
18
|
-
export type CliFlag = "claude" | "cursor" | "opencode" | "
|
|
18
|
+
export type CliFlag = "claude" | "cursor" | "opencode" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "windsurf" | "qoder" | "codebuddy" | "copilot" | "droid";
|
|
19
|
+
/**
|
|
20
|
+
* Template context for placeholder resolution.
|
|
21
|
+
* Controls how common templates are rendered per platform.
|
|
22
|
+
*/
|
|
23
|
+
export interface TemplateContext {
|
|
24
|
+
/** Prefix for cross-referencing other commands/skills */
|
|
25
|
+
cmdRefPrefix: "/trellis:" | "/trellis-" | "$" | "/";
|
|
26
|
+
/** Description of AI executor actions shown in role tables */
|
|
27
|
+
executorAI: "Bash scripts or Task calls" | "Bash scripts or tool calls" | "Bash scripts or file reads";
|
|
28
|
+
/** Label for user-invocable actions */
|
|
29
|
+
userActionLabel: "Slash commands" | "Skills" | "Workflows" | "Prompts";
|
|
30
|
+
/** Platform supports spawning sub-agents with isolated context */
|
|
31
|
+
agentCapable: boolean;
|
|
32
|
+
/** Platform has hook system (SessionStart, PreToolUse) */
|
|
33
|
+
hasHooks: boolean;
|
|
34
|
+
}
|
|
19
35
|
/**
|
|
20
36
|
* Configuration for an AI tool
|
|
21
37
|
*/
|
|
@@ -40,6 +56,8 @@ export interface AIToolConfig {
|
|
|
40
56
|
defaultChecked: boolean;
|
|
41
57
|
/** Whether this tool uses Python hooks (affects Windows encoding detection) */
|
|
42
58
|
hasPythonHooks: boolean;
|
|
59
|
+
/** Template context for placeholder resolution in common templates */
|
|
60
|
+
templateContext: TemplateContext;
|
|
43
61
|
}
|
|
44
62
|
/**
|
|
45
63
|
* Registry of all supported AI tools and their configurations.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-tools.d.ts","sourceRoot":"","sources":["../../src/types/ai-tools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,MAAM,MAAM,GACd,aAAa,GACb,QAAQ,GACR,UAAU,GACV,OAAO,GACP,
|
|
1
|
+
{"version":3,"file":"ai-tools.d.ts","sourceRoot":"","sources":["../../src/types/ai-tools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,MAAM,MAAM,GACd,aAAa,GACb,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,aAAa,GACb,UAAU,GACV,OAAO,GACP,WAAW,GACX,SAAS,GACT,OAAO,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,WAAW,GACnB,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,aAAa,GACb,UAAU,GACV,OAAO,GACP,WAAW,GACX,SAAS,GACT,OAAO,CAAC;AAEZ;;;GAGG;AACH,MAAM,MAAM,OAAO,GACf,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,aAAa,GACb,UAAU,GACV,OAAO,GACP,WAAW,GACX,SAAS,GACT,OAAO,CAAC;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22,13 @@ export const AI_TOOLS = {
|
|
|
22
22
|
cliFlag: "claude",
|
|
23
23
|
defaultChecked: true,
|
|
24
24
|
hasPythonHooks: true,
|
|
25
|
+
templateContext: {
|
|
26
|
+
cmdRefPrefix: "/trellis:",
|
|
27
|
+
executorAI: "Bash scripts or Task calls",
|
|
28
|
+
userActionLabel: "Slash commands",
|
|
29
|
+
agentCapable: true,
|
|
30
|
+
hasHooks: true,
|
|
31
|
+
},
|
|
25
32
|
},
|
|
26
33
|
cursor: {
|
|
27
34
|
name: "Cursor",
|
|
@@ -29,7 +36,14 @@ export const AI_TOOLS = {
|
|
|
29
36
|
configDir: ".cursor",
|
|
30
37
|
cliFlag: "cursor",
|
|
31
38
|
defaultChecked: true,
|
|
32
|
-
hasPythonHooks:
|
|
39
|
+
hasPythonHooks: true,
|
|
40
|
+
templateContext: {
|
|
41
|
+
cmdRefPrefix: "/trellis-",
|
|
42
|
+
executorAI: "Bash scripts or Task calls",
|
|
43
|
+
userActionLabel: "Slash commands",
|
|
44
|
+
agentCapable: true,
|
|
45
|
+
hasHooks: true,
|
|
46
|
+
},
|
|
33
47
|
},
|
|
34
48
|
opencode: {
|
|
35
49
|
name: "OpenCode",
|
|
@@ -38,14 +52,13 @@ export const AI_TOOLS = {
|
|
|
38
52
|
cliFlag: "opencode",
|
|
39
53
|
defaultChecked: false,
|
|
40
54
|
hasPythonHooks: false,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
hasPythonHooks: true,
|
|
55
|
+
templateContext: {
|
|
56
|
+
cmdRefPrefix: "/trellis:",
|
|
57
|
+
executorAI: "Bash scripts or Task calls",
|
|
58
|
+
userActionLabel: "Slash commands",
|
|
59
|
+
agentCapable: true,
|
|
60
|
+
hasHooks: false,
|
|
61
|
+
},
|
|
49
62
|
},
|
|
50
63
|
codex: {
|
|
51
64
|
name: "Codex (also writes .agents/skills/ — read by Cursor, Gemini CLI, GitHub Copilot, Amp, Kimi Code)",
|
|
@@ -55,6 +68,13 @@ export const AI_TOOLS = {
|
|
|
55
68
|
cliFlag: "codex",
|
|
56
69
|
defaultChecked: false,
|
|
57
70
|
hasPythonHooks: true,
|
|
71
|
+
templateContext: {
|
|
72
|
+
cmdRefPrefix: "$",
|
|
73
|
+
executorAI: "Bash scripts or tool calls",
|
|
74
|
+
userActionLabel: "Skills",
|
|
75
|
+
agentCapable: true,
|
|
76
|
+
hasHooks: false,
|
|
77
|
+
},
|
|
58
78
|
},
|
|
59
79
|
kilo: {
|
|
60
80
|
name: "Kilo CLI",
|
|
@@ -63,14 +83,29 @@ export const AI_TOOLS = {
|
|
|
63
83
|
cliFlag: "kilo",
|
|
64
84
|
defaultChecked: false,
|
|
65
85
|
hasPythonHooks: false,
|
|
86
|
+
templateContext: {
|
|
87
|
+
cmdRefPrefix: "/trellis:",
|
|
88
|
+
executorAI: "Bash scripts or file reads",
|
|
89
|
+
userActionLabel: "Workflows",
|
|
90
|
+
agentCapable: false,
|
|
91
|
+
hasHooks: false,
|
|
92
|
+
},
|
|
66
93
|
},
|
|
67
94
|
kiro: {
|
|
68
95
|
name: "Kiro Code",
|
|
69
96
|
templateDirs: ["common", "kiro"],
|
|
70
97
|
configDir: ".kiro/skills",
|
|
98
|
+
extraManagedPaths: [".kiro/agents", ".kiro/hooks"],
|
|
71
99
|
cliFlag: "kiro",
|
|
72
100
|
defaultChecked: false,
|
|
73
|
-
hasPythonHooks:
|
|
101
|
+
hasPythonHooks: true,
|
|
102
|
+
templateContext: {
|
|
103
|
+
cmdRefPrefix: "$",
|
|
104
|
+
executorAI: "Bash scripts or tool calls",
|
|
105
|
+
userActionLabel: "Skills",
|
|
106
|
+
agentCapable: true,
|
|
107
|
+
hasHooks: true,
|
|
108
|
+
},
|
|
74
109
|
},
|
|
75
110
|
gemini: {
|
|
76
111
|
name: "Gemini CLI",
|
|
@@ -78,23 +113,46 @@ export const AI_TOOLS = {
|
|
|
78
113
|
configDir: ".gemini",
|
|
79
114
|
cliFlag: "gemini",
|
|
80
115
|
defaultChecked: false,
|
|
81
|
-
hasPythonHooks:
|
|
116
|
+
hasPythonHooks: true,
|
|
117
|
+
templateContext: {
|
|
118
|
+
cmdRefPrefix: "/trellis:",
|
|
119
|
+
executorAI: "Bash scripts or tool calls",
|
|
120
|
+
userActionLabel: "Slash commands",
|
|
121
|
+
agentCapable: true,
|
|
122
|
+
hasHooks: true,
|
|
123
|
+
},
|
|
82
124
|
},
|
|
83
125
|
antigravity: {
|
|
84
126
|
name: "Antigravity",
|
|
85
127
|
templateDirs: ["common", "antigravity"],
|
|
86
128
|
configDir: ".agent/workflows",
|
|
129
|
+
extraManagedPaths: [".agent/skills"],
|
|
87
130
|
cliFlag: "antigravity",
|
|
88
131
|
defaultChecked: false,
|
|
89
132
|
hasPythonHooks: false,
|
|
133
|
+
templateContext: {
|
|
134
|
+
cmdRefPrefix: "/",
|
|
135
|
+
executorAI: "Bash scripts or file reads",
|
|
136
|
+
userActionLabel: "Workflows",
|
|
137
|
+
agentCapable: false,
|
|
138
|
+
hasHooks: false,
|
|
139
|
+
},
|
|
90
140
|
},
|
|
91
141
|
windsurf: {
|
|
92
142
|
name: "Windsurf",
|
|
93
143
|
templateDirs: ["common", "windsurf"],
|
|
94
144
|
configDir: ".windsurf/workflows",
|
|
145
|
+
extraManagedPaths: [".windsurf/skills"],
|
|
95
146
|
cliFlag: "windsurf",
|
|
96
147
|
defaultChecked: false,
|
|
97
148
|
hasPythonHooks: false,
|
|
149
|
+
templateContext: {
|
|
150
|
+
cmdRefPrefix: "/trellis-",
|
|
151
|
+
executorAI: "Bash scripts or file reads",
|
|
152
|
+
userActionLabel: "Workflows",
|
|
153
|
+
agentCapable: false,
|
|
154
|
+
hasHooks: false,
|
|
155
|
+
},
|
|
98
156
|
},
|
|
99
157
|
qoder: {
|
|
100
158
|
name: "Qoder",
|
|
@@ -102,7 +160,14 @@ export const AI_TOOLS = {
|
|
|
102
160
|
configDir: ".qoder",
|
|
103
161
|
cliFlag: "qoder",
|
|
104
162
|
defaultChecked: false,
|
|
105
|
-
hasPythonHooks:
|
|
163
|
+
hasPythonHooks: true,
|
|
164
|
+
templateContext: {
|
|
165
|
+
cmdRefPrefix: "$",
|
|
166
|
+
executorAI: "Bash scripts or tool calls",
|
|
167
|
+
userActionLabel: "Skills",
|
|
168
|
+
agentCapable: true,
|
|
169
|
+
hasHooks: true,
|
|
170
|
+
},
|
|
106
171
|
},
|
|
107
172
|
codebuddy: {
|
|
108
173
|
name: "CodeBuddy",
|
|
@@ -110,16 +175,35 @@ export const AI_TOOLS = {
|
|
|
110
175
|
configDir: ".codebuddy",
|
|
111
176
|
cliFlag: "codebuddy",
|
|
112
177
|
defaultChecked: false,
|
|
113
|
-
hasPythonHooks:
|
|
178
|
+
hasPythonHooks: true,
|
|
179
|
+
templateContext: {
|
|
180
|
+
cmdRefPrefix: "/trellis:",
|
|
181
|
+
executorAI: "Bash scripts or Task calls",
|
|
182
|
+
userActionLabel: "Slash commands",
|
|
183
|
+
agentCapable: true,
|
|
184
|
+
hasHooks: true,
|
|
185
|
+
},
|
|
114
186
|
},
|
|
115
187
|
copilot: {
|
|
116
188
|
name: "GitHub Copilot",
|
|
117
189
|
templateDirs: ["common", "copilot"],
|
|
118
190
|
configDir: ".github/copilot",
|
|
119
|
-
extraManagedPaths: [
|
|
191
|
+
extraManagedPaths: [
|
|
192
|
+
".github/agents",
|
|
193
|
+
".github/hooks",
|
|
194
|
+
".github/prompts",
|
|
195
|
+
".github/skills",
|
|
196
|
+
],
|
|
120
197
|
cliFlag: "copilot",
|
|
121
198
|
defaultChecked: false,
|
|
122
199
|
hasPythonHooks: true,
|
|
200
|
+
templateContext: {
|
|
201
|
+
cmdRefPrefix: "/",
|
|
202
|
+
executorAI: "Bash scripts or tool calls",
|
|
203
|
+
userActionLabel: "Prompts",
|
|
204
|
+
agentCapable: true,
|
|
205
|
+
hasHooks: true,
|
|
206
|
+
},
|
|
123
207
|
},
|
|
124
208
|
droid: {
|
|
125
209
|
name: "Factory Droid",
|
|
@@ -127,7 +211,14 @@ export const AI_TOOLS = {
|
|
|
127
211
|
configDir: ".factory",
|
|
128
212
|
cliFlag: "droid",
|
|
129
213
|
defaultChecked: false,
|
|
130
|
-
hasPythonHooks:
|
|
214
|
+
hasPythonHooks: true,
|
|
215
|
+
templateContext: {
|
|
216
|
+
cmdRefPrefix: "/trellis-",
|
|
217
|
+
executorAI: "Bash scripts or Task calls",
|
|
218
|
+
userActionLabel: "Slash commands",
|
|
219
|
+
agentCapable: true,
|
|
220
|
+
hasHooks: true,
|
|
221
|
+
},
|
|
131
222
|
},
|
|
132
223
|
};
|
|
133
224
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-tools.js","sourceRoot":"","sources":["../../src/types/ai-tools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"ai-tools.js","sourceRoot":"","sources":["../../src/types/ai-tools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA0GH;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAiC;IACpD,aAAa,EAAE;QACb,IAAI,EAAE,aAAa;QACnB,YAAY,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;QAClC,SAAS,EAAE,SAAS;QACpB,OAAO,EAAE,QAAQ;QACjB,cAAc,EAAE,IAAI;QACpB,cAAc,EAAE,IAAI;QACpB,eAAe,EAAE;YACf,YAAY,EAAE,WAAW;YACzB,UAAU,EAAE,4BAA4B;YACxC,eAAe,EAAE,gBAAgB;YACjC,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;SACf;KACF;IACD,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;QAClC,SAAS,EAAE,SAAS;QACpB,OAAO,EAAE,QAAQ;QACjB,cAAc,EAAE,IAAI;QACpB,cAAc,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AAU,EAAE,4BAA4B;YACxC,eAAe,EAAE,SAAS;YAC1B,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;SACf;KACF;IACD,KAAK,EAAE;QACL,IAAI,EAAE,eAAe;QACrB,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;QACjC,SAAS,EAAE,UAAU;QACrB,OAAO,EAAE,OAAO;QAChB,cAAc,EAAE,KAAK;QACrB,cAAc,EAAE,IAAI;QACpB,eAAe,EAAE;YACf,YAAY,EAAE,WAAW;YACzB,UAAU,EAAE,4BAA4B;YACxC,eAAe,EAAE,gBAAgB;YACjC,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,IAAY;IACxC,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC;AACxB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC9B,MAAM,KAAK,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACjC,IAAI,MAAM,CAAC,mBAAmB,EAAE,CAAC;QAC/B,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC/B,CAAC;IACD,IAAI,MAAM,CAAC,iBAAiB,EAAE,CAAC;QAC7B,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,YAAY,CAAC;AACrC,CAAC"}
|
|
@@ -14,8 +14,15 @@ export interface MigrationItem {
|
|
|
14
14
|
from: string;
|
|
15
15
|
/** Target path for renames (relative to project root) */
|
|
16
16
|
to?: string;
|
|
17
|
-
/** Human-readable description of
|
|
17
|
+
/** Human-readable description of WHAT this migration does */
|
|
18
18
|
description?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Optional context shown in the "confirm" prompt explaining WHY the user is
|
|
21
|
+
* being asked about this specific file. Use this for version-specific nuance
|
|
22
|
+
* (e.g. a known hash-tracking gap from a prior CLI version) that would
|
|
23
|
+
* otherwise have to be hardcoded in update.ts. Keep it short (1-2 sentences).
|
|
24
|
+
*/
|
|
25
|
+
reason?: string;
|
|
19
26
|
/** Known template hashes for safe-file-delete (only delete if content matches) */
|
|
20
27
|
allowed_hashes?: string[];
|
|
21
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration.d.ts","sourceRoot":"","sources":["../../src/types/migration.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,+BAA+B;IAC/B,IAAI,EAAE,QAAQ,GAAG,YAAY,GAAG,QAAQ,GAAG,kBAAkB,CAAC;IAC9D,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,yDAAyD;IACzD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ
|
|
1
|
+
{"version":3,"file":"migration.d.ts","sourceRoot":"","sources":["../../src/types/migration.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,+BAA+B;IAC/B,IAAI,EAAE,QAAQ,GAAG,YAAY,GAAG,QAAQ,GAAG,kBAAkB,CAAC;IAC9D,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,yDAAyD;IACzD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kFAAkF;IAClF,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,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AAE,MAAM,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindfoldhq/trellis",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0-beta.1",
|
|
4
4
|
"description": "AI capabilities grow like ivy — Trellis provides the structure to guide them along a disciplined path",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -61,7 +61,8 @@
|
|
|
61
61
|
"url": "https://github.com/mindfold-ai/trellis.git"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
|
-
"build": "tsc && pnpm run copy-templates",
|
|
64
|
+
"build": "pnpm run clean && tsc && pnpm run copy-templates",
|
|
65
|
+
"clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
65
66
|
"copy-templates": "node scripts/copy-templates.js",
|
|
66
67
|
"dev": "tsc --watch",
|
|
67
68
|
"start": "node ./dist/cli/index.js",
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configure iFlow CLI by copying from templates
|
|
3
|
-
*
|
|
4
|
-
* The iflow templates include:
|
|
5
|
-
* - commands/ - Slash commands
|
|
6
|
-
* - agents/ - Multi-agent pipeline configurations
|
|
7
|
-
* - hooks/ - Context injection hooks
|
|
8
|
-
* - settings.json - Hook and tool configurations
|
|
9
|
-
* - AGENTS.md - Agent documentation
|
|
10
|
-
*/
|
|
11
|
-
export declare function configureIflow(cwd: string): Promise<void>;
|
|
12
|
-
/**
|
|
13
|
-
* Configure iFlow CLI agents for Multi-Agent Pipeline
|
|
14
|
-
*
|
|
15
|
-
* @deprecated Agents are now included in the main .iflow directory copy.
|
|
16
|
-
* This function is kept for backwards compatibility but does nothing.
|
|
17
|
-
*/
|
|
18
|
-
export declare function configureIflowAgents(_cwd: string): Promise<void>;
|
|
19
|
-
/**
|
|
20
|
-
* Configure iFlow CLI hooks for context injection
|
|
21
|
-
*
|
|
22
|
-
* @deprecated Hooks are now included in the main .iflow directory copy.
|
|
23
|
-
* This function is kept for backwards compatibility but does nothing.
|
|
24
|
-
*/
|
|
25
|
-
export declare function configureIflowHooks(_cwd: string): Promise<void>;
|
|
26
|
-
/**
|
|
27
|
-
* Configure iFlow CLI with full Multi-Agent Pipeline support
|
|
28
|
-
*
|
|
29
|
-
* This is now equivalent to just calling configureIflow since the entire
|
|
30
|
-
* .iflow directory is copied at once.
|
|
31
|
-
*/
|
|
32
|
-
export declare function configureIflowFull(cwd: string): Promise<void>;
|
|
33
|
-
//# sourceMappingURL=iflow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iflow.d.ts","sourceRoot":"","sources":["../../src/configurators/iflow.ts"],"names":[],"mappings":"AA2DA;;;;;;;;;GASG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAM/D;AAED;;;;;GAKG;AACH,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAGtE;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAGrE;AAED;;;;;GAKG;AACH,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEnE"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { readFileSync, readdirSync, statSync } from "node:fs";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
import { getIflowTemplatePath } from "../templates/extract.js";
|
|
4
|
-
import { ensureDir, writeFile } from "../utils/file-writer.js";
|
|
5
|
-
import { resolvePlaceholders } from "./shared.js";
|
|
6
|
-
/**
|
|
7
|
-
* Files to exclude when copying templates
|
|
8
|
-
* These are TypeScript compilation artifacts
|
|
9
|
-
*/
|
|
10
|
-
const EXCLUDE_PATTERNS = [
|
|
11
|
-
".d.ts",
|
|
12
|
-
".d.ts.map",
|
|
13
|
-
".js",
|
|
14
|
-
".js.map",
|
|
15
|
-
"__pycache__",
|
|
16
|
-
];
|
|
17
|
-
/**
|
|
18
|
-
* Check if a file should be excluded
|
|
19
|
-
*/
|
|
20
|
-
function shouldExclude(filename) {
|
|
21
|
-
for (const pattern of EXCLUDE_PATTERNS) {
|
|
22
|
-
if (filename.endsWith(pattern) || filename === pattern) {
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return false;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Recursively copy directory, excluding build artifacts
|
|
30
|
-
* Uses writeFile to handle file conflicts with the global writeMode setting
|
|
31
|
-
*/
|
|
32
|
-
async function copyDirFiltered(src, dest) {
|
|
33
|
-
ensureDir(dest);
|
|
34
|
-
for (const entry of readdirSync(src)) {
|
|
35
|
-
if (shouldExclude(entry)) {
|
|
36
|
-
continue;
|
|
37
|
-
}
|
|
38
|
-
const srcPath = path.join(src, entry);
|
|
39
|
-
const destPath = path.join(dest, entry);
|
|
40
|
-
const stat = statSync(srcPath);
|
|
41
|
-
if (stat.isDirectory()) {
|
|
42
|
-
await copyDirFiltered(srcPath, destPath);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
let content = readFileSync(srcPath, "utf-8");
|
|
46
|
-
// Replace placeholders in settings.json
|
|
47
|
-
if (entry === "settings.json") {
|
|
48
|
-
content = resolvePlaceholders(content);
|
|
49
|
-
}
|
|
50
|
-
await writeFile(destPath, content);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Configure iFlow CLI by copying from templates
|
|
56
|
-
*
|
|
57
|
-
* The iflow templates include:
|
|
58
|
-
* - commands/ - Slash commands
|
|
59
|
-
* - agents/ - Multi-agent pipeline configurations
|
|
60
|
-
* - hooks/ - Context injection hooks
|
|
61
|
-
* - settings.json - Hook and tool configurations
|
|
62
|
-
* - AGENTS.md - Agent documentation
|
|
63
|
-
*/
|
|
64
|
-
export async function configureIflow(cwd) {
|
|
65
|
-
const sourcePath = getIflowTemplatePath();
|
|
66
|
-
const destPath = path.join(cwd, ".iflow");
|
|
67
|
-
// Copy templates, excluding build artifacts
|
|
68
|
-
await copyDirFiltered(sourcePath, destPath);
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Configure iFlow CLI agents for Multi-Agent Pipeline
|
|
72
|
-
*
|
|
73
|
-
* @deprecated Agents are now included in the main .iflow directory copy.
|
|
74
|
-
* This function is kept for backwards compatibility but does nothing.
|
|
75
|
-
*/
|
|
76
|
-
export async function configureIflowAgents(_cwd) {
|
|
77
|
-
// Agents are now copied as part of configureIflow
|
|
78
|
-
// This function is kept for API compatibility
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Configure iFlow CLI hooks for context injection
|
|
82
|
-
*
|
|
83
|
-
* @deprecated Hooks are now included in the main .iflow directory copy.
|
|
84
|
-
* This function is kept for backwards compatibility but does nothing.
|
|
85
|
-
*/
|
|
86
|
-
export async function configureIflowHooks(_cwd) {
|
|
87
|
-
// Hooks are now copied as part of configureIflow
|
|
88
|
-
// This function is kept for API compatibility
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Configure iFlow CLI with full Multi-Agent Pipeline support
|
|
92
|
-
*
|
|
93
|
-
* This is now equivalent to just calling configureIflow since the entire
|
|
94
|
-
* .iflow directory is copied at once.
|
|
95
|
-
*/
|
|
96
|
-
export async function configureIflowFull(cwd) {
|
|
97
|
-
await configureIflow(cwd);
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=iflow.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iflow.js","sourceRoot":"","sources":["../../src/configurators/iflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC9D,O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I,KAAK,KAAK,eAAe,EAAE,CAAC;gBAC9B,OAAO,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC;YACzC,CAAC;YACD,MAAM,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACrC,CAAC;IACH,CAAC;AACH,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,GAAW;IAC9C,MAAM,UAAU,GAAG,oBAAoB,EAAE,CAAC;IAC1C,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAE1C,4CAA4C;IAC5C,MAAM,eAAe,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;AAC9C,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,IAAY;IACrD,kDAAkD;IAClD,8CAA8C;AAChD,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,IAAY;IACpD,iDAAiD;IACjD,8CAA8C;AAChD,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,GAAW;IAClD,MAAM,cAAc,CAAC,GAAG,CAAC,CAAC;AAC5B,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Antigravity workflow templates
|
|
3
|
-
*
|
|
4
|
-
* Antigravity uses workspace workflows under .agent/workflows/.
|
|
5
|
-
* We reuse Codex skill content as workflow content.
|
|
6
|
-
*/
|
|
7
|
-
export interface WorkflowTemplate {
|
|
8
|
-
name: string;
|
|
9
|
-
content: string;
|
|
10
|
-
}
|
|
11
|
-
export declare function getAllWorkflows(): WorkflowTemplate[];
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/antigravity/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AA6BD,wBAAgB,eAAe,IAAI,gBAAgB,EAAE,CAOpD"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Antigravity workflow templates
|
|
3
|
-
*
|
|
4
|
-
* Antigravity uses workspace workflows under .agent/workflows/.
|
|
5
|
-
* We reuse Codex skill content as workflow content.
|
|
6
|
-
*/
|
|
7
|
-
import { getAllSkills as getAllCodexSkills, } from "../codex/index.js";
|
|
8
|
-
function adaptSkillContentToWorkflow(content, workflowNames) {
|
|
9
|
-
const base = content
|
|
10
|
-
.replaceAll("Codex skills", "Antigravity workflows")
|
|
11
|
-
.replaceAll("Codex skill", "Antigravity workflow")
|
|
12
|
-
.replaceAll("Create New Skill", "Create New Workflow")
|
|
13
|
-
.replaceAll(".agents/skills/<skill-name>/SKILL.md", ".agent/workflows/<workflow-name>.md")
|
|
14
|
-
.replace(/\.agents\/skills\/([^/\s`]+)\/SKILL\.md/g, ".agent/workflows/$1.md")
|
|
15
|
-
.replaceAll(".agents/skills/", ".agent/workflows/")
|
|
16
|
-
.replaceAll("$<skill-name>", "/<workflow-name>")
|
|
17
|
-
.replaceAll("Or open /skills and select it", "Or type / and select it");
|
|
18
|
-
// Antigravity workflows are triggered with slash commands (/start), not "$skill".
|
|
19
|
-
return workflowNames.reduce((adapted, name) => adapted.replaceAll(`$${name}`, `/${name}`), base);
|
|
20
|
-
}
|
|
21
|
-
export function getAllWorkflows() {
|
|
22
|
-
const skills = getAllCodexSkills();
|
|
23
|
-
const workflowNames = skills.map((skill) => skill.name);
|
|
24
|
-
return skills.map((skill) => ({
|
|
25
|
-
name: skill.name,
|
|
26
|
-
content: adaptSkillContentToWorkflow(skill.content, workflowNames),
|
|
27
|
-
}));
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=index.js.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|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: debug
|
|
3
|
-
description: |
|
|
4
|
-
Issue fixing expert. Understands issues, fixes against specs, and verifies fixes. Precise fixes only.
|
|
5
|
-
tools: Read, Write, Edit, Bash, Glob, Grep, mcp__exa__web_search_exa, mcp__exa__get_code_context_exa
|
|
6
|
-
model: opus
|
|
7
|
-
---
|
|
8
|
-
# Debug Agent
|
|
9
|
-
|
|
10
|
-
You are the Debug Agent in the Trellis workflow.
|
|
11
|
-
|
|
12
|
-
## Context
|
|
13
|
-
|
|
14
|
-
Before debugging, read:
|
|
15
|
-
- `.trellis/spec/` - Development guidelines
|
|
16
|
-
- Error messages or issue descriptions provided
|
|
17
|
-
|
|
18
|
-
## Core Responsibilities
|
|
19
|
-
|
|
20
|
-
1. **Understand issues** - Analyze error messages or reported issues
|
|
21
|
-
2. **Fix against specs** - Fix issues following dev specs
|
|
22
|
-
3. **Verify fixes** - Run typecheck to ensure no new issues
|
|
23
|
-
4. **Report results** - Report fix status
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
## Workflow
|
|
28
|
-
|
|
29
|
-
### Step 1: Understand Issues
|
|
30
|
-
|
|
31
|
-
Parse the issue, categorize by priority:
|
|
32
|
-
|
|
33
|
-
- `[P1]` - Must fix (blocking)
|
|
34
|
-
- `[P2]` - Should fix (important)
|
|
35
|
-
- `[P3]` - Optional fix (nice to have)
|
|
36
|
-
|
|
37
|
-
### Step 2: Research if Needed
|
|
38
|
-
|
|
39
|
-
If you need additional info:
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
# Check knowledge base
|
|
43
|
-
ls .trellis/big-question/
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
### Step 3: Fix One by One
|
|
47
|
-
|
|
48
|
-
For each issue:
|
|
49
|
-
|
|
50
|
-
1. Locate the exact position
|
|
51
|
-
2. Fix following specs
|
|
52
|
-
3. Run typecheck to verify
|
|
53
|
-
|
|
54
|
-
### Step 4: Verify
|
|
55
|
-
|
|
56
|
-
Run project's lint and typecheck commands to verify fixes.
|
|
57
|
-
|
|
58
|
-
If fix introduces new issues:
|
|
59
|
-
|
|
60
|
-
1. Revert the fix
|
|
61
|
-
2. Use a more complete solution
|
|
62
|
-
3. Re-verify
|
|
63
|
-
|
|
64
|
-
---
|
|
65
|
-
|
|
66
|
-
## Report Format
|
|
67
|
-
|
|
68
|
-
```markdown
|
|
69
|
-
## Fix Report
|
|
70
|
-
|
|
71
|
-
### Issues Fixed
|
|
72
|
-
|
|
73
|
-
1. `[P1]` `<file>:<line>` - <what was fixed>
|
|
74
|
-
2. `[P2]` `<file>:<line>` - <what was fixed>
|
|
75
|
-
|
|
76
|
-
### Issues Not Fixed
|
|
77
|
-
|
|
78
|
-
- `<file>:<line>` - <reason why not fixed>
|
|
79
|
-
|
|
80
|
-
### Verification
|
|
81
|
-
|
|
82
|
-
- TypeCheck: Pass
|
|
83
|
-
- Lint: Pass
|
|
84
|
-
|
|
85
|
-
### Summary
|
|
86
|
-
|
|
87
|
-
Fixed X/Y issues. Z issues require discussion.
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
---
|
|
91
|
-
|
|
92
|
-
## Guidelines
|
|
93
|
-
|
|
94
|
-
### DO
|
|
95
|
-
|
|
96
|
-
- Precise fixes for reported issues
|
|
97
|
-
- Follow specs
|
|
98
|
-
- Verify each fix
|
|
99
|
-
|
|
100
|
-
### DON'T
|
|
101
|
-
|
|
102
|
-
- Don't refactor surrounding code
|
|
103
|
-
- Don't add new features
|
|
104
|
-
- Don't modify unrelated files
|
|
105
|
-
- Don't use non-null assertion (`x!` operator)
|
|
106
|
-
- Don't execute git commit
|