create-pmos 0.629.0 → 0.630.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 +14 -14
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/changelog.json +13 -0
- package/workspace/guide/backlog.md +3 -1
- package/workspace/lib/backlog.js +15 -4
- package/workspace/lib/routes-backlog.js +3 -1
- package/workspace/lib/routes-board-publish.js +1 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/bd-backlog.js +9 -5
- package/workspace/public/pm/bk-model.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.630.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,19 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.630.0",
|
|
38
|
+
"at": "2026-11-19T08:05:45.827Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1411,
|
|
43
|
+
"t": "Backlog shows names not ids, the product's name, and no empty columns",
|
|
44
|
+
"s": "Backlog shows names not ids, the product's name, and no empty columns",
|
|
45
|
+
"k": "fix"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
36
49
|
{
|
|
37
50
|
"v": "0.629.0",
|
|
38
51
|
"at": "2026-11-19T07:37:18.343Z",
|
|
@@ -441,19 +454,6 @@
|
|
|
441
454
|
"k": "fix"
|
|
442
455
|
}
|
|
443
456
|
]
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
"v": "0.608.0",
|
|
447
|
-
"at": "2026-11-18T14:38:04.592Z",
|
|
448
|
-
"f": 4,
|
|
449
|
-
"prs": [
|
|
450
|
-
{
|
|
451
|
-
"n": 1356,
|
|
452
|
-
"t": "Prototype rules: each correction becomes a check before a version opens",
|
|
453
|
-
"s": "Prototype rules: each correction becomes a check before a version opens",
|
|
454
|
-
"k": "new"
|
|
455
|
-
}
|
|
456
|
-
]
|
|
457
457
|
}
|
|
458
458
|
]
|
|
459
459
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-19T08:05:42Z"}
|
|
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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-19T08:05:42Z"}
|
|
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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-19T08:05:42Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.630.0",
|
|
4
|
+
"at": "2026-11-19T08:05:45.827Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1411,
|
|
9
|
+
"t": "Backlog shows names not ids, the product's name, and no empty columns",
|
|
10
|
+
"s": "Backlog shows names not ids, the product's name, and no empty columns",
|
|
11
|
+
"k": "fix"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
2
15
|
{
|
|
3
16
|
"v": "0.629.0",
|
|
4
17
|
"at": "2026-11-19T07:37:18.343Z",
|
|
@@ -24,9 +24,11 @@ On a phone the switch has its own line above the list. PMOS remembers your choic
|
|
|
24
24
|
| Jira ticket | The key, when the task is a Jira ticket. |
|
|
25
25
|
| Epic | The epic of the Jira ticket, or **No epic**. |
|
|
26
26
|
| Initiative | The initiative that holds the task. In No home it is empty, or it shows ✦ the initiative PMOS proposes. |
|
|
27
|
-
| Who | The task owner, else the Jira assignee. When PMOS has the task, it shows **PMOS**. |
|
|
27
|
+
| Who | The first name of the task owner, else of the Jira assignee. Your own tasks show your name. When PMOS has the task, it shows **PMOS**. When the owner is an id and not a name, Who is empty and the task is in **Nobody has these**. |
|
|
28
28
|
| State | The state, how late the task is, and what PMOS does or why the task waits for you. |
|
|
29
29
|
|
|
30
|
+
When no task in the list has a Jira ticket, the **Jira ticket** column does not show. When no task has an epic, the **Epic** column does not show.
|
|
31
|
+
|
|
30
32
|
## The groups
|
|
31
33
|
|
|
32
34
|
The groups show in this order. An empty group does not show.
|
package/workspace/lib/backlog.js
CHANGED
|
@@ -51,6 +51,13 @@ const OPEN = new Set(['To do', 'In progress', 'In review']);
|
|
|
51
51
|
const DAY = 864e5;
|
|
52
52
|
const JIRA_KEY = /^[A-Z][A-Z0-9_]*-\d+$/;
|
|
53
53
|
const ME = /^(pm|you|me|wawan)$/i;
|
|
54
|
+
/** A person's first name, or '' when the text is an id and not a name ("557058:4f2a…", "pm:root", "u_12ab", an email, a uuid). */
|
|
55
|
+
function firstName(v) {
|
|
56
|
+
const t = String(v == null ? '' : v).trim();
|
|
57
|
+
if (!t || /[:@\/]/.test(t) || /\d/.test(t) || !/\p{L}/u.test(t)) return '';
|
|
58
|
+
const w = t.split(/\s+/)[0];
|
|
59
|
+
return /^[\p{L}][\p{L}'.-]*$/u.test(w) ? w.slice(0, 40) : '';
|
|
60
|
+
}
|
|
54
61
|
|
|
55
62
|
const str = (v, n = 200) => String(v == null ? '' : v).replace(/\s+/g, ' ').trim().slice(0, n);
|
|
56
63
|
const dayNum = (iso) => { const m = /^(\d{4})-(\d{2})-(\d{2})/.exec(String(iso || '')); return m ? Date.UTC(+m[1], +m[2] - 1, +m[3]) / DAY : null; };
|
|
@@ -255,11 +262,15 @@ function tasksOf(input) {
|
|
|
255
262
|
const G = I.gives instanceof Map ? I.gives : new Map(), RT = I.runTasks instanceof Map ? I.runTasks : new Map();
|
|
256
263
|
const me = str(I.me, 80).toLowerCase();
|
|
257
264
|
const out = [], seen = new Set();
|
|
265
|
+
const pmName = firstName(I.pmName);
|
|
266
|
+
// names, not ids (audit round 4): the PM ("pm", "pm:<slug>", their slug) by their own first name, else "You"; a person by first name;
|
|
267
|
+
// an owner PMOS cannot read as a name (an account id, a key) is nobody, so the task counts under "Nobody has these"
|
|
258
268
|
const whoOf = (owner) => {
|
|
259
|
-
const o = str(owner, 80);
|
|
269
|
+
const o = str(owner, 80).replace(/^(?:person|tracker):/, '').trim();
|
|
260
270
|
if (!o) return { who: '', whoKind: 'none' };
|
|
261
|
-
if (ME.test(o) || (me && o.toLowerCase() === me)) return { who: 'You', whoKind: 'pm' };
|
|
262
|
-
|
|
271
|
+
if (ME.test(o) || /^pm:/i.test(o) || (me && o.toLowerCase() === me)) return { who: pmName || 'You', whoKind: 'pm' };
|
|
272
|
+
const n = firstName(o);
|
|
273
|
+
return n ? { who: n, whoKind: 'person' } : { who: '', whoKind: 'none' };
|
|
263
274
|
};
|
|
264
275
|
const epicOf = (key) => {
|
|
265
276
|
if (!key) return null;
|
|
@@ -320,4 +331,4 @@ function tasksOf(input) {
|
|
|
320
331
|
return out;
|
|
321
332
|
}
|
|
322
333
|
|
|
323
|
-
module.exports = { KINDS, MODE_LABEL, GUARDS, modeOf, countKinds, takeOf, reviewWhy, guardOf, filesOf, messageTo, docTo, agentOf, foldGives, runTaskId, proposeHome, tasksOf, keyOf };
|
|
334
|
+
module.exports = { KINDS, MODE_LABEL, GUARDS, modeOf, countKinds, takeOf, reviewWhy, guardOf, filesOf, messageTo, docTo, agentOf, foldGives, runTaskId, proposeHome, tasksOf, keyOf, firstName };
|
|
@@ -30,6 +30,8 @@ const dayRun = require('./day-run.js');
|
|
|
30
30
|
const assigned = require('./work-assigned.js');
|
|
31
31
|
const WK = require('./work-kind.js');
|
|
32
32
|
const SO = require('./sprint-overview.js');
|
|
33
|
+
/** The PM's own name for Who (PMOS_PM_NAME, else git's user.name: the name Home greets them by); '' when neither is set. */
|
|
34
|
+
const pmNameOf = () => { try { return require('./routes-board-publish.js').sharedBy() || ''; } catch { return ''; } };
|
|
33
35
|
|
|
34
36
|
const RUN_DAYS = 14;
|
|
35
37
|
const bad = (status, error, extra = {}) => ({ status, body: { ok: false, error, ...extra } });
|
|
@@ -115,7 +117,7 @@ function listOf(ctx, wsId, boardId, now) {
|
|
|
115
117
|
let factory = false; try { factory = WK.factoryRuns(w.root); } catch { factory = false; }
|
|
116
118
|
const inis = live.filter((x) => !x.closed).map((x) => ({ id: x.id, title: x.title, kind: BL.KINDS.includes(x.kind) ? x.kind : 'product', epics: x.epics || [] }));
|
|
117
119
|
const tasks = BL.tasksOf({ ws: w.id, board: board.id, product: board.product || board.name || w.name || w.id, today, items, inis, readings: R, sprintKeys,
|
|
118
|
-
moves: fr.folded.ticketMoves || new Map(), homeless, gives, runTasks, factory, me: actorLib.PM_SLUG });
|
|
120
|
+
moves: fr.folded.ticketMoves || new Map(), homeless, gives, runTasks, factory, me: actorLib.PM_SLUG, pmName: pmNameOf() });
|
|
119
121
|
const mode = BL.modeOf(inis.map((x) => x.kind));
|
|
120
122
|
// the product's display name ("IDPF"), not its folder id ("pmos-idpf"): the board's own name first
|
|
121
123
|
const product = board.name || board.product || w.name || w.id;
|
|
@@ -85,7 +85,7 @@ const kindOf = (pack) => (pack && pack.scope && pack.scope.kind) || 'multi';
|
|
|
85
85
|
const stateDir = (ctx) => ctx.runtimeDir;
|
|
86
86
|
|
|
87
87
|
module.exports = {
|
|
88
|
-
viewerVersion, cleanBy,
|
|
88
|
+
viewerVersion, cleanBy, sharedBy,
|
|
89
89
|
prefixes: ['/api/board-publish'],
|
|
90
90
|
handle: async (req, res, url, ctx) => {
|
|
91
91
|
const p = url.pathname;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.630.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pmos-workspace",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.630.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* Every write is a route's own (lib/routes-backlog.js, and the Board's task routes for a person, a date, an initiative and Archive) and comes
|
|
15
15
|
* with Undo where the route has one. The words say PMOS, never the model's name. pm/premium-board.js calls sync() after each read of the board. */
|
|
16
16
|
import * as BM from './bk-model.js';
|
|
17
|
+
import { productName } from './scope-chip.js'; // the product's display name ("IDPF"), never its folder id
|
|
17
18
|
import * as SP from './bd-sprint.js'; // the sprint overview while "This sprint" is on (initiative sprint-overview)
|
|
18
19
|
|
|
19
20
|
const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
|
|
@@ -77,7 +78,7 @@ export async function load() {
|
|
|
77
78
|
const ok = got.filter(Boolean);
|
|
78
79
|
// the oldest Jira read of the pick (the sprint band says when Jira was last read) and the PM's edits of each sprint's overview
|
|
79
80
|
const reads = ok.map((r) => r.readAt).filter(Boolean).sort();
|
|
80
|
-
DATA = { readAt: reads[0] || null, notes: Object.fromEntries(ok.map((r) => [r.ws + '|' + r.board, r.sprintNotes || {}])), tasks: ok.flatMap((r) => r.tasks || []), modes: ok.map((r) => ({ product: r.product, mode: r.mode, label: r.modeLabel, kinds: r.kinds || null })), inis: ok.flatMap((r) => (r.inis || []).map((x) => ({ ...x, ws: r.ws, board: r.board, product: r.product }))),
|
|
81
|
+
DATA = { readAt: reads[0] || null, notes: Object.fromEntries(ok.map((r) => [r.ws + '|' + r.board, r.sprintNotes || {}])), tasks: ok.flatMap((r) => r.tasks || []), modes: ok.map((r) => ({ product: productName(r.ws, r.product), mode: r.mode, label: r.modeLabel, kinds: r.kinds || null })), inis: ok.flatMap((r) => (r.inis || []).map((x) => ({ ...x, ws: r.ws, board: r.board, product: productName(r.ws, r.product) }))),
|
|
81
82
|
err: ok.length ? (ok.length < S.length ? 'One product could not be read; its tasks are not here.' : '') : 'The tasks could not be read. Try again in a moment.', many: S.length > 1 };
|
|
82
83
|
// ?ini=<initiative id> (the initiative popup's "Open in Backlog"): the Initiative facet starts on that initiative, once
|
|
83
84
|
if (!iniApplied) {
|
|
@@ -127,15 +128,18 @@ function draw() {
|
|
|
127
128
|
const G = th ? [{ k: 'theme', n: th.name, sub: '', open: true, total: th.total,
|
|
128
129
|
rows: BM.sortRows(T.filter((t) => th.uids.has(uidOf(t)) && BM.keeps(t, CHIPS, PICK, partB())), SORT) }]
|
|
129
130
|
: BM.groupsOf(T, { chips: CHIPS, pick: PICK, sort: SORT, partB: partB() });
|
|
130
|
-
const
|
|
131
|
-
const
|
|
131
|
+
const cols = colsOf(T, COLS);
|
|
132
|
+
const head = headHtml(cols);
|
|
133
|
+
const body = G.map((g) => groupHtml(g, cols)).join('') || `<p class="bk-none">${T.length ? 'No task matches these filters.' : 'No open task here. A task added to an initiative, or a Jira ticket of a sprint, shows here.'}</p>`;
|
|
132
134
|
host.innerHTML = `<div class="bk-chips" role="group" aria-label="Show">${chips}</div>${mode}${showing}${said}${DATA.err ? `<p class="bk-err">${esc(DATA.err)}</p>` : ''}${band}`
|
|
133
|
-
+ `<div class="bk" role="table" aria-label="Backlog">${head}${body}</div>`;
|
|
135
|
+
+ `<div class="bk" role="table" aria-label="Backlog" style="--bk-cols: ${colsCss(cols)}">${head}${body}</div>`;
|
|
134
136
|
drawBar();
|
|
135
137
|
}
|
|
136
138
|
/* ── the columns: Task first and the actions last, always; the ones between are a list, so the initiative popup can leave Initiative out ── */
|
|
137
139
|
export const COLS = ['jira', 'epic', 'ini', 'who', 'state'];
|
|
138
140
|
const COL = { jira: ['Jira ticket', '104px'], epic: ['Epic', 'minmax(80px, 130px)'], ini: ['Initiative', 'minmax(110px, 160px)'], who: ['Who', '76px'], due: ['Due', 'minmax(80px, 150px)'], state: ['State', 'minmax(200px, 290px)'] };
|
|
141
|
+
/** Zero is silence (same rule as Work): a Jira or Epic column with no value in the whole list is not drawn. */
|
|
142
|
+
export const colsOf = (tasks, cols) => cols.filter((c) => (c === 'jira' ? tasks.some((t) => t.key) : c === 'epic' ? tasks.some((t) => t.epic) : true));
|
|
139
143
|
const colsCss = (cols) => `40px minmax(240px, 1fr) ${cols.map((c) => COL[c][1]).join(' ')} 72px`;
|
|
140
144
|
function headHtml(cols) {
|
|
141
145
|
return `<div class="bk-r bk-h" role="row"><span class="c-ck"></span><span class="c-n">Task</span>${cols.map((c) => `<span class="c-${c}">${COL[c][0]}</span>`).join('')}<span class="c-a"></span></div>`;
|
|
@@ -485,7 +489,7 @@ function kindsPop(at) {
|
|
|
485
489
|
* list (the rows of GET /api/backlog). After a press it calls api.reload(); the page reads again and draws listHtml anew. No tick boxes
|
|
486
490
|
* and no bar in an embedded list: ticking is the Backlog's. */
|
|
487
491
|
export function listHtml(tasks, o = {}) {
|
|
488
|
-
const cols = (Array.isArray(o.cols) ? o.cols : COLS).filter((c) => COL[c]);
|
|
492
|
+
const cols = colsOf(tasks || [], (Array.isArray(o.cols) ? o.cols : COLS).filter((c) => COL[c]));
|
|
489
493
|
const G = BM.groupsOf(tasks || [], { ini: o.ini, sort: o.sort || 'due', partB: o.partB !== false });
|
|
490
494
|
const keep = FOLD, more = MORE;
|
|
491
495
|
FOLD = o.fold || {}; MORE = o.more || new Set();
|
|
@@ -104,9 +104,10 @@ export function groupsOf(tasks, o = {}) {
|
|
|
104
104
|
if (!rows.length) continue;
|
|
105
105
|
let sub = g.sub;
|
|
106
106
|
if (g.k === 'people') {
|
|
107
|
+
// each person by name; the PM (their own name, or "you" when PMOS does not know it) last
|
|
107
108
|
const by = new Map();
|
|
108
|
-
for (const t of rows)
|
|
109
|
-
sub = [...by].sort((a, b) =>
|
|
109
|
+
for (const t of rows) { const k = t.whoKind === 'pm' ? '\u0000pm' : t.who; const e = by.get(k) || { w: t.whoKind === 'pm' ? (t.who === 'You' || !t.who ? 'you' : t.who) : t.who, n: 0, pm: t.whoKind === 'pm' }; e.n++; by.set(k, e); }
|
|
110
|
+
sub = [...by.values()].sort((a, b) => a.pm - b.pm || b.n - a.n).map((e) => e.w + ' ' + e.n).join(', ');
|
|
110
111
|
}
|
|
111
112
|
if (g.k === 'nohome') { const p = rows.filter((t) => t.propose).length; sub = 'in no initiative' + (p ? '. PMOS can place ' + p : ''); }
|
|
112
113
|
out.push({ k: g.k, n: g.n, sub, rows, open: g.open });
|