create-pmos 0.553.0 → 0.554.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 (175) hide show
  1. package/package.json +20 -14
  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/briefing-premium-board-test.js +4 -4
  7. package/workspace/briefing-premium-initiative-test.js +2 -2
  8. package/workspace/briefing-premium-test.js +1 -1
  9. package/workspace/changelog.json +19 -0
  10. package/workspace/chat-asks-test.js +5 -5
  11. package/workspace/ev-everywhere-test.js +2 -2
  12. package/workspace/goals-clear-ui-test.js +1 -1
  13. package/workspace/guide/agent-capabilities.md +31 -31
  14. package/workspace/guide/claude-proposes.md +68 -68
  15. package/workspace/guide/cli.md +22 -22
  16. package/workspace/guide/cloud.md +3 -3
  17. package/workspace/guide/home.md +38 -38
  18. package/workspace/guide/index.md +5 -5
  19. package/workspace/guide/intelligence-okr-goals.md +4 -4
  20. package/workspace/guide/layout.md +23 -23
  21. package/workspace/guide/notes.md +8 -8
  22. package/workspace/guide/programs.md +17 -17
  23. package/workspace/guide/reports.md +16 -16
  24. package/workspace/guide/settings-and-switches.md +37 -37
  25. package/workspace/guide/statuses.md +3 -3
  26. package/workspace/home-other-product-test.js +8 -8
  27. package/workspace/home-pill-test.js +3 -3
  28. package/workspace/home-rows-test.js +7 -7
  29. package/workspace/intel-report-ui-test.js +1 -1
  30. package/workspace/intelligence-gaps-ui-test.js +2 -2
  31. package/workspace/lib/agent-roles.js +1 -1
  32. package/workspace/lib/autonomy.js +1 -1
  33. package/workspace/lib/bg-queue.js +1 -1
  34. package/workspace/lib/briefing-premium-agent.js +2 -2
  35. package/workspace/lib/decision-memory.js +2 -2
  36. package/workspace/lib/driver-decide.js +2 -2
  37. package/workspace/lib/driver.js +6 -2
  38. package/workspace/lib/folder-needs.js +1 -1
  39. package/workspace/lib/goal-chat.js +5 -5
  40. package/workspace/lib/goal-watch.js +1 -1
  41. package/workspace/lib/grill-runs.js +5 -5
  42. package/workspace/lib/idle-lab.js +5 -5
  43. package/workspace/lib/impact-runs.js +2 -2
  44. package/workspace/lib/job-graph.js +2 -2
  45. package/workspace/lib/metric-draft-runs.js +4 -4
  46. package/workspace/lib/metric-read-runs.js +5 -5
  47. package/workspace/lib/news-for-you.js +1 -1
  48. package/workspace/lib/proposal-runs.js +6 -6
  49. package/workspace/lib/refresh.js +1 -1
  50. package/workspace/lib/routes-board-premium.js +1 -1
  51. package/workspace/lib/routes-goal-status.js +4 -4
  52. package/workspace/lib/routes-impact.js +1 -1
  53. package/workspace/lib/routes-insight-moves.js +1 -1
  54. package/workspace/lib/routes-loose.js +2 -2
  55. package/workspace/lib/routes-mentions.js +1 -1
  56. package/workspace/lib/routes-metric-drafts.js +9 -9
  57. package/workspace/lib/routes-proposals.js +8 -8
  58. package/workspace/lib/routes-ready-reports.js +1 -1
  59. package/workspace/lib/routes-slash.js +1 -1
  60. package/workspace/lib/source-heal.js +3 -3
  61. package/workspace/lib/state-root.js +22 -1
  62. package/workspace/lib/task-items.js +1 -1
  63. package/workspace/lib/task-links.js +2 -2
  64. package/workspace/lib/today.js +2 -2
  65. package/workspace/live-pill-round-test.js +1 -1
  66. package/workspace/metric-drafts-ui-test.js +1 -1
  67. package/workspace/milestone-suggest-test.js +5 -5
  68. package/workspace/news-viewers-test.js +3 -3
  69. package/workspace/okr-goals-ui-test.js +1 -1
  70. package/workspace/package-lock.json +2 -2
  71. package/workspace/package.json +1 -1
  72. package/workspace/premium-chat-chart-tab-test.js +1 -1
  73. package/workspace/premium-chat-context-test.js +4 -4
  74. package/workspace/premium-chat-goal-setup-test.js +3 -3
  75. package/workspace/premium-chat-goal-view-test.js +1 -1
  76. package/workspace/premium-chat-line-test.js +6 -6
  77. package/workspace/premium-chat-notes-test.js +4 -4
  78. package/workspace/premium-chat-report-tab-test.js +4 -4
  79. package/workspace/premium-rec-now-test.js +2 -2
  80. package/workspace/public/pm/batch-press.js +4 -4
  81. package/workspace/public/pm/bd-fc-card.js +1 -1
  82. package/workspace/public/pm/bd-next.js +10 -10
  83. package/workspace/public/pm/bd-prog-panel.js +5 -5
  84. package/workspace/public/pm/chat-ask.js +1 -1
  85. package/workspace/public/pm/chat-context.js +3 -3
  86. package/workspace/public/pm/cozy-evmodel.js +1 -1
  87. package/workspace/public/pm/cozy-home.css +1 -1
  88. package/workspace/public/pm/cozy-lab-ins.js +4 -4
  89. package/workspace/public/pm/cozy-lab.js +1 -1
  90. package/workspace/public/pm/cozy-news.js +2 -2
  91. package/workspace/public/pm/cozy-onboard.js +2 -2
  92. package/workspace/public/pm/cozy-rec-now.js +5 -5
  93. package/workspace/public/pm/cozy-rec-present.js +1 -1
  94. package/workspace/public/pm/cozy-reveal.js +2 -2
  95. package/workspace/public/pm/cozy-settings.js +19 -19
  96. package/workspace/public/pm/cozy-steps.js +2 -2
  97. package/workspace/public/pm/cozy-viewer.js +1 -1
  98. package/workspace/public/pm/ctx-wedge.js +1 -1
  99. package/workspace/public/pm/dash-view.js +1 -1
  100. package/workspace/public/pm/goal-chat.js +6 -6
  101. package/workspace/public/pm/good-morning.js +2 -2
  102. package/workspace/public/pm/grill-words.js +1 -1
  103. package/workspace/public/pm/home-app.js +19 -19
  104. package/workspace/public/pm/home-ask.js +1 -1
  105. package/workspace/public/pm/home-chat.js +6 -6
  106. package/workspace/public/pm/home-data.js +2 -2
  107. package/workspace/public/pm/home-day.js +3 -3
  108. package/workspace/public/pm/home-drift.js +1 -1
  109. package/workspace/public/pm/home-goal.js +1 -1
  110. package/workspace/public/pm/home-impact.js +1 -1
  111. package/workspace/public/pm/home-ini.js +1 -1
  112. package/workspace/public/pm/home-line.js +5 -5
  113. package/workspace/public/pm/home-mentions.js +4 -4
  114. package/workspace/public/pm/home-moment.js +1 -1
  115. package/workspace/public/pm/home-need.js +1 -1
  116. package/workspace/public/pm/home-phone-card.js +1 -1
  117. package/workspace/public/pm/home-stage-card.js +2 -2
  118. package/workspace/public/pm/home-sweep.js +1 -1
  119. package/workspace/public/pm/home-today.js +2 -2
  120. package/workspace/public/pm/ini-about.js +2 -2
  121. package/workspace/public/pm/ini-agent.js +5 -5
  122. package/workspace/public/pm/ini-links.js +5 -5
  123. package/workspace/public/pm/ini-props.js +11 -11
  124. package/workspace/public/pm/ini-view-model.js +1 -1
  125. package/workspace/public/pm/ini-view.js +2 -2
  126. package/workspace/public/pm/intent.js +3 -3
  127. package/workspace/public/pm/loose-props.js +5 -5
  128. package/workspace/public/pm/metric-drafts.js +1 -1
  129. package/workspace/public/pm/ms-suggest.js +3 -3
  130. package/workspace/public/pm/next-prompt-ui.js +2 -2
  131. package/workspace/public/pm/okr-list.js +1 -1
  132. package/workspace/public/pm/page-chat.js +2 -2
  133. package/workspace/public/pm/premium-attach.js +1 -1
  134. package/workspace/public/pm/premium-initiative-head.js +1 -1
  135. package/workspace/public/pm/premium-insights.js +3 -3
  136. package/workspace/public/pm/premium-meeting.js +1 -1
  137. package/workspace/public/pm/premium-mtg-replay.js +1 -1
  138. package/workspace/public/pm/premium-notes.js +2 -2
  139. package/workspace/public/pm/premium-report-read.js +6 -6
  140. package/workspace/public/pm/premium-report-tab.js +7 -7
  141. package/workspace/public/pm/premium-shell.js +18 -18
  142. package/workspace/public/pm/premium-vw-ctx.js +3 -3
  143. package/workspace/public/pm/premium-vw-jira.js +1 -1
  144. package/workspace/public/pm/premium-welcome.js +1 -1
  145. package/workspace/public/pm/prog-order.js +2 -2
  146. package/workspace/public/pm/program-charter.js +3 -3
  147. package/workspace/public/pm/program-model.js +1 -1
  148. package/workspace/public/pm/ready-lib.js +4 -4
  149. package/workspace/public/pm/report-flow.js +7 -7
  150. package/workspace/public/pm/report-orders-ui.js +2 -2
  151. package/workspace/public/pm/split-merge.js +5 -5
  152. package/workspace/public/pm/story.js +1 -1
  153. package/workspace/public/pm/task-card.js +1 -1
  154. package/workspace/public/pm/tk-draft.js +1 -1
  155. package/workspace/public/pm/tk-send.js +2 -2
  156. package/workspace/public/pm/wf-page.js +2 -2
  157. package/workspace/ready-dash-ui-test.js +1 -1
  158. package/workspace/rec-present-test.js +2 -2
  159. package/workspace/server.js +12 -8
  160. package/workspace/session-names-test.js +3 -3
  161. package/workspace/skills/doc-check.skill +2 -0
  162. package/workspace/skills/idle-lab-prototype.skill +2 -0
  163. package/workspace/skills/measure.skill +2 -0
  164. package/workspace/skills/metric-read.skill +2 -0
  165. package/workspace/skills/milestone-review.skill +2 -0
  166. package/workspace/skills/report-biweekly.skill +2 -0
  167. package/workspace/skills/report-daily.skill +2 -0
  168. package/workspace/skills/report-design.skill +2 -0
  169. package/workspace/skills/report-monthly.skill +2 -0
  170. package/workspace/skills/report-weekly.skill +2 -0
  171. package/workspace/split-merge-ui-test.js +3 -3
  172. package/workspace/stage-card-test.js +4 -4
  173. package/workspace/task-links-test.js +1 -1
  174. package/workspace/task-views-test.js +7 -7
  175. package/workspace/tk-tasks-test.js +2 -2
