create-pmos 0.780.0 → 0.781.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.780.0",
3
+ "version": "0.781.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,28 @@
33
33
  "audit"
34
34
  ],
35
35
  "pmosChanges": [
36
+ {
37
+ "v": "0.781.0",
38
+ "at": "2026-11-24T16:04:56.192Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1756,
43
+ "t": "✦ buttons act directly; ✦ drafts run as a PMOS background job",
44
+ "s": "✦ buttons act directly; ✦ drafts run as a PMOS background job",
45
+ "k": "new",
46
+ "try": {
47
+ "steps": [
48
+ "On Work, open an initiative whose Overview says Goal: Not written yet, and press ✓ on its ✦",
49
+ "Wait for the line to say PMOS is drafting it, then read the goal it saved",
50
+ "Press Undo on the toast"
51
+ ],
52
+ "see": "The goal line fills in by itself with no chat opening, and Undo puts it back to Not written yet",
53
+ "open": "/premium-board.html"
54
+ }
55
+ }
56
+ ]
57
+ },
36
58
  {
37
59
  "v": "0.780.0",
38
60
  "at": "2026-11-24T15:38:49.543Z",
@@ -418,27 +440,6 @@
418
440
  }
419
441
  }
420
442
  ]
421
- },
422
- {
423
- "v": "0.761.0",
424
- "at": "2026-11-24T04:56:21.207Z",
425
- "f": 4,
426
- "prs": [
427
- {
428
- "n": 1716,
429
- "t": "The standup digest sees every status change, from one daily search",
430
- "s": "The standup digest sees every status change, from one daily search",
431
- "k": "new",
432
- "try": {
433
- "steps": [
434
- "In the chat, ask \"refresh Jira\" (or wait for the morning refresh)",
435
- "Then ask \"what moved in Jira since yesterday?\""
436
- ],
437
- "see": "The answer lists tickets that changed status in Jira even when no PMOS initiative or task names them, under \"Not in PMOS yet\", each with its new state and person, and says how many moved tickets…",
438
- "open": "/today.html"
439
- }
440
- }
441
- ]
442
443
  }
443
444
  ]
