create-pmos 0.370.0 → 0.372.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.370.0",
3
+ "version": "0.372.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,35 @@
32
32
  "audit"
33
33
  ],
34
34
  "pmosChanges": [
35
+ {
36
+ "v": "0.372.0",
37
+ "at": "2026-10-21T02:53:20.808Z",
38
+ "f": 2,
39
+ "prs": [
40
+ {
41
+ "n": 981,
42
+ "t": "The Board's first screen has quiet chips, not two segmented rows (calmer first screen 4/5)",
43
+ "s": "The Board's first screen has quiet chips, not two segmented rows (calmer first screen 4/5)"
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "v": "0.371.0",
49
+ "at": "2026-10-21T02:38:31.758Z",
50
+ "f": 2,
51
+ "prs": [
52
+ {
53
+ "n": 979,
54
+ "t": "Each Briefing card names the reads it shows and when (briefing-source-flow, slice 5)",
55
+ "s": "Each card says which reads it shows and when they were read, as in the approved mockup."
56
+ },
57
+ {
58
+ "n": 978,
59
+ "t": "Quiet the standing chat note until the box has focus (calmer first screen 3/5)",
60
+ "s": "Quiet the standing chat note until the box has focus (calmer first screen 3/5)"
61
+ }
62
+ ]
63
+ },
35
64
  {
36
65
  "v": "0.370.0",
37
66
  "at": "2026-10-21T02:31:23.574Z",
@@ -292,35 +321,6 @@
292
321
  "s": "In full screen, the chat dialog has three panels: the session list on the left, the chat in the middle and the viewer on the right."
293
322
  }
294
323
  ]
295
- },
296
- {
297
- "v": "0.352.0",
298
- "at": "2026-10-20T08:20:25.043Z",
299
- "f": 2,
300
- "prs": [
301
- {
302
- "n": 944,
303
- "t": "Briefing \"What you need to do\" rows are two lines",
304
- "s": "Each row is two lines, the title and then \"subject · next step\", with a chevron, as in item 5 of the premium-simple-ui mockup."
305
- },
306
- {
307
- "n": 952,
308
- "t": "An .html file Claude names opens in the viewer as its page, not its source",
309
- "s": "The tab draws the page itself, with its toggles and charts working."
310
- }
311
- ]
312
- },
313
- {
314
- "v": "0.351.0",
315
- "at": "2026-10-20T07:13:35.370Z",
316
- "f": 2,
317
- "prs": [
318
- {
319
- "n": 946,
320
- "t": "Insights asks for a report through one rounded input",
321
- "s": "One rounded input (\"Ask PMOS to set up a report\") with a + on the left (opens the same New menu: Dashboard or Report) and a round send button inside it on the right."
322
- }
323
- ]
324
324
  }
325
325
  ]
326
326
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@d1e738d4
1
+ kernel-source: pmos@d1671b9a
2
2
  assembled: 2026-10-21
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-21T02:31:21Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-21T02:53: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-10-21T02:31:21Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-21T02:53: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-10-21T02:31:21Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-21T02:53:18Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -97,21 +97,22 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
97
97
  }
98
98
 
99
99
  /* B5 stages */
100
- await p.click('#ibTabs [data-v="stages"]');
100
+ ok('B3 the view is one chip in the Initiatives head that says List, and its menu (List, By stage, Timeline) starts shut (premium-calmer-first-screen)', await p.evaluate(() => document.querySelector('#ibF').textContent.trim() === 'List' && document.querySelector('#ibTabs').hidden && document.querySelector('#ibF').getAttribute('aria-expanded') === 'false' && [...document.querySelectorAll('#ibTabs button')].map((b) => b.textContent).join() === 'List,By stage,Timeline' && !!document.querySelector('#cIni .ch #ibF')));
101
+ await (async (pg, v) => { if (await pg.locator('#ibTabs').isHidden()) await pg.click('#ibF'); await pg.click(`#ibTabs [data-v="${v}"]`); })(p, 'stages');
101
102
  const stg = await p.evaluate(() => ({ cols: [...document.querySelectorAll('#ibBody .isc')].map((c) => c.querySelector('.label').textContent.replace(/\s+/g, ' ').trim()), cards: document.querySelectorAll('#ibBody .icd').length, none: [...document.querySelectorAll('#ibBody .isc')].filter((c) => /None/.test(c.textContent)).length, pressed: document.querySelector('#ibTabs [aria-pressed="true"]').textContent }));
102
103
  ok('B5 one column per workflow stage with the board\'s own count; a stage with none says so', stg.cols.length === 9 && stg.cols[0] === 'Discover 1' && stg.cols.includes('Build 2') && stg.cols.includes('Evaluate 21') && stg.cols.includes('Ideate 0') && stg.none === 3 && stg.cards === 7 && stg.pressed === 'By stage', JSON.stringify(stg));
103
104
  /* B6 timeline */
104
- await p.click('#ibTabs [data-v="time"]');
105
+ await (async (pg, v) => { if (await pg.locator('#ibTabs').isHidden()) await pg.click('#ibF'); await pg.click(`#ibTabs [data-v="${v}"]`); })(p, 'time');
105
106
  const tl = await p.evaluate(() => ({ rows: [...document.querySelectorAll('#ibBody .tlr')].map((r) => ({ t: r.querySelector('.tlt b').textContent, n: r.querySelector('.tln b').textContent, w: r.querySelector('.tln small').textContent, l: r.querySelector('.tlb').style.getPropertyValue('--l'), ww: r.querySelector('.tlb').style.getPropertyValue('--w'), bd: r.classList.contains('bd') })), today: !!document.querySelector('#ibBody .tlplot .td'), none: document.querySelector('#ibBody .tlnone').textContent }));
106
107
  ok('B6 a bar for each initiative with both dates, with days left or over; the others are counted and not drawn', tl.rows.length === 3 && tl.rows[0].t === 'Self-serve onboarding v2' && tl.rows[0].n === '7' && tl.rows[0].w === 'days over' && tl.rows[2].w === 'days left' && /4 initiatives have no dates on record/.test(tl.none) && tl.today, JSON.stringify(tl));
107
108
  ok('B6 each bar sits inside the scale', tl.rows.every((r) => parseFloat(r.l) >= 0 && parseFloat(r.l) + parseFloat(r.ww) <= 100.01) && tl.rows[0].bd);
108
109
  {
109
110
  const f = F.facts(); f.rows = f.rows.map((r) => ({ ...r, start: null, end: null }));
110
- const R = await open({ model: BP.build(f) }); await R.page.click('#ibTabs [data-v="time"]');
111
+ const R = await open({ model: BP.build(f) }); await (async (pg, v) => { if (await pg.locator('#ibTabs').isHidden()) await pg.click('#ibF'); await pg.click(`#ibTabs [data-v="${v}"]`); })(R.page, 'time');
111
112
  ok('B6 with no dates anywhere it draws nothing and says so', await R.page.evaluate(() => document.querySelectorAll('#ibBody .tlr').length === 0 && /No initiative has both a start and an end date on record/.test(document.querySelector('#ibBody').textContent)));
112
113
  await R.ctx.close();
113
114
  }