@@ -92,7 +92,7 @@ const notes = (key = KEY) => lib.listNotes({ runtimeDir: T.STATE_DIR, key }).not
92
92
  await page.click('#ntM [data-ntgo]:nth-child(2)');
93
93
  ok('N4 picking a note shows it', /call Dana/.test(await page.textContent('#ntEd')) && (await page.textContent('#ntSw')).trim() === 'call Dana');
94
94
  /* N5 */
95
- ok('N5 New note, Add selection and Share with Claude are icons with a name and a tooltip, no words', await page.evaluate(() => ['new', 'sel', 'share'].every((k) => { const b = document.querySelector(`[data-nt="${k}"]`); return b && !b.textContent.trim() && b.querySelector('svg') && b.getAttribute('aria-label') && b.title; })));
95
+ ok('N5 New note, Add selection and Share with PMOS are icons with a name and a tooltip, no words', await page.evaluate(() => ['new', 'sel', 'share'].every((k) => { const b = document.querySelector(`[data-nt="${k}"]`); return b && !b.textContent.trim() && b.querySelector('svg') && b.getAttribute('aria-label') && b.title; })));
96
96
  /* N6 */
97
97
  await page.evaluate(() => { const p = [...document.querySelectorAll('#ntEd p')].find((x) => /ask about/.test(x.textContent)); const r = document.createRange(); r.selectNodeContents(p); getSelection().removeAllRanges(); getSelection().addRange(r); });
98
98
  await page.click('[data-nt="sel"]');
@@ -102,14 +102,14 @@ const notes = (key = KEY) => lib.listNotes({ runtimeDir: T.STATE_DIR, key }).not
102
102
  await page.fill('#hmIn', 'Plan the deck from my note');
103
103
  await page.click('#ntSw'); await page.click('#ntM [data-ntgo]:nth-child(1)');
104
104
  await page.click('[data-nt="share"]');
105
- ok('N7 Share with Claude puts the note on the message as a chip', !!(await until(async () => page.evaluate(() => { const c = document.querySelector('#hmFiles .hm-att'); return c && /Q4 review prep/.test(c.textContent) && /Note/.test(c.textContent); }))));
105
+ ok('N7 Share with PMOS puts the note on the message as a chip', !!(await until(async () => page.evaluate(() => { const c = document.querySelector('#hmFiles .hm-att'); return c && /Q4 review prep/.test(c.textContent) && /Note/.test(c.textContent); }))));
106
106
  await shot(page, 'shared-1280-light');
107
107
  await page.click('#hmForm [type=submit]');
108
108
  const ask = await until(async () => asks.find((a) => a.path.endsWith('/ask')));
109
109
  const q4 = notes().find((x) => x.title === 'Q4 review prep');
110
110
  ok('N7 send names the note as notes/<id>.md', !!ask && ask.body.text === 'Plan the deck from my note' && JSON.stringify(ask.body.files) === JSON.stringify(['notes/' + q4.id + '.md']), JSON.stringify(ask && ask.body));
111
111
  const paths = lib.pathsOf({ runtimeDir: T.STATE_DIR, key: KEY, names: ask.body.files });
112
- ok('N7 the name resolves to the note file Claude reads', paths.ok && paths.paths[0] === q4.path);
112
+ ok('N7 the name resolves to the note file PMOS reads', paths.ok && paths.paths[0] === q4.path);
113
113
  ok('N7 the note stays after the send', notes().length === 2);
114
114
  /* N8 */
115
115
  st.messages = [{ role: 'user', text: lib.withFiles('Plan the deck from my note', paths.paths), at: '2026-10-21T08:00:00Z' }]; st.session = 's-notes';
@@ -134,7 +134,7 @@ const notes = (key = KEY) => lib.listNotes({ runtimeDir: T.STATE_DIR, key }).not
134
134
  await until(async () => page.evaluate(() => !document.getAnimations().some((a) => a.playState === 'running'))); // the popup's entrance scales it: measure once it has settled
135
135
  { const ic = await page.evaluate(() => [...document.querySelectorAll('.ntic')].map((b) => (b.dataset.nt || b.id || b.className) + ':' + Math.round(b.getBoundingClientRect().height))); ok(`N10 ${scheme}: the icon buttons are 44px targets`, ic.length > 0 && ic.every((x) => +x.split(':').pop() >= 44), ic.join()); }
136
136
  await page.click('[data-nt="share"]');
137
- ok(`N10 ${scheme}: Share with Claude goes back to the conversation with the chip`, !!(await until(async () => (await page.isVisible('#hmFiles .hm-att')) && (await page.$('#czViewer:not([hidden])')) === null)));
137
+ ok(`N10 ${scheme}: Share with PMOS goes back to the conversation with the chip`, !!(await until(async () => (await page.isVisible('#hmFiles .hm-att')) && (await page.$('#czViewer:not([hidden])')) === null)));
138
138
  ok(`N10 ${scheme}: no page errors`, errors.length === 0, errors.join(' | '));
139
139
  await ctx.close();
140
140
  }
