create-pmos 0.326.0 → 0.327.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.326.0",
3
+ "version": "0.327.0",
4
4
  "description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@d934e1f
1
+ kernel-source: pmos@3505546
2
2
  assembled: 2026-10-19
3
3
  mode: vendor
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Eval calibration log"
4
4
  description: "Append-only record of every PM override of an evaluator verdict."
5
- generated: {by: process:create-pmos, at: "2026-10-19T22:51:18Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-19T23:04:19Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Health budgets"
4
4
  description: "Closed registry of health-budget anchors (D59), edited only by the PM."
5
- generated: {by: process:create-pmos, at: "2026-10-19T22:51:18Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-19T23:04:19Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Discoveries and friction log"
4
4
  description: "Append-only record of what runs discovered and where the process rubbed."
5
- generated: {by: process:create-pmos, at: "2026-10-19T22:51:18Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-19T23:04:19Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -350,7 +350,7 @@ A calendar meeting's panel follows the mockup's Design review panel: the title w
350
350
 
351
351
  The panel is laid out like the console's note sheet. Under the head, a line shows the time, then what the meeting is about with **Change** (the link choice). When the meeting is part of a series, the series line names it with "N of M" and has a press for the meeting before and the one after. Each opens that meeting's notes as a tab in the viewer, and the tab pages through the series. **Not part of this series** takes the note out of the series, and **Put it back** returns it. A switch then shows one part at a time:
352
352
 
353
- - **Before**: the open steps carried in from the meeting before, the agenda with each item marked when the transcript heard it, what the meeting is for, what to have ready, what to read first and the people. Prepared for you, Material, Previous meetings and Topics follow.
353
+ - **Before**: first the meeting prep the console's Calendar card shows: In short, What matters today (To settle in planning for a planning meeting), Since the last one with its decisions and the steps From last time, To be ready, and the meeting's links. When the note already carries in the meeting before, Since the last one is left to it. Then the open steps carried in from the meeting before, the agenda with each item marked when the transcript heard it, what the meeting is for, what to have ready, what to read first and the people. Prepared for you, Material, Previous meetings and Topics follow.
354
354
  - **During**: the transcript the note holds, with times.
355
355
  - **After**: **Since the last one** (each step from the meeting before as Done, Raised again or Not mentioned, and the new steps), the replay, the summary, a table of decisions with their why, a table of next steps with owner, due and **Make task**, the open questions, the screenshots of the shared screen and the transcript, folded.
356
356
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.326.0",
3
+ "version": "0.327.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.326.0",
9
+ "version": "0.327.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.326.0",
3
+ "version": "0.327.0",
4
4
  "private": true,
5
5
  "description": "PMOS Terminal Workspace — local companion hosting real PTYs beside the library and gates (D62)",
6
6
  "license": "MIT",
@@ -3,7 +3,7 @@
3
3
  /* premium-vw-meet-test.js — the meeting detail laid out as the console's note sheet (initiative premium-viewer, R3, slice S3; planning/prd/premium-viewer-prd.md).
4
4
  * Serves the real Briefing from the real server. The Briefing model, the calendar, the notes and the note (GET /api/notes/one) are answered by stand-ins,
5
5
  * so each press can be read off the request the page sent. The routes' own behaviour is in their own suites; the pure half is in premium-vw-meet.test.js.
6
- * S1 stage · S2 head · S3 After · S4 Make task · S5 Before · S6 During · S7 series membership · S8 no note · S9 writes · S10 floors
6
+ * S1 stage · S2 head · S3 After · S4 Make task · S5 Before (with the prep brief) · S6 During · S7 series membership · S8 no note · S9 writes · S10 floors
7
7
  * Every wait polls the page; no fixed sleep stands in for a state. */
8
8
  const path = require('path');
9
9
  const { spawn } = require('child_process');
@@ -76,6 +76,7 @@ const PNG = Buffer.from('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR
76
76
  await page.route('**/api/calendar-views*', (r) => json(r, weekAnswer()));
77
77
  await page.route('**/api/meeting-replay*', (r) => json(r, { ok: false, error: 'no note' }, 404));
78
78
  await page.route('**/api/meeting-material*', (r) => json(r, { ok: true, key: 'k', items: [] }));
79
+ await page.route('**/api/meeting-focus?*', (r) => json(r, { ok: true, brief: { gist: ['Agree what blocks the release.'], planning: false, matters: [{ tag: 'Late', tone: 'bad', text: 'Ship the SSO spike', meta: 'due 14 Oct', ref: { type: 'item' } }], last: { id: 'n0', title: 'Weekly sync', at: '2026-10-06T10:00:00Z', private: false, overview: 'The copy test plan.', decisions: [], actions: [] }, earlier: 1, prep: null, links: [], refs: [] } }));
79
80
  await page.route('**/api/notes/recording*', (r) => r.fulfill({ status: 200, contentType: 'audio/wav', body: Buffer.alloc(0) }));
80
81
  await page.route('**/api/notes/screen*', (r) => r.fulfill({ status: 200, contentType: 'image/png', body: PNG }));
81
82
  await page.route('**/api/notes/series?*', (r) => json(r, { ok: true, series: { key: 'weekly-sync', meetings: [] } }));
@@ -139,6 +140,8 @@ const PNG = Buffer.from('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR
139
140
  await stage(p, 'before');
140
141
  const bf = (await part(p, 'before')).text;
141
142
  ok('S5 Before shows what was carried in, the agenda with what was heard, and what it is for', /Carried in from/.test(bf) && /Book the readout/.test(bf) && /1 of 2 heard/.test(bf) && /What it is for/.test(bf) && /Release PRD/.test(bf), bf.slice(0, 300));
143
+ const prep = await until(() => p.evaluate(() => { const b = document.querySelector('#oMain .vm-body[data-part="before"] [data-vm-prep]'); return b ? b.textContent : ''; }));
144
+ ok('S5 Before opens with the meeting prep the console card shows: In short and What matters today; the note already carries in the meeting before', /In short/.test(prep) && /Agree what blocks the release/.test(prep) && /What matters today/.test(prep) && /Ship the SSO spike/.test(prep) && !/Since the last one/.test(prep), String(prep).slice(0, 200));
142
145
  ok('S5 Before keeps Prepared for you and Material', /Prepared for you/.test(bf) && /Material/.test(bf) && await p.evaluate(() => !!document.querySelector('#mmAdd') && !!document.querySelector('#mmAdd').offsetParent));
143
146
  ok('S1 pressing a stage shows it, hides the others and moves the pressed state', await p.evaluate(() => document.querySelector('#oMain [data-ph="before"]').getAttribute('aria-pressed') === 'true' && document.querySelector('#oMain .vm-body[data-part="after"]').hidden));
144
147
 
@@ -121,6 +121,7 @@ export function meetingView(row, replay, material, extra) {
121
121
  people,
122
122
  notes, notesState: S ? 'ok' : replay ? replay.state : 'none', sheet: S || null,
123
123
  notesLine: S ? '' : !replay ? 'Reading the notes.' : replay.state === 'error' ? 'The notes could not be read: ' + clip(replay.error, 120) : replay.state === 'none' ? 'No notes for this meeting.' : '',
124
+ brief: (extra && extra.brief) || null,
124
125
  replay: rep && (rep.audio || heard) ? { minutes: heard, keyPoints: keys.length, lines: Array.isArray(rep.lines) ? rep.lines.length : 0 } : null,
125
126
  material: material && material.state === 'ok' ? (material.items || []).map((i, n) => ({ n, title: clip(i.title || i.ref || i.url, 120), kind: i.kind || '', topic: clip(i.topic, 80), scope: i.scope === 'series' ? 'every meeting of this series' : 'this meeting', removable: i.from === 'you' && (i.scope === 'series' || i.scope === 'meeting'), line: removeLine(i) })) : null,
126
127
  ...prepOf(row, people, material, extra, aboutOf(row.level)),
@@ -516,7 +517,7 @@ export function mountMeeting(d) {
516
517
  const tops = secH('Topics', v.planned.length ? 'planned' : '') + (v.planned.length ? `<div class="tops">${v.planned.map((t, i) => `<div class="tp plan"><i>${i + 1}</i><span>${esc(clip(t.text, 120))}</span><small>planned</small></div>`).join('')}</div>` : '<p class="mut">The meeting has no topics yet.</p>');
517
518
  /* After: from the note's own record when the meeting has one (premium-vw-meet.js), else the decisions, steps and questions the replay answer holds */
518
519
  const task = { has: (i) => ui.tasked.has(i) };
519
- const sx = { esc, tasked: task, replayBtn: !!v.replay, where: 'meeting', id: S ? S.id : null };
520
+ const sx = { esc, tasked: task, replayBtn: !!v.replay, where: 'meeting', id: S ? S.id : null, brief: v.brief };
520
521
  const after = S ? stageHtml('after', S, sx)
521
522
  : secH('Notes', v.notesLine ? '' : 'from the meeting note') + (v.notesLine ? `<p class="mut">${esc(v.notesLine)}</p>` : (n.title ? `<p><b>${esc(n.title)}</b></p>` : '') + notesTablesHtml(n, esc, task) + ((n.decisions.length + n.actions.length + n.questions.length) ? '' : '<p class="mut">The note holds no decisions, next steps or questions yet.</p>'))
522
523
  + (v.replay ? secH('Replay', 'kept on this machine') + `<p>A recording is kept: ${v.replay.minutes ? v.replay.minutes + ' min, ' : ''}${v.replay.keyPoints} key ${v.replay.keyPoints === 1 ? 'point' : 'points'}.</p><div class="mtg-foot"><button class="addb pri" data-m3="replay">Replay</button><span class="note">Plays the note’s audio kept on this machine, with the transcript and the key points.</span></div>` : '');
@@ -564,7 +565,7 @@ export function mountMeeting(d) {
564
565
  const pane = $('#dOut'), top = pane ? pane.scrollTop : 0, same = ui.last === ui.view; ui.last = ui.view;
565
566
  $('#oMain').innerHTML = ({ add: () => sheetHtml(row), focus: focusHtml, replay: replayHtml }[ui.view] || (() => detailHtml(view(), boards, inis, saved, ui)))();
566
567
  if (ui.view === 'add') paintSheet();
567
- else if (ui.view === 'detail') { const S = view().sheet, sx = { esc, tasked: { has: (i) => ui.tasked.has(i) }, replayBtn: !!view().replay, where: 'meeting', id: S ? S.id : null, reread: async () => { await readSheet(); paint(); } }; for (const [k] of PHASES) wireStage(k, $(`#oMain .vm-body[data-part="${k}"]`), S, sx); }
568
+ else if (ui.view === 'detail') { const S = view().sheet, sx = { esc, tasked: { has: (i) => ui.tasked.has(i) }, replayBtn: !!view().replay, where: 'meeting', id: S ? S.id : null, brief: extra.brief || null, reread: async () => { await readSheet(); paint(); } }; for (const [k] of PHASES) wireStage(k, $(`#oMain .vm-body[data-part="${k}"]`), S, sx); }
568
569
  if (pane && same) pane.scrollTop = top;
569
570
  };
570
571
  const alive = (v) => ui.view === v && $('#dlg').classList.contains('on') && $('#dTitle').textContent === row.title;
@@ -750,9 +751,10 @@ export function mountMeeting(d) {
750
751
  if ($('#dTitle').textContent !== row.title) return;
751
752
  pickPhase(); paint(); if (HOLD) tickClock(); mark();
752
753
  {
753
- const sk = (noteOfRow(NR, row) || {}).series, [sr, tp] = await Promise.all([sk && sk.key ? d.pmGet('/api/notes/series?key=' + encodeURIComponent(sk.key)) : null, d.pmGet(matPath() + '&topics=1')]);
754
+ /* the meeting prep for Before: the brief the console's Calendar card shows (GET /api/meeting-focus, lib/calendar-layers.js briefOf) */
755
+ const sk = (noteOfRow(NR, row) || {}).series, [sr, tp, mf] = await Promise.all([sk && sk.key ? d.pmGet('/api/notes/series?key=' + encodeURIComponent(sk.key)) : null, d.pmGet(matPath() + '&topics=1'), d.pmGet('/api/meeting-focus?event=' + encodeURIComponent(row.id) + '&date=' + row.day)]);
754
756
  if ($('#dTitle').textContent !== row.title) return;
755
- extra = { ...extra, prev: prevOf(sr, row), topics: tp && tp.ok && Array.isArray(tp.topics) ? tp.topics.filter((t) => t && t.text).slice(0, 8) : [] };
757
+ extra = { ...extra, prev: prevOf(sr, row), topics: tp && tp.ok && Array.isArray(tp.topics) ? tp.topics.filter((t) => t && t.text).slice(0, 8) : [], brief: mf && mf.ok === true && mf.brief ? mf.brief : null };
756
758
  if (ui.view === 'detail') paint();
757
759
  }
758
760
 
@@ -85,3 +85,7 @@
85
85
  .vm .vm-tb td{border:0;padding:0}
86
86
  .vm .vm-tb td:first-child,.vm .vm-tb td.w{grid-column:1/-1}
87
87
  }
88
+ .vm .vm-bl{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:6px}
89
+ .vm .vm-bi{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;color:var(--ink-2)}
90
+ .vm .vm-bi small{font-size:var(--fs-2);color:var(--ink-3)}
91
+ .vm .vm-tg.warn{color:var(--ember-ink)}
@@ -1,8 +1,9 @@
1
1
  /* pm/premium-vw-meet.js — the meeting detail laid out as the console's note sheet (initiative premium-viewer, R3, slice S3).
2
2
  * The meeting dialog (premium-meeting.js detailHtml) draws its first tab with these parts: a head with Before, During and After,
3
3
  * the linked calendar event and what it is about, the series line (the meeting before and after, "N of M"), then
4
- * Before the meeting context the note kept (agenda, heard or not; what it is for; to be ready; read first; people) and what
5
- * was still open coming in from the meeting before (carried in)
4
+ * Before the meeting prep the console's Calendar card shows (GET /api/meeting-focus brief: In short, What matters today,
5
+ * Since the last one, To be ready, links; prepHtml), the meeting context the note kept (agenda, heard or not; what it is
6
+ * for; to be ready; read first; people) and what was still open coming in from the meeting before (carried in)
6
7
  * During the transcript the note holds
7
8
  * After Since the last one (each next step of the meeting before: Done, Raised again or Not mentioned, then the new ones),
8
9
  * the summary, Decision and Why, Next step with owner, due and Make task, open questions, the screenshots of the
@@ -113,7 +114,7 @@ export const PHASES = [['before', 'Before'], ['during', 'During'], ['after', 'Af
113
114
  * note tab); a part may leave out wire. The meeting dialog draws its own calendar sections (Prepared for you, Material, Previous
114
115
  * meetings, Topics) after the Before stage, and its replay-answer notes when there is no note. */
115
116
  const STAGES = {
116
- before: { html: (S, x) => beforeHtml(S, x.esc) },
117
+ before: { html: (S, x) => prepHtml(x.brief, S, x.esc) + beforeHtml(S, x.esc) },
117
118
  during: { html: (S, x) => duringHtml(S, x.esc) },
118
119
  after: { html: (S, x) => (S ? sinceHtml(S, x.esc) + notesHtml(S, x.esc, { tasked: x.tasked, replayBtn: x.replayBtn }) : '') },
119
120
  };
@@ -126,7 +127,7 @@ export function wireStage(k, el, S, ctx) { const w = STAGES[k] && STAGES[k].wire
126
127
 
127
128
  /* ── html, pure: each builder takes the sheet and esc ──────────────────────────────────────────────────────────────── */
128
129
 
129
- const ICP = { cal: '<rect x="4" y="5" width="16" height="15" rx="3"/><path d="M4 10h16M9 3v4M15 3v4"/>', lay: '<rect x="4" y="4" width="16" height="16" rx="3"/><path d="M4 10h16M10 10v10"/>', notes: '<path d="M7 3h7l4 4v14H7zM14 3v4h4M10 12h5M10 16h4"/>', prev: '<path d="M15 6l-6 6 6 6"/>', next: '<path d="M9 6l6 6-6 6"/>', check: '<path d="M5 12.5l4.5 4.5L19 7.5"/>', plus: '<path d="M12 5v14M5 12h14"/>', todo: '<circle cx="12" cy="12" r="8"/>' };
130
+ const ICP = { cal: '<rect x="4" y="5" width="16" height="15" rx="3"/><path d="M4 10h16M9 3v4M15 3v4"/>', lay: '<rect x="4" y="4" width="16" height="16" rx="3"/><path d="M4 10h16M10 10v10"/>', notes: '<path d="M7 3h7l4 4v14H7zM14 3v4h4M10 12h5M10 16h4"/>', prev: '<path d="M15 6l-6 6 6 6"/>', next: '<path d="M9 6l6 6-6 6"/>', check: '<path d="M5 12.5l4.5 4.5L19 7.5"/>', spark: '<path d="M12 3l1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z"/>', plus: '<path d="M12 5v14M5 12h14"/>', todo: '<circle cx="12" cy="12" r="8"/>' };
130
131
  const ic = (k) => `<svg class="i" viewBox="0 0 24 24">${ICP[k]}</svg>`;
131
132
 
132
133
  /** The Before, During and After switch. */
@@ -143,6 +144,30 @@ export function seriesHtml(S, esc) {
143
144
  return '';
144
145
  }
145
146
 
147
+ /** Before, the meeting prep: the brief GET /api/meeting-focus answers (lib/calendar-layers.js briefOf, the console Calendar card's brief).
148
+ * In short, What matters today (To settle in planning for a planning meeting), Since the last one with its decisions and From last
149
+ * time steps, To be ready, and the meeting's links. `B` is that brief, or null (the note tab, or a read that failed): then nothing.
150
+ * When the note already carries in the meeting before (beforeHtml), Since the last one is left to it; when the note's context has
151
+ * To be ready, it is not repeated. */
152
+ export function prepHtml(B, S, esc) {
153
+ if (!B) return '';
154
+ const h = [], li = (tag, text, meta, tone) => `<li class="vm-bi"><span class="vm-tg${tone ? ' ' + tone : ''}">${esc(tag)}</span><span>${esc(text)}</span>${meta ? `<small>${esc(meta)}</small>` : ''}</li>`;
155
+ if (B.gist && B.gist.length) h.push(`<h5>In short</h5><p>${esc(B.gist.join(' '))}</p>`);
156
+ if (B.matters && B.matters.length) h.push(`<h5>${B.planning ? 'To settle in planning' : 'What matters today'}</h5><ul class="vm-bl">${B.matters.map((x) => li(x.tag || 'Item', x.text, x.meta, x.tone === 'bad' || x.tone === 'warn' ? 'warn' : '')).join('')}</ul>`);
157
+ const L = B.last;
158
+ if (L && !(S && S.carriedIn)) {
159
+ const day = dayLabel(L.at);
160
+ const body = L.private ? `<p class="note">That note is private, so only its title shows: ${esc(L.title || 'Untitled note')}.</p>`
161
+ : (L.overview ? `<p>${esc(L.overview)}</p>` : '<p class="note">That note has no summary yet.</p>')
162
+ + ((L.decisions || []).length || (L.actions || []).length ? `<ul class="vm-bl">${(L.decisions || []).map((t) => li('Decision', t)).join('')}${(L.actions || []).map((a) => li('From last time', a.text, [a.owner, a.due && 'due ' + a.due].filter(Boolean).join(' · '), 'warn')).join('')}</ul>` : '');
163
+ h.push(`<h5>Since the last one${day ? ` <small>${esc(day)}</small>` : ''}</h5>${body}${B.earlier > 1 ? `<p class="note">${B.earlier} earlier notes of this meeting.</p>` : ''}`);
164
+ }
165
+ if (B.prep && !(S && S.context && S.context.prep)) h.push(`<h5>To be ready</h5><p>${esc(B.prep)}</p>`);
166
+ const links = [...(B.links || []).filter((l) => l && /^https?:\/\//i.test(l.url)).map((l) => ({ label: l.label, url: l.url })), ...(B.refs || []).map((r) => ({ label: r.label + (r.source ? ' · ' + r.source : ''), url: /^https?:\/\//i.test(r.link || '') ? r.link : '' }))];
167
+ if (links.length) h.push(`<h5>Links</h5><div class="vm-row">${links.map((x) => x.url ? `<a class="vm-pill" href="${esc(x.url)}" target="_blank" rel="noopener noreferrer">${esc(x.label)}</a>` : `<span class="vm-pill">${esc(x.label)}</span>`).join('')}</div>`);
168
+ return h.length ? `<section class="vm-bx vm-prep" data-vm-prep>${'<div class="vm-cap">' + ic('spark') + 'Prepared for this meeting</div>'}${h.join('')}</section>` : '';
169
+ }
170
+
146
171
  /** Before, from the note: the meeting context it kept and what was carried in from the meeting before. */
147
172
  export function beforeHtml(S, esc) {
148
173
  if (!S) return '';