114
- await p.click('#ibTabs [data-v="list"]');
115
+ await (async (pg, v) => { if (await pg.locator('#ibTabs').isHidden()) await pg.click('#ibF'); await pg.click(`#ibTabs [data-v="${v}"]`); })(p, 'list');
115
116
 
116
117
  /* B9 B8 */
117
118
  ok('B9 with no Jira read the sprint card says so and draws nothing', await p.evaluate(() => /No sprint is on record/.test(document.querySelector('#sprBody').textContent) && document.querySelector('#sprCap').textContent === 'none' && !document.querySelector('#sprBody .spr')));
@@ -216,9 +217,9 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
216
217
  const R = await open({ w: 390, h: 844, theme }), q = R.page;
217
218
  const m = await q.evaluate(() => { const small = [...document.querySelectorAll('#ibTabs button, #ibBody .ini2, #docBody .dmcta, #bsw')].filter((b) => !b.closest('[hidden]') && b.getBoundingClientRect().height > 0 && b.getBoundingClientRect().height < 44).map((b) => b.className + ':' + Math.round(b.getBoundingClientRect().height)); return { over: document.documentElement.scrollWidth > innerWidth + 1, small }; });
218
219
  ok(`B13 at 390 px (${theme}) the page has no sideways scroll and every control is 44 px`, !m.over && m.small.length === 0, JSON.stringify(m));
219
- await q.click('#ibTabs [data-v="stages"]'); await q.click('#ibTabs [data-v="time"]');
220
+ await (async (pg, v) => { if (await pg.locator('#ibTabs').isHidden()) await pg.click('#ibF'); await pg.click(`#ibTabs [data-v="${v}"]`); })(q, 'stages'); await (async (pg, v) => { if (await pg.locator('#ibTabs').isHidden()) await pg.click('#ibF'); await pg.click(`#ibTabs [data-v="${v}"]`); })(q, 'time');
220
221
  ok(`B13 at 390 px (${theme}) the stage and timeline views do not scroll sideways`, await q.evaluate(() => document.documentElement.scrollWidth <= innerWidth + 1));
221
- await q.click('#ibTabs [data-v="list"]'); await q.locator('#ibBody .ini2').first().click(); await until(() => q.evaluate(() => document.querySelector('#dlg').classList.contains('on'))); await sleep(900);
222
+ await (async (pg, v) => { if (await pg.locator('#ibTabs').isHidden()) await pg.click('#ibF'); await pg.click(`#ibTabs [data-v="${v}"]`); })(q, 'list'); await q.locator('#ibBody .ini2').first().click(); await until(() => q.evaluate(() => document.querySelector('#dlg').classList.contains('on'))); await sleep(900);
222
223
  const g = await q.evaluate(() => { const r = document.querySelector('#dlg').getBoundingClientRect(); return { l: Math.round(r.left), w: Math.round(r.width), vw: innerWidth, tabs: getComputedStyle(document.querySelector('#dTabs')).display }; });
223
224
  ok(`B13 at 390 px (${theme}) the dialog is full width and its Detail / Conversation switch is shown`, g.l === 0 && g.w === g.vw && g.tabs !== 'none', JSON.stringify(g));
224
225
  await R.ctx.close();
@@ -250,8 +251,8 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
250
251
  /* B13 fidelity against the mockup */
251
252
  if (!fs.existsSync(MOCKUP)) ok('B13 the mockup is in the repository', false, MOCKUP);
