declare-cc 0.6.0 → 1.0.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/README.md +72 -32
- package/dist/declare-tools.cjs +2043 -543
- package/dist/public/app.js +2576 -385
- package/dist/public/index.html +984 -37
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
**A future-driven meta-prompting engine for agentic development.**
|
|
6
6
|
|
|
7
|
-
Forked from [GSD (Get Shit Done)](https://github.com/gsd-build/get-shit-done) — replaces linear phase-based planning with a three-layer DAG rooted in declared futures.
|
|
8
|
-
|
|
9
7
|
[](https://www.npmjs.com/package/declare-cc)
|
|
10
8
|
[](LICENSE)
|
|
11
9
|
|
|
@@ -23,14 +21,14 @@ npx declare-cc@latest
|
|
|
23
21
|
|
|
24
22
|
Most planning tools start from the present and work forward — "what should we do first?" Declare starts from the future and works backward — "what must be true for this to succeed?"
|
|
25
23
|
|
|
26
|
-
You declare present-tense statements of fact about your project's future. The system derives milestones ("what must be true?") and actions ("what must be done?") through causal structure, then executes them in topological order with wave-based parallelism.
|
|
24
|
+
You declare present-tense statements of fact about your project's future. The system derives milestones ("what must be true?") and actions ("what must be done?") through causal structure, then executes them in topological order with wave-based parallelism — visible in real time through a browser-based dashboard.
|
|
27
25
|
|
|
28
26
|
Built on the Erhard/Jensen/Zaffron ontological model:
|
|
29
27
|
- **Integrity** as wholeness and completeness (not morality)
|
|
30
28
|
- **Alignment** as shared future (not agreement)
|
|
31
29
|
- **Performance** as the product of both
|
|
32
30
|
|
|
33
|
-
|
|
31
|
+
Originally forked from [GSD (Get Shit Done)](https://github.com/gsd-build/get-shit-done). See [Fork Boundary](#fork-boundary) for details.
|
|
34
32
|
|
|
35
33
|
---
|
|
36
34
|
|
|
@@ -42,7 +40,7 @@ This is a fork of [GSD](https://github.com/gsd-build/get-shit-done). It carries
|
|
|
42
40
|
/declare:init
|
|
43
41
|
```
|
|
44
42
|
|
|
45
|
-
Scaffolds the project structure: `FUTURE.md`, `MILESTONES.md`, `.planning/` directory, and the graph config.
|
|
43
|
+
Scaffolds the project structure: `FUTURE.md`, `MILESTONES.md`, `.planning/` directory, and the graph config.
|
|
46
44
|
|
|
47
45
|
### 2. Declare Futures
|
|
48
46
|
|
|
@@ -69,24 +67,25 @@ Works backward from declarations: "What must be true for D-01 to hold?" Each mil
|
|
|
69
67
|
### 4. Plan & Execute
|
|
70
68
|
|
|
71
69
|
```
|
|
70
|
+
/declare:actions M-01 # Derive actions for the milestone
|
|
72
71
|
/declare:plan M-01 # Research → plan → verify loop (planner + checker agents)
|
|
73
72
|
/declare:execute M-01 # Wave-based execution with parallel agents
|
|
74
73
|
```
|
|
75
74
|
|
|
76
75
|
The planner agent derives concrete actions, the checker agent validates them, and the executor runs them in topological waves. Each action gets its own atomic commit.
|
|
77
76
|
|
|
77
|
+
Or use the dashboard — review plans in the column browser, approve them, then hit Go in execution mode. The pipeline runner handles wave scheduling, progress tracking, and failure recovery.
|
|
78
|
+
|
|
78
79
|
**Creates:** `.planning/milestones/M-XX-*/PLAN.md` and `EXEC-PLAN-*.md` files
|
|
79
80
|
|
|
80
|
-
### 5. Verify &
|
|
81
|
+
### 5. Verify & Complete
|
|
81
82
|
|
|
82
83
|
```
|
|
83
|
-
/declare:verify M-01
|
|
84
|
-
/declare:audit M-01
|
|
85
|
-
|
|
84
|
+
/declare:verify M-01 # Conversational UAT — validates deliverables
|
|
85
|
+
/declare:audit M-01 # Cross-reference actions against declarations
|
|
86
|
+
/declare:complete-milestone M-01 # Archive, tag release, prepare next cycle
|
|
86
87
|
```
|
|
87
88
|
|
|
88
|
-
`sync-status` walks the DAG bottom-up: marks actions DONE (by file existence or milestone status), then milestones (all actions DONE), then declarations (all milestones DONE). Run it after any verification pass.
|
|
89
|
-
|
|
90
89
|
### 6. Navigate
|
|
91
90
|
|
|
92
91
|
Understand your graph at any point:
|
|
@@ -119,19 +118,37 @@ The graph engine (`DeclareDag`) uses dual adjacency lists for O(1) bidirectional
|
|
|
119
118
|
|
|
120
119
|
---
|
|
121
120
|
|
|
122
|
-
##
|
|
121
|
+
## Dashboard
|
|
123
122
|
|
|
124
123
|
```
|
|
125
124
|
/declare:dashboard
|
|
126
125
|
```
|
|
127
126
|
|
|
128
|
-
Starts a local server and opens an interactive browser view of your
|
|
127
|
+
Starts a local server and opens an interactive browser view of your project. The dashboard is the primary interface for planning and execution.
|
|
128
|
+
|
|
129
|
+
### Column Browser (Planning Mode)
|
|
130
|
+
|
|
131
|
+
The three-layer DAG rendered as a navigable column browser — Declarations on the left, Milestones in the center, Actions on the right. Click any node to see its detail panel with full causal chain, context, and status. Chain nodes are clickable for navigation.
|
|
132
|
+
|
|
133
|
+
Declarations, milestones, and actions can be created, reviewed, and approved directly in the browser. The review/annotation panel supports iterative cycles: generate plan, annotate corrections, send back for revision, repeat until approved.
|
|
134
|
+
|
|
135
|
+
### Execution Mode
|
|
136
|
+
|
|
137
|
+
When all plans in scope are approved, transition to execution mode — a dedicated full-screen view showing the ordered execution pipeline. Features include:
|
|
129
138
|
|
|
130
|
-
**
|
|
139
|
+
- **Pre-execution wave order** — Review the execution sequence before starting, with drag-to-reorder within dependency constraints
|
|
140
|
+
- **Pipeline runner** — Manifest-driven execution with wave scheduling, transient retry, and execution reports
|
|
141
|
+
- **Live progress** — Progress bar, status dots per action, elapsed time
|
|
142
|
+
- **Failure handling** — Pause-on-failure with View Output, Skip, and Stop options
|
|
143
|
+
- **State persistence** — Execution state survives browser refresh
|
|
131
144
|
|
|
132
|
-
|
|
145
|
+
### Activity Panel
|
|
133
146
|
|
|
134
|
-
|
|
147
|
+
A right-side panel showing real-time agent activity. Every agent spawn — execution, revision, research — appears as a persistent activity card showing agent type, target node, elapsed time, and live status. Cards survive page refresh and navigation. Completed agents show a "View Result" button that navigates to the produced output.
|
|
148
|
+
|
|
149
|
+
### Status Colors
|
|
150
|
+
|
|
151
|
+
DONE nodes retain their type hue (dimmed blue for declarations, dimmed purple for milestones, dimmed green for actions) so the graph stays readable as a living document rather than collapsing to grey. Integrity state is visualized per-node with wholeness indicators.
|
|
135
152
|
|
|
136
153
|
---
|
|
137
154
|
|
|
@@ -156,8 +173,9 @@ The **honor protocol** for a commitment you can't keep: acknowledge the break, i
|
|
|
156
173
|
|
|
157
174
|
- **Drift detection** — Are current actions still aligned with declared futures?
|
|
158
175
|
- **Occurrence checks** — AI verifies declarations still hold at milestone completion
|
|
159
|
-
- **Performance scoring** — Alignment
|
|
176
|
+
- **Performance scoring** — Alignment x Integrity as qualitative HIGH/MEDIUM/LOW (never numeric scores)
|
|
160
177
|
- **Renegotiation flow** — When a declaration no longer fits, renegotiate it into `FUTURE-ARCHIVE.md`
|
|
178
|
+
- **Wholeness visualization** — Each node shows its computed wholeness state in the dashboard
|
|
161
179
|
|
|
162
180
|
---
|
|
163
181
|
|
|
@@ -221,7 +239,7 @@ The **honor protocol** for a commitment you can't keep: acknowledge the break, i
|
|
|
221
239
|
| Command | What it does |
|
|
222
240
|
|---------|--------------|
|
|
223
241
|
| `/declare:new-project` | Deep context gathering, PROJECT.md + STATE.md creation |
|
|
224
|
-
| `/declare:new-
|
|
242
|
+
| `/declare:new-cycle` | Archive declarations, reset for next cycle |
|
|
225
243
|
| `/declare:complete-milestone` | Snapshot graph, tag release, prepare next cycle |
|
|
226
244
|
|
|
227
245
|
### Maintenance
|
|
@@ -240,38 +258,49 @@ The **honor protocol** for a commitment you can't keep: acknowledge the break, i
|
|
|
240
258
|
## Project Structure
|
|
241
259
|
|
|
242
260
|
```
|
|
243
|
-
FUTURE.md #
|
|
244
|
-
MILESTONES.md #
|
|
261
|
+
FUTURE.md # Active declared futures
|
|
262
|
+
MILESTONES.md # Active milestones
|
|
263
|
+
FUTURE-ARCHIVE.md # Completed cycle declarations
|
|
245
264
|
|
|
246
265
|
.planning/
|
|
247
266
|
├── PROJECT.md # Project context and goals
|
|
248
267
|
├── STATE.md # Current work state
|
|
249
268
|
├── config.json # Project settings
|
|
269
|
+
├── agent-state.json # Agent lifecycle state (server-side tracking)
|
|
250
270
|
├── milestones/
|
|
251
|
-
│
|
|
252
|
-
│
|
|
253
|
-
│
|
|
254
|
-
│
|
|
271
|
+
│ ├── M-XX-slug/
|
|
272
|
+
│ │ ├── PLAN.md # Actions for this milestone
|
|
273
|
+
│ │ ├── EXEC-PLAN-*.md # Per-action execution plans
|
|
274
|
+
│ │ └── VERIFICATION.md # Integrity proof after execution
|
|
275
|
+
│ └── v1.0/ # Archived milestone cycle
|
|
255
276
|
└── codebase/ # Codebase analysis artifacts
|
|
256
277
|
|
|
257
|
-
agents/ #
|
|
278
|
+
agents/ # Agent definitions (10 specialized agents)
|
|
258
279
|
├── declare-planner.md
|
|
259
280
|
├── declare-plan-checker.md
|
|
281
|
+
├── declare-executor.md
|
|
260
282
|
├── declare-researcher.md
|
|
261
283
|
├── declare-research-synthesizer.md
|
|
262
284
|
├── declare-codebase-mapper.md
|
|
285
|
+
├── declare-roadmapper.md
|
|
286
|
+
├── declare-verifier.md
|
|
287
|
+
├── declare-integration-checker.md
|
|
263
288
|
└── declare-debugger.md
|
|
264
289
|
|
|
265
|
-
workflows/
|
|
266
|
-
├──
|
|
267
|
-
|
|
290
|
+
workflows/ # Conversational workflow definitions
|
|
291
|
+
├── actions.md
|
|
292
|
+
├── discuss.md
|
|
293
|
+
├── future.md
|
|
294
|
+
├── milestones.md
|
|
295
|
+
├── scope.md
|
|
296
|
+
└── verify.md
|
|
268
297
|
|
|
269
298
|
dist/declare-tools.cjs # Bundled CLI (zero runtime deps)
|
|
270
|
-
src/ # Source (
|
|
299
|
+
src/ # Source (~26K LOC)
|
|
271
300
|
├── graph/engine.js # DeclareDag — dual adjacency lists, Kahn's sort
|
|
272
301
|
├── artifacts/ # Markdown parsers/writers
|
|
273
|
-
├── commands/ # CLI command implementations
|
|
274
|
-
└── server/ #
|
|
302
|
+
├── commands/ # 40+ CLI command implementations
|
|
303
|
+
└── server/ # HTTP API, SSE streaming, dashboard frontend
|
|
275
304
|
```
|
|
276
305
|
|
|
277
306
|
---
|
|
@@ -284,6 +313,13 @@ src/ # Source (Node.js, CJS)
|
|
|
284
313
|
npx declare-cc@latest
|
|
285
314
|
```
|
|
286
315
|
|
|
316
|
+
Or install globally:
|
|
317
|
+
|
|
318
|
+
```bash
|
|
319
|
+
npm install -g declare-cc
|
|
320
|
+
declare # Opens dashboard for current directory
|
|
321
|
+
```
|
|
322
|
+
|
|
287
323
|
Or clone and install locally:
|
|
288
324
|
|
|
289
325
|
```bash
|
|
@@ -357,9 +393,13 @@ WAVE 1 (parallel) WAVE 2 (parallel) WAVE 3
|
|
|
357
393
|
|
|
358
394
|
Each agent gets a fresh context window. Your main session stays light.
|
|
359
395
|
|
|
396
|
+
### Agent Lifecycle Tracking
|
|
397
|
+
|
|
398
|
+
Every spawned agent is tracked server-side with full lifecycle state: spawn, progress, completion. The `AgentRegistry` persists state to disk so agents survive server restarts and browser refreshes. The HTTP API exposes agent state for the dashboard's activity panel.
|
|
399
|
+
|
|
360
400
|
### Status Propagation
|
|
361
401
|
|
|
362
|
-
The DAG maintains status consistency bottom-up
|
|
402
|
+
The DAG maintains status consistency bottom-up:
|
|
363
403
|
|
|
364
404
|
```
|
|
365
405
|
Actions → check produced files exist → mark DONE
|