create-pmos 0.553.0 → 0.555.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 (184) hide show
  1. package/package.json +33 -27
  2. package/payload/KIT-VERSION +2 -2
  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/payload/state/log.md +1 -1
  7. package/workspace/briefing-premium-board-test.js +4 -4
  8. package/workspace/briefing-premium-initiative-test.js +2 -2
  9. package/workspace/briefing-premium-test.js +1 -1
  10. package/workspace/changelog.json +32 -0
  11. package/workspace/chat-asks-test.js +5 -5
  12. package/workspace/ev-everywhere-test.js +2 -2
  13. package/workspace/goals-clear-ui-test.js +1 -1
  14. package/workspace/guide/agent-capabilities.md +33 -31
  15. package/workspace/guide/claude-proposes.md +68 -68
  16. package/workspace/guide/cli.md +23 -22
  17. package/workspace/guide/cloud.md +3 -3
  18. package/workspace/guide/home.md +38 -38
  19. package/workspace/guide/index.md +5 -5
  20. package/workspace/guide/intelligence-okr-goals.md +4 -4
  21. package/workspace/guide/layout.md +23 -23
  22. package/workspace/guide/notes.md +8 -8
  23. package/workspace/guide/programs.md +17 -17
  24. package/workspace/guide/reports.md +16 -16
  25. package/workspace/guide/settings-and-switches.md +40 -37
  26. package/workspace/guide/statuses.md +3 -3
  27. package/workspace/home-other-product-test.js +8 -8
  28. package/workspace/home-pill-test.js +3 -3
  29. package/workspace/home-rows-test.js +7 -7
  30. package/workspace/intel-report-ui-test.js +1 -1
  31. package/workspace/intelligence-gaps-ui-test.js +2 -2
  32. package/workspace/lib/agent-roles.js +1 -1
  33. package/workspace/lib/autonomy-cli.js +16 -2
  34. package/workspace/lib/autonomy.js +84 -11
  35. package/workspace/lib/bg-queue.js +1 -1
  36. package/workspace/lib/briefing-premium-agent.js +2 -2
  37. package/workspace/lib/decision-memory.js +2 -2
  38. package/workspace/lib/driver-decide.js +6 -3
  39. package/workspace/lib/driver.js +6 -2
  40. package/workspace/lib/folder-needs.js +1 -1
  41. package/workspace/lib/goal-chat.js +5 -5
  42. package/workspace/lib/goal-watch.js +1 -1
  43. package/workspace/lib/grill-runs.js +5 -5
  44. package/workspace/lib/headless.js +5 -2
  45. package/workspace/lib/idle-lab.js +5 -5
  46. package/workspace/lib/impact-runs.js +2 -2
  47. package/workspace/lib/job-graph.js +6 -3
  48. package/workspace/lib/metric-draft-runs.js +4 -4
  49. package/workspace/lib/metric-read-runs.js +5 -5
  50. package/workspace/lib/news-for-you.js +1 -1
  51. package/workspace/lib/proposal-runs.js +6 -6
  52. package/workspace/lib/refresh.js +1 -1
  53. package/workspace/lib/routes-artefacts.js +10 -4
  54. package/workspace/lib/routes-autonomy.js +1 -1
  55. package/workspace/lib/routes-board-premium.js +1 -1
  56. package/workspace/lib/routes-goal-status.js +4 -4
  57. package/workspace/lib/routes-impact.js +1 -1
  58. package/workspace/lib/routes-insight-moves.js +1 -1
  59. package/workspace/lib/routes-loose.js +2 -2
  60. package/workspace/lib/routes-mentions.js +1 -1
  61. package/workspace/lib/routes-metric-drafts.js +9 -9
  62. package/workspace/lib/routes-proposals.js +9 -9
  63. package/workspace/lib/routes-ready-reports.js +1 -1
  64. package/workspace/lib/routes-slash.js +1 -1
  65. package/workspace/lib/source-heal.js +3 -3
  66. package/workspace/lib/state-root.js +22 -1
  67. package/workspace/lib/story-seed.js +95 -0
  68. package/workspace/lib/task-items.js +1 -1
  69. package/workspace/lib/task-links.js +2 -2
  70. package/workspace/lib/team-cli.js +1 -1
  71. package/workspace/lib/today.js +2 -2
  72. package/workspace/lib/verify-runs.js +87 -3
  73. package/workspace/live-pill-round-test.js +1 -1
  74. package/workspace/metric-drafts-ui-test.js +1 -1
  75. package/workspace/milestone-suggest-test.js +5 -5
  76. package/workspace/news-viewers-test.js +3 -3
  77. package/workspace/okr-goals-ui-test.js +1 -1
  78. package/workspace/package-lock.json +2 -2
  79. package/workspace/package.json +1 -1
  80. package/workspace/premium-chat-chart-tab-test.js +1 -1
  81. package/workspace/premium-chat-context-test.js +4 -4
  82. package/workspace/premium-chat-goal-setup-test.js +3 -3
  83. package/workspace/premium-chat-goal-view-test.js +1 -1
  84. package/workspace/premium-chat-line-test.js +6 -6
  85. package/workspace/premium-chat-notes-test.js +4 -4
  86. package/workspace/premium-chat-report-tab-test.js +4 -4
  87. package/workspace/premium-rec-now-test.js +2 -2
  88. package/workspace/public/pm/batch-press.js +4 -4
  89. package/workspace/public/pm/bd-fc-card.js +1 -1
  90. package/workspace/public/pm/bd-next.js +10 -10
  91. package/workspace/public/pm/bd-prog-panel.js +5 -5
  92. package/workspace/public/pm/chat-ask.js +1 -1
  93. package/workspace/public/pm/chat-context.js +3 -3
  94. package/workspace/public/pm/cozy-evmodel.js +1 -1
  95. package/workspace/public/pm/cozy-home.css +1 -1
  96. package/workspace/public/pm/cozy-lab-ins.js +4 -4
  97. package/workspace/public/pm/cozy-lab.js +1 -1
  98. package/workspace/public/pm/cozy-news.js +2 -2
  99. package/workspace/public/pm/cozy-onboard.js +2 -2
  100. package/workspace/public/pm/cozy-rec-now.js +5 -5
  101. package/workspace/public/pm/cozy-rec-present.js +1 -1
  102. package/workspace/public/pm/cozy-reveal.js +2 -2
  103. package/workspace/public/pm/cozy-settings.js +19 -19
  104. package/workspace/public/pm/cozy-steps.js +2 -2
  105. package/workspace/public/pm/cozy-viewer.js +1 -1
  106. package/workspace/public/pm/ctx-wedge.js +1 -1
  107. package/workspace/public/pm/dash-view.js +1 -1
  108. package/workspace/public/pm/goal-chat.js +6 -6
  109. package/workspace/public/pm/good-morning.js +2 -2
  110. package/workspace/public/pm/grill-words.js +1 -1
  111. package/workspace/public/pm/home-app.js +19 -19
  112. package/workspace/public/pm/home-ask.js +1 -1
  113. package/workspace/public/pm/home-chat.js +6 -6
  114. package/workspace/public/pm/home-data.js +2 -2
  115. package/workspace/public/pm/home-day.js +3 -3
  116. package/workspace/public/pm/home-drift.js +1 -1
  117. package/workspace/public/pm/home-goal.js +1 -1
  118. package/workspace/public/pm/home-impact.js +1 -1
  119. package/workspace/public/pm/home-ini.js +1 -1
  120. package/workspace/public/pm/home-line.js +5 -5
  121. package/workspace/public/pm/home-mentions.js +4 -4
  122. package/workspace/public/pm/home-moment.js +1 -1
  123. package/workspace/public/pm/home-need.js +1 -1
  124. package/workspace/public/pm/home-phone-card.js +1 -1
  125. package/workspace/public/pm/home-stage-card.js +2 -2
  126. package/workspace/public/pm/home-sweep.js +1 -1
  127. package/workspace/public/pm/home-today.js +2 -2
  128. package/workspace/public/pm/ini-about.js +2 -2
  129. package/workspace/public/pm/ini-agent.js +5 -5
  130. package/workspace/public/pm/ini-links.js +5 -5
  131. package/workspace/public/pm/ini-props.js +11 -11
  132. package/workspace/public/pm/ini-view-model.js +1 -1
  133. package/workspace/public/pm/ini-view.js +2 -2
  134. package/workspace/public/pm/intent.js +3 -3
  135. package/workspace/public/pm/loose-props.js +5 -5
  136. package/workspace/public/pm/metric-drafts.js +1 -1
  137. package/workspace/public/pm/ms-suggest.js +3 -3
  138. package/workspace/public/pm/next-prompt-ui.js +2 -2
  139. package/workspace/public/pm/okr-list.js +1 -1
  140. package/workspace/public/pm/page-chat.js +2 -2
  141. package/workspace/public/pm/premium-attach.js +1 -1
  142. package/workspace/public/pm/premium-initiative-head.js +1 -1
  143. package/workspace/public/pm/premium-insights.js +3 -3
  144. package/workspace/public/pm/premium-meeting.js +1 -1
  145. package/workspace/public/pm/premium-mtg-replay.js +1 -1
  146. package/workspace/public/pm/premium-notes.js +2 -2
  147. package/workspace/public/pm/premium-report-read.js +6 -6
  148. package/workspace/public/pm/premium-report-tab.js +7 -7
  149. package/workspace/public/pm/premium-shell.js +18 -18
  150. package/workspace/public/pm/premium-vw-ctx.js +3 -3
  151. package/workspace/public/pm/premium-vw-jira.js +1 -1
  152. package/workspace/public/pm/premium-welcome.js +1 -1
  153. package/workspace/public/pm/prog-order.js +2 -2
  154. package/workspace/public/pm/program-charter.js +3 -3
  155. package/workspace/public/pm/program-model.js +1 -1
  156. package/workspace/public/pm/ready-lib.js +4 -4
  157. package/workspace/public/pm/report-flow.js +7 -7
  158. package/workspace/public/pm/report-orders-ui.js +2 -2
  159. package/workspace/public/pm/split-merge.js +5 -5
  160. package/workspace/public/pm/story.js +1 -1
  161. package/workspace/public/pm/task-card.js +1 -1
  162. package/workspace/public/pm/tk-draft.js +1 -1
  163. package/workspace/public/pm/tk-send.js +2 -2
  164. package/workspace/public/pm/wf-page.js +2 -2
  165. package/workspace/ready-dash-ui-test.js +1 -1
  166. package/workspace/rec-present-test.js +2 -2
  167. package/workspace/server.js +14 -8
  168. package/workspace/session-names-test.js +3 -3
  169. package/workspace/skills/doc-check.skill +2 -0
  170. package/workspace/skills/idle-lab-prototype.skill +2 -0
  171. package/workspace/skills/measure.skill +2 -0
  172. package/workspace/skills/metric-read.skill +2 -0
  173. package/workspace/skills/milestone-review.skill +2 -0
  174. package/workspace/skills/report-biweekly.skill +2 -0
  175. package/workspace/skills/report-daily.skill +2 -0
  176. package/workspace/skills/report-design.skill +2 -0
  177. package/workspace/skills/report-monthly.skill +2 -0
  178. package/workspace/skills/report-weekly.skill +2 -0
  179. package/workspace/skills/story-first.skill +23 -0
  180. package/workspace/split-merge-ui-test.js +3 -3
  181. package/workspace/stage-card-test.js +4 -4
  182. package/workspace/task-links-test.js +1 -1
  183. package/workspace/task-views-test.js +7 -7
  184. package/workspace/tk-tasks-test.js +2 -2
