create-pmos 0.458.0 → 0.459.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.458.0",
3
+ "version": "0.459.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,19 @@
32
32
  "audit"
33
33
  ],
34
34
  "pmosChanges": [
35
+ {
36
+ "v": "0.459.0",
37
+ "at": "2026-10-30T09:40:09.558Z",
38
+ "f": 3,
39
+ "prs": [
40
+ {
41
+ "n": 1109,
42
+ "t": "Refresh saved task notes on reopen",
43
+ "s": "Reopening a task after its notes save finishes shows the saved notes, including when the task was opened while the save was pending.",
44
+ "k": "fix"
45
+ }
46
+ ]
47
+ },
35
48
  {
36
49
  "v": "0.458.0",
37
50
  "at": "2026-10-30T03:22:27.686Z",
@@ -284,19 +297,6 @@
284
297
  "k": "fix"
285
298
  }
286
299
  ]
287
- },
288
- {
289
- "v": "0.439.0",
290
- "at": "2026-10-28T08:36:52.065Z",
291
- "f": 3,
292
- "prs": [
293
- {
294
- "n": 1083,
295
- "t": "Meeting notes cover the whole meeting when the live transcript stops early",
296
- "s": "Meeting notes cover the whole meeting when the live transcript stops early",
297
- "k": "fix"
298
- }
299
- ]
300
300
  }
301
301
  ]