@@ -80,11 +80,11 @@ const look = () => {
80
80
 
81
81
  { const { p, ctx, errs, st } = await open(1280, 'light', [ASK, ANSWER]);
82
82
  const s0 = await p.evaluate(look);
83
- ok('R1 the block is a chip under Claude\'s words, never JSON; the PM\'s turn shows as typed', /Social login weekly/.test(s0.chip || '') && /New report/.test(s0.chip || '') && !s0.json && s0.user.includes('make this a report for the growth leads'), JSON.stringify(s0));
83
+ ok('R1 the block is a chip under PMOS\'s words, never JSON; the PM\'s turn shows as typed', /Social login weekly/.test(s0.chip || '') && /New report/.test(s0.chip || '') && !s0.json && s0.user.includes('make this a report for the growth leads'), JSON.stringify(s0));
84
84
  ok('R1 opening the chat opens no tab by itself', s0.tabs.length === 0, JSON.stringify(s0));
85
85
  await p.click('#hmLog [data-report-open]');
86
86
  const s1 = await until(async () => { const v = await p.evaluate(look); return v.pane ? v : null; }) || await p.evaluate(look);
87
- ok('R3 a new report asks its questions first (RfH4): Waits on your answers, Claude\'s picks filled in (Slides, Growth leads, Once), the standard look, its sources, Nothing goes out and Draft it', /Report · Growth leads/.test(s1.tabs.join(' ')) && /Social login weekly/.test(s1.title)
87
+ ok('R3 a new report asks its questions first (RfH4): Waits on your answers, PMOS\'s picks filled in (Slides, Growth leads, Once), the standard look, its sources, Nothing goes out and Draft it', /Report · Growth leads/.test(s1.tabs.join(' ')) && /Social login weekly/.test(s1.title)
88
88
  && /Waits on your answers/.test(s1.pane || '') && /my pick/.test(s1.pane || '') && /Standard PMOS look/.test(s1.pane || '') && /GA4/.test(s1.pane || '') && /Nothing goes out/.test(s1.pane || '')
89
89
  && await p.evaluate(() => document.querySelector('#czViewer [data-rt="fmt|google-slides"]').getAttribute('aria-checked') === 'true' && document.querySelector('#czViewer [data-rt="rep|0"]').getAttribute('aria-checked') === 'true' && document.querySelector('#czViewer input[data-rt="aud"]').value === 'Growth leads' && !!document.querySelector('#czViewer [data-rt="draftit"]:not([disabled])'))
90
90
  && !/Customer service|Follow a sample deck/.test(s1.pane || '') && !(await p.$('#czViewer .rt, #czViewer .obody, #dlg:not([hidden])')), JSON.stringify(s1));
@@ -98,12 +98,12 @@ const look = () => {
98
98
  const L = ledger(), setup = L.find((l) => l.ev === 'setup');
99
99
  const T1 = setup ? require('./lib/report-templates.js').fold(require('./lib/report-templates.js').readLines(F.team, setup.id)) : null;
100
100
  ok('R4 Draft it records the report, pauses it (Once) and records T1', !!setup && setup.output === 'google-slides' && setup.audience === 'Growth leads' && L.some((l) => l.ev === 'pause' && l.id === setup.id) && T1 && T1.current === 1, JSON.stringify([L.map((l) => l.ev), T1]));
101
- ok('R4 the report\'s current state opens: its first draft in the reader, Claude\'s review under it (RfH2), the template icon in the header', s3.reader && /I read it as your readers would/.test(s3.review || '') && s3.tpl, JSON.stringify(s3).slice(0, 600));
101
+ ok('R4 the report\'s current state opens: its first draft in the reader, PMOS\'s review under it (RfH2), the template icon in the header', s3.reader && /I read it as your readers would/.test(s3.review || '') && s3.tpl, JSON.stringify(s3).slice(0, 600));
102
102
  if (shots) await p.screenshot({ path: `${shots}/draft-1280-light.png` });
103
103
  // the chat icon (Wawan, 2026-11-02): the report's own conversation opens in Home's chat, the report stays beside it
104
104
  await p.click('#czViewer [data-cz-vw-p="chat"]');
105
105
  const ch = await until(() => p.evaluate(() => { const i = document.getElementById('hmIn'); return i && i.placeholder === 'Change the report' ? { ph: i.placeholder, log: (document.getElementById('hmLog') || {}).textContent || '', reader: !!document.querySelector('#czViewer .vz-slide, #czViewer .vz-rp0') } : null; }), 8000);
106
- ok('R4 the chat icon opens the report\'s own conversation beside it: Claude asks what to change, the report stays open', !!ch && /Tell me what to change in/.test(ch.log) && ch.reader, JSON.stringify(ch));
106
+ ok('R4 the chat icon opens the report\'s own conversation beside it: PMOS asks what to change, the report stays open', !!ch && /Tell me what to change in/.test(ch.log) && ch.reader, JSON.stringify(ch));
107
107
  await p.click('#czViewer [data-cz-vw-p="template"]');
108
108
  await until(() => p.evaluate(() => !!document.querySelector('#czViewer .vz[data-panel="template"] [data-rt="fmt|google-doc"]')));
109
109
  await p.click('#czViewer [data-rt="fmt|google-doc"]');
@@ -105,9 +105,9 @@ async function context(o = {}) {
105
105
 
106
106
  /* N4 a question */
107
107
  await p.fill('.rn-mine textarea', 'Did Ana give a date?');
108
- ok('N4 a line that ends with ? asks Claude', await p.$eval('.rn-send', (b) => b.getAttribute('aria-label')) === 'Ask Claude');
108
+ ok('N4 a line that ends with ? asks PMOS', await p.$eval('.rn-send', (b) => b.getAttribute('aria-label')) === 'Ask PMOS');
109
109
  await p.press('.rn-mine textarea', 'Enter');
110
- ok('N4 the question goes to Claude with the note, and shows at once with Claude at work', await until(() => posted(A.S, '/api/meeting-focus/ask').some((x) => x.body.question === 'Did Ana give a date?' && x.body.note === 'n2') && p.evaluate(() => /Did Ana give a date\?/.test(document.querySelector('.rn-chx .q').textContent) && !!document.querySelector('.rn-chx [aria-label="Claude is answering"]'))));
110
+ ok('N4 the question goes to PMOS with the note, and shows at once with PMOS at work', await until(() => posted(A.S, '/api/meeting-focus/ask').some((x) => x.body.question === 'Did Ana give a date?' && x.body.note === 'n2') && p.evaluate(() => /Did Ana give a date\?/.test(document.querySelector('.rn-chx .q').textContent) && !!document.querySelector('.rn-chx [aria-label="PMOS is answering"]'))));
111
111
  A.M.asks[0].state = 'answered';
112
112
  A.M.notes.push({ ask: 'fa1', cat: 'Answer', body: 'Yes: Friday (she said it at 4:05).', from: ['talk', 'last'], show: 'now' });
113
113
  ok('N4 the answer arrives above the box with its source, without waiting for the tab\'s 15 s read', await until(() => p.evaluate(() => { const a = document.querySelector('.rn-chx .ca'); return !!a && /Yes: Friday/.test(a.textContent) && /From the talk and last time/.test(a.textContent); }), 10000));
@@ -69,7 +69,7 @@ export function batchOf(props) {
69
69
  const sure = live.reduce((n, g) => n + g.lines.length, 0);
70
70
  return { groups: live, check, sure, n: sure + check.length };
71
71
  }
72
- const CHECK_WORD = { outcome: 'Expected outcome', description: 'Description', found: 'Found elsewhere', grill: 'Grill finding', prototyped: 'Claude prototyped it', improved: 'Claude improved it', scanned: 'Claude scanned for it' };
72
+ const CHECK_WORD = { outcome: 'Expected outcome', description: 'Description', found: 'Found elsewhere', grill: 'Grill finding', prototyped: 'PMOS prototyped it', improved: 'PMOS improved it', scanned: 'PMOS scanned for it' };
73
73
  const checkTitle = (p) => clip(p.title || (p.group === 'outcome' && p.items && p.items[0] ? p.items[0].title : '') || (p.data && p.data.text) || CHECK_WORD[p.group] || p.group, 110);
74
74
 
75
75
  /* ── the Viewer ── */
@@ -95,7 +95,7 @@ function bodyHtml() {
95
95
  const phone = isPhone();
96
96
  const secs = B.groups.map((g) => ({ id: g.group, title: g.title, count: g.lines.length, open: !phone, html: g.lines.map((l) => lineHtml(g.group, l)).join('') }));
97
97
  if (B.check.length) secs.push({ id: 'check', title: 'Check these', count: B.check.length, open: !phone || !B.sure, html: '<p class="bp-sub">Each one needs its own answer.</p>' + B.check.map(checkHtml).join('') });
98
- return `<div class="pp bp">${lead}${VW.czSections(secs, { key: 'batch' })}<button type="button" class="bp-full" data-bp-full>${SVG(I.more, 16, 2.4)} Open everything Claude proposes on ${esc(S.at.title)}</button></div>`;
98
+ return `<div class="pp bp">${lead}${VW.czSections(secs, { key: 'batch' })}<button type="button" class="bp-full" data-bp-full>${SVG(I.more, 16, 2.4)} Open everything PMOS proposes on ${esc(S.at.title)}</button></div>`;
99
99
  }
100
100
  const presses = () => { const B = batchOf(S.props); return B.sure ? [{ act: 'all', label: 'Keep all ' + B.sure, icon: I.check, solid: true }] : []; };
101
101
  function draw() {
@@ -172,10 +172,10 @@ export function openBatch(at, H) {
172
172
  const VW = window.czViewer; if (!VW || !at || !at.ini) return;
173
173
  sheet();
174
174
  S.at = at; S.H = H; S.props = at.props || null; S.left = new Map(); // at.props: the ✦ the page already read (as the full ✦ seeds from it)
175
- VW.open({ id: 'bp:' + at.ini, kind: 'Claude proposes', title: at.title, sub: 'One press keeps all of it', icon: I.spark, presses: [],
175
+ VW.open({ id: 'bp:' + at.ini, kind: 'PMOS proposes', title: at.title, sub: 'One press keeps all of it', icon: I.spark, presses: [],
176
176
  onPress: (act) => { if (act === 'all') keepAll(); },
177
177
  render: (body) => {
178
- body.innerHTML = '<p class="pp-none">Reading what Claude proposes…</p>'; body.onclick = onPress;
178
+ body.innerHTML = '<p class="pp-none">Reading what PMOS proposes…</p>'; body.onclick = onPress;
179
179
  body.onkeydown = (e) => { if (e.key === 'Enter' && e.target.matches('[data-bp-in]')) { e.preventDefault(); giveWhy(e.target.dataset.bpIn, e.target.value.trim()); } };
180
180
  if (S.props) draw();
181
181
  if (!S.props || S.props.look) fresh();
@@ -27,7 +27,7 @@ export function cardWords(r) {
27
27
  function cardHtml(r) {
28
28
  const w = cardWords(r); if (!w) return '';
29
29
  // no count on the ✦ (chief-of-staff C4, the UI grill's delete list): it opens the initiative and its one-press summary
30
- const go = w.n ? `<div class="bd-fc-go"><button type="button" class="bd-fc-sp" data-fc-props aria-label="See what Claude proposes" title="What Claude proposes">${SPARK}</button></div>` : '';
30
+ const go = w.n ? `<div class="bd-fc-go"><button type="button" class="bd-fc-sp" data-fc-props aria-label="See what PMOS proposes" title="What PMOS proposes">${SPARK}</button></div>` : '';
31
31
  return `<p class="bd-pc-h">${esc(w.head)}</p>${w.why ? `<p class="bd-amut bd-pc-sub">${esc(w.why)}</p>` : ''}${go}`;
32
32
  }
33
33
 
@@ -23,8 +23,8 @@ const IC = {
23
23
  const MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
24
24
  const dm = (iso) => { const m = /^(\d{4})-(\d{2})-(\d{2})/.exec(String(iso || '')); return m ? +m[3] + ' ' + MON[+m[2] - 1] : ''; };
25
25
  // what Claude does with the parts of a step: the documents became the seven artefacts (D107); Claude writes them by itself
26
- const CLAUDE = { triage: 'Claude writes the experiment', discover: 'Claude writes the experiment', plan: 'Claude writes the done test', prioritize: 'Claude ranks it against its goal' };
27
- const ANCHOR = 'Claude anchors it to a goal';
26
+ const CLAUDE = { triage: 'PMOS writes the experiment', discover: 'PMOS writes the experiment', plan: 'PMOS writes the done test', prioritize: 'PMOS ranks it against its goal' };
27
+ const ANCHOR = 'PMOS anchors it to a goal';
28
28
  const OPEN_TK = ['In review', 'In progress', 'To do'];
29
29
  const CLOSED = new Set(['Done', "Won't do", 'Archived']);
30
30
 
@@ -40,7 +40,7 @@ const yours = (words, x = {}) => ({ who: 'you', words, ...x });
40
40
  function moveLine(r, ctx, count) {
41
41
  const to = nextStage(r);
42
42
  if (!to) return null;
43
- return canMove(r, ctx) ? yours('move it to ' + to + '?', { count, act: { kind: 'move', label: 'Move to ' + to } }) : claude('Claude moves it to ' + to + ' when its files land', { count });
43
+ return canMove(r, ctx) ? yours('move it to ' + to + '?', { count, act: { kind: 'move', label: 'Move to ' + to } }) : claude('PMOS moves it to ' + to + ' when its files land', { count });
44
44
  }
45
45
  /** A task title as the team's line: "Score vendor B's POC". */
46
46
  const taskLine = (title) => ({ who: 'team', words: String(title || '').trim() });
@@ -55,7 +55,7 @@ export function nextOf(r, ctx = {}) {
55
55
  const mine = (r.tasks || []).filter((k) => sectionOf(k, list, r.wfMap) === st.key && k.status !== 'Archived')
56
56
  .map((k, i) => ({ k, i })).sort((a, b) => (Number.isFinite(a.k.order) ? a.k.order : 1e9 + a.i) - (Number.isFinite(b.k.order) ? b.k.order : 1e9 + b.i)).map((x) => x.k);
57
57
  const counted = mine.filter((k) => k.status !== "Won't do"), done = counted.filter((k) => k.status === 'Done').length;
58
- if (!mine.length) return claude('Claude plans what finishes ' + st.name, { act: { kind: 'add', label: 'Add a task to ' + st.name, stage: st.key } });
58
+ if (!mine.length) return claude('PMOS plans what finishes ' + st.name, { act: { kind: 'add', label: 'Add a task to ' + st.name, stage: st.key } });
59
59
  const open = mine.find((k) => !CLOSED.has(k.status));
60
60
  const count = counted.length ? done + '/' + counted.length + ' tasks' : '';
61
61
  return open ? { ...taskLine(open.title), count } : moveLine(r, ctx, count);
@@ -69,16 +69,16 @@ export function nextOf(r, ctx = {}) {
69
69
  const open = tk.filter((k) => k.status !== 'Done');
70
70
  const pick = open.find((k) => k.blocked) || OPEN_TK.map((s) => open.find((k) => !k.blocked && k.status === s)).find(Boolean);
71
71
  const more = open.length > 1 ? ' · ' + (open.length - 1) + ' more' : '';
72
- if (pick) return claude((pick.blocked ? 'Claude chases ' : 'Claude follows ') + pick.key + more, { tone: pick.blocked ? 'red' : '', count, title: pick.key + ' · ' + pick.title + (pick.blocked ? ' · blocked' : '') });
72
+ if (pick) return claude((pick.blocked ? 'PMOS chases ' : 'PMOS follows ') + pick.key + more, { tone: pick.blocked ? 'red' : '', count, title: pick.key + ' · ' + pick.title + (pick.blocked ? ' · blocked' : '') });
73
73
  if (key === 'deliver') return yours('sign off the release?', { count });
74
74
  return moveLine(r, ctx, count);
75
75
  }
76
76
  const epic = (it.links && it.links.epic) || (r.epics || [])[0] || null;
77
- return epic ? claude('Claude reads Jira', { act: { kind: 'jira', label: 'Read Jira again for ' + epic } }) : claude('Claude finds the Jira epic', { act: { kind: 'epic', label: 'Link the Jira epic' } });
77
+ return epic ? claude('PMOS reads Jira', { act: { kind: 'jira', label: 'Read Jira again for ' + epic } }) : claude('PMOS finds the Jira epic', { act: { kind: 'epic', label: 'Link the Jira epic' } });
78
78
  }
79
79
  const past = r.end && /^\d{4}-\d{2}-\d{2}/.test(r.end) && String(r.end).slice(0, 10) < new Date().toISOString().slice(0, 10);
80
80
  const due = (key === 'monitor' || key === 'evaluate') && r.end ? (past ? 'was due ' : 'due ') + dm(r.end) : '';
81
- if (key === 'monitor') return claude('Claude reads the outcome', { when: due });
81
+ if (key === 'monitor') return claude('PMOS reads the outcome', { when: due });
82
82
  // the parts of the step: the trail's (the documents' headings, the tickets drafted), else what the model counts (Prioritize's anchor and rank)
83
83
  let parts = Array.isArray(it.parts) && it.parts.length ? it.parts : null;
84
84
  if (!parts && (key === 'plan' || key === 'prioritize')) parts = (t.segs || []).filter((s) => s.st === 'done' || s.st === 'to do').map((s) => ({ name: key === 'prioritize' && /^kr/i.test(s.name) ? 'KR or health budget' : s.name.toLowerCase(), done: s.st === 'done' }));
@@ -91,9 +91,9 @@ export function nextOf(r, ctx = {}) {
91
91
  const tickets = open.find((p) => /tickets/.test(p.name) && p.you);
92
92
  if (tickets) return yours(/pushed/.test(tickets.name) ? 'push the drafted tickets to Jira?' : 'send the drafted tickets to Jira?');
93
93
  if (open.some((p) => /^kr or health budget$/i.test(p.name))) return claude(ANCHOR);
94
- if (open[0] && /tickets/.test(open[0].name)) return claude('Claude drafts the tickets');
95
- if (key === 'evaluate') return claude('Claude writes the lessons', { when: due });
96
- return claude(CLAUDE[key] || 'Claude writes the experiment');
94
+ if (open[0] && /tickets/.test(open[0].name)) return claude('PMOS drafts the tickets');
95
+ if (key === 'evaluate') return claude('PMOS writes the lessons', { when: due });
96
+ return claude(CLAUDE[key] || 'PMOS writes the experiment');
97
97
  }
98
98
 
99
99
  const SPARK = 'M12 3l1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z';
@@ -313,7 +313,7 @@ function openCharter(p, at, suggest) {
313
313
  rename.value = p.title;
314
314
  charterForm({ VW, pmPost, p, st, rename, title: titleOf(p), nameOf, at, suggest, reload: () => O.reload(), say: (m) => O.say(m),
315
315
  // the charter's Check now (canvas XmsgB): Claude reviews the milestones at the next tick; the line says it is checking until it ends
316
- checkNow: async () => { const r = await pmPost('/api/programs/review', { program: p.id }).catch(() => null); if (!r || !r.ok) { O.say((r && r.error) || 'Claude could not start the check. The server did not say why.'); return false; } O.reload(); return true; },
316
+ checkNow: async () => { const r = await pmPost('/api/programs/review', { program: p.id }).catch(() => null); if (!r || !r.ok) { O.say((r && r.error) || 'PMOS could not start the check. The server did not say why.'); return false; } O.reload(); return true; },
317
317
  review: () => (progOf(p.id) || p).review || null });
318
318
  }
319
319
 
@@ -325,7 +325,7 @@ const changesOf = (p, st) => (st.milestones.length ? MSG.openOf(p) : []);
325
325
  function summaryOf(p, st) {
326
326
  const N = needs(p, st).concat(changesOf(p, st)), n = unsorted(p, st), nx = st.next;
327
327
  const meta = [p.owner, st.span.label].filter(Boolean).join(' · ');
328
- const sortText = n ? n + ' ' + plural(n, 'task', 'tasks') + ' from before the split ' + (n === 1 ? 'has' : 'have') + ' no level yet. Claude suggests a home for each: the program, an initiative or an epic.' : '';
328
+ const sortText = n ? n + ' ' + plural(n, 'task', 'tasks') + ' from before the split ' + (n === 1 ? 'has' : 'have') + ' no level yet. PMOS suggests a home for each: the program, an initiative or an epic.' : '';
329
329
  const primary = n ? { label: 'Review the suggested homes', href: homeHref({ ws: p.home, ask: 'program:' + p.id, q: 'Suggest a home for each task of ' + p.title + ' that has no level yet' }) } : null;
330
330
  const next = nx ? 'Next: ' + nx.name + (nx.day ? ' · ' + nx.day : '') : '';
331
331
  // The Waits on you row already counts what waits on you (say it once), so the line is the next milestone while there is one.
@@ -365,7 +365,7 @@ function tasksTab(p, st, N, T) {
365
365
  }
366
366
  function reportsTab(d, x) {
367
367
  const R = d ? DB.reportsHtml(d, { open: x.open }) : '';
368
- if (!R) return `<section class="pv-card" aria-label="Reports"><div class="pv-ch"><h4>Reports</h4></div><p class="pv-none">${d ? 'Claude writes these for you. One shows here when it is due.' : 'The reports could not be read.'}</p></section>`;
368
+ if (!R) return `<section class="pv-card" aria-label="Reports"><div class="pv-ch"><h4>Reports</h4></div><p class="pv-none">${d ? 'PMOS writes these for you. One shows here when it is due.' : 'The reports could not be read.'}</p></section>`;
369
369
  return `<div class="db" data-level="program">${RO ? '' : DB.trustHtml(d)}${R}</div>`;
370
370
  }
371
371
  /** The program's one page. Each part draws only when a record holds something for it. */
@@ -390,7 +390,7 @@ function viewHtml(p) {
390
390
  { id: 'documents', label: 'Documents', n: D.length + 1, html: () => docsHtml(p, st) },
391
391
  ];
392
392
  // Home on a phone (O.talk gives a function): the program's own chat is not beside the panel, so the page ends with the way to it
393
- const talk = !RO && O && O.talk && O.talk() ? `<button type="button" class="hi-talk" data-pp="talk">Message Claude about ${esc(p.title)}</button>` : '';
393
+ const talk = !RO && O && O.talk && O.talk() ? `<button type="button" class="hi-talk" data-pp="talk">Message PMOS about ${esc(p.title)}</button>` : '';
394
394
  // after Turn into a program: the tasks from before the split that have no level yet, and the way to Claude's suggested homes (kept from the summary card)
395
395
  const s = RO ? null : summaryOf(p, st);
396
396
  const sort = s && s.primary ? `<section class="pv-card" aria-label="Tasks with no level"><p class="czs-p">${esc(s.text)}</p><a class="czs-pri" href="${esc(s.primary.href)}">${esc(s.primary.label)}</a></section>` : '';
@@ -542,7 +542,7 @@ async function suggestPress(b) {
542
542
  // one at a time: each keep writes the whole charter, so the next one reads the charter the last one wrote
543
543
  for (const k of keys) { const r = await MSG.answer(pmPost, progOf(p.id) || p, k, how); if (!r.ok) { err = r.error; break; } done++; if (keys.length > 1) await O.reload(); }
544
544
  if (err) O.say(err);
545
- else O.say(how === 'keep' ? (done === 1 ? 'Kept. The charter has it.' : done + ' kept. The charter has them.') : (done === 1 ? 'Dropped. Claude will not suggest it again from this source.' : done + ' dropped.'));
545
+ else O.say(how === 'keep' ? (done === 1 ? 'Kept. The charter has it.' : done + ' kept. The charter has them.') : (done === 1 ? 'Dropped. PMOS will not suggest it again from this source.' : done + ' dropped.'));
546
546
  await O.reload(); draw();
547
547
  }
548
548
  async function submit(e) {
@@ -36,7 +36,7 @@ export function askCardHtml(ask, { live = false, picked = {}, at = '' } = {}) {
36
36
  const small = rec ? `<small>recommended${o.detail ? ' · ' + esc(o.detail) : ''}</small>` : '';
37
37
  return `<button type="button" class="chip chip2${rec ? ' rec' : ''}${on ? ' on' : ''}" ${act}${o.detail ? ` title="${esc(o.detail)}"` : ''}${live ? '' : ' disabled'}>${esc(bare(o))}${small}</button>`;
38
38
  }).join('');
39
- return `<div class="askq"><p class="k">${esc(q.header || 'Claude asks')}${q.multi ? ' · pick any' : ''}</p><b class="q">${esc(q.question)}</b><div class="chips2">${opts}</div></div>`;
39
+ return `<div class="askq"><p class="k">${esc(q.header || 'PMOS asks')}${q.multi ? ' · pick any' : ''}</p><b class="q">${esc(q.question)}</b><div class="chips2">${opts}</div></div>`;
40
40
  }).join('');
41
41
  const send = !one && live ? `<div class="chatopts"><button type="button" class="cta" data-ask-send="${esc(at)}"${answerText(qs, picked) ? '' : ' disabled'}>Send answers</button></div>` : '';
42
42
  return `${body}${send}`;
@@ -58,10 +58,10 @@ function fromText(text, projects) {
58
58
  const RANK = { wrote: 0, named: 1, read: 2 };
59
59
  /** The title and the small line a chip shows. */
60
60
  export function labelOf(it) {
61
- if (it.kind === 'file') return { title: clip(base(it.path), 48), sub: it.how === 'wrote' ? 'Claude wrote this' : it.how === 'named' ? 'File' : 'Claude read this' };
61
+ if (it.kind === 'file') return { title: clip(base(it.path), 48), sub: it.how === 'wrote' ? 'PMOS wrote this' : it.how === 'named' ? 'File' : 'PMOS read this' };
62
62
  if (it.kind === 'jira') return { title: it.key, sub: 'Jira ticket' };
63
- if (it.kind === 'slack') return { title: it.channel ? 'Slack channel' : 'Slack message', sub: it.how === 'wrote' ? 'Claude posted here' : 'Slack' };
64
- return { title: it.web === 'artifact' ? 'Claude artifact' : it.web === 'google' ? 'Google file' : 'Confluence page', sub: it.how === 'named' ? 'Link' : 'Claude read this' };
63
+ if (it.kind === 'slack') return { title: it.channel ? 'Slack channel' : 'Slack message', sub: it.how === 'wrote' ? 'PMOS posted here' : 'Slack' };
64
+ return { title: it.web === 'artifact' ? 'Claude artifact' : it.web === 'google' ? 'Google file' : 'Confluence page', sub: it.how === 'named' ? 'Link' : 'PMOS read this' };
65
65
  }
66
66
  /**
67
67
  * What one turn worked with, the main item first. calls: [{ tool, target }] in order; text: Claude's words in the turn; projects: Jira project
@@ -144,7 +144,7 @@ export function connectorRows(sources, health, now = Date.now()) {
144
144
  const behind = (s.state === 'stale' || s.state === 'never') && s.id !== 'repository' && !mend;
145
145
  out.push({ id: s.id, name, trouble: 0, why: '', when, act: behind ? read : null });
146
146
  }
147
- for (const i of alone) out.push({ id: 'issue:' + i.key, name: i.name || 'Background work', trouble: 3, why: i.why, when: '', act: i.key === 'signedout' ? { kind: 'sec', label: 'Open Settings › Claude', sec: 'claude' } : null });
147
+ for (const i of alone) out.push({ id: 'issue:' + i.key, name: i.name || 'Background work', trouble: 3, why: i.why, when: '', act: i.key === 'signedout' ? { kind: 'sec', label: 'Open Settings › PMOS', sec: 'claude' } : null });
148
148
  return out.map((r, k) => ({ r, k })).sort((a, b) => (a.r.trouble || 9) - (b.r.trouble || 9) || a.k - b.k).map((x) => x.r);
149
149
  }
150
150
 
@@ -152,7 +152,7 @@ body.cz-home { min-height: 100vh; overflow: hidden; }
152
152
  .hm-av { display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-weight: var(--fw-strong); font-size: var(--fs-badge); line-height: 1; background: var(--cz-bluebg); color: var(--cz-blueink); font-family: var(--cz-sans); }
153
153
  .hm-av.s20 { width: 20px; height: 20px; font-size: var(--fs-meta); line-height: var(--lh-meta); } .hm-av.s24 { width: 24px; height: 24px; font-size: var(--fs-meta); line-height: var(--lh-meta); }
154
154
  .hm-av.s28 { width: 28px; height: 28px; font-size: var(--fs-meta); line-height: var(--lh-meta); } .hm-av.s30 { width: 30px; height: 30px; }
155
- .hm-av.t-C { background: var(--cz-c-2f5fb3); color: var(--cz-c-ffffff); }
155
+ .hm-av.t-C, .hm-av.t-P { background: var(--cz-c-2f5fb3); color: var(--cz-c-ffffff); }
156
156
  .hm-av.t-St { background: var(--cz-c-eef1f8); color: var(--cz-c-34508a); } .hm-av.t-Re { background: var(--cz-c-faf0e4); color: var(--cz-c-8a5212); }
157
157
  .hm-av.t-Sp { background: var(--cz-c-e9f4ee); color: var(--cz-c-2e6e48); } .hm-av.t-Ev { background: var(--cz-c-faecef); color: var(--cz-c-9a3b55); }
158
158
  .hm-av.t-De { background: var(--cz-c-f1ecf8); color: var(--cz-c-6b4fa3); } .hm-av.t-Dl { background: var(--cz-c-f1ecf8); color: var(--cz-c-6b4fa3); }
@@ -25,7 +25,7 @@ function looseHtml(p) {
25
25
  return `<div class="lab-card lab-lo" data-lab-id="${id}"><div class="lab-bar"><span class="lab-sp" aria-hidden="true">✦</span><b>${esc(p.title)}</b><span class="lab-acts">`
26
26
  + ib(`data-lab-why="${id}" aria-expanded="${why}"`, 'Drop it', LC.I.x) + ib(`data-lab-keep="${id}"`, p.type === 'start' ? 'Start it' : 'Keep it', LC.I.check, 'ok') + '</span></div>'
27
27
  + `<p class="lab-tx">${esc(p.why)}${ask}</p><small class="lab-ok">Read: ${(p.sources || []).length} ${(p.sources || []).length === 1 ? 'page' : 'pages'}${p.data && p.data.refreshed ? ' · ' + esc(p.data.refreshed) : ''}${src ? ' · ' + src : ''}</small>`
28
- + (why ? `<div class="lab-why"><label class="vh" for="labLw-${id}">Why drop it? Claude learns from it</label><input id="labLw-${id}" data-lab-reason="${id}" maxlength="200" placeholder="Why not? Claude learns from it (you can leave it empty)">${ib(`data-lab-drop="${id}"`, 'Drop it now', LC.I.x, 'solid')}</div>` : '')
28
+ + (why ? `<div class="lab-why"><label class="vh" for="labLw-${id}">Why drop it? PMOS learns from it</label><input id="labLw-${id}" data-lab-reason="${id}" maxlength="200" placeholder="Why not? PMOS learns from it (you can leave it empty)">${ib(`data-lab-drop="${id}"`, 'Drop it now', LC.I.x, 'solid')}</div>` : '')
29
29
  + '</div>';
30
30
  }
31
31
  function pillOf(r) {
@@ -51,9 +51,9 @@ export function recRow(r, now = Date.now()) {
51
51
  }
52
52
  function html(L) {
53
53
  const k = L.kept;
54
- const keptCard = k ? `<div class="lab-card"><small>You kept</small><b class="lab-big">${k.kept} of ${k.filed}</b><small>${[k.proto[1] ? 'prototypes ' + k.proto[0] + ' of ' + k.proto[1] : '', k.scan[1] ? 'scans ' + k.scan[0] + ' of ' + k.scan[1] : ''].filter(Boolean).join(' · ')}. Claude learns from each reason you give.</small></div>` : '';
55
- const next = L.next.length ? `<div class="lab-card"><b>Next time you step away</b>${L.next.map((x) => `<div class="lab-row"><span class="lab-dot open"></span><span class="w">${esc(x.title)}${x.why ? `<small>${esc(x.why)}</small>` : ''}</span></div>`).join('')}<small>Claude picks these by itself. To skip one, say so in chat.</small></div>` : '';
56
- const rec = L.record.length ? `<div class="lab-card lab-rec"><div class="lab-bar"><b>What Claude did in the background</b><small>this week, every job</small></div>${L.record.map((r) => recRow(r)).join('')}${L.more ? `<small>and ${L.more} more</small>` : ''}</div>` : '';
54
+ const keptCard = k ? `<div class="lab-card"><small>You kept</small><b class="lab-big">${k.kept} of ${k.filed}</b><small>${[k.proto[1] ? 'prototypes ' + k.proto[0] + ' of ' + k.proto[1] : '', k.scan[1] ? 'scans ' + k.scan[0] + ' of ' + k.scan[1] : ''].filter(Boolean).join(' · ')}. PMOS learns from each reason you give.</small></div>` : '';
55
+ const next = L.next.length ? `<div class="lab-card"><b>Next time you step away</b>${L.next.map((x) => `<div class="lab-row"><span class="lab-dot open"></span><span class="w">${esc(x.title)}${x.why ? `<small>${esc(x.why)}</small>` : ''}</span></div>`).join('')}<small>PMOS picks these by itself. To skip one, say so in chat.</small></div>` : '';
56
+ const rec = L.record.length ? `<div class="lab-card lab-rec"><div class="lab-bar"><b>What PMOS did in the background</b><small>this week, every job</small></div>${L.record.map((r) => recRow(r)).join('')}${L.more ? `<small>and ${L.more} more</small>` : ''}</div>` : '';
57
57
  return `<h2 class="ins-h3" id="hLab">Lab</h2>`
58
58
  + (L.say ? `<p class="lab-say"><span aria-hidden="true">✦</span> ${esc(L.say)}</p>` : '')
59
59
  + L.loose.map(looseHtml).join('')
@@ -62,7 +62,7 @@ export function cardHtml(p, { why = false } = {}) {
62
62
  head = p.title || 'Attach as evidence';
63
63
  body = `<p class="lab-tx">${esc(p.why)}</p><small class="lab-ok">${srcLine(p)}</small>`;
64
64
  }
65
- const ask = why ? `<div class="lab-why"><label class="vh" for="labWhy-${id}">Why drop it? Claude learns from it</label><input id="labWhy-${id}" data-lab-reason="${id}" maxlength="200" placeholder="Why not? Claude learns from it (you can leave it empty)">${ib(`data-lab-drop="${id}"`, 'Drop it now', I.x, 'solid')}</div>` : '';
65
+ const ask = why ? `<div class="lab-why"><label class="vh" for="labWhy-${id}">Why drop it? PMOS learns from it</label><input id="labWhy-${id}" data-lab-reason="${id}" maxlength="200" placeholder="Why not? PMOS learns from it (you can leave it empty)">${ib(`data-lab-drop="${id}"`, 'Drop it now', I.x, 'solid')}</div>` : '';
66
66
  const icon = p.group === 'prototyped' ? I.proto : p.group === 'improved' ? I.round : I.scan;
67
67
  return `<div class="pp-p lab" data-pp="${id}"><div class="pp-ph1"><span class="pp-ic gr">${SVG(icon, 16)}</span><span class="w"><b>${esc(head)}</b>${body}${ask}</span><span class="pp-gacts">${acts}</span></div></div>`;
68
68
  }
@@ -183,7 +183,7 @@ function openOverlap(it, o = {}) {
183
183
  html: `<ul class="nv-parts">${O.items.map((x) => `<li>${esc(x)}</li>`).join('')}</ul>` }], { key: 'news-overlap' }) : '';
184
184
  body.innerHTML = `<div class="nv">${czSummary({ line: parts, tone: parts ? 'you' : '', text, meta: sure })}${card(one)}${card(two)}${opts}${go}${items}</div>`;
185
185
  };
186
- vwOpen({ id, kind: 'Claude proposes', title: 'Possible overlap', icon: SPARK, sub: ['Claude noticed', when].filter(Boolean).join(' · '), fresh: !!o.fresh,
186
+ vwOpen({ id, kind: 'PMOS proposes', title: 'Possible overlap', icon: SPARK, sub: ['PMOS noticed', when].filter(Boolean).join(' · '), fresh: !!o.fresh,
187
187
  more: [{ label: 'Open ' + nameOf('a'), on: () => goIni(it.a.id) }, { label: 'Open ' + nameOf('b'), on: () => goIni(it.b.id) }],
188
188
  onClose: () => { if (o.fresh) seen([it.id]); },
189
189
  render: (body) => {
@@ -250,7 +250,7 @@ function openBridge(it, o = {}) {
250
250
  } });
251
251
  return true;
252
252
  };
253
- vwOpen({ id, kind: 'Claude proposes', title: it.title || 'Move to the new workflow', icon: SPARK, sub: ['Claude noticed', it.at ? ago(new Date(it.at).toISOString()) : ''].filter(Boolean).join(' · '), fresh: !!o.fresh,
253
+ vwOpen({ id, kind: 'PMOS proposes', title: it.title || 'Move to the new workflow', icon: SPARK, sub: ['PMOS noticed', it.at ? ago(new Date(it.at).toISOString()) : ''].filter(Boolean).join(' · '), fresh: !!o.fresh,
254
254
  more: [{ label: 'Change the bridge in Settings', on: () => import('./cozy-settings.js').then((M) => M.openSettings('workflows', { wf: it.wf.id })) }], // Settings › Workspaces › Workflows, in place (UI grill U1)
255
255
  render: (body) => {
256
256
  body.classList.add('ev-card-b');
@@ -60,7 +60,7 @@ export function mountOnboard(host, { ws = '', done = false } = {}) {
60
60
 
61
61
  async function load() { const r = await pmGet('/api/onboard/state'); if (r && r.ok) S.data = r; draw(); auto(); }
62
62
  const P = () => (S.data && S.data.progress) || {};
63
- const claudeTurn = (body, mood, latest) => `<div class="hm-a ob-turn">${latest ? `<span class="hm-av hm-adler" aria-hidden="true">${adler(mood, 36, { label: false, id: 'ob', dress: true })}</span>` : '<span class="hm-av t-C s28" aria-hidden="true">C</span>'}<div class="hm-ab"><p class="hm-who">Claude</p>${body}</div></div>`;
63
+ const claudeTurn = (body, mood, latest) => `<div class="hm-a ob-turn">${latest ? `<span class="hm-av hm-adler" aria-hidden="true">${adler(mood, 36, { label: false, id: 'ob', dress: true })}</span>` : '<span class="hm-av t-C s28" aria-hidden="true">P</span>'}<div class="hm-ab"><p class="hm-who">PMOS</p>${body}</div></div>`;
64
64
  const youTurn = (text) => `<div class="hm-u"><div class="hm-bub"><p>${esc(text)}</p></div><span class="hm-you">You</span></div>`;
65
65
  const btn = (act, label, cls = '', extra = '') => `<button type="button" class="ut-btn ${cls}" data-ob="${act}"${S.busy ? ' disabled' : ''}${extra}>${esc(S.busy === act ? 'Working…' : label)}</button>`;
66
66
  /** ✓ and ✕, icon-only (the PM's rule). */
@@ -199,7 +199,7 @@ export function mountOnboard(host, { ws = '', done = false } = {}) {
199
199
  // the composer is open throughout (B1): it answers the product question, the ✕ "what should I change", and after setup goes to Home
200
200
  const p = P(), asks = !done && !p.project && !S.queued;
201
201
  const kept = foot.querySelector('textarea'); const typed = kept ? kept.value : '';
202
- foot.innerHTML = `<form class="hm-box" data-ob-form="say"><textarea rows="1" aria-label="Message Claude" placeholder="${asks ? 'e.g. Checkout redesign, payments team, Jira PAY' : 'Message Claude'}"${S.busy ? ' disabled' : ''}></textarea><div class="hm-tb"><span class="sp"></span><span class="hm-key">Enter sends · Shift+Enter for a new line</span><button type="submit" class="hm-send" aria-label="Send"${S.busy ? ' disabled' : ''}>${UP}</button></div></form>`;
202
+ foot.innerHTML = `<form class="hm-box" data-ob-form="say"><textarea rows="1" aria-label="Message PMOS" placeholder="${asks ? 'e.g. Checkout redesign, payments team, Jira PAY' : 'Message PMOS'}"${S.busy ? ' disabled' : ''}></textarea><div class="hm-tb"><span class="sp"></span><span class="hm-key">Enter sends · Shift+Enter for a new line</span><button type="submit" class="hm-send" aria-label="Send"${S.busy ? ' disabled' : ''}>${UP}</button></div></form>`;
203
203
  const ta = foot.querySelector('textarea'); ta.value = typed;
204
204
  if (asks || S.asking) ta.focus({ preventScroll: true });
205
205
  log.scrollTop = log.scrollHeight;
@@ -31,7 +31,7 @@ const plural = (n, one, many) => n + ' ' + (n === 1 ? one : many);
31
31
  const mmss = (ms) => { const s = Math.max(0, Math.floor((Number(ms) || 0) / 1000)); return Math.floor(s / 60) + ':' + String(s % 60).padStart(2, '0'); };
32
32
  const FROM_WORDS = { talk: 'the talk', screen: 'the screen', prep: 'the prep', last: 'last time' };
33
33
  const RAISE_LABEL = { check: 'Check', 'follow-up': 'Follow-up', 'no-owner': 'No owner yet' };
34
- export const BOX_HINT = 'Note, or ask Claude…';
34
+ export const BOX_HINT = 'Note, or ask PMOS…';
35
35
 
36
36
  export const kindOf = (text) => (/\?\s*$/.test(String(text || '').trim()) ? 'ask' : 'note');
37
37
 
@@ -78,7 +78,7 @@ export function nowModel(F, one, { now = Date.now() } = {}) {
78
78
  if (lastAsk) {
79
79
  const a = (Array.isArray(f.notes) ? f.notes : []).filter((x) => x.ask === lastAsk.id).pop() || null;
80
80
  answer = { id: lastAsk.id, question: lastAsk.question, state: a ? 'answered' : lastAsk.state === 'failed' ? 'failed' : 'working',
81
- body: a ? a.body : lastAsk.state === 'failed' ? (lastAsk.error || 'Claude could not answer. Ask again.') : '', from: a ? fromLine(a) : '' };
81
+ body: a ? a.body : lastAsk.state === 'failed' ? (lastAsk.error || 'PMOS could not answer. Ask again.') : '', from: a ? fromLine(a) : '' };
82
82
  }
83
83
  return {
84
84
  noteId: n ? n.id : (f.note && f.note.id) || '',
@@ -139,7 +139,7 @@ export function nowHtml(m, { room = false } = {}) {
139
139
  const a = m.answer;
140
140
  h += `<div class="rn-chx" aria-live="polite"><div class="q">${esc(a.question)}</div>`
141
141
  + `<div class="ca${a.state === 'failed' ? ' bad' : ''}" data-answer="${esc(a.id)}"><span class="sp" aria-hidden="true">${svg(P.spark, 14, 2)}</span>`
142
- + (a.state === 'working' ? '<span class="w"><span class="rn-dots" role="status" aria-label="Claude is answering"><i></i><i></i><i></i></span></span>'
142
+ + (a.state === 'working' ? '<span class="w"><span class="rn-dots" role="status" aria-label="PMOS is answering"><i></i><i></i><i></i></span></span>'
143
143
  : `<span class="w">${esc(a.body)}${a.from ? `<span class="src">${esc(a.from)}</span>` : ''}</span>`)
144
144
  + (a.state === 'answered' ? `<button type="button" class="rn-ib" data-rn="keep" aria-label="Keep as a note" title="Keep as a note">${svg(P.plus)}</button>` : '')
145
145
  + '</div></div>';
@@ -298,7 +298,7 @@ export function mountNow(slots, ctx) {
298
298
 
299
299
  ta.addEventListener('input', () => {
300
300
  const ask = kindOf(ta.value) === 'ask';
301
- send.setAttribute('aria-label', ask ? 'Ask Claude' : 'Keep the note'); send.title = ask ? 'Ask Claude' : 'Keep the note';
301
+ send.setAttribute('aria-label', ask ? 'Ask PMOS' : 'Keep the note'); send.title = ask ? 'Ask PMOS' : 'Keep the note';
302
302
  ta.style.height = ''; if (ta.value) ta.style.height = Math.min(ta.scrollHeight, 120) + 'px';
303
303
  });
304
304
  ta.addEventListener('keydown', (e) => { if (e.key === 'Enter' && !e.shiftKey && !e.isComposing) { e.preventDefault(); box.requestSubmit(); } });
@@ -309,7 +309,7 @@ export function mountNow(slots, ctx) {
309
309
  try {
310
310
  if (kindOf(text) === 'ask') {
311
311
  const r = await pmPost('/api/meeting-focus/ask', { note: noteId(), question: text, ws: ctx.ws });
312
- if (!r || !r.ok) { say('Claude could not take the question: ' + ((r && r.error) || 'no answer')); return; }
312
+ if (!r || !r.ok) { say('PMOS could not take the question: ' + ((r && r.error) || 'no answer')); return; }
313
313
  // the question shows at once; the answer arrives on a later read
314
314
  const f = focusNow() || { ok: true };
315
315
  own = { ...f, now_ms: Number(f.now_ms) || 0, asks: [...(f.asks || []), { id: r.id, question: text, state: 'working' }] };
@@ -151,7 +151,7 @@ export function pickHtml(P) {
151
151
  h.push(`<div class="rxp-in"><span class="rxp-fi">${ic('link', 16)}</span><input type="url" data-rxp="url" placeholder="Paste a link" aria-label="Paste a link to present"><button type="button" class="rxp-ib" data-rxp="upload" aria-label="Upload a file" title="Upload a file (PDF, slides, image)">${ic('upload', 16)}</button><input type="file" data-rxp="file" hidden accept=".pdf,.png,.jpg,.jpeg,.gif,.webp,.html,.htm,.pptx"></div>`);
152
152
  if (P.link.err) h.push(`<p class="rxp-err" role="alert">${esc(P.link.err)}</p>`);
153
153
  } else h.push(row('link', 'plus', 'File or link', 'PDF, slides, Google Docs, Slides, Sheets'));
154
- h.push(row('screen', 'screen', 'A tab, a window or your screen', 'Claude follows it here'));
154
+ h.push(row('screen', 'screen', 'A tab, a window or your screen', 'PMOS follows it here'));
155
155
  if (P.presenting) h.push('<hr>' + row('stop', 'x', 'Stop presenting', ''));
156
156
  return `<div class="rxp-pick" role="menu" aria-label="Present">${h.join('')}</div>`;
157
157
  }
@@ -90,7 +90,7 @@ export function mountReveal(host, { ws, model, send, openIni, changed } = {}) {
90
90
  host.after(sec); host.hidden = true; document.body.classList.add('ob-on');
91
91
  const log = sec.querySelector('.hm-log'), foot = sec.querySelector('.hm-foot');
92
92
  const S = { M: model, busy: false, note: '', typed: '' };
93
- const turn = (body, mood, latest) => `<div class="hm-a ob-turn">${latest ? `<span class="hm-av hm-adler" aria-hidden="true">${adler(mood, 36, { label: false, id: 'rv', dress: true })}</span>` : '<span class="hm-av t-C s28" aria-hidden="true">C</span>'}<div class="hm-ab"><p class="hm-who">Claude</p>${body}</div></div>`;
93
+ const turn = (body, mood, latest) => `<div class="hm-a ob-turn">${latest ? `<span class="hm-av hm-adler" aria-hidden="true">${adler(mood, 36, { label: false, id: 'rv', dress: true })}</span>` : '<span class="hm-av t-C s28" aria-hidden="true">P</span>'}<div class="hm-ab"><p class="hm-who">PMOS</p>${body}</div></div>`;
94
94
 
95
95
  function draw() {
96
96
  const M = S.M, list = [];
@@ -100,7 +100,7 @@ export function mountReveal(host, { ws, model, send, openIni, changed } = {}) {
100
100
  if (M.quiet) list.push({ mood: 'handled', body: `<p class="ob-sub">${esc(M.quiet)}</p>` });
101
101
  log.innerHTML = list.map((t, i) => turn(t.body, t.mood, i === list.length - 1)).join('');
102
102
  if (!foot.firstChild) {
103
- foot.innerHTML = `<form class="hm-box" data-rv-form="say"><textarea rows="1" aria-label="Message Claude" placeholder="Message Claude"></textarea><div class="hm-tb"><span class="sp"></span><span class="hm-key">Enter sends · Shift+Enter for a new line</span><button type="submit" class="hm-send" aria-label="Send">${SVG(I.up, 18, 2.4)}</button></div></form>`;
103
+ foot.innerHTML = `<form class="hm-box" data-rv-form="say"><textarea rows="1" aria-label="Message PMOS" placeholder="Message PMOS"></textarea><div class="hm-tb"><span class="sp"></span><span class="hm-key">Enter sends · Shift+Enter for a new line</span><button type="submit" class="hm-send" aria-label="Send">${SVG(I.up, 18, 2.4)}</button></div></form>`;
104
104
  }
105
105
  }
106
106
  async function act(a) {