@openscout/scout 0.2.86 → 0.2.87

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.
Files changed (327) hide show
  1. package/bin/scoutd +0 -0
  2. package/dist/build-manifest.json +3 -3
  3. package/dist/client/assets/{ActivityScreen-C7AwUogt.js → ActivityScreen-DRHTQIxu.js} +1 -1
  4. package/dist/client/assets/{AddProjectForm-BNRpRPod.js → AddProjectForm-Dw2oyCcz.js} +1 -1
  5. package/dist/client/assets/AgentAvatar-CQqJcwOQ.js +1 -0
  6. package/dist/client/assets/AgentAvatar-CUZZARWG.css +1 -0
  7. package/dist/client/assets/{AgentConfigurationScreen-BoBQpyz5.js → AgentConfigurationScreen-C3OI6JmZ.js} +1 -1
  8. package/dist/client/assets/{AgentDefinitionsWorkspace-rw3vh8Lm.js → AgentDefinitionsWorkspace-D0LDEqfl.js} +1 -1
  9. package/dist/client/assets/{AgentDetailCard-FelCxQrT.js → AgentDetailCard-2DZQahiN.js} +1 -1
  10. package/dist/client/assets/{AgentFloorView-Crdw8Uo5.js → AgentFloorView-CoGh2q5f.js} +1 -1
  11. package/dist/client/assets/{AgentInfoScreen-Cge7HHbV.js → AgentInfoScreen-5ybfIL9p.js} +1 -1
  12. package/dist/client/assets/{AgentLaneCard-CRDG74C1.js → AgentLaneCard-CeSjWWwh.js} +1 -1
  13. package/dist/client/assets/{AgentLaneChrome-CWFqUdch.js → AgentLaneChrome-Do7CXwin.js} +1 -1
  14. package/dist/client/assets/{AgentLaneDetailSheet-DCIIg3Zp.js → AgentLaneDetailSheet-BD8B51ka.js} +1 -1
  15. package/dist/client/assets/{AgentLaneSummaryResize-yTM4GQAJ.js → AgentLaneSummaryResize--lHgnncr.js} +1 -1
  16. package/dist/client/assets/AgentLanesEmbedScreen-FRTVASPw.js +1 -0
  17. package/dist/client/assets/{AgentLanesPreflight-DJeDRTAN.js → AgentLanesPreflight-BwkGk8JH.js} +1 -1
  18. package/dist/client/assets/{AgentLanesView-CbY9qD0z.js → AgentLanesView-Bm85ittm.js} +1 -1
  19. package/dist/client/assets/{AgentLiveActions-Bn3zeZBN.js → AgentLiveActions-BmXDRxER.js} +1 -1
  20. package/dist/client/assets/{AgentSessions-czl5zT7A.js → AgentSessions-C_tAfGN2.js} +1 -1
  21. package/dist/client/assets/{AgentsConsole-CoT2crwq.js → AgentsConsole-DsHWsaOJ.js} +1 -1
  22. package/dist/client/assets/{AgentsScreen-BcPM-z1T.js → AgentsScreen-Bod6AHlA.js} +1 -1
  23. package/dist/client/assets/AgentsSubnav-CsvYzzQ-.js +1 -0
  24. package/dist/client/assets/{AstronautSuit-BADl7m8x.js → AstronautSuit-C05Ezxl9.js} +1 -1
  25. package/dist/client/assets/{AtopView-DymBCiXv.js → AtopView-DOKJbiJL.js} +1 -1
  26. package/dist/client/assets/{BackToPicker-CqYhOaLB.js → BackToPicker-CXsbxbHM.js} +1 -1
  27. package/dist/client/assets/{BriefingDetailScreen-DDfZ8ci1.js → BriefingDetailScreen-Uvnk3t0v.js} +1 -1
  28. package/dist/client/assets/{BriefingsScreen-CLvSOJjy.js → BriefingsScreen-DLIJ8eYj.js} +1 -1
  29. package/dist/client/assets/{BrokerMetadataPanel-DFAH-NO6.js → BrokerMetadataPanel-C8WERmHF.js} +1 -1
  30. package/dist/client/assets/{BrokerScreen-Bkvu92jk.js → BrokerScreen-LZ3T7hGG.js} +1 -1
  31. package/dist/client/assets/{Canvas-KyTsDJlB.js → Canvas-BO9mx5_P.js} +1 -1
  32. package/dist/client/assets/{ChatCollapsedStrip-Bjjqa30K.js → ChatCollapsedStrip-CtLPTLTY.js} +1 -1
  33. package/dist/client/assets/{CodeDiffPane-C9HT1dCT.js → CodeDiffPane-CtgqIuS0.js} +1 -1
  34. package/dist/client/assets/{CodeProjectPicker-5Y3GvXkM.js → CodeProjectPicker-C4W_udc7.js} +1 -1
  35. package/dist/client/assets/{CodeScreen-DpN9kQvm.js → CodeScreen-WhTvVUKY.js} +1 -1
  36. package/dist/client/assets/{ConversationComposer-Ce7Byw48.js → ConversationComposer-DPWu3HvK.js} +1 -1
  37. package/dist/client/assets/{ConversationFeedRows-DygDfQn_.js → ConversationFeedRows-MhcPfxUr.js} +1 -1
  38. package/dist/client/assets/{ConversationHeader-C3sg0ULI.js → ConversationHeader-Ce7TENb9.js} +1 -1
  39. package/dist/client/assets/{ConversationPanels-Dg4Y2GgX.js → ConversationPanels-D-b5SLO-.js} +2 -2
  40. package/dist/client/assets/ConversationScreen-C5HnXd5w.css +1 -0
  41. package/dist/client/assets/{ConversationScreen-CjWWmuuh.js → ConversationScreen-D77SoLos.js} +1 -1
  42. package/dist/client/assets/{ConversationStatus-BhVIYQza.js → ConversationStatus-lIvSKRic.js} +1 -1
  43. package/dist/client/assets/CrewWorkspaces-CJhBKVoZ.css +1 -0
  44. package/dist/client/assets/CrewWorkspaces-CdojnRMG.js +1 -0
  45. package/dist/client/assets/{DataTable-oJP339bX.js → DataTable-DFacT2uu.js} +1 -1
  46. package/dist/client/assets/{DispatchAftermath-CH02HAVw.js → DispatchAftermath-D797PbCe.js} +1 -1
  47. package/dist/client/assets/{DocumentFocusViewer-DmtFisY9.js → DocumentFocusViewer-CetjnYut.js} +1 -1
  48. package/dist/client/assets/{EmbeddableSurfacesLab-84b9I3fy.js → EmbeddableSurfacesLab-JczLmmF-.js} +1 -1
  49. package/dist/client/assets/{EmptyState-BnDda92b.js → EmptyState-uQbB-bvP.js} +1 -1
  50. package/dist/client/assets/{FileViewerPane-Dg7_88pv.js → FileViewerPane-ebbCtnHE.js} +1 -1
  51. package/dist/client/assets/{FlightObserveScreen-DL3Xhl0h.js → FlightObserveScreen-sqvt7HUO.js} +1 -1
  52. package/dist/client/assets/{FollowScreen-DcFBqr6l.js → FollowScreen-Bfu2_KtU.js} +1 -1
  53. package/dist/client/assets/{HarnessMark-DGZ6o6Ct.js → HarnessMark-CEzmPFHC.js} +1 -1
  54. package/dist/client/assets/{HarnessesScreen-DTDL-XaA.js → HarnessesScreen-CGhRsqD5.js} +1 -1
  55. package/dist/client/assets/{HerdrSession-DV2hD6Yh.js → HerdrSession-BDLa_rrK.js} +1 -1
  56. package/dist/client/assets/{HomeHero-CENwVZ45.js → HomeHero-DdxTQ-6a.js} +1 -1
  57. package/dist/client/assets/{HostAdvisorView-PgiZUkd_.js → HostAdvisorView-BAUi5ZxX.js} +1 -1
  58. package/dist/client/assets/{KnowledgeSearchInspector-DNQjeWZO.js → KnowledgeSearchInspector-GjmxYBi_.js} +1 -1
  59. package/dist/client/assets/{KnowledgeSearchScreen-Bj80IgR0.js → KnowledgeSearchScreen-CRei9pyl.js} +1 -1
  60. package/dist/client/assets/{LaneToolHoverCard-197xYmRp.js → LaneToolHoverCard-DCY-m0JK.js} +1 -1
  61. package/dist/client/assets/{LaneTraceDetailSheet-BztwvOv9.js → LaneTraceDetailSheet-CFsCvKa3.js} +1 -1
  62. package/dist/client/assets/{LaneTraceEventFocus-C9cmqxnK.js → LaneTraceEventFocus-BfKZ7G5c.js} +1 -1
  63. package/dist/client/assets/{MeshCanvas-C3_2p9B6.js → MeshCanvas-CZYHLTvw.js} +1 -1
  64. package/dist/client/assets/{MeshCanvasMinimap-ZTjYWXTZ.js → MeshCanvasMinimap-D3mJ78CM.js} +1 -1
  65. package/dist/client/assets/{MeshScreen-lJKaOyGB.js → MeshScreen-dxNxRtKm.js} +1 -1
  66. package/dist/client/assets/{MeshTopologyView-CBjHbAZw.js → MeshTopologyView-A-wh0Ad1.js} +2 -2
  67. package/dist/client/assets/{MessagesScreen-D6MVLvdg.js → MessagesScreen-CR5v-WIE.js} +1 -1
  68. package/dist/client/assets/{MissionContextRail-DXkrbcnZ.js → MissionContextRail-MTL2EAnr.js} +1 -1
  69. package/dist/client/assets/{MissionControlView-BCH-Zsp4.js → MissionControlView-BGj1qnI2.js} +1 -1
  70. package/dist/client/assets/{MissionFocusOverlay-DbAliOSF.js → MissionFocusOverlay-hWi6y87j.js} +1 -1
  71. package/dist/client/assets/{MissionLeftAgentRow-Bx6Pg8_O.js → MissionLeftAgentRow-BSRRiiig.js} +1 -1
  72. package/dist/client/assets/{MissionLogPane-D06c29Y8.js → MissionLogPane-bbG_pM9B.js} +1 -1
  73. package/dist/client/assets/{NewAgentModal-C18Ajovd.js → NewAgentModal-Ctixol4_.js} +1 -1
  74. package/dist/client/assets/{NewChatComposer-Bgqes0UQ.js → NewChatComposer-BPsg8shF.js} +1 -1
  75. package/dist/client/assets/{NewChatOrigin-DpHS2Wmt.js → NewChatOrigin-CCiPg_WR.js} +1 -1
  76. package/dist/client/assets/{ObserveEmbedScreen-Cmhwai4X.js → ObserveEmbedScreen-Be87Chod.js} +1 -1
  77. package/dist/client/assets/{ObserveTextFlow-C1f5oize.js → ObserveTextFlow-CKYltTPJ.js} +2 -2
  78. package/dist/client/assets/{ObservedTopologyPanel-D85P6RAk.js → ObservedTopologyPanel-CfHYu-4Z.js} +1 -1
  79. package/dist/client/assets/{OpenScoutAppShell-IDI4fuUE.js → OpenScoutAppShell-DPeP1vtK.js} +2 -2
  80. package/dist/client/assets/{OpsAgentsView-yt0JavoB.js → OpsAgentsView-dEtw9yt-.js} +1 -1
  81. package/dist/client/assets/OpsScreen-QXRJY8Vf.js +1 -0
  82. package/dist/client/assets/OpsSubnav-BK9Fj3gU.js +1 -0
  83. package/dist/client/assets/ProjectAgentProfile-BjykZ2Xd.js +1 -0
  84. package/dist/client/assets/{ProjectAgentProfileBar-IDEpKZvI.js → ProjectAgentProfileBar-B4RqrI0Q.js} +1 -1
  85. package/dist/client/assets/{ProjectAgentProfileHero-Bh_aISs-.js → ProjectAgentProfileHero-Bc0g8rhW.js} +1 -1
  86. package/dist/client/assets/{ProjectsInbox-B8Srlklk.js → ProjectsInbox--ZIqo-IE.js} +1 -1
  87. package/dist/client/assets/{ProjectsRail-DqAbdvCf.js → ProjectsRail-CzS0qTCI.js} +1 -1
  88. package/dist/client/assets/ProjectsScreen-0gx7f30h.js +1 -0
  89. package/dist/client/assets/{ProjectsThreadAside-DpkjYLL2.js → ProjectsThreadAside-BsQRFbdy.js} +1 -1
  90. package/dist/client/assets/{Provider-Ve8yXaWR.js → Provider-Cd-QZltN.js} +1 -1
  91. package/dist/client/assets/{RailRow-C4GNGR80.js → RailRow-BY6fxePa.js} +1 -1
  92. package/dist/client/assets/{RawSessionsTable-Co3vzwsf.js → RawSessionsTable-CbopOF34.js} +1 -1
  93. package/dist/client/assets/{RealtimeVoiceScreen-DMd1CBAf.js → RealtimeVoiceScreen-CU4uXz4C.js} +1 -1
  94. package/dist/client/assets/{RepoDiffEmbedScreen-C97Euf4s.js → RepoDiffEmbedScreen-Cr1SL5ht.js} +1 -1
  95. package/dist/client/assets/{RepoDiffPageScreen-DUKLzkrW.js → RepoDiffPageScreen-DeC8fsh_.js} +1 -1
  96. package/dist/client/assets/{RepoDiffViewer-CovKjSgb.js → RepoDiffViewer-CiTOWK_Z.js} +1 -1
  97. package/dist/client/assets/{RepoDiffViewerLazy-zIiEmh-e.js → RepoDiffViewerLazy-BU3V7Kwq.js} +2 -2
  98. package/dist/client/assets/{ReposScreen-BR1LqTf1.js → ReposScreen-BQwIShXf.js} +1 -1
  99. package/dist/client/assets/{ScoutDeckSurface-BGsVicc2.js → ScoutDeckSurface-BncYKicb.js} +1 -1
  100. package/dist/client/assets/{ScoutSurface-BMKW7hSu.js → ScoutSurface-DdVzN3DA.js} +1 -1
  101. package/dist/client/assets/{ScoutbotFxLab-0O2iDRrF.js → ScoutbotFxLab-sLjfSKtS.js} +1 -1
  102. package/dist/client/assets/{SecondaryNav-cYTw2p39.js → SecondaryNav-CCQqTT3e.js} +1 -1
  103. package/dist/client/assets/{SessionEmbedScreen-mNjT0R6j.js → SessionEmbedScreen-BrLMZJ3N.js} +1 -1
  104. package/dist/client/assets/{SessionObserve-zAlFbwFn.js → SessionObserve-pbozyqVv.js} +1 -1
  105. package/dist/client/assets/{SessionObserveEvidence-BVawzqoE.js → SessionObserveEvidence-C54Xvbps.js} +1 -1
  106. package/dist/client/assets/{SessionRefScreen-BmKhf29o.js → SessionRefScreen-UVNVrwAf.js} +1 -1
  107. package/dist/client/assets/SessionsScreen-KeDb5gz4.js +1 -0
  108. package/dist/client/assets/SettingsDrawer-CWdj0VvN.js +3 -0
  109. package/dist/client/assets/SettingsDrawer-J-8x1eII.css +1 -0
  110. package/dist/client/assets/SettingsScreen-C7zJgZzj.js +1 -0
  111. package/dist/client/assets/{ShikiPane-DyEJdcvb.js → ShikiPane-CiVH-45m.js} +1 -1
  112. package/dist/client/assets/{SlidePanel-Dg8_styW.js → SlidePanel-BLrLF9dt.js} +1 -1
  113. package/dist/client/assets/{SpriteAvatar-DMrSssNZ.js → SpriteAvatar-vpHO-rXs.js} +1 -1
  114. package/dist/client/assets/{StatusPill-NFFnphtx.js → StatusPill-a3XBw1GG.js} +1 -1
  115. package/dist/client/assets/{TailView-BfObcZu3.js → TailView-C3rjOV7i.js} +1 -1
  116. package/dist/client/assets/{Terminal-Dr-M9U4u.js → Terminal-CMQFmHnn.js} +1 -1
  117. package/dist/client/assets/{TerminalEmbedScreen-BmyZkonh.js → TerminalEmbedScreen-GvpoGERN.js} +1 -1
  118. package/dist/client/assets/{TerminalRelay-lJ2KdMCW.js → TerminalRelay-CIHlLVf1.js} +3 -3
  119. package/dist/client/assets/{TextDocumentSurface-C7fGlzY8.js → TextDocumentSurface-B29xZNlI.js} +1 -1
  120. package/dist/client/assets/{TmuxPeek-BSeKIjnX.js → TmuxPeek-eVfqPB4m.js} +1 -1
  121. package/dist/client/assets/{VoicePermissionsPanel-BkIGTzgw.js → VoicePermissionsPanel-DpInOlVq.js} +1 -1
  122. package/dist/client/assets/{WorkDetailScreen-Cwe-KWK4.js → WorkDetailScreen-DYwgGaJs.js} +1 -1
  123. package/dist/client/assets/{WorkFilesViewer-BBtKRBPv.js → WorkFilesViewer-C7H5fXaZ.js} +1 -1
  124. package/dist/client/assets/{activity-D4W2XZY2.js → activity-DTqqWiyV.js} +1 -1
  125. package/dist/client/assets/{addon-fit-Celjj2yn.js → addon-fit-CcaylYTX.js} +1 -1
  126. package/dist/client/assets/{addon-webgl-Cu4tJ21-.js → addon-webgl-B37iuzOG.js} +1 -1
  127. package/dist/client/assets/{agent-autocomplete-Dv-_9dAw.js → agent-autocomplete-cOPLtuhM.js} +1 -1
  128. package/dist/client/assets/{agent-essentials-CngjUhQj.js → agent-essentials-DbbJm3ne.js} +1 -1
  129. package/dist/client/assets/{agent-identity-DzHGhLdJ.js → agent-identity-CIMT7oV6.js} +1 -1
  130. package/dist/client/assets/{agent-specialization-CNrsRbKA.js → agent-specialization-D3-sqwhU.js} +1 -1
  131. package/dist/client/assets/{arc.es-DNT50Y-_.js → arc.es-BRPqOKIx.js} +1 -1
  132. package/dist/client/assets/{archive-DH49QqFG.js → archive-DPMdoW_D.js} +1 -1
  133. package/dist/client/assets/{arrow-left-i-h6JAgs.js → arrow-left-B0CdJdAC.js} +1 -1
  134. package/dist/client/assets/{arrow-right-B0Yi01Zr.js → arrow-right-YRBoTTyf.js} +1 -1
  135. package/dist/client/assets/{arrow-up-right-RBC6k8nn.js → arrow-up-right-CilNLf4t.js} +1 -1
  136. package/dist/client/assets/{bot-r2IuAuJd.js → bot-Ba3gcRVa.js} +1 -1
  137. package/dist/client/assets/{check-Bfs7hMb1.js → check-BdovFDz8.js} +1 -1
  138. package/dist/client/assets/{chevron-down-Da5tV19_.js → chevron-down-Jh540uf3.js} +1 -1
  139. package/dist/client/assets/{chevron-right-BMqtBds_.js → chevron-right-CV7sEVBS.js} +1 -1
  140. package/dist/client/assets/{chunk-HRAB3GC3-BUVYXXAp.js → chunk-HRAB3GC3-BYQZ1LOn.js} +1 -1
  141. package/dist/client/assets/{clock-DaKLp6Xd.js → clock-DpfYdWcr.js} +1 -1
  142. package/dist/client/assets/{code-xml-ByQsfOI_.js → code-xml-CPzpZkhu.js} +1 -1
  143. package/dist/client/assets/{compass-BepM5iWH.js → compass-D5Io6BIV.js} +1 -1
  144. package/dist/client/assets/{content-Bgl_X3ao.js → content-3b_jmxEx.js} +1 -1
  145. package/dist/client/assets/content-B-i0XY-t.js +1 -0
  146. package/dist/client/assets/content-BD-DNFmb.js +1 -0
  147. package/dist/client/assets/content-BGeo5tgd.js +1 -0
  148. package/dist/client/assets/content-BMvXPLiQ.js +1 -0
  149. package/dist/client/assets/content-BWTbfMDg.js +1 -0
  150. package/dist/client/assets/content-BwCmeUmF.js +1 -0
  151. package/dist/client/assets/content-C1K3NcZa.js +1 -0
  152. package/dist/client/assets/{content-Cv2tSAbv.js → content-C34J5_Af.js} +1 -1
  153. package/dist/client/assets/content-CGRtIS2m.js +1 -0
  154. package/dist/client/assets/content-CIJo_-JS.js +1 -0
  155. package/dist/client/assets/content-CvqIqVAV.js +1 -0
  156. package/dist/client/assets/content-DRnwm-Vu.js +1 -0
  157. package/dist/client/assets/{content-5hnDC9WE.js → content-Dh39SSvP.js} +1 -1
  158. package/dist/client/assets/content-DoypqDj5.js +1 -0
  159. package/dist/client/assets/content-n3mvc6NQ.js +1 -0
  160. package/dist/client/assets/{conversation-icons-C4amK8Sa.js → conversation-icons-bHIIZ9z3.js} +1 -1
  161. package/dist/client/assets/{conversation-model-CigSPlKA.js → conversation-model-CIzM7aXT.js} +1 -1
  162. package/dist/client/assets/conversation-motion-features-CrP5K-dk.js +1 -0
  163. package/dist/client/assets/{copy-De4s38o2.js → copy-DQAM0eSY.js} +1 -1
  164. package/dist/client/assets/{cpu-Bc268H9Q.js → cpu-CtQc0Z9D.js} +1 -1
  165. package/dist/client/assets/{createLucideIcon-DLlxGjKt.js → createLucideIcon-Da0lq809.js} +1 -1
  166. package/dist/client/assets/discover-DdkMhTAV.js +2 -0
  167. package/dist/client/assets/embed-entry-DoSM1GZB.js +2 -0
  168. package/dist/client/assets/{external-link-BGHC_naA.js → external-link-BheHazeW.js} +1 -1
  169. package/dist/client/assets/{eye-BeCSqJn1.js → eye-B908WSFH.js} +1 -1
  170. package/dist/client/assets/{file-code-corner-CX53Cd9y.js → file-code-corner-C5Pc6znt.js} +1 -1
  171. package/dist/client/assets/{file-text-BVhkMWyC.js → file-text-BGVkHS4_.js} +1 -1
  172. package/dist/client/assets/{gauge-CPcEPmNt.js → gauge-sc_gb5Zw.js} +1 -1
  173. package/dist/client/assets/{gestures-BXIGYk_p.js → gestures-AzPBSf20.js} +1 -1
  174. package/dist/client/assets/{git-branch-q8Ayc8py.js → git-branch-CdJU49Af.js} +1 -1
  175. package/dist/client/assets/{home-moving-signal-Dm2Z2x0p.js → home-moving-signal-CZo2bYBi.js} +1 -1
  176. package/dist/client/assets/{home-now-card-xU5LGP7q.js → home-now-card-DgxfZHcR.js} +1 -1
  177. package/dist/client/assets/{home-now-card-nano-Djhy6ax0.js → home-now-card-nano-iwd10r9G.js} +1 -1
  178. package/dist/client/assets/{hooks-CdKx1CxP.js → hooks-CeCCO6Yg.js} +1 -1
  179. package/dist/client/assets/{index-DhfOMK0D.js → index-BIiI9gfa.js} +1 -1
  180. package/dist/client/assets/index-CD2foMB8.js +1 -0
  181. package/dist/client/assets/{index-D7UEHxaY.js → index-DReHD_4U.js} +1 -1
  182. package/dist/client/assets/{index-Bli6bTLU.js → index-NRbRrZw-.js} +6 -6
  183. package/dist/client/assets/{inspector-panel-B8pigRsg.js → inspector-panel-CBf8pW7s.js} +1 -1
  184. package/dist/client/assets/{keyboard-nav-7iEtvu9P.js → keyboard-nav-feLCB3Zm.js} +1 -1
  185. package/dist/client/assets/{lane-roster-store-pHT3TAVs.js → lane-roster-store-BAmj273z.js} +1 -1
  186. package/dist/client/assets/{layers-BiZA-Clc.js → layers-D9fblkql.js} +1 -1
  187. package/dist/client/assets/{layout-grid-DMpv9CZM.js → layout-grid-Vd1chalc.js} +1 -1
  188. package/dist/client/assets/left-41_3QKk1.js +1 -0
  189. package/dist/client/assets/{left-Dy403II2.js → left-B3ofA1Pr.js} +2 -2
  190. package/dist/client/assets/{left-BhgU6NOA.js → left-BWBZQhxQ.js} +1 -1
  191. package/dist/client/assets/{left-CY_FGnN7.js → left-BhA6essi.js} +1 -1
  192. package/dist/client/assets/{left-Cq8mjamr.js → left-BmTKCv4f.js} +1 -1
  193. package/dist/client/assets/{left-Dnqla0b5.js → left-CCGR6tIF.js} +1 -1
  194. package/dist/client/assets/{left-BhZhSrS2.js → left-Dfwzkwh_.js} +1 -1
  195. package/dist/client/assets/{left-advisor-oOAtJ9YE.js → left-advisor-yrzW1Kwz.js} +1 -1
  196. package/dist/client/assets/{left-agents-TIKe8vW8.js → left-agents-Bgahk0FF.js} +1 -1
  197. package/dist/client/assets/{left-default-owH0Lwxo.js → left-default-CtkfAquc.js} +1 -1
  198. package/dist/client/assets/{left-lanes-BE_co2lP.js → left-lanes-CpujaVN3.js} +1 -1
  199. package/dist/client/assets/{left-mission-C_nWUtfA.js → left-mission-Bbd-fW6W.js} +1 -1
  200. package/dist/client/assets/{library-BSVrjn_m.js → library-Dx14WNGd.js} +1 -1
  201. package/dist/client/assets/{loader-circle-DoT8gpw6.js → loader-circle-Be0T8xv2.js} +1 -1
  202. package/dist/client/assets/{local-agents-BMadXuP1.js → local-agents-Q6KQ12B9.js} +1 -1
  203. package/dist/client/assets/{mentions-Cd6XticV.js → mentions-KNASbAjG.js} +1 -1
  204. package/dist/client/assets/{mesh-ops-C0zCLTR8.js → mesh-ops-C-i8OMiM.js} +1 -1
  205. package/dist/client/assets/{mesh-view-store-Cpqil_2D.js → mesh-view-store-B0lqpw8M.js} +1 -1
  206. package/dist/client/assets/{message-circle-44KSmbvQ.js → message-circle-2v9Udia0.js} +1 -1
  207. package/dist/client/assets/{message-markup-DAnnGpWr.js → message-markup-BP2nH9kQ.js} +1 -1
  208. package/dist/client/assets/{message-square-DlY4EneU.js → message-square-DURSOrUr.js} +1 -1
  209. package/dist/client/assets/{mission-control-store-DtjtRs9Z.js → mission-control-store-HeCy97KT.js} +1 -1
  210. package/dist/client/assets/{observe-DL5_8-Zj.js → observe-DkAhvkfn.js} +1 -1
  211. package/dist/client/assets/{page-status-CW8co39E.js → page-status-CEP5pGf3.js} +1 -1
  212. package/dist/client/assets/{persistent-state-DYjP8lqN.js → persistent-state-Bm_0TmZL.js} +1 -1
  213. package/dist/client/assets/{plus-64n9qucr.js → plus-ZReaTFF-.js} +1 -1
  214. package/dist/client/assets/{profile-BkmuseW7.js → profile-Y0X7HZHc.js} +1 -1
  215. package/dist/client/assets/{projects-inbox-C0umZMSY.js → projects-inbox-Cbfj4Hx7.js} +1 -1
  216. package/dist/client/assets/{provider-CX9EWecp.js → provider-Bq0ScH3v.js} +1 -1
  217. package/dist/client/assets/{proxy-C35W-YHZ.js → proxy-DtC2iXnT.js} +1 -1
  218. package/dist/client/assets/{radio-BjpQTKT0.js → radio-BC9TO5Pl.js} +1 -1
  219. package/dist/client/assets/{refresh-cw-IgN2fZLM.js → refresh-cw-C4E58VJK.js} +1 -1
  220. package/dist/client/assets/resolve-panes-BI3WdDS-.js +1 -0
  221. package/dist/client/assets/resolve-sidebar-context-_g0pIxOr.js +1 -0
  222. package/dist/client/assets/{right-B3PQUHd5.js → right-BA0F8fPI.js} +1 -1
  223. package/dist/client/assets/{right-B96CBzrV.js → right-BarpRgcv.js} +1 -1
  224. package/dist/client/assets/{right-BPirlFC8.js → right-C4GXB45w.js} +1 -1
  225. package/dist/client/assets/{right-DqiVyo8v.js → right-CIzaNH58.js} +1 -1
  226. package/dist/client/assets/{right-C2aOC2li.js → right-CXetlD8X.js} +1 -1
  227. package/dist/client/assets/{right-CtPJjgOV.js → right-CnRcQS_I.js} +1 -1
  228. package/dist/client/assets/{right-BVWYPIFX.js → right-D2_rmbAH.js} +1 -1
  229. package/dist/client/assets/{right-SfSu0zHC.js → right-Dqp--KwX.js} +1 -1
  230. package/dist/client/assets/{right-BUP2Ro_M.js → right-HJJzRuGD.js} +1 -1
  231. package/dist/client/assets/{right-BoAJxwA3.js → right-WCMb8YXJ.js} +1 -1
  232. package/dist/client/assets/{rocket-DnmN_YOD.js → rocket-BahfIwFz.js} +1 -1
  233. package/dist/client/assets/{router-B0YclXYg.js → router-Bx1tiwVe.js} +1 -1
  234. package/dist/client/assets/{scope-views-Z8aoAmtU.js → scope-views-CmG2X_S0.js} +1 -1
  235. package/dist/client/assets/{scout-voice-DvG_3stJ.js → scout-voice-BT3gYDhU.js} +1 -1
  236. package/dist/client/assets/{scoutbot-markdown-BJJyaPu2.js → scoutbot-markdown-DIhLsYxz.js} +1 -1
  237. package/dist/client/assets/{scroll-text-DRidbcse.js → scroll-text-uulNqrf7.js} +1 -1
  238. package/dist/client/assets/{search-BbgsEMXa.js → search-HmdKXdtR.js} +1 -1
  239. package/dist/client/assets/{secondaryNavConfig-DyC_P9Wx.js → secondaryNavConfig-BVQiyAXu.js} +1 -1
  240. package/dist/client/assets/{selection-bridge-CpzFGx3-.js → selection-bridge-n4wNTm1B.js} +1 -1
  241. package/dist/client/assets/{send-horizontal-BXo2uz3Z.js → send-horizontal-DOjHkZCD.js} +1 -1
  242. package/dist/client/assets/{server-Dt3tpiBj.js → server-CX-xQjJA.js} +1 -1
  243. package/dist/client/assets/{session-catalog-CUQ8LUJY.js → session-catalog-b7B1Sof1.js} +1 -1
  244. package/dist/client/assets/{session-table-B4JOKevn.js → session-table-Djain1Qr.js} +1 -1
  245. package/dist/client/assets/{settings-BzWCF3NF.js → settings-BpKRzxOD.js} +1 -1
  246. package/dist/client/assets/{sliders-horizontal-7V8B3xsf.js → sliders-horizontal-D2O6QiDN.js} +1 -1
  247. package/dist/client/assets/{sparkles-ytTwpCbZ.js → sparkles-CgTby-ap.js} +1 -1
  248. package/dist/client/assets/{sse-CSozY6mp.js → sse-QSbhyq9A.js} +1 -1
  249. package/dist/client/assets/{tail-events-CrN-Rmxj.js → tail-events-B7BrDaFi.js} +1 -1
  250. package/dist/client/assets/{terminal-BiNIXhna.js → terminal-DNZTCr6a.js} +1 -1
  251. package/dist/client/assets/{terminal-relay-pSm7_An6.js → terminal-relay-C2TUIuh1.js} +1 -1
  252. package/dist/client/assets/{terminal-takeover-CtA3wcXh.js → terminal-takeover-BArLfNtd.js} +1 -1
  253. package/dist/client/assets/{text-BR9Bap0E.js → text-B2UZi3l9.js} +1 -1
  254. package/dist/client/assets/{use-conversation-list-C0bEXFeH.js → use-conversation-list-htp0Ui63.js} +1 -1
  255. package/dist/client/assets/{use-fleet-active-asks-CK4aw-3G.js → use-fleet-active-asks-BhuTn5mV.js} +1 -1
  256. package/dist/client/assets/{use-mesh-ops-items-QixBijmT.js → use-mesh-ops-items-CD-qsvNX.js} +1 -1
  257. package/dist/client/assets/{use-reduced-motion-BLn59zLn.js → use-reduced-motion-0fAsybdo.js} +1 -1
  258. package/dist/client/assets/{use-scout-dev-flags-JKb1EhFh.js → use-scout-dev-flags-DV_I6URU.js} +1 -1
  259. package/dist/client/assets/{useAgentHoverCard-6N8b7qsU.js → useAgentHoverCard-BIrm8esH.js} +1 -1
  260. package/dist/client/assets/useContentSecondaryNav-4atpGgFw.js +1 -0
  261. package/dist/client/assets/{usePersistentState-DOEahRlt.js → usePersistentState-InmPXIN4.js} +1 -1
  262. package/dist/client/assets/{usePierreRuntime-Bq6mXrgd.js → usePierreRuntime-CVTMzChM.js} +1 -1
  263. package/dist/client/assets/{wrench-CQvdf7KT.js → wrench-DwFKomxg.js} +1 -1
  264. package/dist/client/assets/{x-BJyPzFnn.js → x-DuzAbpk5.js} +1 -1
  265. package/dist/client/assets/{xterm-D6dE_wMr.js → xterm-xQGYNyB-.js} +1 -1
  266. package/dist/client/assets/{zap-rw7uwZht.js → zap-CocRNtyr.js} +1 -1
  267. package/dist/client/crew/brik-bust.webp +0 -0
  268. package/dist/client/crew/brik-chip-id.webp +0 -0
  269. package/dist/client/crew/lulu-bust.webp +0 -0
  270. package/dist/client/crew/milo-bust.webp +0 -0
  271. package/dist/client/crew/milo-chip-id.webp +0 -0
  272. package/dist/client/crew/nori-bust.webp +0 -0
  273. package/dist/client/crew/sheets/eye-plate-v1/blink-half.webp +0 -0
  274. package/dist/client/crew/sheets/eye-plate-v1/blink-shut.webp +0 -0
  275. package/dist/client/crew/sheets/eye-plate-v1/look-left.webp +0 -0
  276. package/dist/client/crew/sheets/eye-plate-v1/look-right.webp +0 -0
  277. package/dist/client/crew/sheets/eye-plate-v1/look-up.webp +0 -0
  278. package/dist/client/crew/sheets/eye-plate-v1/rest.webp +0 -0
  279. package/dist/client/crew/sheets/sprout/blink-half.webp +0 -0
  280. package/dist/client/crew/sheets/sprout/blink-shut.webp +0 -0
  281. package/dist/client/crew/sheets/sprout/look-left.webp +0 -0
  282. package/dist/client/crew/sheets/sprout/look-right.webp +0 -0
  283. package/dist/client/crew/sheets/sprout/look-up.webp +0 -0
  284. package/dist/client/crew/sprout-bust.webp +0 -0
  285. package/dist/client/crew/sprout-chip-id.webp +0 -0
  286. package/dist/client/crew/vex-bust.webp +0 -0
  287. package/dist/client/crew/vex-chip-id.webp +0 -0
  288. package/dist/client/crew/wrench-bust.webp +0 -0
  289. package/dist/client/crew/wrench-chip-id.webp +0 -0
  290. package/dist/client/index.html +1 -1
  291. package/dist/main.mjs +1 -1
  292. package/package.json +1 -1
  293. package/dist/client/assets/AgentAvatar-B1xvQ7ej.js +0 -1
  294. package/dist/client/assets/AgentLanesEmbedScreen-BJLwXSNp.js +0 -1
  295. package/dist/client/assets/AgentsSubnav-3_vpn2bT.js +0 -1
  296. package/dist/client/assets/ConversationScreen-BP5tdz2k.css +0 -1
  297. package/dist/client/assets/CrewWorkspaces-B6YIyw1z.css +0 -1
  298. package/dist/client/assets/CrewWorkspaces-CDU-wy1Y.js +0 -1
  299. package/dist/client/assets/OpsScreen-C3yNQqJE.js +0 -1
  300. package/dist/client/assets/OpsSubnav-BijKI3yG.js +0 -1
  301. package/dist/client/assets/ProjectAgentProfile-DnIeC16r.js +0 -1
  302. package/dist/client/assets/ProjectsScreen-DKHQ2iEv.js +0 -1
  303. package/dist/client/assets/SessionsScreen-CsSqjIY2.js +0 -1
  304. package/dist/client/assets/SettingsDrawer-Dsj-On_x.css +0 -1
  305. package/dist/client/assets/SettingsDrawer-DwYQTGi8.js +0 -3
  306. package/dist/client/assets/SettingsScreen-Btaku7YM.js +0 -1
  307. package/dist/client/assets/content-BRFZ-a6m.js +0 -1
  308. package/dist/client/assets/content-BYykncDo.js +0 -1
  309. package/dist/client/assets/content-Be6yyWbJ.js +0 -1
  310. package/dist/client/assets/content-BopJW1Zx.js +0 -1
  311. package/dist/client/assets/content-Bv2sfg0w.js +0 -1
  312. package/dist/client/assets/content-CMBiIZTg.js +0 -1
  313. package/dist/client/assets/content-CPVqvf5o.js +0 -1
  314. package/dist/client/assets/content-CbwyFqdI.js +0 -1
  315. package/dist/client/assets/content-ClQjAWYi.js +0 -1
  316. package/dist/client/assets/content-DFFe3-Ot.js +0 -1
  317. package/dist/client/assets/content-DY5hwBmm.js +0 -1
  318. package/dist/client/assets/content-_IXoxGno.js +0 -1
  319. package/dist/client/assets/content-j_tewJdE.js +0 -1
  320. package/dist/client/assets/conversation-motion-features-_95aZx_1.js +0 -1
  321. package/dist/client/assets/discover-DOlk1hG7.js +0 -2
  322. package/dist/client/assets/embed-entry-BqDJfa87.js +0 -2
  323. package/dist/client/assets/index-DFdlQs_c.js +0 -1
  324. package/dist/client/assets/left-BayK4ocL.js +0 -1
  325. package/dist/client/assets/resolve-panes-CCqRkQdM.js +0 -1
  326. package/dist/client/assets/resolve-sidebar-context-JkxY8qsV.js +0 -1
  327. package/dist/client/assets/useContentSecondaryNav-D-hVKzM9.js +0 -1
