create-pmos 0.603.0 → 0.604.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 -20
- 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/layout.md +1 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/panels-test.js +10 -0
- package/workspace/public/pm/bd-ini-panel.js +7 -5
- package/workspace/public/pm/cozy-panels.js +1 -0
- package/workspace/public/pm/cozy-viewer.js +12 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.604.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.604.0",
|
|
38
|
+
"at": "2026-11-18T10:31:31.776Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1349,
|
|
43
|
+
"t": "One item, one panel",
|
|
44
|
+
"s": "One item, one panel",
|
|
45
|
+
"k": "fix"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
36
49
|
{
|
|
37
50
|
"v": "0.603.0",
|
|
38
51
|
"at": "2026-11-18T08:33:37.110Z",
|
|
@@ -303,25 +316,6 @@
|
|
|
303
316
|
"k": "fix"
|
|
304
317
|
}
|
|
305
318
|
]
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
"v": "0.584.0",
|
|
309
|
-
"at": "2026-11-17T06:55:14.683Z",
|
|
310
|
-
"f": 4,
|
|
311
|
-
"prs": [
|
|
312
|
-
{
|
|
313
|
-
"n": 1319,
|
|
314
|
-
"t": "The product improve loop reads PMOS's stage from a hosted PMOS checkout",
|
|
315
|
-
"s": "The product improve loop reads PMOS's stage from a hosted PMOS checkout",
|
|
316
|
-
"k": "fix"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"n": 1318,
|
|
320
|
-
"t": "Read the add-directory trust prompt as a real 80-column pane draws it",
|
|
321
|
-
"s": "Read the add-directory trust prompt as a real 80-column pane draws it",
|
|
322
|
-
"k": "fix"
|
|
323
|
-
}
|
|
324
|
-
]
|
|
325
319
|
}
|
|
326
320
|
]
|
|
327
321
|
}
|
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-18T10:31:28Z"}
|
|
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-18T10:31:28Z"}
|
|
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-18T10:31:28Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.604.0",
|
|
4
|
+
"at": "2026-11-18T10:31:31.776Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1349,
|
|
9
|
+
"t": "One item, one panel",
|
|
10
|
+
"s": "One item, one panel",
|
|
11
|
+
"k": "fix"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
2
15
|
{
|
|
3
16
|
"v": "0.603.0",
|
|
4
17
|
"at": "2026-11-18T08:33:37.110Z",
|
|
@@ -28,6 +28,7 @@ The Viewer shows one item: an initiative, a program, a task, a document, a meeti
|
|
|
28
28
|
- It opens beside the page. Settings › General › **Viewer opens as** makes it a popup over the page instead.
|
|
29
29
|
- Drag its edge to change its width. The expand icon opens it wide. Each kind of item keeps the width you gave it.
|
|
30
30
|
- It keeps one trail: a press inside it keeps the item behind, ← goes back, → goes forward, and the browser's Back and Forward move along the same trail. × or Escape closes it.
|
|
31
|
+
- One item shows in one Viewer only. If an item is already open, opening it again (a row, a ⌘-click, Open beside) shows it in the Viewer it is in. It never opens a second copy.
|
|
31
32
|
|
|
32
33
|
## Board and Intelligence
|
|
33
34
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.604.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.604.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
package/workspace/panels-test.js
CHANGED
|
@@ -187,6 +187,16 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
187
187
|
const l6c = await until(() => lay(A.page).then((l) => { const t = l.panels.filter((p) => p.kind === 'viewer' && p.box.shown); return t.length === 2 && t.some((p) => p.title !== t6[0] && p.title !== t6[1]) ? l : null; }), 6000);
|
|
188
188
|
const t6c = l6c ? l6c.panels.filter((p) => p.kind === 'viewer' && p.box.shown).map((p) => p.title) : []; // the one giving way closes a moment later
|
|
189
189
|
ok('N6 a third Viewer at 1440 replaces the one used least recently (still two side by side)', !!l6c && !t6c.includes(t6[0]) && t6c.includes(t6[1]), JSON.stringify([t6c, await lay(A.page)]));
|
|
190
|
+
// one item, one Viewer (batch 31 item 10): opening beside an item already shown does not copy it; bodyOf finds its own Viewer
|
|
191
|
+
const dup = await A.page.evaluate(async () => {
|
|
192
|
+
const it = { id: 'dup-one', kind: 'Note', title: 'Shown once', html: '<p class="dup-a">a</p>' };
|
|
193
|
+
window.czPanels.openBeside(it); await new Promise((r) => setTimeout(r, 400));
|
|
194
|
+
window.czPanels.openBeside({ ...it, html: '<p class="dup-b">b</p>' }); await new Promise((r) => setTimeout(r, 400));
|
|
195
|
+
const open = [...document.querySelectorAll('.cz-vw')].filter((e) => !e.hidden && e.querySelector('.cz-vw-body .dup-a, .cz-vw-body .dup-b'));
|
|
196
|
+
const b = window.czViewer.bodyOf('dup-one');
|
|
197
|
+
return { n: open.length, own: !!b && open.length === 1 && open[0].contains(b), b: !!(b && b.querySelector('.dup-b')) };
|
|
198
|
+
});
|
|
199
|
+
ok('N6 the same item opened beside twice stays in one Viewer, shown again there; czViewer.bodyOf finds that Viewer', dup.n === 1 && dup.own && dup.b, JSON.stringify(dup));
|
|
190
200
|
ok('0 no page error at 1440', A.errors.length === 0, A.errors.join(' | '));
|
|
191
201
|
await A.close();
|
|
192
202
|
|
|
@@ -271,7 +271,7 @@ export function openIni(r, from, o = {}) {
|
|
|
271
271
|
apply: (k) => { const y = O.rowOf(r.key) || x; y.kind = k; VW.setPresses(vidOf(y), [WK.pressOf(k)].concat(dashFor(y) ? dashFor(y).presses() : [])); if (O.redraw) O.redraw(); refresh(true); },
|
|
272
272
|
reload: async () => { if (O.reload) await O.reload(); } }), !!((O.M() || {}).board || {}).factory);
|
|
273
273
|
},
|
|
274
|
-
render: (body) => { const x = O.rowOf(r.key) || r; cur = { key: x.key, tk: null }; O.onShow(x.key, from); body.innerHTML = iniBody(x); wire(body, x.key); { const h = dashFor(x); if (h) h.wire(body); } if (adding === x.key) { const f = body.querySelector('#ivAddTask'); if (f && document.activeElement !== f) f.focus(); } },
|
|
274
|
+
render: (body) => { const x = O.rowOf(r.key) || r; cur = { key: x.key, tk: null, vid: vidOf(x) }; O.onShow(x.key, from); body.innerHTML = iniBody(x); wire(body, x.key); { const h = dashFor(x); if (h) h.wire(body); } if (adding === x.key) { const f = body.querySelector('#ivAddTask'); if (f && document.activeElement !== f) f.focus(); } },
|
|
275
275
|
onClose: () => { if (cur && cur.key === r.key && !cur.tk) { cur = null; O.onHide(); } } });
|
|
276
276
|
}
|
|
277
277
|
|
|
@@ -288,7 +288,7 @@ export function openTicket(r, k, from) {
|
|
|
288
288
|
const c = VW.current && VW.current(), back = !!(c && c.id === vidOf(r));
|
|
289
289
|
const it = TI(r), tr = it && it.tickets ? it.tickets[k.key] || null : null, M = O.M() || {}, B = M.board || {};
|
|
290
290
|
O.onShow(r.key, back ? null : from);
|
|
291
|
-
cur = { key: r.key, tk: k.key };
|
|
291
|
+
cur = { key: r.key, tk: k.key, vid: vidOf(r) };
|
|
292
292
|
TV.openTicketView({ ws: r.ws || B.ws || '', board: r.boardId || B.id || '', ini: r.id || '', iniTitle: r.title, ref: k.key, base: k, trail: tr, stage: tkStage(r), release: r.release || null,
|
|
293
293
|
readAt: (M.jira && M.jira.readAt) || '', back, blockerTitle, askHref: (q) => O.askHref(r, q),
|
|
294
294
|
refresh: M.jira ? () => O.refreshJira() : null,
|
|
@@ -299,15 +299,17 @@ export function openTicket(r, k, from) {
|
|
|
299
299
|
|
|
300
300
|
/** The shown item drawn again from the new read, in place. A row that left the Board closes it. */
|
|
301
301
|
export function refresh(force) {
|
|
302
|
-
if (!cur
|
|
302
|
+
if (!cur) return;
|
|
303
303
|
const r = O.rowOf(cur.key); if (!r || !r.track) { close(); return; }
|
|
304
|
-
|
|
304
|
+
// the Viewer that shows this initiative, not the one used last (a chat beside it took the initiative's body, batch 31 item 10)
|
|
305
|
+
const b = VW.bodyOf(vidOf(r)); if (!b || (!force && document.activeElement && b.contains(document.activeElement))) return;
|
|
305
306
|
if (cur.tk) return; // the ticket Viewer reads its own records (tk-view.js); Read Jira again opens it fresh
|
|
306
307
|
const top = b.scrollTop;
|
|
307
308
|
b.innerHTML = iniBody(r);
|
|
308
309
|
b.scrollTop = top;
|
|
309
310
|
}
|
|
310
|
-
|
|
311
|
+
/** Close the initiative's own Viewer (never the chat beside it). A ticket drilled in shows under its own id: the Viewer used last, as before. */
|
|
312
|
+
export function close() { if (!cur) return; const c = cur; cur = null; if (!c.tk && VW.bodyOf(c.vid)) VW.closeOf(c.vid); else VW.close(); }
|
|
311
313
|
export const shown = () => (cur ? cur.key : null);
|
|
312
314
|
export function mount(o) {
|
|
313
315
|
O = o; ensurePopCss();
|
|
@@ -470,6 +470,7 @@ function onViewer(d) {
|
|
|
470
470
|
if (d.shut) { drop(d.panel); S.fr = []; layout(); return; }
|
|
471
471
|
mark(d.panel);
|
|
472
472
|
if (S.row.includes(d.panel) || S.over === d.panel || S.away.includes(d.panel)) {
|
|
473
|
+
S.pend = null; // an open beside of an item already shown lands in its Viewer (one item, one Viewer): nothing new to place
|
|
473
474
|
if (S.away.includes(d.panel)) { drop(d.panel); if (S.over) S.away.push(S.over); S.over = d.panel; } // a plain click into the Viewer put away: it slides back over
|
|
474
475
|
layout(); return;
|
|
475
476
|
}
|
|
@@ -589,8 +589,12 @@ function retitle0(id, title) { if (V.cur && V.cur.id === String(id) && title) {
|
|
|
589
589
|
|
|
590
590
|
/** Show one item in the Viewer, in place of the one shown. Returns the body element the content is in. */
|
|
591
591
|
export function open(it) {
|
|
592
|
-
|
|
593
|
-
|
|
592
|
+
let o = it || {};
|
|
593
|
+
let x = o._inst || (o.into && byP(o.into)) || pick(o); // into: a panel id ('v1'), the Viewer that shows it (the Board's chat panel)
|
|
594
|
+
// one item, one Viewer (batch 31 item 10): an item already shown in another Viewer is not opened twice; that Viewer shows it again
|
|
595
|
+
const twin = !o._inst && o.id != null ? ALL.find((y) => y !== x && shown(y) && y.cur.id === String(o.id)) : null;
|
|
596
|
+
if (twin) { x.drill = false; x = twin; o = { ...o, keep: true, fresh: false }; }
|
|
597
|
+
use(x);
|
|
594
598
|
// an item with unsaved changes asks first; the open goes on when it says so (and keeps a drill-in asked for before it)
|
|
595
599
|
if (!o._asked && V.cur && typeof V.cur.guard === 'function') {
|
|
596
600
|
const dr = V.drill; let now = true, ran = false;
|
|
@@ -670,6 +674,11 @@ export function close(o = {}) {
|
|
|
670
674
|
export const isOpen = () => !!(V.el && !V.el.hidden && V.cur);
|
|
671
675
|
export const current = () => (V.cur ? { id: V.cur.id, kind: V.cur.kind, title: V.cur.title, url: V.cur.url } : null);
|
|
672
676
|
export const body = () => (isOpen() ? V.el.querySelector('.cz-vw-body') : null);
|
|
677
|
+
/** The body of the Viewer that shows item id, whichever Viewer was used last (null: no Viewer shows it). A page that draws an item again
|
|
678
|
+
* after a read uses this, so it never draws into another Viewer (the chat beside it, batch 31 item 10). */
|
|
679
|
+
export const bodyOf = (id) => { const x = ALL.find((y) => shown(y) && y.cur.id === String(id)); return x ? x.el.querySelector('.cz-vw-body') : null; };
|
|
680
|
+
/** Close the Viewer that shows item id (nothing else). */
|
|
681
|
+
export function closeOf(id) { const x = ALL.find((y) => shown(y) && y.cur.id === String(id)); if (x) { use(x); close(); } }
|
|
673
682
|
export function onChange(fn) { if (typeof fn === 'function') G.subs.push(fn); }
|
|
674
683
|
/** Open the Viewer on a feature the design does not draw yet. */
|
|
675
684
|
export function placeholder(featureName, o = {}) {
|
|
@@ -807,4 +816,4 @@ export const panels = {
|
|
|
807
816
|
rest() { ALL.filter(shown).forEach((x) => on(x, () => { const k = widthOf(V.cur.kind); V.wide = false; apply(k || room().def); redraw(); })); },
|
|
808
817
|
rail(v) { setRail(!!v); }, railOn: () => G.rail, owned, chosen,
|
|
809
818
|
};
|
|
810
|
-
if (typeof window !== 'undefined') window.czViewer = { open, close, back, forward, trail, replaceUrl, drill, setPresses, setChip, setCheck, isOpen, current, body, onChange, placeholder, retitle, czSummary, czSections, widthOf, setWidth, wide, railOn, railCard, railSync, keepWide, ICONS };
|
|
819
|
+
if (typeof window !== 'undefined') window.czViewer = { open, close, closeOf, bodyOf, back, forward, trail, replaceUrl, drill, setPresses, setChip, setCheck, isOpen, current, body, onChange, placeholder, retitle, czSummary, czSections, widthOf, setWidth, wide, railOn, railCard, railSync, keepWide, ICONS };
|