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
@@ -1,104 +0,0 @@
1
- /* pm/flag-picker.js — choose launch flags for a Claude session (initiative workspace-launch-flags).
2
- *
3
- * One picker, two places: Settings (the defaults every new session starts with) and the New session form (this
4
- * session only). It draws the list the server serves at /api/claude-flags — every flag `claude --help` names — and
5
- * holds NO state of its own: the caller keeps `chosen` ([{flag, value}]) and `filter`, passes them in, and redraws
6
- * when `onChange` / `onFilter` fire. Text inputs commit on Enter or blur (the `field` primitive), so a redraw never
7
- * lands between keystrokes and takes the caret with it.
8
- *
9
- * What a flag that takes a value offers, in order:
10
- * choices `claude --help` states the complete set → a select, nothing else can be sent
11
- * suggestions common values → chips to pick from, and the field still accepts another
12
- * example free text, a path or JSON → the placeholder says what shape it is
13
- * A flag PMOS answers itself (--model, --worktree …) or one that needs --print is listed, greyed, with the reason, and
14
- * cannot be switched on. The server refuses the same flags, so this is a courtesy, not the guard.
15
- */
16
- import { el } from './dom.js';
17
- import { button, field, badge } from './primitives.js';
18
-
19
- /** The flags worth one tap. Not a limit: every offered flag is in the list below them. */
20
- export const QUICK_FLAGS = Object.freeze(['--chrome', '--continue', '--permission-mode', '--add-dir', '--verbose', '--bare']);
21
-
22
- const find = (chosen, f) => (chosen || []).find((x) => x.flag === f);
23
-
24
- /** `--chrome --permission-mode=plan`, or '' when nothing is chosen. */
25
- export function flagsLine(chosen) {
26
- return (chosen || []).map((x) => (x.value && String(x.value).trim() ? x.flag + '=' + String(x.value).trim() : x.flag)).join(' ');
27
- }
28
-
29
- /** The flags that need a value and have none yet: [flagName]. The session cannot start with these. */
30
- export function flagsMissingValue(list, chosen) {
31
- const by = new Map(((list && list.flags) || []).map((f) => [f.flag, f]));
32
- return (chosen || []).filter((x) => by.get(x.flag) && by.get(x.flag).value === 'required' && !String(x.value || '').trim()).map((x) => x.flag);
33
- }
34
-
35
- /** What goes on the wire: [{flag, value?}], or undefined for none. */
36
- export function flagsWire(chosen) {
37
- const out = (chosen || []).map((x) => ({ flag: x.flag, ...(x.value && String(x.value).trim() ? { value: String(x.value).trim() } : {}) }));
38
- return out.length ? out : undefined;
39
- }
40
-
41
- function valueEditor(f, cur, set) {
42
- const label = 'Value for ' + f.flag;
43
- if (Array.isArray(f.choices) && f.choices.length) {
44
- return el('div', { class: 'fr-fp-val' },
45
- field({ label, hideLabel: true, kind: 'select', value: cur.value || '', attrs: { 'data-fp-value': f.flag },
46
- options: [{ value: '', label: 'Choose a value…' }, ...f.choices.map((c) => ({ value: c, label: c }))], onCommit: (v) => set(v) }),
47
- el('span', { class: 'fr-fp-note' }, 'One of ' + f.choices.length + ', as `claude --help` lists them.'));
48
- }
49
- const sg = Array.isArray(f.suggestions) ? f.suggestions : [];
50
- return el('div', { class: 'fr-fp-val' },
51
- field({ label, hideLabel: true, value: cur.value || '', placeholder: f.example || f.arg || 'value', attrs: { 'data-fp-value': f.flag }, onCommit: (v) => set(v.trim()) }),
52
- sg.length ? el('div', { class: 'fr-fp-chips', role: 'group', 'aria-label': 'Suggested values for ' + f.flag },
53
- sg.map((v) => button({ label: v, variant: 'outline', size: 'sm', attrs: { class: 'fr-fp-chip', 'aria-pressed': v === cur.value ? 'true' : 'false', 'data-fp-suggest': f.flag }, onClick: () => set(v) }))) : null,
54
- el('span', { class: 'fr-fp-note' }, sg.length ? 'Suggestions. You can type another value.' : 'Free text' + (f.arg ? ' ' + f.arg : '') + '.'));
55
- }
56
-
57
- /**
58
- * @param {{list:{ok:boolean,error?:string,flags:object[]}|null, chosen:Array, filter:string, onChange:(next:Array)=>void,
59
- * onFilter:(q:string)=>void, quick?:boolean}} o
60
- */
61
- export function flagPicker({ list, chosen, filter, onChange, onFilter, quick = true, compact = false }) {
62
- const root = el('div', { class: 'fr-fp', 'data-fp': 'root' });
63
- if (!list) { root.append(el('p', { class: 'fr-fp-note' }, 'Reading the flag list…')); return root; }
64
- if (list.ok === false) {
65
- root.append(el('p', { class: 'fr-fp-note fp-bad', role: 'alert' }, 'The flag list could not be read — ' + (list.error || 'no reason given') + '. No flag can be added.'));
66
- return root;
67
- }
68
- const all = list.flags || [];
69
- const toggle = (f, on) => {
70
- const cur = (chosen || []).filter((x) => x.flag !== f.flag);
71
- onChange(on ? [...cur, { flag: f.flag, value: '' }] : cur);
72
- };
73
- const setValue = (f, v) => onChange((chosen || []).map((x) => (x.flag === f.flag ? { ...x, value: v } : x)));
74
-
75
- if (quick) {
76
- const qs = QUICK_FLAGS.map((n) => all.find((f) => f.flag === n)).filter((f) => f && f.offered);
77
- root.append(el('div', { class: 'fr-fp-chips', role: 'group', 'aria-label': 'Common flags' },
78
- qs.map((f) => button({ label: f.flag, variant: 'outline', size: 'sm', attrs: { class: 'fr-fp-chip', 'aria-pressed': find(chosen, f.flag) ? 'true' : 'false', 'data-fp-quick': f.flag }, onClick: () => toggle(f, !find(chosen, f.flag)) }))));
79
- }
80
- if (compact) {
81
- // only what is switched on gets an editor; the full list opens on request
82
- for (const f of all.filter((x) => find(chosen, x.flag) && x.value !== 'none')) root.append(el('div', { class: 'fr-fp-row', 'data-fp-row': f.flag }, el('code', { class: 'fr-fp-head' }, f.flag + (f.arg ? ' ' + f.arg : '')), valueEditor(f, find(chosen, f.flag), (v) => setValue(f, v))));
83
- return root;
84
- }
85
- root.append(field({ label: 'Search flags', hideLabel: true, value: filter || '', placeholder: 'Search flags, e.g. chrome, permission, mcp (Enter)', attrs: { 'data-fp-filter': '1' }, onCommit: (v) => onFilter(v) }));
86
-
87
- const q = String(filter || '').trim().toLowerCase();
88
- const rows = all.filter((f) => !q || (f.flag + ' ' + (f.aliases || []).join(' ') + ' ' + f.description).toLowerCase().includes(q))
89
- // what is switched on comes first, so its value editor is not buried in a list of 64
90
- .sort((a, b) => (find(chosen, b.flag) ? 1 : 0) - (find(chosen, a.flag) ? 1 : 0));
91
- root.append(el('div', { class: 'fr-fp-list', 'data-fp': 'list' },
92
- rows.length ? rows.map((f) => {
93
- const cur = find(chosen, f.flag);
94
- const box = field({ kind: 'check', label: f.flag + (f.arg ? ' ' + f.arg : ''), value: !!cur, attrs: { 'data-fp-flag': f.flag, ...(f.offered ? {} : { disabled: true }) }, onCommit: (on) => toggle(f, on) });
95
- return el('div', { class: 'fr-fp-row' + (f.offered ? '' : ' fr-fp-row--off'), 'data-fp-row': f.flag },
96
- el('div', { class: 'fr-fp-head' }, box,
97
- (f.aliases || []).length ? el('span', { class: 'fr-fp-note' }, f.aliases.join(' ')) : null,
98
- f.caution ? badge({ text: 'Skips safety checks', tone: 'warning' }) : null,
99
- f.offered ? null : badge({ text: 'Not offered' })),
100
- el('p', { class: 'fr-fp-note' }, f.offered ? f.description : f.why_not),
101
- cur && f.value !== 'none' ? valueEditor(f, cur, (v) => setValue(f, v)) : null);
102
- }) : el('p', { class: 'fr-fp-note' }, 'No flag matches “' + (filter || '') + '”.')));
103
- return root;
104
- }
@@ -1,278 +0,0 @@
1
- /* pm/frame-copy.js — every string of the frame: the top bar, the dock, the phone chrome and the Settings destination
2
- * (pm-os-absorb Run 3, slice 3A; PRD R9, R10, R15).
3
- *
4
- * Pure data, no import: glossary.test.js loads this file in Node and holds every string, and guide/layout.md, to the R2
5
- * rules. The words follow the PMOS-STE instructional register: short sentences, one instruction each, the active voice.
6
- */
7
-
8
- /** One sentence naming where detection looked, built from /api/profiles `searched` (names only). */
9
- function P_searched(sr) {
10
- const files = sr.files && sr.files.length ? 'read ' + sr.files.join(', ') : 'found no shell start-up file';
11
- const dirs = sr.folders && sr.folders.length ? '; folders ' + sr.folders.map((f) => f.name + (f.claude ? '' : ' (no Claude files in it)')).join(', ') : '; no ~/.claude-<name> folder';
12
- const lau = sr.launchers && sr.launchers.length ? '; launchers ' + sr.launchers.join(', ') : '';
13
- return 'Looked: ' + files + dirs + lau + '. Press Look again after you add one.';
14
- }
15
-
16
- export const COPY = {
17
- repo: {
18
- all: 'All repositories',
19
- none: 'No repository',
20
- menu: 'Choose a repository',
21
- open: (name) => 'Repository: ' + name + '. Choose a repository.',
22
- branches: 'Branches and sessions',
23
- },
24
- branches: {
25
- title: 'Branches and sessions',
26
- sub: (trees, live) => trees + (trees === 1 ? ' branch' : ' branches') + ' · ' + live + ' live ' + (live === 1 ? 'session' : 'sessions'),
27
- none: 'Add a repository to see its branches.',
28
- noTrees: 'This repository has no working tree the workspace can read.',
29
- hint: 'Every branch and the sessions running in it',
30
- },
31
- nav: {
32
- label: 'Destinations',
33
- today: 'Agenda',
34
- mywork: 'My work',
35
- initiatives: 'Initiatives',
36
- board: 'Board',
37
- reports: 'Reports',
38
- docs: 'Docs',
39
- notes: 'Notes',
40
- people: 'People',
41
- agent: 'Agent',
42
- settings: 'Settings',
43
- },
44
- /** The Today count on the top bar and on the phone tab, for a screen reader. */
45
- needs: (n) => (n === 1 ? '1 needs you' : n + ' need you'),
46
- /** My work's count on the top bar, for a screen reader (initiative my-work). */
47
- toBrief: (n) => (n === 1 ? '1 item to brief' : n + ' items to brief'),
48
- search: 'Search or capture',
49
- searchKey: '⌘K',
50
- sync: {
51
- label: 'Sync',
52
- busy: 'Syncing',
53
- title: 'Sync this repository: fetch, bring in the work of the other machine, record your changes, push.',
54
- done: 'The repository is in sync.',
55
- stopped: (step, why) => 'Sync stopped at ' + step + ': ' + why,
56
- /** Sync stopped because both machines changed the same lines. The PM chooses which version to keep. */
57
- conflict: {
58
- title: 'Both machines changed the same files',
59
- sub: (files) => (files.length ? files.join(', ') : 'Git did not name the files.'),
60
- body: 'Nothing changed. Choose which version to keep in these files. All other changes from both machines are kept.',
61
- push: 'Push this machine’s version',
62
- pull: 'Pull the other machine’s version',
63
- cancel: 'Not now',
64
- },
65
- },
66
- settings: 'Settings',
67
- dock: {
68
- open: 'Open the agent dock (⌘J)',
69
- fold: 'Fold the agent dock (⌘J)',
70
- focus: 'Focus',
71
- unfocus: 'Exit focus',
72
- focusTitle: 'Give the dock the whole window (⌘⇧J)',
73
- unfocusTitle: 'Show the page beside the dock again (⌘⇧J)',
74
- dockSize: 'Dock size',
75
- dockSizeMenu: 'Choose dock size',
76
- sizeNormal: 'Normal',
77
- sizeHalf: 'Half the window',
78
- sizeTwoThirds: 'Two-thirds',
79
- sizeWhole: 'Whole window (focus)',
80
- resize: 'Resize the agent dock. Drag, or use the left and right arrow keys. Double-click resets the width.',
81
- session: 'Session',
82
- sessionMenu: 'Start a session',
83
- newSession: 'New session',
84
- withOptions: 'Session with options',
85
- skillsHead: 'Start from a skill',
86
- noSkills: 'No skills to start from.',
87
- skillsUnread: 'The skills list did not load.',
88
- sideTabs: 'Show the sessions as a list at the side',
89
- topTabs: 'Show the sessions as a strip on top',
90
- // 0.55.1 — the dock's session list (dock-sessions.js)
91
- openTab: (title, what) => 'Open ' + title + ' · ' + what,
92
- ds: {
93
- notLinked: 'Not linked',
94
- automatic: 'Automatic',
95
- showAuto: (n) => 'Show automatic (' + n + ')',
96
- hideAuto: 'Hide automatic',
97
- autoHint: 'Sessions the workspace started itself (schedules, the day run, doc sync). Finished or idle ones remove themselves.',
98
- clearEnded: (n) => 'Remove ' + n + ' ended automatic session' + (n === 1 ? '' : 's'),
99
- clearedEnded: (n) => 'Removed ' + n + ' automatic session' + (n === 1 ? '' : 's') + '.',
100
- openTabs: 'Open',
101
- none: 'No sessions yet. Press Session to start one.',
102
- group: 'Show the sessions of',
103
- ended: 'ended',
104
- foldLabel: (t, n, folded) => (folded ? 'Show ' : 'Hide ') + t + ', ' + n + ' session' + (n === 1 ? '' : 's'),
105
- open: (n) => 'Open ' + n,
106
- more: (n) => 'Name, initiative and type of work of ' + n,
107
- end: (n) => 'End ' + n,
108
- endFront: 'End the session in front, or close the tab in front',
109
- endAsk: (n) => 'End “' + n + '”?',
110
- endYes: 'End',
111
- cancel: 'Cancel',
112
- endFailed: 'The session could not be ended.',
113
- endedOne: (n) => 'Ended “' + n + '”.',
114
- endedTree: (n, b) => 'Ended “' + n + '”. Its working copy on ' + b + ' is still there.',
115
- removeCopy: 'Remove working copy',
116
- copyRemoved: (b) => 'Removed the working copy of ' + b + '. The branch is kept.',
117
- copyKept: (why) => 'The working copy stays: ' + why,
118
- newFor: (t) => 'New session for ' + t,
119
- newTitle: 'New session',
120
- newSub: 'Name it, pick where it runs, then pick how it starts.',
121
- name: 'Name',
122
- namePh: 'Empty: named after the skill and initiative',
123
- forLabel: 'For',
124
- noInitiative: 'No initiative',
125
- on: 'On',
126
- auto: (where) => 'Automatic: ' + where,
127
- mainTree: (b) => 'main tree' + (b ? ' (' + b + ')' : ''),
128
- newFolder: (b) => 'new working copy on ' + b,
129
- newBranch: 'New branch…',
130
- branchName: 'Branch name',
131
- needBranch: 'Type a name for the new branch.',
132
- startHead: 'Start',
133
- blank: 'Blank session',
134
- blankMeta: (cli, tier) => (cli === 'claude' ? 'Claude' : 'Shell') + (cli === 'claude' && tier !== 'auto' ? ' · ' + tier : '') + ' · from Settings',
135
- skillsLoading: 'Reading the skills…',
136
- refused: 'The workspace server refused, without saying why.',
137
- metaTitle: 'Session',
138
- type: 'Type of work',
139
- noType: 'No type',
140
- initiative: 'Initiative',
141
- save: 'Save',
142
- saveFailed: 'Nothing was saved.',
143
- types: { research: 'Research', prototype: 'Prototype', prd: 'PRD', build: 'Build', review: 'Review', report: 'Report', general: 'General' },
144
- },
145
- },
146
- detail: { close: 'Close the detail' },
147
- phone: {
148
- back: 'Back',
149
- },
150
- page: {
151
- title: 'Settings',
152
- intro: 'Settings for this workspace. Your work is in Agenda, Initiatives, Board and Reports.',
153
- repos: 'Repositories',
154
- reposEmpty: 'No repository is registered. Add one to start.',
155
- add: 'Add repository',
156
- addClose: 'Close Add repository',
157
- current: 'Current',
158
- use: 'Use this repository',
159
- show: 'Show its initiatives',
160
- rename: 'Rename',
161
- remove: 'Remove from PMOS',
162
- more: (name) => 'More for ' + name,
163
- profiles: 'Profiles',
164
- profilesRow: 'Claude profiles',
165
- profilesMeta: 'Open the profiles a Claude session can start with.',
166
- profilesOpen: 'Open the profiles',
167
- sessions: 'New sessions',
168
- cli: 'Default CLI',
169
- cliShell: 'Shell',
170
- cliClaude: 'Claude',
171
- model: 'Default model',
172
- modelAuto: 'Auto',
173
- modelFast: 'Fast',
174
- modelBalanced: 'Balanced',
175
- modelDeep: 'Deep',
176
- sessionsNote: 'The dock starts new sessions with these defaults. A model, a profile and launch flags apply only to a Claude session. The New session form can change them for one session.',
177
- profileDefault: 'Default Claude profile',
178
- profileDefaultFailed: 'The default profile could not be saved.',
179
- noProfile: 'No profile',
180
- profileMissing: (id) => id + ' (not found now)',
181
- flagsDefault: 'Default launch flags',
182
- flagsNone: 'None. Claude starts with its own defaults.',
183
- flagsAll: 'All flags…',
184
- flagsMissing: (f) => f + ' needs a value, or switch it off. A new session cannot start with it empty.',
185
- flagsHide: 'Hide the flag list',
186
- profileNew: 'New profile',
187
- profilesReading: 'Reading ~/.claude/profiles…',
188
- profilesUnread: (e) => 'The profiles could not be read — ' + (e || 'no reason given'),
189
- profilesFound: (ids, seen) => 'Found ' + ids.length + ': ' + ids.join(', ') + '.' + (seen && seen.length ? ' ' + seen.join(', ') + (seen.length === 1 ? ' was' : ' were') + ' detected from your shell commands or config folders; a session under ' + (seen.length === 1 ? 'it' : 'one') + ' sets only CLAUDE_CONFIG_DIR.' : ''),
190
- profilesNone: (dir, srch) => 'No profile in ' + (dir || '~/.claude/profiles') + ' yet.' + (srch ? ' ' + P_searched(srch) : ''),
191
- profileDefaultBadge: 'Default', profileDetectedBadge: 'Detected', profileUseDefault: 'Use as default', profileNoDefault: 'Stop using as default',
192
- profilesLookAgain: 'Look again',
193
- profileMeta: (x) => x.detected
194
- ? 'Detected from ' + ({ shell: 'a shell command', launcher: 'a launcher script', 'config-dir': 'a config folder' }[x.detected.source] || 'your machine') + ' · sets CLAUDE_CONFIG_DIR'
195
- : [x.label && x.label !== x.id ? x.label : null, x.account, x.env_count ? x.env_count + ' variable' + (x.env_count === 1 ? '' : 's') : null].filter(Boolean).join(' · ') || 'Profile descriptor',
196
- pfId: 'Id (the file name)', pfLabel: 'Label', pfAccount: 'Account, shown as written and not checked', pfMcp: 'MCP server names, declared only',
197
- pfEnvHead: 'Environment variables applied to the session',
198
- pfEnvName: 'Variable name', pfEnvValue: 'Value', pfEnvValuePh: 'value (hidden)', pfAddVar: 'Add variable',
199
- pfNote: 'The values are written to ~/.claude/profiles/<id>.json on this machine, are never shown again and are never sent to the browser. CLAUDE_CONFIG_DIR gives the profile its own Claude login and settings.',
200
- pfCreate: 'Create profile', pfFailed: 'The profile was not created.', cancel: 'Cancel',
201
- pfCreated: (id, n) => 'Created ~/.claude/profiles/' + id + '.json with ' + n + ' environment variable' + (n === 1 ? '' : 's') + '.',
202
- validate: 'Validate consent',
203
- validateOn: 'Validation is on for this repository.',
204
- validateOff: 'Validation is off. Nothing from this repository is sent.',
205
- validateUnread: 'The consent of this repository did not load.',
206
- validateNoRepo: 'Choose a repository to set its consent.',
207
- validateOpen: 'Open Validate',
208
- people: 'People',
209
- peopleOn: 'Calendar attendee names are kept. Agent sessions record who attends each meeting.',
210
- peopleOff: 'Calendar attendee names are not kept. Agent sessions record no one from the calendar.',
211
- peopleNote: 'Keep attendee names from the calendar, for this repository only. Turning it off also hides the names recorded before.',
212
- peopleUnread: 'The People setting of this repository did not load.',
213
- peopleNoRepo: 'Choose a repository to set what People keeps.',
214
- turnOn: 'Turn on',
215
- turnOff: 'Turn off',
216
- theme: 'Theme',
217
- dark: 'Dark',
218
- light: 'Light',
219
- online: 'Online',
220
- onlineIntro: 'Reach this workspace from your phone at your own address. The workspace runs the Cloudflare tunnel, and you sign in with Cloudflare Access (Google or an email code). Only this computer can change it.',
221
- onlineHost: 'Public address',
222
- onlineTunnel: 'Tunnel name',
223
- onlineTeam: 'Cloudflare team domain',
224
- onlineAudience: 'Access audience (AUD) tag',
225
- onlineEmail: 'Email allowed in',
226
- onlineOn: (host) => `Online at https://${host}/`,
227
- onlineOff: 'Offline. Only this computer can reach the workspace.',
228
- onlineRunning: 'The tunnel is running.',
229
- onlineStarting: 'The tunnel is starting.',
230
- onlineExited: (code) => `The tunnel stopped${code == null ? '' : ` (exit code ${code})`}. It starts again in a few seconds. Its log is online-tunnel.log in the workspace state folder.`,
231
- onlineKeysWait: 'Cloudflare\'s sign-in keys are not loaded yet. Sign-ins are refused until they are.',
232
- onlineKeysError: (e) => `Cloudflare\'s sign-in keys did not load (${e}). Check the team domain. Sign-ins are refused until they load.`,
233
- onlineNeedFields: 'Fill in all five fields to turn Online on.',
234
- onlineNoCloudflared: 'cloudflared is not installed. Install it (Mac: brew install cloudflared; Windows: winget install Cloudflare.cloudflared), then turn Online on.',
235
- onlineEnv: (host) => `Online at https://${host}/, set by PMOS_PUBLIC_HOST when the workspace started. It signs in with the token. Restart the workspace without PMOS_PUBLIC_HOST to use this switch.`,
236
- onlineRemote: 'Only the computer that runs the workspace can change this.',
237
- onlineUnread: 'The Online settings did not load.',
238
- onlineRefused: (reason, at) => `The last sign-in at the public address was refused${at ? ` (${at.slice(11, 16)} UTC)` : ''}: ${({
239
- malformed: 'Cloudflare sent no sign-in, or one PMOS cannot read. Check that the Access application covers the public address.',
240
- algorithm: 'the sign-in was not signed the way Cloudflare Access signs.',
241
- 'unknown key': 'it was signed with a key this team does not publish. Check the team domain.',
242
- 'no keys': 'Cloudflare\'s sign-in keys are not loaded. Check the team domain.',
243
- signature: 'its signature did not match. Check the team domain.',
244
- issuer: 'it came from another Cloudflare team. Check the team domain.',
245
- audience: 'it was for another Access application. Check the audience (AUD) tag: copy it from the application for the public address.',
246
- expired: 'it had expired, or this computer\'s clock is wrong. Sign in again.',
247
- 'not yet valid': 'it is not valid yet, so this computer\'s clock is probably wrong.',
248
- email: 'you signed in with another email. The email field must be the address you sign in to Cloudflare with.',
249
- })[reason] || reason}`,
250
- updates: 'Updates',
251
- updatesCheck: 'Check for updates',
252
- updatesChecking: 'Checking for updates…',
253
- updatesApp: (v) => 'Workspace app: ' + (v || 'version not known'),
254
- updatesKit: (v) => 'Kit in this repository: ' + (v || 'version not recorded'),
255
- updatesNoKit: 'This repository has no PMOS kit folder (pmos/), so it has no kit to update.',
256
- updatesNoRepo: 'Choose a repository to see its kit.',
257
- updatesNever: 'Press Check for updates to compare with the latest published version.',
258
- updatesLatest: (v) => 'Latest published version: ' + v + '.',
259
- updatesCurrent: (v) => 'Up to date. The latest published version is ' + v + '.',
260
- updatesLocal: (p) => 'Checking against the local package ' + p + ', not npm. Set PMOS_UPDATE_SOURCE to change this.',
261
- updatesLocalBad: (e) => e,
262
- updatesCheckout: 'This workspace runs from a PMOS checkout. Update it with git pull.',
263
- updatesNote: 'Updating the kit changes only its own files (skills, scripts, templates and guides). Your records in state/, planning/ and okf/product/ do not change.',
264
- updateKitBusy: 'Updating the kit…',
265
- updateKitDone: (v) => 'The kit is now ' + v + '. The changed files are under pmos/, and Sync sends them with your other records.',
266
- updateAll: 'Update',
267
- updateAllTo: (v) => 'Update to ' + v,
268
- updateAppTitle: 'Update the workspace?',
269
- updateAppBody: (from, to) => 'The workspace updates the kit in this repository when it is behind, then stops, installs ' + to + ' in place of ' + from + ', and starts again. This takes about a minute. Sessions keep running in tmux.\n\nThis page reloads when the new version starts. You do not need a terminal.',
270
- updateAppBusy: 'Updating the workspace. This page reloads when the new version starts.',
271
- updateAppSame: (v, log) => 'The workspace started again on ' + v + ', so the update did not finish. The update log is ' + log + '.',
272
- updateAppLost: (log) => 'The workspace did not come back on this address. Type pmos in a terminal to open it. The update log is ' + log + '.',
273
- updateFailed: 'The update did not finish.',
274
- },
275
- };
276
-
277
- /* The rules of glossary.test.js apply to every string above and to guide/layout.md, with no exemption. */
278
- export const GLOSSARY = { guide: 'layout.md' };
@@ -1,149 +0,0 @@
1
- /* pm/freshness-line.js — how old each source of the workspace is (workspace-data-freshness R9).
2
- *
3
- * freshnessLine(ws) → element the console header's short line: when each source was last read ("Calendar read
4
- * 07:15 · Jira status read 08:02"), the old, failed and never-read ones flagged, and
5
- * a refresh icon, always there, that reads every source again. It never says "up to date": the sources
6
- * are read on a schedule, not live (pm/freshness-words.js). Updates itself every 15 s.
7
- * freshnessTable(ws) → element Settings › Data freshness: every source, when it was read, its state, its schedule,
8
- * Refresh, and the repository's Watch for changes switch.
9
- *
10
- * Both read GET /api/sources (lib/routes-sources.js). The presses go through pmPost (the page nonce), so an agent cannot
11
- * make them. When a workspace's data version moves, the line sends `pmos:data-changed` with { ws } on window, so a view
12
- * that wants to read again only on a change can listen for it. One element per ws and kind, kept across redraws, so a
13
- * page that rebuilds its DOM does not start a second poll.
14
- */
15
- import { el, setChildren } from './dom.js';
16
- import { pmGet, pmPost } from './http.js';
17
- import { button, iconButton, SEL } from './primitives.js';
18
- import { lineItems, refreshTargets } from './freshness-words.js';
19
-
20
- const POLL_MS = 15000;
21
- const live = new Map(); // kind|ws -> { node, timer, version }
22
-
23
- const hhmm = (iso) => { const d = new Date(iso); return String(d.getHours()).padStart(2, '0') + ':' + String(d.getMinutes()).padStart(2, '0'); };
24
- function ago(iso) {
25
- if (!iso) return 'never read';
26
- const ms = Date.now() - Date.parse(iso);
27
- if (ms < 60000) return 'just now';
28
- if (ms < 3600000) return Math.round(ms / 60000) + ' min ago';
29
- if (ms < 24 * 3600000) return 'today ' + hhmm(iso);
30
- return Math.round(ms / (24 * 3600000)) + ' d ago';
31
- }
32
- const STATE_WORD = { fresh: 'Recent', stale: 'Old', never: 'Never read', building: 'Reading…', failed: 'Failed', off: 'Off' };
33
- // the colour of a state: a class in components.css (.fr-fresh__state--<state>), coloured from the tokens
34
- const tone = (state) => 'fr-fresh__state fr-fresh__state--' + (STATE_WORD[state] ? state : 'never');
35
- const label = (b, t) => { const l = b.querySelector(SEL.btnLabel); (l || b).textContent = t; };
36
-
37
- async function read(ws) {
38
- const r = await pmGet('/api/sources' + (ws ? '?ws=' + encodeURIComponent(ws) : ''));
39
- return r && r.ok ? r : null;
40
- }
41
- async function refresh(ws, source, btn) {
42
- if (btn) { btn.disabled = true; label(btn, 'Starting…'); }
43
- const r = await pmPost('/api/sources/refresh', { ws, source });
44
- if (btn) label(btn, r && r.ok ? (r.started === 'session' ? 'Agent started' : 'Reading…') : 'Could not start');
45
- return r;
46
- }
47
-
48
- function poll(key, ws, draw) {
49
- let cur = live.get(key);
50
- if (cur) return cur.node;
51
- cur = { node: null, timer: null, version: null };
52
- live.set(key, cur);
53
- const tick = async () => {
54
- const d = await read(ws).catch(() => null);
55
- if (d) {
56
- if (cur.version != null && d.version !== cur.version) {
57
- try { window.dispatchEvent(new CustomEvent('pmos:data-changed', { detail: { ws: d.ws } })); } catch { /* no window */ }
58
- }
59
- cur.version = d.version;
60
- }
61
- draw(cur.node, d);
62
- };
63
- cur.tick = tick;
64
- cur.node = draw(null, null);
65
- tick();
66
- cur.timer = setInterval(() => { if (!cur.node.isConnected && cur.node.dataset.mounted === '1') { clearInterval(cur.timer); live.delete(key); return; } if (cur.node.isConnected) cur.node.dataset.mounted = '1'; tick(); }, POLL_MS);
67
- return cur.node;
68
- }
69
-
70
- /* The line's refresh icon: one press reads every source again (the PM's choice, 2026-10-12). The initiatives rebuild on
71
- * this machine; Calendar, Jira, My work and tracker items each start their agent read. A source already being read, or
72
- * switched off, is left alone. The icon and its result note are kept on the line's element, so a redraw does not lose them. */
73
- function refreshAll(n, d) {
74
- n._frData = d;
75
- if (n._frBtn) return n._frBtn;
76
- const btn = iconButton({ icon: 'refresh-cw', ariaLabel: 'Read every source again', size: 'sm', attrs: { 'data-c3pg': 'freshness-refresh' },
77
- onClick: async () => {
78
- const cur = n._frData;
79
- const ids = refreshTargets(cur.sources);
80
- btn.disabled = true;
81
- note(n, 'Starting ' + ids.length + ' reads…');
82
- const res = await Promise.all(ids.map((id) => pmPost('/api/sources/refresh', { ws: cur.ws, source: id }).catch(() => null)));
83
- const bad = ids.filter((id, i) => !(res[i] && res[i].ok)).map((id) => (cur.sources.find((s) => s.id === id) || {}).label || id);
84
- note(n, bad.length ? 'Could not start: ' + bad.join(', ') : 'Reading ' + ids.length + ' sources again');
85
- const c = live.get('line|' + cur.ws); if (c) c.tick();
86
- setTimeout(() => { btn.disabled = false; note(n, ''); }, 30000);
87
- } });
88
- n._frBtn = btn;
89
- return btn;
90
- }
91
- function note(n, text) {
92
- if (!text) { if (n._frMsg) n._frMsg.remove(); n._frMsg = null; return; }
93
- if (!n._frMsg) { n._frMsg = el('span', { class: 'fr-fresh__note', role: 'status' }); n.append(n._frMsg); }
94
- n._frMsg.textContent = text;
95
- }
96
-
97
- /** The header line: when each source was last read, old, failed and never-read ones flagged. It never claims "up to date". */
98
- export function freshnessLine(ws) {
99
- return poll('line|' + ws, ws, (node, d) => {
100
- const n = node || el('div', { class: 'fr-fresh', 'data-c3pg': 'freshness' });
101
- if (!d) { if (node) setChildren(n, [el('span', { class: tone('never') }, 'Could not read when the sources were read')]); else n.textContent = ''; return n; }
102
- const items = lineItems(d.sources);
103
- const kids = [];
104
- items.forEach((it, i) => {
105
- if (i) kids.push(el('span', { class: 'fr-fresh__sep', 'aria-hidden': 'true' }, '·'));
106
- kids.push(el('span', { class: tone(it.state), title: it.title, 'data-fr-line': it.id }, it.text));
107
- });
108
- kids.push(refreshAll(n, d));
109
- if (n._frMsg) kids.push(n._frMsg);
110
- setChildren(n, kids);
111
- return n;
112
- });
113
- }
114
-
115
- /** The Settings table: every source of the workspace, with Refresh, and the change detector switch. */
116
- export function freshnessTable(ws) {
117
- return poll('table|' + ws, ws, (node, d) => {
118
- const n = node || el('div', { class: 'fr-fresh-table', 'data-fr': 'freshness' });
119
- if (!d) { if (!node) n.textContent = 'Reading…'; return n; }
120
- const th = (t) => el('th', null, t);
121
- const td = (...k) => el('td', null, ...k);
122
- const rows = d.sources.map((s) => {
123
- const btn = button({ label: 'Refresh', size: 'sm', disabled: s.state === 'off' || s.state === 'building',
124
- attrs: { 'data-fr': 'freshness-refresh-' + s.id }, onClick: () => refresh(d.ws, s.id, btn) });
125
- const sched = s.schedule ? [s.schedule.cadence, s.schedule.day, s.schedule.time].filter(Boolean).join(' ') : (s.skill ? 'no schedule' : 'on every change');
126
- return el('tr', { 'data-fr-source': s.id },
127
- td(s.label), td(s.id === 'repository' && s.state === 'fresh' ? 'watching' : s.as_of ? ago(s.as_of) : 'never'), td(el('span', { class: tone(s.state) }, STATE_WORD[s.state] || s.state)),
128
- td(sched), td(btn));
129
- });
130
- const repo = d.sources.find((s) => s.id === 'repository');
131
- const on = !repo || repo.state !== 'off';
132
- // a button, not a checkbox: on a phone every control is 44px high (R27), and a checkbox box is not
133
- const sw = button({ label: on ? 'Stop watching this repository' : 'Watch this repository for changes', size: 'sm',
134
- attrs: { 'data-fr': 'freshness-watch', 'aria-pressed': on ? 'true' : 'false', class: 'fr-fresh-table__watch' },
135
- onClick: async () => {
136
- sw.disabled = true;
137
- const r = await pmPost('/api/sources/watch', { ws: d.ws, on: !on });
138
- if (r && r.ok) { const c = live.get('table|' + ws); if (c) c.tick(); } else { sw.disabled = false; label(sw, 'Could not save'); }
139
- } });
140
- setChildren(n, [
141
- el('table', { class: 'fr-fresh-table__grid' },
142
- el('thead', null, el('tr', null, th('Source'), th('Read'), th('State'), th('Schedule'), th(''))),
143
- el('tbody', null, ...rows)),
144
- sw,
145
- el('p', { class: 'fr-set__note' }, 'The workspace holds no password or token. Calendar, Jira and My work are read by an agent session with your own connection.'),
146
- ]);
147
- return n;
148
- });
149
- }
@@ -1,82 +0,0 @@
1
- /* pm/handoff-box.js — Hand to agent, inside the item sheet (pm-os-absorb Run 1, PRD R14).
2
- *
3
- * Two presses, as the next-step Work path does: the first asks the server what it WOULD start (prepare, which starts
4
- * nothing) and shows it in one line — "Agent will: <first line of the prompt> · <where>" — with the full prompt and the
5
- * branch folded under Details. Go starts exactly that: it sends the hash of the prompt the PM was shown, and the server
6
- * refuses a prompt that changed in the meantime. On success the sheet closes and the new session opens in its terminal tab.
7
- *
8
- * Nothing else starts a session from the Breakdown: no drag, drop or state change calls a handoff route.
9
- */
10
-
11
- import { el } from './dom.js';
12
- import { button, toast } from './primitives.js';
13
- import { COPY } from './breakdown-copy.js';
14
- import { prepareHandoff, goHandoff } from './breakdown-api.js';
15
-
16
- let iniMod = null;
17
- const iniReady = () => (iniMod ? Promise.resolve(iniMod) : import('./panel-initiatives.js').then((m) => { iniMod = m; return m; }).catch(() => null));
18
-
19
- /** Open the terminal tab of a running session, the way next-step-ui.js does after Go. */
20
- export async function openSessionTab(slug, session) {
21
- const m = await iniReady();
22
- if (m && session) m.openTerm(slug, { id: session.id, name: session.name || session.id, st: 'working' });
23
- }
24
-
25
- /**
26
- * handoffBox({ ws, slug, item, sessions, onCancel, onStarted(session) }) -> the box element. It prepares at once.
27
- * `sessions` is the app's session list, used only to name a session the server says is already bound.
28
- */
29
- export function handoffBox({ ws, slug, item, sessions, onCancel, onStarted }) {
30
- const box = el('div', { class: 'bd-handoff', 'data-bd-handoff': item.id, role: 'group', 'aria-label': COPY.handToAgent });
31
- const say = (...kids) => { while (box.firstChild) box.removeChild(box.firstChild); for (const k of kids) if (k) box.appendChild(k); };
32
- const cancel = button({ label: COPY.cancel, variant: 'ghost', attrs: { 'data-bd-handoff-cancel': '' }, onClick: () => { if (onCancel) onCancel(); } });
33
-
34
- const busy = (sessionId) => {
35
- const s = (sessions || []).find((x) => x && x.id === sessionId) || (sessionId ? { id: sessionId, name: sessionId } : null);
36
- say(el('div', { class: 'bd-handoff__line' }, COPY.busy),
37
- el('div', { class: 'bd-handoff__actions' },
38
- s ? button({ label: COPY.openSession, variant: 'outline', attrs: { 'data-bd-handoff-open': '' }, onClick: () => openSessionTab(slug, s) }) : null,
39
- cancel));
40
- };
41
- const failed = (text) => say(el('div', { class: 'bd-handoff__line bd-handoff__error' }, text),
42
- el('div', { class: 'bd-handoff__actions' }, cancel));
43
-
44
- const ready = (prep) => {
45
- const go = button({
46
- label: COPY.go, variant: 'primary', attrs: { 'data-bd-handoff-go': '' },
47
- onClick: async () => {
48
- go.disabled = true;
49
- const out = await goHandoff(ws, item.id, prep.prompt_sha);
50
- if (out && out.ok !== false && out.session) {
51
- if (onStarted) onStarted(out.session);
52
- await openSessionTab(slug, out.session);
53
- toast({ text: COPY.sessionStarted(out.session.name || out.session.id) });
54
- return;
55
- }
56
- if (out && out.session) { busy(out.session); return; }
57
- failed((out && out.error) || 'nothing was started');
58
- },
59
- });
60
- const facts = el('dl', { class: 'bd-handoff__facts' },
61
- el('dt', null, COPY.branch), el('dd', null, (prep.details && prep.details.branch) || prep.where || ''),
62
- el('dt', null, COPY.folder), el('dd', null, (prep.details && prep.details.tree) || ''));
63
- say(el('div', { class: 'bd-handoff__line', 'data-bd-handoff-line': '' }, prep.line || COPY.agentWill(prep.first || '', prep.where || '')),
64
- el('div', { class: 'bd-handoff__actions' }, go, cancel),
65
- el('details', { class: 'bd-handoff__details' },
66
- el('summary', null, COPY.details),
67
- el('pre', { class: 'bd-handoff__prompt' }, prep.prompt || ''),
68
- facts));
69
- go.focus({ preventScroll: true });
70
- // the whole box in view, above the sheet's sticky action row (scroll-margin in components.css)
71
- if (typeof box.scrollIntoView === 'function') box.scrollIntoView({ block: 'nearest' });
72
- };
73
-
74
- say(el('div', { class: 'bd-handoff__line bd-muted' }, COPY.preparing), el('div', { class: 'bd-handoff__actions' }, cancel));
75
- prepareHandoff(ws, item.id).then((out) => {
76
- if (!box.isConnected && !box.parentNode) return;
77
- if (out && out.ok !== false) ready(out);
78
- else if (out && out.session) busy(out.session);
79
- else failed((out && out.error) || 'could not prepare');
80
- });
81
- return box;
82
- }