create-pmos 0.348.0 → 0.349.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.348.0",
3
+ "version": "0.349.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,18 @@
32
32
  "audit"
33
33
  ],
34
34
  "pmosChanges": [
35
+ {
36
+ "v": "0.349.0",
37
+ "at": "2026-10-20T06:33:28.050Z",
38
+ "f": 2,
39
+ "prs": [
40
+ {
41
+ "n": 947,
42
+ "t": "Simpler premium Decision dialog (evidence rows, one Why field, Later + Record bar)",
43
+ "s": "It follows the approved simple-UI mockup (#3)."
44
+ }
45
+ ]
46
+ },
35
47
  {
36
48
  "v": "0.348.0",
37
49
  "at": "2026-10-20T06:24:40.333Z",
@@ -284,18 +296,6 @@
284
296
  "s": "Premium Settings opens with Updates."
285
297
  }
286
298
  ]
287
- },
288
- {
289
- "v": "0.329.0",
290
- "at": "2026-10-19T23:44:17.780Z",
291
- "f": 2,
292
- "prs": [
293
- {
294
- "n": 911,
295
- "t": "Insights leads with an insight, the pinned dashboard on top, one paged list",
296
- "s": "The page opens with an insight: the strongest finding across the board's measures, the reason with its numbers, two more findings, and Ask PMOS why / See the chart."
297
- }
298
- ]
299
299
  }
300
300
  ]
301
301
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@d3097286
1
+ kernel-source: pmos@cc477f3a
2
2
  assembled: 2026-10-20
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-10-20T06:24:37Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-20T06:33:25Z"}
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-10-20T06:24:37Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-20T06:33:25Z"}
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-10-20T06:24:37Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-20T06:33:25Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -289,7 +289,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
289
289
  ok('R6 the right pane is a draft decision record that says nothing is written until Record', /Decision record/.test(dc.label) && /pm-decisions.md · draft entry/.test(dc.pane) && /Nothing is written to the journal until you press Record/.test(dc.pane) && /Choose an option to draft the entry/.test(dc.pane));
290
290
  await p.locator('#card .op').nth(1).click();
291
291
  const dc2 = await p.evaluate(() => ({ pressed: document.querySelector('#card .op[aria-pressed="true"]').textContent, cta: document.querySelector('#card .cta').textContent, dis: document.querySelector('#card .cta').disabled, pane: document.querySelector('#oMain').textContent }));
292
- ok('R6 choosing an option updates the button and the draft, and the button stays off', /Extend the date/.test(dc2.pressed) && /Record: extend/.test(dc2.cta) && dc2.dis && /Extend the date/.test(dc2.pane) && /extend the date/.test(dc2.pane), JSON.stringify(dc2).slice(0, 200));
292
+ ok('R6 choosing an option updates the button and the draft, and the button stays off', /Extend the date/.test(dc2.pressed) && /Record: extend/i.test(dc2.cta) && dc2.dis && /Extend the date/.test(dc2.pane) && /extend the date/.test(dc2.pane), JSON.stringify(dc2).slice(0, 200));
293
293
  ok('W3 "Not yet" has three live choices', dc.snooze);
294
294
  await p.keyboard.press('Escape');
295
295
  await until(() => p.evaluate(() => !document.querySelector('#dlg').classList.contains('on')));
@@ -338,7 +338,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
338
338
  const btn = () => pg.evaluate(() => { const b = document.querySelector('#recBtn'); return { dis: b.disabled, t: b.textContent.trim(), h: b.getBoundingClientRect().height }; });
339
339
  ok('W1 before a choice the record button is off', (await btn()).dis);
340
340
  await pg.locator('#card .op').nth(1).click();
341
- ok('W1 with a choice and no reason it is still off', (await btn()).dis && /Record: extend/.test((await btn()).t));
341
+ ok('W1 with a choice and no reason it is still off', (await btn()).dis && /Record: extend/i.test((await btn()).t));
342
342
  await pg.fill('#why', 'ab');
343
343
  ok('W1 a reason under three characters keeps it off', (await btn()).dis);
344
344
  await pg.fill('#why', 'Give it a quarter');
@@ -356,6 +356,8 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
356
356
  ok('W7 the page says where it was recorded', await pg.evaluate(() => /pm-decisions\.md/.test(document.querySelector('#toast').textContent)));
357
357
  // not yet
358
358
  await openIdx(3);
359
+ ok('W3 "Later" is one quiet button in the bottom bar, and its menu stays shut until pressed', await pg.evaluate(() => { const b = document.querySelector('#card .dbar #laterBtn'), m = document.querySelector('#laterMenu'); return !!b && b.getAttribute('aria-expanded') === 'false' && m.hidden && !!document.querySelector('#card .dbar #recBtn') && !document.querySelector('#card .mv2'); }));
360
+ await pg.click('#laterBtn');
359
361
  await pg.locator('#card .seg2 button[data-until="tomorrow"]').click();
