@openscout/scout 0.2.80 → 0.2.83
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/README.md +1 -1
- package/bin/scoutd +0 -0
- package/dist/build-manifest.json +4 -4
- package/dist/client/assets/ActivityScreen-aewI4Ul1.js +1 -0
- package/dist/client/assets/{AddProjectForm-CtEiLQnm.js → AddProjectForm-Czb5uwou.js} +1 -1
- package/dist/client/assets/{AgentAvatar-CszU5eaU.js → AgentAvatar-DMov24_o.js} +1 -1
- package/dist/client/assets/AgentConfigurationScreen-BjG6ECjl.js +1 -0
- package/dist/client/assets/AgentDefinitionsWorkspace-D4MbSMXp.js +1 -0
- package/dist/client/assets/{AgentDetailCard-sZuHl1de.js → AgentDetailCard-Biq8b2gv.js} +1 -1
- package/dist/client/assets/AgentFloorView-h9KDJdw0.js +1 -0
- package/dist/client/assets/AgentInfoScreen-SjhK_SBh.js +1 -0
- package/dist/client/assets/{AgentLaneCard-nB68f2CI.js → AgentLaneCard-C4DMQR-c.js} +1 -1
- package/dist/client/assets/{AgentLaneChrome-O9Yf0uR-.js → AgentLaneChrome-D1xNNf7A.js} +1 -1
- package/dist/client/assets/{AgentLaneDetailSheet-BfhpaEQ3.js → AgentLaneDetailSheet-DnAKe4e3.js} +1 -1
- package/dist/client/assets/{AgentLaneSummaryResize-Ct3b0TQR.js → AgentLaneSummaryResize-C9loK-st.js} +1 -1
- package/dist/client/assets/AgentLanesEmbedScreen-BNOYF16R.js +1 -0
- package/dist/client/assets/{AgentLanesPreflight-DNGvZvjd.js → AgentLanesPreflight-M7iDXdP2.js} +1 -1
- package/dist/client/assets/{AgentLanesView-DqRK5-d2.js → AgentLanesView-Ct-Gz5WD.js} +1 -1
- package/dist/client/assets/{AgentLiveActions-DI4ooSHW.js → AgentLiveActions-0iy8QZ1T.js} +1 -1
- package/dist/client/assets/{AgentSessions-BxWIPkWh.js → AgentSessions-CDfSfNiE.js} +2 -2
- package/dist/client/assets/{AgentsConsole-D6VHSCfZ.js → AgentsConsole-BVxhBqRa.js} +1 -1
- package/dist/client/assets/AgentsScreen-Bww6HgFs.js +1 -0
- package/dist/client/assets/AgentsSubnav-CiIuzxnZ.js +1 -0
- package/dist/client/assets/{AtopView-VZkk40v0.js → AtopView-h_aFoNkP.js} +1 -1
- package/dist/client/assets/BackToPicker-BXp5E2ck.js +1 -0
- package/dist/client/assets/{BriefingDetailScreen-BZU4qMwE.js → BriefingDetailScreen-C83o2YfN.js} +1 -1
- package/dist/client/assets/{BriefingsScreen-Bfc3tqPp.js → BriefingsScreen-BTsvr5fv.js} +1 -1
- package/dist/client/assets/{BrokerMetadataPanel-CaFe6kdh.js → BrokerMetadataPanel-jg7odHQp.js} +1 -1
- package/dist/client/assets/BrokerScreen-DplF8d_X.js +5 -0
- package/dist/client/assets/Canvas-BePL08RR.js +1 -0
- package/dist/client/assets/{ChatCollapsedStrip-Cov54p9V.js → ChatCollapsedStrip-BRljIymi.js} +1 -1
- package/dist/client/assets/{CodeDiffPane-C1ebFt-Y.js → CodeDiffPane-86odpBSt.js} +1 -1
- package/dist/client/assets/{CodeProjectPicker-tsCly-f3.js → CodeProjectPicker-8svr_S_A.js} +1 -1
- package/dist/client/assets/{CodeScreen-D0hpZNLP.js → CodeScreen-CJ2RgB32.js} +1 -1
- package/dist/client/assets/{ContextMenu-N-Z6X0Z1.js → ContextMenu-CxkmFQcN.js} +1 -1
- package/dist/client/assets/{ConversationComposer-CiEF7dhd.js → ConversationComposer-CWohCCmn.js} +1 -1
- package/dist/client/assets/ConversationFeedRows-IWh0JSIL.js +1 -0
- package/dist/client/assets/{ConversationHeader-BGgbITvr.js → ConversationHeader-BxTzXl8e.js} +1 -1
- package/dist/client/assets/ConversationPanels-D9UCwNkS.js +2 -0
- package/dist/client/assets/ConversationScreen-oZSitVtX.js +1 -0
- package/dist/client/assets/{ConversationStatus-COEj5loj.js → ConversationStatus-B6pAbo2w.js} +1 -1
- package/dist/client/assets/{DataTable-BoofV-_4.js → DataTable-CGw5CECG.js} +1 -1
- package/dist/client/assets/{DispatchAftermath-OXYlMbT1.js → DispatchAftermath-DowTb7uO.js} +1 -1
- package/dist/client/assets/{DocumentFocusViewer-BCG2kOmd.js → DocumentFocusViewer-DRKjNG9s.js} +1 -1
- package/dist/client/assets/{EmbeddableSurfacesLab-C2SZvrHJ.js → EmbeddableSurfacesLab-CxfJXS2g.js} +1 -1
- package/dist/client/assets/{EmptyState-DypEjx0V.js → EmptyState-BUvllvA6.js} +1 -1
- package/dist/client/assets/{FileViewerPane-CXCq-oKj.js → FileViewerPane-BM4AD_bo.js} +1 -1
- package/dist/client/assets/{FleetSearch-Dj7-CfNi.js → FleetSearch-CYeWn85V.js} +1 -1
- package/dist/client/assets/FlightObserveScreen-DYJJ3Z2B.js +1 -0
- package/dist/client/assets/{FollowScreen-DRgYuAvp.js → FollowScreen-DG0osbUp.js} +1 -1
- package/dist/client/assets/{HarnessMark-BE-YSyci.js → HarnessMark-MztYnrGK.js} +1 -1
- package/dist/client/assets/HarnessesScreen-BWqirBjK.js +1 -0
- package/dist/client/assets/{HerdrSession-DKFCJMst.js → HerdrSession-6sFln7WX.js} +1 -1
- package/dist/client/assets/{HomeHero-CAEg8Yg5.js → HomeHero-BPBArHXa.js} +1 -1
- package/dist/client/assets/{KnowledgeSearchInspector-C2EZsQ5i.js → KnowledgeSearchInspector-BOIhFWd2.js} +1 -1
- package/dist/client/assets/KnowledgeSearchScreen-BP8tD-Bh.js +1 -0
- package/dist/client/assets/{LaneToolHoverCard-DrPXYZvQ.js → LaneToolHoverCard-CcEiQC6B.js} +1 -1
- package/dist/client/assets/LaneTraceDetailSheet-B4i1Ut4R.js +1 -0
- package/dist/client/assets/{LaneTraceEventFocus-X4-DDFEo.js → LaneTraceEventFocus-Bl9L0EYb.js} +1 -1
- package/dist/client/assets/{MeshCanvas-rtCBD7s6.js → MeshCanvas-ZjIuMiRo.js} +1 -1
- package/dist/client/assets/{MeshCanvasMinimap-CuvXOkc7.js → MeshCanvasMinimap-C-LQtiX6.js} +1 -1
- package/dist/client/assets/MeshScreen-Bs3soujg.js +1 -0
- package/dist/client/assets/{MeshTopologyView-CeTShs-U.js → MeshTopologyView-C0LUyT3K.js} +2 -2
- package/dist/client/assets/{MessageComposerSuggestions-Cs9u-F_3.js → MessageComposerSuggestions-Dfc3PH2y.js} +1 -1
- package/dist/client/assets/MessagesScreen-TgSL5KMc.js +1 -0
- package/dist/client/assets/{MissionContextRail-0O-Zu1Tn.js → MissionContextRail-CjGAEGu8.js} +1 -1
- package/dist/client/assets/MissionControlView-D629w2A8.js +1 -0
- package/dist/client/assets/{MissionFocusOverlay-LnjmqBiW.js → MissionFocusOverlay-Bubrr8Gc.js} +1 -1
- package/dist/client/assets/{MissionLeftAgentRow-nc1Jyq3D.js → MissionLeftAgentRow-DokImu4Y.js} +1 -1
- package/dist/client/assets/{MissionLogPane-lZ9vUftY.js → MissionLogPane-Cs0LuIkn.js} +1 -1
- package/dist/client/assets/{NewAgentModal-K1cvdmZr.js → NewAgentModal-D5e0YUAo.js} +1 -1
- package/dist/client/assets/{NewChatComposer-DXDxV2Mh.js → NewChatComposer-S08F6_La.js} +1 -1
- package/dist/client/assets/{NewChatOrigin-CnjoswTG.js → NewChatOrigin-BEz6jyqf.js} +1 -1
- package/dist/client/assets/{ObserveEmbedScreen-CRpzYf0Y.js → ObserveEmbedScreen-CHx2sEAA.js} +2 -2
- package/dist/client/assets/ObserveTextFlow-_ApDwRCO.js +2 -0
- package/dist/client/assets/{ObservedTopologyPanel-C1AQM0Mq.js → ObservedTopologyPanel-ByW7Ar7p.js} +1 -1
- package/dist/client/assets/OpenScoutAppShell-DTmnbG-h.js +88 -0
- package/dist/client/assets/OpsAgentsView-DiFuHcJs.js +1 -0
- package/dist/client/assets/OpsScreen-CCR3U_9P.js +1 -0
- package/dist/client/assets/OpsSubnav-CZs_OL2N.js +1 -0
- package/dist/client/assets/{PlanView-DDXdC19M.js → PlanView-C54eAzig.js} +1 -1
- package/dist/client/assets/ProjectAgentProfile-BEfYOaxc.js +1 -0
- package/dist/client/assets/{ProjectAgentProfileBar-MODhG0P6.js → ProjectAgentProfileBar-B1VpwzGD.js} +1 -1
- package/dist/client/assets/{ProjectAgentProfileHero-C1ImgGDu.js → ProjectAgentProfileHero-B4f_AoCr.js} +1 -1
- package/dist/client/assets/ProjectsInbox-DoPZ17FC.js +2 -0
- package/dist/client/assets/{ProjectsRail-B1zrQLZe.js → ProjectsRail-CWOkZjsY.js} +1 -1
- package/dist/client/assets/ProjectsScreen-Dse0Q6p6.js +1 -0
- package/dist/client/assets/ProjectsThreadAside-DMnfyPLE.js +1 -0
- package/dist/client/assets/Provider-DKZWuzSR.js +1 -0
- package/dist/client/assets/{RailRow-DerXOXQS.js → RailRow-DIGd3MMM.js} +1 -1
- package/dist/client/assets/RawSessionsTable-Zkl4YDvz.js +1 -0
- package/dist/client/assets/RealtimeVoiceScreen-B_PMJxY_.js +1 -0
- package/dist/client/assets/{RepoDiffEmbedScreen-C9oLCcZX.js → RepoDiffEmbedScreen-VLg4caej.js} +1 -1
- package/dist/client/assets/{RepoDiffPageScreen-CGEMAv2Z.js → RepoDiffPageScreen-BelnvgnP.js} +1 -1
- package/dist/client/assets/{RepoDiffViewer-CB8PSVey.js → RepoDiffViewer-VrUJw33u.js} +1 -1
- package/dist/client/assets/RepoDiffViewerLazy-BPg_JkYW.js +2 -0
- package/dist/client/assets/{ReposScreen-BN1lVjOj.js → ReposScreen-IINK-CFn.js} +2 -2
- package/dist/client/assets/ScoutDeckSurface-MbwGp6Ab.js +1 -0
- package/dist/client/assets/{ScoutSurface-BEnDlynn.js → ScoutSurface-x_QbcRyk.js} +1 -1
- package/dist/client/assets/ScoutbotBroadcastChip-DAKQKB25.js +2 -0
- package/dist/client/assets/{ScoutbotFxLab-fAROyIfz.js → ScoutbotFxLab-7t9JVvZg.js} +1 -1
- package/dist/client/assets/{ScoutbotRealtimeVoiceCall-CDyFJX8m.js → ScoutbotRealtimeVoiceCall-Br4bYVAx.js} +1 -1
- package/dist/client/assets/{SecondaryNav-Hv5AJ3Fv.js → SecondaryNav-Dj30epYF.js} +1 -1
- package/dist/client/assets/{SessionEmbedScreen-CDRpQc3g.js → SessionEmbedScreen-s2mJ5Fg9.js} +1 -1
- package/dist/client/assets/{SessionObserve-BmmJ8dEh.js → SessionObserve-DaUrJCMq.js} +1 -1
- package/dist/client/assets/{SessionObserveEvidence-CEedIk2a.js → SessionObserveEvidence-ClUW8jpV.js} +1 -1
- package/dist/client/assets/SessionRefScreen-DLZNFZFK.js +1 -0
- package/dist/client/assets/SessionsScreen-D-hN1n4k.js +1 -0
- package/dist/client/assets/{SettingsDrawer-DL-SVLdd.js → SettingsDrawer-BFsnww-k.js} +3 -3
- package/dist/client/assets/SettingsScreen-Bc3Xtv5V.js +1 -0
- package/dist/client/assets/{ShikiPane-B7O4if20.js → ShikiPane-Dkwyx--r.js} +1 -1
- package/dist/client/assets/{SlidePanel-B3gc5HnM.js → SlidePanel-CuTeirnk.js} +1 -1
- package/dist/client/assets/{SpriteAvatar-BpQDpOkq.js → SpriteAvatar-DQ3PTb8L.js} +1 -1
- package/dist/client/assets/{StatusPill-B33sQinT.js → StatusPill-BJ1ierIR.js} +1 -1
- package/dist/client/assets/{TailView-DL3YZkzE.js → TailView-CufWcrvf.js} +2 -2
- package/dist/client/assets/Terminal-D_OmdFmr.js +1 -0
- package/dist/client/assets/TerminalEmbedScreen-D21ytNXW.js +1 -0
- package/dist/client/assets/TerminalRelay-rvUzI9Ek.js +46 -0
- package/dist/client/assets/{TextDocumentSurface-DRjctOIt.js → TextDocumentSurface-Bc-kHPgG.js} +1 -1
- package/dist/client/assets/{TmuxPeek-DNC4uWky.js → TmuxPeek-DLyDkq_D.js} +1 -1
- package/dist/client/assets/{VoicePermissionsPanel-WLN0V-Xv.js → VoicePermissionsPanel-CD903y9K.js} +1 -1
- package/dist/client/assets/{WorkDetailScreen-D2Yl0mYZ.js → WorkDetailScreen-D51oI0dH.js} +2 -2
- package/dist/client/assets/{WorkFilesViewer-BbVfcUN-.js → WorkFilesViewer-BDMNbxE4.js} +1 -1
- package/dist/client/assets/{activity-BxwKkT8z.js → activity-BvGruxWG.js} +1 -1
- package/dist/client/assets/{addon-fit-B9O2vJoh.js → addon-fit-Cfq4Ayjd.js} +1 -1
- package/dist/client/assets/{addon-webgl-BhRZFDcn.js → addon-webgl-B8sIf9-s.js} +1 -1
- package/dist/client/assets/{agent-essentials-SrzMYEXV.js → agent-essentials-yb4wIJlX.js} +1 -1
- package/dist/client/assets/{agent-lane-card-model-DSWdGu-v.js → agent-lane-card-model-q4cwzLX4.js} +1 -1
- package/dist/client/assets/{agent-lanes-model-CPgQRenB.js → agent-lanes-model-VYQ5a68i.js} +1 -1
- package/dist/client/assets/{arc.es-NlJw-19N.js → arc.es-BBTfhvLE.js} +1 -1
- package/dist/client/assets/{arrow-left-_vS7itsV.js → arrow-left-BOht-YQu.js} +1 -1
- package/dist/client/assets/{arrow-up-right-CcrWONpD.js → arrow-up-right-hoR8_oUz.js} +1 -1
- package/dist/client/assets/{bot-BRINYlC6.js → bot-BUK7dOPS.js} +1 -1
- package/dist/client/assets/{check-COxArFXG.js → check--esHw52j.js} +1 -1
- package/dist/client/assets/{chevron-down-DRCbnzyY.js → chevron-down-NAhBUkFd.js} +1 -1
- package/dist/client/assets/{chevron-right-CNE6QAVr.js → chevron-right-C10o7t_X.js} +1 -1
- package/dist/client/assets/{chunk-HRAB3GC3-CAeEKaf5.js → chunk-HRAB3GC3-DF8R9rPv.js} +1 -1
- package/dist/client/assets/{clock-CyfvRmj6.js → clock-of01sAB6.js} +1 -1
- package/dist/client/assets/{code-xml--LjSM4Mv.js → code-xml-CLn3TDWF.js} +1 -1
- package/dist/client/assets/content-B-SUUhXj.js +1 -0
- package/dist/client/assets/content-BRY2vo1_.js +1 -0
- package/dist/client/assets/content-BTm0mVyD.js +1 -0
- package/dist/client/assets/content-BTqvyb5E.js +1 -0
- package/dist/client/assets/content-BjDaXmSD.js +1 -0
- package/dist/client/assets/content-BrR6deGh.js +1 -0
- package/dist/client/assets/content-C5yvBEMy.js +1 -0
- package/dist/client/assets/content-Cgj5AWqT.js +1 -0
- package/dist/client/assets/content-CkhG__-v.js +1 -0
- package/dist/client/assets/content-CudIBsiP.js +1 -0
- package/dist/client/assets/content-DBb7ppd5.js +1 -0
- package/dist/client/assets/content-DEw_kGyK.js +1 -0
- package/dist/client/assets/content-DIy0DCzK.js +1 -0
- package/dist/client/assets/content-THl9hRAo.js +1 -0
- package/dist/client/assets/content-vi9FbmV9.js +1 -0
- package/dist/client/assets/content-wcgPMGVf.js +1 -0
- package/dist/client/assets/{conversation-icons-c-hXv7hY.js → conversation-icons-ClBJi21l.js} +1 -1
- package/dist/client/assets/conversation-motion-features-zU0k3Agz.js +1 -0
- package/dist/client/assets/{copy-4LfKIdQJ.js → copy-Dty8ZYsM.js} +1 -1
- package/dist/client/assets/{createLucideIcon-ClCdc3F9.js → createLucideIcon-Bt67PWH-.js} +1 -1
- package/dist/client/assets/discover-NDAqNvKt.js +2 -0
- package/dist/client/assets/embed-entry-BVR09F6e.js +2 -0
- package/dist/client/assets/{external-link-CnaI1QFS.js → external-link-Dem738OJ.js} +1 -1
- package/dist/client/assets/{eye-BFlhMzQL.js → eye-B3lBIwJZ.js} +1 -1
- package/dist/client/assets/{file-text-DG-pufl1.js → file-text-iF0hyVyU.js} +1 -1
- package/dist/client/assets/{home-moving-signal-aNJusIzL.js → home-moving-signal-C8dTXieA.js} +1 -1
- package/dist/client/assets/{home-now-card-BQK4EFHx.js → home-now-card-BgvVcE83.js} +1 -1
- package/dist/client/assets/{home-now-card-nano-CdtzqSIF.js → home-now-card-nano-hZl9klbP.js} +1 -1
- package/dist/client/assets/hooks-DBIezYS2.js +2 -0
- package/dist/client/assets/index-BMwKgdz_.js +1 -0
- package/dist/client/assets/index-Bu-fckyR.css +1 -0
- package/dist/client/assets/index-BxoufAPA.js +1 -0
- package/dist/client/assets/index-Cj7NnSxI.js +1 -0
- package/dist/client/assets/{index-CzVeWScw.js → index-o4FKpU7Z.js} +2 -2
- package/dist/client/assets/{inspector-panel-DgOM8nCo.js → inspector-panel-Dy2cVTCi.js} +2 -2
- package/dist/client/assets/{keyboard-nav-BJnFoFDP.js → keyboard-nav-Chf51dns.js} +1 -1
- package/dist/client/assets/{lane-roster-store-pR4ZaYQm.js → lane-roster-store-BiIVlYmG.js} +1 -1
- package/dist/client/assets/left-BC7p5QbT.js +1 -0
- package/dist/client/assets/left-BCSGqccQ.js +1 -0
- package/dist/client/assets/left-BSyj8PuJ.js +2 -0
- package/dist/client/assets/left-DDnxNUxd.js +1 -0
- package/dist/client/assets/left-DLoDKxT5.js +2 -0
- package/dist/client/assets/left-O-TBH7JB.js +1 -0
- package/dist/client/assets/left-agents-Dk9Y89lb.js +1 -0
- package/dist/client/assets/left-default-B3JBRQNJ.js +1 -0
- package/dist/client/assets/left-lanes-30Oe_3RM.js +1 -0
- package/dist/client/assets/left-mission-DEl4-7xu.js +1 -0
- package/dist/client/assets/left-plan-B4qdm4Gn.js +2 -0
- package/dist/client/assets/left-rvUOB14X.js +1 -0
- package/dist/client/assets/library-DDKSLFJ_.js +1 -0
- package/dist/client/assets/{loader-circle-Byb9kSFx.js → loader-circle-4LDsy4Ke.js} +1 -1
- package/dist/client/assets/{local-agents-DBaUbP-_.js → local-agents-DIi2EacM.js} +1 -1
- package/dist/client/assets/{mentions-fbQJ2mBI.js → mentions-CvDaviLJ.js} +1 -1
- package/dist/client/assets/{mesh-ops-Cnw3vwAu.js → mesh-ops-JZwGuAPn.js} +1 -1
- package/dist/client/assets/{mesh-view-store-Btlyc7rW.js → mesh-view-store-Du7VqIT_.js} +1 -1
- package/dist/client/assets/{message-circle-aGOfQWm2.js → message-circle-BM3XgevU.js} +1 -1
- package/dist/client/assets/{message-markup-mGF07emJ.js → message-markup-BcY1lShv.js} +1 -1
- package/dist/client/assets/{message-square-CIXda-Y7.js → message-square-ER1_q2pe.js} +1 -1
- package/dist/client/assets/{mission-control-store-CcoNeQHG.js → mission-control-store-C6w5iVfg.js} +1 -1
- package/dist/client/assets/{observe-BNFzh-7B.js → observe-3-jn4SXb.js} +1 -1
- package/dist/client/assets/{page-status-DDvNdA8s.js → page-status-0LPfBC8S.js} +1 -1
- package/dist/client/assets/{plus-CmFQp9Uj.js → plus-C-2gTcPK.js} +1 -1
- package/dist/client/assets/profile-DW80Gn5k.js +1 -0
- package/dist/client/assets/{projects-inbox-Diddml6e.js → projects-inbox-DCeD3FfV.js} +1 -1
- package/dist/client/assets/provider-BvAxRQfE.js +1 -0
- package/dist/client/assets/{radio-PauJIekM.js → radio-v7UAMZGh.js} +1 -1
- package/dist/client/assets/{refresh-cw-4oeFn1Jn.js → refresh-cw-B5To7b6B.js} +1 -1
- package/dist/client/assets/resolve-panes-BDi9Qx4R.js +1 -0
- package/dist/client/assets/resolve-sidebar-context-HE-5eZYa.js +1 -0
- package/dist/client/assets/right-BDf_yTv6.js +1 -0
- package/dist/client/assets/{right-BcFnuse9.js → right-BvoGOUKH.js} +1 -1
- package/dist/client/assets/right-C-bgjYg-.js +1 -0
- package/dist/client/assets/right-C3JdEfYQ.js +1 -0
- package/dist/client/assets/right-CYIs2tEe.js +1 -0
- package/dist/client/assets/right-CyRCv6Up.js +1 -0
- package/dist/client/assets/right-DBYGtoRv.js +1 -0
- package/dist/client/assets/right-o3LHMiKa.js +1 -0
- package/dist/client/assets/right-oPrcx9MX.js +1 -0
- package/dist/client/assets/right-sSvBUK-j.js +1 -0
- package/dist/client/assets/{rocket-C-AskjZH.js → rocket-BQQQv2L5.js} +1 -1
- package/dist/client/assets/router-C65cZYPn.js +1 -0
- package/dist/client/assets/{runtime-picker-BCQD7d4K.js → runtime-picker-eDEvx2Mz.js} +1 -1
- package/dist/client/assets/{scope-views-BhkbIFPY.js → scope-views-BOOmgmwx.js} +1 -1
- package/dist/client/assets/{scout-voice-S5_YZ2v8.js → scout-voice-B7kXlkcl.js} +1 -1
- package/dist/client/assets/{scroll-text-BV-BB7v-.js → scroll-text-BuneRiAD.js} +1 -1
- package/dist/client/assets/{search-C3bSJluv.js → search-7_n7CxWl.js} +1 -1
- package/dist/client/assets/{secondaryNavConfig-Bg4Tc0gT.js → secondaryNavConfig-CSFDCQAf.js} +1 -1
- package/dist/client/assets/{selection-bridge-B1dmkX3P.js → selection-bridge-SlGsgHw2.js} +1 -1
- package/dist/client/assets/{send-horizontal-CqogPmbY.js → send-horizontal-DP16OOIW.js} +1 -1
- package/dist/client/assets/{server-Brw5Y1Gh.js → server-pYOMFjrT.js} +1 -1
- package/dist/client/assets/{session-catalog-9FqXmjBw.js → session-catalog-_QfQ7fhZ.js} +1 -1
- package/dist/client/assets/{session-table-1xdSxSXq.js → session-table-CYN8e4s3.js} +1 -1
- package/dist/client/assets/{sliders-horizontal-CUiOH26y.js → sliders-horizontal-D2Z8gz6J.js} +1 -1
- package/dist/client/assets/{sparkles-BjCA3Evu.js → sparkles-Bth2iK7t.js} +1 -1
- package/dist/client/assets/{sse-QcU9bikk.js → sse-CL6gctHY.js} +1 -1
- package/dist/client/assets/{tail-events-C6K7bCWB.js → tail-events-NLIWLq27.js} +1 -1
- package/dist/client/assets/{terminal-DrTkVXIj.js → terminal-By1Lw2i2.js} +1 -1
- package/dist/client/assets/{terminal-relay-BkXjjSkq.js → terminal-relay-CjkI5aUy.js} +1 -1
- package/dist/client/assets/{terminal-sessions-C3qU8tnY.js → terminal-sessions-AmSgHklm.js} +1 -1
- package/dist/client/assets/{terminal-takeover-KvmTwABa.js → terminal-takeover-7AvNpnkC.js} +1 -1
- package/dist/client/assets/{use-conversation-list-C5sF6WBR.js → use-conversation-list-BCzY032j.js} +1 -1
- package/dist/client/assets/{use-fleet-active-asks-BOMPW0nl.js → use-fleet-active-asks-CJ6-oj5k.js} +1 -1
- package/dist/client/assets/{use-mesh-ops-items-Co05vcTV.js → use-mesh-ops-items-D5L-CKe_.js} +1 -1
- package/dist/client/assets/use-reduced-motion-CqXpVXv-.js +1 -0
- package/dist/client/assets/use-scout-dev-flags-BohC8seq.js +1 -0
- package/dist/client/assets/{useAgentHoverCard-FtCmY-b9.js → useAgentHoverCard-RsLUYyeh.js} +1 -1
- package/dist/client/assets/useContentSecondaryNav-DOr5yHbT.js +1 -0
- package/dist/client/assets/usePersistentState-D3M4m2Ou.js +1 -0
- package/dist/client/assets/{usePierreRuntime-Bo4lD7Ui.js → usePierreRuntime-B4hbNWTz.js} +1 -1
- package/dist/client/assets/{wrench-CeCdjiPF.js → wrench-M4G7WtYB.js} +1 -1
- package/dist/client/assets/{x-D4X_y1j_.js → x-ynOfVadO.js} +1 -1
- package/dist/client/assets/{xterm-D2a5wrkJ.js → xterm-DZHyijPp.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/main.mjs +41 -26
- package/dist/node/main.mjs +19 -5
- package/dist/pairing-runtime-controller.mjs +2 -2
- package/dist/runtime/broker-daemon.mjs +2 -2
- package/dist/scout-control-plane-web.mjs +21 -7
- package/dist/scout-web-server.mjs +21 -7
- package/package.json +4 -4
- package/dist/client/assets/ActivityScreen-BXm6nJ6L.js +0 -1
- package/dist/client/assets/AgentConfigurationScreen-CfBXxrsD.js +0 -1
- package/dist/client/assets/AgentDefinitionsWorkspace-4Z0aN8AR.js +0 -1
- package/dist/client/assets/AgentFloorView-DMivAYHU.js +0 -1
- package/dist/client/assets/AgentInfoScreen-CPkLg1pK.js +0 -1
- package/dist/client/assets/AgentLanesEmbedScreen-CjHMvy3v.js +0 -1
- package/dist/client/assets/AgentsScreen-zR6b2bUL.js +0 -1
- package/dist/client/assets/AgentsSubnav-q0xcZi6C.js +0 -1
- package/dist/client/assets/BackToPicker-DZg_4nHL.js +0 -1
- package/dist/client/assets/BrokerScreen-Chh8sGen.js +0 -5
- package/dist/client/assets/ConversationFeedRows-5it6QNBV.js +0 -1
- package/dist/client/assets/ConversationPanels-vI9YuQJh.js +0 -2
- package/dist/client/assets/ConversationScreen-C-PrCRz1.js +0 -1
- package/dist/client/assets/FlightObserveScreen-Yq5NtQQJ.js +0 -1
- package/dist/client/assets/HarnessesScreen-L-emPcXd.js +0 -1
- package/dist/client/assets/KnowledgeSearchScreen-DvdOFh-b.js +0 -1
- package/dist/client/assets/LaneTraceDetailSheet-Dl7foF88.js +0 -1
- package/dist/client/assets/MeshScreen-D5zzTn0o.js +0 -1
- package/dist/client/assets/MessagesScreen-BhOJ7_tj.js +0 -1
- package/dist/client/assets/MissionControlView-D2JO9u-y.js +0 -1
- package/dist/client/assets/ObserveTextFlow-DJxQc2H6.js +0 -2
- package/dist/client/assets/OpenScoutAppShell-DrHYD_pd.js +0 -87
- package/dist/client/assets/OpsAgentsView-BnMX0vEY.js +0 -1
- package/dist/client/assets/OpsScreen-BeC0lieE.js +0 -1
- package/dist/client/assets/OpsSubnav-D5Bpowtk.js +0 -1
- package/dist/client/assets/ProjectAgentProfile-zE1cApxw.js +0 -1
- package/dist/client/assets/ProjectsInbox-C3Jd6JTk.js +0 -2
- package/dist/client/assets/ProjectsScreen-PW_NH5VK.js +0 -1
- package/dist/client/assets/ProjectsThreadAside-DaCEUWN1.js +0 -1
- package/dist/client/assets/Provider-DSsb2gLR.js +0 -1
- package/dist/client/assets/RawSessionsTable-LWEvXJzj.js +0 -1
- package/dist/client/assets/RealtimeVoiceScreen-XtxbCjOs.js +0 -1
- package/dist/client/assets/RepoDiffViewerLazy-DIxkiMto.js +0 -2
- package/dist/client/assets/ScoutDeckSurface-BCpl0QCx.js +0 -1
- package/dist/client/assets/ScoutbotBroadcastChip-z9R_pC_U.js +0 -2
- package/dist/client/assets/SessionRefScreen-Dk-O4OVt.js +0 -1
- package/dist/client/assets/SessionsScreen-BJEjuo2X.js +0 -1
- package/dist/client/assets/SettingsScreen-DJ-BhBwR.js +0 -1
- package/dist/client/assets/Terminal-Dp1FSGIS.js +0 -1
- package/dist/client/assets/TerminalEmbedScreen-DP9IM4xf.js +0 -1
- package/dist/client/assets/arrow-down-D3-IbArq.js +0 -1
- package/dist/client/assets/chunk-JTPDIGGW-s6WbxdjC.js +0 -46
- package/dist/client/assets/chunk-T65CQEWV-CiZ_ICHW.js +0 -1
- package/dist/client/assets/chunk-YOZR3KYS-DLOc92uD.js +0 -2
- package/dist/client/assets/content-7ZeCPAEt.js +0 -1
- package/dist/client/assets/content-BHUcUCH5.js +0 -1
- package/dist/client/assets/content-BUhvLPkv.js +0 -1
- package/dist/client/assets/content-BomQ5YWo.js +0 -1
- package/dist/client/assets/content-C39ELNgC.js +0 -1
- package/dist/client/assets/content-C4RYKHut.js +0 -1
- package/dist/client/assets/content-CCiZfG4H.js +0 -1
- package/dist/client/assets/content-CDpDtVI-.js +0 -1
- package/dist/client/assets/content-CO-9CeFd.js +0 -1
- package/dist/client/assets/content-CuOLxp1x.js +0 -1
- package/dist/client/assets/content-CvtLIjXS.js +0 -1
- package/dist/client/assets/content-CzwTUb9n.js +0 -1
- package/dist/client/assets/content-DQXbo2RO.js +0 -1
- package/dist/client/assets/content-DRTQ9QQb.js +0 -1
- package/dist/client/assets/content-LCELs6zg.js +0 -1
- package/dist/client/assets/content-qsDjA4Au.js +0 -1
- package/dist/client/assets/conversation-motion-features-T8vF9zED.js +0 -1
- package/dist/client/assets/discover-7Ks00w-M.js +0 -2
- package/dist/client/assets/embed-entry-n2ThmSSX.js +0 -2
- package/dist/client/assets/gestures-CxG3Dphs.js +0 -1
- package/dist/client/assets/hooks-Dst1TH7n.js +0 -2
- package/dist/client/assets/index-9as_JTUs.css +0 -1
- package/dist/client/assets/index-CU9dtwJk.js +0 -1
- package/dist/client/assets/index-Dewd56RX.js +0 -1
- package/dist/client/assets/index-_YQXKEhb.js +0 -1
- package/dist/client/assets/left-BhzPp-_E.js +0 -1
- package/dist/client/assets/left-CN1MABD0.js +0 -2
- package/dist/client/assets/left-DDgbsio7.js +0 -1
- package/dist/client/assets/left-Dpf2R9uD.js +0 -1
- package/dist/client/assets/left-HwwbMVtl.js +0 -2
- package/dist/client/assets/left-YfH0daht.js +0 -1
- package/dist/client/assets/left-agents-CYUwAy2Z.js +0 -1
- package/dist/client/assets/left-default-vEGZALPv.js +0 -1
- package/dist/client/assets/left-lanes-bphF-vlX.js +0 -1
- package/dist/client/assets/left-mission-B54-c3hq.js +0 -1
- package/dist/client/assets/left-np5USKqG.js +0 -1
- package/dist/client/assets/left-plan-BNBuDoPQ.js +0 -2
- package/dist/client/assets/library-DbCVJG_O.js +0 -1
- package/dist/client/assets/paperclip-DfpJkR4s.js +0 -1
- package/dist/client/assets/profile-s3KRbip1.js +0 -1
- package/dist/client/assets/resolve-panes-cp6eNewO.js +0 -1
- package/dist/client/assets/resolve-sidebar-context-Dbo-5PWx.js +0 -1
- package/dist/client/assets/right-09W2JJFg.js +0 -1
- package/dist/client/assets/right-B-MKhiJ6.js +0 -1
- package/dist/client/assets/right-B91Zl8lQ.js +0 -1
- package/dist/client/assets/right-BdtMzn35.js +0 -1
- package/dist/client/assets/right-BqmKXLtf.js +0 -1
- package/dist/client/assets/right-BzeB-Dpt.js +0 -1
- package/dist/client/assets/right-CkGOs-sq.js +0 -1
- package/dist/client/assets/right-CzGiNBzB.js +0 -1
- package/dist/client/assets/right-Dc7uqv7l.js +0 -1
- package/dist/client/assets/router-B-K15T7B.js +0 -1
- package/dist/client/assets/use-reduced-motion-Dla-G_Jz.js +0 -1
- package/dist/client/assets/use-scout-dev-flags-BOQF3fW2.js +0 -1
- package/dist/client/assets/useContentSecondaryNav-BX7Sq7vy.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e,r as n,n as ro,o as io,B as ao,C as co}from"./index-o4FKpU7Z.js";import{u as F,C as lo,n as uo,a as mo,b as po,o as ge,p as yt,s as ho,i as fo,f as St,k as go}from"./Provider-DKZWuzSR.js";import{resolveContentPane as xo,resolveRightPane as bo,resolveLeftPane as vo}from"./resolve-panes-BDi9Qx4R.js";import{S as yo}from"./ScoutSurface-x_QbcRyk.js";import{u as nt}from"./provider-BvAxRQfE.js";import{a as $}from"./api-h5zurxmi.js";import{c as Ee}from"./clipboard-e3fSpeo7.js";import{u as So}from"./ContextMenu-CxkmFQcN.js";import{o as ko,S as jo}from"./ScoutbotBroadcastChip-DAKQKB25.js";import{e as wo}from"./SettingsDrawer-BFsnww-k.js";import{u as Xe,a as Mt,b as Co}from"./content-CudIBsiP.js";import{s as xe,e as No,S as kt}from"./scoutbot-BTIErYHo.js";import{g as To,d as Eo,i as Ro,e as Oo,s as Ao}from"./scout-voice-B7kXlkcl.js";import{d as Io}from"./colors-BtO5_zlx.js";import{i as Po,S as Lt,a as Mo}from"./runtime-picker-eDEvx2Mz.js";import{d as Lo,f as jt,n as ve}from"./time-Dhsh_2EG.js";import{S as zo}from"./BriefingDetailScreen-C83o2YfN.js";import{L as K}from"./loader-circle-4LDsy4Ke.js";import{P as _o}from"./plus-C-2gTcPK.js";import{H as Do}from"./ScoutbotRealtimeVoiceCall-Br4bYVAx.js";import{C as Qe}from"./chevron-down-NAhBUkFd.js";import{A as Ho}from"./ProjectsRail-CWOkZjsY.js";import{S as Bo}from"./send-horizontal-DP16OOIW.js";import{c as rt}from"./createLucideIcon-Bt67PWH-.js";import{C as $o}from"./copy-Dty8ZYsM.js";import{R as wt}from"./rocket-BQQQv2L5.js";import{X as Vo}from"./x-ynOfVadO.js";import{R as Uo}from"./refresh-cw-B5To7b6B.js";import{S as Fo,d as Wo}from"./secondaryNavConfig-CSFDCQAf.js";import{V as Ct}from"./fx-z37u1o2z.js";import{B as qo}from"./bot-BUK7dOPS.js";import{BrokerRight as Go}from"./right-C-bgjYg-.js";import{OpsRight as Yo}from"./inspector-panel-Dy2cVTCi.js";import{M as Ko}from"./MeshCanvasMinimap-C-LQtiX6.js";import{u as Jo,T as Xo}from"./TerminalRelay-rvUzI9Ek.js";import{u as Qo,a as Zo,b as es,c as ts,d as os,e as ss}from"./hooks-DBIezYS2.js";import{T as ns}from"./chunk-HRAB3GC3-DF8R9rPv.js";import"./router-C65cZYPn.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-AmSgHklm.js";import"./sse-CL6gctHY.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./DocumentFocusViewer-DRKjNG9s.js";import"./TextDocumentSurface-Bc-kHPgG.js";/* empty css */import"./file-text-iF0hyVyU.js";import"./chevron-right-C10o7t_X.js";import"./code-xml-CLn3TDWF.js";import"./arrow-left-BOht-YQu.js";import"./keyboard-nav-Chf51dns.js";import"./MessageComposerSuggestions-Dfc3PH2y.js";import"./NewChatComposer-S08F6_La.js";import"./index-BMwKgdz_.js";import"./HarnessMark-MztYnrGK.js";import"./conversation-model-CHwHZNw-.js";import"./NewChatOrigin-BEz6jyqf.js";import"./model-Co0zkMIc.js";import"./text-DsBWV_4k.js";import"./search-7_n7CxWl.js";import"./content-BRY2vo1_.js";import"./ActivityScreen-aewI4Ul1.js";import"./mentions-CvDaviLJ.js";import"./AgentDetailCard-Biq8b2gv.js";import"./AgentLiveActions-0iy8QZ1T.js";import"./terminal-takeover-7AvNpnkC.js";import"./openContent-C6XO6kr5.js";import"./eye-B3lBIwJZ.js";import"./terminal-By1Lw2i2.js";import"./EmptyState-BUvllvA6.js";/* empty css */import"./voice-levels-Dcr3jglk.js";import"./left-O-TBH7JB.js";/* empty css */import"./AgentAvatar-DMov24_o.js";import"./SpriteAvatar-DQ3PTb8L.js";import"./agent-identity-BxCsXnDp.js";import"./content-BTm0mVyD.js";import"./AgentInfoScreen-SjhK_SBh.js";/* empty css */import"./BackToPicker-BXp5E2ck.js";import"./ObservedTopologyPanel-ByW7Ar7p.js";import"./AgentsScreen-Bww6HgFs.js";/* empty css */import"./AgentsSubnav-CiIuzxnZ.js";import"./SecondaryNav-Dj30epYF.js";import"./message-square-ER1_q2pe.js";import"./scroll-text-BuneRiAD.js";import"./library-DDKSLFJ_.js";/* empty css */import"./AgentSessions-CDfSfNiE.js";import"./agents-project-model-UYiamtrU.js";import"./profile-DW80Gn5k.js";import"./context-budget-DX_fwUs3.js";import"./session-catalog-_QfQ7fhZ.js";import"./terminal-relay-CjkI5aUy.js";import"./ConversationScreen-oZSitVtX.js";import"./ConversationComposer-CWohCCmn.js";import"./message-markup-BcY1lShv.js";import"./message-visibility-kJM8XcSG.js";import"./sessionRead-CvFz2RHv.js";import"./types-B0PlfpKc.js";/* empty css */import"./ConversationHeader-BxTzXl8e.js";import"./ConversationFeedRows-IWh0JSIL.js";import"./ConversationPanels-D9UCwNkS.js";import"./use-reduced-motion-CqXpVXv-.js";import"./activity-BvGruxWG.js";import"./message-circle-BM3XgevU.js";import"./tail-display-BRcJltQa.js";import"./lane-edit-display-C_Aujldz.js";import"./tail-events-NLIWLq27.js";import"./ConversationStatus-B6pAbo2w.js";import"./SessionObserve-DaUrJCMq.js";import"./bash-format-BRV5C6Gv.js";import"./lane-tool-detail-0WhMf4Vj.js";import"./LaneToolHoverCard-CcEiQC6B.js";import"./lane-observe-BA3g9aVd.js";import"./lane-ask-display-B6iCAVcd.js";import"./ObserveTextFlow-_ApDwRCO.js";import"./SessionObserveEvidence-ClUW8jpV.js";import"./wrench-M4G7WtYB.js";import"./external-link-Dem738OJ.js";import"./AgentDefinitionsWorkspace-D4MbSMXp.js";import"./project-overview-helpers-BQTc_Ous.js";import"./FileViewerPane-BM4AD_bo.js";/* empty css */import"./agent-essentials-yb4wIJlX.js";/* empty css *//* empty css */import"./right-CYIs2tEe.js";import"./openAgent-Dbv5wfuL.js";import"./TmuxPeek-DLyDkq_D.js";import"./ProjectsScreen-Dse0Q6p6.js";import"./ProjectsInbox-DoPZ17FC.js";import"./api-BkjHJfgJ.js";import"./ui-LM8pS8qE.js";import"./SessionRefScreen-DLZNFZFK.js";/* empty css */import"./AddProjectForm-Czb5uwou.js";import"./projects-inbox-DCeD3FfV.js";import"./model-IGCUEsMy.js";import"./cache-Dr0why2k.js";import"./arrow-up-right-hoR8_oUz.js";import"./ProjectAgentProfile-BEfYOaxc.js";import"./ProjectAgentProfileBar-B1VpwzGD.js";import"./ProjectsThreadAside-DMnfyPLE.js";import"./content-B-SUUhXj.js";import"./BriefingsScreen-BTsvr5fv.js";/* empty css */import"./content-BTqvyb5E.js";import"./BrokerScreen-DplF8d_X.js";import"./status-tone-BM_zuRy1.js";import"./broker-display-pp33bLsu.js";import"./BrokerMetadataPanel-jg7odHQp.js";import"./DispatchAftermath-DowTb7uO.js";import"./follow-route-BvcGtBIL.js";import"./ShikiPane-Dkwyx--r.js";import"./sparkles-Bth2iK7t.js";import"./check--esHw52j.js";import"./radio-v7UAMZGh.js";import"./left-BSyj8PuJ.js";import"./conversation-prefs-DNre-Lcx.js";import"./use-conversation-list-BCzY032j.js";import"./use-fleet-active-asks-CJ6-oj5k.js";import"./RailRow-DIGd3MMM.js";/* empty css */import"./content-wcgPMGVf.js";import"./MessagesScreen-TgSL5KMc.js";import"./right-oPrcx9MX.js";import"./CodeScreen-CJ2RgB32.js";import"./CodeDiffPane-86odpBSt.js";import"./usePierreRuntime-B4hbNWTz.js";/* empty css */import"./CodeProjectPicker-8svr_S_A.js";/* empty css */import"./content-DBb7ppd5.js";import"./FollowScreen-DG0osbUp.js";import"./content-BrR6deGh.js";import"./HarnessesScreen-BWqirBjK.js";import"./useContentSecondaryNav-DOr5yHbT.js";import"./OpsSubnav-CZs_OL2N.js";/* empty css */import"./left-DLoDKxT5.js";import"./operator-attention-BwSPeheT.js";import"./right-BDf_yTv6.js";import"./left-DDnxNUxd.js";import"./mesh-view-store-Du7VqIT_.js";import"./mesh-buckets-CfAukILK.js";import"./FleetSearch-CYeWn85V.js";import"./content-DEw_kGyK.js";import"./MeshScreen-Bs3soujg.js";import"./MeshCanvas-ZjIuMiRo.js";import"./Canvas-BePL08RR.js";import"./useAgentHoverCard-RsLUYyeh.js";import"./local-agents-DIi2EacM.js";/* empty css */import"./right-sSvBUK-j.js";import"./left-BC7p5QbT.js";import"./mesh-ops-JZwGuAPn.js";import"./use-mesh-ops-items-D5L-CKe_.js";import"./content-Cgj5AWqT.js";import"./use-scout-dev-flags-BohC8seq.js";import"./right-o3LHMiKa.js";import"./left-rvUOB14X.js";import"./left-agents-Dk9Y89lb.js";import"./left-default-B3JBRQNJ.js";import"./left-lanes-30Oe_3RM.js";import"./agent-lanes-model-VYQ5a68i.js";import"./lane-roster-store-BiIVlYmG.js";import"./left-mission-DEl4-7xu.js";import"./mission-control-store-C6w5iVfg.js";import"./MissionLeftAgentRow-DokImu4Y.js";import"./page-status-0LPfBC8S.js";import"./left-plan-B4qdm4Gn.js";import"./content-BjDaXmSD.js";import"./OpsScreen-CCR3U_9P.js";/* empty css */import"./AgentLanesView-Ct-Gz5WD.js";/* empty css */import"./observe-3-jn4SXb.js";import"./AgentFloorView-h9KDJdw0.js";/* empty css */import"./AgentLanesPreflight-M7iDXdP2.js";import"./AgentLaneChrome-D1xNNf7A.js";import"./AgentLaneCard-C4DMQR-c.js";/* empty css */import"./AgentLaneSummaryResize-C9loK-st.js";import"./agent-lane-card-model-q4cwzLX4.js";import"./agent-lane-preview-C33Dwpn7.js";import"./AgentLaneDetailSheet-DnAKe4e3.js";import"./SlidePanel-CuTeirnk.js";import"./agent-lane-detail-BNNm6FNu.js";import"./LaneTraceDetailSheet-B4i1Ut4R.js";import"./LaneTraceEventFocus-Bl9L0EYb.js";import"./MissionControlView-D629w2A8.js";/* empty css */import"./MissionContextRail-CjGAEGu8.js";import"./mission-wall-CocIM1cF.js";import"./mission-control-model-C0fByIjm.js";import"./MissionFocusOverlay-Bubrr8Gc.js";import"./MissionLogPane-Cs0LuIkn.js";import"./OpsAgentsView-DiFuHcJs.js";/* empty css */import"./DataTable-CGw5CECG.js";/* empty css */import"./sliders-horizontal-D2Z8gz6J.js";import"./PlanView-C54eAzig.js";/* empty css */import"./AtopView-h_aFoNkP.js";import"./TailView-CufWcrvf.js";import"./content-CkhG__-v.js";import"./RepoDiffPageScreen-BelnvgnP.js";import"./RepoDiffViewerLazy-BPg_JkYW.js";import"./ReposScreen-IINK-CFn.js";/* empty css */import"./selection-bridge-SlGsgHw2.js";import"./right-BvoGOUKH.js";import"./content-vi9FbmV9.js";import"./KnowledgeSearchScreen-BP8tD-Bh.js";/* empty css */import"./clock-of01sAB6.js";import"./KnowledgeSearchInspector-BOIhFWd2.js";import"./content-C5yvBEMy.js";import"./SessionsScreen-D-hN1n4k.js";import"./RawSessionsTable-Zkl4YDvz.js";import"./FlightObserveScreen-DYJJ3Z2B.js";/* empty css */import"./right-C3JdEfYQ.js";import"./content-DIy0DCzK.js";import"./SettingsScreen-Bc3Xtv5V.js";import"./StatusPill-BJ1ierIR.js";import"./AgentConfigurationScreen-BjG6ECjl.js";import"./server-pYOMFjrT.js";import"./VoicePermissionsPanel-CD903y9K.js";import"./left-BCSGqccQ.js";import"./usePersistentState-D3M4m2Ou.js";import"./session-table-CYN8e4s3.js";import"./Terminal-D_OmdFmr.js";/* empty css */import"./HerdrSession-6sFln7WX.js";import"./right-DBYGtoRv.js";import"./content-THl9hRAo.js";import"./WorkDetailScreen-D51oI0dH.js";import"./WorkFilesViewer-BDMNbxE4.js";import"./right-CyRCv6Up.js";import"./RealtimeVoiceScreen-B_PMJxY_.js";import"./HomeHero-BPBArHXa.js";import"./home-moving-signal-C8dTXieA.js";import"./home-live-action-BkqGLVRY.js";const rs=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],is=rt("circle-check",rs);const as=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],cs=rt("volume-2",as);const ls=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]],ds=rt("volume-x",ls);function us(){const{route:t,navigate:o,agents:s}=F();return e.jsx(yo,{children:xo(t,o,s)})}const ms=new Set(["air-local","local","mini","node"]),ps=new Set(["main","master","trunk"]);function hs(t){return t.replace(/```[\s\S]*?```/g," code omitted ").replace(/\*\*([^*\n]+)\*\*/g,"$1").replace(/(^|[\s(])\*([^\s*][^*\n]*?[^\s*]|[^\s*])\*(?=[\s)\].,!?;:]|$)/g,"$1$2").replace(/(^|[\s(])_([^\s_][^_\n]*?[^\s_]|[^\s_])_(?=[\s)\].,!?;:]|$)/g,"$1$2").replace(/^\s*[-*]\s+/gm,"").replace(/\bhttps?:\/\/[^\s)]+/gi,o=>fs(o)).replace(/\b(session|conversation|message|flight|invocation|work)(?:\s+(?:id|ref))?\s*[:#]?\s+([a-z0-9][a-z0-9._:-]{9,})\b/gi,(o,s,r)=>`${s.toLowerCase()} ending in ${Ze(r)}`).replace(/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,o=>`ID ending in ${Ze(o)}`).replace(/@?([a-z][a-z0-9-]*(?:\.[a-z0-9][a-z0-9-]*){2,})\b/gi,(o,s)=>gs(o)?o:xs(s)).replace(/`([^`]+)`/g,(o,s)=>bs(s)).replace(/\s+/g," ").trim()}function fs(t){try{return new URL(t).hostname.replace(/^www\./,"").replace(/\./g," dot ")}catch{return"link"}}function gs(t){const o=t.replace(/^@/,"").toLowerCase();return/\.(com|app|dev|org|net|io|local)(?:\b|\/)/.test(o)&&!o.endsWith(".air-local")}function xs(t){const o=t.split(".").filter(Boolean);if(o.length<2)return t;const s=[...o];for(;s.length>1&&ms.has(s.at(-1).toLowerCase());)s.pop();const[r,...l]=s,a=l.filter(u=>!ps.has(u.toLowerCase())).map(et).filter(Boolean);return[et(r),...a].filter(Boolean).join(", ")}function bs(t){return/^[a-z0-9][a-z0-9._:-]{12,}$/i.test(t)?`ID ending in ${Ze(t)}`:et(t)}function Ze(t){return(t.replace(/[^a-z0-9]/gi,"").slice(-4)||t.slice(-4)).split("").join(" ")}function et(t){return t.replace(/^@/,"").replace(/[_./:-]+/g," ").replace(/\s+/g," ").trim()}function it(t){return t.handle??t.id}function vs(t,o){if(!o)return!0;const s=o.toLowerCase();return t.name.toLowerCase().includes(s)||it(t).toLowerCase().includes(s)||t.id.toLowerCase().includes(s)}function ys({agents:t,query:o,excludeIds:s,maxResults:r=50}){const l=n.useMemo(()=>new Set(s??[]),[s]),a=n.useMemo(()=>t.filter(y=>!l.has(y.id)&&vs(y,o.trim())).slice(0,r),[t,l,o,r]),[u,d]=n.useState(0);n.useEffect(()=>{d(v=>a.length===0?0:Math.min(v,a.length-1))},[a]);const f=n.useCallback(v=>{d(y=>a.length===0?0:(y+v+a.length)%a.length)},[a.length]),b=n.useCallback(()=>d(0),[]);return{filtered:a,highlightedIndex:u,setHighlightedIndex:d,moveHighlight:f,resetHighlight:b}}function Ss({agents:t,highlightedIndex:o,onSelect:s,onHover:r,emptyHint:l,pendingId:a,className:u,id:d}){return t.length===0?e.jsx("div",{className:`agent-autocomplete ${u??""}`,id:d,children:e.jsx("div",{className:"agent-autocomplete-empty",children:l??"No matches."})}):e.jsx("div",{className:`agent-autocomplete ${u??""}`,role:"listbox",id:d,children:t.map((f,b)=>{const v=it(f),y=b===o;return e.jsxs("button",{type:"button",role:"option","aria-selected":y,className:`agent-autocomplete-item${y?" is-active":""}`,onMouseDown:S=>{S.preventDefault(),s(f)},onMouseEnter:()=>r?.(b),disabled:a===f.id,children:[e.jsx("div",{className:"agent-autocomplete-avatar",style:{background:Io(f.name)},children:f.name[0]?.toUpperCase()??"?"}),e.jsxs("div",{className:"agent-autocomplete-info",children:[e.jsx("span",{className:"agent-autocomplete-name",children:f.name}),e.jsxs("span",{className:"agent-autocomplete-handle",children:["@",v]})]})]},f.id)})})}const ks=/(^|\s)@([a-zA-Z0-9_.-]*)$/,Ne=4,js=254;function ws(t,o){if(o<=0)return null;const s=t.slice(0,o),r=ks.exec(s);if(!r)return null;r[1];const l=r[2]??"",a=s.length-l.length-1;return a<0?null:(t.slice(o,o+1),{start:a,end:o,query:l})}const Cs=["boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","whiteSpace","wordWrap","wordBreak"];function Ns(t,o){const s=document.createElement("div");document.body.appendChild(s);const r=s.style,l=window.getComputedStyle(t);r.position="absolute",r.visibility="hidden",r.whiteSpace="pre-wrap",r.wordWrap="break-word",r.top="0",r.left="-9999px";for(const b of Cs)r[b]=l[b];s.textContent=t.value.slice(0,o);const a=document.createElement("span");a.textContent=t.value.slice(o)||".",s.appendChild(a);const u=a.offsetTop,d=a.offsetLeft,f=parseInt(l.lineHeight,10)||a.offsetHeight;return document.body.removeChild(s),{top:u,left:d,height:f}}const Ts=n.forwardRef(function({agents:o,excludeIds:s,value:r,onChange:l,onSubmit:a,placeholder:u,rows:d=1,disabled:f,submitOnEnter:b=!1,className:v,textareaClassName:y,emptyHint:S,onMention:k},T){const j=n.useRef(null),I=n.useRef(null),[N,x]=n.useState(null),[h,C]=n.useState(null);n.useImperativeHandle(T,()=>({focus:()=>j.current?.focus(),blur:()=>j.current?.blur(),get textarea(){return j.current}}),[]);const O=N?.query??"",{filtered:P,highlightedIndex:L,setHighlightedIndex:V,moveHighlight:z}=ys({agents:o,query:O,excludeIds:s}),W=n.useCallback(()=>{const m=j.current;if(!m)return;const g=window.getComputedStyle(m),E=parseFloat(g.minHeight)||0,R=parseFloat(g.maxHeight);m.style.height="0px";const M=Math.max(m.scrollHeight,E),A=Number.isFinite(R)&&R>0?Math.min(M,R):M;m.style.height=`${A}px`,m.style.overflowY=M>A?"auto":"hidden"},[]);n.useLayoutEffect(()=>{W()},[W,r]);const J=n.useCallback(()=>{const m=j.current;if(!m)return;const g=ws(m.value,m.selectionStart??0);x(g)},[]);n.useLayoutEffect(()=>{const m=j.current;if(!m||!N){C(null);return}const{top:g,left:E,height:R}=Ns(m,N.start),M=m.getBoundingClientRect(),A=m.parentElement?.getBoundingClientRect(),_=A?M.top-A.top:0,Z=A?M.left-A.left:0,ee=I.current?.offsetHeight||js,G=window.visualViewport,Me=G?.offsetTop??0,se=Me+(G?.height??window.innerHeight),le=M.top+g-m.scrollTop,D=le+R,X=se-D-Ne,de=le-Me-Ne,Le=X<ee&&de>X;C({top:Le?_+g-m.scrollTop-ee-Ne:_+g+R-m.scrollTop+Ne,left:Z+E-m.scrollLeft})},[N,r,P.length]);const q=n.useCallback(m=>{const g=j.current,E=N;if(!g||!E)return;const R=it(m),M=r.slice(0,E.start),A=r.slice(E.end),_=`@${R} `,Z=`${M}${_}${A}`;l(Z),k?.(m),x(null);const ee=E.start+_.length;queueMicrotask(()=>{const G=j.current;G&&(G.focus(),G.setSelectionRange(ee,ee))})},[N,r,l,k]),ce=m=>{if(Po(m)||b&&m.key==="Enter"&&!m.shiftKey&&!m.nativeEvent?.isComposing&&!(N&&P.length>0)){m.preventDefault(),a?.();return}if(N&&P.length>0){if(m.key==="ArrowDown"){m.preventDefault(),z(1);return}if(m.key==="ArrowUp"){m.preventDefault(),z(-1);return}if(m.key==="Enter"||m.key==="Tab"){if(m.key==="Enter"&&m.shiftKey)return;const E=P[L];if(E){m.preventDefault(),q(E);return}}if(m.key==="Escape"){m.preventDefault(),x(null);return}}};return e.jsxs("div",{className:`agent-mention-wrap ${v??""}`,children:[e.jsx("textarea",{ref:j,className:y,value:r,rows:d,placeholder:u,disabled:f,onChange:m=>{l(m.target.value),W(),queueMicrotask(J)},onKeyUp:J,onClick:J,onBlur:()=>x(null),onKeyDown:ce,"aria-autocomplete":"list"}),N&&e.jsx("div",{ref:I,className:"agent-mention-popover",style:{top:`${h?.top??0}px`,left:`${h?.left??0}px`,visibility:h?void 0:"hidden"},children:e.jsx(Ss,{agents:P,highlightedIndex:L,onSelect:q,onHover:V,emptyHint:S??"No matches."})})]})});function Es({state:t,chatExpanded:o,onToggleExpanded:s,sessionPickerOpen:r,onToggleSessionPicker:l,onStartNewChat:a,startingNewChat:u,onSwitchSession:d,switchingSessionId:f,sending:b,briefing:v,pendingAsk:y,onArchiveSession:S,archivingSessionId:k,onAssistantContextMenu:T,suggestedPrompts:j,onSelectPrompt:I}){const x=t.session.messages,h=o?x:x.slice(-4),C=o?0:Math.max(0,x.length-h.length),O=x.length,P=t.sessions.length,L=t.retention,V=x.length===0&&!y&&!b&&!v,z=u||b||v||!!f||!!k,W=t.session.createdAt?Lo(t.session.createdAt):null,J=V?"Scout conversation":t.session.title&&t.session.title!=="New Scout Session"?t.session.title:`Session ${t.session.id.slice(0,8)}`,q=n.useRef(null),ce=x[x.length-1]?.id??null,m=x[x.length-1]?.body??"";return n.useEffect(()=>{const g=q.current;g&&(g.scrollTop=g.scrollHeight)},[ce,m,y,b,o,t.session.id]),e.jsxs("div",{className:"flex h-full min-h-0 flex-1 flex-col overflow-hidden rounded border border-[var(--scout-chrome-border-soft)] bg-black/10 font-mono text-xs text-[var(--scout-chrome-ink-faint)]",children:[e.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-2 border-b border-[var(--scout-chrome-border-soft)] px-2.5 py-1.5",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-1.5",children:[e.jsx("span",{className:"min-w-0 truncate text-[var(--scout-chrome-ink)]",title:t.session.id,children:J}),W&&!V&&e.jsxs("span",{className:"shrink-0 text-[var(--scout-chrome-ink-ghost)]",children:["· ",W]}),!V&&e.jsxs("span",{className:"shrink-0 text-[var(--scout-chrome-ink-ghost)]",children:["· ",O," msg",O===1?"":"s"]})]}),e.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[e.jsxs("button",{type:"button",title:"Start a new chat (keeps this chat in Chats)","aria-label":"Start new chat",onClick:a,disabled:z,className:"flex items-center gap-1 rounded border border-lime-300/30 bg-lime-300/[0.06] px-1.5 py-0.5 text-2xs uppercase tracking-[0.1em] text-lime-100 transition-colors hover:border-lime-300/50 hover:bg-lime-300/10 disabled:cursor-not-allowed disabled:opacity-40",children:[u?e.jsx(K,{size:10,className:"animate-spin"}):e.jsx(_o,{size:10}),e.jsx("span",{children:u?"Starting":"New chat"})]}),e.jsxs("button",{type:"button",title:`Switch chat (${P} total)`,"aria-label":"Switch chat",onClick:l,className:`flex items-center gap-1 rounded border px-1.5 py-0.5 text-2xs uppercase tracking-[0.1em] transition-colors ${r?"border-lime-300/40 bg-lime-300/10 text-lime-100":"border-[var(--scout-chrome-border-soft)] text-[var(--scout-chrome-ink-faint)] hover:bg-[var(--scout-chrome-hover)] hover:text-[var(--scout-chrome-ink)]"}`,children:[e.jsx(Do,{size:10}),e.jsx("span",{children:"Chats"}),e.jsx("span",{className:"text-[var(--scout-chrome-ink-ghost)]",children:P}),e.jsx(Qe,{size:9,className:r?"rotate-180 transition-transform":"transition-transform"})]}),O>4&&e.jsxs("button",{type:"button",title:o?"Collapse chat":"View full session","aria-label":o?"Collapse chat":"View full session",onClick:s,className:"flex items-center gap-1 rounded border border-[var(--scout-chrome-border-soft)] px-1.5 py-0.5 text-2xs uppercase tracking-[0.1em] text-[var(--scout-chrome-ink-faint)] transition-colors hover:bg-[var(--scout-chrome-hover)] hover:text-[var(--scout-chrome-ink)]",children:[e.jsx("span",{children:o?"Collapse":"Full"}),o?e.jsx(lo,{size:9}):e.jsx(Qe,{size:9})]})]})]}),r&&e.jsxs("div",{className:"shrink-0 border-b border-[var(--scout-chrome-border-soft)] px-2 py-1.5",children:[e.jsxs("div",{className:"mb-1 flex items-center justify-between gap-2 px-0.5 text-2xs uppercase tracking-[0.12em] text-[var(--scout-chrome-ink-ghost)]",children:[e.jsx("span",{children:"Recent chats"}),L&&L.archivedCount>0&&e.jsxs("span",{children:[L.archivedCount," archived"]})]}),e.jsx("div",{className:"flex max-h-40 flex-col gap-0.5 overflow-y-auto pr-0.5",children:t.sessions.map(g=>{const E=g.id===t.session.id,R=f===g.id,M=k===g.id,A=jt(g.updatedAt)||"unknown",_=g.title&&g.title!=="New Scout Session"?g.title:`Session ${g.id.slice(0,8)}`;return e.jsxs("div",{className:`flex items-center gap-2 rounded border px-2 py-1 text-left transition-colors ${E?"border-lime-300/40 bg-lime-300/[0.06] text-lime-100":"border-transparent text-[var(--scout-chrome-ink-faint)] hover:border-[var(--scout-chrome-border-soft)] hover:bg-[var(--scout-chrome-hover)] hover:text-[var(--scout-chrome-ink)]"}`,children:[e.jsxs("button",{type:"button",onClick:()=>{E||d(g.id)},disabled:E||!!f||!!k,className:"flex min-w-0 flex-1 items-center gap-2 text-left disabled:cursor-not-allowed disabled:opacity-40",children:[e.jsx("span",{className:`h-1.5 w-1.5 shrink-0 rounded-full ${E?"bg-lime-300":"bg-[var(--scout-chrome-ink-ghost)]"}`}),e.jsx("span",{className:"min-w-0 flex-1 truncate text-xs text-[var(--scout-chrome-ink)]",children:_}),e.jsxs("span",{className:"shrink-0 text-2xs text-[var(--scout-chrome-ink-ghost)]",children:[g.messageCount," msg"]}),e.jsx("span",{className:"shrink-0 text-2xs text-[var(--scout-chrome-ink-ghost)]",children:A}),R&&e.jsx(K,{size:10,className:"shrink-0 animate-spin text-lime-200"})]}),e.jsx("button",{type:"button",title:"Archive chat","aria-label":`Archive chat ${_}`,onClick:()=>S(g.id),disabled:!!f||!!k,className:"flex h-5 w-5 shrink-0 items-center justify-center rounded border border-transparent text-[var(--scout-chrome-ink-ghost)] transition-colors hover:border-[var(--scout-chrome-border-soft)] hover:bg-black/20 hover:text-[var(--scout-chrome-ink)] disabled:cursor-not-allowed disabled:opacity-30",children:M?e.jsx(K,{size:10,className:"animate-spin"}):e.jsx(Ho,{size:10})})]},g.id)})})]}),e.jsxs("div",{ref:q,className:"flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto px-2.5 py-2",children:[C>0&&e.jsxs("button",{type:"button",onClick:s,className:"self-start text-2xs uppercase tracking-[0.12em] text-[var(--scout-chrome-ink-ghost)] hover:text-[var(--scout-chrome-ink)]",children:["↑ ",C," earlier message",C===1?"":"s"]}),V&&e.jsx(Rs,{suggestedPrompts:j,onSelectPrompt:I}),h.map((g,E)=>{const R=Is(h[E-1],g),M=Ps(g.createdAt);return e.jsxs("div",{className:"flex flex-col gap-1",children:[R&&e.jsx("div",{className:"self-center rounded-full bg-white/[0.06] px-2.5 py-0.5 font-mono text-2xs font-medium text-[var(--scout-chrome-ink-ghost)]",title:jt(g.createdAt),"aria-label":M,children:M}),e.jsx(Nt,{role:g.role,body:g.body,onContextMenu:g.role==="assistant"&&T?A=>T(A,g.body):void 0})]},g.id)}),y&&e.jsx(Nt,{role:"user",body:y,pending:!0}),b&&!y&&e.jsx("p",{className:"text-[var(--scout-chrome-ink-ghost)]",children:"Reading the control plane…"}),v&&e.jsxs("div",{className:"flex items-center gap-2 rounded border border-lime-300/30 bg-lime-300/[0.06] px-2.5 py-2 font-mono text-xs leading-relaxed text-lime-100",children:[e.jsx(K,{size:12,className:"shrink-0 animate-spin text-lime-300","aria-hidden":"true"}),e.jsxs("div",{className:"min-w-0 flex flex-col gap-0.5",children:[e.jsx("span",{className:"text-xs uppercase tracking-[0.14em] text-lime-300",children:"Briefing"}),e.jsx("span",{className:"text-[var(--scout-chrome-ink)]",children:"Codex is reviewing the control-plane snapshot. Voice will pick up when it lands."})]})]})]})]})}function Rs({suggestedPrompts:t=[],onSelectPrompt:o}){return e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col justify-start gap-2 px-1 py-2.5",children:[t.length>0?e.jsx("div",{className:"grid gap-1",children:t.slice(0,3).map(s=>e.jsx("button",{type:"button",onClick:()=>o?.(s),className:"min-h-7 truncate rounded border border-[var(--scout-chrome-border-soft)] bg-black/10 px-2.5 text-left font-mono text-xs leading-snug text-[var(--scout-chrome-ink-faint)] transition-colors hover:bg-[var(--scout-chrome-hover)] hover:text-[var(--scout-chrome-ink)]",children:s},s))}):null,e.jsxs("div",{className:"max-w-[30rem]",children:[e.jsx("div",{className:"font-sans text-lg font-semibold leading-tight text-[var(--scout-chrome-ink)]",children:"Start with a question."}),e.jsx("p",{className:"mt-0.5 font-sans text-xs leading-snug text-[var(--scout-chrome-ink-faint)]",children:"Paste a failed result or ask about what you are seeing. Scout replies when you ask."})]})]})}function Os({agents:t,draft:o,onDraftChange:s,onSubmit:r,sending:l,recording:a,voiceLabel:u,voiceBusy:d,voiceUnavailable:f,voiceHeld:b=!1,onMicClick:v,prominent:y=!1,autoFocus:S,focusSignal:k}){const T=n.useRef(null),j=n.useCallback(()=>{const h=T.current;h&&(h.textarea?h.textarea.focus({preventScroll:!0}):h.focus())},[]);n.useEffect(()=>{S&&j()},[S,j]),n.useEffect(()=>{k&&j()},[k,j]);let I="Start talking";f&&(I="Set up Scout voice"),a&&(I="Stop talking"),(d||b)&&(I=u);const N=d||a||b,x=["w-full resize-none rounded border font-mono text-sm leading-relaxed text-[var(--scout-chrome-ink)] placeholder:text-[var(--scout-chrome-ink-ghost)]",y?"min-h-[88px] max-h-[170px] border-lime-300/30 bg-black/25 px-3 py-2 text-md":"min-h-[44px] max-h-[124px] border-[var(--scout-chrome-border-soft)] bg-black/20 px-2 py-1.5"].join(" ");return e.jsxs("form",{className:"flex flex-col gap-1.5",onSubmit:h=>{h.preventDefault(),r()},children:[e.jsx(Ts,{ref:T,agents:t,value:o,onChange:s,onSubmit:()=>{o.trim()&&!l&&r()},placeholder:b?"Type while live voice is on…":y?"Ask Scout about what you are seeing…":"Ask Scout…",rows:y?4:2,disabled:l,submitOnEnter:!0,className:"min-w-0",textareaClassName:x}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("button",{type:"button",title:I,"aria-label":I,onClick:v,disabled:l||d||b,className:`flex h-8 items-center justify-center rounded border transition-colors disabled:cursor-not-allowed disabled:opacity-40 ${a?"border-lime-300/50 bg-lime-300/10 text-lime-200":b?"border-lime-300/25 bg-lime-300/[0.05] text-lime-100/70":"border-[var(--scout-chrome-border-soft)] text-[var(--scout-chrome-ink-faint)] hover:bg-[var(--scout-chrome-hover)] hover:text-[var(--scout-chrome-ink)]"} ${N?"gap-1.5 px-3 font-mono text-xs uppercase tracking-[0.12em]":"w-9"}`,children:[d?e.jsx(K,{size:13,className:"animate-spin"}):a?e.jsx(Lt,{size:12,className:"fill-current"}):e.jsx(Mo,{size:13}),N&&e.jsx("span",{className:"truncate",children:u})]}),e.jsx("button",{type:"submit",title:"Send","aria-label":"Send",disabled:!o.trim()||l,className:"flex h-8 w-9 items-center justify-center rounded bg-lime-300/90 text-black transition-opacity disabled:cursor-not-allowed disabled:opacity-40",children:l?e.jsx(K,{size:13,className:"animate-spin"}):e.jsx(Bo,{size:13})})]})]})}function Nt({role:t,body:o,pending:s=!1,onContextMenu:r}){const l=t==="user",a=l?o:xe(o),[u,d]=n.useState(!1),f=n.useCallback(()=>{Ee(a).then(()=>{d(!0),window.setTimeout(()=>d(!1),1200)}).catch(()=>{})},[a]);return e.jsxs("div",{className:"group flex flex-col gap-0.5",onContextMenu:r,children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("span",{className:`text-2xs uppercase tracking-[0.12em] ${l?"text-[var(--scout-chrome-ink-ghost)]":"text-lime-300"}`,children:[l?"You":"Reply",s&&" · sending"]}),e.jsx("button",{type:"button",title:u?"Copied":"Copy message","aria-label":u?"Copied message":"Copy message",disabled:s||!a.trim(),onClick:f,className:"flex h-5 w-5 shrink-0 items-center justify-center rounded border border-[var(--scout-chrome-border-soft)] text-[var(--scout-chrome-ink-ghost)] opacity-70 transition hover:bg-[var(--scout-chrome-hover)] hover:text-[var(--scout-chrome-ink)] disabled:cursor-not-allowed disabled:opacity-20 group-hover:opacity-100",children:u?e.jsx(is,{size:11}):e.jsx($o,{size:11})})]}),l?e.jsx("p",{className:`whitespace-pre-wrap break-words text-sm leading-relaxed text-[var(--scout-chrome-ink)] ${s?"opacity-60":""}`,children:a}):e.jsx("div",{className:s?"opacity-60":"",children:e.jsx(zo,{text:a})})]})}const As=5*6e4;function Is(t,o){if(!t||!tt(t.createdAt,o.createdAt))return!0;const s=ve(t.createdAt),r=ve(o.createdAt);return s===null||r===null?!0:Math.abs(r-s)>=As}function tt(t,o){const s=ve(t),r=ve(o);if(s===null||r===null)return!1;const l=new Date(s),a=new Date(r);return l.getFullYear()===a.getFullYear()&&l.getMonth()===a.getMonth()&&l.getDate()===a.getDate()}function Ps(t){const o=ve(t);if(o===null)return"";const s=new Date(o),r=new Date,l=new Date(r);l.setDate(r.getDate()-1);const a=s.toLocaleTimeString([],{hour:"numeric",minute:"2-digit"});return tt(o,r.getTime())?`Today ${a}`:tt(o,l.getTime())?`Yesterday ${a}`:s.getFullYear()===r.getFullYear()?`${s.toLocaleDateString([],{month:"short",day:"numeric"})} ${a}`:`${s.toLocaleDateString([],{month:"short",day:"numeric",year:"numeric"})} ${a}`}function Tt({icon:t,title:o,onClick:s,disabled:r,active:l,badge:a}){return e.jsxs("button",{type:"button",title:o,"aria-label":o,onClick:s,disabled:r,className:`flex shrink-0 items-center gap-1 rounded border p-1 text-xs transition-colors disabled:cursor-not-allowed disabled:opacity-40 ${l?"border-lime-300/50 bg-lime-300/10 text-lime-200":"border-[var(--scout-chrome-border-soft)] text-[var(--scout-chrome-ink-faint)] hover:bg-[var(--scout-chrome-hover)] hover:text-[var(--scout-chrome-ink)]"}`,children:[t,a&&e.jsx("span",{className:"font-mono text-3xs tracking-tight",children:a})]})}function Ms({issue:t,probeState:o,onLaunch:s,onRetry:r,onSettings:l,onDismiss:a}){const u=o==="probing"||o==="launching";return e.jsxs("div",{className:"rounded border border-[var(--scout-chrome-border-soft)] bg-black/15 px-2.5 py-2 font-mono text-xs text-[var(--scout-chrome-ink)]",children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(wt,{size:13,className:"mt-0.5 shrink-0 text-[var(--scout-chrome-ink-faint)]"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"uppercase tracking-[0.14em] text-[var(--scout-chrome-ink-faint)]",children:"Scout Voice"}),e.jsx("p",{className:"mt-1 leading-relaxed text-[var(--scout-chrome-ink-ghost)]",children:"Open Scout Menu to use speech."}),t&&e.jsx("p",{className:"mt-2 break-words leading-relaxed text-[var(--scout-chrome-ink-ghost)]",children:t})]}),a?e.jsx("button",{type:"button",title:"Hide voice setup","aria-label":"Hide voice setup",onClick:a,className:"shrink-0 rounded border border-transparent p-1 text-[var(--scout-chrome-ink-ghost)] transition-colors hover:border-[var(--scout-chrome-border-soft)] hover:bg-[var(--scout-chrome-hover)] hover:text-[var(--scout-chrome-ink)]",children:e.jsx(Vo,{size:11})}):null]}),e.jsxs("div",{className:"mt-2 grid grid-cols-3 gap-1.5",children:[e.jsx(Ge,{icon:o==="launching"?e.jsx(K,{size:12,className:"animate-spin"}):e.jsx(wt,{size:12}),label:o==="launching"?"Opening":"Open",onClick:s,disabled:o==="probing",title:"Open Scout services"}),e.jsx(Ge,{icon:o==="probing"?e.jsx(K,{size:12,className:"animate-spin"}):e.jsx(Uo,{size:12}),label:"Retry",onClick:r,disabled:u,title:"Check Scout voice again"}),e.jsx(Ge,{icon:e.jsx(Fo,{size:12}),label:"Voice",onClick:l,disabled:o==="probing",title:"Open Scoutbot voice settings"})]})]})}function Ge({icon:t,label:o,onClick:s,disabled:r,title:l}){return e.jsxs("button",{type:"button",title:l,onClick:s,disabled:r,className:"flex min-h-7 items-center justify-center gap-1.5 rounded border border-[var(--scout-chrome-border-soft)] px-2 text-2xs uppercase tracking-[0.12em] text-[var(--scout-chrome-ink-faint)] transition-colors hover:bg-[var(--scout-chrome-hover)] hover:text-[var(--scout-chrome-ink)] disabled:cursor-not-allowed disabled:opacity-45",children:[t,o]})}function Ls({voicePresetId:t,onVoicePresetId:o,voiceDefaults:s,modelDraft:r,onModelDraft:l,promptDraft:a,onPromptDraft:u,configLoading:d,configSaving:f,configError:b,configStatus:v,onSave:y,onReload:S}){return e.jsx("div",{className:"rounded border border-[var(--scout-chrome-border-soft)] bg-black/10 p-3",children:e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("label",{className:"flex flex-col gap-1 font-mono text-xs uppercase tracking-[0.12em] text-[var(--scout-chrome-ink-faint)]",children:["Voice FX",e.jsx("select",{value:t,onChange:k=>o(k.target.value),className:"rounded border border-[var(--scout-chrome-border-soft)] bg-black/20 px-2 py-1.5 font-mono text-sm normal-case tracking-normal text-[var(--scout-chrome-ink)]",children:Ct.map(k=>e.jsxs("option",{value:k.id,children:[k.label," — ",k.family]},k.id))}),e.jsx("span",{className:"font-mono text-2xs normal-case leading-relaxed tracking-normal text-[var(--scout-chrome-ink-ghost)]",children:Ct.find(k=>k.id===t)?.description??"Custom voice mood for spoken replies."})]}),e.jsxs("div",{className:"flex flex-col gap-1 font-mono text-xs uppercase tracking-[0.12em] text-[var(--scout-chrome-ink-faint)]",children:["Scout Voice",e.jsx("div",{className:"rounded border border-[var(--scout-chrome-border-soft)] bg-black/20 px-2 py-1.5 font-mono text-sm normal-case tracking-normal text-[var(--scout-chrome-ink)]",children:s?`${s.modelId}${s.voiceId?` / ${s.voiceId}`:""}`:"Unavailable"})]}),e.jsxs("label",{className:"flex flex-col gap-1 font-mono text-xs uppercase tracking-[0.12em] text-[var(--scout-chrome-ink-faint)]",children:["Preferred model",e.jsx("input",{value:r,onChange:k=>l(k.target.value),placeholder:"gpt-4.1-mini",className:"rounded border border-[var(--scout-chrome-border-soft)] bg-black/20 px-2 py-1.5 font-mono text-sm normal-case tracking-normal text-[var(--scout-chrome-ink)] placeholder:text-[var(--scout-chrome-ink-ghost)]",disabled:d||f})]}),e.jsxs("label",{className:"flex flex-col gap-1 font-mono text-xs uppercase tracking-[0.12em] text-[var(--scout-chrome-ink-faint)]",children:["System Prompt",e.jsx("textarea",{value:a,onChange:k=>u(k.target.value),rows:6,className:"w-full resize-y rounded border border-[var(--scout-chrome-border-soft)] bg-black/20 px-2 py-1.5 font-mono text-xs normal-case leading-relaxed tracking-normal text-[var(--scout-chrome-ink)]",disabled:d||f})]}),b&&e.jsx("div",{className:"font-mono text-xs leading-relaxed text-red-300",children:b}),v&&e.jsx("div",{className:"font-mono text-xs leading-relaxed text-lime-200",children:v}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("button",{type:"button",onClick:y,disabled:d||f||!a.trim(),className:"flex items-center justify-center gap-2 rounded bg-lime-300/90 px-2.5 py-2 font-mono text-xs font-bold uppercase tracking-[0.12em] text-black transition-opacity disabled:cursor-not-allowed disabled:opacity-40",children:[(d||f)&&e.jsx(K,{size:13,className:"animate-spin"}),f?"Saving":"Save"]}),e.jsx("button",{type:"button",onClick:S,disabled:d||f,className:"rounded border border-[var(--scout-chrome-border-soft)] px-2.5 py-2 font-mono text-xs uppercase tracking-[0.12em] text-[var(--scout-chrome-ink-faint)] hover:bg-[var(--scout-chrome-hover)] disabled:cursor-not-allowed disabled:opacity-40",children:"Reload"})]})]})})}const zs="chill-dispatcher",_s=6e4,Ds=2500,Hs=1.2,Bs={lowCutHz:160,highCutHz:5200,bandQ:.35,saturationAmount:.035,bitcrushAmount:0,hissGain:0,hissCutoffHz:1800,presencePeakDb:1.5,presenceCenterHz:1500,presenceQ:.65,compressorThresholdDb:-15,compressorRatio:2.2,clickEnabled:!0,clickGain:.24,clickDurationMs:45,squelchTailEnabled:!0,squelchTailGain:.018,squelchTailDurationMs:95,outputGain:1,wetMix:.38};function $s(t){const o=Math.min(1,t/8);return{saturationAmount:.035+o*.025,presencePeakDb:1.5+o*1.5}}function Vs(t,o){return{...t==="chill-dispatcher"?Bs:{},...$s(o)}}function zt(t,o,s){return new Promise((r,l)=>{const a=window.setTimeout(()=>l(new Error(s)),o);t.then(r,l).finally(()=>window.clearTimeout(a))})}async function Et(t,o={}){!t.sessionId&&!o.allowCurrentSession||await zt(t.cancel(),Ds,"Timed out releasing Scout voice session.").catch(()=>{})}function Us(t){const o=t instanceof Error?t.message:String(t);return/session_cancelled|was cancelled|cancelled/i.test(o)}const Rt=new RegExp("(?:^|(?<=[\\s(`'\"<>]))(?:~\\/|\\/(?:Users|home|opt|var|etc|tmp|private)\\/)[^\\s)`'\"<>]+\\.[A-Za-z0-9]{1,8}\\b","g");function Fs(t){const o=[],s=new Set;Rt.lastIndex=0;let r;for(;(r=Rt.exec(t))!==null;)s.has(r[0])||(s.add(r[0]),o.push(r[0]));return o}function Ot(t){const o=t.split("/").filter(Boolean);return o.length<=2?t:`…/${o.slice(-2).join("/")}`}function Ws(){return{requesterName:"OpenScout",productName:"Scout Voice",headline:"Turn on local voice",body:"Scout voice handles local speech capture and spoken replies. Start Scout services, then return here to talk with your workspace.",actionLabel:"Return to OpenScout",logo:{url:new URL("/openscout-icon.png",window.location.href).toString(),symbolName:"sparkles"}}}const qs=["Explain what went wrong here.","Help me rewrite this message.","What should I try next?"];function At({height:t,forceExpanded:o=!1,fill:s=!1}={}){const{applyScoutbotUiAction:r,agents:l,route:a,onlineCount:u}=F(),d=uo(),f=nt(mo,!1),b=po(),v=f&&(b.state==="connecting"||b.state==="live"),[y,S]=Xe("openscout.scoutbot.collapsed",!0),[k,T]=n.useState(""),[j,I]=n.useState(!1),[N,x]=n.useState(null),[h,C]=n.useState(null),[O,P]=n.useState(null),[L,V]=n.useState("idle"),[z,W]=Xe("openscout.scoutbot.voiceReplies",!1),[J]=Mt("openscout.scoutbot.voiceSpeed",Hs),[q,ce]=Co("openscout.scoutbot.voicePresetId",zs),[m,g]=n.useState(!1),[E,R]=n.useState(null),[M,A]=n.useState(""),[_,Z]=n.useState(!1),[ee,G]=n.useState(null),[Me,se]=n.useState(null),[le,D]=n.useState(null),[X,de]=n.useState(!1),[Le,ze]=n.useState(!1),[Y,ne]=n.useState(null),[ue,at]=n.useState(!1),[_e,ct]=n.useState(null),[Ht,lt]=n.useState(!1),[Bt,dt]=n.useState(!1),[$t,Se]=n.useState(null),[Vt,De]=n.useState(null),[He,Be]=n.useState(""),[$e,Ve]=n.useState(""),[Ut,ut]=n.useState(null),[Ft,re]=n.useState(!1),[Wt,ie]=n.useState(0),[qt,ke]=n.useState(!1),[Ue,mt]=n.useState(null),je=n.useRef(To()),te=n.useRef(null),me=n.useRef(null),pe=n.useRef(null),pt=n.useRef(z);pt.current=z;const B=n.useCallback(()=>{pe.current?.stop(),pe.current=null,Z(!1)},[]),we=n.useCallback(i=>{if(!i)return;B();const c=Eo(hs(i),{speed:J,presetId:q,params:Vs(q,u)});pe.current=c,Z(!0),c.promise.catch(p=>{Ro(p)||x(p instanceof Error?p.message:"Scout voice speech failed.")}).finally(()=>{pe.current===c&&(pe.current=null,Z(!1))})},[B,J,u,q]),ht=n.useCallback(i=>{pt.current&&we(i)},[we]),ft=n.useCallback(i=>{we(xe(i))},[we]),{openFilePreview:gt}=F(),xt=So(),Gt=n.useCallback((i,c)=>{const p=window.getSelection()?.toString().trim(),w=xe(c),H=Fs(w),U=[];if(p&&(U.push({kind:"action",label:"Copy selection",shortcut:"⌘C",onSelect:()=>{Ee(p)}}),U.push({kind:"separator"})),U.push({kind:"action",label:"Copy message",onSelect:()=>{Ee(w)}}),H.length>0){U.push({kind:"separator"});for(const Q of H.slice(0,5)){const qe=Ot(Q);U.push({kind:"action",label:`Preview ${qe}`,onSelect:()=>gt(Q)})}for(const Q of H.slice(0,5)){const qe=Ot(Q);U.push({kind:"action",label:`Open ${qe} in OS`,onSelect:()=>{$("/api/file/reveal",{method:"POST",body:JSON.stringify({path:Q})}).catch(()=>{})}})}U.push({kind:"action",label:H.length===1?"Copy path":"Copy first path",onSelect:()=>{Ee(H[0])}})}U.push({kind:"separator"}),U.push({kind:"action",label:_?"Say again (stop current)":"Say",onSelect:()=>ft(c)}),xt(i,U)},[gt,ft,xt,_]);n.useEffect(()=>()=>{B()},[B]);const Yt=qs,ae=n.useCallback(i=>{const c=[...i.messages].reverse().find(w=>w.role==="user"),p=[...i.messages].reverse().find(w=>w.role==="assistant");G(c?.body??null),se(p?xe(p.body):null)},[]),he=n.useCallback(async()=>{try{const i=await $("/api/scoutbot/session");ne(i),ae(i.session)}catch{ne(null)}},[ae]);n.useEffect(()=>{he()},[he]);const Fe=n.useCallback(async()=>{lt(!0),Se(null);try{const i=await $("/api/scoutbot/config");Be(i.model),Ve(i.systemPrompt),De(null)}catch(i){Se(i instanceof Error?i.message:"Could not load settings.")}finally{lt(!1)}},[]);n.useEffect(()=>{X&&Fe()},[Fe,X]),n.useEffect(()=>{if(!X)return;let i=!1;return $("/api/voice/defaults").then(c=>{i||ut(c)}).catch(()=>{i||ut(null)}),()=>{i=!0}},[X]);const Kt=n.useCallback(async()=>{dt(!0),Se(null),De(null);try{const i=await $("/api/scoutbot/config",{method:"POST",body:JSON.stringify({model:He,systemPrompt:$e})});Be(i.config.model),Ve(i.config.systemPrompt),De("Saved")}catch(i){Se(i instanceof Error?i.message:"Could not save settings.")}finally{dt(!1)}},[He,$e]),Jt=n.useCallback(async i=>{if(!(!i||Ue)){mt(i),x(null),B();try{const c=await $("/api/scoutbot/session/switch",{method:"POST",body:JSON.stringify({id:i})});ne(c),ae(c.session),ke(!1),re(!1),window.dispatchEvent(new CustomEvent(ge,{detail:{id:c.session.id}}))}catch(c){x(c instanceof Error?c.message:"Could not switch session.")}finally{mt(null)}}},[B,Ue,ae]),We=n.useCallback(async()=>{if(!(ue||j)){if(Y?.session.messages.length===0){T(""),x(null),re(!1),ke(!1),D("New chat ready"),ie(i=>i+1);return}at(!0),x(null),D("Starting new chat"),B();try{const i=await $("/api/scoutbot/session/reset",{method:"POST"});ne(i),T(""),G(null),se(null),re(!1),ke(!1),D("New chat ready"),ie(c=>c+1),window.dispatchEvent(new CustomEvent(ge,{detail:{id:i.session.id}}))}catch(i){D(null),x(i instanceof Error?i.message:"Could not start a new chat.")}finally{at(!1)}}},[ue,j,Y,B]),Xt=n.useCallback(async i=>{if(!(!i||_e)){ct(i),x(null),B();try{const c=await $("/api/scoutbot/session/archive",{method:"POST",body:JSON.stringify({id:i})});ne(c),ae(c.session),re(!1),D("session archived"),window.dispatchEvent(new CustomEvent(ge,{detail:{id:c.session.id}}))}catch(c){x(c instanceof Error?c.message:"Could not archive session.")}finally{ct(null)}}},[_e,B,ae]),Ce=n.useCallback((i,c)=>{C(c),P(c?null:i.lastUnavailableReason??"Scout voice service is not reachable."),V("idle")},[]),oe=n.useCallback(async(i=!1)=>{const c=je.current;V(w=>w==="launching"?w:"probing");const p=await c.probe(i?{force:!0}:void 0);return Ce(c,p),p},[Ce]);n.useEffect(()=>{Oo();const i=je.current,c=Ao(p=>{C(p.ok),P(p.ok?null:p.reason),V("idle")});return i.connectionState==="unknown"?oe():Ce(i,i.connectionState==="connected"),c},[Ce,oe]);const Qt=n.useCallback(()=>{const i=je.current;x(null),V("launching"),i.launch({source:"openscout",context:Ws()}),window.setTimeout(()=>{oe(!0)},2400)},[oe]),bt=n.useCallback(i=>{const c=xe(i);se(c);for(const p of No(i))p.type==="ask-agent"?(D(`Sending to ${p.targetLabel}`),$("/api/scoutbot/actions/ask",{method:"POST",body:JSON.stringify({targetLabel:p.targetLabel,targetAgentId:p.targetAgentId,body:p.body,channel:p.channel})}).then(w=>{D(w.flightId?`Sent to ${w.targetAgentId??w.targetLabel} · run ${w.flightId}`:`Sent to ${w.targetAgentId??w.targetLabel}`)}).catch(w=>{D(null),x(w instanceof Error?w.message:"Could not send to agent.")})):p.type!=="reminder"&&r(p);ht(c)},[r,ht]);n.useEffect(()=>{const i=()=>{D("Scoutbot replied by voice"),he()},c=()=>{D("Scoutbot chat changed"),he()};return window.addEventListener(yt,i),window.addEventListener(ge,c),()=>{window.removeEventListener(yt,i),window.removeEventListener(ge,c)}},[he]);const fe=n.useCallback(async i=>{const c=i.trim();if(!(!c||j)){I(!0),x(null),G(c),se(null),D("Sending"),T(p=>p.trim()===c?"":p);try{await wo().catch(()=>null);const p=await $("/api/scoutbot/chat",{method:"POST",body:JSON.stringify({body:c,route:a,uiContext:ho("web")})});ne({session:p.session,sessions:p.sessions,config:p.config}),D("Reply received"),bt(p.reply.body)}catch(p){D(null),x(p instanceof Error?p.message:"Could not send.")}finally{I(!1)}}},[bt,a,j]),Zt=n.useCallback(async()=>{if(m)return;const i=je.current;if(me.current=null,x(null),A(""),R("starting"),h!==!0&&!await oe(!0)){R(null);return}let c=null,p=!1;const w=async()=>{!c||p||(p=!0,await Et(c,{allowCurrentSession:te.current===c}),te.current===c&&(te.current=null))};try{c=await i.startLive({onState:R,onPartial:A}),te.current=c,g(!0);const H=await c.result;if(await w(),g(!1),A(""),me.current)return;R("done"),H.text&&await fe(H.text)}catch(H){const U=me.current,Q=!!U||Us(H);if(await w(),g(!1),A(""),U==="stop-failed")return;R(Q?null:"error"),Q||x(H instanceof Error?H.message:"Scout voice recording failed.")}finally{await w(),me.current=null}},[fe,oe,m,h]),eo=n.useCallback(async()=>{const i=te.current;if(i){R("processing");try{await zt(i.stop(),_s,"Scout voice did not finish processing the recording.")}catch(c){me.current="stop-failed",await Et(i,{allowCurrentSession:!0}),te.current===i&&(te.current=null,g(!1),A(""),R("error")),x(c instanceof Error?`Scout voice recording did not finish: ${c.message}`:"Scout voice recording did not finish.")}}},[]);n.useEffect(()=>{const i=()=>S(!1);return window.addEventListener("scout:scoutbot-panel-open",i),()=>window.removeEventListener("scout:scoutbot-panel-open",i)},[S]),n.useEffect(()=>ko(()=>S(!y)),[y,S]),n.useEffect(()=>{const i=c=>{const p=c.detail,w=p&&typeof p=="object"&&"body"in p?p.body:null;typeof w=="string"&&w.trim()&&(S(!1),fe(w))};return window.addEventListener(kt,i),()=>window.removeEventListener(kt,i)},[fe,S]),n.useEffect(()=>{const i=c=>{const p=c.detail,w=p&&typeof p=="object"&&"body"in p?p.body:null;typeof w=="string"&&w.trim()&&(S(!1),T(w),ie(H=>H+1))};return window.addEventListener("scout:scoutbot-compose",i),()=>window.removeEventListener("scout:scoutbot-compose",i)},[S]);const vt=n.useMemo(()=>{const i=_?"speaking":j?"thinking":m?"listening":"idle",c=Y?.session??null,p=c&&c.messages.length>0?c.messages[c.messages.length-1]:null;return{activity:i,brief:{lastDeliveredAt:null},reminders:{dueCount:0,upcomingCount:0,due:[],next:null},voice:{available:h,setupBlocked:h===!1,replies:z},error:N,session:{title:c?.title??null,lastActivityAt:p?.createdAt??c?.updatedAt??null},conversation:{messageCount:c?.messages.length??0,loading:Y===null}}},[_,j,m,h,z,N,Y]);n.useEffect(()=>{d?.publishState(vt)},[d,vt]),n.useEffect(()=>{if(!d)return;const i={focusScoutbot:()=>S(!1),triggerBrief:()=>{S(!1),ie(c=>c+1)},triggerAskState:()=>{S(!1),ie(c=>c+1)},toggleVoiceReplies:()=>{const c=!z;W(c),c||B()},openScoutbotSettings:()=>{S(!1),de(!0)},startNewChat:()=>{S(!1),ue||We()},dismissReminder:()=>{},askReminderStatus:()=>{S(!1),ie(c=>c+1)}};d.registerActions(i)},[d,S,z,W,B,de,ue,We]),n.useEffect(()=>{h===!0&&ze(!1)},[h]);const to=v?"Live call":m?E==="processing"?"Sending":"Stop":L==="probing"?"Checking Voice":L==="launching"?"Opening Scout":h===!1?"Open Scout":"Start Talking",oo=Y!==null&&Y.session.messages.length===0&&!j;if(y&&!o)return e.jsx("div",{className:"flex shrink-0 items-center border-t border-[var(--scout-chrome-border-soft)] px-3 py-1.5",children:e.jsx(jo,{})});const so=s?"flex h-full min-h-0 flex-col overflow-hidden border-t border-[var(--scout-chrome-border-soft)]":t===void 0?"flex max-h-[60vh] shrink-0 flex-col overflow-hidden border-t border-[var(--scout-chrome-border-soft)]":"flex shrink-0 flex-col overflow-hidden border-t border-[var(--scout-chrome-border-soft)]",no=t===void 0||s?void 0:{height:`${t}px`};return e.jsxs("section",{className:so,style:no,children:[e.jsxs("div",{className:"flex shrink-0 flex-col gap-2 px-3 pt-2.5 pb-1.5",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("div",{className:"flex min-w-0 items-center gap-2",children:e.jsx(qo,{size:20,className:"shrink-0 text-lime-300","aria-hidden":"true"})}),e.jsxs("div",{className:"flex shrink-0 items-center gap-0.5",children:[e.jsx(Tt,{icon:z?e.jsx(cs,{size:11}):e.jsx(ds,{size:11}),title:v?z?"Voice replies on for typed chat (live call has its own audio)":"Voice replies off for typed chat (live call has its own audio)":z?"Voice replies on (click to mute)":"Voice replies off (click to enable)",onClick:()=>{const i=!z;W(i),i||B()},active:z}),!o&&e.jsx(Tt,{icon:e.jsx(Qe,{size:11}),title:"Minimize",onClick:()=>S(!0)})]})]}),X&&e.jsx(Ls,{voicePresetId:q,onVoicePresetId:ce,voiceDefaults:Ut,modelDraft:He,onModelDraft:Be,promptDraft:$e,onPromptDraft:Ve,configLoading:Ht,configSaving:Bt,configError:$t,configStatus:Vt,onSave:()=>{Kt()},onReload:()=>{Fe()}})]}),e.jsx("div",{className:"flex min-h-0 flex-1 flex-col px-3 pb-1.5",children:Y&&e.jsx(Es,{state:Y,chatExpanded:Ft,onToggleExpanded:()=>re(i=>!i),sessionPickerOpen:qt,onToggleSessionPicker:()=>ke(i=>!i),onStartNewChat:()=>{We()},startingNewChat:ue,onSwitchSession:i=>{Jt(i)},switchingSessionId:Ue,sending:j,briefing:!1,pendingAsk:j?ee:null,onArchiveSession:i=>{Xt(i)},archivingSessionId:_e,onAssistantContextMenu:Gt,suggestedPrompts:Yt,onSelectPrompt:i=>{T(i),re(!1)}})}),e.jsxs("div",{className:"flex shrink-0 flex-col gap-1.5 border-t border-[var(--scout-chrome-border-soft)] bg-black/10 px-3 pt-2 pb-2.5",children:[h===!1&&Le&&!v&&e.jsx(Ms,{issue:O,probeState:L,onLaunch:Qt,onRetry:()=>{oe(!0)},onSettings:()=>de(!0),onDismiss:()=>ze(!1)}),(M||_)&&!v&&e.jsxs("div",{className:"flex items-center justify-between gap-2 rounded border border-[var(--scout-chrome-border-soft)] bg-black/10 px-2.5 py-2 font-mono text-xs leading-relaxed text-[var(--scout-chrome-ink-faint)]",children:[e.jsx("span",{className:"min-w-0 truncate",children:_?"Speaking reply…":M}),_&&e.jsx("button",{type:"button",title:"Stop spoken reply",onClick:B,className:"shrink-0 rounded border border-[var(--scout-chrome-border-soft)] p-1 text-[var(--scout-chrome-ink)] hover:bg-[var(--scout-chrome-hover)]",children:e.jsx(Lt,{size:11,className:"fill-current"})})]}),le&&!j&&e.jsx("div",{className:"font-mono text-2xs uppercase tracking-[0.12em] text-[var(--scout-chrome-ink-ghost)]",children:le}),e.jsx(Os,{agents:l,draft:k,onDraftChange:T,onSubmit:()=>{fe(k)},sending:j,recording:m,voiceLabel:to,voiceBusy:E==="processing"||L==="probing"||L==="launching",voiceUnavailable:h===!1,voiceHeld:v,onMicClick:()=>{if(!v){if(h===!1){ze(!0);return}m?eo():Zt()}},prominent:oo&&!v,autoFocus:o,focusSignal:Wt}),N&&e.jsx("div",{className:"rounded border border-red-400/30 bg-red-400/10 px-2.5 py-2 font-mono text-xs leading-relaxed text-red-200",children:N})]})]})}function Gs({onResizeStart:t}){const o=n.useCallback(s=>{s.preventDefault(),t(s)},[t]);return e.jsxs("div",{role:"separator","aria-orientation":"horizontal",onMouseDown:o,className:"group relative flex h-[7px] shrink-0 cursor-ns-resize items-center justify-center",children:[e.jsx("div",{className:"absolute inset-x-0 top-0 h-px bg-[var(--scout-chrome-border-soft)] transition-colors group-hover:bg-[var(--scout-chrome-ink-faint)]"}),e.jsxs("div",{className:"flex flex-row gap-[3px] opacity-0 transition-opacity group-hover:opacity-100",children:[e.jsx("div",{className:"h-[3px] w-[3px] rounded-full bg-[var(--scout-chrome-ink-faint)]"}),e.jsx("div",{className:"h-[3px] w-[3px] rounded-full bg-[var(--scout-chrome-ink-faint)]"}),e.jsx("div",{className:"h-[3px] w-[3px] rounded-full bg-[var(--scout-chrome-ink-faint)]"})]})]})}const It=260,Ys=.7,Ks=260;function Ye(t,o){const s=Math.max(It,Math.floor(o*Ys));return Math.min(s,Math.max(It,Math.round(t)))}function Js(){const t=nt("surface.scoutbot",!0),{route:o,navigate:s,agents:r,selectedBrokerAttempt:l,clearBrokerAttempt:a}=F(),[u]=Xe("openscout.scoutbot.collapsed",!0),[d,f]=Mt("openscout.scoutbot.height",Ks),b=n.useRef(null),[v,y]=n.useState(0);n.useLayoutEffect(()=>{const N=b.current;if(!N)return;y(N.getBoundingClientRect().height);const x=new ResizeObserver(h=>{const C=h[0];C&&y(C.contentRect.height)});return x.observe(N),()=>x.disconnect()},[]),n.useEffect(()=>{if(v<=0)return;const N=Ye(d,v);N!==d&&f(N)},[v,d,f]);const S=n.useCallback(N=>{const x=N.clientY,h=d,C=b.current?.getBoundingClientRect().height??v,O=L=>{const V=L.clientY-x;f(Ye(h-V,C))},P=()=>{document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",P),document.body.style.removeProperty("cursor"),document.body.style.removeProperty("user-select")};document.body.style.cursor="ns-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",O),document.addEventListener("mouseup",P)},[v,d,f]);let k=null;const T=t&&o.view==="ops"&&o.mode==="lanes";if(T)k=e.jsx(At,{forceExpanded:!0,fill:!0});else switch(o.view){case"ops":k=e.jsx(Yo,{mode:o.mode??"mission",agents:r,navigate:s,returnRoute:o});break;case"broker":k=e.jsx(Go,{selectedAttempt:l,navigate:s,onClose:a});break;default:k=bo(o,s)}const j=v>0?Ye(d,v):d,I=t&&o.view!=="broker";return e.jsxs("div",{ref:b,className:"flex h-full flex-col overflow-hidden",children:[e.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:k}),I&&!T&&!u&&e.jsx(Gs,{onResizeStart:S}),I&&!T&&e.jsx(At,{height:u?void 0:j})]})}const _t="openscout.globalJumpDock.mode.v1";function Xs(){if(typeof window>"u")return null;try{const t=window.localStorage.getItem(_t);return t==="jump"||t==="minimap"?t:null}catch{return null}}function Qs(t){try{window.localStorage.setItem(_t,t)}catch{}}function Zs(){const{route:t,navigate:o}=F(),s=t.view==="mesh",[r,l]=n.useState(()=>{const u=Xs();return u==="minimap"&&s?"minimap":u==="jump"?"jump":s?"minimap":"jump"});n.useEffect(()=>{r==="minimap"&&!s&&l("jump")},[r,s]);const a=u=>{l(u),Qs(u)};return e.jsxs("div",{className:"gjd",children:[e.jsxs("div",{className:"gjd-head",children:[e.jsx("span",{className:"gjd-ear","aria-hidden":!0}),e.jsxs("div",{className:"gjd-mode",role:"group","aria-label":"Bottom dock mode",children:[e.jsx("button",{type:"button",className:`gjd-mode-btn${r==="jump"?" gjd-mode-btn--active":""}`,onClick:()=>a("jump"),"aria-pressed":r==="jump",children:"jump"}),s&&e.jsx("button",{type:"button",className:`gjd-mode-btn${r==="minimap"?" gjd-mode-btn--active":""}`,onClick:()=>a("minimap"),"aria-pressed":r==="minimap",children:"minimap"})]}),e.jsx("span",{className:"gjd-ear","aria-hidden":!0})]}),e.jsx("div",{className:"gjd-body",children:r==="minimap"&&s?e.jsx(Ko,{}):e.jsx(tn,{navigate:o})})]})}const en=Wo();function tn({navigate:t}){const o=nt("ops.control",!0),s=en.filter(r=>!r.opsGated||o);return e.jsx("div",{className:"gjd-jumps",children:s.map(r=>{const l=r.icon;return e.jsxs("button",{type:"button",className:"gjd-jump",onClick:()=>t(r.route),children:[e.jsx("span",{className:"gjd-jump-icon",children:n.createElement(l,{size:13,strokeWidth:1.6})}),e.jsx("span",{className:"gjd-jump-label",children:r.label})]},r.id)})})}function on(){const{route:t,navigate:o}=F();return e.jsxs("div",{className:"scout-left-shell",children:[e.jsx("div",{className:"scout-left-shell-rail",children:vo(t,o)}),e.jsx(Zs,{})]})}function sn(){const t=ro(),o=io(),s=Jo({url:t,healthUrl:o,autoConnect:!0,sessionKey:"scout-terminal"});return e.jsx("div",{style:{height:"100%",background:"#0d0d0d",overflow:"hidden"},children:e.jsx(Xo,{relay:s,fontSize:13,configItems:[{label:"ws",value:t},{label:"health",value:o}]})})}const nn="Scout's local server isn't responding. It may still be starting up — wait a moment and try again.",rn="Scout couldn't start its background service. Restart Scout from the menu bar icon, then try again.",an="The broker isn't running yet. Start Scout's services from the menu bar icon, then run setup again.",cn="Starting the broker took too long. Try again — if it keeps happening, restart Scout.",ln="Scout couldn't write its settings in your home folder (~/.openscout). Check the folder's permissions and try again.",dn="That folder doesn't exist on this Mac. Double-check the path — for example /Users/you/dev.";function ye(t,o){const s=o instanceof Error?o.message:String(o);return fo(St(o))?nn:/Unable to locate scoutd|Unable to locate Bun/i.test(s)?rn:/openscout-runtime broker/i.test(s)?an:/timed out/i.test(s)?cn:/EACCES|EPERM|EROFS/i.test(s)?ln:t==="project"&&/ENOENT|does not exist|doesn'?t exist/i.test(s)?/does not exist|doesn'?t exist/i.test(s)&&/[/~]/.test(s)?s:dn:St(o)}const Oe=4;function un(){const{onboarding:t}=F();return t?t.hasLocalConfig?t.hasOperatorName?t.hasProjectConfig?t.needed!==!1&&(!t.brokerReachable||!t.hasReadyRuntime)?e.jsx(Te,{children:e.jsx(fn,{step:4})}):null:e.jsx(Te,{children:e.jsx(hn,{step:3})}):e.jsx(Te,{children:e.jsx(pn,{step:2})}):e.jsx(Te,{children:e.jsx(mn,{step:1})}):null}function Te({children:t}){return e.jsx("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"auto",background:"var(--bg)",color:"var(--ink)"},children:e.jsx("div",{style:{width:"100%",maxWidth:720,padding:"80px 72px",display:"flex",flexDirection:"column",gap:40},children:t})})}function Ae({eyebrow:t,title:o,description:s}){return e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[e.jsx("div",{style:gn,children:t}),e.jsx("div",{style:xn,children:o}),e.jsx("div",{style:bn,children:s})]})}function Ie({primary:t,onPrimary:o,primaryDisabled:s,busy:r}){const{skipOnboarding:l}=F();return e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:10,paddingTop:8},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:24},children:[e.jsx("button",{type:"button",onClick:o,disabled:s||r,style:{...vn,opacity:s||r?.5:1,cursor:s||r?"default":"pointer"},children:r?"Working…":t}),e.jsx("button",{type:"button",onClick:l,style:yn,onMouseEnter:a=>{a.currentTarget.style.color="rgba(255,255,255,0.8)"},onMouseLeave:a=>{a.currentTarget.style.color="rgba(255,255,255,0.45)"},children:"Set up later"})]}),e.jsx("div",{style:{fontSize:11,color:"rgba(255,255,255,0.35)",lineHeight:1.5},children:"Scout stays limited until setup finishes."})]})}function Pe({message:t}){return t?e.jsx("div",{style:{borderRadius:8,border:"1px solid rgba(239,68,68,0.35)",backgroundColor:"rgba(239,68,68,0.08)",color:"rgba(252,165,165,0.95)",padding:"12px 16px",fontSize:12,lineHeight:1.5},children:t}):null}function mn({step:t}){const{onboarding:o,refreshOnboarding:s}=F(),[r,l]=n.useState(!1),[a,u]=n.useState(null),d=async()=>{l(!0),u(null);try{await $("/api/onboarding/init",{method:"POST",body:"{}"}),await s()}catch(f){u(ye("init",f))}finally{l(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(Ae,{eyebrow:`First-run setup · Step ${t} of ${Oe}`,title:"Welcome to Scout",description:e.jsxs(e.Fragment,{children:["Scout needs a local config before it can talk to the broker, the web app, and paired devices. This writes"," ",e.jsx("code",{style:st,children:"~/.openscout/config.json"})," with sensible defaults — you can edit it any time."]})}),e.jsxs("ul",{style:Dt,children:[e.jsx(be,{label:"Local config (~/.openscout/config.json)",done:!1,hint:"missing"}),e.jsx(be,{label:".openscout/project.json in a repo",done:!!o?.hasProjectConfig,hint:o?.hasProjectConfig?o.projectRoot??void 0:"checked after setup"})]}),e.jsx(Pe,{message:a}),e.jsx(Ie,{primary:"Initialize Scout",onPrimary:()=>{d()},busy:r})]})}function pn({step:t}){const{onboarding:o,refreshOnboarding:s}=F(),r=o?.operatorNameSuggestion??"",[l,a]=n.useState(r),[u,d]=n.useState(!1),[f,b]=n.useState(null);n.useEffect(()=>{!l&&r&&a(r)},[r,l]);const v=async()=>{const y=l.trim();if(!y){b("Name is required.");return}d(!0),b(null);try{await $("/api/user",{method:"POST",body:JSON.stringify({name:y})}),await s()}catch(S){b(ye("identity",S))}finally{d(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(Ae,{eyebrow:`Identity · Step ${t} of ${Oe}`,title:"What should we call you?",description:"Your name shows up on messages you send and in any agent that speaks for you. You can change it later in Settings."}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[e.jsx("label",{style:Re,children:"Your name"}),e.jsx("input",{autoFocus:!0,value:l,onChange:y=>{a(y.target.value),b(null)},onKeyDown:y=>{y.key==="Enter"&&v()},placeholder:r||"Operator",style:ot}),r?e.jsx("div",{style:{fontSize:11,color:"rgba(255,255,255,0.4)",fontFamily:"var(--hud-font-mono)"},children:"Prefilled from your machine."}):null]}),e.jsx(Pe,{message:f}),e.jsx(Ie,{primary:"Continue",onPrimary:()=>{v()},busy:u,primaryDisabled:!l.trim()})]})}function hn({step:t}){const{onboarding:o,refreshOnboarding:s}=F(),r=o?.currentDirectory??"",l=r||"~/dev",[a,u]=n.useState([l]),[d,f]=n.useState(r),[b,v]=n.useState("claude"),[y,S]=n.useState(!1),[k,T]=n.useState(null),j=(h,C)=>{u(O=>O.map((P,L)=>L===h?C:P))},I=()=>u(h=>[...h,""]),N=h=>u(C=>C.filter((O,P)=>P!==h)),x=async()=>{const h=a.map(O=>O.trim()).filter(Boolean),C=d.trim();if(!C){T("Pick where Scout should anchor this context.");return}S(!0),T(null);try{await $("/api/onboarding/project",{method:"POST",body:JSON.stringify({contextRoot:C,sourceRoots:h,defaultHarness:b})}),await s()}catch(O){T(ye("project",O))}finally{S(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(Ae,{eyebrow:`Project · Step ${t} of ${Oe}`,title:"Where do your repos live?",description:e.jsxs(e.Fragment,{children:["Scout scans these folders for projects and anchors this context at"," ",e.jsx("code",{style:st,children:"<context>/.openscout/project.json"}),"."]})}),e.jsxs("div",{style:Ke,children:[e.jsx("label",{style:Re,children:"Scan folders"}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[a.map((h,C)=>e.jsxs("div",{style:{display:"flex",gap:8},children:[e.jsx("input",{value:h,onChange:O=>j(C,O.target.value),placeholder:C===0?l:"Add another folder",style:{...ot,flex:1}}),e.jsx("button",{type:"button",onClick:()=>N(C),disabled:a.length<=1,style:{...Pt,opacity:a.length<=1?.4:1,cursor:a.length<=1?"default":"pointer"},"aria-label":`Remove folder ${C+1}`,children:"−"})]},C)),e.jsx("button",{type:"button",onClick:I,style:{...Pt,alignSelf:"flex-start"},children:"+ Add folder"})]})]}),e.jsxs("div",{style:Ke,children:[e.jsx("label",{style:Re,children:"Context root"}),e.jsx("input",{value:d,onChange:h=>f(h.target.value),placeholder:l,style:ot}),e.jsxs("div",{style:Je,children:["Scout writes ",e.jsx("code",{style:st,children:".openscout/project.json"})," ","inside this folder."]}),e.jsx("div",{style:Je,children:"Tip: ~ expands to your home folder."})]}),e.jsxs("div",{style:Ke,children:[e.jsx("label",{style:Re,children:"Default harness"}),e.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:12},children:["claude","codex"].map(h=>{const C=b===h;return e.jsxs("button",{type:"button",onClick:()=>v(h),style:{...Sn,borderColor:C?"var(--accent, #2dd4bf)":"rgba(255,255,255,0.12)",backgroundColor:C?"rgba(45,212,191,0.08)":"rgba(255,255,255,0.02)"},children:[e.jsx("div",{style:{fontSize:15,fontWeight:600,textTransform:"capitalize"},children:h}),e.jsx("div",{style:{fontSize:12,color:"rgba(255,255,255,0.55)",marginTop:6,lineHeight:1.5},children:h==="claude"?"Anthropic Claude Code — local CLI agent.":"OpenAI Codex — cloud agentic sandbox."}),e.jsx("div",{style:{fontSize:11,fontFamily:"var(--hud-font-mono)",color:"rgba(255,255,255,0.4)",marginTop:8,lineHeight:1.5},children:h==="claude"?"Requires the Claude Code CLI, installed and signed in.":"Requires the Codex CLI, installed and signed in."})]},h)})}),e.jsx("div",{style:Je,children:"Not installed yet? Pick one anyway — the final step checks and tells you what's missing."})]}),e.jsx(Pe,{message:k}),e.jsx(Ie,{primary:"Create project",onPrimary:()=>{x()},busy:y,primaryDisabled:!d.trim()})]})}function fn({step:t}){const{onboarding:o,refreshOnboarding:s}=F(),[r,l]=n.useState(!1),[a,u]=n.useState(null),d=async()=>{l(!0),u(null);try{const f=await $("/api/onboarding/setup",{method:"POST",body:"{}"});await s(),f.brokerWarning?u(ye("setup",f.brokerWarning)):f.hasReadyRuntime===!1&&u("Setup finished, but Scout didn't find a ready agent runtime. Install or sign in to a supported runtime, then choose Run setup again.")}catch(f){u(ye("setup",f))}finally{l(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(Ae,{eyebrow:`Setup · Step ${t} of ${Oe}`,title:"Finish setup",description:"Scout will install its harness skills, start the local broker, refresh discovery, and check for a ready agent runtime."}),e.jsxs("ul",{style:Dt,children:[e.jsx(be,{label:".openscout/project.json",done:!!o?.hasProjectConfig,hint:o?.projectConfigPath??o?.projectRoot??void 0}),e.jsx(be,{label:"Broker reachable",done:!!o?.brokerReachable,hint:o?.brokerReachable?"connected":"starts when you run setup"}),e.jsx(be,{label:"Agent runtime",done:!!o?.hasReadyRuntime,hint:o?.hasReadyRuntime?"ready":"install or sign in to a supported runtime"})]}),e.jsx(Pe,{message:a}),e.jsx(Ie,{primary:"Run setup",onPrimary:()=>{d()},busy:r})]})}function be({label:t,done:o,hint:s}){return e.jsxs("li",{style:{display:"flex",alignItems:"flex-start",gap:16},children:[e.jsx("span",{style:{marginTop:2,width:20,height:20,borderRadius:999,display:"flex",alignItems:"center",justifyContent:"center",fontSize:11,fontWeight:700,flexShrink:0,backgroundColor:o?"rgba(34,197,94,0.15)":"rgba(255,255,255,0.07)",color:o?"#4ade80":"rgba(255,255,255,0.5)"},children:o?"✓":"•"}),e.jsxs("div",{style:{minWidth:0},children:[e.jsx("div",{style:{fontSize:13,lineHeight:1.5,color:o?"rgba(255,255,255,0.75)":"rgba(255,255,255,0.9)"},children:t}),s?e.jsx("div",{style:{fontSize:11,fontFamily:"var(--hud-font-mono)",color:"rgba(255,255,255,0.35)",marginTop:4,wordBreak:"break-all"},children:s}):null]})]})}const gn={fontSize:11,fontFamily:"var(--hud-font-mono)",textTransform:"uppercase",letterSpacing:"0.18em",color:"rgba(255,255,255,0.4)"},xn={fontSize:36,fontWeight:600,letterSpacing:"-0.01em",lineHeight:1.15},bn={fontSize:15,lineHeight:1.75,color:"rgba(255,255,255,0.6)",maxWidth:580},Ke={display:"flex",flexDirection:"column",gap:10},Re={fontSize:11,fontFamily:"var(--hud-font-mono)",textTransform:"uppercase",letterSpacing:"0.15em",color:"rgba(255,255,255,0.5)"},ot={width:"100%",padding:"10px 14px",fontSize:14,fontFamily:"var(--hud-font-mono)",color:"rgba(255,255,255,0.92)",backgroundColor:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.12)",borderRadius:8,outline:"none",boxSizing:"border-box"},Je={fontSize:12,color:"rgba(255,255,255,0.45)",lineHeight:1.6},st={fontFamily:"var(--hud-font-mono)",fontSize:12,padding:"2px 6px",borderRadius:4,backgroundColor:"rgba(255,255,255,0.06)"},vn={fontSize:13,fontWeight:600,padding:"12px 24px",borderRadius:10,backgroundColor:"var(--accent, #2dd4bf)",color:"#0b0d12",border:"none",transition:"opacity 0.15s ease"},Pt={fontSize:13,fontWeight:500,padding:"10px 14px",borderRadius:8,backgroundColor:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.12)",color:"rgba(255,255,255,0.85)",transition:"all 0.15s ease"},yn={fontSize:12,color:"rgba(255,255,255,0.45)",textDecoration:"underline dotted rgba(255,255,255,0.25)",textUnderlineOffset:4,background:"none",border:"none",cursor:"pointer",padding:"4px 2px",transition:"color 0.15s ease"},Dt={display:"flex",flexDirection:"column",gap:20,margin:0,padding:0,listStyle:"none"},Sn={textAlign:"left",padding:"16px 18px",borderRadius:12,borderWidth:1,borderStyle:"solid",borderColor:"rgba(255,255,255,0.12)",color:"rgba(255,255,255,0.9)",cursor:"pointer",transition:"all 0.15s ease"},kn=[{commandId:"nav:home",title:"Go to Home",description:"Navigate to the home overview showing queue, threads, signal, and activity",category:"navigation",keywords:["home","inbox","dashboard"],shortcut:"Cmd+1"},{commandId:"nav:agents",title:"Go to Agents",description:"Navigate to the agents roster showing all registered agents",category:"navigation",keywords:["agents","roster","list"],shortcut:"Cmd+2"},{commandId:"nav:messages",title:"Go to Chat",description:"Navigate to the unified chat surface backed by the normalized conversations service",category:"navigation",keywords:["conversations","comms","chat","threads","channels","channel","group","broadcast"],shortcut:"Cmd+3"},{commandId:"nav:sessions",title:"Open Sessions",description:"Navigate to the sessions list showing all active conversations",category:"navigation",keywords:["sessions","conversations","threads"]},{commandId:"nav:search",title:"Go to Search",description:"Navigate to the session knowledge search surface for extraction, search, and raw-log drilldown planning",category:"navigation",keywords:["search","knowledge","qmd","history"],shortcut:"Cmd+4"},{commandId:"nav:activity",title:"Open Activity",description:"Navigate to the activity feed showing recent events",category:"navigation",keywords:["activity","feed","events","log"]},{commandId:"nav:mesh",title:"Open Mesh",description:"Navigate to the mesh network view showing nodes and topology",category:"navigation",keywords:["mesh","network","nodes","peers","topology"]},{commandId:"nav:dispatch",title:"Open Dispatch",description:"Navigate to the dispatch ledger for routing, delivery attempts, and failed queries",category:"navigation",keywords:["dispatch","broker","routing","delivery","messages"]},{commandId:"nav:repos",title:"Open Repos",description:"Navigate to the repos view for branches, diffs, and working-tree state",category:"navigation",keywords:["repos","repositories","git","branches","diffs"]},{commandId:"nav:harnesses",title:"Open Providers",description:"Open the central view for providers, harnesses, observed topology, and budget feeds",category:"navigation",keywords:["provider","providers","harness","harnesses","claude","codex","budget","usage","topology"]},{commandId:"nav:ops",title:"Go to Ops",description:"Navigate to the operator workspace for dispatch, mesh, tail, runtime, alerts, and agent operations",category:"navigation",keywords:["ops","operator","control","tail","runtime","services","atop","dispatch","mesh"],shortcut:"Cmd+5"},{commandId:"nav:ops-atop",title:"Open Runtime",description:"Open the live agent/process view with observed harness families",category:"navigation",keywords:["runtime","services","atop","process","session","agent","topology"]},{commandId:"nav:settings",title:"Open Settings",description:"Open the settings screen for pairing, identity, and relay config",category:"settings",keywords:["settings","preferences","config","pair"],shortcut:"Cmd+,"},{commandId:"nav:agent-config",title:"Open Agent Configuration",description:"Open the unified agent configuration surface for runtimes, agents, tools, delivery, and broker state",category:"settings",keywords:["agent config","runtimes","providers","mcp","tools"]},{commandId:"nav:pair",title:"Pair Device",description:"Open the device pairing flow to connect a mobile device",category:"settings",keywords:["pair","qr","device","phone","mobile"]},{commandId:"scout:reload",title:"Reload Agents",description:"Refresh the agent list and message state from the broker",category:"workspace",keywords:["reload","refresh","sync"]},{commandId:"scout:open:*",title:"Open Agent",description:"Open the agent's view (runtime, sessions, inspector) for one specific agent.",category:"navigation",keywords:["open","agent","view","inspect"],params:[{name:"agentId",description:"The agent identifier to open",type:"string"}]},{commandId:"scout:message:*",title:"Message Agent",description:"Open the DM conversation for one specific agent to message them. One agent maps to a DM; group work belongs in an explicit channel and broadcasts belong in the shared channel.",category:"workspace",keywords:["message","chat","conversation","dm","tell","ask","reply"],params:[{name:"agentId",description:"The agent identifier to message",type:"string"}]}];function jn(t={}){const{initialTheme:o="dark"}=t,s=ao();return{id:"openscout",name:"Scout",description:"All your agents, one message away. Scout is a control plane for managing coding agents: Send posts into a Chat, direct agent messages create or steer Runs, and shared work stays in explicit channels.",mode:"panel",icon:n.createElement("svg",{width:14,height:14,viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0},n.createElement("polygon",{points:"10,4.3 14.8,7.1 14.8,12.9 10,15.7 5.2,12.9 5.2,7.1",strokeWidth:1.9}),n.createElement("polygon",{points:"10,7 12.4,8.4 12.4,10.6 10,12 7.6,10.6 7.6,8.4",strokeWidth:1.32,opacity:.74})),Provider:({children:r})=>n.createElement(ns,{defaultTheme:o,defaultTemplate:s,storageKey:co,children:n.createElement(go,{initialTheme:o,children:r})}),leftPanel:{title:"Navigation"},rightPanel:{title:"Context"},slots:{Content:us,LeftPanel:on,Inspector:Js,Takeover:un,Terminal:sn},intents:kn,hooks:{useCommands:ss,useStatus:os,useNavCenter:ts,useNavActions:es,useLayoutMode:Zo,useTakeover:Qo}}}jn();export{jn as createScoutApp};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as q,a as ie,s as Pe,S as Oe}from"./scope-views-BOOmgmwx.js";import{b as il,i as ll,c as cl,d as dl}from"./scope-views-BOOmgmwx.js";import{ab as de,ac as Me,$ as $e,a0 as Fe,a1 as Be,a2 as We,a3 as pe,a4 as ze,a5 as Ge,a6 as He,ad as Ke,a7 as Ue,ae as Ve,P as qe,T as Ye,R as Ze,u as Je}from"./router-C65cZYPn.js";import{af as ul,ag as ml,ah as fl,ai as hl,aj as gl,ak as _l,al as Sl,am as bl,an as vl,ao as xl,U as wl,ap as Ll,aq as Nl,ar as yl,Q as jl}from"./router-C65cZYPn.js";import{r as p,j as r,D as le,m as Qe}from"./index-o4FKpU7Z.js";import{k as Cl,w as El,p as Al,E as Il,t as Tl,G as Rl,A as Dl,q as Pl,z as Ol,l as Ml,H as $l,I as Fl}from"./index-o4FKpU7Z.js";import{u as Se}from"./Provider-DKZWuzSR.js";import{S as Xe}from"./ScoutSurface-x_QbcRyk.js";import{resolveContentPane as et}from"./resolve-panes-BDi9Qx4R.js";import{i as tt}from"./model-IGCUEsMy.js";import{t as st}from"./bash-format-BRV5C6Gv.js";import{t as be}from"./time-Dhsh_2EG.js";import{i as ot,l as ve,j as nt,k as rt,m as at,e as it,g as lt,n as ct,r as dt,A as K,D as pt,h as ut}from"./agent-lanes-model-VYQ5a68i.js";import{S as mt}from"./SlidePanel-CuTeirnk.js";import{H as ft}from"./HarnessMark-MztYnrGK.js";import{o as ht,f as gt,b as _t}from"./lane-observe-BA3g9aVd.js";import{S as xe}from"./SessionObserve-DaUrJCMq.js";import{LaneTraceEventFocus as St}from"./LaneTraceEventFocus-Bl9L0EYb.js";import{b as bt}from"./agent-lane-detail-BNNm6FNu.js";import{r as vt,u as xt}from"./AgentLanesView-Ct-Gz5WD.js";import{u as wt}from"./observe-3-jn4SXb.js";import{f as Lt}from"./terminal-sessions-AmSgHklm.js";import{o as Nt,i as yt}from"./surface-activity-B1rgWB1i.js";import{AgentFloorView as jt}from"./AgentFloorView-h9KDJdw0.js";import{i as kt,c as Ct,n as ue}from"./keyboard-nav-Chf51dns.js";import{a as Et}from"./api-h5zurxmi.js";import{RawSessionsTable as At}from"./RawSessionsTable-Zkl4YDvz.js";import{SessionRefScreen as It}from"./SessionRefScreen-DLZNFZFK.js";import{TailView as Tt}from"./TailView-CufWcrvf.js";import{u as we}from"./provider-BvAxRQfE.js";import{c as Rt,b as Dt,u as Pt,r as Ot}from"./hooks-DBIezYS2.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./sse-CL6gctHY.js";import"./index-BWHgHrtv.js";import"./colors-BtO5_zlx.js";import"./scoutbot-BTIErYHo.js";import"./ContextMenu-CxkmFQcN.js";import"./DocumentFocusViewer-DRKjNG9s.js";import"./createLucideIcon-Bt67PWH-.js";import"./TextDocumentSurface-Bc-kHPgG.js";/* empty css */import"./file-text-iF0hyVyU.js";import"./x-ynOfVadO.js";import"./chevron-right-C10o7t_X.js";import"./code-xml-CLn3TDWF.js";import"./arrow-left-BOht-YQu.js";import"./scout-voice-B7kXlkcl.js";import"./fx-z37u1o2z.js";import"./MessageComposerSuggestions-Dfc3PH2y.js";import"./NewChatComposer-S08F6_La.js";import"./runtime-picker-eDEvx2Mz.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-4LDsy4Ke.js";import"./index-BMwKgdz_.js";import"./conversation-model-CHwHZNw-.js";import"./NewChatOrigin-BEz6jyqf.js";import"./model-Co0zkMIc.js";import"./text-DsBWV_4k.js";import"./chevron-down-NAhBUkFd.js";import"./search-7_n7CxWl.js";import"./chunk-HRAB3GC3-DF8R9rPv.js";import"./content-BRY2vo1_.js";import"./ActivityScreen-aewI4Ul1.js";import"./clipboard-e3fSpeo7.js";import"./mentions-CvDaviLJ.js";import"./AgentDetailCard-Biq8b2gv.js";import"./AgentLiveActions-0iy8QZ1T.js";import"./terminal-takeover-7AvNpnkC.js";import"./openContent-C6XO6kr5.js";import"./eye-B3lBIwJZ.js";import"./terminal-By1Lw2i2.js";import"./EmptyState-BUvllvA6.js";/* empty css */import"./left-O-TBH7JB.js";/* empty css */import"./AgentAvatar-DMov24_o.js";import"./SpriteAvatar-DQ3PTb8L.js";import"./agent-identity-BxCsXnDp.js";import"./content-BTm0mVyD.js";import"./AgentInfoScreen-SjhK_SBh.js";/* empty css */import"./BackToPicker-BXp5E2ck.js";import"./ObservedTopologyPanel-ByW7Ar7p.js";import"./AgentsScreen-Bww6HgFs.js";/* empty css */import"./AgentsSubnav-CiIuzxnZ.js";import"./SecondaryNav-Dj30epYF.js";import"./secondaryNavConfig-CSFDCQAf.js";import"./message-square-ER1_q2pe.js";import"./scroll-text-BuneRiAD.js";import"./library-DDKSLFJ_.js";/* empty css */import"./AgentSessions-CDfSfNiE.js";import"./agents-project-model-UYiamtrU.js";import"./profile-DW80Gn5k.js";import"./context-budget-DX_fwUs3.js";import"./session-catalog-_QfQ7fhZ.js";import"./terminal-relay-CjkI5aUy.js";import"./ConversationScreen-oZSitVtX.js";import"./ConversationComposer-CWohCCmn.js";import"./message-markup-BcY1lShv.js";import"./message-visibility-kJM8XcSG.js";import"./sessionRead-CvFz2RHv.js";import"./types-B0PlfpKc.js";/* empty css */import"./ConversationHeader-BxTzXl8e.js";import"./ConversationFeedRows-IWh0JSIL.js";import"./ConversationPanels-D9UCwNkS.js";import"./use-reduced-motion-CqXpVXv-.js";import"./activity-BvGruxWG.js";import"./message-circle-BM3XgevU.js";import"./tail-display-BRcJltQa.js";import"./lane-edit-display-C_Aujldz.js";import"./tail-events-NLIWLq27.js";import"./ConversationStatus-B6pAbo2w.js";import"./AgentDefinitionsWorkspace-D4MbSMXp.js";import"./project-overview-helpers-BQTc_Ous.js";import"./FileViewerPane-BM4AD_bo.js";/* empty css */import"./agent-essentials-yb4wIJlX.js";import"./lane-tool-detail-0WhMf4Vj.js";import"./LaneToolHoverCard-CcEiQC6B.js";import"./lane-ask-display-B6iCAVcd.js";import"./ObserveTextFlow-_ApDwRCO.js";import"./SessionObserveEvidence-ClUW8jpV.js";import"./wrench-M4G7WtYB.js";import"./external-link-Dem738OJ.js";/* empty css *//* empty css */import"./right-CYIs2tEe.js";import"./openAgent-Dbv5wfuL.js";import"./TmuxPeek-DLyDkq_D.js";import"./refresh-cw-B5To7b6B.js";import"./ProjectsRail-CWOkZjsY.js";import"./AddProjectForm-Czb5uwou.js";import"./projects-inbox-DCeD3FfV.js";import"./ProjectsScreen-Dse0Q6p6.js";import"./ProjectsInbox-DoPZ17FC.js";import"./api-BkjHJfgJ.js";import"./ui-LM8pS8qE.js";import"./cache-Dr0why2k.js";import"./arrow-up-right-hoR8_oUz.js";/* empty css */import"./ProjectAgentProfile-BEfYOaxc.js";import"./ProjectAgentProfileBar-B1VpwzGD.js";import"./ProjectsThreadAside-DMnfyPLE.js";import"./content-B-SUUhXj.js";import"./BriefingDetailScreen-C83o2YfN.js";/* empty css */import"./BriefingsScreen-BTsvr5fv.js";import"./content-BTqvyb5E.js";import"./BrokerScreen-DplF8d_X.js";import"./status-tone-BM_zuRy1.js";import"./broker-display-pp33bLsu.js";import"./BrokerMetadataPanel-jg7odHQp.js";import"./DispatchAftermath-DowTb7uO.js";import"./follow-route-BvcGtBIL.js";import"./ShikiPane-Dkwyx--r.js";import"./sparkles-Bth2iK7t.js";import"./plus-C-2gTcPK.js";import"./send-horizontal-DP16OOIW.js";import"./check--esHw52j.js";import"./copy-Dty8ZYsM.js";import"./radio-v7UAMZGh.js";import"./bot-BUK7dOPS.js";import"./left-BSyj8PuJ.js";import"./conversation-prefs-DNre-Lcx.js";import"./use-conversation-list-BCzY032j.js";import"./use-fleet-active-asks-CJ6-oj5k.js";import"./RailRow-DIGd3MMM.js";/* empty css */import"./content-wcgPMGVf.js";import"./MessagesScreen-TgSL5KMc.js";import"./right-oPrcx9MX.js";import"./CodeScreen-CJ2RgB32.js";import"./CodeDiffPane-86odpBSt.js";import"./usePierreRuntime-B4hbNWTz.js";/* empty css */import"./CodeProjectPicker-8svr_S_A.js";/* empty css */import"./content-DBb7ppd5.js";import"./FollowScreen-DG0osbUp.js";import"./content-BrR6deGh.js";import"./HarnessesScreen-BWqirBjK.js";import"./useContentSecondaryNav-DOr5yHbT.js";import"./OpsSubnav-CZs_OL2N.js";/* empty css */import"./left-DLoDKxT5.js";import"./operator-attention-BwSPeheT.js";import"./content-CudIBsiP.js";import"./HomeHero-BPBArHXa.js";import"./home-moving-signal-C8dTXieA.js";import"./home-live-action-BkqGLVRY.js";import"./right-BDf_yTv6.js";import"./left-DDnxNUxd.js";import"./mesh-view-store-Du7VqIT_.js";import"./mesh-buckets-CfAukILK.js";import"./FleetSearch-CYeWn85V.js";import"./content-DEw_kGyK.js";import"./MeshScreen-Bs3soujg.js";import"./MeshCanvas-ZjIuMiRo.js";import"./Canvas-BePL08RR.js";import"./useAgentHoverCard-RsLUYyeh.js";import"./local-agents-DIi2EacM.js";/* empty css */import"./right-sSvBUK-j.js";import"./left-BC7p5QbT.js";import"./mesh-ops-JZwGuAPn.js";import"./use-mesh-ops-items-D5L-CKe_.js";import"./content-Cgj5AWqT.js";import"./use-scout-dev-flags-BohC8seq.js";import"./right-o3LHMiKa.js";import"./left-rvUOB14X.js";import"./left-agents-Dk9Y89lb.js";import"./left-default-B3JBRQNJ.js";import"./left-lanes-30Oe_3RM.js";import"./lane-roster-store-BiIVlYmG.js";import"./left-mission-DEl4-7xu.js";import"./mission-control-store-C6w5iVfg.js";import"./MissionLeftAgentRow-DokImu4Y.js";import"./page-status-0LPfBC8S.js";import"./left-plan-B4qdm4Gn.js";import"./content-BjDaXmSD.js";import"./OpsScreen-CCR3U_9P.js";/* empty css */import"./MissionControlView-D629w2A8.js";/* empty css */import"./MissionContextRail-CjGAEGu8.js";import"./agent-lane-preview-C33Dwpn7.js";import"./mission-wall-CocIM1cF.js";import"./mission-control-model-C0fByIjm.js";import"./MissionFocusOverlay-Bubrr8Gc.js";import"./MissionLogPane-Cs0LuIkn.js";import"./OpsAgentsView-DiFuHcJs.js";/* empty css */import"./DataTable-CGw5CECG.js";/* empty css */import"./sliders-horizontal-D2Z8gz6J.js";import"./PlanView-C54eAzig.js";/* empty css */import"./AtopView-h_aFoNkP.js";/* empty css *//* empty css */import"./AgentLanesPreflight-M7iDXdP2.js";import"./AgentLaneChrome-D1xNNf7A.js";import"./AgentLaneCard-C4DMQR-c.js";/* empty css */import"./AgentLaneSummaryResize-C9loK-st.js";import"./agent-lane-card-model-q4cwzLX4.js";import"./AgentLaneDetailSheet-DnAKe4e3.js";import"./LaneTraceDetailSheet-B4i1Ut4R.js";import"./content-CkhG__-v.js";import"./RepoDiffPageScreen-BelnvgnP.js";import"./RepoDiffViewerLazy-BPg_JkYW.js";import"./ReposScreen-IINK-CFn.js";/* empty css */import"./selection-bridge-SlGsgHw2.js";import"./right-BvoGOUKH.js";import"./content-vi9FbmV9.js";import"./KnowledgeSearchScreen-BP8tD-Bh.js";/* empty css */import"./clock-of01sAB6.js";import"./KnowledgeSearchInspector-BOIhFWd2.js";import"./content-C5yvBEMy.js";import"./SessionsScreen-D-hN1n4k.js";import"./FlightObserveScreen-DYJJ3Z2B.js";/* empty css */import"./right-C3JdEfYQ.js";import"./content-DIy0DCzK.js";import"./SettingsScreen-Bc3Xtv5V.js";import"./StatusPill-BJ1ierIR.js";import"./AgentConfigurationScreen-BjG6ECjl.js";import"./server-pYOMFjrT.js";import"./SettingsDrawer-BFsnww-k.js";import"./VoicePermissionsPanel-CD903y9K.js";import"./left-BCSGqccQ.js";import"./usePersistentState-D3M4m2Ou.js";import"./session-table-CYN8e4s3.js";import"./Terminal-D_OmdFmr.js";/* empty css */import"./HerdrSession-6sFln7WX.js";import"./TerminalRelay-rvUzI9Ek.js";import"./right-DBYGtoRv.js";import"./content-THl9hRAo.js";import"./WorkDetailScreen-D51oI0dH.js";import"./WorkFilesViewer-BDMNbxE4.js";import"./right-CyRCv6Up.js";import"./RealtimeVoiceScreen-B_PMJxY_.js";import"./ScoutbotRealtimeVoiceCall-Br4bYVAx.js";function Mt(e){return e?`${e[0]?.toUpperCase()}${e.slice(1)}`:"local"}function $t(e){const t=st(e.trim()),s=t.replace(/\/+$/u,"").split(/[\\/]/u).filter(Boolean);return s.length===0?t:s.slice(-2).join("/")}function Ft(e){const t=e?.trim();return t?t.replace(/\.jsonl$/u,"").slice(0,8):"—"}function F(e,t=Date.now()){const{agent:s,source:o,observe:n,lastActiveAt:l}=e,c=s.harness?.trim()||o,d=ot(n),i=$t(s.cwd||s.project||s.projectRoot||"—"),a=d?`${c} · live`:`${c} · ${be(l??t)}`;return{source:Mt(c),sessionRef:Ft(s.harnessSessionId),path:i,statusLine:a,live:d}}const Bt={think:"Thought",tool:"Tool",ask:"Request",message:"Message",note:"Note",system:"System",boot:"Boot"};function Wt({lane:e,event:t,nowMs:s=Date.now()}){const{agent:o,observe:n,source:l,lastActiveAt:c}=e,d=p.useMemo(()=>bt(e),[e]),i=F(e,s),a=t??n?.events?.at(-1),f=a?Bt[a.kind]??a.kind:null,g=n?.metadata?.session?.sessionStart,_=a?ht(a,g):null,h=_!=null?gt(_,c):void 0,m=_!=null?_t(_):void 0,u=a?.kind==="tool"||a?.kind==="ask"?a:void 0;return r.jsxs("div",{className:"scope-lane-detail",children:[r.jsxs("header",{className:"scope-lane-detail__head",children:[r.jsxs("div",{className:"scope-lane-detail__copy",children:[r.jsx("span",{className:"scope-lane-detail__kicker",children:"Lane trace"}),r.jsxs("h2",{className:"scope-lane-detail__title",children:[i.source,r.jsxs("span",{className:"scope-lane-detail__ref",children:[" · ",i.sessionRef]})]}),r.jsxs("div",{className:"scope-lane-detail__sub",children:[i.path,f?` · ${f}`:"",c?` · ${be(c)}`:""]})]}),r.jsx(ft,{harness:o.harness??d.harness,size:18,className:"scope-lane-detail__hmark"})]}),r.jsxs("dl",{className:"scope-lane-detail__meta","aria-label":"Session stats",children:[r.jsxs("div",{className:"scope-lane-detail__stat",children:[r.jsx("dt",{children:"events"}),r.jsx("dd",{children:d.events})]}),r.jsxs("div",{className:"scope-lane-detail__stat",children:[r.jsx("dt",{children:"tools"}),r.jsx("dd",{children:d.tools})]}),r.jsxs("div",{className:"scope-lane-detail__stat",children:[r.jsx("dt",{children:"files"}),r.jsx("dd",{children:d.files})]}),r.jsxs("div",{className:"scope-lane-detail__stat",children:[r.jsx("dt",{children:"model"}),r.jsx("dd",{children:d.model??"—"})]}),r.jsxs("div",{className:"scope-lane-detail__stat",children:[r.jsx("dt",{children:"branch"}),r.jsx("dd",{children:d.branch??"—"})]}),r.jsxs("div",{className:"scope-lane-detail__stat",children:[r.jsx("dt",{children:"status"}),r.jsx("dd",{children:i.statusLine})]})]}),r.jsx("div",{className:"scope-lane-detail__trace",children:r.jsx(xe,{data:n??void 0,agentId:l==="scout"?o.id:void 0,sessionId:o.harnessSessionId??d.sessionId,showRail:!1,variant:"default",surface:"scope",initialCursorT:a?.t,focusEventId:a?.id,inlineFocusEventId:u?.id,inlineFocusContent:u?r.jsx(St,{event:u,wallLabel:h,wallTitle:m,variant:"inline"}):void 0})})]})}function Le({target:e,onClose:t}){const{lane:s,event:o}=e,n=F(s);return r.jsxs(mt,{open:!0,onClose:t,side:"right",owner:"scope.lane-trace",layer:"elevated",resizable:!0,defaultSize:980,minSize:560,maxSize:1280,scrollLock:!0,ariaLabel:`${n.source} ${n.sessionRef} trace`,className:"scope-lane-trace-sheet","data-scope-presentation":!0,children:[r.jsx("div",{className:"scope-lane-trace-sheet__toolbar",children:r.jsx("button",{type:"button",className:"scope-lane-trace-sheet__close",onClick:t,"aria-label":"Close",children:"×"})}),r.jsx(Wt,{lane:s,event:o})]})}function zt(e,t){const[s,o]=p.useState(()=>de(e));p.useEffect(()=>{o(de(e))},[e]);const n=p.useCallback(u=>{Me(u),o(u)},[]),l=p.useMemo(()=>vt({autoLanes:t,deck:s,defaultWidthTier:e}),[t,s,e]),c=p.useCallback((u,S="pinned_left")=>{n($e(s,{laneId:u.id,title:ve(u.agent,u.source),zone:S,width:s.laneWidths[u.id]}))},[s,n]),d=p.useCallback(u=>{n(Fe(s,u))},[s,n]),i=p.useCallback((u,S)=>{n(Be(s,u,S))},[s,n]),a=p.useCallback(u=>{n(We(s,u))},[s,n]),f=p.useCallback((u,S)=>{n(pe(s,{kind:"harness",title:S??`${u} sessions`,harness:u,zone:"pinned_left",width:s.defaultLaneWidth}))},[s,n]),g=p.useCallback(()=>{n(pe(s,{kind:"attention",title:"Needs attention",zone:"pinned_left",width:"sm"}))},[s,n]),_=p.useCallback(()=>{n(ze(s))},[s,n]),h=p.useCallback(u=>Ge(s,u),[s]),m=p.useCallback(u=>He(s,u),[s]);return{deck:s,layout:l,pinLane:c,unpinLane:d,setLaneWidth:i,setDefaultLaneWidth:a,addHarnessLane:f,addAttentionLane:g,clearPins:_,isPinned:h,pinnedZone:m}}const Ne=le("lanes-horizon");function Gt(){try{const e=sessionStorage.getItem(Ne);if(e&&K.some(t=>t.key===e))return e}catch{}return pt}function ye({scoutAgents:e,defaultWidthTier:t="md",harnessFilter:s,projectFilter:o,horizonOverride:n}){const[l,c]=p.useState(Date.now()),[d,i]=p.useState(Gt),a=n??d,[f,g]=p.useState([]),[_,h]=p.useState(()=>new Set),m=ut(a),u=nt(a),S=rt(a),{discovery:b,events:v,loadState:k}=xt({includeTranscriptReplay:!0,discoveryIntervalMs:5e3,recentLimit:m,pauseWhenHidden:!0});p.useEffect(()=>{const x=setInterval(()=>c(Date.now()),1e4);return()=>clearInterval(x)},[]),p.useEffect(()=>{let x=!1;const N=async()=>{if(yt())try{const ee=await Lt({includeDiscovered:!1});x||g(ee)}catch{x||g([])}};N();const I=setInterval(()=>{N()},1e4),X=Nt(()=>{N()});return()=>{x=!0,clearInterval(I),X()}},[]),p.useEffect(()=>{try{sessionStorage.setItem(Ne,d)}catch{}},[d]);const y=p.useRef(at()),T=p.useMemo(()=>e.filter(x=>it(x,l,a)),[e,l,a]),E=wt(T,{pauseWhenHidden:!0}),R=k.discovery==="loading"||k.recent==="loading";p.useEffect(()=>{if(_.size===0)return;const x=setTimeout(()=>h(new Set),900);return()=>clearTimeout(x)},[_]);const{lanes:L,issues:A,freshLaneIds:D}=p.useMemo(()=>{const x=lt({transcripts:b?.transcripts??[],tailEvents:v,processes:b?.processes??[],scoutAgents:e,terminalSessions:f,observeCache:E,now:l,workingOnly:!0,horizon:a}),N=ct(x.lanes,y.current),I=[...dt(b),...x.issues];return{lanes:N.lanes,issues:I,freshLaneIds:N.newLaneIds}},[b,v,e,f,E,l,a]);p.useEffect(()=>{if(A.length!==0)for(const x of A)console.warn(`[agent-lanes] ${x.message}`,x)},[A]),p.useEffect(()=>{D.length!==0&&h(x=>{const N=new Set(x);for(const I of D)N.add(I);return N})},[D.join("\0")]);const O=p.useMemo(()=>L.filter(x=>Kt(x,{harnessFilter:s,projectFilter:o})),[L,s,o]),{deck:W,layout:Z,setLaneWidth:J,setDefaultLaneWidth:Q}=zt(t,O);return{profileId:Ke,now:l,horizon:a,setHorizon:i,horizonLabel:S,traceWindowMs:u,lanes:O,issues:A,newLaneIds:_,tailLoading:R,deck:W,layout:Z,setLaneWidth:J,setDefaultLaneWidth:Q,activeFilterLabel:Ut({harnessFilter:s,projectFilter:o})}}function me(e){const t=e?.trim().toLowerCase();return t||null}function se(e){return e.trim().toLowerCase().replace(/['"]/gu,"").replace(/[^a-z0-9]+/gu,"-").replace(/^-+|-+$/gu,"")}function Ht(e){return e.trim().replace(/\/+$/u,"").split(/[\\/]/u).filter(Boolean).pop()?.trim()||null}function fe(e,t){if(!t)return!0;const s=se(t);return e.some(o=>{const n=o?.trim();if(!n)return!1;const l=n.toLowerCase(),c=Ht(n);return l===t||se(n)===s||!!(c&&(c.toLowerCase()===t||se(c)===s))})}function Kt(e,t){const s=me(t.harnessFilter),o=me(t.projectFilter),{agent:n,facts:l,source:c}=e;return fe([n.harness,n.definitionId,l?.attribution,c],s)&&fe([n.project,n.projectRoot,n.cwd,l?.cwd],o)}function Ut(e){return[e.harnessFilter?.trim()?`harness ${e.harnessFilter.trim()}`:"",e.projectFilter?.trim()?`project ${e.projectFilter.trim()}`:""].filter(Boolean).join(" · ")}function Vt(e){return e?`${e[0]?.toUpperCase()}${e.slice(1)}`:"local"}function qt(e){const t=new Map;for(const s of e){const o=s.agent.harness?.trim()||s.source,n=t.get(o)??[];n.push(s),t.set(o,n)}return[...t.entries()].map(([s,o])=>{const n=[...o].sort((c,d)=>(d.lastActiveAt??0)-(c.lastActiveAt??0)),l=n.filter(c=>F(c).live).length;return{harness:s,label:Vt(s),lanes:n,liveCount:l}}).sort((s,o)=>o.lanes.length-s.lanes.length)}function Yt({lane:e,nowMs:t,onOpen:s}){const o=F(e,t),n=e.observe?.events?.length??0,l=c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),s(e))};return r.jsxs("div",{className:`scope-dir__row${o.live?" is-live":""}`,role:"button",tabIndex:0,onClick:()=>s(e),onKeyDown:l,"aria-label":`${o.source} ${o.sessionRef}`,children:[r.jsx("span",{className:`scope-dir__dot${o.live?" is-live":""}`,"aria-hidden":!0}),r.jsx("span",{className:"scope-dir__ref",children:o.sessionRef}),r.jsx("span",{className:"scope-dir__path",title:e.agent.cwd??e.agent.project??void 0,children:o.path}),r.jsxs("span",{className:"scope-dir__events",children:[n,r.jsx("span",{className:"scope-dir__unit",children:"ev"})]}),r.jsx("span",{className:"scope-dir__status",children:o.statusLine})]})}function Zt({navigate:e,agents:t}){const s=q(),{now:o,horizonLabel:n,lanes:l,tailLoading:c}=ye({scoutAgents:t,defaultWidthTier:"md"}),d=p.useMemo(()=>qt(l),[l]),[i,a]=p.useState(null),f=p.useCallback(h=>{const m=h.observe?.events?.at(-1);m&&a({lane:h,event:m})},[]),g=l.length,_=d.reduce((h,m)=>h+m.liveCount,0);return r.jsxs("div",{className:"scope-dir","data-scope-presentation":!0,...s,children:[r.jsx("header",{className:"scope-dir__bar",children:r.jsxs("div",{className:"scope-dir__summary",children:[r.jsxs("span",{className:"scope-dir__count",children:[g," instance",g===1?"":"s"]}),_>0?r.jsxs("span",{className:"scope-dir__live",children:[_," live"]}):null,r.jsxs("span",{className:"scope-dir__window",children:["window ",n]})]})}),d.length===0?r.jsx("div",{className:"scope-dir__empty",children:c?"Discovering sessions…":"No sessions discovered for this workspace."}):r.jsx("div",{className:"scope-dir__body",children:d.map(h=>r.jsxs("section",{className:"scope-dir__group",children:[r.jsxs("header",{className:"scope-dir__group-head",children:[r.jsx("span",{className:"scope-dir__group-name",children:h.label}),r.jsx("span",{className:"scope-dir__group-kind",children:"runtime"}),r.jsxs("span",{className:"scope-dir__group-counts",children:[h.lanes.length," ",h.lanes.length===1?"instance":"instances",h.liveCount?` · ${h.liveCount} live`:""]})]}),r.jsx("div",{className:"scope-dir__list",role:"list",children:h.lanes.map(m=>r.jsx(Yt,{lane:m,nowMs:o,onOpen:f},m.id))})]},h.harness))}),i?r.jsx(Le,{target:i,onClose:()=>a(null)}):null]})}function Jt({laneId:e,grabbed:t,onKeyMove:s,onDragStart:o,onDragEnd:n}){const l=i=>{if(!(!i.altKey||!s)){if(i.key==="ArrowLeft"||i.key==="ArrowUp"){i.preventDefault(),i.stopPropagation(),s("before");return}(i.key==="ArrowRight"||i.key==="ArrowDown")&&(i.preventDefault(),i.stopPropagation(),s("after"))}},c=i=>{i.stopPropagation();const a=i.dataTransfer;if(!a)return;a.setData("text/plain",e),a.effectAllowed="move";const f=i.currentTarget.closest("[data-lane-id]");f instanceof HTMLElement&&(a.setDragImage(f,Math.min(48,f.clientWidth/2),18),f.classList.add("is-dragging")),o?.(e)},d=i=>{i.currentTarget.closest("[data-lane-id]")?.classList.remove("is-dragging"),n?.()};return r.jsx("span",{className:"scope-lane__drag",role:"button",tabIndex:0,draggable:!0,"aria-grabbed":t?"true":"false","aria-keyshortcuts":"Alt+ArrowLeft Alt+ArrowRight Alt+ArrowUp Alt+ArrowDown","aria-label":"Drag to reorder lane. Drop in a gutter for a new column. Alt+arrow keys also move.",title:"Drag to reorder · drop in gutters for a new column",onClick:i=>i.stopPropagation(),onKeyDown:l,onDragStart:c,onDragEnd:d,children:"⠿"})}const Qt=["sm","md","lg"],Xt={sm:"¼",md:"½",lg:"full"},es={sm:"Quarter row",md:"Half row",lg:"Full row"};function je({value:e,defaultValue:t,onChange:s,compact:o=!1,label:n="Lane width",variant:l="tier"}){const c=typeof e=="string"?e:t,d=l==="grid";return r.jsx("div",{className:`scope-lane-width${o?" is-compact":""}${d?" is-grid":""}`,role:"group","aria-label":n,onClick:i=>i.stopPropagation(),onKeyDown:i=>i.stopPropagation(),children:Qt.map(i=>r.jsx("button",{type:"button",className:`scope-lane-width__btn${c===i?" is-on":""}`,"aria-pressed":c===i,title:d?es[i]:`${i.toUpperCase()} column width`,onClick:()=>s(i),children:d?Xt[i]:i},i))})}function ts({lane:e,layoutMode:t,compact:s,laneWidth:o,defaultLaneWidth:n,onLaneWidthChange:l,nowMs:c,traceWindowMs:d,traceWindowLabel:i,onOpenTrace:a,onTraceEventSelect:f,onDragStart:g,onDragEnd:_,onDragKeyMove:h,focusProps:m}){const{agent:u,observe:S,source:b}=e,v=F(e,c),k=!!(S&&S.events.length>0),y=m?.ref,T=m?{"data-cursor":m["data-cursor"],tabIndex:m.tabIndex,onFocus:m.onFocus}:void 0,E=()=>{const L=S?.events?.at(-1);a(e,L)},R=L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),E())};return r.jsxs("article",{ref:y,"data-lane-id":e.id,className:["scope-lane",v.live?"is-live":"",m?.["data-cursor"]?"is-cursor":"",s?"is-stack-compact":"",t==="grid"?"is-grid":""].filter(Boolean).join(" "),...T,children:[r.jsxs("header",{className:`scope-lane__head${s?" is-compact":""}`,role:"button",tabIndex:0,onClick:L=>{L.target instanceof HTMLElement&&L.target.closest(".scope-lane__drag")||E()},onKeyDown:R,"aria-label":`${v.source} ${v.sessionRef}`,children:[r.jsx(Jt,{laneId:e.id,onKeyMove:h,onDragStart:g,onDragEnd:_}),r.jsx("span",{className:"scope-lane__live","aria-hidden":"true"}),r.jsxs("div",{className:"scope-lane__meta",children:[r.jsxs("span",{className:"scope-lane__source",children:[v.source,r.jsxs("span",{className:"scope-lane__ref",children:[" · ",v.sessionRef]})]}),r.jsx("span",{className:"scope-lane__path",title:u.cwd??u.project??void 0,children:v.path}),s?null:r.jsx("span",{className:"scope-lane__status",children:v.statusLine}),l&&(t==="grid"||!s)?r.jsx(je,{value:o,defaultValue:n,onChange:l,compact:!0,label:`${v.sessionRef} width`,variant:t==="grid"?"grid":"tier"}):null]})]}),r.jsx("section",{className:"scope-lane__trace","aria-label":`${ve(u,b)} trace · ${i}`,children:k?r.jsx(xe,{data:S??void 0,agentId:b==="scout"?u.id:void 0,sessionId:u.harnessSessionId,showRail:!1,variant:"lane",surface:"scope",nowMs:c,traceWindowMs:d,traceWindowLabel:i,onLaneEventSelect:L=>f(e,L)}):r.jsx("div",{className:"scope-lane__empty",children:"waiting for events"})})]})}function ss({space:e,layoutMode:t,widthPx:s,gridSpan:o,children:n}){const l=t==="swim"?{"--scope-lane-width":`${s}px`}:t==="grid"&&o?{gridColumn:`span ${o}`}:void 0;return r.jsx("div",{className:`scope-lane-space${t==="grid"?" is-grid":""}`,style:l,"data-split":e.ids.length,"data-orient":e.orient,"data-grid-span":t==="grid"?o:void 0,children:r.jsx("div",{className:"scope-lane-space__lanes",children:n})})}const os=[{key:"swim",label:"swim"},{key:"grid",label:"grid"},{key:"floor",label:"floor"}];function ns({liveCount:e,horizon:t,horizonLabel:s,layoutMode:o,laneWidth:n,onHorizonChange:l,onLayoutChange:c,onLaneWidthChange:d}){const i=o==="floor";return r.jsxs("header",{className:"scope-lanes-bar",children:[r.jsxs("div",{className:"scope-lanes-bar__summary",children:[r.jsxs("span",{className:"scope-lanes-bar__count",children:[e," lane",e===1?"":"s"]}),r.jsx("span",{className:"scope-lanes-bar__window",children:i?"past 30m · lanes 4h":`window ${s}`})]}),r.jsxs("div",{className:"scope-lanes-bar__controls",children:[r.jsx("div",{className:"scope-lanes-bar__layouts",role:"group","aria-label":"Lane layout",children:os.map(a=>r.jsx("button",{type:"button",className:`scope-lanes-bar__layout${o===a.key?" is-on":""}`,"aria-pressed":o===a.key,onClick:()=>c(a.key),children:a.label},a.key))}),i?null:r.jsxs(r.Fragment,{children:[r.jsx(je,{value:n,defaultValue:n,onChange:d,label:"Default column width",variant:o==="grid"?"grid":"tier"}),r.jsx("div",{className:"scope-lanes-bar__horizons",role:"group","aria-label":"Activity window",children:K.map(a=>r.jsx("button",{type:"button",className:`scope-lanes-bar__horizon${t===a.key?" is-on":""}`,"aria-pressed":t===a.key,onClick:()=>l(a.key),children:a.label},a.key))})]})]})]})}const U=.22,ce=.46,$=14,V=12,oe={mode:null,before:!0,slotIndex:-1,stackBand:0,targetAgentId:null};function G(e,t){return[...t.querySelectorAll(".scope-lane-space")].indexOf(e)}function rs(e){return[...e.querySelectorAll("[data-lane-id]")].map(t=>t.getAttribute("data-lane-id")).filter(t=>!!t)}function z(e){return e?.querySelector("[data-lane-id]")??null}function ke(e,t){const s=e.filter(n=>{const l=n.getBoundingClientRect();return t>=l.top-$&&t<=l.bottom+$});if(!s.length)return[];const o=s[0].getBoundingClientRect().top;return e.filter(n=>Math.abs(n.getBoundingClientRect().top-o)<=$)}function C(e){return{before:!1,stackBand:0,targetAgentId:null,label:"",previewColumn:!1,col:null,...e}}function as(e,t,s){const o=[...e.querySelectorAll(".scope-lane-space")];if(!o.length)return null;const n=ke(o,s);if(!n.length)return null;const l=n[0].getBoundingClientRect().top,c=Math.max(...n.map(f=>f.getBoundingClientRect().bottom));if(s<l-$||s>c+$)return null;const d=n[0].getBoundingClientRect(),i=G(n[0],e),a=Math.max(V*3,d.width*U);if(t<=d.left+a)return C({mode:"reorder",before:!0,slotIndex:i,slot:n[0],col:z(n[0]),label:"new column",previewColumn:!0});for(let f=0;f<n.length;f+=1){const g=n[f],_=g.getBoundingClientRect(),h=G(g,e),m=n[f+1],u=Math.max(V*3,_.width*U);if(m){const S=m.getBoundingClientRect(),b=_.right-u*.4,v=S.left+u*.4;if(t>=b&&t<=v){const k=(_.right+S.left)/2;if(t<k)return C({mode:"reorder",before:!1,slotIndex:h,slot:g,col:z(g),label:"new column",previewColumn:!0});const y=G(m,e);return C({mode:"reorder",before:!0,slotIndex:y,slot:m,col:z(m),label:"new column",previewColumn:!0})}continue}if(t>=_.right-u)return C({mode:"reorder",before:!1,slotIndex:h,slot:g,col:z(g),label:"new column",previewColumn:!0})}return null}function is(e,t,s,o,n,l){const c=s.closest(".scope-lane-space");if(!c)return null;const d=s.getBoundingClientRect(),i=c.getBoundingClientRect(),a=G(c,o),f=rs(c),g=(t-d.top)/d.height,_=(e-d.left)/d.width,h=(e-i.left)/i.width;if(g<ce){if(h<U)return C({mode:"reorder",before:!0,slotIndex:a,slot:c,col:s,label:"new column",previewColumn:!0});if(h>1-U)return C({mode:"reorder",before:!1,slotIndex:a,slot:c,col:s,label:"new column",previewColumn:!0});const S=_<.5;return C({mode:"reorder",before:S,slotIndex:a,slot:c,col:s,label:"new column",previewColumn:!0})}const m=c.dataset.orient||"row";if(l<=1){const S=_<.5;return C({mode:"reorder",before:S,slotIndex:a,slot:c,col:s,label:"new column",previewColumn:!0})}if(m==="column"&&f.length>=l&&!f.includes(n)){const S=_<.5;return C({mode:"reorder",before:S,slotIndex:a,slot:c,col:s,label:"new column",previewColumn:!0})}const u=ls(c,t);return C({mode:"stack",stackBand:u.band,targetAgentId:s.getAttribute("data-lane-id"),slotIndex:a,slot:c,col:s,label:u.label,stackPreview:u.preview})}function H(e){const t=e.top+e.height*ce;return{top:t,left:e.left,width:e.width,height:Math.max(24,e.bottom-t)}}function he(e,t){return t<=1?e>=1:e>=t}function ls(e,t){const s=e.getBoundingClientRect(),o=[...e.querySelectorAll("[data-lane-id]")];if(!o.length)return{band:0,label:"stack",preview:H(s)};if(o.length===1){const d=o[0].getBoundingClientRect(),i=d.top+d.height*ce,a=d.top+d.height*.5,f=t<a?0:1,g=f===0?{top:i,left:s.left,width:s.width,height:Math.max(18,a-i)}:H(s);return{band:f,label:f===0?"stack above":"stack below",preview:g}}let n=o.length;for(let d=0;d<o.length;d+=1){const i=o[d].getBoundingClientRect();if(t<i.top+i.height/2){n=d;break}}let l;if(he(n,o.length))l=H(s);else if(n===0){const d=o[0].getBoundingClientRect();l={top:d.top,left:s.left,width:s.width,height:Math.max(18,d.height*.5)}}else{const d=o[n-1].getBoundingClientRect(),i=o[n].getBoundingClientRect();l={top:(d.bottom+i.top)/2-10,left:s.left,width:s.width,height:20}}const c=n===0?"stack top":he(n,o.length)?"stack bottom":"stack between";return{band:n,label:c,preview:l}}function cs(e,t,s,o,n){const l=document.elementFromPoint(e,t);if(l&&s.contains(l)){const c=l.closest("[data-lane-id]"),d=c?.getAttribute("data-lane-id");if(c&&d&&d!==o&&!c.classList.contains("is-dragging"))return is(e,t,c,s,o,n)}return as(s,e,t)}function ds(e){return e.querySelector(".scope-lane-space")?.getBoundingClientRect().width||360}function ps(e){return[e.mode,e.slotIndex,e.before,e.stackBand,e.targetAgentId,e.label,e.previewColumn,e.col?.getAttribute("data-lane-id")].join("|")}function us(e,t,s,o){const n=t.getBoundingClientRect(),l=s.slot.getBoundingClientRect();if(s.mode==="stack"){const g=s.stackPreview??H(l),_=s.label==="stack below"||s.label==="stack bottom";e.hidden=!1,e.className=`scope-lane-drop is-band${_?" is-bottom-stack":""}`,e.dataset.mode="stack",e.dataset.label=s.label||"",e.style.transform=`translate(${g.left-n.left+t.scrollLeft}px, ${g.top-n.top+t.scrollTop}px)`,e.style.width=`${g.width}px`,e.style.height=`${g.height}px`;return}if(s.previewColumn){const g=ds(t),_=[...t.querySelectorAll(".scope-lane-space")],h=ke(_,l.top+l.height/2),m=(h.length?h:[s.slot]).map(v=>v.getBoundingClientRect()),u=Math.max(...m.map(v=>v.height),l.height),S=Math.min(...m.map(v=>v.top)),b=Math.max(0,s.before?l.left-n.left+t.scrollLeft-g-V/2:l.right-n.left+t.scrollLeft+V/2);e.hidden=!1,e.className="scope-lane-drop is-column",e.dataset.mode="column",e.dataset.label=s.label||"",e.style.transform=`translate(${b}px, ${S-n.top+t.scrollTop}px)`,e.style.width=`${g}px`,e.style.height=`${u}px`;return}const c=s.slot.dataset.orient||"row";let d,i,a,f;c==="column"?(d=l.left-n.left+t.scrollLeft,i=(s.before?l.top:l.bottom)-n.top+t.scrollTop-2,a=l.width,f=3):(d=(s.before?l.left:l.right)-n.left+t.scrollLeft-2,i=l.top-n.top+t.scrollTop,a=3,f=l.height),e.hidden=!1,e.className="scope-lane-drop is-line",e.dataset.mode="reorder",e.dataset.label=s.label||"",e.style.transform=`translate(${d}px, ${i}px)`,e.style.width=`${a}px`,e.style.height=`${f}px`}function ne(e,t,s={}){!s.keepIndicator&&t&&(t.hidden=!0,t.className="scope-lane-drop",delete t.dataset.label,delete t.dataset.mode,t.style.transform="",t.style.width="",t.style.height=""),e&&(e.querySelectorAll(".scope-lane-space").forEach(o=>{delete o.dataset.dropZone}),e.querySelectorAll("[data-lane-id].is-drop-target").forEach(o=>{o.classList.remove("is-drop-target"),delete o.dataset.dropZone,delete o.dataset.dropLabel}))}function ms({stackMax:e,onReorder:t,onStack:s,indicatorRef:o}){const n=p.useRef(null),l=p.useRef(null),c=p.useRef(oe),d=p.useRef(""),i=p.useCallback(h=>{n.current?.closest(".scope-lanes")?.classList.toggle("is-dragging",h)},[]),a=p.useCallback(h=>{l.current=h,d.current="",c.current=oe,i(!0)},[i]),f=p.useCallback(()=>{l.current=null,d.current="",c.current=oe,ne(n.current,o.current),i(!1)},[o,i]),g=p.useCallback(h=>{const m=l.current;if(!m)return;h.preventDefault(),h.dataTransfer.dropEffect="move";const u=n.current,S=o.current;if(!u||!S)return;const b=cs(h.clientX,h.clientY,u,m,e);if(!b){d.current&&(d.current="",ne(u,S));return}const v=ps(b);if(v===d.current)return;const k=!!(d.current&&b.mode==="reorder");d.current=v,c.current={mode:b.mode,before:b.before,slotIndex:b.slotIndex,stackBand:b.stackBand??0,targetAgentId:b.targetAgentId??null},ne(u,S,{keepIndicator:k}),b.col&&(b.col.classList.add("is-drop-target"),b.col.dataset.dropZone=b.mode,b.label&&(b.col.dataset.dropLabel=b.label)),b.slot.dataset.dropZone=b.mode,us(S,u,b)},[o,e]),_=p.useCallback(h=>{h.preventDefault();const m=h.dataTransfer.getData("text/plain")||l.current,u=c.current;if(!m||u.slotIndex<0||!u.mode){f();return}u.mode==="stack"?s(m,u.slotIndex,u.stackBand):t(m,u.slotIndex,u.before),f()},[f,t,s]);return p.useEffect(()=>{const h=m=>{m.key!=="Escape"||!l.current||f()};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[f]),{scrollRef:n,onDragStart:a,onDragEnd:f,scrollDragProps:{onDragEnter:h=>{l.current&&h.preventDefault()},onDragOver:g,onDrop:_}}}const re=le("lane-spaces"),fs=2,hs=6,B=4;function gs(e){const t=Number(e);return Number.isFinite(t)?Math.min(hs,Math.max(fs,Math.round(t))):B}function Y(e){if(Array.isArray(e))return{ids:e.filter(s=>typeof s=="string"),orient:"row"};if(e&&typeof e=="object"&&Array.isArray(e.ids)){const t=e;return{ids:t.ids.filter(o=>typeof o=="string"),orient:t.orient==="column"?"column":"row"}}return{ids:[],orient:"row"}}function _s(e,t,s=B){const o=new Set(t),n=new Set,l=[];for(const c of e){const d=Y(c),i=d.ids.filter(g=>o.has(g)&&!n.has(g));if(i.forEach(g=>n.add(g)),!i.length)continue;const a=i.length===1?"row":d.orient,f=a==="column"?s:4;l.push({ids:i.slice(0,f),orient:a})}for(const c of t)n.has(c)||(l.push({ids:[c],orient:"row"}),n.add(c));return l}function ge(e,t,s=B){return t.length?_s(t,e,s):e.map(o=>({ids:[o],orient:"row"}))}function Ce(e,t){return e.map(s=>{const o=Y(s),n=o.ids.filter(l=>l!==t);return n.length?{ids:n,orient:n.length===1?"row":o.orient}:null}).filter(s=>s!==null)}function Ss(e,t,s,o){const n=Ce(e,t),l=Math.min(o?s:s+1,n.length);return n.splice(l,0,{ids:[t],orient:"row"}),n}function bs(e,t,s,o,n=B){const l=Ce(e,t),d=[...Y(l[s]??{ids:[],orient:"row"}).ids],i=Math.min(Math.max(0,o),d.length);d.splice(i,0,t);const a=d.slice(0,n);return l[s]={ids:a,orient:a.length>1?"column":"row"},l}function vs(){try{const e=sessionStorage.getItem(re);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.map(Y).filter(s=>s.ids.length>0):[]}catch{return[]}}function xs(e){try{if(!e.length){sessionStorage.removeItem(re);return}sessionStorage.setItem(re,JSON.stringify(e))}catch{}}function ws(e,t=B){const s=p.useMemo(()=>e.map(m=>m.lane.id),[e]),o=p.useMemo(()=>new Map(e.map(m=>[m.lane.id,m])),[e]),[n,l]=p.useState(()=>vs()),[c,d]=p.useState(()=>n.length>0),i=p.useMemo(()=>c?ge(s,n,t):ge(s,[],t),[s,c,t,n]);p.useEffect(()=>{c&&xs(i)},[c,i]);const a=p.useCallback(m=>{d(!0),l(m)},[]),f=p.useCallback((m,u,S)=>{a(Ss(i,m,u,S))},[a,i]),g=p.useCallback((m,u,S,b=t)=>{a(bs(i,m,u,S,b))},[a,i,t]),_=p.useMemo(()=>i.map(m=>({space:m,columns:m.ids.map(u=>o.get(u)).filter(u=>u!==void 0)})).filter(m=>m.columns.length>0),[o,i]),h=p.useMemo(()=>_.flatMap(m=>m.columns),[_]);return{spaces:i,resolvedSpaces:_,flatColumns:h,reorderLane:f,stackLane:g,stackMax:gs(t)}}function Ls({lanes:e,onOpenTrace:t,onHorizonChange:s}){const[o,n]=p.useState(-1),l=p.useRef(new Map);p.useEffect(()=>{if(o<0)return;if(o>=e.length){n(e.length-1);return}const i=e[o];if(!i)return;const a=l.current.get(i.id);a?.scrollIntoView({block:"nearest",inline:"nearest"}),a?.focus()},[o,e]);const c=p.useCallback((i,a)=>{a?l.current.set(i,a):l.current.delete(i)},[]);p.useEffect(()=>{const i=a=>{if(!document.querySelector(".scope-lanes")||kt(a.target)||Ct()||e.length===0)return;const f=Number(a.key)-1;if(!a.metaKey&&!a.ctrlKey&&!a.altKey&&f>=0&&f<K.length){a.preventDefault(),s(K[f].key);return}if(a.key==="ArrowRight"||a.key==="ArrowDown"||a.key==="j"){a.preventDefault(),n(g=>ue(g,e.length,1));return}if(a.key==="ArrowLeft"||a.key==="ArrowUp"||a.key==="k"){a.preventDefault(),n(g=>ue(g,e.length,-1));return}if(a.key==="Home"||a.key==="g"&&!a.shiftKey){a.preventDefault(),n(0);return}if(a.key==="End"||a.key==="G"){a.preventDefault(),n(e.length-1);return}if(a.key==="Enter"||a.key===" "){const g=o<0?0:o,_=e[g];if(!_)return;a.preventDefault(),n(g),t(_,_.observe?.events?.at(-1))}};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[o,e,s,t]);const d=p.useCallback((i,a)=>({"data-cursor":o===i?!0:void 0,tabIndex:o===i?0:-1,ref:f=>c(a,f),onFocus:()=>n(i)}),[o,c]);return{focusedIndex:o,getLaneFocusProps:d}}const Ee=4;function Ae(e){switch(e){case"sm":return 1;case"md":return 2;case"lg":return Ee}}function Ns(e,t){if(e==="sm"||e==="md"||e==="lg")return e;if(typeof e=="number"&&Number.isFinite(e)){const{tier:s,px:o}=Ue(e);if(s)return s;let n=t,l=Number.POSITIVE_INFINITY;for(const[c,d]of Object.entries(Ve)){const i=Math.abs(d-o);i<l&&(l=i,n=c)}return n}return t}function ys(e,t){return Ae(Ns(e,t))}function js(e,t){return e.length?Math.max(...e.map(s=>ys(s,t))):Ae(t)}const ae=le("lanes-layout");function Ie(e){return e==="swim"||e==="grid"||e==="floor"}function ks(){try{const e=sessionStorage.getItem(ae);if(Ie(e))return e}catch{}return"swim"}function _e(){if(typeof window>"u")return null;const e=new URLSearchParams(window.location.search).get("layout")?.trim().toLowerCase();return Ie(e)?e:null}function Cs(){const[e,t]=p.useState(()=>_e()??ks()),s=p.useCallback(o=>{t(o);try{sessionStorage.setItem(ae,o)}catch{}typeof window>"u"||qe({searchPatch:{layout:o==="swim"?null:o},replace:!0})},[]);return p.useEffect(()=>{const o=_e();if(o&&o!==e){t(o);try{sessionStorage.setItem(ae,o)}catch{}}},[e]),{layoutMode:e,setLayoutMode:s}}function Es({message:e}){return r.jsx("li",{className:"scope-lanes__issue",children:r.jsx("span",{className:"scope-lanes__issue-msg",children:e})})}function As({navigate:e,agents:t}){const s=q(),{layoutMode:o,setLayoutMode:n}=Cs(),l=o==="floor",{now:c,horizon:d,setHorizon:i,horizonLabel:a,traceWindowMs:f,lanes:g,layout:_,deck:h,setLaneWidth:m,setDefaultLaneWidth:u,activeFilterLabel:S,issues:b,tailLoading:v}=ye({scoutAgents:t,defaultWidthTier:"md",horizonOverride:l?"4h":void 0}),{resolvedSpaces:k,flatColumns:y,reorderLane:T,stackLane:E,stackMax:R}=ws(_.flat),L=o==="grid",[A,D]=p.useState(null),O=p.useRef(null),{scrollRef:W,onDragStart:Z,onDragEnd:J,scrollDragProps:Q}=ms({stackMax:R,onReorder:T,onStack:E,indicatorRef:O}),x=p.useCallback(w=>{W.current=w},[W]),N=p.useCallback((w,M)=>{const P=M??w.observe?.events?.at(-1);P&&D({lane:w,event:P})},[]),I=p.useMemo(()=>{const w=new Map;return y.forEach((M,P)=>w.set(M.lane.id,P)),w},[y]),{getLaneFocusProps:X}=Ls({lanes:y.map(w=>w.lane),onOpenTrace:N,onHorizonChange:i}),ee=p.useMemo(()=>v?"Loading sessions…":S?`No lanes match ${S} in the last ${a}.`:`No sessions with recent work in the last ${a}.`,[S,a,v]);return r.jsxs("div",{className:`scope-lanes${o==="grid"?" is-grid":""}`,"data-scope-presentation":!0,"data-scope-view":"lanes","data-scope-layout":o,"data-grid-cols":L?Ee:void 0,style:{"--scope-lane-stack-max":String(R)},...s,children:[r.jsx(ns,{liveCount:l?g.length:y.length,horizon:d,horizonLabel:a,layoutMode:o,laneWidth:h.defaultLaneWidth,onHorizonChange:i,onLayoutChange:n,onLaneWidthChange:u}),b.length>0?r.jsx("div",{className:"scope-lanes__issues",role:"status","aria-live":"polite",children:r.jsx("ul",{className:"scope-lanes__issues-list",children:b.map(w=>r.jsx(Es,{message:w.message},w.id))})}):null,(l?g.length:y.length)===0?r.jsx("div",{className:"scope-lanes__empty",children:ee}):l?r.jsx(jt,{lanes:g,now:c,onOpenTrace:N}):r.jsx("div",{className:"scope-lanes__canvas",role:"listbox","aria-label":"Session lanes",children:r.jsxs("div",{ref:x,className:`scope-lanes__scroll${o==="grid"?" is-grid":""}`,...Q,children:[k.map((w,M)=>{const P=w.space.orient==="column"&&w.columns.length>1,Te=Math.max(...w.columns.map(j=>j.widthPx)),Re=L?js(w.columns.map(j=>h.laneWidths[j.lane.id]??h.defaultLaneWidth),h.defaultLaneWidth):void 0;return r.jsx(ss,{space:w.space,layoutMode:o,widthPx:Te,gridSpan:Re,children:w.columns.map(j=>{const De=I.get(j.lane.id)??0;return r.jsx(ts,{lane:j.lane,layoutMode:o,compact:P,laneWidth:h.laneWidths[j.lane.id]??h.defaultLaneWidth,defaultLaneWidth:h.defaultLaneWidth,onLaneWidthChange:te=>m(j.lane.id,te),nowMs:c,traceWindowMs:f,traceWindowLabel:a,onOpenTrace:N,onTraceEventSelect:N,onDragStart:Z,onDragEnd:J,onDragKeyMove:te=>{T(j.lane.id,M,te==="before")},focusProps:X(De,j.lane.id)},j.key)})},w.space.ids.join(":"))}),r.jsx("div",{ref:O,className:"scope-lane-drop","aria-hidden":"true",hidden:!0})]})}),A?r.jsx(Le,{target:A,onClose:()=>D(null)}):null]})}const Is=1e4;function Ts({route:e,navigate:t}){const s=q(),[o,n]=p.useState(null),[l,c]=p.useState(null),d=p.useCallback(async()=>{c(null);try{n(await Et("/api/tail/discover"))}catch(f){c(f instanceof Error?f.message:String(f))}},[]);p.useEffect(()=>{d();const f=setInterval(()=>{d()},Is);return()=>clearInterval(f)},[d]);const i=o?.transcripts?.length??0,a=o?.processes?.length??0;return e.sessionId?r.jsx("div",{className:"scope-sessions-route","data-scope-view":"sessions",...s,children:r.jsx(It,{sessionRef:e.sessionId,navigate:t})}):r.jsx("div",{className:"scope-sessions-route","data-scope-view":"sessions",...s,children:r.jsxs("div",{className:"scope-sessions",children:[r.jsx("header",{className:"scope-sessions__bar",children:r.jsxs("div",{className:"scope-sessions__summary",children:[r.jsxs("span",{className:"scope-sessions__count",children:[i," session",i===1?"":"s"]}),a>0?r.jsxs("span",{className:"scope-sessions__live",children:[a," active"]}):null,l?r.jsx("span",{className:"scope-sessions__warn",children:"discovery error"}):null]})}),r.jsx("div",{className:"scope-sessions__body",children:r.jsx("div",{className:"scope-sessions__atop",children:r.jsx(At,{navigate:t})})})]})})}function Rs({navigate:e,tailQuery:t}){const s=q();return r.jsx("div",{className:"scope-tail-route","data-scope-view":"tail",...s,children:r.jsxs("div",{className:"scope-tail",children:[r.jsx("header",{className:"scope-tail__bar",children:r.jsxs("div",{className:"scope-tail__summary",children:[r.jsx("span",{className:"scope-tail__count",children:"tail"}),r.jsx("span",{className:"scope-tail__hint",children:"live event stream"}),t?r.jsxs("span",{className:"scope-tail__query",title:t,children:["q=",t]}):null]})}),r.jsx("div",{className:"scope-tail__body",children:r.jsx("div",{className:"scope-tail__stream",children:r.jsx(Tt,{navigate:e,initialFilter:t,variant:"tail",chrome:"embedded"})})})]})})}function Ds(e,t,s,o){if(!Ye(o))return null;const n=Ze(e);if(!n)return null;switch(n){case"lanes":return r.jsx(As,{navigate:t,agents:s});case"tail":return e.view!=="ops"||e.mode!=="tail"?null:r.jsx(Rs,{navigate:t,tailQuery:e.tailQuery});case"sessions":return e.view!=="sessions"?null:r.jsx(Ts,{route:e,navigate:t});case"agents":return e.view!=="agents-v2"||tt(e)?null:r.jsx(Zt,{navigate:t,agents:s});default:return null}}function Ps(){const{route:e,navigate:t,agents:s}=Se(),{pathname:o}=Je(),n=Ds(e,t,s,o);return r.jsx(Xe,{children:n??et(e,t,s)})}function Os(){const{route:e,navigate:t}=Se();return Ot({className:"scout-nav-tabs scout-nav-tabs--scope",brandTag:Qe,items:Oe,activeKey:Pe(e),navigate:t})}function Ms(){const e=ie(),t=Rt(),s=Os();return we("nav.sidebar",!1)?null:e?s:t}function $s(){const e=ie(),t=Dt();return we("nav.sidebar",!1)?null:e?p.createElement("div",{className:"scout-nav-actions"}):t}function Fs(){const e=ie(),t=Pt();return e?{active:!1,dismissible:!0}:t}function nl(e){e.slots.Content=Ps,e.hooks.useNavCenter=Ms,e.hooks.useNavActions=$s,e.hooks.useTakeover=Fs}export{Qe as SCOPE_BRAND_LABEL,il as SCOPE_ENABLE_HINTS,Cl as SCOPE_FLAG_BUNDLE,El as SCOPE_FLAG_BUNDLE_ALIASES,Al as SCOPE_FLAG_KEY,ul as SCOPE_FLAG_REGISTRY_KEY,ml as SCOPE_LANE_DECK_DEFAULTS,Ke as SCOPE_LANE_DECK_PROFILE,Il as SCOPE_LEGACY_FLAG_BUNDLE,Tl as SCOPE_LEGACY_FLAG_KEY,Rl as SCOPE_LEGACY_PATH_PREFIX,Dl as SCOPE_LEGACY_PATH_SEGMENT,Pl as SCOPE_PATH_PREFIX,Ol as SCOPE_PATH_SEGMENT,Ml as SCOPE_ROUTE_SEGMENTS,$l as SCOPE_STORAGE_PREFIX,Oe as SCOPE_TOP_NAV_ITEMS,Ps as ScopeAppContent,Zt as ScopeDirView,ts as ScopeLaneColumn,Wt as ScopeLaneDetailView,Le as ScopeLaneTraceSheet,ns as ScopeLanesBar,As as ScopeLanesView,fl as buildScopePath,hl as buildScopeRoutePath,Fl as canonicalizeScopePathname,ll as isScopeOnboardingExempt,Ye as isScopePath,gl as isScopePresentation,_l as parseScopeRouteFromUrl,Sl as preserveLocationSearch,Ds as resolveScopeContentPane,bl as routeBelongsInScopeNamespace,Ze as routeToScopeSegment,vl as scopeInstrumentBundleLayer,xl as scopeLaneDeckProfileId,wl as scopePresentationAttrs,cl as scopePresentationTitle,Ll as scopeRoutePath,le as scopeStorageKey,Nl as scopeSurfaceFlagDefinition,Pe as scopeTopNavKeyForRoute,yl as scopeViewSegment,jl as segmentToRoute,ie as useScopePresentation,q as useScopePresentationAttrs,dl as useScopeShellChrome,nl as wireScopeOntoScout};
|