create-pmos 0.361.0 → 0.363.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 +40 -25
- 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-board-test.js +4 -4
- package/workspace/briefing-premium-calendar-2-test.js +3 -3
- package/workspace/briefing-premium-calendar-3-test.js +6 -5
- package/workspace/briefing-premium-calendar-test.js +3 -2
- package/workspace/briefing-premium-initiative-test.js +3 -3
- package/workspace/briefing-premium-insights-test.js +1 -1
- package/workspace/briefing-premium-test.js +26 -11
- package/workspace/briefing-premium-work-test.js +1 -1
- package/workspace/changelog.json +39 -0
- package/workspace/guide/briefing-premium.md +26 -21
- package/workspace/lib/board-premium.js +8 -3
- package/workspace/lib/engine/boards.js +5 -3
- package/workspace/lib/proactive.js +21 -3
- package/workspace/lib/routes-board-premium.js +1 -1
- package/workspace/lib/routes-boards.js +15 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-studio-test.js +6 -6
- package/workspace/premium-vw-item-test.js +2 -2
- package/workspace/premium-vw-jira-test.js +22 -6
- package/workspace/premium-vw-meet-test.js +32 -21
- package/workspace/premium-vw-notes-test.js +5 -5
- package/workspace/premium-vw-rec-test.js +1 -1
- package/workspace/public/pm/premium-board.js +3 -3
- package/workspace/public/pm/premium-meeting.js +28 -29
- package/workspace/public/pm/premium-shell.js +44 -21
- package/workspace/public/pm/premium-vw-jira-model.js +8 -5
- package/workspace/public/pm/premium-vw-jira.css +9 -0
- package/workspace/public/pm/premium-vw-jira.js +21 -9
- package/workspace/public/pm/premium-vw-meet.css +27 -7
- package/workspace/public/pm/premium-vw-meet.js +31 -16
- package/workspace/public/pm/premium.css +28 -4
- package/workspace/public/premium-board.html +1 -0
- package/workspace/public/premium-initiative.html +1 -0
- package/workspace/public/premium-insights.html +1 -0
- package/workspace/public/premium-work.html +2 -1
- package/workspace/public/premium.html +2 -1
- package/workspace/server.js +13 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.363.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,45 @@
|
|
|
32
32
|
"audit"
|
|
33
33
|
],
|
|
34
34
|
"pmosChanges": [
|
|
35
|
+
{
|
|
36
|
+
"v": "0.363.0",
|
|
37
|
+
"at": "2026-10-21T00:46:24.704Z",
|
|
38
|
+
"f": 2,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 965,
|
|
42
|
+
"t": "Chat is the big middle place in the premium rail",
|
|
43
|
+
"s": "Chat is the big middle place in the premium rail"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"n": 966,
|
|
47
|
+
"t": "The meeting detail is one scroll with a short head on a phone",
|
|
48
|
+
"s": "The meeting detail is one scroll with a short head on a phone"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"v": "0.362.0",
|
|
54
|
+
"at": "2026-10-21T00:23:03.151Z",
|
|
55
|
+
"f": 2,
|
|
56
|
+
"prs": [
|
|
57
|
+
{
|
|
58
|
+
"n": 961,
|
|
59
|
+
"t": "Settings lists every connector of your Claude session",
|
|
60
|
+
"s": "Settings › Connectors lists every connector your Claude session has, and says that your sessions can use all of them while a switch only chooses what PMOS reads on its own."
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"n": 963,
|
|
64
|
+
"t": "The premium Board release card lists the board's past releases",
|
|
65
|
+
"s": "The premium Board release card lists the board's past releases"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"n": 964,
|
|
69
|
+
"t": "Premium Sprint tab folds past sprints, shows the goal from the tickets, opens every ticket",
|
|
70
|
+
"s": "Premium Sprint tab folds past sprints, shows the goal from the tickets, opens every ticket"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
35
74
|
{
|
|
36
75
|
"v": "0.361.0",
|
|
37
76
|
"at": "2026-10-21T00:14:19.012Z",
|
|
@@ -267,30 +306,6 @@
|
|
|
267
306
|
"s": "Replay follows the rich layout from prototype PR 901."
|
|
268
307
|
}
|
|
269
308
|
]
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"v": "0.343.0",
|
|
273
|
-
"at": "2026-10-20T05:20:19.894Z",
|
|
274
|
-
"f": 2,
|
|
275
|
-
"prs": [
|
|
276
|
-
{
|
|
277
|
-
"n": 938,
|
|
278
|
-
"t": "A file Claude names in a premium chat panel opens beside the conversation",
|
|
279
|
-
"s": "A file path in Claude's words is underlined, and pressing it opens the file read-only as a viewer tab beside the conversation."
|
|
280
|
-
}
|
|
281
|
-
]
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
"v": "0.342.0",
|
|
285
|
-
"at": "2026-10-20T04:02:58.586Z",
|
|
286
|
-
"f": 2,
|
|
287
|
-
"prs": [
|
|
288
|
-
{
|
|
289
|
-
"n": 937,
|
|
290
|
-
"t": "Label rows in premium cards no longer overlap at phone width",
|
|
291
|
-
"s": "The rows stay as two columns, one row per label, at every width."
|
|
292
|
-
}
|
|
293
|
-
]
|
|
294
309
|
}
|
|
295
310
|
]
|
|
296
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-21T00:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-21T00:46:21Z"}
|
|
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-21T00:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-21T00:46:21Z"}
|
|
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-21T00:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-21T00:46:21Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -64,7 +64,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
64
64
|
|
|
65
65
|
/* B1 */
|
|
66
66
|
const rail = await p.evaluate(() => ({ names: [...document.querySelectorAll('.rail .pl')].map((b) => b.textContent.trim()), cur: document.querySelector('.rail [aria-current="page"]').textContent.trim(), pi: getComputedStyle(document.querySelector('.rail')).getPropertyValue('--pi').trim(), title: document.title, name: document.querySelector('#crBoard').textContent, sw: document.querySelector('#crSw').hidden }));
|
|
67
|
-
ok('B1 the rail names
|
|
67
|
+
ok('B1 the rail names five places, Board is current, the board is named and has no switcher for one board', rail.names.join() === 'Briefing,My work,Chat,Board,Insights' && rail.cur === 'Board' && rail.pi === '3' && rail.name === 'pmos' && rail.sw, JSON.stringify(rail));
|
|
68
68
|
{ await p.click('#moreBtn'); const tc = await p.evaluate(() => { const a = document.querySelector('#toConsole'); if (!a) return null; const r = a.getBoundingClientRect(); return { href: a.getAttribute('href'), label: a.getAttribute('aria-label'), w: Math.round(r.width), h: Math.round(r.height), tab: a.tabIndex }; }); ok('B1 the ⋯ menu links to the console (premium-console-link, premium-topbar)', tc && tc.href === '/console.html' && tc.label === 'Open the console' && tc.w >= 44 && tc.h >= 44 && tc.tab === 0, JSON.stringify(tc)); await p.keyboard.press('Escape'); }
|
|
69
69
|
ok('B1 the page is served at /premium-board and /premium-board.html', (await fetch(BASE + '/premium-board')).status === 200 && (await fetch(BASE + '/premium-board.html')).status === 200);
|
|
70
70
|
for (const [go, re] of [['brief', /\/premium\.html$/], ['work', /\/premium-work\.html$/]]) {
|
|
@@ -115,7 +115,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
115
115
|
|
|
116
116
|
/* B9 B8 */
|
|
117
117
|
ok('B9 with no Jira read the sprint card says so and draws nothing', await p.evaluate(() => /No sprint is on record/.test(document.querySelector('#sprBody').textContent) && document.querySelector('#sprCap').textContent === 'none' && !document.querySelector('#sprBody .spr')));
|
|
118
|
-
ok('B8 with no release the card says none is
|
|
118
|
+
ok('B8 with no release the card says none is on record', await p.evaluate(() => /No release is on record/.test(document.querySelector('#relBody').textContent)));
|
|
119
119
|
{
|
|
120
120
|
const R = await open({ model: mk({ sprints: { source: 'jira', readAt: '2026-10-16', sprints: [{ name: 'Sprint 42', state: 'active', start: '2026-10-12', end: '2026-10-23', counts: { todo: 11, doing: 9, done: 14 }, goal: 'Self-serve onboarding reaches beta' }] }, nextRelease: { id: 'r1', type: 'minor', at: '2026-10-23T00:00:00Z' } }) });
|
|
121
121
|
const d = await R.page.evaluate(() => ({ sp: document.querySelector('#sprBody').textContent.replace(/\s+/g, ' '), cnt: [...document.querySelectorAll('#sprBody .cnt b')].map((b) => b.textContent).join(), rel: document.querySelector('#relBody').textContent.replace(/\s+/g, ' '), cap: document.querySelector('#relCap').textContent }));
|
|
@@ -174,8 +174,8 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
174
174
|
const D = await open({ model: BP.build(Object.assign({}, base, { docs: docs3 })) });
|
|
175
175
|
const q = D.page;
|
|
176
176
|
ok('B15 the third card is "Next release", as the mockup names it', await q.evaluate(() => document.querySelector('#hRel').textContent === 'Next release'));
|
|
177
|
-
ok('B15 the header is the crumb: the board\'s name, no switcher for one board, and the
|
|
178
|
-
await q.click('
|
|
177
|
+
ok('B15 the header is the crumb: the board\'s name, no switcher for one board, and no chat button (Chat is in the rail)', await q.evaluate(() => document.querySelector('#crBoard').disabled && document.querySelector('#crBoard').textContent === 'pmos' && document.querySelector('#crSw').hidden && !document.querySelector('#crAsk') && !document.querySelector('#bsw')));
|
|
178
|
+
await q.click('.rail [data-go="chat"]'); await until(() => q.evaluate(() => document.querySelector('#dlg').classList.contains('on'))); await sleep(500);
|
|
179
179
|
const bd = await q.evaluate(() => ({ title: document.querySelector('#dTitle').textContent, grid: [...document.querySelectorAll('#oMain .kv2 span')].map((x) => x.textContent).join('|'), ask: document.querySelector('#askF').hidden }));
|
|
180
180
|
ok('B15 the sparkle opens the board in the dialog, its counts as a grid and the read-only agent beside it', bd.title === 'pmos' && /Open initiatives\|9\|On track\|5\|At risk\|3\|Late\|1/.test(bd.grid) && bd.ask === false, JSON.stringify(bd));
|
|
181
181
|
D.setThread({ ok: true, working: false, turns: [] }); await q.fill('#askIn', 'What is late?'); const nq = D.posts.length; await q.press('#askIn', 'Enter');
|
|
@@ -109,8 +109,8 @@ const SUGGEST = { ok: true, suggested: [{ kind: 'pmos-doc', ref: 'planning/prd/p
|
|
|
109
109
|
await until(() => page.evaluate(() => document.querySelectorAll('#wkStrip [data-day]').length === 5)); // the card's day strip: today is picked, so the row is a Today row
|
|
110
110
|
await page.evaluate(() => { const r = [...document.querySelectorAll('#tl .ev')].find((e) => e.querySelector('b').textContent === 'Sprint planning'); r.id = 'rowSprint'; r.click(); });
|
|
111
111
|
S.dlg = await until(() => page.evaluate(() => document.querySelector('#dlg').classList.contains('on') && !!document.querySelector('#mmAdd') && /Roadmap|No material/.test(document.querySelector('#oMain').textContent)));
|
|
112
|
-
// the detail
|
|
113
|
-
if (S.dlg && stage) { await page.
|
|
112
|
+
// the detail shows Notes first and open when the meeting has notes: material is in Prep and material, Make task in Notes and next steps
|
|
113
|
+
if (S.dlg && stage) { await page.evaluate((k) => { const d = document.querySelector(`#oMain .vm-body[data-part="${k}"]`); if (d && !d.open) d.querySelector('summary').click(); }, stage); S.dlg = await until(() => page.evaluate((k) => document.querySelector(`#oMain .vm-body[data-part="${k}"]`).open, stage)); }
|
|
114
114
|
return Object.assign(S, { ctx, page });
|
|
115
115
|
};
|
|
116
116
|
const text = (p) => p.evaluate(() => document.querySelector('#oMain').textContent);
|
|
@@ -212,7 +212,7 @@ const SUGGEST = { ok: true, suggested: [{ kind: 'pmos-doc', ref: 'planning/prd/p
|
|
|
212
212
|
/* M7 floors and fidelity */
|
|
213
213
|
for (const th of ['light', 'dark']) {
|
|
214
214
|
const P = await open({ w: 390, h: 844, theme: th });
|
|
215
|
-
const f1 = await P.page.evaluate(() => ({ scroll: document.documentElement.scrollWidth <= innerWidth + 1, btn: [...document.querySelectorAll('#mmAdd,.mtg-rm,.mtg-task,#oMain .vm-
|
|
215
|
+
const f1 = await P.page.evaluate(() => ({ scroll: document.documentElement.scrollWidth <= innerWidth + 1, btn: [...document.querySelectorAll('#mmAdd,.mtg-rm,.mtg-task,#oMain .vm-sh')].filter((b) => b.getClientRects().length).map((b) => Math.min(b.getBoundingClientRect().width, b.getBoundingClientRect().height)) }));
|
|
216
216
|
await P.page.click('#mmAdd'); await until(() => P.page.evaluate(() => /Premium UX PRD/.test(document.querySelector('#mmSug').textContent)));
|
|
217
217
|
await P.page.click('#mmSug [data-pick]');
|
|
218
218
|
const f2 = await P.page.evaluate(() => ({ scroll: document.documentElement.scrollWidth <= innerWidth + 1 && document.querySelector('#oMain').scrollWidth <= document.querySelector('#oMain').clientWidth + 1, btn: [...document.querySelectorAll('#mmBack,#mmDo,#mmCancel,[data-scope],[data-pick],.mtg-in')].map((b) => Math.min(b.getBoundingClientRect().width, b.getBoundingClientRect().height)) }));
|
|
@@ -148,9 +148,9 @@ const RECORDER = () => {
|
|
|
148
148
|
};
|
|
149
149
|
const text = (p) => p.evaluate(() => document.querySelector('#oMain').textContent);
|
|
150
150
|
const rec = (p) => p.evaluate(() => document.querySelector('#m3Rec') ? document.querySelector('#m3Rec').textContent : '');
|
|
151
|
-
/* A control
|
|
152
|
-
* when the meeting's answers land and the
|
|
153
|
-
const reveal = async (p, sel) => { await until(() => p.evaluate(() => document.querySelector('#oMain').dataset.ready === 'meeting')); await p.evaluate((q) => { const b = document.querySelector(q), part = b && b.closest('.vm-
|
|
151
|
+
/* A control in a folded part of the detail is reached by opening that part first, and one in the More menu by opening the menu; an opened part stays
|
|
152
|
+
* open when the meeting's answers land and the detail is drawn again. */
|
|
153
|
+
const reveal = async (p, sel) => { await until(() => p.evaluate(() => document.querySelector('#oMain').dataset.ready === 'meeting')); await p.evaluate((q) => { const b = document.querySelector(q), part = b && b.closest('details.vm-part'), mn = b && b.closest('details.vm-menu'); if (part && !part.open) part.querySelector('summary').click(); if (mn) mn.open = true; }, sel); };
|
|
154
154
|
const press = async (p, act) => { const sel = `#oMain [data-m3="${act}"]`; await reveal(p, sel); await p.click(sel); };
|
|
155
155
|
const chip = (p) => p.evaluate(() => { const c = document.querySelector('#recChip'); return c && !c.hidden ? c.textContent : null; });
|
|
156
156
|
|
|
@@ -161,7 +161,8 @@ const RECORDER = () => {
|
|
|
161
161
|
|
|
162
162
|
/* R1 R2 record */
|
|
163
163
|
const t0 = await text(p);
|
|
164
|
-
|
|
164
|
+
const why = () => p.evaluate(() => (document.querySelector('#oMain .acts2 > .why') || {}).textContent || '');
|
|
165
|
+
ok('R1 a meeting under way has Record, and More says what the press does', /Record/.test(await rec(p)) && /microphone/.test(await why()) && /this machine/.test(await why()));
|
|
165
166
|
ok('R5 the Detail view says what Focus reads before any read, and none was made', /every 3 seconds/.test(t0) && /sends nothing/.test(t0) && A.focusGets === 0);
|
|
166
167
|
ok('R5 the dialog read the meeting prep once, apart from Focus', !!(await until(() => A.briefGets === 1)) && A.focusGets === 0, 'brief ' + A.briefGets + ' focus ' + A.focusGets);
|
|
167
168
|
ok('R1 nothing was sent to the notes routes before a press', !A.reqs.some((r) => /^POST \/api\/notes/.test(r)), A.reqs.join());
|
|
@@ -185,7 +186,7 @@ const RECORDER = () => {
|
|
|
185
186
|
await press(p, 'stopno');
|
|
186
187
|
ok('R1 Cancel on the ask stops nothing', A.stopPosts.length === 0 && /Recording/.test(await rec(p)));
|
|
187
188
|
await press(p, 'stop'); await press(p, 'stopgo');
|
|
188
|
-
ok('R1 Stop for good ends the meeting through the route, and the row says it ended', await until(() => A.stopPosts.length === 1) && await until(() => p.evaluate(() => /
|
|
189
|
+
ok('R1 Stop for good ends the meeting through the route, and the row says it ended', await until(() => A.stopPosts.length === 1) && await until(() => p.evaluate(() => /Stopped for good/.test(document.querySelector('#m3Rec').textContent) && !document.querySelector('#m3Rec [data-m3="rec"]'))), await rec(p));
|
|
189
190
|
ok('R3 the chip is gone once no note records', await until(async () => (await chip(p)) === null));
|
|
190
191
|
ok('R10 the notes writes sent were new, record, pause, record, stop and nothing else', A.reqs.filter((r) => /^POST \/api\/notes/.test(r)).join() === 'POST /api/notes/new,POST /api/notes/record,POST /api/notes/pause,POST /api/notes/record,POST /api/notes/stop', A.reqs.filter((r) => /^POST/.test(r)).join());
|
|
191
192
|
await A.ctx.close();
|
|
@@ -152,7 +152,7 @@ const MOCKUP = fs.readFileSync(path.join(__dirname, '..', 'prototype', 'premium-
|
|
|
152
152
|
/* C5 link it */
|
|
153
153
|
await p.click('#rowSprint');
|
|
154
154
|
await until(() => p.evaluate(() => !!document.querySelector('#mtgSel') && /Capacity sheet/.test(document.querySelector('#oMain').textContent)));
|
|
155
|
-
await p.click('#oMain [data-vm="about"]'); // the
|
|
155
|
+
await p.click('#oMain .vm-menu > summary'); await p.click('#oMain [data-vm="about"]'); // Change what it is about, in the More menu, opens the choice
|
|
156
156
|
const dis = await p.evaluate(() => document.querySelector('#mtgLink').disabled);
|
|
157
157
|
ok('C5 Link it is off until a choice is made', dis === true);
|
|
158
158
|
const optsText = await p.evaluate(() => [...document.querySelectorAll('#mtgSel option')].map((o) => o.textContent));
|
|
@@ -181,7 +181,8 @@ const MOCKUP = fs.readFileSync(path.join(__dirname, '..', 'prototype', 'premium-
|
|
|
181
181
|
const owner = await R.page.evaluate(() => { const c = document.querySelector('#oMain [data-vm-t="actions"] tbody tr'); return c ? [...c.children].slice(1, 3).map((x) => x.textContent).join(' · ') : ''; });
|
|
182
182
|
ok('C6 the note\'s decisions, next steps and questions are listed as the note holds them', rd && /Plan the sprint with eight people/.test(rd) && /Sam confirms the data fix owner/.test(rd) && /^Sam · Tue/.test(owner) && /Does a release eat the capacity\?/.test(rd) && /Sprint planning notes/.test(rd), String(rd).slice(0, 300));
|
|
183
183
|
ok('C8 a kept recording is summarised, and Replay opens in the dialog', rd && /A recording is kept: 25 min, 3 key points/.test(rd) && /Replay/.test(rd) && !/Replay opens in the console/.test(rd));
|
|
184
|
-
|
|
184
|
+
const ppl = await R.page.evaluate(() => [...document.querySelectorAll('#oMain .vm-ppl .pp')].map((x) => x.lastChild.textContent).join(', '));
|
|
185
|
+
ok('C6 the replay answer\'s people are used only when the calendar lists none', rd && ppl === 'Dara, Priya, Sam', ppl);
|
|
185
186
|
|
|
186
187
|
/* C4 a Today row opens the same dialog when the calendar answer knows the meeting */
|
|
187
188
|
const Tt = await open({ replay: REPLAY });
|
|
@@ -74,9 +74,9 @@ const HEALTH = { ok: true, path: 'planning/prd/self-serve-v2-prd.md', health: {
|
|
|
74
74
|
|
|
75
75
|
/* I1 place */
|
|
76
76
|
const rail = await p.evaluate(() => ({ names: [...document.querySelectorAll('.rail .pl')].map((b) => b.textContent.trim()), cur: document.querySelector('.rail [aria-current="page"]').textContent.trim() }));
|
|
77
|
-
ok('I1 the rail names the
|
|
77
|
+
ok('I1 the rail names the five places and marks Board', rail.names.join() === 'Briefing,My work,Chat,Board,Insights' && rail.cur === 'Board');
|
|
78
78
|
{ await p.click('#moreBtn'); const tc = await p.evaluate(() => { const a = document.querySelector('#toConsole'); if (!a) return null; const r = a.getBoundingClientRect(); return { href: a.getAttribute('href'), label: a.getAttribute('aria-label'), w: Math.round(r.width), h: Math.round(r.height), tab: a.tabIndex }; }); ok('I1 the ⋯ menu links to the console (premium-console-link, premium-topbar)', tc && tc.href === '/console.html' && tc.label === 'Open the console' && tc.w >= 44 && tc.h >= 44 && tc.tab === 0, JSON.stringify(tc)); await p.keyboard.press('Escape'); }
|
|
79
|
-
ok('I1 the bar has a back button to the board, the initiative with its switcher, and Chat
|
|
79
|
+
ok('I1 the bar has a back button to the board, the initiative with its switcher, and no chat button (Chat is in the rail)', await p.evaluate(() => document.querySelector('#crBoard').getAttribute('aria-label') === 'Back to Onboarding' && document.querySelector('#crIni').textContent === 'Self-serve onboarding v2' && !document.querySelector('#crSw') && !!document.querySelector('#crSw2') && !document.querySelector('#crAsk')));
|
|
80
80
|
await p.route('**/premium-board.html*', (r) => r.fulfill({ contentType: 'text/html', body: '<title>b</title>' }));
|
|
81
81
|
await p.route('**/premium-initiative.html?id=partner*', (r) => r.fulfill({ contentType: 'text/html', body: '<title>i</title>' }));
|
|
82
82
|
await p.click('#crSw2'); const im = await p.evaluate(() => [...document.querySelectorAll('#crMenu button')].map((b) => b.textContent + (b.hasAttribute('aria-current') ? '*' : '')).join('|'));
|
|
@@ -85,7 +85,7 @@ const HEALTH = { ok: true, path: 'planning/prd/self-serve-v2-prd.md', health: {
|
|
|
85
85
|
{ const u = new URL(p.url()); ok('I1 choosing an initiative opens its page on the same board', u.pathname === '/premium-initiative.html' && u.searchParams.get('id') === 'partner-rate-limits' && u.searchParams.get('board') === 'w1', p.url()); await p.goBack(); await until(() => p.evaluate(() => !!document.querySelector('#cIniTk'))); }
|
|
86
86
|
await p.click('#crBoard'); await sleep(500);
|
|
87
87
|
{ const u = new URL(p.url()); ok('I1 the back button leads back to the Board', u.pathname === '/premium-board.html' && u.searchParams.get('board') === 'w1', p.url()); await p.goBack(); await until(() => p.evaluate(() => !!document.querySelector('#cIniTk'))); }
|
|
88
|
-
await p.click('
|
|
88
|
+
await p.click('.rail [data-go="chat"]'); await until(() => p.evaluate(() => document.querySelector('#dlg').classList.contains('on'))); await sleep(500);
|
|
89
89
|
ok('I1 Chat opens the initiative in the dialog with the read-only agent beside it', await p.evaluate(() => document.querySelector('#dTitle').textContent === 'Self-serve onboarding v2' && /Lane\|feature/.test([...document.querySelectorAll('#oMain .kv2 span')].map((x) => x.textContent).join('|')) && !document.querySelector('#askF').hidden));
|
|
90
90
|
await p.keyboard.press('Escape'); await until(() => p.evaluate(() => !document.querySelector('#dlg').classList.contains('on')));
|
|
91
91
|
|
|
@@ -64,7 +64,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
64
64
|
|
|
65
65
|
/* I1 */
|
|
66
66
|
const rail = await p.evaluate(() => ({ names: [...document.querySelectorAll('.rail .pl')].map((b) => b.textContent.trim()), cur: document.querySelector('.rail [aria-current="page"]').textContent.trim(), pi: getComputedStyle(document.querySelector('.rail')).getPropertyValue('--pi').trim(), title: document.title, name: document.querySelector('#crBoard').textContent, sw: document.querySelector('#crSw').hidden }));
|
|
67
|
-
ok('I1 the rail names
|
|
67
|
+
ok('I1 the rail names five places, Insights is current, the board is named and has no switcher for one board', rail.names.join() === 'Briefing,My work,Chat,Board,Insights' && rail.cur === 'Insights' && rail.pi === '4' && rail.name === 'pmos' && rail.sw, JSON.stringify(rail));
|
|
68
68
|
{ await p.click('#moreBtn'); const tc = await p.evaluate(() => { const a = document.querySelector('#toConsole'); if (!a) return null; const r = a.getBoundingClientRect(); return { href: a.getAttribute('href'), label: a.getAttribute('aria-label'), w: Math.round(r.width), h: Math.round(r.height), tab: a.tabIndex }; }); ok('I1 the ⋯ menu links to the console (premium-console-link, premium-topbar)', tc && tc.href === '/console.html' && tc.label === 'Open the console' && tc.w >= 44 && tc.h >= 44 && tc.tab === 0, JSON.stringify(tc)); await p.keyboard.press('Escape'); }
|
|
69
69
|
ok('I1 the page is served at /premium-insights and /premium-insights.html', (await fetch(BASE + '/premium-insights')).status === 200 && (await fetch(BASE + '/premium-insights.html')).status === 200);
|
|
70
70
|
for (const [go, re] of [['brief', /\/premium\.html$/], ['work', /\/premium-work\.html$/], ['init', /\/premium-board\.html$/]]) {
|
|
@@ -50,7 +50,10 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
50
50
|
if (!exe) { console.log('✗ no Chrome/Chromium on this machine — the briefing-premium suite cannot run'); return finish(1); }
|
|
51
51
|
let chromium;
|
|
52
52
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed — the briefing-premium suite cannot run'); return finish(1); }
|
|
53
|
-
|
|
53
|
+
// the Claude config the server reads the session's connectors from (premium-settings S5): two that back a source, BigQuery that backs none
|
|
54
|
+
const CFG = path.join(T.STATE_DIR, 'claude-config'); fs.mkdirSync(CFG, { recursive: true });
|
|
55
|
+
fs.writeFileSync(path.join(CFG, '.claude.json'), JSON.stringify({ claudeAiMcpEverConnected: ['claude.ai Google Calendar', 'claude.ai Slack', 'claude.ai Google Cloud BigQuery'] }));
|
|
56
|
+
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT), CLAUDE_CONFIG_DIR: CFG }) });
|
|
54
57
|
await T.waitForServer(BASE);
|
|
55
58
|
browser = await chromium.launch({ executablePath: exe });
|
|
56
59
|
{ /* every context starts with the console's Needs you read off (see open below); a page route set by `console` wins over it */
|
|
@@ -89,8 +92,9 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
89
92
|
|
|
90
93
|
/* R1 */
|
|
91
94
|
const rail = await p.evaluate(() => ({ names: [...document.querySelectorAll('.rail .pl')].map((b) => b.textContent.trim()), cur: document.querySelector('.rail [aria-current="page"]').textContent.trim(), go: [...document.querySelectorAll('.rail [data-go]')].map((b) => b.dataset.go) }));
|
|
92
|
-
ok('R1 the rail names
|
|
93
|
-
ok('
|
|
95
|
+
ok('R1 the rail names five places, Chat in the middle, and Briefing is current (premium-chat-rail)', rail.names.join() === 'Briefing,My work,Chat,Board,Insights' && rail.cur === 'Briefing' && rail.go.join() === 'brief,work,chat,init,rep', JSON.stringify(rail));
|
|
96
|
+
ok('R1b no round chat button beside the page name, and no Sessions in the ⋯ menu (premium-chat-rail C4)', await p.evaluate(() => !document.querySelector('#pgChat,#crAsk,#sessBtn')));
|
|
97
|
+
ok('R1 each place has a target: the four pages and Chat', rail.go.join() === 'brief,work,chat,init,rep');
|
|
94
98
|
const def = await fetch(BASE + '/').then((r) => r.text());
|
|
95
99
|
ok('R1 the premium Briefing is the default page', /class="rail/.test(def) && !/id="c3-root"/.test(def));
|
|
96
100
|
{ const con = await fetch(BASE + '/console.html').then((r) => r.text()); ok('R1 the console is served at /console.html', /id="c3-root"/.test(con)); const old = await fetch(BASE + '/c3.html', { redirect: 'manual' }); const oldQ = await fetch(BASE + '/c3.html?tab=rep', { redirect: 'manual' }); ok('R1 /c3.html goes to the premium Briefing, and with a query to the console with the same query', old.status === 302 && old.headers.get('location') === '/premium.html' && oldQ.status === 302 && oldQ.headers.get('location') === '/console.html?tab=rep', old.headers.get('location') + ' | ' + oldQ.headers.get('location')); }
|
|
@@ -137,12 +141,20 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
137
141
|
const flipped = await until(() => p.evaluate((v) => document.querySelector('#oMain [data-src="mail"]').getAttribute('aria-checked') !== v, sw), 6000);
|
|
138
142
|
ok('S3 a source switch saves through /api/proactive/settings and flips', flipped && A.reqs.includes('POST /api/proactive/settings'));
|
|
139
143
|
await p.click('#oMain [data-src="mail"]'); await until(() => p.evaluate((v) => document.querySelector('#oMain [data-src="mail"]').getAttribute('aria-checked') === v, sw), 6000);
|
|
144
|
+
const bq = await p.evaluate(() => { const b = document.querySelector('#oMain [data-conn="claude.ai Google Cloud BigQuery"]'); const r = b && b.closest('.sr');
|
|
145
|
+
return { row: r ? r.textContent : null, on: b ? b.getAttribute('aria-checked') : null, dup: document.querySelectorAll('#oMain [data-conn]').length }; });
|
|
146
|
+
ok('S5 every connector of the session is listed: BigQuery has its own row, Off, and says nothing in PMOS reads it on its own yet; Calendar and Slack stay under their source', bq.on === 'false' && /Google Cloud BigQuery/.test(bq.row) && !/claude\.ai/.test(bq.row) && /Nothing in PMOS reads it on its own yet/.test(bq.row) && bq.dup === 1, JSON.stringify(bq));
|
|
147
|
+
await p.click('#oMain [data-conn="claude.ai Google Cloud BigQuery"]');
|
|
148
|
+
const bqOn = await until(() => p.evaluate(() => document.querySelector('#oMain [data-conn="claude.ai Google Cloud BigQuery"]').getAttribute('aria-checked') === 'true'), 6000);
|
|
149
|
+
const saved = await (await fetch(BASE + '/api/proactive/settings')).json();
|
|
150
|
+
ok('S6 its switch saves the choice through /api/proactive/settings', bqOn && saved.settings.connectors['claude.ai Google Cloud BigQuery'] === true, JSON.stringify(saved.settings.connectors));
|
|
151
|
+
await p.click('#oMain [data-conn="claude.ai Google Cloud BigQuery"]'); await until(() => p.evaluate(() => document.querySelector('#oMain [data-conn="claude.ai Google Cloud BigQuery"]').getAttribute('aria-checked') === 'false'), 6000);
|
|
140
152
|
const bare = await fetch(BASE + '/api/workspaces/forget', { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ id: 'no-such' }) });
|
|
141
153
|
ok('S4 Remove is a page press: no nonce, no removal (403)', bare.status === 403, String(bare.status));
|
|
142
154
|
for (let i = A.reqs.length - 1; i >= 0; i--) if (/^POST \/api\/proactive\/settings$/.test(A.reqs[i])) A.reqs.splice(i, 1); // R10 below counts presses on a page where nothing was pressed
|
|
143
155
|
await p.keyboard.press('Escape'); }
|
|
144
156
|
|
|
145
|
-
/* premium-session-list
|
|
157
|
+
/* premium-session-list, reached from the rail's Chat (premium-chat-rail): Chat opens the page's conversation full screen with the list beside it.
|
|
146
158
|
* The list reads /api/sessions; PMOS sessions that need nothing fold into one line; the viewer holds the session's facts, its question and Stop. */
|
|
147
159
|
{ const now = Date.now();
|
|
148
160
|
const fake = [
|
|
@@ -156,17 +168,20 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
156
168
|
await p.route('**/api/sessions/conversation**', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, state: 'conv', turn: 'user', messages: [{ role: 'user', text: 'Draft the brief' }, { role: 'assistant', text: 'The brief is drafted in planning/briefs.' }] }) }));
|
|
157
169
|
await p.route('**/api/session/say', (r) => { said.push({ ...JSON.parse(r.request().postData()), hasNonce: !!r.request().headers()['x-pmos-nonce'] }); r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true }) }); });
|
|
158
170
|
await p.route('**/api/session/remove', (r) => { removes++; const id = JSON.parse(r.request().postData()).id; if (id === 'sess-4' && slowOnce) { slowOnce = false; return r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, removed: false, note: 'asked it to end' }) }); } const i = fake.findIndex((x) => x.id === id); if (i >= 0) fake.splice(i, 1); return r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, removed: true }) }); });
|
|
159
|
-
|
|
160
|
-
ok('X1 the
|
|
161
|
-
await p.click('#
|
|
171
|
+
const bt = await p.evaluate(() => { const b = document.querySelector('.rail [data-go="chat"] .orb'); if (!b) return null; const r = b.getBoundingClientRect(); return { w: Math.round(r.width), h: Math.round(r.height) }; });
|
|
172
|
+
ok('X1 the rail\'s Chat is a round button of at least 44 px', bt && bt.w >= 44 && bt.h >= 44, JSON.stringify(bt));
|
|
173
|
+
await p.click('.rail [data-go="chat"]'); await until(() => p.evaluate(() => document.querySelector('#dlg').classList.contains('on')));
|
|
174
|
+
await p.click('#dExpand');
|
|
162
175
|
const lay = await until(() => p.evaluate(() => { const d = document.querySelector('#dlg'), r = document.querySelector('#sRail'); if (!d.classList.contains('full') || !r || !r.offsetWidth || !document.querySelector('#srlList .srl-r')) return null; const o = { rail: Math.round(r.getBoundingClientRect().width), work: Math.round(document.querySelector('#dBody').getBoundingClientRect().width), out: Math.round(document.querySelector('#dOut').getBoundingClientRect().width) }; return o.out > 300 ? o : null; }), 8000) || (await p.evaluate(() => ({ rail: document.querySelector('#sRail').getBoundingClientRect().width, work: document.querySelector('#dBody').getBoundingClientRect().width, out: document.querySelector('#dOut').getBoundingClientRect().width, cls: document.querySelector('#dlg').className, mode: document.querySelector('#dlg').dataset.mode, w: document.querySelector('#dlg').getBoundingClientRect().width })));
|
|
163
|
-
ok('X2
|
|
176
|
+
ok('X2 Chat opens the Briefing\'s conversation; full screen gives three panels: list, conversation, viewer', /Ask about the Briefing/.test(await p.evaluate(() => document.querySelector('#dTitle').textContent)) && lay && lay.out > 300 && lay.rail > 150 && lay.work > 300 && lay.out > 300, JSON.stringify(lay));
|
|
164
177
|
const grpOf = () => p.evaluate(() => [...document.querySelectorAll('#srlList .srl-g')].map((g) => g.querySelector('.srl-gh span').textContent + ':' + g.querySelectorAll('.srl-r').length + (g.querySelector('.srl-more') ? '+' + g.querySelector('.srl-more').textContent : '')));
|
|
165
178
|
const grp = (await until(async () => { const v = await grpOf(); return v.join('|') === 'Yours:1|Started by PMOS:1+1 more working on their own · Show' ? v : null; }, 8000)) || (await grpOf());
|
|
166
179
|
ok('X3 the list groups by who started each session, exited ones are gone, and PMOS runs that need nothing fold into one line', grp.join('|') === 'Yours:1|Started by PMOS:1+1 more working on their own · Show', grp.join('|'));
|
|
167
|
-
|
|
180
|
+
const chatName = () => p.evaluate(() => { const a = document.querySelector('.rail [data-go="chat"]'); return a.getAttribute('aria-label') + (a.querySelector('.cdot').hidden ? '' : ' +dot'); });
|
|
181
|
+
ok('X4 the Chat dot counts the sessions that need you (Ready or Maybe blocked), not every running one', !!(await until(async () => (await chatName()) === 'Chat, 2 sessions need you +dot', 6000)), await chatName());
|
|
182
|
+
await p.click('#srlList [data-sid="sess-1"]');
|
|
168
183
|
const first = await until(() => p.evaluate(() => { const on = document.querySelector('#srlList .srl-r.on'); return on && /Draft the brief/.test(document.querySelector('#dTitle').textContent) && /brief is drafted/.test(document.querySelector('#dBody').textContent) ? on.dataset.sid : null; }), 8000);
|
|
169
|
-
ok('X5
|
|
184
|
+
ok('X5 a press on the Ready session opens its conversation from the transcript', first === 'sess-1', String(first));
|
|
170
185
|
await p.fill('#askIn', 'Put it in planning/research instead'); await p.click('#askGo');
|
|
171
186
|
await until(() => said.length, 6000);
|
|
172
187
|
ok('X6 a message to a session with no chat row goes to that session, as a page press', said.length === 1 && said[0].id === 'sess-1' && /planning\/research/.test(said[0].text) && said[0].hasNonce, JSON.stringify(said));
|
|
@@ -630,7 +645,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
630
645
|
{
|
|
631
646
|
const t = await p.evaluate(() => {
|
|
632
647
|
const small = [];
|
|
633
|
-
for (const s of ['.rr .rhd', '.rr .rpin', '#tl .ev', '#srcChips .fchip', '.fbtn', '.rail .pl', '#srcChip', '#moreBtn', '
|
|
648
|
+
for (const s of ['.rr .rhd', '.rr .rpin', '#tl .ev', '#srcChips .fchip', '.fbtn', '.rail .pl', '#srcChip', '#moreBtn', '.rail .pchat .orb', '#theme2']) document.querySelectorAll(s).forEach((e) => { const r = e.getBoundingClientRect(); if (r.width && (r.height < 44 || r.width < 44)) small.push(s + ' ' + Math.round(r.width) + 'x' + Math.round(r.height)); });
|
|
634
649
|
return small;
|
|
635
650
|
});
|
|
636
651
|
ok('R11 every control is at least 44 px', t.length === 0, t.join(' | '));
|
|
@@ -71,7 +71,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
71
71
|
|
|
72
72
|
/* M1 */
|
|
73
73
|
const rail = await p.evaluate(() => ({ names: [...document.querySelectorAll('.rail .pl')].map((b) => b.textContent.trim()), cur: document.querySelector('.rail [aria-current="page"]').textContent.trim(), go: [...document.querySelectorAll('.rail [data-go]')].map((b) => b.dataset.go), pi: getComputedStyle(document.querySelector('.rail')).getPropertyValue('--pi').trim(), title: document.title }));
|
|
74
|
-
ok('M1 the rail names
|
|
74
|
+
ok('M1 the rail names five places, My work is current and the indicator sits on it', rail.names.join() === 'Briefing,My work,Chat,Board,Insights' && rail.cur === 'My work' && rail.go.join() === 'brief,work,chat,init,rep' && rail.pi === '1', JSON.stringify(rail));
|
|
75
75
|
{ await p.click('#moreBtn'); const tc = await p.evaluate(() => { const a = document.querySelector('#toConsole'); if (!a) return null; const r = a.getBoundingClientRect(); return { href: a.getAttribute('href'), label: a.getAttribute('aria-label'), w: Math.round(r.width), h: Math.round(r.height), tab: a.tabIndex }; }); ok('M1 the ⋯ menu links to the console (premium-console-link, premium-topbar)', tc && tc.href === '/console.html' && tc.label === 'Open the console' && tc.w >= 44 && tc.h >= 44 && tc.tab === 0, JSON.stringify(tc)); await p.keyboard.press('Escape'); }
|
|
76
76
|
const res = await fetch(BASE + '/premium-work').then((r) => r.status);
|
|
77
77
|
ok('M13 My work has no Calendar card: the Briefing holds the calendar (premium-calendar-card A1)', await p.evaluate(() => !document.querySelector('#weekCard') && ![...document.querySelectorAll('h2')].some((h) => /Calendar|This week/.test(h.textContent))));
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,43 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.363.0",
|
|
4
|
+
"at": "2026-10-21T00:46:24.704Z",
|
|
5
|
+
"f": 2,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 965,
|
|
9
|
+
"t": "Chat is the big middle place in the premium rail",
|
|
10
|
+
"s": "Chat is the big middle place in the premium rail"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"n": 966,
|
|
14
|
+
"t": "The meeting detail is one scroll with a short head on a phone",
|
|
15
|
+
"s": "The meeting detail is one scroll with a short head on a phone"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"v": "0.362.0",
|
|
21
|
+
"at": "2026-10-21T00:23:03.151Z",
|
|
22
|
+
"f": 2,
|
|
23
|
+
"prs": [
|
|
24
|
+
{
|
|
25
|
+
"n": 961,
|
|
26
|
+
"t": "Settings lists every connector of your Claude session",
|
|
27
|
+
"s": "Settings › Connectors lists every connector your Claude session has, and says that your sessions can use all of them while a switch only chooses what PMOS reads on its own."
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"n": 963,
|
|
31
|
+
"t": "The premium Board release card lists the board's past releases",
|
|
32
|
+
"s": "The premium Board release card lists the board's past releases"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"n": 964,
|
|
36
|
+
"t": "Premium Sprint tab folds past sprints, shows the goal from the tickets, opens every ticket",
|
|
37
|
+
"s": "Premium Sprint tab folds past sprints, shows the goal from the tickets, opens every ticket"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
2
41
|
{
|
|
3
42
|
"v": "0.361.0",
|
|
4
43
|
"at": "2026-10-21T00:14:19.012Z",
|