create-pmos 0.333.0 → 0.334.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.333.0",
3
+ "version": "0.334.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": {
@@ -32,6 +32,18 @@
32
32
  "audit"
33
33
  ],
34
34
  "pmosChanges": [
35
+ {
36
+ "v": "0.334.0",
37
+ "at": "2026-10-20T01:24:31.835Z",
38
+ "f": 2,
39
+ "prs": [
40
+ {
41
+ "n": 922,
42
+ "t": "The meeting sheet's During stage is the live capture while the Briefing records",
43
+ "s": "On the Briefing, while a note records or is paused, the meeting sheet's During part is the live capture itself."
44
+ }
45
+ ]
46
+ },
35
47
  {
36
48
  "v": "0.333.0",
37
49
  "at": "2026-10-20T01:10:53.373Z",
@@ -299,18 +311,6 @@
299
311
  "s": "One full-width Work queue card under the add line, styled like the mockup's tray: one pill row of tabs (Today, Inbox, Agents, Upcoming, Someday, Kept, Done) with counts, rows in two columns, and arrow keys between tabs."
300
312
  }
301
313
  ]
302
- },
303
- {
304
- "v": "0.314.0",
305
- "at": "2026-10-19T13:42:07.408Z",
306
- "f": 2,
307
- "prs": [
308
- {
309
- "n": 891,
310
- "t": "Board measures on Insights, with targets the Board draws",
311
- "s": "Insights has a Board measures card with the same four tiles, drawn by the same code, over 8, 26 or 52 weeks."
312
- }
313
- ]
314
314
  }
315
315
  ]
