@fifine/aim-studio 0.0.2 → 0.0.4
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 +65 -99
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +123 -101
- package/dist/commands/init.js.map +1 -1
- package/dist/configurators/workflow.d.ts.map +1 -1
- package/dist/configurators/workflow.js +91 -65
- package/dist/configurators/workflow.js.map +1 -1
- package/dist/constants/paths.d.ts +5 -5
- package/dist/constants/paths.d.ts.map +1 -1
- package/dist/constants/paths.js +5 -5
- package/dist/constants/paths.js.map +1 -1
- package/dist/templates/aim/index.d.ts +1 -0
- package/dist/templates/aim/index.d.ts.map +1 -1
- package/dist/templates/aim/index.js +2 -0
- package/dist/templates/aim/index.js.map +1 -1
- package/dist/templates/aim/scripts/common/developer.py +2 -1
- package/dist/templates/aim/scripts/common/paths.py +3 -2
- package/dist/templates/aim/scripts/export.py +718 -0
- package/dist/templates/aim/workflow.md +12 -13
- package/dist/templates/claude/commands/aim/export.md +258 -108
- package/dist/templates/claude/commands/aim/finish-work.md +23 -0
- package/dist/templates/claude/commands/aim/onboard.md +10 -8
- package/dist/templates/claude/commands/aim/start.md +104 -37
- package/dist/templates/claude/commands/aim/story.md +275 -67
- package/dist/templates/claude/hooks/inject-subagent-context.py +6 -10
- package/dist/templates/claude/hooks/session-start.py +134 -24
- package/dist/templates/markdown/index.d.ts +5 -0
- package/dist/templates/markdown/index.d.ts.map +1 -1
- package/dist/templates/markdown/index.js +6 -0
- package/dist/templates/markdown/index.js.map +1 -1
- package/dist/templates/markdown/spec/cli/directory-structure.md.txt +71 -0
- package/dist/templates/markdown/spec/cli/error-handling.md.txt +91 -0
- package/dist/templates/markdown/spec/cli/index.md.txt +37 -0
- package/dist/templates/markdown/spec/cli/options-flags.md.txt +71 -0
- package/dist/templates/markdown/spec/cli/output-formatting.md.txt +93 -0
- package/dist/utils/project-detector.d.ts +1 -1
- package/dist/utils/project-detector.d.ts.map +1 -1
- package/dist/utils/project-detector.js +20 -0
- package/dist/utils/project-detector.js.map +1 -1
- package/package.json +1 -1
- package/dist/templates/claude/commands/trellis/before-backend-dev.md +0 -13
- package/dist/templates/claude/commands/trellis/before-frontend-dev.md +0 -13
- package/dist/templates/claude/commands/trellis/break-loop.md +0 -125
- package/dist/templates/claude/commands/trellis/check-backend.md +0 -13
- package/dist/templates/claude/commands/trellis/check-cross-layer.md +0 -153
- package/dist/templates/claude/commands/trellis/check-frontend.md +0 -13
- package/dist/templates/claude/commands/trellis/create-command.md +0 -154
- package/dist/templates/claude/commands/trellis/finish-work.md +0 -129
- package/dist/templates/claude/commands/trellis/integrate-skill.md +0 -219
- package/dist/templates/claude/commands/trellis/onboard.md +0 -358
- package/dist/templates/claude/commands/trellis/parallel.md +0 -193
- package/dist/templates/claude/commands/trellis/record-session.md +0 -62
- package/dist/templates/claude/commands/trellis/start.md +0 -280
- package/dist/templates/claude/commands/trellis/update-spec.md +0 -285
- package/dist/templates/trellis/gitignore.txt +0 -29
- package/dist/templates/trellis/index.d.ts +0 -49
- package/dist/templates/trellis/index.d.ts.map +0 -1
- package/dist/templates/trellis/index.js +0 -92
- package/dist/templates/trellis/index.js.map +0 -1
- package/dist/templates/trellis/scripts/__init__.py +0 -5
- package/dist/templates/trellis/scripts/add_session.py +0 -392
- package/dist/templates/trellis/scripts/common/__init__.py +0 -80
- package/dist/templates/trellis/scripts/common/cli_adapter.py +0 -435
- package/dist/templates/trellis/scripts/common/developer.py +0 -190
- package/dist/templates/trellis/scripts/common/git_context.py +0 -383
- package/dist/templates/trellis/scripts/common/paths.py +0 -347
- package/dist/templates/trellis/scripts/common/phase.py +0 -253
- package/dist/templates/trellis/scripts/common/registry.py +0 -366
- package/dist/templates/trellis/scripts/common/task_queue.py +0 -255
- package/dist/templates/trellis/scripts/common/task_utils.py +0 -178
- package/dist/templates/trellis/scripts/common/worktree.py +0 -219
- package/dist/templates/trellis/scripts/create_bootstrap.py +0 -290
- package/dist/templates/trellis/scripts/get_context.py +0 -16
- package/dist/templates/trellis/scripts/get_developer.py +0 -26
- package/dist/templates/trellis/scripts/init_developer.py +0 -51
- package/dist/templates/trellis/scripts/multi_agent/__init__.py +0 -5
- package/dist/templates/trellis/scripts/multi_agent/cleanup.py +0 -403
- package/dist/templates/trellis/scripts/multi_agent/create_pr.py +0 -329
- package/dist/templates/trellis/scripts/multi_agent/plan.py +0 -233
- package/dist/templates/trellis/scripts/multi_agent/start.py +0 -461
- package/dist/templates/trellis/scripts/multi_agent/status.py +0 -817
- package/dist/templates/trellis/scripts/task.py +0 -1056
- package/dist/templates/trellis/scripts-shell-archive/add-session.sh +0 -384
- package/dist/templates/trellis/scripts-shell-archive/common/developer.sh +0 -129
- package/dist/templates/trellis/scripts-shell-archive/common/git-context.sh +0 -263
- package/dist/templates/trellis/scripts-shell-archive/common/paths.sh +0 -208
- package/dist/templates/trellis/scripts-shell-archive/common/phase.sh +0 -150
- package/dist/templates/trellis/scripts-shell-archive/common/registry.sh +0 -247
- package/dist/templates/trellis/scripts-shell-archive/common/task-queue.sh +0 -142
- package/dist/templates/trellis/scripts-shell-archive/common/task-utils.sh +0 -151
- package/dist/templates/trellis/scripts-shell-archive/common/worktree.sh +0 -128
- package/dist/templates/trellis/scripts-shell-archive/create-bootstrap.sh +0 -299
- package/dist/templates/trellis/scripts-shell-archive/get-context.sh +0 -7
- package/dist/templates/trellis/scripts-shell-archive/get-developer.sh +0 -15
- package/dist/templates/trellis/scripts-shell-archive/init-developer.sh +0 -34
- package/dist/templates/trellis/scripts-shell-archive/multi-agent/cleanup.sh +0 -396
- package/dist/templates/trellis/scripts-shell-archive/multi-agent/create-pr.sh +0 -241
- package/dist/templates/trellis/scripts-shell-archive/multi-agent/plan.sh +0 -207
- package/dist/templates/trellis/scripts-shell-archive/multi-agent/start.sh +0 -317
- package/dist/templates/trellis/scripts-shell-archive/multi-agent/status.sh +0 -828
- package/dist/templates/trellis/scripts-shell-archive/task.sh +0 -1204
- package/dist/templates/trellis/tasks/.gitkeep +0 -0
- package/dist/templates/trellis/workflow.md +0 -416
- package/dist/templates/trellis/worktree.yaml +0 -47
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
# Update Spec - Capture Knowledge into Specifications
|
|
2
|
-
|
|
3
|
-
When you learn something valuable (from debugging, implementing, or discussion), use this command to update the relevant spec documents.
|
|
4
|
-
|
|
5
|
-
**Timing**: After completing a task, fixing a bug, or discovering a new pattern
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## When to Update Specs
|
|
10
|
-
|
|
11
|
-
| Trigger | Example | Target Spec |
|
|
12
|
-
|---------|---------|-------------|
|
|
13
|
-
| **Implemented a feature** | Added template download with giget | Relevant `backend/` or `frontend/` file |
|
|
14
|
-
| **Made a design decision** | Used type field + mapping table for extensibility | Relevant spec + "Design Decisions" section |
|
|
15
|
-
| **Fixed a bug** | Found a subtle issue with error handling | `backend/error-handling.md` |
|
|
16
|
-
| **Discovered a pattern** | Found a better way to structure code | Relevant `backend/` or `frontend/` file |
|
|
17
|
-
| **Hit a gotcha** | Learned that X must be done before Y | Relevant spec + "Common Mistakes" section |
|
|
18
|
-
| **Established a convention** | Team agreed on naming pattern | `quality-guidelines.md` |
|
|
19
|
-
| **New thinking trigger** | "Don't forget to check X before doing Y" | `guides/*.md` (as a checklist item, not detailed rules) |
|
|
20
|
-
|
|
21
|
-
**Key Insight**: Spec updates are NOT just for problems. Every feature implementation contains design decisions and project conventions that future AI/developers need to know.
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
## Spec Structure Overview
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
.trellis/spec/
|
|
29
|
-
├── backend/ # Backend coding standards
|
|
30
|
-
│ ├── index.md # Overview and links
|
|
31
|
-
│ └── *.md # Topic-specific guidelines
|
|
32
|
-
├── frontend/ # Frontend coding standards
|
|
33
|
-
│ ├── index.md # Overview and links
|
|
34
|
-
│ └── *.md # Topic-specific guidelines
|
|
35
|
-
└── guides/ # Thinking checklists (NOT coding specs!)
|
|
36
|
-
├── index.md # Guide index
|
|
37
|
-
└── *.md # Topic-specific guides
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### CRITICAL: Spec vs Guide - Know the Difference
|
|
41
|
-
|
|
42
|
-
| Type | Location | Purpose | Content Style |
|
|
43
|
-
|------|----------|---------|---------------|
|
|
44
|
-
| **Spec** | `backend/*.md`, `frontend/*.md` | Tell AI "how to write code" | Detailed rules, code examples, forbidden patterns |
|
|
45
|
-
| **Guide** | `guides/*.md` | Help AI "what to think about" | Checklists, questions, pointers to specs |
|
|
46
|
-
|
|
47
|
-
**Decision Rule**: Ask yourself:
|
|
48
|
-
|
|
49
|
-
- "This is **how to write** the code" → Put in `backend/` or `frontend/`
|
|
50
|
-
- "This is **what to consider** before writing" → Put in `guides/`
|
|
51
|
-
|
|
52
|
-
**Example**:
|
|
53
|
-
|
|
54
|
-
| Learning | Wrong Location | Correct Location |
|
|
55
|
-
|----------|----------------|------------------|
|
|
56
|
-
| "Use `reconfigure()` not `TextIOWrapper` for Windows stdout" | ❌ `guides/cross-platform-thinking-guide.md` | ✅ `backend/script-conventions.md` |
|
|
57
|
-
| "Remember to check encoding when writing cross-platform code" | ❌ `backend/script-conventions.md` | ✅ `guides/cross-platform-thinking-guide.md` |
|
|
58
|
-
|
|
59
|
-
**Guides should be short checklists that point to specs**, not duplicate the detailed rules.
|
|
60
|
-
|
|
61
|
-
---
|
|
62
|
-
|
|
63
|
-
## Update Process
|
|
64
|
-
|
|
65
|
-
### Step 1: Identify What You Learned
|
|
66
|
-
|
|
67
|
-
Answer these questions:
|
|
68
|
-
|
|
69
|
-
1. **What did you learn?** (Be specific)
|
|
70
|
-
2. **Why is it important?** (What problem does it prevent?)
|
|
71
|
-
3. **Where does it belong?** (Which spec file?)
|
|
72
|
-
|
|
73
|
-
### Step 2: Classify the Update Type
|
|
74
|
-
|
|
75
|
-
| Type | Description | Action |
|
|
76
|
-
|------|-------------|--------|
|
|
77
|
-
| **Design Decision** | Why we chose approach X over Y | Add to "Design Decisions" section |
|
|
78
|
-
| **Project Convention** | How we do X in this project | Add to relevant section with examples |
|
|
79
|
-
| **New Pattern** | A reusable approach discovered | Add to "Patterns" section |
|
|
80
|
-
| **Forbidden Pattern** | Something that causes problems | Add to "Anti-patterns" or "Don't" section |
|
|
81
|
-
| **Common Mistake** | Easy-to-make error | Add to "Common Mistakes" section |
|
|
82
|
-
| **Convention** | Agreed-upon standard | Add to relevant section |
|
|
83
|
-
| **Gotcha** | Non-obvious behavior | Add warning callout |
|
|
84
|
-
|
|
85
|
-
### Step 3: Read the Target Spec
|
|
86
|
-
|
|
87
|
-
Before editing, read the current spec to:
|
|
88
|
-
- Understand existing structure
|
|
89
|
-
- Avoid duplicating content
|
|
90
|
-
- Find the right section for your update
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
cat .trellis/spec/<category>/<file>.md
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
### Step 4: Make the Update
|
|
97
|
-
|
|
98
|
-
Follow these principles:
|
|
99
|
-
|
|
100
|
-
1. **Be Specific**: Include concrete examples, not just abstract rules
|
|
101
|
-
2. **Explain Why**: State the problem this prevents
|
|
102
|
-
3. **Show Code**: Add code snippets for patterns
|
|
103
|
-
4. **Keep it Short**: One concept per section
|
|
104
|
-
|
|
105
|
-
### Step 5: Update the Index (if needed)
|
|
106
|
-
|
|
107
|
-
If you added a new section or the spec status changed, update the category's `index.md`.
|
|
108
|
-
|
|
109
|
-
---
|
|
110
|
-
|
|
111
|
-
## Update Templates
|
|
112
|
-
|
|
113
|
-
### Adding a Design Decision
|
|
114
|
-
|
|
115
|
-
```markdown
|
|
116
|
-
### Design Decision: [Decision Name]
|
|
117
|
-
|
|
118
|
-
**Context**: What problem were we solving?
|
|
119
|
-
|
|
120
|
-
**Options Considered**:
|
|
121
|
-
1. Option A - brief description
|
|
122
|
-
2. Option B - brief description
|
|
123
|
-
|
|
124
|
-
**Decision**: We chose Option X because...
|
|
125
|
-
|
|
126
|
-
**Example**:
|
|
127
|
-
\`\`\`typescript
|
|
128
|
-
// How it's implemented
|
|
129
|
-
code example
|
|
130
|
-
\`\`\`
|
|
131
|
-
|
|
132
|
-
**Extensibility**: How to extend this in the future...
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
### Adding a Project Convention
|
|
136
|
-
|
|
137
|
-
```markdown
|
|
138
|
-
### Convention: [Convention Name]
|
|
139
|
-
|
|
140
|
-
**What**: Brief description of the convention.
|
|
141
|
-
|
|
142
|
-
**Why**: Why we do it this way in this project.
|
|
143
|
-
|
|
144
|
-
**Example**:
|
|
145
|
-
\`\`\`typescript
|
|
146
|
-
// How to follow this convention
|
|
147
|
-
code example
|
|
148
|
-
\`\`\`
|
|
149
|
-
|
|
150
|
-
**Related**: Links to related conventions or specs.
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
### Adding a New Pattern
|
|
154
|
-
|
|
155
|
-
```markdown
|
|
156
|
-
### Pattern Name
|
|
157
|
-
|
|
158
|
-
**Problem**: What problem does this solve?
|
|
159
|
-
|
|
160
|
-
**Solution**: Brief description of the approach.
|
|
161
|
-
|
|
162
|
-
**Example**:
|
|
163
|
-
\`\`\`
|
|
164
|
-
// Good
|
|
165
|
-
code example
|
|
166
|
-
|
|
167
|
-
// Bad
|
|
168
|
-
code example
|
|
169
|
-
\`\`\`
|
|
170
|
-
|
|
171
|
-
**Why**: Explanation of why this works better.
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
### Adding a Forbidden Pattern
|
|
175
|
-
|
|
176
|
-
```markdown
|
|
177
|
-
### Don't: Pattern Name
|
|
178
|
-
|
|
179
|
-
**Problem**:
|
|
180
|
-
\`\`\`
|
|
181
|
-
// Don't do this
|
|
182
|
-
bad code example
|
|
183
|
-
\`\`\`
|
|
184
|
-
|
|
185
|
-
**Why it's bad**: Explanation of the issue.
|
|
186
|
-
|
|
187
|
-
**Instead**:
|
|
188
|
-
\`\`\`
|
|
189
|
-
// Do this instead
|
|
190
|
-
good code example
|
|
191
|
-
\`\`\`
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
### Adding a Common Mistake
|
|
195
|
-
|
|
196
|
-
```markdown
|
|
197
|
-
### Common Mistake: Description
|
|
198
|
-
|
|
199
|
-
**Symptom**: What goes wrong
|
|
200
|
-
|
|
201
|
-
**Cause**: Why this happens
|
|
202
|
-
|
|
203
|
-
**Fix**: How to correct it
|
|
204
|
-
|
|
205
|
-
**Prevention**: How to avoid it in the future
|
|
206
|
-
```
|
|
207
|
-
|
|
208
|
-
### Adding a Gotcha
|
|
209
|
-
|
|
210
|
-
```markdown
|
|
211
|
-
> **Warning**: Brief description of the non-obvious behavior.
|
|
212
|
-
>
|
|
213
|
-
> Details about when this happens and how to handle it.
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
---
|
|
217
|
-
|
|
218
|
-
## Interactive Mode
|
|
219
|
-
|
|
220
|
-
If you're unsure what to update, answer these prompts:
|
|
221
|
-
|
|
222
|
-
1. **What did you just finish?**
|
|
223
|
-
- [ ] Fixed a bug
|
|
224
|
-
- [ ] Implemented a feature
|
|
225
|
-
- [ ] Refactored code
|
|
226
|
-
- [ ] Had a discussion about approach
|
|
227
|
-
|
|
228
|
-
2. **What did you learn or decide?**
|
|
229
|
-
- Design decision (why X over Y)
|
|
230
|
-
- Project convention (how we do X)
|
|
231
|
-
- Non-obvious behavior (gotcha)
|
|
232
|
-
- Better approach (pattern)
|
|
233
|
-
|
|
234
|
-
3. **Would future AI/developers need to know this?**
|
|
235
|
-
- To understand how the code works → Yes, update spec
|
|
236
|
-
- To maintain or extend the feature → Yes, update spec
|
|
237
|
-
- To avoid repeating mistakes → Yes, update spec
|
|
238
|
-
- Purely one-off implementation detail → Maybe skip
|
|
239
|
-
|
|
240
|
-
4. **Which area does it relate to?**
|
|
241
|
-
- [ ] Backend code
|
|
242
|
-
- [ ] Frontend code
|
|
243
|
-
- [ ] Cross-layer data flow
|
|
244
|
-
- [ ] Code organization/reuse
|
|
245
|
-
- [ ] Quality/testing
|
|
246
|
-
|
|
247
|
-
---
|
|
248
|
-
|
|
249
|
-
## Quality Checklist
|
|
250
|
-
|
|
251
|
-
Before finishing your spec update:
|
|
252
|
-
|
|
253
|
-
- [ ] Is the content specific and actionable?
|
|
254
|
-
- [ ] Did you include a code example?
|
|
255
|
-
- [ ] Did you explain WHY, not just WHAT?
|
|
256
|
-
- [ ] Is it in the right spec file?
|
|
257
|
-
- [ ] Does it duplicate existing content?
|
|
258
|
-
- [ ] Would a new team member understand it?
|
|
259
|
-
|
|
260
|
-
---
|
|
261
|
-
|
|
262
|
-
## Relationship to Other Commands
|
|
263
|
-
|
|
264
|
-
```
|
|
265
|
-
Development Flow:
|
|
266
|
-
Learn something → /trellis:update-spec → Knowledge captured
|
|
267
|
-
↑ ↓
|
|
268
|
-
/trellis:break-loop ←──────────────────── Future sessions benefit
|
|
269
|
-
(deep bug analysis)
|
|
270
|
-
```
|
|
271
|
-
|
|
272
|
-
- `/trellis:break-loop` - Analyzes bugs deeply, often reveals spec updates needed
|
|
273
|
-
- `/trellis:update-spec` - Actually makes the updates (this command)
|
|
274
|
-
- `/trellis:finish-work` - Reminds you to check if specs need updates
|
|
275
|
-
|
|
276
|
-
---
|
|
277
|
-
|
|
278
|
-
## Core Philosophy
|
|
279
|
-
|
|
280
|
-
> **Specs are living documents. Every debugging session, every "aha moment" is an opportunity to make the spec better.**
|
|
281
|
-
|
|
282
|
-
The goal is **institutional memory**:
|
|
283
|
-
- What one person learns, everyone benefits from
|
|
284
|
-
- What AI learns in one session, persists to future sessions
|
|
285
|
-
- Mistakes become documented guardrails
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# Developer identity (local only)
|
|
2
|
-
.developer
|
|
3
|
-
|
|
4
|
-
# Current task pointer (each dev works on different task)
|
|
5
|
-
.current-task
|
|
6
|
-
|
|
7
|
-
# Ralph Loop state file
|
|
8
|
-
.ralph-state.json
|
|
9
|
-
|
|
10
|
-
# Agent runtime files
|
|
11
|
-
.agents/
|
|
12
|
-
.agent-log
|
|
13
|
-
.session-id
|
|
14
|
-
|
|
15
|
-
# Task directory runtime files
|
|
16
|
-
.plan-log
|
|
17
|
-
|
|
18
|
-
# Atomic update temp files
|
|
19
|
-
*.tmp
|
|
20
|
-
|
|
21
|
-
# Update backup directories
|
|
22
|
-
.backup-*
|
|
23
|
-
|
|
24
|
-
# Conflict resolution temp files
|
|
25
|
-
*.new
|
|
26
|
-
|
|
27
|
-
# Python cache
|
|
28
|
-
**/__pycache__/
|
|
29
|
-
**/*.pyc
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Trellis workflow templates
|
|
3
|
-
*
|
|
4
|
-
* These are GENERIC templates for user projects.
|
|
5
|
-
* Do NOT use Trellis project's own .trellis/ directory (which may be customized).
|
|
6
|
-
*
|
|
7
|
-
* Directory structure:
|
|
8
|
-
* trellis/
|
|
9
|
-
* ├── scripts/
|
|
10
|
-
* │ ├── __init__.py
|
|
11
|
-
* │ ├── common/ # Shared utilities (Python)
|
|
12
|
-
* │ ├── multi_agent/ # Multi-agent pipeline scripts (Python)
|
|
13
|
-
* │ └── *.py # Main scripts (Python)
|
|
14
|
-
* ├── scripts-shell-archive/ # Archived shell scripts (for reference)
|
|
15
|
-
* ├── workflow.md # Workflow guide
|
|
16
|
-
* ├── worktree.yaml # Worktree configuration
|
|
17
|
-
* └── gitignore.txt # .gitignore content
|
|
18
|
-
*/
|
|
19
|
-
export declare const scriptsInit: string;
|
|
20
|
-
export declare const commonInit: string;
|
|
21
|
-
export declare const commonPaths: string;
|
|
22
|
-
export declare const commonDeveloper: string;
|
|
23
|
-
export declare const commonGitContext: string;
|
|
24
|
-
export declare const commonWorktree: string;
|
|
25
|
-
export declare const commonTaskQueue: string;
|
|
26
|
-
export declare const commonTaskUtils: string;
|
|
27
|
-
export declare const commonPhase: string;
|
|
28
|
-
export declare const commonRegistry: string;
|
|
29
|
-
export declare const commonCliAdapter: string;
|
|
30
|
-
export declare const multiAgentInit: string;
|
|
31
|
-
export declare const multiAgentStart: string;
|
|
32
|
-
export declare const multiAgentCleanup: string;
|
|
33
|
-
export declare const multiAgentStatus: string;
|
|
34
|
-
export declare const multiAgentCreatePr: string;
|
|
35
|
-
export declare const multiAgentPlan: string;
|
|
36
|
-
export declare const getDeveloperScript: string;
|
|
37
|
-
export declare const initDeveloperScript: string;
|
|
38
|
-
export declare const taskScript: string;
|
|
39
|
-
export declare const getContextScript: string;
|
|
40
|
-
export declare const addSessionScript: string;
|
|
41
|
-
export declare const createBootstrapScript: string;
|
|
42
|
-
export declare const workflowMdTemplate: string;
|
|
43
|
-
export declare const worktreeYamlTemplate: string;
|
|
44
|
-
export declare const gitignoreTemplate: string;
|
|
45
|
-
/**
|
|
46
|
-
* Get all script templates as a map of relative path to content
|
|
47
|
-
*/
|
|
48
|
-
export declare function getAllScripts(): Map<string, string>;
|
|
49
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/trellis/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAcH,eAAO,MAAM,WAAW,QAAsC,CAAC;AAG/D,eAAO,MAAM,UAAU,QAA6C,CAAC;AACrE,eAAO,MAAM,WAAW,QAA0C,CAAC;AACnE,eAAO,MAAM,eAAe,QAA8C,CAAC;AAC3E,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAC9E,eAAO,MAAM,cAAc,QAA6C,CAAC;AACzE,eAAO,MAAM,eAAe,QAA+C,CAAC;AAC5E,eAAO,MAAM,eAAe,QAA+C,CAAC;AAC5E,eAAO,MAAM,WAAW,QAA0C,CAAC;AACnE,eAAO,MAAM,cAAc,QAA6C,CAAC;AACzE,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAG9E,eAAO,MAAM,cAAc,QAAkD,CAAC;AAC9E,eAAO,MAAM,eAAe,QAA+C,CAAC;AAC5E,eAAO,MAAM,iBAAiB,QAAiD,CAAC;AAChF,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAC9E,eAAO,MAAM,kBAAkB,QAAmD,CAAC;AACnF,eAAO,MAAM,cAAc,QAA8C,CAAC;AAG1E,eAAO,MAAM,kBAAkB,QAA2C,CAAC;AAC3E,eAAO,MAAM,mBAAmB,QAA4C,CAAC;AAC7E,eAAO,MAAM,UAAU,QAAkC,CAAC;AAC1D,eAAO,MAAM,gBAAgB,QAAyC,CAAC;AACvE,eAAO,MAAM,gBAAgB,QAAyC,CAAC;AACvE,eAAO,MAAM,qBAAqB,QAA8C,CAAC;AAGjF,eAAO,MAAM,kBAAkB,QAA8B,CAAC;AAC9D,eAAO,MAAM,oBAAoB,QAAgC,CAAC;AAClE,eAAO,MAAM,iBAAiB,QAAgC,CAAC;AAE/D;;GAEG;AACH,wBAAgB,aAAa,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAmCnD"}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Trellis workflow templates
|
|
3
|
-
*
|
|
4
|
-
* These are GENERIC templates for user projects.
|
|
5
|
-
* Do NOT use Trellis project's own .trellis/ directory (which may be customized).
|
|
6
|
-
*
|
|
7
|
-
* Directory structure:
|
|
8
|
-
* trellis/
|
|
9
|
-
* ├── scripts/
|
|
10
|
-
* │ ├── __init__.py
|
|
11
|
-
* │ ├── common/ # Shared utilities (Python)
|
|
12
|
-
* │ ├── multi_agent/ # Multi-agent pipeline scripts (Python)
|
|
13
|
-
* │ └── *.py # Main scripts (Python)
|
|
14
|
-
* ├── scripts-shell-archive/ # Archived shell scripts (for reference)
|
|
15
|
-
* ├── workflow.md # Workflow guide
|
|
16
|
-
* ├── worktree.yaml # Worktree configuration
|
|
17
|
-
* └── gitignore.txt # .gitignore content
|
|
18
|
-
*/
|
|
19
|
-
import { readFileSync } from "node:fs";
|
|
20
|
-
import { dirname, join } from "node:path";
|
|
21
|
-
import { fileURLToPath } from "node:url";
|
|
22
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
23
|
-
const __dirname = dirname(__filename);
|
|
24
|
-
function readTemplate(relativePath) {
|
|
25
|
-
return readFileSync(join(__dirname, relativePath), "utf-8");
|
|
26
|
-
}
|
|
27
|
-
// Python scripts - package init
|
|
28
|
-
export const scriptsInit = readTemplate("scripts/__init__.py");
|
|
29
|
-
// Python scripts - common
|
|
30
|
-
export const commonInit = readTemplate("scripts/common/__init__.py");
|
|
31
|
-
export const commonPaths = readTemplate("scripts/common/paths.py");
|
|
32
|
-
export const commonDeveloper = readTemplate("scripts/common/developer.py");
|
|
33
|
-
export const commonGitContext = readTemplate("scripts/common/git_context.py");
|
|
34
|
-
export const commonWorktree = readTemplate("scripts/common/worktree.py");
|
|
35
|
-
export const commonTaskQueue = readTemplate("scripts/common/task_queue.py");
|
|
36
|
-
export const commonTaskUtils = readTemplate("scripts/common/task_utils.py");
|
|
37
|
-
export const commonPhase = readTemplate("scripts/common/phase.py");
|
|
38
|
-
export const commonRegistry = readTemplate("scripts/common/registry.py");
|
|
39
|
-
export const commonCliAdapter = readTemplate("scripts/common/cli_adapter.py");
|
|
40
|
-
// Python scripts - multi_agent
|
|
41
|
-
export const multiAgentInit = readTemplate("scripts/multi_agent/__init__.py");
|
|
42
|
-
export const multiAgentStart = readTemplate("scripts/multi_agent/start.py");
|
|
43
|
-
export const multiAgentCleanup = readTemplate("scripts/multi_agent/cleanup.py");
|
|
44
|
-
export const multiAgentStatus = readTemplate("scripts/multi_agent/status.py");
|
|
45
|
-
export const multiAgentCreatePr = readTemplate("scripts/multi_agent/create_pr.py");
|
|
46
|
-
export const multiAgentPlan = readTemplate("scripts/multi_agent/plan.py");
|
|
47
|
-
// Python scripts - main
|
|
48
|
-
export const getDeveloperScript = readTemplate("scripts/get_developer.py");
|
|
49
|
-
export const initDeveloperScript = readTemplate("scripts/init_developer.py");
|
|
50
|
-
export const taskScript = readTemplate("scripts/task.py");
|
|
51
|
-
export const getContextScript = readTemplate("scripts/get_context.py");
|
|
52
|
-
export const addSessionScript = readTemplate("scripts/add_session.py");
|
|
53
|
-
export const createBootstrapScript = readTemplate("scripts/create_bootstrap.py");
|
|
54
|
-
// Configuration files
|
|
55
|
-
export const workflowMdTemplate = readTemplate("workflow.md");
|
|
56
|
-
export const worktreeYamlTemplate = readTemplate("worktree.yaml");
|
|
57
|
-
export const gitignoreTemplate = readTemplate("gitignore.txt");
|
|
58
|
-
/**
|
|
59
|
-
* Get all script templates as a map of relative path to content
|
|
60
|
-
*/
|
|
61
|
-
export function getAllScripts() {
|
|
62
|
-
const scripts = new Map();
|
|
63
|
-
// Package init
|
|
64
|
-
scripts.set("__init__.py", scriptsInit);
|
|
65
|
-
// Common
|
|
66
|
-
scripts.set("common/__init__.py", commonInit);
|
|
67
|
-
scripts.set("common/paths.py", commonPaths);
|
|
68
|
-
scripts.set("common/developer.py", commonDeveloper);
|
|
69
|
-
scripts.set("common/git_context.py", commonGitContext);
|
|
70
|
-
scripts.set("common/worktree.py", commonWorktree);
|
|
71
|
-
scripts.set("common/task_queue.py", commonTaskQueue);
|
|
72
|
-
scripts.set("common/task_utils.py", commonTaskUtils);
|
|
73
|
-
scripts.set("common/phase.py", commonPhase);
|
|
74
|
-
scripts.set("common/registry.py", commonRegistry);
|
|
75
|
-
scripts.set("common/cli_adapter.py", commonCliAdapter);
|
|
76
|
-
// Multi-agent
|
|
77
|
-
scripts.set("multi_agent/__init__.py", multiAgentInit);
|
|
78
|
-
scripts.set("multi_agent/start.py", multiAgentStart);
|
|
79
|
-
scripts.set("multi_agent/cleanup.py", multiAgentCleanup);
|
|
80
|
-
scripts.set("multi_agent/status.py", multiAgentStatus);
|
|
81
|
-
scripts.set("multi_agent/create_pr.py", multiAgentCreatePr);
|
|
82
|
-
scripts.set("multi_agent/plan.py", multiAgentPlan);
|
|
83
|
-
// Main
|
|
84
|
-
scripts.set("get_developer.py", getDeveloperScript);
|
|
85
|
-
scripts.set("init_developer.py", initDeveloperScript);
|
|
86
|
-
scripts.set("task.py", taskScript);
|
|
87
|
-
scripts.set("get_context.py", getContextScript);
|
|
88
|
-
scripts.set("add_session.py", addSessionScript);
|
|
89
|
-
scripts.set("create_bootstrap.py", createBootstrapScript);
|
|
90
|
-
return scripts;
|
|
91
|
-
}
|
|
92
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/trellis/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,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,gCAAgC;AAChC,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAC;AAE/D,0BAA0B;AAC1B,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC,4BAA4B,CAAC,CAAC;AACrE,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC,yBAAyB,CAAC,CAAC;AACnE,MAAM,CAAC,MAAM,eAAe,GAAG,YAAY,CAAC,6BAA6B,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,gBAAgB,GAAG,YAAY,CAAC,+BAA+B,CAAC,CAAC;AAC9E,MAAM,CAAC,MAAM,cAAc,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