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.
Files changed (145) hide show
  1. package/package.json +13 -13
  2. package/payload/KIT-VERSION +2 -2
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/payload/state/log.md +1 -1
  7. package/workspace/briefing-premium-adddoc-test.js +101 -52
  8. package/workspace/briefing-premium-board-test.js +252 -128
  9. package/workspace/briefing-premium-calendar-2-test.js +135 -198
  10. package/workspace/briefing-premium-calendar-3-test.js +143 -418
  11. package/workspace/briefing-premium-calendar-test.js +86 -196
  12. package/workspace/briefing-premium-doc-edit-test.js +95 -83
  13. package/workspace/briefing-premium-initiative-test.js +159 -296
  14. package/workspace/briefing-premium-insights-test.js +337 -219
  15. package/workspace/briefing-premium-metrics-test.js +53 -97
  16. package/workspace/briefing-premium-products-test.js +40 -27
  17. package/workspace/briefing-premium-sources-test.js +66 -48
  18. package/workspace/briefing-premium-test.js +150 -647
  19. package/workspace/briefing-premium-work-test.js +88 -283
  20. package/workspace/changelog.json +12 -0
  21. package/workspace/fixtures/board-premium-trail.js +32 -0
  22. package/workspace/fixtures/premium-viewer-fixtures.js +182 -0
  23. package/workspace/guide/briefing-premium.md +3 -1
  24. package/workspace/guide/home.md +47 -0
  25. package/workspace/guide/index.md +1 -0
  26. package/workspace/lib/agent-roles.js +71 -0
  27. package/workspace/lib/board-premium.js +85 -19
  28. package/workspace/lib/board-trail.js +223 -0
  29. package/workspace/lib/home-work-item.js +58 -0
  30. package/workspace/lib/insights-goals.js +196 -0
  31. package/workspace/lib/insights-premium.js +62 -14
  32. package/workspace/lib/insights-records.js +101 -0
  33. package/workspace/lib/jira-tickets.js +1 -1
  34. package/workspace/lib/route-modules.js +4 -0
  35. package/workspace/lib/routes-board-trail.js +33 -0
  36. package/workspace/lib/routes-home-desk.js +176 -0
  37. package/workspace/lib/routes-insights-premium.js +12 -3
  38. package/workspace/lib/routes-insights-records.js +129 -0
  39. package/workspace/lib/routes-notes.js +1 -0
  40. package/workspace/lib/routes-viewer.js +108 -0
  41. package/workspace/lib/transcript-steps.js +123 -0
  42. package/workspace/lib/viewer-meeting.js +205 -0
  43. package/workspace/lib/viewer-report.js +89 -0
  44. package/workspace/package-lock.json +2 -2
  45. package/workspace/package.json +1 -1
  46. package/workspace/premium-board-actions-test.js +85 -75
  47. package/workspace/premium-briefing-depth-test.js +66 -53
  48. package/workspace/premium-chat-attach-test.js +54 -63
  49. package/workspace/premium-chat-chart-tab-test.js +35 -37
  50. package/workspace/premium-chat-context-test.js +19 -18
  51. package/workspace/premium-chat-goal-view-test.js +23 -23
  52. package/workspace/premium-chat-notes-test.js +26 -31
  53. package/workspace/premium-chat-report-tab-test.js +32 -28
  54. package/workspace/premium-chat-term-test.js +16 -16
  55. package/workspace/premium-chat-viewer-test.js +60 -59
  56. package/workspace/premium-core-doc-issue-test.js +50 -43
  57. package/workspace/premium-html-viewer-test.js +14 -17
  58. package/workspace/premium-phone-card-test.js +7 -2
  59. package/workspace/premium-phone-room-test.js +41 -35
  60. package/workspace/premium-report-read-test.js +115 -197
  61. package/workspace/premium-viewer-download-test.js +19 -22
  62. package/workspace/premium-viewer-flicker-test.js +11 -16
  63. package/workspace/premium-viewer-share-test.js +6 -9
  64. package/workspace/premium-viewer-test.js +41 -60
  65. package/workspace/premium-vw-backlog-test.js +53 -33
  66. package/workspace/premium-vw-cal-test.js +82 -128
  67. package/workspace/premium-vw-copy-test.js +17 -33
  68. package/workspace/premium-vw-doc-test.js +11 -10
  69. package/workspace/premium-vw-item-test.js +50 -49
  70. package/workspace/premium-vw-jira-test.js +53 -27
  71. package/workspace/premium-vw-meet-test.js +118 -187
  72. package/workspace/premium-vw-notes-test.js +85 -108
  73. package/workspace/premium-vw-rec-test.js +72 -194
  74. package/workspace/premium-vw-slides-test.js +46 -50
  75. package/workspace/premium-welcome-test.js +3 -2
  76. package/workspace/premium-work-depth-test.js +61 -53
  77. package/workspace/public/pm/bd-acts.js +305 -0
  78. package/workspace/public/pm/bd-span.js +186 -82
  79. package/workspace/public/pm/bd-stages.js +25 -11
  80. package/workspace/public/pm/c3-doc-sheet.js +1 -1
  81. package/workspace/public/pm/c3-md.js +3 -395
  82. package/workspace/public/pm/c3-phone-detail.js +1 -1
  83. package/workspace/public/pm/c3-phone-model.js +3 -68
  84. package/workspace/public/pm/chat-term.js +3 -3
  85. package/workspace/public/pm/cozy-board.css +497 -230
  86. package/workspace/public/pm/cozy-home.css +570 -142
  87. package/workspace/public/pm/cozy-home.js +5 -3
  88. package/workspace/public/pm/cozy-insights.css +296 -167
  89. package/workspace/public/pm/cozy-md.js +396 -0
  90. package/workspace/public/pm/cozy-nav.js +17 -6
  91. package/workspace/public/pm/cozy-placeholder.js +26 -0
  92. package/workspace/public/pm/cozy-viewer.css +3 -3
  93. package/workspace/public/pm/cozy-viewer.js +144 -0
  94. package/workspace/public/pm/cozy-vw.css +485 -0
  95. package/workspace/public/pm/cozy.css +83 -1
  96. package/workspace/public/pm/home-adddoc.js +48 -0
  97. package/workspace/public/pm/home-app.js +905 -0
  98. package/workspace/public/pm/home-around.js +515 -0
  99. package/workspace/public/pm/home-chat.js +459 -0
  100. package/workspace/public/pm/home-data.js +312 -0
  101. package/workspace/public/pm/home-draft.js +68 -0
  102. package/workspace/public/pm/home-more.js +249 -0
  103. package/workspace/public/pm/home-phone-card.js +109 -0
  104. package/workspace/public/pm/home-work.js +519 -0
  105. package/workspace/public/pm/phone-moment.js +69 -0
  106. package/workspace/public/pm/pm-work-view.js +1 -1
  107. package/workspace/public/pm/premium-attach.js +4 -0
  108. package/workspace/public/pm/premium-board.js +423 -394
  109. package/workspace/public/pm/premium-chart-tab.js +110 -62
  110. package/workspace/public/pm/premium-deck.js +3 -3
  111. package/workspace/public/pm/premium-first.js +25 -21
  112. package/workspace/public/pm/premium-insights.js +792 -568
  113. package/workspace/public/pm/premium-meeting.js +61 -549
  114. package/workspace/public/pm/premium-notes.js +1 -1
  115. package/workspace/public/pm/premium-report-frame.css +20 -0
  116. package/workspace/public/pm/premium-report-read.js +509 -480
  117. package/workspace/public/pm/premium-report-tab.js +87 -63
  118. package/workspace/public/pm/premium-shell.js +72 -119
  119. package/workspace/public/pm/premium-viewer.js +22 -1
  120. package/workspace/public/pm/premium-vw-cal.js +187 -48
  121. package/workspace/public/pm/premium-vw-doc.css +6 -0
  122. package/workspace/public/pm/premium-vw-doc.js +40 -2
  123. package/workspace/public/pm/premium-vw-file.js +2 -2
  124. package/workspace/public/pm/premium-vw-meet.js +6 -83
  125. package/workspace/public/pm/premium-vw-mtg.js +731 -0
  126. package/workspace/public/pm/premium-vw-notes.js +56 -69
  127. package/workspace/public/pm/premium-vw-open.js +35 -0
  128. package/workspace/public/pm/premium-vw-page.js +16 -0
  129. package/workspace/public/pm/premium-vw-rec.js +11 -218
  130. package/workspace/public/pm/premium-vw-slides.css +5 -0
  131. package/workspace/public/pm/premium-vw-slides.js +44 -8
  132. package/workspace/public/pm/term-view.js +22 -0
  133. package/workspace/public/premium-board.html +28 -70
  134. package/workspace/public/premium-initiative.html +8 -48
  135. package/workspace/public/premium-insights.html +22 -60
  136. package/workspace/public/premium-viewer.html +20 -0
  137. package/workspace/public/premium.html +16 -107
  138. package/workspace/server.js +18 -3
  139. package/workspace/test-files.json +1 -0
  140. package/workspace/test-lists/home-libs.json +9 -0
  141. package/workspace/test-lists/premium-report-read.json +1 -1
  142. package/workspace/test-lists/premium-vw-agreed.json +9 -0
  143. package/workspace/test-lists/premium-vw-notes.json +1 -1
  144. package/workspace/public/pm/premium-work.js +0 -729
  145. 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&note=<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, H1 to H3): the desk. It replaces the Briefing, My work and Chat; their addresses open it. The list on the left holds the Briefing's and My work's cards as groups;
