@ashlr/hub 3.10.0 → 3.11.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 (534) hide show
  1. package/CHANGELOG.md +156 -0
  2. package/README.md +343 -82
  3. package/dist/authority-surface.json +109 -29
  4. package/dist/build-identity.json +2 -2
  5. package/dist/cli/cloud.d.ts +39 -0
  6. package/dist/cli/cloud.js +448 -0
  7. package/dist/cli/cloud.js.map +1 -0
  8. package/dist/cli/completions.js +4 -0
  9. package/dist/cli/completions.js.map +1 -1
  10. package/dist/cli/help.js +2 -0
  11. package/dist/cli/help.js.map +1 -1
  12. package/dist/cli/index.d.ts +1 -0
  13. package/dist/cli/index.js +10 -0
  14. package/dist/cli/index.js.map +1 -1
  15. package/dist/core/cloud/backlog.d.ts +17 -0
  16. package/dist/core/cloud/backlog.js +177 -0
  17. package/dist/core/cloud/backlog.js.map +1 -0
  18. package/dist/core/cloud/budget.d.ts +19 -0
  19. package/dist/core/cloud/budget.js +99 -0
  20. package/dist/core/cloud/budget.js.map +1 -0
  21. package/dist/core/cloud/checkout.d.ts +41 -0
  22. package/dist/core/cloud/checkout.js +168 -0
  23. package/dist/core/cloud/checkout.js.map +1 -0
  24. package/dist/core/cloud/cloud-api.d.ts +86 -0
  25. package/dist/core/cloud/cloud-api.js +599 -0
  26. package/dist/core/cloud/cloud-api.js.map +1 -0
  27. package/dist/core/cloud/delivery-contract.d.ts +25 -0
  28. package/dist/core/cloud/delivery-contract.js +138 -0
  29. package/dist/core/cloud/delivery-contract.js.map +1 -0
  30. package/dist/core/cloud/improvement-backlog.d.ts +11 -0
  31. package/dist/core/cloud/improvement-backlog.js +26 -0
  32. package/dist/core/cloud/improvement-backlog.js.map +1 -0
  33. package/dist/core/cloud/launcher.d.ts +68 -0
  34. package/dist/core/cloud/launcher.js +312 -0
  35. package/dist/core/cloud/launcher.js.map +1 -0
  36. package/dist/core/cloud/service.d.ts +51 -0
  37. package/dist/core/cloud/service.js +215 -0
  38. package/dist/core/cloud/service.js.map +1 -0
  39. package/dist/core/cloud/store.d.ts +41 -0
  40. package/dist/core/cloud/store.js +278 -0
  41. package/dist/core/cloud/store.js.map +1 -0
  42. package/dist/core/cloud/tracker.d.ts +30 -0
  43. package/dist/core/cloud/tracker.js +152 -0
  44. package/dist/core/cloud/tracker.js.map +1 -0
  45. package/dist/core/cloud/types.d.ts +233 -0
  46. package/dist/core/cloud/types.js +73 -0
  47. package/dist/core/cloud/types.js.map +1 -0
  48. package/dist/core/daemon/capacity-publisher.d.ts +19 -0
  49. package/dist/core/daemon/capacity-publisher.js +49 -2
  50. package/dist/core/daemon/capacity-publisher.js.map +1 -1
  51. package/dist/core/daemon/overnight-status.d.ts +13 -0
  52. package/dist/core/daemon/overnight-status.js +93 -8
  53. package/dist/core/daemon/overnight-status.js.map +1 -1
  54. package/dist/core/fleet/dispatch-router.js +26 -9
  55. package/dist/core/fleet/dispatch-router.js.map +1 -1
  56. package/dist/core/fleet/fleet-runtime-journal.js +12 -5
  57. package/dist/core/fleet/fleet-runtime-journal.js.map +1 -1
  58. package/dist/core/fleet/fleet-types.d.ts +13 -0
  59. package/dist/core/routing/budget-store.js +11 -5
  60. package/dist/core/routing/budget-store.js.map +1 -1
  61. package/dist/core/routing/capacity-history-api.d.ts +30 -0
  62. package/dist/core/routing/capacity-history-api.js +147 -0
  63. package/dist/core/routing/capacity-history-api.js.map +1 -0
  64. package/dist/core/routing/capacity-history-types.d.ts +63 -0
  65. package/dist/core/routing/capacity-history-types.js +18 -0
  66. package/dist/core/routing/capacity-history-types.js.map +1 -0
  67. package/dist/core/routing/capacity-history.d.ts +130 -0
  68. package/dist/core/routing/capacity-history.js +654 -0
  69. package/dist/core/routing/capacity-history.js.map +1 -0
  70. package/dist/core/routing/headroom.d.ts +5 -1
  71. package/dist/core/routing/headroom.js +82 -41
  72. package/dist/core/routing/headroom.js.map +1 -1
  73. package/dist/core/routing/router.d.ts +8 -1
  74. package/dist/core/routing/router.js +49 -16
  75. package/dist/core/routing/router.js.map +1 -1
  76. package/dist/core/routing/seat-reasons.d.ts +35 -0
  77. package/dist/core/routing/seat-reasons.js +48 -0
  78. package/dist/core/routing/seat-reasons.js.map +1 -0
  79. package/dist/core/routing/types.d.ts +37 -0
  80. package/dist/core/routing/types.js.map +1 -1
  81. package/dist/core/verse/activity-api.d.ts +3 -1
  82. package/dist/core/verse/activity-api.js +16 -1
  83. package/dist/core/verse/activity-api.js.map +1 -1
  84. package/dist/core/verse/activity.d.ts +7 -0
  85. package/dist/core/verse/activity.js +23 -0
  86. package/dist/core/verse/activity.js.map +1 -1
  87. package/dist/core/verse/fleet-history-types.d.ts +12 -4
  88. package/dist/core/verse/fleet-history-types.js +4 -2
  89. package/dist/core/verse/fleet-history-types.js.map +1 -1
  90. package/dist/core/verse/fleet-live-api.d.ts +14 -1
  91. package/dist/core/verse/fleet-live-api.js +31 -11
  92. package/dist/core/verse/fleet-live-api.js.map +1 -1
  93. package/dist/core/verse/preferences.d.ts +3 -1
  94. package/dist/core/verse/preferences.js +5 -2
  95. package/dist/core/verse/preferences.js.map +1 -1
  96. package/dist/core/verse/types.d.ts +5 -1
  97. package/dist/core/verse/types.js.map +1 -1
  98. package/dist/core/verse/verse-api.d.ts +1 -1
  99. package/dist/core/verse/verse-api.js +4 -1
  100. package/dist/core/verse/verse-api.js.map +1 -1
  101. package/dist/core/vision/leader-cloud.d.ts +63 -0
  102. package/dist/core/vision/leader-cloud.js +134 -0
  103. package/dist/core/vision/leader-cloud.js.map +1 -0
  104. package/dist/core/vision/leader.d.ts +6 -0
  105. package/dist/core/vision/leader.js +12 -1
  106. package/dist/core/vision/leader.js.map +1 -1
  107. package/dist/core/web/public/next/assets/{ActionMenu-DhbNne-M.js → ActionMenu-CQvNJvHY.js} +2 -2
  108. package/dist/core/web/public/next/assets/{ActionMenu-DhbNne-M.js.map → ActionMenu-CQvNJvHY.js.map} +1 -1
  109. package/dist/core/web/public/next/assets/Advanced-Bywv_iYR.css +1 -0
  110. package/dist/core/web/public/next/assets/Advanced-DEM93sKI.js +2 -0
  111. package/dist/core/web/public/next/assets/Advanced-DEM93sKI.js.map +1 -0
  112. package/dist/core/web/public/next/assets/{App-DyBg1v_q.js → App-CimXmK0L.js} +5 -5
  113. package/dist/core/web/public/next/assets/{App-DyBg1v_q.js.map → App-CimXmK0L.js.map} +1 -1
  114. package/dist/core/web/public/next/assets/AppsSection-D6U-dSj6.js +2 -0
  115. package/dist/core/web/public/next/assets/AppsSection-D6U-dSj6.js.map +1 -0
  116. package/dist/core/web/public/next/assets/AreaTrend-LD9lCPkT.js +2 -0
  117. package/dist/core/web/public/next/assets/AreaTrend-LD9lCPkT.js.map +1 -0
  118. package/dist/core/web/public/next/assets/AutonomySection-3V9pUyxm.js +2 -0
  119. package/dist/core/web/public/next/assets/{AutonomySection-CoMngwNB.js.map → AutonomySection-3V9pUyxm.js.map} +1 -1
  120. package/dist/core/web/public/next/assets/BranchBar-BZNQ50YE.css +1 -0
  121. package/dist/core/web/public/next/assets/BranchBar-U8UdpfEB.js +2 -0
  122. package/dist/core/web/public/next/assets/BranchBar-U8UdpfEB.js.map +1 -0
  123. package/dist/core/web/public/next/assets/BudgetControl-DOTlMSmW.js +2 -0
  124. package/dist/core/web/public/next/assets/BudgetControl-DOTlMSmW.js.map +1 -0
  125. package/dist/core/web/public/next/assets/BurnDown-x4PWH9JF.js +2 -0
  126. package/dist/core/web/public/next/assets/BurnDown-x4PWH9JF.js.map +1 -0
  127. package/dist/core/web/public/next/assets/{Button-0-nNbv1h.js → Button-DYv_KKxr.js} +2 -2
  128. package/dist/core/web/public/next/assets/{Button-0-nNbv1h.js.map → Button-DYv_KKxr.js.map} +1 -1
  129. package/dist/core/web/public/next/assets/CapacityStrip-C667yQe8.js +2 -0
  130. package/dist/core/web/public/next/assets/CapacityStrip-C667yQe8.js.map +1 -0
  131. package/dist/core/web/public/next/assets/CapacityStrip-Cc28CyWk.css +1 -0
  132. package/dist/core/web/public/next/assets/ChatSection-CCcIPpOq.js +3 -0
  133. package/dist/core/web/public/next/assets/{ChatSection-B9cdRKUh.js.map → ChatSection-CCcIPpOq.js.map} +1 -1
  134. package/dist/core/web/public/next/assets/CloudBudgetForm-DJeJvBEu.js +2 -0
  135. package/dist/core/web/public/next/assets/CloudBudgetForm-DJeJvBEu.js.map +1 -0
  136. package/dist/core/web/public/next/assets/{CommandPalette-GpeCSrPy.js → CommandPalette-FiD4N8XD.js} +2 -2
  137. package/dist/core/web/public/next/assets/{CommandPalette-GpeCSrPy.js.map → CommandPalette-FiD4N8XD.js.map} +1 -1
  138. package/dist/core/web/public/next/assets/CommandSection-DN8KwH-X.js +2 -0
  139. package/dist/core/web/public/next/assets/CommandSection-DN8KwH-X.js.map +1 -0
  140. package/dist/core/web/public/next/assets/Composer-ByzxOJK6.css +1 -0
  141. package/dist/core/web/public/next/assets/Composer.module-C8U73KdQ.js +2 -0
  142. package/dist/core/web/public/next/assets/{Composer.module-DJMdrqNt.js.map → Composer.module-C8U73KdQ.js.map} +1 -1
  143. package/dist/core/web/public/next/assets/DiffPane-BAvvbBsf.css +1 -0
  144. package/dist/core/web/public/next/assets/DiffPane-DLJ3gGGK.js +2 -0
  145. package/dist/core/web/public/next/assets/DiffPane-DLJ3gGGK.js.map +1 -0
  146. package/dist/core/web/public/next/assets/{DiffViewer-tOGWk0CA.js → DiffViewer-B7NWPjIO.js} +2 -2
  147. package/dist/core/web/public/next/assets/{DiffViewer-tOGWk0CA.js.map → DiffViewer-B7NWPjIO.js.map} +1 -1
  148. package/dist/core/web/public/next/assets/DockHost-B4RaYOET.css +1 -0
  149. package/dist/core/web/public/next/assets/DockHost-DvR-hPhZ.js +2 -0
  150. package/dist/core/web/public/next/assets/DockHost-DvR-hPhZ.js.map +1 -0
  151. package/dist/core/web/public/next/assets/{EmptyState-DdJ4CxtO.js → EmptyState-DhNgDDrF.js} +2 -2
  152. package/dist/core/web/public/next/assets/{EmptyState-DdJ4CxtO.js.map → EmptyState-DhNgDDrF.js.map} +1 -1
  153. package/dist/core/web/public/next/assets/{Epistemic-BLjM5y_y.js → Epistemic-uARPnx9x.js} +2 -2
  154. package/dist/core/web/public/next/assets/{Epistemic-BLjM5y_y.js.map → Epistemic-uARPnx9x.js.map} +1 -1
  155. package/dist/core/web/public/next/assets/FleetSection-CFiWeOEs.css +1 -0
  156. package/dist/core/web/public/next/assets/FleetSection-D_zRBCub.js +3 -0
  157. package/dist/core/web/public/next/assets/FleetSection-D_zRBCub.js.map +1 -0
  158. package/dist/core/web/public/next/assets/Funnel-CL8uHONq.js +2 -0
  159. package/dist/core/web/public/next/assets/Funnel-CL8uHONq.js.map +1 -0
  160. package/dist/core/web/public/next/assets/GearTray-C7k4l_BW.js +2 -0
  161. package/dist/core/web/public/next/assets/GearTray-C7k4l_BW.js.map +1 -0
  162. package/dist/core/web/public/next/assets/GrowthSection-DwdNSGj8.js +2 -0
  163. package/dist/core/web/public/next/assets/GrowthSection-DwdNSGj8.js.map +1 -0
  164. package/dist/core/web/public/next/assets/HandoffDialog-FPVOqOMN.js +2 -0
  165. package/dist/core/web/public/next/assets/HandoffDialog-FPVOqOMN.js.map +1 -0
  166. package/dist/core/web/public/next/assets/{Input-CTu0CycC.js → Input-B9-VLcHS.js} +2 -2
  167. package/dist/core/web/public/next/assets/{Input-CTu0CycC.js.map → Input-B9-VLcHS.js.map} +1 -1
  168. package/dist/core/web/public/next/assets/{LeaderCard-BuSDeATv.js → LeaderCard-4R0BhDzT.js} +2 -2
  169. package/dist/core/web/public/next/assets/{LeaderCard-BuSDeATv.js.map → LeaderCard-4R0BhDzT.js.map} +1 -1
  170. package/dist/core/web/public/next/assets/{MatrixHeatmap-9dKgJ_pT.css → MatrixHeatmap-Bmnvo1l1.css} +1 -1
  171. package/dist/core/web/public/next/assets/MatrixHeatmap-DiuushcS.js +2 -0
  172. package/dist/core/web/public/next/assets/MatrixHeatmap-DiuushcS.js.map +1 -0
  173. package/dist/core/web/public/next/assets/McpSection-CJ__OJKl.js +2 -0
  174. package/dist/core/web/public/next/assets/{McpSection-1UncWBpW.js.map → McpSection-CJ__OJKl.js.map} +1 -1
  175. package/dist/core/web/public/next/assets/MessageMarkdown-Cgh5f1-Q.css +1 -0
  176. package/dist/core/web/public/next/assets/MessageMarkdown-qWKyJvAQ.js +3 -0
  177. package/dist/core/web/public/next/assets/{MessageMarkdown-C4pl9LI5.js.map → MessageMarkdown-qWKyJvAQ.js.map} +1 -1
  178. package/dist/core/web/public/next/assets/{MessageMarkdownRenderer-CZsF77ZM.js → MessageMarkdownRenderer-x05TrsrW.js} +2 -2
  179. package/dist/core/web/public/next/assets/{MessageMarkdownRenderer-CZsF77ZM.js.map → MessageMarkdownRenderer-x05TrsrW.js.map} +1 -1
  180. package/dist/core/web/public/next/assets/{Meter-C18ciKz4.js → Meter-D-hncpkO.js} +2 -2
  181. package/dist/core/web/public/next/assets/{Meter-C18ciKz4.js.map → Meter-D-hncpkO.js.map} +1 -1
  182. package/dist/core/web/public/next/assets/MindSection-BjXHkQPS.js +2 -0
  183. package/dist/core/web/public/next/assets/MindSection-BjXHkQPS.js.map +1 -0
  184. package/dist/core/web/public/next/assets/MutationTokenDialog-SkRxqV_I.js +2 -0
  185. package/dist/core/web/public/next/assets/MutationTokenDialog-SkRxqV_I.js.map +1 -0
  186. package/dist/core/web/public/next/assets/NeedsYouDrawer-BpvidnM2.css +1 -0
  187. package/dist/core/web/public/next/assets/NeedsYouDrawer-rSd1ZHAR.js +2 -0
  188. package/dist/core/web/public/next/assets/NeedsYouDrawer-rSd1ZHAR.js.map +1 -0
  189. package/dist/core/web/public/next/assets/NeedsYouList-CG-nB1tr.js +2 -0
  190. package/dist/core/web/public/next/assets/NeedsYouList-CG-nB1tr.js.map +1 -0
  191. package/dist/core/web/public/next/assets/NeedsYouList-CruOt4JT.css +1 -0
  192. package/dist/core/web/public/next/assets/NewChatDialog-BeDQ1eW3.js +3 -0
  193. package/dist/core/web/public/next/assets/{NewChatDialog-B_BsS9pr.js.map → NewChatDialog-BeDQ1eW3.js.map} +1 -1
  194. package/dist/core/web/public/next/assets/OnboardingFlow-CkTZtt-m.js +2 -0
  195. package/dist/core/web/public/next/assets/{OnboardingFlow-CtCPpgoX.js.map → OnboardingFlow-CkTZtt-m.js.map} +1 -1
  196. package/dist/core/web/public/next/assets/PreviewPane-DoMsJSG3.css +1 -0
  197. package/dist/core/web/public/next/assets/PreviewPane-kzbbSK4u.js +2 -0
  198. package/dist/core/web/public/next/assets/PreviewPane-kzbbSK4u.js.map +1 -0
  199. package/dist/core/web/public/next/assets/RailStatus-D-t2gPae.js +2 -0
  200. package/dist/core/web/public/next/assets/RailStatus-D-t2gPae.js.map +1 -0
  201. package/dist/core/web/public/next/assets/{RefreshIndicator-CnhEovMZ.js → RefreshIndicator-BLnr9IOM.js} +2 -2
  202. package/dist/core/web/public/next/assets/{RefreshIndicator-CnhEovMZ.js.map → RefreshIndicator-BLnr9IOM.js.map} +1 -1
  203. package/dist/core/web/public/next/assets/{ResourcePoolConsoleApp-28gLwmwV.js → ResourcePoolConsoleApp-BeG0gBif.js} +4 -4
  204. package/dist/core/web/public/next/assets/{ResourcePoolConsoleApp-28gLwmwV.js.map → ResourcePoolConsoleApp-BeG0gBif.js.map} +1 -1
  205. package/dist/core/web/public/next/assets/ResourcesChrome-B3Z3O98t.css +1 -0
  206. package/dist/core/web/public/next/assets/ResourcesChrome-BzV6bkIa.js +3 -0
  207. package/dist/core/web/public/next/assets/ResourcesChrome-BzV6bkIa.js.map +1 -0
  208. package/dist/core/web/public/next/assets/ResourcesDrawer-CSKIO_wZ.css +1 -0
  209. package/dist/core/web/public/next/assets/ResourcesDrawer-o4ILHdep.js +2 -0
  210. package/dist/core/web/public/next/assets/ResourcesDrawer-o4ILHdep.js.map +1 -0
  211. package/dist/core/web/public/next/assets/{RouteErrorBoundary-AyUPCIb3.js → RouteErrorBoundary-C5SxA2Dg.js} +2 -2
  212. package/dist/core/web/public/next/assets/{RouteErrorBoundary-AyUPCIb3.js.map → RouteErrorBoundary-C5SxA2Dg.js.map} +1 -1
  213. package/dist/core/web/public/next/assets/RunInCloudAction-C3LBp7C4.js +2 -0
  214. package/dist/core/web/public/next/assets/RunInCloudAction-C3LBp7C4.js.map +1 -0
  215. package/dist/core/web/public/next/assets/SeatSelector-DpvvbjNm.js +3 -0
  216. package/dist/core/web/public/next/assets/{SeatSelector-DaUO-zoK.js.map → SeatSelector-DpvvbjNm.js.map} +1 -1
  217. package/dist/core/web/public/next/assets/{Segmented-B_8c_83S.js → Segmented-BL40udoO.js} +2 -2
  218. package/dist/core/web/public/next/assets/{Segmented-B_8c_83S.js.map → Segmented-BL40udoO.js.map} +1 -1
  219. package/dist/core/web/public/next/assets/{Select-Bl5g5Dt_.js → Select-FWLnAw_j.js} +2 -2
  220. package/dist/core/web/public/next/assets/{Select-Bl5g5Dt_.js.map → Select-FWLnAw_j.js.map} +1 -1
  221. package/dist/core/web/public/next/assets/{SessionInsightChip-w0I21q0c.js → SessionInsightChip-CWye87Ju.js} +2 -2
  222. package/dist/core/web/public/next/assets/{SessionInsightChip-w0I21q0c.js.map → SessionInsightChip-CWye87Ju.js.map} +1 -1
  223. package/dist/core/web/public/next/assets/SessionSearch-YvCHFUuN.js +2 -0
  224. package/dist/core/web/public/next/assets/{SessionSearch-B5aQ0BCM.js.map → SessionSearch-YvCHFUuN.js.map} +1 -1
  225. package/dist/core/web/public/next/assets/SettingsSection-Dr18upeE.js +2 -0
  226. package/dist/core/web/public/next/assets/SettingsSection-Dr18upeE.js.map +1 -0
  227. package/dist/core/web/public/next/assets/{Sheet-CVjk-cLI.js → Sheet-DZKcQXQg.js} +2 -2
  228. package/dist/core/web/public/next/assets/{Sheet-CVjk-cLI.js.map → Sheet-DZKcQXQg.js.map} +1 -1
  229. package/dist/core/web/public/next/assets/{ShortcutsOverlay-BiBjnBcc.js → ShortcutsOverlay-BpDimdPq.js} +2 -2
  230. package/dist/core/web/public/next/assets/{ShortcutsOverlay-BiBjnBcc.js.map → ShortcutsOverlay-BpDimdPq.js.map} +1 -1
  231. package/dist/core/web/public/next/assets/Sidebar-BRc1vGDF.css +1 -0
  232. package/dist/core/web/public/next/assets/Sidebar-BoBzBEFX.js +3 -0
  233. package/dist/core/web/public/next/assets/Sidebar-BoBzBEFX.js.map +1 -0
  234. package/dist/core/web/public/next/assets/{Slider-BS9MU5ZV.js → Slider-DUMo9HDD.js} +2 -2
  235. package/dist/core/web/public/next/assets/{Slider-BS9MU5ZV.js.map → Slider-DUMo9HDD.js.map} +1 -1
  236. package/dist/core/web/public/next/assets/{StatusBadge-DAf-ArKE.js → StatusBadge-BwnBNFQr.js} +2 -2
  237. package/dist/core/web/public/next/assets/{StatusBadge-DAf-ArKE.js.map → StatusBadge-BwnBNFQr.js.map} +1 -1
  238. package/dist/core/web/public/next/assets/StepBand-PDXMIlRk.js +2 -0
  239. package/dist/core/web/public/next/assets/StepBand-PDXMIlRk.js.map +1 -0
  240. package/dist/core/web/public/next/assets/{Surface-CiYOdNKQ.js → Surface-B3TZVoER.js} +2 -2
  241. package/dist/core/web/public/next/assets/{Surface-CiYOdNKQ.js.map → Surface-B3TZVoER.js.map} +1 -1
  242. package/dist/core/web/public/next/assets/Swimlane-DR4OgON_.js +2 -0
  243. package/dist/core/web/public/next/assets/Swimlane-DR4OgON_.js.map +1 -0
  244. package/dist/core/web/public/next/assets/{Switch-BzRXtNPt.js → Switch-CcR5Llk5.js} +2 -2
  245. package/dist/core/web/public/next/assets/{Switch-BzRXtNPt.js.map → Switch-CcR5Llk5.js.map} +1 -1
  246. package/dist/core/web/public/next/assets/{Tag-DEEbDz7T.js → Tag-_-K1h7Hk.js} +2 -2
  247. package/dist/core/web/public/next/assets/{Tag-DEEbDz7T.js.map → Tag-_-K1h7Hk.js.map} +1 -1
  248. package/dist/core/web/public/next/assets/TerminalPane-BwfMbnJz.css +1 -0
  249. package/dist/core/web/public/next/assets/TerminalPane-_1aH4ndN.js +7 -0
  250. package/dist/core/web/public/next/assets/TerminalPane-_1aH4ndN.js.map +1 -0
  251. package/dist/core/web/public/next/assets/UniverseConsoleApp-BUsq-inZ.js +2 -0
  252. package/dist/core/web/public/next/assets/{UniverseConsoleApp-DKqAf-eD.js.map → UniverseConsoleApp-BUsq-inZ.js.map} +1 -1
  253. package/dist/core/web/public/next/assets/{UniverseView-D6081LQL.js → UniverseView-Dogy_dsB.js} +2 -2
  254. package/dist/core/web/public/next/assets/{UniverseView-D6081LQL.js.map → UniverseView-Dogy_dsB.js.map} +1 -1
  255. package/dist/core/web/public/next/assets/UsageSection-DiX_dTyo.js +2 -0
  256. package/dist/core/web/public/next/assets/UsageSection-DiX_dTyo.js.map +1 -0
  257. package/dist/core/web/public/next/assets/UsageSection-DsB-Jqyl.css +1 -0
  258. package/dist/core/web/public/next/assets/VerseConsoleApp-Cxqr-3qc.css +1 -0
  259. package/dist/core/web/public/next/assets/VerseConsoleApp-WVeyJnW7.js +3 -0
  260. package/dist/core/web/public/next/assets/VerseConsoleApp-WVeyJnW7.js.map +1 -0
  261. package/dist/core/web/public/next/assets/Workspace-BYW9dm90.css +1 -0
  262. package/dist/core/web/public/next/assets/Workspace-BbxZHwQd.js +10 -0
  263. package/dist/core/web/public/next/assets/Workspace-BbxZHwQd.js.map +1 -0
  264. package/dist/core/web/public/next/assets/actions-Ddfg2iLl.css +1 -0
  265. package/dist/core/web/public/next/assets/actions-s2lfm_5k.js +2 -0
  266. package/dist/core/web/public/next/assets/actions-s2lfm_5k.js.map +1 -0
  267. package/dist/core/web/public/next/assets/apps-model-CDFvmsQV.js +2 -0
  268. package/dist/core/web/public/next/assets/apps-model-CDFvmsQV.js.map +1 -0
  269. package/dist/core/web/public/next/assets/{budget-queries-Dacv1VYP.js → budget-queries-wUshcovN.js} +2 -2
  270. package/dist/core/web/public/next/assets/{budget-queries-Dacv1VYP.js.map → budget-queries-wUshcovN.js.map} +1 -1
  271. package/dist/core/web/public/next/assets/calendar-day-BxBYHfX1.js +2 -0
  272. package/dist/core/web/public/next/assets/calendar-day-BxBYHfX1.js.map +1 -0
  273. package/dist/core/web/public/next/assets/capacity-strip-model-Bj_9ztzs.js +2 -0
  274. package/dist/core/web/public/next/assets/capacity-strip-model-Bj_9ztzs.js.map +1 -0
  275. package/dist/core/web/public/next/assets/charts-CMSgAUKn.js +2 -0
  276. package/dist/core/web/public/next/assets/charts-CMSgAUKn.js.map +1 -0
  277. package/dist/core/web/public/next/assets/cloud-C1KPNRHC.css +1 -0
  278. package/dist/core/web/public/next/assets/cloud-queries-CnV1yaNG.js +2 -0
  279. package/dist/core/web/public/next/assets/cloud-queries-CnV1yaNG.js.map +1 -0
  280. package/dist/core/web/public/next/assets/cloud.module-CiwatLj3.js +2 -0
  281. package/dist/core/web/public/next/assets/cloud.module-CiwatLj3.js.map +1 -0
  282. package/dist/core/web/public/next/assets/colors-BZ3a9wFf.js +2 -0
  283. package/dist/core/web/public/next/assets/colors-BZ3a9wFf.js.map +1 -0
  284. package/dist/core/web/public/next/assets/{command-bus-CpYuam1F.js → command-bus-DqimKCUY.js} +2 -2
  285. package/dist/core/web/public/next/assets/{command-bus-CpYuam1F.js.map → command-bus-DqimKCUY.js.map} +1 -1
  286. package/dist/core/web/public/next/assets/command-catalog-BdtDH93o.js +2 -0
  287. package/dist/core/web/public/next/assets/command-catalog-BdtDH93o.js.map +1 -0
  288. package/dist/core/web/public/next/assets/{composer-keys-CYz4U4Bg.js → composer-keys-DBRymxQn.js} +2 -2
  289. package/dist/core/web/public/next/assets/{composer-keys-CYz4U4Bg.js.map → composer-keys-DBRymxQn.js.map} +1 -1
  290. package/dist/core/web/public/next/assets/context-model-Dwd49-dp.js +2 -0
  291. package/dist/core/web/public/next/assets/context-model-Dwd49-dp.js.map +1 -0
  292. package/dist/core/web/public/next/assets/context-model-MT17V86_.js +2 -0
  293. package/dist/core/web/public/next/assets/context-model-MT17V86_.js.map +1 -0
  294. package/dist/core/web/public/next/assets/context-queries-xVKIeynP.js +2 -0
  295. package/dist/core/web/public/next/assets/context-queries-xVKIeynP.js.map +1 -0
  296. package/dist/core/web/public/next/assets/context.module-BijAfoJw.js +2 -0
  297. package/dist/core/web/public/next/assets/context.module-BijAfoJw.js.map +1 -0
  298. package/dist/core/web/public/next/assets/{control-queries-BGjarMm9.js → control-queries-DOZR-D8G.js} +2 -2
  299. package/dist/core/web/public/next/assets/{control-queries-BGjarMm9.js.map → control-queries-DOZR-D8G.js.map} +1 -1
  300. package/dist/core/web/public/next/assets/dark-since-DOMvtB_G.js +2 -0
  301. package/dist/core/web/public/next/assets/dark-since-DOMvtB_G.js.map +1 -0
  302. package/dist/core/web/public/next/assets/dock-icons-8EtARwUm.js +2 -0
  303. package/dist/core/web/public/next/assets/dock-icons-8EtARwUm.js.map +1 -0
  304. package/dist/core/web/public/next/assets/dock-panes-UKS-mXhr.js +2 -0
  305. package/dist/core/web/public/next/assets/{dock-panes-BNTLvX7G.js.map → dock-panes-UKS-mXhr.js.map} +1 -1
  306. package/dist/core/web/public/next/assets/{dock-store-_E5h6TEq.js → dock-store-BA1cHOYA.js} +2 -2
  307. package/dist/core/web/public/next/assets/{dock-store-_E5h6TEq.js.map → dock-store-BA1cHOYA.js.map} +1 -1
  308. package/dist/core/web/public/next/assets/fleet-model-CNe8Wh-s.js +2 -0
  309. package/dist/core/web/public/next/assets/fleet-model-CNe8Wh-s.js.map +1 -0
  310. package/dist/core/web/public/next/assets/fleet-queries-BSdRlUwJ.js +2 -0
  311. package/dist/core/web/public/next/assets/fleet-queries-BSdRlUwJ.js.map +1 -0
  312. package/dist/core/web/public/next/assets/format-B8DAVcn2.js +2 -0
  313. package/dist/core/web/public/next/assets/format-B8DAVcn2.js.map +1 -0
  314. package/dist/core/web/public/next/assets/format-DKrNjdwD.js +2 -0
  315. package/dist/core/web/public/next/assets/format-DKrNjdwD.js.map +1 -0
  316. package/dist/core/web/public/next/assets/{git-model-5v5xGobf.js → git-model-CivuBY_D.js} +2 -2
  317. package/dist/core/web/public/next/assets/{git-model-5v5xGobf.js.map → git-model-CivuBY_D.js.map} +1 -1
  318. package/dist/core/web/public/next/assets/global-Di2PUgj4.js +2 -0
  319. package/dist/core/web/public/next/assets/global-Di2PUgj4.js.map +1 -0
  320. package/dist/core/web/public/next/assets/{guarded-action-vOPc8v75.js → guarded-action-CvOHcqyH.js} +2 -2
  321. package/dist/core/web/public/next/assets/{guarded-action-vOPc8v75.js.map → guarded-action-CvOHcqyH.js.map} +1 -1
  322. package/dist/core/web/public/next/assets/{icons-DWb24OA6.js → icons-B_yuAgdN.js} +2 -2
  323. package/dist/core/web/public/next/assets/{icons-DWb24OA6.js.map → icons-B_yuAgdN.js.map} +1 -1
  324. package/dist/core/web/public/next/assets/{index-afDA8cwW.js → index-oAAq8XJa.js} +3 -3
  325. package/dist/core/web/public/next/assets/{index-afDA8cwW.js.map → index-oAAq8XJa.js.map} +1 -1
  326. package/dist/core/web/public/next/assets/live-model-DCw_IFRI.js +2 -0
  327. package/dist/core/web/public/next/assets/live-model-DCw_IFRI.js.map +1 -0
  328. package/dist/core/web/public/next/assets/local-model-DFyjKX0b.js +2 -0
  329. package/dist/core/web/public/next/assets/local-model-DFyjKX0b.js.map +1 -0
  330. package/dist/core/web/public/next/assets/mind-B9PzLcl0.css +1 -0
  331. package/dist/core/web/public/next/assets/mind.module-vnuJcwvD.js +2 -0
  332. package/dist/core/web/public/next/assets/mind.module-vnuJcwvD.js.map +1 -0
  333. package/dist/core/web/public/next/assets/mutations-Dpsql5t7.js +2 -0
  334. package/dist/core/web/public/next/assets/{mutations-C6E10SPX.js.map → mutations-Dpsql5t7.js.map} +1 -1
  335. package/dist/core/web/public/next/assets/{overnight-queries-CCGfiS-g.js → overnight-queries-X-44Gsw5.js} +2 -2
  336. package/dist/core/web/public/next/assets/{overnight-queries-CCGfiS-g.js.map → overnight-queries-X-44Gsw5.js.map} +1 -1
  337. package/dist/core/web/public/next/assets/pane-chrome-8JmEhHVD.css +1 -0
  338. package/dist/core/web/public/next/assets/pane-chrome.module-D7o-fVd0.js +2 -0
  339. package/dist/core/web/public/next/assets/pane-chrome.module-D7o-fVd0.js.map +1 -0
  340. package/dist/core/web/public/next/assets/primitives-BDIcUvob.js +1 -0
  341. package/dist/core/web/public/next/assets/{queries-BuYIEHst.js → queries-BA4rNGD-.js} +2 -2
  342. package/dist/core/web/public/next/assets/{queries-BuYIEHst.js.map → queries-BA4rNGD-.js.map} +1 -1
  343. package/dist/core/web/public/next/assets/{reasoning-pref-BVzGczV7.js → reasoning-pref-B9-DJUXP.js} +2 -2
  344. package/dist/core/web/public/next/assets/{reasoning-pref-BVzGczV7.js.map → reasoning-pref-B9-DJUXP.js.map} +1 -1
  345. package/dist/core/web/public/next/assets/seat-subscription-CH6fW4fJ.js +2 -0
  346. package/dist/core/web/public/next/assets/seat-subscription-CH6fW4fJ.js.map +1 -0
  347. package/dist/core/web/public/next/assets/{section-visibility-CSrsTcwK.js → section-visibility-qFqc_d4Z.js} +2 -2
  348. package/dist/core/web/public/next/assets/{section-visibility-CSrsTcwK.js.map → section-visibility-qFqc_d4Z.js.map} +1 -1
  349. package/dist/core/web/public/next/assets/{sidebar-model-C8fyqSQY.js → sidebar-model-M1GaQU5l.js} +2 -2
  350. package/dist/core/web/public/next/assets/{sidebar-model-C8fyqSQY.js.map → sidebar-model-M1GaQU5l.js.map} +1 -1
  351. package/dist/core/web/public/next/assets/slots-Ds9ZIqUL.js +3 -0
  352. package/dist/core/web/public/next/assets/{slots-W8gkmdfE.js.map → slots-Ds9ZIqUL.js.map} +1 -1
  353. package/dist/core/web/public/next/assets/surface-data-J52iIGMD.js +2 -0
  354. package/dist/core/web/public/next/assets/surface-data-J52iIGMD.js.map +1 -0
  355. package/dist/core/web/public/next/assets/surface-prefetch-CgZ-LEJK.js +2 -0
  356. package/dist/core/web/public/next/assets/surface-prefetch-CgZ-LEJK.js.map +1 -0
  357. package/dist/core/web/public/next/assets/tasks-model-ent8f0jZ.js +2 -0
  358. package/dist/core/web/public/next/assets/{tasks-model-CnYQzgxk.js.map → tasks-model-ent8f0jZ.js.map} +1 -1
  359. package/dist/core/web/public/next/assets/{terminal-icons-CxUYaWX9.js → terminal-icons-DJTK7QpR.js} +2 -2
  360. package/dist/core/web/public/next/assets/{terminal-icons-CxUYaWX9.js.map → terminal-icons-DJTK7QpR.js.map} +1 -1
  361. package/dist/core/web/public/next/assets/{tool-semantics-CTRuLF5j.js → tool-semantics-GX8ScuSH.js} +2 -2
  362. package/dist/core/web/public/next/assets/{tool-semantics-CTRuLF5j.js.map → tool-semantics-GX8ScuSH.js.map} +1 -1
  363. package/dist/core/web/public/next/assets/{turn-files-BvB5LLNw.js → turn-files-BPHQzYuH.js} +2 -2
  364. package/dist/core/web/public/next/assets/{turn-files-BvB5LLNw.js.map → turn-files-BPHQzYuH.js.map} +1 -1
  365. package/dist/core/web/public/next/assets/types-D5XOdyw8.js +2 -0
  366. package/dist/core/web/public/next/assets/types-D5XOdyw8.js.map +1 -0
  367. package/dist/core/web/public/next/assets/{usage-queries-CQOpeE1H.js → usage-queries-Bn8ccqyN.js} +2 -2
  368. package/dist/core/web/public/next/assets/{usage-queries-CQOpeE1H.js.map → usage-queries-Bn8ccqyN.js.map} +1 -1
  369. package/dist/core/web/public/next/assets/use-guarded-action-C2HlSzkz.js +2 -0
  370. package/dist/core/web/public/next/assets/use-guarded-action-C2HlSzkz.js.map +1 -0
  371. package/dist/core/web/public/next/assets/{use-ticker-hryPXnyp.js → use-ticker-BNc1H4ZC.js} +2 -2
  372. package/dist/core/web/public/next/assets/{use-ticker-hryPXnyp.js.map → use-ticker-BNc1H4ZC.js.map} +1 -1
  373. package/dist/core/web/public/next/assets/use-token-gate-B3IJL6bf.js +2 -0
  374. package/dist/core/web/public/next/assets/use-token-gate-B3IJL6bf.js.map +1 -0
  375. package/dist/core/web/public/next/assets/{useActivity-Cg_9-7nt.js → useActivity-Bk3XgXjL.js} +2 -2
  376. package/dist/core/web/public/next/assets/{useActivity-Cg_9-7nt.js.map → useActivity-Bk3XgXjL.js.map} +1 -1
  377. package/dist/core/web/public/next/assets/useChartWidth-BAtVgn2n.css +1 -0
  378. package/dist/core/web/public/next/assets/useChartWidth-lZ9PrQn0.js +2 -0
  379. package/dist/core/web/public/next/assets/useChartWidth-lZ9PrQn0.js.map +1 -0
  380. package/dist/core/web/public/next/assets/{useSeatsRefresh-4Ov9eT1F.js → useSeatsRefresh-CG4jczeL.js} +2 -2
  381. package/dist/core/web/public/next/assets/{useSeatsRefresh-4Ov9eT1F.js.map → useSeatsRefresh-CG4jczeL.js.map} +1 -1
  382. package/dist/core/web/public/next/assets/verse-model-D7NZQFAR.js +2 -0
  383. package/dist/core/web/public/next/assets/verse-model-D7NZQFAR.js.map +1 -0
  384. package/dist/core/web/public/next/assets/{verse-queries-BjQoOTwv.js → verse-queries-DvIJcn6Z.js} +2 -2
  385. package/dist/core/web/public/next/assets/{verse-queries-BjQoOTwv.js.map → verse-queries-DvIJcn6Z.js.map} +1 -1
  386. package/dist/core/web/public/next/assets/verse-store-DjBWj04q.js +3 -0
  387. package/dist/core/web/public/next/assets/verse-store-DjBWj04q.js.map +1 -0
  388. package/dist/core/web/public/next/assets/verse-ui-store-zafyzXKD.js +3 -0
  389. package/dist/core/web/public/next/assets/{verse-ui-store-KTTKfv-T.js.map → verse-ui-store-zafyzXKD.js.map} +1 -1
  390. package/dist/core/web/public/next/assets/{viewport-ZB86jdES.js → viewport-BEqGUoTA.js} +2 -2
  391. package/dist/core/web/public/next/assets/{viewport-ZB86jdES.js.map → viewport-BEqGUoTA.js.map} +1 -1
  392. package/dist/core/web/public/next/assets/warmup-BR6pxAKs.js +3 -0
  393. package/dist/core/web/public/next/assets/warmup-BR6pxAKs.js.map +1 -0
  394. package/dist/core/web/public/next/assets/{workspace-model-4hq_Mv3N.js → workspace-model-D_tWD5Wt.js} +2 -2
  395. package/dist/core/web/public/next/assets/{workspace-model-4hq_Mv3N.js.map → workspace-model-D_tWD5Wt.js.map} +1 -1
  396. package/dist/core/web/public/next/index.html +1 -1
  397. package/dist/release-dependency-inventory.json +1 -1
  398. package/package.json +1 -1
  399. package/dist/core/web/public/next/assets/Advanced-CHjxJt2z.css +0 -1
  400. package/dist/core/web/public/next/assets/Advanced-DM0DYibH.js +0 -2
  401. package/dist/core/web/public/next/assets/Advanced-DM0DYibH.js.map +0 -1
  402. package/dist/core/web/public/next/assets/AppsSection-CXxbfPJQ.js +0 -2
  403. package/dist/core/web/public/next/assets/AppsSection-CXxbfPJQ.js.map +0 -1
  404. package/dist/core/web/public/next/assets/AreaTrend-gUVXkfhf.js +0 -2
  405. package/dist/core/web/public/next/assets/AreaTrend-gUVXkfhf.js.map +0 -1
  406. package/dist/core/web/public/next/assets/AutonomySection-CoMngwNB.js +0 -2
  407. package/dist/core/web/public/next/assets/BranchBar-C-NovaXr.js +0 -2
  408. package/dist/core/web/public/next/assets/BranchBar-C-NovaXr.js.map +0 -1
  409. package/dist/core/web/public/next/assets/BranchBar-C9BpPVLr.css +0 -1
  410. package/dist/core/web/public/next/assets/BudgetControl-P5lMxHvQ.js +0 -2
  411. package/dist/core/web/public/next/assets/BudgetControl-P5lMxHvQ.js.map +0 -1
  412. package/dist/core/web/public/next/assets/BurnDown-4P1LDoCL.js +0 -2
  413. package/dist/core/web/public/next/assets/BurnDown-4P1LDoCL.js.map +0 -1
  414. package/dist/core/web/public/next/assets/CapacityStrip-D6Yyg4a1.js +0 -2
  415. package/dist/core/web/public/next/assets/CapacityStrip-D6Yyg4a1.js.map +0 -1
  416. package/dist/core/web/public/next/assets/CapacityStrip-wgFP9MUA.css +0 -1
  417. package/dist/core/web/public/next/assets/ChatSection-B9cdRKUh.js +0 -3
  418. package/dist/core/web/public/next/assets/CommandSection-BC0uXim_.js +0 -2
  419. package/dist/core/web/public/next/assets/CommandSection-BC0uXim_.js.map +0 -1
  420. package/dist/core/web/public/next/assets/Composer-CkcwbQhG.css +0 -1
  421. package/dist/core/web/public/next/assets/Composer.module-DJMdrqNt.js +0 -2
  422. package/dist/core/web/public/next/assets/DiffPane-5uLKa0au.js +0 -2
  423. package/dist/core/web/public/next/assets/DiffPane-5uLKa0au.js.map +0 -1
  424. package/dist/core/web/public/next/assets/DiffPane-Csboxnn0.css +0 -1
  425. package/dist/core/web/public/next/assets/DockHost-BGnTgdIb.css +0 -1
  426. package/dist/core/web/public/next/assets/DockHost-CBV_6Ehi.js +0 -2
  427. package/dist/core/web/public/next/assets/DockHost-CBV_6Ehi.js.map +0 -1
  428. package/dist/core/web/public/next/assets/FleetSection-DuJcQCGg.js +0 -3
  429. package/dist/core/web/public/next/assets/FleetSection-DuJcQCGg.js.map +0 -1
  430. package/dist/core/web/public/next/assets/FleetSection-w9AjqfTR.css +0 -1
  431. package/dist/core/web/public/next/assets/Funnel-qX3Hlbce.js +0 -2
  432. package/dist/core/web/public/next/assets/Funnel-qX3Hlbce.js.map +0 -1
  433. package/dist/core/web/public/next/assets/GearTray-kVGP1coG.js +0 -2
  434. package/dist/core/web/public/next/assets/GearTray-kVGP1coG.js.map +0 -1
  435. package/dist/core/web/public/next/assets/GrowthSection-CYxJ9MH5.js +0 -2
  436. package/dist/core/web/public/next/assets/GrowthSection-CYxJ9MH5.js.map +0 -1
  437. package/dist/core/web/public/next/assets/HandoffDialog-DHZo3Ev0.js +0 -2
  438. package/dist/core/web/public/next/assets/HandoffDialog-DHZo3Ev0.js.map +0 -1
  439. package/dist/core/web/public/next/assets/MatrixHeatmap-B_JWCjZx.js +0 -2
  440. package/dist/core/web/public/next/assets/MatrixHeatmap-B_JWCjZx.js.map +0 -1
  441. package/dist/core/web/public/next/assets/McpSection-1UncWBpW.js +0 -2
  442. package/dist/core/web/public/next/assets/MessageMarkdown-C4pl9LI5.js +0 -3
  443. package/dist/core/web/public/next/assets/MessageMarkdown-Czcl3L_Q.css +0 -1
  444. package/dist/core/web/public/next/assets/MindSection-C3fCw_fD.js +0 -2
  445. package/dist/core/web/public/next/assets/MindSection-C3fCw_fD.js.map +0 -1
  446. package/dist/core/web/public/next/assets/MutationTokenDialog-Dn0tzCrh.js +0 -2
  447. package/dist/core/web/public/next/assets/MutationTokenDialog-Dn0tzCrh.js.map +0 -1
  448. package/dist/core/web/public/next/assets/NeedsYouDrawer-CuNYJCJ0.js +0 -2
  449. package/dist/core/web/public/next/assets/NeedsYouDrawer-CuNYJCJ0.js.map +0 -1
  450. package/dist/core/web/public/next/assets/NeedsYouDrawer-SkhvvdLb.css +0 -1
  451. package/dist/core/web/public/next/assets/NewChatDialog-B_BsS9pr.js +0 -3
  452. package/dist/core/web/public/next/assets/OnboardingFlow-CtCPpgoX.js +0 -2
  453. package/dist/core/web/public/next/assets/PreviewPane-Cx6RRwzM.js +0 -2
  454. package/dist/core/web/public/next/assets/PreviewPane-Cx6RRwzM.js.map +0 -1
  455. package/dist/core/web/public/next/assets/PreviewPane-WQJFjSXe.css +0 -1
  456. package/dist/core/web/public/next/assets/RailStatus-BWs6xevj.js +0 -2
  457. package/dist/core/web/public/next/assets/RailStatus-BWs6xevj.js.map +0 -1
  458. package/dist/core/web/public/next/assets/SeatSelector-DaUO-zoK.js +0 -3
  459. package/dist/core/web/public/next/assets/SessionSearch-B5aQ0BCM.js +0 -2
  460. package/dist/core/web/public/next/assets/SettingsSection-CuESA30a.js +0 -2
  461. package/dist/core/web/public/next/assets/SettingsSection-CuESA30a.js.map +0 -1
  462. package/dist/core/web/public/next/assets/Sidebar-DfD8MNZt.css +0 -1
  463. package/dist/core/web/public/next/assets/Sidebar-q11dtYZf.js +0 -3
  464. package/dist/core/web/public/next/assets/Sidebar-q11dtYZf.js.map +0 -1
  465. package/dist/core/web/public/next/assets/StepBand-B1W7rU70.js +0 -2
  466. package/dist/core/web/public/next/assets/StepBand-B1W7rU70.js.map +0 -1
  467. package/dist/core/web/public/next/assets/Swimlane-BR40WVcj.js +0 -2
  468. package/dist/core/web/public/next/assets/Swimlane-BR40WVcj.js.map +0 -1
  469. package/dist/core/web/public/next/assets/TerminalPane-CPKUTD9K.js +0 -7
  470. package/dist/core/web/public/next/assets/TerminalPane-CPKUTD9K.js.map +0 -1
  471. package/dist/core/web/public/next/assets/TerminalPane-CmE2QL-Q.css +0 -1
  472. package/dist/core/web/public/next/assets/UniverseConsoleApp-DKqAf-eD.js +0 -2
  473. package/dist/core/web/public/next/assets/UsageSection-B6fR3cru.js +0 -2
  474. package/dist/core/web/public/next/assets/UsageSection-B6fR3cru.js.map +0 -1
  475. package/dist/core/web/public/next/assets/UsageSection-DwgNOYvi.css +0 -1
  476. package/dist/core/web/public/next/assets/VerseConsoleApp-C0V221WL.css +0 -1
  477. package/dist/core/web/public/next/assets/VerseConsoleApp-bjARLPwN.js +0 -3
  478. package/dist/core/web/public/next/assets/VerseConsoleApp-bjARLPwN.js.map +0 -1
  479. package/dist/core/web/public/next/assets/Workspace-DQXMVDf7.css +0 -1
  480. package/dist/core/web/public/next/assets/Workspace-DtJb5tiM.js +0 -10
  481. package/dist/core/web/public/next/assets/Workspace-DtJb5tiM.js.map +0 -1
  482. package/dist/core/web/public/next/assets/actions-Bszsdpms.js +0 -2
  483. package/dist/core/web/public/next/assets/actions-Bszsdpms.js.map +0 -1
  484. package/dist/core/web/public/next/assets/actions-Dug8YIf0.css +0 -1
  485. package/dist/core/web/public/next/assets/capacity-strip-model-BR539Ci8.js +0 -2
  486. package/dist/core/web/public/next/assets/capacity-strip-model-BR539Ci8.js.map +0 -1
  487. package/dist/core/web/public/next/assets/charts-D4NaLaXA.js +0 -2
  488. package/dist/core/web/public/next/assets/charts-D4NaLaXA.js.map +0 -1
  489. package/dist/core/web/public/next/assets/colors-B-vHsX1S.js +0 -2
  490. package/dist/core/web/public/next/assets/colors-B-vHsX1S.js.map +0 -1
  491. package/dist/core/web/public/next/assets/command-catalog-s3W6Z96D.js +0 -2
  492. package/dist/core/web/public/next/assets/command-catalog-s3W6Z96D.js.map +0 -1
  493. package/dist/core/web/public/next/assets/context-model-Bto3LZn2.js +0 -2
  494. package/dist/core/web/public/next/assets/context-model-Bto3LZn2.js.map +0 -1
  495. package/dist/core/web/public/next/assets/context-queries-DVdSLrYy.js +0 -2
  496. package/dist/core/web/public/next/assets/context-queries-DVdSLrYy.js.map +0 -1
  497. package/dist/core/web/public/next/assets/context.module-B_k02HNU.js +0 -2
  498. package/dist/core/web/public/next/assets/context.module-B_k02HNU.js.map +0 -1
  499. package/dist/core/web/public/next/assets/dock-icons-oG8d7mNZ.js +0 -2
  500. package/dist/core/web/public/next/assets/dock-icons-oG8d7mNZ.js.map +0 -1
  501. package/dist/core/web/public/next/assets/dock-panes-BNTLvX7G.js +0 -2
  502. package/dist/core/web/public/next/assets/fleet-model-ClBbQ0Uj.js +0 -2
  503. package/dist/core/web/public/next/assets/fleet-model-ClBbQ0Uj.js.map +0 -1
  504. package/dist/core/web/public/next/assets/format-BNYWGJat.js +0 -2
  505. package/dist/core/web/public/next/assets/format-BNYWGJat.js.map +0 -1
  506. package/dist/core/web/public/next/assets/global-DVgMguLr.js +0 -2
  507. package/dist/core/web/public/next/assets/global-DVgMguLr.js.map +0 -1
  508. package/dist/core/web/public/next/assets/live-model-Dm6ITHvX.js +0 -2
  509. package/dist/core/web/public/next/assets/live-model-Dm6ITHvX.js.map +0 -1
  510. package/dist/core/web/public/next/assets/mind-B-lYfSUJ.css +0 -1
  511. package/dist/core/web/public/next/assets/mind.module-BzhAlg3e.js +0 -2
  512. package/dist/core/web/public/next/assets/mind.module-BzhAlg3e.js.map +0 -1
  513. package/dist/core/web/public/next/assets/mutations-C6E10SPX.js +0 -2
  514. package/dist/core/web/public/next/assets/primitives-DQvYikjm.js +0 -1
  515. package/dist/core/web/public/next/assets/seat-subscription-CrWOV4Qc.js +0 -2
  516. package/dist/core/web/public/next/assets/seat-subscription-CrWOV4Qc.js.map +0 -1
  517. package/dist/core/web/public/next/assets/slots-W8gkmdfE.js +0 -3
  518. package/dist/core/web/public/next/assets/surface-data-ZtCegYMQ.js +0 -2
  519. package/dist/core/web/public/next/assets/surface-data-ZtCegYMQ.js.map +0 -1
  520. package/dist/core/web/public/next/assets/tasks-model-CnYQzgxk.js +0 -2
  521. package/dist/core/web/public/next/assets/types-Dypu22dp.js +0 -3
  522. package/dist/core/web/public/next/assets/types-Dypu22dp.js.map +0 -1
  523. package/dist/core/web/public/next/assets/use-guarded-action-CO_aAsed.js +0 -2
  524. package/dist/core/web/public/next/assets/use-guarded-action-CO_aAsed.js.map +0 -1
  525. package/dist/core/web/public/next/assets/use-token-gate-DYA2-ALC.js +0 -2
  526. package/dist/core/web/public/next/assets/use-token-gate-DYA2-ALC.js.map +0 -1
  527. package/dist/core/web/public/next/assets/useChartWidth-B8E5mJgM.css +0 -1
  528. package/dist/core/web/public/next/assets/useChartWidth-MEXvDxDL.js +0 -2
  529. package/dist/core/web/public/next/assets/useChartWidth-MEXvDxDL.js.map +0 -1
  530. package/dist/core/web/public/next/assets/verse-model-E98kXngO.js +0 -2
  531. package/dist/core/web/public/next/assets/verse-model-E98kXngO.js.map +0 -1
  532. package/dist/core/web/public/next/assets/verse-store-BgKx_YGs.js +0 -2
  533. package/dist/core/web/public/next/assets/verse-store-BgKx_YGs.js.map +0 -1
  534. package/dist/core/web/public/next/assets/verse-ui-store-KTTKfv-T.js +0 -3
