create-pmos 0.623.0 → 0.624.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 +9 -3
- 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 +8 -2
- package/workspace/lib/board-pack.js +34 -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.624.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.
|
|
38
|
-
"at": "2026-11-19T05:
|
|
37
|
+
"v": "0.624.0",
|
|
38
|
+
"at": "2026-11-19T05:29:23.103Z",
|
|
39
39
|
"f": 4,
|
|
40
40
|
"prs": [
|
|
41
41
|
{
|
|
@@ -43,6 +43,12 @@
|
|
|
43
43
|
"t": "Work's bars stop at the timeline's edge at every span",
|
|
44
44
|
"s": "Work's bars stop at the timeline's edge at every span",
|
|
45
45
|
"k": "fix"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"n": 1404,
|
|
49
|
+
"t": "A shared copy carries no task in no stage",
|
|
50
|
+
"s": "A shared copy carries no task in no stage",
|
|
51
|
+
"k": "fix"
|
|
46
52
|
}
|
|
47
53
|
]
|
|
48
54
|
},
|
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-19T05:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-19T05:29:20Z"}
|
|
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:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-19T05:29:20Z"}
|
|
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:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-19T05:29:20Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"v": "0.
|
|
4
|
-
"at": "2026-11-19T05:
|
|
3
|
+
"v": "0.624.0",
|
|
4
|
+
"at": "2026-11-19T05:29:23.103Z",
|
|
5
5
|
"f": 4,
|
|
6
6
|
"prs": [
|
|
7
7
|
{
|
|
@@ -9,6 +9,12 @@
|
|
|
9
9
|
"t": "Work's bars stop at the timeline's edge at every span",
|
|
10
10
|
"s": "Work's bars stop at the timeline's edge at every span",
|
|
11
11
|
"k": "fix"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"n": 1404,
|
|
15
|
+
"t": "A shared copy carries no task in no stage",
|
|
16
|
+
"s": "A shared copy carries no task in no stage",
|
|
17
|
+
"k": "fix"
|
|
12
18
|
}
|
|
13
19
|
]
|
|
14
20
|
},
|
|
@@ -215,6 +215,38 @@ function teammateDash(d) {
|
|
|
215
215
|
|
|
216
216
|
function boardModelOf(answer) { return answer && answer.model ? clone(answer.model) : null; }
|
|
217
217
|
|
|
218
|
+
/** The stages a row's tasks can sit in: its own workflow's, else the board's steps (the same rule as ini-view-model.js stagesOf). */
|
|
219
|
+
const PF_ID = 'product-feature';
|
|
220
|
+
const normStage = (x) => String(x || '').trim().toLowerCase().replace(/^\u25c6\s*/, '').replace(/\s+/g, ' ');
|
|
221
|
+
function stageListOf(r, steps) {
|
|
222
|
+
const own = r && r.wf && r.wf.id && r.wf.id !== PF_ID && Array.isArray(r.wfStages) && r.wfStages.length && r.wfStage;
|
|
223
|
+
return own ? r.wfStages.map((s) => ({ key: s.key, name: s.name })) : (steps || []).map((s) => ({ key: s.key, name: s.label }));
|
|
224
|
+
}
|
|
225
|
+
/** A task's stage, or '' (the same rule as ini-view-model.js sectionOf). */
|
|
226
|
+
function stageOfTask(t, list, map) {
|
|
227
|
+
const has = (k) => list.some((s) => s.key === k);
|
|
228
|
+
const via = (k) => { if (!k) return ''; if (has(k)) return k; const m = map && (map[k] || map[normStage(k)]); return typeof m === 'string' && has(m) ? m : ''; };
|
|
229
|
+
if (typeof t.section === 'string') return via(t.section);
|
|
230
|
+
if (t.from && t.from.stage) { const v = via(t.from.stage); if (v) return v; }
|
|
231
|
+
if (t.itemStage) { const n = normStage(t.itemStage), hit = list.find((s) => s.key === t.itemStage || normStage(s.name) === n || normStage(s.key) === n); if (hit) return hit.key; const v = via(t.itemStage); if (v) return v; }
|
|
232
|
+
return '';
|
|
233
|
+
}
|
|
234
|
+
/** A copy has no Backlog (design thread, point 22): a task in no stage is not drawn there, so it does not enter the pack. Walks every row with
|
|
235
|
+
* tasks in the model; returns the uids it dropped, so the Tasks tab drops the same tasks. */
|
|
236
|
+
function stagedTasksOnly(model) {
|
|
237
|
+
const steps = (model && model.steps) || [], dropped = new Set();
|
|
238
|
+
const walk = (v) => {
|
|
239
|
+
if (Array.isArray(v)) { v.forEach(walk); return; }
|
|
240
|
+
if (!v || typeof v !== 'object') return;
|
|
241
|
+
if (Array.isArray(v.tasks) && v.id != null && ('stage' in v || 'wf' in v)) {
|
|
242
|
+
const list = stageListOf(v, steps);
|
|
243
|
+
v.tasks = v.tasks.filter((t) => { const on = !!t && !!stageOfTask(t, list, v.wfMap); if (!on && t && t.uid != null) dropped.add(v.id + '\u0000' + t.uid); return on; });
|
|
244
|
+
}
|
|
245
|
+
for (const k of Object.keys(v)) if (k !== 'tasks') walk(v[k]);
|
|
246
|
+
};
|
|
247
|
+
walk(model);
|
|
248
|
+
return dropped;
|
|
249
|
+
}
|
|
218
250
|
function buildPack({ ws, board, selection, answers, meta }) {
|
|
219
251
|
if (!Array.isArray(selection) || !selection.length) plain('Pick at least one product, program or initiative to publish.');
|
|
220
252
|
const boardKey = Object.keys(answers || {}).find((k) => pathOf(k) === '/api/board-premium' && queryOf(k).get('ws') === ws);
|
|
@@ -230,6 +262,7 @@ function buildPack({ ws, board, selection, answers, meta }) {
|
|
|
230
262
|
const model = {};
|
|
231
263
|
for (const k of MODEL_KEYS) if (k in model0) model[k] = model0[k];
|
|
232
264
|
const swept = sweep(teammate(settled(pruneRecords(model, outside))), needles);
|
|
265
|
+
const staged = stagedTasksOnly(swept); // tasks in no stage stay out of a copy
|
|
233
266
|
if (swept.board && swept.board.name) { // "IDPF", never the folder "pmos-idpf" (design check): the board's name and the product's own row
|
|
234
267
|
const raw = swept.board.name; swept.board.name = displayName(raw);
|
|
235
268
|
for (const r of swept.rows || []) if (r && r.title === raw) r.title = swept.board.name;
|
|
@@ -276,7 +309,7 @@ function buildPack({ ws, board, selection, answers, meta }) {
|
|
|
276
309
|
} else if (p === '/api/boards/items') {
|
|
277
310
|
// the Tasks tab: the tasks of the selection's initiatives, nothing of another initiative
|
|
278
311
|
const body = clone(answers[k] || {});
|
|
279
|
-
if (Array.isArray(body.items)) body.items = body.items.filter((t) => t && R.keep.has(t.ini)).map(teammateTask);
|
|
312
|
+
if (Array.isArray(body.items)) body.items = body.items.filter((t) => t && R.keep.has(t.ini) && !staged.has(t.ini + '\u0000' + t.uid)).map(teammateTask);
|
|
280
313
|
if (Array.isArray(body.initiatives)) body.initiatives = body.initiatives.filter((x) => x && R.keep.has(x.id || x));
|
|
281
314
|
delete body.jira; delete body.jiraProjects; // the Jira site and its projects are the publisher's (Part B b)
|
|
282
315
|
responses[k] = sweep(teammate(settled(body)), needles) || {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.624.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.624.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED