create-pmos 0.559.0 → 0.560.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.559.0",
3
+ "version": "0.560.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": {
@@ -33,6 +33,19 @@
33
33
  "audit"
34
34
  ],
35
35
  "pmosChanges": [
36
+ {
37
+ "v": "0.560.0",
38
+ "at": "2026-11-11T06:57:01.192Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1290,
43
+ "t": "Fix three flaky suites from batch 29",
44
+ "s": "Fix three flaky suites from batch 29",
45
+ "k": "fix"
46
+ }
47
+ ]
48
+ },
36
49
  {
37
50
  "v": "0.559.0",
38
51
  "at": "2026-11-11T02:38:19.186Z",
@@ -291,31 +304,6 @@
291
304
  "k": "x"
292
305
  }
293
306
  ]
294
- },
295
- {
296
- "v": "0.540.0",
297
- "at": "2026-11-08T04:40:52.541Z",
298
- "f": 4,
299
- "prs": [
300
- {
301
- "n": 1266,
302
- "t": "Workflows folds into Settings, New workflow starts the normal chat (UI grill U1)",
303
- "s": "Workflows folds into Settings, New workflow starts the normal chat (UI grill U1)",
304
- "k": "new"
305
- },
306
- {
307
- "n": 1267,
308
- "t": "Pmos today ranks with Your move's rankMove (UI grill item 9)",
309
- "s": "Pmos today ranks with Your move's rankMove (UI grill item 9)",
310
- "k": "new"
311
- },
312
- {
313
- "n": 1268,
314
- "t": "Lean start-up for background runs and a per-run token log",
315
- "s": "Lean start-up for background runs and a per-run token log",
316
- "k": "new"
317
- }
318
- ]
319
307
  }
320
308
  ]
321
309
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@93edd06a
1
+ kernel-source: pmos@d9832cf6
2
2
  assembled: 2026-11-11
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-11-11T02:38:15Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-11T06:56:58Z"}
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-11-11T02:38:15Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-11T06:56:58Z"}
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-11-11T02:38:15Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-11T06:56:58Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -41,6 +41,10 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
41
41
  browser = await chromium.launch({ executablePath: exe });
42
42
  const W = F.world();
43
43
  const tap = (p, sel) => p.$eval('#czViewer ' + sel, (b) => b.click());
44
+ // a press that waits for its button: after a press the card reads the meeting again and draws itself anew, and a button
45
+ // pressed in that moment is not there yet (R2 below pressed Record and "I told them, start" while that draw was still coming)
46
+ const pressWhenThere = async (p, sel) => { if (!(await until(() => p.$eval('#czViewer ' + sel, (b) => { if (b.disabled) return false; b.click(); return true; }).catch(() => false), 10000))) throw new Error('no button ' + sel); };
47
+ const vmReads = (S) => S.gets.filter((g) => g.startsWith('/api/viewer-meeting?')).length;
44
48
  const text = (p) => p.evaluate(() => (document.querySelector('#czViewer') || {}).innerText || '');
45
49
  const notesPosts = (S) => S.posts.filter((x) => x.path.startsWith('/api/notes/')).map((x) => x.path.replace('/api/notes/', ''));
46
50
  // Viewer shell A: the state is the summary's line, "Recording · 01:05" or "Paused at 01:05"
@@ -107,12 +111,16 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
107
111
  const E = await open(LIVE_URL);
108
112
  await E.page.route('**/api/notes/new', (r) => json(r, { ok: false, error: 'the notes folder is read-only' }, 409));
109
113
  await until(() => E.page.evaluate(() => !!document.querySelector('#czViewer [data-a="record"]')), 15000);
110
- await tap(E.page, '[data-a="record"]'); await tap(E.page, '[data-a="recgo"]');
114
+ await pressWhenThere(E.page, '[data-a="record"]');
115
+ const vm0 = vmReads(E.S);
116
+ await pressWhenThere(E.page, '[data-a="recgo"]');
111
117
  ok('R2 a refused note shows the server\'s reason', await until(async () => /the notes folder is read-only/.test(await text(E.page))));
118
+ // the refused press reads the meeting again and draws the card anew: the next press waits for that read
119
+ await until(() => vmReads(E.S) > vm0);
112
120
  await E.page.unroute('**/api/notes/new');
113
121
  await E.page.route(/\/api\/notes\/record$/, (r) => json(r, { ok: false, error: 'the microphone is in use' }, 409));
114
- await tap(E.page, '[data-a="record"]'); await tap(E.page, '[data-a="recgo"]');
115
- ok('R2 a refused listen shows the reason and holds nothing', await until(async () => /the microphone is in use/.test(await text(E.page))) && await E.page.evaluate(() => !window.__premiumHolding));
122
+ await pressWhenThere(E.page, '[data-a="record"]'); await pressWhenThere(E.page, '[data-a="recgo"]');
123
+ ok('R2 a refused listen shows the reason and holds nothing', await until(async () => /the microphone is in use/.test(await text(E.page))) && await E.page.evaluate(() => !window.__premiumHolding), JSON.stringify({ posts: notesPosts(E.S), holding: await E.page.evaluate(() => window.__premiumHolding || null), text: (await text(E.page)).slice(0, 300) }));
116
124
  await E.ctx.close();
117
125
  const O = await open(LIVE_URL, { noLive: false });
118
126
  await until(() => O.page.evaluate(() => !!document.querySelector('#czViewer .vz-mtg')), 15000);
@@ -130,9 +138,13 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
130
138
  ok('R5 Focus: Now on the topic, topic 2 of 3, and the agenda with the minutes used', await until(async () => { const t = await text(q); return /Now on: The Issue button, topic 2 of 3\./.test(t) && /One toolbar row/.test(t) && /Phone layout/.test(t) && /\d+ of 10/.test(t) && !(await q.$('#czViewer [data-cz-placeholder]')); }), (await text(q)).slice(0, 600));
131
139
  const f0 = B.S.gets.filter((g) => g.startsWith('/api/meeting-focus')).length;
132
140
  ok('R5 Focus reads again while the meeting is live', await until(() => B.S.gets.filter((g) => g.startsWith('/api/meeting-focus')).length >= f0 + 2, 12000));
133
- await tap(q, '[data-a="topic"]');
134
- await until(() => q.evaluate(() => !!document.querySelector('#czViewer [data-a="topicgo"]')));
135
- await q.$eval('#czViewer [data-a="topicgo"][data-i="2"]', (b) => b.click());
141
+ // Focus reads again every few seconds while the meeting is live and the card is drawn anew: Change topic opens the list again
142
+ // when that draw took it away before the press reached it
143
+ await until(async () => {
144
+ if (!(await q.$('#czViewer [data-a="topicgo"][data-i="2"]'))) { await tap(q, '[data-a="topic"]').catch(() => {}); await until(() => q.$('#czViewer [data-a="topicgo"][data-i="2"]'), 2000); }
145
+ if (!(await q.$eval('#czViewer [data-a="topicgo"][data-i="2"]', (b) => { b.click(); return true; }).catch(() => false))) return false;
146
+ return until(() => B.S.posts.some((x) => x.path === '/api/meeting-focus/topic'), 2000);
147
+ }, 12000);
136
148
  const tp = await until(() => B.S.posts.find((x) => x.path === '/api/meeting-focus/topic'));
137
149
  ok('R5 Change topic posts one set for that topic on this meeting', tp && tp.body.event === 'ev-live' && tp.body.action === 'set' && tp.body.topic === 'Phone layout', JSON.stringify(B.S.posts) + (await text(q)).slice(0, 300));
138
150
  /* R6 a refused read */
