create-pmos 0.720.0 → 0.722.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.720.0",
3
+ "version": "0.722.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,32 @@
33
33
  "audit"
34
34
  ],
35
35
  "pmosChanges": [
36
+ {
37
+ "v": "0.722.0",
38
+ "at": "2026-11-23T01:53:55.806Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1599,
43
+ "t": "Pmos why coverage leaves out Closed, Cancelled and Killed records",
44
+ "s": "Pmos why coverage leaves out Closed, Cancelled and Killed records",
45
+ "k": "fix"
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "v": "0.721.0",
51
+ "at": "2026-11-23T00:30:20.134Z",
52
+ "f": 4,
53
+ "prs": [
54
+ {
55
+ "n": 1597,
56
+ "t": "Search counts pages and actions on All only (job #1562 follow-up)",
57
+ "s": "Search counts pages and actions on All only (job #1562 follow-up)",
58
+ "k": "fix"
59
+ }
60
+ ]
61
+ },
36
62
  {
37
63
  "v": "0.720.0",
38
64
  "at": "2026-11-23T00:13:50.800Z",
@@ -458,50 +484,6 @@
458
484
  "k": "new"
459
485
  }
460
486
  ]
461
- },
462
- {
463
- "v": "0.688.0",
464
- "at": "2026-11-22T09:05:24.774Z",
465
- "f": 4,
466
- "prs": [
467
- {
468
- "n": 1512,
469
- "t": "Pmos pages shows each page's fix count before new features",
470
- "s": "Pmos pages shows each page's fix count before new features",
471
- "k": "new"
472
- },
473
- {
474
- "n": 1502,
475
- "t": "Done days and owners from the tracker, one sync number per product",
476
- "s": "Done days and owners from the tracker, one sync number per product",
477
- "k": "new"
478
- }
479
- ]
480
- },
481
- {
482
- "v": "0.686.0",
483
- "at": "2026-11-22T08:54:30.609Z",
484
- "f": 4,
485
- "prs": [
486
- {
487
- "n": 1495,
488
- "t": "A daily standup digest from the tracker",
489
- "s": "A daily standup digest from the tracker",
490
- "k": "new"
491
- },
492
- {
493
- "n": 1507,
494
- "t": "List pmos jira digest in the CLI guide",
495
- "s": "List pmos jira digest in the CLI guide",
496
- "k": "fix"
497
- },
498
- {
499
- "n": 1508,
500
- "t": "Design drift counts a .style.cssText assignment once",
501
- "s": "Design drift counts a .style.cssText assignment once",
502
- "k": "fix"
503
- }
504
- ]
505
487
  }
506
488
  ]
