@openscout/scout 0.2.96 → 0.2.97
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/bin/scoutd +0 -0
- package/dist/build-manifest.json +3 -3
- package/dist/client/assets/{ActivityScreen-BnoaUkVZ.js → ActivityScreen-y-5DLleY.js} +1 -1
- package/dist/client/assets/{AddProjectForm-IqOtJfRs.js → AddProjectForm-r_1tVuWk.js} +1 -1
- package/dist/client/assets/{AgentAvatar-6-KBVKUu.js → AgentAvatar-B7c0egdP.js} +1 -1
- package/dist/client/assets/{AgentConfigurationScreen-CuZJy07q.js → AgentConfigurationScreen-BD7Unt2P.js} +1 -1
- package/dist/client/assets/{AgentDefinitionsWorkspace-Iyl4BesU.js → AgentDefinitionsWorkspace-BbcZc9Xk.js} +1 -1
- package/dist/client/assets/{AgentDetailCard-C9rn3Fj5.js → AgentDetailCard-B_KLcgsP.js} +1 -1
- package/dist/client/assets/{AgentFloorView-YT-Jjccf.js → AgentFloorView-DMFiHs21.js} +1 -1
- package/dist/client/assets/{AgentInfoScreen-Dr99gQEZ.js → AgentInfoScreen-DHGLRddI.js} +1 -1
- package/dist/client/assets/{AgentLaneCard-DI2iW9zO.js → AgentLaneCard-ajZvcfdW.js} +1 -1
- package/dist/client/assets/{AgentLaneChrome-D8bARHMx.js → AgentLaneChrome-CTp39syR.js} +1 -1
- package/dist/client/assets/{AgentLaneDetailSheet-52un7dKC.js → AgentLaneDetailSheet-DRc-TpMB.js} +1 -1
- package/dist/client/assets/{AgentLaneSummaryResize-CEBjmPTa.js → AgentLaneSummaryResize-VMNDo7kD.js} +1 -1
- package/dist/client/assets/AgentLanesEmbedScreen-C5k_dDS8.js +1 -0
- package/dist/client/assets/{AgentLanesPreflight-q20mTjms.js → AgentLanesPreflight-CFadSaia.js} +1 -1
- package/dist/client/assets/{AgentLanesView-CetZZDyF.js → AgentLanesView-u5vpLwQf.js} +1 -1
- package/dist/client/assets/{AgentLiveActions-DrEJDJef.js → AgentLiveActions-CsQA3pu_.js} +1 -1
- package/dist/client/assets/{AgentMasterScreen-DJPnstoD.js → AgentMasterScreen-C5WlWNmk.js} +1 -1
- package/dist/client/assets/{AgentSessions-DCPCG4xb.js → AgentSessions-BePq5Lgc.js} +1 -1
- package/dist/client/assets/{AgentsConsole-CsYOoFJi.js → AgentsConsole-BuiZ_bDo.js} +1 -1
- package/dist/client/assets/{AgentsScreen-k8LvBuU_.js → AgentsScreen-CRi-hG2k.js} +1 -1
- package/dist/client/assets/AgentsSubnav-DUsya4WK.js +1 -0
- package/dist/client/assets/{AstronautSuit-DbjQtfD_.js → AstronautSuit-Cjjcv6yQ.js} +1 -1
- package/dist/client/assets/{AtopView-Daq_ob3z.js → AtopView-PxWQd-sX.js} +1 -1
- package/dist/client/assets/{BackToPicker-CXZjBRAe.js → BackToPicker-Cto0Ioz9.js} +1 -1
- package/dist/client/assets/{BriefingDetailScreen-CUCXO-KH.js → BriefingDetailScreen-C29smC5d.js} +1 -1
- package/dist/client/assets/{BriefingsScreen-B5oMTGKv.js → BriefingsScreen-DNyFBrPn.js} +1 -1
- package/dist/client/assets/{BrokerMetadataPanel-BsiU8lTD.js → BrokerMetadataPanel-DbaCQlhw.js} +1 -1
- package/dist/client/assets/{BrokerScreen-BPbOHhCS.js → BrokerScreen-CS0s4Gm4.js} +1 -1
- package/dist/client/assets/{CastPicker-_5E5hNUe.js → CastPicker-CTBHjjGw.js} +1 -1
- package/dist/client/assets/{ChatCollapsedStrip-D-eXhzPf.js → ChatCollapsedStrip-D4rc7wBQ.js} +1 -1
- package/dist/client/assets/{CodeDiffPane-n7W4iGUG.js → CodeDiffPane-QvxCUzTi.js} +1 -1
- package/dist/client/assets/{CodeProjectPicker-CMsbSTDq.js → CodeProjectPicker-DplkpM7f.js} +1 -1
- package/dist/client/assets/{CodeScreen-CeuO3EhR.js → CodeScreen-CrR2JaVj.js} +1 -1
- package/dist/client/assets/{ConversationComposer-CXPKx86g.js → ConversationComposer-H8_hsYSc.js} +1 -1
- package/dist/client/assets/{ConversationFeedRows-WrH-YI3L.js → ConversationFeedRows-hlEFlURs.js} +1 -1
- package/dist/client/assets/{ConversationHeader-BQWzGzLK.js → ConversationHeader-B0ZBhE_E.js} +1 -1
- package/dist/client/assets/{ConversationPanels-Dujvnmup.js → ConversationPanels-fMo6Uy1v.js} +2 -2
- package/dist/client/assets/{ConversationScreen-CR9pWB65.js → ConversationScreen-CXAHQwQ3.js} +1 -1
- package/dist/client/assets/{ConversationStatus-DVzSb2Hv.js → ConversationStatus-DI5GCiyW.js} +1 -1
- package/dist/client/assets/{CrewAvatar-BwXjyg8N.js → CrewAvatar-CXJHLNVM.js} +1 -1
- package/dist/client/assets/CrewWorkspaces-Bz2Dcnt4.js +1 -0
- package/dist/client/assets/CrewWorkspaces-Diq11KDq.css +1 -0
- package/dist/client/assets/{DataTable-Bp8tU9AK.js → DataTable-DXIlOlVu.js} +1 -1
- package/dist/client/assets/{DispatchAftermath-B-6rmXzL.js → DispatchAftermath-CrELgl2e.js} +1 -1
- package/dist/client/assets/{DocumentFocusViewer-Do3wQ_3Z.js → DocumentFocusViewer-DFFE85Tq.js} +1 -1
- package/dist/client/assets/{EmbeddableSurfacesLab-C1orRyP9.js → EmbeddableSurfacesLab-DgpewB3y.js} +1 -1
- package/dist/client/assets/{EmptyState-CJzXj1l5.js → EmptyState-D9X16fKq.js} +1 -1
- package/dist/client/assets/{FileViewerPane-Df6VzXjA.js → FileViewerPane-CY0RN78e.js} +1 -1
- package/dist/client/assets/{FlightObserveScreen-6mGnmWQA.js → FlightObserveScreen-qyzHzxLa.js} +1 -1
- package/dist/client/assets/{FollowScreen-DvnxYLVh.js → FollowScreen-wZ-z67mX.js} +1 -1
- package/dist/client/assets/{HarnessMark-B979GCSB.js → HarnessMark-DAaWPiT_.js} +1 -1
- package/dist/client/assets/{HarnessesScreen-CHTuv8p6.js → HarnessesScreen-DbKkQM4o.js} +1 -1
- package/dist/client/assets/{HerdrSession-B3McuYgi.js → HerdrSession-CYKRfBad.js} +1 -1
- package/dist/client/assets/{HomeHero-CdUVPjkG.js → HomeHero-DYyd3cpz.js} +1 -1
- package/dist/client/assets/{HostAdvisorView-Bok5Sk5c.js → HostAdvisorView-NtM0bsg8.js} +1 -1
- package/dist/client/assets/{KnowledgeSearchInspector-B7XSoJsu.js → KnowledgeSearchInspector-CU6BCFcS.js} +1 -1
- package/dist/client/assets/{KnowledgeSearchScreen-D3o3IODW.js → KnowledgeSearchScreen-DvbRRPQB.js} +1 -1
- package/dist/client/assets/{LaneToolHoverCard-HByf2ndx.js → LaneToolHoverCard-Bo2Zl-1a.js} +1 -1
- package/dist/client/assets/{LaneTraceDetailSheet-BUgHz-sd.js → LaneTraceDetailSheet-C3C8UjXv.js} +1 -1
- package/dist/client/assets/{LaneTraceEventFocus-DM-hoPxG.js → LaneTraceEventFocus-Cek_64zR.js} +1 -1
- package/dist/client/assets/{MeshCanvas-DCLJRsBy.js → MeshCanvas-TvsID4fe.js} +1 -1
- package/dist/client/assets/{MeshCanvasMinimap-cEFS9eW7.js → MeshCanvasMinimap-CxqeVVco.js} +1 -1
- package/dist/client/assets/{MeshScreen-BcxPkhm6.js → MeshScreen-BJ-j9YXv.js} +1 -1
- package/dist/client/assets/{MeshTopologyView-CCRPd8PU.js → MeshTopologyView-BjprutE8.js} +2 -2
- package/dist/client/assets/{MessagesScreen-Bb5l13MO.js → MessagesScreen-CyNIZ3-X.js} +1 -1
- package/dist/client/assets/{MissionContextRail-DF0_kiU7.js → MissionContextRail-Be0uXljQ.js} +1 -1
- package/dist/client/assets/{MissionControlView-E3V7bENU.js → MissionControlView-Bj7cAbZd.js} +1 -1
- package/dist/client/assets/{MissionFocusOverlay-h15sQFvP.js → MissionFocusOverlay-DvTw6ts5.js} +1 -1
- package/dist/client/assets/{MissionLeftAgentRow-KPdk9rSa.js → MissionLeftAgentRow-B0QG7Gys.js} +1 -1
- package/dist/client/assets/{MissionLogPane-BbdDKjUl.js → MissionLogPane-EsM_S3ro.js} +1 -1
- package/dist/client/assets/{NewAgentModal-DfHxad34.js → NewAgentModal-Cqiq1CE1.js} +1 -1
- package/dist/client/assets/{NewChatComposer-_Stj0fZy.js → NewChatComposer-C_1op4dH.js} +1 -1
- package/dist/client/assets/{NewChatOrigin-B1u7ki70.js → NewChatOrigin-D7hwp6dm.js} +1 -1
- package/dist/client/assets/{ObserveEmbedScreen-Co0xTii6.js → ObserveEmbedScreen-CGHI_hb5.js} +1 -1
- package/dist/client/assets/{ObserveTextFlow-ZQWwrK3i.js → ObserveTextFlow-BcrGQet8.js} +2 -2
- package/dist/client/assets/{ObservedTopologyPanel-BJUhDSuQ.js → ObservedTopologyPanel-BhVsvwkh.js} +1 -1
- package/dist/client/assets/{OpenScoutAppShell-CUd2yOLu.js → OpenScoutAppShell-BtfvMkAp.js} +1 -1
- package/dist/client/assets/{OpsAgentsView-DI5wu1si.js → OpsAgentsView-DBYtmLnh.js} +1 -1
- package/dist/client/assets/OpsScreen-CuYVgkC_.js +1 -0
- package/dist/client/assets/OpsSubnav-BEU4kKXm.js +1 -0
- package/dist/client/assets/ProjectAgentProfile-BhXAZEkW.js +1 -0
- package/dist/client/assets/{ProjectAgentProfileBar-k2QHHHsQ.js → ProjectAgentProfileBar-uJw9Wdfk.js} +1 -1
- package/dist/client/assets/{ProjectAgentProfileHero-Bpxk1ui2.js → ProjectAgentProfileHero-CIMS4Dy_.js} +1 -1
- package/dist/client/assets/{ProjectsInbox-C_bMHLCc.js → ProjectsInbox-JgU0lrY8.js} +1 -1
- package/dist/client/assets/{ProjectsRail-J-aH_pxT.js → ProjectsRail-p99BRBOa.js} +1 -1
- package/dist/client/assets/ProjectsScreen-BB45DU53.js +1 -0
- package/dist/client/assets/{ProjectsThreadAside-_ourdM-Q.js → ProjectsThreadAside-BHDTJWOz.js} +1 -1
- package/dist/client/assets/{Provider-CtXJeLrP.js → Provider-Bu-C8Hxc.js} +1 -1
- package/dist/client/assets/{RailRow-CEH2MFBw.js → RailRow-ClMmtaIE.js} +1 -1
- package/dist/client/assets/{RawSessionsTable-CDyrom-F.js → RawSessionsTable-BtKdQPiv.js} +1 -1
- package/dist/client/assets/{RealtimeVoiceScreen-DBl3DN1H.js → RealtimeVoiceScreen-KPHJgO1l.js} +1 -1
- package/dist/client/assets/{RepoDiffEmbedScreen-kY2pHjIs.js → RepoDiffEmbedScreen-CjZ5ew3y.js} +1 -1
- package/dist/client/assets/{RepoDiffPageScreen-C6LhoKrn.js → RepoDiffPageScreen-CdTFfmbk.js} +1 -1
- package/dist/client/assets/{RepoDiffViewer-BhcIIQQg.js → RepoDiffViewer-BFperHQg.js} +1 -1
- package/dist/client/assets/{RepoDiffViewerLazy-Csy_j9LD.js → RepoDiffViewerLazy-BkBmbi1Z.js} +2 -2
- package/dist/client/assets/{ReposScreen-B_cB0zu7.js → ReposScreen-C8dT4bK0.js} +1 -1
- package/dist/client/assets/{ScoutDeckSurface-CSy_fjcG.js → ScoutDeckSurface-BcJsm2Kq.js} +1 -1
- package/dist/client/assets/{ScoutSurface-CQVcSrin.js → ScoutSurface-DmzEtrx8.js} +1 -1
- package/dist/client/assets/{ScoutbotFxLab-DqGiLYNy.js → ScoutbotFxLab-DU15Plja.js} +1 -1
- package/dist/client/assets/{SecondaryNav-BR4VRdgh.js → SecondaryNav-BrXMtvKE.js} +1 -1
- package/dist/client/assets/{SessionEmbedScreen-BTlZ9gAg.js → SessionEmbedScreen-Bt4flmAx.js} +1 -1
- package/dist/client/assets/{SessionObserve-dQDN23pP.js → SessionObserve-BCehTlO8.js} +1 -1
- package/dist/client/assets/{SessionObserveEvidence-BRBGKAgd.js → SessionObserveEvidence-Bb6U-dem.js} +1 -1
- package/dist/client/assets/{SessionRefScreen-COVQMbtE.js → SessionRefScreen-C8BiRVPx.js} +1 -1
- package/dist/client/assets/SessionsScreen-BNvjUflN.js +1 -0
- package/dist/client/assets/{SettingsDrawer-RGVK_bmE.js → SettingsDrawer-BieUmb8g.js} +1 -1
- package/dist/client/assets/{SettingsScreen-CCxzy5IU.js → SettingsScreen-3JvX1WFL.js} +1 -1
- package/dist/client/assets/{ShikiPane-DYI9Hkge.js → ShikiPane-DPWsVNtn.js} +1 -1
- package/dist/client/assets/{SlidePanel-B9ugxWgA.js → SlidePanel-BMRIR6bH.js} +1 -1
- package/dist/client/assets/{SpriteAvatar-z5hHesx9.js → SpriteAvatar-56DTXxSV.js} +1 -1
- package/dist/client/assets/{StatusPill-BFvMjmZV.js → StatusPill-BcuYUgsD.js} +1 -1
- package/dist/client/assets/{TailView-0uEIj2JH.js → TailView-BDy8c2VB.js} +1 -1
- package/dist/client/assets/{Terminal-DouZeNxc.js → Terminal-BlUQY9_Z.js} +1 -1
- package/dist/client/assets/{TerminalEmbedScreen-dMNUbzXr.js → TerminalEmbedScreen-DTjxktyr.js} +1 -1
- package/dist/client/assets/{TerminalHeaderMount-BL07cd0q.js → TerminalHeaderMount-Cy-uxkey.js} +1 -1
- package/dist/client/assets/{TextDocumentSurface-BflAwXeZ.js → TextDocumentSurface-BeSwe3Yl.js} +1 -1
- package/dist/client/assets/{TmuxPeek-BTnjOQi0.js → TmuxPeek-B4no_aGI.js} +1 -1
- package/dist/client/assets/{VoicePermissionsPanel-CgQ6GGS-.js → VoicePermissionsPanel-Bd16scwz.js} +1 -1
- package/dist/client/assets/{WorkDetailScreen-CaLG-zDs.js → WorkDetailScreen-DIFQufak.js} +1 -1
- package/dist/client/assets/{WorkFilesViewer-B9Sil_No.js → WorkFilesViewer-CT5XEFGf.js} +1 -1
- package/dist/client/assets/{activity-DcrMApUY.js → activity-CqZafWfx.js} +1 -1
- package/dist/client/assets/{addon-fit-DMVrz5Sv.js → addon-fit-CM6F_JRD.js} +1 -1
- package/dist/client/assets/{addon-webgl-BYvpZUyu.js → addon-webgl-DRTiePFC.js} +1 -1
- package/dist/client/assets/{agent-autocomplete-B-5QTeas.js → agent-autocomplete-DXUBnlkN.js} +1 -1
- package/dist/client/assets/{agent-essentials-D7KRGYvF.js → agent-essentials-vytdybaX.js} +1 -1
- package/dist/client/assets/{agent-master-model-DqjrVI2h.js → agent-master-model-DAZL92oe.js} +1 -1
- package/dist/client/assets/{agent-specialization-BujJVUTD.js → agent-specialization-BtxLN4UR.js} +1 -1
- package/dist/client/assets/agents-project-DgbqDc65.css +1 -0
- package/dist/client/assets/{arc.es-NHqHWohb.js → arc.es-Bh84oHJ7.js} +1 -1
- package/dist/client/assets/{arrow-down-CKtSUjmW.js → arrow-down-DvTsLokL.js} +1 -1
- package/dist/client/assets/{arrow-left-Czpf-AE4.js → arrow-left-DHfdXJVZ.js} +1 -1
- package/dist/client/assets/{arrow-right-BuzMnLYP.js → arrow-right-BBsrogWf.js} +1 -1
- package/dist/client/assets/{arrow-up-right-C6Wl-1uw.js → arrow-up-right-CY0Vw_67.js} +1 -1
- package/dist/client/assets/{bot-rd0awxD3.js → bot-DzkOUFBb.js} +1 -1
- package/dist/client/assets/{check-ofKUE8yH.js → check-DbIkldnK.js} +1 -1
- package/dist/client/assets/{chevron-down-wciXnOQz.js → chevron-down-C475vltS.js} +1 -1
- package/dist/client/assets/{chevron-right-D-HdlPg8.js → chevron-right-CnZRSd-V.js} +1 -1
- package/dist/client/assets/{chunk-HRAB3GC3-Tyv9rzx7.js → chunk-HRAB3GC3-DLNT8aOo.js} +1 -1
- package/dist/client/assets/{chunk-JTPDIGGW-BC2Mandc.js → chunk-JTPDIGGW-Ci5j4vzV.js} +3 -3
- package/dist/client/assets/{chunk-T65CQEWV-C1AWTYZZ.js → chunk-T65CQEWV-BtNvicWs.js} +1 -1
- package/dist/client/assets/{chunk-YOZR3KYS-DwHPHa6f.js → chunk-YOZR3KYS-DN5EJulq.js} +1 -1
- package/dist/client/assets/{clock-B88r8OrZ.js → clock-DVvENUU5.js} +1 -1
- package/dist/client/assets/{code-xml-D7pOQM9l.js → code-xml-CvKBY3KA.js} +1 -1
- package/dist/client/assets/{compass-Dt1AMXz2.js → compass-BcRI_YXo.js} +1 -1
- package/dist/client/assets/content--T3p6akp.js +1 -0
- package/dist/client/assets/content-4nFMLuzF.js +1 -0
- package/dist/client/assets/content-BJ4nHvcu.js +1 -0
- package/dist/client/assets/{content-nkx0swDe.js → content-BNyAjpUl.js} +1 -1
- package/dist/client/assets/content-BmGp9wNl.js +1 -0
- package/dist/client/assets/content-CBWhwaRo.js +1 -0
- package/dist/client/assets/{content-C9ijJxyl.js → content-CQlykFbe.js} +1 -1
- package/dist/client/assets/content-CevL0DgF.js +1 -0
- package/dist/client/assets/content-Ch8pf2bj.js +1 -0
- package/dist/client/assets/content-Cpvdcm_l.js +1 -0
- package/dist/client/assets/content-DfS3vgAu.js +1 -0
- package/dist/client/assets/content-DpQdNePJ.js +1 -0
- package/dist/client/assets/content-Dqpibejl.js +1 -0
- package/dist/client/assets/content-TV0nd6-r.js +1 -0
- package/dist/client/assets/{content-BWPNyXJ0.js → content-odbb5H4U.js} +1 -1
- package/dist/client/assets/content-uXHLPHe0.js +1 -0
- package/dist/client/assets/{conversation-icons-tp9BX6X2.js → conversation-icons-CBMKBGHd.js} +1 -1
- package/dist/client/assets/{conversation-model-Dc02NsGp.js → conversation-model-QsJVfSeG.js} +1 -1
- package/dist/client/assets/conversation-motion-features-BFLHX2eg.js +1 -0
- package/dist/client/assets/{copy-CWWAJ75H.js → copy-Cj-owMb-.js} +1 -1
- package/dist/client/assets/{cpu-DrqejfkB.js → cpu-DuD3RFX5.js} +1 -1
- package/dist/client/assets/{createLucideIcon-DezKXSG2.js → createLucideIcon-DthwWQIg.js} +1 -1
- package/dist/client/assets/{discover-C2CZO4Tk.js → discover-B3uQlh5L.js} +2 -2
- package/dist/client/assets/embed-entry-DkRcHKTh.js +2 -0
- package/dist/client/assets/{external-link-Dp_a2vRZ.js → external-link-C_nxk0MJ.js} +1 -1
- package/dist/client/assets/{eye-BRyD0jno.js → eye-FnaaPfja.js} +1 -1
- package/dist/client/assets/{file-code-corner-muIVH_xO.js → file-code-corner-DDPq4Cur.js} +1 -1
- package/dist/client/assets/{file-text-CqJgwxmv.js → file-text--hfhwZH1.js} +1 -1
- package/dist/client/assets/{gauge-hU--hKVP.js → gauge-BVEknshP.js} +1 -1
- package/dist/client/assets/{gestures-DN4hEeqv.js → gestures-3gw5VgUS.js} +1 -1
- package/dist/client/assets/{git-branch-CK5v8F2v.js → git-branch-DJyvr0k-.js} +1 -1
- package/dist/client/assets/{home-moving-signal-BjDtEJUP.js → home-moving-signal-BPqBoNSm.js} +1 -1
- package/dist/client/assets/{home-now-card-nF8OotI-.js → home-now-card-UspVW2-2.js} +1 -1
- package/dist/client/assets/{home-now-card-nano-C-r_bBg5.js → home-now-card-nano-G8kMB32m.js} +1 -1
- package/dist/client/assets/{hooks-D46bABUP.js → hooks-BMsQzo9j.js} +1 -1
- package/dist/client/assets/{index-DvLtl7rV.js → index-BI9AljSD.js} +2 -2
- package/dist/client/assets/{index-kL1WLbeS.js → index-C-v0Z6ZS.js} +1 -1
- package/dist/client/assets/{index-CPrU5q04.js → index-D9DzUORB.js} +1 -1
- package/dist/client/assets/index-DfsTyYDx.js +1 -0
- package/dist/client/assets/{inspector-panel-Dkc7rLvY.js → inspector-panel-CFSArQ8Y.js} +1 -1
- package/dist/client/assets/{keyboard-nav-BLYDhL3Z.js → keyboard-nav-e6yGeorb.js} +1 -1
- package/dist/client/assets/{lane-roster-store-DOdI1O13.js → lane-roster-store-Q7pcblY5.js} +1 -1
- package/dist/client/assets/{layers-CSsg3JVP.js → layers-Dz2dKOnU.js} +1 -1
- package/dist/client/assets/{layout-grid-DOChPJdZ.js → layout-grid-Bvs5fdB4.js} +1 -1
- package/dist/client/assets/{left-BNRFiRsb.js → left-B4Ak-Ibt.js} +1 -1
- package/dist/client/assets/{left-BggzhgXN.js → left-BMb493FZ.js} +1 -1
- package/dist/client/assets/{left-YT7mIGuH.js → left-BjFLvVOC.js} +1 -1
- package/dist/client/assets/{left-B3wSE6ql.js → left-CsXQ8Q3G.js} +1 -1
- package/dist/client/assets/left-FNH7faCI.js +1 -0
- package/dist/client/assets/{left-CARCvvxS.js → left-POkqE8gI.js} +1 -1
- package/dist/client/assets/{left-CpokZYHt.js → left-UulOTcWh.js} +1 -1
- package/dist/client/assets/{left-advisor-CCY0vkcO.js → left-advisor-CJkQS2d6.js} +1 -1
- package/dist/client/assets/{left-agents-trhO5sL8.js → left-agents-CFMxyEjT.js} +1 -1
- package/dist/client/assets/{left-default-CG33elBs.js → left-default-rnX5HANc.js} +1 -1
- package/dist/client/assets/{left-lanes-CitMgeTp.js → left-lanes-BpLXT_qH.js} +1 -1
- package/dist/client/assets/{left-mission-Zl2m_5eU.js → left-mission-B0bhseWw.js} +1 -1
- package/dist/client/assets/library-D1iXfda2.js +1 -0
- package/dist/client/assets/{loader-circle-pM56HNhR.js → loader-circle-B2W9DPG5.js} +1 -1
- package/dist/client/assets/{local-agents-C8xAhbO5.js → local-agents-DKr-gIDC.js} +1 -1
- package/dist/client/assets/{mentions-DG6OQrsc.js → mentions-DuLQnEcn.js} +1 -1
- package/dist/client/assets/{mesh-ops-BZ1h5RQs.js → mesh-ops-CRR-KnCG.js} +1 -1
- package/dist/client/assets/{mesh-view-store-ChUOASK8.js → mesh-view-store-CiET-yN8.js} +1 -1
- package/dist/client/assets/{message-circle-mZCv8tvB.js → message-circle-B2DoYKDO.js} +1 -1
- package/dist/client/assets/{message-markup-C2LQDm_k.js → message-markup-Cc_O-WdA.js} +1 -1
- package/dist/client/assets/{message-square-C7t_qtuj.js → message-square-O-Hu9Mk2.js} +1 -1
- package/dist/client/assets/{mission-control-store-nDLdUZPA.js → mission-control-store-DDAgWKUl.js} +1 -1
- package/dist/client/assets/{observe-BpEm1INu.js → observe-Da2mRAsc.js} +1 -1
- package/dist/client/assets/{page-status-E5jnk48p.js → page-status-Crtgjbq3.js} +1 -1
- package/dist/client/assets/{paperclip-C64lkcbM.js → paperclip-BudMKSyr.js} +1 -1
- package/dist/client/assets/{persistent-state-EHXw8WNy.js → persistent-state-xJz-qAFc.js} +1 -1
- package/dist/client/assets/{plus-Co-dqKul.js → plus-BJ1If8vj.js} +1 -1
- package/dist/client/assets/{profile-APxDsN2P.js → profile-B3qDSbrH.js} +1 -1
- package/dist/client/assets/{projects-inbox-Cg4X2lUQ.js → projects-inbox-CLek3QaG.js} +1 -1
- package/dist/client/assets/{proxy-BiW5suC7.js → proxy-1BABCaDb.js} +1 -1
- package/dist/client/assets/{radio-BOxBQX-T.js → radio-B5OpHrrK.js} +1 -1
- package/dist/client/assets/{refresh-cw-DMxGzDwn.js → refresh-cw-DmNAhaH0.js} +1 -1
- package/dist/client/assets/resolve-panes-DXw-cHaj.js +1 -0
- package/dist/client/assets/resolve-sidebar-context-CDdbRDEa.js +1 -0
- package/dist/client/assets/{right-Bmfd3pjP.js → right-BgJ4mQLf.js} +1 -1
- package/dist/client/assets/{right-Dz_xD0Vj.js → right-Bk6h7o-Z.js} +1 -1
- package/dist/client/assets/{right-CkCCPbCX.js → right-BrICCmEt.js} +1 -1
- package/dist/client/assets/{right-CdkcrmeD.js → right-C1QIbqFZ.js} +1 -1
- package/dist/client/assets/{right-BwlW6E57.js → right-CfliKiHY.js} +1 -1
- package/dist/client/assets/{right-BuCgE0fZ.js → right-CtOLXB9s.js} +1 -1
- package/dist/client/assets/{right-CimaAvQN.js → right-D8id_DWQ.js} +1 -1
- package/dist/client/assets/{right-C0ybUw0j.js → right-DJ34yMAi.js} +1 -1
- package/dist/client/assets/{right-D3eSiy41.js → right-DiFmtw6d.js} +1 -1
- package/dist/client/assets/{right-BqI-nr9G.js → right-Lx79pxpG.js} +1 -1
- package/dist/client/assets/{rocket-BQm5_CvR.js → rocket-D3-TUJ2m.js} +1 -1
- package/dist/client/assets/{router-B9vQkNJL.js → router-DTtux5sP.js} +1 -1
- package/dist/client/assets/{scope-views-1IYJdl41.js → scope-views-CPM0sBw_.js} +1 -1
- package/dist/client/assets/{scout-voice-BVUqGhth.js → scout-voice-BZKsdquE.js} +1 -1
- package/dist/client/assets/{scoutbot-markdown-BQ_Ee2Ic.js → scoutbot-markdown-CQ7Y1McC.js} +1 -1
- package/dist/client/assets/{scroll-text-Dze_dXtQ.js → scroll-text-kPhYbh-M.js} +1 -1
- package/dist/client/assets/{search-CDko0PKE.js → search-DmFM_9jm.js} +1 -1
- package/dist/client/assets/{secondaryNavConfig-BoQ_zYR9.js → secondaryNavConfig-C9bQ9_IA.js} +1 -1
- package/dist/client/assets/{selection-bridge-Din6yV3h.js → selection-bridge-Dy2mtMyi.js} +1 -1
- package/dist/client/assets/{send-horizontal-CSjIm6xg.js → send-horizontal-qyjNgEaV.js} +1 -1
- package/dist/client/assets/{server-Bzj7lPIx.js → server-nWqndnxu.js} +1 -1
- package/dist/client/assets/{session-catalog-DsaZJXZt.js → session-catalog-BkmktBHI.js} +1 -1
- package/dist/client/assets/{session-table-BQfR7u6r.js → session-table-DKSF0mrS.js} +1 -1
- package/dist/client/assets/{settings-Dyvpkb1D.js → settings-C6h9y5XX.js} +1 -1
- package/dist/client/assets/{sliders-horizontal-C8njVwfg.js → sliders-horizontal-BhHKxsCO.js} +1 -1
- package/dist/client/assets/{sparkles-CETYrxGA.js → sparkles-Cf8gin88.js} +1 -1
- package/dist/client/assets/{sse-CD9MMUxl.js → sse-DDHEHUgz.js} +1 -1
- package/dist/client/assets/{tail-events-Ps8KpKah.js → tail-events-BdUrO0kb.js} +1 -1
- package/dist/client/assets/{terminal-9GRS_Qdc.js → terminal-C3YRPfyz.js} +1 -1
- package/dist/client/assets/{terminal-relay-GYMIvKs1.js → terminal-relay-BFhdIstF.js} +1 -1
- package/dist/client/assets/{terminal-takeover-_Jyys4me.js → terminal-takeover-B6H4llRR.js} +1 -1
- package/dist/client/assets/{text-BP3oyl8-.js → text-Faa3ZStB.js} +1 -1
- package/dist/client/assets/{use-conversation-list-C9ABzjXI.js → use-conversation-list-DO5J8T1H.js} +1 -1
- package/dist/client/assets/{use-fleet-active-asks-DAspZQjE.js → use-fleet-active-asks-BtgNnRgK.js} +1 -1
- package/dist/client/assets/{use-mesh-ops-items-Dh54ymEp.js → use-mesh-ops-items-N1HHhChY.js} +1 -1
- package/dist/client/assets/{use-reduced-motion-x8pJMVrG.js → use-reduced-motion-8WuxLa5l.js} +1 -1
- package/dist/client/assets/{use-scout-dev-flags-DhCbiDK3.js → use-scout-dev-flags-B31qTy6m.js} +1 -1
- package/dist/client/assets/{useAgentHoverCard-DoBwV0LX.js → useAgentHoverCard-Bkv-Uz_V.js} +1 -1
- package/dist/client/assets/useContentSecondaryNav-Bpkc8ayb.js +1 -0
- package/dist/client/assets/{usePierreRuntime-ejq9dCWV.js → usePierreRuntime-BfZHKAkI.js} +1 -1
- package/dist/client/assets/{wrench-DjkoAOQt.js → wrench-DkxnZRlR.js} +1 -1
- package/dist/client/assets/{x-CAbNespN.js → x-DfRJbqrh.js} +1 -1
- package/dist/client/assets/{xterm-Cf-ngcGP.js → xterm-CJw8Epxv.js} +1 -1
- package/dist/client/assets/{zap-Cq8eWkcF.js → zap-CIo8msJB.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/main.mjs +65 -21
- package/dist/pairing-runtime-controller.mjs +8 -0
- package/dist/runtime/broker-daemon.mjs +58 -10
- package/dist/scout-control-plane-web.mjs +8 -0
- package/package.json +2 -2
- package/dist/client/assets/AgentLanesEmbedScreen-Dgcm7zd_.js +0 -1
- package/dist/client/assets/AgentsSubnav-C4xpQhsv.js +0 -1
- package/dist/client/assets/CrewWorkspaces-CkQDhyie.css +0 -1
- package/dist/client/assets/CrewWorkspaces-NKujRzwh.js +0 -1
- package/dist/client/assets/OpsScreen-D8fQafCl.js +0 -1
- package/dist/client/assets/OpsSubnav-1K4Jaf__.js +0 -1
- package/dist/client/assets/ProjectAgentProfile-Bdjd_dAx.js +0 -1
- package/dist/client/assets/ProjectsScreen-cVUkGbPz.js +0 -1
- package/dist/client/assets/SessionsScreen--5OJ3p3v.js +0 -1
- package/dist/client/assets/agents-project-COzHxZAF.css +0 -1
- package/dist/client/assets/content-9K38QchR.js +0 -1
- package/dist/client/assets/content-BRgnyXWh.js +0 -1
- package/dist/client/assets/content-BdkI07v3.js +0 -1
- package/dist/client/assets/content-C4oWa8SB.js +0 -1
- package/dist/client/assets/content-CFZ4rghn.js +0 -1
- package/dist/client/assets/content-CIqu_Ci_.js +0 -1
- package/dist/client/assets/content-CnJF9DGO.js +0 -1
- package/dist/client/assets/content-CriW8Y8u.js +0 -1
- package/dist/client/assets/content-DDCyPPk_.js +0 -1
- package/dist/client/assets/content-DtcZeh5m.js +0 -1
- package/dist/client/assets/content-U9tsdtle.js +0 -1
- package/dist/client/assets/content-hFLK3CON.js +0 -1
- package/dist/client/assets/content-p00KQrtD.js +0 -1
- package/dist/client/assets/conversation-motion-features-D9-RmBSq.js +0 -1
- package/dist/client/assets/embed-entry-BSMUykuG.js +0 -2
- package/dist/client/assets/index-zvhpRHao.js +0 -1
- package/dist/client/assets/left-B-SdEJSJ.js +0 -1
- package/dist/client/assets/library-DkALuCh5.js +0 -1
- package/dist/client/assets/resolve-panes-DeVJbS9c.js +0 -1
- package/dist/client/assets/resolve-sidebar-context-BQe5J6xF.js +0 -1
- package/dist/client/assets/useContentSecondaryNav-pZe2Zfk1.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t,r as a}from"./index-DvLtl7rV.js";import wt from"./HomeHero-CdUVPjkG.js";import{TailView as bt}from"./TailView-0uEIj2JH.js";import{p as se,a as G}from"./api-Co9aQ2Jw.js";import{u as xt}from"./observe-BpEm1INu.js";import{u as kt}from"./sse-CD9MMUxl.js";import{i as X,o as Mt}from"./surface-activity-B1rgWB1i.js";import{n as x,c as Pe,t as ke}from"./time-Dhsh_2EG.js";import{b as yt,h as St}from"./router-B9vQkNJL.js";import{a as qe,n as Be}from"./colors-BtO5_zlx.js";import{F as jt,R as At,G as Nt,H as It,h as Et}from"./NewChatComposer-_Stj0fZy.js";import{u as Lt,a as De}from"./persistent-state-EHXw8WNy.js";import{M as Ct}from"./text-BP3oyl8-.js";import{u as Rt,m as _t,d as Ot,g as Tt}from"./Provider-CtXJeLrP.js";import{a as Ht}from"./operator-attention-RqieiSY8.js";import{e as $t,i as Ve,f as Ue,g as Wt,h as Pt}from"./agent-lanes-model-DXqjs0OK.js";import{HomeMovingSignalList as Bt}from"./home-moving-signal-BjDtEJUP.js";import{E as Dt}from"./external-link-Dp_a2vRZ.js";import"./refresh-cw-DMxGzDwn.js";import"./createLucideIcon-DezKXSG2.js";import"./activity-DcrMApUY.js";import"./SlidePanel-B9ugxWgA.js";import"./HarnessMark-B979GCSB.js";import"./tail-display-DcliDVkW.js";import"./lane-edit-display-C_Aujldz.js";import"./tail-events-Ps8KpKah.js";import"./index-BWHgHrtv.js";import"./openContent-C6XO6kr5.js";import"./perf-PX8Rx0EP.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-BQ6t92tJ.js";import"./scoutbot-BJIamJOH.js";import"./DocumentFocusViewer-Do3wQ_3Z.js";import"./TextDocumentSurface-BflAwXeZ.js";import"./file-text-CqJgwxmv.js";import"./x-CAbNespN.js";import"./chevron-right-D-HdlPg8.js";import"./code-xml-D7pOQM9l.js";import"./arrow-left-Czpf-AE4.js";import"./arrow-right-BuzMnLYP.js";import"./scout-voice-BVUqGhth.js";import"./fx-z37u1o2z.js";import"./keyboard-nav-BLYDhL3Z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-pM56HNhR.js";import"./conversation-model-Dc02NsGp.js";import"./index-zvhpRHao.js";import"./NewChatOrigin-B1u7ki70.js";import"./chevron-down-wciXnOQz.js";import"./search-CDko0PKE.js";import"./chunk-HRAB3GC3-Tyv9rzx7.js";import"./context-budget-DX_fwUs3.js";import"./lane-observe-vfyACHi0.js";import"./home-live-action-BkqGLVRY.js";import"./cpu-DrqejfkB.js";import"./git-branch-CK5v8F2v.js";import"./file-code-corner-muIVH_xO.js";import"./terminal-9GRS_Qdc.js";function Ft(){return t.jsx("svg",{className:"s-msg-compose-tool-chevron",width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t.jsx("path",{d:"m4 6 4 4 4-4"})})}function Gt({label:e,kicker:s,value:n,onChange:o,options:c,disabled:r=!1,hideKicker:d=!1,className:m}){const g=c.find(v=>v.value===n)?.label??(n.trim()?n:c[0]?.label??e);return t.jsxs("label",{className:["s-msg-compose-tool",r?"s-msg-compose-tool--disabled":"",m??""].filter(Boolean).join(" "),children:[t.jsx("span",{className:"s-msg-compose-tool-value",children:g}),t.jsx(Ft,{}),t.jsx("select",{className:"s-msg-compose-tool-native","aria-label":e,title:s&&!d?s:e,value:n,disabled:r,onChange:v=>o(v.target.value),children:c.map(v=>t.jsx("option",{value:v.value,children:v.label},v.value||"__empty__"))})]})}const oe=30*6e4,ue="30m",ze="recent",le=[{key:"5m",label:"5m",windowMs:5*6e4},{key:"30m",label:"30m",windowMs:oe},{key:"4h",label:"4h",windowMs:240*6e4},{key:"24h",label:"24h",windowMs:1440*6e4}],ce={working:0,native:1,observed:2};function Kt(e){const s=e?.trim();return le.some(n=>n.key===s)?s:ue}function qt(e){return le.find(s=>s.key===e)??le[1]}function Vt(e){return e==="grouped"?"grouped":ze}function Ut(e,s,n){if(n==="grouped"){const r=ce[e.bucket]-ce[s.bucket];if(r!==0)return r}const o=s.lastActivityAt-e.lastActivityAt;if(o!==0)return o;const c=ce[e.bucket]-ce[s.bucket];return c!==0?c:e.id.localeCompare(s.id)}function Qe(e,s,n=oe){const o=x(e);return o!==null&&s-o<=n}function Ye(e){const s=e?.trim().toLowerCase();return s?s==="pi"||s==="grok-acp"||s==="grok"?"grok":s:null}function zt(e,s,n,o=[],c=oe,r=ue){return!!(n||qe(e.state)||$t(e,s,r)||Je(e,o,s,c))}function Qt(e,s){const n=Ye(e.harness);return n?n===s.source?.trim().toLowerCase():!1}function Je(e,s,n,o=oe){const c=e.harnessSessionId?.trim();if(!c)return!1;const r=n-o;return s.some(d=>{const m=x(d.ts);if(m===null||m<r||!Qt(e,d))return!1;const u=d.sessionId?.trim();return!!(u&&u===c)})}function Yt(e){const{agent:s,observeEntry:n,tailEvents:o,nowMs:c,movingAsk:r,windowMs:d=oe}=e;if(r)return!0;const m=n?.data;if(Ve(m))return!0;const u=Ue(m);return!!(u!==null&&c-u<=d||Je(s,o,c,d)||qe(s.state)&&Qe(s.updatedAt,c,d))}function Jt(e,s){const n=e?.metadata?.session,o=e?.metadata?.usage,c=o?.contextInputTokens,r=o?.contextWindowTokens,d=typeof c=="number"&&typeof r=="number"&&r>0?Math.min(100,Math.round(c/r*100)):null;return{sessionId:n?.externalSessionId??s?.sessionId??null,model:n?.model??s?.model??null,contextPct:d}}function Xe(e){if(!e)return null;const s=e.sessionId?.trim()||e.data?.metadata?.session?.externalSessionId?.trim();if(s)return`session:${s}`;const n=e.historyPath?.trim()||e.data?.metadata?.session?.threadPath?.trim();return n?`history:${n}`:null}function Xt(e){const s=e.observe?.metadata?.session,n=s?.externalSessionId?.trim();if(n)return`session:${n}`;const o=s?.threadPath?.trim();return o?`history:${o}`:null}function Fe(e,s){const n=s?.sessionId?.trim()||s?.data?.metadata?.session?.externalSessionId?.trim(),o=e.harnessSessionId?.trim();return!!(n&&o&&n===o)}function Zt(e,s){const n=new Map,o=[];for(const c of e){const r=s[c.id],d=Xe(r);if(!d){o.push(c);continue}const m=n.get(d);if(m===void 0){n.set(d,o.length),o.push(c);continue}const u=o[m];!Fe(u,s[u.id])&&Fe(c,r)&&(o[m]=c)}return o}function be(e,s){const{observeEntry:n,tailEvents:o,nowMs:c,movingAsk:r}=s;if(r)return x(r.updatedAt)??c;if(Ve(n?.data))return c;const d=Ue(n?.data);if(d!==null)return d;const m=e.harnessSessionId?.trim(),u=Ye(e.harness);let g=0;if(m)for(const v of o){if(u&&v.source!==u||v.sessionId?.trim()!==m)continue;const I=x(v.ts);I!==null&&(g=Math.max(g,I))}return g>0?g:x(e.updatedAt)??0}const es=9;function ts(e){const{lanes:s}=Wt({transcripts:e.transcripts,tailEvents:e.tailEvents,processes:e.processes??[],scoutAgents:e.agents,observeCache:e.observeCache??{},now:e.nowMs,workingOnly:!0,horizon:e.horizon??ue});return s.filter(n=>n.source==="native")}const P=[{label:"30m",value:30*6e4,activityLimit:80},{label:"6h",value:360*6e4,activityLimit:250},{label:"24h",value:1440*6e4,activityLimit:800}],Ge=P[2].value,ss="openscout.home.lookbackMs.v1",ns="openscout.home.movingWindow.v1",os="openscout.home.movingSort.v1",is=6e4,as=3e4,rs=3,ne=3e4;function cs(e,s){const n=x(e);if(n===null)return"—";const o=Math.max(0,Math.floor((s-n)/1e3));if(o<60)return`${o}s`;const c=Math.floor(o/60);if(c<60)return`${c}m`;const r=Math.floor(c/60);return r<48?`${r}h`:`${Math.floor(r/24)}d`}function ls(e,s=140){const n=(e??"").replace(/\s+/g," ").trim();return n?n.length>s?`${n.slice(0,s-1)}…`:n:""}function us(e){return{handoff_sent:"handed off",handoff_received:"received handoff",ask_sent:"sent a request",message_sent:"said",message_received:"received"}[e]??e.replace(/[._]/g," ")}function ds(e){return e.conversationId?{view:"conversation",conversationId:e.conversationId}:e.recordId?{view:"work",workId:e.recordId}:e.agentId?{view:"agents-v2",agentId:e.agentId}:null}function ms(e){const s=Math.round(e/6e4);if(s<60)return`${s}m`;const n=s/60;return`${Number.isInteger(n)?n:n.toFixed(1)}h`}function Me(e){if(!Number.isFinite(e)||e<=0)return"now";const s=Math.floor(e/1e3);if(s<60)return`${s}s`;const n=Math.floor(s/60);if(n<60)return`${n}m`;const o=Math.floor(n/60);return o<48?`${o}h`:`${Math.floor(o/24)}d`}function fs(e,s,n){if(e.length===0)return null;const o=e.map(u=>x(u.ts)).filter(u=>u!==null).sort((u,g)=>g-u);if(o.length===0)return null;const c=o[0],r=o[o.length-1];let d=0;for(let u=1;u<o.length;u++)d=Math.max(d,o[u-1]-o[u]);const m=n-s;return d=Math.max(d,r-m),{count:e.length,lastAgoMs:Math.max(0,n-c),longestGapMs:Math.max(0,d)}}function vs(e){const s=e.map(o=>Math.sqrt(o)),n=[.56,.28,.11,.05];return s.map((o,c)=>{let r=0,d=0;for(let m=-3;m<=3;m++){const u=c+m;if(u<0||u>=s.length)continue;const g=n[Math.abs(m)]??0;r+=s[u]*g,d+=g}return d>0?r/d:0})}function hs(e,s,n){if(e.length<2||s.length===0)return e;const o=Math.max(1,e[1].ts-e[0].ts),c=e[0].ts,r=e[e.length-1].ts+o,d=e.map(g=>g.count);for(const g of s){const v=x(g.ts);if(v===null||v<c||v>n||v>=r)continue;const I=Math.floor((v-c)/o);I>=0&&I<d.length&&(d[I]=(d[I]??0)+1)}const m=vs(d),u=Math.max(1,...m);return e.map((g,v)=>({...g,count:d[v]??g.count,value:(m[v]??0)/u}))}function xe(e){return e.status==="fulfilled"?null:gs(e.reason instanceof Error?e.reason.message:String(e.reason))}function gs(e){return/failed to fetch|networkerror|load failed|couldn't connect|connection refused/i.test(e)?"Scout server is unreachable":e}function ps(e){return e==="Scout server is unreachable"}function Rn({navigate:e}){const{agents:s,onboarding:n,reload:o,route:c}=Rt(),r=yt(c),d=a.useMemo(()=>_t(s,r),[s,r]),m=a.useMemo(()=>Ot(s,r),[s,r]),[u,g]=Lt(ss,Ge),v=a.useMemo(()=>P.find(i=>i.value===u)??P[P.length-1],[u]),[I,K]=De(ns,ue),T=Kt(I),k=qt(T),[ie,$]=De(os,ze),B=Vt(ie),q=a.useMemo(()=>Pt(),[T]),[j]=a.useState(()=>{const i=new URLSearchParams({activityLookbackMs:String(v.value),activityLimit:String(v.activityLimit)}).toString(),l=new URLSearchParams({limit:String(q),transcripts:"true"}).toString();return{fleet:se(`/api/fleet?${i}`,ne),heartrate:se("/api/heartrate",ne),gauges:se("/api/service-budgets",ne),tailRecent:se(`/api/tail/recent?${l}`,ne),tailDiscovery:se("/api/tail/discover",ne)}}),[D,C]=a.useState(j.fleet),[V,de]=a.useState(j.heartrate?.buckets??[]),[h,A]=a.useState(j.heartrate?.windowLabel??"trailing 7d"),[E,U]=a.useState(j.heartrate?j.heartrate.bucketLabel??"":"3h buckets"),[M,Ze]=a.useState(j.tailRecent?.events??[]),[me,et]=a.useState(j.tailDiscovery),[tt,fe]=a.useState(j.gauges?.gauges??[]),[R,ye]=a.useState(j.fleet===null),[Se,je]=a.useState(!1),[F,Ae]=a.useState(null),[Z,st]=a.useState(null),ee=a.useRef(null),Ne=a.useRef(0),Ie=a.useRef(0),ve=a.useRef(j.fleet);a.useEffect(()=>{ve.current=D},[D]);const z=a.useCallback(async(i=!1)=>(await G(`/api/service-budgets${i?"?refresh=1":""}`,{cache:"no-store"})).gauges??[],[]),Q=a.useMemo(()=>Tt(D,d),[D,d]),L=a.useCallback(async(i="initial")=>{const l=++Ne.current;!(ve.current!==null)&&i!=="background"?(ye(!0),Ae(null)):je(!0);const w=new URLSearchParams({activityLookbackMs:String(v.value),activityLimit:String(v.activityLimit)}).toString(),[b,O,S]=await Promise.allSettled([G(`/api/fleet?${w}`),G("/api/heartrate"),o()]);if(l!==Ne.current)return;b.status==="fulfilled"&&(ve.current=b.value,C(b.value)),O.status==="fulfilled"&&(de(O.value.buckets),A(O.value.windowLabel),U(O.value.bucketLabel??""));const W=[xe(b),xe(O),xe(S)].filter(J=>!!J);Ae(W[0]??null),W.length<4&&st(Date.now()),ye(!1),je(!1)},[o,v]),nt=a.useCallback(()=>{X()&&(ee.current||(ee.current=setTimeout(()=>{ee.current=null,L("background")},250)))},[L]);a.useEffect(()=>(L(),()=>{ee.current&&clearTimeout(ee.current)}),[L]),kt(nt),a.useEffect(()=>{let i=!1;const l=async()=>{try{const b=await z();i||fe(b)}catch{}};l();const f=setInterval(()=>{X()&&l()},is),w=()=>{document.visibilityState==="visible"&&X()&&l()};return window.addEventListener("focus",w),document.addEventListener("visibilitychange",w),()=>{i=!0,clearInterval(f),window.removeEventListener("focus",w),document.removeEventListener("visibilitychange",w)}},[z]);const te=a.useCallback(async()=>{try{const i=new URLSearchParams({limit:String(q),transcripts:"true"}),[l,f]=await Promise.all([G(`/api/tail/recent?${i.toString()}`),G("/api/tail/discover").catch(()=>null)]);Ze(l.events??[]),f&&et(f)}catch{}},[q]);a.useEffect(()=>{te();const i=setInterval(()=>{X()&&te()},as);return()=>clearInterval(i)},[te]),a.useEffect(()=>{const i=setInterval(()=>{X()&&L("background")},15e3);return()=>clearInterval(i)},[L]),a.useEffect(()=>Mt(()=>{const l=Date.now();l-Ie.current<1e3||(Ie.current=l,L("background"),z().then(fe).catch(()=>null),te())}),[z,L,te]);const[p,ot]=a.useState(()=>Date.now());a.useEffect(()=>{const i=setInterval(()=>{X()&&ot(Date.now())},1e3);return()=>clearInterval(i)},[]);const Ee=a.useMemo(()=>(Q?.activeAsks??[]).filter(i=>i.status==="queued"||i.status==="working"),[Q]),ae=a.useMemo(()=>Ee.filter(i=>Qe(i.updatedAt,p,k.windowMs)),[Ee,k.windowMs,p]),H=a.useMemo(()=>{const i=new Map;for(const l of ae){const f=i.get(l.agentId),w=x(l.updatedAt)??0,b=x(f?.updatedAt)??0;(!f||w>b)&&i.set(l.agentId,l)}return i},[ae]),it=a.useMemo(()=>m.filter(i=>zt(i,p,H.has(i.id),M,k.windowMs,T)),[m,H,k.windowMs,T,p,M]),y=xt(it),_=a.useMemo(()=>{const l=m.filter(f=>Yt({agent:f,observeEntry:y[f.id],tailEvents:M,nowMs:p,movingAsk:H.get(f.id),windowMs:k.windowMs})).sort((f,w)=>be(w,{observeEntry:y[w.id],tailEvents:M,nowMs:p,movingAsk:H.get(w.id)})-be(f,{observeEntry:y[f.id],tailEvents:M,nowMs:p,movingAsk:H.get(f.id)}));return Zt(l,y)},[m,H,k.windowMs,y,M,p]);a.useMemo(()=>{const i={};for(const l of _)i[l.id]=Jt(y[l.id]?.data);return i},[y,_]);const Le=a.useMemo(()=>new Set(_.map(i=>i.id)),[_]),Ce=a.useMemo(()=>{const i=new Set;for(const l of _){const f=Xe(y[l.id]);f&&i.add(f)}return i},[y,_]),Re=a.useMemo(()=>ts({agents:m,tailEvents:M,transcripts:me?.transcripts??[],processes:me?.processes??[],observeCache:y,nowMs:p,horizon:T}).filter(l=>{if(Le.has(l.agent.id))return!1;const f=Xt(l);return!(f&&Ce.has(f))}).sort((l,f)=>f.lastActiveAt-l.lastActiveAt),[m,T,y,p,me,M,Le,Ce]),he=a.useMemo(()=>ae.filter(i=>!_.some(l=>l.id===i.agentId)).sort((i,l)=>Pe(i.updatedAt,l.updatedAt)),[_,ae]),_e=p-u,N=a.useMemo(()=>{const i=new Set(["ask_failed","ask_replied","flight.completed","flight.updated","flight_updated"]),l=(Q?.activity??[]).filter(f=>!i.has(f.kind)&&(x(f.ts)??0)>=_e);return l.filter((f,w)=>{const b=l[w-1];return b?!(b.title===f.title&&b.summary===f.summary&&b.conversationId===f.conversationId&&Math.abs((x(b.ts)??0)-(x(f.ts)??0))<=5e3):!0})},[Q?.activity,_e]),ge=a.useMemo(()=>fs(N,u,p),[N,u,p]),pe=N.length>=v.activityLimit,at=a.useMemo(()=>{const i=P.findIndex(l=>l.value===u);return i>=0&&i<P.length-1?P[i+1]:null},[u]),rt=new Date,ct=St("ops.control",!0),we=n?.operatorName?.trim()||n?.operatorNameSuggestion?.trim()||"operator",lt=a.useMemo(()=>hs(V,M,p),[V,M,p]),Oe=a.useMemo(()=>{const i=p-k.windowMs,l=Q?.activity??[],f=new Set(m.map(S=>S.name.toLowerCase())),w=new Set(m.map(S=>S.id)),b=new Set(["agent_message","status_message","ask_opened","ask_working","handoff_sent","collaboration_event"]),O=new Map;for(const S of l){const W=x(S.ts);if(W===null||W<i||!b.has(S.kind))continue;const J=S.actorName?.trim();if(!J||J.toLowerCase()===we.toLowerCase()||f.has(J.toLowerCase())||S.agentId&&w.has(S.agentId))continue;const $e=J.toLowerCase(),We=O.get($e),pt=x(We?.ts)??0;(!We||W>pt)&&O.set($e,S)}return[...O.values()].sort((S,W)=>Pe(S.ts,W.ts))},[Q?.activity,k.windowMs,p,m,we]),ut=R?"syncing":F?`${ps(F)?"offline":"sync issue"} · ${Z?ke(Z):"waiting"}`:Z?`Last updated ${ke(Z)}`:"waiting",dt=a.useCallback(()=>{L("manual"),z(!0).then(i=>fe(i)).catch(()=>{})},[z,L]),mt={now:rt,operatorName:we,syncLabel:ut,error:F,loading:R,refreshing:Se,onRefresh:dt,navigate:e,opsEnabled:ct,heartrate:lt,heartrateWindow:h,heartrateBucketLabel:E,heartrateVisibleEventThreshold:rs,serviceGauges:tt},ft=!R&&!F&&N.length===0&&u>=Ge,vt=!R&&!F&&N.length===0,ht=R||N.length>0||!!F||!ft,Te=a.useMemo(()=>[..._.map(l=>({bucket:"working",id:l.id,agent:l,lastActivityAt:be(l,{observeEntry:y[l.id],tailEvents:M,nowMs:p,movingAsk:H.get(l.id)})})),...Re.map(l=>({bucket:"native",id:l.id,lane:l,lastActivityAt:l.lastActiveAt})),...Oe.map(l=>({bucket:"observed",id:l.id,actor:l,lastActivityAt:x(l.ts)??0}))].sort((l,f)=>Ut(l,f,B)),[H,B,Re,p,y,Oe,M,_]),He=Te.slice(0,es),re=He.length,Y=Te.length+he.length,gt=Y>re&&re>0?`What's moving · ${re} of ${Y}`:`What's moving · ${Y}`;return t.jsx("div",{className:"s-fleet-home",children:t.jsxs("div",{className:"s-fleet-home-inner",children:[t.jsx(wt,{...mt}),(Y>0||R)&&t.jsxs("div",{className:"s-fleet-section",children:[t.jsx(Ke,{label:R&&Y===0?"What's moving":gt,right:t.jsxs("div",{className:"s-moving-controls",children:[t.jsx(ws,{sort:B,onSortChange:$,windowKey:k.key,onWindowChange:K}),t.jsx("button",{className:"s-link-btn",onClick:()=>e({view:"mesh"}),children:"open mesh ↗"})]})}),R&&Y===0?t.jsx(ks,{}):t.jsxs(t.Fragment,{children:[re>0&&t.jsx(Bt,{cards:He,sort:B,nowMs:p,movingAskByAgent:H,observeCache:y,navigate:e}),he.length>0&&t.jsx("div",{className:"s-moving-ask-list",children:he.map(i=>t.jsx(bs,{ask:i,navigate:e},i.invocationId))})]})]}),ht&&t.jsxs("div",{className:"s-fleet-section",children:[t.jsx(Ke,{label:`Scout coordination · ${N.length}${pe?"+":""}`,right:t.jsx(xs,{value:u,onChange:g,refreshing:Se&&!R})}),ge&&t.jsxs("div",{className:"s-fleet-live-shape",children:[t.jsxs("span",{children:["last ",Me(ge.lastAgoMs)," ago"]}),t.jsx("span",{children:"·"}),t.jsxs("span",{children:["longest gap ",Me(ge.longestGapMs)]}),pe&&t.jsxs(t.Fragment,{children:[t.jsx("span",{children:"·"}),t.jsxs("span",{style:{color:"var(--amber)"},children:["showing ",Math.min(N.length,30)," of ",v.activityLimit,"+ (capped)"]})]}),!pe&&N.length>30&&t.jsxs(t.Fragment,{children:[t.jsx("span",{children:"·"}),t.jsxs("span",{children:["showing 30 of ",N.length]})]})]}),R&&N.length===0?t.jsx(Ms,{}):N.length===0?t.jsx(ys,{lookbackMs:u,nextOption:at,onWiden:i=>g(i.value),loadedAt:Z,nowMs:p,error:F,onRetry:()=>{L("manual")}}):t.jsx("div",{className:"s-mc-stream s-fleet-live-stream",children:N.slice(0,30).map(i=>t.jsx(As,{item:i,nowMs:p,onOpen:()=>{const l=ds(i);l&&e(l)}},i.id))})]}),vt&&t.jsx("div",{className:"s-fleet-section s-fleet-section--quiet-start",children:t.jsx(js,{agents:m,navigate:e})})]})})}function Ke({label:e,right:s}){return t.jsxs("div",{className:"s-section-rule",children:[t.jsx("span",{className:"s-eyebrow",children:e}),t.jsx("span",{className:"s-section-rule-line"}),s&&t.jsx("span",{className:"s-section-rule-right",children:s})]})}function ws({sort:e,onSortChange:s,windowKey:n,onWindowChange:o}){return t.jsxs("div",{className:"s-moving-controlset","aria-label":"Moving cards controls",children:[t.jsxs("div",{className:"s-mc-window s-moving-window",role:"group","aria-label":"Moving sort",children:[t.jsx("span",{className:"s-mc-window-label",children:"Sort"}),t.jsx("div",{className:"s-mc-window-tabs",children:[["recent","Recent"],["grouped","Grouped"]].map(([c,r])=>t.jsx("button",{type:"button",className:`s-mc-window-tab${e===c?" is-active":""}`,onClick:()=>s(c),children:r},c))})]}),t.jsxs("div",{className:"s-mc-window s-moving-window",role:"group","aria-label":"Moving activity window",children:[t.jsx("span",{className:"s-mc-window-label",children:"Window"}),t.jsx("div",{className:"s-mc-window-tabs",children:le.map(c=>t.jsx("button",{type:"button",className:`s-mc-window-tab${n===c.key?" is-active":""}`,onClick:()=>o(c.key),children:c.label},c.key))})]})]})}function bs({ask:e,navigate:s}){const n=Ht(e);return t.jsxs("button",{className:"s-moving-ask-row",onClick:()=>s(n),children:[t.jsx("span",{className:"s-moving-ask-agent",children:e.agentName??e.agentId}),t.jsx("span",{className:"s-moving-ask-title",children:e.summary??e.task}),t.jsx("span",{className:"s-moving-ask-state",children:e.statusLabel}),t.jsx("span",{className:"s-moving-ask-time",children:ke(e.updatedAt)})]})}function xs({value:e,onChange:s,refreshing:n}){return t.jsxs("div",{className:"s-mc-window",role:"group","aria-label":"Lookback window",children:[t.jsxs("span",{className:"s-mc-window-label",children:["Lookback",n&&t.jsx("span",{className:"s-mc-window-refreshing","aria-label":"refreshing"})]}),t.jsx("div",{className:"s-mc-window-tabs",children:P.map(o=>t.jsx("button",{type:"button",className:`s-mc-window-tab${o.value===e?" is-active":""}`,onClick:()=>s(o.value),children:o.label},o.value))})]})}function ks(){return t.jsx("div",{className:"s-moving-signal-stage s-moving-signal-skeleton","aria-hidden":"true",children:t.jsx("div",{className:"s-moving-signal-list",children:[0,1,2,3,4].map(e=>t.jsxs("div",{className:"s-moving-signal-row s-moving-signal-row--skeleton",children:[t.jsx("span",{className:"s-moving-signal-skeleton-age"}),t.jsx("span",{}),t.jsx("span",{className:"s-moving-signal-skeleton-where"}),t.jsx("span",{className:"s-moving-signal-skeleton-action"})]},e))})})}function Ms(){return t.jsx("div",{className:"s-mc-stream s-fleet-live-stream s-fleet-live-stream--skeleton","aria-hidden":"true",children:[0,1,2,3,4].map(e=>t.jsxs("div",{className:"s-fleet-live-skeleton-row",children:[t.jsx("span",{className:"s-fleet-live-skeleton-time"}),t.jsx("span",{className:"s-fleet-live-skeleton-actor"}),t.jsx("span",{className:"s-fleet-live-skeleton-text"})]},e))})}function ys({lookbackMs:e,nextOption:s,onWiden:n,loadedAt:o,nowMs:c,error:r,onRetry:d}){if(r)return t.jsxs("div",{className:"s-mc-empty s-fleet-live-empty",children:[t.jsx("div",{className:"s-fleet-live-empty-title",children:"Couldn’t load activity."}),t.jsx("div",{className:"s-fleet-live-empty-detail",children:r}),t.jsx("div",{className:"s-fleet-live-empty-actions",children:t.jsx("button",{type:"button",className:"s-link-btn",onClick:d,children:"Try again"})})]});const m=o?`Polled ${Me(Math.max(0,c-o))} ago.`:"Polling…";return t.jsxs("div",{className:"s-mc-empty s-fleet-live-empty",children:[t.jsxs("div",{className:"s-fleet-live-empty-title",children:["No Scout messages or dispatches in the last ",ms(e),"."]}),t.jsx("div",{className:"s-fleet-live-empty-detail",children:m}),s&&t.jsx("div",{className:"s-fleet-live-empty-actions",children:t.jsxs("button",{type:"button",className:"s-link-btn",onClick:()=>n(s),children:["Widen to ",s.label," →"]})})]})}function Ss(e){return[...e].sort((s,n)=>{const o=Be(s.state),c=Be(n.state);return(o==="callable"?0:o==="in_turn"||o==="in_flight"?1:2)-(c==="callable"?0:c==="in_turn"||c==="in_flight"?1:2)||s.name.localeCompare(n.name)})}function js({agents:e,navigate:s}){const n=a.useMemo(()=>Ss(e),[e]),[o,c]=a.useState(()=>n[0]?.id??""),r=n.find(h=>h.id===o)??null,[d,m]=a.useState(null),[u,g]=a.useState(""),[v,I]=a.useState(r?.harness?.trim()??""),[K,T]=a.useState(r?.model?.trim()??""),[k,ie]=a.useState("medium"),[$,B]=a.useState(!1),[q,j]=a.useState(null),D=d??At;a.useEffect(()=>{n.some(h=>h.id===o)||c(n[0]?.id??"")},[o,n]),a.useEffect(()=>{I(r?.harness?.trim()??""),T(r?.model?.trim()??"")},[r?.id]),a.useEffect(()=>{const h=r?.projectRoot?.trim()||r?.cwd?.trim(),A=new URLSearchParams({scope:"global+project"});h&&A.set("projectRoot",h);let E=!1;return G(`/api/runner/options?${A.toString()}`).then(U=>{!E&&U.schemaVersion==="openscout.runtime-capabilities.v1"&&m(U)}).catch(()=>{}),()=>{E=!0}},[r?.cwd,r?.projectRoot]);const C=v||r?.harness?.trim()||"",V=a.useMemo(()=>{const h=jt(D);return C&&!h.harnesses.some(A=>A.value===C)?{...h,harnesses:[...h.harnesses,{value:C,label:C,models:[{value:"",label:"Default",note:"harness picks"}]}]}:h},[D,C]);a.useEffect(()=>{const h=Nt(V,C,K);!h||h.some(A=>A.value===k)||ie(h.find(A=>A.value==="medium")?.value??h[0]?.value??"")},[V,C,K,k]);const de=async h=>{const A=u.trim();if(!(!r||!A||$)){B(!0),j(null);try{const E=await Et(r),U=await G("/api/send",{method:"POST",body:JSON.stringify({body:A,chatId:E,execution:{harness:v||void 0,model:K||void 0,reasoningEffort:k||void 0}})});g("");const M=U.conversationId??E;s({view:"conversation",conversationId:M})}catch(E){j(E instanceof Error?E.message:String(E))}finally{B(!1)}}};return t.jsxs("div",{className:"s-quiet-start",children:[t.jsxs("div",{className:"s-quiet-panel s-quiet-panel--tail",children:[t.jsxs("div",{className:"s-quiet-panel-head",children:[t.jsx("span",{className:"s-eyebrow",children:"Local tail"}),t.jsxs("button",{type:"button",className:"s-icon-btn",title:"Open tail",onClick:()=>s({view:"ops",mode:"tail"}),children:[t.jsx(Dt,{size:14,"aria-hidden":"true"}),t.jsx("span",{children:"Open tail"})]})]}),t.jsx("div",{className:"s-quiet-tail-frame",children:t.jsx(bt,{navigate:s,chrome:"embedded"})})]}),t.jsxs("div",{className:"s-quiet-panel s-quiet-panel--ask",children:[t.jsx("div",{className:"s-quiet-panel-head",children:t.jsx("span",{className:"s-eyebrow",children:"Message"})}),t.jsx("div",{className:"s-quiet-compose",children:t.jsx(Ct,{density:"panel",value:u,onChange:g,onSend:()=>{de()},placeholder:"Type a message…",disabled:$||!r,sending:$,canSend:!$&&!!r&&u.trim().length>0,leadingTools:t.jsxs("div",{className:"s-quiet-target-chip",children:[t.jsx("span",{className:"s-quiet-label",children:"To"}),t.jsx(Gt,{label:"Send to agent",value:o,onChange:c,disabled:n.length===0||$,options:n.length===0?[{value:"",label:"No registered agents"}]:n.map(h=>({value:h.id,label:h.name}))})]}),tools:t.jsx(It,{catalog:V,value:{harness:C,model:K,effort:k},onChange:h=>{I(h.harness===(r?.harness?.trim()??"")?"":h.harness),T(h.model),ie(h.effort)},disabled:$||!r})})}),q&&t.jsx("div",{className:"s-quiet-error",children:q})]})]})}function As({item:e,nowMs:s,onOpen:n}){const o=e.actorName??"—",c=us(e.kind),r=ls(e.title??e.summary,110);return t.jsxs("button",{type:"button",className:"s-mc-stream-row",onClick:n,children:[t.jsx("span",{className:"s-mc-stream-time",children:cs(e.ts,s)}),t.jsx("span",{className:"s-mc-stream-actor",children:o}),t.jsx("span",{className:"s-mc-stream-verb",children:c}),t.jsx("span",{className:"s-mc-stream-text",children:r})]})}export{Rn as HomeContent,Rn as HomeScreen};
|
|
1
|
+
import{j as t,r as a}from"./index-BI9AljSD.js";import wt from"./HomeHero-DYyd3cpz.js";import{TailView as bt}from"./TailView-BDy8c2VB.js";import{p as se,a as G}from"./api-Co9aQ2Jw.js";import{u as xt}from"./observe-Da2mRAsc.js";import{u as kt}from"./sse-DDHEHUgz.js";import{i as X,o as Mt}from"./surface-activity-B1rgWB1i.js";import{n as x,c as Pe,t as ke}from"./time-Dhsh_2EG.js";import{b as yt,h as St}from"./router-DTtux5sP.js";import{a as qe,n as Be}from"./colors-BtO5_zlx.js";import{F as jt,R as At,G as Nt,H as It,h as Et}from"./NewChatComposer-C_1op4dH.js";import{u as Lt,a as De}from"./persistent-state-xJz-qAFc.js";import{M as Ct}from"./text-Faa3ZStB.js";import{u as Rt,m as _t,d as Ot,g as Tt}from"./Provider-Bu-C8Hxc.js";import{a as Ht}from"./operator-attention-RqieiSY8.js";import{e as $t,i as Ve,f as Ue,g as Wt,h as Pt}from"./agent-lanes-model-DXqjs0OK.js";import{HomeMovingSignalList as Bt}from"./home-moving-signal-BPqBoNSm.js";import{E as Dt}from"./external-link-C_nxk0MJ.js";import"./refresh-cw-DmNAhaH0.js";import"./createLucideIcon-DthwWQIg.js";import"./activity-CqZafWfx.js";import"./SlidePanel-BMRIR6bH.js";import"./HarnessMark-DAaWPiT_.js";import"./tail-display-DcliDVkW.js";import"./lane-edit-display-C_Aujldz.js";import"./tail-events-BdUrO0kb.js";import"./index-BWHgHrtv.js";import"./openContent-C6XO6kr5.js";import"./perf-PX8Rx0EP.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-BQ6t92tJ.js";import"./scoutbot-BJIamJOH.js";import"./DocumentFocusViewer-DFFE85Tq.js";import"./TextDocumentSurface-BeSwe3Yl.js";import"./file-text--hfhwZH1.js";import"./x-DfRJbqrh.js";import"./chevron-right-CnZRSd-V.js";import"./code-xml-CvKBY3KA.js";import"./arrow-left-DHfdXJVZ.js";import"./arrow-right-BBsrogWf.js";import"./scout-voice-BZKsdquE.js";import"./fx-z37u1o2z.js";import"./keyboard-nav-e6yGeorb.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-B2W9DPG5.js";import"./conversation-model-QsJVfSeG.js";import"./index-DfsTyYDx.js";import"./NewChatOrigin-D7hwp6dm.js";import"./chevron-down-C475vltS.js";import"./search-DmFM_9jm.js";import"./chunk-HRAB3GC3-DLNT8aOo.js";import"./context-budget-DX_fwUs3.js";import"./lane-observe-vfyACHi0.js";import"./home-live-action-BkqGLVRY.js";import"./cpu-DuD3RFX5.js";import"./git-branch-DJyvr0k-.js";import"./file-code-corner-DDPq4Cur.js";import"./terminal-C3YRPfyz.js";function Ft(){return t.jsx("svg",{className:"s-msg-compose-tool-chevron",width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t.jsx("path",{d:"m4 6 4 4 4-4"})})}function Gt({label:e,kicker:s,value:n,onChange:o,options:c,disabled:r=!1,hideKicker:d=!1,className:m}){const g=c.find(v=>v.value===n)?.label??(n.trim()?n:c[0]?.label??e);return t.jsxs("label",{className:["s-msg-compose-tool",r?"s-msg-compose-tool--disabled":"",m??""].filter(Boolean).join(" "),children:[t.jsx("span",{className:"s-msg-compose-tool-value",children:g}),t.jsx(Ft,{}),t.jsx("select",{className:"s-msg-compose-tool-native","aria-label":e,title:s&&!d?s:e,value:n,disabled:r,onChange:v=>o(v.target.value),children:c.map(v=>t.jsx("option",{value:v.value,children:v.label},v.value||"__empty__"))})]})}const oe=30*6e4,ue="30m",ze="recent",le=[{key:"5m",label:"5m",windowMs:5*6e4},{key:"30m",label:"30m",windowMs:oe},{key:"4h",label:"4h",windowMs:240*6e4},{key:"24h",label:"24h",windowMs:1440*6e4}],ce={working:0,native:1,observed:2};function Kt(e){const s=e?.trim();return le.some(n=>n.key===s)?s:ue}function qt(e){return le.find(s=>s.key===e)??le[1]}function Vt(e){return e==="grouped"?"grouped":ze}function Ut(e,s,n){if(n==="grouped"){const r=ce[e.bucket]-ce[s.bucket];if(r!==0)return r}const o=s.lastActivityAt-e.lastActivityAt;if(o!==0)return o;const c=ce[e.bucket]-ce[s.bucket];return c!==0?c:e.id.localeCompare(s.id)}function Qe(e,s,n=oe){const o=x(e);return o!==null&&s-o<=n}function Ye(e){const s=e?.trim().toLowerCase();return s?s==="pi"||s==="grok-acp"||s==="grok"?"grok":s:null}function zt(e,s,n,o=[],c=oe,r=ue){return!!(n||qe(e.state)||$t(e,s,r)||Je(e,o,s,c))}function Qt(e,s){const n=Ye(e.harness);return n?n===s.source?.trim().toLowerCase():!1}function Je(e,s,n,o=oe){const c=e.harnessSessionId?.trim();if(!c)return!1;const r=n-o;return s.some(d=>{const m=x(d.ts);if(m===null||m<r||!Qt(e,d))return!1;const u=d.sessionId?.trim();return!!(u&&u===c)})}function Yt(e){const{agent:s,observeEntry:n,tailEvents:o,nowMs:c,movingAsk:r,windowMs:d=oe}=e;if(r)return!0;const m=n?.data;if(Ve(m))return!0;const u=Ue(m);return!!(u!==null&&c-u<=d||Je(s,o,c,d)||qe(s.state)&&Qe(s.updatedAt,c,d))}function Jt(e,s){const n=e?.metadata?.session,o=e?.metadata?.usage,c=o?.contextInputTokens,r=o?.contextWindowTokens,d=typeof c=="number"&&typeof r=="number"&&r>0?Math.min(100,Math.round(c/r*100)):null;return{sessionId:n?.externalSessionId??s?.sessionId??null,model:n?.model??s?.model??null,contextPct:d}}function Xe(e){if(!e)return null;const s=e.sessionId?.trim()||e.data?.metadata?.session?.externalSessionId?.trim();if(s)return`session:${s}`;const n=e.historyPath?.trim()||e.data?.metadata?.session?.threadPath?.trim();return n?`history:${n}`:null}function Xt(e){const s=e.observe?.metadata?.session,n=s?.externalSessionId?.trim();if(n)return`session:${n}`;const o=s?.threadPath?.trim();return o?`history:${o}`:null}function Fe(e,s){const n=s?.sessionId?.trim()||s?.data?.metadata?.session?.externalSessionId?.trim(),o=e.harnessSessionId?.trim();return!!(n&&o&&n===o)}function Zt(e,s){const n=new Map,o=[];for(const c of e){const r=s[c.id],d=Xe(r);if(!d){o.push(c);continue}const m=n.get(d);if(m===void 0){n.set(d,o.length),o.push(c);continue}const u=o[m];!Fe(u,s[u.id])&&Fe(c,r)&&(o[m]=c)}return o}function be(e,s){const{observeEntry:n,tailEvents:o,nowMs:c,movingAsk:r}=s;if(r)return x(r.updatedAt)??c;if(Ve(n?.data))return c;const d=Ue(n?.data);if(d!==null)return d;const m=e.harnessSessionId?.trim(),u=Ye(e.harness);let g=0;if(m)for(const v of o){if(u&&v.source!==u||v.sessionId?.trim()!==m)continue;const I=x(v.ts);I!==null&&(g=Math.max(g,I))}return g>0?g:x(e.updatedAt)??0}const es=9;function ts(e){const{lanes:s}=Wt({transcripts:e.transcripts,tailEvents:e.tailEvents,processes:e.processes??[],scoutAgents:e.agents,observeCache:e.observeCache??{},now:e.nowMs,workingOnly:!0,horizon:e.horizon??ue});return s.filter(n=>n.source==="native")}const P=[{label:"30m",value:30*6e4,activityLimit:80},{label:"6h",value:360*6e4,activityLimit:250},{label:"24h",value:1440*6e4,activityLimit:800}],Ge=P[2].value,ss="openscout.home.lookbackMs.v1",ns="openscout.home.movingWindow.v1",os="openscout.home.movingSort.v1",is=6e4,as=3e4,rs=3,ne=3e4;function cs(e,s){const n=x(e);if(n===null)return"—";const o=Math.max(0,Math.floor((s-n)/1e3));if(o<60)return`${o}s`;const c=Math.floor(o/60);if(c<60)return`${c}m`;const r=Math.floor(c/60);return r<48?`${r}h`:`${Math.floor(r/24)}d`}function ls(e,s=140){const n=(e??"").replace(/\s+/g," ").trim();return n?n.length>s?`${n.slice(0,s-1)}…`:n:""}function us(e){return{handoff_sent:"handed off",handoff_received:"received handoff",ask_sent:"sent a request",message_sent:"said",message_received:"received"}[e]??e.replace(/[._]/g," ")}function ds(e){return e.conversationId?{view:"conversation",conversationId:e.conversationId}:e.recordId?{view:"work",workId:e.recordId}:e.agentId?{view:"agents-v2",agentId:e.agentId}:null}function ms(e){const s=Math.round(e/6e4);if(s<60)return`${s}m`;const n=s/60;return`${Number.isInteger(n)?n:n.toFixed(1)}h`}function Me(e){if(!Number.isFinite(e)||e<=0)return"now";const s=Math.floor(e/1e3);if(s<60)return`${s}s`;const n=Math.floor(s/60);if(n<60)return`${n}m`;const o=Math.floor(n/60);return o<48?`${o}h`:`${Math.floor(o/24)}d`}function fs(e,s,n){if(e.length===0)return null;const o=e.map(u=>x(u.ts)).filter(u=>u!==null).sort((u,g)=>g-u);if(o.length===0)return null;const c=o[0],r=o[o.length-1];let d=0;for(let u=1;u<o.length;u++)d=Math.max(d,o[u-1]-o[u]);const m=n-s;return d=Math.max(d,r-m),{count:e.length,lastAgoMs:Math.max(0,n-c),longestGapMs:Math.max(0,d)}}function vs(e){const s=e.map(o=>Math.sqrt(o)),n=[.56,.28,.11,.05];return s.map((o,c)=>{let r=0,d=0;for(let m=-3;m<=3;m++){const u=c+m;if(u<0||u>=s.length)continue;const g=n[Math.abs(m)]??0;r+=s[u]*g,d+=g}return d>0?r/d:0})}function hs(e,s,n){if(e.length<2||s.length===0)return e;const o=Math.max(1,e[1].ts-e[0].ts),c=e[0].ts,r=e[e.length-1].ts+o,d=e.map(g=>g.count);for(const g of s){const v=x(g.ts);if(v===null||v<c||v>n||v>=r)continue;const I=Math.floor((v-c)/o);I>=0&&I<d.length&&(d[I]=(d[I]??0)+1)}const m=vs(d),u=Math.max(1,...m);return e.map((g,v)=>({...g,count:d[v]??g.count,value:(m[v]??0)/u}))}function xe(e){return e.status==="fulfilled"?null:gs(e.reason instanceof Error?e.reason.message:String(e.reason))}function gs(e){return/failed to fetch|networkerror|load failed|couldn't connect|connection refused/i.test(e)?"Scout server is unreachable":e}function ps(e){return e==="Scout server is unreachable"}function Rn({navigate:e}){const{agents:s,onboarding:n,reload:o,route:c}=Rt(),r=yt(c),d=a.useMemo(()=>_t(s,r),[s,r]),m=a.useMemo(()=>Ot(s,r),[s,r]),[u,g]=Lt(ss,Ge),v=a.useMemo(()=>P.find(i=>i.value===u)??P[P.length-1],[u]),[I,K]=De(ns,ue),T=Kt(I),k=qt(T),[ie,$]=De(os,ze),B=Vt(ie),q=a.useMemo(()=>Pt(),[T]),[j]=a.useState(()=>{const i=new URLSearchParams({activityLookbackMs:String(v.value),activityLimit:String(v.activityLimit)}).toString(),l=new URLSearchParams({limit:String(q),transcripts:"true"}).toString();return{fleet:se(`/api/fleet?${i}`,ne),heartrate:se("/api/heartrate",ne),gauges:se("/api/service-budgets",ne),tailRecent:se(`/api/tail/recent?${l}`,ne),tailDiscovery:se("/api/tail/discover",ne)}}),[D,C]=a.useState(j.fleet),[V,de]=a.useState(j.heartrate?.buckets??[]),[h,A]=a.useState(j.heartrate?.windowLabel??"trailing 7d"),[E,U]=a.useState(j.heartrate?j.heartrate.bucketLabel??"":"3h buckets"),[M,Ze]=a.useState(j.tailRecent?.events??[]),[me,et]=a.useState(j.tailDiscovery),[tt,fe]=a.useState(j.gauges?.gauges??[]),[R,ye]=a.useState(j.fleet===null),[Se,je]=a.useState(!1),[F,Ae]=a.useState(null),[Z,st]=a.useState(null),ee=a.useRef(null),Ne=a.useRef(0),Ie=a.useRef(0),ve=a.useRef(j.fleet);a.useEffect(()=>{ve.current=D},[D]);const z=a.useCallback(async(i=!1)=>(await G(`/api/service-budgets${i?"?refresh=1":""}`,{cache:"no-store"})).gauges??[],[]),Q=a.useMemo(()=>Tt(D,d),[D,d]),L=a.useCallback(async(i="initial")=>{const l=++Ne.current;!(ve.current!==null)&&i!=="background"?(ye(!0),Ae(null)):je(!0);const w=new URLSearchParams({activityLookbackMs:String(v.value),activityLimit:String(v.activityLimit)}).toString(),[b,O,S]=await Promise.allSettled([G(`/api/fleet?${w}`),G("/api/heartrate"),o()]);if(l!==Ne.current)return;b.status==="fulfilled"&&(ve.current=b.value,C(b.value)),O.status==="fulfilled"&&(de(O.value.buckets),A(O.value.windowLabel),U(O.value.bucketLabel??""));const W=[xe(b),xe(O),xe(S)].filter(J=>!!J);Ae(W[0]??null),W.length<4&&st(Date.now()),ye(!1),je(!1)},[o,v]),nt=a.useCallback(()=>{X()&&(ee.current||(ee.current=setTimeout(()=>{ee.current=null,L("background")},250)))},[L]);a.useEffect(()=>(L(),()=>{ee.current&&clearTimeout(ee.current)}),[L]),kt(nt),a.useEffect(()=>{let i=!1;const l=async()=>{try{const b=await z();i||fe(b)}catch{}};l();const f=setInterval(()=>{X()&&l()},is),w=()=>{document.visibilityState==="visible"&&X()&&l()};return window.addEventListener("focus",w),document.addEventListener("visibilitychange",w),()=>{i=!0,clearInterval(f),window.removeEventListener("focus",w),document.removeEventListener("visibilitychange",w)}},[z]);const te=a.useCallback(async()=>{try{const i=new URLSearchParams({limit:String(q),transcripts:"true"}),[l,f]=await Promise.all([G(`/api/tail/recent?${i.toString()}`),G("/api/tail/discover").catch(()=>null)]);Ze(l.events??[]),f&&et(f)}catch{}},[q]);a.useEffect(()=>{te();const i=setInterval(()=>{X()&&te()},as);return()=>clearInterval(i)},[te]),a.useEffect(()=>{const i=setInterval(()=>{X()&&L("background")},15e3);return()=>clearInterval(i)},[L]),a.useEffect(()=>Mt(()=>{const l=Date.now();l-Ie.current<1e3||(Ie.current=l,L("background"),z().then(fe).catch(()=>null),te())}),[z,L,te]);const[p,ot]=a.useState(()=>Date.now());a.useEffect(()=>{const i=setInterval(()=>{X()&&ot(Date.now())},1e3);return()=>clearInterval(i)},[]);const Ee=a.useMemo(()=>(Q?.activeAsks??[]).filter(i=>i.status==="queued"||i.status==="working"),[Q]),ae=a.useMemo(()=>Ee.filter(i=>Qe(i.updatedAt,p,k.windowMs)),[Ee,k.windowMs,p]),H=a.useMemo(()=>{const i=new Map;for(const l of ae){const f=i.get(l.agentId),w=x(l.updatedAt)??0,b=x(f?.updatedAt)??0;(!f||w>b)&&i.set(l.agentId,l)}return i},[ae]),it=a.useMemo(()=>m.filter(i=>zt(i,p,H.has(i.id),M,k.windowMs,T)),[m,H,k.windowMs,T,p,M]),y=xt(it),_=a.useMemo(()=>{const l=m.filter(f=>Yt({agent:f,observeEntry:y[f.id],tailEvents:M,nowMs:p,movingAsk:H.get(f.id),windowMs:k.windowMs})).sort((f,w)=>be(w,{observeEntry:y[w.id],tailEvents:M,nowMs:p,movingAsk:H.get(w.id)})-be(f,{observeEntry:y[f.id],tailEvents:M,nowMs:p,movingAsk:H.get(f.id)}));return Zt(l,y)},[m,H,k.windowMs,y,M,p]);a.useMemo(()=>{const i={};for(const l of _)i[l.id]=Jt(y[l.id]?.data);return i},[y,_]);const Le=a.useMemo(()=>new Set(_.map(i=>i.id)),[_]),Ce=a.useMemo(()=>{const i=new Set;for(const l of _){const f=Xe(y[l.id]);f&&i.add(f)}return i},[y,_]),Re=a.useMemo(()=>ts({agents:m,tailEvents:M,transcripts:me?.transcripts??[],processes:me?.processes??[],observeCache:y,nowMs:p,horizon:T}).filter(l=>{if(Le.has(l.agent.id))return!1;const f=Xt(l);return!(f&&Ce.has(f))}).sort((l,f)=>f.lastActiveAt-l.lastActiveAt),[m,T,y,p,me,M,Le,Ce]),he=a.useMemo(()=>ae.filter(i=>!_.some(l=>l.id===i.agentId)).sort((i,l)=>Pe(i.updatedAt,l.updatedAt)),[_,ae]),_e=p-u,N=a.useMemo(()=>{const i=new Set(["ask_failed","ask_replied","flight.completed","flight.updated","flight_updated"]),l=(Q?.activity??[]).filter(f=>!i.has(f.kind)&&(x(f.ts)??0)>=_e);return l.filter((f,w)=>{const b=l[w-1];return b?!(b.title===f.title&&b.summary===f.summary&&b.conversationId===f.conversationId&&Math.abs((x(b.ts)??0)-(x(f.ts)??0))<=5e3):!0})},[Q?.activity,_e]),ge=a.useMemo(()=>fs(N,u,p),[N,u,p]),pe=N.length>=v.activityLimit,at=a.useMemo(()=>{const i=P.findIndex(l=>l.value===u);return i>=0&&i<P.length-1?P[i+1]:null},[u]),rt=new Date,ct=St("ops.control",!0),we=n?.operatorName?.trim()||n?.operatorNameSuggestion?.trim()||"operator",lt=a.useMemo(()=>hs(V,M,p),[V,M,p]),Oe=a.useMemo(()=>{const i=p-k.windowMs,l=Q?.activity??[],f=new Set(m.map(S=>S.name.toLowerCase())),w=new Set(m.map(S=>S.id)),b=new Set(["agent_message","status_message","ask_opened","ask_working","handoff_sent","collaboration_event"]),O=new Map;for(const S of l){const W=x(S.ts);if(W===null||W<i||!b.has(S.kind))continue;const J=S.actorName?.trim();if(!J||J.toLowerCase()===we.toLowerCase()||f.has(J.toLowerCase())||S.agentId&&w.has(S.agentId))continue;const $e=J.toLowerCase(),We=O.get($e),pt=x(We?.ts)??0;(!We||W>pt)&&O.set($e,S)}return[...O.values()].sort((S,W)=>Pe(S.ts,W.ts))},[Q?.activity,k.windowMs,p,m,we]),ut=R?"syncing":F?`${ps(F)?"offline":"sync issue"} · ${Z?ke(Z):"waiting"}`:Z?`Last updated ${ke(Z)}`:"waiting",dt=a.useCallback(()=>{L("manual"),z(!0).then(i=>fe(i)).catch(()=>{})},[z,L]),mt={now:rt,operatorName:we,syncLabel:ut,error:F,loading:R,refreshing:Se,onRefresh:dt,navigate:e,opsEnabled:ct,heartrate:lt,heartrateWindow:h,heartrateBucketLabel:E,heartrateVisibleEventThreshold:rs,serviceGauges:tt},ft=!R&&!F&&N.length===0&&u>=Ge,vt=!R&&!F&&N.length===0,ht=R||N.length>0||!!F||!ft,Te=a.useMemo(()=>[..._.map(l=>({bucket:"working",id:l.id,agent:l,lastActivityAt:be(l,{observeEntry:y[l.id],tailEvents:M,nowMs:p,movingAsk:H.get(l.id)})})),...Re.map(l=>({bucket:"native",id:l.id,lane:l,lastActivityAt:l.lastActiveAt})),...Oe.map(l=>({bucket:"observed",id:l.id,actor:l,lastActivityAt:x(l.ts)??0}))].sort((l,f)=>Ut(l,f,B)),[H,B,Re,p,y,Oe,M,_]),He=Te.slice(0,es),re=He.length,Y=Te.length+he.length,gt=Y>re&&re>0?`What's moving · ${re} of ${Y}`:`What's moving · ${Y}`;return t.jsx("div",{className:"s-fleet-home",children:t.jsxs("div",{className:"s-fleet-home-inner",children:[t.jsx(wt,{...mt}),(Y>0||R)&&t.jsxs("div",{className:"s-fleet-section",children:[t.jsx(Ke,{label:R&&Y===0?"What's moving":gt,right:t.jsxs("div",{className:"s-moving-controls",children:[t.jsx(ws,{sort:B,onSortChange:$,windowKey:k.key,onWindowChange:K}),t.jsx("button",{className:"s-link-btn",onClick:()=>e({view:"mesh"}),children:"open mesh ↗"})]})}),R&&Y===0?t.jsx(ks,{}):t.jsxs(t.Fragment,{children:[re>0&&t.jsx(Bt,{cards:He,sort:B,nowMs:p,movingAskByAgent:H,observeCache:y,navigate:e}),he.length>0&&t.jsx("div",{className:"s-moving-ask-list",children:he.map(i=>t.jsx(bs,{ask:i,navigate:e},i.invocationId))})]})]}),ht&&t.jsxs("div",{className:"s-fleet-section",children:[t.jsx(Ke,{label:`Scout coordination · ${N.length}${pe?"+":""}`,right:t.jsx(xs,{value:u,onChange:g,refreshing:Se&&!R})}),ge&&t.jsxs("div",{className:"s-fleet-live-shape",children:[t.jsxs("span",{children:["last ",Me(ge.lastAgoMs)," ago"]}),t.jsx("span",{children:"·"}),t.jsxs("span",{children:["longest gap ",Me(ge.longestGapMs)]}),pe&&t.jsxs(t.Fragment,{children:[t.jsx("span",{children:"·"}),t.jsxs("span",{style:{color:"var(--amber)"},children:["showing ",Math.min(N.length,30)," of ",v.activityLimit,"+ (capped)"]})]}),!pe&&N.length>30&&t.jsxs(t.Fragment,{children:[t.jsx("span",{children:"·"}),t.jsxs("span",{children:["showing 30 of ",N.length]})]})]}),R&&N.length===0?t.jsx(Ms,{}):N.length===0?t.jsx(ys,{lookbackMs:u,nextOption:at,onWiden:i=>g(i.value),loadedAt:Z,nowMs:p,error:F,onRetry:()=>{L("manual")}}):t.jsx("div",{className:"s-mc-stream s-fleet-live-stream",children:N.slice(0,30).map(i=>t.jsx(As,{item:i,nowMs:p,onOpen:()=>{const l=ds(i);l&&e(l)}},i.id))})]}),vt&&t.jsx("div",{className:"s-fleet-section s-fleet-section--quiet-start",children:t.jsx(js,{agents:m,navigate:e})})]})})}function Ke({label:e,right:s}){return t.jsxs("div",{className:"s-section-rule",children:[t.jsx("span",{className:"s-eyebrow",children:e}),t.jsx("span",{className:"s-section-rule-line"}),s&&t.jsx("span",{className:"s-section-rule-right",children:s})]})}function ws({sort:e,onSortChange:s,windowKey:n,onWindowChange:o}){return t.jsxs("div",{className:"s-moving-controlset","aria-label":"Moving cards controls",children:[t.jsxs("div",{className:"s-mc-window s-moving-window",role:"group","aria-label":"Moving sort",children:[t.jsx("span",{className:"s-mc-window-label",children:"Sort"}),t.jsx("div",{className:"s-mc-window-tabs",children:[["recent","Recent"],["grouped","Grouped"]].map(([c,r])=>t.jsx("button",{type:"button",className:`s-mc-window-tab${e===c?" is-active":""}`,onClick:()=>s(c),children:r},c))})]}),t.jsxs("div",{className:"s-mc-window s-moving-window",role:"group","aria-label":"Moving activity window",children:[t.jsx("span",{className:"s-mc-window-label",children:"Window"}),t.jsx("div",{className:"s-mc-window-tabs",children:le.map(c=>t.jsx("button",{type:"button",className:`s-mc-window-tab${n===c.key?" is-active":""}`,onClick:()=>o(c.key),children:c.label},c.key))})]})]})}function bs({ask:e,navigate:s}){const n=Ht(e);return t.jsxs("button",{className:"s-moving-ask-row",onClick:()=>s(n),children:[t.jsx("span",{className:"s-moving-ask-agent",children:e.agentName??e.agentId}),t.jsx("span",{className:"s-moving-ask-title",children:e.summary??e.task}),t.jsx("span",{className:"s-moving-ask-state",children:e.statusLabel}),t.jsx("span",{className:"s-moving-ask-time",children:ke(e.updatedAt)})]})}function xs({value:e,onChange:s,refreshing:n}){return t.jsxs("div",{className:"s-mc-window",role:"group","aria-label":"Lookback window",children:[t.jsxs("span",{className:"s-mc-window-label",children:["Lookback",n&&t.jsx("span",{className:"s-mc-window-refreshing","aria-label":"refreshing"})]}),t.jsx("div",{className:"s-mc-window-tabs",children:P.map(o=>t.jsx("button",{type:"button",className:`s-mc-window-tab${o.value===e?" is-active":""}`,onClick:()=>s(o.value),children:o.label},o.value))})]})}function ks(){return t.jsx("div",{className:"s-moving-signal-stage s-moving-signal-skeleton","aria-hidden":"true",children:t.jsx("div",{className:"s-moving-signal-list",children:[0,1,2,3,4].map(e=>t.jsxs("div",{className:"s-moving-signal-row s-moving-signal-row--skeleton",children:[t.jsx("span",{className:"s-moving-signal-skeleton-age"}),t.jsx("span",{}),t.jsx("span",{className:"s-moving-signal-skeleton-where"}),t.jsx("span",{className:"s-moving-signal-skeleton-action"})]},e))})})}function Ms(){return t.jsx("div",{className:"s-mc-stream s-fleet-live-stream s-fleet-live-stream--skeleton","aria-hidden":"true",children:[0,1,2,3,4].map(e=>t.jsxs("div",{className:"s-fleet-live-skeleton-row",children:[t.jsx("span",{className:"s-fleet-live-skeleton-time"}),t.jsx("span",{className:"s-fleet-live-skeleton-actor"}),t.jsx("span",{className:"s-fleet-live-skeleton-text"})]},e))})}function ys({lookbackMs:e,nextOption:s,onWiden:n,loadedAt:o,nowMs:c,error:r,onRetry:d}){if(r)return t.jsxs("div",{className:"s-mc-empty s-fleet-live-empty",children:[t.jsx("div",{className:"s-fleet-live-empty-title",children:"Couldn’t load activity."}),t.jsx("div",{className:"s-fleet-live-empty-detail",children:r}),t.jsx("div",{className:"s-fleet-live-empty-actions",children:t.jsx("button",{type:"button",className:"s-link-btn",onClick:d,children:"Try again"})})]});const m=o?`Polled ${Me(Math.max(0,c-o))} ago.`:"Polling…";return t.jsxs("div",{className:"s-mc-empty s-fleet-live-empty",children:[t.jsxs("div",{className:"s-fleet-live-empty-title",children:["No Scout messages or dispatches in the last ",ms(e),"."]}),t.jsx("div",{className:"s-fleet-live-empty-detail",children:m}),s&&t.jsx("div",{className:"s-fleet-live-empty-actions",children:t.jsxs("button",{type:"button",className:"s-link-btn",onClick:()=>n(s),children:["Widen to ",s.label," →"]})})]})}function Ss(e){return[...e].sort((s,n)=>{const o=Be(s.state),c=Be(n.state);return(o==="callable"?0:o==="in_turn"||o==="in_flight"?1:2)-(c==="callable"?0:c==="in_turn"||c==="in_flight"?1:2)||s.name.localeCompare(n.name)})}function js({agents:e,navigate:s}){const n=a.useMemo(()=>Ss(e),[e]),[o,c]=a.useState(()=>n[0]?.id??""),r=n.find(h=>h.id===o)??null,[d,m]=a.useState(null),[u,g]=a.useState(""),[v,I]=a.useState(r?.harness?.trim()??""),[K,T]=a.useState(r?.model?.trim()??""),[k,ie]=a.useState("medium"),[$,B]=a.useState(!1),[q,j]=a.useState(null),D=d??At;a.useEffect(()=>{n.some(h=>h.id===o)||c(n[0]?.id??"")},[o,n]),a.useEffect(()=>{I(r?.harness?.trim()??""),T(r?.model?.trim()??"")},[r?.id]),a.useEffect(()=>{const h=r?.projectRoot?.trim()||r?.cwd?.trim(),A=new URLSearchParams({scope:"global+project"});h&&A.set("projectRoot",h);let E=!1;return G(`/api/runner/options?${A.toString()}`).then(U=>{!E&&U.schemaVersion==="openscout.runtime-capabilities.v1"&&m(U)}).catch(()=>{}),()=>{E=!0}},[r?.cwd,r?.projectRoot]);const C=v||r?.harness?.trim()||"",V=a.useMemo(()=>{const h=jt(D);return C&&!h.harnesses.some(A=>A.value===C)?{...h,harnesses:[...h.harnesses,{value:C,label:C,models:[{value:"",label:"Default",note:"harness picks"}]}]}:h},[D,C]);a.useEffect(()=>{const h=Nt(V,C,K);!h||h.some(A=>A.value===k)||ie(h.find(A=>A.value==="medium")?.value??h[0]?.value??"")},[V,C,K,k]);const de=async h=>{const A=u.trim();if(!(!r||!A||$)){B(!0),j(null);try{const E=await Et(r),U=await G("/api/send",{method:"POST",body:JSON.stringify({body:A,chatId:E,execution:{harness:v||void 0,model:K||void 0,reasoningEffort:k||void 0}})});g("");const M=U.conversationId??E;s({view:"conversation",conversationId:M})}catch(E){j(E instanceof Error?E.message:String(E))}finally{B(!1)}}};return t.jsxs("div",{className:"s-quiet-start",children:[t.jsxs("div",{className:"s-quiet-panel s-quiet-panel--tail",children:[t.jsxs("div",{className:"s-quiet-panel-head",children:[t.jsx("span",{className:"s-eyebrow",children:"Local tail"}),t.jsxs("button",{type:"button",className:"s-icon-btn",title:"Open tail",onClick:()=>s({view:"ops",mode:"tail"}),children:[t.jsx(Dt,{size:14,"aria-hidden":"true"}),t.jsx("span",{children:"Open tail"})]})]}),t.jsx("div",{className:"s-quiet-tail-frame",children:t.jsx(bt,{navigate:s,chrome:"embedded"})})]}),t.jsxs("div",{className:"s-quiet-panel s-quiet-panel--ask",children:[t.jsx("div",{className:"s-quiet-panel-head",children:t.jsx("span",{className:"s-eyebrow",children:"Message"})}),t.jsx("div",{className:"s-quiet-compose",children:t.jsx(Ct,{density:"panel",value:u,onChange:g,onSend:()=>{de()},placeholder:"Type a message…",disabled:$||!r,sending:$,canSend:!$&&!!r&&u.trim().length>0,leadingTools:t.jsxs("div",{className:"s-quiet-target-chip",children:[t.jsx("span",{className:"s-quiet-label",children:"To"}),t.jsx(Gt,{label:"Send to agent",value:o,onChange:c,disabled:n.length===0||$,options:n.length===0?[{value:"",label:"No registered agents"}]:n.map(h=>({value:h.id,label:h.name}))})]}),tools:t.jsx(It,{catalog:V,value:{harness:C,model:K,effort:k},onChange:h=>{I(h.harness===(r?.harness?.trim()??"")?"":h.harness),T(h.model),ie(h.effort)},disabled:$||!r})})}),q&&t.jsx("div",{className:"s-quiet-error",children:q})]})]})}function As({item:e,nowMs:s,onOpen:n}){const o=e.actorName??"—",c=us(e.kind),r=ls(e.title??e.summary,110);return t.jsxs("button",{type:"button",className:"s-mc-stream-row",onClick:n,children:[t.jsx("span",{className:"s-mc-stream-time",children:cs(e.ts,s)}),t.jsx("span",{className:"s-mc-stream-actor",children:o}),t.jsx("span",{className:"s-mc-stream-verb",children:c}),t.jsx("span",{className:"s-mc-stream-text",children:r})]})}export{Rn as HomeContent,Rn as HomeScreen};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o}from"./index-BI9AljSD.js";import{SessionRefScreen as t}from"./SessionRefScreen-C8BiRVPx.js";import{SessionsScreen as m}from"./SessionsScreen-BNvjUflN.js";import{FlightObserveScreen as p}from"./FlightObserveScreen-qyzHzxLa.js";import"./api-Co9aQ2Jw.js";import"./perf-PX8Rx0EP.js";import"./sse-DDHEHUgz.js";import"./index-BWHgHrtv.js";import"./tail-events-BdUrO0kb.js";import"./BackToPicker-Cto0Ioz9.js";import"./router-DTtux5sP.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-BQ6t92tJ.js";import"./ConversationScreen-CXAHQwQ3.js";import"./NewChatComposer-C_1op4dH.js";import"./text-Faa3ZStB.js";import"./scout-voice-BZKsdquE.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-B2W9DPG5.js";import"./createLucideIcon-DthwWQIg.js";import"./conversation-model-QsJVfSeG.js";import"./colors-BtO5_zlx.js";import"./time-Dhsh_2EG.js";import"./index-DfsTyYDx.js";import"./HarnessMark-DAaWPiT_.js";import"./NewChatOrigin-D7hwp6dm.js";import"./keyboard-nav-e6yGeorb.js";import"./x-DfRJbqrh.js";import"./chevron-down-C475vltS.js";import"./search-DmFM_9jm.js";import"./file-text--hfhwZH1.js";import"./ConversationComposer-H8_hsYSc.js";import"./AgentAvatar-B7c0egdP.js";import"./Provider-Bu-C8Hxc.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-BJIamJOH.js";import"./DocumentFocusViewer-DFFE85Tq.js";import"./TextDocumentSurface-BeSwe3Yl.js";import"./chevron-right-CnZRSd-V.js";import"./code-xml-CvKBY3KA.js";import"./arrow-left-DHfdXJVZ.js";import"./arrow-right-BBsrogWf.js";import"./chunk-HRAB3GC3-DLNT8aOo.js";import"./SpriteAvatar-56DTXxSV.js";import"./CrewAvatar-CXJHLNVM.js";import"./zap-CIo8msJB.js";import"./message-markup-Cc_O-WdA.js";import"./mentions-DuLQnEcn.js";import"./AgentDetailCard-B_KLcgsP.js";import"./AgentLiveActions-CsQA3pu_.js";import"./terminal-takeover-B6H4llRR.js";import"./openContent-C6XO6kr5.js";import"./eye-FnaaPfja.js";import"./terminal-C3YRPfyz.js";import"./message-visibility-CGOmSSKs.js";import"./operator-attention-RqieiSY8.js";import"./sessionRead-CvFz2RHv.js";import"./clipboard-e3fSpeo7.js";import"./types-B0PlfpKc.js";/* empty css */import"./ConversationHeader-B0ZBhE_E.js";import"./AstronautSuit-Cjjcv6yQ.js";import"./ConversationFeedRows-hlEFlURs.js";import"./ConversationPanels-fMo6Uy1v.js";import"./tail-display-DcliDVkW.js";import"./lane-edit-display-C_Aujldz.js";import"./use-reduced-motion-8WuxLa5l.js";import"./proxy-1BABCaDb.js";import"./activity-CqZafWfx.js";import"./message-circle-B2DoYKDO.js";import"./ConversationStatus-DI5GCiyW.js";import"./check-DbIkldnK.js";import"./sparkles-Cf8gin88.js";import"./SessionObserve-BCehTlO8.js";import"./bash-format-BRV5C6Gv.js";import"./lane-tool-detail-0WhMf4Vj.js";import"./LaneToolHoverCard-Bo2Zl-1a.js";import"./lane-observe-vfyACHi0.js";import"./lane-ask-display-B6iCAVcd.js";import"./ObservedTopologyPanel-BhVsvwkh.js";import"./ObserveTextFlow-BcrGQet8.js";import"./SessionObserveEvidence-Bb6U-dem.js";import"./wrench-DkxnZRlR.js";import"./external-link-C_nxk0MJ.js";import"./session-ref-lookup-state-SATH_jAP.js";/* empty css */import"./RawSessionsTable-BtKdQPiv.js";/* empty css */import"./DataTable-DXIlOlVu.js";/* empty css *//* empty css */function Ti({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{Ti as SessionsContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as r}from"./index-BI9AljSD.js";import{SettingsScreen as o}from"./SettingsScreen-3JvX1WFL.js";import"./EmptyState-D9X16fKq.js";import"./StatusPill-BcuYUgsD.js";import"./status-tone-BM_zuRy1.js";import"./api-Co9aQ2Jw.js";import"./perf-PX8Rx0EP.js";import"./time-Dhsh_2EG.js";import"./AgentConfigurationScreen-BD7Unt2P.js";import"./CastPicker-CTBHjjGw.js";import"./CrewAvatar-CXJHLNVM.js";import"./HarnessMark-DAaWPiT_.js";import"./check-DbIkldnK.js";import"./createLucideIcon-DthwWQIg.js";import"./NewChatComposer-C_1op4dH.js";import"./text-Faa3ZStB.js";import"./scout-voice-BZKsdquE.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-B2W9DPG5.js";import"./conversation-model-QsJVfSeG.js";import"./colors-BtO5_zlx.js";import"./index-DfsTyYDx.js";import"./NewChatOrigin-D7hwp6dm.js";import"./keyboard-nav-e6yGeorb.js";import"./x-DfRJbqrh.js";import"./chevron-down-C475vltS.js";import"./search-DmFM_9jm.js";import"./file-text--hfhwZH1.js";import"./Provider-Bu-C8Hxc.js";import"./router-DTtux5sP.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-BQ6t92tJ.js";import"./sse-DDHEHUgz.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-BJIamJOH.js";import"./DocumentFocusViewer-DFFE85Tq.js";import"./TextDocumentSurface-BeSwe3Yl.js";import"./chevron-right-CnZRSd-V.js";import"./code-xml-CvKBY3KA.js";import"./arrow-left-DHfdXJVZ.js";import"./arrow-right-BBsrogWf.js";import"./chunk-HRAB3GC3-DLNT8aOo.js";import"./openContent-C6XO6kr5.js";import"./AgentsSubnav-DUsya4WK.js";import"./SecondaryNav-BrXMtvKE.js";import"./secondaryNavConfig-C9bQ9_IA.js";import"./message-square-O-Hu9Mk2.js";import"./compass-BcRI_YXo.js";import"./settings-C6h9y5XX.js";import"./terminal-C3YRPfyz.js";import"./git-branch-DJyvr0k-.js";import"./scroll-text-kPhYbh-M.js";/* empty css */import"./refresh-cw-DmNAhaH0.js";import"./bot-DzkOUFBb.js";import"./wrench-DkxnZRlR.js";import"./server-nWqndnxu.js";import"./cpu-DuD3RFX5.js";import"./SettingsDrawer-BieUmb8g.js";import"./credentials-BTce3VP1.js";import"./AgentAvatar-B7c0egdP.js";import"./SpriteAvatar-56DTXxSV.js";import"./VoicePermissionsPanel-Bd16scwz.js";import"./copy-Cj-owMb-.js";import"./sparkles-Cf8gin88.js";function dt({route:t,navigate:i}){return t.view!=="settings"?null:r.jsx(o,{navigate:i,section:t.section,agentId:t.agentId})}export{dt as SettingsContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as r}from"./index-BI9AljSD.js";import{RepoDiffPageScreen as p}from"./RepoDiffPageScreen-CdTFfmbk.js";import{ReposScreen as t}from"./ReposScreen-C8dT4bK0.js";import"./RepoDiffViewerLazy-BkBmbi1Z.js";/* empty css */import"./EmptyState-D9X16fKq.js";import"./Provider-Bu-C8Hxc.js";import"./router-DTtux5sP.js";import"./perf-PX8Rx0EP.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-BQ6t92tJ.js";import"./api-Co9aQ2Jw.js";import"./sse-DDHEHUgz.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./colors-BtO5_zlx.js";import"./scoutbot-BJIamJOH.js";import"./DocumentFocusViewer-DFFE85Tq.js";import"./createLucideIcon-DthwWQIg.js";import"./TextDocumentSurface-BeSwe3Yl.js";import"./file-text--hfhwZH1.js";import"./x-DfRJbqrh.js";import"./chevron-right-CnZRSd-V.js";import"./code-xml-CvKBY3KA.js";import"./arrow-left-DHfdXJVZ.js";import"./arrow-right-BBsrogWf.js";import"./scout-voice-BZKsdquE.js";import"./fx-z37u1o2z.js";import"./keyboard-nav-e6yGeorb.js";import"./NewChatComposer-C_1op4dH.js";import"./text-Faa3ZStB.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-B2W9DPG5.js";import"./conversation-model-QsJVfSeG.js";import"./time-Dhsh_2EG.js";import"./index-DfsTyYDx.js";import"./HarnessMark-DAaWPiT_.js";import"./NewChatOrigin-D7hwp6dm.js";import"./chevron-down-C475vltS.js";import"./search-DmFM_9jm.js";import"./chunk-HRAB3GC3-DLNT8aOo.js";import"./api-HFH8wFyb.js";import"./clipboard-e3fSpeo7.js";/* empty css */import"./ui-LM8pS8qE.js";import"./selection-bridge-Dy2mtMyi.js";import"./SlidePanel-BMRIR6bH.js";import"./cache-CeWH_KzJ.js";import"./refresh-cw-DmNAhaH0.js";import"./sliders-horizontal-BhHKxsCO.js";function oi({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{oi as ReposContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as t}from"./index-BI9AljSD.js";import{WorkDetailScreen as i}from"./WorkDetailScreen-DIFQufak.js";import"./DocumentFocusViewer-DFFE85Tq.js";import"./createLucideIcon-DthwWQIg.js";import"./TextDocumentSurface-BeSwe3Yl.js";import"./file-text--hfhwZH1.js";import"./x-DfRJbqrh.js";import"./StatusPill-BcuYUgsD.js";import"./status-tone-BM_zuRy1.js";import"./WorkFilesViewer-CT5XEFGf.js";import"./api-Co9aQ2Jw.js";import"./perf-PX8Rx0EP.js";import"./chevron-right-CnZRSd-V.js";import"./chevron-down-C475vltS.js";import"./mentions-DuLQnEcn.js";import"./colors-BtO5_zlx.js";import"./index-DfsTyYDx.js";import"./Provider-Bu-C8Hxc.js";import"./router-DTtux5sP.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-BQ6t92tJ.js";import"./sse-DDHEHUgz.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-BJIamJOH.js";import"./code-xml-CvKBY3KA.js";import"./arrow-left-DHfdXJVZ.js";import"./arrow-right-BBsrogWf.js";import"./scout-voice-BZKsdquE.js";import"./fx-z37u1o2z.js";import"./keyboard-nav-e6yGeorb.js";import"./NewChatComposer-C_1op4dH.js";import"./text-Faa3ZStB.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-B2W9DPG5.js";import"./conversation-model-QsJVfSeG.js";import"./time-Dhsh_2EG.js";import"./HarnessMark-DAaWPiT_.js";import"./NewChatOrigin-D7hwp6dm.js";import"./search-DmFM_9jm.js";import"./chunk-HRAB3GC3-DLNT8aOo.js";import"./AgentDetailCard-B_KLcgsP.js";import"./AgentLiveActions-CsQA3pu_.js";import"./terminal-takeover-B6H4llRR.js";import"./openContent-C6XO6kr5.js";import"./eye-FnaaPfja.js";import"./terminal-C3YRPfyz.js";import"./BackToPicker-Cto0Ioz9.js";import"./TailView-BDy8c2VB.js";import"./SlidePanel-BMRIR6bH.js";import"./tail-display-DcliDVkW.js";import"./lane-edit-display-C_Aujldz.js";import"./tail-events-BdUrO0kb.js";import"./message-square-O-Hu9Mk2.js";import"./radio-B5OpHrrK.js";import"./external-link-C_nxk0MJ.js";import"./activity-CqZafWfx.js";function er({route:r,navigate:o}){return r.view!=="work"?null:t.jsx(i,{workId:r.workId,navigate:o})}export{er as WorkContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o}from"./index-BI9AljSD.js";import{MeshScreen as i}from"./MeshScreen-BJ-j9YXv.js";import"./api-Co9aQ2Jw.js";import"./perf-PX8Rx0EP.js";import"./time-Dhsh_2EG.js";import"./colors-BtO5_zlx.js";import"./Provider-Bu-C8Hxc.js";import"./router-DTtux5sP.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-BQ6t92tJ.js";import"./sse-DDHEHUgz.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-BJIamJOH.js";import"./DocumentFocusViewer-DFFE85Tq.js";import"./createLucideIcon-DthwWQIg.js";import"./TextDocumentSurface-BeSwe3Yl.js";import"./file-text--hfhwZH1.js";import"./x-DfRJbqrh.js";import"./chevron-right-CnZRSd-V.js";import"./code-xml-CvKBY3KA.js";import"./arrow-left-DHfdXJVZ.js";import"./arrow-right-BBsrogWf.js";import"./scout-voice-BZKsdquE.js";import"./fx-z37u1o2z.js";import"./keyboard-nav-e6yGeorb.js";import"./NewChatComposer-C_1op4dH.js";import"./text-Faa3ZStB.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-B2W9DPG5.js";import"./conversation-model-QsJVfSeG.js";import"./index-DfsTyYDx.js";import"./HarnessMark-DAaWPiT_.js";import"./NewChatOrigin-D7hwp6dm.js";import"./chevron-down-C475vltS.js";import"./search-DmFM_9jm.js";import"./chunk-HRAB3GC3-DLNT8aOo.js";import"./mesh-roster-Bc7T4b7z.js";import"./MeshCanvas-TvsID4fe.js";import"./chunk-T65CQEWV-BtNvicWs.js";import"./plus-BJ1If8vj.js";import"./mesh-view-store-CiET-yN8.js";import"./useAgentHoverCard-Bkv-Uz_V.js";import"./AgentDetailCard-B_KLcgsP.js";import"./AgentLiveActions-CsQA3pu_.js";import"./terminal-takeover-B6H4llRR.js";import"./openContent-C6XO6kr5.js";import"./eye-FnaaPfja.js";import"./terminal-C3YRPfyz.js";import"./mesh-buckets-6y3ZIibI.js";import"./local-agents-DKr-gIDC.js";import"./useContentSecondaryNav-Bpkc8ayb.js";import"./OpsSubnav-BEU4kKXm.js";import"./SecondaryNav-BrXMtvKE.js";import"./secondaryNavConfig-C9bQ9_IA.js";import"./message-square-O-Hu9Mk2.js";import"./compass-BcRI_YXo.js";import"./settings-C6h9y5XX.js";import"./git-branch-DJyvr0k-.js";import"./scroll-text-kPhYbh-M.js";/* empty css *//* empty css *//* empty css */function jr({route:r,navigate:t}){return r.view!=="mesh"?null:o.jsx(i,{navigate:t})}export{jr as MeshContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as t}from"./index-BI9AljSD.js";import{BriefingDetailScreen as o}from"./BriefingDetailScreen-C29smC5d.js";import{BriefingsScreen as m}from"./BriefingsScreen-DNyFBrPn.js";import"./EmptyState-D9X16fKq.js";import"./api-Co9aQ2Jw.js";import"./perf-PX8Rx0EP.js";import"./scoutbot-markdown-CQ7Y1McC.js";import"./Provider-Bu-C8Hxc.js";import"./router-DTtux5sP.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-BQ6t92tJ.js";import"./sse-DDHEHUgz.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./colors-BtO5_zlx.js";import"./scoutbot-BJIamJOH.js";import"./DocumentFocusViewer-DFFE85Tq.js";import"./createLucideIcon-DthwWQIg.js";import"./TextDocumentSurface-BeSwe3Yl.js";import"./file-text--hfhwZH1.js";import"./x-DfRJbqrh.js";import"./chevron-right-CnZRSd-V.js";import"./code-xml-CvKBY3KA.js";import"./arrow-left-DHfdXJVZ.js";import"./arrow-right-BBsrogWf.js";import"./scout-voice-BZKsdquE.js";import"./fx-z37u1o2z.js";import"./keyboard-nav-e6yGeorb.js";import"./NewChatComposer-C_1op4dH.js";import"./text-Faa3ZStB.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-B2W9DPG5.js";import"./conversation-model-QsJVfSeG.js";import"./time-Dhsh_2EG.js";import"./index-DfsTyYDx.js";import"./HarnessMark-DAaWPiT_.js";import"./NewChatOrigin-D7hwp6dm.js";import"./chevron-down-C475vltS.js";import"./search-DmFM_9jm.js";import"./chunk-HRAB3GC3-DLNT8aOo.js";import"./external-link-C_nxk0MJ.js";/* empty css *//* empty css */function W({route:i,navigate:r}){return i.view!=="briefings"?null:i.briefingId?t.jsx(o,{briefingId:i.briefingId,navigate:r}):t.jsx(m,{navigate:r})}export{W as BriefingsContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as i}from"./index-BI9AljSD.js";import{AgentInfoScreen as r}from"./AgentInfoScreen-DHGLRddI.js";import{AgentsScreen as m}from"./AgentsScreen-CRi-hG2k.js";/* empty css */import"./colors-BtO5_zlx.js";import"./conversation-model-QsJVfSeG.js";import"./createLucideIcon-DthwWQIg.js";import"./time-Dhsh_2EG.js";import"./api-Co9aQ2Jw.js";import"./perf-PX8Rx0EP.js";import"./sse-DDHEHUgz.js";import"./index-BWHgHrtv.js";import"./text-Faa3ZStB.js";import"./scout-voice-BZKsdquE.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-B2W9DPG5.js";import"./Provider-Bu-C8Hxc.js";import"./router-DTtux5sP.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-BQ6t92tJ.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-BJIamJOH.js";import"./DocumentFocusViewer-DFFE85Tq.js";import"./TextDocumentSurface-BeSwe3Yl.js";import"./file-text--hfhwZH1.js";import"./x-DfRJbqrh.js";import"./chevron-right-CnZRSd-V.js";import"./code-xml-CvKBY3KA.js";import"./arrow-left-DHfdXJVZ.js";import"./arrow-right-BBsrogWf.js";import"./keyboard-nav-e6yGeorb.js";import"./NewChatComposer-C_1op4dH.js";import"./index-DfsTyYDx.js";import"./HarnessMark-DAaWPiT_.js";import"./NewChatOrigin-D7hwp6dm.js";import"./chevron-down-C475vltS.js";import"./search-DmFM_9jm.js";import"./chunk-HRAB3GC3-DLNT8aOo.js";import"./openContent-C6XO6kr5.js";import"./BackToPicker-Cto0Ioz9.js";import"./AgentLiveActions-CsQA3pu_.js";import"./terminal-takeover-B6H4llRR.js";import"./eye-FnaaPfja.js";import"./terminal-C3YRPfyz.js";import"./ObservedTopologyPanel-BhVsvwkh.js";/* empty css */import"./AgentsSubnav-DUsya4WK.js";import"./SecondaryNav-BrXMtvKE.js";import"./secondaryNavConfig-C9bQ9_IA.js";import"./message-square-O-Hu9Mk2.js";import"./compass-BcRI_YXo.js";import"./settings-C6h9y5XX.js";import"./git-branch-DJyvr0k-.js";import"./scroll-text-kPhYbh-M.js";import"./library-D1iXfda2.js";/* empty css */import"./SpriteAvatar-56DTXxSV.js";import"./AgentSessions-BePq5Lgc.js";import"./clipboard-e3fSpeo7.js";import"./agents-project-model-UYiamtrU.js";import"./profile-B3qDSbrH.js";import"./AgentAvatar-B7c0egdP.js";import"./CrewAvatar-CXJHLNVM.js";import"./context-budget-DX_fwUs3.js";import"./session-catalog-BkmktBHI.js";import"./terminal-relay-BFhdIstF.js";import"./ConversationScreen-CXAHQwQ3.js";import"./ConversationComposer-H8_hsYSc.js";import"./zap-CIo8msJB.js";import"./message-markup-Cc_O-WdA.js";import"./mentions-DuLQnEcn.js";import"./AgentDetailCard-B_KLcgsP.js";import"./message-visibility-CGOmSSKs.js";import"./operator-attention-RqieiSY8.js";import"./sessionRead-CvFz2RHv.js";import"./types-B0PlfpKc.js";/* empty css */import"./ConversationHeader-B0ZBhE_E.js";import"./AstronautSuit-Cjjcv6yQ.js";import"./ConversationFeedRows-hlEFlURs.js";import"./ConversationPanels-fMo6Uy1v.js";import"./tail-display-DcliDVkW.js";import"./lane-edit-display-C_Aujldz.js";import"./use-reduced-motion-8WuxLa5l.js";import"./proxy-1BABCaDb.js";import"./activity-CqZafWfx.js";import"./message-circle-B2DoYKDO.js";import"./tail-events-BdUrO0kb.js";import"./ConversationStatus-DI5GCiyW.js";import"./check-DbIkldnK.js";import"./sparkles-Cf8gin88.js";import"./SessionObserve-BCehTlO8.js";import"./bash-format-BRV5C6Gv.js";import"./lane-tool-detail-0WhMf4Vj.js";import"./LaneToolHoverCard-Bo2Zl-1a.js";import"./lane-observe-vfyACHi0.js";import"./lane-ask-display-B6iCAVcd.js";import"./ObserveTextFlow-BcrGQet8.js";import"./SessionObserveEvidence-Bb6U-dem.js";import"./wrench-DkxnZRlR.js";import"./external-link-C_nxk0MJ.js";import"./AgentDefinitionsWorkspace-BbcZc9Xk.js";import"./agent-specialization-BtxLN4UR.js";import"./project-overview-helpers-BQTc_Ous.js";import"./FileViewerPane-CY0RN78e.js";/* empty css */import"./agent-essentials-vytdybaX.js";/* empty css *//* empty css */function eo({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{eo as AgentsContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t}from"./index-
|
|
1
|
+
import{j as t}from"./index-BI9AljSD.js";import{FollowScreen as i}from"./FollowScreen-wZ-z67mX.js";import"./api-Co9aQ2Jw.js";import"./perf-PX8Rx0EP.js";import"./follow-route-BvcGtBIL.js";import"./router-DTtux5sP.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-BQ6t92tJ.js";/* empty css */function x({route:o,navigate:r}){return o.view!=="follow"?null:t.jsx(i,{route:o,navigate:r})}export{x as FollowContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as t}from"./index-BI9AljSD.js";import{a as i}from"./BrokerScreen-CS0s4Gm4.js";import"./index-DfsTyYDx.js";import"./text-Faa3ZStB.js";import"./scout-voice-BZKsdquE.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-B2W9DPG5.js";import"./createLucideIcon-DthwWQIg.js";import"./EmptyState-D9X16fKq.js";import"./NewChatComposer-C_1op4dH.js";import"./conversation-model-QsJVfSeG.js";import"./colors-BtO5_zlx.js";import"./time-Dhsh_2EG.js";import"./api-Co9aQ2Jw.js";import"./perf-PX8Rx0EP.js";import"./HarnessMark-DAaWPiT_.js";import"./NewChatOrigin-D7hwp6dm.js";import"./keyboard-nav-e6yGeorb.js";import"./x-DfRJbqrh.js";import"./chevron-down-C475vltS.js";import"./search-DmFM_9jm.js";import"./file-text--hfhwZH1.js";import"./clipboard-e3fSpeo7.js";import"./sse-DDHEHUgz.js";import"./index-BWHgHrtv.js";import"./status-tone-BM_zuRy1.js";import"./Provider-Bu-C8Hxc.js";import"./router-DTtux5sP.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-BQ6t92tJ.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-BJIamJOH.js";import"./DocumentFocusViewer-DFFE85Tq.js";import"./TextDocumentSurface-BeSwe3Yl.js";import"./chevron-right-CnZRSd-V.js";import"./code-xml-CvKBY3KA.js";import"./arrow-left-DHfdXJVZ.js";import"./arrow-right-BBsrogWf.js";import"./chunk-HRAB3GC3-DLNT8aOo.js";import"./openContent-C6XO6kr5.js";import"./broker-display-Q75fupqG.js";import"./BrokerMetadataPanel-DbaCQlhw.js";import"./DispatchAftermath-CrELgl2e.js";import"./follow-route-BvcGtBIL.js";import"./arrow-up-right-CY0Vw_67.js";import"./ShikiPane-DPWsVNtn.js";import"./types-B0PlfpKc.js";/* empty css */import"./refresh-cw-DmNAhaH0.js";import"./arrow-down-DvTsLokL.js";import"./external-link-C_nxk0MJ.js";import"./sparkles-Cf8gin88.js";import"./paperclip-BudMKSyr.js";import"./plus-BJ1If8vj.js";import"./send-horizontal-qyjNgEaV.js";import"./check-DbIkldnK.js";import"./copy-Cj-owMb-.js";import"./message-square-O-Hu9Mk2.js";import"./radio-B5OpHrrK.js";import"./bot-DzkOUFBb.js";function xr({route:r,navigate:o}){return r.view!=="broker"?null:t.jsx(i,{navigate:o})}export{xr as BrokerContent};
|
package/dist/client/assets/{conversation-icons-tp9BX6X2.js → conversation-icons-CBMKBGHd.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as r}from"./index-
|
|
1
|
+
import{j as r}from"./index-BI9AljSD.js";function e(){return r.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[r.jsx("path",{d:"M12 19V5"}),r.jsx("path",{d:"m5 12 7-7 7 7"})]})}function i(){return r.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:r.jsx("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"})})}function n(){return r.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[r.jsx("path",{d:"M4 4l8 8"}),r.jsx("path",{d:"M12 4l-8 8"})]})}export{n as DismissIcon,e as SendIcon,i as StopIcon};
|
package/dist/client/assets/{conversation-model-Dc02NsGp.js → conversation-model-QsJVfSeG.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as _}from"./createLucideIcon-DezKXSG2.js";import{i as O,s as F,n as L}from"./colors-BtO5_zlx.js";import{n as u,e as W,c as I,t as y}from"./time-Dhsh_2EG.js";const $=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],ot=_("corner-down-left",$);function d(t){const e=t?.trim();if(!e)return null;const[n]=e.split(".");return n?.trim()||e}function ut(t){const e=t.handle?.trim().replace(/^@+/,"");if(e)return`@${e}`;const n=t.selector?.trim();if(n)return n;const r=d(t.id);return r?`@${r}`:null}function ct(t){return t.name?.trim()||t.agentName?.trim()||d(t.id)||t.title?.trim()||"Conversation"}function B(t,e){const n=u(t),r=u(e);if(n===null||r===null)return!1;const i=new Date(n),s=new Date(r);return i.getFullYear()===s.getFullYear()&&i.getMonth()===s.getMonth()&&i.getDate()===s.getDate()}function lt(t){const e=u(t);if(e===null)return"";const n=new Date(e),r=new Date,i=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime(),s=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime(),a=1440*60*1e3;return s===i?"Today":s===i-a?"Yesterday":new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric"}).format(e)}const q=30*6e4;function dt(t){return t.kind==="channel"}function ft(t){return t.kind==="channel"||t.kind==="group_direct"}function k(t){if(t.participantIds.includes("operator"))return!0;const e=t.participants;return e?.length?e.some(n=>n.actorId==="operator"||n.kind==="operator"||n.kind==="person"&&n.actorId==="operator"):!1}function mt(t){return(t.kind==="direct"||t.kind==="group_direct")&&k(t)}function gt(t){return(t.kind==="direct"||t.kind==="group_direct")&&!k(t)}function E(t){return t.title&&t.title!==t.id?t.title:t.agentName??t.id}function pt(t){return E(t)}const P=new Set(["completed","failed","cancelled"]);function c(t){return!!(t&&!P.has(t.state))}function ht(t){return c(t)&&!x(t)}function S(t){return t?.dispatchOutcome?.status==="queued_until_online"}function x(t){return!!(t?.summary?.includes("Scout stopped waiting for a synchronous result")||t?.summary?.includes("the requester stopped waiting after"))}function z(t,e=Date.now(),n=q){if(!c(t)||S(t))return!1;const r=u(t?.startedAt);return r!==null&&e-r>n}function yt(t,e,n=Date.now()){if(!z(t,n))return!1;const r=u(t?.startedAt),i=u(e);return r!==null&&i!==null&&i>r}function At(t){return!c(t)}const wt=[{command:"/route",label:"/route",description:"Route this to another agent",insert:"/route @"},{command:"/inbox",label:"/inbox",description:"Go to the inbox",insert:"/inbox"},{command:"/agents",label:"/agents",description:"Open the agents list",insert:"/agents"},{command:"/fleet",label:"/fleet",description:"Open the fleet view",insert:"/fleet"},{command:"/sessions",label:"/sessions",description:"Browse sessions",insert:"/sessions"},{command:"/mesh",label:"/mesh",description:"Open the mesh view",insert:"/mesh"},{command:"/activity",label:"/activity",description:"Open activity feed",insert:"/activity"},{command:"/settings",label:"/settings",description:"Open settings",insert:"/settings"}];function vt(t,e,n){return t.findIndex(r=>{if(n&&r.id===n)return!0;const i=r.metadata?.clientMessageId;return typeof i=="string"&&i.trim()===e})}function It(t,e){const n=new Set(e.map(s=>s.id)),r=new Set(e.map(s=>s.metadata?.clientMessageId).filter(s=>typeof s=="string"&&!!s.trim()).map(s=>s.trim())),i=t.filter(s=>{const a=s.metadata?.deliveryState;if(a!=="sending"&&a!=="unknown"||n.has(s.id))return!1;const o=s.metadata?.clientMessageId;return typeof o!="string"||!r.has(o.trim())});return j([...e,...i])}const V=["standard","familiar","ledger","rail","document"];function kt(t){const e=t.get("treatment")?.trim(),n=t.get("composeDraft")?.trim()||void 0;return{conversationId:t.get("conversationId")?.trim()||"",...n?{initialDraft:n}:{},embedded:!0,showBackNav:!1,treatment:e&&V.includes(e)?e:"standard"}}function St(t){return!!t?.terminalSurface}function Tt(t){if(t?.kind!=="direct")return null;const e=t.sessionId?.trim();return e||t.participants?.find(n=>n.kind==="session"&&n.sessionId?.trim())?.sessionId?.trim()||null}function bt(t){const e=t.machineId?.trim()?{machineId:t.machineId.trim()}:{},n=t.resolvedAgentId?.trim();if(n)return{view:"agents-v2",agentId:n,...e};const r=t.sessionId?.trim();return r?{view:"sessions",sessionId:r,...e}:null}function Dt(t){return t.sending||t.awaitingResponse||c(t.currentFlight)}function Ct(t){return t.isDm?t.hasOutstandingReply?"steer":"invoke":"message"}function Mt(t){return t.isAgentBusy?t.intent:"send"}function Rt(t){return!t.isAgentBusy&&!t.sending&&t.queued.length>0}function Nt(t){return t.length===0?null:t.length===1?"Sends when this turn lands":"Sends in order when this turn lands"}const A={sustained:15e3,long:3e4};function _t(t,e){const n=u(t);if(n===null)return"brief";const r=Math.max(0,e-n);return r>=A.long?"long":r>=A.sustained?"sustained":"brief"}const G=6e4;function T(t){const e=t.metadata?.deliveryRequestId;return typeof e=="string"&&e.trim()?e.trim():null}function H(t){for(const e of["targetDisplayName","relayTarget"]){const n=t.metadata?.[e];if(typeof n=="string"&&n.trim())return n.trim()}return t.actorName}function g(t){for(const e of["relayTarget","targetDisplayName"]){const n=t.metadata?.[e];if(typeof n=="string"&&n.trim())return n.trim()}return t.actorId?.trim()||t.actorName}function U(t,e,n){return T(t)!==null&&t.body===e.body&&t.class===e.class&&Math.abs(t.createdAt-e.createdAt)<=G&&!n.has(g(t))}function Ot(t){const e=[];let n=null,r=0;for(;r<t.length;){const i=t[r];let s=r+1;if(T(i)!==null){const o=new Set([g(i)]);for(;s<t.length&&U(t[s],i,o);)o.add(g(t[s])),s+=1}const a=t.slice(r,s);a.length>1?e.push({kind:"fanout",key:`fanout-${i.id}`,messages:a,recipients:a.map(H),createdAt:i.createdAt,previousCreatedAt:n}):e.push({kind:"message",key:i.id,message:i,previousCreatedAt:n}),n=a.at(-1).createdAt,r=s}return e}function Y(t){return t.kind==="fanout"?t.createdAt:t.message.createdAt}function Ft(t,e){return e===0||!B(t.previousCreatedAt,Y(t))}function Lt(t){return t.historyRestorePending||!(!!t.newestMessageId||t.showTyping)?"none":t.initialScrollDone?t.nearBottom&&(t.newestMessageId&&t.newestMessageId!==t.previousNewestMessageId||t.showTyping&&!t.previousShowTyping)?"smooth":"none":"instant"}function b(t,e){if(e<=0)return!0;const n=t[e-1];return!n||/\s/.test(n)}function Wt(t,e){if(e===0)return null;let n=e-1;for(;n>=0;){const i=t[n];if(i==="/")break;if(!i||/\s/.test(i))return null;n-=1}if(n<0||t[n]!=="/"||!b(t,n))return null;const r=t.slice(n+1,e);return/[^a-zA-Z0-9_-]/.test(r)?null:{start:n,query:r}}function $t(t,e){if(e===0)return null;let n=e-1;for(;n>=0;){const i=t[n];if(i==="@")break;if(!i||/\s/.test(i))return null;n-=1}if(n<0||t[n]!=="@"||!b(t,n))return null;const r=t.slice(n+1,e);return/[^a-zA-Z0-9._/:-]/.test(r)?null:{start:n,query:r}}function K(t){if(!t)return null;const e=t.replace(/[\\/]+$/,"");return e?e.split(/[\\/]/).filter(Boolean).at(-1)??e:null}function Bt(t){return t.kind==="direct"&&t.agentName?t.agentName:t.kind==="direct"&&t.agentId?d(t.agentId)??t.agentId:t.title.replace(/\s*<>\s*/g," · ")}function qt(t){switch(t){case"status":return"Status";case"system":return"System";case"scout.dispatch":return"Dispatch";default:return null}}function j(t){return[...t].sort((e,n)=>W(e.createdAt,n.createdAt))}function Et(t){return t.filter(c).sort((e,n)=>I(e.startedAt,n.startedAt))[0]??null}function Pt(t,e){try{return JSON.stringify(t)===JSON.stringify(e)?t:e}catch{return e}}function Q(t){const e=t?.dispatchOutcome;if(!e||typeof e!="object"||Array.isArray(e))return null;const n=e,r=typeof n.status=="string"?n.status.trim():"";if(!r)return null;const i=typeof n.reason=="string"?n.reason:null,s=typeof n.checkedAt=="number"?n.checkedAt:typeof n.checkedAt=="string"&&Number.isFinite(Number(n.checkedAt))?Number(n.checkedAt):null;return{status:r,reason:i,checkedAt:s}}function xt(t,e,n,r){const i=r&&r.id===t.id?r:null;return{id:t.id,invocationId:t.invocationId,agentId:t.targetAgentId||n,agentName:i?.agentName??null,conversationId:e,collaborationRecordId:i?.collaborationRecordId??null,state:t.state,summary:t.summary??null,startedAt:t.startedAt??i?.startedAt??null,completedAt:t.completedAt??null,sessions:i?.sessions??[],dispatchOutcome:Q(t.metadata)}}function zt(){return{generatedAt:Date.now(),totals:{active:0,recentCompleted:0,needsAttention:0,activity:0},activeAsks:[],recentCompleted:[],needsAttention:[],activity:[]}}function Vt(t,e,n,r){if(!e)return[];const i=u(e.startedAt)??0,s=new Set;return t.filter(a=>a.flightId===e.id||a.invocationId===e.invocationId?!0:!r||a.agentId!==r||a.conversationId!==n?!1:(u(a.ts)??0)>=i).filter(a=>s.has(a.id)?!1:(s.add(a.id),!0)).sort((a,o)=>I(a.ts,o.ts))}function Gt(t,e,n,r){return e?t.find(i=>i.flightId===e.id||i.invocationId===e.invocationId)??t.find(i=>i.conversationId===n&&(!r||i.agentId===r)&&(i.status==="queued"||i.status==="working"))??null:null}const J=/\[ask:([^\]]+)\]/i,D=/\[ask:[^\]]+\]\s*/gi;function Ht(t){const e=t.match(J);return e?{flightId:e[1]?.trim()??"",body:t.replace(D,"").trim()}:null}function Z(t){const e=t.replace(D,"").split(/\r?\n/).map(r=>r.trim()).find(Boolean)??"",n=72;return e.length>n?`${e.slice(0,n-1).trimEnd()}…`:e}function Ut(t){const{flightId:e,replyToMessageId:n,messagesById:r,agents:i,operatorName:s}=t;if(!n)return null;const a=r.get(n);if(!a)return null;const o=Z(a.body);if(!o)return null;const l=C(a,s)?s:rt(a.actorId,i,s);return{flightId:e,originatingMessageId:n,title:o,from:l,status:"done"}}function Yt(t,e,n){return t.find(r=>r.status==="needs_attention"&&r.conversationId===e)??t.find(r=>r.status==="needs_attention"&&!r.conversationId&&!!n&&r.agentId===n)??null}function w(t){const e=t.summary?.trim();if(e)return e;const n=t.title?.trim();return n||null}function X(t){return t===1?"1 update":`${t} updates`}function Kt(t){const{currentFlight:e,presence:n,turnActivity:r,turnAsk:i,awaitingResponseSince:s,nowMs:a}=t,o=r.find(N=>w(N)),l=S(e),R=(o?w(o):null)??(l?null:i?.summary?.trim())??i?.task?.trim()??(l?null:e?.summary?.trim())??n.detail,f=u(e?.startedAt)??u(i?.startedAt)??u(s),p=u(o?.ts)??u(i?.updatedAt)??f,h=r.length+(i?.acknowledgedAt?1:0);return{latest:R,activityLabel:h>0?X(h):"No activity yet",elapsedLabel:f?y(f,a):"now",lastActivityLabel:p?y(p,a):"now"}}function jt(t){const e=t.metadata?.scoutDispatch;if(!e||typeof e!="object")return null;const n=e;return!n.id||!n.kind||!Array.isArray(n.candidates)?null:n}function C(t,e){if(t.class==="operator"||t.actorId==="operator")return!0;const n=t.actorName?.toLowerCase()??"";return n===e.toLowerCase()||n==="operator"||n==="you"}function tt(t){const e=t.metadata?.returnAddress;if(!e||typeof e!="object")return null;const n=e.actorId;return typeof n=="string"&&n.trim().length>0?n.trim():null}function m(t,e){const n=t.metadata?.returnAddress;if(!n||typeof n!="object")return null;const r=n[e];return typeof r=="string"&&r.trim().length>0?r.trim():null}function M(t){const e=t?.trim();return e?e.replace(/^@+/,"").toLowerCase():null}function et(t){return new Set([t.id,t.handle,t.selector,t.defaultSelector,t.conversationId].map(M).filter(e=>e!==null))}function v(t,e){for(const n of e){const r=M(n);if(!r)continue;const i=t.filter(s=>et(s).has(r));if(i.length===1)return i[0]}return null}function Qt(t,e,n){const r=t.actorId??tt(t),i=v(e,[r,m(t,"selector"),m(t,"defaultSelector"),m(t,"handle")]);if(i)return i;if(n){const a=v(e,[n]);if(a)return a}if(!t.actorName)return null;const s=e.filter(a=>a.name===t.actorName);return s.length===1?s[0]:null}function Jt(t,e){return t.reduce((n,r)=>{if(C(r,e))return n;const i=u(r.createdAt);return i===null?n:n===null||i>n?i:n},null)}function nt(t,e){switch(e){case"queued":return`${t} has your message and is waiting to start.`;case"waking":return`${t} is waking up now.`;case"waiting":return`${t} is thinking through the request.`;case"running":return`${t} is working on your request.`;default:return`${t} is working on it.`}}function rt(t,e,n){return!t||t==="operator"?n:e.find(i=>i.id===t)?.name??d(t)??t}function Zt(t){const{agentName:e,agentState:n,sending:r,currentFlight:i,showWorkingTurn:s,awaitingResponse:a}=t;if(r&&!i)return{label:"Sending",detail:`Handing your message to ${e}.`,tone:"pending",showStrip:!0,showTyping:!1};if(!i&&a)return{label:"Starting",detail:`${e} is opening the session and routing your request.`,tone:"pending",showStrip:!0,showTyping:!0};if(i&&s){const o=i.summary?.trim()||nt(e,i.state);switch(i.state){case"queued":return{label:"Queued",detail:o,tone:"pending",showStrip:!0,showTyping:!0};case"waking":return{label:"Coming online",detail:o,tone:"working",showStrip:!0,showTyping:!0};case"waiting":return{label:"Thinking",detail:o,tone:"working",showStrip:!0,showTyping:!0};default:return{label:"Working",detail:o,tone:"working",showStrip:!0,showTyping:!0}}}return O(n)?{label:"Ready",detail:`${e} is ready.`,tone:"idle",showStrip:!1,showTyping:!1}:{label:"Not ready",detail:`${e} is not ready right now. Sending a message will try to wake it up.`,tone:"offline",showStrip:!0,showTyping:!1}}function Xt(t,e){switch(t.tone){case"pending":return"var(--accent)";case"working":return"var(--green)";case"quiet":return"var(--amber)";case"offline":return"var(--dim)";default:return F(e)}}function te(t){return t.startsWith("c.")?`c.${t.slice(2,10)}`:t.length>22?`${t.slice(0,10)}...${t.slice(-7)}`:t}function ee(t){return"Chat ID"}function ne(t){const e=new Map;for(const n of t){const r=K(n.workspaceRoot)??"General",i=e.get(r)??[];i.push(n),e.set(r,i)}return Array.from(e.entries()).map(([n,r])=>({workspace:n,sessions:r.sort((i,s)=>(s.lastMessageAt??0)-(i.lastMessageAt??0))}))}function re(t,e,n){if(!t)return null;const r=L(t.state);if(e.some(s=>s.agentId===t.id&&s.conversationId===n&&c(s))){const s=e.find(a=>a.agentId===t.id&&a.conversationId===n&&c(a));return s?.state==="running"?"running tool":s?.state==="waiting"?"thinking":"working"}return r==="in_turn"||r==="in_flight"?"typing":null}function ie(t){switch(t){case"tool-result":return"Result";case"tool":return"Tool";case"assistant":return"Agent";case"user":return"User";case"message":return"Message";default:return t.replace(/[-_]/g," ")}}export{Nt as $,j as A,It as B,ot as C,Et as D,Vt as E,Gt as F,Wt as G,$t as H,Jt as I,ht as J,yt as K,S as L,Dt as M,Zt as N,Kt as O,St as P,Ot as Q,rt as R,wt as S,vt as T,At as U,P as V,xt as W,x as X,Lt as Y,C as Z,Rt as _,E as a,Qt as a0,Ft as a1,jt as a2,Ht as a3,Ut as a4,A as a5,_t as a6,Ct as a7,qt as a8,Mt as a9,kt as aa,bt as b,d as c,Tt as d,ct as e,lt as f,c as g,mt as h,gt as i,ie as j,ne as k,re as l,ut as m,Bt as n,Xt as o,K as p,dt as q,v as r,ft as s,w as t,pt as u,ee as v,te as w,Pt as x,Yt as y,zt as z};
|
|
1
|
+
import{c as _}from"./createLucideIcon-DthwWQIg.js";import{i as O,s as F,n as L}from"./colors-BtO5_zlx.js";import{n as u,e as W,c as I,t as y}from"./time-Dhsh_2EG.js";const $=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],ot=_("corner-down-left",$);function d(t){const e=t?.trim();if(!e)return null;const[n]=e.split(".");return n?.trim()||e}function ut(t){const e=t.handle?.trim().replace(/^@+/,"");if(e)return`@${e}`;const n=t.selector?.trim();if(n)return n;const r=d(t.id);return r?`@${r}`:null}function ct(t){return t.name?.trim()||t.agentName?.trim()||d(t.id)||t.title?.trim()||"Conversation"}function B(t,e){const n=u(t),r=u(e);if(n===null||r===null)return!1;const i=new Date(n),s=new Date(r);return i.getFullYear()===s.getFullYear()&&i.getMonth()===s.getMonth()&&i.getDate()===s.getDate()}function lt(t){const e=u(t);if(e===null)return"";const n=new Date(e),r=new Date,i=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime(),s=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime(),a=1440*60*1e3;return s===i?"Today":s===i-a?"Yesterday":new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric"}).format(e)}const q=30*6e4;function dt(t){return t.kind==="channel"}function ft(t){return t.kind==="channel"||t.kind==="group_direct"}function k(t){if(t.participantIds.includes("operator"))return!0;const e=t.participants;return e?.length?e.some(n=>n.actorId==="operator"||n.kind==="operator"||n.kind==="person"&&n.actorId==="operator"):!1}function mt(t){return(t.kind==="direct"||t.kind==="group_direct")&&k(t)}function gt(t){return(t.kind==="direct"||t.kind==="group_direct")&&!k(t)}function E(t){return t.title&&t.title!==t.id?t.title:t.agentName??t.id}function pt(t){return E(t)}const P=new Set(["completed","failed","cancelled"]);function c(t){return!!(t&&!P.has(t.state))}function ht(t){return c(t)&&!x(t)}function S(t){return t?.dispatchOutcome?.status==="queued_until_online"}function x(t){return!!(t?.summary?.includes("Scout stopped waiting for a synchronous result")||t?.summary?.includes("the requester stopped waiting after"))}function z(t,e=Date.now(),n=q){if(!c(t)||S(t))return!1;const r=u(t?.startedAt);return r!==null&&e-r>n}function yt(t,e,n=Date.now()){if(!z(t,n))return!1;const r=u(t?.startedAt),i=u(e);return r!==null&&i!==null&&i>r}function At(t){return!c(t)}const wt=[{command:"/route",label:"/route",description:"Route this to another agent",insert:"/route @"},{command:"/inbox",label:"/inbox",description:"Go to the inbox",insert:"/inbox"},{command:"/agents",label:"/agents",description:"Open the agents list",insert:"/agents"},{command:"/fleet",label:"/fleet",description:"Open the fleet view",insert:"/fleet"},{command:"/sessions",label:"/sessions",description:"Browse sessions",insert:"/sessions"},{command:"/mesh",label:"/mesh",description:"Open the mesh view",insert:"/mesh"},{command:"/activity",label:"/activity",description:"Open activity feed",insert:"/activity"},{command:"/settings",label:"/settings",description:"Open settings",insert:"/settings"}];function vt(t,e,n){return t.findIndex(r=>{if(n&&r.id===n)return!0;const i=r.metadata?.clientMessageId;return typeof i=="string"&&i.trim()===e})}function It(t,e){const n=new Set(e.map(s=>s.id)),r=new Set(e.map(s=>s.metadata?.clientMessageId).filter(s=>typeof s=="string"&&!!s.trim()).map(s=>s.trim())),i=t.filter(s=>{const a=s.metadata?.deliveryState;if(a!=="sending"&&a!=="unknown"||n.has(s.id))return!1;const o=s.metadata?.clientMessageId;return typeof o!="string"||!r.has(o.trim())});return j([...e,...i])}const V=["standard","familiar","ledger","rail","document"];function kt(t){const e=t.get("treatment")?.trim(),n=t.get("composeDraft")?.trim()||void 0;return{conversationId:t.get("conversationId")?.trim()||"",...n?{initialDraft:n}:{},embedded:!0,showBackNav:!1,treatment:e&&V.includes(e)?e:"standard"}}function St(t){return!!t?.terminalSurface}function Tt(t){if(t?.kind!=="direct")return null;const e=t.sessionId?.trim();return e||t.participants?.find(n=>n.kind==="session"&&n.sessionId?.trim())?.sessionId?.trim()||null}function bt(t){const e=t.machineId?.trim()?{machineId:t.machineId.trim()}:{},n=t.resolvedAgentId?.trim();if(n)return{view:"agents-v2",agentId:n,...e};const r=t.sessionId?.trim();return r?{view:"sessions",sessionId:r,...e}:null}function Dt(t){return t.sending||t.awaitingResponse||c(t.currentFlight)}function Ct(t){return t.isDm?t.hasOutstandingReply?"steer":"invoke":"message"}function Mt(t){return t.isAgentBusy?t.intent:"send"}function Rt(t){return!t.isAgentBusy&&!t.sending&&t.queued.length>0}function Nt(t){return t.length===0?null:t.length===1?"Sends when this turn lands":"Sends in order when this turn lands"}const A={sustained:15e3,long:3e4};function _t(t,e){const n=u(t);if(n===null)return"brief";const r=Math.max(0,e-n);return r>=A.long?"long":r>=A.sustained?"sustained":"brief"}const G=6e4;function T(t){const e=t.metadata?.deliveryRequestId;return typeof e=="string"&&e.trim()?e.trim():null}function H(t){for(const e of["targetDisplayName","relayTarget"]){const n=t.metadata?.[e];if(typeof n=="string"&&n.trim())return n.trim()}return t.actorName}function g(t){for(const e of["relayTarget","targetDisplayName"]){const n=t.metadata?.[e];if(typeof n=="string"&&n.trim())return n.trim()}return t.actorId?.trim()||t.actorName}function U(t,e,n){return T(t)!==null&&t.body===e.body&&t.class===e.class&&Math.abs(t.createdAt-e.createdAt)<=G&&!n.has(g(t))}function Ot(t){const e=[];let n=null,r=0;for(;r<t.length;){const i=t[r];let s=r+1;if(T(i)!==null){const o=new Set([g(i)]);for(;s<t.length&&U(t[s],i,o);)o.add(g(t[s])),s+=1}const a=t.slice(r,s);a.length>1?e.push({kind:"fanout",key:`fanout-${i.id}`,messages:a,recipients:a.map(H),createdAt:i.createdAt,previousCreatedAt:n}):e.push({kind:"message",key:i.id,message:i,previousCreatedAt:n}),n=a.at(-1).createdAt,r=s}return e}function Y(t){return t.kind==="fanout"?t.createdAt:t.message.createdAt}function Ft(t,e){return e===0||!B(t.previousCreatedAt,Y(t))}function Lt(t){return t.historyRestorePending||!(!!t.newestMessageId||t.showTyping)?"none":t.initialScrollDone?t.nearBottom&&(t.newestMessageId&&t.newestMessageId!==t.previousNewestMessageId||t.showTyping&&!t.previousShowTyping)?"smooth":"none":"instant"}function b(t,e){if(e<=0)return!0;const n=t[e-1];return!n||/\s/.test(n)}function Wt(t,e){if(e===0)return null;let n=e-1;for(;n>=0;){const i=t[n];if(i==="/")break;if(!i||/\s/.test(i))return null;n-=1}if(n<0||t[n]!=="/"||!b(t,n))return null;const r=t.slice(n+1,e);return/[^a-zA-Z0-9_-]/.test(r)?null:{start:n,query:r}}function $t(t,e){if(e===0)return null;let n=e-1;for(;n>=0;){const i=t[n];if(i==="@")break;if(!i||/\s/.test(i))return null;n-=1}if(n<0||t[n]!=="@"||!b(t,n))return null;const r=t.slice(n+1,e);return/[^a-zA-Z0-9._/:-]/.test(r)?null:{start:n,query:r}}function K(t){if(!t)return null;const e=t.replace(/[\\/]+$/,"");return e?e.split(/[\\/]/).filter(Boolean).at(-1)??e:null}function Bt(t){return t.kind==="direct"&&t.agentName?t.agentName:t.kind==="direct"&&t.agentId?d(t.agentId)??t.agentId:t.title.replace(/\s*<>\s*/g," · ")}function qt(t){switch(t){case"status":return"Status";case"system":return"System";case"scout.dispatch":return"Dispatch";default:return null}}function j(t){return[...t].sort((e,n)=>W(e.createdAt,n.createdAt))}function Et(t){return t.filter(c).sort((e,n)=>I(e.startedAt,n.startedAt))[0]??null}function Pt(t,e){try{return JSON.stringify(t)===JSON.stringify(e)?t:e}catch{return e}}function Q(t){const e=t?.dispatchOutcome;if(!e||typeof e!="object"||Array.isArray(e))return null;const n=e,r=typeof n.status=="string"?n.status.trim():"";if(!r)return null;const i=typeof n.reason=="string"?n.reason:null,s=typeof n.checkedAt=="number"?n.checkedAt:typeof n.checkedAt=="string"&&Number.isFinite(Number(n.checkedAt))?Number(n.checkedAt):null;return{status:r,reason:i,checkedAt:s}}function xt(t,e,n,r){const i=r&&r.id===t.id?r:null;return{id:t.id,invocationId:t.invocationId,agentId:t.targetAgentId||n,agentName:i?.agentName??null,conversationId:e,collaborationRecordId:i?.collaborationRecordId??null,state:t.state,summary:t.summary??null,startedAt:t.startedAt??i?.startedAt??null,completedAt:t.completedAt??null,sessions:i?.sessions??[],dispatchOutcome:Q(t.metadata)}}function zt(){return{generatedAt:Date.now(),totals:{active:0,recentCompleted:0,needsAttention:0,activity:0},activeAsks:[],recentCompleted:[],needsAttention:[],activity:[]}}function Vt(t,e,n,r){if(!e)return[];const i=u(e.startedAt)??0,s=new Set;return t.filter(a=>a.flightId===e.id||a.invocationId===e.invocationId?!0:!r||a.agentId!==r||a.conversationId!==n?!1:(u(a.ts)??0)>=i).filter(a=>s.has(a.id)?!1:(s.add(a.id),!0)).sort((a,o)=>I(a.ts,o.ts))}function Gt(t,e,n,r){return e?t.find(i=>i.flightId===e.id||i.invocationId===e.invocationId)??t.find(i=>i.conversationId===n&&(!r||i.agentId===r)&&(i.status==="queued"||i.status==="working"))??null:null}const J=/\[ask:([^\]]+)\]/i,D=/\[ask:[^\]]+\]\s*/gi;function Ht(t){const e=t.match(J);return e?{flightId:e[1]?.trim()??"",body:t.replace(D,"").trim()}:null}function Z(t){const e=t.replace(D,"").split(/\r?\n/).map(r=>r.trim()).find(Boolean)??"",n=72;return e.length>n?`${e.slice(0,n-1).trimEnd()}…`:e}function Ut(t){const{flightId:e,replyToMessageId:n,messagesById:r,agents:i,operatorName:s}=t;if(!n)return null;const a=r.get(n);if(!a)return null;const o=Z(a.body);if(!o)return null;const l=C(a,s)?s:rt(a.actorId,i,s);return{flightId:e,originatingMessageId:n,title:o,from:l,status:"done"}}function Yt(t,e,n){return t.find(r=>r.status==="needs_attention"&&r.conversationId===e)??t.find(r=>r.status==="needs_attention"&&!r.conversationId&&!!n&&r.agentId===n)??null}function w(t){const e=t.summary?.trim();if(e)return e;const n=t.title?.trim();return n||null}function X(t){return t===1?"1 update":`${t} updates`}function Kt(t){const{currentFlight:e,presence:n,turnActivity:r,turnAsk:i,awaitingResponseSince:s,nowMs:a}=t,o=r.find(N=>w(N)),l=S(e),R=(o?w(o):null)??(l?null:i?.summary?.trim())??i?.task?.trim()??(l?null:e?.summary?.trim())??n.detail,f=u(e?.startedAt)??u(i?.startedAt)??u(s),p=u(o?.ts)??u(i?.updatedAt)??f,h=r.length+(i?.acknowledgedAt?1:0);return{latest:R,activityLabel:h>0?X(h):"No activity yet",elapsedLabel:f?y(f,a):"now",lastActivityLabel:p?y(p,a):"now"}}function jt(t){const e=t.metadata?.scoutDispatch;if(!e||typeof e!="object")return null;const n=e;return!n.id||!n.kind||!Array.isArray(n.candidates)?null:n}function C(t,e){if(t.class==="operator"||t.actorId==="operator")return!0;const n=t.actorName?.toLowerCase()??"";return n===e.toLowerCase()||n==="operator"||n==="you"}function tt(t){const e=t.metadata?.returnAddress;if(!e||typeof e!="object")return null;const n=e.actorId;return typeof n=="string"&&n.trim().length>0?n.trim():null}function m(t,e){const n=t.metadata?.returnAddress;if(!n||typeof n!="object")return null;const r=n[e];return typeof r=="string"&&r.trim().length>0?r.trim():null}function M(t){const e=t?.trim();return e?e.replace(/^@+/,"").toLowerCase():null}function et(t){return new Set([t.id,t.handle,t.selector,t.defaultSelector,t.conversationId].map(M).filter(e=>e!==null))}function v(t,e){for(const n of e){const r=M(n);if(!r)continue;const i=t.filter(s=>et(s).has(r));if(i.length===1)return i[0]}return null}function Qt(t,e,n){const r=t.actorId??tt(t),i=v(e,[r,m(t,"selector"),m(t,"defaultSelector"),m(t,"handle")]);if(i)return i;if(n){const a=v(e,[n]);if(a)return a}if(!t.actorName)return null;const s=e.filter(a=>a.name===t.actorName);return s.length===1?s[0]:null}function Jt(t,e){return t.reduce((n,r)=>{if(C(r,e))return n;const i=u(r.createdAt);return i===null?n:n===null||i>n?i:n},null)}function nt(t,e){switch(e){case"queued":return`${t} has your message and is waiting to start.`;case"waking":return`${t} is waking up now.`;case"waiting":return`${t} is thinking through the request.`;case"running":return`${t} is working on your request.`;default:return`${t} is working on it.`}}function rt(t,e,n){return!t||t==="operator"?n:e.find(i=>i.id===t)?.name??d(t)??t}function Zt(t){const{agentName:e,agentState:n,sending:r,currentFlight:i,showWorkingTurn:s,awaitingResponse:a}=t;if(r&&!i)return{label:"Sending",detail:`Handing your message to ${e}.`,tone:"pending",showStrip:!0,showTyping:!1};if(!i&&a)return{label:"Starting",detail:`${e} is opening the session and routing your request.`,tone:"pending",showStrip:!0,showTyping:!0};if(i&&s){const o=i.summary?.trim()||nt(e,i.state);switch(i.state){case"queued":return{label:"Queued",detail:o,tone:"pending",showStrip:!0,showTyping:!0};case"waking":return{label:"Coming online",detail:o,tone:"working",showStrip:!0,showTyping:!0};case"waiting":return{label:"Thinking",detail:o,tone:"working",showStrip:!0,showTyping:!0};default:return{label:"Working",detail:o,tone:"working",showStrip:!0,showTyping:!0}}}return O(n)?{label:"Ready",detail:`${e} is ready.`,tone:"idle",showStrip:!1,showTyping:!1}:{label:"Not ready",detail:`${e} is not ready right now. Sending a message will try to wake it up.`,tone:"offline",showStrip:!0,showTyping:!1}}function Xt(t,e){switch(t.tone){case"pending":return"var(--accent)";case"working":return"var(--green)";case"quiet":return"var(--amber)";case"offline":return"var(--dim)";default:return F(e)}}function te(t){return t.startsWith("c.")?`c.${t.slice(2,10)}`:t.length>22?`${t.slice(0,10)}...${t.slice(-7)}`:t}function ee(t){return"Chat ID"}function ne(t){const e=new Map;for(const n of t){const r=K(n.workspaceRoot)??"General",i=e.get(r)??[];i.push(n),e.set(r,i)}return Array.from(e.entries()).map(([n,r])=>({workspace:n,sessions:r.sort((i,s)=>(s.lastMessageAt??0)-(i.lastMessageAt??0))}))}function re(t,e,n){if(!t)return null;const r=L(t.state);if(e.some(s=>s.agentId===t.id&&s.conversationId===n&&c(s))){const s=e.find(a=>a.agentId===t.id&&a.conversationId===n&&c(a));return s?.state==="running"?"running tool":s?.state==="waiting"?"thinking":"working"}return r==="in_turn"||r==="in_flight"?"typing":null}function ie(t){switch(t){case"tool-result":return"Result";case"tool":return"Tool";case"assistant":return"Agent";case"user":return"User";case"message":return"Message";default:return t.replace(/[-_]/g," ")}}export{Nt as $,j as A,It as B,ot as C,Et as D,Vt as E,Gt as F,Wt as G,$t as H,Jt as I,ht as J,yt as K,S as L,Dt as M,Zt as N,Kt as O,St as P,Ot as Q,rt as R,wt as S,vt as T,At as U,P as V,xt as W,x as X,Lt as Y,C as Z,Rt as _,E as a,Qt as a0,Ft as a1,jt as a2,Ht as a3,Ut as a4,A as a5,_t as a6,Ct as a7,qt as a8,Mt as a9,kt as aa,bt as b,d as c,Tt as d,ct as e,lt as f,c as g,mt as h,gt as i,ie as j,ne as k,re as l,ut as m,Bt as n,Xt as o,K as p,dt as q,v as r,ft as s,w as t,pt as u,ee as v,te as w,Pt as x,Yt as y,zt as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as a,a as t,c as e}from"./gestures-3gw5VgUS.js";import"./index-BI9AljSD.js";import"./use-reduced-motion-8WuxLa5l.js";const r={renderer:e,...t,...a};export{r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c}from"./createLucideIcon-
|
|
1
|
+
import{c}from"./createLucideIcon-DthwWQIg.js";const e=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],t=c("copy",e);export{t as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h}from"./createLucideIcon-
|
|
1
|
+
import{c as h}from"./createLucideIcon-DthwWQIg.js";const t=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],d=h("cpu",t);export{d as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s}from"./index-
|
|
1
|
+
import{r as s}from"./index-BI9AljSD.js";const l=(...t)=>t.filter((e,r,o)=>!!e&&e.trim()!==""&&o.indexOf(e)===r).join(" ").trim();const C=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const f=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,o)=>o?o.toUpperCase():r.toLowerCase());const i=t=>{const e=f(t);return e.charAt(0).toUpperCase()+e.slice(1)};var w={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const h=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};const g=s.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:n="",children:a,iconNode:u,...c},p)=>s.createElement("svg",{ref:p,...w,width:e,height:e,stroke:t,strokeWidth:o?Number(r)*24/Number(e):r,className:l("lucide",n),...!a&&!h(c)&&{"aria-hidden":"true"},...c},[...u.map(([m,d])=>s.createElement(m,d)),...Array.isArray(a)?a:[a]]));const b=(t,e)=>{const r=s.forwardRef(({className:o,...n},a)=>s.createElement(g,{ref:a,iconNode:e,className:l(`lucide-${C(i(t))}`,`lucide-${t}`,o),...n}));return r.displayName=i(t),r};export{b as c};
|