pi-dev-flow 0.64.1 → 0.64.3

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/CHANGELOG.md CHANGED
@@ -4,6 +4,19 @@ Format: newest first. `Unreleased` collects what's merged but not yet tagged.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.64.3] - 2026-10-25
8
+
9
+ ### Changed
10
+
11
+ - **`runFlow` is now a dispatcher: 938 lines → 74, one handler per gate.** The 0.64.1 simplify pass named the one structural weight left in the repo — a single ~940-line function holding all twenty verbs — and this is the dedicated flow that split it: every case body moved verbatim into a top-level `gateInit`/`gateStart`/…/`gateAbort` handler sharing one small `GateCtx` (`root, ui, sess, cfg, rest, flag, slugArg, takeYoloWord`), and `runFlow` keeps only arg parsing, the help/no-playbook guards, the preamble helpers and a switch of one-line dispatches. Zero behavior change by construction, and auditable rather than promised: the extraction was scripted by a brace-matching, string/comment/template-aware splitter (the file defeats indentation-based tooling — roadmap's closer is misindented, init's draft help sits at column 0 inside a template literal), and an independent audit re-compared all 17 handler bodies against the base — verbatim, de-indent only. Same-file split by design: a `src/gates/*.ts` module layout would export half the extension's IO plumbing for the same readability, and can ride later wholesale if ever wanted.
12
+
13
+ ## [0.64.2] - 2026-10-25
14
+
15
+ ### Changed
16
+
17
+ - **Structured stage reports — a tier-3 communication convention, documented and injected.** `docs/playbook.md` gains a "Structured stage reports" section: every stage report opens with one inline `◆ <stage> · <slug>` line (mode + grant mark, ui, then per-stage decision fields — plan status, commits/tier-1/deploy, the version decision with its pending/bump/no-version states, PR/tag/artifact proofs, finish cleanup state) and closes with exactly one plain-chat checkpoint rendered as three markdown bullets (context / options incl. yolo / recommend) plus the single verb. The shape is plain markdown, never fenced — fenced header blocks rendered as horizontal-scroll boxes in web UIs. This repo's `project.md` carries the matching per-stage prose so every session inherits the contract at stage start; gates and guardrails are untouched — the contract is advisory like all tier-3 prose.
18
+ - **Repo dogfood of `/flow-simplify`, shipped as a patch**: dropped the one dead import `tsc --noUnusedLocals` reports repo-wide (`unreleasedBody` in `test/core.test.ts`), and collapsed the thrice-duplicated yolo-word intake — the byte-identical `--yolo` acceptance block and its error string in the verify, release and finish gates — into one `takeYoloWord` helper, so the operator-word wording lives in one place. Also committed the `package-lock.json` version fields `npm install` rewrites in every worktree since the 0.64.1 bump left them unsynced.
19
+
7
20
  ## [0.64.1] - 2026-10-24
8
21
 
9
22
  ### Changed
package/docs/playbook.md CHANGED
@@ -173,3 +173,44 @@ shipped, dedupe new findings, put the fix decision to the operator) — and noth
173
173
  Future features have their own file: `.dev-flow/roadmap.md`, a gitignored backlog `flow roadmap`
174
174
  manages (add / pick → `flow start` / done / tidy) — a picked item is checked off by `finish` when
175
175
  its feature ships, and it never gates either.
176
+
177
+ ### Structured stage reports (a prose convention, not a gate)
178
+
179
+ The gates enforce *state*; how the agent *talks* about that state at each stage is a tier-3 convention —
180
+ type `prose.implement`-style guidance into the stage sections and every session inherits it. The contract
181
+ this repo runs on has two fixed shapes, both **plain markdown inline lines — never fenced** (a code block
182
+ renders monospace with a horizontal scrollbar in web UIs; fences stay for diffs and command output).
183
+
184
+ **The stage line.** Every stage report opens with one inline line: a `◆` marker, the stage and slug, then
185
+ the *decision record* as `·`-separated `key value` pairs with backticked values. The core — stage · slug ·
186
+ mode (+ grant mark: `✓` operator-granted, `?` proposed) · ui — repeats at every stage; stage-specific
187
+ fields append:
188
+
189
+ | Stage | Fields after the core | Example |
190
+ |---|---|---|
191
+ | pre-flow | mode proposal + why, detected knob defaults, merge-policy state | **◆ pre-flow · new work** — mode `normal` (proposed: touches behavior) · ui on · forge `github` ✓ · merge policy **missing** |
192
+ | plan | plan.md status, mockups `rendered/total`, open questions | **◆ plan · `dark-mode`** — `normal` ✓ · ui on · plan `created` · mockups `3/3` · open questions `0` |
193
+ | implement | commits `N ahead, M uncommitted`, tier-1, tier-2, deploy/health, branch@sha | **◆ implement · `dark-mode`** — `normal` ✓ · ui on · commits `2 ahead, 0 uncommitted` · tier-1 `5/5` · deploy `health PASS` · `feat/dark-mode@a1b2c3` |
194
+ | pre-release | **version decision** — `pending` / `bump <patch\|minor\|major> → vX.Y.Z (pending your word)` / `no-version [your word]` — tag, changelog, fold, review tally, merge style | **◆ pre-release · `dark-mode`** — `normal` ✓ · ui on · version **`bump minor → 0.56.0 (pending your word)`** · tag `v0.56.0` · changelog `ready` · review `0 must / 0 should` · merge `merge` |
195
+ | release | PR + state, merge style used, tag state, artifact proof, forge release state (one line per step — this stage has no checkpoint) | **◆ release · `dark-mode`** — PR `#131 merged` · merge `--merge (playbook)` · tag `v0.56.0 pushed` · artifact `npm view OK` · forge release `created` |
196
+ | finish | release recorded, main state, unmerged commits, reflections open, release-checklist open | **◆ finish · `dark-mode`** — release `recorded` · main `clean, pushed` · unmerged `0` · reflections `2 open` |
197
+
198
+ A decision that was *not* made is recorded as `pending` — never left unstated, never silently invented
199
+ (a version bump needs the operator's word; `no-version` too).
200
+
201
+ **The checkpoint.** Exactly one per stage, as a plain chat message (a structured-question tool is
202
+ not chat and never licenses `--confirmed`), three markdown bullets and the single verb, **yolo** named
203
+ as an available answer:
204
+
205
+ > **CHECKPOINT — Release?**
206
+ > - **context** — checks green; manifest ahead of last tag; `Unreleased` folded.
207
+ > - **options** — *release* → bump minor 0.56.0, tag `v0.56.0`, forge release · *no-version* → merge only, entry rides under `Unreleased` · *edit* — what to change · *yolo* → release with the parameters above, remaining gates run back to back
208
+ > - **recommend** — *release* — user-facing feature, minor per playbook semver
209
+ >
210
+ > Answer in chat: **Release?** (or yolo)
211
+
212
+ After each gate that advances a stage, one short echo line confirms the new state before new work
213
+ (`▶ stage: implement — 2 commits ahead, tier-1 5/5`). Mid-stage additions amend `plan.md` with an
214
+ `**Added mid-stage:**` line instead of opening a second checkpoint — the verb count stays one per
215
+ stage. The contract is advisory like all tier-3 prose: gates refuse what gates refuse regardless of
216
+ how neatly the report is formatted.