declare-cc 0.5.9 → 0.6.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.
package/bin/declare.js ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ const path = require('path');
5
+ const fs = require('fs');
6
+
7
+ const bundlePath = path.resolve(__dirname, '../dist/declare-tools.cjs');
8
+
9
+ if (!fs.existsSync(bundlePath)) {
10
+ console.error('[declare] Bundle not found: ' + bundlePath);
11
+ console.error('[declare] Run `npm run build` in the declare-cc package directory.');
12
+ process.exit(1);
13
+ }
14
+
15
+ // Forward argv as-is — declare-tools.cjs reads process.argv
16
+ require(bundlePath);
@@ -144,7 +144,7 @@ Locate or create a `## Current State` section. Update it to reflect the complete
144
144
  **Version shipped:** vX.Y (YYYY-MM-DD)
145
145
  **Milestones completed:** [N] ([M-01, M-02, ...])
146
146
  **Known gaps:** [list incomplete milestones, or "None"]
147
- **Next step:** Run /declare:new-milestone to start vX.Z cycle
147
+ **Next step:** Run /declare:new-cycle to start vX.Z cycle
148
148
  ```
149
149
 
150
150
  If the section already exists, update it in place. If it does not exist, append it after the last section.
@@ -197,7 +197,7 @@ git commit -m "chore: archive vX.Y milestone snapshot
197
197
 
198
198
  Next: Start the next milestone cycle.
199
199
 
200
- Run /declare:new-milestone
200
+ Run /declare:new-cycle
201
201
  ```
202
202
 
203
203
  **Error handling:**
@@ -212,4 +212,4 @@ Run /declare:new-milestone
212
212
  - Archive is a snapshot, not a destructive operation — FUTURE.md and MILESTONES.md remain in place.
213
213
  - PROJECT.md is the persistent memory across versions — always update it.
214
214
  - Git tag marks the historical release point for the snapshot.
215
- - This command archives only — use /declare:new-milestone to reset for the next cycle.
215
+ - This command archives only — use /declare:new-cycle to reset for the next cycle.
@@ -126,7 +126,7 @@ Spawning [count] agent(s)...
126
126
 
127
127
  **3c. Spawn executor agents in parallel using the Task tool:**
128
128
 
129
- For each action in the wave, spawn a Task with instructions like:
129
+ For each action in the wave, spawn a Task with `model: "opus"` and instructions like:
130
130
 
131
131
  ```
132
132
  Execute the plan at [outputPath].
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Start a new Declare milestone cycle — archive declarations, reset FUTURE.md and MILESTONES.md, preserve PROJECT.md and STATE.md
2
+ description: Start a new Declare cycle — archive current declarations to FUTURE-ARCHIVE.md, reset FUTURE.md and MILESTONES.md, preserve PROJECT.md and STATE.md
3
3
  allowed-tools:
4
4
  - Read
5
5
  - Write
@@ -77,6 +77,7 @@ Display: `Running /declare:discuss [M-XX]...`
77
77
 
78
78
  Spawn a Task agent:
79
79
  - subagent_type: `general-purpose`
80
+ - model: `opus`
80
81
  - description: `Discuss M-XX implementation decisions`
81
82
  - prompt:
82
83
  ```
@@ -123,7 +124,7 @@ Also read the milestone's PLAN.md (at `milestoneFolderPath/PLAN.md`) for action
123
124
 
124
125
  **Step 6: Spawn declare-planner.**
125
126
 
126
- Spawn a Task agent using `agents/declare-planner.md` with the following prompt:
127
+ Spawn a Task agent using `agents/declare-planner.md` with `model: "opus"` and the following prompt:
127
128
 
128
129
  ```
129
130
  Plan milestone ${MILESTONE} actions.
@@ -150,7 +151,7 @@ Wait for the planner to complete.
150
151
 
151
152
  **Step 7: Spawn declare-plan-checker.**
152
153
 
153
- After planner completes, spawn a Task agent using `agents/declare-plan-checker.md` with the following prompt:
154
+ After planner completes, spawn a Task agent using `agents/declare-plan-checker.md` with `model: "haiku"` and the following prompt:
154
155
 
155
156
  ```
156
157
  Verify EXEC-PLAN files for milestone ${MILESTONE}.
@@ -183,7 +184,7 @@ If **ISSUES FOUND**: proceed to Step 9 (revision loop).
183
184
 
184
185
  Track revision count. If revision count >= 3, skip to Step 9 with a warning.
185
186
 
186
- Spawn declare-planner again in revision mode:
187
+ Spawn declare-planner again in revision mode with `model: "opus"`:
187
188
 
