@openscout/scout 0.2.105 → 0.2.106

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 (573) hide show
  1. package/bin/scoutd +0 -0
  2. package/dist/build-manifest.json +3 -3
  3. package/dist/chat.mjs +23 -1
  4. package/dist/client/assets/ActivityScreen-CZmGwQ2U.js +1 -0
  5. package/dist/client/assets/{AddProjectForm-CHNJ4NnS.js → AddProjectForm-CusDRiVO.js} +1 -1
  6. package/dist/client/assets/{AdventureEvidence-B4mEvXeD.js → AdventureEvidence-CyegKk1V.js} +1 -1
  7. package/dist/client/assets/{AdventureReader-ZsBDQITY.js → AdventureReader-X-hbTOi0.js} +1 -1
  8. package/dist/client/assets/{AdventureScenery-DSxDlqG1.js → AdventureScenery-LPXSVP67.js} +1 -1
  9. package/dist/client/assets/AgentAdventures-BAgxdOF8.js +1 -0
  10. package/dist/client/assets/AgentAvatar-CrP1eXxk.js +1 -0
  11. package/dist/client/assets/AgentConfigurationScreen-1L0IQm2w.js +1 -0
  12. package/dist/client/assets/AgentDefinitionsWorkspace-DguGs7jZ.js +1 -0
  13. package/dist/client/assets/{AgentDetailCard-MIEBKw_S.js → AgentDetailCard-DtHT3sCo.js} +1 -1
  14. package/dist/client/assets/AgentFloorView-DH4jiDgw.js +1 -0
  15. package/dist/client/assets/{AgentFloorWorld-BTqwmK5G.js → AgentFloorWorld-CjoIa6jA.js} +1 -1
  16. package/dist/client/assets/AgentInfoScreen-DYtmKkeE.js +1 -0
  17. package/dist/client/assets/{AgentLaneCard-C4rKLLdT.js → AgentLaneCard-BaZ2g-f8.js} +1 -1
  18. package/dist/client/assets/{AgentLaneChrome-fGC-ZrJS.js → AgentLaneChrome-TF1SlJSc.js} +1 -1
  19. package/dist/client/assets/{AgentLaneDetailSheet-BTF4_th9.js → AgentLaneDetailSheet-EzEPsn3g.js} +1 -1
  20. package/dist/client/assets/{AgentLaneSummaryResize-DgSeA_vS.js → AgentLaneSummaryResize-dpp7YvrX.js} +1 -1
  21. package/dist/client/assets/AgentLanesEmbedScreen-BlSof_6S.js +1 -0
  22. package/dist/client/assets/{AgentLanesPreflight-CcS23wij.js → AgentLanesPreflight-Ry-aqDTr.js} +1 -1
  23. package/dist/client/assets/AgentLanesView-BJi9xXz6.js +2 -0
  24. package/dist/client/assets/{AgentLiveActions-6Kfr1uOT.js → AgentLiveActions-CfTupTEl.js} +1 -1
  25. package/dist/client/assets/AgentMasterScreen-EJhmuKgl.js +1 -0
  26. package/dist/client/assets/AgentSessions-B1gOhDBf.js +6 -0
  27. package/dist/client/assets/AgentsConsole-RXGqRvcb.js +1 -0
  28. package/dist/client/assets/AgentsScreen-ChwMBs11.js +1 -0
  29. package/dist/client/assets/AgentsSubnav-DwNX4yy0.js +1 -0
  30. package/dist/client/assets/{AstronautSuit-D67fIBdR.js → AstronautSuit-Cchnc4Ug.js} +1 -1
  31. package/dist/client/assets/{AtopView-Ck30FbzG.js → AtopView-gkEp4y__.js} +1 -1
  32. package/dist/client/assets/{BackToPicker-CkBhGRlD.js → BackToPicker-CUkjnoVk.js} +1 -1
  33. package/dist/client/assets/BriefingDetailScreen-DrlC3qkm.js +1 -0
  34. package/dist/client/assets/{BriefingsScreen-DTxYMr3a.js → BriefingsScreen-B1HlBMGZ.js} +1 -1
  35. package/dist/client/assets/{BrokerMetadataPanel-crirZCdo.js → BrokerMetadataPanel-Dk242Yh_.js} +1 -1
  36. package/dist/client/assets/BrokerScreen-DwOF6bMA.js +8 -0
  37. package/dist/client/assets/{Canvas-CRP0KjKb.js → Canvas-X9pVSkw3.js} +1 -1
  38. package/dist/client/assets/{CastPicker-ZPomvOf-.js → CastPicker-BXUtPAGC.js} +1 -1
  39. package/dist/client/assets/ChannelComposer-DoK7IDGa.js +1 -0
  40. package/dist/client/assets/ChannelSidebar-e9DOPulb.js +1 -0
  41. package/dist/client/assets/{CharacterFamilyPreview-ckVkecDO.js → CharacterFamilyPreview-DMfw7UM_.js} +1 -1
  42. package/dist/client/assets/{ChatAvatar-DKBsbOqk.js → ChatAvatar-C3a_o5Hj.js} +1 -1
  43. package/dist/client/assets/ChatBits-CsvxbToF.js +1 -0
  44. package/dist/client/assets/{ChatCollapsedStrip-Co0NmqOO.js → ChatCollapsedStrip-FEmQ_G9J.js} +1 -1
  45. package/dist/client/assets/ChatRichInput-DhtwFxQE.js +31 -0
  46. package/dist/client/assets/ChatRightPanel-C1h_aIkn.js +1 -0
  47. package/dist/client/assets/ChatSpaceSurface-BXyLYKHn.js +1 -0
  48. package/dist/client/assets/ChatSpaceTheme-3wLZGsvT.css +1 -0
  49. package/dist/client/assets/ChatSpaceTheme-CUH8bTZc.js +1 -0
  50. package/dist/client/assets/{CodeDiffPane-D-iv28LJ.js → CodeDiffPane-DuQRwpgK.js} +1 -1
  51. package/dist/client/assets/{CodeProjectPicker-CZ3gDdiT.js → CodeProjectPicker-ZQ6gSBpg.js} +1 -1
  52. package/dist/client/assets/{CodeScreen-CSC-zbP9.js → CodeScreen-BXyKeL5T.js} +1 -1
  53. package/dist/client/assets/{CommsCanvas-DdNAwjGW.js → CommsCanvas-THp0r_U8.js} +1 -1
  54. package/dist/client/assets/{CommsDeck-mGWY7Ivi.js → CommsDeck-BVmSMV2V.js} +1 -1
  55. package/dist/client/assets/{CommsFlowGraph-voDD9M5R.js → CommsFlowGraph-DxoOaLF_.js} +1 -1
  56. package/dist/client/assets/{CommsFlowMap-C33sgD48.js → CommsFlowMap-Vi8ziCPg.js} +1 -1
  57. package/dist/client/assets/{CommsSelection-BL8aYD7z.js → CommsSelection-BUoRbu9o.js} +1 -1
  58. package/dist/client/assets/ComposerAttachments-DW0AIb8k.js +1 -0
  59. package/dist/client/assets/ConversationComposer-CUQyArlk.js +1 -0
  60. package/dist/client/assets/ConversationFeedRows-DWiOfT-y.js +1 -0
  61. package/dist/client/assets/ConversationHeader-C-ZWscKj.js +1 -0
  62. package/dist/client/assets/{ConversationPanels-6pprBpmq.js → ConversationPanels-D9oC0xG5.js} +2 -2
  63. package/dist/client/assets/ConversationScreen-9MlMnEo4.css +1 -0
  64. package/dist/client/assets/ConversationScreen-CUfsQ4MR.js +2 -0
  65. package/dist/client/assets/ConversationStatus--IPm2nGh.js +1 -0
  66. package/dist/client/assets/{CrewAvatar-D0c9z5Qr.css → CrewAvatar-BnIPIn_Z.css} +1 -1
  67. package/dist/client/assets/CrewAvatar-kTznzqcO.js +1 -0
  68. package/dist/client/assets/{CrewSprite-Dp9KBBGY.js → CrewSprite-Dhryjx2c.js} +1 -1
  69. package/dist/client/assets/CrewStage-vdO0qm3D.js +1 -0
  70. package/dist/client/assets/CrewWorkspaces-DCBzAAS4.js +1 -0
  71. package/dist/client/assets/{DataTable-av71ehJV.js → DataTable-aH-jCyDq.js} +1 -1
  72. package/dist/client/assets/{DispatchAftermath-CcYGUB10.js → DispatchAftermath-66uQAorV.js} +1 -1
  73. package/dist/client/assets/{DocumentFocusViewer-DlMiEALb.js → DocumentFocusViewer-DJr0v0D_.js} +1 -1
  74. package/dist/client/assets/{EmbeddableSurfacesLab-CTkO_tQR.js → EmbeddableSurfacesLab-BBa70EhJ.js} +1 -1
  75. package/dist/client/assets/{EmptyState-CYUwYyAW.js → EmptyState-CZlrHXy-.js} +1 -1
  76. package/dist/client/assets/{FileViewerPane-Cxhixtks.js → FileViewerPane-BAO6mtjD.js} +1 -1
  77. package/dist/client/assets/FleetRollCallHud-C5q2567n.js +1 -0
  78. package/dist/client/assets/FlightObserveScreen-DZ2mrw91.js +1 -0
  79. package/dist/client/assets/{FloorContextSheet-Vj_wVZq1.js → FloorContextSheet-2_NVPQor.js} +1 -1
  80. package/dist/client/assets/{FloorExchangePanel-CjHSDXad.js → FloorExchangePanel-BU1pPu8K.js} +1 -1
  81. package/dist/client/assets/{FloorMessagePasses-BG4ebnX5.js → FloorMessagePasses-cLW2UGNP.js} +1 -1
  82. package/dist/client/assets/{FloorReplay-BoYaGY9t.js → FloorReplay-VFzA6Kxc.js} +1 -1
  83. package/dist/client/assets/FloorResourcesSheet-C-kQ6Ren.js +1 -0
  84. package/dist/client/assets/{FloorSavedWork-jbtRs-YE.js → FloorSavedWork-BeHDejWz.js} +1 -1
  85. package/dist/client/assets/FloorTacticalHUD-CO-iiFpb.js +1 -0
  86. package/dist/client/assets/{FollowScreen-CupyOgt4.js → FollowScreen-CFfkIbc6.js} +1 -1
  87. package/dist/client/assets/HarnessMark-C4naWc16.js +1 -0
  88. package/dist/client/assets/HarnessesScreen-DX3NLcDG.js +1 -0
  89. package/dist/client/assets/{HerdrSession-Dcm3vf9U.js → HerdrSession-_t7yM8vX.js} +2 -2
  90. package/dist/client/assets/{HomeHero-pIZtE1cC.js → HomeHero-DouPyNmz.js} +1 -1
  91. package/dist/client/assets/{HostAdvisorView-Dv5meXo2.js → HostAdvisorView-CnM1i8hW.js} +1 -1
  92. package/dist/client/assets/InviteLandingScreen-CEjG2E34.js +1 -0
  93. package/dist/client/assets/InviteSheet-CwxZtWCl.js +1 -0
  94. package/dist/client/assets/{JumpPalette-BmiSOEmp.js → JumpPalette-O1aJE9gR.js} +1 -1
  95. package/dist/client/assets/{KnowledgeSearchInspector-B8yiM524.js → KnowledgeSearchInspector-32n9baT-.js} +1 -1
  96. package/dist/client/assets/KnowledgeSearchScreen-Dd6jrQ0A.js +1 -0
  97. package/dist/client/assets/{LaneToolHoverCard-D2cnTeUd.js → LaneToolHoverCard-CJa110yk.js} +1 -1
  98. package/dist/client/assets/LaneTraceDetailSheet-DYrd0BIf.js +1 -0
  99. package/dist/client/assets/{LaneTraceEventFocus-BLhVHwff.js → LaneTraceEventFocus-TbrNHRj_.js} +1 -1
  100. package/dist/client/assets/{MeshCanvas-BR25OBTJ.js → MeshCanvas-DWZHYh1A.js} +2 -2
  101. package/dist/client/assets/{MeshCanvasMinimap-ClVolr4-.js → MeshCanvasMinimap-iswYFpIb.js} +1 -1
  102. package/dist/client/assets/MeshScreen-8nAzQVbm.js +1 -0
  103. package/dist/client/assets/{MeshTopologyView-BT3ke2D1.js → MeshTopologyView-BVvtqI8q.js} +2 -2
  104. package/dist/client/assets/MessageEmbeds-ksPazAKH.js +1 -0
  105. package/dist/client/assets/MessagesScreen-C3WB4T21.js +1 -0
  106. package/dist/client/assets/{MissionContextRail-CafjuseK.js → MissionContextRail-D62-Wis8.js} +1 -1
  107. package/dist/client/assets/MissionControlView-B9cNPXvl.js +1 -0
  108. package/dist/client/assets/{MissionFocusOverlay-nhy3hkxQ.js → MissionFocusOverlay-C1zys3Jv.js} +1 -1
  109. package/dist/client/assets/MissionLeftAgentRow-vycMV77n.js +1 -0
  110. package/dist/client/assets/{MissionLogPane-DiUf3vWW.js → MissionLogPane-B19lYSY9.js} +1 -1
  111. package/dist/client/assets/NativeAreaScreen-B1RLa85C.js +1 -0
  112. package/dist/client/assets/NativeAreaScreen-CV0OhGra.js +1 -0
  113. package/dist/client/assets/NativeAreaScreen-CzuZt6o1.js +1 -0
  114. package/dist/client/assets/{NewAgentModal-BQ2wQ5gp.js → NewAgentModal-Bh-L-emz.js} +1 -1
  115. package/dist/client/assets/NewChatComposer-C97-iTMK.js +19 -0
  116. package/dist/client/assets/{NewChatOrigin-C8ROO4ps.js → NewChatOrigin-DFbF_XvR.js} +1 -1
  117. package/dist/client/assets/{NodeDetailPanel-BNTqYC7m.js → NodeDetailPanel-CElOEpCh.js} +1 -1
  118. package/dist/client/assets/{NodeMenu-CcOeFRCB.js → NodeMenu-B-jjHf1c.js} +1 -1
  119. package/dist/client/assets/ObserveEmbedScreen-B7Qt69Ms.js +2 -0
  120. package/dist/client/assets/{ObserveTextFlow-CC5mnngm.js → ObserveTextFlow-PFnG_10h.js} +2 -2
  121. package/dist/client/assets/{ObservedTopologyPanel-DF6tRZL_.js → ObservedTopologyPanel-CUTIoLZJ.js} +1 -1
  122. package/dist/client/assets/OpenScoutAppShell-37PDFfA4.js +31 -0
  123. package/dist/client/assets/OpsAgentsView-DajlX8LO.js +1 -0
  124. package/dist/client/assets/OpsScreen-jVcaBKGi.js +1 -0
  125. package/dist/client/assets/OpsSubnav-BOOYShHE.js +1 -0
  126. package/dist/client/assets/ProjectAgentProfile-D_wlW4sQ.js +1 -0
  127. package/dist/client/assets/{ProjectAgentProfileBar-C8z22pJ2.js → ProjectAgentProfileBar-DHuMKJj-.js} +1 -1
  128. package/dist/client/assets/ProjectAgentProfileHero-Dbebtug1.js +1 -0
  129. package/dist/client/assets/ProjectsInbox-B8zYE4vP.css +1 -0
  130. package/dist/client/assets/ProjectsInbox-Cgu7B4--.js +2 -0
  131. package/dist/client/assets/ProjectsRail-CDWocin_.js +1 -0
  132. package/dist/client/assets/ProjectsScreen-B_CJycqW.js +1 -0
  133. package/dist/client/assets/ProjectsThreadAside-1MMl_qUD.js +1 -0
  134. package/dist/client/assets/Provider-C35yu29I.js +5 -0
  135. package/dist/client/assets/{RailRow-DUPqXMZh.js → RailRow-BjmWK420.js} +1 -1
  136. package/dist/client/assets/RawSessionsTable-DzT90hWu.js +1 -0
  137. package/dist/client/assets/RealtimeVoiceScreen-B6ylX3WQ.js +16 -0
  138. package/dist/client/assets/{RenderedWorkerSprite-C8fxndAh.js → RenderedWorkerSprite-Dhlyg89J.js} +1 -1
  139. package/dist/client/assets/{ReplayClock-DUVJjrIu.js → ReplayClock-348f17bW.js} +1 -1
  140. package/dist/client/assets/{ReplayLog-Bek1Vc4W.js → ReplayLog-CBnAM3ui.js} +1 -1
  141. package/dist/client/assets/{ReplayOutpost-DlRg3172.js → ReplayOutpost-DyRPfNFx.js} +1 -1
  142. package/dist/client/assets/{RepoDiffEmbedScreen-CVUMnt6A.js → RepoDiffEmbedScreen-BWxvRDrS.js} +1 -1
  143. package/dist/client/assets/{RepoDiffPageScreen-D9-s5PyB.js → RepoDiffPageScreen-DN94irmY.js} +1 -1
  144. package/dist/client/assets/{RepoDiffViewer-D7FN-oyY.js → RepoDiffViewer-_4JVXBIW.js} +1 -1
  145. package/dist/client/assets/RepoDiffViewerLazy-XGVC3WXv.js +2 -0
  146. package/dist/client/assets/{ReposScreen-BQ7HO1om.js → ReposScreen-uMCpt0e9.js} +2 -2
  147. package/dist/client/assets/{RiggedWorkerCharacter-CJMWlvV-.js → RiggedWorkerCharacter-q6QRc7_o.js} +1 -1
  148. package/dist/client/assets/{SageModelStudio-B526NSnw.js → SageModelStudio-CNDhZhgD.js} +1 -1
  149. package/dist/client/assets/{ScoutDeckSurface-ChkvGyEW.js → ScoutDeckSurface-CUaU4R6T.js} +1 -1
  150. package/dist/client/assets/{ScoutSurface-6g1f5chk.js → ScoutSurface-3_25USO_.js} +1 -1
  151. package/dist/client/assets/{ScoutbotFxLab-BuwBdnPf.js → ScoutbotFxLab-CRqhYe0a.js} +1 -1
  152. package/dist/client/assets/{SecondaryNav-Bs-_VwTC.js → SecondaryNav-D7dbV2qo.js} +1 -1
  153. package/dist/client/assets/SessionContextStrip-CXfs9hUD.js +1 -0
  154. package/dist/client/assets/SessionContextStrip-DAIXwtHd.css +1 -0
  155. package/dist/client/assets/{SessionEmbedScreen-C2wf35-P.js → SessionEmbedScreen-D0zFmou-.js} +1 -1
  156. package/dist/client/assets/SessionHopMenu-E6VJZrE0.js +1 -0
  157. package/dist/client/assets/{SessionObserve-B64YsYhy.js → SessionObserve-DXxBvejJ.js} +9 -9
  158. package/dist/client/assets/SessionObserveEvidence-Cuj_KHxR.js +1 -0
  159. package/dist/client/assets/SessionRefScreen-DqLSUlCE.js +1 -0
  160. package/dist/client/assets/SessionsScreen-BLIRkohT.js +1 -0
  161. package/dist/client/assets/SettingsDrawer-juCpnbH6.js +3 -0
  162. package/dist/client/assets/SettingsScreen-BtGzE2-O.js +1 -0
  163. package/dist/client/assets/{SharedFloorCharacter-V04kD5T9.js → SharedFloorCharacter-DNEiaOUh.js} +1 -1
  164. package/dist/client/assets/SharedWorkFloor-0rqtdF-n.css +1 -0
  165. package/dist/client/assets/SharedWorkFloor-D9mf9KSg.js +2 -0
  166. package/dist/client/assets/{ShikiPane-XwFI-pCp.js → ShikiPane-CRtTYkMj.js} +1 -1
  167. package/dist/client/assets/{SlidePanel-BMpkXai_.js → SlidePanel-_CHAQdOa.js} +1 -1
  168. package/dist/client/assets/SpaceSwitcher-BLgSCf_T.js +1 -0
  169. package/dist/client/assets/{SpriteAvatar-aHeF4ZQZ.js → SpriteAvatar-CpZWf54-.js} +1 -1
  170. package/dist/client/assets/{SproutActionSprite-DI5N3gOj.js → SproutActionSprite-BSiTS4en.js} +1 -1
  171. package/dist/client/assets/{StatusPill-Dw4LP7wu.js → StatusPill-2gCP6H7A.js} +1 -1
  172. package/dist/client/assets/{TailView-BofjmUMJ.js → TailView-CYSijNTy.js} +2 -2
  173. package/dist/client/assets/Terminal-Bi97yb5s.js +4 -0
  174. package/dist/client/assets/TerminalEmbedScreen-Bqop67Bq.js +1 -0
  175. package/dist/client/assets/{TerminalHeaderMount-CwbQhXcI.js → TerminalHeaderMount-Cq4OD_xN.js} +1 -1
  176. package/dist/client/assets/{TerminalRelay--qOBwnbR.js → TerminalRelay-DrikpUSJ.js} +3 -3
  177. package/dist/client/assets/{TextDocumentSurface-BK6Qy41F.js → TextDocumentSurface-D52m7Vd8.js} +1 -1
  178. package/dist/client/assets/{TmuxPeek-DpUT9Tpc.js → TmuxPeek-CXFeweMg.js} +1 -1
  179. package/dist/client/assets/VoiceControlWell-DF3bjcYA.js +1 -0
  180. package/dist/client/assets/VoicePathDiagram-CmpHWfO-.js +1 -0
  181. package/dist/client/assets/{VoicePermissionsPanel-D35fOnQj.js → VoicePermissionsPanel-Ok2nfxHw.js} +1 -1
  182. package/dist/client/assets/VoiceTurnDetails-wAByRaNB.js +8 -0
  183. package/dist/client/assets/VoiceTurnStage-edoJalLV.js +1 -0
  184. package/dist/client/assets/VoiceTurnView-D-8g5E4r.js +1 -0
  185. package/dist/client/assets/WorkDetailScreen-zQkNVy2F.js +5 -0
  186. package/dist/client/assets/{WorkFilesViewer-t8AEyx3Q.js → WorkFilesViewer-vNt01sDd.js} +1 -1
  187. package/dist/client/assets/{WorkRunView-_mhG_FR2.js → WorkRunView-BDkR7Edq.js} +1 -1
  188. package/dist/client/assets/WorldActorTalk-BvSg_b1y.js +1 -0
  189. package/dist/client/assets/{WorldCharacter-BRrj3MQN.js → WorldCharacter-CIIlutQq.js} +1 -1
  190. package/dist/client/assets/WorldMinimap-B6HNgcDe.js +1 -0
  191. package/dist/client/assets/{WorldSky-D-RJzSa6.js → WorldSky-Jm2Z6dfW.js} +1 -1
  192. package/dist/client/assets/{activity-BJqFrZyB.js → activity-CIlFrfPJ.js} +1 -1
  193. package/dist/client/assets/{addon-fit-CHohcvS3.js → addon-fit-dFpj9Kfq.js} +1 -1
  194. package/dist/client/assets/{addon-webgl-CaRy2x2b.js → addon-webgl-BFCGRtGh.js} +1 -1
  195. package/dist/client/assets/{agent-essentials-bKWYOZaH.js → agent-essentials-BGGvT5G6.js} +1 -1
  196. package/dist/client/assets/{agent-master-model-C-KdOFDK.js → agent-master-model-Bk_yuUXJ.js} +1 -1
  197. package/dist/client/assets/{agent-specialization-BplZUa_0.js → agent-specialization-DDc7mLCW.js} +1 -1
  198. package/dist/client/assets/agents-screen-BYakbO50.css +1 -0
  199. package/dist/client/assets/{arc.es-CubLvQ4W.js → arc.es-C1SQHJ3k.js} +1 -1
  200. package/dist/client/assets/{arrow-left-DFfKAq0d.js → arrow-left-MVUKauwQ.js} +1 -1
  201. package/dist/client/assets/{arrow-right-DmAWnyAH.js → arrow-right-Bp-FpE5V.js} +1 -1
  202. package/dist/client/assets/{arrow-up-right-B0aLKiyF.js → arrow-up-right-BPedAgxO.js} +1 -1
  203. package/dist/client/assets/{book-open-BL9qvhEI.js → book-open-CV98WMSp.js} +1 -1
  204. package/dist/client/assets/{bot-BhAVbcCA.js → bot-B4zLQ4IN.js} +1 -1
  205. package/dist/client/assets/chat-api-DSJMBYoT.js +2 -0
  206. package/dist/client/assets/chat-message-markup-91DIry6R.js +1 -0
  207. package/dist/client/assets/chat-space-model-aW3Fd8_U.js +4 -0
  208. package/dist/client/assets/chat-transport-DNS5CB2I.js +1 -0
  209. package/dist/client/assets/{check-g7D7-c1J.js → check-lrJ3a73a.js} +1 -1
  210. package/dist/client/assets/{chevron-down-CDzRQQGl.js → chevron-down-l1mrh5S9.js} +1 -1
  211. package/dist/client/assets/{chevron-right-DKGTLiqc.js → chevron-right-DrfqcerI.js} +1 -1
  212. package/dist/client/assets/{chevron-up-DX7R6KY2.js → chevron-up-CETZJzjV.js} +1 -1
  213. package/dist/client/assets/{chunk-HRAB3GC3-Dvk_QpRq.js → chunk-HRAB3GC3-DbVLgbWX.js} +1 -1
  214. package/dist/client/assets/{clock-CQb4FeMf.js → clock-BV1aqPkK.js} +1 -1
  215. package/dist/client/assets/{code-xml-Cmadr3pQ.js → code-xml-BhcNbLWU.js} +1 -1
  216. package/dist/client/assets/{coffee-ljG1_krY.js → coffee-D7EAOdCk.js} +1 -1
  217. package/dist/client/assets/{compass-CvzkzkIh.js → compass-63TUaz5_.js} +1 -1
  218. package/dist/client/assets/content-B1lgE8qr.js +1 -0
  219. package/dist/client/assets/content-B5l11YyQ.js +1 -0
  220. package/dist/client/assets/content-BNZOZEpX.js +1 -0
  221. package/dist/client/assets/content-BRIxP155.js +1 -0
  222. package/dist/client/assets/content-BWd8gt8L.js +1 -0
  223. package/dist/client/assets/content-BfwS2jAK.js +1 -0
  224. package/dist/client/assets/content-C4p43_eT.js +1 -0
  225. package/dist/client/assets/content-CdYfaoDV.js +1 -0
  226. package/dist/client/assets/content-CzldLxw0.js +1 -0
  227. package/dist/client/assets/content-D-olnc4U.js +1 -0
  228. package/dist/client/assets/content-DTioimq4.js +1 -0
  229. package/dist/client/assets/content-LOebm3_d.js +1 -0
  230. package/dist/client/assets/{content-CKJ9zb7Z.js → content-nGlEZhUI.js} +1 -1
  231. package/dist/client/assets/{content-D1Ze_FG9.js → content-oyzDM-LK.js} +1 -1
  232. package/dist/client/assets/content-x1PHxED7.js +1 -0
  233. package/dist/client/assets/content-zX3ZY3T9.js +1 -0
  234. package/dist/client/assets/{conversation-icons-CIRaxmid.js → conversation-icons-Tqba2d56.js} +1 -1
  235. package/dist/client/assets/conversation-model-FxDeWlle.js +1 -0
  236. package/dist/client/assets/conversation-motion-features-C5zjuNwE.js +1 -0
  237. package/dist/client/assets/conversations-DoAAO6kA.js +1 -0
  238. package/dist/client/assets/{copy-BGOC1tJB.js → copy-xKeM5ZtU.js} +1 -1
  239. package/dist/client/assets/{cpu-Q6nrHFTN.js → cpu-BOTa_WLr.js} +1 -1
  240. package/dist/client/assets/{createLucideIcon-ChvMq-zl.js → createLucideIcon-zZ8Hx7er.js} +1 -1
  241. package/dist/client/assets/ctx-panel-BC8fpcWJ.css +1 -0
  242. package/dist/client/assets/direct-voice-BbLPuJ04.js +2 -0
  243. package/dist/client/assets/direct-voice-DbO7CSv_.css +1 -0
  244. package/dist/client/assets/discover-DJFxyV1k.js +2 -0
  245. package/dist/client/assets/embed-entry-Lyvu0Kfc.js +2 -0
  246. package/dist/client/assets/{external-link-BVccgH0n.js → external-link-CUObqmgX.js} +1 -1
  247. package/dist/client/assets/{eye-CsGfEVR6.js → eye-LrO-cXQt.js} +1 -1
  248. package/dist/client/assets/{file-code-corner-Be6da5l3.js → file-code-corner-CsU7jJpu.js} +1 -1
  249. package/dist/client/assets/{file-text-DP6txVW-.js → file-text-CnISiiw6.js} +1 -1
  250. package/dist/client/assets/{flag-DAFE2wZ5.js → flag-C4wl8z2-.js} +1 -1
  251. package/dist/client/assets/fleet-roll-call-BUgf7w-V.css +1 -0
  252. package/dist/client/assets/{folder-B_S7gBVr.js → folder-D5prSkzz.js} +1 -1
  253. package/dist/client/assets/{gauge-DQCGlE3o.js → gauge-D9_5iJEm.js} +1 -1
  254. package/dist/client/assets/{gestures-CofqY4Km.js → gestures-QZub3Ot9.js} +1 -1
  255. package/dist/client/assets/{git-branch-DcUCsWdJ.js → git-branch-B0_fPLO7.js} +1 -1
  256. package/dist/client/assets/{go-shortcuts-KQy-ZOpV.js → go-shortcuts-DicR7sUf.js} +1 -1
  257. package/dist/client/assets/home-moving-signal-rpMhsOJB.js +1 -0
  258. package/dist/client/assets/home-now-card-ByE6Umcx.js +1 -0
  259. package/dist/client/assets/{home-now-card-nano-CvU8B61b.js → home-now-card-nano-B5Dv3-pb.js} +1 -1
  260. package/dist/client/assets/hooks-_eCZZPsR.js +2 -0
  261. package/dist/client/assets/index-724SdE6r.js +1 -0
  262. package/dist/client/assets/{index-kkXUq-zf.js → index-CHD0qcfL.js} +1 -1
  263. package/dist/client/assets/index-CN4rBB_s.css +1 -0
  264. package/dist/client/assets/index-D1d98iYf.js +1 -0
  265. package/dist/client/assets/{index-DReVb7jZ.js → index-EsrkGBcv.js} +8 -8
  266. package/dist/client/assets/index-gGHPA-By.js +1 -0
  267. package/dist/client/assets/{inspector-panel-CLU7wjnT.js → inspector-panel-BkgUDn6G.js} +2 -2
  268. package/dist/client/assets/{keyboard-nav-CJXPaHXj.js → keyboard-nav-DDHegDbx.js} +1 -1
  269. package/dist/client/assets/{lane-roster-store-Ch9t6lb0.js → lane-roster-store-D-RSWjb-.js} +1 -1
  270. package/dist/client/assets/{layers-BOwyWodP.js → layers-C8PDiMul.js} +1 -1
  271. package/dist/client/assets/{layout-grid-B36Qsh0y.js → layout-grid-Cor2frzj.js} +1 -1
  272. package/dist/client/assets/left-Bn5X7x2o.js +2 -0
  273. package/dist/client/assets/left-BqS0fYX1.js +1 -0
  274. package/dist/client/assets/left-CTCeeeD3.js +1 -0
  275. package/dist/client/assets/left-DhtVPVux.js +1 -0
  276. package/dist/client/assets/left-K39b-Wvx.js +2 -0
  277. package/dist/client/assets/left-KGmueNPt.js +1 -0
  278. package/dist/client/assets/left-P_GOYB-s.js +1 -0
  279. package/dist/client/assets/left-advisor-B0N47De2.js +1 -0
  280. package/dist/client/assets/left-agents-CsSNc51Y.js +1 -0
  281. package/dist/client/assets/left-default-BlO5LP2T.js +1 -0
  282. package/dist/client/assets/left-lanes-C4PhaJE6.js +1 -0
  283. package/dist/client/assets/left-mission-BjTE5vPa.js +1 -0
  284. package/dist/client/assets/library-CkWNPHRp.js +1 -0
  285. package/dist/client/assets/{loader-circle-DNUsuPWz.js → loader-circle-OvccU82H.js} +1 -1
  286. package/dist/client/assets/{local-agents-I40PawYA.js → local-agents-BqnoxJrq.js} +1 -1
  287. package/dist/client/assets/log-in-7SnYqW5w.js +1 -0
  288. package/dist/client/assets/{machine-children-CdhNzDF0.js → machine-children-DxcqCLmd.js} +1 -1
  289. package/dist/client/assets/media-blobs-Bi8pxr1u.js +1 -0
  290. package/dist/client/assets/{mentions-Ck_Vjnyp.js → mentions-ByUvhS-v.js} +1 -1
  291. package/dist/client/assets/{mesh-ops-DSlvHp-D.js → mesh-ops-CiZ8xSAx.js} +1 -1
  292. package/dist/client/assets/{mesh-view-store-C1-mdP3P.js → mesh-view-store-DZvJC4KU.js} +1 -1
  293. package/dist/client/assets/{message-circle-cI5_A5mj.js → message-circle-CxRVKNE-.js} +1 -1
  294. package/dist/client/assets/message-markup-BQW5jdJw.js +15 -0
  295. package/dist/client/assets/message-markup-Zwo3t4cI.js +1 -0
  296. package/dist/client/assets/{message-square-CJW4WRlo.js → message-square-BxesYglW.js} +1 -1
  297. package/dist/client/assets/mission-control-model-BpJHDV5D.js +1 -0
  298. package/dist/client/assets/{mission-control-store-p_cboAm4.js → mission-control-store-elEEsIvb.js} +1 -1
  299. package/dist/client/assets/{mission-wall-DOuGOxQy.js → mission-wall-CAo4BKfa.js} +1 -1
  300. package/dist/client/assets/{monitor-C7_cHlkC.js → monitor-DTTYEb73.js} +1 -1
  301. package/dist/client/assets/{nav-destinations-CU_euC-Q.js → nav-destinations-uorRqFxf.js} +1 -1
  302. package/dist/client/assets/{observe-CtS0l3zu.js → observe-BJqERJVj.js} +1 -1
  303. package/dist/client/assets/{page-status-DwFR4wSw.js → page-status-BswZLqvA.js} +1 -1
  304. package/dist/client/assets/{panel-right-qP17MwMl.js → panel-right-Bv7sP_fc.js} +1 -1
  305. package/dist/client/assets/paperclip-BjcuP_Hx.js +1 -0
  306. package/dist/client/assets/{pause-B_hliKuR.js → pause-C2XTlkjs.js} +1 -1
  307. package/dist/client/assets/{persistent-state-BUsTTZFE.js → persistent-state-KRk_yb0q.js} +1 -1
  308. package/dist/client/assets/{pin-Oi4qHR6M.js → pin-C2mFOV1l.js} +1 -1
  309. package/dist/client/assets/{play-CVeRmqLH.js → play-FT6K3It1.js} +1 -1
  310. package/dist/client/assets/{plus-D5NLH_fM.js → plus-DFDDeGKu.js} +1 -1
  311. package/dist/client/assets/profile-DTmzN16I.js +1 -0
  312. package/dist/client/assets/{projects-inbox-CfwxCTdN.js → projects-inbox-C0FUCv_p.js} +1 -1
  313. package/dist/client/assets/projects-inbox-ColX6lpx.css +1 -0
  314. package/dist/client/assets/{provider-DwmCoSlc.js → provider-Dojd8quC.js} +1 -1
  315. package/dist/client/assets/{proxy-DgzP27W8.js → proxy-AJsmwA6h.js} +1 -1
  316. package/dist/client/assets/{radio-Cas2qg1D.js → radio-DRoOZsws.js} +1 -1
  317. package/dist/client/assets/{refresh-cw-IcD2lPoT.js → refresh-cw-BmVr7sCD.js} +1 -1
  318. package/dist/client/assets/resolve-panes-pbY1fCWi.js +1 -0
  319. package/dist/client/assets/resolve-sidebar-context-YWkZTq1t.js +1 -0
  320. package/dist/client/assets/right-49kO-6nD.js +1 -0
  321. package/dist/client/assets/right-APtItA8A.js +1 -0
  322. package/dist/client/assets/right-BJwhPqtn.js +1 -0
  323. package/dist/client/assets/right-BPqrf4ek.js +1 -0
  324. package/dist/client/assets/right-D7djOy6K.js +1 -0
  325. package/dist/client/assets/right-DKOUCRob.js +1 -0
  326. package/dist/client/assets/right-DMNrVzg7.js +1 -0
  327. package/dist/client/assets/{right-cjPTwPXS.js → right-DWPVB-nK.js} +1 -1
  328. package/dist/client/assets/right-DppeMCy4.js +1 -0
  329. package/dist/client/assets/right-GAL5Mw1v.js +1 -0
  330. package/dist/client/assets/{rocket-DAqYvu8I.js → rocket-CGl4RTV7.js} +1 -1
  331. package/dist/client/assets/router-DCtl8wqb.js +1 -0
  332. package/dist/client/assets/runtime-picker-DXu2bOTh.js +1 -0
  333. package/dist/client/assets/{scope-views-Dl3ml9OZ.js → scope-views-RUWwCVAr.js} +1 -1
  334. package/dist/client/assets/scout-voice-CZx60X6E.js +1 -0
  335. package/dist/client/assets/{scoutbot-markdown-DwvGQOWo.js → scoutbot-markdown-BKEBSbG0.js} +1 -1
  336. package/dist/client/assets/{scroll-text-B0tKI9Sg.js → scroll-text-DNjxhyO2.js} +1 -1
  337. package/dist/client/assets/{search-UsM-9-_W.js → search-DT42oyRW.js} +1 -1
  338. package/dist/client/assets/secondaryNavConfig-CS1svh6n.js +1 -0
  339. package/dist/client/assets/{selection-bridge-OTS2iFkt.js → selection-bridge-x3wFUjxj.js} +1 -1
  340. package/dist/client/assets/{send-horizontal-BlQsRK6C.js → send-horizontal-CH0-fbZE.js} +1 -1
  341. package/dist/client/assets/{send-to-agent-session-C1mgqdow.js → send-to-agent-session-DoKCDBJ4.js} +1 -1
  342. package/dist/client/assets/{server-DBlPW0Mp.js → server-QfsgMLk1.js} +1 -1
  343. package/dist/client/assets/{session-catalog-CnpZMB7C.js → session-catalog-CvSdPHPe.js} +1 -1
  344. package/dist/client/assets/session-recap-lanes-D-eVJnpY.js +1 -0
  345. package/dist/client/assets/session-recap-queue-41l2XVkI.js +1 -0
  346. package/dist/client/assets/{session-table-CGkfG5Yd.js → session-table-L-pns6Zl.js} +1 -1
  347. package/dist/client/assets/{sessions-view-Bge4XZ4I.js → sessions-view-Dc-QAa7O.js} +1 -1
  348. package/dist/client/assets/{settings-C69Zjrpq.js → settings-BVh7kldq.js} +1 -1
  349. package/dist/client/assets/{sliders-horizontal-6bzeod7c.js → sliders-horizontal-782VC_yy.js} +1 -1
  350. package/dist/client/assets/{sparkles-Cc5lPZRv.js → sparkles-BjHq_DNK.js} +1 -1
  351. package/dist/client/assets/{sse-A8AyLH0g.js → sse-BCPRocpq.js} +1 -1
  352. package/dist/client/assets/system-surfaces-redesign-q2BmCB7e.css +1 -0
  353. package/dist/client/assets/{tail-events-C4WdhVeK.js → tail-events-d0yAYxR0.js} +1 -1
  354. package/dist/client/assets/{terminal-DMZjX1es.js → terminal-hQKQygcf.js} +1 -1
  355. package/dist/client/assets/{terminal-relay-mO89dX-Y.js → terminal-relay-Bxs1hp-j.js} +1 -1
  356. package/dist/client/assets/{terminal-takeover-CZZsnPzj.js → terminal-takeover-Ay5C2c-M.js} +1 -1
  357. package/dist/client/assets/theme-vars-DNK0nn3k.js +1 -0
  358. package/dist/client/assets/triangle-alert-CHoRGdVO.js +1 -0
  359. package/dist/client/assets/{use-beside-D3cJpA5p.js → use-beside-DoRC1nt0.js} +1 -1
  360. package/dist/client/assets/{use-conversation-list-D5EnpVba.js → use-conversation-list-CY4JciOV.js} +1 -1
  361. package/dist/client/assets/{use-fleet-active-asks-D_QOmjg5.js → use-fleet-active-asks-CymmXWH4.js} +1 -1
  362. package/dist/client/assets/{use-mesh-node-state-3V3ADQ-G.js → use-mesh-node-state-BvaqtODo.js} +1 -1
  363. package/dist/client/assets/{use-mesh-ops-items-DI9GKWlF.js → use-mesh-ops-items-BSYaqH_0.js} +1 -1
  364. package/dist/client/assets/{use-reduced-motion-CiaZHMnk.js → use-reduced-motion-3gMYZNIp.js} +1 -1
  365. package/dist/client/assets/{use-scout-dev-flags-CkdAHlDR.js → use-scout-dev-flags-DS_pYYQd.js} +1 -1
  366. package/dist/client/assets/{useAgentHoverCard-A3QGXqIy.js → useAgentHoverCard-BANmpjMh.js} +1 -1
  367. package/dist/client/assets/useContentSecondaryNav-C6OBu-3_.js +1 -0
  368. package/dist/client/assets/{useEmbedHeadline-atkQVfGw.js → useEmbedHeadline-D6pJRxUg.js} +1 -1
  369. package/dist/client/assets/usePersistentState-B8lP7TRb.js +1 -0
  370. package/dist/client/assets/{usePierreRuntime-DTvcwISe.js → usePierreRuntime-BAQdiN0L.js} +1 -1
  371. package/dist/client/assets/useSidebarCollapse-OL_8J5cL.js +1 -0
  372. package/dist/client/assets/{users-RLK3P5U4.js → users-BUjx36gx.js} +1 -1
  373. package/dist/client/assets/voice-paths-CJUuBPh3.css +1 -0
  374. package/dist/client/assets/voice-turn-DftA0iIb.css +1 -0
  375. package/dist/client/assets/voice-turn-ledger-BMZxlSjg.js +1 -0
  376. package/dist/client/assets/{wrench-B4maQJai.js → wrench-DR0i5BU7.js} +1 -1
  377. package/dist/client/assets/{x-rlMdRqJF.js → x-DAehov0E.js} +1 -1
  378. package/dist/client/assets/{xterm-B1zHHOLQ.js → xterm-BXQiLVnI.js} +1 -1
  379. package/dist/client/assets/{zap-B4X0OrEw.js → zap-CEjZNZbI.js} +1 -1
  380. package/dist/client/crew/sheets/eye-plate-v1/look-down-left.webp +0 -0
  381. package/dist/client/crew/sheets/eye-plate-v1/look-down-right.webp +0 -0
  382. package/dist/client/crew/sheets/eye-plate-v1/look-down.webp +0 -0
  383. package/dist/client/crew/sheets/eye-plate-v1/look-up-left.webp +0 -0
  384. package/dist/client/crew/sheets/eye-plate-v1/look-up-right.webp +0 -0
  385. package/dist/client/crew/sheets/eye-plate-v1/look-up.webp +0 -0
  386. package/dist/client/crew/sheets/sprout/blink-half.webp +0 -0
  387. package/dist/client/crew/sheets/sprout/blink-shut.webp +0 -0
  388. package/dist/client/crew/sheets/sprout/look-down-left.webp +0 -0
  389. package/dist/client/crew/sheets/sprout/look-down-right.webp +0 -0
  390. package/dist/client/crew/sheets/sprout/look-down.webp +0 -0
  391. package/dist/client/crew/sheets/sprout/look-left.webp +0 -0
  392. package/dist/client/crew/sheets/sprout/look-right.webp +0 -0
  393. package/dist/client/crew/sheets/sprout/look-up-left.webp +0 -0
  394. package/dist/client/crew/sheets/sprout/look-up-right.webp +0 -0
  395. package/dist/client/crew/sheets/sprout/look-up.webp +0 -0
  396. package/dist/client/index.html +2 -2
  397. package/dist/drizzle/0020_message_reactions.sql +11 -0
  398. package/dist/drizzle/meta/_journal.json +7 -0
  399. package/dist/main.mjs +542 -150
  400. package/dist/node/main.mjs +131 -17
  401. package/dist/pairing-runtime-controller.mjs +375 -78
  402. package/dist/runtime/base-daemon.mjs +98 -5
  403. package/dist/runtime/broker-daemon.mjs +1879 -1198
  404. package/dist/runtime/broker-process-manager.mjs +96 -3
  405. package/dist/runtime/mesh-discover.mjs +96 -3
  406. package/dist/scout-control-plane-web.mjs +4817 -1616
  407. package/dist/update-helper.mjs +211 -39
  408. package/package.json +2 -2
  409. package/dist/client/assets/ActivityScreen-CcDdQTBK.js +0 -1
  410. package/dist/client/assets/AgentAdventures-BxrYq_2v.js +0 -1
  411. package/dist/client/assets/AgentAvatar-NZOqcsB2.js +0 -1
  412. package/dist/client/assets/AgentConfigurationScreen-BhD1PEAM.js +0 -1
  413. package/dist/client/assets/AgentDefinitionsWorkspace-BqS6MXqF.js +0 -1
  414. package/dist/client/assets/AgentFloorView-A0dDRlRV.js +0 -1
  415. package/dist/client/assets/AgentInfoScreen-DuaN0sgE.js +0 -1
  416. package/dist/client/assets/AgentLanesEmbedScreen-CeNiaZ9_.js +0 -1
  417. package/dist/client/assets/AgentLanesView-WZhEDBFE.js +0 -2
  418. package/dist/client/assets/AgentMasterScreen-DUDUTAnU.js +0 -1
  419. package/dist/client/assets/AgentSessions-CO1WGa8Z.js +0 -6
  420. package/dist/client/assets/AgentsConsole-BQOWkj35.js +0 -1
  421. package/dist/client/assets/AgentsScreen-BMNAj1PH.js +0 -1
  422. package/dist/client/assets/AgentsSubnav-CeHhuzyM.js +0 -1
  423. package/dist/client/assets/BriefingDetailScreen-yZG8_m4h.js +0 -1
  424. package/dist/client/assets/BrokerScreen-CT37VQiL.js +0 -8
  425. package/dist/client/assets/ChannelComposer-BVItWlEz.js +0 -1
  426. package/dist/client/assets/ChannelSidebar-B-2spawY.js +0 -1
  427. package/dist/client/assets/ChatBits-CLJ71hTY.js +0 -1
  428. package/dist/client/assets/ChatRightPanel-pKQtkAgl.js +0 -1
  429. package/dist/client/assets/ChatSpaceSurface-NrLwdPkE.js +0 -1
  430. package/dist/client/assets/ChatSpaceTheme-BPMgPdVK.css +0 -1
  431. package/dist/client/assets/ChatSpaceTheme-D37Jk7bl.js +0 -1
  432. package/dist/client/assets/ConversationComposer-DNcn5U6D.js +0 -1
  433. package/dist/client/assets/ConversationFeedRows-RnYSa7Io.js +0 -1
  434. package/dist/client/assets/ConversationHeader-Y9TEJxP_.js +0 -1
  435. package/dist/client/assets/ConversationScreen-Brfas2y0.css +0 -1
  436. package/dist/client/assets/ConversationScreen-tpj4cqWs.js +0 -2
  437. package/dist/client/assets/ConversationStatus-Cv-7hErW.js +0 -1
  438. package/dist/client/assets/CrewAvatar-zgzC3cbU.js +0 -1
  439. package/dist/client/assets/CrewWorkspaces-K2jcyLec.js +0 -1
  440. package/dist/client/assets/FlightObserveScreen-CvzhzuWc.js +0 -1
  441. package/dist/client/assets/FloorResourcesSheet-_Iy5UqgY.js +0 -1
  442. package/dist/client/assets/FloorTacticalHUD-BhyOqlL5.js +0 -1
  443. package/dist/client/assets/HarnessMark-DSvM_H7H.js +0 -1
  444. package/dist/client/assets/HarnessesScreen-DyjqbZ4k.js +0 -1
  445. package/dist/client/assets/InviteLandingScreen-xZQ2na1z.js +0 -1
  446. package/dist/client/assets/InviteSheet--5Zjct25.js +0 -1
  447. package/dist/client/assets/KnowledgeSearchScreen-BPqAjHnH.js +0 -1
  448. package/dist/client/assets/LaneTraceDetailSheet-jl4XQmEx.js +0 -1
  449. package/dist/client/assets/MeshScreen-BW1dMFWF.js +0 -1
  450. package/dist/client/assets/MessagesScreen-CtNMfIvC.js +0 -1
  451. package/dist/client/assets/MissionControlView-BjPOViGY.js +0 -1
  452. package/dist/client/assets/MissionLeftAgentRow-Dms0DBjO.js +0 -1
  453. package/dist/client/assets/NativeAreaScreen-BQSTo8As.js +0 -1
  454. package/dist/client/assets/NativeAreaScreen-Brix6xDB.js +0 -1
  455. package/dist/client/assets/NativeAreaScreen-D7HyQNlM.js +0 -1
  456. package/dist/client/assets/NewChatComposer-BEXS8vV6.js +0 -19
  457. package/dist/client/assets/ObserveEmbedScreen-Dh30EjAQ.js +0 -2
  458. package/dist/client/assets/OpenScoutAppShell-D9pgw36i.js +0 -31
  459. package/dist/client/assets/OpsAgentsView-D3rM0udq.js +0 -1
  460. package/dist/client/assets/OpsScreen-DySeNQ1V.js +0 -1
  461. package/dist/client/assets/OpsSubnav-C9E0r3GZ.js +0 -1
  462. package/dist/client/assets/ProjectAgentProfile-FUav75j2.js +0 -1
  463. package/dist/client/assets/ProjectAgentProfileHero-BLK0EwMg.js +0 -1
  464. package/dist/client/assets/ProjectsInbox-DfCXReZK.js +0 -2
  465. package/dist/client/assets/ProjectsRail-CELVubfJ.js +0 -1
  466. package/dist/client/assets/ProjectsScreen-DMw4TLKy.js +0 -1
  467. package/dist/client/assets/ProjectsThreadAside-D1Sh4fnX.js +0 -1
  468. package/dist/client/assets/Provider-CNZluAZb.js +0 -5
  469. package/dist/client/assets/RailToggle-BwmY70B8.js +0 -1
  470. package/dist/client/assets/RawSessionsTable-6OVJq0JZ.js +0 -1
  471. package/dist/client/assets/RealtimeVoiceScreen-D41TYY0x.js +0 -9
  472. package/dist/client/assets/RepoDiffViewerLazy-BpMR7tlx.js +0 -2
  473. package/dist/client/assets/SessionObserveEvidence-CS1aQBpQ.js +0 -1
  474. package/dist/client/assets/SessionRefScreen-DURV0MpF.js +0 -1
  475. package/dist/client/assets/SessionsScreen-D71ZR-8t.js +0 -1
  476. package/dist/client/assets/SettingsDrawer-Nz98oBVl.js +0 -3
  477. package/dist/client/assets/SettingsScreen-CYBHal6y.js +0 -1
  478. package/dist/client/assets/SharedWorkFloor-BCmdeb3Q.css +0 -1
  479. package/dist/client/assets/SharedWorkFloor-C0xxW4SN.js +0 -2
  480. package/dist/client/assets/SpaceSwitcher-BfeIf-ad.js +0 -1
  481. package/dist/client/assets/Terminal-jIqnIZZ6.js +0 -4
  482. package/dist/client/assets/TerminalEmbedScreen-3XsjuySR.js +0 -1
  483. package/dist/client/assets/WorkDetailScreen-Bcf_yHhU.js +0 -5
  484. package/dist/client/assets/WorldActorTalk-CKerDikx.js +0 -1
  485. package/dist/client/assets/WorldMinimap-DOptgrc4.js +0 -1
  486. package/dist/client/assets/agent-autocomplete-C7xwIcwd.css +0 -1
  487. package/dist/client/assets/agent-autocomplete-_u9o5EZu.js +0 -2
  488. package/dist/client/assets/agents-screen-BMu6PpRY.css +0 -1
  489. package/dist/client/assets/at-sign-DM7xeppo.js +0 -1
  490. package/dist/client/assets/chat-api-BPVC0asu.js +0 -1
  491. package/dist/client/assets/chat-space-model-B6Jg2CY4.js +0 -4
  492. package/dist/client/assets/content-0AXa0klu.js +0 -1
  493. package/dist/client/assets/content-BEyJ19Lx.js +0 -1
  494. package/dist/client/assets/content-BN5weWKW.js +0 -1
  495. package/dist/client/assets/content-BNokkm7C.js +0 -1
  496. package/dist/client/assets/content-BV4PUM9q.js +0 -1
  497. package/dist/client/assets/content-BxUPlcx5.js +0 -1
  498. package/dist/client/assets/content-CIC5sku8.js +0 -1
  499. package/dist/client/assets/content-CdkTyxqk.js +0 -1
  500. package/dist/client/assets/content-CnhhSCZq.js +0 -1
  501. package/dist/client/assets/content-DY3F9Vfr.js +0 -1
  502. package/dist/client/assets/content-DrKBYpcb.js +0 -1
  503. package/dist/client/assets/content-LSStQYj5.js +0 -1
  504. package/dist/client/assets/content-YvU-D0hF.js +0 -1
  505. package/dist/client/assets/content-oKQMyVnH.js +0 -1
  506. package/dist/client/assets/conversation-model-m8HhzroS.js +0 -1
  507. package/dist/client/assets/conversation-motion-features-D9PxLoDt.js +0 -1
  508. package/dist/client/assets/conversations-Cbg9h_Af.js +0 -1
  509. package/dist/client/assets/ctx-panel-F05jXK4Q.css +0 -1
  510. package/dist/client/assets/discover-DlwbftpC.js +0 -2
  511. package/dist/client/assets/embed-entry-c0lwtjBG.js +0 -2
  512. package/dist/client/assets/home-moving-signal-BIHUGNfI.js +0 -1
  513. package/dist/client/assets/home-now-card-CaLgZze2.js +0 -1
  514. package/dist/client/assets/hooks-DaUOREpP.js +0 -2
  515. package/dist/client/assets/index-CGbs0SBm.css +0 -1
  516. package/dist/client/assets/index-CbqBwfIW.js +0 -1
  517. package/dist/client/assets/index-CyPMl7Up.js +0 -1
  518. package/dist/client/assets/index-PQpJveGO.js +0 -1
  519. package/dist/client/assets/left-0vBrvrBG.js +0 -2
  520. package/dist/client/assets/left-C6SyaqlJ.js +0 -1
  521. package/dist/client/assets/left-CTuXysZR.js +0 -2
  522. package/dist/client/assets/left-Cc6s4DT2.js +0 -1
  523. package/dist/client/assets/left-DF5caiyh.js +0 -1
  524. package/dist/client/assets/left-DgT4tWCx.js +0 -1
  525. package/dist/client/assets/left-R0wppTTr.js +0 -1
  526. package/dist/client/assets/left-advisor-C-kt8V28.js +0 -1
  527. package/dist/client/assets/left-agents-thnBO156.js +0 -1
  528. package/dist/client/assets/left-default-CT42fnpF.js +0 -1
  529. package/dist/client/assets/left-lanes-CSmZgciK.js +0 -1
  530. package/dist/client/assets/left-mission-C86x6i9h.js +0 -1
  531. package/dist/client/assets/library-DdhYL_9v.js +0 -1
  532. package/dist/client/assets/message-markup-6Tgo4qFJ.js +0 -15
  533. package/dist/client/assets/mission-control-model-C30vU1Fe.js +0 -1
  534. package/dist/client/assets/profile-BegEUmB7.js +0 -1
  535. package/dist/client/assets/projects-inbox-CKPLZN8s.css +0 -1
  536. package/dist/client/assets/resolve-panes-pfZTezKo.js +0 -1
  537. package/dist/client/assets/resolve-sidebar-context-D5ksvrb_.js +0 -1
  538. package/dist/client/assets/right-BDaCJ0CF.js +0 -1
  539. package/dist/client/assets/right-BP6lXRFS.js +0 -1
  540. package/dist/client/assets/right-Cb1VCrdj.js +0 -1
  541. package/dist/client/assets/right-CeFaxfBo.js +0 -1
  542. package/dist/client/assets/right-Ck2SrYCj.js +0 -1
  543. package/dist/client/assets/right-D-uv5YfF.js +0 -1
  544. package/dist/client/assets/right-DJMSICky.js +0 -1
  545. package/dist/client/assets/right-Dnljs8ah.js +0 -1
  546. package/dist/client/assets/right-SdCSF8PP.js +0 -1
  547. package/dist/client/assets/router-C-MF5-mb.js +0 -1
  548. package/dist/client/assets/runtime-picker-C_AVYF63.js +0 -1
  549. package/dist/client/assets/scout-voice-CqAyfblr.js +0 -1
  550. package/dist/client/assets/secondaryNavConfig-DzNHk6IH.js +0 -1
  551. package/dist/client/assets/system-surfaces-redesign-DKFg4GB5.css +0 -1
  552. package/dist/client/assets/useContentSecondaryNav-DrL_nkCZ.js +0 -1
  553. package/dist/client/assets/usePersistentState-Y8XwSTg-.js +0 -1
  554. package/dist/drizzle/meta/0000_snapshot.json +0 -4575
  555. package/dist/drizzle/meta/0001_snapshot.json +0 -4624
  556. package/dist/drizzle/meta/0002_snapshot.json +0 -4631
  557. package/dist/drizzle/meta/0003_snapshot.json +0 -4952
  558. package/dist/drizzle/meta/0004_snapshot.json +0 -5235
  559. package/dist/drizzle/meta/0005_snapshot.json +0 -5599
  560. package/dist/drizzle/meta/0006_snapshot.json +0 -5606
  561. package/dist/drizzle/meta/0007_snapshot.json +0 -5767
  562. package/dist/drizzle/meta/0008_snapshot.json +0 -5774
  563. package/dist/drizzle/meta/0009_snapshot.json +0 -6262
  564. package/dist/drizzle/meta/0010_snapshot.json +0 -6286
  565. package/dist/drizzle/meta/0011_snapshot.json +0 -6337
  566. package/dist/drizzle/meta/0012_snapshot.json +0 -6458
  567. package/dist/drizzle/meta/0013_snapshot.json +0 -6465
  568. package/dist/drizzle/meta/0014_snapshot.json +0 -6503
  569. package/dist/drizzle/meta/0015_snapshot.json +0 -6596
  570. package/dist/drizzle/meta/0016_snapshot.json +0 -6611
  571. package/dist/drizzle/meta/0017_snapshot.json +0 -6785
  572. package/dist/drizzle/meta/0018_snapshot.json +0 -6804
  573. package/dist/drizzle/meta/0019_snapshot.json +0 -6804
