create-pmos 0.616.0 → 0.617.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.
@@ -20,7 +20,19 @@ After you update PMOS, press the reload arrow on the extension's card in `chrome
20
20
 
21
21
  ## The Meet panel
22
22
 
23
- Open a Meet call, for example `meet.google.com/abc-defg-hij`. The panel shows at the bottom right of the call. It shows the topic the room is on, the time left, what is being said, the notes from PMOS and a line to ask PMOS quietly. Only you see it. It finds the meeting on your PMOS calendar by the Meet link in the invite, then by the title of the tab, then by the meeting that is under way now. If none fits, the panel says so and lists today's meetings to pick from. **Fold** shrinks the panel to a pill, and the same button opens it again. **Open focus in PMOS** opens the full Meeting focus page in a new tab. When PMOS does not answer, the panel says "PMOS is not running at <address>" and links to the options.
23
+ Open a Meet call, for example `meet.google.com/abc-defg-hij`. The panel shows at the bottom right of the call. It is the PMOS meeting buddy, and only you see it. It finds the meeting on your PMOS calendar by the Meet link in the invite, then by the title of the tab, then by the meeting that is under way now. If none fits, the panel lists today's meetings to pick from.
24
+
25
+ While PMOS listens to the meeting, the panel shows:
26
+
27
+ - The topic the room is on and the minutes left, and one line on what is being said now.
28
+ - **Filed**: the decisions, actions and open questions PMOS heard. Each has **Undo**, which takes it out of the notes.
29
+ - **Context**: the initiative or the link behind a topic that came up, with a button that opens it.
30
+ - A time nudge, once, when 10 minutes or less are left and a topic is not covered yet.
31
+ - A line you can post in the call chat. **Copy** puts it on the clipboard and you paste it. PMOS never posts to the call or its chat.
32
+ - "Others not told yet", with a line that tells the call PMOS is taking notes, until you copy it.
33
+ - A line to ask PMOS quietly. The answer shows in the panel.
34
+
35
+ When PMOS is not listening, the panel has a play button. It opens the PMOS recording tab on this meeting, and Chrome asks which tab to share: pick the call and tick tab sound. **Fold** shrinks the panel to a pill, and the same button opens it again. When PMOS does not answer, the panel says "PMOS is not running at <address>" and links to the options.
24
36
 
25
37
  ## Add a page to a report design
26
38
 
@@ -1,6 +1,7 @@
1
1
  /* panel.js — the page the content script frames over a Meet call (panel.html).
2
2
  * It reads the PMOS address from chrome.storage.sync (pmosAddress, default http://localhost:7433) and asks whether anything answers there.
3
- * When PMOS answers, the page becomes one frame: ${address}/console.html?focus=now&pop=1&meet=…&mtitle=… (PMOS's compact meeting focus). When it does not,
3
+ * When PMOS answers, the page becomes one frame: ${address}/premium-buddy.html?meet=…&mtitle=… (the meeting buddy, initiative meeting-buddy; the
4
+ * console address it framed before was removed and opened Home). When it does not,
4
5
  * the page says where it looked and links to the options. Nothing else is fetched. The frame's { pmosFocus } message (fold or open, no data) is passed
5
6
  * up to the content script. */
