create-pmos 0.611.0 → 0.613.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 (97) hide show
  1. package/package.json +105 -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 +1 -1
  8. package/workspace/briefing-premium-calendar-2-test.js +3 -2
  9. package/workspace/briefing-premium-calendar-3-test.js +1 -1
  10. package/workspace/briefing-premium-calendar-test.js +1 -1
  11. package/workspace/briefing-premium-insights-test.js +1 -1
  12. package/workspace/briefing-premium-test.js +1 -1
  13. package/workspace/changelog.json +104 -0
  14. package/workspace/guide/layout.md +52 -18
  15. package/workspace/guide/programs.md +3 -3
  16. package/workspace/guide/routine.md +28 -13
  17. package/workspace/guide/settings-and-switches.md +1 -1
  18. package/workspace/lib/board-premium.js +12 -4
  19. package/workspace/lib/cos-chat.js +1 -0
  20. package/workspace/lib/doc-library.js +43 -12
  21. package/workspace/lib/doc-path.js +30 -0
  22. package/workspace/lib/engine/boards.js +4 -2
  23. package/workspace/lib/events-place.js +190 -38
  24. package/workspace/lib/events-stated.js +129 -0
  25. package/workspace/lib/initiative-chat.js +1 -0
  26. package/workspace/lib/insights-premium.js +13 -1
  27. package/workspace/lib/library-find.js +162 -0
  28. package/workspace/lib/library-items.js +196 -24
  29. package/workspace/lib/notes.js +3 -0
  30. package/workspace/lib/plan-items.js +17 -3
  31. package/workspace/lib/routes-artefacts.js +5 -2
  32. package/workspace/lib/routes-boards.js +6 -2
  33. package/workspace/lib/routes-doc-sheet.js +1 -0
  34. package/workspace/lib/routes-events-place.js +47 -10
  35. package/workspace/lib/routes-library.js +74 -8
  36. package/workspace/lib/routes-report-setups.js +13 -2
  37. package/workspace/lib/routine-reports.js +36 -4
  38. package/workspace/lib/status-when.js +36 -0
  39. package/workspace/lib/task-items.js +5 -3
  40. package/workspace/package-lock.json +2 -2
  41. package/workspace/package.json +1 -1
  42. package/workspace/premium-vw-meet-test.js +2 -1
  43. package/workspace/premium-vw-notes-test.js +3 -2
  44. package/workspace/public/pm/artefact-kind.js +87 -0
  45. package/workspace/public/pm/bd-ini-panel.js +6 -6
  46. package/workspace/public/pm/bd-span.js +7 -1
  47. package/workspace/public/pm/bd-work.css +62 -0
  48. package/workspace/public/pm/bd-work.js +195 -68
  49. package/workspace/public/pm/cozy-bar.css +11 -0
  50. package/workspace/public/pm/cozy-bar.js +99 -0
  51. package/workspace/public/pm/cozy-day-pick.css +27 -0
  52. package/workspace/public/pm/cozy-day-pick.js +97 -0
  53. package/workspace/public/pm/cozy-ev.css +0 -4
  54. package/workspace/public/pm/cozy-events-view.js +165 -33
  55. package/workspace/public/pm/cozy-events.css +75 -3
  56. package/workspace/public/pm/cozy-events.js +86 -18
  57. package/workspace/public/pm/cozy-goals.css +172 -0
  58. package/workspace/public/pm/cozy-library.css +106 -17
  59. package/workspace/public/pm/cozy-nav.js +2 -3
  60. package/workspace/public/pm/cozy-pick.css +3 -0
  61. package/workspace/public/pm/cozy-pop-work.css +83 -24
  62. package/workspace/public/pm/cozy-pop-work.js +313 -72
  63. package/workspace/public/pm/cozy-popup.css +11 -2
  64. package/workspace/public/pm/cozy-popup.js +67 -9
  65. package/workspace/public/pm/cozy-routine-job.js +203 -0
  66. package/workspace/public/pm/cozy-routine-model.js +139 -31
  67. package/workspace/public/pm/cozy-routine-pop.js +164 -42
  68. package/workspace/public/pm/cozy-routine.css +61 -8
  69. package/workspace/public/pm/cozy-routine.js +207 -28
  70. package/workspace/public/pm/cozy-settings.js +1 -5
  71. package/workspace/public/pm/cozy-status-when.js +48 -0
  72. package/workspace/public/pm/cozy-viewer.js +19 -8
  73. package/workspace/public/pm/cozy-vw-mtg.css +39 -0
  74. package/workspace/public/pm/goals-model.js +205 -0
  75. package/workspace/public/pm/goals-open.js +124 -0
  76. package/workspace/public/pm/home-chat.js +4 -2
  77. package/workspace/public/pm/home-ini.js +8 -6
  78. package/workspace/public/pm/ini-edit.js +3 -1
  79. package/workspace/public/pm/ini-view-model.js +1 -1
  80. package/workspace/public/pm/library-model.js +170 -42
  81. package/workspace/public/pm/library-open.js +8 -5
  82. package/workspace/public/pm/page-chat.js +12 -2
  83. package/workspace/public/pm/pop-work-model.js +199 -41
  84. package/workspace/public/pm/premium-board.js +108 -43
  85. package/workspace/public/pm/premium-goals.js +213 -0
  86. package/workspace/public/pm/premium-library.js +376 -62
  87. package/workspace/public/pm/premium-shell.js +1 -1
  88. package/workspace/public/pm/premium-vw-mtg.js +79 -1
  89. package/workspace/public/pm/scope-chip.js +207 -0
  90. package/workspace/public/premium-events.html +3 -1
  91. package/workspace/public/premium-goals.html +37 -0
  92. package/workspace/public/premium-library.html +15 -7
  93. package/workspace/public/premium-routine.html +2 -0
  94. package/workspace/server.js +2 -1
  95. package/workspace/test-lists/doc-path.json +9 -0
  96. package/workspace/test-lists/goals-place.json +9 -0
  97. package/workspace/test-lists/status-when.json +9 -0
@@ -497,6 +497,54 @@ export function meetHtml(m, ui = {}) {
497
497
  return summaryHtml(m, ui) + `<div class="vz vz-mtg" data-mk="${m.mk}">${h.join('')}</div>`;
498
498
  }
499
499
 
