create-pmos 0.622.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.622.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": {
@@ -33,6 +33,25 @@
33
33
  "audit"
34
34
  ],
35
35
  "pmosChanges": [
36
+ {
37
+ "v": "0.624.0",
38
+ "at": "2026-11-19T05:29:23.103Z",
39
+ "f": 4,
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
+ {
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"
52
+ }
53
+ ]
54
+ },
36
55
  {
37
56
  "v": "0.622.0",
38
57
  "at": "2026-11-19T05:05:08.698Z",
@@ -435,25 +454,6 @@
435
454
  "k": "fix"
436
455
  }
437
456
  ]
438
- },
439
- {
440
- "v": "0.603.0",
441
- "at": "2026-11-18T08:43:23.637Z",
442
- "f": 4,
443
- "prs": [
444
- {
445
- "n": 1345,
446
- "t": "Timeline bars and axis labels start on their day, under the Today line",
447
- "s": "Timeline bars and axis labels start on their day, under the Today line",
448
- "k": "fix"
449
- },
450
- {
451
- "n": 1346,
452
- "t": "A finished initiative's lateness counts to when it finished, not today",
453
- "s": "A finished initiative's lateness counts to when it finished, not today",
454
- "k": "fix"
455
- }
456
- ]
457
457
  }
458
458
  ]
459
459
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@9350264c
1
+ kernel-source: pmos@f0c71ed1
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:05:05Z"}
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:05:05Z"}
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:05:05Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-19T05:29:20Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,23 @@
1
1
  [
2
+ {
3
+ "v": "0.624.0",
4
+ "at": "2026-11-19T05:29:23.103Z",
5
+ "f": 4,
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
+ {
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"
18
+ }
19
+ ]
20
+ },
2
21
  {
3
22
  "v": "0.622.0",
4
23
  "at": "2026-11-19T05:05:08.698Z",
@@ -21,7 +21,7 @@ On a computer the Board place is **Work**: one list of initiatives with the time
21
21
 
22
22
  - **The columns.** Initiative, Product, Stage, Next milestone and Date, in this order. **Next milestone** is the name of the milestone. When an initiative has no milestone, the cell is empty and the date is the end of its plan. Only a late or at-risk date has colour, for example "4 Nov · 14 days late". The Product column does not show when you pick one product. A product shows by its display name, for example **IDPF**, in the Product column, the filter and the product chip at the top. A work copy or a worktree shows as its product.
23
23
  - **The groups.** The rows are under their goals. An initiative with no goal is under **No goal yet**.
24
- - **The timeline.** Each bar is the same bar as on the Board: dark grey is done, blue is now, light grey is still planned. Every milestone is a diamond at its date; press it to see its card. A thin line shows a gap in the plan, and an orange line goes from a missed date to today. Press a bar to see the stages of its workflow in a card, each with its date when it has one. Press outside the card or press Esc to close it. An initiative with no start and no end has an empty timeline cell. Closed and completed initiatives fold into one last line, for example **11 closed**; press it to show them. The span chooser at the top left of the timeline has **Quarter**, **Half**, **Year**, **2 yr**, **5 yr** and **Full**. **Full** shows every bar from the earliest start to the latest end. The button beside it hides the timeline. The key is under the list.
24
+ - **The timeline.** Each bar is the same bar as on the Board: dark grey is done, blue is now, light grey is still planned. Every milestone is a diamond at its date; press it to see its card. A thin line shows a gap in the plan, and an orange line goes from a missed date to today. Press a bar to see the stages of its workflow in a card, each with its date when it has one. Press outside the card or press Esc to close it. An initiative with no start and no end has an empty timeline cell. A bar that starts or ends outside the span stops at the timeline's edge, so the columns beside it always show. Closed and completed initiatives fold into one last line, for example **11 closed**; press it to show them. The span chooser at the top left of the timeline has **Quarter**, **Half**, **Year**, **2 yr**, **5 yr** and **Full**. **Full** shows every bar from the earliest start to the latest end. The button beside it hides the timeline. The key is under the list.
25
25
  - **The view menu.** Press the tune button. **Filter** comes first: Needs (late, at risk, waits on you, blocked), Stage, Status, Product, Program, Owner and Sprint. Each value shows how many initiatives it holds, and you can pick several at once. A line above the table says what shows, for example "Showing Build and Deliver of IDPF · 14 hidden · Show all", and the tune button shows how many filters are on. **Sort** takes up to three keys: press a column to add it, press it again to turn it round, and press its × to take it out. **PMOS order** puts what needs you first. **View** has **Group by** and the **Timeline** switch. **Columns** opens a switch for each column; drag a column to change the order (or use Alt+↑ and Alt+↓). PMOS remembers the view in this browser, and **Reset** shows when the view is not the usual one. If the sprint in the Jira reading has ended, the menu says so, for example "MAD Sprint 115 has ended, showing MAD Sprint 116". The ⋯ menu has **New asks**, **Sprints and releases**, **Shared with me** and **Read Jira again**.
26
26
  - **Sort.** Press a column title to sort by it. Press it again to go back to your usual order.
27
27
  - **Edit in place.** Press the Stage of a row to move the initiative to another stage. The toast has **Undo**.
@@ -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.622.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.622.0",
9
+ "version": "0.624.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.622.0",
3
+ "version": "0.624.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",
@@ -34,7 +34,7 @@ body.bd-page.wk-on .bd-hd .bd-tools { margin-left: auto; }
34
34
 
35
35
  /* the timeline column */
36
36
  .wk-x { align-self: stretch; position: relative; overflow: visible !important; box-shadow: inset 1px 0 0 var(--cz-hair); }
37
- .wk-bw { position: absolute; inset: 0 8px; }
37
+ .wk-bw { position: absolute; inset: 0 8px; overflow: clip; overflow-clip-margin: 8px; } /* a bar that starts or ends past the span stops at the timeline's edge (Quarter, 2026-11-19); the stage card sits outside it */
38
38
  .wk-gl { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--cz-hair); }
