create-pmos 0.296.0 → 0.297.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 +1 -1
- 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/guide/briefing-premium.md +1 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-studio-test.js +18 -0
- package/workspace/public/pm/premium-studio.js +19 -3
- package/workspace/public/pm/premium.css +12 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.297.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": {
|
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-19T05:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-19T05:47:10Z"}
|
|
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-19T05:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-19T05:47:10Z"}
|
|
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-19T05:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-19T05:47:10Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -261,6 +261,7 @@ Insights is the fourth place on the rail, at `/premium-insights.html`. It reads
|
|
|
261
261
|
- **Make or edit a dashboard.** **New dashboard**, or **Edit** on a saved one, opens the **Insight Studio**, a wide dialog. On the right, the brief shows the Name, Purpose, Charts and Main dashboard; press a chip to change it. **Library** lists the board's measures and saved dashboards to add. The preview draws the dashboard as the page will, and lists a measure with no series as not drawn. The checks (a name, a purpose, a chart, six or fewer, no repeat, a main dashboard on the board) say what fails, with a one-press fix. On the left you can say it instead: "add Partner activation", "remove …", "move … first", "call it …", "it is for …", "make it the main dashboard", "undo" or "start a new one". A turn changes the draft only. **Undo** steps back one change. **Save the dashboard** records it; **Remove the dashboard** asks once more and then removes it. In a chart's dialog, **On your dashboards** has a switch for each saved dashboard, which adds the chart to it or takes it off.
|
|
262
262
|
- **Make your own chart.** **New chart**, or **Edit** on one of your charts, opens the Insight Studio in **Chart** mode; the switch at the top moves between Chart and Dashboard, and each keeps its own draft. The brief shows the Question, Measure, Form (line, bars, number or meter), Range (all readings or the last few) and Target; **More** adds the Title, Better when, Note and Add to (a dashboard). The Studio suggests a form from the question and says why. The checks (a question, a target, enough readings, a form that fits the question, one scale) say what fails, with a one-press fix. You can say it instead: "show it as bars", "last 4 readings", "target 35", "lower is better", "call it …", "note: …", "add it to Weekly", or a question. A pie is declined, with the reason. **Save the chart** records it in the workspace's state folder, and adds it to the dashboard you named. Your charts are listed under **All measures**, and a dashboard can hold them beside the measures. **Remove the chart** asks once more; a dashboard that held it then says it was removed.
|
|
263
263
|
- **Set up a report in the Studio.** **New report** on the Reports card opens the Insight Studio in **Report** mode. The brief shows the Title, What it answers, Audience, Format, Schedule, Draw from (your work, or the board's dashboard) and the Sections. A new report always has the same sections, in the same order, so they are listed, not edited. The checks (what it answers, an audience, a format that fits the audience, a new title, the answer first) say what fails, with a one-press fix. You can say it instead: "it answers: …", "for leadership", "slides", "monthly", "every two weeks on Thursday", "call it …". **Set it up** records the report and writes its first draft as a file.
|
|
264
|
+
- **Change the size of the Studio.** On a wide window, **Normal**, **Half**, **3/4** and **Whole** sit beside **Library**. Whole is the full screen. At Half, the conversation and the Studio are two tabs. The Studio opens on Whole, and PMOS remembers your choice on this browser.
|
|
264
265
|
- **Shape a report's sections.** On a report drawn from your work, **Shape it in the Studio** opens Report mode on it. Tell PMOS how to shape the sections in your own words; PMOS proposes the next version and says what it changed. **Leave out** on a section makes the next version without it; the headline, Needs your call and Sources are always in. **Undo** goes back one version. **Use this structure** saves the version shown, and the next cycle follows it.
|
|
265
266
|
- **What stands out.** Up to three plain sentences taken from the series: behind its line for three readings in a row, behind and still moving away from the target, closing in, slipped, reached its target, or a large one-step move. There is no forecast and no cause.
|
|
266
267
|
- **No series recorded.** A KR metric with one reading or none is listed with the reason and is not drawn.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.297.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.297.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/workspace/package.json
CHANGED
|
@@ -72,6 +72,24 @@ const saved = async () => { const j = await (await fetch(BASE + '/api/insights-p
|
|
|
72
72
|
ok('O4 a new draft shows Not set on Name and Purpose and 0 charts', await chipv('name') === 'Not set' && await chipv('use') === 'Not set' && await chipv('charts') === '0');
|
|
73
73
|
ok('K1 the checks start at 2 of 6 (count and repeats pass)', await checksTxt() === '2 of 6 checks pass', await checksTxt());
|
|
74
74
|
|
|
75
|
+
/* Z: the Studio's size (Normal, Half, 3/4, Whole), as the console's Design studio has it */
|
|
76
|
+
const sz = () => p.evaluate(() => { const d = document.querySelector('#dlg'), r = d.getBoundingClientRect(); return { w: Math.round(r.width), full: d.classList.contains('full'), on: (document.querySelector('#stSz [aria-pressed="true"]') || {}).textContent, n: document.querySelectorAll('#stSz button').length, saved: localStorage.getItem('pmos.premium.studio-size') }; });
|
|
77
|
+
let z = await sz();
|
|
78
|
+
ok('Z1 the Studio offers Normal, Half, 3/4 and Whole, and opens on Whole', z.n === 4 && z.on === 'Whole' && z.full, JSON.stringify(z));
|
|
79
|
+
await tap('#stSz [data-st="size|half"]'); await sleep(900); z = await sz();
|
|
80
|
+
ok('Z2 Half is half the window and leaves full screen', !z.full && z.on === 'Half' && Math.abs(z.w - 640) < 12 && z.saved === 'half', JSON.stringify(z));
|
|
81
|
+
ok('Z3 at Half the conversation and the Studio are two tabs', await p.evaluate(() => getComputedStyle(document.querySelector('#dTabs')).display !== 'none'));
|
|
82
|
+
await tap('#stSz [data-st="size|three-quarters"]'); await sleep(900); z = await sz();
|
|
83
|
+
ok('Z4 3/4 is three-quarters of the window', z.on === '3/4' && Math.abs(z.w - 960) < 12, JSON.stringify(z));
|
|
84
|
+
await tap('#stSz [data-st="size|normal"]'); await sleep(900); z = await sz();
|
|
85
|
+
ok('Z5 Normal is the dialog\'s own size', z.on === 'Normal' && z.w > 1000 && z.w < 1270 && !z.full, JSON.stringify(z));
|
|
86
|
+
await tap('#dExpand'); await sleep(300); z = await sz();
|
|
87
|
+
ok('Z6 the full-screen button of the dialog moves the size to Whole', z.on === 'Whole' && z.full, JSON.stringify(z));
|
|
88
|
+
await tap('#stSz [data-st="size|half"]'); await sleep(300);
|
|
89
|
+
await shut(); await open('#pdNew'); z = await sz();
|
|
90
|
+
ok('Z7 the size is kept for the next time', z.on === 'Half' && !z.full, JSON.stringify(z));
|
|
91
|
+
await tap('#stSz [data-st="size|whole"]'); await sleep(300);
|
|
92
|
+
|
|
75
93
|
/* C: the conversation */
|
|
76
94
|
let a = await say('add Partner activation and Time to first call');
|
|
77
95
|
ok('C1 "add" names the measures it added and draws them', /^Done: added Partner activation, added Time to first call/.test(a) && (await tiles()).join() === 'Partner activation,Time to first call', a);
|
|
@@ -18,6 +18,21 @@ const UPI = ICO('<path d="M12 19V5M6 11l6-6 6 6"/>'), DNI = ICO('<path d="M12 5v
|
|
|
18
18
|
const OKI = ICO('<path d="M5 12.5l4.5 4.5L19 7.5"/>'), WRN = ICO('<path d="M12 4 2.5 20h19z"/><path d="M12 10v4M12 17v.5"/>'), CHV = ICO('<path d="M6 9l6 6 6-6"/>');
|
|
19
19
|
const DSI = ICO('<rect x="3" y="3" width="8" height="8" rx="2"/><rect x="13" y="3" width="8" height="8" rx="2"/><rect x="3" y="13" width="8" height="8" rx="2"/><rect x="13" y="13" width="8" height="8" rx="2"/>');
|
|
20
20
|
const MAX_UNDO = 30;
|
|
21
|
+
/* The Studio's size, as the console's Design studio has it, plus Normal (the dialog's own size). Whole is the dialog's full screen. Kept on this browser. */
|
|
22
|
+
const SIZE_KEY = 'pmos.premium.studio-size';
|
|
23
|
+
const SIZES = [['normal', 'Normal', 'The usual size'], ['half', 'Half', 'Half of the window'], ['three-quarters', '3/4', 'Three-quarters of the window'], ['whole', 'Whole', 'The whole window']];
|
|
24
|
+
const sizeOk = (v) => SIZES.some((x) => x[0] === v);
|
|
25
|
+
const sizeGet = () => { try { const v = localStorage.getItem(SIZE_KEY); return sizeOk(v) ? v : 'whole'; } catch { return 'whole'; } };
|
|
26
|
+
const sizeSet = (v) => { try { localStorage.setItem(SIZE_KEY, v); } catch { /* no storage */ } };
|
|
27
|
+
const sizeNow = () => { const d = $('#dlg'); return d.classList.contains('full') ? 'whole' : d.classList.contains('sz-half') ? 'half' : d.classList.contains('sz-three-quarters') ? 'three-quarters' : 'normal'; };
|
|
28
|
+
const sizeHtml = () => `<span class="stsz" role="group" aria-label="Size of the Studio">${SIZES.map(([k, l, t]) => `<button type="button" class="lk" data-st="size|${k}" aria-pressed="${sizeNow() === k}" title="${t}" aria-label="${t}">${l}</button>`).join('')}</span>`;
|
|
29
|
+
function setSize(k) {
|
|
30
|
+
const d = $('#dlg'); d.classList.remove('sz-half', 'sz-three-quarters');
|
|
31
|
+
setFull(k === 'whole');
|
|
32
|
+
if (k === 'half' || k === 'three-quarters') d.classList.add('sz-' + k);
|
|
33
|
+
sizeSet(k); syncSize();
|
|
34
|
+
}
|
|
35
|
+
function syncSize() { const e = $('#stSz'); if (e) e.innerHTML = sizeHtml(); }
|
|
21
36
|
const MODES = { chart: 'Chart', dash: 'Dashboard', rep: 'Report' };
|
|
22
37
|
const FORMN = { line: 'Line', bars: 'Bars', number: 'Number', meter: 'Meter' };
|
|
23
38
|
const FORMD = { line: 'How it moves over time. The default for a trend.', bars: 'One reading against another. Bars start at zero.', number: 'One current value, with its change and a small line.', meter: 'How far it is from its target or limit.' };
|
|
@@ -183,7 +198,7 @@ function guide() {
|
|
|
183
198
|
}
|
|
184
199
|
const modesHtml = () => `<div class="stmd" role="group" aria-label="What to make">${Object.keys(MODES).map((k) => `<button type="button" data-st="mode|${k}" aria-pressed="${st.mode === k}">${MODES[k]}</button>`).join('')}</div>`;
|
|
185
200
|
function canvasHtml() {
|
|
186
|
-
return `<div class="stu"><div class="stt"><span id="stMd">${modesHtml()}</span><span class="stx"><button type="button" class="lk" data-st="lib" aria-expanded="${st.lib}">Library</button></span></div><p class="stsug" id="stG">${guide()}</p><div id="stBr">${briefHtml()}</div><div id="stTr">${trayHtml()}</div><div id="stLb">${libHtml()}</div><div id="stPv">${previewHtml()}</div><div id="stCk">${checksHtml()}</div><p class="note stmsg" id="stMsg" role="status"></p><div id="stFt">${footHtml()}</div></div>`;
|
|
201
|
+
return `<div class="stu"><div class="stt"><span id="stMd">${modesHtml()}</span><span class="stx"><span id="stSz">${sizeHtml()}</span><button type="button" class="lk" data-st="lib" aria-expanded="${st.lib}">Library</button></span></div><p class="stsug" id="stG">${guide()}</p><div id="stBr">${briefHtml()}</div><div id="stTr">${trayHtml()}</div><div id="stLb">${libHtml()}</div><div id="stPv">${previewHtml()}</div><div id="stCk">${checksHtml()}</div><p class="note stmsg" id="stMsg" role="status"></p><div id="stFt">${footHtml()}</div></div>`;
|
|
187
202
|
}
|
|
188
203
|
function draw(parts) {
|
|
189
204
|
const all = !parts, set = (id, h) => { const e = $('#' + id); if (e) e.innerHTML = h; };
|
|
@@ -216,6 +231,7 @@ function act(a) {
|
|
|
216
231
|
if (k === 'mode') { if (st.mode !== x) { st.mode = x; st.pop = null; st.ck = false; if (x === 'rep' && !st.r) st.r = REP.blankReport(); draw(); } return; }
|
|
217
232
|
if (k === 'chip') { st.pop = st.pop === x ? null : x; draw(['br', 'tr', 'ft']); const i = $('#stI'); if (i) { i.focus(); try { i.setSelectionRange(i.value.length, i.value.length); } catch { /* no caret */ } } return; }
|
|
218
233
|
if (k === 'more') { st.more = !st.more; if (!st.more && /^(title|better|note|addTo)$/.test(st.pop || '')) st.pop = null; draw(['br', 'tr']); return; }
|
|
234
|
+
if (k === 'size') { setSize(x); return; }
|
|
219
235
|
if (k === 'lib') { st.lib = !st.lib; draw(['lb', 'tr', 'ft']); return; }
|
|
220
236
|
if (k === 'ck') { st.ck = !st.ck; draw(['ck']); return; }
|
|
221
237
|
if (k === 'fix') { const f = checks()[+x]; if (f && f.fix) act(f.fix[1].split('|')); return; }
|
|
@@ -414,7 +430,7 @@ export function openStudio(p) {
|
|
|
414
430
|
$('#askF').hidden = true; const an = $('#askNote'); if (an) an.hidden = true;
|
|
415
431
|
$('#dBody').insertAdjacentHTML('beforeend', `<form class="askbar" id="stF"><input id="stIn" placeholder="Say what to change" maxlength="400" autocomplete="off" aria-label="Say what to change"><button type="submit" aria-label="Send" title="Send">${ICO('<path d="M5 12h14M13 6l6 6-6 6"/>')}</button></form><p class="fine2" id="stHelp"></p>`);
|
|
416
432
|
$('#stF').onsubmit = onSay;
|
|
417
|
-
if (innerWidth >= 1000)
|
|
433
|
+
if (innerWidth >= 1000) setSize(sizeGet()); else syncSize();
|
|
418
434
|
draw();
|
|
419
435
|
}
|
|
420
436
|
REP.useStudio({ get st() { return st; }, get P() { return P; }, chip: (k, l, v) => chip(k, l, v), opt: (...a) => opt(...a), field: (...a) => field(...a), draw: (x) => draw(x), snap: () => snap(),
|
|
@@ -426,4 +442,4 @@ document.addEventListener('input', (e) => { if (inStudio(e)) onInput(e); });
|
|
|
426
442
|
document.addEventListener('focusout', (e) => { if (e.target && e.target.id === 'stI') typed = false; });
|
|
427
443
|
document.addEventListener('keydown', (e) => { if (e.key === 'Enter' && e.target.id === 'stI' && inStudio(e)) { e.preventDefault(); st.pop = null; typed = false; draw(['br', 'tr']); } });
|
|
428
444
|
/* Another dialog of the page opens without the Studio's class. */
|
|
429
|
-
new MutationObserver(() => { const d = $('#dlg'); if (d
|
|
445
|
+
new MutationObserver(() => { const d = $('#dlg'); if (!d) return; if (!d.classList.contains('on') && d.classList.contains('stud')) d.classList.remove('stud', 'sz-half', 'sz-three-quarters'); else if (d.classList.contains('stud')) syncSize(); }).observe($('#dlg'), { attributes: true, attributeFilter: ['class'] });
|
|
@@ -1931,3 +1931,15 @@ button.wl-row[aria-pressed="true"] .wl-tog{background:var(--solid);color:var(--o
|
|
|
1931
1931
|
.dscr .lk{justify-self:start;min-height:44px;display:inline-flex;align-items:center}
|
|
1932
1932
|
.lgdf{margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}.lgdf del{color:var(--bad);text-decoration:line-through}
|
|
1933
1933
|
.evl .hsr .lk{grid-column:2;justify-self:start;min-height:44px;display:inline-flex;align-items:center}.evl .hsr .dsdf{grid-column:2}
|
|
1934
|
+
|
|
1935
|
+
/* The Studio's size (Normal, Half, 3/4, Whole). Whole is .full. Half is the Studio's two parts as tabs, as on a narrow window. Not shown on a phone. */
|
|
1936
|
+
.stsz{display:none;gap:2px}
|
|
1937
|
+
@media (min-width:1000px){.stsz{display:inline-flex}}
|
|
1938
|
+
.stsz .lk[aria-pressed="true"]{background:var(--well);border-radius:999px;font-weight:700;color:var(--ink)}
|
|
1939
|
+
@media (min-width:1000px){
|
|
1940
|
+
.dlg.stud.sz-half:not(.full){width:50vw;min-width:560px;height:min(90vh,860px)}
|
|
1941
|
+
.dlg.stud.sz-three-quarters:not(.full){width:75vw;height:min(90vh,860px)}
|
|
1942
|
+
.dlg.stud.sz-half[data-mode="split"] #dTabs{display:flex}
|
|
1943
|
+
.dlg.stud.sz-half[data-mode="split"] .dgrid{grid-template-columns:minmax(0,1fr)}
|
|
1944
|
+
.dlg.stud.sz-half[data-mode="split"] .dgrid[data-tab="chat"] .p-out,.dlg.stud.sz-half[data-mode="split"] .dgrid[data-tab="out"] .p-work{display:none}
|
|
1945
|
+
}
|