create-pmos 0.624.0 → 0.625.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.624.0",
3
+ "version": "0.625.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,21 +34,34 @@
34
34
  ],
35
35
  "pmosChanges": [
36
36
  {
37
- "v": "0.624.0",
38
- "at": "2026-11-19T05:29:23.103Z",
37
+ "v": "0.625.0",
38
+ "at": "2026-11-19T05:35:01.289Z",
39
39
  "f": 4,
40
40
  "prs": [
41
- {
42
- "n": 1405,
43
- "t": "Work's bars stop at the timeline's edge at every span",
44
- "s": "Work's bars stop at the timeline's edge at every span",
45
- "k": "fix"
46
- },
47
41
  {
48
42
  "n": 1404,
49
43
  "t": "A shared copy carries no task in no stage",
50
44
  "s": "A shared copy carries no task in no stage",
51
45
  "k": "fix"
46
+ },
47
+ {
48
+ "n": 1406,
49
+ "t": "One product-name rule for desk and shared copy; no raw report ids on Events",
50
+ "s": "One product-name rule for desk and shared copy; no raw report ids on Events",
51
+ "k": "fix"
52
+ }
53
+ ]
54
+ },
55
+ {
56
+ "v": "0.623.0",
57
+ "at": "2026-11-19T05:21:06.341Z",
58
+ "f": 4,
59
+ "prs": [
60
+ {
61
+ "n": 1405,
62
+ "t": "Work's bars stop at the timeline's edge at every span",
63
+ "s": "Work's bars stop at the timeline's edge at every span",
64
+ "k": "fix"
52
65
  }
53
66
  ]
54
67
  },
@@ -441,19 +454,6 @@
441
454
  "k": "new"
442
455
  }
443
456
  ]
444
- },
445
- {
446
- "v": "0.604.0",
447
- "at": "2026-11-18T10:41:57.791Z",
448
- "f": 4,
449
- "prs": [
450
- {
451
- "n": 1349,
452
- "t": "One item, one panel",
453
- "s": "One item, one panel",
454
- "k": "fix"
455
- }
456
- ]
457
457
  }
458
458
  ]
459
459
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@f0c71ed1
1
+ kernel-source: pmos@48c454f1
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-19T05:29:20Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-19T05:34: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-19T05:29:20Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-19T05:34: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-19T05:29:20Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-19T05:34:57Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -202,7 +202,7 @@ const product = (name, cond) => {
202
202
  const before = JSON.stringify(((await setting()) || {}).value);
203
203
  const { ctx, page } = await open({ q: '?ws=' + encodeURIComponent(wB.id) });
204
204
  await page.waitForSelector('#hmPick', { state: 'attached', timeout: 20000 });
205
- ok('P12 ?ws= shows that one workspace on the chip and leaves the saved pick alone', /microsites$/.test(await page.getAttribute('#hmPick', 'aria-label')) && JSON.stringify(((await setting()) || {}).value) === before, await page.getAttribute('#hmPick', 'aria-label'));
205
+ ok('P12 ?ws= shows that one workspace on the chip and leaves the saved pick alone', /Microsites$/.test(await page.getAttribute('#hmPick', 'aria-label')) && JSON.stringify(((await setting()) || {}).value) === before, await page.getAttribute('#hmPick', 'aria-label'));
206
206
  await ctx.close();
207
207
  }
208
208
  return finish();
