pi-dev-flow 0.77.1 โ†’ 0.77.2

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,11 @@ Format: newest first. `Unreleased` collects what's merged but not yet tagged.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.77.2] - 2026-11-03
8
+
9
+ ### Changed
10
+ - In pi-web the flow list now lives in the footer itself: the `๐Ÿ’ฌ N flows open` (or bound `<glyph> <slug>`) footer is the clickable chip that expands to the per-flow list, instead of a separate `dev-flow` chip beside it. The panel lists only the flows other than the bound one (that one is the chip's label); alone, it reads `no other flows open`. With nothing open it reads `๐Ÿ’ฌ no flows` and has nothing to expand. The terminal footer is unchanged.
11
+
7
12
  ## [0.77.1] - 2026-11-03
8
13
 
9
14
  ### Changed
@@ -17,7 +17,7 @@ While a feature is active, the extension intercepts every tool call:
17
17
  - **Shell calls can't hang forever**: pi kills a shell command only when the model passed a `timeout` โ€” it omits one in ~75% of calls, so a `gh` waiting on a prompt or a dead `curl` froze sessions for hours. In an initiated repo (`.dev-flow/project.md` exists) every shell call without one therefore gets the class default armed silently (30s quick inspection ยท 120s local git and unknown ยท 180s network ยท 300s containers/services ยท 900s builds/tests/installs ยท 1,200s watchers like `gh run watch`), and absurd explicit values clamp to 1,800s. A project that wants the timeout visible on every call line sets `bashTimeout = require` in `## global` โ€” then a call without one is refused, naming the value it would have armed (each refusal costs a turn, which is why it is no longer the default). Uninitiated folders hear nothing at all: without the playbook dev-flow enforces no rules.
18
18
  - **Compact-aware**: dev-flow paces compaction the way pi counts it: the self-compaction trigger uses the *effective* `reserveTokens` (settings and per-model overrides, not the built-in default) and is checked at every turn end, not only when a run settles. When pi force-compacts on its threshold anyway โ€” the chat-only states (open tier-2 dialog, plan discussion not yet in `plan/`) refuse to self-compact by design โ€” dev-flow takes the compaction over and redoes it with flow-aware summary instructions (overflow recovery keeps pi's compact-and-retry and is left alone). Auto-compaction turned off in settings is honored.
19
19
  - The active stage is injected into the model's context every turn; the bundled `dev-flow` skill is the agent's playbook, including the recommended sequences: pre-release โ€” review (`/flow-review`) โ†’ fixes โ†’ docs โ†’ changelog/version bump; release โ€” PR โ†’ merge โ†’ tag โ†’ `release-done`. The package also bundles the review skills themselves โ€” `/flow-review` (a change, read against its `plan/plan.md`), `/flow-audit` (the whole repo) and `/flow-simplify` (the operative cut: deletes dead and duplicated code, one verified commit at a time) โ€” and injects a built-in senior-discipline guidance at implement stage unless the playbook sets its own `prose.implement`.
20
- - **Status bar**: an initiated repo (`.dev-flow/project.md` exists) always carries the dev-flow footer; while the session **is bound** to a feature it shows `<stage glyph> <slug>` plus mode markers โ€” stages ๐Ÿ“ plan, ๐Ÿ”จ implement, ๐Ÿ” pre-release, ๐Ÿš€ release; markers โšก patch, ๐Ÿ“š docs, ๐ŸŽฑ yolo, `๐Ÿ’ฌ` while a checkpoint (Approve?/Verified?/Release?/Finish?) still waits on the operator's word โ€” the legend's "operator, your turn" glyph, the same one stage lines open with โ€” and `โš ๏ธ` while a check of the bound feature fails (emoji render in their own color, so the footer carries no theme coloring). An **unbound** session never sees a slug โ€” it shows `๐Ÿ’ฌ N flow(s) open` (unfinished-feature count only, no warning marker) or `๐Ÿ’ฌ no flows` when nothing is in flight: the pre-flow glyph, because an unbound session is parked on the operator by definition; a session binds only via `flow start`/`flow use`, never by opening. In **pi-web** the footer text is not clickable, so an initiated repo also carries a `dev-flow` widget there: a chip in the status shelf whose panel expands (click again to collapse) to one lean line per unfinished flow โ€” `โ†’` marks the session's bound flow, the stage word is spelled out, markers and `โš ๏ธ` follow the footer vocabulary โ€” and no chip appears while nothing is open. The TUI never shows it: a widget there is an always-present block, and in a terminal the footer stays the legend. The footer repaints at session start, at the start of every agent run (the earliest a late-attaching web client is listening) and after every gate; an uninitiated folder gets no footer at all. `flow status` is the spelled-out surface: `stage=implement`, the per-feature mode tags (`[ui]`, `[yolo]`, `[no-version]`), the `๐Ÿ’ฌ <word>` marker of a checkpoint the operator has not answered, and the `flow=<ver>` stamp of the build that started the feature.
20
+ - **Status bar**: an initiated repo (`.dev-flow/project.md` exists) always carries the dev-flow footer; while the session **is bound** to a feature it shows `<stage glyph> <slug>` plus mode markers โ€” stages ๐Ÿ“ plan, ๐Ÿ”จ implement, ๐Ÿ” pre-release, ๐Ÿš€ release; markers โšก patch, ๐Ÿ“š docs, ๐ŸŽฑ yolo, `๐Ÿ’ฌ` while a checkpoint (Approve?/Verified?/Release?/Finish?) still waits on the operator's word โ€” the legend's "operator, your turn" glyph, the same one stage lines open with โ€” and `โš ๏ธ` while a check of the bound feature fails (emoji render in their own color, so the footer carries no theme coloring). An **unbound** session never sees a slug โ€” it shows `๐Ÿ’ฌ N flow(s) open` (unfinished-feature count only, no warning marker) or `๐Ÿ’ฌ no flows` when nothing is in flight: the pre-flow glyph, because an unbound session is parked on the operator by definition; a session binds only via `flow start`/`flow use`, never by opening. In **pi-web** status text is not clickable, so there the footer is a widget chip instead: the chip reads exactly the footer text (`๐Ÿ’ฌ 2 flows open`, `๐Ÿ”จ my-feature โšก`) and expands (click again to collapse) to one lean line per *other* unfinished flow โ€” the bound flow is already the chip's label, so it is not repeated (alone in the repo, the panel says `no other flows open`); the stage word is spelled out, markers and `โš ๏ธ` follow the footer vocabulary; with nothing open (`๐Ÿ’ฌ no flows`) it is a plain chip with nothing to expand. The TUI never shows it: a widget there is an always-present block, and in a terminal the footer stays the legend. The footer repaints at session start, at the start of every agent run (the earliest a late-attaching web client is listening) and after every gate; an uninitiated folder gets no footer at all. `flow status` is the spelled-out surface: `stage=implement`, the per-feature mode tags (`[ui]`, `[yolo]`, `[no-version]`), the `๐Ÿ’ฌ <word>` marker of a checkpoint the operator has not answered, and the `flow=<ver>` stamp of the build that started the feature.
21
21
 
22
22
  ## Limitations (deliberate, v1)
23
23
 
@@ -2121,24 +2121,40 @@ function tail(out: string, n = 15): string {
2121
2121
 
2122
2122
  // ------------------------------------------------------------------ extension
2123
2123
 
2124
+ /** The pi-web chip's current key: the chip's label IS the widget key, so it changes with the footer text
2125
+ * and the previous one must be cleared on every repaint. */
2126
+ let webChipKey: string | undefined;
2127
+
2124
2128
  /** Compact footer: bound flow = stage glyph, slug, mode markers, โš ๏ธ on its failing checks; unbound = the
2125
2129
  * unfinished-flow count, or `๐Ÿ’ฌ no flows` โ€” an initiated repo always carries the footer. An uninitiated
2126
- * folder gets nothing: the status is cleared. In pi-web the footer text is not clickable, so the same
2127
- * snapshot also feeds a flow-list widget (a `dev-flow` chip whose panel lists every open flow, one lean
2128
- * line each). Pure read โ€” rendering never binds or claims anything. */
2130
+ * folder gets nothing: the status is cleared. In pi-web the footer text is not clickable, so there the
2131
+ * footer IS a widget: one chip labelled with the footer text whose panel lists every open flow, one lean
2132
+ * line each (no lines โ†’ a plain, non-expandable chip). Pure read โ€” rendering never binds or claims anything. */
2129
2133
  function refreshStatus(ctx: ExtensionContext, root: string): void {
2130
2134
  if (!ctx.hasUI) return;
2135
+ const web = ctx.mode !== "tui";
2136
+ const setChip = (key: string | undefined, lines?: string[]) => {
2137
+ if (webChipKey !== undefined && webChipKey !== key) ctx.ui.setWidget(webChipKey, undefined);
2138
+ webChipKey = key;
2139
+ if (key !== undefined) ctx.ui.setWidget(key, lines);
2140
+ };
2131
2141
  if (!initiated(root)) {
2132
2142
  ctx.ui.setStatus("dev-flow", undefined);
2133
- if (ctx.mode !== "tui") ctx.ui.setWidget("dev-flow", undefined);
2143
+ if (web) setChip(undefined);
2134
2144
  return;
2135
2145
  }
2136
2146
  const un = unfinishedStates(root);
2137
2147
  const bound = boundFeature(root, sessionKey(ctx));
2138
- ctx.ui.setStatus("dev-flow", statusFor(bound, un.length).text);
2148
+ const text = statusFor(bound, un.length).text;
2139
2149
  // TUI keeps the footer as its only surface: a lines-widget there is an always-present block above the
2140
- // editor (no click to collapse), which competes with "the footer is the legend". pi-web gets the chip.
2141
- if (ctx.mode !== "tui") ctx.ui.setWidget("dev-flow", un.length ? widgetLines(bound, un) : undefined);
2150
+ // editor (no click to collapse), which competes with "the footer is the legend". pi-web shows the footer
2151
+ // text once, as the chip itself โ€” a status line beside it would only repeat it.
2152
+ if (!web) {
2153
+ ctx.ui.setStatus("dev-flow", text);
2154
+ return;
2155
+ }
2156
+ ctx.ui.setStatus("dev-flow", undefined);
2157
+ setChip(text, widgetLines(bound, un));
2142
2158
  }
2143
2159
 
2144
2160
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-dev-flow",
3
- "version": "0.77.1",
3
+ "version": "0.77.2",
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": [
package/src/core.ts CHANGED
@@ -1441,15 +1441,18 @@ export function statusFor(bound: FlowState | null, openCount: number): { text: s
1441
1441
  return { text: `๐Ÿ’ฌ ${openCount} flow${openCount === 1 ? "" : "s"} open` };
1442
1442
  }
1443
1443
 
1444
- /** The pi-web widget panel's lines: one lean line per unfinished flow โ€” `โ†’` marks this session's bound
1445
- * flow, glyph + markers ride on statusCompact so the panel and the footer never drift in vocabulary โ€”
1446
- * plus the spelled-out stage word and the `โš ๏ธ` on failing checks the compact footer cannot show. The
1447
- * panel is the glance surface; `flow status` stays the detailed one. Empty in, empty out (the caller
1448
- * clears the widget โ€” no chip with nothing to expand). */
1444
+ /** The pi-web footer chip's panel lines: the chip's label already is this session's footer (the bound
1445
+ * flow, or the open count), so the panel lists only the OTHER unfinished flows, one lean line each โ€”
1446
+ * glyph + markers ride on statusCompact so panel and footer never drift in vocabulary โ€” plus the
1447
+ * spelled-out stage word and the `โš ๏ธ` on failing checks. A bound session alone in the repo gets one
1448
+ * "no other flows open" line (the chip still expands, never looks dead); unbound with nothing open
1449
+ * gets no lines (a plain `๐Ÿ’ฌ no flows` chip). `flow status` stays the detailed surface. */
1449
1450
  export function widgetLines(bound: FlowState | null, states: FlowState[]): string[] {
1450
- return states.map((st) => {
1451
+ const others = states.filter((st) => st.slug !== bound?.slug);
1452
+ if (bound && !others.length) return ["no other flows open"];
1453
+ return others.map((st) => {
1451
1454
  const { text, failed } = statusCompact(st);
1452
- return `${st.slug === bound?.slug ? "โ†’" : " "} ${text} ยท ${st.stage}${failed ? " โš ๏ธ" : ""}`;
1455
+ return `${text} ยท ${st.stage}${failed ? " โš ๏ธ" : ""}`;
1453
1456
  });
1454
1457
  }
1455
1458