create-pmos 0.677.0 → 0.678.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.677.0",
3
+ "version": "0.678.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.678.0",
38
+ "at": "2026-11-22T06:40:11.793Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1473,
43
+ "t": "Every old Home address opens Today; on a desk its chat, session or setup opens in the popup",
44
+ "s": "Every old Home address opens Today; on a desk its chat, session or setup opens in the popup",
45
+ "k": "new"
46
+ }
47
+ ]
48
+ },
36
49
  {
37
50
  "v": "0.677.0",
38
51
  "at": "2026-11-22T06:18:36.434Z",
@@ -363,19 +376,6 @@
363
376
  "k": "new"
364
377
  }
365
378
  ]
366
- },
367
- {
368
- "v": "0.644.0",
369
- "at": "2026-11-20T02:28:58.438Z",
370
- "f": 4,
371
- "prs": [
372
- {
373
- "n": 1426,
374
- "t": "Today, Home and the chat on the PMOS design system, plus two shell fixes",
375
- "s": "Today, Home and the chat on the PMOS design system, plus two shell fixes",
376
- "k": "new"
377
- }
378
- ]
379
379
  }
380
380
  ]
381
381
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@124f78e4
1
+ kernel-source: pmos@3d98e8f6
2
2
  assembled: 2026-11-22
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-22T06:18:34Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-22T06:40:08Z"}
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-22T06:18:34Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-22T06:40:08Z"}
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-22T06:18:34Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-22T06:40:08Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,17 @@
1
1
  [
2
+ {
3
+ "v": "0.678.0",
4
+ "at": "2026-11-22T06:40:11.793Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1473,
9
+ "t": "Every old Home address opens Today; on a desk its chat, session or setup opens in the popup",
10
+ "s": "Every old Home address opens Today; on a desk its chat, session or setup opens in the popup",
11
+ "k": "new"
12
+ }
13
+ ]
14
+ },
2
15
  {
3
16
  "v": "0.677.0",
4
17
  "at": "2026-11-22T06:18:36.434Z",
@@ -278,7 +278,7 @@ A chat on a phone uses the full width of the screen:
278
278
 
279
279
  Setup is a conversation in Home. It replaces the chat on the right while it runs, and the list of your work stays on the left. There is no separate setup page.
280
280
 
281
- Home starts setup when PMOS has no project yet. `pmos` also starts it on a first run. To start it again, open `/premium.html?onboard=1`. The old addresses `/welcome` and `/premium-welcome.html` open the same conversation; the three-step Welcome page they once served is gone.
281
+ Today starts setup when PMOS has no project yet; on a desk it opens in the popup's chat. `pmos` also starts it on a first run. To start it again, open `/premium.html?onboard=1`. The old addresses `/welcome` and `/premium-welcome.html` open the same conversation; the three-step Welcome page they once served is gone.
282
282
 
283
283
  Setup saves its progress on this computer, outside any project folder. A reload continues from the same step.
284
284
 
@@ -241,7 +241,7 @@ Do not set these on your own computer. The suites set them to make a run short o
241
241
  | Variable | What it does | Default | Same in Settings |
242
242
  |---|---|---|---|
243
243
  | `PMOS_TEST` | `1` allows the test seam of the audit sink. | off | — |
244
- | `PMOS_DESK_HOME` | `keep` keeps Home at `/premium.html` on a desk. Without it, a bare `/premium.html` (or one with only `?item=`) opens Today. | Today | — |
244
+ | `PMOS_DESK_HOME` | `keep` keeps Home at `/premium.html` (the suites set it). Without it, every `/premium.html` address opens Today with the same query; on a desk the chat, session or setup it names opens in the popup. | Today | — |
245
245
  | `PMOS_OFFLOOP` | `0` runs the board fold in the server thread, not in a worker. | worker | — |
246
246
  | `PMOS_TICK_MS` | The server's tick. | 1 minute | — |
247
247
  | `PMOS_LIVENESS_MS` | How often the session list is sent again. | 2 seconds | — |
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.677.0",
3
+ "version": "0.678.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.677.0",
9
+ "version": "0.678.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.677.0",
3
+ "version": "0.678.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",
@@ -81,6 +81,7 @@ button.td-ev:focus-visible { outline: none; box-shadow: var(--glow); }
81
81
  body.cz-today.hm-plist { background: var(--cz-card); }
82
82
  body.cz-today.hm-plist #hmDesk > .hm-list, body.cz-today .hm-plist .hm-top, body.cz-today.hm-plist .hm-top { display: none !important; }
83
83
  body.cz-today:not(.hm-plist) .td-page { display: none !important; }
84
+ body.cz-today.pa-on .td-page { display: none !important; } /* ?chats=1, Ask PMOS (home-page-retire): the chats by work are the page */
84
85
  body.cz-today.hm-plist #hmDesk { padding: 0 16px 48px; }
85
86
  .td-page.tdp { display: block; font-family: var(--cz-sans); color: var(--cz-ink); padding-top: calc(env(safe-area-inset-top, 0px) + 18px); }
86
87
  .tdp h1, .tdp h2, .tdp p, .tdp ul { margin: 0; padding: 0; }
@@ -96,6 +96,10 @@ const isPhone = () => innerWidth <= PHONE;
96
96
  /* Today (slice 5 of the six-place navigation): today.html is this page with data-today. On a desk it draws Today's log and agenda in place of
97
97
  * the list and the chat column (pm/cozy-today-app.js); a phone keeps Home. TDY is set once the page's presses are defined (below). */
98
98
  const TD_PAGE = document.body.hasAttribute('data-today');
99
+ /* Home's desk layout is retired (home-page-retire slice 1, Wawan 2026-11-22): every old Home address opens Today (server.js), and Today on a
100
+ * desk has no chat column. A conversation the address names opens in the one popup (cozy-popup.js) instead: the work on the left, Ask PMOS
101
+ * on the right. A phone keeps Home's own layout until the phone Today design exists (slice 2). */
102
+ const deskToday = () => TD_PAGE && !isPhone();
99
103
  let TDY = null;
100
104
  if (navigator.maxTouchPoints > 0) wireSettle(window); // a touch screen only: on a desktop the page does not scroll and the nudge is not needed
101
105
  const SVG = (d, w = 16, sw = 1.8) => `<svg aria-hidden="true" width="${w}" height="${w}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="${sw}" stroke-linecap="round" stroke-linejoin="round"><path d="${d}"/></svg>`;
@@ -923,7 +927,7 @@ function drawList() {
923
927
  * (cozy-home.css). A row opens its chat as Home does; the composer at the foot starts a chat with PMOS. today.html draws Today instead. */
924
928
  const ASK_PAGE = new URLSearchParams(location.search).has('chats'); // the menu's Ask PMOS (cozy-nav.js); a bare /premium.html keeps Home's list
925
929
  function drawAsk() {
926
- const on = isPhone() && !TD_PAGE && ASK_PAGE;
930
+ const on = isPhone() && ASK_PAGE; // today.html on a phone too: every old Home address opens Today (home-page-retire)
927
931
  document.body.classList.toggle('pa-on', on);
928
932
  let el = document.getElementById('paList');
929
933
  if (!on) { if (el) el.hidden = true; return; }
@@ -1083,19 +1087,25 @@ function turnEnded() {
1083
1087
  /* claude-onboarding-build: set up a project as a conversation in this chat's place (cozy-onboard.js). It opens on ?onboard=1, shows the
1084
1088
  * finished project's next steps on ?onboarded=1, and opens by itself on a first run: setup not finished and no registered folder holds an
1085
1089
  * initiative. A named workspace does not stop it: the installer opens its own empty ~/PMOS folder by name (bug 2026-11-02, Windows). */
1086
- const startOnboard = (done) => { document.body.classList.add('ob-on'); mountOnboard($('#hmChat'), { ws: WS, done }); };
1090
+ /** Run fn once Home's chat can show: at once on a phone, in the one popup on Today's desk (home-page-retire slice 1). fn draws over Home's
1091
+ * chat (setup, the reveal), so it waits until this module has given the popup that chat (POP.useChat, below) and the popup holds it. */
1092
+ function inChat(fn) {
1093
+ if (!deskToday()) { fn(); return; }
1094
+ setTimeout(() => POP.openCos(homeTarget()).then(() => { const t0 = Date.now(); (function wait() { if ($('#hmChat').closest('.cz-pop') || Date.now() - t0 > 4000) setTimeout(fn, 300); else setTimeout(wait, 50); })(); }), 0);
1095
+ }
1096
+ const startOnboard = (done) => { document.body.classList.add('ob-on'); inChat(() => mountOnboard($('#hmChat'), { ws: WS, done })); };
1087
1097
  /* onboarding B2 (cozy-reveal.js): right after setup, Home's chat shows what setup did and read, the product portrait and the drafted first
1088
1098
  * initiative, and the list shows the draft, the weekly and the PM's own tickets at its top. It opens on ?onboarded=1, and again on a later
1089
1099
  * visit while the draft waits for ✓ or ✕. With nothing to reveal it falls back to the old next steps. */
1090
1100
  let RV = null;
1091
1101
  function startReveal(M) {
1092
1102
  S.reveal = M; drawList();
1093
- RV = mountReveal($('#hmChat'), {
1103
+ inChat(() => { RV = mountReveal($('#hmChat'), {
1094
1104
  ws: WS, model: M,
1095
1105
  send: (t) => { RV = null; chat.send(t); },
1096
1106
  openIni: (id, prompt) => { RV && RV.close(); RV = null; load().then(() => goIni(id)).then(() => { if (prompt) chat.send(prompt); }); },
1097
1107
  changed: (m) => { S.reveal = m; drawList(); },
1098
- });
1108
+ }); });
1099
1109
  }
1100
1110
  $('#hmList').addEventListener('click', (e) => { if (e.target.closest('[data-rv-left="draft"]')) { if (RV) RV.show(); else if (S.reveal) startReveal(S.reveal); } });
1101
1111
  if (P.get('onboard') === '1') startOnboard(false);
@@ -1103,7 +1113,8 @@ else if (P.get('onboarded') === '1' || WS) {
1103
1113
  pmGet('/api/first-reveal?ws=' + encodeURIComponent(WS)).then((r) => {
1104
1114
  // setup's own ✦ "Draft the first initiative" (onboarding B1) sends &first=draft on ✓ and &first=none on ✕: with none, no draft is shown
1105
1115
  if (r && r.ok && !r.none && P.get('onboarded') === '1' && P.get('first') === 'none' && r.state === 'open') startReveal({ ...r, state: 'later', left: { ...r.left, draft: null } });
1106
- else if (r && r.ok && !r.none && (P.get('onboarded') === '1' || r.state === 'open')) startReveal(r);
1116
+ // a later visit reopens it while the draft waits; on Today's desk that would be a popup on every visit, so there only ?onboarded=1 opens it
1117
+ else if (r && r.ok && !r.none && (P.get('onboarded') === '1' || (r.state === 'open' && !deskToday()))) startReveal(r);
1107
1118
  else if (P.get('onboarded') === '1') startOnboard(true);
1108
1119
  else pmGet('/api/onboard/state').then((x) => { if (x && x.ok && !x.has_projects) startOnboard(false); }).catch(() => {});
1109
1120
  }).catch(() => { if (P.get('onboarded') === '1') startOnboard(true); });
@@ -2470,6 +2481,8 @@ function discussed(about, vid, label) {
2470
2481
  * Viewer · ?say=<words> or ?q a first message in the box, not sent · ?meeting=<note id> the meeting card · ?vk=<kind>&vid=<id> with ?about: the
2471
2482
  * item Discuss in chat came from, opened in the Viewer beside its chat. */
2472
2483
  const KEY = /^(decision|blocked|waited|src|ev|work|board|init|doc|ins|chat|pop):[A-Za-z0-9][A-Za-z0-9._:-]{0,100}$/;
2484
+ /** A conversation the address names: Home's chat column on a phone, the one popup on Today's desk (home-page-retire slice 1). */
2485
+ const addressChat = (t) => (deskToday() ? POP.openCos(t) : openTarget(t));
2473
2486
  load().then(() => {
2474
2487
  const open = P.get('open') || P.get('item'), sid = P.get('session'), mt = P.get('meeting');
2475
2488
  const ask = P.get('ask') || '';
@@ -2484,16 +2497,20 @@ load().then(() => {
2484
2497
  const r = allRows().find((x) => x.key === open || (/^pt:/.test(open) && x.id === open));
2485
2498
  // on Today the item opens in the one popup (design audit of slice 5); on Home, beside the list as before
2486
2499
  if (r && TD_PAGE && !isPhone()) VW.popNext({ keep: true, id: r.id, kind: 'item', title: r.name || r.title || '' });
2487
- if (r) select(r.id); else if (KEY.test(open)) openTarget({ ...homeTarget(), key: open, title: open });
2500
+ if (r) select(r.id); else if (KEY.test(open)) addressChat({ ...homeTarget(), key: open, title: open });
2488
2501
  }
2489
- else if (sid) { const s = S.D.sessions.find((x) => x.id === sid); if (s) { S.sel = 's:' + s.id; openTarget(sessionTarget(s)); followViewer(s); drawList(); } else { openTarget(homeTarget()); toast('That session is not on this machine.'); } }
2490
- else if (/^program:[A-Za-z0-9][A-Za-z0-9._-]{0,100}$/.test(ask)) openTarget(programTarget(ask.slice(8))); // Ask in Home from the program panel
2502
+ else if (sid) { const s = S.D.sessions.find((x) => x.id === sid); if (s) { S.sel = 's:' + s.id; addressChat(sessionTarget(s)); if (!deskToday()) followViewer(s); drawList(); } else { if (!deskToday()) openTarget(homeTarget()); toast('That session is not on this machine.'); } }
2503
+ else if (/^program:[A-Za-z0-9][A-Za-z0-9._-]{0,100}$/.test(ask)) addressChat(programTarget(ask.slice(8))); // Ask in Home from the program panel
2491
2504
  else if (about && /^init:/.test(about) && iniRowOf(P.get('vid') || about.slice(5))) { const id = iniRowOf(P.get('vid')) ? P.get('vid') : about.slice(5); goIni(id).then(() => { if (P.get('vk') && S.ini === id && !isPhone()) iniOverview(); }); }
2492
2505
  // the Board's program panel Discuss in chat names board:program:<id>: the program's own conversation, the one its tasks open (bug 2026-10-24)
2493
- else if (about && /^board:program:[A-Za-z0-9][A-Za-z0-9._-]{0,100}$/.test(about)) openTarget(programTarget(about.slice(14)));
2506
+ else if (about && /^board:program:[A-Za-z0-9][A-Za-z0-9._-]{0,100}$/.test(about)) addressChat(programTarget(about.slice(14)));
2494
2507
  else if (handed) chatAbout(handed); // a report's chat icon on another page
2495
- else if (about && /^ins:(insights|verdict)$/.test(about)) openTarget(insTarget(about));
2496
- else if (about) { openTarget({ ...homeTarget(), key: about, title: (P.get('label') || '').slice(0, 80) || about }); discussed(about, P.get('vid'), P.get('label')); }
2508
+ else if (about && /^ins:(insights|verdict)$/.test(about)) addressChat(insTarget(about));
2509
+ else if (about) { addressChat({ ...homeTarget(), key: about, title: (P.get('label') || '').slice(0, 80) || about }); discussed(about, P.get('vid'), P.get('label')); }
2510
+ // ?chats=1 (the phone menu's Ask PMOS) on a desk: the chat icon's popup, the session that waits for you or the newest
2511
+ else if (ASK_PAGE && deskToday()) POP.openChat();
2512
+ // ?say= alone on a desk: the chief-of-staff chat in the popup, with the words in its box (below)
2513
+ else if (say && deskToday() && !blockOpen) addressChat(homeTarget());
2497
2514
  else if (P.get('view') === 'metrics') openMetrics(P.get('ws') || ''); // ?view=metrics: an old link lands on Intelligence › Delivery trends
2498
2515
  else if (S.ini) goIni(S.ini);
2499
2516
  else if (!isPhone() && !blockOpen && !say && !VW.isOpen() && !TD_PAGE) { const first = H.needsOf(S.D)[0]; if (first) select(first.id); } // Today opens nothing by itself // a card the PM opened while Home was reading stays
@@ -2501,7 +2518,7 @@ load().then(() => {
2501
2518
  const b = { kind: blockOpen[1], id: blockOpen[2] };
2502
2519
  (b.kind === 'report' ? import('./premium-report-tab.js').then((M) => M.openReportTab(b)) : import('./premium-chart-tab.js').then((M) => M.openChartTab(b))).catch(() => toast('That view could not open.'));
2503
2520
  }
2504
- if (say) setTimeout(() => { const ta = $('#hmIn'); if (ta) { ta.value = say; ta.dispatchEvent(new Event('input', { bubbles: true })); ta.focus(); ta.setSelectionRange(say.length, say.length); } }, 0);
2521
+ if (say) setTimeout(() => { const ta = $('#hmIn'); if (ta) { ta.value = say; ta.dispatchEvent(new Event('input', { bubbles: true })); ta.focus(); ta.setSelectionRange(say.length, say.length); } }, deskToday() ? 600 : 0); // a desk: once the popup holds the chat
2505
2522
  if (mt) openMeeting({ note: mt });
2506
2523
  // ?settings=<section> (UI grill U1: the old /premium-workflows.html lands here with ?settings=workflows, keeping ?wf= and ?stage=):
2507
2524
  // Settings opens on that section; ?new=1 with it starts the New workflow conversation in this chat instead
@@ -7370,11 +7370,10 @@ async function handleRequest(req, res) {
7370
7370
  res.writeHead(302, { Location: '/premium.html' + (s ? '?' + s : ''), 'Cache-Control': 'no-store' });
7371
7371
  return res.end();
7372
7372
  }
7373
- // Today is the place of Home (design audit of nav slice 5, 2026-11-19): a bare /premium.html, or one that names only ?item= (and ?ws=),
7374
- // opens /today.html with the same query, where the item opens in the one popup. A phone gets Home there too (today.html keeps Home on a
7375
- // phone). Other links (?ask=, ?around=, ?session=, ?ini=, …) stay on Home until they move to the popup (build plan, "After the nine
7376
- // slices"). PMOS_DESK_HOME=keep (set by test-run.js) keeps Home at its address, so the Home suites test what still ships.
7377
- if ((p === '/premium' || p === '/premium.html') && process.env.PMOS_DESK_HOME !== 'keep' && [...url.searchParams.keys()].every((k) => k === 'ws' || k === 'item')) {
7373
+ // Today is the place of Home. PMOS_DESK_HOME=keep (set by test-run.js) keeps Home at its address for the suites that still read its parts.
7374
+ // home-page-retire slice 1 (Wawan 2026-11-22, "Remove Home on desktop and phone"): every Home address opens Today with the same query. On a
7375
+ // desk Today opens what the query names in the one popup (pm/home-app.js addressChat); a phone's Today is still Home's layout until slice 2.
7376
+ if ((p === '/premium' || p === '/premium.html') && process.env.PMOS_DESK_HOME !== 'keep') {
7378
7377
  res.writeHead(302, { Location: '/today.html' + url.search, 'Cache-Control': 'no-store' });
7379
7378
  return res.end();
7380
7379
  }