@pennixrv/trellis 0.7.2-beta.11 → 0.7.2-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +11 -13
- package/dist/commands/init.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 +1 -0
- package/dist/commands/teamwork/batch.d.ts.map +1 -1
- package/dist/commands/teamwork/batch.js +112 -1
- 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 +21 -3
- package/dist/commands/teamwork/coordinator.js.map +1 -1
- 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 +8 -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 +1 -0
- package/dist/commands/teamwork/index.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +23 -10
- 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/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.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/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 +1 -1
- 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-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/overview.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/spec-system.md +1 -1
- 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-teamwork/SKILL.md +1 -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 +7 -0
- package/dist/templates/copilot/hooks/session-start.py +1 -1
- 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 +6 -3
- 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/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 +110 -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 +3 -77
- package/dist/templates/shared-hooks/session-start.py +1 -1
- 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/config.yaml +7 -36
- package/dist/templates/trellis/scripts/common/config.py +1 -36
- package/dist/templates/trellis/scripts/common/git_context.py +3 -4
- package/dist/templates/trellis/scripts/common/task_context.py +3 -3
- package/dist/templates/trellis/scripts/common/task_store.py +1 -77
- 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/task.py +2 -2
- package/dist/templates/trellis/workflow.md +1 -7
- 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 +3 -0
- package/dist/utils/asset-backup.js.map +1 -1
- package/dist/utils/retired-native-assets.d.ts +16 -0
- package/dist/utils/retired-native-assets.d.ts.map +1 -0
- package/dist/utils/retired-native-assets.js +234 -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 +1 -1
- 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,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"}
|
|
@@ -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,EAC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AAO,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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