@mindfoldhq/trellis 0.6.7 → 0.6.9
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 +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +38 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/channel/adapters/codex.d.ts +7 -1
- package/dist/commands/channel/adapters/codex.d.ts.map +1 -1
- package/dist/commands/channel/adapters/codex.js +19 -2
- package/dist/commands/channel/adapters/codex.js.map +1 -1
- package/dist/commands/channel/adapters/index.d.ts +3 -1
- package/dist/commands/channel/adapters/index.d.ts.map +1 -1
- package/dist/commands/channel/adapters/index.js +1 -1
- package/dist/commands/channel/adapters/index.js.map +1 -1
- package/dist/commands/channel/agent-loader.d.ts +2 -2
- package/dist/commands/channel/agent-loader.d.ts.map +1 -1
- package/dist/commands/channel/agent-loader.js +9 -5
- package/dist/commands/channel/agent-loader.js.map +1 -1
- package/dist/commands/channel/context-loader.d.ts +1 -1
- package/dist/commands/channel/context-loader.d.ts.map +1 -1
- package/dist/commands/channel/context-loader.js +36 -15
- package/dist/commands/channel/context-loader.js.map +1 -1
- package/dist/commands/channel/context-trust.d.ts +31 -0
- package/dist/commands/channel/context-trust.d.ts.map +1 -0
- package/dist/commands/channel/context-trust.js +139 -0
- package/dist/commands/channel/context-trust.js.map +1 -0
- package/dist/commands/channel/index.d.ts.map +1 -1
- package/dist/commands/channel/index.js +4 -0
- package/dist/commands/channel/index.js.map +1 -1
- package/dist/commands/channel/spawn.d.ts +3 -0
- package/dist/commands/channel/spawn.d.ts.map +1 -1
- package/dist/commands/channel/spawn.js +5 -2
- package/dist/commands/channel/spawn.js.map +1 -1
- package/dist/commands/channel/supervisor.d.ts +3 -0
- package/dist/commands/channel/supervisor.d.ts.map +1 -1
- package/dist/commands/channel/supervisor.js +1 -0
- package/dist/commands/channel/supervisor.js.map +1 -1
- package/dist/commands/init.d.ts +3 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/mem.d.ts.map +1 -1
- package/dist/commands/mem.js +30 -9
- package/dist/commands/mem.js.map +1 -1
- package/dist/commands/update.d.ts +12 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +75 -7
- package/dist/commands/update.js.map +1 -1
- package/dist/configurators/codex.d.ts +36 -0
- package/dist/configurators/codex.d.ts.map +1 -1
- package/dist/configurators/codex.js +111 -13
- package/dist/configurators/codex.js.map +1 -1
- package/dist/configurators/grok.d.ts +22 -0
- package/dist/configurators/grok.d.ts.map +1 -0
- package/dist/configurators/grok.js +58 -0
- package/dist/configurators/grok.js.map +1 -0
- package/dist/configurators/index.d.ts.map +1 -1
- package/dist/configurators/index.js +17 -2
- package/dist/configurators/index.js.map +1 -1
- package/dist/configurators/kimi.d.ts +29 -0
- package/dist/configurators/kimi.d.ts.map +1 -0
- package/dist/configurators/kimi.js +81 -0
- package/dist/configurators/kimi.js.map +1 -0
- package/dist/configurators/pi.js +9 -9
- package/dist/configurators/pi.js.map +1 -1
- package/dist/configurators/shared.d.ts.map +1 -1
- package/dist/configurators/shared.js +12 -4
- package/dist/configurators/shared.js.map +1 -1
- package/dist/configurators/snow.d.ts +31 -0
- package/dist/configurators/snow.d.ts.map +1 -0
- package/dist/configurators/snow.js +95 -0
- package/dist/configurators/snow.js.map +1 -0
- package/dist/configurators/workflow.d.ts +14 -0
- package/dist/configurators/workflow.d.ts.map +1 -1
- package/dist/configurators/workflow.js +37 -1
- package/dist/configurators/workflow.js.map +1 -1
- package/dist/configurators/zcode.d.ts +9 -4
- package/dist/configurators/zcode.d.ts.map +1 -1
- package/dist/configurators/zcode.js +41 -12
- package/dist/configurators/zcode.js.map +1 -1
- package/dist/migrations/manifests/0.5.0-beta.0.json +1 -1
- package/dist/migrations/manifests/0.6.8.json +17 -0
- package/dist/migrations/manifests/0.6.9.json +9 -0
- package/dist/templates/codex/agents/trellis-check.toml +7 -12
- package/dist/templates/codex/agents/trellis-implement.toml +7 -12
- package/dist/templates/codex/agents/trellis-research.toml +15 -15
- package/dist/templates/codex/config.toml +11 -0
- package/dist/templates/codex/hooks/session-start.py +9 -3
- package/dist/templates/codex/hooks.json +12 -0
- package/dist/templates/codex/skills/brainstorm/SKILL.md +40 -13
- package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +2 -2
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-skills-or-commands.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/agents.md +1 -0
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/hooks-and-settings.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md +10 -4
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/skills-and-commands.md +2 -1
- package/dist/templates/common/bundled-skills/trellis-session-insight/SKILL.md +1 -1
- package/dist/templates/common/skills/brainstorm.md +40 -13
- package/dist/templates/copilot/prompts/brainstorm.prompt.md +40 -13
- package/dist/templates/grok/agents/trellis-check.md +105 -0
- package/dist/templates/grok/agents/trellis-implement.md +116 -0
- package/dist/templates/grok/agents/trellis-research.md +146 -0
- package/dist/templates/grok/index.d.ts +16 -0
- package/dist/templates/grok/index.d.ts.map +1 -0
- package/dist/templates/grok/index.js +19 -0
- package/dist/templates/grok/index.js.map +1 -0
- package/dist/templates/kimi/agents/trellis-check.md +103 -0
- package/dist/templates/kimi/agents/trellis-implement.md +114 -0
- package/dist/templates/kimi/agents/trellis-research.md +144 -0
- package/dist/templates/kimi/index.d.ts +19 -0
- package/dist/templates/kimi/index.d.ts.map +1 -0
- package/dist/templates/kimi/index.js +22 -0
- package/dist/templates/kimi/index.js.map +1 -0
- package/dist/templates/omp/extensions/trellis/index.ts.txt +133 -9
- package/dist/templates/opencode/lib/session-utils.js +8 -2
- package/dist/templates/opencode/lib/trellis-context.js +263 -43
- package/dist/templates/opencode/plugins/inject-subagent-context.js +89 -35
- package/dist/templates/opencode/plugins/inject-workflow-state.js +90 -5
- package/dist/templates/pi/extensions/trellis/index.ts.txt +278 -24
- package/dist/templates/pi/settings.json +0 -3
- package/dist/templates/shared-hooks/index.d.ts +11 -5
- package/dist/templates/shared-hooks/index.d.ts.map +1 -1
- package/dist/templates/shared-hooks/index.js +16 -5
- package/dist/templates/shared-hooks/index.js.map +1 -1
- package/dist/templates/shared-hooks/inject-subagent-context.py +466 -104
- package/dist/templates/shared-hooks/inject-workflow-state.py +86 -29
- package/dist/templates/shared-hooks/session-start.py +26 -6
- package/dist/templates/snow/SNOW.md +86 -0
- package/dist/templates/snow/agents/trellis-check.md +135 -0
- package/dist/templates/snow/agents/trellis-implement.md +153 -0
- package/dist/templates/snow/agents/trellis-research.md +114 -0
- package/dist/templates/snow/hooks/beforeSubAgentStart.json +15 -0
- package/dist/templates/snow/hooks/onSessionStart.json +15 -0
- package/dist/templates/snow/hooks/onUserMessage.json +15 -0
- package/dist/templates/snow/hooks/write-trellis-context.py +644 -0
- package/dist/templates/snow/index.d.ts +26 -0
- package/dist/templates/snow/index.d.ts.map +1 -0
- package/dist/templates/snow/index.js +36 -0
- package/dist/templates/snow/index.js.map +1 -0
- package/dist/templates/template-utils.d.ts.map +1 -1
- package/dist/templates/template-utils.js +5 -1
- package/dist/templates/template-utils.js.map +1 -1
- package/dist/templates/trellis/config.yaml +55 -7
- package/dist/templates/trellis/gitattributes.txt +9 -0
- package/dist/templates/trellis/index.d.ts +3 -1
- package/dist/templates/trellis/index.d.ts.map +1 -1
- package/dist/templates/trellis/index.js +3 -1
- package/dist/templates/trellis/index.js.map +1 -1
- package/dist/templates/trellis/scripts/add_session.py +94 -28
- package/dist/templates/trellis/scripts/common/active_task.py +44 -13
- package/dist/templates/trellis/scripts/common/cli_adapter.py +69 -5
- package/dist/templates/trellis/scripts/common/config.py +105 -10
- package/dist/templates/trellis/scripts/common/git.py +36 -0
- package/dist/templates/trellis/scripts/common/io.py +16 -9
- package/dist/templates/trellis/scripts/common/task_context.py +101 -7
- package/dist/templates/trellis/scripts/common/task_store.py +149 -22
- package/dist/templates/trellis/scripts/common/task_utils.py +3 -1
- package/dist/templates/trellis/scripts/common/trellis_config.py +2 -1
- package/dist/templates/trellis/scripts/common/workflow_phase.py +19 -12
- package/dist/templates/trellis/scripts/task.py +106 -10
- package/dist/templates/trellis/workflow.md +20 -19
- package/dist/templates/zcode/agents/trellis-check.md +7 -0
- package/dist/templates/zcode/agents/trellis-implement.md +13 -4
- package/dist/templates/zcode/config.json +42 -0
- package/dist/templates/zcode/index.d.ts +10 -1
- package/dist/templates/zcode/index.d.ts.map +1 -1
- package/dist/templates/zcode/index.js +12 -2
- package/dist/templates/zcode/index.js.map +1 -1
- package/dist/types/ai-tools.d.ts +4 -4
- package/dist/types/ai-tools.d.ts.map +1 -1
- package/dist/types/ai-tools.js +114 -2
- package/dist/types/ai-tools.js.map +1 -1
- package/dist/utils/template-fetcher.d.ts.map +1 -1
- package/dist/utils/template-fetcher.js +0 -3
- package/dist/utils/template-fetcher.js.map +1 -1
- package/package.json +2 -2
|
@@ -183,7 +183,7 @@ Complex task: ask the user if you can create a Trellis task and enter the planni
|
|
|
183
183
|
- 1.0 Create task `[required · once]` (only after task-creation consent)
|
|
184
184
|
- 1.1 Requirement exploration `[required · repeatable]` (`prd.md`; complex tasks also need `design.md` + `implement.md`)
|
|
185
185
|
- 1.2 Research `[optional · repeatable]`
|
|
186
|
-
- 1.3 Configure context `[required · once]` — Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Reasonix (sub-agent-dispatch platforms only; inline platforms skip)
|
|
186
|
+
- 1.3 Configure context `[required · once]` — Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Snow, Reasonix, Grok, Kimi Code (sub-agent-dispatch platforms only; inline platforms skip)
|
|
187
187
|
- 1.4 Activate task `[required · once]` (review gate, then `task.py start`; status → in_progress)
|
|
188
188
|
- 1.5 Completion criteria
|
|
189
189
|
|
|
@@ -220,7 +220,7 @@ Inline mode: skip jsonl curation; Phase 2 reads artifacts/specs via `trellis-bef
|
|
|
220
220
|
therefore must cover every required step from implementation through
|
|
221
221
|
commit, including Phase 3.3 spec update and Phase 3.4 commit. -->
|
|
222
222
|
|
|
223
|
-
Sub-agent dispatch protocol applies to all platforms and all sub-agents, including class-2
|
|
223
|
+
Sub-agent dispatch protocol applies to all platforms and all sub-agents, including native Codex `SubagentStart` context injection with child-side pull fallback, class-2 Gemini/Qoder/Copilot/Reasonix/Trae/Grok/Kimi Code, hook-backed ZCode/Snow, and `trellis-research`: every dispatch prompt starts with `Active task: <task path from task.py current>` before role-specific instructions. On Grok Build, use `spawn_subagent` with `subagent_type` set to the Trellis agent name (e.g. `trellis-implement`). On Kimi Code, dispatch the built-in `coder` / `explore` sub-agent with the matching `.kimi-code/skills/trellis-<role>/SKILL.md` instructions.
|
|
224
224
|
|
|
225
225
|
[workflow-state:in_progress]
|
|
226
226
|
Tools: `trellis-implement` / `trellis-research` are sub-agent types only (Task/Agent tool, NOT Skill; there is no skill by these names). `trellis-update-spec` is a skill. `trellis-check` exists as both; prefer the Agent form when verifying after code changes.
|
|
@@ -272,13 +272,13 @@ Code committed. Run `/trellis:finish-work`; if dirty, return to Phase 3.4 first.
|
|
|
272
272
|
|
|
273
273
|
When a user request matches one of these intents inside an active task, route first, then load the detailed phase step if needed.
|
|
274
274
|
|
|
275
|
-
[Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Reasonix, Trae]
|
|
275
|
+
[Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Snow, Reasonix, Trae, Grok, Kimi Code]
|
|
276
276
|
|
|
277
277
|
- Planning or unclear requirements -> `trellis-brainstorm`.
|
|
278
278
|
- `in_progress` implementation/check -> dispatch `trellis-implement` / `trellis-check`.
|
|
279
279
|
- Repeated debugging -> `trellis-break-loop`; spec updates -> `trellis-update-spec`.
|
|
280
280
|
|
|
281
|
-
[/Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Reasonix, Trae]
|
|
281
|
+
[/Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Snow, Reasonix, Trae, Grok, Kimi Code]
|
|
282
282
|
|
|
283
283
|
[codex-inline, Kilo, Antigravity, Devin]
|
|
284
284
|
|
|
@@ -353,7 +353,7 @@ Return to this step whenever requirements change and revise the relevant artifac
|
|
|
353
353
|
|
|
354
354
|
Research can happen at any time during requirement exploration. It isn't limited to local code — you can use any available tool (MCP servers, skills, web search, etc.) to look up external information, including third-party library docs, industry practices, API references, etc.
|
|
355
355
|
|
|
356
|
-
[Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Reasonix, Trae]
|
|
356
|
+
[Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Snow, Reasonix, Trae, Grok, Kimi Code]
|
|
357
357
|
|
|
358
358
|
Spawn the research sub-agent:
|
|
359
359
|
|
|
@@ -361,11 +361,11 @@ Spawn the research sub-agent:
|
|
|
361
361
|
- **Task description**: Research <specific question>
|
|
362
362
|
- **Key requirement**: Research output MUST be persisted to `{TASK_DIR}/research/`
|
|
363
363
|
|
|
364
|
-
[/Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Reasonix, Trae]
|
|
364
|
+
[/Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Snow, Reasonix, Trae, Grok, Kimi Code]
|
|
365
365
|
|
|
366
366
|
[codex-inline, Kilo, Antigravity, Devin]
|
|
367
367
|
|
|
368
|
-
Do the research in the main session directly and write findings into `{TASK_DIR}/research/`.
|
|
368
|
+
Do the research in the main session directly and write findings into `{TASK_DIR}/research/`. `codex-inline` is the explicit mode that keeps work in the main session.
|
|
369
369
|
|
|
370
370
|
[/codex-inline, Kilo, Antigravity, Devin]
|
|
371
371
|
|
|
@@ -380,7 +380,7 @@ Brainstorm and research can interleave freely — pause to research a technical
|
|
|
380
380
|
|
|
381
381
|
#### 1.3 Configure context `[required · once]`
|
|
382
382
|
|
|
383
|
-
[Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Reasonix, Trae]
|
|
383
|
+
[Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Snow, Reasonix, Trae, Grok, Kimi Code]
|
|
384
384
|
|
|
385
385
|
Curate `implement.jsonl` and `check.jsonl` so the Phase 2 sub-agents get the right spec/research context. These files were seeded on `task create` with a single self-describing `_example` line; your job here is to fill in real entries.
|
|
386
386
|
|
|
@@ -425,7 +425,7 @@ Ready gate: both `implement.jsonl` and `check.jsonl` must contain at least one r
|
|
|
425
425
|
|
|
426
426
|
Skip this step only when both files already have real curated entries.
|
|
427
427
|
|
|
428
|
-
[/Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Reasonix, Trae]
|
|
428
|
+
[/Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Snow, Reasonix, Trae, Grok, Kimi Code]
|
|
429
429
|
|
|
430
430
|
[codex-inline, Kilo, Antigravity, Devin]
|
|
431
431
|
|
|
@@ -458,11 +458,11 @@ If `task.py start` errors with a session-identity message (no context key from h
|
|
|
458
458
|
| `design.md` exists (complex tasks) | ✅ |
|
|
459
459
|
| `implement.md` exists (complex tasks) | ✅ |
|
|
460
460
|
|
|
461
|
-
[Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Reasonix, Trae]
|
|
461
|
+
[Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Snow, Reasonix, Trae, Grok, Kimi Code]
|
|
462
462
|
|
|
463
463
|
| `implement.jsonl` and `check.jsonl` each contain at least one real curated entry (seed row does not count) | ✅ |
|
|
464
464
|
|
|
465
|
-
[/Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Reasonix, Trae]
|
|
465
|
+
[/Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Snow, Reasonix, Trae, Grok, Kimi Code]
|
|
466
466
|
|
|
467
467
|
---
|
|
468
468
|
|
|
@@ -472,21 +472,22 @@ Goal: turn reviewed planning artifacts into code that passes quality checks.
|
|
|
472
472
|
|
|
473
473
|
#### 2.1 Implement `[required · repeatable]`
|
|
474
474
|
|
|
475
|
-
[Claude Code, Cursor, OpenCode, CodeBuddy, Droid, Pi, Oh My Pi]
|
|
475
|
+
[Claude Code, Cursor, OpenCode, codex-sub-agent, CodeBuddy, Droid, Pi, ZCode, Snow, Oh My Pi]
|
|
476
476
|
|
|
477
477
|
Spawn the implement sub-agent:
|
|
478
478
|
|
|
479
479
|
- **Agent type**: `trellis-implement`
|
|
480
480
|
- **Task description**: Implement the reviewed task artifacts, consulting materials under `{TASK_DIR}/research/`; finish by running project lint and type-check
|
|
481
|
-
- **Dispatch prompt guard**:
|
|
481
|
+
- **Dispatch prompt guard**: The prompt MUST start with `Active task: <task path>`, then tell the spawned agent it is already the `trellis-implement` sub-agent and must implement directly, not spawn another `trellis-implement` / `trellis-check`.
|
|
482
482
|
|
|
483
483
|
The platform hook/plugin auto-handles:
|
|
484
484
|
- Reads `implement.jsonl` and injects referenced spec/research files into the agent prompt
|
|
485
485
|
- Injects `prd.md`, `design.md` if present, and `implement.md` if present
|
|
486
|
+
- For Codex, `SubagentStart` supplies native context injection; the agent profile keeps child-side loading as the fallback
|
|
486
487
|
|
|
487
|
-
[/Claude Code, Cursor, OpenCode, CodeBuddy, Droid, Pi, Oh My Pi]
|
|
488
|
+
[/Claude Code, Cursor, OpenCode, codex-sub-agent, CodeBuddy, Droid, Pi, ZCode, Snow, Oh My Pi]
|
|
488
489
|
|
|
489
|
-
[
|
|
490
|
+
[Gemini, Qoder, Copilot, Reasonix, Trae, Grok, Kimi Code]
|
|
490
491
|
|
|
491
492
|
Spawn the implement sub-agent:
|
|
492
493
|
|
|
@@ -498,7 +499,7 @@ The pull-based sub-agent definition auto-handles the context load requirement:
|
|
|
498
499
|
- Resolves the active task with `task.py current --source`, then reads `prd.md`, `design.md` if present, and `implement.md` if present
|
|
499
500
|
- Reads `implement.jsonl` and requires the agent to load each referenced spec/research file before coding
|
|
500
501
|
|
|
501
|
-
[/
|
|
502
|
+
[/Gemini, Qoder, Copilot, Reasonix, Trae, Grok, Kimi Code]
|
|
502
503
|
|
|
503
504
|
[Kiro]
|
|
504
505
|
|
|
@@ -526,13 +527,13 @@ The platform prelude auto-handles the context load requirement:
|
|
|
526
527
|
|
|
527
528
|
#### 2.2 Quality check `[required · repeatable]`
|
|
528
529
|
|
|
529
|
-
[Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Reasonix, Trae]
|
|
530
|
+
[Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Snow, Reasonix, Trae, Grok, Kimi Code]
|
|
530
531
|
|
|
531
532
|
Spawn the check sub-agent:
|
|
532
533
|
|
|
533
534
|
- **Agent type**: `trellis-check`
|
|
534
535
|
- **Task description**: Review all code changes against specs and task artifacts; fix any findings directly; ensure lint and type-check pass
|
|
535
|
-
- **Dispatch prompt guard**:
|
|
536
|
+
- **Dispatch prompt guard**: The prompt MUST start with `Active task: <task path>`, then tell the spawned agent it is already the `trellis-check` sub-agent and must review/fix directly, not spawn another `trellis-check` / `trellis-implement`.
|
|
536
537
|
|
|
537
538
|
The check agent's job:
|
|
538
539
|
- Review code changes against specs
|
|
@@ -540,7 +541,7 @@ The check agent's job:
|
|
|
540
541
|
- Auto-fix issues it finds
|
|
541
542
|
- Run lint and typecheck to verify
|
|
542
543
|
|
|
543
|
-
[/Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Reasonix, Trae]
|
|
544
|
+
[/Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi, Oh My Pi, ZCode, Snow, Reasonix, Trae, Grok, Kimi Code]
|
|
544
545
|
|
|
545
546
|
[codex-inline, Kilo, Antigravity, Devin]
|
|
546
547
|
|
|
@@ -16,6 +16,13 @@ You are already the `trellis-check` sub-agent that the main session dispatched.
|
|
|
16
16
|
- If SessionStart context, workflow-state breadcrumbs, or workflow.md say to dispatch `trellis-implement` / `trellis-check`, treat that as a main-session instruction that is already satisfied by your current role.
|
|
17
17
|
- Only the main session may dispatch Trellis implement/check agents. If more implementation work is needed, report that recommendation instead of spawning.
|
|
18
18
|
|
|
19
|
+
## Trellis Context Loading Protocol
|
|
20
|
+
|
|
21
|
+
Look for the `<!-- trellis-hook-injected -->` marker in your input above.
|
|
22
|
+
|
|
23
|
+
- **If the marker is present**: prd / spec / research files have already been auto-loaded for you above. Proceed with the check work directly.
|
|
24
|
+
- **If the marker is absent**: hook injection didn't fire. Find the active task path from your dispatch prompt's first line `Active task: <path>`, then Read `<task-path>/check.jsonl`, each listed file, `<task-path>/prd.md`, `<task-path>/design.md` if present, and `<task-path>/implement.md` if present before checking the work.
|
|
25
|
+
|
|
19
26
|
## Context
|
|
20
27
|
|
|
21
28
|
Before checking, read:
|
|
@@ -16,19 +16,27 @@ You are already the `trellis-implement` sub-agent that the main session dispatch
|
|
|
16
16
|
- If SessionStart context, workflow-state breadcrumbs, or workflow.md say to dispatch `trellis-implement` / `trellis-check`, treat that as a main-session instruction that is already satisfied by your current role.
|
|
17
17
|
- Only the main session may dispatch Trellis implement/check agents. If more parallel work is needed, report that recommendation instead of spawning.
|
|
18
18
|
|
|
19
|
+
## Trellis Context Loading Protocol
|
|
20
|
+
|
|
21
|
+
Look for the `<!-- trellis-hook-injected -->` marker in your input above.
|
|
22
|
+
|
|
23
|
+
- **If the marker is present**: prd / spec / research files have already been auto-loaded for you above. Proceed with the implementation work directly.
|
|
24
|
+
- **If the marker is absent**: hook injection didn't fire. Find the active task path from your dispatch prompt's first line `Active task: <path>`, then Read `<task-path>/implement.jsonl`, each listed file, `<task-path>/prd.md`, `<task-path>/design.md` if present, and `<task-path>/implement.md` if present before doing the work.
|
|
25
|
+
|
|
19
26
|
## Context
|
|
20
27
|
|
|
21
28
|
Before implementing, read:
|
|
22
29
|
- `.trellis/workflow.md` - Project workflow
|
|
23
30
|
- `.trellis/spec/` - Development guidelines
|
|
24
31
|
- Task `prd.md` - Requirements document
|
|
25
|
-
- Task `
|
|
32
|
+
- Task `design.md` - Technical design (if exists)
|
|
33
|
+
- Task `implement.md` - Execution plan (if exists)
|
|
26
34
|
|
|
27
35
|
## Core Responsibilities
|
|
28
36
|
|
|
29
37
|
1. **Understand specs** - Read relevant spec files in `.trellis/spec/`
|
|
30
|
-
2. **Understand
|
|
31
|
-
3. **Implement features** - Write code following specs and
|
|
38
|
+
2. **Understand task artifacts** - Read prd.md, design.md if present, and implement.md if present
|
|
39
|
+
3. **Implement features** - Write code following specs and task artifacts
|
|
32
40
|
4. **Self-check** - Ensure code quality
|
|
33
41
|
5. **Report results** - Report completion status
|
|
34
42
|
|
|
@@ -53,10 +61,11 @@ Read relevant specs based on task type:
|
|
|
53
61
|
|
|
54
62
|
### 2. Understand Requirements
|
|
55
63
|
|
|
56
|
-
Read the task's prd.md and
|
|
64
|
+
Read the task's prd.md, design.md if present, and implement.md if present:
|
|
57
65
|
|
|
58
66
|
- What are the core requirements
|
|
59
67
|
- Key points of technical design
|
|
68
|
+
- Implementation order, validation commands, and rollback points
|
|
60
69
|
- Which files to modify/create
|
|
61
70
|
|
|
62
71
|
### 3. Implement Features
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"enabled": true,
|
|
4
|
+
"events": {
|
|
5
|
+
"SessionStart": [
|
|
6
|
+
{
|
|
7
|
+
"matcher": "startup|clear|compact",
|
|
8
|
+
"hooks": [
|
|
9
|
+
{
|
|
10
|
+
"type": "command",
|
|
11
|
+
"command": "{{PYTHON_CMD}} \"${ZCODE_PROJECT_DIR}/.zcode/hooks/session-start.py\"",
|
|
12
|
+
"timeout": 30
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"UserPromptSubmit": [
|
|
18
|
+
{
|
|
19
|
+
"hooks": [
|
|
20
|
+
{
|
|
21
|
+
"type": "command",
|
|
22
|
+
"command": "{{PYTHON_CMD}} \"${ZCODE_PROJECT_DIR}/.zcode/hooks/inject-workflow-state.py\"",
|
|
23
|
+
"timeout": 15
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"PreToolUse": [
|
|
29
|
+
{
|
|
30
|
+
"matcher": "Agent|Task",
|
|
31
|
+
"hooks": [
|
|
32
|
+
{
|
|
33
|
+
"type": "command",
|
|
34
|
+
"command": "{{PYTHON_CMD}} \"${ZCODE_PROJECT_DIR}/.zcode/hooks/inject-subagent-context.py\"",
|
|
35
|
+
"timeout": 30
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -9,8 +9,17 @@
|
|
|
9
9
|
* trellis-research is intentionally standalone: it does not receive the
|
|
10
10
|
* implement/check prelude, and persists findings under the active task's
|
|
11
11
|
* research directory instead.
|
|
12
|
+
*
|
|
13
|
+
* ZCode 3.x supports a workspace hook config at `.zcode/config.json`
|
|
14
|
+
* (SessionStart + UserPromptSubmit). Shared Python hook scripts are written
|
|
15
|
+
* to `.zcode/hooks/` and registered via the config. The config schema is the
|
|
16
|
+
* workspace form: `{ hooks: { enabled: true, events: { <Event>: [...] } } }`
|
|
17
|
+
* — distinct from plugin `hooks.json` files (no `enabled`/`events` wrapper).
|
|
12
18
|
*/
|
|
13
|
-
import { type AgentTemplate } from "../template-utils.js";
|
|
19
|
+
import { type AgentTemplate, type HookTemplate } from "../template-utils.js";
|
|
20
|
+
export type { AgentTemplate, HookTemplate };
|
|
14
21
|
/** Sub-agent definitions (trellis-implement, trellis-check, trellis-research). */
|
|
15
22
|
export declare function getAllAgents(): AgentTemplate[];
|
|
23
|
+
/** Hook configuration written to `.zcode/config.json` (workspace config form). */
|
|
24
|
+
export declare function getHooksConfig(): HookTemplate;
|
|
16
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/zcode/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/zcode/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC;AAI5C,kFAAkF;AAClF,wBAAgB,YAAY,IAAI,aAAa,EAAE,CAE9C;AAED,kFAAkF;AAClF,wBAAgB,cAAc,IAAI,YAAY,CAE7C"}
|
|
@@ -9,11 +9,21 @@
|
|
|
9
9
|
* trellis-research is intentionally standalone: it does not receive the
|
|
10
10
|
* implement/check prelude, and persists findings under the active task's
|
|
11
11
|
* research directory instead.
|
|
12
|
+
*
|
|
13
|
+
* ZCode 3.x supports a workspace hook config at `.zcode/config.json`
|
|
14
|
+
* (SessionStart + UserPromptSubmit). Shared Python hook scripts are written
|
|
15
|
+
* to `.zcode/hooks/` and registered via the config. The config schema is the
|
|
16
|
+
* workspace form: `{ hooks: { enabled: true, events: { <Event>: [...] } } }`
|
|
17
|
+
* — distinct from plugin `hooks.json` files (no `enabled`/`events` wrapper).
|
|
12
18
|
*/
|
|
13
|
-
import { createTemplateReader } from "../template-utils.js";
|
|
14
|
-
const { listMdAgents } = createTemplateReader(import.meta.url);
|
|
19
|
+
import { createTemplateReader, } from "../template-utils.js";
|
|
20
|
+
const { listMdAgents, getSettings } = createTemplateReader(import.meta.url);
|
|
15
21
|
/** Sub-agent definitions (trellis-implement, trellis-check, trellis-research). */
|
|
16
22
|
export function getAllAgents() {
|
|
17
23
|
return listMdAgents();
|
|
18
24
|
}
|
|
25
|
+
/** Hook configuration written to `.zcode/config.json` (workspace config form). */
|
|
26
|
+
export function getHooksConfig() {
|
|
27
|
+
return getSettings("config.json");
|
|
28
|
+
}
|
|
19
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/zcode/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/zcode/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EACL,oBAAoB,GAGrB,MAAM,sBAAsB,CAAC;AAI9B,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE5E,kFAAkF;AAClF,MAAM,UAAU,YAAY;IAC1B,OAAO,YAAY,EAAE,CAAC;AACxB,CAAC;AAED,kFAAkF;AAClF,MAAM,UAAU,cAAc;IAC5B,OAAO,WAAW,CAAC,aAAa,CAAC,CAAC;AACpC,CAAC"}
|
package/dist/types/ai-tools.d.ts
CHANGED
|
@@ -6,23 +6,23 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* Supported AI coding tools
|
|
8
8
|
*/
|
|
9
|
-
export type AITool = "claude-code" | "cursor" | "opencode" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "devin" | "qoder" | "codebuddy" | "copilot" | "droid" | "pi" | "reasonix" | "zcode" | "trae" | "omp";
|
|
9
|
+
export type AITool = "claude-code" | "cursor" | "opencode" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "devin" | "qoder" | "codebuddy" | "copilot" | "droid" | "pi" | "reasonix" | "zcode" | "trae" | "omp" | "grok" | "kimi" | "snow";
|
|
10
10
|
/**
|
|
11
11
|
* Template directory categories
|
|
12
12
|
*/
|
|
13
|
-
export type TemplateDir = "common" | "claude" | "cursor" | "opencode" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "devin" | "qoder" | "codebuddy" | "copilot" | "droid" | "pi" | "reasonix" | "zcode" | "trae" | "omp";
|
|
13
|
+
export type TemplateDir = "common" | "claude" | "cursor" | "opencode" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "devin" | "qoder" | "codebuddy" | "copilot" | "droid" | "pi" | "reasonix" | "zcode" | "trae" | "omp" | "grok" | "kimi" | "snow";
|
|
14
14
|
/**
|
|
15
15
|
* CLI flag names for platform selection (e.g., --claude, --cursor, --kilo, --kiro, --gemini, --antigravity)
|
|
16
16
|
* Must match keys in InitOptions (src/commands/init.ts)
|
|
17
17
|
*/
|
|
18
|
-
export type CliFlag = "claude" | "cursor" | "opencode" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "devin" | "qoder" | "codebuddy" | "copilot" | "droid" | "pi" | "reasonix" | "zcode" | "trae" | "omp";
|
|
18
|
+
export type CliFlag = "claude" | "cursor" | "opencode" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "devin" | "qoder" | "codebuddy" | "copilot" | "droid" | "pi" | "reasonix" | "zcode" | "trae" | "omp" | "grok" | "kimi" | "snow";
|
|
19
19
|
/**
|
|
20
20
|
* Template context for placeholder resolution.
|
|
21
21
|
* Controls how common templates are rendered per platform.
|
|
22
22
|
*/
|
|
23
23
|
export interface TemplateContext {
|
|
24
24
|
/** Prefix for cross-referencing other commands/skills */
|
|
25
|
-
cmdRefPrefix: "/trellis:" | "/trellis-" | "$" | "/" | "/skill trellis-";
|
|
25
|
+
cmdRefPrefix: "/trellis:" | "/trellis-" | "$" | "/" | "/skill trellis-" | "/skill:trellis-";
|
|
26
26
|
/** Description of AI executor actions shown in role tables */
|
|
27
27
|
executorAI: "Bash scripts or Task calls" | "Bash scripts or tool calls" | "Bash scripts or Agent calls" | "Bash scripts or file reads";
|
|
28
28
|
/** Label for user-invocable actions */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-tools.d.ts","sourceRoot":"","sources":["../../src/types/ai-tools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,MAAM,MAAM,GACd,aAAa,GACb,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,aAAa,GACb,OAAO,GACP,OAAO,GACP,WAAW,GACX,SAAS,GACT,OAAO,GACP,IAAI,GACJ,UAAU,GACV,OAAO,GACP,MAAM,GACN,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"ai-tools.d.ts","sourceRoot":"","sources":["../../src/types/ai-tools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,MAAM,MAAM,GACd,aAAa,GACb,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,aAAa,GACb,OAAO,GACP,OAAO,GACP,WAAW,GACX,SAAS,GACT,OAAO,GACP,IAAI,GACJ,UAAU,GACV,OAAO,GACP,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,WAAW,GACnB,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,aAAa,GACb,OAAO,GACP,OAAO,GACP,WAAW,GACX,SAAS,GACT,OAAO,GACP,IAAI,GACJ,UAAU,GACV,OAAO,GACP,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,CAAC;AAEX;;;GAGG;AACH,MAAM,MAAM,OAAO,GACf,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,aAAa,GACb,OAAO,GACP,OAAO,GACP,WAAW,GACX,SAAS,GACT,OAAO,GACP,IAAI,GACJ,UAAU,GACV,OAAO,GACP,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,CAAC;AAEX;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,yDAAyD;IACzD,YAAY,EACR,WAAW,GACX,WAAW,GACX,GAAG,GACH,GAAG,GACH,iBAAiB,GACjB,iBAAiB,CAAC;IACtB,8DAA8D;IAC9D,UAAU,EACN,4BAA4B,GAC5B,4BAA4B,GAC5B,6BAA6B,GAC7B,4BAA4B,CAAC;IACjC,uCAAuC;IACvC,eAAe,EACX,gBAAgB,GAChB,QAAQ,GACR,WAAW,GACX,SAAS,GACT,UAAU,CAAC;IACf,kEAAkE;IAClE,YAAY,EAAE,OAAO,CAAC;IACtB,0DAA0D;IAC1D,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;;;;OAOG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,kEAAkE;IAClE,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,kFAAkF;IAClF,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,qEAAqE;IACrE,OAAO,EAAE,OAAO,CAAC;IACjB,yEAAyE;IACzE,cAAc,EAAE,OAAO,CAAC;IACxB,+EAA+E;IAC/E,cAAc,EAAE,OAAO,CAAC;IACxB,sEAAsE;IACtE,eAAe,EAAE,eAAe,CAAC;CAClC;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAyajD,CAAC;AAEF;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAExD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAUtD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,EAAE,CAE3D"}
|
package/dist/types/ai-tools.js
CHANGED
|
@@ -53,6 +53,12 @@ export const AI_TOOLS = {
|
|
|
53
53
|
configDir: ".opencode",
|
|
54
54
|
cliFlag: "opencode",
|
|
55
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.
|
|
56
62
|
hasPythonHooks: false,
|
|
57
63
|
templateContext: {
|
|
58
64
|
cmdRefPrefix: "/trellis:",
|
|
@@ -236,9 +242,14 @@ export const AI_TOOLS = {
|
|
|
236
242
|
},
|
|
237
243
|
},
|
|
238
244
|
pi: {
|
|
245
|
+
// Pi also writes .agents/skills/, which is read by Cursor, Gemini CLI,
|
|
246
|
+
// GitHub Copilot, Amp, and Kimi Code. Keep that detail here rather than
|
|
247
|
+
// in `name` — `name` leaks verbatim into `trellis platforms` output and
|
|
248
|
+
// init checkboxes, where a long parenthetical reads badly.
|
|
239
249
|
name: "Pi Agent",
|
|
240
250
|
templateDirs: ["common", "pi"],
|
|
241
251
|
configDir: ".pi",
|
|
252
|
+
supportsAgentSkills: true,
|
|
242
253
|
cliFlag: "pi",
|
|
243
254
|
defaultChecked: false,
|
|
244
255
|
hasPythonHooks: false,
|
|
@@ -282,16 +293,21 @@ export const AI_TOOLS = {
|
|
|
282
293
|
".zcode/agents",
|
|
283
294
|
".zcode/commands",
|
|
284
295
|
".zcode/skills",
|
|
296
|
+
// Hooks assets written by configureZcode.
|
|
297
|
+
".zcode/hooks",
|
|
285
298
|
],
|
|
286
299
|
cliFlag: "zcode",
|
|
287
300
|
defaultChecked: false,
|
|
288
|
-
hasPythonHooks:
|
|
301
|
+
hasPythonHooks: true,
|
|
289
302
|
templateContext: {
|
|
290
303
|
cmdRefPrefix: "/trellis:",
|
|
291
304
|
executorAI: "Bash scripts or Agent calls",
|
|
292
305
|
userActionLabel: "Skills",
|
|
293
306
|
agentCapable: true,
|
|
294
|
-
|
|
307
|
+
// ZCode (3.x) supports a workspace hook config at .zcode/config.json
|
|
308
|
+
// with SessionStart / UserPromptSubmit / PreToolUse events. PreToolUse
|
|
309
|
+
// can mutate sub-agent prompts, so ZCode is class-1 hook-inject.
|
|
310
|
+
hasHooks: true,
|
|
295
311
|
cliFlag: "zcode",
|
|
296
312
|
},
|
|
297
313
|
},
|
|
@@ -327,6 +343,102 @@ export const AI_TOOLS = {
|
|
|
327
343
|
cliFlag: "omp",
|
|
328
344
|
},
|
|
329
345
|
},
|
|
346
|
+
/**
|
|
347
|
+
* Grok Build (xAI) — class-2 pull-based platform.
|
|
348
|
+
*
|
|
349
|
+
* Phase 0 verified (Grok 0.2.101): skills/agents/AGENTS.md load correctly;
|
|
350
|
+
* Claude-style hook `additionalContext` is NOT injected into the model.
|
|
351
|
+
* Do not set hasHooks/hasPythonHooks true until Grok consumes hook stdout.
|
|
352
|
+
* Commands are flat under `.grok/commands/trellis-*.md` (Grok slash-command layout).
|
|
353
|
+
*/
|
|
354
|
+
grok: {
|
|
355
|
+
name: "Grok Build",
|
|
356
|
+
templateDirs: ["common", "grok"],
|
|
357
|
+
configDir: ".grok",
|
|
358
|
+
extraManagedPaths: [".grok/skills", ".grok/commands", ".grok/agents"],
|
|
359
|
+
cliFlag: "grok",
|
|
360
|
+
defaultChecked: false,
|
|
361
|
+
hasPythonHooks: false,
|
|
362
|
+
templateContext: {
|
|
363
|
+
cmdRefPrefix: "/trellis-",
|
|
364
|
+
executorAI: "Bash scripts or Agent calls",
|
|
365
|
+
userActionLabel: "Skills",
|
|
366
|
+
agentCapable: true,
|
|
367
|
+
hasHooks: false,
|
|
368
|
+
cliFlag: "grok",
|
|
369
|
+
},
|
|
370
|
+
},
|
|
371
|
+
/**
|
|
372
|
+
* Kimi Code CLI — class-2 pull-based platform.
|
|
373
|
+
*
|
|
374
|
+
* Kimi reads project skills from `.kimi-code/skills/` AND the shared
|
|
375
|
+
* `.agents/skills/` (agentskills.io standard), so workflow/bundled skills go
|
|
376
|
+
* to the shared root via the neutral resolver (byte-identical to
|
|
377
|
+
* Codex/Gemini/Pi writes) while user-invocable entry points
|
|
378
|
+
* (`trellis-start` / `trellis-continue` / `trellis-finish-work`, invoked as
|
|
379
|
+
* `/skill:trellis-<name>`) and the Trellis sub-agent prompts live under
|
|
380
|
+
* `.kimi-code/skills/`.
|
|
381
|
+
*
|
|
382
|
+
* Kimi has no project-level hooks/settings file Trellis may write (hooks are
|
|
383
|
+
* user-level `~/.kimi-code/config.toml` only) and no project-level custom
|
|
384
|
+
* sub-agent definitions (only the built-in coder/explore/plan sub-agents), so
|
|
385
|
+
* the Trellis agent prompts ship as skills with the pull-based prelude.
|
|
386
|
+
*/
|
|
387
|
+
kimi: {
|
|
388
|
+
name: "Kimi Code",
|
|
389
|
+
templateDirs: ["common", "kimi"],
|
|
390
|
+
configDir: ".kimi-code",
|
|
391
|
+
supportsAgentSkills: true,
|
|
392
|
+
cliFlag: "kimi",
|
|
393
|
+
defaultChecked: false,
|
|
394
|
+
hasPythonHooks: false,
|
|
395
|
+
templateContext: {
|
|
396
|
+
cmdRefPrefix: "/skill:trellis-",
|
|
397
|
+
executorAI: "Bash scripts or Agent calls",
|
|
398
|
+
userActionLabel: "Slash commands",
|
|
399
|
+
agentCapable: true,
|
|
400
|
+
hasHooks: false,
|
|
401
|
+
cliFlag: "kimi",
|
|
402
|
+
},
|
|
403
|
+
},
|
|
404
|
+
/**
|
|
405
|
+
* Snow CLI - class-1 platform.
|
|
406
|
+
*
|
|
407
|
+
* Skills: `.snow/skills/` (Claude Code Skills compatible)
|
|
408
|
+
* Commands: `.snow/commands/trellis-*.json` (type: prompt)
|
|
409
|
+
* Agents: `.snow/agents/` (project discovery; no class-2 pull prelude)
|
|
410
|
+
* Hooks: `.snow/hooks/` emit additionalContext JSON (session/user/sub-agent)
|
|
411
|
+
*
|
|
412
|
+
* hasHooks=true: SessionStart injects context -> trellis-start is filtered out.
|
|
413
|
+
* hasPythonHooks=true: ships write-trellis-context.py under .snow/hooks/.
|
|
414
|
+
* Primary agent path is `.snow/agents/*.md` only (no legacy JSON fragment).
|
|
415
|
+
*
|
|
416
|
+
* CLI flag: `--snow`.
|
|
417
|
+
* Detection uses configDir `.snow/skills` so bare `.snow/settings.json` is not
|
|
418
|
+
* a false-positive "configured" project.
|
|
419
|
+
*/
|
|
420
|
+
snow: {
|
|
421
|
+
name: "Snow CLI",
|
|
422
|
+
templateDirs: ["common", "snow"],
|
|
423
|
+
configDir: ".snow/skills",
|
|
424
|
+
extraManagedPaths: [
|
|
425
|
+
".snow/commands",
|
|
426
|
+
".snow/agents",
|
|
427
|
+
".snow/hooks",
|
|
428
|
+
".snow/SNOW.md",
|
|
429
|
+
],
|
|
430
|
+
cliFlag: "snow",
|
|
431
|
+
defaultChecked: false,
|
|
432
|
+
hasPythonHooks: true,
|
|
433
|
+
templateContext: {
|
|
434
|
+
cmdRefPrefix: "/trellis-",
|
|
435
|
+
executorAI: "Bash scripts or Agent calls",
|
|
436
|
+
userActionLabel: "Skills",
|
|
437
|
+
agentCapable: true,
|
|
438
|
+
hasHooks: true,
|
|
439
|
+
cliFlag: "snow",
|
|
440
|
+
},
|
|
441
|
+
},
|
|
330
442
|
};
|
|
331
443
|
/**
|
|
332
444
|
* 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;AAuJH;;;;;;;;;;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,EA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OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CA6DnE;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,GACnB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAoBrB;AAED;;;GAGG;AACH,wBAAsB,0BAA0B,CAC9C,QAAQ,EAAE,cAAc,EACxB,eAAe,CAAC,EAAE,eAAe,GAChC,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC,CAyB7E"}
|
|
@@ -615,7 +615,6 @@ export async function downloadWithStrategy(templatePath, destDir, strategy, repo
|
|
|
615
615
|
try {
|
|
616
616
|
await withTimeout(downloadTemplate(gigetSource, {
|
|
617
617
|
dir: tempDir,
|
|
618
|
-
preferOffline: true,
|
|
619
618
|
}), TIMEOUTS.DOWNLOAD_MS, "Template download");
|
|
620
619
|
// Download succeeded — only now is it safe to replace the old dir.
|
|
621
620
|
// copyMissing into a freshly removed dir copies everything, and works
|
|
@@ -642,7 +641,6 @@ export async function downloadWithStrategy(templatePath, destDir, strategy, repo
|
|
|
642
641
|
try {
|
|
643
642
|
await withTimeout(downloadTemplate(gigetSource, {
|
|
644
643
|
dir: tempDir,
|
|
645
|
-
preferOffline: true,
|
|
646
644
|
}), TIMEOUTS.DOWNLOAD_MS, "Template download");
|
|
647
645
|
await copyMissing(tempDir, destDir);
|
|
648
646
|
}
|
|
@@ -677,7 +675,6 @@ export async function downloadWithStrategy(templatePath, destDir, strategy, repo
|
|
|
677
675
|
try {
|
|
678
676
|
await withTimeout(downloadTemplate(gigetSource, {
|
|
679
677
|
dir: destDir,
|
|
680
|
-
preferOffline: true,
|
|
681
678
|
}), TIMEOUTS.DOWNLOAD_MS, "Template download");
|
|
682
679
|
}
|
|
683
680
|
catch (error) {
|