@mindfoldhq/trellis 0.5.0-beta.13 → 0.5.0-beta.15
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 +5 -5
- package/dist/cli/index.js +1 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/init.d.ts +1 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +24 -20
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +15 -12
- package/dist/commands/update.js.map +1 -1
- package/dist/configurators/claude.js +1 -1
- package/dist/configurators/claude.js.map +1 -1
- package/dist/configurators/codebuddy.js +1 -1
- package/dist/configurators/codebuddy.js.map +1 -1
- package/dist/configurators/codex.d.ts.map +1 -1
- package/dist/configurators/codex.js +3 -6
- package/dist/configurators/codex.js.map +1 -1
- package/dist/configurators/copilot.d.ts.map +1 -1
- package/dist/configurators/copilot.js +4 -11
- package/dist/configurators/copilot.js.map +1 -1
- package/dist/configurators/cursor.js +1 -1
- package/dist/configurators/cursor.js.map +1 -1
- package/dist/configurators/droid.js +1 -1
- package/dist/configurators/droid.js.map +1 -1
- package/dist/configurators/gemini.d.ts.map +1 -1
- package/dist/configurators/gemini.js +1 -3
- package/dist/configurators/gemini.js.map +1 -1
- package/dist/configurators/index.d.ts.map +1 -1
- package/dist/configurators/index.js +24 -38
- package/dist/configurators/index.js.map +1 -1
- package/dist/configurators/kiro.js +1 -1
- package/dist/configurators/kiro.js.map +1 -1
- package/dist/configurators/pi.d.ts +3 -0
- package/dist/configurators/pi.d.ts.map +1 -0
- package/dist/configurators/pi.js +39 -0
- package/dist/configurators/pi.js.map +1 -0
- package/dist/configurators/qoder.d.ts.map +1 -1
- package/dist/configurators/qoder.js +1 -3
- package/dist/configurators/qoder.js.map +1 -1
- package/dist/configurators/shared.d.ts +2 -4
- package/dist/configurators/shared.d.ts.map +1 -1
- package/dist/configurators/shared.js +6 -9
- package/dist/configurators/shared.js.map +1 -1
- package/dist/migrations/manifests/0.5.0-beta.14.json +9 -0
- package/dist/migrations/manifests/0.5.0-beta.15.json +126 -0
- package/dist/templates/claude/agents/trellis-research.md +1 -1
- package/dist/templates/claude/settings.json +0 -4
- package/dist/templates/codebuddy/agents/trellis-research.md +1 -1
- package/dist/templates/codex/agents/trellis-check.toml +0 -16
- package/dist/templates/codex/agents/trellis-implement.toml +0 -16
- package/dist/templates/codex/agents/trellis-research.toml +3 -2
- package/dist/templates/codex/hooks/session-start.py +82 -22
- package/dist/templates/codex/skills/start/SKILL.md +1 -1
- package/dist/templates/copilot/hooks/session-start.py +84 -26
- package/dist/templates/copilot/prompts/start.prompt.md +1 -1
- package/dist/templates/cursor/agents/trellis-check.md +1 -1
- package/dist/templates/cursor/agents/trellis-implement.md +1 -1
- package/dist/templates/cursor/agents/trellis-research.md +2 -2
- package/dist/templates/cursor/hooks.json +7 -1
- package/dist/templates/droid/droids/trellis-research.md +1 -1
- package/dist/templates/extract.d.ts +6 -0
- package/dist/templates/extract.d.ts.map +1 -1
- package/dist/templates/extract.js +14 -0
- package/dist/templates/extract.js.map +1 -1
- package/dist/templates/gemini/agents/trellis-research.md +1 -1
- package/dist/templates/kiro/agents/trellis-research.json +1 -1
- package/dist/templates/markdown/agents.md +11 -12
- package/dist/templates/markdown/gitignore.txt +3 -0
- package/dist/templates/opencode/agents/trellis-check.md +1 -1
- package/dist/templates/opencode/agents/trellis-implement.md +1 -1
- package/dist/templates/opencode/agents/trellis-research.md +2 -2
- package/dist/templates/opencode/lib/trellis-context.js +100 -13
- package/dist/templates/opencode/plugins/inject-subagent-context.js +54 -4
- package/dist/templates/opencode/plugins/inject-workflow-state.js +50 -23
- package/dist/templates/opencode/plugins/session-start.js +46 -21
- package/dist/templates/pi/agents/trellis-check.md +28 -0
- package/dist/templates/pi/agents/trellis-implement.md +33 -0
- package/dist/templates/pi/agents/trellis-research.md +25 -0
- package/dist/templates/pi/extensions/trellis/index.ts.txt +549 -0
- package/dist/templates/pi/index.d.ts +5 -0
- package/dist/templates/pi/index.d.ts.map +1 -0
- package/dist/templates/pi/index.js +12 -0
- package/dist/templates/pi/index.js.map +1 -0
- package/dist/templates/pi/settings.json +12 -0
- package/dist/templates/qoder/agents/trellis-research.md +1 -1
- package/dist/templates/shared-hooks/index.d.ts +31 -0
- package/dist/templates/shared-hooks/index.d.ts.map +1 -1
- package/dist/templates/shared-hooks/index.js +59 -0
- package/dist/templates/shared-hooks/index.js.map +1 -1
- package/dist/templates/shared-hooks/inject-shell-session-context.py +180 -0
- package/dist/templates/shared-hooks/inject-subagent-context.py +128 -26
- package/dist/templates/shared-hooks/inject-workflow-state.py +101 -61
- package/dist/templates/shared-hooks/session-start.py +151 -28
- package/dist/templates/trellis/gitignore.txt +3 -0
- package/dist/templates/trellis/index.d.ts +1 -0
- package/dist/templates/trellis/index.d.ts.map +1 -1
- package/dist/templates/trellis/index.js +2 -0
- package/dist/templates/trellis/index.js.map +1 -1
- package/dist/templates/trellis/scripts/common/__init__.py +8 -0
- package/dist/templates/trellis/scripts/common/active_task.py +593 -0
- package/dist/templates/trellis/scripts/common/cli_adapter.py +43 -8
- package/dist/templates/trellis/scripts/common/paths.py +61 -58
- package/dist/templates/trellis/scripts/common/session_context.py +12 -0
- package/dist/templates/trellis/scripts/common/task_store.py +4 -6
- package/dist/templates/trellis/scripts/task.py +56 -14
- package/dist/templates/trellis/workflow.md +31 -26
- package/dist/types/ai-tools.d.ts +3 -3
- package/dist/types/ai-tools.d.ts.map +1 -1
- package/dist/types/ai-tools.js +16 -0
- package/dist/types/ai-tools.js.map +1 -1
- package/dist/utils/template-fetcher.d.ts +22 -6
- package/dist/utils/template-fetcher.d.ts.map +1 -1
- package/dist/utils/template-fetcher.js +405 -27
- package/dist/utils/template-fetcher.js.map +1 -1
- package/dist/utils/template-hash.d.ts.map +1 -1
- package/dist/utils/template-hash.js +3 -2
- package/dist/utils/template-hash.js.map +1 -1
- package/package.json +1 -1
- package/dist/templates/shared-hooks/statusline.py +0 -218
|
@@ -44,8 +44,9 @@ Every task has its own directory under `.trellis/tasks/{MM-DD-name}/` holding `p
|
|
|
44
44
|
```bash
|
|
45
45
|
# Task lifecycle
|
|
46
46
|
python3 ./.trellis/scripts/task.py create "<title>" [--slug <name>] [--parent <dir>]
|
|
47
|
-
python3 ./.trellis/scripts/task.py start <name> # set
|
|
48
|
-
python3 ./.trellis/scripts/task.py
|
|
47
|
+
python3 ./.trellis/scripts/task.py start <name> # set active task (session-scoped when available)
|
|
48
|
+
python3 ./.trellis/scripts/task.py current --source # show active task and source
|
|
49
|
+
python3 ./.trellis/scripts/task.py finish # clear active task (triggers after_finish hooks)
|
|
49
50
|
python3 ./.trellis/scripts/task.py archive <name> # move to archive/{year-month}/
|
|
50
51
|
python3 ./.trellis/scripts/task.py list [--mine] [--status <s>]
|
|
51
52
|
python3 ./.trellis/scripts/task.py list-archive
|
|
@@ -72,7 +73,7 @@ python3 ./.trellis/scripts/task.py create-pr [name] [--dry-run]
|
|
|
72
73
|
|
|
73
74
|
> Run `python3 ./.trellis/scripts/task.py --help` to see the authoritative, up-to-date list.
|
|
74
75
|
|
|
75
|
-
**Current-task mechanism**: `task.py start` writes the task path into `.trellis/.
|
|
76
|
+
**Current-task mechanism**: `task.py start` writes the task path through the active-task resolver into session/window-scoped runtime state under `.trellis/.runtime/sessions/`. If no context key is available from hook input, `TRELLIS_CONTEXT_ID`, or a platform-native session environment variable, there is no active task and `task.py start` fails with a session identity hint. `task.py finish` deletes the current session file. `task.py archive <task>` also deletes any runtime session files that still point at the archived task.
|
|
76
77
|
|
|
77
78
|
### Workspace System
|
|
78
79
|
|
|
@@ -88,7 +89,7 @@ python3 ./.trellis/scripts/add_session.py --title "Title" --commit "hash" --summ
|
|
|
88
89
|
### Context Script
|
|
89
90
|
|
|
90
91
|
```bash
|
|
91
|
-
python3 ./.trellis/scripts/get_context.py # full session
|
|
92
|
+
python3 ./.trellis/scripts/get_context.py # full session runtime
|
|
92
93
|
python3 ./.trellis/scripts/get_context.py --mode packages # available packages + spec layers
|
|
93
94
|
python3 ./.trellis/scripts/get_context.py --mode phase --step <X.Y> # detailed guide for a workflow step
|
|
94
95
|
```
|
|
@@ -107,7 +108,7 @@ Phase 3: Finish → distill lessons + wrap-up
|
|
|
107
108
|
- 1.0 Create task `[required · once]`
|
|
108
109
|
- 1.1 Requirement exploration `[required · repeatable]`
|
|
109
110
|
- 1.2 Research `[optional · repeatable]`
|
|
110
|
-
- 1.3 Configure context `[required · once]` — Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid
|
|
111
|
+
- 1.3 Configure context `[required · once]` — Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi
|
|
111
112
|
- 1.4 Completion criteria
|
|
112
113
|
|
|
113
114
|
### Phase 2: Execute
|
|
@@ -132,7 +133,7 @@ Phase 3: Finish → distill lessons + wrap-up
|
|
|
132
133
|
|
|
133
134
|
When a user request matches one of these intents, load the corresponding skill (or dispatch the corresponding sub-agent) first — do not skip skills.
|
|
134
135
|
|
|
135
|
-
[Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid]
|
|
136
|
+
[Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi]
|
|
136
137
|
|
|
137
138
|
| User intent | Route |
|
|
138
139
|
|---|---|
|
|
@@ -144,7 +145,7 @@ When a user request matches one of these intents, load the corresponding skill (
|
|
|
144
145
|
|
|
145
146
|
**Why `trellis-before-dev` is NOT in this table:** you are not the one writing code — the `trellis-implement` sub-agent is. Sub-agent platforms get spec context via `implement.jsonl` injection / prelude, not via the main thread loading `trellis-before-dev`.
|
|
146
147
|
|
|
147
|
-
[/Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid]
|
|
148
|
+
[/Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi]
|
|
148
149
|
|
|
149
150
|
[Kilo, Antigravity, Windsurf]
|
|
150
151
|
|
|
@@ -160,7 +161,7 @@ When a user request matches one of these intents, load the corresponding skill (
|
|
|
160
161
|
|
|
161
162
|
### DO NOT skip skills
|
|
162
163
|
|
|
163
|
-
[Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid]
|
|
164
|
+
[Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi]
|
|
164
165
|
|
|
165
166
|
| What you're thinking | Why it's wrong |
|
|
166
167
|
|---|---|
|
|
@@ -169,7 +170,7 @@ When a user request matches one of these intents, load the corresponding skill (
|
|
|
169
170
|
| "I already know the spec" | The spec may have been updated since you last read it; the sub-agent gets the fresh copy, you may not |
|
|
170
171
|
| "Code first, check later" | `trellis-check` surfaces issues you won't notice yourself; earlier is cheaper |
|
|
171
172
|
|
|
172
|
-
[/Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid]
|
|
173
|
+
[/Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi]
|
|
173
174
|
|
|
174
175
|
[Kilo, Antigravity, Windsurf]
|
|
175
176
|
|
|
@@ -206,7 +207,7 @@ python3 ./.trellis/scripts/task.py create "<task title>" --slug <name>
|
|
|
206
207
|
python3 ./.trellis/scripts/task.py start <task-dir>
|
|
207
208
|
```
|
|
208
209
|
|
|
209
|
-
Skip when
|
|
210
|
+
Skip when `python3 ./.trellis/scripts/task.py current --source` already points to a task.
|
|
210
211
|
|
|
211
212
|
#### 1.1 Requirement exploration `[required · repeatable]`
|
|
212
213
|
|
|
@@ -224,7 +225,7 @@ Return to this step whenever requirements change and revise `prd.md`.
|
|
|
224
225
|
|
|
225
226
|
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.
|
|
226
227
|
|
|
227
|
-
[Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid]
|
|
228
|
+
[Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi]
|
|
228
229
|
|
|
229
230
|
Spawn the research sub-agent:
|
|
230
231
|
|
|
@@ -232,7 +233,7 @@ Spawn the research sub-agent:
|
|
|
232
233
|
- **Task description**: Research <specific question>
|
|
233
234
|
- **Key requirement**: Research output MUST be persisted to `{TASK_DIR}/research/`
|
|
234
235
|
|
|
235
|
-
[/Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid]
|
|
236
|
+
[/Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi]
|
|
236
237
|
|
|
237
238
|
[Kilo, Antigravity, Windsurf]
|
|
238
239
|
|
|
@@ -251,7 +252,7 @@ Brainstorm and research can interleave freely — pause to research a technical
|
|
|
251
252
|
|
|
252
253
|
#### 1.3 Configure context `[required · once]`
|
|
253
254
|
|
|
254
|
-
[Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid]
|
|
255
|
+
[Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi]
|
|
255
256
|
|
|
256
257
|
Curate `implement.jsonl` and `check.jsonl` so the Phase 2 sub-agents get the right spec context. These files were seeded on `task create` with a single self-describing `_example` line; your job here is to fill in real entries.
|
|
257
258
|
|
|
@@ -292,7 +293,7 @@ Delete the seed `_example` line once real entries exist (optional — it's skipp
|
|
|
292
293
|
|
|
293
294
|
Skip when: `implement.jsonl` has agent-curated entries (the seed row alone doesn't count).
|
|
294
295
|
|
|
295
|
-
[/Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid]
|
|
296
|
+
[/Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi]
|
|
296
297
|
|
|
297
298
|
[Kilo, Antigravity, Windsurf]
|
|
298
299
|
|
|
@@ -309,11 +310,11 @@ Skip this step. Context is loaded directly by the `trellis-before-dev` skill in
|
|
|
309
310
|
| `research/` has artifacts (complex tasks) | recommended |
|
|
310
311
|
| `info.md` technical design (complex tasks) | optional |
|
|
311
312
|
|
|
312
|
-
[Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid]
|
|
313
|
+
[Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi]
|
|
313
314
|
|
|
314
315
|
| `implement.jsonl` has agent-curated entries (not just the seed row) | ✅ |
|
|
315
316
|
|
|
316
|
-
[/Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid]
|
|
317
|
+
[/Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi]
|
|
317
318
|
|
|
318
319
|
---
|
|
319
320
|
|
|
@@ -323,7 +324,7 @@ Goal: turn the prd into code that passes quality checks.
|
|
|
323
324
|
|
|
324
325
|
#### 2.1 Implement `[required · repeatable]`
|
|
325
326
|
|
|
326
|
-
[Claude Code, Cursor, OpenCode, Gemini, Qoder, CodeBuddy, Copilot, Droid]
|
|
327
|
+
[Claude Code, Cursor, OpenCode, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi]
|
|
327
328
|
|
|
328
329
|
Spawn the implement sub-agent:
|
|
329
330
|
|
|
@@ -334,7 +335,7 @@ The platform hook/plugin auto-handles:
|
|
|
334
335
|
- Reads `implement.jsonl` and injects the referenced spec files into the agent prompt
|
|
335
336
|
- Injects prd.md content
|
|
336
337
|
|
|
337
|
-
[/Claude Code, Cursor, OpenCode, Gemini, Qoder, CodeBuddy, Copilot, Droid]
|
|
338
|
+
[/Claude Code, Cursor, OpenCode, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi]
|
|
338
339
|
|
|
339
340
|
[Codex]
|
|
340
341
|
|
|
@@ -344,7 +345,7 @@ Spawn the implement sub-agent:
|
|
|
344
345
|
- **Task description**: Implement the requirements per prd.md, consulting materials under `{TASK_DIR}/research/`; finish by running project lint and type-check
|
|
345
346
|
|
|
346
347
|
The Codex sub-agent definition auto-handles the context load requirement:
|
|
347
|
-
-
|
|
348
|
+
- Resolves the active task with `task.py current --source`, then reads `prd.md` and `info.md` if present
|
|
348
349
|
- Reads `implement.jsonl` and requires the agent to load each referenced spec file before coding
|
|
349
350
|
|
|
350
351
|
[/Codex]
|
|
@@ -374,7 +375,7 @@ The platform prelude auto-handles the context load requirement:
|
|
|
374
375
|
|
|
375
376
|
#### 2.2 Quality check `[required · repeatable]`
|
|
376
377
|
|
|
377
|
-
[Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid]
|
|
378
|
+
[Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi]
|
|
378
379
|
|
|
379
380
|
Spawn the check sub-agent:
|
|
380
381
|
|
|
@@ -386,7 +387,7 @@ The check agent's job:
|
|
|
386
387
|
- Auto-fix issues it finds
|
|
387
388
|
- Run lint and typecheck to verify
|
|
388
389
|
|
|
389
|
-
[/Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid]
|
|
390
|
+
[/Claude Code, Cursor, OpenCode, Codex, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi]
|
|
390
391
|
|
|
391
392
|
[Kilo, Antigravity, Windsurf]
|
|
392
393
|
|
|
@@ -458,10 +459,11 @@ After the above, remind the user they can run `/finish-work` to wrap up (archive
|
|
|
458
459
|
|
|
459
460
|
[workflow-state:no_task]
|
|
460
461
|
No active task.
|
|
461
|
-
Trigger words in the user message that
|
|
462
|
-
Task is NOT required
|
|
463
|
-
When in doubt:
|
|
462
|
+
Trigger words in the user message that suggest creating a task: 重构 / 抽成 / 独立 / 分发 / 拆出来 / 搞一个 / 做成 / 接入 / 集成 / refactor / rewrite / extract / productize / publish / build X / design Y.
|
|
463
|
+
Task is NOT required if ALL three hold: (a) zero file writes this turn, (b) answer fits in one reply with no multi-round plan, (c) no research beyond reading 1-2 repo files.
|
|
464
|
+
When in doubt and none of the override phrases below apply: prefer creating a task — over-tasking is cheap; under-tasking leaks plans and research into main context.
|
|
464
465
|
Flow: load `trellis-brainstorm` skill → it creates the task via `python3 ./.trellis/scripts/task.py create` and drives requirements Q&A. For research-heavy work (tool comparison, docs, cross-platform survey), spawn `trellis-research` sub-agents via Task tool — NEVER do 3+ inline WebFetch/WebSearch/`gh api` calls in the main conversation.
|
|
466
|
+
User override (per-turn escape hatch): if the user's CURRENT message contains an explicit opt-out phrase ("跳过 trellis" / "别走流程" / "小修一下" / "直接改" / "先别建任务" / "skip trellis" / "no task" / "just do it" / "don't create a task"), honor it for this turn — briefly acknowledge ("好,本轮跳过 trellis 流程"), then proceed without creating a task. The override is per-turn only and does not carry forward; do NOT invent an override the user did not say.
|
|
465
467
|
[/workflow-state:no_task]
|
|
466
468
|
|
|
467
469
|
[workflow-state:planning]
|
|
@@ -471,9 +473,12 @@ Research belongs in `{task_dir}/research/*.md`, written by `trellis-research` su
|
|
|
471
473
|
|
|
472
474
|
[workflow-state:in_progress]
|
|
473
475
|
Flow: trellis-implement → trellis-check → trellis-update-spec → finish
|
|
474
|
-
|
|
476
|
+
Next required action: inspect conversation history + git status, then execute the next uncompleted step in that sequence.
|
|
477
|
+
For agent-capable platforms, the default is to dispatch `trellis-implement` for implementation and `trellis-check` before reporting completion — do not edit code in the main session by default.
|
|
478
|
+
Use the exact Trellis agent type names when spawning sub-agents: `trellis-implement`, `trellis-check`, or `trellis-research`. Generic/default/generalPurpose sub-agents do not receive `implement.jsonl` / `check.jsonl` injection.
|
|
479
|
+
User override (per-turn escape hatch): if the user's CURRENT message explicitly tells the main session to handle it directly ("你直接改" / "别派 sub-agent" / "main session 写就行" / "do it inline" / "不用 sub-agent"), honor it for this turn and edit code directly. Per-turn only; do not carry forward; do NOT invent an override the user did not say.
|
|
475
480
|
[/workflow-state:in_progress]
|
|
476
481
|
|
|
477
482
|
[workflow-state:completed]
|
|
478
|
-
User commits changes; then run task.py archive.
|
|
483
|
+
User commits changes; then run task.py finish and task.py archive. If archive is run directly, it still deletes runtime session files that point at the archived task.
|
|
479
484
|
[/workflow-state:completed]
|
package/dist/types/ai-tools.d.ts
CHANGED
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* Supported AI coding tools
|
|
8
8
|
*/
|
|
9
|
-
export type AITool = "claude-code" | "cursor" | "opencode" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "windsurf" | "qoder" | "codebuddy" | "copilot" | "droid";
|
|
9
|
+
export type AITool = "claude-code" | "cursor" | "opencode" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "windsurf" | "qoder" | "codebuddy" | "copilot" | "droid" | "pi";
|
|
10
10
|
/**
|
|
11
11
|
* Template directory categories
|
|
12
12
|
*/
|
|
13
|
-
export type TemplateDir = "common" | "claude" | "cursor" | "opencode" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "windsurf" | "qoder" | "codebuddy" | "copilot" | "droid";
|
|
13
|
+
export type TemplateDir = "common" | "claude" | "cursor" | "opencode" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "windsurf" | "qoder" | "codebuddy" | "copilot" | "droid" | "pi";
|
|
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" | "windsurf" | "qoder" | "codebuddy" | "copilot" | "droid";
|
|
18
|
+
export type CliFlag = "claude" | "cursor" | "opencode" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "windsurf" | "qoder" | "codebuddy" | "copilot" | "droid" | "pi";
|
|
19
19
|
/**
|
|
20
20
|
* Template context for placeholder resolution.
|
|
21
21
|
* Controls how common templates are rendered per platform.
|
|
@@ -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,UAAU,GACV,OAAO,GACP,WAAW,GACX,SAAS,GACT,OAAO,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,UAAU,GACV,OAAO,GACP,WAAW,GACX,SAAS,GACT,OAAO,GACP,IAAI,CAAC;AAET;;GAEG;AACH,MAAM,MAAM,WAAW,GACnB,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,aAAa,GACb,UAAU,GACV,OAAO,GACP,WAAW,GACX,SAAS,GACT,OAAO,GACP,IAAI,CAAC;AAET;;;GAGG;AACH,MAAM,MAAM,OAAO,GACf,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,aAAa,GACb,UAAU,GACV,OAA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AAe,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,EAAE,CAE3D"}
|
package/dist/types/ai-tools.js
CHANGED
|
@@ -233,6 +233,22 @@ export const AI_TOOLS = {
|
|
|
233
233
|
cliFlag: "droid",
|
|
234
234
|
},
|
|
235
235
|
},
|
|
236
|
+
pi: {
|
|
237
|
+
name: "Pi Agent",
|
|
238
|
+
templateDirs: ["common", "pi"],
|
|
239
|
+
configDir: ".pi",
|
|
240
|
+
cliFlag: "pi",
|
|
241
|
+
defaultChecked: false,
|
|
242
|
+
hasPythonHooks: false,
|
|
243
|
+
templateContext: {
|
|
244
|
+
cmdRefPrefix: "/trellis-",
|
|
245
|
+
executorAI: "Bash scripts or tool calls",
|
|
246
|
+
userActionLabel: "Slash commands",
|
|
247
|
+
agentCapable: true,
|
|
248
|
+
hasHooks: true,
|
|
249
|
+
cliFlag: "pi",
|
|
250
|
+
},
|
|
251
|
+
},
|
|
236
252
|
};
|
|
237
253
|
/**
|
|
238
254
|
* 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;AAsHH;;;;;;;;;;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,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C,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,IAAI;SACd;KACF;CACF,CAAC;AAEF;;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"}
|
|
@@ -21,6 +21,19 @@ export interface SpecTemplate {
|
|
|
21
21
|
tags?: string[];
|
|
22
22
|
}
|
|
23
23
|
export type TemplateStrategy = "skip" | "overwrite" | "append";
|
|
24
|
+
export type RegistryBackend = "http" | "git";
|
|
25
|
+
export type RegistrySourceKind = "prefixed" | "https" | "ssh";
|
|
26
|
+
export type RegistryErrorKind = "auth" | "git-unavailable" | "invalid-json" | "network" | "not-found" | "path-not-found" | "ref-not-found" | "unknown";
|
|
27
|
+
export declare class RegistryBackendError extends Error {
|
|
28
|
+
readonly kind: RegistryErrorKind;
|
|
29
|
+
constructor(kind: RegistryErrorKind, message: string);
|
|
30
|
+
}
|
|
31
|
+
export interface RegistryProbeResult {
|
|
32
|
+
templates: SpecTemplate[];
|
|
33
|
+
isNotFound: boolean;
|
|
34
|
+
backend: RegistryBackend;
|
|
35
|
+
error?: RegistryBackendError;
|
|
36
|
+
}
|
|
24
37
|
export interface RegistrySource {
|
|
25
38
|
/** Original provider prefix (e.g., "gh", "gitlab", "bitbucket") */
|
|
26
39
|
provider: string;
|
|
@@ -36,6 +49,12 @@ export interface RegistrySource {
|
|
|
36
49
|
gigetSource: string;
|
|
37
50
|
/** Custom host for self-hosted instances (e.g., "git.company.com"). Undefined for public providers. */
|
|
38
51
|
host?: string;
|
|
52
|
+
/** Git remote URL used by git-backed registry access. */
|
|
53
|
+
gitUrl: string;
|
|
54
|
+
/** Whether registry access should prefer Git over anonymous raw HTTP. */
|
|
55
|
+
preferGit: boolean;
|
|
56
|
+
/** Input family used to derive credential behavior and clone URL shape. */
|
|
57
|
+
sourceKind: RegistrySourceKind;
|
|
39
58
|
}
|
|
40
59
|
export declare const SUPPORTED_PROVIDERS: string[];
|
|
41
60
|
/**
|
|
@@ -81,10 +100,7 @@ export declare function fetchTemplateIndex(indexUrl?: string): Promise<SpecTempl
|
|
|
81
100
|
* - Other HTTP error / network timeout → { templates: [], isNotFound: false }
|
|
82
101
|
* - 200 + valid JSON → { templates: [...], isNotFound: false }
|
|
83
102
|
*/
|
|
84
|
-
export declare function probeRegistryIndex(indexUrl: string): Promise<
|
|
85
|
-
templates: SpecTemplate[];
|
|
86
|
-
isNotFound: boolean;
|
|
87
|
-
}>;
|
|
103
|
+
export declare function probeRegistryIndex(indexUrl: string, registry?: RegistrySource): Promise<RegistryProbeResult>;
|
|
88
104
|
/**
|
|
89
105
|
* Find a template by ID from the index
|
|
90
106
|
*/
|
|
@@ -117,7 +133,7 @@ export declare function downloadWithStrategy(templatePath: string, destDir: stri
|
|
|
117
133
|
* repo as the giget source instead of the default TEMPLATE_REPO.
|
|
118
134
|
* @returns Object with success status and message
|
|
119
135
|
*/
|
|
120
|
-
export declare function downloadTemplateById(cwd: string, templateId: string, strategy: TemplateStrategy, template?: SpecTemplate, registry?: RegistrySource, destDirOverride?: string): Promise<{
|
|
136
|
+
export declare function downloadTemplateById(cwd: string, templateId: string, strategy: TemplateStrategy, template?: SpecTemplate, registry?: RegistrySource, destDirOverride?: string, registryBackend?: RegistryBackend): Promise<{
|
|
121
137
|
success: boolean;
|
|
122
138
|
message: string;
|
|
123
139
|
skipped?: boolean;
|
|
@@ -126,7 +142,7 @@ export declare function downloadTemplateById(cwd: string, templateId: string, st
|
|
|
126
142
|
* Download a registry source directly to the spec directory (no index.json).
|
|
127
143
|
* Used when the registry source points to a spec directory, not a marketplace.
|
|
128
144
|
*/
|
|
129
|
-
export declare function downloadRegistryDirect(cwd: string, registry: RegistrySource, strategy: TemplateStrategy, destDirOverride?: string): Promise<{
|
|
145
|
+
export declare function downloadRegistryDirect(cwd: string, registry: RegistrySource, strategy: TemplateStrategy, destDirOverride?: string, registryBackend?: RegistryBackend): Promise<{
|
|
130
146
|
success: boolean;
|
|
131
147
|
message: string;
|
|
132
148
|
skipped?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-fetcher.d.ts","sourceRoot":"","sources":["../../src/utils/template-fetcher.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAWH,eAAO,MAAM,kBAAkB,8EAC8C,CAAC;AAY9E,+CAA+C;AAC/C,eAAO,MAAM,QAAQ;IACnB,mDAAmD;;IAEnD,wDAAwD;;CAEhD,CAAC;AAMX,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAOD,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"template-fetcher.d.ts","sourceRoot":"","sources":["../../src/utils/template-fetc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