@blulotus/trellis 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cli/index.js +2 -29
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/init.d.ts +0 -22
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +5 -12
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/mem.d.ts +2 -2
- package/dist/commands/mem.d.ts.map +1 -1
- package/dist/commands/mem.js +7 -40
- package/dist/commands/mem.js.map +1 -1
- package/dist/commands/uninstall.d.ts +1 -1
- package/dist/commands/uninstall.d.ts.map +1 -1
- package/dist/commands/uninstall.js +4 -34
- package/dist/commands/uninstall.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +2 -28
- package/dist/commands/update.js.map +1 -1
- package/dist/configurators/index.d.ts.map +1 -1
- package/dist/configurators/index.js +7 -73
- package/dist/configurators/index.js.map +1 -1
- package/dist/configurators/shared.d.ts +18 -70
- package/dist/configurators/shared.d.ts.map +1 -1
- package/dist/configurators/shared.js +20 -299
- package/dist/configurators/shared.js.map +1 -1
- package/dist/configurators/workflow.d.ts +0 -14
- package/dist/configurators/workflow.d.ts.map +1 -1
- package/dist/configurators/workflow.js +1 -37
- package/dist/configurators/workflow.js.map +1 -1
- package/dist/migrations/manifests/0.1.9.json +0 -12
- package/dist/migrations/manifests/0.2.14.json +0 -84
- package/dist/migrations/manifests/0.3.0-beta.0.json +0 -87
- package/dist/migrations/manifests/0.3.4.json +1 -13
- package/dist/migrations/manifests/0.4.0-beta.1.json +24 -176
- package/dist/migrations/manifests/0.5.0-beta.0.json +67 -1203
- package/dist/migrations/manifests/0.5.0-beta.15.json +0 -96
- package/dist/migrations/manifests/0.5.0-beta.5.json +0 -168
- package/dist/migrations/manifests/0.5.0-beta.9.json +0 -20
- package/dist/migrations/manifests/0.6.0-beta.23.json +0 -66
- package/dist/migrations/manifests/0.6.3.json +1 -16
- package/dist/migrations/manifests/0.6.6.json +1 -9
- package/dist/migrations/manifests/0.7.0.json +9 -0
- package/dist/migrations/manifests/0.7.1.json +9 -0
- package/dist/migrations/manifests/0.7.2.json +9 -0
- package/dist/migrations/manifests/0.8.0.json +9 -0
- package/dist/templates/codex/hooks/session-start.py +37 -13
- package/dist/templates/codex/hooks.json +5 -0
- package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +5 -5
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-agents.md +0 -10
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-hooks.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-skills-or-commands.md +1 -13
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/overview.md +2 -2
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/bundled-skills.md +9 -28
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/generated-files.md +5 -5
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/overview.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/agents.md +1 -17
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/hooks-and-settings.md +4 -12
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md +6 -6
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md +5 -75
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/skills-and-commands.md +0 -16
- package/dist/templates/common/bundled-skills/trellis-session-insight/SKILL.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-session-insight/references/cli-quick-reference.md +2 -3
- package/dist/templates/common/commands/continue.md +24 -4
- package/dist/templates/common/commands/finish-work.md +19 -9
- package/dist/templates/common/commands/start.md +38 -29
- package/dist/templates/extract.d.ts +0 -10
- package/dist/templates/extract.d.ts.map +1 -1
- package/dist/templates/extract.js +0 -24
- package/dist/templates/extract.js.map +1 -1
- package/dist/templates/markdown/spec/guides/code-reuse-thinking-guide.md.txt +7 -9
- package/dist/templates/markdown/spec/guides/cross-layer-thinking-guide.md.txt +4 -8
- package/dist/templates/markdown/spec/guides/cross-platform-thinking-guide.md.txt +5 -5
- package/dist/templates/shared-hooks/index.d.ts +11 -43
- package/dist/templates/shared-hooks/index.d.ts.map +1 -1
- package/dist/templates/shared-hooks/index.js +9 -86
- package/dist/templates/shared-hooks/index.js.map +1 -1
- package/dist/templates/shared-hooks/inject-spec-context.py +1 -1
- package/dist/templates/shared-hooks/inject-subagent-context.py +23 -85
- package/dist/templates/shared-hooks/inject-workflow-state.py +56 -86
- package/dist/templates/shared-hooks/session-start.py +76 -98
- package/dist/templates/trellis/config.yaml +8 -8
- package/dist/templates/trellis/index.d.ts +1 -4
- package/dist/templates/trellis/index.d.ts.map +1 -1
- package/dist/templates/trellis/index.js +1 -5
- package/dist/templates/trellis/index.js.map +1 -1
- package/dist/templates/trellis/scripts/add_session.py +12 -11
- package/dist/templates/trellis/scripts/common/__init__.py +2 -0
- package/dist/templates/trellis/scripts/common/active_task.py +80 -152
- package/dist/templates/trellis/scripts/common/config.py +7 -7
- package/dist/templates/trellis/scripts/common/git_context.py +1 -1
- package/dist/templates/trellis/scripts/common/session_context.py +2 -2
- package/dist/templates/trellis/scripts/common/spec_inject.py +2 -2
- package/dist/templates/trellis/scripts/common/task_store.py +8 -28
- package/dist/templates/trellis/scripts/common/workflow_phase.py +4 -8
- package/dist/templates/trellis/scripts/get_context.py +2 -2
- package/dist/templates/trellis/scripts/init_developer.py +1 -1
- package/dist/templates/trellis/scripts/task.py +90 -57
- package/dist/templates/trellis/workflow.md +44 -66
- package/dist/types/ai-tools.d.ts +10 -10
- package/dist/types/ai-tools.d.ts.map +1 -1
- package/dist/types/ai-tools.js +3 -434
- package/dist/types/ai-tools.js.map +1 -1
- package/dist/utils/uninstall-scrubbers.d.ts +3 -18
- package/dist/utils/uninstall-scrubbers.d.ts.map +1 -1
- package/dist/utils/uninstall-scrubbers.js +24 -154
- package/dist/utils/uninstall-scrubbers.js.map +1 -1
- package/package.json +2 -2
- package/dist/configurators/antigravity.d.ts +0 -7
- package/dist/configurators/antigravity.d.ts.map +0 -1
- package/dist/configurators/antigravity.js +0 -11
- package/dist/configurators/antigravity.js.map +0 -1
- package/dist/configurators/codebuddy.d.ts +0 -10
- package/dist/configurators/codebuddy.d.ts.map +0 -1
- package/dist/configurators/codebuddy.js +0 -24
- package/dist/configurators/codebuddy.js.map +0 -1
- package/dist/configurators/copilot.d.ts +0 -14
- package/dist/configurators/copilot.d.ts.map +0 -1
- package/dist/configurators/copilot.js +0 -46
- package/dist/configurators/copilot.js.map +0 -1
- package/dist/configurators/cursor.d.ts +0 -10
- package/dist/configurators/cursor.d.ts.map +0 -1
- package/dist/configurators/cursor.js +0 -23
- package/dist/configurators/cursor.js.map +0 -1
- package/dist/configurators/devin.d.ts +0 -8
- package/dist/configurators/devin.d.ts.map +0 -1
- package/dist/configurators/devin.js +0 -12
- package/dist/configurators/devin.js.map +0 -1
- package/dist/configurators/droid.d.ts +0 -10
- package/dist/configurators/droid.d.ts.map +0 -1
- package/dist/configurators/droid.js +0 -24
- package/dist/configurators/droid.js.map +0 -1
- package/dist/configurators/dsh.d.ts +0 -26
- package/dist/configurators/dsh.d.ts.map +0 -1
- package/dist/configurators/dsh.js +0 -76
- package/dist/configurators/dsh.js.map +0 -1
- package/dist/configurators/gemini.d.ts +0 -18
- package/dist/configurators/gemini.d.ts.map +0 -1
- package/dist/configurators/gemini.js +0 -39
- package/dist/configurators/gemini.js.map +0 -1
- package/dist/configurators/grok.d.ts +0 -17
- package/dist/configurators/grok.d.ts.map +0 -1
- package/dist/configurators/grok.js +0 -38
- package/dist/configurators/grok.js.map +0 -1
- package/dist/configurators/kilo.d.ts +0 -7
- package/dist/configurators/kilo.d.ts.map +0 -1
- package/dist/configurators/kilo.js +0 -11
- package/dist/configurators/kilo.js.map +0 -1
- package/dist/configurators/kimi.d.ts +0 -26
- package/dist/configurators/kimi.d.ts.map +0 -1
- package/dist/configurators/kimi.js +0 -74
- package/dist/configurators/kimi.js.map +0 -1
- package/dist/configurators/kiro.d.ts +0 -11
- package/dist/configurators/kiro.d.ts.map +0 -1
- package/dist/configurators/kiro.js +0 -30
- package/dist/configurators/kiro.js.map +0 -1
- package/dist/configurators/omp.d.ts +0 -6
- package/dist/configurators/omp.d.ts.map +0 -1
- package/dist/configurators/omp.js +0 -28
- package/dist/configurators/omp.js.map +0 -1
- package/dist/configurators/opencode.d.ts +0 -5
- package/dist/configurators/opencode.d.ts.map +0 -1
- package/dist/configurators/opencode.js +0 -84
- package/dist/configurators/opencode.js.map +0 -1
- package/dist/configurators/pi.d.ts +0 -5
- package/dist/configurators/pi.d.ts.map +0 -1
- package/dist/configurators/pi.js +0 -39
- package/dist/configurators/pi.js.map +0 -1
- package/dist/configurators/qoder.d.ts +0 -12
- package/dist/configurators/qoder.d.ts.map +0 -1
- package/dist/configurators/qoder.js +0 -30
- package/dist/configurators/qoder.js.map +0 -1
- package/dist/configurators/reasonix.d.ts +0 -17
- package/dist/configurators/reasonix.d.ts.map +0 -1
- package/dist/configurators/reasonix.js +0 -37
- package/dist/configurators/reasonix.js.map +0 -1
- package/dist/configurators/snow.d.ts +0 -25
- package/dist/configurators/snow.d.ts.map +0 -1
- package/dist/configurators/snow.js +0 -69
- package/dist/configurators/snow.js.map +0 -1
- package/dist/configurators/trae.d.ts +0 -16
- package/dist/configurators/trae.d.ts.map +0 -1
- package/dist/configurators/trae.js +0 -34
- package/dist/configurators/trae.js.map +0 -1
- package/dist/configurators/zcode.d.ts +0 -23
- package/dist/configurators/zcode.d.ts.map +0 -1
- package/dist/configurators/zcode.js +0 -63
- package/dist/configurators/zcode.js.map +0 -1
- package/dist/templates/codebuddy/agents/trellis-check.md +0 -115
- package/dist/templates/codebuddy/agents/trellis-implement.md +0 -115
- package/dist/templates/codebuddy/agents/trellis-research.md +0 -137
- package/dist/templates/codebuddy/index.d.ts +0 -15
- package/dist/templates/codebuddy/index.d.ts.map +0 -1
- package/dist/templates/codebuddy/index.js +0 -15
- package/dist/templates/codebuddy/index.js.map +0 -1
- package/dist/templates/codebuddy/settings.json +0 -69
- package/dist/templates/copilot/copilot-instructions.md +0 -11
- package/dist/templates/copilot/hooks/session-start.py +0 -564
- package/dist/templates/copilot/hooks.json +0 -19
- package/dist/templates/copilot/index.d.ts +0 -28
- package/dist/templates/copilot/index.d.ts.map +0 -1
- package/dist/templates/copilot/index.js +0 -61
- package/dist/templates/copilot/index.js.map +0 -1
- package/dist/templates/copilot/prompts/before-dev.prompt.md +0 -39
- package/dist/templates/copilot/prompts/brainstorm.prompt.md +0 -173
- package/dist/templates/copilot/prompts/break-loop.prompt.md +0 -129
- package/dist/templates/copilot/prompts/check-cross-layer.prompt.md +0 -170
- package/dist/templates/copilot/prompts/check.prompt.md +0 -110
- package/dist/templates/copilot/prompts/create-command.prompt.md +0 -116
- package/dist/templates/copilot/prompts/finish-work.prompt.md +0 -99
- package/dist/templates/copilot/prompts/integrate-skill.prompt.md +0 -223
- package/dist/templates/copilot/prompts/onboard.prompt.md +0 -362
- package/dist/templates/copilot/prompts/parallel.prompt.md +0 -204
- package/dist/templates/copilot/prompts/record-session.prompt.md +0 -66
- package/dist/templates/copilot/prompts/start.prompt.md +0 -63
- package/dist/templates/copilot/prompts/update-spec.prompt.md +0 -358
- package/dist/templates/cursor/agents/trellis-check.md +0 -114
- package/dist/templates/cursor/agents/trellis-implement.md +0 -114
- package/dist/templates/cursor/agents/trellis-research.md +0 -136
- package/dist/templates/cursor/hooks.json +0 -24
- package/dist/templates/cursor/index.d.ts +0 -13
- package/dist/templates/cursor/index.d.ts.map +0 -1
- package/dist/templates/cursor/index.js +0 -13
- package/dist/templates/cursor/index.js.map +0 -1
- package/dist/templates/droid/droids/trellis-check.md +0 -107
- package/dist/templates/droid/droids/trellis-implement.md +0 -107
- package/dist/templates/droid/droids/trellis-research.md +0 -137
- package/dist/templates/droid/index.d.ts +0 -15
- package/dist/templates/droid/index.d.ts.map +0 -1
- package/dist/templates/droid/index.js +0 -15
- package/dist/templates/droid/index.js.map +0 -1
- package/dist/templates/droid/settings.json +0 -69
- package/dist/templates/dsh/DSH.md +0 -80
- 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/dsh/index.d.ts +0 -22
- package/dist/templates/dsh/index.d.ts.map +0 -1
- package/dist/templates/dsh/index.js +0 -27
- package/dist/templates/dsh/index.js.map +0 -1
- package/dist/templates/gemini/agents/trellis-check.md +0 -107
- package/dist/templates/gemini/agents/trellis-implement.md +0 -107
- package/dist/templates/gemini/agents/trellis-research.md +0 -136
- package/dist/templates/gemini/index.d.ts +0 -13
- package/dist/templates/gemini/index.d.ts.map +0 -1
- package/dist/templates/gemini/index.js +0 -13
- package/dist/templates/gemini/index.js.map +0 -1
- package/dist/templates/gemini/settings.json +0 -40
- package/dist/templates/grok/agents/trellis-check.md +0 -106
- package/dist/templates/grok/agents/trellis-implement.md +0 -121
- 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 -104
- package/dist/templates/kimi/agents/trellis-implement.md +0 -120
- 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/kiro/agents/trellis.json +0 -34
- package/dist/templates/kiro/hooks/trellis-workflow-state.kiro.hook +0 -14
- package/dist/templates/kiro/index.d.ts +0 -32
- package/dist/templates/kiro/index.d.ts.map +0 -1
- package/dist/templates/kiro/index.js +0 -28
- package/dist/templates/kiro/index.js.map +0 -1
- package/dist/templates/omp/agents/trellis-check.md +0 -41
- package/dist/templates/omp/agents/trellis-implement.md +0 -55
- package/dist/templates/omp/agents/trellis-research.md +0 -30
- package/dist/templates/omp/extensions/trellis/index.ts.txt +0 -592
- package/dist/templates/omp/index.d.ts +0 -4
- package/dist/templates/omp/index.d.ts.map +0 -1
- package/dist/templates/omp/index.js +0 -9
- package/dist/templates/omp/index.js.map +0 -1
- package/dist/templates/opencode/agents/trellis-check.md +0 -122
- package/dist/templates/opencode/agents/trellis-implement.md +0 -123
- package/dist/templates/opencode/agents/trellis-research.md +0 -145
- package/dist/templates/opencode/lib/context-visibility.js +0 -86
- package/dist/templates/opencode/lib/session-utils.js +0 -526
- package/dist/templates/opencode/lib/trellis-context.js +0 -627
- package/dist/templates/opencode/package.json +0 -5
- package/dist/templates/opencode/plugins/inject-spec-context.js +0 -121
- package/dist/templates/opencode/plugins/inject-subagent-context.js +0 -569
- package/dist/templates/opencode/plugins/inject-workflow-state.js +0 -340
- package/dist/templates/opencode/plugins/session-start.js +0 -74
- package/dist/templates/pi/agents/trellis-check.md +0 -37
- package/dist/templates/pi/agents/trellis-implement.md +0 -52
- package/dist/templates/pi/agents/trellis-research.md +0 -25
- package/dist/templates/pi/extensions/trellis/index.ts.txt +0 -2033
- package/dist/templates/pi/index.d.ts +0 -5
- package/dist/templates/pi/index.d.ts.map +0 -1
- package/dist/templates/pi/index.js +0 -12
- package/dist/templates/pi/index.js.map +0 -1
- package/dist/templates/pi/settings.json +0 -9
- package/dist/templates/qoder/agents/trellis-check.md +0 -108
- package/dist/templates/qoder/agents/trellis-implement.md +0 -108
- package/dist/templates/qoder/agents/trellis-research.md +0 -137
- package/dist/templates/qoder/index.d.ts +0 -15
- package/dist/templates/qoder/index.d.ts.map +0 -1
- package/dist/templates/qoder/index.js +0 -15
- package/dist/templates/qoder/index.js.map +0 -1
- package/dist/templates/qoder/settings.json +0 -59
- package/dist/templates/reasonix/agents/trellis-check.md +0 -36
- package/dist/templates/reasonix/agents/trellis-implement.md +0 -51
- 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-shell-session-context.py +0 -292
- package/dist/templates/snow/SNOW.md +0 -86
- package/dist/templates/snow/agents/trellis-check.md +0 -136
- package/dist/templates/snow/agents/trellis-implement.md +0 -158
- package/dist/templates/snow/agents/trellis-research.md +0 -114
- package/dist/templates/snow/hooks/beforeSubAgentStart.json +0 -15
- package/dist/templates/snow/hooks/onSessionStart.json +0 -15
- package/dist/templates/snow/hooks/onUserMessage.json +0 -15
- package/dist/templates/snow/hooks/write-trellis-context.py +0 -644
- package/dist/templates/snow/index.d.ts +0 -26
- package/dist/templates/snow/index.d.ts.map +0 -1
- package/dist/templates/snow/index.js +0 -36
- package/dist/templates/snow/index.js.map +0 -1
- package/dist/templates/trae/agents/trellis-check.md +0 -108
- package/dist/templates/trae/agents/trellis-implement.md +0 -108
- package/dist/templates/trae/agents/trellis-research.md +0 -137
- package/dist/templates/trae/hooks.json +0 -39
- package/dist/templates/trae/index.d.ts +0 -15
- package/dist/templates/trae/index.d.ts.map +0 -1
- package/dist/templates/trae/index.js +0 -15
- package/dist/templates/trae/index.js.map +0 -1
- package/dist/templates/trellis/gitattributes.txt +0 -9
- package/dist/templates/trellis/scripts/common/cli_adapter.py +0 -982
- package/dist/templates/zcode/agents/trellis-check.md +0 -110
- package/dist/templates/zcode/agents/trellis-implement.md +0 -116
- package/dist/templates/zcode/agents/trellis-research.md +0 -133
- package/dist/templates/zcode/config.json +0 -52
- package/dist/templates/zcode/index.d.ts +0 -25
- package/dist/templates/zcode/index.d.ts.map +0 -1
- package/dist/templates/zcode/index.js +0 -29
- package/dist/templates/zcode/index.js.map +0 -1
package/dist/types/ai-tools.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* This is the single source of truth for platform data.
|
|
9
9
|
*
|
|
10
10
|
* When adding a new platform, add an entry here and create:
|
|
11
|
-
* 1. src/configurators/{platform}.ts —
|
|
11
|
+
* 1. src/configurators/{platform}.ts — collect{Platform}Templates()
|
|
12
12
|
* 2. src/templates/{platform}/ — template files
|
|
13
13
|
* 3. Register in src/configurators/index.ts — PLATFORM_FUNCTIONS
|
|
14
14
|
* 4. Add CLI flag in src/cli/index.ts
|
|
@@ -31,51 +31,13 @@ export const AI_TOOLS = {
|
|
|
31
31
|
cliFlag: "claude",
|
|
32
32
|
},
|
|
33
33
|
},
|
|
34
|
-
cursor: {
|
|
35
|
-
name: "Cursor",
|
|
36
|
-
templateDirs: ["common", "cursor"],
|
|
37
|
-
configDir: ".cursor",
|
|
38
|
-
cliFlag: "cursor",
|
|
39
|
-
defaultChecked: true,
|
|
40
|
-
hasPythonHooks: true,
|
|
41
|
-
templateContext: {
|
|
42
|
-
cmdRefPrefix: "/trellis-",
|
|
43
|
-
executorAI: "Bash scripts or Task calls",
|
|
44
|
-
userActionLabel: "Slash commands",
|
|
45
|
-
agentCapable: true,
|
|
46
|
-
hasHooks: true,
|
|
47
|
-
cliFlag: "cursor",
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
opencode: {
|
|
51
|
-
name: "OpenCode",
|
|
52
|
-
templateDirs: ["common", "opencode"],
|
|
53
|
-
configDir: ".opencode",
|
|
54
|
-
cliFlag: "opencode",
|
|
55
|
-
defaultChecked: false,
|
|
56
|
-
// hasHooks: false — OpenCode has no session-start hook. The pre-v0.5.0
|
|
57
|
-
// `.opencode/commands/trellis/start.md` deprecation in
|
|
58
|
-
// migrations/manifests/0.5.0-beta.0.json assumed a hook would replace it;
|
|
59
|
-
// that never happened for OpenCode, so `resolveCommands`/`filterCommands`
|
|
60
|
-
// (see configurators/shared.ts) still generate `/start` as the live
|
|
61
|
-
// fallback command for this `agentCapable && !hasHooks` platform.
|
|
62
|
-
hasPythonHooks: false,
|
|
63
|
-
templateContext: {
|
|
64
|
-
cmdRefPrefix: "/trellis:",
|
|
65
|
-
executorAI: "Bash scripts or Task calls",
|
|
66
|
-
userActionLabel: "Slash commands",
|
|
67
|
-
agentCapable: true,
|
|
68
|
-
hasHooks: false,
|
|
69
|
-
cliFlag: "opencode",
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
34
|
codex: {
|
|
73
|
-
name: "Codex (also writes .agents/skills/ —
|
|
35
|
+
name: "Codex (also writes .agents/skills/ — the agentskills.io shared skill root)",
|
|
74
36
|
templateDirs: ["common", "codex"],
|
|
75
37
|
configDir: ".codex",
|
|
76
38
|
supportsAgentSkills: true,
|
|
77
39
|
cliFlag: "codex",
|
|
78
|
-
defaultChecked:
|
|
40
|
+
defaultChecked: true,
|
|
79
41
|
hasPythonHooks: true,
|
|
80
42
|
templateContext: {
|
|
81
43
|
cmdRefPrefix: "$",
|
|
@@ -86,399 +48,6 @@ export const AI_TOOLS = {
|
|
|
86
48
|
cliFlag: "codex",
|
|
87
49
|
},
|
|
88
50
|
},
|
|
89
|
-
kilo: {
|
|
90
|
-
name: "Kilo CLI",
|
|
91
|
-
templateDirs: ["common", "kilo"],
|
|
92
|
-
configDir: ".kilocode",
|
|
93
|
-
cliFlag: "kilo",
|
|
94
|
-
defaultChecked: false,
|
|
95
|
-
hasPythonHooks: false,
|
|
96
|
-
templateContext: {
|
|
97
|
-
cmdRefPrefix: "/trellis:",
|
|
98
|
-
executorAI: "Bash scripts or file reads",
|
|
99
|
-
userActionLabel: "Workflows",
|
|
100
|
-
agentCapable: false,
|
|
101
|
-
hasHooks: false,
|
|
102
|
-
cliFlag: "kilo",
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
kiro: {
|
|
106
|
-
name: "Kiro Code",
|
|
107
|
-
templateDirs: ["common", "kiro"],
|
|
108
|
-
configDir: ".kiro/skills",
|
|
109
|
-
extraManagedPaths: [".kiro/agents", ".kiro/hooks"],
|
|
110
|
-
cliFlag: "kiro",
|
|
111
|
-
defaultChecked: false,
|
|
112
|
-
hasPythonHooks: true,
|
|
113
|
-
templateContext: {
|
|
114
|
-
cmdRefPrefix: "$",
|
|
115
|
-
executorAI: "Bash scripts or tool calls",
|
|
116
|
-
userActionLabel: "Skills",
|
|
117
|
-
agentCapable: true,
|
|
118
|
-
hasHooks: true,
|
|
119
|
-
cliFlag: "kiro",
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
gemini: {
|
|
123
|
-
name: "Gemini CLI",
|
|
124
|
-
templateDirs: ["common", "gemini"],
|
|
125
|
-
configDir: ".gemini",
|
|
126
|
-
supportsAgentSkills: true,
|
|
127
|
-
cliFlag: "gemini",
|
|
128
|
-
defaultChecked: false,
|
|
129
|
-
hasPythonHooks: true,
|
|
130
|
-
templateContext: {
|
|
131
|
-
cmdRefPrefix: "/trellis:",
|
|
132
|
-
executorAI: "Bash scripts or tool calls",
|
|
133
|
-
userActionLabel: "Slash commands",
|
|
134
|
-
agentCapable: true,
|
|
135
|
-
hasHooks: true,
|
|
136
|
-
cliFlag: "gemini",
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
antigravity: {
|
|
140
|
-
name: "Antigravity",
|
|
141
|
-
templateDirs: ["common", "antigravity"],
|
|
142
|
-
configDir: ".agent/workflows",
|
|
143
|
-
extraManagedPaths: [".agent/skills"],
|
|
144
|
-
cliFlag: "antigravity",
|
|
145
|
-
defaultChecked: false,
|
|
146
|
-
hasPythonHooks: false,
|
|
147
|
-
templateContext: {
|
|
148
|
-
cmdRefPrefix: "/",
|
|
149
|
-
executorAI: "Bash scripts or file reads",
|
|
150
|
-
userActionLabel: "Workflows",
|
|
151
|
-
agentCapable: false,
|
|
152
|
-
hasHooks: false,
|
|
153
|
-
cliFlag: "antigravity",
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
devin: {
|
|
157
|
-
name: "Devin",
|
|
158
|
-
templateDirs: ["common", "devin"],
|
|
159
|
-
configDir: ".devin/workflows",
|
|
160
|
-
extraManagedPaths: [".devin/skills"],
|
|
161
|
-
cliFlag: "devin",
|
|
162
|
-
defaultChecked: false,
|
|
163
|
-
hasPythonHooks: false,
|
|
164
|
-
templateContext: {
|
|
165
|
-
cmdRefPrefix: "/trellis-",
|
|
166
|
-
executorAI: "Bash scripts or file reads",
|
|
167
|
-
userActionLabel: "Workflows",
|
|
168
|
-
agentCapable: false,
|
|
169
|
-
hasHooks: false,
|
|
170
|
-
cliFlag: "devin",
|
|
171
|
-
},
|
|
172
|
-
},
|
|
173
|
-
qoder: {
|
|
174
|
-
name: "Qoder",
|
|
175
|
-
templateDirs: ["common", "qoder"],
|
|
176
|
-
configDir: ".qoder",
|
|
177
|
-
cliFlag: "qoder",
|
|
178
|
-
defaultChecked: false,
|
|
179
|
-
hasPythonHooks: true,
|
|
180
|
-
templateContext: {
|
|
181
|
-
cmdRefPrefix: "$",
|
|
182
|
-
executorAI: "Bash scripts or tool calls",
|
|
183
|
-
userActionLabel: "Skills",
|
|
184
|
-
agentCapable: true,
|
|
185
|
-
hasHooks: true,
|
|
186
|
-
cliFlag: "qoder",
|
|
187
|
-
},
|
|
188
|
-
},
|
|
189
|
-
codebuddy: {
|
|
190
|
-
name: "CodeBuddy",
|
|
191
|
-
templateDirs: ["common", "codebuddy"],
|
|
192
|
-
configDir: ".codebuddy",
|
|
193
|
-
cliFlag: "codebuddy",
|
|
194
|
-
defaultChecked: false,
|
|
195
|
-
hasPythonHooks: true,
|
|
196
|
-
templateContext: {
|
|
197
|
-
cmdRefPrefix: "/trellis:",
|
|
198
|
-
executorAI: "Bash scripts or Task calls",
|
|
199
|
-
userActionLabel: "Slash commands",
|
|
200
|
-
agentCapable: true,
|
|
201
|
-
hasHooks: true,
|
|
202
|
-
cliFlag: "codebuddy",
|
|
203
|
-
},
|
|
204
|
-
},
|
|
205
|
-
copilot: {
|
|
206
|
-
name: "GitHub Copilot",
|
|
207
|
-
templateDirs: ["common", "copilot"],
|
|
208
|
-
configDir: ".github/copilot",
|
|
209
|
-
extraManagedPaths: [
|
|
210
|
-
".github/agents",
|
|
211
|
-
".github/copilot-instructions.md",
|
|
212
|
-
".github/hooks",
|
|
213
|
-
".github/prompts",
|
|
214
|
-
".github/skills",
|
|
215
|
-
],
|
|
216
|
-
cliFlag: "copilot",
|
|
217
|
-
defaultChecked: false,
|
|
218
|
-
hasPythonHooks: true,
|
|
219
|
-
templateContext: {
|
|
220
|
-
cmdRefPrefix: "/",
|
|
221
|
-
executorAI: "Bash scripts or tool calls",
|
|
222
|
-
userActionLabel: "Prompts",
|
|
223
|
-
agentCapable: true,
|
|
224
|
-
hasHooks: true,
|
|
225
|
-
cliFlag: "copilot",
|
|
226
|
-
},
|
|
227
|
-
},
|
|
228
|
-
droid: {
|
|
229
|
-
name: "Factory Droid",
|
|
230
|
-
templateDirs: ["common", "droid"],
|
|
231
|
-
configDir: ".factory",
|
|
232
|
-
cliFlag: "droid",
|
|
233
|
-
defaultChecked: false,
|
|
234
|
-
hasPythonHooks: true,
|
|
235
|
-
templateContext: {
|
|
236
|
-
cmdRefPrefix: "/trellis-",
|
|
237
|
-
executorAI: "Bash scripts or Task calls",
|
|
238
|
-
userActionLabel: "Slash commands",
|
|
239
|
-
agentCapable: true,
|
|
240
|
-
hasHooks: true,
|
|
241
|
-
cliFlag: "droid",
|
|
242
|
-
},
|
|
243
|
-
},
|
|
244
|
-
/**
|
|
245
|
-
* DeepSeek Harness (dsh) — class-2 pull-based platform.
|
|
246
|
-
*
|
|
247
|
-
* DSH discovers skills from `<projectRoot>/.agents/skills/` (shared root,
|
|
248
|
-
* rank 200) and `<projectRoot>/.dsh/skills/` (DSH-private root, rank 100),
|
|
249
|
-
* plus user roots under `$DSH_HOME/skills` / `$DSH_AGENTS_HOME/skills`.
|
|
250
|
-
* SKILL.md frontmatter uses `name` (kebab-case) + `description`, matching
|
|
251
|
-
* Trellis's skill rendering. The model loads skills via the `skill` tool;
|
|
252
|
-
* users can load entry points by their `trellis-<name>` skill names. DSH
|
|
253
|
-
* surfaces that expose the slash pipeline may also accept `/trellis-<name>`.
|
|
254
|
-
*
|
|
255
|
-
* DSH injects project `AGENTS.md` at session start (workspace instructions)
|
|
256
|
-
* and supports isolated sub-agents through the `subagent` tool, so Trellis
|
|
257
|
-
* ships as class-2: workflow/bundled skills go to the shared `.agents/skills/`
|
|
258
|
-
* root via the neutral resolver (byte-identical to Codex/Gemini/Pi/Kimi
|
|
259
|
-
* writes), while DSH-private entry points (trellis-start / trellis-continue /
|
|
260
|
-
* trellis-finish-work) and collision-free role skills
|
|
261
|
-
* (trellis-agent-implement / trellis-agent-check / trellis-agent-research)
|
|
262
|
-
* live under `.dsh/skills/` with the pull-based prelude on implement/check.
|
|
263
|
-
*
|
|
264
|
-
* DSH has no project-level hooks/settings file Trellis may write, so
|
|
265
|
-
* hasHooks/hasPythonHooks stay false and no hook assets are emitted.
|
|
266
|
-
*/
|
|
267
|
-
dsh: {
|
|
268
|
-
name: "DeepSeek Harness (dsh)",
|
|
269
|
-
templateDirs: ["common", "dsh"],
|
|
270
|
-
configDir: ".dsh",
|
|
271
|
-
supportsAgentSkills: true,
|
|
272
|
-
cliFlag: "dsh",
|
|
273
|
-
defaultChecked: false,
|
|
274
|
-
hasPythonHooks: false,
|
|
275
|
-
templateContext: {
|
|
276
|
-
cmdRefPrefix: "trellis-",
|
|
277
|
-
executorAI: "Bash scripts or tool calls",
|
|
278
|
-
userActionLabel: "Skills",
|
|
279
|
-
agentCapable: true,
|
|
280
|
-
hasHooks: false,
|
|
281
|
-
cliFlag: "dsh",
|
|
282
|
-
},
|
|
283
|
-
},
|
|
284
|
-
pi: {
|
|
285
|
-
// Pi also writes .agents/skills/, which is read by Cursor, Gemini CLI,
|
|
286
|
-
// GitHub Copilot, Amp, and Kimi Code. Keep that detail here rather than
|
|
287
|
-
// in `name` — `name` leaks verbatim into `trellis platforms` output and
|
|
288
|
-
// init checkboxes, where a long parenthetical reads badly.
|
|
289
|
-
name: "Pi Agent",
|
|
290
|
-
templateDirs: ["common", "pi"],
|
|
291
|
-
configDir: ".pi",
|
|
292
|
-
supportsAgentSkills: true,
|
|
293
|
-
cliFlag: "pi",
|
|
294
|
-
defaultChecked: false,
|
|
295
|
-
hasPythonHooks: false,
|
|
296
|
-
templateContext: {
|
|
297
|
-
cmdRefPrefix: "/trellis-",
|
|
298
|
-
executorAI: "Bash scripts or tool calls",
|
|
299
|
-
userActionLabel: "Slash commands",
|
|
300
|
-
agentCapable: true,
|
|
301
|
-
hasHooks: true,
|
|
302
|
-
cliFlag: "pi",
|
|
303
|
-
},
|
|
304
|
-
},
|
|
305
|
-
reasonix: {
|
|
306
|
-
name: "Reasonix",
|
|
307
|
-
templateDirs: ["common", "reasonix"],
|
|
308
|
-
configDir: ".reasonix",
|
|
309
|
-
cliFlag: "reasonix",
|
|
310
|
-
defaultChecked: false,
|
|
311
|
-
hasPythonHooks: false,
|
|
312
|
-
templateContext: {
|
|
313
|
-
cmdRefPrefix: "/skill trellis-",
|
|
314
|
-
executorAI: "Bash scripts or tool calls",
|
|
315
|
-
userActionLabel: "Skills",
|
|
316
|
-
agentCapable: true,
|
|
317
|
-
hasHooks: false,
|
|
318
|
-
cliFlag: "reasonix",
|
|
319
|
-
},
|
|
320
|
-
},
|
|
321
|
-
zcode: {
|
|
322
|
-
name: "ZCode",
|
|
323
|
-
templateDirs: ["common", "zcode"],
|
|
324
|
-
configDir: ".zcode",
|
|
325
|
-
// `.zcode/cli/agents` is the pre-ZCode-update discovery path. Kept managed
|
|
326
|
-
// during the transition so `trellis update --migrate` (rename-dir →
|
|
327
|
-
// `.zcode/agents/`) and `trellis uninstall` can clean up the now-empty
|
|
328
|
-
// `.zcode/cli/` parent. Drop this entry once the migration has shipped and
|
|
329
|
-
// no project still holds the legacy dir. Only empty dirs are ever removed,
|
|
330
|
-
// so user files are never touched (see cleanupEmptyDirs in update.ts).
|
|
331
|
-
extraManagedPaths: [
|
|
332
|
-
".zcode/cli/agents",
|
|
333
|
-
".zcode/agents",
|
|
334
|
-
".zcode/commands",
|
|
335
|
-
".zcode/skills",
|
|
336
|
-
// Hooks assets written by configureZcode.
|
|
337
|
-
".zcode/hooks",
|
|
338
|
-
],
|
|
339
|
-
cliFlag: "zcode",
|
|
340
|
-
defaultChecked: false,
|
|
341
|
-
hasPythonHooks: true,
|
|
342
|
-
templateContext: {
|
|
343
|
-
cmdRefPrefix: "/trellis:",
|
|
344
|
-
executorAI: "Bash scripts or Agent calls",
|
|
345
|
-
userActionLabel: "Skills",
|
|
346
|
-
agentCapable: true,
|
|
347
|
-
// ZCode (3.x) supports a workspace hook config at .zcode/config.json
|
|
348
|
-
// with SessionStart / UserPromptSubmit / PreToolUse events. PreToolUse
|
|
349
|
-
// can mutate sub-agent prompts, so ZCode is class-1 hook-inject.
|
|
350
|
-
hasHooks: true,
|
|
351
|
-
cliFlag: "zcode",
|
|
352
|
-
},
|
|
353
|
-
},
|
|
354
|
-
trae: {
|
|
355
|
-
name: "Trae",
|
|
356
|
-
templateDirs: ["common", "trae"],
|
|
357
|
-
configDir: ".trae",
|
|
358
|
-
cliFlag: "trae",
|
|
359
|
-
defaultChecked: false,
|
|
360
|
-
hasPythonHooks: true,
|
|
361
|
-
templateContext: {
|
|
362
|
-
cmdRefPrefix: "/trellis-",
|
|
363
|
-
executorAI: "Bash scripts or tool calls",
|
|
364
|
-
userActionLabel: "Commands",
|
|
365
|
-
agentCapable: true,
|
|
366
|
-
hasHooks: true,
|
|
367
|
-
cliFlag: "trae",
|
|
368
|
-
},
|
|
369
|
-
},
|
|
370
|
-
omp: {
|
|
371
|
-
name: "Oh My Pi",
|
|
372
|
-
templateDirs: ["common", "omp"],
|
|
373
|
-
configDir: ".omp",
|
|
374
|
-
cliFlag: "omp",
|
|
375
|
-
defaultChecked: false,
|
|
376
|
-
hasPythonHooks: false,
|
|
377
|
-
templateContext: {
|
|
378
|
-
cmdRefPrefix: "/trellis:",
|
|
379
|
-
executorAI: "Bash scripts or Task calls",
|
|
380
|
-
userActionLabel: "Slash commands",
|
|
381
|
-
agentCapable: true,
|
|
382
|
-
hasHooks: true,
|
|
383
|
-
cliFlag: "omp",
|
|
384
|
-
},
|
|
385
|
-
},
|
|
386
|
-
/**
|
|
387
|
-
* Grok Build (xAI) — class-2 pull-based platform.
|
|
388
|
-
*
|
|
389
|
-
* Phase 0 verified (Grok 0.2.101): skills/agents/AGENTS.md load correctly;
|
|
390
|
-
* Claude-style hook `additionalContext` is NOT injected into the model.
|
|
391
|
-
* Do not set hasHooks/hasPythonHooks true until Grok consumes hook stdout.
|
|
392
|
-
* Commands are flat under `.grok/commands/trellis-*.md` (Grok slash-command layout).
|
|
393
|
-
*/
|
|
394
|
-
grok: {
|
|
395
|
-
name: "Grok Build",
|
|
396
|
-
templateDirs: ["common", "grok"],
|
|
397
|
-
configDir: ".grok",
|
|
398
|
-
extraManagedPaths: [".grok/skills", ".grok/commands", ".grok/agents"],
|
|
399
|
-
cliFlag: "grok",
|
|
400
|
-
defaultChecked: false,
|
|
401
|
-
hasPythonHooks: false,
|
|
402
|
-
templateContext: {
|
|
403
|
-
cmdRefPrefix: "/trellis-",
|
|
404
|
-
executorAI: "Bash scripts or Agent calls",
|
|
405
|
-
userActionLabel: "Skills",
|
|
406
|
-
agentCapable: true,
|
|
407
|
-
hasHooks: false,
|
|
408
|
-
cliFlag: "grok",
|
|
409
|
-
},
|
|
410
|
-
},
|
|
411
|
-
/**
|
|
412
|
-
* Kimi Code CLI — class-2 pull-based platform.
|
|
413
|
-
*
|
|
414
|
-
* Kimi reads project skills from `.kimi-code/skills/` AND the shared
|
|
415
|
-
* `.agents/skills/` (agentskills.io standard), so workflow/bundled skills go
|
|
416
|
-
* to the shared root via the neutral resolver (byte-identical to
|
|
417
|
-
* Codex/Gemini/Pi writes) while user-invocable entry points
|
|
418
|
-
* (`trellis-start` / `trellis-continue` / `trellis-finish-work`, invoked as
|
|
419
|
-
* `/skill:trellis-<name>`) and the Trellis sub-agent prompts live under
|
|
420
|
-
* `.kimi-code/skills/`.
|
|
421
|
-
*
|
|
422
|
-
* Kimi has no project-level hooks/settings file Trellis may write (hooks are
|
|
423
|
-
* user-level `~/.kimi-code/config.toml` only) and no project-level custom
|
|
424
|
-
* sub-agent definitions (only the built-in coder/explore/plan sub-agents), so
|
|
425
|
-
* the Trellis agent prompts ship as skills with the pull-based prelude.
|
|
426
|
-
*/
|
|
427
|
-
kimi: {
|
|
428
|
-
name: "Kimi Code",
|
|
429
|
-
templateDirs: ["common", "kimi"],
|
|
430
|
-
configDir: ".kimi-code",
|
|
431
|
-
supportsAgentSkills: true,
|
|
432
|
-
cliFlag: "kimi",
|
|
433
|
-
defaultChecked: false,
|
|
434
|
-
hasPythonHooks: false,
|
|
435
|
-
templateContext: {
|
|
436
|
-
cmdRefPrefix: "/skill:trellis-",
|
|
437
|
-
executorAI: "Bash scripts or Agent calls",
|
|
438
|
-
userActionLabel: "Slash commands",
|
|
439
|
-
agentCapable: true,
|
|
440
|
-
hasHooks: false,
|
|
441
|
-
cliFlag: "kimi",
|
|
442
|
-
},
|
|
443
|
-
},
|
|
444
|
-
/**
|
|
445
|
-
* Snow CLI - class-1 platform.
|
|
446
|
-
*
|
|
447
|
-
* Skills: `.snow/skills/` (Claude Code Skills compatible)
|
|
448
|
-
* Commands: `.snow/commands/trellis-*.json` (type: prompt)
|
|
449
|
-
* Agents: `.snow/agents/` (project discovery; no class-2 pull prelude)
|
|
450
|
-
* Hooks: `.snow/hooks/` emit additionalContext JSON (session/user/sub-agent)
|
|
451
|
-
*
|
|
452
|
-
* hasHooks=true: SessionStart injects context -> trellis-start is filtered out.
|
|
453
|
-
* hasPythonHooks=true: ships write-trellis-context.py under .snow/hooks/.
|
|
454
|
-
* Primary agent path is `.snow/agents/*.md` only (no legacy JSON fragment).
|
|
455
|
-
*
|
|
456
|
-
* CLI flag: `--snow`.
|
|
457
|
-
* Detection requires Trellis-owned template hashes under `.snow/skills`, so
|
|
458
|
-
* native Snow settings, commands, agents, or skills are not false positives.
|
|
459
|
-
*/
|
|
460
|
-
snow: {
|
|
461
|
-
name: "Snow CLI",
|
|
462
|
-
templateDirs: ["common", "snow"],
|
|
463
|
-
configDir: ".snow/skills",
|
|
464
|
-
extraManagedPaths: [
|
|
465
|
-
".snow/commands",
|
|
466
|
-
".snow/agents",
|
|
467
|
-
".snow/hooks",
|
|
468
|
-
".snow/SNOW.md",
|
|
469
|
-
],
|
|
470
|
-
cliFlag: "snow",
|
|
471
|
-
defaultChecked: false,
|
|
472
|
-
hasPythonHooks: true,
|
|
473
|
-
templateContext: {
|
|
474
|
-
cmdRefPrefix: "/trellis-",
|
|
475
|
-
executorAI: "Bash scripts or Agent calls",
|
|
476
|
-
userActionLabel: "Skills",
|
|
477
|
-
agentCapable: true,
|
|
478
|
-
hasHooks: true,
|
|
479
|
-
cliFlag: "snow",
|
|
480
|
-
},
|
|
481
|
-
},
|
|
482
51
|
};
|
|
483
52
|
/**
|
|
484
53
|
* Get the configuration for a specific AI tool
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-tools.js","sourceRoot":"","sources":["../../src/types/ai-tools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"ai-tools.js","sourceRoot":"","sources":["../../src/types/ai-tools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAsEH;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAiC;IACpD,aAAa,EAAE;QACb,IAAI,EAAE,aAAa;QACnB,YAAY,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;QAClC,SAAS,EAAE,SAAS;QACpB,OAAO,EAAE,QAAQ;QACjB,cAAc,EAAE,IAAI;QACpB,cAAc,EAAE,IAAI;QACpB,eAAe,EAAE;YACf,YAAY,EAAE,WAAW;YACzB,UAAU,EAAE,4BAA4B;YACxC,eAAe,EAAE,gBAAgB;YACjC,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,QAAQ;SAClB;KACF;IACD,KAAK,EAAE;QACL,IAAI,EAAE,4EAA4E;QAClF,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;QACjC,SAAS,EAAE,QAAQ;QACnB,mBAAmB,EAAE,IAAI;QACzB,OAAO,EAAE,OAAO;QAChB,cAAc,EAAE,IAAI;QACpB,cAAc,EAAE,IAAI;QACpB,eAAe,EAAE;YACf,YAAY,EAAE,GAAG;YACjB,UAAU,EAAE,4BAA4B;YACxC,eAAe,EAAE,QAAQ;YACzB,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,OAAO;SACjB;KACF;CACF,CAAC;AACF;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,IAAY;IACxC,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC;AACxB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC9B,MAAM,KAAK,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACjC,IAAI,MAAM,CAAC,mBAAmB,EAAE,CAAC;QAC/B,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC/B,CAAC;IACD,IAAI,MAAM,CAAC,iBAAiB,EAAE,CAAC;QAC7B,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,YAAY,CAAC;AACrC,CAAC"}
|
|
@@ -18,30 +18,15 @@ export interface ScrubResult {
|
|
|
18
18
|
/**
|
|
19
19
|
* Scrub a hooks-shaped settings JSON file.
|
|
20
20
|
*
|
|
21
|
-
*
|
|
22
|
-
* `
|
|
21
|
+
* Schema: `hooks.{Event}.[ {matcher?, hooks: [ {command,...} ]} ]` — used by
|
|
22
|
+
* both `.claude/settings.json` and `.codex/hooks.json`.
|
|
23
23
|
*
|
|
24
24
|
* Strips every entry whose command references a path in `deletedPaths`,
|
|
25
25
|
* then bottom-up cleans empty containers (matcher block, event array, hooks
|
|
26
26
|
* object). Any user-defined keys outside `hooks` (e.g. `env`, `model`,
|
|
27
27
|
* `permissions`, `version`) are preserved verbatim.
|
|
28
28
|
*/
|
|
29
|
-
export declare function scrubHooksJson(content: string, deletedPaths: readonly string[]
|
|
30
|
-
/**
|
|
31
|
-
* Scrub `.opencode/package.json`:
|
|
32
|
-
* - remove `dependencies["@opencode-ai/plugin"]`
|
|
33
|
-
* - if `dependencies` ends up empty → drop the field
|
|
34
|
-
* - fully empty when nothing is left in the object
|
|
35
|
-
*/
|
|
36
|
-
export declare function scrubOpencodePackageJson(content: string): ScrubResult;
|
|
37
|
-
/**
|
|
38
|
-
* Scrub `.pi/settings.json`:
|
|
39
|
-
* - drop `enableSkillCommands` (trellis-flagged)
|
|
40
|
-
* - remove trellis entries from `extensions`/`skills`/`prompts` arrays
|
|
41
|
-
* - remove trellis-managed `packages["npm:pi-subagents"]` isolation override
|
|
42
|
-
* - drop arrays that become empty
|
|
43
|
-
*/
|
|
44
|
-
export declare function scrubPiSettings(content: string): ScrubResult;
|
|
29
|
+
export declare function scrubHooksJson(content: string, deletedPaths: readonly string[]): ScrubResult;
|
|
45
30
|
/**
|
|
46
31
|
* Scrub `.codex/config.toml`.
|
|
47
32
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uninstall-scrubbers.d.ts","sourceRoot":"","sources":["../../src/utils/uninstall-scrubbers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;CACrB;
|
|
1
|
+
{"version":3,"file":"uninstall-scrubbers.d.ts","sourceRoot":"","sources":["../../src/utils/uninstall-scrubbers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;CACrB;AA+CD;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,SAAS,MAAM,EAAE,GAC9B,WAAW,CAsFb;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAoDjE;AAED,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB,WAAW,CAqBb"}
|