@openscout/scout 0.2.96 → 0.2.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/bin/scoutd +0 -0
  2. package/dist/build-manifest.json +3 -3
  3. package/dist/client/assets/{ActivityScreen-BnoaUkVZ.js → ActivityScreen-y-5DLleY.js} +1 -1
  4. package/dist/client/assets/{AddProjectForm-IqOtJfRs.js → AddProjectForm-r_1tVuWk.js} +1 -1
  5. package/dist/client/assets/{AgentAvatar-6-KBVKUu.js → AgentAvatar-B7c0egdP.js} +1 -1
  6. package/dist/client/assets/{AgentConfigurationScreen-CuZJy07q.js → AgentConfigurationScreen-BD7Unt2P.js} +1 -1
  7. package/dist/client/assets/{AgentDefinitionsWorkspace-Iyl4BesU.js → AgentDefinitionsWorkspace-BbcZc9Xk.js} +1 -1
  8. package/dist/client/assets/{AgentDetailCard-C9rn3Fj5.js → AgentDetailCard-B_KLcgsP.js} +1 -1
  9. package/dist/client/assets/{AgentFloorView-YT-Jjccf.js → AgentFloorView-DMFiHs21.js} +1 -1
  10. package/dist/client/assets/{AgentInfoScreen-Dr99gQEZ.js → AgentInfoScreen-DHGLRddI.js} +1 -1
  11. package/dist/client/assets/{AgentLaneCard-DI2iW9zO.js → AgentLaneCard-ajZvcfdW.js} +1 -1
  12. package/dist/client/assets/{AgentLaneChrome-D8bARHMx.js → AgentLaneChrome-CTp39syR.js} +1 -1
  13. package/dist/client/assets/{AgentLaneDetailSheet-52un7dKC.js → AgentLaneDetailSheet-DRc-TpMB.js} +1 -1
  14. package/dist/client/assets/{AgentLaneSummaryResize-CEBjmPTa.js → AgentLaneSummaryResize-VMNDo7kD.js} +1 -1
  15. package/dist/client/assets/AgentLanesEmbedScreen-C5k_dDS8.js +1 -0
  16. package/dist/client/assets/{AgentLanesPreflight-q20mTjms.js → AgentLanesPreflight-CFadSaia.js} +1 -1
  17. package/dist/client/assets/{AgentLanesView-CetZZDyF.js → AgentLanesView-u5vpLwQf.js} +1 -1
  18. package/dist/client/assets/{AgentLiveActions-DrEJDJef.js → AgentLiveActions-CsQA3pu_.js} +1 -1
  19. package/dist/client/assets/{AgentMasterScreen-DJPnstoD.js → AgentMasterScreen-C5WlWNmk.js} +1 -1
  20. package/dist/client/assets/{AgentSessions-DCPCG4xb.js → AgentSessions-BePq5Lgc.js} +1 -1
  21. package/dist/client/assets/{AgentsConsole-CsYOoFJi.js → AgentsConsole-BuiZ_bDo.js} +1 -1
  22. package/dist/client/assets/{AgentsScreen-k8LvBuU_.js → AgentsScreen-CRi-hG2k.js} +1 -1
  23. package/dist/client/assets/AgentsSubnav-DUsya4WK.js +1 -0
  24. package/dist/client/assets/{AstronautSuit-DbjQtfD_.js → AstronautSuit-Cjjcv6yQ.js} +1 -1
  25. package/dist/client/assets/{AtopView-Daq_ob3z.js → AtopView-PxWQd-sX.js} +1 -1
  26. package/dist/client/assets/{BackToPicker-CXZjBRAe.js → BackToPicker-Cto0Ioz9.js} +1 -1
  27. package/dist/client/assets/{BriefingDetailScreen-CUCXO-KH.js → BriefingDetailScreen-C29smC5d.js} +1 -1
  28. package/dist/client/assets/{BriefingsScreen-B5oMTGKv.js → BriefingsScreen-DNyFBrPn.js} +1 -1
  29. package/dist/client/assets/{BrokerMetadataPanel-BsiU8lTD.js → BrokerMetadataPanel-DbaCQlhw.js} +1 -1
  30. package/dist/client/assets/{BrokerScreen-BPbOHhCS.js → BrokerScreen-CS0s4Gm4.js} +1 -1
  31. package/dist/client/assets/{CastPicker-_5E5hNUe.js → CastPicker-CTBHjjGw.js} +1 -1
  32. package/dist/client/assets/{ChatCollapsedStrip-D-eXhzPf.js → ChatCollapsedStrip-D4rc7wBQ.js} +1 -1
  33. package/dist/client/assets/{CodeDiffPane-n7W4iGUG.js → CodeDiffPane-QvxCUzTi.js} +1 -1
  34. package/dist/client/assets/{CodeProjectPicker-CMsbSTDq.js → CodeProjectPicker-DplkpM7f.js} +1 -1
  35. package/dist/client/assets/{CodeScreen-CeuO3EhR.js → CodeScreen-CrR2JaVj.js} +1 -1
  36. package/dist/client/assets/{ConversationComposer-CXPKx86g.js → ConversationComposer-H8_hsYSc.js} +1 -1
  37. package/dist/client/assets/{ConversationFeedRows-WrH-YI3L.js → ConversationFeedRows-hlEFlURs.js} +1 -1
  38. package/dist/client/assets/{ConversationHeader-BQWzGzLK.js → ConversationHeader-B0ZBhE_E.js} +1 -1
  39. package/dist/client/assets/{ConversationPanels-Dujvnmup.js → ConversationPanels-fMo6Uy1v.js} +2 -2
  40. package/dist/client/assets/{ConversationScreen-CR9pWB65.js → ConversationScreen-CXAHQwQ3.js} +1 -1
  41. package/dist/client/assets/{ConversationStatus-DVzSb2Hv.js → ConversationStatus-DI5GCiyW.js} +1 -1
  42. package/dist/client/assets/{CrewAvatar-BwXjyg8N.js → CrewAvatar-CXJHLNVM.js} +1 -1
  43. package/dist/client/assets/CrewWorkspaces-Bz2Dcnt4.js +1 -0
  44. package/dist/client/assets/CrewWorkspaces-Diq11KDq.css +1 -0
  45. package/dist/client/assets/{DataTable-Bp8tU9AK.js → DataTable-DXIlOlVu.js} +1 -1
  46. package/dist/client/assets/{DispatchAftermath-B-6rmXzL.js → DispatchAftermath-CrELgl2e.js} +1 -1
  47. package/dist/client/assets/{DocumentFocusViewer-Do3wQ_3Z.js → DocumentFocusViewer-DFFE85Tq.js} +1 -1
  48. package/dist/client/assets/{EmbeddableSurfacesLab-C1orRyP9.js → EmbeddableSurfacesLab-DgpewB3y.js} +1 -1
  49. package/dist/client/assets/{EmptyState-CJzXj1l5.js → EmptyState-D9X16fKq.js} +1 -1
  50. package/dist/client/assets/{FileViewerPane-Df6VzXjA.js → FileViewerPane-CY0RN78e.js} +1 -1
  51. package/dist/client/assets/{FlightObserveScreen-6mGnmWQA.js → FlightObserveScreen-qyzHzxLa.js} +1 -1
  52. package/dist/client/assets/{FollowScreen-DvnxYLVh.js → FollowScreen-wZ-z67mX.js} +1 -1
  53. package/dist/client/assets/{HarnessMark-B979GCSB.js → HarnessMark-DAaWPiT_.js} +1 -1
  54. package/dist/client/assets/{HarnessesScreen-CHTuv8p6.js → HarnessesScreen-DbKkQM4o.js} +1 -1
  55. package/dist/client/assets/{HerdrSession-B3McuYgi.js → HerdrSession-CYKRfBad.js} +1 -1
  56. package/dist/client/assets/{HomeHero-CdUVPjkG.js → HomeHero-DYyd3cpz.js} +1 -1
  57. package/dist/client/assets/{HostAdvisorView-Bok5Sk5c.js → HostAdvisorView-NtM0bsg8.js} +1 -1
  58. package/dist/client/assets/{KnowledgeSearchInspector-B7XSoJsu.js → KnowledgeSearchInspector-CU6BCFcS.js} +1 -1
  59. package/dist/client/assets/{KnowledgeSearchScreen-D3o3IODW.js → KnowledgeSearchScreen-DvbRRPQB.js} +1 -1
  60. package/dist/client/assets/{LaneToolHoverCard-HByf2ndx.js → LaneToolHoverCard-Bo2Zl-1a.js} +1 -1
  61. package/dist/client/assets/{LaneTraceDetailSheet-BUgHz-sd.js → LaneTraceDetailSheet-C3C8UjXv.js} +1 -1
  62. package/dist/client/assets/{LaneTraceEventFocus-DM-hoPxG.js → LaneTraceEventFocus-Cek_64zR.js} +1 -1
  63. package/dist/client/assets/{MeshCanvas-DCLJRsBy.js → MeshCanvas-TvsID4fe.js} +1 -1
  64. package/dist/client/assets/{MeshCanvasMinimap-cEFS9eW7.js → MeshCanvasMinimap-CxqeVVco.js} +1 -1
  65. package/dist/client/assets/{MeshScreen-BcxPkhm6.js → MeshScreen-BJ-j9YXv.js} +1 -1
  66. package/dist/client/assets/{MeshTopologyView-CCRPd8PU.js → MeshTopologyView-BjprutE8.js} +2 -2
  67. package/dist/client/assets/{MessagesScreen-Bb5l13MO.js → MessagesScreen-CyNIZ3-X.js} +1 -1
  68. package/dist/client/assets/{MissionContextRail-DF0_kiU7.js → MissionContextRail-Be0uXljQ.js} +1 -1
  69. package/dist/client/assets/{MissionControlView-E3V7bENU.js → MissionControlView-Bj7cAbZd.js} +1 -1
  70. package/dist/client/assets/{MissionFocusOverlay-h15sQFvP.js → MissionFocusOverlay-DvTw6ts5.js} +1 -1
  71. package/dist/client/assets/{MissionLeftAgentRow-KPdk9rSa.js → MissionLeftAgentRow-B0QG7Gys.js} +1 -1
  72. package/dist/client/assets/{MissionLogPane-BbdDKjUl.js → MissionLogPane-EsM_S3ro.js} +1 -1
  73. package/dist/client/assets/{NewAgentModal-DfHxad34.js → NewAgentModal-Cqiq1CE1.js} +1 -1
  74. package/dist/client/assets/{NewChatComposer-_Stj0fZy.js → NewChatComposer-C_1op4dH.js} +1 -1
  75. package/dist/client/assets/{NewChatOrigin-B1u7ki70.js → NewChatOrigin-D7hwp6dm.js} +1 -1
  76. package/dist/client/assets/{ObserveEmbedScreen-Co0xTii6.js → ObserveEmbedScreen-CGHI_hb5.js} +1 -1
  77. package/dist/client/assets/{ObserveTextFlow-ZQWwrK3i.js → ObserveTextFlow-BcrGQet8.js} +2 -2
  78. package/dist/client/assets/{ObservedTopologyPanel-BJUhDSuQ.js → ObservedTopologyPanel-BhVsvwkh.js} +1 -1
  79. package/dist/client/assets/{OpenScoutAppShell-CUd2yOLu.js → OpenScoutAppShell-BtfvMkAp.js} +1 -1
  80. package/dist/client/assets/{OpsAgentsView-DI5wu1si.js → OpsAgentsView-DBYtmLnh.js} +1 -1
  81. package/dist/client/assets/OpsScreen-CuYVgkC_.js +1 -0
  82. package/dist/client/assets/OpsSubnav-BEU4kKXm.js +1 -0
  83. package/dist/client/assets/ProjectAgentProfile-BhXAZEkW.js +1 -0
  84. package/dist/client/assets/{ProjectAgentProfileBar-k2QHHHsQ.js → ProjectAgentProfileBar-uJw9Wdfk.js} +1 -1
  85. package/dist/client/assets/{ProjectAgentProfileHero-Bpxk1ui2.js → ProjectAgentProfileHero-CIMS4Dy_.js} +1 -1
  86. package/dist/client/assets/{ProjectsInbox-C_bMHLCc.js → ProjectsInbox-JgU0lrY8.js} +1 -1
  87. package/dist/client/assets/{ProjectsRail-J-aH_pxT.js → ProjectsRail-p99BRBOa.js} +1 -1
  88. package/dist/client/assets/ProjectsScreen-BB45DU53.js +1 -0
  89. package/dist/client/assets/{ProjectsThreadAside-_ourdM-Q.js → ProjectsThreadAside-BHDTJWOz.js} +1 -1
  90. package/dist/client/assets/{Provider-CtXJeLrP.js → Provider-Bu-C8Hxc.js} +1 -1
  91. package/dist/client/assets/{RailRow-CEH2MFBw.js → RailRow-ClMmtaIE.js} +1 -1
  92. package/dist/client/assets/{RawSessionsTable-CDyrom-F.js → RawSessionsTable-BtKdQPiv.js} +1 -1
  93. package/dist/client/assets/{RealtimeVoiceScreen-DBl3DN1H.js → RealtimeVoiceScreen-KPHJgO1l.js} +1 -1
  94. package/dist/client/assets/{RepoDiffEmbedScreen-kY2pHjIs.js → RepoDiffEmbedScreen-CjZ5ew3y.js} +1 -1
  95. package/dist/client/assets/{RepoDiffPageScreen-C6LhoKrn.js → RepoDiffPageScreen-CdTFfmbk.js} +1 -1
  96. package/dist/client/assets/{RepoDiffViewer-BhcIIQQg.js → RepoDiffViewer-BFperHQg.js} +1 -1
  97. package/dist/client/assets/{RepoDiffViewerLazy-Csy_j9LD.js → RepoDiffViewerLazy-BkBmbi1Z.js} +2 -2
  98. package/dist/client/assets/{ReposScreen-B_cB0zu7.js → ReposScreen-C8dT4bK0.js} +1 -1
  99. package/dist/client/assets/{ScoutDeckSurface-CSy_fjcG.js → ScoutDeckSurface-BcJsm2Kq.js} +1 -1
  100. package/dist/client/assets/{ScoutSurface-CQVcSrin.js → ScoutSurface-DmzEtrx8.js} +1 -1
  101. package/dist/client/assets/{ScoutbotFxLab-DqGiLYNy.js → ScoutbotFxLab-DU15Plja.js} +1 -1
  102. package/dist/client/assets/{SecondaryNav-BR4VRdgh.js → SecondaryNav-BrXMtvKE.js} +1 -1
  103. package/dist/client/assets/{SessionEmbedScreen-BTlZ9gAg.js → SessionEmbedScreen-Bt4flmAx.js} +1 -1
  104. package/dist/client/assets/{SessionObserve-dQDN23pP.js → SessionObserve-BCehTlO8.js} +1 -1
  105. package/dist/client/assets/{SessionObserveEvidence-BRBGKAgd.js → SessionObserveEvidence-Bb6U-dem.js} +1 -1
  106. package/dist/client/assets/{SessionRefScreen-COVQMbtE.js → SessionRefScreen-C8BiRVPx.js} +1 -1
  107. package/dist/client/assets/SessionsScreen-BNvjUflN.js +1 -0
  108. package/dist/client/assets/{SettingsDrawer-RGVK_bmE.js → SettingsDrawer-BieUmb8g.js} +1 -1
  109. package/dist/client/assets/{SettingsScreen-CCxzy5IU.js → SettingsScreen-3JvX1WFL.js} +1 -1
  110. package/dist/client/assets/{ShikiPane-DYI9Hkge.js → ShikiPane-DPWsVNtn.js} +1 -1
  111. package/dist/client/assets/{SlidePanel-B9ugxWgA.js → SlidePanel-BMRIR6bH.js} +1 -1
  112. package/dist/client/assets/{SpriteAvatar-z5hHesx9.js → SpriteAvatar-56DTXxSV.js} +1 -1
  113. package/dist/client/assets/{StatusPill-BFvMjmZV.js → StatusPill-BcuYUgsD.js} +1 -1
  114. package/dist/client/assets/{TailView-0uEIj2JH.js → TailView-BDy8c2VB.js} +1 -1
  115. package/dist/client/assets/{Terminal-DouZeNxc.js → Terminal-BlUQY9_Z.js} +1 -1
  116. package/dist/client/assets/{TerminalEmbedScreen-dMNUbzXr.js → TerminalEmbedScreen-DTjxktyr.js} +1 -1
  117. package/dist/client/assets/{TerminalHeaderMount-BL07cd0q.js → TerminalHeaderMount-Cy-uxkey.js} +1 -1
  118. package/dist/client/assets/{TextDocumentSurface-BflAwXeZ.js → TextDocumentSurface-BeSwe3Yl.js} +1 -1
  119. package/dist/client/assets/{TmuxPeek-BTnjOQi0.js → TmuxPeek-B4no_aGI.js} +1 -1
  120. package/dist/client/assets/{VoicePermissionsPanel-CgQ6GGS-.js → VoicePermissionsPanel-Bd16scwz.js} +1 -1
  121. package/dist/client/assets/{WorkDetailScreen-CaLG-zDs.js → WorkDetailScreen-DIFQufak.js} +1 -1
  122. package/dist/client/assets/{WorkFilesViewer-B9Sil_No.js → WorkFilesViewer-CT5XEFGf.js} +1 -1
  123. package/dist/client/assets/{activity-DcrMApUY.js → activity-CqZafWfx.js} +1 -1
  124. package/dist/client/assets/{addon-fit-DMVrz5Sv.js → addon-fit-CM6F_JRD.js} +1 -1
  125. package/dist/client/assets/{addon-webgl-BYvpZUyu.js → addon-webgl-DRTiePFC.js} +1 -1
  126. package/dist/client/assets/{agent-autocomplete-B-5QTeas.js → agent-autocomplete-DXUBnlkN.js} +1 -1
  127. package/dist/client/assets/{agent-essentials-D7KRGYvF.js → agent-essentials-vytdybaX.js} +1 -1
  128. package/dist/client/assets/{agent-master-model-DqjrVI2h.js → agent-master-model-DAZL92oe.js} +1 -1
  129. package/dist/client/assets/{agent-specialization-BujJVUTD.js → agent-specialization-BtxLN4UR.js} +1 -1
  130. package/dist/client/assets/agents-project-DgbqDc65.css +1 -0
  131. package/dist/client/assets/{arc.es-NHqHWohb.js → arc.es-Bh84oHJ7.js} +1 -1
  132. package/dist/client/assets/{arrow-down-CKtSUjmW.js → arrow-down-DvTsLokL.js} +1 -1
  133. package/dist/client/assets/{arrow-left-Czpf-AE4.js → arrow-left-DHfdXJVZ.js} +1 -1
  134. package/dist/client/assets/{arrow-right-BuzMnLYP.js → arrow-right-BBsrogWf.js} +1 -1
  135. package/dist/client/assets/{arrow-up-right-C6Wl-1uw.js → arrow-up-right-CY0Vw_67.js} +1 -1
  136. package/dist/client/assets/{bot-rd0awxD3.js → bot-DzkOUFBb.js} +1 -1
  137. package/dist/client/assets/{check-ofKUE8yH.js → check-DbIkldnK.js} +1 -1
  138. package/dist/client/assets/{chevron-down-wciXnOQz.js → chevron-down-C475vltS.js} +1 -1
  139. package/dist/client/assets/{chevron-right-D-HdlPg8.js → chevron-right-CnZRSd-V.js} +1 -1
  140. package/dist/client/assets/{chunk-HRAB3GC3-Tyv9rzx7.js → chunk-HRAB3GC3-DLNT8aOo.js} +1 -1
  141. package/dist/client/assets/{chunk-JTPDIGGW-BC2Mandc.js → chunk-JTPDIGGW-Ci5j4vzV.js} +3 -3
  142. package/dist/client/assets/{chunk-T65CQEWV-C1AWTYZZ.js → chunk-T65CQEWV-BtNvicWs.js} +1 -1
  143. package/dist/client/assets/{chunk-YOZR3KYS-DwHPHa6f.js → chunk-YOZR3KYS-DN5EJulq.js} +1 -1
  144. package/dist/client/assets/{clock-B88r8OrZ.js → clock-DVvENUU5.js} +1 -1
  145. package/dist/client/assets/{code-xml-D7pOQM9l.js → code-xml-CvKBY3KA.js} +1 -1
  146. package/dist/client/assets/{compass-Dt1AMXz2.js → compass-BcRI_YXo.js} +1 -1
  147. package/dist/client/assets/content--T3p6akp.js +1 -0
  148. package/dist/client/assets/content-4nFMLuzF.js +1 -0
  149. package/dist/client/assets/content-BJ4nHvcu.js +1 -0
  150. package/dist/client/assets/{content-nkx0swDe.js → content-BNyAjpUl.js} +1 -1
  151. package/dist/client/assets/content-BmGp9wNl.js +1 -0
  152. package/dist/client/assets/content-CBWhwaRo.js +1 -0
  153. package/dist/client/assets/{content-C9ijJxyl.js → content-CQlykFbe.js} +1 -1
  154. package/dist/client/assets/content-CevL0DgF.js +1 -0
  155. package/dist/client/assets/content-Ch8pf2bj.js +1 -0
  156. package/dist/client/assets/content-Cpvdcm_l.js +1 -0
  157. package/dist/client/assets/content-DfS3vgAu.js +1 -0
  158. package/dist/client/assets/content-DpQdNePJ.js +1 -0
  159. package/dist/client/assets/content-Dqpibejl.js +1 -0
  160. package/dist/client/assets/content-TV0nd6-r.js +1 -0
  161. package/dist/client/assets/{content-BWPNyXJ0.js → content-odbb5H4U.js} +1 -1
  162. package/dist/client/assets/content-uXHLPHe0.js +1 -0
  163. package/dist/client/assets/{conversation-icons-tp9BX6X2.js → conversation-icons-CBMKBGHd.js} +1 -1
  164. package/dist/client/assets/{conversation-model-Dc02NsGp.js → conversation-model-QsJVfSeG.js} +1 -1
  165. package/dist/client/assets/conversation-motion-features-BFLHX2eg.js +1 -0
  166. package/dist/client/assets/{copy-CWWAJ75H.js → copy-Cj-owMb-.js} +1 -1
  167. package/dist/client/assets/{cpu-DrqejfkB.js → cpu-DuD3RFX5.js} +1 -1
  168. package/dist/client/assets/{createLucideIcon-DezKXSG2.js → createLucideIcon-DthwWQIg.js} +1 -1
  169. package/dist/client/assets/{discover-C2CZO4Tk.js → discover-B3uQlh5L.js} +2 -2
  170. package/dist/client/assets/embed-entry-DkRcHKTh.js +2 -0
  171. package/dist/client/assets/{external-link-Dp_a2vRZ.js → external-link-C_nxk0MJ.js} +1 -1
  172. package/dist/client/assets/{eye-BRyD0jno.js → eye-FnaaPfja.js} +1 -1
  173. package/dist/client/assets/{file-code-corner-muIVH_xO.js → file-code-corner-DDPq4Cur.js} +1 -1
  174. package/dist/client/assets/{file-text-CqJgwxmv.js → file-text--hfhwZH1.js} +1 -1
  175. package/dist/client/assets/{gauge-hU--hKVP.js → gauge-BVEknshP.js} +1 -1
  176. package/dist/client/assets/{gestures-DN4hEeqv.js → gestures-3gw5VgUS.js} +1 -1
  177. package/dist/client/assets/{git-branch-CK5v8F2v.js → git-branch-DJyvr0k-.js} +1 -1
  178. package/dist/client/assets/{home-moving-signal-BjDtEJUP.js → home-moving-signal-BPqBoNSm.js} +1 -1
  179. package/dist/client/assets/{home-now-card-nF8OotI-.js → home-now-card-UspVW2-2.js} +1 -1
  180. package/dist/client/assets/{home-now-card-nano-C-r_bBg5.js → home-now-card-nano-G8kMB32m.js} +1 -1
  181. package/dist/client/assets/{hooks-D46bABUP.js → hooks-BMsQzo9j.js} +1 -1
  182. package/dist/client/assets/{index-DvLtl7rV.js → index-BI9AljSD.js} +2 -2
  183. package/dist/client/assets/{index-kL1WLbeS.js → index-C-v0Z6ZS.js} +1 -1
  184. package/dist/client/assets/{index-CPrU5q04.js → index-D9DzUORB.js} +1 -1
  185. package/dist/client/assets/index-DfsTyYDx.js +1 -0
  186. package/dist/client/assets/{inspector-panel-Dkc7rLvY.js → inspector-panel-CFSArQ8Y.js} +1 -1
  187. package/dist/client/assets/{keyboard-nav-BLYDhL3Z.js → keyboard-nav-e6yGeorb.js} +1 -1
  188. package/dist/client/assets/{lane-roster-store-DOdI1O13.js → lane-roster-store-Q7pcblY5.js} +1 -1
  189. package/dist/client/assets/{layers-CSsg3JVP.js → layers-Dz2dKOnU.js} +1 -1
  190. package/dist/client/assets/{layout-grid-DOChPJdZ.js → layout-grid-Bvs5fdB4.js} +1 -1
  191. package/dist/client/assets/{left-BNRFiRsb.js → left-B4Ak-Ibt.js} +1 -1
  192. package/dist/client/assets/{left-BggzhgXN.js → left-BMb493FZ.js} +1 -1
  193. package/dist/client/assets/{left-YT7mIGuH.js → left-BjFLvVOC.js} +1 -1
  194. package/dist/client/assets/{left-B3wSE6ql.js → left-CsXQ8Q3G.js} +1 -1
  195. package/dist/client/assets/left-FNH7faCI.js +1 -0
  196. package/dist/client/assets/{left-CARCvvxS.js → left-POkqE8gI.js} +1 -1
  197. package/dist/client/assets/{left-CpokZYHt.js → left-UulOTcWh.js} +1 -1
  198. package/dist/client/assets/{left-advisor-CCY0vkcO.js → left-advisor-CJkQS2d6.js} +1 -1
  199. package/dist/client/assets/{left-agents-trhO5sL8.js → left-agents-CFMxyEjT.js} +1 -1
  200. package/dist/client/assets/{left-default-CG33elBs.js → left-default-rnX5HANc.js} +1 -1
  201. package/dist/client/assets/{left-lanes-CitMgeTp.js → left-lanes-BpLXT_qH.js} +1 -1
  202. package/dist/client/assets/{left-mission-Zl2m_5eU.js → left-mission-B0bhseWw.js} +1 -1
  203. package/dist/client/assets/library-D1iXfda2.js +1 -0
  204. package/dist/client/assets/{loader-circle-pM56HNhR.js → loader-circle-B2W9DPG5.js} +1 -1
  205. package/dist/client/assets/{local-agents-C8xAhbO5.js → local-agents-DKr-gIDC.js} +1 -1
  206. package/dist/client/assets/{mentions-DG6OQrsc.js → mentions-DuLQnEcn.js} +1 -1
  207. package/dist/client/assets/{mesh-ops-BZ1h5RQs.js → mesh-ops-CRR-KnCG.js} +1 -1
  208. package/dist/client/assets/{mesh-view-store-ChUOASK8.js → mesh-view-store-CiET-yN8.js} +1 -1
  209. package/dist/client/assets/{message-circle-mZCv8tvB.js → message-circle-B2DoYKDO.js} +1 -1
  210. package/dist/client/assets/{message-markup-C2LQDm_k.js → message-markup-Cc_O-WdA.js} +1 -1
  211. package/dist/client/assets/{message-square-C7t_qtuj.js → message-square-O-Hu9Mk2.js} +1 -1
  212. package/dist/client/assets/{mission-control-store-nDLdUZPA.js → mission-control-store-DDAgWKUl.js} +1 -1
  213. package/dist/client/assets/{observe-BpEm1INu.js → observe-Da2mRAsc.js} +1 -1
  214. package/dist/client/assets/{page-status-E5jnk48p.js → page-status-Crtgjbq3.js} +1 -1
  215. package/dist/client/assets/{paperclip-C64lkcbM.js → paperclip-BudMKSyr.js} +1 -1
  216. package/dist/client/assets/{persistent-state-EHXw8WNy.js → persistent-state-xJz-qAFc.js} +1 -1
  217. package/dist/client/assets/{plus-Co-dqKul.js → plus-BJ1If8vj.js} +1 -1
  218. package/dist/client/assets/{profile-APxDsN2P.js → profile-B3qDSbrH.js} +1 -1
  219. package/dist/client/assets/{projects-inbox-Cg4X2lUQ.js → projects-inbox-CLek3QaG.js} +1 -1
  220. package/dist/client/assets/{proxy-BiW5suC7.js → proxy-1BABCaDb.js} +1 -1
  221. package/dist/client/assets/{radio-BOxBQX-T.js → radio-B5OpHrrK.js} +1 -1
  222. package/dist/client/assets/{refresh-cw-DMxGzDwn.js → refresh-cw-DmNAhaH0.js} +1 -1
  223. package/dist/client/assets/resolve-panes-DXw-cHaj.js +1 -0
  224. package/dist/client/assets/resolve-sidebar-context-CDdbRDEa.js +1 -0
  225. package/dist/client/assets/{right-Bmfd3pjP.js → right-BgJ4mQLf.js} +1 -1
  226. package/dist/client/assets/{right-Dz_xD0Vj.js → right-Bk6h7o-Z.js} +1 -1
  227. package/dist/client/assets/{right-CkCCPbCX.js → right-BrICCmEt.js} +1 -1
  228. package/dist/client/assets/{right-CdkcrmeD.js → right-C1QIbqFZ.js} +1 -1
  229. package/dist/client/assets/{right-BwlW6E57.js → right-CfliKiHY.js} +1 -1
  230. package/dist/client/assets/{right-BuCgE0fZ.js → right-CtOLXB9s.js} +1 -1
  231. package/dist/client/assets/{right-CimaAvQN.js → right-D8id_DWQ.js} +1 -1
  232. package/dist/client/assets/{right-C0ybUw0j.js → right-DJ34yMAi.js} +1 -1
  233. package/dist/client/assets/{right-D3eSiy41.js → right-DiFmtw6d.js} +1 -1
  234. package/dist/client/assets/{right-BqI-nr9G.js → right-Lx79pxpG.js} +1 -1
  235. package/dist/client/assets/{rocket-BQm5_CvR.js → rocket-D3-TUJ2m.js} +1 -1
  236. package/dist/client/assets/{router-B9vQkNJL.js → router-DTtux5sP.js} +1 -1
  237. package/dist/client/assets/{scope-views-1IYJdl41.js → scope-views-CPM0sBw_.js} +1 -1
  238. package/dist/client/assets/{scout-voice-BVUqGhth.js → scout-voice-BZKsdquE.js} +1 -1
  239. package/dist/client/assets/{scoutbot-markdown-BQ_Ee2Ic.js → scoutbot-markdown-CQ7Y1McC.js} +1 -1
  240. package/dist/client/assets/{scroll-text-Dze_dXtQ.js → scroll-text-kPhYbh-M.js} +1 -1
  241. package/dist/client/assets/{search-CDko0PKE.js → search-DmFM_9jm.js} +1 -1
  242. package/dist/client/assets/{secondaryNavConfig-BoQ_zYR9.js → secondaryNavConfig-C9bQ9_IA.js} +1 -1
  243. package/dist/client/assets/{selection-bridge-Din6yV3h.js → selection-bridge-Dy2mtMyi.js} +1 -1
  244. package/dist/client/assets/{send-horizontal-CSjIm6xg.js → send-horizontal-qyjNgEaV.js} +1 -1
  245. package/dist/client/assets/{server-Bzj7lPIx.js → server-nWqndnxu.js} +1 -1
  246. package/dist/client/assets/{session-catalog-DsaZJXZt.js → session-catalog-BkmktBHI.js} +1 -1
  247. package/dist/client/assets/{session-table-BQfR7u6r.js → session-table-DKSF0mrS.js} +1 -1
  248. package/dist/client/assets/{settings-Dyvpkb1D.js → settings-C6h9y5XX.js} +1 -1
  249. package/dist/client/assets/{sliders-horizontal-C8njVwfg.js → sliders-horizontal-BhHKxsCO.js} +1 -1
  250. package/dist/client/assets/{sparkles-CETYrxGA.js → sparkles-Cf8gin88.js} +1 -1
  251. package/dist/client/assets/{sse-CD9MMUxl.js → sse-DDHEHUgz.js} +1 -1
  252. package/dist/client/assets/{tail-events-Ps8KpKah.js → tail-events-BdUrO0kb.js} +1 -1
  253. package/dist/client/assets/{terminal-9GRS_Qdc.js → terminal-C3YRPfyz.js} +1 -1
  254. package/dist/client/assets/{terminal-relay-GYMIvKs1.js → terminal-relay-BFhdIstF.js} +1 -1
  255. package/dist/client/assets/{terminal-takeover-_Jyys4me.js → terminal-takeover-B6H4llRR.js} +1 -1
  256. package/dist/client/assets/{text-BP3oyl8-.js → text-Faa3ZStB.js} +1 -1
  257. package/dist/client/assets/{use-conversation-list-C9ABzjXI.js → use-conversation-list-DO5J8T1H.js} +1 -1
  258. package/dist/client/assets/{use-fleet-active-asks-DAspZQjE.js → use-fleet-active-asks-BtgNnRgK.js} +1 -1
  259. package/dist/client/assets/{use-mesh-ops-items-Dh54ymEp.js → use-mesh-ops-items-N1HHhChY.js} +1 -1
  260. package/dist/client/assets/{use-reduced-motion-x8pJMVrG.js → use-reduced-motion-8WuxLa5l.js} +1 -1
  261. package/dist/client/assets/{use-scout-dev-flags-DhCbiDK3.js → use-scout-dev-flags-B31qTy6m.js} +1 -1
  262. package/dist/client/assets/{useAgentHoverCard-DoBwV0LX.js → useAgentHoverCard-Bkv-Uz_V.js} +1 -1
  263. package/dist/client/assets/useContentSecondaryNav-Bpkc8ayb.js +1 -0
  264. package/dist/client/assets/{usePierreRuntime-ejq9dCWV.js → usePierreRuntime-BfZHKAkI.js} +1 -1
  265. package/dist/client/assets/{wrench-DjkoAOQt.js → wrench-DkxnZRlR.js} +1 -1
  266. package/dist/client/assets/{x-CAbNespN.js → x-DfRJbqrh.js} +1 -1
  267. package/dist/client/assets/{xterm-Cf-ngcGP.js → xterm-CJw8Epxv.js} +1 -1
  268. package/dist/client/assets/{zap-Cq8eWkcF.js → zap-CIo8msJB.js} +1 -1
  269. package/dist/client/index.html +1 -1
  270. package/dist/main.mjs +65 -21
  271. package/dist/pairing-runtime-controller.mjs +8 -0
  272. package/dist/runtime/broker-daemon.mjs +58 -10
  273. package/dist/scout-control-plane-web.mjs +8 -0
  274. package/package.json +2 -2
  275. package/dist/client/assets/AgentLanesEmbedScreen-Dgcm7zd_.js +0 -1
  276. package/dist/client/assets/AgentsSubnav-C4xpQhsv.js +0 -1
  277. package/dist/client/assets/CrewWorkspaces-CkQDhyie.css +0 -1
  278. package/dist/client/assets/CrewWorkspaces-NKujRzwh.js +0 -1
  279. package/dist/client/assets/OpsScreen-D8fQafCl.js +0 -1
  280. package/dist/client/assets/OpsSubnav-1K4Jaf__.js +0 -1
  281. package/dist/client/assets/ProjectAgentProfile-Bdjd_dAx.js +0 -1
  282. package/dist/client/assets/ProjectsScreen-cVUkGbPz.js +0 -1
  283. package/dist/client/assets/SessionsScreen--5OJ3p3v.js +0 -1
  284. package/dist/client/assets/agents-project-COzHxZAF.css +0 -1
  285. package/dist/client/assets/content-9K38QchR.js +0 -1
  286. package/dist/client/assets/content-BRgnyXWh.js +0 -1
  287. package/dist/client/assets/content-BdkI07v3.js +0 -1
  288. package/dist/client/assets/content-C4oWa8SB.js +0 -1
  289. package/dist/client/assets/content-CFZ4rghn.js +0 -1
  290. package/dist/client/assets/content-CIqu_Ci_.js +0 -1
  291. package/dist/client/assets/content-CnJF9DGO.js +0 -1
  292. package/dist/client/assets/content-CriW8Y8u.js +0 -1
  293. package/dist/client/assets/content-DDCyPPk_.js +0 -1
  294. package/dist/client/assets/content-DtcZeh5m.js +0 -1
  295. package/dist/client/assets/content-U9tsdtle.js +0 -1
  296. package/dist/client/assets/content-hFLK3CON.js +0 -1
  297. package/dist/client/assets/content-p00KQrtD.js +0 -1
  298. package/dist/client/assets/conversation-motion-features-D9-RmBSq.js +0 -1
  299. package/dist/client/assets/embed-entry-BSMUykuG.js +0 -2
  300. package/dist/client/assets/index-zvhpRHao.js +0 -1
  301. package/dist/client/assets/left-B-SdEJSJ.js +0 -1
  302. package/dist/client/assets/library-DkALuCh5.js +0 -1
  303. package/dist/client/assets/resolve-panes-DeVJbS9c.js +0 -1
  304. package/dist/client/assets/resolve-sidebar-context-BQe5J6xF.js +0 -1
  305. package/dist/client/assets/useContentSecondaryNav-pZe2Zfk1.js +0 -1