444
445
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@9d8089b5
1
+ kernel-source: pmos@67dccaa0
2
2
  assembled: 2026-11-24
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-24T15:38:46Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-24T16:04:52Z"}
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-24T15:38:46Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-24T16:04:52Z"}
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-24T15:38:46Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-24T16:04:52Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,26 @@
1
1
  [
2
+ {
3
+ "v": "0.781.0",
4
+ "at": "2026-11-24T16:04:56.192Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1756,
9
+ "t": "✦ buttons act directly; ✦ drafts run as a PMOS background job",
10
+ "s": "✦ buttons act directly; ✦ drafts run as a PMOS background job",
11
+ "k": "new",
12
+ "try": {
13
+ "steps": [
14
+ "On Work, open an initiative whose Overview says Goal: Not written yet, and press ✓ on its ✦",
15
+ "Wait for the line to say PMOS is drafting it, then read the goal it saved",
16
+ "Press Undo on the toast"
17
+ ],
18
+ "see": "The goal line fills in by itself with no chat opening, and Undo puts it back to Not written yet",
19
+ "open": "/premium-board.html"
20
+ }
21
+ }
22
+ ]
23
+ },
2
24
  {
3
25
  "v": "0.780.0",
4
26
  "at": "2026-11-24T15:38:49.543Z",
@@ -2,7 +2,7 @@
2
2
  type: Guide
3
3
  title: "What PMOS does behind the scenes, and what stays yours"
4
4
  description: "Every job PMOS runs by itself, what agents apply by themselves with Undo (D106), long-running goals, the team of role agents, the live round, the idle lab, and the PM-only acts."
5
- timestamp: 2026-11-20
5
+ timestamp: 2026-11-24
6
6
  ---
7
7
 
8
8
  # What PMOS does behind the scenes
@@ -115,6 +115,7 @@ A loop never sends a message, moves a Jira ticket, merges into a product reposit
115
115
  | [New dates, done and tidy names](claude-proposes.md) | Each morning, and when a date passes | The tasks of the initiative, and the evidence that work happened | The initiative's ✦ | `PMOS_PROPOSE=off` |
116
116
  | [Grill](claude-proposes.md) | Before an initiative leaves a stage, when a forecast turns at risk, when scope or dates move a lot, and once a month on running work with late work. Also when you write "grill this" in the initiative's chat. | The initiative, your stored research, your meeting notes and the decisions that stand | "PMOS grilled it" under the initiative's ✦ | Settings › Checks: Off. `PMOS_GRILL=off` |
117
117
  | [You decided this before](claude-proposes.md) | You add an initiative that repeats an earlier decision | `DECISIONS.md`, the decision records, the PM journal, `planning/out-of-scope/` and the initiative records | The initiative's ✦ | `pmos ai off past-repeat` |
118
+ | [✦ drafts](claude-proposes.md#drafts-from-a-) | You press ✓ on a ✦ that offers a draft: a line of the Overview, a program's For or Goal, the documents a gate needs, a goal or initiatives from the strategy, an outcome verdict or a goal's name. One short run for each press. | The records in the product's folder. It writes nothing and sends nothing. | The row you pressed: "PMOS is drafting it", then the draft | Press ✕ on the draft. Nothing is kept until you keep it. |
118
119
  | [Report readers](claude-proposes.md) | A report draft is written | The draft, read as the CFO, the engineering lead and the sceptic | The ✦ of each initiative the question quotes | `pmos ai off report-readers` |
119
120
  | [Initiative descriptions](claude-proposes.md) | Once a day. At most 3 drafts a day for each product. | The PRD's first Problem or Why paragraph, or the record's own first paragraph | "Description" under the initiative's ✦ | `pmos ai off descriptions`. `PMOS_DESCRIPTIONS=off` |
120
121
  | [Expected outcomes](claude-proposes.md) | Once a day. At most 3 drafts a day for each product. When a check date passes: the verdict, from the goal's reading or one short run. | The PRD's success criteria, or the anchored key result. For a verdict: the goal's reading, or the lines the run cites | "Expected outcome" under the initiative's ✦. A verdict is recorded with Undo. Your move when PMOS cannot tell. | `pmos ai off outcomes`. `PMOS_OUTCOMES=off` |
@@ -2,7 +2,7 @@
2
2
  type: Guide
3
3
  title: "PMOS proposes: the ✦, drafts and checks you keep or drop"
4
4
  description: "The one ✦ on each initiative, the grill, descriptions, expected outcomes, metric drafts, rehearsals, ask the past, your impact and the weekly drift check."
5
- timestamp: 2026-11-22
5
+ timestamp: 2026-11-24
6
6
  ---
7
7
 
8
8
  # PMOS proposes
@@ -113,6 +113,16 @@ When a PRD is written later and says more than the description, PMOS drafts **A
113
113
  - ✓ saves the draft to the record. Undo puts back what was there.
114
114
  - ✕ drops it. PMOS does not draft the same one again.
115
115
 
116
+ ### Drafts from a ✦
117
+
118
+ A ✦ that offers a draft no longer writes into the chat. When you press ✓, PMOS drafts it in the background and the row says **PMOS is drafting it**. Then the draft shows on the same row:
119
+
120
+ - A line of the Overview (Problem, Goal, Done when) and a program's For and Goal are saved on the line at once. **Undo** puts the line back.
121
+ - The documents a gate needs start their own draft runs and show in Artefacts as drafts. A done test is saved as its checks, with **Undo**.
122
+ - A goal, initiatives or a verdict show under the row you pressed. Press ✓ to keep the draft or ✕ to drop it.
123
+
124
+ If PMOS cannot draft it, the row says why and shows **Try again**. A ✦ that needs your own words, such as a list to paste, still opens Ask PMOS.
125
+
116
126
  ### Ask PMOS to draft it
117
127
 
118
128
  **Ask PMOS to draft it** opens Today's chat with a prompt. PMOS reads what it can, shows you a draft, and saves it after you say yes.
@@ -0,0 +1,67 @@
1
+ 'use strict';
2
+ /* card-catalog.js — the one card catalog (A2UI v2, Wawan 2026-11-24): every kind of row PMOS can show, the Komorebi part that
3
+ * draws it, and its buttons. Each button runs ONE pmos command and says who acts: 'you' (one press with Undo), 'agent' (PMOS
4
+ * starts a run; the row shows the result) or 'waits' (outward or cannot be undone: it waits for the PM's yes).
5
+ *
6
+ * load() → the catalog object, read once from lib/card-catalog.json (a committed copy; nothing reads outside the repo)
7
+ * kinds() → [{ group, id, name, part, reader, actions }]
8
+ * kindOf(id) → that kind, or null
9
+ * actionOf(kindId, label) → that kind's button with that label, or null
10
+ * parseRun(run) → { verb, sub, pos: [..], flags: { name: placeholder | true } } for "pmos <verb> <sub> …", or null when the
11
+ * button runs no command ("opens the task popup")
12
+ * commands() → [{ verb, sub, run, uses: [{ kind, label }] }], one per distinct "<verb> <sub>"
13
+ *
14
+ * The page reads the same file through GET /api/card-catalog (lib/routes-card-catalog.js) and runs a button with
15
+ * public/pm/action-run.js. Pure apart from the one read. */
16
+ const fs = require('fs');
17
+ const path = require('path');
18
+
19
+ const FILE = path.join(__dirname, 'card-catalog.json');
20
+ let CAT = null;
21
+ function load() {
22
+ if (!CAT) CAT = Object.freeze(JSON.parse(fs.readFileSync(FILE, 'utf8')));
23
+ return CAT;
24
+ }
25
+ function kinds() {
26
+ const out = [];
27
+ for (const g of load().groups || []) for (const k of g.kinds || []) out.push({ group: g.id, id: k.id, name: k.name, part: k.part, reader: k.reader || null, actions: k.actions || [] });
28
+ return out;
29
+ }
30
+ function kindOf(id) { return kinds().find((k) => k.id === id) || null; }
31
+ function actionOf(kindId, label) {
32
+ const k = kindOf(kindId);
33
+ return k ? k.actions.find((a) => a.label === label) || null : null;
34
+ }
35
+ /** Split a run string into words, keeping "<a b>" and "\"…\"" whole. */
36
+ function words(s) {
37
+ const out = []; const re = /"[^"]*"|<[^>]*>|\S+/g; let m;
38
+ while ((m = re.exec(s))) out.push(m[0]);
39
+ return out;
40
+ }
41
+ function parseRun(run) {
42
+ const w = words(String(run || '').trim());
43
+ if (w[0] !== 'pmos' || !w[1]) return null;
44
+ const verb = w[1];
45
+ const sub = w[2] && !w[2].startsWith('-') && !w[2].startsWith('<') && !w[2].startsWith('"') ? w[2] : '';
46
+ const pos = [], flags = {};
47
+ for (let i = sub ? 3 : 2; i < w.length; i++) {
48
+ const x = w[i];
49
+ if (x.startsWith('--')) {
50
+ const nx = w[i + 1];
51
+ if (nx !== undefined && !nx.startsWith('--')) { flags[x.slice(2)] = nx; i++; } else flags[x.slice(2)] = true;
52
+ } else pos.push(x);
53
+ }
54
+ return { verb, sub, pos, flags };
55
+ }
56
+ function commands() {
57
+ const by = new Map();
58
+ for (const k of kinds()) for (const a of k.actions) {
59
+ const p = parseRun(a.run); if (!p) continue;
60
+ const key = p.verb + ' ' + p.sub;
61
+ if (!by.has(key)) by.set(key, { verb: p.verb, sub: p.sub, run: a.run, uses: [] });
62
+ by.get(key).uses.push({ kind: k.id, label: a.label });
63
+ }
64
+ return [...by.values()];
65
+ }
66
+
67
+ module.exports = { FILE, load, kinds, kindOf, actionOf, parseRun, commands, words };