create-pmos 0.583.0 → 0.584.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.583.0",
3
+ "version": "0.584.0",
4
4
  "description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -33,6 +33,25 @@
33
33
  "audit"
34
34
  ],
35
35
  "pmosChanges": [
36
+ {
37
+ "v": "0.584.0",
38
+ "at": "2026-11-17T06:55:14.683Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1319,
43
+ "t": "The product improve loop reads PMOS's stage from a hosted PMOS checkout",
44
+ "s": "The product improve loop reads PMOS's stage from a hosted PMOS checkout",
45
+ "k": "fix"
46
+ },
47
+ {
48
+ "n": 1318,
49
+ "t": "Read the add-directory trust prompt as a real 80-column pane draws it",
50
+ "s": "Read the add-directory trust prompt as a real 80-column pane draws it",
51
+ "k": "fix"
52
+ }
53
+ ]
54
+ },
36
55
  {
37
56
  "v": "0.583.0",
38
57
  "at": "2026-11-17T04:07:38.209Z",
@@ -285,19 +304,6 @@
285
304
  "k": "fix"
286
305
  }
287
306
  ]
288
- },
289
- {
290
- "v": "0.564.0",
291
- "at": "2026-11-11T14:08:23.553Z",
292
- "f": 4,
293
- "prs": [
294
- {
295
- "n": 1295,
296
- "t": "Pmos blueprint on a shallow clone warns and shows Unknown, never a merged PR as In build",
297
- "s": "Pmos blueprint on a shallow clone warns and shows Unknown, never a merged PR as In build",
298
- "k": "fix"
299
- }
300
- ]
301
307
  }
302
308
  ]
303
309
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@aeaaaae9
1
+ kernel-source: pmos@808d57fc
2
2
  assembled: 2026-11-17
3
3
  mode: vendor
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Eval calibration log"
4
4
  description: "Append-only record of every PM override of an evaluator verdict."
