create-claude-workspace 2.1.11 → 2.2.1
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/scheduler/agents/prompt-builder.mjs +21 -0
- package/dist/scheduler/git/manager.mjs +78 -0
- package/dist/scheduler/git/manager.spec.js +63 -1
- package/dist/scheduler/git/pr-manager.mjs +214 -0
- package/dist/scheduler/git/pr-manager.spec.js +34 -0
- package/dist/scheduler/index.mjs +41 -1
- package/dist/scheduler/integration.spec.js +1 -0
- package/dist/scheduler/loop.mjs +365 -42
- package/dist/scheduler/loop.spec.js +2 -0
- package/dist/scheduler/state/state.mjs +1 -0
- package/dist/scheduler/state/state.spec.js +1 -0
- package/dist/scheduler/tasks/issue-source.mjs +156 -0
- package/dist/scheduler/tasks/issue-source.spec.js +104 -0
- package/dist/scheduler/types.mjs +1 -0
- package/dist/scheduler/util/idle-poll.mjs +27 -2
- package/dist/template/.claude/CLAUDE.md +26 -61
- package/dist/template/.claude/agents/backend-ts-architect.md +2 -2
- package/dist/template/.claude/agents/deployment-engineer.md +3 -3
- package/dist/template/.claude/agents/devops-integrator.md +13 -10
- package/dist/template/.claude/agents/it-analyst.md +108 -0
- package/dist/template/.claude/agents/orchestrator.md +118 -153
- package/dist/template/.claude/agents/product-owner.md +5 -9
- package/dist/template/.claude/agents/project-initializer.md +297 -342
- package/dist/template/.claude/agents/senior-code-reviewer.md +1 -1
- package/dist/template/.claude/agents/technical-planner.md +7 -12
- package/dist/template/.claude/agents/test-engineer.md +1 -1
- package/dist/template/.claude/agents/ui-engineer.md +3 -3
- package/dist/template/.claude/templates/claude-md.md +2 -1
- package/package.json +1 -1
|
@@ -112,7 +112,7 @@ Read `.claude/profiles/frontend.md` for the framework-specific review checklist.
|
|
|
112
112
|
- Flag WARN if existing tests were not updated after modifying the code they cover
|
|
113
113
|
- Do NOT require tests for: pure UI layout components, config files, SCSS, route wiring
|
|
114
114
|
- **Coverage thresholds**: project-wide 80% for statements, branches, functions, and lines. Flag WARN if a new file with business logic has significantly lower coverage than this target.
|
|
115
|
-
- **IMPORTANT**:
|
|
115
|
+
- **IMPORTANT**: If the prompt includes an architect's TESTING section listing files as "no tests needed" with rationale, do NOT flag those files as missing tests. Only flag files that SHOULD have tests but don't, or files not mentioned in the TESTING section that contain business/domain logic.
|
|
116
116
|
- **Visual regression**: For frontend tasks that add or change pages/routes, flag WARN if no VRT test (`*.vrt.spec.ts`) exists for the affected pages. Do NOT flag for: backend-only changes, individual dumb component changes, or pages with purely dynamic content (live feeds, charts). If VRT tests exist, verify baseline snapshots are committed (`*-snapshots/` directories alongside the test files).
|
|
117
117
|
|
|
118
118
|
**Code Duplication (HIGH PRIORITY)**
|
|
@@ -22,7 +22,6 @@ You are a Senior Technical Lead / Solution Architect who translates product requ
|
|
|
22
22
|
Read these files (all mandatory if they exist):
|
|
23
23
|
- `PRODUCT.md` — product strategy, features, priorities (PRIMARY INPUT)
|
|
24
24
|
- `CLAUDE.md` — architecture, tech stack, patterns, conventions
|
|
25
|
-
- `MEMORY.md` — current progress, decisions, blockers (critical when re-invoked during development)
|
|
26
25
|
- `UX.md` — design system, component specs
|
|
27
26
|
- Any existing plan files (`BROWSER_APP_PLAN.md`, `TODO.md`, `PLAN.md`, `MONETIZATION.md`)
|
|
28
27
|
- `package.json` — current dependencies
|
|
@@ -62,6 +61,11 @@ After Phase 0 scaffolding completes, the orchestrator will update CLAUDE.md with
|
|
|
62
61
|
|
|
63
62
|
Create `TODO.md` in the project root. Structure:
|
|
64
63
|
|
|
64
|
+
**Dual-mode output:** If `Task Platform: github` or `Task Platform: gitlab` is set in CLAUDE.md, also create milestones and high-level issues for each phase task on the platform:
|
|
65
|
+
- `Task Platform: github` — use `gh milestone create` for each phase, then `gh issue create` for each task (linked to milestone)
|
|
66
|
+
- `Task Platform: gitlab` — use `glab milestone create` for each phase, then `glab issue create` for each task (linked to milestone)
|
|
67
|
+
- If local mode (no Task Platform field, or `Task Platform: local`), create TODO.md only as described below.
|
|
68
|
+
|
|
65
69
|
```markdown
|
|
66
70
|
# TODO.md
|
|
67
71
|
|
|
@@ -110,7 +114,7 @@ Decisions made during planning that affect implementation.
|
|
|
110
114
|
### 5. Rules for Task Decomposition
|
|
111
115
|
|
|
112
116
|
**Task granularity:**
|
|
113
|
-
- Each task = 1 commit-sized unit of work
|
|
117
|
+
- Each task = 1 commit-sized unit of work
|
|
114
118
|
- If a task would take multiple commits, split it into subtasks
|
|
115
119
|
- Each task must be independently testable/verifiable
|
|
116
120
|
|
|
@@ -151,7 +155,7 @@ The autonomous loop updates TODO.md after each commit:
|
|
|
151
155
|
Examples after completion:
|
|
152
156
|
```
|
|
153
157
|
- [x] **Card domain types** — define Card, CardSet, Price interfaces ✅ a1b2c3d (2026-03-05)
|
|
154
|
-
- [~] ~~**Legacy data migration**~~ — SKIPPED: blocked by missing API credentials
|
|
158
|
+
- [~] ~~**Legacy data migration**~~ — SKIPPED: blocked by missing API credentials
|
|
155
159
|
```
|
|
156
160
|
|
|
157
161
|
### 7. Quality Validation (MANDATORY before handoff)
|
|
@@ -175,15 +179,6 @@ After generating TODO.md, validate it:
|
|
|
175
179
|
- No task has Complexity: L without a note that it may need splitting
|
|
176
180
|
- Phase 0 has all shared infrastructure (types, DI setup, theme, core services)
|
|
177
181
|
|
|
178
|
-
### 8. Handoff
|
|
179
|
-
|
|
180
|
-
After creating and validating TODO.md, tell the user:
|
|
181
|
-
"Technical plan created in TODO.md with [N] phases and [M] tasks.
|
|
182
|
-
- Feature coverage: all P0/P1 features mapped
|
|
183
|
-
- Dependency graph: validated (no cycles)
|
|
184
|
-
Start autonomous development with:
|
|
185
|
-
`/ralph-loop:ralph-loop Use orchestrator agent to continue autonomous development according to CLAUDE.md`"
|
|
186
|
-
|
|
187
182
|
## Principles
|
|
188
183
|
|
|
189
184
|
- **Incremental delivery** — each phase must produce something working and testable
|
|
@@ -452,7 +452,7 @@ Individual files with lower coverage are acceptable if justified (e.g., platform
|
|
|
452
452
|
nx test [PROJECT] --coverage
|
|
453
453
|
```
|
|
454
454
|
|
|
455
|
-
|
|
455
|
+
Always run tests with `--coverage` flag and report coverage summary in your output.
|
|
456
456
|
|
|
457
457
|
## Code Testability Guidance
|
|
458
458
|
|
|
@@ -98,7 +98,7 @@ Write clean, elegant code that is easy to test and reason about:
|
|
|
98
98
|
|
|
99
99
|
## Output Format
|
|
100
100
|
|
|
101
|
-
When called for **planning
|
|
101
|
+
When called for **planning**, always structure your response as:
|
|
102
102
|
|
|
103
103
|
### EXISTING CODE
|
|
104
104
|
What already exists in the codebase that is relevant — reusable components, utilities, shared UI pieces. Reference specific file paths. This section is MANDATORY — you must search before planning.
|
|
@@ -152,12 +152,12 @@ If you received an API contract from the backend architect and it is impractical
|
|
|
152
152
|
Only include this section if there are genuine problems — do NOT nitpick if the contract is workable.
|
|
153
153
|
|
|
154
154
|
### SPLIT RECOMMENDATION (optional)
|
|
155
|
-
If the task is too large
|
|
155
|
+
If the task is too large (would require 8+ files or multiple independent concerns), recommend splitting. List the suggested sub-tasks with their own scope and dependencies.
|
|
156
156
|
Only include this section if splitting is genuinely needed — do NOT split tasks that are naturally cohesive.
|
|
157
157
|
|
|
158
158
|
### VERIFICATION
|
|
159
159
|
How to verify the implementation is correct (build, visual check, test scenarios).
|
|
160
|
-
If the task adds or changes page-level UI, include: "Update VRT baselines if visual output changed intentionally."
|
|
160
|
+
If the task adds or changes page-level UI, include: "Update VRT baselines if visual output changed intentionally."
|
|
161
161
|
|
|
162
162
|
---
|
|
163
163
|
|
|
@@ -38,6 +38,7 @@ When running in autonomous/unattended mode (via `autonomous.mjs` or non-interact
|
|
|
38
38
|
- **Testing**: Vitest
|
|
39
39
|
- **Deployment**: Cloudflare (Pages + Workers) — default
|
|
40
40
|
- **Workflow**: solo / team (solo = direct merge to main, team = MR/PR review required)
|
|
41
|
+
- **Task Platform**: local | github | gitlab
|
|
41
42
|
|
|
42
43
|
[If npm publishing (question 6 = yes):]
|
|
43
44
|
- **Distribution**: npm ([registry], [public/restricted])
|
|
@@ -454,6 +455,6 @@ claude --agent orchestrator
|
|
|
454
455
|
|
|
455
456
|
**Manual** — single iteration (must be run from `claude --agent orchestrator` session):
|
|
456
457
|
```
|
|
457
|
-
Continue development from where
|
|
458
|
+
Continue development from where TODO.md left off
|
|
458
459
|
```
|
|
459
460
|
|