@ashlr/phantom 3.29.11 → 3.29.12

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 (988) hide show
  1. package/CHANGELOG.md +13 -1
  2. package/README.md +1 -1
  3. package/dist/authority-surface.json +3 -3
  4. package/dist/build-identity.json +2 -2
  5. package/dist/core/verse/seats.js +22 -0
  6. package/dist/core/verse/seats.js.map +1 -1
  7. package/dist/core/verse/types.d.ts +4 -0
  8. package/dist/core/verse/types.js.map +1 -1
  9. package/dist/core/web/public/next/.vite/manifest.json +1583 -1584
  10. package/dist/core/web/public/next/assets/ActionMenu-ndTVgclw.js +2 -0
  11. package/dist/core/web/public/next/assets/ActionMenu-ndTVgclw.js.map +1 -0
  12. package/dist/core/web/public/next/assets/AdoptionPanel-BRI70tCD.js +2 -0
  13. package/dist/core/web/public/next/assets/AdoptionPanel-BRI70tCD.js.map +1 -0
  14. package/dist/core/web/public/next/assets/Advanced-CPQDkDp2.js +2 -0
  15. package/dist/core/web/public/next/assets/Advanced-CPQDkDp2.js.map +1 -0
  16. package/dist/core/web/public/next/assets/AgentDetailScreen-BajHX_zP.js +2 -0
  17. package/dist/core/web/public/next/assets/AgentDetailScreen-BajHX_zP.js.map +1 -0
  18. package/dist/core/web/public/next/assets/AgentToolsSheet-CDRxqBYo.js +2 -0
  19. package/dist/core/web/public/next/assets/AgentToolsSheet-CDRxqBYo.js.map +1 -0
  20. package/dist/core/web/public/next/assets/AgentToolsStrip-C11xsaQ1.js +2 -0
  21. package/dist/core/web/public/next/assets/AgentToolsStrip-C11xsaQ1.js.map +1 -0
  22. package/dist/core/web/public/next/assets/AgentsScreen-Bh1D3jIW.js +2 -0
  23. package/dist/core/web/public/next/assets/AgentsScreen-Bh1D3jIW.js.map +1 -0
  24. package/dist/core/web/public/next/assets/AgentsSection-CoFo2IdX.js +4 -0
  25. package/dist/core/web/public/next/assets/AgentsSection-CoFo2IdX.js.map +1 -0
  26. package/dist/core/web/public/next/assets/App-Bk_T4YL5.js +8 -0
  27. package/dist/core/web/public/next/assets/App-Bk_T4YL5.js.map +1 -0
  28. package/dist/core/web/public/next/assets/AppsSection-CP10iC5R.js +2 -0
  29. package/dist/core/web/public/next/assets/AppsSection-CP10iC5R.js.map +1 -0
  30. package/dist/core/web/public/next/assets/AreaTrend-CLD_T9oq.js +2 -0
  31. package/dist/core/web/public/next/assets/AreaTrend-CLD_T9oq.js.map +1 -0
  32. package/dist/core/web/public/next/assets/AutomationsSection-Y7M7MN_E.js +2 -0
  33. package/dist/core/web/public/next/assets/AutomationsSection-Y7M7MN_E.js.map +1 -0
  34. package/dist/core/web/public/next/assets/AutonomyOffState-8kk1CmW_.js +3 -0
  35. package/dist/core/web/public/next/assets/AutonomyOffState-8kk1CmW_.js.map +1 -0
  36. package/dist/core/web/public/next/assets/AutonomySection-BlJbzQkZ.js +2 -0
  37. package/dist/core/web/public/next/assets/AutonomySection-BlJbzQkZ.js.map +1 -0
  38. package/dist/core/web/public/next/assets/AutonomyStatus-g0ZWZmej.js +2 -0
  39. package/dist/core/web/public/next/assets/AutonomyStatus-g0ZWZmej.js.map +1 -0
  40. package/dist/core/web/public/next/assets/BranchBar-CLmClvdu.js +2 -0
  41. package/dist/core/web/public/next/assets/BranchBar-CLmClvdu.js.map +1 -0
  42. package/dist/core/web/public/next/assets/BrowserPanel-W6c7mdlY.js +7 -0
  43. package/dist/core/web/public/next/assets/BrowserPanel-W6c7mdlY.js.map +1 -0
  44. package/dist/core/web/public/next/assets/BudgetControl-DaY0ir4A.js +2 -0
  45. package/dist/core/web/public/next/assets/BudgetControl-DaY0ir4A.js.map +1 -0
  46. package/dist/core/web/public/next/assets/Button-CnmMhe43.js +2 -0
  47. package/dist/core/web/public/next/assets/Button-CnmMhe43.js.map +1 -0
  48. package/dist/core/web/public/next/assets/CapacityStrip-BtFP9SZH.js +2 -0
  49. package/dist/core/web/public/next/assets/CapacityStrip-BtFP9SZH.js.map +1 -0
  50. package/dist/core/web/public/next/assets/ChangesPaneHost-DFhEj__f.js +16 -0
  51. package/dist/core/web/public/next/assets/ChangesPaneHost-DFhEj__f.js.map +1 -0
  52. package/dist/core/web/public/next/assets/ChartFrame-CH6RwT4W.js +2 -0
  53. package/dist/core/web/public/next/assets/ChartFrame-CH6RwT4W.js.map +1 -0
  54. package/dist/core/web/public/next/assets/ChatPanes-CNkNILza.js +2 -0
  55. package/dist/core/web/public/next/assets/ChatPanes-CNkNILza.js.map +1 -0
  56. package/dist/core/web/public/next/assets/ChatResizer-gExEEUeF.js +2 -0
  57. package/dist/core/web/public/next/assets/ChatResizer-gExEEUeF.js.map +1 -0
  58. package/dist/core/web/public/next/assets/ChatSection-Dd4HRKYs.js +3 -0
  59. package/dist/core/web/public/next/assets/ChatSection-Dd4HRKYs.js.map +1 -0
  60. package/dist/core/web/public/next/assets/ChecksPanel-H13il4xW.js +5 -0
  61. package/dist/core/web/public/next/assets/ChecksPanel-H13il4xW.js.map +1 -0
  62. package/dist/core/web/public/next/assets/CloudBudgetForm-DFq1CNXX.js +2 -0
  63. package/dist/core/web/public/next/assets/CloudBudgetForm-DFq1CNXX.js.map +1 -0
  64. package/dist/core/web/public/next/assets/CommandPalette-DCMnz2kg.js +3 -0
  65. package/dist/core/web/public/next/assets/CommandPalette-DCMnz2kg.js.map +1 -0
  66. package/dist/core/web/public/next/assets/CommandSection-TZ0SOTL5.js +3 -0
  67. package/dist/core/web/public/next/assets/CommandSection-TZ0SOTL5.js.map +1 -0
  68. package/dist/core/web/public/next/assets/CommandWorkflowForm-nLzCatdq.js +9 -0
  69. package/dist/core/web/public/next/assets/CommandWorkflowForm-nLzCatdq.js.map +1 -0
  70. package/dist/core/web/public/next/assets/CommandWorkflowPicker-DqMWCQgq.js +3 -0
  71. package/dist/core/web/public/next/assets/CommandWorkflowPicker-DqMWCQgq.js.map +1 -0
  72. package/dist/core/web/public/next/assets/CompareDialog-CcdO49em.js +4 -0
  73. package/dist/core/web/public/next/assets/CompareDialog-CcdO49em.js.map +1 -0
  74. package/dist/core/web/public/next/assets/ComputerControl-Cx6wUJjB.js +2 -0
  75. package/dist/core/web/public/next/assets/ComputerControl-Cx6wUJjB.js.map +1 -0
  76. package/dist/core/web/public/next/assets/ConfirmDialog-DHhXN3MZ.js +2 -0
  77. package/dist/core/web/public/next/assets/ConfirmDialog-DHhXN3MZ.js.map +1 -0
  78. package/dist/core/web/public/next/assets/DeleteChatDialog-BFCK_nzs.js +2 -0
  79. package/dist/core/web/public/next/assets/DeleteChatDialog-BFCK_nzs.js.map +1 -0
  80. package/dist/core/web/public/next/assets/DevinStopDialog-BqZbBJXz.js +2 -0
  81. package/dist/core/web/public/next/assets/DevinStopDialog-BqZbBJXz.js.map +1 -0
  82. package/dist/core/web/public/next/assets/Dialog-3jP1MpHx.js +2 -0
  83. package/dist/core/web/public/next/assets/Dialog-3jP1MpHx.js.map +1 -0
  84. package/dist/core/web/public/next/assets/DiffPane-DoO6J7Zi.js +2 -0
  85. package/dist/core/web/public/next/assets/DiffPane-DoO6J7Zi.js.map +1 -0
  86. package/dist/core/web/public/next/assets/DiffViewer-BAwVPwDR.js +2 -0
  87. package/dist/core/web/public/next/assets/DiffViewer-BAwVPwDR.js.map +1 -0
  88. package/dist/core/web/public/next/assets/DockHost-CjJ2Qgns.js +2 -0
  89. package/dist/core/web/public/next/assets/DockHost-CjJ2Qgns.js.map +1 -0
  90. package/dist/core/web/public/next/assets/EmptyState-D-hNeIUI.js +2 -0
  91. package/dist/core/web/public/next/assets/EmptyState-D-hNeIUI.js.map +1 -0
  92. package/dist/core/web/public/next/assets/Epistemic-XGQD1CWe.js +2 -0
  93. package/dist/core/web/public/next/assets/Epistemic-XGQD1CWe.js.map +1 -0
  94. package/dist/core/web/public/next/assets/EvidenceTimeline-Q4ToyRx-.js +2 -0
  95. package/dist/core/web/public/next/assets/EvidenceTimeline-Q4ToyRx-.js.map +1 -0
  96. package/dist/core/web/public/next/assets/FilesPane-B3dsl_jy.js +2 -0
  97. package/dist/core/web/public/next/assets/FilesPane-B3dsl_jy.js.map +1 -0
  98. package/dist/core/web/public/next/assets/FleetScreen-my0e1e4d.js +2 -0
  99. package/dist/core/web/public/next/assets/FleetScreen-my0e1e4d.js.map +1 -0
  100. package/dist/core/web/public/next/assets/FleetSection-BQiayR2p.js +5 -0
  101. package/dist/core/web/public/next/assets/FleetSection-BQiayR2p.js.map +1 -0
  102. package/dist/core/web/public/next/assets/FleetWorld-ByS5r87f.js +2 -0
  103. package/dist/core/web/public/next/assets/FleetWorld-ByS5r87f.js.map +1 -0
  104. package/dist/core/web/public/next/assets/Funnel-k3RlAJgh.js +2 -0
  105. package/dist/core/web/public/next/assets/Funnel-k3RlAJgh.js.map +1 -0
  106. package/dist/core/web/public/next/assets/GearTray-BT2_t3tC.js +2 -0
  107. package/dist/core/web/public/next/assets/GearTray-BT2_t3tC.js.map +1 -0
  108. package/dist/core/web/public/next/assets/GitDialogs-DvZCc8lS.js +2 -0
  109. package/dist/core/web/public/next/assets/GitDialogs-DvZCc8lS.js.map +1 -0
  110. package/dist/core/web/public/next/assets/GrowthSection-B4_LNyER.js +3 -0
  111. package/dist/core/web/public/next/assets/GrowthSection-B4_LNyER.js.map +1 -0
  112. package/dist/core/web/public/next/assets/HandoffDialog-DLOIdiO2.js +2 -0
  113. package/dist/core/web/public/next/assets/HandoffDialog-DLOIdiO2.js.map +1 -0
  114. package/dist/core/web/public/next/assets/HomeBody-CQ4h-am3.js +3 -0
  115. package/dist/core/web/public/next/assets/HomeBody-CQ4h-am3.js.map +1 -0
  116. package/dist/core/web/public/next/assets/HomeSeats-gyDnTb6A.js +2 -0
  117. package/dist/core/web/public/next/assets/HomeSeats-gyDnTb6A.js.map +1 -0
  118. package/dist/core/web/public/next/assets/Input-BsY2wWuf.js +2 -0
  119. package/dist/core/web/public/next/assets/Input-BsY2wWuf.js.map +1 -0
  120. package/dist/core/web/public/next/assets/LaunchDialog-D9ilV59e.js +9 -0
  121. package/dist/core/web/public/next/assets/LaunchDialog-D9ilV59e.js.map +1 -0
  122. package/dist/core/web/public/next/assets/LeaderCard-Bo-zwhzD.js +2 -0
  123. package/dist/core/web/public/next/assets/LeaderCard-Bo-zwhzD.js.map +1 -0
  124. package/dist/core/web/public/next/assets/LeaderConversation-jErDMfJK.js +3 -0
  125. package/dist/core/web/public/next/assets/LeaderConversation-jErDMfJK.js.map +1 -0
  126. package/dist/core/web/public/next/assets/LeaderQuestionForm-Ca7LKJAw.js +2 -0
  127. package/dist/core/web/public/next/assets/LeaderQuestionForm-Ca7LKJAw.js.map +1 -0
  128. package/dist/core/web/public/next/assets/LeaderScreen-C2tno5vu.js +3 -0
  129. package/dist/core/web/public/next/assets/LeaderScreen-C2tno5vu.js.map +1 -0
  130. package/dist/core/web/public/next/assets/LessonsPanel-_nxBVP4d.js +2 -0
  131. package/dist/core/web/public/next/assets/LessonsPanel-_nxBVP4d.js.map +1 -0
  132. package/dist/core/web/public/next/assets/LiveTimer-ryxgw4KN.js +2 -0
  133. package/dist/core/web/public/next/assets/LiveTimer-ryxgw4KN.js.map +1 -0
  134. package/dist/core/web/public/next/assets/LocalSeatBadge-DVyh2ztW.js +2 -0
  135. package/dist/core/web/public/next/assets/LocalSeatBadge-DVyh2ztW.js.map +1 -0
  136. package/dist/core/web/public/next/assets/ManagerStatus-Cw2R03sm.js +2 -0
  137. package/dist/core/web/public/next/assets/ManagerStatus-Cw2R03sm.js.map +1 -0
  138. package/dist/core/web/public/next/assets/MatrixHeatmap-BELu50lL.js +2 -0
  139. package/dist/core/web/public/next/assets/MatrixHeatmap-BELu50lL.js.map +1 -0
  140. package/dist/core/web/public/next/assets/McpSection-us_SfIak.js +2 -0
  141. package/dist/core/web/public/next/assets/McpSection-us_SfIak.js.map +1 -0
  142. package/dist/core/web/public/next/assets/MessageMarkdown-ammWvRzO.js +3 -0
  143. package/dist/core/web/public/next/assets/MessageMarkdown-ammWvRzO.js.map +1 -0
  144. package/dist/core/web/public/next/assets/MessageMarkdownRenderer-zIlbR132.js +72 -0
  145. package/dist/core/web/public/next/assets/MessageMarkdownRenderer-zIlbR132.js.map +1 -0
  146. package/dist/core/web/public/next/assets/Meter-D2_9N9KF.js +2 -0
  147. package/dist/core/web/public/next/assets/Meter-D2_9N9KF.js.map +1 -0
  148. package/dist/core/web/public/next/assets/MicButton-Bp7sIi_0.js +2 -0
  149. package/dist/core/web/public/next/assets/MicButton-Bp7sIi_0.js.map +1 -0
  150. package/dist/core/web/public/next/assets/MindSection-BJN17JfK.js +3 -0
  151. package/dist/core/web/public/next/assets/MindSection-BJN17JfK.js.map +1 -0
  152. package/dist/core/web/public/next/assets/MobileComposer-DPNMqkN1.js +2 -0
  153. package/dist/core/web/public/next/assets/MobileComposer-DPNMqkN1.js.map +1 -0
  154. package/dist/core/web/public/next/assets/MobileGuardSheet-BawTdLal.js +2 -0
  155. package/dist/core/web/public/next/assets/MobileGuardSheet-BawTdLal.js.map +1 -0
  156. package/dist/core/web/public/next/assets/MobileRuntime-BnW77ZlA.js +3 -0
  157. package/dist/core/web/public/next/assets/MobileRuntime-BnW77ZlA.js.map +1 -0
  158. package/dist/core/web/public/next/assets/MoreScreen-Cy0lbfdC.js +2 -0
  159. package/dist/core/web/public/next/assets/MoreScreen-Cy0lbfdC.js.map +1 -0
  160. package/dist/core/web/public/next/assets/MultiModelBar-D1pOYO9H.js +7 -0
  161. package/dist/core/web/public/next/assets/MultiModelBar-D1pOYO9H.js.map +1 -0
  162. package/dist/core/web/public/next/assets/MutationTokenDialog-DJLMI0wL.js +2 -0
  163. package/dist/core/web/public/next/assets/MutationTokenDialog-DJLMI0wL.js.map +1 -0
  164. package/dist/core/web/public/next/assets/NeedsYouDrawer-BV0Wnxqb.js +3 -0
  165. package/dist/core/web/public/next/assets/NeedsYouDrawer-BV0Wnxqb.js.map +1 -0
  166. package/dist/core/web/public/next/assets/NeedsYouList-BLo7mHJZ.js +2 -0
  167. package/dist/core/web/public/next/assets/NeedsYouList-BLo7mHJZ.js.map +1 -0
  168. package/dist/core/web/public/next/assets/NeedsYouScreen-BB4WQPCz.js +3 -0
  169. package/dist/core/web/public/next/assets/NeedsYouScreen-BB4WQPCz.js.map +1 -0
  170. package/dist/core/web/public/next/assets/NewAgentScreen-DnkcoZnI.js +2 -0
  171. package/dist/core/web/public/next/assets/NewAgentScreen-DnkcoZnI.js.map +1 -0
  172. package/dist/core/web/public/next/assets/NewChatDialog-fIice19Y.js +4 -0
  173. package/dist/core/web/public/next/assets/NewChatDialog-fIice19Y.js.map +1 -0
  174. package/dist/core/web/public/next/assets/OnboardingFlow-Z1OFbM_b.js +3 -0
  175. package/dist/core/web/public/next/assets/OnboardingFlow-Z1OFbM_b.js.map +1 -0
  176. package/dist/core/web/public/next/assets/OnboardingGate-DbxtRZHQ.js +3 -0
  177. package/dist/core/web/public/next/assets/OnboardingGate-DbxtRZHQ.js.map +1 -0
  178. package/dist/core/web/public/next/assets/OutcomesPanel-CIotCgM8.js +5 -0
  179. package/dist/core/web/public/next/assets/OutcomesPanel-CIotCgM8.js.map +1 -0
  180. package/dist/core/web/public/next/assets/PlaybooksSection-CBZ5-fqn.js +9 -0
  181. package/dist/core/web/public/next/assets/PlaybooksSection-CBZ5-fqn.js.map +1 -0
  182. package/dist/core/web/public/next/assets/PowerStatus-BsdkvJQW.js +2 -0
  183. package/dist/core/web/public/next/assets/PowerStatus-BsdkvJQW.js.map +1 -0
  184. package/dist/core/web/public/next/assets/PreviewPane-BCb-5icE.js +2 -0
  185. package/dist/core/web/public/next/assets/PreviewPane-BCb-5icE.js.map +1 -0
  186. package/dist/core/web/public/next/assets/ProactiveAgents-50Cy3lvb.js +2 -0
  187. package/dist/core/web/public/next/assets/ProactiveAgents-50Cy3lvb.js.map +1 -0
  188. package/dist/core/web/public/next/assets/ProviderLogo-BiNHsoC2.js +2 -0
  189. package/dist/core/web/public/next/assets/ProviderLogo-BiNHsoC2.js.map +1 -0
  190. package/dist/core/web/public/next/assets/RailStatus-D7p51XPy.js +2 -0
  191. package/dist/core/web/public/next/assets/RailStatus-D7p51XPy.js.map +1 -0
  192. package/dist/core/web/public/next/assets/ReasoningPane-DUDE_hXA.js +2 -0
  193. package/dist/core/web/public/next/assets/ReasoningPane-DUDE_hXA.js.map +1 -0
  194. package/dist/core/web/public/next/assets/ReasoningSheet-CnJVB0OR.js +2 -0
  195. package/dist/core/web/public/next/assets/ReasoningSheet-CnJVB0OR.js.map +1 -0
  196. package/dist/core/web/public/next/assets/RefreshIndicator-D9b6YBnT.js +2 -0
  197. package/dist/core/web/public/next/assets/RefreshIndicator-D9b6YBnT.js.map +1 -0
  198. package/dist/core/web/public/next/assets/RemoteMobileApp-ZFETQAMr.js +2 -0
  199. package/dist/core/web/public/next/assets/RemoteMobileApp-ZFETQAMr.js.map +1 -0
  200. package/dist/core/web/public/next/assets/ResetSpendingControl-iXoj2hVK.js +2 -0
  201. package/dist/core/web/public/next/assets/ResetSpendingControl-iXoj2hVK.js.map +1 -0
  202. package/dist/core/web/public/next/assets/ResourcePoolConsoleApp-C4lIS4L5.js +7 -0
  203. package/dist/core/web/public/next/assets/ResourcePoolConsoleApp-C4lIS4L5.js.map +1 -0
  204. package/dist/core/web/public/next/assets/ResourcesChrome-DL2KW5b9.js +3 -0
  205. package/dist/core/web/public/next/assets/ResourcesChrome-DL2KW5b9.js.map +1 -0
  206. package/dist/core/web/public/next/assets/ResourcesDrawer-B8ySjGJW.js +3 -0
  207. package/dist/core/web/public/next/assets/ResourcesDrawer-B8ySjGJW.js.map +1 -0
  208. package/dist/core/web/public/next/assets/ReviewMenu-CbheDfvg.js +2 -0
  209. package/dist/core/web/public/next/assets/ReviewMenu-CbheDfvg.js.map +1 -0
  210. package/dist/core/web/public/next/assets/RouteErrorBoundary-B5zsnh0Y.js +2 -0
  211. package/dist/core/web/public/next/assets/RouteErrorBoundary-B5zsnh0Y.js.map +1 -0
  212. package/dist/core/web/public/next/assets/RunInCloudAction-vKNZlxNO.js +2 -0
  213. package/dist/core/web/public/next/assets/RunInCloudAction-vKNZlxNO.js.map +1 -0
  214. package/dist/core/web/public/next/assets/RunInDevinAction-DlD1olQi.js +2 -0
  215. package/dist/core/web/public/next/assets/RunInDevinAction-DlD1olQi.js.map +1 -0
  216. package/dist/core/web/public/next/assets/SchedulingEvidence-B23dI7qL.js +2 -0
  217. package/dist/core/web/public/next/assets/SchedulingEvidence-B23dI7qL.js.map +1 -0
  218. package/dist/core/web/public/next/assets/ScreenHost-1b6bhqKc.js +3 -0
  219. package/dist/core/web/public/next/assets/ScreenHost-1b6bhqKc.js.map +1 -0
  220. package/dist/core/web/public/next/assets/SeatSelector-KaCYQ6tC.js +3 -0
  221. package/dist/core/web/public/next/assets/SeatSelector-KaCYQ6tC.js.map +1 -0
  222. package/dist/core/web/public/next/assets/Segmented-Bwr3-jew.js +2 -0
  223. package/dist/core/web/public/next/assets/Segmented-Bwr3-jew.js.map +1 -0
  224. package/dist/core/web/public/next/assets/Select-CQ5vJHhZ.js +2 -0
  225. package/dist/core/web/public/next/assets/Select-CQ5vJHhZ.js.map +1 -0
  226. package/dist/core/web/public/next/assets/SessionGate-Jwl87fDi.js +2 -0
  227. package/dist/core/web/public/next/assets/SessionGate-Jwl87fDi.js.map +1 -0
  228. package/dist/core/web/public/next/assets/SessionInsightChip-D1KrjRDV.js +2 -0
  229. package/dist/core/web/public/next/assets/SessionInsightChip-D1KrjRDV.js.map +1 -0
  230. package/dist/core/web/public/next/assets/SessionSearch-CvOMX4rZ.js +2 -0
  231. package/dist/core/web/public/next/assets/SessionSearch-CvOMX4rZ.js.map +1 -0
  232. package/dist/core/web/public/next/assets/SettingsSection-NNSUAF2L.js +2 -0
  233. package/dist/core/web/public/next/assets/SettingsSection-NNSUAF2L.js.map +1 -0
  234. package/dist/core/web/public/next/assets/SetupChecklist-CI8DJUp2.js +2 -0
  235. package/dist/core/web/public/next/assets/SetupChecklist-CI8DJUp2.js.map +1 -0
  236. package/dist/core/web/public/next/assets/ShadowDecisions-DauI5_Hf.js +3 -0
  237. package/dist/core/web/public/next/assets/ShadowDecisions-DauI5_Hf.js.map +1 -0
  238. package/dist/core/web/public/next/assets/Sheet-CXDU9h9d.js +2 -0
  239. package/dist/core/web/public/next/assets/Sheet-CXDU9h9d.js.map +1 -0
  240. package/dist/core/web/public/next/assets/ShortcutsOverlay-o8cXl02-.js +2 -0
  241. package/dist/core/web/public/next/assets/ShortcutsOverlay-o8cXl02-.js.map +1 -0
  242. package/dist/core/web/public/next/assets/Sidebar-B5St1EIm.js +3 -0
  243. package/dist/core/web/public/next/assets/Sidebar-B5St1EIm.js.map +1 -0
  244. package/dist/core/web/public/next/assets/SkipToContent-a_euRZCd.js +2 -0
  245. package/dist/core/web/public/next/assets/SkipToContent-a_euRZCd.js.map +1 -0
  246. package/dist/core/web/public/next/assets/Slider-BNmmHzrQ.js +2 -0
  247. package/dist/core/web/public/next/assets/Slider-BNmmHzrQ.js.map +1 -0
  248. package/dist/core/web/public/next/assets/SourcesPane-BOQrUIE5.js +2 -0
  249. package/dist/core/web/public/next/assets/SourcesPane-BOQrUIE5.js.map +1 -0
  250. package/dist/core/web/public/next/assets/SourcesPanel-BQ7F7uez.js +2 -0
  251. package/dist/core/web/public/next/assets/SourcesPanel-BQ7F7uez.js.map +1 -0
  252. package/dist/core/web/public/next/assets/StatTile-DmZ5xhhy.js +2 -0
  253. package/dist/core/web/public/next/assets/StatTile-DmZ5xhhy.js.map +1 -0
  254. package/dist/core/web/public/next/assets/StatusBadge-CqVVJ9Xj.js +2 -0
  255. package/dist/core/web/public/next/assets/StatusBadge-CqVVJ9Xj.js.map +1 -0
  256. package/dist/core/web/public/next/assets/StepBand-CQ1lRitg.js +2 -0
  257. package/dist/core/web/public/next/assets/StepBand-CQ1lRitg.js.map +1 -0
  258. package/dist/core/web/public/next/assets/Surface-e7ggAeYs.js +2 -0
  259. package/dist/core/web/public/next/assets/Surface-e7ggAeYs.js.map +1 -0
  260. package/dist/core/web/public/next/assets/Swimlane-D-U6Gvur.js +2 -0
  261. package/dist/core/web/public/next/assets/Swimlane-D-U6Gvur.js.map +1 -0
  262. package/dist/core/web/public/next/assets/Switch-DS4ekIJx.js +2 -0
  263. package/dist/core/web/public/next/assets/Switch-DS4ekIJx.js.map +1 -0
  264. package/dist/core/web/public/next/assets/Tag-D8CcAgYv.js +2 -0
  265. package/dist/core/web/public/next/assets/Tag-D8CcAgYv.js.map +1 -0
  266. package/dist/core/web/public/next/assets/TaskContext-vX3m4Upe.js +2 -0
  267. package/dist/core/web/public/next/assets/TaskContext-vX3m4Upe.js.map +1 -0
  268. package/dist/core/web/public/next/assets/TerminalPane-CVH_qX1y.js +3 -0
  269. package/dist/core/web/public/next/assets/TerminalPane-CVH_qX1y.js.map +1 -0
  270. package/dist/core/web/public/next/assets/TerminalPane-gQqRD2jH.js +26 -0
  271. package/dist/core/web/public/next/assets/TerminalPane-gQqRD2jH.js.map +1 -0
  272. package/dist/core/web/public/next/assets/ThinkingBlock-COTkLWzv.js +2 -0
  273. package/dist/core/web/public/next/assets/ThinkingBlock-COTkLWzv.js.map +1 -0
  274. package/dist/core/web/public/next/assets/UniverseConsoleApp-9nbNl6Fa.js +2 -0
  275. package/dist/core/web/public/next/assets/UniverseConsoleApp-9nbNl6Fa.js.map +1 -0
  276. package/dist/core/web/public/next/assets/UniverseView-2YcvYh4k.js +9 -0
  277. package/dist/core/web/public/next/assets/UniverseView-2YcvYh4k.js.map +1 -0
  278. package/dist/core/web/public/next/assets/UsageSection-Bp7fhS0A.js +3 -0
  279. package/dist/core/web/public/next/assets/UsageSection-Bp7fhS0A.js.map +1 -0
  280. package/dist/core/web/public/next/assets/UsePlaybookAction-Cr8iWr1S.js +2 -0
  281. package/dist/core/web/public/next/assets/UsePlaybookAction-Cr8iWr1S.js.map +1 -0
  282. package/dist/core/web/public/next/assets/VerseConsoleApp-DY0SUyQ3.js +3 -0
  283. package/dist/core/web/public/next/assets/VerseConsoleApp-DY0SUyQ3.js.map +1 -0
  284. package/dist/core/web/public/next/assets/VerseMobileApp-CBYJT8lb.js +3 -0
  285. package/dist/core/web/public/next/assets/VerseMobileApp-CBYJT8lb.js.map +1 -0
  286. package/dist/core/web/public/next/assets/VerseShared-CQLwhtIc.js +2 -0
  287. package/dist/core/web/public/next/assets/VerseShared-CQLwhtIc.js.map +1 -0
  288. package/dist/core/web/public/next/assets/VoiceHud-iXBMe6c8.js +2 -0
  289. package/dist/core/web/public/next/assets/VoiceHud-iXBMe6c8.js.map +1 -0
  290. package/dist/core/web/public/next/assets/VoiceInput-DOt7Cd50.js +2 -0
  291. package/dist/core/web/public/next/assets/VoiceInput-DOt7Cd50.js.map +1 -0
  292. package/dist/core/web/public/next/assets/WebsitePublicationControl-mAFfIdKP.js +2 -0
  293. package/dist/core/web/public/next/assets/WebsitePublicationControl-mAFfIdKP.js.map +1 -0
  294. package/dist/core/web/public/next/assets/WikiSection-CyJpYRG1.js +2 -0
  295. package/dist/core/web/public/next/assets/WikiSection-CyJpYRG1.js.map +1 -0
  296. package/dist/core/web/public/next/assets/Workspace-BanfFlsx.js +6 -0
  297. package/dist/core/web/public/next/assets/Workspace-BanfFlsx.js.map +1 -0
  298. package/dist/core/web/public/next/assets/account-reading-refresh-DBQ5pOe2.js +2 -0
  299. package/dist/core/web/public/next/assets/account-reading-refresh-DBQ5pOe2.js.map +1 -0
  300. package/dist/core/web/public/next/assets/actions-ClnKrOaM.js +2 -0
  301. package/dist/core/web/public/next/assets/actions-ClnKrOaM.js.map +1 -0
  302. package/dist/core/web/public/next/assets/agent-tools-client-DjJCZuqD.js +2 -0
  303. package/dist/core/web/public/next/assets/agent-tools-client-DjJCZuqD.js.map +1 -0
  304. package/dist/core/web/public/next/assets/agents-focus-Cxa5-BmE.js +2 -0
  305. package/dist/core/web/public/next/assets/agents-focus-Cxa5-BmE.js.map +1 -0
  306. package/dist/core/web/public/next/assets/app-version-CWyp-1TO.js +2 -0
  307. package/dist/core/web/public/next/assets/app-version-CWyp-1TO.js.map +1 -0
  308. package/dist/core/web/public/next/assets/apps-model-DXC2OzJQ.js +2 -0
  309. package/dist/core/web/public/next/assets/apps-model-DXC2OzJQ.js.map +1 -0
  310. package/dist/core/web/public/next/assets/ask-seat-B5NoRs7Z.js +2 -0
  311. package/dist/core/web/public/next/assets/ask-seat-B5NoRs7Z.js.map +1 -0
  312. package/dist/core/web/public/next/assets/authority-model-CG6x4F2g.js +2 -0
  313. package/dist/core/web/public/next/assets/authority-model-CG6x4F2g.js.map +1 -0
  314. package/dist/core/web/public/next/assets/automations-focus-n_E0ptrQ.js +2 -0
  315. package/dist/core/web/public/next/assets/automations-focus-n_E0ptrQ.js.map +1 -0
  316. package/dist/core/web/public/next/assets/budget-queries-mxabDs-2.js +2 -0
  317. package/dist/core/web/public/next/assets/budget-queries-mxabDs-2.js.map +1 -0
  318. package/dist/core/web/public/next/assets/capacity-strip-model-RdYHz05l.js +2 -0
  319. package/dist/core/web/public/next/assets/capacity-strip-model-RdYHz05l.js.map +1 -0
  320. package/dist/core/web/public/next/assets/charts-CQJz_TFu.js +2 -0
  321. package/dist/core/web/public/next/assets/charts-CQJz_TFu.js.map +1 -0
  322. package/dist/core/web/public/next/assets/chat-pane-data-YTfa6L7r.js +2 -0
  323. package/dist/core/web/public/next/assets/chat-pane-data-YTfa6L7r.js.map +1 -0
  324. package/dist/core/web/public/next/assets/checkpoint-queries-D9VWCI7C.js +2 -0
  325. package/dist/core/web/public/next/assets/checkpoint-queries-D9VWCI7C.js.map +1 -0
  326. package/dist/core/web/public/next/assets/cloud-queries-vchaYJ-l.js +2 -0
  327. package/dist/core/web/public/next/assets/cloud-queries-vchaYJ-l.js.map +1 -0
  328. package/dist/core/web/public/next/assets/command-catalog-DLxzqia7.js +2 -0
  329. package/dist/core/web/public/next/assets/command-catalog-DLxzqia7.js.map +1 -0
  330. package/dist/core/web/public/next/assets/composer-queries-h8sAoPgo.js +2 -0
  331. package/dist/core/web/public/next/assets/composer-queries-h8sAoPgo.js.map +1 -0
  332. package/dist/core/web/public/next/assets/connectivity-6ulZbL6r.js +2 -0
  333. package/dist/core/web/public/next/assets/connectivity-6ulZbL6r.js.map +1 -0
  334. package/dist/core/web/public/next/assets/context-model-CzczsLFV.js.map +1 -1
  335. package/dist/core/web/public/next/assets/context-queries-BYapoHoa.js +2 -0
  336. package/dist/core/web/public/next/assets/context-queries-BYapoHoa.js.map +1 -0
  337. package/dist/core/web/public/next/assets/control-queries-DiL1qsoC.js +2 -0
  338. package/dist/core/web/public/next/assets/control-queries-DiL1qsoC.js.map +1 -0
  339. package/dist/core/web/public/next/assets/copy-setup-CznW8neq.js +2 -0
  340. package/dist/core/web/public/next/assets/copy-setup-CznW8neq.js.map +1 -0
  341. package/dist/core/web/public/next/assets/deep-link-C5r-Nqnb.js +2 -0
  342. package/dist/core/web/public/next/assets/deep-link-C5r-Nqnb.js.map +1 -0
  343. package/dist/core/web/public/next/assets/desktop-state-B2mH40qm.js +2 -0
  344. package/dist/core/web/public/next/assets/desktop-state-B2mH40qm.js.map +1 -0
  345. package/dist/core/web/public/next/assets/device-permissions-CvO5hWML.js +2 -0
  346. package/dist/core/web/public/next/assets/device-permissions-CvO5hWML.js.map +1 -0
  347. package/dist/core/web/public/next/assets/devin-queries-kJAtv5oW.js +2 -0
  348. package/dist/core/web/public/next/assets/devin-queries-kJAtv5oW.js.map +1 -0
  349. package/dist/core/web/public/next/assets/dock-icons-Bs0rUzI9.js +2 -0
  350. package/dist/core/web/public/next/assets/dock-icons-Bs0rUzI9.js.map +1 -0
  351. package/dist/core/web/public/next/assets/dock-panes-BUIP_TFS.js +2 -0
  352. package/dist/core/web/public/next/assets/dock-panes-BUIP_TFS.js.map +1 -0
  353. package/dist/core/web/public/next/assets/fleet-control-queries-DZYZtzwX.js +2 -0
  354. package/dist/core/web/public/next/assets/fleet-control-queries-DZYZtzwX.js.map +1 -0
  355. package/dist/core/web/public/next/assets/fleet-control.module-CZPBagHA.js +3 -0
  356. package/dist/core/web/public/next/assets/fleet-control.module-CZPBagHA.js.map +1 -0
  357. package/dist/core/web/public/next/assets/fleet-queries-kKnJXDte.js +2 -0
  358. package/dist/core/web/public/next/assets/fleet-queries-kKnJXDte.js.map +1 -0
  359. package/dist/core/web/public/next/assets/fleet-state-Cl3YEkJr.js +3 -0
  360. package/dist/core/web/public/next/assets/fleet-state-Cl3YEkJr.js.map +1 -0
  361. package/dist/core/web/public/next/assets/focus-trap-olnXbwrV.js +2 -0
  362. package/dist/core/web/public/next/assets/focus-trap-olnXbwrV.js.map +1 -0
  363. package/dist/core/web/public/next/assets/git-model-BwMfWvDw.js +5 -0
  364. package/dist/core/web/public/next/assets/git-model-BwMfWvDw.js.map +1 -0
  365. package/dist/core/web/public/next/assets/global-Bn1GsjsC.js +3 -0
  366. package/dist/core/web/public/next/assets/global-Bn1GsjsC.js.map +1 -0
  367. package/dist/core/web/public/next/assets/guarded-action-BplCPV2n.js +3 -0
  368. package/dist/core/web/public/next/assets/guarded-action-BplCPV2n.js.map +1 -0
  369. package/dist/core/web/public/next/assets/guarded-runners-B75vYG6r.js +2 -0
  370. package/dist/core/web/public/next/assets/guarded-runners-B75vYG6r.js.map +1 -0
  371. package/dist/core/web/public/next/assets/health-queries-jfzFDqr_.js +2 -0
  372. package/dist/core/web/public/next/assets/health-queries-jfzFDqr_.js.map +1 -0
  373. package/dist/core/web/public/next/assets/icons-DHiqsdz9.js +2 -0
  374. package/dist/core/web/public/next/assets/icons-DHiqsdz9.js.map +1 -0
  375. package/dist/core/web/public/next/assets/index-v3DMReM2.js +11 -0
  376. package/dist/core/web/public/next/assets/index-v3DMReM2.js.map +1 -0
  377. package/dist/core/web/public/next/assets/jev-queries-C7lIpBFt.js +2 -0
  378. package/dist/core/web/public/next/assets/jev-queries-C7lIpBFt.js.map +1 -0
  379. package/dist/core/web/public/next/assets/ladder-queries-B6ueJUZc.js +2 -0
  380. package/dist/core/web/public/next/assets/ladder-queries-B6ueJUZc.js.map +1 -0
  381. package/dist/core/web/public/next/assets/leader-focus-Dew77KS1.js +2 -0
  382. package/dist/core/web/public/next/assets/leader-focus-Dew77KS1.js.map +1 -0
  383. package/dist/core/web/public/next/assets/manager-queries-COgqzx48.js +2 -0
  384. package/dist/core/web/public/next/assets/manager-queries-COgqzx48.js.map +1 -0
  385. package/dist/core/web/public/next/assets/mobile-actions-zE5-bHJW.js +2 -0
  386. package/dist/core/web/public/next/assets/mobile-actions-zE5-bHJW.js.map +1 -0
  387. package/dist/core/web/public/next/assets/mobile-toast-DpLBBlLU.js +2 -0
  388. package/dist/core/web/public/next/assets/mobile-toast-DpLBBlLU.js.map +1 -0
  389. package/dist/core/web/public/next/assets/multimodel-flows-vRUnc4E1.js +7 -0
  390. package/dist/core/web/public/next/assets/multimodel-flows-vRUnc4E1.js.map +1 -0
  391. package/dist/core/web/public/next/assets/multimodel-queries-EViyKED3.js +2 -0
  392. package/dist/core/web/public/next/assets/multimodel-queries-EViyKED3.js.map +1 -0
  393. package/dist/core/web/public/next/assets/mutations-YyGO1TXF.js +2 -0
  394. package/dist/core/web/public/next/assets/mutations-YyGO1TXF.js.map +1 -0
  395. package/dist/core/web/public/next/assets/nav-Cw39dV0Z.js +2 -0
  396. package/dist/core/web/public/next/assets/nav-Cw39dV0Z.js.map +1 -0
  397. package/dist/core/web/public/next/assets/needs-you-actions-DJw16DEr.js +2 -0
  398. package/dist/core/web/public/next/assets/needs-you-actions-DJw16DEr.js.map +1 -0
  399. package/dist/core/web/public/next/assets/needs-you-model-D4Hc76C2.js +2 -0
  400. package/dist/core/web/public/next/assets/needs-you-model-D4Hc76C2.js.map +1 -0
  401. package/dist/core/web/public/next/assets/onboarding.module-CL4-EPe7.js +2 -0
  402. package/dist/core/web/public/next/assets/onboarding.module-CL4-EPe7.js.map +1 -0
  403. package/dist/core/web/public/next/assets/open-terminal-Cja6XiPm.js +2 -0
  404. package/dist/core/web/public/next/assets/open-terminal-Cja6XiPm.js.map +1 -0
  405. package/dist/core/web/public/next/assets/open-terminal-request-Bk1zGcr_.js +2 -0
  406. package/dist/core/web/public/next/assets/open-terminal-request-Bk1zGcr_.js.map +1 -0
  407. package/dist/core/web/public/next/assets/outcomes-queries-CgyKDzAe.js +2 -0
  408. package/dist/core/web/public/next/assets/outcomes-queries-CgyKDzAe.js.map +1 -0
  409. package/dist/core/web/public/next/assets/overnight-queries-CX_pRDO0.js +2 -0
  410. package/dist/core/web/public/next/assets/overnight-queries-CX_pRDO0.js.map +1 -0
  411. package/dist/core/web/public/next/assets/palette-handoff-CoOvrfBN.js +2 -0
  412. package/dist/core/web/public/next/assets/palette-handoff-CoOvrfBN.js.map +1 -0
  413. package/dist/core/web/public/next/assets/panes-Okpdx9n7.js +3 -0
  414. package/dist/core/web/public/next/assets/panes-Okpdx9n7.js.map +1 -0
  415. package/dist/core/web/public/next/assets/path-display-Btavf0DG.js +2 -0
  416. package/dist/core/web/public/next/assets/path-display-Btavf0DG.js.map +1 -0
  417. package/dist/core/web/public/next/assets/playbook-composer-BeK2aEqv.js +2 -0
  418. package/dist/core/web/public/next/assets/playbook-composer-BeK2aEqv.js.map +1 -0
  419. package/dist/core/web/public/next/assets/playbook-focus-DWPPmq2q.js +2 -0
  420. package/dist/core/web/public/next/assets/playbook-focus-DWPPmq2q.js.map +1 -0
  421. package/dist/core/web/public/next/assets/playbooks-queries-M-lzwRzZ.js +2 -0
  422. package/dist/core/web/public/next/assets/playbooks-queries-M-lzwRzZ.js.map +1 -0
  423. package/dist/core/web/public/next/assets/preloaded-rg1exa7V.js +2 -0
  424. package/dist/core/web/public/next/assets/preloaded-rg1exa7V.js.map +1 -0
  425. package/dist/core/web/public/next/assets/proactive-queries-0AZeUGQH.js +2 -0
  426. package/dist/core/web/public/next/assets/proactive-queries-0AZeUGQH.js.map +1 -0
  427. package/dist/core/web/public/next/assets/pwa-5CGwd4jW.js +2 -0
  428. package/dist/core/web/public/next/assets/pwa-5CGwd4jW.js.map +1 -0
  429. package/dist/core/web/public/next/assets/queries-CNxAsjz8.js +2 -0
  430. package/dist/core/web/public/next/assets/queries-CNxAsjz8.js.map +1 -0
  431. package/dist/core/web/public/next/assets/question-model-CN9LYX29.js +1 -0
  432. package/dist/core/web/public/next/assets/reasoning-pref-D5MIzNwW.js +2 -0
  433. package/dist/core/web/public/next/assets/reasoning-pref-D5MIzNwW.js.map +1 -0
  434. package/dist/core/web/public/next/assets/remote-session-JK5xGsry.js +3 -0
  435. package/dist/core/web/public/next/assets/remote-session-JK5xGsry.js.map +1 -0
  436. package/dist/core/web/public/next/assets/resolved-store-DiWvlH9U.js +2 -0
  437. package/dist/core/web/public/next/assets/resolved-store-DiWvlH9U.js.map +1 -0
  438. package/dist/core/web/public/next/assets/resources-queries-BZrsNzJO.js +2 -0
  439. package/dist/core/web/public/next/assets/resources-queries-BZrsNzJO.js.map +1 -0
  440. package/dist/core/web/public/next/assets/reveal-anchor-64pxZPhx.js +2 -0
  441. package/dist/core/web/public/next/assets/reveal-anchor-64pxZPhx.js.map +1 -0
  442. package/dist/core/web/public/next/assets/sheet-Cs-_T2Cg.js +2 -0
  443. package/dist/core/web/public/next/assets/sheet-Cs-_T2Cg.js.map +1 -0
  444. package/dist/core/web/public/next/assets/slots-Dh5sqR3y.js +3 -0
  445. package/dist/core/web/public/next/assets/slots-Dh5sqR3y.js.map +1 -0
  446. package/dist/core/web/public/next/assets/sources-queries-BFWOYHo1.js +4 -0
  447. package/dist/core/web/public/next/assets/sources-queries-BFWOYHo1.js.map +1 -0
  448. package/dist/core/web/public/next/assets/sse-CwBB4OiD.js +2 -0
  449. package/dist/core/web/public/next/assets/sse-CwBB4OiD.js.map +1 -0
  450. package/dist/core/web/public/next/assets/start-chat-C7Q_w-uL.js +3 -0
  451. package/dist/core/web/public/next/assets/start-chat-C7Q_w-uL.js.map +1 -0
  452. package/dist/core/web/public/next/assets/surface-data-Ys-VjdGV.js +2 -0
  453. package/dist/core/web/public/next/assets/surface-data-Ys-VjdGV.js.map +1 -0
  454. package/dist/core/web/public/next/assets/surface-prefetch-DiZRdDMq.js +2 -0
  455. package/dist/core/web/public/next/assets/surface-prefetch-DiZRdDMq.js.map +1 -0
  456. package/dist/core/web/public/next/assets/terminal-client-TU9ZERnP.js +2 -0
  457. package/dist/core/web/public/next/assets/terminal-client-TU9ZERnP.js.map +1 -0
  458. package/dist/core/web/public/next/assets/terminal-icons-BkwdmuwH.js +2 -0
  459. package/dist/core/web/public/next/assets/terminal-icons-BkwdmuwH.js.map +1 -0
  460. package/dist/core/web/public/next/assets/terminal-view-BiTOFUmq.js +6 -0
  461. package/dist/core/web/public/next/assets/terminal-view-BiTOFUmq.js.map +1 -0
  462. package/dist/core/web/public/next/assets/thread-data-5VxhMggu.js +2 -0
  463. package/dist/core/web/public/next/assets/thread-data-5VxhMggu.js.map +1 -0
  464. package/dist/core/web/public/next/assets/ui-parts-CVCix814.js +2 -0
  465. package/dist/core/web/public/next/assets/ui-parts-CVCix814.js.map +1 -0
  466. package/dist/core/web/public/next/assets/usage-queries-ByCpFK9P.js +2 -0
  467. package/dist/core/web/public/next/assets/usage-queries-ByCpFK9P.js.map +1 -0
  468. package/dist/core/web/public/next/assets/use-chat-activity-B1ZQW19T.js +2 -0
  469. package/dist/core/web/public/next/assets/use-chat-activity-B1ZQW19T.js.map +1 -0
  470. package/dist/core/web/public/next/assets/use-guarded-action-3IvCXTZ0.js +2 -0
  471. package/dist/core/web/public/next/assets/use-guarded-action-3IvCXTZ0.js.map +1 -0
  472. package/dist/core/web/public/next/assets/use-ticker-BWlnfmSI.js +2 -0
  473. package/dist/core/web/public/next/assets/use-ticker-BWlnfmSI.js.map +1 -0
  474. package/dist/core/web/public/next/assets/use-token-gate-CRBVO1L3.js +2 -0
  475. package/dist/core/web/public/next/assets/use-token-gate-CRBVO1L3.js.map +1 -0
  476. package/dist/core/web/public/next/assets/useAutoSeat-BzuXalSo.js +2 -0
  477. package/dist/core/web/public/next/assets/useAutoSeat-BzuXalSo.js.map +1 -0
  478. package/dist/core/web/public/next/assets/useOnboarding-DPW_dVTN.js +2 -0
  479. package/dist/core/web/public/next/assets/useOnboarding-DPW_dVTN.js.map +1 -0
  480. package/dist/core/web/public/next/assets/useSeatHealth-_a8KruNn.js +2 -0
  481. package/dist/core/web/public/next/assets/useSeatHealth-_a8KruNn.js.map +1 -0
  482. package/dist/core/web/public/next/assets/useSeatsRefresh-BCiYe3ps.js +3 -0
  483. package/dist/core/web/public/next/assets/useSeatsRefresh-BCiYe3ps.js.map +1 -0
  484. package/dist/core/web/public/next/assets/useVerseSession-C2hIvtLM.js +2 -0
  485. package/dist/core/web/public/next/assets/useVerseSession-C2hIvtLM.js.map +1 -0
  486. package/dist/core/web/public/next/assets/useVerseTranscript-DzGuwUEu.js +2 -0
  487. package/dist/core/web/public/next/assets/useVerseTranscript-DzGuwUEu.js.map +1 -0
  488. package/dist/core/web/public/next/assets/verse-bootstrap-query-CsMNjO2n.js +2 -0
  489. package/dist/core/web/public/next/assets/verse-bootstrap-query-CsMNjO2n.js.map +1 -0
  490. package/dist/core/web/public/next/assets/verse-icons-CKpZFhbJ.js +2 -0
  491. package/dist/core/web/public/next/assets/verse-icons-CKpZFhbJ.js.map +1 -0
  492. package/dist/core/web/public/next/assets/verse-list-channel-PsCfdhY3.js +2 -0
  493. package/dist/core/web/public/next/assets/verse-list-channel-PsCfdhY3.js.map +1 -0
  494. package/dist/core/web/public/next/assets/warmup-C33QuyHf.js +3 -0
  495. package/dist/core/web/public/next/assets/warmup-C33QuyHf.js.map +1 -0
  496. package/dist/core/web/public/next/assets/wiki-focus-BfuOgZzz.js +2 -0
  497. package/dist/core/web/public/next/assets/wiki-focus-BfuOgZzz.js.map +1 -0
  498. package/dist/core/web/public/next/index.html +1 -1
  499. package/dist/release-dependency-inventory.json +1 -1
  500. package/docs/QUICKSTART.md +1 -1
  501. package/package.json +1 -1
  502. package/dist/core/web/public/next/assets/ActionMenu-D5QGeE3H.js +0 -2
  503. package/dist/core/web/public/next/assets/ActionMenu-D5QGeE3H.js.map +0 -1
  504. package/dist/core/web/public/next/assets/AdoptionPanel-BBcCwufW.js +0 -2
  505. package/dist/core/web/public/next/assets/AdoptionPanel-BBcCwufW.js.map +0 -1
  506. package/dist/core/web/public/next/assets/Advanced-CHXKhpEg.js +0 -2
  507. package/dist/core/web/public/next/assets/Advanced-CHXKhpEg.js.map +0 -1
  508. package/dist/core/web/public/next/assets/AgentDetailScreen-CvMcx8A4.js +0 -2
  509. package/dist/core/web/public/next/assets/AgentDetailScreen-CvMcx8A4.js.map +0 -1
  510. package/dist/core/web/public/next/assets/AgentToolsSheet-CznF5xIQ.js +0 -2
  511. package/dist/core/web/public/next/assets/AgentToolsSheet-CznF5xIQ.js.map +0 -1
  512. package/dist/core/web/public/next/assets/AgentToolsStrip-Dxx1gQcR.js +0 -2
  513. package/dist/core/web/public/next/assets/AgentToolsStrip-Dxx1gQcR.js.map +0 -1
  514. package/dist/core/web/public/next/assets/AgentsScreen-DUpxNrmg.js +0 -2
  515. package/dist/core/web/public/next/assets/AgentsScreen-DUpxNrmg.js.map +0 -1
  516. package/dist/core/web/public/next/assets/AgentsSection-Zf7zvCE3.js +0 -4
  517. package/dist/core/web/public/next/assets/AgentsSection-Zf7zvCE3.js.map +0 -1
  518. package/dist/core/web/public/next/assets/App-1UUSzR7T.js +0 -8
  519. package/dist/core/web/public/next/assets/App-1UUSzR7T.js.map +0 -1
  520. package/dist/core/web/public/next/assets/AppsSection-Dhmj9BfZ.js +0 -2
  521. package/dist/core/web/public/next/assets/AppsSection-Dhmj9BfZ.js.map +0 -1
  522. package/dist/core/web/public/next/assets/AreaTrend-0pnayuHW.js +0 -2
  523. package/dist/core/web/public/next/assets/AreaTrend-0pnayuHW.js.map +0 -1
  524. package/dist/core/web/public/next/assets/AutomationsSection-DJHfqCSH.js +0 -2
  525. package/dist/core/web/public/next/assets/AutomationsSection-DJHfqCSH.js.map +0 -1
  526. package/dist/core/web/public/next/assets/AutonomyOffState-DvrhD-kh.js +0 -3
  527. package/dist/core/web/public/next/assets/AutonomyOffState-DvrhD-kh.js.map +0 -1
  528. package/dist/core/web/public/next/assets/AutonomySection-C_b1jYTg.js +0 -2
  529. package/dist/core/web/public/next/assets/AutonomySection-C_b1jYTg.js.map +0 -1
  530. package/dist/core/web/public/next/assets/AutonomyStatus-Bi9eXy9X.js +0 -2
  531. package/dist/core/web/public/next/assets/AutonomyStatus-Bi9eXy9X.js.map +0 -1
  532. package/dist/core/web/public/next/assets/BranchBar-BJF1S7lm.js +0 -2
  533. package/dist/core/web/public/next/assets/BranchBar-BJF1S7lm.js.map +0 -1
  534. package/dist/core/web/public/next/assets/BrowserPanel-CxjS1-Cj.js +0 -7
  535. package/dist/core/web/public/next/assets/BrowserPanel-CxjS1-Cj.js.map +0 -1
  536. package/dist/core/web/public/next/assets/BudgetControl-CdmgsIXe.js +0 -2
  537. package/dist/core/web/public/next/assets/BudgetControl-CdmgsIXe.js.map +0 -1
  538. package/dist/core/web/public/next/assets/Button-BwccZFT3.js +0 -2
  539. package/dist/core/web/public/next/assets/Button-BwccZFT3.js.map +0 -1
  540. package/dist/core/web/public/next/assets/CapacityStrip-uO7TdosV.js +0 -2
  541. package/dist/core/web/public/next/assets/CapacityStrip-uO7TdosV.js.map +0 -1
  542. package/dist/core/web/public/next/assets/ChangesPaneHost-BGUpHpCv.js +0 -16
  543. package/dist/core/web/public/next/assets/ChangesPaneHost-BGUpHpCv.js.map +0 -1
  544. package/dist/core/web/public/next/assets/ChartFrame-B9KW5zby.js +0 -2
  545. package/dist/core/web/public/next/assets/ChartFrame-B9KW5zby.js.map +0 -1
  546. package/dist/core/web/public/next/assets/ChatPanes-CPiguzKc.js +0 -2
  547. package/dist/core/web/public/next/assets/ChatPanes-CPiguzKc.js.map +0 -1
  548. package/dist/core/web/public/next/assets/ChatResizer-B-yAYR8o.js +0 -2
  549. package/dist/core/web/public/next/assets/ChatResizer-B-yAYR8o.js.map +0 -1
  550. package/dist/core/web/public/next/assets/ChatSection-BJZKNDGv.js +0 -3
  551. package/dist/core/web/public/next/assets/ChatSection-BJZKNDGv.js.map +0 -1
  552. package/dist/core/web/public/next/assets/ChecksPanel-BFsZhYWn.js +0 -5
  553. package/dist/core/web/public/next/assets/ChecksPanel-BFsZhYWn.js.map +0 -1
  554. package/dist/core/web/public/next/assets/CloudBudgetForm-DqLw2tFo.js +0 -2
  555. package/dist/core/web/public/next/assets/CloudBudgetForm-DqLw2tFo.js.map +0 -1
  556. package/dist/core/web/public/next/assets/CommandPalette-QtebfgRg.js +0 -3
  557. package/dist/core/web/public/next/assets/CommandPalette-QtebfgRg.js.map +0 -1
  558. package/dist/core/web/public/next/assets/CommandSection-Wp6MF5Fb.js +0 -3
  559. package/dist/core/web/public/next/assets/CommandSection-Wp6MF5Fb.js.map +0 -1
  560. package/dist/core/web/public/next/assets/CommandWorkflowForm-D38yCdO1.js +0 -9
  561. package/dist/core/web/public/next/assets/CommandWorkflowForm-D38yCdO1.js.map +0 -1
  562. package/dist/core/web/public/next/assets/CommandWorkflowPicker-CEVGRFCH.js +0 -3
  563. package/dist/core/web/public/next/assets/CommandWorkflowPicker-CEVGRFCH.js.map +0 -1
  564. package/dist/core/web/public/next/assets/CompareDialog-DETSw31t.js +0 -4
  565. package/dist/core/web/public/next/assets/CompareDialog-DETSw31t.js.map +0 -1
  566. package/dist/core/web/public/next/assets/ComputerControl-B-c35LQw.js +0 -2
  567. package/dist/core/web/public/next/assets/ComputerControl-B-c35LQw.js.map +0 -1
  568. package/dist/core/web/public/next/assets/ConfirmDialog-DhrRHNHJ.js +0 -2
  569. package/dist/core/web/public/next/assets/ConfirmDialog-DhrRHNHJ.js.map +0 -1
  570. package/dist/core/web/public/next/assets/DeleteChatDialog-CTIiuGhb.js +0 -2
  571. package/dist/core/web/public/next/assets/DeleteChatDialog-CTIiuGhb.js.map +0 -1
  572. package/dist/core/web/public/next/assets/DevinStopDialog-CF2Mjmru.js +0 -2
  573. package/dist/core/web/public/next/assets/DevinStopDialog-CF2Mjmru.js.map +0 -1
  574. package/dist/core/web/public/next/assets/Dialog-CSEatlcb.js +0 -2
  575. package/dist/core/web/public/next/assets/Dialog-CSEatlcb.js.map +0 -1
  576. package/dist/core/web/public/next/assets/DiffPane-BryzsWoG.js +0 -2
  577. package/dist/core/web/public/next/assets/DiffPane-BryzsWoG.js.map +0 -1
  578. package/dist/core/web/public/next/assets/DiffViewer-DEZ3LdZ5.js +0 -2
  579. package/dist/core/web/public/next/assets/DiffViewer-DEZ3LdZ5.js.map +0 -1
  580. package/dist/core/web/public/next/assets/DockHost-DAMZSrU1.js +0 -2
  581. package/dist/core/web/public/next/assets/DockHost-DAMZSrU1.js.map +0 -1
  582. package/dist/core/web/public/next/assets/EmptyState-CC-hGvYM.js +0 -2
  583. package/dist/core/web/public/next/assets/EmptyState-CC-hGvYM.js.map +0 -1
  584. package/dist/core/web/public/next/assets/Epistemic-D1_SxDcv.js +0 -2
  585. package/dist/core/web/public/next/assets/Epistemic-D1_SxDcv.js.map +0 -1
  586. package/dist/core/web/public/next/assets/EvidenceTimeline-BT6ZHJUS.js +0 -2
  587. package/dist/core/web/public/next/assets/EvidenceTimeline-BT6ZHJUS.js.map +0 -1
  588. package/dist/core/web/public/next/assets/FilesPane-DJ1GTYZc.js +0 -2
  589. package/dist/core/web/public/next/assets/FilesPane-DJ1GTYZc.js.map +0 -1
  590. package/dist/core/web/public/next/assets/FleetScreen-BIxSlbcY.js +0 -2
  591. package/dist/core/web/public/next/assets/FleetScreen-BIxSlbcY.js.map +0 -1
  592. package/dist/core/web/public/next/assets/FleetSection-6EAEtsGK.js +0 -5
  593. package/dist/core/web/public/next/assets/FleetSection-6EAEtsGK.js.map +0 -1
  594. package/dist/core/web/public/next/assets/FleetWorld-BABuc7YK.js +0 -2
  595. package/dist/core/web/public/next/assets/FleetWorld-BABuc7YK.js.map +0 -1
  596. package/dist/core/web/public/next/assets/Funnel-DwSzNMfg.js +0 -2
  597. package/dist/core/web/public/next/assets/Funnel-DwSzNMfg.js.map +0 -1
  598. package/dist/core/web/public/next/assets/GearTray-AeVgnUx_.js +0 -2
  599. package/dist/core/web/public/next/assets/GearTray-AeVgnUx_.js.map +0 -1
  600. package/dist/core/web/public/next/assets/GitDialogs-Du3CrLiY.js +0 -2
  601. package/dist/core/web/public/next/assets/GitDialogs-Du3CrLiY.js.map +0 -1
  602. package/dist/core/web/public/next/assets/GrowthSection-BtEskPjx.js +0 -3
  603. package/dist/core/web/public/next/assets/GrowthSection-BtEskPjx.js.map +0 -1
  604. package/dist/core/web/public/next/assets/HandoffDialog-Bdu_v89f.js +0 -2
  605. package/dist/core/web/public/next/assets/HandoffDialog-Bdu_v89f.js.map +0 -1
  606. package/dist/core/web/public/next/assets/HomeBody-Bl_sBDxC.js +0 -3
  607. package/dist/core/web/public/next/assets/HomeBody-Bl_sBDxC.js.map +0 -1
  608. package/dist/core/web/public/next/assets/HomeSeats-D92ouUxG.js +0 -2
  609. package/dist/core/web/public/next/assets/HomeSeats-D92ouUxG.js.map +0 -1
  610. package/dist/core/web/public/next/assets/Input-B1ZD7z6P.js +0 -2
  611. package/dist/core/web/public/next/assets/Input-B1ZD7z6P.js.map +0 -1
  612. package/dist/core/web/public/next/assets/LaunchDialog-o777ICAQ.js +0 -9
  613. package/dist/core/web/public/next/assets/LaunchDialog-o777ICAQ.js.map +0 -1
  614. package/dist/core/web/public/next/assets/LeaderCard-67ZY5EX3.js +0 -2
  615. package/dist/core/web/public/next/assets/LeaderCard-67ZY5EX3.js.map +0 -1
  616. package/dist/core/web/public/next/assets/LeaderConversation-CYCGaHqb.js +0 -3
  617. package/dist/core/web/public/next/assets/LeaderConversation-CYCGaHqb.js.map +0 -1
  618. package/dist/core/web/public/next/assets/LeaderQuestionForm-DSq8Mjr3.js +0 -2
  619. package/dist/core/web/public/next/assets/LeaderQuestionForm-DSq8Mjr3.js.map +0 -1
  620. package/dist/core/web/public/next/assets/LeaderScreen-B41YS6da.js +0 -3
  621. package/dist/core/web/public/next/assets/LeaderScreen-B41YS6da.js.map +0 -1
  622. package/dist/core/web/public/next/assets/LessonsPanel-CSbRQAMO.js +0 -2
  623. package/dist/core/web/public/next/assets/LessonsPanel-CSbRQAMO.js.map +0 -1
  624. package/dist/core/web/public/next/assets/LiveTimer-6FQ8Paro.js +0 -2
  625. package/dist/core/web/public/next/assets/LiveTimer-6FQ8Paro.js.map +0 -1
  626. package/dist/core/web/public/next/assets/LocalSeatBadge-B3bmC3RZ.js +0 -2
  627. package/dist/core/web/public/next/assets/LocalSeatBadge-B3bmC3RZ.js.map +0 -1
  628. package/dist/core/web/public/next/assets/ManagerStatus-D1_IpN3S.js +0 -2
  629. package/dist/core/web/public/next/assets/ManagerStatus-D1_IpN3S.js.map +0 -1
  630. package/dist/core/web/public/next/assets/MatrixHeatmap-DbBd0VUX.js +0 -2
  631. package/dist/core/web/public/next/assets/MatrixHeatmap-DbBd0VUX.js.map +0 -1
  632. package/dist/core/web/public/next/assets/McpSection-MLYaKMdK.js +0 -2
  633. package/dist/core/web/public/next/assets/McpSection-MLYaKMdK.js.map +0 -1
  634. package/dist/core/web/public/next/assets/MessageMarkdown-DivkWqDc.js +0 -3
  635. package/dist/core/web/public/next/assets/MessageMarkdown-DivkWqDc.js.map +0 -1
  636. package/dist/core/web/public/next/assets/MessageMarkdownRenderer-2Z7N5PXg.js +0 -72
  637. package/dist/core/web/public/next/assets/MessageMarkdownRenderer-2Z7N5PXg.js.map +0 -1
  638. package/dist/core/web/public/next/assets/Meter-B4_l4hIT.js +0 -2
  639. package/dist/core/web/public/next/assets/Meter-B4_l4hIT.js.map +0 -1
  640. package/dist/core/web/public/next/assets/MicButton-dGGKsanG.js +0 -2
  641. package/dist/core/web/public/next/assets/MicButton-dGGKsanG.js.map +0 -1
  642. package/dist/core/web/public/next/assets/MindSection-C5RcMYBs.js +0 -3
  643. package/dist/core/web/public/next/assets/MindSection-C5RcMYBs.js.map +0 -1
  644. package/dist/core/web/public/next/assets/MobileComposer-CWOi367j.js +0 -2
  645. package/dist/core/web/public/next/assets/MobileComposer-CWOi367j.js.map +0 -1
  646. package/dist/core/web/public/next/assets/MobileGuardSheet-C2-udp9X.js +0 -2
  647. package/dist/core/web/public/next/assets/MobileGuardSheet-C2-udp9X.js.map +0 -1
  648. package/dist/core/web/public/next/assets/MobileRuntime-CAzepCoQ.js +0 -3
  649. package/dist/core/web/public/next/assets/MobileRuntime-CAzepCoQ.js.map +0 -1
  650. package/dist/core/web/public/next/assets/MoreScreen-CiPpKtI5.js +0 -2
  651. package/dist/core/web/public/next/assets/MoreScreen-CiPpKtI5.js.map +0 -1
  652. package/dist/core/web/public/next/assets/MultiModelBar-enuGMwky.js +0 -7
  653. package/dist/core/web/public/next/assets/MultiModelBar-enuGMwky.js.map +0 -1
  654. package/dist/core/web/public/next/assets/MutationTokenDialog-BHP3-C0J.js +0 -2
  655. package/dist/core/web/public/next/assets/MutationTokenDialog-BHP3-C0J.js.map +0 -1
  656. package/dist/core/web/public/next/assets/NeedsYouDrawer-CD7v_n9q.js +0 -3
  657. package/dist/core/web/public/next/assets/NeedsYouDrawer-CD7v_n9q.js.map +0 -1
  658. package/dist/core/web/public/next/assets/NeedsYouList-BFZQ6grO.js +0 -2
  659. package/dist/core/web/public/next/assets/NeedsYouList-BFZQ6grO.js.map +0 -1
  660. package/dist/core/web/public/next/assets/NeedsYouScreen-BR8ycVcp.js +0 -3
  661. package/dist/core/web/public/next/assets/NeedsYouScreen-BR8ycVcp.js.map +0 -1
  662. package/dist/core/web/public/next/assets/NewAgentScreen-CJy8iEa_.js +0 -2
  663. package/dist/core/web/public/next/assets/NewAgentScreen-CJy8iEa_.js.map +0 -1
  664. package/dist/core/web/public/next/assets/NewChatDialog-pb-sKICH.js +0 -4
  665. package/dist/core/web/public/next/assets/NewChatDialog-pb-sKICH.js.map +0 -1
  666. package/dist/core/web/public/next/assets/OnboardingFlow-Ch3LHPGn.js +0 -3
  667. package/dist/core/web/public/next/assets/OnboardingFlow-Ch3LHPGn.js.map +0 -1
  668. package/dist/core/web/public/next/assets/OnboardingGate-Dnps_efG.js +0 -3
  669. package/dist/core/web/public/next/assets/OnboardingGate-Dnps_efG.js.map +0 -1
  670. package/dist/core/web/public/next/assets/OutcomesPanel-A6Oj6myg.js +0 -5
  671. package/dist/core/web/public/next/assets/OutcomesPanel-A6Oj6myg.js.map +0 -1
  672. package/dist/core/web/public/next/assets/PlaybooksSection-DVNfmqev.js +0 -9
  673. package/dist/core/web/public/next/assets/PlaybooksSection-DVNfmqev.js.map +0 -1
  674. package/dist/core/web/public/next/assets/PowerStatus-DMlkbPnV.js +0 -2
  675. package/dist/core/web/public/next/assets/PowerStatus-DMlkbPnV.js.map +0 -1
  676. package/dist/core/web/public/next/assets/PreviewPane-DIK17_bz.js +0 -2
  677. package/dist/core/web/public/next/assets/PreviewPane-DIK17_bz.js.map +0 -1
  678. package/dist/core/web/public/next/assets/ProactiveAgents-B47rMTU7.js +0 -2
  679. package/dist/core/web/public/next/assets/ProactiveAgents-B47rMTU7.js.map +0 -1
  680. package/dist/core/web/public/next/assets/ProviderLogo-Dn0rvsyD.js +0 -2
  681. package/dist/core/web/public/next/assets/ProviderLogo-Dn0rvsyD.js.map +0 -1
  682. package/dist/core/web/public/next/assets/RailStatus-BJBBQEys.js +0 -2
  683. package/dist/core/web/public/next/assets/RailStatus-BJBBQEys.js.map +0 -1
  684. package/dist/core/web/public/next/assets/ReasoningPane-DmgDs3cA.js +0 -2
  685. package/dist/core/web/public/next/assets/ReasoningPane-DmgDs3cA.js.map +0 -1
  686. package/dist/core/web/public/next/assets/ReasoningSheet-CLFRx9G6.js +0 -2
  687. package/dist/core/web/public/next/assets/ReasoningSheet-CLFRx9G6.js.map +0 -1
  688. package/dist/core/web/public/next/assets/RefreshIndicator-BFx8H_46.js +0 -2
  689. package/dist/core/web/public/next/assets/RefreshIndicator-BFx8H_46.js.map +0 -1
  690. package/dist/core/web/public/next/assets/RemoteMobileApp-qwBNChDJ.js +0 -2
  691. package/dist/core/web/public/next/assets/RemoteMobileApp-qwBNChDJ.js.map +0 -1
  692. package/dist/core/web/public/next/assets/ResetSpendingControl-cGfrs5-X.js +0 -2
  693. package/dist/core/web/public/next/assets/ResetSpendingControl-cGfrs5-X.js.map +0 -1
  694. package/dist/core/web/public/next/assets/ResourcePoolConsoleApp-nq3erSlJ.js +0 -7
  695. package/dist/core/web/public/next/assets/ResourcePoolConsoleApp-nq3erSlJ.js.map +0 -1
  696. package/dist/core/web/public/next/assets/ResourcesChrome-MSeQG3Mj.js +0 -3
  697. package/dist/core/web/public/next/assets/ResourcesChrome-MSeQG3Mj.js.map +0 -1
  698. package/dist/core/web/public/next/assets/ResourcesDrawer-BoC7GYwG.js +0 -3
  699. package/dist/core/web/public/next/assets/ResourcesDrawer-BoC7GYwG.js.map +0 -1
  700. package/dist/core/web/public/next/assets/ReviewMenu-D5hndVj9.js +0 -2
  701. package/dist/core/web/public/next/assets/ReviewMenu-D5hndVj9.js.map +0 -1
  702. package/dist/core/web/public/next/assets/RouteErrorBoundary-BnH5bqJi.js +0 -2
  703. package/dist/core/web/public/next/assets/RouteErrorBoundary-BnH5bqJi.js.map +0 -1
  704. package/dist/core/web/public/next/assets/RunInCloudAction-DQDSkqCz.js +0 -2
  705. package/dist/core/web/public/next/assets/RunInCloudAction-DQDSkqCz.js.map +0 -1
  706. package/dist/core/web/public/next/assets/RunInDevinAction-CFdJy5l3.js +0 -2
  707. package/dist/core/web/public/next/assets/RunInDevinAction-CFdJy5l3.js.map +0 -1
  708. package/dist/core/web/public/next/assets/SchedulingEvidence-cjhLWj4K.js +0 -2
  709. package/dist/core/web/public/next/assets/SchedulingEvidence-cjhLWj4K.js.map +0 -1
  710. package/dist/core/web/public/next/assets/ScreenHost-CnqVG4RP.js +0 -3
  711. package/dist/core/web/public/next/assets/ScreenHost-CnqVG4RP.js.map +0 -1
  712. package/dist/core/web/public/next/assets/SeatSelector-B2ET-Rgm.js +0 -3
  713. package/dist/core/web/public/next/assets/SeatSelector-B2ET-Rgm.js.map +0 -1
  714. package/dist/core/web/public/next/assets/Segmented-GENrTVUG.js +0 -2
  715. package/dist/core/web/public/next/assets/Segmented-GENrTVUG.js.map +0 -1
  716. package/dist/core/web/public/next/assets/Select-B2u6POo6.js +0 -2
  717. package/dist/core/web/public/next/assets/Select-B2u6POo6.js.map +0 -1
  718. package/dist/core/web/public/next/assets/SessionGate-zlW-exWG.js +0 -2
  719. package/dist/core/web/public/next/assets/SessionGate-zlW-exWG.js.map +0 -1
  720. package/dist/core/web/public/next/assets/SessionInsightChip-DQkqXYsk.js +0 -2
  721. package/dist/core/web/public/next/assets/SessionInsightChip-DQkqXYsk.js.map +0 -1
  722. package/dist/core/web/public/next/assets/SessionSearch-BJDqF4Rt.js +0 -2
  723. package/dist/core/web/public/next/assets/SessionSearch-BJDqF4Rt.js.map +0 -1
  724. package/dist/core/web/public/next/assets/SettingsSection-CoLn4KJJ.js +0 -2
  725. package/dist/core/web/public/next/assets/SettingsSection-CoLn4KJJ.js.map +0 -1
  726. package/dist/core/web/public/next/assets/SetupChecklist-Ki9UcTtY.js +0 -2
  727. package/dist/core/web/public/next/assets/SetupChecklist-Ki9UcTtY.js.map +0 -1
  728. package/dist/core/web/public/next/assets/ShadowDecisions-DLfWcolb.js +0 -3
  729. package/dist/core/web/public/next/assets/ShadowDecisions-DLfWcolb.js.map +0 -1
  730. package/dist/core/web/public/next/assets/Sheet-CED3IxZo.js +0 -2
  731. package/dist/core/web/public/next/assets/Sheet-CED3IxZo.js.map +0 -1
  732. package/dist/core/web/public/next/assets/ShortcutsOverlay-BeK1SV8X.js +0 -2
  733. package/dist/core/web/public/next/assets/ShortcutsOverlay-BeK1SV8X.js.map +0 -1
  734. package/dist/core/web/public/next/assets/Sidebar-KBUaf5aA.js +0 -3
  735. package/dist/core/web/public/next/assets/Sidebar-KBUaf5aA.js.map +0 -1
  736. package/dist/core/web/public/next/assets/SkipToContent-DO4pPxV6.js +0 -2
  737. package/dist/core/web/public/next/assets/SkipToContent-DO4pPxV6.js.map +0 -1
  738. package/dist/core/web/public/next/assets/Slider-BeeX0lWU.js +0 -2
  739. package/dist/core/web/public/next/assets/Slider-BeeX0lWU.js.map +0 -1
  740. package/dist/core/web/public/next/assets/SourcesPane-CZ1CN9FC.js +0 -2
  741. package/dist/core/web/public/next/assets/SourcesPane-CZ1CN9FC.js.map +0 -1
  742. package/dist/core/web/public/next/assets/SourcesPanel-CUeMV_T-.js +0 -2
  743. package/dist/core/web/public/next/assets/SourcesPanel-CUeMV_T-.js.map +0 -1
  744. package/dist/core/web/public/next/assets/StatTile-D37_al-5.js +0 -2
  745. package/dist/core/web/public/next/assets/StatTile-D37_al-5.js.map +0 -1
  746. package/dist/core/web/public/next/assets/StatusBadge-BMhl56NE.js +0 -2
  747. package/dist/core/web/public/next/assets/StatusBadge-BMhl56NE.js.map +0 -1
  748. package/dist/core/web/public/next/assets/StepBand-CLijuT1G.js +0 -2
  749. package/dist/core/web/public/next/assets/StepBand-CLijuT1G.js.map +0 -1
  750. package/dist/core/web/public/next/assets/Surface-CEoCBSW9.js +0 -2
  751. package/dist/core/web/public/next/assets/Surface-CEoCBSW9.js.map +0 -1
  752. package/dist/core/web/public/next/assets/Swimlane-B7_xUvzg.js +0 -2
  753. package/dist/core/web/public/next/assets/Swimlane-B7_xUvzg.js.map +0 -1
  754. package/dist/core/web/public/next/assets/Switch-PuYr3f8b.js +0 -2
  755. package/dist/core/web/public/next/assets/Switch-PuYr3f8b.js.map +0 -1
  756. package/dist/core/web/public/next/assets/Tag-oGqv6zcN.js +0 -2
  757. package/dist/core/web/public/next/assets/Tag-oGqv6zcN.js.map +0 -1
  758. package/dist/core/web/public/next/assets/TaskContext-CJjmqbSt.js +0 -2
  759. package/dist/core/web/public/next/assets/TaskContext-CJjmqbSt.js.map +0 -1
  760. package/dist/core/web/public/next/assets/TerminalPane-BNqp9MSl.js +0 -26
  761. package/dist/core/web/public/next/assets/TerminalPane-BNqp9MSl.js.map +0 -1
  762. package/dist/core/web/public/next/assets/TerminalPane-Dlu8FdsD.js +0 -3
  763. package/dist/core/web/public/next/assets/TerminalPane-Dlu8FdsD.js.map +0 -1
  764. package/dist/core/web/public/next/assets/ThinkingBlock-B2mNZBCC.js +0 -2
  765. package/dist/core/web/public/next/assets/ThinkingBlock-B2mNZBCC.js.map +0 -1
  766. package/dist/core/web/public/next/assets/UniverseConsoleApp-Cj0IoWeG.js +0 -2
  767. package/dist/core/web/public/next/assets/UniverseConsoleApp-Cj0IoWeG.js.map +0 -1
  768. package/dist/core/web/public/next/assets/UniverseView-GtozdsS6.js +0 -9
  769. package/dist/core/web/public/next/assets/UniverseView-GtozdsS6.js.map +0 -1
  770. package/dist/core/web/public/next/assets/UsageSection-Dv-i0XoU.js +0 -3
  771. package/dist/core/web/public/next/assets/UsageSection-Dv-i0XoU.js.map +0 -1
  772. package/dist/core/web/public/next/assets/UsePlaybookAction-DWaBrjZ9.js +0 -2
  773. package/dist/core/web/public/next/assets/UsePlaybookAction-DWaBrjZ9.js.map +0 -1
  774. package/dist/core/web/public/next/assets/VerseConsoleApp-BpHiH8HH.js +0 -3
  775. package/dist/core/web/public/next/assets/VerseConsoleApp-BpHiH8HH.js.map +0 -1
  776. package/dist/core/web/public/next/assets/VerseMobileApp-DEoCa4uS.js +0 -3
  777. package/dist/core/web/public/next/assets/VerseMobileApp-DEoCa4uS.js.map +0 -1
  778. package/dist/core/web/public/next/assets/VerseShared-DADORPwC.js +0 -2
  779. package/dist/core/web/public/next/assets/VerseShared-DADORPwC.js.map +0 -1
  780. package/dist/core/web/public/next/assets/VoiceHud-BuwNZdeI.js +0 -2
  781. package/dist/core/web/public/next/assets/VoiceHud-BuwNZdeI.js.map +0 -1
  782. package/dist/core/web/public/next/assets/VoiceInput-1iwsyoGc.js +0 -2
  783. package/dist/core/web/public/next/assets/VoiceInput-1iwsyoGc.js.map +0 -1
  784. package/dist/core/web/public/next/assets/WebsitePublicationControl-DJ1C8yy9.js +0 -2
  785. package/dist/core/web/public/next/assets/WebsitePublicationControl-DJ1C8yy9.js.map +0 -1
  786. package/dist/core/web/public/next/assets/WikiSection-DcpW0DU-.js +0 -2
  787. package/dist/core/web/public/next/assets/WikiSection-DcpW0DU-.js.map +0 -1
  788. package/dist/core/web/public/next/assets/Workspace-D3ta5T9o.js +0 -6
  789. package/dist/core/web/public/next/assets/Workspace-D3ta5T9o.js.map +0 -1
  790. package/dist/core/web/public/next/assets/account-reading-refresh-CtynCz8X.js +0 -2
  791. package/dist/core/web/public/next/assets/account-reading-refresh-CtynCz8X.js.map +0 -1
  792. package/dist/core/web/public/next/assets/actions-egculESS.js +0 -2
  793. package/dist/core/web/public/next/assets/actions-egculESS.js.map +0 -1
  794. package/dist/core/web/public/next/assets/agent-tools-client-DFzrpziF.js +0 -2
  795. package/dist/core/web/public/next/assets/agent-tools-client-DFzrpziF.js.map +0 -1
  796. package/dist/core/web/public/next/assets/agents-focus-D0puHAIP.js +0 -2
  797. package/dist/core/web/public/next/assets/agents-focus-D0puHAIP.js.map +0 -1
  798. package/dist/core/web/public/next/assets/app-version-TdNhCUSm.js +0 -2
  799. package/dist/core/web/public/next/assets/app-version-TdNhCUSm.js.map +0 -1
  800. package/dist/core/web/public/next/assets/apps-model-B1ntU_VT.js +0 -2
  801. package/dist/core/web/public/next/assets/apps-model-B1ntU_VT.js.map +0 -1
  802. package/dist/core/web/public/next/assets/ask-seat-BqPiITSs.js +0 -2
  803. package/dist/core/web/public/next/assets/ask-seat-BqPiITSs.js.map +0 -1
  804. package/dist/core/web/public/next/assets/authority-model-DAbJnNLz.js +0 -2
  805. package/dist/core/web/public/next/assets/authority-model-DAbJnNLz.js.map +0 -1
  806. package/dist/core/web/public/next/assets/automations-focus-BPBWBojc.js +0 -2
  807. package/dist/core/web/public/next/assets/automations-focus-BPBWBojc.js.map +0 -1
  808. package/dist/core/web/public/next/assets/budget-queries-Cqx4cLpD.js +0 -2
  809. package/dist/core/web/public/next/assets/budget-queries-Cqx4cLpD.js.map +0 -1
  810. package/dist/core/web/public/next/assets/capacity-strip-model-CMy8lMbz.js +0 -2
  811. package/dist/core/web/public/next/assets/capacity-strip-model-CMy8lMbz.js.map +0 -1
  812. package/dist/core/web/public/next/assets/charts-_ban4d6Y.js +0 -2
  813. package/dist/core/web/public/next/assets/charts-_ban4d6Y.js.map +0 -1
  814. package/dist/core/web/public/next/assets/chat-pane-data-CDmMXRE8.js +0 -2
  815. package/dist/core/web/public/next/assets/chat-pane-data-CDmMXRE8.js.map +0 -1
  816. package/dist/core/web/public/next/assets/checkpoint-queries-B1VHsJMe.js +0 -2
  817. package/dist/core/web/public/next/assets/checkpoint-queries-B1VHsJMe.js.map +0 -1
  818. package/dist/core/web/public/next/assets/cloud-queries-4mUZc0Wi.js +0 -2
  819. package/dist/core/web/public/next/assets/cloud-queries-4mUZc0Wi.js.map +0 -1
  820. package/dist/core/web/public/next/assets/command-catalog-4jpWDaev.js +0 -2
  821. package/dist/core/web/public/next/assets/command-catalog-4jpWDaev.js.map +0 -1
  822. package/dist/core/web/public/next/assets/composer-queries-COq6LWga.js +0 -2
  823. package/dist/core/web/public/next/assets/composer-queries-COq6LWga.js.map +0 -1
  824. package/dist/core/web/public/next/assets/connectivity-CguH-WL9.js +0 -2
  825. package/dist/core/web/public/next/assets/connectivity-CguH-WL9.js.map +0 -1
  826. package/dist/core/web/public/next/assets/context-queries-Dk4eAiR7.js +0 -2
  827. package/dist/core/web/public/next/assets/context-queries-Dk4eAiR7.js.map +0 -1
  828. package/dist/core/web/public/next/assets/control-queries-Y4Jqwgdu.js +0 -2
  829. package/dist/core/web/public/next/assets/control-queries-Y4Jqwgdu.js.map +0 -1
  830. package/dist/core/web/public/next/assets/copy-setup-DCjjGEj_.js +0 -2
  831. package/dist/core/web/public/next/assets/copy-setup-DCjjGEj_.js.map +0 -1
  832. package/dist/core/web/public/next/assets/deep-link-Cow_qfT2.js +0 -2
  833. package/dist/core/web/public/next/assets/deep-link-Cow_qfT2.js.map +0 -1
  834. package/dist/core/web/public/next/assets/desktop-state-DyB1Kwb6.js +0 -2
  835. package/dist/core/web/public/next/assets/desktop-state-DyB1Kwb6.js.map +0 -1
  836. package/dist/core/web/public/next/assets/device-permissions-BMkDC_YU.js +0 -2
  837. package/dist/core/web/public/next/assets/device-permissions-BMkDC_YU.js.map +0 -1
  838. package/dist/core/web/public/next/assets/devin-queries-liDbeAM_.js +0 -2
  839. package/dist/core/web/public/next/assets/devin-queries-liDbeAM_.js.map +0 -1
  840. package/dist/core/web/public/next/assets/dock-icons-DB-meYrJ.js +0 -2
  841. package/dist/core/web/public/next/assets/dock-icons-DB-meYrJ.js.map +0 -1
  842. package/dist/core/web/public/next/assets/dock-panes-DQu78JTG.js +0 -2
  843. package/dist/core/web/public/next/assets/dock-panes-DQu78JTG.js.map +0 -1
  844. package/dist/core/web/public/next/assets/fleet-control-queries-GfdKiY9M.js +0 -2
  845. package/dist/core/web/public/next/assets/fleet-control-queries-GfdKiY9M.js.map +0 -1
  846. package/dist/core/web/public/next/assets/fleet-control.module-DGSw-trA.js +0 -3
  847. package/dist/core/web/public/next/assets/fleet-control.module-DGSw-trA.js.map +0 -1
  848. package/dist/core/web/public/next/assets/fleet-queries-DJjcfOmd.js +0 -2
  849. package/dist/core/web/public/next/assets/fleet-queries-DJjcfOmd.js.map +0 -1
  850. package/dist/core/web/public/next/assets/fleet-state-CyuiXE5B.js +0 -3
  851. package/dist/core/web/public/next/assets/fleet-state-CyuiXE5B.js.map +0 -1
  852. package/dist/core/web/public/next/assets/focus-trap-0hcZQFW9.js +0 -2
  853. package/dist/core/web/public/next/assets/focus-trap-0hcZQFW9.js.map +0 -1
  854. package/dist/core/web/public/next/assets/git-model-D2wjF911.js +0 -5
  855. package/dist/core/web/public/next/assets/git-model-D2wjF911.js.map +0 -1
  856. package/dist/core/web/public/next/assets/global-DNJfppDB.js +0 -3
  857. package/dist/core/web/public/next/assets/global-DNJfppDB.js.map +0 -1
  858. package/dist/core/web/public/next/assets/guarded-action-Nda__rw2.js +0 -3
  859. package/dist/core/web/public/next/assets/guarded-action-Nda__rw2.js.map +0 -1
  860. package/dist/core/web/public/next/assets/guarded-runners-BkTJrBaM.js +0 -2
  861. package/dist/core/web/public/next/assets/guarded-runners-BkTJrBaM.js.map +0 -1
  862. package/dist/core/web/public/next/assets/health-queries-Cj48Vjn3.js +0 -2
  863. package/dist/core/web/public/next/assets/health-queries-Cj48Vjn3.js.map +0 -1
  864. package/dist/core/web/public/next/assets/icons-CAPwjND9.js +0 -2
  865. package/dist/core/web/public/next/assets/icons-CAPwjND9.js.map +0 -1
  866. package/dist/core/web/public/next/assets/index-K3yNXq5W.js +0 -11
  867. package/dist/core/web/public/next/assets/index-K3yNXq5W.js.map +0 -1
  868. package/dist/core/web/public/next/assets/jev-queries-DAqcHbzn.js +0 -2
  869. package/dist/core/web/public/next/assets/jev-queries-DAqcHbzn.js.map +0 -1
  870. package/dist/core/web/public/next/assets/ladder-queries-LwRL-hPM.js +0 -2
  871. package/dist/core/web/public/next/assets/ladder-queries-LwRL-hPM.js.map +0 -1
  872. package/dist/core/web/public/next/assets/leader-focus-CW1--6IE.js +0 -2
  873. package/dist/core/web/public/next/assets/leader-focus-CW1--6IE.js.map +0 -1
  874. package/dist/core/web/public/next/assets/manager-queries-Bk9k8S75.js +0 -2
  875. package/dist/core/web/public/next/assets/manager-queries-Bk9k8S75.js.map +0 -1
  876. package/dist/core/web/public/next/assets/mobile-actions-DNFmfzLJ.js +0 -2
  877. package/dist/core/web/public/next/assets/mobile-actions-DNFmfzLJ.js.map +0 -1
  878. package/dist/core/web/public/next/assets/mobile-toast-COhQjzOv.js +0 -2
  879. package/dist/core/web/public/next/assets/mobile-toast-COhQjzOv.js.map +0 -1
  880. package/dist/core/web/public/next/assets/multimodel-flows-D7fok2lb.js +0 -7
  881. package/dist/core/web/public/next/assets/multimodel-flows-D7fok2lb.js.map +0 -1
  882. package/dist/core/web/public/next/assets/multimodel-queries-ymdJE1rw.js +0 -2
  883. package/dist/core/web/public/next/assets/multimodel-queries-ymdJE1rw.js.map +0 -1
  884. package/dist/core/web/public/next/assets/mutations-ufctr3Qo.js +0 -2
  885. package/dist/core/web/public/next/assets/mutations-ufctr3Qo.js.map +0 -1
  886. package/dist/core/web/public/next/assets/nav-C9gyDlC8.js +0 -2
  887. package/dist/core/web/public/next/assets/nav-C9gyDlC8.js.map +0 -1
  888. package/dist/core/web/public/next/assets/needs-you-actions-BOhGqVAj.js +0 -2
  889. package/dist/core/web/public/next/assets/needs-you-actions-BOhGqVAj.js.map +0 -1
  890. package/dist/core/web/public/next/assets/needs-you-model-D2Ca_32M.js +0 -2
  891. package/dist/core/web/public/next/assets/needs-you-model-D2Ca_32M.js.map +0 -1
  892. package/dist/core/web/public/next/assets/onboarding.module-BbaZiN3t.js +0 -2
  893. package/dist/core/web/public/next/assets/onboarding.module-BbaZiN3t.js.map +0 -1
  894. package/dist/core/web/public/next/assets/open-terminal-Cb4A4EXY.js +0 -2
  895. package/dist/core/web/public/next/assets/open-terminal-Cb4A4EXY.js.map +0 -1
  896. package/dist/core/web/public/next/assets/open-terminal-request-pLC3McuS.js +0 -2
  897. package/dist/core/web/public/next/assets/open-terminal-request-pLC3McuS.js.map +0 -1
  898. package/dist/core/web/public/next/assets/outcomes-queries-Bv0Q9370.js +0 -2
  899. package/dist/core/web/public/next/assets/outcomes-queries-Bv0Q9370.js.map +0 -1
  900. package/dist/core/web/public/next/assets/overnight-queries-BtQYJPJq.js +0 -2
  901. package/dist/core/web/public/next/assets/overnight-queries-BtQYJPJq.js.map +0 -1
  902. package/dist/core/web/public/next/assets/palette-handoff-C3ygtbzz.js +0 -2
  903. package/dist/core/web/public/next/assets/palette-handoff-C3ygtbzz.js.map +0 -1
  904. package/dist/core/web/public/next/assets/panes-xy1IchDb.js +0 -3
  905. package/dist/core/web/public/next/assets/panes-xy1IchDb.js.map +0 -1
  906. package/dist/core/web/public/next/assets/path-display-DZWGYwxb.js +0 -2
  907. package/dist/core/web/public/next/assets/path-display-DZWGYwxb.js.map +0 -1
  908. package/dist/core/web/public/next/assets/playbook-composer-DQaoF6up.js +0 -2
  909. package/dist/core/web/public/next/assets/playbook-composer-DQaoF6up.js.map +0 -1
  910. package/dist/core/web/public/next/assets/playbook-focus-BwUQfSL9.js +0 -2
  911. package/dist/core/web/public/next/assets/playbook-focus-BwUQfSL9.js.map +0 -1
  912. package/dist/core/web/public/next/assets/playbooks-queries-CAtj4Bf2.js +0 -2
  913. package/dist/core/web/public/next/assets/playbooks-queries-CAtj4Bf2.js.map +0 -1
  914. package/dist/core/web/public/next/assets/preloaded-BVeoPkI4.js +0 -2
  915. package/dist/core/web/public/next/assets/preloaded-BVeoPkI4.js.map +0 -1
  916. package/dist/core/web/public/next/assets/proactive-queries-BQfzWMIK.js +0 -2
  917. package/dist/core/web/public/next/assets/proactive-queries-BQfzWMIK.js.map +0 -1
  918. package/dist/core/web/public/next/assets/pwa-CuDaFuUg.js +0 -2
  919. package/dist/core/web/public/next/assets/pwa-CuDaFuUg.js.map +0 -1
  920. package/dist/core/web/public/next/assets/queries-DupxJKsa.js +0 -2
  921. package/dist/core/web/public/next/assets/queries-DupxJKsa.js.map +0 -1
  922. package/dist/core/web/public/next/assets/question-model-DmBGli60.js +0 -1
  923. package/dist/core/web/public/next/assets/reasoning-pref-EKwmpS6K.js +0 -2
  924. package/dist/core/web/public/next/assets/reasoning-pref-EKwmpS6K.js.map +0 -1
  925. package/dist/core/web/public/next/assets/remote-session-ICM6E2nO.js +0 -3
  926. package/dist/core/web/public/next/assets/remote-session-ICM6E2nO.js.map +0 -1
  927. package/dist/core/web/public/next/assets/resolved-store-ukqRTtwu.js +0 -2
  928. package/dist/core/web/public/next/assets/resolved-store-ukqRTtwu.js.map +0 -1
  929. package/dist/core/web/public/next/assets/resources-queries-wzvYTV23.js +0 -2
  930. package/dist/core/web/public/next/assets/resources-queries-wzvYTV23.js.map +0 -1
  931. package/dist/core/web/public/next/assets/reveal-anchor-Bcfx_wKL.js +0 -2
  932. package/dist/core/web/public/next/assets/reveal-anchor-Bcfx_wKL.js.map +0 -1
  933. package/dist/core/web/public/next/assets/sheet-DFdr5Lo9.js +0 -2
  934. package/dist/core/web/public/next/assets/sheet-DFdr5Lo9.js.map +0 -1
  935. package/dist/core/web/public/next/assets/slots-Dmm49g3e.js +0 -3
  936. package/dist/core/web/public/next/assets/slots-Dmm49g3e.js.map +0 -1
  937. package/dist/core/web/public/next/assets/sources-queries-DNFLElq8.js +0 -4
  938. package/dist/core/web/public/next/assets/sources-queries-DNFLElq8.js.map +0 -1
  939. package/dist/core/web/public/next/assets/sse-B9OtNHQ0.js +0 -2
  940. package/dist/core/web/public/next/assets/sse-B9OtNHQ0.js.map +0 -1
  941. package/dist/core/web/public/next/assets/start-chat-a6jUUYNk.js +0 -3
  942. package/dist/core/web/public/next/assets/start-chat-a6jUUYNk.js.map +0 -1
  943. package/dist/core/web/public/next/assets/surface-data-Ds6XBRdM.js +0 -2
  944. package/dist/core/web/public/next/assets/surface-data-Ds6XBRdM.js.map +0 -1
  945. package/dist/core/web/public/next/assets/surface-prefetch-CjFya7bj.js +0 -2
  946. package/dist/core/web/public/next/assets/surface-prefetch-CjFya7bj.js.map +0 -1
  947. package/dist/core/web/public/next/assets/terminal-client-JaCtN0Yb.js +0 -2
  948. package/dist/core/web/public/next/assets/terminal-client-JaCtN0Yb.js.map +0 -1
  949. package/dist/core/web/public/next/assets/terminal-icons-DS4tKR2l.js +0 -2
  950. package/dist/core/web/public/next/assets/terminal-icons-DS4tKR2l.js.map +0 -1
  951. package/dist/core/web/public/next/assets/terminal-view-B0s9Z_Ty.js +0 -6
  952. package/dist/core/web/public/next/assets/terminal-view-B0s9Z_Ty.js.map +0 -1
  953. package/dist/core/web/public/next/assets/thread-data-w8DTCC63.js +0 -2
  954. package/dist/core/web/public/next/assets/thread-data-w8DTCC63.js.map +0 -1
  955. package/dist/core/web/public/next/assets/ui-parts-kSSghNcT.js +0 -2
  956. package/dist/core/web/public/next/assets/ui-parts-kSSghNcT.js.map +0 -1
  957. package/dist/core/web/public/next/assets/usage-queries-BOEoZwaa.js +0 -2
  958. package/dist/core/web/public/next/assets/usage-queries-BOEoZwaa.js.map +0 -1
  959. package/dist/core/web/public/next/assets/use-chat-activity-OiUrY8vN.js +0 -2
  960. package/dist/core/web/public/next/assets/use-chat-activity-OiUrY8vN.js.map +0 -1
  961. package/dist/core/web/public/next/assets/use-guarded-action-DJysmW7X.js +0 -2
  962. package/dist/core/web/public/next/assets/use-guarded-action-DJysmW7X.js.map +0 -1
  963. package/dist/core/web/public/next/assets/use-ticker-CKTbaE4n.js +0 -2
  964. package/dist/core/web/public/next/assets/use-ticker-CKTbaE4n.js.map +0 -1
  965. package/dist/core/web/public/next/assets/use-token-gate-77Ow7w4J.js +0 -2
  966. package/dist/core/web/public/next/assets/use-token-gate-77Ow7w4J.js.map +0 -1
  967. package/dist/core/web/public/next/assets/useAutoSeat-BlcOB4EC.js +0 -2
  968. package/dist/core/web/public/next/assets/useAutoSeat-BlcOB4EC.js.map +0 -1
  969. package/dist/core/web/public/next/assets/useOnboarding-i9MegpNp.js +0 -2
  970. package/dist/core/web/public/next/assets/useOnboarding-i9MegpNp.js.map +0 -1
  971. package/dist/core/web/public/next/assets/useSeatHealth-B1MF1BDN.js +0 -2
  972. package/dist/core/web/public/next/assets/useSeatHealth-B1MF1BDN.js.map +0 -1
  973. package/dist/core/web/public/next/assets/useSeatsRefresh-B8iBEvA-.js +0 -3
  974. package/dist/core/web/public/next/assets/useSeatsRefresh-B8iBEvA-.js.map +0 -1
  975. package/dist/core/web/public/next/assets/useVerseSession-BhuJImwo.js +0 -2
  976. package/dist/core/web/public/next/assets/useVerseSession-BhuJImwo.js.map +0 -1
  977. package/dist/core/web/public/next/assets/useVerseTranscript-DWs9Fq_Q.js +0 -2
  978. package/dist/core/web/public/next/assets/useVerseTranscript-DWs9Fq_Q.js.map +0 -1
  979. package/dist/core/web/public/next/assets/verse-bootstrap-query-nCaR46ES.js +0 -2
  980. package/dist/core/web/public/next/assets/verse-bootstrap-query-nCaR46ES.js.map +0 -1
  981. package/dist/core/web/public/next/assets/verse-icons-Lygc_pk7.js +0 -2
  982. package/dist/core/web/public/next/assets/verse-icons-Lygc_pk7.js.map +0 -1
  983. package/dist/core/web/public/next/assets/verse-list-channel-BAnUoseK.js +0 -2
  984. package/dist/core/web/public/next/assets/verse-list-channel-BAnUoseK.js.map +0 -1
  985. package/dist/core/web/public/next/assets/warmup-BthaJjre.js +0 -3
  986. package/dist/core/web/public/next/assets/warmup-BthaJjre.js.map +0 -1
  987. package/dist/core/web/public/next/assets/wiki-focus-C0O1O5bi.js +0 -2
  988. package/dist/core/web/public/next/assets/wiki-focus-C0O1O5bi.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"dock-icons-DB-meYrJ.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/dock/dock-icons.tsx"],"sourcesContent":["/**\n * routes/verse/dock/dock-icons.tsx — the chat surface's own 16px glyphs\n * (unit C2): the dock's pane tabs and the header's pane toggles, the ⋯\n * menu, pin and archive. Same drawing grammar as components/primitives/icons\n * (16-unit box, 1.5 stroke, round caps, currentColor) so they sit beside the\n * shared set without looking borrowed; kept here because verse-icons.tsx is\n * the shell's file.\n */\nimport type { ReactNode, SVGProps } from 'react';\nimport type { BuiltinPaneId } from '../shell/dock-catalog.js';\n\nexport interface GlyphProps extends Omit<SVGProps<SVGSVGElement>, 'children' | 'viewBox'> {\n size?: number;\n}\n\nfunction Glyph({ size = 16, children, ...rest }: GlyphProps & { children: ReactNode }) {\n return (\n <svg width={size} height={size} viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.5}\n strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\" focusable=\"false\" {...rest}>\n {children}\n </svg>\n );\n}\n\nexport function TerminalGlyph(p: GlyphProps) {\n return <Glyph {...p}><rect x=\"1.75\" y=\"2.75\" width=\"12.5\" height=\"10.5\" rx=\"1.5\" /><path d=\"m4.5 6.25 2 1.75-2 1.75M8.25 10h3\" /></Glyph>;\n}\n\nexport function PreviewGlyph(p: GlyphProps) {\n return <Glyph {...p}><rect x=\"1.75\" y=\"2.75\" width=\"12.5\" height=\"10.5\" rx=\"1.5\" /><path d=\"M1.75 5.75h12.5M4 4.25h.01M5.75 4.25h.01\" /></Glyph>;\n}\n\nexport function ReviewGlyph(p: GlyphProps) {\n return <Glyph {...p}><path d=\"M5 2.5v5M2.5 5h5M9 11h4.5\" /><path d=\"M11.5 2.5 4.5 13.5\" /></Glyph>;\n}\n\nexport function TasksGlyph(p: GlyphProps) {\n return <Glyph {...p}><path d=\"M6.5 4h7M6.5 8h7M6.5 12h7\" /><path d=\"m2.25 4 1 1 1.5-2M2.5 8h1.75M2.5 12h1.75\" /></Glyph>;\n}\n\nexport function ContextGlyph(p: GlyphProps) {\n return <Glyph {...p}><path d=\"m8 2 6 3-6 3-6-3 6-3Z\" /><path d=\"m2 8 6 3 6-3M2 11l6 3 6-3\" /></Glyph>;\n}\n\nexport function SplitGlyph(p: GlyphProps) {\n return <Glyph {...p}><rect x=\"2.25\" y=\"2.25\" width=\"11.5\" height=\"11.5\" rx=\"1.5\" /><path d=\"M2.25 8h11.5\" /></Glyph>;\n}\n\nexport function CloseGlyph(p: GlyphProps) {\n return <Glyph {...p}><path d=\"m4 4 8 8M12 4l-8 8\" /></Glyph>;\n}\n\nexport function MoreGlyph(p: GlyphProps) {\n return (\n <Glyph {...p}>\n <circle cx=\"3.5\" cy=\"8\" r=\"0.9\" fill=\"currentColor\" stroke=\"none\" />\n <circle cx=\"8\" cy=\"8\" r=\"0.9\" fill=\"currentColor\" stroke=\"none\" />\n <circle cx=\"12.5\" cy=\"8\" r=\"0.9\" fill=\"currentColor\" stroke=\"none\" />\n </Glyph>\n );\n}\n\nexport function PinGlyph(p: GlyphProps) {\n return <Glyph {...p}><path d=\"M9.75 2.25 13.75 6.25 11 7.5 8.5 10l.25 2.75-5-5L6.5 8 9 5.25Z\" /><path d=\"m5 11-2.75 2.75\" /></Glyph>;\n}\n\nexport function ArchiveGlyph(p: GlyphProps) {\n return <Glyph {...p}><rect x=\"1.75\" y=\"2.75\" width=\"12.5\" height=\"3\" rx=\"1\" /><path d=\"M2.75 5.75v6.5a1 1 0 0 0 1 1h8.5a1 1 0 0 0 1-1v-6.5M6.5 8.5h3\" /></Glyph>;\n}\n\nexport function RenameGlyph(p: GlyphProps) {\n return <Glyph {...p}><path d=\"M10.5 2.75 13.25 5.5 6 12.75H3.25V10Z\" /></Glyph>;\n}\n\nexport function HandoffGlyph(p: GlyphProps) {\n return <Glyph {...p}><path d=\"M2.5 8h9M8.5 4.5 12 8l-3.5 3.5\" /><path d=\"M13.75 3v10\" /></Glyph>;\n}\n\nexport function CopyGlyph(p: GlyphProps) {\n return <Glyph {...p}><rect x=\"5.25\" y=\"5.25\" width=\"8.5\" height=\"8.5\" rx=\"1.5\" /><path d=\"M10.75 5.25V3.75a1.5 1.5 0 0 0-1.5-1.5h-5.5a1.5 1.5 0 0 0-1.5 1.5v5.5a1.5 1.5 0 0 0 1.5 1.5h1.5\" /></Glyph>;\n}\n\nexport function TrashGlyph(p: GlyphProps) {\n return <Glyph {...p}><path d=\"M2.75 4.25h10.5M6.25 4.25V2.75h3.5v1.5M4.25 4.25l.6 9h6.3l.6-9\" /></Glyph>;\n}\n\nexport function FilesGlyph(p: GlyphProps) {\n return <Glyph {...p}><path d=\"M2.25 4.25a1.5 1.5 0 0 1 1.5-1.5h2.5l1.5 1.75h4.5a1.5 1.5 0 0 1 1.5 1.5v5.75a1.5 1.5 0 0 1-1.5 1.5h-8.5a1.5 1.5 0 0 1-1.5-1.5Z\" /></Glyph>;\n}\n\nexport function SourcesGlyph(p: GlyphProps) {\n return <Glyph {...p}><path d=\"M3.25 2.75h6l3.5 3.5v7a1 1 0 0 1-1 1h-8.5a1 1 0 0 1-1-1v-9.5a1 1 0 0 1 1-1Z\" /><path d=\"M9 2.75v3.5h3.75M5 9h6M5 11.5h4\" /></Glyph>;\n}\n\nexport function ReasoningGlyph(p: GlyphProps) {\n return <Glyph {...p}><path d=\"M6 13.25h4M6.5 11.25h3M8 1.75a4.25 4.25 0 0 0-2.4 7.76c.3.2.5.55.5.92v.82h3.8v-.82c0-.37.2-.72.5-.92A4.25 4.25 0 0 0 8 1.75Z\" /></Glyph>;\n}\n\n/** Focus mode: four corners closing in on the conversation. */\nexport function FocusGlyph(p: GlyphProps) {\n return <Glyph {...p}><path d=\"M2.25 5.5V3.25a1 1 0 0 1 1-1H5.5M10.5 2.25h2.25a1 1 0 0 1 1 1V5.5M13.75 10.5v2.25a1 1 0 0 1-1 1H10.5M5.5 13.75H3.25a1 1 0 0 1-1-1V10.5\" /></Glyph>;\n}\n\n/** The panel docked beside the chat. */\nexport function PanelRightGlyph(p: GlyphProps) {\n return <Glyph {...p}><rect x=\"1.75\" y=\"2.75\" width=\"12.5\" height=\"10.5\" rx=\"1.5\" /><path d=\"M9.75 2.75v10.5\" /></Glyph>;\n}\n\n/** The panel docked under the chat. */\nexport function PanelBottomGlyph(p: GlyphProps) {\n return <Glyph {...p}><rect x=\"1.75\" y=\"2.75\" width=\"12.5\" height=\"10.5\" rx=\"1.5\" /><path d=\"M1.75 9.5h12.5\" /></Glyph>;\n}\n\nexport const DOCK_PANE_GLYPH: Readonly<Record<BuiltinPaneId, (p: GlyphProps) => ReactNode>> = {\n terminal: TerminalGlyph,\n browser: PreviewGlyph,\n diff: ReviewGlyph,\n files: FilesGlyph,\n sources: SourcesGlyph,\n reasoning: ReasoningGlyph,\n tasks: TasksGlyph,\n context: ContextGlyph,\n};\n"],"mappings":"kDAeA,SAAS,EAAM,CAAE,OAAO,GAAI,WAAU,GAAG,GAA8C,CACrF,OACE,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,MAAO,EAAM,OAAQ,EAAM,QAAQ,YAAY,KAAK,OAAO,OAAO,eAAe,YAAa,IACjG,cAAc,QAAQ,eAAe,QAAQ,cAAY,OAAO,UAAU,QAAQ,GAAI,EACrF,UACE,CAAA,CAET,CAEA,SAAgB,EAAc,EAAe,CAC3C,OAAO,EAAA,EAAA,KAAA,CAAC,EAAD,CAAO,GAAI,EAAX,SAAA,EAAc,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,EAAE,OAAO,EAAE,OA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A,CAAQ,GAClK,CAEA,SAAgB,EAAe,EAAe,CAC5C,OAAO,EAAA,EAAA,IAAA,CAAC,EAAD,CAAO,GAAI,EAAG,UAAA,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,EAAE,8HAAgI,CAAA,CAAQ,CAAA,CACvK,CAGA,SAAgB,EAAW,EAAe,CACxC,OAAO,EAAA,EAAA,IAAA,CAAC,EAAD,CAAO,GAAI,EAAG,UAAA,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,EAAE,wIAA0I,CAAA,CAAQ,CAAA,CACjL,CAGA,SAAgB,EAAgB,EAAe,CAC7C,OAAO,EAAA,EAAA,KAAA,CAAC,EAAD,CAAO,GAAI,EAAX,SAAA,EAAc,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,EAAE,OAAO,EAAE,OAAO,MAAM,OAAO,OAAO,OAAO,GAAG,KAAO,CAAA,GAAC,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,EAAE,iBAAmB,CAAA,CAAQ,GACxH,CAGA,SAAgB,EAAiB,EAAe,CAC9C,OAAO,EAAA,EAAA,KAAA,CAAC,EAAD,CAAO,GAAI,EAAX,SAAA,EAAc,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,EAAE,OAAO,EAAE,OAAO,MAAM,OAAO,OAAO,OAAO,GAAG,KAAO,CAAA,GAAC,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,EAAE,gBAAkB,CAAA,CAAQ,GACvH"}
