deepclause-pi 0.1.5 → 0.3.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 +36 -0
- package/dist/diagram/extract.d.ts +5 -0
- package/dist/diagram/extract.js +701 -0
- package/dist/diagram/grade.d.ts +41 -0
- package/dist/diagram/grade.js +70 -0
- package/dist/diagram/validate.d.ts +36 -0
- package/dist/diagram/validate.js +148 -0
- package/dist/diagram/viewer.d.ts +36 -0
- package/dist/diagram/viewer.js +99 -0
- package/dist/diagram/workspace.d.ts +24 -0
- package/dist/diagram/workspace.js +106 -0
- package/dist/index.d.ts +8 -1
- package/dist/index.js +462 -17
- package/dist/model.d.ts +16 -0
- package/dist/model.js +28 -0
- package/dist/planner.d.ts +27 -2
- package/dist/planner.js +109 -4
- package/dist/runtime.d.ts +15 -1
- package/dist/runtime.js +116 -3
- package/dist/workspace.d.ts +3 -0
- package/dist/workspace.js +20 -0
- package/docs/DIAGRAM_INTEGRATION_PROPOSAL.md +154 -0
- package/docs/SPECKIT.md +222 -0
- package/docs/SPEC_LAYER_PROPOSAL.md +1893 -0
- package/package.json +1 -1
- package/src/assets/AGENTS.md +82 -0
- package/src/assets/apply.dml +188 -0
- package/src/assets/spec_apply.dml +20 -0
- package/src/assets/spec_archive.dml +11 -0
- package/src/assets/spec_coverage.dml +26 -0
- package/src/assets/spec_graph.dml +12 -0
- package/src/assets/spec_merge.dml +10 -0
- package/src/assets/spec_query.dml +10 -0
- package/src/assets/spec_scaffold.dml +10 -0
- package/src/assets/spec_status.dml +7 -0
- package/src/assets/spec_validate.dml +9 -0
- package/src/assets/specs.dml +991 -0
- package/src/assets/vendor/mermaid.min.js +3636 -0
- package/src/assets/viewer.template.html +319 -0
- package/src/diagram/extract.ts +721 -0
- package/src/diagram/grade.ts +104 -0
- package/src/diagram/validate.ts +188 -0
- package/src/diagram/viewer.ts +144 -0
- package/src/diagram/workspace.ts +109 -0
- package/src/index.ts +507 -16
- package/src/model.ts +46 -0
- package/src/planner.ts +123 -3
- package/src/runtime.ts +117 -2
- package/src/workspace.ts +24 -0
package/README.md
CHANGED
|
@@ -131,6 +131,42 @@ The resulting `.dml` file is the plan. Steps use one of two executors:
|
|
|
131
131
|
|
|
132
132
|
For each pi step, only the exact tools named in the committed plan are temporarily active. They must still be installed and active when execution begins; existing tool policies, UI, and approvals remain authoritative. DeepClause control tools cannot be requested recursively. The prior active-tool set is restored after success, failure, or cancellation.
|
|
133
133
|
|
|
134
|
+
## deepclause-pi speckit
|
|
135
|
+
|
|
136
|
+
Spec-driven changes, built on the same runtime: behaviour specs in plain Markdown, reviewable change deltas, and an executable `tasks.dml` that pi runs with deterministic validation, per-task verification, rollback and resume.
|
|
137
|
+
|
|
138
|
+
```text
|
|
139
|
+
/dc-plan <request> --change=<slug> propose
|
|
140
|
+
/dc-check <slug> validate (0 tokens)
|
|
141
|
+
/dc-apply <slug> execute, verify, retry, resume
|
|
142
|
+
/dc-archive <slug> merge into specs/
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
See the [deepclause-pi speckit guide](docs/SPECKIT.md) for the getting-started walkthrough and reference.
|
|
146
|
+
|
|
147
|
+
## Diagrams
|
|
148
|
+
|
|
149
|
+
Ask pi for a diagram of any DML file in plain language:
|
|
150
|
+
|
|
151
|
+
```text
|
|
152
|
+
Make a presentation-grade diagram of .pi/deepclause/skills/deep_research.dml
|
|
153
|
+
Give me a specification-grade diagram of src/report.dml
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
Pi calls the always-active `dc_diagram` model tool, which:
|
|
157
|
+
|
|
158
|
+
1. extracts a deterministic Mermaid seed from the DML in-process,
|
|
159
|
+
2. has the active pi model rewrite it in the requested grade,
|
|
160
|
+
3. validates each attempt (structural checks, plus the real Mermaid parser when Chrome is available),
|
|
161
|
+
4. writes the sidecar under `.pi/deepclause/diagrams/`, rebuilds the self-contained offline `viewer.html`, and opens it.
|
|
162
|
+
|
|
163
|
+
Grades:
|
|
164
|
+
|
|
165
|
+
- **presentation** — about 8-12 nodes, plain language, headline numbers; for slides and overviews.
|
|
166
|
+
- **specification** — function names, task/tool roles, post-conditions; for engineers.
|
|
167
|
+
|
|
168
|
+
Selecting `both` produces both sidecars. The DML source may be anywhere (workspace-relative or absolute); only the generated viewer is confined to `.pi/deepclause/`. `dc_diagram` never executes the DML and needs no shell approval. Regenerating a grade replaces only that grade's sidecar (`<name>.presentation.mmd` / `<name>.specification.mmd`). The Mermaid bundle is vendored so the viewer works offline.
|
|
169
|
+
|
|
134
170
|
## Runtime tools and approval
|
|
135
171
|
|
|
136
172
|
The extension never exposes pi's general tool registry directly to ordinary DML. The optional `dc_run` tool runs an existing DML program; inside that runtime, only these host operations are registered:
|