@@ -1 +1 @@
1
- import{c}from"./createLucideIcon-DezKXSG2.js";const e=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],i=c("git-branch",e);export{i as G};
1
+ import{c}from"./createLucideIcon-DthwWQIg.js";const e=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],i=c("git-branch",e);export{i as G};
@@ -1 +1 @@
1
- import{r as x,j as s}from"./index-DvLtl7rV.js";import{H as I}from"./HarnessMark-B979GCSB.js";import{n as S}from"./time-Dhsh_2EG.js";import{i as T}from"./agent-lanes-model-DXqjs0OK.js";import{u as v,l as $,a as P,c as H,h as z,b as F,d as b}from"./home-live-action-BkqGLVRY.js";import{C as W}from"./cpu-DrqejfkB.js";import{G as D}from"./git-branch-CK5v8F2v.js";import{X as q}from"./x-CAbNespN.js";import{F as X}from"./file-code-corner-muIVH_xO.js";import{A as _}from"./arrow-right-BuzMnLYP.js";import{T as J}from"./terminal-9GRS_Qdc.js";import"./context-budget-DX_fwUs3.js";import"./terminal-sessions-BQ6t92tJ.js";import"./api-Co9aQ2Jw.js";import"./perf-PX8Rx0EP.js";import"./lane-observe-vfyACHi0.js";import"./tail-display-DcliDVkW.js";import"./lane-edit-display-C_Aujldz.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./createLucideIcon-DezKXSG2.js";function Q(e){const i=e?.task?.trim();return!i||/^(working|idle|queued)$/i.test(i)?null:v(i)}function Y(e,i){const n=e?.replace(/\s+/g," ").trim().toLowerCase()??"",t=i?.replace(/\s+/g," ").trim().toLowerCase()??"";return!!(n&&t&&n!==t)}function y(e,i){const n=S(e);if(n===null)return"—";const t=Math.max(0,Math.floor((i-n)/1e3));if(t<60)return`${t}s`;const a=Math.floor(t/60);if(a<60)return`${a}m`;const o=Math.floor(a/60);return o<48?`${o}h`:`${Math.floor(o/24)}d`}function C(e){return e?e.startsWith("/Users/")?`~/${e.split("/").slice(3).join("/")}`:(e.startsWith("~/"),e):null}function M(e){const i=C(e);if(!i)return"other";const n=i.replace(/\/+$/u,"").split("/").filter(Boolean);return n[n.length-1]??i}function K(e){if(!C(e))return"other";const n=M(e);return n==="other"?"other":`~/${n}`}function U(e,i=140){const n=(e??"").replace(/\s+/g," ").trim();return n?n.length>i?`${n.slice(0,i-1)}…`:n:""}function B(e){const i=e?.metadata?.usage,n=i?.contextInputTokens,t=i?.contextWindowTokens;return typeof n=="number"&&typeof t=="number"&&t>0?{contextPct:Math.min(100,Math.round(n/t*100)),tokensUsed:n,tokensMax:t}:{contextPct:null,tokensUsed:null,tokensMax:null}}function Z(e,i,n,t,a,o){const c=e.projectRoot??e.cwd??null,u=M(c),m=Q(i),g=v($({observeData:n,checkpoint:null,fallbackTask:null,observeLive:t,skipLifecycleTokens:!0})),p=v(P(n)),N=!m&&!g&&!p,r=H({harness:e.harness,project:u==="other"?null:u,branch:e.branch,live:t,attachedOnly:N&&!t}),f=m||g||v(i?.summary)||p||r||"Working",j=m&&g&&Y(m,g)?g:null,h=S(n?.metadata?.session?.sessionStart),{contextPct:R,tokensUsed:k,tokensMax:L}=B(n);return{id:e.id,action:v(f)||U(f,160)||"Working",nowLine:j,name:e.name,harness:e.harness?.trim()||null,projectKey:u,projectLabel:K(c),projectRoot:c,branch:e.branch?.trim()||null,lastAge:y(a,o),sessionAge:h!==null?y(h,o):null,live:t||!!(i&&(i.status==="working"||i.agentState==="working"||i.agentState==="in_flight")),contextPct:R,tokensUsed:k,tokensMax:L,touchedFiles:n?.files??[],recentEvents:(n?.events??[]).slice(-6),observeData:n??null,agent:e,observeRoute:b(e,"observe"),profileRoute:b(e,"profile"),terminalRoute:b(e,"terminal"),peekRoute:b(e,"peek"),terminalEnabled:F(e),peekEnabled:z(e)}}function w(e,i,n){const t=e.agent,a=T(e.observe),o=t.projectRoot??t.cwd??null,c=M(o),u=v($({observeData:e.observe,fallbackTask:null,observeLive:a,skipLifecycleTokens:!0})),m=v(P(e.observe)),g=u||m||H({harness:t.harness,project:c==="other"?null:c,branch:t.branch,live:a,attachedOnly:!u&&!m}),p=S(e.observe?.metadata?.session?.sessionStart),{contextPct:N,tokensUsed:r,tokensMax:f}=B(e.observe);return{id:e.id,action:v(g)||U(g,160)||"Active",nowLine:null,name:t.name,harness:t.harness?.trim()||null,projectKey:c,projectLabel:K(o),projectRoot:o,branch:t.branch?.trim()||null,lastAge:y(i,n),sessionAge:p!==null?y(p,n):null,live:a,contextPct:N,tokensUsed:r,tokensMax:f,touchedFiles:e.observe?.files??[],recentEvents:(e.observe?.events??[]).slice(-6),observeData:e.observe??null,agent:t,observeRoute:b(t,"observe"),profileRoute:b(t,"profile"),terminalRoute:b(t,"terminal"),peekRoute:b(t,"peek"),terminalEnabled:F(t),peekEnabled:z(t)}}function ee(e,i,n){const t=e.actorName??e.agentName??e.agentId??"Observed",a=v(e.title)||v(e.summary)||"Observed activity",o=e.conversationId?{view:"conversation",conversationId:e.conversationId}:e.recordId?{view:"work",workId:e.recordId}:e.agentId?{view:"agents-v2",agentId:e.agentId}:null;return{id:e.id,action:a,nowLine:null,name:t,harness:null,projectKey:"observed",projectLabel:"observed",projectRoot:null,branch:null,lastAge:y(i,n),sessionAge:null,live:!1,contextPct:null,tokensUsed:null,tokensMax:null,touchedFiles:[],recentEvents:[],observeData:null,agent:null,observeRoute:o,profileRoute:e.agentId?{view:"agents-v2",agentId:e.agentId,tab:"profile"}:null,terminalRoute:null,peekRoute:null,terminalEnabled:!1,peekEnabled:!1}}function se(e){const i=new Map;for(const n of e){const t=i.get(n.projectKey)??[];t.push(n),i.set(n.projectKey,t)}return[...i.entries()]}function Le({cards:e,sort:i,nowMs:n,movingAskByAgent:t,observeCache:a,navigate:o}){const[c,u]=x.useState(null),[m,g]=x.useState(null),p=x.useRef(null),N=x.useRef(null),r=x.useMemo(()=>e.map(l=>l.bucket==="working"?Z(l.agent,t.get(l.agent.id),a[l.agent.id]?.data??null,T(a[l.agent.id]?.data),l.lastActivityAt,n):l.bucket==="native"?w(l.lane,l.lastActivityAt,n):ee(l.actor,l.lastActivityAt,n)),[e,t,n,a]),f=x.useMemo(()=>se(r),[r]),j=r.findIndex(l=>l.id===c),h=j>=0?r[j]:null,R=x.useCallback((l,d)=>{c||(p.current!==null&&window.clearTimeout(p.current),p.current=window.setTimeout(()=>{const O=Math.max(16,Math.min(d.left+96,window.innerWidth-360-16)),V=d.bottom+8+220>window.innerHeight?Math.max(16,d.top-8-220):d.bottom+8;g({id:l,top:V,left:O})},180))},[c]),k=x.useCallback(()=>{p.current!==null&&window.clearTimeout(p.current),p.current=null,g(null)},[]),L=x.useCallback(l=>{k(),u(d=>d===l?null:l)},[k]),G=x.useCallback(l=>{if(r.length!==0)if(l.key==="ArrowDown"){l.preventDefault();const d=j<0?0:Math.min(r.length-1,j+1);u(r[d]?.id??null)}else if(l.key==="ArrowUp"){l.preventDefault();const d=j<0?r.length-1:Math.max(0,j-1);u(r[d]?.id??null)}else l.key==="Escape"?(l.preventDefault(),u(null)):l.key==="Enter"&&h&&h.observeRoute&&(l.preventDefault(),o(h.observeRoute))},[o,h,j,r]);return x.useEffect(()=>{c&&!r.some(l=>l.id===c)&&u(null)},[c,r]),s.jsxs("div",{ref:N,className:`s-moving-signal-stage ${h?"s-moving-signal-stage--split":""}`,onKeyDown:G,tabIndex:0,role:"region","aria-label":"What's moving signal stream and inspector",children:[s.jsx("div",{className:"s-moving-stream-pane",children:i==="grouped"?s.jsx("div",{className:"s-moving-signal-grouped",children:f.map(([l,d])=>s.jsxs("section",{className:"s-moving-signal-group",children:[s.jsxs("header",{className:"s-moving-signal-band",children:[s.jsx("span",{className:"s-moving-signal-band-title",children:d[0]?.projectLabel??l}),s.jsxs("span",{className:"label-xs s-moving-signal-band-count",children:[d.length," ",d.length===1?"Signal":"Signals",d[0]?.branch?` · ${d[0].branch}`:""]})]}),s.jsx("div",{className:"s-moving-signal-list",children:d.map(A=>s.jsx(E,{row:A,grouped:!0,selected:c===A.id,onSelect:L,onHoverStart:R,onHoverEnd:k},A.id))})]},l))}):s.jsx("div",{className:"s-moving-signal-list",children:r.map(l=>s.jsx(E,{row:l,selected:c===l.id,onSelect:L,onHoverStart:R,onHoverEnd:k},l.id))})}),h&&s.jsx("aside",{className:"s-moving-inspector-pane","aria-label":`Live Inspector · ${h.name}`,children:s.jsx(ne,{row:h,onClose:()=>u(null),navigate:o})}),!h&&m&&s.jsx(te,{row:r.find(l=>l.id===m.id)??null,top:m.top,left:m.left})]})}function E({row:e,grouped:i,selected:n,onSelect:t,onHoverStart:a,onHoverEnd:o}){const c=e.projectKey!=="other"&&e.projectKey!=="observed",u=i||!c?e.name:e.projectKey;return s.jsx("div",{className:"s-moving-signal-item",children:s.jsxs("button",{type:"button",className:`s-moving-signal-row ${n?"is-selected":""}`,"aria-pressed":n,onClick:()=>t(e.id),onMouseEnter:m=>a(e.id,m.currentTarget.getBoundingClientRect()),onMouseLeave:o,onFocus:m=>a(e.id,m.currentTarget.getBoundingClientRect()),onBlur:o,children:[s.jsxs("span",{className:`s-moving-signal-age ${e.live?"is-live":""}`,children:[s.jsx("span",{className:`dot ${e.live?"dot--working dot--pulse dot--glow":"dot--neutral"}`,"aria-hidden":"true"}),s.jsx("span",{className:"label-xs",children:e.lastAge})]}),s.jsx("span",{className:"s-moving-signal-mark",children:e.harness?s.jsx(I,{harness:e.harness,size:12}):s.jsx(W,{size:12})}),s.jsxs("span",{className:"s-moving-signal-where",children:[s.jsx("span",{className:"s-moving-signal-project",children:u}),e.branch&&s.jsxs("span",{className:"chip chip--mono chip--sm chip--neutral s-moving-signal-branch-chip",children:[s.jsx(D,{size:9,"aria-hidden":"true"}),s.jsx("span",{children:e.branch})]})]}),s.jsx("span",{className:"s-moving-signal-action",title:e.action,children:e.action}),e.contextPct!==null&&s.jsxs("span",{className:"s-moving-signal-ctx-badge",title:`Context window: ${e.contextPct}%`,children:[s.jsx("span",{className:"s-moving-signal-ctx-mini-bar",children:s.jsx("span",{className:"s-moving-signal-ctx-mini-fill",style:{width:`${e.contextPct}%`}})}),s.jsxs("span",{className:"label-xs",children:[e.contextPct,"%"]})]})]})})}function ne({row:e,onClose:i,navigate:n}){return s.jsxs("div",{className:"s-moving-inspector",children:[s.jsxs("header",{className:"s-moving-inspector-head",children:[s.jsxs("div",{className:"s-moving-inspector-head-left",children:[s.jsx("span",{className:`dot dot--sm ${e.live?"dot--working dot--glow dot--pulse":"dot--neutral"}`,"aria-hidden":"true"}),s.jsx("span",{className:"label-xs s-moving-inspector-live-status",children:e.live?"LIVE ACTIVE":"IDLE / LOGGED"}),s.jsxs("span",{className:"label-xs s-moving-inspector-age",children:[e.lastAge," ago"]})]}),s.jsx("div",{className:"s-moving-inspector-head-right",children:s.jsx("button",{type:"button",className:"s-moving-inspector-close-btn",title:"Close inspector (Esc)","aria-label":"Close inspector",onClick:i,children:s.jsx(q,{size:13,"aria-hidden":"true"})})})]}),s.jsxs("div",{className:"s-moving-inspector-agent-strip",children:[s.jsxs("div",{className:"s-moving-inspector-agent-ident",children:[s.jsx("span",{className:"s-moving-inspector-harness-icon",children:e.harness?s.jsx(I,{harness:e.harness,size:16}):s.jsx(W,{size:16})}),s.jsxs("div",{className:"s-moving-inspector-agent-meta",children:[s.jsx("span",{className:"s-moving-inspector-name",children:e.name}),s.jsx("span",{className:"label-xs s-moving-inspector-harness-tag",children:e.harness||"native agent"})]})]}),e.branch&&s.jsxs("span",{className:"chip chip--mono chip--sm chip--working",children:[s.jsx(D,{size:10,"aria-hidden":"true"}),s.jsx("span",{children:e.branch})]})]}),s.jsxs("div",{className:"s-moving-inspector-body",children:[s.jsxs("div",{className:"s-moving-inspector-section",children:[s.jsx("span",{className:"label-xs s-moving-inspector-sec-label",children:"Active Task"}),s.jsx("p",{className:"s-moving-inspector-action-text",children:e.action})]}),e.nowLine&&s.jsxs("div",{className:"s-moving-inspector-section s-moving-inspector-section--now",children:[s.jsx("span",{className:"label-xs s-moving-inspector-now-badge",children:"Latest Step"}),s.jsx("p",{className:"s-moving-inspector-now-text",children:e.nowLine})]}),e.contextPct!==null&&s.jsxs("div",{className:"s-moving-inspector-section s-moving-inspector-token-sec",children:[s.jsxs("div",{className:"s-moving-inspector-token-header",children:[s.jsx("span",{className:"label-xs s-moving-inspector-sec-label",children:"Context Window"}),s.jsxs("span",{className:"label-xs s-moving-inspector-token-pct",children:[e.contextPct,"%"]})]}),s.jsx("div",{className:"s-moving-inspector-token-bar",children:s.jsx("div",{className:`s-moving-inspector-token-fill ${e.contextPct>80?"s-moving-inspector-token-fill--warn":""}`,style:{width:`${e.contextPct}%`}})}),e.tokensUsed!==null&&e.tokensMax!==null&&s.jsxs("span",{className:"label-xs s-moving-inspector-token-counts",children:[Math.round(e.tokensUsed/1e3),"k / ",Math.round(e.tokensMax/1e3),"k tokens"]})]}),s.jsxs("div",{className:"s-moving-inspector-section",children:[s.jsx("span",{className:"label-xs s-moving-inspector-sec-label",children:"Session Metadata"}),s.jsxs("dl",{className:"s-moving-inspector-meta-grid",children:[e.projectRoot&&s.jsxs("div",{children:[s.jsx("dt",{children:"Root"}),s.jsx("dd",{title:e.projectRoot,children:C(e.projectRoot)})]}),e.sessionAge&&s.jsxs("div",{children:[s.jsx("dt",{children:"Session"}),s.jsxs("dd",{children:[e.sessionAge," uptime"]})]}),s.jsxs("div",{children:[s.jsx("dt",{children:"Status"}),s.jsx("dd",{children:e.live?"streaming":"ready"})]})]})]}),e.touchedFiles.length>0&&s.jsxs("div",{className:"s-moving-inspector-section",children:[s.jsxs("span",{className:"label-xs s-moving-inspector-sec-label",children:["Active Files (",e.touchedFiles.length,")"]}),s.jsx("ul",{className:"s-moving-inspector-files-list",children:e.touchedFiles.slice(0,4).map((t,a)=>s.jsxs("li",{className:"s-moving-inspector-file-item",children:[s.jsx(X,{size:11,"aria-hidden":"true"}),s.jsx("span",{className:"s-moving-inspector-file-path",title:t.path,children:t.path.split("/").slice(-2).join("/")})]},a))})]})]}),s.jsxs("footer",{className:"s-moving-inspector-footer",children:[e.observeRoute&&s.jsxs("button",{type:"button",className:"btn btn--sm btn--accent s-moving-inspector-primary-action",onClick:()=>n(e.observeRoute),children:[s.jsx("span",{children:"Observe Live"}),s.jsx(_,{size:11,"aria-hidden":"true"})]}),e.profileRoute&&s.jsx("button",{type:"button",className:"btn btn--sm btn--ghost",onClick:()=>n(e.profileRoute),children:s.jsx("span",{children:"Profile"})}),e.terminalEnabled&&e.terminalRoute&&s.jsxs("button",{type:"button",className:"btn btn--sm btn--ghost",onClick:()=>n(e.terminalRoute),children:[s.jsx(J,{size:11,"aria-hidden":"true"}),s.jsx("span",{children:"Terminal"})]})]})]})}function te({row:e,top:i,left:n}){return e?s.jsxs("div",{className:"s-moving-signal-hovercard",style:{top:i,left:n},role:"tooltip","aria-hidden":"true",children:[s.jsxs("div",{className:"s-moving-signal-hover-kicker",children:[e.live&&s.jsx("span",{className:"chip chip--working chip--sm chip--caps",children:"Live"}),s.jsxs("span",{className:"label-xs",children:[e.lastAge," ago"]}),e.harness&&s.jsx(I,{harness:e.harness,size:11}),s.jsx("span",{className:"s-moving-signal-hover-name",children:e.name})]}),s.jsx("p",{className:"s-moving-signal-hover-action",children:e.action}),e.nowLine&&s.jsxs("p",{className:"s-moving-signal-hover-now",children:[s.jsx("span",{className:"label-xs s-moving-signal-hover-now-tag",children:"Now"}),s.jsx("span",{children:e.nowLine})]})]}):null}export{Le as HomeMovingSignalList};
1
+ import{r as x,j as s}from"./index-BI9AljSD.js";import{H as I}from"./HarnessMark-DAaWPiT_.js";import{n as S}from"./time-Dhsh_2EG.js";import{i as T}from"./agent-lanes-model-DXqjs0OK.js";import{u as v,l as $,a as P,c as H,h as z,b as F,d as b}from"./home-live-action-BkqGLVRY.js";import{C as W}from"./cpu-DuD3RFX5.js";import{G as D}from"./git-branch-DJyvr0k-.js";import{X as q}from"./x-DfRJbqrh.js";import{F as X}from"./file-code-corner-DDPq4Cur.js";import{A as _}from"./arrow-right-BBsrogWf.js";import{T as J}from"./terminal-C3YRPfyz.js";import"./context-budget-DX_fwUs3.js";import"./terminal-sessions-BQ6t92tJ.js";import"./api-Co9aQ2Jw.js";import"./perf-PX8Rx0EP.js";import"./lane-observe-vfyACHi0.js";import"./tail-display-DcliDVkW.js";import"./lane-edit-display-C_Aujldz.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./createLucideIcon-DthwWQIg.js";function Q(e){const i=e?.task?.trim();return!i||/^(working|idle|queued)$/i.test(i)?null:v(i)}function Y(e,i){const n=e?.replace(/\s+/g," ").trim().toLowerCase()??"",t=i?.replace(/\s+/g," ").trim().toLowerCase()??"";return!!(n&&t&&n!==t)}function y(e,i){const n=S(e);if(n===null)return"—";const t=Math.max(0,Math.floor((i-n)/1e3));if(t<60)return`${t}s`;const a=Math.floor(t/60);if(a<60)return`${a}m`;const o=Math.floor(a/60);return o<48?`${o}h`:`${Math.floor(o/24)}d`}function C(e){return e?e.startsWith("/Users/")?`~/${e.split("/").slice(3).join("/")}`:(e.startsWith("~/"),e):null}function M(e){const i=C(e);if(!i)return"other";const n=i.replace(/\/+$/u,"").split("/").filter(Boolean);return n[n.length-1]??i}function K(e){if(!C(e))return"other";const n=M(e);return n==="other"?"other":`~/${n}`}function U(e,i=140){const n=(e??"").replace(/\s+/g," ").trim();return n?n.length>i?`${n.slice(0,i-1)}…`:n:""}function B(e){const i=e?.metadata?.usage,n=i?.contextInputTokens,t=i?.contextWindowTokens;return typeof n=="number"&&typeof t=="number"&&t>0?{contextPct:Math.min(100,Math.round(n/t*100)),tokensUsed:n,tokensMax:t}:{contextPct:null,tokensUsed:null,tokensMax:null}}function Z(e,i,n,t,a,o){const c=e.projectRoot??e.cwd??null,u=M(c),m=Q(i),g=v($({observeData:n,checkpoint:null,fallbackTask:null,observeLive:t,skipLifecycleTokens:!0})),p=v(P(n)),N=!m&&!g&&!p,r=H({harness:e.harness,project:u==="other"?null:u,branch:e.branch,live:t,attachedOnly:N&&!t}),f=m||g||v(i?.summary)||p||r||"Working",j=m&&g&&Y(m,g)?g:null,h=S(n?.metadata?.session?.sessionStart),{contextPct:R,tokensUsed:k,tokensMax:L}=B(n);return{id:e.id,action:v(f)||U(f,160)||"Working",nowLine:j,name:e.name,harness:e.harness?.trim()||null,projectKey:u,projectLabel:K(c),projectRoot:c,branch:e.branch?.trim()||null,lastAge:y(a,o),sessionAge:h!==null?y(h,o):null,live:t||!!(i&&(i.status==="working"||i.agentState==="working"||i.agentState==="in_flight")),contextPct:R,tokensUsed:k,tokensMax:L,touchedFiles:n?.files??[],recentEvents:(n?.events??[]).slice(-6),observeData:n??null,agent:e,observeRoute:b(e,"observe"),profileRoute:b(e,"profile"),terminalRoute:b(e,"terminal"),peekRoute:b(e,"peek"),terminalEnabled:F(e),peekEnabled:z(e)}}function w(e,i,n){const t=e.agent,a=T(e.observe),o=t.projectRoot??t.cwd??null,c=M(o),u=v($({observeData:e.observe,fallbackTask:null,observeLive:a,skipLifecycleTokens:!0})),m=v(P(e.observe)),g=u||m||H({harness:t.harness,project:c==="other"?null:c,branch:t.branch,live:a,attachedOnly:!u&&!m}),p=S(e.observe?.metadata?.session?.sessionStart),{contextPct:N,tokensUsed:r,tokensMax:f}=B(e.observe);return{id:e.id,action:v(g)||U(g,160)||"Active",nowLine:null,name:t.name,harness:t.harness?.trim()||null,projectKey:c,projectLabel:K(o),projectRoot:o,branch:t.branch?.trim()||null,lastAge:y(i,n),sessionAge:p!==null?y(p,n):null,live:a,contextPct:N,tokensUsed:r,tokensMax:f,touchedFiles:e.observe?.files??[],recentEvents:(e.observe?.events??[]).slice(-6),observeData:e.observe??null,agent:t,observeRoute:b(t,"observe"),profileRoute:b(t,"profile"),terminalRoute:b(t,"terminal"),peekRoute:b(t,"peek"),terminalEnabled:F(t),peekEnabled:z(t)}}function ee(e,i,n){const t=e.actorName??e.agentName??e.agentId??"Observed",a=v(e.title)||v(e.summary)||"Observed activity",o=e.conversationId?{view:"conversation",conversationId:e.conversationId}:e.recordId?{view:"work",workId:e.recordId}:e.agentId?{view:"agents-v2",agentId:e.agentId}:null;return{id:e.id,action:a,nowLine:null,name:t,harness:null,projectKey:"observed",projectLabel:"observed",projectRoot:null,branch:null,lastAge:y(i,n),sessionAge:null,live:!1,contextPct:null,tokensUsed:null,tokensMax:null,touchedFiles:[],recentEvents:[],observeData:null,agent:null,observeRoute:o,profileRoute:e.agentId?{view:"agents-v2",agentId:e.agentId,tab:"profile"}:null,terminalRoute:null,peekRoute:null,terminalEnabled:!1,peekEnabled:!1}}function se(e){const i=new Map;for(const n of e){const t=i.get(n.projectKey)??[];t.push(n),i.set(n.projectKey,t)}return[...i.entries()]}function Le({cards:e,sort:i,nowMs:n,movingAskByAgent:t,observeCache:a,navigate:o}){const[c,u]=x.useState(null),[m,g]=x.useState(null),p=x.useRef(null),N=x.useRef(null),r=x.useMemo(()=>e.map(l=>l.bucket==="working"?Z(l.agent,t.get(l.agent.id),a[l.agent.id]?.data??null,T(a[l.agent.id]?.data),l.lastActivityAt,n):l.bucket==="native"?w(l.lane,l.lastActivityAt,n):ee(l.actor,l.lastActivityAt,n)),[e,t,n,a]),f=x.useMemo(()=>se(r),[r]),j=r.findIndex(l=>l.id===c),h=j>=0?r[j]:null,R=x.useCallback((l,d)=>{c||(p.current!==null&&window.clearTimeout(p.current),p.current=window.setTimeout(()=>{const O=Math.max(16,Math.min(d.left+96,window.innerWidth-360-16)),V=d.bottom+8+220>window.innerHeight?Math.max(16,d.top-8-220):d.bottom+8;g({id:l,top:V,left:O})},180))},[c]),k=x.useCallback(()=>{p.current!==null&&window.clearTimeout(p.current),p.current=null,g(null)},[]),L=x.useCallback(l=>{k(),u(d=>d===l?null:l)},[k]),G=x.useCallback(l=>{if(r.length!==0)if(l.key==="ArrowDown"){l.preventDefault();const d=j<0?0:Math.min(r.length-1,j+1);u(r[d]?.id??null)}else if(l.key==="ArrowUp"){l.preventDefault();const d=j<0?r.length-1:Math.max(0,j-1);u(r[d]?.id??null)}else l.key==="Escape"?(l.preventDefault(),u(null)):l.key==="Enter"&&h&&h.observeRoute&&(l.preventDefault(),o(h.observeRoute))},[o,h,j,r]);return x.useEffect(()=>{c&&!r.some(l=>l.id===c)&&u(null)},[c,r]),s.jsxs("div",{ref:N,className:`s-moving-signal-stage ${h?"s-moving-signal-stage--split":""}`,onKeyDown:G,tabIndex:0,role:"region","aria-label":"What's moving signal stream and inspector",children:[s.jsx("div",{className:"s-moving-stream-pane",children:i==="grouped"?s.jsx("div",{className:"s-moving-signal-grouped",children:f.map(([l,d])=>s.jsxs("section",{className:"s-moving-signal-group",children:[s.jsxs("header",{className:"s-moving-signal-band",children:[s.jsx("span",{className:"s-moving-signal-band-title",children:d[0]?.projectLabel??l}),s.jsxs("span",{className:"label-xs s-moving-signal-band-count",children:[d.length," ",d.length===1?"Signal":"Signals",d[0]?.branch?` · ${d[0].branch}`:""]})]}),s.jsx("div",{className:"s-moving-signal-list",children:d.map(A=>s.jsx(E,{row:A,grouped:!0,selected:c===A.id,onSelect:L,onHoverStart:R,onHoverEnd:k},A.id))})]},l))}):s.jsx("div",{className:"s-moving-signal-list",children:r.map(l=>s.jsx(E,{row:l,selected:c===l.id,onSelect:L,onHoverStart:R,onHoverEnd:k},l.id))})}),h&&s.jsx("aside",{className:"s-moving-inspector-pane","aria-label":`Live Inspector · ${h.name}`,children:s.jsx(ne,{row:h,onClose:()=>u(null),navigate:o})}),!h&&m&&s.jsx(te,{row:r.find(l=>l.id===m.id)??null,top:m.top,left:m.left})]})}function E({row:e,grouped:i,selected:n,onSelect:t,onHoverStart:a,onHoverEnd:o}){const c=e.projectKey!=="other"&&e.projectKey!=="observed",u=i||!c?e.name:e.projectKey;return s.jsx("div",{className:"s-moving-signal-item",children:s.jsxs("button",{type:"button",className:`s-moving-signal-row ${n?"is-selected":""}`,"aria-pressed":n,onClick:()=>t(e.id),onMouseEnter:m=>a(e.id,m.currentTarget.getBoundingClientRect()),onMouseLeave:o,onFocus:m=>a(e.id,m.currentTarget.getBoundingClientRect()),onBlur:o,children:[s.jsxs("span",{className:`s-moving-signal-age ${e.live?"is-live":""}`,children:[s.jsx("span",{className:`dot ${e.live?"dot--working dot--pulse dot--glow":"dot--neutral"}`,"aria-hidden":"true"}),s.jsx("span",{className:"label-xs",children:e.lastAge})]}),s.jsx("span",{className:"s-moving-signal-mark",children:e.harness?s.jsx(I,{harness:e.harness,size:12}):s.jsx(W,{size:12})}),s.jsxs("span",{className:"s-moving-signal-where",children:[s.jsx("span",{className:"s-moving-signal-project",children:u}),e.branch&&s.jsxs("span",{className:"chip chip--mono chip--sm chip--neutral s-moving-signal-branch-chip",children:[s.jsx(D,{size:9,"aria-hidden":"true"}),s.jsx("span",{children:e.branch})]})]}),s.jsx("span",{className:"s-moving-signal-action",title:e.action,children:e.action}),e.contextPct!==null&&s.jsxs("span",{className:"s-moving-signal-ctx-badge",title:`Context window: ${e.contextPct}%`,children:[s.jsx("span",{className:"s-moving-signal-ctx-mini-bar",children:s.jsx("span",{className:"s-moving-signal-ctx-mini-fill",style:{width:`${e.contextPct}%`}})}),s.jsxs("span",{className:"label-xs",children:[e.contextPct,"%"]})]})]})})}function ne({row:e,onClose:i,navigate:n}){return s.jsxs("div",{className:"s-moving-inspector",children:[s.jsxs("header",{className:"s-moving-inspector-head",children:[s.jsxs("div",{className:"s-moving-inspector-head-left",children:[s.jsx("span",{className:`dot dot--sm ${e.live?"dot--working dot--glow dot--pulse":"dot--neutral"}`,"aria-hidden":"true"}),s.jsx("span",{className:"label-xs s-moving-inspector-live-status",children:e.live?"LIVE ACTIVE":"IDLE / LOGGED"}),s.jsxs("span",{className:"label-xs s-moving-inspector-age",children:[e.lastAge," ago"]})]}),s.jsx("div",{className:"s-moving-inspector-head-right",children:s.jsx("button",{type:"button",className:"s-moving-inspector-close-btn",title:"Close inspector (Esc)","aria-label":"Close inspector",onClick:i,children:s.jsx(q,{size:13,"aria-hidden":"true"})})})]}),s.jsxs("div",{className:"s-moving-inspector-agent-strip",children:[s.jsxs("div",{className:"s-moving-inspector-agent-ident",children:[s.jsx("span",{className:"s-moving-inspector-harness-icon",children:e.harness?s.jsx(I,{harness:e.harness,size:16}):s.jsx(W,{size:16})}),s.jsxs("div",{className:"s-moving-inspector-agent-meta",children:[s.jsx("span",{className:"s-moving-inspector-name",children:e.name}),s.jsx("span",{className:"label-xs s-moving-inspector-harness-tag",children:e.harness||"native agent"})]})]}),e.branch&&s.jsxs("span",{className:"chip chip--mono chip--sm chip--working",children:[s.jsx(D,{size:10,"aria-hidden":"true"}),s.jsx("span",{children:e.branch})]})]}),s.jsxs("div",{className:"s-moving-inspector-body",children:[s.jsxs("div",{className:"s-moving-inspector-section",children:[s.jsx("span",{className:"label-xs s-moving-inspector-sec-label",children:"Active Task"}),s.jsx("p",{className:"s-moving-inspector-action-text",children:e.action})]}),e.nowLine&&s.jsxs("div",{className:"s-moving-inspector-section s-moving-inspector-section--now",children:[s.jsx("span",{className:"label-xs s-moving-inspector-now-badge",children:"Latest Step"}),s.jsx("p",{className:"s-moving-inspector-now-text",children:e.nowLine})]}),e.contextPct!==null&&s.jsxs("div",{className:"s-moving-inspector-section s-moving-inspector-token-sec",children:[s.jsxs("div",{className:"s-moving-inspector-token-header",children:[s.jsx("span",{className:"label-xs s-moving-inspector-sec-label",children:"Context Window"}),s.jsxs("span",{className:"label-xs s-moving-inspector-token-pct",children:[e.contextPct,"%"]})]}),s.jsx("div",{className:"s-moving-inspector-token-bar",children:s.jsx("div",{className:`s-moving-inspector-token-fill ${e.contextPct>80?"s-moving-inspector-token-fill--warn":""}`,style:{width:`${e.contextPct}%`}})}),e.tokensUsed!==null&&e.tokensMax!==null&&s.jsxs("span",{className:"label-xs s-moving-inspector-token-counts",children:[Math.round(e.tokensUsed/1e3),"k / ",Math.round(e.tokensMax/1e3),"k tokens"]})]}),s.jsxs("div",{className:"s-moving-inspector-section",children:[s.jsx("span",{className:"label-xs s-moving-inspector-sec-label",children:"Session Metadata"}),s.jsxs("dl",{className:"s-moving-inspector-meta-grid",children:[e.projectRoot&&s.jsxs("div",{children:[s.jsx("dt",{children:"Root"}),s.jsx("dd",{title:e.projectRoot,children:C(e.projectRoot)})]}),e.sessionAge&&s.jsxs("div",{children:[s.jsx("dt",{children:"Session"}),s.jsxs("dd",{children:[e.sessionAge," uptime"]})]}),s.jsxs("div",{children:[s.jsx("dt",{children:"Status"}),s.jsx("dd",{children:e.live?"streaming":"ready"})]})]})]}),e.touchedFiles.length>0&&s.jsxs("div",{className:"s-moving-inspector-section",children:[s.jsxs("span",{className:"label-xs s-moving-inspector-sec-label",children:["Active Files (",e.touchedFiles.length,")"]}),s.jsx("ul",{className:"s-moving-inspector-files-list",children:e.touchedFiles.slice(0,4).map((t,a)=>s.jsxs("li",{className:"s-moving-inspector-file-item",children:[s.jsx(X,{size:11,"aria-hidden":"true"}),s.jsx("span",{className:"s-moving-inspector-file-path",title:t.path,children:t.path.split("/").slice(-2).join("/")})]},a))})]})]}),s.jsxs("footer",{className:"s-moving-inspector-footer",children:[e.observeRoute&&s.jsxs("button",{type:"button",className:"btn btn--sm btn--accent s-moving-inspector-primary-action",onClick:()=>n(e.observeRoute),children:[s.jsx("span",{children:"Observe Live"}),s.jsx(_,{size:11,"aria-hidden":"true"})]}),e.profileRoute&&s.jsx("button",{type:"button",className:"btn btn--sm btn--ghost",onClick:()=>n(e.profileRoute),children:s.jsx("span",{children:"Profile"})}),e.terminalEnabled&&e.terminalRoute&&s.jsxs("button",{type:"button",className:"btn btn--sm btn--ghost",onClick:()=>n(e.terminalRoute),children:[s.jsx(J,{size:11,"aria-hidden":"true"}),s.jsx("span",{children:"Terminal"})]})]})]})}function te({row:e,top:i,left:n}){return e?s.jsxs("div",{className:"s-moving-signal-hovercard",style:{top:i,left:n},role:"tooltip","aria-hidden":"true",children:[s.jsxs("div",{className:"s-moving-signal-hover-kicker",children:[e.live&&s.jsx("span",{className:"chip chip--working chip--sm chip--caps",children:"Live"}),s.jsxs("span",{className:"label-xs",children:[e.lastAge," ago"]}),e.harness&&s.jsx(I,{harness:e.harness,size:11}),s.jsx("span",{className:"s-moving-signal-hover-name",children:e.name})]}),s.jsx("p",{className:"s-moving-signal-hover-action",children:e.action}),e.nowLine&&s.jsxs("p",{className:"s-moving-signal-hover-now",children:[s.jsx("span",{className:"label-xs s-moving-signal-hover-now-tag",children:"Now"}),s.jsx("span",{children:e.nowLine})]})]}):null}export{Le as HomeMovingSignalList};
@@ -1 +1 @@
1
- import{r as _,j as t}from"./index-DvLtl7rV.js";import{A as ee}from"./AgentAvatar-6-KBVKUu.js";import{H as te}from"./HarnessMark-B979GCSB.js";import{a as se}from"./colors-BtO5_zlx.js";import{f as ne}from"./text-BP3oyl8-.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-CNZMPkhc.js";import{HomeNowNanoStat as A,HomeNowFilesPanel as le}from"./home-now-card-nano-C-r_bBg5.js";import"./Provider-CtXJeLrP.js";import"./router-B9vQkNJL.js";import"./perf-PX8Rx0EP.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-BQ6t92tJ.js";import"./api-Co9aQ2Jw.js";import"./sse-CD9MMUxl.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-BJIamJOH.js";import"./DocumentFocusViewer-Do3wQ_3Z.js";import"./createLucideIcon-DezKXSG2.js";import"./TextDocumentSurface-BflAwXeZ.js";import"./file-text-CqJgwxmv.js";import"./x-CAbNespN.js";import"./chevron-right-D-HdlPg8.js";import"./code-xml-D7pOQM9l.js";import"./arrow-left-Czpf-AE4.js";import"./arrow-right-BuzMnLYP.js";import"./scout-voice-BVUqGhth.js";import"./fx-z37u1o2z.js";import"./keyboard-nav-BLYDhL3Z.js";import"./NewChatComposer-_Stj0fZy.js";import"./conversation-model-Dc02NsGp.js";import"./index-zvhpRHao.js";import"./NewChatOrigin-B1u7ki70.js";import"./chevron-down-wciXnOQz.js";import"./search-CDko0PKE.js";import"./loader-circle-pM56HNhR.js";import"./chunk-HRAB3GC3-Tyv9rzx7.js";import"./SpriteAvatar-z5hHesx9.js";import"./CrewAvatar-BwXjyg8N.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-DXqjs0OK.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-BI9AljSD.js";import{A as ee}from"./AgentAvatar-B7c0egdP.js";import{H as te}from"./HarnessMark-DAaWPiT_.js";import{a as se}from"./colors-BtO5_zlx.js";import{f as ne}from"./text-Faa3ZStB.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-CNZMPkhc.js";import{HomeNowNanoStat as A,HomeNowFilesPanel as le}from"./home-now-card-nano-G8kMB32m.js";import"./Provider-Bu-C8Hxc.js";import"./router-DTtux5sP.js";import"./perf-PX8Rx0EP.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-BQ6t92tJ.js";import"./api-Co9aQ2Jw.js";import"./sse-DDHEHUgz.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-BJIamJOH.js";import"./DocumentFocusViewer-DFFE85Tq.js";import"./createLucideIcon-DthwWQIg.js";import"./TextDocumentSurface-BeSwe3Yl.js";import"./file-text--hfhwZH1.js";import"./x-DfRJbqrh.js";import"./chevron-right-CnZRSd-V.js";import"./code-xml-CvKBY3KA.js";import"./arrow-left-DHfdXJVZ.js";import"./arrow-right-BBsrogWf.js";import"./scout-voice-BZKsdquE.js";import"./fx-z37u1o2z.js";import"./keyboard-nav-e6yGeorb.js";import"./NewChatComposer-C_1op4dH.js";import"./conversation-model-QsJVfSeG.js";import"./index-DfsTyYDx.js";import"./NewChatOrigin-D7hwp6dm.js";import"./chevron-down-C475vltS.js";import"./search-DmFM_9jm.js";import"./loader-circle-B2W9DPG5.js";import"./chunk-HRAB3GC3-DLNT8aOo.js";import"./SpriteAvatar-56DTXxSV.js";import"./CrewAvatar-CXJHLNVM.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-DXqjs0OK.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-DvLtl7rV.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-BI9AljSD.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-DvLtl7rV.js";import{b as k,ac as N,s as O,c as A,h as b}from"./router-B9vQkNJL.js";import{a as S}from"./api-Co9aQ2Jw.js";import{o as L,i as M}from"./surface-activity-B1rgWB1i.js";import{h as R}from"./NewChatComposer-_Stj0fZy.js";import{u as v}from"./Provider-CtXJeLrP.js";import{l as T}from"./mesh-buckets-6y3ZIibI.js";import{S as _}from"./server-Bzj7lPIx.js";import{i as x}from"./keyboard-nav-BLYDhL3Z.js";import{S as I}from"./scoutbot-BJIamJOH.js";import{a as j,b as $,c as B,d as K}from"./secondaryNavConfig-BoQ_zYR9.js";import{S as W}from"./settings-Dyvpkb1D.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=k(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?O(n,h):A(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",ge=["C"],Se=["⌘","⌥","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 Ee(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 we(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 ye(){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:()=>{R(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=()=>{M()&&u()},m=setInterval(s,15e3),f=L(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-BI9AljSD.js";import{b as k,ac as N,s as O,c as A,h as b}from"./router-DTtux5sP.js";import{a as S}from"./api-Co9aQ2Jw.js";import{o as L,i as M}from"./surface-activity-B1rgWB1i.js";import{h as R}from"./NewChatComposer-C_1op4dH.js";import{u as v}from"./Provider-Bu-C8Hxc.js";import{l as T}from"./mesh-buckets-6y3ZIibI.js";import{S as _}from"./server-nWqndnxu.js";import{i as x}from"./keyboard-nav-e6yGeorb.js";import{S as I}from"./scoutbot-BJIamJOH.js";import{a as j,b as $,c as B,d as K}from"./secondaryNavConfig-C9bQ9_IA.js";import{S as W}from"./settings-C6h9y5XX.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=k(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?O(n,h):A(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",ge=["C"],Se=["⌘","⌥","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 Ee(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 we(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 ye(){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:()=>{R(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=()=>{M()&&u()},m=setInterval(s,15e3),f=L(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=T(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 Ne(){return ne().status}function Ce(){const{route:e,navigate:n}=v();return b("nav.sidebar",!1)?null:ee({items:Q(),activeKey:X(e),breadcrumb:Z(e),navigate:n})}function ke(){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 Oe(){return"panel"}function oe(e){return e.view==="ops"&&e.mode==="lanes"}function Ae(){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,Oe as a,ke as b,Ce as c,Ne as d,ye as e,ge as f,Se as g,P as h,we as i,ne as j,Ee as k,ee as r,Ae as u};