302
302
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@753d951a
1
+ kernel-source: pmos@c37b3d98
2
2
  assembled: 2026-10-30
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-30T03:22:24Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-30T09:40:06Z"}
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-30T03:22:24Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-30T09:40:06Z"}
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-30T03:22:24Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-30T09:40:06Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,17 @@
1
1
  [
2
+ {
3
+ "v": "0.459.0",
4
+ "at": "2026-10-30T09:40:09.558Z",
5
+ "f": 3,
6
+ "prs": [
7
+ {
8
+ "n": 1109,
9
+ "t": "Refresh saved task notes on reopen",
10
+ "s": "Reopening a task after its notes save finishes shows the saved notes, including when the task was opened while the save was pending.",
11
+ "k": "fix"
12
+ }
13
+ ]
14
+ },
2
15
  {
3
16
  "v": "0.458.0",
4
17
  "at": "2026-10-30T03:22:27.686Z",
@@ -23,6 +23,8 @@ Press the arrow on the telemetry card to hide all three parts. A banner stays: t
23
23
 
24
24
  Tasks has no **Full width** icon: use the split panel to make the Viewer wider. On a phone, Tasks is a list only. The workspace keeps a Timeline or Kanban view that you chose on a larger screen, and shows it again there.
25
25
 
26
+ Open a task to edit its Notes. Leave the box or press Ctrl/Cmd+Enter to save. Closing the viewer also saves the pending edit. After the save succeeds, reopening the task reads the saved notes, even if you opened it while the save was pending. The save toast offers Undo.
27
+
26
28
  ### Scan repository
27
29
 
28
30
  The workspace reads the stage, the files and the breakdown of each initiative from the repository. It reads them again when an initiative record changes, and at the latest after ten minutes. A change that does not touch a record, for example a new PRD or a pull request merged on the trunk, can show late.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.458.0",
3
+ "version": "0.459.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.458.0",
9
+ "version": "0.459.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.458.0",
3
+ "version": "0.459.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",
@@ -244,6 +244,8 @@ export function mountCard(el, t, h) {
244
244
  apply(patch, patch.initiative && h.iniTitleOf ? h.iniTitleOf(patch.initiative) : t.iniTitle); st.msg = ''; draw(); if (h.changed) h.changed(t);
245
245
  const r = await h.save(patch).catch(() => null);
246
246
  if (!r || r.ok === false) { Object.assign(t, before); st.msg = (r && r.error) || 'Nothing was changed.'; draw(); if (h.changed) h.changed(t); return; }
247
+ // A viewer reopened during the write may have cached the old model. Invalidate again after persistence, even if this card closed.
248
+ if (h.changed) h.changed(t);
247
249
  const back = {}; for (const k of Object.keys(patch)) back[k] = k === 'initiative' ? before.ini : before[k] == null ? '' : before[k];
248
250
  h.toast(word(kind), async () => {
249
251
  const u = await h.save(back).catch(() => null);
@@ -158,6 +158,10 @@ async function pure() {
158
158
  });
159
159
  for (const p of ['tasks/state', 'tasks/edit', 'tickets/note']) await page.route('**/api/boards/' + p, (r) => {
160
160
  const b = JSON.parse(r.request().postData() || '{}'); posts.push({ path: '/api/boards/' + p, body: b });
161
+ if (p === 'tasks/edit' && typeof b.notes === 'string') {
162
+ const row = model.tasks.rows.find((x) => x.uid === b.task);
163
+ if (row) row.notes = b.notes;
164
+ }
161
165
  return json(r, { ok: true, from: {}, item: {} });
162
166
  });
163
167
  await page.goto(BASE + '/premium.html?ini=self-serve-v2&ws=w1&board=w1&theme=' + theme);
@@ -238,7 +242,7 @@ async function pure() {
238
242
  await p.click(C + ' [data-tkc-notes]');
239
243
  await p.keyboard.type('Ask legal before the UAT.');
240
244
  await p.keyboard.press('Tab');
241
- ok('D7 notes save on blur', await until(() => (last(A, '/api/boards/tasks/edit') || { body: {} }).body.notes === 'Ask legal before the UAT.') && /Notes saved/.test((await view(p)).toast));
245
+ ok('D7 notes save on blur', await until(async () => (last(A, '/api/boards/tasks/edit') || { body: {} }).body.notes === 'Ask legal before the UAT.' && /Notes saved/.test((await view(p)).toast)));
242
246
  // move
243
247
  await p.click(C + ' [data-tkc="move"]');
244
248
  const mv = await until(() => p.evaluate((c) => [...document.querySelectorAll(c + ' [data-tkc-move]')].map((b) => b.textContent.trim()), C));
@@ -283,6 +287,40 @@ async function pure() {
283
287
  await A.ctx.close();
284
288
  }
285
289
 
290
+ /* Notes survive closing, and a read during a pending save cannot poison the cache after success. */
291
+ {
292
+ const A = await open(), p = A.page;
293
+ await openTask(p, 'task:t1');
294
+ await p.fill(C + ' [data-tkc-notes]', 'Keep the UAT findings.');
295
+ await p.keyboard.press('Escape');
296
+ ok('D13 Escape saves the pending notes before closing the task', await until(() => (last(A, '/api/boards/tasks/edit') || { body: {} }).body.notes === 'Keep the UAT findings.'));
297
+ await openTask(p, 'task:t1');
298
+ ok('D13 reopening reads the saved notes', await until(async () => (await view(p))?.notes === 'Keep the UAT findings.'));
299
+ await p.fill(C + ' [data-tkc-notes]', 'Keep the second edit too.');
300
+ await p.evaluate(async () => { (await import('/pm/cozy-viewer.js')).close(); });
301
+ ok('D13 programmatic close saves focused notes', await until(() => (last(A, '/api/boards/tasks/edit') || { body: {} }).body.notes === 'Keep the second edit too.'));
302
+ await openTask(p, 'task:t1');
303
+ ok('D13 reopening after navigation retains the second edit', await until(async () => (await view(p))?.notes === 'Keep the second edit too.'));
304
+ let release, saving = false;
305
+ const held = new Promise((resolve) => { release = resolve; });
306
+ await p.route('**/api/boards/tasks/edit', async (r) => { saving = true; await held; await r.fallback(); });
307
+ await p.fill(C + ' [data-tkc-notes]', 'Notes from a slower save.');
308
+ await p.keyboard.press('Tab');
309
+ ok('D13 the save is held while another read opens', await until(() => saving));
310
+ await p.evaluate(async () => { (await import('/pm/cozy-viewer.js')).close(); });
311
+ await openTask(p, 'task:t1');
312
+ ok('D13 the pending read sees the previously saved notes', await until(async () => (await view(p))?.notes === 'Keep the second edit too.'));
313
+ await p.evaluate(() => { document.getElementById('toast').textContent = ''; });
314
+ release();
315
+ await until(() => (last(A, '/api/boards/tasks/edit') || { body: {} }).body.notes === 'Notes from a slower save.');
316
+ await until(async () => /Notes saved/.test((await view(p)).toast));
317
+ await p.evaluate(async () => { (await import('/pm/cozy-viewer.js')).close(); });
318
+ await openTask(p, 'task:t1');
319
+ ok('D13 reopening during a save does not leave stale notes cached after it succeeds', await until(async () => (await view(p))?.notes === 'Notes from a slower save.'));
320
+ ok('D13 the page raised no error', A.errors.length === 0, A.errors.join(' | '));
321
+ await A.ctx.close();
322
+ }
323
+
286
324
  /* D12 the phone, dark: the same view, full screen */
287
325
  {
288
326
  const A = await open({ w: 390, h: 844, theme: 'dark' }), p = A.page;