create-pmos 0.397.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 +13 -13
- 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/briefing-premium-adddoc-test.js +101 -52
- package/workspace/briefing-premium-board-test.js +252 -128
- package/workspace/briefing-premium-calendar-2-test.js +135 -198
- package/workspace/briefing-premium-calendar-3-test.js +143 -418
- package/workspace/briefing-premium-calendar-test.js +86 -196
- package/workspace/briefing-premium-doc-edit-test.js +95 -83
- package/workspace/briefing-premium-initiative-test.js +159 -296
- package/workspace/briefing-premium-insights-test.js +337 -219
- package/workspace/briefing-premium-metrics-test.js +53 -97
- package/workspace/briefing-premium-products-test.js +40 -27
- package/workspace/briefing-premium-sources-test.js +66 -48
- package/workspace/briefing-premium-test.js +150 -647
- package/workspace/briefing-premium-work-test.js +88 -283
- package/workspace/changelog.json +12 -0
- package/workspace/fixtures/board-premium-trail.js +32 -0
- 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 +1 -0
- package/workspace/lib/agent-roles.js +71 -0
- package/workspace/lib/board-premium.js +85 -19
- package/workspace/lib/board-trail.js +223 -0
- package/workspace/lib/home-work-item.js +58 -0
- package/workspace/lib/insights-goals.js +196 -0
- package/workspace/lib/insights-premium.js +62 -14
- 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-trail.js +33 -0
- package/workspace/lib/routes-home-desk.js +176 -0
- package/workspace/lib/routes-insights-premium.js +12 -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/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-board-actions-test.js +85 -75
- 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 -37
- package/workspace/premium-chat-context-test.js +19 -18
- package/workspace/premium-chat-goal-view-test.js +23 -23
- package/workspace/premium-chat-notes-test.js +26 -31
- package/workspace/premium-chat-report-tab-test.js +32 -28
- package/workspace/premium-chat-term-test.js +16 -16
- package/workspace/premium-chat-viewer-test.js +60 -59
- package/workspace/premium-core-doc-issue-test.js +50 -43
- package/workspace/premium-html-viewer-test.js +14 -17
- package/workspace/premium-phone-card-test.js +7 -2
- package/workspace/premium-phone-room-test.js +41 -35
- 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 -33
- package/workspace/premium-vw-cal-test.js +82 -128
- package/workspace/premium-vw-copy-test.js +17 -33
- package/workspace/premium-vw-doc-test.js +11 -10
- package/workspace/premium-vw-item-test.js +50 -49
- package/workspace/premium-vw-jira-test.js +53 -27
- package/workspace/premium-vw-meet-test.js +118 -187
- package/workspace/premium-vw-notes-test.js +85 -108
- package/workspace/premium-vw-rec-test.js +72 -194
- package/workspace/premium-vw-slides-test.js +46 -50
- package/workspace/premium-welcome-test.js +3 -2
- package/workspace/premium-work-depth-test.js +61 -53
- package/workspace/public/pm/bd-acts.js +305 -0
- package/workspace/public/pm/bd-span.js +186 -82
- package/workspace/public/pm/bd-stages.js +25 -11
- 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 +497 -230
- package/workspace/public/pm/cozy-home.css +570 -142
- package/workspace/public/pm/cozy-home.js +5 -3
- package/workspace/public/pm/cozy-insights.css +296 -167
- package/workspace/public/pm/cozy-md.js +396 -0
- package/workspace/public/pm/cozy-nav.js +17 -6
- package/workspace/public/pm/cozy-placeholder.js +26 -0
- package/workspace/public/pm/cozy-viewer.css +3 -3
- package/workspace/public/pm/cozy-viewer.js +144 -0
- package/workspace/public/pm/cozy-vw.css +485 -0
- package/workspace/public/pm/cozy.css +83 -1
- 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/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 +423 -394
- package/workspace/public/pm/premium-chart-tab.js +110 -62
- package/workspace/public/pm/premium-deck.js +3 -3
- package/workspace/public/pm/premium-first.js +25 -21
- package/workspace/public/pm/premium-insights.js +792 -568
- 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 +72 -119
- package/workspace/public/pm/premium-viewer.js +22 -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-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 -218
- 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 +28 -70
- package/workspace/public/premium-initiative.html +8 -48
- package/workspace/public/premium-insights.html +22 -60
- package/workspace/public/premium-viewer.html +20 -0
- package/workspace/public/premium.html +16 -107
- package/workspace/server.js +18 -3
- package/workspace/test-files.json +1 -0
- package/workspace/test-lists/home-libs.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/public/pm/premium-work.js +0 -729
- package/workspace/public/pm/premium.js +0 -1146
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="pmos-nonce" content="" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
|
7
|
+
<title>PMOS · Viewer</title>
|
|
8
|
+
<!-- The Viewer on its own page (initiative premium-agreed-design, area viewer). It is the address "Open in a new tab" gives an item:
|
|
9
|
+
?open=meeting¬e=<id> or &event=<id>&date=YYYY-MM-DD, ?open=calendar, ?open=notes, ?open=report&path=reports/<cadence>/<date>.md,
|
|
10
|
+
each with an optional &ws=. The item opens in the same Viewer card Home shows (cozy-viewer.js), here as the whole page. -->
|
|
11
|
+
<link rel="preload" href="/vendor/nunito-var.woff2" as="font" type="font/woff2" crossorigin />
|
|
12
|
+
<link rel="stylesheet" href="/pm/cozy.css" />
|
|
13
|
+
<link rel="stylesheet" href="/pm/cozy-vw.css" />
|
|
14
|
+
</head>
|
|
15
|
+
<body class="cz vz-solo">
|
|
16
|
+
<main class="vz-host" data-cz-viewer-host></main>
|
|
17
|
+
<p class="vz-gone" id="vzGone" hidden>Nothing is open. <a href="/premium.html">Go to Home</a></p>
|
|
18
|
+
<script type="module" src="/pm/premium-vw-page.js"></script>
|
|
19
|
+
</body>
|
|
20
|
+
</html>
|
|
@@ -5,12 +5,10 @@
|
|
|
5
5
|
<meta name="pmos-nonce" content="" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
|
7
7
|
<title>PMOS · Home</title>
|
|
8
|
-
<!-- Home (initiative premium-agreed-design,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<!-- Add to Home Screen: this is the default page, so it carries what the console carried. The manifest is fetched with credentials because over the
|
|
13
|
-
tailnet every request needs the session cookie. -->
|
|
8
|
+
<!-- Home in the Agreed design (initiative premium-agreed-design, Home; mockup Main.dc.html place="work"). One desk: the list on the left, the chat
|
|
9
|
+
in the middle and the Viewer on the right. An initiative is a layout of this page (?ini=<id>): its card sits at the top of the list. On a phone
|
|
10
|
+
the chat is the page, and "N need you" in the top bar opens the list as a sheet. It replaces the Briefing, My work, Chat and the initiative
|
|
11
|
+
page; their addresses open it. The default page; the old console stays at /console.html and nothing here links to it. -->
|
|
14
12
|
<link rel="manifest" href="/manifest.webmanifest" crossorigin="use-credentials" />
|
|
15
13
|
<meta name="theme-color" content="#090b0c" />
|
|
16
14
|
<meta name="mobile-web-app-capable" content="yes" />
|
|
@@ -18,112 +16,23 @@
|
|
|
18
16
|
<meta name="apple-mobile-web-app-title" content="PMOS" />
|
|
19
17
|
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
|
20
18
|
<link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" />
|
|
21
|
-
<link rel="preload" href="/vendor/geist-var.woff2" as="font" type="font/woff2" crossorigin />
|
|
22
|
-
<link rel="stylesheet" href="/pm/premium.css" />
|
|
23
|
-
<link rel="stylesheet" href="/pm/premium-wide.css" />
|
|
24
19
|
<link rel="preload" href="/vendor/nunito-var.woff2" as="font" type="font/woff2" crossorigin />
|
|
25
20
|
<link rel="stylesheet" href="/pm/cozy.css" />
|
|
26
21
|
<link rel="stylesheet" href="/pm/cozy-home.css" />
|
|
27
22
|
</head>
|
|
28
23
|
<body class="cz cz-home">
|
|
29
|
-
<
|
|
30
|
-
<
|
|
31
|
-
<
|
|
32
|
-
<button class="
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
<
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<div class="dock glass" id="dock" inert><span class="nm">Briefing</span><span class="sep"></span><span class="cnt"><b id="dN">·</b><span id="dLab">for you</span></span><span class="sep hide-s"></span><span class="pl2 hide-s" id="dNext"></span><span class="sp"></span><button class="round" id="theme2" aria-label="Switch light or dark" style="width:44px;height:44px"><svg class="i" viewBox="0 0 24 24"><path d="M20 14.5A8 8 0 0 1 9.5 4 8 8 0 1 0 20 14.5z"/></svg></button></div>
|
|
40
|
-
<div class="veil" id="veil"></div>
|
|
41
|
-
<div class="dlg" id="dlg" role="dialog" aria-modal="true" aria-labelledby="dTitle" tabindex="-1" data-mode="split" inert>
|
|
42
|
-
<div class="grab"></div>
|
|
43
|
-
<div class="dhead"><div class="dht"><p class="label" id="dEye"></p><h2 id="dTitle"></h2><p class="dsub" id="dSub"></p></div>
|
|
44
|
-
<div class="dtools"><button class="round dx2" id="dPane" aria-label="Hide the conversation" aria-pressed="true" title="Hide the conversation"><svg class="i" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="3"/><path d="M9 4v16"/></svg></button><button class="round dx2" id="dExpand" aria-label="Full screen" aria-pressed="false" title="Full screen"><svg class="i" viewBox="0 0 24 24"><path id="dExpP" d="M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7"/></svg></button><button class="round dx2" id="dClose" aria-label="Close"><svg class="i" viewBox="0 0 24 24"><path d="M6 6l12 12M18 6 6 18"/></svg></button></div></div>
|
|
45
|
-
<div class="dtabs" id="dTabs"><div class="seg" role="group" aria-label="Sections"><i class="pill"></i><button data-t="out" aria-pressed="true">Detail</button><button data-t="chat" aria-pressed="false">Conversation</button></div></div>
|
|
46
|
-
<div class="dgrid" id="dGrid" data-tab="out"><section class="pane p-work" id="dBody" aria-label="Conversation"></section>
|
|
47
|
-
<section class="pane p-out" id="dOut" aria-label="Detail"><div class="otop"><span class="ol" id="oLab">Detail</span></div><div class="obody" id="oMain"></div><div class="tabhint"><span>The action is on the Conversation tab.</span><button type="button" id="tabGo">Open it</button></div></section></div>
|
|
48
|
-
</div>
|
|
49
|
-
<div class="toast glass" id="toast" role="status"></div>
|
|
50
|
-
<main class="stage" id="stage" aria-label="Home">
|
|
51
|
-
<header class="top cz-hhead">
|
|
52
|
-
<h1 class="cz-htitle">Home</h1>
|
|
53
|
-
<button type="button" class="cz-ib" id="hChat" aria-label="Open your chat" title="Open your chat"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 5h16v11h-9l-5 4v-4H4z"/></svg></button>
|
|
54
|
-
<div class="tools tools-top"><span class="vh" id="snap">Reading the repository</span>
|
|
55
|
-
<span id="pkPark" hidden><span class="pkw" id="pkw" hidden><button class="fchip" id="pick" aria-haspopup="menu" aria-expanded="false" aria-controls="pickMenu">Products<em id="pickN"></em></button><div class="crmenu pkmenu" id="pickMenu" role="menu" hidden></div></span></span></div>
|
|
56
|
-
</header>
|
|
57
|
-
<section class="hero cz-sum" aria-label="Summary">
|
|
58
|
-
<p class="cz-sumh" id="hSum" aria-live="polite">Reading what needs you.</p>
|
|
59
|
-
<p class="brief" id="brief" aria-live="polite"></p>
|
|
60
|
-
<p class="date" id="date"></p>
|
|
61
|
-
<p class="rfline" id="rfLine" role="status" hidden></p>
|
|
62
|
-
</section>
|
|
63
|
-
<div class="cz-meet" id="hMeet" role="group" aria-label="Your next meeting" hidden></div>
|
|
64
|
-
<div class="cols2">
|
|
65
|
-
<div>
|
|
66
|
-
<section class="card rise" id="movesCard" style="--d:6" aria-labelledby="hMoves">
|
|
67
|
-
<div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><path d="M5 12l4.5 4.5L19 7"/></svg></span><h2 id="hMoves">Needs you</h2><small id="movesCap"></small></div>
|
|
68
|
-
<div class="mprog" id="mprog" role="progressbar" aria-label="Done today" aria-valuemin="0" hidden><b></b></div>
|
|
69
|
-
<div class="rank" id="rank"></div>
|
|
70
|
-
<div class="calm" id="calm" hidden><i><svg class="i" viewBox="0 0 24 24"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></i><div><b>Nothing needs you right now.</b><small id="calmNext"></small></div></div>
|
|
71
|
-
<p class="note" id="order" style="margin-top:14px"></p>
|
|
72
|
-
<p class="note" id="putoff" hidden></p>
|
|
73
|
-
</section>
|
|
74
|
-
</div>
|
|
75
|
-
<div class="cz-hside">
|
|
76
|
-
<div id="prodSlot"></div>
|
|
77
|
-
<section class="cz-grp" id="initGrp" aria-labelledby="hInit">
|
|
78
|
-
<div class="ch"><h2 id="hInit">Initiatives</h2><small id="initCap">Reading</small></div>
|
|
79
|
-
<div id="initBody" class="cz-rows"></div>
|
|
80
|
-
</section>
|
|
81
|
-
<section class="cz-grp" id="sessGrp" aria-labelledby="hSess">
|
|
82
|
-
<div class="ch"><h2 id="hSess">Sessions</h2><small id="sessCap"></small></div>
|
|
83
|
-
<div id="hSessions"></div>
|
|
84
|
-
</section>
|
|
85
|
-
|
|
86
|
-
</div>
|
|
87
|
-
<section class="cz-grp cz-work" id="workGrp" aria-labelledby="hQueue">
|
|
88
|
-
<form class="cap glass rise" style="--d:3" id="cap" autocomplete="off">
|
|
89
|
-
<svg class="i" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"/></svg>
|
|
90
|
-
<input id="capIn" placeholder="Add anything to your list" aria-label="Add an item to your list" maxlength="300">
|
|
91
|
-
<button class="capb" type="submit" aria-label="Add it to your list" title="Add it to your list"><svg class="i" viewBox="0 0 24 24"><path d="M5 12h14M13 6l6 6-6 6"/></svg></button>
|
|
92
|
-
</form>
|
|
93
|
-
<div class="tx rise" style="--d:4" id="tx"><span class="hint" id="capHint" aria-live="polite">One line. The date and priority are read from it, for example "Reply to Rina about SSO by Friday".</span></div>
|
|
94
|
-
<section class="card rise" style="--d:5" id="queue" aria-labelledby="hQueue">
|
|
95
|
-
<div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><rect x="4" y="4" width="16" height="16" rx="3"/><path d="M8 9h8M8 13h8M8 17h5"/></svg></span><h2 id="hQueue">Your list</h2><small id="qCap"></small><span id="xFocus" class="xfo" role="group" aria-label="Focus today"></span></div>
|
|
96
|
-
<div class="qbar"><div class="qtabs" id="qTabs" role="tablist" aria-label="Work queue"></div><button type="button" class="qmore" id="qMore" aria-haspopup="true" aria-expanded="false" aria-controls="qMenu">More<svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="m7 10 5 5 5-5"/></svg></button><div class="qmenu glass" id="qMenu" role="tablist" aria-label="More of the Work queue" hidden></div></div>
|
|
97
|
-
<div class="tgrid" id="qBody" role="tabpanel" aria-labelledby="hQueue"></div>
|
|
98
|
-
<p class="note" id="qNote" style="margin-top:14px"></p>
|
|
99
|
-
</section>
|
|
100
|
-
<section class="card rise" style="--d:8" id="waitCard" aria-labelledby="hWait">
|
|
101
|
-
<div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg></span><h2 id="hWait">Waiting on others</h2><small id="waitCap"></small></div>
|
|
102
|
-
<div id="waitBody"></div>
|
|
103
|
-
</section>
|
|
104
|
-
<section class="card rise" style="--d:9" id="frCard" aria-labelledby="hFr">
|
|
105
|
-
<div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><rect x="4" y="5" width="16" height="15" rx="3"/><path d="m8.5 13 2.5 2.5 4.5-5"/></svg></span><h2 id="hFr">Weekly review</h2><small id="frCap"></small></div>
|
|
106
|
-
<div id="frBody"></div>
|
|
107
|
-
</section>
|
|
108
|
-
<section class="card rise" style="--d:9" id="revCard" aria-labelledby="hRev" hidden>
|
|
109
|
-
<div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><path d="M4 12a8 8 0 0 1 14-5.3M20 12a8 8 0 0 1-14 5.3"/><path d="M18 3v4h-4M6 21v-4h4"/></svg></span><h2 id="hRev">Untouched</h2><small id="revCap"></small></div>
|
|
110
|
-
<div class="revc"><p id="revTxt"></p><button id="revBtn" type="button">Look at them</button></div>
|
|
111
|
-
</section>
|
|
112
|
-
</section>
|
|
113
|
-
<section class="card rise" id="todayCard" style="--d:7" aria-labelledby="hToday">
|
|
114
|
-
<div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg></span><h2 id="hToday">Today</h2><small id="todayCap"></small><div class="chm" id="calM"><button type="button" class="chmore" id="calMore" aria-haspopup="true" aria-expanded="false" aria-controls="calMenu" aria-label="Calendar options" title="Notes, sources and the full calendar"><svg class="i" viewBox="0 0 24 24"><circle cx="5" cy="12" r="1.6"/><circle cx="12" cy="12" r="1.6"/><circle cx="19" cy="12" r="1.6"/></svg></button><div class="chmenu" id="calMenu" hidden><button class="fbtn" data-opts="todayOpts" aria-expanded="false" aria-controls="todayOpts" aria-label="Filter sources"><svg class="i" viewBox="0 0 24 24"><path d="M4 7h9M17 7h3M4 17h3M11 17h9"/><circle cx="15" cy="7" r="2"/><circle cx="9" cy="17" r="2"/></svg><span>Filter sources</span></button></div></div></div>
|
|
115
|
-
<div id="wkStrip"></div>
|
|
116
|
-
<div class="prep" id="prep" hidden></div>
|
|
117
|
-
<div class="opts" id="todayOpts" inert><div><div class="chips" id="srcChips" role="group" aria-label="Sources"></div></div></div>
|
|
118
|
-
<div class="tl" id="tl" role="group" aria-label="Today. Use the up and down arrow keys to move between rows."></div>
|
|
119
|
-
</section>
|
|
120
|
-
</div>
|
|
121
|
-
<div class="footi"><button type="button" class="infob wide" aria-controls="footFold" aria-expanded="false" aria-label="About this page" title="About this page"><i aria-hidden="true">i</i><span>About this page</span></button></div>
|
|
122
|
-
<div class="ifold" id="footFold" hidden><p class="foot" id="foot">This page reads the repository's records. It writes only when you press a button that says it records: a decision goes to pm-decisions.md, a returned run to the corrections ledger, a put-off row and a note to the workspace's state folder. It keeps its last answer in the workspace's state folder, so a reload is quick. Counts come from derived state at the time shown above.</p><p class="foot" id="footWork">This page reads your list, the same one the Work page reads. It writes only when you press a button that says what it does, and each press uses the Work page's own route. Starting an agent from a list is not built here. The Kept and Done tabs show only your own items. Answers, ideas and reports an agent files on its own, effort figures and review timing need records PMOS does not hold yet. Jira and Slack items appear only when an agent session has read them.</p></div>
|
|
24
|
+
<header class="hm-top" id="hmTop">
|
|
25
|
+
<div class="hm-top-t"><b id="hmTopTitle">Home</b><span id="hmTopSub"></span></div>
|
|
26
|
+
<button type="button" class="hm-needs" id="hmNeeds" aria-controls="hmList" aria-expanded="false"><i aria-hidden="true"></i><span id="hmNeedsN">Reading</span></button>
|
|
27
|
+
<button type="button" class="hm-ib" id="hmMoreP" aria-haspopup="menu" aria-label="More" title="More"><svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="6" cy="12" r="1.4"/><circle cx="12" cy="12" r="1.4"/><circle cx="18" cy="12" r="1.4"/></svg></button>
|
|
28
|
+
</header>
|
|
29
|
+
<main class="hm-desk" id="hmDesk">
|
|
30
|
+
<aside class="hm-list" id="hmList" aria-label="Sessions"></aside>
|
|
31
|
+
<section class="hm-chat" id="hmChat" aria-label="Conversation"></section>
|
|
32
|
+
<div class="hm-vw" data-cz-viewer-host></div>
|
|
123
33
|
</main>
|
|
124
|
-
<
|
|
125
|
-
<
|
|
126
|
-
<script type="module" src="/pm/
|
|
127
|
-
<script type="module" src="/pm/premium-chat.js"></script>
|
|
34
|
+
<div class="hm-menu" id="hmMenu" role="menu" aria-label="More" hidden></div>
|
|
35
|
+
<div class="hm-toast" id="toast" role="status" aria-live="polite"></div>
|
|
36
|
+
<script type="module" src="/pm/home-app.js"></script>
|
|
128
37
|
</body>
|
|
129
38
|
</html>
|
package/workspace/server.js
CHANGED
|
@@ -3208,6 +3208,9 @@ function sessionConversation(s) {
|
|
|
3208
3208
|
// held back shows on the next poll even when the file has not moved since
|
|
3209
3209
|
const h = transcriptHarness(s) || {};
|
|
3210
3210
|
const out = { ...c, turn: h.turn || null, openCall: h.openCall ? h.openCall.verb : null, model: h.model || null };
|
|
3211
|
+
// premium-agreed-design (Home): the agent's own step list (TodoWrite) and the open call as a change, re-read only when the file moved
|
|
3212
|
+
if (!(s.stepsRead && s.stepsStamp === stamp)) { s.stepsRead = require('./lib/transcript-steps.js').readSteps(found.file, scrub, s.root); s.stepsStamp = stamp; }
|
|
3213
|
+
out.steps = s.stepsRead.steps; out.stepsAt = s.stepsRead.stepsAt; out.change = out.turn === 'tool' ? s.stepsRead.change : null;
|
|
3211
3214
|
// the prompt is on the screen, not in the transcript: read it only while a tool call is open
|
|
3212
3215
|
const ask = out.turn === 'tool' ? paneAsk(s) : null;
|
|
3213
3216
|
return ask ? { ...out, ask } : out;
|
|
@@ -3405,6 +3408,9 @@ function sessionList() {
|
|
|
3405
3408
|
initiative: 'initiative' in s ? (s.initiative == null ? null : s.initiative) : null,
|
|
3406
3409
|
attributed_by: 'initiative' in s ? (s.attributedBy || null) : null,
|
|
3407
3410
|
work_type: s.workType || null,
|
|
3411
|
+
// premium-agreed-design (Home): the skill that started the session, and the role name the chat shows for it (lib/agent-roles.js; "Claude" when none)
|
|
3412
|
+
skill: (s.modelAsk && s.modelAsk.skill) || null,
|
|
3413
|
+
role: require('./lib/agent-roles.js').roleOf({ skill: s.modelAsk && s.modelAsk.skill, origin: s.origin }),
|
|
3408
3414
|
profile_id: 'profile' in s ? (s.profile == null ? null : s.profile) : null,
|
|
3409
3415
|
profile_line: profilesLib.profileLine(
|
|
3410
3416
|
!('profile' in s) ? undefined
|
|
@@ -6416,16 +6422,24 @@ async function handleRequest(req, res) {
|
|
|
6416
6422
|
res.writeHead(302, { Location: '/premium.html' + url.search, 'Cache-Control': 'no-store' });
|
|
6417
6423
|
return res.end();
|
|
6418
6424
|
}
|
|
6425
|
+
// premium-agreed-design (Home): the initiative is a layout inside Home. ?id=<x> becomes ?ini=<x>; the other query keys go along.
|
|
6426
|
+
if (p === '/premium-initiative' || p === '/premium-initiative.html') {
|
|
6427
|
+
const q = new URLSearchParams(url.search);
|
|
6428
|
+
if (q.has('id')) { q.set('ini', q.get('id')); q.delete('id'); }
|
|
6429
|
+
const s = q.toString();
|
|
6430
|
+
res.writeHead(302, { Location: '/premium.html' + (s ? '?' + s : ''), 'Cache-Control': 'no-store' });
|
|
6431
|
+
return res.end();
|
|
6432
|
+
}
|
|
6419
6433
|
if (p === '/c3.html' || p === '/c3') {
|
|
6420
6434
|
res.writeHead(302, { Location: (url.search ? '/console.html' : '/premium.html') + url.search, 'Cache-Control': 'no-store' });
|
|
6421
6435
|
return res.end();
|
|
6422
6436
|
}
|
|
6423
|
-
if (p === '/' || p === '/index.html' || p === '/console' || p === '/console.html' || p === '/classic' || p === '/classic.html' || p === '/welcome' || p === '/welcome.html' || p === '/premium' || p === '/premium.html' || p === '/premium-work' || p === '/premium-work.html' || p === '/premium-board' || p === '/premium-board.html' || p === '/premium-initiative' || p === '/premium-initiative.html' || p === '/premium-insights' || p === '/premium-insights.html' || p === '/premium-welcome' || p === '/premium-welcome.html' || p === '/premium-chat' || p === '/premium-chat.html') {
|
|
6437
|
+
if (p === '/' || p === '/index.html' || p === '/console' || p === '/console.html' || p === '/classic' || p === '/classic.html' || p === '/welcome' || p === '/welcome.html' || p === '/premium' || p === '/premium.html' || p === '/premium-work' || p === '/premium-work.html' || p === '/premium-board' || p === '/premium-board.html' || p === '/premium-initiative' || p === '/premium-initiative.html' || p === '/premium-insights' || p === '/premium-insights.html' || p === '/premium-welcome' || p === '/premium-welcome.html' || p === '/premium-chat' || p === '/premium-chat.html' || p === '/premium-viewer' || p === '/premium-viewer.html') {
|
|
6424
6438
|
// pm-os-absorb Run 2 (R25, X11): the per-launch nonce goes into the base meta line, nowhere else. no-store, so a
|
|
6425
6439
|
// restarted server never answers a press from a page that holds the previous launch's value. The page code is
|
|
6426
6440
|
// referenced under this launch's build prefix.
|
|
6427
6441
|
const n = pmGuard.launchNonce();
|
|
6428
|
-
return fs.readFile(path.join(PUB, (p === '/classic' || p === '/classic.html') ? 'index.html' : (p === '/welcome' || p === '/welcome.html') ? 'welcome.html' : (p === '/premium' || p === '/premium.html') ? 'premium.html' : (p === '/premium-work' || p === '/premium-work.html') ? 'premium-work.html' : (p === '/premium-board' || p === '/premium-board.html') ? 'premium-board.html' : (p === '/premium-initiative' || p === '/premium-initiative.html') ? 'premium-initiative.html' : (p === '/premium-insights' || p === '/premium-insights.html') ? 'premium-insights.html' : (p === '/premium-welcome' || p === '/premium-welcome.html') ? 'premium-welcome.html' : (p === '/premium-chat' || p === '/premium-chat.html') ? 'premium-chat.html' : (p === '/console' || p === '/console.html') ? 'c3.html' : 'premium.html'), 'utf8', (err, html) => {
|
|
6442
|
+
return fs.readFile(path.join(PUB, (p === '/classic' || p === '/classic.html') ? 'index.html' : (p === '/welcome' || p === '/welcome.html') ? 'welcome.html' : (p === '/premium' || p === '/premium.html') ? 'premium.html' : (p === '/premium-work' || p === '/premium-work.html') ? 'premium-work.html' : (p === '/premium-board' || p === '/premium-board.html') ? 'premium-board.html' : (p === '/premium-initiative' || p === '/premium-initiative.html') ? 'premium-initiative.html' : (p === '/premium-insights' || p === '/premium-insights.html') ? 'premium-insights.html' : (p === '/premium-welcome' || p === '/premium-welcome.html') ? 'premium-welcome.html' : (p === '/premium-chat' || p === '/premium-chat.html') ? 'premium-chat.html' : (p === '/premium-viewer' || p === '/premium-viewer.html') ? 'premium-viewer.html' : (p === '/console' || p === '/console.html') ? 'c3.html' : 'premium.html'), 'utf8', (err, html) => {
|
|
6429
6443
|
if (err) { res.writeHead(404); res.end('not found'); return; }
|
|
6430
6444
|
let out = withBuild(html);
|
|
6431
6445
|
if (n) out = out.replace('<meta name="' + pmGuard.NONCE_META + '" content="" />', '<meta name="' + pmGuard.NONCE_META + '" content="' + n + '" />');
|
|
@@ -7257,7 +7271,8 @@ async function handleRequest(req, res) {
|
|
|
7257
7271
|
}
|
|
7258
7272
|
const c = sessionConversation(sess);
|
|
7259
7273
|
return json(res, { ok: true, id: sess.id, agent: sess.agent, messages: c.messages, state: c.state || null, missing: c.missing || null, turn: c.turn || null,
|
|
7260
|
-
openCall: c.openCall || null, model: c.model || null, ask: c.ask || null, stamp: c.stamp || null
|
|
7274
|
+
openCall: c.openCall || null, model: c.model || null, ask: c.ask || null, stamp: c.stamp || null,
|
|
7275
|
+
steps: c.steps || null, stepsAt: c.stepsAt || null, change: c.change || null });
|
|
7261
7276
|
}
|
|
7262
7277
|
if (p === '/api/sessions/transcript' && req.method === 'GET') {
|
|
7263
7278
|
const sess = sessions.get(String(url.searchParams.get('id') || ''));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_comment": "Initiative premium-report-read: a report
|
|
2
|
+
"_comment": "Initiative premium-report-read, re-pointed for premium-agreed-design (area viewer): a report cycle read in the Viewer card (/premium-viewer.html?open=report): deck, page, Present, download, print, edit, issued, the writes, floors, issue and archive, against the real server on a scratch repository.",
|
|
3
3
|
"seconds": {
|
|
4
4
|
"premium-report-read-test.js": 60
|
|
5
5
|
},
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Initiative premium-agreed-design, area viewer: the meeting (prep, live, after), Calendar | Notes and the report panel in the czViewer card, the pure halves and the file-mode records behind them (lib/viewer-meeting.js, lib/viewer-report.js, lib/routes-viewer.js).",
|
|
3
|
+
"modules": [
|
|
4
|
+
"premium-vw-agreed.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"premium-vw-agreed.test.js": 2
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_comment": "Initiative premium-viewer, R9: the Notes
|
|
2
|
+
"_comment": "Initiative premium-viewer, R9; re-pointed for premium-agreed-design (area viewer): the Notes side of Calendar | Notes in the Viewer card (/premium-viewer.html?open=notes), grouped by initiative, a series as one row, search, a note opened in the card and Change what it is about.",
|
|
3
3
|
"modules": [
|
|
4
4
|
"premium-vw-notes.test.js"
|
|
5
5
|
],
|