create-pmos 0.396.0 → 0.398.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/scripts/nine-stages.js +49 -20
- package/payload/state/discoveries.md +1 -1
- package/payload/state/log.md +1 -1
- package/workspace/briefing-premium-adddoc-test.js +103 -74
- package/workspace/briefing-premium-board-test.js +316 -154
- package/workspace/briefing-premium-calendar-2-test.js +135 -195
- package/workspace/briefing-premium-calendar-3-test.js +143 -413
- package/workspace/briefing-premium-calendar-test.js +86 -185
- package/workspace/briefing-premium-doc-edit-test.js +95 -83
- package/workspace/briefing-premium-initiative-test.js +166 -294
- package/workspace/briefing-premium-insights-test.js +351 -214
- package/workspace/briefing-premium-metrics-test.js +53 -118
- package/workspace/briefing-premium-products-test.js +40 -27
- package/workspace/briefing-premium-sources-test.js +91 -52
- package/workspace/briefing-premium-test.js +150 -633
- package/workspace/briefing-premium-work-test.js +88 -269
- package/workspace/changelog.json +24 -0
- package/workspace/fixtures/board-premium-facts.js +2 -1
- package/workspace/fixtures/board-premium-jira.js +28 -0
- package/workspace/fixtures/board-premium-trail.js +32 -0
- package/workspace/fixtures/initiative-premium-facts.js +2 -1
- package/workspace/fixtures/initiatives-api/list.json +30 -42
- package/workspace/fixtures/initiatives-api/roadmap.json +40 -56
- package/workspace/fixtures/initiatives-api/sheet.json +10 -14
- package/workspace/fixtures/insights-premium-facts.js +11 -2
- package/workspace/fixtures/premium-viewer-fixtures.js +182 -0
- package/workspace/guide/briefing-premium.md +3 -1
- package/workspace/guide/home.md +47 -0
- package/workspace/guide/index.md +2 -0
- package/workspace/guide/lifecycle.md +51 -0
- package/workspace/home-shot.js +38 -0
- package/workspace/lib/agent-roles.js +71 -0
- package/workspace/lib/board-premium.js +160 -3
- package/workspace/lib/board-trail.js +223 -0
- package/workspace/lib/engine/boards.js +15 -14
- package/workspace/lib/engine/nine-stages.js +49 -20
- package/workspace/lib/engine/signals/detectors.js +13 -11
- package/workspace/lib/home-work-item.js +58 -0
- package/workspace/lib/insights-goals.js +196 -0
- package/workspace/lib/insights-premium.js +126 -1
- package/workspace/lib/insights-records.js +101 -0
- package/workspace/lib/jira-tickets.js +1 -1
- package/workspace/lib/route-modules.js +4 -0
- package/workspace/lib/routes-board-premium.js +3 -2
- package/workspace/lib/routes-board-trail.js +33 -0
- package/workspace/lib/routes-home-desk.js +176 -0
- package/workspace/lib/routes-initiatives.js +1 -1
- package/workspace/lib/routes-insights-premium.js +19 -3
- package/workspace/lib/routes-insights-records.js +129 -0
- package/workspace/lib/routes-notes.js +1 -0
- package/workspace/lib/routes-viewer.js +108 -0
- package/workspace/lib/transcript-steps.js +123 -0
- package/workspace/lib/vendor/scripts/nine-stages.js +49 -20
- package/workspace/lib/viewer-meeting.js +205 -0
- package/workspace/lib/viewer-report.js +89 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-agreed-viewer-shots.js +76 -0
- package/workspace/premium-board-actions-test.js +85 -73
- package/workspace/premium-briefing-depth-test.js +66 -53
- package/workspace/premium-chat-attach-test.js +54 -63
- package/workspace/premium-chat-chart-tab-test.js +35 -36
- package/workspace/premium-chat-context-test.js +22 -19
- package/workspace/premium-chat-goal-view-test.js +28 -26
- package/workspace/premium-chat-notes-test.js +29 -33
- package/workspace/premium-chat-report-tab-test.js +35 -25
- package/workspace/premium-chat-term-test.js +16 -14
- package/workspace/premium-chat-viewer-test.js +60 -53
- package/workspace/premium-core-doc-issue-test.js +50 -41
- package/workspace/premium-html-viewer-test.js +17 -18
- package/workspace/premium-phone-card-test.js +8 -2
- package/workspace/premium-phone-room-test.js +42 -31
- package/workspace/premium-report-read-test.js +115 -197
- package/workspace/premium-viewer-download-test.js +19 -22
- package/workspace/premium-viewer-flicker-test.js +11 -16
- package/workspace/premium-viewer-share-test.js +6 -9
- package/workspace/premium-viewer-test.js +41 -60
- package/workspace/premium-vw-backlog-test.js +53 -31
- package/workspace/premium-vw-cal-test.js +82 -123
- package/workspace/premium-vw-copy-test.js +17 -33
- package/workspace/premium-vw-doc-test.js +12 -11
- package/workspace/premium-vw-item-test.js +50 -48
- package/workspace/premium-vw-jira-test.js +55 -26
- package/workspace/premium-vw-meet-test.js +118 -187
- package/workspace/premium-vw-notes-test.js +85 -107
- package/workspace/premium-vw-rec-test.js +72 -193
- package/workspace/premium-vw-slides-test.js +46 -50
- package/workspace/premium-welcome-test.js +3 -2
- package/workspace/premium-work-depth-test.js +63 -51
- package/workspace/public/pm/bd-acts.js +305 -0
- package/workspace/public/pm/bd-span.js +224 -0
- package/workspace/public/pm/bd-stages.js +47 -0
- package/workspace/public/pm/c3-doc-sheet.js +1 -1
- package/workspace/public/pm/c3-md.js +3 -395
- package/workspace/public/pm/c3-phone-detail.js +1 -1
- package/workspace/public/pm/c3-phone-model.js +3 -68
- package/workspace/public/pm/chat-term.js +3 -3
- package/workspace/public/pm/cozy-board.css +640 -0
- package/workspace/public/pm/cozy-home.css +580 -0
- package/workspace/public/pm/cozy-home.js +172 -0
- package/workspace/public/pm/cozy-initiative.css +138 -0
- package/workspace/public/pm/cozy-insights.css +421 -0
- package/workspace/public/pm/cozy-md.js +396 -0
- package/workspace/public/pm/cozy-nav.js +65 -0
- package/workspace/public/pm/cozy-placeholder.js +26 -0
- package/workspace/public/pm/cozy-viewer.css +143 -0
- package/workspace/public/pm/cozy-viewer.js +144 -0
- package/workspace/public/pm/cozy-vw.css +485 -0
- package/workspace/public/pm/cozy.css +254 -0
- package/workspace/public/pm/home-adddoc.js +48 -0
- package/workspace/public/pm/home-app.js +905 -0
- package/workspace/public/pm/home-around.js +515 -0
- package/workspace/public/pm/home-chat.js +459 -0
- package/workspace/public/pm/home-data.js +312 -0
- package/workspace/public/pm/home-draft.js +68 -0
- package/workspace/public/pm/home-more.js +249 -0
- package/workspace/public/pm/home-phone-card.js +109 -0
- package/workspace/public/pm/home-work.js +519 -0
- package/workspace/public/pm/lifecycle-lens-model.js +45 -27
- package/workspace/public/pm/lifecycle-lens.js +22 -11
- package/workspace/public/pm/phone-moment.js +69 -0
- package/workspace/public/pm/pm-work-view.js +1 -1
- package/workspace/public/pm/premium-attach.js +4 -0
- package/workspace/public/pm/premium-board.js +544 -253
- package/workspace/public/pm/premium-brief.js +1 -1
- package/workspace/public/pm/premium-chart-tab.js +110 -62
- package/workspace/public/pm/premium-chat.js +17 -10
- package/workspace/public/pm/premium-deck.js +3 -3
- package/workspace/public/pm/premium-first.js +25 -21
- package/workspace/public/pm/premium-initiative-head.js +138 -0
- package/workspace/public/pm/premium-initiative.js +28 -4
- package/workspace/public/pm/premium-insights.js +950 -440
- package/workspace/public/pm/premium-meeting.js +61 -549
- package/workspace/public/pm/premium-notes.js +1 -1
- package/workspace/public/pm/premium-report-frame.css +20 -0
- package/workspace/public/pm/premium-report-read.js +509 -480
- package/workspace/public/pm/premium-report-tab.js +87 -63
- package/workspace/public/pm/premium-shell.js +107 -124
- package/workspace/public/pm/premium-viewer.js +27 -1
- package/workspace/public/pm/premium-vw-cal.js +187 -48
- package/workspace/public/pm/premium-vw-doc.css +6 -0
- package/workspace/public/pm/premium-vw-doc.js +40 -2
- package/workspace/public/pm/premium-vw-file.js +2 -2
- package/workspace/public/pm/premium-vw-jira-model.js +22 -5
- package/workspace/public/pm/premium-vw-jira.css +11 -0
- package/workspace/public/pm/premium-vw-jira.js +11 -4
- package/workspace/public/pm/premium-vw-meet.js +6 -83
- package/workspace/public/pm/premium-vw-mtg.js +731 -0
- package/workspace/public/pm/premium-vw-notes.js +56 -69
- package/workspace/public/pm/premium-vw-open.js +35 -0
- package/workspace/public/pm/premium-vw-page.js +16 -0
- package/workspace/public/pm/premium-vw-rec.js +11 -215
- package/workspace/public/pm/premium-vw-slides.css +5 -0
- package/workspace/public/pm/premium-vw-slides.js +44 -8
- package/workspace/public/pm/term-view.js +22 -0
- package/workspace/public/premium-board.html +57 -64
- package/workspace/public/premium-chat.html +7 -33
- package/workspace/public/premium-initiative.html +8 -41
- package/workspace/public/premium-insights.html +63 -62
- package/workspace/public/premium-viewer.html +20 -0
- package/workspace/public/premium-work.html +6 -72
- package/workspace/public/premium.html +21 -66
- package/workspace/public/vendor/nunito-var.woff2 +0 -0
- package/workspace/server.js +25 -3
- package/workspace/test-files.json +1 -0
- package/workspace/test-lists/home-libs.json +9 -0
- package/workspace/test-lists/premium-agreed-viewer.json +9 -0
- package/workspace/test-lists/premium-report-read.json +1 -1
- package/workspace/test-lists/premium-vw-agreed.json +9 -0
- package/workspace/test-lists/premium-vw-notes.json +1 -1
- package/workspace/third-party/README.md +1 -0
- package/workspace/public/pm/premium-work.js +0 -719
- package/workspace/public/pm/premium.js +0 -1133
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/* fixtures/premium-viewer-fixtures.js — stand-in answers for the Viewer's meeting, calendar, notes and report (initiative premium-agreed-design,
|
|
3
|
+
* area viewer). The browser suites and the screenshot run open /premium-viewer.html?open=… on the real server and answer the reads with these,
|
|
4
|
+
* so each press can be read off the request the page sent. Each answer has the shape its real route returns.
|
|
5
|
+
* install(page, o) → S o = { scene: 'notes' | 'live' | 'prep', now } S records the posts: S.posts [{ path, body }]
|
|
6
|
+
* The meeting is "Viewer sync" (a series of 4, about the Viewer initiative); "Rail review" starts in 30 minutes; the report is a
|
|
7
|
+
* leadership review with five sections. */
|
|
8
|
+
const pad = (n) => String(n).padStart(2, '0');
|
|
9
|
+
const dayKey = (d) => `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}`;
|
|
10
|
+
const iso = (d) => { const off = -d.getTimezoneOffset(), a = Math.abs(off); return `${dayKey(d)}T${pad(d.getHours())}:${pad(d.getMinutes())}:00${off >= 0 ? '+' : '-'}${pad(Math.floor(a / 60))}:${pad(a % 60)}`; };
|
|
11
|
+
|
|
12
|
+
function world(now = new Date()) {
|
|
13
|
+
const mid = new Date(now.getFullYear(), now.getMonth(), now.getDate());
|
|
14
|
+
const at = (h, m) => new Date(mid.getFullYear(), mid.getMonth(), mid.getDate(), h, m);
|
|
15
|
+
const mon = new Date(mid); mon.setDate(mon.getDate() - ((mon.getDay() + 6) % 7));
|
|
16
|
+
const minute = Math.floor(now.getTime() / 60000) * 60000;
|
|
17
|
+
const SYNC = new Date(Math.max(mid.getTime(), minute - 40 * 60000)), SYNC_END = new Date(SYNC.getTime() + 31 * 60000);
|
|
18
|
+
const RAIL = new Date(minute + 30 * 60000), RAIL_END = new Date(RAIL.getTime() + 30 * 60000);
|
|
19
|
+
const LIVE = new Date(Math.max(mid.getTime(), minute - 12 * 60000)), LIVE_END = new Date(LIVE.getTime() + 30 * 60000);
|
|
20
|
+
const lvl = { kind: 'initiative', id: 'viewer', ws: 'w1', name: 'Viewer' };
|
|
21
|
+
const week = () => {
|
|
22
|
+
const cells = [];
|
|
23
|
+
for (let i = 0; i < 7; i++) { const d = new Date(mon.getFullYear(), mon.getMonth(), mon.getDate() + i); cells.push({ key: dayKey(d), start: dayKey(d), end: dayKey(d), events: [] }); }
|
|
24
|
+
const cell = (d) => cells.find((c) => c.key === dayKey(d));
|
|
25
|
+
cell(SYNC).events.push({ id: 'ev-sync', at: iso(SYNC), end: iso(SYNC_END), title: 'Viewer sync', attendees: ['Ana', 'Dita', 'Wawan'], series: 'viewer-sync' });
|
|
26
|
+
if (cell(RAIL)) cell(RAIL).events.push({ id: 'ev-rail', at: iso(RAIL), end: iso(RAIL_END), title: 'Rail review', attendees: ['Sam', 'Wawan'] });
|
|
27
|
+
if (cell(LIVE)) cell(LIVE).events.push({ id: 'ev-live', at: iso(LIVE), end: iso(LIVE_END), title: 'Design crit', attendees: ['Ana', 'Wawan'] });
|
|
28
|
+
for (let i = 0; i < 5; i++) { const d = new Date(mon.getFullYear(), mon.getMonth(), mon.getDate() + i, 15, 0); if (dayKey(d) !== dayKey(mid)) cell(d).events.push({ id: 'ev-1on1-' + i, at: iso(d), end: iso(new Date(d.getTime() + 30 * 60000)), title: '1:1 with Dita', attendees: ['Dita'] }); }
|
|
29
|
+
return { ok: true, view: 'week', range: { start: cells[0].key, end: cells[6].key }, cells, events_source: 'calendar-memory', today: dayKey(now), context: { 'ev-sync': { level: lvl }, 'ev-rail': { level: lvl } }, link_boards: [{ id: 'b1', ws: 'w1', name: 'Growth' }], gantt: [] };
|
|
30
|
+
};
|
|
31
|
+
const NOTE = {
|
|
32
|
+
id: 'n1', title: 'Viewer sync', state: 'ended', updated_at: SYNC_END.toISOString(), meeting_ms: 31 * 60000 + 5000,
|
|
33
|
+
meeting: { kind: 'event', event_id: 'ev-sync', start: iso(SYNC), end: iso(SYNC_END), title: 'Viewer sync', context: { with: 'Ana, Dita and Wawan', purpose: 'Agree how the Viewer ships.', agenda: ['Viewer beside the chat', 'Saved views and the migration', 'Print preview'] } },
|
|
34
|
+
initiative: { id: 'viewer', ws: 'w1', title: 'Viewer' }, series: { key: 'viewer-sync' },
|
|
35
|
+
final_notes: { overview: 'The Viewer opens next to the chat, not in place of it. Saved views move to the new store in their own work-item, which can slip a sprint without blocking the rest.',
|
|
36
|
+
decisions: [{ text: 'Diffs can be approved from the Viewer.', why: 'One place to read and approve; the separate review page was used twice.' }, { text: 'Migration V.3 always goes to you before release.', why: 'It moves saved views for every team.' }],
|
|
37
|
+
actions: [{ text: 'Add a print view for documents', owner: 'Ana', due: '' }, { text: 'Move saved views to the new store', owner: 'Dita', due: '' }, { text: 'Tell Communicator about the release', owner: 'Wawan', due: '' }],
|
|
38
|
+
questions: [{ text: 'Do old workspaces need a manual step?' }] },
|
|
39
|
+
final: { segments: [{ t: 190000, spk: 'meeting', text: 'The Viewer sits beside the chat now.' }, { t: 760000, spk: 'mic', text: 'Saved views move in their own work-item.' }, { t: 895000, spk: 'meeting', text: 'Approve the diff from the Viewer.' }] },
|
|
40
|
+
speakers: { meeting: 'Dita' },
|
|
41
|
+
transcript: [{ t: 400000, text: 'Completion is 81% on the web.', cat: 'statement', source: 'meeting', check: { doc: 'planning/okrs/q4.md', verdict: 'agrees' } }, { t: 500000, text: 'About half the teams use saved views.', cat: 'statement', source: 'mic' }],
|
|
42
|
+
};
|
|
43
|
+
const PLACE = { key: 'viewer-sync', title: 'Viewer sync', pos: 4, count: 4, by: 'calendar', prev: { id: 'n0', at: '2026-10-15T10:00:00Z', overview: 'The Viewer split.' }, next: null,
|
|
44
|
+
since: { at: '2026-10-15T10:00:00Z', items: [{ text: 'Show the Viewer at tablet width', owner: 'Designer', state: 'done' }, { text: 'Decide where saved views live', owner: 'Wawan', state: 'again' }, { text: 'Ask legal about exported PDFs', owner: 'Dita', state: 'open' }], fresh: [{ text: 'Add a print view for documents', owner: 'Ana' }] },
|
|
45
|
+
carried_in: [], carried: {} };
|
|
46
|
+
const LIVE_NOTE = { id: 'n2', title: 'Design crit', state: 'recording', updated_at: now.toISOString(), meeting_ms: 12 * 60000 + 4000, recorded_from: iso(LIVE),
|
|
47
|
+
meeting: { kind: 'event', event_id: 'ev-live', start: iso(LIVE), end: iso(LIVE_END), title: 'Design crit' }, body: 'Ask Ana for the tablet frames.',
|
|
48
|
+
transcript: [{ t: 300000, source: 'meeting', text: 'The report panel keeps one toolbar row.' }, { t: 420000, source: 'mic', text: 'And Issue is the blue button.' }, { t: 610000, source: 'meeting', text: 'Completion is 81% on the web.', cat: 'statement' }],
|
|
49
|
+
highlights: [{ t: 420000, text: 'Issue is the blue button.' }], speakers: { meeting: 'Ana' } };
|
|
50
|
+
const ROWS = [
|
|
51
|
+
{ id: 'n1', title: 'Viewer sync', state: 'ended', updated_at: NOTE.updated_at, meeting: { kind: 'event', event_id: 'ev-sync', start: iso(SYNC), title: 'Viewer sync' }, series: { key: 'viewer-sync' }, initiative: NOTE.initiative, meeting_ms: NOTE.meeting_ms, summary_lines: [NOTE.final_notes.overview] },
|
|
52
|
+
{ id: 'n0', title: 'Viewer sync', state: 'ended', updated_at: '2026-10-15T10:31:00Z', meeting: { kind: 'event', event_id: 'ev-sync-0', start: '2026-10-15T10:00:00Z', title: 'Viewer sync' }, series: { key: 'viewer-sync' }, initiative: NOTE.initiative },
|
|
53
|
+
{ id: 'n2', title: 'Design crit', state: 'recording', updated_at: now.toISOString(), meeting: LIVE_NOTE.meeting, meeting_ms: LIVE_NOTE.meeting_ms },
|
|
54
|
+
{ id: 'n3', title: 'Compare meeting note apps', state: 'ended', updated_at: iso(at(9, 30)), created_at: iso(at(9, 0)), meeting: null, meeting_ms: 20 * 60000 },
|
|
55
|
+
{ id: 'n4', title: 'Saved views interview', state: 'ended', updated_at: '2026-10-14T14:00:00Z', created_at: '2026-10-14T13:30:00Z', meeting: null, initiative: { id: 'saved-views', title: 'Saved views for teams' } },
|
|
56
|
+
];
|
|
57
|
+
return { now, SYNC, RAIL, LIVE, week, NOTE, PLACE, LIVE_NOTE, ROWS, lvl };
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const REPORT_PATH = 'reports/leadership-review/2026-10-21.md';
|
|
61
|
+
const REPORT = '---\ntype: Report\ntitle: "Password login and sign-up"\n---\n\n# Password login and sign-up\n\n## Summary\nLogin success is **81%** (597 of 733 web logins), as of 19 Oct 2026.\n\n## Login and sign-up success\n- Web: 81%\n- App: 88%\n\n## Why people drop\n- The code email arrives late\n- The password rules are unclear\n\n## Next steps\n- Ship the magic link\n- Rewrite the rules text\n\n## Sources reached and not reached\n- Reached: analytics, support, app store\n';
|
|
62
|
+
|
|
63
|
+
function install(page, o = {}) {
|
|
64
|
+
const W = world(o.now || new Date());
|
|
65
|
+
const S = { posts: [], gets: [], scene: o.scene || 'notes', W };
|
|
66
|
+
const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'application/json', body: JSON.stringify(b) });
|
|
67
|
+
const body = (r) => { try { return JSON.parse(r.request().postData() || '{}'); } catch { return {}; } };
|
|
68
|
+
const post = (r) => { const b = body(r); S.posts.push({ path: new URL(r.request().url()).pathname, body: b }); return b; };
|
|
69
|
+
page.on('request', (r) => { if (r.method() === 'GET' && /\/api\//.test(r.url())) S.gets.push(new URL(r.url()).pathname + new URL(r.url()).search); });
|
|
70
|
+
S.store = { n1: W.NOTE, n2: W.LIVE_NOTE, n0: { ...W.ROWS[1], body: '', transcript: [] }, n3: { ...W.ROWS[3], body: '', transcript: [] }, n4: { ...W.ROWS[4], body: '', transcript: [] } }; S.made = 0;
|
|
71
|
+
S.rows = (S.scene === 'prep' || o.noLive ? W.ROWS.filter((x) => x.id !== 'n2') : W.ROWS).map((x) => ({ ...x }));
|
|
72
|
+
if (S.scene === 'prep' || o.noLive) delete S.store.n2;
|
|
73
|
+
const notesRows = () => S.rows;
|
|
74
|
+
return Promise.all([
|
|
75
|
+
page.route('**/api/calendar-views*', (r) => json(r, W.week())),
|
|
76
|
+
page.route(/\/api\/notes(\?.*)?$/, (r) => (r.request().method() === 'GET' ? json(r, { ok: true, notes: notesRows(), series_open: { 'viewer-sync': { open: 2, carried: true } } }) : json(r, { ok: true }))),
|
|
77
|
+
page.route('**/api/notes/one*', (r) => {
|
|
78
|
+
const id = new URL(r.request().url()).searchParams.get('id'), n = S.store[id];
|
|
79
|
+
if (!n) return json(r, { ok: false, error: 'no such note' }, 404);
|
|
80
|
+
if (id === 'n1') return json(r, { ok: true, note: n, recording: { bytes: 64 }, screen: { frames: [{ t: 190000, why: 'Viewer beside the chat' }, { t: 895000, why: 'Diff approve button' }, { t: 1470000, why: 'Print preview' }] }, place: S.out ? null : W.PLACE });
|
|
81
|
+
return json(r, { ok: true, note: n, screen: { frames: id === 'n2' ? [{ t: 300000 }, { t: 400000 }, { t: 500000 }, { t: 600000 }] : [] }, place: null });
|
|
82
|
+
}),
|
|
83
|
+
page.route('**/api/notes/series?*', (r) => json(r, { ok: true, series: { key: 'viewer-sync', meetings: [{ id: 'n0', at: '2026-10-15T10:00:00Z', decided: 1, steps: 3 }, { id: 'n1', at: W.NOTE.meeting.start, decided: 2, steps: 3 }] } })),
|
|
84
|
+
page.route('**/api/notes/search*', (r) => json(r, { ok: true, ids: ['n4'] })),
|
|
85
|
+
page.route('**/api/notes/new', (r) => {
|
|
86
|
+
const b = post(r), id = 'new' + (++S.made);
|
|
87
|
+
const n = { id, title: b.title || '', state: 'idle', created_at: new Date().toISOString(), updated_at: new Date().toISOString(), meeting: b.meeting || (b.event ? { kind: 'event', event_id: b.event.id || b.event, start: b.event.at, title: b.event.title } : null), transcript: [] };
|
|
88
|
+
S.store[id] = n; S.rows.unshift({ ...n });
|
|
89
|
+
return json(r, { ok: true, id, note: n });
|
|
90
|
+
}),
|
|
91
|
+
page.route(/\/api\/notes\/(record|pause|stop)$/, (r) => {
|
|
92
|
+
const b = post(r), k = new URL(r.request().url()).pathname.split('/').pop(), n = S.store[b.id];
|
|
93
|
+
if (n) { n.state = k === 'record' ? 'recording' : k === 'pause' ? 'paused' : 'ended'; const row = S.rows.find((x) => x.id === b.id); if (row) row.state = n.state; }
|
|
94
|
+
return json(r, { ok: true });
|
|
95
|
+
}),
|
|
96
|
+
page.route(/\/api\/notes\/(save|private|speaker|series-member|link|highlight)$/, (r) => {
|
|
97
|
+
const b = post(r), k = new URL(r.request().url()).pathname.split('/').pop(), n = S.store[b.id];
|
|
98
|
+
if (n && k === 'save') n.body = b.body;
|
|
99
|
+
if (n && k === 'private') { n.private = !!b.private; n.transcript = []; }
|
|
100
|
+
if (k === 'series-member') S.out = b.key === 'off';
|
|
101
|
+
if (k === 'link') { const set = { initiative: b.initiative || null, board: b.board || null, portfolio: !!b.portfolio }; if (n) Object.assign(n, set); const row = S.rows.find((x) => x.id === b.id); if (row) Object.assign(row, set); }
|
|
102
|
+
return json(r, { ok: true, private: !!b.private });
|
|
103
|
+
}),
|
|
104
|
+
page.route('**/api/notes/recording*', (r) => r.fulfill({ status: 200, contentType: 'audio/wav', body: Buffer.alloc(0) })),
|
|
105
|
+
page.route('**/api/notes/screen*', (r) => r.fulfill({ status: 200, contentType: 'image/png', body: Buffer.from('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==', 'base64') })),
|
|
106
|
+
page.route('**/api/meeting-focus?*', (r) => {
|
|
107
|
+
const u = new URL(r.request().url()), ev = u.searchParams.get('event'), note = u.searchParams.get('note');
|
|
108
|
+
const live = ev === 'ev-live' || note === 'n2';
|
|
109
|
+
/* a note with no calendar event has no event, brief or topics */
|
|
110
|
+
if (!ev && note && note !== 'n1' && note !== 'n2') return json(r, { ok: true, now_ms: Date.now(), event: null, note: { id: note, state: (S.store[note] || {}).state || 'ended' }, brief: null, material: [], topics: [], runs: [], captured: {}, tail: [] });
|
|
111
|
+
const base = { ok: true, now_ms: Date.now(), event: live ? { id: 'ev-live', title: 'Design crit', at: W.LIVE_NOTE.meeting.start, end: W.LIVE_NOTE.meeting.end, attendees: ['Ana', 'Wawan'] } : ev === 'ev-rail' ? { id: 'ev-rail', title: 'Rail review', at: iso(W.RAIL), attendees: ['Sam', 'Wawan'] } : { id: 'ev-sync', title: 'Viewer sync', at: W.NOTE.meeting.start, end: W.NOTE.meeting.end, attendees: ['Ana', 'Dita', 'Wawan'] },
|
|
112
|
+
note: live ? { id: 'n2', state: 'recording' } : ev === 'ev-rail' ? null : { id: 'n1', state: 'ended' },
|
|
113
|
+
brief: { gist: ['Agree the rail before the Commit.'], purpose: 'Agree the rail before the Commit.', matters: [{ tag: 'Late', tone: 'bad', text: 'The SSO spike', meta: 'due 14 Oct' }, { tag: 'Changed', tone: '', text: 'The report panel design', meta: 'Oct 21' }], last: { id: 'n0', at: '2026-10-15T10:00:00Z', decisions: [{ text: 'a' }], actions: [{ text: 'b' }, { text: 'c' }] }, prep: 'Read the rail PRD.', initiative: { id: 'viewer', title: 'Viewer', ws: 'w1' } },
|
|
114
|
+
material: [{ kind: 'pmos-doc', title: 'Rail PRD', ref: 'planning/prd/rail.md', from: 'you' }, { kind: 'link', title: 'Figma: report panel', url: 'https://x.example/f', topic: 'The report panel' }],
|
|
115
|
+
topics: live ? [{ id: 't1', text: 'One toolbar row', state: 'discussed', minutes: 6 }, { id: 't2', text: 'The Issue button', state: 'now', minutes: 8 }, { id: 't3', text: 'Phone layout', state: 'plan', minutes: 10 }] : [{ id: 't1', text: 'Viewer beside the chat', state: 'plan', minutes: 10 }, { id: 't2', text: 'Saved views and the migration', state: 'plan', minutes: 10 }, { id: 't3', text: 'Print preview', state: 'plan', minutes: 10 }],
|
|
116
|
+
runs: live ? [{ topic: 't1', from_min: 0, to_min: 6 }, { topic: 't2', from_min: 6, to_min: null }] : [], captured: live ? { decisions: [{}], actions: [{}, {}], questions: [] } : {}, tail: [] };
|
|
117
|
+
return json(r, base);
|
|
118
|
+
}),
|
|
119
|
+
page.route('**/api/meeting-focus/topic', (r) => { post(r); return json(r, { ok: true }); }),
|
|
120
|
+
page.route('**/api/meeting-replay*', (r) => (new URL(r.request().url()).searchParams.get('note') !== 'n1' ? json(r, { ok: false, error: 'no recording' }) : null) || json(r, { ok: true, length_ms: 31 * 60000 + 5000, note: { id: 'n1', title: 'Viewer sync' }, meeting: { title: 'Viewer sync', at: W.NOTE.meeting.start, attendees: ['Ana', 'Dita', 'Wawan'] },
|
|
121
|
+
topics: [{ id: 't1', text: 'Viewer beside the chat' }, { id: 't2', text: 'Saved views and the migration' }, { id: 't3', text: 'Print preview' }],
|
|
122
|
+
runs: [{ topic: 't1', from_ms: 0, to_ms: 600000 }, { topic: 't2', from_ms: 600000, to_ms: 1300000 }, { topic: 't3', from_ms: 1300000, to_ms: 1865000 }],
|
|
123
|
+
keys: [{ k: 'decision', text: 'Diffs can be approved from the Viewer.', t: 895000 }, { k: 'action', text: 'Add a print view', t: 1500000 }, { k: 'decision', text: 'Migration V.3', t: 1700000 }],
|
|
124
|
+
shots: [{ t: 190000, why: 'Viewer beside the chat' }, { t: 895000, why: 'Diff approve button' }, { t: 1470000, why: 'Print preview' }],
|
|
125
|
+
lines: [{ t: 190000, who: 'Dita', text: 'The Viewer sits beside the chat now.' }, { t: 760000, who: 'You', text: 'Saved views move in their own work-item.' }] })),
|
|
126
|
+
page.route('**/api/meeting-material*', (r) => (r.request().method() === 'POST' ? (post(r), json(r, { ok: true })) : json(r, { ok: true, key: 'k', items: [] }))),
|
|
127
|
+
page.route('**/api/viewer-meeting?*', (r) => {
|
|
128
|
+
const u = new URL(r.request().url()), topics = u.searchParams.getAll('topic');
|
|
129
|
+
return json(r, { ok: true, agenda: { key: 's:viewer-sync', total: 30, topics: topics.map((t, i) => ({ n: i + 1, text: t, min: 10, set: i === 0 })) }, capture: { app: 'zoom', shots: 'on' }, steps: { links: S.links || {}, tasks: [] } });
|
|
130
|
+
}),
|
|
131
|
+
page.route(/\/api\/viewer-meeting\/(agenda|capture)/, (r) => { const b = post(r); return json(r, { ok: true, capture: { app: b.app || 'zoom', shots: b.shots || 'on' } }); }),
|
|
132
|
+
page.route('**/api/viewer-meeting/work-item', (r) => { const b = post(r); const k = require('../lib/viewer-meeting.js').stepKey(b.step && b.step.text); const had = (S.links = S.links || {})[k]; if (!had) S.links[k] = 'V.' + (4 + Object.keys(S.links).length); return json(r, { ok: true, ticket: S.links[k], created: !had }); }),
|
|
133
|
+
page.route('**/api/plan-items*', (r) => (r.request().method() === 'POST' ? (post(r), json(r, { ok: true, written: [{ item: 'item-9' }] })) : json(r, { ok: true, stages: [{ id: 'st1', label: 'Intake' }] }))),
|
|
134
|
+
page.route('**/api/calendar-links', (r) => { post(r); return json(r, { ok: true }); }),
|
|
135
|
+
page.route('**/api/boards', (r) => json(r, { ok: true, boards: [{ id: 'b1', ws: 'w1', name: 'Growth' }] })),
|
|
136
|
+
page.route('**/api/boards/backlog*', (r) => json(r, { ok: true, rows: [{ id: 'viewer', title: 'Viewer' }] })),
|
|
137
|
+
/* the report */
|
|
138
|
+
page.route('**/api/doc?*', (r) => r.fulfill({ status: 200, contentType: 'text/markdown', body: S.reportText || REPORT })),
|
|
139
|
+
page.route('**/api/report-design/cycle?*', (r) => json(r, { ok: true, designed: false })),
|
|
140
|
+
page.route('**/api/report-setups?*', (r) => json(r, { ok: true, setups: S.setup ? [S.setup] : [] })),
|
|
141
|
+
page.route('**/api/report-setups/*', (r) => { const b = post(r); S.setup = { id: 'leadership-review', name: 'Password login and sign-up', audience: 'Leadership review', status: 'active', schedule: b.schedule || (b.proposal && b.proposal.schedule) }; return json(r, { ok: true, setup: S.setup }); }),
|
|
142
|
+
page.route('**/api/report-documents?*', (r) => json(r, { ok: true, docs: [{ path: REPORT_PATH, slot: '2026-10-21', state: 'draft' }, { path: 'reports/leadership-review/2026-10-14.md', slot: '2026-10-14', state: 'issued' }, { path: 'reports/leadership-review/2026-10-07.md', slot: '2026-10-07', state: 'issued' }, { path: 'reports/leadership-review/2026-09-30.md', slot: '2026-09-30', state: 'issued', archived: true }] })),
|
|
143
|
+
page.route('**/api/report-documents/*', (r) => { post(r); return json(r, { ok: true }); }),
|
|
144
|
+
page.route('**/api/viewer-report/checks*', (r) => json(r, { ok: true, checks: [{ id: 'sources', ok: true, text: 'All 3 sources reached · data from Oct 19' }, { id: 'sections', ok: true, text: '5 slides, every section filled' }, { id: 'figures', ok: false, text: 'The 81% figure is 2 days old. Refresh it first?' }] })),
|
|
145
|
+
page.route('**/api/report/draft*', (r) => json(r, { ok: true, exists: true, sha: 'abc', markdown: S.reportText || REPORT })),
|
|
146
|
+
page.route('**/api/report/issue', (r) => { post(r); return json(r, { ok: true }); }),
|
|
147
|
+
page.route('**/api/shares', (r) => (r.request().method() === 'POST' ? (post(r), json(r, { ok: true, url: 'https://share.example/s/abc', ends: '2026-10-29T00:00:00Z' })) : json(r, { ok: true, shares: S.shares || [] }))),
|
|
148
|
+
page.route('**/api/shares/password', (r) => json(r, { ok: true, password: 'velvet-pepper-planet-35' })),
|
|
149
|
+
page.route('**/api/shares/off', (r) => { post(r); return json(r, { ok: true }); }),
|
|
150
|
+
]).then(() => S);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* the stand-in recorder: the console's recorder (view-notes.js) makes these same requests; this one opens no microphone */
|
|
154
|
+
const RECORDER = () => {
|
|
155
|
+
window.__premiumRecorder = {
|
|
156
|
+
_id: null, _started: null, _banner: null, _hl: 0,
|
|
157
|
+
async listen(id) {
|
|
158
|
+
const r = await fetch('/api/notes/record', { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ id }) }).then((x) => x.json());
|
|
159
|
+
if (!r.ok) { this._banner = r.error; return false; }
|
|
160
|
+
this._id = id; this._started = Date.now() - 65000; return true;
|
|
161
|
+
},
|
|
162
|
+
async pause() { await fetch('/api/notes/pause', { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ id: this._id }) }); this._id = null; },
|
|
163
|
+
async stop(id) { await fetch('/api/notes/stop', { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ id }) }); this._id = null; return { discarded: false }; },
|
|
164
|
+
highlight() { this._hl++; return true; }, highlighting() { return this._hl ? { state: 'listening', open: true } : null; },
|
|
165
|
+
listening() { return this._id; }, started() { return this._started; }, banner() { const b = this._banner; this._banner = null; return b; },
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
/** One page on the Viewer: a context, the stand-ins, the stand-in recorder, and the page opened at `url`. → { ctx, page, S, errors } */
|
|
170
|
+
async function open(browser, base, url, o = {}) {
|
|
171
|
+
const ctx = await browser.newContext({ viewport: { width: o.w || 1280, height: o.h || 900 }, acceptDownloads: true });
|
|
172
|
+
const page = await ctx.newPage(), errors = [];
|
|
173
|
+
page.on('pageerror', (e) => errors.push(String((e && e.message) || e)));
|
|
174
|
+
const S = await install(page, o);
|
|
175
|
+
await page.addInitScript(RECORDER);
|
|
176
|
+
if (o.init) await page.addInitScript(o.init);
|
|
177
|
+
await page.goto(base + url);
|
|
178
|
+
return { ctx, page, S, errors };
|
|
179
|
+
}
|
|
180
|
+
const until = async (fn, ms = 10000, step = 100) => { const t0 = Date.now(); for (;;) { let v; try { v = await fn(); } catch { v = null; } if (v) return v; if (Date.now() - t0 > ms) return v; await new Promise((r) => setTimeout(r, step)); } };
|
|
181
|
+
|
|
182
|
+
module.exports = { open, until, RECORDER, install, world, REPORT, REPORT_PATH, dayKey, iso };
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
type: Guide
|
|
3
3
|
title: "The premium Briefing (/premium.html)"
|
|
4
4
|
description: "The Briefing page at /premium.html: the hero sentence, What you need to do, Today, the dock, and what each one reads from the repository."
|
|
5
|
-
timestamp: 2026-10-
|
|
5
|
+
timestamp: 2026-10-23
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# The premium Briefing
|
|
9
9
|
|
|
10
|
+
> Home now follows the Agreed design. [Home](home.md) describes the page as it works today and the cards marked **Waiting for design**. The sections below describe the features that those cards keep.
|
|
11
|
+
|
|
10
12
|
The premium Briefing is a page of its own at `/premium.html`. The console at `/` stays the default page. This page reads the repositories of the products you pick (see "Products"). It writes only when you press a button that says it records (see "What the buttons record"), plus one derived copy of its last answer, described below.
|
|
11
13
|
|
|
12
14
|
Every premium page uses the console's type: Space Grotesk for text, IBM Plex Mono for times and labels, and the same sizes and weights as the console. A premium page and the console at the same place read at the same size.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Guide
|
|
3
|
+
title: "Home (/premium.html) and the features that wait for design"
|
|
4
|
+
description: "Home in the Agreed design: the list, the Viewer, the place menu, and the plain cards for the features the design does not draw yet."
|
|
5
|
+
timestamp: 2026-10-23
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Home
|
|
9
|
+
|
|
10
|
+
Home is the page at `/premium.html`. It follows the Agreed design. The left side is one list: what needs you, today's meetings, and the files of an open initiative. The right side is the Viewer. A row opens its item in the Viewer. On a phone the list is a sheet that opens from the top bar.
|
|
11
|
+
|
|
12
|
+
Some features of the earlier premium pages are not in the Agreed design yet. Home keeps each one usable as a plain card in the Viewer. Each such card shows the label **Waiting for design**. The label means that the card works, but its look is not final. A designed version replaces the card later.
|
|
13
|
+
|
|
14
|
+
## The place menu
|
|
15
|
+
|
|
16
|
+
Press the round button at the bottom of the page, then **More**. The menu lists these items:
|
|
17
|
+
|
|
18
|
+
- **My work.** Your list, in four tabs: **Your list**, **Waiting on others**, **Weekly review** and **Untouched**. Type a line and press **Add** to add an item. Press **Done** to mark an item done. Press a row to open the item in the same card:
|
|
19
|
+
- **Edit** opens the fields: **When** (Today, Not yet, Not before a date, Someday), **Waiting on**, **Who does it** (the steps) and **Priority · Due**. **Keep it** and **Drop it** are under the fields.
|
|
20
|
+
- **The agent** can draft the item. A draft shows under the item with **Open** and **Copy**. Nothing goes out until you confirm **Post it**. **Send it back with a note** asks for a new draft.
|
|
21
|
+
- **Back to My work**, or Escape, returns to the list. Escape closes the fields first.
|
|
22
|
+
- **Focus** at the top of Your list opens **Focus and jobs**: accept or skip a suggestion, and add a job ("When …, I want …, so …").
|
|
23
|
+
- On a focused row, J and K move between rows. The right and left arrows do what the row says, for example Done and Tomorrow. A drag of a row to the right or left does the same. Most presses show **Undo** for a few seconds.
|
|
24
|
+
- **Around you.** The six rows of the earlier Briefing card: agent proposals, mentions, portfolio pulse, horizon scan, report found and data freshness. The card also shows the prep line for your next meeting and today's digests. A row opens its view in the same card. **Back** returns to the six rows. The presses are the same as before. See "Around you" in [the premium Briefing](briefing-premium.md).
|
|
25
|
+
- **Agent results.** What the agents finished that waits on you.
|
|
26
|
+
- **End of the day.** What finished today, the recap, and tomorrow's meetings.
|
|
27
|
+
- **Calendar**, **Record a note** and **Settings**.
|
|
28
|
+
- **Search.** Find an initiative, a core document or a session by name. Press Ctrl K (⌘K on a Mac) to open it from anywhere on Home.
|
|
29
|
+
- **Products.** The products that Home reads. A switch turns one product on or off. **Back to the default** goes back to the default list. With `?ws=` in the address, **All picked products** goes back to the full list.
|
|
30
|
+
- **Sources.** The state of each source that Home reads, with a dot that shows its health. **What Home shows** says which sources give the Today and Needs you lists.
|
|
31
|
+
|
|
32
|
+
To open Around you at one row, add `?around=` to the address with one of `prop`, `men`, `pulse`, `scan`, `rep` or `src`.
|
|
33
|
+
|
|
34
|
+
## A need row in the Viewer
|
|
35
|
+
|
|
36
|
+
A need opens in the Viewer with its title, its facts and its choices. A need from a source starts with **Why now**. If the source gives a web address, **Open it** opens it in a new tab.
|
|
37
|
+
|
|
38
|
+
## Your first Briefing
|
|
39
|
+
|
|
40
|
+
After an import in Welcome, Home opens with `first=` in the address. A card at the top of the list shows what came in and the state of each tool that you ticked. **Undo this import** reverses the import and returns to Welcome. The card shows **Waiting for design**.
|
|
41
|
+
|
|
42
|
+
## A document page
|
|
43
|
+
|
|
44
|
+
A document opens as a page in the Viewer. Use **Page**, **Edit** or **Markdown** to read it, edit it in place, or edit the file as text. Under the page, a section marked **Waiting for design** holds two lists:
|
|
45
|
+
|
|
46
|
+
- **Edit log.** Each version of the file, with its reason, who changed it, and the day.
|
|
47
|
+
- **Proposals.** The agent's proposed changes. **Open proposals** shows each open proposal with the request and each section. **Accept** takes only the sections that are still current. If no section is current, the proposal says that it cannot be accepted. **Reject** asks for a reason first. **Closed** lists the accepted and rejected proposals with their reasons. If the server refuses a press, the section shows the server's reason.
|
package/workspace/guide/index.md
CHANGED
|
@@ -28,6 +28,7 @@ On a desktop the workspace is one frame. [Layout](layout.md) explains each part.
|
|
|
28
28
|
| The sessions of a repository, by initiative | The agent dock. ⌘K → **Branches and sessions** lists the branches. |
|
|
29
29
|
| The items of an initiative | Board, or Breakdown in the initiative detail |
|
|
30
30
|
| How the Briefing cards, day part, Portfolio pulse and overdue items work | [Briefing](briefing-cards.md) |
|
|
31
|
+
| Home in the Agreed design, and the cards marked Waiting for design | [Home](home.md) |
|
|
31
32
|
| The premium Briefing page at /premium.html | [Premium Briefing](briefing-premium.md) |
|
|
32
33
|
| Run reports | Reports |
|
|
33
34
|
| Whether a document is the same as its Google Docs or Confluence copy | Docs: ⌘K → **Docs**, or press `g d` |
|
|
@@ -71,6 +72,7 @@ On a desktop the workspace is one frame. [Layout](layout.md) explains each part.
|
|
|
71
72
|
- [Breakdown › Timeline](timeline.md): an initiative's items on a time axis, split by stage, with milestones, today, and the at-risk flag when an item starts before its predecessor ends.
|
|
72
73
|
- [Initiatives › Timeline](initiatives-timeline.md): when each initiative runs, one row per initiative, and how to reorder rows by their grip.
|
|
73
74
|
- [Board](board.md): one Kanban for the items of every initiative, its filters, Release, and `pmos board`.
|
|
75
|
+
- [The lifecycle](lifecycle.md): the six stages and two milestones of an initiative, what each makes, which steps each lane uses, and how the step is read from the records.
|
|
74
76
|
- [Integrated work](integrated-work.md): how `pmos verify-work` turns a merged commit into Done, and what "Done · your call · not merged" means.
|
|
75
77
|
- [Report slides](report-slides.md): how the Reports page shows a report as the PM-OS biweekly slides, Present and Print / PDF, and how your notes become the words on the slides.
|
|
76
78
|
- [Reports: dashboards of reports](reports-dashboards.md): the console Reports page, its dashboards at portfolio, board and initiative scope, how to edit one, how to send one as a report, and the Charts tab.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Guide
|
|
3
|
+
title: "The lifecycle: six stages and two milestones"
|
|
4
|
+
description: "The eight steps every initiative goes through, what each step makes, which steps each lane uses, and how the workspace knows where an initiative is."
|
|
5
|
+
timestamp: 2026-10-22
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# The lifecycle: six stages and two milestones
|
|
9
|
+
|
|
10
|
+
An initiative goes through eight steps. Six are stages, which take time. Two are milestones (◆), which are one moment: a sign-off or a decision.
|
|
11
|
+
|
|
12
|
+
| Step | What it makes | Who finishes it |
|
|
13
|
+
| --- | --- | --- |
|
|
14
|
+
| Triage | The BRD: the problem, who has it, the anchor. | You take it on or park it. |
|
|
15
|
+
| Discover | The PRD, with done criteria. | The agent drafts; you keep it. |
|
|
16
|
+
| Plan | The scope, the timeline and the work breakdown. | You press **Commit**. Commit pushes the tickets to Jira. |
|
|
17
|
+
| Prioritize | The place of the initiative on the roadmap. | You rank it in Now, Next or Later. |
|
|
18
|
+
| Build | The features, delivered. | The engineers, in Jira. |
|
|
19
|
+
| ◆ Deliver | The release is shipped. | You sign off. |
|
|
20
|
+
| Monitor | The outcome report. | The agent drafts it from the data. |
|
|
21
|
+
| ◆ Evaluate | The verdict: keep, iterate or stop. | You decide. |
|
|
22
|
+
|
|
23
|
+
The engineers build outside PMOS. The Build step shows their Jira tickets: the engineer each ticket is assigned to, its Jira status, and when Jira was last read. PMOS does not show builder agents, pull requests or CI as the build.
|
|
24
|
+
|
|
25
|
+
## Which steps each lane uses
|
|
26
|
+
|
|
27
|
+
A step that a lane does not use shows as skipped.
|
|
28
|
+
|
|
29
|
+
| Lane | Steps |
|
|
30
|
+
| --- | --- |
|
|
31
|
+
| feature | All eight |
|
|
32
|
+
| discovery | Triage, Discover, Prioritize, Evaluate |
|
|
33
|
+
| chore | Plan, Build, Deliver, Evaluate |
|
|
34
|
+
| incident | Build, Deliver, Monitor, Evaluate |
|
|
35
|
+
| content | Discover, Plan, Build, Deliver |
|
|
36
|
+
| prototype | Triage, Discover, Evaluate |
|
|
37
|
+
|
|
38
|
+
## How the workspace knows the step
|
|
39
|
+
|
|
40
|
+
Nobody sets the step. The workspace reads it from the records:
|
|
41
|
+
|
|
42
|
+
- Triage, Discover, Plan, Build and Evaluate come from the workflow engine (`node scripts/workflow-state.js`): the PRD, the rubric and contract, the build, and the evaluation.
|
|
43
|
+
- An idea or a hypothesis on the initiative also counts for Discover.
|
|
44
|
+
- A decision or a bet on the initiative counts for Prioritize.
|
|
45
|
+
- A release on the initiative counts for Deliver. Monitor needs the build done and a reading of the anchor's metric.
|
|
46
|
+
|
|
47
|
+
A step with no record that can show it reads "no signal yet". It is not shown as done or pending.
|
|
48
|
+
|
|
49
|
+
## Ideate and Strategize
|
|
50
|
+
|
|
51
|
+
Earlier versions had nine stages, with Ideate and Strategize. Ideate is now part of Discover, and Strategize is now part of Prioritize. Nothing stored had to change, because the step is always read from the records. An older answer that still names Ideate or Strategize is read as Discover or Prioritize.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
/* home-shot.js — screenshots of Home (initiative premium-agreed-design) at 1440x900 and 390x844 against the Briefing's fixture model.
|
|
4
|
+
* Not a suite: a look at the page. OUT=<dir> names where the PNGs go (default: the state folder of this run). */
|
|
5
|
+
const fs = require('fs');
|
|
6
|
+
const path = require('path');
|
|
7
|
+
const { spawn } = require('child_process');
|
|
8
|
+
const { findBrowser } = require('./lib/find-browser');
|
|
9
|
+
const T = require('./test-run').configure({ name: 'home-shot' });
|
|
10
|
+
const B = require('./lib/briefing-premium.js');
|
|
11
|
+
const F = require('./fixtures/briefing-premium-facts.js');
|
|
12
|
+
const OUT = process.env.OUT || T.STATE_DIR;
|
|
13
|
+
(async () => {
|
|
14
|
+
const { chromium } = require('playwright-core');
|
|
15
|
+
const srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
|
|
16
|
+
await T.waitForServer(T.BASE);
|
|
17
|
+
const browser = await chromium.launch({ executablePath: findBrowser() });
|
|
18
|
+
const MODEL = B.build(F.facts());
|
|
19
|
+
const errs = [];
|
|
20
|
+
for (const [w, h, name] of [[1440, 900, 'desktop'], [390, 844, 'phone']]) {
|
|
21
|
+
const ctx = await browser.newContext({ viewport: { width: w, height: h } });
|
|
22
|
+
await ctx.route('**/api/briefing-premium?*', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, model: MODEL, as_of: Date.now() }) }));
|
|
23
|
+
await ctx.route('**/api/briefing-premium', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, model: MODEL, as_of: Date.now() }) }));
|
|
24
|
+
const p = await ctx.newPage();
|
|
25
|
+
p.on('pageerror', (e) => errs.push(name + ': ' + e.message));
|
|
26
|
+
p.on('console', (m) => { if (m.type() === 'error') errs.push(name + ' console: ' + m.text()); });
|
|
27
|
+
await p.goto(T.BASE + '/premium.html' + (process.env.Q || ''));
|
|
28
|
+
await p.waitForTimeout(2500);
|
|
29
|
+
fs.mkdirSync(OUT, { recursive: true });
|
|
30
|
+
await p.screenshot({ path: path.join(OUT, 'home-' + name + '.png') });
|
|
31
|
+
if (process.env.SCROLL) { await p.evaluate(() => { const s = document.querySelector('main.stage'); s.scrollTop = 750; window.scrollTo(0, 1500); }); await p.waitForTimeout(300); await p.screenshot({ path: path.join(OUT, 'home-' + name + '-lower.png') }); }
|
|
32
|
+
if (name === 'desktop' && process.env.ROW && await p.$('#rank .rhd')) { await p.click('#rank .rhd'); await p.waitForTimeout(1200); await p.screenshot({ path: path.join(OUT, 'home-desktop-row.png') }); }
|
|
33
|
+
if (name === 'phone' && process.env.ROW && await p.$('#rank .rhd')) { await p.click('#rank .rhd'); await p.waitForTimeout(1200); await p.screenshot({ path: path.join(OUT, 'home-phone-row.png') }); }
|
|
34
|
+
await ctx.close();
|
|
35
|
+
}
|
|
36
|
+
console.log(errs.join('\n') || 'no page errors');
|
|
37
|
+
await browser.close(); srv.kill('SIGKILL'); T.killTmux(); process.exit(0);
|
|
38
|
+
})();
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/* agent-roles.js — the role name a session shows in the chat and the list (initiative premium-agreed-design, Home).
|
|
3
|
+
*
|
|
4
|
+
* roleOf({ skill, origin, first }) → { key, name, initial }
|
|
5
|
+
* ROLES · TABLE
|
|
6
|
+
*
|
|
7
|
+
* The Agreed design names each agent by its role ("Communicator", "Delivery lead") with a two-letter avatar. A session has no role
|
|
8
|
+
* record of its own, so the role is DERIVED from the skill that started it, in this order:
|
|
9
|
+
* 1. skill the skill the session was spawned for (server.js keeps it as modelAsk.skill and persists it)
|
|
10
|
+
* 2. origin a skill named in the origin tag ("schedule:<skill>", "skill:<skill>", "core-doc:<skill>")
|
|
11
|
+
* 3. first the first slash command of the conversation ("/prd …"), which the client reads from the transcript
|
|
12
|
+
* A session that names none of the skills below is "Claude" (initial C): the fallback, never a guess.
|
|
13
|
+
* Pure: the client imports the same table through GET /api/home-desk (roles), so both sides say the same name. */
|
|
14
|
+
|
|
15
|
+
const ROLES = Object.freeze({
|
|
16
|
+
claude: { key: 'claude', name: 'Claude', initial: 'C' },
|
|
17
|
+
spec: { key: 'spec', name: 'Spec writer', initial: 'Sp' },
|
|
18
|
+
eval: { key: 'eval', name: 'Evaluator', initial: 'Ev' },
|
|
19
|
+
strategy: { key: 'strategy', name: 'Strategist', initial: 'St' },
|
|
20
|
+
research: { key: 'research', name: 'Researcher', initial: 'Re' },
|
|
21
|
+
design: { key: 'design', name: 'Designer', initial: 'De' },
|
|
22
|
+
delivery: { key: 'delivery', name: 'Delivery lead', initial: 'Dl' },
|
|
23
|
+
comms: { key: 'comms', name: 'Communicator', initial: 'Co' },
|
|
24
|
+
build: { key: 'build', name: 'Builder', initial: 'Bu' },
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
/** [role key, pattern over a skill name]. The first match wins, so the narrow patterns come first. */
|
|
28
|
+
const TABLE = Object.freeze([
|
|
29
|
+
['eval', /^(eval-rubric|evaluator|explain-run|correction-signal-derive|eval|evals?-.+|.*-eval)$/],
|
|
30
|
+
['spec', /^(prd|requirements-elicitation|write-spec|spec|.*-prd)$/],
|
|
31
|
+
['design', /^(design-brief|design-reconcile|prototype|prototype-grill|design.*)$/],
|
|
32
|
+
['delivery', /^(tracker-handoff|sprint-planning|jira.*|delivery.*|release-plan.*)$/],
|
|
33
|
+
['comms', /^(pm-communication|stakeholder-update|weekly-update|copywriting|release-notes?|roadmap-update|status-report|comms.*)$/],
|
|
34
|
+
['research', /^(discovery|source-to-concept|synthesize-research|research.*|interview.*|ingest-repo)$/],
|
|
35
|
+
['strategy', /^(okr|strategic-brief|pmos-router|metrics-review|health-budgets?|strategy.*|okrs?-.+)$/],
|
|
36
|
+
['build', /^(builder|factory.*|build-.+)$/],
|
|
37
|
+
]);
|
|
38
|
+
|
|
39
|
+
const clean = (s) => String(s == null ? '' : s).trim().toLowerCase().replace(/^\//, '').replace(/\.skill$/, '').replace(/^.*[/:]/, '');
|
|
40
|
+
|
|
41
|
+
/** The role of one skill name, or null. */
|
|
42
|
+
function roleOfSkill(skill) {
|
|
43
|
+
const k = clean(skill);
|
|
44
|
+
if (!k || !/^[a-z0-9][a-z0-9._-]{0,80}$/.test(k)) return null;
|
|
45
|
+
for (const [role, re] of TABLE) if (re.test(k)) return ROLES[role];
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** A skill named in an origin tag: "schedule:okr", "skill:prd", "core-doc:prd:viewer" → the first part that is a known skill. */
|
|
50
|
+
function skillOfOrigin(origin) {
|
|
51
|
+
const parts = String(origin || '').split(':').slice(1);
|
|
52
|
+
for (const p of parts) if (roleOfSkill(p)) return p;
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** The first slash command of a conversation's first user text ("/prd viewer" → "prd"), or null. */
|
|
57
|
+
function slashOf(text) {
|
|
58
|
+
const m = /^\s*\/([a-z0-9][a-z0-9._:-]{0,60})/i.exec(String(text || ''));
|
|
59
|
+
return m ? m[1] : null;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function roleOf({ skill, origin, first } = {}) {
|
|
63
|
+
return roleOfSkill(skill) || roleOfSkill(skillOfOrigin(origin)) || roleOfSkill(slashOf(first)) || ROLES.claude;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** The table as plain data for the page: [{ key, name, initial, patterns: [source] }]. */
|
|
67
|
+
function tableForPage() {
|
|
68
|
+
return Object.values(ROLES).map((r) => ({ ...r, patterns: TABLE.filter(([k]) => k === r.key).map(([, re]) => re.source) }));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
module.exports = { ROLES, TABLE, roleOf, roleOfSkill, skillOfOrigin, slashOf, tableForPage };
|