@pennixrv/trellis 0.7.2-beta.3 → 0.7.2-beta.30
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/cli/index.js +4 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/ablate.d.ts.map +1 -1
- package/dist/commands/ablate.js +13 -0
- package/dist/commands/ablate.js.map +1 -1
- package/dist/commands/init.d.ts +2 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +138 -120
- 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 +2 -0
- package/dist/commands/teamwork/artifact.d.ts.map +1 -1
- package/dist/commands/teamwork/artifact.js +4 -2
- 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 +279 -24
- 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 +47 -5
- 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/teammate-launch.d.ts +3 -1
- package/dist/commands/teamwork/teammate-launch.d.ts.map +1 -1
- package/dist/commands/teamwork/teammate-launch.js +7 -5
- package/dist/commands/teamwork/teammate-launch.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 +188 -59
- 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 +13 -106
- 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 +5 -0
- package/dist/configurators/workflow.d.ts.map +1 -1
- package/dist/configurators/workflow.js +85 -57
- 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.21.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.22.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.23.json +9 -0
- package/dist/migrations/manifests/0.7.2-beta.24.json +8 -0
- package/dist/migrations/manifests/0.7.2-beta.25.json +8 -0
- package/dist/migrations/manifests/0.7.2-beta.26.json +8 -0
- package/dist/migrations/manifests/0.7.2-beta.27.json +8 -0
- package/dist/migrations/manifests/0.7.2-beta.28.json +8 -0
- package/dist/migrations/manifests/0.7.2-beta.29.json +8 -0
- package/dist/migrations/manifests/0.7.2-beta.30.json +10 -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 +4 -19
- package/dist/templates/codex/hooks/session-start.py +25 -30
- package/dist/templates/codex/hooks/turn-guard.py +67 -0
- package/dist/templates/codex/hooks.json +57 -6
- 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 +13 -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 +17 -9
- package/dist/templates/common/bundled-skills/trellis-goal-exploration-and-requirements/SKILL.md +2 -0
- package/dist/templates/common/bundled-skills/trellis-goal-exploration-and-requirements/workflow.md +7 -3
- 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/bundled-skills.md +1 -1
- 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 +27 -6
- package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/SKILL.md +9 -7
- package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/mcp-setup.md +12 -84
- package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/repository-analysis.md +5 -25
- 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 +5 -3
- 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 +82 -0
- package/dist/templates/common/commands/continue.md +16 -1
- 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 +14 -1
- 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/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 +9 -14
- 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 +27 -60
- 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 +19 -17
- package/dist/templates/opencode/plugins/session-start.js +2 -6
- package/dist/templates/pi/extensions/trellis/index.ts.txt +17 -1436
- 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 +4 -70
- package/dist/templates/shared-hooks/index.js.map +1 -1
- package/dist/templates/shared-hooks/inject-shell-session-context.py +27 -1
- package/dist/templates/shared-hooks/inject-spec-context.py +6 -35
- package/dist/templates/shared-hooks/inject-workflow-state.py +62 -104
- 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 +22 -22
- package/dist/templates/trellis/agents/teammate.md +6 -2
- package/dist/templates/trellis/agents/worktree-delegation-node.md +30 -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 +9 -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 +16 -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/markdown_format.py +107 -0
- 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 +66 -9
- package/dist/templates/trellis/scripts/common/task_move.py +11 -5
- 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_turn.py +514 -0
- package/dist/templates/trellis/scripts/common/task_workflow.py +380 -395
- package/dist/templates/trellis/scripts/common/workflow_phase.py +3 -36
- package/dist/templates/trellis/scripts/common/workflow_selection.py +35 -40
- package/dist/templates/trellis/scripts/common/worktree_delegation.py +690 -0
- package/dist/templates/trellis/scripts/common/worktree_delegation_contract.py +446 -0
- package/dist/templates/trellis/scripts/common/worktree_delegation_messages.py +376 -0
- package/dist/templates/trellis/scripts/common/worktree_delegation_transport.py +57 -0
- package/dist/templates/trellis/scripts/markdown_format.py +40 -0
- package/dist/templates/trellis/scripts/task.py +73 -10
- package/dist/templates/trellis/workflow.md +48 -9
- 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 +41 -1
- package/dist/utils/ablation-store.js.map +1 -1
- package/dist/utils/asset-backup.d.ts +1 -0
- package/dist/utils/asset-backup.d.ts.map +1 -1
- package/dist/utils/asset-backup.js +131 -31
- package/dist/utils/asset-backup.js.map +1 -1
- package/dist/utils/atomic-write.d.ts +1 -1
- package/dist/utils/atomic-write.d.ts.map +1 -1
- package/dist/utils/atomic-write.js +8 -2
- package/dist/utils/atomic-write.js.map +1 -1
- package/dist/utils/codex-config-ownership.d.ts +13 -0
- package/dist/utils/codex-config-ownership.d.ts.map +1 -0
- package/dist/utils/codex-config-ownership.js +64 -0
- package/dist/utils/codex-config-ownership.js.map +1 -0
- 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 +62 -8
- 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/project-init.d.ts +26 -0
- package/dist/utils/project-init.d.ts.map +1 -0
- package/dist/utils/project-init.js +484 -0
- package/dist/utils/project-init.js.map +1 -0
- 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 +221 -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,100 +1,10 @@
|
|
|
1
|
-
import fs from "node:fs";
|
|
2
1
|
import path from "node:path";
|
|
3
2
|
import { AI_TOOLS } from "../types/ai-tools.js";
|
|
4
|
-
import {
|
|
5
|
-
import { ensureDir } from "../utils/file-writer.js";
|
|
3
|
+
import { getAllHooks, getConfigTemplate, getHooksConfig, } from "../templates/codex/index.js";
|
|
4
|
+
import { ensureDir, recordWrite } from "../utils/file-writer.js";
|
|
5
|
+
import { writeFileAtomic } from "../utils/atomic-write.js";
|
|
6
|
+
import { CODEX_CONFIG_PATH, readCodexConfig, } from "../utils/codex-config-ownership.js";
|
|
6
7
|
import { resolvePlaceholders, resolveAllAsSkillsNeutral, resolveBundledSkills, collectSkillTemplates, collectSharedHooks, renderTemplateMap, writeTemplateMap, } from "./shared.js";
|
|
7
|
-
/**
|
|
8
|
-
* Extract user-set `model` / `model_reasoning_effort` top-level keys from an
|
|
9
|
-
* existing `trellis-*.toml` agent profile. Only matches uncommented
|
|
10
|
-
* `key = "value"` lines (the static template's `# model = "..."` hint lines
|
|
11
|
-
* never match). Not a general TOML parser — these files are known-flat with
|
|
12
|
-
* no `[section]` headers.
|
|
13
|
-
*/
|
|
14
|
-
export function extractCodexAgentModelKeys(existingContent) {
|
|
15
|
-
const result = {};
|
|
16
|
-
let inMultilineString = false;
|
|
17
|
-
for (const rawLine of existingContent.split(/\r?\n/)) {
|
|
18
|
-
const trimmed = rawLine.trim();
|
|
19
|
-
if (inMultilineString) {
|
|
20
|
-
// Multi-line basic strings end with a line containing `"""`. Body text
|
|
21
|
-
// (e.g. developer_instructions) may itself contain lines that look
|
|
22
|
-
// like `model = "..."` — never extract from inside the string.
|
|
23
|
-
if (trimmed.includes('"""'))
|
|
24
|
-
inMultilineString = false;
|
|
25
|
-
continue;
|
|
26
|
-
}
|
|
27
|
-
// Detect the start of a multi-line basic string: `key = """...` where
|
|
28
|
-
// the string isn't also closed on the same line.
|
|
29
|
-
if (/^[A-Za-z_][A-Za-z0-9_-]*\s*=\s*"""/.test(trimmed)) {
|
|
30
|
-
const tripleQuoteCount = (trimmed.match(/"""/g) ?? []).length;
|
|
31
|
-
if (tripleQuoteCount < 2)
|
|
32
|
-
inMultilineString = true;
|
|
33
|
-
continue;
|
|
34
|
-
}
|
|
35
|
-
const m = trimmed.match(/^(model|model_reasoning_effort)\s*=\s*"((?:[^"\\]|\\.)*)"\s*(?:#.*)?$/);
|
|
36
|
-
if (!m)
|
|
37
|
-
continue;
|
|
38
|
-
const key = m[1];
|
|
39
|
-
result[key] = tomlUnescape(m[2] ?? "");
|
|
40
|
-
}
|
|
41
|
-
return result;
|
|
42
|
-
}
|
|
43
|
-
/** Escape a value for embedding in a double-quoted TOML string. */
|
|
44
|
-
function tomlEscape(value) {
|
|
45
|
-
return value.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
46
|
-
}
|
|
47
|
-
/** Reverse of {@link tomlEscape} for values captured from an existing file. */
|
|
48
|
-
function tomlUnescape(value) {
|
|
49
|
-
return value.replace(/\\"/g, '"').replace(/\\\\/g, "\\");
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Re-insert preserved `model` / `model_reasoning_effort` keys right after
|
|
53
|
-
* `sandbox_mode = "..."` in a freshly rendered `trellis-*.toml` agent
|
|
54
|
-
* profile. Unset keys omit the corresponding line entirely (Codex falls
|
|
55
|
-
* back through spawn value -> `[agents]` default -> parent). The fresh
|
|
56
|
-
* template content never contains these keys itself (only commented
|
|
57
|
-
* hints), so no de-dup pass is needed before inserting.
|
|
58
|
-
*/
|
|
59
|
-
export function applyCodexAgentModelKeys(freshContent, preserved) {
|
|
60
|
-
const lines = [];
|
|
61
|
-
if (preserved.model) {
|
|
62
|
-
lines.push(`model = "${tomlEscape(preserved.model)}"`);
|
|
63
|
-
}
|
|
64
|
-
if (preserved.model_reasoning_effort) {
|
|
65
|
-
lines.push(`model_reasoning_effort = "${tomlEscape(preserved.model_reasoning_effort)}"`);
|
|
66
|
-
}
|
|
67
|
-
if (lines.length === 0) {
|
|
68
|
-
return freshContent;
|
|
69
|
-
}
|
|
70
|
-
return freshContent.replace(/^(sandbox_mode\s*=\s*".*"\n)/m, (matched) => `${matched}${lines.join("\n")}\n`);
|
|
71
|
-
}
|
|
72
|
-
function isCodexAgentTomlPath(filePath) {
|
|
73
|
-
return (filePath.startsWith(".codex/agents/trellis-") && filePath.endsWith(".toml"));
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Preserve any user-set `model` / `model_reasoning_effort` keys from the
|
|
77
|
-
* on-disk `.codex/agents/trellis-*.toml` files (at `cwd`) into every
|
|
78
|
-
* matching entry of `files` (the freshly rendered desired content). Mutates
|
|
79
|
-
* `files` in place. Must run before hash comparison / write so that a
|
|
80
|
-
* project whose only local edit is these two keys is not flagged as a
|
|
81
|
-
* modified-file conflict.
|
|
82
|
-
*/
|
|
83
|
-
export function preserveCodexAgentModelKeys(cwd, files) {
|
|
84
|
-
for (const [filePath, freshContent] of files) {
|
|
85
|
-
if (!isCodexAgentTomlPath(filePath))
|
|
86
|
-
continue;
|
|
87
|
-
let existingContent = "";
|
|
88
|
-
try {
|
|
89
|
-
existingContent = fs.readFileSync(path.join(cwd, filePath), "utf-8");
|
|
90
|
-
}
|
|
91
|
-
catch {
|
|
92
|
-
continue;
|
|
93
|
-
}
|
|
94
|
-
const preserved = extractCodexAgentModelKeys(existingContent);
|
|
95
|
-
files.set(filePath, applyCodexAgentModelKeys(freshContent, preserved));
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
8
|
/**
|
|
99
9
|
* The Codex file set — written at init and diffed by `trellis update`.
|
|
100
10
|
* - .agents/skills/ — shared skills from common source, rendered with the
|
|
@@ -115,9 +25,6 @@ export function collectCodexTemplates() {
|
|
|
115
25
|
for (const [filePath, content] of collectSkillTemplates(".agents/skills", resolveAllAsSkillsNeutral(ctx), resolveBundledSkills(ctx))) {
|
|
116
26
|
files.set(filePath, content);
|
|
117
27
|
}
|
|
118
|
-
for (const agent of getAllAgents()) {
|
|
119
|
-
files.set(`.codex/agents/${agent.name}.toml`, agent.content);
|
|
120
|
-
}
|
|
121
28
|
for (const hook of getAllHooks()) {
|
|
122
29
|
files.set(`.codex/hooks/${hook.name}`, hook.content);
|
|
123
30
|
}
|
|
@@ -135,14 +42,15 @@ export function collectCodexTemplates() {
|
|
|
135
42
|
* behavior a `Map<path, content>` cannot carry.
|
|
136
43
|
*/
|
|
137
44
|
export async function configureCodex(cwd) {
|
|
138
|
-
// Build map → post-process map → write. Rendered up front so the preserved
|
|
139
|
-
// user keys are grafted onto exactly the bytes `trellis update` compares
|
|
140
|
-
// against — update.ts runs preserveCodexAgentModelKeys over its already
|
|
141
|
-
// rendered map too, and the two must agree. writeTemplateMap re-renders,
|
|
142
|
-
// which is a no-op (replacePythonCommandLiterals is idempotent).
|
|
143
45
|
const files = renderTemplateMap(collectCodexTemplates());
|
|
144
|
-
|
|
46
|
+
const config = files.get(CODEX_CONFIG_PATH);
|
|
47
|
+
const configPath = path.join(cwd, CODEX_CONFIG_PATH);
|
|
48
|
+
files.delete(CODEX_CONFIG_PATH);
|
|
145
49
|
await writeTemplateMap(cwd, files);
|
|
50
|
+
if (config !== undefined && readCodexConfig(configPath) === null) {
|
|
51
|
+
writeFileAtomic(configPath, config, undefined, true);
|
|
52
|
+
recordWrite(configPath);
|
|
53
|
+
}
|
|
146
54
|
// RESIDUAL — not expressible as a path→content pair: a directory with no
|
|
147
55
|
// files in it. Trellis ships no Codex-specific skills (the workflow skills
|
|
148
56
|
// all land in .agents/skills/, which Codex reads too), but users need the
|
|
@@ -161,9 +69,8 @@ export async function configureCodex(cwd) {
|
|
|
161
69
|
if (!process.env.VITEST && !process.env.TRELLIS_QUIET) {
|
|
162
70
|
process.stderr.write("⚠️ Codex hooks require `features.hooks = true` in your " +
|
|
163
71
|
"~/.codex/config.toml (Codex 0.129+; older versions: `codex_hooks = true`). " +
|
|
164
|
-
"
|
|
165
|
-
"hooks
|
|
166
|
-
"sub-agent context won't auto-inject (agents retain a pull fallback). " +
|
|
72
|
+
"When automatic project setup is unselected, review the project " +
|
|
73
|
+
"and its Trellis hooks in Codex before use. Init reports automatic setup separately. " +
|
|
167
74
|
"See Trellis docs for details.\n");
|
|
168
75
|
}
|
|
169
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex.js","sourceRoot":"","sources":["../../src/configurators/codex.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"codex.js","sourceRoot":"","sources":["../../src/configurators/codex.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,cAAc,GACf,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EACL,iBAAiB,EACjB,eAAe,GAChB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,aAAa,CAAC;AAErB;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,qBAAqB;IACnC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IACxC,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC;IAE3C,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,qBAAqB,CACrD,gBAAgB,EAChB,yBAAyB,CAAC,GAAG,CAAC,EAC9B,oBAAoB,CAAC,GAAG,CAAC,CAC1B,EAAE,CAAC;QACF,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IACD,KAAK,MAAM,IAAI,IAAI,WAAW,EAAE,EAAE,CAAC;QACjC,KAAK,CAAC,GAAG,CAAC,gBAAgB,IAAI,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACvD,CAAC;IACD,0EAA0E;IAC1E,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,KAAK,CAAC,GAAG,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;IACtE,MAAM,MAAM,GAAG,iBAAiB,EAAE,CAAC;IACnC,KAAK,CAAC,GAAG,CAAC,UAAU,MAAM,CAAC,UAAU,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAEzD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,GAAW;IAC9C,MAAM,KAAK,GAAG,iBAAiB,CAAC,qBAAqB,EAAE,CAAC,CAAC;IACzD,MAAM,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAC5C,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC;IACrD,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAChC,MAAM,gBAAgB,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACnC,IAAI,MAAM,KAAK,SAAS,IAAI,eAAe,CAAC,UAAU,CAAC,KAAK,IAAI,EAAE,CAAC;QACjE,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;QACrD,WAAW,CAAC,UAAU,CAAC,CAAC;IAC1B,CAAC;IAED,yEAAyE;IACzE,2EAA2E;IAC3E,0EAA0E;IAC1E,iEAAiE;IACjE,4EAA4E;IAC5E,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE9C,kEAAkE;IAClE,gFAAgF;IAChF,wEAAwE;IACxE,yEAAyE;IACzE,yEAAyE;IACzE,6EAA6E;IAC7E,sEAAsE;IACtE,wEAAwE;IACxE,4CAA4C;IAC5C,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;QACtD,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,0DAA0D;YACxD,6EAA6E;YAC7E,iEAAiE;YACjE,sFAAsF;YACtF,iCAAiC,CACpC,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The GitHub Copilot file set — written at init and diffed by `trellis update`.
|
|
3
|
-
* - prompts/ — start + finish-work as prompt files
|
|
4
|
-
* - skills/trellis-{name}/SKILL.md — auto-triggered skills from `common/skills/`
|
|
5
|
-
* - agents/{name}.agent.md — sub-agent definitions (note .agent.md suffix)
|
|
6
|
-
* - copilot/hooks/ — platform-specific + shared hook scripts
|
|
7
|
-
* - hooks config — hooks.json
|
|
8
|
-
* - copilot-instructions.md — repository-wide review guidance. `trellis update`
|
|
9
|
-
* replaces this entry with a managed-block merge over the user's file
|
|
10
|
-
* (`buildCopilotInstructionsTemplate`); on a fresh project the merge returns
|
|
11
|
-
* the template verbatim, so init and update agree.
|
|
12
|
-
*/
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
13
2
|
export declare function collectCopilotTemplates(): Map<string, string>;
|
|
14
3
|
//# sourceMappingURL=copilot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copilot.d.ts","sourceRoot":"","sources":["../../src/configurators/copilot.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"copilot.d.ts","sourceRoot":"","sources":["../../src/configurators/copilot.ts"],"names":[],"mappings":"AAgBA,oEAAoE;AACpE,wBAAgB,uBAAuB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CA2B7D"}
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
import { AI_TOOLS } from "../types/ai-tools.js";
|
|
2
2
|
import { COPILOT_INSTRUCTIONS_PATH, getAllHooks, getCopilotInstructions, getHooksConfig, } from "../templates/copilot/index.js";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The GitHub Copilot file set — written at init and diffed by `trellis update`.
|
|
7
|
-
* - prompts/ — start + finish-work as prompt files
|
|
8
|
-
* - skills/trellis-{name}/SKILL.md — auto-triggered skills from `common/skills/`
|
|
9
|
-
* - agents/{name}.agent.md — sub-agent definitions (note .agent.md suffix)
|
|
10
|
-
* - copilot/hooks/ — platform-specific + shared hook scripts
|
|
11
|
-
* - hooks config — hooks.json
|
|
12
|
-
* - copilot-instructions.md — repository-wide review guidance. `trellis update`
|
|
13
|
-
* replaces this entry with a managed-block merge over the user's file
|
|
14
|
-
* (`buildCopilotInstructionsTemplate`); on a fresh project the merge returns
|
|
15
|
-
* the template verbatim, so init and update agree.
|
|
16
|
-
*/
|
|
3
|
+
import { resolvePlaceholders, resolveCommands, resolveSkills, resolveBundledSkills, collectSkillTemplates, collectSharedHooks, } from "./shared.js";
|
|
4
|
+
/** Main-session platform assets and native context entry points. */
|
|
17
5
|
export function collectCopilotTemplates() {
|
|
18
6
|
const ctx = AI_TOOLS.copilot.templateContext;
|
|
19
7
|
const files = new Map();
|
|
@@ -28,15 +16,9 @@ export function collectCopilotTemplates() {
|
|
|
28
16
|
files.set(`.github/copilot/hooks/${hook.name}`, hook.content);
|
|
29
17
|
}
|
|
30
18
|
// Shared hooks (inject-workflow-state.py only). Copilot bundles its own
|
|
31
|
-
// session-start.py above; sub-agent context is pull-based (class-2).
|
|
32
19
|
for (const [k, v] of collectSharedHooks(".github/copilot/hooks", "copilot")) {
|
|
33
20
|
files.set(k, v);
|
|
34
21
|
}
|
|
35
|
-
// Agents: reuse Cursor content + prepend pull-based prelude, then
|
|
36
|
-
// normalize Cursor's Claude-style tools frontmatter for Copilot.
|
|
37
|
-
for (const agent of applyPullBasedPreludeMarkdown(normalizeCopilotMarkdownAgents(getCursorAgents()))) {
|
|
38
|
-
files.set(`.github/agents/${agent.name}.agent.md`, agent.content);
|
|
39
|
-
}
|
|
40
22
|
files.set(COPILOT_INSTRUCTIONS_PATH, getCopilotInstructions());
|
|
41
23
|
const hooksConfig = resolvePlaceholders(getHooksConfig());
|
|
42
24
|
files.set(".github/copilot/hooks.json", hooksConfig);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copilot.js","sourceRoot":"","sources":["../../src/configurators/copilot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,yBAAyB,EACzB,WAAW,EACX,sBAAsB,EACtB,cAAc,GACf,MAAM,+BAA+B,CAAC;AACvC,OAAO,
|
|
1
|
+
{"version":3,"file":"copilot.js","sourceRoot":"","sources":["../../src/configurators/copilot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,yBAAyB,EACzB,WAAW,EACX,sBAAsB,EACtB,cAAc,GACf,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AAErB,oEAAoE;AACpE,MAAM,UAAU,uBAAuB;IACrC,MAAM,GAAG,GAAG,QAAQ,CAAC,OAAO,CAAC,eAAe,CAAC;IAC7C,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IACxC,KAAK,MAAM,GAAG,IAAI,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC;QACvC,KAAK,CAAC,GAAG,CAAC,mBAAmB,GAAG,CAAC,IAAI,YAAY,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAClE,CAAC;IACD,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,qBAAqB,CACrD,gBAAgB,EAChB,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;IACD,mCAAmC;IACnC,KAAK,MAAM,IAAI,IAAI,WAAW,EAAE,EAAE,CAAC;QACjC,KAAK,CAAC,GAAG,CAAC,yBAAyB,IAAI,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;IACD,wEAAwE;IAExE,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,kBAAkB,CAAC,uBAAuB,EAAE,SAAS,CAAC,EAAE,CAAC;QAC5E,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,KAAK,CAAC,GAAG,CAAC,yBAAyB,EAAE,sBAAsB,EAAE,CAAC,CAAC;IAC/D,MAAM,WAAW,GAAG,mBAAmB,CAAC,cAAc,EAAE,CAAC,CAAC;IAC1D,KAAK,CAAC,GAAG,CAAC,4BAA4B,EAAE,WAAW,CAAC,CAAC;IACrD,KAAK,CAAC,GAAG,CAAC,4BAA4B,EAAE,WAAW,CAAC,CAAC;IACrD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Cursor file set — written at init and diffed by `trellis update`.
|
|
3
|
-
* - commands/ — start + finish-work as slash commands (trellis- prefix, flat)
|
|
4
|
-
* - skills/trellis-{name}/SKILL.md — auto-triggered skills from `common/skills/`
|
|
5
|
-
* - agents/{name}.md — sub-agent definitions
|
|
6
|
-
* - hooks/*.py — shared hook scripts
|
|
7
|
-
* - hooks.json — hook configuration (separate file, not settings.json)
|
|
8
|
-
*/
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
9
2
|
export declare function collectCursorTemplates(): Map<string, string>;
|
|
10
3
|
//# sourceMappingURL=cursor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../src/configurators/cursor.ts"],"names":[],"mappings":"AAQA
|
|
1
|
+
{"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../src/configurators/cursor.ts"],"names":[],"mappings":"AAQA,oEAAoE;AACpE,wBAAgB,sBAAsB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAW5D"}
|
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
import { AI_TOOLS } from "../types/ai-tools.js";
|
|
2
2
|
import { resolvePlaceholders, collectBothTemplates, collectSharedHooks, } from "./shared.js";
|
|
3
|
-
import {
|
|
4
|
-
/**
|
|
5
|
-
* The Cursor file set — written at init and diffed by `trellis update`.
|
|
6
|
-
* - commands/ — start + finish-work as slash commands (trellis- prefix, flat)
|
|
7
|
-
* - skills/trellis-{name}/SKILL.md — auto-triggered skills from `common/skills/`
|
|
8
|
-
* - agents/{name}.md — sub-agent definitions
|
|
9
|
-
* - hooks/*.py — shared hook scripts
|
|
10
|
-
* - hooks.json — hook configuration (separate file, not settings.json)
|
|
11
|
-
*/
|
|
3
|
+
import { getHooksConfig } from "../templates/cursor/index.js";
|
|
4
|
+
/** Main-session platform assets and native context entry points. */
|
|
12
5
|
export function collectCursorTemplates() {
|
|
13
6
|
const files = collectBothTemplates(AI_TOOLS.cursor.templateContext, (n) => `.cursor/commands/trellis-${n}.md`, ".cursor/skills");
|
|
14
|
-
for (const agent of getAllAgents()) {
|
|
15
|
-
files.set(`.cursor/agents/${agent.name}.md`, agent.content);
|
|
16
|
-
}
|
|
17
7
|
for (const [k, v] of collectSharedHooks(".cursor/hooks", "cursor")) {
|
|
18
8
|
files.set(k, v);
|
|
19
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursor.js","sourceRoot":"","sources":["../../src/configurators/cursor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"cursor.js","sourceRoot":"","sources":["../../src/configurators/cursor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,oEAAoE;AACpE,MAAM,UAAU,sBAAsB;IACpC,MAAM,KAAK,GAAG,oBAAoB,CAChC,QAAQ,CAAC,MAAM,CAAC,eAAe,EAC/B,CAAC,CAAC,EAAE,EAAE,CAAC,4BAA4B,CAAC,KAAK,EACzC,gBAAgB,CACjB,CAAC;IACF,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,kBAAkB,CAAC,eAAe,EAAE,QAAQ,CAAC,EAAE,CAAC;QACnE,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,KAAK,CAAC,GAAG,CAAC,oBAAoB,EAAE,mBAAmB,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;IACvE,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Factory Droid file set — written at init and diffed by `trellis update`.
|
|
3
|
-
* - commands/trellis/ — start + finish-work as slash commands
|
|
4
|
-
* - skills/trellis-{name}/SKILL.md — auto-triggered skills from `common/skills/`
|
|
5
|
-
* - droids/{name}.md — sub-agent definitions (Droid calls them "droids")
|
|
6
|
-
* - hooks/*.py — shared hook scripts
|
|
7
|
-
* - settings.json — hook configuration
|
|
8
|
-
*/
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
9
2
|
export declare function collectDroidTemplates(): Map<string, string>;
|
|
10
3
|
//# sourceMappingURL=droid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"droid.d.ts","sourceRoot":"","sources":["../../src/configurators/droid.ts"],"names":[],"mappings":"AAQA
|
|
1
|
+
{"version":3,"file":"droid.d.ts","sourceRoot":"","sources":["../../src/configurators/droid.ts"],"names":[],"mappings":"AAQA,oEAAoE;AACpE,wBAAgB,qBAAqB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAe3D"}
|
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
import { AI_TOOLS } from "../types/ai-tools.js";
|
|
2
2
|
import { resolvePlaceholders, collectBothTemplates, collectSharedHooks, } from "./shared.js";
|
|
3
|
-
import {
|
|
4
|
-
/**
|
|
5
|
-
* The Factory Droid file set — written at init and diffed by `trellis update`.
|
|
6
|
-
* - commands/trellis/ — start + finish-work as slash commands
|
|
7
|
-
* - skills/trellis-{name}/SKILL.md — auto-triggered skills from `common/skills/`
|
|
8
|
-
* - droids/{name}.md — sub-agent definitions (Droid calls them "droids")
|
|
9
|
-
* - hooks/*.py — shared hook scripts
|
|
10
|
-
* - settings.json — hook configuration
|
|
11
|
-
*/
|
|
3
|
+
import { getSettingsTemplate } from "../templates/droid/index.js";
|
|
4
|
+
/** Main-session platform assets and native context entry points. */
|
|
12
5
|
export function collectDroidTemplates() {
|
|
13
6
|
const files = collectBothTemplates(AI_TOOLS.droid.templateContext, (n) => `.factory/commands/trellis/${n}.md`, ".factory/skills");
|
|
14
|
-
for (const droid of getAllDroids()) {
|
|
15
|
-
files.set(`.factory/droids/${droid.name}.md`, droid.content);
|
|
16
|
-
}
|
|
17
7
|
for (const [k, v] of collectSharedHooks(".factory/hooks", "droid")) {
|
|
18
8
|
files.set(k, v);
|
|
19
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"droid.js","sourceRoot":"","sources":["../../src/configurators/droid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"droid.js","sourceRoot":"","sources":["../../src/configurators/droid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,mBAAmB,EACnB,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,6BAA6B,CAAC,KAAK,EAC1C,iBAAiB,CAClB,CAAC;IACF,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,kBAAkB,CAAC,gBAAgB,EAAE,OAAO,CAAC,EAAE,CAAC;QACnE,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,MAAM,QAAQ,GAAG,mBAAmB,EAAE,CAAC;IACvC,KAAK,CAAC,GAAG,CACP,YAAY,QAAQ,CAAC,UAAU,EAAE,EACjC,mBAAmB,CAAC,QAAQ,CAAC,OAAO,CAAC,CACtC,CAAC;IACF,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DeepSeek Harness (dsh) configurator.
|
|
3
|
-
*
|
|
4
|
-
* dsh is a class-2 pull-based platform (agentCapable via the `subagent` tool,
|
|
5
|
-
* no shipped session-start hook, no project-level hooks/settings Trellis may
|
|
6
|
-
* write). Three output paths:
|
|
7
|
-
* - `.agents/skills/` — workflow + bundled skills, written via the NEUTRAL
|
|
8
|
-
* resolver so the files stay byte-identical to Codex/Gemini/Pi/Kimi writes
|
|
9
|
-
* into the same shared root (dsh discovers `.agents/skills/` natively).
|
|
10
|
-
* - `.dsh/skills/` — dsh-private entry skills (trellis-start /
|
|
11
|
-
* trellis-continue / trellis-finish-work) plus collision-free Trellis role
|
|
12
|
-
* skills (trellis-agent-implement / trellis-agent-check /
|
|
13
|
-
* trellis-agent-research) with the pull-based prelude on implement/check.
|
|
14
|
-
* - `.dsh/DSH.md` — operator guide and a configDir-owned tracked file for
|
|
15
|
-
* platform detection and uninstall scoping.
|
|
16
|
-
*
|
|
17
|
-
* dsh has no project-level hooks/settings file Trellis may write and no
|
|
18
|
-
* declarative custom sub-agent definitions (dispatch goes through the
|
|
19
|
-
* `subagent` tool), so no hooks, settings, or extension files are written and
|
|
20
|
-
* the agent prompts ship as skills.
|
|
21
|
-
*/
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
22
2
|
/**
|
|
23
3
|
* The DeepSeek Harness file set — written at init and diffed by `trellis update`.
|
|
24
4
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dsh.d.ts","sourceRoot":"","sources":["../../src/configurators/dsh.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"dsh.d.ts","sourceRoot":"","sources":["../../src/configurators/dsh.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAgCpE;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAyBzD"}
|
|
@@ -1,27 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* dsh is a class-2 pull-based platform (agentCapable via the `subagent` tool,
|
|
5
|
-
* no shipped session-start hook, no project-level hooks/settings Trellis may
|
|
6
|
-
* write). Three output paths:
|
|
7
|
-
* - `.agents/skills/` — workflow + bundled skills, written via the NEUTRAL
|
|
8
|
-
* resolver so the files stay byte-identical to Codex/Gemini/Pi/Kimi writes
|
|
9
|
-
* into the same shared root (dsh discovers `.agents/skills/` natively).
|
|
10
|
-
* - `.dsh/skills/` — dsh-private entry skills (trellis-start /
|
|
11
|
-
* trellis-continue / trellis-finish-work) plus collision-free Trellis role
|
|
12
|
-
* skills (trellis-agent-implement / trellis-agent-check /
|
|
13
|
-
* trellis-agent-research) with the pull-based prelude on implement/check.
|
|
14
|
-
* - `.dsh/DSH.md` — operator guide and a configDir-owned tracked file for
|
|
15
|
-
* platform detection and uninstall scoping.
|
|
16
|
-
*
|
|
17
|
-
* dsh has no project-level hooks/settings file Trellis may write and no
|
|
18
|
-
* declarative custom sub-agent definitions (dispatch goes through the
|
|
19
|
-
* `subagent` tool), so no hooks, settings, or extension files are written and
|
|
20
|
-
* the agent prompts ship as skills.
|
|
21
|
-
*/
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
2
|
+
/** Main-session platform assets and native context entry points. */
|
|
22
3
|
import { AI_TOOLS } from "../types/ai-tools.js";
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
4
|
+
import { getDshGuide } from "../templates/dsh/index.js";
|
|
5
|
+
import { collectSkillTemplates, resolveAllAsSkills, resolveBundledSkills, resolveSkillsNeutral, } from "./shared.js";
|
|
25
6
|
/**
|
|
26
7
|
* Command templates that become user-invocable dsh skills
|
|
27
8
|
* (loaded by their `trellis-<name>` skill names). The session-boundary
|
|
@@ -38,19 +19,6 @@ function resolveDshCommandSkills() {
|
|
|
38
19
|
const ctx = AI_TOOLS.dsh.templateContext;
|
|
39
20
|
return resolveAllAsSkills(ctx).filter((skill) => DSH_COMMAND_SKILL_NAMES.has(skill.name));
|
|
40
21
|
}
|
|
41
|
-
/** Trellis agent prompts as DSH-private skills. The `trellis-agent-*` names
|
|
42
|
-
* intentionally do not collide with shared main-session workflow skills such
|
|
43
|
-
* as `.agents/skills/trellis-check`. */
|
|
44
|
-
function resolveDshAgentSkills() {
|
|
45
|
-
return applyPullBasedPreludeMarkdown(getAllAgents()).map((agent) => {
|
|
46
|
-
const name = agent.name.replace(/^trellis-/, "trellis-agent-");
|
|
47
|
-
return {
|
|
48
|
-
...agent,
|
|
49
|
-
name,
|
|
50
|
-
content: replacePythonCommandLiterals(agent.content).replace(/^name:\s*trellis-[^\r\n]+$/m, `name: ${name}`),
|
|
51
|
-
};
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
22
|
/**
|
|
55
23
|
* The DeepSeek Harness file set — written at init and diffed by `trellis update`.
|
|
56
24
|
*/
|
|
@@ -65,7 +33,6 @@ export function collectDshTemplates() {
|
|
|
65
33
|
// 2. Commands-as-skills + Trellis agent prompts → `.dsh/skills/`.
|
|
66
34
|
for (const [filePath, content] of collectSkillTemplates(".dsh/skills", [
|
|
67
35
|
...resolveDshCommandSkills(),
|
|
68
|
-
...resolveDshAgentSkills(),
|
|
69
36
|
])) {
|
|
70
37
|
files.set(filePath, content);
|
|
71
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dsh.js","sourceRoot":"","sources":["../../src/configurators/dsh.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"dsh.js","sourceRoot":"","sources":["../../src/configurators/dsh.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,oEAAoE;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AAErB;;;;GAIG;AACH,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC;IACtC,eAAe;IACf,kBAAkB;IAClB,qBAAqB;CACtB,CAAC,CAAC;AAEH;+EAC+E;AAC/E,SAAS,uBAAuB;IAC9B,MAAM,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC;IACzC,OAAO,kBAAkB,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAC9C,uBAAuB,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CACxC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB;IACjC,MAAM,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC;IACzC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IAExC,mEAAmE;IACnE,gEAAgE;IAChE,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,kEAAkE;IAClE,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,qBAAqB,CAAC,aAAa,EAAE;QACrE,GAAG,uBAAuB,EAAE;KAC7B,CAAC,EAAE,CAAC;QACH,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAED,qCAAqC;IACrC,KAAK,CAAC,GAAG,CAAC,aAAa,EAAE,WAAW,EAAE,CAAC,CAAC;IAExC,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Gemini CLI file set — written at init and diffed by `trellis update`.
|
|
3
|
-
* Gemini is a pull-based class-2 platform.
|
|
4
|
-
* - commands/trellis/ — start + finish-work as TOML slash commands
|
|
5
|
-
* - .agents/skills/trellis-{name}/SKILL.md — auto-triggered shared skills
|
|
6
|
-
* written to the cross-platform `.agents/skills/` workspace alias (Gemini
|
|
7
|
-
* CLI 0.40+ reads it natively; previously `.gemini/skills/` was used,
|
|
8
|
-
* which collided with Codex's identical write target and caused
|
|
9
|
-
* duplicate-skill warnings — issue #224). The neutral resolver keeps content
|
|
10
|
-
* byte-identical to Codex's writes for the same skill names.
|
|
11
|
-
* - agents/{name}.md — sub-agent definitions, with pull-based prelude
|
|
12
|
-
* - hooks/*.py — session-start only (no inject-subagent-context.py — Gemini
|
|
13
|
-
* BeforeTool can fire but #18128 limits chain-of-thought visibility; sub-agents
|
|
14
|
-
* Read jsonl/prd themselves)
|
|
15
|
-
* - settings.json — hook configuration (SessionStart + BeforeAgent)
|
|
16
|
-
*/
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
17
2
|
export declare function collectGeminiTemplates(): Map<string, string>;
|
|
18
3
|
//# sourceMappingURL=gemini.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gemini.d.ts","sourceRoot":"","sources":["../../src/configurators/gemini.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gemini.d.ts","sourceRoot":"","sources":["../../src/configurators/gemini.ts"],"names":[],"mappings":"AAWA,oEAAoE;AACpE,wBAAgB,sBAAsB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAsB5D"}
|
|
@@ -1,22 +1,7 @@
|
|
|
1
1
|
import { AI_TOOLS } from "../types/ai-tools.js";
|
|
2
|
-
import { resolvePlaceholders, resolveCommands, resolveSkillsNeutral, resolveBundledSkills, collectSkillTemplates, collectSharedHooks,
|
|
3
|
-
import {
|
|
4
|
-
/**
|
|
5
|
-
* The Gemini CLI file set — written at init and diffed by `trellis update`.
|
|
6
|
-
* Gemini is a pull-based class-2 platform.
|
|
7
|
-
* - commands/trellis/ — start + finish-work as TOML slash commands
|
|
8
|
-
* - .agents/skills/trellis-{name}/SKILL.md — auto-triggered shared skills
|
|
9
|
-
* written to the cross-platform `.agents/skills/` workspace alias (Gemini
|
|
10
|
-
* CLI 0.40+ reads it natively; previously `.gemini/skills/` was used,
|
|
11
|
-
* which collided with Codex's identical write target and caused
|
|
12
|
-
* duplicate-skill warnings — issue #224). The neutral resolver keeps content
|
|
13
|
-
* byte-identical to Codex's writes for the same skill names.
|
|
14
|
-
* - agents/{name}.md — sub-agent definitions, with pull-based prelude
|
|
15
|
-
* - hooks/*.py — session-start only (no inject-subagent-context.py — Gemini
|
|
16
|
-
* BeforeTool can fire but #18128 limits chain-of-thought visibility; sub-agents
|
|
17
|
-
* Read jsonl/prd themselves)
|
|
18
|
-
* - settings.json — hook configuration (SessionStart + BeforeAgent)
|
|
19
|
-
*/
|
|
2
|
+
import { resolvePlaceholders, resolveCommands, resolveSkillsNeutral, resolveBundledSkills, collectSkillTemplates, collectSharedHooks, } from "./shared.js";
|
|
3
|
+
import { getSettingsTemplate } from "../templates/gemini/index.js";
|
|
4
|
+
/** Main-session platform assets and native context entry points. */
|
|
20
5
|
export function collectGeminiTemplates() {
|
|
21
6
|
const ctx = AI_TOOLS.gemini.templateContext;
|
|
22
7
|
const files = new Map();
|
|
@@ -27,9 +12,6 @@ export function collectGeminiTemplates() {
|
|
|
27
12
|
for (const [filePath, content] of collectSkillTemplates(".agents/skills", resolveSkillsNeutral(ctx), resolveBundledSkills(ctx))) {
|
|
28
13
|
files.set(filePath, content);
|
|
29
14
|
}
|
|
30
|
-
for (const agent of applyPullBasedPreludeMarkdown(getAllAgents())) {
|
|
31
|
-
files.set(`.gemini/agents/${agent.name}.md`, agent.content);
|
|
32
|
-
}
|
|
33
15
|
for (const [k, v] of collectSharedHooks(".gemini/hooks", "gemini")) {
|
|
34
16
|
files.set(k, v);
|
|
35
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gemini.js","sourceRoot":"","sources":["../../src/configurators/gemini.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"gemini.js","sourceRoot":"","sources":["../../src/configurators/gemini.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,oEAAoE;AACpE,MAAM,UAAU,sBAAsB;IACpC,MAAM,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,eAAe,CAAC;IAC5C,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IACxC,KAAK,MAAM,GAAG,IAAI,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC;QACvC,MAAM,IAAI,GAAG,2BAA2B,GAAG,CAAC,IAAI,sBAAsB,GAAG,CAAC,OAAO,SAAS,CAAC;QAC3F,KAAK,CAAC,GAAG,CAAC,4BAA4B,GAAG,CAAC,IAAI,OAAO,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;IACD,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,CAAC,EAAE,CAAC,CAAC,IAAI,kBAAkB,CAAC,eAAe,EAAE,QAAQ,CAAC,EAAE,CAAC;QACnE,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,KAAK,CAAC,GAAG,CACP,uBAAuB,EACvB,mBAAmB,CAAC,mBAAmB,EAAE,CAAC,CAC3C,CAAC;IACF,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Grok Build configurator.
|
|
3
|
-
*
|
|
4
|
-
* Grok Build (xAI) is a pull-based class-2 platform (agentCapable, no hooks).
|
|
5
|
-
* Three output paths:
|
|
6
|
-
* - `.grok/skills/` — workflow and bundled skills
|
|
7
|
-
* - `.grok/commands/trellis-*.md` — flat slash commands (Grok layout)
|
|
8
|
-
* - `.grok/agents/` — sub-agent definitions with pull-based prelude
|
|
9
|
-
*
|
|
10
|
-
* Do not install SessionStart/UserPromptSubmit injection hooks here until Grok
|
|
11
|
-
* consumes hook stdout additionalContext (verified absent on 0.2.x).
|
|
12
|
-
*/
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
13
2
|
/**
|
|
14
3
|
* The Grok Build file set — written at init and diffed by `trellis update`.
|
|
15
4
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grok.d.ts","sourceRoot":"","sources":["../../src/configurators/grok.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"grok.d.ts","sourceRoot":"","sources":["../../src/configurators/grok.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAUpE;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAqB1D"}
|
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Grok Build configurator.
|
|
3
|
-
*
|
|
4
|
-
* Grok Build (xAI) is a pull-based class-2 platform (agentCapable, no hooks).
|
|
5
|
-
* Three output paths:
|
|
6
|
-
* - `.grok/skills/` — workflow and bundled skills
|
|
7
|
-
* - `.grok/commands/trellis-*.md` — flat slash commands (Grok layout)
|
|
8
|
-
* - `.grok/agents/` — sub-agent definitions with pull-based prelude
|
|
9
|
-
*
|
|
10
|
-
* Do not install SessionStart/UserPromptSubmit injection hooks here until Grok
|
|
11
|
-
* consumes hook stdout additionalContext (verified absent on 0.2.x).
|
|
12
|
-
*/
|
|
1
|
+
/** Main-session platform assets and native context entry points. */
|
|
13
2
|
import { AI_TOOLS } from "../types/ai-tools.js";
|
|
14
|
-
import {
|
|
15
|
-
import { collectSkillTemplates, resolveBundledSkills, resolveCommands, resolveSkills, applyPullBasedPreludeMarkdown, } from "./shared.js";
|
|
3
|
+
import { collectSkillTemplates, resolveBundledSkills, resolveCommands, resolveSkills, } from "./shared.js";
|
|
16
4
|
/**
|
|
17
5
|
* The Grok Build file set — written at init and diffed by `trellis update`.
|
|
18
6
|
*/
|
|
@@ -29,10 +17,6 @@ export function collectGrokTemplates() {
|
|
|
29
17
|
for (const cmd of resolveCommands(ctx)) {
|
|
30
18
|
files.set(`.grok/commands/trellis-${cmd.name}.md`, cmd.content);
|
|
31
19
|
}
|
|
32
|
-
// 3. Sub-agents → .grok/agents/ (with pull-based prelude on implement/check)
|
|
33
|
-
for (const agent of applyPullBasedPreludeMarkdown(getAllAgents())) {
|
|
34
|
-
files.set(`.grok/agents/${agent.name}.md`, agent.content);
|
|
35
|
-
}
|
|
36
20
|
return files;
|
|
37
21
|
}
|
|
38
22
|
//# sourceMappingURL=grok.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grok.js","sourceRoot":"","sources":["../../src/configurators/grok.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"grok.js","sourceRoot":"","sources":["../../src/configurators/grok.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,aAAa,GACd,MAAM,aAAa,CAAC;AAErB;;GAEG;AACH,MAAM,UAAU,oBAAoB;IAClC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC;IAC7B,MAAM,GAAG,GAAG,MAAM,CAAC,eAAe,CAAC;IACnC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IAExC,+CAA+C;IAC/C,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,qBAAqB,CACrD,cAAc,EACd,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,sDAAsD;IACtD,+EAA+E;IAC/E,KAAK,MAAM,GAAG,IAAI,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC;QACvC,KAAK,CAAC,GAAG,CAAC,0BAA0B,GAAG,CAAC,IAAI,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,24 +1,4 @@
|
|
|
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
|
/**
|
|
23
3
|
* The Kimi Code file set — written at init and diffed by `trellis update`.
|
|
24
4
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kimi.d.ts","sourceRoot":"","sources":["../../src/configurators/kimi.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"kimi.d.ts","sourceRoot":"","sources":["../../src/configurators/kimi.ts"],"names":[],"mappings":"AAAA,oEAAoE;AA8BpE;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAoB1D"}
|