@@ -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) {
@@ -55,7 +55,7 @@ async function pmSend(method, path, body) {
55
55
  try { const res = await pressFetch(path, { method, ...(body === undefined ? {} : { body: JSON.stringify(body) }) }); const out = await res.json(); if (out && typeof out === 'object' && !res.ok) out.status = res.status; return out; }
56
56
  catch (e) { return { ok: false, error: 'could not reach the workspace server — ' + ((e && e.message) || String(e)) }; }
57
57
  }
58
- const SECTIONS = [['general', 'General'], ['claude', 'Claude'], ['connectors', 'Connectors'], ['workspaces', 'Workspaces'], ['updates', 'Updates']];
58
+ const SECTIONS = [['general', 'General'], ['claude', 'PMOS'], ['connectors', 'Connectors'], ['workspaces', 'Workspaces'], ['updates', 'Updates']];
59
59
  const SUBS = { adler: 'Adler', jl: 'Jev and Laya', workflows: 'Workflows' }; // General › Extras and Workspaces › Workflows: each opens as a sub-panel of its section (U4, U1)
60
60
  const SRC = { calendar: 'Calendar', wispr: 'Wispr Flow', mail: 'Mail', slack: 'Slack', jira: 'Jira', confluence: 'Confluence', github: 'GitHub', drive: 'Google Drive', figma: 'Figma', website: 'Your websites' };
61
61
  const VIEWER_KEY = 'pmos.cz.viewer';
@@ -103,7 +103,7 @@ function general() {
103
103
  + trow('Agents write to Jira', 'Only after you press Commit. Never on their own.', (ready() ? '' : adFace('needs-you', 24)) + '<span class="ev-pill ok">Fixed</span>')
104
104
  + upd
105
105
  + '<h4>Extras</h4>'
106
- + trow('Adler', 'How much of Claude’s face shows, motion, celebrations, quiet hours and Dress for the day', subBtn('adler'))
106
+ + trow('Adler', 'How much of PMOS’s face shows, motion, celebrations, quiet hours and Dress for the day', subBtn('adler'))
107
107
  + trow('Jev and Laya', 'The TypeSafe key, Laya on this computer and the repositories it reads', subBtn('jl'));
108
108
  }
109
109
  /* General › Extras (U4): the row's › opens the sub-panel; its ‹ comes back to General */
@@ -125,8 +125,8 @@ async function saveDress(key, value, said = 'Saved.') {
125
125
  /* Settings > Adler (AdM5): four choices, each saved for this computer the moment it is pressed */
126
126
  function adlerSec() {
127
127
  const P = AD.prefs();
128
- return `<div class="ev-ad-hd">${AD.adler('handled', 48)}<p class="ev-small ev-mut">Adler is how Claude shows its mood in PMOS. You choose how much of him you see.</p></div>`
129
- + trow('How much Adler', 'Face only keeps his face where Claude speaks and drops the scenes. Off shows the plain mood dot.', seg('How much Adler', 'adler.amount', P['adler.amount'], [['full', 'Full'], ['face', 'Face only'], ['off', 'Off']]))
128
+ return `<div class="ev-ad-hd">${AD.adler('handled', 48)}<p class="ev-small ev-mut">Adler is how PMOS shows its mood in PMOS. You choose how much of him you see.</p></div>`
129
+ + trow('How much Adler', 'Face only keeps his face where PMOS speaks and drops the scenes. Off shows the plain mood dot.', seg('How much Adler', 'adler.amount', P['adler.amount'], [['full', 'Full'], ['face', 'Face only'], ['off', 'Off']]))
130
130
  + trow('Motion', 'Still stops every animation. Reduced motion on your computer always stops it.', seg('Motion', 'adler.motion', P['adler.motion'], [['system', 'Follow my computer'], ['still', 'Still']]))
131
131
  + trow('Celebrations', 'At most once a week, and only for a real event.', seg('Celebrations', 'adler.celebrate', P['adler.celebrate'], [['real', 'Real wins only'], ['never', 'Never']]))
132
132
  + trow('Quiet after', 'After this time, opening PMOS shows Adler asleep and nothing urgent.', seg('Quiet after', 'adler.quiet', P['adler.quiet'], [['22', '22:00'], ['never', 'Never']]))
@@ -295,11 +295,11 @@ const WAY = [['quiet', 'Quietly'], ['show', 'Show me'], ['ask', 'Ask first']];
295
295
  const dayOf = (iso) => { const t = Date.parse(iso || ''); return Number.isFinite(t) ? new Date(t).toLocaleDateString('en-GB', { day: 'numeric', month: 'short' }) : ''; };
296
296
  function kindSub(k, until) {
297
297
  const made = k.made === 1 ? '1 made' : k.made + ' made', kept = k.kept === k.made ? (k.made === 1 ? 'you kept it' : 'you kept all') : k.kept ? 'you kept ' + k.kept : 'none kept yet';
298
- const how = k.set ? 'You set this.' : k.auto === 'ask' ? 'Two Undos, so Claude asks first' + (k.until ? ' until ' + dayOf(k.until) : '') + '.'
299
- : k.auto === 'quiet' ? 'Claude does these quietly.' : 'A new kind shows until you keep ' + until + '.';
298
+ const how = k.set ? 'You set this.' : k.auto === 'ask' ? 'Two Undos, so PMOS asks first' + (k.until ? ' until ' + dayOf(k.until) : '') + '.'
299
+ : k.auto === 'quiet' ? 'PMOS does these quietly.' : 'A new kind shows until you keep ' + until + '.';
300
300
  return (k.made ? made + ', ' + kept + '. ' : '') + how;
301
301
  }
302
- const ALWAYS = [['Start a new request', 'Claude recommends. You decide.'], ['Say if it worked', 'The verdict on an outcome is yours.'], ['Send a message to people', 'Claude drafts. Only you send.'],
302
+ const ALWAYS = [['Start a new request', 'PMOS recommends. You decide.'], ['Say if it worked', 'The verdict on an outcome is yours.'], ['Send a message to people', 'PMOS drafts. Only you send.'],
303
303
  ['Move what the team reads', 'Stages and dates in Jira or on the Board.'], ['Merge, delete or spend', '']];
304
304
  function lessonRow(l) {
305
305
  const [wrong, ...rest] = String(l.text || '').split(/\n+/); // a lesson's first line says what went wrong, the rest what changed
@@ -307,11 +307,11 @@ function lessonRow(l) {
307
307
  }
308
308
  function decidesSec() {
309
309
  const K = T.ck;
310
- const kinds = !K ? '<p class="ev-small ev-mut">Reading what Claude did by itself.</p>' : K.ok === false ? `<p class="ev-small ev-mut">What Claude did could not be read: ${esc(K.error || 'the server did not answer')}.</p>`
311
- : !K.kinds.length ? '<p class="ev-small ev-mut">Claude has not changed anything by itself yet. Each kind of change shows here once it has.</p>'
310
+ const kinds = !K ? '<p class="ev-small ev-mut">Reading what PMOS did by itself.</p>' : K.ok === false ? `<p class="ev-small ev-mut">What PMOS did could not be read: ${esc(K.error || 'the server did not answer')}.</p>`
311
+ : !K.kinds.length ? '<p class="ev-small ev-mut">PMOS has not changed anything by itself yet. Each kind of change shows here once it has.</p>'
312
312
  : K.kinds.map((k) => trow(k.label, kindSub(k, K.showUntil || 3), seg(k.label, 'claude.way:' + k.kind, k.way, WAY))).join('');
313
313
  const L = T.ls && T.ls.ok ? T.ls.lessons || [] : [];
314
- return '<h4>How Claude decides</h4><p class="ev-small ev-mut ev-lead">Claude picks for each kind of change from what you kept and undid. Two Undos on a kind and it asks first for 7 days. You can set any kind yourself.</p>'
314
+ return '<h4>How PMOS decides</h4><p class="ev-small ev-mut ev-lead">PMOS picks for each kind of change from what you kept and undid. Two Undos on a kind and it asks first for 7 days. You can set any kind yourself.</p>'
315
315
  + kinds + '<h4>Always yours</h4>' + ALWAYS.map(([b, p]) => trow(b, p, '<span class="ev-pill">Always asks</span>')).join('')
316
316
  + (L.length ? '<h4>Lessons</h4>' + L.slice(0, 8).map(lessonRow).join('') : '');
317
317
  }
@@ -323,7 +323,7 @@ async function saveWay(kind, v) {
323
323
  if (v === k.auto) delete ways[kind]; else ways[kind] = v;
324
324
  const r = await pmPost('/api/settings', { key: 'claude.ways', value: ways });
325
325
  if (r && r.ok) { k.set = ways[kind] || null; k.way = v; }
326
- T.msg = r && r.ok ? 'Saved. ' + k.label + ': ' + (v === 'ask' ? 'Claude asks you first.' : v === 'show' ? 'Claude does them and shows them first in Claude did.' : 'Claude does them quietly.') : (r && r.error) || 'Not saved.';
326
+ T.msg = r && r.ok ? 'Saved. ' + k.label + ': ' + (v === 'ask' ? 'PMOS asks you first.' : v === 'show' ? 'PMOS does them and shows them first in PMOS did.' : 'PMOS does them quietly.') : (r && r.error) || 'Not saved.';
327
327
  draw();
328
328
  }
329
329
  /* Settings > Claude: which Claude profile PMOS starts Claude sessions with, and the API key for Claude's own runs (D101).
@@ -336,7 +336,7 @@ function claudeSec() {
336
336
  const gone = pref && !ps.some((x) => x.id === pref);
337
337
  const profSub = C.perr ? 'The profiles could not be read: ' + C.perr : !ps.length ? 'No profiles on this computer. PMOS starts Claude as you are signed in.' : gone ? 'The saved profile is no longer on this computer.' : pref ? 'New Claude sessions start with it.' : 'New Claude sessions start as you are signed in.';
338
338
  const k = C.key || {};
339
- const keySub = k.present ? (k.source === 'environment' ? 'Set in ANTHROPIC_API_KEY. A key saved here is used first.' : 'Saved on this computer only. PMOS never shows it again.') : 'Not set. Claude\u2019s own runs, such as Grill, use a Claude session instead.';
339
+ const keySub = k.present ? (k.source === 'environment' ? 'Set in ANTHROPIC_API_KEY. A key saved here is used first.' : 'Saved on this computer only. PMOS never shows it again.') : 'Not set. PMOS\u2019s own runs, such as Grill, use a Claude session instead.';
340
340
  const keyRight = `<span class="ev-dr-pl"><label class="ev-vh" for="evKey">Anthropic API key</label><input id="evKey" class="ev-inp" type="password" autocomplete="off" spellcheck="false" placeholder="${k.present ? 'Replace the key' : 'sk-ant-\u2026'}" data-ev-key><button type="button" class="ev-btn sm pri" data-ev-keysave>Save</button>${k.source === 'settings' ? '<button type="button" class="ev-btn sm" data-ev-keyclear>Remove</button>' : ''}</span>`;
341
341
  return decidesSec() + '<h4>Claude login and profile</h4><div data-claude-setup></div>'
342
342
  + trow('API key', keySub, keyRight)
@@ -354,7 +354,7 @@ function sharpenRows() {
354
354
  const on = sh !== 'off' && !(T.np && T.np.sharpen === false && sh === 'auto');
355
355
  const down = T.np && T.np.apiDown;
356
356
  const shSub = !on ? (down && down.auth ? 'Off for now: your API key was refused. Replace it under API key above.' : 'Off. No spinner and no Sharper card.')
357
- : 'When you pause on a rough prompt, Claude writes a sharper version above the box. It runs in your Claude session and takes a few seconds.';
357
+ : 'When you pause on a rough prompt, PMOS writes a sharper version above the box. It runs in your Claude session and takes a few seconds.';
358
358
  const styleSub = style === 'polish' ? 'Clearer and shorter, your meaning kept.' : style === 'own' ? (rules.trim() ? 'Your rules below.' : 'Write your rules below first.') : 'Builds the best prompt for the job.';
359
359
  return '<h4>Sharpen prompts</h4>'
360
360
  + trow('Suggest the next prompt', 'After a reply, up to two prompts above the box. A tap puts one in the box. Nothing sends.', sw(next, 'data-ev-np="prompt.next"', 'Suggest the next prompt'))
@@ -377,13 +377,13 @@ const CAPS = [5, 10, 20, 50];
377
377
  const usd = (n) => '$' + (Math.round(Number(n) * 100) % 100 ? Number(n).toFixed(2) : String(Math.round(Number(n))));
378
378
  function checksSec() {
379
379
  const C = T.gr;
380
- if (!C) return '<p class="ev-small ev-mut">Reading Claude’s checks.</p>';
381
- if (C.ok === false) return `<p class="ev-small ev-mut">Claude’s checks could not be read: ${esc(C.error || 'the server did not answer')}.</p>`;
380
+ if (!C) return '<p class="ev-small ev-mut">Reading PMOS’s checks.</p>';
381
+ if (C.ok === false) return `<p class="ev-small ev-mut">PMOS’s checks could not be read: ${esc(C.error || 'the server did not answer')}.</p>`;
382
382
  const caps = [...new Set(CAPS.concat(Number.isFinite(C.cap) ? [C.cap] : []))].sort((a, b) => a - b);
383
383
  const modeSub = C.envOff ? 'Off: PMOS_GRILL is off in the environment.' : 'Before an initiative leaves a stage, when a forecast turns, when scope or dates move a lot, and once a month on running work that feels off. Findings wait under ✦.';
384
384
  const used = Number.isFinite(C.cap) && C.cap > 0 ? Math.min(100, Math.round((C.spent / C.cap) * 100)) : 0;
385
385
  return trow('Grill by itself', modeSub, C.envOff ? '<span class="ev-pill">Off</span>' : seg('Grill by itself', 'grill.mode', C.mode, [['full', 'Full'], ['exits', 'Only at stage exits'], ['off', 'Off']]))
386
- + trow('Monthly credit for checks', C.paused ? 'Paused at the limit this month. Claude starts again next month, or when you raise it.' : 'At the limit Claude pauses and says so once. It never charges beyond it.', seg('Monthly credit for checks', 'grill.cap', C.cap, caps.map((v) => [v, usd(v)])))
386
+ + trow('Monthly credit for checks', C.paused ? 'Paused at the limit this month. PMOS starts again next month, or when you raise it.' : 'At the limit PMOS pauses and says so once. It never charges beyond it.', seg('Monthly credit for checks', 'grill.cap', C.cap, caps.map((v) => [v, usd(v)])))
387
387
  + `<div class="ev-trow ev-gcap"><span class="ev-small"><b>${esc(usd(C.spent))}</b> of ${esc(usd(C.cap))} used this month</span><span class="ev-gbar" role="img" aria-label="${used}% of the monthly credit used"><i style="width:${used}%"></i></span></div>`;
388
388
  }
389
389
  const BODY = { general, claude: claudeSec, connectors, workspaces, updates };
@@ -482,11 +482,11 @@ async function press(e) {
482
482
  const key = t.dataset.evSeg, value = key === 'grill.cap' ? Number(t.dataset.v) : t.dataset.v;
483
483
  const r = await pmPost('/api/settings', { key, value });
484
484
  if (r && r.ok) T.gr = { ...T.gr, [key === 'grill.cap' ? 'cap' : 'mode']: r.value !== undefined ? r.value : value, ...(key === 'grill.cap' ? { paused: T.gr.paused && Number(value) <= T.gr.spent } : {}) };
485
- T.msg = r && r.ok ? (key === 'grill.mode' ? (value === 'off' ? 'Saved. Claude no longer grills by itself.' : value === 'exits' ? 'Saved. Claude grills only before a stage ends.' : 'Saved. Claude grills by itself when it matters.') : 'Saved. Claude’s checks spend at most ' + usd(value) + ' a month.') : (r && r.error) || 'Not saved.';
485
+ T.msg = r && r.ok ? (key === 'grill.mode' ? (value === 'off' ? 'Saved. PMOS no longer grills by itself.' : value === 'exits' ? 'Saved. PMOS grills only before a stage ends.' : 'Saved. PMOS grills by itself when it matters.') : 'Saved. PMOS’s checks spend at most ' + usd(value) + ' a month.') : (r && r.error) || 'Not saved.';
486
486
  draw(); return;
487
487
  }
488
488
  if (t.dataset.evSeg === 'prompt.style') { await savePrompt('prompt.style', t.dataset.v, 'Saved. Sharper prompts follow this style.'); return; }
489
- if (t.dataset.evNp === 'prompt.next') { const on = setVal('prompt.next', true) === false; await savePrompt('prompt.next', on, on ? 'Saved. Claude suggests the next prompt after a reply.' : 'Saved. No suggestions after a reply.'); return; }
489
+ if (t.dataset.evNp === 'prompt.next') { const on = setVal('prompt.next', true) === false; await savePrompt('prompt.next', on, on ? 'Saved. PMOS suggests the next prompt after a reply.' : 'Saved. No suggestions after a reply.'); return; }
490
490
  if (t.dataset.evNp === 'prompt.sharpen') { const sh = setVal('prompt.sharpen', 'auto'), was = sh !== 'off' && !(T.np && T.np.sharpen === false && sh === 'auto'); await savePrompt('prompt.sharpen', was ? 'off' : 'on', was ? 'Saved. Sharpen as I type is off.' : 'Saved. Sharpen as I type is on.'); return; }
491
491
  if ('evRulesave' in t.dataset) { const ta = T.el.querySelector('#evRules'); await savePrompt('prompt.rules', ta ? ta.value.slice(0, 1000) : '', 'Saved. Your own rules are used when Sharpen as is Your own.'); return; }
492
492
  if (t.dataset.evSeg && t.dataset.evSeg.startsWith('adler.')) { const r = await AD.savePref(pmPost, t.dataset.evSeg, t.dataset.v); T.msg = r && r.ok ? 'Saved.' : (r && r.error) || 'Not saved.'; draw(); return; }
@@ -520,7 +520,7 @@ async function press(e) {
520
520
  const r = clear ? await pmSend('DELETE', '/api/anthropic/key') : await pmSend('PUT', '/api/anthropic/key', { key: val });
521
521
  if (inp) inp.value = '';
522
522
  if (r && r.ok) T.cl = { ...T.cl, key: r.key };
523
- T.msg = r && r.ok ? (clear ? 'The saved key is removed.' : 'Saved on this computer. Claude\u2019s own runs use it from now on.') : (r && r.error) || 'Not saved.';
523
+ T.msg = r && r.ok ? (clear ? 'The saved key is removed.' : 'Saved on this computer. PMOS\u2019s own runs use it from now on.') : (r && r.error) || 'Not saved.';
524
524
  draw(); return;
525
525
  }
526
526
  if (await JL.press(t, draw, (m) => { T.msg = m; })) return;
@@ -48,8 +48,8 @@ export function nodeHtml(state, size = 22) {
48
48
  function ownerHtml(o) {
49
49
  if (!o) return '';
50
50
  const k = o.kind === 'jira' ? 'j' : o.kind === 'claude' ? (o.live ? 'c' : 'cw') : 'p';
51
- const t = o.kind === 'jira' ? 'J' : o.kind === 'claude' ? 'C' : String(o.initials || '?').slice(0, 2);
52
- const name = o.name || (o.kind === 'jira' ? 'Jira' : o.kind === 'claude' ? 'Claude' : '');
51
+ const t = o.kind === 'jira' ? 'J' : o.kind === 'claude' ? 'P' : String(o.initials || '?').slice(0, 2);
52
+ const name = o.name || (o.kind === 'jira' ? 'Jira' : o.kind === 'claude' ? 'PMOS' : '');
53
53
  return `<span class="cz-own ${k}" role="img" aria-label="${esc(name)}" title="${esc(name)}">${esc(t)}</span>`;
54
54
  }
55
55
  function jiraHtml(j) {