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
@@ -183,7 +183,7 @@ export function headHtml(it) {
183
183
  ? `<button type="button" class="cz-vw-pri${x.text && !phone ? '' : ' i'}${x.blue ? ' blue' : ''}" data-cz-vw="press" data-cz-vw-p="${esc(x.act)}" aria-label="${esc(x.label)}" title="${esc(x.label)}">${svg(path(x.icon), 15, 2.2)}${x.text && !phone ? `<span>${esc(x.text)}</span>` : ''}</button>`
184
184
  : `<button type="button" class="cz-vw-ib" data-cz-vw="press" data-cz-vw-p="${esc(x.act)}" aria-label="${esc(x.label)}" title="${esc(x.label)}"${x.pressed != null ? ` aria-pressed="${x.pressed ? 'true' : 'false'}"` : ''}>${svg(path(x.icon), 18)}</button>`).join('');
185
185
  const sub = o.sub ? `<p class="cz-vw-sub">${esc(o.sub)}</p>` : '';
186
- const chip = o.chip && (o.chip.n > 0 || o.chip.looking) ? `<button type="button" class="cz-vw-chip${o.chip.looking ? ' live' : ''}" data-cz-vw="chip" aria-haspopup="dialog" aria-label="${esc(o.chip.label || 'Claude proposes ' + o.chip.n + '. Open')}" title="${esc(o.chip.label || 'Claude proposes')}">${svg(ICONS.spark, 13, 2)}${o.chip.n > 0 && !o.chip.quiet ? `<b>${esc(o.chip.n)}</b>` : ''}</button>` : '';
186
+ const chip = o.chip && (o.chip.n > 0 || o.chip.looking) ? `<button type="button" class="cz-vw-chip${o.chip.looking ? ' live' : ''}" data-cz-vw="chip" aria-haspopup="dialog" aria-label="${esc(o.chip.label || 'PMOS proposes ' + o.chip.n + '. Open')}" title="${esc(o.chip.label || 'PMOS proposes')}">${svg(ICONS.spark, 13, 2)}${o.chip.n > 0 && !o.chip.quiet ? `<b>${esc(o.chip.n)}</b>` : ''}</button>` : '';
187
187
  return (o.canBack || phone ? ib('back', o.canBack ? (o.backTo ? 'Back to ' + o.backTo : 'Back') : 'Close the viewer', P.back) : '')
188
188
  + (o.fwdTo ? ib('fwd', 'Forward to ' + o.fwdTo, P.fwd) : '')