252
253
  else {
253
- const PAIRS = [['rail', '.rail'], ['card', '#cIni'], ['heading', '#hIni'], ['tabs', '#ibTabs'], ['inih', '.inih'], ['row', '.ini2'], ['title', '.ini2 .it b'], ['subtitle', '.ini2 .it small'], ['stage', '.ini2 .wst em'], ['segs', '.ini2 .sg2'], ['progress', '.ini2 .pg i'], ['finish', '.ini2 .rl'], ['tag', '.tgf'], ['docs', '#cDocs'], ['dmr', '.dmr'], ['dmi', '.dmi'], ['dmt', '.dmn b'], ['dmd', '.dmn>small'], ['cta', '.dmcta.alt'], ['dock', '.dock']];
254
- const SKIP_W = ['row', 'title', 'subtitle', 'stage', 'finish', 'tag', 'dmr', 'dmt', 'dmd', 'cta', 'segs', 'progress', 'spr', 'docs', 'card', 'tabs', 'heading', 'inih'];
254
+ const PAIRS = [['rail', '.rail'], ['card', '#cIni'], ['heading', '#hIni'], ['inih', '.inih'], ['row', '.ini2'], ['title', '.ini2 .it b'], ['subtitle', '.ini2 .it small'], ['stage', '.ini2 .wst em'], ['segs', '.ini2 .sg2'], ['progress', '.ini2 .pg i'], ['finish', '.ini2 .rl'], ['tag', '.tgf'], ['docs', '#cDocs'], ['dmr', '.dmr'], ['dmi', '.dmi'], ['dmt', '.dmn b'], ['dmd', '.dmn>small'], ['cta', '.dmcta.alt'], ['dock', '.dock']];
255
+ const SKIP_W = ['row', 'title', 'subtitle', 'stage', 'finish', 'tag', 'dmr', 'dmt', 'dmd', 'cta', 'segs', 'progress', 'spr', 'docs', 'card', 'heading', 'inih'];
255
256
  const PROPS = ['fontSize', 'fontWeight', 'fontFamily', 'color', 'backgroundColor', 'borderRadius', 'paddingTop', 'paddingLeft', 'letterSpacing', 'lineHeight', 'boxShadow', 'backdropFilter', 'borderTopColor'];
256
257
  const grab = (pg) => pg.evaluate(([pairs, props]) => { const o = {}; for (const [n, s0] of pairs) { const s = (n === 'rail' || n === 'dock') ? s0 : 'main.stage:not([hidden]) ' + s0; const e = document.querySelector(s); if (!e) { o[n] = null; continue; } const cs = getComputedStyle(e), r = e.getBoundingClientRect(), v = { left: Math.round(r.left), width: Math.round(r.width) }; props.forEach((k) => { v[k] = cs[k]; }); o[n] = v; } return o; }, [PAIRS, PROPS]);
257
258
  for (const [w, h] of [[1280, 900], [390, 844]]) for (const th of ['light', 'dark']) {
@@ -76,6 +76,7 @@ const ready = (model) => ({ status: 200, body: { ok: true, state: 'ready', model
76
76
  ok('C2 merges, blocked and idle are counted; blocked and idle chart from today and say plainly that their history starts today', tiles[1].v === '3' && tiles[1].chart && tiles[2].v === '1' && tiles[2].c === 'of 3 open · history starts today' && tiles[2].chart && tiles[3].v === '1' && tiles[3].c === 'of 3 open · history starts today' && tiles[3].chart && /\bbad\b/.test(tiles[2].cls) && /\bwarn\b/.test(tiles[3].cls), JSON.stringify(tiles));
77
77
  const per = await p.evaluate(() => [...document.querySelectorAll('#perTabs button')].map((b) => b.textContent + ':' + b.getAttribute('aria-pressed') + ':' + (b.getAttribute('aria-disabled') || '')).join('|'));
78
78
  ok('C2 only Week is available; Day and Month are disabled', per === 'Day:false:true|Week:true:|Month:false:true', per);
79
+ ok('C2 Day and Month hold no count, so only Week shows, as one quiet chip (premium-calmer-first-screen)', await p.evaluate(() => [...document.querySelectorAll('#perTabs button')].filter((b) => getComputedStyle(b).display !== 'none').map((b) => b.textContent).join() === 'Week'));
79
80
  ok('C2 no target, on-target chip, dashed line or demo label is drawn; the lead line says no measure has a target', await p.evaluate(() => !document.querySelector('#cMet .mchip.ok, #cMet .tg, #cMet .tgl') && !/on target|demo|dashed/i.test(document.querySelector('#metBody').textContent) && /No measure here has a target/.test(document.querySelector('#metHint').textContent)));
80
81
  const look = await p.evaluate(() => ({ chips: [...document.querySelectorAll('#metBody .mt1')].map((t) => (t.querySelector('.mchip') || {}).textContent || ''), off: [...document.querySelectorAll('#metBody .mt1')].map((t) => t.classList.contains('off')), lead: (document.querySelector('#metHint .mflag') || {}).textContent || '', ins: (document.querySelector('#metHint a#metIns') || {}).getAttribute ? document.querySelector('#metHint a#metIns').getAttribute('href') : '' }));
81
82
  ok('C2 the tiles that need a look carry the chip and the orange outline; the lead line counts them and links to Insights', JSON.stringify(look.off) === JSON.stringify(tiles.map((t) => /\b(warn|bad)\b/.test(t.cls))) && look.chips.every((c, i) => (c === 'Needs a look') === look.off[i]) && look.lead === look.off.filter(Boolean).length + ' of 4 need a look.' && /^\/premium-insights\.html\?ws=/.test(look.ins), JSON.stringify(look));
@@ -112,7 +113,7 @@ const ready = (model) => ({ status: 200, body: { ok: true, state: 'ready', model
112
113
  await p.locator('#metBody .mt1').nth(2).click(); await until(() => p.evaluate(() => document.querySelector('#dlg').classList.contains('on'))); await sleep(400);
113
114
  ok('C4 Blocked opens its definition, and the weeks before its history started read Not kept yet', await p.evaluate(() => { const v = [...document.querySelectorAll('#oMain .vtb div b')].map((b) => b.textContent); return document.querySelector('#dTitle').textContent === 'Blocked' && /blocked step/.test(document.querySelector('#oMain .lede').textContent) && v.length === 8 && v.slice(0, 7).every((x) => x === 'Not kept yet') && v[7] === '1'; }));
114
115
  await p.keyboard.press('Escape'); await until(() => p.evaluate(() => !document.querySelector('#dlg').classList.contains('on')));
115
- await p.click('#perTabs [data-per="day"]', { force: true }); ok('C4 a disabled period says why and changes nothing', await until(() => p.evaluate(() => /by week only/.test(document.querySelector('#toast').textContent))) && await p.evaluate(() => document.querySelector('#perTabs [data-per="week"]').getAttribute('aria-pressed') === 'true'));
116
+ await p.$eval('#perTabs [data-per="day"]', (b) => b.click()); ok('C4 a disabled period says why and changes nothing', await until(() => p.evaluate(() => /by week only/.test(document.querySelector('#toast').textContent))) && await p.evaluate(() => document.querySelector('#perTabs [data-per="week"]').getAttribute('aria-pressed') === 'true'));
116
117
  ok('0 no page error', A.errors.length === 0, A.errors.join(' | '));
117
118
  await A.ctx.close();
118
119
 
@@ -191,9 +192,9 @@ const ready = (model) => ({ status: 200, body: { ok: true, state: 'ready', model
191
192
  /* C8 fidelity against the mockup */
192
193
  if (!fs.existsSync(MOCKUP)) ok('C8 the mockup is in the repository', false, MOCKUP);
193
194
  else {
194
- const SEL = [['card', '#cMet'], ['heading', '#hMet'], ['hint', '#cMet .mhint'], ['per', '#perTabs'], ['note', '#cMet .note'], ['t1', '#cMet .mt1:nth-child(1)'], ['t1val', '#cMet .mt1:nth-child(1) .mval'], ['t1cap', '#cMet .mt1:nth-child(1) .mwk'], ['t1chg', '#cMet .mt1:nth-child(1) .mchg'], ['t1svg', '#cMet .mt1:nth-child(1) svg'], ['t1line', '#cMet .mt1:nth-child(1) .ln2'], ['t1dot', '#cMet .mt1:nth-child(1) .dt'], ['t1foot', '#cMet .mt1:nth-child(1) .mfoot'], ['t3', '#cMet .mt1:nth-child(3)'], ['t3val', '#cMet .mt1:nth-child(3) .mval'], ['t3cap', '#cMet .mt1:nth-child(3) .mwk'], ['t4', '#cMet .mt1:nth-child(4)'], ['t4lab', '#cMet .mt1:nth-child(4) span']];
195
- const SKIP_W = new Set(['hint', 'note', 't1val', 't1cap', 't1chg', 't1foot', 't3val', 't3cap', 't4lab', 'heading', 'per']);
196
- const SKIP_L = new Set(['t1val', 't1cap', 't1chg', 't1foot', 't3val', 't3cap', 't4lab', 'hint', 'note', 'per']);
195
+ const SEL = [['card', '#cMet'], ['heading', '#hMet'], ['hint', '#cMet .mhint'], ['note', '#cMet .note'], ['t1', '#cMet .mt1:nth-child(1)'], ['t1val', '#cMet .mt1:nth-child(1) .mval'], ['t1cap', '#cMet .mt1:nth-child(1) .mwk'], ['t1chg', '#cMet .mt1:nth-child(1) .mchg'], ['t1svg', '#cMet .mt1:nth-child(1) svg'], ['t1line', '#cMet .mt1:nth-child(1) .ln2'], ['t1dot', '#cMet .mt1:nth-child(1) .dt'], ['t1foot', '#cMet .mt1:nth-child(1) .mfoot'], ['t3', '#cMet .mt1:nth-child(3)'], ['t3val', '#cMet .mt1:nth-child(3) .mval'], ['t3cap', '#cMet .mt1:nth-child(3) .mwk'], ['t4', '#cMet .mt1:nth-child(4)'], ['t4lab', '#cMet .mt1:nth-child(4) span']];
196
+ const SKIP_W = new Set(['hint', 'note', 't1val', 't1cap', 't1chg', 't1foot', 't3val', 't3cap', 't4lab', 'heading']);
197
+ const SKIP_L = new Set(['t1val', 't1cap', 't1chg', 't1foot', 't3val', 't3cap', 't4lab', 'hint', 'note']);
197
198
  const PROPS = ['fontSize', 'fontWeight', 'fontFamily', 'color', 'backgroundColor', 'borderRadius', 'paddingTop', 'paddingLeft', 'letterSpacing', 'lineHeight', 'boxShadow', 'stroke', 'strokeWidth', 'fill', 'marginTop'];
198
199
  const grab = (pg) => pg.evaluate(([pairs, props]) => { const o = {}; for (const [n, s] of pairs) { const e = document.querySelector('main.stage:not([hidden]) ' + s); if (!e) { o[n] = null; continue; } const cs = getComputedStyle(e), r = e.getBoundingClientRect(), v = { left: Math.round(r.left), width: Math.round(r.width) }; props.forEach((k) => { v[k] = cs[k]; }); o[n] = v; } return o; }, [SEL, PROPS]);
199
200
  for (const [w, h] of [[1280, 900], [390, 844]]) for (const th of ['light', 'dark']) {
@@ -125,6 +125,13 @@ const sh = (cwd, args) => spawnSync('git', args, { cwd, encoding: 'utf8' });
125
125
  const { ctx, page, errors } = await open({ theme, w: theme === 'dark' ? 390 : 1280, h: 844 });
126
126
  await page.waitForFunction(() => /sdot (ok|warn|bad)/.test((document.querySelector('#srcDot') || {}).className || ''), null, { timeout: 15000 }).catch(() => {});
127
127
  const dot = await page.$eval('#srcDot', (e) => e.className);
128
+ if (theme === 'light') {
129
+ // briefing-source-flow, slice 5: each card says which reads it shows and when, from the same Sources read
130
+ await page.waitForSelector('#todayCard > .cread:not([hidden])', { timeout: 15000 }).catch(() => {});
131
+ const rd = await page.evaluate(() => ({ cal: (document.querySelector('#todayCard > .cread') || {}).textContent || '', moves: (document.querySelector('#movesCard > .cread') || {}).textContent || '' }));
132
+ ok('H5 the Calendar card names its read, and What you need to do names the initiatives, My work and the brief', /^Calendar (read|not read yet|failed)/.test(rd.cal) && /Initiatives/.test(rd.moves) && /My work/.test(rd.moves) && /Brief (built|not built yet|off)/.test(rd.moves), JSON.stringify(rd));
133
+ if (shot) await page.screenshot({ path: path.join(shot, 'cards-reads-light.png'), fullPage: true });
134
+ }
128
135
  if (theme === 'light') await page.click('#srcChip'); else { await page.click('#moreBtn'); await page.click('#srcItem'); }
129
136
  await page.waitForSelector('#srcHealth .hline', { timeout: 15000 }).catch(() => {});
130
137
  const line = await page.$eval('#srcHealth', (e) => ({ text: e.textContent.trim(), dot: (e.querySelector('.sdot') || {}).className || '', w: Math.round(e.getBoundingClientRect().width), sw: document.documentElement.scrollWidth }));
@@ -314,6 +314,8 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
314
314
  await p.click('#dPane');
315
315
  ok('R4 pressing it again shows the conversation', await p.evaluate(() => document.querySelector('#dlg').dataset.mode === 'split' && getComputedStyle(document.querySelector('#dBody')).display !== 'none'));
316
316
  ok('D12 the reply box talks to a Claude Code session, and says what it can do', !d.input && await p.evaluate(() => !document.querySelector('#askIn').disabled && /Claude Code session/.test(document.querySelector('#askNote').textContent)));
317
+ { const nq = await p.evaluate(() => { const n = document.querySelector('#askNote'); document.activeElement && document.activeElement.blur(); const off = getComputedStyle(n).display; document.querySelector('#askIn').focus(); return { quiet: n.classList.contains('quiet'), off, on: getComputedStyle(n).display }; });
318
+ ok('D12 the standing note under the message box shows while you write there (premium-calmer-first-screen)', nq.quiet && nq.off === 'none' && nq.on !== 'none', JSON.stringify(nq)); }
317
319
  let startBody = null;
318
320
  await p.route('**/api/agent/start', (r) => { startBody = JSON.parse(r.request().postData()); r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, session: { id: 'sx', name: 'draft' } }) }); });
319
321
  ok('W8 the start button of a blocked row is live and says what starting does', await p.evaluate(() => { const b = document.querySelector('#startBtn'); const h = document.querySelector('#holdWhy'); return !!b && !b.disabled && /^Start:/.test(b.textContent.trim()) && !!h && /sends nothing outside PMOS/.test(h.textContent); }));
@@ -1,4 +1,33 @@
1
1
  [
2
+ {
3
+ "v": "0.372.0",
4
+ "at": "2026-10-21T02:53:20.808Z",
5
+ "f": 2,
6
+ "prs": [
7
+ {
8
+ "n": 981,
9
+ "t": "The Board's first screen has quiet chips, not two segmented rows (calmer first screen 4/5)",
10
+ "s": "The Board's first screen has quiet chips, not two segmented rows (calmer first screen 4/5)"
11
+ }
12
+ ]
13
+ },
14
+ {
15
+ "v": "0.371.0",
16
+ "at": "2026-10-21T02:38:31.758Z",
17
+ "f": 2,
18
+ "prs": [
19
+ {
20
+ "n": 979,
21
+ "t": "Each Briefing card names the reads it shows and when (briefing-source-flow, slice 5)",
22
+ "s": "Each card says which reads it shows and when they were read, as in the approved mockup."
23
+ },
24
+ {
25
+ "n": 978,
26
+ "t": "Quiet the standing chat note until the box has focus (calmer first screen 3/5)",
27
+ "s": "Quiet the standing chat note until the box has focus (calmer first screen 3/5)"
28
+ }
29
+ ]
30
+ },
2
31
  {
3
32
  "v": "0.370.0",
4
33
  "at": "2026-10-21T02:31:23.574Z",
@@ -28,7 +28,7 @@ Every premium page has the same top bar. On the left is where you are. On the ri
28
28
 
29
29
  The first line of **Sources** says whether PMOS's background work is running. When everything is on time it reads like "Background on · brief 06:52 · sources 06:49": the time today's morning brief was saved and the time of the last source read. It turns orange when something is late, such as a source that missed its scheduled read by more than an hour, or Git sync that keeps failing. It turns red when something stopped: no morning brief 45 minutes after its time, a source whose last run failed, a session whose prompt was typed but not sent, or background checks that stopped. The line gives the reason in plain words, and other problems are listed under it. The Sources dot takes the same colour, and a stop is also added to the bell, once a day. When the morning brief is due, it first refreshes Calendar, Jira and My work if they are more than 2 hours old, then builds from them. It waits for them for at most 30 minutes.
30
30
 
31
- **The Chat page** is the chat as a page of its own. On a desktop it has three panels: the session list, the conversation and the viewer. It has no close button; the rail takes you to another place. On a phone it fills the screen above the bar and opens on the conversation; the **Sessions** chip opens the list. A chat dialog elsewhere (a row's Conversation tab) still shows the list when it is full screen.
31
+ **The Chat page** is the chat as a page of its own. On a desktop it has three panels: the session list, the conversation and the viewer. It has no close button; the rail takes you to another place. On a phone it fills the screen above the bar and opens on the conversation; the **Sessions** chip opens the list. A chat dialog elsewhere (a row's Conversation tab) still shows the list when it is full screen. The standing note under the message box ("This is a Claude Code session…") shows only while you write in the box; any other note there, such as Sent, an error or Claude is waiting, always shows.
32
32
 
33
33
  - **Groups.** **Goals** holds a chat whose goal is started or waiting on you. **Yours** holds the other sessions you started. **Started by PMOS** holds schedules, the day run, the Driver, the Checker, notes, document syncs and other background runs. A PMOS session shows only when it needs you. The rest fold into one line, "N more working on their own · Show".
34
34
  - **Dots.** An orange dot means **Ready**: the session finished its turn and waits for you. A green dot means **Running**. An orange ring means **Maybe blocked**: a call is open and nothing moves, often a permission question. No dot means idle. Ready sessions come first and are bold. Hold the pointer over a row to see its state in words.
@@ -105,6 +105,8 @@ Two reads feed the page. The quick read takes the kill conditions, the failed-re
105
105
 
106
106
  The Briefing's **Sources** dialog is one list in three groups. **Sources · read on this machine** and **Sources · read through your connectors** are the raw sources, each with its last read. **Derived content** is what PMOS builds from those stored reads, never from a tool: the morning brief, core documents and the horizon scan. Each derived row says when it was built and from which reads, with their times. Under it, **This Briefing was built from** lists each source the page reads, with its state: **Read**, **Not read**, **Not included** or **Off**, and the reason. Examples: `planning/runs/agent-runs.jsonl` is missing in that repository; the product is not chosen under **Products**; the source is switched off under **Settings → Connectors**; the morning brief could not reach it. A source that cannot be read adds nothing. The page does not guess. **Products** is the product picker (see "Products").
107
107
 
108
+ Each card ends with a read line: the sources it shows and when each was read, from the same read as Sources. **What you need to do** names Initiatives, My work and the brief. **Calendar** names Calendar. An orange dot means one of them is old, failed or not read yet. While **Refresh all** runs, a line under the headline says which step it is on: reading the sources, or writing the brief from them.
109
+
108
110
  On the Briefing, **Refresh all** also reads every included repository again now, without waiting for the 5-minute age. If a read is already running, it does not start a second one. A read that failed is tried again at once.
109
111
 
110
112
  ## The hero sentence
@@ -302,13 +304,14 @@ Not drawn, because no record backs them: answers and ideas an agent files by its
302
304
  Board is the fourth place on the rail, after Chat, at `/premium-board.html`. It reads what the production Initiatives page reads, for one board at a time, and shows a switcher only when more than one board is registered. The first time it takes a few seconds, because the routes derive every initiative. The page says "Reading the board" with the seconds, shows nothing in place of a guess, and asks again.
303
305
 
304
306
  - **The header** counts the board's open initiatives: how many are on track, at risk, late and on hold, with a bar. A zero is shown.
307
+ - **The view chip** in the Initiatives head says which view is shown (List, By stage or Timeline); press it to pick another.
305
308
  - **List** shows the late and at-risk initiatives first, then the board's now view, up to 100 loaded and 25 on screen at a time. A row shows the owner and lane, a status chip when it is not on track, how far through the workflow it is (and "derived" when the workflow engine placed it), a progress bar only when a record holds progress, and the planned finish only when an end date was set ("Not planned" otherwise). "Do this first" appears only when the first row is late.
306
309
  - **By stage** has one column for each stage of the board's workflow with the board's own count and its first five initiatives.
307
310
  - **List** and **Timeline** show ten tasks a page with Previous and Next; **By stage** shows six cards a column with Show more. **Timeline** draws a bar for each initiative that has both a start and an end date, with the days left or over, and counts the rest. With no dates on record it says so and draws nothing.
308
311
  - **Sprint** appears when an agent session has read Jira for the board. Otherwise it says there is none. Press it to open the sprint's facts, with the sprint as a board in a second tab: **To do**, **In progress** and **Done** columns from the last Jira read, with the dates, the days left and the points. The sprint goal is the one the Jira status check writes from the sprint's tickets, as on the console's Sprints tab, with its summary; Jira's own goal shows under it only as a reference (**In Jira: "…"**). Until the check has written one, the tab says **No goal yet**. The active and next sprints are buttons at the top. The closed sprints are behind **Past sprints**, which is shut until you press it. Press any card to open its ticket in another tab. A ticket that is on no initiative of this board shows what the sprint read holds (title, status, points and its Jira link). The board is read only: Jira owns each ticket's status and sprint, so you move tickets in Jira. Tickets with no sprint are not in this read. **Coming up** shows the next release, from the releases ledger.
309
312
  - **Open the backlog** is in the Sprint dialog and on its sprint tab. It opens the board's Jira backlog in a tab beside the dialog: the open sprints (active, then next) and then **Backlog**, the tickets in no sprint and not done. A row shows the key, title, status, points and initiative, and why a blocked ticket is blocked. **All**, **Blocked** and **Bugs** filter it (Bugs appears only when the Jira read holds the issue type). A row opens its ticket. The list holds only the tickets the board's initiatives pushed to Jira or hold under their epics, in key order: the Jira read has no rank, assignee or capacity. You move and rank tickets in Jira. With no Jira read, the tab says so.
310
313
  - **Next release** shows the next release that carries an initiative of this board, the one planned after it, and the three latest past releases (**Released** when accepted, else **Past**). It reads the release records (`releases/releases.jsonl`, written from the console's Releases view); Jira fix versions alone do not make a release. With no release planned it says so and still lists the past ones. With none at all it says "No release is on record for this board, past or planned."
311
- - **Metrics** appears above the Initiatives card on the board of any workspace except the home one (PMOS itself), and counts from that workspace's own repository. It has four tiles. **Corrections per 100 runs** is the corrections logged on the week's runs in `planning/runs/agent-runs.jsonl`; a week with fewer than 10 runs is left blank. **Merged a week** counts the commits on the first-parent line of the trunk. **Blocked** and **Idle for a month** come from the workflow engine, which keeps no history. From the first day the card is read, PMOS keeps their counts once a day in the workspace's state folder (`board-metric-history.jsonl`), so their charts start on that day and their caption says **history starts today** (later, the date). Earlier weeks read **Not kept yet**. Move over a chart, or use the arrow keys, to read a week. A tile that cannot be counted says **Not read** and why; a repository with no run log says **No runs yet**. The line above the tiles starts with how many tiles need a look, and those tiles have a **Needs a look** chip and an orange outline. The line ends with **open Insights**, which opens the same board's Insights page. Press a tile for its definition and values, with the read-only agent beside it. A target is set on Insights, not here. A measure with a target shows it under the value, draws it as a dashed line, and carries **On target** or its gap (for example **2 short**); off target, it also has the orange outline. A measure without a target draws no line. Day and Month are off. It was tested only on made-up repositories, not on a real IDPF or microsite repository.
314
+ - **Metrics** appears above the Initiatives card on the board of any workspace except the home one (PMOS itself), and counts from that workspace's own repository. It counts by week only, so its period shows as one **Week** chip. A tile still being read says Reading; open it to see why. It has four tiles. **Corrections per 100 runs** is the corrections logged on the week's runs in `planning/runs/agent-runs.jsonl`; a week with fewer than 10 runs is left blank. **Merged a week** counts the commits on the first-parent line of the trunk. **Blocked** and **Idle for a month** come from the workflow engine, which keeps no history. From the first day the card is read, PMOS keeps their counts once a day in the workspace's state folder (`board-metric-history.jsonl`), so their charts start on that day and their caption says **history starts today** (later, the date). Earlier weeks read **Not kept yet**. Move over a chart, or use the arrow keys, to read a week. A tile that cannot be counted says **Not read** and why; a repository with no run log says **No runs yet**. The line above the tiles starts with how many tiles need a look, and those tiles have a **Needs a look** chip and an orange outline. The line ends with **open Insights**, which opens the same board's Insights page. Press a tile for its definition and values, with the read-only agent beside it. A target is set on Insights, not here. A measure with a target shows it under the value, draws it as a dashed line, and carries **On target** or its gap (for example **2 short**); off target, it also has the orange outline. A measure without a target draws no line. Day and Month are off. It was tested only on made-up repositories, not on a real IDPF or microsite repository.
312
315
  - **The top bar** names the page and the board. With more than one board a menu switches between them, and **Chat** in the rail opens the Chat page on the board's conversation.
313
316
  - **Core documents** lists the board's documents with their state, cadence and writer, a summary (drafts to review, not started, up to date), a progress bar, a filter and a search. A document with a file opens in the dialog, read only, with its path and state; a draft there has **Issue it**, which marks it issued through the console's own route and sends nothing, and **Draft it again**, which starts a new draft that replaces this one (a board draft has no Edit tab). **Draft it** starts the existing read-only run that writes a draft and sends nothing; **Draft the N not started** does that for each document that can be drafted. **Open** stays on premium pages: the backlog goes to this page's initiatives, new asks to its New asks card, releases to the release dialog, a Horizon scan to the Briefing's Horizon scan, and **Set it up** for a report to Insights. **Add a document** opens a form (title, who writes it, where it lives) and saves a document the core set does not cover on the board's record, in `custom-docs.jsonl`. A document with no link reads "Not started". A document with a link to Confluence or Google Docs reads "Linked" and shows its address. PMOS does not read or sync the linked page, so a linked document is never counted as up to date. Issue and Drop are not on this page.
314
317
  - **Opening an initiative.** A click on an initiative opens its page (see "Initiative page"). **Open initiatives** (Page or Popup) in the ⋯ menu changes that: Popup opens the initiative's dialog instead, which shows its record as a grid and the path of its file, with the read-only agent beside it. The choice is kept in this browser. The dialog holds no press.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.370.0",
3
+ "version": "0.372.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.370.0",
9
+ "version": "0.372.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.370.0",
3
+ "version": "0.372.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,9 +81,15 @@ function drawInit() {
81
81
  const bar = $('#iniBar'); bar.hidden = !I.cap; if (I.cap) { bar.setAttribute('aria-valuemax', I.cap.open); bar.setAttribute('aria-valuenow', I.cap.on); $('b', bar).style.width = (I.cap.open ? I.cap.on / I.cap.open * 100 : 0) + '%'; }
82
82
  $('#ibBody').innerHTML = view === 'list' ? drawList() : view === 'stages' ? drawStages() : drawTime();
83
83
  $('#iniNote').textContent = I.note;
84
- $$('#ibTabs button').forEach((b) => b.setAttribute('aria-pressed', b.dataset.v === view)); pillOf($('#ibTabs'));
84
+ $$('#ibTabs button').forEach((b) => b.setAttribute('aria-pressed', b.dataset.v === view));
85
+ { const cur = $(`#ibTabs [data-v="${view}"]`).textContent; $('#ibF').firstChild.textContent = cur; $('#ibF').setAttribute('aria-label', 'View: ' + cur); }
85
86
  }
86
- $('#ibTabs').addEventListener('click', (e) => { const b = e.target.closest('[data-v]'); if (!b) return; view = b.dataset.v; drawInit(); });
87
+ /* the view is one chip in the card's head; List, By stage and Timeline wait in its menu (premium-calmer-first-screen) */
88
+ function ibMenu(open) { $('#ibTabs').hidden = !open; $('#ibF').setAttribute('aria-expanded', String(open)); }
89
+ $('#ibF').addEventListener('click', () => { const open = $('#ibTabs').hidden; ibMenu(open); if (open) $('#ibTabs [aria-pressed="true"]').focus(); });
90
+ document.addEventListener('click', (e) => { if (!$('#ibTabs').hidden && !e.target.closest('#ibTabs, #ibF')) ibMenu(false); });
91
+ document.addEventListener('keydown', (e) => { if (e.key === 'Escape' && !$('#ibTabs').hidden) { ibMenu(false); $('#ibF').focus(); } });
92
+ $('#ibTabs').addEventListener('click', (e) => { const b = e.target.closest('[data-v]'); if (!b) return; ibMenu(false); view = b.dataset.v; drawInit(); $('#ibF').focus(); });
87
93
  $('#ibBody').addEventListener('click', (e) => {
88
94
  if (e.target.closest('#more')) { shown += 25; drawInit(); return; }
89
95
  if (e.target.closest('#goneT')) { showGone = !showGone; drawInit(); const g = $('#goneT'); if (g) g.focus(); return; }
@@ -17,7 +17,7 @@ export const fmt = (m, v) => (+v).toFixed(m.dec) + (m.suf || '');
17
17
  const lastJ = (t) => t.ser.reduce((a, v, j) => (v != null ? j : a), 0);
18
18
 
19
19
  export function tileHtml(t, i) {
20
- if (t.absent) return `<div class="mt1" data-m="${i}" data-op="m:${i}" tabindex="0" role="button" aria-label="${esc(t.label)}: ${esc(t.absent)}. ${esc(t.why)}"><span>${esc(t.label)}</span><b class="mval">${esc(t.absent)}</b><em class="mwk">${esc(t.why)}</em></div>`;
20
+ if (t.absent) return `<div class="mt1 abs" data-m="${i}" data-op="m:${i}" tabindex="0" role="button" aria-label="${esc(t.label)}: ${esc(t.absent)}. ${esc(t.why)}"><span>${esc(t.label)}</span><b class="mval">${esc(t.absent)}</b><em class="mwk">${esc(t.why)}</em></div>`;
21
21
  const chip = t.tg != null ? `<i class="mchip ${t.ok ? 'ok' : 'warn'}">${esc(t.chip)}</i>` : t.look ? '<i class="mchip warn">Needs a look</i>' : '';
22
22
  const lab = chip ? `<span class="mlab">${esc(t.label)}${chip}</span>` : `<span>${esc(t.label)}</span>`, off = t.look ? ' off' : '';
23
23
  const tgt = t.tg != null ? `<em class="mtg">${esc(t.targetTxt)}</em>` : '';
@@ -95,8 +95,27 @@ async function tbReadSrc() {
95
95
  const was = TB.src && TB.src.all;
96
96
  TB.src = r && r.ok && Array.isArray(r.sources) ? r : { ok: false, sources: [] };
97
97
  tbDot(); allWatch(was);
98
+ window.dispatchEvent(new CustomEvent('pm:sources', { detail: TB.src })); // a card's read line (slice 5) redraws from the same read
98
99
  return TB.src;
99
100
  }
101
+ /** The last read of Sources: { ok, sources, derived, all } (the cards' read lines take their times from it). */
102
+ export const sourcesNow = () => TB.src;
103
+ /** A card's read line (briefing-source-flow, slice 5): a dot and "<source> read HH:MM" for each id, from the same Sources read. ids name
104
+ * freshness rows ('initiatives', 'calendar', …) or derived content ('d:brief'). A source never read or failed says so. */
105
+ export function readLine(ids) {
106
+ const s = TB.src; if (!s || !s.ok) return '';
107
+ const bits = ids.map((id) => {
108
+ const der = id.startsWith('d:'), x = der ? (s.derived || []).find((d) => d.id === id.slice(2)) : s.sources.find((r) => r.id === id);
109
+ if (!x) return null;
110
+ const bad = der ? ['old', 'failed', 'never'].includes(x.state) : ['stale', 'failed', 'never'].includes(x.state);
111
+ const at = der ? x.at : x.as_of;
112
+ const w = x.state === 'failed' ? 'failed' : at ? (der ? 'built ' : 'read ') + whenRead(at) : x.state === 'off' ? 'off' : der ? 'not built yet' : 'not read yet';
113
+ return { bad, t: (der ? ({ brief: 'Brief' })[x.id] || x.label : x.label) + ' ' + w };
114
+ }).filter(Boolean);
115
+ if (!bits.length) return '';
116
+ const bad = bits.some((b) => b.bad);
117
+ return `<i class="sdot ${bad ? 'warn' : 'ok'}" aria-hidden="true"></i>${esc(bits.map((b) => b.t).join(' · '))}`;
118
+ }
100
119
  /* ── Refresh all (briefing-source-flow, slice 3): one run, in order. The server reads every source that is on, then writes the Briefing
101
120
  * from those reads; this side says which step it is on, re-reads while it runs, and tells the page when it ended (event pm:refreshed). ── */
102
121
  let AWATCH = null;
@@ -270,6 +289,7 @@ export function openDlg(o) {
270
289
  $('#oMain').innerHTML = o.pane || `<article class="paper doc">${o.html}</article>`; $('#oLab').textContent = o.label || 'Detail'; vwReset(); // extra viewer tabs belong to the dialog that opened them
271
290
  $('#dBody').innerHTML = `<div class="stream" role="log">${o.stream || turnA(ptx(o.say))}</div><form class="askbar" id="askF"><div class="slashm" id="slashM" role="listbox" aria-label="Commands" hidden></div>${padMarkup()}<textarea id="askIn" rows="1" placeholder="Message Claude, or type /" maxlength="8000" autocomplete="off" enterkeyhint="send" aria-label="A message for Claude" aria-controls="slashM"></textarea><button type="submit" data-act="ask" id="askGo" aria-label="Send to Claude" title="Send to Claude"><svg class="i" viewBox="0 0 24 24"><path d="M5 12h14M13 6l6 6-6 6"/></svg></button></form><div class="askfoot"><p class="fine2" id="askNote">${CHAT_NOTE}</p>${padChipMarkup()}</div>`;
272
291
  mountPad({ key: S.key, ws: new URLSearchParams(location.search).get('ws'), input: $('#askIn') });
292
+ quietNote();
273
293
  $('#dlg').classList.toggle('cmp', o.compact !== false); $('#dlg').classList.remove('shrunk', 'tfull'); document.body.classList.remove('railoff'); // compact (every dialog unless it says compact: false): a short head on a phone that shrinks as the detail scrolls
274
294
  $('#dlg').classList.remove('full'); setMode('split'); setTab('out'); // on a phone the dialog opens on the Detail tab and the Detail / Conversation switch brings the conversation, as the mockup draws it
275
295
  $('#veil').classList.add('on'); $('#dlg').classList.add('on');
@@ -358,6 +378,12 @@ export const turnU = (t) => `<div class="turn u"><div class="ub">${esc(t)}</div>
358
378
  * The first message on a row starts one interactive session for it; later messages go to the same session. The words come from Claude Code's
359
379
  * own transcript (GET /api/sessions/conversation), as the console's session conversation reads them. Earlier read-only answers stay above. */
360
380
  const CHAT_NOTE = 'This is a Claude Code session. It can change files and run commands, and asks first where your Claude Code settings say so.';
381
+ /* the standing note under the message box shows while you write there; any other note (Sent, an error, Claude is waiting) always shows (premium-calmer-first-screen) */
382
+ function quietNote() {
383
+ const n = $('#askNote'); if (!n) return;
384
+ const set = () => n.classList.toggle('quiet', n.textContent === CHAT_NOTE);
385
+ set(); new MutationObserver(set).observe(n, { childList: true, characterData: true, subtree: true });
386
+ }
361
387
  const turnAgent = (h) => `<div class="turn a"><i class="av">${AI}</i><div class="tc">${h}</div></div>`;
362
388
  const turnUser = (t) => `<div class="turn u"><div class="ub">${userHtml(t)}</div></div>`; // the PM's words, paste tags gone, line breaks kept
363
389
  export function threadHtml(th) {
@@ -633,6 +633,7 @@ button.pst{border:0;font:inherit;color:inherit;text-align:left;cursor:pointer}bu
633
633
  .cta.quiet:hover{background:var(--solid);color:var(--on-solid)}
634
634
  .tx{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:12px}
635
635
  .tx .hint{font-size:var(--fs-2);color:var(--ink-2);margin-left:6px}
636
+ .askbar:not(:focus-within)+.askfoot .fine2.quiet{display:none} /* premium-calmer-first-screen: the standing chat note shows while you write */
636
637
  .why.one{min-height:0;height:46px;padding:0 14px;resize:none;flex:1;min-width:0}
637
638
  .toast .undo{margin-left:10px;height:44px;padding:0 14px;border-radius:999px;background:var(--solid);color:var(--on-solid);font-weight:600;font-size:var(--fs-3)}
638
639
 
@@ -1525,6 +1526,10 @@ button.dsn:hover{box-shadow:inset 0 0 0 1.5px rgb(79,109,245)}
1525
1526
  @media (max-width:700px){.ibt>.mt1:last-child:nth-child(odd){grid-column:1/-1}}
1526
1527
  .ch .mper button{height:30px;padding:0 14px;font-size:var(--fs-2)}
1527
1528
  .ch .mper button[aria-disabled="true"]{opacity:.4;cursor:not-allowed}
1529
+ /* calmer first screen: PMOS counts the Board's measures by week only, so the period shows as one quiet Week chip; a tile still reading says "Reading" and keeps the why for its detail */
1530
+ #perTabs button[aria-disabled="true"]{display:none}
1531
+ #perTabs .pill{background:transparent}#perTabs button[aria-pressed="true"]{color:var(--ink)}
1532
+ .mt1.abs .mwk{display:none}
1528
1533
  #cMet .ch{flex-wrap:wrap;gap:10px}
1529
1534
  .mhint{margin:2px 0 14px;color:var(--ink-2);font-size:var(--fs-2);line-height:1.55;max-width:78ch}
1530
1535
  .mhint b{color:var(--ink)}
@@ -2161,6 +2166,8 @@ button.wl-row[aria-pressed="true"] .wl-tog{background:var(--solid);color:var(--o
2161
2166
  .hline:empty,#srcHealth:empty{display:none}
2162
2167
  .sr .sn b{display:inline-flex;align-items:center;gap:8px}
2163
2168
  .srctop{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
2169
+ .cread{display:flex;align-items:center;gap:8px;margin:14px 0 0;font-size:var(--fs-2);color:var(--ink-3)}
2170
+ .rfline{margin:10px 0 0;font-size:var(--fs-2);color:var(--ink-3)}
2164
2171
  .srgrp{display:grid;margin-top:12px}.srgrp:first-child{margin-top:0}
2165
2172
  .srsteps{list-style:none;margin:0 0 4px;padding:0;display:grid;gap:4px}.srsteps li{display:flex;align-items:center;gap:8px;font-size:var(--fs-2)}.srsteps li b{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;border:1px solid var(--hair)}.srsteps li em{font-style:normal;color:var(--ink-3)}
2166
2173
  .mwrap{position:relative;display:inline-flex}
@@ -12,7 +12,7 @@ import { lineItems, behindOf, refreshTargets, whenRead } from './freshness-words
12
12
  import { consoleReads, briefOf, needsListOf } from './premium-brief.js';
13
13
  import { mountDocSheet } from './premium-doc-sheet.js';
14
14
  import { momentOf, inText } from './c3-phone-model.js';
15
- import { $, $$, esc, store, THEME_KEY, RM, AI, S, theme, toast, kv, H, openDlg, closeDlg, setTab, setMode, setFull, CHECK, CHEV, ptx, turnA, turnU, H1, H2, P1, UL, logHtml, loadThread, onScroll, wireRail, pvFeed, setPageGaps, sourcesHook, allText, chatAbout, pvOpenBell, ibState } from './premium-shell.js';
15
+ import { $, $$, esc, store, THEME_KEY, RM, AI, S, theme, toast, kv, H, openDlg, closeDlg, setTab, setMode, setFull, CHECK, CHEV, ptx, turnA, turnU, H1, H2, P1, UL, logHtml, loadThread, onScroll, wireRail, pvFeed, setPageGaps, sourcesHook, allText, sourcesNow, readLine, chatAbout, pvOpenBell, ibState } from './premium-shell.js';
16
16
  const ICON = {
17
17
  meeting: '<rect x="4" y="5" width="16" height="15" rx="3"/><path d="M4 10h16M9 3v4M15 3v4"/>',
18
18
  merge: '<circle cx="6" cy="6" r="2"/><circle cx="6" cy="18" r="2"/><circle cx="18" cy="9" r="2"/><path d="M6 8v8M18 11c0 4-6 3-12 5"/>',
@@ -1100,6 +1100,16 @@ let RTIMER = null;
1100
1100
  $('#pkw').dataset.park = 'pkPark';
1101
1101
  sourcesHook({ html: sourcesHtml, mount: () => { const slot = $('#pkSlot'), w = $('#pkw'); if (slot && w) slot.appendChild(w); }, refresh: refreshRepos });
1102
1102
  window.addEventListener('pm:refreshed', () => load()); // Refresh all ended: the Briefing it wrote is read again (briefing-source-flow, slice 3)
1103
+ /* briefing-source-flow, slice 5: each card says which reads it shows and when they were read, and the hero says the step of a Refresh all
1104
+ * that is going. Both come from the one Sources read (premium-shell.js), so a card and Sources cannot disagree. */
1105
+ function drawReads() {
1106
+ const put = (sel, ids) => { const c = $(sel); if (!c) return; let p = c.querySelector(':scope > .cread'); if (!p) { p = document.createElement('p'); p.className = 'cread'; c.appendChild(p); } p.innerHTML = readLine(ids); p.hidden = !p.innerHTML; };
1107
+ put('#movesCard', ['initiatives', 'my-work', 'd:brief']);
1108
+ put('#todayCard', ['calendar']);
1109
+ const s = sourcesNow(), a = s && s.ok ? s.all : null, line = $('#rfLine');
1110
+ if (line) { const on = !!(a && !a.done); line.hidden = !on; line.textContent = on ? allText(a) : ''; }
1111
+ }
1112
+ window.addEventListener('pm:sources', drawReads);
1103
1113
  chatAbout('src:this-page', 'the Briefing');
1104
1114
  $('#brief').textContent = 'Reading the repository.';
1105
1115
  load();
@@ -47,10 +47,9 @@
47
47
  <div class="bcols">
48
48
  <div>
49
49
  <section class="card rise" style="--d:5" id="cIni" aria-labelledby="hIni">
50
- <div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><path d="M12 3 3 8l9 5 9-5z"/><path d="m3 13 9 5 9-5"/></svg></span><h2 id="hIni">Initiatives</h2><small id="iniCap"></small><button class="fold alt dmadd2" id="newIni" type="button" hidden>New initiative</button></div>
50
+ <div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><path d="M12 3 3 8l9 5 9-5z"/><path d="m3 13 9 5 9-5"/></svg></span><h2 id="hIni">Initiatives</h2><small id="iniCap"></small><span class="lfw"><button type="button" class="lfchip" id="ibF" aria-haspopup="true" aria-expanded="false" aria-controls="ibTabs" aria-label="View: List">List<svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="m7 10 5 5 5-5"/></svg></button><span class="lfmenu glass" id="ibTabs" role="group" aria-label="Initiatives view" hidden><button type="button" data-v="list" aria-pressed="true">List</button><button type="button" data-v="stages" aria-pressed="false">By stage</button><button type="button" data-v="time" aria-pressed="false">Timeline</button></span></span><button class="fold alt dmadd2" id="newIni" type="button" hidden>New initiative</button></div>
51
51
  <div class="mprog" id="iniBar" role="progressbar" aria-label="Open initiatives on track" aria-valuemin="0" hidden><b></b></div>
52
- <div class="seg" id="ibTabs" role="group" aria-label="Initiatives view"><i class="pill"></i><button data-v="list" aria-pressed="true">List</button><button data-v="stages" aria-pressed="false">By stage</button><button data-v="time" aria-pressed="false">Timeline</button></div>
53
- <div id="ibBody"></div>
52
+ <div id="ibBody"></div>
54
53
  <p class="note" id="iniNote" style="margin-top:12px"></p>
55
54
  </section>
56
55
  </div>
@@ -50,10 +50,11 @@
50
50
  <section class="hero">
51
51
  <p class="date rise" style="--d:1" id="date"></p>
52
52
  <p class="brief rise" style="--d:2" id="brief" aria-live="polite"></p>
53
+ <p class="rfline" id="rfLine" role="status" hidden></p>
53
54
  </section>
54
55
  <div class="cols2">
55
56
  <div>
56
- <section class="card rise" style="--d:6" aria-labelledby="hMoves">
57
+ <section class="card rise" id="movesCard" style="--d:6" aria-labelledby="hMoves">
57
58
  <div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><path d="M5 12l4.5 4.5L19 7"/></svg></span><h2 id="hMoves">What you need to do</h2><small id="movesCap"></small></div>
58
59
  <div class="mprog" id="mprog" role="progressbar" aria-label="Done today" aria-valuemin="0" hidden><b></b></div>
59
60
  <div class="rank" id="rank"></div>