@@ -1,2 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,s as n}from"./index-K3yNXq5W.js";import{c as r}from"./tool-semantics-xF0Fw2Ck.js";import{c as i,i as a,n as o,t as s}from"./sources-queries-DNFLElq8.js";import{n as c}from"./verse-transcript-BpReCATw.js";import{t as l}from"./useVerseTranscript-DWs9Fq_Q.js";import{n as u,t as d}from"./SourcesPanel-CUeMV_T-.js";import{a as f}from"./ChatSection-BJZKNDGv.js";var p=e(n(),1);function m(e,t=!0){let n=l(t?e:null),r=(0,p.useRef)({sessionId:e,cache:a()}),i=(0,p.useRef)({sessionId:e,turns:[]});return(0,p.useMemo)(()=>{if(!t)return i.current.sessionId===e?i.current.turns:[];r.current.sessionId!==e&&(r.current={sessionId:e,cache:a()});let s=o(c(n.items),r.current.cache).turns;return i.current={sessionId:e,turns:s},s},[n,t,e])}function h(e){let t=(0,p.useCallback)(async(t,n)=>{if(!e)throw Error(`no chat is open`);await s(e,t,n)},[e]),n=(0,p.useCallback)(e=>{f(r(e))},[]),a=(0,p.useCallback)(e=>{f(i(e))},[]);return(0,p.useMemo)(()=>({openFile:t,jumpToTool:n,jumpToTurn:a}),[t,n,a])}var g=t();function _({sessionId:e,session:t,visible:n,host:r}){let i=m(e,n),a=h(e),o=r.addToMessage,s=(0,p.useCallback)(e=>o(e),[o]);return(0,g.jsx)(d,{turns:i,session:t,...a,onCite:s})}function v({sessionId:e,session:t,visible:n}){let r=m(e,n),{jumpToTurn:i}=h(e);return(0,g.jsx)(u,{turns:r,engine:t?.engine??null,jumpToTurn:i})}export{v as ReasoningDockPane,_ as SourcesDockPane};
2
- //# sourceMappingURL=dock-panes-DQu78JTG.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dock-panes-DQu78JTG.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/reasoning/pane-data.ts","../../../../../../src/web-ui/routes/verse/reasoning/dock-panes.tsx"],"sourcesContent":["/**\n * routes/verse/reasoning/pane-data.ts — what a Sources / Reasoning pane needs\n * when it is mounted OUTSIDE the transcript (a dock pane, a split), from\n * nothing but the session id.\n *\n * Turns are derived with the same pipeline the transcript uses\n * (groupTranscriptItems → buildTurns) over the same memoized transcript, with\n * a per-hook TurnCache so a streamed token re-derives only the live turn.\n * Jumps go through the transcript's own bus (chat/transcript-jump.ts), so a\n * click in a pane lands on the call or turn with the same reveal machinery\n * (opening a folded activity group, the locator flash).\n */\nimport { useCallback, useMemo, useRef } from 'react';\nimport { requestTranscriptJump } from '../chat/transcript-jump.js';\nimport { toolAnchorId } from '../chat/tool-semantics.js';\nimport { buildTurns, createTurnCache, turnAnchorId, type TurnBlock, type TurnCache } from '../chat/turn-model.js';\nimport { useVerseTranscript } from '../useVerseTranscript.js';\nimport { groupTranscriptItems } from '../verse-transcript.js';\nimport { openSourceFile } from './sources-queries.js';\n\n/**\n * The chat's turns. `active: false` (a pane kept alive behind another tab)\n * unsubscribes from the stream and keeps the last turns it derived, so a\n * hidden pane does no work per token; it catches up when shown again.\n */\nexport function useChatTurns(sessionId: string | null, active = true): TurnBlock[] {\n const transcript = useVerseTranscript(active ? sessionId : null);\n const cache = useRef<{ sessionId: string | null; cache: TurnCache }>({ sessionId, cache: createTurnCache() });\n const last = useRef<{ sessionId: string | null; turns: TurnBlock[] }>({ sessionId, turns: [] });\n return useMemo(() => {\n if (!active) return last.current.sessionId === sessionId ? last.current.turns : [];\n if (cache.current.sessionId !== sessionId) cache.current = { sessionId, cache: createTurnCache() };\n const turns = buildTurns(groupTranscriptItems(transcript.items), cache.current.cache).turns;\n last.current = { sessionId, turns };\n return turns;\n }, [transcript, active, sessionId]);\n}\n\nexport interface PaneActions {\n openFile: (path: string, line: number | undefined) => Promise<void>;\n jumpToTool: (toolUseId: string) => void;\n jumpToTurn: (turnKey: string) => void;\n}\n\nexport function usePaneActions(sessionId: string | null): PaneActions {\n const openFile = useCallback(async (path: string, line: number | undefined) => {\n if (!sessionId) throw new Error('no chat is open');\n await openSourceFile(sessionId, path, line);\n }, [sessionId]);\n const jumpToTool = useCallback((toolUseId: string) => { requestTranscriptJump(toolAnchorId(toolUseId)); }, []);\n const jumpToTurn = useCallback((turnKey: string) => { requestTranscriptJump(turnAnchorId(turnKey)); }, []);\n return useMemo(() => ({ openFile, jumpToTool, jumpToTurn }), [openFile, jumpToTool, jumpToTurn]);\n}\n","/**\n * routes/verse/reasoning/dock-panes.tsx — the Sources and Reasoning panels as\n * registry panes (reasoning.pane.tsx registers them).\n *\n * Adapters only: the panels are presentational over derived turns\n * (SourcesPanel / ReasoningPanel); this is where the dock's PaneProps meet\n * them. A pane kept alive behind another tab (`visible: false`) stops\n * following the stream and keeps what it last showed, so a hidden pane costs\n * nothing per token.\n */\nimport { useCallback } from 'react';\nimport type { PaneProps } from '../panes/pane-registry.js';\nimport { useChatTurns, usePaneActions } from './pane-data.js';\nimport { ReasoningPanel } from './ReasoningPanel.js';\nimport { SourcesPanel } from './SourcesPanel.js';\n\nexport function SourcesDockPane({ sessionId, session, visible, host }: PaneProps) {\n const turns = useChatTurns(sessionId, visible);\n const actions = usePaneActions(sessionId);\n const addToMessage = host.addToMessage;\n const onCite = useCallback((text: string) => addToMessage(text), [addToMessage]);\n return <SourcesPanel turns={turns} session={session} {...actions} onCite={onCite} />;\n}\n\nexport function ReasoningDockPane({ sessionId, session, visible }: PaneProps) {\n const turns = useChatTurns(sessionId, visible);\n const { jumpToTurn } = usePaneActions(sessionId);\n return <ReasoningPanel turns={turns} engine={session?.engine ?? null} jumpToTurn={jumpToTurn} />;\n}\n"],"mappings":"qbAyBA,SAAgB,EAAa,EAA0B,EAAS,GAAmB,CACjF,IAAM,EAAa,EAAmB,EAAS,EAAY,IAAI,EACzD,GAAA,EAAQ,EAAA,OAAA,CAAuD,CAAE,YAAW,MAAO,EAAgB,CAAE,CAAC,EACtG,GAAA,EAAO,EAAA,OAAA,CAAyD,CAAE,YAAW,MAAO,CAAC,CAAE,CAAC,EAC9F,OAAA,EAAO,EAAA,QAAA,KAAc,CACnB,GAAI,CAAC,EAAQ,OAAO,EAAK,QAAQ,YAAc,EAAY,EAAK,QAAQ,MAAQ,CAAC,EAC7E,EAAM,QAAQ,YAAc,IAAW,EAAM,QAAU,CAAE,YAAW,MAAO,EAAgB,CAAE,GACjG,IAAM,EAAQ,EAAW,EAAqB,EAAW,KAAK,EAAG,EAAM,QAAQ,KAAK,CAAC,CAAC,MAEtF,MADA,GAAK,QAAU,CAAE,YAAW,OAAM,EAC3B,CACT,EAAG,CAAC,EAAY,EAAQ,CAAS,CAAC,CACpC,CAQA,SAAgB,EAAe,EAAuC,CACpE,IAAM,GAAA,EAAW,EAAA,YAAA,CAAY,MAAO,EAAc,IAA6B,CAC7E,GAAI,CAAC,EAAW,MAAU,MAAM,iBAAiB,EACjD,MAAM,EAAe,EAAW,EAAM,CAAI,CAC5C,EAAG,CAAC,CAAS,CAAC,EACR,GAAA,EAAa,EAAA,YAAA,CAAa,GAAsB,CAAE,EAAsB,EAAa,CAAS,CAAC,CAAG,EAAG,CAAC,CAAC,EACvG,GAAA,EAAa,EAAA,YAAA,CAAa,GAAoB,CAAE,EAAsB,EAAa,CAAO,CAAC,CAAG,EAAG,CAAC,CAAC,EACzG,OAAA,EAAO,EAAA,QAAA,MAAe,CAAE,WAAU,aAAY,YAAW,GAAI,CAAC,EAAU,EAAY,CAAU,CAAC,CACjG,WCpCA,SAAgB,EAAgB,CAAE,YAAW,UAAS,UAAS,QAAmB,CAChF,IAAM,EAAQ,EAAa,EAAW,CAAO,EACvC,EAAU,EAAe,CAAS,EAClC,EAAe,EAAK,aACpB,GAAA,EAAS,EAAA,YAAA,CAAa,GAAiB,EAAa,CAAI,EAAG,CAAC,CAAY,CAAC,EAC/E,OAAO,EAAA,EAAA,IAAA,CAAC,EAAD,CAAqB,QAAgB,UAAS,GAAI,EAAiB,QAAS,CAAA,CACrF,CAEA,SAAgB,EAAkB,CAAE,YAAW,UAAS,WAAsB,CAC5E,IAAM,EAAQ,EAAa,EAAW,CAAO,EACvC,CAAE,cAAe,EAAe,CAAS,EAC/C,OAAO,EAAA,EAAA,IAAA,CAAC,EAAD,CAAuB,QAAO,OAAQ,GAAS,QAAU,KAAkB,YAAa,CAAA,CACjG"}
@@ -1,2 +0,0 @@
1
- import{B as e,C as t,G as n,M as r,V as i,a,i as o}from"./global-DNJfppDB.js";import{o as s,s as c}from"./queries-DupxJKsa.js";import{O as l}from"./VerseShared-DADORPwC.js";import{f as u,n as d}from"./control-queries-Y4Jqwgdu.js";import{a as f,n as p,s as m,u as h}from"./surface-data-Ds6XBRdM.js";import{n as g}from"./fleet-queries-DJjcfOmd.js";var _=`/api/verse/fleet/control`,v=`/api/verse/fleet/control/queue`,y=`/api/verse/leader/directives`,b=Object.freeze({state:`verse-fleet-control`,queue:`verse-fleet-control-queue`});function x(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function S(e){return x(e)&&e.v===1&&typeof e.state==`string`&&typeof e.headline==`string`&&x(e.controls)&&x(e.grant)&&x(e.daemon)?e:null}function C(e){return x(e)&&e.v===1&&Array.isArray(e.tasks)&&Array.isArray(e.goals)&&x(e.targets)?e:null}var w=h(b.state,_,`The fleet controls`,S),T=h(b.queue,v,`The fleet queue`,C);async function E(e,n){let i=t();if(!i)throw new d;let o=await a(e,n,i);return r(),o}function D(){for(let t of[w,T,m,f,u,g,c,s])e(t.key).status!==`idle`&&n(t.key,()=>t.fetch(),!0);l()}async function O(e){let t=await E(_,e);return D(),t}async function k(e,t){return o(`${_}/runs/${encodeURIComponent(e)}/log`,t)}async function A(e){let t=await E(y,{text:e});return i(p.leader),t}export{A as a,O as i,w as n,D as o,T as r,k as t};
2
- //# sourceMappingURL=fleet-control-queries-GfdKiY9M.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fleet-control-queries-GfdKiY9M.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/fleet/fleet-control-queries.ts"],"sourcesContent":["/**\n * routes/verse/fleet/fleet-control-queries.ts — reads and writes behind the\n * Fleet control surface (3.15):\n *\n * GET /api/verse/fleet/control FleetControlStateV1\n * GET /api/verse/fleet/control/queue FleetControlQueueV1\n * GET /api/verse/fleet/control/runs/<id>/log FleetRunLogV1\n * POST /api/verse/fleet/control one FleetControlAction\n * POST /api/verse/leader/directives a Leader directive\n *\n * Reads are optional like every surface read (a server without the route is\n * \"not available here\", never a broken page). Writes pull the held mutation\n * token and invalidate exactly what they change.\n */\nimport { apiGet, apiPost } from '../../../data/client.js';\nimport { getMutationToken, touchMutationHold } from '../../../data/auth-store.js';\nimport { getQuerySnapshot, invalidate, refetchQuery } from '../../../data/cache.js';\nimport { fleetStatusQuery, fleetActivityQuery } from '../../../data/queries.js';\nimport { verseControlQuery, VerseControlLockedError } from '../autonomy/control-queries.js';\nimport { fleetQuery } from '../autonomy/fleet-queries.js';\nimport { refreshActivity } from '../shell/useActivity.js';\nimport { authorityQuery, fleetLiveQuery, SURFACE_KEYS, optionalQuery } from '../command/surface-data.js';\nimport type {\n FleetControlAction,\n FleetControlActionResultV1,\n FleetControlQueueV1,\n FleetControlStateV1,\n FleetRunLogV1,\n} from '../../../../core/fleet/fleet-control-types.js';\n\nexport const FLEET_CONTROL_PATH = '/api/verse/fleet/control';\nexport const FLEET_CONTROL_QUEUE_PATH = '/api/verse/fleet/control/queue';\nexport const LEADER_DIRECTIVES_PATH = '/api/verse/leader/directives';\n\nexport const FLEET_CONTROL_KEYS = Object.freeze({\n state: 'verse-fleet-control',\n queue: 'verse-fleet-control-queue',\n});\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return value !== null && typeof value === 'object' && !Array.isArray(value);\n}\n\nexport function narrowFleetControl(raw: unknown): FleetControlStateV1 | null {\n return isRecord(raw) && raw['v'] === 1 && typeof raw['state'] === 'string' && typeof raw['headline'] === 'string'\n && isRecord(raw['controls']) && isRecord(raw['grant']) && isRecord(raw['daemon'])\n ? (raw as unknown as FleetControlStateV1)\n : null;\n}\n\nexport function narrowFleetQueue(raw: unknown): FleetControlQueueV1 | null {\n return isRecord(raw) && raw['v'] === 1 && Array.isArray(raw['tasks']) && Array.isArray(raw['goals']) && isRecord(raw['targets'])\n ? (raw as unknown as FleetControlQueueV1)\n : null;\n}\n\nexport const fleetControlQuery = optionalQuery(FLEET_CONTROL_KEYS.state, FLEET_CONTROL_PATH, 'The fleet controls', narrowFleetControl);\nexport const fleetQueueQuery = optionalQuery(FLEET_CONTROL_KEYS.queue, FLEET_CONTROL_QUEUE_PATH, 'The fleet queue', narrowFleetQueue);\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/** Native operations change disk state outside the HTTP mutation/SSE path. */\nexport function refreshFleetControlReads(): void {\n for (const query of [fleetControlQuery, fleetQueueQuery, fleetLiveQuery, authorityQuery, verseControlQuery, fleetQuery, fleetStatusQuery, fleetActivityQuery]) {\n // Preserve lazy panels: don't fetch a projection nobody has read yet.\n // Force a new read so an outstanding pre-operation answer cannot win.\n if (getQuerySnapshot(query.key).status !== 'idle') {\n void refetchQuery<unknown>(query.key, () => query.fetch(), true);\n }\n }\n void refreshActivity();\n}\n\n/** One control action; the answer carries the state READ BACK after it. */\nexport async function postFleetControl(action: FleetControlAction): Promise<FleetControlActionResultV1> {\n const result = await post<FleetControlActionResultV1>(FLEET_CONTROL_PATH, action);\n refreshFleetControlReads();\n return result;\n}\n\nexport async function fetchRunLog(runId: string, signal?: AbortSignal): Promise<FleetRunLogV1> {\n return apiGet<FleetRunLogV1>(`${FLEET_CONTROL_PATH}/runs/${encodeURIComponent(runId)}/log`, signal);\n}\n\nexport async function postLeaderDirective(text: string): Promise<unknown> {\n const result = await post<unknown>(LEADER_DIRECTIVES_PATH, { text });\n invalidate(SURFACE_KEYS.leader);\n return result;\n}\n"],"mappings":"0VA8BA,IAAa,EAAqB,2BACrB,EAA2B,iCAC3B,EAAyB,+BAEzB,EAAqB,OAAO,OAAO,CAC9C,MAAO,sBACP,MAAO,2BACT,CAAC,EAED,SAAS,EAAS,EAAkD,CAClE,OAAyB,OAAO,GAAU,YAAnC,GAA+C,CAAC,MAAM,QAAQ,CAAK,CAC5E,CAEA,SAAgB,EAAmB,EAA0C,CAC3E,OAAO,EAAS,CAAG,GAAK,EAAI,IAAS,GAAK,OAAO,EAAI,OAAa,UAAY,OAAO,EAAI,UAAgB,UACpG,EAAS,EAAI,QAAW,GAAK,EAAS,EAAI,KAAQ,GAAK,EAAS,EAAI,MAAS,EAC7E,EACD,IACN,CAEA,SAAgB,EAAiB,EAA0C,CACzE,OAAO,EAAS,CAAG,GAAK,EAAI,IAAS,GAAK,MAAM,QAAQ,EAAI,KAAQ,GAAK,MAAM,QAAQ,EAAI,KAAQ,GAAK,EAAS,EAAI,OAAU,EAC1H,EACD,IACN,CAEA,IAAa,EAAoB,EAAc,EAAmB,MAAO,EAAoB,qBAAsB,CAAkB,EACxH,EAAkB,EAAc,EAAmB,MAAO,EAA0B,kBAAmB,CAAgB,EAEpI,eAAe,EAAQ,EAAc,EAA2B,CAC9D,IAAM,EAAQ,EAAiB,EAC/B,GAAI,CAAC,EAAO,MAAM,IAAI,EACtB,IAAM,EAAS,MAAM,EAAW,EAAM,EAAM,CAAK,EAEjD,OADA,EAAkB,EACX,CACT,CAGA,SAAgB,GAAiC,CAC/C,IAAK,IAAM,IAAS,CAAC,EAAmB,EAAiB,EAAgB,EAAgB,EAAmB,EAAY,EAAkB,CAAkB,EAGtJ,EAAiB,EAAM,GAAG,CAAC,CAAC,SAAW,QACzC,EAA2B,EAAM,QAAW,EAAM,MAAM,EAAG,EAAI,EAGnE,EAAqB,CACvB,CAGA,eAAsB,EAAiB,EAAiE,CACtG,IAAM,EAAS,MAAM,EAAiC,EAAoB,CAAM,EAEhF,OADA,EAAyB,EAClB,CACT,CAEA,eAAsB,EAAY,EAAe,EAA8C,CAC7F,OAAO,EAAsB,GAAG,EAAmB,QAAQ,mBAAmB,CAAK,EAAE,MAAO,CAAM,CACpG,CAEA,eAAsB,EAAoB,EAAgC,CACxE,IAAM,EAAS,MAAM,EAAc,EAAwB,CAAE,MAAK,CAAC,EAEnE,OADA,EAAW,EAAa,MAAM,EACvB,CACT"}
@@ -1,3 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/WebsitePublicationControl-DJ1C8yy9.js","assets/global-1SED_aTT.css","assets/Dialog-tQ8kFulD.css","assets/MutationTokenDialog-CrfJ0PdD.css","assets/Button-DrnKsvnQ.css","assets/actions-BbbnyQzG.css"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,s as n,t as r,u as i}from"./index-K3yNXq5W.js";import{C as a,M as o,a as s,l as c}from"./global-DNJfppDB.js";import{o as l,v as u}from"./colors-DvK0wMHH.js";import{F as ee,I as d,d as f,m as p}from"./VerseConsoleApp-BpHiH8HH.js";import{t as m}from"./Segmented-GENrTVUG.js";import{a as h}from"./budget-queries-Cqx4cLpD.js";import{o as g}from"./budget-model-B6c1gwo1.js";import{t as _}from"./Button-BwccZFT3.js";import{C as v,_ as y,i as b,p as te}from"./icons-CAPwjND9.js";import{a as x}from"./command-catalog-4jpWDaev.js";import{t as S}from"./Sheet-CED3IxZo.js";import{n as C}from"./control-queries-Y4Jqwgdu.js";import{t as w}from"./BudgetControl-CdmgsIXe.js";import{a as T,c as E,i as D,n as O,r as k,s as ne,t as A}from"./authority-model-DAbJnNLz.js";import{t as j}from"./types-DHhcUpsg.js";import{d as M,i as re,r as N,t as P}from"./surface-data-Ds6XBRdM.js";import{i as F,n as I}from"./Surface-CEoCBSW9.js";import{r as L,t as R}from"./actions-egculESS.js";import{a as z,o as B}from"./why-seat-model-Dc9SuKGH.js";var V=e(n(),1),H=t();async function ie(e,t,n){let r=a();if(!r)throw new C;let i=await s(P,{kind:e,scope:t,...n===void 0?{}:{eliteDirect:n}},r);return o(),i}var U={"claude-cli":`Claude Code (claude-cli)`,codex:`Codex`,"grok-cli":`Grok (grok-cli)`,devin:`Devin`,"devin-cli":`Devin CLI`,local:`Local models`};function W({label:e,value:t,onChange:n}){let r=(0,V.useId)(),i=t===String(2**53-1);return(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:L.scopeField,htmlFor:r,children:[(0,H.jsx)(`span`,{children:e}),(0,H.jsx)(`input`,{id:r,type:`number`,min:+(e===`Files per change`||e===`Lines per change`),max:2**53-1,step:1,inputMode:`numeric`,disabled:i,value:i?``:t,onChange:e=>n(e.target.value)})]}),(0,H.jsxs)(`label`,{className:L.scopeCheck,children:[(0,H.jsx)(`input`,{type:`checkbox`,checked:i,"aria-label":`No volume cap: ${e}`,onChange:e=>n(e.target.checked?String(2**53-1):`1`)}),(0,H.jsx)(`span`,{children:`No volume cap`})]})]})}function ae({id:e,value:t,roles:n,onChange:r}){let i=(0,V.useId)();return(0,H.jsxs)(`fieldset`,{className:L.scopeFieldset,children:[(0,H.jsx)(`legend`,{children:e}),(0,H.jsxs)(`label`,{className:L.scopeCheck,children:[(0,H.jsx)(`input`,{type:`checkbox`,checked:t.enabled,onChange:e=>r(`enabled`,{enabled:e.target.checked})}),(0,H.jsxs)(`span`,{children:[`Permit autonomy on `,e]})]}),n.map(n=>(0,H.jsxs)(`label`,{className:L.scopeCheck,children:[(0,H.jsx)(`input`,{type:`checkbox`,checked:t.roles.includes(n),onChange:e=>r(`roles`,{roles:G(t.roles,n,e.target.checked)})}),(0,H.jsxs)(`span`,{children:[e,`: `,n]})]},n)),(0,H.jsxs)(`label`,{className:L.scopeField,htmlFor:`${i}-reserve`,children:[(0,H.jsxs)(`span`,{children:[e,`: reserve for you (%)`]}),(0,H.jsx)(`input`,{id:`${i}-reserve`,type:`number`,min:0,max:100,step:1,inputMode:`numeric`,value:t.reserve,onChange:e=>r(`reserveFloorPercent`,{reserve:e.target.value})})]}),(0,H.jsxs)(`label`,{className:L.scopeCheck,children:[(0,H.jsx)(`input`,{type:`checkbox`,checked:!t.ceiling,onChange:e=>r(`maxSessionWindowPercent`,{ceiling:!e.target.checked})}),(0,H.jsxs)(`span`,{children:[e,`: No session ceiling`]})]}),(0,H.jsxs)(`label`,{className:L.scopeField,htmlFor:`${i}-session`,children:[(0,H.jsxs)(`span`,{children:[e,`: session usage ceiling (%)`]}),(0,H.jsx)(`input`,{id:`${i}-session`,type:`number`,min:1,max:100,step:1,inputMode:`numeric`,disabled:!t.ceiling,value:t.ceiling?t.session:``,onChange:e=>r(`maxSessionWindowPercent`,{session:e.target.value})})]})]})}var oe={reserve:`Reserve`,balanced:`Balanced`,"all-in":`All-in`};function G(e,t,n){return n?e.includes(t)?[...e]:[...e,t]:e.filter(e=>e!==t)}function se(e){let t=Math.round((Date.parse(e.payload.expiresAt)-Date.parse(e.payload.issuedAt))/864e5);return Number.isFinite(t)&&t>0?t:30}function ce({draft:e,busy:t,onPreview:n,onReset:r,edited:i,onAccountSettings:a,onResources:o,onDirty:s}){let c=e.editable,l=e.payload,[u,ee]=(0,V.useState)(()=>l.repos.map(e=>e.nameWithOwner)),[d,f]=(0,V.useState)(()=>[...l.engines]),[p,m]=(0,V.useState)(()=>[...l.leader.classes]),[h,g]=(0,V.useState)(()=>({stageId:l.rollout.stages[0].id,classes:[...l.rollout.stages[0].leaderClasses]})),[v,y]=(0,V.useState)(!1),[b,te]=(0,V.useState)(l.spend.maxMode),[x,S]=(0,V.useState)(String(l.spend.meteredUsdPerDay)),[C,w]=(0,V.useState)(String(se(e))),[T,E]=(0,V.useState)(String(l.merge.maxFiles)),[D,O]=(0,V.useState)(String(l.merge.maxLines)),[k,ne]=(0,V.useState)(()=>Object.fromEntries(l.repos.map(e=>[e.nameWithOwner,String(e.maxMergesPerDay)]))),[A,j]=(0,V.useState)(!1),[M,re]=(0,V.useState)(()=>Object.fromEntries(Object.entries(l.spend.seats).map(([e,t])=>[e,{enabled:t.enabled,roles:[...t.roles],reserve:String(t.reserveFloorPercent),session:String(t.maxSessionWindowPercent??70),ceiling:t.maxSessionWindowPercent!==void 0}]))),[N,P]=(0,V.useState)({});function I(e,t,n){re(t=>({...t,[e]:{...t[e],...n}})),P(n=>({...n,[e]:G(n[e]??[],t,!0)}))}let R={metered:(0,V.useId)(),days:(0,V.useId)(),mode:(0,V.useId)()};if(!c)return(0,H.jsx)(`p`,{className:L.scopeMeta,children:`This server cannot edit a draft yet — update Phantom to choose repos and engines here.`});let z=Number(x),B=Number(C),ie=!A||Number.isSafeInteger(Number(T))&&Number(T)>0&&Number.isSafeInteger(Number(D))&&Number(D)>0&&u.every(e=>k[e]!==void 0&&k[e]!==``&&Number.isSafeInteger(Number(k[e]))&&Number(k[e])>=0),ce=Object.keys(N).every(e=>{let t=M[e];return t.roles.length>0&&t.reserve!==``&&Number.isInteger(Number(t.reserve))&&Number(t.reserve)>=0&&Number(t.reserve)<=100&&(!t.ceiling||t.session!==``&&Number.isInteger(Number(t.session))&&Number(t.session)>=1&&Number(t.session)<=100)}),K=c.startingStageLeaderClasses,q=l.rollout.stages[0],J=!v||h.stageId===q.id&&K?.stageId===h.stageId,Y=(v?h.classes:q.leaderClasses).filter(e=>p.includes(e)),X=J&&ce&&ie&&u.length>0&&d.length>0&&Number.isInteger(z)&&z>=0&&Number.isInteger(B)&&B>=1&&B<=c.maxDays;function Z(){n({repos:u,engines:d,leaderClasses:p,...K&&v?{startingStageLeaderClasses:{stageId:h.stageId,classes:Y}}:{},maxMode:b,meteredUsdPerDay:z,days:B,...c?.seatPolicies&&Object.keys(N).length?{seatPolicies:Object.fromEntries(Object.entries(N).map(([e,t])=>{let n=M[e],r={};return t.includes(`enabled`)&&(r.enabled=n.enabled),t.includes(`roles`)&&(r.roles=n.roles),t.includes(`reserveFloorPercent`)&&(r.reserveFloorPercent=Number(n.reserve)),t.includes(`maxSessionWindowPercent`)&&(r.maxSessionWindowPercent=n.ceiling?Number(n.session):null),[e,r]}))}:{},...c?.volumeLimits&&A?{maxFiles:Number(T),maxLines:Number(D),repoMaxMergesPerDay:Object.fromEntries(u.map(e=>[e,Number(k[e])]))}:{}})}return(0,H.jsxs)(`div`,{className:L.scopeEditor,"aria-label":`Edit the grant scope`,onChange:s,children:[(0,H.jsxs)(`fieldset`,{className:L.scopeFieldset,children:[(0,H.jsx)(`legend`,{children:(0,H.jsxs)(F,{children:[`Repositories (`,u.length,`/`,c.repos.length,`)`]})}),c.repos.map(e=>(0,H.jsxs)(`label`,{className:L.scopeCheck,children:[(0,H.jsx)(`input`,{type:`checkbox`,checked:u.includes(e),onChange:t=>ee(G(u,e,t.target.checked))}),(0,H.jsx)(`span`,{className:L.mono,children:e})]},e)),(0,H.jsx)(`p`,{className:L.scopeMeta,children:`Only enrolled repos can be granted. Enroll another checkout to add it here.`})]}),(0,H.jsxs)(`fieldset`,{className:L.scopeFieldset,children:[(0,H.jsx)(`legend`,{children:(0,H.jsx)(F,{children:`Engines`})}),c.engines.map(e=>(0,H.jsxs)(`label`,{className:L.scopeCheck,children:[(0,H.jsx)(`input`,{type:`checkbox`,checked:d.includes(e),onChange:t=>f(G(d,e,t.target.checked))}),(0,H.jsx)(`span`,{children:U[e]??e})]},e))]}),(0,H.jsxs)(`fieldset`,{className:L.scopeFieldset,children:[(0,H.jsx)(`legend`,{children:(0,H.jsx)(F,{children:`Leader permission ceiling`})}),c.leaderClasses.map(e=>(0,H.jsxs)(`label`,{className:L.scopeCheck,children:[(0,H.jsx)(`input`,{type:`checkbox`,checked:p.includes(e),onChange:t=>{m(G(p,e,t.target.checked)),!t.target.checked&&v&&g(t=>({...t,classes:t.classes.filter(t=>t!==e)}))}}),(0,H.jsxs)(`span`,{children:[`Class `,e,e===`A`?` — reversible housekeeping`:` — larger changes, with a veto window`]})]},e)),(0,H.jsx)(`p`,{className:L.scopeMeta,children:`The starting stage chooses which of these permissions the Leader can use immediately.`})]}),K?(0,H.jsxs)(`fieldset`,{className:L.scopeFieldset,children:[(0,H.jsx)(`legend`,{children:(0,H.jsx)(F,{children:`Leader permissions when this grant starts`})}),(0,H.jsxs)(`p`,{className:L.scopeMeta,children:[`Starting stage: `,q.id,`. Choose immediate permissions explicitly; other stages keep their existing permissions. Preview shows the change before Touch ID.`]}),K.classes.map(e=>(0,H.jsxs)(`label`,{className:L.scopeCheck,children:[(0,H.jsx)(`input`,{type:`checkbox`,"aria-label":`Starting stage class ${e}`,checked:Y.includes(e),disabled:!J||!p.includes(e),onChange:t=>{g({stageId:q.id,classes:G(Y,e,t.target.checked)}),y(!0)}}),(0,H.jsxs)(`span`,{children:[`Class `,e,e===`A`?` — reversible housekeeping`:` — larger changes, with a veto window`]})]},e)),Y.length?null:(0,H.jsx)(`p`,{className:L.scopeMeta,children:`The Leader stays advisory at this stage.`}),J?null:(0,H.jsx)(`p`,{role:`alert`,className:L.scopeMeta,children:`The starting stage changed. Reset to the current draft before choosing its Leader permissions.`})]}):null,c.volumeLimits?(0,H.jsxs)(`fieldset`,{className:L.scopeFieldset,children:[(0,H.jsx)(`legend`,{children:(0,H.jsx)(F,{children:`Signed volume limits`})}),(0,H.jsxs)(`label`,{className:L.scopeCheck,children:[(0,H.jsx)(`input`,{type:`checkbox`,checked:A,onChange:e=>j(e.target.checked)}),(0,H.jsx)(`span`,{children:`Replace volume limits for all models and enforcement modes`})]}),(0,H.jsx)(`p`,{className:L.scopeMeta,children:`An explicit choice applies these size limits to every rollout stage and these daily limits to merging stages. Local work keeps its risk and verification rules. Unchanged or renewed grants keep their existing volume policy. Preview shows the change before Touch ID.`}),(0,H.jsx)(W,{label:`Files per change`,value:T,onChange:e=>{E(e),j(!0)}}),(0,H.jsx)(W,{label:`Lines per change`,value:D,onChange:e=>{O(e),j(!0)}}),u.map(e=>(0,H.jsx)(W,{label:`${e} merges/day`,value:k[e]??``,onChange:t=>{ne(n=>({...n,[e]:t})),j(!0)}},e))]}):null,(0,H.jsxs)(`fieldset`,{className:L.scopeFieldset,children:[(0,H.jsx)(`legend`,{children:(0,H.jsx)(F,{children:`Budget caps`})}),(0,H.jsxs)(`label`,{className:L.scopeField,htmlFor:R.mode,children:[(0,H.jsx)(`span`,{children:`Budget mode up to`}),(0,H.jsx)(`select`,{id:R.mode,value:b,onChange:e=>te(e.target.value),children:[`reserve`,`balanced`,`all-in`].map(e=>(0,H.jsx)(`option`,{value:e,children:oe[e]},e))})]}),(0,H.jsxs)(`label`,{className:L.scopeField,htmlFor:R.metered,children:[(0,H.jsx)(`span`,{children:`Metered APIs, $ per day`}),(0,H.jsx)(`input`,{id:R.metered,type:`number`,min:0,step:1,inputMode:`numeric`,value:x,onChange:e=>S(e.target.value)})]}),(0,H.jsxs)(`label`,{className:L.scopeField,htmlFor:R.days,children:[(0,H.jsxs)(`span`,{children:[`Valid for (days, at most `,c.maxDays,`)`]}),(0,H.jsx)(`input`,{id:R.days,type:`number`,min:1,max:c.maxDays,step:1,inputMode:`numeric`,value:C,onChange:e=>w(e.target.value)})]})]}),c.seatPolicies?(0,H.jsxs)(`fieldset`,{className:L.scopeFieldset,children:[(0,H.jsx)(`legend`,{children:(0,H.jsx)(F,{children:`Account permissions and reserves`})}),(0,H.jsx)(`p`,{className:L.scopeMeta,children:`All-in does not remove account reserves or session ceilings. Set 0% reserve or No session ceiling explicitly. These are standing permissions; current budget settings, known usage and provider readiness may tighten them further. A producer role does not qualify an unsupported provider.`}),(0,H.jsx)(`p`,{className:L.scopeMeta,children:`Current Budget settings are in Apps & Accounts; Resources shows usage and readiness. Opening either leaves this unsigned draft.`}),(0,H.jsxs)(`span`,{className:L.sheetButtons,children:[a?(0,H.jsx)(_,{variant:`ghost`,size:`sm`,onClick:a,children:`Current account settings`}):null,o?(0,H.jsx)(_,{variant:`ghost`,size:`sm`,onClick:o,children:`Resources`}):null]}),Object.entries(c.seatPolicies).filter(([e])=>M[e]!==void 0).map(([e,t])=>(0,H.jsx)(ae,{id:e,value:M[e],roles:t.roles,onChange:(t,n)=>I(e,t,n)},e))]}):null,(0,H.jsxs)(`span`,{className:L.sheetButtons,children:[i?(0,H.jsx)(_,{variant:`ghost`,size:`sm`,onClick:r,children:`Back to the default draft`}):null,(0,H.jsx)(_,{variant:`subtle`,size:`sm`,onClick:Z,disabled:!X,busy:t,children:`Preview the changes`})]}),X?null:(0,H.jsxs)(`p`,{className:L.scopeMeta,children:[`Keep at least one repo and one engine, whole dollars, at least one role per edited account, whole reserve percentages (0–100) and session ceilings (1–100), positive whole size limits, nonnegative whole merge limits, and 1–`,c.maxDays,` days.`]})]})}var K={wider:`wider`,narrower:`narrower`,changed:`changed`};function q({lines:e}){return e?e.length===0?(0,H.jsxs)(`section`,{className:L.scopeBlock,"aria-label":`Changes`,children:[(0,H.jsx)(F,{children:`Changes vs the grant in force`}),(0,H.jsx)(`p`,{className:L.scopeMeta,children:`Same scope as the grant in force.`})]}):(0,H.jsxs)(`section`,{className:L.scopeBlock,"aria-label":`Changes`,children:[(0,H.jsx)(F,{children:`Changes vs the grant in force`}),(0,H.jsxs)(`table`,{className:L.scopeTable,children:[(0,H.jsx)(`thead`,{children:(0,H.jsxs)(`tr`,{children:[(0,H.jsx)(`th`,{scope:`col`,children:`What`}),(0,H.jsx)(`th`,{scope:`col`,children:`Now`}),(0,H.jsx)(`th`,{scope:`col`,children:`After signing`}),(0,H.jsx)(`th`,{scope:`col`,children:`Authority`})]})}),(0,H.jsx)(`tbody`,{children:e.map((e,t)=>(0,H.jsxs)(`tr`,{"data-direction":e.direction,children:[(0,H.jsx)(`td`,{children:e.label}),(0,H.jsx)(`td`,{className:L.mono,children:e.before}),(0,H.jsx)(`td`,{className:L.mono,children:e.after}),(0,H.jsx)(`td`,{className:L.diffDirection,"data-direction":e.direction,children:K[e.direction]})]},`${e.field}-${t}`))})]})]}):null}var J=864e5;function Y(e){let t=Date.parse(e);return Number.isFinite(t)?new Date(t).toLocaleString(`en-US`,{weekday:`short`,month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`}):`—`}function X(e){let t=Date.parse(e.issuedAt),n=Date.parse(e.expiresAt);return Number.isFinite(t)&&Number.isFinite(n)?Math.round((n-t)/J):null}var Z=`elite-direct`,le=`Elite models (Opus 5.5/5, Fable 5.1/5, Sonnet 5, GPT-6 Astra/Sol/Luna, Grok 4.7/4.6, SWE-2, Qwen 3.8 27B) land directly on green tests — no judge. Other models still need an independent judge; changes to authority code still come to you.`;function ue(e,t){let n=e.criteria,r=e.leaderClasses.filter(e=>t.includes(e)),i=r.length?`Leader classes ${r.join(` + `)}`:`Leader advisory only`;if(e.id===Z)return`${e.repos.filter(e=>e.stage===`merge`).length} of ${e.repos.length} repos merge · ${e.maxRisk} risk · ≤ ${j(e.maxFiles)} files / ${j(e.maxLines)} lines · ${i} — one rung, no ramp; elite models land on green tests, no judge`;let a=[`${e.repos.length} repo${e.repos.length===1?``:`s`}`,`${e.maxRisk} risk`,`≤ ${j(e.maxFiles)} files / ${j(e.maxLines)} lines`,`≤ ${j(e.maxMergesPerRepoPerDay)} merges/repo/day`,i],o=[`${n.minMerges} merges`,`${n.minHours} h`,n.minPostMergeGreenPct?`≥ ${n.minPostMergeGreenPct}% green`:null,`≤ ${n.maxRevertRatePct}% reverts`].filter(Boolean);return`${a.join(` · `)} — advances after ${o.join(`, `)}`}function de({draft:e}){let t=e.payload,n=X(t),r=t.rollout.stages[0]?.leaderClasses.filter(e=>t.leader.classes.includes(e))??[];return(0,H.jsxs)(`div`,{className:L.scope,children:[(0,H.jsxs)(`section`,{className:L.scopeBlock,"aria-label":`Expiry`,children:[(0,H.jsx)(F,{children:`Expiry`}),(0,H.jsxs)(`p`,{className:L.scopeLead,children:[n===null?`—`:`${n} days`,`, until `,Y(t.expiresAt)]}),(0,H.jsxs)(`p`,{className:L.scopeMeta,children:[`Signed by key `,(0,H.jsx)(`span`,{className:L.mono,children:t.keyId}),` · sequence `,t.grantSeq,` · bound to this Mac`]})]}),(0,H.jsxs)(`section`,{className:L.scopeBlock,"aria-label":`Repositories`,children:[(0,H.jsxs)(F,{children:[`Repositories (`,t.repos.length,`)`]}),(0,H.jsxs)(`table`,{className:L.scopeTable,children:[(0,H.jsx)(`thead`,{children:(0,H.jsxs)(`tr`,{children:[(0,H.jsx)(`th`,{scope:`col`,children:`Repo`}),(0,H.jsx)(`th`,{scope:`col`,children:`Up to`}),(0,H.jsx)(`th`,{scope:`col`,children:`Checks`}),(0,H.jsx)(`th`,{scope:`col`,children:`Risk`}),(0,H.jsx)(`th`,{scope:`col`,className:L.num,children:`Merges/day`})]})}),(0,H.jsx)(`tbody`,{children:t.repos.map(e=>(0,H.jsxs)(`tr`,{children:[(0,H.jsx)(`td`,{className:L.mono,children:e.nameWithOwner}),(0,H.jsx)(`td`,{children:e.stage===`merge`?`Merge`:`Propose`}),(0,H.jsx)(`td`,{children:e.enforcement===`server`?`GitHub`:`Local only`}),(0,H.jsx)(`td`,{children:e.maxRisk}),(0,H.jsx)(`td`,{className:L.num,children:j(e.maxMergesPerDay)})]},e.nameWithOwner))})]}),(0,H.jsxs)(`p`,{className:L.scopeMeta,children:[`Every merge ≤ `,j(t.merge.maxFiles),` files / `,j(t.merge.maxLines),` lines · `,i,` itself: `,t.merge.selfRepo===`propose-only`?`propose only`:`merge outside authority code`]})]}),(0,H.jsx)(`p`,{className:L.scopeMeta,children:t.merge.volumePolicy===`operator-signed`?`Signed volume limits apply to all models and enforcement modes. Risk, CI, spend, Stop and revocation remain binding.`:`Legacy local limits remain: 4 files / 150 lines, and 4 merges/day for locally enforced repos.`}),(0,H.jsxs)(`section`,{className:L.scopeBlock,"aria-label":`Spend`,children:[(0,H.jsx)(F,{children:`Spend`}),(0,H.jsxs)(`p`,{className:L.scopeLead,children:[`Up to `,t.spend.maxMode===`all-in`?`All-in`:t.spend.maxMode===`balanced`?`Balanced`:`Reserve`,` · metered APIs $`,t.spend.meteredUsdPerDay,`/day`]}),(0,H.jsx)(`ul`,{className:L.scopeList,children:Object.entries(t.spend.seats).map(([e,t])=>(0,H.jsxs)(`li`,{children:[(0,H.jsx)(`span`,{className:L.mono,children:e}),t.enabled?`: keeps ${t.reserveFloorPercent}% for you`:`: not used by autonomy`,t.enabled&&t.maxSessionWindowPercent!==void 0?`, never above ${t.maxSessionWindowPercent}% of its 5-hour window`:``,` · permitted roles: ${t.roles.join(`, `)}`,t.enabled&&t.maxSessionWindowPercent===void 0?`, no session ceiling`:``]},e))}),(0,H.jsx)(`p`,{className:L.scopeMeta,children:`Signed account permissions are ceilings. Current Budget settings, usage and Resources readiness still govern dispatch; a listed role does not establish provider support.`})]}),(0,H.jsxs)(`section`,{className:L.scopeBlock,"aria-label":`Engines and Leader`,children:[(0,H.jsx)(F,{children:`Engines and Leader`}),(0,H.jsx)(`p`,{className:L.scopeLead,children:t.engines.join(`, `)||`none`}),(0,H.jsxs)(`p`,{className:L.scopeMeta,children:[`Signed Leader ceiling: `,t.leader.classes.length?t.leader.classes.join(` + `):`advisory only`,` · class-B veto window `,t.leader.vetoMinutes,` min · goal conductor `,t.conductorGoals?`on`:`off`]}),(0,H.jsx)(`p`,{className:L.scopeMeta,children:r.length?`Starting stage permits Leader classes ${r.join(` + `)} when autonomy is active.`:`Leader remains advisory in the starting stage.`})]}),(0,H.jsxs)(`section`,{className:L.scopeBlock,"aria-label":`Rollout ladder`,children:[t.rollout.stages.some(e=>e.id===Z)?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(F,{children:`Elite direct`}),(0,H.jsx)(`p`,{className:L.scopeLead,children:le})]}):(0,H.jsxs)(F,{children:[`Rollout ladder (`,t.rollout.stages.length,` stages, advances by itself)`]}),(0,H.jsx)(`ol`,{className:L.ladder,children:t.rollout.stages.map(e=>(0,H.jsxs)(`li`,{children:[(0,H.jsx)(`span`,{className:L.ladderId,children:e.id}),(0,H.jsx)(`span`,{children:ue(e,t.leader.classes)})]},e.id))}),(0,H.jsx)(`p`,{className:L.scopeMeta,children:t.rollout.stages.length===1&&t.rollout.stages[0]?.id===Z?`A sandbox violation, reserve breach, or reverts above 10% restart this rung’s evidence window. Elite direct remains the signed merge ceiling until you stop, revoke, or replace the grant.`:`Any sandbox violation or reserve breach drops it back one stage. It can never climb past the last stage.`})]}),(0,H.jsxs)(`p`,{className:L.scopeMeta,children:[`Draft digest `,(0,H.jsxs)(`span`,{className:L.mono,children:[e.digest.slice(0,16),`…`]})]})]})}function fe({open:e,intent:t,then:n,busy:r,actionStatus:i,why:a,onApprove:o,onClose:s,act:c,startEditing:l}){let u=(0,V.useId)();return e?(0,H.jsx)(pe,{titleId:u,intent:t,then:n,busy:r,actionStatus:i,why:a,onApprove:o,onClose:s,...c?{act:c}:{},startEditing:l===!0}):null}function pe({titleId:e,intent:t,then:n,busy:r,actionStatus:i,why:a,onApprove:o,onClose:s,act:l,startEditing:u}){let[f,p]=(0,V.useState)(!1),m=(0,V.useId)(),h=c(f?re:N,{freshMs:0}),g=h.data?.value??null,[v,y]=(0,V.useState)(null),[b,x]=(0,V.useState)(u===!0),[C,w]=(0,V.useState)(0),T=(0,V.useRef)(0),E=(0,V.useRef)(0),[D,O]=(0,V.useState)(0),[k,ne]=(0,V.useState)(null),[j,M]=(0,V.useState)(null),P=(0,V.useRef)(null);P.current=g?.digest??null;let[F,z]=(0,V.useState)(null),[B,U]=(0,V.useState)(!1),W=v&&j===g?.digest&&v.eliteDirect===g?.eliteDirect?v:g,ae=h.data?.reason??null,oe=l!==void 0&&g?.editable!==void 0,G=g?.kind===`reapprove`&&g.eliteDirect===!0,se=C>0&&(k?.revision!==C||k.sourceDigest!==g?.digest),K=j!==null&&j!==g?.digest,J=W!==null&&W.eliteDirect===!0===(f||G);function Y(){T.current++,w(T.current),z(null)}function X(){T.current++,E.current++,w(0),ne(null),y(null),M(null),z(null),U(!1),O(e=>e+1)}function Z(e){if(!l||!g)return;let t=g.kind??`auto`,n=++E.current,r=T.current,i=g.digest;z(null),U(!0),l(async()=>{try{return await ie(t,e,g.eliteDirect===!0)}catch(e){return n===E.current&&i===P.current&&z(e instanceof Error?e.message:String(e)),null}finally{n===E.current&&U(!1)}},`Preview the edited grant`,{onDone:e=>{n===E.current&&r===T.current&&i===P.current&&e&&typeof e==`object`&&typeof e.digest==`string`&&e.eliteDirect===g.eliteDirect&&(y(e),M(i),ne({revision:r,sourceDigest:i}))}})}return(0,H.jsxs)(S,{open:!0,onClose:s,titleId:e,width:600,title:t===`re-approve`?`Re-approve the standing grant`:`Approve a standing grant`,description:a,footer:(0,H.jsxs)(`div`,{className:L.sheetFooter,children:[(0,H.jsx)(`p`,{className:L.sheetFootnote,role:r||B?`status`:void 0,children:B?`Preparing the grant preview…`:r?`Waiting for the result. Complete any Mac authentication prompt; signing has a three-minute timeout. Closing this dialog does not cancel approval.`:(0,H.jsxs)(H.Fragment,{children:[`Touch ID appears on this Mac. Lowering authority — Off, Stop, Revoke — never needs it.`,n?` After approval the switch moves to ${A[n]}.`:``]})}),(0,H.jsxs)(`span`,{className:L.sheetButtons,children:[(0,H.jsx)(_,{variant:`ghost`,onClick:s,children:r?`Close dialog`:`Cancel`}),(0,H.jsx)(_,{variant:`primary`,icon:(0,H.jsx)(te,{}),disabled:!W||!J||se||B,busy:r,onClick:()=>W&&o(W),children:`Approve with Touch ID`})]})]}),children:[i?(0,H.jsx)(R,{actions:i}):null,(0,H.jsxs)(`label`,{className:L.eliteToggle,children:[(0,H.jsx)(`input`,{type:`checkbox`,checked:f||G,disabled:B||r||G,onChange:e=>{p(e.target.checked),X()},"aria-describedby":m}),`Elite direct`]}),(0,H.jsx)(`p`,{id:m,className:L.scopeMeta,children:le}),h.status===`loading`&&!h.data?(0,H.jsx)(`p`,{className:L.muted,"aria-busy":`true`,children:`Preparing the grant draft…`}):W?(0,H.jsxs)(H.Fragment,{children:[oe?(0,H.jsxs)(`div`,{className:L.scopeEditToggle,children:[(0,H.jsx)(_,{variant:`ghost`,size:`sm`,"aria-expanded":b,onClick:()=>x(e=>!e),children:b?`Hide the scope editor`:`Edit scope`}),v&&!K?(0,H.jsx)(`span`,{className:L.scopeMeta,children:`Showing your edited draft.`}):null]}):null,oe&&g?(0,H.jsx)(`div`,{hidden:!b,children:(0,H.jsx)(ce,{draft:g,busy:B,edited:j===g.digest||se,onDirty:Y,onAccountSettings:()=>{s(),d(`apps`)},onResources:()=>{s(),ee(!0)},onPreview:Z,onReset:X},D)}):null,se?(0,H.jsx)(I,{tone:`muted`,children:K?`The grant source changed. Your choices are kept; preview them again before approving. The summary below shows the updated source draft.`:`Preview your choices before approving. Only the reviewed draft below can be signed.`}):null,F?(0,H.jsx)(I,{tone:`danger`,children:F}):null,(0,H.jsx)(q,{lines:W.diff}),(0,H.jsx)(de,{draft:W})]}):(0,H.jsx)(I,{tone:`unknown`,children:ae??`Grant draft unreadable — nothing to approve.`})]})}var me=(0,V.lazy)(()=>r(()=>import(`./WebsitePublicationControl-DJ1C8yy9.js`),__vite__mapDeps([0,1,2,3,4,5]))),Q={"all-in":`All-in`,balanced:`Balanced`,reserve:`Reserve`};function he(){let e=x(`fleet.stop`)?.guard?.confirm;return{title:e?.title??`Stop the fleet?`,body:e?.body??`Autonomous work halts within one tick and stays stopped until you resume it. Chats keep running.`,confirmLabel:e?.confirmLabel??`Stop fleet`,destructive:!0}}var ge={title:`Resume the fleet?`,body:`Autonomy picks up at the switch position on its next tick. Stopping again is one click.`,confirmLabel:`Resume fleet`,destructive:!1};function _e({tone:e}){return(0,H.jsx)(`span`,{className:L.dot,"data-tone":e,"aria-hidden":`true`})}function ve(e){let[t,n]=(0,V.useState)(null);function r(r){if(!t)return;let{then:i}=t,a=k(r,t.intent);e.act(()=>M({action:a,draftDigest:r.digest}),a===`re-approve`?`Re-approve the standing grant`:`Sign a new standing grant`,{onDone:t=>{n(null),i&&t&&O[i]<=O[t.maxSwitchWithoutGrant]&&i!==t.switch&&e.act(()=>M({action:`switch`,to:i}),`Switch autonomy to ${A[i]}`)}})}return{open:(e,t,r=null,i={})=>n({intent:e,then:r,why:t,edit:i.edit===!0}),sheet:(0,H.jsx)(fe,{open:t!==null,intent:t?.intent??`grant`,then:t?.then??null,why:t?.why??``,busy:e.busy,actionStatus:e,onApprove:r,onClose:()=>n(null),act:e.act,startEditing:t?.edit===!0})}}function ye({read:e,loading:t,budgetMode:n,actions:r,compact:i,now:a,grantFlow:o}){let s=e?.value??null,c=ve(r),l=o??c,[u,ee]=(0,V.useState)(null),[d,f]=(0,V.useState)(!1),p=!s,h=T(s,a);function g(e){if(!s)return;let t=D(s,e);if(t!==`same`){if(t===`raise-needs-grant`){let t=s.grant.state===`paused`;l.open(t?`re-approve`:`grant`,t?`${s.grant.reason??`The grant is paused.`} ${A[e]} needs it re-approved.`:`${A[e]} is beyond what the installed grant allows, so it needs a new grant.`,e);return}r.act(()=>M({action:`switch`,to:e}),`Switch autonomy to ${A[e]}`)}}xe({read:e,status:s,budgetMode:n,actions:r,chip:h,onSwitch:g,openGrant:l.open});let b=E(s||{switch:`off`,maxSwitchWithoutGrant:`off`}),x=s?.kill??!1,S=p||r.busy||r.readOnly,C=(0,H.jsxs)(`div`,{className:L.switchWrap,title:p?e?.reason??`Reading autonomy state…`:void 0,children:[i?null:(0,H.jsx)(`span`,{className:L.barLabel,"aria-hidden":`true`,children:`Autonomy`}),(0,H.jsx)(m,{size:`sm`,"aria-label":`Autonomy`,value:s?.switch??`off`,onChange:g,options:b.map(e=>({value:e.value,label:(0,H.jsxs)(`span`,{className:L.switchOption,children:[i?e.short:e.label,e.needsGrant?(0,H.jsx)(te,{className:L.touchMark,width:12,height:12,"aria-hidden":`true`}):null]}),ariaLabel:e.ariaLabel,disabled:S}))})]}),w=()=>r.act(()=>M({action:`stop`}),`Stop the fleet`,{confirm:he(),onDone:e=>ee(ne(e))}),O=()=>r.act(()=>M({action:`clear-stop`}),`Resume the fleet`,{confirm:ge,onDone:()=>ee(null)}),k=x?i?(0,H.jsx)(_,{variant:`subtle`,size:`sm`,icon:(0,H.jsx)(y,{}),iconOnly:!0,"aria-label":`Resume the fleet`,disabled:S,onClick:O}):(0,H.jsx)(_,{variant:`subtle`,size:`sm`,icon:(0,H.jsx)(y,{}),disabled:S,onClick:O,children:`Resume`}):i?(0,H.jsx)(_,{variant:`danger`,size:`sm`,icon:(0,H.jsx)(v,{}),iconOnly:!0,"aria-label":`Stop the fleet`,disabled:S,onClick:w}):(0,H.jsx)(_,{variant:`danger`,size:`sm`,icon:(0,H.jsx)(v,{}),disabled:S,onClick:w,children:`Stop`});return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(`div`,{className:L.bar,role:`toolbar`,"aria-label":`Autonomy controls`,"data-loading":t||void 0,children:[C,i?null:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Se,{mode:n,onOpen:()=>f(!0)}),(0,H.jsx)(Ce,{chip:h,onOpen:e=>l.open(e,h.detail)})]}),!i&&s?.websitePublication&&s.policy?.websitePublication?(0,H.jsx)(V.Suspense,{fallback:null,children:(0,H.jsx)(me,{status:s.websitePublication,actions:r,disabled:S})}):null,(0,H.jsx)(`span`,{className:L.barSpacer}),k]}),x&&u?(0,H.jsx)(`p`,{className:L.muted,role:`status`,children:u}):null,i?(0,H.jsxs)(`div`,{className:L.barSecondary,children:[(0,H.jsx)(Se,{mode:n,onOpen:()=>f(!0)}),(0,H.jsx)(Ce,{chip:h,onOpen:e=>l.open(e,h.detail)})]}):null,o?null:c.sheet,(0,H.jsx)(we,{open:d,onClose:()=>f(!1),status:s})]})}function be(e){return e.readOnly?`Read-only session: this server was started without dispatch, so autonomy cannot be changed from here.`:e.status?e.busy?`Another autonomy action is still running. Try again when it finishes.`:null:e.reason??`The autonomy state has not been read yet, so nothing was changed.`}function xe({read:e,status:t,budgetMode:n,actions:r,chip:i,onSwitch:a,openGrant:o}){let s=e!==void 0,c=()=>be({status:t,reason:e?.reason??null,readOnly:r.readOnly,busy:r.busy}),l=e=>()=>{let n=c();if(n||!t){f(n??`The autonomy state is unknown, so nothing was changed.`,`neutral`);return}if(t.switch===e){f(`Autonomy is already ${A[e]}.`,`neutral`);return}a(e)};p(`autonomy.off`,l(`off`),s),p(`autonomy.propose`,l(`propose`),s),p(`autonomy.autonomous`,l(`autonomous`),s),p(`autonomy.grant`,()=>{let e=c();if(e){f(e,`neutral`);return}if(!i.action){f(i.detail,`neutral`);return}o(i.action,i.detail)},s),p(`autonomy.reapprove`,()=>{let e=c();if(e||!t){f(e??`The autonomy state is unknown, so nothing was changed.`,`neutral`);return}let n=t.grant.state;if(n!==`active`&&n!==`paused`&&n!==`expired`){f(`There is no grant to re-approve. Use "Approve grant…" to sign a new one.`,`neutral`);return}o(`re-approve`,n===`active`?`${i.detail} Re-approving signs a fresh 30 days and continues the rollout from its current stage.`:i.detail)},s);let u=e=>()=>{if(r.readOnly||r.busy){f(c()??`Budget cannot be changed right now.`,`neutral`);return}if(n===e){f(`Budget is already ${Q[e]}.`,`neutral`);return}let i=t?.grant.state===`active`?t.grant.maxMode:null;if(i&&g(e,i)){f(`Your grant allows up to ${Q[i]}, so ${Q[e]} is unavailable. A new grant can raise the ceiling.`,`neutral`);return}r.act(()=>h({mode:e}),`Switch the budget to ${Q[e]}`,{onDone:()=>f(`Budget set to ${Q[e]}.`,`success`)})};p(`budget.all-in`,u(`all-in`),s),p(`budget.balanced`,u(`balanced`),s),p(`budget.reserve`,u(`reserve`),s)}function Se({mode:e,onOpen:t}){return(0,H.jsxs)(`button`,{type:`button`,className:L.pill,"aria-haspopup":`dialog`,onClick:t,children:[(0,H.jsx)(`span`,{className:L.pillLabel,children:`Budget`}),(0,H.jsx)(`span`,{children:e?Q[e]:`—`}),(0,H.jsx)(b,{width:14,height:14,"aria-hidden":`true`})]})}function Ce({chip:e,onOpen:t}){let n=(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(_e,{tone:e.tone}),(0,H.jsx)(`span`,{className:L.pillLabel,children:`Grant`}),(0,H.jsx)(`span`,{children:e.label})]});if(!e.action)return(0,H.jsx)(`span`,{className:L.chip,"data-tone":e.tone,title:e.detail,"aria-label":`Grant: ${e.label}. ${e.detail}`,role:`status`,children:n});let r=e.action;return(0,H.jsx)(`button`,{type:`button`,className:L.chip,"data-tone":e.tone,title:e.detail,"aria-haspopup":`dialog`,onClick:()=>t(r),"aria-label":`Grant: ${e.label}. ${e.detail}`,children:n})}function we({open:e,onClose:t,status:n}){let r=n?.grant.state===`active`?n.grant.maxMode:null;return(0,H.jsx)(S,{open:e,onClose:t,titleId:`command-budget-sheet`,width:560,title:`Budget`,description:r?`Your grant allows up to ${Q[r]}. Autonomy never spends past it, whatever is selected here — moving toward Reserve is always instant.`:`No active grant: autonomy only proposes. The budget still decides which seats it would use.`,children:e?(0,H.jsx)(w,{maxMode:r}):null})}var Te={local:`local`,"grok-cli":`grok`,"claude-cli":`claude`,codex:`codex`,"devin-cli":`devin`},Ee={local:`Local`,"grok-cli":`Grok`,"claude-cli":`Claude`,codex:`Codex`,"devin-cli":`Devin CLI`};function De(e){return{name:Ee[e.lane],slots:e.slots===0?`off`:`${e.busy}/${e.slots}`}}function Oe(e){let t=e.capReason?.trim();return t?z(t):null}function ke(e){let t=new Map;for(let n of e){let e=Oe(n);if(!e)continue;let r=t.get(e)??[];r.push(n.lane),t.set(e,r)}return[...t.entries()].map(([t,n])=>({lanes:n,all:n.length===e.length&&e.length>1,reason:t}))}function Ae(e){return e.phase===`queued`||e.phase===`parked`?e.phase:e.phase===`reverting`?`reverting`:e.outcome??e.phase}var je={producing:`running`,verifying:`running`,judging:`running`,landing:`running`,watching:`info`,reverting:`danger`,merged:`success`,proposed:`info`,"owner-lane":`warning`,refused:`warning`,failed:`danger`,reverted:`danger`,cancelled:`neutral`,queued:`neutral`,parked:`neutral`};function Me(e){return je[e]??`unknown`}function $(e){let t=Date.parse(e.startedAt??e.phaseStartedAt??``);return Number.isFinite(t)?t:null}function Ne(e){if(!e.endedAt)return null;let t=Date.parse(e.endedAt);return Number.isFinite(t)?t:null}function Pe(e){return[e.repo.includes(`/`)?e.repo.split(`/`)[1]:e.repo,e.title,e.model,e.prNumber?`PR #${e.prNumber}`:null].filter(Boolean).join(` · `)}var Fe=[`local`,`grok-cli`,`claude-cli`,`codex`,`devin-cli`,`none`];function Ie(e,t,n,r={}){let i=r.includeParked??!0,a=new Map;for(let r of e){if(!i&&r.phase===`parked`)continue;let e=$(r);if(e===null||(Ne(r)??n)<t||e>n)continue;let o=r.lane??`none`;a.has(o)||a.set(o,[]),a.get(o).push(r)}let o=[];for(let e of Fe){let t=a.get(e);if(!t?.length)continue;t.sort((e,t)=>$(e)-$(t));let r=[],i=[];for(let e of t){let t=$(e),a=Ne(e)??n,o=r.findIndex(e=>e<=t);o===-1?(o=r.length,r.push(a),i.push([])):r[o]=a,i[o].push(e)}let s=e===`none`?`Unassigned`:Ee[e];i.forEach((t,n)=>{o.push({id:`${e}:${n}`,label:i.length>1?`${s} · ${n+1}`:s,...e===`none`?{}:{engine:Te[e]},items:t.map(e=>({id:e.id,start:$(e),end:Ne(e),status:Ae(e),detail:Pe(e)}))})})}return o}function Le(e,t){let n=e.filter(e=>e.phase===`parked`||e.hold!==null),r=n.map(e=>e.hold?.nextEligibleAt?Date.parse(e.hold.nextEligibleAt):NaN).filter(Number.isFinite),i=n.map(e=>$(e)??t),a=Math.min(t-36e5,...i),o=Math.min(t+1728e5,Math.max(t+72e5,...r)),s=0;return{lanes:n.map(e=>{let n=e.hold?.nextEligibleAt?Date.parse(e.hold.nextEligibleAt):NaN;Number.isFinite(n)||s++;let r=e.repo.includes(`/`)?e.repo.split(`/`)[1]:e.repo;return{id:e.id,label:`${r}: ${e.title}`,...e.lane?{engine:Te[e.lane]}:{},items:[{id:e.id,start:$(e)??t,end:Number.isFinite(n)?n:null,status:e.hold?.kind===`split`?`split`:`parked`,outline:!0,detail:`${B(e.hold?.reason??`parked`,t)}${Number.isFinite(n)?``:` · release time unknown`}`}]}}),from:a,to:o,unknownRelease:s}}var Re={G0:`Authority`,G1:`Protected paths`,G1b:`Tamper`,G2:`Scope`,G3:`Verify`,G4:`Claims`,G5:`Blast radius`,G6:`Judge or elite`,G7:`GitHub checks`};function ze(e){return!e||e.stages.length===0?[]:[{id:`entered`,label:`Proposals`,value:e.stages[0].entered},...e.stages.map(e=>({id:e.gate,label:`${e.gate} ${Re[e.gate]??``}`.trim(),value:e.passed}))]}function Be(e,t=5){if(!e)return{categories:[],segments:[],values:[],total:0};let n=new Map;for(let t of e.stages)for(let e of t.refusals){let t=n.get(e.code);n.set(e.code,{reason:t?.reason??e.reason,count:(t?.count??0)+e.count})}let r=[...n.entries()].sort((e,t)=>t[1].count-e[1].count||e[0].localeCompare(t[0])),i=r.slice(0,t).map(([e])=>e),a=r.length>t,o=[...i.map((e,t)=>({id:e,label:n.get(e).reason,color:u(t)})),...a?[{id:`__other`,label:`Other reasons`,color:l}]:[]],s=e.stages.filter(e=>e.refusals.length>0||e.entered!==e.passed);return{categories:s.map(e=>e.gate),segments:o,values:s.map(e=>{let t=i.map(t=>e.refusals.find(e=>e.code===t)?.count??0);return a&&t.push(e.refusals.filter(e=>!i.includes(e.code)).reduce((e,t)=>e+t.count,0)),t}),total:r.reduce((e,[,t])=>e+t.count,0)}}function Ve(e){return e.runs.length===0&&ze(e.funnel).length===0&&Be(e.funnel).total===0}function He(e){if(!e)return null;let t=e.runs.filter(e=>e.seatDecision!==null);if(!t.length)return null;t.sort((e,t)=>($(t)??0)-($(e)??0));let n=t[0];return{decision:n.seatDecision,run:n}}var Ue={control:`_control_pchf4_6`,head:`_head_pchf4_21`,headline:`_headline_pchf4_29`,stateWord:`_stateWord_pchf4_43`,stateMarker:`_stateMarker_pchf4_47`,dot:`_dot_pchf4_56`,buttons:`_buttons_pchf4_80`,inlineButtons:`_inlineButtons_pchf4_81`,kbd:`_kbd_pchf4_87`,blocker:`_blocker_pchf4_95`,blockerReason:`_blockerReason_pchf4_106`,blockerCommand:`_blockerCommand_pchf4_112`,did:`_did_pchf4_119`,muted:`_muted_pchf4_126`,link:`_link_pchf4_133`,progress:`_progress_pchf4_162`,progressLine:`_progressLine_pchf4_180`,command:`_command_pchf4_187`,output:`_output_pchf4_199`,facts:`_facts_pchf4_219`,fact:`_fact_pchf4_219`,factValue:`_factValue_pchf4_238`,factSub:`_factSub_pchf4_248`,list:`_list_pchf4_260`,row:`_row_pchf4_268`,rowHead:`_rowHead_pchf4_280`,rowTitle:`_rowTitle_pchf4_288`,rowMeta:`_rowMeta_pchf4_297`,rowControls:`_rowControls_pchf4_303`,log:`_log_pchf4_310`,interject:`_interject_pchf4_324`,textarea:`_textarea_pchf4_330`,directive:`_directive_pchf4_348`,sectionLabel:`_sectionLabel_pchf4_359`,statusLink:`_statusLink_pchf4_373`,statusLinkLine:`_statusLinkLine_pchf4_390`};export{be as _,De as a,Ie as c,Le as d,Be as f,_e as g,ye as h,ze as i,He as l,Me as m,Te as n,ke as o,Ae as p,Ee as r,Oe as s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OAAQ,OAAO,KACjC,EAAa,MAAM,EAAG,KAAO,EAAQ,CAAC,GAAK,IAAM,EAAQ,CAAC,GAAK,EAAE,EACjE,IAAM,EAAM,EAAa,GACzB,MAAO,CAAE,SAAU,EAAI,aAAe,KAAI,CAC5C","names":[],"ignoreList":[],"sources":["../../../../../../src/web-ui/routes/verse/command/GrantScopeEditor.tsx","../../../../../../src/web-ui/routes/verse/command/GrantSheet.tsx","../../../../../../src/web-ui/routes/verse/command/AutonomyBar.tsx","../../../../../../src/web-ui/routes/verse/fleet/live-model.ts"],"sourcesContent":["/**\n * routes/verse/command/GrantScopeEditor.tsx — edit a grant draft's scope\n * before signing it (3.15), inside the Touch ID sheet.\n *\n * The editor chooses available scope and explicitly reviewed volume limits: repos from the draft\n * (the enrolled repos + the canary), engines the draft offers (the four fleet\n * lanes, plus Devin when the custody helper can sign it), Leader classes A/B,\n * the budget ceiling, metered dollars, the days, and per-change/per-repo volume. \"Preview\" sends the choice\n * to POST /api/verse/authority/draft, which applies it to its OWN draft\n * (authority/grant-scope.ts), re-validates it and answers the new draft with a\n * diff against the grant in force. What gets signed is exactly that returned\n * draft (its digest) — the helper then shows the scope again in its own Touch\n * ID prompt. Nothing here can sign, and nothing here holds a secret.\n */\nimport { useId, useState } from 'react';\nimport type { AuthorityGrantDraft, LeaderGrantClass, SeatRole } from '../../../../core/authority/types.js';\nimport type { GrantDiffLine, GrantDraftEditable, GrantScopeEdit, GrantSeatPolicyEdit } from '../../../../core/authority/grant-scope-types.js';\nimport type { GrantEngine } from '../../../../core/fleet/fleet-types.js';\nimport type { BudgetMode } from '../../../../core/routing/types.js';\nimport { apiPost } from '../../../data/client.js';\nimport { getMutationToken, touchMutationHold } from '../../../data/auth-store.js';\nimport { Button } from '../../../components/primitives/Button.js';\nimport { VerseControlLockedError } from '../autonomy/control-queries.js';\nimport { AUTHORITY_DRAFT_PATH } from './surface-data.js';\nimport { MicroLabel } from './Surface.js';\nimport styles from './command.module.css';\n\n/** The draft with the 3.15 additions the editor reads (absent from an older server). */\nexport interface EditableGrantDraft extends AuthorityGrantDraft {\n kind?: 'new' | 'reapprove';\n summary?: string[];\n startStageId?: string;\n diff?: GrantDiffLine[];\n editable?: GrantDraftEditable;\n eliteDirect?: boolean;\n}\n\n/** A draft with Mason's scope edits applied server-side, within its own draft. */\nexport async function postGrantDraft(kind: 'new' | 'reapprove' | 'auto', scope: GrantScopeEdit, eliteDirect?: boolean): Promise<EditableGrantDraft> {\n const token = getMutationToken();\n if (!token) throw new VerseControlLockedError();\n const result = await apiPost<EditableGrantDraft>(AUTHORITY_DRAFT_PATH, { kind, scope, ...(eliteDirect === undefined ? {} : { eliteDirect }) }, token);\n touchMutationHold();\n return result;\n}\n\nconst ENGINE_LABEL: Record<string, string> = {\n 'claude-cli': 'Claude Code (claude-cli)',\n codex: 'Codex',\n 'grok-cli': 'Grok (grok-cli)',\n devin: 'Devin',\n 'devin-cli': 'Devin CLI',\n local: 'Local models',\n};\n\n/** Editing only budget/scope must never opt a legacy grant into wider local limits. */\nfunction VolumeInput({ label, value, onChange }: { label: string; value: string; onChange: (value: string) => void }) {\n const id = useId();\n const unlimited = value === String(Number.MAX_SAFE_INTEGER);\n return <div>\n <label className={styles.scopeField} htmlFor={id}>\n <span>{label}</span>\n <input id={id} type=\"number\" min={label === 'Files per change' || label === 'Lines per change' ? 1 : 0} max={Number.MAX_SAFE_INTEGER} step={1} inputMode=\"numeric\" disabled={unlimited} value={unlimited ? '' : value} onChange={(e) => onChange(e.target.value)} />\n </label>\n <label className={styles.scopeCheck}>\n <input type=\"checkbox\" checked={unlimited} aria-label={`No volume cap: ${label}`} onChange={(e) => onChange(e.target.checked ? String(Number.MAX_SAFE_INTEGER) : '1')} />\n <span>No volume cap</span>\n </label>\n </div>;\n}\n\ninterface SeatInputs {\n enabled: boolean;\n roles: SeatRole[];\n reserve: string;\n session: string;\n ceiling: boolean;\n}\n\nfunction SeatPolicyInputs({ id, value, roles, onChange }: { id: string; value: SeatInputs; roles: SeatRole[]; onChange: (field: keyof GrantSeatPolicyEdit, change: Partial<SeatInputs>) => void }) {\n const controlId = useId();\n return <fieldset className={styles.scopeFieldset}>\n <legend>{id}</legend>\n <label className={styles.scopeCheck}>\n <input type=\"checkbox\" checked={value.enabled} onChange={(e) => onChange('enabled', { enabled: e.target.checked })} />\n <span>Permit autonomy on {id}</span>\n </label>\n {roles.map((role) => <label key={role} className={styles.scopeCheck}>\n <input type=\"checkbox\" checked={value.roles.includes(role)} onChange={(e) => onChange('roles', { roles: toggle(value.roles, role, e.target.checked) })} />\n <span>{id}: {role}</span>\n </label>)}\n <label className={styles.scopeField} htmlFor={`${controlId}-reserve`}>\n <span>{id}: reserve for you (%)</span>\n <input id={`${controlId}-reserve`} type=\"number\" min={0} max={100} step={1} inputMode=\"numeric\" value={value.reserve} onChange={(e) => onChange('reserveFloorPercent', { reserve: e.target.value })} />\n </label>\n <label className={styles.scopeCheck}>\n <input type=\"checkbox\" checked={!value.ceiling} onChange={(e) => onChange('maxSessionWindowPercent', { ceiling: !e.target.checked })} />\n <span>{id}: No session ceiling</span>\n </label>\n <label className={styles.scopeField} htmlFor={`${controlId}-session`}>\n <span>{id}: session usage ceiling (%)</span>\n <input id={`${controlId}-session`} type=\"number\" min={1} max={100} step={1} inputMode=\"numeric\" disabled={!value.ceiling} value={value.ceiling ? value.session : ''} onChange={(e) => onChange('maxSessionWindowPercent', { session: e.target.value })} />\n </label>\n </fieldset>;\n}\n\nconst MODE_LABEL: Record<BudgetMode, string> = { reserve: 'Reserve', balanced: 'Balanced', 'all-in': 'All-in' };\n\nfunction toggle<T>(list: readonly T[], value: T, on: boolean): T[] {\n return on ? (list.includes(value) ? [...list] : [...list, value]) : list.filter((v) => v !== value);\n}\n\nfunction daysOf(draft: AuthorityGrantDraft): number {\n const d = Math.round((Date.parse(draft.payload.expiresAt) - Date.parse(draft.payload.issuedAt)) / 86_400_000);\n return Number.isFinite(d) && d > 0 ? d : 30;\n}\n\nexport interface GrantScopeEditorProps {\n draft: EditableGrantDraft;\n busy: boolean;\n /** Ask the server for the edited draft (the sheet runs it through the token guard). */\n onPreview: (scope: GrantScopeEdit) => void;\n onReset: () => void;\n edited: boolean;\n onAccountSettings?: () => void;\n onResources?: () => void;\n onDirty?: () => void;\n}\n\nexport function GrantScopeEditor({ draft, busy, onPreview, onReset, edited, onAccountSettings, onResources, onDirty }: GrantScopeEditorProps) {\n const base = draft.editable;\n const g = draft.payload;\n const [repos, setRepos] = useState<string[]>(() => g.repos.map((r) => r.nameWithOwner));\n const [engines, setEngines] = useState<string[]>(() => [...g.engines]);\n const [classes, setClasses] = useState<string[]>(() => [...g.leader.classes]);\n const [startingLeader, setStartingLeader] = useState(() => ({ stageId: g.rollout.stages[0]!.id, classes: [...g.rollout.stages[0]!.leaderClasses] }));\n const [startingLeaderEdited, setStartingLeaderEdited] = useState(false);\n const [mode, setMode] = useState<BudgetMode>(g.spend.maxMode);\n const [metered, setMetered] = useState<string>(String(g.spend.meteredUsdPerDay));\n const [days, setDays] = useState<string>(String(daysOf(draft)));\n const [files, setFiles] = useState(String(g.merge.maxFiles));\n const [lines, setLines] = useState(String(g.merge.maxLines));\n const [rates, setRates] = useState<Record<string, string>>(() => Object.fromEntries(g.repos.map((r) => [r.nameWithOwner, String(r.maxMergesPerDay)])));\n const [volumeEdited, setVolumeEdited] = useState(false);\n const [seats, setSeats] = useState<Record<string, SeatInputs>>(() => Object.fromEntries(Object.entries(g.spend.seats).map(([id, seat]) => [id, { enabled: seat.enabled, roles: [...seat.roles], reserve: String(seat.reserveFloorPercent), session: String(seat.maxSessionWindowPercent ?? 70), ceiling: seat.maxSessionWindowPercent !== undefined }])));\n const [seatFields, setSeatFields] = useState<Record<string, (keyof GrantSeatPolicyEdit)[]>>({});\n function changeSeat(id: string, field: keyof GrantSeatPolicyEdit, change: Partial<SeatInputs>): void {\n setSeats((current) => ({ ...current, [id]: { ...current[id]!, ...change } }));\n setSeatFields((current) => ({ ...current, [id]: toggle(current[id] ?? [], field, true) }));\n }\n\n const ids = { metered: useId(), days: useId(), mode: useId() };\n if (!base) {\n return <p className={styles.scopeMeta}>This server cannot edit a draft yet — update Phantom to choose repos and engines here.</p>;\n }\n const meteredN = Number(metered);\n const daysN = Number(days);\n const volumeValid = !volumeEdited || (Number.isSafeInteger(Number(files)) && Number(files) > 0 && Number.isSafeInteger(Number(lines)) && Number(lines) > 0 && repos.every((repo) => rates[repo] !== undefined && rates[repo] !== '' && Number.isSafeInteger(Number(rates[repo])) && Number(rates[repo]) >= 0));\n const seatValid = Object.keys(seatFields).every((id) => {\n const seat = seats[id]!;\n return seat.roles.length > 0 && seat.reserve !== '' && Number.isInteger(Number(seat.reserve)) && Number(seat.reserve) >= 0 && Number(seat.reserve) <= 100\n && (!seat.ceiling || (seat.session !== '' && Number.isInteger(Number(seat.session)) && Number(seat.session) >= 1 && Number(seat.session) <= 100));\n });\n const startingCapability = base.startingStageLeaderClasses;\n const startingStage = g.rollout.stages[0]!;\n const startingLeaderCurrent = !startingLeaderEdited || (startingLeader.stageId === startingStage.id && startingCapability?.stageId === startingLeader.stageId);\n const startingClasses = (startingLeaderEdited ? startingLeader.classes : startingStage.leaderClasses).filter((c) => classes.includes(c));\n const valid = startingLeaderCurrent && seatValid && volumeValid && repos.length > 0 && engines.length > 0 && Number.isInteger(meteredN) && meteredN >= 0 && Number.isInteger(daysN) && daysN >= 1 && daysN <= base.maxDays;\n\n function preview(): void {\n onPreview({\n repos,\n engines: engines as GrantEngine[],\n leaderClasses: classes as LeaderGrantClass[],\n ...(startingCapability && startingLeaderEdited ? { startingStageLeaderClasses: { stageId: startingLeader.stageId, classes: startingClasses } } : {}),\n maxMode: mode,\n meteredUsdPerDay: meteredN,\n days: daysN,\n ...(base?.seatPolicies && Object.keys(seatFields).length ? { seatPolicies: Object.fromEntries(Object.entries(seatFields).map(([id, fields]) => {\n const seat = seats[id]!;\n const policy: GrantSeatPolicyEdit = {};\n if (fields.includes('enabled')) policy.enabled = seat.enabled;\n if (fields.includes('roles')) policy.roles = seat.roles;\n if (fields.includes('reserveFloorPercent')) policy.reserveFloorPercent = Number(seat.reserve);\n if (fields.includes('maxSessionWindowPercent')) policy.maxSessionWindowPercent = seat.ceiling ? Number(seat.session) : null;\n return [id, policy];\n })) } : {}),\n ...(base?.volumeLimits && volumeEdited ? {\n maxFiles: Number(files), maxLines: Number(lines),\n repoMaxMergesPerDay: Object.fromEntries(repos.map((repo) => [repo, Number(rates[repo])])),\n } : {}),\n });\n }\n\n return (\n <div className={styles.scopeEditor} aria-label=\"Edit the grant scope\" onChange={onDirty}>\n <fieldset className={styles.scopeFieldset}>\n <legend><MicroLabel>Repositories ({repos.length}/{base.repos.length})</MicroLabel></legend>\n {base.repos.map((repo) => (\n <label key={repo} className={styles.scopeCheck}>\n <input type=\"checkbox\" checked={repos.includes(repo)} onChange={(e) => setRepos(toggle(repos, repo, e.target.checked))} />\n <span className={styles.mono}>{repo}</span>\n </label>\n ))}\n <p className={styles.scopeMeta}>Only enrolled repos can be granted. Enroll another checkout to add it here.</p>\n </fieldset>\n <fieldset className={styles.scopeFieldset}>\n <legend><MicroLabel>Engines</MicroLabel></legend>\n {base.engines.map((engine) => (\n <label key={engine} className={styles.scopeCheck}>\n <input type=\"checkbox\" checked={engines.includes(engine)} onChange={(e) => setEngines(toggle(engines, engine, e.target.checked))} />\n <span>{ENGINE_LABEL[engine] ?? engine}</span>\n </label>\n ))}\n </fieldset>\n <fieldset className={styles.scopeFieldset}>\n <legend><MicroLabel>Leader permission ceiling</MicroLabel></legend>\n {base.leaderClasses.map((c) => (\n <label key={c} className={styles.scopeCheck}>\n <input type=\"checkbox\" checked={classes.includes(c)} onChange={(e) => {\n setClasses(toggle(classes, c, e.target.checked));\n if (!e.target.checked && startingLeaderEdited) setStartingLeader((current) => ({ ...current, classes: current.classes.filter((cls) => cls !== c) }));\n }} />\n <span>Class {c}{c === 'A' ? ' — reversible housekeeping' : ' — larger changes, with a veto window'}</span>\n </label>\n ))}\n <p className={styles.scopeMeta}>The starting stage chooses which of these permissions the Leader can use immediately.</p>\n </fieldset>\n {startingCapability ? <fieldset className={styles.scopeFieldset}>\n <legend><MicroLabel>Leader permissions when this grant starts</MicroLabel></legend>\n <p className={styles.scopeMeta}>Starting stage: {startingStage.id}. Choose immediate permissions explicitly; other stages keep their existing permissions. Preview shows the change before Touch ID.</p>\n {startingCapability.classes.map((c) => <label key={c} className={styles.scopeCheck}>\n <input type=\"checkbox\" aria-label={`Starting stage class ${c}`} checked={startingClasses.includes(c)} disabled={!startingLeaderCurrent || !classes.includes(c)} onChange={(e) => {\n setStartingLeader({ stageId: startingStage.id, classes: toggle(startingClasses, c, e.target.checked) });\n setStartingLeaderEdited(true);\n }} />\n <span>Class {c}{c === 'A' ? ' — reversible housekeeping' : ' — larger changes, with a veto window'}</span>\n </label>)}\n {!startingClasses.length ? <p className={styles.scopeMeta}>The Leader stays advisory at this stage.</p> : null}\n {!startingLeaderCurrent ? <p role=\"alert\" className={styles.scopeMeta}>The starting stage changed. Reset to the current draft before choosing its Leader permissions.</p> : null}\n </fieldset> : null}\n {base.volumeLimits ? <fieldset className={styles.scopeFieldset}>\n <legend><MicroLabel>Signed volume limits</MicroLabel></legend>\n <label className={styles.scopeCheck}>\n <input type=\"checkbox\" checked={volumeEdited} onChange={(e) => setVolumeEdited(e.target.checked)} />\n <span>Replace volume limits for all models and enforcement modes</span>\n </label>\n <p className={styles.scopeMeta}>An explicit choice applies these size limits to every rollout stage and these daily limits to merging stages. Local work keeps its risk and verification rules. Unchanged or renewed grants keep their existing volume policy. Preview shows the change before Touch ID.</p>\n <VolumeInput label=\"Files per change\" value={files} onChange={(value) => { setFiles(value); setVolumeEdited(true); }} />\n <VolumeInput label=\"Lines per change\" value={lines} onChange={(value) => { setLines(value); setVolumeEdited(true); }} />\n {repos.map((repo) => <VolumeInput key={repo} label={`${repo} merges/day`} value={rates[repo] ?? ''} onChange={(value) => { setRates((current) => ({ ...current, [repo]: value })); setVolumeEdited(true); }} />)}\n </fieldset> : null}\n <fieldset className={styles.scopeFieldset}>\n <legend><MicroLabel>Budget caps</MicroLabel></legend>\n <label className={styles.scopeField} htmlFor={ids.mode}>\n <span>Budget mode up to</span>\n <select id={ids.mode} value={mode} onChange={(e) => setMode(e.target.value as BudgetMode)}>\n {(['reserve', 'balanced', 'all-in'] as const).map((m) => (\n <option key={m} value={m}>{MODE_LABEL[m]}</option>\n ))}\n </select>\n </label>\n <label className={styles.scopeField} htmlFor={ids.metered}>\n <span>Metered APIs, $ per day</span>\n <input id={ids.metered} type=\"number\" min={0} step={1} inputMode=\"numeric\" value={metered} onChange={(e) => setMetered(e.target.value)} />\n </label>\n <label className={styles.scopeField} htmlFor={ids.days}>\n <span>Valid for (days, at most {base.maxDays})</span>\n <input id={ids.days} type=\"number\" min={1} max={base.maxDays} step={1} inputMode=\"numeric\" value={days} onChange={(e) => setDays(e.target.value)} />\n </label>\n </fieldset>\n {base.seatPolicies ? <fieldset className={styles.scopeFieldset}>\n <legend><MicroLabel>Account permissions and reserves</MicroLabel></legend>\n <p className={styles.scopeMeta}>All-in does not remove account reserves or session ceilings. Set 0% reserve or No session ceiling explicitly. These are standing permissions; current budget settings, known usage and provider readiness may tighten them further. A producer role does not qualify an unsupported provider.</p>\n <p className={styles.scopeMeta}>Current Budget settings are in Apps &amp; Accounts; Resources shows usage and readiness. Opening either leaves this unsigned draft.</p>\n <span className={styles.sheetButtons}>\n {onAccountSettings ? <Button variant=\"ghost\" size=\"sm\" onClick={onAccountSettings}>Current account settings</Button> : null}\n {onResources ? <Button variant=\"ghost\" size=\"sm\" onClick={onResources}>Resources</Button> : null}\n </span>\n {Object.entries(base.seatPolicies).filter(([id]) => seats[id] !== undefined).map(([id, policy]) => <SeatPolicyInputs key={id} id={id} value={seats[id]!} roles={policy.roles} onChange={(field, change) => changeSeat(id, field, change)} />)}\n </fieldset> : null}\n <span className={styles.sheetButtons}>\n {edited ? (\n <Button variant=\"ghost\" size=\"sm\" onClick={onReset}>\n Back to the default draft\n </Button>\n ) : null}\n <Button variant=\"subtle\" size=\"sm\" onClick={preview} disabled={!valid} busy={busy}>\n Preview the changes\n </Button>\n </span>\n {!valid ? <p className={styles.scopeMeta}>Keep at least one repo and one engine, whole dollars, at least one role per edited account, whole reserve percentages (0–100) and session ceilings (1–100), positive whole size limits, nonnegative whole merge limits, and 1–{base.maxDays} days.</p> : null}\n </div>\n );\n}\n\nconst DIRECTION_WORD: Record<GrantDiffLine['direction'], string> = { wider: 'wider', narrower: 'narrower', changed: 'changed' };\n\n/** What signing this draft changes vs the grant in force. */\nexport function GrantDiff({ lines }: { lines: GrantDiffLine[] | undefined }) {\n if (!lines) return null;\n if (lines.length === 0) {\n return (\n <section className={styles.scopeBlock} aria-label=\"Changes\">\n <MicroLabel>Changes vs the grant in force</MicroLabel>\n <p className={styles.scopeMeta}>Same scope as the grant in force.</p>\n </section>\n );\n }\n return (\n <section className={styles.scopeBlock} aria-label=\"Changes\">\n <MicroLabel>Changes vs the grant in force</MicroLabel>\n <table className={styles.scopeTable}>\n <thead>\n <tr>\n <th scope=\"col\">What</th>\n <th scope=\"col\">Now</th>\n <th scope=\"col\">After signing</th>\n <th scope=\"col\">Authority</th>\n </tr>\n </thead>\n <tbody>\n {lines.map((line, i) => (\n <tr key={`${line.field}-${i}`} data-direction={line.direction}>\n <td>{line.label}</td>\n <td className={styles.mono}>{line.before}</td>\n <td className={styles.mono}>{line.after}</td>\n <td className={styles.diffDirection} data-direction={line.direction}>{DIRECTION_WORD[line.direction]}</td>\n </tr>\n ))}\n </tbody>\n </table>\n </section>\n );\n}\n","/**\n * routes/verse/command/GrantSheet.tsx — the Touch ID sheet (SPEC-310B §6:\n * \"Raising it past the grant opens the Touch ID sheet, which shows scope and\n * expiry\"; unit C7).\n *\n * It shows EXACTLY what the custody helper will sign — the server's draft\n * StandingGrantV1 and its digest — before anything is sent: repos and how\n * far each may go, merge caps, spend (mode ceiling, metered dollars, every\n * seat's reserve floor), engines, the Leader's classes and veto window, the\n * rollout ladder with each rung's exit criteria, and the expiry. Approving\n * echoes the draft's digest back, so the server signs what Mason read, not\n * whatever it would draft a second later. The Touch ID prompt itself is the\n * helper's, on this Mac; this page never sees a key.\n *\n * All copy is plain text; the draft is server data but rendered as text only.\n */\nimport { useId, useRef, useState } from 'react';\nimport { PRODUCT_NAME } from '../../../app/product-brand.js';\nimport { volumeLimitLabel } from '../../../../core/authority/types.js';\nimport type { AuthorityGrantDraft, RolloutStage, StandingGrantV1 } from '../../../../core/authority/types.js';\nimport { Button } from '../../../components/primitives/Button.js';\nimport { Sheet } from '../../../components/primitives/Sheet.js';\nimport { IconLock } from '../../../components/primitives/icons.js';\nimport { useQuery } from '../../../data/hooks.js';\nimport { authorityDraftQuery, authorityEliteDraftQuery, type OptionalRead } from './surface-data.js';\nimport { SWITCH_LABEL } from './authority-model.js';\nimport { CardNote, MicroLabel } from './Surface.js';\nimport type { AutonomySwitch } from '../../../../core/authority/types.js';\nimport { ActionStatus, type SurfaceActions } from './actions.js';\nimport { GrantDiff, GrantScopeEditor, postGrantDraft, type EditableGrantDraft } from './GrantScopeEditor.js';\nimport { setVerseResourcesOpen, setVerseSection } from '../verse-ui-store.js';\nimport styles from './command.module.css';\n\nexport type GrantIntent = 'grant' | 're-approve';\n\nexport interface GrantSheetProps {\n open: boolean;\n intent: GrantIntent;\n /** The switch position the operator asked for (applied after the grant, if it allows it). */\n then: AutonomySwitch | null;\n busy: boolean;\n /** Existing guarded-action feedback, also visible inside the open dialog. */\n actionStatus?: Pick<SurfaceActions, 'error' | 'clearError' | 'readOnly'>;\n /** Why the sheet opened, in one sentence (\"Autonomous needs a new grant.\"). */\n why: string;\n onApprove: (draft: AuthorityGrantDraft) => void;\n onClose: () => void;\n /**\n * 3.15: the surface's guarded action. With it the sheet can EDIT the draft's\n * scope (repos, engines, Leader classes, caps, days) before signing — the\n * token prompt comes first, like every write. Without it, view-only.\n */\n act?: SurfaceActions['act'];\n /** 3.15: open straight into the scope editor (Fleet's \"Edit scope\"). */\n startEditing?: boolean;\n}\n\nconst DAY = 86_400_000;\n\nfunction fmtDate(iso: string): string {\n const t = Date.parse(iso);\n return Number.isFinite(t) ? new Date(t).toLocaleString('en-US', { weekday: 'short', month: 'short', day: 'numeric', hour: 'numeric', minute: '2-digit' }) : '—';\n}\n\nexport function grantDays(g: Pick<StandingGrantV1, 'issuedAt' | 'expiresAt'>): number | null {\n const a = Date.parse(g.issuedAt);\n const b = Date.parse(g.expiresAt);\n return Number.isFinite(a) && Number.isFinite(b) ? Math.round((b - a) / DAY) : null;\n}\n\n/** The reserved rung id (authority/elite-models.ts ELITE_DIRECT_STAGE_ID; the web bundle keeps its own copy). */\nconst ELITE_DIRECT_STAGE_ID = 'elite-direct';\n\n/** One line the sheet shows for an elite-direct grant — what Mason is signing. */\nexport const ELITE_DIRECT_SHEET_LINE =\n 'Elite models (Opus 5.5/5, Fable 5.1/5, Sonnet 5, GPT-6 Astra/Sol/Luna, Grok 4.7/4.6, SWE-2, Qwen 3.8 27B) land directly on green tests — no judge. '\n + 'Other models still need an independent judge; changes to authority code still come to you.';\n\nfunction stageLine(s: RolloutStage, grantedClasses: StandingGrantV1['leader']['classes']): string {\n const c = s.criteria;\n const classes = s.leaderClasses.filter((cls) => grantedClasses.includes(cls));\n const leader = classes.length ? `Leader classes ${classes.join(' + ')}` : 'Leader advisory only';\n if (s.id === ELITE_DIRECT_STAGE_ID) {\n return `${s.repos.filter((r) => r.stage === 'merge').length} of ${s.repos.length} repos merge · ${s.maxRisk} risk · ≤ ${volumeLimitLabel(s.maxFiles)} files / ${volumeLimitLabel(s.maxLines)} lines · ${leader} — one rung, no ramp; elite models land on green tests, no judge`;\n }\n const parts = [\n `${s.repos.length} repo${s.repos.length === 1 ? '' : 's'}`,\n `${s.maxRisk} risk`,\n `≤ ${volumeLimitLabel(s.maxFiles)} files / ${volumeLimitLabel(s.maxLines)} lines`,\n `≤ ${volumeLimitLabel(s.maxMergesPerRepoPerDay)} merges/repo/day`,\n leader,\n ];\n const exit = [`${c.minMerges} merges`, `${c.minHours} h`, c.minPostMergeGreenPct ? `≥ ${c.minPostMergeGreenPct}% green` : null, `≤ ${c.maxRevertRatePct}% reverts`].filter(Boolean);\n return `${parts.join(' · ')} — advances after ${exit.join(', ')}`;\n}\n\nexport function DraftScope({ draft }: { draft: AuthorityGrantDraft }) {\n const g = draft.payload;\n const days = grantDays(g);\n // The grant ceiling alone does not permit Leader actions. A re-approval\n // preserves its reached rung, which may still allow advisory work only.\n const startingClasses = g.rollout.stages[0]?.leaderClasses.filter((cls) => g.leader.classes.includes(cls)) ?? [];\n return (\n <div className={styles.scope}>\n <section className={styles.scopeBlock} aria-label=\"Expiry\">\n <MicroLabel>Expiry</MicroLabel>\n <p className={styles.scopeLead}>\n {days !== null ? `${days} days` : '—'}, until {fmtDate(g.expiresAt)}\n </p>\n <p className={styles.scopeMeta}>\n Signed by key <span className={styles.mono}>{g.keyId}</span> · sequence {g.grantSeq} · bound to this Mac\n </p>\n </section>\n\n <section className={styles.scopeBlock} aria-label=\"Repositories\">\n <MicroLabel>Repositories ({g.repos.length})</MicroLabel>\n <table className={styles.scopeTable}>\n <thead>\n <tr>\n <th scope=\"col\">Repo</th>\n <th scope=\"col\">Up to</th>\n <th scope=\"col\">Checks</th>\n <th scope=\"col\">Risk</th>\n <th scope=\"col\" className={styles.num}>Merges/day</th>\n </tr>\n </thead>\n <tbody>\n {g.repos.map((r) => (\n <tr key={r.nameWithOwner}>\n <td className={styles.mono}>{r.nameWithOwner}</td>\n <td>{r.stage === 'merge' ? 'Merge' : 'Propose'}</td>\n <td>{r.enforcement === 'server' ? 'GitHub' : 'Local only'}</td>\n <td>{r.maxRisk}</td>\n <td className={styles.num}>{volumeLimitLabel(r.maxMergesPerDay)}</td>\n </tr>\n ))}\n </tbody>\n </table>\n <p className={styles.scopeMeta}>\n Every merge ≤ {volumeLimitLabel(g.merge.maxFiles)} files / {volumeLimitLabel(g.merge.maxLines)} lines · {PRODUCT_NAME} itself: {g.merge.selfRepo === 'propose-only' ? 'propose only' : 'merge outside authority code'}\n </p>\n </section>\n\n <p className={styles.scopeMeta}>{g.merge.volumePolicy === 'operator-signed' ? 'Signed volume limits apply to all models and enforcement modes. Risk, CI, spend, Stop and revocation remain binding.' : 'Legacy local limits remain: 4 files / 150 lines, and 4 merges/day for locally enforced repos.'}</p>\n\n <section className={styles.scopeBlock} aria-label=\"Spend\">\n <MicroLabel>Spend</MicroLabel>\n <p className={styles.scopeLead}>\n Up to {g.spend.maxMode === 'all-in' ? 'All-in' : g.spend.maxMode === 'balanced' ? 'Balanced' : 'Reserve'} · metered APIs ${g.spend.meteredUsdPerDay}/day\n </p>\n <ul className={styles.scopeList}>\n {Object.entries(g.spend.seats).map(([seatId, seat]) => (\n <li key={seatId}>\n <span className={styles.mono}>{seatId}</span>\n {seat.enabled ? `: keeps ${seat.reserveFloorPercent}% for you` : ': not used by autonomy'}\n {seat.enabled && seat.maxSessionWindowPercent !== undefined ? `, never above ${seat.maxSessionWindowPercent}% of its 5-hour window` : ''}\n {` · permitted roles: ${seat.roles.join(', ')}`}\n {seat.enabled && seat.maxSessionWindowPercent === undefined ? ', no session ceiling' : ''}\n </li>\n ))}\n </ul>\n <p className={styles.scopeMeta}>Signed account permissions are ceilings. Current Budget settings, usage and Resources readiness still govern dispatch; a listed role does not establish provider support.</p>\n </section>\n\n <section className={styles.scopeBlock} aria-label=\"Engines and Leader\">\n <MicroLabel>Engines and Leader</MicroLabel>\n <p className={styles.scopeLead}>{g.engines.join(', ') || 'none'}</p>\n <p className={styles.scopeMeta}>\n Signed Leader ceiling: {g.leader.classes.length ? g.leader.classes.join(' + ') : 'advisory only'} · class-B veto window {g.leader.vetoMinutes} min ·\n goal conductor {g.conductorGoals ? 'on' : 'off'}\n </p>\n <p className={styles.scopeMeta}>\n {startingClasses.length ? `Starting stage permits Leader classes ${startingClasses.join(' + ')} when autonomy is active.` : 'Leader remains advisory in the starting stage.'}\n </p>\n </section>\n\n <section className={styles.scopeBlock} aria-label=\"Rollout ladder\">\n {g.rollout.stages.some((s) => s.id === ELITE_DIRECT_STAGE_ID) ? (\n <>\n <MicroLabel>Elite direct</MicroLabel>\n <p className={styles.scopeLead}>{ELITE_DIRECT_SHEET_LINE}</p>\n </>\n ) : (\n <MicroLabel>Rollout ladder ({g.rollout.stages.length} stages, advances by itself)</MicroLabel>\n )}\n <ol className={styles.ladder}>\n {g.rollout.stages.map((s) => (\n <li key={s.id}>\n <span className={styles.ladderId}>{s.id}</span>\n <span>{stageLine(s, g.leader.classes)}</span>\n </li>\n ))}\n </ol>\n <p className={styles.scopeMeta}>\n {g.rollout.stages.length === 1 && g.rollout.stages[0]?.id === ELITE_DIRECT_STAGE_ID\n ? 'A sandbox violation, reserve breach, or reverts above 10% restart this rung’s evidence window. Elite direct remains the signed merge ceiling until you stop, revoke, or replace the grant.'\n : 'Any sandbox violation or reserve breach drops it back one stage. It can never climb past the last stage.'}\n </p>\n </section>\n\n <p className={styles.scopeMeta}>\n Draft digest <span className={styles.mono}>{draft.digest.slice(0, 16)}…</span>\n </p>\n </div>\n );\n}\n\nexport function GrantSheet({ open, intent, then, busy, actionStatus, why, onApprove, onClose, act, startEditing }: GrantSheetProps) {\n const titleId = useId();\n // Only read the draft while the sheet is open: drafting is cheap on the\n // server, but a draft read while the sheet is closed would be stale by the\n // time anyone approved it.\n return open ? <GrantSheetBody titleId={titleId} intent={intent} then={then} busy={busy} actionStatus={actionStatus} why={why} onApprove={onApprove} onClose={onClose} {...(act ? { act } : {})} startEditing={startEditing === true} /> : null;\n}\n\nfunction GrantSheetBody({ titleId, intent, then, busy, actionStatus, why, onApprove, onClose, act, startEditing }: Omit<GrantSheetProps, 'open'> & { titleId: string }) {\n const [elite, setElite] = useState(false);\n const eliteHintId = useId();\n const read = useQuery(elite ? authorityEliteDraftQuery : authorityDraftQuery, { freshMs: 0 });\n const served = (read.data as OptionalRead<EditableGrantDraft> | undefined)?.value ?? null;\n // 3.15: Mason's edited draft (the server's answer to the editor) replaces\n // the served one; approving signs exactly the draft on screen (its digest).\n const [edited, setEdited] = useState<EditableGrantDraft | null>(null);\n const [editing, setEditing] = useState(startEditing === true);\n const [editorRevision, setEditorRevision] = useState(0);\n const revision = useRef(0);\n const previewRequest = useRef(0);\n const [editorReset, setEditorReset] = useState(0);\n const [acknowledged, setAcknowledged] = useState<{ revision: number; sourceDigest: string } | null>(null);\n const [editedSourceDigest, setEditedSourceDigest] = useState<string | null>(null);\n const sourceDigest = useRef<string | null>(null);\n sourceDigest.current = served?.digest ?? null;\n const [editError, setEditError] = useState<string | null>(null);\n const [previewing, setPreviewing] = useState(false);\n // A late preview from the previous ladder must never replace the new one.\n const draft: EditableGrantDraft | null = edited && editedSourceDigest === served?.digest && edited.eliteDirect === served?.eliteDirect ? edited : served;\n const reason = read.data?.reason ?? null;\n const canEdit = act !== undefined && served?.editable !== undefined;\n const fixedElite = served?.kind === 'reapprove' && served.eliteDirect === true;\n const scopeDirty = editorRevision > 0 && (acknowledged?.revision !== editorRevision || acknowledged.sourceDigest !== served?.digest);\n const sourceChanged = editedSourceDigest !== null && editedSourceDigest !== served?.digest;\n const draftMatchesChoice = draft !== null && (draft.eliteDirect === true) === (elite || fixedElite);\n\n function markDirty(): void {\n revision.current++;\n setEditorRevision(revision.current);\n setEditError(null);\n }\n\n function resetEditor(): void {\n // Explicit reset acknowledges the current fetched source, restores its\n // controls, and invalidates every earlier in-flight preview.\n revision.current++;\n previewRequest.current++;\n setEditorRevision(0);\n setAcknowledged(null);\n setEdited(null);\n setEditedSourceDigest(null);\n setEditError(null);\n setPreviewing(false);\n setEditorReset((value) => value + 1);\n }\n\n\n function preview(scope: Parameters<typeof postGrantDraft>[1]): void {\n if (!act || !served) return;\n const kind = served.kind ?? 'auto';\n const request = ++previewRequest.current;\n const choiceRevision = revision.current;\n const baseDigest = served.digest;\n setEditError(null);\n setPreviewing(true);\n act(\n async () => {\n try {\n return await postGrantDraft(kind, scope, served.eliteDirect === true);\n } catch (error) {\n if (request === previewRequest.current && baseDigest === sourceDigest.current) setEditError(error instanceof Error ? error.message : String(error));\n return null;\n } finally {\n if (request === previewRequest.current) setPreviewing(false);\n }\n },\n 'Preview the edited grant',\n {\n onDone: (next) => {\n // Never acknowledge a newer choice, a different fetched draft, or\n // a response invalidated by Reset. The exact accepted digest is signed.\n if (request !== previewRequest.current || choiceRevision !== revision.current || baseDigest !== sourceDigest.current) return;\n if (next && typeof next === 'object' && typeof next.digest === 'string' && next.eliteDirect === served.eliteDirect) {\n setEdited(next);\n setEditedSourceDigest(baseDigest);\n setAcknowledged({ revision: choiceRevision, sourceDigest: baseDigest });\n }\n },\n },\n );\n }\n return (\n <Sheet\n open\n onClose={onClose}\n titleId={titleId}\n width={600}\n title={intent === 're-approve' ? 'Re-approve the standing grant' : 'Approve a standing grant'}\n description={why}\n footer={\n <div className={styles.sheetFooter}>\n <p className={styles.sheetFootnote} role={busy || previewing ? 'status' : undefined}>\n {previewing ? 'Preparing the grant preview…' : busy ? 'Waiting for the result. Complete any Mac authentication prompt; signing has a three-minute timeout. Closing this dialog does not cancel approval.' : <>\n Touch ID appears on this Mac. Lowering authority — Off, Stop, Revoke — never needs it.\n {then ? ` After approval the switch moves to ${SWITCH_LABEL[then]}.` : ''}\n </>}\n </p>\n <span className={styles.sheetButtons}>\n <Button variant=\"ghost\" onClick={onClose}>\n {busy ? 'Close dialog' : 'Cancel'}\n </Button>\n <Button variant=\"primary\" icon={<IconLock />} disabled={!draft || !draftMatchesChoice || scopeDirty || previewing} busy={busy} onClick={() => draft && onApprove(draft)}>\n Approve with Touch ID\n </Button>\n </span>\n </div>\n }\n >\n {actionStatus ? <ActionStatus actions={actionStatus} /> : null}\n <label className={styles.eliteToggle}>\n <input type=\"checkbox\" checked={elite || fixedElite} disabled={previewing || busy || fixedElite} onChange={(e) => { setElite(e.target.checked); resetEditor(); }} aria-describedby={eliteHintId} />\n Elite direct\n </label>\n <p id={eliteHintId} className={styles.scopeMeta}>\n {ELITE_DIRECT_SHEET_LINE}\n </p>\n {read.status === 'loading' && !read.data ? (\n <p className={styles.muted} aria-busy=\"true\">Preparing the grant draft…</p>\n ) : draft ? (\n <>\n {canEdit ? (\n <div className={styles.scopeEditToggle}>\n <Button variant=\"ghost\" size=\"sm\" aria-expanded={editing} onClick={() => setEditing((e) => !e)}>\n {editing ? 'Hide the scope editor' : 'Edit scope'}\n </Button>\n {edited && !sourceChanged ? <span className={styles.scopeMeta}>Showing your edited draft.</span> : null}\n </div>\n ) : null}\n {canEdit && served ? (\n // Collapsing must not reset controlled choices or explicit edited\n // field flags. Only Reset or changing the ladder remounts the form.\n <div hidden={!editing}>\n <GrantScopeEditor\n key={editorReset}\n draft={served as EditableGrantDraft}\n busy={previewing}\n edited={editedSourceDigest === served.digest || scopeDirty}\n onDirty={markDirty}\n onAccountSettings={() => { onClose(); setVerseSection('apps'); }}\n onResources={() => { onClose(); setVerseResourcesOpen(true); }}\n onPreview={preview}\n onReset={resetEditor}\n />\n </div>\n ) : null}\n {scopeDirty ? <CardNote tone=\"muted\">{sourceChanged ? 'The grant source changed. Your choices are kept; preview them again before approving. The summary below shows the updated source draft.' : 'Preview your choices before approving. Only the reviewed draft below can be signed.'}</CardNote> : null}\n {editError ? <CardNote tone=\"danger\">{editError}</CardNote> : null}\n <GrantDiff lines={draft.diff} />\n <DraftScope draft={draft} />\n </>\n ) : (\n <CardNote tone=\"unknown\">{reason ?? 'Grant draft unreadable — nothing to approve.'}</CardNote>\n )}\n </Sheet>\n );\n}\n","/**\n * routes/verse/command/AutonomyBar.tsx — Command's top bar (SPEC-310B §6,\n * SPEC-310C §5; unit C7):\n *\n * Autonomy [Off | Propose | Autonomous] Budget · Balanced ▾ Grant 23d ■ Stop\n *\n * - Lowering the switch is instant (no confirm, no Touch ID — I1).\n * - Raising within what the installed grant allows is instant too.\n * - Raising PAST the grant opens the Touch ID sheet with the draft's full\n * scope and expiry; the switch then moves once the grant is signed.\n * - The Budget pill opens A9's BudgetControl, with the grant's mode\n * ceiling stated above it (autonomy never spends past it whatever the\n * control shows — the server clamps; see CROSS-UNIT REQUEST to C6).\n * - The grant chip reads \"23d\", or \"Paused, re-approve\" and opens the sheet.\n * - Stop asks for confirmation (the catalog's `fleet.stop` guard copy),\n * then writes KILL; while stopped it becomes Resume.\n *\n * At 375 px the bar is just [Autonomy][■] (SPEC-310C §5); the budget pill\n * and grant chip move under the verdict line (rendered by CommandSection).\n *\n * ⌘K reaches the same paths (usePaletteCommands below): \"Autonomy: …\",\n * \"Approve grant…\", \"Re-approve grant…\" and \"Budget mode: …\" run THROUGH this bar — the switch's\n * lower/raise/needs-grant classification, the grant chip's own intent, the\n * budget's grant ceiling, the token prompt, the read-only session — so the\n * palette can never be a shortcut around any of them. When the bar would\n * have been disabled, the palette says why instead of doing nothing.\n */\nimport { lazy, Suspense, useState, type ReactNode } from 'react';\nimport type { AuthorityGrantDraft, AuthorityStatusV1, AutonomySwitch } from '../../../../core/authority/types.js';\nimport type { BudgetMode } from '../../../../core/routing/types.js';\nimport { Button } from '../../../components/primitives/Button.js';\nimport { Segmented } from '../../../components/primitives/Segmented.js';\nimport { Sheet } from '../../../components/primitives/Sheet.js';\nimport { IconChevronDown, IconLock, IconPlay, IconStop } from '../../../components/primitives/icons.js';\nimport { BudgetControl } from '../budget/BudgetControl.js';\nimport { modeAboveCeiling } from '../budget/budget-model.js';\nimport { updateBudget } from '../budget/budget-queries.js';\nimport { useCommandHandler } from '../shell/command-bus.js';\nimport { findCommand } from '../shell/command-catalog.js';\nimport { shellNotify } from '../shell/run-command.js';\nimport { actionForDraft, SWITCH_LABEL, SWITCH_RANK, classifySwitch, grantChip, stopOutcomeSentence, switchOptions, type ChipTone } from './authority-model.js';\nimport { GrantSheet, type GrantIntent } from './GrantSheet.js';\nimport { postAuthority, type OptionalRead } from './surface-data.js';\nimport type { ConfirmSpec, SurfaceActions } from './actions.js';\nimport styles from './command.module.css';\n\nconst WebsitePublicationControl = lazy(() => import('./WebsitePublicationControl.js'));\n\nconst MODE_WORD: Record<BudgetMode, string> = { 'all-in': 'All-in', balanced: 'Balanced', reserve: 'Reserve' };\n\n/** The catalog's Stop copy, so ⌘K \"Stop the fleet…\" and this button confirm with the same words. */\nexport function stopConfirm(): ConfirmSpec {\n const guard = findCommand('fleet.stop')?.guard?.confirm;\n return {\n title: guard?.title ?? 'Stop the fleet?',\n body: guard?.body ?? 'Autonomous work halts within one tick and stays stopped until you resume it. Chats keep running.',\n confirmLabel: guard?.confirmLabel ?? 'Stop fleet',\n destructive: true,\n };\n}\n\nconst RESUME_CONFIRM: ConfirmSpec = {\n title: 'Resume the fleet?',\n body: 'Autonomy picks up at the switch position on its next tick. Stopping again is one click.',\n confirmLabel: 'Resume fleet',\n destructive: false,\n};\n\nexport function ChipDot({ tone }: { tone: ChipTone }) {\n return <span className={styles.dot} data-tone={tone} aria-hidden=\"true\" />;\n}\n\n/**\n * The Touch ID sheet and what approving it does, as one piece: the bar's\n * switch and grant chip open it, and so does Command's \"Autonomy is off\"\n * banner (autonomy/AutonomyOffState) — one sheet, one approve path.\n */\nexport interface GrantFlow {\n /**\n * `then`: the switch position to apply after signing, if the new grant allows it.\n * `edit` (3.15): open straight into the scope editor.\n */\n open: (intent: GrantIntent, why: string, then?: AutonomySwitch | null, opts?: { edit?: boolean }) => void;\n /** Render once (the bar does unless its owner passes the flow in). */\n sheet: ReactNode;\n}\n\nexport function useGrantFlow(actions: SurfaceActions): GrantFlow {\n const [sheet, setSheet] = useState<{ intent: GrantIntent; then: AutonomySwitch | null; why: string; edit: boolean } | null>(null);\n\n function approve(draft: AuthorityGrantDraft): void {\n if (!sheet) return;\n const { then } = sheet;\n // The DRAFT decides grant vs re-approve (B-U1: GET …/draft answers with\n // `kind`, and POST refuses a digest whose kind does not match the action).\n // The sheet's intent is only what the operator clicked; a grant that is no\n // longer continuable is drafted as a new one, and signing it must say so.\n const intent = actionForDraft(draft, sheet.intent);\n actions.act(\n () => postAuthority({ action: intent, draftDigest: draft.digest }),\n intent === 're-approve' ? 'Re-approve the standing grant' : 'Sign a new standing grant',\n {\n onDone: (next) => {\n setSheet(null);\n // Apply the requested position only if the NEW grant allows it.\n if (then && next && SWITCH_RANK[then] <= SWITCH_RANK[next.maxSwitchWithoutGrant] && then !== next.switch) {\n actions.act(() => postAuthority({ action: 'switch', to: then }), `Switch autonomy to ${SWITCH_LABEL[then]}`);\n }\n },\n },\n );\n }\n\n return {\n open: (intent, why, then = null, opts = {}) => setSheet({ intent, then, why, edit: opts.edit === true }),\n sheet: (\n <GrantSheet\n open={sheet !== null}\n intent={sheet?.intent ?? 'grant'}\n then={sheet?.then ?? null}\n why={sheet?.why ?? ''}\n busy={actions.busy}\n actionStatus={actions}\n onApprove={approve}\n onClose={() => setSheet(null)}\n act={actions.act}\n startEditing={sheet?.edit === true}\n />\n ),\n };\n}\n\nexport interface AutonomyBarProps {\n read: OptionalRead<AuthorityStatusV1> | undefined;\n loading: boolean;\n budgetMode: BudgetMode | null;\n actions: SurfaceActions;\n compact: boolean;\n now: number;\n /** A flow shared with the rest of the surface; its owner renders `sheet`. Omitted = the bar's own. */\n grantFlow?: GrantFlow;\n}\n\nexport function AutonomyBar({ read, loading, budgetMode, actions, compact, now, grantFlow }: AutonomyBarProps) {\n const status = read?.value ?? null;\n const ownFlow = useGrantFlow(actions);\n const flow = grantFlow ?? ownFlow;\n /** What the last Stop did (drain count, merges revoked) — shown while stopped. */\n const [stopNote, setStopNote] = useState<string | null>(null);\n const [budgetOpen, setBudgetOpen] = useState(false);\n const unavailable = !status;\n const chip = grantChip(status, now);\n\n function onSwitch(to: AutonomySwitch): void {\n if (!status) return;\n const change = classifySwitch(status, to);\n if (change === 'same') return;\n if (change === 'raise-needs-grant') {\n const paused = status.grant.state === 'paused';\n flow.open(\n paused ? 're-approve' : 'grant',\n paused\n ? `${status.grant.reason ?? 'The grant is paused.'} ${SWITCH_LABEL[to]} needs it re-approved.`\n : `${SWITCH_LABEL[to]} is beyond what the installed grant allows, so it needs a new grant.`,\n to,\n );\n return;\n }\n // Lower, or raise within the grant: straight to the server, no dialog.\n actions.act(() => postAuthority({ action: 'switch', to }), `Switch autonomy to ${SWITCH_LABEL[to]}`);\n }\n\n // ⌘K \"Approve grant…\" opens the SAME flow the chip and the off-state banner do.\n usePaletteCommands({ read, status, budgetMode, actions, chip, onSwitch, openGrant: flow.open });\n\n const options = status ? switchOptions(status) : switchOptions({ switch: 'off', maxSwitchWithoutGrant: 'off' });\n const stopped = status?.kill ?? false;\n const disabled = unavailable || actions.busy || actions.readOnly;\n\n const switchControl = (\n <div className={styles.switchWrap} title={unavailable ? (read?.reason ?? 'Reading autonomy state…') : undefined}>\n {!compact ? <span className={styles.barLabel} aria-hidden=\"true\">Autonomy</span> : null}\n <Segmented<AutonomySwitch>\n size=\"sm\"\n aria-label=\"Autonomy\"\n value={status?.switch ?? 'off'}\n onChange={onSwitch}\n options={options.map((o) => ({\n value: o.value,\n label: (\n <span className={styles.switchOption}>\n {compact ? o.short : o.label}\n {o.needsGrant ? <IconLock className={styles.touchMark} width={12} height={12} aria-hidden=\"true\" /> : null}\n </span>\n ),\n ariaLabel: o.ariaLabel,\n disabled,\n }))}\n />\n </div>\n );\n\n const onStop = () => actions.act(() => postAuthority({ action: 'stop' }), 'Stop the fleet', {\n confirm: stopConfirm(),\n onDone: (next) => setStopNote(stopOutcomeSentence(next)),\n });\n const onResume = () => actions.act(() => postAuthority({ action: 'clear-stop' }), 'Resume the fleet', {\n confirm: RESUME_CONFIRM,\n onDone: () => setStopNote(null),\n });\n const stopButton = stopped\n ? compact\n ? <Button variant=\"subtle\" size=\"sm\" icon={<IconPlay />} iconOnly aria-label=\"Resume the fleet\" disabled={disabled} onClick={onResume} />\n : <Button variant=\"subtle\" size=\"sm\" icon={<IconPlay />} disabled={disabled} onClick={onResume}>Resume</Button>\n : compact\n ? <Button variant=\"danger\" size=\"sm\" icon={<IconStop />} iconOnly aria-label=\"Stop the fleet\" disabled={disabled} onClick={onStop} />\n : <Button variant=\"danger\" size=\"sm\" icon={<IconStop />} disabled={disabled} onClick={onStop}>Stop</Button>;\n\n return (\n <>\n <div className={styles.bar} role=\"toolbar\" aria-label=\"Autonomy controls\" data-loading={loading || undefined}>\n {switchControl}\n {!compact ? (\n <>\n <BudgetPill mode={budgetMode} onOpen={() => setBudgetOpen(true)} />\n <GrantChip chip={chip} onOpen={(intent) => flow.open(intent, chip.detail)} />\n </>\n ) : null}\n {!compact && status?.websitePublication && status.policy?.websitePublication ? (\n <Suspense fallback={null}><WebsitePublicationControl status={status.websitePublication} actions={actions} disabled={disabled} /></Suspense>\n ) : null}\n <span className={styles.barSpacer} />\n {stopButton}\n </div>\n {stopped && stopNote ? <p className={styles.muted} role=\"status\">{stopNote}</p> : null}\n {compact ? (\n <div className={styles.barSecondary}>\n <BudgetPill mode={budgetMode} onOpen={() => setBudgetOpen(true)} />\n <GrantChip chip={chip} onOpen={(intent) => flow.open(intent, chip.detail)} />\n </div>\n ) : null}\n {grantFlow ? null : ownFlow.sheet}\n <BudgetSheet open={budgetOpen} onClose={() => setBudgetOpen(false)} status={status} />\n </>\n );\n}\n\n// ---------------------------------------------------------------------------\n// ⌘K — the palette's autonomy, grant and budget entries\n// ---------------------------------------------------------------------------\n\ninterface PaletteWiring {\n read: OptionalRead<AuthorityStatusV1> | undefined;\n status: AuthorityStatusV1 | null;\n budgetMode: BudgetMode | null;\n actions: SurfaceActions;\n chip: ReturnType<typeof grantChip>;\n onSwitch: (to: AutonomySwitch) => void;\n openGrant: GrantFlow['open'];\n}\n\n/**\n * Why the bar's controls are disabled right now, in the words the operator\n * needs — or null when they are live. Mirrors `disabled` in AutonomyBar.\n */\nexport function paletteBlock(p: { status: AuthorityStatusV1 | null; reason: string | null; readOnly: boolean; busy: boolean }): string | null {\n if (p.readOnly) return 'Read-only session: this server was started without dispatch, so autonomy cannot be changed from here.';\n if (!p.status) return p.reason ?? 'The autonomy state has not been read yet, so nothing was changed.';\n if (p.busy) return 'Another autonomy action is still running. Try again when it finishes.';\n return null;\n}\n\nfunction usePaletteCommands({ read, status, budgetMode, actions, chip, onSwitch, openGrant }: PaletteWiring): void {\n // Registered only once the authority read has answered (value OR a reason):\n // a command parked while Command mounts must be judged against a real\n // status, never the empty one of the first render.\n const ready = read !== undefined;\n const block = () => paletteBlock({ status, reason: read?.reason ?? null, readOnly: actions.readOnly, busy: actions.busy });\n\n const toSwitch = (to: AutonomySwitch) => () => {\n const why = block();\n if (why || !status) {\n shellNotify(why ?? 'The autonomy state is unknown, so nothing was changed.', 'neutral');\n return;\n }\n if (status.switch === to) {\n shellNotify(`Autonomy is already ${SWITCH_LABEL[to]}.`, 'neutral');\n return;\n }\n // The bar's own click path: lower / raise within the grant → POST;\n // past the grant → the Touch ID sheet, which says why it opened.\n onSwitch(to);\n };\n useCommandHandler('autonomy.off', toSwitch('off'), ready);\n useCommandHandler('autonomy.propose', toSwitch('propose'), ready);\n useCommandHandler('autonomy.autonomous', toSwitch('autonomous'), ready);\n\n useCommandHandler(\n 'autonomy.grant',\n () => {\n const why = block();\n if (why) {\n shellNotify(why, 'neutral');\n return;\n }\n // The chip decides, exactly as a click on it would: nothing to approve\n // while an active grant has days left — say so rather than draft a\n // replacement nobody asked for.\n if (!chip.action) {\n shellNotify(chip.detail, 'neutral');\n return;\n }\n openGrant(chip.action, chip.detail);\n },\n ready,\n );\n\n // 3.14 \"Re-approve grant…\": renew a grant that is still continuable (active,\n // paused, expired) through the SAME sheet — the server drafts it as a\n // re-approval that continues the ladder. Nothing to continue → say so.\n useCommandHandler(\n 'autonomy.reapprove',\n () => {\n const why = block();\n if (why || !status) {\n shellNotify(why ?? 'The autonomy state is unknown, so nothing was changed.', 'neutral');\n return;\n }\n const state = status.grant.state;\n if (state !== 'active' && state !== 'paused' && state !== 'expired') {\n shellNotify('There is no grant to re-approve. Use \"Approve grant…\" to sign a new one.', 'neutral');\n return;\n }\n openGrant(\n 're-approve',\n state === 'active'\n ? `${chip.detail} Re-approving signs a fresh 30 days and continues the rollout from its current stage.`\n : chip.detail,\n );\n },\n ready,\n );\n\n const toBudget = (mode: BudgetMode) => () => {\n // Budget does not need the authority read to be present — only to know\n // the ceiling — but a read-only or busy surface refuses it like the pill.\n if (actions.readOnly || actions.busy) {\n shellNotify(block() ?? 'Budget cannot be changed right now.', 'neutral');\n return;\n }\n if (budgetMode === mode) {\n shellNotify(`Budget is already ${MODE_WORD[mode]}.`, 'neutral');\n return;\n }\n // BudgetSheet's rule: an active grant's mode ceiling disables the modes above it.\n const ceiling = status?.grant.state === 'active' ? status.grant.maxMode : null;\n if (ceiling && modeAboveCeiling(mode, ceiling)) {\n shellNotify(`Your grant allows up to ${MODE_WORD[ceiling]}, so ${MODE_WORD[mode]} is unavailable. A new grant can raise the ceiling.`, 'neutral');\n return;\n }\n actions.act(() => updateBudget({ mode }), `Switch the budget to ${MODE_WORD[mode]}`, {\n onDone: () => shellNotify(`Budget set to ${MODE_WORD[mode]}.`, 'success'),\n });\n };\n useCommandHandler('budget.all-in', toBudget('all-in'), ready);\n useCommandHandler('budget.balanced', toBudget('balanced'), ready);\n useCommandHandler('budget.reserve', toBudget('reserve'), ready);\n}\n\nexport function BudgetPill({ mode, onOpen }: { mode: BudgetMode | null; onOpen: () => void }) {\n return (\n <button type=\"button\" className={styles.pill} aria-haspopup=\"dialog\" onClick={onOpen}>\n <span className={styles.pillLabel}>Budget</span>\n <span>{mode ? MODE_WORD[mode] : '—'}</span>\n <IconChevronDown width={14} height={14} aria-hidden=\"true\" />\n </button>\n );\n}\n\nexport function GrantChip({ chip, onOpen }: { chip: ReturnType<typeof grantChip>; onOpen: (intent: GrantIntent) => void }) {\n const body: ReactNode = (\n <>\n <ChipDot tone={chip.tone} />\n <span className={styles.pillLabel}>Grant</span>\n <span>{chip.label}</span>\n </>\n );\n if (!chip.action) {\n return (\n <span className={styles.chip} data-tone={chip.tone} title={chip.detail} aria-label={`Grant: ${chip.label}. ${chip.detail}`} role=\"status\">\n {body}\n </span>\n );\n }\n const intent = chip.action;\n return (\n <button type=\"button\" className={styles.chip} data-tone={chip.tone} title={chip.detail} aria-haspopup=\"dialog\" onClick={() => onOpen(intent)} aria-label={`Grant: ${chip.label}. ${chip.detail}`}>\n {body}\n </button>\n );\n}\n\nfunction BudgetSheet({ open, onClose, status }: { open: boolean; onClose: () => void; status: AuthorityStatusV1 | null }) {\n const max = status?.grant.state === 'active' ? status.grant.maxMode : null;\n return (\n <Sheet\n open={open}\n onClose={onClose}\n titleId=\"command-budget-sheet\"\n width={560}\n title=\"Budget\"\n description={\n max\n ? `Your grant allows up to ${MODE_WORD[max]}. Autonomy never spends past it, whatever is selected here — moving toward Reserve is always instant.`\n : 'No active grant: autonomy only proposes. The budget still decides which seats it would use.'\n }\n >\n {/* The grant's ceiling disables the modes above it (A9 control, C7 request). */}\n {open ? <BudgetControl maxMode={max} /> : null}\n </Sheet>\n );\n}\n","/**\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, FleetLaneState, 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';\nimport { laneReasonText, localTimes } from './why-seat-model.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 'devin-cli': 'devin',\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 'devin-cli': 'Devin CLI',\n};\n\n/** A lane chip's words: \"Local · off\", \"Grok · 1/2\". The why is a separate line (`laneNotes`). */\nexport function laneChipText(lane: FleetLaneState): { name: string; slots: string } {\n return { name: LANE_LABEL[lane.lane], slots: lane.slots === 0 ? 'off' : `${lane.busy}/${lane.slots}` };\n}\n\nexport interface LaneNote {\n /** The lanes this reason applies to, in strip order. */\n lanes: FleetEngine[];\n /** True when every lane shares it — then it is said once, without names. */\n all: boolean;\n reason: string;\n}\n\n/** A lane's cap reason as the operator reads it (`laneReasonText`); null when it has none. */\nexport function laneReason(lane: FleetLaneState): string | null {\n const reason = lane.capReason?.trim();\n return reason ? laneReasonText(reason) : null;\n}\n\n/**\n * Each distinct lane cap reason ONCE, with the lanes it covers, in the plain\n * words the server already wrote. A dark fleet gives every lane the same sentence; 3.10.0\n * repeated it inside every chip and truncated it there.\n */\nexport function laneNotes(lanes: readonly FleetLaneState[]): LaneNote[] {\n const byReason = new Map<string, FleetEngine[]>();\n for (const lane of lanes) {\n const reason = laneReason(lane);\n if (!reason) continue;\n const list = byReason.get(reason) ?? [];\n list.push(lane.lane);\n byReason.set(reason, list);\n }\n return [...byReason.entries()].map(([reason, covered]) => ({\n lanes: covered,\n all: covered.length === lanes.length && lanes.length > 1,\n reason,\n }));\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', 'devin-cli', '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: `${localTimes(r.hold?.reason ?? 'parked', now)}${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 or elite',\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/**\n * No run of any kind and no proposal at the gates: every chart card on Fleet\n * (live swimlane, gate funnel, refusals, parked) would be an empty state.\n */\nexport function nothingToDraw(fleet: FleetLiveSnapshotV1): boolean {\n return fleet.runs.length === 0 && funnelStages(fleet.funnel).length === 0 && refusalStack(fleet.funnel).total === 0;\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"],"file":"fleet-control.module-DGSw-trA.js"}
@@ -1,2 +0,0 @@
1
- import{C as e,M as t,V as n,a as r,i,t as a,u as o}from"./global-DNJfppDB.js";import{j as s}from"./VerseShared-DADORPwC.js";import{f as c,n as l,t as u}from"./control-queries-Y4Jqwgdu.js";import{c as d,l as f,u as p}from"./fleet-model-CItBbMp1.js";var m=`verse-runtime`,h=`verse-fleet`,g=`verse-local-only`;function _(e,t){return t instanceof a?t.status===404?`This server doesn't have ${e}.`:`${e} answered HTTP ${t.status}.`:`${e} could not be reached.`}function v(e,t){return async n=>{try{let r=t(await i(e,n));return r===null?{value:null,available:!0,reason:`Unrecognized response — update Phantom.`}:{value:r,available:!0,reason:null}}catch(t){if(t instanceof a&&t.status===401||t instanceof DOMException&&t.name===`AbortError`)throw t;return{value:null,available:!1,reason:_(e,t)}}}}var y={key:m,fetch:v(`/api/verse/runtime`,p)},b={key:h,fetch:v(`/api/verse/fleet`,d)},x={key:g,fetch:v(`/api/verse/local-only`,f)};async function S(n,i){let a=e();if(!a)throw new l;let o=await r(n,i,a);return t(),o}async function C(e){let t=await S(`/api/verse/runtime`,{action:e});return n(m),n(h),n(u),t}async function w(e){let t=await S(`/api/verse/local-only`,{enabled:e});return n(g),n(u),t}var T=4e3;function E(e=T){let t=o(y),n=o(b),r=o(c);s(()=>{t(),n(),r()},e)}export{y as a,C as i,b as n,w as o,x as r,E as s,h as t};
2
- //# sourceMappingURL=fleet-queries-DJjcfOmd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fleet-queries-DJjcfOmd.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/autonomy/fleet-queries.ts"],"sourcesContent":["/**\n * routes/verse/autonomy/fleet-queries.ts — the reads and writes behind the\n * local-fleet surfaces: `GET/POST /api/verse/runtime`,\n * `GET/POST /api/verse/local-only`, and `GET /api/verse/fleet`.\n *\n * Same contract as control-queries.ts — reads are QueryDefs consumed through\n * useQuery, writes go through the mutation-token gate and invalidate exactly\n * the keys they affect — with two differences that both come from these three\n * routes landing in parallel with this surface (owners R, L, F):\n *\n * 1. **The reads do not throw on absence.** A server without these routes\n * answers 404, and a 404 means \"this panel has no source yet\", not\n * \"Autonomy is broken\". The panels render a designed degraded state from\n * `OptionalFleetRead.reason`. 401 still propagates: an expired read\n * session is an unauthorized state for the whole surface.\n * 2. **The bodies are narrowed structurally, not cast.** `fleet-model.ts`\n * projects every field, so a name drift between the route and this client\n * degrades to \"unknown\" rather than throwing at render time.\n *\n * Polling: the fleet, runtime and daemon control change independently of\n * page actions. The dedicated console has no daemon SSE, so `useFleetPolling`\n * re-reads them only while this section and the document are visible.\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 { useRefetch } from '../../../data/hooks.js';\nimport { VERSE_CONTROL_KEY, verseControlQuery, VerseControlLockedError } from './control-queries.js';\nimport { usePollWhileVisible } from '../shell/section-visibility.js';\nimport type {\n FleetSnapshot,\n LocalOnlyPolicy,\n LocalOnlyUpdateResult,\n OptionalFleetRead,\n RuntimeAction,\n RuntimeActionResult,\n ServingRuntimeSnapshot,\n} from './fleet-contract.js';\nimport { projectFleet, projectLocalOnly, projectServingRuntime } from './fleet-model.js';\n\nexport const VERSE_RUNTIME_KEY = 'verse-runtime';\nexport const VERSE_FLEET_KEY = 'verse-fleet';\nexport const VERSE_LOCAL_ONLY_KEY = 'verse-local-only';\n\nfunction describeAbsence(path: string, err: unknown): string {\n if (err instanceof ApiError) {\n if (err.status === 404) {\n // A missing route — never read as an idle machine.\n return `This server doesn't have ${path}.`;\n }\n return `${path} answered HTTP ${err.status}.`;\n }\n return `${path} could not be reached.`;\n}\n\n/**\n * One optional read, projected. `value` is null both when the route was absent\n * and when it answered something this client could not narrow — `available`\n * and `reason` are what tell the two apart.\n */\nfunction optionalRead<T>(\n path: string,\n project: (raw: unknown) => T | null,\n): (signal?: AbortSignal) => Promise<OptionalFleetRead<T>> {\n return async (signal) => {\n try {\n const raw = await apiGet<unknown>(path, signal);\n const value = project(raw);\n if (value === null) {\n return {\n value: null,\n available: true,\n // Nothing is shown rather than guessed from an unknown shape.\n reason: 'Unrecognized response — update Phantom.',\n };\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: describeAbsence(path, err) };\n }\n };\n}\n\n/** GET /api/verse/runtime — is the serving runtime up, and what can it do. */\nexport const servingRuntimeQuery: QueryDef<OptionalFleetRead<ServingRuntimeSnapshot>> = {\n key: VERSE_RUNTIME_KEY,\n fetch: optionalRead('/api/verse/runtime', projectServingRuntime),\n};\n\n/** GET /api/verse/fleet — the agents in flight right now. */\nexport const fleetQuery: QueryDef<OptionalFleetRead<FleetSnapshot>> = {\n key: VERSE_FLEET_KEY,\n fetch: optionalRead('/api/verse/fleet', projectFleet),\n};\n\n/** GET /api/verse/local-only — the refusal policy and what it refuses. */\nexport const localOnlyQuery: QueryDef<OptionalFleetRead<LocalOnlyPolicy>> = {\n key: VERSE_LOCAL_ONLY_KEY,\n fetch: optionalRead('/api/verse/local-only', projectLocalOnly),\n};\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 * Start / stop / restart the serving runtime.\n *\n * Every one of these changes what the fleet can do, so all three fleet keys\n * and the control snapshot are invalidated together — a restarted runtime\n * with a stale slot count beside it is exactly the disagreement this surface\n * exists to prevent.\n */\nexport async function runRuntimeAction(action: RuntimeAction): Promise<RuntimeActionResult> {\n const result = await post<RuntimeActionResult>('/api/verse/runtime', { action });\n invalidate(VERSE_RUNTIME_KEY);\n invalidate(VERSE_FLEET_KEY);\n invalidate(VERSE_CONTROL_KEY);\n return result;\n}\n\n/** Turn the local-only refusal on or off. */\nexport async function setLocalOnly(enabled: boolean): Promise<LocalOnlyUpdateResult> {\n const result = await post<LocalOnlyUpdateResult>('/api/verse/local-only', { enabled });\n invalidate(VERSE_LOCAL_ONLY_KEY);\n invalidate(VERSE_CONTROL_KEY);\n return result;\n}\n\n// ---------------------------------------------------------------------------\n// Polling\n// ---------------------------------------------------------------------------\n\n/** Fast enough that \"is it working\" is answered live; slow enough to be free. */\nexport const FLEET_POLL_MS = 4000;\n\n/**\n * Keep runtime, fleet and daemon control reads live while the section and\n * document are visible.\n *\n * Reuse the shell's visibility gate: hidden keep-alive panels stop polling and\n * returning to the section takes an immediate reading. No account or model\n * discovery reads are added.\n */\nexport function useFleetPolling(intervalMs: number = FLEET_POLL_MS): void {\n const refetchRuntime = useRefetch(servingRuntimeQuery);\n const refetchFleet = useRefetch(fleetQuery);\n const refetchControl = useRefetch(verseControlQuery);\n // Dedicated Verse streams carry session/account metadata, not daemon SSE.\n // The Advanced header therefore needs its own visible control read too.\n usePollWhileVisible(() => {\n refetchRuntime();\n refetchFleet();\n refetchControl();\n }, intervalMs);\n}\n"],"mappings":"wPAyCA,IAAa,EAAoB,gBACpB,EAAkB,cAClB,EAAuB,mBAEpC,SAAS,EAAgB,EAAc,EAAsB,CAQ3D,OAPI,aAAe,EACb,EAAI,SAAW,IAEV,4BAA4B,EAAK,GAEnC,GAAG,EAAK,iBAAiB,EAAI,OAAO,GAEtC,GAAG,EAAK,uBACjB,CAOA,SAAS,EACP,EACA,EACyD,CACzD,OAAO,KAAO,IAAW,CACvB,GAAI,CAEF,IAAM,EAAQ,EAAQ,MADJ,EAAgB,EAAM,CAAM,CACrB,EASzB,OARI,IAAU,KACL,CACL,MAAO,KACP,UAAW,GAEX,OAAQ,yCACV,EAEK,CAAE,QAAO,UAAW,GAAM,OAAQ,IAAK,CAChD,OAAS,EAAK,CAEZ,GADI,aAAe,GAAY,EAAI,SAAW,KAC1C,aAAe,cAAgB,EAAI,OAAS,aAAc,MAAM,EACpE,MAAO,CAAE,MAAO,KAAM,UAAW,GAAO,OAAQ,EAAgB,EAAM,CAAG,CAAE,CAC7E,CACF,CACF,CAGA,IAAa,EAA2E,CACtF,IAAK,EACL,MAAO,EAAa,qBAAsB,CAAqB,CACjE,EAGa,EAAyD,CACpE,IAAK,EACL,MAAO,EAAa,mBAAoB,CAAY,CACtD,EAGa,EAA+D,CAC1E,IAAK,EACL,MAAO,EAAa,wBAAyB,CAAgB,CAC/D,EAMA,eAAe,EAAQ,EAAc,EAA2B,CAC9D,IAAM,EAAQ,EAAiB,EAC/B,GAAI,CAAC,EAAO,MAAM,IAAI,EACtB,IAAM,EAAS,MAAM,EAAW,EAAM,EAAM,CAAK,EAEjD,OADA,EAAkB,EACX,CACT,CAUA,eAAsB,EAAiB,EAAqD,CAC1F,IAAM,EAAS,MAAM,EAA0B,qBAAsB,CAAE,QAAO,CAAC,EAI/E,OAHA,EAAW,CAAiB,EAC5B,EAAW,CAAe,EAC1B,EAAW,CAAiB,EACrB,CACT,CAGA,eAAsB,EAAa,EAAkD,CACnF,IAAM,EAAS,MAAM,EAA4B,wBAAyB,CAAE,SAAQ,CAAC,EAGrF,OAFA,EAAW,CAAoB,EAC/B,EAAW,CAAiB,EACrB,CACT,CAOA,IAAa,EAAgB,IAU7B,SAAgB,EAAgB,EAAqB,EAAqB,CACxE,IAAM,EAAiB,EAAW,CAAmB,EAC/C,EAAe,EAAW,CAAU,EACpC,EAAiB,EAAW,CAAiB,EAGnD,MAA0B,CACxB,EAAe,EACf,EAAa,EACb,EAAe,CACjB,EAAG,CAAU,CACf"}
@@ -1,3 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/global-1SED_aTT.css","assets/budget-queries-Cqx4cLpD.js"])))=>i.map(i=>d[i]);
2
- import{t as e}from"./index-K3yNXq5W.js";import{V as t}from"./global-DNJfppDB.js";import{O as n}from"./VerseShared-DADORPwC.js";import{n as r}from"./surface-data-Ds6XBRdM.js";import{n as i}from"./mobile-toast-COhQjzOv.js";import{t as a}from"./mobile-actions-DNFmfzLJ.js";var o={async daemon(t){let{runDaemonAction:n}=await e(async()=>{let{runDaemonAction:e}=await import(`./control-queries-Y4Jqwgdu.js`).then(e=>e.r);return{runDaemonAction:e}},__vite__mapDeps([0])),r=await n(t);return{note:typeof r?.note==`string`&&r.note?r.note:null}},async setBudgetMode(t){let{updateBudget:n}=await e(async()=>{let{updateBudget:e}=await import(`./budget-queries-Cqx4cLpD.js`).then(e=>e.i);return{updateBudget:e}},__vite__mapDeps([1,0]));return await n({mode:t}),{note:null}}};function s(){return o}var c=`verse-control`,l={start:`Fleet starting`,stop:`Fleet stopped`,pause:`Fleet paused`,resume:`Fleet resumed`};function u(){t(c),t(r.fleetLive),n()}function d(e){let t=null;return a({title:e.confirm?.title??`${e.label} the fleet`,consequences:e.confirm?.body??``,confirmLabel:e.confirm?.confirmLabel??e.label,destructive:e.destructive,confirm:e.confirm!==null,run:async()=>{t=(await s().daemon(e.verb)).note},onDone:()=>{u(),i(t??l[e.verb],`success`)}})}var f={running:`Running`,paused:`Paused`,stopped:`Stopped`,blocked:`Blocked`,unknown:`Unknown`},p={start:{title:`Start the fleet?`,body:`Starts the autonomous daemon on your Mac. It picks up work in your enrolled repos and spends from your seats under the current budget mode.`,confirmLabel:`Start fleet`},resume:{title:`Resume the fleet?`,body:`The daemon starts dispatching again: queued work runs and spends from your seats under the current budget mode.`,confirmLabel:`Resume`},stop:{title:`Stop the fleet?`,body:"Stops the daemon by engaging the kill switch. Runs in flight are cut off and the agents’ own write tools refuse too. Only your Mac can release it (`ashlr fleet resume`).",confirmLabel:`Stop fleet`}},m={kind:`daemon`,verb:`pause`,label:`Pause`,confirm:null,destructive:!1},h={kind:`daemon`,verb:`resume`,label:`Resume`,confirm:p.resume,destructive:!1},g={kind:`daemon`,verb:`start`,label:`Start`,confirm:p.start,destructive:!1},_={kind:`daemon`,verb:`stop`,label:`Stop`,confirm:p.stop,destructive:!0};function v(e,t,n){return`${e} ${e===1?t:n}`}function y({control:e,live:t,badge:n}){let r=t?.summary.building??null;if(e?.killSwitch.state===`active`||n?.stopped===!0)return{headline:`stopped`,label:f.stopped,detail:e?.killSwitch.reason||"The kill switch is engaged. Release it on your Mac with `ashlr fleet resume`.",building:r,action:{kind:`open-fleet`,label:`Details`},killEngaged:!0};if(e?.pause.state===`paused`||t?.state===`paused`)return{headline:`paused`,label:f.paused,detail:e?.pause.reason||t?.stateReason||`Dispatch is paused. Nothing new starts until you resume.`,building:r,action:h,killEngaged:!1};if(e?.daemon.running===!1||t?.state===`stopped`)return{headline:`stopped`,label:f.stopped,detail:t?.stateReason||`The fleet daemon is not running on your Mac.`,building:r,action:g,killEngaged:!1};if(t?.state===`dark`||n?.mode===`off`||n?.paused===!0)return{headline:`blocked`,label:f.blocked,detail:t?.stateReason||n?.label||`No standing grant is in force, so the fleet cannot land work.`,building:r,action:{kind:`open-fleet`,label:`See why`},killEngaged:!1};if(t?.state===`running`||t?.state===`idle`||e?.daemon.running===!0){let e=r&&r>0?`${v(r,`run`,`runs`)} building${t?.summary.queued?` · ${t.summary.queued} queued`:``}`:t?.stateReason||`Idle between tasks.`;return{headline:`running`,label:f.running,detail:e,building:r,action:m,killEngaged:!1}}return{headline:`unknown`,label:f.unknown,detail:`Your Mac has not reported the fleet yet.`,building:r,action:null,killEngaged:!1}}function b(e){return!e.killEngaged&&(e.headline===`running`||e.headline===`paused`||e.headline===`blocked`)}export{s as a,d as i,b as n,y as r,_ as t};
3
- //# sourceMappingURL=fleet-state-CyuiXE5B.js.map
@@ -1 +0,0 @@
1
- {"version":3,"mappings":";8QA2CA,IAAI,EAA4B,CAZ9B,MAAM,OAAO,EAAM,CACjB,GAAM,CAAE,qCAAF,IAAE,mBAAoB,MAAM,OAAO,+FACnC,EAAS,MAAM,EAAgB,CAAI,EACzC,MAAO,CAAE,KAAM,OAAO,GAAQ,MAAS,UAAY,EAAO,KAAO,EAAO,KAAO,IAAK,CACtF,EACA,MAAM,cAAc,EAAM,CACxB,GAAM,CAAE,kCAAF,IAAE,gBAAiB,MAAM,OAAO,6FAEtC,OADA,MAAM,EAAa,CAAE,MAAK,CAAC,EACpB,CAAE,KAAM,IAAK,CACtB,CAG8B,EAEhC,SAAgB,GAA0C,CACxD,OAAO,CACT,CC/BA,IAAa,EAAc,gBAErB,EAAkD,CACtD,MAAO,iBACP,KAAM,gBACN,MAAO,eACP,OAAQ,eAC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AAK,WAAa,UAAY,EAAK,WAAa,UAC9G","names":[],"ignoreList":[],"sources":["../../../../../../src/web-ui/routes/verse/mobile/fleet-client.ts","../../../../../../src/web-ui/routes/verse/mobile/fleet-actions.ts","../../../../../../src/web-ui/routes/verse/mobile/fleet-state.ts"],"sourcesContent":["/**\n * routes/verse/mobile/fleet-client.ts — the fleet WRITES the phone makes,\n * behind one small interface.\n *\n * Today every verb is an existing route the workbench already uses:\n *\n * start / stop / pause / resume POST /api/verse/daemon (autonomy/control-queries.ts runDaemonAction)\n * budget mode POST /api/verse/budget (budget/budget-queries.ts updateBudget)\n *\n * The Fleet tab's own control routes are being built alongside this app; when\n * they land, `setMobileFleetClient` swaps the implementation in one place and\n * no screen changes. Reads stay on the shared query cache (the same keys the\n * workbench uses), so a write here refreshes the Mac's own view too.\n *\n * The implementations are dynamic imports: a Pause from Home is rare, and the\n * control and budget modules have no business in the first-paint bundle.\n */\nimport type { BudgetMode } from '../../../../core/routing/types.js';\nimport type { DaemonVerb } from './fleet-state.js';\n\nexport interface FleetActionResult {\n /** The server's own sentence about what happened (\"Paused dispatch.\"), or null. */\n note: string | null;\n}\n\nexport interface MobileFleetClient {\n daemon(verb: DaemonVerb): Promise<FleetActionResult>;\n setBudgetMode(mode: BudgetMode): Promise<FleetActionResult>;\n}\n\nexport const defaultFleetClient: MobileFleetClient = {\n async daemon(verb) {\n const { runDaemonAction } = await import('../autonomy/control-queries.js');\n const result = await runDaemonAction(verb);\n return { note: typeof result?.note === 'string' && result.note ? result.note : null };\n },\n async setBudgetMode(mode) {\n const { updateBudget } = await import('../budget/budget-queries.js');\n await updateBudget({ mode });\n return { note: null };\n },\n};\n\nlet client: MobileFleetClient = defaultFleetClient;\n\nexport function getMobileFleetClient(): MobileFleetClient {\n return client;\n}\n\n/** Swap the implementation (the Fleet tab's routes, or a test fake). Null restores the default. */\nexport function setMobileFleetClient(next: MobileFleetClient | null): void {\n client = next ?? defaultFleetClient;\n}\n","/**\n * routes/verse/mobile/fleet-actions.ts — pressing a fleet button on the phone\n * (Home's one button, the Fleet screen's controls): the guarded path\n * (mobile-actions.ts), the swappable client (fleet-client.ts), then a refresh\n * of every read that shows the fleet — the control aggregate, the live view\n * and activity's autonomy badge — so the new state shows at once.\n */\nimport { invalidate } from '../../../data/cache.js';\nimport { SURFACE_KEYS } from '../command/surface-data.js';\nimport { refreshActivity } from '../shell/useActivity.js';\nimport { getMobileFleetClient } from './fleet-client.js';\nimport type { DaemonVerb, FleetPrimaryAction } from './fleet-state.js';\nimport { runMobileAction } from './mobile-actions.js';\nimport { showMobileToast } from './mobile-toast.js';\n\n/** The workbench's control aggregate key (autonomy/control-queries.ts VERSE_CONTROL_KEY). */\nexport const CONTROL_KEY = 'verse-control';\n\nconst DONE_TEXT: Readonly<Record<DaemonVerb, string>> = {\n start: 'Fleet starting',\n stop: 'Fleet stopped',\n pause: 'Fleet paused',\n resume: 'Fleet resumed',\n};\n\nexport function refreshFleetReads(): void {\n invalidate(CONTROL_KEY);\n invalidate(SURFACE_KEYS.fleetLive);\n void refreshActivity();\n}\n\nexport function runFleetAction(action: Extract<FleetPrimaryAction, { kind: 'daemon' }>): boolean {\n let note: string | null = null;\n return runMobileAction({\n title: action.confirm?.title ?? `${action.label} the fleet`,\n consequences: action.confirm?.body ?? '',\n confirmLabel: action.confirm?.confirmLabel ?? action.label,\n destructive: action.destructive,\n confirm: action.confirm !== null,\n run: async () => {\n note = (await getMobileFleetClient().daemon(action.verb)).note;\n },\n onDone: () => {\n refreshFleetReads();\n showMobileToast(note ?? DONE_TEXT[action.verb], 'success');\n },\n });\n}\n","/**\n * routes/verse/mobile/fleet-state.ts — the fleet in one word and one button,\n * for a phone (Home's top card and the Fleet screen's header). Pure.\n *\n * Four words, from three reads the workbench already makes:\n *\n * control GET /api/verse/control daemon, the narrow pause, the kill switch\n * live GET /api/verse/fleet/live the fleet's own state and reason\n * badge GET /api/verse/activity the autonomy switch (off/propose/autonomous)\n *\n * Stopped the kill switch is engaged, or no daemon is running\n * Paused the daemon-scoped pause is set\n * Blocked the daemon runs but nothing may move: no standing grant, the\n * switch is off, the grant is paused (\"Fleet dark\")\n * Running the daemon runs under a grant (building, or idle between tasks)\n *\n * THE ONE BUTTON only ever does what is safe to do from a pocket:\n * Running → Pause (narrow, instant to undo — no confirmation)\n * Paused → Resume (confirmed: work and spend start again)\n * Stopped, no kill switch → Start (confirmed: starts an autonomous agent)\n * Stopped BY the kill switch → no button. Releasing an emergency stop stays\n * on the Mac (`ashlr fleet resume`); the phone can engage one, never undo it.\n * Blocked → \"See why\" (opens Fleet; a grant is signed on the Mac).\n */\nimport type { FleetLiveSnapshotV1 } from '../../../../core/fleet/fleet-types.js';\nimport type { VerseControlSnapshot } from '../../../../core/verse/control-types.js';\nimport type { VerseAutonomyBadge } from '../../../../core/verse/workbench-types.js';\n\nexport type FleetHeadline = 'running' | 'paused' | 'stopped' | 'blocked' | 'unknown';\n\nexport const HEADLINE_LABEL: Readonly<Record<FleetHeadline, string>> = {\n running: 'Running',\n paused: 'Paused',\n stopped: 'Stopped',\n blocked: 'Blocked',\n unknown: 'Unknown',\n};\n\nexport type DaemonVerb = 'start' | 'stop' | 'pause' | 'resume';\n\nexport interface ConfirmText {\n title: string;\n body: string;\n confirmLabel: string;\n}\n\nexport type FleetPrimaryAction =\n | {\n kind: 'daemon';\n verb: DaemonVerb;\n label: string;\n /** Null = runs without a confirmation sheet (Pause). */\n confirm: ConfirmText | null;\n destructive: boolean;\n }\n | { kind: 'open-fleet'; label: string };\n\nexport interface FleetStateView {\n headline: FleetHeadline;\n label: string;\n /** One sentence: why it is in this state, or what it is doing. */\n detail: string;\n /** Runs building right now; null = unknown. */\n building: number | null;\n action: FleetPrimaryAction | null;\n /** The kill switch is engaged (only the Mac can release it). */\n killEngaged: boolean;\n}\n\nexport interface FleetStateInput {\n control: VerseControlSnapshot | null;\n live: FleetLiveSnapshotV1 | null;\n badge: VerseAutonomyBadge | null;\n}\n\nexport const DAEMON_CONFIRM: Readonly<Record<Exclude<DaemonVerb, 'pause'>, ConfirmText>> = {\n start: {\n title: 'Start the fleet?',\n body: 'Starts the autonomous daemon on your Mac. It picks up work in your enrolled repos and spends from your seats under the current budget mode.',\n confirmLabel: 'Start fleet',\n },\n resume: {\n title: 'Resume the fleet?',\n body: 'The daemon starts dispatching again: queued work runs and spends from your seats under the current budget mode.',\n confirmLabel: 'Resume',\n },\n stop: {\n title: 'Stop the fleet?',\n body: 'Stops the daemon by engaging the kill switch. Runs in flight are cut off and the agents’ own write tools refuse too. Only your Mac can release it (`ashlr fleet resume`).',\n confirmLabel: 'Stop fleet',\n },\n};\n\nexport const PAUSE_ACTION: FleetPrimaryAction = { kind: 'daemon', verb: 'pause', label: 'Pause', confirm: null, destructive: false };\nconst RESUME_ACTION: FleetPrimaryAction = { kind: 'daemon', verb: 'resume', label: 'Resume', confirm: DAEMON_CONFIRM.resume, destructive: false };\nconst START_ACTION: FleetPrimaryAction = { kind: 'daemon', verb: 'start', label: 'Start', confirm: DAEMON_CONFIRM.start, destructive: false };\nexport const STOP_ACTION: FleetPrimaryAction = { kind: 'daemon', verb: 'stop', label: 'Stop', confirm: DAEMON_CONFIRM.stop, destructive: true };\n\nfunction plural(n: number, one: string, many: string): string {\n return `${n} ${n === 1 ? one : many}`;\n}\n\nexport function fleetStateView({ control, live, badge }: FleetStateInput): FleetStateView {\n const building = live?.summary.building ?? null;\n const killEngaged = control?.killSwitch.state === 'active' || badge?.stopped === true;\n\n if (killEngaged) {\n return {\n headline: 'stopped',\n label: HEADLINE_LABEL.stopped,\n detail: control?.killSwitch.reason || 'The kill switch is engaged. Release it on your Mac with `ashlr fleet resume`.',\n building,\n action: { kind: 'open-fleet', label: 'Details' },\n killEngaged: true,\n };\n }\n if (control?.pause.state === 'paused' || live?.state === 'paused') {\n return {\n headline: 'paused',\n label: HEADLINE_LABEL.paused,\n detail: control?.pause.reason || live?.stateReason || 'Dispatch is paused. Nothing new starts until you resume.',\n building,\n action: RESUME_ACTION,\n killEngaged: false,\n };\n }\n if (control?.daemon.running === false || live?.state === 'stopped') {\n return {\n headline: 'stopped',\n label: HEADLINE_LABEL.stopped,\n detail: live?.stateReason || 'The fleet daemon is not running on your Mac.',\n building,\n action: START_ACTION,\n killEngaged: false,\n };\n }\n if (live?.state === 'dark' || badge?.mode === 'off' || badge?.paused === true) {\n return {\n headline: 'blocked',\n label: HEADLINE_LABEL.blocked,\n detail: live?.stateReason || badge?.label || 'No standing grant is in force, so the fleet cannot land work.',\n building,\n action: { kind: 'open-fleet', label: 'See why' },\n killEngaged: false,\n };\n }\n if (live?.state === 'running' || live?.state === 'idle' || control?.daemon.running === true) {\n const detail = building && building > 0\n ? `${plural(building, 'run', 'runs')} building${live?.summary.queued ? ` · ${live.summary.queued} queued` : ''}`\n : live?.stateReason || 'Idle between tasks.';\n return { headline: 'running', label: HEADLINE_LABEL.running, detail, building, action: PAUSE_ACTION, killEngaged: false };\n }\n return {\n headline: 'unknown',\n label: HEADLINE_LABEL.unknown,\n detail: 'Your Mac has not reported the fleet yet.',\n building,\n action: null,\n killEngaged: false,\n };\n}\n\n/** Whether the Fleet screen may offer Stop: never twice, never when nothing runs. */\nexport function canStop(view: FleetStateView): boolean {\n return !view.killEngaged && (view.headline === 'running' || view.headline === 'paused' || view.headline === 'blocked');\n}\n"],"file":"fleet-state-CyuiXE5B.js"}
@@ -1,2 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{s as t}from"./index-K3yNXq5W.js";var n=e(t(),1),r=[`a[href]`,`button:not([disabled])`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`,`);function i(e){return Array.from(e.querySelectorAll(r)).filter(e=>e.offsetParent!==null)}function a({open:e,containerRef:t,onClose:r,initialFocusRef:a}){(0,n.useEffect)(()=>{if(!e)return;let n=document.activeElement;return(a?.current??t.current)?.focus({preventScroll:!0}),()=>{n?.focus?.({preventScroll:!0})}},[e]),(0,n.useEffect)(()=>{if(!e)return;function n(e){if(e.key===`Escape`){e.stopPropagation(),r();return}if(e.key!==`Tab`)return;let n=t.current;if(!n)return;let a=i(n);if(a.length===0)return;let o=a[0],s=a[a.length-1];e.shiftKey&&document.activeElement===o?(e.preventDefault(),s.focus()):!e.shiftKey&&document.activeElement===s&&(e.preventDefault(),o.focus())}return document.addEventListener(`keydown`,n,!0),()=>document.removeEventListener(`keydown`,n,!0)},[e,r])}export{a as t};
2
- //# sourceMappingURL=focus-trap-0hcZQFW9.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"focus-trap-0hcZQFW9.js","names":[],"sources":["../../../../../../src/web-ui/components/primitives/focus-trap.ts"],"sourcesContent":["/**\n * components/primitives/focus-trap.ts — the modal focus contract, extracted\n * from Dialog.tsx so Sheet.tsx (the slide-over overlay) gets exactly the same\n * behavior instead of a second, subtly different implementation:\n *\n * - focus moves into the overlay (or `initialFocusRef`) on open\n * - focus is trapped inside while open (Tab/Shift+Tab wrap)\n * - focus returns to the element that opened it on close\n * - Escape closes\n *\n * Dialog.tsx is unchanged in behavior — it now calls this instead of\n * inlining it. Any future overlay MUST use this rather than hand-rolling a\n * trap (DESIGN.md §3, \"primitives own their accessibility\").\n */\nimport { useEffect, type RefObject } from 'react';\n\nexport const FOCUSABLE_SELECTOR = [\n 'a[href]',\n 'button:not([disabled])',\n 'input:not([disabled])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n '[tabindex]:not([tabindex=\"-1\"])',\n].join(',');\n\n/** Focusable descendants that are actually rendered (offsetParent is null for hidden nodes). */\nexport function focusableWithin(node: HTMLElement): HTMLElement[] {\n return Array.from(node.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR)).filter((el) => el.offsetParent !== null);\n}\n\nexport interface FocusTrapOptions {\n open: boolean;\n containerRef: RefObject<HTMLElement | null>;\n onClose: () => void;\n initialFocusRef?: RefObject<HTMLElement | null>;\n}\n\nexport function useFocusTrap({ open, containerRef, onClose, initialFocusRef }: FocusTrapOptions): void {\n useEffect(() => {\n if (!open) return;\n const previouslyFocused = document.activeElement as HTMLElement | null;\n const target = initialFocusRef?.current ?? containerRef.current;\n target?.focus({ preventScroll: true });\n\n return () => {\n previouslyFocused?.focus?.({ preventScroll: true });\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps -- the refs are refs (stable identity is not the point); only `open` should re-run this.\n }, [open]);\n\n useEffect(() => {\n if (!open) return;\n function onKeyDown(e: KeyboardEvent) {\n if (e.key === 'Escape') {\n e.stopPropagation();\n onClose();\n return;\n }\n if (e.key !== 'Tab') return;\n const node = containerRef.current;\n if (!node) return;\n const focusable = focusableWithin(node);\n if (focusable.length === 0) return;\n const first = focusable[0]!;\n const last = focusable[focusable.length - 1]!;\n if (e.shiftKey && document.activeElement === first) {\n e.preventDefault();\n last.focus();\n } else if (!e.shiftKey && document.activeElement === last) {\n e.preventDefault();\n first.focus();\n }\n }\n document.addEventListener('keydown', onKeyDown, true);\n return () => document.removeEventListener('keydown', onKeyDown, true);\n // eslint-disable-next-line react-hooks/exhaustive-deps -- containerRef is a ref; re-binding on every render would drop in-flight key handling.\n }, [open, onClose]);\n}\n"],"mappings":"0GAgBa,EAAqB,CAChC,UACA,yBACA,wBACA,yBACA,2BACA,iCACF,CAAC,CAAC,KAAK,GAAG,EAGV,SAAgB,EAAgB,EAAkC,CAChE,OAAO,MAAM,KAAK,EAAK,iBAA8B,CAAkB,CAAC,CAAC,CAAC,OAAQ,GAAO,EAAG,eAAiB,IAAI,CACnH,CASA,SAAgB,EAAa,CAAE,OAAM,eAAc,UAAS,mBAA2C,EACrG,EAAA,EAAA,UAAA,KAAgB,CACd,GAAI,CAAC,EAAM,OACX,IAAM,EAAoB,SAAS,cAInC,OAHe,GAAiB,SAAW,EAAa,QAAA,EAChD,MAAM,CAAE,cAAe,EAAK,CAAC,MAExB,CACX,GAAmB,QAAQ,CAAE,cAAe,EAAK,CAAC,CACpD,CAEF,EAAG,CAAC,CAAI,CAAC,GAET,EAAA,EAAA,UAAA,KAAgB,CACd,GAAI,CAAC,EAAM,OACX,SAAS,EAAU,EAAkB,CACnC,GAAI,EAAE,MAAQ,SAAU,CACtB,EAAE,gBAAgB,EAClB,EAAQ,EACR,MACF,CACA,GAAI,EAAE,MAAQ,MAAO,OACrB,IAAM,EAAO,EAAa,QAC1B,GAAI,CAAC,EAAM,OACX,IAAM,EAAY,EAAgB,CAAI,EACtC,GAAI,EAAU,SAAW,EAAG,OAC5B,IAAM,EAAQ,EAAU,GAClB,EAAO,EAAU,EAAU,OAAS,GACtC,EAAE,UAAY,SAAS,gBAAkB,GAC3C,EAAE,eAAe,EACjB,EAAK,MAAM,GACF,CAAC,EAAE,UAAY,SAAS,gBAAkB,IACnD,EAAE,eAAe,EACjB,EAAM,MAAM,EAEhB,CAEA,OADA,SAAS,iBAAiB,UAAW,EAAW,EAAI,MACvC,SAAS,oBAAoB,UAAW,EAAW,EAAI,CAEtE,EAAG,CAAC,EAAM,CAAO,CAAC,CACpB"}
@@ -1,5 +0,0 @@
1
- import{C as e,M as t,O as n,a as r,t as i,w as a}from"./global-DNJfppDB.js";import{r as o}from"./VerseShared-DADORPwC.js";var s=`/api/verse/git`,c=new Set([`VERSE_GIT_NOT_A_REPO`,`VERSE_GIT_REFUSED`]);async function l(e,t){let r=await fetch(e,{method:`GET`,credentials:`same-origin`,headers:{"x-ashlr-read-client":a()},signal:t});if(r.status===401)throw n(),new i(`Read session expired.`,401,e);if(!r.ok){let t=null,n=null;try{let e=await r.json();t=typeof e.error==`string`&&e.error?e.error:null,n=typeof e.code==`string`&&e.code?e.code:null}catch{}throw new i(`GET ${e} failed (HTTP ${r.status}).`,r.status,e,t,n)}return await r.json()}function u(e,t){return l(`${s}/status?root=${encodeURIComponent(e)}`,t)}function d(e,t,n,r){let i=new URLSearchParams({root:e,scope:t});return n!==null&&i.set(`file`,n),l(`${s}/diff?${i.toString()}`,r)}async function f(n,i){let a=e();if(!a)throw new o;let s=await r(n,i,a);return t(),s}function p(e){return f(`${s}/commit`,e)}function m(e){return f(`${s}/push`,{root:e})}function h(e){return f(`${s}/pr`,e)}function g(e){return f(`${s}/pr/merge`,e)}function _(e,t){return f(`${s}/worktree`,{root:e,name:t})}function v(e){return e instanceof i&&e.code!==null&&c.has(e.code)}var y=new Intl.NumberFormat(`en-US`);function b(e){return y.format(Math.max(0,Math.round(e)))}function x(e,t){return`+${b(e)} −${b(t)}`}function S(e,t,n){return`${b(e)} ${e===1?`file`:`files`} changed, ${b(t)} added, ${b(n)} removed`}function C(e){return!!(e.dirty>0||e.ahead>0||e.diffstat.files>0||e.pr&&(e.pr.state===`open`||e.pr.state===`draft`))}function w(e){let t=new Set,n=[];for(let r of e){let e=r.gitRoot??r.root;t.has(e)||(t.add(e),n.push(r))}return n}function T(e){let t=e.branch??`HEAD`,n=e.base??`the default branch`;switch(e.suggested){case`commit`:return{action:`commit`,label:`Commit`,disclosure:`Commit ${b(e.dirty)} changed ${e.dirty===1?`file`:`files`} on ${t}.`};case`push`:return{action:`push`,label:`Push`,disclosure:e.upstream?`Push ${b(e.ahead)} ${e.ahead===1?`commit`:`commits`} on ${t} to ${e.upstream}.`:`Publish ${t} to origin.`};case`create-pr`:return{action:`create-pr`,label:`Create PR`,disclosure:`Open a pull request from ${t} into ${n}${e.upstream===null||e.ahead>0?`, pushing it first`:``}.`};case`merge`:return e.pr?{action:`merge`,label:`Merge`,disclosure:`Squash-merge #${e.pr.number} into ${e.pr.baseRef||n}. Checks passed.`}:null;case`view-pr`:return e.pr?{action:`view-pr`,label:`View PR`,disclosure:`Open #${e.pr.number} on GitHub.`}:null;default:return null}}function E(e){let t=e.branch===null,n=e.branch!==null&&e.base!==null&&e.branch===e.base,r=(e.conflicts??0)>0,i=e.pr!==null&&(e.pr.state===`open`||e.pr.state===`draft`);return[{id:`draft-pr`,label:`Create draft PR…`,disabledReason:t?`HEAD is detached`:n?`You are on ${e.base}`:i?`#${e.pr.number} is already open`:e.prLookup===`unavailable`?"GitHub is not reachable (is `gh` signed in?)":null},{id:`commit`,label:`Commit…`,disabledReason:t?`HEAD is detached`:r?`Resolve the conflicts first`:e.dirty===0?`Nothing to commit`:null},{id:`push`,label:e.upstream?`Push`:`Publish branch`,disabledReason:t?`HEAD is detached`:e.upstream!==null&&e.ahead===0?`Already pushed`:e.headSha===null?`No commits yet`:null},{id:`open-github`,label:`Open on GitHub`,disabledReason:e.pr?null:`No pull request for this branch`},{id:`copy-branch`,label:`Copy branch name`,disabledReason:t?`HEAD is detached`:null},{id:`review`,label:`Review changes`,disabledReason:e.diffstat.files===0&&e.dirty===0?`No changes`:null}]}function D(e,t){let n=e.state===`open`?`Open`:e.state===`draft`?`Draft`:e.state===`merged`?`Merged`:`Closed`,r=null,i=`neutral`;if(e.state===`merged`)i=`merged`;else if(e.state===`closed`)i=`neutral`;else{switch(e.checks){case`passing`:r=t&&t.total>0?`${t.passed}/${t.total} checks passed`:`checks passed`,i=e.mergeable===!1?`danger`:`success`;break;case`failing`:r=t?`${t.failed} of ${t.total} checks failing`:`checks failing`,i=`danger`;break;case`pending`:r=t?`${t.pending} of ${t.total} checks running`:`checks running`,i=`running`;break;case`none`:r=`no checks`;break;default:r=`checks —`}e.mergeable===!1&&(r=r?`${r}, conflicts`:`conflicts`)}let a=[`Pull request #${e.number}`,e.title,n,r].filter(Boolean).join(`, `);return{number:`#${e.number}`,title:e.title,state:n,checks:r,tone:i,label:a}}function O(e){let t=e.headSubject?.trim();if(t)return t;let n=((e.branch??``).split(`/`).pop()??``).replace(/[-_]+/g,` `).trim();return n?n[0].toUpperCase()+n.slice(1):``}function k(e){let t=e.pr;return t?{number:t.number,title:t.title,headSha:t.headSha,headRef:t.headRef||e.branch||``,baseRef:t.baseRef||e.base||``,checks:t.checks,mergeable:t.mergeable,counts:e.prCheckCounts??null}:null}function A(e){let t=e.headSha?e.headSha.slice(0,7):`—`,n=e.counts,r;switch(e.checks){case`passing`:r=n&&n.total>0?`${n.passed}/${n.total} checks passed`:`checks passed`;break;case`failing`:r=n&&n.total>0?`${n.failed} of ${n.total} checks failing`:`checks failing`;break;case`pending`:r=n&&n.total>0?`${n.pending} of ${n.total} checks still running`:`checks still running`;break;case`none`:r=`no checks reported`;break;default:r=`checks not known`}let i=e.mergeable===!0?`no conflicts`:e.mergeable===!1?`has conflicts`:`GitHub has not finished checking for conflicts`,a=`${r}, ${i}.`;return{sha:t,detail:a,text:`Head ${t}, ${a}`,verified:e.checks===`passing`&&e.mergeable===!0&&e.headSha!==null}}function j(e,t){let n=t?.pr??null;return!n||n.number!==e.number||n.state!==`open`?`#${e.number} is no longer an open, ready pull request — close this and check the branch bar.`:n.headSha===e.headSha?n.checks===`passing`?n.mergeable===!0?null:`GitHub no longer reports this head as mergeable — close and reopen to review.`:`Checks on this head are no longer passing — close and reopen once they are.`:`The PR changed since you opened this — new commits landed. Close and reopen to review the new head.`}function M(e){let t=new Map,n=[...e].sort((e,t)=>e.path<t.path?-1:+(e.path>t.path));for(let e of n){let n=e.path.lastIndexOf(`/`),r=n===-1?``:e.path.slice(0,n),i=n===-1?e.path:e.path.slice(n+1),a=t.get(r);a||(a={dir:r,files:[]},t.set(r,a)),a.files.push({...e,name:i})}return[...t.values()]}var N={M:`modified`,A:`added`,D:`deleted`,R:`renamed`,U:`conflicted`};function P(e){return[...e].sort((e,t)=>e.path===t.path?e.line-t.line:e.path<t.path?-1:1).map(e=>{let[t,...n]=e.note.trim().split(`
2
- `);return[`${`${e.path}:${e.line}${e.side===`old`?` (removed line)`:``}`}: ${t??``}`,...n.map(e=>` ${e}`)].join(`
3
- `)}).join(`
4
- `)}function F(e){if(e&&typeof e==`object`){let t=e;if(t.name===`DispatchDisabledError`)return`This server is read-only (started without dispatch), so git actions are off.`;if(t.name===`VerseMutationLockedError`)return`Unlock actions with the mutation token first.`;if(t.status===401)return"The mutation token was rejected. Unlock again with the token `ashlr verse` printed.";if(t.detail)return t.detail;if(t.status===404)return"This server has no git routes yet. Update Phantom and restart `ashlr verse`.";if(t.status===409)return`Git is busy in this repository. Try again in a moment.`}return`The git action failed. The terminal will show why.`}export{h as C,g as S,p as _,F as a,u as b,b as c,E as d,j as f,T as g,D as h,O as i,M as l,k as m,P as n,S as o,A as p,w as r,x as s,N as t,C as u,_ as v,m as w,v as x,d as y};
5
- //# sourceMappingURL=git-model-D2wjF911.js.map