5
- generated: {by: process:create-pmos, at: "2026-11-17T04:07:35Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-17T06:55:11Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Health budgets"
4
4
  description: "Closed registry of health-budget anchors (D59), edited only by the PM."
5
- generated: {by: process:create-pmos, at: "2026-11-17T04:07:35Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-17T06:55:11Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Discoveries and friction log"
4
4
  description: "Append-only record of what runs discovered and where the process rubbed."
5
- generated: {by: process:create-pmos, at: "2026-11-17T04:07:35Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-17T06:55:11Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,23 @@
1
1
  [
2
+ {
3
+ "v": "0.584.0",
4
+ "at": "2026-11-17T06:55:14.683Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1319,
9
+ "t": "The product improve loop reads PMOS's stage from a hosted PMOS checkout",
10
+ "s": "The product improve loop reads PMOS's stage from a hosted PMOS checkout",
11
+ "k": "fix"
12
+ },
13
+ {
14
+ "n": 1318,
15
+ "t": "Read the add-directory trust prompt as a real 80-column pane draws it",
16
+ "s": "Read the add-directory trust prompt as a real 80-column pane draws it",
17
+ "k": "fix"
18
+ }
19
+ ]
20
+ },
2
21
  {
3
22
  "v": "0.583.0",
4
23
  "at": "2026-11-17T04:07:38.209Z",
@@ -586,6 +586,7 @@ const ADD_DIR_RE = /^Adding a new directory:\s*(.*)$/i;
586
586
  const HINT_RE = /^(?:Enter to confirm|Esc to (?:exit|cancel))\b|\s·\s/i;
587
587
  const SEL_RE = /^[❯›>]\s+/;
588
588
  const NUM_RE = /^\d[.)]\s+/;
589
+ const ANSWER_RE = /^(?:yes|no)\b/i;
589
590
  /** The menu's answers: the lines next to the selected one (❯), up to a blank line. Each answer's n is its place (1 first) and sel is the
590
591
  * place of the selected one, so the page can move the selection to an answer (arrow keys) and press Enter. The answers may or may not
591
592
  * carry numbers. */
@@ -594,13 +595,24 @@ function trustAsk(screen, clean = (x) => x) {
594
595
  let k = -1;
595
596
  for (let i = lines.length - 1; i >= 0; i--) if (SEL_RE.test(lines[i])) { k = i; break; }
596
597
  if (k < 0) return null;
598
+ // The answers are the Yes/No lines next to the selected one. (2026-11-17, 0.583.0 live check: the 2.1.326 prompt has no blank line
599
+ // between its description and "> No, exit", so "up to a blank line" swallowed the description. Every answer of a trust prompt starts
600
+ // with Yes or No; nothing else on the screen does.)
601
+ const strip = (l) => l.replace(SEL_RE, '').replace(NUM_RE, '').trim();
602
+ const isAnswer = (l) => l && ANSWER_RE.test(strip(l));
603
+ if (!isAnswer(lines[k])) return null;
597
604
  let a = k, b = k;
598
- while (a > 0 && lines[a - 1] && !TRUST_RE.test(lines[a - 1]) && a > k - 6) a--;
599
- while (b + 1 < lines.length && lines[b + 1] && !HINT_RE.test(lines[b + 1]) && b < k + 6) b++;
600
- const block = lines.slice(a, b + 1).map((l) => l.replace(SEL_RE, '').replace(NUM_RE, '').trim());
605
+ while (a > 0 && isAnswer(lines[a - 1]) && a > k - 6) a--;
606
+ while (b + 1 < lines.length && isAnswer(lines[b + 1]) && !HINT_RE.test(lines[b + 1]) && b < k + 6) b++;
607
+ const block = lines.slice(a, b + 1).map(strip);
601
608
  if (block.length < 2 || block.length > 6 || !block.some((l) => /\bexit\b/i.test(l))) return null;
609
+ // The question, which an 80-column pane wraps ("…created or one" / "you trust?"): test each line joined with the next.
602
610
  let q = null;
603
- for (let i = a - 1; i >= 0 && i >= a - 12; i--) if (TRUST_RE.test(lines[i])) { q = lines[i]; break; }
611
+ for (let i = a - 1; i >= 0 && i >= a - 12; i--) {
612
+ if (TRUST_RE.test(lines[i])) { q = lines[i]; break; }
613
+ const two = lines[i] && lines[i + 1] ? lines[i] + ' ' + lines[i + 1] : '';
614
+ if (two && TRUST_RE.test(two)) { q = two; break; }
615
+ }
604
616
  if (!q && !block.some((l) => /trust/i.test(l))) return null;
605
617
  let dir = null;
606
618
  for (let i = a - 1; i >= 0 && i >= a - 14; i--) {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.583.0",
3
+ "version": "0.584.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.583.0",
9
+ "version": "0.584.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@anthropic-ai/sdk": "^1.3.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.583.0",
3
+ "version": "0.584.0",
4
4
  "private": true,
5
5
  "description": "PMOS Terminal Workspace — local companion hosting real PTYs beside the library and gates (D62)",
6
6
  "license": "MIT",
@@ -3131,7 +3131,8 @@ const verifyTick = () => { try { verifyRuns.tick({}); } catch (e) { warnWriteFai
3131
3131
  const improveRuns = require('./lib/improve-runs.js').create({
3132
3132
  roots: () => [...workspaces.values()].map((w) => ({ id: w.id, root: w.root })),
3133
3133
  stateDirFor: (r) => { const w = workspaces.get(r.id); return w ? stateDirFor(w) : null; },
3134
- selfRoot: () => (require('./lib/improve-runs.js').isSelf(SELF_ROOT) ? SELF_ROOT : null),
3134
+ // An installed workspace (npm) is not a PMOS checkout, so the stage gate also reads a PMOS checkout the PM hosts as a workspace.
3135
+ selfRoot: () => { const IR = require('./lib/improve-runs.js'); if (IR.isSelf(SELF_ROOT)) return SELF_ROOT; const w = [...workspaces.values()].find((x) => x && x.root && IR.isSelf(x.root)); return w ? w.root : null; },
3135
3136
  quota: () => orchQuota.read(STATE),
3136
3137
  env: process.env,
3137
3138
  spawn: (spec) => orchSpawn.spawn({ name: spec.name, agent: 'claude', ws: spec.ws, origin: spec.origin, initialInput: spec.initialInput, extraEnv: spec.env, autoDelete: undefined }),