39
39
  .wk-now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--cz-ink); opacity: .7; z-index: 3; }
40
40
  .wk-xh { display: block; }
@@ -56,7 +56,7 @@ body.bd-page.wk-on .bd-hd .bd-tools { margin-left: auto; }
56
56
  .wk-i.hov { z-index: 5; }
57
57
 
58
58
  /* the stages card under a pointed row */
59
- .wk-card { position: absolute; left: auto; right: 0; width: max(100%, calc(var(--n, 8) * 80px + 24px)); box-sizing: border-box; top: 36px; z-index: 20; padding: 10px 12px 12px; border-radius: 14px; background: var(--cz-card); box-shadow: 0 12px 32px -8px rgba(30, 34, 42, .3), 0 0 0 1px var(--cz-hair); white-space: normal; cursor: default; }
59
+ .wk-card { position: absolute; left: auto; right: 8px; width: max(100%, calc(var(--n, 8) * 80px + 24px)); box-sizing: border-box; top: 36px; z-index: 20; padding: 10px 12px 12px; border-radius: 14px; background: var(--cz-card); box-shadow: 0 12px 32px -8px rgba(30, 34, 42, .3), 0 0 0 1px var(--cz-hair); white-space: normal; cursor: default; }
60
60
  .wk-card p { margin: 0 0 10px; font-size: var(--fs-meta); font-weight: var(--fw-strong); color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
61
61
  .wk-cg { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); position: relative; }
62
62
  .wk-cg::before { content: ''; position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 7px; height: 4px; border-radius: 2px; background: var(--wk-plan); }
@@ -365,7 +365,7 @@ export function listHtml(rows, o = {}) {
365
365
  + `<div class="wk-r wk-h" role="row">${sortHd('title', 'Initiative')}${keys.map((k) => sortHd(k, byK[k].n)).join('')}${tlHead}${showTl}</div>`;
366
366
  const row = (r) => `<div class="wk-r wk-i${o.sel === r.key ? ' sel' : ''}${CARD === r.key ? ' hov' : ''}${isClosed(r) ? ' cl' : ''}" role="row" tabindex="0" data-key="${esc(r.key)}" aria-label="${esc(r.title + (keys.length ? ', ' + words(r, keys, oo) : ''))}">`
367
367
  + `<span role="cell" class="n">${esc(r.title)}</span>${keys.map((k) => cellHtml(r, k, oo)).join('')}`
368
- + (tl ? `<span role="cell" class="wk-x" data-wkbar="${esc(r.key)}"><span class="wk-bw">${grid}${o.bar ? o.bar(r, W) : barHtml(r, W, { now })}${CARD === r.key ? cardHtml(r, W, now) : ''}</span></span>` : '') + '</div>';
368
+ + (tl ? `<span role="cell" class="wk-x" data-wkbar="${esc(r.key)}"><span class="wk-bw">${grid}${o.bar ? o.bar(r, W) : barHtml(r, W, { now })}</span>${CARD === r.key ? cardHtml(r, W, now) : ''}</span>` : '') + '</div>';
369
369
  if (!rows.length && every.length) h += `<p class="wk-empty">No initiative matches these filters. <button type="button" class="wk-sa" data-wkclear>Show all</button></p>`;
370
370
  const all = o.order ? o.order(rows) : rows, base = all.filter((r) => !isClosed(r)), shut = all.filter(isClosed), G = groupsOf(base, v.group, oo);
371
371
  const gline = (inner) => `<div class="wk-r wk-g" role="row">${inner}${tl ? `<span class="wk-x" aria-hidden="true"><span class="wk-bw">${grid}</span></span>` : ''}</div>`;