create-pmos 0.399.0 → 0.400.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 (421) hide show
  1. package/package.json +18 -13
  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 +2 -2
  8. package/workspace/briefing-premium-doc-edit-test.js +2 -8
  9. package/workspace/briefing-premium-test.js +3 -2
  10. package/workspace/briefing-premium-work-test.js +9 -4
  11. package/workspace/c3-capture-test.js +0 -17
  12. package/workspace/changelog.json +17 -0
  13. package/workspace/guide/briefing-premium.md +2 -2
  14. package/workspace/guide/home.md +20 -2
  15. package/workspace/guide/layout.md +2 -2
  16. package/workspace/guide/notes.md +2 -2
  17. package/workspace/guide/phone-companion.md +1 -1
  18. package/workspace/lib/route-modules.js +1 -9
  19. package/workspace/lib/routes-phone-day.js +18 -9
  20. package/workspace/lib/routes-slash.js +95 -0
  21. package/workspace/package-lock.json +2 -2
  22. package/workspace/package.json +1 -2
  23. package/workspace/premium-chat-goal-view-test.js +1 -1
  24. package/workspace/premium-chat-term-test.js +0 -10
  25. package/workspace/premium-menu-rows-test.js +1 -1
  26. package/workspace/premium-phone-card-test.js +2 -2
  27. package/workspace/premium-vw-doc-test.js +1 -8
  28. package/workspace/premium-work-depth-test.js +2 -3
  29. package/workspace/public/capture.html +23 -0
  30. package/workspace/public/pm/c3-base.js +47 -0
  31. package/workspace/public/pm/c3-capture.js +1 -1
  32. package/workspace/public/pm/c3-ini-ui.js +1 -1
  33. package/workspace/public/pm/c3-sheet.js +1 -1
  34. package/workspace/public/pm/c3-toast.js +1 -1
  35. package/workspace/public/pm/console3.css +3 -0
  36. package/workspace/public/pm/cozy-home.css +20 -5
  37. package/workspace/public/pm/cozy-today.css +5 -2
  38. package/workspace/public/pm/cozy-viewer.js +4 -2
  39. package/workspace/public/pm/cozy.css +9 -0
  40. package/workspace/public/pm/goal-chat.js +5 -1
  41. package/workspace/public/pm/home-app.js +47 -26
  42. package/workspace/public/pm/home-chat.js +10 -4
  43. package/workspace/public/pm/home-data.js +3 -1
  44. package/workspace/public/pm/home-dictate.js +7 -4
  45. package/workspace/public/pm/home-ini.js +12 -2
  46. package/workspace/public/pm/home-list.js +20 -7
  47. package/workspace/public/pm/home-more.js +2 -2
  48. package/workspace/public/pm/home-phone-card.js +9 -4
  49. package/workspace/public/pm/home-review.js +2 -3
  50. package/workspace/public/pm/home-today.js +10 -6
  51. package/workspace/public/pm/home-work.js +15 -8
  52. package/workspace/public/pm/note-dock.js +1 -2
  53. package/workspace/public/pm/notes-links.js +1 -2
  54. package/workspace/public/pm/notes-task.js +3 -4
  55. package/workspace/public/pm/premium-board.js +1 -1
  56. package/workspace/public/pm/premium-initiative-head.js +3 -3
  57. package/workspace/public/pm/premium-vw-doc.css +20 -2
  58. package/workspace/public/pm/premium-vw-doc.js +22 -7
  59. package/workspace/public/pm/view-notes.js +2 -2
  60. package/workspace/replaced-tests.json +435 -0
  61. package/workspace/run-tests.js +323 -28
  62. package/workspace/server.js +15 -10
  63. package/workspace/test-files.json +3 -140
  64. package/workspace/test-lists/base.json +1 -2
  65. package/workspace/test-lists/c3-desktop-light-load.json +1 -2
  66. package/workspace/test-lists/c3-initiative-boards.json +1 -2
  67. package/workspace/test-lists/c3-meeting-focus.json +2 -12
  68. package/workspace/test-lists/c3-work-agent.json +1 -2
  69. package/workspace/test-lists/calendar-tidy-up.json +1 -2
  70. package/workspace/test-lists/console3-reports.json +1 -2
  71. package/workspace/test-lists/docs-three-way-sync.json +1 -2
  72. package/workspace/test-lists/extension-capture.json +5 -0
  73. package/workspace/test-lists/jira-wbs.json +1 -2
  74. package/workspace/test-lists/legacy-cleanup-a.json +9 -0
  75. package/workspace/test-lists/meeting-material.json +1 -2
  76. package/workspace/test-lists/meeting-notes.json +2 -36
  77. package/workspace/test-lists/meeting-replay.json +1 -2
  78. package/workspace/test-lists/mm-capture.json +2 -12
  79. package/workspace/test-lists/my-work.json +2 -10
  80. package/workspace/test-lists/onboarding-firstrun.json +2 -12
  81. package/workspace/test-lists/people-directory.json +1 -2
  82. package/workspace/test-lists/run2-a.json +1 -2
  83. package/workspace/test-lists/run2-d.json +2 -19
  84. package/workspace/test-lists/run3-b.json +1 -2
  85. package/workspace/test-lists/run3-c.json +2 -12
  86. package/workspace/test-lists/run4-b.json +1 -2
  87. package/workspace/test-lists/run4-d.json +1 -5
  88. package/workspace/test-lists/run5-c.json +1 -11
  89. package/workspace/test-lists/run6.json +1 -5
  90. package/workspace/test-lists/workspace-launch-flags.json +2 -12
  91. package/workspace/test-lists/workspace-profile-detection.json +2 -10
  92. package/workspace/test-timings.json +242 -123
  93. package/workspace/c3-briefing-test.js +0 -136
  94. package/workspace/c3-core-docs-test.js +0 -170
  95. package/workspace/c3-driver-fixture.js +0 -64
  96. package/workspace/c3-driver-test.js +0 -169
  97. package/workspace/c3-foundation-test.js +0 -163
  98. package/workspace/c3-ib-items-test.js +0 -114
  99. package/workspace/c3-ib-more-test.js +0 -146
  100. package/workspace/c3-ib-triage-backlog-test.js +0 -128
  101. package/workspace/c3-ini-harness.js +0 -66
  102. package/workspace/c3-ini-life-test.js +0 -167
  103. package/workspace/c3-initiatives-test.js +0 -186
  104. package/workspace/c3-light-load-test.js +0 -112
  105. package/workspace/c3-one-home-test.js +0 -149
  106. package/workspace/c3-phone-test.js +0 -289
  107. package/workspace/c3-quiet-test.js +0 -157
  108. package/workspace/c3-report-design-real-test.js +0 -264
  109. package/workspace/c3-report-design-test.js +0 -442
  110. package/workspace/c3-report-setup-test.js +0 -192
  111. package/workspace/c3-report-structure-real-test.js +0 -248
  112. package/workspace/c3-report-structure-test.js +0 -397
  113. package/workspace/c3-reports-test.js +0 -288
  114. package/workspace/c3-scan-test.js +0 -517
  115. package/workspace/c3-sessions-panel-test.js +0 -365
  116. package/workspace/c3-settings-test.js +0 -204
  117. package/workspace/c3-updates-test.js +0 -131
  118. package/workspace/c3-work-test.js +0 -260
  119. package/workspace/cut-stub.js +0 -40
  120. package/workspace/first-paint-audit.js +0 -160
  121. package/workspace/lib/c3-full-console.js +0 -15
  122. package/workspace/lib/engine/derived/trust.js +0 -3
  123. package/workspace/lib/engine/plan-forecast.js +0 -342
  124. package/workspace/lib/engine/report-families.js +0 -175
  125. package/workspace/lib/engine/truth-table.js +0 -57
  126. package/workspace/lib/routes-c3-init.js +0 -54
  127. package/workspace/lib/routes-c3-life.js +0 -120
  128. package/workspace/lib/routes-c3-timeline.js +0 -192
  129. package/workspace/lib/routes-forecast.js +0 -86
  130. package/workspace/lib/routes-releases.js +0 -130
  131. package/workspace/lib/routes-report-facts.js +0 -85
  132. package/workspace/lib/routes-report-families.js +0 -33
  133. package/workspace/lib/routes-signals.js +0 -51
  134. package/workspace/lib/routes-timeline.js +0 -197
  135. package/workspace/public/c3.html +0 -35
  136. package/workspace/public/index.html +0 -156
  137. package/workspace/public/pm/app.js +0 -831
  138. package/workspace/public/pm/bd-board.js +0 -159
  139. package/workspace/public/pm/bd-drag.js +0 -59
  140. package/workspace/public/pm/bd-model.js +0 -152
  141. package/workspace/public/pm/bd-timeline.js +0 -233
  142. package/workspace/public/pm/bd-tree.js +0 -244
  143. package/workspace/public/pm/board-copy.js +0 -59
  144. package/workspace/public/pm/board-read.js +0 -38
  145. package/workspace/public/pm/branches-sheet.js +0 -56
  146. package/workspace/public/pm/breakdown-api.js +0 -58
  147. package/workspace/public/pm/breakdown-copy.js +0 -138
  148. package/workspace/public/pm/briefing-deck.js +0 -441
  149. package/workspace/public/pm/briefing-model.js +0 -251
  150. package/workspace/public/pm/c3-ambient.js +0 -100
  151. package/workspace/public/pm/c3-audience-link.js +0 -21
  152. package/workspace/public/pm/c3-audience.js +0 -46
  153. package/workspace/public/pm/c3-boot.js +0 -13
  154. package/workspace/public/pm/c3-breakdown.js +0 -240
  155. package/workspace/public/pm/c3-brief-data.js +0 -11
  156. package/workspace/public/pm/c3-brief-mentions.js +0 -137
  157. package/workspace/public/pm/c3-brief-needs.js +0 -288
  158. package/workspace/public/pm/c3-brief-pulse.js +0 -112
  159. package/workspace/public/pm/c3-brief-summary.js +0 -139
  160. package/workspace/public/pm/c3-brief-today.js +0 -79
  161. package/workspace/public/pm/c3-brief.js +0 -279
  162. package/workspace/public/pm/c3-cal-strategy.js +0 -529
  163. package/workspace/public/pm/c3-calendar.js +0 -965
  164. package/workspace/public/pm/c3-calpop.js +0 -111
  165. package/workspace/public/pm/c3-case.js +0 -196
  166. package/workspace/public/pm/c3-core-docs.css +0 -18
  167. package/workspace/public/pm/c3-core-docs.js +0 -236
  168. package/workspace/public/pm/c3-daypart.js +0 -176
  169. package/workspace/public/pm/c3-demo-boards.js +0 -764
  170. package/workspace/public/pm/c3-demo-brief-ix.js +0 -350
  171. package/workspace/public/pm/c3-demo-brief-page.js +0 -70
  172. package/workspace/public/pm/c3-demo-cal-ix.js +0 -74
  173. package/workspace/public/pm/c3-demo-cal2.js +0 -66
  174. package/workspace/public/pm/c3-demo-cal3.js +0 -173
  175. package/workspace/public/pm/c3-demo-cal4.js +0 -169
  176. package/workspace/public/pm/c3-demo-cal5.js +0 -52
  177. package/workspace/public/pm/c3-demo-coredocs.js +0 -221
  178. package/workspace/public/pm/c3-demo-data.js +0 -552
  179. package/workspace/public/pm/c3-demo-focus.js +0 -181
  180. package/workspace/public/pm/c3-demo-init.js +0 -430
  181. package/workspace/public/pm/c3-demo-life.js +0 -77
  182. package/workspace/public/pm/c3-demo-material.js +0 -58
  183. package/workspace/public/pm/c3-demo-misc2.js +0 -34
  184. package/workspace/public/pm/c3-demo-phone.js +0 -48
  185. package/workspace/public/pm/c3-demo-plan2.js +0 -30
  186. package/workspace/public/pm/c3-demo-rd.js +0 -432
  187. package/workspace/public/pm/c3-demo-rep-ix.js +0 -126
  188. package/workspace/public/pm/c3-demo-rep2.js +0 -130
  189. package/workspace/public/pm/c3-demo-rep3.js +0 -138
  190. package/workspace/public/pm/c3-demo-rs.js +0 -287
  191. package/workspace/public/pm/c3-demo-term.js +0 -153
  192. package/workspace/public/pm/c3-demo-time.js +0 -49
  193. package/workspace/public/pm/c3-demo-work-ix.js +0 -32
  194. package/workspace/public/pm/c3-demo.js +0 -131
  195. package/workspace/public/pm/c3-design-studio.js +0 -369
  196. package/workspace/public/pm/c3-doc-formats.js +0 -153
  197. package/workspace/public/pm/c3-doc-sheet.js +0 -1230
  198. package/workspace/public/pm/c3-dock.js +0 -206
  199. package/workspace/public/pm/c3-docs.js +0 -291
  200. package/workspace/public/pm/c3-driver-work.js +0 -110
  201. package/workspace/public/pm/c3-driver.css +0 -18
  202. package/workspace/public/pm/c3-driver.js +0 -298
  203. package/workspace/public/pm/c3-focus.css +0 -304
  204. package/workspace/public/pm/c3-focus.js +0 -983
  205. package/workspace/public/pm/c3-ib-docs.js +0 -92
  206. package/workspace/public/pm/c3-ib-initiatives.js +0 -201
  207. package/workspace/public/pm/c3-ib-items.js +0 -210
  208. package/workspace/public/pm/c3-ib-releases.js +0 -48
  209. package/workspace/public/pm/c3-ib-sprints.js +0 -201
  210. package/workspace/public/pm/c3-ib-triage.js +0 -177
  211. package/workspace/public/pm/c3-ii-tabs.js +0 -252
  212. package/workspace/public/pm/c3-ini-life.css +0 -34
  213. package/workspace/public/pm/c3-ini-life.js +0 -379
  214. package/workspace/public/pm/c3-ini-records.js +0 -197
  215. package/workspace/public/pm/c3-ini-timeline.js +0 -278
  216. package/workspace/public/pm/c3-ini-work.js +0 -139
  217. package/workspace/public/pm/c3-init-extras.js +0 -170
  218. package/workspace/public/pm/c3-initiatives.js +0 -852
  219. package/workspace/public/pm/c3-lifecycle-panels.js +0 -479
  220. package/workspace/public/pm/c3-look.js +0 -27
  221. package/workspace/public/pm/c3-material.css +0 -22
  222. package/workspace/public/pm/c3-material.js +0 -321
  223. package/workspace/public/pm/c3-md.js +0 -3
  224. package/workspace/public/pm/c3-misc-panels.js +0 -89
  225. package/workspace/public/pm/c3-new-session.js +0 -110
  226. package/workspace/public/pm/c3-notes.js +0 -751
  227. package/workspace/public/pm/c3-phone-boot.js +0 -47
  228. package/workspace/public/pm/c3-phone-detail.js +0 -97
  229. package/workspace/public/pm/c3-phone-model.js +0 -3
  230. package/workspace/public/pm/c3-phone.css +0 -66
  231. package/workspace/public/pm/c3-phone.js +0 -444
  232. package/workspace/public/pm/c3-plan-panels.js +0 -163
  233. package/workspace/public/pm/c3-plan.js +0 -193
  234. package/workspace/public/pm/c3-quiet.css +0 -113
  235. package/workspace/public/pm/c3-quiet.js +0 -177
  236. package/workspace/public/pm/c3-replay.css +0 -133
  237. package/workspace/public/pm/c3-replay.js +0 -429
  238. package/workspace/public/pm/c3-report-deck.css +0 -163
  239. package/workspace/public/pm/c3-report-deck.js +0 -598
  240. package/workspace/public/pm/c3-report-frame.css +0 -20
  241. package/workspace/public/pm/c3-report-print.css +0 -20
  242. package/workspace/public/pm/c3-report-setup.css +0 -67
  243. package/workspace/public/pm/c3-report-setup.js +0 -298
  244. package/workspace/public/pm/c3-report-store.js +0 -244
  245. package/workspace/public/pm/c3-report-structure.css +0 -44
  246. package/workspace/public/pm/c3-report-structure.js +0 -473
  247. package/workspace/public/pm/c3-reports.css +0 -68
  248. package/workspace/public/pm/c3-reports.js +0 -377
  249. package/workspace/public/pm/c3-roadmap.js +0 -249
  250. package/workspace/public/pm/c3-scan-api.js +0 -167
  251. package/workspace/public/pm/c3-scan-next.js +0 -248
  252. package/workspace/public/pm/c3-scan-setup.js +0 -313
  253. package/workspace/public/pm/c3-scan-words.js +0 -41
  254. package/workspace/public/pm/c3-scan.css +0 -74
  255. package/workspace/public/pm/c3-scan.js +0 -93
  256. package/workspace/public/pm/c3-session-chat.js +0 -103
  257. package/workspace/public/pm/c3-session-conv.js +0 -165
  258. package/workspace/public/pm/c3-session-term.js +0 -216
  259. package/workspace/public/pm/c3-settings.css +0 -85
  260. package/workspace/public/pm/c3-settings.js +0 -1045
  261. package/workspace/public/pm/c3-shell.js +0 -628
  262. package/workspace/public/pm/c3-signals.js +0 -196
  263. package/workspace/public/pm/c3-strategy-panels.js +0 -45
  264. package/workspace/public/pm/c3-swipe.js +0 -230
  265. package/workspace/public/pm/c3-terminal-data.js +0 -48
  266. package/workspace/public/pm/c3-terminal-edge.js +0 -91
  267. package/workspace/public/pm/c3-terminal-icons.js +0 -40
  268. package/workspace/public/pm/c3-terminal-results.js +0 -141
  269. package/workspace/public/pm/c3-terminal.js +0 -52
  270. package/workspace/public/pm/c3-tickets.js +0 -163
  271. package/workspace/public/pm/c3-timeline.js +0 -201
  272. package/workspace/public/pm/calendar-views.js +0 -1049
  273. package/workspace/public/pm/console3-lift.md +0 -220
  274. package/workspace/public/pm/cozy-home.js +0 -172
  275. package/workspace/public/pm/cozy-initiative.css +0 -138
  276. package/workspace/public/pm/cycle-review.js +0 -125
  277. package/workspace/public/pm/data.js +0 -1577
  278. package/workspace/public/pm/dest-board.js +0 -444
  279. package/workspace/public/pm/dest-docs.js +0 -530
  280. package/workspace/public/pm/dest-initiatives.js +0 -162
  281. package/workspace/public/pm/dest-mywork.js +0 -307
  282. package/workspace/public/pm/dest-notes.js +0 -537
  283. package/workspace/public/pm/dest-people.js +0 -449
  284. package/workspace/public/pm/dest-reports.js +0 -383
  285. package/workspace/public/pm/dest-settings.js +0 -601
  286. package/workspace/public/pm/dest-today.js +0 -267
  287. package/workspace/public/pm/display-word.js +0 -56
  288. package/workspace/public/pm/doc-editor.js +0 -473
  289. package/workspace/public/pm/doc-graph.js +0 -272
  290. package/workspace/public/pm/doc-health-panel.js +0 -110
  291. package/workspace/public/pm/doc-rail.js +0 -167
  292. package/workspace/public/pm/doc-remote.js +0 -180
  293. package/workspace/public/pm/dock-sessions.js +0 -472
  294. package/workspace/public/pm/dock.js +0 -216
  295. package/workspace/public/pm/fixture.js +0 -821
  296. package/workspace/public/pm/flag-picker.js +0 -104
  297. package/workspace/public/pm/frame-copy.js +0 -278
  298. package/workspace/public/pm/freshness-line.js +0 -149
  299. package/workspace/public/pm/handoff-box.js +0 -82
  300. package/workspace/public/pm/initiative-list.js +0 -235
  301. package/workspace/public/pm/initiative-sheet.js +0 -331
  302. package/workspace/public/pm/initiatives-api.js +0 -95
  303. package/workspace/public/pm/initiatives-copy.js +0 -287
  304. package/workspace/public/pm/initiatives-timeline-copy.js +0 -59
  305. package/workspace/public/pm/initiatives-timeline.js +0 -410
  306. package/workspace/public/pm/initiatives-ui.js +0 -291
  307. package/workspace/public/pm/item-sheet.js +0 -268
  308. package/workspace/public/pm/keep-card.js +0 -204
  309. package/workspace/public/pm/lifecycle-lens-model.js +0 -246
  310. package/workspace/public/pm/lifecycle-lens.js +0 -276
  311. package/workspace/public/pm/lifecycle.js +0 -111
  312. package/workspace/public/pm/mobile.css +0 -366
  313. package/workspace/public/pm/mobile.js +0 -581
  314. package/workspace/public/pm/modes-live.js +0 -453
  315. package/workspace/public/pm/modes.js +0 -147
  316. package/workspace/public/pm/my-work-card.js +0 -51
  317. package/workspace/public/pm/my-work-data.js +0 -36
  318. package/workspace/public/pm/new-initiative-sheet.js +0 -169
  319. package/workspace/public/pm/next-step-ui.js +0 -190
  320. package/workspace/public/pm/outbox-panel.js +0 -125
  321. package/workspace/public/pm/palette-copy.js +0 -55
  322. package/workspace/public/pm/palette.js +0 -343
  323. package/workspace/public/pm/panel-breakdown.js +0 -702
  324. package/workspace/public/pm/panel-cockpit.js +0 -425
  325. package/workspace/public/pm/panel-detail.js +0 -1513
  326. package/workspace/public/pm/panel-initiatives.js +0 -929
  327. package/workspace/public/pm/panel-newsess.js +0 -709
  328. package/workspace/public/pm/panel-repos.js +0 -741
  329. package/workspace/public/pm/panel-tabs.js +0 -1506
  330. package/workspace/public/pm/panel-trees.js +0 -204
  331. package/workspace/public/pm/people-link.js +0 -106
  332. package/workspace/public/pm/phone-deck.js +0 -167
  333. package/workspace/public/pm/pm-work-view.js +0 -1533
  334. package/workspace/public/pm/portfolio-report.js +0 -61
  335. package/workspace/public/pm/premium-acts.js +0 -280
  336. package/workspace/public/pm/premium-brief.js +0 -111
  337. package/workspace/public/pm/premium-chat.js +0 -22
  338. package/workspace/public/pm/premium-doc-sheet.js +0 -312
  339. package/workspace/public/pm/premium-initiative.js +0 -324
  340. package/workspace/public/pm/premium-insights.css +0 -228
  341. package/workspace/public/pm/premium-metric-tiles.js +0 -68
  342. package/workspace/public/pm/premium-report-brief.js +0 -132
  343. package/workspace/public/pm/premium-vw-rec.js +0 -67
  344. package/workspace/public/pm/premium-wide.css +0 -30
  345. package/workspace/public/pm/print.css +0 -44
  346. package/workspace/public/pm/provider-cards.js +0 -136
  347. package/workspace/public/pm/registry.js +0 -203
  348. package/workspace/public/pm/release-card.js +0 -110
  349. package/workspace/public/pm/releases-view.js +0 -248
  350. package/workspace/public/pm/report-families-view.js +0 -505
  351. package/workspace/public/pm/report-slides.js +0 -438
  352. package/workspace/public/pm/report-tab.js +0 -33
  353. package/workspace/public/pm/report-view.js +0 -337
  354. package/workspace/public/pm/reports-copy.js +0 -134
  355. package/workspace/public/pm/roadmap.js +0 -294
  356. package/workspace/public/pm/run-card.js +0 -260
  357. package/workspace/public/pm/sessions-panel.js +0 -219
  358. package/workspace/public/pm/sheet-jira.js +0 -353
  359. package/workspace/public/pm/shell-bell.js +0 -163
  360. package/workspace/public/pm/shell-model.js +0 -83
  361. package/workspace/public/pm/shell-phone.js +0 -124
  362. package/workspace/public/pm/shell-readaloud.js +0 -53
  363. package/workspace/public/pm/shell-recording.js +0 -274
  364. package/workspace/public/pm/shell-ticker.js +0 -90
  365. package/workspace/public/pm/sig-watch.js +0 -41
  366. package/workspace/public/pm/slide-confirm.js +0 -163
  367. package/workspace/public/pm/slides-copy.js +0 -52
  368. package/workspace/public/pm/status-banner.js +0 -95
  369. package/workspace/public/pm/tab-doc.js +0 -859
  370. package/workspace/public/pm/tab-gone.js +0 -21
  371. package/workspace/public/pm/tab-term.js +0 -1210
  372. package/workspace/public/pm/tab-web.js +0 -90
  373. package/workspace/public/pm/timeline-copy.js +0 -48
  374. package/workspace/public/pm/timeline-forecast-view.js +0 -164
  375. package/workspace/public/pm/today-agenda.js +0 -331
  376. package/workspace/public/pm/today-cards.js +0 -244
  377. package/workspace/public/pm/today-copy.js +0 -506
  378. package/workspace/public/pm/today-day.js +0 -1371
  379. package/workspace/public/pm/today-goals.js +0 -297
  380. package/workspace/public/pm/today-jobs.js +0 -84
  381. package/workspace/public/pm/today-mentions.js +0 -50
  382. package/workspace/public/pm/topbar.js +0 -202
  383. package/workspace/public/pm/triage-card.js +0 -60
  384. package/workspace/public/pm/undo-hold.js +0 -103
  385. package/workspace/public/pm/view-addrepo.js +0 -208
  386. package/workspace/public/pm/view-files.js +0 -197
  387. package/workspace/public/pm/view-livenotes.js +0 -399
  388. package/workspace/public/pm/view-today.js +0 -13
  389. package/workspace/public/pm/view-validate.js +0 -171
  390. package/workspace/public/pm/welcome.js +0 -391
  391. package/workspace/public/pm/work-place.js +0 -68
  392. package/workspace/public/pm/xlsx-read.js +0 -117
  393. package/workspace/public/welcome.html +0 -22
  394. package/workspace/test-lists/browser-suites-green.json +0 -5
  395. package/workspace/test-lists/c3-core-docs.json +0 -9
  396. package/workspace/test-lists/c3-doc-sheet-rich.json +0 -6
  397. package/workspace/test-lists/c3-doc-sheet-size.json +0 -6
  398. package/workspace/test-lists/c3-doc-sheet-v2.json +0 -6
  399. package/workspace/test-lists/c3-ib-items.json +0 -9
  400. package/workspace/test-lists/c3-ib-more.json +0 -9
  401. package/workspace/test-lists/c3-ib-triage-backlog.json +0 -9
  402. package/workspace/test-lists/c3-ini-life.json +0 -9
  403. package/workspace/test-lists/c3-meeting-board.json +0 -5
  404. package/workspace/test-lists/c3-meeting-card.json +0 -5
  405. package/workspace/test-lists/c3-notes-place.json +0 -5
  406. package/workspace/test-lists/c3-notes-series.json +0 -5
  407. package/workspace/test-lists/calendar-time-page.json +0 -5
  408. package/workspace/test-lists/calpop.json +0 -4
  409. package/workspace/test-lists/console3-briefing.json +0 -9
  410. package/workspace/test-lists/console3-foundation.json +0 -9
  411. package/workspace/test-lists/console3-work-page.json +0 -9
  412. package/workspace/test-lists/premium-brief-parity.json +0 -9
  413. package/workspace/test-lists/report-design-studio-ui.json +0 -5
  414. package/workspace/test-lists/report-structure-ui.json +0 -11
  415. package/workspace/test-lists/report-workspace-ui.json +0 -5
  416. package/workspace/test-lists/run3-a.json +0 -5
  417. package/workspace/test-lists/run3-d.json +0 -6
  418. package/workspace/test-lists/run4-c.json +0 -13
  419. package/workspace/test-lists/today-goals-jobs-ui.json +0 -5
  420. package/workspace/test-lists/today-mentions-cards.json +0 -5
  421. package/workspace/test-lists/workspace-tabs-declutter.json +0 -13
