@mindfoldhq/trellis 0.4.0-rc.0 → 0.4.0

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.
Files changed (41) hide show
  1. package/README.md +3 -3
  2. package/dist/cli/index.js +1 -0
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/commands/init.d.ts +1 -0
  5. package/dist/commands/init.d.ts.map +1 -1
  6. package/dist/commands/init.js.map +1 -1
  7. package/dist/configurators/droid.d.ts +5 -0
  8. package/dist/configurators/droid.d.ts.map +1 -0
  9. package/dist/configurators/droid.js +48 -0
  10. package/dist/configurators/droid.js.map +1 -0
  11. package/dist/configurators/index.d.ts.map +1 -1
  12. package/dist/configurators/index.js +13 -0
  13. package/dist/configurators/index.js.map +1 -1
  14. package/dist/migrations/manifests/0.4.0-rc.1.json +9 -0
  15. package/dist/migrations/manifests/0.4.0.json +9 -0
  16. package/dist/templates/droid/commands/trellis/before-dev.md +33 -0
  17. package/dist/templates/droid/commands/trellis/brainstorm.md +491 -0
  18. package/dist/templates/droid/commands/trellis/break-loop.md +111 -0
  19. package/dist/templates/droid/commands/trellis/check-cross-layer.md +157 -0
  20. package/dist/templates/droid/commands/trellis/check.md +29 -0
  21. package/dist/templates/droid/commands/trellis/create-command.md +158 -0
  22. package/dist/templates/droid/commands/trellis/finish-work.md +147 -0
  23. package/dist/templates/droid/commands/trellis/integrate-skill.md +223 -0
  24. package/dist/templates/droid/commands/trellis/onboard.md +362 -0
  25. package/dist/templates/droid/commands/trellis/record-session.md +66 -0
  26. package/dist/templates/droid/commands/trellis/start.md +377 -0
  27. package/dist/templates/droid/commands/trellis/update-spec.md +358 -0
  28. package/dist/templates/droid/index.d.ts +27 -0
  29. package/dist/templates/droid/index.d.ts.map +1 -0
  30. package/dist/templates/droid/index.js +47 -0
  31. package/dist/templates/droid/index.js.map +1 -0
  32. package/dist/templates/extract.d.ts +11 -0
  33. package/dist/templates/extract.d.ts.map +1 -1
  34. package/dist/templates/extract.js +19 -0
  35. package/dist/templates/extract.js.map +1 -1
  36. package/dist/templates/trellis/scripts/common/cli_adapter.py +27 -2
  37. package/dist/types/ai-tools.d.ts +3 -3
  38. package/dist/types/ai-tools.d.ts.map +1 -1
  39. package/dist/types/ai-tools.js +9 -1
  40. package/dist/types/ai-tools.js.map +1 -1
  41. package/package.json +1 -1
@@ -0,0 +1,358 @@
1
+ ---
2
+ description: Capture executable contracts learned from work into code-spec docs
3
+ ---
4
+
5
+ # Update Code-Spec - Capture Executable Contracts
6
+
7
+ When you learn something valuable (from debugging, implementing, or discussion), use this command to update the relevant code-spec documents.
8
+
9
+ **Timing**: After completing a task, fixing a bug, or discovering a new pattern
10
+
11
+ ---
12
+
13
+ ## Code-Spec First Rule (CRITICAL)
14
+
15
+ In this project, "spec" for implementation work means **code-spec**:
16
+ - Executable contracts (not principle-only text)
17
+ - Concrete signatures, payload fields, env keys, and boundary behavior
18
+ - Testable validation/error behavior
19
+
20
+ If the change touches infra or cross-layer contracts, code-spec depth is mandatory.
21
+
22
+ ### Mandatory Triggers
23
+
24
+ Apply code-spec depth when the change includes any of:
25
+ - New/changed command or API signature
26
+ - Cross-layer request/response contract change
27
+ - Database schema/migration change
28
+ - Infra integration (storage, queue, cache, secrets, env wiring)
29
+
30
+ ### Mandatory Output (7 Sections)
31
+
32
+ For triggered tasks, include all sections below:
33
+ 1. Scope / Trigger
34
+ 2. Signatures (command/API/DB)
35
+ 3. Contracts (request/response/env)
36
+ 4. Validation & Error Matrix
37
+ 5. Good/Base/Bad Cases
38
+ 6. Tests Required (with assertion points)
39
+ 7. Wrong vs Correct (at least one pair)
40
+
41
+ ---
42
+
43
+ ## When to Update Code-Specs
44
+
45
+ | Trigger | Example | Target Spec |
46
+ |---------|---------|-------------|
47
+ | **Implemented a feature** | Added template download with giget | Relevant `backend/` or `frontend/` file |
48
+ | **Made a design decision** | Used type field + mapping table for extensibility | Relevant code-spec + "Design Decisions" section |
49
+ | **Fixed a bug** | Found a subtle issue with error handling | `backend/error-handling.md` |
50
+ | **Discovered a pattern** | Found a better way to structure code | Relevant `backend/` or `frontend/` file |
51
+ | **Hit a gotcha** | Learned that X must be done before Y | Relevant code-spec + "Common Mistakes" section |
52
+ | **Established a convention** | Team agreed on naming pattern | `quality-guidelines.md` |
53
+ | **New thinking trigger** | "Don't forget to check X before doing Y" | `guides/*.md` (as a checklist item, not detailed rules) |
54
+
55
+ **Key Insight**: Code-spec updates are NOT just for problems. Every feature implementation contains design decisions and contracts that future AI/developers need to execute safely.
56
+
57
+ ---
58
+
59
+ ## Spec Structure Overview
60
+
61
+ ```
62
+ .trellis/spec/
63
+ ├── backend/ # Backend coding standards
64
+ │ ├── index.md # Overview and links
65
+ │ └── *.md # Topic-specific guidelines
66
+ ├── frontend/ # Frontend coding standards
67
+ │ ├── index.md # Overview and links
68
+ │ └── *.md # Topic-specific guidelines
69
+ └── guides/ # Thinking checklists (NOT coding specs!)
70
+ ├── index.md # Guide index
71
+ └── *.md # Topic-specific guides
72
+ ```
73
+
74
+ ### CRITICAL: Code-Spec vs Guide - Know the Difference
75
+
76
+ | Type | Location | Purpose | Content Style |
77
+ |------|----------|---------|---------------|
78
+ | **Code-Spec** | `backend/*.md`, `frontend/*.md` | Tell AI "how to implement safely" | Signatures, contracts, matrices, cases, test points |
79
+ | **Guide** | `guides/*.md` | Help AI "what to think about" | Checklists, questions, pointers to specs |
80
+
81
+ **Decision Rule**: Ask yourself:
82
+
83
+ - "This is **how to write** the code" → Put in `backend/` or `frontend/`
84
+ - "This is **what to consider** before writing" → Put in `guides/`
85
+
86
+ **Example**:
87
+
88
+ | Learning | Wrong Location | Correct Location |
89
+ |----------|----------------|------------------|
90
+ | "Use `reconfigure()` not `TextIOWrapper` for Windows stdout" | ❌ `guides/cross-platform-thinking-guide.md` | ✅ `backend/script-conventions.md` |
91
+ | "Remember to check encoding when writing cross-platform code" | ❌ `backend/script-conventions.md` | ✅ `guides/cross-platform-thinking-guide.md` |
92
+
93
+ **Guides should be short checklists that point to specs**, not duplicate the detailed rules.
94
+
95
+ ---
96
+
97
+ ## Update Process
98
+
99
+ ### Step 1: Identify What You Learned
100
+
101
+ Answer these questions:
102
+
103
+ 1. **What did you learn?** (Be specific)
104
+ 2. **Why is it important?** (What problem does it prevent?)
105
+ 3. **Where does it belong?** (Which spec file?)
106
+
107
+ ### Step 2: Classify the Update Type
108
+
109
+ | Type | Description | Action |
110
+ |------|-------------|--------|
111
+ | **Design Decision** | Why we chose approach X over Y | Add to "Design Decisions" section |
112
+ | **Project Convention** | How we do X in this project | Add to relevant section with examples |
113
+ | **New Pattern** | A reusable approach discovered | Add to "Patterns" section |
114
+ | **Forbidden Pattern** | Something that causes problems | Add to "Anti-patterns" or "Don't" section |
115
+ | **Common Mistake** | Easy-to-make error | Add to "Common Mistakes" section |
116
+ | **Convention** | Agreed-upon standard | Add to relevant section |
117
+ | **Gotcha** | Non-obvious behavior | Add warning callout |
118
+
119
+ ### Step 3: Read the Target Code-Spec
120
+
121
+ Before editing, read the current code-spec to:
122
+ - Understand existing structure
123
+ - Avoid duplicating content
124
+ - Find the right section for your update
125
+
126
+ ```bash
127
+ cat .trellis/spec/<category>/<file>.md
128
+ ```
129
+
130
+ ### Step 4: Make the Update
131
+
132
+ Follow these principles:
133
+
134
+ 1. **Be Specific**: Include concrete examples, not just abstract rules
135
+ 2. **Explain Why**: State the problem this prevents
136
+ 3. **Show Contracts**: Add signatures, payload fields, and error behavior
137
+ 4. **Show Code**: Add code snippets for key patterns
138
+ 5. **Keep it Short**: One concept per section
139
+
140
+ ### Step 5: Update the Index (if needed)
141
+
142
+ If you added a new section or the code-spec status changed, update the category's `index.md`.
143
+
144
+ ---
145
+
146
+ ## Update Templates
147
+
148
+ ### Mandatory Template for Infra/Cross-Layer Work
149
+
150
+ ```markdown
151
+ ## Scenario: <name>
152
+
153
+ ### 1. Scope / Trigger
154
+ - Trigger: <why this requires code-spec depth>
155
+
156
+ ### 2. Signatures
157
+ - Backend command/API/DB signature(s)
158
+
159
+ ### 3. Contracts
160
+ - Request fields (name, type, constraints)
161
+ - Response fields (name, type, constraints)
162
+ - Environment keys (required/optional)
163
+
164
+ ### 4. Validation & Error Matrix
165
+ - <condition> -> <error>
166
+
167
+ ### 5. Good/Base/Bad Cases
168
+ - Good: ...
169
+ - Base: ...
170
+ - Bad: ...
171
+
172
+ ### 6. Tests Required
173
+ - Unit/Integration/E2E with assertion points
174
+
175
+ ### 7. Wrong vs Correct
176
+ #### Wrong
177
+ ...
178
+ #### Correct
179
+ ...
180
+ ```
181
+
182
+ ### Adding a Design Decision
183
+
184
+ ```markdown
185
+ ### Design Decision: [Decision Name]
186
+
187
+ **Context**: What problem were we solving?
188
+
189
+ **Options Considered**:
190
+ 1. Option A - brief description
191
+ 2. Option B - brief description
192
+
193
+ **Decision**: We chose Option X because...
194
+
195
+ **Example**:
196
+ \`\`\`typescript
197
+ // How it's implemented
198
+ code example
199
+ \`\`\`
200
+
201
+ **Extensibility**: How to extend this in the future...
202
+ ```
203
+
204
+ ### Adding a Project Convention
205
+
206
+ ```markdown
207
+ ### Convention: [Convention Name]
208
+
209
+ **What**: Brief description of the convention.
210
+
211
+ **Why**: Why we do it this way in this project.
212
+
213
+ **Example**:
214
+ \`\`\`typescript
215
+ // How to follow this convention
216
+ code example
217
+ \`\`\`
218
+
219
+ **Related**: Links to related conventions or specs.
220
+ ```
221
+
222
+ ### Adding a New Pattern
223
+
224
+ ```markdown
225
+ ### Pattern Name
226
+
227
+ **Problem**: What problem does this solve?
228
+
229
+ **Solution**: Brief description of the approach.
230
+
231
+ **Example**:
232
+ \`\`\`
233
+ // Good
234
+ code example
235
+
236
+ // Bad
237
+ code example
238
+ \`\`\`
239
+
240
+ **Why**: Explanation of why this works better.
241
+ ```
242
+
243
+ ### Adding a Forbidden Pattern
244
+
245
+ ```markdown
246
+ ### Don't: Pattern Name
247
+
248
+ **Problem**:
249
+ \`\`\`
250
+ // Don't do this
251
+ bad code example
252
+ \`\`\`
253
+
254
+ **Why it's bad**: Explanation of the issue.
255
+
256
+ **Instead**:
257
+ \`\`\`
258
+ // Do this instead
259
+ good code example
260
+ \`\`\`
261
+ ```
262
+
263
+ ### Adding a Common Mistake
264
+
265
+ ```markdown
266
+ ### Common Mistake: Description
267
+
268
+ **Symptom**: What goes wrong
269
+
270
+ **Cause**: Why this happens
271
+
272
+ **Fix**: How to correct it
273
+
274
+ **Prevention**: How to avoid it in the future
275
+ ```
276
+
277
+ ### Adding a Gotcha
278
+
279
+ ```markdown
280
+ > **Warning**: Brief description of the non-obvious behavior.
281
+ >
282
+ > Details about when this happens and how to handle it.
283
+ ```
284
+
285
+ ---
286
+
287
+ ## Interactive Mode
288
+
289
+ If you're unsure what to update, answer these prompts:
290
+
291
+ 1. **What did you just finish?**
292
+ - [ ] Fixed a bug
293
+ - [ ] Implemented a feature
294
+ - [ ] Refactored code
295
+ - [ ] Had a discussion about approach
296
+
297
+ 2. **What did you learn or decide?**
298
+ - Design decision (why X over Y)
299
+ - Project convention (how we do X)
300
+ - Non-obvious behavior (gotcha)
301
+ - Better approach (pattern)
302
+
303
+ 3. **Would future AI/developers need to know this?**
304
+ - To understand how the code works → Yes, update spec
305
+ - To maintain or extend the feature → Yes, update spec
306
+ - To avoid repeating mistakes → Yes, update spec
307
+ - Purely one-off implementation detail → Maybe skip
308
+
309
+ 4. **Which area does it relate to?**
310
+ - [ ] Backend code
311
+ - [ ] Frontend code
312
+ - [ ] Cross-layer data flow
313
+ - [ ] Code organization/reuse
314
+ - [ ] Quality/testing
315
+
316
+ ---
317
+
318
+ ## Quality Checklist
319
+
320
+ Before finishing your code-spec update:
321
+
322
+ - [ ] Is the content specific and actionable?
323
+ - [ ] Did you include a code example?
324
+ - [ ] Did you explain WHY, not just WHAT?
325
+ - [ ] Did you include executable signatures/contracts?
326
+ - [ ] Did you include validation and error matrix?
327
+ - [ ] Did you include Good/Base/Bad cases?
328
+ - [ ] Did you include required tests with assertion points?
329
+ - [ ] Is it in the right code-spec file?
330
+ - [ ] Does it duplicate existing content?
331
+ - [ ] Would a new team member understand it?
332
+
333
+ ---
334
+
335
+ ## Relationship to Other Commands
336
+
337
+ ```
338
+ Development Flow:
339
+ Learn something → /trellis-update-spec → Knowledge captured
340
+ ↑ ↓
341
+ /trellis-break-loop ←──────────────────── Future sessions benefit
342
+ (deep bug analysis)
343
+ ```
344
+
345
+ - `/trellis-break-loop` - Analyzes bugs deeply, often reveals spec updates needed
346
+ - `/trellis-update-spec` - Actually makes the updates (this command)
347
+ - `/trellis-finish-work` - Reminds you to check if specs need updates
348
+
349
+ ---
350
+
351
+ ## Core Philosophy
352
+
353
+ > **Code-specs are living documents. Every debugging session, every "aha moment" is an opportunity to make the implementation contract clearer.**
354
+
355
+ The goal is **institutional memory**:
356
+ - What one person learns, everyone benefits from
357
+ - What AI learns in one session, persists to future sessions
358
+ - Mistakes become documented guardrails
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Droid (Factory.ai) templates
3
+ *
4
+ * These are GENERIC templates for user projects.
5
+ * Do NOT use Trellis project's own .factory/ directory (which may be customized).
6
+ *
7
+ * Directory structure:
8
+ * droid/
9
+ * └── commands/
10
+ * └── trellis/ # Slash commands under the trellis namespace
11
+ *
12
+ * Droid scans `.factory/commands/` and supports nested folders, so commands
13
+ * live under `commands/trellis/` to keep them grouped, mirroring Claude Code.
14
+ */
15
+ /**
16
+ * Command template with name and content
17
+ */
18
+ export interface CommandTemplate {
19
+ name: string;
20
+ content: string;
21
+ }
22
+ /**
23
+ * Get all command templates.
24
+ * Commands are stored in commands/trellis/ subdirectory.
25
+ */
26
+ export declare function getAllCommands(): CommandTemplate[];
27
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/droid/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAqBH;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,eAAe,EAAE,CAalD"}
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Droid (Factory.ai) templates
3
+ *
4
+ * These are GENERIC templates for user projects.
5
+ * Do NOT use Trellis project's own .factory/ directory (which may be customized).
6
+ *
7
+ * Directory structure:
8
+ * droid/
9
+ * └── commands/
10
+ * └── trellis/ # Slash commands under the trellis namespace
11
+ *
12
+ * Droid scans `.factory/commands/` and supports nested folders, so commands
13
+ * live under `commands/trellis/` to keep them grouped, mirroring Claude Code.
14
+ */
15
+ import { readdirSync, readFileSync } from "node:fs";
16
+ import { dirname, join } from "node:path";
17
+ import { fileURLToPath } from "node:url";
18
+ const __filename = fileURLToPath(import.meta.url);
19
+ const __dirname = dirname(__filename);
20
+ function readTemplate(relativePath) {
21
+ return readFileSync(join(__dirname, relativePath), "utf-8");
22
+ }
23
+ function listFiles(dir) {
24
+ try {
25
+ return readdirSync(join(__dirname, dir));
26
+ }
27
+ catch {
28
+ return [];
29
+ }
30
+ }
31
+ /**
32
+ * Get all command templates.
33
+ * Commands are stored in commands/trellis/ subdirectory.
34
+ */
35
+ export function getAllCommands() {
36
+ const commands = [];
37
+ const files = listFiles("commands/trellis");
38
+ for (const file of files) {
39
+ if (file.endsWith(".md")) {
40
+ const name = file.replace(".md", "");
41
+ const content = readTemplate(`commands/trellis/${file}`);
42
+ commands.push({ name, content });
43
+ }
44
+ }
45
+ return commands;
46
+ }
47
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/droid/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,SAAS,YAAY,CAAC,YAAoB;IACxC,OAAO,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC;AAED,SAAS,SAAS,CAAC,GAAW;IAC5B,IAAI,CAAC;QACH,OAAO,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC;IAC3C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAUD;;;GAGG;AACH,MAAM,UAAU,cAAc;IAC5B,MAAM,QAAQ,GAAsB,EAAE,CAAC;IACvC,MAAM,KAAK,GAAG,SAAS,CAAC,kBAAkB,CAAC,CAAC;IAE5C,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YACrC,MAAM,OAAO,GAAG,YAAY,CAAC,oBAAoB,IAAI,EAAE,CAAC,CAAC;YACzD,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;QACnC,CAAC;IACH,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -116,6 +116,17 @@ export declare function getQoderTemplatePath(): string;
116
116
  * These are GENERIC templates, not the Trellis project's own .codebuddy/ configuration.