507
489
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@937f2bf7
1
+ kernel-source: pmos@c44f7536
2
2
  assembled: 2026-11-23
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-23T00:13:47Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-23T01:53:51Z"}
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-23T00:13:47Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-23T01:53:51Z"}
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-23T00:13:47Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-23T01:53:51Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,30 @@
1
1
  [
2
+ {
3
+ "v": "0.722.0",
4
+ "at": "2026-11-23T01:53:55.806Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1599,
9
+ "t": "Pmos why coverage leaves out Closed, Cancelled and Killed records",
10
+ "s": "Pmos why coverage leaves out Closed, Cancelled and Killed records",
11
+ "k": "fix"
12
+ }
13
+ ]
14
+ },
15
+ {
16
+ "v": "0.721.0",
17
+ "at": "2026-11-23T00:30:20.134Z",
18
+ "f": 4,
19
+ "prs": [
20
+ {
21
+ "n": 1597,
22
+ "t": "Search counts pages and actions on All only (job #1562 follow-up)",
23
+ "s": "Search counts pages and actions on All only (job #1562 follow-up)",
24
+ "k": "fix"
25
+ }
26
+ ]
27
+ },
2
28
  {
3
29
  "v": "0.720.0",
4
30
  "at": "2026-11-23T00:13:50.800Z",
@@ -273,7 +273,7 @@ When the words you type in Search point clearly to one thing, the first row is t
273
273
 
274
274
  | Key | What it does |
275
275
  |---|---|
276
- | ⌘K (Ctrl-K) or / | Open Search from any page. A second press focuses the box. Search also reaches pages (**Go to**), Settings sections, themes, the Guide and the calendar (**Do**), and the actions of the item you last pointed at (**On this item**): type "sprint" to move that item to the next sprint. |
276
+ | ⌘K (Ctrl-K) or / | Open Search from any page. A second press focuses the box. Search also reaches pages (**Go to**), Settings sections, themes, the Guide and the calendar (**Do**), and the actions of the item you last pointed at (**On this item**): type "sprint" to move that item to the next sprint. These rows show under **All** only, and the **Initiatives** count leaves them out. |
277
277
  | Esc | Close Search or the menu, then the Viewer. |
278
278
  | ↑ ↓ and Enter | Move through Search results and open one. |
279
279
  | Y | Say yes to what PMOS proposes on the item you point at. |
@@ -7,7 +7,8 @@
7
7
  * initiativeIdOf(ref) → id a task id `<initiative>.<10 characters>` reads as its initiative
8
8
  * recordPathOf(root, id) → path | null planning/initiatives/<id>.md, else pmos/state/initiatives/<id>.md (kit layout)
9
9
  * readWhy(root, ref) → why | null reads the record and the PRD it names, from disk
10
- * activeIds(root) → [id] every record that is not closed, cancelled or accepted (lifecycle.jsonl, acceptances.jsonl)
10
+ * activeIds(root) → [id] every record that is not closed, cancelled, killed or accepted: its own `status`
11
+ * (begins Closed, Cancelled or Killed), lifecycle.jsonl and acceptances.jsonl
11
12
  * coverage(root) → { active, complete, percent, missing: [{ id, lines: ['goal'|'problem'|'evidence'] }] }
12
13
  *
13
14
  * THE LINES, in the order each is tried. A line the records do not hold is null: nothing is made up from the title.
@@ -28,6 +29,7 @@ const LEDGER_DIRS = [['planning', 'runs'], ['pmos', 'state']];
28
29
  const TASK_ID = /^([A-Za-z0-9][A-Za-z0-9._-]*)\.[A-Za-z0-9_-]{10}$/;
29
30
  const ID_RE = /^[A-Za-z0-9][A-Za-z0-9._-]{0,119}$/;
30
31
  const STOPPED = new Set(['closed', 'cancelled', 'canceled', 'killed']);
32
+ const STATUS_STOPPED = /^\s*(closed|cancell?ed|canceled|killed)\b/i;
31
33
 
32
34
  const unquote = (v) => {
33
35
  const t = String(v == null ? '' : v).trim();
@@ -203,7 +205,13 @@ function activeIds(root) {
203
205
  const ids = new Set();
204
206
  for (const parts of LAYOUTS) {
205
207
  let names = []; try { names = fs.readdirSync(path.join(root, ...parts)); } catch { continue; }
206
- for (const n of names) if (n.endsWith('.md') && n !== 'README.md' && n !== 'index.md' && n !== 'log.md') ids.add(n.slice(0, -3));
208
+ for (const n of names) {
209
+ if (!n.endsWith('.md') || n === 'README.md' || n === 'index.md' || n === 'log.md') continue;
210
+ // Done test C6: a record whose own `status` begins Closed, Cancelled or Killed is not active, whatever the ledgers say.
211
+ const fm = frontOf(readText(path.join(root, ...parts, n)) || '');
212
+ if (STATUS_STOPPED.test(String(fm.status || ''))) continue;
213
+ ids.add(n.slice(0, -3));
214
+ }
207
215
  }
208
216
  const state = new Map();
209
217
  for (const parts of LEDGER_DIRS) {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.720.0",
3
+ "version": "0.722.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.720.0",
9
+ "version": "0.722.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.720.0",
3
+ "version": "0.722.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",
@@ -114,7 +114,8 @@ function drawChips() {
114
114
  // the page's own hits (UI grill U2) count on All and on Initiatives, where they show; an initiative listed twice counts once
115
115
  { const kind = S.kind; S.kind = 'all'; const own = scopeGroups(S.q.trim()); S.kind = kind;
116
116
  const ids = new Set(own.flatMap((g) => g.rows.map((r) => r.id).filter(Boolean))), n = own.reduce((a, g) => a + g.rows.length, 0), dup = rows.filter((r) => r.kind === 'initiative' && ids.has(r.id)).length;
117
- if (n) { c.all = (c.all || 0) + n - dup; c.initiative = (c.initiative || 0) + n - dup; } }
117
+ const other = own.filter((g) => g.allOnly).reduce((a, g) => a + g.rows.length, 0);
118
+ if (n) { c.all = (c.all || 0) + n - dup; c.initiative = (c.initiative || 0) + n - dup - other; } }
118
119
  // no worktree chip and no "main" chip (workspace grill W4): Search reads every worktree, and the footer says "Searches your work"
119
120
  box.innerHTML = K.map(([k, l]) => `<button type="button" class="ev-chip${S.kind === k ? ' on' : ''}" data-ev-kind="${k}" aria-pressed="${S.kind === k}">${esc(l)}${!isPhone() && S.q.trim().length >= 2 ? ' ' + (c[k] || 0) : ''}</button>`).join('');
120
121
  }
@@ -127,11 +128,12 @@ function rowHtml(r, i) {
127
128
  const two = isPhone() ? `<span class="ev-t">${title}${sub ? `<br><span class="ev-small ev-mut">${subHtml}</span>` : ''}</span>` : `<span class="ev-t">${title}${sub ? ` <span class="ev-mut">· ${subHtml}</span>` : ''}</span>`;
128
129
  return `<button type="button" class="ev-mi${i === S.at ? ' hl' : ''}" role="option" id="evo${i}" data-ev-i="${i}" aria-selected="${i === S.at}">${svg(KIND_ICON[r.kind] || ICON.doc, 18)}${two}${right ? `<span class="ev-k">${right}</span>` : ''}</button>`;
129
130
  }
130
- /** The page's own groups first (o.scope, UI grill U2), on All and on Initiatives; a page that throws or finds nothing adds nothing. */
131
+ /** The page's own groups first (o.scope, UI grill U2), on All and on Initiatives (an allOnly group on All only); a page that throws or finds nothing adds nothing. */
131
132
  function scopeGroups(q) {
132
133
  if (!S.scope || q.length < 2 || !['all', 'initiative'].includes(S.kind)) return [];
133
134
  let G = []; try { G = S.scope.hits(q) || []; } catch { G = []; }
134
- return G.filter((g) => g && (g.rows || []).length).map((g) => ({ key: 'scoped', label: g.label, rows: g.rows.map((x) => ({ ...x, kind: 'scoped' })) }));
135
+ // a group marked allOnly (pages and actions, pm/palette-all.js) shows and counts on All only: it holds no initiative
136
+ return G.filter((g) => g && (g.rows || []).length && !(g.allOnly && S.kind !== 'all')).map((g) => ({ key: 'scoped', label: g.label, allOnly: !!g.allOnly, rows: g.rows.map((x) => ({ ...x, kind: 'scoped' })) }));
135
137
  }
136
138
  function drawList() {
137
139
  const box = S.el && S.el.querySelector('#evRes'); if (!box) return;
@@ -12,7 +12,7 @@
12
12
  * there is nothing, as in Search. Each pick is noted on this computer only (pm/use-log.js noteUse): palette-page, palette-action or
13
13
  * palette-item, no text and no value.
14
14
  *
15
- * paletteGroups(q, ctx) PURE (but for the item's buttons, read from the page): [{ label, rows: [{ id, title, sub?, tag?, icon, open() }] }]
15
+ * paletteGroups(q, ctx) PURE (but for the item's buttons, read from the page): [{ label, allOnly: true, rows: [{ id, title, sub?, tag?, icon, open() }] }]
16
16
  * withEverything(scope, ctx) a Search scope ({ name, hits(q) }): the page's own groups first, then paletteGroups
17
17
  * ctx: { places: [{ key, label, href }], here, item?, doc?, wsq?(prefix) → '?ws=…' | '', chat?(), setTheme?(pick), go?(url) } */
18
18
  import { KEYS, targetOf, wordsOf } from './action-keys.js';
@@ -84,7 +84,7 @@ export function paletteGroups(q, ctx = {}) {
84
84
  const s = String(q || '').trim();
85
85
  if (s.length < 2) return [];
86
86
  return [['On this item', itemRows(s, ctx)], ['Go to', pageRows(s, ctx).slice(0, 6)], ['Do', actionRows(s, ctx).slice(0, 6)]]
87
- .filter(([, rows]) => rows.length).map(([label, rows]) => ({ label, rows }));
87
+ .filter(([, rows]) => rows.length).map(([label, rows]) => ({ label, rows, allOnly: true })); // Search: on All only, never counted as initiatives
88
88
  }
89
89
 
90
90
  /** A Search scope: the page's own groups first (a page scope that throws gives none), then the palette's. */