@@ -1,4 +1,17 @@
1
1
  [
2
+ {
3
+ "v": "0.560.0",
4
+ "at": "2026-11-11T06:57:01.192Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1290,
9
+ "t": "Fix three flaky suites from batch 29",
10
+ "s": "Fix three flaky suites from batch 29",
11
+ "k": "fix"
12
+ }
13
+ ]
14
+ },
2
15
  {
3
16
  "v": "0.559.0",
4
17
  "at": "2026-11-11T02:38:19.186Z",
@@ -6,6 +6,7 @@
6
6
  * mark(runtimeDir, id, { source, seq, now }) the chunk is written: a second copy of it is a duplicate
7
7
  * setCut(runtimeDir, id, { source, sample }) · untranscribed(runtimeDir, id, { source, before }) → { from, to } | null
8
8
  * the live transcription's progress, so a restart transcribes what it had buffered
9
+ * uncovered({ from, to }, lines) → [{ from, to }] PURE: the parts of that stretch no written line holds yet
9
10
  * close(runtimeDir, id) Pause or Stop: the capture ends, and the next Listen starts a new one
10
11
  * tokened(runtimeDir, id) → true when the live capture has sent a chunk with its token
11
12
  * owns(runtimeDir, id, { token }) → { ok, base_ms } | { ok: false, status: 409, error } is this the live, not-closed capture's token
@@ -113,6 +114,19 @@ function untranscribed(runtimeDir, id, { source, before } = {}) {
113
114
  const to = Math.min(before, (s.fed || {})[source] || 0);
114
115
  return to > from ? { from, to } : null;
115
116
  }
117
+ /** PURE. The parts of a stretch [from, to) (16 kHz samples) that no written line covers. lines: [{ t, t_end }] in meeting ms, the
118
+ * source's own transcript lines. A server stopped between writing a cut's line and saving the cut's progress (setCut) left that
119
+ * line inside the stretch untranscribed() hands back; transcribing it again wrote its words twice (notes-duplication.test.js,
120
+ * restart). So only what no line holds yet is transcribed again. A line with no end is taken to end where it starts. */
121
+ function uncovered({ from, to } = {}, lines = []) {
122
+ const ms2s = (ms) => Math.round(ms * 16);
123
+ const spans = (lines || []).filter((l) => l && Number.isFinite(l.t)).map((l) => [ms2s(l.t), ms2s(Number.isFinite(l.t_end) ? l.t_end : l.t)])
124
+ .filter(([a, b]) => b > a && b > from && a < to).sort((x, y) => x[0] - y[0]);
125
+ const out = []; let at = from;
126
+ for (const [a, b] of spans) { if (a > at) out.push({ from: at, to: Math.min(a, to) }); at = Math.max(at, b); if (at >= to) break; }
127
+ if (at < to) out.push({ from: at, to });
128
+ return out.filter((x) => x.to > x.from);
129
+ }
116
130
  /** Does this token belong to the note's live capture, one that was not closed by Pause or Stop? Changes nothing. */
117
131
  function owns(runtimeDir, id, { token } = {}) {
118
132
  const s = load(runtimeDir, id);
@@ -133,4 +147,4 @@ function remove(runtimeDir, id) {
133
147
  try { fs.unlinkSync(f); } catch { /* none */ }
134
148
  }
135
149
 
136
- module.exports = { start, busy, check, mark, setCut, untranscribed, close, tokened, owns, remove, LIVE_MS };
150
+ module.exports = { start, busy, check, mark, setCut, untranscribed, uncovered, close, tokened, owns, remove, LIVE_MS };
@@ -1004,9 +1004,16 @@ async function handle(req, res, url, ctx) {
1004
1004
  fedHere.add(id + '|' + source + '|' + body.cap);
1005
1005
  if (fedHere.size > 400) fedHere.delete(fedHere.values().next().value);
1006
1006
  // after a restart, what this source said since its last cut was written but never transcribed: transcribe it first
1007
+ // A line written just before the restart, whose cut progress was not saved yet, is in that stretch too: only the parts no
1008
+ // line of this source holds are transcribed again, so its words are not written twice.
1007
1009
  const gap = notesCapture.untranscribed(dir, id, { source, before: sample });
1008
- const back = gap ? notesAudio.readSource(dir, id, source, gap.from, gap.to) : null;
1009
- if (back && back.pcm.length) tr.push({ id, source, pcm: back.pcm, t: (back.from / whisper.RATE) * 1000, exact: true });
1010
+ const mine = gap ? ((notes.read(dir, id).note || {}).transcript || []).filter((x) => x && x.source === source) : [];
1011
+ // A part a written line follows is cut on its own (final); the last part runs on into this chunk, as the whole stretch did.
1012
+ const parts = gap ? notesCapture.uncovered(gap, mine) : [];
1013
+ parts.forEach((part, k) => {
1014
+ const back = notesAudio.readSource(dir, id, source, part.from, part.to);
1015
+ if (back && back.pcm.length) tr.push({ id, source, pcm: back.pcm, t: (back.from / whisper.RATE) * 1000, exact: true, final: part.to < gap.to || k < parts.length - 1 });
1016
+ });
1010
1017
  }
1011
1018
  const pushed = tr.push({ id, source, pcm, t, final: body.final === true, exact: !!cap });
1012
1019
  if (cap) notesCapture.mark(dir, id, { source, seq: body.seq, end: sample + pcm.length / 2 });
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.559.0",
3
+ "version": "0.560.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.559.0",
9
+ "version": "0.560.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@anthropic-ai/sdk": "^1.3.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.559.0",
3
+ "version": "0.560.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",