pi-dev-flow 0.77.2 โ†’ 0.77.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,11 @@ Format: newest first. `Unreleased` collects what's merged but not yet tagged.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.77.3] - 2026-11-03
8
+
9
+ ### Changed
10
+ - pi-web's footer chip is packed to fit its fixed width (longer labels were clipped with `โ€ฆ`): unbound reads `๐Ÿ’ฌ N open` instead of `๐Ÿ’ฌ N flows open`; bound puts every glyph first with no spaces, then the slug โ€” `๐Ÿ”จโšกโš ๏ธmy-feature` instead of `๐Ÿ”จ my-feature โšก` โ€” so a clip only ever cuts the slug's tail, never the stage or markers (hover shows it whole). The terminal footer is unchanged.
11
+
7
12
  ## [0.77.2] - 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** 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.
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 carries the footer's content packed to fit pi-web's fixed-width chip โ€” bound: every glyph up front with no spaces, then the slug (`๐Ÿ”จโšกโš ๏ธmy-feature`, so only the slug's tail can clip); unbound: `๐Ÿ’ฌ 2 open` (hover shows a clipped label whole) 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
 
@@ -119,6 +119,7 @@ import {
119
119
  verifyGate,
120
120
  versionTagGate,
121
121
  widgetLines,
122
+ chipLabel,
122
123
  writeGuard,
123
124
  mainCheckoutRoot,
124
125
  buildWorkerBrief,
@@ -2145,16 +2146,15 @@ function refreshStatus(ctx: ExtensionContext, root: string): void {
2145
2146
  }
2146
2147
  const un = unfinishedStates(root);
2147
2148
  const bound = boundFeature(root, sessionKey(ctx));
2148
- const text = statusFor(bound, un.length).text;
2149
2149
  // TUI keeps the footer as its only surface: a lines-widget there is an always-present block above the
2150
2150
  // editor (no click to collapse), which competes with "the footer is the legend". pi-web shows the footer
2151
2151
  // text once, as the chip itself โ€” a status line beside it would only repeat it.
2152
2152
  if (!web) {
2153
- ctx.ui.setStatus("dev-flow", text);
2153
+ ctx.ui.setStatus("dev-flow", statusFor(bound, un.length).text);
2154
2154
  return;
2155
2155
  }
2156
2156
  ctx.ui.setStatus("dev-flow", undefined);
2157
- setChip(text, widgetLines(bound, un));
2157
+ setChip(chipLabel(bound, un.length), widgetLines(bound, un));
2158
2158
  }
2159
2159
 
2160
2160
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-dev-flow",
3
- "version": "0.77.2",
3
+ "version": "0.77.3",
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
@@ -1419,11 +1419,16 @@ export function claimBlocks(claim: SessionClaim | null, myKey: string, alive: (p
1419
1419
  /** Footer glyph per stage: the footer has no room for stage words and no legend of its own (README:Status bar is the legend). */
1420
1420
  export const STAGE_EMOJI: Record<Stage, string> = { plan: "๐Ÿ“", implement: "๐Ÿ”จ", "pre-release": "๐Ÿ”", release: "๐Ÿš€" };
1421
1421
 
1422
- export function statusCompact(state: FlowState): { text: string; failed: boolean } {
1423
- const failed = Object.values(state.checks).some((c) => !c.ok);
1422
+ /** Mode markers in footer order: โšก patch / ๐Ÿ“š docs, ๐ŸŽฑ yolo, ๐Ÿ’ฌ unanswered checkpoint. */
1423
+ function modeMarkers(state: FlowState): string[] {
1424
1424
  // ๐Ÿ’ฌ is the legend's "operator, your turn" (docs/playbook.md stage lines): a bound flow whose checkpoint
1425
1425
  // is unanswered is parked on the operator, and the footer is the only thing they see.
1426
- return { text: `${STAGE_EMOJI[state.stage]} ${state.slug}${state.patch ? " โšก" : state.docs ? " ๐Ÿ“š" : ""}${state.yolo ? " ๐ŸŽฑ" : ""}${state.pendingAsk ? " ๐Ÿ’ฌ" : ""}`, failed };
1426
+ return [state.patch ? "โšก" : state.docs ? "๐Ÿ“š" : "", state.yolo ? "๐ŸŽฑ" : "", state.pendingAsk ? "๐Ÿ’ฌ" : ""].filter(Boolean);
1427
+ }
1428
+
1429
+ export function statusCompact(state: FlowState): { text: string; failed: boolean } {
1430
+ const failed = Object.values(state.checks).some((c) => !c.ok);
1431
+ return { text: [STAGE_EMOJI[state.stage], state.slug, ...modeMarkers(state)].join(" "), failed };
1427
1432
  }
1428
1433
 
1429
1434
  /** Footer decision for any session in an initiated repo: a bound feature renders as statusCompact, its โš ๏ธ
@@ -1441,6 +1446,19 @@ export function statusFor(bound: FlowState | null, openCount: number): { text: s
1441
1446
  return { text: `๐Ÿ’ฌ ${openCount} flow${openCount === 1 ? "" : "s"} open` };
1442
1447
  }
1443
1448
 
1449
+ /** The pi-web footer chip's label: pi-web chips are a fixed ~108px and ellipsize anything longer, so the
1450
+ * unbound count drops the word "flows" (`๐Ÿ’ฌ 2 open`; the panel spells the flows out), and a bound flow
1451
+ * packs every glyph up front with no spaces โ€” stage, markers, โš ๏ธ โ€” then the slug (`๐Ÿ”จโšกโš ๏ธmy-feature`):
1452
+ * the state survives the ellipsis, only the slug's tail clips (the hover tooltip shows it whole). */
1453
+ export function chipLabel(bound: FlowState | null, openCount: number): string {
1454
+ if (bound) {
1455
+ const failed = Object.values(bound.checks).some((c) => !c.ok);
1456
+ return `${STAGE_EMOJI[bound.stage]}${modeMarkers(bound).join("")}${failed ? "โš ๏ธ" : ""}${bound.slug}`;
1457
+ }
1458
+ if (openCount < 1) return statusFor(bound, openCount).text;
1459
+ return `๐Ÿ’ฌ ${openCount} open`;
1460
+ }
1461
+
1444
1462
  /** The pi-web footer chip's panel lines: the chip's label already is this session's footer (the bound
1445
1463
  * flow, or the open count), so the panel lists only the OTHER unfinished flows, one lean line each โ€”
1446
1464
  * glyph + markers ride on statusCompact so panel and footer never drift in vocabulary โ€” plus the