create-pmos 0.634.0 → 0.635.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.634.0",
3
+ "version": "0.635.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": {
@@ -34,8 +34,8 @@
34
34
  ],
35
35
  "pmosChanges": [
36
36
  {
37
- "v": "0.634.0",
38
- "at": "2026-11-19T14:37:52.789Z",
37
+ "v": "0.635.0",
38
+ "at": "2026-11-19T14:42:50.865Z",
39
39
  "f": 4,
40
40
  "prs": [
41
41
  {
@@ -43,6 +43,12 @@
43
43
  "t": "Read repo identity off the event loop (stops the 15 s freezes)",
44
44
  "s": "Read repo identity off the event loop (stops the 15 s freezes)",
45
45
  "k": "fix"
46
+ },
47
+ {
48
+ "n": 1417,
49
+ "t": "One line per brief item or Jira ticket; Jira Work shows its key",
50
+ "s": "One line per brief item or Jira ticket; Jira Work shows its key",
51
+ "k": "fix"
46
52
  }
47
53
  ]
48
54
  },
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@18c2376a
1
+ kernel-source: pmos@7f5a7b4d
2
2
  assembled: 2026-11-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-11-19T14:37:49Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-19T14:42:47Z"}
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-19T14:37:49Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-19T14:42:47Z"}
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-19T14:37:49Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-19T14:42:47Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,7 +1,7 @@
1
1
  [
2
2
  {
3
- "v": "0.634.0",
4
- "at": "2026-11-19T14:37:52.789Z",
3
+ "v": "0.635.0",
4
+ "at": "2026-11-19T14:42:50.865Z",
5
5
  "f": 4,
6
6
  "prs": [
7
7
  {
@@ -9,6 +9,12 @@
9
9
  "t": "Read repo identity off the event loop (stops the 15 s freezes)",
10
10
  "s": "Read repo identity off the event loop (stops the 15 s freezes)",
11
11
  "k": "fix"
12
+ },
13
+ {
14
+ "n": 1417,
15
+ "t": "One line per brief item or Jira ticket; Jira Work shows its key",
16
+ "s": "One line per brief item or Jira ticket; Jira Work shows its key",
17
+ "k": "fix"
12
18
  }
13
19
  ]
14
20
  },
@@ -39,7 +39,7 @@ The log is a table, kept the Bullet Journal way, in three groups:
39
39
  Each row is one short line:
40
40
 
41
41
  - The bullet says what it is: **•** a task, **○** an event, **–** a note, **×** done, **✦** something PMOS suggests. **!** marks what you marked first.
42
- - **What** (the thing to do), **Type**, **Work** (the initiative or program it belongs to; the column is left out when no line names one), **Job** and **When**. The type is **Ask** (a person asked you; the line starts with who, then the ask; an ask with no person behind it can wait), **Decision**, **Check** ("did it work?"), **Milestone**, **Task**, **Report** or **Note**. The same ask from the same people shows once, with every name ("Suhas and Betty: …"). **Decide** is a call you make up your mind on, **Do** is something you do yourself ("Draft the PRD, or let PMOS draft it"), **Reply** is an answer a person waits for, and **Send** is a thing of yours that is ready to go out. PMOS's own note, such as the asks that expired with no answer, closes the log with the Job **Note**.
42
+ - **What** (the thing to do), **Type**, **Work** (the initiative or program it belongs to; the column is left out when no line names one), **Job** and **When**. The type is **Ask** (a person asked you; the line starts with who, then the ask; an ask with no person behind it can wait), **Decision**, **Check** ("did it work?"), **Milestone**, **Task**, **Report** or **Note**. The same ask from the same people shows once, with every name ("Suhas and Betty: …"). One thing shows once, however it reached Today: an item of the morning brief that you put on today, a Jira ticket in your tasks, and a brief item that says what a person asked you are each one row. Done, Move to tomorrow and Set a date act on the whole row. A Jira ticket's Work is its key, for example "CONHUB-233". **Decide** is a call you make up your mind on, **Do** is something you do yourself ("Draft the PRD, or let PMOS draft it"), **Reply** is an answer a person waits for, and **Send** is a thing of yours that is ready to go out. PMOS's own note, such as the asks that expired with no answer, closes the log with the Job **Note**.
43
43
  - The rows are the calls only you can make, your late tasks, the next steps, your own items for today, the drafts to send, and what you typed yourself.
44
44
  - The title line counts the log ("Today's log · 12"), with the jobs at the right, for example "5 to decide · 6 to do · 15 to reply · 1 to send".
45
45
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.634.0",
3
+ "version": "0.635.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.634.0",
9
+ "version": "0.635.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.634.0",
3
+ "version": "0.635.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",
@@ -65,6 +65,21 @@ const jobOfAsk = (r) => (r.kind === 'call' ? (r.call && r.call.kind === 'update'
65
65
  const cap1 = (s) => String(s || '').replace(/^[a-z]/, (c) => c.toUpperCase());
66
66
  /** No ids in a title (audit round 2): "KR-A1 Signup conversion up: …" reads "Signup conversion up: …". */
67
67
  const ID_SHAPED = /^(?:[0-9a-f]{8,}|[a-z0-9]+(?:[-_][a-z0-9]+)+)$/;
68
+ /* ── one thing, one line (Wawan's live Today, 2026-11-19): the morning brief's item reaches Today up to three ways, as a call (call:n:src:<id>),
69
+ * as a need of Your move (n:src:<id>) and as the item the PM put on today (work:brief:<id>); a Jira ticket as n:src:jira:<KEY> and work:jira:<KEY>.
70
+ * srcOf names the one thing behind a key: 'brief:<id>' or 'jira:<KEY>'; '' for any other key. */
71
+ export function srcOf(key) {
72
+ let k = String(key || '').replace(/^(?:call:|work:|n:)+/, '');
73
+ if (/^brief:[0-9a-f]{12}$/.test(k)) return k;
74
+ k = k.replace(/^src:/, '');
75
+ if (/^[0-9a-f]{12}$/.test(k)) return 'brief:' + k;
76
+ const j = ticketOf(k);
77
+ return j ? 'jira:' + j : '';
78
+ }
79
+ /** A Jira ticket's key from a source id: 'jira:jira:IDP-55' → 'IDP-55'; '' when it is not one. */
80
+ export function ticketOf(id) { const m = /^(?:jira:)+([A-Za-z][A-Za-z0-9_]*-\d+)$/.exec(String(id || '')); return m ? m[1].toUpperCase() : ''; }
81
+ /** An initiative id, or null: a source id ('jira:…', 'brief:…', 'src:…') is where a line came from, never an initiative. */
82
+ export const iniOnly = (x) => (x && !/^(?:jira|brief|src|n):/i.test(String(x)) ? x : null);
68
83
  export const noId = (t) => String(t || '').replace(/^(?:[A-Z]{1,4}-[A-Z0-9][\w.]*|health:[\w-]+)\s+/, '');
69
84
  /** An ask's What and Work, split as the board says them: the rank names a row "<work>: <what>" (a verdict, a grill finding, a meeting's or a
70
85
  * program's milestone changes, the changes to keep); What is the thing to do, Work the initiative or program it is about. */
@@ -192,8 +207,9 @@ export function logModel(o = {}) {
192
207
  }
193
208
  // Work holds an initiative; a product shows by its display name, never its id (audit round 2)
194
209
  const prodW = c ? c.sub : (r.shared || []).map((x) => productOf(x)).filter(Boolean)[0] || productOf(r.ws || '');
195
- put({ key: c ? 'call:' + c.id : r.key, src: 'ask', bullet: 'task', title: noId(sp.what || r.title || (c && c.name) || ''), ini: r.ini || (c && c.ini) || null, ws: r.ws || '',
196
- work: work(r.ini || (c && c.ini), prodW) || sp.work, job: jobOfAsk(r), carried, late: carried >= LATE_DAYS,
210
+ const ai = iniOnly(r.ini || (c && c.ini));
211
+ put({ key: c ? 'call:' + c.id : r.key, src: 'ask', bullet: 'task', title: noId(sp.what || r.title || (c && c.name) || ''), ini: ai, ws: r.ws || '',
212
+ work: work(ai, prodW) || sp.work || ticketOf(r.ini || (c && c.ini)), job: jobOfAsk(r), carried, late: carried >= LATE_DAYS,
197
213
  when: whenWord({ carried, send }, today), first: r.rank <= 2 || (c && c.kind === 'update' && /^(today|now)/i.test(String(c.when || ''))) || false, ref: r });
198
214
  }
199
215
  // the rest of Your move: the PM's own late tasks and the next steps (a call is in the asks already; an item is in the items)
@@ -203,7 +219,8 @@ export function logModel(o = {}) {
203
219
  const late = r.kind === 'task' && due && due < today ? between(due, today) : 0;
204
220
  // a task whose date passed long ago and nobody touched (an old import) is not a Today row: one ✦ line in the Overview (round 3 point 12)
205
221
  if (late > OLD_TASK_DAYS) { const m = marks[r.id] || {}; if (!m.dropped && !(m.kept && between(m.kept, today) < CARRY_DROP)) old.push(r.id); if (!(m.kept && between(m.kept, today) < CARRY_DROP)) continue; }
206
- put({ key: r.id, src: 'move', bullet: 'task', title: r.name, ini: r.ini || null, work: work(r.ini, r.sub), job: 'Do', late: late > 0, carried: late,
222
+ const mi = iniOnly(r.ini);
223
+ put({ key: r.id, src: 'move', bullet: 'task', title: r.name, ini: mi, work: mi ? work(mi, r.sub) : ticketOf(r.ini) || work(null, r.sub), job: 'Do', late: late > 0, carried: late,
207
224
  when: whenWord({ late, due }, today), dates: r.kind === 'task' ? 'task' : 'mark', ref: r });
208
225
  }
209
226
  // the PM's own items placed in Today
@@ -211,7 +228,8 @@ export function logModel(o = {}) {
211
228
  if (!it || !it.id) continue;
212
229
  const from = it.due && it.due < today ? it.due : !it.due && it.at ? dayKey(Date.parse(it.at)) : '';
213
230
  const carried = from && from < today ? between(from, today) : 0;
214
- put({ key: 'work:' + it.id, src: 'item', bullet: 'task', title: it.title, ini: it.ini || null, work: work(it.ini, ''), job: 'Do', carried, late: !!it.overdue || carried >= LATE_DAYS,
231
+ const ii = iniOnly(it.ini);
232
+ put({ key: 'work:' + it.id, src: 'item', bullet: 'task', title: it.title, ini: ii, work: ii ? work(ii, '') : ticketOf(it.id) || ticketOf(it.ini), job: 'Do', carried, late: !!it.overdue || carried >= LATE_DAYS,
215
233
  when: whenWord({ carried, due: it.due }, today), dates: 'item', ref: it });
216
234
  }
217
235
  for (const d of o.drafts || []) if (d && d.id) put({ key: 'draft:' + d.id, src: 'draft', bullet: 'task', title: d.title, ini: d.ini || null, work: work(d.ini, ''), job: 'Send', did: ['finished the draft'], ref: d });
@@ -224,6 +242,7 @@ export function logModel(o = {}) {
224
242
  when: whenWord({ carried, time: e.bullet === 'event' && !carried ? e.time : '' }, today), done: !!e.done, ref: e });
225
243
  }
226
244
  for (const f of o.lab || []) if (f && f.id) put({ key: 'lab:' + (f.ws || '') + ':' + f.id, src: 'lab', bullet: 'lab', title: f.title, work: '', job: 'Decide', why: f.why || '', ref: f });
245
+ oneLine(out);
227
246
  // a row done today whose source has let it go keeps its × from what it said when it was done
228
247
  for (const [k, m] of Object.entries(marks)) {
229
248
  if (!m || !m.done || seen.has(k) || !m.snap) continue;
@@ -249,6 +268,36 @@ export function logModel(o = {}) {
249
268
  const merged = open.reduce((k, r) => k + (r.merged ? r.merged - 1 : 0), 0);
250
269
  return { rows: G.first.concat(G.today, done, G.wait), first: G.first, todayRows: G.today.concat(done), wait: G.wait, open: open.length, done: done.length, counts, types, merged, line, today, old };
251
270
  }
271
+ /** ONE THING, ONE LINE (Wawan's live Today, 2026-11-19): the lines of one brief item or one Jira ticket (srcOf) are one line, with every key
272
+ * behind it (a mark goes to each). The item the PM put on today stays, since Done, Later and a date write to it; it takes the ask's Work, Type
273
+ * and Job when it has none. Then a brief item that says what an open Ask (a mention) says is that Ask: the Ask stays. In place, on out. */
274
+ export function oneLine(out) {
275
+ const join = (keep, r) => {
276
+ for (const k of r.keys || [r.key]) if (!keep.keys.includes(k)) keep.keys.push(k);
277
+ keep.merged = (keep.merged || 1) + (r.merged || 1);
278
+ keep.carried = Math.max(keep.carried || 0, r.carried || 0); keep.late = !!(keep.late || r.late); keep.first = !!(keep.first || r.first);
279
+ };
280
+ const by = new Map();
281
+ for (const r of out) { const s = r.done ? '' : srcOf(r.key); if (s) { if (!by.has(s)) by.set(s, []); by.get(s).push(r); } }
282
+ for (const L of by.values()) {
283
+ if (L.length < 2) continue;
284
+ const keep = L.find((r) => r.src === 'item') || L[0], at = out.indexOf(L[0]);
285
+ for (const r of L) {
286
+ if (r === keep) continue;
287
+ join(keep, r);
288
+ if (keep.src === 'item' && r.src !== 'item') { if (!keep.work) keep.work = r.work; if (r.type && r.type !== 'Task') keep.type = r.type; if (r.job && r.job !== 'Do') keep.job = r.job; }
289
+ out.splice(out.indexOf(r), 1);
290
+ }
291
+ out.splice(out.indexOf(keep), 1); out.splice(Math.min(at, out.length), 0, keep);
292
+ }
293
+ for (const r of [...out]) {
294
+ if (r.done || r.src === 'item' || !/^brief:/.test(srcOf(r.key))) continue;
295
+ const ask = out.find((x) => x !== r && x.type === 'Ask' && !x.done && sameAsk(x.ask, r.title));
296
+ if (!ask) continue;
297
+ join(ask, r); out.splice(out.indexOf(r), 1);
298
+ }
299
+ return out;
300
+ }
252
301
  /** SAME JOB, MANY INITIATIVES (audit round 2): open asks that read the same for two or more initiatives ("Draft the PRD, or let PMOS draft
253
302
  * it" five times) become one row: "5 initiatives have no PRD", its members under it when opened. When each one is a step PMOS drafts, a ✦
254
303
  * line says "PMOS drafts them for you to read" with ✓ ✕ (✕ is kept for a month as the mark kept on the group). In place, on out. */