117
117
  */
118
118
  export declare function getCodebuddyTemplatePath(): string;
119
+ /**
120
+ * Get the path to the droid templates directory.
121
+ *
122
+ * This reads from src/templates/droid/ (development) or dist/templates/droid/ (production).
123
+ * These are GENERIC templates, not the Trellis project's own .factory/ configuration.
124
+ */
125
+ export declare function getDroidTemplatePath(): string;
126
+ /**
127
+ * @deprecated Use getDroidTemplatePath() instead.
128
+ */
129
+ export declare function getDroidSourcePath(): string;
119
130
  /**
120
131
  * Get the path to the copilot templates directory.
121
132
  *
@@ -1 +1 @@
1
- {"version":3,"file":"extract.d.ts","sourceRoot":"","sources":["../../src/templates/extract.ts"],"names":[],"mappings":"AAQA,KAAK,gBAAgB,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAE5D;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,MAAM,CAU/C;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAS9C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAS9C;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAShD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAS7C;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAS7C;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAS5C;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAS5C;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,IAAI,MAAM,CASnD;AAED;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,MAAM,CAEjD;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,IAAI,M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ClC,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,GACjC,OAAO,CAAC,IAAI,CAAC,CAIf"}
1
+ {"version":3,"file":"extract.d.ts","sourceRoot":"","sources":["../../src/templates/extract.ts"],"names":[],"mappings":"AAQA,KAAK,gBAAgB,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAE5D;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,MAAM,CAU/C;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAS9C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAS9C;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAShD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAS7C;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAS7C;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAS5C;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAS5C;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,IAAI,MAAM,CASnD;AAED;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,MAAM,CAEjD;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAShD;AAED;;GAE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,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAI3D;AAED;;;;;;GAMG;AACH,wBAAsB,cAAc,CAClC,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,GACjC,OAAO,CAAC,IAAI,CAAC,CAIf"}
@@ -210,6 +210,25 @@ export function getCodebuddyTemplatePath() {
210
210
  }
211
211
  throw new Error("Could not find codebuddy templates directory. Expected at templates/codebuddy/");
212
212
  }
213
+ /**
214
+ * Get the path to the droid templates directory.
215
+ *
216
+ * This reads from src/templates/droid/ (development) or dist/templates/droid/ (production).
217
+ * These are GENERIC templates, not the Trellis project's own .factory/ configuration.
218
+ */
219
+ export function getDroidTemplatePath() {
220
+ const templatePath = path.join(__dirname, "droid");
221
+ if (fs.existsSync(templatePath)) {
222
+ return templatePath;
223
+ }
224
+ throw new Error("Could not find droid templates directory. Expected at templates/droid/");
225
+ }
226
+ /**
227
+ * @deprecated Use getDroidTemplatePath() instead.
228
+ */
229
+ export function getDroidSourcePath() {
230
+ return getDroidTemplatePath();
231
+ }
213
232
  /**
214
233
  * Get the path to the copilot templates directory.
215
234
  *
@@ -1 +1 @@
1
- {"version":3,"file":"extract.js","sourceRoot":"","sources":["../../src/templates/extract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAE/D,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;AAI3C;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB;IAC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AK,IAAI,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC;QACxC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACxC,MAAM,IAAI,GAAG,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAElC,IAAI,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;YACvB,MAAM,gBAAgB,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QACrD,CAAC;aAAM,CAAC;YACN,MAAM,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAClD,MAAM,YAAY,GAChB,OAAO,EAAE,UAAU,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;YAC1E,MAAM,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC,CAAC;QACnE,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -1,7 +1,7 @@
1
1
  """
2
2
  CLI Adapter for Multi-Platform Support.
3
3
 
4
- Abstracts differences between Claude Code, OpenCode, Cursor, iFlow, Codex, Kilo, Kiro Code, Gemini CLI, Antigravity, Windsurf, Qoder, CodeBuddy, and GitHub Copilot interfaces.
4
+ Abstracts differences between Claude Code, OpenCode, Cursor, iFlow, Codex, Kilo, Kiro Code, Gemini CLI, Antigravity, Windsurf, Qoder, CodeBuddy, GitHub Copilot, and Factory Droid interfaces.
5
5
 
6
6
  Supported platforms:
7
7
  - claude: Claude Code (default)
@@ -17,6 +17,7 @@ Supported platforms:
17
17
  - qoder: Qoder
18
18
  - codebuddy: CodeBuddy
19
19
  - copilot: GitHub Copilot (VS Code)
20
+ - droid: Factory Droid (commands-based)
20
21
 
21
22
  Usage:
22
23
  from common.cli_adapter import CLIAdapter
@@ -49,6 +50,7 @@ Platform = Literal[
49
50
  "qoder",
50
51
  "codebuddy",
51
52
  "copilot",
53
+ "droid",
52
54
  ]
53
55
 
54
56
 
@@ -119,6 +121,8 @@ class CLIAdapter:
119
121
  return ".codebuddy"
120
122
  elif self.platform == "copilot":
121
123
  return ".github/copilot"
124
+ elif self.platform == "droid":
125
+ return ".factory"
122
126
  else:
123
127
  return ".claude"
124
128
 
@@ -241,6 +245,8 @@ class CLIAdapter:
241
245
  return f".kilocode/workflows/{name}.md"
242
246
  elif self.platform == "copilot":
243
247
  return f".github/prompts/{name}.prompt.md"
248
+ elif self.platform == "droid":
249
+ return f".factory/commands/trellis/{name}.md"
244
250
  else:
245
251
  return f"{self.config_dir_name}/commands/trellis/{name}.md"
246
252
 
@@ -274,6 +280,8 @@ class CLIAdapter:
274
280
  return {}
275
281
  elif self.platform == "copilot":
276
282
  return {}
283
+ elif self.platform == "droid":
284
+ return {}
277
285
  else:
278
286
  return {"CLAUDE_NON_INTERACTIVE": "1"}
279
287
 
@@ -353,6 +361,10 @@ class CLIAdapter:
353
361
  raise ValueError(
354
362
  "GitHub Copilot is IDE-only; CLI agent run is not supported."
355
363
  )
364
+ elif self.platform == "droid":
365
+ raise ValueError(
366
+ "Factory Droid CLI agent run is not yet integrated with Trellis multi-agent."
367
+ )
356
368
 
357
369
  else: # claude
358
370
  cmd = ["claude", "-p"]
@@ -413,6 +425,10 @@ class CLIAdapter:
413
425
  raise ValueError(
414
426
  "GitHub Copilot is IDE-only; CLI resume is not supported."
415
427
  )
428
+ elif self.platform == "droid":
429
+ raise ValueError(
430
+ "Factory Droid CLI resume is not yet integrated with Trellis multi-agent."
431
+ )
416
432
  else:
417
433
  return ["claude", "--resume", session_id]
418
434
 
@@ -483,6 +499,8 @@ class CLIAdapter:
483
499
  return "codebuddy"
484
500
  elif self.platform == "copilot":
485
501
  return "copilot"
502
+ elif self.platform == "droid":
503
+ return "droid"
486
504
  else:
487
505
  return "claude"
488
506
 
@@ -569,9 +587,10 @@ def get_cli_adapter(platform: str = "claude") -> CLIAdapter:
569
587
  "qoder",
570
588
  "codebuddy",
571
589
  "copilot",
590
+ "droid",
572
591
  ):
573
592
  raise ValueError(
574
- f"Unsupported platform: {platform} (must be 'claude', 'opencode', 'cursor', 'iflow', 'codex', 'kilo', 'kiro', 'gemini', 'antigravity', 'windsurf', 'qoder', 'codebuddy', or 'copilot')"
593
+ f"Unsupported platform: {platform} (must be 'claude', 'opencode', 'cursor', 'iflow', 'codex', 'kilo', 'kiro', 'gemini', 'antigravity', 'windsurf', 'qoder', 'codebuddy', 'copilot', or 'droid')"
575
594
  )
576
595
 
577
596
  return CLIAdapter(platform=platform) # type: ignore
@@ -592,6 +611,7 @@ _ALL_PLATFORM_CONFIG_DIRS = (
592
611
  ".qoder",
593
612
  ".codebuddy",
594
613
  ".github/copilot",
614
+ ".factory",
595
615
  )
596
616
  """All platform config directory names (used by detect_platform exclusion checks)."""
597
617
 
@@ -647,6 +667,7 @@ def detect_platform(project_root: Path) -> Platform:
647
667
  "qoder",
648
668
  "codebuddy",
649
669
  "copilot",
670
+ "droid",
650
671
  ):
651
672
  return env_platform # type: ignore
652
673
 
@@ -712,6 +733,10 @@ def detect_platform(project_root: Path) -> Platform:
712
733
  if (project_root / ".github" / "copilot").is_dir():
713
734
  return "copilot"
714
735
 
736
+ # Check for .factory directory (Factory Droid-specific)
737
+ if (project_root / ".factory").is_dir():
738
+ return "droid"
739
+
715
740
  return "claude"
716
741
 
717
742
 
@@ -6,16 +6,16 @@
6
6
  /**
7
7
  * Supported AI coding tools
8
8
  */
9
- export type AITool = "claude-code" | "cursor" | "opencode" | "iflow" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "windsurf" | "qoder" | "codebuddy" | "copilot";
9
+ export type AITool = "claude-code" | "cursor" | "opencode" | "iflow" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "windsurf" | "qoder" | "codebuddy" | "copilot" | "droid";
10
10
  /**
11
11
  * Template directory categories
12
12
  */
13
- export type TemplateDir = "common" | "claude" | "cursor" | "opencode" | "iflow" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "windsurf" | "qoder" | "codebuddy" | "copilot";
13
+ export type TemplateDir = "common" | "claude" | "cursor" | "opencode" | "iflow" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "windsurf" | "qoder" | "codebuddy" | "copilot" | "droid";
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" | "iflow" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "windsurf" | "qoder" | "codebuddy" | "copilot";
18
+ export type CliFlag = "claude" | "cursor" | "opencode" | "iflow" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "windsurf" | "qoder" | "codebuddy" | "copilot" | "droid";
19
19
  /**
20
20
  * Configuration for an AI tool
21
21
  */