@@ -1,153 +0,0 @@
1
- /* pm/c3-demo-term.js — DEMO fixtures of the agent surfaces (the Terminal page, the dock's sessions, the run cards), from agent-surfaces.html's own sample data.
2
- * Registered by ONE line in c3-demo.js. Importing this file changes nothing by itself: it only registers makeSource (window.__c3termfx_make), which
3
- * c3-terminal-data.js uses when the page is in demo mode (window.__c3demo). c3-terminal-edge.js also reads FX in real mode, as labelled example data.
4
- *
5
- * The data is in the REAL response shapes, and it was made by the repo's own modules, not drawn: each run is a sequence of reply lines (the mockup's runs)
6
- * folded by scripts/card-state.js cardFor (-> the cards), grouped by scripts/sessions-list.js groupSessions (-> groups), with scripts/past-timeline.js
7
- * pastTimeline (-> the Past timelines) and scripts/reply-contract/reply-contract.js (-> the moves, the glossary, planRequest, askFromTool, voiceReply).
8
- * A script in the session scratchpad ran them and printed this literal; the times are ISO strings relative to the demo's clock (rebase()).
9
- *
10
- * Three things here are NOT in the real GET /api/runs answer today, and the UI marks them so (they sit under `demo` or on the card as extras):
11
- * - `observed` (the CLI's own tool calls): scripts/reply-contract fold keeps vm.observed, scripts/card-state.js cardFor does not copy it;
12
- * - `card.pause` (the usage-limit resume time) and the plan text of a plan approval: the same, cardFor drops them;
13
- * - `timeline` (the Past timeline): routes-runs.js serves no run lines.
14
- * The write side (answer, correct, send) advances an in-memory copy: a press changes the card as a real run would; nothing is saved or sent. */
15
- const FX = {
16
- now: 1791447120000,
17
- groups: {"onCard":[{"id":"sess-101","plan_item":"c1","name":"Checkout v2: cut T7","origin":"manual","cardId":"c1","startedAt":"2026-10-08T08:06:00.000Z","endedAt":null},{"id":"sess-102","plan_item":"c3","name":"Lint fix on search ranking PR 142","origin":"manual","cardId":"c3","startedAt":"2026-10-08T08:06:00.000Z","endedAt":null},{"id":"sess-103","plan_item":"c2","name":"Reply to Dana","origin":"manual","cardId":"c2","startedAt":"2026-10-08T08:04:00.000Z","endedAt":null},{"id":"sess-104","plan_item":"decision","name":"PRD section 4 redraft","origin":"manual","cardId":"decision","startedAt":"2026-10-08T08:08:00.000Z","endedAt":null},{"id":"sess-112","plan_item":"c1b","name":"Slip options for Checkout v2","origin":"manual","cardId":"c1b","startedAt":"2026-10-08T08:07:00.000Z","endedAt":null}],"startedByMe":[{"id":"sess-105","plan_item":null,"name":"Review this week's slips","origin":"manual","cardId":null,"startedAt":"2026-10-08T07:32:00.000Z","endedAt":null}],"past":[{"id":"sess-108","plan_item":null,"name":"Review this week's slips","origin":"manual","cardId":null,"startedAt":"2026-10-08T05:42:00.000Z","endedAt":"2026-10-08T05:52:00.000Z"},{"id":"sess-107","plan_item":"c2","name":"Draft note to Dana","origin":"manual","cardId":"c2","startedAt":"2026-10-07T07:42:00.000Z","endedAt":"2026-10-07T07:57:00.000Z"},{"id":"sess-106","plan_item":"c1","name":"Re-plan Checkout v2","origin":"manual","cardId":"c1","startedAt":"2026-10-06T07:42:00.000Z","endedAt":"2026-10-06T08:02:00.000Z"}],"automatic":[{"id":"sess-109","plan_item":null,"name":"Weekly review draft","origin":"schedule","cardId":null,"startedAt":"2026-10-08T07:56:00.000Z","endedAt":"2026-10-08T07:58:00.000Z"},{"id":"sess-110","plan_item":null,"name":"Rubric check on onboarding","origin":"gate","cardId":null,"startedAt":"2026-10-08T07:10:00.000Z","endedAt":"2026-10-08T07:12:00.000Z"},{"id":"sess-111","plan_item":null,"name":"Search ranking slip","origin":"detector","cardId":null,"startedAt":"2026-10-08T08:11:00.000Z","endedAt":null}],"automaticHidden":true},
18
- moves: {"revise":["shorter","longer","simpler","firmer","warmer","more evidence"],"reject":["wrong facts","wrong scope","not now","too long"],"voice":{"trusted":true,"text":"Why is the margin only one day?","confidence":0.93,"editable":true,"autosend_ms":3000,"warn":null,"local_only":true},"voice2":{"trusted":true,"text":"why is the margin won day","confidence":0.62,"editable":true,"autosend_ms":null,"warn":"low confidence; check the words","local_only":true}},
19
- glossary: {"T7":"Ticket T7, saved cards. On the critical path.","forecast":"The date the plan predicts from durations and dependencies. An estimate.","promise":"The date told to Dana on 2 Oct (decision D-12)."},
20
- timeline: {"since":"2026-10-01T08:12:00.000Z","entries":[{"at":"2026-10-08T05:52:00.000Z","run":"sess-108","src":"you","text":"Corrected: wrong scope"},{"at":"2026-10-08T05:47:00.000Z","run":"sess-108","src":"reported","text":"Result: evidence"},{"at":"2026-10-08T05:42:00.000Z","run":"sess-108","src":"observed","text":"Read planning/runs/ (25 views)"},{"at":"2026-10-07T07:57:00.000Z","run":"sess-107","src":"you","text":"Corrected: revise:warmer"},{"at":"2026-10-07T07:52:00.000Z","run":"sess-107","src":"you","text":"Corrected: revise:shorter"},{"at":"2026-10-07T07:46:00.000Z","run":"sess-107","src":"reported","text":"Result: draft"},{"at":"2026-10-07T07:42:00.000Z","run":"sess-107","src":"observed","text":"Read inbox/dana-2026-10-09.eml (quarantined)"},{"at":"2026-10-06T08:02:00.000Z","run":"sess-106","src":"you","text":"Accepted"},{"at":"2026-10-06T07:52:00.000Z","run":"sess-106","src":"reported","text":"Result: card.update"},{"at":"2026-10-06T07:50:00.000Z","run":"sess-106","src":"observed","text":"Bash git push origin initiative/checkout-v2"},{"at":"2026-10-06T07:47:00.000Z","run":"sess-106","src":"you","text":"Answered: T7 only"},{"at":"2026-10-06T07:46:00.000Z","run":"sess-106","src":"reported","text":"Asked: Cut T7 only, or T7 and T8?"},{"at":"2026-10-06T07:44:00.000Z","run":"sess-106","src":"observed","text":"Edit planning/prd/checkout-v2.md"},{"at":"2026-10-06T07:42:00.000Z","run":"sess-106","src":"observed","text":"Read planning/prd/checkout-v2.md"}],"observed":[{"at":"2026-10-08T05:42:00.000Z","run":"sess-108","src":"observed","text":"Read planning/runs/ (25 views)"},{"at":"2026-10-07T07:42:00.000Z","run":"sess-107","src":"observed","text":"Read inbox/dana-2026-10-09.eml (quarantined)"},{"at":"2026-10-06T07:50:00.000Z","run":"sess-106","src":"observed","text":"Bash git push origin initiative/checkout-v2"},{"at":"2026-10-06T07:44:00.000Z","run":"sess-106","src":"observed","text":"Edit planning/prd/checkout-v2.md"},{"at":"2026-10-06T07:42:00.000Z","run":"sess-106","src":"observed","text":"Read planning/prd/checkout-v2.md"}],"reported":[{"at":"2026-10-08T05:47:00.000Z","run":"sess-108","src":"reported","text":"Result: evidence"},{"at":"2026-10-07T07:46:00.000Z","run":"sess-107","src":"reported","text":"Result: draft"},{"at":"2026-10-06T07:52:00.000Z","run":"sess-106","src":"reported","text":"Result: card.update"},{"at":"2026-10-06T07:46:00.000Z","run":"sess-106","src":"reported","text":"Asked: Cut T7 only, or T7 and T8?"}],"you":[{"at":"2026-10-08T05:52:00.000Z","run":"sess-108","src":"you","text":"Corrected: wrong scope"},{"at":"2026-10-07T07:57:00.000Z","run":"sess-107","src":"you","text":"Corrected: revise:warmer"},{"at":"2026-10-07T07:52:00.000Z","run":"sess-107","src":"you","text":"Corrected: revise:shorter"},{"at":"2026-10-06T08:02:00.000Z","run":"sess-106","src":"you","text":"Accepted"},{"at":"2026-10-06T07:47:00.000Z","run":"sess-106","src":"you","text":"Answered: T7 only"}],"resume":[{"run":"sess-106","title":"Re-plan Checkout v2","command":"claude --resume sess-106"},{"run":"sess-107","title":"Draft note to Dana","command":"claude --resume sess-107"},{"run":"sess-108","title":"Review this week's slips","command":"claude --resume sess-108"}]},
21
- pastMeta: [{"id":"sess-106","title":"Re-plan Checkout v2","when":"Tue 6 Oct","out":"Accepted - PR 131 merged","min":2880},{"id":"sess-107","title":"Draft note to Dana","when":"Wed 7 Oct","out":"Revised twice - not sent","min":1440},{"id":"sess-108","title":"Review this week's slips","when":"Thu 8 Oct","out":"Rejected: wrong scope","min":120}],
22
- runs: {
23
- "sess-101": {"card":{"state":"asking","title":"Needs your answer","steps":["Reading the PRD","Running the plan with T7 cut"],"ask":{"id":"a1","q":"Cut T7 only, or T7 and T8?","options":[{"label":"T7 only","rec":true},{"label":"T7 and T8","rec":false}]},"permission":null,"attention":null,"failure":null,"recover":[],"problems":[],"unlabelled":0,"fallbackText":null,"result":null,"claims":[],"blocked":null,"nextMoves":[],"fallback":null,"asked":"a1","permissions":[]},"observed":[{"tool":"Read","what":"planning/prd/checkout-v2.md","at":"2026-10-08T08:06:00.000Z"},{"tool":"Bash","what":"node scripts/plan.js --cut T7","at":"2026-10-08T08:08:00.000Z"},{"tool":"Edit","what":"planning/prd/checkout-v2.md","at":"2026-10-08T08:10:00.000Z"}]},
24
- "sess-102": {"card":{"state":"working","title":"Working","steps":["Reading the job log","Fixing the import"],"ask":null,"permission":null,"attention":null,"failure":null,"recover":[],"problems":[],"unlabelled":0,"fallbackText":null,"result":null,"claims":[],"blocked":null,"nextMoves":[],"fallback":null,"asked":null,"permissions":[{"request":"toolu_push_01","tool":"Bash","command":"git push origin initiative/search-rank","cwd":"../pmos-wt/search-rank","at":"2026-10-08T08:11:00.000Z","why":"Push the lint fix to PR 142","remember":"initiative/search-rank"}]},"observed":[{"tool":"Read","what":"logs/lint-3f9c2e1.txt","at":"2026-10-08T08:07:00.000Z"},{"tool":"Edit","what":"src/rank.js","at":"2026-10-08T08:09:00.000Z"},{"tool":"Bash","what":"npm run lint","at":"2026-10-08T08:10:00.000Z"}]},
25
- "sess-103": {"card":{"state":"done","title":"Result","steps":["Drafting the reply"],"ask":null,"permission":null,"attention":null,"failure":null,"recover":[],"problems":[],"unlabelled":0,"fallbackText":null,"result":{"type":"draft","to":"dana@partner.example","body":"Hi Dana, thank you. We can hold 14 Nov with a smaller launch: saved cards come later. Can you confirm by Friday?","hash":"fae55d","claims":[{"text":"Dana: \"I need to know by Friday\" (email 9 Oct 10:02)","basis":"reported","source":"import:email-9-oct","range":"","ok":true},{"text":"Reply needed by Fri 10 Oct","basis":"estimate","source":"","range":"one day","ok":true},{"text":"Dana means saved cards when she says smaller","basis":"assumption","source":"","range":"","ok":true}],"can_send":true,"outward":true,"flags":[],"suggest":[{"label":"Shorter and softer","prompt":"Rewrite the draft shorter and softer."}]},"claims":[{"text":"Dana: \"I need to know by Friday\" (email 9 Oct 10:02)","basis":"reported","source":"import:email-9-oct","range":"","ok":true},{"text":"Reply needed by Fri 10 Oct","basis":"estimate","source":"","range":"one day","ok":true},{"text":"Dana means saved cards when she says smaller","basis":"assumption","source":"","range":"","ok":true}],"blocked":null,"nextMoves":[{"verb":"revise","by":"ui","label":"Revise"},{"verb":"reject","by":"ui","label":"Reject"},{"verb":"suggest","by":"agent","label":"Shorter and softer","prompt":"Rewrite the draft shorter and softer."},{"verb":"say","by":"ui","label":"Say…"}],"fallback":null,"revise":["shorter","longer","simpler","firmer","warmer","more evidence"],"reject":["wrong facts","wrong scope","not now","too long"],"asked":null,"permissions":[]},"observed":[{"tool":"Read","what":"inbox/dana-2026-10-09.eml (quarantined)","at":"2026-10-08T08:05:00.000Z"},{"tool":"Read","what":"planning/plan/checkout-v2.json","at":"2026-10-08T08:06:00.000Z"}]},
26
- "sess-104": {"card":{"state":"working","title":"Working","steps":["Reading the 3-flow scope","Rewriting section 4"],"ask":null,"permission":null,"attention":null,"failure":null,"recover":[],"problems":[],"unlabelled":0,"fallbackText":null,"result":null,"claims":[],"blocked":null,"nextMoves":[],"fallback":null,"asked":null,"permissions":[]},"observed":[{"tool":"Read","what":"planning/prd/checkout-v2.md","at":"2026-10-08T08:09:00.000Z"},{"tool":"Edit","what":"planning/prd/checkout-v2.md","at":"2026-10-08T08:11:00.000Z"}]},
27
- "sess-112": {"card":{"state":"done","title":"Result","steps":["Running what-if on three options"],"ask":null,"permission":null,"attention":null,"failure":null,"recover":[],"problems":[],"unlabelled":0,"fallbackText":null,"result":{"type":"options","options":[{"label":"Cut T7","when":"15 Nov","cost":"costs one feature","rec":true},{"label":"Move the promise to 21 Nov","when":"21 Nov","cost":"Dana and Lee told again","rec":false},{"label":"Add a person to T3","when":"18 Nov","cost":"estimate only","rec":false}],"close_call":false,"flags":[],"suggest":[]},"claims":[],"blocked":null,"nextMoves":[{"verb":"accept","by":"ui","label":"Accept"},{"verb":"revise","by":"ui","label":"Revise"},{"verb":"reject","by":"ui","label":"Reject"},{"verb":"define","by":"ui","label":"Define"},{"verb":"say","by":"ui","label":"Say…"}],"fallback":null,"revise":["shorter","longer","simpler","firmer","warmer","more evidence"],"reject":["wrong facts","wrong scope","not now","too long"],"asked":null,"permissions":[]},"observed":[{"tool":"Bash","what":"node scripts/plan.js --what-if 3","at":"2026-10-08T08:08:00.000Z"}]},
28
- "sess-105": {"card":{"state":"quiet","title":"Quiet","steps":["Reading 25 views"],"ask":null,"permission":null,"attention":null,"failure":null,"recover":["open_session","retry"],"problems":[],"unlabelled":0,"fallbackText":null,"result":null,"claims":[],"blocked":null,"nextMoves":[],"fallback":{"tier":3,"shown":"terminal only","checked":false,"canBackClaim":false,"action":"Open the session"},"asked":null,"permissions":[]},"observed":[{"tool":"Read","what":"planning/runs/2026-10-w41.jsonl","at":"2026-10-08T07:34:00.000Z"}]},
29
- "sess-106": {"card":{"state":"done","title":"Result","steps":[],"ask":null,"permission":null,"attention":null,"failure":null,"recover":[],"problems":["unknown kind acceptance"],"unlabelled":0,"fallbackText":null,"result":{"type":"card.update","headline":"Promise 14 Nov holds","tag":"Small win","hero":{"t":"tl","p":14,"f":15},"claims":[{"text":"Forecast 15 Nov","basis":"fact","source":"plan run 09:41","range":"","ok":true},{"text":"Margin is 1 day","basis":"estimate","source":"","range":"plus or minus 2","ok":true}],"chip":null,"undo":false,"flags":[],"suggest":[]},"claims":[{"text":"Forecast 15 Nov","basis":"fact","source":"plan run 09:41","range":"","ok":true},{"text":"Margin is 1 day","basis":"estimate","source":"","range":"plus or minus 2","ok":true}],"blocked":null,"nextMoves":[{"verb":"accept","by":"ui","label":"Accept"},{"verb":"revise","by":"ui","label":"Revise"},{"verb":"reject","by":"ui","label":"Reject"},{"verb":"define","by":"ui","label":"Define"},{"verb":"say","by":"ui","label":"Say…"}],"fallback":null,"revise":["shorter","longer","simpler","firmer","warmer","more evidence"],"reject":["wrong facts","wrong scope","not now","too long"],"asked":null,"permissions":[]},"observed":[{"tool":"Read","what":"planning/prd/checkout-v2.md","at":"2026-10-06T07:42:00.000Z"},{"tool":"Edit","what":"planning/prd/checkout-v2.md","at":"2026-10-06T07:44:00.000Z"},{"tool":"Bash","what":"git push origin initiative/checkout-v2","at":"2026-10-06T07:50:00.000Z"}]},
30
- "sess-107": {"card":{"state":"done","title":"Result","steps":[],"ask":null,"permission":null,"attention":null,"failure":null,"recover":[],"problems":["unknown kind correction","unknown kind correction"],"unlabelled":0,"fallbackText":null,"result":{"type":"draft","to":"dana@partner.example","body":"Hi Dana, confirmed: smaller launch, 14 Nov. Please reply by Friday.","hash":"4650f9","claims":[{"text":"Dana needs an answer by Friday","basis":"reported","source":"import:email","range":"","ok":true},{"text":"Reply by Fri 10 Oct","basis":"estimate","source":"","range":"one day","ok":true},{"text":"Smaller means saved cards only","basis":"assumption","source":"","range":"","ok":true}],"can_send":true,"outward":true,"flags":[],"suggest":[]},"claims":[{"text":"Dana needs an answer by Friday","basis":"reported","source":"import:email","range":"","ok":true},{"text":"Reply by Fri 10 Oct","basis":"estimate","source":"","range":"one day","ok":true},{"text":"Smaller means saved cards only","basis":"assumption","source":"","range":"","ok":true}],"blocked":null,"nextMoves":[{"verb":"revise","by":"ui","label":"Revise"},{"verb":"reject","by":"ui","label":"Reject"},{"verb":"say","by":"ui","label":"Say…"}],"fallback":null,"revise":["shorter","longer","simpler","firmer","warmer","more evidence"],"reject":["wrong facts","wrong scope","not now","too long"],"asked":null,"permissions":[]},"observed":[{"tool":"Read","what":"inbox/dana-2026-10-09.eml (quarantined)","at":"2026-10-07T07:42:00.000Z"}]},
31
- "sess-108": {"card":{"state":"done","title":"Result","steps":[],"ask":null,"permission":null,"attention":null,"failure":null,"recover":[],"problems":["unknown kind correction"],"unlabelled":0,"fallbackText":null,"result":{"type":"evidence","claims":[{"text":"Checkout v2 slipped 6 days","basis":"fact","source":"plan run 09:12","range":"","ok":true},{"text":"Search ranking slipped 3 days","basis":"fact","source":"plan run 09:12","range":"","ok":true},{"text":"Onboarding is on time","basis":"estimate","source":"","range":"plus or minus 1","ok":true}],"flags":[],"suggest":[]},"claims":[{"text":"Checkout v2 slipped 6 days","basis":"fact","source":"plan run 09:12","range":"","ok":true},{"text":"Search ranking slipped 3 days","basis":"fact","source":"plan run 09:12","range":"","ok":true},{"text":"Onboarding is on time","basis":"estimate","source":"","range":"plus or minus 1","ok":true}],"blocked":null,"nextMoves":[{"verb":"accept","by":"ui","label":"Accept"},{"verb":"revise","by":"ui","label":"Revise"},{"verb":"reject","by":"ui","label":"Reject"},{"verb":"define","by":"ui","label":"Define"},{"verb":"say","by":"ui","label":"Say…"}],"fallback":null,"revise":["shorter","longer","simpler","firmer","warmer","more evidence"],"reject":["wrong facts","wrong scope","not now","too long"],"asked":null,"permissions":[]},"observed":[{"tool":"Read","what":"planning/runs/ (25 views)","at":"2026-10-08T05:42:00.000Z"}]},
32
- "sess-109": {"card":{"state":"done","title":"Result","steps":[],"ask":null,"permission":null,"attention":null,"failure":null,"recover":[],"problems":[],"unlabelled":0,"fallbackText":null,"result":{"type":"draft","to":"reports","body":"Weekly review draft: three initiatives slipped.","hash":"11c60b","claims":[{"text":"Three initiatives slipped","basis":"fact","source":"plan run 09:12","range":"","ok":true}],"can_send":true,"outward":true,"flags":[],"suggest":[]},"claims":[{"text":"Three initiatives slipped","basis":"fact","source":"plan run 09:12","range":"","ok":true}],"blocked":null,"nextMoves":[{"verb":"revise","by":"ui","label":"Revise"},{"verb":"reject","by":"ui","label":"Reject"},{"verb":"say","by":"ui","label":"Say…"}],"fallback":null,"revise":["shorter","longer","simpler","firmer","warmer","more evidence"],"reject":["wrong facts","wrong scope","not now","too long"],"asked":null,"permissions":[]},"observed":[{"tool":"Read","what":"planning/reports/weekly.md","at":"2026-10-08T07:58:00.000Z"}]},
33
- "sess-110": {"card":{"state":"done","title":"Result","steps":[],"ask":null,"permission":null,"attention":null,"failure":null,"recover":[],"problems":[],"unlabelled":0,"fallbackText":null,"result":{"type":"note","note":"PR 138 merged","flags":[],"suggest":[]},"claims":[],"blocked":null,"nextMoves":[{"verb":"define","by":"ui","label":"Define"},{"verb":"say","by":"ui","label":"Say…"}],"fallback":null,"revise":["shorter","longer","simpler","firmer","warmer","more evidence"],"reject":["wrong facts","wrong scope","not now","too long"],"asked":null,"permissions":[]},"observed":[{"tool":"Bash","what":"node scripts/rubric.js onboarding","at":"2026-10-08T07:12:00.000Z"}]},
34
- "sess-111": {"card":{"state":"working","title":"Working","steps":["Running what-if on T6"],"ask":null,"permission":null,"attention":null,"failure":null,"recover":[],"problems":[],"unlabelled":0,"fallbackText":null,"result":null,"claims":[],"blocked":null,"nextMoves":[],"fallback":null,"asked":null,"permissions":[]},"observed":[{"tool":"Read","what":"planning/plan/search-rank.json","at":"2026-10-08T08:11:00.000Z"}]}
35
- },
36
- after: {
37
- "sess-101": {"card":{"state":"done","title":"Result","steps":["Reading the PRD","Running the plan with T7 cut"],"ask":null,"permission":null,"attention":null,"failure":null,"recover":[],"problems":[],"unlabelled":0,"fallbackText":null,"result":{"type":"card.update","headline":"Promise 14 Nov holds after cutting T7","tag":"Small win","hero":{"t":"tl","p":14,"f":15},"claims":[{"text":"Forecast 15 Nov after the cut","basis":"fact","source":"plan run 09:41","range":"","ok":true},{"text":"Margin is 1 day","basis":"estimate","source":"","range":"plus or minus 2","ok":true},{"text":"PR 143 opened; merges when required CI is green","basis":"fact","source":"gh pr 143","range":"","ok":true}],"chip":"PR 143 - merges when green","undo":false,"flags":[],"suggest":[{"label":"Ask for evidence","prompt":"Show the evidence for the forecast."},{"label":"Make a one-page brief","prompt":"Write a one-page brief of this."}]},"claims":[{"text":"Forecast 15 Nov after the cut","basis":"fact","source":"plan run 09:41","range":"","ok":true},{"text":"Margin is 1 day","basis":"estimate","source":"","range":"plus or minus 2","ok":true},{"text":"PR 143 opened; merges when required CI is green","basis":"fact","source":"gh pr 143","range":"","ok":true}],"blocked":null,"nextMoves":[{"verb":"accept","by":"ui","label":"Accept"},{"verb":"revise","by":"ui","label":"Revise"},{"verb":"reject","by":"ui","label":"Reject"},{"verb":"define","by":"ui","label":"Define"},{"verb":"suggest","by":"agent","label":"Ask for evidence","prompt":"Show the evidence for the forecast."},{"verb":"suggest","by":"agent","label":"Make a one-page brief","prompt":"Write a one-page brief of this."},{"verb":"say","by":"ui","label":"Say…"}],"fallback":null,"revise":["shorter","longer","simpler","firmer","warmer","more evidence"],"reject":["wrong facts","wrong scope","not now","too long"],"asked":null,"permissions":[]},"observed":[{"tool":"Read","what":"planning/prd/checkout-v2.md","at":"2026-10-08T08:06:00.000Z"},{"tool":"Bash","what":"node scripts/plan.js --cut T7","at":"2026-10-08T08:08:00.000Z"},{"tool":"Edit","what":"planning/prd/checkout-v2.md","at":"2026-10-08T08:10:00.000Z"},{"tool":"Bash","what":"node scripts/plan.js --cut T7","at":"2026-10-08T08:12:00.000Z"},{"tool":"Bash","what":"gh pr create --title \"Cut T7\"","at":"2026-10-08T08:12:00.000Z"}]},
38
- "sess-102": {"card":{"state":"done","title":"Result","steps":["Reading the job log","Fixing the import"],"ask":null,"permission":null,"attention":null,"failure":null,"recover":[],"problems":[],"unlabelled":0,"fallbackText":null,"result":{"type":"card.update","headline":"Lint fixed on the search ranking PR","tag":"Small win","hero":{"t":"ci","p":["ok","ok","run","wait"],"l":"CI running on 5c1d7aa"},"claims":[{"text":"Local lint passes","basis":"fact","source":"npm run lint","range":"","ok":true},{"text":"Pushed 5c1d7aa to initiative/search-rank; merge follows when CI is green","basis":"fact","source":"git push","range":"","ok":true}],"chip":"Merges when green","undo":false,"flags":[],"suggest":[{"label":"Ask for evidence","prompt":"Show the evidence."}]},"claims":[{"text":"Local lint passes","basis":"fact","source":"npm run lint","range":"","ok":true},{"text":"Pushed 5c1d7aa to initiative/search-rank; merge follows when CI is green","basis":"fact","source":"git push","range":"","ok":true}],"blocked":null,"nextMoves":[{"verb":"accept","by":"ui","label":"Accept"},{"verb":"revise","by":"ui","label":"Revise"},{"verb":"reject","by":"ui","label":"Reject"},{"verb":"define","by":"ui","label":"Define"},{"verb":"suggest","by":"agent","label":"Ask for evidence","prompt":"Show the evidence."},{"verb":"say","by":"ui","label":"Say…"}],"fallback":null,"revise":["shorter","longer","simpler","firmer","warmer","more evidence"],"reject":["wrong facts","wrong scope","not now","too long"],"asked":null,"permissions":[]},"observed":[{"tool":"Read","what":"logs/lint-3f9c2e1.txt","at":"2026-10-08T08:07:00.000Z"},{"tool":"Edit","what":"src/rank.js","at":"2026-10-08T08:09:00.000Z"},{"tool":"Bash","what":"npm run lint","at":"2026-10-08T08:10:00.000Z"},{"tool":"Bash","what":"git push origin initiative/search-rank","at":"2026-10-08T08:12:00.000Z"}]}
39
- },
40
- fail: {
41
- "noresult": {"card":{"state":"failed","title":"Failed","steps":["Reading the PRD"],"ask":null,"permission":null,"attention":null,"failure":{"code":"no_result","why":"The session ended without a usable result."},"recover":["open_session","retry"],"problems":[],"unlabelled":0,"fallbackText":null,"result":null,"claims":[],"blocked":null,"nextMoves":[],"fallback":{"tier":3,"shown":"terminal only","checked":false,"canBackClaim":false,"action":"Open the session"},"asked":null,"permissions":[]},"observed":[]},
42
- "rejected": {"card":{"state":"failed","title":"Failed","steps":["Reading the PRD"],"ask":null,"permission":null,"attention":null,"failure":{"code":"no_result","why":"The session ended without a usable result."},"recover":["open_session","retry"],"problems":["result rejected: headline is required"],"unlabelled":0,"fallbackText":null,"result":null,"claims":[],"blocked":null,"nextMoves":[],"fallback":{"tier":3,"shown":"terminal only","checked":false,"canBackClaim":false,"action":"Open the session"},"asked":null,"permissions":[]},"observed":[]},
43
- "crashed": {"card":{"state":"failed","title":"Failed","steps":["Reading the PRD"],"ask":null,"permission":null,"attention":null,"failure":{"code":"crashed","why":"The session ended with an error."},"recover":["open_session","retry"],"problems":[],"unlabelled":0,"fallbackText":null,"result":null,"claims":[],"blocked":null,"nextMoves":[],"fallback":{"tier":3,"shown":"terminal only","checked":false,"canBackClaim":false,"action":"Open the session"},"asked":null,"permissions":[]},"observed":[]},
44
- "quiet": {"card":{"state":"quiet","title":"Quiet","steps":["Reading the PRD"],"ask":null,"permission":null,"attention":null,"failure":null,"recover":["open_session","retry"],"problems":[],"unlabelled":0,"fallbackText":null,"result":null,"claims":[],"blocked":null,"nextMoves":[],"fallback":{"tier":3,"shown":"terminal only","checked":false,"canBackClaim":false,"action":"Open the session"},"asked":null,"permissions":[]},"observed":[]},
45
- "unlabelled": {"card":{"state":"done","title":"Result","steps":[],"ask":null,"permission":null,"attention":null,"failure":null,"recover":[],"problems":["claim has no valid label"],"unlabelled":1,"fallbackText":null,"result":{"type":"evidence","claims":[{"text":"Forecast 20 Nov","basis":"fact","source":"plan run 09:12","range":"","ok":true},{"text":"Dana agreed on the phone yesterday","basis":null,"source":"","range":"","ok":false}],"flags":["claim has no valid label"],"suggest":[]},"claims":[{"text":"Forecast 20 Nov","basis":"fact","source":"plan run 09:12","range":"","ok":true},{"text":"Dana agreed on the phone yesterday","basis":null,"source":"","range":"","ok":false}],"blocked":null,"nextMoves":[{"verb":"accept","by":"ui","label":"Accept"},{"verb":"revise","by":"ui","label":"Revise"},{"verb":"reject","by":"ui","label":"Reject"},{"verb":"define","by":"ui","label":"Define"},{"verb":"say","by":"ui","label":"Say…"}],"fallback":null,"revise":["shorter","longer","simpler","firmer","warmer","more evidence"],"reject":["wrong facts","wrong scope","not now","too long"],"asked":null,"permissions":[]},"observed":[]},
46
- "prose": {"card":{"state":"degraded","title":"Plain text only","steps":["Reading the PRD"],"ask":null,"permission":null,"attention":null,"failure":null,"recover":["retry_structured","open_session"],"problems":[],"unlabelled":0,"fallbackText":"Here is what I found: the slip is six days, and cutting T7 looks like the best option. The forecast would move to about 15 Nov.","result":null,"claims":[],"blocked":null,"nextMoves":[],"fallback":{"tier":2,"shown":"plain text","checked":false,"canBackClaim":false,"note":"The agent did not use the format, so nothing here is checked."},"asked":null,"permissions":[]},"observed":[]},
47
- "attention": {"card":{"state":"attention","title":"Needs the terminal","steps":["Reading the PRD"],"ask":null,"permission":null,"attention":{"type":"auth_required","message":"Claude is asking you to sign in."},"failure":null,"recover":["open_session"],"problems":[],"unlabelled":0,"fallbackText":null,"result":null,"claims":[],"blocked":null,"nextMoves":[],"fallback":{"tier":3,"shown":"terminal only","checked":false,"canBackClaim":false,"action":"Open the session"},"asked":null,"permissions":[]},"observed":[]},
48
- "notstarted": {"card":{"state":"not_started","title":"Not started","steps":[],"ask":null,"permission":null,"attention":null,"failure":null,"recover":["open_session"],"problems":[],"unlabelled":0,"fallbackText":null,"result":null,"claims":[],"blocked":null,"nextMoves":[],"fallback":{"tier":3,"shown":"terminal only","checked":false,"canBackClaim":false,"action":"Open the session"},"asked":null,"permissions":[]},"observed":[]},
49
- "pause": {"card":{"state":"paused","title":"Paused","steps":["Reading the PRD"],"ask":null,"permission":null,"attention":null,"failure":null,"recover":["wait","open_session"],"problems":[],"unlabelled":0,"fallbackText":null,"result":null,"claims":[],"blocked":null,"nextMoves":[],"fallback":{"tier":3,"shown":"terminal only","checked":false,"canBackClaim":false,"action":"Open the session"},"asked":null,"permissions":[],"pause":{"type":"quota_auto_resume_fired","resume_at":"14:30"}},"observed":[]},
50
- "api": {"card":{"state":"failed","title":"Failed","steps":["Reading the PRD"],"ask":null,"permission":null,"attention":null,"failure":{"code":"api_error","why":"The turn failed on an API error. Retrying usually works."},"recover":["open_session","retry"],"problems":[],"unlabelled":0,"fallbackText":null,"result":null,"claims":[],"blocked":null,"nextMoves":[],"fallback":{"tier":3,"shown":"terminal only","checked":false,"canBackClaim":false,"action":"Open the session"},"asked":null,"permissions":[]},"observed":[]},
51
- "format": {"card":{"state":"failed","title":"Failed","steps":[],"ask":null,"permission":null,"attention":null,"failure":{"code":"format","why":"Recorded in a newer format than this workspace reads. Update the workspace, or open the session."},"recover":["open_session","retry"],"problems":["event from a newer format ignored"],"unlabelled":0,"fallbackText":null,"result":null,"claims":[],"blocked":null,"nextMoves":[],"fallback":{"tier":3,"shown":"terminal only","checked":false,"canBackClaim":false,"action":"Open the session"},"asked":null,"permissions":[]},"observed":[]}
52
- },
53
- edge: {
54
- "deck": {"card":{"state":"done","title":"Result","steps":[],"ask":null,"permission":null,"attention":null,"failure":null,"recover":[],"problems":["1 slide bullet without a label; the deck cannot be shared"],"unlabelled":0,"fallbackText":null,"result":{"type":"deck","slides":[{"title":"Where we are","note":"","bullets":[{"text":"Forecast 20 Nov, promise 14 Nov","basis":"fact","source":"plan run 09:12","range":"","ok":true},{"text":"T7 slipped 4 days on 3 Oct","basis":"fact","source":"ticket ev_41","range":"","ok":true},{"text":"Margin after a cut is 1 day","basis":"estimate","source":"","range":"plus or minus 2","ok":true}]},{"title":"Options","note":"","bullets":[{"text":"Cut T7: forecast 15 Nov","basis":"fact","source":"plan run 09:41","range":"","ok":true},{"text":"Move the promise: 21 Nov","basis":"fact","source":"plan run 09:41","range":"","ok":true},{"text":"Dana accepts a smaller launch","basis":"assumption","source":"","range":"","ok":true}]},{"title":"Ask","note":"","bullets":[{"text":"Approve the cut by Friday","ok":false,"basis":null}]}],"unlabelled":1,"can_share":false,"flags":["1 slide bullet without a label; the deck cannot be shared"],"suggest":[]},"claims":[],"blocked":null,"nextMoves":[{"verb":"define","by":"ui","label":"Define"},{"verb":"say","by":"ui","label":"Say…"}],"fallback":null,"revise":["shorter","longer","simpler","firmer","warmer","more evidence"],"reject":["wrong facts","wrong scope","not now","too long"],"asked":null,"permissions":[]},"observed":[]},
55
- "table": {"card":{"state":"done","title":"Result","steps":[],"ask":null,"permission":null,"attention":null,"failure":null,"recover":[],"problems":[],"unlabelled":0,"fallbackText":null,"result":{"type":"table","columns":[{"key":"ini","label":"Initiative","type":"text"},{"key":"slip","label":"Slip (days)","type":"number"},{"key":"st","label":"Status","type":"status"},{"key":"own","label":"Owner","type":"text"}],"rows":[["Checkout v2",6,"at risk","Lee"],["Search ranking",3,"at risk","Ana"],["Onboarding",0,"on time","Sam"],["Billing export",2,"delayed","Lee"],["Mobile login",0,"on time","Ana"],["Reports v3",1,"on time","Sam"],["Notifications",5,"overdue","Lee"]],"shown":7,"total":7,"flags":[],"suggest":[]},"claims":[],"blocked":null,"nextMoves":[{"verb":"define","by":"ui","label":"Define"},{"verb":"say","by":"ui","label":"Say…"}],"fallback":null,"revise":["shorter","longer","simpler","firmer","warmer","more evidence"],"reject":["wrong facts","wrong scope","not now","too long"],"asked":null,"permissions":[]},"observed":[]},
56
- "diagram": {"card":{"state":"done","title":"Result","steps":[],"ask":null,"permission":null,"attention":null,"failure":null,"recover":[],"problems":[],"unlabelled":0,"fallbackText":null,"result":{"type":"diagram","kind":"mermaid","source":"graph LR; T3-->T7; T7-->T9; T3-->T4; T4-->T9","title":"Dependencies: T3 to T7 to T9 is the critical path; T4 has slack","render":"drawn locally, strict mode","flags":[],"suggest":[]},"claims":[],"blocked":null,"nextMoves":[{"verb":"define","by":"ui","label":"Define"},{"verb":"say","by":"ui","label":"Say…"}],"fallback":null,"revise":["shorter","longer","simpler","firmer","warmer","more evidence"],"reject":["wrong facts","wrong scope","not now","too long"],"asked":null,"permissions":[]},"observed":[]},
57
- "file": {"card":{"state":"done","title":"Result","steps":[],"ask":null,"permission":null,"attention":null,"failure":null,"recover":[],"problems":[],"unlabelled":0,"fallbackText":null,"result":{"type":"file","title":"Quarterly slip report","media":"md","path":"outputs/r12/report.md","sha256":"c91d02","render":"rendered text","flags":[],"suggest":[]},"claims":[],"blocked":null,"nextMoves":[{"verb":"accept","by":"ui","label":"Accept"},{"verb":"revise","by":"ui","label":"Revise"},{"verb":"reject","by":"ui","label":"Reject"},{"verb":"define","by":"ui","label":"Define"},{"verb":"say","by":"ui","label":"Say…"}],"fallback":null,"revise":["shorter","longer","simpler","firmer","warmer","more evidence"],"reject":["wrong facts","wrong scope","not now","too long"],"asked":null,"permissions":[]},"observed":[]},
58
- "fileCard": {"card":{"state":"done","title":"Result","steps":[],"ask":null,"permission":null,"attention":null,"failure":null,"recover":[],"problems":[],"unlabelled":0,"fallbackText":null,"result":{"type":"file","title":"Checkout v2 slip brief","media":"md","path":"outputs/r12/brief.md","sha256":"a41c9e","render":"rendered text","flags":[],"suggest":[]},"claims":[],"blocked":null,"nextMoves":[{"verb":"accept","by":"ui","label":"Accept"},{"verb":"revise","by":"ui","label":"Revise"},{"verb":"reject","by":"ui","label":"Reject"},{"verb":"define","by":"ui","label":"Define"},{"verb":"say","by":"ui","label":"Say…"}],"fallback":null,"revise":["shorter","longer","simpler","firmer","warmer","more evidence"],"reject":["wrong facts","wrong scope","not now","too long"],"asked":null,"permissions":[]},"observed":[]},
59
- "fileBody": {"outputs/r12/report.md":"## Summary\n- Three initiatives slipped this quarter\n- Checkout v2 is the largest (6 days)\n## Detail\n- See the table in the file","outputs/r12/brief.md":"## Where we are\n- Forecast 20 Nov, promise 14 Nov: 6 days late\n- T7 slipped 4 days on 3 Oct\n## Options\n- **Cut T7**: forecast 15 Nov, costs one feature\n- **Move the promise** to 21 Nov: Dana and Lee told again\n## Assumption\n- Dana accepts a smaller launch (not checked)"},
60
- "evidence": {"card":{"state":"done","title":"Result","steps":[],"ask":null,"permission":null,"attention":null,"failure":null,"recover":[],"problems":[],"unlabelled":0,"fallbackText":null,"result":{"type":"evidence","claims":[{"text":"Forecast 20 Nov: critical path T3, T7, T9","basis":"fact","source":"plan run 09:12","range":"","ok":true},{"text":"T7 slipped 4 days on 3 Oct","basis":"fact","source":"ticket event ev_41","range":"","ok":true},{"text":"Cutting T7 returns 5 days","basis":"estimate","source":"","range":"plus or minus 2","ok":true},{"text":"Dana accepts a smaller launch. Not checked.","basis":"assumption","source":"","range":"","ok":true}],"flags":[],"suggest":[]},"claims":[{"text":"Forecast 20 Nov: critical path T3, T7, T9","basis":"fact","source":"plan run 09:12","range":"","ok":true},{"text":"T7 slipped 4 days on 3 Oct","basis":"fact","source":"ticket event ev_41","range":"","ok":true},{"text":"Cutting T7 returns 5 days","basis":"estimate","source":"","range":"plus or minus 2","ok":true},{"text":"Dana accepts a smaller launch. Not checked.","basis":"assumption","source":"","range":"","ok":true}],"blocked":null,"nextMoves":[{"verb":"accept","by":"ui","label":"Accept"},{"verb":"revise","by":"ui","label":"Revise"},{"verb":"reject","by":"ui","label":"Reject"},{"verb":"define","by":"ui","label":"Define"},{"verb":"say","by":"ui","label":"Say…"}],"fallback":null,"revise":["shorter","longer","simpler","firmer","warmer","more evidence"],"reject":["wrong facts","wrong scope","not now","too long"],"asked":null,"permissions":[]},"observed":[]},
61
- "note": {"card":{"state":"done","title":"Result","steps":[],"ask":null,"permission":null,"attention":null,"failure":null,"recover":[],"problems":[],"unlabelled":0,"fallbackText":null,"result":{"type":"note","note":"Nothing to change: the plan already holds the date.","flags":[],"suggest":[]},"claims":[],"blocked":null,"nextMoves":[{"verb":"define","by":"ui","label":"Define"},{"verb":"say","by":"ui","label":"Say…"}],"fallback":null,"revise":["shorter","longer","simpler","firmer","warmer","more evidence"],"reject":["wrong facts","wrong scope","not now","too long"],"asked":null,"permissions":[]},"observed":[]},
62
- "question": {"kind":"question","questions":[{"id":"tq1","q":"Which database for the report store?","header":"Store","multi":false,"options":[{"label":"Postgres","detail":""},{"label":"SQLite","detail":""},{"label":"Files","detail":""}]},{"id":"tq2","q":"Which exports do you need?","header":"Exports","multi":true,"options":[{"label":"PDF","detail":""},{"label":"CSV","detail":""},{"label":"Slides","detail":""}]}],"truncated":false,"error":null,"onDeny":{"behavior":"deny","message":"waiting for the PM"}},
63
- "plan": {"plan":"## Plan\n- Read the PRD and the plan run\n- Move **T7** (saved cards) to the next release\n- Update the scope table and open one PR\n## Risk\n- Dana has not accepted a smaller launch","moves":["approve","revise","reject"]},
64
- "planReplies": {"approve":{"hookSpecificOutput":{"hookEventName":"PermissionRequest","decision":{"behavior":"allow"}}},"revise":{"hookSpecificOutput":{"hookEventName":"PermissionRequest","decision":{"behavior":"deny","message":"The PM wants the plan revised: Make it shorter."}}},"reject":{"hookSpecificOutput":{"hookEventName":"PermissionRequest","decision":{"behavior":"deny","message":"The PM rejected the plan: wrong scope"}}}}
65
- },
66
- };
67
-
68
- /* ── the clock: the fixtures hold ISO times relative to FX.now; the page's frozen clock is the demo's "now" ── */
69
- function rebase(v) {
70
- if (Array.isArray(v)) return v.map(rebase);
71
- if (v && typeof v === 'object') { const o = {}; for (const k of Object.keys(v)) o[k] = rebase(v[k]); return o; }
72
- if (typeof v === 'string' && /^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d\.\d{3}Z$/.test(v)) return new Date(Date.now() - (FX.now - Date.parse(v))).toISOString();
73
- return v;
74
- }
75
- const clone = (v) => JSON.parse(JSON.stringify(v));
76
- const WORKING = (card, steps) => ({ ...card, state: 'working', title: 'Working', ask: null, permission: null, permissions: [], failure: null, recover: [], result: null, claims: [], nextMoves: [], steps: card.steps.concat(steps || []), problems: [], blocked: null });
77
- const DENIED = (card) => ({ ...card, state: 'failed', title: 'Failed', permissions: [], permission: null, failure: { code: 'blocked', why: 'Push denied. The fix is committed in the worktree but not pushed. Nothing left the repo.' }, blocked: 'Push denied. The fix is committed in the worktree but not pushed. Nothing left the repo.', recover: ['open_session', 'retry'] });
78
- const SUGGEST = { 'Ask for evidence': 'evidence', 'Show other options': 'options', 'Make a one-page brief': 'fileCard' };
79
-
80
- /** The page's demo source: the same four calls the real one has (c3-terminal-data.js), answered from memory. A press advances the state; nothing is sent. */
81
- export function makeSource() {
82
- const T = rebase(FX);
83
- const S = { runs: T.runs, groups: T.groups, corr: 0, acc: 0, next: '', subs: new Set(), seq: 0, vn: 0 };
84
- const note = () => S.subs.forEach((f) => { try { f(); } catch { /* a subscriber is gone */ } });
85
- const set = (id, card, observed) => { S.runs[id] = { card: { ...card }, observed: observed || (S.runs[id] && S.runs[id].observed) || [] }; note(); };
86
- const finish = (id) => {
87
- const k = S.next; S.next = '';
88
- if (k && T.fail[k]) set(id, { ...T.fail[k].card, permissions: [] }, S.runs[id].observed);
89
- else if (T.after[id]) set(id, T.after[id].card, T.after[id].observed);
90
- else note();
91
- };
92
- const stage = (id, steps, fn, ms) => { set(id, WORKING(S.runs[id].card, steps)); setTimeout(fn || (() => finish(id)), ms || 1500); };
93
- const src = {
94
- demo: true, canPrompt: true, why: '',
95
- async getRuns() {
96
- const cards = {}; const observed = {};
97
- for (const id of Object.keys(S.runs)) { cards[id] = S.runs[id].card; observed[id] = S.runs[id].observed; }
98
- return { ok: true, groups: S.groups, cards, demo: { observed, timeline: T.timeline, pastMeta: T.pastMeta, glossary: T.glossary, fileBody: (p) => T.edge.fileBody[p], accepted: S.acc, corrected: S.corr } };
99
- },
100
- async answer(b) {
101
- if (!b || !S.runs[b.run]) return { ok: false, error: 'no such run' };
102
- if (b.behavior === 'accept') { S.acc += 1; return { ok: true }; }
103
- if (b.behavior === 'deny') { set(b.run, DENIED(S.runs[b.run].card)); return { ok: true }; }
104
- if (b.behavior === 'allow') { stage(b.run, ['Pushing the branch']); return { ok: true }; }
105
- if (b.behavior === 'answer') { stage(b.run, ['Re-planning', 'Opening PR 143']); return { ok: true }; }
106
- return { ok: false, error: 'behavior must be allow, deny, accept or answer' };
107
- },
108
- async correct(b) { if (!b || !S.runs[b.run]) return { ok: false, error: 'no such run' }; S.corr += 1; return { ok: true }; },
109
- async send(id, m) {
110
- if (!S.runs[id]) return { ok: false, error: 'no such run' };
111
- if (m.verb === 'free') return { ok: true, say: { basis: 'estimate', text: 'The margin is 1 day because T9 starts the day T3 ends (plan run 09:41). Estimate, plus or minus 2.' } };
112
- const cur = S.runs[id].card;
113
- if (m.verb === 'suggest') {
114
- const key = SUGGEST[m.label];
115
- const to = key === 'evidence' ? T.edge.evidence : key === 'options' ? T.runs['sess-112'] : key === 'fileCard' ? T.edge.fileCard : null;
116
- stage(id, [m.label], () => { const k = S.next; S.next = ''; if (k && T.fail[k]) set(id, { ...T.fail[k].card }); else if (to) set(id, { ...to.card }); else set(id, cur); }, 1500);
117
- return { ok: true };
118
- }
119
- if (m.verb === 'revise') {
120
- stage(id, ['Revising'], () => {
121
- const c = clone(cur); const r = c.result;
122
- if (r && r.body) r.body = m.arg === 'shorter' ? 'Hi Dana, confirmed: smaller launch, 14 Nov. Please reply by Friday.' : m.arg === 'warmer' ? 'Hi Dana, thank you for the quick reply. We can keep 14 Nov with a smaller launch and bring saved cards after. Could you confirm by Friday?' : r.body + ' (' + m.arg + ')';
123
- else if (r && r.claims && m.arg === 'more evidence') { r.claims.push({ text: 'Source added', basis: 'fact', source: 'plan run 09:12 and ticket event ev_41', ok: true }); c.claims = r.claims; }
124
- S.next = ''; set(id, c);
125
- }, 1300);
126
- return { ok: true };
127
- }
128
- if (m.verb === 'retry') { stage(id, ['Trying again']); return { ok: true }; }
129
- return { ok: false, error: 'unknown verb' };
130
- },
131
- voice() { return S.vn++ % 2 === 0 ? T.moves.voice : T.moves.voice2; },
132
- subscribe(f) { S.subs.add(f); return () => S.subs.delete(f); },
133
- /* the mockup's two demo controls: how the next reply ends, and a detector firing */
134
- setNext(k) { S.next = k || ''; },
135
- fire() {
136
- const id = 'sess-12' + (++S.seq); const t = new Date().toISOString();
137
- S.groups = { ...S.groups, automatic: [{ id, plan_item: null, name: 'Search ranking slip', origin: 'detector', cardId: null, startedAt: t, endedAt: null }, ...S.groups.automatic] };
138
- S.runs[id] = { card: WORKING({ ...clone(T.after['sess-101'].card), steps: [] }, ['Running what-if on T6']), observed: [{ tool: 'Bash', what: 'node scripts/plan.js --what-if T6', at: t }] };
139
- note();
140
- setTimeout(() => {
141
- const cid = 'sess-13' + S.seq; const base = clone(T.after['sess-101'].card);
142
- base.result = { ...base.result, headline: 'Search ranking slipped 3 days after T4', tag: 'Just in', hero: { t: 'tl', p: 20, f: 23 }, chip: null, claims: [{ text: 'Forecast 23 Nov', basis: 'fact', source: 'plan run 10:05', ok: true }, { text: 'Running T6 in parallel returns 2 days', basis: 'estimate', range: 'plus or minus 1', ok: true }] }; base.claims = base.result.claims;
143
- S.groups = { ...S.groups, automatic: S.groups.automatic.map((s) => (s.id === id ? { ...s, endedAt: new Date().toISOString() } : s)), onCard: [{ id: cid, plan_item: 'new', name: 'Search ranking slipped 3 days', origin: 'manual', cardId: 'new', startedAt: t, endedAt: null }, ...S.groups.onCard] };
144
- S.runs[id] = { card: { ...T.runs['sess-110'].card }, observed: [] }; S.runs[cid] = { card: base, observed: [] };
145
- note();
146
- }, 1500);
147
- },
148
- get counts() { return { accepted: S.acc, corrected: S.corr }; },
149
- };
150
- return src;
151
- }
152
- export { FX };
153
- if (typeof window !== 'undefined') window.__c3termfx_make = makeSource;
@@ -1,49 +0,0 @@
1
- /* pm/c3-demo-time.js — DEMO fixtures for the Initiatives Timeline of /c3.html?demo=1, in the REAL response shape of GET /api/c3-timeline
2
- * (workspace/lib/routes-c3-timeline.js). c3-demo.js answers /api/c3-timeline with timeline(); real mode never loads this file.
3
- * The DATA was generated by running the mockup's own functions in the mockup page (console3.html: tixAt, planOf, fcAt, ptsAt, revsAt, lines 3896 to 4040)
4
- * for each of its five checks and dumping what they return, not typed by hand. Days are the mockup's day numbers (8 = 8 Oct 2026). */
5
- const TODAY = '2026-10-08';
6
- const SNAP = [["14 Sep","Baseline"],["25 Sep","Saved-card removal added"],["30 Sep","A11y audit added"],["5 Oct","Address autocomplete added"],["8 Oct","Today"]];
7
- /* item: [title, source, phase or work package, owner, state, progress, milestone, critical, blocker note, initiative] */
8
- const META = {"CHK-136":["Payment form redesign","Jira","Payments","Dara","done",1,0,0,"","checkout"],"CHK-137":["Tax and shipping display","Jira","Summary and copy","Lee","done",1,0,0,"","checkout"],"CHK-138":["Order summary","Figma","Design","Lee","done",1,0,0,"","checkout"],"CHK-139":["Pricing page copy","Figma","Design","Lee","done",1,0,0,"","checkout"],"CHK-141":["Payments sandbox keys","Jira","Payments","Dara","doing",0.6,0,1,"vendor, 2 days","checkout"],"CHK-145":["Ship Checkout v2","Jira","Quality and release","Dara","todo",0,1,1,"","checkout"],"PM-1":["Address drop-off analysis","Local","Discovery","Agent","done",1,0,0,"","checkout"],"PM-2":["Retry flow whiteboard session","Calendar","Discovery","Wawan","done",1,0,0,"","checkout"],"PM-3":["Checkout flow screens","Figma","Design","Lee","doing",0.6,0,0,"","checkout"],"PM-4":["Release notes","Local","Launch","Wawan","todo",0,0,0,"","checkout"],"PM-5":["Support and sales brief","Local","Launch","Marta","todo",0,0,0,"","checkout"],"CHK-142":["Saved-card removal","Jira","Payments","Wawan","todo",0,0,1,"","checkout"],"CHK-144":["A11y audit slot","Jira","Quality and release","Lee","todo",0,0,1,"no slot before 28 Oct","checkout"],"CHK-143":["Address autocomplete","Jira","Address step","Dara","todo",0,0,0,"","checkout"],"EN-418":["Index job fix","Jira","Relevance","Sam","doing",0.7,0,0,"platform review","search"],"EN-421":["Ranking weights v2","Local","Design","Wawan","todo",0,0,0,"","search"],"EN-425":["Relevance beta","Jira","Relevance","Sam","todo",0,1,0,"","search"],"RET-11":["Interview 3","Calendar","Discovery","Wawan","doing",0.5,0,0,"","returns"],"RET-12":["Interview 4 slot","Gmail","Discovery","Wawan","todo",0,0,0,"","returns"],"RET-13":["Interview 5","Calendar","Discovery","Wawan","todo",0,0,0,"","returns"],"RET-14":["Synthesis and stop rule","Local","Discovery","Agent","todo",0,1,0,"","returns"],"SSO-32":["Beta feedback round","Local","Launch","Marta","done",1,0,0,"","sso"],"SSO-31":["SCIM docs","Jira","Enterprise setup","Wawan","doing",0.5,0,0,"","sso"],"SSO-33":["Confirm date to Marta","Promise","Launch","Wawan","todo",0,0,0,"","sso"],"SSO-34":["SSO general release","Jira","Enterprise setup","Dara","todo",0,1,0,"","sso"],"ONB-2":["Continue or park decision","Notes","Discovery","Wawan","todo",0,0,0,"","onb"]};
9
- /* per initiative, per check: { pts, fc: [forecast day, promised day], it: [[key, start, due, waits on, forecast start, forecast end, status, points]], ev: [[key, kind, by, why, tx]] } */
10
- const FRAMES = {"checkout":[{"n":0,"pts":33,"fc":[24,24],"it":[["CHK-136",1,5,[],1,5,"done",8],["CHK-137",1,5,[],1,5,"done",5],["CHK-138",2,6,[],2,6,"done",3],["CHK-139",1,7,[],1,7,"done",2],["CHK-141",3,10,[],3,10,"risk",2],["CHK-145",24,24,["CHK-141"],24,24,"ok",1],["PM-1",1,6,[],1,6,"done",3],["PM-2",7,7,[],7,7,"done",1],["PM-3",5,16,[],5,16,"ok",5],["PM-4",22,23,["CHK-144"],22,23,"ok",1],["PM-5",21,23,[],21,23,"ok",2]],"ev":[["CHK-136","add","Wawan","Part of the original plan.",""],["CHK-137","add","Wawan","Part of the original plan.",""],["CHK-138","add","Wawan","Part of the original plan.",""],["CHK-139","add","Wawan","Part of the original plan.",""],["CHK-141","add","Wawan","Payments need vendor sandbox keys first.",""],["CHK-145","add","Wawan","Date promised to leadership on 2 Oct.",""],["PM-1","add","Wawan","Part of the original plan.",""],["PM-2","add","Wawan","Part of the original plan.",""],["PM-3","add","Wawan","Part of the original plan.",""],["PM-4","add","Wawan","Part of the original plan.",""],["PM-5","add","Wawan","Part of the original plan.",""]]},{"n":1,"pts":38,"fc":[24,24],"it":[["CHK-136",1,5,[],1,5,"done",8],["CHK-137",1,5,[],1,5,"done",5],["CHK-138",2,6,[],2,6,"done",3],["CHK-139",1,7,[],1,7,"done",2],["CHK-141",3,10,[],3,10,"risk",2],["CHK-142",11,17,["CHK-141"],11,17,"ok",5],["CHK-145",24,24,["CHK-141","CHK-142"],24,24,"ok",1],["PM-1",1,6,[],1,6,"done",3],["PM-2",7,7,[],7,7,"done",1],["PM-3",5,16,[],5,16,"ok",5],["PM-4",22,23,["CHK-144"],22,23,"ok",1],["PM-5",21,23,[],21,23,"ok",2]],"ev":[["CHK-142","add","Agent","PRD review: saved cards block the one-page flow. The agent proposed it and you accepted.",""],["CHK-145","edit","Agent","Dependency added with the new ticket.","Waits on CHK-142"]]},{"n":2,"pts":41,"fc":[26,24],"it":[["CHK-136",1,5,[],1,5,"done",8],["CHK-137",1,5,[],1,5,"done",5],["CHK-138",2,6,[],2,6,"done",3],["CHK-139",1,7,[],1,7,"done",2],["CHK-141",3,10,[],3,10,"risk",2],["CHK-142",11,17,["CHK-141"],11,17,"ok",5],["CHK-144",21,24,["CHK-142"],23,26,"late",3],["CHK-145",24,24,["CHK-144"],24,26,"late",1],["PM-1",1,6,[],1,6,"done",3],["PM-2",7,7,[],7,7,"done",1],["PM-3",5,16,[],5,16,"ok",5],["PM-4",22,23,["CHK-144"],27,28,"late",1],["PM-5",21,23,[],21,23,"ok",2]],"ev":[["CHK-144","add","Agent","Gate review: an accessibility audit is required for checkout. Added to the plan.",""],["CHK-145","edit","Agent","Dependency added with the audit.","Waits on CHK-144"]]},{"n":3,"pts":46,"fc":[28,24],"it":[["CHK-136",1,5,[],1,5,"done",8],["CHK-137",1,5,[],1,5,"done",5],["CHK-138",2,6,[],2,6,"done",3],["CHK-139",1,7,[],1,7,"done",2],["CHK-141",3,10,[],3,11,"late",2],["CHK-142",11,17,["CHK-141"],12,18,"late",5],["CHK-143",9,18,["CHK-141"],12,21,"late",5],["CHK-144",21,24,["CHK-142"],25,28,"late",3],["CHK-145",24,24,["CHK-144","CHK-143"],24,28,"late",1],["PM-1",1,6,[],1,6,"done",3],["PM-2",7,7,[],7,7,"done",1],["PM-3",5,16,[],5,16,"ok",5],["PM-4",22,23,["CHK-144"],29,30,"late",1],["PM-5",21,23,[],21,23,"ok",2]],"ev":[["CHK-141","edit","Dara","Vendor said one more day.","Slip 0 to 1 day"],["CHK-143","add","Wawan","Top idea by score in Ideate. The address step loses 45% of carts.",""],["CHK-144","edit","Lee","The vendor moved their first free slot.","Slot 23 to 25 Oct"],["CHK-145","edit","Agent","Dependency added with autocomplete.","Waits on CHK-143"]]},{"n":4,"pts":46,"fc":[31,24],"it":[["CHK-136",1,5,[],1,5,"done",8],["CHK-137",1,5,[],1,5,"done",5],["CHK-138",2,6,[],2,6,"done",3],["CHK-139",1,7,[],1,7,"done",2],["CHK-141",3,10,[],3,12,"late",2],["CHK-142",11,17,["CHK-141"],13,19,"late",5],["CHK-143",11,20,["CHK-141"],13,22,"late",5],["CHK-144",21,24,["CHK-142"],28,31,"late",3],["CHK-145",24,24,["CHK-144","CHK-143"],24,31,"late",1],["PM-1",1,6,[],1,6,"done",3],["PM-2",7,7,[],7,7,"done",1],["PM-3",5,16,[],5,16,"ok",5],["PM-4",22,23,["CHK-144"],32,33,"late",1],["PM-5",21,23,[],21,23,"ok",2]],"ev":[["CHK-141","edit","Dara","No reply since Tuesday. A second day is lost.","Slip 1 to 2 days"],["CHK-143","move","Dara","It cannot start before the keys arrive.","Start 9 to 11 Oct, end 18 to 20 Oct"],["CHK-144","edit","Lee","The vendor moved the slot again.","Slot 25 to 28 Oct"]]}],"search":[{"n":0,"pts":13,"fc":[30,30],"it":[["EN-418",2,12,[],2,12,"risk",5],["EN-421",13,24,["EN-418"],13,24,"ok",5],["EN-425",25,30,["EN-421"],25,30,"ok",3]],"ev":[["EN-418","add","Wawan","Search relevance needs the index fix first.",""],["EN-421","add","Wawan","Part of the original plan.",""],["EN-425","add","Wawan","Part of the original plan.",""]]},{"n":1,"pts":13,"fc":[30,30],"it":[["EN-418",2,12,[],2,12,"risk",5],["EN-421",13,24,["EN-418"],13,24,"ok",5],["EN-425",25,30,["EN-421"],25,30,"ok",3]],"ev":[]},{"n":2,"pts":13,"fc":[30,30],"it":[["EN-418",2,12,[],2,12,"risk",5],["EN-421",13,24,["EN-418"],13,24,"ok",5],["EN-425",25,30,["EN-421"],25,30,"ok",3]],"ev":[]},{"n":3,"pts":13,"fc":[30,30],"it":[["EN-418",2,12,[],2,14,"late",5],["EN-421",13,24,["EN-418"],15,26,"late",5],["EN-425",25,30,["EN-421"],25,30,"ok",3]],"ev":[["EN-418","edit","Sam","Platform review asked for changes.","Slip 0 to 2 days"]]},{"n":4,"pts":13,"fc":[30,30],"it":[["EN-418",2,12,[],2,15,"late",5],["EN-421",13,24,["EN-418"],16,27,"late",5],["EN-425",25,30,["EN-421"],25,30,"ok",3]],"ev":[["EN-418","edit","Sam","Review is still open.","Slip 2 to 3 days"]]}],"returns":[{"n":0,"pts":5,"fc":[15,15],"it":[["RET-11",8,8,[],8,8,"ok",1],["RET-12",9,12,[],9,12,"ok",1],["RET-13",13,13,["RET-12"],13,13,"ok",1],["RET-14",14,15,["RET-13"],14,15,"ok",2]],"ev":[["RET-11","add","Wawan","Part of the original plan.",""],["RET-12","add","Wawan","Five interviews in the discovery brief.",""],["RET-13","add","Wawan","Part of the original plan.",""],["RET-14","add","Agent","The brief says: decide after interview 5.",""]]},{"n":1,"pts":5,"fc":[15,15],"it":[["RET-11",8,8,[],8,8,"ok",1],["RET-12",9,12,[],9,12,"ok",1],["RET-13",13,13,["RET-12"],13,13,"ok",1],["RET-14",14,15,["RET-13"],14,15,"ok",2]],"ev":[]},{"n":2,"pts":5,"fc":[15,15],"it":[["RET-11",8,8,[],8,8,"ok",1],["RET-12",9,12,[],9,12,"ok",1],["RET-13",13,13,["RET-12"],13,13,"ok",1],["RET-14",14,15,["RET-13"],14,15,"ok",2]],"ev":[]},{"n":3,"pts":5,"fc":[15,15],"it":[["RET-11",8,8,[],8,8,"ok",1],["RET-12",9,12,[],9,12,"ok",1],["RET-13",13,13,["RET-12"],13,13,"ok",1],["RET-14",14,15,["RET-13"],14,15,"ok",2]],"ev":[]},{"n":4,"pts":5,"fc":[15,15],"it":[["RET-11",8,8,[],8,8,"ok",1],["RET-12",9,12,[],9,12,"ok",1],["RET-13",13,13,["RET-12"],13,13,"ok",1],["RET-14",14,15,["RET-13"],14,15,"ok",2]],"ev":[["RET-12","edit","Agent","Marta offered three slots. The agent held them.","Slots held"]]}],"sso":[{"n":0,"pts":10,"fc":[14,14],"it":[["SSO-32",1,6,[],1,6,"done",3],["SSO-31",3,12,[],3,12,"ok",5],["SSO-33",12,12,[],12,12,"ok",1],["SSO-34",14,14,["SSO-31","SSO-33"],14,14,"ok",1]],"ev":[["SSO-32","add","Wawan","Part of the original plan.",""],["SSO-31","add","Wawan","Part of the original plan.",""],["SSO-33","add","Wawan","Part of the original plan.",""],["SSO-34","add","Wawan","Part of the original plan.",""]]},{"n":1,"pts":10,"fc":[14,14],"it":[["SSO-32",1,6,[],1,6,"done",3],["SSO-31",3,12,[],3,12,"ok",5],["SSO-33",12,12,[],12,12,"ok",1],["SSO-34",14,14,["SSO-31","SSO-33"],14,14,"ok",1]],"ev":[]},{"n":2,"pts":10,"fc":[14,14],"it":[["SSO-32",1,6,[],1,6,"done",3],["SSO-31",3,12,[],3,12,"ok",5],["SSO-33",12,12,[],12,12,"ok",1],["SSO-34",14,14,["SSO-31","SSO-33"],14,14,"ok",1]],"ev":[]},{"n":3,"pts":10,"fc":[14,14],"it":[["SSO-32",1,6,[],1,6,"done",3],["SSO-31",3,12,[],3,12,"ok",5],["SSO-33",12,12,[],12,12,"ok",1],["SSO-34",14,14,["SSO-31","SSO-33"],14,14,"ok",1]],"ev":[]},{"n":4,"pts":10,"fc":[14,14],"it":[["SSO-32",1,6,[],1,6,"done",3],["SSO-31",3,12,[],3,12,"ok",5],["SSO-33",12,12,[],12,12,"ok",1],["SSO-34",14,14,["SSO-31","SSO-33"],14,14,"ok",1]],"ev":[]}],"onb":[{"n":0,"pts":1,"fc":null,"it":[["ONB-2",8,12,[],8,12,"ok",1]],"ev":[["ONB-2","add","Wawan","Part of the original plan.",""]]},{"n":1,"pts":1,"fc":null,"it":[["ONB-2",8,12,[],8,12,"ok",1]],"ev":[]},{"n":2,"pts":1,"fc":null,"it":[["ONB-2",8,12,[],8,12,"ok",1]],"ev":[]},{"n":3,"pts":1,"fc":null,"it":[["ONB-2",8,12,[],8,12,"ok",1]],"ev":[]},{"n":4,"pts":1,"fc":null,"it":[["ONB-2",8,12,[],8,12,"ok",1]],"ev":[]}]};
11
- const dOf = (n) => new Date(Date.UTC(2026, 9, n)).toISOString().slice(0, 10);
12
- const STATUS = { done: 'done', ok: 'on time', risk: 'at risk', late: 'delayed', over: 'overdue' };
13
- const PMOS = new Set(['Local', 'Figma', 'Calendar', 'Gmail', 'Notes', 'Image']);
14
- const ORIGIN = (src) => (src === 'Jira' ? 'jira' : PMOS.has(src) ? 'breakdown' : 'plan');
15
-
16
- function frame(id, n) {
17
- const f = FRAMES[id][n];
18
- const items = f.it.map(([k, s, e, dep, fs, fe, st, pts]) => {
19
- const [t, src, ph, o, c, p, ms, crit, bl] = META[k];
20
- return { id: k, key: k, title: t, origin: ORIGIN(src), src, phase: ph, owner: o, state: c, progress: p, ms: !!ms, start: dOf(s), due: dOf(e), after: dep.slice(), points: pts,
21
- blocker: bl || null, critical: !!crit && c !== 'done', forecast: { start: dOf(fs), end: dOf(fe), status: STATUS[st] || 'on time', slip_days: st === 'done' ? 0 : Math.max(0, fe - e) } };
22
- });
23
- const by = new Map(items.map((i) => [i.id, i]));
24
- const events = f.ev.map(([k, kind, who, why, tx]) => ({ id: k, key: k, title: META[k][0], origin: ORIGIN(META[k][1]), op: kind === 'add' ? 'add' : 'edit', by: who, why, tx, at: dOf(8) }));
25
- const prev = n ? FRAMES[id][n - 1] : null;
26
- const changes = n ? { added: events.filter((e) => e.op === 'add').map((e) => ({ id: e.id, title: e.title, by: e.by, why: e.why })), removed: [],
27
- moved: events.filter((e) => e.op === 'edit' && /^(Start|End|Slip|Slot)/.test(e.tx)).map((e) => ({ id: e.id, title: e.title, by: e.by, why: e.why, field: 'due' })),
28
- deps: events.filter((e) => /^Waits on/.test(e.tx)).map((e) => ({ id: e.id, title: e.title, by: e.by, why: e.why, added: [], removed: [] })),
29
- points: { from: prev.pts, to: f.pts, delta: f.pts - prev.pts } } : null;
30
- const crit = items.filter((i) => i.critical).map((i) => i.id);
31
- void by;
32
- return { check: n, date: dOf(SNAP_DAYS[n]), label: SNAP[n][1] === 'Today' ? 'Today' : SNAP[n][1], items, critical: crit, forecast_end: f.fc ? dOf(f.fc[0]) : null, promised: f.fc ? dOf(f.fc[1]) : null,
33
- slip_days: f.fc ? f.fc[0] - f.fc[1] : 0, points: f.pts, problems: [], changes, events };
34
- }
35
- const SNAP_DAYS = [-16, -5, 0, 5, 8]; // 14 Sep, 25 Sep, 30 Sep, 5 Oct, 8 Oct as day numbers of the mockup (day 8 = 8 Oct)
36
-
37
- /** GET /api/c3-timeline?initiative=<id> and ?initiatives=a,b,c */
38
- export function timeline(q) {
39
- if (q.initiatives) {
40
- const ids = q.initiatives.split(',').filter((i) => FRAMES[i]);
41
- const checks = SNAP.map((s, n) => ({ check: n, date: dOf(SNAP_DAYS[n]), label: s[1] }));
42
- return { ok: true, today: TODAY, checks, rows: ids.map((id) => ({ id, cells: FRAMES[id].map((f, n) => (f.fc ? { date: dOf(SNAP_DAYS[n]), forecast_end: dOf(f.fc[0]), promised: dOf(f.fc[1]), slip_days: f.fc[0] - f.fc[1] } : null)) })) };
43
- }
44
- const id = q.initiative;
45
- if (!FRAMES[id]) return { ok: true, initiative: id, today: TODAY, checks: [], frames: [], sources: { plan: 0, breakdown: 0, jira: 0 }, notes: [] };
46
- const frames = FRAMES[id].map((_, n) => frame(id, n));
47
- const src = (o) => frames[frames.length - 1].items.filter((i) => i.origin === o).length;
48
- return { ok: true, initiative: id, today: TODAY, checks: frames.map((f) => ({ check: f.check, date: f.date, label: f.label })), frames, sources: { plan: src('plan'), breakdown: src('breakdown'), jira: src('jira') }, notes: [] };
49
- }
@@ -1,32 +0,0 @@
1
- /* pm/c3-demo-work-ix.js — the case-file content of the Work rows in DEMO mode (/c3.html?demo=1): sample evidence, options and an agent
2
- * run, in the console3 mockup's style (console3.html genTask 3216, the agent moves AM at line 4958). Importing this file attaches an `ix`
3
- * object to demo work items of c3-demo-data.js, matched by TITLE (the item ids come from a counter in that file). pm-work-view.js reads
4
- * `item.ix` only when the item has it, so real mode, whose items never carry one, draws a case file from the item's own fields.
5
- *
6
- * The decisions and approvals that used to have case files here ("Approve pricing-page copy", "Say yes to Sam", the scope decision)
7
- * are Briefing · Needs you items now (initiative console3-work-page, PRD R9); their case files live in c3-demo-brief-ix.js.
8
- *
9
- * Shape of ix: { move, conf, why: [text, source] (the first evidence row), chg / unsure / ign (a case of its own), steps: [agent run steps],
10
- * res: { h, draft?, out?, claims: [[label, text]] }, ev: { h, claims } }
11
- * Nothing here is sent anywhere: a draft stays a draft (the case file's slide for a send is disabled: no channel connected). */
12
- import { pmItems } from './c3-demo-data.js';
13
-
14
- const FIX = {
15
- 'Send the revised Checkout v2 timeline to Dara': {
16
- move: 'Draft the email with the 24 Oct plan and the two risks', conf: 80,
17
- why: ['You told Dara on Tuesday the timeline would follow by Wednesday.', 'Gmail'],
18
- steps: ['Reading the Jira board', 'Reading the risk log', 'Drafting the email'],
19
- res: { h: 'Email to Dara drafted: the 24 Oct plan and two risks', draft: 'Hi Dara, here is the revised Checkout v2 timeline. Code freeze 20 Oct, release 24 Oct. Two risks: the sandbox keys and QA capacity. I will confirm QA with you today.', out: 'Dara, email',
20
- claims: [['fact', 'Code freeze 20 Oct, from the Jira board'], ['fact', 'Two open risks in the risk log'], ['est', 'QA capacity is not confirmed yet']] },
21
- ev: { h: 'Where the dates come from', claims: [['fact', 'Jira board "Checkout v2", fix version 24 Oct'], ['rep', 'Dara asked on Tuesday (Gmail, imported)']] },
22
- },
23
- 'Update the Checkout v2 risk log': {
24
- sit: 'Two risks changed this week: the sandbox keys are late and QA capacity is open. The log still shows both as green.',
25
- chg: [['alert', 'Payments sandbox keys: 2 days late', 'Jira', 'warn'], ['user', 'QA capacity: talk to Dara today', 'Work'], ['clock', 'Last edited 6 days ago', 'Confluence']],
26
- },
27
- };
28
-
29
- try {
30
- for (const row of pmItems().items) { const f = FIX[row.title]; if (f) row.ix = f; }
31
- } catch { /* the fixtures are optional: a work item without ix gets a case built from its own fields */ }
32
- export const WORK_IX_TITLES = Object.keys(FIX);
@@ -1,131 +0,0 @@
1
- /* pm/c3-demo.js — DEMO MODE of the console3 shell page (/c3.html?demo=1). c3-shell.js loads this module only when the URL has demo=1,
2
- * before any view mounts. It does three things and nothing else:
3
- * 1. It freezes the page clock at the mockup's "now" (Thu 8 Oct 2026, 08:12) by replacing the global Date, so every view that asks
4
- * for "today" or "now" draws the mockup's day. Frozen, not ticking: the mockup's day does not move either.
5
- * 2. It wraps window.fetch (the original is kept in `realFetch`). A GET to one of the /api routes the page uses is answered with
6
- * the fixtures in c3-demo-data.js, which have the real routes' response shapes. A GET to any other path goes to the server as
7
- * it is. EVERY non-GET request is answered here with { ok: true } (and the real route's shape where a view needs one): no
8
- * press reaches the server, nothing is saved.
9
- * 3. It gives the shell the small "Demo data: nothing is saved" pill for the header (demoPill).
10
- * Real mode never loads this file. The views are the real views: only the answers differ. */
11
- import { el } from './dom.js';
12
- import * as D from './c3-demo-data.js';
13
- import { installInit } from './c3-demo-init.js';
14
- import { focusGet, focusPost } from './c3-demo-focus.js'; // Meeting focus: the mockup's Partner API review (GET /api/meeting-focus, its ask poll, and the topic and ask POSTs)
15
- import { materialGet, materialPost, materialFor } from './c3-demo-material.js'; // Meeting material: GET and POST /api/meeting-material, its suggestions, and the material in the Focus read
16
- import { installBoards } from './c3-demo-boards.js'; // Initiatives boards: answers every /api/boards GET and POST (installed outermost, in installDemo)
17
- import { installCoreDocs } from './c3-demo-coredocs.js'; // Core documents of each level: GET /api/core-docs and its POSTs (installed outermost, after installBoards)
18
- import './c3-demo-cal-ix.js'; // Calendar and the ribbon: sets window.__c3calix (calendar-views.js reads it in demo only)
19
- import './c3-demo-cal3.js'; // Calendar Quarter and Year: answers GET /api/c3-strategy (chained under this file's fetch wrapper)
20
- import './c3-demo-rep-ix.js'; // Reports fixtures: sets window.__c3repix (report-families-view.js reads it in demo only)
21
- import './c3-demo-cal2.js'; // Calendar After notes, Week grid, Progress and timing: sets window.__c3cal2 (calendar-views.js reads it in demo only)
22
- import './c3-demo-work-ix.js'; // Work case files: attaches `ix` (evidence, options, agent steps) to the demo work items (pm-work-view.js reads it in demo only)
23
- import './c3-demo-term.js'; // Agent surfaces: registers the run fixtures (window.__c3termfx_make); c3-terminal-data.js reads them in demo only
24
- import './c3-demo-life.js'; // Lifecycle panels: ideas, hypotheses, lessons, gates, evaluations, corrections (wraps window.fetch for those GETs; innermost, so it loads before realFetch is taken)
25
- import './c3-demo-misc2.js'; // the Reflect lens's "What I could stop" (installMisc2 wraps the fetch after the briefing fixtures)
26
- import { timeline } from './c3-demo-time.js'; // Initiatives Timeline: every check as a frame, in the real /api/c3-timeline shape
27
- import { withCalendarPage } from './c3-demo-cal4.js'; // Calendar page: the layers, the free blocks and the meeting context on the calendar-views answer
28
- import './c3-demo-plan2.js'; // Commitments, Why it slips, Dependencies and Releases of Deliver: sets window.__c3planfx (c3-plan-panels.js, timeline-forecast-view.js, releases-view.js read it in demo only)
29
- import { installRep3 } from './c3-demo-rep3.js'; // Reports dashboards: GET /api/report-dashboards and /data, POST layout (installed OVER this file's wrapper, see its header)
30
-
31
- const realFetch = window.fetch.bind(window);
32
-
33
- /* ── the clock ── */
34
- function freezeClock() {
35
- const RealDate = Date;
36
- const fixed = new RealDate(D.NOW_ISO).getTime(); // local time, as the mockup's clock reads 08:12 for the PM
37
- function FakeDate(...a) {
38
- if (!new.target) return new RealDate(fixed).toString();
39
- return a.length ? new RealDate(...a) : new RealDate(fixed);
40
- }
41
- FakeDate.prototype = RealDate.prototype;
42
- FakeDate.now = () => fixed;
43
- FakeDate.UTC = RealDate.UTC;
44
- FakeDate.parse = RealDate.parse;
45
- Object.defineProperty(window, 'Date', { value: FakeDate, configurable: true, writable: true });
46
- }
47
-
48
- /* ── the answers ── */
49
- const json = (body, status) => new Response(JSON.stringify(body), { status: status || 200, headers: { 'content-type': 'application/json' } });
50
- let added = 0;
51
-
52
- function getRoute(path, url) {
53
- const q = new URL(url, location.origin).searchParams;
54
- switch (path) {
55
- case '/api/briefing': return D.briefing(url);
56
- case '/api/calendar-views': return withCalendarPage(D.calendarViews(url));
57
- case '/api/meeting-focus': { const o = focusGet(path, url); return o && o.ok ? { ...o, material: [...materialFor({ id: q.get('event') || '', title: q.get('title') || '' }), ...materialFor(o.event)] } : o; } // what was asked for, and the sample meeting the demo answers with
58
- case '/api/meeting-focus/ask': case '/api/meeting-focus/now': return focusGet(path, url);
59
- case '/api/meeting-material': case '/api/meeting-material/suggest': return materialGet(path, url);
60
- case '/api/pm-items': return D.pmItems();
61
- case '/api/runs': return D.runs();
62
- case '/api/releases': return D.releases();
63
- case '/api/forecast': return D.forecast(q.get('initiative') || 'checkout');
64
- case '/api/forecast/at': return D.forecastAt(q.get('initiative') || 'checkout', q.get('date') || D.TODAY);
65
- case '/api/c3-timeline': return timeline({ initiative: q.get('initiative') || '', initiatives: q.get('initiatives') || '' }); // the Timeline's frames (c3-demo-time.js)
66
- case '/api/report-families': return D.reportFamilies();
67
- case '/api/report-families/facts': return D.reportFacts();
68
- case '/api/workspaces': return D.workspaces();
69
- case '/api/sessions': return D.sessions();
70
- case '/api/sessions/transcript': return D.transcript(q.get('id'));
71
- case '/api/scratchpad': return { ok: true, text: '' };
72
- case '/api/git/worktrees': return D.worktrees();
73
- case '/api/initiatives': return D.roadmap(q.get('ws') || D.WS_ID);
74
- case '/api/outbox': return D.outbox();
75
- default: return undefined;
76
- }
77
- }
78
-
79
- /* a write: nothing is saved; the answer has the shape the real route's caller reads */
80
- function postRoute(path, body) {
81
- let b = {};
82
- try { b = body ? JSON.parse(body) : {}; } catch { b = {}; }
83
- if (path.startsWith('/api/meeting-focus/')) return focusPost(path, body);
84
- if (path === '/api/meeting-material') return materialPost(b);
85
- if (path === '/api/pm-items/add') return { ok: true, item: { id: 'item-demo-new' + (++added), title: String(b.line || '').trim() || 'New item', due: null, priority: null, waiting_on: null, job: null, steps: [], created_at: D.NOW_ISO + 'Z' } };
86
- if (path === '/api/pm-items/remove') return { ok: true, undo_ms: 8000 };
87
- if (path === '/api/calendar-links') return (window.__c3links = (window.__c3links || []).concat([b])), { ok: true, link: b.kind === 'none' ? null : { kind: b.kind, ws: b.ws || null, board: b.board || null, initiative: b.initiative || null, title: b.title || null, by: 'pm:wawan' } }; // nothing is saved
88
- /* the Work page's routes (initiative console3-work-page): each answers as the real route does; pm-work-view.js lays the press over the fixtures */
89
- if (path === '/api/pm-items/notyet') {
90
- const when = String(b.when || ''); const n = when === 'tomorrow' ? 1 : when === 'next-week' ? 7 : 0;
91
- return { ok: true, defer: n ? new Date(Date.parse(D.TODAY + 'T00:00:00Z') + n * 86400000).toISOString().slice(0, 10) : null };
92
- }
93
- if (['/api/pm-items/flag', '/api/pm-items/defer', '/api/pm-items/someday', '/api/pm-items/waiting', '/api/pm-items/keep', '/api/pm-items/done'].includes(path)) return { ok: true, item: { id: b.id } };
94
- if (path.startsWith('/api/pm-items/focus/')) return { ok: true, key: b.key };
95
- if (path === '/api/pm-items/undo') return { ok: true, item: { id: b.id } };
96
- if (path === '/api/pm-items/steps/add' || path === '/api/pm-items/steps/plan') return { ok: true, step: { id: 'step-demo' + (++added), text: b.text || 'Review the plan', who: b.who || 'you', done: false } };
97
- if (path === '/api/pm-items/steps/who') return { ok: true, who: b.who };
98
- if (path === '/api/pm-jobs/add') return { ok: true, job: { id: 'job-demo' + (++added), when: '', want: String(b.line || ''), so: '' } };
99
- if (path === '/api/pm-jobs/delete') return { ok: true, reassigned: 0 };
100
- if (path === '/api/releases/create') return { ok: true, release: { id: 'rel-demo' + (++added) } };
101
- if (path === '/api/releases/summary') return { ok: true };
102
- if (path === '/api/report-families/check') return D.reportCheck(b);
103
- if (path === '/api/outbox/confirm') return { ok: true, state: 'confirmed' };
104
- return { ok: true };
105
- }
106
-
107
- function install() {
108
- window.fetch = (input, init) => {
109
- try {
110
- const raw = typeof input === 'string' ? input : input instanceof URL ? input.href : input && input.url;
111
- const method = String((init && init.method) || (input && input.method) || 'GET').toUpperCase();
112
- const u = new URL(raw, location.origin);
113
- if (u.origin === location.origin && u.pathname.startsWith('/api/')) {
114
- if (method !== 'GET') return Promise.resolve(json(postRoute(u.pathname, init && init.body)));
115
- const out = getRoute(u.pathname, u.pathname + u.search);
116
- if (out !== undefined) return Promise.resolve(json(out));
117
- } else if (method !== 'GET' && u.origin === location.origin) {
118
- return Promise.resolve(json({ ok: true }));
119
- }
120
- } catch { /* an unreadable request goes to the server as it is */ }
121
- return realFetch(input, init);
122
- };
123
- }
124
-
125
- /** The header pill. c3-shell.js puts it first in the tools row. */
126
- export function demoPill() {
127
- return el('span', { class: 'c3pg-demo', role: 'status', 'data-c3pg': 'demo-pill', title: 'The page shows the mockup\'s sample content. No press reaches the server.' }, 'Demo data: nothing is saved');
128
- }
129
-
130
- export const DEMO_WS = D.WS_ID;
131
- export function installDemo() { freezeClock(); install(); installRep3(); installInit(); installBoards(); installCoreDocs(); const repReady = import('./c3-demo-rep2.js').then((m) => { m.installRep2(); return import('./c3-demo-rs.js'); }).then((m) => m.installRs()); window.__c3demo = true; window.__c3demoReady = Promise.all([repReady, import('./c3-demo-brief-ix.js')]).then(([, m]) => m.installBriefIx()).then(() => import('./c3-demo-misc2.js')).then((m) => m.installMisc2()).then(() => import('./c3-demo-brief-page.js')).then((m) => m.installBriefPage()); } // Briefing case files, people and a simulated agent (c3-shell.js waits for __c3demoReady)