@gonrocca/zero-pi 0.1.52 → 0.1.54
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 +0 -0
- package/extensions/autotune-extension.ts +0 -0
- package/extensions/autotune.ts +0 -0
- package/extensions/conversation-resume.ts +0 -0
- package/extensions/gh-runner.ts +0 -0
- package/extensions/git-runner.ts +0 -0
- package/extensions/pr-body.ts +0 -0
- package/extensions/provider-guard-extension.ts +0 -0
- package/extensions/provider-guard.ts +0 -0
- package/extensions/scan-guard-extension.ts +0 -0
- package/extensions/scan-guard.ts +0 -0
- package/extensions/sdd-agents.ts +0 -0
- package/extensions/sdd-config.ts +0 -0
- package/extensions/sdd-links.ts +0 -0
- package/extensions/spec-merge-extension.ts +0 -0
- package/extensions/spec-merge.ts +0 -0
- package/extensions/win-tree-kill.ts +0 -0
- package/extensions/working-phrases.ts +0 -0
- package/extensions/zero-archive-extension.ts +0 -0
- package/extensions/zero-banner.ts +0 -0
- package/extensions/zero-branch-extension.ts +0 -0
- package/extensions/zero-diff-extension.ts +0 -0
- package/extensions/zero-git-validate-extension.ts +0 -0
- package/extensions/zero-issue-extension.ts +0 -0
- package/extensions/zero-models-picker.ts +0 -0
- package/extensions/zero-models.ts +0 -0
- package/extensions/zero-pr-extension.ts +0 -0
- package/extensions/zero-status-extension.ts +0 -0
- package/extensions/zero-status.ts +0 -0
- package/extensions/zero-statusline.ts +0 -0
- package/extensions/zero-validate-extension.ts +0 -0
- package/extensions/zero-validate.ts +0 -0
- package/package.json +1 -1
- package/prompts/forge.md +10 -2
- package/prompts/orchestrator.md +33 -29
- package/prompts/phases/build.md +0 -0
- package/prompts/phases/explore.md +0 -0
- package/prompts/phases/plan.md +0 -0
- package/prompts/phases/veredicto.md +0 -0
- package/skills/sdd-routing/SKILL.md +0 -0
package/README.md
CHANGED
|
File without changes
|
|
File without changes
|
package/extensions/autotune.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/extensions/gh-runner.ts
CHANGED
|
File without changes
|
package/extensions/git-runner.ts
CHANGED
|
File without changes
|
package/extensions/pr-body.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/extensions/scan-guard.ts
CHANGED
|
File without changes
|
package/extensions/sdd-agents.ts
CHANGED
|
File without changes
|
package/extensions/sdd-config.ts
CHANGED
|
File without changes
|
package/extensions/sdd-links.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/extensions/spec-merge.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gonrocca/zero-pi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.54",
|
|
4
4
|
"description": "zero-pi — an installable layer for pi (pi.dev): the zero spec-driven development workflow (explore → plan → build → veredicto) with per-phase model autotune and token-efficient batched builds. Adds capability to pi without modifying pi.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
package/prompts/forge.md
CHANGED
|
@@ -11,8 +11,16 @@ report the result as not verified. Ask the user for interactive or automatic
|
|
|
11
11
|
mode up front; in interactive mode pause after each phase for approval. Never
|
|
12
12
|
claim success unless veredicto returned `pasa`.
|
|
13
13
|
|
|
14
|
-
If the request begins with `--continue
|
|
15
|
-
|
|
14
|
+
**Parse the arguments first.** If the request begins with `--continue`, this is
|
|
15
|
+
a **resume** run, not a fresh one:
|
|
16
|
+
|
|
17
|
+
- `--continue` with no slug → resume mode: hand control to the orchestrator's
|
|
18
|
+
`## Resuming a run` section, which scans `.sdd/*/` for an unfinished run.
|
|
19
|
+
- `--continue <slug>` → resume mode targeting `.sdd/<slug>/` directly. If that
|
|
20
|
+
directory does not exist, report "no such run: <slug>" and stop — do **not**
|
|
21
|
+
start a fresh run under that slug.
|
|
22
|
+
- Anything else (a feature request, or no arguments) → a fresh run: the
|
|
23
|
+
arguments are the feature request below.
|
|
16
24
|
|
|
17
25
|
**Strict TDD by default.** Follow the orchestrator's `## Strict TDD forwarding`:
|
|
18
26
|
build runs test-first (RED → GREEN → TRIANGULATE → REFACTOR) and emits a TDD
|
package/prompts/orchestrator.md
CHANGED
|
@@ -392,41 +392,45 @@ Recommended command order for an audit-ready SDD change is: `/zero-branch <slug>
|
|
|
392
392
|
- `/zero-git-validate <slug>` checks worktree, branch, remote, `gh auth`, and verdict gating without mutating.
|
|
393
393
|
- `/zero-archive <slug>` merges approved deltas into `.sdd/specs/` and moves the run to `.sdd/archive/YYYY-MM-DD-<slug>/`.
|
|
394
394
|
|
|
395
|
-
## Spec
|
|
395
|
+
## Spec archive
|
|
396
396
|
|
|
397
397
|
The project keeps a **canonical spec store** at `.sdd/specs/requirements.md` —
|
|
398
398
|
the accepted requirements of every prior run. A `/forge` run's `plan` phase
|
|
399
399
|
emits a delta `spec.md` against that store; once the run reaches a `pasa`
|
|
400
|
-
verdict the delta is folded back into the store.
|
|
400
|
+
verdict the delta is folded back into the store and the run is archived. One
|
|
401
|
+
command does both: **`/zero-archive`**. (The older `/zero-sync` still exists as a
|
|
402
|
+
manual fold-only command, but the pipeline drives `/zero-archive`, which already
|
|
403
|
+
folds the delta itself — never run both for the same run.)
|
|
401
404
|
|
|
402
405
|
**After a `pasa` verdict — and only then.** Alongside the Cortex save and the
|
|
403
406
|
`zero-runs.jsonl` append, invoke the **`/zero-archive <slug>`** command, passing
|
|
404
407
|
the run's feature slug explicitly. `/zero-archive` is a real pi command — a
|
|
405
|
-
deterministic, unit-tested
|
|
406
|
-
`.sdd/specs/requirements.md
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
408
|
+
deterministic, unit-tested operation, not a prompt instruction. In one step it
|
|
409
|
+
folds the delta into the store (`.sdd/specs/requirements.md`, or per-domain
|
|
410
|
+
`.sdd/specs/<domain>/requirements.md`), writes the store atomically, moves the
|
|
411
|
+
run to `.sdd/archive/<YYYY-MM-DD>-<slug>/`, and records `archivePath` in
|
|
412
|
+
`links.json`. It guards itself: it refuses to run unless the run's last verdict
|
|
413
|
+
is `pasa`, the worktree is clean (override with `--allow-dirty` when justified),
|
|
414
|
+
and the spec/tasks artifacts validate. Use `--dry-run` to preview the writes
|
|
415
|
+
without touching disk. You only call it; you never edit the store yourself.
|
|
416
|
+
|
|
417
|
+
**Never archive on a non-`pasa` outcome.** Do **not** invoke `/zero-archive`
|
|
418
|
+
for a `corregir` or `replantear` verdict, or when the iteration cap was reached
|
|
419
|
+
without a `pasa` — the command refuses it anyway, and no store change or archive
|
|
420
|
+
entry is created. Likewise skip it for a **legacy resumed run** whose
|
|
421
|
+
`.sdd/<slug>/` has no `spec.md` (the older artifact shape): there is no delta to
|
|
422
|
+
fold, so the command reports nothing to archive.
|
|
423
|
+
|
|
424
|
+
**On a guardrail error, surface — do not claim success.** If `/zero-archive`
|
|
419
425
|
reports a guardrail failure (a duplicate name, an ADDED collision, a MODIFIED or
|
|
420
|
-
REMOVED of a missing block,
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
was rejected. Never report the store as updated
|
|
425
|
-
update it.
|
|
426
|
-
|
|
427
|
-
**On success, relay the report.** When `/zero-
|
|
428
|
-
store
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
the run's final summary, calling out the destructive effects (replacements,
|
|
432
|
-
deletions) explicitly.
|
|
426
|
+
REMOVED of a missing block, a malformed store/delta, a failed validation, or a
|
|
427
|
+
dirty worktree) it changes **nothing**, and on a mid-write failure it rolls the
|
|
428
|
+
store back. Relay the failing reason to the user and state plainly that the
|
|
429
|
+
canonical store was **not** updated. The `pasa` verdict still stands — the build
|
|
430
|
+
shipped; only the archive step was rejected. Never report the store as updated
|
|
431
|
+
when `/zero-archive` did not update it.
|
|
432
|
+
|
|
433
|
+
**On success, relay the report.** When `/zero-archive` succeeds it writes the
|
|
434
|
+
new store, moves the run to `.sdd/archive/<YYYY-MM-DD>-<slug>/`, and records the
|
|
435
|
+
archive path in `links.json`. Include its report in the run's final summary,
|
|
436
|
+
calling out the destructive effects (replacements, deletions) explicitly.
|
package/prompts/phases/build.md
CHANGED
|
File without changes
|
|
File without changes
|
package/prompts/phases/plan.md
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|