360
362
  ok('W3 "Tomorrow" posts the key and the time, and closes the dialog', await until(() => posts.some((x) => x.path === '/api/briefing-premium/put-off' && x.body.key === 'decision:KC5' && x.body.until === 'tomorrow')) && await until(() => pg.evaluate(() => !document.querySelector('#dlg').classList.contains('on'))));
361
363
  // slice 3: the read-only agent behind the reply box
@@ -401,7 +403,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
401
403
  await until(() => q.evaluate(() => document.querySelectorAll('#rank .rr').length > 0));
402
404
  await q.locator('#rank .rhd').nth(3).click(); await until(() => q.evaluate(() => document.querySelector('#dlg').classList.contains('on'))); await sleep(800);
403
405
  await q.click('#dTabs [data-t="chat"]'); await sleep(300);
404
- await q.locator('#card .op').nth(0).click(); await q.fill('#why', 'A reason');
406
+ await q.locator('#card .op').nth(0).click(); await q.fill('#why', 'A reason'); await q.click('#laterBtn');
405
407
  const m = await q.evaluate(() => { const hs = (sel) => [...document.querySelectorAll(sel)].map((b) => Math.round(b.getBoundingClientRect().height)); return { over: document.documentElement.scrollWidth > innerWidth + 1 || document.querySelector('#dlg').scrollWidth > document.querySelector('#dlg').clientWidth + 1, small: [].concat(hs('#card .seg2 button'), hs('#recBtn'), hs('.askbar input'), hs('#askGo'), hs('#card .op')).filter((h) => h < 44) }; });
406
408
  ok('W10 at 390 px (' + theme + ') the decision card has no sideways scroll and every new control is 44 px', !m.over && m.small.length === 0, JSON.stringify(m));
407
409
  await c.close();
