pi-dev-flow 0.64.2 β†’ 0.64.4

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,18 @@ Format: newest first. `Unreleased` collects what's merged but not yet tagged.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.64.4] - 2026-10-25
8
+
9
+ ### Added
10
+
11
+ - **Stage reports: a uniform output contract for every gate message, carried by the skill itself.** A gate message is now a stage line (the statusbar's own stage glyph πŸ’¬ pre-flow / πŸ“ / πŸ”¨ / πŸ” / πŸš€ / 🏁 + slug + `Β·`-separated decision fields with provenance marks `βœ“` operator, `βœ“playbook`/`βœ“detected` rule, `~` agent-assumed, `?` pending) plus an event title and `Done:`/`Next steps:` blocks β€” operator verbs in italics (recommended one bold italic), never gate commands, recommended first, *yolo* last, plain "or say what to do differently" closing line. The norm lives in the `SKILL.md` ground rules (budget raised 4000β†’4500 with the reason noted), each stage reference file names its own fields, the stage-context injection carries a one-line reminder, and `docs/playbook.md` holds the human long form with the worked example β€” so every repo gets the protocol without writing playbook prose. A consistency test locks the clause, the markers, and every stage file's glyph.
12
+
13
+ ## [0.64.3] - 2026-10-25
14
+
15
+ ### Changed
16
+
17
+ - **`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.
18
+
7
19
  ## [0.64.2] - 2026-10-25
8
20
 
9
21
  ### Changed
package/docs/playbook.md CHANGED
@@ -174,43 +174,60 @@ Future features have their own file: `.dev-flow/roadmap.md`, a gitignored backlo
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
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
177
+ ### Structured stage reports (a convention, not a gate)
178
+
179
+ The gates enforce *state*; how the agent *talks* about that state is presentation. The norm lives in
180
+ the skill itself β€” the **Stage reports** clause in `SKILL.md` ground rules, echoed by the
181
+ `Stage reports:` line in every stage-context injection β€” so every repo using dev-flow gets the same
182
+ output protocol without writing a word of playbook prose. This is the human explanation of it.
183
+
184
+ One gate message = **stage line** + event title + **`Done:`** / **`Next steps:`** blocks, all plain
185
+ markdown, **never fenced** (a fenced block renders monospace with a horizontal scrollbar in web UIs;
186
+ fences stay for diffs and command output).
187
+
188
+ **The stage line** *is* the decision record β€” one copy of every fact. It opens with the statusbar's
189
+ own stage glyph (the footer is the legend: πŸ’¬ pre-flow "operator, your turn" Β· πŸ“ plan Β· πŸ”¨ implement
190
+ Β· πŸ” pre-release Β· πŸš€ release Β· 🏁 finish), then `slug β€” key value` pairs separated by `Β·`, with the
191
+ mode glyphs after the slug as in the footer (⚑ patch Β· πŸ“š docs Β· 🎱 yolo). Every value carries a
192
+ provenance mark:
193
+
194
+ | mark | meaning |
195
+ |---|---|
196
+ | `βœ“` | operator-decided |
197
+ | `βœ“playbook` / `βœ“detected` | decided by a rule or auto-detection |
198
+ | `~` | agent-assumed β€” vetoable; flips to `βœ“` when the stage's verb is given |
199
+ | `?` | pending the operator's word |
200
+
201
+ A decision not made reads `pending` β€” never left unstated, never silently invented (a version bump
202
+ needs the operator's word; `no-version` too). Per-stage fields after the core (stage Β· slug Β· mode Β·
203
+ ui): plan status and mockups; commits `N ahead, M uncommitted`, tier-1, deploy/health, `branch@sha`;
204
+ the version decision (`bump <level> β†’ vX.Y.Z ~`) with tag/changelog/fold/review/merge-style beside
205
+ it; PR/tag/artifact/forge proofs at πŸš€ (stage lines only there β€” that stage asks nothing); release-
206
+ recorded / main-state / unmerged / reflections at 🏁.
207
+
208
+ **The checkpoint** closes exactly one message per stage (the operator's verb stays a plain-chat word
209
+ β€” a structured-question tool is not chat). Event title, then the labels **`Done:`** and
210
+ **`Next steps:`** standing alone on their own lines. `Done:` names the review surface β€” paths, SHAs,
211
+ counts, not vibes. `Next steps:` lists the operator's verbs in italics (the recommended one
212
+ ***bold italic***, and no line needs a "(recommended)" tag when the styling carries it) and **never
213
+ gate commands** (the agent runs those): recommended first, then alternatives, then *yolo* last with
214
+ what it pre-confirms, then the plain closing line "or say what to do differently". Example:
215
+
216
+ > **πŸ” pre-release Β· `dark-mode`** β€” `normal` βœ“ Β· ui `on βœ“` Β· version **`bump minor β†’ 0.56.0 ~`** Β· tag `v0.56.0 ~` Β· changelog `ready ~` Β· merge `merge βœ“playbook`
209
217
  >
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.
218
+ > **Release prep done**
219
+ >
220
+ > **Done:**
221
+ > review 0 must / 0 should; CHANGELOG `## [0.56.0]` folded from `Unreleased`; manifest bumped
222
+ >
223
+ > **Next steps:**
224
+ > - ***Release*** β†’ tag `v0.56.0`, forge release β€” locks the `~` fields
225
+ > - *No-version* β†’ merge only, entry rides under `Unreleased`
226
+ > - *Yolo* β†’ release with these parameters, remaining gates back to back
227
+ > - or say what to do differently β€” bump level, changelog wording
228
+
229
+ Mid-stage (non-checkpoint) reports are the stage line plus a short body β€” no `Next steps:` block β€”
230
+ and mid-stage scope additions amend `plan.md` with an `**Added mid-stage:**` line instead of opening
231
+ a second checkpoint. Like all tier-3 prose this is advisory: gates refuse what gates refuse no matter
232
+ how the report is formatted. A project can still set `prose.<stage>` for its own stage guidance β€”
233
+ that replaces the built-in guidance text but the Stage reports rule keeps applying.