@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.
- package/CHANGELOG.md +13 -1
- package/README.md +1 -1
- package/dist/authority-surface.json +3 -3
- package/dist/build-identity.json +2 -2
- package/dist/core/verse/seats.js +22 -0
- package/dist/core/verse/seats.js.map +1 -1
- package/dist/core/verse/types.d.ts +4 -0
- package/dist/core/verse/types.js.map +1 -1
- package/dist/core/web/public/next/.vite/manifest.json +1583 -1584
- package/dist/core/web/public/next/assets/ActionMenu-ndTVgclw.js +2 -0
- package/dist/core/web/public/next/assets/ActionMenu-ndTVgclw.js.map +1 -0
- package/dist/core/web/public/next/assets/AdoptionPanel-BRI70tCD.js +2 -0
- package/dist/core/web/public/next/assets/AdoptionPanel-BRI70tCD.js.map +1 -0
- package/dist/core/web/public/next/assets/Advanced-CPQDkDp2.js +2 -0
- package/dist/core/web/public/next/assets/Advanced-CPQDkDp2.js.map +1 -0
- package/dist/core/web/public/next/assets/AgentDetailScreen-BajHX_zP.js +2 -0
- package/dist/core/web/public/next/assets/AgentDetailScreen-BajHX_zP.js.map +1 -0
- package/dist/core/web/public/next/assets/AgentToolsSheet-CDRxqBYo.js +2 -0
- package/dist/core/web/public/next/assets/AgentToolsSheet-CDRxqBYo.js.map +1 -0
- package/dist/core/web/public/next/assets/AgentToolsStrip-C11xsaQ1.js +2 -0
- package/dist/core/web/public/next/assets/AgentToolsStrip-C11xsaQ1.js.map +1 -0
- package/dist/core/web/public/next/assets/AgentsScreen-Bh1D3jIW.js +2 -0
- package/dist/core/web/public/next/assets/AgentsScreen-Bh1D3jIW.js.map +1 -0
- package/dist/core/web/public/next/assets/AgentsSection-CoFo2IdX.js +4 -0
- package/dist/core/web/public/next/assets/AgentsSection-CoFo2IdX.js.map +1 -0
- package/dist/core/web/public/next/assets/App-Bk_T4YL5.js +8 -0
- package/dist/core/web/public/next/assets/App-Bk_T4YL5.js.map +1 -0
- package/dist/core/web/public/next/assets/AppsSection-CP10iC5R.js +2 -0
- package/dist/core/web/public/next/assets/AppsSection-CP10iC5R.js.map +1 -0
- package/dist/core/web/public/next/assets/AreaTrend-CLD_T9oq.js +2 -0
- package/dist/core/web/public/next/assets/AreaTrend-CLD_T9oq.js.map +1 -0
- package/dist/core/web/public/next/assets/AutomationsSection-Y7M7MN_E.js +2 -0
- package/dist/core/web/public/next/assets/AutomationsSection-Y7M7MN_E.js.map +1 -0
- package/dist/core/web/public/next/assets/AutonomyOffState-8kk1CmW_.js +3 -0
- package/dist/core/web/public/next/assets/AutonomyOffState-8kk1CmW_.js.map +1 -0
- package/dist/core/web/public/next/assets/AutonomySection-BlJbzQkZ.js +2 -0
- package/dist/core/web/public/next/assets/AutonomySection-BlJbzQkZ.js.map +1 -0
- package/dist/core/web/public/next/assets/AutonomyStatus-g0ZWZmej.js +2 -0
- package/dist/core/web/public/next/assets/AutonomyStatus-g0ZWZmej.js.map +1 -0
- package/dist/core/web/public/next/assets/BranchBar-CLmClvdu.js +2 -0
- package/dist/core/web/public/next/assets/BranchBar-CLmClvdu.js.map +1 -0
- package/dist/core/web/public/next/assets/BrowserPanel-W6c7mdlY.js +7 -0
- package/dist/core/web/public/next/assets/BrowserPanel-W6c7mdlY.js.map +1 -0
- package/dist/core/web/public/next/assets/BudgetControl-DaY0ir4A.js +2 -0
- package/dist/core/web/public/next/assets/BudgetControl-DaY0ir4A.js.map +1 -0
- package/dist/core/web/public/next/assets/Button-CnmMhe43.js +2 -0
- package/dist/core/web/public/next/assets/Button-CnmMhe43.js.map +1 -0
- package/dist/core/web/public/next/assets/CapacityStrip-BtFP9SZH.js +2 -0
- package/dist/core/web/public/next/assets/CapacityStrip-BtFP9SZH.js.map +1 -0
- package/dist/core/web/public/next/assets/ChangesPaneHost-DFhEj__f.js +16 -0
- package/dist/core/web/public/next/assets/ChangesPaneHost-DFhEj__f.js.map +1 -0
- package/dist/core/web/public/next/assets/ChartFrame-CH6RwT4W.js +2 -0
- package/dist/core/web/public/next/assets/ChartFrame-CH6RwT4W.js.map +1 -0
- package/dist/core/web/public/next/assets/ChatPanes-CNkNILza.js +2 -0
- package/dist/core/web/public/next/assets/ChatPanes-CNkNILza.js.map +1 -0
- package/dist/core/web/public/next/assets/ChatResizer-gExEEUeF.js +2 -0
- package/dist/core/web/public/next/assets/ChatResizer-gExEEUeF.js.map +1 -0
- package/dist/core/web/public/next/assets/ChatSection-Dd4HRKYs.js +3 -0
- package/dist/core/web/public/next/assets/ChatSection-Dd4HRKYs.js.map +1 -0
- package/dist/core/web/public/next/assets/ChecksPanel-H13il4xW.js +5 -0
- package/dist/core/web/public/next/assets/ChecksPanel-H13il4xW.js.map +1 -0
- package/dist/core/web/public/next/assets/CloudBudgetForm-DFq1CNXX.js +2 -0
- package/dist/core/web/public/next/assets/CloudBudgetForm-DFq1CNXX.js.map +1 -0
- package/dist/core/web/public/next/assets/CommandPalette-DCMnz2kg.js +3 -0
- package/dist/core/web/public/next/assets/CommandPalette-DCMnz2kg.js.map +1 -0
- package/dist/core/web/public/next/assets/CommandSection-TZ0SOTL5.js +3 -0
- package/dist/core/web/public/next/assets/CommandSection-TZ0SOTL5.js.map +1 -0
- package/dist/core/web/public/next/assets/CommandWorkflowForm-nLzCatdq.js +9 -0
- package/dist/core/web/public/next/assets/CommandWorkflowForm-nLzCatdq.js.map +1 -0
- package/dist/core/web/public/next/assets/CommandWorkflowPicker-DqMWCQgq.js +3 -0
- package/dist/core/web/public/next/assets/CommandWorkflowPicker-DqMWCQgq.js.map +1 -0
- package/dist/core/web/public/next/assets/CompareDialog-CcdO49em.js +4 -0
- package/dist/core/web/public/next/assets/CompareDialog-CcdO49em.js.map +1 -0
- package/dist/core/web/public/next/assets/ComputerControl-Cx6wUJjB.js +2 -0
- package/dist/core/web/public/next/assets/ComputerControl-Cx6wUJjB.js.map +1 -0
- package/dist/core/web/public/next/assets/ConfirmDialog-DHhXN3MZ.js +2 -0
- package/dist/core/web/public/next/assets/ConfirmDialog-DHhXN3MZ.js.map +1 -0
- package/dist/core/web/public/next/assets/DeleteChatDialog-BFCK_nzs.js +2 -0
- package/dist/core/web/public/next/assets/DeleteChatDialog-BFCK_nzs.js.map +1 -0
- package/dist/core/web/public/next/assets/DevinStopDialog-BqZbBJXz.js +2 -0
- package/dist/core/web/public/next/assets/DevinStopDialog-BqZbBJXz.js.map +1 -0
- package/dist/core/web/public/next/assets/Dialog-3jP1MpHx.js +2 -0
- package/dist/core/web/public/next/assets/Dialog-3jP1MpHx.js.map +1 -0
- package/dist/core/web/public/next/assets/DiffPane-DoO6J7Zi.js +2 -0
- package/dist/core/web/public/next/assets/DiffPane-DoO6J7Zi.js.map +1 -0
- package/dist/core/web/public/next/assets/DiffViewer-BAwVPwDR.js +2 -0
- package/dist/core/web/public/next/assets/DiffViewer-BAwVPwDR.js.map +1 -0
- package/dist/core/web/public/next/assets/DockHost-CjJ2Qgns.js +2 -0
- package/dist/core/web/public/next/assets/DockHost-CjJ2Qgns.js.map +1 -0
- package/dist/core/web/public/next/assets/EmptyState-D-hNeIUI.js +2 -0
- package/dist/core/web/public/next/assets/EmptyState-D-hNeIUI.js.map +1 -0
- package/dist/core/web/public/next/assets/Epistemic-XGQD1CWe.js +2 -0
- package/dist/core/web/public/next/assets/Epistemic-XGQD1CWe.js.map +1 -0
- package/dist/core/web/public/next/assets/EvidenceTimeline-Q4ToyRx-.js +2 -0
- package/dist/core/web/public/next/assets/EvidenceTimeline-Q4ToyRx-.js.map +1 -0
- package/dist/core/web/public/next/assets/FilesPane-B3dsl_jy.js +2 -0
- package/dist/core/web/public/next/assets/FilesPane-B3dsl_jy.js.map +1 -0
- package/dist/core/web/public/next/assets/FleetScreen-my0e1e4d.js +2 -0
- package/dist/core/web/public/next/assets/FleetScreen-my0e1e4d.js.map +1 -0
- package/dist/core/web/public/next/assets/FleetSection-BQiayR2p.js +5 -0
- package/dist/core/web/public/next/assets/FleetSection-BQiayR2p.js.map +1 -0
- package/dist/core/web/public/next/assets/FleetWorld-ByS5r87f.js +2 -0
- package/dist/core/web/public/next/assets/FleetWorld-ByS5r87f.js.map +1 -0
- package/dist/core/web/public/next/assets/Funnel-k3RlAJgh.js +2 -0
- package/dist/core/web/public/next/assets/Funnel-k3RlAJgh.js.map +1 -0
- package/dist/core/web/public/next/assets/GearTray-BT2_t3tC.js +2 -0
- package/dist/core/web/public/next/assets/GearTray-BT2_t3tC.js.map +1 -0
- package/dist/core/web/public/next/assets/GitDialogs-DvZCc8lS.js +2 -0
- package/dist/core/web/public/next/assets/GitDialogs-DvZCc8lS.js.map +1 -0
- package/dist/core/web/public/next/assets/GrowthSection-B4_LNyER.js +3 -0
- package/dist/core/web/public/next/assets/GrowthSection-B4_LNyER.js.map +1 -0
- package/dist/core/web/public/next/assets/HandoffDialog-DLOIdiO2.js +2 -0
- package/dist/core/web/public/next/assets/HandoffDialog-DLOIdiO2.js.map +1 -0
- package/dist/core/web/public/next/assets/HomeBody-CQ4h-am3.js +3 -0
- package/dist/core/web/public/next/assets/HomeBody-CQ4h-am3.js.map +1 -0
- package/dist/core/web/public/next/assets/HomeSeats-gyDnTb6A.js +2 -0
- package/dist/core/web/public/next/assets/HomeSeats-gyDnTb6A.js.map +1 -0
- package/dist/core/web/public/next/assets/Input-BsY2wWuf.js +2 -0
- package/dist/core/web/public/next/assets/Input-BsY2wWuf.js.map +1 -0
- package/dist/core/web/public/next/assets/LaunchDialog-D9ilV59e.js +9 -0
- package/dist/core/web/public/next/assets/LaunchDialog-D9ilV59e.js.map +1 -0
- package/dist/core/web/public/next/assets/LeaderCard-Bo-zwhzD.js +2 -0
- package/dist/core/web/public/next/assets/LeaderCard-Bo-zwhzD.js.map +1 -0
- package/dist/core/web/public/next/assets/LeaderConversation-jErDMfJK.js +3 -0
- package/dist/core/web/public/next/assets/LeaderConversation-jErDMfJK.js.map +1 -0
- package/dist/core/web/public/next/assets/LeaderQuestionForm-Ca7LKJAw.js +2 -0
- package/dist/core/web/public/next/assets/LeaderQuestionForm-Ca7LKJAw.js.map +1 -0
- package/dist/core/web/public/next/assets/LeaderScreen-C2tno5vu.js +3 -0
- package/dist/core/web/public/next/assets/LeaderScreen-C2tno5vu.js.map +1 -0
- package/dist/core/web/public/next/assets/LessonsPanel-_nxBVP4d.js +2 -0
- package/dist/core/web/public/next/assets/LessonsPanel-_nxBVP4d.js.map +1 -0
- package/dist/core/web/public/next/assets/LiveTimer-ryxgw4KN.js +2 -0
- package/dist/core/web/public/next/assets/LiveTimer-ryxgw4KN.js.map +1 -0
- package/dist/core/web/public/next/assets/LocalSeatBadge-DVyh2ztW.js +2 -0
- package/dist/core/web/public/next/assets/LocalSeatBadge-DVyh2ztW.js.map +1 -0
- package/dist/core/web/public/next/assets/ManagerStatus-Cw2R03sm.js +2 -0
- package/dist/core/web/public/next/assets/ManagerStatus-Cw2R03sm.js.map +1 -0
- package/dist/core/web/public/next/assets/MatrixHeatmap-BELu50lL.js +2 -0
- package/dist/core/web/public/next/assets/MatrixHeatmap-BELu50lL.js.map +1 -0
- package/dist/core/web/public/next/assets/McpSection-us_SfIak.js +2 -0
- package/dist/core/web/public/next/assets/McpSection-us_SfIak.js.map +1 -0
- package/dist/core/web/public/next/assets/MessageMarkdown-ammWvRzO.js +3 -0
- package/dist/core/web/public/next/assets/MessageMarkdown-ammWvRzO.js.map +1 -0
- package/dist/core/web/public/next/assets/MessageMarkdownRenderer-zIlbR132.js +72 -0
- package/dist/core/web/public/next/assets/MessageMarkdownRenderer-zIlbR132.js.map +1 -0
- package/dist/core/web/public/next/assets/Meter-D2_9N9KF.js +2 -0
- package/dist/core/web/public/next/assets/Meter-D2_9N9KF.js.map +1 -0
- package/dist/core/web/public/next/assets/MicButton-Bp7sIi_0.js +2 -0
- package/dist/core/web/public/next/assets/MicButton-Bp7sIi_0.js.map +1 -0
- package/dist/core/web/public/next/assets/MindSection-BJN17JfK.js +3 -0
- package/dist/core/web/public/next/assets/MindSection-BJN17JfK.js.map +1 -0
- package/dist/core/web/public/next/assets/MobileComposer-DPNMqkN1.js +2 -0
- package/dist/core/web/public/next/assets/MobileComposer-DPNMqkN1.js.map +1 -0
- package/dist/core/web/public/next/assets/MobileGuardSheet-BawTdLal.js +2 -0
- package/dist/core/web/public/next/assets/MobileGuardSheet-BawTdLal.js.map +1 -0
- package/dist/core/web/public/next/assets/MobileRuntime-BnW77ZlA.js +3 -0
- package/dist/core/web/public/next/assets/MobileRuntime-BnW77ZlA.js.map +1 -0
- package/dist/core/web/public/next/assets/MoreScreen-Cy0lbfdC.js +2 -0
- package/dist/core/web/public/next/assets/MoreScreen-Cy0lbfdC.js.map +1 -0
- package/dist/core/web/public/next/assets/MultiModelBar-D1pOYO9H.js +7 -0
- package/dist/core/web/public/next/assets/MultiModelBar-D1pOYO9H.js.map +1 -0
- package/dist/core/web/public/next/assets/MutationTokenDialog-DJLMI0wL.js +2 -0
- package/dist/core/web/public/next/assets/MutationTokenDialog-DJLMI0wL.js.map +1 -0
- package/dist/core/web/public/next/assets/NeedsYouDrawer-BV0Wnxqb.js +3 -0
- package/dist/core/web/public/next/assets/NeedsYouDrawer-BV0Wnxqb.js.map +1 -0
- package/dist/core/web/public/next/assets/NeedsYouList-BLo7mHJZ.js +2 -0
- package/dist/core/web/public/next/assets/NeedsYouList-BLo7mHJZ.js.map +1 -0
- package/dist/core/web/public/next/assets/NeedsYouScreen-BB4WQPCz.js +3 -0
- package/dist/core/web/public/next/assets/NeedsYouScreen-BB4WQPCz.js.map +1 -0
- package/dist/core/web/public/next/assets/NewAgentScreen-DnkcoZnI.js +2 -0
- package/dist/core/web/public/next/assets/NewAgentScreen-DnkcoZnI.js.map +1 -0
- package/dist/core/web/public/next/assets/NewChatDialog-fIice19Y.js +4 -0
- package/dist/core/web/public/next/assets/NewChatDialog-fIice19Y.js.map +1 -0
- package/dist/core/web/public/next/assets/OnboardingFlow-Z1OFbM_b.js +3 -0
- package/dist/core/web/public/next/assets/OnboardingFlow-Z1OFbM_b.js.map +1 -0
- package/dist/core/web/public/next/assets/OnboardingGate-DbxtRZHQ.js +3 -0
- package/dist/core/web/public/next/assets/OnboardingGate-DbxtRZHQ.js.map +1 -0
- package/dist/core/web/public/next/assets/OutcomesPanel-CIotCgM8.js +5 -0
- package/dist/core/web/public/next/assets/OutcomesPanel-CIotCgM8.js.map +1 -0
- package/dist/core/web/public/next/assets/PlaybooksSection-CBZ5-fqn.js +9 -0
- package/dist/core/web/public/next/assets/PlaybooksSection-CBZ5-fqn.js.map +1 -0
- package/dist/core/web/public/next/assets/PowerStatus-BsdkvJQW.js +2 -0
- package/dist/core/web/public/next/assets/PowerStatus-BsdkvJQW.js.map +1 -0
- package/dist/core/web/public/next/assets/PreviewPane-BCb-5icE.js +2 -0
- package/dist/core/web/public/next/assets/PreviewPane-BCb-5icE.js.map +1 -0
- package/dist/core/web/public/next/assets/ProactiveAgents-50Cy3lvb.js +2 -0
- package/dist/core/web/public/next/assets/ProactiveAgents-50Cy3lvb.js.map +1 -0
- package/dist/core/web/public/next/assets/ProviderLogo-BiNHsoC2.js +2 -0
- package/dist/core/web/public/next/assets/ProviderLogo-BiNHsoC2.js.map +1 -0
- package/dist/core/web/public/next/assets/RailStatus-D7p51XPy.js +2 -0
- package/dist/core/web/public/next/assets/RailStatus-D7p51XPy.js.map +1 -0
- package/dist/core/web/public/next/assets/ReasoningPane-DUDE_hXA.js +2 -0
- package/dist/core/web/public/next/assets/ReasoningPane-DUDE_hXA.js.map +1 -0
- package/dist/core/web/public/next/assets/ReasoningSheet-CnJVB0OR.js +2 -0
- package/dist/core/web/public/next/assets/ReasoningSheet-CnJVB0OR.js.map +1 -0
- package/dist/core/web/public/next/assets/RefreshIndicator-D9b6YBnT.js +2 -0
- package/dist/core/web/public/next/assets/RefreshIndicator-D9b6YBnT.js.map +1 -0
- package/dist/core/web/public/next/assets/RemoteMobileApp-ZFETQAMr.js +2 -0
- package/dist/core/web/public/next/assets/RemoteMobileApp-ZFETQAMr.js.map +1 -0
- package/dist/core/web/public/next/assets/ResetSpendingControl-iXoj2hVK.js +2 -0
- package/dist/core/web/public/next/assets/ResetSpendingControl-iXoj2hVK.js.map +1 -0
- package/dist/core/web/public/next/assets/ResourcePoolConsoleApp-C4lIS4L5.js +7 -0
- package/dist/core/web/public/next/assets/ResourcePoolConsoleApp-C4lIS4L5.js.map +1 -0
- package/dist/core/web/public/next/assets/ResourcesChrome-DL2KW5b9.js +3 -0
- package/dist/core/web/public/next/assets/ResourcesChrome-DL2KW5b9.js.map +1 -0
- package/dist/core/web/public/next/assets/ResourcesDrawer-B8ySjGJW.js +3 -0
- package/dist/core/web/public/next/assets/ResourcesDrawer-B8ySjGJW.js.map +1 -0
- package/dist/core/web/public/next/assets/ReviewMenu-CbheDfvg.js +2 -0
- package/dist/core/web/public/next/assets/ReviewMenu-CbheDfvg.js.map +1 -0
- package/dist/core/web/public/next/assets/RouteErrorBoundary-B5zsnh0Y.js +2 -0
- package/dist/core/web/public/next/assets/RouteErrorBoundary-B5zsnh0Y.js.map +1 -0
- package/dist/core/web/public/next/assets/RunInCloudAction-vKNZlxNO.js +2 -0
- package/dist/core/web/public/next/assets/RunInCloudAction-vKNZlxNO.js.map +1 -0
- package/dist/core/web/public/next/assets/RunInDevinAction-DlD1olQi.js +2 -0
- package/dist/core/web/public/next/assets/RunInDevinAction-DlD1olQi.js.map +1 -0
- package/dist/core/web/public/next/assets/SchedulingEvidence-B23dI7qL.js +2 -0
- package/dist/core/web/public/next/assets/SchedulingEvidence-B23dI7qL.js.map +1 -0
- package/dist/core/web/public/next/assets/ScreenHost-1b6bhqKc.js +3 -0
- package/dist/core/web/public/next/assets/ScreenHost-1b6bhqKc.js.map +1 -0
- package/dist/core/web/public/next/assets/SeatSelector-KaCYQ6tC.js +3 -0
- package/dist/core/web/public/next/assets/SeatSelector-KaCYQ6tC.js.map +1 -0
- package/dist/core/web/public/next/assets/Segmented-Bwr3-jew.js +2 -0
- package/dist/core/web/public/next/assets/Segmented-Bwr3-jew.js.map +1 -0
- package/dist/core/web/public/next/assets/Select-CQ5vJHhZ.js +2 -0
- package/dist/core/web/public/next/assets/Select-CQ5vJHhZ.js.map +1 -0
- package/dist/core/web/public/next/assets/SessionGate-Jwl87fDi.js +2 -0
- package/dist/core/web/public/next/assets/SessionGate-Jwl87fDi.js.map +1 -0
- package/dist/core/web/public/next/assets/SessionInsightChip-D1KrjRDV.js +2 -0
- package/dist/core/web/public/next/assets/SessionInsightChip-D1KrjRDV.js.map +1 -0
- package/dist/core/web/public/next/assets/SessionSearch-CvOMX4rZ.js +2 -0
- package/dist/core/web/public/next/assets/SessionSearch-CvOMX4rZ.js.map +1 -0
- package/dist/core/web/public/next/assets/SettingsSection-NNSUAF2L.js +2 -0
- package/dist/core/web/public/next/assets/SettingsSection-NNSUAF2L.js.map +1 -0
- package/dist/core/web/public/next/assets/SetupChecklist-CI8DJUp2.js +2 -0
- package/dist/core/web/public/next/assets/SetupChecklist-CI8DJUp2.js.map +1 -0
- package/dist/core/web/public/next/assets/ShadowDecisions-DauI5_Hf.js +3 -0
- package/dist/core/web/public/next/assets/ShadowDecisions-DauI5_Hf.js.map +1 -0
- package/dist/core/web/public/next/assets/Sheet-CXDU9h9d.js +2 -0
- package/dist/core/web/public/next/assets/Sheet-CXDU9h9d.js.map +1 -0
- package/dist/core/web/public/next/assets/ShortcutsOverlay-o8cXl02-.js +2 -0
- package/dist/core/web/public/next/assets/ShortcutsOverlay-o8cXl02-.js.map +1 -0
- package/dist/core/web/public/next/assets/Sidebar-B5St1EIm.js +3 -0
- package/dist/core/web/public/next/assets/Sidebar-B5St1EIm.js.map +1 -0
- package/dist/core/web/public/next/assets/SkipToContent-a_euRZCd.js +2 -0
- package/dist/core/web/public/next/assets/SkipToContent-a_euRZCd.js.map +1 -0
- package/dist/core/web/public/next/assets/Slider-BNmmHzrQ.js +2 -0
- package/dist/core/web/public/next/assets/Slider-BNmmHzrQ.js.map +1 -0
- package/dist/core/web/public/next/assets/SourcesPane-BOQrUIE5.js +2 -0
- package/dist/core/web/public/next/assets/SourcesPane-BOQrUIE5.js.map +1 -0
- package/dist/core/web/public/next/assets/SourcesPanel-BQ7F7uez.js +2 -0
- package/dist/core/web/public/next/assets/SourcesPanel-BQ7F7uez.js.map +1 -0
- package/dist/core/web/public/next/assets/StatTile-DmZ5xhhy.js +2 -0
- package/dist/core/web/public/next/assets/StatTile-DmZ5xhhy.js.map +1 -0
- package/dist/core/web/public/next/assets/StatusBadge-CqVVJ9Xj.js +2 -0
- package/dist/core/web/public/next/assets/StatusBadge-CqVVJ9Xj.js.map +1 -0
- package/dist/core/web/public/next/assets/StepBand-CQ1lRitg.js +2 -0
- package/dist/core/web/public/next/assets/StepBand-CQ1lRitg.js.map +1 -0
- package/dist/core/web/public/next/assets/Surface-e7ggAeYs.js +2 -0
- package/dist/core/web/public/next/assets/Surface-e7ggAeYs.js.map +1 -0
- package/dist/core/web/public/next/assets/Swimlane-D-U6Gvur.js +2 -0
- package/dist/core/web/public/next/assets/Swimlane-D-U6Gvur.js.map +1 -0
- package/dist/core/web/public/next/assets/Switch-DS4ekIJx.js +2 -0
- package/dist/core/web/public/next/assets/Switch-DS4ekIJx.js.map +1 -0
- package/dist/core/web/public/next/assets/Tag-D8CcAgYv.js +2 -0
- package/dist/core/web/public/next/assets/Tag-D8CcAgYv.js.map +1 -0
- package/dist/core/web/public/next/assets/TaskContext-vX3m4Upe.js +2 -0
- package/dist/core/web/public/next/assets/TaskContext-vX3m4Upe.js.map +1 -0
- package/dist/core/web/public/next/assets/TerminalPane-CVH_qX1y.js +3 -0
- package/dist/core/web/public/next/assets/TerminalPane-CVH_qX1y.js.map +1 -0
- package/dist/core/web/public/next/assets/TerminalPane-gQqRD2jH.js +26 -0
- package/dist/core/web/public/next/assets/TerminalPane-gQqRD2jH.js.map +1 -0
- package/dist/core/web/public/next/assets/ThinkingBlock-COTkLWzv.js +2 -0
- package/dist/core/web/public/next/assets/ThinkingBlock-COTkLWzv.js.map +1 -0
- package/dist/core/web/public/next/assets/UniverseConsoleApp-9nbNl6Fa.js +2 -0
- package/dist/core/web/public/next/assets/UniverseConsoleApp-9nbNl6Fa.js.map +1 -0
- package/dist/core/web/public/next/assets/UniverseView-2YcvYh4k.js +9 -0
- package/dist/core/web/public/next/assets/UniverseView-2YcvYh4k.js.map +1 -0
- package/dist/core/web/public/next/assets/UsageSection-Bp7fhS0A.js +3 -0
- package/dist/core/web/public/next/assets/UsageSection-Bp7fhS0A.js.map +1 -0
- package/dist/core/web/public/next/assets/UsePlaybookAction-Cr8iWr1S.js +2 -0
- package/dist/core/web/public/next/assets/UsePlaybookAction-Cr8iWr1S.js.map +1 -0
- package/dist/core/web/public/next/assets/VerseConsoleApp-DY0SUyQ3.js +3 -0
- package/dist/core/web/public/next/assets/VerseConsoleApp-DY0SUyQ3.js.map +1 -0
- package/dist/core/web/public/next/assets/VerseMobileApp-CBYJT8lb.js +3 -0
- package/dist/core/web/public/next/assets/VerseMobileApp-CBYJT8lb.js.map +1 -0
- package/dist/core/web/public/next/assets/VerseShared-CQLwhtIc.js +2 -0
- package/dist/core/web/public/next/assets/VerseShared-CQLwhtIc.js.map +1 -0
- package/dist/core/web/public/next/assets/VoiceHud-iXBMe6c8.js +2 -0
- package/dist/core/web/public/next/assets/VoiceHud-iXBMe6c8.js.map +1 -0
- package/dist/core/web/public/next/assets/VoiceInput-DOt7Cd50.js +2 -0
- package/dist/core/web/public/next/assets/VoiceInput-DOt7Cd50.js.map +1 -0
- package/dist/core/web/public/next/assets/WebsitePublicationControl-mAFfIdKP.js +2 -0
- package/dist/core/web/public/next/assets/WebsitePublicationControl-mAFfIdKP.js.map +1 -0
- package/dist/core/web/public/next/assets/WikiSection-CyJpYRG1.js +2 -0
- package/dist/core/web/public/next/assets/WikiSection-CyJpYRG1.js.map +1 -0
- package/dist/core/web/public/next/assets/Workspace-BanfFlsx.js +6 -0
- package/dist/core/web/public/next/assets/Workspace-BanfFlsx.js.map +1 -0
- package/dist/core/web/public/next/assets/account-reading-refresh-DBQ5pOe2.js +2 -0
- package/dist/core/web/public/next/assets/account-reading-refresh-DBQ5pOe2.js.map +1 -0
- package/dist/core/web/public/next/assets/actions-ClnKrOaM.js +2 -0
- package/dist/core/web/public/next/assets/actions-ClnKrOaM.js.map +1 -0
- package/dist/core/web/public/next/assets/agent-tools-client-DjJCZuqD.js +2 -0
- package/dist/core/web/public/next/assets/agent-tools-client-DjJCZuqD.js.map +1 -0
- package/dist/core/web/public/next/assets/agents-focus-Cxa5-BmE.js +2 -0
- package/dist/core/web/public/next/assets/agents-focus-Cxa5-BmE.js.map +1 -0
- package/dist/core/web/public/next/assets/app-version-CWyp-1TO.js +2 -0
- package/dist/core/web/public/next/assets/app-version-CWyp-1TO.js.map +1 -0
- package/dist/core/web/public/next/assets/apps-model-DXC2OzJQ.js +2 -0
- package/dist/core/web/public/next/assets/apps-model-DXC2OzJQ.js.map +1 -0
- package/dist/core/web/public/next/assets/ask-seat-B5NoRs7Z.js +2 -0
- package/dist/core/web/public/next/assets/ask-seat-B5NoRs7Z.js.map +1 -0
- package/dist/core/web/public/next/assets/authority-model-CG6x4F2g.js +2 -0
- package/dist/core/web/public/next/assets/authority-model-CG6x4F2g.js.map +1 -0
- package/dist/core/web/public/next/assets/automations-focus-n_E0ptrQ.js +2 -0
- package/dist/core/web/public/next/assets/automations-focus-n_E0ptrQ.js.map +1 -0
- package/dist/core/web/public/next/assets/budget-queries-mxabDs-2.js +2 -0
- package/dist/core/web/public/next/assets/budget-queries-mxabDs-2.js.map +1 -0
- package/dist/core/web/public/next/assets/capacity-strip-model-RdYHz05l.js +2 -0
- package/dist/core/web/public/next/assets/capacity-strip-model-RdYHz05l.js.map +1 -0
- package/dist/core/web/public/next/assets/charts-CQJz_TFu.js +2 -0
- package/dist/core/web/public/next/assets/charts-CQJz_TFu.js.map +1 -0
- package/dist/core/web/public/next/assets/chat-pane-data-YTfa6L7r.js +2 -0
- package/dist/core/web/public/next/assets/chat-pane-data-YTfa6L7r.js.map +1 -0
- package/dist/core/web/public/next/assets/checkpoint-queries-D9VWCI7C.js +2 -0
- package/dist/core/web/public/next/assets/checkpoint-queries-D9VWCI7C.js.map +1 -0
- package/dist/core/web/public/next/assets/cloud-queries-vchaYJ-l.js +2 -0
- package/dist/core/web/public/next/assets/cloud-queries-vchaYJ-l.js.map +1 -0
- package/dist/core/web/public/next/assets/command-catalog-DLxzqia7.js +2 -0
- package/dist/core/web/public/next/assets/command-catalog-DLxzqia7.js.map +1 -0
- package/dist/core/web/public/next/assets/composer-queries-h8sAoPgo.js +2 -0
- package/dist/core/web/public/next/assets/composer-queries-h8sAoPgo.js.map +1 -0
- package/dist/core/web/public/next/assets/connectivity-6ulZbL6r.js +2 -0
- package/dist/core/web/public/next/assets/connectivity-6ulZbL6r.js.map +1 -0
- package/dist/core/web/public/next/assets/context-model-CzczsLFV.js.map +1 -1
- package/dist/core/web/public/next/assets/context-queries-BYapoHoa.js +2 -0
- package/dist/core/web/public/next/assets/context-queries-BYapoHoa.js.map +1 -0
- package/dist/core/web/public/next/assets/control-queries-DiL1qsoC.js +2 -0
- package/dist/core/web/public/next/assets/control-queries-DiL1qsoC.js.map +1 -0
- package/dist/core/web/public/next/assets/copy-setup-CznW8neq.js +2 -0
- package/dist/core/web/public/next/assets/copy-setup-CznW8neq.js.map +1 -0
- package/dist/core/web/public/next/assets/deep-link-C5r-Nqnb.js +2 -0
- package/dist/core/web/public/next/assets/deep-link-C5r-Nqnb.js.map +1 -0
- package/dist/core/web/public/next/assets/desktop-state-B2mH40qm.js +2 -0
- package/dist/core/web/public/next/assets/desktop-state-B2mH40qm.js.map +1 -0
- package/dist/core/web/public/next/assets/device-permissions-CvO5hWML.js +2 -0
- package/dist/core/web/public/next/assets/device-permissions-CvO5hWML.js.map +1 -0
- package/dist/core/web/public/next/assets/devin-queries-kJAtv5oW.js +2 -0
- package/dist/core/web/public/next/assets/devin-queries-kJAtv5oW.js.map +1 -0
- package/dist/core/web/public/next/assets/dock-icons-Bs0rUzI9.js +2 -0
- package/dist/core/web/public/next/assets/dock-icons-Bs0rUzI9.js.map +1 -0
- package/dist/core/web/public/next/assets/dock-panes-BUIP_TFS.js +2 -0
- package/dist/core/web/public/next/assets/dock-panes-BUIP_TFS.js.map +1 -0
- package/dist/core/web/public/next/assets/fleet-control-queries-DZYZtzwX.js +2 -0
- package/dist/core/web/public/next/assets/fleet-control-queries-DZYZtzwX.js.map +1 -0
- package/dist/core/web/public/next/assets/fleet-control.module-CZPBagHA.js +3 -0
- package/dist/core/web/public/next/assets/fleet-control.module-CZPBagHA.js.map +1 -0
- package/dist/core/web/public/next/assets/fleet-queries-kKnJXDte.js +2 -0
- package/dist/core/web/public/next/assets/fleet-queries-kKnJXDte.js.map +1 -0
- package/dist/core/web/public/next/assets/fleet-state-Cl3YEkJr.js +3 -0
- package/dist/core/web/public/next/assets/fleet-state-Cl3YEkJr.js.map +1 -0
- package/dist/core/web/public/next/assets/focus-trap-olnXbwrV.js +2 -0
- package/dist/core/web/public/next/assets/focus-trap-olnXbwrV.js.map +1 -0
- package/dist/core/web/public/next/assets/git-model-BwMfWvDw.js +5 -0
- package/dist/core/web/public/next/assets/git-model-BwMfWvDw.js.map +1 -0
- package/dist/core/web/public/next/assets/global-Bn1GsjsC.js +3 -0
- package/dist/core/web/public/next/assets/global-Bn1GsjsC.js.map +1 -0
- package/dist/core/web/public/next/assets/guarded-action-BplCPV2n.js +3 -0
- package/dist/core/web/public/next/assets/guarded-action-BplCPV2n.js.map +1 -0
- package/dist/core/web/public/next/assets/guarded-runners-B75vYG6r.js +2 -0
- package/dist/core/web/public/next/assets/guarded-runners-B75vYG6r.js.map +1 -0
- package/dist/core/web/public/next/assets/health-queries-jfzFDqr_.js +2 -0
- package/dist/core/web/public/next/assets/health-queries-jfzFDqr_.js.map +1 -0
- package/dist/core/web/public/next/assets/icons-DHiqsdz9.js +2 -0
- package/dist/core/web/public/next/assets/icons-DHiqsdz9.js.map +1 -0
- package/dist/core/web/public/next/assets/index-v3DMReM2.js +11 -0
- package/dist/core/web/public/next/assets/index-v3DMReM2.js.map +1 -0
- package/dist/core/web/public/next/assets/jev-queries-C7lIpBFt.js +2 -0
- package/dist/core/web/public/next/assets/jev-queries-C7lIpBFt.js.map +1 -0
- package/dist/core/web/public/next/assets/ladder-queries-B6ueJUZc.js +2 -0
- package/dist/core/web/public/next/assets/ladder-queries-B6ueJUZc.js.map +1 -0
- package/dist/core/web/public/next/assets/leader-focus-Dew77KS1.js +2 -0
- package/dist/core/web/public/next/assets/leader-focus-Dew77KS1.js.map +1 -0
- package/dist/core/web/public/next/assets/manager-queries-COgqzx48.js +2 -0
- package/dist/core/web/public/next/assets/manager-queries-COgqzx48.js.map +1 -0
- package/dist/core/web/public/next/assets/mobile-actions-zE5-bHJW.js +2 -0
- package/dist/core/web/public/next/assets/mobile-actions-zE5-bHJW.js.map +1 -0
- package/dist/core/web/public/next/assets/mobile-toast-DpLBBlLU.js +2 -0
- package/dist/core/web/public/next/assets/mobile-toast-DpLBBlLU.js.map +1 -0
- package/dist/core/web/public/next/assets/multimodel-flows-vRUnc4E1.js +7 -0
- package/dist/core/web/public/next/assets/multimodel-flows-vRUnc4E1.js.map +1 -0
- package/dist/core/web/public/next/assets/multimodel-queries-EViyKED3.js +2 -0
- package/dist/core/web/public/next/assets/multimodel-queries-EViyKED3.js.map +1 -0
- package/dist/core/web/public/next/assets/mutations-YyGO1TXF.js +2 -0
- package/dist/core/web/public/next/assets/mutations-YyGO1TXF.js.map +1 -0
- package/dist/core/web/public/next/assets/nav-Cw39dV0Z.js +2 -0
- package/dist/core/web/public/next/assets/nav-Cw39dV0Z.js.map +1 -0
- package/dist/core/web/public/next/assets/needs-you-actions-DJw16DEr.js +2 -0
- package/dist/core/web/public/next/assets/needs-you-actions-DJw16DEr.js.map +1 -0
- package/dist/core/web/public/next/assets/needs-you-model-D4Hc76C2.js +2 -0
- package/dist/core/web/public/next/assets/needs-you-model-D4Hc76C2.js.map +1 -0
- package/dist/core/web/public/next/assets/onboarding.module-CL4-EPe7.js +2 -0
- package/dist/core/web/public/next/assets/onboarding.module-CL4-EPe7.js.map +1 -0
- package/dist/core/web/public/next/assets/open-terminal-Cja6XiPm.js +2 -0
- package/dist/core/web/public/next/assets/open-terminal-Cja6XiPm.js.map +1 -0
- package/dist/core/web/public/next/assets/open-terminal-request-Bk1zGcr_.js +2 -0
- package/dist/core/web/public/next/assets/open-terminal-request-Bk1zGcr_.js.map +1 -0
- package/dist/core/web/public/next/assets/outcomes-queries-CgyKDzAe.js +2 -0
- package/dist/core/web/public/next/assets/outcomes-queries-CgyKDzAe.js.map +1 -0
- package/dist/core/web/public/next/assets/overnight-queries-CX_pRDO0.js +2 -0
- package/dist/core/web/public/next/assets/overnight-queries-CX_pRDO0.js.map +1 -0
- package/dist/core/web/public/next/assets/palette-handoff-CoOvrfBN.js +2 -0
- package/dist/core/web/public/next/assets/palette-handoff-CoOvrfBN.js.map +1 -0
- package/dist/core/web/public/next/assets/panes-Okpdx9n7.js +3 -0
- package/dist/core/web/public/next/assets/panes-Okpdx9n7.js.map +1 -0
- package/dist/core/web/public/next/assets/path-display-Btavf0DG.js +2 -0
- package/dist/core/web/public/next/assets/path-display-Btavf0DG.js.map +1 -0
- package/dist/core/web/public/next/assets/playbook-composer-BeK2aEqv.js +2 -0
- package/dist/core/web/public/next/assets/playbook-composer-BeK2aEqv.js.map +1 -0
- package/dist/core/web/public/next/assets/playbook-focus-DWPPmq2q.js +2 -0
- package/dist/core/web/public/next/assets/playbook-focus-DWPPmq2q.js.map +1 -0
- package/dist/core/web/public/next/assets/playbooks-queries-M-lzwRzZ.js +2 -0
- package/dist/core/web/public/next/assets/playbooks-queries-M-lzwRzZ.js.map +1 -0
- package/dist/core/web/public/next/assets/preloaded-rg1exa7V.js +2 -0
- package/dist/core/web/public/next/assets/preloaded-rg1exa7V.js.map +1 -0
- package/dist/core/web/public/next/assets/proactive-queries-0AZeUGQH.js +2 -0
- package/dist/core/web/public/next/assets/proactive-queries-0AZeUGQH.js.map +1 -0
- package/dist/core/web/public/next/assets/pwa-5CGwd4jW.js +2 -0
- package/dist/core/web/public/next/assets/pwa-5CGwd4jW.js.map +1 -0
- package/dist/core/web/public/next/assets/queries-CNxAsjz8.js +2 -0
- package/dist/core/web/public/next/assets/queries-CNxAsjz8.js.map +1 -0
- package/dist/core/web/public/next/assets/question-model-CN9LYX29.js +1 -0
- package/dist/core/web/public/next/assets/reasoning-pref-D5MIzNwW.js +2 -0
- package/dist/core/web/public/next/assets/reasoning-pref-D5MIzNwW.js.map +1 -0
- package/dist/core/web/public/next/assets/remote-session-JK5xGsry.js +3 -0
- package/dist/core/web/public/next/assets/remote-session-JK5xGsry.js.map +1 -0
- package/dist/core/web/public/next/assets/resolved-store-DiWvlH9U.js +2 -0
- package/dist/core/web/public/next/assets/resolved-store-DiWvlH9U.js.map +1 -0
- package/dist/core/web/public/next/assets/resources-queries-BZrsNzJO.js +2 -0
- package/dist/core/web/public/next/assets/resources-queries-BZrsNzJO.js.map +1 -0
- package/dist/core/web/public/next/assets/reveal-anchor-64pxZPhx.js +2 -0
- package/dist/core/web/public/next/assets/reveal-anchor-64pxZPhx.js.map +1 -0
- package/dist/core/web/public/next/assets/sheet-Cs-_T2Cg.js +2 -0
- package/dist/core/web/public/next/assets/sheet-Cs-_T2Cg.js.map +1 -0
- package/dist/core/web/public/next/assets/slots-Dh5sqR3y.js +3 -0
- package/dist/core/web/public/next/assets/slots-Dh5sqR3y.js.map +1 -0
- package/dist/core/web/public/next/assets/sources-queries-BFWOYHo1.js +4 -0
- package/dist/core/web/public/next/assets/sources-queries-BFWOYHo1.js.map +1 -0
- package/dist/core/web/public/next/assets/sse-CwBB4OiD.js +2 -0
- package/dist/core/web/public/next/assets/sse-CwBB4OiD.js.map +1 -0
- package/dist/core/web/public/next/assets/start-chat-C7Q_w-uL.js +3 -0
- package/dist/core/web/public/next/assets/start-chat-C7Q_w-uL.js.map +1 -0
- package/dist/core/web/public/next/assets/surface-data-Ys-VjdGV.js +2 -0
- package/dist/core/web/public/next/assets/surface-data-Ys-VjdGV.js.map +1 -0
- package/dist/core/web/public/next/assets/surface-prefetch-DiZRdDMq.js +2 -0
- package/dist/core/web/public/next/assets/surface-prefetch-DiZRdDMq.js.map +1 -0
- package/dist/core/web/public/next/assets/terminal-client-TU9ZERnP.js +2 -0
- package/dist/core/web/public/next/assets/terminal-client-TU9ZERnP.js.map +1 -0
- package/dist/core/web/public/next/assets/terminal-icons-BkwdmuwH.js +2 -0
- package/dist/core/web/public/next/assets/terminal-icons-BkwdmuwH.js.map +1 -0
- package/dist/core/web/public/next/assets/terminal-view-BiTOFUmq.js +6 -0
- package/dist/core/web/public/next/assets/terminal-view-BiTOFUmq.js.map +1 -0
- package/dist/core/web/public/next/assets/thread-data-5VxhMggu.js +2 -0
- package/dist/core/web/public/next/assets/thread-data-5VxhMggu.js.map +1 -0
- package/dist/core/web/public/next/assets/ui-parts-CVCix814.js +2 -0
- package/dist/core/web/public/next/assets/ui-parts-CVCix814.js.map +1 -0
- package/dist/core/web/public/next/assets/usage-queries-ByCpFK9P.js +2 -0
- package/dist/core/web/public/next/assets/usage-queries-ByCpFK9P.js.map +1 -0
- package/dist/core/web/public/next/assets/use-chat-activity-B1ZQW19T.js +2 -0
- package/dist/core/web/public/next/assets/use-chat-activity-B1ZQW19T.js.map +1 -0
- package/dist/core/web/public/next/assets/use-guarded-action-3IvCXTZ0.js +2 -0
- package/dist/core/web/public/next/assets/use-guarded-action-3IvCXTZ0.js.map +1 -0
- package/dist/core/web/public/next/assets/use-ticker-BWlnfmSI.js +2 -0
- package/dist/core/web/public/next/assets/use-ticker-BWlnfmSI.js.map +1 -0
- package/dist/core/web/public/next/assets/use-token-gate-CRBVO1L3.js +2 -0
- package/dist/core/web/public/next/assets/use-token-gate-CRBVO1L3.js.map +1 -0
- package/dist/core/web/public/next/assets/useAutoSeat-BzuXalSo.js +2 -0
- package/dist/core/web/public/next/assets/useAutoSeat-BzuXalSo.js.map +1 -0
- package/dist/core/web/public/next/assets/useOnboarding-DPW_dVTN.js +2 -0
- package/dist/core/web/public/next/assets/useOnboarding-DPW_dVTN.js.map +1 -0
- package/dist/core/web/public/next/assets/useSeatHealth-_a8KruNn.js +2 -0
- package/dist/core/web/public/next/assets/useSeatHealth-_a8KruNn.js.map +1 -0
- package/dist/core/web/public/next/assets/useSeatsRefresh-BCiYe3ps.js +3 -0
- package/dist/core/web/public/next/assets/useSeatsRefresh-BCiYe3ps.js.map +1 -0
- package/dist/core/web/public/next/assets/useVerseSession-C2hIvtLM.js +2 -0
- package/dist/core/web/public/next/assets/useVerseSession-C2hIvtLM.js.map +1 -0
- package/dist/core/web/public/next/assets/useVerseTranscript-DzGuwUEu.js +2 -0
- package/dist/core/web/public/next/assets/useVerseTranscript-DzGuwUEu.js.map +1 -0
- package/dist/core/web/public/next/assets/verse-bootstrap-query-CsMNjO2n.js +2 -0
- package/dist/core/web/public/next/assets/verse-bootstrap-query-CsMNjO2n.js.map +1 -0
- package/dist/core/web/public/next/assets/verse-icons-CKpZFhbJ.js +2 -0
- package/dist/core/web/public/next/assets/verse-icons-CKpZFhbJ.js.map +1 -0
- package/dist/core/web/public/next/assets/verse-list-channel-PsCfdhY3.js +2 -0
- package/dist/core/web/public/next/assets/verse-list-channel-PsCfdhY3.js.map +1 -0
- package/dist/core/web/public/next/assets/warmup-C33QuyHf.js +3 -0
- package/dist/core/web/public/next/assets/warmup-C33QuyHf.js.map +1 -0
- package/dist/core/web/public/next/assets/wiki-focus-BfuOgZzz.js +2 -0
- package/dist/core/web/public/next/assets/wiki-focus-BfuOgZzz.js.map +1 -0
- package/dist/core/web/public/next/index.html +1 -1
- package/dist/release-dependency-inventory.json +1 -1
- package/docs/QUICKSTART.md +1 -1
- package/package.json +1 -1
- package/dist/core/web/public/next/assets/ActionMenu-D5QGeE3H.js +0 -2
- package/dist/core/web/public/next/assets/ActionMenu-D5QGeE3H.js.map +0 -1
- package/dist/core/web/public/next/assets/AdoptionPanel-BBcCwufW.js +0 -2
- package/dist/core/web/public/next/assets/AdoptionPanel-BBcCwufW.js.map +0 -1
- package/dist/core/web/public/next/assets/Advanced-CHXKhpEg.js +0 -2
- package/dist/core/web/public/next/assets/Advanced-CHXKhpEg.js.map +0 -1
- package/dist/core/web/public/next/assets/AgentDetailScreen-CvMcx8A4.js +0 -2
- package/dist/core/web/public/next/assets/AgentDetailScreen-CvMcx8A4.js.map +0 -1
- package/dist/core/web/public/next/assets/AgentToolsSheet-CznF5xIQ.js +0 -2
- package/dist/core/web/public/next/assets/AgentToolsSheet-CznF5xIQ.js.map +0 -1
- package/dist/core/web/public/next/assets/AgentToolsStrip-Dxx1gQcR.js +0 -2
- package/dist/core/web/public/next/assets/AgentToolsStrip-Dxx1gQcR.js.map +0 -1
- package/dist/core/web/public/next/assets/AgentsScreen-DUpxNrmg.js +0 -2
- package/dist/core/web/public/next/assets/AgentsScreen-DUpxNrmg.js.map +0 -1
- package/dist/core/web/public/next/assets/AgentsSection-Zf7zvCE3.js +0 -4
- package/dist/core/web/public/next/assets/AgentsSection-Zf7zvCE3.js.map +0 -1
- package/dist/core/web/public/next/assets/App-1UUSzR7T.js +0 -8
- package/dist/core/web/public/next/assets/App-1UUSzR7T.js.map +0 -1
- package/dist/core/web/public/next/assets/AppsSection-Dhmj9BfZ.js +0 -2
- package/dist/core/web/public/next/assets/AppsSection-Dhmj9BfZ.js.map +0 -1
- package/dist/core/web/public/next/assets/AreaTrend-0pnayuHW.js +0 -2
- package/dist/core/web/public/next/assets/AreaTrend-0pnayuHW.js.map +0 -1
- package/dist/core/web/public/next/assets/AutomationsSection-DJHfqCSH.js +0 -2
- package/dist/core/web/public/next/assets/AutomationsSection-DJHfqCSH.js.map +0 -1
- package/dist/core/web/public/next/assets/AutonomyOffState-DvrhD-kh.js +0 -3
- package/dist/core/web/public/next/assets/AutonomyOffState-DvrhD-kh.js.map +0 -1
- package/dist/core/web/public/next/assets/AutonomySection-C_b1jYTg.js +0 -2
- package/dist/core/web/public/next/assets/AutonomySection-C_b1jYTg.js.map +0 -1
- package/dist/core/web/public/next/assets/AutonomyStatus-Bi9eXy9X.js +0 -2
- package/dist/core/web/public/next/assets/AutonomyStatus-Bi9eXy9X.js.map +0 -1
- package/dist/core/web/public/next/assets/BranchBar-BJF1S7lm.js +0 -2
- package/dist/core/web/public/next/assets/BranchBar-BJF1S7lm.js.map +0 -1
- package/dist/core/web/public/next/assets/BrowserPanel-CxjS1-Cj.js +0 -7
- package/dist/core/web/public/next/assets/BrowserPanel-CxjS1-Cj.js.map +0 -1
- package/dist/core/web/public/next/assets/BudgetControl-CdmgsIXe.js +0 -2
- package/dist/core/web/public/next/assets/BudgetControl-CdmgsIXe.js.map +0 -1
- package/dist/core/web/public/next/assets/Button-BwccZFT3.js +0 -2
- package/dist/core/web/public/next/assets/Button-BwccZFT3.js.map +0 -1
- package/dist/core/web/public/next/assets/CapacityStrip-uO7TdosV.js +0 -2
- package/dist/core/web/public/next/assets/CapacityStrip-uO7TdosV.js.map +0 -1
- package/dist/core/web/public/next/assets/ChangesPaneHost-BGUpHpCv.js +0 -16
- package/dist/core/web/public/next/assets/ChangesPaneHost-BGUpHpCv.js.map +0 -1
- package/dist/core/web/public/next/assets/ChartFrame-B9KW5zby.js +0 -2
- package/dist/core/web/public/next/assets/ChartFrame-B9KW5zby.js.map +0 -1
- package/dist/core/web/public/next/assets/ChatPanes-CPiguzKc.js +0 -2
- package/dist/core/web/public/next/assets/ChatPanes-CPiguzKc.js.map +0 -1
- package/dist/core/web/public/next/assets/ChatResizer-B-yAYR8o.js +0 -2
- package/dist/core/web/public/next/assets/ChatResizer-B-yAYR8o.js.map +0 -1
- package/dist/core/web/public/next/assets/ChatSection-BJZKNDGv.js +0 -3
- package/dist/core/web/public/next/assets/ChatSection-BJZKNDGv.js.map +0 -1
- package/dist/core/web/public/next/assets/ChecksPanel-BFsZhYWn.js +0 -5
- package/dist/core/web/public/next/assets/ChecksPanel-BFsZhYWn.js.map +0 -1
- package/dist/core/web/public/next/assets/CloudBudgetForm-DqLw2tFo.js +0 -2
- package/dist/core/web/public/next/assets/CloudBudgetForm-DqLw2tFo.js.map +0 -1
- package/dist/core/web/public/next/assets/CommandPalette-QtebfgRg.js +0 -3
- package/dist/core/web/public/next/assets/CommandPalette-QtebfgRg.js.map +0 -1
- package/dist/core/web/public/next/assets/CommandSection-Wp6MF5Fb.js +0 -3
- package/dist/core/web/public/next/assets/CommandSection-Wp6MF5Fb.js.map +0 -1
- package/dist/core/web/public/next/assets/CommandWorkflowForm-D38yCdO1.js +0 -9
- package/dist/core/web/public/next/assets/CommandWorkflowForm-D38yCdO1.js.map +0 -1
- package/dist/core/web/public/next/assets/CommandWorkflowPicker-CEVGRFCH.js +0 -3
- package/dist/core/web/public/next/assets/CommandWorkflowPicker-CEVGRFCH.js.map +0 -1
- package/dist/core/web/public/next/assets/CompareDialog-DETSw31t.js +0 -4
- package/dist/core/web/public/next/assets/CompareDialog-DETSw31t.js.map +0 -1
- package/dist/core/web/public/next/assets/ComputerControl-B-c35LQw.js +0 -2
- package/dist/core/web/public/next/assets/ComputerControl-B-c35LQw.js.map +0 -1
- package/dist/core/web/public/next/assets/ConfirmDialog-DhrRHNHJ.js +0 -2
- package/dist/core/web/public/next/assets/ConfirmDialog-DhrRHNHJ.js.map +0 -1
- package/dist/core/web/public/next/assets/DeleteChatDialog-CTIiuGhb.js +0 -2
- package/dist/core/web/public/next/assets/DeleteChatDialog-CTIiuGhb.js.map +0 -1
- package/dist/core/web/public/next/assets/DevinStopDialog-CF2Mjmru.js +0 -2
- package/dist/core/web/public/next/assets/DevinStopDialog-CF2Mjmru.js.map +0 -1
- package/dist/core/web/public/next/assets/Dialog-CSEatlcb.js +0 -2
- package/dist/core/web/public/next/assets/Dialog-CSEatlcb.js.map +0 -1
- package/dist/core/web/public/next/assets/DiffPane-BryzsWoG.js +0 -2
- package/dist/core/web/public/next/assets/DiffPane-BryzsWoG.js.map +0 -1
- package/dist/core/web/public/next/assets/DiffViewer-DEZ3LdZ5.js +0 -2
- package/dist/core/web/public/next/assets/DiffViewer-DEZ3LdZ5.js.map +0 -1
- package/dist/core/web/public/next/assets/DockHost-DAMZSrU1.js +0 -2
- package/dist/core/web/public/next/assets/DockHost-DAMZSrU1.js.map +0 -1
- package/dist/core/web/public/next/assets/EmptyState-CC-hGvYM.js +0 -2
- package/dist/core/web/public/next/assets/EmptyState-CC-hGvYM.js.map +0 -1
- package/dist/core/web/public/next/assets/Epistemic-D1_SxDcv.js +0 -2
- package/dist/core/web/public/next/assets/Epistemic-D1_SxDcv.js.map +0 -1
- package/dist/core/web/public/next/assets/EvidenceTimeline-BT6ZHJUS.js +0 -2
- package/dist/core/web/public/next/assets/EvidenceTimeline-BT6ZHJUS.js.map +0 -1
- package/dist/core/web/public/next/assets/FilesPane-DJ1GTYZc.js +0 -2
- package/dist/core/web/public/next/assets/FilesPane-DJ1GTYZc.js.map +0 -1
- package/dist/core/web/public/next/assets/FleetScreen-BIxSlbcY.js +0 -2
- package/dist/core/web/public/next/assets/FleetScreen-BIxSlbcY.js.map +0 -1
- package/dist/core/web/public/next/assets/FleetSection-6EAEtsGK.js +0 -5
- package/dist/core/web/public/next/assets/FleetSection-6EAEtsGK.js.map +0 -1
- package/dist/core/web/public/next/assets/FleetWorld-BABuc7YK.js +0 -2
- package/dist/core/web/public/next/assets/FleetWorld-BABuc7YK.js.map +0 -1
- package/dist/core/web/public/next/assets/Funnel-DwSzNMfg.js +0 -2
- package/dist/core/web/public/next/assets/Funnel-DwSzNMfg.js.map +0 -1
- package/dist/core/web/public/next/assets/GearTray-AeVgnUx_.js +0 -2
- package/dist/core/web/public/next/assets/GearTray-AeVgnUx_.js.map +0 -1
- package/dist/core/web/public/next/assets/GitDialogs-Du3CrLiY.js +0 -2
- package/dist/core/web/public/next/assets/GitDialogs-Du3CrLiY.js.map +0 -1
- package/dist/core/web/public/next/assets/GrowthSection-BtEskPjx.js +0 -3
- package/dist/core/web/public/next/assets/GrowthSection-BtEskPjx.js.map +0 -1
- package/dist/core/web/public/next/assets/HandoffDialog-Bdu_v89f.js +0 -2
- package/dist/core/web/public/next/assets/HandoffDialog-Bdu_v89f.js.map +0 -1
- package/dist/core/web/public/next/assets/HomeBody-Bl_sBDxC.js +0 -3
- package/dist/core/web/public/next/assets/HomeBody-Bl_sBDxC.js.map +0 -1
- package/dist/core/web/public/next/assets/HomeSeats-D92ouUxG.js +0 -2
- package/dist/core/web/public/next/assets/HomeSeats-D92ouUxG.js.map +0 -1
- package/dist/core/web/public/next/assets/Input-B1ZD7z6P.js +0 -2
- package/dist/core/web/public/next/assets/Input-B1ZD7z6P.js.map +0 -1
- package/dist/core/web/public/next/assets/LaunchDialog-o777ICAQ.js +0 -9
- package/dist/core/web/public/next/assets/LaunchDialog-o777ICAQ.js.map +0 -1
- package/dist/core/web/public/next/assets/LeaderCard-67ZY5EX3.js +0 -2
- package/dist/core/web/public/next/assets/LeaderCard-67ZY5EX3.js.map +0 -1
- package/dist/core/web/public/next/assets/LeaderConversation-CYCGaHqb.js +0 -3
- package/dist/core/web/public/next/assets/LeaderConversation-CYCGaHqb.js.map +0 -1
- package/dist/core/web/public/next/assets/LeaderQuestionForm-DSq8Mjr3.js +0 -2
- package/dist/core/web/public/next/assets/LeaderQuestionForm-DSq8Mjr3.js.map +0 -1
- package/dist/core/web/public/next/assets/LeaderScreen-B41YS6da.js +0 -3
- package/dist/core/web/public/next/assets/LeaderScreen-B41YS6da.js.map +0 -1
- package/dist/core/web/public/next/assets/LessonsPanel-CSbRQAMO.js +0 -2
- package/dist/core/web/public/next/assets/LessonsPanel-CSbRQAMO.js.map +0 -1
- package/dist/core/web/public/next/assets/LiveTimer-6FQ8Paro.js +0 -2
- package/dist/core/web/public/next/assets/LiveTimer-6FQ8Paro.js.map +0 -1
- package/dist/core/web/public/next/assets/LocalSeatBadge-B3bmC3RZ.js +0 -2
- package/dist/core/web/public/next/assets/LocalSeatBadge-B3bmC3RZ.js.map +0 -1
- package/dist/core/web/public/next/assets/ManagerStatus-D1_IpN3S.js +0 -2
- package/dist/core/web/public/next/assets/ManagerStatus-D1_IpN3S.js.map +0 -1
- package/dist/core/web/public/next/assets/MatrixHeatmap-DbBd0VUX.js +0 -2
- package/dist/core/web/public/next/assets/MatrixHeatmap-DbBd0VUX.js.map +0 -1
- package/dist/core/web/public/next/assets/McpSection-MLYaKMdK.js +0 -2
- package/dist/core/web/public/next/assets/McpSection-MLYaKMdK.js.map +0 -1
- package/dist/core/web/public/next/assets/MessageMarkdown-DivkWqDc.js +0 -3
- package/dist/core/web/public/next/assets/MessageMarkdown-DivkWqDc.js.map +0 -1
- package/dist/core/web/public/next/assets/MessageMarkdownRenderer-2Z7N5PXg.js +0 -72
- package/dist/core/web/public/next/assets/MessageMarkdownRenderer-2Z7N5PXg.js.map +0 -1
- package/dist/core/web/public/next/assets/Meter-B4_l4hIT.js +0 -2
- package/dist/core/web/public/next/assets/Meter-B4_l4hIT.js.map +0 -1
- package/dist/core/web/public/next/assets/MicButton-dGGKsanG.js +0 -2
- package/dist/core/web/public/next/assets/MicButton-dGGKsanG.js.map +0 -1
- package/dist/core/web/public/next/assets/MindSection-C5RcMYBs.js +0 -3
- package/dist/core/web/public/next/assets/MindSection-C5RcMYBs.js.map +0 -1
- package/dist/core/web/public/next/assets/MobileComposer-CWOi367j.js +0 -2
- package/dist/core/web/public/next/assets/MobileComposer-CWOi367j.js.map +0 -1
- package/dist/core/web/public/next/assets/MobileGuardSheet-C2-udp9X.js +0 -2
- package/dist/core/web/public/next/assets/MobileGuardSheet-C2-udp9X.js.map +0 -1
- package/dist/core/web/public/next/assets/MobileRuntime-CAzepCoQ.js +0 -3
- package/dist/core/web/public/next/assets/MobileRuntime-CAzepCoQ.js.map +0 -1
- package/dist/core/web/public/next/assets/MoreScreen-CiPpKtI5.js +0 -2
- package/dist/core/web/public/next/assets/MoreScreen-CiPpKtI5.js.map +0 -1
- package/dist/core/web/public/next/assets/MultiModelBar-enuGMwky.js +0 -7
- package/dist/core/web/public/next/assets/MultiModelBar-enuGMwky.js.map +0 -1
- package/dist/core/web/public/next/assets/MutationTokenDialog-BHP3-C0J.js +0 -2
- package/dist/core/web/public/next/assets/MutationTokenDialog-BHP3-C0J.js.map +0 -1
- package/dist/core/web/public/next/assets/NeedsYouDrawer-CD7v_n9q.js +0 -3
- package/dist/core/web/public/next/assets/NeedsYouDrawer-CD7v_n9q.js.map +0 -1
- package/dist/core/web/public/next/assets/NeedsYouList-BFZQ6grO.js +0 -2
- package/dist/core/web/public/next/assets/NeedsYouList-BFZQ6grO.js.map +0 -1
- package/dist/core/web/public/next/assets/NeedsYouScreen-BR8ycVcp.js +0 -3
- package/dist/core/web/public/next/assets/NeedsYouScreen-BR8ycVcp.js.map +0 -1
- package/dist/core/web/public/next/assets/NewAgentScreen-CJy8iEa_.js +0 -2
- package/dist/core/web/public/next/assets/NewAgentScreen-CJy8iEa_.js.map +0 -1
- package/dist/core/web/public/next/assets/NewChatDialog-pb-sKICH.js +0 -4
- package/dist/core/web/public/next/assets/NewChatDialog-pb-sKICH.js.map +0 -1
- package/dist/core/web/public/next/assets/OnboardingFlow-Ch3LHPGn.js +0 -3
- package/dist/core/web/public/next/assets/OnboardingFlow-Ch3LHPGn.js.map +0 -1
- package/dist/core/web/public/next/assets/OnboardingGate-Dnps_efG.js +0 -3
- package/dist/core/web/public/next/assets/OnboardingGate-Dnps_efG.js.map +0 -1
- package/dist/core/web/public/next/assets/OutcomesPanel-A6Oj6myg.js +0 -5
- package/dist/core/web/public/next/assets/OutcomesPanel-A6Oj6myg.js.map +0 -1
- package/dist/core/web/public/next/assets/PlaybooksSection-DVNfmqev.js +0 -9
- package/dist/core/web/public/next/assets/PlaybooksSection-DVNfmqev.js.map +0 -1
- package/dist/core/web/public/next/assets/PowerStatus-DMlkbPnV.js +0 -2
- package/dist/core/web/public/next/assets/PowerStatus-DMlkbPnV.js.map +0 -1
- package/dist/core/web/public/next/assets/PreviewPane-DIK17_bz.js +0 -2
- package/dist/core/web/public/next/assets/PreviewPane-DIK17_bz.js.map +0 -1
- package/dist/core/web/public/next/assets/ProactiveAgents-B47rMTU7.js +0 -2
- package/dist/core/web/public/next/assets/ProactiveAgents-B47rMTU7.js.map +0 -1
- package/dist/core/web/public/next/assets/ProviderLogo-Dn0rvsyD.js +0 -2
- package/dist/core/web/public/next/assets/ProviderLogo-Dn0rvsyD.js.map +0 -1
- package/dist/core/web/public/next/assets/RailStatus-BJBBQEys.js +0 -2
- package/dist/core/web/public/next/assets/RailStatus-BJBBQEys.js.map +0 -1
- package/dist/core/web/public/next/assets/ReasoningPane-DmgDs3cA.js +0 -2
- package/dist/core/web/public/next/assets/ReasoningPane-DmgDs3cA.js.map +0 -1
- package/dist/core/web/public/next/assets/ReasoningSheet-CLFRx9G6.js +0 -2
- package/dist/core/web/public/next/assets/ReasoningSheet-CLFRx9G6.js.map +0 -1
- package/dist/core/web/public/next/assets/RefreshIndicator-BFx8H_46.js +0 -2
- package/dist/core/web/public/next/assets/RefreshIndicator-BFx8H_46.js.map +0 -1
- package/dist/core/web/public/next/assets/RemoteMobileApp-qwBNChDJ.js +0 -2
- package/dist/core/web/public/next/assets/RemoteMobileApp-qwBNChDJ.js.map +0 -1
- package/dist/core/web/public/next/assets/ResetSpendingControl-cGfrs5-X.js +0 -2
- package/dist/core/web/public/next/assets/ResetSpendingControl-cGfrs5-X.js.map +0 -1
- package/dist/core/web/public/next/assets/ResourcePoolConsoleApp-nq3erSlJ.js +0 -7
- package/dist/core/web/public/next/assets/ResourcePoolConsoleApp-nq3erSlJ.js.map +0 -1
- package/dist/core/web/public/next/assets/ResourcesChrome-MSeQG3Mj.js +0 -3
- package/dist/core/web/public/next/assets/ResourcesChrome-MSeQG3Mj.js.map +0 -1
- package/dist/core/web/public/next/assets/ResourcesDrawer-BoC7GYwG.js +0 -3
- package/dist/core/web/public/next/assets/ResourcesDrawer-BoC7GYwG.js.map +0 -1
- package/dist/core/web/public/next/assets/ReviewMenu-D5hndVj9.js +0 -2
- package/dist/core/web/public/next/assets/ReviewMenu-D5hndVj9.js.map +0 -1
- package/dist/core/web/public/next/assets/RouteErrorBoundary-BnH5bqJi.js +0 -2
- package/dist/core/web/public/next/assets/RouteErrorBoundary-BnH5bqJi.js.map +0 -1
- package/dist/core/web/public/next/assets/RunInCloudAction-DQDSkqCz.js +0 -2
- package/dist/core/web/public/next/assets/RunInCloudAction-DQDSkqCz.js.map +0 -1
- package/dist/core/web/public/next/assets/RunInDevinAction-CFdJy5l3.js +0 -2
- package/dist/core/web/public/next/assets/RunInDevinAction-CFdJy5l3.js.map +0 -1
- package/dist/core/web/public/next/assets/SchedulingEvidence-cjhLWj4K.js +0 -2
- package/dist/core/web/public/next/assets/SchedulingEvidence-cjhLWj4K.js.map +0 -1
- package/dist/core/web/public/next/assets/ScreenHost-CnqVG4RP.js +0 -3
- package/dist/core/web/public/next/assets/ScreenHost-CnqVG4RP.js.map +0 -1
- package/dist/core/web/public/next/assets/SeatSelector-B2ET-Rgm.js +0 -3
- package/dist/core/web/public/next/assets/SeatSelector-B2ET-Rgm.js.map +0 -1
- package/dist/core/web/public/next/assets/Segmented-GENrTVUG.js +0 -2
- package/dist/core/web/public/next/assets/Segmented-GENrTVUG.js.map +0 -1
- package/dist/core/web/public/next/assets/Select-B2u6POo6.js +0 -2
- package/dist/core/web/public/next/assets/Select-B2u6POo6.js.map +0 -1
- package/dist/core/web/public/next/assets/SessionGate-zlW-exWG.js +0 -2
- package/dist/core/web/public/next/assets/SessionGate-zlW-exWG.js.map +0 -1
- package/dist/core/web/public/next/assets/SessionInsightChip-DQkqXYsk.js +0 -2
- package/dist/core/web/public/next/assets/SessionInsightChip-DQkqXYsk.js.map +0 -1
- package/dist/core/web/public/next/assets/SessionSearch-BJDqF4Rt.js +0 -2
- package/dist/core/web/public/next/assets/SessionSearch-BJDqF4Rt.js.map +0 -1
- package/dist/core/web/public/next/assets/SettingsSection-CoLn4KJJ.js +0 -2
- package/dist/core/web/public/next/assets/SettingsSection-CoLn4KJJ.js.map +0 -1
- package/dist/core/web/public/next/assets/SetupChecklist-Ki9UcTtY.js +0 -2
- package/dist/core/web/public/next/assets/SetupChecklist-Ki9UcTtY.js.map +0 -1
- package/dist/core/web/public/next/assets/ShadowDecisions-DLfWcolb.js +0 -3
- package/dist/core/web/public/next/assets/ShadowDecisions-DLfWcolb.js.map +0 -1
- package/dist/core/web/public/next/assets/Sheet-CED3IxZo.js +0 -2
- package/dist/core/web/public/next/assets/Sheet-CED3IxZo.js.map +0 -1
- package/dist/core/web/public/next/assets/ShortcutsOverlay-BeK1SV8X.js +0 -2
- package/dist/core/web/public/next/assets/ShortcutsOverlay-BeK1SV8X.js.map +0 -1
- package/dist/core/web/public/next/assets/Sidebar-KBUaf5aA.js +0 -3
- package/dist/core/web/public/next/assets/Sidebar-KBUaf5aA.js.map +0 -1
- package/dist/core/web/public/next/assets/SkipToContent-DO4pPxV6.js +0 -2
- package/dist/core/web/public/next/assets/SkipToContent-DO4pPxV6.js.map +0 -1
- package/dist/core/web/public/next/assets/Slider-BeeX0lWU.js +0 -2
- package/dist/core/web/public/next/assets/Slider-BeeX0lWU.js.map +0 -1
- package/dist/core/web/public/next/assets/SourcesPane-CZ1CN9FC.js +0 -2
- package/dist/core/web/public/next/assets/SourcesPane-CZ1CN9FC.js.map +0 -1
- package/dist/core/web/public/next/assets/SourcesPanel-CUeMV_T-.js +0 -2
- package/dist/core/web/public/next/assets/SourcesPanel-CUeMV_T-.js.map +0 -1
- package/dist/core/web/public/next/assets/StatTile-D37_al-5.js +0 -2
- package/dist/core/web/public/next/assets/StatTile-D37_al-5.js.map +0 -1
- package/dist/core/web/public/next/assets/StatusBadge-BMhl56NE.js +0 -2
- package/dist/core/web/public/next/assets/StatusBadge-BMhl56NE.js.map +0 -1
- package/dist/core/web/public/next/assets/StepBand-CLijuT1G.js +0 -2
- package/dist/core/web/public/next/assets/StepBand-CLijuT1G.js.map +0 -1
- package/dist/core/web/public/next/assets/Surface-CEoCBSW9.js +0 -2
- package/dist/core/web/public/next/assets/Surface-CEoCBSW9.js.map +0 -1
- package/dist/core/web/public/next/assets/Swimlane-B7_xUvzg.js +0 -2
- package/dist/core/web/public/next/assets/Swimlane-B7_xUvzg.js.map +0 -1
- package/dist/core/web/public/next/assets/Switch-PuYr3f8b.js +0 -2
- package/dist/core/web/public/next/assets/Switch-PuYr3f8b.js.map +0 -1
- package/dist/core/web/public/next/assets/Tag-oGqv6zcN.js +0 -2
- package/dist/core/web/public/next/assets/Tag-oGqv6zcN.js.map +0 -1
- package/dist/core/web/public/next/assets/TaskContext-CJjmqbSt.js +0 -2
- package/dist/core/web/public/next/assets/TaskContext-CJjmqbSt.js.map +0 -1
- package/dist/core/web/public/next/assets/TerminalPane-BNqp9MSl.js +0 -26
- package/dist/core/web/public/next/assets/TerminalPane-BNqp9MSl.js.map +0 -1
- package/dist/core/web/public/next/assets/TerminalPane-Dlu8FdsD.js +0 -3
- package/dist/core/web/public/next/assets/TerminalPane-Dlu8FdsD.js.map +0 -1
- package/dist/core/web/public/next/assets/ThinkingBlock-B2mNZBCC.js +0 -2
- package/dist/core/web/public/next/assets/ThinkingBlock-B2mNZBCC.js.map +0 -1
- package/dist/core/web/public/next/assets/UniverseConsoleApp-Cj0IoWeG.js +0 -2
- package/dist/core/web/public/next/assets/UniverseConsoleApp-Cj0IoWeG.js.map +0 -1
- package/dist/core/web/public/next/assets/UniverseView-GtozdsS6.js +0 -9
- package/dist/core/web/public/next/assets/UniverseView-GtozdsS6.js.map +0 -1
- package/dist/core/web/public/next/assets/UsageSection-Dv-i0XoU.js +0 -3
- package/dist/core/web/public/next/assets/UsageSection-Dv-i0XoU.js.map +0 -1
- package/dist/core/web/public/next/assets/UsePlaybookAction-DWaBrjZ9.js +0 -2
- package/dist/core/web/public/next/assets/UsePlaybookAction-DWaBrjZ9.js.map +0 -1
- package/dist/core/web/public/next/assets/VerseConsoleApp-BpHiH8HH.js +0 -3
- package/dist/core/web/public/next/assets/VerseConsoleApp-BpHiH8HH.js.map +0 -1
- package/dist/core/web/public/next/assets/VerseMobileApp-DEoCa4uS.js +0 -3
- package/dist/core/web/public/next/assets/VerseMobileApp-DEoCa4uS.js.map +0 -1
- package/dist/core/web/public/next/assets/VerseShared-DADORPwC.js +0 -2
- package/dist/core/web/public/next/assets/VerseShared-DADORPwC.js.map +0 -1
- package/dist/core/web/public/next/assets/VoiceHud-BuwNZdeI.js +0 -2
- package/dist/core/web/public/next/assets/VoiceHud-BuwNZdeI.js.map +0 -1
- package/dist/core/web/public/next/assets/VoiceInput-1iwsyoGc.js +0 -2
- package/dist/core/web/public/next/assets/VoiceInput-1iwsyoGc.js.map +0 -1
- package/dist/core/web/public/next/assets/WebsitePublicationControl-DJ1C8yy9.js +0 -2
- package/dist/core/web/public/next/assets/WebsitePublicationControl-DJ1C8yy9.js.map +0 -1
- package/dist/core/web/public/next/assets/WikiSection-DcpW0DU-.js +0 -2
- package/dist/core/web/public/next/assets/WikiSection-DcpW0DU-.js.map +0 -1
- package/dist/core/web/public/next/assets/Workspace-D3ta5T9o.js +0 -6
- package/dist/core/web/public/next/assets/Workspace-D3ta5T9o.js.map +0 -1
- package/dist/core/web/public/next/assets/account-reading-refresh-CtynCz8X.js +0 -2
- package/dist/core/web/public/next/assets/account-reading-refresh-CtynCz8X.js.map +0 -1
- package/dist/core/web/public/next/assets/actions-egculESS.js +0 -2
- package/dist/core/web/public/next/assets/actions-egculESS.js.map +0 -1
- package/dist/core/web/public/next/assets/agent-tools-client-DFzrpziF.js +0 -2
- package/dist/core/web/public/next/assets/agent-tools-client-DFzrpziF.js.map +0 -1
- package/dist/core/web/public/next/assets/agents-focus-D0puHAIP.js +0 -2
- package/dist/core/web/public/next/assets/agents-focus-D0puHAIP.js.map +0 -1
- package/dist/core/web/public/next/assets/app-version-TdNhCUSm.js +0 -2
- package/dist/core/web/public/next/assets/app-version-TdNhCUSm.js.map +0 -1
- package/dist/core/web/public/next/assets/apps-model-B1ntU_VT.js +0 -2
- package/dist/core/web/public/next/assets/apps-model-B1ntU_VT.js.map +0 -1
- package/dist/core/web/public/next/assets/ask-seat-BqPiITSs.js +0 -2
- package/dist/core/web/public/next/assets/ask-seat-BqPiITSs.js.map +0 -1
- package/dist/core/web/public/next/assets/authority-model-DAbJnNLz.js +0 -2
- package/dist/core/web/public/next/assets/authority-model-DAbJnNLz.js.map +0 -1
- package/dist/core/web/public/next/assets/automations-focus-BPBWBojc.js +0 -2
- package/dist/core/web/public/next/assets/automations-focus-BPBWBojc.js.map +0 -1
- package/dist/core/web/public/next/assets/budget-queries-Cqx4cLpD.js +0 -2
- package/dist/core/web/public/next/assets/budget-queries-Cqx4cLpD.js.map +0 -1
- package/dist/core/web/public/next/assets/capacity-strip-model-CMy8lMbz.js +0 -2
- package/dist/core/web/public/next/assets/capacity-strip-model-CMy8lMbz.js.map +0 -1
- package/dist/core/web/public/next/assets/charts-_ban4d6Y.js +0 -2
- package/dist/core/web/public/next/assets/charts-_ban4d6Y.js.map +0 -1
- package/dist/core/web/public/next/assets/chat-pane-data-CDmMXRE8.js +0 -2
- package/dist/core/web/public/next/assets/chat-pane-data-CDmMXRE8.js.map +0 -1
- package/dist/core/web/public/next/assets/checkpoint-queries-B1VHsJMe.js +0 -2
- package/dist/core/web/public/next/assets/checkpoint-queries-B1VHsJMe.js.map +0 -1
- package/dist/core/web/public/next/assets/cloud-queries-4mUZc0Wi.js +0 -2
- package/dist/core/web/public/next/assets/cloud-queries-4mUZc0Wi.js.map +0 -1
- package/dist/core/web/public/next/assets/command-catalog-4jpWDaev.js +0 -2
- package/dist/core/web/public/next/assets/command-catalog-4jpWDaev.js.map +0 -1
- package/dist/core/web/public/next/assets/composer-queries-COq6LWga.js +0 -2
- package/dist/core/web/public/next/assets/composer-queries-COq6LWga.js.map +0 -1
- package/dist/core/web/public/next/assets/connectivity-CguH-WL9.js +0 -2
- package/dist/core/web/public/next/assets/connectivity-CguH-WL9.js.map +0 -1
- package/dist/core/web/public/next/assets/context-queries-Dk4eAiR7.js +0 -2
- package/dist/core/web/public/next/assets/context-queries-Dk4eAiR7.js.map +0 -1
- package/dist/core/web/public/next/assets/control-queries-Y4Jqwgdu.js +0 -2
- package/dist/core/web/public/next/assets/control-queries-Y4Jqwgdu.js.map +0 -1
- package/dist/core/web/public/next/assets/copy-setup-DCjjGEj_.js +0 -2
- package/dist/core/web/public/next/assets/copy-setup-DCjjGEj_.js.map +0 -1
- package/dist/core/web/public/next/assets/deep-link-Cow_qfT2.js +0 -2
- package/dist/core/web/public/next/assets/deep-link-Cow_qfT2.js.map +0 -1
- package/dist/core/web/public/next/assets/desktop-state-DyB1Kwb6.js +0 -2
- package/dist/core/web/public/next/assets/desktop-state-DyB1Kwb6.js.map +0 -1
- package/dist/core/web/public/next/assets/device-permissions-BMkDC_YU.js +0 -2
- package/dist/core/web/public/next/assets/device-permissions-BMkDC_YU.js.map +0 -1
- package/dist/core/web/public/next/assets/devin-queries-liDbeAM_.js +0 -2
- package/dist/core/web/public/next/assets/devin-queries-liDbeAM_.js.map +0 -1
- package/dist/core/web/public/next/assets/dock-icons-DB-meYrJ.js +0 -2
- package/dist/core/web/public/next/assets/dock-icons-DB-meYrJ.js.map +0 -1
- package/dist/core/web/public/next/assets/dock-panes-DQu78JTG.js +0 -2
- package/dist/core/web/public/next/assets/dock-panes-DQu78JTG.js.map +0 -1
- package/dist/core/web/public/next/assets/fleet-control-queries-GfdKiY9M.js +0 -2
- package/dist/core/web/public/next/assets/fleet-control-queries-GfdKiY9M.js.map +0 -1
- package/dist/core/web/public/next/assets/fleet-control.module-DGSw-trA.js +0 -3
- package/dist/core/web/public/next/assets/fleet-control.module-DGSw-trA.js.map +0 -1
- package/dist/core/web/public/next/assets/fleet-queries-DJjcfOmd.js +0 -2
- package/dist/core/web/public/next/assets/fleet-queries-DJjcfOmd.js.map +0 -1
- package/dist/core/web/public/next/assets/fleet-state-CyuiXE5B.js +0 -3
- package/dist/core/web/public/next/assets/fleet-state-CyuiXE5B.js.map +0 -1
- package/dist/core/web/public/next/assets/focus-trap-0hcZQFW9.js +0 -2
- package/dist/core/web/public/next/assets/focus-trap-0hcZQFW9.js.map +0 -1
- package/dist/core/web/public/next/assets/git-model-D2wjF911.js +0 -5
- package/dist/core/web/public/next/assets/git-model-D2wjF911.js.map +0 -1
- package/dist/core/web/public/next/assets/global-DNJfppDB.js +0 -3
- package/dist/core/web/public/next/assets/global-DNJfppDB.js.map +0 -1
- package/dist/core/web/public/next/assets/guarded-action-Nda__rw2.js +0 -3
- package/dist/core/web/public/next/assets/guarded-action-Nda__rw2.js.map +0 -1
- package/dist/core/web/public/next/assets/guarded-runners-BkTJrBaM.js +0 -2
- package/dist/core/web/public/next/assets/guarded-runners-BkTJrBaM.js.map +0 -1
- package/dist/core/web/public/next/assets/health-queries-Cj48Vjn3.js +0 -2
- package/dist/core/web/public/next/assets/health-queries-Cj48Vjn3.js.map +0 -1
- package/dist/core/web/public/next/assets/icons-CAPwjND9.js +0 -2
- package/dist/core/web/public/next/assets/icons-CAPwjND9.js.map +0 -1
- package/dist/core/web/public/next/assets/index-K3yNXq5W.js +0 -11
- package/dist/core/web/public/next/assets/index-K3yNXq5W.js.map +0 -1
- package/dist/core/web/public/next/assets/jev-queries-DAqcHbzn.js +0 -2
- package/dist/core/web/public/next/assets/jev-queries-DAqcHbzn.js.map +0 -1
- package/dist/core/web/public/next/assets/ladder-queries-LwRL-hPM.js +0 -2
- package/dist/core/web/public/next/assets/ladder-queries-LwRL-hPM.js.map +0 -1
- package/dist/core/web/public/next/assets/leader-focus-CW1--6IE.js +0 -2
- package/dist/core/web/public/next/assets/leader-focus-CW1--6IE.js.map +0 -1
- package/dist/core/web/public/next/assets/manager-queries-Bk9k8S75.js +0 -2
- package/dist/core/web/public/next/assets/manager-queries-Bk9k8S75.js.map +0 -1
- package/dist/core/web/public/next/assets/mobile-actions-DNFmfzLJ.js +0 -2
- package/dist/core/web/public/next/assets/mobile-actions-DNFmfzLJ.js.map +0 -1
- package/dist/core/web/public/next/assets/mobile-toast-COhQjzOv.js +0 -2
- package/dist/core/web/public/next/assets/mobile-toast-COhQjzOv.js.map +0 -1
- package/dist/core/web/public/next/assets/multimodel-flows-D7fok2lb.js +0 -7
- package/dist/core/web/public/next/assets/multimodel-flows-D7fok2lb.js.map +0 -1
- package/dist/core/web/public/next/assets/multimodel-queries-ymdJE1rw.js +0 -2
- package/dist/core/web/public/next/assets/multimodel-queries-ymdJE1rw.js.map +0 -1
- package/dist/core/web/public/next/assets/mutations-ufctr3Qo.js +0 -2
- package/dist/core/web/public/next/assets/mutations-ufctr3Qo.js.map +0 -1
- package/dist/core/web/public/next/assets/nav-C9gyDlC8.js +0 -2
- package/dist/core/web/public/next/assets/nav-C9gyDlC8.js.map +0 -1
- package/dist/core/web/public/next/assets/needs-you-actions-BOhGqVAj.js +0 -2
- package/dist/core/web/public/next/assets/needs-you-actions-BOhGqVAj.js.map +0 -1
- package/dist/core/web/public/next/assets/needs-you-model-D2Ca_32M.js +0 -2
- package/dist/core/web/public/next/assets/needs-you-model-D2Ca_32M.js.map +0 -1
- package/dist/core/web/public/next/assets/onboarding.module-BbaZiN3t.js +0 -2
- package/dist/core/web/public/next/assets/onboarding.module-BbaZiN3t.js.map +0 -1
- package/dist/core/web/public/next/assets/open-terminal-Cb4A4EXY.js +0 -2
- package/dist/core/web/public/next/assets/open-terminal-Cb4A4EXY.js.map +0 -1
- package/dist/core/web/public/next/assets/open-terminal-request-pLC3McuS.js +0 -2
- package/dist/core/web/public/next/assets/open-terminal-request-pLC3McuS.js.map +0 -1
- package/dist/core/web/public/next/assets/outcomes-queries-Bv0Q9370.js +0 -2
- package/dist/core/web/public/next/assets/outcomes-queries-Bv0Q9370.js.map +0 -1
- package/dist/core/web/public/next/assets/overnight-queries-BtQYJPJq.js +0 -2
- package/dist/core/web/public/next/assets/overnight-queries-BtQYJPJq.js.map +0 -1
- package/dist/core/web/public/next/assets/palette-handoff-C3ygtbzz.js +0 -2
- package/dist/core/web/public/next/assets/palette-handoff-C3ygtbzz.js.map +0 -1
- package/dist/core/web/public/next/assets/panes-xy1IchDb.js +0 -3
- package/dist/core/web/public/next/assets/panes-xy1IchDb.js.map +0 -1
- package/dist/core/web/public/next/assets/path-display-DZWGYwxb.js +0 -2
- package/dist/core/web/public/next/assets/path-display-DZWGYwxb.js.map +0 -1
- package/dist/core/web/public/next/assets/playbook-composer-DQaoF6up.js +0 -2
- package/dist/core/web/public/next/assets/playbook-composer-DQaoF6up.js.map +0 -1
- package/dist/core/web/public/next/assets/playbook-focus-BwUQfSL9.js +0 -2
- package/dist/core/web/public/next/assets/playbook-focus-BwUQfSL9.js.map +0 -1
- package/dist/core/web/public/next/assets/playbooks-queries-CAtj4Bf2.js +0 -2
- package/dist/core/web/public/next/assets/playbooks-queries-CAtj4Bf2.js.map +0 -1
- package/dist/core/web/public/next/assets/preloaded-BVeoPkI4.js +0 -2
- package/dist/core/web/public/next/assets/preloaded-BVeoPkI4.js.map +0 -1
- package/dist/core/web/public/next/assets/proactive-queries-BQfzWMIK.js +0 -2
- package/dist/core/web/public/next/assets/proactive-queries-BQfzWMIK.js.map +0 -1
- package/dist/core/web/public/next/assets/pwa-CuDaFuUg.js +0 -2
- package/dist/core/web/public/next/assets/pwa-CuDaFuUg.js.map +0 -1
- package/dist/core/web/public/next/assets/queries-DupxJKsa.js +0 -2
- package/dist/core/web/public/next/assets/queries-DupxJKsa.js.map +0 -1
- package/dist/core/web/public/next/assets/question-model-DmBGli60.js +0 -1
- package/dist/core/web/public/next/assets/reasoning-pref-EKwmpS6K.js +0 -2
- package/dist/core/web/public/next/assets/reasoning-pref-EKwmpS6K.js.map +0 -1
- package/dist/core/web/public/next/assets/remote-session-ICM6E2nO.js +0 -3
- package/dist/core/web/public/next/assets/remote-session-ICM6E2nO.js.map +0 -1
- package/dist/core/web/public/next/assets/resolved-store-ukqRTtwu.js +0 -2
- package/dist/core/web/public/next/assets/resolved-store-ukqRTtwu.js.map +0 -1
- package/dist/core/web/public/next/assets/resources-queries-wzvYTV23.js +0 -2
- package/dist/core/web/public/next/assets/resources-queries-wzvYTV23.js.map +0 -1
- package/dist/core/web/public/next/assets/reveal-anchor-Bcfx_wKL.js +0 -2
- package/dist/core/web/public/next/assets/reveal-anchor-Bcfx_wKL.js.map +0 -1
- package/dist/core/web/public/next/assets/sheet-DFdr5Lo9.js +0 -2
- package/dist/core/web/public/next/assets/sheet-DFdr5Lo9.js.map +0 -1
- package/dist/core/web/public/next/assets/slots-Dmm49g3e.js +0 -3
- package/dist/core/web/public/next/assets/slots-Dmm49g3e.js.map +0 -1
- package/dist/core/web/public/next/assets/sources-queries-DNFLElq8.js +0 -4
- package/dist/core/web/public/next/assets/sources-queries-DNFLElq8.js.map +0 -1
- package/dist/core/web/public/next/assets/sse-B9OtNHQ0.js +0 -2
- package/dist/core/web/public/next/assets/sse-B9OtNHQ0.js.map +0 -1
- package/dist/core/web/public/next/assets/start-chat-a6jUUYNk.js +0 -3
- package/dist/core/web/public/next/assets/start-chat-a6jUUYNk.js.map +0 -1
- package/dist/core/web/public/next/assets/surface-data-Ds6XBRdM.js +0 -2
- package/dist/core/web/public/next/assets/surface-data-Ds6XBRdM.js.map +0 -1
- package/dist/core/web/public/next/assets/surface-prefetch-CjFya7bj.js +0 -2
- package/dist/core/web/public/next/assets/surface-prefetch-CjFya7bj.js.map +0 -1
- package/dist/core/web/public/next/assets/terminal-client-JaCtN0Yb.js +0 -2
- package/dist/core/web/public/next/assets/terminal-client-JaCtN0Yb.js.map +0 -1
- package/dist/core/web/public/next/assets/terminal-icons-DS4tKR2l.js +0 -2
- package/dist/core/web/public/next/assets/terminal-icons-DS4tKR2l.js.map +0 -1
- package/dist/core/web/public/next/assets/terminal-view-B0s9Z_Ty.js +0 -6
- package/dist/core/web/public/next/assets/terminal-view-B0s9Z_Ty.js.map +0 -1
- package/dist/core/web/public/next/assets/thread-data-w8DTCC63.js +0 -2
- package/dist/core/web/public/next/assets/thread-data-w8DTCC63.js.map +0 -1
- package/dist/core/web/public/next/assets/ui-parts-kSSghNcT.js +0 -2
- package/dist/core/web/public/next/assets/ui-parts-kSSghNcT.js.map +0 -1
- package/dist/core/web/public/next/assets/usage-queries-BOEoZwaa.js +0 -2
- package/dist/core/web/public/next/assets/usage-queries-BOEoZwaa.js.map +0 -1
- package/dist/core/web/public/next/assets/use-chat-activity-OiUrY8vN.js +0 -2
- package/dist/core/web/public/next/assets/use-chat-activity-OiUrY8vN.js.map +0 -1
- package/dist/core/web/public/next/assets/use-guarded-action-DJysmW7X.js +0 -2
- package/dist/core/web/public/next/assets/use-guarded-action-DJysmW7X.js.map +0 -1
- package/dist/core/web/public/next/assets/use-ticker-CKTbaE4n.js +0 -2
- package/dist/core/web/public/next/assets/use-ticker-CKTbaE4n.js.map +0 -1
- package/dist/core/web/public/next/assets/use-token-gate-77Ow7w4J.js +0 -2
- package/dist/core/web/public/next/assets/use-token-gate-77Ow7w4J.js.map +0 -1
- package/dist/core/web/public/next/assets/useAutoSeat-BlcOB4EC.js +0 -2
- package/dist/core/web/public/next/assets/useAutoSeat-BlcOB4EC.js.map +0 -1
- package/dist/core/web/public/next/assets/useOnboarding-i9MegpNp.js +0 -2
- package/dist/core/web/public/next/assets/useOnboarding-i9MegpNp.js.map +0 -1
- package/dist/core/web/public/next/assets/useSeatHealth-B1MF1BDN.js +0 -2
- package/dist/core/web/public/next/assets/useSeatHealth-B1MF1BDN.js.map +0 -1
- package/dist/core/web/public/next/assets/useSeatsRefresh-B8iBEvA-.js +0 -3
- package/dist/core/web/public/next/assets/useSeatsRefresh-B8iBEvA-.js.map +0 -1
- package/dist/core/web/public/next/assets/useVerseSession-BhuJImwo.js +0 -2
- package/dist/core/web/public/next/assets/useVerseSession-BhuJImwo.js.map +0 -1
- package/dist/core/web/public/next/assets/useVerseTranscript-DWs9Fq_Q.js +0 -2
- package/dist/core/web/public/next/assets/useVerseTranscript-DWs9Fq_Q.js.map +0 -1
- package/dist/core/web/public/next/assets/verse-bootstrap-query-nCaR46ES.js +0 -2
- package/dist/core/web/public/next/assets/verse-bootstrap-query-nCaR46ES.js.map +0 -1
- package/dist/core/web/public/next/assets/verse-icons-Lygc_pk7.js +0 -2
- package/dist/core/web/public/next/assets/verse-icons-Lygc_pk7.js.map +0 -1
- package/dist/core/web/public/next/assets/verse-list-channel-BAnUoseK.js +0 -2
- package/dist/core/web/public/next/assets/verse-list-channel-BAnUoseK.js.map +0 -1
- package/dist/core/web/public/next/assets/warmup-BthaJjre.js +0 -3
- package/dist/core/web/public/next/assets/warmup-BthaJjre.js.map +0 -1
- package/dist/core/web/public/next/assets/wiki-focus-C0O1O5bi.js +0 -2
- package/dist/core/web/public/next/assets/wiki-focus-C0O1O5bi.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":";8kCAsCA,eAAsB,GAAe,EAAoC,EAAuB,EAAoD,CAClJ,IAAM,EAAQ,EAAiB,EAC/B,GAAI,CAAC,EAAO,MAAM,IAAI,EACtB,IAAM,EAAS,MAAM,EAA4B,EAAsB,CAAE,OAAM,QAAO,GAAI,IAAgB,OAAY,CAAC,EAAI,CAAE,aAAY,CAAG,EAAG,CAAK,EAEpJ,OADA,EAAkB,EACX,CACT,CAEA,IAAM,EAAuC,CAC3C,aAAc,2BACd,MAAO,QACP,WAAY,kBACZ,MAAO,QACP,YAAa,YACb,MAAO,cACT,EAGA,SAAS,EAAY,CAAE,QAAO,QAAO,YAAiF,CACpH,IAAM,KAAK,SAAM,EACX,EAAY,IAAU,cAA8B,EAC1D,OAAO,UAAC,MAAD,YACL,UAAC,QAAD,CAAO,UAAW,EAAO,WAAY,QAAS,EAA9C,WACE,SAAC,OAAD,UAAO,CAAY,IACnB,SAAC,QAAD,CAAW,KAAI,KAAK,SAAS,IAAK,MAAU,oBAAsB,IAAU,oBAA4B,YAA8B,KAAM,EAAG,UAAU,UAAU,SAAU,EAAW,MAAO,EAAY,GAAK,EAAO,SAAW,GAAM,EAAS,EAAE,OAAO,KAAK,CAAI,EAC9P,CACP,cAAC,QAAD,CAAO,UAAW,EAAO,WAAzB,WACE,SAAC,QAAD,CAAO,KAAK,WAAW,QAAS,EAAW,aAAY,kBAAkB,IA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GAAc,EAAqC,CACjE,OAAO,EAAM,KAAK,SAAW,GAAK,GAAa,EAAM,MAAM,CAAC,CAAC,SAAW,GAAK,GAAa,EAAM,MAAM,CAAC,CAAC,QAAU,CACpH,CAGA,SAAgB,GAAe,EAAyF,CACtH,GAAI,CAAC,EAAO,OAAO,KACnB,IAAM,EAAe,EAAM,KAAK,OAAQ,GAAM,EAAE,eAAiB,IAAI,EACrE,GAAI,CAAC,EAAa,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 & 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-CZPBagHA.js"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{C as e,M as t,V as n,a as r,i,t as a,u as o}from"./global-Bn1GsjsC.js";import{j as s}from"./VerseShared-CQLwhtIc.js";import{f as c,n as l,t as u}from"./control-queries-DiL1qsoC.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-kKnJXDte.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fleet-queries-kKnJXDte.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"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/global-1SED_aTT.css","assets/budget-queries-mxabDs-2.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{t as e}from"./index-v3DMReM2.js";import{V as t}from"./global-Bn1GsjsC.js";import{O as n}from"./VerseShared-CQLwhtIc.js";import{n as r}from"./surface-data-Ys-VjdGV.js";import{n as i}from"./mobile-toast-DpLBBlLU.js";import{t as a}from"./mobile-actions-zE5-bHJW.js";var o={async daemon(t){let{runDaemonAction:n}=await e(async()=>{let{runDaemonAction:e}=await import(`./control-queries-DiL1qsoC.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-mxabDs-2.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-Cl3YEkJr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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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,MAAO,MAAM,EAAE,WAAW,GAAM,QAAQ,OAAS,MAAM,EAAK,QAAQ,OAAO,SAAW,KAC1G,GAAM,aAAe,sBACzB,MAAO,CAAE,SAAU,UAAW,MAAO,EAAe,QAAS,SAAQ,WAAU,OAAQ,EAAc,YAAa,EAAM,CAC1H,CACA,MAAO,CACL,SAAU,UACV,MAAO,EAAe,QACtB,OAAQ,2CACR,WACA,OAAQ,KACR,YAAa,EACf,CACF,CAGA,SAAgB,EAAQ,EAA+B,CACrD,MAAO,CAAC,EAAK,cAAgB,EAAK,WAAa,WAAa,EAAK,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-Cl3YEkJr.js"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{s as t}from"./index-v3DMReM2.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-olnXbwrV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focus-trap-olnXbwrV.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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{C as e,M as t,O as n,a as r,t as i,w as a}from"./global-Bn1GsjsC.js";import{r as o}from"./VerseShared-CQLwhtIc.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-BwMfWvDw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-model-BwMfWvDw.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/git/git-queries.ts","../../../../../../src/web-ui/routes/verse/git/git-model.ts"],"sourcesContent":["/**\n * routes/verse/git/git-queries.ts — the page's side of `/api/verse/git*`\n * (unit C5; server: core/verse/git-api.ts).\n *\n * Reads are plain fetches, not cache entries: a branch's state is stale the\n * moment a turn commits, and the bar and pane each own their own freshness\n * (poll while visible; re-read after every action).\n *\n * WHY a GET helper of its own instead of data/client.ts `apiGet`: the git\n * routes answer \"not a repository\" (404) and \"not a folder Verse knows\"\n * (409) with a CODE the bar acts on — it drops that root instead of showing\n * an error — and apiGet discards the body of a failed read.\n *\n * Mutations go through the held mutation token exactly like every other\n * Verse write (verse-queries.ts): no token → VerseMutationLockedError, which\n * the caller's token gate turns into the unlock dialog.\n */\nimport { ApiError, apiPost } from '../../../data/client.js';\nimport { getMutationToken, getReadClientProof, reportSessionExpired, touchMutationHold } from '../../../data/auth-store.js';\nimport type {\n VerseGitActionResponse,\n VerseGitCommitRequest,\n VerseGitDiffResponse,\n VerseGitDiffScope,\n VerseGitMergeRequest,\n VerseGitPrRequest,\n VerseGitWorktreeResponse,\n} from '../../../data/api-types.js';\nimport { VerseMutationLockedError } from '../verse-queries.js';\nimport type { GitStatusView } from './git-model.js';\n\nexport const GIT_API = '/api/verse/git';\n\n/** Codes that mean \"this root has no bar\", not \"something broke\". */\nexport const GIT_ROOT_UNAVAILABLE_CODES: ReadonlySet<string> = new Set(['VERSE_GIT_NOT_A_REPO', 'VERSE_GIT_REFUSED']);\n\nasync function gitGet<T>(path: string, signal?: AbortSignal): Promise<T> {\n const res = await fetch(path, {\n method: 'GET',\n credentials: 'same-origin',\n headers: { 'x-ashlr-read-client': getReadClientProof() },\n signal,\n });\n if (res.status === 401) {\n reportSessionExpired();\n throw new ApiError('Read session expired.', 401, path);\n }\n if (!res.ok) {\n let detail: string | null = null;\n let code: string | null = null;\n try {\n const body = (await res.json()) as { error?: unknown; code?: unknown };\n detail = typeof body.error === 'string' && body.error ? body.error : null;\n code = typeof body.code === 'string' && body.code ? body.code : null;\n } catch {\n /* not JSON */\n }\n throw new ApiError(`GET ${path} failed (HTTP ${res.status}).`, res.status, path, detail, code);\n }\n return (await res.json()) as T;\n}\n\nexport function fetchGitStatus(root: string, signal?: AbortSignal): Promise<GitStatusView> {\n return gitGet<GitStatusView>(`${GIT_API}/status?root=${encodeURIComponent(root)}`, signal);\n}\n\nexport interface GitDiffView extends VerseGitDiffResponse {\n /** Size of the whole patch before the 256 KB cut; null when no file was asked. */\n patchBytes?: number | null;\n}\n\nexport function fetchGitDiff(root: string, scope: VerseGitDiffScope, file: string | null, signal?: AbortSignal): Promise<GitDiffView> {\n const params = new URLSearchParams({ root, scope });\n if (file !== null) params.set('file', file);\n return gitGet<GitDiffView>(`${GIT_API}/diff?${params.toString()}`, signal);\n}\n\nasync function post<T>(path: string, body: unknown): Promise<T> {\n const token = getMutationToken();\n if (!token) throw new VerseMutationLockedError();\n const result = await apiPost<T>(path, body, token);\n touchMutationHold();\n return result;\n}\n\nexport function commitGit(req: VerseGitCommitRequest): Promise<VerseGitActionResponse> {\n return post(`${GIT_API}/commit`, req);\n}\n\nexport function pushGit(root: string): Promise<VerseGitActionResponse> {\n return post(`${GIT_API}/push`, { root });\n}\n\nexport function openGitPr(req: VerseGitPrRequest): Promise<VerseGitActionResponse> {\n return post(`${GIT_API}/pr`, req);\n}\n\nexport function mergeGitPr(req: VerseGitMergeRequest): Promise<VerseGitActionResponse> {\n return post(`${GIT_API}/pr/merge`, req);\n}\n\nexport function createGitWorktree(root: string, name: string): Promise<VerseGitWorktreeResponse> {\n return post(`${GIT_API}/worktree`, { root, name });\n}\n\n/** True for a failed read that means \"no bar for this root\" rather than an error to show. */\nexport function isRootUnavailable(err: unknown): boolean {\n return err instanceof ApiError && err.code !== null && GIT_ROOT_UNAVAILABLE_CODES.has(err.code);\n}\n","/**\n * routes/verse/git/git-model.ts — the branch bar's and Review pane's words\n * and decisions, as pure functions (unit C5; SPEC-310C §2, §3).\n *\n * Kept apart from the components so the copy, the suggested-action labels and\n * the menu's disabled reasons are tested as a table, and so the bar's chunk\n * stays small (no React here, no DOM).\n *\n * Copy rules (DESIGN §13.8): operator language with units; \"—\" for a value\n * that was not measured; a state is always a WORD beside any colour or icon.\n */\nimport type {\n VerseGitDiffFile,\n VerseGitPr,\n VerseGitStatus,\n VerseGitSuggestedAction,\n} from '../../../data/api-types.js';\nimport type { VerseGitCheckCounts, VerseGitPrLookup, VerseGitStatusDetail } from '../../../../core/verse/workbench-types.js';\n\n// ---------------------------------------------------------------------------\n// Wire additions the server sends beyond the frozen VerseGitStatus — contract\n// now (workbench-types.ts §7 VerseGitStatusDetail). Optional HERE, so an\n// older server that omits them still renders; the names alias the contract\n// so the two can never drift.\n// ---------------------------------------------------------------------------\n\nexport type GitPrLookup = VerseGitPrLookup;\nexport type GitCheckCounts = VerseGitCheckCounts;\n\nexport interface GitStatusView extends VerseGitStatus, Partial<Omit<VerseGitStatusDetail, keyof VerseGitStatus>> {}\n\n// ---------------------------------------------------------------------------\n// Numbers\n// ---------------------------------------------------------------------------\n\nconst NUMBER = new Intl.NumberFormat('en-US');\n\n/** 35079 → \"35,079\". */\nexport function formatCount(n: number): string {\n return NUMBER.format(Math.max(0, Math.round(n)));\n}\n\n/** \"+35,079 −1,074\" — a real minus sign, grouped digits. */\nexport function diffstatText(additions: number, deletions: number): string {\n return `+${formatCount(additions)} −${formatCount(deletions)}`;\n}\n\n/** The ± counts as a screen reader should hear them. */\nexport function diffstatLabel(files: number, additions: number, deletions: number): string {\n return `${formatCount(files)} ${files === 1 ? 'file' : 'files'} changed, ${formatCount(additions)} added, ${formatCount(deletions)} removed`;\n}\n\n// ---------------------------------------------------------------------------\n// Rows\n// ---------------------------------------------------------------------------\n\n/** A root earns a bar row when there is something to do or to see. */\nexport function hasBranchActivity(s: GitStatusView): boolean {\n if (s.dirty > 0 || s.ahead > 0 || s.diffstat.files > 0) return true;\n if (s.pr && (s.pr.state === 'open' || s.pr.state === 'draft')) return true;\n return false;\n}\n\n/**\n * One row per repository: two chat roots inside the same repo would show the\n * same branch twice. The first root (the chat's priority order) keeps the row.\n */\nexport function dedupeByRepo<T extends GitStatusView>(statuses: readonly T[]): T[] {\n const seen = new Set<string>();\n const out: T[] = [];\n for (const s of statuses) {\n const key = s.gitRoot ?? s.root;\n if (seen.has(key)) continue;\n seen.add(key);\n out.push(s);\n }\n return out;\n}\n\n// ---------------------------------------------------------------------------\n// The primary button\n// ---------------------------------------------------------------------------\n\nexport interface PrimaryAction {\n action: Exclude<VerseGitSuggestedAction, 'none'>;\n label: string;\n /** What the click will do, in one sentence (tooltip + accessible description). */\n disclosure: string;\n}\n\nexport function primaryAction(s: GitStatusView): PrimaryAction | null {\n const branch = s.branch ?? 'HEAD';\n const base = s.base ?? 'the default branch';\n switch (s.suggested) {\n case 'commit':\n return { action: 'commit', label: 'Commit', disclosure: `Commit ${formatCount(s.dirty)} changed ${s.dirty === 1 ? 'file' : 'files'} on ${branch}.` };\n case 'push':\n return {\n action: 'push',\n label: 'Push',\n disclosure: s.upstream\n ? `Push ${formatCount(s.ahead)} ${s.ahead === 1 ? 'commit' : 'commits'} on ${branch} to ${s.upstream}.`\n : `Publish ${branch} to origin.`,\n };\n case 'create-pr':\n return {\n action: 'create-pr',\n label: 'Create PR',\n disclosure: `Open a pull request from ${branch} into ${base}${s.upstream === null || s.ahead > 0 ? ', pushing it first' : ''}.`,\n };\n case 'merge':\n return s.pr\n ? { action: 'merge', label: 'Merge', disclosure: `Squash-merge #${s.pr.number} into ${s.pr.baseRef || base}. Checks passed.` }\n : null;\n case 'view-pr':\n return s.pr ? { action: 'view-pr', label: 'View PR', disclosure: `Open #${s.pr.number} on GitHub.` } : null;\n default:\n return null;\n }\n}\n\n// ---------------------------------------------------------------------------\n// The ▾ menu (every item present; disabled WITH a reason, never hidden)\n// ---------------------------------------------------------------------------\n\nexport type MenuActionId = 'draft-pr' | 'commit' | 'push' | 'open-github' | 'copy-branch' | 'review';\n\nexport interface MenuItem {\n id: MenuActionId;\n label: string;\n disabledReason: string | null;\n}\n\nexport function menuItems(s: GitStatusView): MenuItem[] {\n const detached = s.branch === null;\n const onBase = s.branch !== null && s.base !== null && s.branch === s.base;\n const conflicts = (s.conflicts ?? 0) > 0;\n const openPr = s.pr !== null && (s.pr.state === 'open' || s.pr.state === 'draft');\n const draftReason = detached\n ? 'HEAD is detached'\n : onBase\n ? `You are on ${s.base}`\n : openPr\n ? `#${s.pr!.number} is already open`\n : s.prLookup === 'unavailable'\n ? 'GitHub is not reachable (is `gh` signed in?)'\n : null;\n return [\n { id: 'draft-pr', label: 'Create draft PR…', disabledReason: draftReason },\n {\n id: 'commit',\n label: 'Commit…',\n disabledReason: detached ? 'HEAD is detached' : conflicts ? 'Resolve the conflicts first' : s.dirty === 0 ? 'Nothing to commit' : null,\n },\n {\n id: 'push',\n label: s.upstream ? 'Push' : 'Publish branch',\n disabledReason: detached ? 'HEAD is detached' : s.upstream !== null && s.ahead === 0 ? 'Already pushed' : s.headSha === null ? 'No commits yet' : null,\n },\n { id: 'open-github', label: 'Open on GitHub', disabledReason: s.pr ? null : 'No pull request for this branch' },\n { id: 'copy-branch', label: 'Copy branch name', disabledReason: detached ? 'HEAD is detached' : null },\n { id: 'review', label: 'Review changes', disabledReason: s.diffstat.files === 0 && s.dirty === 0 ? 'No changes' : null },\n ];\n}\n\n// ---------------------------------------------------------------------------\n// PR chip\n// ---------------------------------------------------------------------------\n\nexport type PrTone = 'success' | 'danger' | 'warning' | 'running' | 'neutral' | 'merged';\n\nexport interface PrChipModel {\n /** \"#463\" */\n number: string;\n title: string;\n /** \"Open\", \"Draft\", \"Merged\", \"Closed\". */\n state: string;\n /** \"checks passing\", \"2 of 9 checks failing\", \"checks running\", \"no checks\", null. */\n checks: string | null;\n tone: PrTone;\n /** Everything above in one sentence, for the accessible name. */\n label: string;\n}\n\nexport function prChip(pr: VerseGitPr, counts: GitCheckCounts | null | undefined): PrChipModel {\n const state = pr.state === 'open' ? 'Open' : pr.state === 'draft' ? 'Draft' : pr.state === 'merged' ? 'Merged' : 'Closed';\n let checks: string | null = null;\n let tone: PrTone = 'neutral';\n if (pr.state === 'merged') {\n tone = 'merged';\n } else if (pr.state === 'closed') {\n tone = 'neutral';\n } else {\n switch (pr.checks) {\n case 'passing':\n checks = counts && counts.total > 0 ? `${counts.passed}/${counts.total} checks passed` : 'checks passed';\n tone = pr.mergeable === false ? 'danger' : 'success';\n break;\n case 'failing':\n checks = counts ? `${counts.failed} of ${counts.total} checks failing` : 'checks failing';\n tone = 'danger';\n break;\n case 'pending':\n checks = counts ? `${counts.pending} of ${counts.total} checks running` : 'checks running';\n tone = 'running';\n break;\n case 'none':\n checks = 'no checks';\n break;\n default:\n checks = 'checks —';\n }\n if (pr.mergeable === false) checks = checks ? `${checks}, conflicts` : 'conflicts';\n }\n const label = [`Pull request #${pr.number}`, pr.title, state, checks].filter(Boolean).join(', ');\n return { number: `#${pr.number}`, title: pr.title, state, checks, tone, label };\n}\n\n// ---------------------------------------------------------------------------\n// PR dialog defaults\n// ---------------------------------------------------------------------------\n\n/**\n * A PR title from the branch: the last commit's subject when there is one\n * (it is usually the best one-line summary), else the branch name made\n * readable (`feat/branch-bar` → \"Branch bar\").\n */\nexport function defaultPrTitle(s: GitStatusView): string {\n const subject = s.headSubject?.trim();\n if (subject) return subject;\n const leaf = (s.branch ?? '').split('/').pop() ?? '';\n const words = leaf.replace(/[-_]+/g, ' ').trim();\n return words ? words[0]!.toUpperCase() + words.slice(1) : '';\n}\n\n// ---------------------------------------------------------------------------\n// Merge: the head the operator confirmed\n// ---------------------------------------------------------------------------\n\n/**\n * What the Merge dialog showed when it opened. WHY a snapshot: the bar\n * re-polls git status every 10 s, and the server's `--match-head-commit`\n * guard only protects the SHA the CLIENT sends. If the dialog followed the\n * live poll, a commit pushed while it was open (and whose CI went green\n * before the click) would be merged under a confirmation the operator gave\n * for a different head. So the dialog pins the PR at open, asserts only what\n * that pin verified, and submits the pinned SHA — never the latest poll's.\n */\nexport interface PinnedMerge {\n number: number;\n title: string;\n headSha: string | null;\n headRef: string;\n baseRef: string;\n checks: VerseGitPr['checks'];\n mergeable: boolean | null;\n counts: GitCheckCounts | null;\n}\n\nexport function pinMerge(s: GitStatusView): PinnedMerge | null {\n const pr = s.pr;\n if (!pr) return null;\n return {\n number: pr.number,\n title: pr.title,\n headSha: pr.headSha,\n headRef: pr.headRef || s.branch || '',\n baseRef: pr.baseRef || s.base || '',\n checks: pr.checks,\n mergeable: pr.mergeable,\n counts: s.prCheckCounts ?? null,\n };\n}\n\n/**\n * The \"Head abc1234, 9/9 checks passed, no conflicts.\" fact, built ONLY from\n * what the pinned read verified for that SHA: \"checks passed\" needs\n * `checks === 'passing'`, \"no conflicts\" needs `mergeable === true`. Anything\n * else says what is actually known (running, failing, not reported, GitHub\n * still computing mergeability) instead of the reassuring default.\n */\nexport function mergeHeadFact(pin: PinnedMerge): { sha: string; detail: string; text: string; verified: boolean } {\n const sha = pin.headSha ? pin.headSha.slice(0, 7) : '—';\n const c = pin.counts;\n let checks: string;\n switch (pin.checks) {\n case 'passing':\n checks = c && c.total > 0 ? `${c.passed}/${c.total} checks passed` : 'checks passed';\n break;\n case 'failing':\n checks = c && c.total > 0 ? `${c.failed} of ${c.total} checks failing` : 'checks failing';\n break;\n case 'pending':\n checks = c && c.total > 0 ? `${c.pending} of ${c.total} checks still running` : 'checks still running';\n break;\n case 'none':\n checks = 'no checks reported';\n break;\n default:\n checks = 'checks not known';\n }\n const conflicts = pin.mergeable === true ? 'no conflicts' : pin.mergeable === false ? 'has conflicts' : 'GitHub has not finished checking for conflicts';\n const detail = `${checks}, ${conflicts}.`;\n return { sha, detail, text: `Head ${sha}, ${detail}`, verified: pin.checks === 'passing' && pin.mergeable === true && pin.headSha !== null };\n}\n\n/**\n * Why Merge must stay disabled for this pin against the latest poll, or null\n * when the live PR is still exactly what the dialog showed. A different head\n * (or PR, or a PR that is gone/closed) means the operator has not reviewed\n * what would merge; a regression in checks or mergeability on the SAME head\n * means the server's own suggestion no longer stands.\n */\nexport function mergeDrift(pin: PinnedMerge, live: GitStatusView | null): string | null {\n const pr = live?.pr ?? null;\n // A draft cannot be merged (the server refuses it), so \"open\" is the only live state that keeps the pin valid.\n if (!pr || pr.number !== pin.number || pr.state !== 'open') {\n return `#${pin.number} is no longer an open, ready pull request — close this and check the branch bar.`;\n }\n if (pr.headSha !== pin.headSha) return 'The PR changed since you opened this — new commits landed. Close and reopen to review the new head.';\n if (pr.checks !== 'passing') return 'Checks on this head are no longer passing — close and reopen once they are.';\n if (pr.mergeable !== true) return 'GitHub no longer reports this head as mergeable — close and reopen to review.';\n return null;\n}\n\n// ---------------------------------------------------------------------------\n// Review pane: file tree\n// ---------------------------------------------------------------------------\n\nexport interface FileGroup {\n /** \"src/core/verse\", or \"\" for the repository root. */\n dir: string;\n files: Array<VerseGitDiffFile & { name: string }>;\n}\n\n/** Files grouped by directory, in path order — a flat, scannable tree. */\nexport function groupFiles(files: readonly VerseGitDiffFile[]): FileGroup[] {\n const groups = new Map<string, FileGroup>();\n const sorted = [...files].sort((a, b) => (a.path < b.path ? -1 : a.path > b.path ? 1 : 0));\n for (const f of sorted) {\n const cut = f.path.lastIndexOf('/');\n const dir = cut === -1 ? '' : f.path.slice(0, cut);\n const name = cut === -1 ? f.path : f.path.slice(cut + 1);\n let g = groups.get(dir);\n if (!g) {\n g = { dir, files: [] };\n groups.set(dir, g);\n }\n g.files.push({ ...f, name });\n }\n return [...groups.values()];\n}\n\nexport const FILE_STATUS_WORD: Record<VerseGitDiffFile['status'], string> = {\n M: 'modified',\n A: 'added',\n D: 'deleted',\n R: 'renamed',\n U: 'conflicted',\n};\n\n// ---------------------------------------------------------------------------\n// Review comments → a message draft\n// ---------------------------------------------------------------------------\n\nexport interface ReviewComment {\n id: string;\n path: string;\n /** The file's line number (new side; old side for a deleted line). */\n line: number;\n side: 'new' | 'old';\n note: string;\n}\n\n/**\n * `path:line: note`, one per line (SPEC-310C §3), in file then line order so\n * the agent reads them top to bottom. A multi-line note keeps its line breaks,\n * indented under its anchor so each comment stays one visual block. A comment\n * on a deleted line says so — its number is the OLD file's.\n */\nexport function commentsToMessage(comments: readonly ReviewComment[]): string {\n const sorted = [...comments].sort((a, b) => (a.path === b.path ? a.line - b.line : a.path < b.path ? -1 : 1));\n return sorted\n .map((c) => {\n const [first, ...rest] = c.note.trim().split('\\n');\n const anchor = `${c.path}:${c.line}${c.side === 'old' ? ' (removed line)' : ''}`;\n return [`${anchor}: ${first ?? ''}`, ...rest.map((l) => ` ${l}`)].join('\\n');\n })\n .join('\\n');\n}\n\n// ---------------------------------------------------------------------------\n// Errors → one sentence\n// ---------------------------------------------------------------------------\n\n/** What the page says when a git action fails. The server's sentence when it wrote one. */\nexport function describeGitError(err: unknown): string {\n if (err && typeof err === 'object') {\n const e = err as { name?: string; status?: number; detail?: string | null; code?: string | null; message?: string };\n if (e.name === 'DispatchDisabledError') return 'This server is read-only (started without dispatch), so git actions are off.';\n if (e.name === 'VerseMutationLockedError') return 'Unlock actions with the mutation token first.';\n if (e.status === 401) return 'The mutation token was rejected. Unlock again with the token `ashlr verse` printed.';\n if (e.detail) return e.detail;\n if (e.status === 404) return 'This server has no git routes yet. Update Phantom and restart `ashlr verse`.';\n if (e.status === 409) return 'Git is busy in this repository. Try again in a moment.';\n }\n return 'The git action failed. The terminal will show why.';\n}\n"],"mappings":"0HA+BA,IAAa,EAAU,iBAGV,EAAkD,IAAI,IAAI,CAAC,uBAAwB,mBAAmB,CAAC,EAEpH,eAAe,EAAU,EAAc,EAAkC,CACvE,IAAM,EAAM,MAAM,MAAM,EAAM,CAC5B,OAAQ,MACR,YAAa,cACb,QAAS,CAAE,sBAAuB,EAAmB,CAAE,EACvD,QACF,CAAC,EACD,GAAI,EAAI,SAAW,IAEjB,MADA,EAAqB,EACf,IAAI,EAAS,wBAAyB,IAAK,CAAI,EAEvD,GAAI,CAAC,EAAI,GAAI,CACX,IAAI,EAAwB,KACxB,EAAsB,KAC1B,GAAI,CACF,IAAM,EAAQ,MAAM,EAAI,KAAK,EAC7B,EAAS,OAAO,EAAK,OAAU,UAAY,EAAK,MAAQ,EAAK,MAAQ,KACrE,EAAO,OAAO,EAAK,MAAS,UAAY,EAAK,KAAO,EAAK,KAAO,IAClE,MAAQ,CAER,CACA,MAAM,IAAI,EAAS,OAAO,EAAK,gBAAgB,EAAI,OAAO,IAAK,EAAI,OAAQ,EAAM,EAAQ,CAAI,CAC/F,CACA,OAAQ,MAAM,EAAI,KAAK,CACzB,CAEA,SAAgB,EAAe,EAAc,EAA8C,CACzF,OAAO,EAAsB,GAAG,EAAQ,eAAe,mBAAmB,CAAI,IAAK,CAAM,CAC3F,CAOA,SAAgB,EAAa,EAAc,EAA0B,EAAqB,EAA4C,CACpI,IAAM,EAAS,IAAI,gBAAgB,CAAE,OAAM,OAAM,CAAC,EAElD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/remote-session-JK5xGsry.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{n as e,r as t}from"./rolldown-runtime-hePW80VL.js";import{n,s as r,t as i}from"./index-v3DMReM2.js";var a=n();function o({size:e=16,title:t,children:n,...r}){return(0,a.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`round`,strokeLinejoin:`round`,focusable:`false`,...t?{role:`img`}:{"aria-hidden":!0},...r,children:[t?(0,a.jsx)(`title`,{children:t}):null,n]})}var s=e=>(0,a.jsx)(o,{...e,children:(0,a.jsx)(`path`,{d:`M2.5 11.5V4.25A1.75 1.75 0 0 1 4.25 2.5h7.5a1.75 1.75 0 0 1 1.75 1.75v4.5a1.75 1.75 0 0 1-1.75 1.75H5.5L2.5 13.5v-2Z`})}),ee=e=>(0,a.jsxs)(o,{...e,children:[(0,a.jsx)(`path`,{d:`M2 9.5 3.6 3.4A1.5 1.5 0 0 1 5.05 2.3h5.9a1.5 1.5 0 0 1 1.45 1.1L14 9.5`}),(0,a.jsx)(`path`,{d:`M2 9.5h3l.8 1.6h4.4l.8-1.6h3v2.6A1.9 1.9 0 0 1 12.1 14H3.9A1.9 1.9 0 0 1 2 12.1V9.5Z`})]}),c=t(r(),1),te={data:void 0,error:void 0,status:`idle`,updatedAt:null},l=new Map,u=0,d=[],f=0,p=0;function ne(){--u;let e=d.shift();e&&e()}function re(e){let t=()=>{let t=p;u+=1,u>f&&(f=u);let n=()=>{t===p&&ne()},r;try{r=e()}catch(e){return n(),Promise.reject(e instanceof Error?e:Error(String(e)))}return r.then(e=>(n(),e),e=>{throw n(),e})};return u<4?t():new Promise((e,n)=>{d.push(()=>{t().then(e,n)})})}function ie(){p+=1,u=0,f=0;for(let e of d.splice(0))e()}function ae(){return{active:u,queued:d.length,peak:f}}function m(e){let t=l.get(e);return t||(t={snapshot:te,inFlight:null,fetcher:null,subscribers:new Set,issued:0,issuedAt:0,applied:0},l.set(e,t)),t}function oe(e,t){e.snapshot={...e.snapshot,...t}}function h(e){let t=l.get(e);if(t)for(let e of t.subscribers)e()}function g(e,t){if(Object.is(e,t))return!0;if(typeof e!=typeof t||e===null||t===null||typeof e!=`object`||Array.isArray(e)!==Array.isArray(t))return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>g(e,t[n]));let n=e,r=t,i=Object.keys(n);return i.length===Object.keys(r).length&&i.every(e=>Object.prototype.hasOwnProperty.call(r,e)&&g(n[e],r[e]))}function se(e,t){let n=m(e);return n.subscribers.add(t),()=>{n.subscribers.delete(t)}}function _(e){return m(e).snapshot}function ce(e,t){return e.snapshot.updatedAt===null||e.snapshot.status===`error`?!1:Date.now()-e.snapshot.updatedAt<t}function le(e,t){return e.inFlight===null?!1:t.joinWindowMs===void 0||Date.now()-e.issuedAt<t.joinWindowMs}function v(e,t,n){let r=m(e);if(r.fetcher=t,!n.force){if(le(r,n))return r.inFlight;if(n.maxAgeMs!==void 0&&ce(r,n.maxAgeMs))return Promise.resolve()}let i=r.issued+=1;r.issuedAt=Date.now(),oe(r,{status:r.snapshot.data===void 0?`loading`:`refreshing`}),h(e);let a=re(t).then(e=>{if(i<r.issued)return;r.applied=i;let t=r.snapshot.data!==void 0&&g(r.snapshot.data,e);oe(r,{data:t?r.snapshot.data:e,error:void 0,status:`success`,updatedAt:Date.now()})}).catch(e=>{i<r.issued||(r.applied=i,oe(r,{error:e instanceof Error?e:Error(String(e)),status:`error`}))}).finally(()=>{r.issued===i&&(r.inFlight=null),h(e)});return r.inFlight=a,a}function ue(e,t){return v(e,t,{})}function de(e,t,n){return v(e,t,{maxAgeMs:n})}function y(e,t,n=!1){return v(e,t,n?{force:!0}:{joinWindowMs:250})}function b(e){let t=l.get(e);t&&t.fetcher&&ue(e,t.fetcher)}function fe(e){for(let t of l.keys())t.startsWith(e)&&b(t)}function pe(e,t=!1){for(let[n,r]of l)r.subscribers.size>0&&n.startsWith(e)&&(t&&r.fetcher?y(n,r.fetcher,!0):b(n))}function me(e,t){t.snapshot=te,t.fetcher=null,t.inFlight=null,t.issued+=1,t.applied=t.issued,h(e)}function he(){ie();for(let[e,t]of[...l]){if(t.subscribers.size===0){l.delete(e);continue}me(e,t)}}var x=`ashlr.verse.drafts.v1`,S=`ashlr.verse.sent.v1`,ge=40,C=65536;function w(e,t){let n={};try{let r=localStorage.getItem(e),i=r?JSON.parse(r):null;if(i&&typeof i==`object`&&!Array.isArray(i))for(let[e,r]of Object.entries(i)){let i=t(r);i!==null&&(n[e]=i)}}catch{}return n}function T(e,t){let n=Object.keys(t);for(let e of n.slice(0,Math.max(0,n.length-ge)))delete t[e];try{return localStorage.setItem(e,JSON.stringify(t)),!0}catch{return!1}}var E=e=>typeof e==`string`&&e.length>0?e.slice(0,C):null,D=e=>{if(!Array.isArray(e))return null;let t=e.filter(e=>typeof e==`string`&&e.length>0).slice(-25).map(e=>e.slice(0,C));return t.length>0?t:null},O=new Map;function _e(e){if(!e)return``;let t=O.get(e);return t===void 0?w(x,E)[e]??``:t}function ve(e,t){if(!e)return;let n=t.trim().length>0?t.slice(0,C):``,r=w(x,E);if(delete r[e],n&&(r[e]=n),O.delete(e),!T(x,r)){O.set(e,n);for(let e of[...O.keys()].slice(0,Math.max(0,O.size-ge)))O.delete(e)}}function ye(e){return e?w(S,D)[e]??[]:[]}function be(e,t){if(!e||t.trim().length===0)return;let n=w(S,D),r=n[e]??[];delete n[e],n[e]=(r[r.length-1]===t?r:[...r,t.slice(0,C)]).slice(-25),T(S,n)}function xe(e){if(e){O.delete(e);for(let[t,n]of[[x,E],[S,D]]){let r=w(t,n);e in r&&(delete r[e],T(t,r))}}}function Se(){O.clear();for(let e of[x,S])try{localStorage.removeItem(e)}catch{}}function k(){return typeof document<`u`&&document.head.querySelector(`meta[name="ashlr-remote-gateway"][content="v1"]`)!==null}var Ce=e({adoptInjectedTokens:()=>Ne,clearMutationToken:()=>X,clearReadSession:()=>ke,establishReadSession:()=>G,getAuthSnapshot:()=>U,getMutationToken:()=>Pe,getReadClientProof:()=>W,hasMutationHold:()=>Fe,markCheckComplete:()=>je,renewReadSession:()=>Ae,reportSessionExpired:()=>q,setMutationToken:()=>J,setRemoteActGranted:()=>Ie,subscribeAuth:()=>H,takeInjectedTokens:()=>Me,touchMutationHold:()=>Y}),we=`ashlr.readClientProof.v1`,Te=/^[a-f0-9]{64}$/,A=12e5;function Ee(){let e=new Uint8Array(32);return crypto.getRandomValues(e),Array.from(e,e=>e.toString(16).padStart(2,`0`)).join(``)}function De(){if(k())return``;try{let e=sessionStorage.getItem(we);if(e&&Te.test(e))return e}catch{}let e=Ee();try{sessionStorage.setItem(we,e)}catch{}return e}var j=De(),M=null,N=null,P=!1,F=!1,I=null,L=null,R=null,z={phase:`checking`,checked:!1,mutationTokenHeldUntil:null},B=new Set;function Oe(){for(let e of B)e()}function V(e){z={...z,...e},Oe()}function H(e){return B.add(e),()=>B.delete(e)}function U(){return z}function W(){if(k())throw Error(`Local read-client proof is unavailable on the phone gateway.`);return j}async function G(e){if(k())throw Error(`Hub read tokens are unavailable on the phone gateway.`);let t=e.trim();if(!/^[a-f0-9]{64}$/.test(t))throw Error(`That does not look like a read token — expected 64 hex characters.`);let n=await fetch(`/api/session`,{method:`POST`,credentials:`same-origin`,headers:{"x-ashlr-token":t,"x-ashlr-read-client":j}});if(n.status===204){I=t,V({phase:`authenticated`,checked:!0});return}throw n.status===401?Error(`Server rejected that token. Double-check the read token printed by this server at startup.`):Error(`Unexpected response establishing session (HTTP ${n.status}).`)}async function ke(){if(k()){try{await(await i(async()=>{let{logoutRemoteDevice:e}=await import(`./remote-session-JK5xGsry.js`);return{logoutRemoteDevice:e}},__vite__mapDeps([0]))).logoutRemoteDevice()}finally{K()}return}try{await fetch(`/api/session`,{method:`DELETE`,credentials:`same-origin`,headers:{"x-ashlr-read-client":j}})}catch{}I=null,R=null,K()}function K(){X(),he(),Se(),V({phase:`unauthenticated`,checked:!0})}function q(){if(z.phase===`authenticated`){if(k()){K();return}if(I){Ae();return}K()}}function Ae(){if(L)return L;let e=I;return e?(L=(async()=>{try{return await G(e),pe(``),!0}catch{return I=null,R=null,K(),!1}finally{L=null}})(),L):Promise.resolve(!1)}function je(e){V({phase:e?`authenticated`:`unauthenticated`,checked:!0})}function Me(){let e=window.__ASHLR_TOKENS__;if(e&&typeof e==`object`){try{delete window.__ASHLR_TOKENS__}catch{window.__ASHLR_TOKENS__=void 0}typeof e.readToken==`string`&&(R={readToken:e.readToken,...typeof e.token==`string`?{token:e.token}:{}})}return R?{...R}:null}async function Ne(){if(k())return!1;let e=Me();if(!e)return!1;try{await G(e.readToken)}catch{return R=null,!1}return e.token&&/^[a-f0-9]{64}$/.test(e.token.trim())&&J(e.token.trim(),{host:!0}),!0}function Pe(){return k()?F?`*`:null:M}function Fe(){return k()?F:M!==null}function Ie(e){F=e,Oe()}function Le(){N&&clearTimeout(N),N=setTimeout(()=>{P&&M!==null?Y():X()},A)}function J(e,t={}){if(k())throw Error(`Hub mutation tokens are unavailable on the phone gateway.`);M=e,P=t.host===!0,V({mutationTokenHeldUntil:Date.now()+A}),Le()}function Y(){M!==null&&(V({mutationTokenHeldUntil:Date.now()+A}),Le())}function X(){F=!1,M=null,P=!1,N&&=(clearTimeout(N),null),V({mutationTokenHeldUntil:null})}var Re=`ashlr.theme.v1`;function ze(e){let t=document.documentElement;e===`system`?t.removeAttribute(`data-theme`):t.setAttribute(`data-theme`,e)}function Be(){try{let e=localStorage.getItem(Re);if(e===`light`||e===`dark`||e===`system`)return e}catch{}return`system`}var Z=Be();ze(Z);var Ve=new Set;function He(){for(let e of Ve)e()}function Ue(e){return Ve.add(e),()=>Ve.delete(e)}function We(){return Z}function Q(e){Z=e,ze(Z);try{localStorage.setItem(Re,Z)}catch{}He()}function Ge(){Q(Z===`system`?`light`:Z===`light`?`dark`:`system`)}var Ke={data:void 0,error:void 0,status:`idle`,updatedAt:null};function qe(e,t){let n=t?.freshMs??1e4,r=t?.enabled??!0,i=(0,c.useSyncExternalStore)((0,c.useCallback)(t=>r?se(e.key,t):()=>{},[e.key,r]),()=>r?_(e.key):Ke,()=>r?_(e.key):Ke);return(0,c.useEffect)(()=>{r&&de(e.key,()=>e.fetch(),n)},[e.key,n,r]),i}function Je(e){return(0,c.useCallback)(()=>{y(e.key,()=>e.fetch())},[e])}function Ye(e){return(0,c.useCallback)(()=>{y(e.key,()=>e.fetch(),!0)},[e])}var Xe=()=>U().phase,Ze=()=>U().mutationTokenHeldUntil;function Qe(){return(0,c.useSyncExternalStore)(H,Xe,Xe)}function $e(){let e=(0,c.useSyncExternalStore)(H,Ze,Ze);return{hasHold:Fe(),token:Pe(),heldUntil:e,setToken:J,touch:Y,clear:X}}function et(){return{theme:(0,c.useSyncExternalStore)(Ue,We,We),set:Q,cycle:Ge}}var tt=15e4,nt=class extends DOMException{constructor(){super(`The read timed out. Try again.`,`AbortError`)}},$=class extends Error{status;path;detail;code;constructor(e,t,n,r=null,i=null){super(e),this.status=t,this.path=n,this.detail=r,this.code=i,this.name=`ApiError`}},rt=class extends ${constructor(e){super(`This server was started without --allow-dispatch, so mutations are disabled.`,404,e),this.name=`DispatchDisabledError`}};function it(e){return e instanceof $?e.detail??`The server answered HTTP ${e.status}.`:e instanceof nt?e.message:e instanceof TypeError?`The server did not answer.`:`The request failed.`}var at=()=>i(()=>import(`./remote-session-JK5xGsry.js`),__vite__mapDeps([0]));async function ot(e,t){let n=new AbortController,r=()=>n.abort(t.reason);t?.aborted?r():t?.addEventListener(`abort`,r,{once:!0});let i=setTimeout(()=>n.abort(new nt),tt);try{if(n.signal.aborted)throw n.signal.reason;let t=await st(e,n.signal);if(n.signal.aborted)throw n.signal.reason;return t}catch(e){throw n.signal.aborted?n.signal.reason:e}finally{clearTimeout(i),t?.removeEventListener(`abort`,r)}}async function st(e,t){if(k())return await(await at()).remoteApiGet(e,t);let n=await fetch(e,{method:`GET`,credentials:`same-origin`,headers:{"x-ashlr-read-client":W()},signal:t});if(n.status===401)throw q(),new $(`Read session expired.`,401,e);if(!n.ok){let{detail:t,code:r}=await dt(n);throw new $(`GET ${e} failed (HTTP ${n.status}).`,n.status,e,t||null,r)}return await n.json()}function ct(e,t,n,r){return ut(`POST`,e,t,n,r)}function lt(e,t,n){return ut(`DELETE`,e,{},t,n)}async function ut(e,t,n,r,i){if(k())return(await at()).remoteMutate(e,t,n);let a=e===`POST`,o=await fetch(t,{method:e,credentials:`same-origin`,headers:a?{"Content-Type":`application/json`,"x-ashlr-token":r}:{"x-ashlr-token":r},...a?{body:JSON.stringify(n??{})}:{},signal:i});if(o.status===401)throw new $(`Mutation token was rejected.`,401,t);if(!o.ok){let{detail:n,code:r}=await dt(o);throw o.status===404&&r===null?new rt(t):new $(`${e} ${t} failed (HTTP ${o.status})${n?`: ${n}`:``}.`,o.status,t,n||null,r)}if(o.status===204)return;if(a)return await o.json();let s=await o.text();return s?JSON.parse(s):void 0}async function dt(e){try{let t=await e.json();return{detail:typeof t.error==`string`&&t.error?t.error:typeof t.note==`string`&&t.note?t.note:typeof t.message==`string`?t.message:``,code:typeof t.code==`string`&&t.code?t.code:null}}catch{return{detail:``,code:null}}}export{Ie as A,_ as B,Pe as C,Ae as D,je as E,_e as F,y as G,pe as H,ye as I,o as J,ue as K,be as L,Y as M,k as N,q as O,xe as P,ve as R,U as S,Fe as T,fe as U,b as V,ae as W,ee as X,s as Y,Ne as _,ct as a,ke as b,$e as c,Ye as d,et as f,Ue as g,Q as h,ot as i,H as j,J as k,qe as l,We as m,rt as n,it as o,Ge as p,se as q,lt as r,Qe as s,$ as t,Je as u,Ce as v,W as w,G as x,X as y,de as z};
|
|
3
|
+
//# sourceMappingURL=global-Bn1GsjsC.js.map
|