create-pmos 0.721.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.721.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,19 @@
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
+ },
36
49
  {
37
50
  "v": "0.721.0",
38
51
  "at": "2026-11-23T00:30:20.134Z",
@@ -471,25 +484,6 @@
471
484
  "k": "new"
472
485
  }
473
486
  ]
474
- },
475
- {
476
- "v": "0.688.0",
477
- "at": "2026-11-22T09:05:24.774Z",
478
- "f": 4,
479
- "prs": [
480
- {
481
- "n": 1512,
482
- "t": "Pmos pages shows each page's fix count before new features",
483
- "s": "Pmos pages shows each page's fix count before new features",
484
- "k": "new"
485
- },
486
- {
487
- "n": 1502,
488
- "t": "Done days and owners from the tracker, one sync number per product",
489
- "s": "Done days and owners from the tracker, one sync number per product",
490
- "k": "new"
491
- }
492
- ]
493
487
  }
494
488
  ]
495
489
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@2d8f3874
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:30:17Z"}
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:30:17Z"}
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:30:17Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-23T01:53:51Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,17 @@
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
+ },
2
15
  {
3
16
  "v": "0.721.0",
4
17
  "at": "2026-11-23T00:30:20.134Z",
@@ -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.721.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.721.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.721.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",