6
7
  (function () {
@@ -28,7 +29,7 @@
28
29
  function answers(addr) {
29
30
  var ctl = typeof AbortController === 'function' ? new AbortController() : null;
30
31
  var t = ctl ? setTimeout(function () { ctl.abort(); }, CHECK_MS) : null;
31
- return fetch(addr + '/console.html', { mode: 'no-cors', cache: 'no-store', signal: ctl ? ctl.signal : undefined })
32
+ return fetch(addr + '/premium-buddy.html', { mode: 'no-cors', cache: 'no-store', signal: ctl ? ctl.signal : undefined })
32
33
  .then(function (r) { if (t) clearTimeout(t); return r; }, function (e) { if (t) clearTimeout(t); throw e; });
33
34
  }
34
35
  function showMissing(addr) {
@@ -42,11 +43,12 @@
42
43
  msg.appendChild(a);
43
44
  msg.appendChild(document.createTextNode('.'));
44
45
  }
46
+ /** The buddy page's address for this call. */
47
+ function buddySrc(addr) { return addr + '/premium-buddy.html?' + new URLSearchParams({ meet: meet, mtitle: title }).toString(); }
45
48
  function showFrame(addr) {
46
- var q = new URLSearchParams({ focus: 'now', pop: '1', meet: meet, mtitle: title });
47
49
  frame = document.createElement('iframe');
48
- frame.title = 'PMOS meeting helper';
49
- frame.src = addr + '/console.html?' + q.toString();
50
+ frame.title = 'PMOS meeting buddy';
51
+ frame.src = buddySrc(addr);
50
52
  frameOrigin = new URL(addr).origin;
51
53
  msg.remove();
52
54
  document.body.appendChild(frame);
@@ -2,7 +2,7 @@
2
2
  type: Guide
3
3
  title: "Notes: record a meeting, and present while it records"
4
4
  description: "Record a meeting on this machine, the notes caught and checked, presenting while it records, and the Chrome extension over Google Meet."
5
- timestamp: 2026-11-18
5
+ timestamp: 2026-11-19
6
6
  ---
7
7
 
8
8
  # Notes
@@ -15,6 +15,7 @@ Every button in the recording tab and in the note is an icon. Hold the pointer o
15
15
 
16
16
  - **A meeting on your calendar.** Open it from Your day or the calendar in Home, and press **Record** in its card in the Viewer. The note is linked to the event and keeps its context.
17
17
  - **No meeting on the calendar.** Press **+** at the top of Home's list, then **Recording**. PMOS starts an untitled note.
18
+ - **Join and record with one press.** A meeting on Today's agenda with a Meet, Zoom or Teams link has a play icon. Press it: the browser opens the call, and PMOS opens the recording tab with the call's app already chosen. The browser still asks you to pick the tab to share, with one press. If the browser blocks the second tab, PMOS listens in the page instead and says so.
18
19
 
19
20
  Either way PMOS opens the recording tab, or brings it forward when it is already open, and starts to listen. The tab's bar has **Highlight the last 30 seconds**, **Pause** and **Stop** while it records, and **Resume** and **Stop** while it is paused. With a shared screen it also has the eye icon that pauses the screenshots.
20
21
 
@@ -471,7 +472,7 @@ The calendar is in Home: press the calendar icon in Your day's header. A meeting
471
472
 
472
473
  #### Add the extension
473
474
 
474
- The PMOS Chrome extension shows a small panel over a Google Meet call, so you do not need to switch to the PMOS tab. The panel is a compact meeting focus. It has a head with the topic the room is on (or "Starts in" before the start) and the time left, the **What's being said** line, the conversation with PMOS, and **Ask PMOS quietly**. Only you see it. It is not part of the screen you share. The extension reads the address and the title of the Meet tab only. It does not read the call's audio or captions, and it talks only to the PMOS on your computer.
475
+ The PMOS Chrome extension shows a small panel over a Google Meet call, so you do not need to switch to the PMOS tab. The panel is the meeting buddy, described below. Only you see it. It is not part of the screen you share. The extension reads the address and the title of the Meet tab only. It does not read the call's audio or captions, and it talks only to the PMOS on your computer.
475
476
 
476
477
  To add the extension:
477
478
 
@@ -481,4 +482,17 @@ To add the extension:
481
482
 
482
483
  PMOS must run while you use the panel. The extension looks for PMOS at `http://localhost:7433`. If `pmos` started on another port, open the extension's **Options**, type that address and press **Save**, then reload the Meet tab.
483
484
 
484
- To use it, open a Meet call. The panel shows at the bottom right of the call, and not on the Meet home page. PMOS finds the meeting on your calendar by the Meet link in the invite. If no invite has that link, it uses the title of the tab, and then the meeting that is under way now (from 10 minutes before the start to 10 minutes after the end). If none fits, the panel says "No meeting right now" and lists today's meetings. Press the one this call is. **Fold** shrinks the panel to a pill that shows the head only, and the same button opens it again. **Open focus in PMOS** opens the full Meeting focus page in a new tab, with the material, the topics and the captured items. If PMOS does not answer, the panel says "PMOS is not running at" and the address, with a link to the Options.
485
+ To use it, open a Meet call. The panel shows at the bottom right of the call, and not on the Meet home page. PMOS finds the meeting on your calendar by the Meet link in the invite. If no invite has that link, it uses the title of the tab, and then the meeting that is under way now (from 10 minutes before the start to 10 minutes after the end). If none fits, the panel says "No meeting right now" and lists today's meetings. Press the one this call is. **Fold** shrinks the panel to a pill that shows the head only, and the same button opens it again. If PMOS does not answer, the panel says "PMOS is not running at" and the address, with a link to the Options.
486
+
487
+ #### The meeting buddy
488
+
489
+ The panel over Meet is PMOS's meeting buddy. Only you see it. The same card shows in the recording tab's Now panel as **PMOS heard**.
490
+
491
+ - **The head** says if PMOS listens: **Not listening**, **Paused**, the topic the room is on (**Topic 2 of 4**), or **Listening · others not told yet**. When PMOS does not listen yet, press the play icon in the panel to start the recording tab.
492
+ - **Tell the room.** Until you tell the others that PMOS listens, the buddy shows one line you can say or paste in the call chat, with a copy icon. Copy it, or press ✗ to hide it for this meeting.
493
+ - **Time nudge.** With 10 minutes or less left, the buddy says which topics are not covered yet, once. Press ✗ to hide it.
494
+ - **Filed.** The last decisions, next steps and questions PMOS wrote into your notes. Press the undo icon to take one out of the notes. **Undo** in the message puts it back.
495
+ - **Context.** Up to two links PMOS found for the topic now, for example the initiative or a document. They open in a new tab.
496
+ - **A draft for the call chat.** Sometimes PMOS drafts one short message for the call chat, for example a link the room asked for. PMOS never posts it: press the copy icon and paste it yourself, or press ✗.
497
+ - **Ask PMOS.** Type a question in the box at the bottom. The answer shows in the panel only.
498
+
@@ -13,6 +13,7 @@
13
13
  * outLine(parsed, at) · moveLine(...) → the lines the state file takes
14
14
  * shouldRun(now, state, note, opts) → { run, reason } the rules of when the companion may run
15
15
  * pickNow(events, { now, meet, title }) → { ok, event, date, by } | { ok:false, status:404, error, choices } which meeting a Google Meet call is (the Chrome extension, c3-meet-extension)
16
+ * callLinkOf(event) → { url, app: 'meet'|'zoom'|'teams' } | null the address of the meeting's call (meeting-buddy: the play icon, the buddy)
16
17
  *
17
18
  * Nothing here reads a file or starts a process; lib/routes-meeting-focus.js does both.
18
19
  *
@@ -36,7 +37,7 @@ const TAIL_MAX = 40; // and at most this many lines
36
37
  const TOPICS_MAX = 30; // every invite line is kept; lib/agenda-topics.js shows them under 3 to 5 topics
37
38
  const NOTES_MAX = 5;
38
39
  const CHIPS_MAX = 4;
39
- const RAISE_KINDS = Object.freeze(['check', 'follow-up', 'no-owner', 'show']);
40
+ const RAISE_KINDS = Object.freeze(['check', 'follow-up', 'no-owner', 'show', 'chat']); // chat: a line the PM may post in the call chat (meeting-buddy); a draft only
40
41
  const RAISE_MAX = 2; // the Now panel shows at most this many prompts; a Show it? offer counts as one
41
42
  const INI_ID = /^[A-Za-z0-9][A-Za-z0-9._-]{0,79}$/;
42
43
  const FROM = Object.freeze(['talk', 'screen', 'prep', 'last']); // where an answer came from: the talk, the shared screen, the prep, last time
@@ -100,15 +101,22 @@ function capturedFrom(note) {
100
101
  const sec = n.summary && n.summary.sections && typeof n.summary.sections === 'object' ? n.summary.sections : {};
101
102
  const seen = { decision: new Set(), action: new Set(), question: new Set() };
102
103
  const out = { decisions: [], actions: [], questions: [] };
103
- const put = (kind, key, item) => { const k = norm(item.text); if (!k || seen[kind].has(k)) return; seen[kind].add(k); out[key].push(item); };
104
+ // a bullet carries its id (meeting-buddy: Undo drops it through POST /api/notes/bullet), also when the summary listed the same text first
105
+ const byText = { decision: new Map(), action: new Map(), question: new Map() };
106
+ const put = (kind, key, item) => {
107
+ const k = norm(item.text); if (!k) return;
108
+ if (seen[kind].has(k)) { const had = byText[kind].get(k); if (had && item.bid && !had.bid) had.bid = item.bid; return; }
109
+ seen[kind].add(k); byText[kind].set(k, item); out[key].push(item);
110
+ };
111
+ const bidOf = (b) => (typeof b.id === 'string' && b.id ? { bid: b.id } : {});
104
112
  for (const x of Array.isArray(sec.decisions) ? sec.decisions : []) put('decision', 'decisions', { text: str(x && x.text, 300) });
105
113
  for (const x of Array.isArray(sec.actions) ? sec.actions : []) put('action', 'actions', { text: str(x && x.text, 300), owner: str(x && x.owner, 60) || null, due: str(x && x.due, 40) || null });
106
114
  for (const x of Array.isArray(sec.questions) ? sec.questions : []) put('question', 'questions', { text: str(x && x.text, 300) });
107
115
  for (const b of Array.isArray(n.bullets) ? n.bullets : []) {
108
116
  if (!b || b.dropped || b.open || !b.text) continue;
109
- if (b.cat === 'decision') put('decision', 'decisions', { text: str(b.text, 300) });
110
- else if (b.cat === 'action') put('action', 'actions', { text: str(b.text, 300), owner: str(b.owner, 60) || null, due: str(b.due, 40) || null });
111
- else if (b.cat === 'question') put('question', 'questions', { text: str(b.text, 300) });
117
+ if (b.cat === 'decision') put('decision', 'decisions', { text: str(b.text, 300), ...bidOf(b) });
118
+ else if (b.cat === 'action') put('action', 'actions', { text: str(b.text, 300), owner: str(b.owner, 60) || null, due: str(b.due, 40) || null, ...bidOf(b) });
119
+ else if (b.cat === 'question') put('question', 'questions', { text: str(b.text, 300), ...bidOf(b) });
112
120
  }
113
121
  return out;
114
122
  }
@@ -190,6 +198,7 @@ function companionPrompt(input) {
190
198
  } else {
191
199
  L.push('Say what is being discussed, which topic the room is on, and add a note only when it helps the PM right now: an answer to a question the room asked, a fact to check, a decision forming, a time warning, a topic that came up, context behind a name that was said, or a follow-up. Stay quiet when nothing helps: an empty "notes" list is a good answer.');
192
200
  L.push('In "raise", give at most ' + RAISE_MAX + ' things the PM should raise in the room now, each one short line: "check" when the screen and the talk differ (a date, a number, a name), "follow-up" when an action from last time is still open and nobody raised it, "no-owner" when the room agreed something and nobody owns it. An empty "raise" list is a good answer.');
201
+ L.push('Also in "raise", at most one "chat": a line the PM may want to post in the call chat in their own voice, only when it helps the room now (a commitment the PM just made, a link or a number the room asked for). Write it as the PM would type it. The PM copies it and posts it; you never post anything. An empty list is a good answer.');
193
202
  L.push('Also in "raise", at most one "show": when the room names an idea that nobody can judge from words alone (a screen, a flow, a layout, a page, how something looks or moves), PMOS can make 3 quick specimens of it while the meeting goes on. Then "text" is one sentence of what to show, "title" names the idea in a few words, and "initiative" is the id of the initiative it belongs to when the brief or a reference above names it. Only offer it for an idea that is new in the talk and not offered before. Never for a decision, a number or a date.');
194
203
  }
195
204
  L.push('');
@@ -283,8 +292,8 @@ function parseCompanion(text) {
283
292
  const topic = { current: str(t.current, 120) || null, add: (Array.isArray(t.add) ? t.add : []).map((x) => str(x, 120)).filter(Boolean).slice(0, 3) };
284
293
  if (str(t.under, 80)) topic.under = str(t.under, 80);
285
294
  const notes = (Array.isArray(o.notes) ? o.notes : []).map(noteOf).filter(Boolean).slice(0, NOTES_MAX);
286
- let shows = 0; // one Show it? offer an answer, at most
287
- const raise = (Array.isArray(o.raise) ? o.raise : []).map(raiseOf).filter(Boolean).filter((r) => r.kind !== 'show' || shows++ === 0).slice(0, RAISE_MAX);
295
+ let shows = 0, chats = 0; // one Show it? offer and one chat draft an answer, at most
296
+ const raise = (Array.isArray(o.raise) ? o.raise : []).map(raiseOf).filter(Boolean).filter((r) => (r.kind !== 'show' || shows++ === 0) && (r.kind !== 'chat' || chats++ === 0)).slice(0, RAISE_MAX);
288
297
  if (!gist && !chips.length && !topic.current && !topic.add.length && !notes.length && !raise.length) return null;
289
298
  return { gist, chips, topic, notes, raise };
290
299
  }
@@ -433,4 +442,27 @@ function pickNow(events, { now = Date.now(), meet = '', title = '' } = {}) {
433
442
  return { ok: false, status: 404, error: 'No meeting on the calendar fits this call.', choices };
434
443
  }
435
444
 
436
- module.exports = { CATS, REF_TYPES, RAISE_KINDS, RAISE_MAX, FROM, MIN_GAP_MS, TAIL_MINUTES, TAIL_MAX, topicsFrom, tailOf, capturedFrom, screenOf, companionPrompt, parseCompanion, showIntent, showLine, foldState, outLine, moveLine, raiseLine, shouldRun, pickNow, meetTitle, norm, str, off };
445
+ /* ── the call's address (meeting-buddy) ───────────────────────────────────────────────────────────────────────────── */
446
+
447
+ const CALL_APPS = [
448
+ ['meet', /^https:\/\/meet\.google\.com\/[a-z]{3}-[a-z]{4}-[a-z]{3}\b/i],
449
+ ['zoom', /^https:\/\/(?:[a-z0-9-]+\.)?zoom\.us\/(?:j|my|w|s)\//i],
450
+ ['teams', /^https:\/\/teams\.(?:microsoft|live)\.com\/(?:l\/meetup-join|meet)\//i],
451
+ ];
452
+ /** The address of the meeting's call, from its links, its hangout link or a link in its location. The case of the address is kept.
453
+ * → { url, app: 'meet'|'zoom'|'teams' } | null. Only https addresses of those three count. Pure. */
454
+ function callLinkOf(e) {
455
+ if (!e || typeof e !== 'object') return null;
456
+ const texts = [].concat((Array.isArray(e.links) ? e.links : []).map((l) => (l && typeof l === 'object' ? l.url : l)), e.hangoutLink, e.hangout_link, e.meet_url, e.join, e.conference, e.location)
457
+ .filter((x) => typeof x === 'string');
458
+ for (const t of texts) {
459
+ for (const raw of t.match(/https:\/\/[^\s<>"')]+/gi) || []) {
460
+ const url = raw.replace(/[.,;]+$/, '');
461
+ const hit = CALL_APPS.find(([, re]) => re.test(url));
462
+ if (hit && url.length <= 400) return { url, app: hit[0] };
463
+ }
464
+ }
465
+ return null;
466
+ }
467
+
468
+ module.exports = { CATS, REF_TYPES, RAISE_KINDS, RAISE_MAX, FROM, MIN_GAP_MS, TAIL_MINUTES, TAIL_MAX, topicsFrom, tailOf, capturedFrom, screenOf, companionPrompt, parseCompanion, showIntent, showLine, foldState, outLine, moveLine, raiseLine, shouldRun, pickNow, meetTitle, callLinkOf, norm, str, off };
@@ -5,7 +5,8 @@
5
5
  *
6
6
  * READ ONLY, and built only from what PMOS already holds. Nothing is invented.
7
7
  * today one row per meeting of the local day, in time order, from every calendar event the workspace holds (calendar-events.js readAll,
8
- * the same source as /api/calendar-views): { id, title, start, end, minutes, people, initiative, prepared, before, state }.
8
+ * the same source as /api/calendar-views): { id, title, start, end, minutes, people, initiative, join?, app?, prepared, before, state }.
9
+ * join, app: the call's address and its app (meet, zoom or teams) when the meeting has one (meeting-buddy, lib/meeting-focus.js callLinkOf).
9
10
  * prepared: [{ kind: 'prep'|'pm-note'|'note'|'last-note', text, id? }] what PMOS holds for the meeting (the agent's prep note,
10
11
  * the PM's notes on the event, the note linked to it, the last note of an earlier occurrence). before: [{ id, title, due,
11
12
  * done }] the PM's own open items that name the meeting (item.meeting_id or item.event_id equals the event id, or the title
@@ -54,6 +55,7 @@ function deferred(item, now, todayIso) {
54
55
  return Number.isFinite(t) && t > now.getTime();
55
56
  }
56
57
 
58
+ const callOf = (e) => { const c = require('./meeting-focus.js').callLinkOf(e); return c ? { join: c.url, app: c.app } : {}; };
57
59
  /** The meetings of the local day. `notes` is an optional { findByEvent(ev), lastBefore(ev) } so the route can read the notes store. */
58
60
  function todayAgenda(events, items, now, notes = {}) {
59
61
  const todayIso = localDate(now);
@@ -76,7 +78,9 @@ function todayAgenda(events, items, now, notes = {}) {
76
78
  return { id: e.id, title: e.title, start: s.toISOString(), end: new Date(endMs).toISOString(), startLocal: hhmm(s), minutes: Math.max(0, Math.round((endMs - s.getTime()) / 60000)),
77
79
  people: Array.isArray(e.attendees) ? e.attendees.slice(0, 12) : [],
78
80
  // the link the PM set on the meeting (lib/calendar-links.js, every occurrence of it) wins; Home's clean-up writes one (batch 13 item 3)
79
- initiative: (notes.linkOf && notes.linkOf(e)) || e.initiative || null, ...(e.series ? { series: String(e.series).slice(0, 300) } : {}), prepared, before, _s: s.getTime(), _e: endMs };
81
+ initiative: (notes.linkOf && notes.linkOf(e)) || e.initiative || null, ...(e.series ? { series: String(e.series).slice(0, 300) } : {}),
82
+ // the call's address (meeting-buddy): the play icon on Today's agenda opens it and starts the recording; Home's card shows Join
83
+ ...callOf(e), prepared, before, _s: s.getTime(), _e: endMs };
80
84
  });
81
85
  let nextDone = false;
82
86
  for (const r of rows) {
@@ -3,6 +3,8 @@
3
3
  *
4
4
  * GET /api/meeting-focus?event=<id>&date=YYYY-MM-DD[&ws=]
5
5
  * → { ok, now_ms, event, brief, material, note, topics, current, runs, tail, captured, gist, chips, notes, raise, asks, companion }
6
+ * event.call is the meeting's call address ({ url, app } or null, lib/meeting-focus.js callLinkOf; meeting-buddy). Each caught item that
7
+ * came from a bullet carries its id (bid), so the buddy's Undo drops it with POST /api/notes/bullet.
6
8
  * The meeting (the calendar read for that day), its brief (lib/calendar-layers.js briefOf), the note linked to it, the last
7
9
  * minutes of that note's transcript with who said them, the decisions, actions and questions so far, and the companion's state.
8
10
  * An unknown meeting is a 404. The read also starts the companion when lib/meeting-focus.js shouldRun says it may: the note
@@ -274,7 +276,7 @@ async function read(q, ctx) {
274
276
  ok: true, now_ms: nowMs, date: day,
275
277
  talk,
276
278
  event: { id: ev.id, title: ev.title, at: ev.at, end: ev.end, attendees: [].concat(ev.attendees || ev.people || []).map((p) => (p && typeof p === 'object' ? p.name || p.id : p)).filter(Boolean).map(String),
277
- initiative: ev.initiative || null, series: ev.series || null, purpose: ev.purpose || (brief && brief.purpose) || null, links },
279
+ initiative: ev.initiative || null, series: ev.series || null, purpose: ev.purpose || (brief && brief.purpose) || null, links, call: F.callLinkOf(ev) },
278
280
  brief: brief || null,
279
281
  material,
280
282
  note: note ? { id: note.id, title: note.title || ev.title, state: note.state, recorded_from: note.recorded_from || null, lines: (note.transcript || []).length, sessions } : null,
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.616.0",
3
+ "version": "0.617.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.616.0",
9
+ "version": "0.617.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@anthropic-ai/sdk": "^1.3.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.616.0",
3
+ "version": "0.617.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",
@@ -0,0 +1,166 @@
1
+ /* pm/buddy-core.js — the meeting buddy, the pure half (initiative meeting-buddy; Exploring 2, page "Meeting buddy and one-press start",
2
+ * boards 1 · Where the buddy lives, 2 · What the buddy does, 4 · Consent).
3
+ *
4
+ * The buddy is PMOS in the meeting, seen only by the PM. It is quiet by default: it files what it hears (each with Undo), pulls up
5
+ * context when a topic comes up, answers a question the PM types, nudges once on time, and drafts a line for the call chat. It never
6
+ * speaks or posts to the room: every line for the room is a draft the PM copies and posts.
7
+ *
8
+ * buddyModel(F, o) → Model F = GET /api/meeting-focus's answer. o: { now?, toldAt?, nudgeOff? (Set of nudge keys), consentOff? }
9
+ * filedHtml(m) · nudgeHtml(m) · contextHtml(m) · draftsHtml(m) · consentHtml(m) · answerHtml(m) → string the parts, each '' at zero
10
+ * buddyHtml(m) → string the Meet panel's body: the topic, Now, the nudge, the consent line, Filed, Context, drafts, the answer
11
+ * headOf(m) → { text, tone } the panel's header line: "Listening · Topic 2 of 4", "Paused", "Not listening"; tone ok | warn | off
12
+ * CONSENT_LINE the line the PM may paste in the call chat to tell the room PMOS listens
13
+ * buddyKey(F) · marksOf(storage, F) · markIn(storage, F, patch) the PM's own marks on a meeting, kept in this browser
14
+ * heardHtml(m) → string the recording tab's card: the consent line, the nudge, Filed and the chat drafts
15
+ *
16
+ * Every press carries data-mb="…": undo (data-bid), redo (data-bid), nudge-x (data-key), copy (data-id: a chat draft, or "consent"),
17
+ * chat-x (data-id), consent-x. The page that mounts the buddy (cozy-buddy.js, cozy-rec-now.js) does the writing.
18
+ * The words name PMOS only. Text from records goes through esc(). Node imports this file (meeting-buddy.test.js). */
19
+
20
+ export const CONSENT_LINE = 'I am taking notes on this call with PMOS, an assistant that listens. Tell me if you would rather it did not.';
21
+ export const NUDGE_MIN = 10; // the nudge shows when this many minutes or fewer are left
22
+ const FILED_MAX = 4, CONTEXT_MAX = 2;
23
+
24
+ const esc = (v) => String(v == null ? '' : v).replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' })[c]);
25
+ 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; };
26
+ const pad = (n) => String(n).padStart(2, '0');
27
+ const hm = (ms) => { const d = new Date(ms); return pad(d.getHours()) + ':' + pad(d.getMinutes()); };
28
+ const P = {
29
+ undo: 'M9 7L4 12l5 5M4 12h10a6 6 0 0 1 0 12', x: 'M6 6l12 12M18 6L6 18', open: 'M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5',
30
+ copy: 'M8 8h12v12H8zM16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2', spark: 'M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z',
31
+ };
32
+ const svg = (d, n = 16) => `<svg aria-hidden="true" width="${n}" height="${n}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="${d}"/></svg>`;
33
+ const ib = (act, label, d, attrs = '', cls = '') => `<button type="button" class="mb-ib${cls ? ' ' + cls : ''}" data-mb="${act}"${attrs} aria-label="${esc(label)}" title="${esc(label)}">${svg(d)}</button>`;
34
+ const KIND_WORD = { decision: 'decision', action: 'action', question: 'open question' };
35
+ const FROM_WORDS = { talk: 'the talk', screen: 'the screen', prep: 'the prep', last: 'last time' };
36
+
37
+ /** Where this browser keeps the PM's own marks on one meeting (the consent line copied, the nudges dismissed): one key per meeting and day. */
38
+ export const buddyKey = (F) => 'pmos.buddy.' + (F && F.event ? F.event.id + '|' + (F.date || String(F.event.at || '').slice(0, 10)) : '');
39
+ /** The PM's marks read from a Storage, wrapped: a blocked store gives none. → { toldAt, consentOff, nudgeOff: Set } */
40
+ export function marksOf(storage, F) {
41
+ let o = null; try { o = JSON.parse((storage && storage.getItem(buddyKey(F))) || 'null'); } catch { o = null; }
42
+ o = o && typeof o === 'object' ? o : {};
43
+ return { toldAt: Number.isFinite(o.toldAt) ? o.toldAt : null, consentOff: !!o.consentOff, nudgeOff: new Set(Array.isArray(o.nudgeOff) ? o.nudgeOff : []) };
44
+ }
45
+ /** Add to the marks; false when the store is blocked (the mark then lasts until the page reloads). */
46
+ export function markIn(storage, F, patch) {
47
+ try {
48
+ const k = buddyKey(F); const was = JSON.parse(storage.getItem(k) || 'null') || {};
49
+ const next = { ...was, ...patch };
50
+ if (patch.nudge) { next.nudgeOff = [...new Set([...(was.nudgeOff || []), patch.nudge])].slice(-20); delete next.nudge; }
51
+ storage.setItem(k, JSON.stringify(next)); return true;
52
+ } catch { return false; }
53
+ }
54
+
55
+ /** Where a Context row opens: an initiative in Home, or an https link. null when it names nothing PMOS can open. */
56
+ export function hrefOf(x) {
57
+ if (!x) return null;
58
+ if (x.ref && x.ref.type === 'initiative' && x.ref.id) return '/premium.html?ini=' + encodeURIComponent(x.ref.id);
59
+ if (typeof x.url === 'string' && /^https:\/\//i.test(x.url)) return x.url;
60
+ return null;
61
+ }
62
+
63
+ /** The nudge: once per topic, when NUDGE_MIN minutes or fewer are left and a topic the room has not reached is still to cover. */
64
+ export function nudgeOf(agenda, { off } = {}) {
65
+ const A = agenda || null;
66
+ if (!A || !Array.isArray(A.topics) || A.left == null || !(A.left > 0) || A.left > NUDGE_MIN) return null;
67
+ const open = A.topics.filter((t) => t && !t.now && t.mark === 'notyet');
68
+ if (!open.length) return null;
69
+ const key = 'nudge:' + String(open[0].title || '').toLowerCase().replace(/\s+/g, ' ').trim();
70
+ if (off && typeof off.has === 'function' && off.has(key)) return null;
71
+ const what = clip(open[0].title, 60) + (open.length > 1 ? ' and ' + (open.length - 1) + ' more are' : ' is');
72
+ return { key, text: A.left + ' min left. ' + what + ' not covered yet.' };
73
+ }
74
+
75
+ /** The buddy's whole state, from the meeting focus read. Nothing is invented: a part with nothing behind it is empty. */
76
+ export function buddyModel(F, o = {}) {
77
+ const f = F && F.ok ? F : {};
78
+ const note = f.note || null;
79
+ const state = note ? note.state : null;
80
+ const listening = state === 'recording', paused = state === 'paused';
81
+ const A = f.agenda && Array.isArray(f.agenda.topics) && f.agenda.topics.length ? f.agenda : null;
82
+ const at = A ? A.topics.findIndex((t) => t.now) : -1;
83
+ const topic = at >= 0 ? { title: clip(A.topics[at].title, 80), n: at + 1, of: A.topics.length, left: A.left != null ? A.left : null } : null;
84
+ const cap = f.captured || {};
85
+ const filed = [];
86
+ for (const [kind, key] of [['decision', 'decisions'], ['action', 'actions'], ['question', 'questions']]) {
87
+ for (const x of Array.isArray(cap[key]) ? cap[key] : []) if (x && x.bid && x.text) filed.push({ kind, label: 'Filed · ' + KIND_WORD[kind], text: clip(x.text, 200), bid: String(x.bid) });
88
+ }
89
+ // newest last: a bullet id is b-<minute>-<k>, so the ids sort in meeting time
90
+ filed.sort((a, b) => a.bid.localeCompare(b.bid, 'en', { numeric: true }));
91
+ const context = [];
92
+ const notes = Array.isArray(f.notes) ? f.notes : [];
93
+ for (const n of notes.slice().reverse()) {
94
+ if (context.length >= CONTEXT_MAX || !n || n.cat !== 'Context' || n.ask) continue;
95
+ const act = (n.acts || []).find((a) => hrefOf(a));
96
+ context.push({ label: 'Context', text: clip(n.body, 160), href: act ? hrefOf(act) : null });
97
+ }
98
+ for (const c of Array.isArray(f.chips) ? f.chips : []) {
99
+ if (context.length >= CONTEXT_MAX) break;
100
+ const href = hrefOf(c); if (!href) continue;
101
+ context.push({ label: 'Context', text: clip(c.label + (c.sub ? ' · ' + c.sub : ''), 160), href });
102
+ }
103
+ const asks = Array.isArray(f.asks) ? f.asks : [];
104
+ const last = asks.length ? asks[asks.length - 1] : null;
105
+ let answer = null;
106
+ if (last) {
107
+ const a = notes.filter((x) => x && x.ask === last.id).pop() || null;
108
+ const from = a && Array.isArray(a.from) ? a.from.map((k) => FROM_WORDS[k]).filter(Boolean) : [];
109
+ answer = { id: last.id, question: clip(last.question, 300), state: a ? 'answered' : last.state === 'failed' ? 'failed' : 'working',
110
+ body: a ? clip(a.body, 700) : last.state === 'failed' ? (last.error || 'PMOS could not answer. Ask again.') : '', from: from.length ? 'From ' + from.join(' and ') : '' };
111
+ }
112
+ const drafts = (Array.isArray(f.raise) ? f.raise : []).filter((r) => r && r.kind === 'chat' && r.text).map((r) => ({ id: String(r.id), text: clip(r.text, 200) }));
113
+ const toldAt = Number.isFinite(o.toldAt) ? o.toldAt : null;
114
+ return {
115
+ eventId: f.event ? f.event.id : '', noteId: note ? note.id : '', title: f.event ? clip(f.event.title, 120) : '', call: (f.event && f.event.call) || null,
116
+ listening, paused, topic, gist: typeof f.gist === 'string' ? clip(f.gist, 400) : '',
117
+ nudge: listening ? nudgeOf(A, { off: o.nudgeOff }) : null,
118
+ filed: filed.slice(-FILED_MAX), filedMore: Math.max(0, filed.length - FILED_MAX), context, answer, drafts,
119
+ // the consent line shows while PMOS listens, until the PM copies it (or puts it away)
120
+ consent: { show: (listening || paused) && toldAt == null && !o.consentOff, toldAt },
121
+ };
122
+ }
123
+
124
+ /** The panel's header line. */
125
+ export function headOf(m) {
126
+ if (m.paused) return { text: 'Paused', tone: 'warn' };
127
+ if (!m.listening) return { text: 'Not listening', tone: 'off' };
128
+ const sub = m.consent.show ? 'others not told yet' : m.topic ? 'Topic ' + m.topic.n + ' of ' + m.topic.of : m.consent.toldAt != null ? 'others told ' + hm(m.consent.toldAt) : '';
129
+ return { text: 'Listening' + (sub ? ' · ' + sub : ''), tone: m.consent.show ? 'warn' : 'ok' };
130
+ }
131
+
132
+ const row = (k, body, acts = '', cls = '') => `<div class="mb-r${cls ? ' ' + cls : ''}"><span class="t">${k ? `<small>${esc(k)}</small>` : ''}${body}</span>${acts}</div>`;
133
+
134
+ export const topicHtml = (m) => (m.topic ? `<div class="mb-r mb-top"><b class="t">${esc(m.topic.title)}</b>${m.topic.left != null ? `<span class="mb-sm">${esc(m.topic.left + ' min left')}</span>` : ''}</div>` : '');
135
+ export const nowHtml = (m) => (m.gist ? `<div class="mb-r"><span class="t"><small>Now</small>${esc(m.gist)}</span><span class="mb-spark">${svg(P.spark, 14)}</span></div>` : '');
136
+ export const nudgeHtml = (m) => (m.nudge ? `<div class="mb-r mb-nudge" role="status"><i class="mb-dot warn" aria-hidden="true"></i><span class="t">${esc(m.nudge.text)}</span>${ib('nudge-x', 'Dismiss', P.x, ` data-key="${esc(m.nudge.key)}"`)}</div>` : '');
137
+ export function filedHtml(m) {
138
+ if (!m.filed.length) return '';
139
+ return m.filed.map((x) => row(x.label, esc(x.text), ib('undo', 'Undo: take it out of the notes', P.undo, ` data-bid="${esc(x.bid)}"`))).join('')
140
+ + (m.filedMore ? `<div class="mb-r mb-more"><span class="mb-sm">${esc(m.filedMore + ' more filed in the notes')}</span></div>` : '');
141
+ }
142
+ export function contextHtml(m) {
143
+ return m.context.map((c) => row(c.label, esc(c.text), c.href ? `<a class="mb-ib" href="${esc(c.href)}" target="_blank" rel="noopener noreferrer" aria-label="Open it" title="Open it">${svg(P.open)}</a>` : '')).join('');
144
+ }
145
+ export function draftsHtml(m) {
146
+ return m.drafts.map((d) => `<div class="mb-r mb-draft" data-draft="${esc(d.id)}"><span class="t"><small>Draft for the call chat</small>${esc(d.text)}</span>`
147
+ + ib('copy', 'Copy the line, then paste it in the call chat', P.copy, ` data-id="${esc(d.id)}"`, 'go') + ib('chat-x', 'Not now', P.x, ` data-id="${esc(d.id)}"`) + '</div>').join('');
148
+ }
149
+ export function consentHtml(m) {
150
+ if (!m.consent.show) return '';
151
+ return `<div class="mb-r mb-consent"><span class="t"><small>PMOS proposes</small>Tell the call you are taking notes with PMOS?<q class="mb-line">${esc(CONSENT_LINE)}</q></span>`
152
+ + `<span class="mb-acts">${ib('copy', 'Copy the line, then paste it in the call chat', P.copy, ' data-id="consent"', 'go')}${ib('consent-x', 'Not now', P.x)}</span></div>`;
153
+ }
154
+ export function answerHtml(m) {
155
+ const a = m.answer; if (!a) return '';
156
+ return row('You asked', esc(a.question)) + (a.state === 'working'
157
+ ? row('PMOS', '<span class="mb-sm" role="status">PMOS is answering…</span>')
158
+ : row('PMOS', esc(a.body) + (a.from ? `<span class="mb-src">${esc(a.from)}</span>` : ''), '', a.state === 'failed' ? 'bad' : ''));
159
+ }
160
+ /** The Meet panel's body, in the order of board 1. */
161
+ export const buddyHtml = (m) => topicHtml(m) + nowHtml(m) + nudgeHtml(m) + consentHtml(m) + filedHtml(m) + contextHtml(m) + draftsHtml(m) + answerHtml(m);
162
+ /** The recording tab's card (its Now panel already shows the topic, the gist and the answer). */
163
+ export function heardHtml(m) {
164
+ const h = consentHtml(m) + nudgeHtml(m) + filedHtml(m) + draftsHtml(m);
165
+ return h ? `<div class="mb-card">${h}</div>` : '';
166
+ }
@@ -0,0 +1,66 @@
1
+ /* pm/buddy-press.js — the meeting buddy's presses (initiative meeting-buddy), shared by the Meet panel (cozy-buddy.js) and the recording
2
+ * tab's Now panel (cozy-rec-now.js). The rows are pm/buddy-core.js's; each press carries data-mb="…".
3
+ *
4
+ * press(btn, F, { pmPost, storage, mem }) → Promise<{ msg, undo?: bid, read: boolean } | null> null: not a buddy press
5
+ * undo / redo POST /api/notes/bullet { id, bullet, drop }: the filed item out of the notes, or back in
6
+ * copy the line on the clipboard. A chat draft is then marked raised (POST /api/meeting-focus/raise); the consent line is
7
+ * marked copied in this browser. Nothing is posted to the call or its chat: the PM pastes the line himself.
8
+ * chat-x the draft put away (POST /api/meeting-focus/raise, skip)
9
+ * nudge-x · consent-x kept in this browser (buddy-core.js markIn); mem keeps them when the store is blocked
10
+ */
11
+ import { CONSENT_LINE, markIn } from './buddy-core.js';
12
+
13
+ export async function copyText(text) {
14
+ try { await navigator.clipboard.writeText(text); return true; } catch { /* the frame may not allow it */ }
15
+ try {
16
+ const t = document.createElement('textarea'); t.value = text; t.setAttribute('readonly', ''); t.className = 'mb-clip';
17
+ document.body.appendChild(t); t.select(); const ok = document.execCommand('copy'); t.remove(); return ok;
18
+ } catch { return false; }
19
+ }
20
+
21
+ /** The marks this view holds in memory, for a blocked store. */
22
+ export const newMem = () => ({ toldAt: null, consentOff: false, nudgeOff: new Set() });
23
+ /** The marks of the store and of memory together. */
24
+ export function mergeMarks(fromStore, mem) {
25
+ return { toldAt: fromStore.toldAt != null ? fromStore.toldAt : mem.toldAt, consentOff: fromStore.consentOff || mem.consentOff, nudgeOff: new Set([...fromStore.nudgeOff, ...mem.nudgeOff]) };
26
+ }
27
+
28
+ export async function press(b, F, { pmPost, storage, mem }) {
29
+ const act = b && b.dataset ? b.dataset.mb : '';
30
+ const f = F || {};
31
+ const noteId = f.note ? f.note.id : '';
32
+ const where = noteId ? { note: noteId } : f.event ? { event: f.event.id, date: f.date } : {};
33
+ const mark = (patch) => {
34
+ if (patch.nudge) mem.nudgeOff.add(patch.nudge);
35
+ if (patch.toldAt) mem.toldAt = patch.toldAt;
36
+ if (patch.consentOff) mem.consentOff = true;
37
+ markIn(storage, f, patch);
38
+ };
39
+ switch (act) {
40
+ case 'nudge-x': mark({ nudge: b.dataset.key }); return { msg: '', read: false };
41
+ case 'consent-x': mark({ consentOff: true }); return { msg: '', read: false };
42
+ case 'copy': {
43
+ if (b.dataset.id === 'consent') {
44
+ if (!(await copyText(CONSENT_LINE))) return { msg: 'The line was not copied. Select it and copy it yourself.', read: false };
45
+ mark({ toldAt: Date.now() });
46
+ return { msg: 'Copied. Paste it in the call chat.', read: false };
47
+ }
48
+ const d = (f.raise || []).find((r) => r.id === b.dataset.id); if (!d) return null;
49
+ if (!(await copyText(d.text))) return { msg: 'The line was not copied.', read: false };
50
+ const r = await pmPost('/api/meeting-focus/raise', { ...where, id: d.id, action: 'raised' });
51
+ return { msg: r && r.ok ? 'Copied. Paste it in the call chat if you still want it.' : 'Copied, but not marked: ' + ((r && r.error) || 'no answer'), read: true };
52
+ }
53
+ case 'chat-x': {
54
+ const r = await pmPost('/api/meeting-focus/raise', { ...where, id: b.dataset.id, action: 'skip' });
55
+ return { msg: r && r.ok ? '' : 'Not saved: ' + ((r && r.error) || 'no answer'), read: true };
56
+ }
57
+ case 'undo': case 'redo': {
58
+ if (!noteId) return null;
59
+ const bid = b.dataset.bid;
60
+ const r = await pmPost('/api/notes/bullet', { id: noteId, bullet: bid, drop: act === 'undo' });
61
+ if (!r || !r.ok) return { msg: 'Not changed: ' + ((r && r.error) || 'no answer'), read: false };
62
+ return act === 'undo' ? { msg: 'Taken out of the notes.', undo: bid, read: true } : { msg: 'Back in the notes.', read: true };
63
+ }
64
+ default: return null;
65
+ }
66
+ }
@@ -0,0 +1,52 @@
1
+ /* cozy-buddy.css — the meeting buddy (initiative meeting-buddy; pm/buddy-core.js draws it, pm/cozy-buddy.js mounts the page).
2
+ * The page is the PMOS panel over a Meet call (a 360 × 520 frame), and the same rows sit in the recording tab's Now panel.
3
+ * Colours are the cozy tokens only, so the dark theme follows cozy.css. Every class starts with mb-. */
4
+
5
+ /* the rows, shared by the Meet panel and the recording tab */
6
+ .mb-r { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--cz-hair); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--cz-ink); }
7
+ .mb-r .t { flex: 1; min-width: 0; line-height: 1.4; }
8
+ .mb-r .t small { display: block; font-size: var(--fs-label); font-weight: var(--fw-regular); color: var(--cz-ink3); }
9
+ .mb-r.bad .t { color: var(--cz-late); }
10
+ .mb-top { font-size: var(--fs-body); align-items: center; }
11
+ .mb-sm { font-size: var(--fs-label); color: var(--cz-ink3); }
12
+ .mb-src { display: block; font-size: var(--fs-label); color: var(--cz-ink3); margin-top: 2px; }
13
+ .mb-spark { color: var(--cz-blueink); flex: none; padding-top: 2px; }
14
+ .mb-nudge { background: var(--cz-riskbg); }
15
+ .mb-draft, .mb-consent { background: var(--cz-well); }
16
+ .mb-line { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--cz-card); color: var(--cz-ink2); quotes: none; }
17
+ .mb-acts { display: flex; gap: 6px; flex: none; }
18
+ .mb-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--cz-ink3); flex: none; opacity: .6; }
19
+ .mb-dot.ok { background: var(--cz-ok); opacity: 1; }
20
+ .mb-dot.warn { background: var(--cz-risk); opacity: 1; }
21
+ .mb-r .mb-dot { margin-top: 4px; }
22
+ .mb-ib { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--cz-hair); background: var(--cz-card); color: var(--cz-ink2); display: inline-flex; align-items: center; justify-content: center; padding: 0; flex: none; cursor: pointer; font: inherit; text-decoration: none; }
23
+ .mb-ib.go { background: var(--cz-solid); border-color: var(--cz-solid); color: var(--cz-onsolid); }
24
+ .mb-ib:disabled { opacity: .5; cursor: default; }
25
+ .mb-ib:focus-visible, .mb-pick:focus-visible, .mb-undo:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
26
+ @media (hover: hover) { .mb-ib:hover { background: var(--cz-well); } .mb-ib.go:hover { background: var(--cz-blueink); } }
27
+ @media (pointer: coarse) { .mb-ib { width: 44px; height: 44px; } }
28
+ .mb-undo { border: 0; background: none; padding: 0; font: inherit; font-weight: var(--fw-strong); color: var(--cz-blueink); cursor: pointer; }
29
+
30
+ /* the page over the call */
31
+ .mb-page, .cz.mb-page { margin: 0; height: 100vh; overflow: hidden; background: var(--cz-card); }
32
+ .mb { height: 100%; display: flex; flex-direction: column; color: var(--cz-ink); }
33
+ .mb-h { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; min-height: 44px; box-sizing: border-box; border-bottom: 1px solid var(--cz-hair); font-size: var(--fs-body); }
34
+ .mb-h .mb-sm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
35
+ .mb-h .mb-ib { border: 0; background: none; }
36
+ .mb-b { flex: 1; min-height: 0; overflow-y: auto; }
37
+ .mb-b > :last-child { border-bottom: 0; }
38
+ .mb-msg { margin: 0; padding: 8px 14px; font-size: var(--fs-label); color: var(--cz-ink2); border-top: 1px solid var(--cz-hair); }
39
+ .mb-msg[hidden], .mb-ask[hidden] { display: none; }
40
+ .mb-ask { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--cz-hair); }
41
+ .mb-ask input { flex: 1; min-width: 0; height: 32px; border-radius: 6px; border: 0; background: var(--cz-well); padding: 0 12px; font: inherit; font-size: var(--fs-label); color: var(--cz-ink); }
42
+ .mb-ask input::placeholder { color: var(--cz-ink3); }
43
+ .mb-pick { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--cz-hair); background: none; font: inherit; font-size: var(--fs-label); color: var(--cz-ink); text-align: left; cursor: pointer; }
44
+ .mb-pick b { flex: 1; min-width: 0; }
45
+ .mb-none { padding: 14px; margin: 0; }
46
+ .folded .mb-b, .folded .mb-msg { display: none; }
47
+ .folded .mb-h { border-bottom: 0; }
48
+
49
+ /* in the recording tab's Now panel: the rows sit in one card */
50
+ .mb-card { border-radius: 8px; background: var(--cz-card); box-shadow: 0 0 0 1px var(--cz-hair); overflow: hidden; }
51
+ .mb-card > :last-child { border-bottom: 0; }
52
+ .mb-clip { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }