create-pmos 0.281.0 → 0.283.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/briefing-premium-insights-test.js +1 -0
- package/workspace/briefing-premium-test.js +2 -1
- package/workspace/guide/briefing-premium.md +3 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/premium-insights.js +1 -1
- package/workspace/public/pm/premium-shell.js +4 -3
- package/workspace/public/pm/premium-work.js +1 -1
- package/workspace/public/pm/premium.css +1 -0
- package/workspace/public/pm/premium.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.283.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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-19T02:39:02Z"}
|
|
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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-19T02:39:02Z"}
|
|
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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-19T02:39:02Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -111,6 +111,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
111
111
|
ok('I7 a finding opens the standard dialog: the record\'s numbers, its readings with dates, its path, and only the dashboard switch as a press', dl.title === 'Time to first call' && /real data/.test(dl.eye) && /Target3 days by 31 Dec/.test(dl.kv) && /15 Oct9 days/.test(dl.kv) && dl.path === 'planning/records/kr-metrics.jsonl' && dl.btn === 1 && dl.sw === 'Weekly partner review:true' && /Nothing here changes a record/.test(dl.hold) && dl.inert, JSON.stringify(dl));
|
|
112
112
|
ok('I7 Escape closes it and focus returns', (await p.keyboard.press('Escape'), await until(() => p.evaluate(() => !document.querySelector('#dlg').classList.contains('on')))));
|
|
113
113
|
await p.locator('#dashBody [data-open]').filter({ hasText: 'Details' }).first().click(); await until(() => p.evaluate(() => document.querySelector('#dlg').classList.contains('on'))); await sleep(300);
|
|
114
|
+
ok('I6 the measure popup draws the chart in its detail panel, under its heading and lead line, as the mockup does', await p.evaluate(() => { const o = document.querySelector('#oMain'), d1 = o.querySelector('.d1'), t = o.querySelector('.pdchart .mtile, .pdchart svg, .pdchart [class*="tile"]'); return !!d1 && !!t && !!(d1.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING); }));
|
|
114
115
|
ok('I7 the Details link of a chart opens that chart\'s dialog', (await txt('#dTitle')) === 'Partner activation');
|
|
115
116
|
await p.keyboard.press('Escape'); await sleep(300);
|
|
116
117
|
/* the agent is the read-only one: a question goes to the briefing route and nothing else posts */
|
|
@@ -218,7 +218,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
218
218
|
const d = await p.evaluate(() => ({ title: document.querySelector('#dTitle').textContent, inert: ['.rail', 'main.stage', '#dock'].every((s) => document.querySelector(s).inert), pane: document.querySelector('#oMain').textContent, card: document.querySelector('#card') ? document.querySelector('#card').textContent : '', log: document.querySelector('#logT') ? document.querySelector('#logT').textContent : '', label: document.querySelector('#oLab').textContent, input: document.querySelector('#askIn').disabled, role: document.querySelector('#dlg').getAttribute('aria-modal') }));
|
|
219
219
|
ok('R11 the page behind the dialog is inert and the dialog is modal', d.inert && d.role === 'true');
|
|
220
220
|
ok('R4 the dialog names the row, with an activity log of what was read', d.title === MODEL.list.rows[0].title && /Readfromtherepository3steps/.test(d.log.replace(/\s+/g, '')), d.log);
|
|
221
|
-
ok('R4 the detail pane
|
|
221
|
+
ok('R4 the detail pane opens with the record\'s path and heading, as the mockup draws it', await p.evaluate(() => { const o = document.querySelector('#oMain'); return !!o.querySelector('.dpath') && !!o.querySelector('.d1') && o.querySelector('.dpath').compareDocumentPosition(o.querySelector('.d1')) & Node.DOCUMENT_POSITION_FOLLOWING; }));
|
|
222
222
|
ok('R4 the card holds the evidence and the next step, and the right pane the record', /The way through/.test(d.card) && /Blocked at/.test(d.card) && /Initiative record/.test(d.label) && /planning\/initiatives|console-3-boards/.test(d.pane), d.card.slice(0, 120));
|
|
223
223
|
await until(() => p.evaluate(() => getComputedStyle(document.querySelector('#dlg')).transform === 'none' || /matrix\(1, 0, 0, 1, 0, 0\)/.test(getComputedStyle(document.querySelector('#dlg')).transform)), 3000);
|
|
224
224
|
const pane0 = await p.evaluate(() => { const b = document.querySelector('#dPane'); const r = b.getBoundingClientRect(); return { on: b.getAttribute('aria-pressed'), t: b.title, w: r.width, h: r.height, convo: getComputedStyle(document.querySelector('#dBody')).display }; });
|
|
@@ -312,6 +312,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
312
312
|
// slice 3: the read-only agent behind the reply box
|
|
313
313
|
await shut(); await openIdx(3);
|
|
314
314
|
ok('A1 the reply box has one Ask the agent button, 44 px, and no note button', await pg.evaluate(() => { const a = document.querySelector('#askGo'); const h = (e) => e.getBoundingClientRect().height; return !!a && h(a) >= 44 && /Ask the agent/.test(a.title) && !document.querySelector('#noteGo') && !/note/i.test(document.querySelector('#askF').textContent); }));
|
|
315
|
+
ok('A1b a hidden question box is not drawn (the Mentions dialog has no agent thread)', await pg.evaluate(() => { const f = document.querySelector('#askF'); if (!f) return false; f.hidden = true; const d = getComputedStyle(f).display; f.hidden = false; return d === 'none'; }));
|
|
315
316
|
answer = { status: 200, body: { ok: true, id: 'bq-1', state: 'working' } };
|
|
316
317
|
await pg.fill('#askIn', 'Why is KC5 on my list?');
|
|
317
318
|
const n0 = posts.length;
|
|
@@ -111,7 +111,7 @@ Not built in premium: translation, Present and the slides stage, Ask PMOS quietl
|
|
|
111
111
|
Under Today, the **Around you** card holds what the agents and the outside world have left for you. It has five rows. A row opens a dialog and states what it found in one line. The caption says how many rows wait on you, or "quiet". If a source cannot be read, its row says so and gives the reason. It never reads as empty.
|
|
112
112
|
|
|
113
113
|
- **Agent proposals.** Every open draft of the Initiative Driver, for initiatives and for Work items, when the agent mode for that kind is Approve. **Keep** records that you accept it and applies it (a problem statement, a stage move, a next step). **Send back** needs a note and starts a new run. **Drop** counts as a correction. None of the three can be undone. A decided proposal stays in the list and says what was recorded.
|
|
114
|
-
- **Mentions.** The people who named you in Slack, Jira, Confluence or mail, from today's morning brief. The row names who waits on a reply. **Make it a task** adds one Work item. **Mark read** hides the mention, and **Mark unread** brings it back. **Open in Slack** (or Jira, Confluence, mail) opens the original in a new tab. Nothing here replies, reacts or posts.
|
|
114
|
+
- **Mentions.** The people who named you in Slack, Jira, Confluence or mail, from today's morning brief. The row names who waits on a reply. **Make it a task** adds one Work item. **Mark read** hides the mention, and **Mark unread** brings it back. **Open in Slack** (or Jira, Confluence, mail) opens the original in a new tab. Nothing here replies, reacts or posts. The Mentions dialog has no question box, because a mention has no agent thread.
|
|
115
115
|
- **Portfolio pulse.** How many initiatives are late or at risk, by the Calendar's own status: the promised date against the forecast, or the Jira read. It is read only and it is not a forecast of its own. **Open the initiative** goes to its page.
|
|
116
116
|
- **Horizon scan.** When the scan last ran, when it runs next, its reports and their proposals. Each proposal says what **Approve** does before you press it. **Dismiss** asks for a reason and counts as a correction, and **Undo** takes a dismissal back. **Scan now** starts an agent that reads the public web and the repository, and says how many manual scans are left. A scan that is switched off says so and the button stays off.
|
|
117
117
|
- **Data freshness.** When each source was last read and its schedule. **Refresh** reads one source again. **Refresh all** reads every source except the repository. A source outside the machine is read by a skill, in an agent session, with your own connection. The page never says "up to date".
|
|
@@ -264,3 +264,5 @@ The premium Briefing is the default page: `/` and `/index.html` open it. The con
|
|
|
264
264
|
## The dialog on a phone and the document sheet's views
|
|
265
265
|
|
|
266
266
|
On a phone or tablet (under 1000 px) every dialog opens on **Detail**. A **Detail / Conversation** switch sits under the title, and **Open it** at the foot of Detail brings the conversation when an action waits there. The header holds only **Close**. A document sheet picks its view (**Read**, **Edit**, **Proposals**, **Edit log**, **Health**) from one button with a menu.
|
|
267
|
+
|
|
268
|
+
A dialog's detail panel opens with the record's path, its heading and one lead line. A decision's evidence reads as a list. A measure's dialog draws the measure's chart above its facts and readings.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.283.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.283.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/workspace/package.json
CHANGED
|
@@ -323,7 +323,7 @@ function drawDock() { $('#dN').textContent = M.dock.needs; $('#dLab').textConten
|
|
|
323
323
|
function cardHtml(c) { return `<div class="acard" id="card"><p class="ct">What this page can do</p><p class="nodef" id="holdWhy">${esc(c.dialog.hold)} The switches under On your dashboards save a dashboard and change no record.</p></div>`; }
|
|
324
324
|
function paneHtml(c) {
|
|
325
325
|
const p = c.dialog.pane;
|
|
326
|
-
return `<article class="paper doc"><p class="dpath">${esc(p.file)}</p>${
|
|
326
|
+
return `<article class="paper doc"><p class="dpath">${esc(p.file)}</p><h3 class="d1">${esc(c.title)}</h3><p>${esc(c.dialog.say)}</p><div class="ntw pdchart">${tileHtml(c)}</div><div class="kv2">${c.dialog.facts.map(([a, b]) => `<span>${esc(a)}</span><span>${esc(b)}</span>`).join('')}</div><h3 class="h2">All ${c.pts.length} readings</h3><div class="kv2">${p.rows.map(([a, b]) => `<span>${esc(a)}</span><span>${esc(b)}</span>`).join('')}</div>${onDashHtml(c)}<p class="xn">Read from the KR metric record. The line status is the record's own: the straight line from its baseline to its target. Nothing here is a forecast.</p></article>`;
|
|
327
327
|
}
|
|
328
328
|
/* Add to a dashboard (PRD D6): one switch per saved dashboard of the board. A press saves that dashboard with the chart added or taken off. */
|
|
329
329
|
function onDashHtml(c) {
|
|
@@ -118,12 +118,13 @@ export async function loadThread(key) {
|
|
|
118
118
|
}
|
|
119
119
|
$('#dBody').addEventListener('submit', async (e) => {
|
|
120
120
|
e.preventDefault();
|
|
121
|
-
if (!S.key) return;
|
|
122
121
|
const inp = $('#askIn'), text = inp.value.trim(), key = S.key;
|
|
122
|
+
if (!key) { $('#askNote').textContent = 'This row has no agent thread, so the question was not sent.'; return; }
|
|
123
123
|
if (!text) { $('#askNote').textContent = 'Write a question for the agent.'; return; }
|
|
124
|
-
const go = $('#askGo'); go.disabled = true;
|
|
124
|
+
const go = $('#askGo'); go.disabled = true; $('#askNote').textContent = 'Sending your question.';
|
|
125
125
|
const ws = new URLSearchParams(location.search).get('ws');
|
|
126
|
-
|
|
126
|
+
let res = null;
|
|
127
|
+
try { res = await pmPost('/api/briefing-premium/ask' + (ws ? '?ws=' + encodeURIComponent(ws) : ''), { key, text }); } catch { res = null; }
|
|
127
128
|
if (!res || res.ok !== true) { go.disabled = false; $('#askNote').textContent = (res && res.error) || 'The question was not sent.'; return; }
|
|
128
129
|
inp.value = ''; $('#askNote').textContent = 'Sent. The agent is answering.';
|
|
129
130
|
loadThread(key);
|
|
@@ -187,7 +187,7 @@ function cardInner(r) {
|
|
|
187
187
|
const cardHtml = (r) => `<div class="acard" id="card">${cardInner(r)}</div>`;
|
|
188
188
|
function paneHtml(r) {
|
|
189
189
|
const p = r.dialog.pane;
|
|
190
|
-
let h = `<p class="dpath">${esc(p.file)}</p
|
|
190
|
+
let h = `<p class="dpath">${esc(p.file)}</p>${p.h ? `<h3 class="d1">${esc(p.h)}</h3>` : ''}${p.intro ? `<p>${esc(p.intro)}</p>` : ''}`; // the heading and lead line, as the mockup draws them
|
|
191
191
|
if (p.rows && p.rows.length) h += `<div class="kv2">${p.rows.map(([a, b]) => `<span>${esc(a)}</span><span>${esc(b)}</span>`).join('')}</div>`;
|
|
192
192
|
if (p.paras && p.paras.length) h += `<h3 class="d2">${esc(p.parasTitle)}</h3>${p.paras.map((x) => `<p>${esc(x)}</p>`).join('')}`;
|
|
193
193
|
return `<article class="paper doc">${h}<p class="xn">The item as your list holds it.</p></article>`;
|
|
@@ -271,6 +271,7 @@ a.round{color:inherit;text-decoration:none}
|
|
|
271
271
|
.op[aria-pressed="true"]{background:var(--card)}
|
|
272
272
|
.tri{border-top-color:var(--hair)}
|
|
273
273
|
.fine2{font-size:12.5px;color:var(--ink-3);margin:2px 0 0;text-align:center}
|
|
274
|
+
.askbar[hidden],.fine2[hidden]{display:none}
|
|
274
275
|
.askbar{display:flex;gap:8px;position:sticky;bottom:0;padding:14px 0 4px;margin-top:12px;background:linear-gradient(to top,var(--card) 70%,transparent)}
|
|
275
276
|
.askbar input{flex:1;min-width:0;height:46px;border-radius:28px;border:0;background:var(--well);padding:0 18px;font:inherit;color:var(--ink);outline:0}
|
|
276
277
|
.askbar input:focus{box-shadow:0 0 0 2px var(--b3)}
|
|
@@ -143,11 +143,11 @@ function cardHtml(r) {
|
|
|
143
143
|
return `${head}${d.nodef ? `<p class="nodef">${esc(d.nodef)}</p>` : ''}${d.action ? `<div class="cact"><button class="cta" disabled title="${esc(d.hold || 'Nothing here can be recorded.')}">${CHECK}${esc(d.action)}</button></div>${d.hold ? holdNote(d.hold) : ''}` : ''}</div>`;
|
|
144
144
|
}
|
|
145
145
|
function paneHtml(r) {
|
|
146
|
-
// the
|
|
146
|
+
// as the mockup draws it: the record's path, its heading and one lead line, then its grid or sections
|
|
147
147
|
const p = r.dialog.pane, sel = SEL[r.key] || r.dialog.sel, o = (r.dialog.opts || []).find((x) => x.k === sel);
|
|
148
|
-
let h = `<p class="dpath">${esc(p.file || '')}</p
|
|
148
|
+
let h = `<p class="dpath">${esc(p.file || '')}</p>${p.h ? H1(p.h) : ''}${p.intro ? P1(p.intro) : ''}`;
|
|
149
149
|
if (p.list) h = `<p class="dpath">planning/runs/evals.jsonl</p><ol class="stp">${r.dialog.items.map((x, k) => `<li><i>${k + 1}</i><span><b>${esc(x.t)}</b><small>${esc(x.m + ' · ' + x.s)}${x.lead ? '. ' + esc(x.lead) : ''}</small></span></li>`).join('')}</ol>`;
|
|
150
|
-
else if (p.optsDraft) h += H2('Evidence') +
|
|
150
|
+
else if (p.optsDraft) h += H2('Evidence') + UL(p.evidence.filter((x) => x && x[1]).map(([k, v]) => k + ': ' + v)) + H2('Decision') + P1(o ? o.t + '. ' + o.draft : 'Choose an option to draft the entry.') + `<p class="xn">A draft. Nothing is written to the journal until you press Record.</p>`;
|
|
151
151
|
else h += (p.rows && p.rows.length ? kv(p.rows) : '') + (p.paras && p.paras.length ? (p.parasTitle ? H2(p.parasTitle) : '') + p.paras.map(P1).join('') : '') + `<p class="xn">The record as it stands. Nothing is drafted here.</p>`;
|
|
152
152
|
return `<article class="paper doc">${h}</article>`;
|
|
153
153
|
}
|