create-pmos 0.810.0 → 0.811.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.810.0",
3
+ "version": "0.811.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,20 @@
33
33
  "audit"
34
34
  ],
35
35
  "pmosChanges": [
36
+ {
37
+ "v": "0.811.0",
38
+ "at": "2026-11-25T06:16:01.641Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1857,
43
+ "t": "Undo on a read line gives back every typed word (job #1845 fix round)",
44
+ "s": "Undo on a read line gives back every typed word (job #1845 fix round)",
45
+ "k": "fix",
46
+ "i": "capture-words-to-fields"
47
+ }
48
+ ]
49
+ },
36
50
  {
37
51
  "v": "0.810.0",
38
52
  "at": "2026-11-25T05:54:34.966Z",
@@ -360,29 +374,6 @@
360
374
  "k": "new"
361
375
  }
362
376
  ]
363
- },
364
- {
365
- "v": "0.787.0",
366
- "at": "2026-11-24T17:51:02.745Z",
367
- "f": 4,
368
- "prs": [
369
- {
370
- "n": 1772,
371
- "t": "Find every feature — PMOS / commands, typed-words suggestion and What PMOS can do",
372
- "s": "Find every feature — PMOS / commands, typed-words suggestion and What PMOS can do",
373
- "k": "new",
374
- "h": "Find every feature — PMOS / commands, typed-words suggestion and What PMOS can do",
375
- "try": {
376
- "steps": [
377
- "On Today, type / in the chat and pick Why this work exists",
378
- "Type 'what if the API task slips a week' and press Tab on the suggestion",
379
- "Press Ctrl+K, type features, and open What PMOS can do"
380
- ],
381
- "see": "The / menu lists PMOS commands first, each with its name and one line; the typed sentence turns into /rehearse; the directory lists features by job with New since you last looked on top",
382
- "open": "/today.html"
383
- }
384
- }
385
- ]
386
377
  }
387
378
  ]
