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,741 +0,0 @@
1
- /* pm/panel-repos.js — PANEL 1, repositories.
2
- *
3
- * A port of the prototype's first column (template lines 66–109) plus the `addprod` detail body it
4
- * opens (template lines 730–768, derivation lines 1572–1618). Every inline `style` string below is
5
- * copied from that file character for character: the comparator diffs computed style and geometry,
6
- * so a "tidied" declaration is a defect, not an improvement.
7
- *
8
- * ── Exports ──────────────────────────────────────────────────────────────────────────────────
9
- * renderRepos(host) the panel-1 renderer app.js calls (host = the open-panel container).
10
- * addProductBody() the `addprod` detail body, as an ARRAY of sibling nodes. Panel 3 owns
11
- * the sticky detail header and appends these after it — the add-repository
12
- * form belongs to this module (build contract, ownership table) but it
13
- * renders inside panel 3, exactly as the prototype does.
14
- * renderAddProduct(host) convenience: appends addProductBody() to `host` WITHOUT clearing it.
15
- * onAddProduct() the "+ add repository" click handler, for anything else that offers it.
16
- * selectRepo(id) pick a repository — the row's own handler, exported for the test suite.
17
- *
18
- * ── The bare <span> around every interpolated value ──────────────────────────────────────────
19
- * The prototype's template runtime renders each `{{ value }}` inside its own inline
20
- * `<span class="sc-interp">`; literal text in the template is NOT wrapped. The comparator anchors
21
- * its style/geometry comparison on the element that OWNS a text node, so a value moved out of that
22
- * inline span would be measured as a block instead of a text run and read as a difference. `ip()`
23
- * below reproduces the wrapper; it is used at exactly the positions the template has `{{ … }}`.
24
- */
25
-
26
- import { el, setChildren } from './dom.js';
27
- import { syncButton } from './lifecycle.js';
28
- import { treesBlock, branchForm, openBranchForm, treeNoteFor } from './panel-trees.js';
29
- import { state, setState, FIXTURE } from './state.js';
30
- import {
31
- productsList, repoRow, firstSlugOf, ADDABLE_PRODUCTS,
32
- INGESTED_KNOW, INGEST_LOG_GITHUB, INGEST_LOG_LOCAL, INGEST_ALREADY,
33
- } from './fixture.js';
34
- import { askConfirm, askFields } from './dialogs.js';
35
- import { toast } from './primitives.js';
36
-
37
- /** An interpolated value, in the inline span the prototype's runtime puts it in. */
38
- const ip = (v) => el('span', null, v);
39
-
40
- /* ── the repository list ─────────────────────────────────────────────────────────────────────
41
- * Fixture mode is the prototype's two seed repositories. Normal mode asks the data layer once, at
42
- * boot, and repaints when it answers; until then the list is empty, which renders an empty panel
43
- * rather than a wrong one. `data.js` is imported dynamically because a panel must still come up if
44
- * the data layer is absent — the shell tolerates a missing module and so does this.
45
- */
46
-
47
- let realRepos = null; // [[id, sub, kind], …] once the data layer has answered
48
- let dataMod = null;
49
- const initiativesByRepo = new Map(); // repo id → first initiative slug, learned lazily
50
-
51
- /** Normalise whatever `loadRepos()` returns into the prototype's `[id, sub, kind]` triple. */
52
- function toTuple(r) {
53
- if (Array.isArray(r)) return [String(r[0]), String(r[1] ?? ''), r[2] === 'local' ? 'local' : 'github'];
54
- if (!r || typeof r !== 'object') return null;
55
- const id = r.name || r.id || r.repo || r.key;
56
- if (!id) return null;
57
- const n = typeof r.count === 'number' ? r.count
58
- : typeof r.initiatives === 'number' ? r.initiatives
59
- : Array.isArray(r.initiatives) ? r.initiatives.length : null;
60
- /* An UNREADABLE count is an em dash, never an empty string. A repository whose spine could not be
61
- * read (a folder with no `planning/`, a tree that errored) rendered "local · " — a sub-line that
62
- * trails off mid-sentence and reads as a bug in the row rather than as "PMOS has not counted
63
- * this". The dash is the design's own vocabulary for a value that is not there. */
64
- /* …AND THE ROW MAY NOT STATE A NUMBER THE BOARD CONTRADICTS. The headline count is the SPINE's —
65
- * that ruling stands, it is what keeps `176 initiatives` off a repository holding 138 records and
66
- * 38 orphans. What it did not cover is the other side of the same coin: with no records found and
67
- * artifacts grouped anyway, the row printed a confident `0 initiatives` over a board the PM could
68
- * see was not empty, and on this repo it silently dropped 20 groups from a headline of 177. The
69
- * second clause names that population in the board's own vocabulary ("artifacts with no
70
- * initiative record"), counted separately and never added in. Absent when there are none. */
71
- const un = typeof r.unrecorded === 'number' && r.unrecorded > 0 ? r.unrecorded : 0;
72
- const sub = r.sub || (n === null ? '—'
73
- : n + (n === 1 ? ' initiative' : ' initiatives') + (un ? ' · ' + un + ' unrecorded' : ''));
74
- const kind = (r.kind || r.source) === 'local' ? 'local' : (r.kind || r.source) === 'github' ? 'github'
75
- : (r.remote || r.origin) ? 'github' : 'local';
76
- return [String(id), sub, kind];
77
- }
78
-
79
- /** The first initiative slug of a repository, from whatever shape the data layer hands back. */
80
- function firstSlugIn(payload) {
81
- if (!payload) return null;
82
- if (Array.isArray(payload)) {
83
- for (const g of payload) {
84
- if (typeof g === 'string') return g;
85
- if (!g || typeof g !== 'object') continue;
86
- if (Array.isArray(g.slugs) && g.slugs.length) return g.slugs[0];
87
- if (g.slug) return g.slug;
88
- if (g.id) return g.id;
89
- }
90
- return null;
91
- }
92
- if (Array.isArray(payload.groups)) return firstSlugIn(payload.groups);
93
- if (Array.isArray(payload.initiatives)) return firstSlugIn(payload.initiatives);
94
- return null;
95
- }
96
-
97
- async function connectData() {
98
- if (FIXTURE) return;
99
- try { dataMod = await import('./data.js'); } catch { dataMod = null; return; }
100
- if (!dataMod || typeof dataMod.loadRepos !== 'function') return;
101
- try {
102
- const list = await dataMod.loadRepos();
103
- const tuples = (Array.isArray(list) ? list : []).map(toTuple).filter(Boolean);
104
- realRepos = tuples;
105
- setState({}); // repaint with the real list
106
- } catch { realRepos = []; }
107
- }
108
- connectData();
109
-
110
- /** allProds (line 1431) — the base repositories plus anything the PM added in this window. */
111
- export function repoTuples() {
112
- if (FIXTURE) return productsList(state.addedProducts || []);
113
- const added = (state.addedProducts || []).map((x) => [x.id, x.sub, x.kind || 'github']);
114
- return [...(realRepos || []), ...added];
115
- }
116
-
117
- /** `product` (line 1396): the state field, defaulting to the first repository in the list. */
118
- export function activeProduct(tuples) {
119
- if (state.product) return state.product;
120
- const list = tuples || repoTuples();
121
- return list.length ? list[0][0] : null;
122
- }
123
-
124
- /* THE SELECTED REPOSITORY IS A FACT, NOT A COINCIDENCE.
125
- * `state.product` is null until something sets it. Real mode gets it from `loadRepos()`; fixture
126
- * mode had nothing to set it, so until the PM clicked a row it stayed null and each panel fell back
127
- * to "the first one in the list" on its own. The screen looks right — every fallback picks the same
128
- * repository — but the FIELD that says which repository the window is standing in is empty, and
129
- * everything that reads it rather than re-deriving it gets no answer: panel 4's tab scoping, the
130
- * phone chrome, and any check that asks the app which repository it is showing. Set once, at load,
131
- * from the same list the rows are drawn from, so the highlighted row and `state.product` are the
132
- * same statement. */
133
- if (FIXTURE && !state.product) {
134
- const firstTuple = repoTuples()[0];
135
- if (firstTuple) setState({ product: firstTuple[0] });
136
- }
137
-
138
- /** The initiative selected when a repository is picked (line 1440), where it is known synchronously. */
139
- function firstSlugSync(id) {
140
- if (FIXTURE) return firstSlugOf(id);
141
- if (initiativesByRepo.has(id)) return initiativesByRepo.get(id);
142
- if (dataMod && typeof dataMod.firstSlugOf === 'function') {
143
- try { return dataMod.firstSlugOf(id) || null; } catch { /* fall through */ }
144
- }
145
- return null;
146
- }
147
-
148
- /**
149
- * Pick a repository. Verbatim from the prototype's row handler (lines 1439–1442): the repository
150
- * becomes current, the board goes back to `product` mode — so a PM who wandered into `skills` and
151
- * then switched repository lands on the board, not on another repository's skills — and the first
152
- * initiative of that repository is selected. A repository with no initiatives selects nothing and
153
- * the detail panel says so; it does not keep the previous repository's selection.
154
- */
155
- export function selectRepo(id) {
156
- const slug = firstSlugSync(id);
157
- setState({ product: id, mode: 'product', sel: slug, detail: slug ? { kind: 'init' } : { kind: 'none' } });
158
- if (slug || FIXTURE || !dataMod || typeof dataMod.loadInitiatives !== 'function') return;
159
- Promise.resolve(dataMod.loadInitiatives(id)).then((payload) => {
160
- const found = firstSlugIn(payload);
161
- initiativesByRepo.set(id, found || null);
162
- if (found && state.product === id && !state.sel) setState({ sel: found, detail: { kind: 'init' } });
163
- }).catch(() => { /* an unreadable repository still selects; panel 3 reports the read */ });
164
- }
165
-
166
- /* ── the rows ────────────────────────────────────────────────────────────────────────────────── */
167
-
168
- function repoButton(tuple, product) {
169
- const rp = repoRow(tuple);
170
- const active = product === rp.name;
171
- const gc = active ? (rp.kind === 'github' ? 'var(--info)' : 'var(--brand)') : 'var(--muted-foreground)';
172
- return el('button', {
173
- onClick: () => selectRepo(rp.name),
174
- style: 'display:flex;align-items:center;gap:9px;width:100%;padding:9px 14px;min-height:46px;border-left:2px solid '
175
- + (active ? 'var(--brand)' : 'transparent') + ';background:' + (active ? 'var(--accent)' : 'transparent'),
176
- hover: 'background:var(--accent)',
177
- },
178
- el('span', {
179
- style: 'flex:none;width:16px;text-align:center;font-size:14px;line-height:1;color:' + gc,
180
- title: rp.kindLabel + ' repository',
181
- }, ip(rp.kindGlyph)),
182
- el('span', { style: 'min-width:0' },
183
- el('span', { style: 'display:block;font-family:var(--mono);font-size:12.5px;color:var(--foreground);overflow:hidden;text-overflow:ellipsis;white-space:nowrap' }, ip(rp.name)),
184
- el('span', { style: 'display:block;font-size:10.5px;color:var(--muted-foreground);overflow:hidden;text-overflow:ellipsis;white-space:nowrap' }, ip(rp.displaySub)),
185
- ),
186
- );
187
- }
188
-
189
- /* ── overhaul-r1: lines of work, rename, remove (LIVE mode only) ─────────────────────────────
190
- * Fixture mode renders the prototype's row unchanged. In live mode the row gains a `⑂ N` chip
191
- * when the repository has linked worktrees (R2.1), and the ACTIVE row gains rename and remove
192
- * (R3.1/R3.2). The server's answer to a remove is shown under the row in its own words (R3.3).
193
- */
194
- const chipStyle = 'flex:none;font-family:var(--mono);font-size:10px;padding:1px 6px;border:1px solid var(--border);color:var(--muted-foreground);min-height:22px';
195
- const actStyle = 'flex:none;font-size:12px;padding:2px 6px;color:var(--muted-foreground);min-height:28px';
196
-
197
- export function treesOf(name) {
198
- return dataMod && typeof dataMod.productTrees === 'function' ? dataMod.productTrees(name) : [];
199
- }
200
-
201
- /* A refusal is told twice: the legacy list draws repoNotice, and the frame's Settings page, which draws no notice, gets the toast. */
202
- function refused(name, text) {
203
- setState({ repoNotice: { name, tone: 'bad', text } });
204
- toast({ text, tone: 'error' });
205
- }
206
-
207
- export async function renameRepo(name) {
208
- // the legacy rail shows an abbreviation; empty keeps (or restores) the one derived from the name
209
- const cur = dataMod.repoInitials ? dataMod.repoInitials(name) : null;
210
- const answer = await askFields({
211
- title: 'Rename “' + name + '”', confirmLabel: 'Rename',
212
- fields: [
213
- { key: 'label', label: 'Name', value: name },
214
- { key: 'ini', label: 'Short name for the legacy rail: up to 3 letters or digits. Leave it empty to use the first letters of the name.', value: cur || '' },
215
- ],
216
- });
217
- if (!answer) return;
218
- const label = answer.label;
219
- const ini = answer.ini;
220
- if (!String(label).trim()) return;
221
- if (String(label).trim() === name && String(ini).trim() === (cur || '')) return;
222
- const out = await dataMod.renameRepository(name, String(label).trim(), String(ini).trim());
223
- if (!out || out.ok === false) { refused(name, (out && out.error) || 'The rename was refused.'); return; }
224
- await connectData();
225
- setState({ product: String(label).trim(), repoNotice: null });
226
- }
227
-
228
- /* The repository's profile (D68). `pm-artifacts` offers document lanes and no build rungs; `product-code` is the
229
- * default. The confirm states the consequence before anything is written. */
230
- const lanesText = (name, profile) => {
231
- const l = dataMod && dataMod.repoLanes ? dataMod.repoLanes(name, profile) : null;
232
- return l ? l.join(', ') : '(the workspace did not report them)';
233
- };
234
- /* The workflow audit (D77). Runs the sweep on the repository and shows what it found. It writes nothing. */
235
- async function runAudit(name) {
236
- if (!dataMod || !dataMod.loadAudit) return;
237
- setState({ repoAudit: { name, busy: true } });
238
- const out = await dataMod.loadAudit(name);
239
- setState({ repoAudit: { name, report: out && out.ok !== false ? out : null, error: out && out.ok === false ? out.error : null } });
240
- }
241
- function auditBlock(name) {
242
- const a = state.repoAudit;
243
- if (!a || a.name !== name) return null;
244
- const box = (kids) => el('div', { 'data-r17': 'audit-report', style: 'padding:6px 14px 10px 39px;font-size:11px;line-height:1.5;color:var(--muted-foreground)' }, kids);
245
- if (a.busy) return box(ip('checking…'));
246
- if (a.error || !a.report) return box(ip('the audit could not run — ' + (a.error || 'no answer')));
247
- const r = a.report;
248
- const head = r.counts.defects + ' defect' + (r.counts.defects === 1 ? '' : 's') + ' · ' + r.counts.owed + ' owed · ' + r.counts.repairable + ' repairable';
249
- const line = (f) => el('div', { style: 'margin-top:4px', 'data-r17': 'finding', 'data-class': f.class },
250
- el('span', { style: 'font-family:var(--mono);color:var(--foreground)' }, ip(f.class)), ip(' · ' + (f.id || 'repository') + ' — ' + f.what),
251
- f.repair ? el('div', null, ip('repair: set ' + f.repair.key + ' to ' + f.repair.to + ' — ' + f.command)) : (f.hand ? el('div', null, ip(f.hand)) : null));
252
- return box([
253
- el('div', { style: 'color:var(--foreground)', 'data-r17': 'audit-counts' }, ip(head)),
254
- r.defects.slice(0, 8).map(line),
255
- r.counts.defects > 8 ? el('div', { style: 'margin-top:4px' }, ip('+ ' + (r.counts.defects - 8) + ' more — node scripts/workflow-sweep.js')) : null,
256
- r.counts.owed ? el('div', { style: 'margin-top:6px' }, ip('owed (open loops, not corruption): ' + Object.entries(r.owed_by_class).map(([k, v]) => k + ' ×' + v).join(', '))) : null,
257
- ]);
258
- }
259
- async function switchProfile(name) {
260
- if (!dataMod || !dataMod.repoProfile) return;
261
- const toDocs = dataMod.repoProfile(name) !== 'pm-artifacts';
262
- const msg = toDocs
263
- ? 'Switch “' + name + '” to document work?\n\nLanes offered: ' + lanesText(name, 'pm-artifacts') + '.\nThe ladder becomes route, anchor, brief, draft, review, approved, handed off — no contract, build, eval or explainer.'
264
- : 'Switch “' + name + '” to code work?\n\nLanes offered: ' + lanesText(name, 'product-code') + '.\nThe ladder returns to spec, contract, build, eval, explainer, acceptance.';
265
- const tail = '\n\nAn initiative whose lane is not in the new set is treated as the strictest lane (' + (toDocs ? 'a governed prd' : 'feature') + '). No initiative record is edited.\n\nThis ' + (toDocs ? 'writes' : 'removes') + ' the file .pmos-profile in the repository. It is a change for you to commit.';
266
- const ok = await askConfirm({ title: toDocs ? 'Switch “' + name + '” to document work?' : 'Switch “' + name + '” to code work?', body: msg + tail, confirmLabel: 'Switch' });
267
- if (!ok) return;
268
- const out = await dataMod.setRepoProfile(name, toDocs ? 'pm-artifacts' : 'product-code');
269
- if (!out || out.ok === false) { setState({ repoNotice: { name, tone: 'bad', text: (out && out.error) || 'the profile was not changed' } }); return; }
270
- setState({ repoNotice: { name, tone: null, text: 'now ' + (toDocs ? 'document work (pm-artifacts)' : 'code work (product-code)') + ' — .pmos-profile ' + (toDocs ? 'written' : 'removed') + '; commit it' } });
271
- }
272
-
273
- export async function removeRepo(name) {
274
- const ok = await askConfirm({
275
- title: 'Remove “' + name + '” from PMOS?', confirmLabel: 'Remove', danger: true,
276
- body: 'This forgets the repository and its worktree rows. No folder is deleted.',
277
- });
278
- if (!ok) return;
279
- const out = await dataMod.removeRepository(name);
280
- if (!out || out.ok === false) { refused(name, (out && out.error) || 'The removal was refused.'); return; }
281
- realRepos = (realRepos || []).filter((t) => t[0] !== name);
282
- setState({ repoNotice: null });
283
- }
284
-
285
- /** What the live app adds under a repository: the chips (trees, sync, profile, audit, rename, remove) and the blocks
286
- * they open. Empty in fixture mode, where the repository row is the prototype's and carries nothing more. The cockpit
287
- * list column draws this under the repository's name; the phone's repository list draws it under the row. */
288
- export function manageParts(name, product) {
289
- if (FIXTURE || !dataMod) return { tools: [], below: [] };
290
- const trees = treesOf(name);
291
- /* The trees list is always available — the main tree is a line of work too, and a repository with
292
- * one tree still has branches to create. The active repository opens it by default; others on a
293
- * click of the chip. */
294
- const stored = (state.treesOpen || {})[name];
295
- const open = stored === undefined ? product === name : !!stored;
296
- const tools = [];
297
- tools.push(el('button', {
298
- onClick: () => setState((s) => ({ treesOpen: { ...(s.treesOpen || {}), [name]: !open } })),
299
- style: chipStyle, hover: 'color:var(--foreground)',
300
- title: trees.length + ' working tree' + (trees.length === 1 ? '' : 's') + ' — show the lines of work, their sessions and branches',
301
- 'data-r1': 'trees-chip', 'data-repo': name,
302
- }, ip('⑂ ' + trees.length)));
303
- if (product === name) {
304
- { const sb = syncButton(name); if (sb) tools.push(sb); }
305
- { const docs = dataMod.repoProfile && dataMod.repoProfile(name) === 'pm-artifacts';
306
- tools.push(el('button', { onClick: () => switchProfile(name), style: chipStyle, hover: 'color:var(--foreground)',
307
- title: docs ? 'document work (pm-artifacts): lanes are kinds of PM work and documents, with no build rungs. Press to switch to code work.'
308
- : 'code work (product-code): lanes are feature, discovery, chore … with the full build ladder. Press to switch to document work.',
309
- 'data-r16': 'profile', 'data-profile': docs ? 'pm-artifacts' : 'product-code' }, ip(docs ? 'docs' : 'code'))); }
310
- tools.push(el('button', { onClick: () => runAudit(name), style: chipStyle, hover: 'color:var(--foreground)',
311
- title: 'check this repository’s workflow records against its files and its profile (read-only — nothing is written)',
312
- 'data-r17': 'audit' }, ip('audit')));
313
- tools.push(el('button', { onClick: () => renameRepo(name), style: actStyle, hover: 'color:var(--foreground)', title: 'rename this repository', 'data-r1': 'rename' }, '✎'));
314
- tools.push(el('button', { onClick: () => removeRepo(name), style: actStyle, hover: 'color:var(--destructive)', title: 'remove this repository from PMOS (no folder is deleted)', 'data-r1': 'remove' }, '✕'));
315
- }
316
- const below = [];
317
- { const bf = branchForm(name); if (bf) below.push(bf); }
318
- if (open && trees.length) below.push(treesBlock(name, trees, product === name));
319
- { const tn = treeNoteFor(name); if (tn) below.push(tn); }
320
- { const ab = auditBlock(name); if (ab) below.push(ab); }
321
- const n = state.repoNotice;
322
- if (n && n.name === name) {
323
- below.push(el('div', {
324
- style: 'padding:4px 14px 8px 39px;font-size:11px;color:' + (n.tone === 'bad' ? 'var(--destructive)' : 'var(--muted-foreground)'),
325
- 'data-r1': 'notice',
326
- }, ip(n.text)));
327
- }
328
- return { tools, below };
329
- }
330
-
331
- function repoEntry(tuple, product) {
332
- const row = repoButton(tuple, product);
333
- if (FIXTURE || !dataMod) return row;
334
- const { tools, below } = manageParts(tuple[0], product);
335
- const kids = [el('div', { style: 'display:flex;align-items:center' },
336
- el('div', { style: 'flex:1;min-width:0' }, row),
337
- tools.length ? el('div', { style: 'display:flex;align-items:center;gap:2px;padding-right:8px' }, tools) : null)];
338
- for (const b of below) kids.push(b);
339
- return el('div', null, kids);
340
- }
341
-
342
- /** The abbreviation a repository shows on a rail tile: the one the PM set, else its first letters. */
343
- export function repoInitial(name) {
344
- const set = dataMod && dataMod.repoInitials ? dataMod.repoInitials(name) : null;
345
- return (set || String(name).replace(/[^A-Za-z0-9]+/g, ' ').trim().split(' ').filter(Boolean).slice(0, 2)
346
- .map((w) => w[0]).join('') || String(name).slice(0, 2)).toUpperCase();
347
- }
348
-
349
- /**
350
- * overhaul-r1 R4 — the collapsed repositories rail, one glyph per repository, LIVE mode only (the
351
- * fixture rail is the prototype's and the comparator reads it). Initials + kind badge; a dot when a
352
- * session on any of its lines of work needs the PM. Click selects WITHOUT expanding the panel. The
353
- * active glyph is marked by a left bar and a filled box — shape, not colour alone.
354
- */
355
- export function railGlyphs() {
356
- if (FIXTURE) return [];
357
- const tuples = repoTuples();
358
- const product = activeProduct(tuples);
359
- const sess = Array.isArray(state.sessions) ? state.sessions : [];
360
- return tuples.map((t) => {
361
- const rp = repoRow(t);
362
- const name = rp.name;
363
- const wss = new Set(treesOf(name).map((x) => x.ws));
364
- const needs = sess.some((x) => x && wss.has(x.ws) && x.shown === 'needs' && !x.automatic);
365
- const active = product === name;
366
- const ini = (dataMod && dataMod.repoInitials && dataMod.repoInitials(name)) || (String(name).replace(/[^A-Za-z0-9]+/g, ' ').trim().split(' ').filter(Boolean).slice(0, 2)
367
- .map((w) => w[0]).join('') || String(name).slice(0, 2)).toUpperCase();
368
- const said = name + ' — ' + rp.kindLabel + ' repository' + (needs ? ' · a session needs you' : '');
369
- return el('button', {
370
- onClick: (e) => { if (e && e.stopPropagation) e.stopPropagation(); selectRepo(name); },
371
- // right-click renames from the rail, where the abbreviation is shown
372
- onContextmenu: (e) => { if (e && e.preventDefault) e.preventDefault(); renameRepo(name); },
373
- title: said + ' · right-click to rename', 'aria-label': said,
374
- 'data-r1': 'rail-glyph', 'data-repo': name, 'data-active': active ? '1' : '0',
375
- 'data-ini': ini, 'data-kind': rp.kindGlyph,
376
- style: 'position:relative;flex:none;width:28px;height:28px;margin:3px auto;display:flex;align-items:center;justify-content:center;'
377
- + 'font-family:var(--mono);font-size:10px;font-weight:600;border:1px solid ' + (active ? 'var(--brand)' : 'var(--border)')
378
- + ';background:' + (active ? 'var(--accent)' : 'transparent') + ';color:var(--foreground);'
379
- + 'box-shadow:' + (active ? 'inset 3px 0 0 var(--brand)' : 'none'),
380
- hover: 'background:var(--accent)',
381
- },
382
- needs ? el('span', { style: 'position:absolute;right:-3px;top:-3px;width:7px;height:7px;border-radius:50%;background:var(--warning, var(--destructive))', 'data-r1': 'needs-dot' }) : null,
383
- );
384
- });
385
- }
386
-
387
- /** setDetail (line 1401) — open panel 3 on a detail kind, un-collapsing it if the PM folded it. */
388
- const setDetail = (d) => setState({ detail: d, col2: true });
389
-
390
- /** onAddProduct (line 1444). */
391
- export function onAddProduct() { setDetail({ kind: 'addprod' }); }
392
-
393
- /* ── the panel ───────────────────────────────────────────────────────────────────────────────── */
394
-
395
- /**
396
- * Fill panel 1. `host` IS the prototype's open-panel container (app.js owns its style), so this
397
- * appends the panel's three parts as direct children and never wraps them.
398
- */
399
- /* ── AN UNSETTLED STATE ROOT, ON SCREEN ──────────────────────────────────────────────────────
400
- * `state_health` arrives on /api/workspaces (and on /api/skills, /api/schedules and every
401
- * /api/console payload). When it is `{ok:false}` the workspace could not move the PM's runtime
402
- * state out of the checkout, and anything the per-user directory does not hold would otherwise
403
- * render as a confident empty list — which is how the PM came to see zero skills and zero
404
- * schedules while forty-five scheduled runs stopped firing.
405
- *
406
- * IT BRANCHES ON `ok`, NEVER ON `kind`. The server discriminates the reason — `unmigrated` (two
407
- * populated directories), `failed` (the filesystem refused the move, with the errno and the cause
408
- * in words), `unreadable` (one of the two directories could not be listed, so whether it holds
409
- * state is unknown), `unusable-root` (the state root could not be created at all), `unknown` (an
410
- * outcome that build did not recognise) — and puts the whole explanation in `error`. Reading only
411
- * `ok` and `error` here is what makes a kind added later visible on this surface with no client
412
- * change, which is the failure mode that produced this banner's second round: a `kind` the client
413
- * had never heard of drawing nothing at all. Two kinds have since been added with no edit here,
414
- * and state-isolation's F14/U19 assert each of them on a real screen.
415
- *
416
- * So it is drawn here, at the top of panel 1, in `--destructive`, on every paint until it is
417
- * resolved. It is deliberately NOT dismissible: the condition is still true after the click.
418
- * Nothing renders when the state is settled — including in fixture mode, which has no data layer
419
- * and therefore never sets the key, so the comparator sees the prototype's markup unchanged. */
420
- export function stateHealthBanner() {
421
- const h = state.stateHealth;
422
- if (!h || h.ok !== false) return null;
423
- return el('div', {
424
- 'data-state-health': String(h.kind || 'unknown'),
425
- style: 'padding:9px 14px;border-bottom:1px solid var(--border);font-size:11px;line-height:1.5;color:var(--destructive)',
426
- }, ip(h.error || 'the workspace runtime state is not settled — it could not be moved out of the checkout'));
427
- }
428
-
429
- export function renderRepos(host) {
430
- const tuples = repoTuples();
431
- const product = activeProduct(tuples);
432
-
433
- const header = el('div', {
434
- style: 'display:flex;align-items:center;gap:8px;padding:11px 10px 10px 14px;border-bottom:1px solid var(--border)',
435
- },
436
- el('span', { style: 'font-size:14px;font-weight:600;letter-spacing:.01em' }, 'repositories'),
437
- el('span', { style: 'margin-left:auto;font-family:var(--mono);font-size:10px;color:var(--muted-foreground)' }, ip(String(tuples.length))),
438
- el('button', {
439
- onClick: () => setState((s) => ({ col0: !s.col0 })),
440
- style: 'color:var(--muted-foreground);font-size:14px;padding:2px 6px',
441
- hover: 'color:var(--foreground)',
442
- }, '⟨'),
443
- );
444
-
445
- const scroll = el('div', { style: 'flex:1;overflow-y:auto;min-height:0' },
446
- stateHealthBanner(),
447
- tuples.map((t) => repoEntry(t, product)),
448
- el('button', {
449
- onClick: onAddProduct,
450
- style: 'display:flex;align-items:center;gap:9px;width:100%;padding:9px 14px;min-height:40px;color:var(--muted-foreground)',
451
- hover: 'color:var(--foreground);background:var(--accent)',
452
- },
453
- el('span', { style: 'flex:none;width:14px;text-align:center;font-size:14px' }, '+'),
454
- el('span', { style: 'font-size:12px' }, 'add repository'),
455
- ),
456
- );
457
-
458
- setChildren(host, [header, scroll]);
459
- return host;
460
- }
461
-
462
- /* ── the add-repository form (panel 3, detail kind `addprod`) ────────────────────────────────
463
- * The two sources the prototype offers: a GitHub repo, which is cloned and scanned, and a local
464
- * folder, which starts with an empty board because nothing can be imported from a bare folder.
465
- *
466
- * In FIXTURE mode the two buttons reproduce the prototype's scripted ingest exactly — the same log
467
- * lines, the same two repositories, the same landing selection — because the comparator's captured
468
- * "09-add-repo" state is that script. Outside fixture mode the form posts the declaration to the
469
- * data layer if it offers `addRepo()`, and otherwise reports, in the log, that nothing was added.
470
- * It never prints a log line describing work that did not happen: a scripted "clone … ok" against a
471
- * repo nobody read is precisely the watermelon this PRD names.
472
- */
473
-
474
- const inputStyle = 'font-family:var(--mono);font-size:11.5px;padding:6px 9px;border:1px solid var(--input);min-height:32px';
475
- const labelStyle = 'font-family:var(--mono);font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted-foreground);padding-top:8px';
476
- const rowStyle = 'display:grid;grid-template-columns:76px 1fr;gap:10px;padding:10px 14px';
477
- const goStyle = 'padding:5px 12px;min-height:30px;background:var(--primary);color:var(--primary-foreground);font:500 12px var(--sans)';
478
-
479
- /**
480
- * A form field. `oninput` writes the value straight onto the state object WITHOUT a render — a
481
- * repaint between keystrokes would rebuild the input and take the caret with it — and `onchange`
482
- * commits with a real `setState` so everything derived from the field catches up.
483
- */
484
- function field(key, value) {
485
- return el('input', {
486
- value,
487
- style: inputStyle,
488
- onInput: (e) => { state[key] = e.target.value; },
489
- onChange: (e) => setState({ [key]: e.target.value }),
490
- });
491
- }
492
-
493
- /* ── choosing the folder, instead of typing its path ─────────────────────────────────────────
494
- * The form's local branch used to be a bare text field, so "add the repo I am looking at" meant
495
- * knowing its absolute path and typing it correctly — and the two endpoints that exist to avoid
496
- * exactly that (`/api/pick-folder`, `/api/fs/list`) had no caller anywhere in the front end.
497
- *
498
- * Two ways in, because one of them is not always there: the machine's native dialog first, and the
499
- * in-app browser when there is no native chooser (headless Linux), when one is already open, or
500
- * when the PM asks for it. A cancelled dialog changes nothing — it is an answer, not a failure.
501
- */
502
- const browseRowStyle = 'display:grid;grid-template-columns:76px 1fr auto;gap:10px;padding:10px 14px';
503
- const chooseStyle = 'font-family:var(--mono);font-size:10.5px;padding:5px 10px;min-height:32px;'
504
- + 'background:transparent;border:1px solid var(--border);color:var(--muted-foreground)';
505
-
506
- /** The in-app browser, opened at `dir` (empty = the server's idea of home). */
507
- function openBrowse(dir) {
508
- // Fixture mode reads NOTHING off this machine — the comparator drives this surface, and a run
509
- // that opened a dialog or listed the PM's home directory would be doing real work behind a
510
- // scripted board. It says so instead of degrading into a vaguer "no endpoint" line.
511
- if (FIXTURE) {
512
- setState({ addLog: [{ t: 'the folder chooser is off in fixture mode — nothing on this machine is read', c: 'var(--warning)' }] });
513
- return;
514
- }
515
- if (!dataMod || typeof dataMod.listFolder !== 'function') {
516
- setState({ addLog: [{ t: 'no local endpoint for browsing folders — type the path instead', c: 'var(--warning)' }] });
517
- return;
518
- }
519
- setState({ addBrowse: { loading: true, path: dir || '', entries: [] } });
520
- Promise.resolve(dataMod.listFolder(dir)).then((res) => {
521
- if (!res || res.ok === false) {
522
- setState({ addBrowse: { path: dir || '', entries: [], error: (res && res.error) || 'that folder could not be listed' } });
523
- return;
524
- }
525
- setState({ addBrowse: res });
526
- }).catch((e) => setState({ addBrowse: { path: dir || '', entries: [], error: e && e.message ? e.message : String(e) } }));
527
- }
528
-
529
- /** Ask the server to open the machine's folder dialog; fall back to the in-app browser. */
530
- function chooseFolder() {
531
- if (FIXTURE || !dataMod || typeof dataMod.chooseFolder !== 'function') { openBrowse(state.addPath); return; }
532
- setState({ addPicking: true });
533
- Promise.resolve(dataMod.chooseFolder(state.addPath)).then((res) => {
534
- setState({ addPicking: false });
535
- if (res && res.ok && res.root) { setState({ addPath: res.root, addBrowse: null }); return; }
536
- if (res && res.cancelled) return; // the PM closed the dialog: no change, no noise
537
- openBrowse(state.addPath); // unsupported, busy, or unreachable → in-app
538
- }).catch(() => { setState({ addPicking: false }); openBrowse(state.addPath); });
539
- }
540
-
541
- /** Take the folder currently open in the browser as the answer. */
542
- function useFolder(p) {
543
- if (!p) return;
544
- setState({ addPath: p, addBrowse: null });
545
- }
546
-
547
- const browseRow = (label, title, onClick, muted) => el('button', {
548
- onClick, title,
549
- style: 'display:flex;align-items:center;gap:8px;width:100%;padding:5px 10px;min-height:28px;text-align:left;'
550
- + 'font-family:var(--mono);font-size:11px;color:var(--' + (muted ? 'muted-foreground' : 'foreground') + ')',
551
- hover: 'background:var(--accent)',
552
- }, label);
553
-
554
- /** The browser body: where we are, one row per sub-directory, and a way to take the current one. */
555
- function browseBody() {
556
- const b = state.addBrowse;
557
- const rows = [];
558
- rows.push(el('div', { style: 'display:flex;align-items:center;gap:8px;padding:6px 10px;border-bottom:1px solid var(--border)' },
559
- el('span', { style: 'flex:1;font-family:var(--mono);font-size:11px;overflow-wrap:anywhere' }, ip(b.path || '…')),
560
- el('button', { onClick: () => useFolder(b.path), style: chooseStyle + ';min-height:26px', hover: 'border-color:var(--ring)' },
561
- ip('use this folder')),
562
- ));
563
- if (b.error) rows.push(el('div', { style: 'padding:8px 10px;font-size:11.5px;color:var(--destructive)' }, ip(b.error)));
564
- else if (b.loading) rows.push(el('div', { style: 'padding:8px 10px;font-size:11.5px;color:var(--muted-foreground)' }, ip('reading…')));
565
- else {
566
- const list = [];
567
- if (b.parent) list.push(browseRow('↑ ..', b.parent, () => openBrowse(b.parent), true));
568
- for (const e of b.entries || []) {
569
- // The repo marker is the whole point of showing this list rather than a plain file chooser:
570
- // it says which of these folders PMOS can actually open as a workspace.
571
- list.push(browseRow((e.isRepo ? '⑂ ' : '· ') + e.name, e.path, () => openBrowse(e.path), !e.isRepo));
572
- }
573
- if (b.denied) list.push(el('div', { style: 'padding:8px 10px;font-size:11.5px;color:var(--warning)' }, ip('this folder cannot be read')));
574
- else if (!list.length) list.push(el('div', { style: 'padding:8px 10px;font-size:11.5px;color:var(--muted-foreground)' }, ip('no sub-folders here')));
575
- rows.push(el('div', { style: 'max-height:220px;overflow-y:auto' }, list));
576
- }
577
- return el('div', { style: 'margin:0 14px 10px;border:1px solid var(--border)' }, rows);
578
- }
579
-
580
- function srcButton(id, label) {
581
- const on = state.addSrc === id;
582
- return el('button', {
583
- onClick: () => setState({ addSrc: id }),
584
- style: 'font-family:var(--mono);font-size:10.5px;padding:5px 10px;min-height:28px;background:'
585
- + (on ? 'var(--secondary)' : 'transparent') + ';border:1px solid ' + (on ? 'var(--input)' : 'var(--border)')
586
- + ';color:' + (on ? 'var(--foreground)' : 'var(--muted-foreground)'),
587
- hover: 'border-color:var(--ring)',
588
- }, ip(label));
589
- }
590
-
591
- /**
592
- * Land on a freshly added repository — the prototype's post-ingest selection (lines 1602, 1616).
593
- * `detail` is deliberately NOT touched: panel 3 stays on the add-product form so the ingest log the
594
- * PM just triggered is still on screen next to the board it produced.
595
- */
596
- function landOn(id, slug) {
597
- setState((s) => ({
598
- addedProducts: s.addedProducts.find((x) => x.id === id) ? s.addedProducts
599
- : [...s.addedProducts, { ...(ADDABLE_PRODUCTS[id] || { id, sub: '0 initiatives', kind: 'github' }) }],
600
- mode: 'product', product: id, sel: slug,
601
- }));
602
- }
603
-
604
- function alreadyAdded(id) {
605
- return (state.addedProducts || []).some((x) => x.id === id);
606
- }
607
-
608
- /** ⇣ connect + ingest (lines 1595–1611). */
609
- function ingestGithub() {
610
- if (FIXTURE) {
611
- if (alreadyAdded('atlas-mobile')) { setState({ addLog: INGEST_ALREADY('atlas-mobile') }); return; }
612
- // The scan imports two ADRs into knowledge alongside the board (lines 1597–1601), so the
613
- // `knowledge` mode shows what the ingest claimed to have read.
614
- setState((s) => ({ addLog: INGEST_LOG_GITHUB(s.addRepo), extraKnow: { ...s.extraKnow, ...INGESTED_KNOW } }));
615
- landOn('atlas-mobile', firstSlugOf('atlas-mobile'));
616
- return;
617
- }
618
- addThroughData(state.addRepo, 'github');
619
- }
620
-
621
- /** + add product (lines 1612–1617). */
622
- function addLocal() {
623
- if (FIXTURE) {
624
- if (alreadyAdded('notes-cli')) { setState({ addLog: INGEST_ALREADY('notes-cli') }); return; }
625
- setState({ addLog: INGEST_LOG_LOCAL(state.addPath) });
626
- landOn('notes-cli', firstSlugOf('notes-cli'));
627
- return;
628
- }
629
- addThroughData(state.addPath, 'local');
630
- }
631
-
632
- /**
633
- * The honest path. With a data layer that can register a repository, the log is whatever that layer
634
- * reports. Without one, the log says so in one line and nothing is added — the alternative is a
635
- * board showing a repository the server has never heard of.
636
- */
637
- function addThroughData(target, kind) {
638
- const source = String(target || '').trim();
639
- if (!source) {
640
- setState({ addLog: [{ t: 'nothing to add — name a ' + (kind === 'github' ? 'repository' : 'folder') + ' first', c: 'var(--warning)' }] });
641
- return;
642
- }
643
- if (!dataMod || typeof dataMod.addRepo !== 'function') {
644
- setState({ addLog: [
645
- { t: '$ pmos product add ' + source, c: 'var(--success)' },
646
- { t: 'no local endpoint for adding a repository — nothing was read, and nothing was written', c: 'var(--warning)' },
647
- ] });
648
- return;
649
- }
650
- setState({ addLog: [{ t: '$ pmos product add ' + source, c: 'var(--success)' }] });
651
- Promise.resolve(dataMod.addRepo({ source, kind })).then((res) => {
652
- const log = Array.isArray(res && res.log) ? res.log : [];
653
- setState((s) => ({ addLog: [...s.addLog, ...log] }));
654
- const tuple = toTuple(res && res.repo ? res.repo : res);
655
- if (!tuple) return;
656
- realRepos = [...(realRepos || []).filter((r) => r[0] !== tuple[0]), tuple];
657
- initiativesByRepo.delete(tuple[0]);
658
- // The repository is now in the real list, so it must NOT also go into `addedProducts` — that
659
- // list is the fixture's in-window overlay and would render the row twice.
660
- setState({ mode: 'product', product: tuple[0], sel: null });
661
- if (typeof dataMod.loadInitiatives !== 'function') return;
662
- Promise.resolve(dataMod.loadInitiatives(tuple[0])).then((payload) => {
663
- const found = firstSlugIn(payload);
664
- initiativesByRepo.set(tuple[0], found || null);
665
- if (found && state.product === tuple[0] && !state.sel) setState({ sel: found });
666
- }).catch(() => { /* the repository is added either way; panel 3 reports the read */ });
667
- }).catch((e) => {
668
- setState((s) => ({ addLog: [...s.addLog, { t: 'failed — ' + (e && e.message ? e.message : String(e)), c: 'var(--destructive)' }] }));
669
- });
670
- }
671
-
672
- /**
673
- * The `addprod` detail body, as an array of sibling nodes. Panel 3 appends these after its own
674
- * sticky header — see the module header for why this lives here rather than in `panel-detail.js`.
675
- */
676
- export function addProductBody() {
677
- const isGh = state.addSrc === 'github';
678
- const log = state.addLog || [];
679
- const out = [];
680
-
681
- out.push(el('div', { style: 'padding:13px 14px 11px;border-bottom:1px solid var(--border)' },
682
- el('div', { style: 'font-family:var(--mono);font-size:15px;font-weight:600' }, 'add a product'),
683
- el('div', { style: 'font-size:12px;color:var(--muted-foreground);margin-top:2px' }, 'one product = one repo'),
684
- ));
685
-
686
- out.push(el('div', { style: 'display:flex;gap:4px;padding:10px 14px 2px' },
687
- srcButton('github', 'github repo'),
688
- srcButton('local', 'local folder'),
689
- ));
690
-
691
- if (isGh) {
692
- out.push(el('div', { style: rowStyle },
693
- el('span', { style: labelStyle }, 'repo'),
694
- field('addRepo', state.addRepo),
695
- ));
696
- out.push(el('div', { style: 'padding:2px 14px 8px;font-size:11.5px;line-height:1.7;color:var(--muted-foreground)' },
697
- 'Ingest plan: clone the repo → scan ',
698
- el('span', { style: 'font-family:var(--mono)' }, 'planning/'),
699
- ' for initiative records → import ADRs into knowledge → propose a board with guessed anchors. ',
700
- el('span', { style: 'color:var(--foreground)' }, 'You confirm every anchor — the scan proposes, it never decides.'),
701
- ));
702
- out.push(el('div', { style: 'padding:2px 14px 12px;border-bottom:1px solid var(--border)' },
703
- el('button', { onClick: ingestGithub, style: goStyle }, '⇣ connect + ingest'),
704
- ));
705
- } else {
706
- // Field FIRST, chooser beside it: the path is still typeable (and still the thing that gets
707
- // registered), the button only fills it in. The row keeps label + input as its first two
708
- // children, which is the shape panel 1's suite reads.
709
- out.push(el('div', { style: browseRowStyle },
710
- el('span', { style: labelStyle }, 'folder'),
711
- field('addPath', state.addPath),
712
- el('button', { onClick: chooseFolder, style: chooseStyle, hover: 'border-color:var(--ring)' },
713
- ip(state.addPicking ? 'choosing…' : 'choose…')),
714
- ));
715
- if (state.addBrowse) out.push(browseBody());
716
- out.push(el('div', { style: 'padding:2px 14px 8px;font-size:11.5px;line-height:1.5;color:var(--muted-foreground)' },
717
- 'Starts with an empty board — nothing is imported from a bare folder. File the first initiative to begin.'));
718
- out.push(el('div', { style: 'padding:2px 14px 12px;border-bottom:1px solid var(--border)' },
719
- el('button', { onClick: addLocal, style: goStyle }, '+ add product'),
720
- ));
721
- }
722
-
723
- if (log.length) {
724
- out.push(el('div', { style: 'padding:9px 14px 4px;font-family:var(--mono);font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted-foreground)' }, 'ingest log'));
725
- out.push(el('div', { style: 'padding:4px 14px 12px;font-family:var(--mono);font-size:11px;line-height:1.8' },
726
- log.map((l) => el('div', { style: 'color:' + l.c + ';white-space:pre-wrap;overflow-wrap:anywhere' }, ip(l.t))),
727
- ));
728
- }
729
-
730
- out.push(el('div', { style: 'margin-top:auto;padding:8px 14px;border-top:1px solid var(--border);font-family:var(--mono);font-size:10px;color:var(--muted-foreground)' },
731
- 'pmos product add <repo | folder>'));
732
-
733
- return out;
734
- }
735
-
736
- /** Append the add-repository form to `host`. Does NOT clear — panel 3's header is already there. */
737
- export function renderAddProduct(host) {
738
- for (const n of addProductBody()) host.appendChild(n);
739
- return host;
740
- }
741
-