188
189
  ```
189
190
  Revise EXEC-PLAN files for milestone ${MILESTONE} based on checker feedback.
@@ -283,6 +284,7 @@ After displaying the summary, reload the graph and check for milestones that sti
283
284
  For each wave, spawn one Task agent per milestone **in the same response** so they execute in parallel:
284
285
 
285
286
  Subagent type: `gsd-executor`
287
+ model: `opus`
286
288
  Prompt per milestone:
287
289
  ```
288
290
  Execute milestone [M-XX] "[title]" for the Declare project.
@@ -89,11 +89,11 @@ Evaluate project state and present the appropriate option(s):
89
89
 
90
90
  **Route C — All milestones for active declarations complete:**
91
91
  - "All milestones for the current declaration wave are complete."
92
- - Offer: "Run `/declare:complete-milestone` or plan the next milestone with `/declare:new-milestone`"
92
+ - Offer: "Run `/declare:complete-milestone` or plan the next milestone with `/declare:new-cycle`"
93
93
 
94
94
  **Route D — No active milestone:**
95
95
  - "No active milestone found."
96
- - Offer: "Run `/declare:new-milestone` to plan the next milestone, or `/declare:status` to review the full graph"
96
+ - Offer: "Run `/declare:new-cycle` to plan the next milestone, or `/declare:status` to review the full graph"
97
97
 
98
98
  **Route E — No declarations exist:**
99
99
  - "No declarations found. Start by defining what you want to be true."
@@ -62,9 +62,9 @@ Spawning 4 researchers: STACK, FEATURES, ARCHITECTURE, PITFALLS...
62
62
 
63
63
  Spawn all 4 Task agents in the same response so they run in parallel. Each agent researches a specific domain.
64
64
 
65
- For each researcher, the prompt follows this pattern (fill in milestone-specific context):
65
+ For each researcher, the prompt follows this pattern (fill in milestone-specific context). Each researcher Task is spawned with `model: "sonnet"`.
66
66
 
67
- **STACK researcher:**
67
+ **STACK researcher** (model: `sonnet`):
68
68
 
69
69
  ```
70
70
  First, read agents/declare-researcher.md for your role and instructions.
@@ -91,7 +91,7 @@ Do NOT commit — the synthesizer will commit everything together.
91
91
  </output>
92
92
  ```
93
93
 
94
- **FEATURES researcher:**
94
+ **FEATURES researcher** (model: `sonnet`):
95
95
 
96
96
  ```
97
97
  First, read agents/declare-researcher.md for your role and instructions.
@@ -118,7 +118,7 @@ Do NOT commit — the synthesizer will commit everything together.
118
118
  </output>
119
119
  ```
120
120
 
121
- **ARCHITECTURE researcher:**
121
+ **ARCHITECTURE researcher** (model: `sonnet`):
122
122
 
123
123
  ```
124
124
  First, read agents/declare-researcher.md for your role and instructions.
@@ -145,7 +145,7 @@ Do NOT commit — the synthesizer will commit everything together.
145
145
  </output>
146
146
  ```
147
147
 
148
- **PITFALLS researcher:**
148
+ **PITFALLS researcher** (model: `sonnet`):
149
149
 
150
150
  ```
151
151
  First, read agents/declare-researcher.md for your role and instructions.
@@ -191,7 +191,7 @@ Spawning synthesizer...
191
191
 
192
192
  If any researcher returned `## RESEARCH BLOCKED`, surface the blocker to the user before spawning the synthesizer. Ask whether to continue with partial research or abort.
193
193
 
194
- **Step 7: Spawn declare-research-synthesizer.**
194
+ **Step 7: Spawn declare-research-synthesizer** (model: `sonnet`).
195
195
 
196
196
  ```
197
197
  First, read agents/declare-research-synthesizer.md for your role and instructions.
@@ -118,7 +118,7 @@ Evaluate the current project state and present the most relevant next step:
118
118
 
119
119
  **Route D — No active milestone:**
120
120
  - "No active milestone found."
121
- - Offer: "`/declare:new-milestone` to plan next milestone" or "`/declare:status` to review graph"
121
+ - Offer: "`/declare:new-cycle` to plan next milestone" or "`/declare:status` to review graph"
122
122
 
123
123
  **Route E — No project initialized:**
124
124
  - "Project not initialized."
@@ -51,6 +51,7 @@ node dist/declare-tools.cjs commit "test(${MILESTONE_ID}): complete UAT - ${PASS
51
51
  **On gaps found — spawn parallel declare-debugger agents (one per gap):**
52
52
 
53
53
  For each gap in the UAT Gaps section, spawn a declare-debugger agent with:
54
+ - `model: "opus"`
54
55
  - `symptoms_prefilled: true` (skip symptom gathering)
55
56
  - `goal: find_root_cause_only` (diagnose but don't fix)
56
57
  - Pre-filled symptoms from the gap's test_id, expected, and actual fields