@pennixrv/trellis 0.7.2-beta.2 → 0.7.2-beta.20
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/README.md +14 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +105 -107
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/teamwork/adapters/acp.d.ts.map +1 -1
- package/dist/commands/teamwork/adapters/acp.js +3 -0
- package/dist/commands/teamwork/adapters/acp.js.map +1 -1
- package/dist/commands/teamwork/adapters/index.d.ts +1 -1
- package/dist/commands/teamwork/adapters/index.d.ts.map +1 -1
- package/dist/commands/teamwork/artifact.d.ts +1 -0
- package/dist/commands/teamwork/artifact.d.ts.map +1 -1
- package/dist/commands/teamwork/artifact.js +1 -1
- package/dist/commands/teamwork/artifact.js.map +1 -1
- package/dist/commands/teamwork/batch-reservation.d.ts.map +1 -1
- package/dist/commands/teamwork/batch-reservation.js +16 -8
- package/dist/commands/teamwork/batch-reservation.js.map +1 -1
- package/dist/commands/teamwork/batch.d.ts +15 -1
- package/dist/commands/teamwork/batch.d.ts.map +1 -1
- package/dist/commands/teamwork/batch.js +277 -22
- package/dist/commands/teamwork/batch.js.map +1 -1
- package/dist/commands/teamwork/coordinator.d.ts +3 -0
- package/dist/commands/teamwork/coordinator.d.ts.map +1 -1
- package/dist/commands/teamwork/coordinator.js +22 -3
- package/dist/commands/teamwork/coordinator.js.map +1 -1
- package/dist/commands/teamwork/create.d.ts +1 -0
- package/dist/commands/teamwork/create.d.ts.map +1 -1
- package/dist/commands/teamwork/create.js +4 -0
- package/dist/commands/teamwork/create.js.map +1 -1
- package/dist/commands/teamwork/evidence-references.d.ts +19 -0
- package/dist/commands/teamwork/evidence-references.d.ts.map +1 -0
- package/dist/commands/teamwork/evidence-references.js +249 -0
- package/dist/commands/teamwork/evidence-references.js.map +1 -0
- package/dist/commands/teamwork/foreground-wait.d.ts +4 -1
- package/dist/commands/teamwork/foreground-wait.d.ts.map +1 -1
- package/dist/commands/teamwork/foreground-wait.js +15 -1
- package/dist/commands/teamwork/foreground-wait.js.map +1 -1
- package/dist/commands/teamwork/index.d.ts.map +1 -1
- package/dist/commands/teamwork/index.js +46 -4
- package/dist/commands/teamwork/index.js.map +1 -1
- package/dist/commands/teamwork/list.d.ts +1 -0
- package/dist/commands/teamwork/list.d.ts.map +1 -1
- package/dist/commands/teamwork/list.js +4 -1
- package/dist/commands/teamwork/list.js.map +1 -1
- package/dist/commands/teamwork/prompt.js +1 -1
- package/dist/commands/teamwork/prompt.js.map +1 -1
- package/dist/commands/teamwork/rm.d.ts +27 -4
- package/dist/commands/teamwork/rm.d.ts.map +1 -1
- package/dist/commands/teamwork/rm.js +155 -51
- package/dist/commands/teamwork/rm.js.map +1 -1
- package/dist/commands/teamwork/run.d.ts.map +1 -1
- package/dist/commands/teamwork/run.js +10 -1
- package/dist/commands/teamwork/run.js.map +1 -1
- package/dist/commands/teamwork/runtime.d.ts +1 -1
- package/dist/commands/teamwork/runtime.d.ts.map +1 -1
- package/dist/commands/teamwork/runtime.js +14 -4
- package/dist/commands/teamwork/runtime.js.map +1 -1
- package/dist/commands/teamwork/spawn.d.ts.map +1 -1
- package/dist/commands/teamwork/spawn.js +4 -1
- package/dist/commands/teamwork/spawn.js.map +1 -1
- package/dist/commands/teamwork/supervisor/stdout.d.ts.map +1 -1
- package/dist/commands/teamwork/supervisor/stdout.js +7 -0
- package/dist/commands/teamwork/supervisor/stdout.js.map +1 -1
- package/dist/commands/teamwork/supervisor.d.ts +1 -1
- package/dist/commands/teamwork/supervisor.d.ts.map +1 -1
- package/dist/commands/teamwork/teammate-adapters.d.ts +3 -0
- package/dist/commands/teamwork/teammate-adapters.d.ts.map +1 -1
- package/dist/commands/teamwork/teammate-adapters.js +14 -5
- package/dist/commands/teamwork/teammate-adapters.js.map +1 -1
- package/dist/commands/teamwork/workers.d.ts +8 -0
- package/dist/commands/teamwork/workers.d.ts.map +1 -0
- package/dist/commands/teamwork/workers.js +67 -0
- package/dist/commands/teamwork/workers.js.map +1 -0
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +109 -55
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +5 -7
- package/dist/commands/workflow.js.map +1 -1
- package/dist/configurators/codebuddy.d.ts +1 -8
- package/dist/configurators/codebuddy.d.ts.map +1 -1
- package/dist/configurators/codebuddy.js +2 -12
- package/dist/configurators/codebuddy.js.map +1 -1
- package/dist/configurators/codex.d.ts +0 -36
- package/dist/configurators/codex.d.ts.map +1 -1
- package/dist/configurators/codex.js +2 -99
- package/dist/configurators/codex.js.map +1 -1
- package/dist/configurators/copilot.d.ts +1 -12
- package/dist/configurators/copilot.d.ts.map +1 -1
- package/dist/configurators/copilot.js +2 -20
- package/dist/configurators/copilot.js.map +1 -1
- package/dist/configurators/cursor.d.ts +1 -8
- package/dist/configurators/cursor.d.ts.map +1 -1
- package/dist/configurators/cursor.js +2 -12
- package/dist/configurators/cursor.js.map +1 -1
- package/dist/configurators/droid.d.ts +1 -8
- package/dist/configurators/droid.d.ts.map +1 -1
- package/dist/configurators/droid.js +2 -12
- package/dist/configurators/droid.js.map +1 -1
- package/dist/configurators/dsh.d.ts +1 -21
- package/dist/configurators/dsh.d.ts.map +1 -1
- package/dist/configurators/dsh.js +4 -37
- package/dist/configurators/dsh.js.map +1 -1
- package/dist/configurators/gemini.d.ts +1 -16
- package/dist/configurators/gemini.d.ts.map +1 -1
- package/dist/configurators/gemini.js +3 -21
- package/dist/configurators/gemini.js.map +1 -1
- package/dist/configurators/grok.d.ts +1 -12
- package/dist/configurators/grok.d.ts.map +1 -1
- package/dist/configurators/grok.js +2 -18
- package/dist/configurators/grok.js.map +1 -1
- package/dist/configurators/kimi.d.ts +1 -21
- package/dist/configurators/kimi.d.ts.map +1 -1
- package/dist/configurators/kimi.js +2 -38
- package/dist/configurators/kimi.js.map +1 -1
- package/dist/configurators/kiro.d.ts +1 -9
- package/dist/configurators/kiro.d.ts.map +1 -1
- package/dist/configurators/kiro.js +1 -9
- package/dist/configurators/kiro.js.map +1 -1
- package/dist/configurators/omp.d.ts.map +1 -1
- package/dist/configurators/omp.js +1 -5
- package/dist/configurators/omp.js.map +1 -1
- package/dist/configurators/pi.d.ts.map +1 -1
- package/dist/configurators/pi.js +2 -5
- package/dist/configurators/pi.js.map +1 -1
- package/dist/configurators/qoder.d.ts +1 -10
- package/dist/configurators/qoder.d.ts.map +1 -1
- package/dist/configurators/qoder.js +3 -15
- package/dist/configurators/qoder.js.map +1 -1
- package/dist/configurators/reasonix.d.ts +1 -12
- package/dist/configurators/reasonix.d.ts.map +1 -1
- package/dist/configurators/reasonix.js +3 -22
- package/dist/configurators/reasonix.js.map +1 -1
- package/dist/configurators/shared.d.ts +1 -24
- package/dist/configurators/shared.d.ts.map +1 -1
- package/dist/configurators/shared.js +5 -184
- package/dist/configurators/shared.js.map +1 -1
- package/dist/configurators/snow.d.ts +1 -20
- package/dist/configurators/snow.d.ts.map +1 -1
- package/dist/configurators/snow.js +2 -25
- package/dist/configurators/snow.js.map +1 -1
- package/dist/configurators/trae.d.ts +1 -14
- package/dist/configurators/trae.d.ts.map +1 -1
- package/dist/configurators/trae.js +3 -19
- package/dist/configurators/trae.js.map +1 -1
- package/dist/configurators/workflow.d.ts +2 -0
- package/dist/configurators/workflow.d.ts.map +1 -1
- package/dist/configurators/workflow.js +72 -56
- package/dist/configurators/workflow.js.map +1 -1
- package/dist/configurators/zcode.d.ts +1 -13
- package/dist/configurators/zcode.d.ts.map +1 -1
- package/dist/configurators/zcode.js +2 -18
- package/dist/configurators/zcode.js.map +1 -1
- package/dist/migrations/manifests/0.5.0-beta.5.json +1 -212
- package/dist/migrations/manifests/0.7.2-beta.10.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.11.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.12.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.13.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.14.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.15.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.16.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.17.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.18.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.19.json +11 -0
- package/dist/migrations/manifests/0.7.2-beta.20.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.3.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.4.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.5.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.6.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.7.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.8.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.9.json +9 -0
- package/dist/migrations/retired-native-paths.d.ts +109 -0
- package/dist/migrations/retired-native-paths.d.ts.map +1 -0
- package/dist/migrations/retired-native-paths.js +263 -0
- package/dist/migrations/retired-native-paths.js.map +1 -0
- package/dist/templates/claude/index.d.ts +1 -16
- package/dist/templates/claude/index.d.ts.map +1 -1
- package/dist/templates/claude/index.js +5 -32
- package/dist/templates/claude/index.js.map +1 -1
- package/dist/templates/claude/settings.json +0 -22
- package/dist/templates/codebuddy/index.d.ts +2 -3
- package/dist/templates/codebuddy/index.d.ts.map +1 -1
- package/dist/templates/codebuddy/index.js +2 -3
- package/dist/templates/codebuddy/index.js.map +1 -1
- package/dist/templates/codebuddy/settings.json +0 -10
- package/dist/templates/codex/config.toml +2 -19
- package/dist/templates/codex/hooks/session-start.py +25 -30
- package/dist/templates/codex/hooks.json +0 -12
- package/dist/templates/codex/index.d.ts +0 -5
- package/dist/templates/codex/index.d.ts.map +1 -1
- package/dist/templates/codex/index.js +0 -13
- package/dist/templates/codex/index.js.map +1 -1
- package/dist/templates/common/bundled-skills/trellis-decision-space-construction-and-merging/SKILL.md +2 -0
- package/dist/templates/common/bundled-skills/trellis-decision-space-construction-and-merging/workflow.md +7 -3
- package/dist/templates/common/bundled-skills/trellis-delivery-review-and-closeout/SKILL.md +2 -0
- package/dist/templates/common/bundled-skills/trellis-delivery-review-and-closeout/workflow.md +2 -0
- package/dist/templates/common/bundled-skills/trellis-goal-exploration-and-requirements/SKILL.md +2 -0
- package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +7 -7
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-agents.md +9 -51
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-context-loading.md +3 -15
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-hooks.md +1 -2
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/context-injection.md +4 -9
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/generated-files.md +2 -2
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/multi-agent-teamwork.md +6 -0
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/overview.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/spec-system.md +10 -8
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/agents.md +9 -79
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/hooks-and-settings.md +2 -4
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md +3 -6
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md +24 -103
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/skills-and-commands.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-session-insight/SKILL.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-solution-design-and-convergence/SKILL.md +2 -0
- package/dist/templates/common/bundled-skills/trellis-solution-design-and-convergence/workflow.md +14 -5
- package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/SKILL.md +6 -4
- package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/spec-task-planning.md +5 -9
- package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/spec-writing.md +8 -0
- package/dist/templates/common/bundled-skills/trellis-task-implementation/SKILL.md +2 -0
- package/dist/templates/common/bundled-skills/trellis-task-implementation/workflow.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-teamwork/SKILL.md +8 -1
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/teammate-processes.md +21 -1
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/teamwork-plan-construction.md +13 -2
- package/dist/templates/common/bundled-skills/trellis-worktree-delegation/SKILL.md +14 -0
- package/dist/templates/common/bundled-skills/trellis-worktree-delegation/workflow.md +17 -0
- package/dist/templates/common/commands/continue.md +8 -0
- package/dist/templates/common/commands/start.md +2 -0
- package/dist/templates/common/skills/before-dev.md +3 -1
- package/dist/templates/common/skills/check.md +3 -1
- package/dist/templates/common/skills/request-intake.md +5 -3
- package/dist/templates/copilot/hooks/session-start.py +11 -30
- package/dist/templates/cursor/hooks.json +0 -7
- package/dist/templates/cursor/index.d.ts +1 -11
- package/dist/templates/cursor/index.d.ts.map +1 -1
- package/dist/templates/cursor/index.js +2 -10
- package/dist/templates/cursor/index.js.map +1 -1
- package/dist/templates/droid/index.d.ts +2 -3
- package/dist/templates/droid/index.d.ts.map +1 -1
- package/dist/templates/droid/index.js +2 -3
- package/dist/templates/droid/index.js.map +1 -1
- package/dist/templates/droid/settings.json +0 -10
- package/dist/templates/dsh/DSH.md +2 -33
- package/dist/templates/dsh/index.d.ts +1 -19
- package/dist/templates/dsh/index.d.ts.map +1 -1
- package/dist/templates/dsh/index.js +2 -21
- package/dist/templates/dsh/index.js.map +1 -1
- package/dist/templates/gemini/index.d.ts +1 -11
- package/dist/templates/gemini/index.d.ts.map +1 -1
- package/dist/templates/gemini/index.js +2 -10
- package/dist/templates/gemini/index.js.map +1 -1
- package/dist/templates/kiro/agents/trellis.json +1 -1
- package/dist/templates/kiro/index.d.ts +1 -13
- package/dist/templates/kiro/index.d.ts.map +1 -1
- package/dist/templates/kiro/index.js +1 -13
- package/dist/templates/kiro/index.js.map +1 -1
- package/dist/templates/markdown/agents.md +15 -3
- package/dist/templates/markdown/index.d.ts +1 -0
- package/dist/templates/markdown/index.d.ts.map +1 -1
- package/dist/templates/markdown/index.js +1 -0
- package/dist/templates/markdown/index.js.map +1 -1
- package/dist/templates/markdown/spec/index.md.txt +20 -0
- package/dist/templates/omp/extensions/trellis/index.ts.txt +11 -51
- package/dist/templates/omp/index.d.ts +0 -2
- package/dist/templates/omp/index.d.ts.map +1 -1
- package/dist/templates/omp/index.js +1 -4
- package/dist/templates/omp/index.js.map +1 -1
- package/dist/templates/opencode/lib/session-utils.js +17 -5
- package/dist/templates/opencode/lib/trellis-context.js +12 -321
- package/dist/templates/opencode/plugins/inject-shell-session-context.js +93 -0
- package/dist/templates/opencode/plugins/inject-workflow-state.js +4 -10
- package/dist/templates/opencode/plugins/session-start.js +2 -6
- package/dist/templates/pi/extensions/trellis/index.ts.txt +8 -1432
- package/dist/templates/pi/index.d.ts +1 -2
- package/dist/templates/pi/index.d.ts.map +1 -1
- package/dist/templates/pi/index.js +2 -5
- package/dist/templates/pi/index.js.map +1 -1
- package/dist/templates/qoder/index.d.ts +2 -3
- package/dist/templates/qoder/index.d.ts.map +1 -1
- package/dist/templates/qoder/index.js +2 -3
- package/dist/templates/qoder/index.js.map +1 -1
- package/dist/templates/shared-hooks/guard-teamwork-wait.py +118 -12
- package/dist/templates/shared-hooks/index.d.ts +2 -56
- package/dist/templates/shared-hooks/index.d.ts.map +1 -1
- package/dist/templates/shared-hooks/index.js +3 -70
- package/dist/templates/shared-hooks/index.js.map +1 -1
- package/dist/templates/shared-hooks/inject-spec-context.py +6 -35
- package/dist/templates/shared-hooks/inject-workflow-state.py +18 -77
- package/dist/templates/shared-hooks/session-start.py +8 -6
- package/dist/templates/snow/SNOW.md +6 -18
- package/dist/templates/snow/hooks/write-trellis-context.py +51 -133
- package/dist/templates/snow/index.d.ts +2 -21
- package/dist/templates/snow/index.d.ts.map +1 -1
- package/dist/templates/snow/index.js +3 -24
- package/dist/templates/snow/index.js.map +1 -1
- package/dist/templates/template-utils.d.ts +1 -2
- package/dist/templates/template-utils.d.ts.map +1 -1
- package/dist/templates/template-utils.js +1 -11
- package/dist/templates/template-utils.js.map +1 -1
- package/dist/templates/trae/index.d.ts +2 -3
- package/dist/templates/trae/index.d.ts.map +1 -1
- package/dist/templates/trae/index.js +2 -3
- package/dist/templates/trae/index.js.map +1 -1
- package/dist/templates/trellis/agents/delegated-worktree-primary-agent.md +20 -22
- package/dist/templates/trellis/agents/teammate.md +6 -2
- package/dist/templates/trellis/agents/worktree-delegation-node.md +24 -0
- package/dist/templates/trellis/config.yaml +7 -36
- package/dist/templates/trellis/gitignore.txt +4 -0
- package/dist/templates/trellis/index.d.ts +1 -0
- package/dist/templates/trellis/index.d.ts.map +1 -1
- package/dist/templates/trellis/index.js +3 -0
- package/dist/templates/trellis/index.js.map +1 -1
- package/dist/templates/trellis/scripts/common/active_task.py +23 -31
- package/dist/templates/trellis/scripts/common/config.py +1 -36
- package/dist/templates/trellis/scripts/common/git_context.py +13 -4
- package/dist/templates/trellis/scripts/common/io.py +2 -2
- package/dist/templates/trellis/scripts/common/packages_context.py +29 -1
- package/dist/templates/trellis/scripts/common/session_context.py +25 -50
- package/dist/templates/trellis/scripts/common/task_context.py +5 -3
- package/dist/templates/trellis/scripts/common/task_continuity.py +42 -9
- package/dist/templates/trellis/scripts/common/task_move.py +2 -2
- package/dist/templates/trellis/scripts/common/task_runtime.py +211 -0
- package/dist/templates/trellis/scripts/common/task_store.py +8 -78
- package/dist/templates/trellis/scripts/common/task_workflow.py +9 -26
- package/dist/templates/trellis/scripts/common/workflow_phase.py +3 -36
- package/dist/templates/trellis/scripts/common/workflow_selection.py +12 -2
- package/dist/templates/trellis/scripts/common/worktree_delegation.py +570 -0
- package/dist/templates/trellis/scripts/task.py +41 -2
- package/dist/templates/trellis/workflow.md +25 -10
- package/dist/templates/zcode/config.json +0 -10
- package/dist/templates/zcode/index.d.ts +3 -22
- package/dist/templates/zcode/index.d.ts.map +1 -1
- package/dist/templates/zcode/index.js +3 -24
- package/dist/templates/zcode/index.js.map +1 -1
- package/dist/types/ai-tools.d.ts +0 -4
- package/dist/types/ai-tools.d.ts.map +1 -1
- package/dist/types/ai-tools.js +4 -109
- package/dist/types/ai-tools.js.map +1 -1
- package/dist/utils/ablation-store.d.ts.map +1 -1
- package/dist/utils/ablation-store.js +24 -0
- package/dist/utils/ablation-store.js.map +1 -1
- package/dist/utils/asset-backup.d.ts.map +1 -1
- package/dist/utils/asset-backup.js +25 -20
- package/dist/utils/asset-backup.js.map +1 -1
- package/dist/utils/file-writer.d.ts +2 -0
- package/dist/utils/file-writer.d.ts.map +1 -1
- package/dist/utils/file-writer.js +1 -1
- package/dist/utils/file-writer.js.map +1 -1
- package/dist/utils/managed-markdown.d.ts +5 -0
- package/dist/utils/managed-markdown.d.ts.map +1 -0
- package/dist/utils/managed-markdown.js +64 -0
- package/dist/utils/managed-markdown.js.map +1 -0
- package/dist/utils/managed-removal.d.ts +2 -0
- package/dist/utils/managed-removal.d.ts.map +1 -1
- package/dist/utils/managed-removal.js +26 -2
- package/dist/utils/managed-removal.js.map +1 -1
- package/dist/utils/manifest-prune.d.ts.map +1 -1
- package/dist/utils/manifest-prune.js +5 -12
- package/dist/utils/manifest-prune.js.map +1 -1
- package/dist/utils/retired-native-assets.d.ts +17 -0
- package/dist/utils/retired-native-assets.d.ts.map +1 -0
- package/dist/utils/retired-native-assets.js +235 -0
- package/dist/utils/retired-native-assets.js.map +1 -0
- package/dist/utils/uninstall-scrubbers.d.ts.map +1 -1
- package/dist/utils/uninstall-scrubbers.js +6 -12
- package/dist/utils/uninstall-scrubbers.js.map +1 -1
- package/package.json +2 -2
- package/dist/templates/claude/agents/trellis-check.md +0 -115
- package/dist/templates/claude/agents/trellis-implement.md +0 -110
- package/dist/templates/claude/agents/trellis-research.md +0 -137
- package/dist/templates/codebuddy/agents/trellis-check.md +0 -115
- package/dist/templates/codebuddy/agents/trellis-implement.md +0 -110
- package/dist/templates/codebuddy/agents/trellis-research.md +0 -137
- package/dist/templates/codex/agents/trellis-check.toml +0 -56
- package/dist/templates/codex/agents/trellis-implement.toml +0 -37
- package/dist/templates/codex/agents/trellis-research.toml +0 -78
- package/dist/templates/cursor/agents/trellis-check.md +0 -114
- package/dist/templates/cursor/agents/trellis-implement.md +0 -109
- package/dist/templates/cursor/agents/trellis-research.md +0 -136
- package/dist/templates/droid/droids/trellis-check.md +0 -107
- package/dist/templates/droid/droids/trellis-implement.md +0 -102
- package/dist/templates/droid/droids/trellis-research.md +0 -137
- package/dist/templates/dsh/agents/trellis-check.md +0 -99
- package/dist/templates/dsh/agents/trellis-implement.md +0 -106
- package/dist/templates/dsh/agents/trellis-research.md +0 -134
- package/dist/templates/gemini/agents/trellis-check.md +0 -107
- package/dist/templates/gemini/agents/trellis-implement.md +0 -102
- package/dist/templates/gemini/agents/trellis-research.md +0 -136
- package/dist/templates/grok/agents/trellis-check.md +0 -105
- package/dist/templates/grok/agents/trellis-implement.md +0 -116
- package/dist/templates/grok/agents/trellis-research.md +0 -146
- package/dist/templates/grok/index.d.ts +0 -16
- package/dist/templates/grok/index.d.ts.map +0 -1
- package/dist/templates/grok/index.js +0 -19
- package/dist/templates/grok/index.js.map +0 -1
- package/dist/templates/kimi/agents/trellis-check.md +0 -103
- package/dist/templates/kimi/agents/trellis-implement.md +0 -115
- package/dist/templates/kimi/agents/trellis-research.md +0 -144
- package/dist/templates/kimi/index.d.ts +0 -20
- package/dist/templates/kimi/index.d.ts.map +0 -1
- package/dist/templates/kimi/index.js +0 -23
- package/dist/templates/kimi/index.js.map +0 -1
- package/dist/templates/kiro/agents/trellis-check.json +0 -26
- package/dist/templates/kiro/agents/trellis-implement.json +0 -26
- package/dist/templates/kiro/agents/trellis-research.json +0 -30
- package/dist/templates/omp/agents/trellis-check.md +0 -41
- package/dist/templates/omp/agents/trellis-implement.md +0 -45
- package/dist/templates/omp/agents/trellis-research.md +0 -30
- package/dist/templates/opencode/agents/trellis-check.md +0 -122
- package/dist/templates/opencode/agents/trellis-implement.md +0 -118
- package/dist/templates/opencode/agents/trellis-research.md +0 -145
- package/dist/templates/opencode/plugins/inject-subagent-context.js +0 -569
- package/dist/templates/pi/agents/trellis-check.md +0 -37
- package/dist/templates/pi/agents/trellis-implement.md +0 -42
- package/dist/templates/pi/agents/trellis-research.md +0 -25
- package/dist/templates/qoder/agents/trellis-check.md +0 -108
- package/dist/templates/qoder/agents/trellis-implement.md +0 -103
- package/dist/templates/qoder/agents/trellis-research.md +0 -137
- package/dist/templates/reasonix/agents/trellis-check.md +0 -36
- package/dist/templates/reasonix/agents/trellis-implement.md +0 -41
- package/dist/templates/reasonix/index.d.ts +0 -13
- package/dist/templates/reasonix/index.d.ts.map +0 -1
- package/dist/templates/reasonix/index.js +0 -16
- package/dist/templates/reasonix/index.js.map +0 -1
- package/dist/templates/shared-hooks/inject-subagent-context.py +0 -1217
- package/dist/templates/snow/agents/trellis-check.md +0 -135
- package/dist/templates/snow/agents/trellis-implement.md +0 -153
- package/dist/templates/snow/agents/trellis-research.md +0 -114
- package/dist/templates/snow/hooks/beforeSubAgentStart.json +0 -15
- package/dist/templates/trae/agents/trellis-check.md +0 -108
- package/dist/templates/trae/agents/trellis-implement.md +0 -103
- package/dist/templates/trae/agents/trellis-research.md +0 -137
- package/dist/templates/zcode/agents/trellis-check.md +0 -109
- package/dist/templates/zcode/agents/trellis-implement.md +0 -111
- package/dist/templates/zcode/agents/trellis-research.md +0 -133
|
@@ -1,27 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Kimi Code configurator.
|
|
3
|
-
*
|
|
4
|
-
* Kimi Code is a class-2 pull-based platform (agentCapable, no hooks, no
|
|
5
|
-
* project-level settings/extensions). Two output paths:
|
|
6
|
-
* - `.agents/skills/` — workflow + bundled skills, written via the NEUTRAL
|
|
7
|
-
* resolver so the files stay byte-identical to Codex/Gemini/Pi writes into
|
|
8
|
-
* the same shared root (Kimi discovers `.agents/skills/` natively).
|
|
9
|
-
* - `.kimi-code/skills/` — Kimi-private entry points: the user-invocable
|
|
10
|
-
* commands as skills (`/skill:trellis-start`, `/skill:trellis-continue`,
|
|
11
|
-
* `/skill:trellis-finish-work`) plus the Trellis agent prompts
|
|
12
|
-
* (trellis-implement / trellis-check / trellis-research) with the
|
|
13
|
-
* pull-based prelude on implement/check.
|
|
14
|
-
* - `.kimi-code/agents/` — the same Trellis agent prompts as project-level
|
|
15
|
-
* custom sub-agent definitions (Claude Code-compatible frontmatter), so
|
|
16
|
-
* the main session can dispatch `trellis-<name>` sub-agents directly.
|
|
17
|
-
*
|
|
18
|
-
* Trellis does not generate project-local Kimi settings or hooks.
|
|
19
|
-
* Project-local Kimi settings go in `.kimi-code/local.toml`; hooks are
|
|
20
|
-
* configured in `$KIMI_CODE_HOME/config.toml`.
|
|
21
|
-
*/
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
22
2
|
import { AI_TOOLS } from "../types/ai-tools.js";
|
|
23
|
-
import {
|
|
24
|
-
import { applyPullBasedPreludeMarkdown, collectSkillTemplates, resolveAllAsSkills, resolveBundledSkills, resolveSkillsNeutral, } from "./shared.js";
|
|
3
|
+
import { collectSkillTemplates, resolveAllAsSkills, resolveBundledSkills, resolveSkillsNeutral, } from "./shared.js";
|
|
25
4
|
/**
|
|
26
5
|
* Command templates that become user-invocable Kimi skills
|
|
27
6
|
* (`/skill:trellis-<name>`). Kimi has no slash-command mechanism besides
|
|
@@ -38,11 +17,6 @@ function resolveKimiCommandSkills() {
|
|
|
38
17
|
const ctx = AI_TOOLS.kimi.templateContext;
|
|
39
18
|
return resolveAllAsSkills(ctx).filter((skill) => KIMI_COMMAND_SKILL_NAMES.has(skill.name));
|
|
40
19
|
}
|
|
41
|
-
/** Trellis agent prompts as Kimi skills (and `.kimi-code/agents/` sub-agent
|
|
42
|
-
* definitions), with the pull-based prelude on implement/check. */
|
|
43
|
-
function resolveKimiAgentSkills() {
|
|
44
|
-
return applyPullBasedPreludeMarkdown(getAllAgents());
|
|
45
|
-
}
|
|
46
20
|
/**
|
|
47
21
|
* The Kimi Code file set — written at init and diffed by `trellis update`.
|
|
48
22
|
*/
|
|
@@ -54,21 +28,11 @@ export function collectKimiTemplates() {
|
|
|
54
28
|
for (const [filePath, content] of collectSkillTemplates(".agents/skills", resolveSkillsNeutral(ctx), resolveBundledSkills(ctx))) {
|
|
55
29
|
files.set(filePath, content);
|
|
56
30
|
}
|
|
57
|
-
// 2. Commands-as-skills + Trellis agent prompts → `.kimi-code/skills/`.
|
|
58
|
-
const agentPrompts = resolveKimiAgentSkills();
|
|
59
31
|
for (const [filePath, content] of collectSkillTemplates(".kimi-code/skills", [
|
|
60
32
|
...resolveKimiCommandSkills(),
|
|
61
|
-
...agentPrompts,
|
|
62
33
|
])) {
|
|
63
34
|
files.set(filePath, content);
|
|
64
35
|
}
|
|
65
|
-
// 3. Custom sub-agent definitions → `.kimi-code/agents/`. Kimi Code
|
|
66
|
-
// discovers project-level agents there (Claude Code-compatible
|
|
67
|
-
// frontmatter); content mirrors the skill copies, pull-based prelude
|
|
68
|
-
// included, so dispatching `trellis-<name>` directly behaves the same.
|
|
69
|
-
for (const agent of agentPrompts) {
|
|
70
|
-
files.set(`.kimi-code/agents/${agent.name}.md`, agent.content);
|
|
71
|
-
}
|
|
72
36
|
return files;
|
|
73
37
|
}
|
|
74
38
|
//# sourceMappingURL=kimi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kimi.js","sourceRoot":"","sources":["../../src/configurators/kimi.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"kimi.js","sourceRoot":"","sources":["../../src/configurators/kimi.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AAErB;;;;GAIG;AACH,MAAM,wBAAwB,GAAG,IAAI,GAAG,CAAC;IACvC,eAAe;IACf,kBAAkB;IAClB,qBAAqB;CACtB,CAAC,CAAC;AAEH;+EAC+E;AAC/E,SAAS,wBAAwB;IAC/B,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC;IAC1C,OAAO,kBAAkB,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAC9C,wBAAwB,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CACzC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB;IAClC,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC;IAC1C,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IAExC,mEAAmE;IACnE,2DAA2D;IAC3D,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,qBAAqB,CACrD,gBAAgB,EAChB,oBAAoB,CAAC,GAAG,CAAC,EACzB,oBAAoB,CAAC,GAAG,CAAC,CAC1B,EAAE,CAAC;QACF,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IACD,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,qBAAqB,CAAC,mBAAmB,EAAE;QAC3E,GAAG,wBAAwB,EAAE;KAC9B,CAAC,EAAE,CAAC;QACH,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Kiro Code file set — written at init and diffed by `trellis update`.
|
|
3
|
-
* Kiro's configDir is ".kiro/skills"; agents and hooks go under ".kiro/".
|
|
4
|
-
* - skills/trellis-{name}/SKILL.md — all templates as auto-triggered skills
|
|
5
|
-
* - agents/{name}.json — main `trellis` agent (per-turn workflow-state +
|
|
6
|
-
* session-start hooks) plus 3 sub-agents (agentSpawn → inject-subagent-context)
|
|
7
|
-
* - hooks/*.py — shared hook scripts (referenced by agent JSON / .kiro.hook)
|
|
8
|
-
* - hooks/*.kiro.hook — IDE hook definitions (promptSubmit → inject-workflow-state)
|
|
9
|
-
*/
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
10
2
|
export declare function collectKiroTemplates(): Map<string, string>;
|
|
11
3
|
//# sourceMappingURL=kiro.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kiro.d.ts","sourceRoot":"","sources":["../../src/configurators/kiro.ts"],"names":[],"mappings":"AAUA
|
|
1
|
+
{"version":3,"file":"kiro.d.ts","sourceRoot":"","sources":["../../src/configurators/kiro.ts"],"names":[],"mappings":"AAUA,oEAAoE;AACpE,wBAAgB,oBAAoB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAuB1D"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import { AI_TOOLS } from "../types/ai-tools.js";
|
|
2
2
|
import { resolvePlaceholders, resolveAllAsSkills, resolveBundledSkills, collectSkillTemplates, collectSharedHooks, } from "./shared.js";
|
|
3
3
|
import { getAllAgents, getIdeHooks } from "../templates/kiro/index.js";
|
|
4
|
-
/**
|
|
5
|
-
* The Kiro Code file set — written at init and diffed by `trellis update`.
|
|
6
|
-
* Kiro's configDir is ".kiro/skills"; agents and hooks go under ".kiro/".
|
|
7
|
-
* - skills/trellis-{name}/SKILL.md — all templates as auto-triggered skills
|
|
8
|
-
* - agents/{name}.json — main `trellis` agent (per-turn workflow-state +
|
|
9
|
-
* session-start hooks) plus 3 sub-agents (agentSpawn → inject-subagent-context)
|
|
10
|
-
* - hooks/*.py — shared hook scripts (referenced by agent JSON / .kiro.hook)
|
|
11
|
-
* - hooks/*.kiro.hook — IDE hook definitions (promptSubmit → inject-workflow-state)
|
|
12
|
-
*/
|
|
4
|
+
/** Main-session platform assets and native context entry points. */
|
|
13
5
|
export function collectKiroTemplates() {
|
|
14
6
|
const files = new Map();
|
|
15
7
|
const ctx = AI_TOOLS.kiro.templateContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kiro.js","sourceRoot":"","sources":["../../src/configurators/kiro.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEvE
|
|
1
|
+
{"version":3,"file":"kiro.js","sourceRoot":"","sources":["../../src/configurators/kiro.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEvE,oEAAoE;AACpE,MAAM,UAAU,oBAAoB;IAClC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IACxC,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC;IAC1C,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,qBAAqB,CACrD,cAAc,EACd,kBAAkB,CAAC,GAAG,CAAC,EACvB,oBAAoB,CAAC,GAAG,CAAC,CAC1B,EAAE,CAAC;QACF,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IACD,KAAK,MAAM,KAAK,IAAI,YAAY,EAAE,EAAE,CAAC;QACnC,KAAK,CAAC,GAAG,CACP,gBAAgB,KAAK,CAAC,IAAI,OAAO,EACjC,mBAAmB,CAAC,KAAK,CAAC,OAAO,CAAC,CACnC,CAAC;IACJ,CAAC;IACD,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,kBAAkB,CAAC,aAAa,EAAE,MAAM,CAAC,EAAE,CAAC;QAC/D,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,KAAK,MAAM,IAAI,IAAI,WAAW,EAAE,EAAE,CAAC;QACjC,KAAK,CAAC,GAAG,CAAC,eAAe,IAAI,CAAC,IAAI,EAAE,EAAE,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3E,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omp.d.ts","sourceRoot":"","sources":["../../src/configurators/omp.ts"],"names":[],"mappings":"AAWA;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"omp.d.ts","sourceRoot":"","sources":["../../src/configurators/omp.ts"],"names":[],"mappings":"AAWA;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CA6BzD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AI_TOOLS } from "../types/ai-tools.js";
|
|
2
2
|
import { collectSkillTemplates, replacePythonCommandLiterals, resolveCommands, resolveBundledSkills, resolveSkills, wrapWithOmpFrontmatter, } from "./shared.js";
|
|
3
|
-
import {
|
|
3
|
+
import { getExtensionTemplate } from "../templates/omp/index.js";
|
|
4
4
|
/**
|
|
5
5
|
* The OMP file set — written at init and diffed by `trellis update`.
|
|
6
6
|
* OMP has no settings.json — the native provider auto-discovers all capabilities.
|
|
@@ -17,10 +17,6 @@ export function collectOmpTemplates() {
|
|
|
17
17
|
for (const [filePath, content] of collectSkillTemplates(".omp/skills", resolveSkills(ctx), resolveBundledSkills(ctx))) {
|
|
18
18
|
files.set(filePath, content);
|
|
19
19
|
}
|
|
20
|
-
// Agents (class-1: no pull-based prelude)
|
|
21
|
-
for (const agent of getAllAgents()) {
|
|
22
|
-
files.set(`.omp/agents/${agent.name}.md`, agent.content);
|
|
23
|
-
}
|
|
24
20
|
// Extension
|
|
25
21
|
files.set(".omp/extensions/trellis/index.ts", replacePythonCommandLiterals(getExtensionTemplate()));
|
|
26
22
|
return files;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omp.js","sourceRoot":"","sources":["../../src/configurators/omp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,qBAAqB,EACrB,4BAA4B,EAC5B,eAAe,EACf,oBAAoB,EACpB,aAAa,EACb,sBAAsB,GACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"omp.js","sourceRoot":"","sources":["../../src/configurators/omp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,qBAAqB,EACrB,4BAA4B,EAC5B,eAAe,EACf,oBAAoB,EACpB,aAAa,EACb,sBAAsB,GACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;GAGG;AACH,MAAM,UAAU,mBAAmB;IACjC,MAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC;IAC5B,MAAM,GAAG,GAAG,MAAM,CAAC,eAAe,CAAC;IACnC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IAExC,4BAA4B;IAC5B,KAAK,MAAM,OAAO,IAAI,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC;QAC3C,KAAK,CAAC,GAAG,CACP,yBAAyB,OAAO,CAAC,IAAI,KAAK,EAC1C,sBAAsB,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CACtD,CAAC;IACJ,CAAC;IAED,wBAAwB;IACxB,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,qBAAqB,CACrD,aAAa,EACb,aAAa,CAAC,GAAG,CAAC,EAClB,oBAAoB,CAAC,GAAG,CAAC,CAC1B,EAAE,CAAC;QACF,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAED,YAAY;IACZ,KAAK,CAAC,GAAG,CACP,kCAAkC,EAClC,4BAA4B,CAAC,oBAAoB,EAAE,CAAC,CACrD,CAAC;IAEF,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pi.d.ts","sourceRoot":"","sources":["../../src/configurators/pi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pi.d.ts","sourceRoot":"","sources":["../../src/configurators/pi.ts"],"names":[],"mappings":"AA2BA;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CA6BxD"}
|
package/dist/configurators/pi.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AI_TOOLS } from "../types/ai-tools.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { collectSkillTemplates, resolveCommands, resolveBundledSkills, resolvePlaceholders, resolveSkillsNeutral, } from "./shared.js";
|
|
3
|
+
import { getExtensionTemplate, getSettingsTemplate, } from "../templates/pi/index.js";
|
|
4
4
|
function resolvePiCommands() {
|
|
5
5
|
const ctx = AI_TOOLS.pi.templateContext;
|
|
6
6
|
const commands = resolveCommands(ctx);
|
|
@@ -28,9 +28,6 @@ export function collectPiTemplates() {
|
|
|
28
28
|
for (const [filePath, content] of collectSkillTemplates(".agents/skills", resolveSkillsNeutral(ctx), resolveBundledSkills(ctx))) {
|
|
29
29
|
files.set(filePath, content);
|
|
30
30
|
}
|
|
31
|
-
for (const agent of applyPullBasedPreludeMarkdown(getAllAgents())) {
|
|
32
|
-
files.set(`.pi/agents/${agent.name}.md`, agent.content);
|
|
33
|
-
}
|
|
34
31
|
files.set(".pi/extensions/trellis/index.ts", getExtensionTemplate());
|
|
35
32
|
const settings = getSettingsTemplate();
|
|
36
33
|
files.set(`.pi/${settings.targetPath}`, resolvePlaceholders(settings.content));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pi.js","sourceRoot":"","sources":["../../src/configurators/pi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"pi.js","sourceRoot":"","sources":["../../src/configurators/pi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAElC,SAAS,iBAAiB;IACxB,MAAM,GAAG,GAAG,QAAQ,CAAC,EAAE,CAAC,eAAe,CAAC;IACxC,MAAM,QAAQ,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;IACtC,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC;QAAE,OAAO,QAAQ,CAAC;IAE1E,0EAA0E;IAC1E,0EAA0E;IAC1E,4EAA4E;IAC5E,MAAM,KAAK,GAAG,eAAe,CAAC,EAAE,GAAG,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,IAAI,CAC7D,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,OAAO,CACtC,CAAC;IACF,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;AACjD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB;IAChC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IACxC,MAAM,GAAG,GAAG,QAAQ,CAAC,EAAE,CAAC,eAAe,CAAC;IAExC,KAAK,MAAM,OAAO,IAAI,iBAAiB,EAAE,EAAE,CAAC;QAC1C,KAAK,CAAC,GAAG,CAAC,uBAAuB,OAAO,CAAC,IAAI,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IACvE,CAAC;IAED,0EAA0E;IAC1E,2EAA2E;IAC3E,oEAAoE;IACpE,yDAAyD;IACzD,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,qBAAqB,CACrD,gBAAgB,EAChB,oBAAoB,CAAC,GAAG,CAAC,EACzB,oBAAoB,CAAC,GAAG,CAAC,CAC1B,EAAE,CAAC;QACF,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,iCAAiC,EAAE,oBAAoB,EAAE,CAAC,CAAC;IAErE,MAAM,QAAQ,GAAG,mBAAmB,EAAE,CAAC;IACvC,KAAK,CAAC,GAAG,CACP,OAAO,QAAQ,CAAC,UAAU,EAAE,EAC5B,mBAAmB,CAAC,QAAQ,CAAC,OAAO,CAAC,CACtC,CAAC;IAEF,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Qoder file set — written at init and diffed by `trellis update`.
|
|
3
|
-
*
|
|
4
|
-
* Qoder is a pull-based class-2 platform. Custom Commands require YAML
|
|
5
|
-
* frontmatter with `name` + `description` and use a flat layout, so
|
|
6
|
-
* session-boundary commands get wrapped via `wrapWithCommandFrontmatter`;
|
|
7
|
-
* auto-trigger workflows stay as plain skills. `inject-subagent-context.py` is
|
|
8
|
-
* excluded because Qoder's hook can't inject sub-agent prompts — sub-agents
|
|
9
|
-
* pull task context themselves.
|
|
10
|
-
*/
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
11
2
|
export declare function collectQoderTemplates(): Map<string, string>;
|
|
12
3
|
//# sourceMappingURL=qoder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qoder.d.ts","sourceRoot":"","sources":["../../src/configurators/qoder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"qoder.d.ts","sourceRoot":"","sources":["../../src/configurators/qoder.ts"],"names":[],"mappings":"AAUA,oEAAoE;AACpE,wBAAgB,qBAAqB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAmB3D"}
|
|
@@ -1,25 +1,13 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import { AI_TOOLS } from "../types/ai-tools.js";
|
|
3
|
-
import { resolvePlaceholders, wrapWithCommandFrontmatter, collectBothTemplates, collectSharedHooks,
|
|
4
|
-
import {
|
|
5
|
-
/**
|
|
6
|
-
* The Qoder file set — written at init and diffed by `trellis update`.
|
|
7
|
-
*
|
|
8
|
-
* Qoder is a pull-based class-2 platform. Custom Commands require YAML
|
|
9
|
-
* frontmatter with `name` + `description` and use a flat layout, so
|
|
10
|
-
* session-boundary commands get wrapped via `wrapWithCommandFrontmatter`;
|
|
11
|
-
* auto-trigger workflows stay as plain skills. `inject-subagent-context.py` is
|
|
12
|
-
* excluded because Qoder's hook can't inject sub-agent prompts — sub-agents
|
|
13
|
-
* pull task context themselves.
|
|
14
|
-
*/
|
|
3
|
+
import { resolvePlaceholders, wrapWithCommandFrontmatter, collectBothTemplates, collectSharedHooks, } from "./shared.js";
|
|
4
|
+
import { getSettingsTemplate } from "../templates/qoder/index.js";
|
|
5
|
+
/** Main-session platform assets and native context entry points. */
|
|
15
6
|
export function collectQoderTemplates() {
|
|
16
7
|
const files = collectBothTemplates(AI_TOOLS.qoder.templateContext, (n) => `.qoder/commands/trellis-${n}.md`, ".qoder/skills", (filePath, content) => {
|
|
17
8
|
const name = path.basename(filePath, ".md");
|
|
18
9
|
return wrapWithCommandFrontmatter(name, content);
|
|
19
10
|
});
|
|
20
|
-
for (const agent of applyPullBasedPreludeMarkdown(getAllAgents())) {
|
|
21
|
-
files.set(`.qoder/agents/${agent.name}.md`, agent.content);
|
|
22
|
-
}
|
|
23
11
|
for (const [k, v] of collectSharedHooks(".qoder/hooks", "qoder")) {
|
|
24
12
|
files.set(k, v);
|
|
25
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qoder.js","sourceRoot":"","sources":["../../src/configurators/qoder.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,oBAAoB,EACpB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"qoder.js","sourceRoot":"","sources":["../../src/configurators/qoder.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,oEAAoE;AACpE,MAAM,UAAU,qBAAqB;IACnC,MAAM,KAAK,GAAG,oBAAoB,CAChC,QAAQ,CAAC,KAAK,CAAC,eAAe,EAC9B,CAAC,CAAC,EAAE,EAAE,CAAC,2BAA2B,CAAC,KAAK,EACxC,eAAe,EACf,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE;QACpB,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QAC5C,OAAO,0BAA0B,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC,CACF,CAAC;IACF,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,kBAAkB,CAAC,cAAc,EAAE,OAAO,CAAC,EAAE,CAAC;QACjE,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,MAAM,QAAQ,GAAG,mBAAmB,EAAE,CAAC;IACvC,KAAK,CAAC,GAAG,CACP,UAAU,QAAQ,CAAC,UAAU,EAAE,EAC/B,mBAAmB,CAAC,QAAQ,CAAC,OAAO,CAAC,CACtC,CAAC;IACF,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reasonix configurator.
|
|
3
|
-
*
|
|
4
|
-
* Reasonix (DeepSeek-Reasonix) stores skills as `.reasonix/skills/<name>/SKILL.md`
|
|
5
|
-
* with YAML frontmatter (name + description). Slash commands are code-built-in,
|
|
6
|
-
* so no commands directory is generated.
|
|
7
|
-
*
|
|
8
|
-
* Workflow templates are surfaced as skills with `trellis-` prefix (invocable
|
|
9
|
-
* via `/skill trellis-start`, `/skill trellis-continue`, etc.).
|
|
10
|
-
* Subagent skills (trellis-implement, trellis-check) use `runAs: subagent`
|
|
11
|
-
* frontmatter so Reasonix spawns them as isolated subagent loops.
|
|
12
|
-
*/
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
13
2
|
/**
|
|
14
3
|
* The Reasonix file set — written at init and diffed by `trellis update`.
|
|
15
4
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reasonix.d.ts","sourceRoot":"","sources":["../../src/configurators/reasonix.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"reasonix.d.ts","sourceRoot":"","sources":["../../src/configurators/reasonix.ts"],"names":[],"mappings":"AAAA,oEAAoE;AASpE;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAiB9D"}
|
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reasonix configurator.
|
|
3
|
-
*
|
|
4
|
-
* Reasonix (DeepSeek-Reasonix) stores skills as `.reasonix/skills/<name>/SKILL.md`
|
|
5
|
-
* with YAML frontmatter (name + description). Slash commands are code-built-in,
|
|
6
|
-
* so no commands directory is generated.
|
|
7
|
-
*
|
|
8
|
-
* Workflow templates are surfaced as skills with `trellis-` prefix (invocable
|
|
9
|
-
* via `/skill trellis-start`, `/skill trellis-continue`, etc.).
|
|
10
|
-
* Subagent skills (trellis-implement, trellis-check) use `runAs: subagent`
|
|
11
|
-
* frontmatter so Reasonix spawns them as isolated subagent loops.
|
|
12
|
-
*/
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
13
2
|
import { AI_TOOLS } from "../types/ai-tools.js";
|
|
14
|
-
import { getAllAgents } from "../templates/reasonix/index.js";
|
|
15
3
|
import { collectSkillTemplates, resolveAllAsSkills, resolveBundledSkills, } from "./shared.js";
|
|
16
4
|
/**
|
|
17
5
|
* The Reasonix file set — written at init and diffed by `trellis update`.
|
|
@@ -20,18 +8,11 @@ export function collectReasonixTemplates() {
|
|
|
20
8
|
const config = AI_TOOLS.reasonix;
|
|
21
9
|
const ctx = config.templateContext;
|
|
22
10
|
const files = new Map();
|
|
23
|
-
//
|
|
24
|
-
const
|
|
25
|
-
// Workflow skills filtered to avoid collision with subagent skills.
|
|
26
|
-
const skills = resolveAllAsSkills(ctx).filter((s) => !agentNames.has(s.name));
|
|
11
|
+
// The ordinary check method shares its historical role path.
|
|
12
|
+
const skills = resolveAllAsSkills(ctx);
|
|
27
13
|
for (const [filePath, content] of collectSkillTemplates(".reasonix/skills", skills, resolveBundledSkills(ctx))) {
|
|
28
14
|
files.set(filePath, content);
|
|
29
15
|
}
|
|
30
|
-
// Subagent skills (trellis-implement, trellis-check) — written with
|
|
31
|
-
// runAs: subagent frontmatter for isolated subagent loops.
|
|
32
|
-
for (const agent of getAllAgents()) {
|
|
33
|
-
files.set(`.reasonix/skills/${agent.name}/SKILL.md`, agent.content);
|
|
34
|
-
}
|
|
35
16
|
return files;
|
|
36
17
|
}
|
|
37
18
|
//# sourceMappingURL=reasonix.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reasonix.js","sourceRoot":"","sources":["../../src/configurators/reasonix.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"reasonix.js","sourceRoot":"","sources":["../../src/configurators/reasonix.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AAErB;;GAEG;AACH,MAAM,UAAU,wBAAwB;IACtC,MAAM,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC;IACjC,MAAM,GAAG,GAAG,MAAM,CAAC,eAAe,CAAC;IACnC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IAExC,6DAA6D;IAC7D,MAAM,MAAM,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC;IAEvC,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,qBAAqB,CACrD,kBAAkB,EAClB,MAAM,EACN,oBAAoB,CAAC,GAAG,CAAC,CAC1B,EAAE,CAAC;QACF,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -58,7 +58,7 @@ export declare function resolvePlaceholders(content: string, context?: TemplateC
|
|
|
58
58
|
* "last-writer-wins" collision when both Codex and Gemini target
|
|
59
59
|
* `.agents/skills/`.
|
|
60
60
|
*
|
|
61
|
-
* `{{CLI_FLAG}}`, `{{
|
|
61
|
+
* `{{CLI_FLAG}}`, `{{USER_ACTION_LABEL}}`, conditionals,
|
|
62
62
|
* and `{{PYTHON_CMD}}` are still resolved from the platform context. The
|
|
63
63
|
* shared skills do not use those placeholders, so they remain platform-
|
|
64
64
|
* neutral. Codex-only skill files (e.g. `trellis-continue/SKILL.md`,
|
|
@@ -161,27 +161,4 @@ export declare function collectSharedHooks(hooksPath: string, platform: SharedHo
|
|
|
161
161
|
/** Collect commands + skills for "both" platforms (a commands directory plus
|
|
162
162
|
* a skills root). */
|
|
163
163
|
export declare function collectBothTemplates(ctx: TemplateContext, cmdPath: (name: string) => string, skillRoot: string, wrapCmd?: (filePath: string, content: string) => string): Map<string, string>;
|
|
164
|
-
export type SubAgentType = "implement" | "check";
|
|
165
|
-
/** Build the standard "load Trellis context first" prelude block. */
|
|
166
|
-
export declare function buildPullBasedPrelude(agentType: SubAgentType): string;
|
|
167
|
-
/** Insert prelude into a markdown agent definition (after YAML frontmatter). */
|
|
168
|
-
export declare function injectPullBasedPreludeMarkdown(content: string, agentType: SubAgentType): string;
|
|
169
|
-
/** Insert prelude into a TOML agent (codex `developer_instructions`). */
|
|
170
|
-
export declare function injectPullBasedPreludeToml(content: string, agentType: SubAgentType): string;
|
|
171
|
-
/** Best-effort detect agent type from filename ("trellis-implement.md" → "implement").
|
|
172
|
-
* Returns null for research and unknown names — they skip the prelude.
|
|
173
|
-
*/
|
|
174
|
-
export declare function detectSubAgentType(name: string): SubAgentType | null;
|
|
175
|
-
/** Shared transform: given a list of agents, prepend pull-based prelude to
|
|
176
|
-
* implement/check definitions. Used by both configurator (init-time write)
|
|
177
|
-
* and collectPlatformTemplates (update-time hash comparison) so the two
|
|
178
|
-
* code paths always agree on what's on disk.
|
|
179
|
-
*/
|
|
180
|
-
export interface AgentContent {
|
|
181
|
-
name: string;
|
|
182
|
-
content: string;
|
|
183
|
-
}
|
|
184
|
-
export declare function applyPullBasedPreludeMarkdown(agents: readonly AgentContent[]): AgentContent[];
|
|
185
|
-
export declare function normalizeCopilotMarkdownAgents(agents: readonly AgentContent[]): AgentContent[];
|
|
186
|
-
export declare function applyPullBasedPreludeToml(agents: readonly AgentContent[]): AgentContent[];
|
|
187
164
|
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/configurators/shared.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAiBD,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAG1D;AAED,iEAAiE;AACjE,wBAAgB,0BAA0B,IAAI,IAAI,CAEjD;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,GACzB,MAAM,CAMR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CASpE;
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/configurators/shared.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAiBD,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAG1D;AAED,iEAAiE;AACjE,wBAAgB,0BAA0B,IAAI,IAAI,CAEjD;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,GACzB,MAAM,CAMR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CASpE;AAyCD,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,eAAe,GACxB,MAAM,CAkCR;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,eAAe,GACxB,MAAM,CAiCR;AA0BD;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GACd,MAAM,CAUR;AAYD,gFAAgF;AAChF,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GACd,MAAM,CAeR;AAUD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAoB5E;AAcD,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,oCAAoC,CAAC;AAE5C,uDAAuD;AACvD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,2DAA2D;AAC3D,MAAM,WAAW,iBAAiB;IAChC,2EAA2E;IAC3E,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB;AAaD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,eAAe,GAAG,gBAAgB,EAAE,CAY3E;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,eAAe,GAAG,gBAAgB,EAAE,CAKxE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,eAAe,GAAG,gBAAgB,EAAE,CAQtE;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,eAAe,GAAG,gBAAgB,EAAE,CAQ7E;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,eAAe,GACnB,gBAAgB,EAAE,CAYpB;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,eAAe,GACnB,iBAAiB,EAAE,CAOrB;AAMD,wEAAwE;AACxE,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAAE,EACpD,aAAa,GAAE,SAAS,iBAAiB,EAAO,GAC/C,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CASrB;AAWD,2EAA2E;AAC3E,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACzB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAMrB;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACzB,OAAO,CAAC,IAAI,CAAC,CAMf;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,kBAAkB,GAC3B,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAMrB;AAED;sBACsB;AACtB,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,eAAe,EACpB,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EACjC,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,MAAM,GACtD,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAcrB"}
|
|
@@ -69,22 +69,20 @@ export function replacePythonCommandLiterals(content) {
|
|
|
69
69
|
*
|
|
70
70
|
* When called with a TemplateContext, additionally resolves:
|
|
71
71
|
* - {{CMD_REF:name}} → platform-specific command reference
|
|
72
|
-
* - {{EXECUTOR_AI}} → AI executor description
|
|
73
72
|
* - {{USER_ACTION_LABEL}} → user action label
|
|
74
73
|
* - {{CLI_FLAG}} → platform cli flag (e.g. "claude", "codex")
|
|
75
74
|
* - {{#FLAG}}...{{/FLAG}} → conditional include (when FLAG is true)
|
|
76
75
|
* - {{^FLAG}}...{{/FLAG}} → negated conditional (when FLAG is false)
|
|
77
76
|
*
|
|
78
|
-
* Supported conditional flags:
|
|
77
|
+
* Supported conditional flags: HAS_HOOKS
|
|
79
78
|
*/
|
|
80
79
|
// Pre-compiled regexes for placeholder resolution
|
|
81
80
|
const RE_PYTHON_CMD = /\{\{PYTHON_CMD\}\}/g;
|
|
82
81
|
const RE_CMD_REF = /\{\{CMD_REF:([\w][\w-]*)\}\}/g;
|
|
83
|
-
const RE_EXECUTOR_AI = /\{\{EXECUTOR_AI\}\}/g;
|
|
84
82
|
const RE_USER_ACTION_LABEL = /\{\{USER_ACTION_LABEL\}\}/g;
|
|
85
83
|
const RE_CLI_FLAG = /\{\{CLI_FLAG\}\}/g;
|
|
86
84
|
const RE_BLANK_LINES = /\n{3,}/g;
|
|
87
|
-
const CONDITIONAL_FLAGS = ["
|
|
85
|
+
const CONDITIONAL_FLAGS = ["HAS_HOOKS"];
|
|
88
86
|
const CONDITIONAL_REGEXES = Object.fromEntries(CONDITIONAL_FLAGS.map((flag) => [
|
|
89
87
|
flag,
|
|
90
88
|
{
|
|
@@ -98,12 +96,10 @@ export function resolvePlaceholders(content, context) {
|
|
|
98
96
|
return result;
|
|
99
97
|
// Simple substitutions
|
|
100
98
|
result = result.replace(RE_CMD_REF, (_match, name) => `${context.cmdRefPrefix}${name}`);
|
|
101
|
-
result = result.replace(RE_EXECUTOR_AI, context.executorAI);
|
|
102
99
|
result = result.replace(RE_USER_ACTION_LABEL, context.userActionLabel);
|
|
103
100
|
result = result.replace(RE_CLI_FLAG, context.cliFlag);
|
|
104
101
|
// Conditional blocks
|
|
105
102
|
const flagValues = {
|
|
106
|
-
AGENT_CAPABLE: context.agentCapable,
|
|
107
103
|
HAS_HOOKS: context.hasHooks,
|
|
108
104
|
};
|
|
109
105
|
for (const flag of CONDITIONAL_FLAGS) {
|
|
@@ -134,7 +130,7 @@ export function resolvePlaceholders(content, context) {
|
|
|
134
130
|
* "last-writer-wins" collision when both Codex and Gemini target
|
|
135
131
|
* `.agents/skills/`.
|
|
136
132
|
*
|
|
137
|
-
* `{{CLI_FLAG}}`, `{{
|
|
133
|
+
* `{{CLI_FLAG}}`, `{{USER_ACTION_LABEL}}`, conditionals,
|
|
138
134
|
* and `{{PYTHON_CMD}}` are still resolved from the platform context. The
|
|
139
135
|
* shared skills do not use those placeholders, so they remain platform-
|
|
140
136
|
* neutral. Codex-only skill files (e.g. `trellis-continue/SKILL.md`,
|
|
@@ -148,13 +144,11 @@ export function resolvePlaceholdersNeutral(content, context) {
|
|
|
148
144
|
return result;
|
|
149
145
|
// Neutral form for the only collision-causing placeholder
|
|
150
146
|
result = result.replace(RE_CMD_REF, (_match, name) => `\`${name}\` (Trellis command)`);
|
|
151
|
-
result = result.replace(RE_EXECUTOR_AI, context.executorAI);
|
|
152
147
|
result = result.replace(RE_USER_ACTION_LABEL, context.userActionLabel);
|
|
153
148
|
result = result.replace(RE_CLI_FLAG, context.cliFlag);
|
|
154
149
|
// Conditional blocks (resolved per platform — none of the auto-triggered
|
|
155
150
|
// shared skills use conditionals, but Codex-only command-as-skill files might in future).
|
|
156
151
|
const flagValues = {
|
|
157
|
-
AGENT_CAPABLE: context.agentCapable,
|
|
158
152
|
HAS_HOOKS: context.hasHooks,
|
|
159
153
|
};
|
|
160
154
|
for (const flag of CONDITIONAL_FLAGS) {
|
|
@@ -254,24 +248,9 @@ import path from "node:path";
|
|
|
254
248
|
import { ensureDir, writeFile } from "../utils/file-writer.js";
|
|
255
249
|
import { getBundledSkillTemplates, getCommandTemplates, getSkillTemplates, } from "../templates/common/index.js";
|
|
256
250
|
import { getSharedHookScriptsForPlatform, } from "../templates/shared-hooks/index.js";
|
|
257
|
-
/**
|
|
258
|
-
* Filter command templates based on platform capabilities.
|
|
259
|
-
*
|
|
260
|
-
* `start.md` is stripped only on platforms that are BOTH `agentCapable` AND
|
|
261
|
-
* `hasHooks` — those platforms (Claude Code, Cursor, Kiro, Gemini, Qoder,
|
|
262
|
-
* CodeBuddy, Copilot, Droid, Pi) have a SessionStart-style hook that
|
|
263
|
-
* auto-injects the workflow overview, so a user-facing `start` would be
|
|
264
|
-
* redundant.
|
|
265
|
-
*
|
|
266
|
-
* `agentCapable && !hasHooks` platforms (Codex, ZCode, OpenCode, Reasonix, Grok)
|
|
267
|
-
* have no such hook (or use an out-of-band plugin), so they need the
|
|
268
|
-
* user-invocable `trellis-start` skill / `start.md` command as fallback.
|
|
269
|
-
* Snow is class-1 (`hasHooks: true`) with auto inject + project agents.
|
|
270
|
-
* Agent-less platforms (Kilo, Antigravity, Devin) also keep `start` since
|
|
271
|
-
* they rely entirely on user-triggered workflows.
|
|
272
|
-
*/
|
|
251
|
+
/** Hosts with startup hooks load context automatically; others retain start. */
|
|
273
252
|
function filterCommands(templates, ctx) {
|
|
274
|
-
if (ctx.
|
|
253
|
+
if (ctx.hasHooks) {
|
|
275
254
|
return templates.filter((t) => t.name !== "start");
|
|
276
255
|
}
|
|
277
256
|
return templates;
|
|
@@ -428,162 +407,4 @@ export function collectBothTemplates(ctx, cmdPath, skillRoot, wrapCmd) {
|
|
|
428
407
|
}
|
|
429
408
|
return files;
|
|
430
409
|
}
|
|
431
|
-
/** Build the standard "load Trellis context first" prelude block. */
|
|
432
|
-
export function buildPullBasedPrelude(agentType) {
|
|
433
|
-
// JSONL filenames stay as implement.jsonl / check.jsonl — they are internal
|
|
434
|
-
// context buckets keyed by role (not by platform-visible agent name).
|
|
435
|
-
const jsonl = agentType === "check" ? "check.jsonl" : "implement.jsonl";
|
|
436
|
-
return replacePythonCommandLiterals(`## Required: Load Trellis Context First
|
|
437
|
-
|
|
438
|
-
This platform does NOT auto-inject task context via hook. Before doing anything else, you MUST load context yourself.
|
|
439
|
-
|
|
440
|
-
### Step 1: Find the active task path
|
|
441
|
-
|
|
442
|
-
Try in order — stop at the first one that yields a task path:
|
|
443
|
-
|
|
444
|
-
1. **Look at the dispatch prompt** you received from the main agent. If its first line is \`Active task: <path>\` (e.g. \`Active task: .trellis/tasks/04-17-foo\`), use that path. The main agent is required to include this line on class-2 platforms.
|
|
445
|
-
2. **Run** \`python3 ./.trellis/scripts/task.py current --source\` and read the \`Current task:\` line.
|
|
446
|
-
3. **If both fail** (no \`Active task:\` line in the prompt and \`task.py current\` returns no task), ask the user which task to work on; do NOT guess.
|
|
447
|
-
|
|
448
|
-
### Step 2: Load task context from the resolved path
|
|
449
|
-
|
|
450
|
-
1. Read \`<task-path>/${jsonl}\` — JSONL list of spec/research files relevant to this agent.
|
|
451
|
-
2. For each entry in the JSONL, Read its \`file\` path — these are the specs and research notes you must follow.
|
|
452
|
-
**Skip rows without a \`"file"\` field** (e.g. \`{"_example": "..."}\` placeholder rows left over from an older \`task.py create\`).
|
|
453
|
-
3. Read the task's \`prd.md\` (requirements), then \`design.md\` if present (technical design), then \`implement.md\` if present (execution plan).
|
|
454
|
-
|
|
455
|
-
If \`${jsonl}\` has no curated entries (empty, only a placeholder row, or the file is missing), fall back to: read the task artifacts, list available specs with \`python3 ./.trellis/scripts/get_context.py --mode packages\`, and pick the specs that match the task domain yourself. Do NOT block on the missing jsonl — lightweight tasks may be PRD-only, while complex tasks may also include \`design.md\` and \`implement.md\`.
|
|
456
|
-
|
|
457
|
-
If the resolved task path has no \`prd.md\`, ask the user what to work on; do NOT proceed without context.
|
|
458
|
-
|
|
459
|
-
---
|
|
460
|
-
|
|
461
|
-
`);
|
|
462
|
-
}
|
|
463
|
-
/** Insert prelude into a markdown agent definition (after YAML frontmatter). */
|
|
464
|
-
export function injectPullBasedPreludeMarkdown(content, agentType) {
|
|
465
|
-
const prelude = buildPullBasedPrelude(agentType);
|
|
466
|
-
const sections = splitMarkdownFrontmatter(content);
|
|
467
|
-
if (!sections) {
|
|
468
|
-
return prelude + content;
|
|
469
|
-
}
|
|
470
|
-
const head = `---\n${sections.frontmatter}\n---`;
|
|
471
|
-
const tailTrimmed = sections.body.replace(/^(\r?\n)+/, "");
|
|
472
|
-
return `${head}\n\n${prelude}${tailTrimmed}`;
|
|
473
|
-
}
|
|
474
|
-
/** Insert prelude into a TOML agent (codex `developer_instructions`). */
|
|
475
|
-
export function injectPullBasedPreludeToml(content, agentType) {
|
|
476
|
-
const prelude = buildPullBasedPrelude(agentType);
|
|
477
|
-
// Match: developer_instructions = """ followed by newline
|
|
478
|
-
const re = /(developer_instructions\s*=\s*""")(\r?\n)/;
|
|
479
|
-
if (!re.test(content)) {
|
|
480
|
-
return content;
|
|
481
|
-
}
|
|
482
|
-
return content.replace(re, `$1$2${prelude}`);
|
|
483
|
-
}
|
|
484
|
-
/** Best-effort detect agent type from filename ("trellis-implement.md" → "implement").
|
|
485
|
-
* Returns null for research and unknown names — they skip the prelude.
|
|
486
|
-
*/
|
|
487
|
-
export function detectSubAgentType(name) {
|
|
488
|
-
const base = name.replace(/\.(md|toml|prompt\.md)$/, "");
|
|
489
|
-
if (base === "trellis-implement" || base === "trellis-check") {
|
|
490
|
-
return base === "trellis-implement" ? "implement" : "check";
|
|
491
|
-
}
|
|
492
|
-
return null;
|
|
493
|
-
}
|
|
494
|
-
function splitMarkdownFrontmatter(content) {
|
|
495
|
-
const match = content.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?/);
|
|
496
|
-
if (!match) {
|
|
497
|
-
return null;
|
|
498
|
-
}
|
|
499
|
-
return {
|
|
500
|
-
frontmatter: match[1],
|
|
501
|
-
body: content.slice(match[0].length),
|
|
502
|
-
};
|
|
503
|
-
}
|
|
504
|
-
export function applyPullBasedPreludeMarkdown(agents) {
|
|
505
|
-
return agents.map((a) => {
|
|
506
|
-
const t = detectSubAgentType(a.name);
|
|
507
|
-
if (!t)
|
|
508
|
-
return { ...a };
|
|
509
|
-
return {
|
|
510
|
-
...a,
|
|
511
|
-
content: injectPullBasedPreludeMarkdown(a.content, t),
|
|
512
|
-
};
|
|
513
|
-
});
|
|
514
|
-
}
|
|
515
|
-
function mapLegacyToolToCopilot(tool) {
|
|
516
|
-
switch (tool) {
|
|
517
|
-
case "Read":
|
|
518
|
-
return ["read"];
|
|
519
|
-
case "Write":
|
|
520
|
-
case "Edit":
|
|
521
|
-
return ["edit"];
|
|
522
|
-
case "Glob":
|
|
523
|
-
case "Grep":
|
|
524
|
-
return ["search"];
|
|
525
|
-
case "Bash":
|
|
526
|
-
return ["execute"];
|
|
527
|
-
// Generic MCP wildcard — used by trellis-research to opt into "any MCP
|
|
528
|
-
// tool the user has configured" without locking the source template to a
|
|
529
|
-
// specific provider. Claude Code parses wildcards as glob-match-at-runtime
|
|
530
|
-
// (no silent agent-registration skip if nothing matches), so this is the
|
|
531
|
-
// safe default; explicit `mcp__exa__*` names would silent-skip the agent
|
|
532
|
-
// when the Exa MCP server is absent (#302).
|
|
533
|
-
case "mcp__*":
|
|
534
|
-
return ["web", "exa/*", "chrome-devtools/*"];
|
|
535
|
-
case "mcp__exa__web_search_exa":
|
|
536
|
-
case "mcp__exa__get_code_context_exa":
|
|
537
|
-
return ["web", "exa/*"];
|
|
538
|
-
case "mcp__chrome-devtools__*":
|
|
539
|
-
return ["chrome-devtools/*"];
|
|
540
|
-
case "Skill":
|
|
541
|
-
return [];
|
|
542
|
-
default:
|
|
543
|
-
return [];
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
function normalizeCopilotMarkdownAgentFrontmatter(content) {
|
|
547
|
-
const sections = splitMarkdownFrontmatter(content);
|
|
548
|
-
if (!sections) {
|
|
549
|
-
return content;
|
|
550
|
-
}
|
|
551
|
-
const frontmatter = sections.frontmatter.split(/\r?\n/);
|
|
552
|
-
const body = sections.body;
|
|
553
|
-
const normalized = [];
|
|
554
|
-
for (const line of frontmatter) {
|
|
555
|
-
if (!line.startsWith("tools:")) {
|
|
556
|
-
normalized.push(line);
|
|
557
|
-
continue;
|
|
558
|
-
}
|
|
559
|
-
const legacyTools = line
|
|
560
|
-
.slice("tools:".length)
|
|
561
|
-
.split(",")
|
|
562
|
-
.map((token) => token.trim())
|
|
563
|
-
.filter((token) => token.length > 0);
|
|
564
|
-
const tools = [...new Set(legacyTools.flatMap(mapLegacyToolToCopilot))];
|
|
565
|
-
normalized.push("tools:");
|
|
566
|
-
for (const tool of tools) {
|
|
567
|
-
normalized.push(` - ${tool}`);
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
return `---\n${normalized.join("\n")}\n---\n${body}`;
|
|
571
|
-
}
|
|
572
|
-
export function normalizeCopilotMarkdownAgents(agents) {
|
|
573
|
-
return agents.map((agent) => ({
|
|
574
|
-
...agent,
|
|
575
|
-
content: normalizeCopilotMarkdownAgentFrontmatter(agent.content),
|
|
576
|
-
}));
|
|
577
|
-
}
|
|
578
|
-
export function applyPullBasedPreludeToml(agents) {
|
|
579
|
-
return agents.map((a) => {
|
|
580
|
-
const t = detectSubAgentType(a.name);
|
|
581
|
-
if (!t)
|
|
582
|
-
return { ...a };
|
|
583
|
-
return {
|
|
584
|
-
...a,
|
|
585
|
-
content: injectPullBasedPreludeToml(a.content, t),
|
|
586
|
-
};
|
|
587
|
-
});
|
|
588
|
-
}
|
|
589
410
|
//# sourceMappingURL=shared.js.map
|