500
+ /** A held meeting's notes, as one view from every place (board 34, StLibMeetingOpen; Library audit item 6): the short lead, Decisions,
501
+ * Tasks that came out of it (a press opens the initiative), the ✦ ask to add the tasks that are not in the Work breakdown, Notes, and the
502
+ * grey box "The meeting" at the right. The full card (the replay, the transcript, material, names) is one press away: Recording, or
503
+ * "Transcript and more". ctx = { ini: { id, ws, name } | null }. Only a coming or live meeting keeps the card of meetHtml. */
504
+ const DMON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
505
+ const dm = (iso) => (ok(iso) ? new Date(iso).getDate() + ' ' + DMON[new Date(iso).getMonth()] : '');
506
+ /* an initiative's short name, as the Board says it ("Tender new CIAM"): the part before the first dash, colon or comma */
507
+ const shortName = (t) => { const x = String(t || '').split(/\s[—–]\s|:\s|,\s/)[0].trim(); return clip(x || t, 44); };
508
+ const dueText = (d) => (/^\d{4}-\d{2}-\d{2}$/.test(d || '') ? dm(d + 'T12:00:00') : d || '');
509
+ export function heldOf(m, ctx = {}) {
510
+ const N = m.notes;
511
+ const held = [dm(m.at), hasTime(m.at) ? hm(m.at) + (hasTime(m.end) ? ' to ' + hm(m.end) : '') : ''].filter(Boolean).join(', ');
512
+ const tasks = N.steps.map((a) => ({ i: a.i, text: a.text, meta: [a.owner || '', dueText(a.due)].filter(Boolean).join(' · '), made: !!(a.task || a.ticket) }));
513
+ const missing = tasks.filter((x) => !x.made);
514
+ const recMin = N.track && N.track.len ? Math.max(1, Math.round(N.track.len / 60000)) : 0;
515
+ const from = m.private ? 'Your notes' : recMin || N.lines.length ? 'The recording' : 'Your notes';
516
+ const notes = N.facts.map((f) => f.text).concat(N.questions.map((x) => 'Open: ' + x.text)).filter(Boolean);
517
+ return { lead: N.summary || (m.private ? 'This note is private: only what you typed is kept.' : ''), decisions: N.decisions.map((d) => d.text), tasks, missing, notes, held,
518
+ about: shortName(m.about), ini: ctx.ini ? { ...ctx.ini, name: shortName(ctx.ini.name || m.about) } : null, who: ['You'].concat(m.people.filter((p) => !/^you$/i.test(p))).join(', '), from, recMin,
519
+ foot: (from === 'The recording' ? 'PMOS wrote these notes from the recording.' : 'PMOS wrote these notes from what you typed.') + (tasks.length && ctx.ini ? ' Press a task to open it in its initiative.' : '') };
520
+ }
521
+ export function heldHtml(m, ui = {}, ctx = {}) {
522
+ const H = heldOf(m, ctx), h = [];
523
+ if (ui.msg) h.push(`<p class="vz-msg" role="status" data-tone="${ui.msg.tone || ''}"><span>${esc(ui.msg.text)}</span>${ui.msg.undo ? '<button type="button" class="vz-link vz-hv" data-a="msgundo">Undo</button>' : ''}</p>`);
524
+ if (H.lead) h.push(`<p>${esc(H.lead)}</p>`);
525
+ if (H.decisions.length) h.push('<h6>Decisions</h6><ul>' + H.decisions.map((d) => `<li>${esc(d)}</li>`).join('') + '</ul>');
526
+ if (H.tasks.length) {
527
+ h.push('<h6>Tasks that came out of it</h6><div class="vzh-t">' + H.tasks.map((x) => `<button type="button" class="vzh-r" data-a="h-task" data-i="${x.i}"${H.ini ? '' : ' disabled'}><i aria-hidden="true"></i><span>${esc(x.text)}</span>${x.meta ? `<em>${esc(x.meta)}</em>` : ''}</button>`).join('') + '</div>');
528
+ }
529
+ if (H.ini && H.missing.length && !ui.sgNo) {
530
+ const n = H.missing.length;
531
+ h.push(`<div class="vzh-sg" role="group" aria-label="PMOS suggests"><p class="vzh-sgh">PMOS suggests</p><div><span>${n === 1 ? 'One task is' : esc(String(n)) + ' tasks are'} not in the Work breakdown of ${esc(H.ini.name || H.about)}. Add ${n === 1 ? 'it' : 'them'}?</span>`
532
+ + `<button type="button" class="y" data-a="h-add" aria-label="Yes, add ${n === 1 ? 'it' : 'them'}" title="Yes, add ${n === 1 ? 'it' : 'them'}">${svg('check', 14)}</button><button type="button" data-a="h-no" aria-label="No" title="No">${svg('x', 14)}</button></div></div>`);
533
+ }
534
+ if (H.notes.length) h.push('<h6>Notes</h6><ul>' + H.notes.map((t) => `<li>${esc(t)}</li>`).join('') + '</ul>');
535
+ if (!H.lead && !H.decisions.length && !H.tasks.length && !H.notes.length) h.push(`<p class="vz-empty">${esc(NO_NOTES)}</p>`);
536
+ const about = H.about ? `<button type="button" class="vzh-sel" data-a="${H.ini ? 'h-ini' : 'm-about'}" title="${esc(m.about)}"><span>${esc(H.about)}</span>${svg('next', 14)}</button>` : `<button type="button" class="vzh-sel" data-a="m-about">Link it</button>`;
537
+ const side = ['<h6>The meeting</h6>',
538
+ H.held ? `<div class="r"><span>Held</span><em>${esc(H.held)}</em></div>` : '',
539
+ `<div class="r"><span>About</span>${about}</div>`,
540
+ `<div class="r"><span>Who</span><em>${esc(H.who)}</em></div>`,
541
+ `<div class="r"><span>Written from</span><em>${esc(H.from)}</em></div>`,
542
+ H.recMin ? `<div class="r"><span>Recording</span><button type="button" class="vzh-sel" data-a="h-full" aria-label="Play the recording, ${H.recMin} min">${svg('play', 12)} ${H.recMin} min</button></div>` : '',
543
+ `<p>${esc(H.foot)}</p>`,
544
+ `<button type="button" class="vz-link vz-hv vzh-more" data-a="h-full">Transcript and more</button>`].join('');
545
+ return `<div class="vz vz-mtg vzh" data-mk="held"><div class="vzm-anc" data-pop="head"></div><div class="vzh-w"><div class="vzh-o">${h.join('')}</div><aside class="vzh-s" aria-label="The meeting">${side}</aside></div></div>`;
546
+ }
547
+
500
548
  /** Add material's popover (XvAMaterial): Upload a file, Paste a link, Find in PMOS, then the suggestions. P = { row, sug, found, q, topics, err, busy } */
