create-pmos 0.437.0 → 0.438.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 (53) hide show
  1. package/package.json +13 -13
  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/adler-moments-test.js +121 -0
  7. package/workspace/briefing-premium-board-test.js +2 -1
  8. package/workspace/changelog.json +12 -0
  9. package/workspace/guide/adler.md +12 -1
  10. package/workspace/guide/briefing-premium.md +1 -1
  11. package/workspace/guide/home.md +1 -0
  12. package/workspace/home-rows-test.js +16 -0
  13. package/workspace/package-lock.json +2 -2
  14. package/workspace/package.json +1 -1
  15. package/workspace/premium-chat-context-test.js +20 -0
  16. package/workspace/public/pm/bd-asks.js +5 -2
  17. package/workspace/public/pm/bd-deliveries.js +11 -2
  18. package/workspace/public/pm/cozy-adler.css +7 -1
  19. package/workspace/public/pm/cozy-adler.js +17 -0
  20. package/workspace/public/pm/cozy-board.css +5 -0
  21. package/workspace/public/pm/cozy-ev.css +8 -0
  22. package/workspace/public/pm/cozy-home.css +7 -0
  23. package/workspace/public/pm/cozy-live-pill.css +2 -0
  24. package/workspace/public/pm/cozy-live-pill.js +6 -3
  25. package/workspace/public/pm/cozy-nav.js +18 -5
  26. package/workspace/public/pm/cozy-pull.js +62 -0
  27. package/workspace/public/pm/cozy-rec-tab.css +2 -0
  28. package/workspace/public/pm/cozy-rec-tab.js +18 -1
  29. package/workspace/public/pm/cozy-settings.js +14 -5
  30. package/workspace/public/pm/cozy-steps.css +3 -0
  31. package/workspace/public/pm/cozy-steps.js +5 -4
  32. package/workspace/public/pm/cozy-today.css +5 -0
  33. package/workspace/public/pm/home-app.js +33 -2
  34. package/workspace/public/pm/home-day.js +39 -5
  35. package/workspace/public/pm/home-mentions.js +13 -2
  36. package/workspace/public/pm/home-review.js +9 -1
  37. package/workspace/public/pm/home-stage-card.js +9 -3
  38. package/workspace/public/pm/impact.css +1 -0
  39. package/workspace/public/pm/impact.js +5 -2
  40. package/workspace/public/pm/ini-tasks.js +19 -3
  41. package/workspace/public/pm/premium-board.js +12 -4
  42. package/workspace/public/pm/premium-shell.js +12 -4
  43. package/workspace/public/pm/premium-vw-ctx.js +16 -2
  44. package/workspace/public/pm/premium-vw-doc-model.js +11 -0
  45. package/workspace/public/pm/premium-vw-doc.css +2 -0
  46. package/workspace/public/pm/premium-vw-doc.js +8 -2
  47. package/workspace/public/pm/premium.css +14 -0
  48. package/workspace/public/pm/program-charter.js +2 -1
  49. package/workspace/public/pm/session-rail.js +12 -5
  50. package/workspace/public/premium-rec.html +1 -1
  51. package/workspace/task-views-test.js +10 -1
  52. package/workspace/test-lists/adler-followups.json +9 -0
  53. package/workspace/test-lists/batch17-adler-moments.json +13 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.437.0",
3
+ "version": "0.438.0",
4
4
  "description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -32,6 +32,18 @@
32
32
  "audit"
33
33
  ],
34
34
  "pmosChanges": [
35
+ {
36
+ "v": "0.438.0",
37
+ "at": "2026-10-28T06:29:09.651Z",
38
+ "f": 2,
39
+ "prs": [
40
+ {
41
+ "n": 1081,
42
+ "t": "Adler follow-ups, \"+N read\", Your day's waiting ask, long timeline zooms fill the width (feedback batch 17 items 4–6)",
43
+ "s": "Adler follow-ups, \"+N read\", Your day's waiting ask, long timeline zooms fill the width (feedback batch 17 items 4–6)"
44
+ }
45
+ ]
46
+ },
35
47
  {
36
48
  "v": "0.437.0",
37
49
  "at": "2026-10-28T05:16:07.974Z",
@@ -259,18 +271,6 @@
259
271
  "s": "Eighth testing feedback batch"
260
272
  }
261
273
  ]
262
- },
263
- {
264
- "v": "0.418.0",
265
- "at": "2026-10-26T01:29:44.041Z",
266
- "f": 2,
267
- "prs": [
268
- {
269
- "n": 1051,
270
- "t": "Seventh testing feedback batch (items 1–7)",
271
- "s": "Chats PMOS ended stay on Home, the timeline's longer spans scroll like Quarter, tasks can be deleted with Undo, task rows show start and end dates, and a press on any task in the initiative page opens that task."
272
- }
273
- ]
274
274
  }
275
275
  ]
276
276
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@2820031a
1
+ kernel-source: pmos@83a39666
2
2
  assembled: 2026-10-28
3
3
  mode: vendor
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Eval calibration log"
4
4
  description: "Append-only record of every PM override of an evaluator verdict."