package/bin/scoutd CHANGED
Binary file
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "packageName": "@openscout/scout",
4
- "version": "0.2.105",
5
- "commit": "4f6679bb04ff580a99a4124d1875ce30cb3b68bd",
4
+ "version": "0.2.106",
5
+ "commit": "02db44c5ccdacb0dddbd4647e36da5d7d8f630bf",
6
6
  "branch": "main",
7
7
  "sourceDirty": false,
8
- "builtAt": "2026-09-17T20:07:44.037Z"
8
+ "builtAt": "2026-09-20T03:07:52.495Z"
9
9
  }
package/dist/chat.mjs CHANGED
@@ -124,6 +124,8 @@ function renderChatHelp(commandName = "scout chat") {
124
124
  ${commandName} read [--channel <id>]
125
125
  ${commandName} say "Hello" [--request-id <id>]
126
126
  ${commandName} reply <message-id> "My reply" [--request-id <id>]
127
+ ${commandName} react <message-id> <emoji> [--request-id <id>]
128
+ ${commandName} unreact <message-id> <emoji> [--request-id <id>]
127
129
  ${commandName} watch [--for 10m] [--once] [--compact] [--reset-cursor] [--channel <id>]
128
130
  ${commandName} status
129
131
 
@@ -140,7 +142,9 @@ with reply; ignore your own messages. Run watch again to resume from its saved
140
142
  cursor. If history has expired, read the room, then explicitly use watch
141
143
  --reset-cursor to replay retained history. Deduplicate by message id.
142
144
  Listening does not itself generate replies.
143
- Use the same --request-id to retry a send whose outcome was uncertain.`;
145
+ Use the same --request-id to retry a send whose outcome was uncertain.
146
+ React and unreact acknowledge a message without posting a turn. They never
147
+ wake an agent or create a flight.`;
144
148
  }
145
149
  async function runChatCommand(context, args, commandName = "scout chat") {
146
150
  if (!args.length || args.includes("--help") || args.includes("-h")) {
@@ -220,6 +224,24 @@ Watch returns message records with IDs. Reply with ${commandName} reply <message
220
224
  context.output.writeValue(data, (d) => JSON.stringify(d, null, 2));
221
225
  return;
222
226
  }
227
+ if (command === "react" || command === "unreact") {
228
+ const messageId = values[0]?.trim();
229
+ const emoji = values[1]?.trim();
230
+ if (!messageId || !emoji)
231
+ throw new Error(`Usage: ${commandName} ${command} <message-id> <emoji>`);
232
+ const requestId = flags["request-id"] ?? randomUUID();
233
+ const resource = command === "unreact" ? "reactions/remove" : "reactions";
234
+ try {
235
+ const { data } = await chatRequest(room.origin, chatPath(room, resource), {
236
+ token: room.token,
237
+ body: { requestId, messageId, emoji }
238
+ });
239
+ context.output.writeValue({ ...data, requestId, messageId, emoji }, () => `${command === "unreact" ? "Removed" : "Reacted"} ${emoji} on ${messageId}.`);
240
+ } catch (error) {
241
+ throw new Error(`${error.message} Retry with --request-id ${requestId} to avoid duplicates.`);
242
+ }
243
+ return;
244
+ }
223
245
  if (command === "say" || command === "reply") {
224
246
  const replyToMessageId = command === "reply" ? values.shift() : undefined;
225
247
  const body = values.join(" ").trim();
@@ -0,0 +1 @@
1
+ import{r as t,j as e}from"./index-EsrkGBcv.js";import{p as J,a as Q}from"./api-DSqpVKC7.js";import{c as k}from"./clipboard-e3fSpeo7.js";import{u as Z}from"./sse-BCPRocpq.js";import{m as ss,a as es}from"./machine-scope-DJt9RZ2w.js";import{d as as}from"./router-DCtl8wqb.js";import{r as U}from"./mentions-ByUvhS-v.js";import{t as w,b as q}from"./time-Dhsh_2EG.js";import{u as ts,a as ns}from"./Provider-C35yu29I.js";import{S as is,p as rs,r as ls,s as os}from"./SessionHopMenu-E6VJZrE0.js";import{E as T}from"./EmptyState-CZlrHXy-.js";/* empty css */import"./index-BWHgHrtv.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-3RfJpen8.js";import"./colors-CFlbwC25.js";import"./agent-state-DDhnFEEP.js";import"./index-724SdE6r.js";import"./AgentDetailCard-DtHT3sCo.js";import"./AgentLiveActions-CfTupTEl.js";import"./terminal-takeover-Ay5C2c-M.js";import"./openContent-C6XO6kr5.js";import"./eye-LrO-cXQt.js";import"./createLucideIcon-zZ8Hx7er.js";import"./terminal-hQKQygcf.js";import"./theme-vars-DNK0nn3k.js";import"./provider-Dojd8quC.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-Bk3nyrkj.js";import"./NewChatComposer-C97-iTMK.js";import"./runtime-picker-DXu2bOTh.js";import"./scout-voice-CZx60X6E.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-OvccU82H.js";import"./media-blobs-Bi8pxr1u.js";import"./HarnessMark-C4naWc16.js";import"./conversation-model-FxDeWlle.js";import"./conversations-DoAAO6kA.js";import"./NewChatOrigin-DFbF_XvR.js";import"./keyboard-nav-DDHegDbx.js";import"./x-DAehov0E.js";import"./chevron-down-l1mrh5S9.js";import"./search-DT42oyRW.js";import"./file-text-CnISiiw6.js";import"./model-CBkMvT1w.js";import"./DocumentFocusViewer-DJr0v0D_.js";import"./TextDocumentSurface-D52m7Vd8.js";import"./index-CHD0qcfL.js";import"./chevron-right-DrfqcerI.js";import"./folder-D5prSkzz.js";import"./chevron-up-CETZJzjV.js";import"./code-xml-BhcNbLWU.js";import"./arrow-left-MVUKauwQ.js";import"./arrow-right-Bp-FpE5V.js";import"./voice-turn-ledger-BMZxlSjg.js";import"./chunk-HRAB3GC3-DbVLgbWX.js";import"./external-link-CUObqmgX.js";const cs=3e4,ds={"agent.registered":"registered","agent.online":"came online","agent.offline":"went offline","flight.started":"started task","message.sent":"sent message","message.received":"received message","collaboration.ask":"asked a question","collaboration.answer":"answered",ask_sent:"sent a request",ask_working:"working",flight_created:"started task",message_sent:"sent",message_received:"received"},ps=new Set(["ask_failed","ask_replied","flight.completed","flight.updated","flight_updated"]),us={presence:{label:"Presence",tone:"notice"},work:{label:"Execution",tone:"working"},message:{label:"Delivery",tone:"completed"},collaboration:{label:"Coordination",tone:"working"},system:{label:"System",tone:"notice"}};function z(a){return ds[a]??a.replace(/[._]/g," ")}function hs(a){return a.startsWith("agent.")||a.includes("registered")||a.includes("online")||a.includes("offline")?"presence":a.startsWith("flight")||a.startsWith("ask_")?"work":a.startsWith("message")?"message":a.startsWith("collaboration")?"collaboration":"system"}function ms(a){return(a??"system").charAt(0).toUpperCase()}function p(a){return a.length<=14?a:`${a.slice(0,8)}...${a.slice(-4)}`}function ys(a){if(!a)return null;const u=a.split("/").filter(Boolean);return u[u.length-1]??a}function fs(a){return`${a.actorName??"system"} ${z(a.kind)}`}function gs(a){return a.workspaceRoot?`Recorded from ${a.workspaceRoot}.`:a.conversationId?`Linked to thread ${p(a.conversationId)}.`:"No additional detail was captured for this event."}function be({navigate:a}){const{agents:u,route:S}=ts(),[E]=t.useState(()=>J("/api/activity",cs)),[x,H]=t.useState(E??[]),[N,A]=t.useState(null),[y,_]=t.useState(E===null),[$,L]=t.useState(!1),[h,C]=t.useState(null),[j,F]=t.useState(null),M=t.useRef(E??[]),b=t.useRef(0),f=t.useRef(null),G=ns(),D=as(S),W=t.useMemo(()=>ss(u,D),[u,D]),i=t.useMemo(()=>es(x,W).filter(s=>!ps.has(s.kind)),[x,W]);t.useEffect(()=>{M.current=x},[x]),t.useEffect(()=>{N&&!i.some(s=>s.id===N)&&A(null)},[N,i]);const m=t.useCallback(async(s="initial")=>{const r=++b.current;!(M.current.length>0)&&s!=="background"?(_(!0),C(null)):L(!0);try{const c=await Q("/api/activity");if(r!==b.current)return;H(c),C(null),F(Date.now()),A(g=>c.some(R=>R.id===g)?g:null)}catch(c){if(r!==b.current)return;C(c instanceof Error?c.message:String(c))}finally{r===b.current&&(_(!1),L(!1))}},[]),K=t.useCallback(()=>{f.current||(f.current=setTimeout(()=>{f.current=null,m("background")},250))},[m]);t.useEffect(()=>(m("initial"),()=>{f.current&&clearTimeout(f.current)}),[m]),Z(K);const P=t.useMemo(()=>{const s=new Set(i.map(d=>d.actorName??"system")),r=new Set(i.map(d=>d.conversationId).filter(d=>!!d));return[{label:"Events",value:`${i.length}`,detail:i.length>0?`Latest ${w(i[0].ts)}`:"Waiting for records"},{label:"Actors",value:`${s.size}`,detail:s.size>0?"Distinct event owners":"No actors yet"},{label:"Threads",value:`${r.size}`,detail:r.size>0?"Conversation-linked records":"No linked threads"}]},[i]),V=!y&&i.length===0&&!!h,X=!y&&i.length===0&&!h;return e.jsxs("div",{className:"sys-surface-page",children:[e.jsxs("div",{className:"sys-page-head",children:[e.jsxs("div",{className:"sys-page-title-group",children:[e.jsx("h2",{className:"sys-page-title",children:"Activity Log"}),e.jsx("p",{className:"sys-page-subtitle",children:"Broker events, task execution, and collaboration handoffs."})]}),e.jsxs("div",{className:"sys-page-actions",children:[e.jsx("div",{className:"sys-sync-note",children:y?"Loading audit ledger...":h&&i.length>0?`Showing last confirmed snapshot from ${j?w(j):"earlier"}`:j?`Updated ${w(j)}`:"Waiting for first snapshot"}),e.jsx("button",{type:"button",className:"s-btn",disabled:y||$,onClick:()=>{m("manual")},children:$?"Refreshing...":"Refresh"})]})]}),e.jsx("div",{className:"sys-stat-grid",children:P.map(s=>e.jsxs("div",{className:"sys-stat-card",children:[e.jsx("span",{className:"sys-stat-label",children:s.label}),e.jsx("strong",{className:"sys-stat-value",children:s.value}),e.jsx("span",{className:"sys-stat-detail",children:s.detail})]},s.label))}),h&&i.length>0&&e.jsxs("div",{className:"sys-banner sys-banner-warning",children:[e.jsx("strong",{children:"Refresh failed."}),e.jsx("span",{children:h})]}),y&&i.length===0&&e.jsx(T,{title:"Loading activity",body:"Pulling the latest records from the broker database."}),V&&e.jsx(T,{className:"sys-state-card-error",title:"Activity is unavailable",body:h,action:e.jsx("button",{type:"button",className:"s-btn",onClick:()=>{m("manual")},children:"Try again"})}),X&&e.jsx(T,{title:"No activity yet",body:"Events appear here after agents register, send messages, or advance work."}),i.length>0&&e.jsx("div",{className:"sys-audit-list",children:i.map(s=>{const r=N===s.id,d=hs(s.kind),c=us[d],g=ys(s.workspaceRoot),R=s.summary&&s.summary!==s.title?s.summary:gs(s),l=[];if(s.conversationId&&l.push({key:"thread",label:"Thread",title:`Open thread ${p(s.conversationId)}`,route:{view:"conversation",conversationId:s.conversationId}}),s.recordId&&l.push({key:"work",label:"Work",title:"Open work item",route:{view:"work",workId:s.recordId}}),s.agentId){const n=s.agentName??"Agent";l.push({key:"agent",label:n,title:`Open agent ${n}`,route:{view:"agents-v2",agentId:s.agentId}})}s.sessionId&&l.push({key:"session",label:"Session",title:"Open session",route:{view:"sessions",sessionId:s.sessionId}}),(s.flightId||s.invocationId)&&l.push({key:"follow",label:"Follow",title:"Follow live execution",route:{view:"follow",...s.flightId?{flightId:s.flightId}:{},...s.invocationId?{invocationId:s.invocationId}:{},...s.conversationId?{conversationId:s.conversationId}:{}}});const O=()=>A(r?null:s.id);return e.jsxs("article",{className:`sys-audit-entry${r?" sys-audit-entry-expanded":""}`,onContextMenu:n=>{const I=window.getSelection()?.toString().trim(),o=[];I&&(o.push({kind:"action",label:"Copy Selection",shortcut:"⌘C",onSelect:()=>{k(I)}}),o.push({kind:"separator"}));const B=s.title??s.summary??"";if(B&&o.push({kind:"action",label:"Copy Details",onSelect:()=>{k(B)}}),s.actorName&&o.push({kind:"action",label:"Copy Actor",onSelect:()=>{k(s.actorName)}}),o.push({kind:"action",label:"Copy Event ID",onSelect:()=>{k(s.id)}}),l.length>0){o.push({kind:"separator"});for(const v of l)o.push({kind:"action",label:`Open ${v.label}`,onSelect:()=>a(v.route)})}if(s.agentId||s.sessionId){const v=rs(),Y=v?ls(v,{agentId:s.agentId,sessionRefs:[s.sessionId]}):null;o.push({kind:"separator"}),o.push(...os({target:Y,agentId:s.agentId,navigate:a,returnTo:S}))}G(n,o)},children:[e.jsxs("div",{className:"sys-audit-toggle",role:"button",tabIndex:0,"aria-expanded":r,onClick:O,onKeyDown:n=>{(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),O())},children:[e.jsxs("div",{className:"sys-audit-stamp",children:[e.jsx("span",{className:"sys-audit-time",children:w(s.ts)}),e.jsx("span",{className:"sys-audit-date",children:q(s.ts)})]}),e.jsx("div",{className:`sys-audit-marker sys-audit-marker-${c.tone}`,children:e.jsx("span",{})}),e.jsxs("div",{className:"sys-audit-body",children:[e.jsxs("div",{className:"sys-audit-topline",children:[e.jsx("span",{className:"sys-audit-category",children:c.label}),e.jsx("span",{className:"sys-audit-kind",children:z(s.kind)})]}),e.jsx("h3",{className:"sys-audit-title",children:U(s.title??fs(s))}),e.jsx("p",{className:"sys-audit-summary",children:U(R)}),e.jsxs("div",{className:"sys-audit-meta",children:[e.jsxs("span",{className:"sys-audit-meta-item",children:[e.jsx("span",{className:"sys-audit-avatar","aria-hidden":!0,children:ms(s.actorName)}),s.actorName??"system"]}),g&&e.jsxs("span",{className:"sys-audit-meta-item",children:["Workspace ",g]})]}),l.length>0&&e.jsxs("div",{className:"sys-audit-jumps",children:[e.jsx("span",{className:"sys-audit-jumps-label",children:"Open"}),l.map(n=>e.jsx("button",{type:"button",className:"sys-audit-jump",title:n.title,onClick:I=>{I.stopPropagation(),a(n.route)},children:n.label},n.key)),(s.agentId||s.sessionId)&&e.jsx(is,{className:"sys-audit-jump",label:"Terminal",hints:{agentId:s.agentId,sessionRefs:[s.sessionId]},navigate:a,returnTo:S})]})]}),e.jsx("div",{className:"sys-audit-expand",children:r?"Close":"Details"})]}),r&&e.jsxs("div",{className:"sys-audit-details",children:[e.jsxs("div",{className:"sys-detail-grid",children:[e.jsxs("div",{className:"sys-detail-card",children:[e.jsx("span",{className:"sys-detail-label",children:"Event"}),e.jsx("code",{className:"sys-detail-value",children:s.kind})]}),e.jsxs("div",{className:"sys-detail-card",children:[e.jsx("span",{className:"sys-detail-label",children:"Recorded"}),e.jsx("span",{className:"sys-detail-value",children:q(s.ts)})]}),e.jsxs("div",{className:"sys-detail-card",children:[e.jsx("span",{className:"sys-detail-label",children:"Actor"}),e.jsx("span",{className:"sys-detail-value",children:s.actorName??"system"})]}),s.agentName&&e.jsxs("div",{className:"sys-detail-card",children:[e.jsx("span",{className:"sys-detail-label",children:"Agent"}),e.jsx("span",{className:"sys-detail-value",children:s.agentName})]}),e.jsxs("div",{className:"sys-detail-card",children:[e.jsx("span",{className:"sys-detail-label",children:"Workspace"}),e.jsx("span",{className:"sys-detail-value",children:s.workspaceRoot??"Not attached"})]}),e.jsxs("div",{className:"sys-detail-card",children:[e.jsx("span",{className:"sys-detail-label",children:"Thread"}),e.jsx("span",{className:"sys-detail-value",children:s.conversationId?p(s.conversationId):"Not attached"})]}),s.recordId&&e.jsxs("div",{className:"sys-detail-card",children:[e.jsx("span",{className:"sys-detail-label",children:"Work"}),e.jsx("span",{className:"sys-detail-value",children:p(s.recordId)})]}),s.sessionId&&e.jsxs("div",{className:"sys-detail-card",children:[e.jsx("span",{className:"sys-detail-label",children:"Session"}),e.jsx("span",{className:"sys-detail-value",children:p(s.sessionId)})]}),s.flightId&&e.jsxs("div",{className:"sys-detail-card",children:[e.jsx("span",{className:"sys-detail-label",children:"Flight"}),e.jsx("span",{className:"sys-detail-value",children:p(s.flightId)})]}),s.invocationId&&e.jsxs("div",{className:"sys-detail-card",children:[e.jsx("span",{className:"sys-detail-label",children:"Invocation"}),e.jsx("span",{className:"sys-detail-value",children:p(s.invocationId)})]}),e.jsxs("div",{className:"sys-detail-card",children:[e.jsx("span",{className:"sys-detail-label",children:"Record id"}),e.jsx("code",{className:"sys-detail-value",children:s.id})]})]}),l.length>0&&e.jsx("div",{className:"sys-inline-actions",children:l.map(n=>e.jsxs("button",{type:"button",className:"s-btn s-btn-sm",onClick:()=>a(n.route),children:["Open ",n.label]},n.key))})]})]},s.id)})})]})}export{be as ActivityScreen};
@@ -1 +1 @@
1
- import{r as n,j as o}from"./index-DReVb7jZ.js";import{a as y}from"./api-DSqpVKC7.js";import{c as j}from"./createLucideIcon-ChvMq-zl.js";const m=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],f=j("folder-plus",m);function h({onClose:p}){const[d,l]=n.useState(""),[r,c]=n.useState(!1),[i,a]=n.useState(null),u=async()=>{const e=d.trim();if(!(!e||r)){c(!0),a(null);try{const t=await y("/api/projects/add",{method:"POST",body:JSON.stringify({root:e})}),s=t.projects[0]?.title??null;t.alreadyRegistered?a({text:s?`/${s} is already registered`:"Already registered",tone:"ok"}):s?(a({text:`Registered /${s}`,tone:"ok"}),l("")):a({text:"Root added, but no project found there yet",tone:"error"})}catch(t){a({text:t instanceof Error?t.message:String(t),tone:"error"})}finally{c(!1)}}};return o.jsxs("div",{className:"pi-addProject",children:[o.jsxs("div",{className:"pi-addProjectBox","data-busy":r||void 0,children:[o.jsx(f,{size:13,strokeWidth:1.8,"aria-hidden":!0}),o.jsx("input",{className:"pi-addProjectInput",type:"text",value:d,placeholder:"~/dev/my-project","aria-label":"Project folder path",autoFocus:!0,disabled:r,spellCheck:!1,onChange:e=>l(e.currentTarget.value),onKeyDown:e=>{e.key==="Enter"&&u(),e.key==="Escape"&&p()}}),o.jsx("button",{type:"button",className:"pi-addProjectSubmit",disabled:r||!d.trim(),onClick:()=>{u()},children:r?"Adding...":"Add"})]}),i?o.jsx("div",{className:"pi-addProjectNote","data-tone":i.tone,role:"status",children:i.text}):null]})}const k=Object.freeze(Object.defineProperty({__proto__:null,AddProjectForm:h},Symbol.toStringTag,{value:"Module"}));export{h as A,f as F,k as a};
1
+ import{r as n,j as o}from"./index-EsrkGBcv.js";import{a as y}from"./api-DSqpVKC7.js";import{c as j}from"./createLucideIcon-zZ8Hx7er.js";const m=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],f=j("folder-plus",m);function h({onClose:p}){const[d,l]=n.useState(""),[r,c]=n.useState(!1),[i,a]=n.useState(null),u=async()=>{const e=d.trim();if(!(!e||r)){c(!0),a(null);try{const t=await y("/api/projects/add",{method:"POST",body:JSON.stringify({root:e})}),s=t.projects[0]?.title??null;t.alreadyRegistered?a({text:s?`/${s} is already registered`:"Already registered",tone:"ok"}):s?(a({text:`Registered /${s}`,tone:"ok"}),l("")):a({text:"Root added, but no project found there yet",tone:"error"})}catch(t){a({text:t instanceof Error?t.message:String(t),tone:"error"})}finally{c(!1)}}};return o.jsxs("div",{className:"pi-addProject",children:[o.jsxs("div",{className:"pi-addProjectBox","data-busy":r||void 0,children:[o.jsx(f,{size:13,strokeWidth:1.8,"aria-hidden":!0}),o.jsx("input",{className:"pi-addProjectInput",type:"text",value:d,placeholder:"~/dev/my-project","aria-label":"Project folder path",autoFocus:!0,disabled:r,spellCheck:!1,onChange:e=>l(e.currentTarget.value),onKeyDown:e=>{e.key==="Enter"&&u(),e.key==="Escape"&&p()}}),o.jsx("button",{type:"button",className:"pi-addProjectSubmit",disabled:r||!d.trim(),onClick:()=>{u()},children:r?"Adding...":"Add"})]}),i?o.jsx("div",{className:"pi-addProjectNote","data-tone":i.tone,role:"status",children:i.text}):null]})}const k=Object.freeze(Object.defineProperty({__proto__:null,AddProjectForm:h},Symbol.toStringTag,{value:"Module"}));export{h as A,f as F,k as a};
@@ -1,4 +1,4 @@
1
- import{j as e}from"./index-DReVb7jZ.js";import{u as E}from"./Provider-CNZluAZb.js";import{a as M,c as P,d as O}from"./adventure-playback-DTfkhIc0.js";import{b as W}from"./agent-lane-detail-Ti3trpfH.js";/* empty css */import{B as L}from"./book-open-BL9qvhEI.js";import{c as S}from"./createLucideIcon-ChvMq-zl.js";import{A as R}from"./arrow-up-right-B0aLKiyF.js";const T=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],B=S("flask-conical",T);const F=[["path",{d:"m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",key:"1hayfq"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"15ts47"}]],H=S("hammer",F);function b(i){const o=[];for(const t of i.split("/"))!t||t==="."||(t===".."&&o.length&&o.at(-1)!==".."?o.pop():(t!==".."||!i.startsWith("/"))&&o.push(t));return`${i.startsWith("/")?"/":""}${o.join("/")}`}function y(i){return i.length<1024&&!/[\n\r\0*?<>|;$`]/.test(i)&&!i.startsWith("-")&&/(?:\/|\.[a-zA-Z0-9]{1,12}$)/.test(i)&&!/^\w+:\/\//.test(i)}function V(i){const o=i?.trim()??"";try{const t=JSON.parse(o);if(t&&typeof t=="object"&&!Array.isArray(t)){const m=[t.path,t.file_path,t.filePath,t.filename].filter(s=>typeof s=="string"&&y(s)),r=t.cmd??t.command;return{paths:m,command:typeof r=="string"?r:Array.isArray(r)?r.filter(s=>typeof s=="string").join(" "):""}}}catch{}return{paths:y(o)&&!/\s/.test(o)?[o]:[],command:o}}function Z(i){const o=[];let t="";const m=i.split(`
1
+ import{j as e}from"./index-EsrkGBcv.js";import{u as E}from"./Provider-C35yu29I.js";import{a as M,c as P,d as O}from"./adventure-playback-DTfkhIc0.js";import{b as W}from"./agent-lane-detail-Ti3trpfH.js";/* empty css */import{B as L}from"./book-open-CV98WMSp.js";import{c as S}from"./createLucideIcon-zZ8Hx7er.js";import{A as R}from"./arrow-up-right-BPedAgxO.js";const T=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],B=S("flask-conical",T);const F=[["path",{d:"m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",key:"1hayfq"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"15ts47"}]],H=S("hammer",F);function b(i){const o=[];for(const t of i.split("/"))!t||t==="."||(t===".."&&o.length&&o.at(-1)!==".."?o.pop():(t!==".."||!i.startsWith("/"))&&o.push(t));return`${i.startsWith("/")?"/":""}${o.join("/")}`}function y(i){return i.length<1024&&!/[\n\r\0*?<>|;$`]/.test(i)&&!i.startsWith("-")&&/(?:\/|\.[a-zA-Z0-9]{1,12}$)/.test(i)&&!/^\w+:\/\//.test(i)}function V(i){const o=i?.trim()??"";try{const t=JSON.parse(o);if(t&&typeof t=="object"&&!Array.isArray(t)){const m=[t.path,t.file_path,t.filePath,t.filename].filter(s=>typeof s=="string"&&y(s)),r=t.cmd??t.command;return{paths:m,command:typeof r=="string"?r:Array.isArray(r)?r.filter(s=>typeof s=="string").join(" "):""}}}catch{}return{paths:y(o)&&!/\s/.test(o)?[o]:[],command:o}}function Z(i){const o=[];let t="";const m=i.split(`
2
2
  `).filter(r=>{if(t)return r.trim()===t&&(t=""),!1;const s=/<<-?\s*['"]?([A-Za-z_][\w]*)['"]?/.exec(r);return s&&(t=s[1]),!0}).join(`
3
3
  `);for(const[r,...s]of O(m)){const u=r.split("/").at(-1)??"";if(!["cat","head","tail","sed","rg","grep"].includes(u)||u==="sed"&&s.some(d=>/^-i|^--in-place/.test(d)))continue;const c=u==="rg"||u==="grep";let p=!1,n=!0;const l=[];for(let d=0;d<s.length;d++){const h=s[d];if(n&&h==="--"){n=!1;continue}if(n&&h.startsWith("-")){if(h==="--files"){p=!0;continue}if(["-e","--regexp","-f","--file"].includes(h)){p=!0,d++;continue}if(/^-[ef].+/.test(h)||/^--(?:regexp|file)=/.test(h)){p=!0;continue}(["-n","-c"].includes(h)&&!c&&u!=="sed"||["--max-count","-m","--glob","-g","--type","-t","--encoding","--context","-A","-B","-C","--include","--exclude","--exclude-dir","--iglob","--max-depth"].includes(h))&&d++;continue}if((c||u==="sed")&&!p){p=!0;continue}if([">",">>","<","2>"].includes(h))break;l.push(h)}for(const d of l)(y(d)||c&&/^[A-Za-z0-9_./-]+$/.test(d))&&o.push({path:d,search:c})}return o}function q(i,o,t){const m=new Map,r=new Map,s=[],u=new Set,c=t.facts?.cwd||W(t).cwd||"",p=Number.isFinite(o)?Math.min(Math.floor(o),i.length-1):-1;for(const n of i.slice(0,Math.max(0,p+1))){if(u.has(n.event.id))continue;u.add(n.event.id);const l=n.event;if(l.kind!=="tool")continue;const d=V(l.arg),h=l.tool?.toLowerCase()??"",x=M(n),N=x!==null,w=!!l.diff||/(?:edit|write|apply_patch|str_replace)/.test(h),z=/(?:read|search|find|view|open)/.test(h),A=new Set(!N&&(z||w)?d.paths:[]);if(w)for(const a of`${l.arg??""}
4
4
  ${l.diff?.preview??""}`.matchAll(/^(?:\*\*\* (?:Update|Add|Delete) File: |(?:\+\+\+|---) [ab]\/)(.+)$/gm))y(a[1])&&A.add(a[1]);const k=new Set;if(x)for(const a of Z(x))A.add(a.path),a.search&&k.add(a.path);const C=w?r:m;for(const a of A){const f=k.has(a),j=f?null:a.startsWith("/")?b(a):c.startsWith("/")?b(`${c}/${a}`):null,g=j??b(a),v=C.get(g);v?v.observations++:C.set(g,{path:b(a),resolvedPath:j,observations:1,clue:f?"Search scope":l.tool||n.label})}if(x!==null&&P(x)){const a=l.result,f=a?.exit_code??a?.exitCode,j=typeof f=="number"?f:typeof f=="string"&&/^-?\d+$/.test(f)?Number(f):void 0,g=l.text==="Command completed"?`Observed command completion · ${Object.entries(a??{}).map(([$,_])=>`${$}: ${_}`).join(" · ")||"Exit unavailable"}`:a?Object.entries(a).map(([$,_])=>`${$}: ${_}`).join(" · "):l.stream?.join(`
@@ -1,4 +1,4 @@
1
- import{r as d,j as e}from"./index-DReVb7jZ.js";import{a as $}from"./api-DSqpVKC7.js";import{f as O}from"./index-kkXUq-zf.js";import{a as q}from"./adventure-playback-DTfkhIc0.js";import{f as P}from"./floor-preview-text-HrORUJ7D.js";/* empty css */import{B as W}from"./book-open-BL9qvhEI.js";import{X as D}from"./x-rlMdRqJF.js";import{T as I}from"./terminal-DMZjX1es.js";import{c as H}from"./createLucideIcon-ChvMq-zl.js";import{S as J}from"./scroll-text-B0tKI9Sg.js";import"./TextDocumentSurface-BK6Qy41F.js";import"./chevron-right-DKGTLiqc.js";import"./folder-B_S7gBVr.js";import"./file-text-DP6txVW-.js";const K=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],U=H("file-diff",K),V={notes:"Field notes",diff:"Changes",result:"Results"},G={notes:"Field notes",diff:"What changed",result:"What came back"},X={notes:J,diff:U,result:I},C=r=>new Date(r).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),F=r=>r.split(`
1
+ import{r as d,j as e}from"./index-EsrkGBcv.js";import{a as $}from"./api-DSqpVKC7.js";import{f as O}from"./index-CHD0qcfL.js";import{a as q}from"./adventure-playback-DTfkhIc0.js";import{f as P}from"./floor-preview-text-HrORUJ7D.js";/* empty css */import{B as W}from"./book-open-CV98WMSp.js";import{X as D}from"./x-DAehov0E.js";import{T as I}from"./terminal-hQKQygcf.js";import{c as H}from"./createLucideIcon-zZ8Hx7er.js";import{S as J}from"./scroll-text-DNjxhyO2.js";import"./TextDocumentSurface-D52m7Vd8.js";import"./chevron-right-DrfqcerI.js";import"./folder-D5prSkzz.js";import"./file-text-CnISiiw6.js";const K=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],U=H("file-diff",K),V={notes:"Field notes",diff:"Changes",result:"Results"},G={notes:"Field notes",diff:"What changed",result:"What came back"},X={notes:J,diff:U,result:I},C=r=>new Date(r).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),F=r=>r.split(`
2
2
  `).length,S=r=>r<1024?`${r} B`:`${(r/1024).toFixed(r<102400?1:0)} KB`;function Q(r,t){const s=v=>v.replace(/\s+/g," ").trim().toLowerCase();if(!r||!t)return!1;const[o,l]=[s(r),s(t)];if(!o||!l)return!1;if(o===l)return!0;const[h,x]=o.length<=l.length?[o,l]:[l,o];return h.length>=24&&x.includes(h.slice(0,80))}function Y(r){return r?.event.stream?.length?r.event.stream.join(`
3
3
  `):r?.event.result?JSON.stringify(r.event.result,null,2):""}function Z(r){return r.split("/").flatMap((t,s)=>s===0?[t]:["/",e.jsx("wbr",{},s),t])}function c(r,t,s=!1){return t?e.jsxs("div",{children:[e.jsx("dt",{children:r}),e.jsx("dd",{className:s?"is-path":void 0,children:t})]},r):null}function xe({stop:r,path:t,onClose:s,onPath:o}){const l=d.useRef(null),h=d.useRef(null),[x,v]=d.useState("notes"),[a,b]=d.useState(null),[k,w]=d.useState("");d.useEffect(()=>{l.current?.showModal()},[]),d.useEffect(()=>{let n=!0;return b(null),w(""),t&&$(`/api/file/preview?path=${encodeURIComponent(t)}`).then(u=>{n&&b(u)}).catch(u=>{n&&w(String(u))}),()=>{n=!1}},[t]);const R=r?q(r):null,j=R||r?.event.detail||r?.event.arg||null,p=P(r?.event.text),f=Y(r),_=r?.event.result?.exit_code??r?.event.result?.exitCode,i=r?.event.diff,g=["notes","diff","result"].filter(n=>n==="notes"||(n==="diff"?!!i:!!f)),m=g.includes(x)?x:"notes";d.useEffect(()=>{h.current?.scrollTo({top:0})},[m,t]);const B=t?t.split("/").filter(Boolean):[],T=t?B.at(-1)??t:r?.event.tool||r?.label||"Artifact",N=a?.kind==="file"?a.sizeBytes:void 0,E=a?.kind==="file"&&a.previewable?a.truncated:!1,y=a&&O.find(n=>n.canHandle(a)),z=e.jsxs(e.Fragment,{children:[p&&!Q(p,j)?e.jsx("p",{className:"adventure-reader__prose",children:p}):null,j?e.jsxs("figure",{className:"adventure-reader__record",children:[e.jsx("figcaption",{children:R?"Observed command":"Recorded input"}),e.jsx("pre",{children:j})]}):null,!p&&!j?e.jsx("p",{className:"adventure-reader__quiet",children:"Nothing was written down at this stop."}):null,g.includes("result")?e.jsxs("button",{type:"button",className:"adventure-reader__next",onClick:()=>v("result"),children:["Read what came back",e.jsx("span",{"aria-hidden":"true",children:"→"})]}):null]}),L=e.jsxs(e.Fragment,{children:[e.jsxs("p",{className:"adventure-reader__tally",children:[e.jsxs("b",{children:["+",i?.add??0]})," added ",e.jsxs("b",{children:["−",i?.del??0]})," removed"]}),i?.preview?e.jsx("pre",{className:"adventure-reader__diff",children:i.preview.split(`
4
4
  `).map((n,u)=>e.jsx("span",{className:n.startsWith("+")?"is-added":n.startsWith("-")?"is-removed":"",children:n||" "},u))}):e.jsx("p",{className:"adventure-reader__quiet",children:"No preview was recorded for this change."})]}),M=e.jsxs(e.Fragment,{children:[e.jsxs("p",{className:"adventure-reader__tally",children:[_===void 0?"Output":`Exit code ${_}`,f?e.jsxs("small",{children:[F(f)," ",F(f)===1?"line":"lines"]}):null]}),f?e.jsx("pre",{className:"adventure-reader__output",children:f}):e.jsx("p",{className:"adventure-reader__quiet",children:"Nothing came back at this stop."})]}),A=k?e.jsxs("div",{className:"adventure-reader__failed",role:"alert",children:[e.jsx("strong",{children:"This file could not be opened."}),e.jsx("p",{children:k})]}):a&&y?e.jsx("div",{className:"adventure-reader__file",children:y.render({resource:a,openFilePreview:o})}):a?e.jsx("p",{className:"adventure-reader__quiet",children:"No reader is available for this kind of file."}):e.jsxs("p",{className:"adventure-reader__quiet",role:"status",children:["Opening ",T,"…"]});return e.jsxs("dialog",{ref:l,className:"adventure-reader","aria-labelledby":"adventure-reader-title",onCancel:s,onClose:s,onClick:n=>{n.target===n.currentTarget&&s()},children:[e.jsxs("header",{children:[e.jsx(W,{size:19,"aria-hidden":"true"}),e.jsxs("div",{className:"adventure-reader__masthead",children:[e.jsx("small",{children:t?"Field journal · current file":"Field journal · recorded stop"}),e.jsx("h2",{id:"adventure-reader-title",title:t??void 0,children:T})]}),!t&&r?e.jsxs("span",{className:"adventure-reader__stamp",children:[r.label," · ",C(r.at)]}):null,e.jsx("button",{type:"button",onClick:s,"aria-label":"Close field journal",children:e.jsx(D,{size:18})})]}),e.jsxs("div",{className:"adventure-reader__binding",children:[e.jsxs("aside",{children:[t?null:e.jsx("nav",{"aria-label":"Journal pages",children:g.map(n=>{const u=X[n];return e.jsxs("button",{type:"button","aria-pressed":m===n,onClick:()=>v(n),children:[e.jsx(u,{size:15}),e.jsx("span",{children:V[n]})]},n)})}),e.jsx("dl",{className:"adventure-reader__meta",children:t?e.jsxs(e.Fragment,{children:[c("Path",Z(t),!0),c("Reading","Current contents on disk"),N===void 0?null:c("Size",E?`${S(N)} · preview truncated`:S(N))]}):e.jsxs(e.Fragment,{children:[r?c("Observed",C(r.at)):null,r?c("Stop",r.label):null,c("Tool",r?.event.tool,!0),_===void 0?null:c("Exit code",String(_)),i?c("Change",`+${i.add} / −${i.del} lines`):null]})})]}),e.jsxs("article",{className:"adventure-reader__leaf",ref:h,children:[e.jsxs("div",{className:"adventure-reader__head",children:[e.jsx("span",{children:t?"Current file":G[m]}),e.jsx("small",{children:t?"Current contents, read from disk":"As recorded, never re-run"})]}),e.jsx("div",{className:"adventure-reader__body",children:t?A:m==="notes"?z:m==="diff"?L:M})]})]}),e.jsxs("footer",{children:[e.jsx("span",{children:"Esc returns to the trail."}),e.jsx("button",{type:"button",onClick:s,children:"Back to the trail →"})]})]})}export{xe as AdventureReader};
@@ -1 +1 @@
1
- import{r as s,j as e}from"./index-DReVb7jZ.js";import{p as t}from"./adventure-habitats-v1-M1lcpTJh.js";function a(){const r=s.useId();return e.jsxs("svg",{className:"adventures__scenery",width:"100%",height:"400","aria-hidden":"true",children:[e.jsx("defs",{children:e.jsxs("pattern",{id:r,width:"2400",height:"400",patternUnits:"userSpaceOnUse",children:[e.jsx("image",{href:t,width:"1200",height:"400",preserveAspectRatio:"none"}),e.jsx("image",{href:t,width:"1200",height:"400",preserveAspectRatio:"none",transform:"translate(2400 0) scale(-1 1)"})]})}),e.jsx("rect",{width:"100%",height:"400",fill:`url(#${r})`})]})}export{a as AdventureScenery};
1
+ import{r as s,j as e}from"./index-EsrkGBcv.js";import{p as t}from"./adventure-habitats-v1-M1lcpTJh.js";function a(){const r=s.useId();return e.jsxs("svg",{className:"adventures__scenery",width:"100%",height:"400","aria-hidden":"true",children:[e.jsx("defs",{children:e.jsxs("pattern",{id:r,width:"2400",height:"400",patternUnits:"userSpaceOnUse",children:[e.jsx("image",{href:t,width:"1200",height:"400",preserveAspectRatio:"none"}),e.jsx("image",{href:t,width:"1200",height:"400",preserveAspectRatio:"none",transform:"translate(2400 0) scale(-1 1)"})]})}),e.jsx("rect",{width:"100%",height:"400",fill:`url(#${r})`})]})}export{a as AdventureScenery};
@@ -0,0 +1 @@
1
+ import{r,m as se,g as ne,j as e,h as ke}from"./index-EsrkGBcv.js";import{ReplayClock as be}from"./ReplayClock-348f17bW.js";import{S as _e}from"./SproutActionSprite-BSiTS4en.js";import{C as B}from"./CrewSprite-Dhryjx2c.js";import{l as ie}from"./agent-lanes-model-DMAdqCmK.js";import{o as ye}from"./lane-observe-CteDwdD-.js";import{b as L,a as O,c as we}from"./adventure-playback-DTfkhIc0.js";import{AdventureScenery as Ne}from"./AdventureScenery-LPXSVP67.js";import{AdventureReader as Se}from"./AdventureReader-X-hbTOi0.js";import{ReplayLog as Ce}from"./ReplayLog-CBnAM3ui.js";import{H as $e,A as Pe}from"./AdventureEvidence-CyegKk1V.js";import{f as H}from"./floor-preview-text-HrORUJ7D.js";/* empty css */import{c as K}from"./createLucideIcon-zZ8Hx7er.js";import{F as V}from"./flag-C4wl8z2-.js";import{W as Me}from"./wrench-DR0i5BU7.js";import{B as oe}from"./book-open-CV98WMSp.js";import{P as Te}from"./pause-C2XTlkjs.js";import{P as Ae}from"./play-FT6K3It1.js";import{R as Re}from"./radio-DRoOZsws.js";import{A as ze}from"./arrow-left-MVUKauwQ.js";import{A as ae}from"./arrow-right-Bp-FpE5V.js";/* empty css */import"./lane-ask-display-BTVSakyo.js";import"./context-budget-8qFKqM-j.js";import"./terminal-sessions-3RfJpen8.js";import"./api-DSqpVKC7.js";import"./lane-edit-display-BjdT9oZl.js";import"./tail-display-DHSNmvor.js";import"./time-Dhsh_2EG.js";import"./adventure-habitats-v1-M1lcpTJh.js";import"./index-CHD0qcfL.js";import"./TextDocumentSurface-D52m7Vd8.js";import"./chevron-right-DrfqcerI.js";import"./folder-D5prSkzz.js";import"./file-text-CnISiiw6.js";/* empty css */import"./x-DAehov0E.js";import"./terminal-hQKQygcf.js";import"./scroll-text-DNjxhyO2.js";import"./observe-BJqERJVj.js";import"./agent-state-DDhnFEEP.js";import"./surface-activity-B1rgWB1i.js";import"./Provider-C35yu29I.js";import"./theme-vars-DNK0nn3k.js";import"./provider-Dojd8quC.js";import"./router-DCtl8wqb.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./machine-scope-DJt9RZ2w.js";import"./sse-BCPRocpq.js";import"./index-BWHgHrtv.js";import"./scoutbot-Bk3nyrkj.js";import"./NewChatComposer-C97-iTMK.js";import"./runtime-picker-DXu2bOTh.js";import"./scout-voice-CZx60X6E.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-OvccU82H.js";import"./media-blobs-Bi8pxr1u.js";import"./index-724SdE6r.js";import"./HarnessMark-C4naWc16.js";import"./conversation-model-FxDeWlle.js";import"./conversations-DoAAO6kA.js";import"./colors-CFlbwC25.js";import"./NewChatOrigin-DFbF_XvR.js";import"./keyboard-nav-DDHegDbx.js";import"./chevron-down-l1mrh5S9.js";import"./search-DT42oyRW.js";import"./model-CBkMvT1w.js";import"./DocumentFocusViewer-DJr0v0D_.js";import"./chevron-up-CETZJzjV.js";import"./code-xml-BhcNbLWU.js";import"./voice-turn-ledger-BMZxlSjg.js";import"./chunk-HRAB3GC3-DbVLgbWX.js";import"./agent-lane-detail-Ti3trpfH.js";/* empty css */import"./arrow-up-right-BPedAgxO.js";const Ie=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],le=K("mail",Ie);const Le=[["path",{d:"m8 3 4 8 5-5 5 15H2L8 3z",key:"otkl63"}]],Ee=K("mountain",Le);const We=[["path",{d:"M3.5 21 14 3",key:"1szst5"}],["path",{d:"M20.5 21 10 3",key:"1310c3"}],["path",{d:"M15.5 21 12 15l-3.5 6",key:"1ddtfw"}],["path",{d:"M2 21h20",key:"1nyx9w"}]],re=K("tent",We),De={start:"Trailhead",think:"Lookout",read:"Field library",edit:"Workbench",tool:"Tool shed",message:"Post station",wait:"Waiting camp",end:"Turn complete",stopped:"Journey interrupted"};function Fe(n){const p=n.text.trim().toLowerCase();if(n.kind==="note"||n.kind==="system"||n.kind==="boot")return/^(task started|turn started|\[turn_started\])$/.test(p)?"start":/^(task complete|task completed|turn complete|turn completed|turn ended|\[turn_ended\])$/.test(p)?"end":/^(?:(?:turn|task) (?:aborted|failed|cancelled|canceled))(?:$|[ :])/.test(p)?"stopped":/\b(waiting|approval required|permission requested|blocked)\b/.test(p)?"wait":null;if(n.kind==="think")return"think";if(n.kind==="ask"||n.kind==="message")return"message";const c=n.tool?.toLowerCase()??"";return/wait|sleep|request_user_input/.test(c)?"wait":n.diff||/(?:^|[._/])(?:edit|write|write_file|edit_file|apply_patch|multiedit|str_replace_editor)$/.test(c)?"edit":/read|search|find|open|view|fetch/.test(c)?"read":n.kind==="tool"?"tool":null}function Je(n,p){const c=new Set,x=(n.observe?.events??[]).flatMap(o=>{const b=ye(o,n.observe?.metadata?.session?.sessionStart),v=Fe(o);return b===null||b>p||!v||c.has(o.id)?[]:(c.add(o.id),[{id:`${n.id}:${o.id}`,event:o,at:b,kind:v,label:De[v],artifact:o.arg||o.tool||o.text}])}).sort((o,b)=>o.at-b.at),m=[];let k;for(const o of x)(!k||o.kind==="start"||k.closed)&&(k={id:o.id,stops:[],partial:o.kind!=="start",closed:!1},m.push(k)),k.stops.push(o),k.closed=o.kind==="end"||o.kind==="stopped";return m}function I(n,p){if(p==="continuous")return null;const c=n.event.result?.exit_code??n.event.result?.exitCode,x=typeof c=="number"?c:typeof c=="string"&&/^-?\d+$/.test(c)?Number(c):null;if(x!==null&&x!==0)return`Command needs attention · exit ${x}`;if(n.kind==="stopped")return"Journey interrupted";if(n.kind==="wait")return"Waiting for input";if(p==="problems")return null;if(n.kind==="end")return"Turn complete";if(p==="all")return L(n).checkpoint?L(n).label:null;const m=O(n);return m&&x!==null&&we(m)?"Validation result ready":null}const qe={start:V,think:Ee,read:oe,edit:$e,tool:Me,message:le,wait:re,end:V,stopped:re},M=n=>new Date(n).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),w=218;function gs({lanes:n,now:p,onActor:c}){const[x,m]=r.useState(null),[k,o]=r.useState(n[0]?.id??""),[b,v]=r.useState(null),[de,_]=r.useState(0),[ce,He]=r.useState(!0),[ue,Oe]=r.useState(!0),[Ve,Ke]=r.useState(!1),[U,Ue]=r.useState(!1),[f,Ye]=r.useState(!1),[u,h]=r.useState(!0),[j,pe]=r.useState(1),[E,T]=r.useState("rest"),[S,Y]=r.useState("results"),[me,A]=r.useState(null),[C,he]=r.useState(!document.hidden);r.useEffect(()=>{const t=()=>he(!document.hidden);return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)},[]);const R=r.useRef(null),l=n.find(t=>t.id===k)??n[0],W=r.useMemo(()=>l?Je(l,p):[],[l,p]),g=W.find(t=>t.id===b)??W.at(-1),a=g?.stops??[],i=Math.min(de??a.length-1,a.length-1),s=a[i],Z=l?se(l.agent.name)??ne(l.id):"sprout",D=s?.event.to?n.find(t=>[t.id,t.agent.id,t.agent.name,t.agent.handle].includes(s.event.to)):void 0;ce&&l&&n.filter(t=>t.id!==l.id&&!!l.agent.project&&t.agent.project===l.agent.project).slice(0,4);const G=b===null,y=s?L(s):null,F=s?I(s,S):null,Q=a.findIndex((t,d)=>d>i&&I(t,S==="continuous"?"results":S)),$=!!(u&&F&&me!==s?.id),J=$||!u&&!!s,P=u&&!$;r.useEffect(()=>{if(!u||f||!C||!s){T("rest");return}T("travel");const t=window.setTimeout(()=>T(y?.routine?"land":"rest"),700/j),d=window.setTimeout(()=>T("rest"),960/j);return()=>{window.clearTimeout(t),window.clearTimeout(d)}},[s?.id,u,f,C,j]);const xe=E==="travel"?y?.routine?"jump":"run":E==="land"?"land":"idle",X=s?O(s):null,ee=s?.event.result?.exit_code??s?.event.result?.exitCode,ve=ee!==void 0?`Process exited with code ${ee}`:s?.event.live?"Command is still running":"Inspect the observed command and collected evidence below",q=ue&&!U;r.useEffect(()=>{_(0),A(null)},[l?.id,g?.id]),r.useEffect(()=>{if(!C||!P||!s||i>=a.length-1)return;const t=window.setTimeout(()=>{document.hidden||_(i+1)},Math.max(1e3,y?.durationMs??1600)/j);return()=>window.clearTimeout(t)},[C,P,s?.id,i,a.length,y?.durationMs,j]),r.useEffect(()=>{!R.current||i<0||R.current.scrollTo({left:Math.max(0,150+i*w-R.current.clientWidth*.5),behavior:u&&!f&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches?"smooth":"auto"})},[i,l?.id,g?.id]);const fe=t=>{o(t),v(null),_(0),h(!0)},N=t=>{h(!1),v(g?.id??null),_(Math.max(0,Math.min(a.length-1,t)))},te=()=>{h(!u),u||A(s?.id??null)},je=$?"Checkpoint":u?i>=a.length-1?g?.closed?"Journey complete":"Following live":"Playing journey":"Paused for review";return e.jsxs("section",{onKeyDown:t=>{t.code==="Space"&&!t.target.closest("button,input,select,textarea,summary,[contenteditable=true]")&&(t.preventDefault(),te())},className:`adventures${J?" is-reviewing":""}${f||!u?" is-paused":""}`,"aria-label":"Agent Replay",onPointerDown:t=>t.stopPropagation(),onWheel:t=>t.stopPropagation(),children:[e.jsx("div",{className:"adventures__scene",ref:R,tabIndex:0,"aria-label":"Replay landscape, follows the seek position",children:e.jsxs("div",{className:"adventures__landscape",style:{width:Math.max(1e3,a.length*w+450)},children:[e.jsx(Ne,{}),e.jsx("div",{className:"adventures__trail","aria-hidden":"true"}),a.length?null:e.jsxs("div",{className:"adventures__empty",children:[e.jsx(B,{slug:"sprout",size:120,paused:f}),e.jsx("h3",{children:"The trail is quiet."}),e.jsx("p",{children:n.length?"No journey observations are available for this agent. Choose another agent or keep watching.":"Your crew will appear when agent activity arrives."})]}),a.map((t,d)=>{const ge=qe[t.kind],z=L(t);return e.jsxs("button",{type:"button",className:`adventures__stop adventures__stop--${t.kind}${z.checkpoint?" is-checkpoint":z.routine?" is-routine":""}${d===i?" is-current":""}${d>i?" is-ahead":""}`,style:{left:150+d*w},onClick:()=>N(d),"aria-label":`${t.label}, ${M(t.at)}`,"aria-pressed":d===i,children:[e.jsx("span",{className:"adventures__stop-title",children:z.checkpoint?z.label:t.label}),e.jsxs("span",{className:"adventures__prop",children:[e.jsx(ge,{size:36,strokeWidth:1.5}),t.kind==="edit"?e.jsx("span",{className:"adventures__sparks"}):null]}),e.jsx("span",{className:"adventures__artifact",children:H(O(t)??t.artifact).slice(0,100)}),e.jsx("time",{children:M(t.at)})]},t.id)}),s&&l?e.jsxs("div",{className:`adventures__traveler adventures__traveler--${s.kind}${q?" has-action-sprite":""}${y?.checkpoint?" is-checkpoint":""}${y?.routine&&E==="travel"?" is-hopping":""}`,style:{left:112+i*w,transitionDuration:`${700/j}ms`},children:[s.kind==="think"?e.jsx("span",{className:"adventures__thought",children:"Thinking"}):null,e.jsx("button",{type:"button",onClick:()=>{h(!1),c(l)},"aria-label":`Inspect ${ie(l.agent,l.source)}`,children:e.jsx(e.Fragment,{children:q?e.jsx(_e,{action:xe,playbackRate:j,size:128,paused:f||!u}):e.jsx(B,{slug:Z,size:112,pixel:U&&ke(Z),paused:f||!P,expression:J?"look-right":Be(s.kind)})})},s.id),e.jsx("span",{className:"adventures__shadow"}),s.kind!=="think"?e.jsxs("span",{className:"adventures__action-caption",children:[e.jsx("strong",{children:s.event.tool||(s.kind==="message"?"Message":s.kind==="end"?"Turn complete":s.kind==="wait"?"Waiting":s.label)}),s.event.tool?e.jsx("small",{children:H(X||s.event.arg).slice(0,90)}):null]}):null]}):null,s&&J?e.jsxs("button",{type:"button",className:"adventures__world-artifact",style:{left:252+i*w},onClick:()=>{h(!1),m({path:null})},"aria-label":"Inspect current artifact",children:[e.jsxs("span",{className:"adventures__artifact-sheet",children:[e.jsx(oe,{size:23}),e.jsx("strong",{children:F||s.label}),e.jsx("span",{children:H(X||s.artifact).slice(0,110)}),e.jsx("small",{children:"Inspect artifact ↗"})]}),e.jsx("span",{className:"adventures__artifact-stand"})]}):null,s?.event.to?e.jsxs("div",{className:"adventures__handoff",style:{left:218+i*w},children:[e.jsx(le,{size:20}),e.jsxs("span",{children:["Message to ",s.event.to]}),D?e.jsx(B,{slug:se(D.agent.name)??ne(D.id),size:70,paused:f||!P}):null]}):null,s?e.jsxs("div",{className:"adventures__frontier",style:{left:240+a.length*w},children:[e.jsx("span",{children:g?.closed?"Until the next turn":"Uncharted"}),e.jsx("small",{children:g?.closed?"This journey has ended.":"The next step is not known yet."})]}):null]})}),e.jsxs("div",{className:"adventures__console",children:[e.jsxs("details",{className:"replay-selection",children:[e.jsx("summary",{children:"Choose agent / journey"}),e.jsxs("div",{className:"adventures__navigation",children:[e.jsxs("label",{children:[q?"Sprout follows":"Follow",e.jsx("select",{"aria-label":"Follow agent",value:l?.id??"",onChange:t=>fe(t.target.value),children:n.map(t=>e.jsxs("option",{value:t.id,children:[ie(t.agent,t.source)," · ",t.id.slice(-5)]},t.id))})]}),e.jsxs("label",{children:["Journey",e.jsx("select",{"aria-label":"Select journey",value:g?.id??"",onChange:t=>{v(t.target.value),_(0),h(!0)},children:W.map((t,d)=>e.jsxs("option",{value:t.id,children:[d+1," · ",M(t.stops[0].at)," · ",t.closed?t.stops.at(-1).label:"end not observed"]},t.id))})]})]})]}),e.jsxs("div",{className:"adventures__transport",children:[e.jsxs("div",{className:"adventures__recording-clock",children:[e.jsx(be,{at:s?.at??0,nextAt:a[i+1]?.at??s?.at??0,start:a[0]?.at??0,duration:Math.max(1e3,y?.durationMs??1600)/j,running:C&&P&&!f}),e.jsx("span",{className:"adventures__clock-divider","aria-hidden":"true"}),s?e.jsx("time",{dateTime:new Date(s.at).toISOString(),children:new Date(s.at).toLocaleString([],{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"})}):e.jsx("span",{children:"No recorded timestamp"})]}),e.jsxs("div",{className:"adventures__transport-top",children:[e.jsxs("button",{type:"button",className:"adventures__play-button",title:"Play or pause · Space","aria-label":u?"Pause journey":"Play journey",onClick:te,children:[u?e.jsx(Te,{size:17}):e.jsx(Ae,{size:17}),e.jsx("span",{children:u?"Pause":"Play"})]}),e.jsxs("span",{className:`adventures__transport-status${$?" is-checkpoint":""}`,role:"status",children:[e.jsx("i",{}),je]}),e.jsxs("label",{className:"adventures__speed",children:[e.jsx("span",{children:"Speed"}),e.jsxs("select",{"aria-label":"Playback pace",value:j,onChange:t=>pe(Number(t.target.value)),children:[e.jsx("option",{value:.75,children:"0.75×"}),e.jsx("option",{value:1,children:"1×"}),e.jsx("option",{value:1.5,children:"1.5×"})]})]}),e.jsxs("select",{className:"adventures__checkpoint-mode","aria-label":"Checkpoint behavior",value:S,onChange:t=>Y(t.target.value),children:[e.jsx("option",{value:"results",children:"Review results"}),e.jsx("option",{value:"all",children:"Every checkpoint"}),e.jsx("option",{value:"problems",children:"Only problems"}),e.jsx("option",{value:"continuous",children:"Play straight through"})]})]}),e.jsxs("button",{className:"adventures__next-review",type:"button",disabled:Q<0,onClick:()=>{v(g?.id??null),_(Q),h(!0),A(null),S==="continuous"&&Y("results")},children:[e.jsx(V,{size:12})," Next review point"]}),e.jsxs("div",{className:"adventures__playhead",children:[e.jsxs("button",{type:"button",className:G?"is-live":"","aria-pressed":G,onClick:()=>{v(null),_(null),h(!0)},children:[e.jsx(Re,{size:14})," Live edge"]}),e.jsx("button",{type:"button","aria-label":"Previous observation",disabled:i<=0,onClick:()=>N(i-1),children:e.jsx(ze,{size:15})}),e.jsxs("div",{className:"adventures__seek-track",children:[e.jsx("input",{type:"range","aria-label":"Journey observation",min:0,max:Math.max(0,a.length-1),value:Math.max(0,i),disabled:!a.length,onChange:t=>N(Number(t.target.value))}),e.jsx("div",{className:"adventures__seek-markers",children:a.map((t,d)=>I(t,"all")?e.jsx("button",{type:"button",style:{left:`${a.length>1?d/(a.length-1)*100:0}%`},className:d<=i?"is-visited":"","aria-label":`Seek to ${I(t,"all")} at ${M(t.at)}`,title:`${t.label} · ${M(t.at)}`,onClick:()=>N(d)},t.id):null)})]}),e.jsx("button",{type:"button","aria-label":"Next observation",disabled:i>=a.length-1,onClick:()=>N(i+1),children:e.jsx(ae,{size:15})}),e.jsx("span",{children:a.length?`${i+1} / ${a.length}`:"No observations"})]}),$?e.jsxs("div",{className:"adventures__checkpoint-review",children:[e.jsxs("div",{children:[e.jsx("strong",{children:F}),e.jsx("small",{children:ve})]}),e.jsxs("button",{type:"button",onClick:()=>A(s?.id??null),children:["Continue ",e.jsx(ae,{size:14})]})]}):null]}),e.jsx(Ce,{stops:a,index:i,onInspect:t=>{N(t),m({path:null})}}),l?e.jsx("div",{onClickCapture:()=>h(!1),children:e.jsx(Pe,{stops:a,index:i,lane:l,onFile:t=>{h(!1),m({path:t})}})}):null]}),x?e.jsx(Se,{stop:s,path:x.path,onClose:()=>m(null),onPath:t=>m({path:t})}):null]})}function Be(n){return n==="think"?"look-up":n==="message"?"look-left":"look-right"}export{gs as AgentAdventures};
@@ -0,0 +1 @@
1
+ import{j as i,C as Z,h as q,f as B,m as h,g as D}from"./index-EsrkGBcv.js";import{d as G}from"./Provider-C35yu29I.js";import{a as J,S as K}from"./SpriteAvatar-CpZWf54-.js";import{C as Q}from"./CrewAvatar-kTznzqcO.js";import{s as U}from"./colors-CFlbwC25.js";import{i as X,d as Y}from"./agent-state-DDhnFEEP.js";const R={hero:{tile:!1,presence:!1,glow:!0},inspector:{sizes:{compact:32,regular:40,large:52},tile:!0,presence:!0},row:{sizes:{compact:20,regular:24,large:32},tile:!0,presence:!0},turn:{tile:!1,presence:!1},list:{tile:!1,presence:!1},roster:{tile:!1,presence:!1},node:{sizes:{compact:14,regular:16,large:20},tile:!1,presence:!1}},$={compact:.85,regular:1,large:1.25};function ie(e,r){return R[e].sizes?.[r]}function ee(e,r){if(r==="regular")return e;const t=Math.round(e*$[r]);return r==="compact"?Math.max(20,Math.min(e,t)):t}function re(e,r){const{agent:t,slug:c}=r,a=t?.name??r.name??"?",v=e?.operatorName||e?.onboarding?.operatorName?.trim()||e?.onboarding?.operatorNameSuggestion?.trim()||"operator",p=a.toLowerCase()==="operator"||a.toLowerCase()==="you"||a.toLowerCase()===v.toLowerCase()||a.toLowerCase()==="art",d=e?.appearanceDetails?.operatorCharacter||"milo",u=p?void 0:B(e?.appearanceDetails?.agentCharacters,{id:t?.id,name:a},e?.agents??[]);return{castSlug:c?h(c)??D(c):p?h(d)??D(d):h(u)??h(t?.slug||a),isOperator:p}}function ce({agent:e,name:r,slug:t,avatarStyle:c,project:a,harness:v,state:p,kind:d="agent",placement:u="row",size:C,scaleWithPreference:I=!0,presence:A,tile:M,gaze:O,pose:P,salt:T,className:s,channelClassName:_,style:n,title:g}){const o=e?.name??r??"?";if(d==="channel")return i.jsx("span",{className:_??s,style:n,title:g??o,children:"#"});const w=G(),{castSlug:f,isOperator:k}=re(w,{agent:e,name:r,slug:t}),S=c??w?.appearanceDetails?.avatarStyle??"crew",y=f!=null&&Z[f]!=null&&(S!=="chip"||q(f)),l=R[u],b=I?w?.appearanceDetails?.avatarSize??"regular":"regular",m=C!=null?ee(C,b):l.sizes?.[b];if(S!=="sprite"&&y&&f){const E=v??e?.harness??void 0,V=p??e?.state??null,W=a??e?.project??"openscout",x=i.jsx(Q,{slug:f,name:o,project:W,harness:E,state:V,size:m,badge:E?A??l.presence:!1,ring:A??(u==="hero"||u==="turn"?!1:l.presence),chip:S==="chip",glow:l.glow,gaze:O,pose:P,title:g??o});return m==null?i.jsx("span",{className:s,style:{background:"transparent",overflow:"visible",display:"inline-grid",placeItems:"center",...n},title:g??o,children:x}):s||n?i.jsx("span",{className:s,style:{display:"inline-grid",placeItems:"center",...n},children:x}):x}const L=e?J(e):null,z=A??l.presence,F=X(e?.state??null),H=z&&F?U(e?.state??null):void 0,N=z&&Y(e?.state??null),j=i.jsx(K,{name:o,size:m,hue:L?.hue,tone:L?.tone,salt:T,tile:M??l.tile,glow:l.glow,corner:H,cornerPulse:N,title:g??o});return m==null?i.jsx("span",{className:s,style:{background:"transparent",overflow:"visible",...n},title:g??o,children:j}):s||n?i.jsx("span",{className:s,style:n,children:j}):j}export{ce as A,re as c,ie as p};
@@ -0,0 +1 @@
1
+ import{r as t,j as s,f as W,J as V}from"./index-EsrkGBcv.js";import{E as J}from"./EmptyState-CZlrHXy-.js";import{C as Y}from"./CastPicker-BXUtPAGC.js";import{a as I}from"./api-DSqpVKC7.js";import{h as F}from"./NewChatComposer-C97-iTMK.js";import{d as G}from"./time-Dhsh_2EG.js";import{u as L}from"./Provider-C35yu29I.js";import{o as Q}from"./openContent-C6XO6kr5.js";import{AgentsSubnav as X}from"./AgentsSubnav-DwNX4yy0.js";/* empty css */import{R as Z}from"./refresh-cw-BmVr7sCD.js";import{S as ss}from"./settings-BVh7kldq.js";import{c as H}from"./createLucideIcon-zZ8Hx7er.js";import{B as _}from"./bot-B4zLQ4IN.js";import{W as es}from"./wrench-DR0i5BU7.js";import{S as as}from"./server-QfsgMLk1.js";import{C as ns}from"./cpu-BOTa_WLr.js";import"./CrewAvatar-kTznzqcO.js";import"./HarnessMark-C4naWc16.js";import"./runtime-picker-DXu2bOTh.js";import"./scout-voice-CZx60X6E.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-OvccU82H.js";import"./router-DCtl8wqb.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-3RfJpen8.js";import"./check-lrJ3a73a.js";import"./media-blobs-Bi8pxr1u.js";import"./index-724SdE6r.js";import"./conversation-model-FxDeWlle.js";import"./agent-state-DDhnFEEP.js";import"./conversations-DoAAO6kA.js";import"./colors-CFlbwC25.js";import"./NewChatOrigin-DFbF_XvR.js";import"./keyboard-nav-DDHegDbx.js";import"./x-DAehov0E.js";import"./chevron-down-l1mrh5S9.js";import"./search-DT42oyRW.js";import"./file-text-CnISiiw6.js";import"./theme-vars-DNK0nn3k.js";import"./provider-Dojd8quC.js";import"./machine-scope-DJt9RZ2w.js";import"./sse-BCPRocpq.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-Bk3nyrkj.js";import"./model-CBkMvT1w.js";import"./DocumentFocusViewer-DJr0v0D_.js";import"./TextDocumentSurface-D52m7Vd8.js";import"./index-CHD0qcfL.js";import"./chevron-right-DrfqcerI.js";import"./folder-D5prSkzz.js";import"./chevron-up-CETZJzjV.js";import"./code-xml-BhcNbLWU.js";import"./arrow-left-MVUKauwQ.js";import"./arrow-right-Bp-FpE5V.js";import"./voice-turn-ledger-BMZxlSjg.js";import"./chunk-HRAB3GC3-DbVLgbWX.js";import"./SecondaryNav-D7dbV2qo.js";import"./secondaryNavConfig-CS1svh6n.js";import"./nav-destinations-uorRqFxf.js";import"./message-square-BxesYglW.js";import"./terminal-hQKQygcf.js";import"./compass-63TUaz5_.js";import"./git-branch-B0_fPLO7.js";import"./scroll-text-DNjxhyO2.js";const is=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],K=H("key-round",is);const ts=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],cs=H("save",ts);function A(e){switch(e){case"ready":case"running":case"available":case"enabled":return"sys-chip-success";case"configured":case"installed":case"working":return"sys-chip-warning";case"missing":case"offline":case"not_ready":case"error":return"sys-chip-danger";default:return"sys-chip-neutral"}}function $(e){switch(e){case"available":case"ready":return"ready";case"offline":case"not_ready":return"not ready";default:return e}}function M(e){return e?e.replace(/^\/Users\/[^/]+/,"~"):"Not reported"}function rs(e){return e.length>0?e.join(", "):"No capabilities reported"}function ls({runtime:e}){return s.jsxs("div",{className:"agent-config-row",children:[s.jsxs("div",{className:"agent-config-row-main",children:[s.jsx("span",{className:"agent-config-icon",children:s.jsx(ns,{size:14})}),s.jsxs("div",{className:"agent-config-row-copy",children:[s.jsx("div",{className:"agent-config-row-title",children:e.label}),s.jsx("div",{className:"agent-config-row-detail",children:e.description}),s.jsx("div",{className:"agent-config-row-meta",children:e.detail})]})]}),s.jsxs("div",{className:"agent-config-row-side",children:[s.jsx("span",{className:`sys-chip ${A(e.state)}`,children:e.state}),s.jsx("span",{className:"agent-config-row-meta",children:e.binaryPath??e.loginCommand??e.source})]})]})}function os({provider:e}){return s.jsxs("div",{className:"agent-config-row",children:[s.jsxs("div",{className:"agent-config-row-main",children:[s.jsx("span",{className:"agent-config-icon",children:s.jsx(K,{size:14})}),s.jsxs("div",{className:"agent-config-row-copy",children:[s.jsx("div",{className:"agent-config-row-title",children:e.name}),s.jsx("div",{className:"agent-config-row-detail",children:e.protocol}),s.jsx("code",{className:"agent-config-code",children:e.baseUrl}),s.jsxs("div",{className:"agent-config-row-meta",children:["Keys: ",e.envKeys.join(", ")]}),s.jsx("div",{className:"agent-config-row-meta",children:e.note})]})]}),s.jsxs("div",{className:"agent-config-row-side",children:[s.jsx("span",{className:`sys-chip ${A(e.status)}`,children:e.status}),s.jsx("a",{className:"agent-config-link",href:e.docsUrl,target:"_blank",rel:"noreferrer",children:"Docs"})]})]})}function ds({agent:e,selected:o,navigate:g}){return s.jsxs("button",{type:"button",className:`agent-config-row agent-config-row-button${o?" agent-config-row-selected":""}`,onClick:()=>g({view:"agents-v2",agentId:e.id,tab:"config"}),children:[s.jsxs("div",{className:"agent-config-row-main",children:[s.jsx("span",{className:"agent-config-icon",children:s.jsx(_,{size:14})}),s.jsxs("div",{className:"agent-config-row-copy",children:[s.jsx("div",{className:"agent-config-row-title",children:e.name}),s.jsx("div",{className:"agent-config-row-detail",children:e.id}),s.jsxs("div",{className:"agent-config-row-meta",children:[e.harness??"unknown harness"," / ",e.transport??"unknown transport",e.model?` / ${e.model}`:""]})]})]}),s.jsxs("div",{className:"agent-config-row-side",children:[s.jsx("span",{className:`sys-chip ${A(e.status)}`,children:$(e.status)}),s.jsx("span",{className:"agent-config-row-meta",children:M(e.projectRoot??e.cwd)})]})]})}function B(e,o,g,n,N){o(e),g(e.model??""),n(e.runtime.cwd),N(e.runtime.harness)}function ms({agent:e,agents:o,navigate:g,onConfigSaved:n}){const{route:N,appearanceDetails:y,updateAppearanceDetails:b}=L(),h=e?.id??null,x=e?W(y.agentCharacters,e,o):void 0,[c,f]=t.useState(null),[d,p]=t.useState(!1),[j,m]=t.useState(null),[w,a]=t.useState(""),[v,l]=t.useState(""),[C,S]=t.useState(""),[z,E]=t.useState(!1),[u,T]=t.useState("idle"),[O,D]=t.useState(null),k=t.useRef(0),P=t.useCallback(async()=>{const i=++k.current;if(D(null),E(!1),!h){f(null),m(null),p(!1);return}p(!0),m(null);try{const r=await I(`/api/agents/${encodeURIComponent(h)}/config`);if(i!==k.current)return;B(r,f,a,l,S)}catch(r){if(i!==k.current)return;f(null),a(""),l(""),S(e?.harness??""),m(r instanceof Error?r.message:String(r))}finally{i===k.current&&p(!1)}},[e?.harness,h]);t.useEffect(()=>{P()},[P]);const U=t.useMemo(()=>{const i=["claude","codex","pi",c?.runtime.harness,e?.harness,C].filter(r=>!!r?.trim());return Array.from(new Set(i))},[e?.harness,c?.runtime.harness,C]),q=async i=>{if(i.preventDefault(),!(!h||!c||u==="saving")){T("saving"),D(null),m(null);try{const r=await I(`/api/agents/${encodeURIComponent(h)}/config`,{method:"POST",body:JSON.stringify({model:w.trim()||null,runtime:{cwd:v.trim()||c.runtime.cwd,harness:C.trim()||c.runtime.harness},restart:z})});B(r.config,f,a,l,S),E(!1),D(r.restarted?"Saved and restarted":"Saved"),n?.()}catch(r){m(r instanceof Error?r.message:String(r))}finally{T("idle")}}};return e?s.jsxs("div",{className:"sys-panel agent-config-detail-panel",children:[s.jsxs("div",{className:"sys-section-head",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"sys-section-title",children:e.name}),s.jsx("p",{className:"sys-section-subtitle",children:e.id})]}),s.jsxs("div",{className:"sys-page-actions",children:[s.jsx("button",{type:"button",className:"s-btn",onClick:()=>g({view:"agents-v2",agentId:e.id}),children:"Open Agent"}),s.jsx("button",{type:"button",className:"s-btn",onClick:()=>{F(e).then(i=>{Q(g,{view:"conversation",conversationId:i},{returnTo:N})})},children:"Open Chat"})]})]}),s.jsxs("div",{className:"agent-config-detail-grid",children:[s.jsxs("div",{children:[s.jsx("span",{className:"agent-config-label",children:"Status"}),s.jsx("span",{className:`sys-chip ${A(e.status)}`,children:$(e.status)})]}),s.jsxs("div",{children:[s.jsx("span",{className:"agent-config-label",children:"Harness"}),s.jsx("strong",{className:"agent-config-selectable",children:e.harness??"Not reported"})]}),s.jsxs("div",{children:[s.jsx("span",{className:"agent-config-label",children:"Transport"}),s.jsx("strong",{className:"agent-config-selectable",children:e.transport??"Not reported"})]}),s.jsxs("div",{children:[s.jsx("span",{className:"agent-config-label",children:"Reported model"}),s.jsx("strong",{className:"agent-config-selectable",children:e.model??"Not reported"})]}),s.jsxs("div",{children:[s.jsx("span",{className:"agent-config-label",children:"Configured model"}),s.jsx("strong",{className:"agent-config-selectable",children:d?"Loading...":c?c.model??"Harness default":"Not editable"})]}),s.jsxs("div",{className:"agent-config-detail-wide",children:[s.jsx("span",{className:"agent-config-label",children:"Project"}),s.jsx("code",{className:"agent-config-inline-code",title:e.projectRoot??void 0,children:M(e.projectRoot)})]}),s.jsxs("div",{className:"agent-config-detail-wide",children:[s.jsx("span",{className:"agent-config-label",children:"Working dir"}),s.jsx("code",{className:"agent-config-inline-code",title:e.cwd??c?.runtime.cwd??void 0,children:M(e.cwd??c?.runtime.cwd??null)})]}),s.jsxs("div",{className:"agent-config-detail-wide",children:[s.jsx("span",{className:"agent-config-label",children:"Capabilities"}),s.jsx("span",{className:"agent-config-selectable",children:rs(e.capabilities)})]}),s.jsxs("div",{className:"agent-config-detail-wide",children:[s.jsx("span",{className:"agent-config-label",children:"Character"}),x?s.jsx("span",{className:"sys-chip sys-chip-neutral",children:x}):s.jsx("span",{className:"agent-config-selectable",children:"Generative sprite"})]})]}),s.jsx("div",{className:"agent-config-cast",children:s.jsx(Y,{selectedSlug:x,onSelect:i=>{const r=V(y.agentCharacters,o),R={...r.byId};R[e.id]===i?delete R[e.id]:R[e.id]=i,b({agentCharacters:{...r,byId:R}})}})}),d&&s.jsx("div",{className:"agent-config-edit agent-config-edit-empty",children:s.jsx("span",{className:"agent-config-save-note",children:"Loading editable launch config..."})}),!d&&c&&s.jsxs("form",{className:"agent-config-edit",onSubmit:q,children:[s.jsxs("div",{className:"agent-config-edit-grid",children:[s.jsxs("label",{className:"agent-config-field",children:[s.jsx("span",{children:"Model"}),s.jsx("input",{name:"model",value:w,placeholder:"Harness default",disabled:!c.editable||u==="saving",onChange:i=>a(i.currentTarget.value)})]}),s.jsxs("label",{className:"agent-config-field",children:[s.jsx("span",{children:"Harness"}),s.jsx("select",{name:"harness",value:C,disabled:!c.editable||u==="saving",onChange:i=>S(i.currentTarget.value),children:U.map(i=>s.jsx("option",{value:i,children:i},i))})]}),s.jsxs("label",{className:"agent-config-field agent-config-field-wide",children:[s.jsx("span",{children:"Working dir"}),s.jsx("input",{name:"cwd",value:v,disabled:!c.editable||u==="saving",onChange:i=>l(i.currentTarget.value)})]})]}),s.jsxs("div",{className:"agent-config-save-row",children:[s.jsxs("label",{className:"agent-config-check",children:[s.jsx("input",{type:"checkbox",checked:z,disabled:!c.editable||u==="saving",onChange:i=>E(i.currentTarget.checked)}),s.jsx("span",{children:"Restart after saving"})]}),s.jsxs("button",{type:"submit",className:"s-btn",disabled:!c.editable||u==="saving",children:[s.jsx(cs,{size:13}),u==="saving"?"Saving...":"Save config"]}),O&&s.jsx("span",{className:"agent-config-save-note",children:O}),j&&s.jsx("span",{className:"agent-config-save-error",children:j})]})]}),!d&&!c&&s.jsx("div",{className:"agent-config-edit agent-config-edit-empty",children:s.jsx("span",{className:"agent-config-save-error",children:j??"No editable local config found"})})]}):s.jsxs("div",{className:"sys-panel agent-config-detail-panel",children:[s.jsx("div",{className:"sys-section-head",children:s.jsxs("div",{children:[s.jsx("h3",{className:"sys-section-title",children:"Agent Details"}),s.jsx("p",{className:"sys-section-subtitle",children:"Select an agent to inspect runtime, model, and tool context."})]})}),s.jsxs("div",{className:"sys-list-empty",children:[s.jsx("h3",{children:"No agent selected"}),s.jsx("p",{children:"Choose an agent from the configuration roster."})]})]})}function Se({navigate:e,selectedAgentId:o}){const{route:g}=L(),[n,N]=t.useState(null),[y,b]=t.useState(!0),[h,x]=t.useState(!1),[c,f]=t.useState(null),d=t.useRef(0),p=t.useCallback(async(a="initial")=>{const v=++d.current;a==="initial"?b(!0):x(!0),f(null);try{const l=await I("/api/agent-config/snapshot");if(v!==d.current)return;N(l)}catch(l){if(v!==d.current)return;f(l instanceof Error?l.message:String(l))}finally{v===d.current&&(b(!1),x(!1))}},[]);t.useEffect(()=>{p()},[p]);const j=t.useMemo(()=>n?n.agents.find(a=>a.id===o)??n.agents[0]??null:null,[o,n]),m=n?.providers??[],w=n?[{label:"Runtimes",value:String(n.runtimes.length),detail:`${n.runtimes.filter(a=>a.state==="ready").length} ready`},{label:"BYOK",value:String(m.length),detail:`${m.filter(a=>a.status==="configured").length} configured`},{label:"Agents",value:String(n.agents.length),detail:`${n.agents.filter(a=>$(a.status)!=="not ready").length} ready`},{label:"Broker",value:n.broker.label,detail:n.broker.nodeId??"No node id"}]:[];return s.jsxs("div",{className:"s-secondary-nav-shell",children:[s.jsx("div",{className:"s-secondary-nav-bar",children:s.jsx(X,{activeRoute:g,navigate:e})}),s.jsx("div",{className:"s-secondary-nav-body s-secondary-nav-body--scroll",children:s.jsxs("div",{className:"sys-surface-page sys-surface-page-wide",children:[s.jsxs("div",{className:"sys-page-head",children:[s.jsxs("div",{className:"sys-page-title-group",children:[s.jsx("h2",{className:"sys-page-title",children:"Agent Configuration"}),s.jsx("p",{className:"sys-page-subtitle",children:"Runtimes, agents, project inventory, delivery bridges, and the missing tool/provider surfaces in one control plane."})]}),s.jsxs("div",{className:"sys-page-actions",children:[n&&s.jsxs("div",{className:"sys-sync-note",children:["Updated ",G(n.generatedAt)||"unknown"]}),s.jsxs("button",{type:"button",className:"s-btn",disabled:y||h,onClick:()=>{p("manual")},children:[s.jsx(Z,{size:13}),h?"Refreshing...":"Refresh"]})]})]}),n&&s.jsx("div",{className:"sys-stat-grid",children:w.map(a=>s.jsxs("div",{className:"sys-stat-card",children:[s.jsx("span",{className:"sys-stat-label",children:a.label}),s.jsx("strong",{className:"sys-stat-value",children:a.value}),s.jsx("span",{className:"sys-stat-detail",children:a.detail})]},a.label))}),c&&s.jsxs("div",{className:"sys-banner sys-banner-warning",children:[s.jsx("strong",{children:"Configuration snapshot failed."}),s.jsx("span",{children:c})]}),y&&!n&&s.jsx(J,{title:"Loading configuration",body:"Reading Scout settings, runtime readiness, broker agents, and project inventory."}),n&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"agent-config-layout",children:[s.jsxs("div",{className:"sys-panel",children:[s.jsxs("div",{className:"sys-section-head",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"sys-section-title",children:"Runtimes"}),s.jsx("p",{className:"sys-section-subtitle",children:"Harness readiness replaces provider auth for the current local-first posture."})]}),s.jsx(ss,{size:15})]}),s.jsx("div",{className:"agent-config-list",children:n.runtimes.map(a=>s.jsx(ls,{runtime:a},a.id))})]}),s.jsxs("div",{className:"sys-panel",children:[s.jsxs("div",{className:"sys-section-head",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"sys-section-title",children:"BYOK Providers"}),s.jsx("p",{className:"sys-section-subtitle",children:"OpenAI-compatible vendors OpenScout can discover from local environment configuration."})]}),s.jsx(K,{size:15})]}),s.jsx("div",{className:"agent-config-list",children:m.map(a=>s.jsx(os,{provider:a},a.id))})]})]}),s.jsxs("div",{className:"agent-config-layout agent-config-layout-primary",children:[s.jsxs("div",{className:"sys-panel",children:[s.jsxs("div",{className:"sys-section-head",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"sys-section-title",children:"Agents"}),s.jsx("p",{className:"sys-section-subtitle",children:"Broker-visible endpoints with runtime, model, and source state."})]}),s.jsx(_,{size:15})]}),s.jsx("div",{className:"agent-config-list agent-config-list-scroll",children:n.agents.length===0?s.jsxs("div",{className:"sys-list-empty",children:[s.jsx("h3",{children:"No agents registered"}),s.jsx("p",{children:"Run setup or start a local agent to populate this roster."})]}):n.agents.map(a=>s.jsx(ds,{agent:a,selected:a.id===j?.id,navigate:e},a.id))})]}),s.jsx(ms,{agent:j,agents:n.agents,navigate:e,onConfigSaved:()=>{p("manual")}})]}),s.jsxs("div",{className:"agent-config-layout",children:[s.jsxs("div",{className:"sys-panel",children:[s.jsxs("div",{className:"sys-section-head",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"sys-section-title",children:"Tools & Context"}),s.jsx("p",{className:"sys-section-subtitle",children:"The next model boundary to make first-class."})]}),s.jsx(es,{size:15})]}),s.jsx("p",{className:"agent-config-copy",children:n.toolContext.note}),s.jsxs("div",{className:"agent-config-chip-row",children:[s.jsxs("span",{className:"sys-chip sys-chip-neutral",children:[n.toolContext.mcpServerCount," MCP servers"]}),s.jsx("span",{className:"sys-chip sys-chip-warning",children:"loadouts pending"})]})]}),s.jsxs("div",{className:"sys-panel",children:[s.jsxs("div",{className:"sys-section-head",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"sys-section-title",children:"Broker & Delivery"}),s.jsx("p",{className:"sys-section-subtitle",children:"Control-plane state and bridges that route attention back to you."})]}),s.jsx(as,{size:15})]}),s.jsxs("div",{className:"agent-config-detail-grid",children:[s.jsxs("div",{children:[s.jsx("span",{className:"agent-config-label",children:"Broker"}),s.jsx("span",{className:`sys-chip ${n.broker.healthy?"sys-chip-success":"sys-chip-danger"}`,children:n.broker.label})]}),s.jsxs("div",{children:[s.jsx("span",{className:"agent-config-label",children:"Messages"}),s.jsx("strong",{children:n.broker.messageCount})]}),n.integrations.map(a=>s.jsxs("div",{className:"agent-config-detail-wide",children:[s.jsx("span",{className:"agent-config-label",children:a.name}),s.jsx("span",{children:a.detail})]},a.id))]})]})]}),s.jsxs("div",{className:"sys-panel",children:[s.jsx("div",{className:"sys-section-head",children:s.jsxs("div",{children:[s.jsx("h3",{className:"sys-section-title",children:"Known Missing Pieces"}),s.jsx("p",{className:"sys-section-subtitle",children:"The configuration model is now visible; these are the next root-cause surfaces to build."})]})}),s.jsx("div",{className:"agent-config-gap-list",children:n.gaps.map(a=>s.jsx("span",{children:a},a))})]})]})]})})]})}export{Se as AgentConfigurationScreen};
@@ -0,0 +1 @@
1
+ import{r as l,j as e}from"./index-EsrkGBcv.js";import{A as k}from"./AgentAvatar-CrP1eXxk.js";import{a as R}from"./api-DSqpVKC7.js";import{c as T}from"./agent-state-DDhnFEEP.js";import{t as D}from"./time-Dhsh_2EG.js";import{u as M}from"./Provider-C35yu29I.js";import{a as I}from"./agent-specialization-DDc7mLCW.js";import{p as O}from"./project-overview-helpers-BQTc_Ous.js";import{FileViewerPane as $}from"./FileViewerPane-BAO6mtjD.js";/* empty css */import{C as z}from"./chevron-right-DrfqcerI.js";import{C as L}from"./chevron-down-l1mrh5S9.js";import{F as H}from"./folder-D5prSkzz.js";import{F as U}from"./DocumentFocusViewer-DJr0v0D_.js";import{F as G}from"./file-text-CnISiiw6.js";import"./SpriteAvatar-CpZWf54-.js";import"./CrewAvatar-kTznzqcO.js";import"./HarnessMark-C4naWc16.js";import"./runtime-picker-DXu2bOTh.js";import"./scout-voice-CZx60X6E.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-OvccU82H.js";import"./createLucideIcon-zZ8Hx7er.js";import"./router-DCtl8wqb.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-3RfJpen8.js";import"./colors-CFlbwC25.js";import"./theme-vars-DNK0nn3k.js";import"./provider-Dojd8quC.js";import"./machine-scope-DJt9RZ2w.js";import"./sse-BCPRocpq.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-Bk3nyrkj.js";import"./NewChatComposer-C97-iTMK.js";import"./media-blobs-Bi8pxr1u.js";import"./index-724SdE6r.js";import"./conversation-model-FxDeWlle.js";import"./conversations-DoAAO6kA.js";import"./NewChatOrigin-DFbF_XvR.js";import"./keyboard-nav-DDHegDbx.js";import"./x-DAehov0E.js";import"./search-DT42oyRW.js";import"./model-CBkMvT1w.js";import"./index-CHD0qcfL.js";import"./TextDocumentSurface-D52m7Vd8.js";import"./chevron-up-CETZJzjV.js";import"./code-xml-BhcNbLWU.js";import"./arrow-left-MVUKauwQ.js";import"./arrow-right-Bp-FpE5V.js";import"./voice-turn-ledger-BMZxlSjg.js";import"./chunk-HRAB3GC3-DbVLgbWX.js";function B({payload:a,selectedSlug:n,selectedFile:v,filter:S,collapsed:i,onToggleFolder:N,onSelectFile:h}){const u=S.trim().toLowerCase(),b=a.folders.filter(o=>!u||o.slug.includes(u)?!0:o.files.some(c=>c.name.toLowerCase().includes(u)||c.relativePath.toLowerCase().includes(u)));return b.length===0?e.jsx("div",{className:"adef-treeEmpty",children:a.agentsRootExists?"No agent folders in .agents yet.":"No .agents directory on disk."}):e.jsx(e.Fragment,{children:b.map(o=>{const c=i.has(o.slug),C=o.slug===n;return e.jsxs("div",{className:"adef-folder","data-selected-agent":C||void 0,children:[e.jsxs("button",{type:"button",className:"adef-folderRow",onClick:()=>N(o.slug),children:[e.jsx("span",{className:"adef-folderChevron","aria-hidden":!0,children:c?e.jsx(z,{size:12}):e.jsx(L,{size:12})}),e.jsx("span",{className:"adef-folderIcon","aria-hidden":!0,children:c?e.jsx(H,{size:13}):e.jsx(U,{size:13})}),e.jsx("span",{className:"adef-folderName",children:o.slug})]}),c?null:o.files.map(d=>{const f=v?.absolutePath===d.absolutePath;return e.jsxs("button",{type:"button",className:"adef-fileRow","data-selected":f||void 0,onClick:()=>h({slug:o.slug,name:d.name,relativePath:`.agents/${d.relativePath}`,absolutePath:d.absolutePath,excerpt:d.excerpt}),children:[e.jsx("span",{className:"adef-fileIcon","aria-hidden":!0,children:e.jsx(G,{size:12})}),e.jsx("span",{className:"adef-fileName",children:d.name})]},d.absolutePath)})]},o.slug)})})}function J({agent:a,config:n,onConfigSaved:v,sessionCatalog:S,navigate:i,homeView:N}){const h=I(a,n),u=a.handle?.replace(/^@+/,"")||a.name,b=S?.sessions.length??0,[o,c]=l.useState(""),[C,d]=l.useState(""),[f,x]=l.useState(""),[E,w]=l.useState(!1),[m,g]=l.useState("idle"),[P,y]=l.useState(null),[j,F]=l.useState(null);l.useEffect(()=>{if(!n){c(""),d(""),x(a.harness??"");return}c(n.model??""),d(n.runtime.cwd),x(n.runtime.harness),w(!1),y(null),F(null)},[a.harness,a.id,n]);const A=l.useMemo(()=>{const s=["claude","codex","pi",n?.runtime.harness,a.harness,f].filter(p=>!!p?.trim());return Array.from(new Set(s))},[a.harness,n?.runtime.harness,f]),t=async s=>{if(s.preventDefault(),!(!n||m==="saving")){g("saving"),y(null),F(null);try{const p=await R(`/api/agents/${encodeURIComponent(a.id)}/config`,{method:"POST",body:JSON.stringify({model:o.trim()||null,runtime:{cwd:C.trim()||n.runtime.cwd,harness:f.trim()||n.runtime.harness},restart:E})});v(p.config),w(!1),y(p.restarted?"Saved and restarted":"Saved")}catch(p){F(p instanceof Error?p.message:"Could not save config")}finally{g("idle")}}},r=()=>i({view:N,agentId:a.id,tab:"profile"});return e.jsxs("aside",{className:"adef-inspector",children:[e.jsxs("header",{className:"adef-inspectorHead",children:[e.jsx(k,{agent:a,size:36,tile:!0,presence:!1}),e.jsxs("div",{className:"adef-inspectorIdent",children:[e.jsxs("span",{className:"adef-inspectorHandle",children:["@",u]}),e.jsx("span",{className:"adef-inspectorSpec",children:h.headline})]})]}),e.jsxs("dl",{className:"adef-inspectorFacts",children:[e.jsxs("div",{children:[e.jsx("dt",{children:"State"}),e.jsx("dd",{children:T(a.state,a)})]}),e.jsxs("div",{children:[e.jsx("dt",{children:"Sessions"}),e.jsx("dd",{children:b})]})]}),n?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"adef-inspectorSec",children:"Runtime"}),e.jsxs("form",{className:"adef-configEdit",onSubmit:t,children:[e.jsxs("label",{className:"adef-configField",children:[e.jsx("span",{children:"Model"}),e.jsx("input",{value:o,placeholder:"Harness default",disabled:!n.editable||m==="saving",onChange:s=>c(s.currentTarget.value)})]}),e.jsxs("label",{className:"adef-configField",children:[e.jsx("span",{children:"Harness"}),e.jsx("select",{value:f,disabled:!n.editable||m==="saving",onChange:s=>x(s.currentTarget.value),children:A.map(s=>e.jsx("option",{value:s,children:s},s))})]}),e.jsxs("label",{className:"adef-configField adef-configField--wide",children:[e.jsx("span",{children:"Working dir"}),e.jsx("input",{value:C,disabled:!n.editable||m==="saving",onChange:s=>d(s.currentTarget.value)})]}),e.jsxs("div",{className:"adef-configSaveRow",children:[e.jsxs("label",{className:"adef-configCheck",children:[e.jsx("input",{type:"checkbox",checked:E,disabled:!n.editable||m==="saving",onChange:s=>w(s.currentTarget.checked)}),e.jsx("span",{children:"Restart"})]}),e.jsx("button",{type:"submit",className:"adef-inspectorAct","data-primary":!0,disabled:!n.editable||m==="saving",children:m==="saving"?"Saving…":"Save"})]}),P?e.jsx("p",{className:"adef-inspectorMeta",children:P}):null,j?e.jsx("p",{className:"adef-configError",children:j}):null]}),e.jsx("div",{className:"adef-inspectorSec",children:"Permissions"}),e.jsx("p",{className:"adef-inspectorMono",children:O(n.permissionProfile)}),e.jsx("div",{className:"adef-inspectorSec",children:"Tools"}),e.jsx("div",{className:"adef-inspectorChips",children:(h.capabilities.length>0?h.capabilities:["—"]).map(s=>e.jsx("span",{className:"adef-inspectorChip",children:s},s))})]}):e.jsx("p",{className:"adef-inspectorMeta",children:"No editable local config on disk."}),a.updatedAt?e.jsxs("p",{className:"adef-inspectorMeta",children:["Updated ",D(a.updatedAt)]}):null,e.jsx("div",{className:"adef-inspectorActs",children:e.jsx("button",{type:"button",className:"adef-inspectorAct","data-primary":!0,onClick:r,children:"Sessions"})})]})}function Je({agent:a,navigate:n,homeView:v="agents-v2"}){const{openFilePreview:S}=M(),[i,N]=l.useState(null),[h,u]=l.useState(null),[b,o]=l.useState(null),[c,C]=l.useState(null),[d,f]=l.useState("loading"),[x,E]=l.useState(""),[w,m]=l.useState(()=>new Set),[g,P]=l.useState(null),y=l.useCallback(async t=>{await R("/api/file/reveal",{method:"POST",body:JSON.stringify({path:t})}).catch(()=>{})},[]);l.useEffect(()=>{let t=!1;return f("loading"),(async()=>{const[r,s,p]=await Promise.allSettled([R(`/api/agents/${encodeURIComponent(a.id)}/definitions`),R(`/api/agents/${encodeURIComponent(a.id)}/config`).catch(()=>null),R(`/api/agents/${encodeURIComponent(a.id)}/session-catalog`).catch(()=>null)]);t||(r.status==="fulfilled"&&N(r.value),s.status==="fulfilled"&&u(s.value),p.status==="fulfilled"&&o(p.value),f("ready"))})(),()=>{t=!0}},[a.id]);const j=l.useMemo(()=>{if(!i)return null;const t=i.folders.find(s=>s.slug===i.selectedSlug)??i.folders[0]??null,r=t?.files.find(s=>s.name==="AGENT.md")??t?.files[0]??null;return!t||!r?null:{slug:t.slug,name:r.name,relativePath:`.agents/${r.relativePath}`,absolutePath:r.absolutePath,excerpt:r.excerpt}},[i]);l.useEffect(()=>{j&&(P(t=>t&&i?.folders.some(r=>r.files.some(s=>s.absolutePath===t.absolutePath))?t:j),i?.selectedSlug&&m(t=>{const r=new Set(t);return r.delete(i.selectedSlug),r}))},[j,i]);const F=i?.folders.reduce((t,r)=>t+r.files.length,0)??0,A=l.useCallback(t=>{m(r=>{const s=new Set(r);return s.has(t)?s.delete(t):s.add(t),s})},[]);return e.jsxs("div",{className:"adef-workspace",children:[e.jsxs("header",{className:"adef-head",children:[e.jsxs("div",{className:"adef-headCopy",children:[e.jsx("span",{className:"adef-headKind",children:"Config"}),e.jsxs("span",{className:"adef-headPath",title:i?.agentsRoot,children:[i?.agentsRootExists?".agents · explore & edit":"explore & edit",i?` · ${i.folders.length} agents · ${F} files`:""]})]}),e.jsx("input",{type:"search",className:"adef-filter",placeholder:"Filter agents & files…",value:x,onChange:t=>E(t.target.value)})]}),d==="loading"?e.jsx("div",{className:"adef-loading",children:"Loading agent config…"}):e.jsxs("div",{className:"adef-frame",children:[e.jsx("aside",{className:"adef-tree","aria-label":"Agent definition files",children:i?e.jsx(B,{payload:i,selectedSlug:i.selectedSlug,selectedFile:g,filter:x,collapsed:w,onToggleFolder:A,onSelectFile:P}):null}),e.jsx("section",{className:"adef-viewer","aria-label":"Definition file",children:g?e.jsx($,{artifact:g,onOpen:S,onReveal:t=>{y(t)},onBrowse:i?t=>n({view:"code",root:i.projectRoot,file:t}):void 0}):e.jsx("div",{className:"av2-repoViewerState",children:i?.agentsRootExists?"Select a definition file — or create .agents/<handle>/AGENT.md":"Create .agents/<handle>/AGENT.md in the project root to define this expert on disk."})}),e.jsx(J,{agent:a,config:h,onConfigSaved:u,sessionCatalog:c,navigate:n,homeView:v})]})]})}export{Je as AgentDefinitionsWorkspace};
@@ -1 +1 @@
1
- import{r as v,j as a}from"./index-DReVb7jZ.js";import{n as A,b as C,c as y}from"./agent-state-DDhnFEEP.js";import{s as $}from"./colors-CFlbwC25.js";import{t as k}from"./time-Dhsh_2EG.js";import{A as w}from"./AgentLiveActions-6Kfr1uOT.js";function F(c){return c?c.replace(/^\/Users\/[^/]+/,"~"):null}const I=v.forwardRef(function({agent:e,pinned:l,onOpen:N,onClose:b,onAction:u,style:g,className:o},f){const r=A(e.state),m=C(e.state),n=e.cwd??e.projectRoot,t=l?n:F(n),d=e.handle?`@${e.handle.replace(/^@+/,"")}`:null,h=e.selector??e.defaultSelector,p=d??e.name,j=e.authorityNodeName??e.homeNodeName??e.authorityNodeId??e.homeNodeId,i=y(r);return a.jsxs("div",{ref:f,className:`agent-card${l?" agent-card--pinned":""}${o?` ${o}`:""}`,style:g,role:"dialog","aria-label":`${p} details`,children:[a.jsxs("header",{className:"agent-card-head",children:[a.jsx("div",{className:"agent-card-name",children:p}),a.jsxs("div",{className:"agent-card-meta",children:[a.jsx("span",{className:`agent-card-dot agent-card-dot--${m}`,style:r==="in_turn"||r==="in_flight"?{background:$(e.state)}:void 0}),i&&a.jsx("span",{className:`agent-card-state agent-card-state--${m}`,children:i}),e.updatedAt&&a.jsxs(a.Fragment,{children:[i&&a.jsx("span",{className:"agent-card-sep",children:"·"}),a.jsx("span",{className:"agent-card-time",children:k(e.updatedAt)})]})]})]}),a.jsxs("div",{className:"agent-card-body",children:[d&&a.jsx(s,{label:"handle",children:a.jsx("code",{className:"agent-card-mono",children:d})}),h&&a.jsx(s,{label:"selector",children:a.jsx("code",{className:"agent-card-mono",children:h})}),t&&a.jsx(s,{label:"cwd",children:a.jsx("code",{className:"agent-card-mono",title:n??t,children:t})}),j&&a.jsx(s,{label:"machine",children:a.jsx("span",{className:"agent-card-mono",children:j})}),(e.project||e.branch)&&a.jsx(s,{label:"project",children:a.jsxs("span",{className:"agent-card-mono",children:[e.project??"—",e.branch&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"agent-card-sep agent-card-sep--inline",children:"·"}),a.jsx("span",{className:"agent-card-branch",children:e.branch})]})]})}),(e.harness||e.model)&&a.jsx(s,{label:"runtime",children:a.jsxs("span",{className:"agent-card-mono",children:[e.harness??"—",e.model&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"agent-card-sep agent-card-sep--inline",children:"·"}),a.jsx("span",{className:"agent-card-model",children:e.model})]})]})}),e.transport&&a.jsx(s,{label:"launch transport",children:a.jsx("span",{className:"agent-card-mono",children:e.transport})}),e.role&&a.jsx(s,{label:"role",children:a.jsx("span",{className:"agent-card-mono",children:e.role})}),e.capabilities&&e.capabilities.length>0&&a.jsx(s,{label:"capabilities",children:a.jsxs("div",{className:"agent-card-caps",children:[e.capabilities.slice(0,8).map(x=>a.jsx("span",{className:"agent-card-cap",children:x},x)),e.capabilities.length>8&&a.jsxs("span",{className:"agent-card-cap agent-card-cap--more",children:["+",e.capabilities.length-8]})]})})]}),a.jsx(w,{agent:e,variant:"compact",onNavigate:u}),a.jsxs("footer",{className:"agent-card-foot",children:[a.jsxs("button",{type:"button",className:"agent-card-link",onClick:N,children:["Open agent ",a.jsx("span",{"aria-hidden":!0,children:"→"})]}),l&&a.jsx("button",{type:"button",className:"agent-card-close",onClick:b,"aria-label":"Close",children:"esc"})]})]})});function s({label:c,children:e}){return a.jsxs("div",{className:"agent-card-field",children:[a.jsx("span",{className:"agent-card-label",children:c}),a.jsx("div",{className:"agent-card-value",children:e})]})}export{I as A};
1
+ import{r as v,j as a}from"./index-EsrkGBcv.js";import{n as A,b as C,c as y}from"./agent-state-DDhnFEEP.js";import{s as $}from"./colors-CFlbwC25.js";import{t as k}from"./time-Dhsh_2EG.js";import{A as w}from"./AgentLiveActions-CfTupTEl.js";function F(c){return c?c.replace(/^\/Users\/[^/]+/,"~"):null}const I=v.forwardRef(function({agent:e,pinned:l,onOpen:N,onClose:b,onAction:u,style:g,className:o},f){const r=A(e.state),m=C(e.state),n=e.cwd??e.projectRoot,t=l?n:F(n),d=e.handle?`@${e.handle.replace(/^@+/,"")}`:null,h=e.selector??e.defaultSelector,p=d??e.name,j=e.authorityNodeName??e.homeNodeName??e.authorityNodeId??e.homeNodeId,i=y(r);return a.jsxs("div",{ref:f,className:`agent-card${l?" agent-card--pinned":""}${o?` ${o}`:""}`,style:g,role:"dialog","aria-label":`${p} details`,children:[a.jsxs("header",{className:"agent-card-head",children:[a.jsx("div",{className:"agent-card-name",children:p}),a.jsxs("div",{className:"agent-card-meta",children:[a.jsx("span",{className:`agent-card-dot agent-card-dot--${m}`,style:r==="in_turn"||r==="in_flight"?{background:$(e.state)}:void 0}),i&&a.jsx("span",{className:`agent-card-state agent-card-state--${m}`,children:i}),e.updatedAt&&a.jsxs(a.Fragment,{children:[i&&a.jsx("span",{className:"agent-card-sep",children:"·"}),a.jsx("span",{className:"agent-card-time",children:k(e.updatedAt)})]})]})]}),a.jsxs("div",{className:"agent-card-body",children:[d&&a.jsx(s,{label:"handle",children:a.jsx("code",{className:"agent-card-mono",children:d})}),h&&a.jsx(s,{label:"selector",children:a.jsx("code",{className:"agent-card-mono",children:h})}),t&&a.jsx(s,{label:"cwd",children:a.jsx("code",{className:"agent-card-mono",title:n??t,children:t})}),j&&a.jsx(s,{label:"machine",children:a.jsx("span",{className:"agent-card-mono",children:j})}),(e.project||e.branch)&&a.jsx(s,{label:"project",children:a.jsxs("span",{className:"agent-card-mono",children:[e.project??"—",e.branch&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"agent-card-sep agent-card-sep--inline",children:"·"}),a.jsx("span",{className:"agent-card-branch",children:e.branch})]})]})}),(e.harness||e.model)&&a.jsx(s,{label:"runtime",children:a.jsxs("span",{className:"agent-card-mono",children:[e.harness??"—",e.model&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"agent-card-sep agent-card-sep--inline",children:"·"}),a.jsx("span",{className:"agent-card-model",children:e.model})]})]})}),e.transport&&a.jsx(s,{label:"launch transport",children:a.jsx("span",{className:"agent-card-mono",children:e.transport})}),e.role&&a.jsx(s,{label:"role",children:a.jsx("span",{className:"agent-card-mono",children:e.role})}),e.capabilities&&e.capabilities.length>0&&a.jsx(s,{label:"capabilities",children:a.jsxs("div",{className:"agent-card-caps",children:[e.capabilities.slice(0,8).map(x=>a.jsx("span",{className:"agent-card-cap",children:x},x)),e.capabilities.length>8&&a.jsxs("span",{className:"agent-card-cap agent-card-cap--more",children:["+",e.capabilities.length-8]})]})})]}),a.jsx(w,{agent:e,variant:"compact",onNavigate:u}),a.jsxs("footer",{className:"agent-card-foot",children:[a.jsxs("button",{type:"button",className:"agent-card-link",onClick:N,children:["Open agent ",a.jsx("span",{"aria-hidden":!0,children:"→"})]}),l&&a.jsx("button",{type:"button",className:"agent-card-close",onClick:b,"aria-label":"Close",children:"esc"})]})]})});function s({label:c,children:e}){return a.jsxs("div",{className:"agent-card-field",children:[a.jsx("span",{className:"agent-card-label",children:c}),a.jsx("div",{className:"agent-card-value",children:e})]})}export{I as A};
@@ -0,0 +1 @@
1
+ import{r as l,j as e}from"./index-EsrkGBcv.js";import{AgentAdventures as it}from"./AgentAdventures-BAgxdOF8.js";import{SharedWorkFloor as ct}from"./SharedWorkFloor-D9mf9KSg.js";import{FloorReplay as dt}from"./FloorReplay-VFzA6Kxc.js";import{a as mt}from"./floor-memory-YMM8AlLY.js";import{FloorTacticalHUD as pt}from"./FloorTacticalHUD-CO-iiFpb.js";import{FloorResourcesSheet as ut}from"./FloorResourcesSheet-C-kQ6Ren.js";/* empty css */import{F as Se,b as ft,a as we}from"./agent-floor-world-layout-hfMjuoui.js";import{FloorContextSheet as gt}from"./FloorContextSheet-2_NVPQor.js";import{AgentFloorWorld as ht}from"./AgentFloorWorld-CjoIa6jA.js";import{f as Ke}from"./agent-floor-actor-DW8zLht0.js";import{f as _t}from"./floor-character-name-CqJPOlXb.js";import{H as Ge}from"./HarnessMark-C4naWc16.js";import{a as Oe,S as Ae}from"./SpriteAvatar-CpZWf54-.js";import{n as xt}from"./agent-state-DDhnFEEP.js";import{o as jt,b as bt}from"./lane-observe-CteDwdD-.js";import{t as Nt}from"./time-Dhsh_2EG.js";import{S as kt}from"./SessionObserve-DXxBvejJ.js";import{l as Q}from"./agent-lanes-model-DMAdqCmK.js";import{p as vt,s as We,a as He}from"./lane-roster-store-D-RSWjb-.js";import{p as Ye}from"./session-recap-lanes-D-eVJnpY.js";import{c as St}from"./createLucideIcon-zZ8Hx7er.js";import{T as wt}from"./terminal-hQKQygcf.js";import{F as yt}from"./file-code-corner-CsU7jJpu.js";import{M as $t}from"./message-square-BxesYglW.js";import"./ReplayClock-348f17bW.js";import"./SproutActionSprite-BSiTS4en.js";/* empty css */import"./CrewSprite-Dhryjx2c.js";import"./adventure-playback-DTfkhIc0.js";import"./AdventureScenery-LPXSVP67.js";import"./adventure-habitats-v1-M1lcpTJh.js";import"./AdventureReader-X-hbTOi0.js";import"./api-DSqpVKC7.js";import"./index-CHD0qcfL.js";import"./TextDocumentSurface-D52m7Vd8.js";import"./chevron-right-DrfqcerI.js";import"./folder-D5prSkzz.js";import"./file-text-CnISiiw6.js";import"./floor-preview-text-HrORUJ7D.js";/* empty css */import"./book-open-CV98WMSp.js";import"./x-DAehov0E.js";import"./scroll-text-DNjxhyO2.js";import"./ReplayLog-CBnAM3ui.js";import"./observe-BJqERJVj.js";import"./surface-activity-B1rgWB1i.js";import"./AdventureEvidence-CyegKk1V.js";import"./Provider-C35yu29I.js";import"./theme-vars-DNK0nn3k.js";import"./provider-Dojd8quC.js";import"./router-DCtl8wqb.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-3RfJpen8.js";import"./machine-scope-DJt9RZ2w.js";import"./sse-BCPRocpq.js";import"./index-BWHgHrtv.js";import"./scoutbot-Bk3nyrkj.js";import"./NewChatComposer-C97-iTMK.js";import"./runtime-picker-DXu2bOTh.js";import"./scout-voice-CZx60X6E.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-OvccU82H.js";import"./media-blobs-Bi8pxr1u.js";import"./index-724SdE6r.js";import"./conversation-model-FxDeWlle.js";import"./conversations-DoAAO6kA.js";import"./colors-CFlbwC25.js";import"./NewChatOrigin-DFbF_XvR.js";import"./keyboard-nav-DDHegDbx.js";import"./chevron-down-l1mrh5S9.js";import"./search-DT42oyRW.js";import"./model-CBkMvT1w.js";import"./DocumentFocusViewer-DJr0v0D_.js";import"./chevron-up-CETZJzjV.js";import"./code-xml-BhcNbLWU.js";import"./arrow-left-MVUKauwQ.js";import"./arrow-right-Bp-FpE5V.js";import"./voice-turn-ledger-BMZxlSjg.js";import"./chunk-HRAB3GC3-DbVLgbWX.js";import"./agent-lane-detail-Ti3trpfH.js";import"./tail-display-DHSNmvor.js";import"./lane-edit-display-BjdT9oZl.js";/* empty css */import"./arrow-up-right-BPedAgxO.js";/* empty css */import"./flag-C4wl8z2-.js";import"./wrench-DR0i5BU7.js";import"./pause-C2XTlkjs.js";import"./play-FT6K3It1.js";import"./radio-DRoOZsws.js";import"./WorldMinimap-B6HNgcDe.js";import"./WorldSky-Jm2Z6dfW.js";import"./WorldActorTalk-BvSg_b1y.js";import"./send-to-agent-session-DoKCDBJ4.js";import"./FloorExchangePanel-BU1pPu8K.js";import"./floor-message-passes-CO3Ix_wR.js";import"./shared-work-artifacts-DfNl9KTo.js";import"./CharacterFamilyPreview-DMfw7UM_.js";import"./RenderedWorkerSprite-Dhlyg89J.js";import"./FloorMessagePasses-cLW2UGNP.js";import"./WorkRunView-BDkR7Edq.js";import"./floor-context-model-rWKqaKmV.js";import"./lane-ask-display-BTVSakyo.js";import"./context-budget-8qFKqM-j.js";import"./SharedFloorCharacter-DNEiaOUh.js";import"./WorldCharacter-CIIlutQq.js";import"./RiggedWorkerCharacter-q6QRc7_o.js";/* empty css */import"./FloorSavedWork-BeHDejWz.js";import"./pin-C2mFOV1l.js";/* empty css */import"./triangle-alert-CHoRGdVO.js";/* empty css */import"./git-branch-B0_fPLO7.js";import"./coffee-D7EAOdCk.js";/* empty css */import"./bash-format-BRV5C6Gv.js";import"./lane-tool-detail-Czggx8oM.js";import"./LaneToolHoverCard-CJa110yk.js";import"./mentions-ByUvhS-v.js";import"./AgentDetailCard-DtHT3sCo.js";import"./AgentLiveActions-CfTupTEl.js";import"./terminal-takeover-Ay5C2c-M.js";import"./openContent-C6XO6kr5.js";import"./eye-LrO-cXQt.js";import"./message-markup-Zwo3t4cI.js";import"./message-markup-BQW5jdJw.js";import"./SessionHopMenu-E6VJZrE0.js";import"./external-link-CUObqmgX.js";import"./ObservedTopologyPanel-CUTIoLZJ.js";import"./ObserveTextFlow-PFnG_10h.js";import"./use-reduced-motion-3gMYZNIp.js";import"./proxy-AJsmwA6h.js";import"./SessionObserveEvidence-Cuj_KHxR.js";import"./SessionContextStrip-CXfs9hUD.js";import"./message-circle-CxRVKNE-.js";const Mt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],Ot=St("circle-dot",Mt),U=5*6e4,At=3,ne=At+1,se=8,Ct=15*6e4,qe=.65,ae=1.45,Xe=.1,je=360,be=260;function ye(o){return Math.round(Math.min(ae,Math.max(qe,o))*100)/100}function Y(o,a){return Math.round(Math.min(a,Math.max(-a,o)))}const le=128,$e=34,Ze=14,Lt=12,V=44,Me=7,J=58,I=440,Rt=48,Ft=24,Et=480,Ue="openscout:agent-floor-orient",Je="openscout:agent-floor-lane-order";function Pt(){try{const o=localStorage.getItem(Ue);if(o==="past-left"||o==="past-right")return o}catch{}return"past-left"}function Tt(){try{const o=JSON.parse(sessionStorage.getItem(Je)??"[]");return Array.isArray(o)?o.filter(a=>typeof a=="string"):[]}catch{return[]}}function Ne(o){return new Date(o).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",hour12:!1})}const It=/^(edit|multi_?edit|write|apply_?patch|patch_apply|str_?replace|notebook_?edit|create_file)/i;function Dt(o){return o.kind==="tool"?o.diff||o.tool&&It.test(o.tool.trim())?"edit":"tool":o.kind==="message"||o.kind==="ask"?"msg":null}function Ve(o,a,n){const r=o.observe?.metadata?.session?.sessionStart,m={tool:0,edit:0,msg:0},i=Array.from({length:ne},()=>({blocks:[],counts:{tool:0,edit:0,msg:0},tools:new Map,total:0})),_=[];let f=null;for(const g of o.observe?.events??[]){const b=Dt(g);if(!b)continue;const d=jt(g,r),P=d===null||d>=a?0:Math.floor((a-d)/U)+1;if(P>=ne)continue;const p=i[P];p.blocks.push(b),p.counts[b]+=1,p.total+=1,m[b]+=1;const x=b==="msg"?null:g.tool?.trim()||"tool";x&&p.tools.set(x,(p.tools.get(x)??0)+1),_.push({kind:b,label:b==="msg"?bt(g.text,44,1):g.text.trim()||x||"tool",at:d}),f={at:d,label:b==="msg"?"message":g.tool?.trim()||"tool"}}return{lane:o,live:Ke(o,n).posture==="working",slots:i.map(g=>({blocks:g.blocks.slice(-8),counts:g.counts,tools:[...g.tools.entries()].sort((b,d)=>d[1]-b[1]),total:g.total})),counts:m,strip:_.slice(-10).map(g=>g.kind),lastLabel:f?.label??null,lastAt:f?.at??(o.lastActiveAt||null)}}function ke(o){const a=(n,r,m)=>`${n} ${n===1?r:m}`;return[a(o.tool,"tool","tools"),a(o.edit,"edit","edits"),a(o.msg,"msg","msgs")].join(" · ")}function zt(o){return/^(working|active|running|in_turn|in_flight)/i.test(o.lane.agent.state??"")?"quiet":"idle"}function B(o){return o.tool+o.edit+o.msg}function Be(o){if(B(o)===0)return"quiet";const n=[["tool-led",o.tool],["edit-heavy",o.edit],["conversation-led",o.msg]];return n.sort((r,m)=>m[1]-r[1]),n[0][1]===n[1][1]?"balanced":n[0][0]}function Wt(o){const a=new Map;for(const r of o.slots)for(const[m,i]of r.tools)a.set(m,(a.get(m)??0)+i);const[n]=[...a.entries()].sort((r,m)=>m[1]-r[1]);return n?{value:n[0],detail:`${n[1]} call${n[1]===1?"":"s"} · 15m`}:{value:"no tool pattern",detail:"messages and edits only"}}function Ht(o){const a=o.slots[0]?.total??0,n=o.slots[1]?.total??0;return a===0&&n===0?{value:"quiet",detail:"no work in the last 10m"}:a===0?{value:"paused",detail:`${n} in the prior 5m`}:n===0?{value:"new burst",detail:`${a} in the current 5m`}:a>=n+3?{value:"building",detail:`${a} now · ${n} prior`}:n>=a+3?{value:"easing",detail:`${a} now · ${n} prior`}:{value:"steady",detail:`${a} now · ${n} prior`}}function X({label:o,value:a,detail:n,mix:r}){const m=r?Math.max(1,B(r)):1;return e.jsxs("span",{className:"agent-floor__dock-insight",children:[e.jsx("span",{className:"agent-floor__dock-insight-label",children:o}),e.jsx("span",{className:"agent-floor__dock-insight-value",children:a}),e.jsx("span",{className:"agent-floor__dock-insight-detail",children:n}),r?e.jsx("span",{className:"agent-floor__dock-mix",style:{"--mix-tool":`${r.tool/m*100}%`,"--mix-edit":`${(r.tool+r.edit)/m*100}%`},"aria-hidden":"true"}):null]})}function Qe(o,a){const n=o.lastAt?Nt(o.lastAt,a):null;return o.live?{glyph:"▸",label:o.lastLabel??"working",meta:n??"now"}:{glyph:"⏸",label:zt(o),meta:n?`· ${n}`:""}}function Yt({series:o,now:a}){const n=Qe(o,a);return o.live?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"agent-floor__card-run",children:n.glyph}),e.jsx("span",{className:"agent-floor__card-tool",children:n.label}),e.jsx("span",{className:"agent-floor__card-ago",children:n.meta})]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"agent-floor__card-pause",children:n.glyph}),e.jsxs("span",{className:"agent-floor__card-idle",children:[n.label,n.meta?` ${n.meta}`:""]})]})}function Xt({kind:o,z:a,size:n=$e,faceH:r=Lt,pad:m,live:i}){return e.jsxs("span",{className:`agent-floor__block is-${o}${m?" is-pedestal":""}${i?" is-live":""}`,style:{"--z":`${a}px`,"--bs":`${n}px`,"--bh":`${r}px`},"aria-hidden":"true",children:[e.jsx("span",{className:"agent-floor__face is-left"}),e.jsx("span",{className:"agent-floor__face is-right"}),e.jsx("span",{className:"agent-floor__face is-top"})]})}function Zt({slot:o}){const a=Math.max(1,o.total),n=o.counts.tool/a*100,r=o.counts.edit/a*100;return e.jsxs("span",{className:"agent-floor__block agent-floor__slab",style:{"--z":"0px","--bs":`${V}px`,"--bh":`${Me}px`,"--mix-a":`${n.toFixed(1)}%`,"--mix-b":`${(n+r).toFixed(1)}%`},"aria-hidden":"true",children:[e.jsx("span",{className:"agent-floor__face is-left"}),e.jsx("span",{className:"agent-floor__face is-right"}),e.jsx("span",{className:"agent-floor__face is-top"})]})}function Vt({slot:o,slotIndex:a,periodStart:n}){const r=a===0?`${Ne(n)} — now`:`${Ne(n-a*U)} – ${Ne(n-(a-1)*U)}`;return e.jsxs("span",{className:"agent-floor__peek",children:[e.jsx("span",{className:"agent-floor__peek-range",children:r}),e.jsxs("span",{className:"agent-floor__peek-cols",children:[e.jsxs("span",{className:"agent-floor__peek-col",children:[o.tools.slice(0,3).map(([m,i])=>e.jsxs("span",{className:"agent-floor__peek-tool",children:[m,i>1?` ×${i}`:""]},m)),o.tools.length===0?e.jsx("span",{className:"agent-floor__peek-tool is-empty",children:"no tools"}):null]}),e.jsxs("span",{className:"agent-floor__peek-col is-right",children:[e.jsxs("span",{children:[o.counts.edit," edit",o.counts.edit===1?"":"s"]}),e.jsxs("span",{children:[o.counts.msg," msg",o.counts.msg===1?"":"s"]})]})]})]})}function Bt({series:o,index:a,planeW:n,flip:r,periodStart:m,now:i,focused:_,pinned:f,dimmed:g,peekSlot:b,onFocus:d,onPeek:P,onSelect:p}){const{lane:x,live:c,slots:M}=o,S=x.agent,y=Q(S,x.source),re=Oe(S),K=(le-V)/2,ie=h=>{const k=(J-V)/2;return r?I+h*J+k:n-I-(h+1)*J+k},O=Ke(x,i),G=[{id:"home",label:"READY",x:55,y:44},{id:"tools",label:"TOOLS",x:165,y:44},{id:"edit",label:"EDIT",x:275,y:44},{id:"message",label:"COMMS",x:380,y:44}],ce=G.find(h=>h.id===O.station),N=r?0:n-I,$=N+ce.x,de=ce.y,ee=x.id.replace(/[^a-zA-Z0-9]/g,"").slice(-5);return e.jsxs("button",{type:"button",className:`agent-floor__lane${c?" is-live":""}${a%2===1?" is-alt":""}${_?" is-focus":""}${f?" is-pinned":""}${g?" is-dim":""}`,style:{left:0,top:a*le,width:n,height:le},onClick:()=>p(x),onMouseEnter:()=>d(x.id),onMouseLeave:()=>{d(null),P(x.id,null)},onFocus:()=>d(x.id),onBlur:()=>d(null),"aria-label":`${y} ${S.harness??""} ${ee} — ${O.label} — ${f?"open timeline":"pin details"}`,children:[e.jsx("span",{className:"agent-floor__lane-strip","aria-hidden":"true"}),M.map((h,k)=>{if(h.total===0)return null;const D=_&&b===k,T=Me+2+h.blocks.length*Ze;return e.jsxs("span",{className:`agent-floor__stack${k===0?" is-now":" is-minted"}${D?" is-peeking":""}`,style:{left:ie(k),top:K},onMouseEnter:()=>P(x.id,k),children:[e.jsx(Zt,{slot:h}),e.jsx("span",{className:"agent-floor__stack-blocks",style:{left:(V-$e)/2,top:(V-$e)/2},children:h.blocks.map((z,me)=>e.jsx(Xt,{kind:z,z:Me+2+me*Ze},me))}),D?e.jsx("span",{className:"agent-floor__bb agent-floor__peek-anchor",style:{left:V/2,top:V/2,"--z":`${T+46}px`},children:e.jsx(Vt,{slot:h,slotIndex:k,periodStart:m})}):null]},k)}),e.jsxs("span",{className:"agent-floor__work-zone",style:{left:N,width:I},"aria-hidden":"true",children:[e.jsx("span",{className:"agent-floor__route"}),G.map(h=>e.jsxs("span",{className:`agent-floor__station${h.id===O.station?" is-occupied":""}`,style:{left:h.x,top:h.y},children:[e.jsx("span",{className:"agent-floor__station-surface",children:h.id==="home"?e.jsx(Ot,{size:22}):h.id==="tools"?e.jsx(wt,{size:22}):h.id==="edit"?e.jsx(yt,{size:22}):e.jsx($t,{size:22})}),e.jsx("span",{className:"agent-floor__bb agent-floor__station-label",children:h.label})]},h.id))]}),e.jsxs("span",{className:`agent-floor__actor-position is-${O.posture}${f||_?" is-selected":""}`,style:{left:$,top:de},"data-station":O.station,children:[e.jsx("span",{className:"agent-floor__selection-ring"}),e.jsxs("span",{className:"agent-floor__bb agent-floor__actor-body",style:{"--z":"42px"},children:[e.jsx(Ae,{name:S.name,size:56,hue:re.hue,tone:re.tone,glow:!1}),O.posture==="attention"||O.posture==="blocked"?e.jsx("span",{className:"agent-floor__actor-alert",children:"!"}):null]})]}),e.jsx("span",{className:"agent-floor__bb agent-floor__flag-anchor agent-floor__unit-label",style:{left:N+220,top:91,"--z":"76px"},children:e.jsxs("span",{className:`agent-floor__flag${_?" is-focus":""}${f?" is-pinned":""}`,children:[e.jsx("span",{className:"agent-floor__flag-name",children:y}),e.jsxs("span",{className:"agent-floor__unit-id",children:[S.harness," · ",ee]}),e.jsx("span",{className:`agent-floor__unit-status is-${O.posture}`,children:O.label})]})})]})}function Kt({focus:o,pinned:a,ledger:n,liveCount:r,now:m}){if(!o){const d=n.reduce((c,M)=>(c.tool+=M.counts.tool,c.edit+=M.counts.edit,c.msg+=M.counts.msg,c),{tool:0,edit:0,msg:0}),P=n.filter(c=>B(c.counts)>0).length,p=[...n].sort((c,M)=>B(M.counts)-B(c.counts))[0]??null,x=p?B(p.counts):0;return e.jsxs("div",{className:"agent-floor__dock is-resting",children:[e.jsx("span",{className:"agent-floor__dock-id agent-floor__dock-fleet",children:e.jsxs("span",{className:"agent-floor__dock-id-copy",children:[e.jsx("span",{className:"agent-floor__dock-title",children:"fleet at a glance"}),e.jsxs("span",{children:[n.length," lane",n.length===1?"":"s"," · ",r," live"]})]})}),e.jsxs("span",{className:"agent-floor__dock-insights",children:[e.jsx(X,{label:"coverage",value:`${P}/${n.length} lanes`,detail:"showed work · 15m"}),e.jsx(X,{label:"hottest lane",value:p?Q(p.lane.agent,p.lane.source):"none yet",detail:p?`${x} classified events`:"waiting for activity"}),e.jsx(X,{label:"throughput",value:`${B(d)} events`,detail:"classified · 15m"}),e.jsx(X,{label:"activity mix",value:Be(d),detail:ke(d),mix:d})]})]})}const i=o.lane.agent,_=Oe(i),f=Ht(o),g=Wt(o),b=o.slots.filter(d=>d.total>0).length;return e.jsxs("div",{className:`agent-floor__dock${a?" is-pinned":""}`,children:[e.jsxs("span",{className:"agent-floor__dock-id",children:[e.jsx(Ae,{name:i.name,size:30,tile:!0,hue:_.hue,tone:_.tone}),e.jsxs("span",{className:"agent-floor__dock-id-copy",children:[e.jsxs("span",{className:"agent-floor__dock-name",children:[Q(i,o.lane.source),e.jsx(Ge,{harness:i.harness,size:12,className:"agent-floor__card-mark"}),e.jsx("span",{className:`agent-floor__card-dot${o.live?" is-live":""}`}),a?e.jsx("span",{className:"agent-floor__dock-lock",children:"locked"}):null]}),e.jsx("span",{className:"agent-floor__dock-action",children:e.jsx(Yt,{series:o,now:m})})]})]}),e.jsxs("span",{className:"agent-floor__dock-insights",children:[e.jsx(X,{label:"momentum",value:f.value,detail:f.detail}),e.jsx(X,{label:"cadence",value:`${b}/${o.slots.length} windows`,detail:"active five-minute bands"}),e.jsx(X,{label:"signature",value:g.value,detail:g.detail}),e.jsx(X,{label:"activity mix",value:Be(o.counts),detail:ke(o.counts),mix:o.counts})]})]})}function Gt({series:o,now:a,concise:n,onConciseChange:r,onClose:m,onOpenFull:i,operatorName:_}){const{agent:f,observe:g,source:b}=o.lane,d=Q(f,b);return e.jsxs("aside",{className:"agent-floor__trace-panel","aria-label":`${d} selected lane trace`,children:[e.jsx("button",{type:"button",className:"agent-floor__trace-close",onClick:m,"aria-label":"Close selected lane trace",children:"×"}),e.jsx("div",{className:"agent-floor__trace-body",children:g?e.jsx(kt,{data:g,agentId:b==="scout"?f.id:void 0,sessionId:f.harnessSessionId,showRail:!1,variant:"lane",nowMs:a,traceWindowMs:Ct,traceWindowLabel:"15m",laneCollapseTechnicalEvents:n,onLaneCollapseTechnicalEventsChange:r,laneOperatorName:_,onLaneEventSelect:i}):e.jsx("div",{className:"agent-floor__trace-empty",children:"Waiting for trace activity…"})})]})}function qt({zoom:o,fit:a,onZoomChange:n,onReset:r}){const m=Math.round(o*100);return e.jsxs("div",{className:"agent-floor__zoom",role:"group","aria-label":"Floor zoom",children:[e.jsx("button",{type:"button","aria-label":"Zoom out",disabled:o<=qe,onClick:()=>n(ye(o-Xe)),children:"−"}),e.jsx("button",{type:"button",className:"agent-floor__zoom-reset","aria-label":"Reset floor zoom to fit",title:"Reset zoom and position to automatic fit",onClick:r,children:a?"fit":`${m}%`}),e.jsx("button",{type:"button","aria-label":"Zoom in",disabled:o>=ae,onClick:()=>n(ye(o+Xe)),children:"+"})]})}function An({lanes:o,now:a,onOpenTrace:n,railLedger:r=!1,operatorName:m}){const i=Math.max(a,Date.now()),[_,f]=l.useState(null),[g,b]=l.useState(!1),[d,P]=l.useState(!0),[p,x]=l.useState(!1),[c,M]=l.useState(!1),[S,y]=l.useState(null),[re,K]=l.useState(0),[ie,O]=l.useState(Pt),[G,ce]=l.useState(null),[N,$]=l.useState(null),[de,ee]=l.useState(null),[Ce,h]=l.useState(!1),[k,D]=l.useState(1),[T,z]=l.useState({x:0,y:0}),[me,Le]=l.useState(!1),[pe,Re]=l.useState(Tt),A=l.useMemo(()=>mt(pe,o.map(t=>t.id)),[pe,o]),ue=Math.max(1,Math.ceil(A.length/se)),W=Math.min(re,ue-1),Fe=Object.fromEntries(A.map((t,s)=>[t,s%se])),Ee=l.useRef(null),fe=l.useRef(null),[ge,et]=l.useState(null),he=ie==="past-right";l.useEffect(()=>{const t=Ee.current;if(!t)return;const s=new ResizeObserver(u=>{const v=u[0]?.contentRect;v&&et(j=>j&&Math.abs(j.w-v.width)<2&&Math.abs(j.h-v.height)<2?j:{w:v.width,h:v.height})});return s.observe(t),()=>s.disconnect()},[]);const tt=l.useCallback(()=>{O(t=>{const s=t==="past-left"?"past-right":"past-left";try{localStorage.setItem(Ue,s)}catch{}return s})},[]),R=l.useCallback(t=>{ce(t),t===null&&ee(null)},[]),ot=l.useCallback((t,s)=>{ee(s===null?null:{laneId:t,slot:s})},[]),F=l.useCallback(t=>{const s=A.indexOf(t.id);s>=0&&K(Math.floor(s/se)),y(null),f(null),c&&N===t.id?n(t):$(t.id)},[N,n,A,c]),_e=l.useCallback(()=>{D(1),z({x:0,y:0})},[]),st=l.useCallback(t=>{if(!(t.target instanceof Element?t.target:null)?.closest(".agent-floor__trace-panel, .agent-floor__zoom, .floor-tactical, .shared-floor, .floor-replay")){if(t.preventDefault(),t.metaKey||t.ctrlKey){D(u=>ye(u-t.deltaY*.002));return}z(u=>({x:Y(u.x-t.deltaX,je),y:Y(u.y-t.deltaY,be)}))}},[]),nt=l.useCallback(t=>{const s=t.target instanceof Element?t.target:null;t.button!==0||s?.closest("button, .agent-floor__trace-panel, .floor-tactical, .shared-floor, .floor-replay")||(fe.current={pointerId:t.pointerId,startX:t.clientX,startY:t.clientY,panX:T.x,panY:T.y},t.currentTarget.setPointerCapture(t.pointerId),Le(!0))},[T]),at=l.useCallback(t=>{const s=fe.current;!s||s.pointerId!==t.pointerId||z({x:Y(s.panX+t.clientX-s.startX,je),y:Y(s.panY+t.clientY-s.startY,be)})},[]),Pe=l.useCallback(t=>{fe.current?.pointerId===t.pointerId&&(fe.current=null,t.currentTarget.hasPointerCapture(t.pointerId)&&t.currentTarget.releasePointerCapture(t.pointerId),Le(!1))},[]);l.useEffect(()=>{if(N===null&&S===null&&_===null)return;const t=s=>{s.key==="Escape"&&($(null),y(null),f(null))};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[N,S,_]);const q=Math.floor(i/U)*U,C=l.useMemo(()=>{const t=new Map(o.map(j=>[j.id,j])),s=pe.flatMap(j=>{const E=t.get(j);return E?[E]:[]}),u=new Set(s.map(j=>j.id)),v=o.filter(j=>!u.has(j.id)).sort((j,E)=>E.lastActiveAt-j.lastActiveAt);return s.concat(v)},[o,pe]);l.useEffect(()=>{const t=A;Re(s=>s.length===t.length&&s.every((u,v)=>u===t[v])?s:t);try{sessionStorage.setItem(Je,JSON.stringify(t))}catch{}},[A]);const{series:te,hidden:Te,planeW:Z,planeD:xe,lanesStartY:Ie}=l.useMemo(()=>{const t=C.map(E=>Ve(E,q,i)),s=new Set(A.slice(W*se,(W+1)*se)),u=t.filter(E=>s.has(E.lane.id)),v=u.length*le,j=Math.max(Et,v+Ft*2);return{series:u,hidden:t.filter(E=>!u.includes(E)),planeW:Rt+ne*J+I,planeD:j,lanesStartY:(j-v)/2}},[C,A,q,W,i]),w=l.useMemo(()=>C.map(t=>Ve(t,q,i)),[C,q,i]),ve=w.filter(t=>t.live).length,L=G??N,lt=L===null?null:w.find(t=>t.lane.id===L)??null,H=N===null?null:w.find(t=>t.lane.id===N)??null;l.useEffect(()=>{N!==null&&!w.some(t=>t.lane.id===N)&&$(null)},[w,N]),l.useEffect(()=>{h(!1)},[N]),l.useEffect(()=>{if(!r)return;const t=w.map(s=>{const u=Qe(s,i);return{id:s.lane.id,label:Q(s.lane.agent,s.lane.source),statusLabel:s.lane.agent.harness?.trim()||"lane",tone:xt(s.lane.agent.state,s.lane.agent),updatedAt:s.lane.lastActiveAt>0?s.lane.lastActiveAt:void 0,floor:{live:s.live,harness:s.lane.agent.harness,identity:_t(s.lane).label,project:s.lane.agent.project?.trim()||null,actionGlyph:u.glyph,actionLabel:u.label,actionMeta:u.meta,strip:s.strip,countsLabel:ke(s.counts)}}});vt(t)},[r,w,i]),l.useEffect(()=>{if(r)return We({onHover:R,onSelect:t=>{const s=w.find(u=>u.lane.id===t);s&&F(s.lane)}}),()=>We(null)},[r,w,R,F]),l.useEffect(()=>{if(r)return He(L),Ye(L),()=>{He(null),Ye(null)}},[r,L]);const De=t=>he?I+t*J:Z-I-t*J,ze=Ie+te.length*le+26,oe=l.useMemo(()=>{if(!ge)return 1;const t=(c?Z:we)+40,s=(c?xe:Se)+35,u=Math.min((ge.w-40)/t,(ge.h-55)/s);return Math.round(Math.min(1.6,Math.max(.15,u))*100)/100},[ge,Z,xe,c]),rt=Math.round(oe*k*100)/100;return e.jsxs("div",{className:`agent-floor is-tactical${r?" is-rail-ledger":""}`,"data-live-count":ve,"data-floor-orient":ie,children:[e.jsxs("div",{className:"agent-floor__body",children:[r?null:e.jsxs("aside",{className:"agent-floor__ledger","aria-label":"Fleet ledger",children:[e.jsxs("header",{className:"agent-floor__ledger-head",children:[e.jsx("span",{className:"agent-floor__ledger-title",children:"fleet"}),e.jsxs("span",{className:"agent-floor__ledger-meta",children:[w.length," lane",w.length===1?"":"s"," · ",ve," live"]}),e.jsx("span",{className:"agent-floor__ledger-trace",children:"trace 15m"})]}),e.jsx("div",{className:"agent-floor__ledger-rows",children:w.map(t=>{const s=t.lane.agent,u=Oe(s);return e.jsxs("button",{type:"button",className:`agent-floor__ledger-row${L===t.lane.id?" is-focus":""}`,onClick:()=>F(t.lane),onMouseEnter:()=>R(t.lane.id),onMouseLeave:()=>R(null),children:[e.jsxs("span",{className:"agent-floor__ledger-id",children:[e.jsx(Ae,{name:s.name,size:18,tile:!0,hue:u.hue,tone:u.tone}),e.jsx("span",{className:"agent-floor__ledger-name",children:Q(s,t.lane.source)}),e.jsx(Ge,{harness:s.harness,size:11,className:"agent-floor__card-mark"}),e.jsx("span",{className:`agent-floor__card-dot${t.live?" is-live":""}`})]}),e.jsxs("span",{className:"agent-floor__ledger-tally",children:[e.jsx("span",{className:"agent-floor__ledger-strip",children:t.strip.map((v,j)=>e.jsx("span",{className:`agent-floor__ledger-cell is-${v}`},j))}),e.jsx("span",{className:"agent-floor__ledger-counts",children:ke(t.counts)})]})]},t.lane.id)})}),e.jsx("footer",{className:"agent-floor__ledger-foot",children:"rows and flags are linked — hover to unroll, click to pin"})]}),e.jsxs("div",{className:`agent-floor__viewport${H||S||_?" is-inspecting":""}${me?" is-dragging":""}`,ref:Ee,onWheel:st,onPointerDown:nt,onPointerMove:at,onPointerUp:Pe,onPointerCancel:Pe,children:[e.jsxs("div",{className:"agent-floor__command-bar",children:[c||!d?e.jsx("strong",{children:"Operations floor"}):null,e.jsxs("div",{className:"agent-floor__view-switch",role:"group","aria-label":"Floor view",children:[e.jsx("button",{type:"button","aria-pressed":!c&&!p,onClick:()=>{x(!1),M(!1),_e()},children:"World"}),e.jsx("button",{type:"button","aria-pressed":p,onClick:()=>{x(!0),M(!1),y(null),f(null),_e()},children:"Replay"}),e.jsx("button",{type:"button","aria-pressed":c,onClick:()=>{x(!1),M(!0),y(null),f(null),_e()},children:"History"})]}),!c&&!p?e.jsx("button",{type:"button",onClick:()=>P(!d),children:d?"Rooms":"Shared map"}):null,!c&&!p?e.jsx("div",{className:"agent-floor__view-switch","aria-label":"Floor resources",children:["artifacts","branches","terminals"].map(t=>e.jsx("button",{type:"button","aria-pressed":_===t,onClick:()=>{f(t),$(null),y(null)},children:t==="artifacts"?"Artifacts":t==="branches"?"Branches":"Terminals"},t))}):null,!c&&!p&&!d&&A.length>o.length?e.jsxs("button",{type:"button",title:"Release vacant desks and compact sectors",onClick:()=>{Re(C.map(t=>t.id)),K(0)},children:["Release ",A.length-o.length," ",A.length-o.length===1?"desk":"desks"]}):null,!c&&!p&&!d&&ue>1?e.jsxs("span",{className:"agent-floor__page-controls",children:[e.jsx("button",{type:"button","aria-label":"Previous floor sector",disabled:W===0,onClick:()=>{K(W-1),$(null),R(null)},children:"←"}),"Sector ",W+1," / ",ue,e.jsx("button",{type:"button","aria-label":"Next floor sector",disabled:W===ue-1,onClick:()=>{K(W+1),$(null),R(null)},children:"→"})]}):null]}),!c&&!p&&!d?e.jsx(pt,{berths:Fe,allLanes:C,lanes:te.map(t=>t.lane),now:i,selectedId:L,sheetOpen:!!(H||S||_),motionPaused:g,onPause:()=>b(!g),onActor:t=>{F(t),z({x:-100,y:0}),D(1)},onRoom:t=>{f(null),y(t),$(null),R(null)}}):null,!c&&!p&&_?e.jsx(ut,{view:_,lanes:C,onView:f,onClose:()=>f(null),onActor:F}):null,!c&&!p&&d?e.jsx(ct,{now:i,lanes:C,onActor:F}):null,p?e.jsx(it,{lanes:C,now:i,onActor:n}):null,c?e.jsx(dt,{lanes:C,now:i,onActor:F}):null,!c&&!p&&!d?e.jsx(qt,{zoom:k,fit:k===1&&T.x===0&&T.y===0,onZoomChange:D,onReset:_e}):null,e.jsx("div",{className:"agent-floor__stage",style:{display:p||c||d?"none":void 0,transform:`translate3d(${T.x}px, ${T.y}px, 0) scale(${rt})`},children:c?e.jsxs("div",{className:"agent-floor__field",style:{width:Z,height:xe,left:-Z/2,top:-xe/2},children:[e.jsx("div",{className:"agent-floor__plane"}),Array.from({length:ne+1},(t,s)=>e.jsx("div",{className:`agent-floor__seam${s===0?" is-front":""}`,style:{left:De(s)}},s)),Array.from({length:ne+1},(t,s)=>e.jsx("div",{className:`agent-floor__bb agent-floor__tick${s===0?" is-now":""}`,style:{left:De(s),top:ze},children:s===0?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"agent-floor__tick-pulse"}),e.jsx("span",{children:"now"})]}):Ne(q-(s-1)*U)},s)),e.jsx("div",{className:"agent-floor__lanes",style:{left:0,top:Ie},"data-focus":L!==null||void 0,children:te.map((t,s)=>e.jsx(Bt,{series:t,index:s,planeW:Z,flip:he,periodStart:q,now:i,focused:L===t.lane.id,pinned:N===t.lane.id,dimmed:N===null&&G!==null&&G!==t.lane.id,peekSlot:de?.laneId===t.lane.id?de.slot:null,onFocus:R,onPeek:ot,onSelect:F},t.lane.id))}),Te.length>0?e.jsxs("div",{className:"agent-floor__bb agent-floor__chip",style:{left:he?I/2:Z-I/2,top:ze+30},children:["+",Te.length," more in the ledger"]}):null]}):e.jsx(ht,{berths:Fe,lanes:te.map(t=>t.lane),now:i,motionPaused:g,selectedId:L,onFocus:R,onSelect:F,onFocusRoom:(t,s,u)=>{f(null),y(t),$(null),R(null),D(ae),z({x:Y((we/2-s)*oe*ae-140,je),y:Y((Se/2-u)*oe*ae,be)})}})}),!c&&(H||S)?e.jsx(gt,{lane:H?.lane??null,room:S,lanes:te.map(t=>t.lane),allLanes:C,now:i,onClose:()=>{$(null),y(null)},onSelectRoom:t=>{f(null),y(t);const s=ft[t];z({x:Y((we/2-s.x-205)*oe*k-140,je),y:Y((Se/2-s.y-132)*oe*k,be)})},onSelectLane:F,onOpenTrace:n},H?.lane.id??S):H?e.jsx(Gt,{series:H,now:i,concise:Ce,onConciseChange:h,onClose:()=>$(null),onOpenFull:()=>n(H.lane),operatorName:m}):null]})]}),p?null:e.jsx(Kt,{focus:lt,pinned:N!==null&&L===N,ledger:w,liveCount:ve,now:i}),e.jsxs("footer",{className:"agent-floor__legend",style:{display:p?"none":void 0},children:[e.jsxs("span",{className:"agent-floor__legend-item",children:[e.jsx("span",{className:"agent-floor__legend-swatch is-tool"}),"tool call"]}),e.jsxs("span",{className:"agent-floor__legend-item",children:[e.jsx("span",{className:"agent-floor__legend-swatch is-edit"}),"file edit"]}),e.jsxs("span",{className:"agent-floor__legend-item",children:[e.jsx("span",{className:"agent-floor__legend-swatch is-msg"}),"message"]}),e.jsxs("span",{className:"agent-floor__legend-item",children:[e.jsx("span",{className:"agent-floor__legend-pulse"}),"actors follow recent activity"]}),e.jsxs("button",{type:"button",className:"agent-floor__legend-flip",hidden:!c,onClick:tt,title:"Flip which side history accumulates on",children:["past ",he?"→":"←"]}),e.jsx("span",{className:"agent-floor__legend-note",children:"Rooms open their own sheets · actors open task details · History retains the trace"})]})]})}export{An as AgentFloorView};
@@ -1 +1 @@
1
- import{j as e,r as j}from"./index-DReVb7jZ.js";import{a as F,S as z}from"./SpriteAvatar-aHeF4ZQZ.js";import{f as A}from"./agent-floor-actor-DW8zLht0.js";import{l as D}from"./agent-lanes-model-DMAdqCmK.js";/* empty css */import{F as E,a as T,b as R,f as q,c as B}from"./agent-floor-world-layout-hfMjuoui.js";import{C as G}from"./coffee-ljG1_krY.js";import{T as H}from"./terminal-DMZjX1es.js";import{R as P}from"./radio-Cas2qg1D.js";import{F as U}from"./file-code-corner-Be6da5l3.js";import{G as Z}from"./git-branch-DcUCsWdJ.js";import"./agent-state-DDhnFEEP.js";import"./lane-observe-CteDwdD-.js";import"./time-Dhsh_2EG.js";import"./tail-display-DHSNmvor.js";import"./lane-edit-display-BjdT9oZl.js";import"./lane-ask-display-BTVSakyo.js";import"./context-budget-8qFKqM-j.js";import"./terminal-sessions-3RfJpen8.js";import"./api-DSqpVKC7.js";import"./createLucideIcon-ChvMq-zl.js";const J=[{id:"home",name:"Crew quarters",detail:"Ready · quiet · attention",...R.home,icon:G},{id:"tools",name:"Execution lab",detail:"Tools & runtime",...R.tools,icon:H},{id:"message",name:"Communications",detail:"Messages & requests",...R.message,icon:P},{id:"edit",name:"Build workshop",detail:"Files & patches",...R.edit,icon:U}];function K({lane:t,berth:u,now:g,selected:x,motionPaused:h,instant:w,onFocus:d,onSelect:M}){const a=A(t,g),r=q(a.station,u),_=j.useRef(null),s=j.useRef(`translate(${r.x}px, ${r.y}px)`),m=j.useRef(!1),[f,n]=j.useState(!1),i=F(t.agent),l=D(t.agent,t.source),y=t.id.replace(/[^a-zA-Z0-9]/g,"").slice(-4),$=t.facts?.currentTask||t.facts?.branch||t.agent.harness||"Observed session";return j.useEffect(()=>{const p=_.current;if(!p)return;const b=(o,c)=>`translate(${o}px, ${c}px)`,N=window.matchMedia("(prefers-reduced-motion: reduce)"),S=new DOMMatrixReadOnly(getComputedStyle(p).transform),k=m.current?{x:S.m41,y:S.m42}:r;if(h){m.current=!0,n(!1);return}p.style.transform=b(r.x,r.y);const I=Math.hypot(k.x-r.x,k.y-r.y);if(!m.current||I<1||N.matches||w){m.current=!0,n(!1);return}const O=B(k,r);let v=0;const W=O.map((o,c)=>(c&&(v+=Math.hypot(o.x-O[c-1].x,o.y-O[c-1].y)),v)),C=p.animate(O.map((o,c)=>({transform:b(o.x,o.y),offset:W[c]/v})),{duration:Math.min(4200,Math.max(900,v*5)),easing:"linear"});n(!0),C.onfinish=()=>n(!1);const L=()=>{N.matches&&(C.cancel(),n(!1))};return N.addEventListener("change",L),()=>{const o=new DOMMatrixReadOnly(getComputedStyle(p).transform);C.cancel(),p.style.transform=b(o.m41,o.m42),N.removeEventListener("change",L)}},[r.x,r.y,h,w]),e.jsxs("button",{ref:_,type:"button",style:{transform:s.current},className:`floor-world__actor is-${a.posture}${x?" is-selected":""}${f?" is-moving":""}`,"data-station":a.station,"aria-pressed":x,"aria-label":`${l} ${y}, ${a.label}. Inspect actor`,onClick:()=>M(t),onMouseEnter:()=>d(t.id),onMouseLeave:()=>d(null),onFocus:()=>d(t.id),onBlur:()=>d(null),children:[e.jsx("span",{className:"floor-world__actor-shadow"}),e.jsx("span",{className:"floor-world__ring"}),e.jsx("span",{className:"floor-world__sprite",children:e.jsx(z,{name:t.agent.name,size:44,hue:i.hue,tone:i.tone,glow:!1})}),a.posture==="attention"||a.posture==="blocked"?e.jsx("span",{className:"floor-world__alert",children:"!"}):null,e.jsxs("span",{className:"floor-world__actor-name",children:[l,e.jsx("small",{children:y})]}),e.jsx("span",{className:"floor-world__actor-action",children:f?"Moving":a.label}),x?e.jsx("span",{className:"floor-world__thought",children:$.slice(0,150)}):null]})}function _e({berths:t,lanes:u,now:g,selectedId:x,motionPaused:h,instant:w,onFocus:d,onSelect:M,onFocusRoom:a}){const r=u.map(s=>A(s,g)),_=r.filter(s=>s.posture==="attention"||s.posture==="blocked").length;return e.jsxs("div",{className:`floor-world${h?" is-motion-paused":""}`,style:{width:T,height:E,left:-T/2,top:-E/2},children:[e.jsxs("div",{className:"floor-world__passage",children:[e.jsx("span",{children:"SCOUT / OPERATIONS"}),e.jsx("span",{children:_?`${_} need attention`:"Live observation"})]}),e.jsx("div",{className:"floor-world__spine"}),J.map(s=>{const m=s.icon,f=r.filter(i=>i.station===s.id),n=f.some(i=>i.posture==="working");return e.jsxs("section",{className:`floor-world__room is-${s.id}${n?" is-active":""}`,style:{left:s.x,top:s.y},"aria-label":`${s.name}, ${f.length} actors`,children:[e.jsx("header",{children:e.jsxs("button",{type:"button","aria-label":`Inspect ${s.name}`,onClick:()=>a(s.id,s.x+205,s.y+132),children:[e.jsx(m,{size:20}),e.jsxs("span",{children:[e.jsx("strong",{children:s.name}),e.jsx("small",{children:s.detail})]}),e.jsx("span",{className:"floor-world__room-count",children:f.length})]})}),e.jsx("div",{className:"floor-world__furniture","aria-hidden":"true",children:Array.from({length:8},(i,l)=>e.jsxs("span",{className:`floor-world__console${u.some((y,$)=>t[y.id]===l&&r[$]?.station===s.id)?" is-occupied":""}`,style:{left:65+l%4*94,top:83+Math.floor(l/4)*94},children:[e.jsxs("span",{className:"floor-world__screen",children:[e.jsx("i",{}),e.jsx("i",{}),e.jsx("i",{})]}),e.jsx("span",{className:"floor-world__keyboard"})]},l))}),e.jsx("span",{className:"floor-world__door","aria-hidden":"true"})]},s.id)}),e.jsx("div",{className:"floor-world__center-mark","aria-hidden":"true",children:e.jsx(Z,{size:24})}),u.map(s=>e.jsx(K,{lane:s,berth:t[s.id]??0,now:g,instant:w,motionPaused:h,selected:x===s.id,onFocus:d,onSelect:M},s.id))]})}export{_e as AgentFloorWorld,E as FLOOR_WORLD_HEIGHT,T as FLOOR_WORLD_WIDTH};
1
+ import{j as e,r as j}from"./index-EsrkGBcv.js";import{a as F,S as z}from"./SpriteAvatar-CpZWf54-.js";import{f as A}from"./agent-floor-actor-DW8zLht0.js";import{l as D}from"./agent-lanes-model-DMAdqCmK.js";/* empty css */import{F as E,a as T,b as R,f as q,c as B}from"./agent-floor-world-layout-hfMjuoui.js";import{C as G}from"./coffee-D7EAOdCk.js";import{T as H}from"./terminal-hQKQygcf.js";import{R as P}from"./radio-DRoOZsws.js";import{F as U}from"./file-code-corner-CsU7jJpu.js";import{G as Z}from"./git-branch-B0_fPLO7.js";import"./agent-state-DDhnFEEP.js";import"./lane-observe-CteDwdD-.js";import"./time-Dhsh_2EG.js";import"./tail-display-DHSNmvor.js";import"./lane-edit-display-BjdT9oZl.js";import"./lane-ask-display-BTVSakyo.js";import"./context-budget-8qFKqM-j.js";import"./terminal-sessions-3RfJpen8.js";import"./api-DSqpVKC7.js";import"./createLucideIcon-zZ8Hx7er.js";const J=[{id:"home",name:"Crew quarters",detail:"Ready · quiet · attention",...R.home,icon:G},{id:"tools",name:"Execution lab",detail:"Tools & runtime",...R.tools,icon:H},{id:"message",name:"Communications",detail:"Messages & requests",...R.message,icon:P},{id:"edit",name:"Build workshop",detail:"Files & patches",...R.edit,icon:U}];function K({lane:t,berth:u,now:g,selected:x,motionPaused:h,instant:w,onFocus:d,onSelect:M}){const a=A(t,g),r=q(a.station,u),_=j.useRef(null),s=j.useRef(`translate(${r.x}px, ${r.y}px)`),m=j.useRef(!1),[f,n]=j.useState(!1),i=F(t.agent),l=D(t.agent,t.source),y=t.id.replace(/[^a-zA-Z0-9]/g,"").slice(-4),$=t.facts?.currentTask||t.facts?.branch||t.agent.harness||"Observed session";return j.useEffect(()=>{const p=_.current;if(!p)return;const b=(o,c)=>`translate(${o}px, ${c}px)`,N=window.matchMedia("(prefers-reduced-motion: reduce)"),S=new DOMMatrixReadOnly(getComputedStyle(p).transform),k=m.current?{x:S.m41,y:S.m42}:r;if(h){m.current=!0,n(!1);return}p.style.transform=b(r.x,r.y);const I=Math.hypot(k.x-r.x,k.y-r.y);if(!m.current||I<1||N.matches||w){m.current=!0,n(!1);return}const O=B(k,r);let v=0;const W=O.map((o,c)=>(c&&(v+=Math.hypot(o.x-O[c-1].x,o.y-O[c-1].y)),v)),C=p.animate(O.map((o,c)=>({transform:b(o.x,o.y),offset:W[c]/v})),{duration:Math.min(4200,Math.max(900,v*5)),easing:"linear"});n(!0),C.onfinish=()=>n(!1);const L=()=>{N.matches&&(C.cancel(),n(!1))};return N.addEventListener("change",L),()=>{const o=new DOMMatrixReadOnly(getComputedStyle(p).transform);C.cancel(),p.style.transform=b(o.m41,o.m42),N.removeEventListener("change",L)}},[r.x,r.y,h,w]),e.jsxs("button",{ref:_,type:"button",style:{transform:s.current},className:`floor-world__actor is-${a.posture}${x?" is-selected":""}${f?" is-moving":""}`,"data-station":a.station,"aria-pressed":x,"aria-label":`${l} ${y}, ${a.label}. Inspect actor`,onClick:()=>M(t),onMouseEnter:()=>d(t.id),onMouseLeave:()=>d(null),onFocus:()=>d(t.id),onBlur:()=>d(null),children:[e.jsx("span",{className:"floor-world__actor-shadow"}),e.jsx("span",{className:"floor-world__ring"}),e.jsx("span",{className:"floor-world__sprite",children:e.jsx(z,{name:t.agent.name,size:44,hue:i.hue,tone:i.tone,glow:!1})}),a.posture==="attention"||a.posture==="blocked"?e.jsx("span",{className:"floor-world__alert",children:"!"}):null,e.jsxs("span",{className:"floor-world__actor-name",children:[l,e.jsx("small",{children:y})]}),e.jsx("span",{className:"floor-world__actor-action",children:f?"Moving":a.label}),x?e.jsx("span",{className:"floor-world__thought",children:$.slice(0,150)}):null]})}function _e({berths:t,lanes:u,now:g,selectedId:x,motionPaused:h,instant:w,onFocus:d,onSelect:M,onFocusRoom:a}){const r=u.map(s=>A(s,g)),_=r.filter(s=>s.posture==="attention"||s.posture==="blocked").length;return e.jsxs("div",{className:`floor-world${h?" is-motion-paused":""}`,style:{width:T,height:E,left:-T/2,top:-E/2},children:[e.jsxs("div",{className:"floor-world__passage",children:[e.jsx("span",{children:"SCOUT / OPERATIONS"}),e.jsx("span",{children:_?`${_} need attention`:"Live observation"})]}),e.jsx("div",{className:"floor-world__spine"}),J.map(s=>{const m=s.icon,f=r.filter(i=>i.station===s.id),n=f.some(i=>i.posture==="working");return e.jsxs("section",{className:`floor-world__room is-${s.id}${n?" is-active":""}`,style:{left:s.x,top:s.y},"aria-label":`${s.name}, ${f.length} actors`,children:[e.jsx("header",{children:e.jsxs("button",{type:"button","aria-label":`Inspect ${s.name}`,onClick:()=>a(s.id,s.x+205,s.y+132),children:[e.jsx(m,{size:20}),e.jsxs("span",{children:[e.jsx("strong",{children:s.name}),e.jsx("small",{children:s.detail})]}),e.jsx("span",{className:"floor-world__room-count",children:f.length})]})}),e.jsx("div",{className:"floor-world__furniture","aria-hidden":"true",children:Array.from({length:8},(i,l)=>e.jsxs("span",{className:`floor-world__console${u.some((y,$)=>t[y.id]===l&&r[$]?.station===s.id)?" is-occupied":""}`,style:{left:65+l%4*94,top:83+Math.floor(l/4)*94},children:[e.jsxs("span",{className:"floor-world__screen",children:[e.jsx("i",{}),e.jsx("i",{}),e.jsx("i",{})]}),e.jsx("span",{className:"floor-world__keyboard"})]},l))}),e.jsx("span",{className:"floor-world__door","aria-hidden":"true"})]},s.id)}),e.jsx("div",{className:"floor-world__center-mark","aria-hidden":"true",children:e.jsx(Z,{size:24})}),u.map(s=>e.jsx(K,{lane:s,berth:t[s.id]??0,now:g,instant:w,motionPaused:h,selected:x===s.id,onFocus:d,onSelect:M},s.id))]})}export{_e as AgentFloorWorld,E as FLOOR_WORLD_HEIGHT,T as FLOOR_WORLD_WIDTH};
@@ -0,0 +1 @@
1
+ import{r as d,j as a,C as Z,p as ee}from"./index-EsrkGBcv.js";/* empty css *//* empty css */import{c as ae,b as te}from"./agent-state-DDhnFEEP.js";import{m as se,c as le}from"./conversation-model-FxDeWlle.js";import{s as oe}from"./colors-CFlbwC25.js";import{a as U}from"./api-DSqpVKC7.js";import{u as re}from"./sse-BCPRocpq.js";import{b as ne,t as ie}from"./time-Dhsh_2EG.js";import{f as h}from"./runtime-picker-DXu2bOTh.js";import{u as ce}from"./Provider-C35yu29I.js";import{o as ue}from"./openContent-C6XO6kr5.js";import{B as L}from"./BackToPicker-CUkjnoVk.js";import{A as de}from"./AgentLiveActions-CfTupTEl.js";import{c as pe}from"./AgentAvatar-CrP1eXxk.js";import{C as me}from"./CrewStage-vdO0qm3D.js";import{S as he}from"./SessionHopMenu-E6VJZrE0.js";import{O as fe}from"./ObservedTopologyPanel-CUTIoLZJ.js";import{a as ve}from"./NewChatComposer-C97-iTMK.js";import"./conversations-DoAAO6kA.js";import"./index-BWHgHrtv.js";import"./scout-voice-CZx60X6E.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-OvccU82H.js";import"./createLucideIcon-zZ8Hx7er.js";import"./router-DCtl8wqb.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-3RfJpen8.js";import"./theme-vars-DNK0nn3k.js";import"./provider-Dojd8quC.js";import"./machine-scope-DJt9RZ2w.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-Bk3nyrkj.js";import"./model-CBkMvT1w.js";import"./DocumentFocusViewer-DJr0v0D_.js";import"./TextDocumentSurface-D52m7Vd8.js";import"./file-text-CnISiiw6.js";import"./x-DAehov0E.js";import"./index-CHD0qcfL.js";import"./chevron-right-DrfqcerI.js";import"./folder-D5prSkzz.js";import"./chevron-up-CETZJzjV.js";import"./code-xml-BhcNbLWU.js";import"./arrow-left-MVUKauwQ.js";import"./arrow-right-Bp-FpE5V.js";import"./voice-turn-ledger-BMZxlSjg.js";import"./keyboard-nav-DDHegDbx.js";import"./media-blobs-Bi8pxr1u.js";import"./chunk-HRAB3GC3-DbVLgbWX.js";import"./terminal-takeover-Ay5C2c-M.js";import"./eye-LrO-cXQt.js";import"./terminal-hQKQygcf.js";import"./SpriteAvatar-CpZWf54-.js";import"./CrewAvatar-kTznzqcO.js";import"./HarnessMark-C4naWc16.js";import"./external-link-CUObqmgX.js";import"./index-724SdE6r.js";import"./NewChatOrigin-DFbF_XvR.js";import"./chevron-down-l1mrh5S9.js";import"./search-DT42oyRW.js";function S({values:t}){return a.jsx("span",{className:"s-agent-token-list",children:t.map(s=>a.jsx("span",{className:"s-agent-token",children:s},s))})}function o({value:t}){return a.jsx("span",{className:"s-agent-code-value",children:t})}function A({label:t,value:s}){return s?.trim()?a.jsxs("span",{className:"s-agent-profile-chip",children:[a.jsx("span",{className:"s-agent-profile-chip-label",children:t}),a.jsx("span",{className:"s-agent-profile-chip-value",children:s})]}):null}function E(t){return(t??"").toLowerCase().replace(/[^a-z0-9]+/g,"")}function ge(t){return t.trim().replace(/^@+/,"").replace(/^(project|agent|session)[-_.:\s]+/iu,"").split(/[-_\s·]+/u).filter(Boolean).map(s=>s.slice(0,1).toUpperCase()+s.slice(1)).join(" ")}function be(t,s,i,c){let r=t.trim().replace(/^@+/,"");const l=[s,i,c,c?h(c):null].filter(p=>!!p?.trim());for(const p of l){const v=p.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r=r.replace(new RegExp(`^${v}[-_.:\\s·]+`,"iu"),"")}return r}function xe(t,s,i,c){const r=s?.participants?.find(m=>m.agentId===t.id||m.actorId===t.id),l=E(t.harness),p=E(i),v=[r?.scopedAlias,s?.alias,t.handle,r?.displayName,s?.agentName,t.name];for(const m of v){if(!m?.trim())continue;const g=be(m,i,c,t.harness),f=ge(g),b=E(f);if(!(!b||b===p||b===l))return f}return null}function je(t){const s=t?.trim();return s?s.toLowerCase()==="a2a"?"A2A":h(s)??s:null}function Ne({name:t,url:s}){return s?a.jsx("a",{href:s,target:"_blank",rel:"noreferrer",children:t}):a.jsx(a.Fragment,{children:t})}function N({title:t,subtitle:s,items:i,variant:c}){return i.length===0?null:a.jsxs("section",{className:`s-agent-profile-card${c?` s-agent-profile-card-${c}`:""}`,children:[a.jsx("div",{className:"s-agent-profile-card-header",children:a.jsxs("div",{children:[a.jsx("div",{className:"s-agent-profile-card-title",children:t}),s&&a.jsx("div",{className:"s-agent-profile-card-subtitle",children:s})]})}),a.jsx("div",{className:"s-agent-meta-card-body",children:i.map(r=>a.jsxs("div",{className:"s-agent-meta-row",children:[a.jsx("span",{className:"s-agent-meta-label",children:r.label}),a.jsx("span",{className:"s-agent-meta-value",children:r.value})]},r.label))})]})}function ye({slug:t,hue:s}){const[i,c]=d.useState(!1);return d.useEffect(()=>{if(!i)return;const r=l=>{l.key==="Escape"&&c(!1)};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[i]),a.jsx("div",{className:"s-agent-hero-stage-box","data-open":i?"true":"false",children:a.jsx(me,{className:"s-agent-hero-stage",slug:t,open:i,onToggle:()=>c(r=>!r),coin:96,figure:224,radius:14,floor:!0,hue:s})})}function $a({conversationId:t,navigate:s}){const i=ce(),{agents:c,route:r}=i,[l,p]=d.useState(null),[v,m]=d.useState(!1),[g,f]=d.useState(null),[b,z]=d.useState(null),[y,B]=d.useState(null),I=d.useCallback(async()=>{B(null);try{const n=await U(`/api/session/${encodeURIComponent(t)}`).catch(()=>null);p(n)}catch(n){B(n instanceof Error?n.message:String(n)),p(null)}finally{m(!0)}},[t]);d.useEffect(()=>{m(!1),I()},[I]),re(()=>{I()});const u=l?.agentId??null;d.useEffect(()=>{if(!u||c.some(T=>T.id===u)){f(null);return}let n=!1;return U(`/api/agents/${encodeURIComponent(u)}`).then(T=>{n||f(T)}).catch(()=>{n||f(null)}).finally(()=>{n||z(u)}),()=>{n=!0}},[c,u]);const e=d.useMemo(()=>u?c.find(n=>n.id===u)??(g?.id===u?g:null):null,[g,c,u]);if(!e)return!v||u!==null&&b!==u?a.jsxs("div",{children:[a.jsx(L,{slot:"agent-info",fallback:{view:"conversation",conversationId:t},navigate:s}),a.jsx("div",{className:"s-empty",children:a.jsx("p",{children:"Loading…"})})]}):a.jsxs("div",{children:[a.jsx(L,{slot:"agent-info",fallback:{view:"conversation",conversationId:t},navigate:s}),y&&a.jsx("p",{className:"s-error",children:y}),a.jsx("div",{className:"s-empty",children:a.jsx("p",{children:"Agent not found"})})]});const _=se(e),C=e.handle?`@${e.handle.replace(/^@+/,"")}`:null,P=e.selector??e.defaultSelector??C,D=ae(e.state),H=e.authorityNodeName?`${e.authorityNodeName} (${e.authorityNodeId??"unknown"})`:e.authorityNodeId,F=e.homeNodeName?`${e.homeNodeName} (${e.homeNodeId??"unknown"})`:e.homeNodeId,$=e.skills??[],x=je(e.protocol),w=!!(e.providerName||x||$.length>0),M=ve(e),j=M.title,{castSlug:R}=pe(i,{agent:{id:e.id,name:e.name}}),W=i.appearanceDetails?.avatarStyle!=="sprite"&&R&&Z[R]?R:null,k=xe(e,l,j,M.slug),Q=k?`${j} · ${k}`:j,O=l?.participants?.find(n=>n.agentId===e.id||n.actorId===e.id),q=e.model&&e.harness&&e.model.startsWith(`${e.harness}-`)?e.model.slice(e.harness.length+1):e.model,K=[h(e.harness??"")??e.harness,q].filter(n=>!!n).join(" · "),V=[{label:"Project",value:j},{label:"Alias",value:k??"Default project participant"},...P?[{label:"Primary selector",value:a.jsx(o,{value:P})}]:[],...O?.scopedAlias?[{label:"Scoped alias",value:a.jsx(o,{value:O.scopedAlias})}]:[],...C?[{label:"Handle",value:a.jsx(o,{value:C})}]:[],...e.defaultSelector&&e.defaultSelector!==e.selector?[{label:"Default selector",value:a.jsx(o,{value:e.defaultSelector})}]:[],{label:"Definition",value:a.jsx(o,{value:e.definitionId})}],G=[{label:"Routable agent ID",value:a.jsx(o,{value:e.id})},...e.providerName?[{label:"Provider",value:a.jsx(Ne,{name:e.providerName,url:e.providerUrl})}]:[],...x?[{label:"Protocol",value:x}]:[],...$.length>0?[{label:"Skills",value:a.jsx(S,{values:$})}]:[],...w?[]:[{label:"Class",value:h(e.agentClass)??"—"}],...!w&&e.role?[{label:"Role",value:h(e.role)??e.role}]:[],...e.authorityProfile?[{label:"Authority profile",value:a.jsx(o,{value:e.authorityProfile.roleId})}]:[],...e.workspaceQualifier?[{label:"Workspace qualifier",value:a.jsx(o,{value:e.workspaceQualifier})}]:[],...e.nodeQualifier?[{label:"Node qualifier",value:a.jsx(o,{value:e.nodeQualifier})}]:[],...e.staleLocalRegistration?[{label:"Registration",value:e.replacedByAgentId?`Superseded by ${e.replacedByAgentId}`:"Historical registration"}]:[],...e.retiredFromFleet?[{label:"Fleet state",value:"Retired"}]:[]],J=[...e.projectRoot?[{label:"Project path",value:a.jsx(o,{value:e.projectRoot})}]:[],...e.cwd?[{label:"Working dir",value:a.jsx(o,{value:e.cwd})}]:[],...e.branch?[{label:"Branch",value:e.branch}]:[],...H?[{label:"Authority node",value:a.jsx(o,{value:H})}]:[],...F?[{label:"Home node",value:a.jsx(o,{value:F})}]:[],...e.ownerId?[{label:"Owner",value:e.ownerName?`${e.ownerName} (${e.ownerId})`:e.ownerId}]:[],...e.conversationId?[{label:"Direct conversation",value:a.jsx(o,{value:e.conversationId})}]:[]],X=[...!w&&e.harness?[{label:"Harness",value:e.harness}]:[],...e.model?[{label:"Model",value:e.model}]:[],...!w&&e.transport?[{label:"Transport",value:h(e.transport)??e.transport}]:[],...e.wakePolicy?[{label:"Wake policy",value:h(e.wakePolicy)??e.wakePolicy}]:[],...e.harnessSessionId?[{label:x?`${x} session`:"Harness session",value:a.jsx(o,{value:e.harnessSessionId})}]:[],...e.harnessLogPath?[{label:"Harness log",value:a.jsx(o,{value:e.harnessLogPath})}]:[],...e.capabilities.length>0?[{label:"Capabilities",value:a.jsx(S,{values:e.capabilities})}]:[],...e.authorityProfile?.readTools.length?[{label:"Broker reads",value:a.jsx(S,{values:e.authorityProfile.readTools})}]:[],...e.authorityProfile?.writeTools.length?[{label:"Broker writes",value:a.jsx(S,{values:e.authorityProfile.writeTools})}]:[],...e.authorityProfile?[{label:"Machine access",value:`shell ${e.authorityProfile.shell?"allowed":"blocked"} · code writes ${e.authorityProfile.codebaseWrites?"allowed":"blocked"}`}]:[],...e.runtimePolicy?.sandbox?[{label:"Sandbox",value:e.runtimePolicy.sandbox}]:[]],Y=[{label:"Conversation ID",value:a.jsx(o,{value:t})},...l?.alias?[{label:"Conversation alias",value:a.jsx(o,{value:l.alias})}]:[],...l?.naturalKey?[{label:"Natural key",value:a.jsx(o,{value:l.naturalKey})}]:[],...l?.workspaceRoot?[{label:"Workspace",value:a.jsx(o,{value:l.workspaceRoot})}]:[],...l?.currentBranch?[{label:"Session branch",value:l.currentBranch}]:[],...l?.messageCount!=null?[{label:"Messages",value:String(l.messageCount)}]:[],...l?.lastMessageAt?[{label:"Last message",value:ne(l.lastMessageAt)}]:[]];return a.jsxs("div",{className:"s-agent-profile-page",children:[a.jsxs("div",{className:"s-agent-profile-page-topbar",children:[a.jsx(L,{slot:"agent-info",fallback:{view:"conversation",conversationId:t},navigate:s}),a.jsx("button",{type:"button",className:"s-btn",onClick:()=>s({view:"agents-v2",agentId:e.id}),children:"Open in Agents"})]}),y&&a.jsx("p",{className:"s-error",children:y}),a.jsxs("section",{className:"s-agent-profile-hero",children:[a.jsx("div",{className:"s-agent-profile-hero-main",children:a.jsxs("div",{className:"s-agent-profile-hero-title-row",children:[W?a.jsx(ye,{slug:W,hue:ee(e.project??"openscout")}):a.jsx("div",{className:"s-avatar s-agent-profile-hero-avatar",children:e.name[0].toUpperCase()}),a.jsxs("div",{className:"s-agent-profile-hero-copy",children:[a.jsxs("div",{className:"s-agent-casefile-title-meta",children:[a.jsx("span",{className:"s-agent-casefile-record",children:P??_??le(e.id)??e.id}),D&&a.jsxs("span",{className:`s-agent-state-chip s-agent-state-chip-${te(e.state)}`,children:[a.jsx("span",{className:"s-dot",style:{background:oe(e.state)}}),D]}),e.staleLocalRegistration&&a.jsx("span",{className:"s-agent-state-chip s-agent-state-chip-offline",children:"Superseded registration"})]}),a.jsx("h1",{className:"s-agent-profile-hero-title",children:Q}),a.jsxs("div",{className:"s-agent-profile-hero-tags",children:[a.jsx(A,{label:"Project",value:j}),a.jsx(A,{label:"Alias",value:k??"Default"}),a.jsx(A,{label:"Runtime",value:K||null}),a.jsx(A,{label:"Host",value:e.homeNodeName?.replace(/\.local$/i,"")??null})]}),a.jsxs("p",{className:"s-agent-profile-hero-context",children:[l?.title?`Conversation: ${l.title}.`:"Attached to this conversation.",e.updatedAt?` Updated ${ie(e.updatedAt)}.`:""]})]})]})}),a.jsxs("div",{className:"s-agent-profile-hero-actions",children:[a.jsx(de,{agent:e,navigate:s,returnTo:r}),a.jsx(he,{className:"s-btn",label:"Terminal",hints:{agentId:e.id,sessionRefs:[e.harnessSessionId,l?.harnessSessionId,l?.id]},navigate:s,returnTo:r}),a.jsx("button",{type:"button",className:"s-btn s-btn-primary",onClick:()=>ue(s,{view:"conversation",conversationId:t},{returnTo:r}),children:"Open conversation"})]})]}),a.jsxs("div",{className:"s-agent-profile-grid",children:[a.jsx(N,{title:"Stable alias",subtitle:"Repeatable project identity used to route future work.",items:V,variant:"primary"}),a.jsx(N,{title:"Current conversation",subtitle:"Unique DM/context attached to this page.",items:Y}),a.jsx(N,{title:"Runtime instance",subtitle:"Concrete harness state for the current attachment.",items:X}),a.jsx(N,{title:"Location",subtitle:"Where this alias resolves right now.",items:J}),a.jsx(N,{title:"Diagnostics",subtitle:"Broker and provider fields for debugging.",items:G,variant:"secondary"})]}),a.jsx(fe,{title:"Observed harness families",size:"compact",maxAgents:8,maxTasks:4,showEmpty:!0})]})}export{$a as AgentInfoScreen};