501
549
  export function matPopHtml(P) {
502
550
  if (!P.row) return `<div class="vzm-pop" role="dialog" aria-label="Add material"><p class="vzm-sm vzm-mut">Material is kept per calendar meeting. This note has no calendar event.</p></div>`;
@@ -733,9 +781,38 @@ async function serMember(me, out) {
733
781
  me.ui.pop = ''; const r = await pmPost('/api/notes/series-member', { id: me.n.id, key: out ? 'off' : null });
734
782
  say(me, r && r.ok ? (out ? 'Taken out of the series. It stays a note on its own.' : 'Back in its series.') : 'Not saved: ' + ((r && r.error) || 'no answer'), r && r.ok ? '' : 'bad'); return load(me);
735
783
  }
784
+ /* a held meeting opens in board 34's view (heldHtml); Recording or "Transcript and more" shows the full card, ← in the card comes back */
785
+ const held = (me) => !!(me.model && me.model.mk === 'notes' && !me.ui.full);
786
+ function iniOf(me) {
787
+ const S = me.D && me.D.S, L = me.D && me.D.level;
788
+ if (S && S.initiative && S.initiative.id) return { id: S.initiative.id, ws: S.initiative.ws || me.ws || '', name: S.initiative.name || me.model.about };
789
+ if (L && L.kind === 'initiative' && L.id) return { id: L.id, ws: L.ws || me.ws || '', name: L.name || L.id };
790
+ return null;
791
+ }
792
+ const SGNO = 'pmos.mtg.sgno.';
793
+ const sgNo = (id) => { try { return !!id && localStorage.getItem(SGNO + id) === '1'; } catch { return false; } };
794
+ async function heldPress(me, a, t) {
795
+ const ui = me.ui, ini = iniOf(me);
796
+ if (a === 'h-full') { ui.full = true; return draw(me); }
797
+ if (a === 'h-held') { ui.full = false; return draw(me); }
798
+ if (a === 'h-no') { ui.sgNo = true; try { localStorage.setItem(SGNO + me.n.id, '1'); } catch { /* a private window: only this open */ } return repaint(me); }
799
+ if ((a === 'h-ini' || a === 'h-task') && ini) {
800
+ const M = await import('./premium-vw-item.js');
801
+ return M.openWorkItem({ kind: 'initiative', id: ini.id, ws: ini.ws, title: ini.name });
802
+ }
803
+ if (a === 'h-add') {
804
+ const H = heldOf(me.model, { ini }); let n = 0, err = '';
805
+ t.disabled = true;
806
+ for (const x of H.missing) { const r = await makeTask(me, x.i, true); if (r && r.ok) n++; else if (!err) err = (r && r.error) || 'no answer'; }
807
+ ui.sgNo = true;
808
+ return say(me, n ? (n === 1 ? 'One task is' : n + ' tasks are') + ' added to ' + (ini ? ini.name : 'the initiative') + (err ? '. The rest were not: ' + err : '.') : 'Not added: ' + err, n ? '' : 'bad');
809
+ }
810
+ }
736
811
  function paint(me, body) {
737
812
  const top = body.scrollTop;
738
- body.innerHTML = meetHtml(me.model, me.ui);
813
+ if (me.n && sgNo(me.n.id)) me.ui.sgNo = true;
814
+ body.innerHTML = held(me) ? heldHtml(me.model, me.ui, { ini: iniOf(me) })
815
+ : (me.model && me.model.mk === 'notes' ? '<button type="button" class="vz-link vz-hv vzh-back" data-a="h-held">Back to the notes</button>' : '') + meetHtml(me.model, me.ui);
739
816
  body.scrollTop = top;
740
817
  const line = body.querySelector('.czs-sum .czs-line > span:not(.czs-dot):not(.czs-r)'); if (line) line.dataset.clk = 'state';
741
818
  if (me.ui.edit) { const ta = body.querySelector('.vzp-ed [data-a="etext"]'); if (ta && me.ui.focusEdit) { me.ui.focusEdit = false; ta.focus(); ta.setSelectionRange(ta.value.length, ta.value.length); } }
@@ -800,6 +877,7 @@ async function press(me, e) {
800
877
  if (t.disabled) return;
801
878
  const a = pa ? pa.dataset.czsAct : t.dataset.a, ui = me.ui, m = me.model, C = rec();
802
879
  if (ui.pop && !t.closest('.vzm-pop') && !['addmat', 'm-about'].includes(a)) ui.pop = '';
880
+ if (/^h-/.test(a)) return heldPress(me, a, t);
803
881
  switch (a) {
804
882
  case 'popx': ui.pop = ''; return repaint(me);
805
883
  case 'askno': ui.ask = null; return repaint(me);
@@ -0,0 +1,207 @@
1
+ /* pm/scope-chip.js — one chip for products, programs and projects (events round 2, point 4; Library and Routine use it too).
2
+ *
3
+ * The chip looks like Work's product chip ("All products", "pmos-cas +1"). Its menu has three parts: Products, Programs, Projects.
4
+ * More than one can be picked in each part. Products is the saved product pick (pm/cozy-pick.js: readPick, savePick, the setting every
5
+ * page reads), so a product picked here is picked on Work and Home too. Programs and Projects are the page's own: the page keeps them.
6
+ *
7
+ * TOKENS. A row the page filters carries `scope`, a list of tokens: 'p:<ws>' (its product's workspace), 'g:<program id>' (each program
8
+ * that holds its work) and 'j:<ws>|<initiative id>' (its project, the initiative). A row with no token shows only when nothing narrows.
9
+ *
10
+ * scopeChipHtml(P, sel, o) → the chip. P: readPick()'s answer (or null); sel: { programs: [token], projects: [token] }; o: { id, groups }
11
+ * openScope(chip, o) → the menu under the chip (a sheet on a phone). o: { P, groups, sel, onApply(next), unit?, unitOne? }
12
+ * (unit: the page's count word, "dates" by default: "3 dates", "1 date"; "routines", "items"); next: { products: [ws],
13
+ * programs: [token], projects: [token] }. It applies when the menu closes (Escape, a press outside, the chip
14
+ * again). A product pick that changed is saved with savePick first; the page then follows pp:changed or next.
15
+ * matches(scope, P, sel) → true when the row shows: every product is picked or the row's product is; and no program or project is
16
+ * picked, or the row is under one of them
17
+ * narrowed(P, sel) · scopeWords(P, sel, groups) → is anything narrowed · "pmos-cas, Lightbox GA tracking" for a "Showing … only" line
18
+ * whenNames() → resolves when the display names are in (redraw then) · setNames(workspaces) · productRows(P) → one row per product
19
+ * displayName(workspace) → the name every page shows for a workspace (Routine's Product column uses it too)
20
+ * groups: { programs: [{ id: 'g:…', name, n? }], projects: [{ id: 'j:…', name, product?, n? }] }; a part with no options is left out.
21
+ * Copy says PMOS. Every press is in the menu; nothing writes but savePick. */
22
+ import { savePick, codeOf, tonesOf } from './cozy-pick.js'; // its import adds cozy-pick.css, which this menu uses
23
+ import { pmGet } from './http.js';
24
+
25
+ const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' })[c]);
26
+ const svg = (d, n, w = 2.4) => `<svg width="${n}" height="${n}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="${w}" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="${d}"/></svg>`;
27
+ const CHEV_D = 'M6 9l6 6 6-6', CHEV_U = 'M6 15l6-6 6 6', TICK = 'M5 12.5l4.5 4.5L19 7.5', PART = 'M7 12h10';
28
+ const isPhone = () => typeof matchMedia === 'function' && matchMedia('(max-width: 760px)').matches;
29
+ const list = (v) => (Array.isArray(v) ? v : v instanceof Set ? [...v] : []);
30
+
31
+ /* ── the products by their display names (the names Work's Product column uses: "IDPF", not "pmos-idpf") ──
32
+ * A work copy ("acme ⑂ initiative/x") or a linked git worktree of a repository ("mainwt") is not a product of its own: it shows as the
33
+ * product it is a copy of, and the two are one row in the menu. The names come from GET /api/workspaces, read once when this module loads;
34
+ * whenNames() resolves when they are in, so a page draws its chip again then. Before that, the pick's own names show. */
35
+ /** A workspace's display name: its label, a linked worktree's repository name, else its name. PMOS's own repository reads "PMOS". */
36
+ export const displayName = (x) => { const n = (x && (x.label || (x.linked && x.repo_name) || x.name || x.id)) || ''; return /^pmos$/i.test(String(n).trim()) ? 'PMOS' : n; };
37
+ const own = displayName;
38
+ let NAMES = new Map(); // ws → { name, key }: key = the ws of the product it belongs to
39
+ const baseName = (n) => String(n || '').split(' ⑂ ')[0].trim();
40
+ export function setNames(workspaces) {
41
+ const raw = Array.isArray(workspaces) ? workspaces : [];
42
+ const mainOf = (x) => {
43
+ const n = baseName(x.name || x.id);
44
+ const up = (n !== (x.name || x.id) && raw.find((y) => y.name === n)) || (x.linked && x.repo_key && raw.find((y) => y !== x && !y.linked && y.repo_key === x.repo_key));
45
+ return up && up !== x ? up : null;
46
+ };
47
+ NAMES = new Map(raw.map((x) => { const m = mainOf(x); return [x.id, { name: own(m || x), key: (m || x).id }]; }));
48
+ }
49
+ let namesP = null;
50
+ export function whenNames() {
51
+ if (!namesP) namesP = pmGet('/api/workspaces').then((w) => setNames(w && w.workspaces)).catch(() => {});
52
+ return namesP;
53
+ }
54
+ try { if (typeof document !== 'undefined') whenNames(); } catch { /* no page */ }
55
+ const nameOfWs = (p) => (NAMES.get(p.ws) || {}).name || p.name;
56
+ const keyOfWs = (p) => (NAMES.get(p.ws) || {}).key || p.ws;
57
+ /** A project's product by its display name: from its token 'j:<ws>|…', else the name the page gave. */
58
+ export const projectProduct = (f) => { const m = /^j:([^|]+)\|/.exec(String(f.id || '')), n = m && NAMES.get(m[1]); return (n && n.name) || f.product || ''; };
59
+ /** The products of the pick, one per display name: [{ key, name, ws: [ws…], p (the first entry, for its tile) }]. */
60
+ export function productRows(P) {
61
+ const rows = [];
62
+ for (const p of (P && P.products) || []) {
63
+ const k = keyOfWs(p), n = nameOfWs(p);
64
+ let r = rows.find((x) => x.key === k || x.name.toLowerCase() === n.toLowerCase());
65
+ if (!r) rows.push(r = { key: k, name: n, ws: [], p: { ...p, name: n } });
66
+ r.ws.push(p.ws);
67
+ }
68
+ return rows;
69
+ }
70
+ const onNames = (P) => productRows(P).filter((r) => r.ws.some((ws) => onWs(P).includes(ws))).map((r) => r.name);
71
+
72
+ /* ── the pure part ── */
73
+ const onWs = (P) => (P && Array.isArray(P.products) ? P.products.filter((p) => p.on).map((p) => p.ws) : []);
74
+ const allOn = (P) => !P || !Array.isArray(P.products) || !P.products.length || P.products.every((p) => p.on);
75
+ export const narrowed = (P, sel = {}) => !allOn(P) || list(sel.programs).length > 0 || list(sel.projects).length > 0;
76
+ export function matches(scope, P, sel = {}) {
77
+ const S = new Set(list(scope));
78
+ if (!allOn(P) && !onWs(P).some((ws) => S.has('p:' + ws))) return false;
79
+ const extra = [...list(sel.programs), ...list(sel.projects)];
80
+ return !extra.length || extra.some((t) => S.has(t));
81
+ }
82
+ const nameOf = (groups, t) => { for (const k of ['programs', 'projects']) { const f = ((groups && groups[k]) || []).find((x) => x.id === t); if (f) return f.name; } return ''; };
83
+ export function scopeWords(P, sel = {}, groups = {}) {
84
+ const parts = [];
85
+ if (!allOn(P)) parts.push(...onNames(P));
86
+ for (const t of [...list(sel.programs), ...list(sel.projects)]) { const n = nameOf(groups, t); if (n) parts.push(n); }
87
+ return parts.join(', ');
88
+ }
89
+ export function scopeChipHtml(P, sel = {}, o = {}) {
90
+ const id = o.id || 'scpChip', open = !!cur && cur.id === id;
91
+ const extra = [...list(sel.programs), ...list(sel.projects)].map((t) => nameOf(o.groups, t)).filter(Boolean);
92
+ const on = onNames(P);
93
+ const prod = allOn(P) ? (extra.length ? '' : 'All products') : on[0] ? on[0] + (on.length > 1 ? ` +${on.length - 1}` : '') : 'No product';
94
+ const ext = extra.length ? extra[0] + (extra.length > 1 ? ` +${extra.length - 1}` : '') : '';
95
+ const label = [prod, ext].filter(Boolean).join(' · ');
96
+ const words = 'Products, programs and projects: ' + (narrowed(P, sel) ? scopeWords(P, sel, o.groups) : 'all');
97
+ return `<button type="button" class="ppk-chip scp-chip${open ? ' open' : ''}" id="${esc(id)}" aria-haspopup="menu" aria-expanded="${open}" aria-label="${esc(words)}" title="${esc(words)}"><span class="ppk-all ppk-nmc">${esc(label)}</span>${svg(open ? CHEV_U : CHEV_D, 14)}</button>`;
98
+ }
99
+
100
+ /* ── the menu: one at a time ── */
101
+ let cur = null; // { id, chip, o, ws: Set, programs: Set, projects: Set, el, scrim }
102
+ const box = (st) => `<i class="ppk-tk${st === 'true' ? ' on' : st === 'mixed' ? ' part' : ''}" aria-hidden="true">${st === 'true' ? svg(TICK, 13, 3.4) : st === 'mixed' ? svg(PART, 12, 3.4) : ''}</i>`;
103
+ function itemsHtml(c) {
104
+ const P = c.o.P, g = c.o.groups || {};
105
+ const out = [];
106
+ const PR = productRows(P);
107
+ if (PR.length) {
108
+ const T = tonesOf(PR.map((r) => r.p));
109
+ const st = (r) => { const k = r.ws.filter((ws) => c.ws.has(ws)).length; return k === r.ws.length ? 'true' : k ? 'mixed' : 'false'; };
110
+ const all = PR.every((r) => st(r) === 'true');
111
+ out.push('<p class="scp-h" role="presentation">Products</p>');
112
+ if (PR.length > 1) out.push(`<button type="button" class="ppk-mi" role="menuitemcheckbox" aria-checked="${all ? 'true' : 'mixed'}" data-scp-p="*"><span class="ppk-nm"><b>All products</b></span>${box(all ? 'true' : 'mixed')}</button>`);
113
+ for (const r of PR) out.push(`<button type="button" class="ppk-mi" role="menuitemcheckbox" aria-checked="${st(r)}" data-scp-p="${esc(r.key)}"><span class="ppk-tl t${T[r.p.ws] || 0}" aria-hidden="true">${esc(codeOf(r.p))}</span><span class="ppk-nm"><b>${esc(r.name)}</b></span>${box(st(r))}</button>`);
114
+ }
115
+ for (const [k, label] of [['programs', 'Programs'], ['projects', 'Projects']]) {
116
+ const L = g[k] || [];
117
+ if (!L.length) continue;
118
+ if (out.length) out.push('<div class="ppk-sep" role="separator"></div>');
119
+ out.push(`<p class="scp-h" role="presentation">${label}</p>`);
120
+ for (const f of L) {
121
+ const on = c[k].has(f.id), line = [projectProduct(f), f.n ? f.n + ' ' + (f.n === 1 ? c.unitOne : c.unit) : ''].filter(Boolean).join(' · ');
122
+ out.push(`<button type="button" class="ppk-mi" role="menuitemcheckbox" aria-checked="${on}" data-scp-${k === 'programs' ? 'g' : 'j'}="${esc(f.id)}"><span class="ppk-nm"><b>${esc(f.name)}</b>${line ? `<em>${esc(line)}</em>` : ''}</span>${box(String(on))}</button>`);
123
+ }
124
+ }
125
+ if (c.programs.size || c.projects.size) out.push(`<div class="ppk-sep" role="separator"></div><button type="button" class="ppk-mi" role="menuitem" data-scp-clear><span class="ppk-nm"><b>Every program and project</b></span></button>`);
126
+ return out.join('');
127
+ }
128
+ function place(c) {
129
+ const sheet = isPhone();
130
+ c.el.classList.toggle('sheet', sheet); c.scrim.hidden = !sheet;
131
+ // run-time geometry only as custom properties (conformance R28-1); cozy-pick.css places .scp-menu from them
132
+ if (sheet) { c.el.style.removeProperty('--fr-menu-x'); c.el.style.removeProperty('--fr-menu-y'); return; }
133
+ const ch = chipOf(c), r = ch.getBoundingClientRect(), w = Math.min(348, innerWidth - 24);
134
+ c.el.style.setProperty('--fr-menu-x', Math.max(12, Math.min(r.left, innerWidth - w - 12)) + 'px'); c.el.style.setProperty('--fr-menu-y', Math.round(r.bottom + 8) + 'px');
135
+ }
136
+ const chipOf = (c) => (c.chip.isConnected ? c.chip : document.getElementById(c.id)) || c.chip;
137
+ export async function closeScope(apply = true) {
138
+ const c = cur; if (!c) return;
139
+ cur = null;
140
+ c.el.remove(); c.scrim.remove();
141
+ removeEventListener('keydown', onKey, true); document.removeEventListener('click', onOut, true); removeEventListener('resize', onSize);
142
+ const ch = chipOf(c);
143
+ ch.setAttribute('aria-expanded', 'false'); ch.classList.remove('open');
144
+ const sv = ch.querySelector('svg:last-child path'); if (sv) sv.setAttribute('d', CHEV_D);
145
+ if (ch.isConnected) ch.focus();
146
+ if (!apply) return;
147
+ const P = c.o.P, sel = c.o.sel || {};
148
+ const was = onWs(P), now = P && P.products ? P.products.filter((p) => c.ws.has(p.ws)).map((p) => p.ws) : [];
149
+ const next = { products: now, programs: [...c.programs], projects: [...c.projects] };
150
+ const same = (a, b) => a.length === b.length && a.every((x, i) => x === b[i]);
151
+ if (!same(was, now)) await savePick(now);
152
+ if (!same(was, now) || !same(list(sel.programs), next.programs) || !same(list(sel.projects), next.projects)) c.o.onApply(next);
153
+ }
154
+ function onKey(e) {
155
+ if (!cur) return;
156
+ if (e.key === 'Escape') { e.preventDefault(); e.stopImmediatePropagation(); closeScope(); return; }
157
+ if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {
158
+ e.preventDefault();
159
+ const L = [...cur.el.querySelectorAll('button')], i = L.indexOf(document.activeElement);
160
+ L[(i + (e.key === 'ArrowDown' ? 1 : L.length - 1)) % L.length].focus();
161
+ }
162
+ }
163
+ function onOut(e) { if (cur && !cur.el.contains(e.target) && !chipOf(cur).contains(e.target)) closeScope(); }
164
+ function onSize() { if (cur) place(cur); }
165
+ export function openScope(chip, o) {
166
+ if (cur && cur.id === chip.id) { closeScope(); return; }
167
+ closeScope();
168
+ const el = document.createElement('div'), scrim = document.createElement('div');
169
+ el.className = 'ppk-menu scp-menu'; el.setAttribute('role', 'menu'); el.setAttribute('aria-label', 'Products, programs and projects');
170
+ el.setAttribute('data-esc-layer', '');
171
+ scrim.className = 'ppk-scrim'; scrim.hidden = true;
172
+ document.body.append(scrim, el);
173
+ const sel = o.sel || {};
174
+ const c = cur = { id: chip.id, chip, o, unit: o.unit || 'dates', unitOne: o.unitOne || (o.unit ? String(o.unit).replace(/s$/, '') : 'date'), ws: new Set(onWs(o.P)), programs: new Set(list(sel.programs)), projects: new Set(list(sel.projects)), el, scrim };
175
+ el.innerHTML = itemsHtml(c); place(c);
176
+ chip.setAttribute('aria-expanded', 'true'); chip.classList.add('open');
177
+ const sv = chip.querySelector('svg:last-child path'); if (sv) sv.setAttribute('d', CHEV_U);
178
+ el.onclick = (e) => {
179
+ e.stopPropagation();
180
+ const b = e.target.closest('button'); if (!b) return;
181
+ let focus = null;
182
+ if (b.matches('[data-scp-clear]')) { c.programs.clear(); c.projects.clear(); }
183
+ else if (b.dataset.scpP != null) {
184
+ // All products ticks every one; a product ticks or unticks; the last one stays ticked (as Work's chip)
185
+ // a product row holds every workspace of that product (a work copy, a worktree): they tick together
186
+ const key = b.dataset.scpP, PR = productRows(o.P), r = PR.find((x) => x.key === key);
187
+ if (key === '*') o.P.products.forEach((p) => c.ws.add(p.ws));
188
+ else if (r && !r.ws.every((ws) => c.ws.has(ws))) r.ws.forEach((ws) => c.ws.add(ws));
189
+ else if (r && [...c.ws].some((ws) => !r.ws.includes(ws))) r.ws.forEach((ws) => c.ws.delete(ws));
190
+ focus = `[data-scp-p="${CSS.escape(key)}"]`;
191
+ } else {
192
+ const k = b.dataset.scpG != null ? 'programs' : b.dataset.scpJ != null ? 'projects' : null;
193
+ if (!k) return;
194
+ const t = k === 'programs' ? b.dataset.scpG : b.dataset.scpJ;
195
+ if (c[k].has(t)) c[k].delete(t); else c[k].add(t);
196
+ focus = `[data-scp-${k === 'programs' ? 'g' : 'j'}="${CSS.escape(t)}"]`;
197
+ }
198
+ el.innerHTML = itemsHtml(c);
199
+ const f = focus && el.querySelector(focus); if (f) f.focus();
200
+ };
201
+ scrim.onclick = () => closeScope();
202
+ addEventListener('keydown', onKey, true);
203
+ setTimeout(() => document.addEventListener('click', onOut, true), 0);
204
+ addEventListener('resize', onSize);
205
+ const f = el.querySelector('button'); if (f) f.focus();
206
+ }
207
+ export const scopeOpen = () => !!cur;
@@ -16,6 +16,7 @@
16
16
  <main class="cz-panel stage evp" id="stage">
17
17
  <div class="evp-hd">
18
18
  <h1>Events</h1>
19
+ <div class="evp-scope" id="evpScope"></div>
19
20
  <p class="evp-dayf" id="evpDay" hidden>Only <b></b><button type="button" class="evp-ib" data-evp-clear aria-label="Show every day" title="Show every day"><svg aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><path d="M6 6l12 12M18 6L6 18"/></svg></button></p>
20
21
  <button type="button" class="evp-ib evp-add" data-evp-add aria-label="Add your own date" title="Add your own date"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg></button>
21
22
  </div>
@@ -27,12 +28,13 @@
27
28
  <button type="submit" class="evp-ib evp-yes" aria-label="Add it" title="Add it"><svg aria-hidden="true" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></button>
28
29
  </form>
29
30
  <p class="evp-note" id="evpNote" role="status" hidden></p>
31
+ <div id="evpHid"></div>
30
32
  <div id="evpList" aria-live="polite"><p class="evp-quiet" role="status">Reading the dates.</p></div>
31
33
  </div>
32
34
  <aside class="evp-side" aria-label="The month">
33
35
  <div id="evpMonth"></div>
34
36
  <div id="evpShow"></div>
35
- <p class="evp-hint">Press a kind to hide it or show it. Press a day to see only that day.</p>
37
+ <p class="evp-hint">Press a type to hide it or show it. Press a day to see only that day. Press the month to open the full calendar.</p>
36
38
  </aside>
37
39
  </div>
38
40
  </main>
@@ -0,0 +1,37 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="pmos-nonce" content="" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
7
+ <title>PMOS · Goals</title>
8
+ <!-- Goals (initiative goals-place, slice 9 of the six-place navigation; boards 8, 13, 31, 32, 33 on Exploring 2, handover
9
+ /mnt/project-files/goals-handover/). "Am I on track? What do I do?" as one hierarchy: the North Star, then one table Objective › Key result
10
+ (Actual / target, Left) › Levers › Initiative, a Budget row per health budget with work in it, and the work no key result names (Unlinked).
11
+ A press on a key result, an initiative or ⋯ › Set up opens it in the one popup (pm/cozy-popup.js) with the chat about it. It reads
12
+ GET /api/insights-premium and GET /api/metric-drafts for each ticked product; the only write is the North Star draft's ✓ or ✕, with Undo.
13
+ Charts, dashboards and the goal readings stay on /premium-intelligence.html (⋯ › Charts and dashboards). -->
14
+ <link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
15
+ <link rel="stylesheet" href="/pm/cozy.css" />
16
+ <link rel="stylesheet" href="/pm/cozy-pick.css" />
17
+ <link rel="stylesheet" href="/pm/cozy-goals.css" />
18
+ </head>
19
+ <body class="cz gl-page">
20
+ <main class="stage cz-panel gl" id="stage">
21
+ <h1 class="vh">Goals</h1>
22
+ <div class="gl-bar">
23
+ <span class="gl-ttl" aria-hidden="true">Goals</span>
24
+ <span id="glPick"></span>
25
+ <span class="gl-per" id="glPer" hidden></span>
26
+ <span class="gl-sp"></span>
27
+ <button type="button" class="cz-ib" id="glFind" aria-label="Find a goal" title="Find a goal"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M11 4.5a6.5 6.5 0 1 0 0 13a6.5 6.5 0 1 0 0-13M16 16l4 4"/></svg></button>
28
+ <span class="gl-mw"><button type="button" class="cz-ib" id="glFilt" aria-haspopup="menu" aria-expanded="false" aria-controls="glFiltMenu" aria-label="Filter: all, slipping, not read or read" title="Filter"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 6h16M7 12h10M10 18h4"/></svg><i class="gl-fdot" id="glFdot" hidden></i></button><div class="gl-menu" id="glFiltMenu" role="menu" aria-label="Filter" hidden></div></span>
29
+ <span class="gl-mw"><button type="button" class="cz-ib" id="glMore" aria-haspopup="menu" aria-expanded="false" aria-controls="glMoreMenu" aria-label="More: set up, charts and dashboards, export" title="More"><svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="5.5" cy="12" r="1.3" fill="currentColor" stroke="none"/><circle cx="12" cy="12" r="1.3" fill="currentColor" stroke="none"/><circle cx="18.5" cy="12" r="1.3" fill="currentColor" stroke="none"/></svg></button><div class="gl-menu" id="glMoreMenu" role="menu" aria-label="More" hidden></div></span>
30
+ </div>
31
+ <div id="glBody" aria-live="polite"><div class="gl-sk" aria-hidden="true"><i></i><i></i><i></i><i></i></div></div>
32
+ <p class="gl-n" id="glNote" hidden>Reports are routine jobs, so they live in <a href="/premium-routine.html">Routine</a>: who each one tells, when it runs, what PMOS did.</p>
33
+ </main>
34
+ <noscript>This page needs JavaScript.</noscript>
35
+ <script type="module" src="/pm/premium-goals.js"></script>
36
+ </body>
37
+ </html>
@@ -5,25 +5,33 @@
5
5
  <meta name="pmos-nonce" content="" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
7
7
  <title>PMOS · Library</title>
8
- <!-- Library (initiative library-place, slice 7 of the six-place navigation; boards StLibrary, StLibMeetings, StLibDocs, StLibMeetingOpen on
9
- Exploring 2). One table of everything that was made, the newest first: Name, Kind, About, Updated, in the groups This week, Earlier in <month>
10
- and Older. The filter All, Documents, Meeting notes, Prototypes; the search field; the + asks PMOS to add a file, a link or a new document.
11
- A press on a row opens it in the one popup (pm/cozy-popup.js) with the chat about it. Reports live in Routine; Lab findings go to Today.
12
- It reads GET /api/library-items (lib/routes-library.js). Nothing on this page writes. -->
8
+ <!-- Library (initiative library-place; slice 7 of the six-place navigation, Library round 2). A catalogue of everything that was made, from
9
+ every product: Name, Kind, Product, About, By, State, Updated. One filter row (Kind, product/program/project, State), the search field (a
10
+ title match at once, the items about it by meaning under it), the tune button (Group by New, Work, Kind or Product) and the + (PMOS adds a
11
+ file, a link or a document). A press opens the item in the one popup (pm/cozy-popup.js) with the chat about it; on a screen 1600 px or wider
12
+ the first press shows the record at the right. It reads GET /api/library-items (lib/routes-library.js). -->
13
13
  <link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
14
14
  <link rel="stylesheet" href="/pm/cozy.css" />
15
+ <link rel="stylesheet" href="/pm/cozy-pick.css" />
15
16
  <link rel="stylesheet" href="/pm/cozy-library.css" />
16
17
  </head>
17
18
  <body class="cz lb-page">
18
19
  <main class="stage cz-panel lb" id="stage">
19
20
  <h1 class="vh">Library</h1>
20
21
  <div class="lb-bar">
21
- <span class="cz-seg" id="lbKinds" role="group" aria-label="Kind"></span>
22
+ <span class="lb-fl" id="lbFilters" role="group" aria-label="Filters"></span>
22
23
  <label class="lb-find"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M11 4.5a6.5 6.5 0 1 0 0 13a6.5 6.5 0 1 0 0-13M16 16l4 4"/></svg><span class="vh">Find in Library</span><input id="lbQ" type="search" autocomplete="off" spellcheck="false" placeholder="Find in Library" /></label>
24
+ <span class="lb-cw lb-cwr"><button type="button" class="cz-ib lb-tune" id="lbTune" aria-haspopup="menu" aria-expanded="false" aria-label="Group by" title="Group by"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 7h10M18 7h2M4 17h4M12 17h8M16 5v4M10 15v4"/></svg></button></span>
23
25
  <button type="button" class="cz-ib lb-add" id="lbAdd" aria-label="Add a file, a link or a new document" title="Add a file, a link or a new document"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button>
24
26
  </div>
25
- <div id="lbBody" aria-live="polite"><div class="lb-t lb-sk" aria-hidden="true"><div class="lb-r lb-h"><span></span><i></i><i></i><i></i><i></i></div><div class="lb-r"><span></span><i></i><i></i><i></i><i></i></div><div class="lb-r"><span></span><i></i><i></i><i></i><i></i></div><div class="lb-r"><span></span><i></i><i></i><i></i><i></i></div></div></div>
27
+ <p class="lb-hid" id="lbHid" aria-live="polite"></p>
28
+ <div class="lb-wrap">
29
+ <div class="lb-main">
30
+ <div id="lbBody" aria-live="polite"><div class="lb-t lb-sk" aria-hidden="true"><div class="lb-r lb-h"><span></span><i></i><i></i><i></i><i></i><i></i><i></i><i></i></div><div class="lb-r"><span></span><i></i><i></i><i></i><i></i><i></i><i></i><i></i></div><div class="lb-r"><span></span><i></i><i></i><i></i><i></i><i></i><i></i><i></i></div></div></div>
26
31
  <p class="lb-n" id="lbNote"></p>
32
+ </div>
33
+ <aside class="lb-pv" id="lbPv" hidden aria-label="The record"></aside>
34
+ </div>
27
35
  </main>
28
36
  <noscript>This page needs JavaScript.</noscript>
29
37
  <script type="module" src="/pm/premium-library.js"></script>
@@ -11,6 +11,7 @@
11
11
  the routine (pm/cozy-routine-pop.js). The rail (pm/cozy-nav.js) is the navigation. The page code is pm/cozy-routine.js. -->
12
12
  <link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
13
13
  <link rel="stylesheet" href="/pm/cozy.css" />
14
+ <link rel="stylesheet" href="/pm/cozy-pick.css" />
14
15
  <link rel="stylesheet" href="/pm/cozy-routine.css" />
15
16
  </head>
16
17
  <body class="cz">
@@ -18,6 +19,7 @@
18
19
  <main class="cz-panel stage rt-page" id="stage">
19
20
  <h1 class="vh">Routine</h1>
20
21
  <div class="rt-bar">
22
+ <div class="rt-pick" id="rtPick"></div>
21
23
  <div class="rt-seg" id="rtKinds" role="group" aria-label="Show"></div>
22
24
  <button type="button" class="rt-add" id="rtAdd" aria-label="Tell PMOS a new routine" title="Tell PMOS a new routine"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button>
23
25
  </div>
@@ -1542,6 +1542,7 @@ function searchFamily(w, query, limit, only) {
1542
1542
  // the file KIND, never the reachable path set. A refusal carries its reason (readTextDocWhy).
1543
1543
  const MAX_READ_BYTES = 2 * 1024 * 1024;
1544
1544
  function readTextDocWhy(root, rel) {
1545
+ rel = require('./lib/doc-path.js').resolve(root, rel || ''); // one resolver for a record's path, with or without the kit's "pmos/" (round 3 point 17)
1545
1546
  const full = path.resolve(root, rel || '');
1546
1547
  if (!insideRoot(root, full)) return { ok: false, reason: 'not inside this workspace' }; // per-workspace guard (traversal + cross-ws)
1547
1548
  const name = path.basename(full);
@@ -7352,7 +7353,7 @@ async function handleRequest(req, res) {
7352
7353
  res.writeHead(302, { Location: '/premium.html?onboard=1', 'Cache-Control': 'no-store' });
7353
7354
  return res.end();
7354
7355
  }
7355
- const PAGES = { '/premium-routine': 'premium-routine.html', '/premium-routine.html': 'premium-routine.html', '/': 'today.html', '/index.html': 'today.html', '/today': 'today.html', '/today.html': 'today.html', '/premium': 'premium.html', '/premium.html': 'premium.html', '/premium-board': 'premium-board.html', '/premium-board.html': 'premium-board.html', '/premium-intelligence': 'premium-intelligence.html', '/premium-intelligence.html': 'premium-intelligence.html', '/premium-events': 'premium-events.html', '/premium-events.html': 'premium-events.html', '/premium-library': 'premium-library.html', '/premium-library.html': 'premium-library.html', '/premium-insights': 'premium-intelligence.html', '/premium-insights.html': 'premium-intelligence.html', '/premium-welcome': 'premium-welcome.html', '/premium-welcome.html': 'premium-welcome.html', '/premium-viewer': 'premium-viewer.html', '/premium-viewer.html': 'premium-viewer.html', '/premium-rec': 'premium-rec.html', '/premium-rec.html': 'premium-rec.html', '/premium-workflows': 'premium-workflows.html', '/premium-workflows.html': 'premium-workflows.html', '/pm/present': 'premium-present.html' };
7356
+ const PAGES = { '/premium-routine': 'premium-routine.html', '/premium-routine.html': 'premium-routine.html', '/': 'today.html', '/index.html': 'today.html', '/today': 'today.html', '/today.html': 'today.html', '/premium': 'premium.html', '/premium.html': 'premium.html', '/premium-board': 'premium-board.html', '/premium-board.html': 'premium-board.html', '/premium-intelligence': 'premium-intelligence.html', '/premium-intelligence.html': 'premium-intelligence.html', '/premium-events': 'premium-events.html', '/premium-events.html': 'premium-events.html', '/premium-library': 'premium-library.html', '/premium-library.html': 'premium-library.html', '/premium-goals': 'premium-goals.html', '/premium-goals.html': 'premium-goals.html', '/premium-insights': 'premium-intelligence.html', '/premium-insights.html': 'premium-intelligence.html', '/premium-welcome': 'premium-welcome.html', '/premium-welcome.html': 'premium-welcome.html', '/premium-viewer': 'premium-viewer.html', '/premium-viewer.html': 'premium-viewer.html', '/premium-rec': 'premium-rec.html', '/premium-rec.html': 'premium-rec.html', '/premium-workflows': 'premium-workflows.html', '/premium-workflows.html': 'premium-workflows.html', '/pm/present': 'premium-present.html' };
7356
7357
  const page = capture ? 'capture.html' : Object.prototype.hasOwnProperty.call(PAGES, p) ? PAGES[p] : null;
7357
7358
  if (page) {
7358
7359
  // pm-os-absorb Run 2 (R25, X11): the per-launch nonce goes into the base meta line, nowhere else. no-store, so a
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Popup round 3 point 17: one resolver for a document a record names (lib/doc-path.js), used by GET /api/doc and the document page. No browser.",
3
+ "modules": [
4
+ "doc-path.test.js"
5
+ ],
6
+ "seconds": {
7
+ "doc-path.test.js": 1
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Goals, slice 9 of the six-place navigation (initiative goals-place, done test T1-T6): lib/insights-premium.js unlinkedOf, pm/goals-model.js, the rail's Goals. Pure, node.",
3
+ "modules": [
4
+ "goals-place.test.js"
5
+ ],
6
+ "seconds": {
7
+ "goals-place.test.js": 2
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Popup round 3 point 18: the day a status move really happened, its limits on the server and the page, and the app's day form. No browser.",
3
+ "modules": [
4
+ "status-when.test.js"
5
+ ],
6
+ "seconds": {
7
+ "status-when.test.js": 1
8
+ }
9
+ }