@@ -1 +1 @@
1
- import{r as _,j as t}from"./index-Bli6bTLU.js";import{A as ee}from"./AgentAvatar-B1xvQ7ej.js";import{H as te}from"./HarnessMark-DGZ6o6Ct.js";import{a as se}from"./colors-BtO5_zlx.js";import{f as ne}from"./text-BR9Bap0E.js";import{n as x}from"./time-Dhsh_2EG.js";import{l as re,h as ae,b as ie,d as G}from"./home-live-action-BkqGLVRY.js";import{a as oe}from"./agent-lane-card-model-CSugZCdy.js";import{HomeNowNanoStat as A,HomeNowFilesPanel as le}from"./home-now-card-nano-Djhy6ax0.js";import"./Provider-Ve8yXaWR.js";import"./provider-CX9EWecp.js";import"./router-B0YclXYg.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-D4dHTRkt.js";import"./api-DEHEgJ9m.js";import"./sse-CSozY6mp.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-D4vuKzOL.js";import"./DocumentFocusViewer-DmtFisY9.js";import"./createLucideIcon-DLlxGjKt.js";import"./TextDocumentSurface-C7fGlzY8.js";import"./file-text-BVhkMWyC.js";import"./x-BJyPzFnn.js";import"./chevron-right-BMqtBds_.js";import"./code-xml-ByQsfOI_.js";import"./arrow-left-i-h6JAgs.js";import"./arrow-right-B0Yi01Zr.js";import"./scout-voice-DvG_3stJ.js";import"./fx-z37u1o2z.js";import"./keyboard-nav-7iEtvu9P.js";import"./NewChatComposer-Bgqes0UQ.js";import"./conversation-model-CigSPlKA.js";import"./index-DFdlQs_c.js";import"./NewChatOrigin-DpHS2Wmt.js";import"./chevron-down-Da5tV19_.js";import"./search-BbgsEMXa.js";import"./loader-circle-DoT8gpw6.js";import"./chunk-HRAB3GC3-BUVYXXAp.js";import"./SpriteAvatar-DMrSssNZ.js";import"./agent-identity-DzHGhLdJ.js";import"./voice-levels-Dcr3jglk.js";import"./context-budget-DX_fwUs3.js";import"./lane-observe-vfyACHi0.js";import"./tail-display-DcliDVkW.js";import"./lane-edit-display-C_Aujldz.js";import"./bash-format-BRV5C6Gv.js";import"./agent-lane-preview-BhplDYGf.js";import"./lane-ask-display-B6iCAVcd.js";import"./agent-lanes-model-BKOs_32K.js";function ce(e,s,r,n){const a={id:e.id,agent:e,source:e.id.startsWith("native:")?"native":"scout",observe:s??null,lastActiveAt:n};return oe(a,{isLive:r,nowMs:n})}function de(e){return e.stats.tools>0||e.stats.files>0||e.context!==null||e.pops.edits.rows.length>0||e.pops.files.rows.length>0}function ue(e,s=140){const r=(e??"").replace(/\s+/g," ").trim();return r?r.length>s?`${r.slice(0,s-1)}…`:r:""}function me(e,s=118){if(e.length<=s)return e;const r=Math.ceil((s-1)*.58),n=Math.floor((s-1)*.42);return`${e.slice(0,r).trimEnd()}…${e.slice(e.length-n).trimStart()}`}function Q(e){return e?e.startsWith("/Users/")?`~/${e.split("/").slice(3).join("/")}`:(e.startsWith("~/"),e):null}function pe(e){const s=e?.trim();if(!s)return null;const r=s.endsWith(".jsonl")?s.slice(0,-6):s,n=r.split(/[/:]/u).filter(Boolean).pop()??r;return/^[0-9a-f]{8}-[0-9a-f]{4}-/iu.test(n)?`${n.slice(0,8)}…${n.slice(-6)}`:me(n,22)}function he(e){const s=e?.trim();return s?s.replace(/^claude-/iu,"").replace(/^gpt-/iu,"gpt ").replace(/\s*\([^)]*\)\s*/u," ").replace(/\s+/g," ").trim():null}function fe(e){const s=e?.trim();return s?s.replace(/\.local$/iu,"").replace(/-local$/iu,""):null}function W(e,s){const r=x(e);if(r===null)return"—";const n=Math.max(0,Math.floor((s-r)/1e3));if(n<60)return`${n}s`;const a=Math.floor(n/60);if(a<60)return`${a}m`;const d=Math.floor(a/60);return d<48?`${d}h`:`${Math.floor(d/24)}d`}function xe(e,s){const r=e?.summary?.trim();if(!r)return null;const n=r.replace(/\s+/g," ");return!n||n===s||/acknowledged via|queued for local execution|received the message/i.test(n)?null:{line:ue(n,120)}}function we(e,s,r=!1){const n=x(s?.startedAt)??x(s?.acknowledgedAt)??x(s?.updatedAt)??null,a=x(e.updatedAt),d=s?.task?.trim()||e.project||Q(e.cwd)||`Working in ${e.project??"workspace"}`,c=s?.status??"working",u=se(e.state)||r,m=c==="queued"?"queued":u?"working":"idle";return{agentId:e.id,agentName:e.name,harness:s?.harness??e.harness,model:e.model,branch:e.branch??"main",task:{title:d,openedAt:n},execution:{state:m,lastEventAt:a},checkpoint:xe(s,d)}}function je(e){return e.execution.state==="queued"?"queued":e.execution.state==="idle"?"idle":"live"}function ke(e,s){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),s())}function B(e){e.stopPropagation()}function be(e){switch(e){case"spotlight":return 40;case"duo":return 32;case"strip":return 28;case"dense":return 24}}function Ne(e){switch(e){case"spotlight":return 22;case"duo":return 20;case"strip":return 18;case"dense":return 16}}function ve(e,s){return s?e==="spotlight"||e==="duo":!1}function ge(e){switch(e){case"spotlight":return{w:96,h:20};case"duo":return{w:88,h:20};case"strip":return{w:72,h:18};case"dense":return{w:64,h:16}}}function ye(e,s){if(e.length<=s)return e;const r=new Array(s).fill(0);for(let n=0;n<e.length;n+=1){const a=Math.min(s-1,Math.floor(n/e.length*s));r[a]+=e[n]}return r}function z({pulse:e,layout:s}){const{w:r,h:n}=ge(s),a=ye(e.counts,Math.max(5,Math.round(r/8))),d=a.length>0?Math.max(...a):0;if(d<=0||a.length<2)return null;const c=2,u=r/a.length,m=Math.max(1.5,u-c),N=2,v=n-1,l=a.length-1;return t.jsx("span",{className:"s-now-card-pulse",style:{width:r,height:n},title:"activity · last 30m","aria-hidden":"true",children:t.jsx("svg",{viewBox:`0 0 ${r} ${n}`,preserveAspectRatio:"none",children:a.map((i,j)=>{if(i<=0)return null;const g=Math.min(v,Math.max(N,i/d*v)),k=j*u+(u-m)/2;return t.jsx("rect",{x:k.toFixed(2),y:(n-g).toFixed(2),width:m.toFixed(2),height:g.toFixed(2),fill:"var(--accent)",fillOpacity:j===l?"0.95":"0.62"},j)})})})}function vt({agent:e,ask:s,context:r,observeData:n,observeLive:a=!1,lastActivityAt:d,layout:c,nowMs:u,navigate:m,enter:N=!1,enterIndex:v=0}){const l=we(e,s,a),i=_.useMemo(()=>ce(e,n,a,u),[e,n,a,u]),j=de(i),g=ve(c,j),k=je(l),H=e.projectRoot??e.cwd??void 0,R=Q(H)??"no workspace",M=l.branch??"no branch",b=i.harness??l.harness??null,y=i.model??he(r?.model??l.model),q=pe(r?.sessionId??e.harnessSessionId),h=i.context??r?.contextPct??null,I=fe(e.homeNodeName??e.nodeQualifier),D=x(n?.metadata?.session?.sessionStart),K=D!==null?W(D,u):null,p=n?.pulse??null,L=!!(p&&p.counts.some(o=>o>0)),U=l.task.openedAt?W(l.task.openedAt,u):"new",P=x(d)??l.execution.lastEventAt,S=W(P,u),E=re({observeData:n,checkpoint:l.checkpoint?.line??null,fallbackTask:l.task.title,observeLive:a,skipLifecycleTokens:!0}),J=ae(e),X=ie(e),w=c==="dense",T=c==="strip",Y=i.pops.edits.rows.length>0?i.pops.edits:i.pops.files,Z=i.pops.edits.rows.length>0?"Files modified":"Files touched",O=[{key:"root",text:R,title:H,mono:!0},{key:"branch",text:M,title:M,mono:!0}];e.role&&O.push({key:"role",text:ne(e.role)??e.role});const f=[{key:"last",label:"last activity",value:S,inlineValue:`last ${S}`,title:P!==null?`Last activity ${S} ago`:"Last activity unknown",tone:P!==null?"work":"dim"},{key:"turn",label:"turn",value:U,tone:l.task.openedAt?"work":"dim"}];h!==null&&f.push({key:"context",label:"context",value:`${h}%`,tone:h>=80?"warn":"work"}),K&&f.push({key:"uptime",label:"uptime",value:K,tone:"work"}),q&&!w&&f.push({key:"session",label:"session",value:q}),I&&!w&&f.push({key:"machine",label:"machine",value:I});const V=G(e,"observe"),$=o=>F=>{B(F),m(G(e,o))};return t.jsxs("article",{className:`s-now-card s-now-card--${k} s-now-card--layout-${c}${N?" s-now-card--enter":""}`,style:N?{"--enter-delay":`${v*45}ms`}:void 0,onClick:()=>m(V),onKeyDown:o=>ke(o,()=>m(V)),role:"button",tabIndex:0,children:[t.jsxs("div",{className:"s-now-card-top",children:[t.jsx(ee,{agent:e,placement:"row",size:be(c),className:"s-now-card-avatar"}),t.jsxs("div",{className:"s-now-card-ident",children:[t.jsx("span",{className:"s-now-card-name",title:l.agentName,children:l.agentName}),!w&&!T?t.jsxs("span",{className:`s-now-card-live s-now-card-live--${k}`,children:[t.jsx("span",{className:"s-now-card-live-dot","aria-hidden":"true"}),k]}):null]}),b||y?t.jsxs("div",{className:"s-now-card-runtime",title:y??b??void 0,children:[b?t.jsx(te,{harness:b,size:Ne(c),className:"s-now-card-hmark"}):null,y?t.jsx("span",{className:"s-now-card-model",children:y}):null]}):null]}),w?t.jsx("div",{className:"s-now-card-idline s-now-card-idline--dense",children:[b,R,M].filter(Boolean).join(" · ")}):t.jsx("div",{className:"s-now-card-idline",children:O.map((o,F)=>t.jsxs("span",{className:"s-now-card-idgroup",children:[F>0?t.jsx("span",{className:"s-now-card-idsep","aria-hidden":"true",children:"·"}):null,t.jsx("span",{className:`s-now-card-idpart${o.mono?" s-now-card-idpart--mono":""}`,title:o.title,children:o.text})]},o.key))}),E?t.jsxs("div",{className:`s-now-card-action${a?" s-now-card-action--live":""}`,children:[t.jsx("span",{className:"s-now-card-action-caret","aria-hidden":"true",children:"›"}),t.jsx("span",{className:"s-now-card-action-text",title:E,children:E}),a?t.jsx("span",{className:"s-now-card-action-cursor","aria-hidden":"true"}):null]}):null,w&&L&&p?t.jsx("div",{className:"s-now-card-pulse-cell",children:t.jsx(z,{pulse:p,layout:c})}):null,g?t.jsxs("div",{className:"s-now-card-detail",onClick:B,children:[t.jsxs("div",{className:"s-now-card-nanos",children:[i.stats.tools>0?t.jsxs(t.Fragment,{children:[t.jsx(A,{value:i.stats.tools,label:"tools",group:i.pops.tools}),i.stats.edits>0?t.jsx(A,{value:i.stats.edits,label:"edits",group:i.pops.edits}):null,i.stats.reads>0?t.jsx(A,{value:i.stats.reads,label:"reads",group:i.pops.reads}):null,i.stats.files>0?t.jsx(A,{value:i.stats.files,label:"files",group:i.pops.files}):null]}):t.jsx("span",{className:"s-now-card-nanos-empty",children:"no tool activity yet"}),L&&p?t.jsx(z,{pulse:p,layout:c}):null,h!==null?t.jsxs("span",{className:"s-now-card-ctx",title:`Context window ${h}% used`,children:[t.jsx("span",{className:"s-now-card-ctx-gauge","aria-hidden":"true",children:t.jsx("span",{className:"s-now-card-ctx-fill",style:{width:`${h}%`}})}),t.jsxs("span",{className:"s-now-card-ctx-val",children:[h,"%"]}),t.jsx("span",{className:"s-now-card-ctx-label",children:"ctx"})]}):null]}),t.jsx(le,{label:Z,group:Y})]}):null,!w&&!T?t.jsx("div",{className:"s-now-card-metrics",style:{gridTemplateColumns:`repeat(${f.length}, minmax(0, 1fr))`},"aria-label":`${l.agentName} signals`,children:f.map(o=>t.jsx($e,{label:o.label,value:o.value,tone:o.tone,title:o.title},o.key))}):t.jsxs("div",{className:"s-now-card-metrics s-now-card-metrics--inline","aria-label":`${l.agentName} signals`,children:[T&&L&&p?t.jsx(z,{pulse:p,layout:c}):null,f.map(o=>t.jsx("span",{className:`s-now-card-metric-inline s-now-card-metric-inline--${o.tone??"dim"}`,title:o.title,children:o.inlineValue??o.value},o.key))]}),t.jsxs("div",{className:"s-now-card-actions",onClick:B,children:[t.jsx(C,{label:"Profile",onClick:$("profile")}),t.jsx(C,{label:"Observe",onClick:$("observe"),primary:!0}),t.jsx(C,{label:"Terminal",onClick:$("terminal"),disabled:!X}),t.jsx(C,{label:"Peek",onClick:$("peek"),disabled:!J})]})]})}function C({label:e,onClick:s,primary:r=!1,disabled:n=!1}){return t.jsx("button",{type:"button",className:`s-now-card-action-btn${r?" s-now-card-action-btn--primary":""}`,onClick:s,disabled:n,"aria-label":e,children:e})}function $e({label:e,value:s,tone:r="dim",title:n}){return t.jsxs("span",{className:`s-metric-tile s-metric-tile--${r}`,title:n,children:[t.jsx("strong",{children:s}),t.jsx("span",{children:e})]})}export{vt as NowCard};
1
+ import{r as _,j as t}from"./index-NRbRrZw-.js";import{A as ee}from"./AgentAvatar-CQqJcwOQ.js";import{H as te}from"./HarnessMark-CEzmPFHC.js";import{a as se}from"./colors-BtO5_zlx.js";import{f as ne}from"./text-B2UZi3l9.js";import{n as x}from"./time-Dhsh_2EG.js";import{l as re,h as ae,b as ie,d as G}from"./home-live-action-BkqGLVRY.js";import{a as oe}from"./agent-lane-card-model-CSugZCdy.js";import{HomeNowNanoStat as A,HomeNowFilesPanel as le}from"./home-now-card-nano-iwd10r9G.js";import"./Provider-Cd-QZltN.js";import"./provider-Bq0ScH3v.js";import"./router-Bx1tiwVe.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-D4dHTRkt.js";import"./api-DEHEgJ9m.js";import"./sse-QSbhyq9A.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-D4vuKzOL.js";import"./DocumentFocusViewer-CetjnYut.js";import"./createLucideIcon-Da0lq809.js";import"./TextDocumentSurface-B29xZNlI.js";import"./file-text-BGVkHS4_.js";import"./x-DuzAbpk5.js";import"./chevron-right-CV7sEVBS.js";import"./code-xml-CPzpZkhu.js";import"./arrow-left-B0CdJdAC.js";import"./arrow-right-YRBoTTyf.js";import"./scout-voice-BT3gYDhU.js";import"./fx-z37u1o2z.js";import"./keyboard-nav-feLCB3Zm.js";import"./NewChatComposer-BPsg8shF.js";import"./conversation-model-CIzM7aXT.js";import"./index-CD2foMB8.js";import"./NewChatOrigin-CCiPg_WR.js";import"./chevron-down-Jh540uf3.js";import"./search-HmdKXdtR.js";import"./loader-circle-Be0T8xv2.js";import"./chunk-HRAB3GC3-BYQZ1LOn.js";import"./SpriteAvatar-vpHO-rXs.js";import"./agent-identity-CIMT7oV6.js";import"./voice-levels-Dcr3jglk.js";import"./context-budget-DX_fwUs3.js";import"./lane-observe-vfyACHi0.js";import"./tail-display-DcliDVkW.js";import"./lane-edit-display-C_Aujldz.js";import"./bash-format-BRV5C6Gv.js";import"./agent-lane-preview-BhplDYGf.js";import"./lane-ask-display-B6iCAVcd.js";import"./agent-lanes-model-BKOs_32K.js";function ce(e,s,r,n){const a={id:e.id,agent:e,source:e.id.startsWith("native:")?"native":"scout",observe:s??null,lastActiveAt:n};return oe(a,{isLive:r,nowMs:n})}function de(e){return e.stats.tools>0||e.stats.files>0||e.context!==null||e.pops.edits.rows.length>0||e.pops.files.rows.length>0}function ue(e,s=140){const r=(e??"").replace(/\s+/g," ").trim();return r?r.length>s?`${r.slice(0,s-1)}…`:r:""}function me(e,s=118){if(e.length<=s)return e;const r=Math.ceil((s-1)*.58),n=Math.floor((s-1)*.42);return`${e.slice(0,r).trimEnd()}…${e.slice(e.length-n).trimStart()}`}function Q(e){return e?e.startsWith("/Users/")?`~/${e.split("/").slice(3).join("/")}`:(e.startsWith("~/"),e):null}function pe(e){const s=e?.trim();if(!s)return null;const r=s.endsWith(".jsonl")?s.slice(0,-6):s,n=r.split(/[/:]/u).filter(Boolean).pop()??r;return/^[0-9a-f]{8}-[0-9a-f]{4}-/iu.test(n)?`${n.slice(0,8)}…${n.slice(-6)}`:me(n,22)}function he(e){const s=e?.trim();return s?s.replace(/^claude-/iu,"").replace(/^gpt-/iu,"gpt ").replace(/\s*\([^)]*\)\s*/u," ").replace(/\s+/g," ").trim():null}function fe(e){const s=e?.trim();return s?s.replace(/\.local$/iu,"").replace(/-local$/iu,""):null}function W(e,s){const r=x(e);if(r===null)return"—";const n=Math.max(0,Math.floor((s-r)/1e3));if(n<60)return`${n}s`;const a=Math.floor(n/60);if(a<60)return`${a}m`;const d=Math.floor(a/60);return d<48?`${d}h`:`${Math.floor(d/24)}d`}function xe(e,s){const r=e?.summary?.trim();if(!r)return null;const n=r.replace(/\s+/g," ");return!n||n===s||/acknowledged via|queued for local execution|received the message/i.test(n)?null:{line:ue(n,120)}}function we(e,s,r=!1){const n=x(s?.startedAt)??x(s?.acknowledgedAt)??x(s?.updatedAt)??null,a=x(e.updatedAt),d=s?.task?.trim()||e.project||Q(e.cwd)||`Working in ${e.project??"workspace"}`,c=s?.status??"working",u=se(e.state)||r,m=c==="queued"?"queued":u?"working":"idle";return{agentId:e.id,agentName:e.name,harness:s?.harness??e.harness,model:e.model,branch:e.branch??"main",task:{title:d,openedAt:n},execution:{state:m,lastEventAt:a},checkpoint:xe(s,d)}}function je(e){return e.execution.state==="queued"?"queued":e.execution.state==="idle"?"idle":"live"}function ke(e,s){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),s())}function B(e){e.stopPropagation()}function be(e){switch(e){case"spotlight":return 40;case"duo":return 32;case"strip":return 28;case"dense":return 24}}function Ne(e){switch(e){case"spotlight":return 22;case"duo":return 20;case"strip":return 18;case"dense":return 16}}function ve(e,s){return s?e==="spotlight"||e==="duo":!1}function ge(e){switch(e){case"spotlight":return{w:96,h:20};case"duo":return{w:88,h:20};case"strip":return{w:72,h:18};case"dense":return{w:64,h:16}}}function ye(e,s){if(e.length<=s)return e;const r=new Array(s).fill(0);for(let n=0;n<e.length;n+=1){const a=Math.min(s-1,Math.floor(n/e.length*s));r[a]+=e[n]}return r}function z({pulse:e,layout:s}){const{w:r,h:n}=ge(s),a=ye(e.counts,Math.max(5,Math.round(r/8))),d=a.length>0?Math.max(...a):0;if(d<=0||a.length<2)return null;const c=2,u=r/a.length,m=Math.max(1.5,u-c),N=2,v=n-1,l=a.length-1;return t.jsx("span",{className:"s-now-card-pulse",style:{width:r,height:n},title:"activity · last 30m","aria-hidden":"true",children:t.jsx("svg",{viewBox:`0 0 ${r} ${n}`,preserveAspectRatio:"none",children:a.map((i,j)=>{if(i<=0)return null;const g=Math.min(v,Math.max(N,i/d*v)),k=j*u+(u-m)/2;return t.jsx("rect",{x:k.toFixed(2),y:(n-g).toFixed(2),width:m.toFixed(2),height:g.toFixed(2),fill:"var(--accent)",fillOpacity:j===l?"0.95":"0.62"},j)})})})}function vt({agent:e,ask:s,context:r,observeData:n,observeLive:a=!1,lastActivityAt:d,layout:c,nowMs:u,navigate:m,enter:N=!1,enterIndex:v=0}){const l=we(e,s,a),i=_.useMemo(()=>ce(e,n,a,u),[e,n,a,u]),j=de(i),g=ve(c,j),k=je(l),H=e.projectRoot??e.cwd??void 0,R=Q(H)??"no workspace",M=l.branch??"no branch",b=i.harness??l.harness??null,y=i.model??he(r?.model??l.model),q=pe(r?.sessionId??e.harnessSessionId),h=i.context??r?.contextPct??null,I=fe(e.homeNodeName??e.nodeQualifier),D=x(n?.metadata?.session?.sessionStart),K=D!==null?W(D,u):null,p=n?.pulse??null,L=!!(p&&p.counts.some(o=>o>0)),U=l.task.openedAt?W(l.task.openedAt,u):"new",P=x(d)??l.execution.lastEventAt,S=W(P,u),E=re({observeData:n,checkpoint:l.checkpoint?.line??null,fallbackTask:l.task.title,observeLive:a,skipLifecycleTokens:!0}),J=ae(e),X=ie(e),w=c==="dense",T=c==="strip",Y=i.pops.edits.rows.length>0?i.pops.edits:i.pops.files,Z=i.pops.edits.rows.length>0?"Files modified":"Files touched",O=[{key:"root",text:R,title:H,mono:!0},{key:"branch",text:M,title:M,mono:!0}];e.role&&O.push({key:"role",text:ne(e.role)??e.role});const f=[{key:"last",label:"last activity",value:S,inlineValue:`last ${S}`,title:P!==null?`Last activity ${S} ago`:"Last activity unknown",tone:P!==null?"work":"dim"},{key:"turn",label:"turn",value:U,tone:l.task.openedAt?"work":"dim"}];h!==null&&f.push({key:"context",label:"context",value:`${h}%`,tone:h>=80?"warn":"work"}),K&&f.push({key:"uptime",label:"uptime",value:K,tone:"work"}),q&&!w&&f.push({key:"session",label:"session",value:q}),I&&!w&&f.push({key:"machine",label:"machine",value:I});const V=G(e,"observe"),$=o=>F=>{B(F),m(G(e,o))};return t.jsxs("article",{className:`s-now-card s-now-card--${k} s-now-card--layout-${c}${N?" s-now-card--enter":""}`,style:N?{"--enter-delay":`${v*45}ms`}:void 0,onClick:()=>m(V),onKeyDown:o=>ke(o,()=>m(V)),role:"button",tabIndex:0,children:[t.jsxs("div",{className:"s-now-card-top",children:[t.jsx(ee,{agent:e,placement:"row",size:be(c),className:"s-now-card-avatar"}),t.jsxs("div",{className:"s-now-card-ident",children:[t.jsx("span",{className:"s-now-card-name",title:l.agentName,children:l.agentName}),!w&&!T?t.jsxs("span",{className:`s-now-card-live s-now-card-live--${k}`,children:[t.jsx("span",{className:"s-now-card-live-dot","aria-hidden":"true"}),k]}):null]}),b||y?t.jsxs("div",{className:"s-now-card-runtime",title:y??b??void 0,children:[b?t.jsx(te,{harness:b,size:Ne(c),className:"s-now-card-hmark"}):null,y?t.jsx("span",{className:"s-now-card-model",children:y}):null]}):null]}),w?t.jsx("div",{className:"s-now-card-idline s-now-card-idline--dense",children:[b,R,M].filter(Boolean).join(" · ")}):t.jsx("div",{className:"s-now-card-idline",children:O.map((o,F)=>t.jsxs("span",{className:"s-now-card-idgroup",children:[F>0?t.jsx("span",{className:"s-now-card-idsep","aria-hidden":"true",children:"·"}):null,t.jsx("span",{className:`s-now-card-idpart${o.mono?" s-now-card-idpart--mono":""}`,title:o.title,children:o.text})]},o.key))}),E?t.jsxs("div",{className:`s-now-card-action${a?" s-now-card-action--live":""}`,children:[t.jsx("span",{className:"s-now-card-action-caret","aria-hidden":"true",children:"›"}),t.jsx("span",{className:"s-now-card-action-text",title:E,children:E}),a?t.jsx("span",{className:"s-now-card-action-cursor","aria-hidden":"true"}):null]}):null,w&&L&&p?t.jsx("div",{className:"s-now-card-pulse-cell",children:t.jsx(z,{pulse:p,layout:c})}):null,g?t.jsxs("div",{className:"s-now-card-detail",onClick:B,children:[t.jsxs("div",{className:"s-now-card-nanos",children:[i.stats.tools>0?t.jsxs(t.Fragment,{children:[t.jsx(A,{value:i.stats.tools,label:"tools",group:i.pops.tools}),i.stats.edits>0?t.jsx(A,{value:i.stats.edits,label:"edits",group:i.pops.edits}):null,i.stats.reads>0?t.jsx(A,{value:i.stats.reads,label:"reads",group:i.pops.reads}):null,i.stats.files>0?t.jsx(A,{value:i.stats.files,label:"files",group:i.pops.files}):null]}):t.jsx("span",{className:"s-now-card-nanos-empty",children:"no tool activity yet"}),L&&p?t.jsx(z,{pulse:p,layout:c}):null,h!==null?t.jsxs("span",{className:"s-now-card-ctx",title:`Context window ${h}% used`,children:[t.jsx("span",{className:"s-now-card-ctx-gauge","aria-hidden":"true",children:t.jsx("span",{className:"s-now-card-ctx-fill",style:{width:`${h}%`}})}),t.jsxs("span",{className:"s-now-card-ctx-val",children:[h,"%"]}),t.jsx("span",{className:"s-now-card-ctx-label",children:"ctx"})]}):null]}),t.jsx(le,{label:Z,group:Y})]}):null,!w&&!T?t.jsx("div",{className:"s-now-card-metrics",style:{gridTemplateColumns:`repeat(${f.length}, minmax(0, 1fr))`},"aria-label":`${l.agentName} signals`,children:f.map(o=>t.jsx($e,{label:o.label,value:o.value,tone:o.tone,title:o.title},o.key))}):t.jsxs("div",{className:"s-now-card-metrics s-now-card-metrics--inline","aria-label":`${l.agentName} signals`,children:[T&&L&&p?t.jsx(z,{pulse:p,layout:c}):null,f.map(o=>t.jsx("span",{className:`s-now-card-metric-inline s-now-card-metric-inline--${o.tone??"dim"}`,title:o.title,children:o.inlineValue??o.value},o.key))]}),t.jsxs("div",{className:"s-now-card-actions",onClick:B,children:[t.jsx(C,{label:"Profile",onClick:$("profile")}),t.jsx(C,{label:"Observe",onClick:$("observe"),primary:!0}),t.jsx(C,{label:"Terminal",onClick:$("terminal"),disabled:!X}),t.jsx(C,{label:"Peek",onClick:$("peek"),disabled:!J})]})]})}function C({label:e,onClick:s,primary:r=!1,disabled:n=!1}){return t.jsx("button",{type:"button",className:`s-now-card-action-btn${r?" s-now-card-action-btn--primary":""}`,onClick:s,disabled:n,"aria-label":e,children:e})}function $e({label:e,value:s,tone:r="dim",title:n}){return t.jsxs("span",{className:`s-metric-tile s-metric-tile--${r}`,title:n,children:[t.jsx("strong",{children:s}),t.jsx("span",{children:e})]})}export{vt as NowCard};
@@ -1 +1 @@
1
- import{j as s}from"./index-Bli6bTLU.js";function d({value:l,label:a,group:n}){const c=!!(n&&n.rows.length>0);return s.jsxs("span",{className:`s-now-card-nano${c?" s-now-card-nano--pop":""}`,children:[s.jsx("span",{className:"s-now-card-nano-val",children:l}),s.jsx("span",{className:"s-now-card-nano-label",children:a}),c?s.jsxs("span",{className:"s-now-card-nano-pop",role:"tooltip",children:[s.jsxs("span",{className:"s-now-card-nano-pop-h",children:[s.jsx("span",{className:"s-now-card-nano-pop-title",children:a}),s.jsx("span",{className:"s-now-card-nano-pop-count",children:n.more>0?`top ${n.rows.length} · ${l}`:l})]}),s.jsxs("span",{className:"s-now-card-nano-pop-list",children:[n.rows.map((e,o)=>s.jsxs("span",{className:"s-now-card-nano-pop-row",title:e.full??e.text,children:[s.jsx("span",{className:`s-now-card-nano-mark s-now-card-nano-mark--${e.tone}`,children:e.mark}),s.jsx("span",{className:"s-now-card-nano-pop-text",children:e.text})]},`${o}:${e.full||e.text}`)),n.more>0?s.jsxs("span",{className:"s-now-card-nano-pop-more",children:["+",n.more," more"]}):null]})]}):null]})}function t({label:l,group:a}){return a.rows.length===0?null:s.jsxs("div",{className:"s-now-card-files","aria-label":l,children:[s.jsxs("div",{className:"s-now-card-files-head",children:[s.jsx("span",{className:"s-now-card-files-title",children:l}),s.jsx("span",{className:"s-now-card-files-count",children:a.rows.length+a.more})]}),s.jsxs("div",{className:"s-now-card-files-list",children:[a.rows.map((n,c)=>s.jsxs("span",{className:"s-now-card-files-row",title:n.full??n.text,children:[s.jsx("span",{className:`s-now-card-nano-mark s-now-card-nano-mark--${n.tone}`,children:n.mark}),s.jsx("span",{className:"s-now-card-files-text",children:n.text})]},`${c}:${n.full||n.text}`)),a.more>0?s.jsxs("span",{className:"s-now-card-files-row s-now-card-files-row--more",children:["+",a.more," more"]}):null]})]})}export{t as HomeNowFilesPanel,d as HomeNowNanoStat};
1
+ import{j as s}from"./index-NRbRrZw-.js";function d({value:l,label:a,group:n}){const c=!!(n&&n.rows.length>0);return s.jsxs("span",{className:`s-now-card-nano${c?" s-now-card-nano--pop":""}`,children:[s.jsx("span",{className:"s-now-card-nano-val",children:l}),s.jsx("span",{className:"s-now-card-nano-label",children:a}),c?s.jsxs("span",{className:"s-now-card-nano-pop",role:"tooltip",children:[s.jsxs("span",{className:"s-now-card-nano-pop-h",children:[s.jsx("span",{className:"s-now-card-nano-pop-title",children:a}),s.jsx("span",{className:"s-now-card-nano-pop-count",children:n.more>0?`top ${n.rows.length} · ${l}`:l})]}),s.jsxs("span",{className:"s-now-card-nano-pop-list",children:[n.rows.map((e,o)=>s.jsxs("span",{className:"s-now-card-nano-pop-row",title:e.full??e.text,children:[s.jsx("span",{className:`s-now-card-nano-mark s-now-card-nano-mark--${e.tone}`,children:e.mark}),s.jsx("span",{className:"s-now-card-nano-pop-text",children:e.text})]},`${o}:${e.full||e.text}`)),n.more>0?s.jsxs("span",{className:"s-now-card-nano-pop-more",children:["+",n.more," more"]}):null]})]}):null]})}function t({label:l,group:a}){return a.rows.length===0?null:s.jsxs("div",{className:"s-now-card-files","aria-label":l,children:[s.jsxs("div",{className:"s-now-card-files-head",children:[s.jsx("span",{className:"s-now-card-files-title",children:l}),s.jsx("span",{className:"s-now-card-files-count",children:a.rows.length+a.more})]}),s.jsxs("div",{className:"s-now-card-files-list",children:[a.rows.map((n,c)=>s.jsxs("span",{className:"s-now-card-files-row",title:n.full??n.text,children:[s.jsx("span",{className:`s-now-card-nano-mark s-now-card-nano-mark--${n.tone}`,children:n.mark}),s.jsx("span",{className:"s-now-card-files-text",children:n.text})]},`${c}:${n.full||n.text}`)),a.more>0?s.jsxs("span",{className:"s-now-card-files-row s-now-card-files-row--more",children:["+",a.more," more"]}):null]})]})}export{t as HomeNowFilesPanel,d as HomeNowNanoStat};
@@ -1,2 +1,2 @@
1
- import{r as a,j as p}from"./index-Bli6bTLU.js";import{a as b}from"./provider-CX9EWecp.js";import{a as S}from"./api-DEHEgJ9m.js";import{o as k,i as O}from"./surface-activity-B1rgWB1i.js";import{h as A}from"./NewChatComposer-Bgqes0UQ.js";import{u as v}from"./Provider-Ve8yXaWR.js";import{l as L}from"./mesh-buckets-CfAukILK.js";import{d as M,aa as N,s as R,e as T}from"./router-B0YclXYg.js";import{S as _}from"./server-Dt3tpiBj.js";import{i as x}from"./keyboard-nav-7iEtvu9P.js";import{S as I}from"./scoutbot-D4vuKzOL.js";import{a as j,b as $,c as B,d as K}from"./secondaryNavConfig-DyC_P9Wx.js";import{S as W}from"./settings-BzWCF3NF.js";function D(e){return e?e.replace(/^https?:\/\//,"").split("/")[0].split(":")[0].split(".")[0]||e:""}function C(e){return D(e?.hostName)||e?.name||"machine"}function g(e,n,o,r){const t=n?.trim();!t||e.has(t)||e.set(t,{id:t,label:o?.trim()||t,group:r})}function F(e,n,o){const r=new Map;e?.localNode?.id&&g(r,e.localNode.id,C(e.localNode),"local");for(const t of Object.values(e?.nodes??{}))g(r,t.id,C(t),t.id===e?.localNode?.id?"local":"mesh");for(const t of n)g(r,t.authorityNodeId,t.authorityNodeName??t.authorityNodeId,"agent"),g(r,t.homeNodeId,t.homeNodeName??t.homeNodeId,"agent");return o&&g(r,o,o,"selected"),Array.from(r.values()).sort((t,i)=>{const l=t.group==="local"?0:t.group==="mesh"?1:t.group==="agent"?2:3,u=i.group==="local"?0:i.group==="mesh"?1:i.group==="agent"?2:3;return l!==u?l-u:t.label.localeCompare(i.label)})}function H({variant:e="bar"}){const{route:n,navigate:o,agents:r}=v(),[t,i]=a.useState(null),[l,u]=a.useState(!1),c=a.useRef(null),s=M(n);a.useEffect(()=>{if(!N(n))return;let d=!1;return S("/api/mesh").then(h=>{d||i(h)}).catch(()=>{d||i(null)}),()=>{d=!0}},[n.view]),a.useEffect(()=>{if(!l)return;const d=E=>{c.current?.contains(E.target)||u(!1)},h=E=>{E.key==="Escape"&&u(!1)};return document.addEventListener("mousedown",d),document.addEventListener("keydown",h),()=>{document.removeEventListener("mousedown",d),document.removeEventListener("keydown",h)}},[l]);const m=a.useMemo(()=>F(t,r,s),[r,t,s]);if(!N(n))return null;const f=s?m.find(d=>d.id===s)?.label??s:"All machines",y=p.jsxs("select",{id:"machine-scope-select",className:"machine-scope-select",value:s??"",onChange:d=>{const h=d.currentTarget.value;o(h?R(n,h):T(n)),u(!1)},title:f,children:[p.jsx("option",{value:"",children:"All machines"}),m.map(d=>p.jsx("option",{value:d.id,children:d.group==="local"?`${d.label} (this machine)`:d.label},d.id))]});return e==="rail"?p.jsxs("div",{className:"machine-scope machine-scope--rail",ref:c,children:[p.jsx("button",{type:"button",className:"machine-scope-rail-trigger","aria-label":`Machine scope: ${f}`,title:`Machine scope: ${f}`,"aria-expanded":l,onClick:()=>u(d=>!d),children:p.jsx(_,{size:16,strokeWidth:1.6,"aria-hidden":!0})}),l?p.jsxs("div",{className:"machine-scope-rail-popover",role:"dialog","aria-label":"Machine scope",children:[p.jsx("label",{className:"machine-scope-label",htmlFor:"machine-scope-select",children:"Scope"}),y]}):null]}):p.jsxs("div",{className:`machine-scope machine-scope--${e}`,children:[p.jsx("label",{className:"machine-scope-label",htmlFor:"machine-scope-select",children:"Scope"}),y]})}const P="C",Se=["C"],Ee=["⌘","⌥","N"],U="New task";function V(e){return e.key.toLowerCase()==="n"||e.code==="KeyN"}function Y(e){return e.key.toLowerCase()==="c"||e.code==="KeyC"}function we(e){return x(e.target??null)?!1:Y(e)&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey||V(e)&&!!(e.metaKey||e.ctrlKey)&&!!e.altKey&&!e.shiftKey}const w={inbox:"Home",conversation:"Conversation","agent-info":"Agent","agents-v2":"Crew & Workspaces",messages:"Messages",sessions:"Sessions",terminal:"Terminals",repos:"Repositories","repo-diff":"Diff",harnesses:"Agent Providers",search:"Search",activity:"Activity Log",briefings:"Briefings",mesh:"Network","mesh-ops":"Mesh Ops",broker:"Dispatch",settings:"Settings",work:"Work",follow:"Follow",code:"Code Browser",ops:"Operations",voice:"Live Voice"};function ye(e){if(e.view==="settings"&&e.section==="agents")return"Configuration";switch(e.view){case"conversation":case"agent-info":case"repos":case"repo-diff":case"harnesses":case"mesh":case"mesh-ops":case"broker":case"work":case"code":case"briefings":case"activity":case"follow":case"terminal":case"voice":return w[e.view]??e.view;case"ops":return e.mode==="tail"?"Live Activity":e.mode==="lanes"?"Agent Lanes":e.mode==="atop"?"Runtime Monitor":e.mode==="advisor"?"Host Advisor":e.mode==="mission"||e.mode==="issues"||e.mode===void 0?"Mission Control":w.ops;case"settings":return"Settings";default:return null}}const G=j(),q={...w,ops:"System"},z=new Set(["ops","broker","harnesses","mesh","mesh-ops","terminal","search","work","follow","settings","voice"]);function J(e){return e.view==="settings"&&e.section==="agents"?!1:z.has(e.view)}function Q(){return G}function X(e){if(e.view==="settings"&&e.section==="agents")return"agents";switch(e.view){case"agents-v2":case"agent-info":case"repos":case"repo-diff":case"code":return"agents";case"sessions":return"sessions";case"conversation":case"messages":return"chat";case"ops":case"broker":case"harnesses":case"mesh":case"mesh-ops":case"terminal":case"search":case"work":case"follow":case"settings":case"voice":return"system";default:return"home"}}function Z(e){if(e.view==="settings"&&e.section==="agents")return"Configuration";switch(e.view){case"conversation":case"agent-info":case"repos":case"harnesses":case"mesh":case"mesh-ops":case"broker":case"work":return q[e.view]??e.view;default:return null}}function ee({className:e="scout-nav-tabs",brandTag:n,items:o,activeKey:r,breadcrumb:t,navigate:i}){return a.createElement("div",{className:e},n&&a.createElement("span",{className:"scout-nav-scope-tag"},n),o.map(({key:l,label:u,route:c})=>a.createElement("button",{key:l,className:`scout-nav-tab${r===l?" active":""}`,onClick:()=>i(c)},u)),t&&a.createElement("span",{className:"scout-nav-slash"},"/"),t&&a.createElement("span",{className:"scout-nav-crumb"},t))}const te=$(),se=B();function ae(){const{route:e,navigate:n}=v(),o=b("ops.control",!0),r=b("surface.mesh-ops",!1),[t,i]=a.useState(!1),l=a.useRef(null);a.useEffect(()=>{if(!t)return;const c=m=>{m.target instanceof Node&&l.current?.contains(m.target)||i(!1)},s=m=>{m.key==="Escape"&&i(!1)};return window.addEventListener("mousedown",c,!0),window.addEventListener("keydown",s),()=>{window.removeEventListener("mousedown",c,!0),window.removeEventListener("keydown",s)}},[t]);const u=c=>a.createElement("button",{key:c.key,type:"button",role:"menuitem",className:`scout-nav-system-item${c.active(e)?" active":""}`,onClick:()=>{i(!1),n(c.route)}},c.label);return a.createElement("div",{className:"scout-nav-system",ref:l},a.createElement("button",{type:"button",className:`scout-nav-action scout-nav-action--system${J(e)?" active":""}`,"aria-haspopup":"menu","aria-expanded":t,title:"System",onClick:()=>i(c=>!c)},a.createElement("span",null,"System"),a.createElement("span",{className:"scout-nav-system-caret","aria-hidden":!0},"▾")),t&&a.createElement("div",{className:"scout-nav-system-menu",role:"menu"},te.map(u),o&&a.createElement("div",{className:"scout-nav-system-divider",role:"separator"}),o&&se.filter(c=>c.capability!=="surface.mesh-ops"||r).map(u)))}function Ne(){const{navigate:e,agents:n,reload:o,applyScoutbotUiAction:r,openContextCapture:t}=v(),i=b("ops.control",!0),l=b("surface.scoutbot",!0),u=a.useCallback(()=>{r({type:"open-scoutbot",mode:"ask"}),window.dispatchEvent(new CustomEvent(I,{detail:{body:"What's the state of things? Give me a terse ops summary, the biggest risk, and the next action you recommend."}}))},[r]);return a.useMemo(()=>{const c=[{id:"session:new",label:U,action:()=>t(),shortcut:P},...K(e,{opsEnabled:i}),{id:"nav:settings",label:"Open Settings",action:()=>e({view:"settings",section:"appearance"}),shortcut:"Cmd+,"},...l?[{id:"scoutbot:open",label:"Open Scout",action:()=>r({type:"open-scoutbot",mode:"ask"})},{id:"scoutbot:state",label:"Message Scout for State",action:()=>u()},{id:"scoutbot:ops-tail",label:"Scout: Open Ops Tail",action:()=>r({type:"navigate",route:{view:"ops",mode:"tail"}})}]:[],{id:"nav:pair",label:"Pair Device",action:()=>e({view:"settings",section:"devices"})},{id:"scout:reload",label:"Reload Agents",action:()=>{o()}}];for(const s of n)c.push({id:`scout:open:${s.id}`,label:`Open ${s.name}`,action:()=>e({view:"agents-v2",agentId:s.id})}),c.push({id:`scout:message:${s.id}`,label:`Message ${s.name}`,action:()=>{A(s).then(m=>{e({view:"conversation",conversationId:m})}).catch(()=>e({view:"agents-v2",agentId:s.id,tab:"message"}))}});return c},[n,r,u,e,t,i,l,o])}function ne(){const{onlineCount:e,apiConnection:n}=v(),[o,r]=a.useState(null),[t,i]=a.useState(null),l=a.useRef(0),u=a.useCallback(async()=>{const s=++l.current;try{const m=await S("/api/mesh");if(s!==l.current)return;r(m)}catch{if(s!==l.current)return;r(null)}},[]);a.useEffect(()=>{u();const s=()=>{O()&&u()},m=setInterval(s,15e3),f=k(s);return()=>{clearInterval(m),f()}},[u]),a.useEffect(()=>{let s=!1;return(async()=>{try{const m=await S("/api/build");if(s)return;if(!m.branch&&!m.commit){const f=await S("/api/build?refresh=1");s||i(f);return}i(m)}catch{s||i(null)}})(),()=>{s=!0}},[]);const c=(()=>{if(!t)return{label:"dev",title:"Build information unavailable"};const s=t.mode==="production"?"prod":"dev",m=t.branch??"unknown",f=t.commit?` @ ${t.commit}${t.dirty?"*":""}`:"";return{label:`${s} ${m}${f}`,title:[`Mode: ${t.mode}`,`Version: ${t.version??"unknown"}`,`Branch: ${t.branch??"unknown"}`,`Commit: ${t.commit??"unknown"}`,`Dirty: ${t.dirty===null?"unknown":t.dirty?"yes":"no"}`].join(`
1
+ import{r as a,j as p}from"./index-NRbRrZw-.js";import{a as b}from"./provider-Bq0ScH3v.js";import{a as S}from"./api-DEHEgJ9m.js";import{o as k,i as O}from"./surface-activity-B1rgWB1i.js";import{h as A}from"./NewChatComposer-BPsg8shF.js";import{u as v}from"./Provider-Cd-QZltN.js";import{l as L}from"./mesh-buckets-CfAukILK.js";import{d as M,aa as N,s as R,e as T}from"./router-Bx1tiwVe.js";import{S as _}from"./server-CX-xQjJA.js";import{i as x}from"./keyboard-nav-feLCB3Zm.js";import{S as I}from"./scoutbot-D4vuKzOL.js";import{a as j,b as $,c as B,d as K}from"./secondaryNavConfig-BVQiyAXu.js";import{S as W}from"./settings-BpKRzxOD.js";function D(e){return e?e.replace(/^https?:\/\//,"").split("/")[0].split(":")[0].split(".")[0]||e:""}function C(e){return D(e?.hostName)||e?.name||"machine"}function g(e,n,o,r){const t=n?.trim();!t||e.has(t)||e.set(t,{id:t,label:o?.trim()||t,group:r})}function F(e,n,o){const r=new Map;e?.localNode?.id&&g(r,e.localNode.id,C(e.localNode),"local");for(const t of Object.values(e?.nodes??{}))g(r,t.id,C(t),t.id===e?.localNode?.id?"local":"mesh");for(const t of n)g(r,t.authorityNodeId,t.authorityNodeName??t.authorityNodeId,"agent"),g(r,t.homeNodeId,t.homeNodeName??t.homeNodeId,"agent");return o&&g(r,o,o,"selected"),Array.from(r.values()).sort((t,i)=>{const l=t.group==="local"?0:t.group==="mesh"?1:t.group==="agent"?2:3,u=i.group==="local"?0:i.group==="mesh"?1:i.group==="agent"?2:3;return l!==u?l-u:t.label.localeCompare(i.label)})}function H({variant:e="bar"}){const{route:n,navigate:o,agents:r}=v(),[t,i]=a.useState(null),[l,u]=a.useState(!1),c=a.useRef(null),s=M(n);a.useEffect(()=>{if(!N(n))return;let d=!1;return S("/api/mesh").then(h=>{d||i(h)}).catch(()=>{d||i(null)}),()=>{d=!0}},[n.view]),a.useEffect(()=>{if(!l)return;const d=E=>{c.current?.contains(E.target)||u(!1)},h=E=>{E.key==="Escape"&&u(!1)};return document.addEventListener("mousedown",d),document.addEventListener("keydown",h),()=>{document.removeEventListener("mousedown",d),document.removeEventListener("keydown",h)}},[l]);const m=a.useMemo(()=>F(t,r,s),[r,t,s]);if(!N(n))return null;const f=s?m.find(d=>d.id===s)?.label??s:"All machines",y=p.jsxs("select",{id:"machine-scope-select",className:"machine-scope-select",value:s??"",onChange:d=>{const h=d.currentTarget.value;o(h?R(n,h):T(n)),u(!1)},title:f,children:[p.jsx("option",{value:"",children:"All machines"}),m.map(d=>p.jsx("option",{value:d.id,children:d.group==="local"?`${d.label} (this machine)`:d.label},d.id))]});return e==="rail"?p.jsxs("div",{className:"machine-scope machine-scope--rail",ref:c,children:[p.jsx("button",{type:"button",className:"machine-scope-rail-trigger","aria-label":`Machine scope: ${f}`,title:`Machine scope: ${f}`,"aria-expanded":l,onClick:()=>u(d=>!d),children:p.jsx(_,{size:16,strokeWidth:1.6,"aria-hidden":!0})}),l?p.jsxs("div",{className:"machine-scope-rail-popover",role:"dialog","aria-label":"Machine scope",children:[p.jsx("label",{className:"machine-scope-label",htmlFor:"machine-scope-select",children:"Scope"}),y]}):null]}):p.jsxs("div",{className:`machine-scope machine-scope--${e}`,children:[p.jsx("label",{className:"machine-scope-label",htmlFor:"machine-scope-select",children:"Scope"}),y]})}const P="C",Se=["C"],Ee=["⌘","⌥","N"],U="New task";function V(e){return e.key.toLowerCase()==="n"||e.code==="KeyN"}function Y(e){return e.key.toLowerCase()==="c"||e.code==="KeyC"}function we(e){return x(e.target??null)?!1:Y(e)&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey||V(e)&&!!(e.metaKey||e.ctrlKey)&&!!e.altKey&&!e.shiftKey}const w={inbox:"Home",conversation:"Conversation","agent-info":"Agent","agents-v2":"Crew & Workspaces",messages:"Messages",sessions:"Sessions",terminal:"Terminals",repos:"Repositories","repo-diff":"Diff",harnesses:"Agent Providers",search:"Search",activity:"Activity Log",briefings:"Briefings",mesh:"Network","mesh-ops":"Mesh Ops",broker:"Dispatch",settings:"Settings",work:"Work",follow:"Follow",code:"Code Browser",ops:"Operations",voice:"Live Voice"};function ye(e){if(e.view==="settings"&&e.section==="agents")return"Configuration";switch(e.view){case"conversation":case"agent-info":case"repos":case"repo-diff":case"harnesses":case"mesh":case"mesh-ops":case"broker":case"work":case"code":case"briefings":case"activity":case"follow":case"terminal":case"voice":return w[e.view]??e.view;case"ops":return e.mode==="tail"?"Live Activity":e.mode==="lanes"?"Agent Lanes":e.mode==="atop"?"Runtime Monitor":e.mode==="advisor"?"Host Advisor":e.mode==="mission"||e.mode==="issues"||e.mode===void 0?"Mission Control":w.ops;case"settings":return"Settings";default:return null}}const G=j(),q={...w,ops:"System"},z=new Set(["ops","broker","harnesses","mesh","mesh-ops","terminal","search","work","follow","settings","voice"]);function J(e){return e.view==="settings"&&e.section==="agents"?!1:z.has(e.view)}function Q(){return G}function X(e){if(e.view==="settings"&&e.section==="agents")return"agents";switch(e.view){case"agents-v2":case"agent-info":case"repos":case"repo-diff":case"code":return"agents";case"sessions":return"sessions";case"conversation":case"messages":return"chat";case"ops":case"broker":case"harnesses":case"mesh":case"mesh-ops":case"terminal":case"search":case"work":case"follow":case"settings":case"voice":return"system";default:return"home"}}function Z(e){if(e.view==="settings"&&e.section==="agents")return"Configuration";switch(e.view){case"conversation":case"agent-info":case"repos":case"harnesses":case"mesh":case"mesh-ops":case"broker":case"work":return q[e.view]??e.view;default:return null}}function ee({className:e="scout-nav-tabs",brandTag:n,items:o,activeKey:r,breadcrumb:t,navigate:i}){return a.createElement("div",{className:e},n&&a.createElement("span",{className:"scout-nav-scope-tag"},n),o.map(({key:l,label:u,route:c})=>a.createElement("button",{key:l,className:`scout-nav-tab${r===l?" active":""}`,onClick:()=>i(c)},u)),t&&a.createElement("span",{className:"scout-nav-slash"},"/"),t&&a.createElement("span",{className:"scout-nav-crumb"},t))}const te=$(),se=B();function ae(){const{route:e,navigate:n}=v(),o=b("ops.control",!0),r=b("surface.mesh-ops",!1),[t,i]=a.useState(!1),l=a.useRef(null);a.useEffect(()=>{if(!t)return;const c=m=>{m.target instanceof Node&&l.current?.contains(m.target)||i(!1)},s=m=>{m.key==="Escape"&&i(!1)};return window.addEventListener("mousedown",c,!0),window.addEventListener("keydown",s),()=>{window.removeEventListener("mousedown",c,!0),window.removeEventListener("keydown",s)}},[t]);const u=c=>a.createElement("button",{key:c.key,type:"button",role:"menuitem",className:`scout-nav-system-item${c.active(e)?" active":""}`,onClick:()=>{i(!1),n(c.route)}},c.label);return a.createElement("div",{className:"scout-nav-system",ref:l},a.createElement("button",{type:"button",className:`scout-nav-action scout-nav-action--system${J(e)?" active":""}`,"aria-haspopup":"menu","aria-expanded":t,title:"System",onClick:()=>i(c=>!c)},a.createElement("span",null,"System"),a.createElement("span",{className:"scout-nav-system-caret","aria-hidden":!0},"▾")),t&&a.createElement("div",{className:"scout-nav-system-menu",role:"menu"},te.map(u),o&&a.createElement("div",{className:"scout-nav-system-divider",role:"separator"}),o&&se.filter(c=>c.capability!=="surface.mesh-ops"||r).map(u)))}function Ne(){const{navigate:e,agents:n,reload:o,applyScoutbotUiAction:r,openContextCapture:t}=v(),i=b("ops.control",!0),l=b("surface.scoutbot",!0),u=a.useCallback(()=>{r({type:"open-scoutbot",mode:"ask"}),window.dispatchEvent(new CustomEvent(I,{detail:{body:"What's the state of things? Give me a terse ops summary, the biggest risk, and the next action you recommend."}}))},[r]);return a.useMemo(()=>{const c=[{id:"session:new",label:U,action:()=>t(),shortcut:P},...K(e,{opsEnabled:i}),{id:"nav:settings",label:"Open Settings",action:()=>e({view:"settings",section:"appearance"}),shortcut:"Cmd+,"},...l?[{id:"scoutbot:open",label:"Open Scout",action:()=>r({type:"open-scoutbot",mode:"ask"})},{id:"scoutbot:state",label:"Message Scout for State",action:()=>u()},{id:"scoutbot:ops-tail",label:"Scout: Open Ops Tail",action:()=>r({type:"navigate",route:{view:"ops",mode:"tail"}})}]:[],{id:"nav:pair",label:"Pair Device",action:()=>e({view:"settings",section:"devices"})},{id:"scout:reload",label:"Reload Agents",action:()=>{o()}}];for(const s of n)c.push({id:`scout:open:${s.id}`,label:`Open ${s.name}`,action:()=>e({view:"agents-v2",agentId:s.id})}),c.push({id:`scout:message:${s.id}`,label:`Message ${s.name}`,action:()=>{A(s).then(m=>{e({view:"conversation",conversationId:m})}).catch(()=>e({view:"agents-v2",agentId:s.id,tab:"message"}))}});return c},[n,r,u,e,t,i,l,o])}function ne(){const{onlineCount:e,apiConnection:n}=v(),[o,r]=a.useState(null),[t,i]=a.useState(null),l=a.useRef(0),u=a.useCallback(async()=>{const s=++l.current;try{const m=await S("/api/mesh");if(s!==l.current)return;r(m)}catch{if(s!==l.current)return;r(null)}},[]);a.useEffect(()=>{u();const s=()=>{O()&&u()},m=setInterval(s,15e3),f=k(s);return()=>{clearInterval(m),f()}},[u]),a.useEffect(()=>{let s=!1;return(async()=>{try{const m=await S("/api/build");if(s)return;if(!m.branch&&!m.commit){const f=await S("/api/build?refresh=1");s||i(f);return}i(m)}catch{s||i(null)}})(),()=>{s=!0}},[]);const c=(()=>{if(!t)return{label:"dev",title:"Build information unavailable"};const s=t.mode==="production"?"prod":"dev",m=t.branch??"unknown",f=t.commit?` @ ${t.commit}${t.dirty?"*":""}`:"";return{label:`${s} ${m}${f}`,title:[`Mode: ${t.mode}`,`Version: ${t.version??"unknown"}`,`Branch: ${t.branch??"unknown"}`,`Commit: ${t.commit??"unknown"}`,`Dirty: ${t.dirty===null?"unknown":t.dirty?"yes":"no"}`].join(`
2
2
  `)}})();return{status:n.status==="offline"?{label:"Scout: OFFLINE",color:"red"}:n.status==="degraded"?{label:"Scout: DEGRADED",color:"amber"}:o===null?{label:"Broker: …",color:"neutral"}:o.health.reachable?{label:"Broker: UP",color:"emerald"}:{label:"Broker: DOWN",color:"red"},mesh:(()=>{const s=L(o);return n.status==="offline"?{label:s,value:"offline",color:"red"}:o===null?{label:s,value:"checking",color:"neutral"}:o.health.reachable?Object.values(o.nodes).filter(f=>f.id!==o.localNode?.id).length>0?{label:s,value:"connected",color:"neutral"}:o.identity.discoverable?{label:s,value:"discoverable",color:"neutral"}:{label:s,value:"local",color:"amber"}:{label:s,value:"offline",color:"neutral"}})(),build:c}}function Ce(){return ne().status}function ke(){const{route:e,navigate:n}=v();return b("nav.sidebar",!1)?null:ee({items:Q(),activeKey:X(e),breadcrumb:Z(e),navigate:n})}function Oe(){const{openSettings:e}=v();return b("nav.sidebar",!1)?null:a.createElement("div",{className:"scout-nav-actions"},a.createElement(ae),a.createElement(H,{variant:"nav"}),a.createElement("button",{onClick:()=>e(),className:"scout-nav-action scout-nav-action--settings",title:"Settings"},a.createElement(W,{size:12,strokeWidth:1.6,"aria-hidden":!0}),a.createElement("span",null,"Settings")))}function Ae(){return"panel"}function oe(e){return e.view==="ops"&&e.mode==="lanes"}function Le(){const{onboarding:e,onboardingSkipped:n,skipOnboarding:o,route:r}=v();if(oe(r))return{active:!1,dismissible:!0};if(!e)return null;if(n||e.needed===!1||e.skippedAt||e.completedAt)return{active:!1,dismissible:!0};const t=!e.hasLocalConfig,i=!e.hasProjectConfig,l=!e.hasOperatorName,u=!e.brokerReachable||!e.hasReadyRuntime;return{active:t||l||i||u,dismissible:!0,onDismiss:o}}export{U as N,Ae as a,Oe as b,ke as c,Ce as d,Ne as e,Se as f,Ee as g,P as h,ye as i,ne as j,we as k,ee as r,Le as u};
@@ -1 +1 @@
1
- import{u as q,a as ie,s as Pe,S as Oe}from"./scope-views-Z8aoAmtU.js";import{b as xl,i as wl,c as Ll,d as yl}from"./scope-views-Z8aoAmtU.js";import{ab as pe,ac as Me,$ as $e,a0 as Be,a1 as Fe,a2 as We,a3 as de,a4 as Ge,a5 as He,a6 as ze,ad as Ke,a7 as Ue,ae as Ve,P as qe,T as Ye,R as Ze,u as Je}from"./router-B0YclXYg.js";import{af as jl,ag as kl,ah as Cl,ai as El,aj as Al,ak as Il,al as Tl,am as Rl,an as Dl,ao as Pl,U as Ol,ap as Ml,aq as $l,ar as Bl,Q as Fl}from"./router-B0YclXYg.js";import{r as d,j as r,D as le,m as Qe}from"./index-Bli6bTLU.js";import{k as Gl,y as Hl,t as zl,E as Kl,w as Ul,G as Vl,C as ql,v as Yl,B as Zl,l as Jl,H as Ql,I as Xl}from"./index-Bli6bTLU.js";import{u as Se}from"./Provider-Ve8yXaWR.js";import{S as Xe}from"./ScoutSurface-BMKW7hSu.js";import{resolveContentPane as et}from"./resolve-panes-CCqRkQdM.js";import{i as tt}from"./model-IGCUEsMy.js";import{t as st}from"./bash-format-BRV5C6Gv.js";import{t as be}from"./time-Dhsh_2EG.js";import{i as ot,l as ve,j as nt,k as rt,m as at,e as it,g as lt,n as ct,r as pt,A as K,D as dt,h as ut}from"./agent-lanes-model-BKOs_32K.js";import{S as mt}from"./SlidePanel-Dg8_styW.js";import{H as ft}from"./HarnessMark-DGZ6o6Ct.js";import{o as ht,f as gt,b as _t}from"./lane-observe-vfyACHi0.js";import{S as xe}from"./SessionObserve-zAlFbwFn.js";import{LaneTraceEventFocus as St}from"./LaneTraceEventFocus-C9cmqxnK.js";import{b as bt}from"./agent-lane-detail-D5EIlX7_.js";import{r as vt,u as xt}from"./AgentLanesView-CbY9qD0z.js";import{u as wt}from"./observe-DL5_8-Zj.js";import{f as Lt}from"./terminal-sessions-D4dHTRkt.js";import{o as yt,i as Nt}from"./surface-activity-B1rgWB1i.js";import{AgentFloorView as jt}from"./AgentFloorView-Crdw8Uo5.js";import{i as kt,c as Ct,n as ue}from"./keyboard-nav-7iEtvu9P.js";import{a as Et}from"./api-DEHEgJ9m.js";import{RawSessionsTable as At}from"./RawSessionsTable-Co3vzwsf.js";import{SessionRefScreen as It}from"./SessionRefScreen-BmKhf29o.js";import{TailView as Tt}from"./TailView-BfObcZu3.js";import{a as we}from"./provider-CX9EWecp.js";import{c as Rt,b as Dt,u as Pt,r as Ot}from"./hooks-CdKx1CxP.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./sse-CSozY6mp.js";import"./index-BWHgHrtv.js";import"./colors-BtO5_zlx.js";import"./scoutbot-D4vuKzOL.js";import"./DocumentFocusViewer-DmtFisY9.js";import"./createLucideIcon-DLlxGjKt.js";import"./TextDocumentSurface-C7fGlzY8.js";import"./file-text-BVhkMWyC.js";import"./x-BJyPzFnn.js";import"./chevron-right-BMqtBds_.js";import"./code-xml-ByQsfOI_.js";import"./arrow-left-i-h6JAgs.js";import"./arrow-right-B0Yi01Zr.js";import"./scout-voice-DvG_3stJ.js";import"./fx-z37u1o2z.js";import"./NewChatComposer-Bgqes0UQ.js";import"./text-BR9Bap0E.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-DoT8gpw6.js";import"./conversation-model-CigSPlKA.js";import"./index-DFdlQs_c.js";import"./NewChatOrigin-DpHS2Wmt.js";import"./chevron-down-Da5tV19_.js";import"./search-BbgsEMXa.js";import"./chunk-HRAB3GC3-BUVYXXAp.js";import"./content-Be6yyWbJ.js";import"./ActivityScreen-C7AwUogt.js";import"./clipboard-e3fSpeo7.js";import"./mentions-Cd6XticV.js";import"./AgentDetailCard-FelCxQrT.js";import"./AgentLiveActions-Bn3zeZBN.js";import"./terminal-takeover-CtA3wcXh.js";import"./openContent-C6XO6kr5.js";import"./eye-BeCSqJn1.js";import"./terminal-BiNIXhna.js";import"./EmptyState-BnDda92b.js";/* empty css */import"./left-BhgU6NOA.js";/* empty css */import"./AgentAvatar-B1xvQ7ej.js";import"./SpriteAvatar-DMrSssNZ.js";import"./agent-identity-DzHGhLdJ.js";import"./content-CPVqvf5o.js";import"./AgentInfoScreen-Cge7HHbV.js";/* empty css */import"./BackToPicker-CqYhOaLB.js";import"./ObservedTopologyPanel-D85P6RAk.js";import"./AgentsScreen-BcPM-z1T.js";/* empty css */import"./AgentsSubnav-3_vpn2bT.js";import"./SecondaryNav-cYTw2p39.js";import"./secondaryNavConfig-DyC_P9Wx.js";import"./message-square-DlY4EneU.js";import"./compass-BepM5iWH.js";import"./settings-BzWCF3NF.js";import"./git-branch-q8Ayc8py.js";import"./scroll-text-DRidbcse.js";import"./library-BSVrjn_m.js";/* empty css */import"./AgentSessions-czl5zT7A.js";import"./agents-project-model-UYiamtrU.js";import"./profile-BkmuseW7.js";import"./context-budget-DX_fwUs3.js";import"./session-catalog-CUQ8LUJY.js";import"./terminal-relay-pSm7_An6.js";import"./ConversationScreen-CjWWmuuh.js";import"./ConversationComposer-Ce7Byw48.js";import"./zap-rw7uwZht.js";import"./message-markup-DAnnGpWr.js";import"./message-visibility-kJM8XcSG.js";import"./sessionRead-CvFz2RHv.js";import"./types-B0PlfpKc.js";/* empty css */import"./ConversationHeader-C3sg0ULI.js";import"./AstronautSuit-BADl7m8x.js";import"./ConversationFeedRows-DygDfQn_.js";import"./ConversationPanels-Dg4Y2GgX.js";import"./tail-display-DcliDVkW.js";import"./lane-edit-display-C_Aujldz.js";import"./use-reduced-motion-BLn59zLn.js";import"./proxy-C35W-YHZ.js";import"./activity-D4W2XZY2.js";import"./message-circle-44KSmbvQ.js";import"./tail-events-CrN-Rmxj.js";import"./ConversationStatus-BhVIYQza.js";import"./check-Bfs7hMb1.js";import"./sparkles-ytTwpCbZ.js";import"./AgentDefinitionsWorkspace-rw3vh8Lm.js";import"./agent-specialization-CNrsRbKA.js";import"./project-overview-helpers-BQTc_Ous.js";import"./FileViewerPane-Dg7_88pv.js";/* empty css */import"./agent-essentials-CngjUhQj.js";import"./lane-tool-detail-0WhMf4Vj.js";import"./LaneToolHoverCard-197xYmRp.js";import"./lane-ask-display-B6iCAVcd.js";import"./ObserveTextFlow-C1f5oize.js";import"./SessionObserveEvidence-BVawzqoE.js";import"./wrench-CQvdf7KT.js";import"./external-link-BGHC_naA.js";/* empty css *//* empty css */import"./right-BPirlFC8.js";import"./openAgent-Dbv5wfuL.js";import"./TmuxPeek-BSeKIjnX.js";import"./refresh-cw-IgN2fZLM.js";import"./ProjectsRail-DqAbdvCf.js";import"./AddProjectForm-BNRpRPod.js";import"./projects-inbox-C0umZMSY.js";import"./archive-DH49QqFG.js";import"./ProjectsScreen-DKHQ2iEv.js";import"./ProjectsInbox-B8Srlklk.js";import"./ui-LM8pS8qE.js";import"./CrewWorkspaces-CDU-wy1Y.js";import"./cpu-Bc268H9Q.js";import"./sliders-horizontal-7V8B3xsf.js";import"./api-BHHEUSS3.js";import"./cache-BO2Bd_LV.js";import"./arrow-up-right-RBC6k8nn.js";/* empty css */import"./ProjectAgentProfile-DnIeC16r.js";import"./ProjectAgentProfileBar-IDEpKZvI.js";import"./ProjectsThreadAside-DpkjYLL2.js";import"./content-DY5hwBmm.js";import"./BriefingDetailScreen-DDfZ8ci1.js";import"./scoutbot-markdown-BJJyaPu2.js";/* empty css */import"./BriefingsScreen-CLvSOJjy.js";import"./content-ClQjAWYi.js";import"./BrokerScreen-Bkvu92jk.js";import"./status-tone-BM_zuRy1.js";import"./broker-display-Q75fupqG.js";import"./BrokerMetadataPanel-DFAH-NO6.js";import"./DispatchAftermath-CH02HAVw.js";import"./follow-route-BvcGtBIL.js";import"./ShikiPane-DyEJdcvb.js";import"./plus-64n9qucr.js";import"./send-horizontal-BXo2uz3Z.js";import"./copy-De4s38o2.js";import"./radio-BjpQTKT0.js";import"./bot-r2IuAuJd.js";import"./left-Dnqla0b5.js";import"./conversation-prefs-DNre-Lcx.js";import"./use-conversation-list-C0bEXFeH.js";import"./use-fleet-active-asks-CK4aw-3G.js";import"./RailRow-C4GNGR80.js";/* empty css */import"./content-CMBiIZTg.js";import"./MessagesScreen-D6MVLvdg.js";import"./right-BUP2Ro_M.js";import"./CodeScreen-DpN9kQvm.js";import"./CodeDiffPane-C9HT1dCT.js";import"./usePierreRuntime-Bq6mXrgd.js";/* empty css */import"./CodeProjectPicker-5Y3GvXkM.js";/* empty css */import"./content-Bgl_X3ao.js";import"./FollowScreen-DcFBqr6l.js";import"./content-DFFe3-Ot.js";import"./HarnessesScreen-DTDL-XaA.js";import"./useContentSecondaryNav-D-hVKzM9.js";import"./OpsSubnav-BijKI3yG.js";/* empty css */import"./left-Dy403II2.js";import"./operator-attention-BqoWAlhp.js";import"./content-Cv2tSAbv.js";import"./HomeHero-CENwVZ45.js";import"./persistent-state-DYjP8lqN.js";import"./home-moving-signal-Dm2Z2x0p.js";import"./home-live-action-BkqGLVRY.js";import"./file-code-corner-CX53Cd9y.js";import"./right-BVWYPIFX.js";import"./left-BhZhSrS2.js";import"./mesh-view-store-Cpqil_2D.js";import"./mesh-buckets-CfAukILK.js";import"./content-Bv2sfg0w.js";import"./MeshScreen-lJKaOyGB.js";import"./MeshCanvas-C3_2p9B6.js";import"./Canvas-KyTsDJlB.js";import"./useAgentHoverCard-6N8b7qsU.js";import"./local-agents-BMadXuP1.js";/* empty css */import"./right-C2aOC2li.js";import"./left-Cq8mjamr.js";import"./mesh-ops-C0zCLTR8.js";import"./use-mesh-ops-items-QixBijmT.js";import"./content-5hnDC9WE.js";import"./use-scout-dev-flags-JKb1EhFh.js";import"./right-SfSu0zHC.js";import"./left-BayK4ocL.js";import"./left-agents-TIKe8vW8.js";import"./left-default-owH0Lwxo.js";import"./left-lanes-BE_co2lP.js";import"./lane-roster-store-pHT3TAVs.js";import"./left-mission-C_nWUtfA.js";import"./mission-control-store-DtjtRs9Z.js";import"./MissionLeftAgentRow-Bx6Pg8_O.js";import"./page-status-CW8co39E.js";import"./left-advisor-oOAtJ9YE.js";import"./server-Dt3tpiBj.js";import"./layers-BiZA-Clc.js";import"./gauge-CPcEPmNt.js";import"./content-j_tewJdE.js";import"./OpsScreen-C3yNQqJE.js";/* empty css */import"./MissionControlView-BCH-Zsp4.js";/* empty css */import"./MissionContextRail-DXkrbcnZ.js";import"./agent-lane-preview-BhplDYGf.js";import"./mission-wall-CocIM1cF.js";import"./mission-control-model-C0fByIjm.js";import"./MissionFocusOverlay-DbAliOSF.js";import"./MissionLogPane-D06c29Y8.js";import"./OpsAgentsView-yt0JavoB.js";/* empty css */import"./DataTable-oJP339bX.js";/* empty css */import"./HostAdvisorView-PgiZUkd_.js";/* empty css */import"./layout-grid-DMpv9CZM.js";import"./AtopView-DymBCiXv.js";/* empty css *//* empty css */import"./AgentLanesPreflight-DJeDRTAN.js";import"./AgentLaneChrome-CWFqUdch.js";import"./AgentLaneCard-CRDG74C1.js";/* empty css */import"./AgentLaneSummaryResize-yTM4GQAJ.js";import"./agent-lane-card-model-CSugZCdy.js";import"./AgentLaneDetailSheet-DCIIg3Zp.js";import"./LaneTraceDetailSheet-BztwvOv9.js";import"./content-CbwyFqdI.js";import"./RepoDiffPageScreen-DUKLzkrW.js";import"./RepoDiffViewerLazy-zIiEmh-e.js";import"./ReposScreen-BR1LqTf1.js";/* empty css */import"./selection-bridge-CpzFGx3-.js";import"./right-DqiVyo8v.js";import"./content-BYykncDo.js";import"./KnowledgeSearchScreen-Bj80IgR0.js";/* empty css */import"./clock-DaKLp6Xd.js";import"./KnowledgeSearchInspector-DNQjeWZO.js";import"./content-_IXoxGno.js";import"./SessionsScreen-CsSqjIY2.js";import"./FlightObserveScreen-DL3Xhl0h.js";/* empty css */import"./right-B3PQUHd5.js";import"./content-BRFZ-a6m.js";import"./SettingsScreen-Btaku7YM.js";import"./StatusPill-NFFnphtx.js";import"./AgentConfigurationScreen-BoBQpyz5.js";import"./SettingsDrawer-DwYQTGi8.js";import"./credentials-qwds23lv.js";import"./VoicePermissionsPanel-BkIGTzgw.js";import"./left-CY_FGnN7.js";import"./usePersistentState-DOEahRlt.js";import"./session-table-B4JOKevn.js";import"./Terminal-Dr-M9U4u.js";/* empty css */import"./HerdrSession-DV2hD6Yh.js";import"./TerminalRelay-lJ2KdMCW.js";import"./right-CtPJjgOV.js";import"./content-BopJW1Zx.js";import"./WorkDetailScreen-Cwe-KWK4.js";import"./WorkFilesViewer-BBtKRBPv.js";import"./right-BoAJxwA3.js";import"./RealtimeVoiceScreen-DMd1CBAf.js";import"./agent-autocomplete-Dv-_9dAw.js";import"./gestures-BXIGYk_p.js";import"./rocket-DnmN_YOD.js";function Mt(e){return e?`${e[0]?.toUpperCase()}${e.slice(1)}`:"local"}function $t(e){const t=st(e.trim()),s=t.replace(/\/+$/u,"").split(/[\\/]/u).filter(Boolean);return s.length===0?t:s.slice(-2).join("/")}function Bt(e){const t=e?.trim();return t?t.replace(/\.jsonl$/u,"").slice(0,8):"—"}function B(e,t=Date.now()){const{agent:s,source:o,observe:n,lastActiveAt:l}=e,c=s.harness?.trim()||o,p=ot(n),i=$t(s.cwd||s.project||s.projectRoot||"—"),a=p?`${c} · live`:`${c} · ${be(l??t)}`;return{source:Mt(c),sessionRef:Bt(s.harnessSessionId),path:i,statusLine:a,live:p}}const Ft={think:"Thought",tool:"Tool",ask:"Request",message:"Message",note:"Note",system:"System",boot:"Boot"};function Wt({lane:e,event:t,nowMs:s=Date.now()}){const{agent:o,observe:n,source:l,lastActiveAt:c}=e,p=d.useMemo(()=>bt(e),[e]),i=B(e,s),a=t??n?.events?.at(-1),f=a?Ft[a.kind]??a.kind:null,g=n?.metadata?.session?.sessionStart,_=a?ht(a,g):null,h=_!=null?gt(_,c):void 0,m=_!=null?_t(_):void 0,u=a?.kind==="tool"||a?.kind==="ask"?a:void 0;return r.jsxs("div",{className:"scope-lane-detail",children:[r.jsxs("header",{className:"scope-lane-detail__head",children:[r.jsxs("div",{className:"scope-lane-detail__copy",children:[r.jsx("span",{className:"scope-lane-detail__kicker",children:"Lane trace"}),r.jsxs("h2",{className:"scope-lane-detail__title",children:[i.source,r.jsxs("span",{className:"scope-lane-detail__ref",children:[" · ",i.sessionRef]})]}),r.jsxs("div",{className:"scope-lane-detail__sub",children:[i.path,f?` · ${f}`:"",c?` · ${be(c)}`:""]})]}),r.jsx(ft,{harness:o.harness??p.harness,size:18,className:"scope-lane-detail__hmark"})]}),r.jsxs("dl",{className:"scope-lane-detail__meta","aria-label":"Session stats",children:[r.jsxs("div",{className:"scope-lane-detail__stat",children:[r.jsx("dt",{children:"events"}),r.jsx("dd",{children:p.events})]}),r.jsxs("div",{className:"scope-lane-detail__stat",children:[r.jsx("dt",{children:"tools"}),r.jsx("dd",{children:p.tools})]}),r.jsxs("div",{className:"scope-lane-detail__stat",children:[r.jsx("dt",{children:"files"}),r.jsx("dd",{children:p.files})]}),r.jsxs("div",{className:"scope-lane-detail__stat",children:[r.jsx("dt",{children:"model"}),r.jsx("dd",{children:p.model??"—"})]}),r.jsxs("div",{className:"scope-lane-detail__stat",children:[r.jsx("dt",{children:"branch"}),r.jsx("dd",{children:p.branch??"—"})]}),r.jsxs("div",{className:"scope-lane-detail__stat",children:[r.jsx("dt",{children:"status"}),r.jsx("dd",{children:i.statusLine})]})]}),r.jsx("div",{className:"scope-lane-detail__trace",children:r.jsx(xe,{data:n??void 0,agentId:l==="scout"?o.id:void 0,sessionId:o.harnessSessionId??p.sessionId,showRail:!1,variant:"default",surface:"scope",initialCursorT:a?.t,focusEventId:a?.id,inlineFocusEventId:u?.id,inlineFocusContent:u?r.jsx(St,{event:u,wallLabel:h,wallTitle:m,variant:"inline"}):void 0})})]})}function Le({target:e,onClose:t}){const{lane:s,event:o}=e,n=B(s);return r.jsxs(mt,{open:!0,onClose:t,side:"right",owner:"scope.lane-trace",layer:"elevated",resizable:!0,defaultSize:980,minSize:560,maxSize:1280,scrollLock:!0,ariaLabel:`${n.source} ${n.sessionRef} trace`,className:"scope-lane-trace-sheet","data-scope-presentation":!0,children:[r.jsx("div",{className:"scope-lane-trace-sheet__toolbar",children:r.jsx("button",{type:"button",className:"scope-lane-trace-sheet__close",onClick:t,"aria-label":"Close",children:"×"})}),r.jsx(Wt,{lane:s,event:o})]})}function Gt(e,t){const[s,o]=d.useState(()=>pe(e));d.useEffect(()=>{o(pe(e))},[e]);const n=d.useCallback(u=>{Me(u),o(u)},[]),l=d.useMemo(()=>vt({autoLanes:t,deck:s,defaultWidthTier:e}),[t,s,e]),c=d.useCallback((u,S="pinned_left")=>{n($e(s,{laneId:u.id,title:ve(u.agent,u.source),zone:S,width:s.laneWidths[u.id]}))},[s,n]),p=d.useCallback(u=>{n(Be(s,u))},[s,n]),i=d.useCallback((u,S)=>{n(Fe(s,u,S))},[s,n]),a=d.useCallback(u=>{n(We(s,u))},[s,n]),f=d.useCallback((u,S)=>{n(de(s,{kind:"harness",title:S??`${u} sessions`,harness:u,zone:"pinned_left",width:s.defaultLaneWidth}))},[s,n]),g=d.useCallback(()=>{n(de(s,{kind:"attention",title:"Needs attention",zone:"pinned_left",width:"sm"}))},[s,n]),_=d.useCallback(()=>{n(Ge(s))},[s,n]),h=d.useCallback(u=>He(s,u),[s]),m=d.useCallback(u=>ze(s,u),[s]);return{deck:s,layout:l,pinLane:c,unpinLane:p,setLaneWidth:i,setDefaultLaneWidth:a,addHarnessLane:f,addAttentionLane:g,clearPins:_,isPinned:h,pinnedZone:m}}const ye=le("lanes-horizon");function Ht(){try{const e=sessionStorage.getItem(ye);if(e&&K.some(t=>t.key===e))return e}catch{}return dt}function Ne({scoutAgents:e,defaultWidthTier:t="md",harnessFilter:s,projectFilter:o,horizonOverride:n}){const[l,c]=d.useState(Date.now()),[p,i]=d.useState(Ht),a=n??p,[f,g]=d.useState([]),[_,h]=d.useState(()=>new Set),m=ut(a),u=nt(a),S=rt(a),{discovery:b,events:v,loadState:k}=xt({includeTranscriptReplay:!0,discoveryIntervalMs:5e3,recentLimit:m,pauseWhenHidden:!0});d.useEffect(()=>{const x=setInterval(()=>c(Date.now()),1e4);return()=>clearInterval(x)},[]),d.useEffect(()=>{let x=!1;const y=async()=>{if(Nt())try{const ee=await Lt({includeDiscovered:!1});x||g(ee)}catch{x||g([])}};y();const I=setInterval(()=>{y()},1e4),X=yt(()=>{y()});return()=>{x=!0,clearInterval(I),X()}},[]),d.useEffect(()=>{try{sessionStorage.setItem(ye,p)}catch{}},[p]);const N=d.useRef(at()),T=d.useMemo(()=>e.filter(x=>it(x,l,a)),[e,l,a]),E=wt(T,{pauseWhenHidden:!0}),R=k.discovery==="loading"||k.recent==="loading";d.useEffect(()=>{if(_.size===0)return;const x=setTimeout(()=>h(new Set),900);return()=>clearTimeout(x)},[_]);const{lanes:L,issues:A,freshLaneIds:D}=d.useMemo(()=>{const x=lt({transcripts:b?.transcripts??[],tailEvents:v,processes:b?.processes??[],scoutAgents:e,terminalSessions:f,observeCache:E,now:l,workingOnly:!0,horizon:a}),y=ct(x.lanes,N.current),I=[...pt(b),...x.issues];return{lanes:y.lanes,issues:I,freshLaneIds:y.newLaneIds}},[b,v,e,f,E,l,a]);d.useEffect(()=>{if(A.length!==0)for(const x of A)console.warn(`[agent-lanes] ${x.message}`,x)},[A]),d.useEffect(()=>{D.length!==0&&h(x=>{const y=new Set(x);for(const I of D)y.add(I);return y})},[D.join("\0")]);const O=d.useMemo(()=>L.filter(x=>Kt(x,{harnessFilter:s,projectFilter:o})),[L,s,o]),{deck:W,layout:Z,setLaneWidth:J,setDefaultLaneWidth:Q}=Gt(t,O);return{profileId:Ke,now:l,horizon:a,setHorizon:i,horizonLabel:S,traceWindowMs:u,lanes:O,issues:A,newLaneIds:_,tailLoading:R,deck:W,layout:Z,setLaneWidth:J,setDefaultLaneWidth:Q,activeFilterLabel:Ut({harnessFilter:s,projectFilter:o})}}function me(e){const t=e?.trim().toLowerCase();return t||null}function se(e){return e.trim().toLowerCase().replace(/['"]/gu,"").replace(/[^a-z0-9]+/gu,"-").replace(/^-+|-+$/gu,"")}function zt(e){return e.trim().replace(/\/+$/u,"").split(/[\\/]/u).filter(Boolean).pop()?.trim()||null}function fe(e,t){if(!t)return!0;const s=se(t);return e.some(o=>{const n=o?.trim();if(!n)return!1;const l=n.toLowerCase(),c=zt(n);return l===t||se(n)===s||!!(c&&(c.toLowerCase()===t||se(c)===s))})}function Kt(e,t){const s=me(t.harnessFilter),o=me(t.projectFilter),{agent:n,facts:l,source:c}=e;return fe([n.harness,n.definitionId,l?.attribution,c],s)&&fe([n.project,n.projectRoot,n.cwd,l?.cwd],o)}function Ut(e){return[e.harnessFilter?.trim()?`harness ${e.harnessFilter.trim()}`:"",e.projectFilter?.trim()?`project ${e.projectFilter.trim()}`:""].filter(Boolean).join(" · ")}function Vt(e){return e?`${e[0]?.toUpperCase()}${e.slice(1)}`:"local"}function qt(e){const t=new Map;for(const s of e){const o=s.agent.harness?.trim()||s.source,n=t.get(o)??[];n.push(s),t.set(o,n)}return[...t.entries()].map(([s,o])=>{const n=[...o].sort((c,p)=>(p.lastActiveAt??0)-(c.lastActiveAt??0)),l=n.filter(c=>B(c).live).length;return{harness:s,label:Vt(s),lanes:n,liveCount:l}}).sort((s,o)=>o.lanes.length-s.lanes.length)}function Yt({lane:e,nowMs:t,onOpen:s}){const o=B(e,t),n=e.observe?.events?.length??0,l=c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),s(e))};return r.jsxs("div",{className:`scope-dir__row${o.live?" is-live":""}`,role:"button",tabIndex:0,onClick:()=>s(e),onKeyDown:l,"aria-label":`${o.source} ${o.sessionRef}`,children:[r.jsx("span",{className:`scope-dir__dot${o.live?" is-live":""}`,"aria-hidden":!0}),r.jsx("span",{className:"scope-dir__ref",children:o.sessionRef}),r.jsx("span",{className:"scope-dir__path",title:e.agent.cwd??e.agent.project??void 0,children:o.path}),r.jsxs("span",{className:"scope-dir__events",children:[n,r.jsx("span",{className:"scope-dir__unit",children:"ev"})]}),r.jsx("span",{className:"scope-dir__status",children:o.statusLine})]})}function Zt({navigate:e,agents:t}){const s=q(),{now:o,horizonLabel:n,lanes:l,tailLoading:c}=Ne({scoutAgents:t,defaultWidthTier:"md"}),p=d.useMemo(()=>qt(l),[l]),[i,a]=d.useState(null),f=d.useCallback(h=>{const m=h.observe?.events?.at(-1);m&&a({lane:h,event:m})},[]),g=l.length,_=p.reduce((h,m)=>h+m.liveCount,0);return r.jsxs("div",{className:"scope-dir","data-scope-presentation":!0,...s,children:[r.jsx("header",{className:"scope-dir__bar",children:r.jsxs("div",{className:"scope-dir__summary",children:[r.jsxs("span",{className:"scope-dir__count",children:[g," instance",g===1?"":"s"]}),_>0?r.jsxs("span",{className:"scope-dir__live",children:[_," live"]}):null,r.jsxs("span",{className:"scope-dir__window",children:["window ",n]})]})}),p.length===0?r.jsx("div",{className:"scope-dir__empty",children:c?"Discovering sessions…":"No sessions discovered for this workspace."}):r.jsx("div",{className:"scope-dir__body",children:p.map(h=>r.jsxs("section",{className:"scope-dir__group",children:[r.jsxs("header",{className:"scope-dir__group-head",children:[r.jsx("span",{className:"scope-dir__group-name",children:h.label}),r.jsx("span",{className:"scope-dir__group-kind",children:"runtime"}),r.jsxs("span",{className:"scope-dir__group-counts",children:[h.lanes.length," ",h.lanes.length===1?"instance":"instances",h.liveCount?` · ${h.liveCount} live`:""]})]}),r.jsx("div",{className:"scope-dir__list",role:"list",children:h.lanes.map(m=>r.jsx(Yt,{lane:m,nowMs:o,onOpen:f},m.id))})]},h.harness))}),i?r.jsx(Le,{target:i,onClose:()=>a(null)}):null]})}function Jt({laneId:e,grabbed:t,onKeyMove:s,onDragStart:o,onDragEnd:n}){const l=i=>{if(!(!i.altKey||!s)){if(i.key==="ArrowLeft"||i.key==="ArrowUp"){i.preventDefault(),i.stopPropagation(),s("before");return}(i.key==="ArrowRight"||i.key==="ArrowDown")&&(i.preventDefault(),i.stopPropagation(),s("after"))}},c=i=>{i.stopPropagation();const a=i.dataTransfer;if(!a)return;a.setData("text/plain",e),a.effectAllowed="move";const f=i.currentTarget.closest("[data-lane-id]");f instanceof HTMLElement&&(a.setDragImage(f,Math.min(48,f.clientWidth/2),18),f.classList.add("is-dragging")),o?.(e)},p=i=>{i.currentTarget.closest("[data-lane-id]")?.classList.remove("is-dragging"),n?.()};return r.jsx("span",{className:"scope-lane__drag",role:"button",tabIndex:0,draggable:!0,"aria-grabbed":t?"true":"false","aria-keyshortcuts":"Alt+ArrowLeft Alt+ArrowRight Alt+ArrowUp Alt+ArrowDown","aria-label":"Drag to reorder lane. Drop in a gutter for a new column. Alt+arrow keys also move.",title:"Drag to reorder · drop in gutters for a new column",onClick:i=>i.stopPropagation(),onKeyDown:l,onDragStart:c,onDragEnd:p,children:"⠿"})}const Qt=["sm","md","lg"],Xt={sm:"¼",md:"½",lg:"full"},es={sm:"Quarter row",md:"Half row",lg:"Full row"};function je({value:e,defaultValue:t,onChange:s,compact:o=!1,label:n="Lane width",variant:l="tier"}){const c=typeof e=="string"?e:t,p=l==="grid";return r.jsx("div",{className:`scope-lane-width${o?" is-compact":""}${p?" is-grid":""}`,role:"group","aria-label":n,onClick:i=>i.stopPropagation(),onKeyDown:i=>i.stopPropagation(),children:Qt.map(i=>r.jsx("button",{type:"button",className:`scope-lane-width__btn${c===i?" is-on":""}`,"aria-pressed":c===i,title:p?es[i]:`${i.toUpperCase()} column width`,onClick:()=>s(i),children:p?Xt[i]:i},i))})}function ts({lane:e,layoutMode:t,compact:s,laneWidth:o,defaultLaneWidth:n,onLaneWidthChange:l,nowMs:c,traceWindowMs:p,traceWindowLabel:i,onOpenTrace:a,onTraceEventSelect:f,onDragStart:g,onDragEnd:_,onDragKeyMove:h,focusProps:m}){const{agent:u,observe:S,source:b}=e,v=B(e,c),k=!!(S&&S.events.length>0),N=m?.ref,T=m?{"data-cursor":m["data-cursor"],tabIndex:m.tabIndex,onFocus:m.onFocus}:void 0,E=()=>{const L=S?.events?.at(-1);a(e,L)},R=L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),E())};return r.jsxs("article",{ref:N,"data-lane-id":e.id,className:["scope-lane",v.live?"is-live":"",m?.["data-cursor"]?"is-cursor":"",s?"is-stack-compact":"",t==="grid"?"is-grid":""].filter(Boolean).join(" "),...T,children:[r.jsxs("header",{className:`scope-lane__head${s?" is-compact":""}`,role:"button",tabIndex:0,onClick:L=>{L.target instanceof HTMLElement&&L.target.closest(".scope-lane__drag")||E()},onKeyDown:R,"aria-label":`${v.source} ${v.sessionRef}`,children:[r.jsx(Jt,{laneId:e.id,onKeyMove:h,onDragStart:g,onDragEnd:_}),r.jsx("span",{className:"scope-lane__live","aria-hidden":"true"}),r.jsxs("div",{className:"scope-lane__meta",children:[r.jsxs("span",{className:"scope-lane__source",children:[v.source,r.jsxs("span",{className:"scope-lane__ref",children:[" · ",v.sessionRef]})]}),r.jsx("span",{className:"scope-lane__path",title:u.cwd??u.project??void 0,children:v.path}),s?null:r.jsx("span",{className:"scope-lane__status",children:v.statusLine}),l&&(t==="grid"||!s)?r.jsx(je,{value:o,defaultValue:n,onChange:l,compact:!0,label:`${v.sessionRef} width`,variant:t==="grid"?"grid":"tier"}):null]})]}),r.jsx("section",{className:"scope-lane__trace","aria-label":`${ve(u,b)} trace · ${i}`,children:k?r.jsx(xe,{data:S??void 0,agentId:b==="scout"?u.id:void 0,sessionId:u.harnessSessionId,showRail:!1,variant:"lane",surface:"scope",nowMs:c,traceWindowMs:p,traceWindowLabel:i,onLaneEventSelect:L=>f(e,L)}):r.jsx("div",{className:"scope-lane__empty",children:"waiting for events"})})]})}function ss({space:e,layoutMode:t,widthPx:s,gridSpan:o,children:n}){const l=t==="swim"?{"--scope-lane-width":`${s}px`}:t==="grid"&&o?{gridColumn:`span ${o}`}:void 0;return r.jsx("div",{className:`scope-lane-space${t==="grid"?" is-grid":""}`,style:l,"data-split":e.ids.length,"data-orient":e.orient,"data-grid-span":t==="grid"?o:void 0,children:r.jsx("div",{className:"scope-lane-space__lanes",children:n})})}const os=[{key:"swim",label:"swim"},{key:"grid",label:"grid"},{key:"floor",label:"floor"}];function ns({liveCount:e,horizon:t,horizonLabel:s,layoutMode:o,laneWidth:n,onHorizonChange:l,onLayoutChange:c,onLaneWidthChange:p}){const i=o==="floor";return r.jsxs("header",{className:"scope-lanes-bar",children:[r.jsxs("div",{className:"scope-lanes-bar__summary",children:[r.jsxs("span",{className:"scope-lanes-bar__count",children:[e," lane",e===1?"":"s"]}),r.jsx("span",{className:"scope-lanes-bar__window",children:i?"past 30m · lanes 4h":`window ${s}`})]}),r.jsxs("div",{className:"scope-lanes-bar__controls",children:[r.jsx("div",{className:"scope-lanes-bar__layouts",role:"group","aria-label":"Lane layout",children:os.map(a=>r.jsx("button",{type:"button",className:`scope-lanes-bar__layout${o===a.key?" is-on":""}`,"aria-pressed":o===a.key,onClick:()=>c(a.key),children:a.label},a.key))}),i?null:r.jsxs(r.Fragment,{children:[r.jsx(je,{value:n,defaultValue:n,onChange:p,label:"Default column width",variant:o==="grid"?"grid":"tier"}),r.jsx("div",{className:"scope-lanes-bar__horizons",role:"group","aria-label":"Activity window",children:K.map(a=>r.jsx("button",{type:"button",className:`scope-lanes-bar__horizon${t===a.key?" is-on":""}`,"aria-pressed":t===a.key,onClick:()=>l(a.key),children:a.label},a.key))})]})]})]})}const U=.22,ce=.46,$=14,V=12,oe={mode:null,before:!0,slotIndex:-1,stackBand:0,targetAgentId:null};function H(e,t){return[...t.querySelectorAll(".scope-lane-space")].indexOf(e)}function rs(e){return[...e.querySelectorAll("[data-lane-id]")].map(t=>t.getAttribute("data-lane-id")).filter(t=>!!t)}function G(e){return e?.querySelector("[data-lane-id]")??null}function ke(e,t){const s=e.filter(n=>{const l=n.getBoundingClientRect();return t>=l.top-$&&t<=l.bottom+$});if(!s.length)return[];const o=s[0].getBoundingClientRect().top;return e.filter(n=>Math.abs(n.getBoundingClientRect().top-o)<=$)}function C(e){return{before:!1,stackBand:0,targetAgentId:null,label:"",previewColumn:!1,col:null,...e}}function as(e,t,s){const o=[...e.querySelectorAll(".scope-lane-space")];if(!o.length)return null;const n=ke(o,s);if(!n.length)return null;const l=n[0].getBoundingClientRect().top,c=Math.max(...n.map(f=>f.getBoundingClientRect().bottom));if(s<l-$||s>c+$)return null;const p=n[0].getBoundingClientRect(),i=H(n[0],e),a=Math.max(V*3,p.width*U);if(t<=p.left+a)return C({mode:"reorder",before:!0,slotIndex:i,slot:n[0],col:G(n[0]),label:"new column",previewColumn:!0});for(let f=0;f<n.length;f+=1){const g=n[f],_=g.getBoundingClientRect(),h=H(g,e),m=n[f+1],u=Math.max(V*3,_.width*U);if(m){const S=m.getBoundingClientRect(),b=_.right-u*.4,v=S.left+u*.4;if(t>=b&&t<=v){const k=(_.right+S.left)/2;if(t<k)return C({mode:"reorder",before:!1,slotIndex:h,slot:g,col:G(g),label:"new column",previewColumn:!0});const N=H(m,e);return C({mode:"reorder",before:!0,slotIndex:N,slot:m,col:G(m),label:"new column",previewColumn:!0})}continue}if(t>=_.right-u)return C({mode:"reorder",before:!1,slotIndex:h,slot:g,col:G(g),label:"new column",previewColumn:!0})}return null}function is(e,t,s,o,n,l){const c=s.closest(".scope-lane-space");if(!c)return null;const p=s.getBoundingClientRect(),i=c.getBoundingClientRect(),a=H(c,o),f=rs(c),g=(t-p.top)/p.height,_=(e-p.left)/p.width,h=(e-i.left)/i.width;if(g<ce){if(h<U)return C({mode:"reorder",before:!0,slotIndex:a,slot:c,col:s,label:"new column",previewColumn:!0});if(h>1-U)return C({mode:"reorder",before:!1,slotIndex:a,slot:c,col:s,label:"new column",previewColumn:!0});const S=_<.5;return C({mode:"reorder",before:S,slotIndex:a,slot:c,col:s,label:"new column",previewColumn:!0})}const m=c.dataset.orient||"row";if(l<=1){const S=_<.5;return C({mode:"reorder",before:S,slotIndex:a,slot:c,col:s,label:"new column",previewColumn:!0})}if(m==="column"&&f.length>=l&&!f.includes(n)){const S=_<.5;return C({mode:"reorder",before:S,slotIndex:a,slot:c,col:s,label:"new column",previewColumn:!0})}const u=ls(c,t);return C({mode:"stack",stackBand:u.band,targetAgentId:s.getAttribute("data-lane-id"),slotIndex:a,slot:c,col:s,label:u.label,stackPreview:u.preview})}function z(e){const t=e.top+e.height*ce;return{top:t,left:e.left,width:e.width,height:Math.max(24,e.bottom-t)}}function he(e,t){return t<=1?e>=1:e>=t}function ls(e,t){const s=e.getBoundingClientRect(),o=[...e.querySelectorAll("[data-lane-id]")];if(!o.length)return{band:0,label:"stack",preview:z(s)};if(o.length===1){const p=o[0].getBoundingClientRect(),i=p.top+p.height*ce,a=p.top+p.height*.5,f=t<a?0:1,g=f===0?{top:i,left:s.left,width:s.width,height:Math.max(18,a-i)}:z(s);return{band:f,label:f===0?"stack above":"stack below",preview:g}}let n=o.length;for(let p=0;p<o.length;p+=1){const i=o[p].getBoundingClientRect();if(t<i.top+i.height/2){n=p;break}}let l;if(he(n,o.length))l=z(s);else if(n===0){const p=o[0].getBoundingClientRect();l={top:p.top,left:s.left,width:s.width,height:Math.max(18,p.height*.5)}}else{const p=o[n-1].getBoundingClientRect(),i=o[n].getBoundingClientRect();l={top:(p.bottom+i.top)/2-10,left:s.left,width:s.width,height:20}}const c=n===0?"stack top":he(n,o.length)?"stack bottom":"stack between";return{band:n,label:c,preview:l}}function cs(e,t,s,o,n){const l=document.elementFromPoint(e,t);if(l&&s.contains(l)){const c=l.closest("[data-lane-id]"),p=c?.getAttribute("data-lane-id");if(c&&p&&p!==o&&!c.classList.contains("is-dragging"))return is(e,t,c,s,o,n)}return as(s,e,t)}function ps(e){return e.querySelector(".scope-lane-space")?.getBoundingClientRect().width||360}function ds(e){return[e.mode,e.slotIndex,e.before,e.stackBand,e.targetAgentId,e.label,e.previewColumn,e.col?.getAttribute("data-lane-id")].join("|")}function us(e,t,s,o){const n=t.getBoundingClientRect(),l=s.slot.getBoundingClientRect();if(s.mode==="stack"){const g=s.stackPreview??z(l),_=s.label==="stack below"||s.label==="stack bottom";e.hidden=!1,e.className=`scope-lane-drop is-band${_?" is-bottom-stack":""}`,e.dataset.mode="stack",e.dataset.label=s.label||"",e.style.transform=`translate(${g.left-n.left+t.scrollLeft}px, ${g.top-n.top+t.scrollTop}px)`,e.style.width=`${g.width}px`,e.style.height=`${g.height}px`;return}if(s.previewColumn){const g=ps(t),_=[...t.querySelectorAll(".scope-lane-space")],h=ke(_,l.top+l.height/2),m=(h.length?h:[s.slot]).map(v=>v.getBoundingClientRect()),u=Math.max(...m.map(v=>v.height),l.height),S=Math.min(...m.map(v=>v.top)),b=Math.max(0,s.before?l.left-n.left+t.scrollLeft-g-V/2:l.right-n.left+t.scrollLeft+V/2);e.hidden=!1,e.className="scope-lane-drop is-column",e.dataset.mode="column",e.dataset.label=s.label||"",e.style.transform=`translate(${b}px, ${S-n.top+t.scrollTop}px)`,e.style.width=`${g}px`,e.style.height=`${u}px`;return}const c=s.slot.dataset.orient||"row";let p,i,a,f;c==="column"?(p=l.left-n.left+t.scrollLeft,i=(s.before?l.top:l.bottom)-n.top+t.scrollTop-2,a=l.width,f=3):(p=(s.before?l.left:l.right)-n.left+t.scrollLeft-2,i=l.top-n.top+t.scrollTop,a=3,f=l.height),e.hidden=!1,e.className="scope-lane-drop is-line",e.dataset.mode="reorder",e.dataset.label=s.label||"",e.style.transform=`translate(${p}px, ${i}px)`,e.style.width=`${a}px`,e.style.height=`${f}px`}function ne(e,t,s={}){!s.keepIndicator&&t&&(t.hidden=!0,t.className="scope-lane-drop",delete t.dataset.label,delete t.dataset.mode,t.style.transform="",t.style.width="",t.style.height=""),e&&(e.querySelectorAll(".scope-lane-space").forEach(o=>{delete o.dataset.dropZone}),e.querySelectorAll("[data-lane-id].is-drop-target").forEach(o=>{o.classList.remove("is-drop-target"),delete o.dataset.dropZone,delete o.dataset.dropLabel}))}function ms({stackMax:e,onReorder:t,onStack:s,indicatorRef:o}){const n=d.useRef(null),l=d.useRef(null),c=d.useRef(oe),p=d.useRef(""),i=d.useCallback(h=>{n.current?.closest(".scope-lanes")?.classList.toggle("is-dragging",h)},[]),a=d.useCallback(h=>{l.current=h,p.current="",c.current=oe,i(!0)},[i]),f=d.useCallback(()=>{l.current=null,p.current="",c.current=oe,ne(n.current,o.current),i(!1)},[o,i]),g=d.useCallback(h=>{const m=l.current;if(!m)return;h.preventDefault(),h.dataTransfer.dropEffect="move";const u=n.current,S=o.current;if(!u||!S)return;const b=cs(h.clientX,h.clientY,u,m,e);if(!b){p.current&&(p.current="",ne(u,S));return}const v=ds(b);if(v===p.current)return;const k=!!(p.current&&b.mode==="reorder");p.current=v,c.current={mode:b.mode,before:b.before,slotIndex:b.slotIndex,stackBand:b.stackBand??0,targetAgentId:b.targetAgentId??null},ne(u,S,{keepIndicator:k}),b.col&&(b.col.classList.add("is-drop-target"),b.col.dataset.dropZone=b.mode,b.label&&(b.col.dataset.dropLabel=b.label)),b.slot.dataset.dropZone=b.mode,us(S,u,b)},[o,e]),_=d.useCallback(h=>{h.preventDefault();const m=h.dataTransfer.getData("text/plain")||l.current,u=c.current;if(!m||u.slotIndex<0||!u.mode){f();return}u.mode==="stack"?s(m,u.slotIndex,u.stackBand):t(m,u.slotIndex,u.before),f()},[f,t,s]);return d.useEffect(()=>{const h=m=>{m.key!=="Escape"||!l.current||f()};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[f]),{scrollRef:n,onDragStart:a,onDragEnd:f,scrollDragProps:{onDragEnter:h=>{l.current&&h.preventDefault()},onDragOver:g,onDrop:_}}}const re=le("lane-spaces"),fs=2,hs=6,F=4;function gs(e){const t=Number(e);return Number.isFinite(t)?Math.min(hs,Math.max(fs,Math.round(t))):F}function Y(e){if(Array.isArray(e))return{ids:e.filter(s=>typeof s=="string"),orient:"row"};if(e&&typeof e=="object"&&Array.isArray(e.ids)){const t=e;return{ids:t.ids.filter(o=>typeof o=="string"),orient:t.orient==="column"?"column":"row"}}return{ids:[],orient:"row"}}function _s(e,t,s=F){const o=new Set(t),n=new Set,l=[];for(const c of e){const p=Y(c),i=p.ids.filter(g=>o.has(g)&&!n.has(g));if(i.forEach(g=>n.add(g)),!i.length)continue;const a=i.length===1?"row":p.orient,f=a==="column"?s:4;l.push({ids:i.slice(0,f),orient:a})}for(const c of t)n.has(c)||(l.push({ids:[c],orient:"row"}),n.add(c));return l}function ge(e,t,s=F){return t.length?_s(t,e,s):e.map(o=>({ids:[o],orient:"row"}))}function Ce(e,t){return e.map(s=>{const o=Y(s),n=o.ids.filter(l=>l!==t);return n.length?{ids:n,orient:n.length===1?"row":o.orient}:null}).filter(s=>s!==null)}function Ss(e,t,s,o){const n=Ce(e,t),l=Math.min(o?s:s+1,n.length);return n.splice(l,0,{ids:[t],orient:"row"}),n}function bs(e,t,s,o,n=F){const l=Ce(e,t),p=[...Y(l[s]??{ids:[],orient:"row"}).ids],i=Math.min(Math.max(0,o),p.length);p.splice(i,0,t);const a=p.slice(0,n);return l[s]={ids:a,orient:a.length>1?"column":"row"},l}function vs(){try{const e=sessionStorage.getItem(re);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.map(Y).filter(s=>s.ids.length>0):[]}catch{return[]}}function xs(e){try{if(!e.length){sessionStorage.removeItem(re);return}sessionStorage.setItem(re,JSON.stringify(e))}catch{}}function ws(e,t=F){const s=d.useMemo(()=>e.map(m=>m.lane.id),[e]),o=d.useMemo(()=>new Map(e.map(m=>[m.lane.id,m])),[e]),[n,l]=d.useState(()=>vs()),[c,p]=d.useState(()=>n.length>0),i=d.useMemo(()=>c?ge(s,n,t):ge(s,[],t),[s,c,t,n]);d.useEffect(()=>{c&&xs(i)},[c,i]);const a=d.useCallback(m=>{p(!0),l(m)},[]),f=d.useCallback((m,u,S)=>{a(Ss(i,m,u,S))},[a,i]),g=d.useCallback((m,u,S,b=t)=>{a(bs(i,m,u,S,b))},[a,i,t]),_=d.useMemo(()=>i.map(m=>({space:m,columns:m.ids.map(u=>o.get(u)).filter(u=>u!==void 0)})).filter(m=>m.columns.length>0),[o,i]),h=d.useMemo(()=>_.flatMap(m=>m.columns),[_]);return{spaces:i,resolvedSpaces:_,flatColumns:h,reorderLane:f,stackLane:g,stackMax:gs(t)}}function Ls({lanes:e,onOpenTrace:t,onHorizonChange:s}){const[o,n]=d.useState(-1),l=d.useRef(new Map);d.useEffect(()=>{if(o<0)return;if(o>=e.length){n(e.length-1);return}const i=e[o];if(!i)return;const a=l.current.get(i.id);a?.scrollIntoView({block:"nearest",inline:"nearest"}),a?.focus()},[o,e]);const c=d.useCallback((i,a)=>{a?l.current.set(i,a):l.current.delete(i)},[]);d.useEffect(()=>{const i=a=>{if(!document.querySelector(".scope-lanes")||kt(a.target)||Ct()||e.length===0)return;const f=Number(a.key)-1;if(!a.metaKey&&!a.ctrlKey&&!a.altKey&&f>=0&&f<K.length){a.preventDefault(),s(K[f].key);return}if(a.key==="ArrowRight"||a.key==="ArrowDown"||a.key==="j"){a.preventDefault(),n(g=>ue(g,e.length,1));return}if(a.key==="ArrowLeft"||a.key==="ArrowUp"||a.key==="k"){a.preventDefault(),n(g=>ue(g,e.length,-1));return}if(a.key==="Home"||a.key==="g"&&!a.shiftKey){a.preventDefault(),n(0);return}if(a.key==="End"||a.key==="G"){a.preventDefault(),n(e.length-1);return}if(a.key==="Enter"||a.key===" "){const g=o<0?0:o,_=e[g];if(!_)return;a.preventDefault(),n(g),t(_,_.observe?.events?.at(-1))}};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[o,e,s,t]);const p=d.useCallback((i,a)=>({"data-cursor":o===i?!0:void 0,tabIndex:o===i?0:-1,ref:f=>c(a,f),onFocus:()=>n(i)}),[o,c]);return{focusedIndex:o,getLaneFocusProps:p}}const Ee=4;function Ae(e){switch(e){case"sm":return 1;case"md":return 2;case"lg":return Ee}}function ys(e,t){if(e==="sm"||e==="md"||e==="lg")return e;if(typeof e=="number"&&Number.isFinite(e)){const{tier:s,px:o}=Ue(e);if(s)return s;let n=t,l=Number.POSITIVE_INFINITY;for(const[c,p]of Object.entries(Ve)){const i=Math.abs(p-o);i<l&&(l=i,n=c)}return n}return t}function Ns(e,t){return Ae(ys(e,t))}function js(e,t){return e.length?Math.max(...e.map(s=>Ns(s,t))):Ae(t)}const ae=le("lanes-layout");function Ie(e){return e==="swim"||e==="grid"||e==="floor"}function ks(){try{const e=sessionStorage.getItem(ae);if(Ie(e))return e}catch{}return"swim"}function _e(){if(typeof window>"u")return null;const e=new URLSearchParams(window.location.search).get("layout")?.trim().toLowerCase();return Ie(e)?e:null}function Cs(){const[e,t]=d.useState(()=>_e()??ks()),s=d.useCallback(o=>{t(o);try{sessionStorage.setItem(ae,o)}catch{}typeof window>"u"||qe({searchPatch:{layout:o==="swim"?null:o},replace:!0})},[]);return d.useEffect(()=>{const o=_e();if(o&&o!==e){t(o);try{sessionStorage.setItem(ae,o)}catch{}}},[e]),{layoutMode:e,setLayoutMode:s}}function Es({message:e}){return r.jsx("li",{className:"scope-lanes__issue",children:r.jsx("span",{className:"scope-lanes__issue-msg",children:e})})}function As({navigate:e,agents:t}){const s=q(),{layoutMode:o,setLayoutMode:n}=Cs(),l=o==="floor",{now:c,horizon:p,setHorizon:i,horizonLabel:a,traceWindowMs:f,lanes:g,layout:_,deck:h,setLaneWidth:m,setDefaultLaneWidth:u,activeFilterLabel:S,issues:b,tailLoading:v}=Ne({scoutAgents:t,defaultWidthTier:"md",horizonOverride:l?"4h":void 0}),{resolvedSpaces:k,flatColumns:N,reorderLane:T,stackLane:E,stackMax:R}=ws(_.flat),L=o==="grid",[A,D]=d.useState(null),O=d.useRef(null),{scrollRef:W,onDragStart:Z,onDragEnd:J,scrollDragProps:Q}=ms({stackMax:R,onReorder:T,onStack:E,indicatorRef:O}),x=d.useCallback(w=>{W.current=w},[W]),y=d.useCallback((w,M)=>{const P=M??w.observe?.events?.at(-1);P&&D({lane:w,event:P})},[]),I=d.useMemo(()=>{const w=new Map;return N.forEach((M,P)=>w.set(M.lane.id,P)),w},[N]),{getLaneFocusProps:X}=Ls({lanes:N.map(w=>w.lane),onOpenTrace:y,onHorizonChange:i}),ee=d.useMemo(()=>v?"Loading sessions…":S?`No lanes match ${S} in the last ${a}.`:`No sessions with recent work in the last ${a}.`,[S,a,v]);return r.jsxs("div",{className:`scope-lanes${o==="grid"?" is-grid":""}`,"data-scope-presentation":!0,"data-scope-view":"lanes","data-scope-layout":o,"data-grid-cols":L?Ee:void 0,style:{"--scope-lane-stack-max":String(R)},...s,children:[r.jsx(ns,{liveCount:l?g.length:N.length,horizon:p,horizonLabel:a,layoutMode:o,laneWidth:h.defaultLaneWidth,onHorizonChange:i,onLayoutChange:n,onLaneWidthChange:u}),b.length>0?r.jsx("div",{className:"scope-lanes__issues",role:"status","aria-live":"polite",children:r.jsx("ul",{className:"scope-lanes__issues-list",children:b.map(w=>r.jsx(Es,{message:w.message},w.id))})}):null,(l?g.length:N.length)===0?r.jsx("div",{className:"scope-lanes__empty",children:ee}):l?r.jsx(jt,{lanes:g,now:c,onOpenTrace:y}):r.jsx("div",{className:"scope-lanes__canvas",role:"listbox","aria-label":"Session lanes",children:r.jsxs("div",{ref:x,className:`scope-lanes__scroll${o==="grid"?" is-grid":""}`,...Q,children:[k.map((w,M)=>{const P=w.space.orient==="column"&&w.columns.length>1,Te=Math.max(...w.columns.map(j=>j.widthPx)),Re=L?js(w.columns.map(j=>h.laneWidths[j.lane.id]??h.defaultLaneWidth),h.defaultLaneWidth):void 0;return r.jsx(ss,{space:w.space,layoutMode:o,widthPx:Te,gridSpan:Re,children:w.columns.map(j=>{const De=I.get(j.lane.id)??0;return r.jsx(ts,{lane:j.lane,layoutMode:o,compact:P,laneWidth:h.laneWidths[j.lane.id]??h.defaultLaneWidth,defaultLaneWidth:h.defaultLaneWidth,onLaneWidthChange:te=>m(j.lane.id,te),nowMs:c,traceWindowMs:f,traceWindowLabel:a,onOpenTrace:y,onTraceEventSelect:y,onDragStart:Z,onDragEnd:J,onDragKeyMove:te=>{T(j.lane.id,M,te==="before")},focusProps:X(De,j.lane.id)},j.key)})},w.space.ids.join(":"))}),r.jsx("div",{ref:O,className:"scope-lane-drop","aria-hidden":"true",hidden:!0})]})}),A?r.jsx(Le,{target:A,onClose:()=>D(null)}):null]})}const Is=1e4;function Ts({route:e,navigate:t}){const s=q(),[o,n]=d.useState(null),[l,c]=d.useState(null),p=d.useCallback(async()=>{c(null);try{n(await Et("/api/tail/discover"))}catch(f){c(f instanceof Error?f.message:String(f))}},[]);d.useEffect(()=>{p();const f=setInterval(()=>{p()},Is);return()=>clearInterval(f)},[p]);const i=o?.transcripts?.length??0,a=o?.processes?.length??0;return e.sessionId?r.jsx("div",{className:"scope-sessions-route","data-scope-view":"sessions",...s,children:r.jsx(It,{sessionRef:e.sessionId,navigate:t})}):r.jsx("div",{className:"scope-sessions-route","data-scope-view":"sessions",...s,children:r.jsxs("div",{className:"scope-sessions",children:[r.jsx("header",{className:"scope-sessions__bar",children:r.jsxs("div",{className:"scope-sessions__summary",children:[r.jsxs("span",{className:"scope-sessions__count",children:[i," session",i===1?"":"s"]}),a>0?r.jsxs("span",{className:"scope-sessions__live",children:[a," active"]}):null,l?r.jsx("span",{className:"scope-sessions__warn",children:"discovery error"}):null]})}),r.jsx("div",{className:"scope-sessions__body",children:r.jsx("div",{className:"scope-sessions__atop",children:r.jsx(At,{navigate:t})})})]})})}function Rs({navigate:e,tailQuery:t}){const s=q();return r.jsx("div",{className:"scope-tail-route","data-scope-view":"tail",...s,children:r.jsxs("div",{className:"scope-tail",children:[r.jsx("header",{className:"scope-tail__bar",children:r.jsxs("div",{className:"scope-tail__summary",children:[r.jsx("span",{className:"scope-tail__count",children:"tail"}),r.jsx("span",{className:"scope-tail__hint",children:"live event stream"}),t?r.jsxs("span",{className:"scope-tail__query",title:t,children:["q=",t]}):null]})}),r.jsx("div",{className:"scope-tail__body",children:r.jsx("div",{className:"scope-tail__stream",children:r.jsx(Tt,{navigate:e,initialFilter:t,variant:"tail",chrome:"embedded"})})})]})})}function Ds(e,t,s,o){if(!Ye(o))return null;const n=Ze(e);if(!n)return null;switch(n){case"lanes":return r.jsx(As,{navigate:t,agents:s});case"tail":return e.view!=="ops"||e.mode!=="tail"?null:r.jsx(Rs,{navigate:t,tailQuery:e.tailQuery});case"sessions":return e.view!=="sessions"?null:r.jsx(Ts,{route:e,navigate:t});case"agents":return e.view!=="agents-v2"||tt(e)?null:r.jsx(Zt,{navigate:t,agents:s});default:return null}}function Ps(){const{route:e,navigate:t,agents:s}=Se(),{pathname:o}=Je(),n=Ds(e,t,s,o);return r.jsx(Xe,{children:n??et(e,t,s)})}function Os(){const{route:e,navigate:t}=Se();return Ot({className:"scout-nav-tabs scout-nav-tabs--scope",brandTag:Qe,items:Oe,activeKey:Pe(e),navigate:t})}function Ms(){const e=ie(),t=Rt(),s=Os();return we("nav.sidebar",!1)?null:e?s:t}function $s(){const e=ie(),t=Dt();return we("nav.sidebar",!1)?null:e?d.createElement("div",{className:"scout-nav-actions"}):t}function Bs(){const e=ie(),t=Pt();return e?{active:!1,dismissible:!0}:t}function Sl(e){e.slots.Content=Ps,e.hooks.useNavCenter=Ms,e.hooks.useNavActions=$s,e.hooks.useTakeover=Bs}export{Qe as SCOPE_BRAND_LABEL,xl as SCOPE_ENABLE_HINTS,Gl as SCOPE_FLAG_BUNDLE,Hl as SCOPE_FLAG_BUNDLE_ALIASES,zl as SCOPE_FLAG_KEY,jl as SCOPE_FLAG_REGISTRY_KEY,kl as SCOPE_LANE_DECK_DEFAULTS,Ke as SCOPE_LANE_DECK_PROFILE,Kl as SCOPE_LEGACY_FLAG_BUNDLE,Ul as SCOPE_LEGACY_FLAG_KEY,Vl as SCOPE_LEGACY_PATH_PREFIX,ql as SCOPE_LEGACY_PATH_SEGMENT,Yl as SCOPE_PATH_PREFIX,Zl as SCOPE_PATH_SEGMENT,Jl as SCOPE_ROUTE_SEGMENTS,Ql as SCOPE_STORAGE_PREFIX,Oe as SCOPE_TOP_NAV_ITEMS,Ps as ScopeAppContent,Zt as ScopeDirView,ts as ScopeLaneColumn,Wt as ScopeLaneDetailView,Le as ScopeLaneTraceSheet,ns as ScopeLanesBar,As as ScopeLanesView,Cl as buildScopePath,El as buildScopeRoutePath,Xl as canonicalizeScopePathname,wl as isScopeOnboardingExempt,Ye as isScopePath,Al as isScopePresentation,Il as parseScopeRouteFromUrl,Tl as preserveLocationSearch,Ds as resolveScopeContentPane,Rl as routeBelongsInScopeNamespace,Ze as routeToScopeSegment,Dl as scopeInstrumentBundleLayer,Pl as scopeLaneDeckProfileId,Ol as scopePresentationAttrs,Ll as scopePresentationTitle,Ml as scopeRoutePath,le as scopeStorageKey,$l as scopeSurfaceFlagDefinition,Pe as scopeTopNavKeyForRoute,Bl as scopeViewSegment,Fl as segmentToRoute,ie as useScopePresentation,q as useScopePresentationAttrs,yl as useScopeShellChrome,Sl as wireScopeOntoScout};
1
+ import{u as q,a as ie,s as Pe,S as Oe}from"./scope-views-CmG2X_S0.js";import{b as xl,i as wl,c as Ll,d as yl}from"./scope-views-CmG2X_S0.js";import{ab as pe,ac as Me,$ as $e,a0 as Be,a1 as Fe,a2 as We,a3 as de,a4 as Ge,a5 as He,a6 as ze,ad as Ke,a7 as Ue,ae as Ve,P as qe,T as Ye,R as Ze,u as Je}from"./router-Bx1tiwVe.js";import{af as jl,ag as kl,ah as Cl,ai as El,aj as Al,ak as Il,al as Tl,am as Rl,an as Dl,ao as Pl,U as Ol,ap as Ml,aq as $l,ar as Bl,Q as Fl}from"./router-Bx1tiwVe.js";import{r as d,j as r,D as le,m as Qe}from"./index-NRbRrZw-.js";import{k as Gl,y as Hl,t as zl,E as Kl,w as Ul,G as Vl,C as ql,v as Yl,B as Zl,l as Jl,H as Ql,I as Xl}from"./index-NRbRrZw-.js";import{u as Se}from"./Provider-Cd-QZltN.js";import{S as Xe}from"./ScoutSurface-DdVzN3DA.js";import{resolveContentPane as et}from"./resolve-panes-BI3WdDS-.js";import{i as tt}from"./model-IGCUEsMy.js";import{t as st}from"./bash-format-BRV5C6Gv.js";import{t as be}from"./time-Dhsh_2EG.js";import{i as ot,l as ve,j as nt,k as rt,m as at,e as it,g as lt,n as ct,r as pt,A as K,D as dt,h as ut}from"./agent-lanes-model-BKOs_32K.js";import{S as mt}from"./SlidePanel-BLrLF9dt.js";import{H as ft}from"./HarnessMark-CEzmPFHC.js";import{o as ht,f as gt,b as _t}from"./lane-observe-vfyACHi0.js";import{S as xe}from"./SessionObserve-pbozyqVv.js";import{LaneTraceEventFocus as St}from"./LaneTraceEventFocus-BfKZ7G5c.js";import{b as bt}from"./agent-lane-detail-D5EIlX7_.js";import{r as vt,u as xt}from"./AgentLanesView-Bm85ittm.js";import{u as wt}from"./observe-DkAhvkfn.js";import{f as Lt}from"./terminal-sessions-D4dHTRkt.js";import{o as yt,i as Nt}from"./surface-activity-B1rgWB1i.js";import{AgentFloorView as jt}from"./AgentFloorView-CoGh2q5f.js";import{i as kt,c as Ct,n as ue}from"./keyboard-nav-feLCB3Zm.js";import{a as Et}from"./api-DEHEgJ9m.js";import{RawSessionsTable as At}from"./RawSessionsTable-CbopOF34.js";import{SessionRefScreen as It}from"./SessionRefScreen-UVNVrwAf.js";import{TailView as Tt}from"./TailView-C3rjOV7i.js";import{a as we}from"./provider-Bq0ScH3v.js";import{c as Rt,b as Dt,u as Pt,r as Ot}from"./hooks-CeCCO6Yg.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./sse-QSbhyq9A.js";import"./index-BWHgHrtv.js";import"./colors-BtO5_zlx.js";import"./scoutbot-D4vuKzOL.js";import"./DocumentFocusViewer-CetjnYut.js";import"./createLucideIcon-Da0lq809.js";import"./TextDocumentSurface-B29xZNlI.js";import"./file-text-BGVkHS4_.js";import"./x-DuzAbpk5.js";import"./chevron-right-CV7sEVBS.js";import"./code-xml-CPzpZkhu.js";import"./arrow-left-B0CdJdAC.js";import"./arrow-right-YRBoTTyf.js";import"./scout-voice-BT3gYDhU.js";import"./fx-z37u1o2z.js";import"./NewChatComposer-BPsg8shF.js";import"./text-B2UZi3l9.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-Be0T8xv2.js";import"./conversation-model-CIzM7aXT.js";import"./index-CD2foMB8.js";import"./NewChatOrigin-CCiPg_WR.js";import"./chevron-down-Jh540uf3.js";import"./search-HmdKXdtR.js";import"./chunk-HRAB3GC3-BYQZ1LOn.js";import"./content-CIJo_-JS.js";import"./ActivityScreen-DRHTQIxu.js";import"./clipboard-e3fSpeo7.js";import"./mentions-KNASbAjG.js";import"./AgentDetailCard-2DZQahiN.js";import"./AgentLiveActions-BmXDRxER.js";import"./terminal-takeover-BArLfNtd.js";import"./openContent-C6XO6kr5.js";import"./eye-B908WSFH.js";import"./terminal-DNZTCr6a.js";import"./EmptyState-uQbB-bvP.js";/* empty css */import"./left-BWBZQhxQ.js";/* empty css */import"./AgentAvatar-CQqJcwOQ.js";import"./SpriteAvatar-vpHO-rXs.js";import"./agent-identity-CIMT7oV6.js";import"./content-BwCmeUmF.js";import"./AgentInfoScreen-5ybfIL9p.js";/* empty css */import"./BackToPicker-CXsbxbHM.js";import"./ObservedTopologyPanel-CfHYu-4Z.js";import"./AgentsScreen-Bod6AHlA.js";/* empty css */import"./AgentsSubnav-CsvYzzQ-.js";import"./SecondaryNav-CCQqTT3e.js";import"./secondaryNavConfig-BVQiyAXu.js";import"./message-square-DURSOrUr.js";import"./compass-D5Io6BIV.js";import"./settings-BpKRzxOD.js";import"./git-branch-CdJU49Af.js";import"./scroll-text-uulNqrf7.js";import"./library-Dx14WNGd.js";/* empty css */import"./AgentSessions-C_tAfGN2.js";import"./agents-project-model-UYiamtrU.js";import"./profile-Y0X7HZHc.js";import"./context-budget-DX_fwUs3.js";import"./session-catalog-b7B1Sof1.js";import"./terminal-relay-C2TUIuh1.js";import"./ConversationScreen-D77SoLos.js";import"./ConversationComposer-DPWu3HvK.js";import"./zap-CocRNtyr.js";import"./message-markup-BP2nH9kQ.js";import"./message-visibility-kJM8XcSG.js";import"./sessionRead-CvFz2RHv.js";import"./types-B0PlfpKc.js";/* empty css */import"./ConversationHeader-Ce7TENb9.js";import"./AstronautSuit-C05Ezxl9.js";import"./ConversationFeedRows-MhcPfxUr.js";import"./ConversationPanels-D-b5SLO-.js";import"./tail-display-DcliDVkW.js";import"./lane-edit-display-C_Aujldz.js";import"./use-reduced-motion-0fAsybdo.js";import"./proxy-DtC2iXnT.js";import"./activity-DTqqWiyV.js";import"./message-circle-2v9Udia0.js";import"./tail-events-B7BrDaFi.js";import"./ConversationStatus-lIvSKRic.js";import"./check-BdovFDz8.js";import"./sparkles-CgTby-ap.js";import"./AgentDefinitionsWorkspace-D0LDEqfl.js";import"./agent-specialization-D3-sqwhU.js";import"./project-overview-helpers-BQTc_Ous.js";import"./FileViewerPane-ebbCtnHE.js";/* empty css */import"./agent-essentials-DbbJm3ne.js";import"./lane-tool-detail-0WhMf4Vj.js";import"./LaneToolHoverCard-DCY-m0JK.js";import"./lane-ask-display-B6iCAVcd.js";import"./ObserveTextFlow-CKYltTPJ.js";import"./SessionObserveEvidence-C54Xvbps.js";import"./wrench-DwFKomxg.js";import"./external-link-BheHazeW.js";/* empty css *//* empty css */import"./right-C4GXB45w.js";import"./openAgent-Dbv5wfuL.js";import"./TmuxPeek-eVfqPB4m.js";import"./refresh-cw-C4E58VJK.js";import"./ProjectsRail-CzS0qTCI.js";import"./AddProjectForm-Dw2oyCcz.js";import"./projects-inbox-Cbfj4Hx7.js";import"./archive-DPMdoW_D.js";import"./ProjectsScreen-0gx7f30h.js";import"./ProjectsInbox--ZIqo-IE.js";import"./ui-LM8pS8qE.js";import"./CrewWorkspaces-CdojnRMG.js";import"./cpu-CtQc0Z9D.js";import"./sliders-horizontal-D2O6QiDN.js";import"./api-BHHEUSS3.js";import"./cache-BO2Bd_LV.js";import"./arrow-up-right-CilNLf4t.js";/* empty css */import"./ProjectAgentProfile-BjykZ2Xd.js";import"./ProjectAgentProfileBar-B4RqrI0Q.js";import"./ProjectsThreadAside-BsQRFbdy.js";import"./content-BMvXPLiQ.js";import"./BriefingDetailScreen-Uvnk3t0v.js";import"./scoutbot-markdown-DIhLsYxz.js";/* empty css */import"./BriefingsScreen-DLIJ8eYj.js";import"./content-BWTbfMDg.js";import"./BrokerScreen-LZ3T7hGG.js";import"./status-tone-BM_zuRy1.js";import"./broker-display-Q75fupqG.js";import"./BrokerMetadataPanel-C8WERmHF.js";import"./DispatchAftermath-D797PbCe.js";import"./follow-route-BvcGtBIL.js";import"./ShikiPane-CiVH-45m.js";import"./plus-ZReaTFF-.js";import"./send-horizontal-DOjHkZCD.js";import"./copy-DQAM0eSY.js";import"./radio-BC9TO5Pl.js";import"./bot-Ba3gcRVa.js";import"./left-CCGR6tIF.js";import"./conversation-prefs-DNre-Lcx.js";import"./use-conversation-list-htp0Ui63.js";import"./use-fleet-active-asks-BhuTn5mV.js";import"./RailRow-BY6fxePa.js";/* empty css */import"./content-B-i0XY-t.js";import"./MessagesScreen-CR5v-WIE.js";import"./right-HJJzRuGD.js";import"./CodeScreen-WhTvVUKY.js";import"./CodeDiffPane-CtgqIuS0.js";import"./usePierreRuntime-CVTMzChM.js";/* empty css */import"./CodeProjectPicker-C4W_udc7.js";/* empty css */import"./content-3b_jmxEx.js";import"./FollowScreen-Bfu2_KtU.js";import"./content-C1K3NcZa.js";import"./HarnessesScreen-CGhRsqD5.js";import"./useContentSecondaryNav-4atpGgFw.js";import"./OpsSubnav-BK9Fj3gU.js";/* empty css */import"./left-B3ofA1Pr.js";import"./operator-attention-BqoWAlhp.js";import"./content-C34J5_Af.js";import"./HomeHero-DdxTQ-6a.js";import"./persistent-state-Bm_0TmZL.js";import"./home-moving-signal-CZo2bYBi.js";import"./home-live-action-BkqGLVRY.js";import"./file-code-corner-C5Pc6znt.js";import"./right-D2_rmbAH.js";import"./left-Dfwzkwh_.js";import"./mesh-view-store-B0lqpw8M.js";import"./mesh-buckets-CfAukILK.js";import"./content-CvqIqVAV.js";import"./MeshScreen-dxNxRtKm.js";import"./MeshCanvas-CZYHLTvw.js";import"./Canvas-BO9mx5_P.js";import"./useAgentHoverCard-BIrm8esH.js";import"./local-agents-Q6KQ12B9.js";/* empty css */import"./right-CXetlD8X.js";import"./left-BmTKCv4f.js";import"./mesh-ops-C-i8OMiM.js";import"./use-mesh-ops-items-CD-qsvNX.js";import"./content-Dh39SSvP.js";import"./use-scout-dev-flags-DV_I6URU.js";import"./right-Dqp--KwX.js";import"./left-41_3QKk1.js";import"./left-agents-Bgahk0FF.js";import"./left-default-CtkfAquc.js";import"./left-lanes-CpujaVN3.js";import"./lane-roster-store-BAmj273z.js";import"./left-mission-Bbd-fW6W.js";import"./mission-control-store-HeCy97KT.js";import"./MissionLeftAgentRow-BSRRiiig.js";import"./page-status-CEP5pGf3.js";import"./left-advisor-yrzW1Kwz.js";import"./server-CX-xQjJA.js";import"./layers-D9fblkql.js";import"./gauge-sc_gb5Zw.js";import"./content-DoypqDj5.js";import"./OpsScreen-QXRJY8Vf.js";/* empty css */import"./MissionControlView-BGj1qnI2.js";/* empty css */import"./MissionContextRail-MTL2EAnr.js";import"./agent-lane-preview-BhplDYGf.js";import"./mission-wall-CocIM1cF.js";import"./mission-control-model-C0fByIjm.js";import"./MissionFocusOverlay-hWi6y87j.js";import"./MissionLogPane-bbG_pM9B.js";import"./OpsAgentsView-dEtw9yt-.js";/* empty css */import"./DataTable-DFacT2uu.js";/* empty css */import"./HostAdvisorView-BAUi5ZxX.js";/* empty css */import"./layout-grid-Vd1chalc.js";import"./AtopView-DOKJbiJL.js";/* empty css *//* empty css */import"./AgentLanesPreflight-BwkGk8JH.js";import"./AgentLaneChrome-Do7CXwin.js";import"./AgentLaneCard-CeSjWWwh.js";/* empty css */import"./AgentLaneSummaryResize--lHgnncr.js";import"./agent-lane-card-model-CSugZCdy.js";import"./AgentLaneDetailSheet-BD8B51ka.js";import"./LaneTraceDetailSheet-CFsCvKa3.js";import"./content-DRnwm-Vu.js";import"./RepoDiffPageScreen-DeC8fsh_.js";import"./RepoDiffViewerLazy-BU3V7Kwq.js";import"./ReposScreen-BQwIShXf.js";/* empty css */import"./selection-bridge-n4wNTm1B.js";import"./right-CIzaNH58.js";import"./content-n3mvc6NQ.js";import"./KnowledgeSearchScreen-CRei9pyl.js";/* empty css */import"./clock-DpfYdWcr.js";import"./KnowledgeSearchInspector-GjmxYBi_.js";import"./content-CGRtIS2m.js";import"./SessionsScreen-KeDb5gz4.js";import"./FlightObserveScreen-sqvt7HUO.js";/* empty css */import"./right-BA0F8fPI.js";import"./content-BGeo5tgd.js";import"./SettingsScreen-C7zJgZzj.js";import"./StatusPill-a3XBw1GG.js";import"./AgentConfigurationScreen-C3OI6JmZ.js";import"./SettingsDrawer-CWdj0VvN.js";import"./credentials-qwds23lv.js";import"./VoicePermissionsPanel-DpInOlVq.js";import"./left-BhA6essi.js";import"./usePersistentState-InmPXIN4.js";import"./session-table-Djain1Qr.js";import"./Terminal-CMQFmHnn.js";/* empty css */import"./HerdrSession-BDLa_rrK.js";import"./TerminalRelay-CIHlLVf1.js";import"./right-CnRcQS_I.js";import"./content-BD-DNFmb.js";import"./WorkDetailScreen-DYwgGaJs.js";import"./WorkFilesViewer-C7H5fXaZ.js";import"./right-WCMb8YXJ.js";import"./RealtimeVoiceScreen-CU4uXz4C.js";import"./agent-autocomplete-cOPLtuhM.js";import"./gestures-AzPBSf20.js";import"./rocket-BahfIwFz.js";function Mt(e){return e?`${e[0]?.toUpperCase()}${e.slice(1)}`:"local"}function $t(e){const t=st(e.trim()),s=t.replace(/\/+$/u,"").split(/[\\/]/u).filter(Boolean);return s.length===0?t:s.slice(-2).join("/")}function Bt(e){const t=e?.trim();return t?t.replace(/\.jsonl$/u,"").slice(0,8):"—"}function B(e,t=Date.now()){const{agent:s,source:o,observe:n,lastActiveAt:l}=e,c=s.harness?.trim()||o,p=ot(n),i=$t(s.cwd||s.project||s.projectRoot||"—"),a=p?`${c} · live`:`${c} · ${be(l??t)}`;return{source:Mt(c),sessionRef:Bt(s.harnessSessionId),path:i,statusLine:a,live:p}}const Ft={think:"Thought",tool:"Tool",ask:"Request",message:"Message",note:"Note",system:"System",boot:"Boot"};function Wt({lane:e,event:t,nowMs:s=Date.now()}){const{agent:o,observe:n,source:l,lastActiveAt:c}=e,p=d.useMemo(()=>bt(e),[e]),i=B(e,s),a=t??n?.events?.at(-1),f=a?Ft[a.kind]??a.kind:null,g=n?.metadata?.session?.sessionStart,_=a?ht(a,g):null,h=_!=null?gt(_,c):void 0,m=_!=null?_t(_):void 0,u=a?.kind==="tool"||a?.kind==="ask"?a:void 0;return r.jsxs("div",{className:"scope-lane-detail",children:[r.jsxs("header",{className:"scope-lane-detail__head",children:[r.jsxs("div",{className:"scope-lane-detail__copy",children:[r.jsx("span",{className:"scope-lane-detail__kicker",children:"Lane trace"}),r.jsxs("h2",{className:"scope-lane-detail__title",children:[i.source,r.jsxs("span",{className:"scope-lane-detail__ref",children:[" · ",i.sessionRef]})]}),r.jsxs("div",{className:"scope-lane-detail__sub",children:[i.path,f?` · ${f}`:"",c?` · ${be(c)}`:""]})]}),r.jsx(ft,{harness:o.harness??p.harness,size:18,className:"scope-lane-detail__hmark"})]}),r.jsxs("dl",{className:"scope-lane-detail__meta","aria-label":"Session stats",children:[r.jsxs("div",{className:"scope-lane-detail__stat",children:[r.jsx("dt",{children:"events"}),r.jsx("dd",{children:p.events})]}),r.jsxs("div",{className:"scope-lane-detail__stat",children:[r.jsx("dt",{children:"tools"}),r.jsx("dd",{children:p.tools})]}),r.jsxs("div",{className:"scope-lane-detail__stat",children:[r.jsx("dt",{children:"files"}),r.jsx("dd",{children:p.files})]}),r.jsxs("div",{className:"scope-lane-detail__stat",children:[r.jsx("dt",{children:"model"}),r.jsx("dd",{children:p.model??"—"})]}),r.jsxs("div",{className:"scope-lane-detail__stat",children:[r.jsx("dt",{children:"branch"}),r.jsx("dd",{children:p.branch??"—"})]}),r.jsxs("div",{className:"scope-lane-detail__stat",children:[r.jsx("dt",{children:"status"}),r.jsx("dd",{children:i.statusLine})]})]}),r.jsx("div",{className:"scope-lane-detail__trace",children:r.jsx(xe,{data:n??void 0,agentId:l==="scout"?o.id:void 0,sessionId:o.harnessSessionId??p.sessionId,showRail:!1,variant:"default",surface:"scope",initialCursorT:a?.t,focusEventId:a?.id,inlineFocusEventId:u?.id,inlineFocusContent:u?r.jsx(St,{event:u,wallLabel:h,wallTitle:m,variant:"inline"}):void 0})})]})}function Le({target:e,onClose:t}){const{lane:s,event:o}=e,n=B(s);return r.jsxs(mt,{open:!0,onClose:t,side:"right",owner:"scope.lane-trace",layer:"elevated",resizable:!0,defaultSize:980,minSize:560,maxSize:1280,scrollLock:!0,ariaLabel:`${n.source} ${n.sessionRef} trace`,className:"scope-lane-trace-sheet","data-scope-presentation":!0,children:[r.jsx("div",{className:"scope-lane-trace-sheet__toolbar",children:r.jsx("button",{type:"button",className:"scope-lane-trace-sheet__close",onClick:t,"aria-label":"Close",children:"×"})}),r.jsx(Wt,{lane:s,event:o})]})}function Gt(e,t){const[s,o]=d.useState(()=>pe(e));d.useEffect(()=>{o(pe(e))},[e]);const n=d.useCallback(u=>{Me(u),o(u)},[]),l=d.useMemo(()=>vt({autoLanes:t,deck:s,defaultWidthTier:e}),[t,s,e]),c=d.useCallback((u,S="pinned_left")=>{n($e(s,{laneId:u.id,title:ve(u.agent,u.source),zone:S,width:s.laneWidths[u.id]}))},[s,n]),p=d.useCallback(u=>{n(Be(s,u))},[s,n]),i=d.useCallback((u,S)=>{n(Fe(s,u,S))},[s,n]),a=d.useCallback(u=>{n(We(s,u))},[s,n]),f=d.useCallback((u,S)=>{n(de(s,{kind:"harness",title:S??`${u} sessions`,harness:u,zone:"pinned_left",width:s.defaultLaneWidth}))},[s,n]),g=d.useCallback(()=>{n(de(s,{kind:"attention",title:"Needs attention",zone:"pinned_left",width:"sm"}))},[s,n]),_=d.useCallback(()=>{n(Ge(s))},[s,n]),h=d.useCallback(u=>He(s,u),[s]),m=d.useCallback(u=>ze(s,u),[s]);return{deck:s,layout:l,pinLane:c,unpinLane:p,setLaneWidth:i,setDefaultLaneWidth:a,addHarnessLane:f,addAttentionLane:g,clearPins:_,isPinned:h,pinnedZone:m}}const ye=le("lanes-horizon");function Ht(){try{const e=sessionStorage.getItem(ye);if(e&&K.some(t=>t.key===e))return e}catch{}return dt}function Ne({scoutAgents:e,defaultWidthTier:t="md",harnessFilter:s,projectFilter:o,horizonOverride:n}){const[l,c]=d.useState(Date.now()),[p,i]=d.useState(Ht),a=n??p,[f,g]=d.useState([]),[_,h]=d.useState(()=>new Set),m=ut(a),u=nt(a),S=rt(a),{discovery:b,events:v,loadState:k}=xt({includeTranscriptReplay:!0,discoveryIntervalMs:5e3,recentLimit:m,pauseWhenHidden:!0});d.useEffect(()=>{const x=setInterval(()=>c(Date.now()),1e4);return()=>clearInterval(x)},[]),d.useEffect(()=>{let x=!1;const y=async()=>{if(Nt())try{const ee=await Lt({includeDiscovered:!1});x||g(ee)}catch{x||g([])}};y();const I=setInterval(()=>{y()},1e4),X=yt(()=>{y()});return()=>{x=!0,clearInterval(I),X()}},[]),d.useEffect(()=>{try{sessionStorage.setItem(ye,p)}catch{}},[p]);const N=d.useRef(at()),T=d.useMemo(()=>e.filter(x=>it(x,l,a)),[e,l,a]),E=wt(T,{pauseWhenHidden:!0}),R=k.discovery==="loading"||k.recent==="loading";d.useEffect(()=>{if(_.size===0)return;const x=setTimeout(()=>h(new Set),900);return()=>clearTimeout(x)},[_]);const{lanes:L,issues:A,freshLaneIds:D}=d.useMemo(()=>{const x=lt({transcripts:b?.transcripts??[],tailEvents:v,processes:b?.processes??[],scoutAgents:e,terminalSessions:f,observeCache:E,now:l,workingOnly:!0,horizon:a}),y=ct(x.lanes,N.current),I=[...pt(b),...x.issues];return{lanes:y.lanes,issues:I,freshLaneIds:y.newLaneIds}},[b,v,e,f,E,l,a]);d.useEffect(()=>{if(A.length!==0)for(const x of A)console.warn(`[agent-lanes] ${x.message}`,x)},[A]),d.useEffect(()=>{D.length!==0&&h(x=>{const y=new Set(x);for(const I of D)y.add(I);return y})},[D.join("\0")]);const O=d.useMemo(()=>L.filter(x=>Kt(x,{harnessFilter:s,projectFilter:o})),[L,s,o]),{deck:W,layout:Z,setLaneWidth:J,setDefaultLaneWidth:Q}=Gt(t,O);return{profileId:Ke,now:l,horizon:a,setHorizon:i,horizonLabel:S,traceWindowMs:u,lanes:O,issues:A,newLaneIds:_,tailLoading:R,deck:W,layout:Z,setLaneWidth:J,setDefaultLaneWidth:Q,activeFilterLabel:Ut({harnessFilter:s,projectFilter:o})}}function me(e){const t=e?.trim().toLowerCase();return t||null}function se(e){return e.trim().toLowerCase().replace(/['"]/gu,"").replace(/[^a-z0-9]+/gu,"-").replace(/^-+|-+$/gu,"")}function zt(e){return e.trim().replace(/\/+$/u,"").split(/[\\/]/u).filter(Boolean).pop()?.trim()||null}function fe(e,t){if(!t)return!0;const s=se(t);return e.some(o=>{const n=o?.trim();if(!n)return!1;const l=n.toLowerCase(),c=zt(n);return l===t||se(n)===s||!!(c&&(c.toLowerCase()===t||se(c)===s))})}function Kt(e,t){const s=me(t.harnessFilter),o=me(t.projectFilter),{agent:n,facts:l,source:c}=e;return fe([n.harness,n.definitionId,l?.attribution,c],s)&&fe([n.project,n.projectRoot,n.cwd,l?.cwd],o)}function Ut(e){return[e.harnessFilter?.trim()?`harness ${e.harnessFilter.trim()}`:"",e.projectFilter?.trim()?`project ${e.projectFilter.trim()}`:""].filter(Boolean).join(" · ")}function Vt(e){return e?`${e[0]?.toUpperCase()}${e.slice(1)}`:"local"}function qt(e){const t=new Map;for(const s of e){const o=s.agent.harness?.trim()||s.source,n=t.get(o)??[];n.push(s),t.set(o,n)}return[...t.entries()].map(([s,o])=>{const n=[...o].sort((c,p)=>(p.lastActiveAt??0)-(c.lastActiveAt??0)),l=n.filter(c=>B(c).live).length;return{harness:s,label:Vt(s),lanes:n,liveCount:l}}).sort((s,o)=>o.lanes.length-s.lanes.length)}function Yt({lane:e,nowMs:t,onOpen:s}){const o=B(e,t),n=e.observe?.events?.length??0,l=c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),s(e))};return r.jsxs("div",{className:`scope-dir__row${o.live?" is-live":""}`,role:"button",tabIndex:0,onClick:()=>s(e),onKeyDown:l,"aria-label":`${o.source} ${o.sessionRef}`,children:[r.jsx("span",{className:`scope-dir__dot${o.live?" is-live":""}`,"aria-hidden":!0}),r.jsx("span",{className:"scope-dir__ref",children:o.sessionRef}),r.jsx("span",{className:"scope-dir__path",title:e.agent.cwd??e.agent.project??void 0,children:o.path}),r.jsxs("span",{className:"scope-dir__events",children:[n,r.jsx("span",{className:"scope-dir__unit",children:"ev"})]}),r.jsx("span",{className:"scope-dir__status",children:o.statusLine})]})}function Zt({navigate:e,agents:t}){const s=q(),{now:o,horizonLabel:n,lanes:l,tailLoading:c}=Ne({scoutAgents:t,defaultWidthTier:"md"}),p=d.useMemo(()=>qt(l),[l]),[i,a]=d.useState(null),f=d.useCallback(h=>{const m=h.observe?.events?.at(-1);m&&a({lane:h,event:m})},[]),g=l.length,_=p.reduce((h,m)=>h+m.liveCount,0);return r.jsxs("div",{className:"scope-dir","data-scope-presentation":!0,...s,children:[r.jsx("header",{className:"scope-dir__bar",children:r.jsxs("div",{className:"scope-dir__summary",children:[r.jsxs("span",{className:"scope-dir__count",children:[g," instance",g===1?"":"s"]}),_>0?r.jsxs("span",{className:"scope-dir__live",children:[_," live"]}):null,r.jsxs("span",{className:"scope-dir__window",children:["window ",n]})]})}),p.length===0?r.jsx("div",{className:"scope-dir__empty",children:c?"Discovering sessions…":"No sessions discovered for this workspace."}):r.jsx("div",{className:"scope-dir__body",children:p.map(h=>r.jsxs("section",{className:"scope-dir__group",children:[r.jsxs("header",{className:"scope-dir__group-head",children:[r.jsx("span",{className:"scope-dir__group-name",children:h.label}),r.jsx("span",{className:"scope-dir__group-kind",children:"runtime"}),r.jsxs("span",{className:"scope-dir__group-counts",children:[h.lanes.length," ",h.lanes.length===1?"instance":"instances",h.liveCount?` · ${h.liveCount} live`:""]})]}),r.jsx("div",{className:"scope-dir__list",role:"list",children:h.lanes.map(m=>r.jsx(Yt,{lane:m,nowMs:o,onOpen:f},m.id))})]},h.harness))}),i?r.jsx(Le,{target:i,onClose:()=>a(null)}):null]})}function Jt({laneId:e,grabbed:t,onKeyMove:s,onDragStart:o,onDragEnd:n}){const l=i=>{if(!(!i.altKey||!s)){if(i.key==="ArrowLeft"||i.key==="ArrowUp"){i.preventDefault(),i.stopPropagation(),s("before");return}(i.key==="ArrowRight"||i.key==="ArrowDown")&&(i.preventDefault(),i.stopPropagation(),s("after"))}},c=i=>{i.stopPropagation();const a=i.dataTransfer;if(!a)return;a.setData("text/plain",e),a.effectAllowed="move";const f=i.currentTarget.closest("[data-lane-id]");f instanceof HTMLElement&&(a.setDragImage(f,Math.min(48,f.clientWidth/2),18),f.classList.add("is-dragging")),o?.(e)},p=i=>{i.currentTarget.closest("[data-lane-id]")?.classList.remove("is-dragging"),n?.()};return r.jsx("span",{className:"scope-lane__drag",role:"button",tabIndex:0,draggable:!0,"aria-grabbed":t?"true":"false","aria-keyshortcuts":"Alt+ArrowLeft Alt+ArrowRight Alt+ArrowUp Alt+ArrowDown","aria-label":"Drag to reorder lane. Drop in a gutter for a new column. Alt+arrow keys also move.",title:"Drag to reorder · drop in gutters for a new column",onClick:i=>i.stopPropagation(),onKeyDown:l,onDragStart:c,onDragEnd:p,children:"⠿"})}const Qt=["sm","md","lg"],Xt={sm:"¼",md:"½",lg:"full"},es={sm:"Quarter row",md:"Half row",lg:"Full row"};function je({value:e,defaultValue:t,onChange:s,compact:o=!1,label:n="Lane width",variant:l="tier"}){const c=typeof e=="string"?e:t,p=l==="grid";return r.jsx("div",{className:`scope-lane-width${o?" is-compact":""}${p?" is-grid":""}`,role:"group","aria-label":n,onClick:i=>i.stopPropagation(),onKeyDown:i=>i.stopPropagation(),children:Qt.map(i=>r.jsx("button",{type:"button",className:`scope-lane-width__btn${c===i?" is-on":""}`,"aria-pressed":c===i,title:p?es[i]:`${i.toUpperCase()} column width`,onClick:()=>s(i),children:p?Xt[i]:i},i))})}function ts({lane:e,layoutMode:t,compact:s,laneWidth:o,defaultLaneWidth:n,onLaneWidthChange:l,nowMs:c,traceWindowMs:p,traceWindowLabel:i,onOpenTrace:a,onTraceEventSelect:f,onDragStart:g,onDragEnd:_,onDragKeyMove:h,focusProps:m}){const{agent:u,observe:S,source:b}=e,v=B(e,c),k=!!(S&&S.events.length>0),N=m?.ref,T=m?{"data-cursor":m["data-cursor"],tabIndex:m.tabIndex,onFocus:m.onFocus}:void 0,E=()=>{const L=S?.events?.at(-1);a(e,L)},R=L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),E())};return r.jsxs("article",{ref:N,"data-lane-id":e.id,className:["scope-lane",v.live?"is-live":"",m?.["data-cursor"]?"is-cursor":"",s?"is-stack-compact":"",t==="grid"?"is-grid":""].filter(Boolean).join(" "),...T,children:[r.jsxs("header",{className:`scope-lane__head${s?" is-compact":""}`,role:"button",tabIndex:0,onClick:L=>{L.target instanceof HTMLElement&&L.target.closest(".scope-lane__drag")||E()},onKeyDown:R,"aria-label":`${v.source} ${v.sessionRef}`,children:[r.jsx(Jt,{laneId:e.id,onKeyMove:h,onDragStart:g,onDragEnd:_}),r.jsx("span",{className:"scope-lane__live","aria-hidden":"true"}),r.jsxs("div",{className:"scope-lane__meta",children:[r.jsxs("span",{className:"scope-lane__source",children:[v.source,r.jsxs("span",{className:"scope-lane__ref",children:[" · ",v.sessionRef]})]}),r.jsx("span",{className:"scope-lane__path",title:u.cwd??u.project??void 0,children:v.path}),s?null:r.jsx("span",{className:"scope-lane__status",children:v.statusLine}),l&&(t==="grid"||!s)?r.jsx(je,{value:o,defaultValue:n,onChange:l,compact:!0,label:`${v.sessionRef} width`,variant:t==="grid"?"grid":"tier"}):null]})]}),r.jsx("section",{className:"scope-lane__trace","aria-label":`${ve(u,b)} trace · ${i}`,children:k?r.jsx(xe,{data:S??void 0,agentId:b==="scout"?u.id:void 0,sessionId:u.harnessSessionId,showRail:!1,variant:"lane",surface:"scope",nowMs:c,traceWindowMs:p,traceWindowLabel:i,onLaneEventSelect:L=>f(e,L)}):r.jsx("div",{className:"scope-lane__empty",children:"waiting for events"})})]})}function ss({space:e,layoutMode:t,widthPx:s,gridSpan:o,children:n}){const l=t==="swim"?{"--scope-lane-width":`${s}px`}:t==="grid"&&o?{gridColumn:`span ${o}`}:void 0;return r.jsx("div",{className:`scope-lane-space${t==="grid"?" is-grid":""}`,style:l,"data-split":e.ids.length,"data-orient":e.orient,"data-grid-span":t==="grid"?o:void 0,children:r.jsx("div",{className:"scope-lane-space__lanes",children:n})})}const os=[{key:"swim",label:"swim"},{key:"grid",label:"grid"},{key:"floor",label:"floor"}];function ns({liveCount:e,horizon:t,horizonLabel:s,layoutMode:o,laneWidth:n,onHorizonChange:l,onLayoutChange:c,onLaneWidthChange:p}){const i=o==="floor";return r.jsxs("header",{className:"scope-lanes-bar",children:[r.jsxs("div",{className:"scope-lanes-bar__summary",children:[r.jsxs("span",{className:"scope-lanes-bar__count",children:[e," lane",e===1?"":"s"]}),r.jsx("span",{className:"scope-lanes-bar__window",children:i?"past 30m · lanes 4h":`window ${s}`})]}),r.jsxs("div",{className:"scope-lanes-bar__controls",children:[r.jsx("div",{className:"scope-lanes-bar__layouts",role:"group","aria-label":"Lane layout",children:os.map(a=>r.jsx("button",{type:"button",className:`scope-lanes-bar__layout${o===a.key?" is-on":""}`,"aria-pressed":o===a.key,onClick:()=>c(a.key),children:a.label},a.key))}),i?null:r.jsxs(r.Fragment,{children:[r.jsx(je,{value:n,defaultValue:n,onChange:p,label:"Default column width",variant:o==="grid"?"grid":"tier"}),r.jsx("div",{className:"scope-lanes-bar__horizons",role:"group","aria-label":"Activity window",children:K.map(a=>r.jsx("button",{type:"button",className:`scope-lanes-bar__horizon${t===a.key?" is-on":""}`,"aria-pressed":t===a.key,onClick:()=>l(a.key),children:a.label},a.key))})]})]})]})}const U=.22,ce=.46,$=14,V=12,oe={mode:null,before:!0,slotIndex:-1,stackBand:0,targetAgentId:null};function H(e,t){return[...t.querySelectorAll(".scope-lane-space")].indexOf(e)}function rs(e){return[...e.querySelectorAll("[data-lane-id]")].map(t=>t.getAttribute("data-lane-id")).filter(t=>!!t)}function G(e){return e?.querySelector("[data-lane-id]")??null}function ke(e,t){const s=e.filter(n=>{const l=n.getBoundingClientRect();return t>=l.top-$&&t<=l.bottom+$});if(!s.length)return[];const o=s[0].getBoundingClientRect().top;return e.filter(n=>Math.abs(n.getBoundingClientRect().top-o)<=$)}function C(e){return{before:!1,stackBand:0,targetAgentId:null,label:"",previewColumn:!1,col:null,...e}}function as(e,t,s){const o=[...e.querySelectorAll(".scope-lane-space")];if(!o.length)return null;const n=ke(o,s);if(!n.length)return null;const l=n[0].getBoundingClientRect().top,c=Math.max(...n.map(f=>f.getBoundingClientRect().bottom));if(s<l-$||s>c+$)return null;const p=n[0].getBoundingClientRect(),i=H(n[0],e),a=Math.max(V*3,p.width*U);if(t<=p.left+a)return C({mode:"reorder",before:!0,slotIndex:i,slot:n[0],col:G(n[0]),label:"new column",previewColumn:!0});for(let f=0;f<n.length;f+=1){const g=n[f],_=g.getBoundingClientRect(),h=H(g,e),m=n[f+1],u=Math.max(V*3,_.width*U);if(m){const S=m.getBoundingClientRect(),b=_.right-u*.4,v=S.left+u*.4;if(t>=b&&t<=v){const k=(_.right+S.left)/2;if(t<k)return C({mode:"reorder",before:!1,slotIndex:h,slot:g,col:G(g),label:"new column",previewColumn:!0});const N=H(m,e);return C({mode:"reorder",before:!0,slotIndex:N,slot:m,col:G(m),label:"new column",previewColumn:!0})}continue}if(t>=_.right-u)return C({mode:"reorder",before:!1,slotIndex:h,slot:g,col:G(g),label:"new column",previewColumn:!0})}return null}function is(e,t,s,o,n,l){const c=s.closest(".scope-lane-space");if(!c)return null;const p=s.getBoundingClientRect(),i=c.getBoundingClientRect(),a=H(c,o),f=rs(c),g=(t-p.top)/p.height,_=(e-p.left)/p.width,h=(e-i.left)/i.width;if(g<ce){if(h<U)return C({mode:"reorder",before:!0,slotIndex:a,slot:c,col:s,label:"new column",previewColumn:!0});if(h>1-U)return C({mode:"reorder",before:!1,slotIndex:a,slot:c,col:s,label:"new column",previewColumn:!0});const S=_<.5;return C({mode:"reorder",before:S,slotIndex:a,slot:c,col:s,label:"new column",previewColumn:!0})}const m=c.dataset.orient||"row";if(l<=1){const S=_<.5;return C({mode:"reorder",before:S,slotIndex:a,slot:c,col:s,label:"new column",previewColumn:!0})}if(m==="column"&&f.length>=l&&!f.includes(n)){const S=_<.5;return C({mode:"reorder",before:S,slotIndex:a,slot:c,col:s,label:"new column",previewColumn:!0})}const u=ls(c,t);return C({mode:"stack",stackBand:u.band,targetAgentId:s.getAttribute("data-lane-id"),slotIndex:a,slot:c,col:s,label:u.label,stackPreview:u.preview})}function z(e){const t=e.top+e.height*ce;return{top:t,left:e.left,width:e.width,height:Math.max(24,e.bottom-t)}}function he(e,t){return t<=1?e>=1:e>=t}function ls(e,t){const s=e.getBoundingClientRect(),o=[...e.querySelectorAll("[data-lane-id]")];if(!o.length)return{band:0,label:"stack",preview:z(s)};if(o.length===1){const p=o[0].getBoundingClientRect(),i=p.top+p.height*ce,a=p.top+p.height*.5,f=t<a?0:1,g=f===0?{top:i,left:s.left,width:s.width,height:Math.max(18,a-i)}:z(s);return{band:f,label:f===0?"stack above":"stack below",preview:g}}let n=o.length;for(let p=0;p<o.length;p+=1){const i=o[p].getBoundingClientRect();if(t<i.top+i.height/2){n=p;break}}let l;if(he(n,o.length))l=z(s);else if(n===0){const p=o[0].getBoundingClientRect();l={top:p.top,left:s.left,width:s.width,height:Math.max(18,p.height*.5)}}else{const p=o[n-1].getBoundingClientRect(),i=o[n].getBoundingClientRect();l={top:(p.bottom+i.top)/2-10,left:s.left,width:s.width,height:20}}const c=n===0?"stack top":he(n,o.length)?"stack bottom":"stack between";return{band:n,label:c,preview:l}}function cs(e,t,s,o,n){const l=document.elementFromPoint(e,t);if(l&&s.contains(l)){const c=l.closest("[data-lane-id]"),p=c?.getAttribute("data-lane-id");if(c&&p&&p!==o&&!c.classList.contains("is-dragging"))return is(e,t,c,s,o,n)}return as(s,e,t)}function ps(e){return e.querySelector(".scope-lane-space")?.getBoundingClientRect().width||360}function ds(e){return[e.mode,e.slotIndex,e.before,e.stackBand,e.targetAgentId,e.label,e.previewColumn,e.col?.getAttribute("data-lane-id")].join("|")}function us(e,t,s,o){const n=t.getBoundingClientRect(),l=s.slot.getBoundingClientRect();if(s.mode==="stack"){const g=s.stackPreview??z(l),_=s.label==="stack below"||s.label==="stack bottom";e.hidden=!1,e.className=`scope-lane-drop is-band${_?" is-bottom-stack":""}`,e.dataset.mode="stack",e.dataset.label=s.label||"",e.style.transform=`translate(${g.left-n.left+t.scrollLeft}px, ${g.top-n.top+t.scrollTop}px)`,e.style.width=`${g.width}px`,e.style.height=`${g.height}px`;return}if(s.previewColumn){const g=ps(t),_=[...t.querySelectorAll(".scope-lane-space")],h=ke(_,l.top+l.height/2),m=(h.length?h:[s.slot]).map(v=>v.getBoundingClientRect()),u=Math.max(...m.map(v=>v.height),l.height),S=Math.min(...m.map(v=>v.top)),b=Math.max(0,s.before?l.left-n.left+t.scrollLeft-g-V/2:l.right-n.left+t.scrollLeft+V/2);e.hidden=!1,e.className="scope-lane-drop is-column",e.dataset.mode="column",e.dataset.label=s.label||"",e.style.transform=`translate(${b}px, ${S-n.top+t.scrollTop}px)`,e.style.width=`${g}px`,e.style.height=`${u}px`;return}const c=s.slot.dataset.orient||"row";let p,i,a,f;c==="column"?(p=l.left-n.left+t.scrollLeft,i=(s.before?l.top:l.bottom)-n.top+t.scrollTop-2,a=l.width,f=3):(p=(s.before?l.left:l.right)-n.left+t.scrollLeft-2,i=l.top-n.top+t.scrollTop,a=3,f=l.height),e.hidden=!1,e.className="scope-lane-drop is-line",e.dataset.mode="reorder",e.dataset.label=s.label||"",e.style.transform=`translate(${p}px, ${i}px)`,e.style.width=`${a}px`,e.style.height=`${f}px`}function ne(e,t,s={}){!s.keepIndicator&&t&&(t.hidden=!0,t.className="scope-lane-drop",delete t.dataset.label,delete t.dataset.mode,t.style.transform="",t.style.width="",t.style.height=""),e&&(e.querySelectorAll(".scope-lane-space").forEach(o=>{delete o.dataset.dropZone}),e.querySelectorAll("[data-lane-id].is-drop-target").forEach(o=>{o.classList.remove("is-drop-target"),delete o.dataset.dropZone,delete o.dataset.dropLabel}))}function ms({stackMax:e,onReorder:t,onStack:s,indicatorRef:o}){const n=d.useRef(null),l=d.useRef(null),c=d.useRef(oe),p=d.useRef(""),i=d.useCallback(h=>{n.current?.closest(".scope-lanes")?.classList.toggle("is-dragging",h)},[]),a=d.useCallback(h=>{l.current=h,p.current="",c.current=oe,i(!0)},[i]),f=d.useCallback(()=>{l.current=null,p.current="",c.current=oe,ne(n.current,o.current),i(!1)},[o,i]),g=d.useCallback(h=>{const m=l.current;if(!m)return;h.preventDefault(),h.dataTransfer.dropEffect="move";const u=n.current,S=o.current;if(!u||!S)return;const b=cs(h.clientX,h.clientY,u,m,e);if(!b){p.current&&(p.current="",ne(u,S));return}const v=ds(b);if(v===p.current)return;const k=!!(p.current&&b.mode==="reorder");p.current=v,c.current={mode:b.mode,before:b.before,slotIndex:b.slotIndex,stackBand:b.stackBand??0,targetAgentId:b.targetAgentId??null},ne(u,S,{keepIndicator:k}),b.col&&(b.col.classList.add("is-drop-target"),b.col.dataset.dropZone=b.mode,b.label&&(b.col.dataset.dropLabel=b.label)),b.slot.dataset.dropZone=b.mode,us(S,u,b)},[o,e]),_=d.useCallback(h=>{h.preventDefault();const m=h.dataTransfer.getData("text/plain")||l.current,u=c.current;if(!m||u.slotIndex<0||!u.mode){f();return}u.mode==="stack"?s(m,u.slotIndex,u.stackBand):t(m,u.slotIndex,u.before),f()},[f,t,s]);return d.useEffect(()=>{const h=m=>{m.key!=="Escape"||!l.current||f()};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[f]),{scrollRef:n,onDragStart:a,onDragEnd:f,scrollDragProps:{onDragEnter:h=>{l.current&&h.preventDefault()},onDragOver:g,onDrop:_}}}const re=le("lane-spaces"),fs=2,hs=6,F=4;function gs(e){const t=Number(e);return Number.isFinite(t)?Math.min(hs,Math.max(fs,Math.round(t))):F}function Y(e){if(Array.isArray(e))return{ids:e.filter(s=>typeof s=="string"),orient:"row"};if(e&&typeof e=="object"&&Array.isArray(e.ids)){const t=e;return{ids:t.ids.filter(o=>typeof o=="string"),orient:t.orient==="column"?"column":"row"}}return{ids:[],orient:"row"}}function _s(e,t,s=F){const o=new Set(t),n=new Set,l=[];for(const c of e){const p=Y(c),i=p.ids.filter(g=>o.has(g)&&!n.has(g));if(i.forEach(g=>n.add(g)),!i.length)continue;const a=i.length===1?"row":p.orient,f=a==="column"?s:4;l.push({ids:i.slice(0,f),orient:a})}for(const c of t)n.has(c)||(l.push({ids:[c],orient:"row"}),n.add(c));return l}function ge(e,t,s=F){return t.length?_s(t,e,s):e.map(o=>({ids:[o],orient:"row"}))}function Ce(e,t){return e.map(s=>{const o=Y(s),n=o.ids.filter(l=>l!==t);return n.length?{ids:n,orient:n.length===1?"row":o.orient}:null}).filter(s=>s!==null)}function Ss(e,t,s,o){const n=Ce(e,t),l=Math.min(o?s:s+1,n.length);return n.splice(l,0,{ids:[t],orient:"row"}),n}function bs(e,t,s,o,n=F){const l=Ce(e,t),p=[...Y(l[s]??{ids:[],orient:"row"}).ids],i=Math.min(Math.max(0,o),p.length);p.splice(i,0,t);const a=p.slice(0,n);return l[s]={ids:a,orient:a.length>1?"column":"row"},l}function vs(){try{const e=sessionStorage.getItem(re);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.map(Y).filter(s=>s.ids.length>0):[]}catch{return[]}}function xs(e){try{if(!e.length){sessionStorage.removeItem(re);return}sessionStorage.setItem(re,JSON.stringify(e))}catch{}}function ws(e,t=F){const s=d.useMemo(()=>e.map(m=>m.lane.id),[e]),o=d.useMemo(()=>new Map(e.map(m=>[m.lane.id,m])),[e]),[n,l]=d.useState(()=>vs()),[c,p]=d.useState(()=>n.length>0),i=d.useMemo(()=>c?ge(s,n,t):ge(s,[],t),[s,c,t,n]);d.useEffect(()=>{c&&xs(i)},[c,i]);const a=d.useCallback(m=>{p(!0),l(m)},[]),f=d.useCallback((m,u,S)=>{a(Ss(i,m,u,S))},[a,i]),g=d.useCallback((m,u,S,b=t)=>{a(bs(i,m,u,S,b))},[a,i,t]),_=d.useMemo(()=>i.map(m=>({space:m,columns:m.ids.map(u=>o.get(u)).filter(u=>u!==void 0)})).filter(m=>m.columns.length>0),[o,i]),h=d.useMemo(()=>_.flatMap(m=>m.columns),[_]);return{spaces:i,resolvedSpaces:_,flatColumns:h,reorderLane:f,stackLane:g,stackMax:gs(t)}}function Ls({lanes:e,onOpenTrace:t,onHorizonChange:s}){const[o,n]=d.useState(-1),l=d.useRef(new Map);d.useEffect(()=>{if(o<0)return;if(o>=e.length){n(e.length-1);return}const i=e[o];if(!i)return;const a=l.current.get(i.id);a?.scrollIntoView({block:"nearest",inline:"nearest"}),a?.focus()},[o,e]);const c=d.useCallback((i,a)=>{a?l.current.set(i,a):l.current.delete(i)},[]);d.useEffect(()=>{const i=a=>{if(!document.querySelector(".scope-lanes")||kt(a.target)||Ct()||e.length===0)return;const f=Number(a.key)-1;if(!a.metaKey&&!a.ctrlKey&&!a.altKey&&f>=0&&f<K.length){a.preventDefault(),s(K[f].key);return}if(a.key==="ArrowRight"||a.key==="ArrowDown"||a.key==="j"){a.preventDefault(),n(g=>ue(g,e.length,1));return}if(a.key==="ArrowLeft"||a.key==="ArrowUp"||a.key==="k"){a.preventDefault(),n(g=>ue(g,e.length,-1));return}if(a.key==="Home"||a.key==="g"&&!a.shiftKey){a.preventDefault(),n(0);return}if(a.key==="End"||a.key==="G"){a.preventDefault(),n(e.length-1);return}if(a.key==="Enter"||a.key===" "){const g=o<0?0:o,_=e[g];if(!_)return;a.preventDefault(),n(g),t(_,_.observe?.events?.at(-1))}};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[o,e,s,t]);const p=d.useCallback((i,a)=>({"data-cursor":o===i?!0:void 0,tabIndex:o===i?0:-1,ref:f=>c(a,f),onFocus:()=>n(i)}),[o,c]);return{focusedIndex:o,getLaneFocusProps:p}}const Ee=4;function Ae(e){switch(e){case"sm":return 1;case"md":return 2;case"lg":return Ee}}function ys(e,t){if(e==="sm"||e==="md"||e==="lg")return e;if(typeof e=="number"&&Number.isFinite(e)){const{tier:s,px:o}=Ue(e);if(s)return s;let n=t,l=Number.POSITIVE_INFINITY;for(const[c,p]of Object.entries(Ve)){const i=Math.abs(p-o);i<l&&(l=i,n=c)}return n}return t}function Ns(e,t){return Ae(ys(e,t))}function js(e,t){return e.length?Math.max(...e.map(s=>Ns(s,t))):Ae(t)}const ae=le("lanes-layout");function Ie(e){return e==="swim"||e==="grid"||e==="floor"}function ks(){try{const e=sessionStorage.getItem(ae);if(Ie(e))return e}catch{}return"swim"}function _e(){if(typeof window>"u")return null;const e=new URLSearchParams(window.location.search).get("layout")?.trim().toLowerCase();return Ie(e)?e:null}function Cs(){const[e,t]=d.useState(()=>_e()??ks()),s=d.useCallback(o=>{t(o);try{sessionStorage.setItem(ae,o)}catch{}typeof window>"u"||qe({searchPatch:{layout:o==="swim"?null:o},replace:!0})},[]);return d.useEffect(()=>{const o=_e();if(o&&o!==e){t(o);try{sessionStorage.setItem(ae,o)}catch{}}},[e]),{layoutMode:e,setLayoutMode:s}}function Es({message:e}){return r.jsx("li",{className:"scope-lanes__issue",children:r.jsx("span",{className:"scope-lanes__issue-msg",children:e})})}function As({navigate:e,agents:t}){const s=q(),{layoutMode:o,setLayoutMode:n}=Cs(),l=o==="floor",{now:c,horizon:p,setHorizon:i,horizonLabel:a,traceWindowMs:f,lanes:g,layout:_,deck:h,setLaneWidth:m,setDefaultLaneWidth:u,activeFilterLabel:S,issues:b,tailLoading:v}=Ne({scoutAgents:t,defaultWidthTier:"md",horizonOverride:l?"4h":void 0}),{resolvedSpaces:k,flatColumns:N,reorderLane:T,stackLane:E,stackMax:R}=ws(_.flat),L=o==="grid",[A,D]=d.useState(null),O=d.useRef(null),{scrollRef:W,onDragStart:Z,onDragEnd:J,scrollDragProps:Q}=ms({stackMax:R,onReorder:T,onStack:E,indicatorRef:O}),x=d.useCallback(w=>{W.current=w},[W]),y=d.useCallback((w,M)=>{const P=M??w.observe?.events?.at(-1);P&&D({lane:w,event:P})},[]),I=d.useMemo(()=>{const w=new Map;return N.forEach((M,P)=>w.set(M.lane.id,P)),w},[N]),{getLaneFocusProps:X}=Ls({lanes:N.map(w=>w.lane),onOpenTrace:y,onHorizonChange:i}),ee=d.useMemo(()=>v?"Loading sessions…":S?`No lanes match ${S} in the last ${a}.`:`No sessions with recent work in the last ${a}.`,[S,a,v]);return r.jsxs("div",{className:`scope-lanes${o==="grid"?" is-grid":""}`,"data-scope-presentation":!0,"data-scope-view":"lanes","data-scope-layout":o,"data-grid-cols":L?Ee:void 0,style:{"--scope-lane-stack-max":String(R)},...s,children:[r.jsx(ns,{liveCount:l?g.length:N.length,horizon:p,horizonLabel:a,layoutMode:o,laneWidth:h.defaultLaneWidth,onHorizonChange:i,onLayoutChange:n,onLaneWidthChange:u}),b.length>0?r.jsx("div",{className:"scope-lanes__issues",role:"status","aria-live":"polite",children:r.jsx("ul",{className:"scope-lanes__issues-list",children:b.map(w=>r.jsx(Es,{message:w.message},w.id))})}):null,(l?g.length:N.length)===0?r.jsx("div",{className:"scope-lanes__empty",children:ee}):l?r.jsx(jt,{lanes:g,now:c,onOpenTrace:y}):r.jsx("div",{className:"scope-lanes__canvas",role:"listbox","aria-label":"Session lanes",children:r.jsxs("div",{ref:x,className:`scope-lanes__scroll${o==="grid"?" is-grid":""}`,...Q,children:[k.map((w,M)=>{const P=w.space.orient==="column"&&w.columns.length>1,Te=Math.max(...w.columns.map(j=>j.widthPx)),Re=L?js(w.columns.map(j=>h.laneWidths[j.lane.id]??h.defaultLaneWidth),h.defaultLaneWidth):void 0;return r.jsx(ss,{space:w.space,layoutMode:o,widthPx:Te,gridSpan:Re,children:w.columns.map(j=>{const De=I.get(j.lane.id)??0;return r.jsx(ts,{lane:j.lane,layoutMode:o,compact:P,laneWidth:h.laneWidths[j.lane.id]??h.defaultLaneWidth,defaultLaneWidth:h.defaultLaneWidth,onLaneWidthChange:te=>m(j.lane.id,te),nowMs:c,traceWindowMs:f,traceWindowLabel:a,onOpenTrace:y,onTraceEventSelect:y,onDragStart:Z,onDragEnd:J,onDragKeyMove:te=>{T(j.lane.id,M,te==="before")},focusProps:X(De,j.lane.id)},j.key)})},w.space.ids.join(":"))}),r.jsx("div",{ref:O,className:"scope-lane-drop","aria-hidden":"true",hidden:!0})]})}),A?r.jsx(Le,{target:A,onClose:()=>D(null)}):null]})}const Is=1e4;function Ts({route:e,navigate:t}){const s=q(),[o,n]=d.useState(null),[l,c]=d.useState(null),p=d.useCallback(async()=>{c(null);try{n(await Et("/api/tail/discover"))}catch(f){c(f instanceof Error?f.message:String(f))}},[]);d.useEffect(()=>{p();const f=setInterval(()=>{p()},Is);return()=>clearInterval(f)},[p]);const i=o?.transcripts?.length??0,a=o?.processes?.length??0;return e.sessionId?r.jsx("div",{className:"scope-sessions-route","data-scope-view":"sessions",...s,children:r.jsx(It,{sessionRef:e.sessionId,navigate:t})}):r.jsx("div",{className:"scope-sessions-route","data-scope-view":"sessions",...s,children:r.jsxs("div",{className:"scope-sessions",children:[r.jsx("header",{className:"scope-sessions__bar",children:r.jsxs("div",{className:"scope-sessions__summary",children:[r.jsxs("span",{className:"scope-sessions__count",children:[i," session",i===1?"":"s"]}),a>0?r.jsxs("span",{className:"scope-sessions__live",children:[a," active"]}):null,l?r.jsx("span",{className:"scope-sessions__warn",children:"discovery error"}):null]})}),r.jsx("div",{className:"scope-sessions__body",children:r.jsx("div",{className:"scope-sessions__atop",children:r.jsx(At,{navigate:t})})})]})})}function Rs({navigate:e,tailQuery:t}){const s=q();return r.jsx("div",{className:"scope-tail-route","data-scope-view":"tail",...s,children:r.jsxs("div",{className:"scope-tail",children:[r.jsx("header",{className:"scope-tail__bar",children:r.jsxs("div",{className:"scope-tail__summary",children:[r.jsx("span",{className:"scope-tail__count",children:"tail"}),r.jsx("span",{className:"scope-tail__hint",children:"live event stream"}),t?r.jsxs("span",{className:"scope-tail__query",title:t,children:["q=",t]}):null]})}),r.jsx("div",{className:"scope-tail__body",children:r.jsx("div",{className:"scope-tail__stream",children:r.jsx(Tt,{navigate:e,initialFilter:t,variant:"tail",chrome:"embedded"})})})]})})}function Ds(e,t,s,o){if(!Ye(o))return null;const n=Ze(e);if(!n)return null;switch(n){case"lanes":return r.jsx(As,{navigate:t,agents:s});case"tail":return e.view!=="ops"||e.mode!=="tail"?null:r.jsx(Rs,{navigate:t,tailQuery:e.tailQuery});case"sessions":return e.view!=="sessions"?null:r.jsx(Ts,{route:e,navigate:t});case"agents":return e.view!=="agents-v2"||tt(e)?null:r.jsx(Zt,{navigate:t,agents:s});default:return null}}function Ps(){const{route:e,navigate:t,agents:s}=Se(),{pathname:o}=Je(),n=Ds(e,t,s,o);return r.jsx(Xe,{children:n??et(e,t,s)})}function Os(){const{route:e,navigate:t}=Se();return Ot({className:"scout-nav-tabs scout-nav-tabs--scope",brandTag:Qe,items:Oe,activeKey:Pe(e),navigate:t})}function Ms(){const e=ie(),t=Rt(),s=Os();return we("nav.sidebar",!1)?null:e?s:t}function $s(){const e=ie(),t=Dt();return we("nav.sidebar",!1)?null:e?d.createElement("div",{className:"scout-nav-actions"}):t}function Bs(){const e=ie(),t=Pt();return e?{active:!1,dismissible:!0}:t}function Sl(e){e.slots.Content=Ps,e.hooks.useNavCenter=Ms,e.hooks.useNavActions=$s,e.hooks.useTakeover=Bs}export{Qe as SCOPE_BRAND_LABEL,xl as SCOPE_ENABLE_HINTS,Gl as SCOPE_FLAG_BUNDLE,Hl as SCOPE_FLAG_BUNDLE_ALIASES,zl as SCOPE_FLAG_KEY,jl as SCOPE_FLAG_REGISTRY_KEY,kl as SCOPE_LANE_DECK_DEFAULTS,Ke as SCOPE_LANE_DECK_PROFILE,Kl as SCOPE_LEGACY_FLAG_BUNDLE,Ul as SCOPE_LEGACY_FLAG_KEY,Vl as SCOPE_LEGACY_PATH_PREFIX,ql as SCOPE_LEGACY_PATH_SEGMENT,Yl as SCOPE_PATH_PREFIX,Zl as SCOPE_PATH_SEGMENT,Jl as SCOPE_ROUTE_SEGMENTS,Ql as SCOPE_STORAGE_PREFIX,Oe as SCOPE_TOP_NAV_ITEMS,Ps as ScopeAppContent,Zt as ScopeDirView,ts as ScopeLaneColumn,Wt as ScopeLaneDetailView,Le as ScopeLaneTraceSheet,ns as ScopeLanesBar,As as ScopeLanesView,Cl as buildScopePath,El as buildScopeRoutePath,Xl as canonicalizeScopePathname,wl as isScopeOnboardingExempt,Ye as isScopePath,Al as isScopePresentation,Il as parseScopeRouteFromUrl,Tl as preserveLocationSearch,Ds as resolveScopeContentPane,Rl as routeBelongsInScopeNamespace,Ze as routeToScopeSegment,Dl as scopeInstrumentBundleLayer,Pl as scopeLaneDeckProfileId,Ol as scopePresentationAttrs,Ll as scopePresentationTitle,Ml as scopeRoutePath,le as scopeStorageKey,$l as scopeSurfaceFlagDefinition,Pe as scopeTopNavKeyForRoute,Bl as scopeViewSegment,Fl as segmentToRoute,ie as useScopePresentation,q as useScopePresentationAttrs,yl as useScopeShellChrome,Sl as wireScopeOntoScout};
@@ -0,0 +1 @@
1
+ import{e as r}from"./index-NRbRrZw-.js";var o=r();export{o as r};