create-pmos 0.477.0 → 0.478.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.477.0",
3
+ "version": "0.478.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": {
@@ -32,6 +32,19 @@
32
32
  "audit"
33
33
  ],
34
34
  "pmosChanges": [
35
+ {
36
+ "v": "0.478.0",
37
+ "at": "2026-11-01T08:32:21.933Z",
38
+ "f": 3,
39
+ "prs": [
40
+ {
41
+ "n": 1138,
42
+ "t": "Shared-board milestone keeps its place; CI runs only the suites a PR reaches",
43
+ "s": "Shared-board milestone keeps its place; CI runs only the suites a PR reaches",
44
+ "k": "fix"
45
+ }
46
+ ]
47
+ },
35
48
  {
36
49
  "v": "0.477.0",
37
50
  "at": "2026-11-01T08:07:47.579Z",
@@ -284,19 +297,6 @@
284
297
  "k": "fix"
285
298
  }
286
299
  ]
287
- },
288
- {
289
- "v": "0.458.0",
290
- "at": "2026-10-30T03:22:27.686Z",
291
- "f": 3,
292
- "prs": [
293
- {
294
- "n": 1106,
295
- "t": "One mission component on the initiative view",
296
- "s": "One mission component on the initiative view",
297
- "k": "new"
298
- }
299
- ]
300
300
  }
301
301
  ]
302
302
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@e118d194
1
+ kernel-source: pmos@e2a358e4
2
2
  assembled: 2026-11-01
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-01T08:07:43Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-01T08:32:18Z"}
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-01T08:07:43Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-01T08:32:18Z"}
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-01T08:07:43Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-01T08:32:18Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,17 @@
1
1
  [
2
+ {
3
+ "v": "0.478.0",
4
+ "at": "2026-11-01T08:32:21.933Z",
5
+ "f": 3,
6
+ "prs": [
7
+ {
8
+ "n": 1138,
9
+ "t": "Shared-board milestone keeps its place; CI runs only the suites a PR reaches",
10
+ "s": "Shared-board milestone keeps its place; CI runs only the suites a PR reaches",
11
+ "k": "fix"
12
+ }
13
+ ]
14
+ },
2
15
  {
3
16
  "v": "0.477.0",
4
17
  "at": "2026-11-01T08:07:47.579Z",
@@ -64,6 +64,7 @@ The tab is not in the read-only Board. A reader sees no Shared tab.
64
64
 
65
65
  - The view that you were in when you published: the stage track or the Timeline. A reader can switch between the two with the buttons on the toolbar. A copy made before this change opens on the stage track. Republish a link to give it your view. By stage and List are not offered.
66
66
  - On the Timeline, the view opens on today.
67
+ - On the Timeline, a milestone ◇ sits on its date, the same as on your own Board. A reader cannot press it.
67
68
  - The span picker, the Deliveries lane, and the folds of a program and a product.
68
69
  - One line above the Board. It names the selection, the date of the copy, who shared it and when the link ends.
69
70
  - A viewer for each initiative. Press the name of an initiative to open it, on the stage track or on the Timeline. The viewer shows the stage card, About and Tasks. Tasks show for every initiative, also when a stage has a note such as "The rest, by work package". Tasks show as a List or as a Timeline, grouped by stage, owner or status.
@@ -154,7 +154,8 @@ const recentOf = (m) => ({ ...m, recent: [...m.toread, ...m.answered] });
154
154
  // batch 20 item 6: a wide Viewer no longer folds the list by itself; at 1440 the PM folds it to give Mentions the room to sit side by side
155
155
  await until(() => p.evaluate(() => !!document.querySelector('#czViewer:not([hidden])')));
156
156
  await p.click('#hmList .hm-hd [data-hm-fold]');
157
- const L1 = await until(() => listOf(p).then((l) => (l && l.move.length ? l : null)));
157
+ // wait for the fold to land too: the list draws before the split, and a slow runner read it in between (CI, batch 20)
158
+ const L1 = (await until(() => listOf(p).then((l) => (l && l.move.length && l.split ? l : null)))) || (await listOf(p));
158
159
  ok('M3 the row opens the Mentions Viewer, wide on a desktop, the list and the conversation side by side', !!L1 && L1.split, JSON.stringify(L1 && L1.secs));
159
160
  ok('M3 Adler opens on who waits and what Claude drafted, plainly; no button on a light day', !!L1 && L1.face && L1.open === 'Four people wait on you. I drafted one reply; Maya and Dion’s needs you.' && !L1.go.length, JSON.stringify(L1 && [L1.open, L1.go]));
160
161
  ok('M3 Your move open with 3; To read closed with 3; Answered this week closed with 2 and a stack of faces', !!L1 && JSON.stringify(L1.secs) === JSON.stringify([['Your move', '3', 'true'], ['To read', '3', 'false'], ['Answered this week', '2', 'false']]) && L1.stack === 2, JSON.stringify(L1 && [L1.secs, L1.stack]));
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.477.0",
3
+ "version": "0.478.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.477.0",
9
+ "version": "0.478.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.477.0",
3
+ "version": "0.478.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",
@@ -387,6 +387,7 @@ button.tg-n:hover b { color: var(--cz-blueink); }
387
387
  .tg-end::before { content: ''; position: absolute; inset: -8px; }
388
388
  .tg-end:focus-visible, .tg-tm:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 3px; }
389
389
  .tg-end.late { border-color: var(--cz-dot-late); }
390
+ span.tg-end { left: var(--tl-x); cursor: default; } /* a shared board's milestone, set plain by readonly.js (batch 20 item 14) */
390
391
  /* the one label at a bar's end (batch 13 item 4, XcalmA1Desk): what lands, then when; the date alone carries the tone */
391
392
  .tg-endl { position: absolute; top: 50%; transform: translate(11px, -50%); font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink); white-space: nowrap; z-index: 3; line-height: 18px; }
392
393
  .tg-endl > b { font-weight: 700; color: var(--cz-ink3); }
@@ -46,6 +46,9 @@ const WITH_BODY = ['[data-iv-fold="docs"]', '[data-iv-docs]', '[data-iv-fold="li
46
46
 
47
47
  function plain(el) {
48
48
  const s = document.createElement('span'); s.className = el.className;
49
+ // its place: a milestone ◇ on the timeline (.tg-end) is set by an inline left; without it the span sat wherever the flow put it (batch 20 item 14).
50
+ // The span carries it as --tl-x, and cozy-board.css places a plain .tg-end there.
51
+ if (el.style && el.style.left) s.style.setProperty('--tl-x', el.style.left);
49
52
  for (const a of ['title', 'aria-label']) if (el.getAttribute(a) && !/^Mark done|^Change the status/.test(el.getAttribute(a))) s.setAttribute(a, el.getAttribute(a));
50
53
  s.innerHTML = el.innerHTML; el.replaceWith(s);
51
54
  }
@@ -301,14 +301,20 @@ function traceChanges(changes, ctx) {
301
301
  let hit = false;
302
302
  for (const f of code) {
303
303
  if (f === 'server.js' || /^lib\/route(s-|-modules)/.test(f)) continue;
304
- const t = get(f); if (!t || !keys.some((k) => t.includes(k))) continue;
304
+ // the code without its comments: a file whose header comment names a route does not call it (batch 20: lib/chat-files.js
305
+ // documents GET /api/chat-file, and that sent a change to lib/routes-briefing-premium.js to every suite through spawnSessionInner)
306
+ const t = sget(f); if (!t || !keys.some((k) => t.includes(k))) continue;
305
307
  hit = true;
306
308
  if (inList.has(f)) picked.add(f);
307
309
  else if (SUITE_NAME.test(f)) continue; // a suite of another group: nothing depends on it
308
310
  else if (f.startsWith('public/')) viaPublic(f);
309
311
  else { const w = users(f); if (w) return w; }
310
312
  }
311
- return hit ? null : `${where}: nothing names the route ${r}`;
313
+ if (hit) return null;
314
+ // a route no page and no suite names: only a suite that opens its module can reach it (PM, 2026-11-01: no full regression)
315
+ const file = /^(lib\/[\w.-]+\.js)/.exec(String(where));
316
+ if (file) { nameHits(file[1]).forEach((x) => picked.add(x)); return null; }
317
+ return `${where}: nothing names the route ${r}`;
312
318
  };
313
319
  const routes = (keys, where) => { for (const r of keys) { const w = route(r, where); if (w) return w; } return null; };
314
320
  const routeModule = (f) => {
@@ -333,7 +339,11 @@ function traceChanges(changes, ctx) {
333
339
  const m = /^(?:async\s+)?function\s*\*?\s*(\w+)|^(?:const|let)\s+(\w+)\s*=\s*(?:async\s*)?(?:function\b|\([^)]*\)\s*=>|\w+\s*=>)/.exec(C[i]);
334
340
  if (!m) continue;
335
341
  let j = i;
336
- if (/\{\s*$/.test(C[i]) || !/;\s*$/.test(C[i])) { j = i + 1; while (j < C.length && !/^\}/.test(C[j])) j++; }
342
+ // a function whole on its one line (its braces balance, e.g. `function f(s) { try { x(); } catch {} }`) ends there: before,
343
+ // it ran on to the next line that starts with '}' and swallowed the function after it (batch 20: noteSessionEnd took spawnSessionInner)
344
+ const open = (C[i].match(/\{/g) || []).length, shut = (C[i].match(/\}/g) || []).length;
345
+ const whole = open > 0 && open === shut;
346
+ if (!whole && (/\{\s*$/.test(C[i]) || !/;\s*$/.test(C[i]))) { j = i + 1; while (j < C.length && !/^\}/.test(C[j])) j++; }
337
347
  fn.push({ name: m[1] || m[2], a: i + 1, b: j + 1 });
338
348
  i = j;
339
349
  }
@@ -355,7 +365,29 @@ function traceChanges(changes, ctx) {
355
365
  return S;
356
366
  };
357
367
  const used = new Set();
358
- const serverLines = (lines) => {
368
+ // A NEW OPTION (batch 20): every changed line of a function names one of its destructured parameters that nothing else in
369
+ // server.js names. With no caller passing it the function does what it did, so the change reaches only the callers that pass
370
+ // it: the suites that name it, and the suites of each lib/ or public/ file that names it. (Before, adding `typedByPm` to
371
+ // spawnSessionInner reached every suite, through the boot code that calls spawnSession.)
372
+ const optSeen = new Map();
373
+ const optionOnly = (own, lines) => {
374
+ if (optSeen.has(own.name)) return optSeen.get(own.name);
375
+ const { C } = parseServer();
376
+ const sig = /\(\s*\{([^}]*)\}/.exec(C[own.a - 1] || '');
377
+ const params = sig ? sig[1].split(',').map((x) => x.trim().split(/[\s=:]/)[0]).filter((x) => /^\w+$/.test(x)) : [];
378
+ const outside = C.filter((_, k) => k + 1 < own.a || k + 1 > own.b).join('\n');
379
+ const fresh = params.filter((x) => !new RegExp('\\b' + x + '\\b').test(outside));
380
+ const mine = lines.filter((n) => n >= own.a && n <= own.b && (C[n - 1] || '').trim());
381
+ const res = fresh.length > 0 && mine.length > 0 && mine.every((n) => fresh.some((x) => new RegExp('\\b' + x + '\\b').test(C[n - 1])));
382
+ if (res) {
383
+ const re = new RegExp('\\b(' + fresh.join('|') + ')\\b');
384
+ for (const sfile of list) if (re.test(get(sfile) || '')) picked.add(sfile);
385
+ for (const f of code) if (f !== 'server.js' && !inList.has(f) && re.test(sget(f) || '')) nameHits(f).forEach((x) => picked.add(x));
386
+ }
387
+ optSeen.set(own.name, res);
388
+ return res;
389
+ };
390
+ const serverLines = (lines, viaUse = false) => {
359
391
  const { C, fnAt, blockAt } = parseServer();
360
392
  for (const n of lines) {
361
393
  const raw = C[n - 1];
@@ -363,10 +395,16 @@ function traceChanges(changes, ctx) {
363
395
  const b = blockAt(n);
364
396
  if (b) { const w = routes(b.keys, `server.js:${n}`); if (w) return w; continue; }
365
397
  const own = fnAt(n);
398
+ if (own && own.name !== 'handleRequest' && optionOnly(own, lines)) continue;
366
399
  if (own && own.name !== 'handleRequest') { const w = useOf(own.name); if (w) return `${own.name} (server.js:${n}) is used by ${w}`; continue; }
367
400
  const req = /^(?:const|let)\s+\w+\s*=\s*require\(\s*'\.\/(lib\/[\w.-]+)'\s*\)\s*;?\s*$/.exec(raw); // a plain top-level `const x = require('./lib/m.js')`: its uses are other lines, traced on their own
368
401
  const mod = wiringOf(n) || (req ? req[1] : null);
369
402
  if (mod) { nameHits(mod).forEach((x) => picked.add(x)); if (inList.has('test.js')) picked.add('test.js'); continue; } // start-up wiring of one lib module: the suites that name it, and the server boot suite
403
+ // a USE of a changed function at the top level (boot, a timer, session restore): the server boot suite runs that code, and
404
+ // the routes that use the function are traced on their own. Only a changed line of its own out there reaches every suite
405
+ // (PM, 2026-11-01: "DO NOT do full regression every time"; before, any function session restore calls reached all 446 suites)
406
+ // A timer (setInterval/setTimeout) runs it on its own all through every suite, so that use still reaches every suite.
407
+ if (viaUse && !/\bset(Interval|Timeout)\s*\(/.test(raw)) { if (inList.has('test.js')) picked.add('test.js'); continue; }
370
408
  return `server.js:${n}, outside every route and function`;
371
409
  }
372
410
  return null;
@@ -394,7 +432,7 @@ function traceChanges(changes, ctx) {
394
432
  if (!own && /^(?:const|let|var)\s[^=]*=\s*require\(/.test(L[i])) continue; // the binding itself
395
433
  at.push(i + 1);
396
434
  }
397
- return serverLines(at);
435
+ return serverLines(at, true);
398
436
  };
399
437
  // the files that name f, followed until a suite, a route or a page; the reason it cannot tell, or null
400
438
  const userMemo = new Map();
@@ -436,7 +474,7 @@ function traceChanges(changes, ctx) {
436
474
  if (inList.has('test.js')) picked.add('test.js');
437
475
  }
438
476
  for (const name of names) { const w = useOf(name); if (w) return w; }
439
- const w = serverLines(inline); if (w) return w;
477
+ const w = serverLines(inline, true); if (w) return w; // the lines that require it are uses of it, as useOf's
440
478
  continue;
441
479
  }
442
480
  if (/^lib\/routes-/.test(g)) { const w = routeModule(g); if (w) return w; continue; }