create-pmos 0.336.0 → 0.337.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 +13 -13
- 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-test.js +18 -0
- package/workspace/changelog.json +12 -0
- package/workspace/guide/briefing-premium.md +1 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/premium-shell.js +5 -1
- package/workspace/public/pm/premium.css +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.337.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": {
|
|
@@ -32,6 +32,18 @@
|
|
|
32
32
|
"audit"
|
|
33
33
|
],
|
|
34
34
|
"pmosChanges": [
|
|
35
|
+
{
|
|
36
|
+
"v": "0.337.0",
|
|
37
|
+
"at": "2026-10-20T02:07:25.408Z",
|
|
38
|
+
"f": 2,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 832,
|
|
42
|
+
"t": "Soft warning in the Sessions dialog when more than six agents work",
|
|
43
|
+
"s": "When more than six sessions are in the working state, the dialog shows one note above the list: \"N agents are working at once."
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
35
47
|
{
|
|
36
48
|
"v": "0.336.0",
|
|
37
49
|
"at": "2026-10-20T01:42:17.900Z",
|
|
@@ -294,18 +306,6 @@
|
|
|
294
306
|
"s": "Every page has the same bar."
|
|
295
307
|
}
|
|
296
308
|
]
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"v": "0.317.0",
|
|
300
|
-
"at": "2026-10-19T14:34:45.290Z",
|
|
301
|
-
"f": 2,
|
|
302
|
-
"prs": [
|
|
303
|
-
{
|
|
304
|
-
"n": 895,
|
|
305
|
-
"t": "Usage-limit hold, governed report runs, narrow skill writes, resume after kill",
|
|
306
|
-
"s": "Usage-limit hold, governed report runs, narrow skill writes, resume after kill"
|
|
307
|
-
}
|
|
308
|
-
]
|
|
309
309
|
}
|
|
310
310
|
]
|
|
311
311
|
}
|
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-20T02:07:22Z"}
|
|
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-20T02:07:22Z"}
|
|
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-20T02:07:22Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -163,6 +163,24 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
163
163
|
await p.click('#oMain [data-yes="sess-2"]');
|
|
164
164
|
ok('X7 the second press ends it: the row says Ended and the toast confirms', !!(await until(() => p.evaluate(() => /Ended “Refresh metrics”/.test(document.querySelector('#oMain').textContent) && /Ended “Refresh metrics”/.test(document.querySelector('#toast').textContent)), 6000)));
|
|
165
165
|
ok('X8 the list re-reads and drops it, and the badge follows', !!(await until(() => p.evaluate(() => document.querySelectorAll('#oMain .ssr').length === 1 && document.querySelector('#sessBdg').textContent === '1'), 8000)));
|
|
166
|
+
/* the soft warning: silent at 6 working agents, speaks at 7, names the count and the cause, and offers no new press */
|
|
167
|
+
const rm0 = removes;
|
|
168
|
+
const mk = (n) => Array.from({ length: n }, (_, i) => ({ id: 'w-' + i, name: 'Agent ' + i, agent: 'claude', note: '', cwd: '.', created: new Date().toISOString(), shown: 'working', label: 'Working', automatic: false }));
|
|
169
|
+
const before = fake.slice();
|
|
170
|
+
fake.splice(0, fake.length, ...mk(6));
|
|
171
|
+
await p.keyboard.press('Escape'); await p.click('#moreBtn'); await p.click('#sessBtn');
|
|
172
|
+
const six = await until(() => p.evaluate(() => document.querySelectorAll('#oMain .ssr').length === 6), 8000);
|
|
173
|
+
ok('X10 six agents working: no warning', six && (await p.evaluate(() => !document.querySelector('#oMain .ssw'))));
|
|
174
|
+
fake.push(...mk(7).slice(6).map((x) => ({ ...x, id: 'w-6' })));
|
|
175
|
+
await p.keyboard.press('Escape'); await p.click('#moreBtn'); await p.click('#sessBtn');
|
|
176
|
+
const warnText = await until(() => p.evaluate(() => { const w = document.querySelector('#oMain .ssw'); return w ? w.textContent : ''; }), 8000);
|
|
177
|
+
ok('X11 seven agents working: the warning names the count and says why, in the dialog only', /^7 agents are working at once\./.test(warnText) && /slow it/.test(warnText) && /Stop the ones you are not watching/.test(warnText), warnText);
|
|
178
|
+
ok('X12 the warning adds no button and no write', (await p.evaluate(() => document.querySelectorAll('#oMain .ssw button, #oMain .ssw a').length)) === 0 && removes === rm0);
|
|
179
|
+
fake.splice(0, fake.length, ...mk(7).map((x, i) => (i < 3 ? { ...x, shown: 'needs', label: 'Needs you' } : x)));
|
|
180
|
+
await p.keyboard.press('Escape'); await p.click('#moreBtn'); await p.click('#sessBtn');
|
|
181
|
+
await until(() => p.evaluate(() => document.querySelectorAll('#oMain .ssr').length === 7), 8000);
|
|
182
|
+
ok('X13 only working agents are counted: seven sessions with three waiting is four working, no warning', await p.evaluate(() => !document.querySelector('#oMain .ssw')));
|
|
183
|
+
fake.splice(0, fake.length, ...before);
|
|
166
184
|
const bare = await fetch(BASE + '/api/session/remove', { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ id: 'sess-1' }) });
|
|
167
185
|
ok('X9 Stop is a page press: no nonce, no end (403)', bare.status === 403, String(bare.status));
|
|
168
186
|
/* premium-run-questions: a session whose card is asking shows the agent's own question and its offered options; a press is the one write, /api/runs/answer */
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.337.0",
|
|
4
|
+
"at": "2026-10-20T02:07:25.408Z",
|
|
5
|
+
"f": 2,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 832,
|
|
9
|
+
"t": "Soft warning in the Sessions dialog when more than six agents work",
|
|
10
|
+
"s": "When more than six sessions are in the working state, the dialog shows one note above the list: \"N agents are working at once."
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
2
14
|
{
|
|
3
15
|
"v": "0.336.0",
|
|
4
16
|
"at": "2026-10-20T01:42:17.900Z",
|
|
@@ -26,7 +26,7 @@ Every premium page has the same top bar. On the left is where you are, then a ro
|
|
|
26
26
|
|
|
27
27
|
**Sources** is a dialog that lists each tracked source (Repository, Initiatives, Calendar, Jira status, My work and Tracker items) with its own state and the time it was last read. Each source except the repository has **Refresh**, and **Refresh all** reads them all again. Slack and email are read as part of My work, so they have no row of their own. A source PMOS does not track has no row: the dialog shows only what PMOS can say it read.
|
|
28
28
|
|
|
29
|
-
**Agent sessions** in the ⋯ menu shows a count of the sessions running. It opens a dialog that lists each running session and background run with its note, state and start time. **Stop** asks first and says what it ends, then ends the session and closes its terminal. If the session has not exited yet, the row says so and offers Stop again. When a session has asked a question, its row shows the question in the agent's own words with the options it offered; a press sends that option as your answer, and the question leaves the row. A permission request ("Wants to run"), terminals and new sessions stay in the console; the dialog links to it. Answering needs the page's launch nonce, so an agent session cannot call it.
|
|
29
|
+
**Agent sessions** in the ⋯ menu shows a count of the sessions running. It opens a dialog that lists each running session and background run with its note, state and start time. **Stop** asks first and says what it ends, then ends the session and closes its terminal. If the session has not exited yet, the row says so and offers Stop again. When more than six agents are working at once, a note at the top says how many and that many at once can slow this computer, and suggests stopping the ones you are not watching. It is only a note: nothing is stopped for you. When a session has asked a question, its row shows the question in the agent's own words with the options it offered; a press sends that option as your answer, and the question leaves the row. A permission request ("Wants to run"), terminals and new sessions stay in the console; the dialog links to it. Answering needs the page's launch nonce, so an agent session cannot call it.
|
|
30
30
|
|
|
31
31
|
## Products
|
|
32
32
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.337.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.337.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/workspace/package.json
CHANGED
|
@@ -716,6 +716,8 @@ export async function openSettings() {
|
|
|
716
716
|
* Reads GET /api/sessions, the list the console dock reads. The one write is POST /api/session/remove, a page press. A session's terminal, a new
|
|
717
717
|
* session and a run's questions stay in the console. Every word on a row is a field of the session record. */
|
|
718
718
|
const sessLive = (s) => s && s.shown !== 'exited';
|
|
719
|
+
const SESS_MANY = 6; // more agents than this working at once earns the soft warning in the Sessions dialog
|
|
720
|
+
const sessWorking = (l) => l.filter((x) => x.shown === 'working').length;
|
|
719
721
|
const readSessions = async () => { const r = await pmGet('/api/sessions'); return r && Array.isArray(r.sessions) ? r.sessions.filter(sessLive) : null; };
|
|
720
722
|
// The cards the console's run card reads (GET /api/runs): a session whose card is asking carries the agent's own question and the options it offered.
|
|
721
723
|
const readAsks = async () => { const r = await pmGet('/api/runs'); const out = {}; if (r && r.ok && r.cards) for (const [id, c] of Object.entries(r.cards)) if (c && c.state === 'asking' && c.ask && c.ask.q && Array.isArray(c.ask.options) && c.ask.options.length) out[id] = { request: c.asked || c.ask.id, q: c.ask.q, options: c.ask.options }; return out; };
|
|
@@ -746,7 +748,9 @@ export async function openSessions() {
|
|
|
746
748
|
${ask && !busy ? `<div class="ssc" role="group" aria-label="Confirm stop"><p><b>Stop “${esc(x.name)}”?</b> ${what} Files it already wrote stay where they are.</p><div class="ssx"><button type="button" class="cta bad" data-yes="${esc(x.id)}">Stop</button><button type="button" class="cta alt" data-no="${esc(x.id)}">Keep running</button></div></div>` : ''}
|
|
747
749
|
${slow ? `<div class="ssc" role="group" aria-label="Still running"><p><b>Asked “${esc(x.name)}” to end.</b> It has not exited yet. Press Stop again to remove it.</p><div class="ssx"><button type="button" class="cta bad" data-yes="${esc(x.id)}">Stop again</button><button type="button" class="cta alt" data-no="${esc(x.id)}">Keep running</button></div></div>` : ''}</li>`;
|
|
748
750
|
}).join('')}</ul>` : '<div class="sse"><b>No agent sessions running.</b><p>New sessions start in the console.</p></div>';
|
|
749
|
-
|
|
751
|
+
const w = l ? sessWorking(l) : 0;
|
|
752
|
+
const warn = w > SESS_MANY ? `<p class="note ssw" role="status"><b>${w} agents are working at once.</b> Each one is a program running on this computer, so many at once can slow it. Stop the ones you are not watching.</p>` : '';
|
|
753
|
+
$('#oMain').innerHTML = `<article class="paper doc"><div class="addf">${warn}${rows}
|
|
750
754
|
<p class="note" id="ssM" role="status" style="margin:0;min-height:1.2em">${esc(M.err)}</p>
|
|
751
755
|
<p class="note" style="margin:0">Terminals and new sessions stay in the console. <a href="/console.html">Open the console</a>.</p></div></article>`;
|
|
752
756
|
};
|
|
@@ -1619,6 +1619,7 @@ button.dsn:hover{box-shadow:inset 0 0 0 1.5px rgb(79,109,245)}
|
|
|
1619
1619
|
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .cta.bad{color:rgb(40,12,10)}}
|
|
1620
1620
|
:root[data-theme="dark"] .cta.bad{color:rgb(40,12,10)}
|
|
1621
1621
|
.ssdone{color:var(--ok);font-weight:600}
|
|
1622
|
+
.ssw{margin:0;padding:12px 16px;border-radius:var(--r-in);background:var(--well);border-left:3px solid var(--ember);color:var(--ink-2)}.ssw b{color:var(--ink);font-weight:600}
|
|
1622
1623
|
.sse{padding:34px 20px;text-align:center;border-radius:var(--r-in);background:var(--well)}.sse b{display:block;font-size:var(--fs-4);font-weight:600}.sse p{color:var(--ink-2);margin-top:6px;font-size:var(--t-small)}
|
|
1623
1624
|
@media (max-width:700px){.ssr{grid-template-columns:auto minmax(0,1fr)}.ssr>.cta{grid-column:2}}
|
|
1624
1625
|
|