create-pmos 0.424.0 → 0.426.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.
Files changed (110) hide show
  1. package/package.json +25 -25
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/workspace/board-deliveries-test.js +153 -0
  7. package/workspace/board-programs-test.js +60 -36
  8. package/workspace/board-shot.js +4 -3
  9. package/workspace/briefing-premium-board-test.js +9 -6
  10. package/workspace/briefing-premium-insights-test.js +31 -15
  11. package/workspace/briefing-premium-products-test.js +46 -43
  12. package/workspace/calm-timeline-test.js +190 -0
  13. package/workspace/changelog.json +24 -0
  14. package/workspace/ev-everywhere-test.js +3 -1
  15. package/workspace/guide/briefing-premium.md +3 -2
  16. package/workspace/guide/claude-proposes.md +16 -1
  17. package/workspace/guide/home.md +2 -2
  18. package/workspace/guide/index.md +1 -0
  19. package/workspace/guide/notes.md +39 -1
  20. package/workspace/guide/present-in-a-meeting.md +57 -0
  21. package/workspace/guide/programs.md +4 -3
  22. package/workspace/lib/board-premium.js +3 -1
  23. package/workspace/lib/briefing-premium-products.js +18 -4
  24. package/workspace/lib/chat-file-locate.js +40 -2
  25. package/workspace/lib/engine/boards.js +8 -2
  26. package/workspace/lib/idle-close.js +60 -0
  27. package/workspace/lib/loose-proposals.js +302 -0
  28. package/workspace/lib/meeting-focus.js +64 -14
  29. package/workspace/lib/my-work-premium.js +1 -1
  30. package/workspace/lib/proposal-runs.js +77 -2
  31. package/workspace/lib/propose-cli.js +42 -1
  32. package/workspace/lib/route-modules.js +1 -0
  33. package/workspace/lib/routes-boards.js +16 -4
  34. package/workspace/lib/routes-brief-page.js +9 -1
  35. package/workspace/lib/routes-briefing-premium.js +19 -0
  36. package/workspace/lib/routes-loose.js +210 -0
  37. package/workspace/lib/routes-meeting-focus.js +28 -6
  38. package/workspace/lib/routes-pm-items.js +27 -17
  39. package/workspace/lib/settings-store.js +2 -1
  40. package/workspace/lib/task-cli.js +18 -11
  41. package/workspace/milestone-pins-test.js +170 -0
  42. package/workspace/package-lock.json +2 -2
  43. package/workspace/package.json +1 -1
  44. package/workspace/premium-board-actions-test.js +2 -1
  45. package/workspace/premium-briefing-depth-test.js +2 -2
  46. package/workspace/premium-chat-term-test.js +13 -2
  47. package/workspace/premium-core-doc-issue-test.js +1 -1
  48. package/workspace/premium-rec-now-test.js +153 -0
  49. package/workspace/premium-rec-tab-test.js +167 -0
  50. package/workspace/product-lane-test.js +30 -17
  51. package/workspace/public/pm/bd-acts.js +6 -3
  52. package/workspace/public/pm/bd-deliveries.js +218 -0
  53. package/workspace/public/pm/bd-pin-card.css +16 -0
  54. package/workspace/public/pm/bd-pin-card.js +80 -0
  55. package/workspace/public/pm/bd-pins.js +33 -0
  56. package/workspace/public/pm/bd-pop.js +2 -0
  57. package/workspace/public/pm/bd-prog.js +5 -4
  58. package/workspace/public/pm/bd-span.js +140 -102
  59. package/workspace/public/pm/cozy-aud.css +9 -0
  60. package/workspace/public/pm/cozy-aud.js +80 -0
  61. package/workspace/public/pm/cozy-board.css +73 -11
  62. package/workspace/public/pm/cozy-home.css +16 -1
  63. package/workspace/public/pm/cozy-live-pill.js +3 -0
  64. package/workspace/public/pm/cozy-pick.css +41 -0
  65. package/workspace/public/pm/cozy-pick.js +134 -0
  66. package/workspace/public/pm/cozy-rec-bridge.js +32 -0
  67. package/workspace/public/pm/cozy-rec-now.css +104 -0
  68. package/workspace/public/pm/cozy-rec-now.js +330 -0
  69. package/workspace/public/pm/cozy-rec-present.css +69 -0
  70. package/workspace/public/pm/cozy-rec-present.js +467 -0
  71. package/workspace/public/pm/cozy-rec-tab.css +90 -0
  72. package/workspace/public/pm/cozy-rec-tab.js +219 -0
  73. package/workspace/public/pm/cozy-settings.js +8 -2
  74. package/workspace/public/pm/cozy-today.css +4 -0
  75. package/workspace/public/pm/home-app.js +51 -22
  76. package/workspace/public/pm/home-data.js +5 -3
  77. package/workspace/public/pm/home-list.js +63 -15
  78. package/workspace/public/pm/home-more.js +2 -31
  79. package/workspace/public/pm/home-today.js +19 -9
  80. package/workspace/public/pm/ini-tasks.js +4 -1
  81. package/workspace/public/pm/live-model.js +1 -1
  82. package/workspace/public/pm/loose-props.css +54 -0
  83. package/workspace/public/pm/loose-props.js +262 -0
  84. package/workspace/public/pm/premium-board.js +65 -30
  85. package/workspace/public/pm/premium-insights.js +42 -24
  86. package/workspace/public/pm/premium-meeting.js +17 -4
  87. package/workspace/public/pm/premium-mtg-present.js +4 -3
  88. package/workspace/public/pm/premium-report-read.js +2 -0
  89. package/workspace/public/pm/premium-vw-mtg.js +15 -7
  90. package/workspace/public/pm/rec-state.js +13 -5
  91. package/workspace/public/pm/rec-tab-core.js +92 -0
  92. package/workspace/public/pm/term-view.js +81 -10
  93. package/workspace/public/pm/view-notes.js +9 -0
  94. package/workspace/public/premium-aud.html +22 -0
  95. package/workspace/public/premium-board.html +2 -0
  96. package/workspace/public/premium-insights.html +2 -1
  97. package/workspace/public/premium-rec.html +30 -0
  98. package/workspace/public/premium.html +1 -0
  99. package/workspace/rec-present-test.js +229 -0
  100. package/workspace/server.js +116 -7
  101. package/workspace/skills/loose-propose.skill +39 -0
  102. package/workspace/task-milestones-test.js +15 -6
  103. package/workspace/test-lists/board-deliveries.json +13 -0
  104. package/workspace/test-lists/calm-timeline.json +5 -0
  105. package/workspace/test-lists/loose-props.json +9 -0
  106. package/workspace/test-lists/milestone-pins.json +6 -0
  107. package/workspace/test-lists/rec-now.json +6 -0
  108. package/workspace/test-lists/rec-present.json +13 -0
  109. package/workspace/test-lists/recording-tab.json +13 -0
  110. package/workspace/timeline-holds-test.js +44 -42