9
- on a desktop the chat and the Viewer are docked beside it, on a phone the chat opens over the list.
10
- It was the premium Briefing (initiative briefing-premium, slice 1). The default page (premium-default-page); the console is at /console.html.
11
- The rail's other three places open the matching console tab until their slices land. Slice 2 adds the PM's own presses (record a decision, put a row off, return a run, save a note); the page never writes on its own. -->
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
- <div class="sky"><i class="a"></i><i class="b"></i><i class="c"></i></div>
30
- <nav class="rail glass" aria-label="Places">
31
- <i class="ind"></i>
32
- <button class="pl" data-go="brief" aria-current="page"><svg class="i" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M2 12h2M20 12h2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/></svg>Briefing</button>
33
- <button class="pl" data-go="work"><svg class="i" viewBox="0 0 24 24"><rect x="4" y="4" width="16" height="16" rx="3"/><path d="m8.5 12 2.5 2.5 4.5-5"/></svg>My work</button>
34
- <button class="pl pchat" data-go="chat" aria-label="Chat" title="Chat"><span class="orb"><svg class="i" viewBox="0 0 24 24"><path d="M4 5h16v11h-9l-5 4v-4H4z"/><path d="M12 7.6l.8 1.9 1.9.8-1.9.8-.8 1.9-.8-1.9-1.9-.8 1.9-.8z"/></svg><i class="cdot" hidden></i></span>Chat</button>
35
- <button class="pl" data-go="init"><svg class="i" viewBox="0 0 24 24"><path d="M12 3 3 8l9 5 9-5z"/><path d="m3 13 9 5 9-5"/></svg>Board</button>
36
- <button class="pl" data-go="rep"><svg class="i" viewBox="0 0 24 24"><path d="M4 20V10M10 20V4M16 20v-8M22 20H2"/></svg>Insights</button>
37
- </nav>
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
- <noscript>This page needs JavaScript.</noscript>
125
- <script type="module" src="/pm/premium.js"></script>
126
- <script type="module" src="/pm/premium-work.js"></script>
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>
@@ -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') || ''));
@@ -45,6 +45,7 @@
45
45
  "chat-file-locate.test.js",
46
46
  "briefing-premium-work.test.js",
47
47
  "briefing-premium-board.test.js",
48
+ "board-trail.test.js",
48
49
  "briefing-premium-insights.test.js",
49
50
  "briefing-premium-initiative.test.js",
50
51
  "briefing-premium-adddoc.test.js",
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "premium-agreed-design: the server modules Home's chat reads (agent roles, transcript steps, Make a work-item). Pure, node.",
3
+ "modules": [
4
+ "home-libs.test.js"
5
+ ],
6
+ "seconds": {
7
+ "home-libs.test.js": 1
8
+ }
9
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "_comment": "Initiative premium-report-read: a report document read on the premium Insights page (deck, page, Present, download, print) and its look (samples, design versions, This is it), against the real server on a scratch repository with a stub claude for the report-design job.",
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 list in the premium dialog, a note opened beside it, and the note sheet's Before, During and After stages other views plug into.",
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
  ],