@openscout/scout 0.2.102 → 0.2.105
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 +37 -0
- package/bin/scout.mjs +6 -0
- package/bin/scoutd +0 -0
- package/dist/build-manifest.json +4 -4
- package/dist/chat.mjs +285 -0
- package/dist/client/assets/ActivityScreen-CcDdQTBK.js +1 -0
- package/dist/client/assets/{AddProjectForm-DfbjlFfy.js → AddProjectForm-CHNJ4NnS.js} +1 -1
- package/dist/client/assets/{AdventureEvidence-Dzz9VbuE.js → AdventureEvidence-B4mEvXeD.js} +1 -1
- package/dist/client/assets/{AdventureReader-ClMxT0e4.js → AdventureReader-ZsBDQITY.js} +1 -1
- package/dist/client/assets/{AdventureScenery-D548O0x4.js → AdventureScenery-DSxDlqG1.js} +1 -1
- package/dist/client/assets/AgentAdventures-BxrYq_2v.js +1 -0
- package/dist/client/assets/{AgentAvatar-BIwg54Tj.js → AgentAvatar-NZOqcsB2.js} +1 -1
- package/dist/client/assets/AgentConfigurationScreen-BhD1PEAM.js +1 -0
- package/dist/client/assets/AgentDefinitionsWorkspace-BqS6MXqF.js +1 -0
- package/dist/client/assets/{AgentDetailCard-CFDE8TLi.js → AgentDetailCard-MIEBKw_S.js} +1 -1
- package/dist/client/assets/AgentFloorView-A0dDRlRV.js +1 -0
- package/dist/client/assets/{AgentFloorWorld-BDJmXl3C.js → AgentFloorWorld-BTqwmK5G.js} +1 -1
- package/dist/client/assets/AgentInfoScreen-DuaN0sgE.js +1 -0
- package/dist/client/assets/{AgentLaneCard-C6YmwPxQ.js → AgentLaneCard-C4rKLLdT.js} +1 -1
- package/dist/client/assets/{AgentLaneChrome-D9uJ4QY7.js → AgentLaneChrome-fGC-ZrJS.js} +1 -1
- package/dist/client/assets/{AgentLaneDetailSheet-KYckCBCX.js → AgentLaneDetailSheet-BTF4_th9.js} +1 -1
- package/dist/client/assets/{AgentLaneSummaryResize-BBYBS3DO.js → AgentLaneSummaryResize-DgSeA_vS.js} +1 -1
- package/dist/client/assets/AgentLanesEmbedScreen-CeNiaZ9_.js +1 -0
- package/dist/client/assets/{AgentLanesPreflight-pw2vMO3Q.js → AgentLanesPreflight-CcS23wij.js} +1 -1
- package/dist/client/assets/{AgentLanesView-aAyC7lHf.js → AgentLanesView-WZhEDBFE.js} +1 -1
- package/dist/client/assets/{AgentLiveActions-lYzicnNa.js → AgentLiveActions-6Kfr1uOT.js} +1 -1
- package/dist/client/assets/AgentMasterScreen-DUDUTAnU.js +1 -0
- package/dist/client/assets/{AgentSessions-Cox2zS-e.js → AgentSessions-CO1WGa8Z.js} +2 -2
- package/dist/client/assets/AgentsConsole-BQOWkj35.js +1 -0
- package/dist/client/assets/AgentsScreen-BMNAj1PH.js +1 -0
- package/dist/client/assets/AgentsSubnav-CeHhuzyM.js +1 -0
- package/dist/client/assets/{AstronautSuit-C-4I5YKi.js → AstronautSuit-D67fIBdR.js} +1 -1
- package/dist/client/assets/{AtopView-DKm-ERYC.js → AtopView-Ck30FbzG.js} +1 -1
- package/dist/client/assets/{BackToPicker-Bys9ColC.js → BackToPicker-CkBhGRlD.js} +1 -1
- package/dist/client/assets/BriefingDetailScreen-yZG8_m4h.js +1 -0
- package/dist/client/assets/{BriefingsScreen-D4Zf31Y6.js → BriefingsScreen-DTxYMr3a.js} +1 -1
- package/dist/client/assets/{BrokerMetadataPanel-1GoSl2BV.js → BrokerMetadataPanel-crirZCdo.js} +1 -1
- package/dist/client/assets/BrokerScreen-CT37VQiL.js +8 -0
- package/dist/client/assets/Canvas-CRP0KjKb.js +1 -0
- package/dist/client/assets/{CastPicker-BuwE_JQp.js → CastPicker-ZPomvOf-.js} +1 -1
- package/dist/client/assets/ChannelComposer-BVItWlEz.js +1 -0
- package/dist/client/assets/ChannelSidebar-B-2spawY.js +1 -0
- package/dist/client/assets/{CharacterFamilyPreview-CfO3j8Of.js → CharacterFamilyPreview-ckVkecDO.js} +1 -1
- package/dist/client/assets/ChatAvatar-DKBsbOqk.js +1 -0
- package/dist/client/assets/ChatBits-CLJ71hTY.js +1 -0
- package/dist/client/assets/{ChatCollapsedStrip-TV0j1xTB.js → ChatCollapsedStrip-Co0NmqOO.js} +1 -1
- package/dist/client/assets/ChatRightPanel-pKQtkAgl.js +1 -0
- package/dist/client/assets/ChatSpaceSurface-NrLwdPkE.js +1 -0
- package/dist/client/assets/ChatSpaceTheme-BPMgPdVK.css +1 -0
- package/dist/client/assets/ChatSpaceTheme-D37Jk7bl.js +1 -0
- package/dist/client/assets/{CodeDiffPane-DB6-mqtX.js → CodeDiffPane-D-iv28LJ.js} +1 -1
- package/dist/client/assets/{CodeProjectPicker-B_LNLpIK.js → CodeProjectPicker-CZ3gDdiT.js} +1 -1
- package/dist/client/assets/{CodeScreen-C9H160XS.js → CodeScreen-CSC-zbP9.js} +1 -1
- package/dist/client/assets/{CommsCanvas-DOKw3Q8i.js → CommsCanvas-DdNAwjGW.js} +1 -1
- package/dist/client/assets/{CommsDeck-C18JA7rK.js → CommsDeck-mGWY7Ivi.js} +1 -1
- package/dist/client/assets/{CommsFlowGraph-Czg-KTS0.js → CommsFlowGraph-voDD9M5R.js} +1 -1
- package/dist/client/assets/{CommsFlowMap-CzBWvSa5.js → CommsFlowMap-C33sgD48.js} +1 -1
- package/dist/client/assets/{CommsSelection-g1twA-Lb.js → CommsSelection-BL8aYD7z.js} +1 -1
- package/dist/client/assets/{ConversationComposer-B7RU6LKd.js → ConversationComposer-DNcn5U6D.js} +1 -1
- package/dist/client/assets/ConversationFeedRows-RnYSa7Io.js +1 -0
- package/dist/client/assets/ConversationHeader-Y9TEJxP_.js +1 -0
- package/dist/client/assets/{ConversationPanels-C9yCAoJy.js → ConversationPanels-6pprBpmq.js} +2 -2
- package/dist/client/assets/ConversationScreen-tpj4cqWs.js +2 -0
- package/dist/client/assets/{ConversationStatus-CK-YfLpi.js → ConversationStatus-Cv-7hErW.js} +1 -1
- package/dist/client/assets/{CrewAvatar-CJhuqTsJ.js → CrewAvatar-zgzC3cbU.js} +1 -1
- package/dist/client/assets/{CrewSprite-hgpA3SWB.js → CrewSprite-Dp9KBBGY.js} +1 -1
- package/dist/client/assets/CrewWorkspaces-DDuYMByu.css +1 -0
- package/dist/client/assets/CrewWorkspaces-K2jcyLec.js +1 -0
- package/dist/client/assets/{DataTable-BMOZ1-z8.js → DataTable-av71ehJV.js} +1 -1
- package/dist/client/assets/{DispatchAftermath-DDlwqSCY.js → DispatchAftermath-CcYGUB10.js} +1 -1
- package/dist/client/assets/{DocumentFocusViewer-f12RRQpV.js → DocumentFocusViewer-DlMiEALb.js} +1 -1
- package/dist/client/assets/{EmbeddableSurfacesLab-DGl9EMRV.js → EmbeddableSurfacesLab-CTkO_tQR.js} +1 -1
- package/dist/client/assets/{EmptyState-uyYN5piI.js → EmptyState-CYUwYyAW.js} +1 -1
- package/dist/client/assets/{FileViewerPane-HtiDbj9N.js → FileViewerPane-Cxhixtks.js} +1 -1
- package/dist/client/assets/FlightObserveScreen-CvzhzuWc.js +1 -0
- package/dist/client/assets/{FloorContextSheet-DV-SYA0K.js → FloorContextSheet-Vj_wVZq1.js} +1 -1
- package/dist/client/assets/{FloorExchangePanel-D59nvRCF.js → FloorExchangePanel-CjHSDXad.js} +1 -1
- package/dist/client/assets/{FloorMessagePasses-BCwsz9VS.js → FloorMessagePasses-BG4ebnX5.js} +1 -1
- package/dist/client/assets/{FloorReplay-BHo79HCD.js → FloorReplay-BoYaGY9t.js} +1 -1
- package/dist/client/assets/FloorResourcesSheet-_Iy5UqgY.js +1 -0
- package/dist/client/assets/{FloorSavedWork-2tjBoy06.js → FloorSavedWork-jbtRs-YE.js} +1 -1
- package/dist/client/assets/{FloorTacticalHUD-Bngao6sn.js → FloorTacticalHUD-BhyOqlL5.js} +1 -1
- package/dist/client/assets/{FollowScreen-eHXOlK-u.js → FollowScreen-CupyOgt4.js} +1 -1
- package/dist/client/assets/HarnessMark-DSvM_H7H.js +1 -0
- package/dist/client/assets/HarnessesScreen-DyjqbZ4k.js +1 -0
- package/dist/client/assets/{HerdrSession-CtJOUn7H.js → HerdrSession-Dcm3vf9U.js} +1 -1
- package/dist/client/assets/{HomeHero-Cvwx2H0w.js → HomeHero-pIZtE1cC.js} +1 -1
- package/dist/client/assets/{HostAdvisorView-CTJXIc1Q.js → HostAdvisorView-Dv5meXo2.js} +1 -1
- package/dist/client/assets/InviteLandingScreen-xZQ2na1z.js +1 -0
- package/dist/client/assets/InviteSheet--5Zjct25.js +1 -0
- package/dist/client/assets/JumpPalette-BmiSOEmp.js +1 -0
- package/dist/client/assets/{KnowledgeSearchInspector-DwGMVmFL.js → KnowledgeSearchInspector-B8yiM524.js} +1 -1
- package/dist/client/assets/KnowledgeSearchScreen-BPqAjHnH.js +1 -0
- package/dist/client/assets/{LaneToolHoverCard-C6YehJqD.js → LaneToolHoverCard-D2cnTeUd.js} +1 -1
- package/dist/client/assets/LaneTraceDetailSheet-jl4XQmEx.js +1 -0
- package/dist/client/assets/{LaneTraceEventFocus-WLNZZVi_.js → LaneTraceEventFocus-BLhVHwff.js} +1 -1
- package/dist/client/assets/{MeshCanvas-FDDGE69h.js → MeshCanvas-BR25OBTJ.js} +1 -1
- package/dist/client/assets/{MeshCanvasMinimap-CGRzQCac.js → MeshCanvasMinimap-ClVolr4-.js} +1 -1
- package/dist/client/assets/MeshScreen-BW1dMFWF.js +1 -0
- package/dist/client/assets/{MeshTopologyView-C2Cv_2gx.js → MeshTopologyView-BT3ke2D1.js} +2 -2
- package/dist/client/assets/MessagesScreen-CtNMfIvC.js +1 -0
- package/dist/client/assets/{MissionContextRail-CVSZJnvX.js → MissionContextRail-CafjuseK.js} +1 -1
- package/dist/client/assets/MissionControlView-BjPOViGY.js +1 -0
- package/dist/client/assets/{MissionFocusOverlay-B9SiuO-i.js → MissionFocusOverlay-nhy3hkxQ.js} +1 -1
- package/dist/client/assets/MissionLeftAgentRow-Dms0DBjO.js +1 -0
- package/dist/client/assets/{MissionLogPane-CMBiI29U.js → MissionLogPane-DiUf3vWW.js} +1 -1
- package/dist/client/assets/NativeAreaScreen-BQSTo8As.js +1 -0
- package/dist/client/assets/NativeAreaScreen-Brix6xDB.js +1 -0
- package/dist/client/assets/NativeAreaScreen-D7HyQNlM.js +1 -0
- package/dist/client/assets/{NewAgentModal-Cl4nsGhu.js → NewAgentModal-BQ2wQ5gp.js} +1 -1
- package/dist/client/assets/NewChatComposer-BEXS8vV6.js +19 -0
- package/dist/client/assets/{NewChatOrigin-CyPPWTJP.js → NewChatOrigin-C8ROO4ps.js} +1 -1
- package/dist/client/assets/{NodeDetailPanel-BUG8rOb-.js → NodeDetailPanel-BNTqYC7m.js} +1 -1
- package/dist/client/assets/{NodeMenu-Fw8ATWQA.js → NodeMenu-CcOeFRCB.js} +1 -1
- package/dist/client/assets/{ObserveEmbedScreen-BPiSXXvm.js → ObserveEmbedScreen-Dh30EjAQ.js} +2 -2
- package/dist/client/assets/{ObserveTextFlow-ET0dD1wO.js → ObserveTextFlow-CC5mnngm.js} +2 -2
- package/dist/client/assets/{ObservedTopologyPanel-DkEkQzo-.js → ObservedTopologyPanel-DF6tRZL_.js} +1 -1
- package/dist/client/assets/OpenScoutAppShell-D9pgw36i.js +31 -0
- package/dist/client/assets/OpsAgentsView-D3rM0udq.js +1 -0
- package/dist/client/assets/OpsScreen-DySeNQ1V.js +1 -0
- package/dist/client/assets/OpsSubnav-C9E0r3GZ.js +1 -0
- package/dist/client/assets/ProjectAgentProfile-FUav75j2.js +1 -0
- package/dist/client/assets/{ProjectAgentProfileBar-C1fR65Eh.js → ProjectAgentProfileBar-C8z22pJ2.js} +1 -1
- package/dist/client/assets/ProjectAgentProfileHero-BLK0EwMg.js +1 -0
- package/dist/client/assets/ProjectsInbox-DfCXReZK.js +2 -0
- package/dist/client/assets/ProjectsRail-CELVubfJ.js +1 -0
- package/dist/client/assets/ProjectsScreen-DMw4TLKy.js +1 -0
- package/dist/client/assets/ProjectsThreadAside-D1Sh4fnX.js +1 -0
- package/dist/client/assets/{Provider-5Hotn7NQ.js → Provider-CNZluAZb.js} +2 -2
- package/dist/client/assets/{RailRow-BYguXNm4.js → RailRow-DUPqXMZh.js} +1 -1
- package/dist/client/assets/RailToggle-BwmY70B8.js +1 -0
- package/dist/client/assets/RawSessionsTable-6OVJq0JZ.js +1 -0
- package/dist/client/assets/RealtimeVoiceScreen-D41TYY0x.js +9 -0
- package/dist/client/assets/{RenderedWorkerSprite-CvdWO32C.js → RenderedWorkerSprite-C8fxndAh.js} +1 -1
- package/dist/client/assets/{ReplayClock-B7JLTp8A.js → ReplayClock-DUVJjrIu.js} +1 -1
- package/dist/client/assets/{ReplayLog-DZTpf2CW.js → ReplayLog-Bek1Vc4W.js} +1 -1
- package/dist/client/assets/{ReplayOutpost-CvWQa30T.js → ReplayOutpost-DlRg3172.js} +1 -1
- package/dist/client/assets/{RepoDiffEmbedScreen-Cbu0_PJW.js → RepoDiffEmbedScreen-CVUMnt6A.js} +1 -1
- package/dist/client/assets/{RepoDiffPageScreen-Chwm6GXL.js → RepoDiffPageScreen-D9-s5PyB.js} +1 -1
- package/dist/client/assets/{RepoDiffViewer-C2mb0Wj-.js → RepoDiffViewer-D7FN-oyY.js} +1 -1
- package/dist/client/assets/RepoDiffViewerLazy-BpMR7tlx.js +2 -0
- package/dist/client/assets/{ReposScreen-C7JZQmyh.js → ReposScreen-BQ7HO1om.js} +2 -2
- package/dist/client/assets/{RiggedWorkerCharacter-DNe731GE.js → RiggedWorkerCharacter-CJMWlvV-.js} +1 -1
- package/dist/client/assets/{SageModelStudio-BR1J2D4R.js → SageModelStudio-B526NSnw.js} +1 -1
- package/dist/client/assets/{ScoutDeckSurface-flRamdvE.js → ScoutDeckSurface-ChkvGyEW.js} +1 -1
- package/dist/client/assets/{ScoutSurface-BpklGmDL.js → ScoutSurface-6g1f5chk.js} +1 -1
- package/dist/client/assets/{ScoutbotFxLab-DeK7ySWZ.js → ScoutbotFxLab-BuwBdnPf.js} +1 -1
- package/dist/client/assets/{SecondaryNav-BkTn5tkq.js → SecondaryNav-Bs-_VwTC.js} +1 -1
- package/dist/client/assets/{SessionEmbedScreen-CcQN6xlo.js → SessionEmbedScreen-C2wf35-P.js} +1 -1
- package/dist/client/assets/{SessionObserve-DaqDhqDI.js → SessionObserve-B64YsYhy.js} +9 -9
- package/dist/client/assets/{SessionObserve-BOBJSfs0.css → SessionObserve-CDdJ7fAE.css} +1 -1
- package/dist/client/assets/{SessionObserveEvidence-Drv-D8Oh.js → SessionObserveEvidence-CS1aQBpQ.js} +1 -1
- package/dist/client/assets/SessionRefScreen-DURV0MpF.js +1 -0
- package/dist/client/assets/SessionsScreen-D71ZR-8t.js +1 -0
- package/dist/client/assets/{SettingsDrawer-BDapR4E9.js → SettingsDrawer-Nz98oBVl.js} +3 -3
- package/dist/client/assets/SettingsScreen-CYBHal6y.js +1 -0
- package/dist/client/assets/{SharedFloorCharacter-CSYG_t9t.js → SharedFloorCharacter-V04kD5T9.js} +1 -1
- package/dist/client/assets/SharedWorkFloor-C0xxW4SN.js +2 -0
- package/dist/client/assets/{ShikiPane-BudrOxNK.js → ShikiPane-XwFI-pCp.js} +1 -1
- package/dist/client/assets/{SlidePanel-Datu7XG4.js → SlidePanel-BMpkXai_.js} +1 -1
- package/dist/client/assets/SpaceSwitcher-BfeIf-ad.js +1 -0
- package/dist/client/assets/{SpriteAvatar-BW1JzkDt.js → SpriteAvatar-aHeF4ZQZ.js} +1 -1
- package/dist/client/assets/{SproutActionSprite-DveCzg6l.js → SproutActionSprite-DI5N3gOj.js} +1 -1
- package/dist/client/assets/{StatusPill-MxYClPG5.js → StatusPill-Dw4LP7wu.js} +1 -1
- package/dist/client/assets/{TailView-Dn7uWmPz.js → TailView-BofjmUMJ.js} +2 -2
- package/dist/client/assets/Terminal-jIqnIZZ6.js +4 -0
- package/dist/client/assets/TerminalEmbedScreen-3XsjuySR.js +1 -0
- package/dist/client/assets/{TerminalHeaderMount-DCGstkZ4.js → TerminalHeaderMount-CwbQhXcI.js} +1 -1
- package/dist/client/assets/TerminalRelay--qOBwnbR.js +46 -0
- package/dist/client/assets/{TextDocumentSurface-BhYvAB0o.js → TextDocumentSurface-BK6Qy41F.js} +1 -1
- package/dist/client/assets/{TmuxPeek-BhK0V9Qt.js → TmuxPeek-DpUT9Tpc.js} +1 -1
- package/dist/client/assets/{VoicePermissionsPanel-CecFWzva.js → VoicePermissionsPanel-D35fOnQj.js} +1 -1
- package/dist/client/assets/{WorkDetailScreen-CwtRCm_-.js → WorkDetailScreen-Bcf_yHhU.js} +2 -2
- package/dist/client/assets/{WorkFilesViewer-DJHftsH9.js → WorkFilesViewer-t8AEyx3Q.js} +1 -1
- package/dist/client/assets/{WorkRunView-x5PH1byG.js → WorkRunView-_mhG_FR2.js} +1 -1
- package/dist/client/assets/WorldActorTalk-CKerDikx.js +1 -0
- package/dist/client/assets/{WorldCharacter-Dn4sIXNP.js → WorldCharacter-BRrj3MQN.js} +1 -1
- package/dist/client/assets/{WorldMinimap-Blqg0d5r.js → WorldMinimap-DOptgrc4.js} +1 -1
- package/dist/client/assets/{WorldSky-DV9bpvXj.js → WorldSky-D-RJzSa6.js} +1 -1
- package/dist/client/assets/{activity-CSUhvjD0.js → activity-BJqFrZyB.js} +1 -1
- package/dist/client/assets/{addon-fit-MR98IWES.js → addon-fit-CHohcvS3.js} +1 -1
- package/dist/client/assets/{addon-webgl-CIIKXrvK.js → addon-webgl-CaRy2x2b.js} +1 -1
- package/dist/client/assets/agent-autocomplete-_u9o5EZu.js +2 -0
- package/dist/client/assets/{agent-essentials-8t2il7PV.js → agent-essentials-bKWYOZaH.js} +1 -1
- package/dist/client/assets/{agent-floor-actor-3v9drnxh.js → agent-floor-actor-DW8zLht0.js} +1 -1
- package/dist/client/assets/{agent-lane-card-model-l0stnU9N.js → agent-lane-card-model-CeqQGp-8.js} +1 -1
- package/dist/client/assets/{agent-lane-detail-Db7KyAlf.js → agent-lane-detail-Ti3trpfH.js} +1 -1
- package/dist/client/assets/{agent-lane-preview-B8lsQJOQ.js → agent-lane-preview-Dpa3DuOn.js} +1 -1
- package/dist/client/assets/{agent-lanes-model-CX0wTcnF.js → agent-lanes-model-DMAdqCmK.js} +1 -1
- package/dist/client/assets/{agent-specialization-CiVxQsFT.js → agent-specialization-BplZUa_0.js} +1 -1
- package/dist/client/assets/{api-B9_IqFKY.js → api-BQYTwoz6.js} +1 -1
- package/dist/client/assets/{api-CaROe5_H.js → api-DSqpVKC7.js} +1 -1
- package/dist/client/assets/{arc.es-BzhWalCl.js → arc.es-CubLvQ4W.js} +1 -1
- package/dist/client/assets/{arrow-left-PuKdO3NM.js → arrow-left-DFfKAq0d.js} +1 -1
- package/dist/client/assets/{arrow-right-ldbfp4SZ.js → arrow-right-DmAWnyAH.js} +1 -1
- package/dist/client/assets/{arrow-up-right-Hn754ybA.js → arrow-up-right-B0aLKiyF.js} +1 -1
- package/dist/client/assets/at-sign-DM7xeppo.js +1 -0
- package/dist/client/assets/{book-open-BlJnpf2U.js → book-open-BL9qvhEI.js} +1 -1
- package/dist/client/assets/{bot-CfN9PSBF.js → bot-BhAVbcCA.js} +1 -1
- package/dist/client/assets/{cache-DEy9E34b.js → cache-DGBo3vIf.js} +1 -1
- package/dist/client/assets/chat-api-BPVC0asu.js +1 -0
- package/dist/client/assets/chat-space-model-B6Jg2CY4.js +4 -0
- package/dist/client/assets/{check-B8dMv3Is.js → check-g7D7-c1J.js} +1 -1
- package/dist/client/assets/{chevron-down-B5eMsn5c.js → chevron-down-CDzRQQGl.js} +1 -1
- package/dist/client/assets/{chevron-right-C7UGFpkl.js → chevron-right-DKGTLiqc.js} +1 -1
- package/dist/client/assets/{chevron-up-BHOEgHcn.js → chevron-up-DX7R6KY2.js} +1 -1
- package/dist/client/assets/{chunk-HRAB3GC3-C5X-kFhb.js → chunk-HRAB3GC3-Dvk_QpRq.js} +1 -1
- package/dist/client/assets/{clock-DFcRbtrl.js → clock-CQb4FeMf.js} +1 -1
- package/dist/client/assets/{code-xml-BmyLM0I2.js → code-xml-Cmadr3pQ.js} +1 -1
- package/dist/client/assets/{coffee-C_D9zooM.js → coffee-ljG1_krY.js} +1 -1
- package/dist/client/assets/{compass-DTZdCpv9.js → compass-CvzkzkIh.js} +1 -1
- package/dist/client/assets/content-0AXa0klu.js +1 -0
- package/dist/client/assets/content-BEyJ19Lx.js +1 -0
- package/dist/client/assets/content-BN5weWKW.js +1 -0
- package/dist/client/assets/content-BNokkm7C.js +1 -0
- package/dist/client/assets/content-BV4PUM9q.js +1 -0
- package/dist/client/assets/content-BxUPlcx5.js +1 -0
- package/dist/client/assets/content-CIC5sku8.js +1 -0
- package/dist/client/assets/content-CKJ9zb7Z.js +1 -0
- package/dist/client/assets/content-CdkTyxqk.js +1 -0
- package/dist/client/assets/content-CnhhSCZq.js +1 -0
- package/dist/client/assets/content-D1Ze_FG9.js +1 -0
- package/dist/client/assets/content-DY3F9Vfr.js +1 -0
- package/dist/client/assets/content-DrKBYpcb.js +1 -0
- package/dist/client/assets/content-LSStQYj5.js +1 -0
- package/dist/client/assets/content-YvU-D0hF.js +1 -0
- package/dist/client/assets/content-oKQMyVnH.js +1 -0
- package/dist/client/assets/{context-budget-DemtXu7E.js → context-budget-8qFKqM-j.js} +1 -1
- package/dist/client/assets/{conversation-icons-BQ4OeOmr.js → conversation-icons-CIRaxmid.js} +1 -1
- package/dist/client/assets/{conversation-model-BGFHoxQ0.js → conversation-model-m8HhzroS.js} +1 -1
- package/dist/client/assets/conversation-motion-features-D9PxLoDt.js +1 -0
- package/dist/client/assets/{copy-D9WUpQRf.js → copy-BGOC1tJB.js} +1 -1
- package/dist/client/assets/{cpu-Ck_4tB_-.js → cpu-Q6nrHFTN.js} +1 -1
- package/dist/client/assets/{createLucideIcon-DkjnzvcJ.js → createLucideIcon-ChvMq-zl.js} +1 -1
- package/dist/client/assets/{credentials-C4VXz2hr.js → credentials-OeoF-VKJ.js} +1 -1
- package/dist/client/assets/discover-DlwbftpC.js +2 -0
- package/dist/client/assets/embed-entry-c0lwtjBG.js +2 -0
- package/dist/client/assets/{external-link-RT4Ph-6-.js → external-link-BVccgH0n.js} +1 -1
- package/dist/client/assets/{eye-CtqSV8BS.js → eye-CsGfEVR6.js} +1 -1
- package/dist/client/assets/{file-code-corner-D_Aptal2.js → file-code-corner-Be6da5l3.js} +1 -1
- package/dist/client/assets/{file-text-ChtICwub.js → file-text-DP6txVW-.js} +1 -1
- package/dist/client/assets/{flag-CqdOxVkI.js → flag-DAFE2wZ5.js} +1 -1
- package/dist/client/assets/{floor-context-model-DZBpo_oD.js → floor-context-model-rWKqaKmV.js} +1 -1
- package/dist/client/assets/{floor-message-passes-CJh9f8Jp.js → floor-message-passes-CO3Ix_wR.js} +1 -1
- package/dist/client/assets/{folder-0fWevPvQ.js → folder-B_S7gBVr.js} +1 -1
- package/dist/client/assets/{gauge-Dgtfxf_o.js → gauge-DQCGlE3o.js} +1 -1
- package/dist/client/assets/{gestures-BDCZ1FRG.js → gestures-CofqY4Km.js} +1 -1
- package/dist/client/assets/{git-branch-CA3cHKCI.js → git-branch-DcUCsWdJ.js} +1 -1
- package/dist/client/assets/{go-shortcuts-DKtw4qYx.js → go-shortcuts-KQy-ZOpV.js} +1 -1
- package/dist/client/assets/{home-moving-signal-B7m-ngb2.js → home-moving-signal-BIHUGNfI.js} +1 -1
- package/dist/client/assets/home-now-card-CaLgZze2.js +1 -0
- package/dist/client/assets/{home-now-card-nano-D1ScGrgv.js → home-now-card-nano-CvU8B61b.js} +1 -1
- package/dist/client/assets/hooks-DaUOREpP.js +2 -0
- package/dist/client/assets/index-CGbs0SBm.css +1 -0
- package/dist/client/assets/index-CbqBwfIW.js +1 -0
- package/dist/client/assets/index-CyPMl7Up.js +1 -0
- package/dist/client/assets/index-DReVb7jZ.js +10 -0
- package/dist/client/assets/index-PQpJveGO.js +1 -0
- package/dist/client/assets/{index-CvsM3jm8.js → index-kkXUq-zf.js} +1 -1
- package/dist/client/assets/{inspector-panel-BLhDODb3.js → inspector-panel-CLU7wjnT.js} +2 -2
- package/dist/client/assets/{keyboard-nav-CXfav14z.js → keyboard-nav-CJXPaHXj.js} +1 -1
- package/dist/client/assets/lane-ask-display-BTVSakyo.js +18 -0
- package/dist/client/assets/{lane-observe-BD21P8BB.js → lane-observe-CteDwdD-.js} +3 -3
- package/dist/client/assets/{lane-roster-store-DzNHP392.js → lane-roster-store-Ch9t6lb0.js} +1 -1
- package/dist/client/assets/{layers-Bolb8ejU.js → layers-BOwyWodP.js} +1 -1
- package/dist/client/assets/{layout-grid-DI9tVJ2E.js → layout-grid-B36Qsh0y.js} +1 -1
- package/dist/client/assets/left-0vBrvrBG.js +2 -0
- package/dist/client/assets/left-C6SyaqlJ.js +1 -0
- package/dist/client/assets/left-CTuXysZR.js +2 -0
- package/dist/client/assets/left-Cc6s4DT2.js +1 -0
- package/dist/client/assets/left-DF5caiyh.js +1 -0
- package/dist/client/assets/left-DgT4tWCx.js +1 -0
- package/dist/client/assets/left-R0wppTTr.js +1 -0
- package/dist/client/assets/left-advisor-C-kt8V28.js +1 -0
- package/dist/client/assets/left-agents-thnBO156.js +1 -0
- package/dist/client/assets/left-default-CT42fnpF.js +1 -0
- package/dist/client/assets/left-lanes-CSmZgciK.js +1 -0
- package/dist/client/assets/left-mission-C86x6i9h.js +1 -0
- package/dist/client/assets/library-DdhYL_9v.js +1 -0
- package/dist/client/assets/{loader-circle-DurUYl7E.js → loader-circle-DNUsuPWz.js} +1 -1
- package/dist/client/assets/{local-agents-D9fYYRyj.js → local-agents-I40PawYA.js} +1 -1
- package/dist/client/assets/{machine-children-RGS4Q0r6.js → machine-children-CdhNzDF0.js} +1 -1
- package/dist/client/assets/{mentions-Ctw1ECUC.js → mentions-Ck_Vjnyp.js} +1 -1
- package/dist/client/assets/{mesh-ops-CGpRk4ik.js → mesh-ops-DSlvHp-D.js} +1 -1
- package/dist/client/assets/{mesh-view-store-CliSYsmt.js → mesh-view-store-C1-mdP3P.js} +1 -1
- package/dist/client/assets/{message-circle-CSiJj6yo.js → message-circle-cI5_A5mj.js} +1 -1
- package/dist/client/assets/{message-markup-DgFSyb3f.js → message-markup-6Tgo4qFJ.js} +1 -1
- package/dist/client/assets/{message-square-NmXWtWLR.js → message-square-CJW4WRlo.js} +1 -1
- package/dist/client/assets/{mission-control-store-DZ29Mlj1.js → mission-control-store-p_cboAm4.js} +1 -1
- package/dist/client/assets/monitor-C7_cHlkC.js +1 -0
- package/dist/client/assets/{nav-destinations-CyXnw9kh.js → nav-destinations-CU_euC-Q.js} +1 -1
- package/dist/client/assets/{observe-CkfOxYx_.js → observe-CtS0l3zu.js} +1 -1
- package/dist/client/assets/{operator-attention-DGR4kOog.js → operator-attention-DBaRg5ep.js} +1 -1
- package/dist/client/assets/{page-status-CkS3SZu-.js → page-status-DwFR4wSw.js} +1 -1
- package/dist/client/assets/{panel-right-BNTJhy8M.js → panel-right-qP17MwMl.js} +1 -1
- package/dist/client/assets/{pause-DWS7YGQ3.js → pause-B_hliKuR.js} +1 -1
- package/dist/client/assets/{persistent-state-xsuk6Kc-.js → persistent-state-BUsTTZFE.js} +1 -1
- package/dist/client/assets/{pin-DWlD1BOF.js → pin-Oi4qHR6M.js} +1 -1
- package/dist/client/assets/{play-D_Pggug4.js → play-CVeRmqLH.js} +1 -1
- package/dist/client/assets/{plus-D_wLGJGT.js → plus-D5NLH_fM.js} +1 -1
- package/dist/client/assets/profile-BegEUmB7.js +1 -0
- package/dist/client/assets/projects-inbox-CKPLZN8s.css +1 -0
- package/dist/client/assets/{projects-inbox-DvbqJO3q.js → projects-inbox-CfwxCTdN.js} +1 -1
- package/dist/client/assets/provider-DwmCoSlc.js +1 -0
- package/dist/client/assets/{proxy-DOG46ja4.js → proxy-DgzP27W8.js} +1 -1
- package/dist/client/assets/{radio-C_jtwbFP.js → radio-Cas2qg1D.js} +1 -1
- package/dist/client/assets/{refresh-cw-Da9DDLk2.js → refresh-cw-IcD2lPoT.js} +1 -1
- package/dist/client/assets/resolve-panes-pfZTezKo.js +1 -0
- package/dist/client/assets/resolve-sidebar-context-D5ksvrb_.js +1 -0
- package/dist/client/assets/right-BDaCJ0CF.js +1 -0
- package/dist/client/assets/right-BP6lXRFS.js +1 -0
- package/dist/client/assets/right-Cb1VCrdj.js +1 -0
- package/dist/client/assets/right-CeFaxfBo.js +1 -0
- package/dist/client/assets/right-Ck2SrYCj.js +1 -0
- package/dist/client/assets/right-D-uv5YfF.js +1 -0
- package/dist/client/assets/right-DJMSICky.js +1 -0
- package/dist/client/assets/right-Dnljs8ah.js +1 -0
- package/dist/client/assets/right-SdCSF8PP.js +1 -0
- package/dist/client/assets/{right-BLJsc2-p.js → right-cjPTwPXS.js} +1 -1
- package/dist/client/assets/{rocket-DyrYDo8V.js → rocket-DAqYvu8I.js} +1 -1
- package/dist/client/assets/router-C-MF5-mb.js +1 -0
- package/dist/client/assets/{runtime-picker-DdsttHHc.js → runtime-picker-C_AVYF63.js} +1 -1
- package/dist/client/assets/{scope-views-B7PZGlhY.js → scope-views-Dl3ml9OZ.js} +1 -1
- package/dist/client/assets/{scout-voice-DOQ_B77g.js → scout-voice-CqAyfblr.js} +1 -1
- package/dist/client/assets/{scoutbot-markdown-Bz0Vbto2.js → scoutbot-markdown-DwvGQOWo.js} +1 -1
- package/dist/client/assets/{scroll-text-DwC8r2g6.js → scroll-text-B0tKI9Sg.js} +1 -1
- package/dist/client/assets/{search-C4VlW_0l.js → search-UsM-9-_W.js} +1 -1
- package/dist/client/assets/secondaryNavConfig-D15P1Y9k.css +1 -0
- package/dist/client/assets/secondaryNavConfig-DzNHk6IH.js +1 -0
- package/dist/client/assets/{selection-bridge-B5jqyMR9.js → selection-bridge-OTS2iFkt.js} +1 -1
- package/dist/client/assets/{send-horizontal-pOtGI7FM.js → send-horizontal-BlQsRK6C.js} +1 -1
- package/dist/client/assets/{send-to-agent-session-BZGq_ycy.js → send-to-agent-session-C1mgqdow.js} +1 -1
- package/dist/client/assets/{server-ms1yxUYJ.js → server-DBlPW0Mp.js} +1 -1
- package/dist/client/assets/{session-catalog-s-T_w41t.js → session-catalog-CnpZMB7C.js} +1 -1
- package/dist/client/assets/{session-table-CDx_16xf.js → session-table-CGkfG5Yd.js} +1 -1
- package/dist/client/assets/{sessions-view-DzYGsKWS.js → sessions-view-Bge4XZ4I.js} +1 -1
- package/dist/client/assets/{settings-TJIkkZ0P.js → settings-C69Zjrpq.js} +1 -1
- package/dist/client/assets/{shared-work-artifacts-4IIQXQfc.js → shared-work-artifacts-DfNl9KTo.js} +1 -1
- package/dist/client/assets/{sliders-horizontal-CHf3ntw0.js → sliders-horizontal-6bzeod7c.js} +1 -1
- package/dist/client/assets/{sparkles-BbOFw3d0.js → sparkles-Cc5lPZRv.js} +1 -1
- package/dist/client/assets/{sse-v5QLsOHV.js → sse-A8AyLH0g.js} +1 -1
- package/dist/client/assets/{tail-events-DQ46QBW1.js → tail-events-C4WdhVeK.js} +1 -1
- package/dist/client/assets/{terminal-96JWDYDL.js → terminal-DMZjX1es.js} +1 -1
- package/dist/client/assets/{terminal-relay-Bfx8pg80.js → terminal-relay-mO89dX-Y.js} +1 -1
- package/dist/client/assets/{terminal-sessions-Ch9aYlgi.js → terminal-sessions-3RfJpen8.js} +1 -1
- package/dist/client/assets/{terminal-takeover-BlpxpvSp.js → terminal-takeover-CZZsnPzj.js} +1 -1
- package/dist/client/assets/use-beside-D3cJpA5p.js +1 -0
- package/dist/client/assets/{use-conversation-list-A_YUf8lo.js → use-conversation-list-D5EnpVba.js} +1 -1
- package/dist/client/assets/{use-fleet-active-asks-DFs_u-vM.js → use-fleet-active-asks-D_QOmjg5.js} +1 -1
- package/dist/client/assets/{use-mesh-node-state-Ck9CYplv.js → use-mesh-node-state-3V3ADQ-G.js} +1 -1
- package/dist/client/assets/{use-mesh-ops-items-Be1WmwCg.js → use-mesh-ops-items-DI9GKWlF.js} +1 -1
- package/dist/client/assets/{use-reduced-motion-D7n3vK8t.js → use-reduced-motion-CiaZHMnk.js} +1 -1
- package/dist/client/assets/use-scout-dev-flags-CkdAHlDR.js +1 -0
- package/dist/client/assets/{useAgentHoverCard-Dr-OjNFF.js → useAgentHoverCard-A3QGXqIy.js} +1 -1
- package/dist/client/assets/useContentSecondaryNav-DrL_nkCZ.js +1 -0
- package/dist/client/assets/{useEmbedHeadline-BL8wQawZ.js → useEmbedHeadline-atkQVfGw.js} +1 -1
- package/dist/client/assets/usePersistentState-Y8XwSTg-.js +1 -0
- package/dist/client/assets/{usePierreRuntime-DJkRHMoe.js → usePierreRuntime-DTvcwISe.js} +1 -1
- package/dist/client/assets/users-RLK3P5U4.js +1 -0
- package/dist/client/assets/{wrench-BsMTSeji.js → wrench-B4maQJai.js} +1 -1
- package/dist/client/assets/{x-DI1ktCYb.js → x-rlMdRqJF.js} +1 -1
- package/dist/client/assets/{xterm-B1YBE4Gq.js → xterm-B1zHHOLQ.js} +1 -1
- package/dist/client/assets/{zap-sKPkh4sQ.js → zap-B4X0OrEw.js} +1 -1
- package/dist/client/index.html +15 -3
- package/dist/drizzle/0019_session_actor_targets.sql +227 -0
- package/dist/drizzle/README.md +19 -0
- package/dist/drizzle/meta/0019_snapshot.json +6804 -0
- package/dist/drizzle/meta/_journal.json +7 -0
- package/dist/highlights-eq9cgrbb.scm +604 -0
- package/dist/highlights-ghv9g403.scm +205 -0
- package/dist/highlights-hk7bwhj4.scm +284 -0
- package/dist/highlights-r812a2qc.scm +150 -0
- package/dist/highlights-x6tmsnaa.scm +115 -0
- package/dist/injections-73j83es3.scm +27 -0
- package/dist/main.mjs +1214 -722
- package/dist/node/main.mjs +133 -22
- package/dist/pairing-runtime-controller.mjs +715 -492
- package/dist/runtime/base-daemon.mjs +14176 -58
- package/dist/runtime/broker-daemon.mjs +15520 -445
- package/dist/runtime/broker-process-manager.mjs +5 -3
- package/dist/runtime/mesh-discover.mjs +5 -3
- package/dist/scout-control-plane-web.mjs +21065 -3387
- package/dist/tree-sitter-javascript-nd0q4pe9.wasm +0 -0
- package/dist/tree-sitter-markdown-411r6y9b.wasm +0 -0
- package/dist/tree-sitter-markdown_inline-j5349f42.wasm +0 -0
- package/dist/tree-sitter-typescript-zxjzwt75.wasm +0 -0
- package/dist/tree-sitter-zig-e78zbjpm.wasm +0 -0
- package/dist/update-helper.mjs +83 -17
- package/package.json +2 -2
- package/dist/client/assets/ActivityScreen-DCALiEXY.js +0 -1
- package/dist/client/assets/AgentAdventures-NwTKeF0F.js +0 -1
- package/dist/client/assets/AgentConfigurationScreen-B2Hw0ce1.js +0 -1
- package/dist/client/assets/AgentDefinitionsWorkspace-CwZJ833X.js +0 -1
- package/dist/client/assets/AgentFloorView-l2wNKFob.js +0 -1
- package/dist/client/assets/AgentInfoScreen-ClZM1wQb.js +0 -1
- package/dist/client/assets/AgentLanesEmbedScreen-DqHwqY0X.js +0 -1
- package/dist/client/assets/AgentMasterScreen-By6DN0jF.js +0 -1
- package/dist/client/assets/AgentsConsole-Dq0S_hRA.js +0 -1
- package/dist/client/assets/AgentsScreen-Bi9Lx47B.js +0 -1
- package/dist/client/assets/AgentsSubnav-BOobgtGE.js +0 -1
- package/dist/client/assets/BriefingDetailScreen-sprFl4Nk.js +0 -1
- package/dist/client/assets/BrokerScreen-CejzhRsB.js +0 -8
- package/dist/client/assets/ConversationFeedRows-DVqnZQH0.js +0 -1
- package/dist/client/assets/ConversationHeader-CCSU8uo_.js +0 -1
- package/dist/client/assets/ConversationScreen-tTP6B_F-.js +0 -2
- package/dist/client/assets/CrewWorkspaces-4O8dgRUD.js +0 -1
- package/dist/client/assets/CrewWorkspaces-Diq11KDq.css +0 -1
- package/dist/client/assets/FlightObserveScreen-DDXfNbsw.js +0 -1
- package/dist/client/assets/FloorResourcesSheet-Djrgd_ZU.js +0 -1
- package/dist/client/assets/HarnessMark-Bt47OeHy.js +0 -1
- package/dist/client/assets/HarnessesScreen-M84sFjWY.js +0 -1
- package/dist/client/assets/KnowledgeSearchScreen-WC0WhFio.js +0 -1
- package/dist/client/assets/LaneTraceDetailSheet-mAhj7MJi.js +0 -1
- package/dist/client/assets/MeshScreen-DlfiMlaR.js +0 -1
- package/dist/client/assets/MessagesScreen-BZ7yaGJx.js +0 -1
- package/dist/client/assets/MissionControlView-DpGhxG4a.js +0 -1
- package/dist/client/assets/MissionLeftAgentRow-DhhRRim0.js +0 -1
- package/dist/client/assets/NativeAreaScreen-BQyHHRAM.js +0 -1
- package/dist/client/assets/NativeAreaScreen-Ditv-TYW.js +0 -1
- package/dist/client/assets/NativeAreaScreen-Dq3uPSEI.js +0 -1
- package/dist/client/assets/NewChatComposer-JjLbm3W2.js +0 -19
- package/dist/client/assets/OpenScoutAppShell-CzKbjwCA.js +0 -22
- package/dist/client/assets/OpsAgentsView-CZbtkcQH.js +0 -1
- package/dist/client/assets/OpsScreen-DJq-aBmX.js +0 -1
- package/dist/client/assets/OpsSubnav-9sURjajO.js +0 -1
- package/dist/client/assets/ProjectAgentProfile-q_1tMJIL.js +0 -1
- package/dist/client/assets/ProjectAgentProfileHero-DyEFyTFs.js +0 -1
- package/dist/client/assets/ProjectsInbox-Bs8I__my.js +0 -2
- package/dist/client/assets/ProjectsRail-Deb38OJ1.js +0 -1
- package/dist/client/assets/ProjectsScreen-CgLiYiss.js +0 -1
- package/dist/client/assets/ProjectsThreadAside-C0Yw3yIL.js +0 -1
- package/dist/client/assets/RawSessionsTable-DIhmlvk-.js +0 -1
- package/dist/client/assets/RealtimeVoiceScreen-3oU7b7V5.js +0 -1
- package/dist/client/assets/RepoDiffViewerLazy-BQ6ZCrsq.js +0 -2
- package/dist/client/assets/SessionRefScreen-BOQ1_ydg.js +0 -1
- package/dist/client/assets/SessionsScreen-R8QKvoey.js +0 -1
- package/dist/client/assets/SettingsScreen-DirtO7Z0.js +0 -1
- package/dist/client/assets/SharedWorkFloor-yPWFLZwX.js +0 -2
- package/dist/client/assets/Terminal-D-DsQlmV.js +0 -4
- package/dist/client/assets/TerminalEmbedScreen-9Gmln759.js +0 -1
- package/dist/client/assets/WorldActorTalk-uIH2jGqA.js +0 -1
- package/dist/client/assets/agent-autocomplete-CeHQpuG9.js +0 -10
- package/dist/client/assets/arrow-down-WoVlkUmg.js +0 -1
- package/dist/client/assets/chunk-JTPDIGGW-ZC-98AHT.js +0 -46
- package/dist/client/assets/chunk-T65CQEWV-CSVUz2rY.js +0 -1
- package/dist/client/assets/chunk-YOZR3KYS-B59jqwO0.js +0 -2
- package/dist/client/assets/content-B5Q4pb9R.js +0 -1
- package/dist/client/assets/content-BK1IfOZs.js +0 -1
- package/dist/client/assets/content-BeEsWLEm.js +0 -1
- package/dist/client/assets/content-BkOwEknW.js +0 -1
- package/dist/client/assets/content-C32W5kAG.js +0 -1
- package/dist/client/assets/content-CoqyLs9v.js +0 -1
- package/dist/client/assets/content-CwpdIS5b.js +0 -1
- package/dist/client/assets/content-DS2OkJ3Q.js +0 -1
- package/dist/client/assets/content-DXKaPDfn.js +0 -1
- package/dist/client/assets/content-DZt5-dkI.js +0 -1
- package/dist/client/assets/content-DbQJH8L1.js +0 -1
- package/dist/client/assets/content-DetoiaHq.js +0 -1
- package/dist/client/assets/content-Dhu3wL7J.js +0 -1
- package/dist/client/assets/content-Dpv34iZu.js +0 -1
- package/dist/client/assets/content-TtQJb61D.js +0 -1
- package/dist/client/assets/content-ymNb2R7g.js +0 -1
- package/dist/client/assets/conversation-motion-features-9x8uZpwh.js +0 -1
- package/dist/client/assets/discover-C8IOY7_K.js +0 -2
- package/dist/client/assets/embed-entry-CG3CfCbm.js +0 -2
- package/dist/client/assets/home-now-card-DduXkHRR.js +0 -1
- package/dist/client/assets/hooks-C6VyQTQe.js +0 -2
- package/dist/client/assets/index-C5cX8dkl.js +0 -1
- package/dist/client/assets/index-C8uS5szO.js +0 -10
- package/dist/client/assets/index-Ck1__1yL.css +0 -1
- package/dist/client/assets/index-ClOOrVG1.js +0 -1
- package/dist/client/assets/index-Crtgfc9I.js +0 -1
- package/dist/client/assets/lane-ask-display-B6iCAVcd.js +0 -18
- package/dist/client/assets/left-B-_z_nqj.js +0 -2
- package/dist/client/assets/left-B1LY7rJc.js +0 -1
- package/dist/client/assets/left-C6bdjWcG.js +0 -2
- package/dist/client/assets/left-CF4iuqlz.js +0 -1
- package/dist/client/assets/left-DLtNyZl1.js +0 -1
- package/dist/client/assets/left-Fpxoq-VY.js +0 -1
- package/dist/client/assets/left-N2wXfTlp.js +0 -1
- package/dist/client/assets/left-advisor-CeIjCKbd.js +0 -1
- package/dist/client/assets/left-agents-upjHVlOj.js +0 -1
- package/dist/client/assets/left-default-08gmdCtb.js +0 -1
- package/dist/client/assets/left-lanes-Cvsp73Hw.js +0 -1
- package/dist/client/assets/left-mission-W1LLaz74.js +0 -1
- package/dist/client/assets/library-DLKBVUJ6.js +0 -1
- package/dist/client/assets/profile-C3KgiZvc.js +0 -1
- package/dist/client/assets/projects-inbox-BIW7nv-H.css +0 -1
- package/dist/client/assets/resolve-panes-DuowGRTk.js +0 -1
- package/dist/client/assets/resolve-sidebar-context-BkTbqteq.js +0 -1
- package/dist/client/assets/right-B9OUA6Ho.js +0 -1
- package/dist/client/assets/right-BDQnjetX.js +0 -1
- package/dist/client/assets/right-BUbKHmRH.js +0 -1
- package/dist/client/assets/right-Ci2IcD4s.js +0 -1
- package/dist/client/assets/right-CmCce3e5.js +0 -1
- package/dist/client/assets/right-D7w0zM5a.js +0 -1
- package/dist/client/assets/right-DIoON_bv.js +0 -1
- package/dist/client/assets/right-E0Jr3VN5.js +0 -1
- package/dist/client/assets/right-lCdAk9dW.js +0 -1
- package/dist/client/assets/router-BKiMcYa7.js +0 -1
- package/dist/client/assets/secondaryNavConfig-DAXIFtVd.js +0 -1
- package/dist/client/assets/secondaryNavConfig-xssF_ubT.css +0 -1
- package/dist/client/assets/use-beside-Df-F2Uvg.js +0 -1
- package/dist/client/assets/use-scout-dev-flags-0TXfQcG0.js +0 -1
- package/dist/client/assets/useContentSecondaryNav-CGvMOVGY.js +0 -1
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import{r as g,j as h}from"./index-C8uS5szO.js";import{m as D,p as mt,a as rs,n as Z,i as as,b as Ce,d as De,r as Rt,t as Re,f as M,e as nt,S as ls,g as B,h as Le,j as yt,k as Ae,o as R,q as X,s as xt,v as Ft,M as cs,w as Me,P as Ne,x as us,y as Ve,z as Wt,A as hs,B as tt,C as ds,c as fs}from"./use-reduced-motion-D7n3vK8t.js";import{i as H,b as ms,r as ps,s as Ht,p as Lt,d as gs,e as Be,f as ys,h as Y,t as q,j as vt,k as _t,l as xs,m as vs,n as bs,o as Ps,q as Vt,u as bt,v as ws,w as Ts,x as Ie,y as ks,z as Ss,A as Es,B as js,C as Gt,D as Cs,F as Oe,g as Ds,a as Rs,c as Ls}from"./gestures-BDCZ1FRG.js";import{E as As,J as Ms,a as Ns}from"./Provider-5Hotn7NQ.js";import{L as et}from"./loader-circle-DurUYl7E.js";import{R as ze}from"./radio-C_jtwbFP.js";import{a as Vs,M as Bs}from"./DocumentFocusViewer-f12RRQpV.js";import{C as Is}from"./chevron-down-B5eMsn5c.js";import{c as Bt}from"./createLucideIcon-DkjnzvcJ.js";import{P as Os}from"./plus-D_wLGJGT.js";import{S as zs,i as $s}from"./runtime-picker-DdsttHHc.js";import{P as Us}from"./play-D_Pggug4.js";import"./api-CaROe5_H.js";import{B as Fs}from"./bot-CfN9PSBF.js";import{a as Ws}from"./colors-CFlbwC25.js";const Hs=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],_s=Bt("history",Hs);const Gs=[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]],Ys=Bt("list-tree",Gs);const qs=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],Yt=Bt("settings-2",qs);function Xs(t){return t==="x"||t==="y"?H[t]?null:(H[t]=!0,()=>{H[t]=!1}):H.x||H.y?null:(H.x=H.y=!0,()=>{H.x=H.y=!1})}function It(t){return ms(t)&&"ownerSVGElement"in t}const ut=new WeakMap;let ht;const $e=(t,e,i)=>(s,r)=>r&&r[0]?r[0][t+"Size"]:It(s)&&"getBBox"in s?s.getBBox()[e]:s[i],Ks=$e("inline","width","offsetWidth"),Zs=$e("block","height","offsetHeight");function Qs({target:t,borderBoxSize:e}){ut.get(t)?.forEach(i=>{i(t,{get width(){return Ks(t,e)},get height(){return Zs(t,e)}})})}function Js(t){t.forEach(Qs)}function ti(){typeof ResizeObserver>"u"||(ht=new ResizeObserver(Js))}function ei(t,e){ht||ti();const i=ps(t);return i.forEach(s=>{let r=ut.get(s);r||(r=new Set,ut.set(s,r)),r.add(e),ht?.observe(s)}),()=>{i.forEach(s=>{const r=ut.get(s);r?.delete(e),r?.size||ht?.unobserve(s)})}}const dt=new Set;let K;function si(){K=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};dt.forEach(e=>e(t))},window.addEventListener("resize",K)}function ii(t){return dt.add(t),K||si(),()=>{dt.delete(t),!dt.size&&typeof K=="function"&&(window.removeEventListener("resize",K),K=void 0)}}function qt(t,e){return typeof t=="function"?ii(t):ei(t,e)}function ni(t){return It(t)&&t.tagName==="svg"}function At(t,e){t.min=e.min,t.max=e.max}function I(t,e){At(t.x,e.x),At(t.y,e.y)}function Xt(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const Ue=1e-4,oi=1-Ue,ri=1+Ue,Fe=.01,ai=0-Fe,li=0+Fe;function N(t){return t.max-t.min}function ci(t,e,i){return Math.abs(t-e)<=i}function Kt(t,e,i,s=.5){t.origin=s,t.originPoint=D(e.min,e.max,t.origin),t.scale=N(i)/N(e),t.translate=D(i.min,i.max,t.origin)-t.originPoint,(t.scale>=oi&&t.scale<=ri||isNaN(t.scale))&&(t.scale=1),(t.translate>=ai&&t.translate<=li||isNaN(t.translate))&&(t.translate=0)}function st(t,e,i,s){Kt(t.x,e.x,i.x,s?s.originX:void 0),Kt(t.y,e.y,i.y,s?s.originY:void 0)}function Zt(t,e,i,s=0){const r=s?D(i.min,i.max,s):i.min;t.min=r+e.min,t.max=t.min+N(e)}function ui(t,e,i,s){Zt(t.x,e.x,i.x,s?.x),Zt(t.y,e.y,i.y,s?.y)}function Qt(t,e,i,s=0){const r=s?D(i.min,i.max,s):i.min;t.min=e.min-r,t.max=t.min+N(e)}function pt(t,e,i,s){Qt(t.x,e.x,i.x,s?.x),Qt(t.y,e.y,i.y,s?.y)}function Jt(t,e,i,s,r){return t-=e,t=Ht(t,1/i,s),r!==void 0&&(t=Ht(t,1/r,s)),t}function hi(t,e=0,i=1,s=.5,r,a=t,n=t){if(mt.test(e)&&(e=parseFloat(e),e=D(n.min,n.max,e/100)-n.min),typeof e!="number")return;let o=D(a.min,a.max,s);t===a&&(o-=e),t.min=Jt(t.min,e,i,o,r),t.max=Jt(t.max,e,i,o,r)}function te(t,e,[i,s,r],a,n){hi(t,e[i],e[s],e[r],e.scale,a,n)}const di=["x","scaleX","originX"],fi=["y","scaleY","originY"];function ee(t,e,i,s){te(t.x,e,di,i?i.x:void 0,s?s.x:void 0),te(t.y,e,fi,i?i.y:void 0,s?s.y:void 0)}function se(t){return t.translate===0&&t.scale===1}function We(t){return se(t.x)&&se(t.y)}function ie(t,e){return t.min===e.min&&t.max===e.max}function mi(t,e){return ie(t.x,e.x)&&ie(t.y,e.y)}function ne(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function He(t,e){return ne(t.x,e.x)&&ne(t.y,e.y)}function oe(t){return N(t.x)/N(t.y)}function re(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function U(t){return[t("x"),t("y")]}function pi(t,e,i){let s="";const r=t.x.translate/e.x,a=t.y.translate/e.y,n=i?.z||0;if((r||a||n)&&(s=`translate3d(${r}px, ${a}px, ${n}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){const{transformPerspective:c,rotate:u,pathRotation:d,rotateX:f,rotateY:m,skewX:y,skewY:x}=i;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),d&&(s+=`rotate(${d}deg) `),f&&(s+=`rotateX(${f}deg) `),m&&(s+=`rotateY(${m}deg) `),y&&(s+=`skewX(${y}deg) `),x&&(s+=`skewY(${x}deg) `)}const o=t.x.scale*e.x,l=t.y.scale*e.y;return(o!==1||l!==1)&&(s+=`scale(${o}, ${l})`),s||"none"}const _e=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],gi=_e.length,ae=t=>typeof t=="string"?parseFloat(t):t,le=t=>typeof t=="number"||rs.test(t);function yi(t,e,i,s,r,a){r?(t.opacity=D(0,i.opacity??1,xi(s)),t.opacityExit=D(e.opacity??1,0,vi(s))):a&&(t.opacity=D(e.opacity??1,i.opacity??1,s));for(let n=0;n<gi;n++){const o=_e[n];let l=ce(e,o),c=ce(i,o);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||le(l)===le(c)?(t[o]=Math.max(D(ae(l),ae(c),s),0),(mt.test(c)||mt.test(l))&&(t[o]+="%")):t[o]=c}(e.rotate||i.rotate)&&(t.rotate=D(e.rotate||0,i.rotate||0,s))}function ce(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const xi=Ge(0,.5,gs),vi=Ge(.5,.95,Z);function Ge(t,e,i){return s=>s<t?0:s>e?1:i(Lt(t,e,s))}function bi(t,e,i){const s=as(t)?t:Ce(t);return s.start(Be("",s,e,i)),s.animation}const Pi=(t,e)=>t.depth-e.depth;class wi{constructor(){this.children=[],this.isDirty=!1}add(e){De(this.children,e),this.isDirty=!0}remove(e){Rt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Pi),this.isDirty=!1,this.children.forEach(e)}}function Ti(t,e){const i=Re.now(),s=({timestamp:r})=>{const a=r-i;a>=e&&(nt(s),t(a-e))};return M.setup(s,!0),()=>nt(s)}class ki{constructor(){this.members=[]}add(e){De(this.members,e);for(let i=this.members.length-1;i>=0;i--){const s=this.members[i];if(s===e||s===this.lead||s===this.prevLead)continue;const r=s.instance;(!r||r.isConnected===!1)&&!s.snapshot&&(Rt(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(Rt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(e){for(let i=this.members.indexOf(e)-1;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,i){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:r}=s.options,{layoutDependency:a}=e.options;(r===void 0||r!==a)&&(e.resumeFrom=s,i&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const ft={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Pt=["","X","Y","Z"],Si=1e3;let Ei=0;function wt(t,e,i,s){const{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Ye(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const i=Ps(e);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:r,layoutId:a}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",M,!(r||a))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Ye(s)}function qe({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(n={},o=e?.()){this.id=Ei++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Di),this.nodes.forEach(Vi),this.nodes.forEach(Bi),this.nodes.forEach(Ri)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=n,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new wi)}addEventListener(n,o){return this.eventHandlers.has(n)||this.eventHandlers.set(n,new ls),this.eventHandlers.get(n).add(o)}notifyListeners(n,...o){const l=this.eventHandlers.get(n);l&&l.notify(...o)}hasListeners(n){return this.eventHandlers.has(n)}mount(n){if(this.instance)return;this.isSVG=It(n)&&!ni(n),this.instance=n;const{layoutId:o,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(n),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||o)&&(this.isLayoutDirty=!0),t){let u,d=0;const f=()=>this.root.updateBlockedByResize=!1;M.read(()=>{d=window.innerWidth}),t(n,()=>{const m=window.innerWidth;m!==d&&(d=m,this.root.updateBlockedByResize=!0,u&&u(),u=Ti(f,250),ft.hasAnimatedSinceResize&&(ft.hasAnimatedSinceResize=!1,this.nodes.forEach(de)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&c&&(o||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||Ui,{onLayoutAnimationStart:x,onLayoutAnimationComplete:P}=c.getProps(),b=!this.targetLayout||!He(this.targetLayout,m),w=!d&&f;if(this.options.layoutRoot||this.resumeFrom||w||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const k={...ys(y,"layout"),onPlay:x,onComplete:P};(c.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k),this.setAnimationOrigin(u,w,k.path)}else d||de(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const n=this.getStack();n&&n.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),nt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ii),this.animationId++)}getTransformTemplate(){const{visualElement:n}=this.options;return n&&n.getProps().transformTemplate}willUpdate(n=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ye(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),n&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(Ai),this.nodes.forEach(ue);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(he);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Mi),this.nodes.forEach(Ni),this.nodes.forEach(ji),this.nodes.forEach(Ci)):this.nodes.forEach(he),this.clearAllSnapshots();const o=Re.now();B.delta=Le(0,1e3/60,o-B.timestamp),B.timestamp=o,B.isProcessing=!0,yt.update.process(B),yt.preRender.process(B),yt.render.process(B),B.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ae.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Li),this.sharedNodes.forEach(Oi)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,M.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){M.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!N(this.snapshot.measuredBox.x)&&!N(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const n=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=R()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,n?n.layoutBox:void 0)}updateScroll(n="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===n&&(o=!1),o&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:n,isRoot:l,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const n=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!We(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;n&&this.instance&&(o||Y(this.latestValues)||u)&&(r(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(n=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return n&&(l=this.removeTransform(l)),Fi(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:n}=this.options;if(!n)return R();const o=n.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Wi))){const{scroll:c}=this.root;c&&(q(o.x,c.offset.x),q(o.y,c.offset.y))}return o}removeElementScroll(n){const o=R();if(I(o,n),this.scroll?.wasRoot)return o;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:d}=c;c!==this.root&&u&&d.layoutScroll&&(u.wasRoot&&I(o,n),q(o.x,u.offset.x),q(o.y,u.offset.y))}return o}applyTransform(n,o=!1,l){const c=l||R();I(c,n);for(let u=0;u<this.path.length;u++){const d=this.path[u];!o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(q(c.x,-d.scroll.offset.x),q(c.y,-d.scroll.offset.y)),Y(d.latestValues)&&vt(c,d.latestValues,d.layout?.layoutBox)}return Y(this.latestValues)&&vt(c,this.latestValues,this.layout?.layoutBox),c}removeTransform(n){const o=R();I(o,n);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!Y(c.latestValues))continue;let u;c.instance&&(_t(c.latestValues)&&c.updateSnapshot(),u=R(),I(u,c.measurePageBox())),ee(o,c.latestValues,c.snapshot?.layoutBox,u)}return Y(this.latestValues)&&ee(o,this.latestValues),o}setTargetDelta(n){this.targetDelta=n,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(n){this.options={...this.options,...n,crossfade:n.crossfade!==void 0?n.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==B.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(n=!1){const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==o;if(!(n||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=B.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=R(),this.targetWithTransforms=R()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ui(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):I(this.target,this.layout.layoutBox),xs(this.target,this.targetDelta)):I(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||_t(this.parent.latestValues)||vs(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(n,o,l){this.relativeParent=n,this.linkedParentVersion=n.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R(),this.relativeTargetOrigin=R(),pt(this.relativeTargetOrigin,o,l,this.options.layoutAnchor||void 0),I(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const n=this.getLead(),o=!!this.resumingFrom||this!==n;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===B.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;I(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;bs(this.layoutCorrected,this.treeScale,this.path,o),n.layout&&!n.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(n.target=n.layout.layoutBox,n.targetWithTransforms=R());const{target:m}=n;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Xt(this.prevProjectionDelta.x,this.projectionDelta.x),Xt(this.prevProjectionDelta.y,this.projectionDelta.y)),st(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!re(this.projectionDelta.x,this.prevProjectionDelta.x)||!re(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(n=!0){if(this.options.visualElement?.scheduleRender(),n){const o=this.getStack();o&&o.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=X(),this.projectionDelta=X(),this.projectionDeltaWithTransform=X()}setAnimationOrigin(n,o=!1,l){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=X();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const m=R(),y=c?c.source:void 0,x=this.layout?this.layout.source:void 0,P=y!==x,b=this.getStack(),w=!b||b.members.length<=1,k=!!(P&&!w&&this.options.crossfade===!0&&!this.path.some($i));this.animationProgress=0;let T;const V=l?.interpolateProjection(n);this.mixTargetDelta=S=>{const j=S/1e3,E=V?.(j);E?(f.x.translate=E.x,f.x.scale=D(n.x.scale,1,j),f.x.origin=n.x.origin,f.x.originPoint=n.x.originPoint,f.y.translate=E.y,f.y.scale=D(n.y.scale,1,j),f.y.origin=n.y.origin,f.y.originPoint=n.y.originPoint):(fe(f.x,n.x,j),fe(f.y,n.y,j)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pt(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),zi(this.relativeTarget,this.relativeTargetOrigin,m,j),T&&mi(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=R()),I(T,this.relativeTarget)),P&&(this.animationValues=d,yi(d,u,this.latestValues,j,k,w)),E&&E.rotate!==void 0&&(this.animationValues||(this.animationValues=d),this.animationValues.pathRotation=E.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=j},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(n){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(nt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=M.update(()=>{ft.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ce(0)),this.motionValue.jump(0,!1),this.currentAnimation=bi(this.motionValue,[0,1e3],{...n,velocity:0,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),n.onUpdate&&n.onUpdate(o)},onStop:()=>{},onComplete:()=>{n.onComplete&&n.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const n=this.getStack();n&&n.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Si),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const n=this.getLead();let{targetWithTransforms:o,target:l,layout:c,latestValues:u}=n;if(!(!o||!l||!c)){if(this!==n&&this.layout&&c&&Xe(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||R();const d=N(this.layout.layoutBox.x);l.x.min=n.target.x.min,l.x.max=l.x.min+d;const f=N(this.layout.layoutBox.y);l.y.min=n.target.y.min,l.y.max=l.y.min+f}I(o,l),vt(o,u),st(this.projectionDeltaWithTransform,this.layoutCorrected,o,u)}}registerSharedNode(n,o){this.sharedNodes.has(n)||this.sharedNodes.set(n,new ki),this.sharedNodes.get(n).add(o);const c=o.options.initialPromotionConfig;o.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(o):void 0})}isLead(){const n=this.getStack();return n?n.lead===this:!0}getLead(){const{layoutId:n}=this.options;return n?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:n}=this.options;return n?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:n}=this.options;if(n)return this.root.sharedNodes.get(n)}promote({needsReset:n,transition:o,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),n&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const n=this.getStack();return n?n.relegate(this):!1}resetSkewAndRotation(){const{visualElement:n}=this.options;if(!n)return;let o=!1;const{latestValues:l}=n;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const c={};l.z&&wt("z",n,c,this.animationValues);for(let u=0;u<Pt.length;u++)wt(`rotate${Pt[u]}`,n,c,this.animationValues),wt(`skew${Pt[u]}`,n,c,this.animationValues);n.render();for(const u in c)n.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);n.scheduleRender()}applyProjectionStyles(n,o){if(!this.instance||this.isSVG)return;if(!this.isVisible){n.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,n.visibility="",n.opacity="",n.pointerEvents=xt(o?.pointerEvents)||"",n.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(n.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,n.pointerEvents=xt(o?.pointerEvents)||""),this.hasProjected&&!Y(this.latestValues)&&(n.transform=l?l({},""):"none",this.hasProjected=!1);return}n.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=pi(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),n.transform=d;const{x:f,y:m}=this.projectionDelta;n.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,c.animationValues?n.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:n.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const y in Ft){if(u[y]===void 0)continue;const{correct:x,applyTo:P,isCSSVariable:b}=Ft[y],w=d==="none"?u[y]:x(u[y],c);if(P){const k=P.length;for(let T=0;T<k;T++)n[P[T]]=w}else b?this.options.visualElement.renderState.vars[y]=w:n[y]=w}this.options.layoutId&&(n.pointerEvents=c===this?xt(o?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(n=>n.currentAnimation?.stop()),this.root.nodes.forEach(ue),this.root.sharedNodes.clear()}}}function ji(t){t.updateLayout()}function Ci(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:r}=t.options,a=e.source!==t.layout.source;if(r==="size")U(u=>{const d=a?e.measuredBox[u]:e.layoutBox[u],f=N(d);d.min=i[u].min,d.max=d.min+f});else if(r==="x"||r==="y"){const u=r==="x"?"y":"x";At(a?e.measuredBox[u]:e.layoutBox[u],i[u])}else Xe(r,e.layoutBox,i)&&U(u=>{const d=a?e.measuredBox[u]:e.layoutBox[u],f=N(i[u]);d.max=d.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+f)});const n=X();st(n,i,e.layoutBox);const o=X();a?st(o,t.applyTransform(s,!0),e.measuredBox):st(o,i,e.layoutBox);const l=!We(n);let c=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:f}=u;if(d&&f){const m=t.options.layoutAnchor||void 0,y=R();pt(y,e.layoutBox,d.layoutBox,m);const x=R();pt(x,i,f.layoutBox,m),He(y,x)||(c=!0),u.options.layoutRoot&&(t.relativeTarget=x,t.relativeTargetOrigin=y,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:n,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function Di(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Ri(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Li(t){t.clearSnapshot()}function ue(t){t.clearMeasurements()}function Ai(t){t.isLayoutDirty=!0,t.updateLayout()}function he(t){t.isLayoutDirty=!1}function Mi(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function Ni(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function de(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Vi(t){t.resolveTargetDelta()}function Bi(t){t.calcProjection()}function Ii(t){t.resetSkewAndRotation()}function Oi(t){t.removeLeadSnapshot()}function fe(t,e,i){t.translate=D(e.translate,0,i),t.scale=D(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function me(t,e,i,s){t.min=D(e.min,i.min,s),t.max=D(e.max,i.max,s)}function zi(t,e,i,s){me(t.x,e.x,i.x,s),me(t.y,e.y,i.y,s)}function $i(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Ui={duration:.45,ease:[.4,0,.1,1]},pe=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ge=pe("applewebkit/")&&!pe("chrome/")?Math.round:Z;function ye(t){t.min=ge(t.min),t.max=ge(t.max)}function Fi(t){ye(t.x),ye(t.y)}function Xe(t,e,i){return t==="position"||t==="preserve-aspect"&&!ci(oe(e),oe(i),.2)}function Wi(t){return t!==t.root&&t.scroll?.wasRoot}const Hi=qe({attachResizeListener:(t,e)=>Vt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Tt={current:void 0},Ke=qe({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Tt.current){const t=new Hi({});t.mount(window),t.setOptions({layoutScroll:!0}),Tt.current=t}return Tt.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"});function xe(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function _i(...t){return e=>{let i=!1;const s=t.map(r=>{const a=xe(r,e);return!i&&typeof a=="function"&&(i=!0),a});if(i)return()=>{for(let r=0;r<s.length;r++){const a=s[r];typeof a=="function"?a():xe(t[r],null)}}}}function Gi(...t){return g.useCallback(_i(...t),t)}class Yi extends g.Component{getSnapshotBeforeUpdate(e){const i=this.props.childRef.current;if(bt(i)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=i.offsetParent,r=bt(s)&&s.offsetWidth||0,a=bt(s)&&s.offsetHeight||0,n=getComputedStyle(i),o=this.props.sizeRef.current;o.height=parseFloat(n.height),o.width=parseFloat(n.width),o.top=i.offsetTop,o.left=i.offsetLeft,o.right=r-o.width-o.left,o.bottom=a-o.height-o.top,o.direction=n.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function qi({children:t,isPresent:e,anchorX:i,anchorY:s,root:r,pop:a}){const n=g.useId(),o=g.useRef(null),l=g.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:c}=g.useContext(cs),u=t.props?.ref??t?.ref,d=Gi(o,u);return g.useInsertionEffect(()=>{const{width:f,height:m,top:y,left:x,right:P,bottom:b,direction:w}=l.current;if(e||a===!1||!o.current||!f||!m)return;const k=w==="rtl",T=i==="left"?k?`right: ${P}`:`left: ${x}`:k?`left: ${x}`:`right: ${P}`,V=s==="bottom"?`bottom: ${b}`:`top: ${y}`;o.current.dataset.motionPopId=n;const S=document.createElement("style");c&&(S.nonce=c);const j=r??document.head;return j.appendChild(S),S.sheet&&S.sheet.insertRule(`
|
|
2
|
-
[data-motion-pop-id="${n}"] {
|
|
3
|
-
position: absolute !important;
|
|
4
|
-
width: ${f}px !important;
|
|
5
|
-
height: ${m}px !important;
|
|
6
|
-
${T}px !important;
|
|
7
|
-
${V}px !important;
|
|
8
|
-
}
|
|
9
|
-
`),()=>{o.current?.removeAttribute("data-motion-pop-id"),j.contains(S)&&j.removeChild(S)}},[e]),h.jsx(Yi,{isPresent:e,childRef:o,sizeRef:l,pop:a,children:a===!1?t:g.cloneElement(t,{ref:d})})}const Xi=({children:t,initial:e,isPresent:i,onExitComplete:s,custom:r,presenceAffectsLayout:a,mode:n,anchorX:o,anchorY:l,root:c})=>{const u=Me(Ki),d=g.useId();let f=!0,m=g.useMemo(()=>(f=!1,{id:d,initial:e,isPresent:i,custom:r,onExitComplete:y=>{u.set(y,!0);for(const x of u.values())if(!x)return;s&&s()},register:y=>(u.set(y,!1),()=>u.delete(y))}),[i,u,s]);return a&&f&&(m={...m}),g.useMemo(()=>{u.forEach((y,x)=>u.set(x,!1))},[i]),g.useEffect(()=>{!i&&!u.size&&s&&s()},[i]),t=h.jsx(qi,{pop:n==="popLayout",isPresent:i,anchorX:o,anchorY:l,root:c,children:t}),h.jsx(Ne.Provider,{value:m,children:t})};function Ki(){return new Map}function Ze(t=!0){const e=g.useContext(Ne);if(e===null)return[!0,null];const{isPresent:i,onExitComplete:s,register:r}=e,a=g.useId();g.useEffect(()=>{if(t)return r(a)},[t]);const n=g.useCallback(()=>t&&s&&s(a),[a,s,t]);return!i&&s?[!1,n]:[!0]}const ot=t=>t.key||"";function ve(t){const e=[];return g.Children.forEach(t,i=>{g.isValidElement(i)&&e.push(i)}),e}const Zn=({children:t,custom:e,initial:i=!0,onExitComplete:s,presenceAffectsLayout:r=!0,mode:a="sync",propagate:n=!1,anchorX:o="left",anchorY:l="top",root:c})=>{const[u,d]=Ze(n),f=g.useMemo(()=>ve(t),[t]),m=n&&!u?[]:f.map(ot),y=g.useRef(!0),x=g.useRef(f),P=Me(()=>new Map),b=g.useRef(new Set),[w,k]=g.useState(f),[T,V]=g.useState(f);us(()=>{y.current=!1,x.current=f;for(let E=0;E<T.length;E++){const C=ot(T[E]);m.includes(C)?(P.delete(C),b.current.delete(C)):P.get(C)!==!0&&P.set(C,!1)}},[T,m.length,m.join("-")]);const S=[];if(f!==w){let E=[...f];for(let C=0;C<T.length;C++){const L=T[C],O=ot(L);m.includes(O)||(E.splice(C,0,L),S.push(L))}return a==="wait"&&S.length&&(E=S),V(ve(E)),k(f),null}const{forceRender:j}=g.useContext(Ve);return h.jsx(h.Fragment,{children:T.map(E=>{const C=ot(E),L=n&&!u?!1:f===T||m.includes(C),O=()=>{if(b.current.has(C))return;if(P.has(C))b.current.add(C),P.set(C,!0);else return;let _=!0;P.forEach(z=>{z||(_=!1)}),_&&(j?.(),V(x.current),n&&d?.(),s&&s())};return h.jsx(Xi,{isPresent:L,initial:!y.current||i?void 0:!1,custom:e,presenceAffectsLayout:r,mode:a,root:c,onExitComplete:L?void 0:O,anchorX:o,anchorY:l,children:E},C)})})};function it(t,e,i,s){return Vt(t,e,ws(i),s)}const Qe=({current:t})=>t?t.ownerDocument.defaultView:null,be=(t,e)=>Math.abs(t-e);function Zi(t,e){const i=be(t.x,e.x),s=be(t.y,e.y);return Math.sqrt(i**2+s**2)}const Pe=new Set(["auto","scroll"]);class Je{constructor(e,i,{transformPagePoint:s,contextWindow:r=window,dragSnapToOrigin:a=!1,distanceThreshold:n=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=rt(this.lastRawMoveEventInfo,this.transformPagePoint));const m=kt(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,x=Zi(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!x)return;const{point:P}=m,{timestamp:b}=B;this.history.push({...P,timestamp:b});const{onStart:w,onMove:k}=this.handlers;y||(w&&w(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,m)},this.handlePointerMove=(m,y)=>{this.lastMoveEvent=m,this.lastRawMoveEventInfo=y,this.lastMoveEventInfo=rt(y,this.transformPagePoint),M.update(this.updatePoint,!0)},this.handlePointerUp=(m,y)=>{this.end();const{onEnd:x,onSessionEnd:P,resumeAnimation:b}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=kt(m.type==="pointercancel"?this.lastMoveEventInfo:rt(y,this.transformPagePoint),this.history);this.startEvent&&x&&x(m,w),P&&P(m,w)},!Ts(e))return;this.dragSnapToOrigin=a,this.handlers=i,this.transformPagePoint=s,this.distanceThreshold=n,this.contextWindow=r||window;const l=Ie(e),c=rt(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=B;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=i;f&&f(e,kt(c,this.history)),this.removeListeners=ks(it(this.contextWindow,"pointermove",this.handlePointerMove),it(this.contextWindow,"pointerup",this.handlePointerUp),it(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let i=e.parentElement;for(;i;){const s=getComputedStyle(i);(Pe.has(s.overflowX)||Pe.has(s.overflowY))&&this.scrollPositions.set(i,{x:i.scrollLeft,y:i.scrollTop}),i=i.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const i=this.scrollPositions.get(e);if(!i)return;const s=e===window,r=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},a={x:r.x-i.x,y:r.y-i.y};a.x===0&&a.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=a.x,this.lastMoveEventInfo.point.y+=a.y):this.history.length>0&&(this.history[0].x-=a.x,this.history[0].y-=a.y),this.scrollPositions.set(e,r),M.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),nt(this.updatePoint)}}function rt(t,e){return e?{point:e(t.point)}:t}function we(t,e){return{x:t.x-e.x,y:t.y-e.y}}function kt({point:t},e){return{point:t,delta:we(t,ts(e)),offset:we(t,Qi(e)),velocity:Ji(e,.1)}}function Qi(t){return t[0]}function ts(t){return t[t.length-1]}function Ji(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null;const r=ts(t);for(;i>=0&&(s=t[i],!(r.timestamp-s.timestamp>Wt(e)));)i--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&r.timestamp-s.timestamp>Wt(e)*2&&(s=t[1]);const a=hs(r.timestamp-s.timestamp);if(a===0)return{x:0,y:0};const n={x:(r.x-s.x)/a,y:(r.y-s.y)/a};return n.x===1/0&&(n.x=0),n.y===1/0&&(n.y=0),n}function tn(t,{min:e,max:i},s){return e!==void 0&&t<e?t=s?D(e,t,s.min):Math.max(t,e):i!==void 0&&t>i&&(t=s?D(i,t,s.max):Math.min(t,i)),t}function Te(t,e,i){return{min:e!==void 0?t.min+e:void 0,max:i!==void 0?t.max+i-(t.max-t.min):void 0}}function en(t,{top:e,left:i,bottom:s,right:r}){return{x:Te(t.x,i,r),y:Te(t.y,e,s)}}function ke(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function sn(t,e){return{x:ke(t.x,e.x),y:ke(t.y,e.y)}}function nn(t,e){let i=.5;const s=N(t),r=N(e);return r>s?i=Lt(e.min,e.max-s,t.min):s>r&&(i=Lt(t.min,t.max-r,e.min)),Le(0,1,i)}function on(t,e){const i={};return e.min!==void 0&&(i.min=e.min-t.min),e.max!==void 0&&(i.max=e.max-t.min),i}const Mt=.35;function rn(t=Mt){return t===!1?t=0:t===!0&&(t=Mt),{x:Se(t,"left","right"),y:Se(t,"top","bottom")}}function Se(t,e,i){return{min:Ee(t,e),max:Ee(t,i)}}function Ee(t,e){return typeof t=="number"?t:t[e]||0}const an=new WeakMap;class ln{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=R(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:i=!1,distanceThreshold:s}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const a=d=>{i&&this.snapToCursor(Ie(d).point),this.stopAnimation()},n=(d,f)=>{const{drag:m,dragPropagation:y,onDragStart:x}=this.getProps();if(m&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Xs(m),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),U(b=>{let w=this.getAxisMotionValue(b).get()||0;if(mt.test(w)){const{projection:k}=this.visualElement;if(k&&k.layout){const T=k.layout.layoutBox[b];T&&(w=N(T)*(parseFloat(w)/100))}}this.originPoint[b]=w}),x&&M.update(()=>x(d,f),!1,!0),Gt(this.visualElement,"transform");const{animationState:P}=this.visualElement;P&&P.setActive("whileDrag",!0)},o=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:m,dragDirectionLock:y,onDirectionLock:x,onDrag:P}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:b}=f;if(y&&this.currentDirection===null){this.currentDirection=un(b),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,b),this.updateAxis("y",f.point,b),this.visualElement.render(),P&&M.update(()=>P(d,f),!1,!0)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new Je(e,{onSessionStart:a,onStart:n,onMove:o,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:s,contextWindow:Qe(this.visualElement),element:this.visualElement.current})}stop(e,i){const s=e||this.latestPointerEvent,r=i||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!r||!s)return;const{velocity:n}=r;this.startAnimation(n);const{onDragEnd:o}=this.getProps();o&&M.postRender(()=>o(s,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:i}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,i,s){const{drag:r}=this.getProps();if(!s||!at(e,r,this.currentDirection))return;const a=this.getAxisMotionValue(e);let n=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(n=tn(n,this.constraints[e],this.elastic[e])),a.set(n)}resolveConstraints(){const{dragConstraints:e,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&tt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=en(s.layoutBox,e):this.constraints=!1,this.elastic=rn(i),r!==this.constraints&&!tt(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&U(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=on(s.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!tt(e))return!1;const s=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());const a=Ss(s,r.root,this.visualElement.getTransformPagePoint());let n=sn(r.layout.layoutBox,a);if(i){const o=i(Es(n));this.hasMutatedConstraints=!!o,o&&(n=js(o))}return n}startAnimation(e){const{drag:i,dragMomentum:s,dragElastic:r,dragTransition:a,dragSnapToOrigin:n,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},c=U(u=>{if(!at(u,i,this.currentDirection))return;let d=l&&l[u]||{};(n===!0||n===u)&&(d={min:0,max:0});const f=r?200:1e6,m=r?40:1e7,y={type:"inertia",velocity:s?e[u]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(u,y)});return Promise.all(c).then(o)}startAxisValueAnimation(e,i){const s=this.getAxisMotionValue(e);return Gt(this.visualElement,e),s.start(Be(e,s,0,i,this.visualElement,!1))}stopAnimation(){U(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const i=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps()[i];return r||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){U(i=>{const{drag:s}=this.getProps();if(!at(i,s,this.currentDirection))return;const{projection:r}=this.visualElement,a=this.getAxisMotionValue(i);if(r&&r.layout){const{min:n,max:o}=r.layout.layoutBox[i],l=a.get()||0;a.set(e[i]-D(n,o,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:i}=this.getProps(),{projection:s}=this.visualElement;if(!tt(i)||!s||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};U(n=>{const o=this.getAxisMotionValue(n);if(o&&this.constraints!==!1){const l=o.get();r[n]=nn({min:l,max:l},this.constraints[n])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),U(n=>{if(!at(n,e,null))return;const o=this.getAxisMotionValue(n),{min:l,max:c}=this.constraints[n];o.set(D(l,c,r[n]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;an.set(this.visualElement,this);const e=this.visualElement.current,i=it(e,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),f=c.target,m=f!==e&&Cs(f);u&&d&&!m&&this.start(c)});let s;const r=()=>{const{dragConstraints:c}=this.getProps();tt(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),s||(s=cn(e,c.current,()=>this.scalePositionWithinConstraints())))},{projection:a}=this.visualElement,n=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),M.read(r);const o=Vt(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(U(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())}));return()=>{o(),i(),n(),l&&l(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:s=!1,dragPropagation:r=!1,dragConstraints:a=!1,dragElastic:n=Mt,dragMomentum:o=!0}=e;return{...e,drag:i,dragDirectionLock:s,dragPropagation:r,dragConstraints:a,dragElastic:n,dragMomentum:o}}}function je(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function cn(t,e,i){const s=qt(t,je(i)),r=qt(e,je(i));return()=>{s(),r()}}function at(t,e,i){return(e===!0||e===t)&&(i===null||i===t)}function un(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}class hn extends Oe{constructor(e){super(e),this.removeGroupControls=Z,this.removeListeners=Z,this.controls=new ln(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Z}update(){const{dragControls:e}=this.node.getProps(),{dragControls:i}=this.node.prevProps||{};e!==i&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const St=t=>(e,i)=>{t&&M.update(()=>t(e,i),!1,!0)};class dn extends Oe{constructor(){super(...arguments),this.removePointerDownListener=Z}onPointerDown(e){this.session=new Je(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Qe(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:i,onPan:s,onPanEnd:r}=this.node.getProps();return{onSessionStart:St(e),onStart:St(i),onMove:St(s),onEnd:(a,n)=>{delete this.session,r&&M.postRender(()=>r(a,n))}}}mount(){this.removePointerDownListener=it(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Et=!1;class fn extends g.Component{componentDidMount(){const{visualElement:e,layoutGroup:i,switchLayoutGroup:s,layoutId:r}=this.props,{projection:a}=e;a&&(i.group&&i.group.add(a),s&&s.register&&r&&s.register(a),Et&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ft.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:i,visualElement:s,drag:r,isPresent:a}=this.props,{projection:n}=s;return n&&(n.isPresent=a,e.layoutDependency!==i&&n.setOptions({...n.options,layoutDependency:i}),Et=!0,r||e.layoutDependency!==i||i===void 0||e.isPresent!==a?n.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?n.promote():n.relegate()||M.postRender(()=>{const o=n.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:i}=this.props,{projection:s}=e;s&&(s.options.layoutAnchor=i,s.root.didUpdate(),Ae.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:i,switchLayoutGroup:s}=this.props,{projection:r}=e;Et=!0,r&&(r.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(r),s&&s.deregister&&s.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function es(t){const[e,i]=Ze(),s=g.useContext(Ve);return h.jsx(fn,{...t,layoutGroup:s,switchLayoutGroup:g.useContext(ds),isPresent:e,safeToRemove:i})}const mn={pan:{Feature:dn},drag:{Feature:hn,ProjectionNode:Ke,MeasureLayout:es}},pn={layout:{ProjectionNode:Ke,MeasureLayout:es}},gn={...Rs,...Ds,...mn,...pn},Qn=fs(gn,Ls),lt="rounded-lg bg-[color-mix(in_srgb,var(--hud-ink)_4.5%,transparent)]",jt="rounded-md border border-[color-mix(in_srgb,var(--hud-ink)_10%,transparent)] bg-[color-mix(in_srgb,var(--hud-bg)_70%,transparent)] text-[var(--scout-chrome-ink-strong)] outline-none transition-colors focus:border-lime-300/45",Ct="rounded-md border border-[color-mix(in_srgb,var(--hud-ink)_8%,transparent)] text-[var(--scout-chrome-ink)] transition-colors hover:bg-[var(--scout-chrome-hover)] hover:text-[var(--scout-chrome-ink-strong)] disabled:cursor-not-allowed disabled:opacity-40",Dt="font-mono text-xs uppercase tracking-[0.11em] text-[var(--scout-chrome-ink-ghost)]";function yn(t){return t==="live"?{label:"Live",detail:"Listening — speak naturally",chip:"border-lime-300/35 bg-lime-300/[0.10] text-lime-100",iconWrap:"border-lime-300/40 bg-lime-300/[0.10] text-lime-200"}:t==="connecting"?{label:"Connecting",detail:"Opening secure audio…",chip:"border-amber-300/30 bg-amber-300/[0.09] text-amber-100/90",iconWrap:"border-amber-300/35 bg-amber-300/[0.09] text-amber-100"}:t==="error"?{label:"Error",detail:"Could not hold the call",chip:"border-red-400/35 bg-red-400/[0.10] text-red-100",iconWrap:"border-red-400/35 bg-red-400/[0.10] text-red-100"}:t==="ended"?{label:"Ended",detail:"Call closed — start again anytime",chip:"border-[color-mix(in_srgb,var(--hud-ink)_12%,transparent)] text-[var(--scout-chrome-ink-faint)]",iconWrap:"border-[color-mix(in_srgb,var(--hud-ink)_10%,transparent)] bg-[color-mix(in_srgb,var(--hud-ink)_4%,transparent)] text-[var(--scout-chrome-ink-faint)]"}:{label:"Ready",detail:"Talk continuously with Scoutbot",chip:"border-transparent bg-[color-mix(in_srgb,var(--hud-ink)_6%,transparent)] text-[var(--scout-chrome-ink-faint)]",iconWrap:"border-transparent bg-[color-mix(in_srgb,var(--hud-ink)_5%,transparent)] text-[var(--scout-chrome-ink-faint)]"}}function Jn({state:t,onMinimize:e,onExpand:i,layout:s="compact"}){const r=yn(t),a=s==="page";return h.jsxs("header",{className:`flex items-start ${a?"gap-3.5 px-5 py-4":"gap-2.5 px-3.5 py-3"}`,children:[h.jsx("div",{className:`${a?"size-9":"size-7"} mt-px flex shrink-0 items-center justify-center rounded-md border ${r.iconWrap}`,children:t==="connecting"?h.jsx(et,{size:a?14:12,className:"animate-spin"}):t==="live"?h.jsxs("span",{className:"relative flex size-2",children:[h.jsx("span",{className:"absolute inline-flex size-full animate-ping rounded-full bg-lime-300/35"}),h.jsx("span",{className:"relative inline-flex size-2 rounded-full bg-lime-300/90"})]}):h.jsx(ze,{size:a?14:12})}),h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsxs("div",{className:"flex items-center justify-between gap-2",children:[h.jsx("h2",{className:`truncate font-medium text-[var(--scout-chrome-ink-strong)] ${a?"text-2xl":"text-base"}`,children:"Live voice"}),h.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[h.jsx("span",{className:`rounded border px-1.5 py-px font-mono text-xs uppercase tracking-[0.1em] ${r.chip}`,children:r.label}),i&&h.jsx("button",{type:"button",onClick:i,title:a?"Return to compact live voice view":"Open full live voice view","aria-label":a?"Return to compact live voice view":"Open full live voice view",className:"flex size-6 items-center justify-center rounded-md text-[var(--scout-chrome-ink-faint)] transition-colors hover:bg-[var(--scout-chrome-hover)] hover:text-[var(--scout-chrome-ink-strong)]",children:a?h.jsx(Vs,{size:12}):h.jsx(Bs,{size:12})}),e&&h.jsx("button",{type:"button",onClick:e,title:"Collapse live voice into the status bar","aria-label":"Collapse live voice into the status bar",className:"flex size-6 items-center justify-center rounded-md text-[var(--scout-chrome-ink-faint)] transition-colors hover:bg-[var(--scout-chrome-hover)] hover:text-[var(--scout-chrome-ink-strong)]",children:h.jsx(Is,{size:12})})]})]}),h.jsx("p",{className:`mt-0.5 leading-snug text-[var(--scout-chrome-ink-faint)] ${a?"text-base":"text-sm"}`,children:r.detail})]})]})}function to({dictationActive:t,layout:e="compact"}){const{enabled:i,state:s,error:r,trace:a,chatState:n,chatStatus:o,chatError:l,sessionAction:c,startCall:u,endCall:d,startNewChat:f,switchChat:m,updatePreferredModel:y,clearTrace:x,openVoiceSettings:P}=As(),b=s==="connecting"||s==="live",[w,k]=g.useState("controls"),T=vn(r),V=e==="page",[S,j]=g.useState(""),[E,C]=g.useState(!1),[L,O]=g.useState(!1),[_,z]=g.useState(null);g.useEffect(()=>{!L&&n?.config.model&&j(n.config.model)},[n?.config.model,L]);const v=async()=>{if(!(!S.trim()||L)){O(!0),z(null);try{const p=await y(S);j(p),z("Saved")}catch(p){z(p instanceof Error?p.message:"Could not save model.")}finally{O(!1)}}},A=!i&&!b?{label:"Open voice settings",icon:h.jsx(Yt,{size:11}),tone:"border-[color-mix(in_srgb,var(--hud-ink)_10%,transparent)] bg-[color-mix(in_srgb,var(--hud-ink)_5%,transparent)] text-[var(--scout-chrome-ink)] hover:bg-[var(--scout-chrome-hover)]"}:s==="connecting"?{label:"Cancel connection",icon:h.jsx(et,{size:11,className:"animate-spin"}),tone:"border-amber-300/35 bg-amber-300/[0.10] text-amber-100 hover:bg-amber-300/[0.16]"}:s==="live"?{label:"End live voice",icon:h.jsx(zs,{size:9,className:"fill-current"}),tone:"border-red-400/35 bg-red-400/[0.10] text-red-100 hover:bg-red-400/[0.16]"}:{label:"Start live voice",icon:h.jsx(Us,{size:10,className:"fill-current"}),tone:"border-lime-300/40 bg-lime-300/[0.12] text-lime-100 hover:bg-lime-300/[0.18]"};return h.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[h.jsx("nav",{className:`grid shrink-0 grid-cols-2 border-b border-[var(--scout-chrome-border-soft)] ${V?"px-5":"px-3.5"}`,"aria-label":"Live voice views",children:[{id:"controls",label:"Controls",icon:h.jsx(ze,{size:11})},{id:"activity",label:"Activity",icon:h.jsx(Ys,{size:11})}].map(p=>h.jsxs("button",{type:"button",onClick:()=>k(p.id),"aria-current":w===p.id,className:`-mb-px flex items-center justify-center gap-1.5 border-b-2 font-mono uppercase tracking-[0.1em] transition-colors ${V?"h-11 text-sm":"h-9 text-xs"} ${w===p.id?"border-lime-300/80 text-[var(--scout-chrome-ink-strong)]":"border-transparent text-[var(--scout-chrome-ink-faint)] hover:text-[var(--scout-chrome-ink-strong)]"}`,children:[p.icon,p.label,p.id==="activity"&&a.length>0&&h.jsx("span",{className:"rounded-full bg-[color-mix(in_srgb,var(--hud-ink)_10%,transparent)] px-1.5 py-px font-mono text-xs text-[var(--scout-chrome-ink-faint)]",children:a.length})]},p.id))}),w==="activity"?h.jsxs("div",{className:`flex min-h-0 flex-1 flex-col ${V?"p-5":"p-3.5"}`,children:[h.jsxs("div",{className:"mb-2 flex shrink-0 items-center justify-between",children:[h.jsx("p",{className:Dt,children:"Session activity"}),a.length>0&&h.jsx("button",{type:"button",onClick:x,className:"font-mono text-xs uppercase tracking-[0.09em] text-[var(--scout-chrome-ink-ghost)] transition-colors hover:text-[var(--scout-chrome-ink-strong)]",children:"Clear"})]}),a.length===0?h.jsx("div",{className:"flex flex-1 items-center justify-center rounded-lg border border-dashed border-[color-mix(in_srgb,var(--hud-ink)_10%,transparent)] px-6 text-center text-sm leading-relaxed text-[var(--scout-chrome-ink-faint)]",children:"Start a call to record requests, replies, navigation attempts, and delivery results."}):h.jsx("ol",{className:`min-h-0 flex-1 overflow-y-auto ${lt}`,children:a.map((p,$)=>h.jsxs("li",{className:`px-2.5 py-2 ${$>0?"border-t border-[var(--scout-chrome-border-soft)]":""}`,children:[h.jsxs("div",{className:"flex items-start justify-between gap-2",children:[h.jsxs("div",{className:"flex min-w-0 items-start gap-1.5",children:[h.jsx("span",{className:`mt-px shrink-0 rounded border px-1 py-px font-mono text-xs uppercase tracking-[0.08em] ${Pn(p.kind)}`,children:bn(p.kind)}),h.jsx("span",{className:"min-w-0 text-sm leading-snug text-[var(--scout-chrome-ink-strong)]",children:p.label})]}),h.jsx("time",{className:"shrink-0 font-mono text-xs text-[var(--scout-chrome-ink-ghost)]",children:xn(p.at)})]}),p.detail&&h.jsx("span",{className:"mt-1 block whitespace-pre-wrap break-words font-mono text-xs leading-relaxed text-[var(--scout-chrome-ink-faint)]",children:p.detail})]},p.id))})]}):h.jsxs("div",{className:`flex min-h-0 w-full flex-1 flex-col overflow-y-auto ${V?"mx-auto max-w-2xl gap-4 p-5":"gap-2.5 p-3.5"}`,children:[h.jsxs("section",{className:`${lt} shrink-0 p-3`,children:[h.jsx("p",{className:"text-base font-medium text-[var(--scout-chrome-ink-strong)]",children:"Live conversation"}),h.jsx("p",{className:"mt-0.5 text-sm leading-snug text-[var(--scout-chrome-ink-faint)]",children:s==="live"?"Microphone and spoken replies are active.":s==="connecting"?"Opening the audio connection…":i?"Start when you are ready to speak.":"Turn on live voice before starting a call."}),h.jsxs("button",{type:"button",disabled:t&&!b,onClick:()=>{b?d():i?u():P()},className:`mt-3 flex h-9 w-full items-center justify-center gap-2 rounded-md border font-mono text-sm uppercase tracking-[0.1em] transition-colors disabled:cursor-not-allowed disabled:opacity-40 ${A.tone}`,children:[A.icon,A.label]}),t&&!b&&h.jsx("p",{className:"mt-2 text-xs leading-relaxed text-amber-200/80",children:"Finish dictation before starting a live call."}),T&&h.jsx("p",{className:"mt-2 rounded-md border border-red-400/30 bg-red-400/[0.08] px-2 py-1.5 text-sm leading-relaxed text-red-100",children:T})]}),h.jsxs("section",{className:`${lt} shrink-0 p-3`,children:[h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx(_s,{size:11,className:"shrink-0 text-[var(--scout-chrome-ink-ghost)]"}),h.jsx("p",{className:Dt,children:"Live chat"})]}),h.jsx("p",{className:"mt-1.5 truncate text-base text-[var(--scout-chrome-ink-strong)]",title:n?.session.id,children:n?.session.title||(o==="failed"?"Chat unavailable":o==="ready"?"Untitled chat":"Loading chat…")}),h.jsx("p",{className:"mt-0.5 text-sm leading-snug text-[var(--scout-chrome-ink-faint)]",children:"Context stays with this chat when voice stops or the panel closes."}),o==="failed"&&l&&h.jsx("p",{className:"mt-1.5 rounded-md border border-red-400/30 bg-red-400/[0.08] px-2 py-1.5 text-sm leading-relaxed text-red-100",children:l}),h.jsxs("div",{className:"mt-2.5 flex min-w-0 items-center gap-1.5",children:[n&&n.sessions.length>1&&h.jsxs("label",{className:"min-w-0 flex-1",children:[h.jsx("span",{className:"sr-only",children:"Switch live chat"}),h.jsx("select",{value:n.session.id,disabled:!!c,onChange:p=>{m(p.target.value)},className:`h-8 w-full min-w-0 px-2 font-mono text-sm disabled:cursor-wait disabled:opacity-50 ${jt}`,title:"Switch live chat; an active voice connection will end",children:n.sessions.map(p=>h.jsxs("option",{value:p.id,children:[p.title||`Chat ${p.id.slice(0,8)}`," · ",p.messageCount," msg"]},p.id))})]}),h.jsxs("button",{type:"button",onClick:()=>{f()},disabled:!n||!!c,title:"Start a new chat; an active voice connection will end",className:`flex h-8 shrink-0 items-center justify-center gap-1.5 px-2.5 font-mono text-xs uppercase tracking-[0.09em] disabled:cursor-wait ${Ct}`,children:[c==="new"?h.jsx(et,{size:10,className:"animate-spin"}):h.jsx(Os,{size:10}),"New chat"]})]})]}),h.jsxs("section",{className:`${lt} shrink-0 p-3`,children:[h.jsxs("div",{className:"flex items-center justify-between gap-2",children:[h.jsxs("div",{className:"min-w-0",children:[h.jsx("p",{className:Dt,children:"Scoutbot reply model"}),h.jsx("p",{className:"mt-1 truncate font-mono text-base text-[var(--scout-chrome-ink-strong)]",children:n?.config.model||"—"})]}),h.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n?.config.provider&&h.jsx("span",{className:"font-mono text-xs uppercase tracking-[0.08em] text-[var(--scout-chrome-ink-ghost)]",children:n.config.provider}),h.jsx("button",{type:"button",onClick:()=>{z(null),C(p=>!p)},"aria-expanded":E,className:`flex h-7 items-center px-2 font-mono text-xs uppercase tracking-[0.09em] ${Ct}`,children:E?"Close":"Change"})]})]}),E&&h.jsxs("div",{className:"mt-2.5 border-t border-[var(--scout-chrome-border-soft)] pt-2.5",children:[h.jsx("p",{className:"text-sm leading-snug text-[var(--scout-chrome-ink-faint)]",children:"Used for typed and live Scoutbot replies."}),h.jsxs("div",{className:"mt-2 flex gap-1.5",children:[(n?.config.modelOptions?.length??0)>0?h.jsx("select",{value:S,onChange:p=>{j(p.target.value),z(null)},"aria-label":"Preferred Scoutbot model",className:`h-8 min-w-0 flex-1 px-2 font-mono text-sm ${jt}`,children:n?.config.modelOptions?.map(p=>h.jsx("option",{value:p.id,children:p.label},p.id))}):h.jsx("input",{value:S,onChange:p=>{j(p.target.value),z(null)},onKeyDown:p=>{p.key==="Enter"&&v()},placeholder:"gpt-5.6-luna","aria-label":"Preferred Scoutbot model",className:`h-8 min-w-0 flex-1 px-2 font-mono text-sm ${jt}`}),h.jsx("button",{type:"button",onClick:()=>{v()},disabled:L||!S.trim()||S.trim()===n?.config.model,className:`flex h-8 min-w-14 items-center justify-center px-2 font-mono text-xs uppercase tracking-[0.09em] ${Ct}`,children:L?h.jsx(et,{size:10,className:"animate-spin"}):"Apply"})]}),_&&h.jsx("p",{className:"mt-1.5 font-mono text-xs text-[var(--scout-chrome-ink-faint)]",children:_})]})]}),h.jsxs("button",{type:"button",onClick:P,className:"mt-auto flex h-8 w-full shrink-0 items-center justify-center gap-1.5 rounded-md font-mono text-xs uppercase tracking-[0.09em] text-[var(--scout-chrome-ink-faint)] transition-colors hover:bg-[var(--scout-chrome-hover)] hover:text-[var(--scout-chrome-ink-strong)]",children:[h.jsx(Yt,{size:11}),"Voice settings"]})]})]})}function xn(t){return new Date(t).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function vn(t){if(!t)return null;const e=t.toLowerCase();return e.includes("active response in progress")||e.includes("conversation already has an active response")?null:e.includes("realtime voice call is already active")?"Live voice is still running on this Scout host. Stop it from the footer, or wait a moment for it to finish closing.":t}function bn(t){switch(t){case"navigation":return"Navigate";case"scoutbot":return"Scoutbot";case"agent":return"Agent ask";case"error":return"Error";default:return"Voice"}}function Pn(t){switch(t){case"navigation":return"border-sky-300/25 bg-sky-300/[0.06] text-sky-100/80";case"scoutbot":return"border-violet-300/25 bg-violet-300/[0.06] text-violet-100/80";case"agent":return"border-amber-300/25 bg-amber-300/[0.06] text-amber-100/80";case"error":return"border-red-300/25 bg-red-300/[0.06] text-red-100/80";default:return"border-lime-300/20 bg-lime-300/[0.05] text-lime-100/70"}}const Nt="openscout:toggle-scoutbot";function wn(t){if(typeof window>"u")return;const e={};window.dispatchEvent(new CustomEvent(Nt,{detail:e}))}function eo(t){if(typeof window>"u")return()=>{};const e=i=>{const s=i.detail??{};t(s)};return window.addEventListener(Nt,e),()=>window.removeEventListener(Nt,e)}function Tn(t){switch(t){case"listening":return"listening";case"thinking":return"thinking";case"speaking":return"speaking";case"briefing":return"thinking";default:return""}}function kn(t){return t==="thinking"||t==="briefing"}function Sn(t){return t!=="idle"?{kind:"activity",activity:t,label:Tn(t)}:{kind:"idle"}}function En(t,e,i){const s=[];return t.kind==="activity"?s.push(`Scout · ${t.label}`):s.push("Toggle Scout"),e&&s.push(e),i&&s.push(i),s.join(`
|
|
10
|
-
`)}function so(){const{state:t,actions:e}=Ms(),i=Ns(),s=Sn(t.activity),r=En(s,t.session.title,t.error),a=s.kind==="activity"?"s-scoutbot-chip--activity":"s-scoutbot-chip--idle",n=()=>{wn()},o=l=>{const c=[{kind:"action",label:"New chat",onSelect:()=>e.startNewChat()},{kind:"action",label:t.voice.replies?"Turn voice replies off":"Turn voice replies on",onSelect:()=>e.toggleVoiceReplies()},{kind:"separator"},{kind:"action",label:"Open chat",onSelect:()=>e.focusScoutbot()}];i(l,c)};return h.jsxs("button",{type:"button",className:`s-scoutbot-chip ${a}`,onClick:n,onContextMenu:o,title:r,children:[h.jsx(Fs,{size:14,className:"s-scoutbot-chip-icon","aria-hidden":"true"}),s.kind==="activity"&&h.jsxs(h.Fragment,{children:[kn(s.activity)?h.jsx(et,{size:10,className:"s-scoutbot-chip-spinner","aria-hidden":"true"}):h.jsx("span",{className:"s-scoutbot-chip-dot s-scoutbot-chip-dot--pulse","aria-hidden":"true"}),h.jsx("span",{className:"s-scoutbot-chip-text",children:s.label})]})]})}function Ot(t){return t.handle??t.id}function jn(t,e){if(!e)return!0;const i=e.toLowerCase();return t.name.toLowerCase().includes(i)||Ot(t).toLowerCase().includes(i)||t.id.toLowerCase().includes(i)}function Cn({agents:t,query:e,excludeIds:i,maxResults:s=50}){const r=g.useMemo(()=>new Set(i??[]),[i]),a=g.useMemo(()=>t.filter(d=>!r.has(d.id)&&jn(d,e.trim())).slice(0,s),[t,r,e,s]),[n,o]=g.useState(0);g.useEffect(()=>{o(u=>a.length===0?0:Math.min(u,a.length-1))},[a]);const l=g.useCallback(u=>{o(d=>a.length===0?0:(d+u+a.length)%a.length)},[a.length]),c=g.useCallback(()=>o(0),[]);return{filtered:a,highlightedIndex:n,setHighlightedIndex:o,moveHighlight:l,resetHighlight:c}}function Dn({agents:t,highlightedIndex:e,onSelect:i,onHover:s,emptyHint:r,pendingId:a,className:n,id:o}){return t.length===0?h.jsx("div",{className:`agent-autocomplete ${n??""}`,id:o,children:h.jsx("div",{className:"agent-autocomplete-empty",children:r??"No matches."})}):h.jsx("div",{className:`agent-autocomplete ${n??""}`,role:"listbox",id:o,children:t.map((l,c)=>{const u=Ot(l),d=c===e;return h.jsxs("button",{type:"button",role:"option","aria-selected":d,className:`agent-autocomplete-item${d?" is-active":""}`,onMouseDown:f=>{f.preventDefault(),i(l)},onMouseEnter:()=>s?.(c),disabled:a===l.id,children:[h.jsx("div",{className:"agent-autocomplete-avatar",style:{background:Ws(l.name)},children:l.name[0]?.toUpperCase()??"?"}),h.jsxs("div",{className:"agent-autocomplete-info",children:[h.jsx("span",{className:"agent-autocomplete-name",children:l.name}),h.jsxs("span",{className:"agent-autocomplete-handle",children:["@",u]})]})]},l.id)})})}const Rn=/(^|\s)@([a-zA-Z0-9_.-]*)$/,ct=4,Ln=254;function An(t,e){if(e<=0)return null;const i=t.slice(0,e),s=Rn.exec(i);if(!s)return null;s[1];const r=s[2]??"",a=i.length-r.length-1;return a<0?null:(t.slice(e,e+1),{start:a,end:e,query:r})}const Mn=["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 Nn(t,e){const i=document.createElement("div");document.body.appendChild(i);const s=i.style,r=window.getComputedStyle(t);s.position="absolute",s.visibility="hidden",s.whiteSpace="pre-wrap",s.wordWrap="break-word",s.top="0",s.left="-9999px";for(const c of Mn)s[c]=r[c];i.textContent=t.value.slice(0,e);const a=document.createElement("span");a.textContent=t.value.slice(e)||".",i.appendChild(a);const n=a.offsetTop,o=a.offsetLeft,l=parseInt(r.lineHeight,10)||a.offsetHeight;return document.body.removeChild(i),{top:n,left:o,height:l}}const io=g.forwardRef(function({agents:e,excludeIds:i,value:s,onChange:r,onSubmit:a,placeholder:n,rows:o=1,disabled:l,submitOnEnter:c=!1,className:u,textareaClassName:d,emptyHint:f,onMention:m},y){const x=g.useRef(null),P=g.useRef(null),[b,w]=g.useState(null),[k,T]=g.useState(null);g.useImperativeHandle(y,()=>({focus:()=>x.current?.focus(),blur:()=>x.current?.blur(),get textarea(){return x.current}}),[]);const V=b?.query??"",{filtered:S,highlightedIndex:j,setHighlightedIndex:E,moveHighlight:C}=Cn({agents:e,query:V,excludeIds:i}),L=g.useCallback(()=>{const v=x.current;if(!v)return;const A=window.getComputedStyle(v),p=parseFloat(A.minHeight)||0,$=parseFloat(A.maxHeight);v.style.height="0px";const F=Math.max(v.scrollHeight,p),W=Number.isFinite($)&&$>0?Math.min(F,$):F;v.style.height=`${W}px`,v.style.overflowY=F>W?"auto":"hidden"},[]);g.useLayoutEffect(()=>{L()},[L,s]);const O=g.useCallback(()=>{const v=x.current;if(!v)return;const A=An(v.value,v.selectionStart??0);w(A)},[]);g.useLayoutEffect(()=>{const v=x.current;if(!v||!b){T(null);return}const{top:A,left:p,height:$}=Nn(v,b.start),F=v.getBoundingClientRect(),W=v.parentElement?.getBoundingClientRect(),Q=W?F.top-W.top:0,gt=W?F.left-W.left:0,J=P.current?.offsetHeight||Ln,G=window.visualViewport,zt=G?.offsetTop??0,ss=zt+(G?.height??window.innerHeight),$t=F.top+A-v.scrollTop,is=$t+$,Ut=ss-is-ct,ns=$t-zt-ct,os=Ut<J&&ns>Ut;T({top:os?Q+A-v.scrollTop-J-ct:Q+A+$-v.scrollTop+ct,left:gt+p-v.scrollLeft})},[b,s,S.length]);const _=g.useCallback(v=>{const A=x.current,p=b;if(!A||!p)return;const $=Ot(v),F=s.slice(0,p.start),W=s.slice(p.end),Q=`@${$} `,gt=`${F}${Q}${W}`;r(gt),m?.(v),w(null);const J=p.start+Q.length;queueMicrotask(()=>{const G=x.current;G&&(G.focus(),G.setSelectionRange(J,J))})},[b,s,r,m]),z=v=>{if($s(v)||c&&v.key==="Enter"&&!v.shiftKey&&!v.nativeEvent?.isComposing&&!(b&&S.length>0)){v.preventDefault(),a?.();return}if(b&&S.length>0){if(v.key==="ArrowDown"){v.preventDefault(),C(1);return}if(v.key==="ArrowUp"){v.preventDefault(),C(-1);return}if(v.key==="Enter"||v.key==="Tab"){if(v.key==="Enter"&&v.shiftKey)return;const p=S[j];if(p){v.preventDefault(),_(p);return}}if(v.key==="Escape"){v.preventDefault(),w(null);return}}};return h.jsxs("div",{className:`agent-mention-wrap ${u??""}`,children:[h.jsx("textarea",{ref:x,className:d,value:s,rows:o,placeholder:n,disabled:l,onChange:v=>{r(v.target.value),L(),queueMicrotask(O)},onKeyUp:O,onClick:O,onBlur:()=>w(null),onKeyDown:z,"aria-autocomplete":"list"}),b&&h.jsx("div",{ref:P,className:"agent-mention-popover",style:{top:`${k?.top??0}px`,left:`${k?.left??0}px`,visibility:k?void 0:"hidden"},children:h.jsx(Dn,{agents:S,highlightedIndex:j,onSelect:_,onHover:E,emptyHint:f??"No matches."})})]})});export{io as A,_s as H,Yt as S,Zn as a,so as b,Jn as c,to as d,Qn as m,eo as o};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as o}from"./createLucideIcon-DkjnzvcJ.js";const e=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],c=o("arrow-down",e);export{c as A};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/xterm-B1YBE4Gq.js","assets/index-C8uS5szO.js","assets/index-Ck1__1yL.css","assets/addon-fit-MR98IWES.js","assets/addon-webgl-CIIKXrvK.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{r as t,j as n,_ as te}from"./index-C8uS5szO.js";import{u as Ue}from"./chunk-HRAB3GC3-C5X-kFhb.js";var $e={titleBarInset:0,dragRegionProps:{},onInteractiveMouseDown:void 0,isSSR:!0,apiBaseUrl:"",serviceApiUrl:""},Xe=t.createContext($e);function Ge(){return t.useContext(Xe)}var Ce="hudson:terminal:voice-transcript",Ne="hudson:terminal:voice-submit",st='[data-hudson-terminal-drawer-content="true"]',Je=t.createContext(void 0),Ye={background:"#091112",foreground:"#d7e5e2",cursor:"#35d7d0",cursorAccent:"#091112",selectionBackground:"#173739",selectionForeground:"#f3fbf9",black:"#091112",red:"#ff6b6b",green:"#35d07f",yellow:"#f5c451",blue:"#62b4ff",magenta:"#ff7ab6",cyan:"#32d5ca",white:"#d7e5e2",brightBlack:"#667777",brightRed:"#ff8f8f",brightGreen:"#5ee79f",brightYellow:"#ffd36e",brightBlue:"#8dccff",brightMagenta:"#ff9fca",brightCyan:"#67eee3",brightWhite:"#ffffff"},qe={background:"#f7faf9",foreground:"#111a19",cursor:"#006f6a",cursorAccent:"#f7faf9",selectionBackground:"#c0e7e2",selectionForeground:"#0d1716",black:"#111a19",red:"#9f1f18",green:"#006c46",yellow:"#704600",blue:"#075985",magenta:"#9d174d",cyan:"#006f6a",white:"#dbe5e2",brightBlack:"#52635f",brightRed:"#c2271f",brightGreen:"#007f55",brightYellow:"#865b00",brightBlue:"#0369a1",brightMagenta:"#be185d",brightCyan:"#007f89",brightWhite:"#ffffff"},Qe=`
|
|
3
|
-
.xterm { cursor: text; position: relative; user-select: none; -ms-user-select: none; -webkit-user-select: none; }
|
|
4
|
-
.xterm.focus, .xterm:focus { outline: none; }
|
|
5
|
-
.xterm .xterm-helpers { position: absolute; top: 0; z-index: 5; }
|
|
6
|
-
.xterm .xterm-helper-textarea { padding: 0; border: 0; margin: 0; position: absolute; opacity: 0; left: -9999em; top: 0; width: 0; height: 0; z-index: -5; white-space: nowrap; overflow: hidden; resize: none; }
|
|
7
|
-
.xterm .composition-view { background: var(--hud-terminal-bg, #091112); color: var(--hud-terminal-fg, #d7e5e2); display: none; position: absolute; white-space: nowrap; z-index: 1; }
|
|
8
|
-
.xterm .composition-view.active { display: block; }
|
|
9
|
-
.xterm .xterm-viewport { background-color: var(--hud-terminal-bg, transparent); overflow-y: scroll; cursor: default; position: absolute; right: 0; left: 0; top: 0; bottom: 0; }
|
|
10
|
-
.xterm .xterm-screen { position: relative; }
|
|
11
|
-
.xterm .xterm-screen canvas { position: absolute; left: 0; top: 0; }
|
|
12
|
-
.xterm-char-measure-element { display: inline-block; visibility: hidden; position: absolute; top: 0; left: -9999em; line-height: normal; }
|
|
13
|
-
.xterm.enable-mouse-events { cursor: default; }
|
|
14
|
-
.xterm.xterm-cursor-pointer, .xterm .xterm-cursor-pointer { cursor: pointer; }
|
|
15
|
-
.xterm.column-select.focus { cursor: crosshair; }
|
|
16
|
-
.xterm .xterm-accessibility:not(.debug), .xterm .xterm-message { position: absolute; left: 0; top: 0; bottom: 0; right: 0; z-index: 10; color: transparent; pointer-events: none; }
|
|
17
|
-
.xterm .xterm-accessibility-tree:not(.debug) *::selection { color: transparent; }
|
|
18
|
-
.xterm .xterm-accessibility-tree { font-family: monospace; user-select: text; white-space: pre; }
|
|
19
|
-
.xterm .xterm-accessibility-tree > div { transform-origin: left; width: fit-content; }
|
|
20
|
-
.xterm .live-region { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
|
|
21
|
-
.xterm-dim { opacity: 1 !important; }
|
|
22
|
-
.xterm-underline-1 { text-decoration: underline; }
|
|
23
|
-
.xterm-underline-2 { text-decoration: double underline; }
|
|
24
|
-
.xterm-underline-3 { text-decoration: wavy underline; }
|
|
25
|
-
.xterm-underline-4 { text-decoration: dotted underline; }
|
|
26
|
-
.xterm-underline-5 { text-decoration: dashed underline; }
|
|
27
|
-
.xterm-overline { text-decoration: overline; }
|
|
28
|
-
.xterm-overline.xterm-underline-1 { text-decoration: overline underline; }
|
|
29
|
-
.xterm-overline.xterm-underline-2 { text-decoration: overline double underline; }
|
|
30
|
-
.xterm-overline.xterm-underline-3 { text-decoration: overline wavy underline; }
|
|
31
|
-
.xterm-overline.xterm-underline-4 { text-decoration: overline dotted underline; }
|
|
32
|
-
.xterm-overline.xterm-underline-5 { text-decoration: overline dashed underline; }
|
|
33
|
-
.xterm-strikethrough { text-decoration: line-through; }
|
|
34
|
-
.xterm-screen .xterm-decoration-container .xterm-decoration { z-index: 6; position: absolute; }
|
|
35
|
-
.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer { z-index: 7; }
|
|
36
|
-
.xterm-decoration-overview-ruler { z-index: 8; position: absolute; top: 0; right: 0; pointer-events: none; }
|
|
37
|
-
.xterm-decoration-top { z-index: 2; position: relative; }
|
|
38
|
-
.xterm .xterm-scrollable-element > .scrollbar { cursor: default; }
|
|
39
|
-
.xterm .xterm-scrollable-element > .scrollbar > .scra { cursor: pointer; font-size: 11px !important; }
|
|
40
|
-
.xterm .xterm-scrollable-element > .visible { opacity: 1; background: rgba(0,0,0,0); transition: opacity 100ms linear; z-index: 11; }
|
|
41
|
-
.xterm .xterm-scrollable-element > .invisible { opacity: 0; pointer-events: none; }
|
|
42
|
-
.xterm .xterm-scrollable-element > .invisible.fade { transition: opacity 800ms linear; }
|
|
43
|
-
.xterm .xterm-scrollable-element > .shadow { position: absolute; display: none; }
|
|
44
|
-
.xterm .xterm-scrollable-element > .shadow.top { display: block; top: 0; left: 3px; height: 3px; width: 100%; }
|
|
45
|
-
.xterm .xterm-scrollable-element > .shadow.left { display: block; top: 3px; left: 0; height: 100%; width: 3px; }
|
|
46
|
-
`;function Ze(){if(typeof document>"u"||document.querySelector("[data-xterm-css]"))return;const l=document.createElement("style");l.setAttribute("data-xterm-css",""),l.textContent=Qe,document.head.appendChild(l)}function re(l,d){if(typeof l!="object"||l===null)return;const f=l,u=f[d];if(u)return u;const v=f.default;if(!(typeof v!="object"||v===null))return v[d]}function ke(l,d){if(!l||d&&!l.closest(d))return!1;const f=l.getBoundingClientRect();if(f.width<=0||f.height<=0)return!1;const u=window.getComputedStyle(l);return u.display!=="none"&&u.visibility!=="hidden"}var et="\x1B[13;2u",Te="\r";function tt(l){return new Promise((d,f)=>{const u=new FileReader;u.onload=()=>{const v=u.result;d(v.split(",")[1])},u.onerror=f,u.readAsDataURL(l)})}function rt({relay:l,fontSize:d=12,fontFamily:f="'JetBrains Mono', 'Hack Nerd Font', monospace",scrollback:u=5e3,renderer:v="auto",readOnly:je=!1,ariaLabel:ne="Terminal",className:oe,style:_e,colorScheme:ie="auto",configItems:V,onOpenSettings:L,onStartService:j,quiet:se=!1,voiceVisibilityScope:le,imageUploadUrl:ae,onReady:H,onDispose:W,onResize:K,onRendererChange:U},De){const{status:s,error:$,exitCode:X,cwd:Ae,setCwd:Se,sendInput:ce,resize:ue,onData:G,onDimensions:O,connect:p,disconnect:Le,controlMode:J="owner"}=l,C=je||J==="observe",Oe=t.useContext(Je),I=le===!1?void 0:le??Oe,[de,fe]=t.useState(!1),{apiBaseUrl:Ie}=Ge(),Me=Ue(),me=ie==="auto"?Me?.resolvedTheme==="light"?"light":"dark":ie,N=me==="light"?qe:Ye,Y=me==="light"?4.5:3,_=t.useRef(null),M=t.useRef(null),a=t.useRef(null),q=t.useRef(null),D=t.useRef(null),P=t.useRef(!1),[k,Q]=t.useState(!1),[Pe,T]=t.useState(!1),w=t.useRef(0),b=t.useRef(C),xe=t.useRef(null),Z=t.useRef(null),h=t.useRef(null),E=t.useRef(null),pe=t.useRef(H),be=t.useRef(W),he=t.useRef(K),ee=t.useRef(U);t.useEffect(()=>{b.current=C,C&&(D.current=null,P.current=!1,w.current=0,T(!1))},[C]),t.useEffect(()=>{pe.current=H},[H]),t.useEffect(()=>{be.current=W},[W]),t.useEffect(()=>{he.current=K},[K]),t.useEffect(()=>{ee.current=U},[U]),t.useEffect(()=>{const e=_.current;if(!e)return;const r=o=>{o.key===" "&&!o.metaKey&&!o.ctrlKey&&!o.altKey&&o.stopPropagation()};return e.addEventListener("keydown",r),()=>e.removeEventListener("keydown",r)},[]);const m=ae===void 0?`${Ie}/api/relay/upload`:ae,x=t.useCallback(e=>{b.current||ce(e)},[ce]),ge=t.useCallback((e,r)=>{if(!Number.isFinite(e)||!Number.isFinite(r)||e<=0||r<=0)return;const o=xe.current;o&&o.cols===e&&o.rows===r||(xe.current={cols:e,rows:r},ue(e,r),he.current?.(e,r))},[ue]),y=t.useCallback(()=>{const e=q.current,r=a.current;if(!e||!r)return null;try{const o=e.proposeDimensions();return o?((J!=="observe"||!Z.current)&&e.fit(),ge(o.cols,o.rows),Z.current??{cols:r.cols,rows:r.rows}):null}catch{return null}},[J,ge]),ve=t.useCallback(()=>{h.current===null&&(h.current=window.requestAnimationFrame(()=>{h.current=null,y()}))},[y]);t.useImperativeHandle(De,()=>({focus:()=>{a.current?.focus()},fit:y,clear:()=>{a.current?.clear()},getDimensions:()=>{const e=a.current;return e?{cols:e.cols,rows:e.rows}:null},getTerminal:()=>a.current}),[y]);const B=t.useCallback(e=>{const r=e.transcript.replace(/\s+/g," ").trim();r&&x(e.submit?`${r}${Te}`:r)},[x]),F=t.useCallback(()=>{x(Te)},[x]);t.useEffect(()=>{const e=r=>{if(b.current||!ke(_.current,I))return;const o=r.detail;if(!(!o||typeof o.transcript!="string")){if(s==="connected"){B(o);return}D.current=o,s!=="connecting"&&p()}};return window.addEventListener(Ce,e),()=>window.removeEventListener(Ce,e)},[p,B,s,I]),t.useEffect(()=>{if(s!=="connected"||!D.current)return;const e=D.current;D.current=null,B(e)},[B,s]),t.useEffect(()=>{const e=()=>{if(!b.current&&ke(_.current,I)){if(s==="connected"){F();return}P.current=!0,s!=="connecting"&&p()}};return window.addEventListener(Ne,e),()=>window.removeEventListener(Ne,e)},[p,F,s,I]),t.useEffect(()=>{s!=="connected"||!P.current||(P.current=!1,F())},[F,s]);const z=t.useCallback(async e=>{if(!m)return null;try{const r=await tt(e),o=await fetch(m,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e.name,data:r})}),{path:c}=await o.json();return c||null}catch(r){return console.error("File upload failed:",r),null}},[m]);t.useEffect(()=>{const e=_.current;if(!e)return;const r=async o=>{if(!o.clipboardData||!m)return;const c=Array.from(o.clipboardData.items).filter(g=>g.type.startsWith("image/"));if(c.length!==0&&(o.preventDefault(),o.stopPropagation(),!b.current))for(const g of c){const A=g.getAsFile();if(!A)continue;const S=await z(A);S&&x(S)}};return e.addEventListener("paste",r),()=>e.removeEventListener("paste",r)},[x,z,m]);const Be=t.useCallback(e=>{if(e.preventDefault(),b.current||!m){e.dataTransfer.dropEffect="none";return}e.dataTransfer.dropEffect="copy"},[m]),Fe=t.useCallback(e=>{if(e.preventDefault(),b.current||!m){w.current=0,T(!1);return}w.current++,e.dataTransfer.types.includes("Files")&&T(!0)},[m]),ze=t.useCallback(e=>{if(e.preventDefault(),b.current){w.current=0,T(!1);return}w.current--,w.current===0&&T(!1)},[]),Ve=t.useCallback(async e=>{if(e.preventDefault(),w.current=0,T(!1),b.current||!m)return;const r=Array.from(e.dataTransfer.files).filter(o=>o.type.startsWith("image/"));if(r.length!==0)for(const o of r){const c=await z(o);c&&x(c)}},[x,z,m]);t.useEffect(()=>{let e=!1,r=null;Q(!1);async function o(){const[c,g,A]=await Promise.all([te(()=>import("./xterm-B1YBE4Gq.js").then(i=>i.x),__vite__mapDeps([0,1,2])),te(()=>import("./addon-fit-MR98IWES.js").then(i=>i.a),__vite__mapDeps([3,1,2])),te(()=>import("./addon-webgl-CIIKXrvK.js").then(i=>i.a),__vite__mapDeps([4,1,2])).catch(()=>null)]),S=re(c,"Terminal"),ye=re(g,"FitAddon"),we=A?re(A,"WebglAddon"):void 0;if(!S||!ye){console.error("[TerminalRelay] @xterm/xterm or @xterm/addon-fit missing constructors",{xtermMod:c,fitMod:g});return}if(Ze(),e||!M.current)return;r=new S({fontSize:d,fontFamily:f,theme:N,minimumContrastRatio:Y,cursorBlink:!0,cursorStyle:"bar",allowTransparency:!0,scrollback:u,convertEol:!1,allowProposedApi:!0});const Ee=new ye;r.loadAddon(Ee),r.open(M.current),a.current=r,q.current=Ee;let Re="dom";if(v!=="dom"&&we)try{const i=new we;i.onContextLoss(()=>{i.dispose(),ee.current?.("dom")}),r.loadAddon(i),Re="webgl"}catch{}ee.current?.(Re),y(),r.attachCustomKeyEventHandler(i=>i.type==="keydown"&&i.key==="Enter"&&i.shiftKey&&!i.ctrlKey&&!i.altKey&&!i.metaKey?(i.preventDefault(),i.stopPropagation(),x(et),!1):!0),r.onData(i=>{x(i)}),Q(!0),pe.current?.(r)}return o(),()=>{e=!0,Q(!1),h.current!==null&&(window.cancelAnimationFrame(h.current),h.current=null),r&&(r.dispose(),a.current=null,q.current=null),be.current?.()}},[y,v,u,x]),t.useEffect(()=>{const e=a.current;e&&(e.options.fontSize=d,e.options.fontFamily=f,y())},[y,d,f]),t.useEffect(()=>{const e=a.current;e&&(e.options.theme=N,e.options.minimumContrastRatio=Y)},[Y,N]),t.useEffect(()=>{if(!(!k||!O))return O((e,r)=>{Z.current={cols:e,rows:r};const o=a.current;o&&(o.cols!==e||o.rows!==r)&&o.resize(e,r)}),()=>O(null)},[k,O]),t.useEffect(()=>{if(k)return G((e,r)=>{let o=!1;const c=()=>{o||(o=!0,r())},g=a.current;if(!g){c();return}try{g.write(e,c)}catch{c()}}),()=>{G(null)}},[k,G]),t.useEffect(()=>{const e=M.current;if(!e||!k)return;const r=new ResizeObserver(()=>{ve()});return r.observe(e),()=>{r.disconnect(),h.current!==null&&(window.cancelAnimationFrame(h.current),h.current=null)}},[k,ve]),t.useEffect(()=>{s==="connected"&&a.current&&a.current.focus()},[s]);const He=t.useCallback(()=>{s==="connected"&&a.current&&a.current.focus()},[s]),We=s==="error"&&$==="Relay service is not running",Ke=t.useCallback(async()=>{if(j){fe(!0);try{await j()&&(E.current&&clearTimeout(E.current),E.current=setTimeout(()=>{E.current=null,p()},500))}finally{fe(!1)}}},[j,p]);t.useEffect(()=>()=>{E.current&&(clearTimeout(E.current),E.current=null)},[]);let R=null;return We?R=n.jsxs("div",{className:"flex flex-col items-center gap-4 max-w-xs text-center px-4",children:[n.jsx("div",{className:"w-8 h-8 rounded-full bg-amber-500/10 border border-amber-500/20 flex items-center justify-center",children:n.jsx("span",{className:"text-amber-400 text-[14px]",children:"!"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-[12px] text-foreground font-medium mb-1",children:"Relay service not running"}),n.jsx("div",{className:"text-[11px] text-muted-foreground/80 leading-relaxed",children:j?"Start the relay service to open a terminal session.":"Start the relay service from the Workspace Manager."})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[j&&n.jsx("button",{type:"button",onClick:Ke,disabled:de,className:"text-[11px] px-4 py-1.5 rounded-full border border-accent/30 text-accent hover:bg-accent/10 transition-colors font-medium disabled:opacity-50",children:de?"Starting":"Start Service"}),n.jsx("button",{type:"button",onClick:()=>p(),className:"text-[11px] px-3 py-1.5 rounded-full border border-border text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",children:"Retry"}),L&&n.jsx("button",{type:"button",onClick:L,className:"text-[11px] px-3 py-1.5 rounded-full border border-border text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",children:"Settings"})]})]}):s==="error"&&$?R=n.jsxs("div",{className:"flex flex-col items-center gap-3 max-w-md text-center px-4",children:[n.jsx("div",{className:"w-8 h-8 rounded-full bg-red-500/10 flex items-center justify-center",children:n.jsx("span",{className:"text-red-400 text-sm",children:"!"})}),n.jsx("span",{className:"text-red-400 text-[12px] font-medium",children:"Session failed"}),n.jsx("code",{className:"text-[11px] text-muted-foreground bg-muted/80 px-3 py-2 rounded-md whitespace-pre-wrap leading-relaxed max-h-32 overflow-y-auto w-full text-left",children:$}),X!==null&&X!==0&&n.jsxs("span",{className:"text-[10px] text-muted-foreground/60",children:["Exit code ",X]}),n.jsx("button",{type:"button",onClick:()=>p(),className:"text-[11px] px-3 py-1 rounded-full border border-cyan-500/30 text-cyan-400 hover:bg-cyan-500/10 transition-colors",children:"Retry"})]}):s==="disconnected"&&!se?R=n.jsxs("div",{className:"flex flex-col items-center gap-4 max-w-xs text-center px-4",children:[n.jsx("div",{className:"w-8 h-8 rounded-full bg-muted border border-border flex items-center justify-center",children:n.jsx("span",{className:"text-muted-foreground/80 text-[14px]",children:"▷"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-[12px] text-foreground font-medium mb-1",children:"Terminal relay disconnected"}),n.jsx("div",{className:"text-[11px] text-muted-foreground/80 leading-relaxed",children:"Set working directory and connect."})]}),n.jsxs("form",{className:"w-full",onSubmit:e=>{e.preventDefault(),p()},children:[n.jsx("label",{className:"text-[10px] font-mono text-muted-foreground/80 uppercase tracking-wider mb-1 block text-left",children:"Working Directory"}),n.jsx("input",{type:"text",value:Ae,onChange:e=>Se(e.target.value),placeholder:"~/dev/my-project",className:"w-full bg-muted/80 border border-border/50 rounded px-3 py-1.5 text-[11px] font-mono text-foreground placeholder:text-muted-foreground/60 outline-none focus:border-accent/40 transition-colors",spellCheck:!1,autoComplete:"off"})]}),V&&V.length>0&&n.jsx("div",{className:"w-full grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 text-[10px] font-mono bg-muted/60 border border-border/40 rounded-md px-3 py-2",children:V.map(e=>n.jsxs("div",{className:"contents",children:[n.jsx("span",{className:"text-muted-foreground/80",children:e.label}),n.jsx("span",{className:"text-muted-foreground truncate text-left",children:e.value})]},e.label))}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("button",{type:"button",onClick:()=>p(),className:"text-[11px] px-4 py-1.5 rounded-full border border-cyan-500/30 text-cyan-400 hover:bg-cyan-500/10 transition-colors font-medium",children:"Connect"}),L&&n.jsx("button",{type:"button",onClick:L,className:"text-[11px] px-3 py-1.5 rounded-full border border-border text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",children:"Settings"})]})]}):s==="connecting"&&!se&&(R=n.jsxs("div",{className:"flex flex-col items-center gap-3 text-center",children:[n.jsx("div",{className:"w-6 h-6 border-2 border-muted-foreground/30 border-t-cyan-500 rounded-full animate-spin"}),n.jsx("span",{className:"text-[12px] text-muted-foreground",children:"Connecting to relay"}),n.jsx("button",{type:"button",onClick:()=>{Le()},className:"text-[10px] px-3 py-1 rounded-full border border-border text-muted-foreground/80 hover:text-foreground hover:bg-muted transition-colors",children:"Cancel"})]})),n.jsxs("div",{ref:_,className:oe?`relative flex flex-col h-full overflow-hidden ${oe}`:"relative flex flex-col h-full overflow-hidden",style:_e,role:"application","aria-label":C?`${ne} (read only)`:ne,"data-readonly":C?"true":void 0,onClick:He,onDragOver:Be,onDragEnter:Fe,onDragLeave:ze,onDrop:Ve,children:[R&&n.jsx("div",{className:"flex items-center justify-center h-full font-mono text-[12px] absolute inset-0 z-10 bg-background/95",children:R}),Pe&&n.jsx("div",{className:"absolute inset-0 z-20 flex items-center justify-center bg-cyan-500/10 border-2 border-dashed border-cyan-500/50 rounded pointer-events-none",children:n.jsx("span",{className:"text-cyan-400 font-mono text-sm",children:"Drop image to get path"})}),n.jsx("div",{ref:M,className:"flex-1 min-h-0 min-w-0 overflow-hidden",style:{visibility:R?"hidden":"visible",backgroundColor:N.background,"--hud-terminal-bg":N.background,"--hud-terminal-fg":N.foreground}})]})}var nt=t.forwardRef(rt);nt.displayName="TerminalRelay";export{st as H,nt as T,Je as a,Ge as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,j as s}from"./index-C8uS5szO.js";import{P as Q}from"./plus-D_wLGJGT.js";import{c as O}from"./createLucideIcon-DkjnzvcJ.js";const ee=[["path",{d:"M5 12h14",key:"1ays0h"}]],te=O("minus",ee);var ne=({panOffset:u,scale:o,onPan:p,onPanStart:h,onPanEnd:a,isPanLocked:l=!1,onClick:m,showGuides:f=!1,onGuidesChange:y,gridOpacity:v=1})=>{const[d,k]=e.useState(f),[j,N]=e.useState(!1),c=e.useRef(!1),x=e.useRef({x:0,y:0}),n=e.useRef({active:!1,startX:0,startY:0}),z=e.useRef(null),M=e.useRef(null),S=e.useRef(null),A=4,H=e.useRef({x:0,y:0}),$=e.useRef(0),C=e.useRef(!1);e.useEffect(()=>{k(f)},[f]);const X=e.useCallback(t=>{const i=t;return i?i.tagName==="INPUT"||i.tagName==="TEXTAREA"||i.isContentEditable:!1},[]),Y=e.useCallback(t=>{const i=t;return i?!!i.closest('button, [role="button"], a, input, textarea, select, [data-interactive="true"]'):!1},[]),b=e.useCallback(t=>{c.current=t,N(t)},[]);e.useEffect(()=>{const t=r=>{if($.current=r.buttons,n.current.active&&(r.buttons&1)!==1&&(n.current.active=!1),c.current&&(r.buttons&1)!==1){b(!1),n.current.active=!1,a?.(),document.body.style.cursor="";return}if(l&&c.current){b(!1),n.current.active=!1,a?.(),document.body.style.cursor="";return}const g=z.current?.getBoundingClientRect(),w=g?r.clientX-g.left:r.clientX,_=g?r.clientY-g.top:r.clientY;if(H.current={x:w,y:_},M.current&&(M.current.style.left=`${w}px`),S.current&&(S.current.style.top=`${_}px`),n.current.active&&!c.current){const q=r.clientX-n.current.startX,J=r.clientY-n.current.startY;Math.hypot(q,J)>=A&&(n.current.active=!1,b(!0),C.current=!0,h?.(),x.current={x:r.clientX,y:r.clientY},document.body.style.cursor="grabbing")}c.current&&(p({x:(r.clientX-x.current.x)/o,y:(r.clientY-x.current.y)/o}),x.current={x:r.clientX,y:r.clientY})},i=r=>{$.current=r.buttons,n.current.active=!1,c.current&&(b(!1),a?.(),document.body.style.cursor="")},K=r=>{(r.metaKey||r.ctrlKey)&&r.key==="\\"&&(r.preventDefault(),k(g=>{const w=!g;return y?.(w),w}))},R=()=>{n.current.active=!1,i(new MouseEvent("mouseup"))};return window.addEventListener("mousemove",t),window.addEventListener("mouseup",i),window.addEventListener("keydown",K),window.addEventListener("blur",R),document.addEventListener("visibilitychange",R),()=>{window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",i),window.removeEventListener("keydown",K),window.removeEventListener("blur",R),document.removeEventListener("visibilitychange",R)}},[p,a,h,o,X,Y,l,b,y]),e.useEffect(()=>{!l||!c.current||(b(!1),a?.(),document.body.style.cursor="")},[l,a,b]);const P=t=>{C.current=!1,!(l||t.button!==0)&&(X(t.target)||Y(t.target)||($.current=t.buttons,n.current={active:!0,startX:t.clientX,startY:t.clientY},t.preventDefault()))},U=t=>{!C.current&&m&&m(t),C.current=!1},[I,Z]=e.useState({w:0,h:0});e.useEffect(()=>{const t=()=>Z({w:window.innerWidth,h:window.innerHeight});return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]);const L=Math.max(.4,Math.min(2,o)),E=100*L,D=20*L,F="var(--hud-canvas-dot-minor)",W="var(--hud-canvas-dot-major)",T="color-mix(in srgb, oklch(var(--accent)) 18%, transparent)",V=(I.w/2+u.x*o)%E,B=(I.h/2+u.y*o)%E;return s.jsxs("div",{ref:z,className:`absolute inset-0 z-0 overflow-hidden bg-background ${j?"cursor-grabbing":"cursor-grab"}`,onMouseDown:P,onClick:U,children:[s.jsx("div",{className:"absolute pointer-events-none",style:{inset:"-100px",opacity:.8*v,transition:"opacity 1s ease",backgroundImage:`radial-gradient(circle, ${F} 1px, transparent 1px)`,backgroundSize:`${D}px ${D}px`,backgroundPosition:`${V+100}px ${B+100}px`}}),s.jsx("div",{className:"absolute pointer-events-none",style:{inset:"-100px",opacity:.45*v,transition:"opacity 1s ease",backgroundImage:`radial-gradient(circle, ${W} 1.5px, transparent 1.5px)`,backgroundSize:`${E}px ${E}px`,backgroundPosition:`${V+100}px ${B+100}px`}}),d&&s.jsxs(s.Fragment,{children:[s.jsx("div",{ref:M,className:"absolute top-0 bottom-0 w-px pointer-events-none",style:{left:0,backgroundColor:T}}),s.jsx("div",{ref:S,className:"absolute left-0 right-0 h-px pointer-events-none",style:{top:0,backgroundColor:T}})]})]})},ce=ne,G={borderColor:"var(--hud-chrome-border, oklch(var(--border)))"},re=({scale:u,onZoom:o,min:p=.2,max:h=3,step:a=.1})=>{const[l,m]=e.useState(!1),[f,y]=e.useState(""),v=e.useRef(null),d=e.useCallback(n=>Math.min(h,Math.max(p,n)),[p,h]),k=e.useCallback(()=>{o(d(u+a))},[u,a,o,d]),j=e.useCallback(()=>{o(d(u-a))},[u,a,o,d]),N=e.useCallback(()=>{y(Math.round(u*100).toString()),m(!0)},[u]),c=e.useCallback(()=>{m(!1);const n=parseInt(f,10);!isNaN(n)&&n>0&&o(d(n/100))},[f,o,d]),x=e.useCallback(n=>{n.key==="Enter"?c():n.key==="Escape"&&m(!1)},[c]);return e.useEffect(()=>{l&&v.current&&(v.current.focus(),v.current.select())},[l]),s.jsxs("div",{className:"pointer-events-auto flex flex-col items-center bg-card/95 border rounded-none shadow-[var(--hud-shadow-panel)] overflow-hidden",style:G,children:[s.jsx("button",{onClick:k,className:"w-9 h-8 flex items-center justify-center hover:bg-accent/10 text-muted-foreground hover:text-foreground transition-colors",title:"Zoom in",children:s.jsx(Q,{size:14})}),s.jsx("div",{className:"w-full border-t border-b",style:G,children:l?s.jsx("input",{ref:v,type:"text",value:f,onChange:n=>y(n.target.value.replace(/[^0-9]/g,"")),onBlur:c,onKeyDown:x,className:"w-9 py-1.5 text-center text-[11px] font-mono text-foreground bg-background/60 outline-none tabular-nums"}):s.jsxs("button",{onClick:N,className:"w-9 py-1.5 text-center text-[11px] font-mono text-foreground hover:bg-accent/10 transition-colors cursor-text tabular-nums",title:"Click to set zoom",children:[Math.round(u*100),"%"]})}),s.jsx("button",{onClick:j,className:"w-9 h-8 flex items-center justify-center hover:bg-accent/10 text-muted-foreground hover:text-foreground transition-colors",title:"Zoom out",children:s.jsx(te,{size:14})})]})},ie=re;export{ce as C,ie as Z};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as he}from"./createLucideIcon-DkjnzvcJ.js";import{r as l,j as s}from"./index-C8uS5szO.js";import{A as ot}from"./arrow-down-WoVlkUmg.js";const at=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],it=he("arrow-up-down",at);const ct=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],lt=he("arrow-up",ct);const dt=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],_r=he("log-in",dt);function W(e){if(typeof window>"u")return null;try{return e==="local"?window.localStorage:window.sessionStorage}catch{return null}}function ut(e,t){const r=W(e);if(!r)return null;try{return r.getItem(t)}catch{return null}}function mt(e,t,r){const n=W(e);if(!n)return!1;try{return n.setItem(t,r),!0}catch{return!1}}function ft(e,t){const r=W(e);if(!r)return!1;try{return r.removeItem(t),!0}catch{return!1}}function pt(e){const t=W(e);if(!t)return[];try{const r=[],n=t.length;for(let o=0;o<n;o++){const a=t.key(o);typeof a=="string"&&r.push(a)}return r}catch{return[]}}var Fe={getItem(e){return ut("local",e)},setItem(e,t){return mt("local",e,t)},removeItem(e){return ft("local",e)},keys(){return pt("local")},isAvailable(){return W("local")!==null}};function gt(e="h",t=12){const r=globalThis.crypto;if(r&&typeof r.randomUUID=="function"){const o=r.randomUUID().replace(/-/g,"").slice(0,t);return e?`${e}_${o}`:o}if(r&&typeof r.getRandomValues=="function"){const o=new Uint8Array(Math.ceil(t/2));r.getRandomValues(o);const a=Array.from(o,c=>c.toString(16).padStart(2,"0")).join("").slice(0,t);return e?`${e}_${a}`:a}const n=Math.random().toString(36).slice(2,2+t);return e?`${e}_${n}`:n}var ht=200,xt=()=>Date.now(),bt=()=>gt("h",12),wt=e=>e instanceof Error?{name:e.name,message:e.message}:{message:String(e)},yt=()=>{const e=globalThis;return e.H_OBSERVABILITY===!0||e.H_DEBUG===!0},vt=class{constructor(){this.sinks=new Map}get size(){return this.sinks.size}add(e,t={}){const r=t.kinds?new Set(t.kinds):null;return this.sinks.set(e,{kinds:r}),()=>{this.sinks.delete(e)}}emit(e){for(const[t,r]of this.sinks)if(!(r.kinds&&!r.kinds.has(e.kind)))try{t(e)}catch{}}},kt=class{constructor(e){this.owner=e}log(e,t,r={}){const n={id:this.owner.createId(),kind:"log",timestamp:this.owner.now(),level:e,message:t,category:r.category,data:r.data};return this.owner.emit(n),n}debug(e,t){return this.log("debug",e,t)}info(e,t){return this.log("info",e,t)}warn(e,t){return this.log("warn",e,t)}error(e,t){return this.log("error",e,t)}},jt=class{constructor(e){this.owner=e}counter(e,t=1,r={}){return this.record("counter",e,t,r)}gauge(e,t,r={}){return this.record("gauge",e,t,r)}timing(e,t,r={}){return this.record("timing",e,t,{...r,unit:r.unit??"ms"})}record(e,t,r,n){const o={id:this.owner.createId(),kind:"metric",timestamp:this.owner.now(),metricType:e,name:t,value:r,category:n.category,unit:n.unit,tags:n.tags,data:n.data};return this.owner.emit(o),o}},Nt=class{constructor(e,t){this.owner=e,this.event=t,this.ended=!1,this.owner.emit({...t})}end(e){if(this.ended)return this.event;const t=this.owner.now();return this.ended=!0,this.event.endTime=t,this.event.durationMs=Math.max(0,t-this.event.startTime),this.event.status="ok",e&&(this.event.data={...this.event.data,...e}),this.owner.emit({...this.event}),this.event}error(e,t){if(this.ended)return this.event;const r=this.owner.now();return this.ended=!0,this.event.endTime=r,this.event.durationMs=Math.max(0,r-this.event.startTime),this.event.status="error",this.event.error=wt(e),t&&(this.event.data={...this.event.data,...t}),this.owner.emit({...this.event}),this.event}},St=class{constructor(e){this.owner=e}start(e,t={}){const r=this.owner.createId(),n=this.owner.now(),o={id:r,kind:"span",timestamp:n,name:e,traceId:t.traceId??r,parentId:t.parentId,startTime:n,status:"active",category:t.category,data:t.data};return new Nt(this.owner,o)}},It=class Pe{constructor(t={}){this.logger=new kt(this),this.metrics=new jt(this),this.trace=new St(this),this.sinks=new vt,this.buffer=[],this.enabled=t.enabled??!0,this.maxBufferSize=Math.max(0,t.maxBufferSize??ht),this.nowFn=t.now??xt,this.createIdFn=t.createId??bt}static global(t={}){return new Pe({...t,enabled:t.enabled??yt()})}get isEnabled(){return this.enabled}setEnabled(t){this.enabled=t}subscribe(t,r={}){const n=this.sinks.add(t,r);if(r.replay)for(const o of this.buffer)r.kinds&&!r.kinds.includes(o.kind)||t(o);return n}flush(){const t=this.buffer.slice();return this.buffer.length=0,t}snapshot(){return this.buffer.slice()}emit(t){return this.enabled&&(this.remember(t),this.sinks.size>0&&this.sinks.emit(t)),t}now(){return this.nowFn()}createId(){return this.createIdFn()}remember(t){this.maxBufferSize!==0&&(this.buffer.push(t),this.buffer.length>this.maxBufferSize&&this.buffer.splice(0,this.buffer.length-this.maxBufferSize))}},X=It.global(),Et=100,Tt=class{constructor(e={}){this.entries=[],this.listeners=new Set,this.maxEntries=Math.max(0,e.maxEntries??Et)}snapshot(){return this.entries}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}add(e){return this.maxEntries===0||(this.entries=[e,...this.entries].slice(0,this.maxEntries),this.notify()),e}update(e,t){let r=!1;this.entries=this.entries.map(n=>n.id!==e?n:(r=!0,t(n))),r&&this.notify()}clear(){this.entries.length!==0&&(this.entries=[],this.notify())}notify(){for(const e of this.listeners)try{e()}catch{}}};new Tt;var We="hudsonTrace",At=new Set(["cat","find","fd","grep","head","ls","pwd","rg","sed","tail","wc","which"]),Ct=new Set(["branch","diff","ls-files","log","rev-parse","show","status"]),Ve=new Set(["","agent.task"]);function $t(e,t){const r=e.filter(A),n=Rt(r);if(t==="raw")return{events:r,hiddenDetailEvents:0,collapsedEvents:0,relatedEventsByTrace:n};const o=Mt(r),a=[];let c=0;for(const f of o.values())(t==="details"||Dt(f))&&(c+=f.length,a.push(Lt(f)));return{events:a,hiddenDetailEvents:Math.max(0,r.length-c),collapsedEvents:Math.max(0,c-a.length),relatedEventsByTrace:n}}function A(e){const t=g(e);return e.category==="agent-action"||t.triggeredBy==="agent"||t.source==="workspace-ai"}function g(e){return e.data&&typeof e.data=="object"&&!Array.isArray(e.data)?e.data:{}}function d(e,t){const r=e[t];return typeof r=="string"&&r.trim()?r:null}function C(e){return e.kind==="span"?e.traceId:d(g(e),"traceId")}function xe(e){return d(g(e),"parentTraceId")}function Y(e){const t=g(e).metadata;if(!we(t))return null;const r=t.command;return Array.isArray(r)&&r.every(n=>typeof n=="string")?r:typeof r=="string"&&r.trim()?r.trim().split(/\s+/):null}function me(e){if(!e||e.length===0)return!1;const t=Ge(e[0]);if(At.has(t))return!0;if(t==="git"){const r=e.find((n,o)=>o>0&&!n.startsWith("-"));return r?Ct.has(r):!1}return!1}function be(e){const t=g(e),r=d(t,"appId")??d(t,"targetAppId");if(r)return r;const n=d(t,"action")??d(t,"playbook")??d(t,"commandId"),o=n&&!Ve.has(n)?Ot(n):null;if(o)return o;const a=Y(e);for(const c of a??[]){const f=Ue(c);if(f)return f}return null}function _t(e){const t=g(e)[We];if(!we(t))return null;const r=d(t,"traceId"),n=z(t,"eventCount"),o=z(t,"startedAt"),a=z(t,"endedAt"),c=z(t,"durationMs"),f=z(t,"hiddenDetailEvents")??0;return!r||n===void 0||o===void 0||a===void 0||c===void 0?null:{traceId:r,eventCount:n,startedAt:o,endedAt:a,durationMs:c,hiddenDetailEvents:f}}function Ke(e){if(!e||e.length===0)return null;const t=Ge(e[0]),r=e.map(Bt).find(Boolean);return me(e)?r?`Read ${r} with ${t}`:`Read with ${t}`:t==="bun"&&e[1]==="run"&&e[2]?`Run bun ${e[2]}`:e.slice(0,4).join(" ")}function De(e){return!e||e==="agent.task"?"Agent task":e.replace(/^hudson\./,"").replace(/[._:-]+/g," ").replace(/\s+/g," ").trim().split(" ").map((r,n)=>n===0?zt(r):r).join(" ")}function Mt(e){const t=new Map;for(const r of e){const n=C(r)??r.id,o=t.get(n);o?o.push(r):t.set(n,[r])}return t}function Rt(e){const t=new Map,r=(n,o)=>{if(!n)return;const a=t.get(n);a?a.some(c=>c.id===o.id)||a.push(o):t.set(n,[o])};for(const n of e)r(C(n)??n.id,n),r(xe(n),n),r(n.kind==="span"?n.parentId??null:null,n);for(const n of t.values())n.sort((o,a)=>o.timestamp-a.timestamp);return t}function Lt(e){const t=[...e].sort((c,f)=>c.timestamp-f.timestamp),r=ce(t,c=>ie(c)===3)??ce(t,c=>ie(c)===2)??ce(t,c=>ie(c)===1)??t[t.length-1],n=C(r)??r.id,o=t[0]?.timestamp??r.timestamp,a=t[t.length-1]?.timestamp??r.timestamp;return{...r,data:{...g(r),[We]:{traceId:n,eventCount:t.length,startedAt:o,endedAt:a,durationMs:Math.max(0,a-o),hiddenDetailEvents:Math.max(0,t.length-1)}}}}function Dt(e){return e.every(t=>xe(t))?!1:e.some(t=>{if(t.kind==="span")return!0;const r=g(t),n=d(r,"action")??d(r,"playbook")??"",o=!Ve.has(n),a=Y(t);return o||d(r,"commandId")||be(t)&&!a||Ht(r)&&!me(a)?!0:!!(a&&!me(a))})}function Ht(e){const t=e.args;return we(t)&&typeof t.prompt=="string"&&t.prompt.trim().length>0}function ie(e){if(e.kind==="span")return e.status==="error"?3:e.status==="ok"?2:e.status==="active"?1:0;const t=d(g(e),"status")??(e.kind==="log"?e.level:void 0);return t==="failed"||t==="error"?3:t==="completed"||t==="ok"?2:t==="started"||t==="active"?1:0}function ce(e,t){for(let r=e.length-1;r>=0;r--)if(t(e[r]))return e[r]}function Ot(e){if(!e)return null;const[t]=e.split(/[.:_-]/);return t||null}function Ue(e){const t=e.match(/(?:^|\/)app\/apps\/([^/\s]+)/);return t?t[1]:null}function Bt(e){const t=Ue(e);return t||null}function Ge(e){return e.split("/").pop()??e}function we(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function z(e,t){const r=e[t];return typeof r=="number"&&Number.isFinite(r)?r:void 0}function zt(e){return e&&`${e[0].toUpperCase()}${e.slice(1)}`}var Ft=l.createContext(null);function Pt(){return l.useContext(Ft)}function Wt(e){const t=Pt();return!t||e.startsWith("inst:")||e.startsWith("hudson.ws.")?e:`inst:${t.instanceId}:${e}`}function Vt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&typeof e.__v=="number"&&"value"in e}function Kt(e,t){const r=Fe.getItem(e);if(!r)return;let n;try{n=JSON.parse(r)}catch{return}const o=t?.version;if(o===void 0)return n;const[a,c]=Vt(n)?[n.value,n.__v]:[n,0];if(c===o)return a;if(t?.migrate)try{return t.migrate(a,c)}catch{return}}function Ut(e,t,r){let n;try{n=JSON.stringify(r===void 0?t:{__v:r,value:t})}catch{return}if(typeof n=="string"&&Fe.setItem(e,n))try{window.dispatchEvent(new CustomEvent("hudson:saved",{detail:{key:e}}))}catch{}}var Gt=()=>()=>{},Jt=()=>!0,Xt=()=>!1;function Yt(){return l.useSyncExternalStore(Gt,Jt,Xt)}function qt(e,t,r={}){const n=Yt(),o=Wt(e),a=r.enabled??!0,{version:c}=r,[f,$]=l.useState(t),V=l.useRef(!1);if(n&&a&&!V.current){V.current=!0;const _=Kt(o,r);_!==void 0&&$(_)}return l.useEffect(()=>{!n||!a||Ut(o,f,c)},[o,f,n,a,c]),[f,$]}var Qt=["debug","info","warn","error"],Zt=["log","metric","span"],er="hudson:open-app",le=340,J=440,He=900,tr=420,rr="hudson.hud-logger.inspector-width",nr=1,Oe={key:"time",direction:"desc"},Be="grid-cols-[62px_64px_76px_58px_72px_112px_128px_minmax(260px,1fr)_92px]";function sr(e){return typeof e!="number"||e===380?J:e}function Je(e=X,t={}){const r=t.maxEvents??200,[n,o]=l.useState(()=>e.snapshot().slice(-r).reverse());return l.useEffect(()=>{const a=()=>{o(e.snapshot().slice(-r).reverse())},c=e.subscribe(a);return a(),c},[r,e]),n}function Xe(e){const t=new Map;for(const r of e){if(r.kind!=="span")continue;(!t.get(r.id)||r.status!=="active")&&t.set(r.id,r.status)}return{total:e.length,errors:e.filter(r=>r.kind==="log"&&r.level==="error").length,warnings:e.filter(r=>r.kind==="log"&&r.level==="warn").length,agentActions:e.filter(A).length,activeSpans:Array.from(t.values()).filter(r=>r==="active").length,lastEvent:e[0]??null}}function or(e=X,t={}){const r=Je(e,t);return l.useMemo(()=>Xe(r),[r])}function Mr({observability:e=X,maxEvents:t=200,label:r="Logs",className:n="",showCounts:o=!1}){const a=or(e,{maxEvents:t}),c=a.errors>0?"red":a.warnings>0||a.activeSpans>0?"amber":"emerald";return s.jsxs("span",{className:`inline-flex min-w-0 items-center gap-2 font-mono text-[9px] font-light uppercase tracking-[0.18em] ${Ir(c)} ${n}`,title:`${a.total} events, ${a.errors} errors, ${a.activeSpans} active spans`,children:[s.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${Er(c)}`}),s.jsx("span",{children:r}),o&&a.errors>0?s.jsxs("span",{className:"tabular-nums font-semibold",children:[a.errors," err"]}):o&&a.warnings>0?s.jsxs("span",{className:"tabular-nums",children:[a.warnings," warn"]}):null]})}function Rr({observability:e=X,events:t,replayEvents:r,maxEvents:n=200,title:o="HudLogger",className:a="",emptyMessage:c="No events match the current filters.",showHeader:f=!0,showInspector:$=!0,initialTail:V=!0,initialScope:_="all"}){const q=Je(e,{maxEvents:n}),M=l.useMemo(()=>t?t.slice(0,n):!r||r.length===0?q:Sr(r,q,n),[t,r,q,n]),[Ye,qe]=l.useState(null),[R,ke]=l.useState("all"),[L,je]=l.useState("all"),[v,Ne]=l.useState(_),[E,Q]=l.useState(_==="agent-actions"?"actions":"raw"),[K,Qe]=l.useState(""),[D,Z]=l.useState(V),[h,Se]=l.useState(Oe),[ee,Ie]=l.useState(null),[te,T]=qt(rr,J,{version:nr,migrate:sr}),re=l.useRef(null),Ee=l.useRef(null),[Te,Ae]=l.useState(!1),k=l.useMemo(()=>$t(M,v==="agent-actions"?E:"raw"),[E,M,v]),Ce=v==="agent-actions"?k.events:M,$e=l.useMemo(()=>Ce.filter(i=>{if(L!=="all"&&i.kind!==L||R!=="all"&&(i.kind!=="log"||i.level!==R))return!1;if(!K.trim())return!0;const u=C(i)??i.id,p=k.relatedEventsByTrace.get(u)??[];return xr(i,p).includes(K.trim().toLowerCase())}),[k.relatedEventsByTrace,L,R,K,Ce]),w=l.useMemo(()=>kr($e,h),[$e,h]),Ze=D&&h.key==="time"&&h.direction==="desc"?w[0]?j(w[0]):null:Ye,x=w.find(i=>j(i)===Ze)??w[0]??null,_e=x?C(x)??x.id:null,et=_e?k.relatedEventsByTrace.get(_e)??[]:[],H=l.useMemo(()=>Xe(M),[M]),ne=l.useCallback(async(i,u)=>{await Nr(i)&&(Ie(u),window.setTimeout(()=>{Ie(m=>m===u?null:m)},1200))},[]),Me=l.useCallback(i=>{Z(!1),qe(j(i))},[]),S=l.useCallback(i=>{Z(!1),Se(u=>u.key!==i?{key:i,direction:vr(i)}:{key:i,direction:u.direction==="asc"?"desc":"asc"})},[]),tt=l.useCallback(()=>{D||Se(Oe),Z(i=>!i)},[D]),Re=l.useCallback(i=>{const u=fe(i);!u||typeof window>"u"||window.dispatchEvent(new CustomEvent(er,{detail:{appId:u,workspaceId:mr(i),source:"hud-logger"}}))},[]),O=l.useCallback((i,u)=>{const p=Math.min(He,Math.max(le,u-tr));return Math.max(le,Math.min(p,i))},[]),rt=l.useCallback(i=>{if(i.button!==0)return;const u=re.current,p=Ee.current;if(!u||!p)return;i.preventDefault();const m=i.clientX,B=p.getBoundingClientRect().width;Ae(!0),document.body.style.cursor="col-resize",document.body.style.userSelect="none";const Le=se=>{const oe=u.getBoundingClientRect().width,ae=O(B+(m-se.clientX),oe);p.style.setProperty("--inspector-width",`${ae}px`)},U=se=>{const oe=u.getBoundingClientRect().width,ae=O(B+(m-se.clientX),oe);T(ae),Ae(!1),document.body.style.cursor="",document.body.style.userSelect="",window.removeEventListener("pointermove",Le),window.removeEventListener("pointerup",U),window.removeEventListener("pointercancel",U)};window.addEventListener("pointermove",Le),window.addEventListener("pointerup",U),window.addEventListener("pointercancel",U)},[O,T]),nt=l.useCallback(()=>{T(J)},[T]);l.useEffect(()=>{if(typeof window>"u")return;const i=re.current;if(!i)return;const u=new ResizeObserver(()=>{const p=i.getBoundingClientRect().width;T(m=>{const B=O(m,p);return B===m?m:B})});return u.observe(i),()=>u.disconnect()},[O,T]);const st=l.useMemo(()=>({"--inspector-width":`${te}px`}),[te]);return s.jsxs("section",{ref:re,className:`flex min-h-[520px] flex-col overflow-hidden rounded-md border border-border bg-background text-foreground lg:flex-row ${a}`,children:[s.jsxs("main",{className:"flex min-h-0 min-w-0 flex-col border-b border-border/70 lg:flex-1 lg:border-b-0",children:[f&&s.jsxs("div",{className:"shrink-0 border-b border-border/70 bg-card/80 px-3 py-2.5",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[s.jsx(ir,{ariaLabel:"copy filtered table",copied:ee==="table",disabled:w.length===0,label:"copy all",onClick:()=>{ne(wr(w),"table")}}),s.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 font-mono text-[11px] font-normal uppercase tracking-[0.14em] text-muted-foreground",children:[s.jsx("span",{children:o}),s.jsxs("span",{className:"text-accent",children:[w.length," shown"]}),s.jsxs("span",{children:[H.total," buffered"]}),s.jsxs("span",{children:[H.agentActions," agent"]}),s.jsxs("span",{children:[H.errors," errors"]}),H.activeSpans>0&&s.jsxs("span",{className:"text-warning",children:[H.activeSpans," active"]}),v==="agent-actions"&&E!=="raw"&&k.hiddenDetailEvents>0&&s.jsxs("span",{children:[k.hiddenDetailEvents," detail hidden"]}),v==="agent-actions"&&k.collapsedEvents>0&&s.jsxs("span",{children:[k.collapsedEvents," collapsed"]})]})]}),s.jsxs("label",{className:"mt-2 flex min-w-0 items-center gap-2 rounded-md border border-border/70 bg-muted/20 px-2.5 py-2 font-mono text-[13px] font-normal text-accent transition-colors focus-within:border-accent/40 focus-within:bg-muted/30",children:[s.jsx("span",{className:"shrink-0 text-success",children:"$"}),s.jsx("input",{value:K,onChange:i=>Qe(i.target.value),placeholder:"grep message, category, payload",className:"min-w-0 flex-1 bg-transparent text-foreground outline-none placeholder:text-muted-foreground"})]}),s.jsxs("details",{className:"mt-2 text-left",children:[s.jsx("summary",{className:"cursor-pointer font-mono text-[11px] font-normal uppercase tracking-[0.14em] text-muted-foreground hover:text-foreground",children:"filters / controls"}),s.jsxs("div",{className:"mt-3 grid gap-3 border-t border-border/60 pt-3 md:grid-cols-[1fr_1fr_1fr_1fr_auto]",children:[s.jsxs(G,{label:"Scope",children:[s.jsx(y,{active:v==="all",onClick:()=>Ne("all"),children:"all"}),s.jsx(y,{active:v==="agent-actions",onClick:()=>Ne("agent-actions"),children:"agent actions"})]}),v==="agent-actions"?s.jsxs(G,{label:"Rows",children:[s.jsx(y,{active:E==="actions",onClick:()=>Q("actions"),children:"actions"}),s.jsx(y,{active:E==="details",onClick:()=>Q("details"),children:"details"}),s.jsx(y,{active:E==="raw",onClick:()=>Q("raw"),children:"raw"})]}):s.jsx("div",{}),s.jsxs(G,{label:"Kind",children:[s.jsx(y,{active:L==="all",onClick:()=>je("all"),children:"all"}),Zt.map(i=>s.jsx(y,{active:L===i,onClick:()=>je(i),children:i},i))]}),s.jsxs(G,{label:"Level",children:[s.jsx(y,{active:R==="all",onClick:()=>ke("all"),children:"all"}),Qt.map(i=>s.jsx(y,{active:R===i,onClick:()=>ke(i),children:i},i))]}),s.jsx("div",{className:"flex flex-wrap items-end gap-2",children:s.jsxs("button",{type:"button",onClick:tt,className:`rounded-md border px-2.5 py-1.5 font-mono text-[11px] font-normal uppercase tracking-[0.12em] transition-colors ${D?"border-accent/30 bg-accent/10 text-accent":"border-border/70 bg-muted/20 text-muted-foreground hover:border-border hover:text-foreground"}`,children:["tail ",D?"on":"off"]})})]})]})]}),s.jsx("div",{className:"max-h-[650px] overflow-auto lg:max-h-none lg:flex-1 lg:min-h-0",children:s.jsxs("div",{className:"min-w-[980px] font-mono text-[11px] font-normal",children:[s.jsxs("div",{className:`sticky top-0 z-10 grid min-h-8 ${Be} items-center border-b border-border/70 bg-card px-3 py-1.5 font-medium uppercase tracking-[0.12em] text-muted-foreground`,children:[s.jsx("span",{className:"sticky left-0 bg-card pr-2",children:"Copy"}),s.jsx("span",{children:"Open"}),s.jsx(I,{column:"time",label:"Time",sort:h,onSort:S}),s.jsx(I,{column:"kind",label:"Kind",sort:h,onSort:S}),s.jsx(I,{column:"level",label:"Level",sort:h,onSort:S}),s.jsx(I,{column:"category",label:"Category",sort:h,onSort:S}),s.jsx(I,{column:"target",label:"Target",sort:h,onSort:S}),s.jsx(I,{column:"message",label:"Message",sort:h,onSort:S}),s.jsx(I,{column:"id",label:"Id",sort:h,onSort:S})]}),w.map(i=>{const u=fe(i),p=j(i);return s.jsxs("div",{role:"button",tabIndex:0,onClick:()=>Me(i),onKeyDown:m=>{(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),Me(i))},className:`grid min-h-[34px] w-full ${Be} items-center border-b border-l-2 px-3 py-2 text-left transition-colors ${x&&j(x)===p?"border-b-border/40 border-l-accent bg-accent/[0.08]":"border-b-border/40 border-l-transparent hover:bg-muted/30"}`,children:[s.jsx("button",{type:"button","aria-label":`copy row ${pe(i.id)}`,onClick:m=>{m.stopPropagation(),ne(ge(i).join(" "),`row:${p}`)},className:`sticky left-0 z-[1] justify-self-start rounded border border-border/70 px-1.5 py-0.5 font-mono text-[10px] font-normal uppercase tracking-[0.1em] text-muted-foreground transition-colors hover:border-accent/30 hover:text-accent ${x&&j(x)===p?"bg-accent/[0.08]":"bg-background"}`,children:ee===`row:${p}`?"copied":"copy"}),u?s.jsx("button",{type:"button","aria-label":`open ${P(i)}`,onClick:m=>{m.stopPropagation(),Re(i)},className:"justify-self-start rounded border border-border/70 bg-muted/20 px-1.5 py-0.5 font-mono text-[10px] font-normal uppercase tracking-[0.1em] text-muted-foreground transition-colors hover:border-accent/30 hover:text-accent",children:"open"}):s.jsx("span",{className:"text-muted-foreground/45",children:"-"}),s.jsx("span",{className:"tabular-nums text-muted-foreground",children:ve(i)}),s.jsx("span",{className:"uppercase tracking-[0.13em] text-muted-foreground",children:i.kind}),s.jsx("span",{className:`uppercase tracking-[0.13em] ${ye(i)}`,children:b(i)}),s.jsx("span",{className:"truncate uppercase tracking-[0.13em] text-muted-foreground",children:i.category??"-"}),s.jsx("span",{className:"truncate font-sans text-[12px] font-normal normal-case tracking-normal text-muted-foreground",children:P(i)}),s.jsx("span",{className:"truncate font-sans text-[13px] font-normal normal-case tracking-normal text-foreground",children:N(i)}),s.jsx("span",{className:"truncate text-muted-foreground",children:pe(i.id)})]},p)}),w.length===0&&s.jsx("div",{className:"border-b border-border/40 px-3 py-5 font-sans text-[13px] text-muted-foreground",children:c})]})})]}),$&&s.jsxs(s.Fragment,{children:[s.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize payload inspector","aria-valuenow":te,"aria-valuemin":le,"aria-valuemax":He,title:"Drag to resize · Double-click to reset",onPointerDown:rt,onDoubleClick:nt,className:`group hidden shrink-0 cursor-col-resize items-stretch justify-center transition-colors lg:flex lg:w-[5px] ${Te?"bg-accent/15":"hover:bg-accent/10"}`,children:s.jsx("div",{className:`w-px transition-colors ${Te?"bg-accent/80":"bg-border group-hover:bg-accent/60"}`})}),s.jsx("aside",{ref:Ee,style:st,className:"flex w-full shrink-0 flex-col bg-background lg:w-[var(--inspector-width)]",children:s.jsx(ar,{copied:x?ee===`inspector:${j(x)}`:!1,event:x,relatedEvents:et,onCopyRow:i=>{ne(ge(i).join(" "),`inspector:${j(i)}`)},onOpenTarget:Re})})]})]})}function ar({copied:e,event:t,relatedEvents:r,onCopyRow:n,onOpenTarget:o}){const a=t?fe(t):null;return s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[s.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-2 border-b border-border/70 bg-card/40 px-3 py-2.5 lg:px-4",children:[s.jsx("div",{className:"font-mono text-[11px] font-medium uppercase tracking-[0.15em] text-foreground/80",children:"Payload inspector"}),t?s.jsxs("div",{className:"flex items-center gap-2",children:[a?s.jsx("button",{type:"button",onClick:()=>o(t),className:"rounded-md border border-border/70 bg-muted/20 px-2 py-1 font-mono text-[11px] font-normal uppercase tracking-[0.11em] text-muted-foreground transition hover:border-accent/30 hover:text-accent",children:"open app"}):null,s.jsx("button",{type:"button",onClick:()=>n(t),className:"rounded-md border border-border/70 bg-muted/20 px-2 py-1 font-mono text-[11px] font-normal uppercase tracking-[0.11em] text-muted-foreground transition hover:border-accent/30 hover:text-accent",children:e?"copied":"copy row"}),s.jsx("div",{className:`font-mono text-[11px] uppercase tracking-[0.12em] ${ye(t)}`,children:b(t)})]}):null]}),s.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-3 py-3 lg:px-4 lg:py-4",children:t?s.jsxs("div",{className:"grid gap-3",children:[s.jsxs("div",{className:"overflow-hidden rounded-md border border-accent/25 bg-accent/[0.07]",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-accent/15 px-3 py-2",children:[s.jsx(cr,{event:t}),s.jsx("span",{className:"font-mono text-[11px] uppercase tracking-[0.12em] text-muted-foreground",children:t.kind})]}),s.jsxs("div",{className:"px-3 py-2",children:[s.jsx("div",{className:"font-mono text-[11px] font-medium uppercase tracking-[0.13em] text-accent",children:"selected event"}),s.jsx("div",{className:"mt-1 break-words text-[14px] font-normal leading-5 text-foreground",children:N(t)})]})]}),fr(t).map(c=>s.jsx(lr,{section:c},c.title)),s.jsx(dr,{events:r,selectedId:t.id}),s.jsx(de,{label:"payload.data",value:t.data??{}}),t.kind==="metric"&&t.tags?s.jsx(de,{label:"metric.tags",value:t.tags}):null,t.kind==="span"&&t.error?s.jsx(de,{label:"span.error",value:t.error}):null]}):s.jsx("div",{className:"rounded-md border border-border/60 bg-muted/20 p-4 text-[13px] leading-6 text-muted-foreground",children:"No event selected."})})]})}function G({label:e,children:t}){return s.jsxs("div",{children:[s.jsx("div",{className:"font-mono text-[11px] uppercase tracking-[0.14em] text-muted-foreground",children:e}),s.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:t})]})}function y({active:e,onClick:t,children:r}){return s.jsx("button",{type:"button",onClick:t,className:`rounded-md border px-2 py-1 font-mono text-[11px] uppercase tracking-[0.1em] transition-colors ${e?"border-accent/30 bg-accent/10 text-accent":"border-border/70 bg-muted/20 text-muted-foreground hover:border-border hover:text-foreground"}`,children:r})}function I({column:e,label:t,sort:r,onSort:n}){const o=r.key===e,a=o?r.direction==="asc"?lt:ot:it,c=r.direction==="asc"?"ascending":"descending";return s.jsxs("button",{type:"button","aria-label":`Sort by ${t}${o?`, currently ${c}`:""}`,"aria-pressed":o,onClick:()=>n(e),className:`flex min-w-0 items-center gap-1.5 text-left uppercase tracking-[0.14em] transition ${o?"text-accent":"text-muted-foreground hover:text-foreground"}`,children:[s.jsx("span",{className:"min-w-0 truncate",children:t}),s.jsx(a,{size:10,strokeWidth:1.75,"aria-hidden":"true",className:"shrink-0"})]})}function ir({ariaLabel:e,copied:t,disabled:r=!1,label:n,onClick:o}){return s.jsx("button",{type:"button","aria-label":e,disabled:r,onClick:o,className:"rounded-md border border-border/70 bg-muted/20 px-2 py-1 font-mono text-[11px] font-normal uppercase tracking-[0.11em] text-muted-foreground transition hover:border-accent/30 hover:text-accent disabled:cursor-not-allowed disabled:opacity-40",children:t?"copied":n})}function cr({event:e}){const t=b(e),r=F(e),n=r==="red"?"border-destructive/30 bg-destructive/10 text-destructive":r==="amber"?"border-warning/30 bg-warning/10 text-warning":r==="emerald"?"border-success/30 bg-success/10 text-success":"border-accent/30 bg-accent/10 text-accent";return s.jsx("span",{className:`rounded-full border px-2 py-0.5 font-mono text-[10px] uppercase tracking-[0.11em] ${n}`,children:t})}function lr({section:e}){return s.jsxs("section",{className:"overflow-hidden rounded-md border border-border/60 bg-muted/15",children:[s.jsx("div",{className:"border-b border-border/50 bg-muted/30 px-3 py-2 font-mono text-[10px] font-medium uppercase tracking-[0.14em] text-foreground/70",children:e.title}),s.jsx("div",{className:"divide-y divide-border/40",children:e.rows.map(t=>s.jsx(ur,{row:t},`${e.title}-${t.label}`))})]})}function dr({events:e,selectedId:t}){return e.length<=1?null:s.jsxs("section",{className:"overflow-hidden rounded-md border border-border/60 bg-muted/15",children:[s.jsxs("div",{className:"flex items-center justify-between border-b border-border/50 bg-muted/30 px-3 py-2",children:[s.jsx("div",{className:"font-mono text-[10px] font-medium uppercase tracking-[0.14em] text-foreground/70",children:"Trace lines"}),s.jsx("div",{className:"font-mono text-[10px] font-light uppercase tracking-[0.12em] text-muted-foreground",children:e.length})]}),s.jsx("div",{className:"divide-y divide-border/40",children:e.map(r=>{const n=Ke(Y(r));return s.jsxs("div",{className:`grid grid-cols-[74px_82px_minmax(0,1fr)] gap-2 px-3 py-1.5 ${r.id===t?"bg-accent/10":""}`,children:[s.jsx("span",{className:"font-mono text-[10px] tabular-nums text-muted-foreground",children:ve(r)}),s.jsx("span",{className:`font-mono text-[10px] uppercase tracking-[0.11em] ${ye(r)}`,children:b(r)}),s.jsx("span",{className:"min-w-0 truncate text-[12px] text-foreground/80",children:n??N(r)})]},`${r.id}-${r.timestamp}`)})})]})}function ur({row:e}){return s.jsxs("div",{className:"grid grid-cols-[96px_minmax(0,1fr)] items-start gap-3 px-3 py-2",children:[s.jsx("div",{className:"font-mono text-[10px] font-light uppercase tracking-[0.12em] text-muted-foreground",children:e.label}),s.jsx("div",{className:`min-w-0 break-words text-[12px] leading-5 ${e.mono?"font-mono tabular-nums":"font-sans"} ${pr(e.tone)}`,children:e.value})]})}function de({label:e,value:t}){return s.jsxs("div",{className:"overflow-hidden rounded-md border border-border/60 bg-muted/15",children:[s.jsx("div",{className:"border-b border-border/50 bg-muted/30 px-3 py-2 font-mono text-[10px] font-medium uppercase tracking-[0.14em] text-foreground/70",children:e}),s.jsx("pre",{className:"max-h-[360px] overflow-auto whitespace-pre-wrap break-words p-3 font-mono text-[12px] font-light leading-5 text-foreground/80 lg:max-h-none lg:overflow-x-auto",children:JSON.stringify(t,null,2)})]})}function fe(e){return be(e)}function mr(e){const t=g(e);return d(t,"workspaceId")??d(t,"targetWorkspaceId")}function P(e){const t=g(e),r=be(e);return d(t,"appName")??d(t,"appId")??r??d(t,"workspaceName")??d(t,"workspaceId")??d(t,"serviceId")??d(t,"target")??"-"}function fr(e){const t=[{title:"Identity",rows:[{label:"id",value:e.id,mono:!0},{label:"kind",value:e.kind,tone:"cyan",mono:!0},{label:"category",value:e.category??"none",mono:!0}]},{title:"Signal",rows:[{label:gr(e),value:b(e),tone:F(e),mono:!0},{label:"timestamp",value:ue(e.timestamp),mono:!0}]}];if(A(e)){const r=g(e),n=C(e),o=xe(e);t.push({title:"Agent Action",rows:[{label:"source",value:d(r,"source")??"agent",mono:!0},{label:"status",value:d(r,"status")??b(e),tone:F(e),mono:!0},{label:"action",value:d(r,"action")??N(e),mono:!0},{label:"target",value:P(e),mono:!0},{label:"workspace",value:d(r,"workspaceName")??d(r,"workspaceId")??"unknown",mono:!0},...n?[{label:"trace",value:n,mono:!0}]:[],...o?[{label:"parent",value:o,mono:!0}]:[]]});const a=br(e),c=_t(e);(a||c)&&t.push({title:"Request",rows:[...a?[{label:"prompt",value:a}]:[],...c?[{label:"lines",value:String(c.eventCount),mono:!0},{label:"duration",value:`${c.durationMs}ms`,mono:!0}]:[]]})}return e.kind==="log"&&t.push({title:"Log",rows:[{label:"message",value:e.message},{label:"level",value:e.level,tone:F(e),mono:!0}]}),e.kind==="metric"&&t.push({title:"Metric",rows:[{label:"name",value:e.name},{label:"type",value:e.metricType,tone:"emerald",mono:!0},{label:"value",value:hr(e),tone:"emerald",mono:!0},{label:"unit",value:e.unit??"none",mono:!0}]}),e.kind==="span"&&t.push({title:"Trace",rows:[{label:"name",value:e.name},{label:"trace id",value:e.traceId,mono:!0},{label:"parent id",value:e.parentId??"none",mono:!0},{label:"status",value:e.status,tone:F(e),mono:!0},{label:"duration",value:e.durationMs===void 0?"active":`${e.durationMs}ms`,mono:!0},{label:"started",value:ue(e.startTime),mono:!0},{label:"ended",value:e.endTime===void 0?"pending":ue(e.endTime),mono:!0}]}),t}function N(e){if(e.kind==="log"){if(A(e)){const t=g(e),r=Ke(Y(e));if(r){const c=d(t,"status");return c?`${r} ${c}`:r}const n=d(t,"action")??d(t,"commandId")??e.message,o=d(t,"status"),a=De(n);return o?`${a} ${o}`:a}return e.message}return A(e)?De(e.name):e.name}function b(e){return e.kind==="log"?A(e)?d(g(e),"status")??e.level:e.level:e.kind==="metric"?e.metricType:e.status}function ye(e){const t=b(e);return t==="error"||t==="failed"?"text-destructive":t==="warn"||t==="active"||t==="started"?"text-warning":e.kind==="metric"||t==="ok"||t==="completed"?"text-success":"text-accent"}function F(e){const t=b(e);return t==="error"||t==="failed"?"red":t==="warn"||t==="active"||t==="started"?"amber":e.kind==="metric"||t==="ok"||t==="completed"?"emerald":"cyan"}function pr(e="neutral"){return e==="red"?"text-destructive":e==="amber"?"text-warning":e==="emerald"?"text-success":e==="cyan"?"text-accent":"text-foreground"}function gr(e){return e.kind==="log"?"level":e.kind==="metric"?"type":"status"}function hr(e){return`${e.value}${e.unit?` ${e.unit}`:""}`}function ue(e){const t=new Date(e);return`${t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}.${String(t.getMilliseconds()).padStart(3,"0")}`}function pe(e){return e.length>10?e.slice(-10):e}function j(e){return e.kind==="span"?`${e.kind}:${e.id}:${e.status}:${e.endTime??"active"}`:`${e.kind}:${e.id}:${e.timestamp}`}function ve(e){return new Date(e.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function ge(e){return[ve(e),e.kind,b(e),e.category??"",P(e),N(e),e.id,JSON.stringify(e.data??{})].map(yr)}function xr(e,t){return[N(e),e.category??"",JSON.stringify(e.data??{}),...t.map(n=>`${N(n)} ${JSON.stringify(n.data??{})}`)].join(" ").toLowerCase()}function br(e){const r=g(e).args,n=r&&typeof r=="object"&&!Array.isArray(r)?r.prompt:void 0;return typeof n!="string"||!n.trim()?null:n.replace(/\s+/g," ").trim().slice(0,360)}function wr(e){return[["time","kind","signal","category","target","message","id","payload"].join(" "),...e.map(t=>ge(t).join(" "))].join(`
|
|
2
|
-
`)}function yr(e){return e.replace(/\s+/g," ").trim()}function vr(e){return e==="time"?"desc":"asc"}function kr(e,t){const r=t.direction==="asc"?1:-1;return e.map((n,o)=>({event:n,index:o})).sort((n,o)=>{const a=jr(ze(n.event,t.key),ze(o.event,t.key));return a===0?n.index-o.index:a*r}).map(({event:n})=>n)}function ze(e,t){switch(t){case"time":return e.timestamp;case"kind":return e.kind;case"level":return b(e);case"category":return e.category??"";case"target":return P(e);case"message":return N(e);case"id":return pe(e.id)}}function jr(e,t){return typeof e=="number"&&typeof t=="number"?e-t:String(e).localeCompare(String(t),void 0,{numeric:!0,sensitivity:"base"})}async function Nr(e){if(navigator.clipboard?.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{}const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly","true"),t.style.position="fixed",t.style.left="-9999px",t.style.top="0",document.body.appendChild(t),t.focus(),t.select();try{return document.execCommand("copy")}finally{document.body.removeChild(t)}}function Sr(e,t,r){const n=new Set,o=[];for(const a of t)n.has(a.id)||(n.add(a.id),o.push(a));for(let a=e.length-1;a>=0;a--){const c=e[a];n.has(c.id)||(n.add(c.id),o.push(c))}return o.sort((a,c)=>c.timestamp-a.timestamp),o.slice(0,r)}function Ir(e){return e==="red"?"text-destructive":e==="amber"?"text-warning":"text-success"}function Er(e){return e==="red"?"bg-destructive":e==="amber"?"bg-warning":"bg-success"}export{X as H,_r as L,Rr as a,Mr as b,qt as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-C8uS5szO.js";import{SessionRefScreen as t}from"./SessionRefScreen-BOQ1_ydg.js";import{SessionsScreen as m}from"./SessionsScreen-R8QKvoey.js";import{FlightObserveScreen as p}from"./FlightObserveScreen-DDXfNbsw.js";import"./api-CaROe5_H.js";import"./sse-v5QLsOHV.js";import"./index-BWHgHrtv.js";import"./tail-events-DQ46QBW1.js";import"./BackToPicker-Bys9ColC.js";import"./router-BKiMcYa7.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-Ch9aYlgi.js";import"./ConversationScreen-tTP6B_F-.js";import"./NewChatComposer-JjLbm3W2.js";import"./runtime-picker-DdsttHHc.js";import"./scout-voice-DOQ_B77g.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-DurUYl7E.js";import"./createLucideIcon-DkjnzvcJ.js";import"./conversation-model-BGFHoxQ0.js";import"./agent-state-DDhnFEEP.js";import"./colors-CFlbwC25.js";import"./time-Dhsh_2EG.js";import"./conversations-Cbg9h_Af.js";import"./index-C5cX8dkl.js";import"./HarnessMark-Bt47OeHy.js";import"./NewChatOrigin-CyPPWTJP.js";import"./keyboard-nav-CXfav14z.js";import"./x-DI1ktCYb.js";import"./chevron-down-B5eMsn5c.js";import"./search-C4VlW_0l.js";import"./file-text-ChtICwub.js";import"./ConversationComposer-B7RU6LKd.js";import"./AgentAvatar-BIwg54Tj.js";import"./Provider-5Hotn7NQ.js";import"./machine-scope-DJt9RZ2w.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-Bk3nyrkj.js";import"./model-CBkMvT1w.js";import"./DocumentFocusViewer-f12RRQpV.js";import"./TextDocumentSurface-BhYvAB0o.js";import"./index-CvsM3jm8.js";import"./chevron-right-C7UGFpkl.js";import"./folder-0fWevPvQ.js";import"./chevron-up-BHOEgHcn.js";import"./code-xml-BmyLM0I2.js";import"./arrow-left-PuKdO3NM.js";import"./arrow-right-ldbfp4SZ.js";import"./chunk-HRAB3GC3-C5X-kFhb.js";import"./SpriteAvatar-BW1JzkDt.js";import"./CrewAvatar-CJhuqTsJ.js";import"./zap-sKPkh4sQ.js";import"./message-markup-DgFSyb3f.js";import"./mentions-Ctw1ECUC.js";import"./AgentDetailCard-CFDE8TLi.js";import"./AgentLiveActions-lYzicnNa.js";import"./terminal-takeover-BlpxpvSp.js";import"./openContent-C6XO6kr5.js";import"./eye-CtqSV8BS.js";import"./terminal-96JWDYDL.js";import"./message-visibility-DwxgcgYK.js";import"./operator-attention-DGR4kOog.js";import"./sessionRead-CvFz2RHv.js";import"./clipboard-e3fSpeo7.js";import"./types-B0PlfpKc.js";/* empty css */import"./ConversationHeader-CCSU8uo_.js";import"./AstronautSuit-C-4I5YKi.js";import"./panel-right-BNTJhy8M.js";import"./CommsFlowGraph-Czg-KTS0.js";import"./comms-gesture-_aGFo6g3.js";import"./CommsCanvas-DOKw3Q8i.js";import"./comms-deck-CBhsXnY-.js";import"./CommsFlowMap-CzBWvSa5.js";import"./CommsSelection-g1twA-Lb.js";/* empty css */import"./use-conversation-list-A_YUf8lo.js";import"./agent-master-model-C-KdOFDK.js";import"./use-beside-Df-F2Uvg.js";import"./ConversationFeedRows-DVqnZQH0.js";import"./ConversationPanels-C9yCAoJy.js";import"./tail-display-DHSNmvor.js";import"./lane-edit-display-BjdT9oZl.js";import"./use-reduced-motion-D7n3vK8t.js";import"./proxy-DOG46ja4.js";import"./activity-CSUhvjD0.js";import"./message-circle-CSiJj6yo.js";import"./ConversationStatus-CK-YfLpi.js";import"./check-B8dMv3Is.js";import"./sparkles-BbOFw3d0.js";import"./SessionObserve-DaqDhqDI.js";import"./bash-format-BRV5C6Gv.js";import"./lane-tool-detail-Czggx8oM.js";import"./LaneToolHoverCard-C6YehJqD.js";import"./lane-observe-BD21P8BB.js";import"./lane-ask-display-B6iCAVcd.js";import"./ObservedTopologyPanel-DkEkQzo-.js";import"./ObserveTextFlow-ET0dD1wO.js";import"./SessionObserveEvidence-Drv-D8Oh.js";import"./wrench-BsMTSeji.js";import"./external-link-RT4Ph-6-.js";import"./session-ref-lookup-state-SATH_jAP.js";/* empty css */import"./RawSessionsTable-DIhmlvk-.js";/* empty css */import"./DataTable-BMOZ1-z8.js";/* empty css *//* empty css */function er({route:i,navigate:r}){return i.view!=="sessions"?null:i.flightId?o.jsx(p,{route:{...i,flightId:i.flightId},navigate:r}):i.sessionId?o.jsx(t,{sessionRef:i.sessionId,navigate:r}):o.jsx(m,{navigate:r})}export{er as SessionsContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./index-C8uS5szO.js";import{KnowledgeSearchScreen as o}from"./KnowledgeSearchScreen-WC0WhFio.js";/* empty css */import"./api-CaROe5_H.js";import"./time-Dhsh_2EG.js";import"./Provider-5Hotn7NQ.js";import"./router-BKiMcYa7.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-Ch9aYlgi.js";import"./machine-scope-DJt9RZ2w.js";import"./sse-v5QLsOHV.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./agent-state-DDhnFEEP.js";import"./scoutbot-Bk3nyrkj.js";import"./NewChatComposer-JjLbm3W2.js";import"./runtime-picker-DdsttHHc.js";import"./scout-voice-DOQ_B77g.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-DurUYl7E.js";import"./createLucideIcon-DkjnzvcJ.js";import"./conversation-model-BGFHoxQ0.js";import"./colors-CFlbwC25.js";import"./conversations-Cbg9h_Af.js";import"./index-C5cX8dkl.js";import"./HarnessMark-Bt47OeHy.js";import"./NewChatOrigin-CyPPWTJP.js";import"./keyboard-nav-CXfav14z.js";import"./x-DI1ktCYb.js";import"./chevron-down-B5eMsn5c.js";import"./search-C4VlW_0l.js";import"./file-text-ChtICwub.js";import"./model-CBkMvT1w.js";import"./DocumentFocusViewer-f12RRQpV.js";import"./TextDocumentSurface-BhYvAB0o.js";import"./index-CvsM3jm8.js";import"./chevron-right-C7UGFpkl.js";import"./folder-0fWevPvQ.js";import"./chevron-up-BHOEgHcn.js";import"./code-xml-BmyLM0I2.js";import"./arrow-left-PuKdO3NM.js";import"./arrow-right-ldbfp4SZ.js";import"./chunk-HRAB3GC3-C5X-kFhb.js";import"./sparkles-BbOFw3d0.js";import"./clock-DFcRbtrl.js";function Y({route:r,navigate:t}){return r.view!=="search"?null:i.jsx(o,{navigate:t,mode:r.mode,hitId:r.hitId,routeFilters:r.filters})}export{Y as SearchContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-C8uS5szO.js";import{ActivityScreen as o}from"./ActivityScreen-DCALiEXY.js";import"./api-CaROe5_H.js";import"./clipboard-e3fSpeo7.js";import"./sse-v5QLsOHV.js";import"./index-BWHgHrtv.js";import"./colors-CFlbwC25.js";import"./agent-state-DDhnFEEP.js";import"./machine-scope-DJt9RZ2w.js";import"./router-BKiMcYa7.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-Ch9aYlgi.js";import"./mentions-Ctw1ECUC.js";import"./index-C5cX8dkl.js";import"./Provider-5Hotn7NQ.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-Bk3nyrkj.js";import"./NewChatComposer-JjLbm3W2.js";import"./runtime-picker-DdsttHHc.js";import"./scout-voice-DOQ_B77g.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-DurUYl7E.js";import"./createLucideIcon-DkjnzvcJ.js";import"./conversation-model-BGFHoxQ0.js";import"./time-Dhsh_2EG.js";import"./conversations-Cbg9h_Af.js";import"./HarnessMark-Bt47OeHy.js";import"./NewChatOrigin-CyPPWTJP.js";import"./keyboard-nav-CXfav14z.js";import"./x-DI1ktCYb.js";import"./chevron-down-B5eMsn5c.js";import"./search-C4VlW_0l.js";import"./file-text-ChtICwub.js";import"./model-CBkMvT1w.js";import"./DocumentFocusViewer-f12RRQpV.js";import"./TextDocumentSurface-BhYvAB0o.js";import"./index-CvsM3jm8.js";import"./chevron-right-C7UGFpkl.js";import"./folder-0fWevPvQ.js";import"./chevron-up-BHOEgHcn.js";import"./code-xml-BmyLM0I2.js";import"./arrow-left-PuKdO3NM.js";import"./arrow-right-ldbfp4SZ.js";import"./chunk-HRAB3GC3-C5X-kFhb.js";import"./AgentDetailCard-CFDE8TLi.js";import"./AgentLiveActions-lYzicnNa.js";import"./terminal-takeover-BlpxpvSp.js";import"./openContent-C6XO6kr5.js";import"./eye-CtqSV8BS.js";import"./terminal-96JWDYDL.js";import"./EmptyState-uyYN5piI.js";/* empty css */function ot({route:t,navigate:i}){return t.view!=="activity"?null:r.jsx(o,{navigate:i})}export{ot as ActivityContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./index-C8uS5szO.js";import{WorkDetailScreen as i}from"./WorkDetailScreen-CwtRCm_-.js";import"./DocumentFocusViewer-f12RRQpV.js";import"./createLucideIcon-DkjnzvcJ.js";import"./TextDocumentSurface-BhYvAB0o.js";import"./file-text-ChtICwub.js";import"./x-DI1ktCYb.js";import"./StatusPill-MxYClPG5.js";import"./status-tone-BM_zuRy1.js";import"./WorkFilesViewer-DJHftsH9.js";import"./api-CaROe5_H.js";import"./chevron-right-C7UGFpkl.js";import"./chevron-down-B5eMsn5c.js";import"./folder-0fWevPvQ.js";import"./mentions-Ctw1ECUC.js";import"./colors-CFlbwC25.js";import"./agent-state-DDhnFEEP.js";import"./index-C5cX8dkl.js";import"./Provider-5Hotn7NQ.js";import"./router-BKiMcYa7.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-Ch9aYlgi.js";import"./machine-scope-DJt9RZ2w.js";import"./sse-v5QLsOHV.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-Bk3nyrkj.js";import"./NewChatComposer-JjLbm3W2.js";import"./runtime-picker-DdsttHHc.js";import"./scout-voice-DOQ_B77g.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-DurUYl7E.js";import"./conversation-model-BGFHoxQ0.js";import"./time-Dhsh_2EG.js";import"./conversations-Cbg9h_Af.js";import"./HarnessMark-Bt47OeHy.js";import"./NewChatOrigin-CyPPWTJP.js";import"./keyboard-nav-CXfav14z.js";import"./search-C4VlW_0l.js";import"./model-CBkMvT1w.js";import"./index-CvsM3jm8.js";import"./chevron-up-BHOEgHcn.js";import"./code-xml-BmyLM0I2.js";import"./arrow-left-PuKdO3NM.js";import"./arrow-right-ldbfp4SZ.js";import"./chunk-HRAB3GC3-C5X-kFhb.js";import"./AgentDetailCard-CFDE8TLi.js";import"./AgentLiveActions-lYzicnNa.js";import"./terminal-takeover-BlpxpvSp.js";import"./openContent-C6XO6kr5.js";import"./eye-CtqSV8BS.js";import"./terminal-96JWDYDL.js";import"./BackToPicker-Bys9ColC.js";import"./TailView-Dn7uWmPz.js";import"./SlidePanel-Datu7XG4.js";import"./tail-display-DHSNmvor.js";import"./lane-edit-display-BjdT9oZl.js";import"./tail-events-DQ46QBW1.js";import"./message-square-NmXWtWLR.js";import"./radio-C_jtwbFP.js";import"./external-link-RT4Ph-6-.js";import"./activity-CSUhvjD0.js";import"./book-open-BlJnpf2U.js";function jr({route:r,navigate:o}){return r.view!=="work"?null:t.jsx(i,{workId:r.workId,navigate:o})}export{jr as WorkContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./index-C8uS5szO.js";import{AgentInfoScreen as r}from"./AgentInfoScreen-ClZM1wQb.js";import{AgentsScreen as m}from"./AgentsScreen-Bi9Lx47B.js";/* empty css */import"./agent-state-DDhnFEEP.js";import"./conversation-model-BGFHoxQ0.js";import"./createLucideIcon-DkjnzvcJ.js";import"./colors-CFlbwC25.js";import"./time-Dhsh_2EG.js";import"./conversations-Cbg9h_Af.js";import"./api-CaROe5_H.js";import"./sse-v5QLsOHV.js";import"./index-BWHgHrtv.js";import"./runtime-picker-DdsttHHc.js";import"./scout-voice-DOQ_B77g.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-DurUYl7E.js";import"./router-BKiMcYa7.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-Ch9aYlgi.js";import"./Provider-5Hotn7NQ.js";import"./machine-scope-DJt9RZ2w.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-Bk3nyrkj.js";import"./NewChatComposer-JjLbm3W2.js";import"./index-C5cX8dkl.js";import"./HarnessMark-Bt47OeHy.js";import"./NewChatOrigin-CyPPWTJP.js";import"./keyboard-nav-CXfav14z.js";import"./x-DI1ktCYb.js";import"./chevron-down-B5eMsn5c.js";import"./search-C4VlW_0l.js";import"./file-text-ChtICwub.js";import"./model-CBkMvT1w.js";import"./DocumentFocusViewer-f12RRQpV.js";import"./TextDocumentSurface-BhYvAB0o.js";import"./index-CvsM3jm8.js";import"./chevron-right-C7UGFpkl.js";import"./folder-0fWevPvQ.js";import"./chevron-up-BHOEgHcn.js";import"./code-xml-BmyLM0I2.js";import"./arrow-left-PuKdO3NM.js";import"./arrow-right-ldbfp4SZ.js";import"./chunk-HRAB3GC3-C5X-kFhb.js";import"./openContent-C6XO6kr5.js";import"./BackToPicker-Bys9ColC.js";import"./AgentLiveActions-lYzicnNa.js";import"./terminal-takeover-BlpxpvSp.js";import"./eye-CtqSV8BS.js";import"./terminal-96JWDYDL.js";import"./ObservedTopologyPanel-DkEkQzo-.js";/* empty css */import"./AgentsSubnav-BOobgtGE.js";import"./SecondaryNav-BkTn5tkq.js";import"./secondaryNavConfig-DAXIFtVd.js";import"./nav-destinations-CyXnw9kh.js";import"./message-square-NmXWtWLR.js";import"./compass-DTZdCpv9.js";import"./settings-TJIkkZ0P.js";import"./git-branch-CA3cHKCI.js";import"./scroll-text-DwC8r2g6.js";import"./library-DLKBVUJ6.js";/* empty css */import"./SpriteAvatar-BW1JzkDt.js";import"./AgentSessions-Cox2zS-e.js";import"./clipboard-e3fSpeo7.js";import"./profile-C3KgiZvc.js";import"./AgentAvatar-BIwg54Tj.js";import"./CrewAvatar-CJhuqTsJ.js";import"./context-budget-DemtXu7E.js";import"./session-catalog-s-T_w41t.js";import"./terminal-relay-Bfx8pg80.js";import"./ConversationScreen-tTP6B_F-.js";import"./ConversationComposer-B7RU6LKd.js";import"./zap-sKPkh4sQ.js";import"./message-markup-DgFSyb3f.js";import"./mentions-Ctw1ECUC.js";import"./AgentDetailCard-CFDE8TLi.js";import"./message-visibility-DwxgcgYK.js";import"./operator-attention-DGR4kOog.js";import"./sessionRead-CvFz2RHv.js";import"./types-B0PlfpKc.js";/* empty css */import"./ConversationHeader-CCSU8uo_.js";import"./AstronautSuit-C-4I5YKi.js";import"./panel-right-BNTJhy8M.js";import"./CommsFlowGraph-Czg-KTS0.js";import"./comms-gesture-_aGFo6g3.js";import"./CommsCanvas-DOKw3Q8i.js";import"./comms-deck-CBhsXnY-.js";import"./CommsFlowMap-CzBWvSa5.js";import"./CommsSelection-g1twA-Lb.js";/* empty css */import"./use-conversation-list-A_YUf8lo.js";import"./agent-master-model-C-KdOFDK.js";import"./use-beside-Df-F2Uvg.js";import"./ConversationFeedRows-DVqnZQH0.js";import"./ConversationPanels-C9yCAoJy.js";import"./tail-display-DHSNmvor.js";import"./lane-edit-display-BjdT9oZl.js";import"./use-reduced-motion-D7n3vK8t.js";import"./proxy-DOG46ja4.js";import"./activity-CSUhvjD0.js";import"./message-circle-CSiJj6yo.js";import"./tail-events-DQ46QBW1.js";import"./ConversationStatus-CK-YfLpi.js";import"./check-B8dMv3Is.js";import"./sparkles-BbOFw3d0.js";import"./SessionObserve-DaqDhqDI.js";import"./bash-format-BRV5C6Gv.js";import"./lane-tool-detail-Czggx8oM.js";import"./LaneToolHoverCard-C6YehJqD.js";import"./lane-observe-BD21P8BB.js";import"./lane-ask-display-B6iCAVcd.js";import"./ObserveTextFlow-ET0dD1wO.js";import"./SessionObserveEvidence-Drv-D8Oh.js";import"./wrench-BsMTSeji.js";import"./external-link-RT4Ph-6-.js";import"./AgentDefinitionsWorkspace-CwZJ833X.js";import"./agent-specialization-CiVxQsFT.js";import"./project-overview-helpers-BQTc_Ous.js";import"./FileViewerPane-HtiDbj9N.js";/* empty css */import"./agent-essentials-8t2il7PV.js";/* empty css *//* empty css */function Co({route:t,navigate:o}){return t.view==="agent-info"?i.jsx(r,{conversationId:t.conversationId,navigate:o}):t.view==="agents-v2"?i.jsx(m,{navigate:o,selectedAgentId:t.agentId,conversationId:t.conversationId,tab:t.tab,activeRoute:t}):null}export{Co as AgentsContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./index-C8uS5szO.js";import{a as i}from"./BrokerScreen-CejzhRsB.js";import"./index-C5cX8dkl.js";import"./runtime-picker-DdsttHHc.js";import"./scout-voice-DOQ_B77g.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-DurUYl7E.js";import"./createLucideIcon-DkjnzvcJ.js";import"./router-BKiMcYa7.js";import"./api-CaROe5_H.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-Ch9aYlgi.js";import"./EmptyState-uyYN5piI.js";import"./NewChatComposer-JjLbm3W2.js";import"./conversation-model-BGFHoxQ0.js";import"./agent-state-DDhnFEEP.js";import"./colors-CFlbwC25.js";import"./time-Dhsh_2EG.js";import"./conversations-Cbg9h_Af.js";import"./HarnessMark-Bt47OeHy.js";import"./NewChatOrigin-CyPPWTJP.js";import"./keyboard-nav-CXfav14z.js";import"./x-DI1ktCYb.js";import"./chevron-down-B5eMsn5c.js";import"./search-C4VlW_0l.js";import"./file-text-ChtICwub.js";import"./clipboard-e3fSpeo7.js";import"./sse-v5QLsOHV.js";import"./index-BWHgHrtv.js";import"./status-tone-BM_zuRy1.js";import"./Provider-5Hotn7NQ.js";import"./machine-scope-DJt9RZ2w.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-Bk3nyrkj.js";import"./model-CBkMvT1w.js";import"./DocumentFocusViewer-f12RRQpV.js";import"./TextDocumentSurface-BhYvAB0o.js";import"./index-CvsM3jm8.js";import"./chevron-right-C7UGFpkl.js";import"./folder-0fWevPvQ.js";import"./chevron-up-BHOEgHcn.js";import"./code-xml-BmyLM0I2.js";import"./arrow-left-PuKdO3NM.js";import"./arrow-right-ldbfp4SZ.js";import"./chunk-HRAB3GC3-C5X-kFhb.js";import"./openContent-C6XO6kr5.js";import"./broker-display-BkBzyvbR.js";import"./BrokerMetadataPanel-1GoSl2BV.js";import"./DispatchAftermath-DDlwqSCY.js";import"./follow-route-BvcGtBIL.js";import"./arrow-up-right-Hn754ybA.js";import"./ShikiPane-BudrOxNK.js";import"./types-B0PlfpKc.js";import"./useEmbedHeadline-BL8wQawZ.js";/* empty css */import"./refresh-cw-Da9DDLk2.js";import"./arrow-down-WoVlkUmg.js";import"./external-link-RT4Ph-6-.js";import"./message-square-NmXWtWLR.js";import"./plus-D_wLGJGT.js";import"./send-horizontal-pOtGI7FM.js";import"./check-B8dMv3Is.js";import"./copy-D9WUpQRf.js";import"./radio-C_jtwbFP.js";function cr({route:r,navigate:o}){return r.view!=="broker"?null:t.jsx(i,{navigate:o})}export{cr as BrokerContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-C8uS5szO.js";import{ConversationScreen as i}from"./ConversationScreen-tTP6B_F-.js";import{MessagesScreen as m}from"./MessagesScreen-BZ7yaGJx.js";import"./NewChatComposer-JjLbm3W2.js";import"./runtime-picker-DdsttHHc.js";import"./scout-voice-DOQ_B77g.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-DurUYl7E.js";import"./createLucideIcon-DkjnzvcJ.js";import"./router-BKiMcYa7.js";import"./api-CaROe5_H.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-Ch9aYlgi.js";import"./conversation-model-BGFHoxQ0.js";import"./agent-state-DDhnFEEP.js";import"./colors-CFlbwC25.js";import"./time-Dhsh_2EG.js";import"./conversations-Cbg9h_Af.js";import"./index-C5cX8dkl.js";import"./HarnessMark-Bt47OeHy.js";import"./NewChatOrigin-CyPPWTJP.js";import"./keyboard-nav-CXfav14z.js";import"./x-DI1ktCYb.js";import"./chevron-down-B5eMsn5c.js";import"./search-C4VlW_0l.js";import"./file-text-ChtICwub.js";import"./ConversationComposer-B7RU6LKd.js";import"./AgentAvatar-BIwg54Tj.js";import"./Provider-5Hotn7NQ.js";import"./machine-scope-DJt9RZ2w.js";import"./sse-v5QLsOHV.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-Bk3nyrkj.js";import"./model-CBkMvT1w.js";import"./DocumentFocusViewer-f12RRQpV.js";import"./TextDocumentSurface-BhYvAB0o.js";import"./index-CvsM3jm8.js";import"./chevron-right-C7UGFpkl.js";import"./folder-0fWevPvQ.js";import"./chevron-up-BHOEgHcn.js";import"./code-xml-BmyLM0I2.js";import"./arrow-left-PuKdO3NM.js";import"./arrow-right-ldbfp4SZ.js";import"./chunk-HRAB3GC3-C5X-kFhb.js";import"./SpriteAvatar-BW1JzkDt.js";import"./CrewAvatar-CJhuqTsJ.js";import"./zap-sKPkh4sQ.js";import"./message-markup-DgFSyb3f.js";import"./mentions-Ctw1ECUC.js";import"./AgentDetailCard-CFDE8TLi.js";import"./AgentLiveActions-lYzicnNa.js";import"./terminal-takeover-BlpxpvSp.js";import"./openContent-C6XO6kr5.js";import"./eye-CtqSV8BS.js";import"./terminal-96JWDYDL.js";import"./message-visibility-DwxgcgYK.js";import"./operator-attention-DGR4kOog.js";import"./sessionRead-CvFz2RHv.js";import"./clipboard-e3fSpeo7.js";import"./types-B0PlfpKc.js";/* empty css */import"./ConversationHeader-CCSU8uo_.js";import"./BackToPicker-Bys9ColC.js";import"./AstronautSuit-C-4I5YKi.js";import"./panel-right-BNTJhy8M.js";import"./CommsFlowGraph-Czg-KTS0.js";import"./comms-gesture-_aGFo6g3.js";import"./CommsCanvas-DOKw3Q8i.js";import"./comms-deck-CBhsXnY-.js";import"./CommsFlowMap-CzBWvSa5.js";import"./CommsSelection-g1twA-Lb.js";/* empty css */import"./use-conversation-list-A_YUf8lo.js";import"./agent-master-model-C-KdOFDK.js";import"./use-beside-Df-F2Uvg.js";import"./ConversationFeedRows-DVqnZQH0.js";import"./ConversationPanels-C9yCAoJy.js";import"./tail-display-DHSNmvor.js";import"./lane-edit-display-BjdT9oZl.js";import"./use-reduced-motion-D7n3vK8t.js";import"./proxy-DOG46ja4.js";import"./activity-CSUhvjD0.js";import"./message-circle-CSiJj6yo.js";import"./tail-events-DQ46QBW1.js";import"./ConversationStatus-CK-YfLpi.js";import"./check-B8dMv3Is.js";import"./sparkles-BbOFw3d0.js";import"./use-fleet-active-asks-DFs_u-vM.js";import"./AgentMasterScreen-By6DN0jF.js";import"./sessions-view-DzYGsKWS.js";/* empty css */import"./CommsDeck-C18JA7rK.js";import"./arrow-up-right-Hn754ybA.js";import"./plus-D_wLGJGT.js";function Vt({route:t,navigate:r}){switch(t.view){case"conversation":return o.jsx(i,{conversationId:t.conversationId,initialDraft:t.composeDraft,navigate:r},t.conversationId);case"messages":return o.jsx(m,{conversationId:t.conversationId,agentId:t.agentId,threadId:t.threadId,machineId:t.machineId,navigate:r});default:return null}}export{Vt as ChatContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-C8uS5szO.js";import{RepoDiffPageScreen as p}from"./RepoDiffPageScreen-Chwm6GXL.js";import{ReposScreen as t}from"./ReposScreen-C7JZQmyh.js";import"./RepoDiffViewerLazy-BQ6ZCrsq.js";/* empty css */import"./EmptyState-uyYN5piI.js";import"./Provider-5Hotn7NQ.js";import"./router-BKiMcYa7.js";import"./api-CaROe5_H.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-Ch9aYlgi.js";import"./machine-scope-DJt9RZ2w.js";import"./sse-v5QLsOHV.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./agent-state-DDhnFEEP.js";import"./scoutbot-Bk3nyrkj.js";import"./NewChatComposer-JjLbm3W2.js";import"./runtime-picker-DdsttHHc.js";import"./scout-voice-DOQ_B77g.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-DurUYl7E.js";import"./createLucideIcon-DkjnzvcJ.js";import"./conversation-model-BGFHoxQ0.js";import"./colors-CFlbwC25.js";import"./time-Dhsh_2EG.js";import"./conversations-Cbg9h_Af.js";import"./index-C5cX8dkl.js";import"./HarnessMark-Bt47OeHy.js";import"./NewChatOrigin-CyPPWTJP.js";import"./keyboard-nav-CXfav14z.js";import"./x-DI1ktCYb.js";import"./chevron-down-B5eMsn5c.js";import"./search-C4VlW_0l.js";import"./file-text-ChtICwub.js";import"./model-CBkMvT1w.js";import"./DocumentFocusViewer-f12RRQpV.js";import"./TextDocumentSurface-BhYvAB0o.js";import"./index-CvsM3jm8.js";import"./chevron-right-C7UGFpkl.js";import"./folder-0fWevPvQ.js";import"./chevron-up-BHOEgHcn.js";import"./code-xml-BmyLM0I2.js";import"./arrow-left-PuKdO3NM.js";import"./arrow-right-ldbfp4SZ.js";import"./chunk-HRAB3GC3-C5X-kFhb.js";import"./api-B9_IqFKY.js";import"./clipboard-e3fSpeo7.js";/* empty css */import"./ui-LM8pS8qE.js";import"./selection-bridge-B5jqyMR9.js";import"./SlidePanel-Datu7XG4.js";import"./cache-DEy9E34b.js";import"./refresh-cw-Da9DDLk2.js";import"./sliders-horizontal-CHf3ntw0.js";function si({route:i,navigate:o}){return i.view==="repo-diff"?r.jsx(p,{path:i.path,layers:i.layers,files:i.files,sessionId:i.sessionId,agentId:i.agentId,include:i.include,navigate:o}):i.view==="repos"?r.jsx(t,{navigate:o,focusRoot:i.root??null}):null}export{si as ReposContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./index-C8uS5szO.js";import{SettingsScreen as o}from"./SettingsScreen-DirtO7Z0.js";import"./EmptyState-uyYN5piI.js";import"./StatusPill-MxYClPG5.js";import"./status-tone-BM_zuRy1.js";import"./api-CaROe5_H.js";import"./time-Dhsh_2EG.js";import"./AgentConfigurationScreen-B2Hw0ce1.js";import"./CastPicker-BuwE_JQp.js";import"./CrewAvatar-CJhuqTsJ.js";import"./HarnessMark-Bt47OeHy.js";import"./check-B8dMv3Is.js";import"./createLucideIcon-DkjnzvcJ.js";import"./NewChatComposer-JjLbm3W2.js";import"./runtime-picker-DdsttHHc.js";import"./scout-voice-DOQ_B77g.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-DurUYl7E.js";import"./router-BKiMcYa7.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-Ch9aYlgi.js";import"./conversation-model-BGFHoxQ0.js";import"./agent-state-DDhnFEEP.js";import"./colors-CFlbwC25.js";import"./conversations-Cbg9h_Af.js";import"./index-C5cX8dkl.js";import"./NewChatOrigin-CyPPWTJP.js";import"./keyboard-nav-CXfav14z.js";import"./x-DI1ktCYb.js";import"./chevron-down-B5eMsn5c.js";import"./search-C4VlW_0l.js";import"./file-text-ChtICwub.js";import"./Provider-5Hotn7NQ.js";import"./machine-scope-DJt9RZ2w.js";import"./sse-v5QLsOHV.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-Bk3nyrkj.js";import"./model-CBkMvT1w.js";import"./DocumentFocusViewer-f12RRQpV.js";import"./TextDocumentSurface-BhYvAB0o.js";import"./index-CvsM3jm8.js";import"./chevron-right-C7UGFpkl.js";import"./folder-0fWevPvQ.js";import"./chevron-up-BHOEgHcn.js";import"./code-xml-BmyLM0I2.js";import"./arrow-left-PuKdO3NM.js";import"./arrow-right-ldbfp4SZ.js";import"./chunk-HRAB3GC3-C5X-kFhb.js";import"./openContent-C6XO6kr5.js";import"./AgentsSubnav-BOobgtGE.js";import"./SecondaryNav-BkTn5tkq.js";import"./secondaryNavConfig-DAXIFtVd.js";import"./nav-destinations-CyXnw9kh.js";import"./message-square-NmXWtWLR.js";import"./terminal-96JWDYDL.js";import"./compass-DTZdCpv9.js";import"./settings-TJIkkZ0P.js";import"./git-branch-CA3cHKCI.js";import"./scroll-text-DwC8r2g6.js";/* empty css */import"./refresh-cw-Da9DDLk2.js";import"./bot-CfN9PSBF.js";import"./wrench-BsMTSeji.js";import"./server-ms1yxUYJ.js";import"./cpu-Ck_4tB_-.js";import"./SettingsDrawer-BDapR4E9.js";import"./credentials-C4VXz2hr.js";import"./AgentAvatar-BIwg54Tj.js";import"./SpriteAvatar-BW1JzkDt.js";import"./VoicePermissionsPanel-CecFWzva.js";import"./copy-D9WUpQRf.js";import"./sparkles-BbOFw3d0.js";function Rt({route:t,navigate:i}){return t.view!=="settings"?null:r.jsx(o,{navigate:i,section:t.section,agentId:t.agentId})}export{Rt as SettingsContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e,r as c,H as os}from"./index-C8uS5szO.js";import{b as as,c as F,s as ns}from"./router-BKiMcYa7.js";import{t as B}from"./time-Dhsh_2EG.js";import{i as ls}from"./use-scout-dev-flags-0TXfQcG0.js";import{u as is,r as rs,a as E,b as cs,f as _,c as y,i as D,t as C,M as P,d as A,e as ds,g as ms,h as hs,s as U}from"./mesh-ops-CGpRk4ik.js";import{u as us}from"./use-mesh-ops-items-Be1WmwCg.js";/* empty css */import"./api-CaROe5_H.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-Ch9aYlgi.js";import"./sse-v5QLsOHV.js";import"./index-BWHgHrtv.js";const ps=[{id:"family",label:"family"},{id:"host",label:"host"}],bs=[{key:"lastLook",label:"last-look divider"},{key:"routeStrip",label:"route strip"},{key:"compact",label:"compact rows"},{key:"relays",label:"relay sessions"},{key:"simulateHosts",label:"simulate hosts"}],$=[{nodeId:"sim:studio-tower",label:"studio-tower"},{nodeId:"sim:gpu-box",label:"gpu-box"},{nodeId:"sim:cloud-eu-1",label:"cloud-eu-1"}];function xs(t){let i=0;for(let u=0;u<t.length;u++)i=i*31+t.charCodeAt(u)|0;return Math.abs(i)%($.length+1)}function Ns(t,i,u){return i==="family"?_(t):i==="host"?t.hostLabel??"unattributed":A[C(t,u)]}function fs(t){const i=os[t.trim().toLowerCase()];return i===void 0?"var(--dim)":`oklch(0.65 0.14 ${i})`}function vs({item:t,selected:i,fresh:u,showHost:f,onSelect:x}){const m=t.attention,b=t.kind==="session"&&t.session?.live===!0,n=m==="interrupt"?"blocked":t.kind==="session"?b?"working":"ended":t.state,p=m==="interrupt"?"danger":m==="badge"||t.state==="review"?"warning":b||t.state==="working"?"accent":"faint",H=m==="interrupt"?" dot--danger dot--pulse":m==="badge"?" dot--warning":b?" dot--working dot--pulse":"",k=m==="silent"&&!b;return e.jsxs("button",{type:"button",className:`mesh-ops-row${i?" mesh-ops-row--selected":""}`,"data-kind":t.kind,"data-fresh":u||void 0,onClick:x,children:[e.jsx("span",{className:`dot${H}`,"data-quiet":k||void 0,"data-hollow":k||void 0,"aria-hidden":!0}),e.jsxs("span",{className:"mesh-ops-row-main",children:[e.jsx("span",{className:"mesh-ops-row-title",children:t.title}),e.jsxs("span",{className:"mesh-ops-row-sub",children:[t.kind," · ",_(t)]})]}),e.jsxs("span",{className:"mesh-ops-row-owner",children:[t.session&&e.jsx("span",{className:"mesh-ops-row-harness",style:{background:fs(t.session.harness)},title:t.session.harness,"aria-hidden":!0}),t.ownerName&&e.jsxs("span",{children:["@",t.ownerName]})]}),e.jsx("span",{className:"mesh-ops-row-route",children:f?t.hostLabel??"—":""}),e.jsxs("span",{className:"mesh-ops-row-state",children:[e.jsx("span",{className:"mesh-ops-row-state-word","data-tone":p,children:m==="badge"&&t.state!=="review"?"flagged":n}),e.jsx("span",{className:"mesh-ops-row-age",children:B(y(t))})]})]})}function ks({hosts:t,newCounts:i,unattributedCount:u,activeHostId:f,unattributedActive:x,onSelect:m,onSelectUnattributed:b}){return e.jsxs("div",{className:"mesh-ops-hosts",role:"group","aria-label":"Hosts",children:[e.jsx("span",{className:"mesh-ops-groupby-label",children:"hosts"}),e.jsx("button",{type:"button",className:`mesh-ops-host${f===null&&!x?" mesh-ops-host--active":""}`,onClick:()=>m(null),title:"Show items across all hosts",children:"all"}),t.map(n=>{const p=i.get(n.nodeId)??0;return e.jsxs("button",{type:"button",className:`mesh-ops-host${f===n.nodeId?" mesh-ops-host--active":""}`,onClick:()=>m(f===n.nodeId?null:n.nodeId),title:n.hostName??n.label,children:[e.jsx("span",{className:`dot${p>0?" dot--warning":n.liveSessionCount>0?" dot--working":""}`,"data-quiet":p===0&&n.liveSessionCount===0?!0:void 0,"aria-hidden":!0}),e.jsx("span",{className:"mesh-ops-host-name",children:n.label}),p>0&&e.jsxs("span",{className:"mesh-ops-host-new",children:[p," new"]}),e.jsxs("span",{className:"mesh-ops-host-meta",children:[n.liveSessionCount>0?`${n.liveSessionCount} live · `:"",n.sessionCount]}),n.lastActivityAt!==null&&e.jsx("span",{className:"mesh-ops-host-age",children:B(n.lastActivityAt)})]},n.nodeId)}),u>0&&e.jsxs("button",{type:"button",className:`mesh-ops-host${x?" mesh-ops-host--active":""}`,onClick:b,title:"Items with no venue host",children:[e.jsx("span",{className:"mesh-ops-host-name",children:"unattributed"}),e.jsx("span",{className:"mesh-ops-host-meta",children:u})]})]})}function js({route:t,navigate:i}){const u=as(t),{loading:f,error:x}=us(u),{items:m,hosts:b,selectedItemId:n,groupBy:p,attnFilter:H,unattributedOnly:k,lab:l}=is(),[G]=c.useState(()=>ls()),[M]=c.useState(()=>rs()),[j,q]=c.useState(()=>Date.now()),[K,z]=c.useState({}),[S,T]=c.useState(null);c.useEffect(()=>{t.itemId&&t.itemId!==n?E(t.itemId):!t.itemId&&n!==null&&E(null)},[t.itemId]),c.useEffect(()=>{const s=window.setInterval(()=>q(Date.now()),3e4);return()=>window.clearInterval(s)},[]),c.useEffect(()=>()=>cs(),[]);const N=c.useMemo(()=>{const s=l.relays?m:m.filter(o=>o.kind!=="session"||o.session?.relay!==!0),d=l.simulateHosts?s.map(o=>{const a=xs(_(o));if(a===0)return o;const h=$[a-1];return{...o,hostNodeId:h.nodeId,hostLabel:h.label}}):s;return k?d.filter(o=>o.hostNodeId===null):d},[m,k,l.relays,l.simulateHosts]),V=l.simulateHosts?S:u,O=c.useMemo(()=>l.simulateHosts&&S?N.filter(s=>s.hostNodeId===S):N,[l.simulateHosts,S,N]),W=c.useMemo(()=>{if(!l.simulateHosts)return b;const s=$.map(d=>{const o=N.filter(a=>a.hostNodeId===d.nodeId);return{nodeId:d.nodeId,label:d.label,hostName:null,brokerUrl:null,tailnetName:null,lastSeenAt:null,registeredAt:null,sessionCount:o.filter(a=>a.kind==="session").length,liveSessionCount:o.filter(a=>a.kind==="session"&&a.session?.live).length,lastActivityAt:o.length>0?Math.max(...o.map(y)):null}});return[...b,...s]},[l.simulateHosts,b,N]),Y=c.useMemo(()=>N.filter(s=>s.hostNodeId===null).length,[N]),J=c.useMemo(()=>{const s=new Map;if(!l.lastLook)return s;for(const d of N)!D(d,M)||!d.hostNodeId||s.set(d.hostNodeId,(s.get(d.hostNodeId)??0)+1);return s},[N,l.lastLook,M]),Q=c.useMemo(()=>{const s={active:0,moving:0,done:0,archive:0};for(const d of O)s[C(d,j)]+=1;return s},[O,j]),v=H??"active",g=c.useMemo(()=>O.filter(s=>C(s,j)===v),[O,v,j]),X=c.useMemo(()=>new Set(g.map(s=>s.hostLabel).filter(Boolean)).size>1,[g]),w=c.useMemo(()=>l.lastLook?s=>D(s,M):()=>!1,[l.lastLook,M]),Z=c.useMemo(()=>{const s=new Map;for(const o of g){const a=Ns(o,p,j),h=s.get(a);h?h.push(o):s.set(a,[o])}return(p==="attention"?P.map(o=>A[o]).filter(o=>s.has(o)):[...s.entries()].sort((o,a)=>{const h=r=>r.some(w)?0:r.some(I=>C(I,j)==="moving")?1:2,L=h(o[1])-h(a[1]);return L!==0?L:Math.max(...a[1].map(y))-Math.max(...o[1].map(y))}).map(([o])=>o)).map(o=>({key:o,items:(s.get(o)??[]).sort((a,h)=>y(h)-y(a))}))},[g,p,w,j]),ss=s=>{E(s.id),i({...t,itemId:s.id})},R=s=>{if(l.simulateHosts){T(s);return}U(!1),i(s?ns(t,s):F(t))},es=()=>{if(k){R(null);return}l.simulateHosts&&T(null),i(F(t)),U(!0)};return e.jsxs("div",{className:`mesh-ops-list${l.compact?" mesh-ops-list--compact":""}${l.lastLook?" mesh-ops-list--lastlook":""}`,children:[e.jsxs("div",{className:"mesh-ops-summary",children:[e.jsx("div",{className:"mesh-ops-tabs",role:"tablist","aria-label":"Triage tabs",children:P.map(s=>e.jsxs("button",{type:"button",role:"tab","aria-selected":v===s,className:`mesh-ops-tab${v===s?" mesh-ops-tab--active":""}`,onClick:()=>ds(v===s?null:s),children:[e.jsx("span",{className:`dot${s==="active"||s==="moving"?" dot--working":""}`,"data-quiet":s==="done"||s==="archive"?!0:void 0,"aria-hidden":!0}),A[s],e.jsx("span",{className:"mesh-ops-tab-count",children:Q[s]})]},s))}),e.jsx("span",{className:"mesh-ops-summary-spacer"}),e.jsxs("span",{className:"mesh-ops-groupby",role:"group","aria-label":"Group items by",children:[e.jsx("span",{className:"mesh-ops-groupby-label",children:"group"}),ps.map(s=>e.jsx("button",{type:"button",className:`mesh-ops-groupby-option${p===s.id?" mesh-ops-groupby-option--active":""}`,"aria-pressed":p===s.id,onClick:()=>ms(s.id),children:s.label},s.id))]})]}),e.jsx(ks,{hosts:W,newCounts:J,unattributedCount:Y,activeHostId:V,unattributedActive:k,onSelect:R,onSelectUnattributed:es}),x&&e.jsx("div",{className:"ctx-panel-empty","data-tone":"error",children:x}),!x&&f&&m.length===0&&e.jsx("div",{className:"ctx-panel-empty",children:"Loading mesh ops…"}),!x&&!f&&g.length===0&&e.jsxs("div",{className:"ctx-panel-empty",children:["Nothing in ",A[v],"."]}),Z.map(s=>{const d=v==="done"||v==="archive",o=d?s.items.filter(r=>r.kind!=="session"||r.session?.live===!0):[...s.items],a=d?s.items.filter(r=>r.kind==="session"&&r.session?.live!==!0):[],h=K[s.key]===!0;h&&o.push(...a);const L=l.lastLook?o.findIndex((r,I)=>!w(r)&&o.slice(0,I).some(ts=>w(ts))):-1;return e.jsxs("div",{className:"mesh-ops-group",children:[e.jsxs("div",{className:"mesh-ops-group-head",children:[e.jsx("span",{className:`dot${s.items.some(w)?" dot--warning":""}`,"data-quiet":!s.items.some(w)||void 0,"aria-hidden":!0}),e.jsx("span",{className:"label-sm mesh-ops-group-name",children:s.key}),e.jsx("span",{className:"mesh-ops-group-spacer"}),a.length>0&&e.jsx("button",{type:"button",className:"mesh-ops-group-more",onClick:()=>z(r=>({...r,[s.key]:!h})),children:h?`hide ${a.length} ended`:`+${a.length} ended`}),e.jsx("span",{className:"mesh-ops-group-count",children:s.items.length})]}),o.map((r,I)=>e.jsxs("div",{children:[I===L&&e.jsxs("div",{className:"mesh-ops-lastlook",role:"separator",children:[e.jsx("span",{className:"mesh-ops-lastlook-rule"}),e.jsx("span",{className:"mesh-ops-lastlook-label",children:"last look — above changed since you scanned"}),e.jsx("span",{className:"mesh-ops-lastlook-rule"})]}),e.jsx(vs,{item:r,selected:r.id===n,fresh:w(r),showHost:X,onSelect:()=>ss(r)})]},r.id))]},s.key)}),G&&e.jsxs("div",{className:"mesh-ops-lab",children:[e.jsx("span",{className:"label-xs",children:"lab"}),bs.map(s=>e.jsx("button",{type:"button",className:"mesh-ops-lab-toggle","data-on":l[s.key]||void 0,"aria-pressed":l[s.key],onClick:()=>hs(s.key),children:s.label},s.key))]})]})}function $s({route:t,navigate:i}){return t.view!=="mesh-ops"?null:e.jsx(js,{route:t,navigate:i})}export{$s as MeshOpsContent};
|