189
189
  + (o.check ? `<button type="button" class="cz-vw-tile cz-vw-chk s-${esc(o.check.state || 'todo')}" data-cz-vw="press" data-cz-vw-p="check" aria-label="${esc(o.check.label || 'Mark done')}" title="${esc(o.check.title || o.check.label || 'Mark done')}"${o.check.disabled ? ' disabled' : ''}><span class="bx"></span></button>`
@@ -39,7 +39,7 @@ export function compactOffer(c, closes = false, sid = '') {
39
39
  }
40
40
  /** The ✓ that accepts it: types /compact into that session (POST /api/session/compact). */
41
41
  export function compactBtnHtml(sid, pct) {
42
- const say = `Compact this session; Claude says its context is ${pct}% full`;
42
+ const say = `Compact this session; PMOS says its context is ${pct}% full`;
43
43
  // the same ✓ as item 7's close (.hm-cls): one look for "accept what Claude proposes" on a row
44
44
  return `<button type="button" class="ut-ib hv-ib hm-cls" data-hm-compact="${esc(sid)}" aria-label="${esc(say)}" title="Compact this session (types /compact)"><svg aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12l5 5 9-10"/></svg></button>`;
45
45
  }
@@ -258,7 +258,7 @@ export function wireDash(body, h0) {
258
258
  if (a === 'needs') {
259
259
  const n = need() || {}, w = { ws: h.ws || undefined, board: h.board || undefined, initiative: n.ini || undefined };
260
260
  if (k === 'keep') return done(await post('/api/proposals/keep', { ...w, ids: (n.keep && n.keep.ids) || [] }), 'Kept your pick.');
261
- return done(await post('/api/proposals/drop', { ...w, sig: n.drop && n.drop.sig }), 'Not now. It stays in Claude proposes.');
261
+ return done(await post('/api/proposals/drop', { ...w, sig: n.drop && n.drop.sig }), 'Not now. It stays in PMOS proposes.');
262
262
  }
263
263
  if (a === 'promise') { const p = (d.drafts && d.drafts.promise) || {}; return done(await post('/api/ready-reports/promise', { ...base, act: k, date: p.date }), k === 'keep' ? 'Kept. Reports say it is a guess until Jira has tickets.' : 'Not now.'); }
264
264
  if (a === 'hold') { const [id, act] = k.split('|'), r = row(id) || {}; return done(await post('/api/ready-reports/hold', { ...base, kind: r.kind, act }), act === 'wait' ? 'It waits. It goes by itself once the source reads, if nothing changed.' : act === 'send-note' ? 'Sent, with the date of the last reading written on it.' : 'Skipped. The next issue covers both weeks.'); }
@@ -7,7 +7,7 @@ const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&':
7
7
 
8
8
  /** The `/` menu (G1): PMOS's /goal, then Claude Code's own commands. */
9
9
  export const SLASH = [
10
- { cmd: '/goal', name: 'Give Claude a goal', say: 'It picks a way to ask about the goal, asks a few questions, then works on it after you press Start.' },
10
+ { cmd: '/goal', name: 'Give PMOS a goal', say: 'It picks a way to ask about the goal, asks a few questions, then works on it after you press Start.' },
11
11
  { cmd: '/compact', name: 'Compact the conversation', say: 'Claude Code summarises the conversation so far to free room.' },
12
12
  { cmd: '/clear', name: 'Clear the conversation', say: 'Claude Code starts again with an empty context in the same session.' },
13
13
  ];
@@ -162,7 +162,7 @@ export function goalBlockHtml(block, { live = false, state = 'grilling', menu =
162
162
  }
163
163
  if (block.step === 'progress') {
164
164
  const met = Array.isArray(block.met) ? block.met.length : 0, open = Array.isArray(block.open) ? block.open.length : 0;
165
- const word = block.state === 'done' ? 'Done, as Claude sees it' : block.state === 'needs-you' ? 'Needs you' : 'Working';
165
+ const word = block.state === 'done' ? 'Done, as PMOS sees it' : block.state === 'needs-you' ? 'Needs you' : 'Working';
166
166
  return `<p class="gprog">${esc(word)} · ${met} of ${met + open} done points met · unverified</p>`;
167
167
  }
168
168
  return '';
@@ -235,17 +235,17 @@ export function goalProgressHtml(goal) {
235
235
  const now = req.find((x) => !met.has(x)); // the point Claude is on: it cannot be skipped with ×
236
236
  const limit = Number.isInteger(d.limit) ? d.limit : 12;
237
237
  const pill = goal.state === 'started' ? 'Working · round ' + Math.max(1, (goal.rounds || 0) + 1) + ' of ' + limit
238
- : goal.state === 'done' ? 'Done, as Claude reports it' : goal.state === 'waiting' ? 'Needs you' : 'Stopped';
238
+ : goal.state === 'done' ? 'Done, as PMOS reports it' : goal.state === 'waiting' ? 'Needs you' : 'Stopped';
239
239
  const note = goal.state === 'stopped' ? (WHY[goal.reason] || 'It stopped.') + ' Send a message to go on, or /goal to set a new goal.'
240
- : goal.state === 'waiting' ? 'Claude needs your answer above. Your reply lets it go on.'
241
- : goal.state === 'done' ? 'Check the work before you rely on it. Claude checked its own points.' : 'Claude keeps working until every point is met, the deadline, or ' + limit + ' rounds.';
240
+ : goal.state === 'waiting' ? 'PMOS needs your answer above. Your reply lets it go on.'
241
+ : goal.state === 'done' ? 'Check the work before you rely on it. PMOS checked its own points.' : 'PMOS keeps working until every point is met, the deadline, or ' + limit + ' rounds.';
242
242
  // skip a point (XcbOptions B row 2): × on a point that has not started; struck through with Undo until Claude's next round
243
243
  const act = (x) => {
244
244
  if (!working || met.has(x)) return '';
245
245
  if (skipped.has(x)) return undoable(goal, x) ? `<button type="button" class="rx" data-goal-unskip="${esc(x)}" aria-label="Undo the skip" title="Undo the skip">${P(ICON.undo, 15, 2.2)}</button>` : '';
246
246
  return x !== now && req.length > 1 ? `<button type="button" class="rx" data-goal-skip="${esc(x)}" aria-label="Skip this point" title="Skip this point">${P(ICON.x, 14, 2.2)}</button>` : '';
247
247
  };
248
- const word = (x) => (skipped.has(x) ? (undoable(goal, x) ? 'Skipped by you · Claude drops it after this step' : 'Skipped by you') : met.has(x) ? 'met' : working && x === now ? 'now · Stop or tell Claude to skip it' : 'open');
248
+ const word = (x) => (skipped.has(x) ? (undoable(goal, x) ? 'Skipped by you · PMOS drops it after this step' : 'Skipped by you') : met.has(x) ? 'met' : working && x === now ? 'now · Stop or tell PMOS to skip it' : 'open');
249
249
  const pts = all.map((x) => `<li class="${met.has(x) ? 'm' : skipped.has(x) ? 'sk' : ''}"><i aria-hidden="true"></i><span>${skipped.has(x) ? `<s>${esc(x)}</s>` : esc(x)}</span><em>${esc(word(x))}</em>${act(x)}</li>`).join('');
250
250
  const stop = goal.state === 'started' ? '<div class="chatopts"><button type="button" class="cta alt" data-goal="stop">Stop the goal</button></div>' : '';
251
251
  const pen = working ? icb('data-goal="change"', 'Change the plan', ICON.pen) : '';
@@ -387,8 +387,8 @@ export function gmHtml(G, openHtml, o = {}) {
387
387
  else if (quiet) a += `<div class="gm-more">${quiet}</div>`;
388
388
  // Claude did (AwA): the amber line of a run that stopped, then the newest changes with their reasons and Undo; the rest fold
389
389
  const dl = (G.did || []).slice(0, MOVE_CAP), dmore = (G.did || []).length - dl.length;
390
- if (dl.length || G.failed) a += `<section class="gm-sec gm-didl"><h3 class="gm-sh">Claude did${G.didN ? ` <span class="gm-n">${G.didN} since yesterday</span>` : ''}<button type="button" class="gm-lnk" data-yd="gm-claude">By product</button></h3>${failHtml(G.failed)}${dl.map(didRowHtml).join('')}`
391
- + (dmore > 0 ? `<div class="gm-more"><button type="button" data-yd="gm-fold" data-fold="done"><b>${dmore}</b> more Claude did${svg(CHEV, 14, 2)}</button></div>` : '') + '</section>';
390
+ if (dl.length || G.failed) a += `<section class="gm-sec gm-didl"><h3 class="gm-sh">PMOS did${G.didN ? ` <span class="gm-n">${G.didN} since yesterday</span>` : ''}<button type="button" class="gm-lnk" data-yd="gm-claude">By product</button></h3>${failHtml(G.failed)}${dl.map(didRowHtml).join('')}`
391
+ + (dmore > 0 ? `<div class="gm-more"><button type="button" data-yd="gm-fold" data-fold="done"><b>${dmore}</b> more PMOS did${svg(CHEV, 14, 2)}</button></div>` : '') + '</section>';
392
392
  const b = G.since.length || G.newsN ? `<section class="gm-sec gm-since"><h3 class="gm-sh">Since yesterday${G.since.length ? `<button type="button" class="yd-all" data-yd="seen" aria-label="Mark all ${G.newsN} seen" title="Mark all seen">${svg(MARK2, 18, 1.9)}</button>` : ''}</h3>`
393
393
  + `<div class="gm-sl">${G.since.map((it) => `<button type="button" class="gm-si${it.rise ? ' hot' : ''}" data-yd="news" data-id="${esc(it.id)}"><i aria-hidden="true"></i><span>${esc(it.kind === 'task' ? String(it.title || '').replace(/^New task: /, '') : it.title)}</span>${it.at ? `<em>${esc(at(it.at))}</em>` : ''}</button>`).join('')}</div>`
394
394
  + `<button type="button" class="gm-lnk" data-yd="news-all">New for you · ${G.newsN}</button></section>` : '';
@@ -52,7 +52,7 @@ const WHY = { exit: 'before it leaves its stage', forecast: 'when its forecast t
52
52
  export const whyWord = (r) => (r && WHY[r.why]) || '';
53
53
  export function runLine(r, now = Date.now()) {
54
54
  if (!r) return '';
55
- return ['Claude grilled it', whenWord(r.at, now)].filter(Boolean).join(' ') + (whyWord(r) ? ', ' + whyWord(r) : '');
55
+ return ['PMOS grilled it', whenWord(r.at, now)].filter(Boolean).join(' ') + (whyWord(r) ? ', ' + whyWord(r) : '');
56
56
  }
57
57
  export const turnWord = (to) => (to === 'will-miss' ? 'will miss' : to === 'at-risk' ? 'is at risk' : '');
58
58
 
@@ -96,7 +96,7 @@ const I = {
96
96
  };
97
97
  const ROW_ICON = { gate: I.gate, warn: I.warn, clock: I.clock, doc: I.doc, chat: I.chat, goal: I.flag, product: I.chart, routine: I.routine, person: I.person };
98
98
  const COMMS = { key: 'comms', name: 'Communicator', initial: 'Co' };
99
- const CLAUDE = { key: 'claude', name: 'Claude', initial: 'C' };
99
+ const CLAUDE = { key: 'claude', name: 'PMOS', initial: 'P' };
100
100
  const RET_REASONS = ['wrong facts', 'wrong scope', 'not now', 'too long'];
101
101
  const RET_LABEL = { 'wrong facts': 'Facts are wrong', 'wrong scope': 'Wrong scope', 'not now': 'Not needed now', 'too long': 'Too long' };
102
102
  const store = {
@@ -314,7 +314,7 @@ window.addEventListener('hm:mentions', () => { if (S.day) S.day = false; S.sel =
314
314
  /* ── the list ── */
315
315
  const dotCls = (st) => ({ needs: 'you', blocked: 'late', working: 'ok run' }[st] || 'none');
316
316
  function tileHtml(r) {
317
- if (r.kind === 'session' || r.kind === 'person') return avHtml(r.role || { initial: r.initial || 'C' }, 30, 'hm-tile');
317
+ if (r.kind === 'session' || r.kind === 'person') return avHtml(r.role || { initial: r.initial || 'P' }, 30, 'hm-tile');
318
318
  if (r.kind === 'update') return `<span class="hm-tile">${SVG(I.doc, 14)}</span>`;
319
319
  return `<span class="hm-tile">${SVG(ROW_ICON[r.icon] || I.chat, 14)}</span>`;
320
320
  }
@@ -382,7 +382,7 @@ function rankIn() {
382
382
  // the UI grill's delete list: Your impact's card and the ✦ chip on "Not in an initiative" are gone from Home; they land here instead
383
383
  const extra = [];
384
384
  if (S.impact && S.impact.c && !S.impact.c.looked) extra.push({ key: 'impact', go: 'impact', title: 'Your impact: ' + S.impact.c.label + ' is ready to check', sub: 'A thank-you and what really moved, from your records.' });
385
- const lp = LPV.chipOf(); if (lp) extra.push({ key: 'loose', go: 'loose', title: 'Not in an initiative: ' + lp.n + (lp.n === 1 ? ' row' : ' rows') + ' to tidy', sub: 'Claude proposes where each one belongs.' });
385
+ const lp = LPV.chipOf(); if (lp) extra.push({ key: 'loose', go: 'loose', title: 'Not in an initiative: ' + lp.n + (lp.n === 1 ? ' row' : ' rows') + ' to tidy', sub: 'PMOS proposes where each one belongs.' });
386
386
  for (const l of S.lab || []) extra.push({ key: 'lab:' + l.ws, go: 'lab', ws: l.ws, board: l.board, title: 'Lab: ' + l.n + (l.n === 1 ? ' finding fits' : ' findings fit') + ' no initiative', sub: l.say || 'Keep one to start an initiative, or let it go.' });
387
387
  return { products, programs: S.D.programs || [], move: S.move || {}, mentions: MEN.mentionsOf(S.D).waiting, outbox: S.outbox || [], extra };
388
388
  }
@@ -429,7 +429,7 @@ const insightsHref = (ws) => '/premium-intelligence.html' + (ws ? '?ws=' + encod
429
429
  async function openProps(ws, board, id) {
430
430
  await goIni(id);
431
431
  const r = await pmGet('/api/proposals?ws=' + encodeURIComponent(ws || '') + '&board=' + encodeURIComponent(board || '') + '&initiative=' + encodeURIComponent(id) + '&grill=all').catch(() => null);
432
- if (!r || r.ok === false) { toast((r && r.error) || 'What Claude proposes could not be read.'); return; }
432
+ if (!r || r.ok === false) { toast((r && r.error) || 'What PMOS proposes could not be read.'); return; }
433
433
  const row = iniRowOf(id) || {};
434
434
  const IP = await import('./ini-props.js');
435
435
  IP.open({ id, title: row.title || id, props: r.props }, { where: () => ({ ws, board }), reload: () => load(), toast: (m, undo) => (undo ? toastUndo(m, undo) : toast(m)) });
@@ -464,7 +464,7 @@ async function movePress(b) {
464
464
  let ok = true;
465
465
  for (const x of r.props) for (const sig of x.sigs) { const res = await pmPost('/api/proposals/drop', { ws: x.ws, board: x.board, initiative: x.ini, sig }).catch(() => null); if (!res || !res.ok) ok = false; }
466
466
  if (!ok) { b.disabled = false; toast('It could not be dropped. Nothing changed.'); return; }
467
- done('Dropped. Claude will not raise it again on the same evidence.'); return;
467
+ done('Dropped. PMOS will not raise it again on the same evidence.'); return;
468
468
  }
469
469
  if (act !== 'mv-yes') { b.disabled = false; return; }
470
470
  if (r.kind === 'verdict' && r.verdict) {
@@ -825,7 +825,7 @@ function cardHtml(id, o = {}) {
825
825
  + (then ? `<p class="hm-then"><b>Then:</b> ${esc(then)}</p>` : '')
826
826
  + (time ? `<p class="hm-time${over ? ' over' : ''}">${SVG(I.clock, 13)}${esc(time)}</p>` : ''))
827
827
  + `<div class="hm-acts"><button type="button" class="hm-cta${primary ? '' : ' alt'}" data-hm-cta>${esc(cta)}</button>`
828
- + `<button type="button" class="hm-ov" data-hm-ov aria-label="Overview of ${esc(title)} with Claude" title="Overview with Claude">${avHtml(CLAUDE, 24)}</button></div></div></section>`;
828
+ + `<button type="button" class="hm-ov" data-hm-ov aria-label="Overview of ${esc(title)} with PMOS" title="Overview with PMOS">${avHtml(CLAUDE, 24)}</button></div></div></section>`;
829
829
  }
830
830
  function drawList() {
831
831
  const el = $('#hmList');
@@ -1048,7 +1048,7 @@ function toItems(cur) {
1048
1048
  const id = S.ini, at = cur && cur.key;
1049
1049
  const ses = S.D.sessions.filter((s) => H.iniOfSession(s) === id && s.shown !== 'exited');
1050
1050
  const main = iniTarget(id);
1051
- return [{ label: 'The initiative’s chat', sub: 'Claude, with ' + iniTitle(id) + ' as its context', checked: at === main.key, go: () => openTarget(main) }]
1051
+ return [{ label: 'The initiative’s chat', sub: 'PMOS, with ' + iniTitle(id) + ' as its context', checked: at === main.key, go: () => openTarget(main) }]
1052
1052
  .concat(ses.map((s) => { const r = H.roleOf(s, S.D.desk && S.D.desk.roles), st = sessionTarget(s); return { label: H.nameOf(s), sub: r.name + ' · another session of this initiative', checked: at === st.key, go: () => openTarget(st) }; }))
1053
1053
  .concat([{ label: 'A new session', sub: 'A fresh conversation in ' + iniTitle(id), go: () => newIn(id) }]);
1054
1054
  }
@@ -1088,8 +1088,8 @@ const scopeOf = (ini) => (ini ? { text: iniTitle(ini), icon: I.flag } : { text:
1088
1088
  const rich = () => !!S.ini;
1089
1089
  function iniTarget(id) {
1090
1090
  const h = S.H || {};
1091
- return { key: 'init:' + id, ini: id, ws: (otherIni(id) || {}).ws || WS || undefined, title: iniTitle(id), about: iniTitle(id), newChat: () => newIn(id), sub: (S.IMid === id && h.stage) || '', scope: scopeOf(id), rich: true, placeholder: 'Message Claude about ' + iniTitle(id),
1092
- empty: 'Ask about ' + iniTitle(id) + '. Claude reads its records and works in a real Claude Code session.', also: alsoOf(id),
1091
+ return { key: 'init:' + id, ini: id, ws: (otherIni(id) || {}).ws || WS || undefined, title: iniTitle(id), about: iniTitle(id), newChat: () => newIn(id), sub: (S.IMid === id && h.stage) || '', scope: scopeOf(id), rich: true, placeholder: 'Message PMOS about ' + iniTitle(id),
1092
+ empty: 'Ask about ' + iniTitle(id) + '. PMOS reads its records and works in a real Claude Code session.', also: alsoOf(id),
1093
1093
  // the initiative's conversation opens on where it stands (AgInitYou), until it has messages of its own
1094
1094
  intro: S.IMid === id && h.cur ? { role: CLAUDE, onlyEmpty: true, text: h.cur + '. ' + h.doneOf + '.' + (h.rest.length ? ' Waiting: ' + h.rest.map((x) => x.label).join(', ') + '.' : ''), pills: [{ label: h.cta, primary: true, go: () => cta() }, { label: 'Discuss', go: () => chat.focus() }] } : undefined, context: h.payoff ? 'Initiative ' + id + ': ' + (h.stage || '') + '. ' + (h.time || '') : undefined };
1095
1095
  }
@@ -1136,7 +1136,7 @@ function updateTarget() {
1136
1136
  return { key: H.UPDATE_KEY, ini: 'product', ws: WS || undefined, title: 'Weekly update', sub: 'Communicator · ' + (sent ? 'sent this week' : 'ready to send'), scope: scopeOf('product'), rich: rich(), role: COMMS, to: null,
1137
1137
  intro: { role: COMMS, text: sent ? 'This week\'s update went out from your mail on ' + new Date(sent.at).toDateString() + '.' : text,
1138
1138
  pills: sent ? [{ label: 'Read it', primary: true, go: () => openUpdateViewer() }] : [{ label: 'Send now', primary: true, go: () => sendUpdate() }, { label: 'Edit', go: () => { openUpdateViewer(); chat.focus(); } }] },
1139
- context: (U.unconfirmed.length ? 'Read these first: Claude proposed ' + U.unconfirmed.length + ' risks the PM has not confirmed (they are not in the mail): ' + U.unconfirmed.map((x) => x.title + ', ' + x.why).join('; ') + '.\n' : '')
1139
+ context: (U.unconfirmed.length ? 'Read these first: PMOS proposed ' + U.unconfirmed.length + ' risks the PM has not confirmed (they are not in the mail): ' + U.unconfirmed.map((x) => x.title + ', ' + x.why).join('; ') + '.\n' : '')
1140
1140
  + 'The weekly update draft for ' + H.productName(S.D) + ':\n' + H.updateText(U, H.productName(S.D)) + '\nRecipients: ' + (U.to.join(', ') || 'none yet') + '. You can change the draft; the PM sends it from their own mail.',
1141
1141
  placeholder: 'Tell Communicator what to change', also: null };
1142
1142
  }
@@ -1144,7 +1144,7 @@ function updateTarget() {
1144
1144
  function productTarget() {
1145
1145
  const name = H.productName(S.D), C = H.productCard(S.D, S.D.now);
1146
1146
  return { key: 'chat:product', ini: 'product', ws: WS || undefined, title: name, about: name, newChat: () => newProduct(productTarget()), sub: 'Product', scope: scopeOf('product'), rich: false, role: CLAUDE, to: null,
1147
- placeholder: 'Message Claude about ' + name, empty: 'Ask about ' + name + '. Claude reads its goals, its initiatives and this week\'s update.',
1147
+ placeholder: 'Message PMOS about ' + name, empty: 'Ask about ' + name + '. PMOS reads its goals, its initiatives and this week\'s update.',
1148
1148
  context: 'Product ' + name + '. ' + C.of + (C.items.length ? ': ' + C.items.map((x) => x.label).join('; ') : '') + '.', also: null };
1149
1149
  }
1150
1150
  /** The list's key of the board's own product group ('p:<key>'): its heading shows as selected while the product's page is open. */
@@ -1246,7 +1246,7 @@ function productPageHtml(x, ws, vid, name, g) {
1246
1246
  const lead = story ? 'Your weekly update is this story.' : d && d.handled ? d.handled.lead : '';
1247
1247
  const rest = story ? 'I keep it current from the records, and every line says where it came from.' : d && d.handled ? d.handled.rest : '';
1248
1248
  return PV.pageHtml({ page: 'product:' + (ws || 'own'), line: { lead, rest, warn: !story && !!(d && d.handled && d.handled.tone === 'warn') }, goal: story + intent + goal, cards: progs + budgets, props, tabs,
1249
- tail: isPhone() ? `<button type="button" class="hi-talk" data-hp="talk">Message Claude about ${esc(name)}</button>` : '' });
1249
+ tail: isPhone() ? `<button type="button" class="hi-talk" data-hp="talk">Message PMOS about ${esc(name)}</button>` : '' });
1250
1250
  }
1251
1251
  function productDash(b, ws, vid, name, g) {
1252
1252
  const x = PDASH.get(ws) || { d: null, kr: null, open: new Set() }; PDASH.set(ws, x);
@@ -1327,8 +1327,8 @@ function programTarget(id, task) {
1327
1327
  const pr = (S.D.programs || []).find((p) => p && p.id === id) || { id, title: (P.get('label') || '').slice(0, 80) || id };
1328
1328
  const inis = (pr.members || []).map((m) => m && m.initiative).filter(Boolean);
1329
1329
  return { key: 'chat:program:' + id, ws: WS || undefined, title: task ? task.name : pr.title, sub: task ? pr.title : 'Program', prog: { id, title: pr.title },
1330
- scope: { text: pr.title, icon: TD.P.layers }, rich: false, role: CLAUDE, placeholder: 'Message Claude about ' + pr.title,
1331
- empty: 'Ask about ' + pr.title + '. Claude reads the program and its initiatives in a real Claude Code session.',
1330
+ scope: { text: pr.title, icon: TD.P.layers }, rich: false, role: CLAUDE, placeholder: 'Message PMOS about ' + pr.title,
1331
+ empty: 'Ask about ' + pr.title + '. PMOS reads the program and its initiatives in a real Claude Code session.',
1332
1332
  context: 'Program ' + pr.title + ' (' + id + ')' + (inis.length ? ', with the initiatives ' + inis.join(', ') : '') + '.' + (task ? ' The PM opened its task "' + task.name + '"' + (task.hint ? ' (' + task.hint + ')' : '') + '.' : ''), also: null };
1333
1333
  }
1334
1334
  /** A chat Intelligence asks for (?ask=insights|verdict): titled from the goal it names (?label), scoped to the product's goals, never "ins:insights"
@@ -1336,7 +1336,7 @@ function programTarget(id, task) {
1336
1336
  function insTarget(key) {
1337
1337
  const prod = (S.D && H.productName(S.D)) || 'Product', label = (P.get('label') || '').slice(0, 80) || prod + ' goals';
1338
1338
  return { ...homeTarget(), key, title: label, sub: key === 'ins:verdict' ? 'Outcome check' : 'Goals', scope: { text: prod + ' goals', icon: I.chart },
1339
- placeholder: 'Message Claude about ' + label, context: 'The PM asked from Intelligence about ' + label + ', one of the goals of ' + prod + '. Answer from that product\'s goals and readings.' };
1339
+ placeholder: 'Message PMOS about ' + label, context: 'The PM asked from Intelligence about ' + label + ', one of the goals of ' + prod + '. Answer from that product\'s goals and readings.' };
1340
1340
  }
1341
1341
  function homeTarget() {
1342
1342
  // chief-of-staff C1 (board CsA): Home's own chat is the one chat with no scope. Its chip reads Everything; reads run at once and show their source
@@ -1442,7 +1442,7 @@ function goOtherProduct(g) {
1442
1442
  if (isPhone()) sheet(false);
1443
1443
  syncUrl(); drawList();
1444
1444
  const t = { key: 'chat:product:' + ws, ws, title: name, about: name, sub: 'Product', scope: { text: name + ' · product', icon: I.flag }, rich: false, role: CLAUDE, to: null,
1445
- placeholder: 'Message Claude about ' + name, empty: 'Ask about ' + name + '. Claude reads its goals, its initiatives and this week\'s update.',
1445
+ placeholder: 'Message PMOS about ' + name, empty: 'Ask about ' + name + '. PMOS reads its goals, its initiatives and this week\'s update.',
1446
1446
  context: 'Product ' + name + '. ' + C.of + (C.items.length ? ': ' + C.items.map((x) => x.label).join('; ') : '') + '.', also: null };
1447
1447
  t.newChat = () => newProduct(t);
1448
1448
  openTarget(t);
@@ -1542,7 +1542,7 @@ function openFinished(f) {
1542
1542
  function finChat(f) {
1543
1543
  S.phoneChat = isPhone();
1544
1544
  openTarget({ ...homeTarget(), key: 'chat:fin-' + (f.id || f.title), title: f.title, sub: 'Drafted for you', scope: { text: f.title, icon: I.doc },
1545
- intro: { role: CLAUDE, text: 'What should I change in ' + f.title + '?' }, placeholder: 'Tell Claude what to change',
1545
+ intro: { role: CLAUDE, text: 'What should I change in ' + f.title + '?' }, placeholder: 'Tell PMOS what to change',
1546
1546
  context: 'The PM wants to change a draft from today\'s prep run: "' + f.title + '".' + (f.summary ? ' Summary: ' + f.summary : '') + (f.body ? '\nThe draft:\n' + String(f.body).slice(0, 6000) : '') + '\nNothing is sent: write the changed draft here for the PM to read.' });
1547
1547
  drawList();
1548
1548
  if (isPhone()) VW.close();
@@ -1916,7 +1916,7 @@ function chatAbout(t) {
1916
1916
  S.phoneChat = isPhone(); if (isPhone()) VW.close();
1917
1917
  S.sel = null; // the conversation is about its own item, not the row picked in the list (its header named that row)
1918
1918
  openTarget({ ...homeTarget(), key: t.key, title: t.title, scope: t.scope && t.scope.text ? { text: String(t.scope.text), icon: t.scope.icon || I.chat } : { text: 'Report · ' + t.title, icon: I.chat }, intro: t.intro ? { role: CLAUDE, text: t.intro } : undefined,
1919
- placeholder: t.placeholder || 'Message Claude', context: t.context });
1919
+ placeholder: t.placeholder || 'Message PMOS', context: t.context });
1920
1920
  drawList(); chat.focus();
1921
1921
  }
1922
1922
  addEventListener('pmos-chat-about', (e) => { const t = e.detail; if (!t || !/^pop:[A-Za-z0-9][A-Za-z0-9._:-]{0,100}$/.test(String(t.key)) || !t.context) return; e.preventDefault(); chatAbout(t); });
@@ -1986,7 +1986,7 @@ function newLoose() {
1986
1986
  if (S.ini) { S.ini = null; drawList(); syncUrl(); }
1987
1987
  S.sel = null;
1988
1988
  S.phoneChat = isPhone(); drawList();
1989
- openTarget({ key, ws: WS || undefined, title: 'New chat', scope: { text: 'Loose', icon: I.chat, loose: true }, rich: false, placeholder: 'Message Claude', empty: 'A loose chat. Link it to an initiative when it turns into one.', onSent: () => setTimeout(load, 1500) });
1989
+ openTarget({ key, ws: WS || undefined, title: 'New chat', scope: { text: 'Loose', icon: I.chat, loose: true }, rich: false, placeholder: 'Message PMOS', empty: 'A loose chat. Link it to an initiative when it turns into one.', onSent: () => setTimeout(load, 1500) });
1990
1990
  chat.focus();
1991
1991
  }
1992
1992
  async function endRow(id) {
@@ -108,7 +108,7 @@ export function blockAsk(b) {
108
108
 
109
109
  /** The card: the kind's label, what it asks, the before → after where the change holds both, then the answers. live: false draws the
110
110
  * answers off (an ask that was answered stays readable). more: the prompt's other choices behind a quiet ⋯ (kept from the earlier card). */
111
- export function askCardHtml(a, { live = true, role = 'Claude' } = {}) {
111
+ export function askCardHtml(a, { live = true, role = 'PMOS' } = {}) {
112
112
  if (!a) return '';
113
113
  const ft = a.from || a.to ? `<p class="ft">${a.from ? `<s>${esc(a.from)}</s> → ` : ''}<b>${esc(a.to)}</b></p>` : '';
114
114
  const more = live && a.more && a.more.length
@@ -51,7 +51,7 @@ const INTERRUPT = /^\[Request interrupted by user/;
51
51
  const POLL = 2000, IDLE_POLL = 9000;
52
52
 
53
53
  export function avHtml(role, size = 28, cls = '') {
54
- const k = (role && role.initial) || 'C';
54
+ const k = (role && role.initial) || 'P';
55
55
  return `<span class="hm-av t-${tintOf(k)} s${size}${k.length > 1 ? ' two' : ''}${cls ? ' ' + cls : ''}" aria-hidden="true">${k}</span>`;
56
56
  }
57
57
 
@@ -178,7 +178,7 @@ export function mountChat(el, host) {
178
178
  /** alone: nothing else in the log yet, so an intro with a mood shows Adler as Claude's avatar (one Adler: a reply takes him over). */
179
179
  function introHtml(o, alone = true) {
180
180
  if (!o) return '';
181
- const r = o.role || { name: 'Claude', initial: 'C' };
181
+ const r = o.role || { name: 'PMOS', initial: 'P' };
182
182
  const card = o.card && typeof o.card.html === 'function' ? o.card.html() : '';
183
183
  return `<div class="hm-a">${o.mood && alone && isClaude(r) ? adlerAvHtml(o.mood) : avHtml(r)}<div class="hm-ab"><p class="hm-who"><b>${esc(r.name)}</b> <span class="hm-say">${esc(o.text)}</span></p>${card ? `<div class="hm-icard">${card}</div>` : ''}</div></div>`
184
184
  + (o.pills && o.pills.length ? `<div class="hm-pills">${o.pills.map((p, i) => `<button type="button" class="${p.primary ? 'pri' : ''}" data-hm-pill="${i}"${p.disabled ? ' disabled' : ''}>${esc(p.label)}</button>`).join('')}</div>` : '');
@@ -421,7 +421,7 @@ export function mountChat(el, host) {
421
421
  const goal = C.th && C.th.goal; if (!goal || !C.t.key) return;
422
422
  gb.disabled = true;
423
423
  const r = await host.pmPost('/api/briefing-premium/goal' + (C.t.ws ? '?ws=' + encodeURIComponent(C.t.ws) : ''), { key: C.t.key, id: goal.id, act, draft: readyDraft(C.conv) }).catch(() => null);
424
- host.toast(r && r.ok ? ({ start: 'Claude is starting on the goal.', cancel: 'The goal is cancelled.', stop: 'The goal is stopped.' }[act]) : (r && r.error) || 'The press did not reach the session.');
424
+ host.toast(r && r.ok ? ({ start: 'PMOS is starting on the goal.', cancel: 'The goal is cancelled.', stop: 'The goal is stopped.' }[act]) : (r && r.error) || 'The press did not reach the session.');
425
425
  read();
426
426
  }
427
427
  const askId = (m) => String((m && m.at) || '') + ':' + ((m && m.ask) || []).map((q) => q.question).join('|').slice(0, 80);
@@ -434,7 +434,7 @@ export function mountChat(el, host) {
434
434
  const t = C.t, goal = C.th && C.th.goal;
435
435
  const also = t.also && !(C.conv && C.conv.ask) ? `<button type="button" class="hm-also" data-hm-also><i aria-hidden="true"></i><span><b>Also waiting on you:</b> ${esc(t.also.text)}</span><em>${esc(t.also.verb || 'Answer')}</em></button>` : '';
436
436
  // while it works the PM talks as usual (Claude reads it after its tool call); a goal that stopped says how to go on (principle 8)
437
- const ph = C.conv && C.conv.ask ? 'Or tell ' + R.role.name + ' what to do instead' : goal && goal.state === 'stopped' && !running() ? 'Reply to go on, or /goal for a new goal' : t.placeholder || 'Message Claude';
437
+ const ph = C.conv && C.conv.ask ? 'Or tell ' + R.role.name + ' what to do instead' : goal && goal.state === 'stopped' && !running() ? 'Reply to go on, or /goal for a new goal' : t.placeholder || 'Message PMOS';
438
438
  const sc = t.scope || { text: 'Everything', icon: 'M5 21V4M5 4h12l-2 4 2 4H5' };
439
439
  const keep = foot.querySelector('textarea'); const val = keep ? keep.value : '';
440
440
  // the session's terminal: watch it read only while the session runs; copy the line that resumes an ended chat
@@ -652,12 +652,12 @@ export function mountChat(el, host) {
652
652
  let sh = document.getElementById('utSpeak');
653
653
  if (!s.on) { if (sh) sh.hidden = true; return; }
654
654
  if (!sh) {
655
- document.body.insertAdjacentHTML('beforeend', '<div class="ut-sheet" id="utSpeak" role="dialog" aria-label="Speak to Claude" hidden></div>');
655
+ document.body.insertAdjacentHTML('beforeend', '<div class="ut-sheet" id="utSpeak" role="dialog" aria-label="Speak to PMOS" hidden></div>');
656
656
  sh = document.getElementById('utSpeak');
657
657
  sh.onclick = (e) => { const b = e.target.closest('[data-ut-speak]'); if (b) speakPress(b.dataset.utSpeak); };
658
658
  }
659
659
  const secs = s.secs || 0;
660
- sh.innerHTML = '<div class="grab" aria-hidden="true"></div><h3>Speak to Claude</h3>'
660
+ sh.innerHTML = '<div class="grab" aria-hidden="true"></div><h3>Speak to PMOS</h3>'
661
661
  + `<p class="ut-small ut-mut">${s.text ? '“' + esc(s.text.length > 90 ? '…' + s.text.slice(-90) : s.text) + '”' : 'Listening. Speak, and the words appear here.'}</p>`
662
662
  + `<div class="bar"><span class="ut-rec b" aria-hidden="true"></span><b>${Math.floor(secs / 60)}:${String(secs % 60).padStart(2, '0')}</b><span class="sp"></span>`
663
663
  + `<button type="button" class="ut-ib" data-ut-speak="discard" aria-label="Discard">${SVG(XX, 18)}</button><button type="button" class="ut-ib pri" data-ut-speak="send" aria-label="Stop and send as text">${SVG(OK, 18)}</button></div>`;
@@ -23,7 +23,7 @@ export const ICON = {
23
23
  gate: 'M12 3l8 4v5c0 5-3.5 8-8 9c-4.5-1-8-4-8-9V7zM8.5 12l2.5 2.5 4.5-5', warn: 'M12 4l9 16H3zM12 10v4M12 17v.5',
24
24
  };
25
25
  /** The two-letter avatars the mockup tints (AGENT_TINT); any other initial takes the O tint. */
26
- export const TINTS = ['C', 'St', 'Re', 'Sp', 'Ev', 'De', 'Dl', 'Co', 'Bu', 'Ka', 'O', 'An', 'Di', 'Bi'];
26
+ export const TINTS = ['C', 'P', 'St', 'Re', 'Sp', 'Ev', 'De', 'Dl', 'Co', 'Bu', 'Ka', 'O', 'An', 'Di', 'Bi'];
27
27
  export const tintOf = (k) => (TINTS.includes(k) ? k : 'O');
28
28
 
29
29
  export const STAGES = ['Triage', 'Discover', 'Plan', 'Prioritize', 'Build', 'Deliver', 'Monitor', 'Evaluate'];
@@ -36,7 +36,7 @@ const plural = (n, one, many) => n + ' ' + (n === 1 ? one : many);
36
36
  const cap1 = (s) => (s ? String(s).charAt(0).toUpperCase() + String(s).slice(1) : '');
37
37
 
38
38
  /* ── roles ── */
39
- const DEFAULT_ROLE = { key: 'claude', name: 'Claude', initial: 'C' };
39
+ const DEFAULT_ROLE = { key: 'claude', name: 'PMOS', initial: 'P' };
40
40
  /** The role of a session: the server's (from the skill that started it), else the first slash command of the conversation, else Claude. */
41
41
  export function roleOf(s, roles, first) {
42
42
  if (s && s.role && s.role.key && s.role.key !== 'claude') return s.role;
@@ -177,7 +177,7 @@ export function dayModel(M, D, R, now = Date.now(), o = {}) {
177
177
 
178
178
  /* Claude's face is Adler's M face (it replaced the yellow mood circle): the day's mood read as his */
179
179
  export const ADLER = { glad: 'handled', calm: 'handled', delighted: 'celebrating', concerned: 'honest', working: 'thinking' };
180
- export const faceHtml = (mood) => `<span class="yd-face ad ${esc(mood)}">${adler(ADLER[mood] || 'handled', 48, { label: 'Claude is ' + mood })}</span>`;
180
+ export const faceHtml = (mood) => `<span class="yd-face ad ${esc(mood)}">${adler(ADLER[mood] || 'handled', 48, { label: 'PMOS is ' + mood })}</span>`;
181
181
  const ok = (act, label, id) => `<button type="button" class="yd-ok" data-yd="${esc(act)}"${id ? ` data-id="${esc(id)}"` : ''} aria-label="${esc(label)}" title="${esc(label)}">${svg(CHECK, 22, 2.6)}</button>`;
182
182
  const alt = (act, label, id, icon) => `<button type="button" class="yd-alt" data-yd="${esc(act)}"${id ? ` data-id="${esc(id)}"` : ''} aria-label="${esc(label)}" title="${esc(label)}">${svg(icon || OPEN, 18, 2)}</button>`;
183
183
 
@@ -285,7 +285,7 @@ const MO = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct'
285
285
  /** A due date in New for you: "25 Nov", with the short year when it is not this year ("9 Jun ’27"), never the ISO date (workspace grill W4). */
286
286
  export const dueWords = (iso, now = Date.now()) => { const m = /^(\d{4})-(\d{2})-(\d{2})/.exec(String(iso || '')); if (!m) return String(iso || ''); return +m[3] + ' ' + MO[+m[2] - 1] + (+m[1] !== new Date(now).getFullYear() ? ' ’' + m[1].slice(2) : ''); };
287
287
  function newsRow(it, now) {
288
- const who = it.kind === 'task' ? (it.from || 'Someone') : (it.product || 'Claude');
288
+ const who = it.kind === 'task' ? (it.from || 'Someone') : (it.product || 'PMOS');
289
289
  const when = it.at ? ago(new Date(it.at).toISOString(), now) : '';
290
290
  const head = it.kind === 'task' ? String(it.title || '').replace(/^New task: /, '') : it.title;
291
291
  // an overlap note is Claude's proposal (batch 18 item 2b): the ✦ tile and both initiatives by name, never an id; so is moving a replaced
@@ -363,7 +363,7 @@ export function gmParts(Y, G, o = {}) {
363
363
  const dr = (G.did || []).slice(5);
364
364
  if ((dr.length && o.didRow) || ((Y.rank && Y.rank.notices) || []).length) {
365
365
  const nt = ((Y.rank && Y.rank.notices) || []).map((n) => `<p class="yd-exp">${esc(n.text || ((n.job || 'A job') + ' asks again before it changes anything, until ' + String(n.until || '').slice(0, 10) + '.'))}</p>`).join('');
366
- sections.push({ id: 'done', title: 'More Claude did', count: dr.length, open: !!nt, html: nt + (o.didRow ? `<div class="gm-didl">${dr.map(o.didRow).join('')}</div>` : '') });
366
+ sections.push({ id: 'done', title: 'More PMOS did', count: dr.length, open: !!nt, html: nt + (o.didRow ? `<div class="gm-didl">${dr.map(o.didRow).join('')}</div>` : '') });
367
367
  }
368
368
  if (o.moment) sections.push({ id: 'now', title: 'Now', open: true, html: '<div class="hd-now"></div>' });
369
369
  sections.push(weekSection(Y));
@@ -71,6 +71,6 @@ export function checkIntro(c, { esc, pmPost }) {
71
71
  };
72
72
  const n = c.items.length;
73
73
  const unread = c.notRead && c.notRead.length ? ' I could not read ' + c.notRead.join(', ') + ', so this may not be all.' : '';
74
- return { role: { key: 'claude', name: 'Claude', initial: 'C' }, mood: 'honest',
74
+ return { role: { key: 'claude', name: 'PMOS', initial: 'P' }, mood: 'honest',
75
75
  text: `✦ ${WORD[n] || n + ' things'} quietly drifted last week. The facts come from your records. Whether they matter is yours to judge.${unread}`, card: { html, press } };
76
76
  }
@@ -65,7 +65,7 @@ export function goalUi(cx) {
65
65
  el().classList.toggle('hm-goalq', !!C.goalQ); // the progress line turns blue while the choice is open
66
66
  const ta = el().querySelector('textarea#hmIn'); if (!ta) return;
67
67
  const ms = msgs(), last = ms[ms.length - 1], b = last && last.role === 'assistant' ? splitGoal(last.text).block : null;
68
- if (C.goalEdit && C.goalEdit.where === 'chat') ta.placeholder = 'Or tell Claude what to change';
68
+ if (C.goalEdit && C.goalEdit.where === 'chat') ta.placeholder = 'Or tell PMOS what to change';
69
69
  else if (b && b.step === 'question' && cx.live()) ta.placeholder = 'Answer, or pick one above';
70
70
  }
71
71
  const el = () => cx.el;
@@ -84,6 +84,6 @@ export function checkIntro(c, { esc, pmPost }) {
84
84
  const thanks = c.items.some((x) => x.kind === 'thanks');
85
85
  const when = c.label === 'Last week' ? 'last week' : c.label.replace(/^Week of/, 'the week of');
86
86
  const short = c.gate === 'short' ? ' Too many of these were not right, so I keep your sprout and your log hidden for now.' : '';
87
- return { role: { key: 'claude', name: 'Claude', initial: 'C' }, mood: 'handled',
87
+ return { role: { key: 'claude', name: 'PMOS', initial: 'P' }, mood: 'handled',
88
88
  text: `${thanks ? 'People thanked you' : 'Your work moved things'} ${when}. I read these from your sources and counted them in your impact.${short}`, card: { html, press } };
89
89
  }
@@ -233,7 +233,7 @@ function pageHtml(id, M) {
233
233
  if (!v) return `<div class="hi-v hi-page" data-hi-v="page"><p class="hi-small" role="status">The initiative could not be read.</p></div>`;
234
234
  const docs = MD.docRows(M);
235
235
  // a phone: the page is a sheet over the list, and the chat is one press away (HbCPhone)
236
- const talk = isPhone() ? `<button type="button" class="hi-talk" data-hi-talk>Message Claude about ${esc(X.ctx.iniTitle(id))}</button>` : '';
236
+ const talk = isPhone() ? `<button type="button" class="hi-talk" data-hi-talk>Message PMOS about ${esc(X.ctx.iniTitle(id))}</button>` : '';
237
237
  return `<div class="hi-v hi-page" data-hi-v="page">${WF.endedHtml(rowOf(id))}`
238
238
  + viewHtml(v, { add: true, adding: ADDING === id, addHint: ADDING === id && ADD_DATES ? ADD_DATES.start + ' to ' + ADD_DATES.due : '', hold: true, next: !!v.stage.next, openTask: true, quick: true, docs: docs.length ? { n: docs.length } : null, wf: !(M.acts && M.acts.self) && !rowOf(id).ended,
239
239
  person: !!X.ctx.addPerson, stagePick: true, planDates: !!X.ctx.askIn, jira: !!((X.ctx.S.D && X.ctx.S.D.board) || {}).jira,
@@ -123,7 +123,7 @@ export function goalModel(goal, conv, o = {}) {
123
123
  const undo = (p) => Number.isFinite(at(p)) && (!Number.isFinite(round) || at(p) > round);
124
124
  const all = pts.map((x, i) => {
125
125
  const st = met.has(x) ? 'done' : skip.has(x) ? 'skip' : i === cur && run && !asking ? 'now' : 'next';
126
- const sub = st === 'done' ? 'met' : st === 'skip' ? (undo(x) ? 'Skipped by you · Claude drops it after this step' : 'Skipped by you') : i === cur && !asking ? 'now · Stop or tell Claude to skip it' : '';
126
+ const sub = st === 'done' ? 'met' : st === 'skip' ? (undo(x) ? 'Skipped by you · PMOS drops it after this step' : 'Skipped by you') : i === cur && !asking ? 'now · Stop or tell PMOS to skip it' : '';
127
127
  const act = st === 'skip' && undo(x) ? { attr: `data-goal-unskip="${esc(x)}"`, icon: 'undo', label: 'Undo the skip' }
128
128
  : st === 'next' && i !== cur && left > 1 ? { attr: `data-goal-skip="${esc(x)}"`, icon: 'x', label: 'Skip this point' } : null;
129
129
  return { text: x, state: st, sub, act };
@@ -132,10 +132,10 @@ export function goalModel(goal, conv, o = {}) {
132
132
  const nMet = pts.filter((x) => met.has(x)).length;
133
133
  return {
134
134
  kind: 'goal', icon: asking ? 'none' : 'spin', tone: asking ? 'you' : '',
135
- text: asking ? 'Claude asks before it goes on' : cur >= 0 ? pts[cur] : d.goal || 'Goal',
135
+ text: asking ? 'PMOS asks before it goes on' : cur >= 0 ? pts[cur] : d.goal || 'Goal',
136
136
  count: asking ? '' : `${nMet} of ${count} done`, clock: '',
137
137
  title: d.goal || 'Goal',
138
- head: `${nMet} of ${count} points met · round ${Math.max(1, (goal.rounds || 0) + 1)} of ${limit}${d.by ? ' · due ' + d.by : ''} · Claude checks its own points`,
138
+ head: `${nMet} of ${count} points met · round ${Math.max(1, (goal.rounds || 0) + 1)} of ${limit}${d.by ? ' · due ' + d.by : ''} · PMOS checks its own points`,
139
139
  items: w.items, more: w.more, now: run && !asking ? nowText(conv) : '', call: run ? nowCall(conv) : '', term: !!o.term,
140
140
  open: !!o.open, on: !!o.on, frac: count ? nMet / count : 0,
141
141
  };
@@ -151,7 +151,7 @@ export function sessionModel(conv, o = {}) {
151
151
  if (!steps) {
152
152
  // no to-do list: the turn's goal leads (Claude's newest status line), the clock sits at the end; with none, "Working · 3:12"
153
153
  const goal = asking ? '' : turnGoal(conv);
154
- return { kind: 'session', icon: asking ? 'none' : 'spin', tone: asking ? 'you' : '', text: asking ? 'Claude asks before it goes on' : goal || 'Working', clock: asking ? '' : clock, count: '',
154
+ return { kind: 'session', icon: asking ? 'none' : 'spin', tone: asking ? 'you' : '', text: asking ? 'PMOS asks before it goes on' : goal || 'Working', clock: asking ? '' : clock, count: '',
155
155
  clockEnd: !!goal, title: o.title || 'Working', head: goal && clock ? 'Working · ' + clock : '', items: [], more: 0, now: '', call, term: !!o.term, open: !!o.open, on: !!o.on, frac: 0, plain: true };
156
156
  }
157
157
  const cur = steps.findIndex((s) => s.state === 'now');
@@ -160,7 +160,7 @@ export function sessionModel(conv, o = {}) {
160
160
  const w = window5(all, cur, o.all);
161
161
  return {
162
162
  kind: 'session', icon: asking ? 'none' : 'spin', tone: asking ? 'you' : '',
163
- text: asking ? 'Claude asks before it goes on' : cur >= 0 ? steps[cur].text : 'Working',
163
+ text: asking ? 'PMOS asks before it goes on' : cur >= 0 ? steps[cur].text : 'Working',
164
164
  count: asking ? '' : `${done} of ${steps.length} done`, clock: '',
165
165
  title: o.title || 'Steps', head: `${done} of ${steps.length} done${clock ? ' · ' + clock : ''}`,
166
166
  items: w.items, more: w.more, now: '', call: (cur >= 0 && steps[cur].call) || call, term: !!o.term,
@@ -210,9 +210,9 @@ const face = (m) => `<span class="mn-av" aria-hidden="true">${initials(peopleOf(
210
210
  function draftHtml(m, o = {}) {
211
211
  if (m.drafted) return `<p class="mn-sent">${svg(P.send, 12, 2.2)}<span>Sent from ${esc(srcName(m.source))}? I’ll see it at the next read.</span></p>`;
212
212
  if (m.nodraft) return `<div class="mn-dr no"><p class="mn-drh">${svg(P.spark, 12, 2)}<span>I can’t draft this one</span></p><p>${esc(m.nodraft)}</p></div>`
213
- + (o.acts === false ? '' : `<div class="mn-acts">${ib(`data-mn="pen" data-id="${esc(m.id)}"`, 'Write it with Claude', P.pen, true)}</div>`);
213
+ + (o.acts === false ? '' : `<div class="mn-acts">${ib(`data-mn="pen" data-id="${esc(m.id)}"`, 'Write it with PMOS', P.pen, true)}</div>`);
214
214
  if (m.draft) return `<div class="mn-dr"><p class="mn-drh">${svg(P.spark, 12, 2)}<span>I drafted your reply</span></p><p data-mn-draft>${esc(m.draft)}</p></div>`
215
- + (o.acts === false ? '' : `<div class="mn-acts">${ib(`data-mn="pen" data-id="${esc(m.id)}"`, 'Change it with Claude', P.pen)}${ib(`data-mn="send" data-id="${esc(m.id)}"`, 'Copy it and open ' + srcName(m.source) + '. PMOS never posts.', P.send, true)}</div>`);
215
+ + (o.acts === false ? '' : `<div class="mn-acts">${ib(`data-mn="pen" data-id="${esc(m.id)}"`, 'Change it with PMOS', P.pen)}${ib(`data-mn="send" data-id="${esc(m.id)}"`, 'Copy it and open ' + srcName(m.source) + '. PMOS never posts.', P.send, true)}</div>`);
216
216
  return '';
217
217
  }
218
218
  const checkHtml = (m) => (m.check ? `<div class="hr-ck" role="group" aria-label="${esc('Did you answer ' + nameOf(m) + ' already?')}"><span>Did you answer this already?</span>`
@@ -463,8 +463,8 @@ export function convHtml(m, ctx, o = {}) {
463
463
  if (m.waiting) {
464
464
  const reply = m.drafted ? draftHtml(m) : m.draft ? `<div class="mn-dr in"><p class="mn-drh">${svg(P.spark, 12, 2)}<span>I drafted your reply</span></p><p data-mn-draft>${esc(m.draft)}</p></div>`
465
465
  : m.nodraft ? `<div class="mn-dr no in"><p class="mn-drh">${svg(P.spark, 12, 2)}<span>I can’t draft this one</span></p><p>${esc(m.nodraft)}</p></div>` : '';
466
- const right = m.draft && !m.drafted ? ib(`data-mn="pen" data-id="${esc(m.id)}"`, 'Change it with Claude', P.pen) + ib(`data-mn="send" data-id="${esc(m.id)}"`, 'Copy it and open ' + srcName(m.source) + '. PMOS never posts.', P.send, true)
467
- : m.drafted ? '' : ib(`data-mn="pen" data-id="${esc(m.id)}"`, 'Write it with Claude', P.pen, true);
466
+ const right = m.draft && !m.drafted ? ib(`data-mn="pen" data-id="${esc(m.id)}"`, 'Change it with PMOS', P.pen) + ib(`data-mn="send" data-id="${esc(m.id)}"`, 'Copy it and open ' + srcName(m.source) + '. PMOS never posts.', P.send, true)
467
+ : m.drafted ? '' : ib(`data-mn="pen" data-id="${esc(m.id)}"`, 'Write it with PMOS', P.pen, true);
468
468
  top = `<div class="mn-ask"><p class="mn-ak${late(m.since, now) ? ' late' : ''}">Asks you · ${esc(age(m.since, now))}</p><p class="mn-aq">${esc(m.ask || gistOf(m))}</p>${reply}`
469
469
  + `<div class="mn-acts sp"><span class="mn-four">${four}</span><span>${right}</span></div>${checkHtml(m)}</div>`;
470
470
  } else top = `<div class="mn-ask calm"><p class="mn-ak">${esc(statusLine(m))}</p><p class="mn-aq">${esc(gistOf(m))}</p></div>`;
@@ -37,5 +37,5 @@ export function momentIntro(m, { esc, pmPost, guide, done }) {
37
37
  done();
38
38
  return false;
39
39
  };
40
- return { role: { key: 'claude', name: 'Claude', initial: 'C' }, mood: 'handled', text: '✦ ' + m.text, card: { html, press } };
40
+ return { role: { key: 'claude', name: 'PMOS', initial: 'P' }, mood: 'handled', text: '✦ ' + m.text, card: { html, press } };
41
41
  }
@@ -133,7 +133,7 @@ export function needModel(r, ctx = {}) {
133
133
  m.line = 'Blocked at ' + (STEP_AT[step] || 'the ' + step + ' step'); m.tone = 'warn';
134
134
  m.offer = 'No next step is on record, so I can’t start one yet. Tell me what unblocks it, or let me look.';
135
135
  m.primary = { act: 'find', label: 'Find the next step', icon: SPARK };
136
- m.also = [{ act: 'talk', label: 'Tell Claude in the chat', icon: CHAT }];
136
+ m.also = [{ act: 'talk', label: 'Tell PMOS in the chat', icon: CHAT }];
137
137
  }
138
138
  m.sections = [why, where];
139
139
  return m;
@@ -58,7 +58,7 @@ export function mountPhoneCard(o) {
58
58
  if (mo.kind === 'work') return `<span class="label">${mo.next ? 'Next: ' + esc(mo.next.title) + ' at ' + hm(mo.next.start) : 'No more meetings today'}</span>${big(fin.length ? 'Finished for you' : 'Nothing new from the agent')}${fin.length ? finRows(2) + S('Approving a draft waits for your computer.') : dayErr() || S('When the agent finishes a draft today, it shows here.')}${mo.fits.length ? fits(mo.fits) : ''}${mo.next ? `<div class="phacts">${open(mo.next)}</div>` : ''}`;
59
59
  if (mo.kind === 'recap') { // Your day E (YdE3Evening): what today made possible, wins only; a real thank-you when one exists; no zero counts
60
60
  const r = day && day.recap, one = mine[0], ty = thanks();
61
- const KIND = { decision: 'Decided', done: 'Done', agent: 'Claude' };
61
+ const KIND = { decision: 'Decided', done: 'Done', agent: 'PMOS' };
62
62
  const moved = r && (r.moved || []).length ? `<div class="phmv">${r.moved.map((x) => `<p><b>${esc(KIND[x.kind] || '')}</b><span>${esc(x.text)}</span>${x.sub ? `<em>${esc(x.sub)}</em>` : ''}</p>`).join('')}</div>` : dayErr();
63
63
  const quote = ty ? `<div class="phty"><p class="phl">“${esc(ty.quote)}”</p><p class="phs">${esc([ty.who, ty.where].filter(Boolean).join(' on '))}${ty.at ? ' · ' + esc(ty.at) : ''}</p></div>` : '';
64
64
  const conf = r && r.to_confirm ? `<p class="phs phq">${esc(num(r.to_confirm, 'decision', 'decisions'))} from today's notes ${r.to_confirm === 1 ? 'is' : 'are'} not confirmed yet, so ${r.to_confirm === 1 ? 'it does' : 'they do'} not count. Confirm them in the meeting's Replay.</p>` : '';
@@ -46,7 +46,7 @@ export function stepRows(h, o = {}) {
46
46
  else wait.push({ state: 'wait', label: x.label, note: x.note });
47
47
  }
48
48
  // a session works on this initiative but no step names it: its own line, so the spinner is never invented and never hidden
49
- if (o.run && !ran) run.push({ state: 'run', label: o.run.title || 'Claude works on it', note: runNote(), owner: { kind: 'claude', live: true }, node: adNode('thinking', 'run') });
49
+ if (o.run && !ran) run.push({ state: 'run', label: o.run.title || 'PMOS works on it', note: runNote(), owner: { kind: 'claude', live: true }, node: adNode('thinking', 'run') });
50
50
  const open = you.concat(run, risk, wait);
51
51
  const shown = o.moreOpen ? open : open.slice(0, OPEN_MAX);
52
52
  const done = ((h && h.done) || []).map((x) => ({ state: 'done', label: x.label }));
@@ -80,7 +80,7 @@ export function nextNote(h, mv) {
80
80
  export function nextReason(h) {
81
81
  const nx = (h && h.next) || {};
82
82
  const w = nx.when || null, r = nx.reading || null;
83
- if (w && w.mode === 'only') return 'Runs only when ' + String(w.text || 'its condition holds').replace(/\.$/, '') + '.' + (r && r.why ? ' ' + r.why.replace(/\.$/, '') + (r.runs === true ? ', so it runs.' : r.runs === false ? ', so it is skipped.' : '.') : ' Claude has not read it yet.');
83
+ if (w && w.mode === 'only') return 'Runs only when ' + String(w.text || 'its condition holds').replace(/\.$/, '') + '.' + (r && r.why ? ' ' + r.why.replace(/\.$/, '') + (r.runs === true ? ', so it runs.' : r.runs === false ? ', so it is skipped.' : '.') : ' PMOS has not read it yet.');
84
84
  return (h && h.payoff) || '';
85
85
  }
86
86
 
@@ -60,7 +60,7 @@ export function chaseModel(b, o = {}) {
60
60
  });
61
61
  const count = `${replied} of ${people.length} replied`;
62
62
  return {
63
- kind: 'chase', icon: 'clock', tone: o.asking ? 'you' : '', text: o.asking ? 'Claude asks before it goes on' : what,
63
+ kind: 'chase', icon: 'clock', tone: o.asking ? 'you' : '', text: o.asking ? 'PMOS asks before it goes on' : what,
64
64
  count: o.asking ? '' : count, clock: '', stopLabel: 'Stop chasing', title: what,
65
65
  head: count + (next ? ' · next nudge ' + next : ''), items, more: 0, now: '', term: false,
66
66
  open: !!o.open, on: !!o.on, frac: replied / people.length, what,
@@ -108,7 +108,7 @@ export function kidSub(k) {
108
108
  /** What Claude proposes on one row of the list (canvas XcsA1Pill): a session idle and safe to close gets the ✦ in its line and one ✓. One ✦ a row. */
109
109
  export function kidActHtml(k) {
110
110
  if (!(k && k.kind === 'session' && k.close && k.close.safe && k.sid)) return '';
111
- return `<button type="button" class="ut-ib hv-ib hm-cls" data-hm-close="${esc(k.sid)}" aria-label="Close this session; Claude says it is idle and safe" title="Close this session; Claude says it is idle and safe">${svg(P.check, 16)}</button>`;
111
+ return `<button type="button" class="ut-ib hv-ib hm-cls" data-hm-close="${esc(k.sid)}" aria-label="Close this session; PMOS says it is idle and safe" title="Close this session; PMOS says it is idle and safe">${svg(P.check, 16)}</button>`;
112
112
  }
113
113
  /** The pill's model: the most urgent state, the count and its accessible words. Nothing in the initiative: null (zero is silence). */
114
114
  export function pillOf(r) {
@@ -262,7 +262,7 @@ function looseHtml(g, o) {
262
262
  const sig = open ? '' : (S2.needs ? '<span class="hv-d sm" aria-hidden="true"></span>' : '') + (S2.late ? '<span class="hv-lt" aria-hidden="true"></span>' : '') + g.n;
263
263
  // the blue ✦ and the number of rows Claude proposes to place (batch 13 item 3, XlcA1Desk): only when it has some (zero is silence)
264
264
  const c = g.chip && g.chip.n ? g.chip : null;
265
- const chip = c ? `<button type="button" class="lp-chip" data-lp-open aria-haspopup="dialog" aria-label="${esc(c.label)}" title="Claude proposes a clean-up">${svg(SPARK, 13)}<b>${c.n}</b></button>` : '';
265
+ const chip = c ? `<button type="button" class="lp-chip" data-lp-open aria-haspopup="dialog" aria-label="${esc(c.label)}" title="PMOS proposes a clean-up">${svg(SPARK, 13)}<b>${c.n}</b></button>` : '';
266
266
  return `<section class="hm-pg hv-g loose" aria-label="${esc(g.name)}"><div class="hv-lhw${chip ? ' has-chip' : ''}"><button type="button" class="hv-lh" data-hm-pg="${esc(g.key)}" aria-expanded="${open}" aria-label="${esc(g.name)}: ${esc(say)}. ${open ? 'Close' : 'Open'}">${esc(g.name)}<span class="n"><span class="nl">${sig}</span>${svg(open ? P.chevD : P.chevR, 15)}</span></button>${chip}</div>`
267
267
  + (open ? `<div class="hv-card">${g.rows.map((r) => rowHtml(r, o)).join('')}</div>` : '') + '</section>';
268
268
  }