@@ -6,6 +6,8 @@
6
6
  * window.__premiumRec, and mountMeeting(d): the controller Home mounts. It draws nothing: every meeting opens in the Viewer card
7
7
  * (premium-vw-mtg.js openMeeting). */
8
8
 
9
+ import { ownTab, openTab, goTab, dropTab, tabUrl, post } from './rec-tab-core.js';
10
+
9
11
  const pad = (n) => String(n).padStart(2, '0');
10
12
  const clip = (s, n) => { const t = String(s == null ? '' : s).replace(/\s+/g, ' ').trim(); return t.length > n ? t.slice(0, n - 1).trimEnd() + '…' : t; };
11
13
  const DOW = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
@@ -359,6 +361,7 @@ export function recCore(d) {
359
361
  R = {
360
362
  listen: (id) => V.listenNow(ctx, id), pause: () => V.pauseListening(ctx), listening: () => V.listeningId(), started: () => V.liveStarted(), banner: () => V.takeBanner(),
361
363
  highlight: (id) => V.highlightNow(ctx, id), highlighting: () => V.highlightBusy(),
364
+ screen: () => V.liveScreen(), shots: (on) => V.pauseShots(on),
362
365
  async stop(id) {
363
366
  const one = await d.pmGet('/api/notes/one?id=' + encodeURIComponent(id)), note = one && one.ok ? one.note : null;
364
367
  const { discardable } = await import('./note-dock.js');
@@ -368,22 +371,28 @@ export function recCore(d) {
368
371
  };
369
372
  return R;
370
373
  }
374
+ /* not the recording tab: the recording tab listens (rec-tab-core.js), and the press there gives the share its permission */
375
+ async function inTab(T, id) { goTab(T, tabUrl(id, { ws: (d.ws ? d.ws() : '') || '', go: true })); await readNotes(); return { ok: true, tab: true }; }
371
376
  const setHold = (id) => { HOLD = id ? { id } : null; window.__premiumHolding = HOLD; bump(); };
372
377
  const started = () => { const r = window.__premiumRecorder || R; return r ? r.started() : null; };
373
378
  const C = {
374
379
  async record(row) {
375
380
  const blocking = liveRows(NR).find((n) => n.state === 'recording' && !sameMeeting(n.meeting, row));
381
+ // the next meeting while one records in its own tab: that tab comes forward and asks once, "Stop X and record Y?"
382
+ if (blocking && !HOLD && ownTab() && openTab(tabUrl(String(blocking.id), { ws: (d.ws ? d.ws() : '') || '' }))) { post({ id: String(blocking.id), switchTo: { title: clip(row && row.title, 120), body: noteBody(row) } }); return { ok: false, tab: true, error: clip(blocking.title, 60) + ' is recording. Its tab asks whether to switch.' }; }
376
383
  if (blocking || HOLD) return { ok: false, error: (blocking ? clip(blocking.title, 60) : 'A meeting') + ' is recording. Pause or stop it first.' };
384
+ const T = ownTab() ? openTab(null) : null; // before the first await, so the browser lets the tab open
377
385
  const made = await d.pmPost('/api/notes/new', noteBody(row));
378
- if (!made || made.ok !== true) return { ok: false, error: (made && made.error) || 'The note was not made.' };
379
- return C.resume(made.note.id);
386
+ if (!made || made.ok !== true) { dropTab(T); return { ok: false, error: (made && made.error) || 'The note was not made.' }; }
387
+ return T ? inTab(T, made.note.id) : C.resume(made.note.id);
380
388
  },
381
389
  /** New meeting: an untitled note with no calendar event, listened to at once (the console's recordNew). */
382
390
  async fresh() {
383
391
  if (HOLD || liveRows(NR).some((n) => n.state === 'recording')) return { ok: false, error: 'A meeting is recording. Pause or stop it first.' };
392
+ const T = ownTab() ? openTab(null) : null;
384
393
  const made = await d.pmPost('/api/notes/new', { title: '' });
385
- if (!made || made.ok !== true) return { ok: false, error: (made && made.error) || 'The note was not made.' };
386
- const res = await C.resume(made.note.id); return res.ok ? { ok: true, id: made.note.id } : { ...res, id: made.note.id };
394
+ if (!made || made.ok !== true) { dropTab(T); return { ok: false, error: (made && made.error) || 'The note was not made.' }; }
395
+ const res = T ? await inTab(T, made.note.id) : await C.resume(made.note.id); return { ...res, id: made.note.id };
387
396
  },
388
397
  /** Highlight: the last 30 seconds and the next ones, made into a highlight from the transcript when the window closes. */
389
398
  async highlight() {
@@ -392,6 +401,7 @@ export function recCore(d) {
392
401
  return ok === false ? { ok: false, error: 'The highlight was not started.' } : { ok: true };
393
402
  },
394
403
  async resume(id) {
404
+ if (ownTab()) { const T = openTab(null); if (T) return inTab(T, id); }
395
405
  const rec = await recorder(); const ok = await rec.listen(id);
396
406
  await readNotes();
397
407
  if (!ok) return { ok: false, error: (await rec.banner()) || 'The meeting could not be heard.' };
@@ -408,6 +418,9 @@ export function recCore(d) {
408
418
  },
409
419
  refresh: readNotes, notes: () => NR, note: (id) => NR.find((n) => n.id === id) || null, started, holding: () => HOLD,
410
420
  highlighting: () => { const r = window.__premiumRecorder || R; return r && r.highlighting ? r.highlighting() : null; },
421
+ /** The recording tab's picture: { track, shared, paused, silent } (view-notes.js liveScreen); shots(on) pauses or keeps the screenshots. */
422
+ screen: () => { const r = window.__premiumRecorder || R; return r && r.screen ? r.screen() : { track: null, shared: false, paused: false, silent: false }; },
423
+ shots: (on) => { const r = window.__premiumRecorder || R; return !!(r && r.shots && r.shots(on)); },
411
424
  };
412
425
  window.__pmRecCore = C;
413
426
  window.__premiumRec = { pause: C.pause, resume: C.resume, stop: C.stop, record: C.record, fresh: C.fresh, highlight: C.highlight, today: async () => [],
@@ -30,7 +30,8 @@
30
30
  * presentModel(S, now) → the view model (pure) presentHtml(V) → the presenter (pure) audienceFoot(V) → text (pure)
31
31
  * openAudience() → the window (call it inside the press, before anything is awaited, so the browser allows it)
32
32
  * presentMaterial({ mats, start, ws, meeting, getMeeting, onKeep, onAddLink, onEnd, app, win }) → { ok, end, go, at, cur, blank }
33
- * previewMaterial(body, item, { ws, at, onAt, onPresent }) → draws the material for the PM only (XvAMaterialPreview) */
33
+ * previewMaterial(body, item, { ws, at, onAt, onPresent }) → draws the material for the PM only (XvAMaterialPreview)
34
+ * place(root), fit(box, slot) a drawn slide's items and its scale (the recording tab's presenter and audience tab draw slides too) */
34
35
  import * as D from './premium-deck.js';
35
36
  import { parseMd, toDom } from './cozy-md.js';
36
37
 
@@ -199,10 +200,10 @@ function copySheets(doc, again) {
199
200
  st.textContent = text.join('\n'); st.dataset.full = got.size === want.length ? '1' : '';
200
201
  if (got.size < want.length && again) for (const l of document.querySelectorAll('link[rel="stylesheet"]')) if (!l.sheet && want.some((x) => l.href.split('?')[0].endsWith(x))) l.addEventListener('load', again, { once: true });
201
202
  }
202
- function place(root) {
203
+ export function place(root) {
203
204
  root.querySelectorAll('.sl-it[data-g]').forEach((n) => { const [x, y, w, h] = n.dataset.g.split(','); n.style.setProperty('--bd-x', x + 'px'); n.style.setProperty('--bd-y', y + 'px'); n.style.setProperty('--bd-w', w + 'px'); n.style.setProperty('--bd-h', h + 'px'); });
204
205
  }
205
- function fit(box, slot) { const k = Math.max(0.03, Math.min(slot.clientWidth / D.W, slot.clientHeight / D.H)); box.style.setProperty('--bd-k', String(k)); }
206
+ export function fit(box, slot) { const k = Math.max(0.03, Math.min(slot.clientWidth / D.W, slot.clientHeight / D.H)); box.style.setProperty('--bd-k', String(k)); }
206
207
 
207
208
  /** Opens the audience window. Call it in the press itself (before an await), so the browser counts it as the PM's own. */
208
209
  export function openAudience() {
@@ -50,6 +50,7 @@
50
50
  import { pmGet, pmPost } from './http.js';
51
51
  import { open as vOpen, current as vCur, czSections } from './cozy-viewer.js';
52
52
  import * as MP from './premium-mtg-present.js'; // the one presenter window for every kind (canvas note xvPresent)
53
+ import { presentInRecording } from './cozy-rec-bridge.js'; // while a meeting records, the recording tab presents it (rule 10)
53
54
  import { placeholderHtml } from './cozy-placeholder.js';
54
55
  import './premium-vw-open.js'; // registers window.czViews
55
56
  import { cycleGroups, cycleName, briefModel, briefGlanceHtml, briefConfirmHtml, briefWhyHtml, briefLooksHtml, paperModel, paperHtml, liveModel, liveHtml, presentHtml, dayMon, reportSummary,
@@ -805,6 +806,7 @@ function printIt() {
805
806
  function presentIt() {
806
807
  const me = R;
807
808
  if (R.cyc || !R.W || R.err) return present(true);
809
+ if (presentInRecording({ kind: R.view === 'deck' ? 'pmos-deck' : 'report', ref: R.row.path, title: R.name, ws: R.ws })) return;
808
810
  if (typeof MP.presentMaterial === 'function') {
809
811
  const win = typeof MP.openAudience === 'function' ? MP.openAudience() : null;
810
812
  const mat = { kind: R.view === 'deck' ? 'pmos-deck' : 'report', ref: R.row.path, title: R.name, ws: R.ws };
@@ -35,11 +35,13 @@
35
35
  * openMeeting(ref, { ws }) → opens the card. ref: a note id, { note }, { event, date }, a calendar week row or a brief-page today row. */
36
36
  import { open as vOpen, current as vCur, back as vBack, czSummary, czSections } from './cozy-viewer.js';
37
37
  import { pmGet, pmPost, pressFetch } from './http.js';
38
+ import { ownTab, bring, tabUrl } from './rec-tab-core.js';
38
39
  import { noteSheet, aboutChoices, aboutBody, aboutNow } from './premium-vw-meet.js';
39
40
  import { weekView, noteOfRow, sameMeeting, recordable, prevOf, taskEvent, linkBody, mmss, focusView, replayModel, RECORD_LINE, FOCUS_LINE, STOP_LINE, CONSENT_LINE, recCore } from './premium-meeting.js';
40
41
  import { APPS, recall, remember } from './listen-sources.js';
41
42
  import { replayView, playerHtml, partHtml, keptHtml, phoneHtml, editHtml, mentions, phraseOf as phraseOfPage } from './premium-mtg-replay.js';
42
43
  import { announce } from './rec-state.js';
44
+ import { presentInRecording } from './cozy-rec-bridge.js'; // while a meeting records, Present goes to the recording tab (batch 12 item 1, rule 10)
43
45
 
44
46
  const esc = (s) => String(s == null ? '' : s).replace(/[&<>"]/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;' }[c]));
45
47
  const clip = (s, n) => { const t = String(s == null ? '' : s).replace(/\s+/g, ' ').trim(); return t.length > n ? t.slice(0, n - 1) + '…' : t; };
@@ -68,6 +70,8 @@ const MENU = {
68
70
  fresh: ['New meeting', 'Start an untitled note now'],
69
71
  why: ['What Record and Focus do', 'Audio and notes stay on this machine'],
70
72
  };
73
+ /** Record and Resume on a page that is not the recording tab: the meeting opens in its own tab, where one press shares it. */
74
+ const TAB_LINE = 'The meeting opens in its own tab. Share it there to start.';
71
75
  export const EMPTY_LIVE = 'Press Record when the meeting starts. PMOS listens to your microphone and the meeting sound, and keeps both on this machine.';
72
76
  export const EMPTY_NOTES = 'The summary, decisions and next steps are written when you stop recording.';
73
77
  export const LIVE_FOOT = 'Transcribed on this machine. Audio and notes stay here.';
@@ -291,7 +295,7 @@ const SV = { link: '<path d="M10 14a4 4 0 0 0 6 0l3-3a4 4 0 0 0-6-6l-1 1M14 10a4
291
295
  prod: '<path d="M5 20V11M12 20V5M19 20v-6"/>', ticket: '<path d="M4 7h16v4a2 2 0 0 0 0 4v4H4v-4a2 2 0 0 0 0-4z"/>', warn: '<path d="M12 4l9 16H3zM12 10v4M12 17v.01"/>',
292
296
  rec: '<circle cx="12" cy="12" r="5"/>', star: '<path d="M12 3.8l2.5 5.2 5.7.8-4.1 4 1 5.7L12 16.8l-5.1 2.7 1-5.7-4.1-4 5.7-.8z"/>',
293
297
  img: '<path d="M4 4.5h16v15H4zM9 10a1.6 1.6 0 1 0 0-.01M20 16l-5-5-8 8"/>', up: '<path d="M12 16V4M7 9l5-5 5 5M5 20h14"/>',
294
- present: '<path d="M3 4h18v12H3zM10 8.5l4 2.5-4 2.5zM8 20h8M12 16v4"/>' };
298
+ tab: '<path d="M14 4h6v6M20 4l-8 8M18 14v6H4V6h6"/>', present: '<path d="M3 4h18v12H3zM10 8.5l4 2.5-4 2.5zM8 20h8M12 16v4"/>' };
295
299
  const svg = (k, w, extra) => `<svg aria-hidden="true" width="${w}" height="${w}" viewBox="0 0 24 24"${extra || ''}>${SV[k]}</svg>`;
296
300
  /* bars split by weight (live topics): an SVG, so each length is an attribute and not an inline style */
297
301
  function weightBar(cls, parts) {
@@ -326,13 +330,15 @@ export function summaryHtml(m, ui = {}) {
326
330
  }
327
331
  if (m.mk === 'live') {
328
332
  const L = m.live, Fo = m.focus;
329
- const line = m.liveK === 'rec' ? 'Recording · ' + mmss(m.liveMs || 0) : m.liveK === 'paused' ? 'Paused at ' + mmss(m.liveMs || 0) : 'Recording, but not on this page';
333
+ // a recording in its own tab (rec-tab-core.js) is live, not stale: this page shows it, and its one press brings that tab forward
334
+ const away = m.liveK === 'stale' && ownTab();
335
+ const line = m.liveK === 'rec' || away ? 'Recording · ' + mmss(m.liveMs || 0) : m.liveK === 'paused' ? 'Paused at ' + mmss(m.liveMs || 0) : 'Recording, but not on this page';
330
336
  const now = Fo.now ? 'Now on: ' + Fo.now + (Fo.topics.length > 1 ? ', topic ' + (Fo.topics.findIndex((t) => t.now) + 1) + ' of ' + Fo.topics.length + '.' : '.')
331
337
  : Fo.error ? 'Focus could not read this meeting: ' + String(Fo.error).replace(/\.$/, '') + '.' : ''; // honest: a refused read says why
332
- const text = m.liveK === 'paused' ? 'Nothing is kept while paused. ' + now : m.liveK === 'stale' ? 'Nothing is kept until you resume here. ' + now : now;
333
- const acts = m.liveK === 'rec' ? roundBtn('stop', 'Stop the recording', 'stop', 'red') + roundBtn('hl', 'Highlight the last 30 seconds', 'star') + roundBtn('pause', 'Pause', 'pause')
338
+ const text = m.liveK === 'paused' ? 'Nothing is kept while paused. ' + now : m.liveK === 'stale' && !away ? 'Nothing is kept until you resume here. ' + now : now;
339
+ const acts = away ? roundBtn('rectab', 'Go to the recording tab', 'tab', 'dark') : m.liveK === 'rec' ? roundBtn('stop', 'Stop the recording', 'stop', 'red') + roundBtn('hl', 'Highlight the last 30 seconds', 'star') + roundBtn('pause', 'Pause', 'pause')
334
340
  : roundBtn('resume', 'Resume', 'play', 'dark') + roundBtn('stop', 'Stop the recording', 'stop', 'red');
335
- return czSummary({ line, tone: m.liveK === 'rec' ? 'live' : 'warn', text: text.trim(), extra: metaLine([L.app + ' · microphone and meeting', m.people.length ? plural(m.people.length, 'person', 'people') : '']) + `<div class="vzm-acts">${acts}</div>` });
341
+ return czSummary({ line, tone: m.liveK === 'rec' || away ? 'live' : 'warn', text: text.trim(), extra: metaLine([L.app + ' · microphone and meeting', m.people.length ? plural(m.people.length, 'person', 'people') : '']) + `<div class="vzm-acts">${acts}</div>` });
336
342
  }
337
343
  const N = m.notes, V = N.replay;
338
344
  const text = N.summary || (m.private ? 'This note is private: only what you typed is kept.' : 'No summary was written for this meeting.');
@@ -715,10 +721,11 @@ async function press(me, e) {
715
721
  case 'recgo': {
716
722
  ui.ask = null; t.disabled = true;
717
723
  const res = me.n && !me.row ? await C.resume(me.n.id) : await C.record(me.row);
718
- say(me, res.ok ? 'Recording. Notes are being taken on this machine. Let people know.' : res.error, res.ok ? '' : 'bad');
724
+ say(me, res.ok ? (res.tab ? TAB_LINE : 'Recording. Notes are being taken on this machine. Let people know.') : res.error, res.ok ? '' : 'bad');
719
725
  announce(); return load(me);
720
726
  }
721
- case 'resume': { t.disabled = true; const res = await C.resume(me.n.id); say(me, res.ok ? 'Listening again.' : res.error, res.ok ? '' : 'bad'); announce(); return load(me); }
727
+ case 'resume': { t.disabled = true; const res = await C.resume(me.n.id); say(me, res.ok ? (res.tab ? TAB_LINE : 'Listening again.') : res.error, res.ok ? '' : 'bad'); announce(); return load(me); }
728
+ case 'rectab': if (me.n) bring(tabUrl(me.n.id, { ws: me.ws || '' })); return;
722
729
  case 'pause': { ui.ask = null; t.disabled = true; const res = await C.pause(); say(me, res.ok ? 'Paused. You can resume within 1 hour.' : res.error, res.ok ? '' : 'bad'); announce(); return load(me); }
723
730
  case 'stop': ui.ask = 'stop'; return repaint(me);
724
731
  case 'stopgo': { ui.ask = null; t.disabled = true; const res = await C.stop(me.n.id); say(me, res.ok ? (res.discarded ? 'Nothing was recorded, so the note was deleted.' : 'Stopped. The final notes are written now.') : res.error, res.ok ? '' : 'bad'); announce(); return load(me); }
@@ -988,6 +995,7 @@ function meetingNow(me) {
988
995
  const matId = (x) => x.id || x.mkind + '|' + (x.ref || x.url || x.title);
989
996
  async function presentIt(me, i, at) {
990
997
  const all = (me.model && me.model.material) || [], x = all[i]; if (!x || !x.present) return;
998
+ if (presentInRecording({ ...x, kind: x.mkind || x.kind, ws: x.ws || me.ws })) return; // while a meeting records, the recording tab presents it (rule 10)
991
999
  const win = audience(); // before anything is awaited
992
1000
  const M = await import('./premium-mtg-present.js');
993
1001
  const list = all.filter((y) => y.present), start = list.indexOf(x);
@@ -12,16 +12,21 @@
12
12
  * paused it is paused (nothing is kept until it resumes)
13
13
  * startedAt ms when this stretch of the meeting clock started, so a page can tick it: elapsed = elapsedMs + (Date.now() - readAt)
14
14
  * elapsedMs the meeting time heard so far, at readAt
15
- * href where the recording is shown: Home with the meeting open (/premium.html?meeting=<note id>)
16
- * here this page holds the recorder (premium-meeting.js sets window.__premiumHolding)
15
+ * href the recording tab (/premium-rec.html?note=<id>, rec-tab-core.js): a press on a snippet brings it forward
16
+ * here this page holds the recorder (premium-meeting.js sets window.__premiumHolding), or is the recording tab
17
+ * silent the recording tab hears the microphone but not the meeting ("Not hearing the meeting")
18
+ * The recording tab also sends its state over a BroadcastChannel (rec-tab-core.js post) on each change and every 5 s: a page reads again
19
+ * at once, so its snippet never runs a stale clock. The channel carries state only.
17
20
  * The answer comes from the notes the server keeps, so a page that did not start the recording still knows of it. Nothing is written. */
18
21
  import { pmGet } from './http.js';
22
+ import { tabUrl, isTab, listen } from './rec-tab-core.js';
19
23
 
20
24
  export const EVENT = 'cz:recording';
21
- const OFF = Object.freeze({ on: false, paused: false, id: '', title: '', startedAt: 0, elapsedMs: 0, readAt: 0, href: '', here: false });
25
+ const OFF = Object.freeze({ on: false, paused: false, id: '', title: '', startedAt: 0, elapsedMs: 0, readAt: 0, href: '', here: false, silent: false });
26
+ let heard = { id: '', silent: false };
22
27
  let last = null, lastAt = 0, inflight = null, timer = null;
23
28
  const subs = new Set();
24
- const same = (a, b) => !!a && !!b && a.on === b.on && a.paused === b.paused && a.id === b.id && a.title === b.title;
29
+ const same = (a, b) => !!a && !!b && a.on === b.on && a.paused === b.paused && a.id === b.id && a.title === b.title && a.silent === b.silent;
25
30
 
26
31
  /** The State of the note list (pure). rows: GET /api/notes .notes */
27
32
  export function stateOf(rows, now = Date.now(), holding = null) {
@@ -30,7 +35,8 @@ export function stateOf(rows, now = Date.now(), holding = null) {
30
35
  const n = live.find((x) => x.state === 'recording') || live[0];
31
36
  const el = Math.max(0, Number(n.meeting_ms) || 0);
32
37
  return { on: true, paused: n.state === 'paused', id: String(n.id), title: String((n.meeting && n.meeting.title) || n.title || 'Meeting'), startedAt: n.state === 'recording' ? now - el : 0,
33
- elapsedMs: el, readAt: now, href: '/premium.html?meeting=' + encodeURIComponent(n.id), here: !!(holding && holding.id === n.id) };
38
+ elapsedMs: el, readAt: now, href: tabUrl(String(n.id), { ws: n.ws || '' }), here: !!(holding && holding.id === n.id) || isTab(),
39
+ silent: heard.id === String(n.id) && heard.silent && n.state === 'recording' };
34
40
  }
35
41
 
36
42
  export async function recState({ fresh = false } = {}) {
@@ -60,4 +66,6 @@ export function onRecording(fn) {
60
66
  /** A recording was started, paused, resumed or stopped on this page: read again now. */
61
67
  export function announce() { return recState({ fresh: true }); }
62
68
 
69
+ if (typeof window !== 'undefined' && !isTab()) listen((d) => { heard = { id: d.id, silent: !!d.silent }; recState({ fresh: true }); });
70
+
63
71
  if (typeof window !== 'undefined') window.czRecording = { state: recState, on: onRecording, EVENT };
@@ -0,0 +1,92 @@
1
+ /* pm/rec-tab-core.js — a recording runs in its own tab (batch 12 item 1; canvas Ready for development, XrtA1Tab … XrtA6States).
2
+ *
3
+ * The recording tab (/premium-rec.html, rec-tab.js) holds the recorder and never navigates away, so opening Home, Board, Insights or a
4
+ * chat in another tab never pauses the meeting. Every other page shows only a snippet (the Live pill's first row, Home's pinned row): a
5
+ * press brings the recording tab forward. Only the recording tab controls the meeting; the channel below carries its state, never a press.
6
+ *
7
+ * TAB, MAIN the window names: the recording tab, and the PMOS tab its links open in
8
+ * tabUrl(id, { ws, go }) the recording tab's address for one note; go: start listening when it opens
9
+ * isTab() this page is the recording tab
10
+ * ownTab() a Record pressed on this page records in the recording tab (not on a phone, not in the recording tab;
11
+ * a browser under automation only when the suite asks with window.__pmRecOwnTab)
12
+ * openTab(url) → T | null the recording tab, opened or brought forward. Call it first in the press, before any await, so the
13
+ * browser lets it open. A tab that is already open keeps its page; url is loaded only into a new one.
14
+ * goTab(T, url) load url into that tab (a note was made after the press)
15
+ * bring(url) → bool a snippet's press: the recording tab forward (opened at url when it was closed)
16
+ * post(state) · listen(fn) the recording tab's state to every other PMOS tab: { id, state, title, elapsedMs, silent, at }
17
+ * clockOf(ms) · modeOf(row, held, screen) · endOf(note) · marksOf(note, frames, len) the recording tab's pure half
18
+ */
19
+ export const TAB = 'pmos-rec';
20
+ export const MAIN = 'pmos-main';
21
+ const CHANNEL = 'pmos-rec';
22
+
23
+ export const tabUrl = (id, { ws = '', go = false } = {}) => '/premium-rec.html?note=' + encodeURIComponent(id) + (ws ? '&ws=' + encodeURIComponent(ws) : '') + (go ? '&go=1' : '');
24
+ export const isTab = () => typeof location !== 'undefined' && /^\/premium-rec(\.html)?$/.test(location.pathname);
25
+ const phone = () => typeof matchMedia === 'function' && matchMedia('(max-width: 760px)').matches;
26
+ export function ownTab() {
27
+ if (typeof window === 'undefined' || isTab()) return false;
28
+ if (typeof navigator !== 'undefined' && navigator.webdriver === true && window.__pmRecOwnTab !== true) return false;
29
+ return true;
30
+ }
31
+
32
+ /** T = { win, blank, here }: here is true on a phone, where the recording view opens in this same tab. */
33
+ export function openTab(url) {
34
+ if (phone()) { if (url) location.href = url; return { win: window, blank: true, here: true }; }
35
+ let win = null;
36
+ try { win = window.open('', TAB); } catch { win = null; }
37
+ if (!win) return null;
38
+ let blank = false;
39
+ try { blank = !win.location.href || win.location.href === 'about:blank'; } catch { blank = false; }
40
+ if (url && blank) win.location.href = url;
41
+ try { win.focus(); } catch { /* the browser keeps the focus */ }
42
+ return { win, blank, here: false };
43
+ }
44
+ export function goTab(T, url) {
45
+ if (!T || !T.win) return;
46
+ try { T.win.location.href = url; T.win.focus(); } catch { /* the tab was closed */ }
47
+ }
48
+ /** Close a tab opened for a note that was then not made. */
49
+ export function dropTab(T) { if (T && T.blank && !T.here) { try { T.win.close(); } catch { /* gone */ } } }
50
+ export function bring(url) { const T = openTab(url); return !!T; }
51
+
52
+ /* ── the recording tab's pure half (cozy-rec-tab.js draws from these) ─────────────────────────────────────── */
53
+ const pad = (n) => String(n).padStart(2, '0');
54
+ const clip = (s, n) => { const t = String(s == null ? '' : s).replace(/\s+/g, ' ').trim(); return t.length > n ? t.slice(0, n - 1).trimEnd() + '…' : t; };
55
+ /** The meeting clock: 12:40, then 1:02:40 past the hour. */
56
+ export const clockOf = (ms) => { const s = Math.max(0, Math.floor((Number(ms) || 0) / 1000)), h = Math.floor(s / 3600), m = Math.floor((s % 3600) / 60); return h ? h + ':' + pad(m) + ':' + pad(s % 60) : m + ':' + pad(s % 60); };
57
+ /** What the tab is in now (pure): 'stopped' | 'paused' | 'screen' | 'room' | 'idle'. row: the note's list row; held: this tab listens to it;
58
+ * scr: the recorder's picture ({ shared }). */
59
+ export function modeOf(row, held, scr) {
60
+ if (!row) return 'idle';
61
+ if (row.state === 'ended') return 'stopped';
62
+ if (row.state === 'paused') return 'paused';
63
+ if (row.state === 'recording' && held) return scr && scr.shared ? 'screen' : 'room';
64
+ return 'idle';
65
+ }
66
+ /** The meeting's calendar end in ms, or null (an untitled note has none). */
67
+ export const endOf = (note) => { const e = note && note.meeting && note.meeting.end; const t = e && /T\d{2}:\d{2}/.test(e) ? Date.parse(e) : NaN; return Number.isFinite(t) ? t : null; };
68
+ /** The marks on the meeting-so-far line (pure): one per highlight, at its meeting time. → [{ t, x (0..1), text, shot }] */
69
+ export function marksOf(note, frames, len) {
70
+ if (!note || !(len > 0)) return [];
71
+ const from = Date.parse(note.recorded_from || '') || 0;
72
+ const shots = (Array.isArray(frames) ? frames : []).map((f) => f.t).filter(Number.isFinite).sort((a, b) => a - b);
73
+ const near = (t) => { let best = null; for (const s of shots) { if (s <= t + 15000) best = s; else break; } return best; };
74
+ return (note.highlights || []).map((h) => {
75
+ const t = Number.isFinite(h.t) ? h.t : Number.isFinite(h.timestamp) && from ? h.timestamp - from : null;
76
+ return t == null ? null : { t, x: Math.min(1, Math.max(0, t / len)), text: clip(h.text || h.label || '', 140), shot: near(t) };
77
+ }).filter(Boolean);
78
+ }
79
+
80
+
81
+ let ch = null;
82
+ const channel = () => { if (!ch && typeof BroadcastChannel === 'function') { try { ch = new BroadcastChannel(CHANNEL); } catch { ch = null; } } return ch; };
83
+ export function post(state) { const c = channel(); if (c) { try { c.postMessage({ ...state, at: Date.now() }); } catch { /* closed */ } } }
84
+ export function listen(fn) {
85
+ const c = channel(); if (!c) return () => {};
86
+ const on = (e) => { const d = e && e.data; if (d && typeof d.id === 'string') { try { fn(d); } catch { /* the listener's own */ } } };
87
+ c.addEventListener('message', on);
88
+ return () => c.removeEventListener('message', on);
89
+ }
90
+
91
+ /* every other PMOS page is the tab the recording tab's links open in */
92
+ if (typeof window !== 'undefined' && !isTab() && !window.name) { try { window.name = MAIN; } catch { /* read-only */ } }
@@ -1,22 +1,93 @@
1
1
  /* pm/term-view.js — a running session's terminal, read only, in the Viewer card (initiative premium-agreed-design: nothing links to the console).
2
- * openTermView(sid, { title }) → the Viewer body. It reads GET /api/sessions/transcript?id=<sid> (what the session printed, ANSI taken out)
3
- * every 2 s while the card shows it, and keeps the view at the end unless the PM scrolled up. It writes nothing. */
2
+ * openTermView(sid, { title }) → the Viewer body. It reads GET /api/sessions/transcript?id=<sid>&raw=1 every 2 s while the card shows it and
3
+ * draws the bytes in a read-only terminal (xterm.js, served from /vendor) the size of the session's own, so a full-screen agent's cursor moves
4
+ * and redraws land where they did on the PM's screen. Plain text with the escapes taken out ran words together and piled spinner frames up
5
+ * line by line (PM, 2026-10-27: "Broken format on terminal view"). After the first read it asks only for what was printed since (since + gen).
6
+ * It keeps the view at the end unless the PM scrolled up. It writes nothing; keys typed in the card go nowhere.
7
+ * When xterm.js cannot load, it falls back to the plain text (GET …&max=12000, ANSI taken out). */
4
8
  import { open, current } from './cozy-viewer.js';
5
9
  import { pmGet } from './http.js';
6
10
 
11
+ let xtermP = null;
12
+ /** window.Terminal from /vendor/xterm.js, loaded once with its stylesheet. Resolves null when it cannot load. */
13
+ function loadXterm() {
14
+ if (window.Terminal) return Promise.resolve(window.Terminal);
15
+ if (xtermP) return xtermP;
16
+ xtermP = new Promise((done) => {
17
+ if (!document.querySelector('link[data-xterm-css]')) {
18
+ const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = '/vendor/xterm.css'; l.setAttribute('data-xterm-css', ''); document.head.appendChild(l);
19
+ }
20
+ const s = document.createElement('script'); s.src = '/vendor/xterm.js';
21
+ s.onload = () => done(window.Terminal || null);
22
+ s.onerror = () => { xtermP = null; done(null); };
23
+ document.head.appendChild(s);
24
+ });
25
+ return xtermP;
26
+ }
27
+
28
+ /** The terminal's colours and face from the card's own computed style, so it follows light and dark. A token the page lacks leaves that
29
+ * colour to xterm's default. The size is not set here: xterm draws at its default and cozy-home.css scales .hv-xt .xterm down to 12px. */
30
+ function look(el) {
31
+ const cs = getComputedStyle(el);
32
+ const v = (n) => (cs.getPropertyValue(n) || '').trim() || undefined;
33
+ const bg = v('--cz-well'), fg = v('--cz-ink');
34
+ return { theme: { background: bg, foreground: fg, cursor: bg, cursorAccent: bg, selectionBackground: v('--cz-well2') },
35
+ fontFamily: v('--cz-mono') || 'ui-monospace, Menlo, monospace' };
36
+ }
37
+
7
38
  export function openTermView(sid, o = {}) {
8
39
  if (!/^sess-\d+$/.test(String(sid || ''))) return null;
9
40
  const id = 'term:' + sid;
10
- const body = open({ id, kind: 'Terminal · read only', title: o.title || sid, icon: 'M4 5h16v14H4zM7 9l3 3-3 3M12 15h5', html: '<pre class="hv-term" role="log" aria-live="off">Reading the terminal.</pre>' });
11
- const tick = async () => {
12
- const c = current(); if (!c || c.id !== id) return;
41
+ let stop = false, term = null, gen = null, end = null, plain = false;
42
+ const body = open({ id, kind: 'Terminal · read only', title: o.title || sid, icon: 'M4 5h16v14H4zM7 9l3 3-3 3M12 15h5',
43
+ html: '<pre class="hv-term" role="log" aria-live="off">Reading the terminal.</pre>',
44
+ onClose: () => { stop = true; if (term) { try { term.dispose(); } catch { /* already gone */ } term = null; } } });
45
+ const live = () => { const c = current(); return !stop && c && c.id === id; };
46
+
47
+ const plainTick = async () => {
13
48
  const r = await pmGet('/api/sessions/transcript?id=' + encodeURIComponent(sid) + '&max=12000');
14
- const pre = body.querySelector('.hv-term'); if (!pre) return;
15
- const end = pre.scrollHeight - pre.scrollTop - pre.clientHeight < 40;
49
+ if (!live()) return;
50
+ let pre = body.querySelector('.hv-term');
51
+ if (!pre) { body.innerHTML = '<pre class="hv-term" role="log" aria-live="off"></pre>'; pre = body.querySelector('.hv-term'); }
52
+ const atEnd = pre.scrollHeight - pre.scrollTop - pre.clientHeight < 40;
16
53
  pre.textContent = r && r.ok ? r.text || '(nothing printed yet)' : (r && r.error) || 'The terminal could not be read.';
17
- if (end) pre.scrollTop = pre.scrollHeight;
18
- setTimeout(tick, 2000);
54
+ if (atEnd) pre.scrollTop = pre.scrollHeight;
55
+ };
56
+
57
+ const xtTick = async (Terminal) => {
58
+ const q = gen == null ? '' : '&gen=' + encodeURIComponent(gen) + '&since=' + encodeURIComponent(end);
59
+ const r = await pmGet('/api/sessions/transcript?id=' + encodeURIComponent(sid) + '&raw=1' + q);
60
+ if (!live()) return;
61
+ if (!r || !r.ok) { if (!term) { const pre = body.querySelector('.hv-term'); if (pre) pre.textContent = (r && r.error) || 'The terminal could not be read.'; } return; }
62
+ if (!term || r.reset) {
63
+ if (term) { try { term.dispose(); } catch { /* already gone */ } }
64
+ body.innerHTML = '<div class="hv-xt" role="log" aria-live="off" aria-label="Terminal, read only"></div>';
65
+ const host = body.firstChild;
66
+ const L = look(host);
67
+ term = new Terminal({ cols: r.cols || 80, rows: r.rows || 24, disableStdin: true, cursorBlink: false, scrollback: 5000, convertEol: false,
68
+ fontFamily: L.fontFamily, lineHeight: 1.25, theme: L.theme });
69
+ term.open(host);
70
+ if (r.data) term.write(r.data, () => term && term.scrollToBottom());
71
+ } else {
72
+ if (term.cols !== r.cols || term.rows !== r.rows) { try { term.resize(r.cols || 80, r.rows || 24); } catch { /* keep the old size */ } }
73
+ if (r.data) {
74
+ const b = term.buffer.active, atEnd = b.viewportY >= b.baseY;
75
+ term.write(r.data, () => { if (atEnd && term) term.scrollToBottom(); });
76
+ }
77
+ }
78
+ gen = r.gen; end = r.end;
19
79
  };
20
- tick();
80
+
81
+ (async () => {
82
+ const Terminal = await loadXterm();
83
+ if (!Terminal) plain = true;
84
+ const loop = async () => {
85
+ if (!live()) return;
86
+ try { if (plain) await plainTick(); else await xtTick(Terminal); }
87
+ catch { if (!plain) { plain = true; term = null; } }
88
+ if (live()) setTimeout(loop, 2000);
89
+ };
90
+ loop();
91
+ })();
21
92
  return body;
22
93
  }
@@ -748,6 +748,7 @@ async function startAudio(ctx, n, want, plan = null) {
748
748
  const shared = opened.find(([kind, s]) => kind === 'meeting' && s.screenTrack);
749
749
  if (shared && a.cap) {
750
750
  const track = shared[1].screenTrack;
751
+ a.screenTrack = track;
751
752
  a.screen = startScreen({ track, id: a.id, cap: a.cap, clock: () => Date.now() - a.started, post: (b) => pmPost('/api/notes/screen', b), surface: shared[1].screenSurface || null });
752
753
  // the PM stops sharing the picture only: the sound goes on, and the shots stop
753
754
  track.addEventListener('ended', () => { if (a.screen) a.screen.stop(); });
@@ -1982,6 +1983,14 @@ export async function listenNow(ctx, id) {
1982
1983
  } finally { starting = false; ctx.setState({}); }
1983
1984
  }
1984
1985
 
1986
+ /** What the recording tab draws (rec-tab.js): the shared picture while it is live (null: none, or the share was stopped), whether a
1987
+ * picture was shared at all, whether the screenshots are paused, and whether the meeting's sound is silent while the microphone is heard. */
1988
+ export function liveScreen() {
1989
+ const a = audio, t = a && a.state === 'on' ? a.screenTrack || null : null;
1990
+ return { track: t && t.readyState === 'live' ? t : null, shared: !!t, paused: !!(a && a.screen && a.screen.paused), silent: !!(banner && banner.silent) };
1991
+ }
1992
+ /** Pause or keep the screenshots of the shared picture; the sound goes on. False when nothing is shared. */
1993
+ export function pauseShots(on) { if (!audio || !audio.screen) return false; audio.screen.setPaused(!!on); return true; }
1985
1994
  /** The note that is listening now, or null. */
1986
1995
  export const listeningId = () => (audio && audio.id) || (speech && speech.mode === 'record' && (speech.state === 'on' || speech.state === 'checking') ? speech.id : null);
1987
1996
 
@@ -0,0 +1,22 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="pmos-nonce" content="" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
7
+ <title>Audience · PMOS</title>
8
+ <!-- The audience tab (batch 12 item 1, S3; canvas XrtA9Present): what the call sees while the PM presents from the recording tab. It shows
9
+ the stage only. The recording tab's presenter (pm/cozy-rec-present.js) says what to show over BroadcastChannel('pmos-present');
10
+ this page reads the material itself and draws it (pm/cozy-aud.js). It has no controls and writes nothing. -->
11
+ <link rel="preload" href="/vendor/nunito-var.woff2" as="font" type="font/woff2" crossorigin />
12
+ <link rel="stylesheet" href="/pm/cozy.css" />
13
+ <link rel="stylesheet" href="/pm/premium-vw-slides.css" />
14
+ <link rel="stylesheet" href="/pm/cozy-mtg-present.css" />
15
+ <link rel="stylesheet" href="/pm/cozy-aud.css" />
16
+ </head>
17
+ <body class="cz vzx-audw">
18
+ <main class="vzx-aud" id="aud" data-kind="" aria-live="polite"></main>
19
+ <div class="vzx-ft" id="audFt"><span></span><span></span></div>
20
+ <script type="module" src="/pm/cozy-aud.js"></script>
21
+ </body>
22
+ </html>
@@ -11,7 +11,9 @@
11
11
  sends the question to Home. -->
12
12
  <link rel="preload" href="/vendor/nunito-var.woff2" as="font" type="font/woff2" crossorigin />
13
13
  <link rel="stylesheet" href="/pm/cozy.css" />
14
+ <link rel="stylesheet" href="/pm/cozy-pick.css" />
14
15
  <link rel="stylesheet" href="/pm/cozy-board.css" />
16
+ <link rel="stylesheet" href="/pm/bd-pin-card.css" />
15
17
  <link rel="stylesheet" href="/pm/cozy-panel.css" />
16
18
  </head>
17
19
  <body class="cz bd-page">
@@ -12,6 +12,7 @@
12
12
  and GET /api/board-metrics-premium for the Delivery trends tiles, whose one press sets a target (POST /api/board-metric-targets/save). -->
13
13
  <link rel="preload" href="/vendor/nunito-var.woff2" as="font" type="font/woff2" crossorigin />
14
14
  <link rel="stylesheet" href="/pm/cozy.css" />
15
+ <link rel="stylesheet" href="/pm/cozy-pick.css" />
15
16
  <link rel="stylesheet" href="/pm/cozy-insights.css" />
16
17
  </head>
17
18
  <body class="cz">
@@ -22,7 +23,7 @@
22
23
  <main class="cz-panel ins stage" id="stage">
23
24
  <h1 class="vh">Insights</h1>
24
25
  <div class="ins-bar" id="insBar">
25
- <span class="ins-mw ins-pkw"><button type="button" class="cz-pick" id="prodPick" aria-haspopup="menu" aria-expanded="false" aria-controls="prodMenu" aria-label="Switch product"><span id="prodName">pmos</span><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M7 10l5 5 5-5"/></svg></button><div class="ins-menu" id="prodMenu" role="menu" aria-label="Products" hidden></div></span>
26
+ <span class="ins-mw ins-pkw" id="prodHost"></span>
26
27
  <span class="ins-ttl" aria-hidden="true">Insights</span>
27
28
  <div class="cz-tabs ins-tabs" role="tablist" aria-label="Insights">
28
29
  <button type="button" role="tab" class="cz-tab" id="tabGoals" data-tab="goals" aria-controls="pGoals" aria-selected="true">Goals <span class="n" id="nGoals"></span></button>
@@ -0,0 +1,30 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="pmos-nonce" content="" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
7
+ <title>PMOS · Recording</title>
8
+ <!-- The recording tab (batch 12 item 1): ?note=<id>[&ws=][&go=1]. It holds the recorder and never navigates away, so its links open
9
+ in the other PMOS tab (named pmos-main by rec-tab-core.js). pm/cozy-rec-tab.js draws it. -->
10
+ <base target="pmos-main" />
11
+ <link rel="preload" href="/vendor/nunito-var.woff2" as="font" type="font/woff2" crossorigin />
12
+ <link rel="stylesheet" href="/pm/cozy.css" />
13
+ <link rel="stylesheet" href="/pm/cozy-rec-tab.css" />
14
+ </head>
15
+ <body class="cz rt-page">
16
+ <main class="rt" id="rt" data-mode="idle">
17
+ <div class="rt-main">
18
+ <header class="rt-hd"><span class="rt-dot" aria-hidden="true"></span><b class="rt-clock" id="rtClock">0:00</b><h1 class="rt-title" id="rtTitle">Meeting</h1><span class="rt-past" id="rtPast" hidden></span></header>
19
+ <p class="rt-alert" id="rtAlert" role="alert" hidden></p>
20
+ <section class="rt-stage" id="rtStage" aria-label="The meeting"></section>
21
+ <div class="rt-line" id="rtLine" hidden></div>
22
+ <p class="rt-msg" id="rtMsg" role="status" hidden></p>
23
+ <nav class="rt-bar" id="rtBar" aria-label="Recording controls" hidden></nav>
24
+ </div>
25
+ <aside class="rt-side" id="rtSide" hidden></aside>
26
+ <div class="rt-ask" id="rtAsk" hidden></div>
27
+ </main>
28
+ <script type="module" src="/pm/cozy-rec-tab.js"></script>
29
+ </body>
30
+ </html>
@@ -18,6 +18,7 @@
18
18
  <link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" />
19
19
  <link rel="preload" href="/vendor/nunito-var.woff2" as="font" type="font/woff2" crossorigin />
20
20
  <link rel="stylesheet" href="/pm/cozy.css" />
21
+ <link rel="stylesheet" href="/pm/cozy-pick.css" />
21
22
  <link rel="stylesheet" href="/pm/cozy-home.css" />
22
23
  <link rel="stylesheet" href="/pm/cozy-today.css" />
23
24
  <link rel="stylesheet" href="/pm/cozy-panel.css" />