@mindfoldhq/trellis 0.6.3 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +1 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/channel/messages.js +1 -1
- package/dist/commands/channel/supervisor.d.ts.map +1 -1
- package/dist/commands/channel/supervisor.js +34 -2
- package/dist/commands/channel/supervisor.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.map +1 -1
- package/dist/commands/uninstall.d.ts.map +1 -1
- package/dist/commands/uninstall.js +1 -0
- package/dist/commands/uninstall.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +23 -11
- package/dist/commands/update.js.map +1 -1
- package/dist/configurators/codex.d.ts.map +1 -1
- package/dist/configurators/codex.js +1 -15
- package/dist/configurators/codex.js.map +1 -1
- package/dist/configurators/index.d.ts.map +1 -1
- package/dist/configurators/index.js +25 -9
- package/dist/configurators/index.js.map +1 -1
- package/dist/configurators/kiro.d.ts +4 -2
- package/dist/configurators/kiro.d.ts.map +1 -1
- package/dist/configurators/kiro.js +12 -3
- package/dist/configurators/kiro.js.map +1 -1
- package/dist/configurators/pi.d.ts.map +1 -1
- package/dist/configurators/pi.js +14 -4
- package/dist/configurators/pi.js.map +1 -1
- package/dist/configurators/shared.d.ts +0 -19
- package/dist/configurators/shared.d.ts.map +1 -1
- package/dist/configurators/shared.js +12 -32
- package/dist/configurators/shared.js.map +1 -1
- package/dist/configurators/trae.d.ts +17 -0
- package/dist/configurators/trae.d.ts.map +1 -0
- package/dist/configurators/trae.js +42 -0
- package/dist/configurators/trae.js.map +1 -0
- package/dist/configurators/zcode.js +3 -3
- package/dist/configurators/zcode.js.map +1 -1
- package/dist/migrations/manifests/0.6.4.json +9 -0
- package/dist/migrations/manifests/0.6.5.json +9 -0
- package/dist/templates/codex/skills/brainstorm/SKILL.md +19 -1
- 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/local-architecture/generated-files.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/hooks-and-settings.md +1 -0
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md +2 -2
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md +2 -0
- package/dist/templates/common/skills/brainstorm.md +19 -1
- package/dist/templates/copilot/prompts/brainstorm.prompt.md +19 -1
- package/dist/templates/kiro/agents/trellis.json +34 -0
- package/dist/templates/kiro/hooks/trellis-workflow-state.kiro.hook +14 -0
- package/dist/templates/kiro/index.d.ts +16 -2
- package/dist/templates/kiro/index.d.ts.map +1 -1
- package/dist/templates/kiro/index.js +13 -3
- package/dist/templates/kiro/index.js.map +1 -1
- package/dist/templates/pi/agents/trellis-check.md +1 -1
- package/dist/templates/pi/agents/trellis-implement.md +1 -1
- package/dist/templates/pi/agents/trellis-research.md +1 -1
- package/dist/templates/pi/extensions/trellis/index.ts.txt +84 -8
- package/dist/templates/shared-hooks/index.d.ts +9 -3
- package/dist/templates/shared-hooks/index.d.ts.map +1 -1
- package/dist/templates/shared-hooks/index.js +14 -3
- package/dist/templates/shared-hooks/index.js.map +1 -1
- package/dist/templates/shared-hooks/inject-workflow-state.py +52 -7
- package/dist/templates/shared-hooks/session-start.py +13 -0
- package/dist/templates/trae/agents/trellis-check.md +108 -0
- package/dist/templates/trae/agents/trellis-implement.md +103 -0
- package/dist/templates/trae/agents/trellis-research.md +137 -0
- package/dist/templates/trae/hooks.json +27 -0
- package/dist/templates/trae/index.d.ts +15 -0
- package/dist/templates/trae/index.d.ts.map +1 -0
- package/dist/templates/trae/index.js +15 -0
- package/dist/templates/trae/index.js.map +1 -0
- package/dist/templates/trellis/scripts/common/active_task.py +2 -0
- package/dist/templates/trellis/scripts/common/cli_adapter.py +37 -11
- package/dist/templates/trellis/scripts/common/task_store.py +1 -0
- package/dist/templates/trellis/workflow.md +22 -20
- 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 +16 -0
- package/dist/types/ai-tools.js.map +1 -1
- package/package.json +2 -2
package/dist/configurators/pi.js
CHANGED
|
@@ -3,11 +3,21 @@ import { AI_TOOLS } from "../types/ai-tools.js";
|
|
|
3
3
|
import { ensureDir, writeFile } from "../utils/file-writer.js";
|
|
4
4
|
import { applyPullBasedPreludeMarkdown, collectSkillTemplates, replacePythonCommandLiterals, resolveCommands, resolveBundledSkills, resolvePlaceholders, resolveSkills, writeAgents, writeSkills, } from "./shared.js";
|
|
5
5
|
import { getAllAgents, getExtensionTemplate, getSettingsTemplate, } from "../templates/pi/index.js";
|
|
6
|
+
function resolvePiCommands() {
|
|
7
|
+
const ctx = AI_TOOLS.pi.templateContext;
|
|
8
|
+
const commands = resolveCommands(ctx);
|
|
9
|
+
if (commands.some((command) => command.name === "start"))
|
|
10
|
+
return commands;
|
|
11
|
+
// Pi has extension hooks, so the shared command resolver filters `start`.
|
|
12
|
+
// Keep a manual fallback because Pi's `session_start` event cannot mutate
|
|
13
|
+
// model context; the strong startup injection happens later at agent start.
|
|
14
|
+
const start = resolveCommands({ ...ctx, hasHooks: false }).find((command) => command.name === "start");
|
|
15
|
+
return start ? [start, ...commands] : commands;
|
|
16
|
+
}
|
|
6
17
|
export function collectPiTemplates() {
|
|
7
|
-
const config = AI_TOOLS.pi;
|
|
8
|
-
const ctx = config.templateContext;
|
|
9
18
|
const files = new Map();
|
|
10
|
-
|
|
19
|
+
const ctx = AI_TOOLS.pi.templateContext;
|
|
20
|
+
for (const command of resolvePiCommands()) {
|
|
11
21
|
files.set(`.pi/prompts/trellis-${command.name}.md`, command.content);
|
|
12
22
|
}
|
|
13
23
|
// Skills written under `.pi/skills/` (Pi-owned skill root). Pi can also
|
|
@@ -30,7 +40,7 @@ export async function configurePi(cwd) {
|
|
|
30
40
|
const ctx = config.templateContext;
|
|
31
41
|
const configRoot = path.join(cwd, config.configDir);
|
|
32
42
|
ensureDir(path.join(configRoot, "prompts"));
|
|
33
|
-
for (const command of
|
|
43
|
+
for (const command of resolvePiCommands()) {
|
|
34
44
|
await writeFile(path.join(configRoot, "prompts", `trellis-${command.name}.md`), command.content);
|
|
35
45
|
}
|
|
36
46
|
// See collectPiTemplates(): Pi keeps a private `.pi/skills/` root for now.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pi.js","sourceRoot":"","sources":["../../src/configurators/pi.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,6BAA6B,EAC7B,qBAAqB,EACrB,4BAA4B,EAC5B,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,WAAW,GACZ,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAElC,MAAM,
|
|
1
|
+
{"version":3,"file":"pi.js","sourceRoot":"","sources":["../../src/configurators/pi.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,6BAA6B,EAC7B,qBAAqB,EACrB,4BAA4B,EAC5B,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,WAAW,GACZ,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,0BAA0B,CAAC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Y,EAAE,CAAC,CAC9C,CAAC;IAEF,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC;IAC1D,MAAM,SAAS,CACb,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,CAAC,EAC1D,4BAA4B,CAAC,oBAAoB,EAAE,CAAC,CACrD,CAAC;IAEF,MAAM,QAAQ,GAAG,mBAAmB,EAAE,CAAC;IACvC,MAAM,SAAS,CACb,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC1C,mBAAmB,CAAC,QAAQ,CAAC,OAAO,CAAC,CACtC,CAAC;AACJ,CAAC"}
|
|
@@ -121,25 +121,6 @@ export declare function resolveSkillsNeutral(ctx: TemplateContext): ResolvedTemp
|
|
|
121
121
|
* files into `.agents/skills/`, so byte-identity isn't required there.
|
|
122
122
|
*/
|
|
123
123
|
export declare function resolveAllAsSkillsNeutral(ctx: TemplateContext): ResolvedTemplate[];
|
|
124
|
-
/**
|
|
125
|
-
* Codex needs a `trellis-start` skill in `.agents/skills/` so the
|
|
126
|
-
* `<trellis-bootstrap>` notice from `inject-workflow-state.py` resolves
|
|
127
|
-
* to an actual skill file (the bootstrap notice tells the AI to invoke
|
|
128
|
-
* `$trellis-start` once on the first `no_task` turn — added in 0.5.5
|
|
129
|
-
* after the Codex SessionStart hook was removed for de-recursion).
|
|
130
|
-
*
|
|
131
|
-
* Built from `common/commands/start.md` + skill frontmatter; renders
|
|
132
|
-
* neutrally so init and update produce byte-identical output. Returns
|
|
133
|
-
* `null` if the template is missing (defensive — should never happen).
|
|
134
|
-
*
|
|
135
|
-
* Used by both `configureCodex()` (init path, file write) and
|
|
136
|
-
* `collectPlatformTemplates.codex` (update path, manifest map). Both
|
|
137
|
-
* paths must agree, otherwise upgraded users miss the file (which broke
|
|
138
|
-
* 0.4.x → 0.5.5/0.5.6 upgrades — see #247-style symptom: AI reports
|
|
139
|
-
* "no .agents/skills/trellis-start/SKILL.md" because update only ran
|
|
140
|
-
* `collectTemplates` and never wrote the file).
|
|
141
|
-
*/
|
|
142
|
-
export declare function resolveCodexTrellisStartSkill(ctx: TemplateContext): ResolvedTemplate | null;
|
|
143
124
|
/**
|
|
144
125
|
* Resolve multi-file built-in skills.
|
|
145
126
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/configurators/shared.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAiBD,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAG1D;AAED,iEAAiE;AACjE,wBAAgB,0BAA0B,IAAI,IAAI,CAEjD;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,GACzB,MAAM,CAMR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CASpE;AA2CD,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,eAAe,GACxB,MAAM,CAoCR;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,eAAe,GACxB,MAAM,CAmCR;AA0BD;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GACd,MAAM,CAUR;AAaD,gFAAgF;AAChF,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,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|
|
|
222
222
|
/**
|
|
223
223
|
* Filter command templates based on platform capabilities.
|
|
224
224
|
*
|
|
225
|
-
* `start.md` is only
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
* would be
|
|
225
|
+
* `start.md` is stripped only on platforms that are BOTH `agentCapable` AND
|
|
226
|
+
* `hasHooks` — those platforms (Claude Code, Cursor, Kiro, Gemini, Qoder,
|
|
227
|
+
* CodeBuddy, Copilot, Droid, Pi) have a SessionStart-style hook that
|
|
228
|
+
* auto-injects the workflow overview, so a user-facing `start` would be
|
|
229
|
+
* redundant.
|
|
230
|
+
*
|
|
231
|
+
* `agentCapable && !hasHooks` platforms (Codex, ZCode, OpenCode, Reasonix)
|
|
232
|
+
* have no such hook (or use an out-of-band plugin), so they need the
|
|
233
|
+
* user-invocable `trellis-start` skill / `start.md` command as fallback.
|
|
234
|
+
* Agent-less platforms (Kilo, Antigravity, Devin) also keep `start` since
|
|
235
|
+
* they rely entirely on user-triggered workflows.
|
|
229
236
|
*/
|
|
230
237
|
function filterCommands(templates, ctx) {
|
|
231
|
-
if (ctx.agentCapable) {
|
|
238
|
+
if (ctx.agentCapable && ctx.hasHooks) {
|
|
232
239
|
return templates.filter((t) => t.name !== "start");
|
|
233
240
|
}
|
|
234
241
|
return templates;
|
|
@@ -302,33 +309,6 @@ export function resolveAllAsSkillsNeutral(ctx) {
|
|
|
302
309
|
content: wrapWithSkillFrontmatter(`trellis-${tmpl.name}`, resolvePlaceholdersNeutral(tmpl.content, ctx)),
|
|
303
310
|
}));
|
|
304
311
|
}
|
|
305
|
-
/**
|
|
306
|
-
* Codex needs a `trellis-start` skill in `.agents/skills/` so the
|
|
307
|
-
* `<trellis-bootstrap>` notice from `inject-workflow-state.py` resolves
|
|
308
|
-
* to an actual skill file (the bootstrap notice tells the AI to invoke
|
|
309
|
-
* `$trellis-start` once on the first `no_task` turn — added in 0.5.5
|
|
310
|
-
* after the Codex SessionStart hook was removed for de-recursion).
|
|
311
|
-
*
|
|
312
|
-
* Built from `common/commands/start.md` + skill frontmatter; renders
|
|
313
|
-
* neutrally so init and update produce byte-identical output. Returns
|
|
314
|
-
* `null` if the template is missing (defensive — should never happen).
|
|
315
|
-
*
|
|
316
|
-
* Used by both `configureCodex()` (init path, file write) and
|
|
317
|
-
* `collectPlatformTemplates.codex` (update path, manifest map). Both
|
|
318
|
-
* paths must agree, otherwise upgraded users miss the file (which broke
|
|
319
|
-
* 0.4.x → 0.5.5/0.5.6 upgrades — see #247-style symptom: AI reports
|
|
320
|
-
* "no .agents/skills/trellis-start/SKILL.md" because update only ran
|
|
321
|
-
* `collectTemplates` and never wrote the file).
|
|
322
|
-
*/
|
|
323
|
-
export function resolveCodexTrellisStartSkill(ctx) {
|
|
324
|
-
const startTemplate = getCommandTemplates().find((t) => t.name === "start");
|
|
325
|
-
if (!startTemplate)
|
|
326
|
-
return null;
|
|
327
|
-
return {
|
|
328
|
-
name: "trellis-start",
|
|
329
|
-
content: wrapWithSkillFrontmatter("trellis-start", resolvePlaceholdersNeutral(startTemplate.content, ctx)),
|
|
330
|
-
};
|
|
331
|
-
}
|
|
332
312
|
/**
|
|
333
313
|
* Resolve multi-file built-in skills.
|
|
334
314
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/configurators/shared.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAkBH;;;;;;;;;;;;GAYG;AACH,IAAI,qBAAqB,GAAkB,IAAI,CAAC;AAEhD,MAAM,UAAU,wBAAwB,CAAC,GAAW;IAClD,MAAM,OAAO,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;IAC3B,qBAAqB,GAAG,OAAO,IAAI,IAAI,CAAC;AAC1C,CAAC;AAED,iEAAiE;AACjE,MAAM,UAAU,0BAA0B;IACxC,qBAAqB,GAAG,IAAI,CAAC;AAC/B,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,2BAA2B,CACzC,QAA0B;IAE1B,IAAI,QA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C,CAAC;QACrC,IAAI,CAAC,CAAC;YAAE,OAAO,EAAE,GAAG,CAAC,EAAE,CAAC;QACxB,OAAO;YACL,GAAG,CAAC;YACJ,OAAO,EAAE,0BAA0B,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;SAClD,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configure Trae IDE (pull-based class-2 platform).
|
|
3
|
+
*
|
|
4
|
+
* Trae is a class-2 platform: hooks fire on SessionStart +
|
|
5
|
+
* UserPromptSubmit in the main session, but cannot inject sub-agent
|
|
6
|
+
* prompts. Sub-agents use a pull-based prelude to load context themselves.
|
|
7
|
+
*
|
|
8
|
+
* Directory structure created:
|
|
9
|
+
* .trae/
|
|
10
|
+
* ├── commands/ # Slash commands (trellis-*.md with frontmatter)
|
|
11
|
+
* ├── skills/ # Skill definitions
|
|
12
|
+
* ├── agents/ # Sub-agent definitions with pull-based prelude
|
|
13
|
+
* ├── hooks/ # Shared Python hook scripts
|
|
14
|
+
* └── hooks.json # Hook event registration
|
|
15
|
+
*/
|
|
16
|
+
export declare function configureTrae(cwd: string): Promise<void>;
|
|
17
|
+
//# sourceMappingURL=trae.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trae.d.ts","sourceRoot":"","sources":["../../src/configurators/trae.ts"],"names":[],"mappings":"AAgBA;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAsC9D"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { AI_TOOLS } from "../types/ai-tools.js";
|
|
3
|
+
import { ensureDir, writeFile } from "../utils/file-writer.js";
|
|
4
|
+
import { resolvePlaceholders, resolveCommands, resolveSkills, resolveBundledSkills, wrapWithCommandFrontmatter, writeSkills, writeAgents, writeSharedHooks, applyPullBasedPreludeMarkdown, } from "./shared.js";
|
|
5
|
+
import { getAllAgents, getSettingsTemplate } from "../templates/trae/index.js";
|
|
6
|
+
/**
|
|
7
|
+
* Configure Trae IDE (pull-based class-2 platform).
|
|
8
|
+
*
|
|
9
|
+
* Trae is a class-2 platform: hooks fire on SessionStart +
|
|
10
|
+
* UserPromptSubmit in the main session, but cannot inject sub-agent
|
|
11
|
+
* prompts. Sub-agents use a pull-based prelude to load context themselves.
|
|
12
|
+
*
|
|
13
|
+
* Directory structure created:
|
|
14
|
+
* .trae/
|
|
15
|
+
* ├── commands/ # Slash commands (trellis-*.md with frontmatter)
|
|
16
|
+
* ├── skills/ # Skill definitions
|
|
17
|
+
* ├── agents/ # Sub-agent definitions with pull-based prelude
|
|
18
|
+
* ├── hooks/ # Shared Python hook scripts
|
|
19
|
+
* └── hooks.json # Hook event registration
|
|
20
|
+
*/
|
|
21
|
+
export async function configureTrae(cwd) {
|
|
22
|
+
const config = AI_TOOLS.trae;
|
|
23
|
+
const ctx = config.templateContext;
|
|
24
|
+
const configRoot = path.join(cwd, config.configDir);
|
|
25
|
+
// 1. Commands — slash commands with frontmatter
|
|
26
|
+
const commandsDir = path.join(configRoot, "commands");
|
|
27
|
+
ensureDir(commandsDir);
|
|
28
|
+
for (const cmd of resolveCommands(ctx)) {
|
|
29
|
+
const name = `trellis-${cmd.name}`;
|
|
30
|
+
await writeFile(path.join(commandsDir, `${name}.md`), wrapWithCommandFrontmatter(name, cmd.content));
|
|
31
|
+
}
|
|
32
|
+
// 2. Skills
|
|
33
|
+
await writeSkills(path.join(configRoot, "skills"), resolveSkills(ctx), resolveBundledSkills(ctx));
|
|
34
|
+
// 3. Agents — with pull-based prelude (class-2 pattern)
|
|
35
|
+
await writeAgents(path.join(configRoot, "agents"), applyPullBasedPreludeMarkdown(getAllAgents()));
|
|
36
|
+
// 4. Shared hooks — Python scripts
|
|
37
|
+
await writeSharedHooks(path.join(configRoot, "hooks"), "trae");
|
|
38
|
+
// 5. Hook configuration — register hook events
|
|
39
|
+
const settings = getSettingsTemplate();
|
|
40
|
+
await writeFile(path.join(configRoot, settings.targetPath), resolvePlaceholders(settings.content));
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=trae.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trae.js","sourceRoot":"","sources":["../../src/configurators/trae.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,0BAA0B,EAC1B,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,6BAA6B,GAC9B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAE/E;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,GAAW;IAC7C,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC;IAC7B,MAAM,GAAG,GAAG,MAAM,CAAC,eAAe,CAAC;IACnC,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;IAEpD,gDAAgD;IAChD,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IACtD,SAAS,CAAC,WAAW,CAAC,CAAC;IACvB,KAAK,MAAM,GAAG,IAAI,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC;QACvC,MAAM,IAAI,GAAG,WAAW,GAAG,CAAC,IAAI,EAAE,CAAC;QACnC,MAAM,SAAS,CACb,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,KAAK,CAAC,EACpC,0BAA0B,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAC9C,CAAC;IACJ,CAAC;IAED,YAAY;IACZ,MAAM,WAAW,CACf,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,EAC/B,aAAa,CAAC,GAAG,CAAC,EAClB,oBAAoB,CAAC,GAAG,CAAC,CAC1B,CAAC;IAEF,wDAAwD;IACxD,MAAM,WAAW,CACf,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,EAC/B,6BAA6B,CAAC,YAAY,EAAE,CAAC,CAC9C,CAAC;IAEF,mCAAmC;IACnC,MAAM,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;IAE/D,+CAA+C;IAC/C,MAAM,QAAQ,GAAG,mBAAmB,EAAE,CAAC;IACvC,MAAM,SAAS,CACb,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC1C,mBAAmB,CAAC,QAAQ,CAAC,OAAO,CAAC,CACtC,CAAC;AACJ,CAAC"}
|
|
@@ -11,7 +11,7 @@ import path from "node:path";
|
|
|
11
11
|
import { AI_TOOLS } from "../types/ai-tools.js";
|
|
12
12
|
import { ensureDir, writeFile } from "../utils/file-writer.js";
|
|
13
13
|
import { getAllAgents } from "../templates/zcode/index.js";
|
|
14
|
-
import { collectSkillTemplates,
|
|
14
|
+
import { collectSkillTemplates, resolveSkillsNeutral, resolveBundledSkills, resolveCommands, writeSkills, writeAgents, applyPullBasedPreludeMarkdown, } from "./shared.js";
|
|
15
15
|
/**
|
|
16
16
|
* Collect all ZCode template files for `trellis update` diff tracking.
|
|
17
17
|
* Must stay in sync with `configureZcode`.
|
|
@@ -21,7 +21,7 @@ export function collectZcodeTemplates() {
|
|
|
21
21
|
const ctx = config.templateContext;
|
|
22
22
|
const files = new Map();
|
|
23
23
|
// 1. Shared skills → .agents/skills/ (byte-identical with Codex/Gemini)
|
|
24
|
-
for (const [filePath, content] of collectSkillTemplates(".agents/skills",
|
|
24
|
+
for (const [filePath, content] of collectSkillTemplates(".agents/skills", resolveSkillsNeutral(ctx), resolveBundledSkills(ctx))) {
|
|
25
25
|
files.set(filePath, content);
|
|
26
26
|
}
|
|
27
27
|
// 2. Commands → .zcode/commands/trellis/
|
|
@@ -41,7 +41,7 @@ export async function configureZcode(cwd) {
|
|
|
41
41
|
const config = AI_TOOLS.zcode;
|
|
42
42
|
const ctx = config.templateContext;
|
|
43
43
|
// 1. Shared skills → .agents/skills/
|
|
44
|
-
await writeSkills(path.join(cwd, ".agents", "skills"),
|
|
44
|
+
await writeSkills(path.join(cwd, ".agents", "skills"), resolveSkillsNeutral(ctx), resolveBundledSkills(ctx));
|
|
45
45
|
// 2. Commands → .zcode/commands/trellis/
|
|
46
46
|
const commandsDir = path.join(cwd, ".zcode", "commands", "trellis");
|
|
47
47
|
ensureDir(commandsDir);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zcode.js","sourceRoot":"","sources":["../../src/configurators/zcode.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EACL,qBAAqB,EACrB,
|
|
1
|
+
{"version":3,"file":"zcode.js","sourceRoot":"","sources":["../../src/configurators/zcode.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA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ACf,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,EAAE,QAAQ,CAAC,EACnC,oBAAoB,CAAC,GAAG,CAAC,EACzB,oBAAoB,CAAC,GAAG,CAAC,CAC1B,CAAC;IAEF,yCAAyC;IACzC,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;IACpE,SAAS,CAAC,WAAW,CAAC,CAAC;IACvB,KAAK,MAAM,GAAG,IAAI,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC;QACvC,MAAM,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,IAAI,KAAK,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACzE,CAAC;IAED,+DAA+D;IAC/D,MAAM,WAAW,CACf,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,EACzC,6BAA6B,CAAC,YAAY,EAAE,CAAC,CAC9C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.6.4",
|
|
3
|
+
"description": "Patch release: fixes Kiro main-session workflow injection (deterministic activation via userPromptSubmit + agentSpawn) and emits `trellis-start` on agentCapable && !hasHooks platforms (Codex, ZCode, OpenCode, Reasonix) by narrowing the filterCommands condition. Also extends `workflow.md` platform-matrix blocks to cover ZCode and Reasonix.",
|
|
4
|
+
"breaking": false,
|
|
5
|
+
"recommendMigrate": false,
|
|
6
|
+
"changelog": "**Bug Fixes:**\n- fix(configurators): emit `trellis-start` on `agentCapable && !hasHooks` platforms (Codex, ZCode, OpenCode, Reasonix). `filterCommands(ctx)` in `packages/cli/src/configurators/shared.ts` now strips `start` only when both `agentCapable` and `hasHooks` are true. Prior condition removed `start` from every agent-capable platform, leaving the four no-hook platforms without a way to load workflow context. Codex's one-off `resolveCodexTrellisStartSkill` helper and its two call sites are deleted; the standard `resolveAllAsSkillsNeutral` / `resolveCommands` paths now emit the skill / command naturally. Triggered by external user report: `trellis init --zcode` produced neither `/trellis:start` nor a `trellis-start` skill.\n- fix(workflow.md): add ZCode and Reasonix to the platform-matrix blocks they were missing from. 13 edit points in `packages/cli/src/templates/trellis/workflow.md`: B1/B3/B5/B7/B12 sub-agent dispatch blocks (Active Task Routing, Phase 1.2 Research, Phase 1.3 Configure context, Phase 1.5 Completion criteria, Phase 2.2 Quality check), B9 class-2 pull-based block (`[codex-sub-agent]` → `[codex-sub-agent, ZCode, Reasonix]`), and the line 186 prose enumeration. B8 (`hook/plugin auto-handles`) deliberately left unchanged — that claim is false for pull-based platforms.\n- fix(kiro): wire per-turn workflow injection for the main session. Pre-0.6.4 Kiro projects had no deterministic Trellis activation — only the three sub-agent JSONs registered `agentSpawn` hooks, the main session had none. Adds main agent `.kiro/agents/trellis.json` (`userPromptSubmit` → `inject-workflow-state.py`, `agentSpawn` → `session-start.py`, `workflow.md` as always-loaded resource) and IDE `.kiro/hooks/trellis-workflow-state.kiro.hook` (promptSubmit → runCommand). `inject-workflow-state.py` + `session-start.py` add an isolated `platform == \"kiro\"` branch that prints plain stdout (Kiro injects it as context; no `hookSpecificOutput` envelope); other platforms byte-unchanged. `SHARED_HOOKS_BY_PLATFORM.kiro` gains both scripts.",
|
|
7
|
+
"migrations": [],
|
|
8
|
+
"notes": "Two bug fixes. No `--migrate` required.\n\nKiro users: existing projects must run `trellis update` to receive the new main-session agent and hook (`.kiro/agents/trellis.json`, `.kiro/hooks/trellis-workflow-state.kiro.hook`, updated shared hooks).\n\nZCode / OpenCode / Reasonix users: `trellis update` produces the previously missing `trellis-start` skill / `/trellis:start` slash command. Codex output is byte-identical (same template, same resolver, same wrapper — `update` will not flag user-modified).\n\nInstall: `npm install -g @mindfoldhq/trellis`"
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.6.5",
|
|
3
|
+
"description": "Patch release: adds Trae IDE support, restores reliable Pi startup context and sub-agent tool configuration, and fixes Windows channel spawning plus workflow planning gates.",
|
|
4
|
+
"breaking": false,
|
|
5
|
+
"recommendMigrate": false,
|
|
6
|
+
"changelog": "**Features:**\n- feat(trae): add Trae IDE platform support. `trellis init --trae` / `trellis uninstall --trae` now manage `.trae/commands/`, `.trae/skills/`, `.trae/agents/`, `.trae/hooks/`, and `.trae/hooks.json`; Trae uses shared SessionStart/UserPromptSubmit hooks for main-session context and pull-based sub-agent prelude for task context.\n- feat(pi): support `tools` frontmatter in `.pi/agents/trellis-*.md` for `trellis_subagent`, so generated Pi sub-agent definitions can declare their required tool surface.\n\n**Bug Fixes:**\n- fix(pi): inject compact Trellis startup context through Pi's first `before_agent_start` event and keep `.pi/prompts/trellis-start.md` as the manual fallback because Pi `session_start` is notify-only. New Pi sessions now receive workflow, active-task, session-overview, and first-reply notice context without relying on a manual start command.\n- fix(pi): normalize Pi sub-agent tool names to lowercase and remove the dead `PI_TOOL_ALLOWLIST` path so tool declarations match Pi's expected names.\n- fix(channel): resolve Windows npm `.cmd` shims to a spawnable executable path before launching channel sessions, preventing `.exe` path resolution failures.\n- fix(hooks): avoid blocking shared Python hooks when stdin is empty.\n- fix(workflow): keep class-2 implement dispatch (codex-sub-agent, Gemini, Qoder, Copilot, ZCode, Reasonix, Trae) in the pull-based block instead of the hook auto-handles block, matching generated pull-based sub-agent context loading and preventing the ZCode/Reasonix misclassification class from recurring.\n- fix(zcode): keep ZCode command fallbacks in `.zcode/commands/trellis/` and out of shared `.agents/skills/`, preventing Codex/ZCode combined installs from reporting immediate template drift.\n- fix(workflow): require curated `implement.jsonl` / `check.jsonl` context before starting work, so seed-only task context is not treated as implementation-ready.\n- fix(brainstorm): require lossless PRD convergence before task planning continues, preventing brainstorm updates from dropping existing requirements.\n\n**Internal:**\n- ci: run Trellis CI on marketplace submodule pointer changes and sync the marketplace workflow mirror for Trae support.",
|
|
7
|
+
"migrations": [],
|
|
8
|
+
"notes": "No `--migrate` required.\n\nRun `trellis update` after upgrading. Trae users can run `trellis init --trae` in projects that do not yet have `.trae/` configured; existing Trellis projects should run `trellis update`. Pi users should run `trellis update` to receive the generated start prompt and extension startup-context updates.\n\nInstall: `npm install -g @mindfoldhq/trellis`"
|
|
9
|
+
}
|
|
@@ -53,6 +53,7 @@ Use a concise title from the user's request. Use a slug without a date prefix. `
|
|
|
53
53
|
5. Include your recommended answer with the question.
|
|
54
54
|
6. After each user answer, update `prd.md` before continuing.
|
|
55
55
|
7. For complex tasks, create or update `design.md` and `implement.md` before implementation starts.
|
|
56
|
+
8. Before final review or `task.py start`, run the PRD convergence pass below.
|
|
56
57
|
|
|
57
58
|
Do not invent a project-specific product/spec hierarchy. If the repository already has product, domain, or spec docs, use them. If it does not, proceed with the evidence that exists.
|
|
58
59
|
|
|
@@ -97,16 +98,33 @@ Do not ask process questions such as whether to search, inspect files, or contin
|
|
|
97
98
|
|
|
98
99
|
Lightweight tasks may have only `prd.md`. Complex tasks must have `prd.md`, `design.md`, and `implement.md` before `task.py start`.
|
|
99
100
|
|
|
100
|
-
`implement.md` is not a replacement for `implement.jsonl`.
|
|
101
|
+
`implement.md` is not a replacement for `implement.jsonl`. On sub-agent-dispatch workflows, `implement.jsonl` and `check.jsonl` must each contain at least one real spec/research entry before `task.py start`; the seed `_example` row does not count. Inline workflows skip this JSONL gate because Phase 2 loads context through `trellis-before-dev`.
|
|
102
|
+
|
|
103
|
+
## PRD Convergence Pass
|
|
104
|
+
|
|
105
|
+
Before declaring planning ready or running `task.py start`, rewrite `prd.md` once against the final structure described in the artifact rules above. This is not optional cleanup; it is the final planning gate.
|
|
106
|
+
|
|
107
|
+
The pass must be lossless:
|
|
108
|
+
|
|
109
|
+
- Collapse repeated facts into one authoritative section.
|
|
110
|
+
- Fold temporary brainstorm sections such as `What I already know`, `Assumptions`, and resolved `Open Questions` into Goal, Background, Requirements, Technical Notes, or Acceptance Criteria.
|
|
111
|
+
- Remove resolved open questions instead of leaving empty or already-answered sections.
|
|
112
|
+
- Merge parallel bug and requirement lists when they describe the same work; keep each defect's severity, evidence, and file:line anchors on the owning requirement.
|
|
113
|
+
- Preserve every file:line anchor, decision, constraint, requirement ID, and acceptance-criteria mapping.
|
|
114
|
+
- Keep only genuinely blocking open questions.
|
|
115
|
+
|
|
116
|
+
After the pass, read `prd.md` top to bottom and verify that no fact is repeated across sections unless the repetition adds new information.
|
|
101
117
|
|
|
102
118
|
## Quality Bar
|
|
103
119
|
|
|
104
120
|
Before declaring planning ready:
|
|
105
121
|
|
|
106
122
|
- `prd.md` contains testable acceptance criteria.
|
|
123
|
+
- `prd.md` has passed the PRD convergence pass: no unresolved temporary brainstorm sections, no duplicate facts across sections, and no lost anchors, decisions, or acceptance mappings.
|
|
107
124
|
- Repository-answerable questions have already been answered through inspection.
|
|
108
125
|
- Remaining open questions are genuinely about user intent or scope.
|
|
109
126
|
- Complex tasks have `design.md` and `implement.md`.
|
|
127
|
+
- Sub-agent-dispatch tasks have real curated entries in both `implement.jsonl` and `check.jsonl`; seed-only manifests are not ready.
|
|
110
128
|
- The user has reviewed the final planning artifacts or explicitly approved proceeding.
|
|
111
129
|
|
|
112
130
|
Do not start implementation until the user approves or asks for implementation.
|
package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-hooks.md
CHANGED
|
@@ -4,7 +4,7 @@ Hooks are the automation layer that connects a platform to Trellis. When the use
|
|
|
4
4
|
|
|
5
5
|
## Read These Files First
|
|
6
6
|
|
|
7
|
-
1. Target platform settings/config, such as `.claude/settings.json`, `.codex/hooks.json`, `.cursor/hooks.json`
|
|
7
|
+
1. Target platform settings/config, such as `.claude/settings.json`, `.codex/hooks.json`, `.cursor/hooks.json`, `.trae/hooks.json`
|
|
8
8
|
2. Target platform hooks directory
|
|
9
9
|
3. `.trellis/scripts/common/active_task.py`
|
|
10
10
|
4. `.trellis/scripts/common/session_context.py`
|
|
@@ -40,7 +40,7 @@ Different platforms generate different directories. Common categories:
|
|
|
40
40
|
| Category | Example paths | Purpose |
|
|
41
41
|
| --- | --- | --- |
|
|
42
42
|
| hooks | `.claude/hooks/`, `.codex/hooks/`, `.cursor/hooks/` | Inject session context, workflow-state, and sub-agent context. |
|
|
43
|
-
| settings | `.claude/settings.json`, `.codex/hooks.json`, `.qoder/settings.json` | Tell the platform when to run hooks or plugins. |
|
|
43
|
+
| settings | `.claude/settings.json`, `.codex/hooks.json`, `.qoder/settings.json`, `.trae/hooks.json` | Tell the platform when to run hooks or plugins. |
|
|
44
44
|
| agents | `.claude/agents/`, `.codex/agents/`, `.kiro/agents/`, `.zcode/cli/agents/` | Define agents such as `trellis-research`, `trellis-implement`, and `trellis-check`. |
|
|
45
45
|
| skills | `.claude/skills/`, `.agents/skills/`, `.qoder/skills/` | Skills that auto-trigger or can be read by AI. |
|
|
46
46
|
| commands/prompts/workflows | `.cursor/commands/`, `.github/prompts/`, `.devin/workflows/`, `.zcode/commands/` | Explicit user-invoked command or workflow entry points. |
|
|
@@ -27,6 +27,7 @@ Common files:
|
|
|
27
27
|
| GitHub Copilot | `.github/copilot/hooks.json` |
|
|
28
28
|
| Factory Droid | `.factory/settings.json` |
|
|
29
29
|
| Pi Agent | `.pi/settings.json`, `.pi/extensions/trellis/` |
|
|
30
|
+
| Trae IDE | `.trae/hooks.json` |
|
|
30
31
|
|
|
31
32
|
Reasonix and ZCode are pull-based platforms that do not use hooks or settings files; their agent files contain prelude instructions to read context after startup.
|
|
32
33
|
|
package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md
CHANGED
|
@@ -5,7 +5,7 @@ Trellis connects the same local architecture to different AI tools. `.trellis/`
|
|
|
5
5
|
When a local AI modifies Trellis, it should distinguish two file categories first:
|
|
6
6
|
|
|
7
7
|
- **Shared files**: `.trellis/workflow.md`, `.trellis/tasks/`, `.trellis/spec/`, `.trellis/scripts/`.
|
|
8
|
-
- **Platform files**: `.claude/`, `.codex/`, `.cursor/`, `.opencode/`, `.kiro/`, `.gemini/`, `.qoder/`, `.codebuddy/`, `.github/`, `.factory/`, `.pi/`, `.kilocode/`, `.agent/`, `.devin/`, `.reasonix/`, `.zcode/`, and similar directories.
|
|
8
|
+
- **Platform files**: `.claude/`, `.codex/`, `.cursor/`, `.opencode/`, `.kiro/`, `.gemini/`, `.qoder/`, `.codebuddy/`, `.github/`, `.factory/`, `.pi/`, `.trae/`, `.kilocode/`, `.agent/`, `.devin/`, `.reasonix/`, `.zcode/`, and similar directories.
|
|
9
9
|
|
|
10
10
|
Platform files do not store business state. They let the corresponding AI tool read Trellis state, call Trellis scripts, and load Trellis skills/agents/hooks.
|
|
11
11
|
|
|
@@ -13,7 +13,7 @@ Platform files do not store business state. They let the corresponding AI tool r
|
|
|
13
13
|
|
|
14
14
|
| Category | Common paths | Purpose |
|
|
15
15
|
| --- | --- | --- |
|
|
16
|
-
| settings/config | `.claude/settings.json`, `.codex/hooks.json`, `.qoder/settings.json` | Register hooks, plugins, extensions, or platform behavior. |
|
|
16
|
+
| settings/config | `.claude/settings.json`, `.codex/hooks.json`, `.qoder/settings.json`, `.trae/hooks.json` | Register hooks, plugins, extensions, or platform behavior. |
|
|
17
17
|
| hooks/plugins/extensions | `.claude/hooks/`, `.opencode/plugins/`, `.pi/extensions/` | Inject context at session start, user input, agent startup, shell execution, and similar events. |
|
|
18
18
|
| agents | `.claude/agents/`, `.codex/agents/`, `.kiro/agents/` | Define `trellis-research`, `trellis-implement`, and `trellis-check`. |
|
|
19
19
|
| skills | `.claude/skills/`, `.agents/skills/`, `.qoder/skills/` | Capability descriptions that auto-trigger or can be read on demand. |
|
package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md
CHANGED
|
@@ -20,6 +20,7 @@ This page lists common Trellis file locations in a user project by platform. Whe
|
|
|
20
20
|
| GitHub Copilot | `--copilot` | `.github/` | `.github/skills/` | `.github/agents/` | `.github/copilot/hooks/` + prompts |
|
|
21
21
|
| Factory Droid | `--droid` | `.factory/` | `.factory/skills/` | `.factory/droids/` | `.factory/hooks/` + settings |
|
|
22
22
|
| Pi Agent | `--pi` | `.pi/` | `.pi/skills/` | `.pi/agents/` | `.pi/extensions/trellis/` (native `trellis_subagent` tool) + `.pi/settings.json` |
|
|
23
|
+
| Trae IDE | `--trae` | `.trae/` | `.trae/skills/` | `.trae/agents/` | `.trae/hooks/` + `.trae/hooks.json` |
|
|
23
24
|
| Reasonix | `--reasonix` | `.reasonix/` | `.reasonix/skills/` | None — sub-agents are skills with `runAs: subagent` frontmatter | None |
|
|
24
25
|
| ZCode | `--zcode` | `.zcode/` | `.agents/skills/` | `.zcode/cli/agents/` | pull-based prelude (no hooks) |
|
|
25
26
|
|
|
@@ -40,6 +41,7 @@ These platforms usually have `trellis-research`, `trellis-implement`, and `trell
|
|
|
40
41
|
- GitHub Copilot
|
|
41
42
|
- Factory Droid
|
|
42
43
|
- Pi Agent
|
|
44
|
+
- Trae IDE
|
|
43
45
|
- Reasonix (delivered as skills with `runAs: subagent` under `.reasonix/skills/`, not as a separate `agents/` directory)
|
|
44
46
|
- ZCode
|
|
45
47
|
|
|
@@ -48,6 +48,7 @@ Use a concise title from the user's request. Use a slug without a date prefix. `
|
|
|
48
48
|
5. Include your recommended answer with the question.
|
|
49
49
|
6. After each user answer, update `prd.md` before continuing.
|
|
50
50
|
7. For complex tasks, create or update `design.md` and `implement.md` before implementation starts.
|
|
51
|
+
8. Before final review or `task.py start`, run the PRD convergence pass below.
|
|
51
52
|
|
|
52
53
|
Do not invent a project-specific product/spec hierarchy. If the repository already has product, domain, or spec docs, use them. If it does not, proceed with the evidence that exists.
|
|
53
54
|
|
|
@@ -135,16 +136,33 @@ For each component of the current plan:
|
|
|
135
136
|
|
|
136
137
|
Lightweight tasks may have only `prd.md`. Complex tasks must have `prd.md`, `design.md`, and `implement.md` before `task.py start`.
|
|
137
138
|
|
|
138
|
-
`implement.md` is not a replacement for `implement.jsonl`.
|
|
139
|
+
`implement.md` is not a replacement for `implement.jsonl`. On sub-agent-dispatch workflows, `implement.jsonl` and `check.jsonl` must each contain at least one real spec/research entry before `task.py start`; the seed `_example` row does not count. Inline workflows skip this JSONL gate because Phase 2 loads context through `trellis-before-dev`.
|
|
140
|
+
|
|
141
|
+
## PRD Convergence Pass
|
|
142
|
+
|
|
143
|
+
Before declaring planning ready or running `task.py start`, rewrite `prd.md` once against the final structure described in the artifact rules above. This is not optional cleanup; it is the final planning gate.
|
|
144
|
+
|
|
145
|
+
The pass must be lossless:
|
|
146
|
+
|
|
147
|
+
- Collapse repeated facts into one authoritative section.
|
|
148
|
+
- Fold temporary brainstorm sections such as `What I already know`, `Assumptions`, and resolved `Open Questions` into Goal, Background, Requirements, Technical Notes, or Acceptance Criteria.
|
|
149
|
+
- Remove resolved open questions instead of leaving empty or already-answered sections.
|
|
150
|
+
- Merge parallel bug and requirement lists when they describe the same work; keep each defect's severity, evidence, and file:line anchors on the owning requirement.
|
|
151
|
+
- Preserve every file:line anchor, decision, constraint, requirement ID, and acceptance-criteria mapping.
|
|
152
|
+
- Keep only genuinely blocking open questions.
|
|
153
|
+
|
|
154
|
+
After the pass, read `prd.md` top to bottom and verify that no fact is repeated across sections unless the repetition adds new information.
|
|
139
155
|
|
|
140
156
|
## Quality Bar
|
|
141
157
|
|
|
142
158
|
Before declaring planning ready:
|
|
143
159
|
|
|
144
160
|
- `prd.md` contains testable acceptance criteria.
|
|
161
|
+
- `prd.md` has passed the PRD convergence pass: no unresolved temporary brainstorm sections, no duplicate facts across sections, and no lost anchors, decisions, or acceptance mappings.
|
|
145
162
|
- Repository-answerable questions have already been answered through inspection.
|
|
146
163
|
- Remaining open questions are genuinely about user intent or scope.
|
|
147
164
|
- Complex tasks have `design.md` and `implement.md`.
|
|
165
|
+
- Sub-agent-dispatch tasks have real curated entries in both `implement.jsonl` and `check.jsonl`; seed-only manifests are not ready.
|
|
148
166
|
- The user has reviewed the final planning artifacts or explicitly approved proceeding.
|
|
149
167
|
|
|
150
168
|
Do not start implementation until the user approves or asks for implementation.
|
|
@@ -52,6 +52,7 @@ Use a concise title from the user's request. Use a slug without a date prefix. `
|
|
|
52
52
|
5. Include your recommended answer with the question.
|
|
53
53
|
6. After each user answer, update `prd.md` before continuing.
|
|
54
54
|
7. For complex tasks, create or update `design.md` and `implement.md` before implementation starts.
|
|
55
|
+
8. Before final review or `task.py start`, run the PRD convergence pass below.
|
|
55
56
|
|
|
56
57
|
Do not invent a project-specific product/spec hierarchy. If the repository already has product, domain, or spec docs, use them. If it does not, proceed with the evidence that exists.
|
|
57
58
|
|
|
@@ -96,16 +97,33 @@ Do not ask process questions such as whether to search, inspect files, or contin
|
|
|
96
97
|
|
|
97
98
|
Lightweight tasks may have only `prd.md`. Complex tasks must have `prd.md`, `design.md`, and `implement.md` before `task.py start`.
|
|
98
99
|
|
|
99
|
-
`implement.md` is not a replacement for `implement.jsonl`.
|
|
100
|
+
`implement.md` is not a replacement for `implement.jsonl`. On sub-agent-dispatch workflows, `implement.jsonl` and `check.jsonl` must each contain at least one real spec/research entry before `task.py start`; the seed `_example` row does not count. Inline workflows skip this JSONL gate because Phase 2 loads context through `trellis-before-dev`.
|
|
101
|
+
|
|
102
|
+
## PRD Convergence Pass
|
|
103
|
+
|
|
104
|
+
Before declaring planning ready or running `task.py start`, rewrite `prd.md` once against the final structure described in the artifact rules above. This is not optional cleanup; it is the final planning gate.
|
|
105
|
+
|
|
106
|
+
The pass must be lossless:
|
|
107
|
+
|
|
108
|
+
- Collapse repeated facts into one authoritative section.
|
|
109
|
+
- Fold temporary brainstorm sections such as `What I already know`, `Assumptions`, and resolved `Open Questions` into Goal, Background, Requirements, Technical Notes, or Acceptance Criteria.
|
|
110
|
+
- Remove resolved open questions instead of leaving empty or already-answered sections.
|
|
111
|
+
- Merge parallel bug and requirement lists when they describe the same work; keep each defect's severity, evidence, and file:line anchors on the owning requirement.
|
|
112
|
+
- Preserve every file:line anchor, decision, constraint, requirement ID, and acceptance-criteria mapping.
|
|
113
|
+
- Keep only genuinely blocking open questions.
|
|
114
|
+
|
|
115
|
+
After the pass, read `prd.md` top to bottom and verify that no fact is repeated across sections unless the repetition adds new information.
|
|
100
116
|
|
|
101
117
|
## Quality Bar
|
|
102
118
|
|
|
103
119
|
Before declaring planning ready:
|
|
104
120
|
|
|
105
121
|
- `prd.md` contains testable acceptance criteria.
|
|
122
|
+
- `prd.md` has passed the PRD convergence pass: no unresolved temporary brainstorm sections, no duplicate facts across sections, and no lost anchors, decisions, or acceptance mappings.
|
|
106
123
|
- Repository-answerable questions have already been answered through inspection.
|
|
107
124
|
- Remaining open questions are genuinely about user intent or scope.
|
|
108
125
|
- Complex tasks have `design.md` and `implement.md`.
|
|
126
|
+
- Sub-agent-dispatch tasks have real curated entries in both `implement.jsonl` and `check.jsonl`; seed-only manifests are not ready.
|
|
109
127
|
- The user has reviewed the final planning artifacts or explicitly approved proceeding.
|
|
110
128
|
|
|
111
129
|
Do not start implementation until the user approves or asks for implementation.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "trellis",
|
|
3
|
+
"description": "Trellis workflow main agent. Drives the Trellis development workflow: reads .trellis/workflow.md, classifies each turn, and routes work through plan / implement / check phases. Use as the default Kiro agent for projects that run Trellis.",
|
|
4
|
+
"prompt": "# Trellis Workflow Agent\n\nYou are the main session agent for a project that uses the Trellis workflow.\n\n## On Every Turn\n\nA `userPromptSubmit` hook injects a `<workflow-state>` breadcrumb each turn telling you the active task and its current phase. An `agentSpawn` hook injects a `<session-context>` overview when this agent starts. Trust those injections to orient yourself — do not re-derive context from scratch.\n\n## How to Work\n\n1. **Follow the workflow.** `.trellis/workflow.md` is the single source of truth for phases and steps. It is also attached as a resource for this agent. Read it (or the injected Phase Index) and follow the matching phase.\n2. **Resolve the active task** with `python3 ./.trellis/scripts/task.py current --source` when the breadcrumb is missing or stale.\n3. **Classify the turn** before acting: simple conversation, small edit, or a complex task that needs a Trellis task directory + planning. Do not create a task for trivial turns.\n4. **Plan before implementing.** For complex work, write `prd.md` (and `design.md` / `implement.md` when warranted) and get the user's confirmation before entering implementation.\n5. **Load task context in order** for implementation/check: jsonl entries -> `prd.md` -> `design.md` (if present) -> `implement.md` (if present).\n6. **Verify** with the project's lint / type-check / test commands before declaring work done.\n\n## Constraints\n\n- Do NOT run `git commit` / `git push` / `git merge` unless the user explicitly asks.\n- Keep changes surgical and scoped to the request.\n- Discover guidelines on demand: `python3 ./.trellis/scripts/get_context.py --mode packages`.\n",
|
|
5
|
+
"tools": [
|
|
6
|
+
"read",
|
|
7
|
+
"write",
|
|
8
|
+
"shell",
|
|
9
|
+
"glob",
|
|
10
|
+
"grep"
|
|
11
|
+
],
|
|
12
|
+
"allowedTools": [
|
|
13
|
+
"read",
|
|
14
|
+
"write",
|
|
15
|
+
"shell",
|
|
16
|
+
"glob",
|
|
17
|
+
"grep"
|
|
18
|
+
],
|
|
19
|
+
"resources": [
|
|
20
|
+
"file://.trellis/workflow.md"
|
|
21
|
+
],
|
|
22
|
+
"hooks": {
|
|
23
|
+
"agentSpawn": [
|
|
24
|
+
{
|
|
25
|
+
"command": "{{PYTHON_CMD}} .kiro/hooks/session-start.py"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"userPromptSubmit": [
|
|
29
|
+
{
|
|
30
|
+
"command": "{{PYTHON_CMD}} .kiro/hooks/inject-workflow-state.py"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
}
|