@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,"file":"needs-you-model-D4Hc76C2.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/approvals/approvals-model.ts","../../../../../../src/web-ui/routes/verse/shell/needs-you-model.ts"],"sourcesContent":["/**\n * routes/verse/approvals/approvals-model.ts — the pure decisions behind the\n * approvals queue: what order rows come in, and exactly what a human is\n * agreeing to when they press Approve.\n *\n * Kept framework-free and unit-tested because both are easy to get subtly\n * wrong: \"pending first\" must survive a status filter that also returns\n * decided rows, and the approve consequence sentence is the last thing\n * standing between a click and a real pull request against a real remote.\n */\nimport type { Proposal, ProposalKind } from '../../../data/api-types.js';\nimport { ENGINE_LABEL } from '../verse-model.js';\n\n/** Pending first, then newest first within each group. Stable and total. */\nexport function orderProposals(rows: readonly Proposal[]): Proposal[] {\n return [...rows].sort((a, b) => {\n const pendingA = a.status === 'pending' ? 0 : 1;\n const pendingB = b.status === 'pending' ? 0 : 1;\n if (pendingA !== pendingB) return pendingA - pendingB;\n const tsA = Date.parse(a.createdAt);\n const tsB = Date.parse(b.createdAt);\n const safeA = Number.isNaN(tsA) ? 0 : tsA;\n const safeB = Number.isNaN(tsB) ? 0 : tsB;\n if (safeA !== safeB) return safeB - safeA;\n return a.id.localeCompare(b.id);\n });\n}\n\nexport type RiskClass = NonNullable<Proposal['riskClass']>;\n\n/** high → medium → low → unstated. Used for the risk column's sort affordance. */\nexport function riskRank(risk: Proposal['riskClass']): number {\n switch (risk) {\n case 'high':\n return 0;\n case 'medium':\n return 1;\n case 'low':\n return 2;\n default:\n return 3;\n }\n}\n\n/** Client-side narrowing over whatever page the server returned. */\nexport function filterProposals(rows: readonly Proposal[], search: string, repo: string): Proposal[] {\n const s = search.trim().toLowerCase();\n const r = repo.trim().toLowerCase();\n if (!s && !r) return [...rows];\n return rows.filter((p) => {\n if (s && !p.title.toLowerCase().includes(s) && !(p.summary ?? '').toLowerCase().includes(s)) return false;\n if (r && !(p.repo ?? '').toLowerCase().includes(r)) return false;\n return true;\n });\n}\n\n/**\n * What approving this proposal actually does, in one sentence, naming the\n * repo. `pr` is the dangerous one: it pushes a branch to the remote and opens\n * a real pull request, which is visible to other people and cannot be undone\n * from the dialog. The confirm step MUST show this before the click.\n */\nexport function describeApproveConsequence(kind: ProposalKind | string, repo: string | null): string {\n // The project's NAME, not its absolute path: a sandbox checkout under\n // /private/tmp/claude-501/… is unreadable in a sentence. The confirm dialog\n // still prints the full path once, as the exact place the write lands.\n const where = repoName(repo) ?? 'the target repository';\n switch (kind) {\n case 'pr':\n return `Pushes a branch to ${where}'s remote and opens a real pull request. Other people can see it immediately, and this dialog cannot undo it.`;\n case 'patch':\n return `Writes the diff to ${where} on disk now. Nothing is pushed, but the working tree changes.`;\n default:\n return `Applies this ${String(kind)} proposal to ${where} now.`;\n }\n}\n\n/** True when approving reaches a remote — the loudest confirm wording. */\nexport function reachesRemote(kind: ProposalKind | string): boolean {\n return kind === 'pr';\n}\n\n/** The engine that produced the diff, as a short display string. */\nexport function engineOf(proposal: Pick<Proposal, 'engineModel' | 'engineTier'>): string | null {\n if (proposal.engineModel) return proposal.engineModel;\n if (proposal.engineTier) return proposal.engineTier;\n return null;\n}\n\n// ---------------------------------------------------------------------------\n// Readable detail\n// ---------------------------------------------------------------------------\n\n/** \"/Users/m/repos/binshield/\" → \"binshield\"; null for no repo. */\nexport function repoName(repo: string | null | undefined): string | null {\n if (typeof repo !== 'string') return null;\n const trimmed = repo.trim().replace(/\\/+$/, '');\n if (trimmed.length === 0) return null;\n const last = trimmed.slice(trimmed.lastIndexOf('/') + 1);\n return last.length > 0 ? last : trimmed;\n}\n\nconst KIND_LABEL: Record<string, string> = {\n patch: 'Patch',\n pr: 'Pull request',\n deploy: 'Deploy',\n note: 'Note',\n 'desktop-action': 'Desktop action',\n 'browser-action': 'Browser action',\n};\n\n/** \"patch\" → \"Patch\", \"pr\" → \"Pull request\"; an unknown kind is shown as sent. */\nexport function kindLabel(kind: ProposalKind | string): string {\n return KIND_LABEL[kind] ?? String(kind);\n}\n\n/**\n * The server builds a run proposal's title as `${engine} run: ${goal.slice(0, 80)}`\n * — cut at 80 characters, mid-word, sometimes mid-quote. This is the one\n * place that cut is made readable.\n */\nexport const RUN_TITLE_GOAL_CAP = 80;\n\nexport interface ReadableTitle {\n /** \"Claude run\" when the title carried an `engine run:` prefix; null otherwise. */\n eyebrow: string | null;\n /** The title to print: never ends mid-word; a cut one ends in \"…\". */\n text: string;\n /** True when the server's title was cut short (the full text we have rides in a tooltip). */\n truncated: boolean;\n}\n\nfunction capitalize(word: string): string {\n return word.length === 0 ? word : word.charAt(0).toUpperCase() + word.slice(1);\n}\n\n/** The app's own display name for an engine (\"Claude\", \"Codex\"); any other engine capitalized (\"Ollama\"). */\nfunction engineDisplayName(engine: string): string {\n const key = engine.toLowerCase();\n return Object.prototype.hasOwnProperty.call(ENGINE_LABEL, key)\n ? ENGINE_LABEL[key as keyof typeof ENGINE_LABEL]\n : capitalize(key);\n}\n\n/** Close a quote the cut left open, so the title does not read as a stray mark. */\nfunction closeQuotes(text: string): string {\n let out = text;\n if ((out.match(/\"/g) ?? []).length % 2 === 1) out += '\"';\n if ((out.match(/\\u201c/g) ?? []).length > (out.match(/\\u201d/g) ?? []).length) out += '\\u201d';\n return out;\n}\n\n/** Drop a trailing partial word and end on \"…\". */\nfunction cutAtWord(text: string): string {\n const body = text.replace(/(?:\\u2026|\\.\\.\\.)$/, '');\n const space = body.lastIndexOf(' ');\n const whole = space > 0 ? body.slice(0, space) : body;\n return `${whole.replace(/[\\s,;:\\-\\u2013\\u2014]+$/, '')}\\u2026`;\n}\n\nexport function readableTitle(title: string): ReadableTitle {\n const raw = typeof title === 'string' ? title.trim() : '';\n // Only the engines the sandboxed runner names — \"Dry run: …\" is a title, not an engine.\n const run = /^(\\[partial\\]\\s*)?(claude|codex|grok|local|ollama|gemini|api[\\w-]*) run:\\s*(.*)$/is.exec(raw);\n // \"Partial Claude run\", never \"Partial claude run\": the engine is a name either way.\n const eyebrow = run ? `${run[1] ? 'Partial ' : ''}${engineDisplayName(run[2]!)} run` : null;\n let text = run ? run[3]! : raw;\n // A title that already ends in an ellipsis right after a letter was cut mid-word upstream.\n const cutMidWord = /[\\p{L}\\p{N}](?:\\u2026|\\.\\.\\.)$/u.test(text);\n // A run goal at exactly the server's cap that does not end on a sentence boundary was sliced.\n const sliced = run !== null && text.length >= RUN_TITLE_GOAL_CAP && !/[.!?)\"'\\u201d\\u2026]$/.test(text);\n const truncated = cutMidWord || sliced;\n if (truncated) text = cutAtWord(text);\n text = closeQuotes(text);\n return { eyebrow, text: text.length > 0 ? text : raw, truncated };\n}\n\n/**\n * What a sandboxed run's summary line says, taken apart. The server writes\n * `[Partial ]<source> <engine:model> run produced N file(s) (+A/-D). <rest>`\n * (core/run/sandboxed-engine.ts); anything else parses to null and is shown\n * verbatim.\n */\nexport interface RunFacts {\n partial: boolean;\n /** The server's source label, verbatim (\"TITRR\", \"Best-of-N winner\"). */\n source: string;\n /** The source in plain words (\"Test-and-repair loop\"). */\n sourceLabel: string;\n /** What the source means, for a tooltip; null when the label says it already. */\n sourceHint: string | null;\n /** \"claude:claude-fable-5\". */\n model: string;\n files: number;\n insertions: number;\n deletions: number;\n /** Whatever the summary says after the run facts (\"Review before applying.\"), or null. */\n rest: string | null;\n}\n\nconst RUN_SUMMARY = /^(Partial )?(.+?) (\\S+) run produced (\\d+) file\\(s\\) \\(\\+(\\d+)\\/-(\\d+)\\)\\.?\\s*([\\s\\S]*)$/;\n\n/**\n * TITRR is internal shorthand (core/run/orchestrator.ts M78: Test → Iterate →\n * Test → Refine → Repeat). The operator sees the plain name; the acronym and\n * what it did ride in the tooltip.\n */\nconst TITRR_HINT =\n 'TITRR — Test, Iterate, Test, Refine, Repeat: after its change the run re-ran the repository\\u2019s tests and repaired the change until they passed or it ran out of attempts.';\n\nfunction describeSource(source: string): { label: string; hint: string | null } {\n if (/\\bTITRR\\b/.test(source)) {\n const rest = source.replace(/\\bTITRR\\b\\s*/, '').trim();\n const qualifier = rest === 'api-model' ? ' (API model)'\n : rest === 'api-model required-diff' ? ' (API model, retried for a missing diff)'\n : rest === 'api-model failed producer' ? ' (API model, producer failed)'\n : rest.length > 0 ? ` (${rest})` : '';\n return { label: `Test-and-repair loop${qualifier}`, hint: TITRR_HINT };\n }\n if (/^best-of-n/i.test(source)) {\n return { label: source, hint: 'Several models attempted this change in parallel; a judge compared them.' };\n }\n if (source === 'api-model') return { label: 'API model run', hint: null };\n if (source === 'Sandboxed') return { label: 'Sandboxed run', hint: 'Produced in an isolated sandbox checkout; nothing touched your working tree.' };\n return { label: source, hint: null };\n}\n\nexport function parseRunSummary(summary: string | null | undefined): RunFacts | null {\n if (typeof summary !== 'string') return null;\n const m = RUN_SUMMARY.exec(summary.trim());\n if (!m) return null;\n const { label, hint } = describeSource(m[2]!);\n const rest = m[7]!.trim();\n return {\n partial: m[1] !== undefined,\n source: m[2]!,\n sourceLabel: label,\n sourceHint: hint,\n model: m[3]!,\n files: Number(m[4]),\n insertions: Number(m[5]),\n deletions: Number(m[6]),\n rest: rest.length > 0 ? rest : null,\n };\n}\n\n/** \"2 files · +384 −0\" (a real minus sign, grouped thousands). */\nexport function formatDiffStats(facts: Pick<RunFacts, 'files' | 'insertions' | 'deletions'>): string {\n const n = (v: number) => v.toLocaleString('en-US');\n return `${n(facts.files)} ${facts.files === 1 ? 'file' : 'files'} \\u00b7 +${n(facts.insertions)} \\u2212${n(facts.deletions)}`;\n}\n\n/** The same stats as a sentence for assistive tech: \"2 files changed, 384 lines added, 0 removed\". */\nexport function describeDiffStats(facts: Pick<RunFacts, 'files' | 'insertions' | 'deletions'>): string {\n const n = (v: number) => v.toLocaleString('en-US');\n return `${n(facts.files)} ${facts.files === 1 ? 'file' : 'files'} changed, ${n(facts.insertions)} ${facts.insertions === 1 ? 'line' : 'lines'} added, ${n(facts.deletions)} removed`;\n}\n\n/**\n * \"just now\", \"5 minutes ago\", \"yesterday\", \"38 days ago\", then \"on Aug 17\"\n * past two months. Written out in full: the detail view has the room, and\n * \"38d\" is a sidebar abbreviation.\n */\nexport function longAgo(iso: string | null | undefined, now: number = Date.now()): string {\n if (typeof iso !== 'string') return 'at an unknown time';\n const then = Date.parse(iso);\n if (!Number.isFinite(then)) return 'at an unknown time';\n const seconds = Math.max(0, Math.round((now - then) / 1000));\n if (seconds < 45) return 'just now';\n const rtf = new Intl.RelativeTimeFormat('en', { numeric: 'auto' });\n const minutes = Math.round(seconds / 60);\n if (minutes < 60) return rtf.format(-minutes, 'minute');\n const hours = Math.round(minutes / 60);\n if (hours < 24) return rtf.format(-hours, 'hour');\n const days = Math.round(hours / 24);\n if (days <= 60) return rtf.format(-days, 'day');\n return `on ${new Date(then).toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' })}`;\n}\n\n/** A local date and time for a tooltip: \"Mon, Aug 17, 3:12 PM\". */\nexport function localStamp(iso: string | null | undefined): string | undefined {\n if (typeof iso !== 'string') return undefined;\n const t = Date.parse(iso);\n if (!Number.isFinite(t)) return undefined;\n return new Date(t).toLocaleString([], { weekday: 'short', month: 'short', day: 'numeric', year: 'numeric', hour: 'numeric', minute: '2-digit' });\n}\n","/**\n * routes/verse/shell/needs-you-model.ts — the Needs-you drawer as data (unit\n * C1): which items a split shows, how many each split has, whether the drawer\n * may say \"All clear\", and what a key press does to an item.\n *\n * Pure. The items come from GET /api/verse/activity (C1's own producers plus\n * Track B's, R1); each carries its own actions, so nothing here knows what a\n * grant or an owner-lane PR is.\n *\n * How a row READS (needsYouRowView) borrows the approvals detail view's text\n * helpers rather than growing a second copy: an approval item's title and\n * detail are the same proposal title and run summary that view already\n * untangles.\n */\nimport {\n NEEDS_YOU_KIND_CATEGORY,\n type NeedsYouAction,\n type NeedsYouActionKind,\n type NeedsYouItem,\n type NeedsYouSource,\n type VerseActivitySources,\n} from '../../../../core/verse/workbench-types.js';\nimport {\n describeDiffStats,\n formatDiffStats,\n kindLabel,\n localStamp,\n longAgo,\n parseRunSummary,\n readableTitle,\n repoName,\n} from '../approvals/approvals-model.js';\nimport type { VerseSeat } from '../../../data/api-types.js';\nimport { isVerseEngine, modelOptionFor, seatById } from '../verse-model.js';\nimport type { NeedsYouSplit } from '../verse-ui-store.js';\n\nexport const SPLIT_LABEL: Readonly<Record<NeedsYouSplit, string>> = {\n all: 'All',\n approvals: 'Approvals',\n fleet: 'Fleet',\n chats: 'Chats',\n accounts: 'Accounts',\n};\n\n/**\n * Which producers can put an item in each split. \"All clear\" is only\n * claimed for a split whose every producer answered: an owner-lane PR is in\n * Approvals but comes from the FLEET producer, so Approvals is only vouched\n * for when the fleet source answered too.\n */\nexport const SPLIT_SOURCES: Readonly<Record<NeedsYouSplit, readonly NeedsYouSource[]>> = {\n all: ['approvals', 'authority', 'fleet', 'leader', 'chats', 'accounts'],\n approvals: ['approvals', 'fleet', 'leader'],\n fleet: ['authority', 'fleet', 'leader'],\n chats: ['chats'],\n accounts: ['accounts'],\n};\n\nconst SOURCE_NAME: Readonly<Record<NeedsYouSource, string>> = {\n approvals: 'the approvals inbox',\n authority: 'the autonomy grant',\n fleet: 'the fleet',\n leader: 'the Leader',\n chats: 'chats',\n accounts: 'account health',\n};\n\nexport function itemsForSplit(items: readonly NeedsYouItem[], split: NeedsYouSplit): NeedsYouItem[] {\n if (split === 'all') return [...items];\n return items.filter((item) => NEEDS_YOU_KIND_CATEGORY[item.kind] === split);\n}\n\nexport function splitCounts(items: readonly NeedsYouItem[]): Record<NeedsYouSplit, number> {\n const counts: Record<NeedsYouSplit, number> = { all: items.length, approvals: 0, fleet: 0, chats: 0, accounts: 0 };\n for (const item of items) counts[NEEDS_YOU_KIND_CATEGORY[item.kind]] += 1;\n return counts;\n}\n\nexport interface SplitCoverage {\n /** Every producer feeding this split answered. */\n vouched: boolean;\n /** Operator-language names of the ones that did not, with why. */\n silent: Array<{ source: NeedsYouSource; name: string; state: 'unavailable' | 'error' }>;\n}\n\n/** Null sources (activity itself unavailable) vouch for nothing. */\nexport function splitCoverage(sources: VerseActivitySources | null, split: NeedsYouSplit): SplitCoverage {\n const silent: SplitCoverage['silent'] = [];\n for (const source of SPLIT_SOURCES[split]) {\n const state = sources?.[source] ?? 'unavailable';\n if (state !== 'ok') silent.push({ source, name: SOURCE_NAME[source], state });\n }\n return { vouched: silent.length === 0, silent };\n}\n\n/** \"the fleet isn't reporting yet and the Leader failed to answer\" — for the empty state. */\nexport function describeSilence(coverage: SplitCoverage): string {\n const phrases = coverage.silent.map((s) => (s.state === 'error' ? `${s.name} failed to answer` : `${s.name} isn't reporting in this build`));\n if (phrases.length === 0) return '';\n if (phrases.length === 1) return capitalise(phrases[0]!);\n return capitalise(`${phrases.slice(0, -1).join(', ')} and ${phrases[phrases.length - 1]}`);\n}\n\nfunction capitalise(text: string): string {\n return text.charAt(0).toUpperCase() + text.slice(1);\n}\n\n/** Approve / reject / veto ALWAYS confirm (SPEC-310C §1); other kinds only when the item says so. */\nexport const ALWAYS_CONFIRM: ReadonlySet<NeedsYouActionKind> = new Set(['approve', 'reject', 'veto']);\n\nexport function actionOf(item: NeedsYouItem, kind: NeedsYouActionKind): NeedsYouAction | null {\n return item.actions.find((a) => a.kind === kind) ?? null;\n}\n\nconst GENERIC_CONFIRM: Readonly<Record<'approve' | 'reject' | 'veto', { title: string; confirmLabel: string }>> = {\n approve: { title: 'Approve this?', confirmLabel: 'Approve' },\n reject: { title: 'Reject this?', confirmLabel: 'Reject' },\n veto: { title: 'Veto this action?', confirmLabel: 'Veto' },\n};\n\nexport interface ConfirmCopy {\n title: string;\n body: string;\n confirmLabel: string;\n}\n\n/** The dialog for `action` on `item`; null when the action runs without one. */\nexport function confirmCopy(item: NeedsYouItem, action: NeedsYouAction): ConfirmCopy | null {\n if (action.confirm) return action.confirm;\n if (action.kind === 'approve' || action.kind === 'reject' || action.kind === 'veto') {\n const generic = GENERIC_CONFIRM[action.kind];\n return { title: generic.title, body: readableItemTitle(item).text, confirmLabel: generic.confirmLabel };\n }\n return null;\n}\n\n// ---------------------------------------------------------------------------\n// How a row reads\n// ---------------------------------------------------------------------------\n\n/**\n * The approvals producer titles an item `${kind === 'pr' ? 'PR' : kind}: ${proposal.title}`\n * (core/verse/activity.ts approvalItem). Only an `approval` item is taken\n * apart this way — \"Failed: Migrate the store\" is a chat title, not a kind.\n */\nconst APPROVAL_KIND_PREFIX = /^(PR|[a-z][a-z-]*):\\s+([\\s\\S]+)$/;\n\nexport interface ReadableItemTitle {\n /** \"Patch · Claude run\": the proposal kind and the engine the title led with; null when neither. */\n kindLabel: string | null;\n /** The title to print. Never ends mid-word — a cut one ends in \"…\". */\n text: string;\n}\n\nexport function readableItemTitle(item: Pick<NeedsYouItem, 'kind' | 'title'>): ReadableItemTitle {\n let proposalKind: string | null = null;\n let rest = item.title;\n if (item.kind === 'approval') {\n const m = APPROVAL_KIND_PREFIX.exec(item.title.trim());\n if (m) {\n proposalKind = m[1] === 'PR' ? 'pr' : m[1]!;\n rest = m[2]!;\n }\n }\n const title = readableTitle(rest);\n const parts = [proposalKind === null ? null : kindLabel(proposalKind), title.eyebrow].filter((p): p is string => p !== null);\n return { kindLabel: parts.length > 0 ? parts.join(' · ') : null, text: title.text };\n}\n\n/** A sandboxed run's facts, lifted out of the item's detail line. */\nexport interface NeedsYouRunView {\n /** \"2 files · +384 −0\". */\n stats: string;\n /** \"2 files changed, 384 lines added, 0 removed\" — what a screen reader says instead. */\n statsSpoken: string;\n /** \"Test-and-repair loop\", never \"TITRR\". */\n source: string;\n /** What the source means, for a tooltip. */\n sourceHint: string | null;\n partial: boolean;\n /** \"claude:claude-fable-5\". */\n model: string;\n}\n\n/** Everything a Needs-you row prints, in operator language. The raw server text survives only in tooltips. */\nexport interface NeedsYouRowView {\n kindLabel: string | null;\n title: string;\n /** The title exactly as the server sent it — the row's tooltip. */\n fullTitle: string;\n run: NeedsYouRunView | null;\n /** What the detail says beyond the run facts (\"Review before applying.\"), or the detail verbatim; null when nothing. */\n detail: string | null;\n /** \"binshield\", never a path. */\n repo: string | null;\n /** The repo as sent, as a tooltip, when it was more than the name. */\n repoFull: string | undefined;\n /** \"38 days ago\". */\n age: string;\n /** The exact local time, for a tooltip. */\n ageStamp: string | undefined;\n}\n\nexport function needsYouRowView(item: NeedsYouItem, now: number = Date.now()): NeedsYouRowView {\n const title = readableItemTitle(item);\n const facts = parseRunSummary(item.detail);\n const repo = repoName(item.subject.repo);\n return {\n kindLabel: title.kindLabel,\n title: title.text,\n fullTitle: item.title,\n run: facts\n ? {\n stats: formatDiffStats(facts),\n statsSpoken: describeDiffStats(facts),\n source: facts.sourceLabel,\n sourceHint: facts.sourceHint,\n partial: facts.partial,\n model: facts.model,\n }\n : null,\n detail: facts ? facts.rest : item.detail,\n repo,\n repoFull: repo !== null && item.subject.repo !== null && item.subject.repo !== repo ? item.subject.repo : undefined,\n age: longAgo(item.since, now),\n ageStamp: localStamp(item.since),\n };\n}\n\n/** \"closes in 24m\" / \"expired\" — for veto windows and grants. */\nexport function until(iso: string, now: number = Date.now()): string {\n const t = Date.parse(iso);\n if (!Number.isFinite(t)) return '—';\n const s = Math.round((t - now) / 1000);\n if (s <= 0) return 'expired';\n if (s < 90) return `in ${s}s`;\n const m = Math.round(s / 60);\n if (m < 90) return `in ${m}m`;\n const h = Math.round(m / 60);\n if (h < 48) return `in ${h}h`;\n return `in ${Math.round(h / 24)}d`;\n}\n\n// ---------------------------------------------------------------------------\n// Seats and models, by name\n// ---------------------------------------------------------------------------\n\n/** A seat or model as the operator knows it; `raw` is the id as sent, for a tooltip, when the text differs. */\nexport interface DisplayName {\n text: string;\n raw: string | undefined;\n}\n\n/**\n * \"Claude Max\" for `claude-a`: the roster's label (bootstrap seats — the name\n * the seat picker and Apps & Accounts use). An id the roster does not know is\n * shown as sent: it is all there is.\n */\nexport function seatDisplayName(seats: readonly VerseSeat[], seatId: string): DisplayName {\n const label = seatById(seats, seatId)?.label;\n return label && label !== seatId ? { text: label, raw: seatId } : { text: seatId, raw: undefined };\n}\n\n/**\n * \"Fable 5.1\" for a run's `claude:claude-fable-5-1`: the catalog label (the\n * model picker's) on the item's own seat first, then on any seat of the run's\n * engine — exact id, then canonical (verse-model `modelOptionFor`, so a\n * pre-alias `claude-opus-5.5` still finds `claude-opus-5-5`). A model no\n * catalog lists is shown as sent.\n */\nexport function runModelDisplayName(seats: readonly VerseSeat[], model: string, seatId: string | null): DisplayName {\n const colon = model.indexOf(':');\n const prefix = colon > 0 ? model.slice(0, colon) : '';\n const engine = isVerseEngine(prefix) ? prefix : null;\n // `local:qwen3.8:27b` keeps its tag: only a known engine prefix is split off.\n const id = engine ? model.slice(colon + 1) : model;\n const order = [\n ...(seatId ? [seatId] : []),\n ...seats.filter((seat) => seat.id !== seatId && (engine === null || seat.engine === engine)).map((seat) => seat.id),\n ];\n for (const candidate of order) {\n const label = modelOptionFor(seats, { seatId: candidate, model: id })?.label;\n if (label && label !== model) return { text: label, raw: model };\n }\n return { text: model, raw: undefined };\n}\n"],"mappings":"iHA8DA,SAAgB,EAA2B,EAA6B,EAA6B,CAInG,IAAM,EAAQ,EAAS,CAAI,GAAK,wBAChC,OAAQ,EAAR,CACE,IAAK,KACH,MAAO,sBAAsB,EAAM,+GACrC,IAAK,QACH,MAAO,sBAAsB,EAAM,gEACrC,QACE,MAAO,gBAAgB,OAAO,CAAI,EAAE,eAAe,EAAM,MAC7D,CACF,CAGA,SAAgB,EAAc,EAAsC,CAClE,OAAO,IAAS,IAClB,CAGA,SAAgB,EAAS,EAAuE,CAG9F,OAFI,EA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a_euRZCd.js";import"./focus-trap-olnXbwrV.js";import"./Dialog-3jP1MpHx.js";import"./Epistemic-XGQD1CWe.js";import"./StatusBadge-CqVVJ9Xj.js";import"./RouteErrorBoundary-B5zsnh0Y.js";import"./RefreshIndicator-D9b6YBnT.js";import"./VerseConsoleApp-DY0SUyQ3.js";import"./Segmented-Bwr3-jew.js";import"./Tag-D8CcAgYv.js";import"./Button-CnmMhe43.js";import"./EmptyState-D-hNeIUI.js";import"./Meter-D2_9N9KF.js";import"./Sheet-CXDU9h9d.js";import"./Switch-DS4ekIJx.js";import"./Slider-BNmmHzrQ.js";import"./Select-CQ5vJHhZ.js";import"./Input-BsY2wWuf.js";var e={card:`_card_4103c_14`,"onboarding-in":`_onboarding-in_4103c_1`,guide:`_guide_4103c_56`,head:`_head_4103c_99`,headText:`_headText_4103c_107`,eyebrow:`_eyebrow_4103c_115`,title:`_title_4103c_123`,subtitle:`_subtitle_4103c_131`,body:`_body_4103c_139`,lead:`_lead_4103c_150`,aside:`_aside_4103c_156`,caveat:`_caveat_4103c_157`,kbd:`_kbd_4103c_168`,sections:`_sections_4103c_181`,findings:`_findings_4103c_182`,sectionRow:`_sectionRow_4103c_191`,sectionIcon:`_sectionIcon_4103c_203`,localIcon:`_localIcon_4103c_204`,sectionText:`_sectionText_4103c_216`,sectionName:`_sectionName_4103c_223`,sectionBlurb:`_sectionBlurb_4103c_233`,finding:`_finding_4103c_182`,findingHead:`_findingHead_4103c_253`,stopName:`_stopName_4103c_261`,findingDetail:`_findingDetail_4103c_268`,findingNote:`_findingNote_4103c_274`,findingFix:`_findingFix_4103c_280`,fixLabel:`_fixLabel_4103c_288`,fixText:`_fixText_4103c_297`,code:`_code_4103c_303`,tone:`_tone_4103c_319`,toneLabel:`_toneLabel_4103c_326`,foot:`_foot_4103c_348`,pips:`_pips_4103c_358`,pip:`_pip_4103c_358`,actions:`_actions_4103c_381`,chip:`_chip_4103c_405`,chipOpen:`_chipOpen_4103c_421`,chipDismiss:`_chipDismiss_4103c_422`,chipLabel:`_chipLabel_4103c_442`,chipCount:`_chipCount_4103c_450`};export{e as t};
|
|
2
|
+
//# sourceMappingURL=onboarding.module-CL4-EPe7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboarding.module-CL4-EPe7.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/onboarding/onboarding.module.css"],"sourcesContent":["/* First-run tour — a docked card, not a dialog. No backdrop: the app behind\n it stays visible and clickable, which is the whole design constraint.\n Hairlines and one elevation (DESIGN-V2 §1/§2); the only colour is the\n status tone on a glyph, never on body text. */\n\n/* Docked bottom-LEFT of the content area, not bottom-right of the viewport.\n The composer is centred on --measure-read inside the workspace and its\n control row — seat pill, mic, Send/Stop — sits at the bottom of that column,\n right-aligned. A 420px card pinned to the viewport's bottom-right lands on\n top of exactly those controls at ordinary window widths, which breaks this\n file's own rule 1: everything behind the card stays clickable. Clearing the\n rail and hugging the left edge keeps it out of the composer's way in both\n the wide and the 900px layouts. */\n.card {\n position: fixed;\n z-index: var(--z-dialog);\n left: calc(var(--rail-width) + var(--space-5));\n right: auto;\n bottom: calc(var(--space-5) + env(safe-area-inset-bottom, 0px));\n width: min(420px, calc(100vw - var(--rail-width) - var(--space-5) * 2));\n max-height: min(640px, calc(100vh - var(--space-8)));\n display: flex;\n flex-direction: column;\n overflow: hidden;\n background: var(--bg-surface-raised);\n border: 1px solid var(--border-default);\n border-radius: var(--radius-lg);\n box-shadow: var(--shadow-dialog);\n}\n\n/* One declaration, correct in all four motion states. `--duration-base`\n already collapses to 1ms under BOTH triggers the app honours — the OS\n preference (unless Settings asked for full motion) and Settings' own\n `data-motion=\"reduce\"` — so a bare `prefers-reduced-motion` media query was\n wrong in two of them: it ignored an operator who chose Reduce in Settings,\n and it removed the animation from one who chose Full against an OS reduce\n preference. This is a one-shot animation, so unlike the persistent\n `.dictationPulse`/`.caret` cases it needs no by-name rules. */\n.card {\n animation: onboarding-in var(--duration-base) var(--ease-decelerate);\n}\n\n@keyframes onboarding-in {\n from {\n opacity: 0;\n transform: translateY(4px);\n }\n to {\n opacity: 1;\n transform: none;\n }\n}\n\n/* ------------------------------------------------------------------ head */\n\n.guide {\n padding: var(--space-3) 0;\n border-bottom: 1px solid var(--border-subtle);\n font-size: var(--text-sm-size);\n line-height: var(--text-sm-line-relaxed);\n color: var(--text-secondary);\n}\n\n.guide summary {\n cursor: pointer;\n font-weight: var(--font-weight-medium);\n color: var(--text-primary);\n}\n\n.guide summary:focus-visible,\n.guide a:focus-visible {\n outline: 2px solid var(--border-focus);\n outline-offset: 3px;\n}\n\n.guide dl {\n margin: var(--space-3) 0;\n}\n\n.guide dt {\n margin-top: var(--space-3);\n font-weight: var(--font-weight-medium);\n color: var(--text-primary);\n}\n\n.guide dd {\n margin: var(--space-1) 0 0;\n}\n\n.guide p {\n margin-bottom: var(--space-3);\n}\n\n.guide a {\n color: var(--text-link);\n text-underline-offset: 3px;\n}\n\n.head {\n display: flex;\n align-items: flex-start;\n gap: var(--space-2);\n padding: var(--space-4) var(--space-4) var(--space-3);\n border-bottom: 1px solid var(--border-subtle);\n}\n\n.headText {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.eyebrow {\n font-family: var(--font-display);\n font-size: var(--text-2xs-size);\n letter-spacing: var(--tracking-label);\n text-transform: uppercase;\n color: var(--text-tertiary);\n}\n\n.title {\n font-family: var(--font-display);\n font-size: var(--text-md-size);\n font-weight: var(--font-weight-semibold);\n letter-spacing: var(--tracking-display);\n color: var(--text-primary);\n}\n\n.subtitle {\n font-size: var(--text-xs-size);\n line-height: var(--text-xs-line-relaxed);\n color: var(--text-secondary);\n}\n\n/* ------------------------------------------------------------------ body */\n\n.body {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n padding: var(--space-4);\n display: flex;\n flex-direction: column;\n gap: var(--space-3);\n align-items: flex-start;\n}\n\n.lead {\n font-size: var(--text-sm-size);\n line-height: var(--text-sm-line-relaxed);\n color: var(--text-primary);\n}\n\n.aside,\n.caveat {\n font-size: var(--text-xs-size);\n line-height: var(--text-xs-line-relaxed);\n color: var(--text-tertiary);\n}\n\n.caveat {\n border-left: 2px solid var(--border-strong);\n padding-left: var(--space-3);\n}\n\n.kbd {\n font-family: var(--font-mono);\n font-size: var(--text-2xs-size);\n padding: 1px 5px;\n border: 1px solid var(--border-default);\n border-radius: var(--radius-xs);\n background: var(--bg-surface);\n color: var(--text-secondary);\n white-space: nowrap;\n}\n\n/* --------------------------------------------------------- rail overview */\n\n.sections,\n.findings {\n list-style: none;\n margin: 0;\n padding: 0;\n width: 100%;\n display: flex;\n flex-direction: column;\n}\n\n.sectionRow {\n display: flex;\n align-items: flex-start;\n gap: var(--space-3);\n padding: var(--space-2) 0;\n border-top: 1px solid var(--border-subtle);\n}\n\n.sectionRow:first-child {\n border-top: none;\n}\n\n.sectionIcon,\n.localIcon {\n flex: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n /* Derived from the density scale rather than a literal, so compact density\n actually reaches it (design/control-density.test.ts). */\n width: var(--control-h-xs);\n height: var(--control-h-xs);\n color: var(--text-tertiary);\n}\n\n.sectionText {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n\n.sectionName {\n font-family: var(--font-display);\n font-size: var(--text-xs-size);\n font-weight: var(--font-weight-semibold);\n color: var(--text-primary);\n display: inline-flex;\n align-items: center;\n gap: var(--space-2);\n}\n\n.sectionBlurb {\n font-size: var(--text-xs-size);\n line-height: var(--text-xs-line-relaxed);\n color: var(--text-secondary);\n}\n\n/* ----------------------------------------------------------- findings */\n\n.finding {\n display: flex;\n flex-direction: column;\n gap: var(--space-1);\n padding: var(--space-3) 0;\n border-top: 1px solid var(--border-subtle);\n}\n\n.finding:first-child {\n border-top: none;\n}\n\n.findingHead {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--space-2);\n flex-wrap: wrap;\n}\n\n.stopName {\n font-family: var(--font-display);\n font-size: var(--text-sm-size);\n font-weight: var(--font-weight-semibold);\n color: var(--text-primary);\n}\n\n.findingDetail {\n font-size: var(--text-xs-size);\n line-height: var(--text-xs-line-relaxed);\n color: var(--text-secondary);\n}\n\n.findingNote {\n font-size: var(--text-xs-size);\n line-height: var(--text-xs-line-relaxed);\n color: var(--text-tertiary);\n}\n\n.findingFix {\n display: flex;\n align-items: baseline;\n gap: var(--space-2);\n flex-wrap: wrap;\n margin-top: 2px;\n}\n\n.fixLabel {\n font-family: var(--font-display);\n font-size: var(--text-2xs-size);\n letter-spacing: var(--tracking-label);\n text-transform: uppercase;\n color: var(--text-tertiary);\n flex: none;\n}\n\n.fixText {\n font-size: var(--text-xs-size);\n line-height: var(--text-xs-line-relaxed);\n color: var(--text-secondary);\n}\n\n.code {\n font-family: var(--font-mono);\n /* A command an operator is meant to READ and retype, not a micro-label:\n tokens.css reserves --text-2xs for uppercase labels and keyboard hints\n and sets the body floor at 12px. */\n font-size: var(--text-xs-size);\n padding: 2px 6px;\n border: 1px solid var(--border-subtle);\n border-radius: var(--radius-xs);\n background: var(--bg-code, var(--bg-surface));\n color: var(--text-primary);\n overflow-wrap: anywhere;\n}\n\n/* --------------------------------------------------------------- tone */\n\n.tone {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n flex: none;\n}\n\n.toneLabel {\n font-family: var(--font-display);\n font-size: var(--text-2xs-size);\n letter-spacing: var(--tracking-label);\n text-transform: uppercase;\n color: var(--text-secondary);\n}\n\n.tone[data-tone='ok'] {\n color: var(--status-success-fg, var(--text-secondary));\n}\n\n.tone[data-tone='attention'] {\n color: var(--status-warning-fg, var(--text-secondary));\n}\n\n.tone[data-tone='unknown'] {\n color: var(--text-tertiary);\n}\n\n/* ------------------------------------------------------------------ foot */\n\n.foot {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--space-3);\n padding: var(--space-3) var(--space-4);\n border-top: 1px solid var(--border-subtle);\n background: var(--bg-surface);\n}\n\n.pips {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n gap: 5px;\n}\n\n.pip {\n width: 14px;\n height: 2px;\n border-radius: 1px;\n background: var(--border-default);\n}\n\n.pip[data-state='current'] {\n background: var(--accent-500);\n}\n\n.pip[data-state='done'] {\n background: var(--border-strong);\n}\n\n.actions {\n display: flex;\n align-items: center;\n gap: var(--space-2);\n}\n\n/* Narrow layouts keep the SAME left anchor and the same cap. Stretching the\n card to `right: var(--space-3)` put it back over the composer's right end —\n which is exactly where Send and Stop sit — so the wide layout's fix stopped\n holding at the width where the window is tightest and the overlap matters\n most. Only the gutter tightens; the card still ends well left of Send. */\n@media (max-width: 900px) {\n .card {\n left: calc(var(--rail-width) + var(--space-3));\n right: auto;\n width: min(420px, calc(100vw - var(--rail-width) - var(--space-3) * 2));\n }\n}\n\n/* ------------------------------------------------------------------ chip */\n\n/* The tour's resting state: one line in the same corner the card opens from.\n The card is ~420×640 — half a 900px window — so it only appears when the\n operator asks for it; until then this is all Verse puts over a surface. */\n.chip {\n position: fixed;\n z-index: var(--z-dialog);\n left: calc(var(--rail-width) + var(--space-5));\n bottom: calc(var(--space-5) + env(safe-area-inset-bottom, 0px));\n display: inline-flex;\n align-items: center;\n max-width: calc(100vw - var(--rail-width) - var(--space-5) * 2);\n height: var(--control-h-sm);\n background: var(--bg-surface-raised);\n border: 1px solid var(--border-default);\n border-radius: var(--radius-full);\n box-shadow: var(--shadow-sm);\n animation: onboarding-in var(--duration-base) var(--ease-decelerate);\n}\n\n.chipOpen,\n.chipDismiss {\n display: inline-flex;\n align-items: center;\n height: 100%;\n border: none;\n background: transparent;\n color: var(--text-secondary);\n cursor: pointer;\n font: inherit;\n}\n\n.chipOpen {\n gap: var(--space-2);\n min-width: 0;\n padding: 0 var(--space-2) 0 var(--space-3);\n border-radius: var(--radius-full) 0 0 var(--radius-full);\n font-size: var(--text-xs-size);\n white-space: nowrap;\n}\n\n.chipLabel {\n font-family: var(--font-display);\n font-weight: var(--font-weight-semibold);\n color: var(--text-primary);\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.chipCount {\n font-family: var(--font-mono);\n font-size: var(--text-2xs-size);\n color: var(--text-tertiary);\n font-variant-numeric: tabular-nums;\n}\n\n.chipDismiss {\n justify-content: center;\n flex: none;\n width: var(--control-h-sm);\n border-left: 1px solid var(--border-subtle);\n border-radius: 0 var(--radius-full) var(--radius-full) 0;\n color: var(--text-tertiary);\n}\n\n.chipOpen:hover,\n.chipDismiss:hover {\n background: var(--bg-hover);\n color: var(--text-primary);\n}\n\n/* Focus lands on the card when the chip opens it; the ring would only be\n noise after a pointer click (keyboard focus still shows it). */\n.card:focus:not(:focus-visible) {\n outline: none;\n}\n\n@media (max-width: 900px) {\n .chip {\n left: calc(var(--rail-width) + var(--space-3));\n max-width: calc(100vw - var(--rail-width) - var(--space-3) * 2);\n }\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{I as e,S as t,Y as n,k as r,tt as i,w as a}from"./VerseConsoleApp-DY0SUyQ3.js";import{t as o}from"./open-terminal-request-Bk1zGcr_.js";import{a as s}from"./terminal-client-TU9ZERnP.js";var c=`That terminal is closed — its tab is no longer open.`,l=1500;function u(e){let t=!1,n=()=>{t||(t=!0,r(),clearTimeout(a),setTimeout(e,0))},r=i(n),a=setTimeout(n,l)}function d(i,o,s){t();let c=s?{tabId:o,blockId:s}:{tabId:o},l=a();if(i===null||!l.mounted.includes(`chat`)||l.activeSessionId===i){i?r(i):e(`chat`),n(c);return}r(i),u(()=>n(c))}async function f(e,t){let n=o(e);if(!n)return!1;let r=n.sessionId??null,i=null;try{i=await(t.list??(()=>s.list()))()}catch{i=null}if(i){let e=i.tabs.find(e=>e.id===n.tabId);if(!e)return t.toast(i.available?c:i.reason??`The terminal is not available here.`,`neutral`),!1;r=e.sessionId}return d(r,n.tabId,n.blockId),!0}export{f as openTerminalTarget};
|
|
2
|
+
//# sourceMappingURL=open-terminal-Cja6XiPm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-terminal-Cja6XiPm.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/shell/open-terminal.ts"],"sourcesContent":["/**\n * routes/verse/shell/open-terminal.ts — open a terminal tab where it lives\n * (3.15): its chat, the Terminal pane, the tab focused and — with a block id —\n * that command block shown. The one handler behind every terminal pointer\n * (shell/open-terminal-request.ts lists them); VerseApp loads it on demand.\n *\n * 1. Ask the server which chat the tab belongs to (GET /api/verse/terminal).\n * A tab that is gone says so (a toast) instead of opening an empty pane.\n * If the server cannot answer, the caller's own sessionId is used.\n * 2. Open that chat (or the Chat surface, for a tab without one).\n * 3. Raise the Terminal pane request `{ tabId, blockId }` — AFTER the chat\n * switch has landed: the chat surface drops pane requests on a switch\n * (ChatSection → clearDockRequests), so a request raised before it would\n * be thrown away with the chat being left.\n */\nimport type { VerseTerminalListResponse } from '../../../data/api-types.js';\nimport { requestTerminal, subscribeDockState } from '../dock/dock-store.js';\nimport { terminalApi } from '../dock/terminal/terminal-client.js';\nimport { closeVerseOverlay, getVerseUiState, openVerseSession, setVerseSection } from '../verse-ui-store.js';\nimport { normalizeOpenTerminalRequest } from './open-terminal-request.js';\n\nexport const TERMINAL_GONE_MESSAGE = 'That terminal is closed — its tab is no longer open.';\n\n/** Longest wait for the chat switch before the request is raised anyway. */\nexport const SWITCH_WAIT_MS = 1500;\n\nexport interface OpenTerminalDeps {\n toast: (message: string, tone?: 'neutral' | 'success' | 'danger') => void;\n /** Test seam: the terminal list read. */\n list?: () => Promise<VerseTerminalListResponse>;\n}\n\n/**\n * Run `fn` once the chat surface has switched chats: the switch's dock update\n * (activateDockChat) is followed, in the same effect, by clearDockRequests —\n * so `fn` runs on the next task, after both. Falls back to a timer so a\n * switch that never reports cannot swallow the request.\n */\nfunction afterChatSwitch(fn: () => void): void {\n let done = false;\n const fire = (): void => {\n if (done) return;\n done = true;\n unsubscribe();\n clearTimeout(timer);\n setTimeout(fn, 0);\n };\n const unsubscribe = subscribeDockState(fire);\n const timer = setTimeout(fire, SWITCH_WAIT_MS);\n}\n\n/** Show the tab: open its chat (or the Chat surface) and request the Terminal pane on it. */\nexport function showTerminalTab(sessionId: string | null, tabId: string, blockId: string | null): void {\n closeVerseOverlay();\n const request = blockId ? { tabId, blockId } : { tabId };\n const ui = getVerseUiState();\n // No switch is coming when there is no chat to open, when the chat surface\n // is not mounted yet (it mounts on the stored selection and keeps pending\n // requests), or when that chat is already the open one.\n if (sessionId === null || !ui.mounted.includes('chat') || ui.activeSessionId === sessionId) {\n if (sessionId) openVerseSession(sessionId);\n else setVerseSection('chat');\n requestTerminal(request);\n return;\n }\n openVerseSession(sessionId);\n afterChatSwitch(() => requestTerminal(request));\n}\n\n/**\n * Open a terminal tab. Resolves true when it was opened, false when the\n * request was malformed or the tab no longer exists (the operator is told).\n * `target` is an OpenTerminalRequest or a raw event detail (VerseApp passes it unread): it is\n * validated here, so the first-paint shell carries no validator.\n */\nexport async function openTerminalTarget(target: unknown, deps: OpenTerminalDeps): Promise<boolean> {\n const clean = normalizeOpenTerminalRequest(target);\n if (!clean) return false;\n let sessionId = clean.sessionId ?? null;\n let listed: VerseTerminalListResponse | null = null;\n try {\n listed = await (deps.list ?? (() => terminalApi.list()))();\n } catch {\n listed = null; // could not check: open where the caller said; the pane reports a missing tab\n }\n if (listed) {\n const tab = listed.tabs.find((t) => t.id === clean.tabId);\n if (!tab) {\n deps.toast(listed.available ? TERMINAL_GONE_MESSAGE : listed.reason ?? 'The terminal is not available here.', 'neutral');\n return false;\n }\n sessionId = tab.sessionId;\n }\n showTerminalTab(sessionId, clean.tabId, clean.blockId);\n return true;\n}\n"],"mappings":"gMAqBA,IAAa,EAAwB,uDAGxB,EAAiB,KAc9B,SAAS,EAAgB,EAAsB,CAC7C,IAAI,EAAO,GACL,MAAmB,CACnB,IACJ,EAAO,GACP,EAAY,EACZ,aAAa,CAAK,EAClB,WAAW,EAAI,CAAC,EAClB,EACM,EAAc,EAAmB,CAAI,EACrC,EAAQ,WAAW,EAAM,CAAc,CAC/C,CAGA,SAAgB,EAAgB,EAA0B,EAAe,EAA8B,CACrG,EAAkB,EAClB,IAAM,EAAU,EAAU,CAAE,QAAO,SAAQ,EAAI,CAAE,OAAM,EACjD,EAAK,EAAgB,EAI3B,GAAI,IAAc,MAAQ,CAAC,EAAG,QAAQ,SAAS,MAAM,GAAK,EAAG,kBAAoB,EAAW,CACtF,EAAW,EAAiB,CAAS,EACpC,EAAgB,MAAM,EAC3B,EAAgB,CAAO,EACvB,MACF,CACA,EAAiB,CAAS,EAC1B,MAAsB,EAAgB,CAAO,CAAC,CAChD,CAQA,eAAsB,EAAmB,EAAiB,EAA0C,CAClG,IAAM,EAAQ,EAA6B,CAAM,EACjD,GAAI,CAAC,EAAO,MAAO,GACnB,IAAI,EAAY,EAAM,WAAa,KAC/B,EAA2C,KAC/C,GAAI,CACF,EAAS,MAAO,EAAK,WAAe,EAAY,KAAK,GAAA,CAAI,CAC3D,MAAQ,CACN,EAAS,IACX,CACA,GAAI,EAAQ,CACV,IAAM,EAAM,EAAO,KAAK,KAAM,GAAM,EAAE,KAAO,EAAM,KAAK,EACxD,GAAI,CAAC,EAEH,OADA,EAAK,MAAM,EAAO,UAAY,EAAwB,EAAO,QAAU,sCAAuC,SAAS,EAChH,GAET,EAAY,EAAI,SAClB,CAEA,OADA,EAAgB,EAAW,EAAM,MAAO,EAAM,OAAO,EAC9C,EACT"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{i as e}from"./VerseConsoleApp-DY0SUyQ3.js";var t=/^t-[a-z0-9]{1,32}$/,n=/^b-\d{1,9}$/,r=/^[\w.-]{1,200}$/;function i(e){if(typeof e!=`object`||!e)return null;let i=e;if(typeof i.tabId!=`string`||!t.test(i.tabId))return null;let a=typeof i.blockId==`string`&&n.test(i.blockId)?i.blockId:null,o=typeof i.sessionId==`string`&&r.test(i.sessionId)?i.sessionId:null;return{tabId:i.tabId,blockId:a,sessionId:o}}function a(t){let n=i(t);n&&typeof window<`u`&&window.dispatchEvent(new CustomEvent(e,{detail:n}))}export{a as n,i as t};
|
|
2
|
+
//# sourceMappingURL=open-terminal-request-Bk1zGcr_.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-terminal-request-Bk1zGcr_.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/shell/open-terminal-request.ts"],"sourcesContent":["/**\n * routes/verse/shell/open-terminal-request.ts — \"open this terminal tab\" as a\n * window event (3.15), so every place that can point at a terminal tab goes\n * through ONE handler:\n *\n * - a desktop notification click (`open-terminal:<tab>[/<block>]`),\n * - a `/verse/?terminal=<tab>&block=<block>` deep link,\n * - a `verse://terminal/<tab>/<block>` link in chat text (MessageMarkdown),\n * - a Needs-you row whose target is a terminal (drawer, Command card).\n *\n * VerseApp listens (it holds the toast) and runs shell/open-terminal.ts, a\n * lazy chunk: this module is on the first-paint path and stays tiny —\n * validation and an event, nothing else.\n */\n\nimport { VERSE_OPEN_TERMINAL_EVENT } from './open-terminal-event.js';\n\nexport { VERSE_OPEN_TERMINAL_EVENT };\n\nconst TAB_RE = /^t-[a-z0-9]{1,32}$/;\nconst BLOCK_RE = /^b-\\d{1,9}$/;\nconst SESSION_RE = /^[\\w.-]{1,200}$/;\n\nexport interface OpenTerminalRequest {\n tabId: string;\n /** A command block of that tab to show. */\n blockId: string | null;\n /**\n * The chat the tab belongs to, when the caller already knows it (a\n * Needs-you item). The handler still asks the server — the tab may have\n * closed, or moved — and uses this only if it cannot.\n */\n sessionId?: string | null;\n}\n\n/** The request, cleaned; null when the tab id is not one (never guessed). */\nexport function normalizeOpenTerminalRequest(value: unknown): OpenTerminalRequest | null {\n if (value === null || typeof value !== 'object') return null;\n const v = value as Record<string, unknown>;\n if (typeof v['tabId'] !== 'string' || !TAB_RE.test(v['tabId'])) return null;\n const blockId = typeof v['blockId'] === 'string' && BLOCK_RE.test(v['blockId']) ? v['blockId'] : null;\n const sessionId = typeof v['sessionId'] === 'string' && SESSION_RE.test(v['sessionId']) ? v['sessionId'] : null;\n return { tabId: v['tabId'], blockId, sessionId };\n}\n\n/** Ask the shell to open a terminal tab (its chat, the Terminal pane, the block). */\nexport function requestOpenTerminal(request: OpenTerminalRequest): void {\n const clean = normalizeOpenTerminalRequest(request);\n if (!clean || typeof window === 'undefined') return;\n window.dispatchEvent(new CustomEvent(VERSE_OPEN_TERMINAL_EVENT, { detail: clean }));\n}\n\n/** The shell's side. Malformed requests are dropped. */\nexport function subscribeOpenTerminal(handler: (request: OpenTerminalRequest) => void): () => void {\n function onRequest(event: Event): void {\n const clean = normalizeOpenTerminalRequest((event as CustomEvent<unknown>).detail);\n if (clean) handler(clean);\n }\n window.addEventListener(VERSE_OPEN_TERMINAL_EVENT, onRequest);\n return () => window.removeEventListener(VERSE_OPEN_TERMINAL_EVENT, onRequest);\n}\n"],"mappings":"kDAmBA,IAAM,EAAS,qBACT,EAAW,cACX,EAAa,kBAenB,SAAgB,EAA6B,EAA4C,CACvF,GAAsB,OAAO,GAAU,WAAnC,EAA6C,OAAO,KACxD,IAAM,EAAI,EACV,GAAI,OAAO,EAAE,OAAa,UAAY,CAAC,EAAO,KAAK,EAAE,KAAQ,EAAG,OAAO,KACvE,IAAM,EAAU,OAAO,EAAE,SAAe,UAAY,EAAS,KAAK,EAAE,OAAU,EAAI,EAAE,QAAa,KAC3F,EAAY,OAAO,EAAE,WAAiB,UAAY,EAAW,KAAK,EAAE,SAAY,EAAI,EAAE,UAAe,KAC3G,MAAO,CAAE,MAAO,EAAE,MAAU,UAAS,WAAU,CACjD,CAGA,SAAgB,EAAoB,EAAoC,CACtE,IAAM,EAAQ,EAA6B,CAAO,EAC7C,GAAS,OAAO,OAAW,KAChC,OAAO,cAAc,IAAI,YAAY,EAA2B,CAAE,OAAQ,CAAM,CAAC,CAAC,CACpF"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{C as e,M as t,V as n,a as r,i}from"./global-Bn1GsjsC.js";import{r as a}from"./VerseShared-CQLwhtIc.js";import{i as o}from"./manager-queries-COgqzx48.js";var s=`/api/verse/outcomes`,c=/^[a-z0-9](?:[a-z0-9._-]{0,78}[a-z0-9])?$/,l=`verse-outcomes`,u=e=>Array.isArray(e)&&e.every(e=>typeof e==`string`);function d(e){if(!e||typeof e!=`object`)return!1;let t=e;return typeof t.id==`string`&&c.test(t.id)&&Number.isSafeInteger(t.revision)&&t.revision>0&&Number.isSafeInteger(t.scopeRevision)&&t.scopeRevision>0&&!!t.scope&&typeof t.scope.desiredOutcome==`string`&&u(t.scope.targetRepos)&&u(t.scope.acceptance)&&[`waiting-plan`,`queued`,`running`,`waiting-verification`,`failed`,`paused`,`plan-verified`].includes(t.status)&&(t.manager===void 0||o(t.manager))&&Array.isArray(t.tasks)&&t.tasks.every(e=>!!e&&typeof e.key==`string`&&typeof e.title==`string`&&(e.repo===null||typeof e.repo==`string`)&&[`pending`,`claimed`,`running`,`proposed`,`failed`,`aborted`,`complete`,`approved`].includes(e.state)&&[e.runId,e.controllerRunId,e.proposalId,e.mergeIdentity].every(e=>e===null||typeof e==`string`))}var f={key:l,async fetch(e){let t=await i(s,e);if(!t||t.v!==1||![`healthy`,`missing`,`degraded`].includes(t.sourceState)||(t.sourceState===`degraded`?t.outcomes!==null:!Array.isArray(t.outcomes)||!t.outcomes.every(d))||!t.enrollment||![`healthy`,`degraded`].includes(t.enrollment.sourceState)||(t.enrollment.sourceState===`healthy`?!u(t.enrollment.repos):t.enrollment.repos!==null))throw Error(`Outcome records are unavailable.`);return t}};async function p(i,o,c,u,f){let p=e();if(!p)throw new a;let m={commandId:c,expectedRevision:u,...f?{scope:f}:{},...i===`start`?{id:o}:{},...i===`manager-configure`?{mode:`resident`,sessionId:null}:{}},h=await r(i===`start`?`${s}/start`:`${s}/${encodeURIComponent(o)}/${i}`,m,p);if(!h||!(`ok`in h)||h.ok!==!0||!d(h.outcome)||h.outcome.id!==o||i===`manager-configure`&&(h.outcome.manager?.sourceState!==`healthy`||h.outcome.manager.enabled!==!0||h.outcome.manager.mode!==`resident`||h.outcome.manager.sessionId!==null))throw Error(`The outcome write could not be confirmed. Refresh and retry with the same command.`);return t(),n(l),h}export{p as n,f as t};
|
|
2
|
+
//# sourceMappingURL=outcomes-queries-CgyKDzAe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outcomes-queries-CgyKDzAe.js","names":[],"sources":["../../../../../../src/core/verse/outcomes-api-types.ts","../../../../../../src/web-ui/routes/verse/fleet/outcomes-queries.ts"],"sourcesContent":["import type { OutcomeManagerProjection } from '../goals/outcome-manager.js';\nimport type { VerseManagerMessageReference } from './types.js';\nimport type { OutcomeScope } from '../goals/outcome-types.js';\n\nexport const OUTCOMES_PATH = '/api/verse/outcomes';\nexport const OUTCOME_ID_PATTERN = /^[a-z0-9](?:[a-z0-9._-]{0,78}[a-z0-9])?$/;\nexport type OutcomeStatus = 'waiting-plan' | 'queued' | 'running' | 'waiting-verification' | 'failed' | 'paused' | 'plan-verified';\nexport interface OutcomeTaskView {\n /** Immutable node identity for exact task context retrieval. */\n id: string;\n key: string;\n title: string;\n repo: string | null;\n state: 'pending' | 'claimed' | 'running' | 'proposed' | 'failed' | 'aborted' | 'complete' | 'approved';\n runId: string | null;\n controllerRunId: string | null;\n proposalId: string | null;\n mergeIdentity: string | null;\n}\nexport interface OutcomeView {\n id: string;\n revision: number;\n scopeRevision: number;\n scope: OutcomeScope;\n status: OutcomeStatus;\n tasks: OutcomeTaskView[];\n manager?: OutcomeManagerProjection;\n}\nexport interface OutcomesRead {\n v: 1;\n sourceState: 'healthy' | 'missing' | 'degraded';\n outcomes: OutcomeView[] | null;\n enrollment: { sourceState: 'healthy'; repos: string[] } | { sourceState: 'degraded'; repos: null };\n}\nexport interface OutcomeMutationInput {\n commandId: string;\n expectedRevision: number;\n scope?: OutcomeScope;\n}\nexport type OutcomeOperation =\n | { kind: 'read' }\n | { kind: 'start'; id: string; commandId: string; expectedRevision: number; scope: OutcomeScope }\n | { kind: 'edit'; id: string; commandId: string; expectedRevision: number; scope: OutcomeScope }\n | { kind: 'pause' | 'resume'; id: string; commandId: string; expectedRevision: number }\n | { kind: 'manager-configure'; id: string; commandId: string; expectedRevision: number; mode: 'interactive' | 'resident'; sessionId: string | null }\n | { kind: 'manager-interject'; id: string; commandId: string; expectedRevision: number; reference: VerseManagerMessageReference };\nexport type OutcomeOperationResult = OutcomesRead | {\n ok: true;\n disposition: 'recorded' | 'replayed';\n outcome: OutcomeView;\n} | { ok: false; reason: 'invalid' | 'conflict' | 'held' | 'unknown-source' | 'storage-failed' | 'unenrolled' };\n","import type { OutcomeOperationResult, OutcomeScope, OutcomesRead, OutcomeView } from './outcomes-types.js';\nimport { OUTCOMES_PATH, OUTCOME_ID_PATTERN } from '../../../../core/verse/outcomes-api-types.js';\nimport { 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 { VerseMutationLockedError } from '../verse-queries.js';\nimport { validManagerProjection } from '../multimodel/manager-queries.js';\n\nexport const OUTCOMES_KEY = 'verse-outcomes';\nconst strings = (value: unknown): value is string[] => Array.isArray(value) && value.every(item => typeof item === 'string');\nfunction validOutcome(value: unknown): value is OutcomeView {\n if (!value || typeof value !== 'object') return false;\n const row = value as OutcomeView;\n return typeof row.id === 'string' && OUTCOME_ID_PATTERN.test(row.id) && Number.isSafeInteger(row.revision) && row.revision > 0\n && Number.isSafeInteger(row.scopeRevision) && row.scopeRevision > 0 && !!row.scope && typeof row.scope.desiredOutcome === 'string'\n && strings(row.scope.targetRepos) && strings(row.scope.acceptance)\n && ['waiting-plan', 'queued', 'running', 'waiting-verification', 'failed', 'paused', 'plan-verified'].includes(row.status)\n && (row.manager === undefined || validManagerProjection(row.manager))\n && Array.isArray(row.tasks) && row.tasks.every(task => !!task && typeof task.key === 'string' && typeof task.title === 'string'\n && (task.repo === null || typeof task.repo === 'string')\n && ['pending', 'claimed', 'running', 'proposed', 'failed', 'aborted', 'complete', 'approved'].includes(task.state)\n && [task.runId, task.controllerRunId, task.proposalId, task.mergeIdentity].every(id => id === null || typeof id === 'string'));\n}\nexport const outcomesQuery: QueryDef<OutcomesRead> = {\n key: OUTCOMES_KEY,\n async fetch(signal) {\n const value = await apiGet<OutcomesRead>(OUTCOMES_PATH, signal);\n if (!value || value.v !== 1 || !['healthy', 'missing', 'degraded'].includes(value.sourceState) ||\n (value.sourceState === 'degraded' ? value.outcomes !== null : !Array.isArray(value.outcomes) || !value.outcomes.every(validOutcome)) || !value.enrollment ||\n !['healthy', 'degraded'].includes(value.enrollment.sourceState) ||\n (value.enrollment.sourceState === 'healthy' ? !strings(value.enrollment.repos) : value.enrollment.repos !== null)) throw new Error('Outcome records are unavailable.');\n return value;\n },\n};\n\nexport async function writeOutcome(action: 'start' | 'edit' | 'pause' | 'resume' | 'manager-configure', id: string, commandId: string, expectedRevision: number, scope?: OutcomeScope): Promise<OutcomeOperationResult> {\n const token = getMutationToken();\n if (!token) throw new VerseMutationLockedError();\n const body = { commandId, expectedRevision, ...(scope ? { scope } : {}), ...(action === 'start' ? { id } : {}),\n ...(action === 'manager-configure' ? { mode: 'resident', sessionId: null } : {}) };\n const result = await apiPost<OutcomeOperationResult>(action === 'start' ? `${OUTCOMES_PATH}/start` : `${OUTCOMES_PATH}/${encodeURIComponent(id)}/${action}`, body, token);\n if (!result || !('ok' in result) || result.ok !== true || !validOutcome(result.outcome) || result.outcome.id !== id ||\n action === 'manager-configure' && (result.outcome.manager?.sourceState !== 'healthy' || result.outcome.manager.enabled !== true ||\n result.outcome.manager.mode !== 'resident' || result.outcome.manager.sessionId !== null)) {\n throw new Error('The outcome write could not be confirmed. Refresh and retry with the same command.');\n }\n touchMutationHold();\n invalidate(OUTCOMES_KEY);\n return result;\n}\n"],"mappings":"gKAIA,IAAa,EAAgB,sBAChB,EAAqB,2CCIrB,EAAe,iBACtB,EAAW,GAAsC,MAAM,QAAQ,CAAK,GAAK,EAAM,MA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AS,MAAM,CAAY,IAAM,CAAC,EAAM,YAC/I,CAAC,CAAC,UAAW,UAAU,CAAC,CAAC,SAAS,EAAM,WAAW,WAAW,IAC7D,EAAM,WAAW,cAAgB,UAAY,CAAC,EAAQ,EAAM,WAAW,KAAK,EAAI,EAAM,WAAW,QAAU,MAAO,MAAU,MAAM,kCAAkC,EACzK,OAAO,CACT,CACF,EAEA,eAAsB,EAAa,EAAqE,EAAY,EAAmB,EAA0B,EAAuD,CACtN,IAAM,EAAQ,EAAiB,EAC/B,GAAI,CAAC,EAAO,MAAM,IAAI,EACtB,IAAM,EAAO,CAAE,YAAW,mBAAkB,GAAI,EAAQ,CAAE,OAAM,EAAI,CAAC,EAAI,GAAI,IAAW,QAAU,CAAE,IAAG,EAAI,CAAC,EAC1G,GAAI,IAAW,oBAAsB,CAAE,KAAM,WAAY,UAAW,IAAK,EAAI,CAAC,CAAG,EAC7E,EAAS,MAAM,EAAgC,IAAW,QAAU,GAAG,EAAc,QAAU,GAAG,EAAc,GAAG,mBAAmB,CAAE,EAAE,GAAG,IAAU,EAAM,CAAK,EACxK,GAAI,CAAC,GAAU,EAAE,OAAQ,IAAW,EAAO,KAAO,IAAQ,CAAC,EAAa,EAAO,OAAO,GAAK,EAAO,QAAQ,KAAO,GAC7G,IAAW,sBAAwB,EAAO,QAAQ,SAAS,cAAgB,WAAa,EAAO,QAAQ,QAAQ,UAAY,IACzH,EAAO,QAAQ,QAAQ,OAAS,YAAc,EAAO,QAAQ,QAAQ,YAAc,MACvF,MAAU,MAAM,oFAAoF,EAItG,OAFA,EAAkB,EAClB,EAAW,CAAY,EAChB,CACT"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{s as t}from"./index-v3DMReM2.js";import{C as n,M as r,V as i,a,i as o,t as s,u as c}from"./global-Bn1GsjsC.js";import{c as l}from"./format-CJtTUDfQ.js";import{n as u,t as d}from"./control-queries-DiL1qsoC.js";var f=e(t(),1);function p(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function m(e){return typeof e==`string`&&e.trim()!==``?e:null}function h(e){return typeof e==`boolean`?e:null}function g(e){return typeof e!=`number`||!Number.isFinite(e)||e<0?null:Math.floor(e)}function _(e){if(!p(e))return null;let t=m(e.kind);if(t===`until-paused`)return{kind:`until-paused`};if(t===`at-time`){let t=m(e.at);return t===null||Number.isNaN(Date.parse(t))?null:{kind:`at-time`,at:t}}if(t===`after-iterations`){let t=g(e.iterations);return t===null||t<=0?null:{kind:`after-iterations`,iterations:t}}return null}function v(e){if(!Array.isArray(e))return[];let t=[];for(let[n,r]of e.entries()){if(!p(r))continue;let e=m(r.repo);e!==null&&t.push({id:m(r.id)??`${e}:${n}`,repo:e,title:m(r.title)??`untitled change`,at:m(r.at),commit:m(r.commit)})}return t}function y(e){if(!Array.isArray(e))return[];let t=[];for(let[n,r]of e.entries()){if(!p(r))continue;let e=m(r.repo);e!==null&&t.push({id:m(r.id)??`${e}:${n}`,repo:e,title:m(r.title)??`untitled change`,at:m(r.at),reason:m(r.reason)??`no reason recorded`})}return t}function b(e){return p(e)?{tests:h(e.tests),lint:h(e.lint),typecheck:h(e.typecheck),autoMerge:h(e.autoMerge),branch:m(e.branch)}:null}function x(e){if(!p(e))return null;let t=m(e.runId);return t===null?null:{runId:t,startedAt:m(e.startedAt),stopRule:_(e.stopRule),iterationsDone:g(e.iterationsDone),repo:m(e.repo),activity:m(e.activity),merged:v(e.merged),discarded:y(e.discarded)}}function S(e){if(!p(e))return null;let t=h(e.armed);return t===null?null:{armed:t,run:x(e.run),repos:g(e.repos),...e.mirrors===void 0?{}:{mirrors:g(e.mirrors)},gate:b(e.gate)}}function C(e,t=new Date){let n=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!n)return null;let r=Number(n[1]),i=Number(n[2]);if(!Number.isInteger(r)||!Number.isInteger(i)||r<0||r>23||i<0||i>59)return null;let a=new Date(t);return a.setHours(r,i,0,0),a.getTime()<=t.getTime()&&a.setDate(a.getDate()+1),a.toISOString()}function w(e){if(!e)return`—`;let t=Date.parse(e);return Number.isNaN(t)?`—`:new Date(t).toLocaleTimeString(void 0,{hour:`2-digit`,minute:`2-digit`})}function T(e,t=new Date){if(!e)return!1;let n=Date.parse(e);return!Number.isNaN(n)&&new Date(n).toDateString()!==t.toDateString()}function E(e,t=new Date){switch(e.kind){case`until-paused`:return`Runs until you pause it — no stop time, no iteration limit.`;case`at-time`:return`Stops at ${w(e.at)}${T(e.at,t)?` tomorrow`:``}.`;case`after-iterations`:return`Stops after ${e.iterations} ${e.iterations===1?`iteration`:`iterations`}.`}}function D(e,t,n=Date.now()){if(e===null)return{headline:`Stop rule not stated`,remaining:`—`,percent:null,reached:!1};if(e.kind===`until-paused`)return{headline:`Runs until you pause it`,remaining:`no stop time, no iteration limit`,percent:null,reached:!1};if(e.kind===`at-time`){let r=Date.parse(e.at);if(Number.isNaN(r))return{headline:`Stop time not readable`,remaining:`—`,percent:null,reached:!1};let i=`Stops at ${w(e.at)}`,a=r-n;if(a<=0)return{headline:i,remaining:`stop time reached`,percent:100,reached:!0};let o=t?.startedAt?Date.parse(t.startedAt):NaN,s=Number.isNaN(o)||r<=o?null:Math.min(100,Math.max(0,Math.round((n-o)/(r-o)*100)));return{headline:i,remaining:`${l(a)} left`,percent:s,reached:!1}}let r=t?.iterationsDone,i=`Stops after ${e.iterations} ${e.iterations===1?`iteration`:`iterations`}`;return typeof r==`number`?{headline:i,remaining:`${r} of ${e.iterations} done`,percent:Math.min(100,Math.round(r/e.iterations*100)),reached:r>=e.iterations}:{headline:i,remaining:`— of ${e.iterations} done`,percent:null,reached:!1}}function O(e,t=Date.now()){if(!e)return`—`;let n=Date.parse(e);return Number.isNaN(n)?`—`:l(Math.max(0,t-n))}function k(e){if(e===null)return[];let t=[];return e.tests===!0&&t.push(`tests`),e.lint===!0&&t.push(`lint`),e.typecheck===!0&&t.push(`typecheck`),t}function A(e){if(e===null)return[`tests`,`lint`,`typecheck`];let t=[];return e.tests===null&&t.push(`tests`),e.lint===null&&t.push(`lint`),e.typecheck===null&&t.push(`typecheck`),t}function j(e){return e.length===0?``:e.length===1?e[0]:`${e.slice(0,-1).join(`, `)} and ${e[e.length-1]}`}var M=`verse-overnight`,N=`/api/verse/overnight`;function P(e){return e instanceof s?e.status===404?`Overnight runs are not available on this server.`:`${N} answered HTTP ${e.status}.`:`${N} could not be reached.`}var F={key:M,fetch:async e=>{try{let t=S(await o(N,e));return t===null?{value:null,available:!0,reason:`Unrecognized response — update Phantom.`}:{value:t,available:!0,reason:null}}catch(e){if(e instanceof s&&e.status===401||e instanceof DOMException&&e.name===`AbortError`)throw e;return{value:null,available:!1,reason:P(e)}}}};async function I(e,t){let i=n();if(!i)throw new u;let o=await a(e,t,i);return r(),o}function L(){i(M),i(d)}async function R(e){let t=await I(N,{action:`arm`,stopRule:e});return L(),t}async function z(){let e=await I(N,{action:`disarm`});return L(),e}var B=15e3;function V(e,t=B){let n=c(F);(0,f.useEffect)(()=>{if(!e)return;let r=null,i=()=>{r===null&&(r=setInterval(n,t))},a=()=>{r!==null&&(clearInterval(r),r=null)},o=()=>{if(document.visibilityState===`hidden`){a();return}n(),i()};return document.visibilityState!==`hidden`&&i(),document.addEventListener(`visibilitychange`,o),()=>{a(),document.removeEventListener(`visibilitychange`,o)}},[e,t,n])}export{E as a,A as c,D as d,V as i,j as l,z as n,O as o,F as r,k as s,R as t,C as u};
|
|
2
|
+
//# sourceMappingURL=overnight-queries-CX_pRDO0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overnight-queries-CX_pRDO0.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/autonomy/overnight-model.ts","../../../../../../src/web-ui/routes/verse/autonomy/overnight-queries.ts"],"sourcesContent":["/**\n * routes/verse/autonomy/overnight-model.ts — the pure half of the Overnight\n * panel: narrow the server's body, resolve the operator's stop rule, and\n * derive the one line that says how far the run is from stopping.\n *\n * Framework-free so it unit-tests without a DOM, and separate from the panel\n * because two of these functions are where the panel can most easily start\n * lying:\n *\n * - `projectOvernight` NARROWS, it does not cast. The route is being written\n * by another owner in parallel with this surface, so a field that drifts in\n * name or type has to degrade to `null` — which the panel renders as \"not\n * stated\" — rather than reach a render as `undefined` and crash, or reach\n * it as `0` and read as a fact. Same discipline as `fleet-model.ts`.\n * - `stopProgress` never invents a denominator. \"Until I pause it\" has no\n * progress, and drawing a bar for it would be a picture of a finish line\n * that does not exist.\n */\nimport { formatDuration, UNKNOWN } from './format.js';\nimport type {\n OvernightDiscard,\n OvernightGate,\n OvernightMerge,\n OvernightRun,\n OvernightStatus,\n OvernightStopRule,\n OvernightStopRuleKind,\n} from './overnight-contract.js';\n\n// ---------------------------------------------------------------------------\n// Narrowing\n// ---------------------------------------------------------------------------\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\nfunction str(value: unknown): string | null {\n return typeof value === 'string' && value.trim() !== '' ? value : null;\n}\n\nfunction bool(value: unknown): boolean | null {\n return typeof value === 'boolean' ? value : null;\n}\n\n/** A count. Negative and non-finite are not counts, so they are not observed. */\nfunction count(value: unknown): number | null {\n if (typeof value !== 'number' || !Number.isFinite(value) || value < 0) return null;\n return Math.floor(value);\n}\n\nexport function projectStopRule(raw: unknown): OvernightStopRule | null {\n if (!isRecord(raw)) return null;\n const kind = str(raw['kind']);\n if (kind === 'until-paused') return { kind: 'until-paused' };\n if (kind === 'at-time') {\n const at = str(raw['at']);\n // An unparseable instant is worse than no rule: it would render as a\n // countdown to NaN. Refuse it here so the panel can say \"not stated\".\n if (at === null || Number.isNaN(Date.parse(at))) return null;\n return { kind: 'at-time', at };\n }\n if (kind === 'after-iterations') {\n const iterations = count(raw['iterations']);\n if (iterations === null || iterations <= 0) return null;\n return { kind: 'after-iterations', iterations };\n }\n return null;\n}\n\nfunction projectMerges(raw: unknown): OvernightMerge[] {\n if (!Array.isArray(raw)) return [];\n const out: OvernightMerge[] = [];\n for (const [index, item] of raw.entries()) {\n if (!isRecord(item)) continue;\n const repo = str(item['repo']);\n if (repo === null) continue;\n out.push({\n id: str(item['id']) ?? `${repo}:${index}`,\n repo,\n title: str(item['title']) ?? 'untitled change',\n at: str(item['at']),\n commit: str(item['commit']),\n });\n }\n return out;\n}\n\nfunction projectDiscards(raw: unknown): OvernightDiscard[] {\n if (!Array.isArray(raw)) return [];\n const out: OvernightDiscard[] = [];\n for (const [index, item] of raw.entries()) {\n if (!isRecord(item)) continue;\n const repo = str(item['repo']);\n if (repo === null) continue;\n out.push({\n id: str(item['id']) ?? `${repo}:${index}`,\n repo,\n title: str(item['title']) ?? 'untitled change',\n at: str(item['at']),\n // A discard with no stated reason is the one row an operator will ask\n // about in the morning, so it says that it has none rather than being\n // rendered as a blank cell.\n reason: str(item['reason']) ?? 'no reason recorded',\n });\n }\n return out;\n}\n\nfunction projectGate(raw: unknown): OvernightGate | null {\n if (!isRecord(raw)) return null;\n return {\n tests: bool(raw['tests']),\n lint: bool(raw['lint']),\n typecheck: bool(raw['typecheck']),\n autoMerge: bool(raw['autoMerge']),\n branch: str(raw['branch']),\n };\n}\n\nfunction projectRun(raw: unknown): OvernightRun | null {\n if (!isRecord(raw)) return null;\n const runId = str(raw['runId']);\n if (runId === null) return null;\n return {\n runId,\n startedAt: str(raw['startedAt']),\n stopRule: projectStopRule(raw['stopRule']),\n iterationsDone: count(raw['iterationsDone']),\n repo: str(raw['repo']),\n activity: str(raw['activity']),\n merged: projectMerges(raw['merged']),\n discarded: projectDiscards(raw['discarded']),\n };\n}\n\n/**\n * `GET /api/verse/overnight` → a status, or null when the body is not one.\n *\n * `armed` is the single field this refuses to guess: a body that does not say\n * whether a run is armed is not a status, because \"nothing is armed\" is\n * exactly the claim a person checks before closing the laptop.\n */\nexport function projectOvernight(raw: unknown): OvernightStatus | null {\n if (!isRecord(raw)) return null;\n const armed = bool(raw['armed']);\n if (armed === null) return null;\n return {\n armed,\n run: projectRun(raw['run']),\n repos: count(raw['repos']),\n // Present-but-invalid reads as null (\"not recorded\"); absent stays absent,\n // so an older server is not shown as having lost a count it never sent.\n ...(raw['mirrors'] !== undefined ? { mirrors: count(raw['mirrors']) } : {}),\n gate: projectGate(raw['gate']),\n };\n}\n\n// ---------------------------------------------------------------------------\n// The operator's side of the stop rule\n// ---------------------------------------------------------------------------\n\n/** Smallest and largest iteration cap the form will send. */\nexport const ITERATIONS_MIN = 1;\nexport const ITERATIONS_MAX = 500;\n\n/**\n * Turn an `<input type=\"time\">` value (\"23:30\") into the next occurrence of\n * that wall-clock time, as an absolute instant.\n *\n * The whole point of arming this at 11pm is that \"07:00\" means tomorrow\n * morning. Resolving it on the client, in the operator's own zone, is what\n * makes that unambiguous by the time it reaches a server that may not share\n * the zone — and rounds to the minute, so a run armed at 06:59:58 for 07:00\n * does not stop two seconds later.\n */\nexport function resolveStopAt(value: string, now: Date = new Date()): string | null {\n const match = /^(\\d{1,2}):(\\d{2})$/.exec(value.trim());\n if (!match) return null;\n const hours = Number(match[1]);\n const minutes = Number(match[2]);\n if (!Number.isInteger(hours) || !Number.isInteger(minutes)) return null;\n if (hours < 0 || hours > 23 || minutes < 0 || minutes > 59) return null;\n const at = new Date(now);\n at.setHours(hours, minutes, 0, 0);\n if (at.getTime() <= now.getTime()) at.setDate(at.getDate() + 1);\n return at.toISOString();\n}\n\n/** \"07:00\" as the operator's locale writes it — never a raw ISO string. */\nexport function formatStopClock(iso: string | null): string {\n if (!iso) return UNKNOWN;\n const ms = Date.parse(iso);\n if (Number.isNaN(ms)) return UNKNOWN;\n return new Date(ms).toLocaleTimeString(undefined, { hour: '2-digit', minute: '2-digit' });\n}\n\n/** True when the resolved instant is not today — \"07:00 tomorrow\". */\nexport function isNextDay(iso: string | null, now: Date = new Date()): boolean {\n if (!iso) return false;\n const ms = Date.parse(iso);\n if (Number.isNaN(ms)) return false;\n return new Date(ms).toDateString() !== now.toDateString();\n}\n\n/**\n * The sentence the Arm button is committing to, before the click.\n *\n * It restates the rule the operator chose in the operator's own units, so the\n * button is never the only description of what is about to be authorised.\n */\nexport function describeStopRule(rule: OvernightStopRule, now: Date = new Date()): string {\n switch (rule.kind) {\n case 'until-paused':\n return 'Runs until you pause it — no stop time, no iteration limit.';\n case 'at-time':\n return `Stops at ${formatStopClock(rule.at)}${isNextDay(rule.at, now) ? ' tomorrow' : ''}.`;\n case 'after-iterations':\n return `Stops after ${rule.iterations} ${rule.iterations === 1 ? 'iteration' : 'iterations'}.`;\n }\n}\n\n/** The short label each stop rule wears in the armed summary. */\nexport function stopRuleLabel(kind: OvernightStopRuleKind): string {\n switch (kind) {\n case 'until-paused':\n return 'Until paused';\n case 'at-time':\n return 'At a set time';\n case 'after-iterations':\n return 'After N iterations';\n }\n}\n\n// ---------------------------------------------------------------------------\n// How far to the stop condition\n// ---------------------------------------------------------------------------\n\nexport interface StopProgress {\n /** The rule, restated: \"Stops at 07:00\". */\n headline: string;\n /** How much is left: \"4h 12m left\", \"12 of 20 done\". */\n remaining: string;\n /** 0-100 for a meter, or null when there is no honest denominator. */\n percent: number | null;\n /** True once the condition is met and the loop should be winding down. */\n reached: boolean;\n}\n\n/**\n * How far the run is from its stop condition.\n *\n * `percent` is null for \"until I pause it\" on purpose: an open-ended run has\n * no finish line, and a bar with no denominator is the exact kind of confident\n * graphic this cockpit is not allowed to draw.\n */\nexport function stopProgress(\n rule: OvernightStopRule | null,\n run: OvernightRun | null,\n now: number = Date.now(),\n): StopProgress {\n if (rule === null) {\n return {\n headline: 'Stop rule not stated',\n remaining: UNKNOWN,\n percent: null,\n reached: false,\n };\n }\n\n if (rule.kind === 'until-paused') {\n return {\n headline: 'Runs until you pause it',\n remaining: 'no stop time, no iteration limit',\n percent: null,\n reached: false,\n };\n }\n\n if (rule.kind === 'at-time') {\n const at = Date.parse(rule.at);\n if (Number.isNaN(at)) {\n return { headline: 'Stop time not readable', remaining: UNKNOWN, percent: null, reached: false };\n }\n const headline = `Stops at ${formatStopClock(rule.at)}`;\n const left = at - now;\n if (left <= 0) {\n return { headline, remaining: 'stop time reached', percent: 100, reached: true };\n }\n const startedAt = run?.startedAt ? Date.parse(run.startedAt) : Number.NaN;\n // Elapsed over the run's whole window — which needs a start. Without one\n // the countdown is still true, so it is shown; only the bar is withheld.\n const percent =\n Number.isNaN(startedAt) || at <= startedAt\n ? null\n : Math.min(100, Math.max(0, Math.round(((now - startedAt) / (at - startedAt)) * 100)));\n return { headline, remaining: `${formatDuration(left)} left`, percent, reached: false };\n }\n\n const done = run?.iterationsDone;\n const headline = `Stops after ${rule.iterations} ${rule.iterations === 1 ? 'iteration' : 'iterations'}`;\n if (typeof done !== 'number') {\n return {\n headline,\n remaining: `${UNKNOWN} of ${rule.iterations} done`,\n percent: null,\n reached: false,\n };\n }\n return {\n headline,\n remaining: `${done} of ${rule.iterations} done`,\n percent: Math.min(100, Math.round((done / rule.iterations) * 100)),\n reached: done >= rule.iterations,\n };\n}\n\n/** \"3h 04m\" since the run started, or UNKNOWN when it never said. */\nexport function formatRunElapsed(startedAt: string | null | undefined, now: number = Date.now()): string {\n if (!startedAt) return UNKNOWN;\n const ms = Date.parse(startedAt);\n if (Number.isNaN(ms)) return UNKNOWN;\n return formatDuration(Math.max(0, now - ms));\n}\n\n/**\n * The checks named as one phrase: \"tests, lint and typecheck\".\n *\n * Only checks the server said `true` about are named. A `null` check is not\n * named as running AND not named as skipped — `gateCaveat` below says so in\n * words instead, because a gate an operator believes is running when it is not\n * is the single most expensive misreading this panel could cause.\n */\nexport function gateChecks(gate: OvernightGate | null): string[] {\n if (gate === null) return [];\n const named: string[] = [];\n if (gate.tests === true) named.push('tests');\n if (gate.lint === true) named.push('lint');\n if (gate.typecheck === true) named.push('typecheck');\n return named;\n}\n\n/** The checks the server would not commit to, if any. */\nexport function gateUnstated(gate: OvernightGate | null): string[] {\n if (gate === null) return ['tests', 'lint', 'typecheck'];\n const unstated: string[] = [];\n if (gate.tests === null) unstated.push('tests');\n if (gate.lint === null) unstated.push('lint');\n if (gate.typecheck === null) unstated.push('typecheck');\n return unstated;\n}\n\nexport function joinPhrase(parts: readonly string[]): string {\n if (parts.length === 0) return '';\n if (parts.length === 1) return parts[0]!;\n return `${parts.slice(0, -1).join(', ')} and ${parts[parts.length - 1]!}`;\n}\n","/**\n * routes/verse/autonomy/overnight-queries.ts — the one read and the one write\n * behind the Overnight panel: `GET /api/verse/overnight` and\n * `POST /api/verse/overnight`.\n *\n * Same contract as `control-queries.ts` and `fleet-queries.ts` — the read is a\n * QueryDef consumed through `useQuery` (cache-backed, so a poll never blanks a\n * populated panel); the write pulls the held mutation token from auth-store,\n * touches the hold on success, and invalidates exactly the keys it affects.\n * There is no new data layer here on purpose.\n *\n * TWO THINGS THAT ARE DELIBERATE:\n *\n * 1. **The read does not throw on absence.** The route does not exist yet —\n * four owners are building the engine, the permit, the budgets and the\n * local-only policy in parallel. A server without it answers 404, and 404\n * means \"this panel has no source yet\", not \"Autonomy is broken\". It comes\n * back as `OptionalFleetRead` (reused rather than re-declared, because two\n * shapes for \"a read that is allowed to be absent\" would be one too many)\n * and the panel renders a designed not-available state from `reason`.\n * 401 still propagates: an expired read session is an unauthorized state\n * for the whole surface, not a missing panel.\n *\n * 2. **There is no pause route here, and there must not be one.** The halt\n * this panel offers is the DAEMON-SCOPED pause — `~/.ashlr/daemon.paused`,\n * via `runDaemonAction('pause')` in control-queries.ts. Disarming stops\n * arming the next run; pausing stops the loop that is running now, and\n * they are different questions. Neither is `stopDaemon()`, which is\n * `setKill(true)` and therefore the emergency stop wearing a quieter name\n * (see the header of DaemonControls.tsx).\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 { useEffect } from 'react';\nimport { VERSE_CONTROL_KEY, VerseControlLockedError } from './control-queries.js';\nimport type { OptionalFleetRead } from './fleet-contract.js';\nimport type {\n OvernightAction,\n OvernightActionResult,\n OvernightStatus,\n OvernightStopRule,\n} from './overnight-contract.js';\nimport { projectOvernight } from './overnight-model.js';\n\nexport const VERSE_OVERNIGHT_KEY = 'verse-overnight';\nexport const OVERNIGHT_PATH = '/api/verse/overnight';\n\nfunction describeAbsence(err: unknown): string {\n if (err instanceof ApiError) {\n if (err.status === 404) {\n // A missing route — not a run that refused to start.\n return 'Overnight runs are not available on this server.';\n }\n return `${OVERNIGHT_PATH} answered HTTP ${err.status}.`;\n }\n return `${OVERNIGHT_PATH} could not be reached.`;\n}\n\n/**\n * `GET /api/verse/overnight` — is a run armed, and what has it done.\n *\n * `value` is null both when the route was absent and when it answered\n * something this client could not narrow; `available` and `reason` are what\n * tell those two apart, and the panel words them differently.\n */\nexport const overnightQuery: QueryDef<OptionalFleetRead<OvernightStatus>> = {\n key: VERSE_OVERNIGHT_KEY,\n fetch: async (signal) => {\n try {\n const raw = await apiGet<unknown>(OVERNIGHT_PATH, signal);\n const value = projectOvernight(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(err) };\n }\n },\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\nfunction invalidateOvernight(): void {\n invalidate(VERSE_OVERNIGHT_KEY);\n // Arming changes what the daemon will do next, and the control snapshot is\n // what the rest of the cockpit reads that from.\n invalidate(VERSE_CONTROL_KEY);\n}\n\n/** Arm an overnight run with exactly one stop rule. */\nexport async function armOvernight(stopRule: OvernightStopRule): Promise<OvernightActionResult> {\n const body: OvernightAction = { action: 'arm', stopRule };\n const result = await post<OvernightActionResult>(OVERNIGHT_PATH, body);\n invalidateOvernight();\n return result;\n}\n\n/**\n * Disarm: no further overnight run starts.\n *\n * This is NOT the halt. It stops the arrangement, not the loop — a run already\n * in flight keeps going until it is paused. The panel says so at the click.\n */\nexport async function disarmOvernight(): Promise<OvernightActionResult> {\n const body: OvernightAction = { action: 'disarm' };\n const result = await post<OvernightActionResult>(OVERNIGHT_PATH, body);\n invalidateOvernight();\n return result;\n}\n\n// ---------------------------------------------------------------------------\n// Polling\n// ---------------------------------------------------------------------------\n\n/**\n * Slower than the fleet's 4s: an overnight run's counters move on the scale of\n * whole iterations, and the thing an operator watches second by second (the\n * elapsed clock and the countdown) is derived locally from `useNow`.\n */\nexport const OVERNIGHT_POLL_MS = 15_000;\n\n/**\n * Keep the overnight status live while a run is armed and the tab is visible.\n *\n * Only while armed: a disarmed panel has one boolean to report and polling it\n * every fifteen seconds forever would be pure waste. Hidden tabs stop the\n * timer and take one immediate reading when they come back, so a panel\n * returned to in the morning is current on the first frame.\n */\nexport function useOvernightPolling(armed: boolean, intervalMs: number = OVERNIGHT_POLL_MS): void {\n const refetch = useRefetch(overnightQuery);\n\n useEffect(() => {\n if (!armed) return;\n let timer: ReturnType<typeof setInterval> | null = null;\n\n const start = (): void => {\n if (timer !== null) return;\n timer = setInterval(refetch, intervalMs);\n };\n const stop = (): void => {\n if (timer === null) return;\n clearInterval(timer);\n timer = null;\n };\n const onVisibility = (): void => {\n if (document.visibilityState === 'hidden') {\n stop();\n return;\n }\n refetch();\n start();\n };\n\n if (document.visibilityState !== 'hidden') start();\n document.addEventListener('visibilitychange', onVisibility);\n return () => {\n stop();\n document.removeEventListener('visibilitychange', onVisibility);\n };\n }, [armed, intervalMs, refetch]);\n}\n"],"mappings":"0RAiCA,SAAS,EAAS,EAAkD,CAClE,OAAO,OAAO,GAAU,YAAY,GAAkB,CAAC,MAAM,QAAQ,CAAK,CAC5E,CAEA,SAAS,EA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AAM,EACjD,SAAS,iBAAiB,mBAAoB,CAAY,MAC7C,CACX,EAAK,EACL,SAAS,oBAAoB,mBAAoB,CAAY,CAC/D,CACF,EAAG,CAAC,EAAO,EAAY,CAAO,CAAC,CACjC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{O as e}from"./VerseConsoleApp-DY0SUyQ3.js";var t=`ashlr:palette-query`,n=200,r=null;function i(i){let a=i.trim().replace(/[.!?]+$/,``).slice(0,n);if(a){r=a,e(`palette`);try{window.dispatchEvent(new CustomEvent(t,{detail:a}))}catch{}}}function a(){let e=r;return r=null,e}export{i as n,a as r,t};
|
|
2
|
+
//# sourceMappingURL=palette-handoff-CoOvrfBN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"palette-handoff-CoOvrfBN.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/voice/palette-handoff.ts"],"sourcesContent":["/**\n * routes/verse/voice/palette-handoff.ts — voice command mode (⌃⌥⇧V): the\n * dictated words become the ⌘K query, so the existing palette model (fuzzy\n * match over the command catalog, chats, seats, projects) picks the command\n * and the operator confirms with ↩. Nothing runs by voice alone.\n *\n * Tiny on purpose: CommandPalette imports it, and it must not pull the voice\n * UI into the palette chunk.\n */\nimport { openVerseOverlay } from '../verse-ui-store.js';\n\nexport const PALETTE_QUERY_EVENT = 'ashlr:palette-query';\nconst QUERY_MAX = 200;\n\nlet pending: string | null = null;\n\n/** Open ⌘K with `text` as its query (or replace the query if it is open). */\nexport function handOffToPalette(text: string): void {\n const query = text.trim().replace(/[.!?]+$/, '').slice(0, QUERY_MAX);\n if (!query) return;\n pending = query;\n openVerseOverlay('palette');\n try {\n window.dispatchEvent(new CustomEvent(PALETTE_QUERY_EVENT, { detail: query }));\n } catch {\n /* no window */\n }\n}\n\n/** The palette's initial query, once. */\nexport function takePaletteQuery(): string | null {\n const query = pending;\n pending = null;\n return query;\n}\n"],"mappings":"kDAWA,IAAa,EAAsB,sBAC7B,EAAY,IAEd,EAAyB,KAG7B,SAAgB,EAAiB,EAAoB,CACnD,IAAM,EAAQ,EAAK,KAAK,CAAC,CAAC,QAAQ,UAAW,EAAE,CAAC,CAAC,MAAM,EAAG,CAAS,EAC9D,KAEL,CADA,EAAU,EACV,EAAiB,SAAS,EAC1B,GAAI,CACF,OAAO,cAAc,IAAI,YAAY,EAAqB,CAAE,OAAQ,CAAM,CAAC,CAAC,CAC9E,MAAQ,CAER,CAL0B,CAM5B,CAGA,SAAgB,GAAkC,CAChD,IAAM,EAAQ,EAEd,MADA,GAAU,KACH,CACT"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ChecksPanel-H13il4xW.js","assets/MutationTokenDialog-DJLMI0wL.js","assets/Dialog-3jP1MpHx.js","assets/focus-trap-olnXbwrV.js","assets/use-token-gate-CRBVO1L3.js","assets/format-CJtTUDfQ.js","assets/presentation-format-BNfzLDNF.js","assets/format-FvOYwzis.js","assets/verse-model-C5gU9VyS.js","assets/compaction-point-VL9oegWS.js","assets/seat-readiness-Cf3ShqNo.js","assets/Switch-DS4ekIJx.js","assets/global-1SED_aTT.css","assets/Dialog-tQ8kFulD.css","assets/MutationTokenDialog-CrfJ0PdD.css","assets/Button-DrnKsvnQ.css","assets/Switch-CU044EaE.css","assets/ChecksPanel-DusgEMS7.css","assets/dock-panes-BUIP_TFS.js","assets/tool-semantics-xF0Fw2Ck.js","assets/line-diff-B5Eonif2.js","assets/sources-queries-BFWOYHo1.js","assets/diff-parser-BnW_HiQm.js","assets/verse-transcript-BpReCATw.js","assets/verse-store-B35B55dc.js","assets/transient-events-nTLhMBND.js","assets/useVerseTranscript-DzGuwUEu.js","assets/useVerseSession-C2hIvtLM.js","assets/multimodel-query-keys-CSJbUQMJ.js","assets/SourcesPanel-BQ7F7uez.js","assets/path-display-Btavf0DG.js","assets/ThinkingBlock-COTkLWzv.js","assets/ChatSection-Dd4HRKYs.js","assets/preloaded-rg1exa7V.js","assets/use-chat-activity-B1ZQW19T.js","assets/EmptyState-B3YUPGaa.css","assets/ThinkingBlock-C1hAYcr3.css","assets/SourcesPanel-0z9q5i9l.css","assets/SkipToContent-c02H5dmz.css","assets/RouteErrorBoundary-DdxhTdZ6.css","assets/VerseConsoleApp-B34xyBe6.css","assets/ChatSection-77pZka90.css","assets/TerminalPane-gQqRD2jH.js","assets/useAutoSeat-BzuXalSo.js","assets/headroom-o5_XqUIr.js","assets/policy-BXYe6_Zf.js","assets/classify-CmzHuMLS.js","assets/budget-queries-mxabDs-2.js","assets/multimodel-queries-EViyKED3.js","assets/ActionMenu-ndTVgclw.js","assets/icons-DHiqsdz9.js","assets/verse-icons-CKpZFhbJ.js","assets/composer-queries-h8sAoPgo.js","assets/ansi-B9NbRwnU.js","assets/agent-tools-client-DjJCZuqD.js","assets/chat-pane-data-YTfa6L7r.js","assets/multimodel-flows-vRUnc4E1.js","assets/context-queries-BYapoHoa.js","assets/composer-state-Z0xMolgn.js","assets/ask-seat-B5NoRs7Z.js","assets/terminal-icons-BkwdmuwH.js","assets/terminal-client-TU9ZERnP.js","assets/terminal-view-BiTOFUmq.js","assets/CommandPalette.module-DqfCnLbZ.js","assets/ActionMenu-DPjsLU1g.css","assets/CommandPalette-C37YxUrr.css","assets/TerminalPane-CiO79zlq.css","assets/BrowserPanel-W6c7mdlY.js","assets/Segmented-Bwr3-jew.js","assets/Segmented-BnjHbKzH.css","assets/BrowserPanel-CQO8rUsR.css","assets/ChangesPaneHost-DFhEj__f.js","assets/highlight-BCNIvJ85.js","assets/git-model-BwMfWvDw.js","assets/GitDialogs-DvZCc8lS.js","assets/checkpoint-queries-D9VWCI7C.js","assets/DiffPane.module-CTk5rZn3.js","assets/pane-chrome.module-D7o-fVd0.js","assets/GitDialogs-ChreZUPG.css","assets/DiffPane-BAvvbBsf.css","assets/pane-chrome-8JmEhHVD.css","assets/ChangesPaneHost-IBUW2bXU.css","assets/ChatPanes-CNkNILza.js","assets/ProviderLogo-BiNHsoC2.js","assets/context-model-eT2Cad3I.js","assets/context-model-CzczsLFV.js","assets/workspace-model-DfRmZOCy.js","assets/LiveTimer-ryxgw4KN.js","assets/command-catalog-DLxzqia7.js","assets/tasks-model-HeKR3xow.js","assets/sidebar-model-ChrTlIBf.js","assets/context.module-BijAfoJw.js","assets/LiveTimer-1w9hA2-h.css","assets/context-DiToyj6s.css","assets/ChatPanes-DtD218pR.css","assets/FilesPane-B3dsl_jy.js","assets/stub-panes.module-blrN0yxn.js","assets/stub-panes-ZSndIabX.css","assets/SourcesPane-BOQrUIE5.js","assets/ReasoningPane-DUDE_hXA.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";import{At as a,I as o,Lt as s,Nt as c,Pt as ee,Tt as l,Ut as u,Y as d,ct as te,f,jt as ne,lt as p,w as re,zt as m}from"./VerseConsoleApp-DY0SUyQ3.js";import{a as h,f as g,g as _,h as ie,p as v,r as ae,u as oe,v as se,y}from"./dock-icons-Bs0rUzI9.js";import{a as ce,n as le,o as ue,r as b}from"./slots-Dh5sqR3y.js";var x=t(r(),1);function de(){let e=a.composer,t=new Map;for(let[n,r]of Object.entries(l))if(e.includes(r.scope))for(let e of r.keys)t.set(c(e),n);return t}var fe=new Set(ne.map(c));function S(e,t,n=I()){let r;try{r=u(e.trim().toLowerCase())}catch{return`"${e}" is not a chord`}let i=e.toLowerCase().split(`+`).slice(0,-1);if(!r.key||i.some(e=>![`mod`,`ctrl`,`shift`,`alt`].includes(e)))return`"${e}" is not a chord`;if(!r.mod&&!r.ctrl)return`"${e}" needs mod or ctrl — a bare key would eat typing`;let a=c(r);if(fe.has(a))return`"${e}" belongs to the system`;let o=de().get(a);if(o)return`"${e}" is already ${o}`;for(let r of n){if(r.id===t)continue;if(r.shortcut&&c(r.shortcut)===a)return`"${e}" is already the ${r.title} pane's`;let n=r.command?l[r.command]?.keys[0]:void 0;if(n&&c(n)===a)return`"${e}" is already the ${r.title} pane's`}return null}function C(e){let t=[];if(typeof e!=`object`||!e)return[`a pane definition must be an object`];(typeof e.id!=`string`||!p.test(e.id))&&t.push(`id "${String(e.id)}" must be lower-case letters, numbers and dashes`),(typeof e.title!=`string`||e.title.trim()===``)&&t.push(`title is required`);let n=e=>typeof e==`function`||typeof e==`object`&&!!e;return n(e.component)||t.push(`component must be a React component (lazy() is fine)`),n(e.icon)||t.push(`icon must be a React component`),e.command!==void 0&&!l[e.command]&&t.push(`command "${e.command}" has no key in shell/command-keys.ts`),t}var w=new Map,T=[],E=new Map,D=[],O=new Set,k=new Set;function A(e){k.has(e)||(k.add(e),typeof console<`u`&&console.warn(`[verse panes] ${e}`))}var j=e=>e.trim().toLowerCase();function pe(e,t){let n=null;for(let{def:r}of e){let e=r.command??n?.command??null,i=n?.shortcut??null;if(r.shortcut!==void 0){let n=e?l[e]?.keys[0]:void 0;if(n&&c(u(j(r.shortcut)))===c(n))i=null;else if(e)A(`pane "${r.id}": shortcut "${r.shortcut}" ignored — it opens with ${e}'s key`),i=null;else{let e=S(r.shortcut,r.id,t);e&&A(`pane "${r.id}": shortcut refused — ${e}`),i=e?null:u(j(r.shortcut))}}n=Object.freeze({id:r.id,title:r.title.trim(),icon:r.icon,component:r.component,command:e,shortcut:i,when:r.when??null,needsSession:r.needsSession??n?.needsSession??!0,order:r.order??n?.order??100,description:r.description??n?.description??null,toggle:r.toggle??n?.toggle??!1})}return n}function M(){let e=new Map;for(let t of T){let n=w.get(t);n&&n.length>0&&e.set(t,pe(n,e.values()))}E=e,D=Object.freeze([...e.values()].sort((e,t)=>e.order-t.order||T.indexOf(e.id)-T.indexOf(t.id)));for(let e of[...O])e()}function N(e,t){let n=C(e);if(n.length>0)return A(`pane "${String(e?.id)}" not registered: ${n.join(`; `)}`),()=>void 0;let r={def:e,builtin:t},i=w.get(e.id)??[];if(t){let e=i.findIndex(e=>!e.builtin);i.splice(e===-1?i.length:e,0,r)}else i.push(r);return w.set(e.id,i),T.includes(e.id)||T.push(e.id),M(),()=>{let t=w.get(e.id),n=t?.indexOf(r)??-1;t&&n!==-1&&(t.splice(n,1),t.length===0&&w.delete(e.id),M())}}function P(e){return N(e,!1)}function F(e){return N(e,!0)}function I(){return D}function L(e){return E.get(e)??null}function R(e,t){if(!e.when)return!0;try{return e.when(t)===!0}catch(t){return A(`pane "${e.id}": when() threw — ${t?.message??String(t)}`),!1}}function z(e){return D.filter(t=>R(t,e))}function B(e,t){let n=L(e);return n!==null&&R(n,t)}function V(e){return e.command?l[e.command]?.keys[0]??null:e.shortcut}function H(e,t=s()){let n=V(e);return n?m(n,t):null}function me(e,t=s()){for(let n of D)if(n.shortcut&&ee(e,n.shortcut,t))return n;return null}function U(e){return O.add(e),()=>O.delete(e)}function W(){return(0,x.useSyncExternalStore)(U,I,I)}function G(e){let t=null,n=null,r=()=>(n??=e().then(e=>t=e,e=>{throw n=null,e}),n);function i(e){let[n]=(0,x.useState)(()=>t),[i]=(0,x.useState)(()=>(0,x.lazy)(()=>r().then(e=>({default:e}))));return(0,x.createElement)(n??i,e)}return Object.assign(i,{preload:r})}function K(e=D){for(let t of e){let e=t.component.preload;typeof e==`function`&&e().catch(()=>void 0)}}function he(e){K(e.map(e=>L(e)).filter(e=>e!==null))}var q=n();function ge({size:e=16}){return(0,q.jsx)(`svg`,{viewBox:`0 0 16 16`,width:e,height:e,fill:`none`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,children:(0,q.jsx)(`path`,{d:`M3 4.5 4.5 6 7 3.5M3 10.5 4.5 12 7 9.5M9 5h4.5M9 11h4.5`})})}P({id:`checks`,title:`Checks`,icon:ge,order:55,description:`Git status, the PR, each CI check and review comments — with Auto-fix CI and Auto-merge for an agent.`,component:G(()=>i(()=>import(`./ChecksPanel-H13il4xW.js`).then(e=>e.n).then(e=>function(t){return(0,q.jsx)(e.ChecksDockPane,{sessionId:t.sessionId,visible:t.visible,host:t.host})}),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17])))}),P({id:`sources`,title:`Sources`,icon:_,description:`Every file, page, search and doc this chat drew on — numbered, with the turns that cited each.`,component:G(()=>i(()=>import(`./dock-panes-BUIP_TFS.js`).then(e=>e.SourcesDockPane),__vite__mapDeps([18,19,20,21,22,23,24,9,25,26,27,28,29,30,31,8,6,32,33,34,12,35,36,37,38,39,40,41])))}),P({id:`reasoning`,title:`Reasoning`,icon:v,description:`The model's reasoning, turn by turn, with what each turn did.`,component:G(()=>i(()=>import(`./dock-panes-BUIP_TFS.js`).then(e=>e.ReasoningDockPane),__vite__mapDeps([18,19,20,21,22,23,24,9,25,26,27,28,29,30,31,8,6,32,33,34,12,35,36,37,38,39,40,41])))}),P({id:`terminal`,title:`Terminal`,icon:y,component:G(()=>i(()=>import(`./TerminalPane-gQqRD2jH.js`).then(e=>e.TerminalRegistryPane),__vite__mapDeps([42,3,2,8,6,9,24,25,5,7,10,43,44,45,46,47,48,28,49,19,20,50,51,52,53,26,23,27,54,55,56,57,58,59,60,61,62,63,12,38,13,39,40,15,64,35,65,66])))});function J(e){re().section!==`chat`&&o(`chat`),d(e)}f(`terminal.generate`,()=>J({assist:!0})),f(`terminal.history`,()=>J({history:!0}));var _e=e({BROWSER_PANE:()=>ve}),ve={id:`browser`,label:`Browser`,commandId:`pane.browser`,keywords:[`browser`,`web`,`preview`,`localhost`,`devtools`,`console`,`screenshot`],defaultSlot:`dock`,chatScoped:!0,load:()=>i(()=>import(`./BrowserPanel-W6c7mdlY.js`).then(e=>({default:e.BrowserPanel})),__vite__mapDeps([67,1,2,3,68,50,52,4,5,6,7,8,9,10,11,32,33,24,25,27,28,34,12,13,14,69,15,16,38,39,40,41,70]))},ye=e({CHANGES_PANE:()=>be}),be={id:`changes`,label:`Changes`,commandId:`dock.diff`,keywords:[`changes`,`diff`,`review`,`checkpoint`,`undo`,`rewind`,`revert`,`git`],defaultSlot:`dock`,chatScoped:!0,description:`What each turn changed, reviewed hunk by hunk, with Undo turn — plus the uncommitted and branch diff.`,load:()=>i(()=>import(`./ChangesPaneHost-DFhEj__f.js`).then(e=>({default:e.ChangesPaneHost})),__vite__mapDeps([71,2,3,1,22,72,68,73,50,4,5,6,7,8,9,10,55,56,24,25,57,46,48,28,58,23,59,74,75,76,77,12,38,13,14,69,15,35,39,40,78,79,80,81]))};function xe({sessionId:e,roots:t,requests:n,host:r,visible:i}){return(0,q.jsx)(ce,{sessionId:e??``,roots:t,request:n.terminal,onSendToChat:r.sendToChat,visible:i})}function Se({sessionId:e,roots:t,requests:n,host:r,visible:i}){return(0,q.jsx)(b,{sessionId:e??``,roots:t,request:n.preview,visible:i,onOpenTerminal:r.openTerminalBelow})}function Y({sessionId:e,roots:t,requests:n,turnFiles:r,host:i,visible:a}){return(0,q.jsx)(le,{sessionId:e??``,roots:t,request:n.diff,turnFiles:r,onAddToMessage:i.addToMessage,visible:a})}var Ce=G(()=>i(()=>import(`./ChatPanes-CNkNILza.js`).then(e=>e.TasksPaneBody),__vite__mapDeps([82,1,2,3,83,8,6,9,5,7,10,57,24,25,84,85,86,19,20,30,87,88,89,90,4,26,23,27,28,11,55,91,32,33,34,12,38,13,14,39,40,92,16,93,41,94]))),X=G(()=>i(()=>import(`./ChatPanes-CNkNILza.js`).then(e=>e.ContextPaneBody),__vite__mapDeps([82,1,2,3,83,8,6,9,5,7,10,57,24,25,84,85,86,19,20,30,87,88,89,90,4,26,23,27,28,11,55,91,32,33,34,12,38,13,14,39,40,92,16,93,41,94]))),we=G(()=>i(()=>import(`./FilesPane-B3dsl_jy.js`).then(e=>e.FilesPane),__vite__mapDeps([95,8,6,9,19,20,30,26,23,24,25,27,28,96,35,12,97]))),Te=G(()=>i(()=>import(`./SourcesPane-BOQrUIE5.js`).then(e=>e.SourcesPane),__vite__mapDeps([98,8,6,9,30,19,20,51,50,26,23,24,25,27,28,96,12,38,35,97]))),Ee=G(()=>i(()=>import(`./ReasoningPane-DUDE_hXA.js`).then(e=>e.ReasoningPane),__vite__mapDeps([99,31,8,6,9,26,23,24,25,27,28,96,19,20,35,36,12,97]))),Z=e=>()=>ue(e),De={terminal:{icon:y,component:xe,order:10,toggle:!0,when:Z(`terminal-pane`),description:`A shell in this chat's folders. Commands the chat suggests paste here — you press Enter.`},browser:{icon:g,component:Se,order:20,toggle:!0,when:Z(`preview-pane`),description:`Your dev server or a page the chat made, live beside the conversation.`},diff:{icon:ie,component:Y,order:30,toggle:!0,when:Z(`diff-pane`),description:`What changed — this turn, uncommitted, or the whole branch — with notes you can send back.`},files:{icon:h,component:we,order:40,description:`The chat's folders, and every file it has read or changed.`},sources:{icon:_,component:Te,order:50,description:`The pages, searches and files an answer rests on.`},reasoning:{icon:v,component:Ee,order:60,description:`The model's thinking, turn by turn, beside the answer.`},tasks:{icon:se,component:Ce,order:70,needsSession:!1,description:`This turn's tool calls, and every other chat that is running.`},context:{icon:ae,component:X,order:80,needsSession:!1,description:`How full this chat's context is, its folders, memory and handoff.`}},Q=[];function Oe(){for(let e of Q)e();Q=te.map(e=>{let t=De[e.id];return F({id:e.id,title:e.label,...e.commandId?{command:e.commandId}:{},...t})})}Oe();var ke={changes:`diff`,review:`diff`,preview:`browser`};function Ae(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.id==`string`&&p.test(t.id)&&typeof t.label==`string`&&t.label.trim()!==``&&typeof t.load==`function`}function je(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(typeof r==`object`&&r)for(let e of Object.values(r)){if(!Ae(e))continue;let n=ke[e.id]??e.id,r=L(n),i=e.load;P({id:n,title:e.label.trim(),icon:e.icon??r?.icon??oe,component:G(()=>i().then(e=>e.default)),needsSession:!1,...e.shortcut?{shortcut:e.shortcut}:{},...e.description?{description:e.description}:{}}),t.push(n)}}return t}var Me=e({UNIT_PANE_MODULES:()=>$,definitionProblems:()=>C,getPane:()=>L,isPaneAvailable:()=>B,lazyPane:()=>G,listPanes:()=>I,matchPaneShortcut:()=>me,paneApplies:()=>R,paneChord:()=>V,paneChordLabel:()=>H,panesFor:()=>z,preloadPaneIds:()=>he,preloadPanes:()=>K,registerBuiltinPane:()=>F,registerPane:()=>P,shortcutProblem:()=>S,subscribePanes:()=>U,usePanes:()=>W}),$=Object.assign({"../browser/register.ts":_e,"../changes/register.ts":ye});je($);export{R as a,K as c,B as i,W as l,Y as n,H as o,L as r,z as s,Me as t};
|
|
3
|
+
//# sourceMappingURL=panes-Okpdx9n7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":";obA0KA,SAAS,IAAqC,CAC5C,IAAM,EAAO,EAAa,SACpB,EAAM,IAAI,IAChB,IAAK,GAAM,CAAC,EAAI,KAAS,OAAO,QAAQ,CAAY,EAC7C,KAAK,SAAS,EAAK,KAAK,EAC7B,IAAK,IAAM,KAAS,EAAK,KAAM,EAAI,IAAI,EAAQ,CAAK,EAAG,CAAE,EAE3D,OAAO,CACT,CAEA,IAAM,GAAW,IAAI,IAAI,GAAuB,IAAI,CAAO,CAAC,EAM5D,SAAgB,EAAgB,EAAc,EAAgB,EAAkC,EAAU,EAAkB,CAC1H,IAAI,EACJ,GAAI,CACF,EAAQ,EAAW,EAAK,KAAK,CAAC,CAAC,YAAY,CAAC,CAC9C,MAAQ,CACN,MAAO,IAAI,EAAK,iBAClB,CACA,IAAM,EAAY,EAAK,YAAY,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,EAAG,EAAE,EAC3D,GAAI,CAAC,EAAM,KAAO,EAAU,KAAM,GAAM,CAAC,CAAC,MAAO,OAAQ,QAAS,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,EAAG,MAAO,IAAI,EAAK,kBACvG,GAAI,CAAC,EAAM,KAAO,CAAC,EAAM,KAAM,MAAO,IAAI,EAAK,mDAC/C,IAAM,EAAK,EAAQ,CAAK,EACxB,GAAI,GAAS,IAAI,CAAE,EAAG,MAAO,IAAI,EAAK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Ca,EAA6C,yEACV,GAAkB,CAAiB","names":[],"ignoreList":[],"sources":["../../../../../../src/web-ui/routes/verse/panes/pane-registry.ts","../../../../../../src/web-ui/routes/verse/agents/checks.pane.tsx","../../../../../../src/web-ui/routes/verse/reasoning/reasoning.pane.tsx","../../../../../../src/web-ui/routes/verse/terminal/terminal.pane.tsx","../../../../../../src/web-ui/routes/verse/browser/register.ts","../../../../../../src/web-ui/routes/verse/changes/register.ts","../../../../../../src/web-ui/routes/verse/panes/builtin/SlotPanes.tsx","../../../../../../src/web-ui/routes/verse/panes/builtin-panes.tsx","../../../../../../src/web-ui/routes/verse/panes/register-adapter.ts","../../../../../../src/web-ui/routes/verse/panes/index.ts"],"sourcesContent":["/**\n * routes/verse/panes/pane-registry.ts — THE PANE REGISTRY: how anything\n * becomes a tab in the chat's panel area (the dock), without touching the\n * layout. See ./README.md for the guide; this file is the contract.\n *\n * registerPane({\n * id: 'reasoning',\n * title: 'Reasoning',\n * icon: ReasoningGlyph,\n * component: lazy(() => import('./ReasoningPane.js').then((m) => ({ default: m.ReasoningPane }))),\n * shortcut: 'mod+shift+y', // or `command:` for a catalog key\n * when: ({ session }) => session !== null,\n * });\n *\n * WHAT THE DOCK DOES WITH A PANE. It lists it in \"+ Add a pane\", the split\n * menu and (with `toggle`) the chat header; opens it on its key; renders its\n * component inside an error boundary and a Suspense boundary (so a lazy\n * component is its own chunk and a crash says so without taking the chat\n * down); keeps it MOUNTED while its tab is open (hidden, with\n * `visible: false`, when another tab is on top — stop timers then); and\n * remembers which panes each chat had open.\n *\n * REPLACING a pane. Registering an id that already exists REPLACES it (the\n * newest registration wins) and inherits what it did not say — its catalog\n * command, header toggle and order — so a unit swapping the stub Reasoning\n * pane for the real one writes only what changed. The returned function\n * unregisters that one registration, and the previous definition comes back.\n *\n * KEYS. A pane's chord is either a catalog command's (`command:`, for the\n * first-party panes — the palette and the shortcuts overlay list those) or\n * its own `shortcut:`. An own shortcut must use mod (Cmd/Ctrl) or ctrl, and is REFUSED\n * (with a console warning; the pane still registers, keyless) when it\n * collides with a catalog key live in the chat, a system chord, or another\n * pane's key. A pane can never steal a key.\n *\n * Framework-light: React only for types and the one subscription hook. This\n * module (and the panes it registers) load just after the chat's first\n * paint — never on it (VerseApp.first-paint.test.ts).\n */\nimport { createElement, lazy, useState, useSyncExternalStore, type ComponentType } from 'react';\nimport type { VerseEvent, VerseSession } from '../../../data/api-types.js';\nimport {\n COMMAND_KEYS,\n SCOPE_LAYERS,\n SYSTEM_RESERVED_CHORDS,\n chordId,\n chordMatches,\n detectKeyPlatform,\n formatChord,\n parseChord,\n type KeyChord,\n type KeyedCommandId,\n type KeyEventLike,\n type KeyPlatform,\n} from '../shell/command-keys.js';\nimport { PANE_ID_RE, type DockPresentation } from '../shell/dock-catalog.js';\nimport type { DiffPaneRequest, PreviewOpenRequest, TerminalOpenRequest, TurnFileChange } from '../shell/slots.js';\n\n// ===========================================================================\n// The contract\n// ===========================================================================\n\n/** The one-shot requests other parts of the chat aim at panes (\"Run in terminal\", a ± count, a dev server). */\nexport interface PaneRequests {\n terminal: TerminalOpenRequest | null;\n preview: PreviewOpenRequest | null;\n diff: (DiffPaneRequest & { nonce: number }) | null;\n}\n\n/** What a pane may ask of the workbench. Every call is safe at any time (a no-op when it cannot apply). */\nexport interface PaneHost {\n /** Put `text` in the composer, as its own paragraph (Terminal's \"Send selection to chat\"). */\n sendToChat(text: string): void;\n /** Draft `text` into the composer (\"Add to message\": `path:line: note`). */\n addToMessage(text: string): void;\n /** Open (and show) another pane by id. */\n openPane(id: string): void;\n /** Close this or another pane's tab. */\n closePane(id: string): void;\n /** Open the Terminal pane with a request (a tab at a root; a command PASTED, never run). */\n openTerminal(request: Omit<TerminalOpenRequest, 'nonce'>): void;\n /** The same, with Terminal as the lower half of a split under the pane on top. */\n openTerminalBelow(request: Omit<TerminalOpenRequest, 'nonce'>): void;\n /** Open the Changes pane at a root and scope (optionally one file). */\n openDiff(request: DiffPaneRequest): void;\n /** Switch the chat surface to another chat. */\n openSession(sessionId: string): void;\n}\n\n/**\n * The props every pane component receives. Stable: fields are only ever\n * ADDED. A pane that needs the live transcript subscribes itself\n * (`useVerseTranscript(sessionId)`), so a streamed token re-renders that\n * pane, not the dock.\n */\nexport interface PaneProps {\n /** This pane's id (one component may serve several registrations). */\n paneId: string;\n /** The open chat. Never null for a pane with `needsSession` (the default): the dock shows the empty state instead. */\n sessionId: string | null;\n session: VerseSession | null;\n /** The chat's folders, primary first. */\n roots: readonly string[];\n /** The chat's raw event log (what the transcript is built from). */\n events: readonly VerseEvent[];\n /** Files the chat's latest turn touched. */\n turnFiles: readonly TurnFileChange[];\n /** False while another tab is on top (or the panel is closed with the tab kept): stop timers, skip work. */\n visible: boolean;\n /** How the panel is drawn right now — a pane may choose a denser layout in `bottom`. */\n presentation: DockPresentation;\n requests: PaneRequests;\n host: PaneHost;\n}\n\n/** What `when` sees — enough to decide whether a pane applies to the chat that is open. */\nexport interface PaneContext {\n sessionId: string | null;\n session: VerseSession | null;\n roots: readonly string[];\n}\n\n/** A 16px line glyph (currentColor), like dock/dock-icons.tsx. */\nexport type PaneIcon = ComponentType<{ size?: number }>;\n\nexport interface PaneDefinition {\n /** Stable id: lower-case letters, numbers and dashes (`browser`, `test-runner`). Persisted in layouts. */\n id: string;\n /** Tab label and menu name: one or two words. */\n title: string;\n icon: PaneIcon;\n /** Usually `lazy(() => import(…))`, so the pane's code is its own chunk and loads on first open. */\n component: ComponentType<PaneProps>;\n /** Your own chord, as the key table writes it: 'mod+shift+y', 'ctrl+alt+p'. Refused on any collision. */\n shortcut?: string;\n /** First-party: the catalog command whose key opens this pane (its chord then comes from the catalog). */\n command?: KeyedCommandId;\n /** Whether the pane applies right now (e.g. only for a chat with a web seat). False hides its tab and menu entry. */\n when?: (context: PaneContext) => boolean;\n /** Needs an open chat (default true): without one the dock shows \"Open a chat to use …\" instead. */\n needsSession?: boolean;\n /** Menu / header order, ascending (first-party panes use 10…80; default 100). */\n order?: number;\n /** One sentence: what the pane is for. The empty state and the \"+\" menu teach with it. */\n description?: string;\n /** Show a toggle for it in the chat header (keep it to the few everyone uses). */\n toggle?: boolean;\n}\n\n/** A pane as the registry holds it: defaults applied, the chord resolved and vetted. */\nexport interface RegisteredPane {\n readonly id: string;\n readonly title: string;\n readonly icon: PaneIcon;\n readonly component: ComponentType<PaneProps>;\n readonly command: KeyedCommandId | null;\n /** The pane's OWN chord (not a catalog command's), after the collision check; null = none or refused. */\n readonly shortcut: KeyChord | null;\n readonly when: ((context: PaneContext) => boolean) | null;\n readonly needsSession: boolean;\n readonly order: number;\n readonly description: string | null;\n readonly toggle: boolean;\n}\n\n// ===========================================================================\n// Validation\n// ===========================================================================\n\n/** Every chord that is live while a pane's key would be (the composer layer: composer + chat + global). */\nfunction catalogChords(): Map<string, string> {\n const live = SCOPE_LAYERS.composer;\n const out = new Map<string, string>();\n for (const [id, spec] of Object.entries(COMMAND_KEYS)) {\n if (!live.includes(spec.scope)) continue;\n for (const chord of spec.keys) out.set(chordId(chord), id);\n }\n return out;\n}\n\nconst RESERVED = new Set(SYSTEM_RESERVED_CHORDS.map(chordId));\n\n/**\n * Why `text` cannot be pane `paneId`'s own shortcut, or null when it can.\n * Exported for tests and for units that want to check a chord up front.\n */\nexport function shortcutProblem(text: string, paneId: string, panes: Iterable<RegisteredPane> = listPanes()): string | null {\n let chord: KeyChord;\n try {\n chord = parseChord(text.trim().toLowerCase());\n } catch {\n return `\"${text}\" is not a chord`;\n }\n const modifiers = text.toLowerCase().split('+').slice(0, -1);\n if (!chord.key || modifiers.some((m) => !['mod', 'ctrl', 'shift', 'alt'].includes(m))) return `\"${text}\" is not a chord`;\n if (!chord.mod && !chord.ctrl) return `\"${text}\" needs mod or ctrl — a bare key would eat typing`;\n const id = chordId(chord);\n if (RESERVED.has(id)) return `\"${text}\" belongs to the system`;\n const owner = catalogChords().get(id);\n if (owner) return `\"${text}\" is already ${owner}`;\n for (const pane of panes) {\n if (pane.id === paneId) continue;\n if (pane.shortcut && chordId(pane.shortcut) === id) return `\"${text}\" is already the ${pane.title} pane's`;\n const command = pane.command ? COMMAND_KEYS[pane.command]?.keys[0] : undefined;\n if (command && chordId(command) === id) return `\"${text}\" is already the ${pane.title} pane's`;\n }\n return null;\n}\n\n/** Problems that make a definition unregistrable (an empty list = fine). */\nexport function definitionProblems(def: PaneDefinition): string[] {\n const problems: string[] = [];\n if (typeof def !== 'object' || def === null) return ['a pane definition must be an object'];\n if (typeof def.id !== 'string' || !PANE_ID_RE.test(def.id)) problems.push(`id \"${String(def.id)}\" must be lower-case letters, numbers and dashes`);\n if (typeof def.title !== 'string' || def.title.trim() === '') problems.push('title is required');\n const isComponent = (c: unknown) => typeof c === 'function' || (typeof c === 'object' && c !== null);\n if (!isComponent(def.component)) problems.push('component must be a React component (lazy() is fine)');\n if (!isComponent(def.icon)) problems.push('icon must be a React component');\n if (def.command !== undefined && !COMMAND_KEYS[def.command]) problems.push(`command \"${def.command}\" has no key in shell/command-keys.ts`);\n return problems;\n}\n\n// ===========================================================================\n// The registry\n// ===========================================================================\n\n/** Each id's registrations, oldest first; the LAST is the active one. */\n/** One registration. `builtin` ones sit UNDER every other registration of their id, whatever the load order. */\ninterface Layer {\n def: PaneDefinition;\n builtin: boolean;\n}\n\n/** Each id's registrations, bottom first; the effective pane folds them upward. */\nconst stacks = new Map<string, Layer[]>();\n/** Ids in first-registration order (the tie-break for equal `order`s). */\nconst firstSeen: string[] = [];\nlet effective = new Map<string, RegisteredPane>();\nlet snapshot: readonly RegisteredPane[] = [];\nconst listeners = new Set<() => void>();\nconst warned = new Set<string>();\n\nfunction warn(message: string): void {\n if (warned.has(message)) return;\n warned.add(message);\n if (typeof console !== 'undefined') console.warn(`[verse panes] ${message}`);\n}\n\nconst normalizeChordText = (text: string) => text.trim().toLowerCase();\n\n/**\n * Fold one id's layers: each registration inherits what it leaves unsaid\n * (command, toggle, order, needsSession, description) from the one below.\n * The own shortcut is vetted against the catalog and the panes resolved so\n * far — `resolved`, in first-registration order, so the older pane keeps a\n * contested key.\n */\nfunction fold(layers: readonly Layer[], resolved: Iterable<RegisteredPane>): RegisteredPane {\n let below = null as RegisteredPane | null;\n for (const { def } of layers) {\n const command: KeyedCommandId | null = def.command ?? below?.command ?? null;\n let shortcut: KeyChord | null = below?.shortcut ?? null;\n if (def.shortcut !== undefined) {\n const commandChord = command ? COMMAND_KEYS[command]?.keys[0] : undefined;\n if (commandChord && chordId(parseChord(normalizeChordText(def.shortcut))) === chordId(commandChord)) {\n shortcut = null; // the catalog already serves this key for this pane\n } else if (command) {\n warn(`pane \"${def.id}\": shortcut \"${def.shortcut}\" ignored — it opens with ${command}'s key`);\n shortcut = null;\n } else {\n const problem = shortcutProblem(def.shortcut, def.id, resolved);\n if (problem) warn(`pane \"${def.id}\": shortcut refused — ${problem}`);\n shortcut = problem ? null : parseChord(normalizeChordText(def.shortcut));\n }\n }\n below = Object.freeze({\n id: def.id,\n title: def.title.trim(),\n icon: def.icon,\n component: def.component,\n command,\n shortcut,\n when: def.when ?? null,\n needsSession: def.needsSession ?? below?.needsSession ?? true,\n order: def.order ?? below?.order ?? 100,\n description: def.description ?? below?.description ?? null,\n toggle: def.toggle ?? below?.toggle ?? false,\n });\n }\n return below!;\n}\n\nfunction publish(): void {\n const next = new Map<string, RegisteredPane>();\n for (const id of firstSeen) {\n const layers = stacks.get(id);\n if (layers && layers.length > 0) next.set(id, fold(layers, next.values()));\n }\n effective = next;\n // Order, then first registration: a stable menu no matter which module loaded first.\n snapshot = Object.freeze([...next.values()].sort((a, b) => a.order - b.order || firstSeen.indexOf(a.id) - firstSeen.indexOf(b.id)));\n for (const listener of [...listeners]) listener();\n}\n\nfunction addLayer(def: PaneDefinition, builtin: boolean): () => void {\n const problems = definitionProblems(def);\n if (problems.length > 0) {\n warn(`pane \"${String((def as Partial<PaneDefinition> | null)?.id)}\" not registered: ${problems.join('; ')}`);\n return () => undefined;\n }\n const layer: Layer = { def, builtin };\n const stack = stacks.get(def.id) ?? [];\n if (builtin) {\n // Under every non-builtin registration: a unit's replacement wins even if its module evaluated first.\n const firstOther = stack.findIndex((l) => !l.builtin);\n stack.splice(firstOther === -1 ? stack.length : firstOther, 0, layer);\n } else {\n stack.push(layer);\n }\n stacks.set(def.id, stack);\n if (!firstSeen.includes(def.id)) firstSeen.push(def.id);\n publish();\n return () => {\n const current = stacks.get(def.id);\n const index = current?.indexOf(layer) ?? -1;\n if (!current || index === -1) return;\n current.splice(index, 1);\n if (current.length === 0) stacks.delete(def.id);\n publish();\n };\n}\n\n/**\n * Add a pane — or replace the one with the same id. Returns a function that\n * removes THIS registration (the previous one, if any, comes back).\n *\n * Never throws: a malformed definition is reported on the console and\n * ignored, so one unit's mistake cannot take the other panes down.\n */\nexport function registerPane(def: PaneDefinition): () => void {\n return addLayer(def, false);\n}\n\n/**\n * The workbench's own panes (builtin-panes.tsx). Always UNDER any other\n * registration of the same id, so a unit's `registerPane` replaces the\n * first-party stub no matter which module evaluated first.\n */\nexport function registerBuiltinPane(def: PaneDefinition): () => void {\n return addLayer(def, true);\n}\n\n/** Every registered pane, in menu order (applicability NOT checked — see panesFor). */\nexport function listPanes(): readonly RegisteredPane[] {\n return snapshot;\n}\n\n/** The effective registration for `id`, or null. */\nexport function getPane(id: string): RegisteredPane | null {\n return effective.get(id) ?? null;\n}\n\n/** Does `pane` apply in `context`? A `when` that throws counts as no (and says so once). */\nexport function paneApplies(pane: RegisteredPane, context: PaneContext): boolean {\n if (!pane.when) return true;\n try {\n return pane.when(context) === true;\n } catch (err) {\n warn(`pane \"${pane.id}\": when() threw — ${(err as Error)?.message ?? String(err)}`);\n return false;\n }\n}\n\n/** The panes that apply in `context`, in menu order. */\nexport function panesFor(context: PaneContext): RegisteredPane[] {\n return snapshot.filter((pane) => paneApplies(pane, context));\n}\n\n/** Is `id` registered, and does it apply in `context`? */\nexport function isPaneAvailable(id: string, context: PaneContext): boolean {\n const pane = getPane(id);\n return pane !== null && paneApplies(pane, context);\n}\n\n/** The chord that opens `pane` — its catalog command's, else its own — or null. */\nexport function paneChord(pane: RegisteredPane): KeyChord | null {\n if (pane.command) return COMMAND_KEYS[pane.command]?.keys[0] ?? null;\n return pane.shortcut;\n}\n\n/** `paneChord`, printed for this platform (\"⇧⌘Y\" / \"Ctrl+Shift+Y\"). */\nexport function paneChordLabel(pane: RegisteredPane, platform: KeyPlatform = detectKeyPlatform()): string | null {\n const chord = paneChord(pane);\n return chord ? formatChord(chord, platform) : null;\n}\n\n/**\n * The pane whose OWN shortcut `event` presses, or null. Catalog-command\n * chords are not matched here — the catalog's key handling runs those.\n */\nexport function matchPaneShortcut(event: KeyEventLike, platform: KeyPlatform = detectKeyPlatform()): RegisteredPane | null {\n for (const pane of snapshot) {\n if (pane.shortcut && chordMatches(event, pane.shortcut, platform)) return pane;\n }\n return null;\n}\n\nexport function subscribePanes(listener: () => void): () => void {\n listeners.add(listener);\n return () => listeners.delete(listener);\n}\n\n/** Every registered pane, re-rendering when one is added, replaced or removed. */\nexport function usePanes(): readonly RegisteredPane[] {\n return useSyncExternalStore(subscribePanes, listPanes, listPanes);\n}\n\n// ===========================================================================\n// lazyPane — a pane component that is its own chunk, without the flash\n// ===========================================================================\n\n/** A pane component whose code loads on first use; `preload()` fetches it ahead of time. */\nexport type LazyPaneComponent = ComponentType<PaneProps> & { preload: () => Promise<unknown> };\n\n/**\n * Like `React.lazy`, for panes — and preferred to it:\n * - once the chunk is in, a NEW mount renders the pane in the same frame\n * (React.lazy suspends every fresh wrapper once, which flashes the\n * skeleton when a second tab of an already-loaded chunk opens);\n * - the dock calls `preload()` when it opens, so a tab's first click\n * usually finds its code already here;\n * - a failed download is not cached: \"Try again\" really tries again.\n *\n * component: lazyPane(() => import('./ReasoningPane.js').then((m) => m.ReasoningPane))\n */\nexport function lazyPane(load: () => Promise<ComponentType<PaneProps>>): LazyPaneComponent {\n let loaded: ComponentType<PaneProps> | null = null;\n let pending: Promise<ComponentType<PaneProps>> | null = null;\n const preload = (): Promise<ComponentType<PaneProps>> => {\n pending ??= load().then((c) => (loaded = c), (err: unknown) => { pending = null; throw err; });\n return pending;\n };\n function LazyPane(props: PaneProps) {\n // Chosen once per mount: swapping the component type later would remount the pane and drop its state.\n const [Ready] = useState<ComponentType<PaneProps> | null>(() => loaded);\n const [Deferred] = useState(() => lazy(() => preload().then((c) => ({ default: c }))));\n return createElement(Ready ?? Deferred, props);\n }\n return Object.assign(LazyPane, { preload });\n}\n\n/** Fetch the code of every registered pane that can be preloaded (the dock calls this when it opens). */\nexport function preloadPanes(panes: readonly RegisteredPane[] = snapshot): void {\n for (const pane of panes) {\n const preload = (pane.component as Partial<LazyPaneComponent>).preload;\n if (typeof preload === 'function') void preload().catch(() => undefined);\n }\n}\n\n/** `preloadPanes` for just these ids (the chat surface warms the tabs a chat is likely to open). */\nexport function preloadPaneIds(ids: readonly string[]): void {\n preloadPanes(ids.map((id) => getPane(id)).filter((p): p is RegisteredPane => p !== null));\n}\n\n/** Test seam: forget every registration (builtin-panes' `registerBuiltinPanes()` puts the first-party ones back). */\nexport function resetPaneRegistry(): void {\n stacks.clear();\n firstSeen.length = 0;\n warned.clear();\n publish();\n}\n","/**\n * routes/verse/agents/checks.pane.tsx — the chat dock's \"Checks\" pane: the\n * open chat's git status, PR, CI, review comments, Auto-fix CI and\n * Auto-merge (3.16 agents). Only the registration lives here — panes/index.ts\n * imports every `*.pane.tsx` eagerly after first paint — and the body is its\n * own lazy chunk (ChecksPanel.tsx).\n */\nimport type { PaneProps } from '../panes/pane-registry.js';\nimport { lazyPane, registerPane } from '../panes/pane-registry.js';\n\nfunction ChecksGlyph({ size = 16 }: { size?: number }) {\n return (\n <svg viewBox=\"0 0 16 16\" width={size} height={size} fill=\"none\" stroke=\"currentColor\" strokeWidth={1.5} strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\" focusable=\"false\">\n <path d=\"M3 4.5 4.5 6 7 3.5M3 10.5 4.5 12 7 9.5M9 5h4.5M9 11h4.5\" />\n </svg>\n );\n}\n\nregisterPane({\n id: 'checks',\n title: 'Checks',\n icon: ChecksGlyph,\n order: 55,\n description: 'Git status, the PR, each CI check and review comments — with Auto-fix CI and Auto-merge for an agent.',\n component: lazyPane(() =>\n import('./ChecksPanel.js').then((m) => function ChecksPane(props: PaneProps) {\n return <m.ChecksDockPane sessionId={props.sessionId} visible={props.visible} host={props.host} />;\n }),\n ),\n});\n","/**\n * routes/verse/reasoning/reasoning.pane.tsx — the Sources and Reasoning\n * panes, registered with the workbench pane registry (panes/README.md).\n *\n * Same ids as the first-party stubs, so these REPLACE them and inherit their\n * keys (⇧⌘S Sources, ⇧⌘Y Reasoning), order and catalog commands. Only the\n * registration lives here — panes/index.ts imports every `*.pane.tsx` eagerly\n * after first paint — and each body is its own lazy chunk.\n */\nimport { ReasoningGlyph, SourcesGlyph } from '../dock/dock-icons.js';\nimport { lazyPane, registerPane } from '../panes/pane-registry.js';\n\nregisterPane({\n id: 'sources',\n title: 'Sources',\n icon: SourcesGlyph,\n description: 'Every file, page, search and doc this chat drew on — numbered, with the turns that cited each.',\n component: lazyPane(() => import('./dock-panes.js').then((m) => m.SourcesDockPane)),\n});\n\nregisterPane({\n id: 'reasoning',\n title: 'Reasoning',\n icon: ReasoningGlyph,\n description: \"The model's reasoning, turn by turn, with what each turn did.\",\n component: lazyPane(() => import('./dock-panes.js').then((m) => m.ReasoningDockPane)),\n});\n","/**\n * terminal/terminal.pane.tsx — the 3.15 Terminal's registration in the pane\n * registry (panes/README.md). panes/index.ts discovers every `*.pane.tsx`\n * under routes/verse and imports it (after first paint).\n *\n * Id `terminal` REPLACES the first-party stub and inherits what this leaves\n * unsaid: the ⌃` key (dock.terminal), the header toggle, the first place in\n * the panel, `needsSession` (without a chat the dock says \"Open a chat to use\n * Terminal\") and the stub's description. ⌃⇧` (a new tab) and every\n * `requests.terminal` — Run in terminal, Apps [Launch ▸], a dev-server Start —\n * reach the panel as before.\n *\n * TINY ON PURPOSE: a registration and a lazy import. The panel — xterm, its\n * addons, the block view — is its own chunk, loaded when the pane first shows\n * (terminal-lazy.test.ts).\n *\n * 3.15: it also serves ⌘K \"Generate command…\" and \"Search terminal history…\"\n * (catalog ids terminal.generate / terminal.history) — here rather than in\n * ChatSection, so the chat's first paint carries none of it. Both go to Chat\n * and ask the panel for its prompt; the panel does the rest (nothing runs).\n */\nimport { requestTerminal } from '../dock/dock-store.js';\nimport { TerminalGlyph } from '../dock/dock-icons.js';\nimport { lazyPane, registerPane } from '../panes/pane-registry.js';\nimport { registerCommandHandler } from '../shell/command-bus.js';\nimport { getVerseUiState, setVerseSection } from '../verse-ui-store.js';\n\nexport const TERMINAL_PANE_ID = 'terminal';\n\nregisterPane({\n id: TERMINAL_PANE_ID,\n title: 'Terminal',\n icon: TerminalGlyph,\n component: lazyPane(() => import('./TerminalPane.js').then((m) => m.TerminalRegistryPane)),\n});\n\nfunction openTerminalPrompt(request: { assist: true } | { history: true }): void {\n if (getVerseUiState().section !== 'chat') setVerseSection('chat');\n requestTerminal(request);\n}\nregisterCommandHandler('terminal.generate', () => openTerminalPrompt({ assist: true }));\nregisterCommandHandler('terminal.history', () => openTerminalPrompt({ history: true }));\n","/**\n * routes/verse/browser/register.ts — the Browser pane's registration for the\n * workbench pane registry (routes/verse/panes/**, landing separately).\n *\n * This file is deliberately tiny and import-free apart from a LAZY import:\n * the registry can list the pane (id, label, command, where it docks) on\n * first paint without pulling the pane's code — BrowserPanel and everything\n * behind it (Button, icons, the token dialog) load only when it is opened\n * (VerseApp.first-paint.test.ts keeps those out of the first-paint graph).\n *\n * Until the registry lands, a host mounts it with:\n * const Browser = lazy(BROWSER_PANE.load);\n * <Suspense fallback={null}><Browser sessionId={id} visible={shown} /></Suspense>\n */\nimport type { ComponentType } from 'react';\nimport type { BrowserPanelProps } from './BrowserPanel.js';\n\nexport interface VersePaneRegistration<P> {\n /** Stable id (layout persistence, commands). */\n id: string;\n label: string;\n /** Command palette id that opens the pane. */\n commandId: string;\n /** Palette search words. */\n keywords: readonly string[];\n /** Where the pane prefers to dock when first opened. */\n defaultSlot: 'dock' | 'side' | 'main';\n /** Needs a chat to be useful (it still browses without one). */\n chatScoped: boolean;\n load: () => Promise<{ default: ComponentType<P> }>;\n}\n\nexport type { BrowserPanelProps };\n\nexport const BROWSER_PANE: VersePaneRegistration<BrowserPanelProps> = {\n id: 'browser',\n label: 'Browser',\n commandId: 'pane.browser',\n keywords: ['browser', 'web', 'preview', 'localhost', 'devtools', 'console', 'screenshot'],\n defaultSlot: 'dock',\n chatScoped: true,\n load: () => import('./BrowserPanel.js').then((m) => ({ default: m.BrowserPanel })),\n};\n","/**\n * routes/verse/changes/register.ts — the Changes pane's registration for the\n * workbench pane registry (routes/verse/panes/README.md, \"a self-describing\n * register.ts\"). panes/index.ts discovers this file; register-adapter.ts maps\n * the id `changes` onto the first-party `diff` pane and REPLACES it, keeping\n * its key (⇧⌘D), order, icon and header toggle.\n *\n * Import-free apart from a LAZY import, so listing the pane costs nothing on\n * first paint: ChangesPaneHost and everything behind it (the checkpoint\n * client, the diff grid, the git dialogs) is its own chunk, loaded when the\n * pane opens.\n */\nimport type { ComponentType } from 'react';\nimport type { PaneProps } from '../panes/pane-registry.js';\n\nexport const CHANGES_PANE: {\n id: string;\n label: string;\n commandId: string;\n keywords: readonly string[];\n defaultSlot: 'dock';\n chatScoped: boolean;\n description: string;\n load: () => Promise<{ default: ComponentType<PaneProps> }>;\n} = {\n id: 'changes',\n label: 'Changes',\n commandId: 'dock.diff',\n keywords: ['changes', 'diff', 'review', 'checkpoint', 'undo', 'rewind', 'revert', 'git'],\n defaultSlot: 'dock',\n chatScoped: true,\n description: 'What each turn changed, reviewed hunk by hunk, with Undo turn — plus the uncommitted and branch diff.',\n load: () => import('./ChangesPaneHost.js').then((m) => ({ default: m.ChangesPaneHost })),\n};\n","/**\n * routes/verse/panes/builtin/SlotPanes.tsx — the first-party Terminal,\n * Browser and Changes panes: thin adapters from PaneProps to the C0 slot\n * each renders through (shell/slots.tsx), so xterm, the page preview and the\n * diff viewer stay in their owners' lazy chunks.\n *\n * A unit replacing one of these (the Terminal, Browser or Harness agent)\n * registers its own component under the same id — see ../README.md — and\n * this adapter simply stops being used.\n */\nimport type { PaneProps } from '../pane-registry.js';\nimport { DiffPaneSlot, PreviewPaneSlot, TerminalPaneSlot } from '../../shell/slots.js';\n\nexport function TerminalPaneBody({ sessionId, roots, requests, host, visible }: PaneProps) {\n return <TerminalPaneSlot sessionId={sessionId ?? ''} roots={roots} request={requests.terminal} onSendToChat={host.sendToChat} visible={visible} />;\n}\n\nexport function BrowserPaneBody({ sessionId, roots, requests, host, visible }: PaneProps) {\n // Dev-server Start: Terminal opens BELOW the browser, so the page appears\n // on top when its port answers (SPEC-310C acceptance step 3).\n return <PreviewPaneSlot sessionId={sessionId ?? ''} roots={roots} request={requests.preview} visible={visible} onOpenTerminal={host.openTerminalBelow} />;\n}\n\nexport function ChangesPaneBody({ sessionId, roots, requests, turnFiles, host, visible }: PaneProps) {\n return <DiffPaneSlot sessionId={sessionId ?? ''} roots={roots} request={requests.diff} turnFiles={turnFiles} onAddToMessage={host.addToMessage} visible={visible} />;\n}\n","/**\n * routes/verse/panes/builtin-panes.tsx — the workbench's first-party panes,\n * registered UNDER any unit's registration of the same id (so a unit's\n * `registerPane({ id: 'reasoning', … })` replaces the stub whatever the\n * module order). Metadata comes from shell/dock-catalog.ts DOCK_PANES;\n * bodies are lazy, so each loads the first time its tab opens.\n *\n * id title key body\n * terminal Terminal ⌃` C4's TerminalPane through its slot\n * browser Browser ⇧⌘B C4's PreviewPane through its slot\n * diff Changes ⇧⌘D C5's DiffPane through its slot\n * files Files ⇧⌘O stub: folders + files read / changed\n * sources Sources ⇧⌘S stub: pages, searches, files read\n * reasoning Reasoning ⇧⌘Y stub: the chat's thinking, by turn\n * tasks Tasks — this turn's calls + other running chats\n * context Context — usage, roots, memory, handoff\n */\nimport type { ComponentType } from 'react';\nimport {\n ContextGlyph,\n FilesGlyph,\n PreviewGlyph,\n ReasoningGlyph,\n ReviewGlyph,\n SourcesGlyph,\n TasksGlyph,\n TerminalGlyph,\n} from '../dock/dock-icons.js';\nimport { DOCK_PANES, type BuiltinPaneId } from '../shell/dock-catalog.js';\nimport { isSlotAvailable } from '../shell/slots.js';\nimport { BrowserPaneBody, ChangesPaneBody, TerminalPaneBody } from './builtin/SlotPanes.js';\nimport { lazyPane, registerBuiltinPane, type PaneDefinition, type PaneIcon, type PaneProps } from './pane-registry.js';\n\ntype Body = ComponentType<PaneProps>;\n\nconst TasksBody = lazyPane(() => import('./builtin/ChatPanes.js').then((m) => m.TasksPaneBody));\nconst ContextBody = lazyPane(() => import('./builtin/ChatPanes.js').then((m) => m.ContextPaneBody));\nconst FilesBody = lazyPane(() => import('./builtin/FilesPane.js').then((m) => m.FilesPane));\nconst SourcesBody = lazyPane(() => import('./builtin/SourcesPane.js').then((m) => m.SourcesPane));\nconst ReasoningBody = lazyPane(() => import('./builtin/ReasoningPane.js').then((m) => m.ReasoningPane));\n\ninterface BuiltinExtras {\n icon: PaneIcon;\n component: Body;\n description: string;\n order: number;\n toggle?: boolean;\n needsSession?: boolean;\n when?: PaneDefinition['when'];\n}\n\n/** A slot pane exists once its owner's file is in the build (shell/slots.tsx). */\nconst slotLanded = (slot: Parameters<typeof isSlotAvailable>[0]) => () => isSlotAvailable(slot);\n\nconst EXTRAS: Readonly<Record<BuiltinPaneId, BuiltinExtras>> = {\n terminal: {\n icon: TerminalGlyph, component: TerminalPaneBody, order: 10, toggle: true, when: slotLanded('terminal-pane'),\n description: \"A shell in this chat's folders. Commands the chat suggests paste here — you press Enter.\",\n },\n browser: {\n icon: PreviewGlyph, component: BrowserPaneBody, order: 20, toggle: true, when: slotLanded('preview-pane'),\n description: 'Your dev server or a page the chat made, live beside the conversation.',\n },\n diff: {\n icon: ReviewGlyph, component: ChangesPaneBody, order: 30, toggle: true, when: slotLanded('diff-pane'),\n description: 'What changed — this turn, uncommitted, or the whole branch — with notes you can send back.',\n },\n files: {\n icon: FilesGlyph, component: FilesBody, order: 40,\n description: \"The chat's folders, and every file it has read or changed.\",\n },\n sources: {\n icon: SourcesGlyph, component: SourcesBody, order: 50,\n description: 'The pages, searches and files an answer rests on.',\n },\n reasoning: {\n icon: ReasoningGlyph, component: ReasoningBody, order: 60,\n description: \"The model's thinking, turn by turn, beside the answer.\",\n },\n tasks: {\n icon: TasksGlyph, component: TasksBody, order: 70, needsSession: false,\n description: \"This turn's tool calls, and every other chat that is running.\",\n },\n context: {\n icon: ContextGlyph, component: ContextBody, order: 80, needsSession: false,\n description: \"How full this chat's context is, its folders, memory and handoff.\",\n },\n};\n\nlet disposers: Array<() => void> = [];\n\n/** Register (or re-register, after a registry reset) every first-party pane. Idempotent. */\nexport function registerBuiltinPanes(): void {\n for (const dispose of disposers) dispose();\n disposers = DOCK_PANES.map((meta) => {\n const extra = EXTRAS[meta.id];\n return registerBuiltinPane({\n id: meta.id,\n title: meta.label,\n ...(meta.commandId ? { command: meta.commandId } : {}),\n ...extra,\n });\n });\n}\n\nregisterBuiltinPanes();\n","/**\n * routes/verse/panes/register-adapter.ts — panes that describe themselves\n * in a unit's `register.ts` (the shape the Browser, Terminal, Reasoning +\n * Sources and Changes units ship while the registry was landing):\n *\n * export const BROWSER_PANE = {\n * id: 'browser', label: 'Browser', commandId: 'pane.browser',\n * keywords: […], defaultSlot: 'dock', chatScoped: true,\n * load: () => import('./BrowserPanel.js').then((m) => ({ default: m.BrowserPanel })),\n * };\n *\n * panes/index.ts discovers every `routes/verse/<unit>/register.ts` and hands\n * its exports here. Each export of that shape becomes a registered pane —\n * REPLACING the first-party one with the same id (so it keeps that pane's\n * key, order and header toggle) — and anything else in the file is ignored.\n *\n * The unit's component gets the full PaneProps. Components written against\n * the smaller `{ sessionId, visible }` contract simply ignore the rest; they\n * are handed `sessionId: null` when no chat is open (these panes accept it),\n * so `needsSession` is false for them.\n */\nimport type { ComponentType } from 'react';\nimport { PanelRightGlyph } from '../dock/dock-icons.js';\nimport { PANE_ID_RE } from '../shell/dock-catalog.js';\nimport { getPane, lazyPane, registerPane, type PaneIcon, type PaneProps } from './pane-registry.js';\n\n/** The self-description a unit's `register.ts` exports. */\nexport interface UnitPaneRegistration {\n id: string;\n label: string;\n commandId?: string;\n keywords?: readonly string[];\n defaultSlot?: 'dock' | 'side' | 'main';\n chatScoped?: boolean;\n /** Optional: a 16px glyph; the first-party pane's icon (or a generic panel glyph) otherwise. */\n icon?: PaneIcon;\n /** Optional: its own chord ('mod+alt+t'); vetted like any pane shortcut. */\n shortcut?: string;\n description?: string;\n load: () => Promise<{ default: ComponentType<never> }>;\n}\n\n/** Ids a unit may use for a first-party pane under another name. */\nconst ID_ALIASES: Readonly<Record<string, string>> = { changes: 'diff', review: 'diff', preview: 'browser' };\n\nexport function isUnitPaneRegistration(value: unknown): value is UnitPaneRegistration {\n if (value === null || typeof value !== 'object') return false;\n const v = value as Record<string, unknown>;\n return typeof v['id'] === 'string' && PANE_ID_RE.test(v['id']) && typeof v['label'] === 'string' && v['label'].trim() !== ''\n && typeof v['load'] === 'function';\n}\n\n/**\n * Register every pane the given modules describe. Returns the ids registered\n * (for tests) — duplicates across modules: the later module wins, like any\n * replacement.\n */\nexport function registerUnitPanes(modules: Record<string, unknown>): string[] {\n const ids: string[] = [];\n for (const path of Object.keys(modules).sort()) {\n const mod = modules[path];\n if (mod === null || typeof mod !== 'object') continue;\n for (const value of Object.values(mod as Record<string, unknown>)) {\n if (!isUnitPaneRegistration(value)) continue;\n const id = ID_ALIASES[value.id] ?? value.id;\n const existing = getPane(id);\n const load = value.load;\n registerPane({\n id,\n title: value.label.trim(),\n icon: value.icon ?? existing?.icon ?? PanelRightGlyph,\n component: lazyPane(() => load().then((m) => m.default as unknown as ComponentType<PaneProps>)),\n needsSession: false,\n ...(value.shortcut ? { shortcut: value.shortcut } : {}),\n ...(value.description ? { description: value.description } : {}),\n });\n ids.push(id);\n }\n }\n return ids;\n}\n","/**\n * routes/verse/panes/index.ts — the pane system's entry: the registry API,\n * the first-party panes, and every other unit's panes, DISCOVERED.\n *\n * DISCOVERY. Any file named `*.pane.ts` / `*.pane.tsx` under routes/verse/\n * is imported here (eagerly — it only registers; its component stays a\n * `lazy()` import of its own chunk). So a unit adds a pane by adding ONE\n * file in its own directory, e.g. routes/verse/reasoning/reasoning.pane.tsx:\n *\n * import { lazyPane, registerPane } from '../panes/pane-registry.js';\n * registerPane({ id: 'reasoning', title: 'Reasoning', icon: ReasoningGlyph,\n * component: lazyPane(() => import('./ReasoningPane.js').then((m) => m.ReasoningPane)) });\n *\n * Load order does not matter: first-party panes always sit under a unit's\n * registration of the same id (pane-registry.ts registerBuiltinPane).\n *\n * The chat loads this module just after first paint (preloaded), never on\n * it — keep `*.pane.tsx` files to a registration and a lazy import.\n */\nimport './builtin-panes.js';\nimport { registerUnitPanes } from './register-adapter.js';\n\n/**\n * Every `*.pane.ts(x)` under routes/verse — keyed by path, evaluated for\n * their registrations. Exported so the registry test can check discovery.\n */\nexport const DISCOVERED_PANE_MODULES: Record<string, unknown> = import.meta.glob(['../**/*.pane.ts', '../**/*.pane.tsx'], { eager: true });\n\n/**\n * Every unit's `register.ts` (routes/verse/<unit>/register.ts) — the\n * self-describing form (`export const BROWSER_PANE = { id, label, load, … }`)\n * units shipped while the registry was landing. Each such export becomes a\n * registered pane (register-adapter.ts); a unit whose file has not landed is\n * simply an absent key. Registered AFTER the first-party panes (this body\n * runs once every import above has evaluated), so they replace the stubs.\n */\nexport const UNIT_PANE_MODULES: Record<string, unknown> = import.meta.glob('../*/register.ts', { eager: true });\nexport const UNIT_PANE_IDS: readonly string[] = registerUnitPanes(UNIT_PANE_MODULES);\n\nexport * from './pane-registry.js';\nexport { isUnitPaneRegistration, registerUnitPanes, type UnitPaneRegistration } from './register-adapter.js';\nexport { registerBuiltinPanes } from './builtin-panes.js';\n"],"file":"panes-Okpdx9n7.js"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{s as t}from"./index-v3DMReM2.js";import{o as n}from"./tool-semantics-xF0Fw2Ck.js";var r=e(t(),1),i=[],a=(0,r.createContext)(i);function o(e){return e}function s(e){return e.replace(/\\/g,`/`).replace(/\/+$/,``).replace(/^\/private(?=\/(?:tmp|var|etc)(?:\/|$))/,``).replace(/^[A-Z](?=:)/,e=>e.toLowerCase())}function c(e,t=i){let n=s(e),r=``;for(let e of t){let t=s(e);t.length>r.length&&!/^(?:[a-z]:)?$/.test(t)&&(n===t||n.startsWith(`${t}/`))&&(r=t)}let a=e.replace(/[\\/]+$/,``);if(r){let e=n.length-r.length-1;return e>0?a.slice(a.length-e):a.slice(Math.max(a.lastIndexOf(`/`),a.lastIndexOf(`\\`))+1)}if(!/^(?:[\\/]|[A-Za-z]:[\\/])/.test(e))return e.replace(/^\.[\\/]/,``);let o=e.includes(`/`)?`/`:`\\`,c=e.replace(/^[A-Za-z]:/,``).split(/[\\/]/).filter(Boolean);return c.length>4?`…${o}${c.slice(-3).join(o)}`:e}function l(e){let t=typeof e==`object`&&e?e:null;return t&&typeof t.command!=`string`&&typeof t.cmd!=`string`?n(t)[0]??null:null}function u(){let e=(0,r.useContext)(a);return(0,r.useCallback)(t=>c(t,e),[e])}export{u as a,l as i,o as n,c as r,a as t};
|
|
2
|
+
//# sourceMappingURL=path-display-Btavf0DG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path-display-Btavf0DG.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/chat/path-display.ts"],"sourcesContent":["/**\n * routes/verse/chat/path-display.ts — how a file path READS in the chat.\n *\n * Tool payloads carry whatever path the CLI used, and that is usually\n * absolute: `/private/tmp/…/scratchpad/e2e-proj-39/math.ts` for a file the\n * operator knows as `math.ts`. Shown raw, the one part that identifies the\n * file is what the row's ellipsis clips. So every path the transcript draws\n * goes through `displayPath`:\n *\n * 1. relative to the chat's roots (the longest root that contains it wins —\n * a worktree nested in its repo is its own root). Paths and roots are\n * compared as `keyOf`s, so `\\` vs `/`, a trailing separator, macOS's\n * `/private/tmp` for `/tmp` and `c:` for `C:` all still match; the rest\n * is sliced out of the ORIGINAL path, in the CLI's own separators;\n * 2. otherwise as the hub sent it when it is relative or `~/…`;\n * 3. otherwise, when it is long, its last three segments behind `…/`.\n *\n * HOME. The hub rewrites the operator's OWN home to `~` on every payload\n * (sanitizePublicJson) and is the only side that knows which home that is —\n * so a `~/…` path or root already says it, and matches as-is. Nothing here\n * guesses a home from `/Users/<x>`, `/home/<x>` or `C:\\Users\\<x>`: one that\n * reaches the browser is another account's or /Users/Shared, and drawing it\n * as `~` (or as in-project, via a `~` root) passes it off as the operator's.\n *\n * Display only. The full path stays in the tooltip and is never rewritten in\n * anything handed back to a tool, a search or a jump anchor. (It is in the\n * chat's first-paint chunk, hence the terse body.)\n */\nimport { createContext, useCallback, useContext } from 'react';\nimport { pathsIn } from './tool-semantics.js';\n\nconst NO_ROOTS: readonly string[] = [];\n\n/** The chat's roots, primary first (Workspace provides them; Transcript can override). */\nexport const PathRootsContext = createContext<readonly string[]>(NO_ROOTS);\n\n/**\n * A path as the operator's home reads: unchanged. The hub already spelled\n * that home `~`; any other `/Users/<x>` is someone else's (see HOME above).\n * Kept as the one seam home display goes through (SessionRoots uses it).\n */\nexport function abbreviateHome(path: string): string {\n return path;\n}\n\n/**\n * One folder's comparable form: `/` separators, no trailing one, the\n * `/private` alias folded (/tmp, /var and /etc are symlinks into it and roots\n * are not realpath'd), a lower-case drive letter. Only the fold changes the\n * length, and only at the head — so a matched tail maps back onto the original.\n */\nfunction keyOf(path: string): string {\n return path.replace(/\\\\/g, '/').replace(/\\/+$/, '')\n .replace(/^\\/private(?=\\/(?:tmp|var|etc)(?:\\/|$))/, '')\n .replace(/^[A-Z](?=:)/, (d) => d.toLowerCase());\n}\n\n/** What the transcript draws for `path`; the full path belongs in the tooltip. */\nexport function displayPath(path: string, roots: readonly string[] = NO_ROOTS): string {\n const key = keyOf(path);\n let root = '';\n for (const raw of roots) {\n const r = keyOf(raw);\n // A bare `/`, `C:` or `\\\\` root would claim every path on the machine.\n if (r.length > root.length && !/^(?:[a-z]:)?$/.test(r) && (key === r || key.startsWith(`${r}/`))) root = r;\n }\n const own = path.replace(/[\\\\/]+$/, '');\n // Inside a root: the rest of the path, or — for the root itself — its name.\n if (root) {\n const rest = key.length - root.length - 1;\n return rest > 0 ? own.slice(own.length - rest) : own.slice(Math.max(own.lastIndexOf('/'), own.lastIndexOf('\\\\')) + 1);\n }\n if (!/^(?:[\\\\/]|[A-Za-z]:[\\\\/])/.test(path)) return path.replace(/^\\.[\\\\/]/, '');\n const sep = path.includes('/') ? '/' : '\\\\';\n const parts = path.replace(/^[A-Za-z]:/, '').split(/[\\\\/]/).filter(Boolean);\n return parts.length > 4 ? `…${sep}${parts.slice(-3).join(sep)}` : path;\n}\n\n/**\n * The file a tool call names, when it runs no command — a shell call keeps\n * its command line verbatim (rewriting a command is not display).\n */\nexport function inputPath(input: unknown): string | null {\n const rec = input !== null && typeof input === 'object' ? input as Record<string, unknown> : null;\n return rec && typeof rec.command !== 'string' && typeof rec.cmd !== 'string' ? pathsIn(rec)[0] ?? null : null;\n}\n\n/** `displayPath` bound to the roots in context. */\nexport function useDisplayPath(): (path: string) => string {\n const roots = useContext(PathRootsContext);\n return useCallback((path: string) => displayPath(path, roots), [roots]);\n}\n"],"mappings":"2JA+BM,EAA8B,CAAC,EAGxB,GAAA,EAAmB,EAAA,cAAA,CAAiC,CAAQ,EAOzE,SAAgB,EAAe,EAAsB,CACnD,OAAO,CACT,CAQA,SAAS,EAAM,EAAsB,CACnC,OAAO,EAAK,QAAQ,MAAO,GAAG,CAAC,CAAC,QAAQ,OAAQ,EAAE,CAAC,CAChD,QAAQ,0CAA2C,EAAE,CAAC,CACtD,QAAQ,cAAgB,GAAM,EAAE,YAAY,CAAC,CAClD,CAGA,SAAgB,EAAY,EAAc,EAA2B,EAAkB,CACrF,IAAM,EAAM,EAAM,CAAI,EAClB,EAAO,GACX,IAAK,IAAM,KAAO,EAAO,CACvB,IAAM,EAAI,EAA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let r=e.replace(n,(e,t)=>t).replace(/^\s+/,``);return r?`${t} ${r}`:`${t} `}function i(e,t){let n=Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,`value`)?.set;n?n.call(e,t):e.value=t,e.dispatchEvent(new Event(`input`,{bubbles:!0})),e.focus();let r=e.value.length;try{e.setSelectionRange(r,r)}catch{}}function a(e,n){let a=t(n);return!a||a.disabled?!1:(i(a,r(a.value,e)),!0)}async function o(t,n={}){e(`chat`);let r=Date.now()+(n.waitMs??3e3);for(;;){if(a(t,n.root))return!0;if(Date.now()>=r)return!1;await new Promise(e=>setTimeout(e,60))}}export{a as n,o as t};
|
|
2
|
+
//# sourceMappingURL=playbook-composer-BeK2aEqv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"playbook-composer-BeK2aEqv.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/playbooks/playbook-composer.ts"],"sourcesContent":["/**\n * routes/verse/playbooks/playbook-composer.ts — put a playbook's `!macro`\n * into the chat composer (never send it).\n *\n * A playbook reaches a task through its text: `!fix-bug` in the message is\n * resolved by whichever lane runs it (the chat itself on any seat, Run in\n * cloud, Run in Devin, a fleet goal). So \"Use playbook…\" and \"Run…\" only\n * WRITE the macro at the front of the draft — the operator still describes\n * the task and picks the lane.\n *\n * Like cloud/composer-draft.ts, this goes through the box itself (native\n * setter + `input` event), which React's controlled textarea treats as the\n * operator's own edit, so draft persistence sees it too.\n */\nimport { findComposerBox } from '../cloud/composer-draft.js';\nimport { setVerseSection } from '../verse-ui-store.js';\n\n/** `!name` tokens anywhere in prose (the server's rule, simplified: whitespace or start before `!`). */\nconst MACRO_TOKEN = /(^|\\s)![a-z0-9][a-z0-9-]{1,47}(?:@v?\\d{1,6})?(?=\\s|$)/g;\n\n/**\n * The draft with `macro` at its front. A draft that already names a\n * playbook has that one replaced (one playbook per task); an empty draft\n * becomes `!macro ` ready for the task text. Pure.\n */\nexport function withMacro(draft: string, macro: string): string {\n const stripped = draft.replace(MACRO_TOKEN, (_m, lead: string) => lead).replace(/^\\s+/, '');\n return stripped ? `${macro} ${stripped}` : `${macro} `;\n}\n\nfunction write(box: HTMLTextAreaElement, value: string): void {\n const setter = Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype, 'value')?.set;\n if (setter) setter.call(box, value);\n else box.value = value;\n box.dispatchEvent(new Event('input', { bubbles: true }));\n box.focus();\n const end = box.value.length;\n try {\n box.setSelectionRange(end, end);\n } catch {\n /* a hidden box has no selection; the text is in either way */\n }\n}\n\n/** Write the macro into the composer on screen. False when there is no usable box. */\nexport function putMacroInComposerNow(macro: string, root?: ParentNode): boolean {\n const box = findComposerBox(root);\n if (!box || box.disabled) return false;\n write(box, withMacro(box.value, macro));\n return true;\n}\n\n/**\n * Go to Chat and write the macro once its composer is mounted (the Chat\n * section may be a chunk that is still loading). False when no chat composer\n * appeared in time — the caller says so (open a chat first).\n */\nexport async function putMacroInComposer(macro: string, opts: { waitMs?: number; root?: ParentNode } = {}): Promise<boolean> {\n setVerseSection('chat');\n const deadline = Date.now() + (opts.waitMs ?? 3_000);\n for (;;) {\n if (putMacroInComposerNow(macro, opts.root)) return true;\n if (Date.now() >= deadline) return false;\n await new Promise((resolve) => setTimeout(resolve, 60));\n }\n}\n"],"mappings":"mGAkBA,IAAM,EAAc,yDAOpB,SAAgB,EAAU,EAAe,EAAuB,CAC9D,IAAM,EAAW,EAAM,QAAQ,GAAc,EAAI,IAAiB,CAAI,CAAC,CAAC,QAAQ,OAAQ,EAAE,EAC1F,OAAO,EAAW,GAAG,EAAM,GAAG,IAAa,GAAG,EAAM,EACtD,CAEA,SAAS,EAAM,EAA0B,EAAqB,CAC5D,IAAM,EAAS,OAAO,yBAAyB,oBAAoB,UAAW,OAAO,CAAC,EAAE,IACpF,EAAQ,EAAO,KAAK,EAAK,CAAK,EAC7B,EAAI,MAAQ,EACjB,EAAI,cAAc,IAAI,MAAM,QAAS,CAAE,QAAS,EAAK,CAAC,CAAC,EACvD,EAAI,MAAM,EACV,IAAM,EAAM,EAAI,MAAM,OACtB,GAAI,CACF,EAAI,kBAAkB,EAAK,CAAG,CAChC,MAAQ,CAER,CACF,CAGA,SAAgB,EAAsB,EAAe,EAA4B,CAC/E,IAAM,EAAM,EAAgB,CAAI,EAGhC,MAFI,CAAC,GAAO,EAAI,SAAiB,IACjC,EAAM,EAAK,EAAU,EAAI,MAAO,CAAK,CAAC,EAC/B,GACT,CAOA,eAAsB,EAAmB,EAAe,EAA+C,CAAC,EAAqB,CAC3H,EAAgB,MAAM,EACtB,IAAM,EAAW,KAAK,IAAI,GAAK,EAAK,QAAU,KAC9C,OAAS,CACP,GAAI,EAAsB,EAAO,EAAK,IAAI,EAAG,MAAO,GACpD,GAAI,KAAK,IAAI,GAAK,EAAU,MAAO,GACnC,MAAM,IAAI,QAAS,GAAY,WAAW,EAAS,EAAE,CAAC,CACxD,CACF"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-hePW80VL.js";import{I as t}from"./VerseConsoleApp-DY0SUyQ3.js";var n=e({REQUEST_TTL_MS:()=>r,getPlaybookFocus:()=>l,isPlaybookFocusLive:()=>u,requestPlaybookFocus:()=>c,subscribePlaybookFocus:()=>f,takePlaybookFocus:()=>d}),r=2e4,i=null,a=0,o=new Set;function s(){for(let e of[...o])e()}function c(e){a+=1,i={...e,seq:a,at:Date.now()},t(`playbooks`),s()}function l(){return i}function u(e,t=Date.now()){return t-e.at<=r}function d(e){i?.seq===e&&(i=null,s())}function f(e){return o.add(e),()=>o.delete(e)}export{d as a,f as i,u as n,n as r,l as t};
|
|
2
|
+
//# sourceMappingURL=playbook-focus-DWPPmq2q.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"playbook-focus-DWPPmq2q.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/playbooks/playbook-focus.ts"],"sourcesContent":["/**\n * routes/verse/playbooks/playbook-focus.ts — ⌘K \"Run playbook…\" → the lazily\n * mounted Playbooks section, in \"choose one to run\" mode (the same shape as\n * wiki/wiki-focus.ts). A request waits (up to REQUEST_TTL_MS) until the\n * section mounts and takes it. Tiny and framework-free.\n */\nimport { setVerseSection } from '../verse-ui-store.js';\n\n/**\n * `run`: ⌘K \"Run playbook…\" — pick any playbook to run.\n * `workflows`: ⌘K \"Run command workflow…\" when no terminal panel served it —\n * the list narrows to command workflows (kind: command).\n */\nexport type PlaybookFocusTarget = { kind: 'run' } | { kind: 'workflows' };\nexport type PlaybookFocusRequest = PlaybookFocusTarget & { seq: number; at: number };\n\nexport const REQUEST_TTL_MS = 20_000;\n\nlet current: PlaybookFocusRequest | null = null;\nlet seq = 0;\nconst listeners = new Set<() => void>();\n\nfunction emit(): void {\n for (const l of [...listeners]) l();\n}\n\nexport function requestPlaybookFocus(target: PlaybookFocusTarget): void {\n seq += 1;\n current = { ...target, seq, at: Date.now() };\n setVerseSection('playbooks');\n emit();\n}\n\nexport function getPlaybookFocus(): PlaybookFocusRequest | null {\n return current;\n}\n\nexport function isPlaybookFocusLive(request: PlaybookFocusRequest, now: number = Date.now()): boolean {\n return now - request.at <= REQUEST_TTL_MS;\n}\n\n/** Clear request `requestSeq` (only that one — a newer ask survives). */\nexport function takePlaybookFocus(requestSeq: number): void {\n if (current?.seq !== requestSeq) return;\n current = null;\n emit();\n}\n\nexport function subscribePlaybookFocus(listener: () => void): () => void {\n listeners.add(listener);\n return () => listeners.delete(listener);\n}\n\n/** Test hygiene. */\nexport function resetPlaybookFocus(): void {\n current = null;\n emit();\n}\n"],"mappings":"sQAgBa,EAAiB,IAE1B,EAAuC,KACvC,EAAM,EACJ,EAAY,IAAI,IAEtB,SAAS,GAAa,CACpB,IAAK,IAAM,IAAK,CAAC,GAAG,CAAS,EAAG,EAAE,CACpC,CAEA,SAAgB,EAAqB,EAAmC,CACtE,GAAO,EACP,EAAU,CAAE,GAAG,EAAQ,MAAK,GAAI,KAAK,IAAI,CAAE,EAC3C,EAAgB,WAAW,EAC3B,EAAK,CACP,CAEA,SAAgB,GAAgD,CAC9D,OAAO,CACT,CAEA,SAAgB,EAAoB,EAA+B,EAAc,KAAK,IAAI,EAAY,CACpG,OAAO,EAAM,EAAQ,IAAM,CAC7B,CAGA,SAAgB,EAAkB,EAA0B,CACtD,GAAS,MAAQ,IACrB,EAAU,KACV,EAAK,EACP,CAEA,SAAgB,EAAuB,EAAkC,CAEvE,OADA,EAAU,IAAI,CAAQ,MACT,EAAU,OAAO,CAAQ,CACxC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{C as e,M as t,V as n,a as r,i,t as a}from"./global-Bn1GsjsC.js";import{r as o}from"./VerseShared-CQLwhtIc.js";var s=`/api/verse/playbooks`,c=[`Outcome`,`Procedure`,`Specifications`,`Advice`,`Forbidden actions`,`Required from user`],l=[`Outcome`,`Procedure`],u=[`agent`,`command`],d=`Command`,f=/^[a-z0-9][a-z0-9-]{1,47}$/,p=/^![a-z0-9][a-z0-9-]{1,47}$/,m=12288;function h(e){return e?.kind===`command`?`command`:`agent`}var g=`verse-playbooks`,_=(e,t)=>`verse-playbook:${e}:${t??`latest`}`;function v(e){if(!e||typeof e!=`object`)return null;let t=e.playbooks;return Array.isArray(t)?t:null}var y={key:g,fetch:async e=>{try{let t=v(await i(s,e));return t?{value:t,available:!0,reason:null}:{value:null,available:!0,reason:`Unrecognized response — update Phantom.`}}catch(e){if(e instanceof a&&e.status===401||e instanceof DOMException&&e.name===`AbortError`)throw e;return{value:null,available:!1,reason:e instanceof a&&e.status===404?`Playbooks are not in this build yet.`:`Playbooks could not be read.`}}}};function b(e,t){let n=t===null?``:`?version=${t}`;return{key:_(e,t),fetch:t=>i(`${s}/${encodeURIComponent(e)}${n}`,t)}}async function x(i){let a=e();if(!a)throw new o;let c=await r(s,i,a);return t(),c.ok&&(n(g),n(_(c.playbook.meta.id,null))),c}export{f as a,m as c,h as d,d as i,c as l,y as n,u as o,x as r,p as s,b as t,l as u};
|
|
2
|
+
//# sourceMappingURL=playbooks-queries-M-lzwRzZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"playbooks-queries-M-lzwRzZ.js","names":[],"sources":["../../../../../../src/core/playbooks/types.ts","../../../../../../src/web-ui/routes/verse/playbooks/playbooks-queries.ts"],"sourcesContent":["/**\n * Versioned playbooks — the vocabulary (3.15).\n *\n * A PLAYBOOK is a reusable, versioned task template every lane can run under:\n * fleet goals, the cloud lane, the Devin lane, the Leader's work.dispatch and\n * the interactive \"Run in cloud / Run in Devin\". Modelled on Devin playbooks:\n * a markdown body with fixed sections (Outcome, Procedure, Specifications,\n * Advice, Forbidden actions, Required from user) under a small front-matter\n * (id, name, `!macro`, where it applies, done-when checks, default budget).\n *\n * Versions are IMMUTABLE: an edit writes v<N+1>; v<N> is never rewritten, so\n * a task that ran under `fix-issue@v3` can always be traced to the exact text\n * it was given, and retros attribute outcomes per version.\n *\n * Guidance only: a playbook changes what the brief SAYS, never a route, gate,\n * budget cap or authority. A task with no playbook gets a byte-identical prompt.\n *\n * BROWSER-SAFE: the Playbooks view imports this — type-only imports, plain consts.\n */\nimport type { TaskKind } from '../learn/retro/types.js';\nimport type { CommandParam } from './command-template.js';\n\nexport type { TaskKind, CommandParam };\n\nexport const VERSE_PLAYBOOKS_PATH = '/api/verse/playbooks';\n\n/** The body sections, in render order. Headings are `## <name>` (case-insensitive). */\nexport const PLAYBOOK_SECTIONS = [\n 'Outcome',\n 'Procedure',\n 'Specifications',\n 'Advice',\n 'Forbidden actions',\n 'Required from user',\n] as const;\nexport type PlaybookSectionName = (typeof PLAYBOOK_SECTIONS)[number];\n\n/** A playbook without these is rejected: an engine needs a goal and a way there. */\nexport const REQUIRED_PLAYBOOK_SECTIONS: readonly PlaybookSectionName[] = ['Outcome', 'Procedure'];\n\n/**\n * What a playbook is (the `kind` front-matter key):\n * agent guidance an engine follows — every playbook before this key\n * existed, and the default when it is absent.\n * command a COMMAND WORKFLOW: a shell command template with\n * `{{param:default}}` holes (command-template.ts). The operator\n * fills a form and the command is pasted at a terminal prompt —\n * never run, never sent to an engine. No lane resolves one: not\n * by `!macro`, not explicitly, not by auto-match (resolve.ts).\n */\nexport const PLAYBOOK_KINDS = ['agent', 'command'] as const;\nexport type PlaybookKind = (typeof PLAYBOOK_KINDS)[number];\n\n/** A command workflow's body: the `## Command` code block and its holes. */\nexport interface PlaybookCommandSpec {\n /** The command template, exactly as in the code block (no trailing newline). */\n template: string;\n /** Distinct `{{name[:default]}}` holes, in first-appearance order. */\n params: CommandParam[];\n}\n\n/** The one section of a `kind: command` playbook (its code block is the template). */\nexport const COMMAND_SECTION = 'Command';\n\n/** Ids are path segments: lowercase, digits, dashes; 2–48 chars. */\nexport const PLAYBOOK_ID_PATTERN = /^[a-z0-9][a-z0-9-]{1,47}$/;\n/** Macros are `!` + an id-shaped name. */\nexport const PLAYBOOK_MACRO_PATTERN = /^![a-z0-9][a-z0-9-]{1,47}$/;\n\n/** A playbook's markdown source never exceeds this (UTF-8 bytes). */\nexport const PLAYBOOK_MAX_BYTES = 12 * 1024;\n/** The rendered block injected into a prompt never exceeds this (Devin's AGENTS.md cap). */\nexport const PLAYBOOK_INJECT_CAP_BYTES = 16 * 1024;\n\nexport interface PlaybookBudget {\n /** Default spend ceiling for one run, in USD; null = the lane's own default. */\n usd: number | null;\n /** Default wall-clock ceiling for one run, in minutes; null = the lane's own default. */\n minutes: number | null;\n}\n\n/** Front-matter. */\nexport interface PlaybookMeta {\n id: string;\n name: string;\n /** `!fix-bug`. Defaults to `!<id>`. */\n macro: string;\n /** One line for lists and the ⌘K palette. */\n description: string;\n /** Where it applies. Empty lists mean \"any\". */\n appliesTo: {\n /** GitHub `owner/name`, case-insensitive. */\n repos: string[];\n /** Repo-relative globs (`src/**`, `*.md`). */\n globs: string[];\n };\n /** Task kinds it is written for; [] = any. */\n taskKinds: TaskKind[];\n /** Checks the engine must see pass before it calls the task done. */\n doneWhen: string[];\n budget: PlaybookBudget;\n /**\n * Auto-match: attach this playbook to tasks that did not name one when the\n * task's kind (and repo / globs) match. Off by default — a playbook reaches\n * a task only when asked for, until Mason turns this on.\n */\n auto: boolean;\n /**\n * `agent` or `command` (see PLAYBOOK_KINDS). The parser always sets it;\n * absent (a record from an older build, a hand-built meta) means `agent`.\n */\n kind?: PlaybookKind;\n /** kind `command` only: the template and its holes. */\n command?: PlaybookCommandSpec;\n}\n\n/** A playbook's kind; absent ⇒ `agent` (every playbook written before 3.15's command workflows). Pure. */\nexport function playbookKindOf(meta: { kind?: PlaybookKind } | null | undefined): PlaybookKind {\n return meta?.kind === 'command' ? 'command' : 'agent';\n}\n\nexport type PlaybookSections = Partial<Record<PlaybookSectionName, string>>;\n\n/** A parsed, validated playbook version. */\nexport interface PlaybookV1 {\n v: 1;\n meta: PlaybookMeta;\n sections: PlaybookSections;\n version: number;\n /** First 12 hex of sha256(source) — pins the exact text a task ran under. */\n sha: string;\n /** The canonical markdown stored on disk. */\n source: string;\n createdAt: string;\n /** Shipped with ashlr and never edited on this machine (v1 lives in code). */\n builtin: boolean;\n}\n\n/** What a task / proposal / retro records: the exact playbook version it ran under. */\nexport interface PlaybookRef {\n id: string;\n version: number;\n sha: string;\n}\n\n/** How a playbook reached a task. */\nexport type PlaybookMatch = 'explicit' | 'macro' | 'auto';\n\nexport interface PlaybookVersionInfo {\n version: number;\n sha: string;\n createdAt: string;\n /** Optional change note written with the edit. */\n note: string | null;\n /** Who wrote this version (`mason`, `leader`, `cli`, `ashlr` for a built-in); null = not recorded. */\n author: string | null;\n}\n\n/** One row of the playbook list. */\nexport interface PlaybookSummary {\n id: string;\n name: string;\n macro: string;\n description: string;\n taskKinds: TaskKind[];\n auto: boolean;\n latest: number;\n builtin: boolean;\n updatedAt: string;\n /** `agent` | `command`; absent (an older server) ⇒ `agent`. */\n kind?: PlaybookKind;\n /** kind `command` only: the template and its holes, so a picker fills without a second read. */\n command?: PlaybookCommandSpec;\n}\n\n/** Outcomes per version, counted from retros that carry this playbook. */\nexport interface PlaybookOutcomeCounts {\n merged: number;\n /** gate-refused, owner-laned, closed, vetoed. */\n refused: number;\n reverted: number;\n /** verify-failed, failed, expired. */\n failed: number;\n total: number;\n}\n\nexport interface PlaybookValidationIssue {\n field: string;\n message: string;\n}\n\nexport type PlaybookParseResult =\n | { ok: true; meta: PlaybookMeta; sections: PlaybookSections; warnings: PlaybookValidationIssue[] }\n | { ok: false; errors: PlaybookValidationIssue[] };\n\n// ---------------------------------------------------------------------------\n// Verse contract\n// ---------------------------------------------------------------------------\n\n/** GET /api/verse/playbooks */\nexport interface PlaybooksListResponse {\n v: 1;\n playbooks: PlaybookSummary[];\n}\n\n/** GET /api/verse/playbooks/<id>[?version=N] */\nexport interface PlaybookDetailResponse {\n v: 1;\n playbook: PlaybookV1;\n /**\n * Rendered as an engine sees it. A command workflow never reaches an\n * engine: for one this is its command block and parameters, for reading.\n */\n rendered: string;\n versions: (PlaybookVersionInfo & { outcomes: PlaybookOutcomeCounts })[];\n}\n\n/** POST /api/verse/playbooks — create (id must be new) or edit (id exists ⇒ v<N+1>). */\nexport interface PlaybookSaveRequest {\n source: string;\n /** Edit guard: the version the editor started from; a newer latest refuses the save. */\n baseVersion?: number;\n note?: string;\n}\n\nexport type PlaybookSaveResponse =\n | { ok: true; playbook: PlaybookV1 }\n | { ok: false; errors: PlaybookValidationIssue[] };\n\nexport function formatPlaybookRef(ref: Pick<PlaybookRef, 'id' | 'version'>): string {\n return `${ref.id}@v${ref.version}`;\n}\n\n/** Parse `id@vN` / `id@N` / `id`. null when malformed. Pure. */\nexport function parsePlaybookRefText(text: string): { id: string; version: number | null } | null {\n const m = /^([a-z0-9][a-z0-9-]{1,47})(?:@v?(\\d{1,6}))?$/.exec(text.trim().replace(/^!/, ''));\n if (!m) return null;\n return { id: m[1]!, version: m[2] ? Number(m[2]) : null };\n}\n\n/** Is this a well-formed PlaybookRef? (Records are read back from disk.) */\nexport function isPlaybookRef(value: unknown): value is PlaybookRef {\n if (!value || typeof value !== 'object') return false;\n const r = value as Record<string, unknown>;\n return typeof r['id'] === 'string' && PLAYBOOK_ID_PATTERN.test(r['id'])\n && typeof r['version'] === 'number' && Number.isInteger(r['version']) && r['version'] >= 1\n && typeof r['sha'] === 'string' && /^[0-9a-f]{12}$/.test(r['sha']);\n}\n","/**\n * routes/verse/playbooks/playbooks-queries.ts — the reads and the one write\n * behind the Playbooks section (core/verse/playbooks-api.ts).\n *\n * GET /api/verse/playbooks → PlaybooksListResponse\n * GET /api/verse/playbooks/<id>[?version=N] → PlaybookDetailResponse\n * POST /api/verse/playbooks → PlaybookSaveResponse (a NEW version)\n *\n * The list read is optional (an older server has no route: the composer's\n * `!` menu and the ⋯ sheet then say so instead of failing). Writes pull the\n * held mutation token, touch the hold, and invalidate what they change.\n */\nimport {\n VERSE_PLAYBOOKS_PATH,\n type PlaybookDetailResponse,\n type PlaybookSaveRequest,\n type PlaybookSaveResponse,\n type PlaybooksListResponse,\n type PlaybookSummary,\n} from '../../../../core/playbooks/types.js';\nimport { getMutationToken, touchMutationHold } from '../../../data/auth-store.js';\nimport { ApiError, apiGet, apiPost } from '../../../data/client.js';\nimport { invalidate } from '../../../data/cache.js';\nimport type { QueryDef } from '../../../data/queries.js';\nimport { VerseMutationLockedError } from '../verse-queries.js';\n\nexport const PLAYBOOKS_KEY = 'verse-playbooks';\nconst detailKeyOf = (id: string, version: number | null) => `verse-playbook:${id}:${version ?? 'latest'}`;\n\n/** The list, or why there is none. `value: null` ⇒ `reason` says why. */\nexport interface PlaybooksRead {\n value: PlaybookSummary[] | null;\n available: boolean;\n reason: string | null;\n}\n\nfunction narrowList(raw: unknown): PlaybookSummary[] | null {\n if (!raw || typeof raw !== 'object') return null;\n const rows = (raw as { playbooks?: unknown }).playbooks;\n return Array.isArray(rows) ? (rows as PlaybookSummary[]) : null;\n}\n\n/**\n * The list as an optional read: a 404 (no route in this build) or an\n * unreachable server resolves with a reason instead of throwing. Kept free\n * of the command surface's helpers: the composer's `!` menu imports this,\n * and the composer is on the chat's first paint.\n */\nexport const playbooksQuery: QueryDef<PlaybooksRead> = {\n key: PLAYBOOKS_KEY,\n fetch: async (signal) => {\n try {\n const value = narrowList(await apiGet<unknown>(VERSE_PLAYBOOKS_PATH, signal));\n return value ? { value, available: true, reason: null } : { value: null, available: true, reason: 'Unrecognized response — update Phantom.' };\n } catch (err) {\n if (err instanceof ApiError && err.status === 401) throw err;\n if (err instanceof DOMException && err.name === 'AbortError') throw err;\n const missing = err instanceof ApiError && err.status === 404;\n return { value: null, available: false, reason: missing ? 'Playbooks are not in this build yet.' : 'Playbooks could not be read.' };\n }\n },\n};\n\nexport function playbookDetailQuery(id: string, version: number | null): QueryDef<PlaybookDetailResponse> {\n const suffix = version === null ? '' : `?version=${version}`;\n return {\n key: detailKeyOf(id, version),\n fetch: (signal) => apiGet<PlaybookDetailResponse>(`${VERSE_PLAYBOOKS_PATH}/${encodeURIComponent(id)}${suffix}`, signal),\n };\n}\n\n/** Save = create (new id) or a new version (existing id). Never rewrites a version. */\nexport async function savePlaybookSource(request: PlaybookSaveRequest): Promise<PlaybookSaveResponse> {\n const token = getMutationToken();\n if (!token) throw new VerseMutationLockedError();\n const res = await apiPost<PlaybookSaveResponse>(VERSE_PLAYBOOKS_PATH, request, token);\n touchMutationHold();\n if (res.ok) {\n invalidate(PLAYBOOKS_KEY);\n invalidate(detailKeyOf(res.playbook.meta.id, null));\n }\n return res;\n}\n\nexport type { PlaybooksListResponse };\n"],"mappings":"qHAwBA,IAAa,EAAuB,uBAGvB,EAAoB,CAC/B,UACA,YACA,iBACA,SACA,oBACA,oBACF,EAIa,EAA6D,CAAC,UAAW,WAAW,EAYpF,EAAiB,CAAC,QAAS,SAAS,EAYpC,EAAkB,UAGlB,EAAsB,4BAEtB,EAAyB,6BAGzB,EAAqB,MA+ClC,SAAgB,EAAe,EAAgE,CAC7F,OAAO,GAAM,OAAS,UAAY,UAAY,OAChD,CC7FA,IAAa,EAAgB,kBACvB,GAAe,EAAY,IAA2B,kBAAkB,EAAG,GAAG,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