@@ -1,20 +1,33 @@
1
1
  [
2
2
  {
3
- "v": "0.624.0",
4
- "at": "2026-11-19T05:29:23.103Z",
3
+ "v": "0.625.0",
4
+ "at": "2026-11-19T05:35:01.289Z",
5
5
  "f": 4,
6
6
  "prs": [
7
- {
8
- "n": 1405,
9
- "t": "Work's bars stop at the timeline's edge at every span",
10
- "s": "Work's bars stop at the timeline's edge at every span",
11
- "k": "fix"
12
- },
13
7
  {
14
8
  "n": 1404,
15
9
  "t": "A shared copy carries no task in no stage",
16
10
  "s": "A shared copy carries no task in no stage",
17
11
  "k": "fix"
12
+ },
13
+ {
14
+ "n": 1406,
15
+ "t": "One product-name rule for desk and shared copy; no raw report ids on Events",
16
+ "s": "One product-name rule for desk and shared copy; no raw report ids on Events",
17
+ "k": "fix"
18
+ }
19
+ ]
20
+ },
21
+ {
22
+ "v": "0.623.0",
23
+ "at": "2026-11-19T05:21:06.341Z",
24
+ "f": 4,
25
+ "prs": [
26
+ {
27
+ "n": 1405,
28
+ "t": "Work's bars stop at the timeline's edge at every span",
29
+ "s": "Work's bars stop at the timeline's edge at every span",
30
+ "k": "fix"
18
31
  }
19
32
  ]
20
33
  },
@@ -140,7 +140,7 @@ A Jira date and the planned finish of an initiative get no ✓: PMOS cannot writ
140
140
  - **Kind** says what the thing is: PRD, Strategic brief, Design brief, Done test, Meeting notes, Prototype, Link · Confluence, and so on. PMOS reads it from the file's `type` first, then from its title ("Brief: …") and its file name. When the title only repeats the kind, the name leaves it out: "Brief: Scarlet lucky draw" shows as "Scarlet lucky draw", Kind Strategic brief.
141
141
  - **About** is the program and the initiative ("Project Ascent › Tender new CIAM"). It is empty when it repeats the name.
142
142
  - **By** is **You**, **PMOS** (an agent wrote it) or the name of a person in People. A git author that People does not know shows nothing, not the raw handle.
143
- - **Product** is the product's display name, the same one the scope chip shows. A work copy or a worktree shows the product it is a copy of.
143
+ - **Product** is the product's display name, the same one the scope chip shows. A work copy or a worktree shows the product it is a copy of. A product with no name of its own reads by its folder without "pmos-": "pmos-idpf" reads IDPF and "pmos-microsites" reads Microsites, as in a shared copy. A report with no name reads "Report draft" and its day.
144
144
  - **State** is **Draft**, **Final** or **Issued**, with the edition when there is more than one ("Final · v3"). Older editions fold under the newest: press **2 earlier** to see them.
145
145
  - Grouped by New, the checks PMOS keeps for one initiative (done test, rubric, retro) fold into one **Checks** row.
146
146
 
@@ -220,6 +220,8 @@ function build(input = {}) {
220
220
  const reportName = (cadence) => {
221
221
  const n = nameOfCadence.get(cadence);
222
222
  if (n) return clip(n, 120);
223
+ // a cadence that holds an id ("rr-51289f44c9") is no name: the row reads by its kind ("Report draft · 18 Nov"), never the id
224
+ if (!cadence || String(cadence).split(/[-_\s]+/).some((w) => /^[0-9a-f]{6,}$/i.test(w) || (/\d/.test(w) && /[a-z]/i.test(w) && w.length >= 6))) return null;
223
225
  const words = String(cadence || 'report').split(/[-_\s]+/).filter(Boolean).map((w) => (shorts.has(w.toLowerCase()) ? w.toUpperCase() : w.toLowerCase()));
224
226
  const t = words.join(' ');
225
227
  // one word ("weekly") is a cadence, so it is "Weekly report"; more words are the report's own name
@@ -236,7 +238,7 @@ function build(input = {}) {
236
238
  if (gone.has(key)) continue;
237
239
  // a draft more than two weeks old is not today's work: the old ones are one line, "N old report drafts", that PMOS offers to drop
238
240
  if (isDay(d.slot) && daysBetween(day10(d.slot), today) > DRAFT_OLD_DAYS) { oldDrafts.push(key); continue; }
239
- put({ key, kind: 'report', date: today, time: null, until: null, title: reportName(d.cadence) + (isDay(d.slot) ? ' · ' + shortDay(d.slot, today) : ''),
241
+ put({ key, kind: 'report', date: today, time: null, until: null, title: (reportName(d.cadence) || 'Report draft') + (isDay(d.slot) ? ' · ' + shortDay(d.slot, today) : ''),
240
242
  line: 'The draft waits for you to issue it', product: '', work: null, task: null, own: null, jira: false, canFix: false, editable: false, draft: true,
241
243
  scope: d.ws ? ['p:' + d.ws] : [], act: { label: 'Read the draft', href: '/premium-intelligence.html?tab=library' } });
242
244
  }
@@ -248,7 +250,7 @@ function build(input = {}) {
248
250
  const draftByCadence = new Map([...draftOf.values()].map((d) => [d.cadence, d]));
249
251
  for (const s of input.schedules || []) {
250
252
  if (!s || !isDay(s.next)) continue;
251
- const name = reportName(s.cadence) ;
253
+ const name = reportName(s.cadence) || 'Report';
252
254
  const d = draftByCadence.get(s.cadence);
253
255
  const waits = d && daysBetween(today, s.next) === 0;
254
256
  put({ key: 'rep:' + (s.id || s.cadence) + ':' + day10(s.next), kind: 'report', date: s.next, time: /^\d{2}:\d{2}$/.test(String(s.time || '')) ? s.time : null, until: null, title: s.name ? clip(s.name, 120) : name,
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.624.0",
3
+ "version": "0.625.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.624.0",
9
+ "version": "0.625.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.624.0",
3
+ "version": "0.625.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",
@@ -22,7 +22,7 @@ const nameOf = (p) => productName(p && p.ws, (p && p.name) || '');
22
22
  export const TONES = 3;
23
23
  const esc = (s) => String(s == null ? '' : s).replace(/[&<>"]/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;' }[c]));
24
24
  const initialsOf = (name) => { const w = String(name || '').trim().split(/[\s_-]+/).filter(Boolean); return (w.length > 1 ? w[0][0] + w[1][0] : String(name || '?').slice(0, 2)).toUpperCase(); };
25
- export const codeOf = (p) => { const c = String((p && (p.initials || p.code)) || '').replace(/[^A-Za-z0-9]/g, '').slice(0, 3).toUpperCase(); return c || initialsOf(p && p.name); };
25
+ export const codeOf = (p) => { const c = String((p && (p.initials || p.code)) || '').replace(/[^A-Za-z0-9]/g, '').slice(0, 3).toUpperCase(); return c || initialsOf(p && nameOf(p)); }; // the tile's letters come from the display name (IDPF → ID), never the folder
26
26
  const isPhone = () => typeof matchMedia === 'function' && matchMedia('(max-width: 760px)').matches;
27
27
  const svg = (d, n, w = 2.4) => `<svg width="${n}" height="${n}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="${w}" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="${d}"/></svg>`;
28
28
  const CHEV_D = 'M6 9l6 6 6-6', CHEV_U = 'M6 15l6-6 6 6', TICK = 'M5 12.5l4.5 4.5L19 7.5', PART = 'M7 12h10', PLUS = 'M12 5v14M5 12h14';
@@ -32,8 +32,9 @@ const list = (v) => (Array.isArray(v) ? v : v instanceof Set ? [...v] : []);
32
32
  * A work copy ("acme ⑂ initiative/x") or a linked git worktree of a repository ("mainwt") is not a product of its own: it shows as the
33
33
  * product it is a copy of, and the two are one row in the menu. The names come from GET /api/workspaces, read once when this module loads;
34
34
  * whenNames() resolves when they are in, so a page draws its chip again then. Before that, the pick's own names show. */
35
- /** A workspace's display name: its label, a linked worktree's repository name, else its name. PMOS's own repository reads "PMOS". */
36
- export const displayName = (x) => { const n = (x && (x.label || (x.linked && x.repo_name) || x.name || x.id)) || ''; return /^pmos$/i.test(String(n).trim()) ? 'PMOS' : n; };
35
+ /** A workspace's display name: its label, else `display` from /api/workspaces (the server's one rule, lib/board-pack.js displayName:
36
+ * "pmos-idpf" → "IDPF", the same name the shared copy prints), else a linked worktree's repository name, else its name. */
37
+ export const displayName = (x) => { const n = (x && (x.label || x.display || (x.linked && x.repo_name) || x.name || x.id)) || ''; return /^pmos$/i.test(String(n).trim()) ? 'PMOS' : n; };
37
38
  const own = displayName;
38
39
  let NAMES = new Map(); // ws → { name, key }: key = the ws of the product it belongs to
39
40
  const baseName = (n) => String(n || '').split(' ⑂ ')[0].trim();
@@ -994,6 +994,9 @@ function wsList() {
994
994
  // A linked worktree of a repository (not its main tree): the lists a PM picks a workspace or
995
995
  // product from leave it out — the repo row stands for it. Housekeeping stays in /api/git/worktrees.
996
996
  linked: isLinkedRow(w),
997
+ // The product's display name, by the ONE rule (lib/board-pack.js displayName: "pmos-idpf" → "IDPF"): the label as the PM wrote it,
998
+ // else the folder's (or a linked worktree's repository's) name by that rule. pm/scope-chip.js productName prints this on every page.
999
+ display: w.label || require('./lib/board-pack.js').displayName((isLinkedRow(w) && rid.name) || w.name || w.id),
997
1000
  // Where the tree came from, and the ONE label the repository list can honestly put on a row.
998
1001
  // `remote` is the raw origin URL (null when there is none) so a caller can derive a richer
999
1002
  // answer without guessing; `kind` is the surface's own two-value vocabulary — a repository