create-pmos 0.461.0 → 0.462.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/lib/board-premium.js +4 -1
- package/workspace/lib/programs.js +4 -0
- package/workspace/lib/routes-board-premium.js +21 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.462.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": {
|
|
@@ -32,6 +32,19 @@
|
|
|
32
32
|
"audit"
|
|
33
33
|
],
|
|
34
34
|
"pmosChanges": [
|
|
35
|
+
{
|
|
36
|
+
"v": "0.462.0",
|
|
37
|
+
"at": "2026-10-31T02:08:48.803Z",
|
|
38
|
+
"f": 3,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 1113,
|
|
42
|
+
"t": "Program initiatives on the board list; a leave in the main tree wins over the worktree copy",
|
|
43
|
+
"s": "Program initiatives on the board list; a leave in the main tree wins over the worktree copy",
|
|
44
|
+
"k": "fix"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
35
48
|
{
|
|
36
49
|
"v": "0.461.0",
|
|
37
50
|
"at": "2026-10-31T01:34:13.377Z",
|
|
@@ -284,19 +297,6 @@
|
|
|
284
297
|
"k": "new"
|
|
285
298
|
}
|
|
286
299
|
]
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
"v": "0.442.0",
|
|
290
|
-
"at": "2026-10-28T11:41:20.468Z",
|
|
291
|
-
"f": 3,
|
|
292
|
-
"prs": [
|
|
293
|
-
{
|
|
294
|
-
"n": 1086,
|
|
295
|
-
"t": "Initiative Viewer on phone and desktop, Adler dressed for the season, clear task marks (feedback batch 18 items 1, 8, 12, 13)",
|
|
296
|
-
"s": "Initiative Viewer on phone and desktop, Adler dressed for the season, clear task marks (feedback batch 18 items 1, 8, 12, 13)",
|
|
297
|
-
"k": "new"
|
|
298
|
-
}
|
|
299
|
-
]
|
|
300
300
|
}
|
|
301
301
|
]
|
|
302
302
|
}
|
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-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-31T02:08:45Z"}
|
|
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-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-31T02:08:45Z"}
|
|
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-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-31T02:08:45Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.462.0",
|
|
4
|
+
"at": "2026-10-31T02:08:48.803Z",
|
|
5
|
+
"f": 3,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1113,
|
|
9
|
+
"t": "Program initiatives on the board list; a leave in the main tree wins over the worktree copy",
|
|
10
|
+
"s": "Program initiatives on the board list; a leave in the main tree wins over the worktree copy",
|
|
11
|
+
"k": "fix"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
2
15
|
{
|
|
3
16
|
"v": "0.461.0",
|
|
4
17
|
"at": "2026-10-31T01:34:13.377Z",
|
|
@@ -296,7 +296,10 @@ function build(f) {
|
|
|
296
296
|
const rows = (f.rows || []).slice(0, MAX_LIST).map((r) => rowOf(r, wf, todayIso));
|
|
297
297
|
// the on-hold rows follow the open ones; the cancelled and archived rows sit under the list's fold (initiative premium-board-actions)
|
|
298
298
|
for (const r of (f.held || [])) if (rows.length < MAX_LIST + 50 && !rows.some((x) => x.id === r.id)) rows.push(rowOf(r, wf, todayIso));
|
|
299
|
-
|
|
299
|
+
// an initiative a program holds stays on the list whatever its horizon: the list reads the `now` and `risk` views, and a member the
|
|
300
|
+
// program page cannot find here shows as "not read" and its program as "No open initiatives"
|
|
301
|
+
for (const r of (f.members || [])) if (rows.length < MAX_LIST + 100 && !rows.some((x) => x.id === r.id)) rows.push(rowOf(r, wf, todayIso));
|
|
302
|
+
const gone ={ cancelled: (f.cancelled || []).slice(0, MAX_LIST).map((r) => rowOf(r, wf, todayIso)), archived: (f.archived || []).slice(0, MAX_LIST).map((r) => rowOf(r, wf, todayIso)) };
|
|
300
303
|
// the list reads the board's own rank; "Do this first" only where a record says the first row is late
|
|
301
304
|
if (rows[0] && rows[0].late) rows[0].first = true;
|
|
302
305
|
const stages = (f.columns || []).map((c) => ({ stage: c.stage, cat: c.cat, count: Number(c.count) || 0, rows: (c.rows || []).slice(0, STAGE_ROWS).map((r) => rowOf(r, wf, todayIso)), more: Math.max(0, (Number(c.count) || 0) - STAGE_ROWS) }));
|
|
@@ -150,6 +150,10 @@ function merge(perWs) {
|
|
|
150
150
|
Object.assign(m.checks, p.checks);
|
|
151
151
|
// the route writes the order line to the charter's workspace; a line elsewhere counts only while the charter's has none
|
|
152
152
|
if (p.orderSet && (p.charter || !m.orderHome)) { m.order = p.order; if (p.charter) m.orderHome = true; }
|
|
153
|
+
// two ledgers can stand for one workspace (a linked worktree's copy is read as its main tree's, lib/routes-programs.js), the later one
|
|
154
|
+
// read last: what it says of an initiative (a member line or a leave line) replaces what the earlier one said, so a leave in the main
|
|
155
|
+
// tree is not undone by the worktree's older member line
|
|
156
|
+
for (const ini of p.touched) m.members = m.members.filter((x) => !(x.ws === ws && x.initiative === ini));
|
|
153
157
|
for (const ini of p.members) if (!m.members.some((x) => x.ws === ws && x.initiative === ini)) m.members.push({ ws, initiative: ini });
|
|
154
158
|
for (const t of p.tasks) m.tasks.push({ ...t, ws });
|
|
155
159
|
for (const ini of p.touched) m.touched.push({ ws, initiative: ini });
|
|
@@ -51,7 +51,15 @@ async function metrics(req, res, url, ctx) {
|
|
|
51
51
|
return true;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
/** The ids of the initiatives of workspace `ws` that a program holds: the rows the premium board keeps on its list whatever their horizon. */
|
|
55
|
+
const programMemberIds = (programs, ws) => {
|
|
56
|
+
const ids = new Set();
|
|
57
|
+
for (const p of programs || []) for (const m of (p && p.members) || []) if (m && m.ws === ws) ids.add(m.initiative);
|
|
58
|
+
return ids;
|
|
59
|
+
};
|
|
60
|
+
|
|
54
61
|
module.exports = {
|
|
62
|
+
programMemberIds,
|
|
55
63
|
prefixes: ['/api/board-premium', '/api/board-metrics-premium'],
|
|
56
64
|
handle: async (req, res, url, ctx) => {
|
|
57
65
|
if (url.pathname === '/api/board-metrics-premium') return metrics(req, res, url, ctx);
|
|
@@ -92,10 +100,22 @@ module.exports = {
|
|
|
92
100
|
// the documents the PM added (lib/custom-docs.js): one file read, no route
|
|
93
101
|
let custom = [];
|
|
94
102
|
try { const w = ctx.getWs ? ctx.getWs(pick.ws) : null; custom = w ? Custom.list(w.root, 'board:' + pick.id) : []; } catch { custom = []; missing.push('added documents'); }
|
|
103
|
+
// the initiatives of this workspace that a program holds (GET /api/programs): the list above is the `now` and `risk` views, so a member
|
|
104
|
+
// on a later horizon is not in it, and the program page would call it unread. Their rows come from the board's own `all` view.
|
|
105
|
+
const rowsNow = listOf(rk, nw);
|
|
106
|
+
let members = [];
|
|
107
|
+
try {
|
|
108
|
+
const ids = programMemberIds(require('./routes-programs.js').all(ctx), pick.ws);
|
|
109
|
+
const have = new Set(rowsNow.map((r) => r.id));
|
|
110
|
+
if ([...ids].some((id) => !have.has(id))) {
|
|
111
|
+
const every = ok(await via(boards, '/api/boards/backlog' + q + '&view=all&limit=300', req, ctx), 'program initiatives');
|
|
112
|
+
members = ((every && every.rows) || []).filter((r) => ids.has(r.id) && !have.has(r.id));
|
|
113
|
+
}
|
|
114
|
+
} catch { missing.push('program initiatives'); }
|
|
95
115
|
const model = BoardPremium.build({
|
|
96
116
|
now: Date.now(), pending: false, missing: missing.filter((m) => m !== 'core documents'), boards: all.map((x) => ({ ws: x.ws, id: x.id, name: x.name })),
|
|
97
117
|
board: head.body.board, counts: head.body.counts, nextRelease: head.body.nextRelease || null, pastReleases: head.body.pastReleases || [],
|
|
98
|
-
rows:
|
|
118
|
+
rows: rowsNow, members, columns: c ? c.columns : [], sprints: s || { source: 'none', sprints: [] }, docs: d, custom,
|
|
99
119
|
items: its && its.body && its.body.ok !== false && Array.isArray(its.body.items) ? its.body.items : [], held: hd ? hd.rows : [], cancelled: cn ? cn.rows : [], archived: ar ? ar.rows : [], asks: ak ? ak.asks || [] : null,
|
|
100
120
|
});
|
|
101
121
|
// every open initiative's anchor, not only the 100 rows listed (batch 17 item 1): Home's product card counts the goals as the ready-made
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.462.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.462.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED