create-pmos 0.399.0 → 0.401.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 (425) hide show
  1. package/package.json +30 -25
  2. package/payload/KIT-VERSION +1 -1
  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/workspace/briefing-premium-adddoc-test.js +2 -2
  7. package/workspace/briefing-premium-board-test.js +3 -3
  8. package/workspace/briefing-premium-doc-edit-test.js +2 -8
  9. package/workspace/briefing-premium-sources-test.js +2 -0
  10. package/workspace/briefing-premium-test.js +6 -2
  11. package/workspace/briefing-premium-work-test.js +9 -4
  12. package/workspace/c3-capture-test.js +0 -17
  13. package/workspace/changelog.json +29 -0
  14. package/workspace/guide/briefing-premium.md +2 -2
  15. package/workspace/guide/home.md +24 -3
  16. package/workspace/guide/layout.md +2 -2
  17. package/workspace/guide/notes.md +2 -2
  18. package/workspace/guide/phone-companion.md +1 -1
  19. package/workspace/lib/core-docs.js +2 -2
  20. package/workspace/lib/route-modules.js +1 -9
  21. package/workspace/lib/routes-phone-day.js +18 -9
  22. package/workspace/lib/routes-slash.js +95 -0
  23. package/workspace/package-lock.json +2 -2
  24. package/workspace/package.json +1 -2
  25. package/workspace/premium-chat-goal-view-test.js +1 -1
  26. package/workspace/premium-chat-term-test.js +0 -10
  27. package/workspace/premium-menu-rows-test.js +1 -1
  28. package/workspace/premium-phone-card-test.js +8 -3
  29. package/workspace/premium-vw-cal-test.js +4 -1
  30. package/workspace/premium-vw-doc-test.js +1 -8
  31. package/workspace/premium-work-depth-test.js +2 -3
  32. package/workspace/public/capture.html +23 -0
  33. package/workspace/public/pm/c3-base.js +47 -0
  34. package/workspace/public/pm/c3-capture.js +1 -1
  35. package/workspace/public/pm/c3-ini-ui.js +1 -1
  36. package/workspace/public/pm/c3-sheet.js +1 -1
  37. package/workspace/public/pm/c3-toast.js +1 -1
  38. package/workspace/public/pm/console3.css +3 -0
  39. package/workspace/public/pm/cozy-home.css +21 -6
  40. package/workspace/public/pm/cozy-today.css +4 -3
  41. package/workspace/public/pm/cozy-viewer.js +4 -2
  42. package/workspace/public/pm/cozy.css +9 -0
  43. package/workspace/public/pm/goal-chat.js +5 -1
  44. package/workspace/public/pm/home-app.js +65 -33
  45. package/workspace/public/pm/home-chat.js +34 -29
  46. package/workspace/public/pm/home-data.js +10 -2
  47. package/workspace/public/pm/home-dictate.js +7 -4
  48. package/workspace/public/pm/home-ini.js +13 -3
  49. package/workspace/public/pm/home-list.js +18 -10
  50. package/workspace/public/pm/home-more.js +2 -2
  51. package/workspace/public/pm/home-phone-card.js +9 -4
  52. package/workspace/public/pm/home-review.js +2 -3
  53. package/workspace/public/pm/home-today.js +11 -8
  54. package/workspace/public/pm/home-work.js +13 -8
  55. package/workspace/public/pm/note-dock.js +1 -2
  56. package/workspace/public/pm/notes-links.js +1 -2
  57. package/workspace/public/pm/notes-task.js +3 -4
  58. package/workspace/public/pm/premium-board.js +1 -1
  59. package/workspace/public/pm/premium-initiative-head.js +3 -3
  60. package/workspace/public/pm/premium-vw-doc.css +20 -2
  61. package/workspace/public/pm/premium-vw-doc.js +22 -7
  62. package/workspace/public/pm/premium-vw-item.css +6 -0
  63. package/workspace/public/pm/view-notes.js +2 -2
  64. package/workspace/replaced-tests.json +435 -0
  65. package/workspace/run-tests.js +323 -28
  66. package/workspace/server.js +15 -10
  67. package/workspace/test-files.json +4 -140
  68. package/workspace/test-lists/base.json +1 -2
  69. package/workspace/test-lists/c3-desktop-light-load.json +1 -2
  70. package/workspace/test-lists/c3-initiative-boards.json +1 -2
  71. package/workspace/test-lists/c3-meeting-focus.json +2 -12
  72. package/workspace/test-lists/c3-work-agent.json +1 -2
  73. package/workspace/test-lists/calendar-tidy-up.json +1 -2
  74. package/workspace/test-lists/console3-reports.json +1 -2
  75. package/workspace/test-lists/docs-three-way-sync.json +1 -2
  76. package/workspace/test-lists/extension-capture.json +5 -0
  77. package/workspace/test-lists/jira-wbs.json +1 -2
  78. package/workspace/test-lists/legacy-cleanup-a.json +9 -0
  79. package/workspace/test-lists/meeting-material.json +1 -2
  80. package/workspace/test-lists/meeting-notes.json +2 -36
  81. package/workspace/test-lists/meeting-replay.json +1 -2
  82. package/workspace/test-lists/mm-capture.json +2 -12
  83. package/workspace/test-lists/my-work.json +2 -10
  84. package/workspace/test-lists/onboarding-firstrun.json +2 -12
  85. package/workspace/test-lists/people-directory.json +1 -2
  86. package/workspace/test-lists/run2-a.json +1 -2
  87. package/workspace/test-lists/run2-d.json +2 -19
  88. package/workspace/test-lists/run3-b.json +1 -2
  89. package/workspace/test-lists/run3-c.json +2 -12
  90. package/workspace/test-lists/run4-b.json +1 -2
  91. package/workspace/test-lists/run4-d.json +1 -5
  92. package/workspace/test-lists/run5-c.json +1 -11
  93. package/workspace/test-lists/run6.json +1 -5
  94. package/workspace/test-lists/workspace-launch-flags.json +2 -12
  95. package/workspace/test-lists/workspace-profile-detection.json +2 -10
  96. package/workspace/test-timings.json +242 -123
  97. package/workspace/c3-briefing-test.js +0 -136
  98. package/workspace/c3-core-docs-test.js +0 -170
  99. package/workspace/c3-driver-fixture.js +0 -64
  100. package/workspace/c3-driver-test.js +0 -169
  101. package/workspace/c3-foundation-test.js +0 -163
  102. package/workspace/c3-ib-items-test.js +0 -114
  103. package/workspace/c3-ib-more-test.js +0 -146
  104. package/workspace/c3-ib-triage-backlog-test.js +0 -128
  105. package/workspace/c3-ini-harness.js +0 -66
  106. package/workspace/c3-ini-life-test.js +0 -167
  107. package/workspace/c3-initiatives-test.js +0 -186
  108. package/workspace/c3-light-load-test.js +0 -112
  109. package/workspace/c3-one-home-test.js +0 -149
  110. package/workspace/c3-phone-test.js +0 -289
  111. package/workspace/c3-quiet-test.js +0 -157
  112. package/workspace/c3-report-design-real-test.js +0 -264
  113. package/workspace/c3-report-design-test.js +0 -442
  114. package/workspace/c3-report-setup-test.js +0 -192
  115. package/workspace/c3-report-structure-real-test.js +0 -248
  116. package/workspace/c3-report-structure-test.js +0 -397
  117. package/workspace/c3-reports-test.js +0 -288
  118. package/workspace/c3-scan-test.js +0 -517
  119. package/workspace/c3-sessions-panel-test.js +0 -365
  120. package/workspace/c3-settings-test.js +0 -204
  121. package/workspace/c3-updates-test.js +0 -131
  122. package/workspace/c3-work-test.js +0 -260
  123. package/workspace/cut-stub.js +0 -40
  124. package/workspace/first-paint-audit.js +0 -160
  125. package/workspace/lib/c3-full-console.js +0 -15
  126. package/workspace/lib/engine/derived/trust.js +0 -3
  127. package/workspace/lib/engine/plan-forecast.js +0 -342
  128. package/workspace/lib/engine/report-families.js +0 -175
  129. package/workspace/lib/engine/truth-table.js +0 -57
  130. package/workspace/lib/routes-c3-init.js +0 -54
  131. package/workspace/lib/routes-c3-life.js +0 -120
  132. package/workspace/lib/routes-c3-timeline.js +0 -192
  133. package/workspace/lib/routes-forecast.js +0 -86
  134. package/workspace/lib/routes-releases.js +0 -130
  135. package/workspace/lib/routes-report-facts.js +0 -85
  136. package/workspace/lib/routes-report-families.js +0 -33
  137. package/workspace/lib/routes-signals.js +0 -51
  138. package/workspace/lib/routes-timeline.js +0 -197
  139. package/workspace/public/c3.html +0 -35
  140. package/workspace/public/index.html +0 -156
  141. package/workspace/public/pm/app.js +0 -831
  142. package/workspace/public/pm/bd-board.js +0 -159
  143. package/workspace/public/pm/bd-drag.js +0 -59
  144. package/workspace/public/pm/bd-model.js +0 -152
  145. package/workspace/public/pm/bd-timeline.js +0 -233
  146. package/workspace/public/pm/bd-tree.js +0 -244
  147. package/workspace/public/pm/board-copy.js +0 -59
  148. package/workspace/public/pm/board-read.js +0 -38
  149. package/workspace/public/pm/branches-sheet.js +0 -56
  150. package/workspace/public/pm/breakdown-api.js +0 -58
  151. package/workspace/public/pm/breakdown-copy.js +0 -138
  152. package/workspace/public/pm/briefing-deck.js +0 -441
  153. package/workspace/public/pm/briefing-model.js +0 -251
  154. package/workspace/public/pm/c3-ambient.js +0 -100
  155. package/workspace/public/pm/c3-audience-link.js +0 -21
  156. package/workspace/public/pm/c3-audience.js +0 -46
  157. package/workspace/public/pm/c3-boot.js +0 -13
  158. package/workspace/public/pm/c3-breakdown.js +0 -240
  159. package/workspace/public/pm/c3-brief-data.js +0 -11
  160. package/workspace/public/pm/c3-brief-mentions.js +0 -137
  161. package/workspace/public/pm/c3-brief-needs.js +0 -288
  162. package/workspace/public/pm/c3-brief-pulse.js +0 -112
  163. package/workspace/public/pm/c3-brief-summary.js +0 -139
  164. package/workspace/public/pm/c3-brief-today.js +0 -79
  165. package/workspace/public/pm/c3-brief.js +0 -279
  166. package/workspace/public/pm/c3-cal-strategy.js +0 -529
  167. package/workspace/public/pm/c3-calendar.js +0 -965
  168. package/workspace/public/pm/c3-calpop.js +0 -111
  169. package/workspace/public/pm/c3-case.js +0 -196
  170. package/workspace/public/pm/c3-core-docs.css +0 -18
  171. package/workspace/public/pm/c3-core-docs.js +0 -236
  172. package/workspace/public/pm/c3-daypart.js +0 -176
  173. package/workspace/public/pm/c3-demo-boards.js +0 -764
  174. package/workspace/public/pm/c3-demo-brief-ix.js +0 -350
  175. package/workspace/public/pm/c3-demo-brief-page.js +0 -70
  176. package/workspace/public/pm/c3-demo-cal-ix.js +0 -74
  177. package/workspace/public/pm/c3-demo-cal2.js +0 -66
  178. package/workspace/public/pm/c3-demo-cal3.js +0 -173
  179. package/workspace/public/pm/c3-demo-cal4.js +0 -169
  180. package/workspace/public/pm/c3-demo-cal5.js +0 -52
  181. package/workspace/public/pm/c3-demo-coredocs.js +0 -221
  182. package/workspace/public/pm/c3-demo-data.js +0 -552
  183. package/workspace/public/pm/c3-demo-focus.js +0 -181
  184. package/workspace/public/pm/c3-demo-init.js +0 -430
  185. package/workspace/public/pm/c3-demo-life.js +0 -77
  186. package/workspace/public/pm/c3-demo-material.js +0 -58
  187. package/workspace/public/pm/c3-demo-misc2.js +0 -34
  188. package/workspace/public/pm/c3-demo-phone.js +0 -48
  189. package/workspace/public/pm/c3-demo-plan2.js +0 -30
  190. package/workspace/public/pm/c3-demo-rd.js +0 -432
  191. package/workspace/public/pm/c3-demo-rep-ix.js +0 -126
  192. package/workspace/public/pm/c3-demo-rep2.js +0 -130
  193. package/workspace/public/pm/c3-demo-rep3.js +0 -138
  194. package/workspace/public/pm/c3-demo-rs.js +0 -287
  195. package/workspace/public/pm/c3-demo-term.js +0 -153
  196. package/workspace/public/pm/c3-demo-time.js +0 -49
  197. package/workspace/public/pm/c3-demo-work-ix.js +0 -32
  198. package/workspace/public/pm/c3-demo.js +0 -131
  199. package/workspace/public/pm/c3-design-studio.js +0 -369
  200. package/workspace/public/pm/c3-doc-formats.js +0 -153
  201. package/workspace/public/pm/c3-doc-sheet.js +0 -1230
  202. package/workspace/public/pm/c3-dock.js +0 -206
  203. package/workspace/public/pm/c3-docs.js +0 -291
  204. package/workspace/public/pm/c3-driver-work.js +0 -110
  205. package/workspace/public/pm/c3-driver.css +0 -18
  206. package/workspace/public/pm/c3-driver.js +0 -298
  207. package/workspace/public/pm/c3-focus.css +0 -304
  208. package/workspace/public/pm/c3-focus.js +0 -983
  209. package/workspace/public/pm/c3-ib-docs.js +0 -92
  210. package/workspace/public/pm/c3-ib-initiatives.js +0 -201
  211. package/workspace/public/pm/c3-ib-items.js +0 -210
  212. package/workspace/public/pm/c3-ib-releases.js +0 -48
  213. package/workspace/public/pm/c3-ib-sprints.js +0 -201
  214. package/workspace/public/pm/c3-ib-triage.js +0 -177
  215. package/workspace/public/pm/c3-ii-tabs.js +0 -252
  216. package/workspace/public/pm/c3-ini-life.css +0 -34
  217. package/workspace/public/pm/c3-ini-life.js +0 -379
  218. package/workspace/public/pm/c3-ini-records.js +0 -197
  219. package/workspace/public/pm/c3-ini-timeline.js +0 -278
  220. package/workspace/public/pm/c3-ini-work.js +0 -139
  221. package/workspace/public/pm/c3-init-extras.js +0 -170
  222. package/workspace/public/pm/c3-initiatives.js +0 -852
  223. package/workspace/public/pm/c3-lifecycle-panels.js +0 -479
  224. package/workspace/public/pm/c3-look.js +0 -27
  225. package/workspace/public/pm/c3-material.css +0 -22
  226. package/workspace/public/pm/c3-material.js +0 -321
  227. package/workspace/public/pm/c3-md.js +0 -3
  228. package/workspace/public/pm/c3-misc-panels.js +0 -89
  229. package/workspace/public/pm/c3-new-session.js +0 -110
  230. package/workspace/public/pm/c3-notes.js +0 -751
  231. package/workspace/public/pm/c3-phone-boot.js +0 -47
  232. package/workspace/public/pm/c3-phone-detail.js +0 -97
  233. package/workspace/public/pm/c3-phone-model.js +0 -3
  234. package/workspace/public/pm/c3-phone.css +0 -66
  235. package/workspace/public/pm/c3-phone.js +0 -444
  236. package/workspace/public/pm/c3-plan-panels.js +0 -163
  237. package/workspace/public/pm/c3-plan.js +0 -193
  238. package/workspace/public/pm/c3-quiet.css +0 -113
  239. package/workspace/public/pm/c3-quiet.js +0 -177
  240. package/workspace/public/pm/c3-replay.css +0 -133
  241. package/workspace/public/pm/c3-replay.js +0 -429
  242. package/workspace/public/pm/c3-report-deck.css +0 -163
  243. package/workspace/public/pm/c3-report-deck.js +0 -598
  244. package/workspace/public/pm/c3-report-frame.css +0 -20
  245. package/workspace/public/pm/c3-report-print.css +0 -20
  246. package/workspace/public/pm/c3-report-setup.css +0 -67
  247. package/workspace/public/pm/c3-report-setup.js +0 -298
  248. package/workspace/public/pm/c3-report-store.js +0 -244
  249. package/workspace/public/pm/c3-report-structure.css +0 -44
  250. package/workspace/public/pm/c3-report-structure.js +0 -473
  251. package/workspace/public/pm/c3-reports.css +0 -68
  252. package/workspace/public/pm/c3-reports.js +0 -377
  253. package/workspace/public/pm/c3-roadmap.js +0 -249
  254. package/workspace/public/pm/c3-scan-api.js +0 -167
  255. package/workspace/public/pm/c3-scan-next.js +0 -248
  256. package/workspace/public/pm/c3-scan-setup.js +0 -313
  257. package/workspace/public/pm/c3-scan-words.js +0 -41
  258. package/workspace/public/pm/c3-scan.css +0 -74
  259. package/workspace/public/pm/c3-scan.js +0 -93
  260. package/workspace/public/pm/c3-session-chat.js +0 -103
  261. package/workspace/public/pm/c3-session-conv.js +0 -165
  262. package/workspace/public/pm/c3-session-term.js +0 -216
  263. package/workspace/public/pm/c3-settings.css +0 -85
  264. package/workspace/public/pm/c3-settings.js +0 -1045
  265. package/workspace/public/pm/c3-shell.js +0 -628
  266. package/workspace/public/pm/c3-signals.js +0 -196
  267. package/workspace/public/pm/c3-strategy-panels.js +0 -45
  268. package/workspace/public/pm/c3-swipe.js +0 -230
  269. package/workspace/public/pm/c3-terminal-data.js +0 -48
  270. package/workspace/public/pm/c3-terminal-edge.js +0 -91
  271. package/workspace/public/pm/c3-terminal-icons.js +0 -40
  272. package/workspace/public/pm/c3-terminal-results.js +0 -141
  273. package/workspace/public/pm/c3-terminal.js +0 -52
  274. package/workspace/public/pm/c3-tickets.js +0 -163
  275. package/workspace/public/pm/c3-timeline.js +0 -201
  276. package/workspace/public/pm/calendar-views.js +0 -1049
  277. package/workspace/public/pm/console3-lift.md +0 -220
  278. package/workspace/public/pm/cozy-home.js +0 -172
  279. package/workspace/public/pm/cozy-initiative.css +0 -138
  280. package/workspace/public/pm/cycle-review.js +0 -125
  281. package/workspace/public/pm/data.js +0 -1577
  282. package/workspace/public/pm/dest-board.js +0 -444
  283. package/workspace/public/pm/dest-docs.js +0 -530
  284. package/workspace/public/pm/dest-initiatives.js +0 -162
  285. package/workspace/public/pm/dest-mywork.js +0 -307
  286. package/workspace/public/pm/dest-notes.js +0 -537
  287. package/workspace/public/pm/dest-people.js +0 -449
  288. package/workspace/public/pm/dest-reports.js +0 -383
  289. package/workspace/public/pm/dest-settings.js +0 -601
  290. package/workspace/public/pm/dest-today.js +0 -267
  291. package/workspace/public/pm/display-word.js +0 -56
  292. package/workspace/public/pm/doc-editor.js +0 -473
  293. package/workspace/public/pm/doc-graph.js +0 -272
  294. package/workspace/public/pm/doc-health-panel.js +0 -110
  295. package/workspace/public/pm/doc-rail.js +0 -167
  296. package/workspace/public/pm/doc-remote.js +0 -180
  297. package/workspace/public/pm/dock-sessions.js +0 -472
  298. package/workspace/public/pm/dock.js +0 -216
  299. package/workspace/public/pm/fixture.js +0 -821
  300. package/workspace/public/pm/flag-picker.js +0 -104
  301. package/workspace/public/pm/frame-copy.js +0 -278
  302. package/workspace/public/pm/freshness-line.js +0 -149
  303. package/workspace/public/pm/handoff-box.js +0 -82
  304. package/workspace/public/pm/initiative-list.js +0 -235
  305. package/workspace/public/pm/initiative-sheet.js +0 -331
  306. package/workspace/public/pm/initiatives-api.js +0 -95
  307. package/workspace/public/pm/initiatives-copy.js +0 -287
  308. package/workspace/public/pm/initiatives-timeline-copy.js +0 -59
  309. package/workspace/public/pm/initiatives-timeline.js +0 -410
  310. package/workspace/public/pm/initiatives-ui.js +0 -291
  311. package/workspace/public/pm/item-sheet.js +0 -268
  312. package/workspace/public/pm/keep-card.js +0 -204
  313. package/workspace/public/pm/lifecycle-lens-model.js +0 -246
  314. package/workspace/public/pm/lifecycle-lens.js +0 -276
  315. package/workspace/public/pm/lifecycle.js +0 -111
  316. package/workspace/public/pm/mobile.css +0 -366
  317. package/workspace/public/pm/mobile.js +0 -581
  318. package/workspace/public/pm/modes-live.js +0 -453
  319. package/workspace/public/pm/modes.js +0 -147
  320. package/workspace/public/pm/my-work-card.js +0 -51
  321. package/workspace/public/pm/my-work-data.js +0 -36
  322. package/workspace/public/pm/new-initiative-sheet.js +0 -169
  323. package/workspace/public/pm/next-step-ui.js +0 -190
  324. package/workspace/public/pm/outbox-panel.js +0 -125
  325. package/workspace/public/pm/palette-copy.js +0 -55
  326. package/workspace/public/pm/palette.js +0 -343
  327. package/workspace/public/pm/panel-breakdown.js +0 -702
  328. package/workspace/public/pm/panel-cockpit.js +0 -425
  329. package/workspace/public/pm/panel-detail.js +0 -1513
  330. package/workspace/public/pm/panel-initiatives.js +0 -929
  331. package/workspace/public/pm/panel-newsess.js +0 -709
  332. package/workspace/public/pm/panel-repos.js +0 -741
  333. package/workspace/public/pm/panel-tabs.js +0 -1506
  334. package/workspace/public/pm/panel-trees.js +0 -204
  335. package/workspace/public/pm/people-link.js +0 -106
  336. package/workspace/public/pm/phone-deck.js +0 -167
  337. package/workspace/public/pm/pm-work-view.js +0 -1533
  338. package/workspace/public/pm/portfolio-report.js +0 -61
  339. package/workspace/public/pm/premium-acts.js +0 -280
  340. package/workspace/public/pm/premium-brief.js +0 -111
  341. package/workspace/public/pm/premium-chat.js +0 -22
  342. package/workspace/public/pm/premium-doc-sheet.js +0 -312
  343. package/workspace/public/pm/premium-initiative.js +0 -324
  344. package/workspace/public/pm/premium-insights.css +0 -228
  345. package/workspace/public/pm/premium-metric-tiles.js +0 -68
  346. package/workspace/public/pm/premium-report-brief.js +0 -132
  347. package/workspace/public/pm/premium-vw-rec.js +0 -67
  348. package/workspace/public/pm/premium-wide.css +0 -30
  349. package/workspace/public/pm/print.css +0 -44
  350. package/workspace/public/pm/provider-cards.js +0 -136
  351. package/workspace/public/pm/registry.js +0 -203
  352. package/workspace/public/pm/release-card.js +0 -110
  353. package/workspace/public/pm/releases-view.js +0 -248
  354. package/workspace/public/pm/report-families-view.js +0 -505
  355. package/workspace/public/pm/report-slides.js +0 -438
  356. package/workspace/public/pm/report-tab.js +0 -33
  357. package/workspace/public/pm/report-view.js +0 -337
  358. package/workspace/public/pm/reports-copy.js +0 -134
  359. package/workspace/public/pm/roadmap.js +0 -294
  360. package/workspace/public/pm/run-card.js +0 -260
  361. package/workspace/public/pm/sessions-panel.js +0 -219
  362. package/workspace/public/pm/sheet-jira.js +0 -353
  363. package/workspace/public/pm/shell-bell.js +0 -163
  364. package/workspace/public/pm/shell-model.js +0 -83
  365. package/workspace/public/pm/shell-phone.js +0 -124
  366. package/workspace/public/pm/shell-readaloud.js +0 -53
  367. package/workspace/public/pm/shell-recording.js +0 -274
  368. package/workspace/public/pm/shell-ticker.js +0 -90
  369. package/workspace/public/pm/sig-watch.js +0 -41
  370. package/workspace/public/pm/slide-confirm.js +0 -163
  371. package/workspace/public/pm/slides-copy.js +0 -52
  372. package/workspace/public/pm/status-banner.js +0 -95
  373. package/workspace/public/pm/tab-doc.js +0 -859
  374. package/workspace/public/pm/tab-gone.js +0 -21
  375. package/workspace/public/pm/tab-term.js +0 -1210
  376. package/workspace/public/pm/tab-web.js +0 -90
  377. package/workspace/public/pm/timeline-copy.js +0 -48
  378. package/workspace/public/pm/timeline-forecast-view.js +0 -164
  379. package/workspace/public/pm/today-agenda.js +0 -331
  380. package/workspace/public/pm/today-cards.js +0 -244
  381. package/workspace/public/pm/today-copy.js +0 -506
  382. package/workspace/public/pm/today-day.js +0 -1371
  383. package/workspace/public/pm/today-goals.js +0 -297
  384. package/workspace/public/pm/today-jobs.js +0 -84
  385. package/workspace/public/pm/today-mentions.js +0 -50
  386. package/workspace/public/pm/topbar.js +0 -202
  387. package/workspace/public/pm/triage-card.js +0 -60
  388. package/workspace/public/pm/undo-hold.js +0 -103
  389. package/workspace/public/pm/view-addrepo.js +0 -208
  390. package/workspace/public/pm/view-files.js +0 -197
  391. package/workspace/public/pm/view-livenotes.js +0 -399
  392. package/workspace/public/pm/view-today.js +0 -13
  393. package/workspace/public/pm/view-validate.js +0 -171
  394. package/workspace/public/pm/welcome.js +0 -391
  395. package/workspace/public/pm/work-place.js +0 -68
  396. package/workspace/public/pm/xlsx-read.js +0 -117
  397. package/workspace/public/welcome.html +0 -22
  398. package/workspace/test-lists/browser-suites-green.json +0 -5
  399. package/workspace/test-lists/c3-core-docs.json +0 -9
  400. package/workspace/test-lists/c3-doc-sheet-rich.json +0 -6
  401. package/workspace/test-lists/c3-doc-sheet-size.json +0 -6
  402. package/workspace/test-lists/c3-doc-sheet-v2.json +0 -6
  403. package/workspace/test-lists/c3-ib-items.json +0 -9
  404. package/workspace/test-lists/c3-ib-more.json +0 -9
  405. package/workspace/test-lists/c3-ib-triage-backlog.json +0 -9
  406. package/workspace/test-lists/c3-ini-life.json +0 -9
  407. package/workspace/test-lists/c3-meeting-board.json +0 -5
  408. package/workspace/test-lists/c3-meeting-card.json +0 -5
  409. package/workspace/test-lists/c3-notes-place.json +0 -5
  410. package/workspace/test-lists/c3-notes-series.json +0 -5
  411. package/workspace/test-lists/calendar-time-page.json +0 -5
  412. package/workspace/test-lists/calpop.json +0 -4
  413. package/workspace/test-lists/console3-briefing.json +0 -9
  414. package/workspace/test-lists/console3-foundation.json +0 -9
  415. package/workspace/test-lists/console3-work-page.json +0 -9
  416. package/workspace/test-lists/premium-brief-parity.json +0 -9
  417. package/workspace/test-lists/report-design-studio-ui.json +0 -5
  418. package/workspace/test-lists/report-structure-ui.json +0 -11
  419. package/workspace/test-lists/report-workspace-ui.json +0 -5
  420. package/workspace/test-lists/run3-a.json +0 -5
  421. package/workspace/test-lists/run3-d.json +0 -6
  422. package/workspace/test-lists/run4-c.json +0 -13
  423. package/workspace/test-lists/today-goals-jobs-ui.json +0 -5
  424. package/workspace/test-lists/today-mentions-cards.json +0 -5
  425. package/workspace/test-lists/workspace-tabs-declutter.json +0 -13