388
379
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@6581bf98c
1
+ kernel-source: pmos@7c208a78e
2
2
  assembled: 2026-11-25
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-25T05:54:30Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-25T06:15:57Z"}
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-25T05:54:30Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-25T06:15:57Z"}
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-25T05:54:30Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-25T06:15:57Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,18 @@
1
1
  [
2
+ {
3
+ "v": "0.811.0",
4
+ "at": "2026-11-25T06:16:01.641Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1857,
9
+ "t": "Undo on a read line gives back every typed word (job #1845 fix round)",
10
+ "s": "Undo on a read line gives back every typed word (job #1845 fix round)",
11
+ "k": "fix",
12
+ "i": "capture-words-to-fields"
13
+ }
14
+ ]
15
+ },
2
16
  {
3
17
  "v": "0.810.0",
4
18
  "at": "2026-11-25T05:54:34.966Z",
@@ -127,13 +127,15 @@ function cutOut(t, cut) {
127
127
  }
128
128
 
129
129
  /** The whole reading of one typed line. PURE → { bullet, text, first, time, for, owner, waiting, read: [field] } | null
130
- * `for` is the day the line is for when the words name a later day ('' otherwise); `read` names the fields the words gave, for the chips. */
130
+ * `for` is the day the line is for when the words name a later day ('' otherwise); `read` names the fields the words gave, for the chips;
131
+ * `typed` is the line as typed when the reading cut words out of it, so the mark `plain` gives every word back. */
131
132
  function readWords(text, { day } = {}) {
132
133
  const e = parseEntry(text);
133
134
  if (!e) return null;
134
135
  let t = e.text, bullet = e.bullet, time = e.time, read = [];
135
136
  const typed = /^\s*!?\s*[o○•\-–—]\s/.test(String(text == null ? '' : text)); // a typed bullet is the PM's word, not the rules'
136
137
  if (!typed && NOTE_RE.test(t)) { bullet = 'note'; t = t.replace(NOTE_RE, '').trim(); read.push('kind'); }
138
+ const words = t; // the line as typed (a "note:" word aside): what the Undo gives back
137
139
  const D = dateWords(t, day);
138
140
  if (D) t = cutOut(t, D.cut);
139
141
  const T = time ? null : timeWords(t);
@@ -145,7 +147,8 @@ function readWords(text, { day } = {}) {
145
147
  if (T) read.push('time');
146
148
  if (owner) read.push('owner');
147
149
  const forDay = D && DAY_RE.test(String(day || '')) && D.date > day ? D.date : '';
148
- return { bullet, text: t.slice(0, MAX_TEXT), first: e.first, time: bullet === 'event' ? time : null, for: forDay, owner, waiting: !!owner, read };
150
+ const cutText = t.slice(0, MAX_TEXT);
151
+ return { bullet, text: cutText, ...(words !== cutText ? { typed: words.slice(0, MAX_TEXT) } : {}), first: e.first, time: bullet === 'event' ? time : null, for: forDay, owner, waiting: !!owner, read };
149
152
  }
150
153
 
151
154
  /** One line the PM typed. A leading "!" marks it first; "o " or "○ " makes it an event, "- " or "– " a note, "• " or nothing a task.
@@ -178,7 +181,7 @@ function addEvent(body, day, id) {
178
181
  const bullet = body.bullet || e.bullet;
179
182
  const read = body.bullet ? (e.read || []).filter((f) => f !== 'kind') : (e.read || []); // a bullet the page sent wins over the rules
180
183
  return { event: { event: 'added', id, day, bullet, text: e.text, first: !!(body.first || e.first), time: bullet === 'event' ? e.time : null,
181
- ...(e.for ? { for: e.for } : {}), ...(e.owner ? { owner: e.owner, waiting: !!e.waiting } : {}), ...(read.length ? { read } : {}) } };
184
+ ...(e.typed ? { typed: e.typed } : {}), ...(e.for ? { for: e.for } : {}), ...(e.owner ? { owner: e.owner, waiting: !!e.waiting } : {}), ...(read.length ? { read } : {}) } };
182
185
  }
183
186
 
184
187
  /** The line POST /api/today-log/mark appends. body: { key, act, day, until? (later), snap? { title, work, job } (done: what the row
@@ -225,7 +228,7 @@ function fold(lines, day) {
225
228
  // quiet-rows: the day's line rows per product; only the day asked for, the latest line of a product wins
226
229
  if (ev.event === 'fix') { if (ev.day === d && Array.isArray(ev.keys) && WS_RE.test(String(ev.ws == null ? '' : ev.ws))) fixed[String(ev.ws || '')] = ev.keys.filter((k) => KEY_RE.test(String(k))).slice(0, FIX_MAX); continue; }
227
230
  if (ev.event === 'added' && ID_RE.test(String(ev.id || '')) && BULLETS.includes(ev.bullet)) {
228
- own.set(ev.id, { id: ev.id, key: 'own:' + ev.id, bullet: ev.bullet, text: String(ev.text || ''), first: !!ev.first, time: ev.time || null, day: ev.day, at: ev.at || null,
231
+ own.set(ev.id, { id: ev.id, key: 'own:' + ev.id, bullet: ev.bullet, text: String(ev.text || ''), typed: String(ev.typed || '').slice(0, MAX_TEXT), first: !!ev.first, time: ev.time || null, day: ev.day, at: ev.at || null,
229
232
  for: DAY_RE.test(String(ev.for || '')) ? ev.for : '', owner: String(ev.owner || '').slice(0, 60), waiting: !!ev.waiting, read: Array.isArray(ev.read) ? ev.read.filter((f) => READ.includes(f)) : [] });
230
233
  continue;
231
234
  }
@@ -247,7 +250,7 @@ function fold(lines, day) {
247
250
  const m = marks[e.key] || {};
248
251
  if (m.dropped) continue;
249
252
  if (m.doneBefore && !m.done) continue;
250
- if (m.plain) { entries.push({ ...e, bullet: e.bullet === 'note' ? 'note' : 'task', time: null, for: '', owner: '', waiting: false, read: [], done: !!m.done }); continue; }
253
+ if (m.plain) { entries.push({ ...e, text: e.typed || e.text, bullet: e.bullet === 'note' ? 'note' : 'task', time: null, for: '', owner: '', waiting: false, read: [], done: !!m.done }); continue; }
251
254
  // the words named a later day: the line shows on the day it was typed (its chips and the Undo) and from that day on, not in between
252
255
  if (e.for && e.for > d && e.day !== d) continue;
253
256
  entries.push({ ...e, done: !!m.done });
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.810.0",
3
+ "version": "0.811.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.810.0",
9
+ "version": "0.811.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.810.0",
3
+ "version": "0.811.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",