@@ -1 +0,0 @@
1
- {"version":3,"file":"live-model-Dm6ITHvX.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/fleet/live-model.ts"],"sourcesContent":["/**\n * routes/verse/fleet/live-model.ts — FleetLiveSnapshotV1 → chart props\n * (unit C7; SPEC-310B §6 Fleet, SPEC-310C §5). Shared by Command's 12 h\n * swimlane and every Fleet card, so both make the same decisions:\n *\n * - rows are LANES × SLOTS: runs overlapping in one lane stack into\n * numbered slot rows (\"Grok · 2\"), so a bar never hides behind another;\n * - bar colour is STATUS (running amber, merged green, reverted red …);\n * the lane's ENGINE is the tick + monogram beside its label;\n * - queued and parked work draws as an outline (it holds a place; nothing\n * runs) — the Parked Gantt runs from \"parked since\" to `nextEligibleAt`,\n * and an unknown `nextEligibleAt` stays open-ended with \"unknown\" in words.\n *\n * Framework-free; tested directly.\n */\nimport type { FleetEngine, FleetGateFunnel, FleetLiveRun, FleetLiveSnapshotV1 } from '../../../../core/fleet/fleet-types.js';\nimport type { SeatDecision } from '../../../../core/routing/types.js';\nimport type { ChartEngine, ChartTone } from '../../../components/charts/colors.js';\nimport { CHART_NEUTRAL, seriesColor } from '../../../components/charts/colors.js';\nimport type { SwimlaneLane } from '../../../components/charts/Swimlane.js';\nimport type { FunnelStage } from '../../../components/charts/Funnel.js';\nimport type { BarStackSegment } from '../../../components/charts/BarStack.js';\n\nexport const LANE_ENGINE: Readonly<Record<FleetEngine, ChartEngine>> = {\n local: 'local',\n 'grok-cli': 'grok',\n 'claude-cli': 'claude',\n codex: 'codex',\n};\n\nexport const LANE_LABEL: Readonly<Record<FleetEngine, string>> = {\n local: 'Local',\n 'grok-cli': 'Grok',\n 'claude-cli': 'Claude',\n codex: 'Codex',\n};\n\n/** The word a bar is labelled with: the outcome once it ended, else the phase. */\nexport function runStatus(run: FleetLiveRun): string {\n if (run.phase === 'queued' || run.phase === 'parked') return run.phase;\n if (run.phase === 'reverting') return 'reverting';\n return run.outcome ?? run.phase;\n}\n\nconst TONES: Readonly<Record<string, ChartTone>> = {\n producing: 'running',\n verifying: 'running',\n judging: 'running',\n landing: 'running',\n watching: 'info',\n reverting: 'danger',\n merged: 'success',\n proposed: 'info',\n 'owner-lane': 'warning',\n refused: 'warning',\n failed: 'danger',\n reverted: 'danger',\n cancelled: 'neutral',\n queued: 'neutral',\n parked: 'neutral',\n};\n\nexport function runTone(status: string): ChartTone {\n return TONES[status] ?? 'unknown';\n}\n\nfunction startOf(run: FleetLiveRun): number | null {\n const t = Date.parse(run.startedAt ?? run.phaseStartedAt ?? '');\n return Number.isFinite(t) ? t : null;\n}\n\nfunction endOf(run: FleetLiveRun): number | null {\n if (!run.endedAt) return null;\n const t = Date.parse(run.endedAt);\n return Number.isFinite(t) ? t : null;\n}\n\nfunction runDetail(run: FleetLiveRun): string {\n const where = run.repo.includes('/') ? run.repo.split('/')[1] : run.repo;\n return [where, run.title, run.model, run.prNumber ? `PR #${run.prNumber}` : null].filter(Boolean).join(' · ');\n}\n\nconst LANE_ORDER: readonly (FleetEngine | 'none')[] = ['local', 'grok-cli', 'claude-cli', 'codex', 'none'];\n\n/**\n * Runs within [from, now] packed into lane × slot rows. `parkedAsGantt`\n * leaves parked runs out (the Fleet surface draws them in their own Gantt);\n * Command keeps them in, as outlines.\n */\nexport function laneRows(runs: readonly FleetLiveRun[], from: number, now: number, opts: { includeParked?: boolean } = {}): SwimlaneLane[] {\n const includeParked = opts.includeParked ?? true;\n const byLane = new Map<FleetEngine | 'none', FleetLiveRun[]>();\n for (const run of runs) {\n if (!includeParked && run.phase === 'parked') continue;\n const s = startOf(run);\n if (s === null) continue;\n const e = endOf(run) ?? now;\n if (e < from || s > now) continue;\n const key = run.lane ?? 'none';\n if (!byLane.has(key)) byLane.set(key, []);\n byLane.get(key)!.push(run);\n }\n const lanes: SwimlaneLane[] = [];\n for (const key of LANE_ORDER) {\n const list = byLane.get(key);\n if (!list?.length) continue;\n list.sort((a, b) => startOf(a)! - startOf(b)!);\n const slotEnds: number[] = [];\n const slotItems: FleetLiveRun[][] = [];\n for (const run of list) {\n const s = startOf(run)!;\n const e = endOf(run) ?? now;\n let slot = slotEnds.findIndex((end) => end <= s);\n if (slot === -1) {\n slot = slotEnds.length;\n slotEnds.push(e);\n slotItems.push([]);\n } else {\n slotEnds[slot] = e;\n }\n slotItems[slot]!.push(run);\n }\n const name = key === 'none' ? 'Unassigned' : LANE_LABEL[key];\n slotItems.forEach((items, i) => {\n lanes.push({\n id: `${key}:${i}`,\n label: slotItems.length > 1 ? `${name} · ${i + 1}` : name,\n ...(key === 'none' ? {} : { engine: LANE_ENGINE[key] }),\n items: items.map((run) => ({\n id: run.id,\n start: startOf(run)!,\n end: endOf(run),\n status: runStatus(run),\n detail: runDetail(run),\n })),\n });\n });\n }\n return lanes;\n}\n\nexport interface GanttRow {\n lanes: SwimlaneLane[];\n from: number;\n to: number;\n /** Rows whose release time is unknown (drawn open-ended). */\n unknownRelease: number;\n}\n\n/**\n * The Parked Gantt: one row per parked item, from when it parked to when its\n * seat should free up. The window always shows \"now\" plus the furthest known\n * release (capped at 48 h — a week-long wait still reads, it just runs off\n * the right edge and the table carries the exact time).\n */\nexport function parkedGantt(runs: readonly FleetLiveRun[], now: number): GanttRow {\n const parked = runs.filter((r) => r.phase === 'parked' || r.hold !== null);\n const releases = parked.map((r) => (r.hold?.nextEligibleAt ? Date.parse(r.hold.nextEligibleAt) : NaN)).filter(Number.isFinite);\n const starts = parked.map((r) => startOf(r) ?? now);\n const from = Math.min(now - 60 * 60_000, ...starts);\n const to = Math.min(now + 48 * 3_600_000, Math.max(now + 2 * 3_600_000, ...releases));\n let unknownRelease = 0;\n const lanes: SwimlaneLane[] = parked.map((r) => {\n const release = r.hold?.nextEligibleAt ? Date.parse(r.hold.nextEligibleAt) : NaN;\n if (!Number.isFinite(release)) unknownRelease++;\n const where = r.repo.includes('/') ? r.repo.split('/')[1] : r.repo;\n return {\n id: r.id,\n label: `${where}: ${r.title}`,\n ...(r.lane ? { engine: LANE_ENGINE[r.lane] } : {}),\n items: [{\n id: r.id,\n start: startOf(r) ?? now,\n end: Number.isFinite(release) ? release : null,\n status: r.hold?.kind === 'split' ? 'split' : 'parked',\n outline: true,\n detail: `${r.hold?.reason ?? 'parked'}${Number.isFinite(release) ? '' : ' · release time unknown'}`,\n }],\n };\n });\n return { lanes, from, to, unknownRelease };\n}\n\n// ---------------------------------------------------------------------------\n// Gate funnel + refusal reasons\n// ---------------------------------------------------------------------------\n\n/** Gate names in operator words (the funnel's stage labels). */\nexport const GATE_LABEL: Readonly<Record<string, string>> = {\n G0: 'Authority',\n G1: 'Protected paths',\n G1b: 'Tamper',\n G2: 'Scope',\n G3: 'Verify',\n G4: 'Claims',\n G5: 'Blast radius',\n G6: 'Judge',\n G7: 'GitHub checks',\n};\n\n/** Entered G0, then how many passed each gate — a strictly narrowing pipeline. */\nexport function funnelStages(funnel: FleetGateFunnel | null): FunnelStage[] {\n if (!funnel || funnel.stages.length === 0) return [];\n return [\n { id: 'entered', label: 'Proposals', value: funnel.stages[0]!.entered },\n ...funnel.stages.map((s) => ({ id: s.gate, label: `${s.gate} ${GATE_LABEL[s.gate] ?? ''}`.trim(), value: s.passed })),\n ];\n}\n\nexport interface RefusalStack {\n categories: string[];\n segments: BarStackSegment[];\n values: (number | null)[][];\n total: number;\n}\n\n/**\n * Refusals per gate, stacked by reason. The top five reasons (by count over\n * the window) keep FIXED identity slots — a reason's colour never changes\n * when another is filtered out — and the rest fold into a neutral \"Other\".\n */\nexport function refusalStack(funnel: FleetGateFunnel | null, topN = 5): RefusalStack {\n if (!funnel) return { categories: [], segments: [], values: [], total: 0 };\n const totals = new Map<string, { reason: string; count: number }>();\n for (const s of funnel.stages) for (const r of s.refusals) {\n const prev = totals.get(r.code);\n totals.set(r.code, { reason: prev?.reason ?? r.reason, count: (prev?.count ?? 0) + r.count });\n }\n const ranked = [...totals.entries()].sort((a, b) => b[1].count - a[1].count || a[0].localeCompare(b[0]));\n const top = ranked.slice(0, topN).map(([code]) => code);\n const hasOther = ranked.length > topN;\n const segments: BarStackSegment[] = [\n ...top.map((code, i) => ({ id: code, label: totals.get(code)!.reason, color: seriesColor(i) })),\n ...(hasOther ? [{ id: '__other', label: 'Other reasons', color: CHART_NEUTRAL }] : []),\n ];\n const stages = funnel.stages.filter((s) => s.refusals.length > 0 || s.entered !== s.passed);\n return {\n categories: stages.map((s) => s.gate),\n segments,\n values: stages.map((s) => {\n const row = top.map((code) => s.refusals.find((r) => r.code === code)?.count ?? 0);\n if (hasOther) row.push(s.refusals.filter((r) => !top.includes(r.code)).reduce((n, r) => n + r.count, 0));\n return row;\n }),\n total: ranked.reduce((n, [, v]) => n + v.count, 0),\n };\n}\n\n/** The newest seat decision behind a live dispatch (\"why this seat\"). */\nexport function latestDecision(fleet: FleetLiveSnapshotV1 | null): { decision: SeatDecision; run: FleetLiveRun } | null {\n if (!fleet) return null;\n const withDecision = fleet.runs.filter((r) => r.seatDecision !== null);\n if (!withDecision.length) return null;\n withDecision.sort((a, b) => (startOf(b) ?? 0) - (startOf(a) ?? 0));\n const run = withDecision[0]!;\n return { decision: run.seatDecision!, run };\n}\n"],"mappings":"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"}
@@ -1 +0,0 @@
1
- ._stack_1d5sx_5{gap:var(--surface-gap);flex-direction:column;display:flex}._muted_1d5sx_11{color:var(--text-tertiary);font-size:var(--text-xs-size);margin:0}._link_1d5sx_17{color:var(--text-link);font:inherit;font-size:var(--text-xs-size);cursor:pointer;background:0 0;border:0;align-self:flex-start;padding:0}._link_1d5sx_17:hover{text-decoration:underline}._link_1d5sx_17:focus-visible,._veto_1d5sx_33:focus-visible,._chip_1d5sx_34:focus-visible{outline:2px solid var(--border-focus);outline-offset:2px}._timeline_1d5sx_40{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}._memo_1d5sx_48{gap:var(--space-3);padding:var(--space-3) 0;border-top:1px solid var(--border-subtle);grid-template-columns:88px 20px minmax(0,1fr) auto;align-items:start;display:grid}._memo_1d5sx_48:first-child{border-top:0;padding-top:0}._memoDay_1d5sx_62{color:var(--text-tertiary);font-size:var(--text-xs-size);line-height:var(--text-sm-line);font-variant-numeric:tabular-nums}._mark_1d5sx_69{border-radius:var(--radius-full);background:var(--status-neutral-bg);width:20px;height:20px;color:var(--status-neutral-fg);font-size:var(--text-xs-size);font-weight:var(--font-weight-semibold);justify-content:center;align-items:center;display:inline-flex}._mark_1d5sx_69[data-outcome=hit]{background:var(--status-success-bg);color:var(--status-success-fg)}._mark_1d5sx_69[data-outcome=miss]{background:var(--status-danger-bg);color:var(--status-danger-fg)}._memoBody_1d5sx_92{flex-direction:column;gap:2px;min-width:0;display:flex}._memoMove_1d5sx_99{color:var(--text-primary);font-size:var(--text-sm-size);line-height:var(--text-sm-line);overflow-wrap:anywhere}._memoWhy_1d5sx_106{color:var(--text-secondary);font-size:var(--text-xs-size);line-height:var(--text-xs-line);overflow-wrap:anywhere}._memoMeta_1d5sx_113{color:var(--text-tertiary);font-size:var(--text-xs-size);line-height:var(--text-xs-line)}._memoMeta_1d5sx_113 [data-outcome=hit]{color:var(--status-success-fg)}._memoMeta_1d5sx_113 [data-outcome=miss]{color:var(--status-danger-fg)}._veto_1d5sx_33{min-height:var(--control-h-sm);padding:0 var(--space-3);border:1px solid var(--border-default);border-radius:var(--radius-sm);color:var(--text-primary);font:inherit;font-size:var(--text-xs-size);cursor:pointer;background:0 0}._veto_1d5sx_33:hover{background:var(--bg-hover)}._veto_1d5sx_33:disabled{color:var(--text-disabled);cursor:default}[data-viewport=compact] ._memo_1d5sx_48{grid-template-columns:20px minmax(0,1fr) auto}[data-viewport=compact] ._memoDay_1d5sx_62{grid-column:1/-1}._standards_1d5sx_157{gap:var(--space-3);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}._standards_1d5sx_157 li{flex-direction:column;gap:2px;display:flex}._standardRule_1d5sx_172{color:var(--text-primary);font-size:var(--text-sm-size);line-height:var(--text-sm-line-relaxed)}._standardMeta_1d5sx_178{color:var(--text-tertiary);font-size:var(--text-xs-size)}._insights_1d5sx_184{gap:var(--surface-gap);grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:0;list-style:none;display:grid}[data-viewport=compact] ._insights_1d5sx_184,[data-viewport=medium] ._insights_1d5sx_184{grid-template-columns:minmax(0,1fr)}._insight_1d5sx_184{gap:var(--space-2);padding:var(--card-pad);border:1px solid var(--border-subtle);border-radius:var(--radius-lg);background:var(--bg-surface);box-shadow:inset 0 1px 0 var(--hairline-lift,transparent);flex-direction:column;display:flex}._insight_1d5sx_184[data-severity=high]{border-color:var(--status-danger-solid)}._insightKind_1d5sx_213{justify-content:space-between;align-items:center;gap:var(--space-2);display:flex}._insightSeverity_1d5sx_220{color:var(--text-tertiary);font-size:var(--text-xs-size)}._insightSeverity_1d5sx_220[data-severity=high]{color:var(--status-danger-fg)}._insightSeverity_1d5sx_220[data-severity=warn]{color:var(--status-warning-fg)}._insightTitle_1d5sx_233{color:var(--text-primary);font-size:var(--text-sm-size);line-height:var(--text-sm-line-relaxed);overflow-wrap:anywhere}._insightMeta_1d5sx_240{color:var(--text-tertiary);font-size:var(--text-xs-size);line-height:var(--text-xs-line)}._log_1d5sx_246{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}._facet_1d5sx_254{align-items:center;gap:var(--space-2);color:var(--text-tertiary);font-size:var(--text-xs-size);display:inline-flex}._facet_1d5sx_254 select{min-height:var(--control-h-xs);padding:0 var(--space-2);border:1px solid var(--border-default);border-radius:var(--radius-sm);background:var(--bg-input);color:var(--text-primary);font:inherit;font-size:var(--text-xs-size)}._chipWrap_1d5sx_274{display:inline-flex;position:relative}._chip_1d5sx_34{align-items:center;gap:var(--space-1);min-height:var(--control-h-xs);padding:0 var(--space-2);border:1px solid var(--border-default);border-radius:var(--radius-full);background:var(--bg-surface);color:var(--text-secondary);font:inherit;font-size:var(--text-xs-size);white-space:nowrap;cursor:pointer;display:inline-flex}._chip_1d5sx_34:hover,._chip_1d5sx_34[aria-expanded=true]{background:var(--bg-hover);color:var(--text-primary)}._chipDot_1d5sx_301{border-radius:var(--radius-full);background:var(--status-warning-solid);width:6px;height:6px}._chipDot_1d5sx_301[data-severity=high]{background:var(--status-danger-solid)}._chipMore_1d5sx_312{color:var(--text-tertiary)}._chipPanel_1d5sx_316{top:calc(100% + var(--space-1));z-index:var(--z-dropdown);gap:var(--space-3);width:min(320px, calc(100vw - var(--space-8)));padding:var(--space-3);border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-surface-raised);box-shadow:var(--shadow-menu);flex-direction:column;display:flex;position:absolute;right:0}._chipList_1d5sx_332{gap:var(--space-2);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}._chipList_1d5sx_332 li{flex-direction:column;gap:2px;display:flex}
@@ -1,2 +0,0 @@
1
- import{_ as e}from"./colors-B-vHsX1S.js";var t=[`loop`,`struggle`,`verification-gap`,`uncertainty`,`backtrack`,`win`],n={loop:`Loops`,struggle:`Repeated failures`,"verification-gap":`Edits without tests`,uncertainty:`Uncertainty`,backtrack:`Backtracking`,win:`Wins`},r={claude:`Claude`,codex:`Codex`,grok:`Grok`,local:`Local`},i=[`claude`,`codex`,`grok`,`local`];function a(e){return i.includes(e)?e:null}function o(e){if(!e)return[];let t=new Map;for(let n of e.insights)n.repo&&t.set(n.repo,(t.get(n.repo)??0)+n.count);return[...t.entries()].sort((e,t)=>t[1]-e[1]||e[0].localeCompare(t[0])).map(([e])=>e)}function s(e,o){let s=t.map(e=>({id:e,label:n[e]}));if(!e)return{rows:s,columns:[],values:[]};let c=[...new Set([...Object.keys(e.totals.byEngine),...e.insights.map(e=>e.engine).filter(e=>!!e)])].sort((e,t)=>{let n=i.indexOf(e),r=i.indexOf(t);return(n===-1?99:n)-(r===-1?99:r)||e.localeCompare(t)}),l=c.map(e=>{let t=a(e);return{id:e,label:r[e]??e,...t?{engine:t}:{}}}),u=e.insights.filter(e=>o===null||e.repo===o);return{rows:s,columns:l,values:t.map(t=>c.map(n=>{let r=(e.totals.byEngine[n]??0)>0,i=u.filter(e=>e.kind===t&&e.engine===n).reduce((e,t)=>e+t.count,0);return r||i>0?i:null}))}}function c(e,t=3){if(!e)return[];let n={high:0,warn:1,info:2};return e.insights.filter(e=>e.kind!==`win`).sort((e,t)=>n[e.severity]-n[t.severity]||Date.parse(t.lastAt)-Date.parse(e.lastAt)).slice(0,t)}function l(t){if(!t)return[];let n=e=>t.trends.map(t=>({x:Date.parse(`${t.day}T00:00:00Z`),y:t.steps===0?null:e(t)}));return[{id:`struggles`,label:`Struggles`,color:e(`warning`),points:n(e=>e.struggles)},{id:`wins`,label:`Wins`,color:e(`success`),points:n(e=>e.wins)}]}var u=new Set([`loop`,`struggle`]);function d(e,t){return e.evidence.some(e=>e.ref.startsWith(`session:${t}#`)||e.ref.startsWith(`verse:${t}:`))}function f(e,t){return!e||!t?[]:e.insights.filter(e=>u.has(e.kind)&&d(e,t)).sort((e,t)=>Date.parse(t.lastAt)-Date.parse(e.lastAt))}var p={stack:`_stack_1d5sx_5`,muted:`_muted_1d5sx_11`,link:`_link_1d5sx_17`,veto:`_veto_1d5sx_33`,chip:`_chip_1d5sx_34`,timeline:`_timeline_1d5sx_40`,memo:`_memo_1d5sx_48`,memoDay:`_memoDay_1d5sx_62`,mark:`_mark_1d5sx_69`,memoBody:`_memoBody_1d5sx_92`,memoMove:`_memoMove_1d5sx_99`,memoWhy:`_memoWhy_1d5sx_106`,memoMeta:`_memoMeta_1d5sx_113`,standards:`_standards_1d5sx_157`,standardRule:`_standardRule_1d5sx_172`,standardMeta:`_standardMeta_1d5sx_178`,insights:`_insights_1d5sx_184`,insight:`_insight_1d5sx_184`,insightKind:`_insightKind_1d5sx_213`,insightSeverity:`_insightSeverity_1d5sx_220`,insightTitle:`_insightTitle_1d5sx_233`,insightMeta:`_insightMeta_1d5sx_240`,log:`_log_1d5sx_246`,facet:`_facet_1d5sx_254`,chipWrap:`_chipWrap_1d5sx_274`,chipDot:`_chipDot_1d5sx_301`,chipMore:`_chipMore_1d5sx_312`,chipPanel:`_chipPanel_1d5sx_316`,chipList:`_chipList_1d5sx_332`};export{l as a,o as i,n,f as o,s as r,c as s,p as t};
2
- //# sourceMappingURL=mind.module-BzhAlg3e.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mind.module-BzhAlg3e.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/mind/mind-model.ts","../../../../../../src/web-ui/routes/verse/mind/mind.module.css"],"sourcesContent":["/**\n * routes/verse/mind/mind-model.ts — the reasoning digest (A7) as Mind's\n * charts and cards, plus the chat-header chip's matching rule (unit C7;\n * SPEC-310B §6 Mind, SPEC-310C §5).\n *\n * The matrix is insight KIND × ENGINE, faceted by repo. A cell is:\n * - a count of insight occurrences when that engine produced reasoning in\n * the window (0 is a real zero: it reasoned and nothing was flagged);\n * - UNKNOWN (null) when that engine recorded no reasoning at all — nothing\n * was measured, so nothing can be said (hatched, never a pale zero).\n *\n * Framework-free; tested directly.\n */\nimport type { ReasoningDigest, ReasoningInsight, ReasoningInsightKind } from '../../../../core/reasoning/types.js';\nimport type { ChartEngine } from '../../../components/charts/colors.js';\nimport type { MatrixAxisItem } from '../../../components/charts/MatrixHeatmap.js';\nimport type { AreaTrendSeries } from '../../../components/charts/AreaTrend.js';\nimport { toneColor } from '../../../components/charts/colors.js';\n\nexport const INSIGHT_KINDS: readonly ReasoningInsightKind[] = ['loop', 'struggle', 'verification-gap', 'uncertainty', 'backtrack', 'win'];\n\nexport const KIND_LABEL: Readonly<Record<ReasoningInsightKind, string>> = {\n loop: 'Loops',\n struggle: 'Repeated failures',\n 'verification-gap': 'Edits without tests',\n uncertainty: 'Uncertainty',\n backtrack: 'Backtracking',\n win: 'Wins',\n};\n\nconst ENGINE_LABEL: Readonly<Record<string, string>> = { claude: 'Claude', codex: 'Codex', grok: 'Grok', local: 'Local' };\nconst KNOWN_ENGINES: readonly ChartEngine[] = ['claude', 'codex', 'grok', 'local'];\n\nfunction asEngine(name: string): ChartEngine | null {\n return (KNOWN_ENGINES as readonly string[]).includes(name) ? (name as ChartEngine) : null;\n}\n\n/** Repos that appear in the digest's insights, most insight occurrences first. */\nexport function insightRepos(digest: ReasoningDigest | null): string[] {\n if (!digest) return [];\n const counts = new Map<string, number>();\n for (const i of digest.insights) if (i.repo) counts.set(i.repo, (counts.get(i.repo) ?? 0) + i.count);\n return [...counts.entries()].sort((a, b) => b[1] - a[1] || a[0].localeCompare(b[0])).map(([r]) => r);\n}\n\nexport interface InsightMatrix {\n rows: MatrixAxisItem[];\n columns: MatrixAxisItem[];\n values: (number | null)[][];\n}\n\n/** `repo` null = every repo. */\nexport function insightMatrix(digest: ReasoningDigest | null, repo: string | null): InsightMatrix {\n const rows = INSIGHT_KINDS.map((k) => ({ id: k, label: KIND_LABEL[k] }));\n if (!digest) return { rows, columns: [], values: [] };\n // Columns: every engine that reasoned in the window, plus any engine an\n // insight names (so a count is never dropped), known engines first.\n const names = new Set<string>([...Object.keys(digest.totals.byEngine), ...digest.insights.map((i) => i.engine).filter((e): e is string => !!e)]);\n const ordered = [...names].sort((a, b) => {\n const ia = KNOWN_ENGINES.indexOf(a as ChartEngine);\n const ib = KNOWN_ENGINES.indexOf(b as ChartEngine);\n return (ia === -1 ? 99 : ia) - (ib === -1 ? 99 : ib) || a.localeCompare(b);\n });\n const columns: MatrixAxisItem[] = ordered.map((name) => {\n const engine = asEngine(name);\n return { id: name, label: ENGINE_LABEL[name] ?? name, ...(engine ? { engine } : {}) };\n });\n const insights = digest.insights.filter((i) => repo === null || i.repo === repo);\n const values = INSIGHT_KINDS.map((kind) =>\n ordered.map((engine) => {\n const measured = (digest.totals.byEngine[engine] ?? 0) > 0;\n const count = insights.filter((i) => i.kind === kind && i.engine === engine).reduce((n, i) => n + i.count, 0);\n return measured || count > 0 ? count : null;\n }),\n );\n return { rows, columns, values };\n}\n\n/** The three cards: most severe first, then most recent — wins are not problems. */\nexport function topInsights(digest: ReasoningDigest | null, n = 3): ReasoningInsight[] {\n if (!digest) return [];\n const rank = { high: 0, warn: 1, info: 2 } as const;\n return digest.insights\n .filter((i) => i.kind !== 'win')\n .sort((a, b) => rank[a.severity] - rank[b.severity] || Date.parse(b.lastAt) - Date.parse(a.lastAt))\n .slice(0, n);\n}\n\n/** Struggles vs wins per day, for the trends card. */\nexport function reasoningTrendSeries(digest: ReasoningDigest | null): AreaTrendSeries[] {\n if (!digest) return [];\n const pts = (pick: (d: ReasoningDigest['trends'][number]) => number) =>\n digest.trends.map((d) => ({ x: Date.parse(`${d.day}T00:00:00Z`), y: d.steps === 0 ? null : pick(d) }));\n return [\n { id: 'struggles', label: 'Struggles', color: toneColor('warning'), points: pts((d) => d.struggles) },\n { id: 'wins', label: 'Wins', color: toneColor('success'), points: pts((d) => d.wins) },\n ];\n}\n\n// ---------------------------------------------------------------------------\n// SessionInsightChip\n// ---------------------------------------------------------------------------\n\n/** The chip shows only the insight kinds that mean \"this chat is stuck\". */\nexport const CHIP_KINDS: ReadonlySet<ReasoningInsightKind> = new Set(['loop', 'struggle']);\n\n/**\n * Does `insight` cite chat `sessionId`? Verse evidence refs are\n * `session:<id>#<seq>` (tool / message events) or `verse:<id>:<turn|seq>`\n * (thinking steps) — A7's ingest-verse.ts. The id is matched exactly up to\n * its delimiter, so chat `s1` never matches `s12`.\n */\nexport function citesSession(insight: Pick<ReasoningInsight, 'evidence'>, sessionId: string): boolean {\n return insight.evidence.some((e) => e.ref.startsWith(`session:${sessionId}#`) || e.ref.startsWith(`verse:${sessionId}:`));\n}\n\nexport function sessionInsights(digest: ReasoningDigest | null, sessionId: string): ReasoningInsight[] {\n if (!digest || !sessionId) return [];\n return digest.insights\n .filter((i) => CHIP_KINDS.has(i.kind) && citesSession(i, sessionId))\n .sort((a, b) => Date.parse(b.lastAt) - Date.parse(a.lastAt));\n}\n","/*\n * routes/verse/mind/mind.module.css — Mind cards and the chat-header chip\n * (unit C7). Tokens only (style-scan-310).\n */\n.stack {\n display: flex;\n flex-direction: column;\n gap: var(--surface-gap);\n}\n\n.muted {\n margin: 0;\n color: var(--text-tertiary);\n font-size: var(--text-xs-size);\n}\n\n.link {\n align-self: flex-start;\n padding: 0;\n border: 0;\n background: none;\n color: var(--text-link);\n font: inherit;\n font-size: var(--text-xs-size);\n cursor: pointer;\n}\n\n.link:hover {\n text-decoration: underline;\n}\n\n.link:focus-visible,\n.veto:focus-visible,\n.chip:focus-visible {\n outline: 2px solid var(--border-focus);\n outline-offset: 2px;\n}\n\n/* ---- memo timeline ---------------------------------------------------- */\n.timeline {\n display: flex;\n flex-direction: column;\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.memo {\n display: grid;\n grid-template-columns: 88px 20px minmax(0, 1fr) auto;\n gap: var(--space-3);\n align-items: start;\n padding: var(--space-3) 0;\n border-top: 1px solid var(--border-subtle);\n}\n\n.memo:first-child {\n border-top: 0;\n padding-top: 0;\n}\n\n.memoDay {\n color: var(--text-tertiary);\n font-size: var(--text-xs-size);\n line-height: var(--text-sm-line);\n font-variant-numeric: tabular-nums;\n}\n\n.mark {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 20px;\n height: 20px;\n border-radius: var(--radius-full);\n background: var(--status-neutral-bg);\n color: var(--status-neutral-fg);\n font-size: var(--text-xs-size);\n font-weight: var(--font-weight-semibold);\n}\n\n.mark[data-outcome='hit'] {\n background: var(--status-success-bg);\n color: var(--status-success-fg);\n}\n\n.mark[data-outcome='miss'] {\n background: var(--status-danger-bg);\n color: var(--status-danger-fg);\n}\n\n.memoBody {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n\n.memoMove {\n color: var(--text-primary);\n font-size: var(--text-sm-size);\n line-height: var(--text-sm-line);\n overflow-wrap: anywhere;\n}\n\n.memoWhy {\n color: var(--text-secondary);\n font-size: var(--text-xs-size);\n line-height: var(--text-xs-line);\n overflow-wrap: anywhere;\n}\n\n.memoMeta {\n color: var(--text-tertiary);\n font-size: var(--text-xs-size);\n line-height: var(--text-xs-line);\n}\n\n.memoMeta [data-outcome='hit'] {\n color: var(--status-success-fg);\n}\n\n.memoMeta [data-outcome='miss'] {\n color: var(--status-danger-fg);\n}\n\n.veto {\n min-height: var(--control-h-sm);\n padding: 0 var(--space-3);\n border: 1px solid var(--border-default);\n border-radius: var(--radius-sm);\n background: transparent;\n color: var(--text-primary);\n font: inherit;\n font-size: var(--text-xs-size);\n cursor: pointer;\n}\n\n.veto:hover {\n background: var(--bg-hover);\n}\n\n.veto:disabled {\n color: var(--text-disabled);\n cursor: default;\n}\n\n[data-viewport='compact'] .memo {\n grid-template-columns: 20px minmax(0, 1fr) auto;\n}\n\n[data-viewport='compact'] .memoDay {\n grid-column: 1 / -1;\n}\n\n/* ---- standards -------------------------------------------------------- */\n.standards {\n display: flex;\n flex-direction: column;\n gap: var(--space-3);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.standards li {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.standardRule {\n color: var(--text-primary);\n font-size: var(--text-sm-size);\n line-height: var(--text-sm-line-relaxed);\n}\n\n.standardMeta {\n color: var(--text-tertiary);\n font-size: var(--text-xs-size);\n}\n\n/* ---- insight cards ---------------------------------------------------- */\n.insights {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: var(--surface-gap);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n[data-viewport='compact'] .insights,\n[data-viewport='medium'] .insights {\n grid-template-columns: minmax(0, 1fr);\n}\n\n.insight {\n display: flex;\n flex-direction: column;\n gap: var(--space-2);\n padding: var(--card-pad);\n border: 1px solid var(--border-subtle);\n border-radius: var(--radius-lg);\n background: var(--bg-surface);\n box-shadow: inset 0 1px 0 var(--hairline-lift, transparent);\n}\n\n.insight[data-severity='high'] {\n border-color: var(--status-danger-solid);\n}\n\n.insightKind {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--space-2);\n}\n\n.insightSeverity {\n color: var(--text-tertiary);\n font-size: var(--text-xs-size);\n}\n\n.insightSeverity[data-severity='high'] {\n color: var(--status-danger-fg);\n}\n\n.insightSeverity[data-severity='warn'] {\n color: var(--status-warning-fg);\n}\n\n.insightTitle {\n color: var(--text-primary);\n font-size: var(--text-sm-size);\n line-height: var(--text-sm-line-relaxed);\n overflow-wrap: anywhere;\n}\n\n.insightMeta {\n color: var(--text-tertiary);\n font-size: var(--text-xs-size);\n line-height: var(--text-xs-line);\n}\n\n.log {\n display: flex;\n flex-direction: column;\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.facet {\n display: inline-flex;\n align-items: center;\n gap: var(--space-2);\n color: var(--text-tertiary);\n font-size: var(--text-xs-size);\n}\n\n.facet select {\n min-height: var(--control-h-xs);\n padding: 0 var(--space-2);\n border: 1px solid var(--border-default);\n border-radius: var(--radius-sm);\n background: var(--bg-input);\n color: var(--text-primary);\n font: inherit;\n font-size: var(--text-xs-size);\n}\n\n/* ---- chat-header chip ------------------------------------------------- */\n.chipWrap {\n position: relative;\n display: inline-flex;\n}\n\n.chip {\n display: inline-flex;\n align-items: center;\n gap: var(--space-1);\n min-height: var(--control-h-xs);\n padding: 0 var(--space-2);\n border: 1px solid var(--border-default);\n border-radius: var(--radius-full);\n background: var(--bg-surface);\n color: var(--text-secondary);\n font: inherit;\n font-size: var(--text-xs-size);\n white-space: nowrap;\n cursor: pointer;\n}\n\n.chip:hover,\n.chip[aria-expanded='true'] {\n background: var(--bg-hover);\n color: var(--text-primary);\n}\n\n.chipDot {\n width: 6px;\n height: 6px;\n border-radius: var(--radius-full);\n background: var(--status-warning-solid);\n}\n\n.chipDot[data-severity='high'] {\n background: var(--status-danger-solid);\n}\n\n.chipMore {\n color: var(--text-tertiary);\n}\n\n.chipPanel {\n position: absolute;\n top: calc(100% + var(--space-1));\n right: 0;\n z-index: var(--z-dropdown);\n display: flex;\n flex-direction: column;\n gap: var(--space-3);\n width: min(320px, calc(100vw - var(--space-8)));\n padding: var(--space-3);\n border: 1px solid var(--border-default);\n border-radius: var(--radius-md);\n background: var(--bg-surface-raised);\n box-shadow: var(--shadow-menu);\n}\n\n.chipList {\n display: flex;\n flex-direction: column;\n gap: var(--space-2);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.chipList li {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n"],"mappings":"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"}
@@ -1,2 +0,0 @@
1
- import{D as e,P as t,at as n,it as r,u as i}from"./global-DVgMguLr.js";var a=class extends Error{constructor(){super(`No mutation token held for this session yet.`),this.name=`MissingMutationTokenError`}};async function o(n,r){let o=e();if(!o)throw new a;let s=await i(n,r,o);return t(),s}async function s(){await o(`/api/fleet/pause`,{}),r(`dashboard-snapshot`),r(`control-snapshot`),r(`fleet`),r(`fleet-activity`)}async function c(){await o(`/api/fleet/resume`,{}),r(`dashboard-snapshot`),r(`control-snapshot`),r(`fleet`),r(`fleet-activity`)}async function l(e){await o(`/api/inbox/${encodeURIComponent(e)}/approve`,{}),r(`inbox`),r(`dashboard-snapshot`),r(`proposal-detail-${e}`),n(`inbox-list:`)}async function u(e){await o(`/api/inbox/${encodeURIComponent(e)}/reject`,{}),r(`inbox`),r(`dashboard-snapshot`),r(`proposal-detail-${e}`),n(`inbox-list:`)}export{c as i,s as n,u as r,l as t};
2
- //# sourceMappingURL=mutations-C6E10SPX.js.map
@@ -1 +0,0 @@
1
- import"./global-DVgMguLr.js";import"./MutationTokenDialog-Dn0tzCrh.js";import"./Epistemic-BLjM5y_y.js";import"./StatusBadge-DAf-ArKE.js";import"./RouteErrorBoundary-AyUPCIb3.js";import"./RefreshIndicator-CnhEovMZ.js";import"./VerseConsoleApp-bjARLPwN.js";import"./Segmented-B_8c_83S.js";import"./Tag-DEEbDz7T.js";import"./Button-0-nNbv1h.js";import"./EmptyState-DdJ4CxtO.js";import"./Meter-C18ciKz4.js";import"./Slider-BS9MU5ZV.js";import"./Switch-BzRXtNPt.js";import"./Select-Bl5g5Dt_.js";import"./Input-CTu0CycC.js";import"./Sheet-CVjk-cLI.js";
@@ -1,2 +0,0 @@
1
- import{g as e,r as t,v as n,y as r}from"./verse-model-E98kXngO.js";var i={ready:`ready`,tight:`tight`,exhausted:`blocked`,"signed-out":`blocked`,unknown:`unread`};function a(e){let t=new Date(e);if(Number.isNaN(t.getTime()))return null;let n=t.toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`});return new Date().toDateString()===t.toDateString()?`resets ${n}`:`resets ${t.toLocaleDateString([],{month:`short`,day:`numeric`})} at ${n}`}function o(e,t){let n=`${e}_`,i=t;for(;i.startsWith(n)&&i.length>n.length;)i=i.slice(n.length);return r(i)}function s(e,t){let n=t.resetDescription??(t.resetsAt===null?null:a(t.resetsAt));return{id:t.id,label:o(e,t.id),usedPercent:t.limitReached||!t.measured?null:t.usedPercent,limitReached:t.limitReached,resetText:n,resetsAt:t.resetsAt}}function c(e){let t=typeof e.usedPercent==`number`&&Number.isFinite(e.usedPercent)?Math.max(0,Math.min(100,e.usedPercent)):null,n=t!==null&&t>=100;return{id:e.id,label:r(e.id),usedPercent:n?null:t,limitReached:n,resetText:e.resetsAt===null?null:a(e.resetsAt),resetsAt:e.resetsAt}}function l(e){if(e===null)return{phrase:null,title:null};if(e.unlimited)return{phrase:`credits unlimited`,title:null};if(!e.hasCredits)return{phrase:null,title:null};if(e.balance===null)return{phrase:`credits available`,title:null};let t=Number.parseFloat(e.balance);return Number.isFinite(t)?{phrase:`${t.toFixed(2)} credits left`,title:e.balance}:{phrase:`credits available`,title:e.balance}}function u(e){let r=n(e),i=e.health.state===`ready`,a=r===null?i?`ready`:`unread`:`blocked`;return{kind:`local`,plan:null,cls:a,word:t[a],summary:r??(i?`runs on this machine`:`readiness not reported`),binding:null,others:[],credits:null,creditsTitle:null,notes:e.health.summary===null?[]:[e.health.summary],evidenceSource:null,observedAt:e.health.observedAt,extended:!1}}function d(r){let i=e(r),a=r.health.windows.map(c),o=a.find(e=>e.limitReached)??null,s=a.filter(e=>e.usedPercent!==null),l=s.length===0?null:s.reduce((e,t)=>(t.usedPercent??0)>(e.usedPercent??0)?t:e),u=o??l,d=n(r),f=d===null?i.cls:`blocked`;return{kind:`subscription`,plan:null,cls:f,word:t[f],summary:d??i.text,binding:u,others:u===null?a:a.filter(e=>e.id!==u.id),credits:null,creditsTitle:null,notes:[],evidenceSource:null,observedAt:r.health.observedAt,extended:!1}}function f(e){if(e.engine===`local`)return u(e);let r=e.capacity;if(r===void 0)return d(e);let a=r.windows.map(t=>s(e.engine,t)),o=r.binding,c=o===null?null:a.find(e=>e.id===o.id)??s(e.engine,o),f=c===null?a:a.filter(e=>e.id!==c.id),p=l(r.credits),m=n(e),h=m===null?i[r.usability]:`blocked`,g;return g=r.usability===`signed-out`?`signed out — reconnect this account`:m===null?c===null?`no capacity reading`:c.limitReached?r.usability===`tight`&&p.phrase!==null?`${c.label} limit reached · credits still spendable`:`${c.label} limit reached`:c.usedPercent===null?`no capacity reading`:`${Math.round(c.usedPercent)}% of ${c.label} used`:m,{kind:`subscription`,plan:r.planType,cls:h,word:t[h],summary:g,binding:c,others:f,credits:p.phrase,creditsTitle:p.title,notes:[...r.notes],evidenceSource:r.evidenceSource,observedAt:r.observedAt??e.health.observedAt,extended:!0}}function p(e,t){let n=[e.label];return t.plan!==null&&n.push(t.plan),n.push(t.word),n.push(t.summary),t.credits!==null&&n.push(t.credits),t.binding?.resetText!=null&&n.push(t.binding.resetText),n.join(` · `)}function m(e){return e===`tight`||e===`blocked`}export{p as n,m as r,f as t};
2
- //# sourceMappingURL=seat-subscription-CrWOV4Qc.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"seat-subscription-CrWOV4Qc.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/seat-subscription.ts"],"sourcesContent":["/**\n * routes/verse/seat-subscription.ts — \"what subscription is behind this seat,\n * and how much of it is left\", projected ONCE for every chat surface that\n * shows a seat: the resources panel, the seat selector, the new-chat dialog,\n * the sidebar and the chat header.\n *\n * WHY THIS MODULE EXISTS\n *\n * The resources panel showed a bare \"unknown\" pill for every account — the\n * most-looked-at surface in the app. Measured against a live server,\n * `GET /api/verse/accounts` had all four accounts observed, Claude with three\n * windows and Grok with one, while `bootstrap.seats[].health` was `unknown`\n * forever for Claude and Grok: seat health came from a shared-evidence file\n * scoped `codex-native-metadata`, which structurally cannot carry those two\n * providers. The live data existed and was discarded at the last hop.\n *\n * Owner S's V2.1 contract fixes the supply side — `VerseSeat.capacity`\n * (core/verse/types.ts) now carries the plan, the binding window, the full\n * window list, credits, a usability verdict, the evidence source and the\n * provider's own notes. This module is the single place the chat surfaces\n * read it, so they cannot describe one seat four different ways.\n *\n * TWO SOURCES, ONE VIEW. `capacity` is `undefined` for local seats (an Ollama\n * tag has no subscription) and for a native seat the server could not build a\n * record for. The V1 `health.windows` shape is still read as the fallback, and\n * on that path the verdict is delegated WHOLESALE to\n * `verse-model.seatCapacity` — the seat selector and the composer's seat menu\n * already render those exact words, and two implementations of one rule is\n * how the picker and the panel would drift apart again.\n *\n * HONESTY RULES (docs/VERSE-TELEMETRY-V2.md, closing section) — every one is a\n * place where the obvious projection would lie:\n *\n * 1. THE BINDING WINDOW LEADS. An account is blocked by its WORST window, not\n * its first and not its average. Claude's weekly per-model window sat at\n * 100% while all-models read 58%; leading with 58% is a lie of emphasis.\n * 2. NO SIGNAL IS NOT ZERO. An unread window gets no meter at all. An empty\n * bar reads \"plenty left\" and a full one reads \"exhausted\"; both are false\n * when nothing was measured.\n * 3. THE SENTINEL 100 IS A FLAG. Codex writes `rateLimitReachedType` upstream\n * as the value 100. `measured: false` marks it; it renders as \"limit\n * reached\", never as \"100% used\", and carries no percentage.\n * 4. CREDITS ARE NOT THE WINDOW. A Codex account at 100% of its weekly window\n * with a spendable balance is still usable. The server already encodes\n * that in `usability: 'tight'`; this module reports both facts and never\n * collapses them into one.\n * 5. ONLY A MACHINE-READABLE INSTANT MAY BE FORMATTED. Claude's `resetsAt` is\n * structurally always null and its reset is provider prose; prose is\n * rendered VERBATIM, never parsed and never turned into a countdown.\n *\n * Pure: no React, no I/O.\n */\nimport type { VerseEngine, VerseSeat } from '../../data/api-types.js';\nimport {\n SEAT_CAPACITY_WORD,\n seatCapacity,\n seatUnavailableReason,\n seatWindowLabel,\n type SeatCapacityClass,\n} from './verse-model.js';\n\nexport type { SeatCapacityClass };\n\n/**\n * Owner S's shapes, reached through `VerseSeat` rather than imported by name.\n *\n * This is the drift guard, and it costs nothing: rename or reshape\n * `VerseSeatCapacity` in core/verse/types.ts and every read below stops\n * compiling HERE, at the seam, instead of silently degrading the panel back to\n * the \"unknown\" it was built to fix.\n */\ntype SeatCapacityRecord = NonNullable<VerseSeat['capacity']>;\ntype SeatCapacityWindow = SeatCapacityRecord['windows'][number];\n\n/** One quota window, in the shape every chat surface renders. */\nexport interface SeatWindowView {\n id: string;\n /** Human label, derived from the provider's id. */\n label: string;\n /**\n * 0–100, or null. Null means \"no reading\" OR \"the figure is a sentinel\".\n * NEVER a substituted zero, and a view must not draw a meter for it.\n */\n usedPercent: number | null;\n /** The provider flagged the limit instead of measuring it. */\n limitReached: boolean;\n /**\n * Reset text, ready to render: provider prose VERBATIM when that is what the\n * provider published, a formatted local time when — and only when — it gave\n * a machine-readable instant, null when it gave neither.\n */\n resetText: string | null;\n /**\n * The machine-readable reset instant (ISO), when there was one. The only\n * field a countdown could ever legitimately be derived from; nothing in the\n * chat surfaces derives one today.\n */\n resetsAt: string | null;\n}\n\nexport interface SeatSubscriptionView {\n /**\n * Local seats have no subscription, no quota and no bill — only a readiness\n * — and must not be dressed in meters that imply otherwise.\n */\n kind: 'subscription' | 'local';\n /** Plan tier as the provider names it: \"max\", \"pro\", \"SuperGrok\". */\n plan: string | null;\n cls: SeatCapacityClass;\n /** The class as a word. State is never communicated by colour alone. */\n word: string;\n /**\n * One short phrase for an option label, a pill title or a menu row —\n * \"92% of weekly fable window used\", \"primary window limit reached\".\n */\n summary: string;\n /** The window that actually constrains work. Null when nothing was read. */\n binding: SeatWindowView | null;\n /** Every other window, in provider order. */\n others: SeatWindowView[];\n /** Codex credits as a rendered phrase. Independent of the window. */\n credits: string | null;\n /** The provider's raw balance string, kept verbatim for a title attribute. */\n creditsTitle: string | null;\n /**\n * The provider's own plain-language facts. Owner S's contract says these\n * must be SHOWN rather than left to imply a fault, so they travel here and\n * the panel prints them.\n */\n notes: string[];\n /**\n * Where the windows came from, so nothing implies freshness it lacks.\n * Null on the V1 fallback path, which has no provenance to report.\n */\n evidenceSource: SeatCapacityRecord['evidenceSource'] | null;\n /** When the reading was taken, ISO. Null when nothing was observed. */\n observedAt: string | null;\n /** True when the seat carried owner S's `capacity` record. */\n extended: boolean;\n}\n\n/**\n * S's five-state verdict, mapped onto the four words this app already uses.\n *\n * `signed-out` is BLOCKED-by-action, not unread: we know exactly why there is\n * no capacity and what to do about it. `unknown` is the only genuinely unread\n * state — nobody told us anything, and calling that blocked would assert an\n * outage we never observed.\n *\n * Typed as a total map over S's union, so adding a verdict upstream fails the\n * build here rather than falling through to a silent default.\n */\nconst USABILITY_CLASS: Record<SeatCapacityRecord['usability'], SeatCapacityClass> = {\n ready: 'ready',\n tight: 'tight',\n exhausted: 'blocked',\n 'signed-out': 'blocked',\n unknown: 'unread',\n};\n\n/**\n * A machine-readable instant, formatted. Prose resets never reach this — they\n * are passed through untouched, because the provider's sentence already\n * carries the timezone it means and reformatting it would be a guess.\n */\nexport function formatResetInstant(iso: string): string | null {\n const at = new Date(iso);\n if (Number.isNaN(at.getTime())) return null;\n const clock = at.toLocaleTimeString([], { hour: 'numeric', minute: '2-digit' });\n if (new Date().toDateString() === at.toDateString()) return `resets ${clock}`;\n return `resets ${at.toLocaleDateString([], { month: 'short', day: 'numeric' })} at ${clock}`;\n}\n\n/**\n * Window ids arrive provider-prefixed and sometimes doubly so\n * (`codex_codex_primary`, `grok_unified_weekly`). Strip the engine's own name\n * off the front before handing the rest to the shared labeller, so the panel\n * reads \"primary window\" rather than \"codex codex primary window\".\n *\n * Only the `capacity` path uses this. The V1 fallback goes through\n * `seatWindowLabel` unaltered, because the seat selector's wording is pinned\n * to it by test.\n */\nexport function seatCapacityWindowLabel(engine: VerseEngine, id: string): string {\n const prefix = `${engine}_`;\n let rest = id;\n while (rest.startsWith(prefix) && rest.length > prefix.length) rest = rest.slice(prefix.length);\n return seatWindowLabel(rest);\n}\n\nfunction toWindowView(engine: VerseEngine, w: SeatCapacityWindow): SeatWindowView {\n const reset = w.resetDescription ?? (w.resetsAt === null ? null : formatResetInstant(w.resetsAt));\n return {\n id: w.id,\n label: seatCapacityWindowLabel(engine, w.id),\n // A flagged limit, and any unmeasured figure, is a sentinel — not a reading.\n usedPercent: w.limitReached || !w.measured ? null : w.usedPercent,\n limitReached: w.limitReached,\n resetText: reset,\n resetsAt: w.resetsAt,\n };\n}\n\n/** The V1 `health.windows` shape, for a seat with no `capacity` record. */\nfunction legacyWindowView(w: VerseSeat['health']['windows'][number]): SeatWindowView {\n const used = typeof w.usedPercent === 'number' && Number.isFinite(w.usedPercent)\n ? Math.max(0, Math.min(100, w.usedPercent))\n : null;\n // Upstream writes a denial as 100, so on this shape a bare 100 cannot be\n // told apart from a measured 100 — and the safe reading of both is \"spent\".\n const flagged = used !== null && used >= 100;\n return {\n id: w.id,\n label: seatWindowLabel(w.id),\n usedPercent: flagged ? null : used,\n limitReached: flagged,\n resetText: w.resetsAt === null ? null : formatResetInstant(w.resetsAt),\n resetsAt: w.resetsAt,\n };\n}\n\nfunction creditsPhrase(credits: SeatCapacityRecord['credits']): { phrase: string | null; title: string | null } {\n if (credits === null) return { phrase: null, title: null };\n if (credits.unlimited) return { phrase: 'credits unlimited', title: null };\n if (!credits.hasCredits) return { phrase: null, title: null };\n if (credits.balance === null) return { phrase: 'credits available', title: null };\n const parsed = Number.parseFloat(credits.balance);\n if (!Number.isFinite(parsed)) return { phrase: 'credits available', title: credits.balance };\n // The provider publishes a long decimal (\"2048.4196250000\"). Two places is a\n // rendering choice, not a new number — the raw string rides in the title.\n return { phrase: `${parsed.toFixed(2)} credits left`, title: credits.balance };\n}\n\nfunction localView(seat: VerseSeat): SeatSubscriptionView {\n const unavailable = seatUnavailableReason(seat);\n const ready = seat.health.state === 'ready';\n const cls: SeatCapacityClass = unavailable !== null ? 'blocked' : ready ? 'ready' : 'unread';\n return {\n kind: 'local',\n plan: null,\n cls,\n word: SEAT_CAPACITY_WORD[cls],\n summary: unavailable ?? (ready ? 'runs on this machine' : 'readiness not reported'),\n binding: null,\n others: [],\n credits: null,\n creditsTitle: null,\n notes: seat.health.summary === null ? [] : [seat.health.summary],\n evidenceSource: null,\n observedAt: seat.health.observedAt,\n extended: false,\n };\n}\n\n/** The V1 path: no `capacity` record, so the V1 rule decides, unchanged. */\nfunction fallbackView(seat: VerseSeat): SeatSubscriptionView {\n const legacy = seatCapacity(seat);\n const windows = seat.health.windows.map(legacyWindowView);\n const flagged = windows.find((w) => w.limitReached) ?? null;\n const measured = windows.filter((w) => w.usedPercent !== null);\n const worst = measured.length === 0\n ? null\n : measured.reduce((a, b) => ((b.usedPercent ?? 0) > (a.usedPercent ?? 0) ? b : a));\n const binding = flagged ?? worst;\n const unavailable = seatUnavailableReason(seat);\n const cls = unavailable !== null ? 'blocked' : legacy.cls;\n return {\n kind: 'subscription',\n plan: null,\n cls,\n word: SEAT_CAPACITY_WORD[cls],\n summary: unavailable ?? legacy.text,\n binding,\n others: binding === null ? windows : windows.filter((w) => w.id !== binding.id),\n credits: null,\n creditsTitle: null,\n notes: [],\n evidenceSource: null,\n observedAt: seat.health.observedAt,\n extended: false,\n };\n}\n\n/**\n * The whole projection. Local seats short-circuit: they have no subscription,\n * so everything below the readiness line is deliberately empty rather than\n * zeroed.\n */\nexport function seatSubscription(seat: VerseSeat): SeatSubscriptionView {\n if (seat.engine === 'local') return localView(seat);\n const capacity = seat.capacity;\n if (capacity === undefined) return fallbackView(seat);\n\n const windows = capacity.windows.map((w) => toWindowView(seat.engine, w));\n // Resolve the server's CHOICE of binding window back to this seat's own\n // view of it, so the two can never disagree about a reset or a label.\n const served = capacity.binding;\n const binding = served === null\n ? null\n : (windows.find((w) => w.id === served.id) ?? toWindowView(seat.engine, served));\n const others = binding === null ? windows : windows.filter((w) => w.id !== binding.id);\n const credits = creditsPhrase(capacity.credits);\n\n const unavailable = seatUnavailableReason(seat);\n const cls: SeatCapacityClass = unavailable !== null ? 'blocked' : USABILITY_CLASS[capacity.usability];\n\n let summary: string;\n // Signed out is checked FIRST, before the generic unavailable reason: owner\n // S maps `signed-out` onto `health.state: 'unavailable'` (it is the one\n // account state worth a red dot, because it has a remedy), and the generic\n // reason there is a bare \"seat unavailable\" that says nothing about the fix.\n // A signed-out account has no measurement at all — it is an action, never a\n // 0% meter and never a bare \"unknown\".\n if (capacity.usability === 'signed-out') {\n summary = 'signed out — reconnect this account';\n } else if (unavailable !== null) {\n summary = unavailable;\n } else if (binding === null) {\n summary = 'no capacity reading';\n } else if (binding.limitReached) {\n // The server already weighed credits against the spent window; `tight`\n // there means \"spent, but there is still something to spend\".\n summary = capacity.usability === 'tight' && credits.phrase !== null\n ? `${binding.label} limit reached · credits still spendable`\n : `${binding.label} limit reached`;\n } else if (binding.usedPercent === null) {\n summary = 'no capacity reading';\n } else {\n summary = `${Math.round(binding.usedPercent)}% of ${binding.label} used`;\n }\n\n return {\n kind: 'subscription',\n plan: capacity.planType,\n cls,\n word: SEAT_CAPACITY_WORD[cls],\n summary,\n binding,\n others,\n credits: credits.phrase,\n creditsTitle: credits.title,\n notes: [...capacity.notes],\n evidenceSource: capacity.evidenceSource,\n observedAt: capacity.observedAt ?? seat.health.observedAt,\n extended: true,\n };\n}\n\n/**\n * How much of a freshness claim the evidence supports. A reading served from\n * another process's shared file, or from an operator-seeded baseline, is not\n * a live probe and must not be presented as one.\n */\nexport function evidenceNote(source: SeatSubscriptionView['evidenceSource']): string | null {\n switch (source) {\n case 'collector':\n return null;\n case 'shared-evidence':\n return 'read from another collector’s shared evidence, not probed here';\n case 'baseline':\n return 'operator-seeded baseline, not a live reading';\n case 'none':\n return 'no evidence source — nothing here was measured';\n default:\n return null;\n }\n}\n\n/**\n * One sentence for a `title` attribute or a screen-reader name: the seat, its\n * plan, its verdict and the evidence behind it.\n */\nexport function seatSubscriptionSentence(seat: VerseSeat, view: SeatSubscriptionView): string {\n const parts = [seat.label];\n if (view.plan !== null) parts.push(view.plan);\n parts.push(view.word);\n parts.push(view.summary);\n if (view.credits !== null) parts.push(view.credits);\n if (view.binding?.resetText != null) parts.push(view.binding.resetText);\n return parts.join(' · ');\n}\n\n/** Tight and blocked are worth surfacing outside the panel; the rest is noise. */\nexport function worthFlagging(cls: SeatCapacityClass): boolean {\n return cls === 'tight' || cls === 'blocked';\n}\n"],"mappings":"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"}
@@ -1,3 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PreviewPane-Cx6RRwzM.js","assets/index-afDA8cwW.js","assets/global-DVgMguLr.js","assets/global-_tOCFt9y.css","assets/workbench-types-DzN-5trg.js","assets/viewport-ZB86jdES.js","assets/section-visibility-CSrsTcwK.js","assets/icons-DWb24OA6.js","assets/MessageMarkdown-C4pl9LI5.js","assets/MessageMarkdown-Czcl3L_Q.css","assets/Segmented-B_8c_83S.js","assets/Segmented-BnjHbKzH.css","assets/Button-0-nNbv1h.js","assets/Button-DrnKsvnQ.css","assets/EmptyState-DdJ4CxtO.js","assets/EmptyState-B3YUPGaa.css","assets/terminal-icons-CxUYaWX9.js","assets/PreviewPane-WQJFjSXe.css","assets/TerminalPane-CPKUTD9K.js","assets/command-catalog-s3W6Z96D.js","assets/ActionMenu-DhbNne-M.js","assets/ActionMenu-DPjsLU1g.css","assets/TerminalPane-CmE2QL-Q.css","assets/BranchBar-C-NovaXr.js","assets/MutationTokenDialog-Dn0tzCrh.js","assets/MutationTokenDialog-Cum_DqQZ.css","assets/command-bus-CpYuam1F.js","assets/git-model-5v5xGobf.js","assets/verse-queries-BjQoOTwv.js","assets/use-token-gate-DYA2-ALC.js","assets/BranchBar-C9BpPVLr.css","assets/DiffPane-5uLKa0au.js","assets/highlight-CMCZK9jW.js","assets/line-diff-B5Eonif2.js","assets/DiffPane-Csboxnn0.css","assets/SessionInsightChip-w0I21q0c.js","assets/VerseConsoleApp-bjARLPwN.js","assets/RouteErrorBoundary-AyUPCIb3.js","assets/RouteErrorBoundary-6RMd_aZg.css","assets/guarded-action-vOPc8v75.js","assets/verse-ui-store-KTTKfv-T.js","assets/dock-store-_E5h6TEq.js","assets/composer-keys-CYz4U4Bg.js","assets/useActivity-Cg_9-7nt.js","assets/VerseConsoleApp-C0V221WL.css","assets/format-BNYWGJat.js","assets/surface-data-ZtCegYMQ.js","assets/control-queries-BGjarMm9.js","assets/mutations-C6E10SPX.js","assets/mind.module-BzhAlg3e.js","assets/colors-B-vHsX1S.js","assets/mind-B-lYfSUJ.css"])))=>i.map(i=>d[i]);
2
- import{a as e,n as t,s as n,t as r}from"./index-afDA8cwW.js";import{t as i}from"./Button-0-nNbv1h.js";import{t as a}from"./EmptyState-DdJ4CxtO.js";var o=n(e(),1),s=t(),c={"branch-bar":{path:`git/BranchBar.tsx`,exportName:`BranchBar`,owner:`C5`,kind:`inline`,label:`Branch bar`},"diff-pane":{path:`git/DiffPane.tsx`,exportName:`DiffPane`,owner:`C5`,kind:`pane`,label:`Review`},"terminal-pane":{path:`dock/terminal/TerminalPane.tsx`,exportName:`TerminalPane`,owner:`C4`,kind:`pane`,label:`Terminal`},"preview-pane":{path:`dock/preview/PreviewPane.tsx`,exportName:`PreviewPane`,owner:`C4`,kind:`pane`,label:`Preview`},"session-insight-chip":{path:`mind/SessionInsightChip.tsx`,exportName:`SessionInsightChip`,owner:`C7`,kind:`inline`,label:`Insight`}};Object.keys(c);var l=Object.assign({"../dock/preview/PreviewPane.tsx":()=>r(()=>import(`./PreviewPane-Cx6RRwzM.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17])),"../dock/terminal/TerminalPane.tsx":()=>r(()=>import(`./TerminalPane-CPKUTD9K.js`),__vite__mapDeps([18,1,2,3,19,4,5,6,7,20,21,12,13,14,15,16,22])),"../git/BranchBar.tsx":()=>r(()=>import(`./BranchBar-C-NovaXr.js`),__vite__mapDeps([23,1,24,2,3,25,5,26,6,7,27,28,4,12,13,29,30])),"../git/DiffPane.tsx":()=>r(()=>import(`./DiffPane-5uLKa0au.js`),__vite__mapDeps([31,1,2,3,32,7,10,11,27,28,4,33,14,15,34])),"../mind/SessionInsightChip.tsx":()=>r(()=>import(`./SessionInsightChip-w0I21q0c.js`),__vite__mapDeps([35,1,2,3,36,37,24,25,38,19,4,39,5,40,41,28,42,26,6,43,7,44,45,46,47,48,49,50,51]))});function u(e,t){return t[`../${c[e].path}`]}function d(e,t=l){return u(e,t)!==void 0}function f(e,t=l){let n=u(e,t);if(!n)return null;let{exportName:r}=c[e];return(0,o.lazy)(async()=>{let t=(await n())[r];if(typeof t!=`function`&&(typeof t!=`object`||!t))throw Error(`${c[e].path} exports no ${r}`);return{default:t}})}var p=new Map;function m(e){return p.has(e)||p.set(e,f(e)),p.get(e)}var h=class extends o.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(e,t){console.error(`[verse] ${this.props.label} failed`,e,t.componentStack)}render(){return this.state.failed?this.props.kind===`inline`?null:(0,s.jsx)(g,{label:this.props.label,onRetry:this.props.onRetry}):this.props.children}};function g({label:e,onRetry:t}){return(0,s.jsx)(a,{compact:!0,tone:`error`,title:`${e} could not load`,body:`The rest of the chat still works.`,action:(0,s.jsx)(i,{variant:`subtle`,size:`sm`,onClick:t,children:`Try again`})})}function _({id:e,props:t,resolve:n=m,forget:r=e=>p.delete(e)}){let[i,a]=(0,o.useState)(0),l=n(e);if(!l)return null;let{kind:u,label:d}=c[e];return(0,s.jsx)(h,{kind:u,label:d,onRetry:()=>{r(e),a(e=>e+1)},children:(0,s.jsx)(o.Suspense,{fallback:null,children:(0,s.jsx)(l,{...t})})},i)}function v(e){return(0,s.jsx)(_,{id:`branch-bar`,props:e})}function y(e){return(0,s.jsx)(_,{id:`diff-pane`,props:e})}function b(e){return(0,s.jsx)(_,{id:`terminal-pane`,props:e})}function x(e){return(0,s.jsx)(_,{id:`preview-pane`,props:e})}function S(e){return(0,s.jsx)(_,{id:`session-insight-chip`,props:e})}export{b as a,S as i,y as n,d as o,x as r,v as t};
3
- //# sourceMappingURL=slots-W8gkmdfE.js.map
@@ -1,2 +0,0 @@
1
- import{D as e,P as t,it as n,l as r,s as i,u as a}from"./global-DVgMguLr.js";import{r as o}from"./useActivity-Cg_9-7nt.js";import{n as s}from"./control-queries-BGjarMm9.js";var c=`/api/verse/authority`,l=`/api/verse/authority/draft`,u=`/api/verse/fleet/live`,d=`/api/verse/leader`,f=`/api/verse/learning`,p=`/api/verse/fleet/history?days=90`,m=`/api/reasoning/digest?days=30`,h=Object.freeze({authority:`verse-authority`,authorityDraft:`verse-authority-draft`,fleetLive:`verse-fleet-live`,leader:`verse-leader`,learning:`verse-learning`,fleetHistory:`verse-fleet-history-90d`,reasoningDigest:`verse-reasoning-digest-30d`});function g(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var _={authority(e){return g(e)&&e.v===1&&typeof e.switch==`string`&&g(e.grant)?e:null},draft(e){return g(e)&&g(e.payload)&&typeof e.digest==`string`?e:null},fleetLive(e){return g(e)&&e.v===1&&Array.isArray(e.runs)&&Array.isArray(e.repos)&&Array.isArray(e.lanes)&&g(e.summary)?e:null},leader(e){return g(e)&&e.v===1&&Array.isArray(e.timeline)&&Array.isArray(e.actions)&&g(e.hitRate)?e:null},learning(e){return g(e)&&e.v===1&&Array.isArray(e.versions)&&Array.isArray(e.experiments)?e:null},activity(e){return g(e)&&Array.isArray(e.needsYou)&&Array.isArray(e.running)&&g(e.sources)?e:null},fleetHistory(e){return g(e)&&Array.isArray(e.days)&&g(e.sources)&&g(e.funnel)?e:null},reasoningDigest(e){return g(e)&&Array.isArray(e.insights)&&Array.isArray(e.trends)&&g(e.totals)?e:null}};function v(e,t){return t instanceof i?t.status===404?`${e} is not in this build yet, so this card has no source.`:t.status===503?`${e} failed to load on the server.`:`${e} answered HTTP ${t.status}.`:`${e} could not be reached.`}function y(e,t,n,a){return{key:e,fetch:async e=>{try{let i=a(await r(t,e));return i===null?{value:null,available:!0,reason:`${n} answered in a shape this version does not recognise, so nothing is shown rather than guessed.`}:{value:i,available:!0,reason:null}}catch(e){if(e instanceof i&&e.status===401||e instanceof DOMException&&e.name===`AbortError`)throw e;return{value:null,available:!1,reason:v(n,e)}}}}}var b=y(h.authority,c,`The authority service`,_.authority),x=y(h.authorityDraft,l,`The grant draft`,_.draft),S=y(h.fleetLive,u,`The live fleet view`,_.fleetLive),C=y(h.leader,d,`The Leader`,_.leader),w=y(h.learning,f,`Self-improvement`,_.learning),T=y(h.fleetHistory,p,`Fleet history`,_.fleetHistory),E=y(h.reasoningDigest,m,`The reasoning digest`,_.reasoningDigest);async function D(n,r){let i=e();if(!i)throw new s;let o=await a(n,r,i);return t(),o}async function O(e){let t=await D(c,e);return n(h.authority),n(h.fleetLive),o(),(e.action===`grant`||e.action===`re-approve`)&&n(h.authorityDraft),_.authority(t)}async function k(e){let t=await D(u,e);return n(h.fleetLive),o(),t}async function A(e){let t=await D(d,e);return n(h.leader),o(),t}async function j(e,t){if(!/^\/api\/[^\s\\]*$/.test(e)||e.startsWith(`//`)||e.includes(`..`))throw Error(`That action points outside this app, so it was not sent.`);let r=await D(e,t);return o(),n(h.fleetLive),n(h.leader),n(h.authority),r}export{C as a,k as c,E as d,S as i,A as l,b as n,w as o,T as r,O as s,x as t,j as u};
2
- //# sourceMappingURL=surface-data-ZtCegYMQ.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"surface-data-ZtCegYMQ.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/command/surface-data.ts"],"sourcesContent":["/**\n * routes/verse/command/surface-data.ts — every read and write behind the\n * four 3.10 surfaces (Command, Fleet, Growth, Mind), in one place (unit C7).\n *\n * GET /api/verse/authority AuthorityStatusV1 (B-U1)\n * GET /api/verse/authority/draft AuthorityGrantDraft (B-U1)\n * POST /api/verse/authority AuthorityActionRequest\n * GET /api/verse/fleet/live FleetLiveSnapshotV1 (B-U5)\n * POST /api/verse/fleet/live FleetLiveActionRequest\n * GET /api/verse/leader LeaderStateV1 (B-U8)\n * POST /api/verse/leader LeaderActionRequest\n * GET /api/verse/learning LearningStateV1 (B-U9)\n * GET /api/verse/activity VerseActivityResponse (C1 — read through\n * the shell's ONE useActivity poll, never a\n * second loop from here)\n * GET /api/verse/fleet/history FleetHistoryResponse (A8)\n * GET /api/reasoning/digest ReasoningDigest (A7)\n * GET /api/verse/budget BudgetView (A9 — budget-queries.ts)\n * GET /api/models per-model ROI (data/queries.ts)\n *\n * WHY every read is OPTIONAL: Track B's modules land in parallel with these\n * surfaces (SPEC-310BC-COORD), and C0's mount answers 404 for a family that\n * has not landed. A 404 is \"this card has no source yet\", never \"Command is\n * broken\" — so a read resolves to `{ value: null, available: false, reason }`\n * and the card renders a designed not-available state from `reason`. A body\n * this client cannot narrow is treated the same way (available, but nothing\n * shown rather than guessed). 401 and aborts still propagate: an expired\n * read session is the whole app's state, not one card's.\n *\n * Writes pull the held mutation token (VerseControlLockedError without one —\n * the surfaces route every write through useGuardedAction, which opens the\n * token dialog first) and invalidate exactly the keys they change.\n */\nimport { ApiError, apiGet, apiPost } from '../../../data/client.js';\nimport { getMutationToken, touchMutationHold } from '../../../data/auth-store.js';\nimport { invalidate } from '../../../data/cache.js';\nimport type { QueryDef } from '../../../data/queries.js';\nimport { VerseControlLockedError } from '../autonomy/control-queries.js';\nimport { refreshActivity } from '../shell/useActivity.js';\nimport type { OptionalFleetRead } from '../autonomy/fleet-contract.js';\nimport type {\n AuthorityActionRequest,\n AuthorityGrantDraft,\n AuthorityStatusV1,\n} from '../../../../core/authority/types.js';\nimport type { FleetLiveActionRequest, FleetLiveSnapshotV1 } from '../../../../core/fleet/fleet-types.js';\nimport type { LeaderActionRequest, LeaderStateV1 } from '../../../../core/vision/leader-types.js';\nimport type { LearningStateV1 } from '../../../../core/learn/harness-types.js';\nimport type { VerseActivityResponse } from '../../../../core/verse/workbench-types.js';\nimport type { FleetHistoryResponse } from '../../../../core/verse/fleet-history-types.js';\nimport type { ReasoningDigest } from '../../../../core/reasoning/types.js';\n\n/** A read that is allowed to be absent (the autonomy folder's shape, reused). */\nexport type OptionalRead<T> = OptionalFleetRead<T>;\n\nexport const AUTHORITY_PATH = '/api/verse/authority';\nexport const AUTHORITY_DRAFT_PATH = '/api/verse/authority/draft';\nexport const FLEET_LIVE_PATH = '/api/verse/fleet/live';\nexport const LEADER_PATH = '/api/verse/leader';\nexport const LEARNING_PATH = '/api/verse/learning';\nexport const FLEET_HISTORY_PATH = '/api/verse/fleet/history?days=90';\nexport const REASONING_DIGEST_PATH = '/api/reasoning/digest?days=30';\n\nexport const SURFACE_KEYS = Object.freeze({\n authority: 'verse-authority',\n authorityDraft: 'verse-authority-draft',\n fleetLive: 'verse-fleet-live',\n leader: 'verse-leader',\n learning: 'verse-learning',\n fleetHistory: 'verse-fleet-history-90d',\n reasoningDigest: 'verse-reasoning-digest-30d',\n});\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return value !== null && typeof value === 'object' && !Array.isArray(value);\n}\n\n/**\n * Structural guards: just enough to know the body is the contract's shape\n * (version tag + the arrays the cards iterate), so a mismatched server can\n * never crash a render with `undefined.map`. Field-level honesty (null =\n * unknown) is the cards' job.\n */\nexport const narrow = {\n authority(raw: unknown): AuthorityStatusV1 | null {\n return isRecord(raw) && raw['v'] === 1 && typeof raw['switch'] === 'string' && isRecord(raw['grant']) ? (raw as unknown as AuthorityStatusV1) : null;\n },\n draft(raw: unknown): AuthorityGrantDraft | null {\n return isRecord(raw) && isRecord(raw['payload']) && typeof raw['digest'] === 'string' ? (raw as unknown as AuthorityGrantDraft) : null;\n },\n fleetLive(raw: unknown): FleetLiveSnapshotV1 | null {\n return isRecord(raw) && raw['v'] === 1 && Array.isArray(raw['runs']) && Array.isArray(raw['repos']) && Array.isArray(raw['lanes']) && isRecord(raw['summary'])\n ? (raw as unknown as FleetLiveSnapshotV1)\n : null;\n },\n leader(raw: unknown): LeaderStateV1 | null {\n return isRecord(raw) && raw['v'] === 1 && Array.isArray(raw['timeline']) && Array.isArray(raw['actions']) && isRecord(raw['hitRate'])\n ? (raw as unknown as LeaderStateV1)\n : null;\n },\n learning(raw: unknown): LearningStateV1 | null {\n return isRecord(raw) && raw['v'] === 1 && Array.isArray(raw['versions']) && Array.isArray(raw['experiments']) ? (raw as unknown as LearningStateV1) : null;\n },\n activity(raw: unknown): VerseActivityResponse | null {\n return isRecord(raw) && Array.isArray(raw['needsYou']) && Array.isArray(raw['running']) && isRecord(raw['sources']) ? (raw as unknown as VerseActivityResponse) : null;\n },\n fleetHistory(raw: unknown): FleetHistoryResponse | null {\n return isRecord(raw) && Array.isArray(raw['days']) && isRecord(raw['sources']) && isRecord(raw['funnel']) ? (raw as unknown as FleetHistoryResponse) : null;\n },\n reasoningDigest(raw: unknown): ReasoningDigest | null {\n return isRecord(raw) && Array.isArray(raw['insights']) && Array.isArray(raw['trends']) && isRecord(raw['totals']) ? (raw as unknown as ReasoningDigest) : null;\n },\n};\n\n/** Operator words for a source that did not answer (never a path, never a trace). */\nfunction absence(what: string, err: unknown): string {\n if (err instanceof ApiError) {\n if (err.status === 404) return `${what} is not in this build yet, so this card has no source.`;\n if (err.status === 503) return `${what} failed to load on the server.`;\n return `${what} answered HTTP ${err.status}.`;\n }\n return `${what} could not be reached.`;\n}\n\n/** A QueryDef whose value is an OptionalRead: 404 / unreachable / unrecognised all resolve, never throw. */\nexport function optionalQuery<T>(key: string, path: string, what: string, guard: (raw: unknown) => T | null): QueryDef<OptionalRead<T>> {\n return {\n key,\n fetch: async (signal) => {\n try {\n const raw = await apiGet<unknown>(path, signal);\n const value = guard(raw);\n if (value === null) {\n return { value: null, available: true, reason: `${what} answered in a shape this version does not recognise, so nothing is shown rather than guessed.` };\n }\n return { value, available: true, reason: null };\n } catch (err) {\n if (err instanceof ApiError && err.status === 401) throw err;\n if (err instanceof DOMException && err.name === 'AbortError') throw err;\n return { value: null, available: false, reason: absence(what, err) };\n }\n },\n };\n}\n\nexport const authorityQuery = optionalQuery(SURFACE_KEYS.authority, AUTHORITY_PATH, 'The authority service', narrow.authority);\nexport const authorityDraftQuery = optionalQuery(SURFACE_KEYS.authorityDraft, AUTHORITY_DRAFT_PATH, 'The grant draft', narrow.draft);\nexport const fleetLiveQuery = optionalQuery(SURFACE_KEYS.fleetLive, FLEET_LIVE_PATH, 'The live fleet view', narrow.fleetLive);\nexport const leaderQuery = optionalQuery(SURFACE_KEYS.leader, LEADER_PATH, 'The Leader', narrow.leader);\nexport const learningQuery = optionalQuery(SURFACE_KEYS.learning, LEARNING_PATH, 'Self-improvement', narrow.learning);\nexport const fleetHistoryQuery = optionalQuery(SURFACE_KEYS.fleetHistory, FLEET_HISTORY_PATH, 'Fleet history', narrow.fleetHistory);\nexport const reasoningDigestQuery = optionalQuery(SURFACE_KEYS.reasoningDigest, REASONING_DIGEST_PATH, 'The reasoning digest', narrow.reasoningDigest);\n\n// ---------------------------------------------------------------------------\n// Writes\n// ---------------------------------------------------------------------------\n\nasync function post<T>(path: string, body: unknown): Promise<T> {\n const token = getMutationToken();\n if (!token) throw new VerseControlLockedError();\n const result = await apiPost<T>(path, body, token);\n touchMutationHold();\n return result;\n}\n\n/**\n * One authority action. The server answers the new AuthorityStatusV1 for\n * every form; raising past the grant is its 409 `grant-required` (the page\n * opens the Touch ID sheet BEFORE ever sending that, but the server is the\n * authority — a stale page gets the refusal, not a raise).\n */\nexport async function postAuthority(action: AuthorityActionRequest): Promise<AuthorityStatusV1 | null> {\n const result = await post<unknown>(AUTHORITY_PATH, action);\n invalidate(SURFACE_KEYS.authority);\n invalidate(SURFACE_KEYS.fleetLive);\n void refreshActivity();\n if (action.action === 'grant' || action.action === 're-approve') invalidate(SURFACE_KEYS.authorityDraft);\n return narrow.authority(result);\n}\n\nexport async function postFleetLive(action: FleetLiveActionRequest): Promise<unknown> {\n const result = await post<unknown>(FLEET_LIVE_PATH, action);\n invalidate(SURFACE_KEYS.fleetLive);\n void refreshActivity();\n return result;\n}\n\nexport async function postLeader(action: LeaderActionRequest): Promise<unknown> {\n const result = await post<unknown>(LEADER_PATH, action);\n invalidate(SURFACE_KEYS.leader);\n void refreshActivity();\n return result;\n}\n\n/**\n * A Needs-you item's own action. `path` was validated by the producer\n * (isNeedsYouItem → isSafeApiRoute) and is re-checked here: the mutation\n * token must never be aimed anywhere but this origin's /api/.\n */\nexport async function postNeedsYouAction(path: string, body: Record<string, unknown>): Promise<unknown> {\n if (!/^\\/api\\/[^\\s\\\\]*$/.test(path) || path.startsWith('//') || path.includes('..')) {\n throw new Error('That action points outside this app, so it was not sent.');\n }\n const result = await post<unknown>(path, body);\n void refreshActivity();\n invalidate(SURFACE_KEYS.fleetLive);\n invalidate(SURFACE_KEYS.leader);\n invalidate(SURFACE_KEYS.authority);\n return result;\n}\n"],"mappings":"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"}
@@ -1,2 +0,0 @@
1
- import{x as e}from"./verse-model-E98kXngO.js";import{i as t}from"./sidebar-model-C8fyqSQY.js";import{n}from"./tool-semantics-CTRuLF5j.js";function r(t){let r=0;for(let e=t.length-1;e>=0;--e)if(t[e].kind===`user`){r=e;break}let i=[],a=[];for(let o=r;o<t.length;o+=1){let r=t[o];if(r.kind!==`tool`)continue;let s={toolUseId:r.toolUseId,kind:n(r.name)===`task`?`subagent`:`tool`,name:r.name,detail:e(r.input)||r.name,startedAt:r.at,status:r.result===null?`running`:r.result.isError?`failed`:`done`,durationMs:r.durationMs};(s.status===`running`?i:a).push(s)}return[...i,...a.reverse()]}function i(e,n,r){let i=new Map;for(let e of n?.running??[])e.sessionId!==r&&i.set(e.sessionId,{sessionId:e.sessionId,title:e.title,engine:e.engine,startedAt:e.startedAt,live:t(e.live)});for(let t of e)t.id===r||t.status!==`running`||i.has(t.id)||i.set(t.id,{sessionId:t.id,title:t.title,engine:t.engine,startedAt:null,live:null});return[...i.values()]}function a(e,t){let n=e.filter(e=>e.status===`running`);return{turn:n.length,subagents:n.filter(e=>e.kind===`subagent`).length,chats:t.length,total:n.length+t.length}}function o(e){let t=`${e.total} running task${e.total===1?``:`s`}`,n=[];return e.turn>0&&n.push(`${e.turn} in this chat`),e.chats>0&&n.push(`${e.chats} other chat${e.chats===1?``:`s`}`),n.length>0?`${t}: ${n.join(`, `)}`:t}export{a as countTasks,r as currentTurnTasks,o as describeTaskCounts,i as otherRunningChats};
2
- //# sourceMappingURL=tasks-model-CnYQzgxk.js.map
@@ -1,3 +0,0 @@
1
- var e=[`minimal`,`low`,`medium`,`high`,`xhigh`,`max`],t=new Set([`thinking-delta`,`thinking-progress`,`progress`,`status`]);function n(e){return t.has(e.type)}var r=65536,i=12e3,a=[`This conversation is about to continue in a fresh session that has none of its context.`,`Write the handoff note that new session should start from. Do not edit files or run commands for this — only write the note.`,``,`Cover, concretely:`,`- The goal, and what "done" looks like.`,`- Decisions made so far, each with the reason it was made.`,`- Current state: what is finished, what is half-done, what is untested.`,`- Files changed and anything not yet committed.`,`- How to verify the work (exact commands).`,`- Open questions, risks, and approaches already tried that did not work.`,``,`Keep it under 600 words. Prefer file paths and commands over prose.`].join(`
2
- `),o=65536,s=139264,c=6144;export{c as a,n as c,r as i,i as n,s as o,a as r,o as s,e as t};
3
- //# sourceMappingURL=types-Dypu22dp.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types-Dypu22dp.js","names":[],"sources":["../../../../../../src/core/verse/types.ts"],"sourcesContent":["/**\n * Ashlr Verse — interactive multi-turn session contract (V1).\n *\n * A Verse session binds one project directory to one execution seat\n * (engine + account + model). Each user turn spawns ONE vendor CLI process\n * that resumes the vendor-native conversation by id, streams normalized\n * events, and exits. No long-lived stdin is held between turns.\n *\n * Seats:\n * claude -> `claude -p ... --output-format stream-json` via a native-profile launcher (account pinned by CLAUDE_CONFIG_DIR)\n * local -> the plain `claude` binary with ANTHROPIC_BASE_URL pointed at Ollama (Anthropic-compatible API); model = Ollama tag\n * codex -> `codex exec --json` / `codex exec resume <threadId> --json` via a native-profile launcher (CODEX_HOME pinned)\n * grok -> `grok -p ... --output-format streaming-messages-json` via a native-profile launcher (GROK_HOME pinned)\n *\n * Nothing in this module reads secrets. Account identity is pinned by the\n * launcher command recorded in ~/.ashlr/account-connections/connections.json.\n */\n\nexport type VerseEngine = 'claude' | 'codex' | 'grok' | 'local';\n\nexport type VerseSessionStatus = 'idle' | 'running' | 'error';\n\n/** One selectable execution seat shown in the model/account picker. */\nexport interface VerseSeat {\n /** Stable id, e.g. `claude`, `codex-personal`, `grok`, `local:qwen3-coder-next:ctx64k`. */\n id: string;\n engine: VerseEngine;\n /** Human label, e.g. \"Claude Code\", \"Personal Codex\", \"Grok\", \"Qwen3-Coder-Next (local)\". */\n label: string;\n /** Account id from connections.json for native seats; `local` for Ollama seats. */\n accountId: string;\n /** Models this seat can run. First entry is the default. */\n models: VerseModelOption[];\n /** Best-known context window in tokens for the default model (null when unknown). */\n contextWindow: number | null;\n /** Latest health/usage evidence, if any. Never an admission input in V1. */\n health: VerseSeatHealth;\n /**\n * V2.1 ADDITIVE. The subscription capacity behind this seat, so the seat\n * list can render a meter without a second request.\n *\n * Absent (`undefined`) for LOCAL seats: an Ollama tag has no subscription\n * and no provider window. Its real constraint is machine memory, which is\n * reported by `VerseBootstrap.localRuntime`, not by a quota. Absent on a\n * native seat means the server could not build a record for that account\n * at all — `health.state` says what it does know.\n */\n capacity?: VerseSeatCapacity;\n /**\n * V3.9 ADDITIVE. The version of the CLI binary this seat is PINNED to (its\n * native-profile launcher execs one exact file). Absent when unknown and on\n * local seats. A pinned binary never updates itself, so a model that needs a\n * newer CLI is listed with `unavailableReason` rather than silently failing.\n */\n cliVersion?: string;\n /**\n * V3.9 ADDITIVE. Plain-language facts about this seat's context setup the UI\n * must show rather than imply (binary skew, catalog not yet fetched, …).\n * Absent when there is nothing to say, so ordinary seats keep their shape.\n */\n notes?: string[];\n}\n\n/**\n * Where a context-window figure came from, so nothing on screen implies more\n * certainty than it has (docs/VERSE-CONTEXT.md §1).\n *\n * - `runtime` — the CLI reported it for THIS turn (claude/grok\n * `result.modelUsage.<m>.contextWindow`, codex rollout\n * `token_count.info.model_context_window`, Ollama\n * `/api/ps`). Wins over everything else.\n * - `provider-catalog` — the seat's own served catalog on disk (codex/grok\n * `native-state/models_cache.json`).\n * - `cli-catalog` — read out of the pinned CLI binary's embedded catalog\n * and recorded here with the version it was read from.\n * - `documented` — the provider's published model table.\n * - `fallback` — a named default; the UI marks it as an estimate.\n */\nexport type VerseWindowSource = 'runtime' | 'provider-catalog' | 'cli-catalog' | 'documented' | 'fallback';\n\n/**\n * How much context a session is allowed to accumulate before the CLI compacts.\n *\n * - `standard` — the default. Evidence-based budget per engine: Claude 1M\n * models compact near 400k instead of ~967k; Codex, Grok and\n * local run their native windows.\n * - `expansive` — opt-in. Claude runs its full native window (CLI `auto`),\n * Codex raises `model_context_window` to the model's catalog\n * maximum (872k on GPT-6 / GPT-5.6). Costs more usage per turn,\n * buys simultaneous visibility for coupled, cross-cutting work.\n *\n * A mode that does not exist for a model (Grok, local, 200k Claude models,\n * GPT-5.5) is simply absent from that model's option — never faked.\n */\nexport type VerseContextMode = 'standard' | 'expansive';\n\nexport const VERSE_CONTEXT_MODES: readonly VerseContextMode[] = ['standard', 'expansive'];\n\n/** One mode's budget for a model on a seat. */\nexport interface VerseContextBudget {\n /** The window the CLI measures against in this mode (the meter's denominator). */\n contextWindow: number;\n /** Token count at which the CLI auto-compacts in this mode; null when unknown. */\n autoCompactAt: number | null;\n /**\n * The RAW window value the CLI must be TOLD to reach this budget, when that\n * differs from `contextWindow` — codex measures against 95% of the window it\n * is configured with, so expansive GPT-6 is `providerWindow: 872_000`\n * (`-c model_context_window=872000`) but `contextWindow: 828_400`.\n */\n providerWindow?: number | null;\n}\n\nexport interface VerseModelOption {\n id: string;\n label: string;\n /** Standard-mode window the CLI measures against (codex: the 95% effective window). */\n contextWindow: number | null;\n /**\n * V3.9 ADDITIVE — every field below is optional so records and fixtures\n * written before it keep validating. Absent means \"not known\", never zero.\n */\n /** Standard-mode auto-compaction point. */\n autoCompactAt?: number | null;\n /** Present ONLY when this model on this seat has a real expansive mode. */\n expansive?: VerseContextBudget | null;\n /** The CLI's default max output for this model, when known. */\n maxOutputTokens?: number | null;\n windowSource?: VerseWindowSource;\n /** Minimum CLI version that knows this model id (e.g. '2.1.280'); null when any. */\n minCliVersion?: string | null;\n /**\n * Why this model cannot run on this seat right now, in plain language (e.g.\n * \"needs Claude Code 2.1.280; this seat runs 2.1.257\"). Null/absent = runnable.\n * Listed rather than hidden so the operator learns WHY a model is missing.\n */\n unavailableReason?: string | null;\n}\n\nexport interface VerseSeatHealth {\n state: 'ready' | 'degraded' | 'unavailable' | 'unknown';\n /** e.g. \"5h window 72% used, resets 14:00\" — plain text, already sanitized. */\n summary: string | null;\n windows: Array<{ id: string; usedPercent: number | null; resetsAt: string | null }>;\n observedAt: string | null;\n}\n\n// ---------------------------------------------------------------------------\n// Seat capacity (V2.1, additive) — see docs/VERSE-TELEMETRY-V2.md, which is\n// the authority for every honesty rule encoded in these shapes.\n//\n// This file is imported by the BROWSER bundle, so it may not import\n// `core/verse/accounts.ts` (node:fs). The shapes below therefore restate the\n// provider-record shapes structurally. `seats.ts` assigns the account record's\n// values straight into them, so a divergence in `core/verse/accounts.ts` stops\n// `seats.ts` compiling — that assignment is the drift guard.\n// ---------------------------------------------------------------------------\n\n/** One provider-reported quota window, as carried on a seat. */\nexport interface VerseSeatWindow {\n id: string;\n /** Provider-reported percent, or null for NO SIGNAL — which is not zero. */\n usedPercent: number | null;\n /**\n * Machine-readable reset instant. STRUCTURALLY ALWAYS NULL for Claude: that\n * provider publishes only a sentence, which lives in `resetDescription` and\n * is rendered verbatim. Never synthesize a countdown from a description.\n */\n resetsAt: string | null;\n /** The provider's own reset wording, verbatim (\"resets Sep 25 at 7pm (America/New_York)\"). */\n resetDescription: string | null;\n /**\n * TRUE only when the provider explicitly FLAGGED the limit. Such a window's\n * `usedPercent` is the SENTINEL 100 — a denial, not a measurement — and must\n * be labelled \"limit reached\", never \"100% used\".\n */\n limitReached: boolean;\n /** False when `usedPercent` is a flagged sentinel rather than a reading. */\n measured: boolean;\n}\n\n/**\n * Codex credits, INDEPENDENT of the window: a fully used weekly window with a\n * spendable balance is not blocked. `null` is \"no signal\", never \"no credits\".\n */\nexport interface VerseSeatCredits {\n hasCredits: boolean;\n unlimited: boolean;\n /** Provider-reported decimal string, kept verbatim — never rounded. */\n balance: string | null;\n}\n\n/**\n * The coarse \"can I use this seat right now\" verdict. Deliberately coarse: the\n * exact numbers are in `windows`, and a verdict that pretended to more\n * precision than the providers give would be a lie.\n *\n * - `ready` — a reading exists and the binding window has headroom.\n * - `tight` — the binding window is at/above the warn threshold, OR it is\n * spent while Codex credits remain spendable (not blocked).\n * - `exhausted` — the binding window is spent and nothing else is left.\n * - `signed-out` — the account is not authenticated; reconnect it.\n * - `unknown` — NO window carried a percent. Not zero, not healthy.\n */\nexport type VerseSeatUsability = 'ready' | 'tight' | 'exhausted' | 'signed-out' | 'unknown';\n\n/**\n * Where a seat's windows came from, so nothing implies freshness it lacks.\n * Mirrors `VerseEvidenceSource` in `core/verse/accounts.ts`.\n */\nexport type VerseSeatEvidenceSource = 'collector' | 'shared-evidence' | 'baseline' | 'none';\n\n/** Everything the seat list needs to draw a capacity meter honestly. */\nexport interface VerseSeatCapacity {\n /** e.g. \"max\", \"pro\", \"SuperGrok\". Null when the provider gave none. */\n planType: string | null;\n /**\n * THE CONSTRAINT THAT ACTUALLY BLOCKS WORK: the window with the highest\n * `usedPercent`. Null when no window carried a percent at all.\n */\n binding: VerseSeatWindow | null;\n /** Every window the provider reported, in provider order. */\n windows: VerseSeatWindow[];\n /** Codex only; null for every other provider and when no signal exists. */\n credits: VerseSeatCredits | null;\n usability: VerseSeatUsability;\n observedAt: string | null;\n evidenceSource: VerseSeatEvidenceSource;\n /** Plain-language provider facts the UI must show instead of implying a fault. */\n notes: string[];\n}\n\nexport interface VerseProject {\n path: string;\n name: string;\n /** From ~/.ashlr/enrollment.json when present. */\n enrolled: boolean;\n}\n\n// ---------------------------------------------------------------------------\n// Workspaces (V2.2, ADDITIVE) — see docs/VERSE-WORKSPACES.md §1.\n//\n// A session bound to ONE directory cannot express \"this service plus the\n// shared library it depends on\", which is most real work. A workspace is a\n// NAMED set of roots with exactly one marked primary.\n//\n// `VerseSession.projectPath` keeps its meaning — it IS the primary root — so\n// every session record, adapter and test written before workspaces existed\n// still loads and still runs. Nothing rewrites saved chat history.\n//\n// ENROLLMENT IS NOT PART OF THIS SHAPE ON PURPOSE. A workspace says what a\n// session may REACH; `~/.ashlr/enrollment.json` says what the AUTONOMOUS lane\n// may mutate, and the two are deliberately separate registries. Membership in\n// a workspace grants no enrollment: `enrolled` below is READ from the\n// registry per root and is never written by anything in this feature.\n// ---------------------------------------------------------------------------\n\n/** One directory in a workspace. Exactly one root in a workspace is primary. */\nexport interface VerseWorkspaceRoot {\n /** Absolute, physically resolved path (symlinks followed). */\n path: string;\n /** Display name; defaults to the basename. */\n name: string;\n /**\n * The session's cwd and the value `projectPath` carries. Exactly one root\n * per workspace has this set.\n */\n primary: boolean;\n}\n\n/**\n * A named set of roots.\n *\n * ONE TYPE, TWO USES, DELIBERATELY. An interactive session binds to a\n * workspace to decide what it can reach; the autonomous lane reads the same\n * workspace as a SECTION — \"these repositories collaborate, work on them\n * together\" — when `section` is true. They were not split because the thing\n * being named is identical in both: a set of directories that belong to one\n * piece of work. Two registries of named repo groups would drift.\n *\n * What is NOT on this type is priority. A repo may belong to several\n * workspaces, so a per-membership rank would give one repo several\n * contradictory ranks. Priority is therefore an attribute OF THE REPO, held\n * once per path in the same registry — see `VerseRootPriority`.\n */\nexport interface VerseWorkspace {\n id: string;\n name: string;\n /** Primary first, then the extras in the order they were added. */\n roots: VerseWorkspaceRoot[];\n /**\n * Offer this workspace to the autonomous lane as a section.\n *\n * GRANTS NOTHING. The fleet still reaches only what\n * `~/.ashlr/enrollment.json` permits; a section can group and order those\n * repos and nothing else. A member that is not enrolled stays unreachable.\n */\n section: boolean;\n createdAt: string;\n updatedAt: string;\n}\n\n/**\n * Relative standing of one repository in the autonomous lane's attention.\n *\n * ORDERING ONLY, NEVER ADMISSION. `critical` on an unenrolled repo is still\n * refused by `assertMayMutate`; `low` on an enrolled one is still permitted.\n * An ordinal rather than a number because the operator's judgement here is\n * \"this matters more than that\", and a 0-100 score would invent a precision\n * nobody holds.\n *\n * Absent means `normal`, which is how every repo already behaves — so a\n * registry with no priorities at all reproduces today's flat list exactly.\n */\nexport type VerseRootPriority = 'critical' | 'high' | 'normal' | 'low';\n\nexport const VERSE_ROOT_PRIORITIES: readonly VerseRootPriority[] =\n ['critical', 'high', 'normal', 'low'];\n\nexport const VERSE_DEFAULT_ROOT_PRIORITY: VerseRootPriority = 'normal';\n\n/** Sort weight; lower sorts first. Never a budget, never a multiplier. */\nexport const VERSE_ROOT_PRIORITY_RANK: Record<VerseRootPriority, number> = {\n critical: 0,\n high: 1,\n normal: 2,\n low: 3,\n};\n\n/** One enrolled repository as the autonomy scope view ranks it. */\nexport interface VerseAutonomyScopeEntry {\n path: string;\n name: string;\n priority: VerseRootPriority;\n /** Sections (workspaces with `section: true`) this repo belongs to. */\n sections: Array<{ id: string; name: string }>;\n /** True when a focus section is set and this repo is outside it. */\n outsideFocus: boolean;\n}\n\n/**\n * The autonomous lane's scope, ORDERED.\n *\n * Built by INTERSECTING section membership with the enrollment registry, so\n * it can only ever be a subset of what enrollment already allows. Sections\n * add ordering and grouping; they never add reach.\n */\nexport interface VerseAutonomyScopeView {\n focusSectionId: string | null;\n focusSectionName: string | null;\n /** Enrolled repos, most important first. */\n entries: VerseAutonomyScopeEntry[];\n /**\n * Paths a section names that are NOT enrolled. Listed so the blast radius\n * is legible in both directions — these are exactly the repos a section\n * does NOT give the fleet.\n */\n unenrolledSectionRoots: string[];\n}\n\n/**\n * Per-root git identity. A turn that edits two repos produces two diffs, so\n * the transcript has to be able to attribute each file to the right one.\n *\n * `remote` is the canonical `owner/repo` for a GitHub origin and null for\n * anything else — deliberately NOT the raw remote URL, which can carry a\n * token in its userinfo and would then reach an API response.\n */\nexport interface VerseRootGit {\n branch: string;\n /** Count of porcelain entries; 0 is clean. */\n dirty: number;\n ahead: number;\n behind: number;\n remote: string | null;\n}\n\n/** A root as the client sees it: identity, reachability and honest scope. */\nexport interface VerseRootStatus {\n path: string;\n name: string;\n primary: boolean;\n exists: boolean;\n /**\n * Read live from the enrollment registry. FALSE means the interactive lane\n * still works on this root while the autonomous lane refuses it — being in\n * a workspace never changes this.\n */\n enrolled: boolean;\n /** Null when the root is not a git repository, or git is unavailable. */\n git: VerseRootGit | null;\n /**\n * False when the session's engine has no way to be granted this root (Grok's\n * CLI exposes `--cwd` and nothing else). The root is still listed, because\n * hiding it would misrepresent what the workspace is.\n */\n reachable: boolean;\n}\n\n/** GET /api/verse/sessions/:id/roots */\nexport interface VerseSessionRootsResponse {\n sessionId: string;\n workspaceId: string | null;\n workspaceName: string | null;\n roots: VerseRootStatus[];\n /**\n * Plain-language facts the UI must show rather than imply: an unreachable\n * root on a Grok seat, or a root the autonomous lane will refuse.\n */\n notes: string[];\n}\n\n/** GET /api/verse/workspaces */\nexport interface VerseWorkspacesResponse {\n workspaces: VerseWorkspace[];\n /** Live per-root facts, keyed by workspace id, so one read draws the list. */\n status: Record<string, VerseRootStatus[]>;\n /** Per-repo priority, keyed by canonical path. Absent key means `normal`. */\n priorities: Record<string, VerseRootPriority>;\n focusSectionId: string | null;\n}\n\n/** POST /api/verse/workspaces */\nexport interface VerseWorkspaceCreateRequest {\n name: string;\n /** Absolute paths. The first is the primary. */\n roots: string[];\n /** Also offer this set to the autonomous lane as a section. Default false. */\n section?: boolean;\n}\n\n/** POST /api/verse/workspaces/:id/update */\nexport interface VerseWorkspaceUpdateRequest {\n name?: string;\n /** When present, replaces the root set wholesale. First entry is primary. */\n roots?: string[];\n section?: boolean;\n}\n\n/** POST /api/verse/workspaces/priority */\nexport interface VerseRootPriorityRequest {\n path: string;\n priority: VerseRootPriority;\n}\n\n/** POST /api/verse/workspaces/focus — `sectionId: null` clears the focus. */\nexport interface VerseFocusSectionRequest {\n sectionId: string | null;\n}\n\n/** Hard cap on roots per workspace — a blast radius, not a UI limit. */\nexport const VERSE_MAX_WORKSPACE_ROOTS = 8;\n\n/**\n * Every root a session can reach, primary first.\n *\n * Pure and total: a record written before workspaces existed has no\n * `extraRoots` and yields exactly `[projectPath]`, which is what every caller\n * assumed before this existed.\n */\nexport function verseSessionRoots(\n session: Pick<VerseSession, 'projectPath' | 'extraRoots'>,\n): string[] {\n const out = [session.projectPath];\n for (const root of session.extraRoots ?? []) {\n if (typeof root === 'string' && root.length > 0 && !out.includes(root)) out.push(root);\n }\n return out;\n}\n\nexport interface VerseUsage {\n inputTokens: number;\n outputTokens: number;\n cacheReadTokens: number;\n cacheCreationTokens: number;\n /**\n * Prompt size of the most recent assistant call = live context occupancy.\n * Stored UNCLAMPED: a reading above the window is information (the CLI is\n * about to compact or overflow), and only the UI decides how to draw it.\n */\n contextTokens: number;\n contextWindow: number | null;\n /** V3.9 ADDITIVE. Where `contextWindow` came from; absent on old records. */\n contextWindowSource?: VerseWindowSource;\n /** V3.9 ADDITIVE. Auto-compaction point for the session's current mode. */\n autoCompactAt?: number | null;\n /**\n * V3.9 ADDITIVE. False when `contextTokens` is an UPPER BOUND rather than a\n * measurement (codex before its rollout is readable: the turn total sums\n * every model call). Absent means exact.\n */\n contextTokensExact?: boolean;\n}\n\nexport interface VerseSession {\n id: string;\n title: string;\n /**\n * The PRIMARY root: the process cwd and the folder every pre-workspace\n * client already reads. Unchanged in meaning, which is why no session\n * record ever has to be rewritten.\n */\n projectPath: string;\n /**\n * V2.2 ADDITIVE. Roots BEYOND the primary, pinned at creation time.\n *\n * Absent on every record written before workspaces existed, and absent on\n * a single-root session today — so the on-disk shape of an ordinary chat\n * does not change at all.\n *\n * PINNED, not referenced: a session keeps the roots it was created with\n * even if the named workspace is later edited or deleted, for the same\n * reason `launch.anthropicBaseUrl` is pinned — a conversation must not\n * silently gain reach because config moved underneath it.\n */\n extraRoots?: string[];\n /** V2.2 ADDITIVE. Provenance of the pinned roots; absent for an ad-hoc set. */\n workspaceId?: string;\n workspaceName?: string;\n engine: VerseEngine;\n accountId: string;\n seatId: string;\n model: string;\n /** Vendor conversation id used for resume (claude/grok: our uuid; codex: thread id from output). */\n nativeSessionId: string | null;\n createdAt: string;\n updatedAt: string;\n status: VerseSessionStatus;\n turnCount: number;\n usage: VerseUsage;\n lastError: string | null;\n /**\n * V3.9 ADDITIVE. The session's context budget. Every record written by 3.9+\n * carries it explicitly, so ABSENT means a pre-3.9 record: the engine\n * materializes it on first touch — `expansive` for a Claude 1M model (that\n * is the native ~967k compaction those chats always ran with, so upgrading\n * never forces a paid compaction), `standard` otherwise (= native).\n * Changeable mid-session (POST /sessions/:id/context-mode): it changes CLI\n * flags, not prompt content — but switching DOWN below the current\n * occupancy makes the CLI compact on its next turn.\n */\n contextMode?: VerseContextMode;\n /** V3.9 ADDITIVE. Native compactions observed so far (claude/grok compact_boundary, codex rollout `compacted`). */\n compactionCount?: number;\n /** V3.9 ADDITIVE. Set when this session was started as a handoff from another. */\n handoffFrom?: { sessionId: string; title: string };\n /**\n * V3.9 ADDITIVE. Shared project memory was offered to this session's CLI at\n * creation. Pinned, like the roots: a conversation must not silently gain a\n * writable directory because a preference moved underneath it.\n */\n memoryEnabled?: boolean;\n /**\n * V3.10 ADDITIVE (contract: unit C0; written by C3's engine). The operator's\n * per-chat effort and permission choices, applied from the NEXT turn — a\n * running turn keeps the argv it was launched with. Absent (every record\n * before 3.10, and any key never set) = the engine default: permission mode\n * `accept-edits`, effort = the CLI's own default.\n *\n * A MODEL change is deliberately NOT stored here: it rewrites `model` above,\n * which every launch already reads — one field, one truth.\n */\n controls?: VerseSessionControls;\n}\n\n/**\n * V3.10. Permission modes a chat can run in (SPEC-310C §0.6), in picker order.\n * - `plan` — the CLI plans and edits nothing.\n * - `accept-edits` — the default: edits applied without asking.\n * - `auto` — the CLI's own auto mode.\n * - `bypass` — every check skipped. Shown red and confirmed PER CHAT:\n * never a default, never inherited by a new chat.\n * Adapters map these to each CLI's spelling (claude `acceptEdits` /\n * `bypassPermissions`, grok `dontAsk`, …). An engine that cannot honour one\n * reports it unavailable WITH a reason rather than approximating it. The\n * in-page \"Ask\" mode (answering permission prompts in the UI) is 3.11.\n */\nexport const VERSE_PERMISSION_MODES = ['plan', 'accept-edits', 'auto', 'bypass'] as const;\nexport type VersePermissionMode = (typeof VERSE_PERMISSION_MODES)[number];\nexport const VERSE_DEFAULT_PERMISSION_MODE: VersePermissionMode = 'accept-edits';\n\n/**\n * V3.10. Reasoning effort, the union across engines — claude `--effort`\n * (low · medium · high · xhigh · max) and codex `model_reasoning_effort`\n * (minimal · low · medium · high · xhigh). Each seat offers only the subset\n * its CLI accepts; the rest come back unavailable with a reason.\n */\nexport const VERSE_EFFORTS = ['minimal', 'low', 'medium', 'high', 'xhigh', 'max'] as const;\nexport type VerseEffort = (typeof VERSE_EFFORTS)[number];\n\n/** V3.10. `VerseSession.controls` — absent key = engine default (see there). */\nexport interface VerseSessionControls {\n effort?: VerseEffort;\n permissionMode?: VersePermissionMode;\n}\n\n/** Normalized event stream. `seq` is monotonic per session and is the SSE id. */\nexport type VerseEvent =\n | { seq: number; at: string; type: 'user-message'; turnId: string; text: string }\n | { seq: number; at: string; type: 'turn-started'; turnId: string; pid: number | null }\n | { seq: number; at: string; type: 'text-delta'; turnId: string; text: string }\n | { seq: number; at: string; type: 'assistant-message'; turnId: string; text: string }\n /**\n * Reasoning the CLI chose to show. V3.10 ADDITIVE optional fields (absent on\n * older records = unknown, never \"false\"/\"0\"):\n * - `redacted` the CLI sent a signature-only / redacted block, so `text` is\n * empty but the model DID think (the UI says \"Thought 12s\").\n * - `durationMs` wall time the block took to stream, when measured.\n * - `kind` see VerseThinkingKind.\n */\n | {\n seq: number;\n at: string;\n type: 'thinking';\n turnId: string;\n text: string;\n redacted?: boolean;\n durationMs?: number;\n kind?: VerseThinkingKind;\n }\n | { seq: number; at: string; type: 'tool-use'; turnId: string; toolUseId: string; name: string; input: unknown }\n | { seq: number; at: string; type: 'tool-result'; turnId: string; toolUseId: string; output: string; isError: boolean }\n | { seq: number; at: string; type: 'usage'; turnId: string; usage: VerseUsage }\n | { seq: number; at: string; type: 'turn-done'; turnId: string; ok: boolean; nativeSessionId: string | null; durationMs: number }\n /**\n * `code` (V3.10 ADDITIVE, optional) is a stable machine key for errors the UI\n * or engine acts on — see VERSE_ERROR_CODES. Absent = uncategorised.\n */\n | { seq: number; at: string; type: 'error'; turnId: string | null; message: string; code?: string }\n | { seq: number; at: string; type: 'cancelled'; turnId: string }\n /**\n * V3.9. The CLI compacted its own conversation. Token counts are the CLI's\n * own (`compact_metadata.pre_tokens/post_tokens` on claude/grok). Codex\n * rollouts mark only THAT a compaction happened, so its counts are the last\n * `token_count` reading before the marker and the first one after it —\n * measured, but by Verse, not stated by the CLI; its `durationMs` is null.\n * Any count may be null when no reading brackets the compaction.\n */\n | {\n seq: number;\n at: string;\n type: 'compaction';\n turnId: string | null;\n trigger: 'auto' | 'manual';\n preTokens: number | null;\n postTokens: number | null;\n durationMs: number | null;\n }\n /**\n * V3.9. A context-occupancy READING that is not a usage delta — e.g. codex's\n * rollout `token_count` (exact last-call prompt size and the window the CLI\n * measured it against), polled mid-turn and read again after it. Replaces\n * the session's `contextTokens`; never summed. The engine fills\n * `autoCompactAt` for the window in force.\n */\n | {\n seq: number;\n at: string;\n type: 'context';\n turnId: string | null;\n contextTokens: number;\n contextWindow: number | null;\n exact: boolean;\n autoCompactAt?: number | null;\n /**\n * Where `contextWindow` came from. A CLI reading is `runtime`; the event\n * the engine writes after a MODE SWITCH carries the new budget's catalog\n * source, so a client never relabels a catalog figure as a measurement.\n * Absent on events from before this field existed (treat as `runtime`).\n */\n contextWindowSource?: VerseWindowSource;\n }\n // ── V3.10 TRANSIENT events ────────────────────────────────────────────────\n // Never written to the session log; fanned out to live SSE listeners only\n // (see VERSE_TRANSIENT_EVENT_TYPES for the wire rules). A reload therefore\n // never shows them — everything they convey is either ephemeral (a spinner)\n // or re-stated by a persisted event at turn end (`thinking`, `usage`).\n /** A chunk of streamed reasoning text for the in-flight thinking block. */\n | { seq: number; at: string; type: 'thinking-delta'; turnId: string; text: string }\n /**\n * The CLI reports reasoning volume without text (claude\n * `system/thinking_tokens`). An ESTIMATE, rate-limited by the adapter.\n */\n | { seq: number; at: string; type: 'thinking-progress'; turnId: string; estimatedTokens: number }\n /**\n * What the running turn is doing right now. `tool` names the running tool\n * when phase is `tool`. `outTokens`/`tokPerSec` are absent when unmeasured.\n */\n | {\n seq: number;\n at: string;\n type: 'progress';\n turnId: string;\n phase: VerseProgressPhase;\n tool?: string;\n elapsedMs: number;\n outTokens?: number;\n tokPerSec?: number;\n }\n /** A human-readable notice about the turn's plumbing (API retry, preflight, no-output watchdog). */\n | { seq: number; at: string; type: 'status'; turnId: string | null; kind: VerseStatusKind; message: string }\n // ── V3.10 PERSISTED events ────────────────────────────────────────────────\n /**\n * The engine recovered from a lost native conversation (e.g. the vendor\n * thread vanished) by starting a new native session seeded with the handoff\n * note (`how: 'handoff'`) or a bare new session (`new-native-session`).\n */\n | { seq: number; at: string; type: 'recovered'; turnId: string | null; how: VerseRecoveryHow; message: string }\n /**\n * The log hit its cap and events with `seq < droppedBefore` were dropped at\n * a TURN boundary (never mid-turn). `turnId` is always null — it is present\n * only so code reading `event.turnId` across the union keeps typechecking.\n */\n | { seq: number; at: string; type: 'history-truncated'; turnId: null; droppedBefore: number };\n\nexport type VerseEventType = VerseEvent['type'];\n\n/** V3.10. `summary` = vendor-summarised reasoning, `raw` = verbatim, `progress` = a heading/placeholder only. */\nexport type VerseThinkingKind = 'summary' | 'raw' | 'progress';\n\n/** V3.10. Phase of a running turn, carried by the transient `progress` event. */\nexport type VerseProgressPhase = 'thinking' | 'tool' | 'writing' | 'waiting';\n\n/** V3.10. What a transient `status` notice is about. */\nexport type VerseStatusKind = 'retry' | 'preflight' | 'watchdog';\n\n/** V3.10. How a `recovered` event restored the conversation. */\nexport type VerseRecoveryHow = 'new-native-session' | 'handoff';\n\n/**\n * V3.10. Known `error.code` values. `code` stays `string` on the wire so an\n * older client never rejects a newer code; these are the ones Verse acts on.\n * - `native-thread-missing` — the vendor conversation to resume no longer exists.\n * - `session-in-use` — the CLI refused because the native session id is locked.\n */\nexport const VERSE_ERROR_CODES = ['native-thread-missing', 'session-in-use'] as const;\nexport type VerseErrorCode = (typeof VERSE_ERROR_CODES)[number];\n\n/**\n * V3.10. Event types that are NEVER persisted — emitted to live SSE listeners\n * only. Wire rules (A5 server, A6 client):\n * - a transient event carries `seq` = the session's LAST PERSISTED seq (the\n * counter does not advance), so the stored log stays gap-free and a server\n * restart can never reissue a seq a client already saw;\n * - its SSE frame has NO `id:` line, so the browser's Last-Event-ID resume\n * cursor only ever points at persisted events;\n * - clients must not dedupe, store or resume by a transient event's seq.\n * Browser-safe (plain Set), imported by the web bundle.\n */\nconst TRANSIENT_EVENT_TYPE_LIST = [\n 'thinking-delta',\n 'thinking-progress',\n 'progress',\n 'status',\n] as const satisfies readonly VerseEventType[];\n\nexport const VERSE_TRANSIENT_EVENT_TYPES: ReadonlySet<VerseEventType> = new Set<VerseEventType>(TRANSIENT_EVENT_TYPE_LIST);\n\nexport type VerseTransientEventType = (typeof TRANSIENT_EVENT_TYPE_LIST)[number];\nexport type VerseTransientEvent = Extract<VerseEvent, { type: VerseTransientEventType }>;\nexport type VersePersistedEvent = Exclude<VerseEvent, { type: VerseTransientEventType }>;\n\n/** V3.10. Type guard over VERSE_TRANSIENT_EVENT_TYPES. */\nexport function isTransientVerseEvent(event: VerseEvent): event is VerseTransientEvent {\n return VERSE_TRANSIENT_EVENT_TYPES.has(event.type);\n}\n\n/**\n * Which endpoint a LOCAL seat sends its turns to.\n *\n * - `ollama` — the historical lane: the plain `claude` binary with\n * ANTHROPIC_BASE_URL pointed straight at Ollama's\n * Anthropic-compatible endpoint on :11434. Ollama\n * serialises this model architecture, so a fleet of local\n * agents on this lane is a queue (docs/LOCAL-FLEET.md).\n * - `llama-server` — the same binary pointed at the local Anthropic\n * normalising proxy that fronts llama-server. That proxy\n * is the ONLY way to reach llama-server's parallel slots\n * and the prompt-cache fix, because Qwen3.8's chat\n * template rejects Claude Code's request shape unless the\n * proxy rewrites it on the way through.\n *\n * DISPATCH ONLY. Model DISCOVERY stays on Ollama in both lanes — llama-server\n * implements neither `/api/tags` nor `/api/show`, which is where every local\n * seat's identity, context window and `tools` capability comes from.\n */\nexport type VerseLocalDispatch = 'ollama' | 'llama-server';\n\n/** What a client is told about this machine's local serving situation. */\nexport interface VerseLocalRuntimeSummary {\n /** Ollama reachable? Drives the local seats and an inline hint when false. */\n ollama: { reachable: boolean; baseUrl: string; models: string[] };\n /**\n * Where local seats DISPATCH turns, reported only when that is NOT the\n * default Ollama lane.\n *\n * Absent means `ollama`, i.e. exactly what every existing client already\n * assumes — so opting in is visible on the wire and NOT opting in changes no\n * payload at all.\n */\n dispatch?: { lane: VerseLocalDispatch; baseUrl: string };\n}\n\n/** GET /api/verse/bootstrap */\nexport interface VerseBootstrap {\n seats: VerseSeat[];\n projects: VerseProject[];\n sessions: VerseSession[];\n /** Whether POST routes are enabled on this server (`ashlr serve --allow-dispatch` / `ashlr verse`). */\n dispatchEnabled: boolean;\n localRuntime: VerseLocalRuntimeSummary;\n}\n\n/**\n * GET /api/verse/seats (V2.1)\n *\n * WHY THIS ROUTE EXISTS: `bootstrap` is a MOUNT-TIME snapshot. A client that\n * opened the app before the collector's first cycle finished would show\n * \"unknown\" forever. This is the same seat list, cheap enough to poll, and it\n * always reflects the collector's CURRENT state rather than a cached one.\n */\nexport interface VerseSeatsResponse {\n /** When this body was built. */\n sampledAt: string;\n seats: VerseSeat[];\n localRuntime: VerseBootstrap['localRuntime'];\n}\n\n/**\n * POST /api/verse/sessions\n *\n * Two spellings, never mixed (the API rejects the mix rather than silently\n * preferring one):\n * - `workspaceId` alone — the named workspace supplies primary and extras.\n * - `projectPath` (+ optional `extraRoots`) — an ad-hoc set, which is also\n * exactly the pre-workspace request shape.\n */\nexport interface VerseCreateSessionRequest {\n projectPath: string;\n seatId: string;\n model?: string;\n title?: string;\n /** V2.2 ADDITIVE. Absolute paths beyond the primary. */\n extraRoots?: string[];\n /** V2.2 ADDITIVE. Bind to a named workspace instead of naming paths. */\n workspaceId?: string;\n /**\n * SERVER-FILLED. The API resolves this from the registry once `workspaceId`\n * is validated, and never reads it off the request body — so a session can\n * not be labelled with a workspace name that is not the one it was built\n * from.\n */\n workspaceName?: string;\n /**\n * V3.9 ADDITIVE. Absent → the seat's preferred mode (preferences.json), else\n * `standard`. `expansive` on a model with no expansive budget is rejected.\n */\n contextMode?: VerseContextMode;\n /**\n * V3.9 ADDITIVE. Start this session as a handoff from an existing one. The\n * server resolves the source's title itself (never from the body) and pins\n * `handoffFrom`; the handoff TEXT is sent by the client as turn 1, after the\n * operator has read it — nothing is spent on their behalf.\n */\n handoffFromSessionId?: string;\n}\n\n/** POST /api/verse/sessions/:id/turns */\nexport interface VerseTurnRequest {\n text: string;\n}\nexport interface VerseTurnResponse {\n turnId: string;\n session: VerseSession;\n}\n\n/** GET /api/verse/sessions/:id */\nexport interface VerseSessionDetail {\n session: VerseSession;\n events: VerseEvent[];\n}\n\n/** Adapter input: how to launch one turn. Pure data, produced by the engine, consumed by the spawner. */\nexport interface VerseTurnLaunch {\n argv: string[];\n cwd: string;\n /** Extra env layered over a minimal base (PATH/HOME/TMPDIR/LANG). Never contains secrets. */\n env: Record<string, string>;\n /** Text written to stdin (codex); null when the prompt is in argv. */\n stdin: string | null;\n}\n\nexport const VERSE_MAX_TURN_TEXT_BYTES = 64 * 1024;\nexport const VERSE_MAX_EVENTS_PER_SESSION = 20_000;\nexport const VERSE_TURN_TIMEOUT_MS = 30 * 60 * 1000;\n/**\n * LAST-RESORT fallbacks, used only when neither the runtime, the seat's own\n * catalog, nor the verified per-model table (core/verse/model-windows.ts) knows\n * the model. Each mirrors what the CLI ITSELF assumes for an unknown id, so the\n * meter never claims more than the CLI will allow:\n *\n * - claude 200_000 — Claude Code's `Mg()` default for an unrecognized model.\n * Every KNOWN Claude id carries its real window (1M for the 5.x family,\n * Opus 4.8 and Sonnet 5) in the per-model table instead.\n * - codex 258_400 — 272_000 × the 95% `effective_context_window_percent`\n * every codex catalog entry carries; the figure codex's own rollouts report\n * as `model_context_window` (65,440 of 65,440 observed events).\n * - grok 500_000 — `context_window` for every grok-4.x id in the seat catalog.\n * - local 65_536 — the num_ctx the default local tag pins.\n */\nexport const VERSE_DEFAULT_CONTEXT_WINDOWS: Record<string, number> = {\n claude: 200_000,\n codex: 258_400,\n grok: 500_000,\n local: 65_536,\n};\n\n// ---------------------------------------------------------------------------\n// V3.9 context orchestration — request/response shapes (docs/VERSE-CONTEXT.md)\n// ---------------------------------------------------------------------------\n\n/** GET /api/verse/preferences — the operator's standing context choices. */\nexport interface VersePreferences {\n version: 1;\n /** Per-seat default context mode for NEW sessions. Absent = `standard`. */\n seats: Record<string, { contextMode?: VerseContextMode }>;\n /** Shared project memory. On by default; listed canonical paths opt out. */\n memory: { enabled: boolean; disabledProjects: string[] };\n /**\n * V3.10 ADDITIVE. Stream vendor-summarised reasoning on non-local seats\n * (claude `--thinking-display summarized`). Absent = on (Mason's default).\n */\n thinkingDisplay?: boolean;\n}\n\n/**\n * POST /api/verse/preferences — exactly ONE of the three forms per request, so\n * a body can never change more than the operator clicked.\n */\nexport type VersePreferencesUpdate =\n | { seatId: string; contextMode: VerseContextMode }\n | { memoryEnabled: boolean }\n | { projectPath: string; memoryEnabled: boolean };\n\n/** POST /api/verse/sessions/:id/context-mode */\nexport interface VerseContextModeRequest {\n mode: VerseContextMode;\n}\n\n/** POST /api/verse/sessions/:id/handoff-preview */\nexport interface VerseHandoffPreviewRequest {\n /**\n * Include the latest assistant message verbatim (capped) as the agent's own\n * summary — used after \"Ask this seat to summarize\" produced one.\n */\n includeLastAssistant?: boolean;\n /** Optional operator focus line, e.g. \"finish the migration of X\". ≤ 500 chars. */\n focus?: string;\n}\n\n/** Deterministic, zero-spend handoff note built from the session's event log. */\nexport interface VerseHandoffPreview {\n sourceSessionId: string;\n sourceTitle: string;\n /** The exact text to send as turn 1 of the new session. ≤ VERSE_HANDOFF_MAX_CHARS. */\n text: string;\n stats: {\n chars: number;\n /** chars / 4, rounded up — the same estimator the fit badges use. */\n estTokens: number;\n turnsCovered: number;\n filesTouched: number;\n /** Sections dropped to respect the cap, by name; empty when nothing was cut. */\n truncated: string[];\n };\n}\n\nexport const VERSE_HANDOFF_MAX_CHARS = 12_000;\n\n/**\n * The canned turn behind \"Ask this seat to summarize first\". Shared by the UI\n * (which sends it as an ordinary turn through the normal spend chokepoint) and\n * the handoff builder (which must NOT carry it into the new session as the\n * operator's \"latest ask\" — the new chat would otherwise be told to write a\n * handoff note instead of continuing the work).\n *\n * Written so the reply is useful as turn 1 of a session that has NONE of this\n * context. It asks for no tool use on purpose: a summary that starts editing\n * files is not a summary, and a read-only turn is also the cheapest one.\n */\nexport const VERSE_HANDOFF_SUMMARY_REQUEST = [\n 'This conversation is about to continue in a fresh session that has none of its context.',\n 'Write the handoff note that new session should start from. Do not edit files or run commands for this — only write the note.',\n '',\n 'Cover, concretely:',\n '- The goal, and what \"done\" looks like.',\n '- Decisions made so far, each with the reason it was made.',\n '- Current state: what is finished, what is half-done, what is untested.',\n '- Files changed and anything not yet committed.',\n '- How to verify the work (exact commands).',\n '- Open questions, risks, and approaches already tried that did not work.',\n '',\n 'Keep it under 600 words. Prefer file paths and commands over prose.',\n].join('\\n');\n\n/** GET /api/verse/context-fit — how big the reachable code is, in tokens. */\nexport interface VerseContextFitRoot {\n path: string;\n /** Tracked text files counted (git ls-files, binaries and >1 MB files skipped). */\n files: number;\n bytes: number;\n estTokens: number;\n /** True when the scan hit its file or time cap; estTokens is then a floor. */\n truncated: boolean;\n}\n\nexport interface VerseContextFit {\n roots: VerseContextFitRoot[];\n totalEstTokens: number;\n /** Always 'bytes/4' today; named so a better estimator can be introduced honestly. */\n estimator: 'bytes/4';\n sampledAt: string;\n}\n\n/**\n * Per-model verdict for a working set (see context-math.ts `fitVerdict`):\n * fits in standard, tight in standard, fits only in expansive, or too big for\n * any single context (split the work).\n */\nexport type VerseFitVerdict = 'fits' | 'tight' | 'expansive' | 'split';\n\n/** GET /api/verse/search?q=&limit= — keyword search over past sessions. Zero spend. */\nexport interface VerseSearchHit {\n sessionId: string;\n title: string;\n projectPath: string;\n engine: VerseEngine;\n seq: number;\n at: string;\n kind: 'user' | 'assistant';\n /** ≤ 240 chars around the first match, whitespace-collapsed. */\n snippet: string;\n score: number;\n}\n\nexport interface VerseSearchResponse {\n query: string;\n hits: VerseSearchHit[];\n /** Sessions actually scanned (the scan is bounded; see session-search.ts). */\n scannedSessions: number;\n truncated: boolean;\n}\n\n/** GET/POST /api/verse/memory — shared project memory for one project. */\nexport interface VerseProjectMemory {\n projectPath: string;\n enabled: boolean;\n /** Contents of MEMORY.md ('' when absent). */\n content: string;\n bytes: number;\n updatedAt: string | null;\n /** Other files the agents created in the memory directory (names only). */\n files: string[];\n /**\n * Present (true) only when `content` as SENT differs from the bytes on disk:\n * the public-JSON sanitizer rewrote the home path to `~` or replaced a\n * secret-looking value with `[REDACTED]`. The file itself is untouched; a\n * save that would write placeholders over real values is refused (409\n * VERSE_MEMORY_REDACTED), so the editor must say so before the operator types.\n */\n contentSanitized?: boolean;\n}\n\n/** POST /api/verse/memory */\nexport interface VerseProjectMemoryWrite {\n projectPath: string;\n content: string;\n}\n\nexport const VERSE_MEMORY_MAX_BYTES = 64 * 1024;\n\n/**\n * POST /api/verse/memory's own JSON body cap: JSON escaping can double the\n * content (every newline becomes `\\\\n`), plus room for the other fields. Every\n * other route keeps the 64 KiB default. Shared so the browser's pre-check can\n * never refuse a save the server would accept.\n */\nexport const VERSE_MEMORY_BODY_MAX_BYTES = 2 * VERSE_MEMORY_MAX_BYTES + 8 * 1024;\n\n/** Cap on the memory block appended to each session's system prompt. */\nexport const VERSE_MEMORY_BLOCK_MAX_BYTES = 6 * 1024;\n"],"mappings":"AA2kBA,IAAa,EAAgB,CAAC,UAAW,MAAO,SAAU,OAAQ,QAAS,KAAK,EAyKnE,EAA2D,IAAI,IAAoB,CAN9F,iBACA,oBACA,WACA,QAG8F,CAAyB,EAOzH,SAAgB,EAAsB,EAAiD,CACrF,OAAO,EAA4B,IAAI,EAAM,IAAI,CACnD,CA+HA,IAAa,EAA4B,MAqF5B,EAA0B,KAa1B,EAAgC,CAC3C,0FACA,+HACA,GACA,qBACA,0CACA,6DACA,0EACA,kDACA,6CACA,2EACA,GACA,qEACF,CAAC,CAAC,KAAK;CAAI,EA4EE,EAAyB,MAQzB,EAA8B,OAG9B,EAA+B"}
@@ -1,2 +0,0 @@
1
- import{a as e,s as t}from"./index-afDA8cwW.js";import{c as n,k as r,s as i}from"./global-DVgMguLr.js";import{n as a}from"./control-queries-BGjarMm9.js";var o=t(e(),1);function s(e){return e instanceof n?`This server runs without dispatch, so that action is unavailable.`:e instanceof a?e.message:e instanceof i?e.status===401?"The mutation token was rejected. Unlock again with the token `ashlr verse` printed.":e.detail?e.detail:e.status===400?e.message:e.status===409?`The server refused the action, and sent no reason.`:e.message:e instanceof Error?e.message:`That action failed. Try again.`}function c(){let[e,t]=(0,o.useState)(!1),[i,a]=(0,o.useState)(null),[c,l]=(0,o.useState)(!1),[u,d]=(0,o.useState)(!1),[f,p]=(0,o.useState)(``),m=(0,o.useRef)(null),h=(0,o.useCallback)(async(e,r)=>{t(!0),a(null);try{let t=await e();r?.(t)}catch(e){e instanceof n?l(!0):a(s(e))}finally{t(!1)}},[]),g=(0,o.useCallback)((e,t,n)=>{a(null);let i=n;if(r()){h(e,i);return}m.current={fn:e,onResult:i},p(t),d(!0)},[h]),_=(0,o.useCallback)(()=>{d(!1);let e=m.current;m.current=null,e&&r()&&h(e.fn,e.onResult)},[h]);return{request:g,busy:e,error:i,clearError:(0,o.useCallback)(()=>a(null),[]),readOnly:c,tokenOpen:u,tokenReason:f,closeToken:_}}export{c as t};
2
- //# sourceMappingURL=use-guarded-action-CO_aAsed.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-guarded-action-CO_aAsed.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/autonomy/use-guarded-action.ts"],"sourcesContent":["/**\n * routes/verse/autonomy/use-guarded-action.ts — the one place a Verse control\n * surface turns \"the operator clicked something destructive\" into an actual\n * request. Shared by the Autonomy cockpit and the Approvals surface.\n *\n * It folds together the three things every mutating click in this app has to\n * do, which were previously re-implemented per call site:\n *\n * - **Token hand-off.** No mutation hold yet → remember the action, open\n * MutationTokenDialog, and run it once the token lands. The hold is read\n * LIVE on dialog close, never from a render-time snapshot, because\n * MutationTokenDialog's onClose fires before this component re-renders.\n * - **Read-only sessions.** Every POST 404s when the server was started\n * without dispatch. That is a session mode, not a failure, so it flips a\n * `readOnly` flag the surface renders as an explanation — never as an error\n * toast and never as a crash.\n * - **Busy + error state** for exactly one in-flight action at a time.\n */\nimport { useCallback, useRef, useState } from 'react';\nimport { hasMutationHold } from '../../../data/auth-store.js';\nimport { ApiError, DispatchDisabledError } from '../../../data/client.js';\nimport { VerseControlLockedError } from './control-queries.js';\n\nexport function describeControlError(err: unknown): string {\n if (err instanceof DispatchDisabledError) return 'This server runs without dispatch, so that action is unavailable.';\n if (err instanceof VerseControlLockedError) return err.message;\n if (err instanceof ApiError) {\n if (err.status === 401) return 'The mutation token was rejected. Unlock again with the token `ashlr verse` printed.';\n // The control plane writes a careful refusal ladder — \"no repositories are\n // enrolled, so the loop would do nothing. Add scope first.\" — and returns\n // it as `note` on the 409 body. A blanket \"something else is already\n // running\" replaced every one of those with a sentence that was usually\n // false and never actionable. Show the server's own words whenever it\n // sent any; the generic line is now only the last resort.\n if (err.detail) return err.detail;\n if (err.status === 400) return err.message;\n if (err.status === 409) return 'The server refused the action, and sent no reason.';\n return err.message;\n }\n return err instanceof Error ? err.message : 'That action failed. Try again.';\n}\n\nexport interface GuardedAction {\n /**\n * Run `fn`, prompting for the mutation token first when none is held.\n *\n * `onResult` receives `fn`'s resolved value when it succeeds. It exists\n * because the value was previously dropped on the floor, and for the daemon\n * routes that value carries the server's own account of what just happened\n * (`VerseDaemonActionResult.note` — e.g. that an ordinary stop also engaged\n * the global kill switch). It is not called when `fn` throws.\n */\n request: <T>(fn: () => Promise<T>, reason: string, onResult?: (result: T) => void) => void;\n busy: boolean;\n error: string | null;\n clearError: () => void;\n /** True once a POST 404'd — the server has no dispatch enabled. */\n readOnly: boolean;\n /** Bind these three to <MutationTokenDialog/>. */\n tokenOpen: boolean;\n tokenReason: string;\n closeToken: () => void;\n}\n\nexport function useGuardedAction(): GuardedAction {\n const [busy, setBusy] = useState(false);\n const [error, setError] = useState<string | null>(null);\n const [readOnly, setReadOnly] = useState(false);\n const [tokenOpen, setTokenOpen] = useState(false);\n const [tokenReason, setTokenReason] = useState('');\n // The deferred action and the callback that wants its result travel together\n // — the token dialog may run it a render later, long after `request` returned.\n const pending = useRef<{ fn: () => Promise<unknown>; onResult?: (result: never) => void } | null>(null);\n\n const perform = useCallback(\n async (fn: () => Promise<unknown>, onResult?: (result: never) => void) => {\n setBusy(true);\n setError(null);\n try {\n const result = await fn();\n onResult?.(result as never);\n } catch (err) {\n if (err instanceof DispatchDisabledError) setReadOnly(true);\n else setError(describeControlError(err));\n } finally {\n setBusy(false);\n }\n },\n [],\n );\n\n const request = useCallback(\n <T,>(fn: () => Promise<T>, reason: string, onResult?: (result: T) => void) => {\n setError(null);\n const handler = onResult as ((result: never) => void) | undefined;\n if (hasMutationHold()) {\n void perform(fn, handler);\n return;\n }\n pending.current = { fn, onResult: handler };\n setTokenReason(reason);\n setTokenOpen(true);\n },\n [perform],\n );\n\n const closeToken = useCallback(() => {\n setTokenOpen(false);\n const next = pending.current;\n pending.current = null;\n // Live read: the dialog closes synchronously after setToken().\n if (next && hasMutationHold()) void perform(next.fn, next.onResult);\n }, [perform]);\n\n const clearError = useCallback(() => setError(null), []);\n\n return { request, busy, error, clearError, readOnly, tokenOpen, tokenReason, closeToken };\n}\n"],"mappings":"uKAuBA,SAAgB,EAAqB,EAAsB,CAgBzD,OAfI,aAAe,EAA8B,oEAC7C,aAAe,EAAgC,EAAI,QACnD,aAAe,EACb,EAAI,SAAW,IAAY,sFAO3B,EAAI,OAAe,EAAI,OACvB,EAAI,SAAW,IAAY,EAAI,QAC/B,EAAI,SAAW,IAAY,qDACxB,EAAI,QAEN,aAAe,MAAQ,EAAI,QAAU,gCAC9C,CAwBA,SAAgB,GAAkC,CAChD,GAAM,CAAC,EAAM,IAAA,EAAW,EAAA,SAAA,CAAS,EAAK,EAChC,CAAC,EAAO,IAAA,EAAY,EAAA,SAAA,CAAwB,IAAI,EAChD,CAAC,EAAU,IAAA,EAAe,EAAA,SAAA,CAAS,EAAK,EACxC,CAAC,EAAW,IAAA,EAAgB,EAAA,SAAA,CAAS,EAAK,EAC1C,CAAC,EAAa,IAAA,EAAkB,EAAA,SAAA,CAAS,EAAE,EAG3C,GAAA,EAAU,EAAA,OAAA,CAAkF,IAAI,EAEhG,GAAA,EAAU,EAAA,YAAA,CACd,MAAO,EAA4B,IAAuC,CACxE,EAAQ,EAAI,EACZ,EAAS,IAAI,EACb,GAAI,CACF,IAAM,EAAS,MAAM,EAAG,EACxB,IAAW,CAAe,CAC5B,OAAS,EAAK,CACR,aAAe,EAAuB,EAAY,EAAI,EACrD,EAAS,EAAqB,CAAG,CAAC,CACzC,QAAU,CACR,EAAQ,EAAK,CACf,CACF,EACA,CAAC,CACH,EAEM,GAAA,EAAU,EAAA,YAAA,EACT,EAAsB,EAAgB,IAAmC,CAC5E,EAAS,IAAI,EACb,IAAM,EAAU,EAChB,GAAI,EAAgB,EAAG,CACrB,EAAa,EAAI,CAAO,EACxB,MACF,CACA,EAAQ,QAAU,CAAE,KAAI,SAAU,CAAQ,EAC1C,EAAe,CAAM,EACrB,EAAa,EAAI,CACnB,EACA,CAAC,CAAO,CACV,EAEM,GAAA,EAAa,EAAA,YAAA,KAAkB,CACnC,EAAa,EAAK,EAClB,IAAM,EAAO,EAAQ,QACrB,EAAQ,QAAU,KAEd,GAAQ,EAAgB,GAAG,EAAa,EAAK,GAAI,EAAK,QAAQ,CACpE,EAAG,CAAC,CAAO,CAAC,EAIZ,MAAO,CAAE,UAAS,OAAM,QAAO,YAAA,EAFZ,EAAA,YAAA,KAAkB,EAAS,IAAI,EAAG,CAAC,CAEvB,EAAY,WAAU,YAAW,cAAa,YAAW,CAC1F"}
@@ -1,2 +0,0 @@
1
- import{a as e,s as t}from"./index-afDA8cwW.js";import{c as n,k as r,s as i}from"./global-DVgMguLr.js";import{r as a}from"./verse-queries-BjQoOTwv.js";var o=t(e(),1);function s(){let[e,t]=(0,o.useState)({open:!1,reason:``}),n=(0,o.useRef)(null),i=(0,o.useCallback)((e,i)=>r()?i():(n.current?.cancel(),new Promise((r,a)=>{n.current={run:()=>{i().then(r,a)},cancel:()=>r(null)},t({open:!0,reason:e})})),[]),a=(0,o.useCallback)(()=>{t({open:!1,reason:``});let e=n.current;e&&setTimeout(()=>{n.current===e&&(n.current=null,e.cancel())},0)},[]),s=(0,o.useCallback)(()=>{let e=n.current;n.current=null,e?.run()},[]);return{run:i,dialog:{open:e.open,reason:e.reason,onClose:a,onUnlocked:s}}}function c(e){return e instanceof n?"This server is read-only (started without dispatch — run `ashlr verse`), or older than this console.":e instanceof a?`Unlock actions with the mutation token first.`:e instanceof i?e.status===401?"The mutation token was rejected. Unlock again with the token `ashlr verse` printed.":e.code===`VERSE_SESSION_NOT_FOUND`?`This chat no longer exists on the server — it may have been deleted. Refresh the chat list.`:e.detail?e.detail:e.status===404?"This server does not have that route yet — update Ashlr and restart `ashlr verse`.":e.status===409?`A turn is already running in this chat. Wait for it or stop it first.`:e.message:e instanceof Error&&e.message?e.message:`Something went wrong.`}export{s as n,c as t};
2
- //# sourceMappingURL=use-token-gate-DYA2-ALC.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-token-gate-DYA2-ALC.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/context/use-token-gate.ts"],"sourcesContent":["/**\n * routes/verse/context/use-token-gate.ts — the mutation-token hand-off for\n * the self-contained context surfaces (handoff dialog, memory panel).\n *\n * Same contract as ChatSection's `withToken`, extracted because these\n * components are mounted by OTHER owners (the workspace header, the resources\n * panel) that cannot thread a guard down to them:\n *\n * - a held token → the action runs now;\n * - no token → the action is parked, MutationTokenDialog opens with a reason\n * saying what the click will do, and the action runs once unlocked;\n * - the dialog dismissed → the promise resolves `null`, so the caller can\n * tell \"not done\" from \"done\" without an exception.\n *\n * The hold is read LIVE (`hasMutationHold()`), never from a render snapshot:\n * MutationTokenDialog calls `onClose` before `onUnlocked` in the same tick,\n * so a snapshot taken at render time is always one step behind.\n */\nimport { useCallback, useRef, useState } from 'react';\nimport { hasMutationHold } from '../../../data/auth-store.js';\nimport { ApiError, DispatchDisabledError } from '../../../data/client.js';\nimport { VerseMutationLockedError } from '../verse-queries.js';\n\nexport interface TokenGateDialogProps {\n open: boolean;\n reason: string;\n onClose: () => void;\n onUnlocked: () => void;\n}\n\nexport interface TokenGate {\n run<T>(reason: string, action: () => Promise<T>): Promise<T | null>;\n /** Spread onto <MutationTokenDialog />. */\n dialog: TokenGateDialogProps;\n}\n\nexport function useTokenGate(): TokenGate {\n const [prompt, setPrompt] = useState<{ open: boolean; reason: string }>({ open: false, reason: '' });\n const pending = useRef<{ run: () => void; cancel: () => void } | null>(null);\n\n const run = useCallback(<T,>(reason: string, action: () => Promise<T>): Promise<T | null> => {\n if (hasMutationHold()) return action();\n // A second click while the prompt is up supersedes the first: the earlier\n // caller is told \"not done\" rather than left waiting forever.\n pending.current?.cancel();\n return new Promise<T | null>((resolve, reject) => {\n pending.current = {\n run: () => { action().then(resolve, reject); },\n cancel: () => resolve(null),\n };\n setPrompt({ open: true, reason });\n });\n }, []);\n\n const onClose = useCallback(() => {\n setPrompt({ open: false, reason: '' });\n // onClose fires BEFORE onUnlocked on a successful submit, so only treat\n // this as a dismissal if nothing claimed the parked action by next tick.\n const parked = pending.current;\n if (!parked) return;\n setTimeout(() => {\n if (pending.current === parked) {\n pending.current = null;\n parked.cancel();\n }\n }, 0);\n }, []);\n\n const onUnlocked = useCallback(() => {\n const parked = pending.current;\n pending.current = null;\n parked?.run();\n }, []);\n\n return { run, dialog: { open: prompt.open, reason: prompt.reason, onClose, onUnlocked } };\n}\n\n/**\n * One sentence for a failed context action. Prefers the server's own words\n * (`ApiError.detail`), which the context routes write for a person.\n */\nexport function describeContextError(err: unknown): string {\n if (err instanceof DispatchDisabledError) {\n // A CODELESS 404 on a write: the dispatch gate, or a server that predates\n // this route — the two answer the same bare body by design (client.ts).\n // A missing chat is NOT this: it carries VERSE_SESSION_NOT_FOUND below.\n return 'This server is read-only (started without dispatch — run `ashlr verse`), or older than this console.';\n }\n if (err instanceof VerseMutationLockedError) return 'Unlock actions with the mutation token first.';\n if (err instanceof ApiError) {\n if (err.status === 401) return 'The mutation token was rejected. Unlock again with the token `ashlr verse` printed.';\n if (err.code === 'VERSE_SESSION_NOT_FOUND') return 'This chat no longer exists on the server — it may have been deleted. Refresh the chat list.';\n if (err.detail) return err.detail;\n if (err.status === 404) return 'This server does not have that route yet — update Ashlr and restart `ashlr verse`.';\n if (err.status === 409) return 'A turn is already running in this chat. Wait for it or stop it first.';\n return err.message;\n }\n return err instanceof Error && err.message ? err.message : 'Something went wrong.';\n}\n"],"mappings":"qKAoCA,SAAgB,GAA0B,CACxC,GAAM,CAAC,EAAQ,IAAA,EAAa,EAAA,SAAA,CAA4C,CAAE,KAAM,GAAO,OAAQ,EAAG,CAAC,EAC7F,GAAA,EAAU,EAAA,OAAA,CAAuD,IAAI,EAErE,GAAA,EAAM,EAAA,YAAA,EAAiB,EAAgB,IACvC,EAAgB,EAAU,EAAO,GAGrC,EAAQ,SAAS,OAAO,EACjB,IAAI,SAAmB,EAAS,IAAW,CAChD,EAAQ,QAAU,CAChB,QAAW,CAAE,EAAO,CAAC,CAAC,KAAK,EAAS,CAAM,CAAG,EAC7C,WAAc,EAAQ,IAAI,CAC5B,EACA,EAAU,CAAE,KAAM,GAAM,QAAO,CAAC,CAClC,CAAC,GACA,CAAC,CAAC,EAEC,GAAA,EAAU,EAAA,YAAA,KAAkB,CAChC,EAAU,CAAE,KAAM,GAAO,OAAQ,EAAG,CAAC,EAGrC,IAAM,EAAS,EAAQ,QAClB,GACL,eAAiB,CACX,EAAQ,UAAY,IACtB,EAAQ,QAAU,KAClB,EAAO,OAAO,EAElB,EAAG,CAAC,CACN,EAAG,CAAC,CAAC,EAEC,GAAA,EAAa,EAAA,YAAA,KAAkB,CACnC,IAAM,EAAS,EAAQ,QACvB,EAAQ,QAAU,KAClB,GAAQ,IAAI,CACd,EAAG,CAAC,CAAC,EAEL,MAAO,CAAE,MAAK,OAAQ,CAAE,KAAM,EAAO,KAAM,OAAQ,EAAO,OAAQ,UAAS,YAAW,CAAE,CAC1F,CAMA,SAAgB,EAAqB,EAAsB,CAgBzD,OAfI,aAAe,EAIV,uGAEL,aAAe,EAAiC,gDAChD,aAAe,EACb,EAAI,SAAW,IAAY,sFAC3B,EAAI,OAAS,0BAAkC,8FAC/C,EAAI,OAAe,EAAI,OACvB,EAAI,SAAW,IAAY,qFAC3B,EAAI,SAAW,IAAY,wEACxB,EAAI,QAEN,aAAe,OAAS,EAAI,QAAU,EAAI,QAAU,uBAC7D"}
@@ -1 +0,0 @@
1
- :root{--chart-series-1:var(--data-cat-1);--chart-series-2:var(--data-cat-2);--chart-series-3:var(--data-cat-3);--chart-series-4:var(--data-cat-4);--chart-series-5:var(--data-cat-5);--chart-series-6:var(--data-cat-6);--chart-neutral:var(--status-neutral-solid);--chart-seq-1:var(--data-seq-1);--chart-seq-2:var(--data-seq-2);--chart-seq-3:var(--data-seq-3);--chart-seq-4:var(--data-seq-4);--chart-seq-5:var(--data-seq-5);--chart-seq-6:var(--data-seq-6);--chart-seq-7:var(--data-seq-7);--chart-sequential:var(--chart-seq-5);--chart-sequential-soft:var(--chart-seq-3);--chart-diverging-pos:var(--chart-seq-5);--chart-diverging-neg:var(--status-danger-solid);--chart-diverging-mid:var(--border-strong);--chart-unknown:var(--status-unknown-solid);--chart-unknown-hatch:repeating-linear-gradient(135deg, var(--chart-unknown) 0 1px, transparent 1px 5px);--chart-queued-outline:var(--status-neutral-solid);--chart-grid:var(--border-subtle);--chart-axis:var(--border-strong);--chart-surface:var(--bg-surface);--chart-tooltip-bg:var(--bg-surface-raised);--chart-tooltip-border:var(--border-default);--chart-heat-0:var(--chart-grid);--chart-heat-1:var(--chart-seq-2);--chart-heat-2:var(--chart-seq-3);--chart-heat-3:var(--chart-seq-5);--chart-heat-4:var(--chart-seq-7);--chart-track:var(--chart-seq-1)}._table_x2yvy_1{border-collapse:collapse;width:100%;font-size:var(--text-xs-size)}._table_x2yvy_1 th,._table_x2yvy_1 td{text-align:left;padding:var(--space-1) var(--space-2);border-bottom:1px solid var(--border-subtle)}._table_x2yvy_1 th{color:var(--text-tertiary);font-weight:var(--font-weight-medium);text-transform:uppercase;letter-spacing:.04em;font-size:var(--text-xs-size)}._numeric_x2yvy_22{text-align:right;font-variant-numeric:tabular-nums}._empty_x2yvy_27{color:var(--text-tertiary);text-align:center}._plotWrap_1pkd1_3{width:100%;min-width:0;position:relative}._svg_1pkd1_9{max-width:100%;display:block;overflow:visible}._grid_1pkd1_15{stroke:var(--chart-grid);stroke-width:1px;shape-rendering:crispedges}._axis_1pkd1_21{stroke:var(--chart-axis);stroke-width:1px;shape-rendering:crispedges}._tick_1pkd1_27{font-family:var(--font-ui);font-size:var(--text-xs-size);fill:var(--text-tertiary);font-variant-numeric:tabular-nums}._label_1pkd1_34{font-family:var(--font-ui);font-size:var(--text-xs-size);fill:var(--text-secondary)}._labelStrong_1pkd1_40{font-family:var(--font-ui);font-size:var(--text-xs-size);font-weight:var(--font-weight-medium);fill:var(--text-primary)}._line_1pkd1_47{fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}._wash_1pkd1_54{stroke:none;opacity:.1}._reference_1pkd1_59{fill:none;stroke:var(--text-tertiary);stroke-width:1px;stroke-dasharray:4 3}._projection_1pkd1_66{fill:none;stroke-width:2px;stroke-dasharray:5 4;stroke-linecap:round}._marker_1pkd1_73{stroke:var(--chart-surface);stroke-width:2px}._crosshair_1pkd1_78{stroke:var(--chart-axis);stroke-width:1px;pointer-events:none}._hit_1pkd1_84{fill:#0000;cursor:default}._hit_1pkd1_84:focus{outline:none}._hit_1pkd1_84:focus-visible{stroke:var(--border-focus);stroke-width:2px}._focusable_1pkd1_98:focus{outline:none}._focusable_1pkd1_98:focus-visible{outline:2px solid var(--border-focus);outline-offset:2px;border-radius:var(--radius-sm)}._track_1pkd1_108{fill:var(--chart-track)}._noData_1pkd1_112{fill:none;stroke:var(--chart-grid);stroke-width:1px;stroke-dasharray:2 2}._tooltip_1pkd1_119{z-index:var(--z-dropdown);pointer-events:none;padding:var(--space-2);border:1px solid var(--chart-tooltip-border);border-radius:var(--radius-sm);background:var(--chart-tooltip-bg);box-shadow:var(--shadow-md);color:var(--text-primary);font-size:var(--text-xs-size);white-space:nowrap;position:absolute;transform:translate(-50%,calc(-100% - 8px))}._tooltipTitle_1pkd1_134{color:var(--text-tertiary);margin-bottom:var(--space-1)}._tooltipRow_1pkd1_139{align-items:center;gap:var(--space-2);display:flex}._tooltipKey_1pkd1_145{border-radius:2px;flex:none;width:8px;height:8px}._tooltipValue_1pkd1_152{padding-left:var(--space-3);font-weight:var(--font-weight-semibold);font-variant-numeric:tabular-nums;margin-left:auto}._tooltipMuted_1pkd1_159{color:var(--text-tertiary);font-style:italic}._legend_1pkd1_164{gap:var(--space-1) var(--space-3);margin:var(--space-2) 0 0;font-size:var(--text-xs-size);color:var(--text-secondary);flex-wrap:wrap;padding:0;list-style:none;display:flex}._legendItem_1pkd1_175{align-items:center;gap:var(--space-1);display:inline-flex}._swatch_1pkd1_181{border-radius:2px;flex:none;width:10px;height:10px}._swatchLine_1pkd1_188{flex:none;width:12px;height:2px}._swatchEmpty_1pkd1_194{border:1px dashed var(--chart-axis);border-radius:2px;flex:none;width:10px;height:10px}._note_1pkd1_202{margin:var(--space-2) 0 0;font-size:var(--text-xs-size);color:var(--text-tertiary)}._srOnly_1pkd1_208{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (prefers-reduced-motion:no-preference){._animated_1pkd1_221{transition:opacity .12s}}._monogram_1pkd1_227{font-family:var(--font-display);font-size:var(--text-2xs-size);font-weight:var(--font-weight-semibold);fill:var(--text-secondary)}._unknownMark_1pkd1_235{stroke:var(--chart-unknown);stroke-width:1px}._swatchHatch_1pkd1_241{border:1px solid var(--chart-unknown);background:var(--chart-unknown-hatch);border-radius:2px;flex:none;width:10px;height:10px}._halo_1pkd1_252{paint-order:stroke;stroke:var(--chart-surface);stroke-width:3px;stroke-linejoin:round}._frame_it6x9_1{border:1px solid var(--border-subtle);border-radius:var(--radius-lg);background:var(--bg-surface);min-width:0;padding:var(--card-pad,var(--space-4));margin:0}._header_it6x9_11{justify-content:space-between;align-items:flex-start;gap:var(--space-3);margin-bottom:var(--space-3);flex-wrap:wrap;display:flex}._actions_it6x9_20{align-items:center;gap:var(--space-2);flex:none;margin-left:auto;display:inline-flex}._menuWrap_it6x9_28{display:inline-flex;position:relative}._more_it6x9_34{width:calc(var(--control-h-xs,20px) + 4px);height:calc(var(--control-h-xs,20px) + 4px);border-radius:var(--radius-sm);color:var(--text-tertiary);cursor:pointer;transition:background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);background:0 0;border:1px solid #0000;justify-content:center;align-items:center;padding:0;display:inline-flex}._more_it6x9_34:hover,._more_it6x9_34[aria-expanded=true]{background:var(--bg-hover);color:var(--text-primary)}._more_it6x9_34:focus-visible{outline:2px solid var(--border-focus);outline-offset:1px}._menu_it6x9_28{top:calc(100% + var(--space-1));z-index:var(--z-dropdown);min-width:176px;padding:var(--space-1);border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-surface-raised);box-shadow:var(--shadow-menu);flex-direction:column;display:flex;position:absolute;right:0}._menuItem_it6x9_75{align-items:center;gap:var(--space-2);padding:var(--space-1) var(--space-2);border-radius:var(--radius-sm);color:var(--text-primary);font:inherit;font-size:var(--text-xs-size);line-height:var(--text-xs-line);text-align:left;cursor:pointer;background:0 0;border:0;display:flex}._menuItem_it6x9_75:hover,._menuItem_it6x9_75:focus-visible{background:var(--bg-hover);outline:none}._check_it6x9_97{width:1em;color:var(--text-secondary)}._hint_it6x9_102{padding:0 var(--space-1);border:1px solid var(--border-subtle);border-radius:var(--radius-xs,3px);color:var(--text-tertiary);font-family:var(--font-mono);font-size:var(--text-2xs-size);margin-left:auto}._heading_it6x9_112{flex-direction:column;gap:2px;min-width:0;display:flex}._title_it6x9_119{font-size:var(--text-sm-size);font-weight:var(--font-weight-semibold);color:var(--text-primary)}._description_it6x9_125{font-size:var(--text-xs-size);color:var(--text-tertiary)}._plot_it6x9_130{width:100%;min-width:0;position:relative}._table_it6x9_136{max-height:360px;overflow:auto}._caveat_it6x9_141{margin:0 0 var(--space-3);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);background:var(--status-unknown-bg);color:var(--status-unknown-fg);font-size:var(--text-xs-size);line-height:var(--text-sm-line)}._state_it6x9_151{padding:var(--space-6) var(--space-3);text-align:center;color:var(--text-tertiary);font-size:var(--text-sm-size);margin:0}._dark_it6x9_159{gap:var(--space-1);flex-direction:column;align-items:center;display:flex}._darkTitle_it6x9_166{color:var(--text-secondary);font-weight:var(--font-weight-semibold);margin:0}._darkBody_it6x9_172{font-size:var(--text-xs-size);max-width:44ch;margin:0}._unknown_it6x9_178{color:var(--status-unknown-fg)}
@@ -1,2 +0,0 @@
1
- import{a as e,n as t,s as n}from"./index-afDA8cwW.js";import{d as r,f as i}from"./colors-B-vHsX1S.js";var a=n(e(),1),o=t();function s(e){if(!Number.isFinite(e))return`—`;let t=Math.abs(e);return t>=1e6?`${(e/1e6).toFixed(t>=1e7?0:1)}M`:t>=1e4?`${Math.round(e/1e3)}K`:t>=1e3?e.toLocaleString(`en-US`):Number.isInteger(e)?String(e):e.toFixed(1)}function c(e){if(!Number.isFinite(e))return`—`;let t=Math.abs(e),n=e<0?`-`:``;return t>=1e6?`${n}$${(t/1e6).toFixed(1)}M`:t>=1e3?`${n}$${(t/1e3).toFixed(1)}K`:`${n}$${t.toFixed(2)}`}function l(e,t=0){return Number.isFinite(e)?`${(e*100).toFixed(t)}%`:`—`}function u(e){if(!Number.isFinite(e))return`—`;let t=s(Math.abs(e));return e>0?`+${t}`:e<0?`-${t}`:t}function d(e){if(!/^\d{4}-\d{2}-\d{2}$/.test(e))return e;let t=new Date(`${e}T00:00:00Z`);return Number.isNaN(t.getTime())||t.toISOString().slice(0,10)!==e?e:t.toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,timeZone:`UTC`})}function f(e){let t=new Date(e);return Number.isNaN(t.getTime())?``:t.toLocaleDateString(`en-US`,{month:`short`,day:`numeric`})}var p={table:`_table_x2yvy_1`,numeric:`_numeric_x2yvy_22`,empty:`_empty_x2yvy_27`};function m({caption:e,columns:t,rows:n,rowKey:r,emptyMessage:i=`No rows.`}){return(0,o.jsxs)(`table`,{className:p.table,children:[(0,o.jsx)(`caption`,{className:`visually-hidden`,children:e}),(0,o.jsx)(`thead`,{children:(0,o.jsx)(`tr`,{children:t.map(e=>(0,o.jsx)(`th`,{scope:`col`,className:e.numeric?p.numeric:void 0,children:e.label},e.key))})}),(0,o.jsxs)(`tbody`,{children:[n.length===0?(0,o.jsx)(`tr`,{children:(0,o.jsx)(`td`,{colSpan:Math.max(1,t.length),className:p.empty,children:i})}):null,n.map((e,n)=>(0,o.jsx)(`tr`,{children:t.map(t=>(0,o.jsx)(`td`,{className:t.numeric?p.numeric:void 0,children:t.render(e)},t.key))},r(e,n)))]})]})}var h={plotWrap:`_plotWrap_1pkd1_3`,svg:`_svg_1pkd1_9`,grid:`_grid_1pkd1_15`,axis:`_axis_1pkd1_21`,tick:`_tick_1pkd1_27`,label:`_label_1pkd1_34`,labelStrong:`_labelStrong_1pkd1_40`,line:`_line_1pkd1_47`,wash:`_wash_1pkd1_54`,reference:`_reference_1pkd1_59`,projection:`_projection_1pkd1_66`,marker:`_marker_1pkd1_73`,crosshair:`_crosshair_1pkd1_78`,hit:`_hit_1pkd1_84`,focusable:`_focusable_1pkd1_98`,track:`_track_1pkd1_108`,noData:`_noData_1pkd1_112`,tooltip:`_tooltip_1pkd1_119`,tooltipTitle:`_tooltipTitle_1pkd1_134`,tooltipRow:`_tooltipRow_1pkd1_139`,tooltipKey:`_tooltipKey_1pkd1_145`,tooltipValue:`_tooltipValue_1pkd1_152`,tooltipMuted:`_tooltipMuted_1pkd1_159`,legend:`_legend_1pkd1_164`,legendItem:`_legendItem_1pkd1_175`,swatch:`_swatch_1pkd1_181`,swatchLine:`_swatchLine_1pkd1_188`,swatchEmpty:`_swatchEmpty_1pkd1_194`,note:`_note_1pkd1_202`,srOnly:`_srOnly_1pkd1_208`,animated:`_animated_1pkd1_221`,monogram:`_monogram_1pkd1_227`,unknownMark:`_unknownMark_1pkd1_235`,swatchHatch:`_swatchHatch_1pkd1_241`,halo:`_halo_1pkd1_252`};function g({items:e,min:t=2}){return e.length<t?null:(0,o.jsx)(`ul`,{className:h.legend,children:e.map(e=>(0,o.jsxs)(`li`,{className:h.legendItem,children:[(0,o.jsx)(`span`,{"aria-hidden":`true`,className:e.kind===`line`?h.swatchLine:e.kind===`empty`?h.swatchEmpty:e.kind===`hatch`?h.swatchHatch:h.swatch,style:e.kind===`empty`||e.kind===`hatch`?void 0:{background:e.color}}),e.label]},e.label))})}function _({left:e,top:t,title:n,rows:r}){return(0,o.jsxs)(`div`,{className:h.tooltip,style:{left:e,top:t},role:`presentation`,children:[(0,o.jsx)(`div`,{className:h.tooltipTitle,children:n}),r.map(e=>(0,o.jsxs)(`div`,{className:h.tooltipRow,children:[e.color?(0,o.jsx)(`span`,{className:h.tooltipKey,style:{background:e.color},"aria-hidden":`true`}):null,(0,o.jsx)(`span`,{children:e.label}),e.value===null?(0,o.jsx)(`span`,{className:`${h.tooltipValue} ${h.tooltipMuted}`,children:`no data`}):(0,o.jsx)(`span`,{className:h.tooltipValue,children:e.value})]},e.key))]})}function v(e,t,n=70){return Math.min(Math.max(e,Math.min(n,t/2)),Math.max(t-n,t/2))}function y({id:e}){let{size:t,angle:n,strokeWidth:i,stroke:a}=r;return(0,o.jsx)(`pattern`,{id:e,width:t,height:t,patternUnits:`userSpaceOnUse`,patternTransform:`rotate(${n})`,children:(0,o.jsx)(`line`,{x1:0,y1:0,x2:0,y2:t,stroke:a,strokeWidth:i})})}var b={claude:`C`,codex:`X`,grok:`G`,local:`L`};function x({engine:e,x:t,y:n,height:r}){return(0,o.jsxs)(`g`,{"data-engine":e,"aria-hidden":`true`,children:[(0,o.jsx)(`rect`,{x:t,y:n,width:2,height:r,rx:1,fill:i(e)}),(0,o.jsx)(`text`,{className:h.monogram,x:t+6,y:n+r/2,dy:`0.34em`,children:b[e]})]})}function S(){return(0,o.jsxs)(`svg`,{width:16,height:16,viewBox:`0 0 16 16`,"aria-hidden":`true`,focusable:`false`,children:[(0,o.jsx)(`circle`,{cx:3.5,cy:8,r:1.4,fill:`currentColor`}),(0,o.jsx)(`circle`,{cx:8,cy:8,r:1.4,fill:`currentColor`}),(0,o.jsx)(`circle`,{cx:12.5,cy:8,r:1.4,fill:`currentColor`})]})}var C={frame:`_frame_it6x9_1`,header:`_header_it6x9_11`,actions:`_actions_it6x9_20`,menuWrap:`_menuWrap_it6x9_28`,more:`_more_it6x9_34`,menu:`_menu_it6x9_28`,menuItem:`_menuItem_it6x9_75`,check:`_check_it6x9_97`,hint:`_hint_it6x9_102`,heading:`_heading_it6x9_112`,title:`_title_it6x9_119`,description:`_description_it6x9_125`,plot:`_plot_it6x9_130`,table:`_table_it6x9_136`,caveat:`_caveat_it6x9_141`,state:`_state_it6x9_151`,dark:`_dark_it6x9_159`,darkTitle:`_darkTitle_it6x9_166`,darkBody:`_darkBody_it6x9_172`,unknown:`_unknown_it6x9_178`};function w(e){return d(e.slice(0,10))}function T({status:e}){switch(e.kind){case`loading`:return(0,o.jsx)(`p`,{className:C.state,"aria-busy":`true`,children:`Loading…`});case`empty`:return(0,o.jsx)(`p`,{className:C.state,children:e.message??`Nothing happened in this window.`});case`dark`:return(0,o.jsxs)(`div`,{className:`${C.state} ${C.dark}`,children:[(0,o.jsxs)(`p`,{className:C.darkTitle,children:[e.subject??`Fleet`,` dark since `,w(e.since)]}),(0,o.jsx)(`p`,{className:C.darkBody,children:e.detail??`No runs or proposals have been recorded since then.`})]});case`unknown`:return(0,o.jsxs)(`p`,{className:`${C.state} ${C.unknown}`,role:`note`,children:[`Unknown — `,e.reason??`the data source could not be read.`,` Nothing is shown rather than a guess.`]})}}function E(e){if(!(e instanceof HTMLElement))return!1;let t=e.tagName;return t===`INPUT`||t===`TEXTAREA`||t===`SELECT`||e.isContentEditable}var D=[{view:`chart`,label:`Show as chart`,hint:null},{view:`table`,label:`Show as table`,hint:`T`}];function O({title:e,view:t,onPick:n}){let[r,i]=(0,a.useState)(!1),[s,c]=(0,a.useState)(0),l=(0,a.useRef)(null),u=(0,a.useRef)(null),d=(0,a.useId)(),f=(0,a.useCallback)(e=>{i(!1),e&&l.current?.focus()},[]);(0,a.useEffect)(()=>{if(!r)return;let e=e=>{let t=e.target;t&&(u.current?.contains(t)||l.current?.contains(t))||i(!1)};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[r]),(0,a.useEffect)(()=>{r&&u.current?.querySelectorAll(`[role="menuitemradio"]`)[s]?.focus()},[r,s]);function p(e){c(e),i(!0)}function m(e){(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(e.preventDefault(),p(e.key===`ArrowUp`?D.length-1:0))}function h(e){e.key===`ArrowDown`?(e.preventDefault(),c(e=>(e+1)%D.length)):e.key===`ArrowUp`?(e.preventDefault(),c(e=>(e-1+D.length)%D.length)):e.key===`Home`?(e.preventDefault(),c(0)):e.key===`End`?(e.preventDefault(),c(D.length-1)):e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),f(!0)):e.key===`Tab`&&f(!1)}return(0,o.jsxs)(`span`,{className:C.menuWrap,children:[(0,o.jsx)(`button`,{ref:l,type:`button`,className:C.more,"aria-label":`${e}: view options`,"aria-haspopup":`menu`,"aria-expanded":r,"aria-controls":r?d:void 0,title:`View options (T toggles the table)`,onClick:()=>r?f(!1):p(Math.max(0,D.findIndex(e=>e.view===t))),onKeyDown:m,children:(0,o.jsx)(S,{})}),r?(0,o.jsx)(`div`,{ref:u,id:d,role:`menu`,"aria-label":`${e} view`,className:C.menu,onKeyDown:h,children:D.map((e,r)=>(0,o.jsxs)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":t===e.view,tabIndex:r===s?0:-1,className:C.menuItem,onClick:()=>{n(e.view),f(!0)},children:[(0,o.jsx)(`span`,{className:C.check,"aria-hidden":`true`,children:t===e.view?`✓`:``}),(0,o.jsx)(`span`,{children:e.label}),e.hint?(0,o.jsx)(`kbd`,{className:C.hint,children:e.hint}):null]},e.view))}):null]})}function k({title:e,description:t,caveat:n,status:r={kind:`ready`},defaultView:i=`chart`,hideToggle:s=!1,actions:c,children:l,table:u,footer:d}){let[f,p]=(0,a.useState)(i),m=(0,a.useId)(),h=r.kind===`ready`,g=h&&!s;function _(e){g&&!e.defaultPrevented&&(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey||e.key.toLowerCase()!==`t`||E(e.target)||(e.preventDefault(),p(e=>e===`chart`?`table`:`chart`)))}return(0,o.jsxs)(`figure`,{className:C.frame,"aria-labelledby":m,"data-chart-card":``,"data-view":f,onKeyDown:_,children:[(0,o.jsxs)(`figcaption`,{className:C.header,children:[(0,o.jsxs)(`span`,{className:C.heading,children:[(0,o.jsx)(`span`,{id:m,className:C.title,children:e}),t?(0,o.jsx)(`span`,{className:C.description,children:t}):null]}),c||g?(0,o.jsxs)(`span`,{className:C.actions,children:[c,g?(0,o.jsx)(O,{title:e,view:f,onPick:p}):null]}):null]}),n?(0,o.jsx)(`p`,{className:C.caveat,role:`note`,children:n}):null,h?f===`table`?(0,o.jsx)(`div`,{className:C.table,children:u}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(`div`,{className:C.plot,children:l}),d]}):(0,o.jsx)(T,{status:r})]})}function A(e,t,n=4){if(!Number.isFinite(e)||!Number.isFinite(t))return[0];if(t<e&&([e,t]=[t,e]),t===e){if(t===0)return[0,1];let r=Math.abs(t)*.5;return A(Math.min(0,e-r),t+r,n)}let r=(t-e)/Math.max(1,n),i=10**Math.floor(Math.log10(r)),a=r/i,o=(a<=1?1:a<=2?2:a<=2.5?2.5:a<=5?5:10)*i,s=Math.floor(e/o)*o,c=Math.ceil(t/o)*o,l=[],u=Math.max(0,-Math.floor(Math.log10(o))+1);for(let e=s;e<=c+o/2;e+=o)l.push(Number(e.toFixed(u)));return l}function j(e,t,n,r){let i=t-e;return i===0?()=>(n+r)/2:t=>n+(t-e)/i*(r-n)}function M(e,t){if(e<=0)return[];if(t<=1)return[e-1];if(e<=t)return Array.from({length:e},(e,t)=>t);let n=Math.ceil((e-1)/(t-1)),r=[];for(let t=e-1;t>=0;t-=n)r.push(t);return r.reverse()}function N(e,t,n){return Math.min(n,Math.max(t,e))}function P(e){let t=[],n=[];for(let r of e){if(r.y===null||!Number.isFinite(r.y)){n.length&&t.push(n),n=[];continue}n.push({x:r.x,y:r.y})}return n.length&&t.push(n),t}function F(e){return e.map((e,t)=>`${t===0?`M`:`L`}${L(e.x)},${L(e.y)}`).join(` `)}function I(e,t){if(e.length===0)return``;let n=[...t].reverse();return`${F(e)} ${n.map(e=>`L${L(e.x)},${L(e.y)}`).join(` `)} Z`}function L(e){return Math.round(e*10)/10}function R(e){let t=0,n=!1,r=0,i=[];return e.forEach((e,a)=>{if(e===null||!Number.isFinite(e)){n=!0;return}r++;let o=Math.max(0,e);o>0&&i.push({index:a,value:o,y0:t,y1:t+o}),t+=o}),{segments:i,total:t,incomplete:n,unknown:r===0&&e.length>0}}function z(e,t,n,r,i=4){if(r<=0||n<=0)return``;let a=Math.max(0,Math.min(i,n/2,r));return[`M${L(e)},${L(t+r)}`,`L${L(e)},${L(t+a)}`,`Q${L(e)},${L(t)} ${L(e+a)},${L(t)}`,`L${L(e+n-a)},${L(t)}`,`Q${L(e+n)},${L(t)} ${L(e+n)},${L(t+a)}`,`L${L(e+n)},${L(t+r)}`,`Z`].join(` `)}function B(e,t,n,r,i=4){if(r<=0||n<=0)return``;let a=Math.max(0,Math.min(i,r/2,n));return[`M${L(e)},${L(t)}`,`L${L(e+n-a)},${L(t)}`,`Q${L(e+n)},${L(t)} ${L(e+n)},${L(t+a)}`,`L${L(e+n)},${L(t+r-a)}`,`Q${L(e+n)},${L(t+r)} ${L(e+n-a)},${L(t+r)}`,`L${L(e)},${L(t+r)}`,`Z`].join(` `)}function V(e){let t=e[0]??null;return e.map((n,r)=>{let i=r>0?e[r-1]??null:null;return{value:n,ofFirst:n!==null&&t!==null&&t>0?n/t:null,ofPrevious:r>0&&n!==null&&i!==null&&i>0?n/i:null}})}var H=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function U(e){if(!/^\d{4}-\d{2}-\d{2}$/.test(e))return null;let t=Date.parse(`${e}T00:00:00Z`);return Number.isFinite(t)&&new Date(t).toISOString().slice(0,10)===e?t:null}function W(e,t=1){let n=new Map,r=1/0,i=-1/0;for(let t of e){let e=U(t.day);e!==null&&(n.set(t.day,t.value),r=Math.min(r,e),i=Math.max(i,e))}if(!Number.isFinite(r))return{cells:[],weeks:0,months:[]};let a=864e5,o=(new Date(r).getUTCDay()-t+7)%7,s=r-o*a,c=(new Date(i).getUTCDay()-t+7)%7,l=i+(6-c)*a,u=[],d=[],f=-1;for(let e=s,t=0;e<=l;e+=a,t++){let a=new Date(e).toISOString().slice(0,10),o=Math.floor(t/7),s=t%7,c=e<r||e>i;u.push({day:a,value:c?null:n.has(a)?n.get(a):null,week:o,weekday:s,outside:c});let l=new Date(e).getUTCMonth();!c&&l!==f&&(d.push({week:o,label:H[l]}),f=l)}return{cells:u,weeks:Math.floor((l-s)/a/7)+1,months:d}}function G(e,t,n=4){return e===null||!Number.isFinite(e)?null:e<=0||t<=0?0:N(Math.ceil(e/t*n),1,n)}function K(e,t,n={}){let r=e.filter(e=>e.remaining!==null&&Number.isFinite(e.remaining)&&Number.isFinite(e.t)).sort((e,t)=>e.t-t.t),i=r.length?r[r.length-1]:null,a=r.slice(-(n.window??6));if(!i||a.length<2)return{slopePerMs:null,exhaustAt:null,reserveAt:null,remainingAtReset:null,from:i};let o=a.length,s=a.reduce((e,t)=>e+t.t,0)/o,c=a.reduce((e,t)=>e+t.remaining,0)/o,l=0,u=0;for(let e of a)l+=(e.t-s)*(e.remaining-c),u+=(e.t-s)**2;let d=u===0?0:l/u,f=e=>{if(d>=0||i.remaining<=e)return i.remaining<=e?i.t:null;let n=i.t+(e-i.remaining)/d;return n<=t?n:null},p=n.reserve??null;return{slopePerMs:d,exhaustAt:f(0),reserveAt:p===null?null:f(p),remainingAtReset:Math.max(0,i.remaining+d*Math.max(0,t-i.t)),from:i}}function q(e,t,n,r){return{x:e+n*Math.cos(r),y:t-n*Math.sin(r)}}function J(e,t,n,r,i){let a=N(r,0,1),o=N(i,0,1);if(o<=a)return``;let s=q(e,t,n,Math.PI*(1-a)),c=q(e,t,n,Math.PI*(1-o));return`M${L(s.x)},${L(s.y)} A${n},${n} 0 0 1 ${L(c.x)},${L(c.y)}`}function Y(e,t,n){return e===null||!Number.isFinite(e)?`unknown`:e>=n?`danger`:e>=t?`warn`:`ok`}function X(e,t,n=640){let[r,i]=(0,a.useState)(null),[o,s]=(0,a.useState)(null);return(0,a.useLayoutEffect)(()=>{e.current!==o&&s(e.current)}),(0,a.useLayoutEffect)(()=>{if(t!==void 0)return;let e=o;if(!e)return;let n=()=>{let t=Math.floor(e.getBoundingClientRect().width);t>0&&i(e=>e===t?e:t)};if(n(),typeof ResizeObserver>`u`)return;let r=0,a=new ResizeObserver(()=>{cancelAnimationFrame(r),r=requestAnimationFrame(n)});return a.observe(e),()=>{cancelAnimationFrame(r),a.disconnect()}},[o,t]),Math.max(280,t??r??n)}export{f as A,v as C,d as D,s as E,l as O,y as S,m as T,M as _,J as a,_ as b,F as c,q as d,K as f,R as g,P as h,V as i,c as j,u as k,j as l,z as m,I as n,Y as o,B as p,W as r,G as s,X as t,A as u,k as v,h as w,x,g as y};
2
- //# sourceMappingURL=useChartWidth-MEXvDxDL.js.map