create-pmos 0.423.0 → 0.425.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 +25 -25
- package/payload/KIT-VERSION +2 -2
- 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/payload/state/log.md +1 -1
- package/workspace/board-programs-test.js +41 -26
- package/workspace/briefing-premium-board-test.js +7 -4
- package/workspace/briefing-premium-insights-test.js +31 -15
- package/workspace/briefing-premium-products-test.js +62 -46
- package/workspace/changelog.json +24 -0
- package/workspace/guide/briefing-premium.md +3 -2
- package/workspace/guide/claude-proposes.md +37 -0
- package/workspace/guide/home.md +2 -2
- package/workspace/guide/index.md +2 -0
- package/workspace/guide/notes.md +39 -1
- package/workspace/guide/present-in-a-meeting.md +57 -0
- package/workspace/guide/programs.md +2 -2
- package/workspace/home-pill-test.js +138 -0
- package/workspace/lib/briefing-premium-products.js +18 -4
- package/workspace/lib/headless.js +14 -1
- package/workspace/lib/meeting-focus.js +64 -14
- package/workspace/lib/pmos-verbs.js +3 -0
- package/workspace/lib/proposal-runs.js +148 -0
- package/workspace/lib/proposals.js +370 -0
- package/workspace/lib/propose-cli.js +96 -0
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-board-premium.js +11 -0
- package/workspace/lib/routes-boards.js +1 -1
- package/workspace/lib/routes-briefing-premium.js +19 -0
- package/workspace/lib/routes-meeting-focus.js +28 -6
- package/workspace/lib/routes-proposals.js +325 -0
- package/workspace/lib/routes-task-links.js +35 -28
- package/workspace/lib/settings-store.js +2 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-board-actions-test.js +2 -2
- package/workspace/premium-briefing-depth-test.js +1 -1
- package/workspace/premium-rec-now-test.js +153 -0
- package/workspace/premium-rec-tab-test.js +167 -0
- package/workspace/public/pm/bd-asks.js +3 -0
- package/workspace/public/pm/cozy-aud.css +9 -0
- package/workspace/public/pm/cozy-aud.js +80 -0
- package/workspace/public/pm/cozy-live-pill.js +3 -0
- package/workspace/public/pm/cozy-pick.css +41 -0
- package/workspace/public/pm/cozy-pick.js +134 -0
- package/workspace/public/pm/cozy-rec-bridge.js +32 -0
- package/workspace/public/pm/cozy-rec-now.css +104 -0
- package/workspace/public/pm/cozy-rec-now.js +330 -0
- package/workspace/public/pm/cozy-rec-present.css +69 -0
- package/workspace/public/pm/cozy-rec-present.js +467 -0
- package/workspace/public/pm/cozy-rec-tab.css +90 -0
- package/workspace/public/pm/cozy-rec-tab.js +219 -0
- package/workspace/public/pm/cozy-settings.js +8 -2
- package/workspace/public/pm/cozy-today.css +23 -0
- package/workspace/public/pm/cozy-viewer.js +14 -3
- package/workspace/public/pm/cozy-vw-shell.css +8 -0
- package/workspace/public/pm/home-app.js +56 -27
- package/workspace/public/pm/home-list.js +17 -10
- package/workspace/public/pm/home-more.js +2 -31
- package/workspace/public/pm/home-task.js +2 -1
- package/workspace/public/pm/home-today.js +69 -19
- package/workspace/public/pm/ini-groups.js +30 -5
- package/workspace/public/pm/ini-links.js +6 -48
- package/workspace/public/pm/ini-props.js +218 -0
- package/workspace/public/pm/ini-view-model.js +6 -1
- package/workspace/public/pm/ini-view.css +47 -0
- package/workspace/public/pm/ini-view.js +23 -6
- package/workspace/public/pm/live-model.js +1 -1
- package/workspace/public/pm/premium-board.js +56 -25
- package/workspace/public/pm/premium-insights.js +42 -24
- package/workspace/public/pm/premium-meeting.js +17 -4
- package/workspace/public/pm/premium-mtg-present.js +4 -3
- package/workspace/public/pm/premium-report-read.js +2 -0
- package/workspace/public/pm/premium-vw-item.js +2 -1
- package/workspace/public/pm/premium-vw-mtg.js +15 -7
- package/workspace/public/pm/rec-state.js +13 -5
- package/workspace/public/pm/rec-tab-core.js +92 -0
- package/workspace/public/pm/task-card.css +13 -0
- package/workspace/public/pm/task-card.js +37 -2
- package/workspace/public/pm/view-notes.js +9 -0
- package/workspace/public/premium-aud.html +22 -0
- package/workspace/public/premium-board.html +1 -0
- package/workspace/public/premium-insights.html +2 -1
- package/workspace/public/premium-rec.html +30 -0
- package/workspace/public/premium.html +1 -0
- package/workspace/rec-present-test.js +229 -0
- package/workspace/server.js +46 -3
- package/workspace/skills/initiative-propose.skill +45 -0
- package/workspace/stage-card-test.js +1 -1
- package/workspace/task-links-test.js +26 -14
- package/workspace/test-lists/claude-proposes.json +5 -0
- package/workspace/test-lists/home-sessions-pill.json +6 -0
- package/workspace/test-lists/rec-now.json +6 -0
- package/workspace/test-lists/rec-present.json +13 -0
- package/workspace/test-lists/recording-tab.json +13 -0
- package/workspace/tk-tasks-test.js +13 -0
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
* DepA1Timeline, DepA2Drag, DepA3Joint, DepA4Move, DepA5List, DepA6Risk, DepA7Phone, DepA8Suggest, DepA9Adjust). Serves the real Board page
|
|
5
5
|
* from the real server; GET /api/board-premium answers fixtures/board-premium-facts.js with tasks, decorated by lib/task-links.js from a
|
|
6
6
|
* ledger of links, a quiet move and Claude's proposal. The page's clock is the fixture's (17 Oct 2026). The writes are answered here.
|
|
7
|
-
* H the Tasks header: count, the
|
|
7
|
+
* H the Tasks header: count, the grey ✦ (quiet moves), the late count, in that order; the link proposals moved under the initiative's
|
|
8
|
+
* one blue ✦ after its title (feedback batch 12 items 2 and 3, lib/proposals.js)
|
|
8
9
|
* T the Timeline: lines hidden but the orange one; dots on linked ends; the orange start edge; the small blue ✦; hover draws the links;
|
|
9
10
|
* the legend's "Waits on" and the foot text
|
|
10
11
|
* J a joint: the type segment, lag ±, unlink and the sentence; a type posts /link
|
|
11
|
-
* S the
|
|
12
|
+
* S the ✦ after the title opens "Claude proposes N" with the link proposal: ✓ posts /api/proposals/keep; the moved list says "Was", Undo all, the quiet switch, and marks them seen
|
|
12
13
|
* D drags: a dot onto another bar's start posts /link fs; a linked bar's move posts /move
|
|
13
14
|
* L List and Kanban: the link icon, the first task it waits on; a press opens Waits on / Then with a search
|
|
14
15
|
* P a phone: a tap on a linked bar opens Waits on / Then as a bottom sheet
|
|
@@ -21,6 +22,7 @@ const T = require('./test-run').configure({ name: 'task-links-ui' });
|
|
|
21
22
|
const BP = require('./lib/board-premium.js');
|
|
22
23
|
const F = require('./fixtures/board-premium-facts.js');
|
|
23
24
|
const TL = require('./lib/task-links.js');
|
|
25
|
+
const PR = require('./lib/proposals.js');
|
|
24
26
|
|
|
25
27
|
const BASE = T.BASE;
|
|
26
28
|
const SHOTS = process.env.SHOTS || '';
|
|
@@ -55,7 +57,9 @@ const LINES = [
|
|
|
55
57
|
function model() {
|
|
56
58
|
const m = BP.build(F.facts({ items: ITEMS.map((x) => ({ ...x })) }));
|
|
57
59
|
for (const r of m.rows) if (r.id === INI) { r.start = '2026-10-05'; r.end = '2026-12-15'; }
|
|
58
|
-
|
|
60
|
+
const LF = TL.fold(LINES);
|
|
61
|
+
TL.decorate(m.rows, LF, ITEMS, { today: '2026-10-17' });
|
|
62
|
+
PR.decorate(m.rows, PR.fold([]), ITEMS, { today: '2026-10-17', links: () => TL.linksOf(LF), settle: TL.settle });
|
|
59
63
|
return m;
|
|
60
64
|
}
|
|
61
65
|
|
|
@@ -84,6 +88,11 @@ function model() {
|
|
|
84
88
|
const ans = { ok: true, moved: [], cant: [], linked: [], batch: 'b-x' };
|
|
85
89
|
r.fulfill({ contentType: 'application/json', body: JSON.stringify(ans) });
|
|
86
90
|
});
|
|
91
|
+
await page.route('**/api/proposals**', (r) => {
|
|
92
|
+
const u = new URL(r.request().url()), body = r.request().method() === 'POST' ? r.request().postDataJSON() : null;
|
|
93
|
+
if (body) posts.push({ route: u.pathname, body });
|
|
94
|
+
r.fulfill({ contentType: 'application/json', body: JSON.stringify(body ? { ok: true, batch: 'pk-x', said: 'Kept 1 link.', props: null } : { ok: true, props: null, found: null }) });
|
|
95
|
+
});
|
|
87
96
|
await page.addInitScript(([s]) => { try { if (!sessionStorage.getItem('set')) { sessionStorage.setItem('set', '1'); for (const [k, v] of Object.entries(s)) localStorage.setItem(k, v); } } catch { /* none */ } },
|
|
88
97
|
[{ 'pmos.board.view': 'time', 'pmos.board.span': 'half', 'pmos.tasks.view': o.view || 'timeline', 'pmos.tasks.zoom': 'week' }]);
|
|
89
98
|
await page.goto(BASE + '/premium-board.html?ws=w1&board=w1');
|
|
@@ -101,11 +110,12 @@ function model() {
|
|
|
101
110
|
// ── H: the header
|
|
102
111
|
const H = await page.evaluate(() => {
|
|
103
112
|
const h = document.querySelector('#czViewer .iv-th');
|
|
113
|
+
const chip = document.querySelector('#czViewer .cz-vw-hd [data-cz-vw="chip"]');
|
|
104
114
|
return { order: [...h.children].map((n) => (n.classList.contains('n') ? 'count' : n.dataset.lkChip || n.className.split(' ')[0])).filter((x) => /count|prop|moved|late|vs-/.test(x)),
|
|
105
|
-
prop:
|
|
115
|
+
prop: chip ? chip.textContent : '', moved: (h.querySelector('[data-lk-chip="moved"]') || {}).textContent || '', late: (h.querySelector('[data-lk-chip="late"]') || {}).textContent || '' };
|
|
106
116
|
});
|
|
107
|
-
ok('H1 the header: count, then the
|
|
108
|
-
ok('H2 the counts:
|
|
117
|
+
ok('H1 the header: count, then the grey ✦ and the late count, in that order; no blue ✦ in Tasks', H.order.slice(0, 3).join(',') === 'count,moved,late', JSON.stringify(H));
|
|
118
|
+
ok('H2 the counts: the ✦ after the title holds 2 (the late spec\'s dates, the pilot\'s link), 1 quiet move, 2 tasks after a late one', H.prop.trim() === '2' && H.moved.trim() === '1' && H.late.trim() === '2', JSON.stringify(H));
|
|
109
119
|
|
|
110
120
|
// ── T: the Timeline
|
|
111
121
|
const T0 = await page.evaluate(() => {
|
|
@@ -139,15 +149,16 @@ function model() {
|
|
|
139
149
|
ok('J2 a type posts /link with it', pl.length === 1 && pl[0].body.type === 'ss' && pl[0].body.from === 'task-b' && pl[0].body.to === 'task-c', JSON.stringify(posts));
|
|
140
150
|
|
|
141
151
|
// ── S: the chips' lists
|
|
142
|
-
await page.locator('#czViewer [data-
|
|
143
|
-
await page.waitForSelector('.
|
|
144
|
-
const S1 = await page.evaluate(() => { const m = document.querySelector('.
|
|
145
|
-
ok('S1 the
|
|
152
|
+
await page.locator('#czViewer .cz-vw-hd [data-cz-vw="chip"]').click();
|
|
153
|
+
await page.waitForSelector('#czViewer .pp [data-pp^="lk:"]', { timeout: 4000 });
|
|
154
|
+
const S1 = await page.evaluate(() => { const m = document.querySelector('#czViewer .pp [data-pp^="lk:"]'); return { title: document.querySelector('#czVwTitle').textContent, text: m.textContent, yes: m.querySelectorAll('[data-pp-keep]').length, no: m.querySelectorAll('[data-pp-droplk]').length }; });
|
|
155
|
+
ok('S1 the ✦ opens "Claude proposes 2": the link proposal sits under Links with ✓ and ✕', /Claude proposes 2/.test(S1.title) && S1.yes === 1 && S1.no === 1 && /Pilot with 3 partners waits on Load test at 3x peak/.test(S1.text), JSON.stringify(S1));
|
|
146
156
|
await shot(page, 'DepBuild4Proposals');
|
|
147
|
-
await page.locator('.
|
|
148
|
-
await page.waitForTimeout(
|
|
149
|
-
const acc = posts.filter((p) => p.route === '/
|
|
150
|
-
ok('S2 ✓ posts /
|
|
157
|
+
await page.locator('#czViewer .pp [data-pp^="lk:"] [data-pp-keep]').click();
|
|
158
|
+
await page.waitForTimeout(400);
|
|
159
|
+
const acc = posts.filter((p) => p.route === '/api/proposals/keep');
|
|
160
|
+
ok('S2 ✓ posts /api/proposals/keep with that proposal', acc.length === 1 && acc[0].body.initiative === 'partner-rate-limits' && acc[0].body.ids.length === 1 && /^lk:/.test(acc[0].body.ids[0]), JSON.stringify(acc));
|
|
161
|
+
await page.waitForSelector('#czViewer .iv-th', { timeout: 4000 });
|
|
151
162
|
await page.locator('#czViewer [data-lk-chip="moved"]').click();
|
|
152
163
|
await page.waitForSelector('.lk-pop .lk-m', { timeout: 4000 });
|
|
153
164
|
const S3 = await page.evaluate(() => { const m = document.querySelector('.lk-pop .lk-m'); return { text: m.textContent, undo: !!m.querySelector('[data-lk-undoall]'), sw: !!m.querySelector('[data-lk-quiet][aria-checked="true"]') }; });
|
|
@@ -157,6 +168,7 @@ function model() {
|
|
|
157
168
|
await page.keyboard.press('Escape');
|
|
158
169
|
|
|
159
170
|
// ── D: drags
|
|
171
|
+
await page.locator(bar('task-f')).scrollIntoViewIfNeeded(); // ← from the ✦'s Viewer draws the initiative again from its top
|
|
160
172
|
const c = await page.locator(bar('task-c')).boundingBox(), f = await page.locator(bar('task-f')).boundingBox();
|
|
161
173
|
await page.mouse.move(c.x + c.width / 2, c.y + c.height / 2);
|
|
162
174
|
await page.waitForTimeout(100);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Feedback batch 12 items 2, 3 and 4, Claude proposes: an initiative's one blue ✦ (Found elsewhere, Dates, Looks done, Names, Links), the background runs that file them and `pmos propose` (lib/proposals.js, lib/routes-proposals.js, lib/proposal-runs.js, lib/propose-cli.js, pm/ini-props.js). The modules suite folds pure, drives the runs with fake parts and then serves a scratch server. The Board's ✦ and its Viewer are driven in task-links-test.js.",
|
|
3
|
+
"modules": ["proposals.test.js"],
|
|
4
|
+
"seconds": { "proposals.test.js": 10 }
|
|
5
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Feedback batch 12 item 6 (agreed A, 2026-10-26; canvas HsA1Desk, HsA2Phone, HsA3Sheet): an initiative's sessions, next steps and today's meetings sit in a pill on its Home row instead of nesting under it. The panel suite holds the pure checks too and serves the real page.",
|
|
3
|
+
"modules": [],
|
|
4
|
+
"panels": ["home-pill-test.js"],
|
|
5
|
+
"seconds": { "home-pill-test.js": 25 }
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Batch 12 item 1, slice S2: the recording tab's Now panel and live transcript. The unit suite covers the screen text and Raise now items in the meeting companion (lib/meeting-focus.js), POST /api/meeting-focus/raise, and the panel's pure model and markup (public/pm/cozy-rec-now.js); the browser suite mounts the panel in the real recording tab (room, shared screen, ask Claude, transcript, phone).",
|
|
3
|
+
"modules": ["rec-now.test.js"],
|
|
4
|
+
"panels": ["premium-rec-now-test.js"],
|
|
5
|
+
"seconds": { "rec-now.test.js": 2, "premium-rec-now-test.js": 25 }
|
|
6
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Batch 12 item 1, S3: Present in the recording tab (the presenter view, the audience tab, a shared window, a deck's Present while recording).",
|
|
3
|
+
"panels": [
|
|
4
|
+
"rec-present-test.js"
|
|
5
|
+
],
|
|
6
|
+
"modules": [
|
|
7
|
+
"rec-present.test.js"
|
|
8
|
+
],
|
|
9
|
+
"seconds": {
|
|
10
|
+
"rec-present-test.js": 60,
|
|
11
|
+
"rec-present.test.js": 1
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Batch 12 item 1, slice S1: a meeting records in its own tab (premium-rec.html); every other page shows a snippet.",
|
|
3
|
+
"panels": [
|
|
4
|
+
"premium-rec-tab-test.js"
|
|
5
|
+
],
|
|
6
|
+
"modules": [
|
|
7
|
+
"rec-tab.test.js"
|
|
8
|
+
],
|
|
9
|
+
"seconds": {
|
|
10
|
+
"premium-rec-tab-test.js": 60,
|
|
11
|
+
"rec-tab.test.js": 1
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -137,6 +137,19 @@ const LAYOUT = { ok: true, auto: true, held: [], by: 'stage', names: [], of: {},
|
|
|
137
137
|
ok('T1 the ticket that lacks text carries its marker', await p.evaluate((v) => { const m = document.querySelector(v + ' .ig-tk[data-ig-tk="S5"] .ig-mk.warn'); return !!m && /Missing/.test(m.getAttribute('aria-label')); }, V));
|
|
138
138
|
ok('T1 the card leads Tasks: "N tickets are drafted, not in Jira" with one Send to Jira', /6 tickets are drafted, not in Jira/.test(await txt(p, V + ' .ig-sum')) && (await txt(p, V + ' .ig-sum [data-ig-sendall]')) === 'Send to Jira' && (await p.$$(V + ' [data-ig-sendall]')).length === 1, await txt(p, V + ' .ig-sum'));
|
|
139
139
|
await shot(p, 'tasks-epic-1440.png');
|
|
140
|
+
/* batch 12 item 0 · the stage card's stage while Tasks is grouped by epic: Tasks keeps the epic grouping, shows that stage's tasks only */
|
|
141
|
+
const st = await p.evaluate((v) => { const b = [...document.querySelectorAll(v + ' .iv-tl .iv-tlp[data-iv-stage]')].find((x) => !x.classList.contains('now')); return b ? { key: b.dataset.ivStage, title: b.title } : null; }, V);
|
|
142
|
+
ok('S0 the stage card has a stage part to press', !!st, JSON.stringify(st));
|
|
143
|
+
if (st) {
|
|
144
|
+
await p.click(`${V} .iv-tl .iv-tlp[data-iv-stage="${st.key}"]`);
|
|
145
|
+
const only = await until(() => p.evaluate((v) => { const c = document.querySelector(v + ' .iv-th [data-ig-all]'); return c ? c.textContent.trim() : null; }, V));
|
|
146
|
+
ok('S0 the Tasks header names the stage shown, with a ✕ to show every stage', !!only && st.title.includes(only), only + ' / ' + st.title);
|
|
147
|
+
ok('S0 the grouping stays: the group icon is still on, and no stage section opens in its place', await p.evaluate((v) => document.querySelector(v + ' [data-ig-by]').classList.contains('on'), V));
|
|
148
|
+
ok('S0 a stage with no Jira tickets shows no epic groups', await p.evaluate((v) => !document.querySelector(v + ' .ig-tk') && !document.querySelector(v + ' .ig-sum'), V));
|
|
149
|
+
await shot(p, 'tasks-epic-stage-1440.png');
|
|
150
|
+
await p.click(V + ' .iv-th [data-ig-all]');
|
|
151
|
+
ok('S0 the ✕ shows every stage again: the epics come back', await epics(p) && await p.evaluate((v) => !document.querySelector(v + ' [data-ig-all]'), V));
|
|
152
|
+
}
|
|
140
153
|
await p.click(V + ' [data-ig-by]');
|
|
141
154
|
const gm = await until(() => p.evaluate(() => { const m = document.querySelector('.ig-pop [role="menu"]'); return m ? [...m.querySelectorAll('[role^="menuitem"]')].map((b) => b.innerText.replace(/\s+/g, ' ').trim() + (b.getAttribute('aria-checked') === 'true' ? '*' : '')) : null; }));
|
|
142
155
|
ok('G1 the menu: Group by Stage, Epic, Your groups, Owner, Status, then New group; Epic is checked', !!gm && gm.join('|') === 'Stage|Epic 2 epics*|Your groups|Owner|Status|New group', JSON.stringify(gm));
|