pi-dev-flow 0.91.0 → 0.91.1
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 +7 -0
- package/package.json +1 -1
- package/skills/dev-flow/references/plan.md +10 -0
- package/src/core.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@ Format: newest first. `Unreleased` collects what's merged but not yet tagged.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.91.1] - 2026-11-11
|
|
8
|
+
|
|
9
|
+
**A revised plan reads as one clean plan, without the dropped options from earlier rounds.**
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- **A revised plan reads as one clean plan.** When you ask for changes at the plan stage, the agent now rewrites plan.md into the current plan instead of appending each round. Dropped options, requirements and mockups are removed, and nothing is marked "v2" or "previously". A changed screen is re-rendered over its old files, and a dropped one's html and screenshots are deleted. The mockup gate's errors now say a dropped render can be deleted. Before, they only said to embed it, which pushed old screenshots back into the plan.
|
|
13
|
+
|
|
7
14
|
## [0.91.0] - 2026-11-11
|
|
8
15
|
|
|
9
16
|
**Fewer needless questions: the agent turns `--ui` on itself, takes a dev port from a flow already past review, and waits for CI instead of ending its turn.**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-dev-flow",
|
|
3
|
-
"version": "0.91.
|
|
3
|
+
"version": "0.91.1",
|
|
4
4
|
"description": "Enforced feature workflow for Pi: plan → implement → pre-release → release, gated checkpoints, self-improvement reflections, one git worktree per feature, changelog + publish as part of the release",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -15,6 +15,12 @@ No code edits before approval. Reads are always allowed.
|
|
|
15
15
|
is lost at compaction, the gate reads the file.
|
|
16
16
|
- The name is the proof: `plan.md`. A preliminary direction goes inside it
|
|
17
17
|
(marked draft) — never a separate file.
|
|
18
|
+
- **Every revision rewrites, never appends.** On feedback, edit plan.md
|
|
19
|
+
into the current plan: replace what changed, delete dropped options,
|
|
20
|
+
requirements and mockups outright, no round markers ("v2", "updated:",
|
|
21
|
+
"previously…", strikethrough). A settled choice reads as a plain
|
|
22
|
+
decision, no rejected alternatives beside it. Chat holds the history;
|
|
23
|
+
plan.md holds only the result.
|
|
18
24
|
- Part of the scope deferred? `flow roadmap add "<title>" --slug=<slug>
|
|
19
25
|
--brief=<notes>` — never a second `.dev-flow/<slug>/` by hand.
|
|
20
26
|
- Run `git log origin/<default>..<default> --oneline` first: local-only
|
|
@@ -31,6 +37,10 @@ No code edits before approval. Reads are always allowed.
|
|
|
31
37
|
- Embed every render in plan.md as an image:
|
|
32
38
|
``. The gate refuses any
|
|
33
39
|
render not embedded and any `.html` without a shot.
|
|
40
|
+
- Revisions: a dropped screen or variant → delete its `.html`, its
|
|
41
|
+
`<screen>-<w>.png` shots and its embed; a changed screen → edit the same
|
|
42
|
+
`<screen>.html` and re-render over the same filenames (no `-v2` copies).
|
|
43
|
+
At Approve?, `plan/mockups/` holds only what plan.md shows.
|
|
34
44
|
- No chromium anywhere → tell the operator and ask; HTML-only only with
|
|
35
45
|
their OK. Never fake or skip silently.
|
|
36
46
|
- Tips: prefer a static strip (just the component, real stylesheet) over a
|
package/src/core.ts
CHANGED
|
@@ -341,7 +341,7 @@ export function approveGate(state: FlowState, cfg: Config, planFiles: string[],
|
|
|
341
341
|
//  with an optional "title" tolerated; matching is case-insensitive
|
|
342
342
|
const embeds = [...planDoc.matchAll(/!\[[^\]]*\]\(\s*<?([^)\s>]+)>?(?:\s+"[^"]*")?\s*\)/g)].map((m) => m[1].toLowerCase());
|
|
343
343
|
const unembedded = planFiles.filter((f) => IMG_EXT.test(f) && !embeds.some((e) => e === f.toLowerCase() || e.endsWith("/" + f.toLowerCase())));
|
|
344
|
-
if (unembedded.length) errs.push(`plan.md must embed every render — missing embed: ${unembedded.join(", ")} (write  under the screen's section)`);
|
|
344
|
+
if (unembedded.length) errs.push(`plan.md must embed every render — missing embed: ${unembedded.join(", ")} (write  under the screen's section, or delete the file if that screen/variant was dropped)`);
|
|
345
345
|
// the naming plan.md prescribes (screen.html → screen-<width>.png): a mockups/*.html with no
|
|
346
346
|
// embedded shot of its own was never rendered
|
|
347
347
|
const unrendered = planFiles
|
|
@@ -350,7 +350,7 @@ export function approveGate(state: FlowState, cfg: Config, planFiles: string[],
|
|
|
350
350
|
const stem = f.toLowerCase().replace(/\.html$/, "").split("/").pop()!;
|
|
351
351
|
return !embeds.some((e) => (e.split("/").pop() ?? "").startsWith(stem) && IMG_EXT.test(e));
|
|
352
352
|
});
|
|
353
|
-
if (unrendered.length) errs.push(`mockups without an embedded render — ${unrendered.join(", ")} (render each screen and name the shot after it: <screen>-<width>.png)`);
|
|
353
|
+
if (unrendered.length) errs.push(`mockups without an embedded render — ${unrendered.join(", ")} (render each screen and name the shot after it: <screen>-<width>.png, or delete the html if that screen was dropped)`);
|
|
354
354
|
}
|
|
355
355
|
if (foreignLinks.length)
|
|
356
356
|
errs.push(`mockups link another feature's worktree — ${foreignLinks.join(", ")}: that branch drifts and is removed at its finish; at plan link the main checkout's stylesheet (this feature's worktree does not exist until approve) and re-render`);
|