create-pmos 0.481.0 → 0.482.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 -14
- 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/briefing-premium.md +2 -2
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-html-viewer-test.js +1 -1
- package/workspace/public/pm/home-chat.js +10 -2
- package/workspace/public/pm/premium-vw-doc.css +5 -0
- package/workspace/public/pm/premium-vw-file.js +1 -1
- package/workspace/stage-card-tasks-test.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.482.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,19 @@
|
|
|
32
32
|
"audit"
|
|
33
33
|
],
|
|
34
34
|
"pmosChanges": [
|
|
35
|
+
{
|
|
36
|
+
"v": "0.482.0",
|
|
37
|
+
"at": "2026-11-01T23:25:19.509Z",
|
|
38
|
+
"f": 3,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 1142,
|
|
42
|
+
"t": "PDF takes the Viewer's whole width; a queued chat line leaves once read (batch 22 items 15, 16)",
|
|
43
|
+
"s": "PDF takes the Viewer's whole width; a queued chat line leaves once read (batch 22 items 15, 16)",
|
|
44
|
+
"k": "fix"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
35
48
|
{
|
|
36
49
|
"v": "0.481.0",
|
|
37
50
|
"at": "2026-11-01T15:21:25.176Z",
|
|
@@ -282,19 +295,6 @@
|
|
|
282
295
|
"k": "fix"
|
|
283
296
|
}
|
|
284
297
|
]
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
"v": "0.462.0",
|
|
288
|
-
"at": "2026-10-31T02:08:48.803Z",
|
|
289
|
-
"f": 3,
|
|
290
|
-
"prs": [
|
|
291
|
-
{
|
|
292
|
-
"n": 1113,
|
|
293
|
-
"t": "Program initiatives on the board list; a leave in the main tree wins over the worktree copy",
|
|
294
|
-
"s": "Program initiatives on the board list; a leave in the main tree wins over the worktree copy",
|
|
295
|
-
"k": "fix"
|
|
296
|
-
}
|
|
297
|
-
]
|
|
298
298
|
}
|
|
299
299
|
]
|
|
300
300
|
}
|
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-01T23:25:16Z"}
|
|
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-01T23:25:16Z"}
|
|
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-01T23:25:16Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.482.0",
|
|
4
|
+
"at": "2026-11-01T23:25:19.509Z",
|
|
5
|
+
"f": 3,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1142,
|
|
9
|
+
"t": "PDF takes the Viewer's whole width; a queued chat line leaves once read (batch 22 items 15, 16)",
|
|
10
|
+
"s": "PDF takes the Viewer's whole width; a queued chat line leaves once read (batch 22 items 15, 16)",
|
|
11
|
+
"k": "fix"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
2
15
|
{
|
|
3
16
|
"v": "0.481.0",
|
|
4
17
|
"at": "2026-11-01T15:21:25.176Z",
|
|
@@ -504,14 +504,14 @@ Press **+** at the left of the message box. The menu has three items: **Add file
|
|
|
504
504
|
|
|
505
505
|
### Open a file Claude names
|
|
506
506
|
|
|
507
|
-
A PDF that Claude names opens in the Viewer, in the browser's own PDF viewer. Other files show as text.
|
|
507
|
+
A PDF that Claude names opens in the Viewer, in the browser's own PDF viewer. It takes the whole width and height of the Viewer, with its path under it. Other files show as text.
|
|
508
508
|
|
|
509
509
|
### Give Claude a goal with `/goal`
|
|
510
510
|
|
|
511
511
|
Type `/` in the box to see the commands: `/goal`, `/compact` and `/clear`. Use the arrow keys and Enter, or press one.
|
|
512
512
|
|
|
513
513
|
- **`/goal <what you want>`** asks Claude to make the goal SMART before any work. Claude reads the records first, then asks only what it could not find out: at most 5 questions, one at a time, about how you will know it is done, by when, whether it can be done here, and what it serves.
|
|
514
|
-
- **Each question** shows its answers as buttons, with the recommended one marked. Press one, or answer in your own words. A pressed answer turns blue and says **Sent**, and the others wait until Claude answers. While the goal is agreed, the Viewer shows the goal so far. Your bubble shows only what you typed, never the rule PMOS adds. **Start with defaults** stops the questions; a value you did not give is marked "assumed".
|
|
514
|
+
- **Each question** shows its answers as buttons, with the recommended one marked. Press one, or answer in your own words. A pressed answer turns blue and says **Sent**, and the others wait until Claude answers. While the goal is agreed, the Viewer shows the goal so far. Your bubble shows only what you typed, never the rule PMOS adds. A message you send while Claude works waits under the conversation with "Claude reads it after this tool call"; that line goes as soon as Claude has read it, so it never stays above later turns. **Start with defaults** stops the questions; a value you did not give is marked "assumed".
|
|
515
515
|
- **The goal card** is in the viewer, in a **Goal** tab, like Notes. The conversation shows only a small Goal chip with the goal's state; press it to open the tab. On a phone the tab covers the page, and **Back** returns to the conversation.
|
|
516
516
|
- **The card** shows the goal, its done points, what Claude may do, what it serves, the deadline and the round limit. Nothing runs until you press **Start** (under Claude's message or in the Goal tab). **Change something** lets you say what to change; **Cancel** drops the goal.
|
|
517
517
|
- **Start** tells Claude to work on the goal until every done point is met. Merging follows your standing rule (merge once required CI is green). Claude asks before anything that is sent to other people.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.482.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.482.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -50,7 +50,7 @@ const SHOTS = process.env.PMOS_SHOTS || '', TAG = process.env.PMOS_SHOTS_TAG ||
|
|
|
50
50
|
const src = M.fileHtml({ name: 'r.html', kind: 'html', text: '<b>"x"</b>', rel: 'r.html' });
|
|
51
51
|
ok('H5 the frame is sandboxed to scripts alone', /sandbox="allow-scripts"/.test(src) && !/allow-same-origin/.test(src), src);
|
|
52
52
|
const pdf = M.fileHtml({ name: 'deck.pdf', kind: 'pdf', src: '/api/asset?ws=w&path=planning%2Fdeck.pdf', rel: 'planning/deck.pdf' });
|
|
53
|
-
ok('H5b batch 22 item 12: a PDF shows in the browser\'s PDF viewer, from /api/asset, never "could not be shown"', /<iframe class="vwframe vwpdff"[^>]*src="\/api\/asset\?ws=w&path=planning%2Fdeck\.pdf#view=FitH"/.test(pdf) && !/could not be shown/.test(pdf) && M.downloadsOf({ name: 'deck.pdf', kind: 'pdf', src: 'x' }).length === 0, pdf);
|
|
53
|
+
ok('H5b batch 22 item 12: a PDF shows in the browser\'s PDF viewer, from /api/asset, never "could not be shown", and full width with no card (item 15)', /<iframe class="vwframe vwpdff"[^>]*src="\/api\/asset\?ws=w&path=planning%2Fdeck\.pdf#view=FitH"/.test(pdf) && !/could not be shown/.test(pdf) && !/class="cf /.test(pdf) && M.downloadsOf({ name: 'deck.pdf', kind: 'pdf', src: 'x' }).length === 0, pdf);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
const exe = findBrowser();
|
|
@@ -162,8 +162,16 @@ export function mountChat(el, host) {
|
|
|
162
162
|
// as typed: PMOS wraps a report ask or a /goal in its rule, adds the files line, and a live session joins the lines (batch 22 item 10:
|
|
163
163
|
// a /goal sent with a file stayed "reads it after this tool call" after Claude had read it), so compare the words alone
|
|
164
164
|
const key = (t) => splitFiles(shownUser(t)).text.replace(/\s+/g, ' ').trim();
|
|
165
|
-
const
|
|
166
|
-
|
|
165
|
+
const users = ((C.conv && C.conv.messages) || []).filter((m) => m.role === 'user');
|
|
166
|
+
const said = new Set(users.map((m) => key(m.text)));
|
|
167
|
+
// a queued line is read once any PM turn lands at or after it: the chat may hold only its latest messages, or PMOS may have wrapped the
|
|
168
|
+
// words (Wawan, 2026-11-02, batch 22 item 16: the very first /goal stayed "reads it after this tool call" for hours). Read lines leave the queue.
|
|
169
|
+
const t0 = (x) => Date.parse(x.at) || 0;
|
|
170
|
+
const lastUser = users.reduce((n, m) => Math.max(n, Date.parse(m.at) || 0), 0);
|
|
171
|
+
const read = (x) => said.has(key(x.text)) || (lastUser && t0(x) && lastUser >= t0(x) - 2000);
|
|
172
|
+
const gone = q.filter(read);
|
|
173
|
+
if (gone.length && host.unqueue) setTimeout(() => gone.forEach((x) => host.unqueue(sid(), x.at)), 0);
|
|
174
|
+
return q.filter((x) => !read(x)).map((x) => `<div class="hm-q"><div class="hm-qb">${userHtml(x.text)}</div><span class="hm-qn">${esc(role().name)} reads it after this tool call, in seconds<button type="button" class="hm-qx" data-hm-qdel="${esc(x.at)}" aria-label="Take it back" title="Take it back">${SVG(XX, 13)}</button></span></div>`).join('');
|
|
167
175
|
}
|
|
168
176
|
const sid = () => (C.t && C.t.sid) || (C.th && C.th.session) || null;
|
|
169
177
|
// A loose chat that reads like one initiative gets one quiet chip at its top: "Looks like <initiative> · Link it ×" (XvALinkSuggest).
|
|
@@ -253,3 +253,8 @@ iframe.vwprint{position:fixed;right:0;bottom:0;width:1px;height:1px;border:0;opa
|
|
|
253
253
|
.vwtoc a{display:block;padding:4px 0;color:var(--ink);text-decoration:none;font:400 var(--fs-2) var(--sans)}
|
|
254
254
|
.vwtoc a:hover{color:var(--blue-ink, var(--ink))}
|
|
255
255
|
@media (max-width:640px){.vwtoc a{padding:8px 0}}
|
|
256
|
+
/* a PDF takes the Viewer's whole width and height, with no card around it (Wawan, 2026-11-02, batch 22 item 15) */
|
|
257
|
+
.vwdoc.vwpdf{max-width:none;padding:0 0 8px}
|
|
258
|
+
.vwpdf .vwfile{display:flex;flex-direction:column;gap:6px}
|
|
259
|
+
.vwpdf .vwpdff{height:calc(100dvh - 150px);min-height:420px}
|
|
260
|
+
.vwpdf .cff{display:flex;gap:8px;font-size:var(--fs-1);color:var(--ink3);padding:0 2px}
|
|
@@ -100,7 +100,7 @@ export function fileHtml(f, view = 'page') {
|
|
|
100
100
|
return `<div class="vwdoc"><div class="vwfnone" role="status"><b>${esc(head)}</b><p class="vwmut">${esc(f.why || '')}</p><code>${esc(f.path)}</code></div></div>`;
|
|
101
101
|
}
|
|
102
102
|
if (f.err) return `<div class="vwdoc"><div class="vwfnone" role="status"><b>The file could not be shown</b><p class="vwmut">${esc(f.err)}</p><code>${esc(f.abs || f.path)}</code></div></div>`;
|
|
103
|
-
if (f.kind === 'pdf' && f.src) return `<div class="vwdoc vwpdf"><article class="
|
|
103
|
+
if (f.kind === 'pdf' && f.src) return `<div class="vwdoc vwpdf"><article class="vwfile">${''/* the Viewer's header names the file: the PDF takes the whole width (Wawan, 2026-11-02) */}<iframe class="vwframe vwpdff" title="${esc(f.name)}" src="${esc(f.src)}#view=FitH"></iframe>`
|
|
104
104
|
+ `<footer class="cff"><span>Read-only · PDF</span><span class="gap"></span><code>${esc(f.abs || f.rel)}</code></footer></article></div>`;
|
|
105
105
|
const foot = `<footer class="cff"><span>Read-only · ${readMinutes(f.text)} min read</span><span class="gap"></span><code>${esc(f.abs || f.rel)}</code></footer>`;
|
|
106
106
|
if (f.kind === 'markdown') {
|
|
@@ -27,6 +27,7 @@ const BASE = T.BASE, SHOTS = process.env.PMOS_SHOTS || '';
|
|
|
27
27
|
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
28
28
|
const until = async (fn, ms = 10000, step = 100) => { const t0 = Date.now(); for (;;) { let v = null; try { v = await fn(); } catch { v = null; } if (v) return v; if (Date.now() - t0 > ms) return v; await sleep(step); } };
|
|
29
29
|
const results = [];
|
|
30
|
+
const DAY = Date.parse('2026-10-17T09:00:00Z'); // the fixture's day, and the browser's clock
|
|
30
31
|
const ok = (name, cond, extra = '') => { results.push({ name, cond: !!cond }); console.log(`${cond ? '✓' : '✗'} ${name}${!cond && extra !== '' ? ' — ' + String(extra).slice(0, 500) : ''}`); };
|
|
31
32
|
let srv = null; let browser = null;
|
|
32
33
|
const finish = async (code) => {
|
|
@@ -66,13 +67,14 @@ const TICKETS = [{ key: 'IDPF-3387', title: 'Refactor the AppAuthService', statu
|
|
|
66
67
|
await ctx.addInitScript(() => { try { if (localStorage.getItem('cz-pn:board') == null) localStorage.setItem('cz-pn:board', JSON.stringify({ v: 2, share: 0.405 })); } catch { /* none */ } }); // the Board's Viewer at 560 px beside the page (cozy-panels.js keeps only this share), so its Tasks Timeline is wide enough to drag
|
|
67
68
|
await ctx.addInitScript((v) => { localStorage.setItem('pmos.tasks.view', v); localStorage.setItem('pmos.tasks.zoom', 'month'); }, view);
|
|
68
69
|
const page = await ctx.newPage(), errors = [], posts = [];
|
|
70
|
+
await page.clock.install({ time: DAY }); // the fixture's day: the date picker's month and its Today chips stay on it after the real day passes
|
|
69
71
|
// the board's state: the writes land here, and the next read shows them
|
|
70
72
|
const S = { tasks: TASKS(), order: {} };
|
|
71
73
|
const M = () => {
|
|
72
74
|
const m = BP.build(F.facts()); const r = m.rows.find((x) => x.id === id);
|
|
73
75
|
r.tasks = S.tasks.map((t) => { const L = S.order[t.section || ''] || [], i = L.indexOf(t.uid); return { ...t, ...(i >= 0 ? { rank: i } : {}) }; });
|
|
74
76
|
r.track = { ...(r.track || {}), tickets: TICKETS };
|
|
75
|
-
m.jira = { ...(m.jira || {}), readAt: new Date(
|
|
77
|
+
m.jira = { ...(m.jira || {}), readAt: new Date(DAY - 4 * 60000).toISOString() };
|
|
76
78
|
return m;
|
|
77
79
|
};
|
|
78
80
|
const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'application/json', body: JSON.stringify(b) });
|