316
316
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@aa6021c2
1
+ kernel-source: pmos@07d466e5
2
2
  assembled: 2026-10-20
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-20T01:10:50Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-20T01:24:29Z"}
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-20T01:10:50Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-20T01:24:29Z"}
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-20T01:10:50Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-20T01:24:29Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,16 @@
1
1
  [
2
+ {
3
+ "v": "0.334.0",
4
+ "at": "2026-10-20T01:24:31.835Z",
5
+ "f": 2,
6
+ "prs": [
7
+ {
8
+ "n": 922,
9
+ "t": "The meeting sheet's During stage is the live capture while the Briefing records",
10
+ "s": "On the Briefing, while a note records or is paused, the meeting sheet's During part is the live capture itself."
11
+ }
12
+ ]
13
+ },
2
14
  {
3
15
  "v": "0.333.0",
4
16
  "at": "2026-10-20T01:10:53.373Z",
@@ -359,7 +359,7 @@ A calendar meeting's panel follows the mockup's Design review panel: the title w
359
359
  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:
360
360
 
361
361
  - **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. The prep is read once when the detail opens; that read is not a Focus read, and Focus still reads nothing until you open 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.
362
- - **During**: the transcript the note holds, with times.
362
+ - **During**: the transcript the note holds, with times. On the Briefing, while the note records or is paused there, During is the live capture instead, the same as the **Live notes** tab: Recording or Paused, **Highlight**, **Pause** or **Resume**, **Stop**, **Private**, **Your notes**, the highlights and the live transcript.
363
363
  - **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.
364
364
 
365
365
  The switch opens on During while the note records, on After once there are notes, and on Before otherwise. A part with no record behind it says so. A private note shows none of its notes.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.333.0",
3
+ "version": "0.334.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.333.0",
9
+ "version": "0.334.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.333.0",
3
+ "version": "0.334.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",
@@ -141,13 +141,18 @@ const RECORDER = () => {
141
141
  const lv = await until(async () => { const t = await pane(p, 'rec:n1'); return /We plan eight people/.test(t) ? t : ''; });
142
142
  ok('R3 the tab shows Recording with the clock, Highlight, Pause, Stop, Focus and Private', /Recording/.test(lv) && /1:0\d/.test(lv) && /Highlight/.test(lv) && /Pause/.test(lv) && /Stop/.test(lv) && /Focus/.test(lv) && /Private/.test(lv), lv.slice(0, 300));
143
143
  ok('R3 the transcript names who spoke, and the highlight comes from the note', /You/.test(lv) && /Dara/.test(lv) && /Plan with eight people/.test(lv));
144
- await p.fill('#dOut [data-rv-mine]', 'Ask Sam about the meter'); await p.click('#dOut .rvt');
144
+ await p.fill('#dOut .obody.vw[data-vw="rec:n1"] [data-rv-mine]', 'Ask Sam about the meter'); await p.click('#dOut .rvt');
145
145
  ok('R3 your notes are saved through POST /api/notes/save when you leave the box', await until(() => A.savePosts.length === 1) && A.savePosts[0].id === 'n1' && A.savePosts[0].body === 'Ask Sam about the meter', JSON.stringify(A.savePosts));
146
- await p.click('#dOut [data-rv="private"]');
146
+ await p.click('#dOut .obody.vw:not([hidden]) [data-rv="private"]');
147
147
  ok('R3 Private asks first, saying what it deletes, and sends nothing yet', await until(() => p.evaluate(() => /deleted now/.test((document.querySelector('#dOut .vcf') || {}).textContent || ''))) && A.privPosts.length === 0);
148
148
  await p.click('#dOut .vcf [data-a="0"]');
149
149
  ok('R3 Cancel keeps the note as it was', await until(() => p.evaluate(() => !document.querySelector('#dOut .vcf'))) && A.privPosts.length === 0);
150
150
 
151
+ await p.evaluate(() => document.querySelector('#vTabs .vtab').click());
152
+ const dur = await until(() => p.evaluate(() => { const b = document.querySelector('#oMain .vm-body[data-part="during"]'); return b && !b.hidden && b.querySelector('[data-rv-stage] .rvh') ? b.textContent : ''; }));
153
+ ok('R3 the meeting detail opens on During, and During is the live capture: Recording, Highlight, Pause, Stop and your notes', /Recording/.test(dur) && /Highlight/.test(dur) && /Pause/.test(dur) && /Stop/.test(dur) && /Your notes/.test(dur) && await p.evaluate(() => !document.querySelector('#oMain .rvt')), dur.slice(0, 200));
154
+ ok('R3 the During stage and the Live notes tab each label their own notes box', await p.evaluate(() => { const ids = [...document.querySelectorAll('#dOut [data-rv-mine]')].map((t) => t.id); return ids.length === 2 && ids[0] !== ids[1] && ids.every((i) => !!document.querySelector(`label[for="${i}"]`)); }));
155
+
151
156
  /* R2 the chip on the Briefing (the dialog sits over it, so it is closed first) */
152
157
  await p.keyboard.press('Escape'); await until(() => p.evaluate(() => !document.querySelector('#dlg').classList.contains('on')));
153
158
  const c1 = await until(async () => { const t = await chip(p); return t && /Recording Live review/.test(t) ? t : ''; });
@@ -167,14 +172,14 @@ const RECORDER = () => {
167
172
  ok('R4 Focus stops reading while its tab is hidden', A.focusGets <= g1 + 1, String(A.focusGets - g1));
168
173
 
169
174
  /* R3 Pause, Resume, Stop from the tab */
170
- await p.click('#dOut [data-rv="pause"]');
175
+ await p.click('#dOut .obody.vw:not([hidden]) [data-rv="pause"]');
171
176
  ok('R3 Pause pauses through the route and the tab says Paused with Resume', await until(() => A.pausePosts.length === 1) && await until(async () => /Paused/.test(await pane(p, 'rec:n1')) && /Resume/.test(await pane(p, 'rec:n1'))));
172
- await p.click('#dOut [data-rv="resume"]');
177
+ await p.click('#dOut .obody.vw:not([hidden]) [data-rv="resume"]');
173
178
  ok('R3 Resume listens again on the same note without asking twice', await until(() => A.recPosts.length === 2) && A.newPosts.length === 1);
174
179
  await until(async () => /Recording/.test(await pane(p, 'rec:n1')));
175
- await p.click('#dOut [data-rv="stop"]');
180
+ await p.click('#dOut .obody.vw:not([hidden]) [data-rv="stop"]');
176
181
  ok('R3 Stop asks first and says a stopped meeting cannot be resumed', await until(async () => /cannot be resumed/.test(await pane(p, 'rec:n1'))) && A.stopPosts.length === 0);
177
- await p.click('#dOut [data-rv="stopgo"]');
182
+ await p.click('#dOut .obody.vw:not([hidden]) [data-rv="stopgo"]');
178
183
  ok('R3 Stop for good ends it through the route, and the Record control comes back', await until(() => A.stopPosts.length === 1) && await until(() => p.evaluate(() => !document.querySelector('#recCtl').hidden)));
179
184
  ok('R5 no page error on the Briefing', A.errors.length === 0, A.errors.join(' | '));
180
185
  await A.ctx.close();
@@ -9,6 +9,7 @@
9
9
  * /api/notes/private. The pure half (menuView, duringView, chipActs, focusPath) takes the routes' answers, so a test reads it without a DOM. */
10
10
  import { vwOpen, vwStyle, vwConfirm, vwState } from './premium-viewer.js';
11
11
  import { recordable, focusView, mmss, CONSENT_LINE, STOP_LINE, RECORD_LINE, FOCUS_LINE } from './premium-meeting.js';
12
+ import { setStage, duringHtml } from './premium-vw-meet.js';
12
13
 
13
14
  const clip = (s, n) => { const t = String(s == null ? '' : s).replace(/\s+/g, ' ').trim(); return t.length > n ? t.slice(0, n - 1).trimEnd() + '…' : t; };
14
15
  const esc = (s) => String(s == null ? '' : s).replace(/[&<>"]/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;' }[c]));
@@ -94,9 +95,11 @@ export async function openLive(id, d) {
94
95
  return vwOpen({ id: 'rec:' + id, title: 'Live notes', icon: 'mic', render: (el) => renderDuring(el, id, d) });
95
96
  }
96
97
 
97
- /** The During capture of one note. The notes view (thread "Viewer: notes") calls this for its During part; openLive puts it in a tab of its own. */
98
- export function renderDuring(el, id, d) {
98
+ let mineSeq = 0, DEPS = null; // DEPS: the Briefing's { openDlg, toast, pmGet, pmPost }, kept by mountRecord for the During stage
99
+ /** The During capture of one note: in the meeting sheet's During stage (stage: true, the sheet's head already names the note) and in the Live notes tab openLive opens. */
100
+ export function renderDuring(el, id, d, { stage = false } = {}) {
99
101
  vwStyle('rec');
102
+ const mineId = 'rvMine' + (++mineSeq);
100
103
  const ui = { v: null, ask: '', draft: null, saving: false };
101
104
  let timer = null;
102
105
  const read = async () => {
@@ -119,18 +122,18 @@ export function renderDuring(el, id, d) {
119
122
  const ask = ui.ask === 'stop' ? `<div class="rvask" role="alert"><p><b>Stop “${esc(clip(v.title, 60))}” for good?</b> ${esc(STOP_LINE)}</p><div>${b('stopno', 'Cancel')}${v.mode === 'recording' ? b('pause', 'Pause instead') : ''}${b('stopgo', 'Stop for good', '', 'cta')}</div></div>` : '';
120
123
  const opts = v.mode === 'ended' ? '' : `<div class="rvopts">${v.event ? b('fv', 'Focus', 'focus') : ''}<button type="button" class="rvb" data-rv="private" aria-pressed="${v.private}" title="${esc(PRIVATE_LINE)}">${ic('lock')}Private</button>${v.shots ? `<span class="note">${v.shots} screen ${v.shots === 1 ? 'shot' : 'shots'} kept</span>` : ''}</div>`;
121
124
  const body = ui.draft == null ? v.body : ui.draft;
122
- const mine = `<section class="rvsec"><label class="label" for="rvMine">Your notes</label><textarea id="rvMine" class="rvta" rows="4" placeholder="Type a line. Each line keeps the time it was written." data-rv-mine>${esc(body)}</textarea><p class="note" data-rv-saved>${ui.saving ? 'Saving.' : 'Saved on this machine when you leave the box.'}</p></section>`;
125
+ const mine = `<section class="rvsec"><label class="label" for="${mineId}">Your notes</label><textarea id="${mineId}" class="rvta" rows="4" placeholder="Type a line. Each line keeps the time it was written." data-rv-mine>${esc(body)}</textarea><p class="note" data-rv-saved>${ui.saving ? 'Saving.' : 'Saved on this machine when you leave the box.'}</p></section>`;
123
126
  const hls = v.highlights.length ? `<section class="rvsec"><span class="label">Highlights</span><ul class="rvhl">${v.highlights.map((h) => `<li><time>${esc(h.time)}</time><span>${esc(h.text)}</span>${h.cat ? `<em>${esc(h.cat)}</em>` : ''}</li>`).join('')}</ul></section>` : '';
124
127
  const tr = v.private ? '<p class="note">This note is private, so it keeps no transcript.</p>' : v.lines.length ? `<div class="rvtr" data-rv-tr>${v.lines.map((l, i) => `<p${i === v.lines.length - 1 ? ' class="cur"' : ''}><time>${esc(l.time)}</time><b>${esc(l.who)}</b><span>${esc(l.text)}</span></p>`).join('')}</div>` : `<p class="note">${v.mode === 'recording' ? 'Nothing has been heard yet.' : 'The transcript starts when the note records.'}</p>`;
125
128
  const keep = el.querySelector('[data-rv-mine]') === document.activeElement;
126
- el.innerHTML = `<article class="paper doc rvw"><h3 class="rvt">${esc(v.title)}</h3>${head}${ask}${opts}${mine}${hls}<section class="rvsec"><span class="label">${v.mode === 'recording' ? 'Live transcript' : 'Transcript'}</span>${tr}</section></article>`;
129
+ el.innerHTML = `<article class="paper doc rvw">${stage ? '' : `<h3 class="rvt">${esc(v.title)}</h3>`}${head}${ask}${opts}${mine}${hls}<section class="rvsec"><span class="label">${v.mode === 'recording' ? 'Live transcript' : 'Transcript'}</span>${tr}</section></article>`;
127
130
  if (keep) { const t = el.querySelector('[data-rv-mine]'); t.focus(); t.setSelectionRange(t.value.length, t.value.length); }
128
131
  const t = el.querySelector('[data-rv-tr]'); if (t) t.scrollTop = t.scrollHeight;
129
132
  };
130
133
  const loop = async () => {
131
134
  clearTimeout(timer);
132
135
  if (!el.isConnected) return;
133
- if (!el.hidden) { await read(); if (!el.isConnected) return; if (el.querySelector('[data-rv-mine]') !== document.activeElement || !el.querySelector('.rvh')) draw(); }
136
+ if (!ui.v || !el.closest('[hidden]')) { await read(); if (!el.isConnected) return; if (el.querySelector('[data-rv-mine]') !== document.activeElement || !el.querySelector('.rvh')) draw(); }
134
137
  timer = setTimeout(loop, 3000);
135
138
  };
136
139
  const tick = setInterval(() => { if (!el.isConnected) { clearInterval(tick); return; } const c = el.querySelector('[data-rv-clock]'); if (c) c.textContent = clock(); }, 1000);
@@ -217,6 +220,7 @@ function renderFocus(el, id, d) {
217
220
  /** The Record control on the Briefing's top bar: Record (a new note now) and an arrow with today's meetings. Each start asks "Tell everyone first" once. */
218
221
  export function mountRecord(here, d) {
219
222
  if (here !== 'brief' || $('#recCtl')) return;
223
+ DEPS = d;
220
224
  const at = $('.tools-top'); if (!at) return;
221
225
  vwStyle('rec');
222
226
  const w = document.createElement('div'); w.id = 'recCtl'; w.className = 'recctl';
@@ -255,3 +259,11 @@ export function mountRecord(here, d) {
255
259
  document.addEventListener('click', (e) => { if (!e.target.closest('#recCtl')) close(); });
256
260
  addEventListener('premium-rec', draw); draw();
257
261
  }
262
+
263
+ /* The meeting sheet's During stage (premium-vw-meet.js setStage). On the Briefing, which holds the recorder, a note that records or is
264
+ * paused gets the live capture with its presses; anywhere else, and for a note that is not recording, the sheet's own transcript. */
265
+ const liveNote = (S) => !!(DEPS && S && (S.state === 'recording' || S.state === 'paused'));
266
+ setStage('during', {
267
+ html: (S, x) => (liveNote(S) ? '<div data-rv-stage></div>' : duringHtml(S, x.esc)),
268
+ wire: (el, S) => { const host = el.querySelector('[data-rv-stage]'); if (host && liveNote(S)) renderDuring(host, S.id, DEPS, { stage: true }); },
269
+ });