create-pmos 0.798.0 → 0.799.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 +23 -22
- package/payload/KIT-VERSION +2 -2
- 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/payload/state/log.md +1 -1
- package/workspace/changelog.json +22 -0
- package/workspace/guide/layout.md +1 -1
- package/workspace/guide/reports.md +2 -2
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/cozy-pop-work.js +23 -8
- package/workspace/public/pm/dash-view.js +12 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.799.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,28 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.799.0",
|
|
38
|
+
"at": "2026-11-25T00:01:31.314Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1824,
|
|
43
|
+
"t": "Drafting the goal keeps the initiative page; one toast for one draft press",
|
|
44
|
+
"s": "Drafting the goal keeps the initiative page; one toast for one draft press",
|
|
45
|
+
"k": "fix",
|
|
46
|
+
"try": {
|
|
47
|
+
"steps": [
|
|
48
|
+
"On a phone, open Work and tap an initiative whose Problem or Goal is not written.",
|
|
49
|
+
"In Where it stands, tap the ✦ Draft the Problem and Goal line.",
|
|
50
|
+
"Wait for the drafts, then press Undo on the toast."
|
|
51
|
+
],
|
|
52
|
+
"see": "the page stays on the initiative's work while PMOS drafts; one toast says 'Problem and Goal drafted.' and Undo takes both lines back. If the Dashboard is your chosen view, its list icon in the…",
|
|
53
|
+
"open": "/premium-board.html"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
36
58
|
{
|
|
37
59
|
"v": "0.798.0",
|
|
38
60
|
"at": "2026-11-24T23:17:36.353Z",
|
|
@@ -442,27 +464,6 @@
|
|
|
442
464
|
"k": "new"
|
|
443
465
|
}
|
|
444
466
|
]
|
|
445
|
-
},
|
|
446
|
-
{
|
|
447
|
-
"v": "0.779.0",
|
|
448
|
-
"at": "2026-11-24T15:18:38.678Z",
|
|
449
|
-
"f": 4,
|
|
450
|
-
"prs": [
|
|
451
|
-
{
|
|
452
|
-
"n": 1743,
|
|
453
|
-
"t": "PMOS reads each report draft as the CFO, engineer and sceptic, questions under the ✦",
|
|
454
|
-
"s": "PMOS reads each report draft as the CFO, engineer and sceptic, questions under the ✦",
|
|
455
|
-
"k": "new",
|
|
456
|
-
"h": "PMOS reads each report draft as the CFO, engineer and sceptic, questions under the ✦",
|
|
457
|
-
"try": {
|
|
458
|
-
"steps": [
|
|
459
|
-
"Open Library and draft a report (or ask the chat: draft the weekly report)",
|
|
460
|
-
"Wait about a minute, then open Work and the ✦ on an initiative the report covers"
|
|
461
|
-
],
|
|
462
|
-
"see": "The ✦ lists up to 6 questions such as 'CFO asks: What does a slip of the cutover cost?', each quoting the report, with the smallest fix as its next step"
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
]
|
|
466
467
|
}
|
|
467
468
|
]
|
|
468
469
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
kernel-source: pmos@
|
|
2
|
-
assembled: 2026-11-
|
|
1
|
+
kernel-source: pmos@5ab2efffc
|
|
2
|
+
assembled: 2026-11-25
|
|
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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-25T00:01:27Z"}
|
|
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-25T00:01:27Z"}
|
|
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-25T00:01:27Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/payload/state/log.md
CHANGED
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.799.0",
|
|
4
|
+
"at": "2026-11-25T00:01:31.314Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1824,
|
|
9
|
+
"t": "Drafting the goal keeps the initiative page; one toast for one draft press",
|
|
10
|
+
"s": "Drafting the goal keeps the initiative page; one toast for one draft press",
|
|
11
|
+
"k": "fix",
|
|
12
|
+
"try": {
|
|
13
|
+
"steps": [
|
|
14
|
+
"On a phone, open Work and tap an initiative whose Problem or Goal is not written.",
|
|
15
|
+
"In Where it stands, tap the ✦ Draft the Problem and Goal line.",
|
|
16
|
+
"Wait for the drafts, then press Undo on the toast."
|
|
17
|
+
],
|
|
18
|
+
"see": "the page stays on the initiative's work while PMOS drafts; one toast says 'Problem and Goal drafted.' and Undo takes both lines back. If the Dashboard is your chosen view, its list icon in the…",
|
|
19
|
+
"open": "/premium-board.html"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
2
24
|
{
|
|
3
25
|
"v": "0.798.0",
|
|
4
26
|
"at": "2026-11-24T23:17:36.353Z",
|
|
@@ -189,7 +189,7 @@ On a computer the popup is built from the parts of the PMOS design system. The t
|
|
|
189
189
|
**Overview** is one block across the top. Press its name to fold it, and press it again to open it. PMOS keeps your choice for every initiative, on each device you use. When it is folded, it shows one line of **Where it stands**, and **1 suggestion** (or more) when PMOS has one; press that to open it. When it is open, it shows three parts side by side:
|
|
190
190
|
|
|
191
191
|
- **Where it stands.** What is happening, in a few sentences. Then **Next**: the next three dates, a milestone as a diamond and the outcome check as a circle; press a milestone to open it. Then one suggestion from PMOS with **Why**, **PMOS will** and **Based on**. The pencil opens it so you can change it first, ✓ does it and ✕ drops it. Other suggestions are one link under it.
|
|
192
|
-
- **The case.** **Problem**, **Goal** and **Done when** from the initiative's records. Press a line to change it. A line not written offers a PMOS draft (✦) or ✕. When no line is written yet, one suggestion offers to draft them all from what is linked: ✓ sends the request to the chat, ✕ says not this, and the pencil lets you write it yourself. When the chat saves a line, the case shows it as soon as the chat's turn ends, with no reload and no commit. It also reads its lines again when you come back to the page.
|
|
192
|
+
- **The case.** **Problem**, **Goal** and **Done when** from the initiative's records. Press a line to change it. A line not written offers a PMOS draft (✦) or ✕. When no line is written yet, one suggestion offers to draft them all from what is linked: ✓ sends the request to the chat, ✕ says not this, and the pencil lets you write it yourself. When PMOS drafts several lines from one press, one message names them ("Problem and Goal drafted."), and its **Undo** takes back every line it wrote. When the chat saves a line, the case shows it as soon as the chat's turn ends, with no reload and no commit. It also reads its lines again when you come back to the page.
|
|
193
193
|
- **Details.** The facts: dates, the next milestone, product, program, workflow and what is open.
|
|
194
194
|
|
|
195
195
|
Under it, two blocks use the full width of the popup:
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Guide
|
|
3
3
|
title: "Reports and dashboards: set up, shape, design, draft and issue"
|
|
4
4
|
description: "Set up a report by asking, shape what it says, design how it looks, draft and issue a cadence report, and the ready-made dashboards."
|
|
5
|
-
timestamp: 2026-11-
|
|
5
|
+
timestamp: 2026-11-24
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Reports and dashboards
|
|
@@ -417,7 +417,7 @@ PMOS puts only a few of these on a schedule by itself. The others draft when the
|
|
|
417
417
|
|
|
418
418
|
### Where the dashboard shows
|
|
419
419
|
|
|
420
|
-
- **Program and initiative.** One icon in the header switches between **Work** and **Dashboard**. The page remembers your last choice for each program and initiative. Until you choose, a Work row opens on Work. The charter is still under the **Milestones** pencil and in **Documents**.
|
|
420
|
+
- **Program and initiative.** One icon in the header switches between **Work** and **Dashboard**. The page remembers your last choice for each program and initiative. Until you choose, a Work row opens on Work. The charter is still under the **Milestones** pencil and in **Documents**. When you press something on Work before the dashboard has loaded, the page stays on Work, even when your last choice was Dashboard. On a phone, the icon that brings back Work stays in the header while the dashboard shows.
|
|
421
421
|
- **Product.** The product page is the dashboard. Its reports are in **This week**.
|
|
422
422
|
|
|
423
423
|
The dashboard shows these blocks, in this order:
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.799.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.799.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -639,14 +639,29 @@ function toAsk(text, h) {
|
|
|
639
639
|
* job (pm/star-draft.js, POST /api/star-drafts) with no chat and no session of the PM's. The line says PMOS is drafting it; the draft then
|
|
640
640
|
* lands on the line itself through the line's own save, with Undo. A job that fails says why, with Try again. */
|
|
641
641
|
const DRAFTING = new Set(); // '<popup key>:<line id>' while its job runs
|
|
642
|
-
|
|
642
|
+
/* o.quiet: no toast of its own; the line's saved ref comes back so one press that drafts several lines says it once (draftLines) */
|
|
643
|
+
async function draftLine(L, x, h, o = {}) {
|
|
643
644
|
const w = h.where ? h.where() : {}, kid = keyOf(x.v(), x.o()), k = kid + ':' + L.id;
|
|
644
|
-
if (DRAFTING.has(k)) return;
|
|
645
|
+
if (DRAFTING.has(k)) return null;
|
|
645
646
|
DRAFTING.add(k); if (h.redraw) h.redraw();
|
|
646
647
|
const r = await SD.run(L.ask, { ws: w.ws || x.o().ws, pmPost, pmGet });
|
|
647
648
|
DRAFTING.delete(k);
|
|
648
|
-
if (!r.ok) { if (h.redraw) h.redraw(); undoToast(r.why, () => draftLine(L, x, h), 12000, 'Try again'); return; }
|
|
649
|
-
|
|
649
|
+
if (!r.ok) { if (h.redraw) h.redraw(); undoToast(L.k + ': ' + r.why, () => draftLine(L, x, h), 12000, 'Try again'); return null; }
|
|
650
|
+
return saveLine(L, r.text.replace(/\s+/g, ' ').trim().slice(0, 600), x, h, { quiet: o.quiet, said: L.k + ' drafted.' });
|
|
651
|
+
}
|
|
652
|
+
/** One press that drafts several lines ("Draft the Problem and Goal"): the drafts run side by side and land with ONE toast that names every
|
|
653
|
+
* line drafted and ONE Undo for all of them. Before, each line's own toast replaced the last, so "Problem saved." stood for a press about the
|
|
654
|
+
* goal and Undo took back only one line. */
|
|
655
|
+
async function draftLines(Ls, x, h) {
|
|
656
|
+
if (Ls.length === 1) { await draftLine(Ls[0], x, h); return; }
|
|
657
|
+
const got = await Promise.all(Ls.map((L) => draftLine(L, x, h, { quiet: true }).then((ref) => (typeof ref === 'string' && ref ? { L, ref } : null))));
|
|
658
|
+
const ok = got.filter(Boolean); if (!ok.length) return;
|
|
659
|
+
const w = h.where ? h.where() : {}, o = x.o(), ws = w.ws || o.ws, names = ok.map((g) => g.L.k);
|
|
660
|
+
undoToast((names.length === 2 ? names.join(' and ') : names.length + ' lines') + ' drafted.', async () => {
|
|
661
|
+
let bad = '';
|
|
662
|
+
for (const g of ok) { const u = await pmPost('/api/artefacts/undo', { ws, ref: g.ref }).catch(() => null); if (!u || u.ok === false) bad = (u && u.error) || 'The undo did not land.'; }
|
|
663
|
+
ART.delete(o.id); if (bad && h.toast) h.toast(bad); if (h.redraw) h.redraw();
|
|
664
|
+
});
|
|
650
665
|
}
|
|
651
666
|
/* a program's line (its charter's why or goal): the same job, saved with POST /api/programs/save, and Undo saves the line as it was */
|
|
652
667
|
const LV_FIELD = { for: 'why', goal: 'goal' };
|
|
@@ -895,7 +910,7 @@ export function wire(body, h0, x0) {
|
|
|
895
910
|
if ('swSave' in d) { if (SLED) SLED.save(); return; }
|
|
896
911
|
if (d.pwLine) { const L = W.overview.lines.find((q) => q.id === d.pwLine); if (L && L.edit) editLine(b, L, c, x, h); return; }
|
|
897
912
|
// a phone asks for several lines in one proposal: "problem,done"
|
|
898
|
-
if (d.pwLkeep) { const ls = d.pwLkeep.split(',').map((k) => W.overview.lines.find((q) => q.id === k)).filter((L) => L && L.ask); for (const L of ls)
|
|
913
|
+
if (d.pwLkeep) { const ls = d.pwLkeep.split(',').map((k) => W.overview.lines.find((q) => q.id === k)).filter((L) => L && L.ask); for (const L of ls) if (!L.edit) toAsk(L.ask, h); draftLines(ls.filter((L) => L.edit), x, h); return; }
|
|
899
914
|
if (d.pwLdrop) { const dd = dropped(); for (const k of d.pwLdrop.split(',')) dd.add(k); store.set(DROP, [...dd].slice(-200)); redraw(); return; }
|
|
900
915
|
if ('pwPdocs' in d) { if (PH_ARTS.has(c.id)) PH_ARTS.delete(c.id); else PH_ARTS.add(c.id); redraw(); return; }
|
|
901
916
|
if (d.pwSrc) { if (h.doc) h.doc(d.pwSrc); return; }
|
|
@@ -1050,7 +1065,7 @@ function editLine(el, L, c, x, h) {
|
|
|
1050
1065
|
ta.addEventListener('blur', () => leave(true));
|
|
1051
1066
|
ta.addEventListener('keydown', (e) => { if (e.key === 'Escape') { e.preventDefault(); e.stopPropagation(); leave(false); } else if (e.key === 'Enter' && !e.shiftKey) { e.preventDefault(); ta.blur(); } });
|
|
1052
1067
|
}
|
|
1053
|
-
async function saveLine(L, text, x, h) {
|
|
1068
|
+
async function saveLine(L, text, x, h, opt = {}) {
|
|
1054
1069
|
if (L.edit.to === 'desc') return saveDesc(text, x, h);
|
|
1055
1070
|
const w = h.where ? h.where() : {}, o = x.o(), id = o.id, ws = w.ws || o.ws, kid = keyOf(x.v(), o);
|
|
1056
1071
|
// shown at once (Wawan, 2026-11-23); the next read of the artefacts replaces it
|
|
@@ -1065,13 +1080,13 @@ async function saveLine(L, text, x, h) {
|
|
|
1065
1080
|
}
|
|
1066
1081
|
const ref = res.line.id;
|
|
1067
1082
|
ART.delete(id);
|
|
1068
|
-
undoToast(L.k + ' saved.', async () => {
|
|
1083
|
+
if (!opt.quiet) undoToast(opt.said || L.k + ' saved.', async () => {
|
|
1069
1084
|
const u = await pmPost('/api/artefacts/undo', { ws, ref }).catch(() => null);
|
|
1070
1085
|
if (!u || u.ok === false) { if (h.toast) h.toast((u && u.error) || 'The undo did not land.'); return; }
|
|
1071
1086
|
ART.delete(id); if (h.redraw) h.redraw();
|
|
1072
1087
|
});
|
|
1073
1088
|
if (h.redraw) h.redraw();
|
|
1074
|
-
return
|
|
1089
|
+
return ref;
|
|
1075
1090
|
}
|
|
1076
1091
|
function rename(btn, uid, h) {
|
|
1077
1092
|
const inp = document.createElement('input');
|
|
@@ -281,10 +281,16 @@ export function wireDash(body, h0) {
|
|
|
281
281
|
* menu (on a phone the toggle sits in ⋯) }
|
|
282
282
|
* → { presses(), shows(), html(work), read(via), toggle(), wire(body) } */
|
|
283
283
|
export function dashHost(o) {
|
|
284
|
-
|
|
284
|
+
// used: the PM pressed or typed in the Work view before the first read landed (drafting the goal, ticking a task). That read may still bring
|
|
285
|
+
// the PM's Dashboard choice or the server's opening view, but it never swaps the page from under a press in progress: the view the PM is
|
|
286
|
+
// using stays, and ⋯ › Show the dashboard is one press away. Before, a phone that read the dashboard slowly opened it seconds after a press
|
|
287
|
+
// on Work, and ← then left the initiative.
|
|
288
|
+
const x = { view: 'work', d: null, read: false, used: false, open: new Set() };
|
|
285
289
|
const W = () => (typeof o.ws === 'function' ? o.ws() : o.ws) || '', B = () => (typeof o.board === 'function' ? o.board() : o.board) || '';
|
|
286
290
|
// o.menu: on a phone the toggle goes into ⋯ (the initiative's page, batch 18 item 1)
|
|
287
|
-
|
|
291
|
+
// while the Dashboard shows, its way back to the work stays in the header on a phone too: ← leaves the initiative, so "Show the work" must
|
|
292
|
+
// not hide in ⋯ (drafting the goal from a phone, 2026-11-24)
|
|
293
|
+
const presses = () => (x.d ? [{ ...togglePress(x.view), menu: !!o.menu && x.view !== 'dash' }] : []);
|
|
288
294
|
const shows = () => x.view === 'dash' && !!x.d;
|
|
289
295
|
// the body is drawn again only when it shows the dashboard, before or after: a read that lands on the Work view only adds the header icon,
|
|
290
296
|
// so the focus (a stage picker, a task being typed) stays where the PM left it
|
|
@@ -292,7 +298,7 @@ export function dashHost(o) {
|
|
|
292
298
|
async function read(via) {
|
|
293
299
|
const was = shows();
|
|
294
300
|
const d = await readDash(W(), o.scope, via);
|
|
295
|
-
if (!d) { x.d = null; if (x.view === 'dash') x.view = 'work'; } else { const first = !x.read; x.d = d; if (first) x.view = viewOf(o.page, d.opens); }
|
|
301
|
+
if (!d) { x.d = null; if (x.view === 'dash') x.view = 'work'; } else { const first = !x.read; x.d = d; if (first && !x.used) x.view = viewOf(o.page, d.opens); }
|
|
296
302
|
x.read = true; sync(was);
|
|
297
303
|
}
|
|
298
304
|
function toggle() {
|
|
@@ -302,6 +308,9 @@ export function dashHost(o) {
|
|
|
302
308
|
}
|
|
303
309
|
const html = (work) => (shows() ? dashHtml(x.d, { open: x.open, mdHtml: o.mdHtml ? o.mdHtml() : '' }) : work());
|
|
304
310
|
function wire(body) {
|
|
311
|
+
// a press or a key in the Work view before the first read lands: the PM is using this page (x.used above). Once per body, like wireDash.
|
|
312
|
+
body._dbHost = x;
|
|
313
|
+
if (!body._dbUse) { body._dbUse = true; const use = () => { const h = body._dbHost; if (h && !h.read && h.view === 'work') h.used = true; }; body.addEventListener('pointerdown', use, true); body.addEventListener('keydown', use, true); }
|
|
305
314
|
// ✎ on Needs you: the work shows (this once, not kept as the PM's choice) and Claude proposes opens on the decision (pm/ini-props.js)
|
|
306
315
|
const editNeeds = o.editNeeds || (() => { x.view = 'work'; sync(); setTimeout(() => { const c = document.querySelector('#czViewer [data-cz-vw="chip"]'); if (c) c.click(); }, 0); });
|
|
307
316
|
wireDash(body, { d: () => { const c = o.VW.current && o.VW.current(); return shows() && c && c.id === o.vid ? x.d : null; }, open: x.open, get ws() { return W(); }, get board() { return B(); }, toast: o.toast, redraw: o.redraw, reload: () => read(), openReport: o.openReport, editNeeds });
|