5
- generated: {by: process:create-pmos, at: "2026-10-28T05:16:04Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-28T06:29:06Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Health budgets"
4
4
  description: "Closed registry of health-budget anchors (D59), edited only by the PM."
5
- generated: {by: process:create-pmos, at: "2026-10-28T05:16:04Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-28T06:29:06Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Discoveries and friction log"
4
4
  description: "Append-only record of what runs discovered and where the process rubbed."
5
- generated: {by: process:create-pmos, at: "2026-10-28T05:16:04Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-28T06:29:06Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -0,0 +1,121 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+ /* adler-moments-test.js — Adler on the phone and in Settings, in the real pages (feedback batch 17 item 4-B; canvas AdP2, AdP5, AdP6, AdM4).
4
+ * The real Home from the real server, at 390 px with touch; the board and briefing are the fixtures, and GET /api/sources is stubbed with
5
+ * Jira failed. POST /api/sources/refresh is recorded.
6
+ * E1 the ears peek over the menu button while a call is the PM's, and the button's name says it; the menu open, no ears
7
+ * F1 Your day opens on the rain cloud with Adler honest, "Jira isn't answering.", and no second face
8
+ * F2 its icon reads Jira again (POST /api/sources/refresh with source jira)
9
+ * P1 a pull from the top of Your day lets Adler peek up, says it reads again, and reads Home again
10
+ * S1 Settings > Updates: a face on the updates card; General: one face only
11
+ * N no page error
12
+ * PMOS_SHOTS=<dir> also saves the screenshots. */
13
+ const path = require('path');
14
+ const fs = require('fs');
15
+ const { spawn } = require('child_process');
16
+ const { findBrowser } = require('./lib/find-browser');
17
+ const T = require('./test-run').configure({ name: 'adler-moments' });
18
+ const BP = require('./lib/board-premium.js');
19
+ const BF = require('./fixtures/board-premium-facts.js');
20
+ const BRP = require('./lib/briefing-premium.js');
21
+ const BRF = require('./fixtures/briefing-premium-facts.js');
22
+
23
+ const BASE = T.BASE;
24
+ const SHOTS = process.env.PMOS_SHOTS || '';
25
+ const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
26
+ const until = async (fn, ms = 10000, step = 100) => { const t0 = Date.now(); for (;;) { let v; try { v = await fn(); } catch { v = null; } if (v) return v; if (Date.now() - t0 > ms) return v; await sleep(step); } };
27
+ const results = [];
28
+ const ok = (name, cond, extra = '') => { results.push({ name, cond: !!cond }); console.log(`${cond ? '✓' : '✗'} ${name}${!cond && extra !== '' ? ' — ' + String(extra).slice(0, 600) : ''}`); };
29
+ let srv = null; let browser = null;
30
+ const finish = async (code) => {
31
+ if (browser) await browser.close().catch(() => {});
32
+ if (srv) { try { srv.kill('SIGKILL'); } catch { /* gone */ } }
33
+ T.killTmux();
34
+ const bad = results.filter((x) => !x.cond).length;
35
+ console.log(`\n${results.length - bad}/${results.length} adler-moments assertions passed`);
36
+ process.exit(code !== undefined ? code : (bad ? 1 : 0));
37
+ };
38
+ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
39
+
40
+ (async () => {
41
+ const exe = process.env.PMOS_CHROME || findBrowser();
42
+ if (!exe) { console.log('✗ no Chrome/Chromium on this machine — the adler-moments suite cannot run'); return finish(1); }
43
+ let chromium;
44
+ try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
45
+ srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
46
+ await T.waitForServer(BASE);
47
+ browser = await chromium.launch({ executablePath: exe });
48
+ if (SHOTS) fs.mkdirSync(SHOTS, { recursive: true });
49
+ const shot = async (p, name) => { if (SHOTS) { await sleep(500); await p.screenshot({ path: path.join(SHOTS, name + '.png') }); } };
50
+ const BRIEF = BRP.build(BRF.facts());
51
+ const BOARD = BP.build(BF.facts());
52
+ const SOURCES = { ok: true, ws: '', sources: [{ id: 'calendar', name: 'Calendar', state: 'fresh', as_of: new Date().toISOString() }, { id: 'jira', name: 'Jira', state: 'failed', as_of: new Date(Date.now() - 90 * 60000).toISOString() }] };
53
+
54
+ const ctx = await browser.newContext({ viewport: { width: 390, height: 844 }, hasTouch: true, isMobile: true });
55
+ const page = await ctx.newPage();
56
+ const errors = [], posts = [];
57
+ page.on('pageerror', (e) => errors.push(String(e)));
58
+ page.on('request', (rq) => { if (rq.method() === 'POST') posts.push({ path: new URL(rq.url()).pathname, body: rq.postData() || '' }); });
59
+ const json = (rq, b) => rq.fulfill({ status: 200, contentType: 'application/json', body: JSON.stringify(b) });
60
+ await page.route(/\/api\/board-premium(\?.*)?$/, (rq) => json(rq, { ok: true, state: 'ready', model: BOARD, as_of: Date.now() }));
61
+ await page.route(/\/api\/briefing-premium(\?.*)?$/, (rq) => json(rq, { ok: true, state: 'ready', model: BRIEF, as_of: Date.now() }));
62
+ await page.route('**/api/briefing-premium/**', (rq) => json(rq, { ok: true, turns: [], working: false }));
63
+ await page.route(/\/api\/sources(\?.*)?$/, (rq) => json(rq, SOURCES));
64
+ await page.route(/\/api\/kit\/status(\?.*)?$/, (rq) => json(rq, { ok: true, app: { version: '0.430.0' }, latest: '0.430.0', kit: { present: true, version: '0.430.0' } }));
65
+ await page.route(/\/api\/sources\/refresh$/, (rq) => json(rq, { ok: true, started: 'local' }));
66
+ // the night scene would hide nothing here, but keep the test on the day: Quiet after off
67
+ await page.addInitScript(() => { try { localStorage.setItem('pmos.adler', JSON.stringify({ 'adler.quiet': 'never' })); } catch { /* none */ } });
68
+ await page.goto(BASE + '/premium.html');
69
+ await until(() => page.evaluate(() => !!document.querySelector('#hmList [data-hm-day]')), 30000);
70
+
71
+ /* E1 — one call made the PM's, so the ears are tested on what the page hears (Home sends cz:calls from Your move) */
72
+ await page.evaluate(() => document.dispatchEvent(new CustomEvent('cz:calls', { detail: { count: 1 } })));
73
+ const ears = await until(() => page.evaluate(() => { const e = document.getElementById('czEars'), f = document.getElementById('czFab'); if (!e || e.hidden || !e.querySelector('.ad-peek')) return null; const a = e.getBoundingClientRect(), b = f.getBoundingClientRect(); return { label: f.getAttribute('aria-label'), above: a.bottom > b.top && a.top < b.top, w: a.width }; }));
74
+ ok('E1 the ears peek over the menu button, and the button\'s name says one call is yours', ears && ears.above && /One call is yours$/.test(ears.label), JSON.stringify(ears));
75
+ await shot(page, 'ears');
76
+ await page.click('#czFab');
77
+ const gone = await until(() => page.evaluate(() => document.getElementById('czEars').hidden));
78
+ ok('E1 the menu open: no ears', gone);
79
+ await page.click('#czFab');
80
+
81
+ /* F1-F2 */
82
+ await page.click('#hmList [data-hm-day]');
83
+ const f1 = await until(() => page.evaluate(() => { const b = document.querySelector('#czViewer .yd-open'); if (!b || !b.querySelector('.k-rain')) return null; return { line: b.querySelector('.yd-ht b').textContent, faces: b.querySelectorAll('svg.ad-svg').length, sync: !!b.querySelector('[data-yd="sync"][aria-label="Read Jira again"]') }; }), 15000);
84
+ ok('F1 Your day opens on the rain cloud, Adler honest, "Jira isn\'t answering.", and no second face', f1 && f1.line === 'Jira isn’t answering.' && f1.faces === 0 && f1.sync, JSON.stringify(f1));
85
+ await shot(page, 'sync-fail');
86
+ await page.click('#czViewer [data-yd="sync"]');
87
+ const f2 = await until(() => posts.find((p) => p.path === '/api/sources/refresh'));
88
+ ok('F2 the icon reads Jira again', f2 && /"source":"jira"/.test(f2.body), JSON.stringify(f2));
89
+
90
+ /* P1 — a pull from the top of the body, as a finger would */
91
+ const reads = () => page.evaluate(() => performance.getEntriesByType('resource').filter((e) => /\/api\/home-review/.test(e.name)).length);
92
+ const before = await reads();
93
+ const peek = await page.evaluate(async () => {
94
+ const body = document.querySelector('#czViewer .cz-vw-body') || document.querySelector('#czViewer [data-cz-pull]');
95
+ const el = document.querySelector('[data-cz-pull]') || body;
96
+ const t = (y) => new Touch({ identifier: 1, target: el, clientX: 200, clientY: y });
97
+ el.dispatchEvent(new TouchEvent('touchstart', { touches: [t(120)], bubbles: true }));
98
+ for (let y = 130; y <= 300; y += 20) el.dispatchEvent(new TouchEvent('touchmove', { touches: [t(y)], bubbles: true }));
99
+ const mid = !!el.querySelector('.cz-pull .ad-svg');
100
+ el.dispatchEvent(new TouchEvent('touchend', { touches: [], changedTouches: [t(300)], bubbles: true }));
101
+ await new Promise((r) => setTimeout(r, 50));
102
+ const p = el.querySelector('.cz-pull'); return { mid, reading: p ? p.querySelector('.cz-pull-t').textContent : '' };
103
+ });
104
+ ok('P1 a pull lets Adler peek up, and he says he reads your day again', peek.mid && peek.reading === 'Reading your day again', JSON.stringify(peek));
105
+ await shot(page, 'pull');
106
+ const after = await until(async () => ((await reads()) > before ? true : null), 15000);
107
+ ok('P1 and Home reads again', after);
108
+
109
+ /* S1 */
110
+ await page.evaluate(() => import('/pm/cozy-settings.js').then((M) => M.openSettings('updates')));
111
+ const s1 = await until(() => page.evaluate(() => { const m = document.querySelector('#evSettings .ev-st-main'); return m && m.querySelector('.ev-upd') ? { faces: m.querySelectorAll('.ev-ad svg, .ev-ad .ad-dot').length } : null; }), 15000);
112
+ ok('S1 Settings > Updates: one face on the updates card (calm: up to date)', s1 && s1.faces === 1, JSON.stringify(s1));
113
+ await shot(page, 'settings-updates');
114
+ await page.evaluate(() => { const a = document.querySelector('#evSettings [data-ev-sec="general"]'); if (a) a.click(); });
115
+ const g = await until(() => page.evaluate(() => { const m = document.querySelector('#evSettings .ev-st-main'); return m && m.querySelector('[data-ev-day]') ? m.querySelectorAll('.ev-ad').length : null; }));
116
+ ok('S1 General: one face only', g === 1, String(g));
117
+
118
+ ok('N no page error', !errors.length, JSON.stringify(errors));
119
+ await ctx.close();
120
+ return finish();
121
+ })();
@@ -150,7 +150,8 @@ const IVREAD = () => {
150
150
  await p.click('#fold');
151
151
  ok('B1 the fold opens and says how many are not loaded, and closes again', await p.evaluate(() => document.querySelector('#fold').getAttribute('aria-expanded') === 'true' && /Fold Monitor and Evaluate · 20 more are not loaded/.test(document.querySelector('#fold').textContent)));
152
152
  await p.click('#fold');
153
- ok('M1 only the info, warning and critical dots move', await p.evaluate(() => [...document.querySelectorAll('#stage *')].filter((e) => { const a = getComputedStyle(e, '::after').animationName, b = getComputedStyle(e).animationName; return (a && a !== 'none') || (b && b !== 'none'); }).every((e) => e.matches('.cz-dot.m-info, .cz-dot.m-warn, .cz-dot.m-crit'))));
153
+ // Adler (the Jira chip's face, batch 17 item 4-A) is design principle 12's one exception: he blinks; no data moves
154
+ ok('M1 only the info, warning and critical dots move (and Adler, the principle 12 exception)', await p.evaluate(() => [...document.querySelectorAll('#stage *')].filter((e) => { const a = getComputedStyle(e, '::after').animationName, b = getComputedStyle(e).animationName; return (a && a !== 'none') || (b && b !== 'none'); }).every((e) => e.matches('.cz-dot.m-info, .cz-dot.m-warn, .cz-dot.m-crit') || !!e.closest('svg.ad-svg'))));
154
155
  /* AgBoardStages: the step heads open "What finishes each step"; Escape closes it and gives the focus back */
155
156
  await p.click('.bt-h [data-steps]');
156
157
  ok('B1 what finishes each step: eight steps with their output and where the count comes from, from the step heads', await until(() => p.evaluate(() => !document.querySelector('#popSteps').hidden && /Release shipped, your sign-off/.test(document.querySelector('#popSteps').textContent) && document.querySelectorAll('#popSteps .bd-tbl .bd-tr').length === 9)));
@@ -1,4 +1,16 @@
1
1
  [
2
+ {
3
+ "v": "0.438.0",
4
+ "at": "2026-10-28T06:29:09.651Z",
5
+ "f": 2,
6
+ "prs": [
7
+ {
8
+ "n": 1081,
9
+ "t": "Adler follow-ups, \"+N read\", Your day's waiting ask, long timeline zooms fill the width (feedback batch 17 items 4–6)",
10
+ "s": "Adler follow-ups, \"+N read\", Your day's waiting ask, long timeline zooms fill the width (feedback batch 17 items 4–6)"
11
+ }
12
+ ]
13
+ },
2
14
  {
3
15
  "v": "0.437.0",
4
16
  "at": "2026-10-28T05:16:07.974Z",
@@ -2,7 +2,7 @@
2
2
  type: Guide
3
3
  title: "Adler, Claude's face"
4
4
  description: "Who Adler is, where he shows in PMOS, what each of his six moods means, and how to choose how much of him you see in Settings."
5
- timestamp: 2026-10-27
5
+ timestamp: 2026-10-28
6
6
  ---
7
7
 
8
8
  # Adler, Claude's face
@@ -32,6 +32,17 @@ Each mood comes from real state. When nothing happens, Adler is calm or he rests
32
32
  - **Intelligence.** His face in Claude's line at the top only. Charts, numbers and key results never show him.
33
33
  - **Search.** Adler with a magnifier when nothing matches.
34
34
  - **Welcome.** Adler says hello once on the first step, and wears his glasses while PMOS reads your folder.
35
+ - **Board.** His small face on the Jira chip: calm when Jira was read in the last day and a half, honest when it was not, and glasses while a press reads it again. He heads **New asks**: needs you while asks wait. When a delivery is missed, his honest face stands once in the Deliveries lane's header; hover it to see which. When you open a milestone that was delivered, he celebrates once in the panel (at most once a week); after that his face is calm. The diamond on the timeline stays plain, and nothing is sent to anyone.
36
+ - **Program charter.** His face on the check line, with glasses while Claude checks the milestones.
37
+ - **Stage card.** While a session works on a step, that step shows Adler with his glasses instead of a spinner. When every step is done, he holds the **Move to** button. Your own steps keep their rings.
38
+ - **Sessions.** Only the session that asks you something shows his face in the list. The other sessions keep their dots. In that session's card, he holds the question.
39
+ - **Viewer.** Under a page that the agent wrote last, one quiet line: "I drafted this", and how many open questions are yours.
40
+ - **Recording a meeting.** Adler wears headphones: in the Live pill while the meeting records, and after the title in the recording tab. He wears his glasses while he listens, rests while you pause, and shows the honest face when PMOS cannot hear the meeting.
41
+ - **A source that could not be read (phone and desk).** When Jira, or another source, does not answer, Your day says so first, under a small rain cloud: when PMOS last had it, and an icon that reads it again.
42
+ - **Pull to refresh (phone).** Pull Your day down from the top. Adler peeks up with his glasses while PMOS reads your day again.
43
+ - **The menu button (phone).** When a call is yours, his ears peek over the menu button. They go when no call waits, while the menu is open, and after Quiet after.
44
+ - **Weekly review.** When the review is done for the week, Adler is calm. It is upkeep, not a win, so he does not celebrate.
45
+ - **Settings.** In Updates he wears his glasses while PMOS checks or installs, holds the card when a version is ready, and is calm when PMOS is up to date. A line that says something failed shows his honest face.
35
46
 
36
47
  Adler never sits in a list row, a bar, a chart or a report. Rows keep their own signals: a dot is a session and a box is a task.
37
48
 
@@ -450,7 +450,7 @@ Every popup has this chat, including the ones that have no row of their own: a t
450
450
  - **A file Claude names** (a path such as `briefs/drafts/plan.md`, or a link to one) is underlined. Press it to read the file beside the conversation, as a tab in the viewer; on a phone, the Detail side shows it (on the Chat page, the viewer opens over the conversation). Markdown shows as a page, an HTML file shows as the page it draws (press **Source** for its code), and other text files show as code. An HTML page runs its own scripts, so its toggles and charts work, but it cannot reach PMOS or the internet: a web font falls back to the system font. It is read-only. While the tab is open it shows the newest version, so a file Claude is still writing stays current. A file in a workspace PMOS serves, in a git worktree of one, or in the folder a session runs in opens here. Any other file says "Not in a workspace" and is not read.
451
451
  - **Download a file** with the download icon at the right of its name in the viewer. An HTML file saves as **HTML** (as it is) or **PDF**. A markdown file saves as **Markdown**, **Word .docx** or **PDF**. Other text files save at once as they are, with no menu. PDF opens your browser's print window: choose **Save as PDF** there. An HTML page prints with no access to PMOS or the internet, as in the viewer. Word holds the note's headings, paragraphs, lists and tables.
452
452
  - **Share a file** with the share icon beside download. On a phone, **Send a copy** comes first: it opens the phone's share sheet with the file, and no link is made. **Public link** makes a link to a copy of the file as it is now, for someone with no PMOS or Cloudflare login. The password is on, with a generated one you can change or turn off. The link ends after 7 days; press **1 day** or **30 days** to change it. Press **Create link**, then **Copy link and password**, and send the password in a different message. The same popover lists your **open links** with their end date and views; **Turn off** (pressed twice) deletes the copy at once. A file with a key or token in it is not shared. Links need Online and one more tunnel rule: see REMOTE.md, "Share links".
453
- - **What an answer worked with** shows as buttons under it: the files Claude wrote, changed or read, the Jira tickets and Slack channels it used, and the links it named. The first one is the main one: a file Claude wrote comes first, then what it named in its words, then what it only read. When an answer finishes while the chat is open, its main one opens in the viewer by itself, once; answers that were there when you opened the chat open nothing. On a phone a bar over the message box offers it instead (**View**), so the conversation stays in view. A Jira ticket shows what PMOS last read from Jira for a board or initiative it syncs, with **Open in Jira**; a ticket PMOS has not read says so. A Slack channel or message opens with **Open in Slack**, as PMOS keeps no copy of Slack messages.
453
+ - **What an answer worked with** shows as buttons under it: the files Claude wrote, changed or read, the Jira tickets and Slack channels it used, and the links it named. The first one is the main one: a file Claude wrote comes first, then what it named in its words, then what it only read. When Claude only read two or more things, they fold into one **+N read**; press it to see them. When an answer finishes while the chat is open, its main one opens in the viewer by itself, once; answers that were there when you opened the chat open nothing. On a phone a bar over the message box offers it instead (**View**), so the conversation stays in view. A Jira ticket shows what PMOS last read from Jira for a board or initiative it syncs, with **Open in Jira**; a ticket PMOS has not read says so. A Slack channel or message opens with **Open in Slack**, as PMOS keeps no copy of Slack messages.
454
454
  - **A link to a Google Doc or a Confluence page** opens beside the conversation too, as the viewer shows a copy: the text PMOS has read, or **Read it now**. **A Claude artifact link** opens a tab with **Open in Claude**: claude.ai does not let another site show an artifact inside it. Other links open in a new browser tab.
455
455
  - **The session** is also listed in **Sessions** and in the console, where you can open its terminal.
456
456
  - **Ending a session ends only its process.** Whether you press End in the session list, or PMOS ends an idle chat, the conversation stays with the row: the panel and the session's own view still show every turn, read from Claude Code's record (in whichever Claude login ran it, such as `~/.claude-personal`). PMOS also keeps a copy in its own state folder (`chat-history/`), so the conversation stays after Claude Code removes old records. Files the session wrote are never touched. Your next message picks up the same conversation.
@@ -17,6 +17,7 @@ Home, the Board, Insights and the Viewer use one type scale: 11, 12, 14, 16, 20
17
17
  - Press **Good morning** to open **Your day** in the Viewer. This is the same on a computer and on a phone. To open the calendar, press the calendar icon in Your day's header. A program's milestone changes that wait on you are the first line of the program's card.
18
18
  - A blue dot after **Good morning** means that something is new for you. It is in the **New for you** fold of Your day.
19
19
  - Your day shows the date, the meetings of the day, **Your move** (the items that wait on you, with their count), **New for you**, and **This week** (the Weekly review).
20
+ - When a conversation in Mentions waits on your answer, Your day names the oldest one under its first line: who asked, where, how many more wait, and what they asked. Press its icon to open that conversation in Mentions.
20
21
  - **New for you** shows only when something is new: tasks given to you, and work that finished while you were away. It shows the 3 newest items, then **N more**. Press an item to open it in the Viewer. Press **N more** to see all of them. Press ✓✓ in the fold's header to mark all of them seen. An item leaves when you open it or mark it seen. Mentions are not here: **Mentions** shows each one once.
21
22
  - After 17:00, Your day is the end of the day. It shows what moved today, then a **Tomorrow** fold with tomorrow's meetings. When tomorrow has no meetings, there is no Tomorrow fold.
22
23
  - A **program** comes first, above the products. Its header shows the program icon, its name, the next milestone (◆ and the date) and how many of its initiatives are ready for that milestone. Inside it, the program's own tasks come first, then its initiatives under a small heading for each product. Each initiative shows once. Press the program's name to open the program in the Viewer. The chat then talks about the program. Press the chevron to close or open the group.
@@ -360,5 +360,21 @@ const recentOf = (m) => ({ ...m, recent: [...m.toread, ...m.answered] });
360
360
  ok('F no sideways scroll at 390 px', sx);
361
361
  ok('F no page error', !P.errors.length, P.errors.join(' | '));
362
362
  await P.close();
363
+ /* Y (batch 17 item 6): Your day's opening card names the oldest ask in Your move; its icon opens that conversation in Mentions */
364
+ { const Q = await open();
365
+ await Q.page.click('#hmList [data-hm-day]');
366
+ const ya = await until(() => Q.page.evaluate(() => { const a = document.querySelector('#czViewer .yd-open .yd-ask'); return a ? { id: a.dataset.id, b: a.querySelector('b').textContent, em: a.querySelector('em').textContent, btn: (a.querySelector('[data-yd="ask"]') || {}).getAttribute?.('aria-label') } : null; }), 15000);
367
+ ok('Y Your day names the oldest ask: who, where, how many more, the gist', !!ya && ya.id === 'aaaaaaaaaaa1' && ya.b === 'Samuel asked you in #tech-team-cem · 2 more' && /before he tags it/.test(ya.em) && ya.btn === 'Open in Mentions', JSON.stringify(ya));
368
+ await shot(Q.page, 'day-ask-1440');
369
+ await Q.page.click('#czViewer .yd-ask [data-yd="ask"]');
370
+ const yc = await until(async () => { const c = await convOf(Q.page); const v = await vw(Q.page); return v && v.title === 'Mentions' && c && /Samuel Chandra/.test(c.head) ? { t: v.title, head: c.head } : null; });
371
+ ok('Y its icon opens Mentions on that conversation', !!yc, JSON.stringify(yc));
372
+ ok('Y no page error', !Q.errors.length, Q.errors.join(' | '));
373
+ await Q.close();
374
+ const E = await open({ mentions: { ...recentOf(MENTIONS(INI)), waiting: [], count: 0 } });
375
+ await E.page.click('#hmList [data-hm-day]');
376
+ await until(() => E.page.evaluate(() => !!document.querySelector('#czViewer .yd-open')), 15000);
377
+ ok('Y nothing waits: no ask under the opening line', await E.page.evaluate(() => !document.querySelector('#czViewer .yd-ask')));
378
+ await E.close(); }
363
379
  return finish();
364
380
  })();
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.437.0",
3
+ "version": "0.438.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.437.0",
9
+ "version": "0.438.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.437.0",
3
+ "version": "0.438.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",
@@ -104,6 +104,26 @@ const second = (k) => [
104
104
  ok('C6 no page error at 1280', errs.length === 0, errs.join(' | '));
105
105
  await ctx.close(); }
106
106
 
107
+ { const { p, ctx, errs, conv } = await open(1280); // C7: what Claude only read folds into "+N read" (batch 17 item 5)
108
+ await sleep(1500);
109
+ const reads = ['notes/a.md', 'notes/b.md', 'notes/c.md'];
110
+ conv.messages = [...first(), { role: 'user', text: 'Sum up the notes', at: '2026-10-21T08:02:00Z' },
111
+ { role: 'tool', tools: { Read: 3, Write: 1 }, calls: [...reads.map((t) => ({ tool: 'Read', target: t })), { tool: 'Write', target: 'notes/summary.md' }], at: '2026-10-21T08:02:10Z' },
112
+ { role: 'assistant', text: 'I summed them up.', at: '2026-10-21T08:02:20Z' }];
113
+ const fold = () => p.evaluate(() => { const c = [...document.querySelectorAll('#hmLog .ctxc[role=list]')].pop(); if (!c) return null; const d = c.querySelector('details.ctxmore'); const vis = [...c.querySelectorAll('.ctxchip')].filter((b) => b.getBoundingClientRect().height > 0).map((b) => b.querySelector('b').textContent); return { vis, more: d ? d.querySelector('summary').textContent : null, open: !!(d && d.open), n: document.querySelectorAll('#hmLog .ctxc[role=list]').length }; });
114
+ const f0 = await until(async () => { const v = await fold(); return v && v.n >= 2 && v.more ? v : null; }, 6000) || await fold();
115
+ ok('C7 three files Claude only read fold into "+3 read"; the file it wrote stays in sight', !!f0 && JSON.stringify(f0.vis) === JSON.stringify(['summary.md']) && f0.more === '+3 read', JSON.stringify(f0));
116
+ ok('C7 the first answer\'s one read file is not folded', JSON.stringify((await p.evaluate(look)).chips[0]) === JSON.stringify(['file:signup-drop.md*', 'file:signup-fix.md']));
117
+ await p.click('#hmLog details.ctxmore > summary');
118
+ const f1 = await fold();
119
+ ok('C7 a press on "+3 read" shows the three files in the row', !!f1 && f1.open && JSON.stringify(f1.vis) === JSON.stringify(['summary.md', 'a.md', 'b.md', 'c.md']), JSON.stringify(f1));
120
+ conv.messages = [...conv.messages, { role: 'user', text: 'Thanks', at: '2026-10-21T08:03:00Z' }];
121
+ await sleep(2600);
122
+ const f2 = await fold();
123
+ ok('C7 it stays open when the conversation redraws', !!f2 && f2.open, JSON.stringify(f2));
124
+ ok('C7 no page error', errs.length === 0, errs.join(' | '));
125
+ await ctx.close(); }
126
+
107
127
  for (const scheme of ['light', 'dark']) {
108
128
  const { p, ctx, errs, conv } = await open(390, scheme);
109
129
  await sleep(2500);
@@ -15,6 +15,7 @@ import { pmPost } from './http.js';
15
15
  import { $, $$, esc } from './premium-shell.js';
16
16
  import * as Pop from './bd-pop.js';
17
17
  import { avatar } from './bd-views.js';
18
+ import { adler } from './cozy-adler.js'; // Adler heads the New asks (batch 17 item 4-A, canvas AdM2 New asks)
18
19
 
19
20
  let A = null; // the page: { M(), load(), say(msg, undo?), panel(html, from, cls), close(), rowOf(key), openIni(r), openDoc(path), anchors(ws, board), programs(), reloadPrograms() }
20
21
  export function init(api) { A = api; }
@@ -57,10 +58,12 @@ function unsureHtml(L) {
57
58
  function asksHtml() {
58
59
  const L = asksOf(), phone = matchMedia('(max-width: 720px)').matches;
59
60
  if (M().board.self) return '<p class="bd-h3">New asks</p><p class="bd-amut">PMOS-self has no ask source. New work starts at the pmos-router skill.</p>';
60
- if (M().asks == null || M().asks.missing) return '<p class="bd-h3">New asks</p><p class="bd-amut">The new asks could not be read, so none is shown.</p>';
61
+ // AdM2: Adler heads the list in its mood: needs you while asks wait, calm when none does, honest when they could not be read
62
+ const face = (mood) => `<span class="bd-aface" aria-hidden="true">${adler(mood, 36, { label: false })}</span>`;
63
+ if (M().asks == null || M().asks.missing) return `<div class="bd-phead">${face('honest')}<p class="bd-h3">New asks</p></div><p class="bd-amut">The new asks could not be read, so none is shown.</p>`;
61
64
  const sure = L.filter((a) => !(a.products || []).length || picked[a.id]), unsure = L.filter((a) => (a.products || []).length && !picked[a.id]);
62
65
  const src = [...new Set(L.map((a) => a.source).filter(Boolean))];
63
- const head = `<div class="bd-phead"><p class="bd-h3" id="hAsks">${L.length} new ${L.length === 1 ? 'ask' : 'asks'}</p>${src.length ? `<span class="bd-amut">${M().board.all ? 'Across products' : 'For ' + esc(M().board.name || 'this board')} · from ${esc(src.slice(0, 3).join(', ').toLowerCase())}</span>` : ''}</div>`;
66
+ const head = `<div class="bd-phead">${face(L.length ? 'needs-you' : 'handled')}<p class="bd-h3" id="hAsks">${L.length} new ${L.length === 1 ? 'ask' : 'asks'}</p>${src.length ? `<span class="bd-amut">${M().board.all ? 'Across products' : 'For ' + esc(M().board.name || 'this board')} · from ${esc(src.slice(0, 3).join(', ').toLowerCase())}</span>` : ''}</div>`;
64
67
  if (!L.length) return head + '<p class="bd-amut">No new ask waits for triage.</p>';
65
68
  return head + `<div class="bd-acards">${sure.map((a, i) => askCard(a, i, phone)).join('')}</div>` + unsureHtml(unsure);
66
69
  }
@@ -13,6 +13,7 @@
13
13
  * · Nothing to show (Filter = None, nothing pinned): no lane at all.
14
14
  * Pure apart from the remembered fold and wire(), which hooks the hover and the fold onto the Board's body. */
15
15
  import { shownMs, msMode } from './bd-pins.js';
16
+ import { faceOr } from './cozy-adler.js'; // Adler once in the lane's header when a delivery is missed (batch 17 item 4-A, canvas AdM2)
16
17
  const TICK = '<svg aria-hidden="true" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12l5 5 9-10"/></svg>'; // the delivered mark, drawn (conformance R28-13: no glyph controls)
17
18
 
18
19
  const MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
@@ -161,6 +162,14 @@ function foldHtml(E, now) {
161
162
  return `<div class="dl-fold">${next}${rest}${none}</div>`;
162
163
  }
163
164
 
165
+ /** AdM2 "Deliveries lane · missed": once in the lane's header, never on an entry or a ◇. The honest S face stands where the flag stood and
166
+ * says the missed ones in its hover; with nothing missed the flag stays. */
167
+ export function missedWords(E) {
168
+ const L = E.filter((x) => x.late);
169
+ return L.length ? 'Missed: ' + L.slice(0, 3).map((x) => x.name + ' was due ' + md(x.date)).join('; ') + (L.length > 3 ? '; and ' + (L.length - 3) + ' more' : '') + '.' : '';
170
+ }
171
+ const laneMark = (E) => { const w = missedWords(E); return w ? `<span class="dl-ic dl-ad" title="${esc(w)}">${faceOr('honest', 's', SV(FLAG), { label: false })}</span>` : `<span class="dl-ic">${SV(FLAG)}</span>`; };
172
+
164
173
  /** The phone's card (XcalmA6Phone): "Next deliveries · N missed", the next 3 (missed first), and All (the list by date). */
165
174
  function phoneHtml(E, now) {
166
175
  const today = midnight(now), missed = E.filter((x) => x.late), ahead = E.filter((x) => !x.done && !x.late && x.date >= today);
@@ -168,7 +177,7 @@ function phoneHtml(E, now) {
168
177
  if (!L.length) return '';
169
178
  const all = E.filter((x) => !x.done);
170
179
  const line = (x) => `<button type="button" class="dl-pl"${attrs(x)} aria-label="${esc(hoverOf(x, now).replace(/\n/g, '. '))}"><small class="${toneOf(x)}">${esc(dateWords(x, now))}</small><b>${x.prog ? `<i class="dl-pg">${SV(PROG)}</i>` : ''}<span>${esc(x.name)}</span></b></button>`;
171
- return `<section class="dl-ph" aria-label="Next deliveries"><div class="dl-phh"><b>Next deliveries</b>${missed.length ? `<span class="late">· ${missed.length} missed</span>` : ''}<button type="button" class="dl-all" data-ms-lane="${listData(all)}" data-lane-name="Deliveries" aria-haspopup="dialog" aria-label="All deliveries">All</button></div>${L.map(line).join('')}</section>`;
180
+ return `<section class="dl-ph" aria-label="Next deliveries"><div class="dl-phh">${missed.length ? laneMark(E) : ''}<b>Next deliveries</b>${missed.length ? `<span class="late">· ${missed.length} missed</span>` : ''}<button type="button" class="dl-all" data-ms-lane="${listData(all)}" data-lane-name="Deliveries" aria-haspopup="dialog" aria-label="All deliveries">All</button></div>${L.map(line).join('')}</section>`;
172
181
  }
173
182
 
174
183
  /** The lane: the hook pm/bd-span.js calls ({ W, X, rows, groups, now, phone }), with o: { span, progState, mode }. '' when nothing lands. */
@@ -179,7 +188,7 @@ export function laneHtml(c, o = {}) {
179
188
  if (!E.length) return '';
180
189
  if (c.phone) return phoneHtml(E, now);
181
190
  const shut = folded();
182
- const name = `<div class="tg-n dl-n"><span class="dl-ic">${SV(FLAG)}</span><span class="dl-t"><b>Deliveries</b>${shut ? '' : '<small>What lands when</small>'}</span><button type="button" class="dl-fb" data-dl-fold aria-expanded="${!shut}" aria-label="${shut ? 'Open the Deliveries lane' : 'Fold the Deliveries lane to one line'}">${SV(shut ? CHR : CHD)}</button></div>`;
191
+ const name = `<div class="tg-n dl-n">${laneMark(E)}<span class="dl-t"><b>Deliveries</b>${shut ? '' : '<small>What lands when</small>'}</span><button type="button" class="dl-fb" data-dl-fold aria-expanded="${!shut}" aria-label="${shut ? 'Open the Deliveries lane' : 'Fold the Deliveries lane to one line'}">${SV(shut ? CHR : CHD)}</button></div>`;
183
192
  const body = shut ? foldHtml(E, now) : columnsOf(c.W, o.span).map((col) => columnHtml(col, E, now, c.X, o.span)).join('');
184
193
  return `<div class="tg-r tg-dl${shut ? ' shut' : ''}" role="region" aria-label="Deliveries, what lands when">${name}<div class="tg-p dl-p">${body}</div></div>`;
185
194
  }
@@ -79,9 +79,15 @@ html.ad-still .env-leaf { opacity: 0; }
79
79
  .env-steam, .env-z, .env-drop { opacity: .6; }
80
80
  .env-leaf { opacity: 0; }
81
81
  }
82
- svg.ad-svg.am { stroke: none; }
82
+ svg.ad-svg.am, svg.ad-scene, svg.ad-scene svg.am { stroke: none; } /* a page's own `svg { stroke: currentColor }` (the Board's) never outlines him */
83
83
  /* Your impact (batch 16 item 7, GmA1Home): the newest leaf on the sprout grows once, on a real event; still under reduced motion and Still */
84
84
  .ad-svg .ad-gw { animation: adGw 1.4s ease-out 1 both; transform-box: fill-box; transform-origin: right bottom; }
85
85
  @keyframes adGw { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
86
86
  @media (prefers-reduced-motion: reduce) { .ad-svg .ad-gw { animation: none; } }
87
87
  html.ad-still .ad-svg .ad-gw { animation: none; }
88
+
89
+ /* pull to refresh (batch 17 item 4-B, AdP2; pm/cozy-pull.js): his head rises over the bottom edge as the finger pulls, glasses on while it reads */
90
+ .cz-pull { position: relative; height: var(--cz-pull, 0px); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; gap: 10px; border-bottom: 2px solid var(--cz-hair); margin-bottom: 8px; }
91
+ .cz-pull-ad { display: inline-flex; transform: translateY(max(0px, calc(44px - var(--cz-pull, 0px)))); }
92
+ .cz-pull-t { font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink3); padding-bottom: 8px; }
93
+ .cz-pull-t:empty { display: none; }
@@ -10,6 +10,8 @@
10
10
  * mountToastFaces(doc) every #toast gets the S face in the mood of its words
11
11
  * prefs(), loadPrefs(), savePref(key, value) Settings > Adler (AdM5): adler.amount, adler.motion, adler.celebrate, adler.quiet
12
12
  * asleep(now), mayCelebrate(now), celebrated(now) the after-22:00 rule and "celebrate at most once a week"
13
+ * celebrateOnce(key, now) a real win celebrates on its first view only (the delivered milestone in the Board panel, AdH2)
14
+ * faceOr(mood, size, icon, o) his face where a plain icon stood; the icon stays with Settings > Adler > Off (batch 17 item 4-A)
13
15
  *
14
16
  * The binding rules (design-principles.md, "The Adler rule"): the mood comes from real state only, and no trigger means resting or handled;
15
17
  * one Adler per screen; never inside data (rows, bars, charts, KR rows, reports, connector lists); he never replaces a row's dot or box;
@@ -162,6 +164,18 @@ const weekOf = (now) => { const d = new Date(now); d.setHours(0, 0, 0, 0); d.set
162
164
  /** Celebrating: only for a real event, at most once a week, and never with Celebrations: Never. */
163
165
  export const mayCelebrate = (now = Date.now()) => P['adler.celebrate'] === 'real' && store.get('pmos.adler.joy') !== weekOf(now);
164
166
  export const celebrated = (now = Date.now()) => store.set('pmos.adler.joy', weekOf(now));
167
+ /** A real win shows once (AdH2, AdM2 "Milestone delivered"): true on the first view of `key`, and only when a celebration is allowed this
168
+ * week. The page keeps the answer while it lives, so a redraw does not turn him calm mid-view; every later view is calm. */
169
+ const joyNow = new Set();
170
+ export function celebrateOnce(key, now = Date.now()) {
171
+ const k = 'pmos.adler.once.' + key;
172
+ if (joyNow.has(k)) return true;
173
+ if (store.get(k)) return false;
174
+ store.set(k, '1');
175
+ if (!mayCelebrate(now)) return false;
176
+ celebrated(now); joyNow.add(k);
177
+ return true;
178
+ }
165
179
  /** The day's first open of the morning scene (AdP1 vs AdB1: the scene on the first open of the day, the M face after). */
166
180
  export function firstOpenToday(key = 'day', now = Date.now()) { const k = 'pmos.adler.first.' + key, d = new Date(now).toDateString(); if (store.get(k) === d) return false; store.set(k, d); return true; }
167
181
 
@@ -198,6 +212,9 @@ export function adler(mood, size = 'm', o = {}) {
198
212
  const w = Math.round(px * 200 / 252);
199
213
  return `<svg class="${cls} ad-fig" width="${w}" height="${px}" viewBox="0 0 200 252" overflow="visible" ${labelAttr(o, mood, extra)}>${defs(p)}<ellipse cx="100" cy="246" rx="62" ry="7" class="${F('shadow')}" opacity=".16" filter="url(#${p}b)"/><g class="ad-br">${full(m, p, o.prop)}</g></svg>`;
200
214
  }
215
+ /** His face where a plain icon stood (the Jira chip, the charter's check line, the Deliveries lane): with Settings > Adler > Off the icon
216
+ * stays, so the press still says what it does. */
217
+ export const faceOr = (mood, size, icon, o = {}) => (P['adler.amount'] === 'off' ? icon : adler(mood, size, o));
201
218
  /** AdP6: only his ears and the top of his head, peeking over the floating button. */
202
219
  export function adlerPeek(o = {}) {
203
220
  addCss();
@@ -102,6 +102,8 @@ body.bd-page main.bd-main { position: relative; max-width: none; margin: 16px; p
102
102
  .bd-chipset { display: contents; }
103
103
  .bd-chip { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--cz-hair); background: var(--cz-card); display: inline-flex; align-items: center; gap: 6px; font: 600 var(--fs-2) var(--cz-sans); color: var(--cz-ink2); white-space: nowrap; cursor: pointer; text-decoration: none; flex: none; }
104
104
  .bd-chip:hover { background: var(--cz-well); }
105
+ .bd-adc { padding-left: 4px; } /* the Jira chip's Adler face (batch 17 item 4-A) sits where the refresh icon stood */
106
+ .bd-chip.bd-adc svg.ad-svg { width: 24px; height: 24px; }
105
107
  .bd-chip svg { width: 14px; height: 14px; flex: none; }
106
108
  .bd-chip b { font-weight: 800; color: var(--cz-ink); }
107
109
  .bd-chip.gh { border-color: transparent; background: transparent; padding: 0 8px; font-weight: 800; }
@@ -500,6 +502,8 @@ button.tg-n:hover b { color: var(--cz-blueink); }
500
502
  .tg-dl.shut .dl-n { align-items: center; padding-top: 8px; }
501
503
  .dl-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--cz-well); display: grid; place-items: center; color: var(--cz-ink2); }
502
504
  .dl-ic svg, .dl-fb svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
505
+ .dl-ad { background: none; } /* a missed delivery: Adler's honest face stands where the flag stood (batch 17 item 4-A) */
506
+ .dl-ic.dl-ad svg.ad-svg { width: 24px; height: 24px; fill: initial; stroke: none; }
503
507
  .dl-t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
504
508
  .dl-t b { font-size: var(--fs-3); font-weight: 800; }
505
509
  .dl-t small { font-size: var(--fs-2); color: var(--cz-ink3); }
@@ -832,6 +836,7 @@ a.bd-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration:
832
836
  /* the row menu, the asks, the trend */
833
837
  .bd-menu .bd-mlbl:first-child { color: var(--cz-ink); font-size: var(--fs-2); }
834
838
  .bd-phead { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px 6px; flex-wrap: wrap; }
839
+ .bd-aface { display: inline-flex; align-self: center; flex: none; } /* Adler heads New asks (batch 17 item 4-A) */
835
840
  .bd-acards { display: flex; flex-direction: column; gap: 8px; padding: 0 4px 4px; }
836
841
  .bd-acard { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--cz-hair); background: var(--cz-card); font-size: var(--fs-3); }
837
842
  .bd-acard.row { flex-direction: row; align-items: center; gap: 10px; cursor: pointer; padding: 10px 12px; }
@@ -78,6 +78,11 @@
78
78
  .ev-fd { z-index: 2; }
79
79
  .ev-fd { position: absolute; top: 6px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--cz-card); box-sizing: content-box; pointer-events: none; }
80
80
  .ev-fd[hidden] { display: none; }
81
+ /* Adler's ears over the closed button when a call is the PM's (batch 17 item 4-B, AdP6): a phone only; they never take a press */
82
+ .cz-ears { position: absolute; bottom: 50px; left: 6px; width: 44px; height: 22px; z-index: 0; pointer-events: none; }
83
+ .cz-ears[hidden] { display: none; }
84
+ @media (min-width: 761px) { .cz-ears { display: none; } }
85
+ @media (max-width: 760px) { .cz-ears { left: auto; right: 6px; } }
81
86
  .ev-fd.you { left: 4px; background: var(--cz-blue); }
82
87
  .ev-fd.risk { right: 2px; background: var(--cz-dot-risk); }
83
88
  @media (max-width: 760px) {
@@ -207,6 +212,9 @@
207
212
  .ev-st .ev-pick { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 12px; border-radius: 999px; background: var(--cz-well); font: inherit; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink2); border: 0; cursor: pointer; }
208
213
  .ev-st .ev-pick svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
209
214
  .ev-st .ev-upd { display: flex; align-items: center; gap: 12px; margin-top: auto; }
215
+ /* Adler's moments in Settings (batch 17 item 4-B, AdM4): one face per section; a failure line takes the honest face */
216
+ .ev-st .ev-ad { display: inline-flex; align-items: center; flex: none; }
217
+ .ev-st .ev-say.honest { display: flex; align-items: center; gap: 8px; }
210
218
  .ev-st .ev-upd p { flex: 1; margin: 0; }
211
219
  .ev-st .ev-sw { height: 28px; min-width: 52px; border-radius: 999px; border: 0; background: var(--cz-well2); color: var(--cz-ink3); font: inherit; font-size: var(--fs-2); font-weight: 700; cursor: pointer; }
212
220
  .ev-st .ev-sw[aria-checked="true"] { background: var(--cz-bluebg); color: var(--cz-blueink); }
@@ -767,3 +767,10 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
767
767
  .hm-av.hm-adler { width: 36px; height: 36px; background: none; border-radius: 0; overflow: visible; }
768
768
  .hm-empty-ad { display: flex; flex-direction: column; align-items: center; gap: 8px; }
769
769
  .hm-empty-ad p { margin: 0; }
770
+ .hm-chat .ctxmore { display: contents; }
771
+ .hm-chat .ctxmore > summary { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 12px; color: var(--cz-ink3); font-size: var(--fs-1); cursor: pointer; list-style: none; }
772
+ .hm-chat .ctxmore > summary::-webkit-details-marker { display: none; }
773
+ .hm-chat .ctxmore > summary:hover { color: var(--cz-ink); }
774
+ .hm-chat .ctxmore[open] > summary { display: none; }
775
+ .hm-chat .ctxmore > .ctxc { display: contents; }
776
+ .hm-chat .ctxmore:not([open]) > .ctxc { display: none; }
@@ -8,6 +8,8 @@
8
8
  .cz-live:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
9
9
  .lv-row:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
10
10
  .cz-live .lv-g { display: inline-flex; align-items: center; gap: 6px; }
11
+ .cz-live .lv-ad { display: inline-flex; align-items: center; } /* Adler with headphones while the meeting records (AdM1) */
12
+ .cz-live .lv-ad .ad-sp { animation: none; }
11
13
  .cz-live .lv-sp { width: 1px; height: 16px; background: var(--cz-hair); }
12
14
  .cz-live .lv-ms { display: inline-flex; align-items: center; gap: 6px; }
13
15
 
@@ -13,11 +13,14 @@
13
13
  * opts.go(item) → true the page opens the item itself (Home: the session's chat, the meeting); else the row's link is followed
14
14
  * opts.open() → id the session open on this page now: its row is tinted
15
15
  * Reads GET /api/live every 10 s while the page is shown, and on the cz:live event (Home sends it after the PM opens or answers a
16
- * session); the recording comes from pm/rec-state.js. Nothing is written. */
16
+ * session); the recording comes from pm/rec-state.js. Nothing is written.
17
+ * Adler (batch 17 item 4-B, AdM1 "Live recording pill", AdH5): while a meeting records, his S face with headphones follows the clock in the
18
+ * pill. The red dot stays: the face never replaces the row's mark. Paused, he is not shown (nobody is listening). */
17
19
  import { onRecording } from './rec-state.js';
18
20
  import { ownTab, bring } from './rec-tab-core.js';
19
21
  import { liveItems, keepOrder, pillLabel, rowLabel, clock, elapsed } from './live-model.js';
20
- import { wedgeHtml } from './ctx-wedge.js'; // the same context pie as Home's rows, before the time (batch 13 item 8)
22
+ import { wedgeHtml } from './ctx-wedge.js';
23
+ import { adler } from './cozy-adler.js'; // the same context pie as Home's rows, before the time (batch 13 item 8)
21
24
 
22
25
  const esc = (v) => String(v == null ? '' : v).replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' })[c]);
23
26
  const SHEET = new URL('./cozy-live-pill.css', import.meta.url).href;
@@ -67,7 +70,7 @@ export function mountLivePill(doc = document, opts = {}) {
67
70
  }
68
71
  function pillHtml(list) {
69
72
  const r = list.find((x) => x.kind === 'rec'), rest = list.filter((x) => x.kind !== 'rec');
70
- return (r ? `<span class="lv-g"><i class="lv-m rec${r.paused ? ' paused' : ''}"></i><span class="lv-tm${r.paused ? '' : ' rec'}">${esc(r.time)}</span></span>${rest.length ? '<span class="lv-sp"></span>' : ''}` : '')
73
+ return (r ? `<span class="lv-g"><i class="lv-m rec${r.paused ? ' paused' : ''}"></i><span class="lv-tm${r.paused ? '' : ' rec'}">${esc(r.time)}</span>${r.paused ? '' : `<span class="lv-ad">${adler('thinking', 18, { label: false, prop: 'headphones', id: 'lvrec' })}</span>`}</span>${rest.length ? '<span class="lv-sp"></span>' : ''}` : '')
71
74
  + (rest.length ? `<span class="lv-ms">${rest.map((x) => markHtml(x.mark, false)).join('')}</span>` : '');
72
75
  }
73
76
  function draw() {