@@ -1,4 +1,16 @@
1
1
  [
2
+ {
3
+ "v": "0.349.0",
4
+ "at": "2026-10-20T06:33:28.050Z",
5
+ "f": 2,
6
+ "prs": [
7
+ {
8
+ "n": 947,
9
+ "t": "Simpler premium Decision dialog (evidence rows, one Why field, Later + Record bar)",
10
+ "s": "It follows the approved simple-UI mockup (#3)."
11
+ }
12
+ ]
13
+ },
2
14
  {
3
15
  "v": "0.348.0",
4
16
  "at": "2026-10-20T06:24:40.333Z",
@@ -209,7 +209,7 @@ Every markdown document opens as one page in a tab: a report, a PRD, a new docum
209
209
 
210
210
  A Confluence page or Google Doc opens as a tab too. From a document's **Copies**, press **Preview** on a copy. If the last check found the same text in both, the PMOS file is shown as the page, with **Same as PMOS** and the check time. If the copy changed, the tab says so and shows the PMOS version dimmed. **Use the … version** writes the copy's text into the PMOS file after five seconds; press **Undo** to stop it. From a meeting's **Material**, press the page icon on a Google Doc or Confluence link. PMOS holds only the address of such a page, so the tab says so. **Read it now** starts one session that reads the page with your connector and keeps the text in PMOS; it changes nothing in Google Docs or Confluence. The tab then shows the text with when it was read. Press **Read again** for later edits.
211
211
 
212
- A decision opens with no option chosen, because no recommendation is on record. Choose one and the draft entry on the right changes. Nothing is written. The main button, "Not yet" and "Return this run to the agent" are off in this version, and each says why.
212
+ A decision opens with no option chosen, because no recommendation is on record. Its card shows the evidence as label and value rows, the options, and one **Why** field. One bar at the bottom holds a quiet **Later ▾** and the only main button, named after your choice (for example **Record: Extend the date**). Choose one and the draft entry on the right changes. Nothing is written. The main button, "Not yet" and "Return this run to the agent" are off in this version, and each says why.
213
213
 
214
214
  ## The conversation
215
215
 
@@ -229,7 +229,7 @@ Each button writes one record, through a check that only a real press from this
229
229
  | Approve, Dismiss, Undo, Scan now, Stop (the horizon scan) | The scan's own records | `scan.jsonl` in the state folder |
230
230
  | Refresh, Refresh all (data freshness) | A new read of the source | the source's own store |
231
231
  | Done, Undo (the phone card) | The item is marked done, or reopened | the Work list |
232
- | Not yet: Later today, Tomorrow, Next week | A put-off record. The row leaves the list until then and the page names it. It does not count as done. | `briefing-premium-deferred.jsonl` in the state folder |
232
+ | Later ▾: Later today, Tomorrow, Next week | A put-off record. The row leaves the list until then and the page names it. It does not count as done. | `briefing-premium-deferred.jsonl` in the state folder |
233
233
 
234
234
  Later today means three hours from now. Tomorrow and Next week mean 09:00, tomorrow and next Monday.
235
235
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.348.0",
3
+ "version": "0.349.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.348.0",
9
+ "version": "0.349.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.348.0",
3
+ "version": "0.349.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",
@@ -2262,6 +2262,32 @@ button.wl-row[aria-pressed="true"] .wl-tog{background:var(--solid);color:var(--o
2262
2262
  .ub{white-space:normal}
2263
2263
  .toolline{display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:400 var(--fs-1) var(--mono);color:var(--ink-3);opacity:.85}
2264
2264
  .toolline::before{content:"";display:inline-block;vertical-align:middle;margin:0 8px 2px 0;width:6px;height:6px;border-radius:50%;background:var(--ink-3);opacity:.6}
2265
+ /* Simple Decision dialog (premium-simple-ui #3): evidence as label-value rows, the reason as one labelled field, one bottom bar with Later ▾ and Record */
2266
+ .dsim{gap:12px}
2267
+ .dsim .dkv{margin:0;background:var(--card);border-radius:var(--r-in);padding:4px 16px}
2268
+ .dsim .dkv>div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:11px 0;border-top:1px solid var(--hair)}
2269
+ .dsim .dkv>div:first-child{border-top:0}
2270
+ .dsim .dkv dt{color:var(--ink-3);font-size:var(--fs-2);flex:none;max-width:45%}
2271
+ .dsim .dkv dd{margin:0;font-size:var(--fs-3);font-weight:500;text-align:right;min-width:0;overflow-wrap:anywhere}
2272
+ .dsim .dwhy{background:var(--card);border-radius:var(--r-in);padding:10px 14px 4px}
2273
+ .dsim .dwhy .whyl{margin:0 0 2px;font:500 var(--fs-1) var(--sans);letter-spacing:0;text-transform:none;color:var(--ink-3)}
2274
+ .dsim .dwhy .why{min-height:52px;padding:4px 0 8px;background:transparent;border-radius:0}
2275
+ .dsim .dwhy:focus-within{box-shadow:0 0 0 2px var(--b3)}
2276
+ .dsim .dwhy .why:focus-visible{box-shadow:none}
2277
+ .dsim .dinfo{margin:0;display:flex;gap:8px;align-items:center;font-size:var(--fs-2);color:var(--ink-3)}
2278
+ .dsim .dinfo i{flex:none;width:16px;height:16px;border-radius:50%;box-shadow:inset 0 0 0 1.4px var(--ink-3);display:grid;place-items:center;font:600 var(--fs-1)/1 var(--mono);font-style:normal}
2279
+ .dsim .dbar{display:flex;align-items:center;gap:10px;margin:2px -22px -20px;padding:14px 22px 16px;border-top:1px solid var(--hair)}
2280
+ .dsim .dbar .cta{flex:1;justify-content:center;min-width:0;height:auto;min-height:48px;padding:6px 16px}
2281
+ .dsim .dbar .cta span{text-align:center;line-height:1.25}
2282
+ .dsim .dlater{position:relative;flex:none}
2283
+ .dsim .dlb{display:inline-flex;align-items:center;gap:4px;height:44px;padding:0 14px;border-radius:999px;background:var(--card);font-size:var(--fs-2);font-weight:600;color:var(--ink-2)}
2284
+ .dsim .dlb svg{width:16px;height:16px}
2285
+ .dsim .dlb[aria-expanded="true"] svg{transform:rotate(180deg)}
2286
+ .dsim .dlb[aria-expanded="true"]{box-shadow:inset 0 0 0 1.5px var(--b1);color:var(--ink)}
2287
+ .dsim .dlm{position:absolute;left:0;bottom:calc(100% + 8px);z-index:5;display:grid;gap:2px;min-width:170px;padding:6px;border-radius:var(--r-in);background:var(--card-solid,var(--well));box-shadow:0 10px 30px rgba(0,0,0,.18),0 0 0 1px var(--hair)}
2288
+ .dsim .dlm[hidden]{display:none}
2289
+ .dsim .dlm button{display:flex;align-items:center;width:100%;height:44px;justify-content:flex-start;text-align:left;background:transparent;border-radius:10px}
2290
+ .dsim .dlm button:hover,.dsim .dlm button:focus-visible{background:var(--well)}
2265
2291
  /* Agent proposals, the simple dialog (premium-simple-ui #2): one card per proposal, a bottom bar with Keep as the only primary, the notes behind one ⓘ */
2266
2292
  .pc-list{gap:12px}
2267
2293
  .bd-it.pcard,.bd-list>.bd-it.pcard:first-child{padding:14px 18px;border:1px solid var(--hair);border-radius:16px;background:var(--card-solid);cursor:pointer;transition:box-shadow .2s}
@@ -201,8 +201,12 @@ function cardHtml(r) {
201
201
  const opts = d.opts.length ? `<div class="opts2">${d.opts.map((x) => `<button class="op" data-op="${esc(x.k)}" aria-pressed="${x.k === sel}"><i></i><span><b>${esc(x.t)}</b><small>${esc(x.d)}</small></span></button>`).join('')}</div>` : '';
202
202
  const head = `<div class="acard" id="card"><p class="ct">${esc(d.head)}</p>${facts}`;
203
203
  if (w && w.kind === 'decision') {
204
- const label = o ? d.prim[o.k].replace(/^Hold to record: /, 'Record: ') : 'Your call: choose one';
205
- return `${head}${opts}${d.nodef ? `<p class="nodef">${esc(d.nodef)}</p>` : ''}${whyBox(r, 'Why (required, kept in the journal)')}${err}<div class="cact" id="cardAct"><button class="cta" id="recBtn" data-rec="decision" disabled>${CHECK}<span>${esc(label)}</span></button></div><div class="mv2">Not yet <span class="seg2">${[['later', 'Later today'], ['tomorrow', 'Tomorrow'], ['nextweek', 'Next week']].map(([k, t]) => `<button data-until="${k}">${t}</button>`).join('')}</span></div></div>`;
204
+ // the simple decision card: the evidence as label-value rows, the option cards, the reason as one labelled field, and one bottom bar
205
+ // with a quiet "Later" and the only primary, named after the chosen option
206
+ const label = o ? 'Record: ' + o.t : 'Your call: choose one';
207
+ const ev = d.facts.length ? `<p class="ct">${esc(d.head)}</p><dl class="dkv">${d.facts.map(([a, b]) => `<div><dt>${esc(a)}</dt><dd>${esc(b)}</dd></div>`).join('')}</dl>` : '';
208
+ const later = [['later', 'Later today'], ['tomorrow', 'Tomorrow'], ['nextweek', 'Next week']].map(([k, t]) => `<button type="button" role="menuitem" data-until="${k}">${t}</button>`).join('');
209
+ return `<div class="acard dsim" id="card">${ev}${d.opts.length ? '<p class="ct">Your call</p>' : ''}${opts}<div class="dwhy">${whyBox(r, 'Why · kept in the journal')}</div>${d.nodef ? `<p class="dinfo"><i aria-hidden="true">i</i><span>${esc(d.nodef)}</span></p>` : ''}${err}<div class="dbar" id="cardAct"><div class="dlater"><button type="button" class="dlb" id="laterBtn" aria-haspopup="menu" aria-expanded="false" aria-controls="laterMenu">Later <svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 9l6 6 6-6"/></svg></button><div class="seg2 dlm" id="laterMenu" role="menu" aria-label="Put it off until" hidden>${later}</div></div><button class="cta" id="recBtn" data-rec="decision" disabled>${CHECK}<span>${esc(label)}</span></button></div></div>`;
206
210
  }
207
211
  if (w && w.kind === 'return') {
208
212
  return `${head}<p class="ct">Return this run: why</p><div class="seg2" id="retWhy">${RET_REASONS.map((x) => `<button data-ret="${esc(x)}" aria-pressed="${RET[r.key] === x}">${esc(x)}</button>`).join('')}</div>${err}<div class="cact"><button class="cta" id="recBtn" data-rec="return" disabled>${CHECK}<span>${esc(d.action)}</span></button></div></div>`;
@@ -282,6 +286,9 @@ $('#dBody').addEventListener('click', (e) => {
282
286
  }
283
287
  const rt = e.target.closest('[data-ret]');
284
288
  if (rt) { WHY[openR.key] = ($('#why') || {}).value || ''; RET[openR.key] = rt.dataset.ret; $('#card').outerHTML = cardHtml(openR); ctaState(openR); return; }
289
+ const lb = e.target.closest('#laterBtn'), lm = $('#laterMenu');
290
+ if (lb) { const v = lm.hidden; lm.hidden = !v; lb.setAttribute('aria-expanded', v); return; }
291
+ if (lm && !lm.hidden && !e.target.closest('#laterMenu')) { lm.hidden = true; $('#laterBtn').setAttribute('aria-expanded', 'false'); }
285
292
  const un = e.target.closest('[data-until]');
286
293
  if (un) { write('put-off', { key: openR.key, until: un.dataset.until }, async () => { toast('Put off. It comes back by itself, and it is not counted as done.'); closeDlg(); await load(); }); return; }
287
294
  const rec = e.target.closest('#recBtn');