@@ -7,9 +7,11 @@
7
7
  * finished working hours, "Finished for you": the agent's tasks of today's day run (goals/<date>.run.json, lib/day-run.js) that have a
8
8
  * draft. { id, title, summary, body, at, status, link, source }; body keeps its lines (markdown, at most 8000 characters); status 'review' (waits for the PM's approval at the desk),
9
9
  * 'done' (an auto task) or 'sent'. Newest first, at most 5.
10
- * recap evening: how the day went. meetings = today's meetings that have ended; decided = the decisions in the final notes of today's
11
- * meetings; done = the PM's own items marked done today; finished = the agent's drafts of today. moved = at most 5 rows of
12
- * { kind: 'decision'|'done'|'agent', text, sub }: the decisions first, then the items done, then the drafts.
10
+ * recap evening: how the day went. meetings = today's meetings that have ended; decided = the decisions of today's meetings that
11
+ * the PM CONFIRMED in the meeting's Replay (lib/meeting-points.js); to_confirm = the decisions caught in today's notes that
12
+ * the PM has not confirmed yet (a caught decision is a guess until then, so it never counts as moved); done = the PM's own
13
+ * items marked done today; finished = the agent's drafts of today. moved = at most 5 rows of { kind: 'decision'|'done'|'agent',
14
+ * text, sub }: the confirmed decisions first, then the items done, then the drafts.
13
15
  * tomorrow end of the day: the next working day (Monday to Friday) and its meetings, in the shape of GET /api/brief-page today[] rows
14
16
  * (routes-brief-page.js todayAgenda), so the companion opens their briefs the same way.
15
17
  * A private note is never read. A file that is missing or unreadable counts as empty. */
@@ -17,6 +19,8 @@ const fs = require('fs');
17
19
  const path = require('path');
18
20
  const pmItems = require('./pm-items.js');
19
21
  const { todayAgenda, notesAdapter } = require('./routes-brief-page.js');
22
+ const { caughtOf } = require('./meeting-replay.js');
23
+ const meetingPoints = require('./meeting-points.js');
20
24
 
21
25
  const pad = (n) => String(n).padStart(2, '0');
22
26
  const localDate = (d) => `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}`;
@@ -42,7 +46,8 @@ function finishedOf(run) {
42
46
  .sort((a, b) => String(b.at || '').localeCompare(String(a.at || '')));
43
47
  }
44
48
 
45
- /** deps: { events, items, run, notes: [note with final_notes], adapter } — notes are today's non-private notes, read in full. */
49
+ /** deps: { events, items, run, notes: [note with final_notes], adapter, points: (noteId) → { [pointId]: 'confirmed' | 'wrong' } }
50
+ * notes are today's non-private notes, read in full. A decision's point id is the Replay's (lib/meeting-replay.js): d1, d2, … in caughtOf order. */
46
51
  function build(query, deps = {}) {
47
52
  const q = query || {};
48
53
  let now = q.now ? new Date(q.now) : (deps.now ? new Date(deps.now) : new Date());
@@ -51,11 +56,15 @@ function build(query, deps = {}) {
51
56
  const events = deps.events || []; const items = deps.items || [];
52
57
  const agenda = todayAgenda(events, items, now, deps.adapter || {});
53
58
  const finished = finishedOf(deps.run);
54
- const decisions = [];
59
+ const decisions = []; let toConfirm = 0;
55
60
  for (const n of deps.notes || []) {
56
61
  if (!n || n.private) continue;
57
- const f = n.final_notes;
58
- (f && Array.isArray(f.decisions) ? f.decisions : []).forEach((x) => { if (x && x.text) decisions.push({ kind: 'decision', text: clip(x.text, 200), sub: clip(n.title || (n.meeting && n.meeting.title) || 'A meeting', 80) }); });
62
+ const pts = (deps.points && deps.points(n.id)) || {};
63
+ caughtOf(n).decision.forEach((x, i) => {
64
+ const v = pts['d' + (i + 1)];
65
+ if (v === 'confirmed') decisions.push({ kind: 'decision', text: clip(x.text, 200), sub: clip(n.title || (n.meeting && n.meeting.title) || 'A meeting', 80) });
66
+ else if (v !== 'wrong') toConfirm += 1;
67
+ });
59
68
  }
60
69
  const done = items.filter((i) => i && i.done && i.done_at && localDate(new Date(i.done_at)) === today);
61
70
  const moved = [...decisions, ...done.map((i) => ({ kind: 'done', text: clip(i.title, 200), sub: 'Done by you' })),
@@ -63,7 +72,7 @@ function build(query, deps = {}) {
63
72
  const tm = nextWorkday(now);
64
73
  return { status: 200, body: {
65
74
  ok: true, date: today, finished,
66
- recap: { meetings: agenda.filter((m) => Date.parse(m.end || m.start) <= now.getTime()).length, decided: decisions.length, done: done.length, finished: finished.length, moved },
75
+ recap: { meetings: agenda.filter((m) => Date.parse(m.end || m.start) <= now.getTime()).length, decided: decisions.length, to_confirm: toConfirm, done: done.length, finished: finished.length, moved },
67
76
  tomorrow: { date: localDate(tm), label: WD[tm.getDay()] + ' ' + tm.getDate() + ' ' + MO[tm.getMonth()], meetings: todayAgenda(events, items, tm, deps.adapter || {}) },
68
77
  } };
69
78
  }
@@ -95,7 +104,7 @@ module.exports = {
95
104
  const today = localDate(now);
96
105
  const events = dir ? require('./calendar-events.js').readAll(dir, { now: now.getTime() }) : [];
97
106
  const items = dir ? pmItems.fold(pmItems.readLines(path.join(dir, 'pm-items', 'items.jsonl'))) : [];
98
- const out = build({ now: now.toISOString() }, { events, items, run: dir ? readRun(dir, today) : null, notes: dir ? todaysNotes(dir, today) : [], adapter: dir ? notesAdapter(dir) : {} });
107
+ const out = build({ now: now.toISOString() }, { events, items, run: dir ? readRun(dir, today) : null, notes: dir ? todaysNotes(dir, today) : [], adapter: dir ? notesAdapter(dir) : {}, points: (id) => meetingPoints.pointsOf(dir, id) });
99
108
  ctx.json(res, out.body, out.status);
100
109
  } catch (e) {
101
110
  ctx.json(res, { ok: false, error: 'your day could not be read: ' + (e && e.message ? e.message : String(e)) }, 500);
@@ -0,0 +1,95 @@
1
+ 'use strict';
2
+ /* routes-slash.js — the chat box's / menu (testing fixes: the menu listed 3 commands; it lists every command Claude Code takes).
3
+ *
4
+ * GET /api/slash-commands[?ws=<id>] → { ok, commands: [{ cmd, name, say, src }] } src 'pmos' | 'claude' | 'project' | 'yours'
5
+ *
6
+ * READ ONLY. The commands are, in this order:
7
+ * pmos /goal, which PMOS answers itself (goal-chat.js)
8
+ * claude the commands built into Claude Code
9
+ * project the workspace's own: .claude/commands/<name>.md and .claude/skills/<name>/SKILL.md under the workspace root
10
+ * yours the PM's own: the same two folders under ~/.claude
11
+ * A custom command's `say` is its frontmatter `description`, else its first line of text. A file that cannot be read is left out. */
12
+ const fs = require('fs');
13
+ const os = require('os');
14
+ const path = require('path');
15
+
16
+ const PMOS = [{ cmd: '/goal', name: 'Give Claude a goal', say: 'It asks a few questions to make the goal SMART, then works on it after you press Start.' }];
17
+ const CLAUDE = [
18
+ ['/compact', 'Compact the conversation', 'Claude Code summarises the conversation so far to free room.'],
19
+ ['/clear', 'Clear the conversation', 'Claude Code starts again with an empty context in the same session.'],
20
+ ['/context', 'Show the context', 'How full the context window is, and what fills it.'],
21
+ ['/cost', 'Show the cost', 'The tokens and cost of this session so far.'],
22
+ ['/model', 'Change the model', 'Pick the model the session uses from now on.'],
23
+ ['/review', 'Review a pull request', 'Claude Code reviews a pull request.'],
24
+ ['/security-review', 'Security review', 'Claude Code checks the pending changes for security issues.'],
25
+ ['/pr-comments', 'Pull request comments', 'Claude Code reads the comments on a pull request.'],
26
+ ['/init', 'Write CLAUDE.md', 'Claude Code writes a CLAUDE.md that describes this repository.'],
27
+ ['/memory', 'Edit memory', 'Open the CLAUDE.md memory files.'],
28
+ ['/add-dir', 'Add a folder', 'Let the session read and work in another folder.'],
29
+ ['/agents', 'Subagents', 'List and manage the subagents.'],
30
+ ['/mcp', 'MCP servers', 'The MCP servers and their state.'],
31
+ ['/permissions', 'Permissions', 'What the session may do without asking.'],
32
+ ['/hooks', 'Hooks', 'The hooks that run on tool calls.'],
33
+ ['/todos', 'To-dos', 'The session’s current to-do list.'],
34
+ ['/export', 'Export the conversation', 'Save the conversation to a file or the clipboard.'],
35
+ ['/status', 'Status', 'The version, the model, the account and the connections.'],
36
+ ['/doctor', 'Check the install', 'Claude Code checks its own installation.'],
37
+ ['/help', 'Help', 'The commands Claude Code takes.'],
38
+ ].map(([cmd, name, say]) => ({ cmd, name, say }));
39
+
40
+ const NAME = /^[A-Za-z0-9][A-Za-z0-9_:.-]{0,63}$/;
41
+ function read(file) { try { return fs.readFileSync(file, 'utf8').slice(0, 8000); } catch { return null; } }
42
+ /** The description of a command or skill file: frontmatter `description`, else the first line of text. */
43
+ function sayOf(text) {
44
+ const t = String(text || '');
45
+ const fm = /^---\r?\n([\s\S]*?)\r?\n---/.exec(t);
46
+ const d = fm && /^description:\s*(.+)$/m.exec(fm[1]);
47
+ if (d) return d[1].trim().replace(/^["']|["']$/g, '').slice(0, 200);
48
+ const body = fm ? t.slice(fm[0].length) : t;
49
+ const line = body.split('\n').map((l) => l.replace(/^#+\s*/, '').trim()).find(Boolean);
50
+ return (line || '').slice(0, 200);
51
+ }
52
+ /** The commands and skills under one .claude folder. */
53
+ function customOf(dir, src) {
54
+ const out = [];
55
+ let names = [];
56
+ try { names = fs.readdirSync(path.join(dir, 'commands')); } catch { names = []; }
57
+ for (const f of names) {
58
+ const n = f.replace(/\.md$/, '');
59
+ if (!f.endsWith('.md') || !NAME.test(n)) continue;
60
+ const t = read(path.join(dir, 'commands', f)); if (t == null) continue;
61
+ out.push({ cmd: '/' + n, name: n, say: sayOf(t), src });
62
+ }
63
+ try { names = fs.readdirSync(path.join(dir, 'skills')); } catch { names = []; }
64
+ for (const n of names) {
65
+ if (!NAME.test(n)) continue;
66
+ const t = read(path.join(dir, 'skills', n, 'SKILL.md')); if (t == null) continue;
67
+ out.push({ cmd: '/' + n, name: n, say: sayOf(t), src });
68
+ }
69
+ return out.sort((a, b) => a.cmd.localeCompare(b.cmd));
70
+ }
71
+
72
+ /** deps: { root (the workspace's folder), home (the PM's home folder) } */
73
+ function list(deps = {}) {
74
+ const seen = new Set(), out = [];
75
+ const add = (x, src) => { if (seen.has(x.cmd)) return; seen.add(x.cmd); out.push({ ...x, src: x.src || src }); };
76
+ PMOS.forEach((x) => add(x, 'pmos'));
77
+ CLAUDE.forEach((x) => add(x, 'claude'));
78
+ if (deps.root) customOf(path.join(deps.root, '.claude'), 'project').forEach((x) => add(x));
79
+ if (deps.home) customOf(path.join(deps.home, '.claude'), 'yours').forEach((x) => add(x));
80
+ return { status: 200, body: { ok: true, commands: out } };
81
+ }
82
+
83
+ module.exports = {
84
+ prefixes: ['/api/slash-commands'],
85
+ list, sayOf, CLAUDE,
86
+ handle: async (req, res, url, ctx) => {
87
+ if (url.pathname !== '/api/slash-commands') return false;
88
+ if (req.method !== 'GET') { ctx.json(res, { ok: false, error: 'GET only' }, 405); return true; }
89
+ const ws = url.searchParams.get('ws');
90
+ const w = ws && ctx.getWs ? ctx.getWs(ws) : null;
91
+ const r = list({ root: w ? w.root : ctx.root || null, home: os.homedir() });
92
+ ctx.json(res, r.body, r.status);
93
+ return true;
94
+ },
95
+ };
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.399.0",
3
+ "version": "0.401.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.399.0",
9
+ "version": "0.401.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.399.0",
3
+ "version": "0.401.0",
4
4
  "private": true,
5
5
  "description": "PMOS Terminal Workspace — local companion hosting real PTYs beside the library and gates (D62)",
6
6
  "license": "MIT",
@@ -11,7 +11,6 @@
11
11
  "start": "node server.js",
12
12
  "test": "node run-tests.js unit",
13
13
  "test:modules": "node run-tests.js modules",
14
- "test:ui": "node ui-test.js",
15
14
  "test:all": "node run-tests.js all && npm run test:offline",
16
15
  "doctor": "node doctor.js",
17
16
  "test:panels": "node run-tests.js panels",
@@ -43,7 +43,7 @@ const look = () => {
43
43
  return { tab: vw ? 'out' : 'chat', shut: !gp, layer: false, out: vw ? Math.round(vw.getBoundingClientRect().width) : 0, vh: innerHeight,
44
44
  cardInChat: !!document.querySelector('#hmLog .gcard'), chip: (document.querySelector('#hmLog [data-goal-open]') || {}).textContent || null,
45
45
  smart: !!document.querySelector('#hmLog .smart'), start: !!document.querySelector('#hmLog [data-goal="start"]'),
46
- tabs: gp ? ['Goal'] : [], on: vw ? (vw.querySelector('.cz-vw-kind') || {}).textContent || null : null,
46
+ tabs: gp ? ['Goal'] : [], on: vw ? (vw.querySelector('.cz-vw-kind') || vw.querySelector('.cz-vw-title') || {}).textContent || null : null, // a kind that repeats the title is not drawn
47
47
  pane: gp ? gp.textContent.replace(/\s+/g, ' ').trim() : null, stop: !!document.querySelector('#czViewer [data-goal="stop"]'),
48
48
  peek: peek && !peek.hidden ? peek.textContent.trim() : null,
49
49
  railOff: !document.querySelector('nav.rail'), wide: document.documentElement.scrollWidth > innerWidth + 1 };
@@ -6,7 +6,6 @@
6
6
  * header, so the icon sits in the box's toolbar; nothing links to the console)
7
7
  * O2 an ended chat: the icon copies the line that resumes it
8
8
  * O3 no session: no icon
9
- * O4 /console.html?term=<id> opens that session's sheet on the terminal, also at phone width
10
9
  * Set CHAT_TERM_SHOTS=<dir> to save the header at 1280 light and 390 dark. */
11
10
  const { findBrowser } = require('./lib/find-browser');
12
11
  require('./test-run').configure({ name: 'premium-chat-term' });
@@ -80,14 +79,5 @@ const pressTerm = async (p) => { await p.click('#hmAdd'); await p.click('#hmTerm
80
79
  ok('O3 no session and nothing to resume: no icon', i && !i.shown, JSON.stringify(i));
81
80
  await ctx.close();
82
81
  }
83
- for (const width of [1280, 390]) {
84
- const ctx = await browser.newContext({ viewport: { width, height: 800 } });
85
- const p = await ctx.newPage();
86
- await p.route('**/api/sessions', (r) => r.fulfill({ json: { sessions: [{ id: 'sess-7', name: 'chat: PSLE sheet', agent: 'claude', state: 'working', shown: 'working' }] } }));
87
- await p.goto(`${F.BASE}/console.html?term=sess-7&ws=${encodeURIComponent(F.ws)}`);
88
- const v = await until(() => p.evaluate(() => { const s = document.querySelector('[data-c3-session="sess-7"]'); const b = document.querySelector('[data-c3-view="term"]'); return s && b ? b.getAttribute('aria-pressed') : null; }), 15000);
89
- ok(`O4 at ${width} /console.html?term= opens that session's sheet on its terminal`, v === 'true', String(v));
90
- await ctx.close();
91
- }
92
82
  finish();
93
83
  })();
@@ -16,7 +16,7 @@ const ok = (name, cond, extra = '') => { results.push({ name, cond: !!cond }); c
16
16
  const PUB = path.join(__dirname, 'public');
17
17
  const ORIGIN = 'http://pmos-menus.test';
18
18
  const TYPES = { '.css': 'text/css', '.woff2': 'font/woff2', '.html': 'text/html', '.svg': 'image/svg+xml' };
19
- const SHEETS = ['pm/premium.css', 'pm/premium-insights.css', 'pm/premium-vw-doc.css', 'pm/premium-vw-rec.css'];
19
+ const SHEETS = ['pm/premium.css', 'pm/premium-vw-doc.css', 'pm/premium-vw-rec.css'];
20
20
 
21
21
  const LONG = ['Migration off Okta (tender, award, migration), incl. the Okta CIS renewal runway', 'Inline login for eShop onsite checkout',
22
22
  'MAGW migration to auth-service (Java to Go) — Phase 1 and Phase 2', 'Email OTP'];
@@ -64,7 +64,12 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
64
64
  return json(r, { ok: true, view: u.searchParams.get('view') || 'quarter', cells: [], gantt: [], no_plan: 0, strategy: [], today: DATE });
65
65
  });
66
66
  await p.goto(`${F.BASE}/premium.html?ws=${encodeURIComponent(ws)}`);
67
- if (width < 641) await until(() => p.evaluate(() => !!document.querySelector('#hmList'))); // the card is the Today card at the top of the phone's list (canvas HmPhone)
67
+ if (width < 641) {
68
+ await until(() => p.evaluate(() => !!document.querySelector('#hmList')));
69
+ // testing fixes: the card is no longer in the phone's list. It is the greeting's detail, in the Viewer: the greeting opens it,
70
+ // and in a mode with no greeting (a meeting near or live) the hm:day event does
71
+ await p.evaluate(() => { const g = document.querySelector('#hmList [data-hm-tc="cal"]'); if (g) g.click(); else dispatchEvent(new Event('hm:day')); });
72
+ }
68
73
  p.__posts = posts; p.__gets = gets; p.__errs = errs; p.__ctx = ctx;
69
74
  if (shotDir && name) p.__shot = async (suffix) => { await sleep(700); fs.mkdirSync(shotDir, { recursive: true }); await p.screenshot({ path: path.join(shotDir, `${name}-${suffix}.png`) }); };
70
75
  return p;
@@ -108,7 +113,7 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
108
113
 
109
114
  p = await scene({ time: at(18, 0), today: [A], needs: [{ key: 'k1', kind: 'overdue', id: i1.id, headline: 'Send the partner onboarding list to Lina', days_late: 1 }], name: 'recap' });
110
115
  c = await wait(p, /How today went/);
111
- ok('M7 the evening: the recap counts come from phone-day', c && c.kind === 'recap' && /2\s*meetings/.test(c.text) && /3\s*done by you/.test(c.text) && /Sandbox dates agreed/.test(c.text) && /Still open · 1/.test(c.text), c && c.text);
116
+ ok('M7 the evening: the recap counts come from phone-day', c && c.kind === 'recap' && /2\s*meetings/.test(c.text) && /3 items done/.test(c.text) && /Sandbox dates agreed/.test(c.text) && /One thing tonight/.test(c.text), c && c.text);
112
117
  await p.__ctx.close();
113
118
 
114
119
  p = await scene({ time: at(21, 0), today: [A], name: 'night' });
@@ -155,7 +160,7 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
155
160
  await p.__ctx.close();
156
161
  p = await scene({ time: at(18, 0), today: [A], dayFail: true });
157
162
  c = await wait(p, /Today could not be read/);
158
- ok('E2 a failed phone-day read is named in the recap, and the open items still show', c && /Still open/.test(c.text), c && c.text);
163
+ ok('E2 a failed phone-day read is named in the recap, and the open items still show', c && /could not be read/.test(c.text) && /(One thing tonight|Nothing of yours is still open)/.test(c.text), c && c.text);
159
164
  await p.__ctx.close();
160
165
 
161
166
  /* W: desktop width and the POST allow-list */
@@ -92,8 +92,11 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
92
92
  await tap(r, '[data-c="view"][data-k="month"]');
93
93
  ok('C6 Month reads the month and draws its grid', await until(() => C.S.gets.some((g) => /view=month/.test(g))) && await until(() => r.evaluate(() => !!document.querySelector('#czViewer .vzc-mg') && /^\w+ \d{4}$/.test(document.querySelector('#czViewer .vzc-head h2').textContent))));
94
94
  const n1 = C.S.gets.filter((g) => g.startsWith('/api/calendar-views')).length;
95
+ const head = () => r.evaluate(() => document.querySelector('#czViewer .vzc-head h2').textContent);
96
+ const m0 = await head();
95
97
  await tap(r, '[data-c="nav"][data-k="1"]');
96
- await until(() => C.S.gets.filter((g) => g.startsWith('/api/calendar-views')).length > n1);
98
+ // Today is pressed once the next month is drawn: a press while the read is in flight can land on the card being replaced
99
+ await until(async () => C.S.gets.filter((g) => g.startsWith('/api/calendar-views')).length > n1 && (await head()) !== m0);
97
100
  await tap(r, '[data-c="nav"][data-k="0"]');
98
101
  ok('C6 next and Today read again', await until(() => C.S.gets.filter((g) => g.startsWith('/api/calendar-views')).length >= n0 + 3));
99
102
  await tap(r, '[data-c="view"][data-k="week"]');
@@ -196,14 +196,7 @@ const prop = (o) => Object.assign({ id: 'prop-a', state: 'proposed', prompt: 'ad
196
196
  ok('D5 Undo all rejects the proposal with a reason for the Edit log, and the file is left as it is', C.S.posts[0].route === 'reject' && C.S.posts[0].body.id === 'prop-a' && /Undo all/.test(C.S.posts[0].body.why) && !C.S.posts.some((x) => x.route === 'edit' || x.route === 'accept'));
197
197
  await until(() => q.evaluate((v) => !document.querySelector(v + ' .vwag'), V));
198
198
  ok('D5 after Undo all the page shows the file with no highlight', await q.evaluate((v) => !document.querySelector(v + ' .vwchg') && /a first call without help/.test(document.querySelector(v + ' .cfb').textContent), V));
199
- await q.click(V + ' [data-vd="askt"]');
200
- await q.fill(V + ' #vwAsk', 'tighten the goal'); await q.click(V + ' [data-vd="ask"]');
201
- await until(() => C.S.posts.length > 1);
202
- ok('D6 Ask posts path and prompt to /api/doc-sheet/ask', C.S.posts[1].route === 'ask' && C.S.posts[1].body.prompt === 'tighten the goal' && C.S.posts[1].body.path === PATH);
203
- ok('D6 while the agent works the page says so', await until(() => q.evaluate((v) => /The agent is reading the document/.test(document.querySelector(v).textContent), V)));
204
- C.S.props = [prop({ id: 'prop-c', hash: 'hc', prompt: 'tighten the goal', sections: [prop().sections[1]], after: TEXT.replace('- a first call without help', '- a first call in under ten minutes') })];
205
- C.S.ask = { ok: true, id: 'ask-1', state: 'proposed' };
206
- ok('D6 when the agent answers, its edit shows applied and highlighted', await until(() => q.evaluate((v) => !!document.querySelector(v + ' .vwchg[data-sec="Goal"]') && /The agent changed 1 place/.test(document.querySelector(v + ' .vwag').textContent), V), 9000));
199
+ ok('D6 the read bar has no Ask the agent (testing fixes: the chat beside the page asks for a change)', await q.evaluate((v) => !document.querySelector(v + ' [data-vd="askt"]') && !/Ask the agent/.test(document.querySelector(v).textContent), V));
207
200
  ok('0 no page error', C.S.errors.length === 0, C.S.errors.join(' | '));
208
201
  await C.ctx.close();
209
202
  }
@@ -69,8 +69,7 @@ const mk = (edit) => { const v = F.view(); if (edit) edit(v); return WP.build({
69
69
  await page.route('**/api/briefing-premium/**', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, turns: [], working: false }) }));
70
70
  await page.goto(BASE + '/premium.html?theme=' + theme);
71
71
  await until(() => page.evaluate(() => !!document.querySelector('#czFab')), 15000);
72
- await page.click('#czFab'); await page.click('[data-cz-more]');
73
- await page.locator('#hmMenu button').filter({ hasText: 'My work' }).first().click();
72
+ await page.evaluate(() => import('/pm/home-work.js').then((M) => { M.openMyWork(); })); // the page itself: Home no longer opens it (testing fixes); an item and Focus open alone
74
73
  const up = await until(() => page.evaluate(() => document.querySelectorAll('#czViewer:not([hidden]) .mw-list .wrow').length > 0), 20000);
75
74
  return { ctx, page, errors, posts, up, replies, setModel: (m) => { current = m; }, refuse: (f) => { fail = f; }, last: () => posts[posts.length - 1] };
76
75
  };
@@ -348,7 +347,7 @@ const mk = (edit) => { const v = F.view(); if (edit) edit(v); return WP.build({
348
347
  await pg.goto(BASE + '/premium-work.html');
349
348
  // re-pointed for premium-agreed-design: /premium-work.html opens Home; My work is the card from the place menu, and an added line is opened from Your list
350
349
  await until(() => pg.evaluate(() => /\/premium\.html$/.test(location.pathname) && !!document.querySelector('#czFab')), 15000);
351
- await pg.click('#czFab'); await pg.click('[data-cz-more]'); await pg.locator('#hmMenu button').filter({ hasText: 'My work' }).first().click();
350
+ await pg.evaluate(() => import('/pm/home-work.js').then((M) => { M.openMyWork(); })); // the page itself: Home no longer opens it (testing fixes); an item and Focus open alone
352
351
  ok('E1 on an empty scratch state My work says the list is empty and Focus has nothing to suggest', await until(() => pg.evaluate(() => /Nothing is open/.test((document.querySelector('#czViewer .mw-list') || {}).textContent || '') && /Nothing to suggest/.test(document.querySelector('#xFocus .xfq').getAttribute('aria-label'))), 20000));
353
352
  await pg.fill('#hxLine', 'Reply to Rina about SSO !p1'); await pg.click('#czViewer [data-x="add"]');
354
353
  await until(() => pg.evaluate(() => !!document.querySelector('.mw-list .wrh')), 8000);
@@ -0,0 +1,23 @@
1
+ <!doctype html>
2
+ <html lang="en" data-pm-page-theme="light">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <meta name="pmos-nonce" content="" />
7
+ <title>PMOS capture</title>
8
+ <!-- The popup of the PMOS Chrome extension (extension/popup.js frames /console.html?capture=1&pop=1). The console is
9
+ deleted (workspace-legacy-cleanup); the server serves this page for that address only, and pm/c3-capture.js is the
10
+ whole page. The nonce meta is filled by the server, so Add carries it. -->
11
+ <link rel="stylesheet" href="/pm/tokens.css" />
12
+ <style>
13
+ html { background: var(--background); }
14
+ body { margin: 0; background: var(--background); color: var(--foreground); }
15
+ noscript { display: block; padding: 16px; font-family: var(--font-mono, monospace); }
16
+ </style>
17
+ </head>
18
+ <body>
19
+ <div id="c3-root" class="c3 c3pg" data-pm-theme="light"></div>
20
+ <noscript>This page needs JavaScript.</noscript>
21
+ <script type="module" src="/pm/c3-capture.js"></script>
22
+ </body>
23
+ </html>
@@ -0,0 +1,47 @@
1
+ /* pm/c3-base.js — the console3 look that more than My work uses: console3.css, the icon sprite and the phone class.
2
+ * It was in pm-work-view.js (My work). It is here so that the notes engine and the sheets do not load My work
3
+ * (workspace-legacy-cleanup). pm-work-view.js re-exports it. */
4
+
5
+ const SVG_NS = 'http://www.w3.org/2000/svg';
6
+ /* The mockup's icon sprite (console3.html lines 970 to 1026, ids renamed c3i-*, plus the c3 layer's edit and trash). */
7
+ const SPRITE = '<symbol id="c3i-sun" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/></symbol><symbol id="c3i-star" viewBox="0 0 24 24"><path d="M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.5 6.6 19.5l1.2-6L3.3 9.3l6.1-.7z"/></symbol><symbol id="c3i-moon" viewBox="0 0 24 24"><path d="M20 14a8 8 0 11-10-10 6 6 0 0010 10z"/></symbol><symbol id="c3i-cal" viewBox="0 0 24 24"><rect x="4" y="5" width="16" height="15" rx="2"/><path d="M4 10h16M8 3v4M16 3v4"/></symbol><symbol id="c3i-inbox" viewBox="0 0 24 24"><path d="M4 13l2-8h12l2 8M4 13v6h16v-6M4 13h5l1 2h4l1-2h5"/></symbol><symbol id="c3i-todo" viewBox="0 0 24 24"><rect x="4" y="4" width="16" height="16" rx="3"/><path d="M8 12l3 3 5-6"/></symbol><symbol id="c3i-init" viewBox="0 0 24 24"><path d="M12 3l9 5-9 5-9-5 9-5zM3 13l9 5 9-5"/></symbol><symbol id="c3i-report" viewBox="0 0 24 24"><path d="M5 20V10M12 20V4M19 20v-7"/></symbol><symbol id="c3i-notes" viewBox="0 0 24 24"><path d="M6 3h9l4 4v14H6zM14 3v5h5M9 13h7M9 17h5"/></symbol><symbol id="c3i-user" viewBox="0 0 24 24"><circle cx="12" cy="8" r="4"/><path d="M4 21c0-4 4-6 8-6s8 2 8 6"/></symbol><symbol id="c3i-doc" viewBox="0 0 24 24"><path d="M6 3h9l4 4v14H6zM14 3v5h5"/></symbol><symbol id="c3i-sheet" viewBox="0 0 24 24"><rect x="4" y="4" width="16" height="16" rx="2"/><path d="M4 10h16M4 15h16M10 4v16"/></symbol><symbol id="c3i-img" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="2"/><circle cx="9" cy="10" r="2"/><path d="M21 16l-5-5-9 9"/></symbol><symbol id="c3i-pdf" viewBox="0 0 24 24"><path d="M6 3h9l4 4v14H6zM14 3v5h5M9 15h6M9 18h4"/></symbol><symbol id="c3i-term" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M7 9l3 3-3 3M13 15h4"/></symbol><symbol id="c3i-branch" viewBox="0 0 24 24"><circle cx="6" cy="5" r="2"/><circle cx="6" cy="19" r="2"/><circle cx="18" cy="9" r="2"/><path d="M6 7v10M18 11c0 4-6 3-12 6"/></symbol><symbol id="c3i-repo" viewBox="0 0 24 24"><path d="M5 4h11a3 3 0 013 3v13H8a3 3 0 01-3-3zM5 17a3 3 0 013-3h11"/></symbol><symbol id="c3i-flag" viewBox="0 0 24 24"><path d="M6 21V4M6 5h11l-2 4 2 4H6"/></symbol><symbol id="c3i-clock" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></symbol><symbol id="c3i-alert" viewBox="0 0 24 24"><path d="M12 3l10 18H2zM12 10v5M12 18v.5"/></symbol><symbol id="c3i-check" viewBox="0 0 24 24"><path d="M5 12l5 5 9-10"/></symbol><symbol id="c3i-x" viewBox="0 0 24 24"><path d="M6 6l12 12M18 6L6 18"/></symbol><symbol id="c3i-eye" viewBox="0 0 24 24"><path d="M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z"/><circle cx="12" cy="12" r="3"/></symbol><symbol id="c3i-undo" viewBox="0 0 24 24"><path d="M4 12a8 8 0 108-8M4 4v6h6"/></symbol><symbol id="c3i-out" viewBox="0 0 24 24"><path d="M5 12h14M13 6l6 6-6 6"/></symbol><symbol id="c3i-shield" viewBox="0 0 24 24"><path d="M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z"/></symbol><symbol id="c3i-mic" viewBox="0 0 24 24"><rect x="9" y="3" width="6" height="11" rx="3"/><path d="M5 11a7 7 0 0014 0M12 18v3"/></symbol><symbol id="c3i-clip" viewBox="0 0 24 24"><rect x="6" y="4" width="12" height="17" rx="2"/><path d="M9 4h6v3H9zM9 12h6M9 16h4"/></symbol><symbol id="c3i-search" viewBox="0 0 24 24"><circle cx="11" cy="11" r="7"/><path d="M21 21l-5-5"/></symbol><symbol id="c3i-phone" viewBox="0 0 24 24"><rect x="7" y="2" width="10" height="20" rx="2"/><path d="M11 18h2"/></symbol><symbol id="c3i-cloud" viewBox="0 0 24 24"><path d="M7 18a4 4 0 010-8 5 5 0 019.6-1A4.5 4.5 0 0117 18z"/></symbol><symbol id="c3i-bolt" viewBox="0 0 24 24"><path d="M13 2L4 14h7l-1 8 9-12h-7z"/></symbol><symbol id="c3i-plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"/></symbol><symbol id="c3i-scale" viewBox="0 0 24 24"><path d="M12 3v18M5 7h14M5 7l-3 7a3 3 0 006 0zM19 7l-3 7a3 3 0 006 0z"/></symbol><symbol id="c3i-reply" viewBox="0 0 24 24"><path d="M9 7L4 12l5 5M4 12h10a6 6 0 016 6"/></symbol><symbol id="c3i-info" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 11v6M12 7.5v.5"/></symbol><symbol id="c3i-wait" viewBox="0 0 24 24"><path d="M7 3h10M7 21h10M8 3c0 5 8 5 8 9s-8 4-8 9"/></symbol><symbol id="c3i-up" viewBox="0 0 24 24"><path d="M7 11v9H4v-9zM7 11l4-8c2 0 3 1 3 3v3h5a2 2 0 012 2l-1 6a2 2 0 01-2 2H7"/></symbol><symbol id="c3i-cols" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M9 4v16M15 4v16"/></symbol><symbol id="c3i-fold" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M15 4v16"/></symbol><symbol id="c3i-spark" viewBox="0 0 24 24"><path d="M12 3l2 5 5 2-5 2-2 5-2-5-5-2 5-2z"/></symbol><symbol id="c3i-target" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="5"/><circle cx="12" cy="12" r="1"/></symbol><symbol id="c3i-filter" viewBox="0 0 24 24"><path d="M3 5h18l-7 8v6l-4-2v-4z"/></symbol><symbol id="c3i-mail" viewBox="0 0 24 24"><rect x="3" y="5" width="18" height="14" rx="2"/><path d="M3 7l9 6 9-6"/></symbol><symbol id="c3i-lock" viewBox="0 0 24 24"><rect x="5" y="11" width="14" height="10" rx="2"/><path d="M8 11V8a4 4 0 018 0v3"/></symbol><symbol id="c3i-play" viewBox="0 0 24 24"><path d="M7 4l13 8-13 8z"/></symbol><symbol id="c3i-stop" viewBox="0 0 24 24"><rect x="6" y="6" width="12" height="12" rx="1"/></symbol><symbol id="i-pause" viewBox="0 0 24 24"><path d="M8 5v14M16 5v14"/></symbol><symbol id="c3i-prev" viewBox="0 0 24 24"><path d="M15 6l-6 6 6 6"/></symbol><symbol id="c3i-next" viewBox="0 0 24 24"><path d="M9 6l6 6-6 6"/></symbol><symbol id="c3i-tree" viewBox="0 0 24 24"><path d="M5 4h7v4H5zM13 10h7v4h-7zM13 17h7v4h-7zM8 8v11h5M8 12h5"/></symbol><symbol id="c3i-org" viewBox="0 0 24 24"><path d="M9 3h6v5H9zM3 16h6v5H3zM15 16h6v5h-6zM12 8v4M6 16v-4h12v4"/></symbol><symbol id="c3i-drop" viewBox="0 0 24 24"><path d="M12 3c4 5 6 8 6 11a6 6 0 01-12 0c0-3 2-6 6-11z"/></symbol><symbol id="c3i-more" viewBox="0 0 24 24"><path d="M5 12h.01M12 12h.01M19 12h.01" stroke-width="3"/></symbol><symbol id="c3i-zin" viewBox="0 0 24 24"><circle cx="11" cy="11" r="7"/><path d="M21 21l-5-5M8 11h6M11 8v6"/></symbol><symbol id="c3i-zout" viewBox="0 0 24 24"><circle cx="11" cy="11" r="7"/><path d="M21 21l-5-5M8 11h6"/></symbol><symbol id="c3i-bell" viewBox="0 0 24 24"><path d="M6 17v-6a6 6 0 0112 0v6l2 2H4zM10 21h4"/></symbol><symbol id="c3i-vol" viewBox="0 0 24 24"><path d="M4 9v6h4l5 4V5L8 9zM16.5 8.5a5 5 0 010 7M19 6a8.5 8.5 0 010 12"/></symbol><symbol id="c3i-menu" viewBox="0 0 24 24"><path d="M4 7h16M4 12h16M4 17h16"/></symbol><symbol id="c3i-edit" viewBox="0 0 24 24"><path d="M4 20h4L19 9l-4-4L4 16v4zM13.5 6.5l4 4"/></symbol><symbol id="c3i-trash" viewBox="0 0 24 24"><path d="M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13"/></symbol><symbol id="c3i-bold" viewBox="0 0 24 24"><path d="M7 4h6a4 4 0 010 8H7zM7 12h7a4 4 0 010 8H7z"/></symbol><symbol id="c3i-italic" viewBox="0 0 24 24"><path d="M10 4h8M6 20h8M14 4l-4 16"/></symbol><symbol id="c3i-code" viewBox="0 0 24 24"><path d="M8 7l-5 5 5 5M16 7l5 5-5 5"/></symbol><symbol id="c3i-link" viewBox="0 0 24 24"><path d="M10 14a4 4 0 006 0l3-3a4 4 0 00-6-6l-1 1M14 10a4 4 0 00-6 0l-3 3a4 4 0 006 6l1-1"/></symbol><symbol id="c3i-ul" viewBox="0 0 24 24"><path d="M9 6h11M9 12h11M9 18h11M4.5 6h.01M4.5 12h.01M4.5 18h.01" /></symbol><symbol id="c3i-ol" viewBox="0 0 24 24"><path d="M10 6h10M10 12h10M10 18h10M4 4h1v4M4 8h2M4 14.5c0-1 2-1 2 0s-2 2-2 3.5h2"/></symbol><symbol id="c3i-task" viewBox="0 0 24 24"><rect x="3" y="4" width="6" height="6" rx="1"/><path d="M4.5 7l1 1 2-2M12 7h9M3 14h6v6H3zM12 17h9"/></symbol><symbol id="c3i-quote" viewBox="0 0 24 24"><path d="M4 6h16M8 12h12M8 18h12M4 11v8"/></symbol><symbol id="c3i-table" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M3 10h18M3 15h18M10 4v16"/></symbol><symbol id="c3i-hr" viewBox="0 0 24 24"><path d="M3 12h18M7 6h10M7 18h10"/></symbol><symbol id="c3i-redo" viewBox="0 0 24 24"><path d="M20 12a8 8 0 11-8-8M20 4v6h-6"/></symbol><symbol id="c3i-git" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M3 12h6M15 12h6"/></symbol><symbol id="c3i-md" viewBox="0 0 24 24"><rect x="2" y="5" width="20" height="14" rx="2"/><path d="M6 15V9l3 3 3-3v6M16 9v6M14 13l2 2 2-2"/></symbol><symbol id="c3i-copy" viewBox="0 0 24 24"><rect x="8" y="8" width="12" height="12" rx="2"/><path d="M16 8V5a1 1 0 00-1-1H5a1 1 0 00-1 1v10a1 1 0 001 1h3"/></symbol>';
8
+
9
+ /** Link console3.css once, from this module's own folder (the same way primitives.js links components.css). */
10
+ export function ensureC3Css() {
11
+ if (typeof document === 'undefined' || document.querySelector('link[data-c3]')) return;
12
+ const l = document.createElement('link');
13
+ l.rel = 'stylesheet';
14
+ l.href = new URL('./console3.css', import.meta.url).href;
15
+ l.setAttribute('data-c3', '');
16
+ document.head.appendChild(l);
17
+ if (!document.getElementById('c3-sprite') && document.body) {
18
+ const d = document.createElement('div');
19
+ d.id = 'c3-sprite';
20
+ d.className = 'c3-sprite';
21
+ d.setAttribute('aria-hidden', 'true');
22
+ d.innerHTML = '<svg width="0" height="0" aria-hidden="true"><defs>' + SPRITE + '</defs></svg>';
23
+ document.body.appendChild(d);
24
+ }
25
+ }
26
+
27
+ /** The mockup's ic(): <svg class="ic sm"><use href="#c3i-name"/></svg>. */
28
+ export function c3ic(name, cls) {
29
+ const s = document.createElementNS(SVG_NS, 'svg');
30
+ s.setAttribute('class', 'ic' + (cls ? ' ' + cls : ''));
31
+ s.setAttribute('aria-hidden', 'true');
32
+ const u = document.createElementNS(SVG_NS, 'use');
33
+ u.setAttribute('href', '#c3i-' + name);
34
+ s.appendChild(u);
35
+ return s;
36
+ }
37
+
38
+ /** The mockup's `.ph` phone class, driven by one media query so the view and a real phone behave the same. Returns the stop function. */
39
+ export function c3Phone(root) {
40
+ if (typeof matchMedia !== 'function') return () => {};
41
+ const q = matchMedia('(max-width:640px)');
42
+ const on = () => root.classList.toggle('ph', q.matches);
43
+ on();
44
+ if (q.addEventListener) q.addEventListener('change', on); else q.addListener(on);
45
+ return () => { if (q.removeEventListener) q.removeEventListener('change', on); else q.removeListener(on); };
46
+ }
47
+
@@ -11,7 +11,7 @@
11
11
  import { el } from './dom.js';
12
12
  import { icon, pbtn, plural } from './c3-ini-ui.js';
13
13
  import { pmGet, pmPost } from './http.js';
14
- import { ensureC3Css } from './pm-work-view.js';
14
+ import { ensureC3Css } from './c3-base.js';
15
15
 
16
16
  const q = new URLSearchParams(location.search);
17
17
  const KIND = ['deck', 'doc', 'page'].includes(q.get('pkind')) ? q.get('pkind') : 'page';
@@ -25,7 +25,7 @@
25
25
  */
26
26
  import { el, frag } from './dom.js';
27
27
  import { button, ensureComponentsCss } from './primitives.js';
28
- import { c3ic } from './pm-work-view.js';
28
+ import { c3ic } from './c3-base.js';
29
29
  import { makeXp, attachExpand } from './c3-expand.js';
30
30
 
31
31
  export const CATS = ['Discover', 'Plan', 'Do', 'Learn'];
@@ -17,7 +17,7 @@
17
17
  * Pure parts (Node-testable): trapNext, dragDismiss, bodyNodes, DRAG_CLOSE.
18
18
  */
19
19
  import { el } from './dom.js';
20
- import { ensureC3Css, c3ic, c3Phone } from './pm-work-view.js';
20
+ import { ensureC3Css, c3ic, c3Phone } from './c3-base.js';
21
21
 
22
22
  export const DRAG_CLOSE = 90;
23
23
 
@@ -2,7 +2,7 @@
2
2
  * Undo button when the action can be taken back. One at a time. Two call shapes: toast('text', undoFn) like the mockup, or
3
3
  * toast({ text, actionLabel, onAction, timeout, tone }) for a view that names its own button. The CSS is `.c3 .toast` in console3.css. */
4
4
  import { el } from './dom.js';
5
- import { ensureC3Css } from './pm-work-view.js';
5
+ import { ensureC3Css } from './c3-base.js';
6
6
 
7
7
  let host = null; let timer = null;
8
8
  export function toast(arg, undo) {
@@ -2419,3 +2419,6 @@
2419
2419
  .c3 [data-c3pg="mentions"] .mn-acts{display:flex;flex-wrap:wrap;gap:var(--sp-2);margin-top:4px}
2420
2420
  .c3 [data-c3pg="mentions"] .mn-tabs{flex-wrap:wrap;margin-bottom:var(--sp-2)}
2421
2421
  .c3 [data-c3pg="mentions"] .sh2{justify-content:space-between}
2422
+
2423
+ /* c3-base.js: the icon sprite holder */
2424
+ .c3-sprite{position:absolute;width:0;height:0;overflow:hidden}
@@ -104,6 +104,7 @@ body.cz-home { min-height: 100vh; overflow: hidden; }
104
104
  .hm-ckh b { font-weight: 700; color: var(--cz-ink); } .hm-ckh span { margin-left: auto; color: var(--cz-ink3); }
105
105
  .hm-it { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 13px; color: var(--cz-ink2); border: 0; background: none; padding: 0; width: 100%; text-align: left; font-family: var(--cz-sans); }
106
106
  .hm-it .l { flex: 1; min-width: 0; }
107
+ .hm-it .l small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--cz-ink3); }
107
108
  .hm-it.donerow { cursor: pointer; } .hm-it.donerow .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
108
109
  .hm-mk { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; box-sizing: border-box; font-size: 11px; font-weight: 800; }
109
110
  .hm-mk.done { background: var(--cz-done); color: var(--cz-onsolid); }
@@ -219,6 +220,10 @@ body.cz-home { min-height: 100vh; overflow: hidden; }
219
220
  .hm-pmenu[hidden] { display: none; }
220
221
  .hm-pmenu button { border: 0 !important; border-radius: 10px !important; text-align: left; }
221
222
  .hm-addm { left: 0; right: auto; bottom: 44px; min-width: 240px; } /* the box's + menu: Attach a file, Notes, the terminal */
223
+ /* testing fixes: in the basic box the + sits at the right end of the In: row, so its menu opens from the right edge, never past the screen;
224
+ the floating menu button steps aside while it is open, so nothing covers it */
225
+ .hm-scope .hm-addm { left: auto; right: 0; max-width: calc(100vw - 32px); }
226
+ body:has(.hm-addm:not([hidden])) .cz-fab { visibility: hidden; }
222
227
  .hm-addm button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 44px; padding: 6px 10px; background: none; color: var(--cz-ink); cursor: pointer; font-family: var(--cz-sans); font-size: 13.5px; }
223
228
  .hm-addm button:hover, .hm-addm button:focus-visible { background: var(--cz-well); }
224
229
  .hm-addm em { font-style: normal; font-size: 11.5px; color: var(--cz-ink3); }
@@ -264,7 +269,7 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
264
269
  .hm-att em { font-style: normal; color: var(--cz-ink3); white-space: nowrap; }
265
270
  .hm-ath { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; margin-left: -6px; }
266
271
  .hm-att button { border: 0; background: none; cursor: pointer; width: 28px; height: 28px; border-radius: 999px; color: var(--cz-ink3); }
267
- @media (pointer: coarse), (max-width: 760px) { .hm-att button { width: 44px; height: 44px; margin: -8px -6px -8px -10px; } .hm-scope .hm-tool { width: 44px; height: 44px; } }
272
+ @media (pointer: coarse), (max-width: 760px) { .hm-att button { width: 44px; height: 44px; margin: -8px -6px -8px -10px; } .hm-tb .hm-tool { width: 44px; height: 44px; } }
268
273
  .hm-chat.hm-drop { outline: 2px dashed var(--cz-blue); outline-offset: -8px; }
269
274
  .hm-scope { display: flex; align-items: center; gap: 8px; }
270
275
  .hm-scope .sp { flex: 1; }
@@ -282,9 +287,10 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
282
287
  @supports (anchor-name: --hm-anc) { .hm-menu { position-anchor: --hm-anc; left: anchor(left); top: anchor(bottom); bottom: auto; margin: 6px 0; position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline; } }
283
288
  /* on a phone the menu is always the sheet at the bottom: the buttons that open it sit low on the screen, so a menu under them would leave it */
284
289
  @media (max-width: 760px) { .hm-menu.hm-menu { position-anchor: auto; left: 12px; top: auto; bottom: 12px; margin: 0; }
285
- .hm-menu.hm-menu.top { left: auto; right: 12px; top: 64px; bottom: auto; max-height: calc(100vh - 80px); } } /* the ⋯ menu of the top bar opens under its button */
290
+ .hm-menu.hm-menu.top { left: auto; right: 12px; top: 64px; bottom: auto; max-height: calc(100vh - 80px); } } /* top: set from the button when it opened the menu */ /* the ⋯ menu of the top bar opens under its button */
286
291
  .hm-ml { margin: 6px 10px; font-size: 11px; font-weight: 700; color: var(--cz-ink3); }
287
- .hm-menu button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 12px; background: none; color: var(--cz-ink); cursor: pointer; text-align: left; font-family: var(--cz-sans); font-size: 13.5px; }
292
+ .hm-menu button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 44px; flex-shrink: 0; /* a long row keeps its height in a menu that scrolls (testing fixes: rows drew over each other) */
293
+ padding: 6px 10px; border: 0; border-radius: 12px; background: none; color: var(--cz-ink); cursor: pointer; text-align: left; font-family: var(--cz-sans); font-size: 13.5px; }
288
294
  .hm-menu button:hover, .hm-menu button:focus-visible { background: var(--cz-well); }
289
295
  .hm-menu em { font-style: normal; font-size: 12px; color: var(--cz-ink3); }
290
296
  .hm-toast { position: fixed; z-index: 90; left: 50%; bottom: 28px; transform: translate(-50%, 20px); max-width: min(520px, calc(100vw - 32px)); padding: 10px 16px; border-radius: 14px; background: var(--cz-ink); color: var(--cz-card); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
@@ -414,12 +420,14 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
414
420
  .hm-peek[hidden] { display: none; }
415
421
  .hm-peek span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
416
422
  .hm-peek em { font-style: normal; font-weight: 700; color: var(--cz-blueink); }
417
- .hm-slash { display: flex; flex-direction: column; padding: 6px; border-radius: 16px; background: var(--cz-card); box-shadow: var(--cz-sheet); border: 1px solid var(--cz-hair); }
423
+ .hm-slash { display: flex; flex-direction: column; max-height: min(320px, 45vh); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border-radius: 16px; background: var(--cz-card); box-shadow: var(--cz-sheet); border: 1px solid var(--cz-hair); }
418
424
  .hm-slash[hidden] { display: none; }
419
- .hm-slash button { display: flex; align-items: baseline; gap: 10px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left; color: var(--cz-ink); font-family: var(--cz-sans); }
425
+ .hm-slash button { display: flex; flex-direction: column; align-items: stretch; gap: 1px; min-height: 40px; flex-shrink: 0; padding: 6px 10px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left; color: var(--cz-ink); font-family: var(--cz-sans); }
420
426
  .hm-slash button[aria-selected="true"], .hm-slash button:hover { background: var(--cz-well); }
421
427
  .hm-slash code { font-family: var(--cz-mono); font-size: 12px; color: var(--cz-blueink); }
422
- .hm-slash em { font-style: normal; font-size: 12px; color: var(--cz-ink3); }
428
+ .hm-slash em { font-style: normal; font-size: 12px; color: var(--cz-ink3); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
429
+ .hm-slash .l1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
430
+ .hm-slash .l1 b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
423
431
  .hm-scope + .hm-files { margin-bottom: 6px; }
424
432
  /* the phone moment card (home-phone-card.js) at the top of the phone's sheet; not in the Agreed design, so marked Waiting for design */
425
433
  .hm-phc { display: grid; gap: 6px; margin: 2px 2px 14px; padding: 14px 16px; border-radius: 18px; background: var(--cz-card); box-shadow: inset 3px 0 0 var(--cz-blue), var(--cz-float); color: var(--cz-ink); }
@@ -440,6 +448,13 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
440
448
  .hm-phc .phstats div { display: grid; padding: 8px 10px; border-radius: 12px; background: var(--cz-well); }
441
449
  .hm-phc .phstats b { font-size: 20px; }
442
450
  .hm-phc .phstats span { font-size: 12px; color: var(--cz-ink3); }
451
+ /* the evening recap's What moved: plain rows, a quiet kind word, the text clamped to two lines, where it came from under it */
452
+ .hm-phc .phmv { display: grid; gap: 8px; margin-top: 4px; }
453
+ .hm-phc .phmv p { display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; margin: 0; font-size: 13px; line-height: 1.4; color: var(--cz-ink); }
454
+ .hm-phc .phmv p b { font-size: 12px; font-weight: 700; color: var(--cz-ink3); }
455
+ .hm-phc .phmv p span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
456
+ .hm-phc .phmv p em { grid-column: 2; font-style: normal; font-size: 12px; color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
457
+ .hm-phc .phq { color: var(--cz-ink3); }
443
458
 
444
459
  /* the first-run card after an import (premium-first.js): plain, Waiting for design */
445
460
  .hm-first { display: grid; gap: 8px; margin: 2px 2px 14px; padding: 14px 16px; border-radius: 18px; background: var(--cz-card); box-shadow: var(--cz-float); color: var(--cz-ink); }
@@ -134,9 +134,9 @@ body.cz-home .hm-r.lr .hm-tile { width: 32px; height: 32px; }
134
134
  .hm-all { display: none; }
135
135
 
136
136
  /* ── the small menus: the products picker and Later (home-app.js menu()) ── */
137
- .hm-menu .ut-mi { flex-direction: row; align-items: center; gap: 10px; min-height: 40px; }
137
+ .hm-menu .ut-mi { flex-shrink: 0; flex-direction: row; align-items: center; gap: 10px; min-height: 40px; }
138
138
  .hm-menu .ut-mi.tall { min-height: 52px; }
139
- .hm-menu .ut-mi > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
139
+ .hm-menu .ut-mi > span:not(.ut-it) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
140
140
  .hm-menu .ut-mi .k { margin-left: auto; font-size: 12px; color: var(--cz-ink3); font-weight: 600; flex: none; }
141
141
  .hm-menu .ut-mi svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; color: var(--cz-ink2); flex: none; }
142
142
  .hm-menu .ut-it { width: 28px; height: 28px; border-radius: 9px; background: var(--cz-well2); color: var(--cz-ink2); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex: none; }
@@ -198,7 +198,7 @@ body.cz-home .hm-r.lr .hm-tile { width: 32px; height: 32px; }
198
198
  body.cz-home .hm-top .hm-back { display: grid; }
199
199
  body.cz-home .hm-top { background: var(--cz-card); padding: 8px 12px 4px 8px; }
200
200
  body.cz-home:not(.hm-plist) { background: var(--cz-card); }
201
- .hm-flt .dk, .hm-un { display: none; }
201
+ .hm-flt.dk, .hm-un { display: none; }
202
202
  .hm-all { display: flex; }
203
203
  body.cz-home .hm-r.lr .hm-rm, body.cz-home .hm-r.lr.kid .hm-rm { min-height: 48px; }
204
204
  .hm-tc .ut-btn, .ut-dec .ut-btn, .ut-vc .ut-btn { height: 44px; }
@@ -215,3 +215,4 @@ body.cz-home .hm-r.lr .hm-tile { width: 32px; height: 32px; }
215
215
  .ut-dec .ut-acts .ut-btn { height: 48px; }
216
216
  }
217
217
  .hm-top .hm-back { display: none; }
218
+ /* the Focus chip beside the filters (testing fixes: it came over from the My work page) */