@openscout/scout 0.2.106 → 0.2.108

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 (473) hide show
  1. package/README.md +79 -16
  2. package/bin/scoutd +0 -0
  3. package/dist/build-manifest.json +3 -3
  4. package/dist/client/assets/ActivityScreen-C1H-vL0L.js +1 -0
  5. package/dist/client/assets/{AddProjectForm-CusDRiVO.js → AddProjectForm-4sVXmjfN.js} +1 -1
  6. package/dist/client/assets/{AdventureEvidence-CyegKk1V.js → AdventureEvidence-D5wq1vu8.js} +1 -1
  7. package/dist/client/assets/{AdventureReader-X-hbTOi0.js → AdventureReader-BICypcDY.js} +1 -1
  8. package/dist/client/assets/{AdventureScenery-LPXSVP67.js → AdventureScenery-CGEcG0zV.js} +1 -1
  9. package/dist/client/assets/AgentAdventures-5yBt-Zl3.js +1 -0
  10. package/dist/client/assets/{AgentAvatar-CrP1eXxk.js → AgentAvatar-Dn8TUv5W.js} +1 -1
  11. package/dist/client/assets/AgentConfigurationScreen-C0D9WNyL.js +1 -0
  12. package/dist/client/assets/AgentDefinitionsWorkspace-BzcBdC_s.js +1 -0
  13. package/dist/client/assets/{AgentDetailCard-DtHT3sCo.js → AgentDetailCard-CI-ufaEP.js} +1 -1
  14. package/dist/client/assets/AgentFloorView-D8tlGlgy.js +1 -0
  15. package/dist/client/assets/{AgentFloorWorld-CjoIa6jA.js → AgentFloorWorld-DqmnQexg.js} +1 -1
  16. package/dist/client/assets/AgentInfoScreen-BnRhfcFy.js +1 -0
  17. package/dist/client/assets/{AgentLaneCard-BaZ2g-f8.js → AgentLaneCard-pppHFROz.js} +1 -1
  18. package/dist/client/assets/{AgentLaneChrome-TF1SlJSc.js → AgentLaneChrome-RptImDFc.js} +1 -1
  19. package/dist/client/assets/{AgentLaneDetailSheet-EzEPsn3g.js → AgentLaneDetailSheet-BqbwGskh.js} +1 -1
  20. package/dist/client/assets/{AgentLaneSummaryResize-dpp7YvrX.js → AgentLaneSummaryResize-DaIgwyVh.js} +1 -1
  21. package/dist/client/assets/AgentLanesEmbedScreen-De6C4ZOw.js +1 -0
  22. package/dist/client/assets/{AgentLanesPreflight-Ry-aqDTr.js → AgentLanesPreflight-BQfj2twF.js} +1 -1
  23. package/dist/client/assets/{AgentLanesView-BJi9xXz6.js → AgentLanesView-CiISx7pu.js} +1 -1
  24. package/dist/client/assets/{AgentLiveActions-CfTupTEl.js → AgentLiveActions-CkRGkv13.js} +1 -1
  25. package/dist/client/assets/AgentMasterScreen-CijN_4tN.js +1 -0
  26. package/dist/client/assets/{AgentSessions-B1gOhDBf.js → AgentSessions-ghjQcSrh.js} +2 -2
  27. package/dist/client/assets/AgentsConsole-D8upjDpn.js +1 -0
  28. package/dist/client/assets/AgentsScreen-C17BFqjf.js +1 -0
  29. package/dist/client/assets/AgentsSubnav-_1GVC4hj.js +1 -0
  30. package/dist/client/assets/{AstronautSuit-Cchnc4Ug.js → AstronautSuit-Dzu4GOMR.js} +1 -1
  31. package/dist/client/assets/{AtopView-gkEp4y__.js → AtopView-DJK5b3lZ.js} +1 -1
  32. package/dist/client/assets/{BackToPicker-CUkjnoVk.js → BackToPicker-BPU7kbXq.js} +1 -1
  33. package/dist/client/assets/BriefingDetailScreen-CTvFw523.js +1 -0
  34. package/dist/client/assets/{BriefingsScreen-B1HlBMGZ.js → BriefingsScreen-DpVC3OUk.js} +1 -1
  35. package/dist/client/assets/{BrokerMetadataPanel-Dk242Yh_.js → BrokerMetadataPanel-glRVdwkU.js} +1 -1
  36. package/dist/client/assets/BrokerScreen-CqKsBwEx.js +8 -0
  37. package/dist/client/assets/{CastPicker-BXUtPAGC.js → CastPicker-Y29K5kKk.js} +1 -1
  38. package/dist/client/assets/ChannelComposer-D4EY9jVW.js +1 -0
  39. package/dist/client/assets/{ChannelSidebar-e9DOPulb.js → ChannelSidebar-CVmykV4d.js} +1 -1
  40. package/dist/client/assets/{CharacterFamilyPreview-DMfw7UM_.js → CharacterFamilyPreview-Bj8oMD-5.js} +1 -1
  41. package/dist/client/assets/{ChatAvatar-C3a_o5Hj.js → ChatAvatar-BsAOShUr.js} +1 -1
  42. package/dist/client/assets/{ChatBits-CsvxbToF.js → ChatBits-Cq54CmyB.js} +1 -1
  43. package/dist/client/assets/{ChatCollapsedStrip-FEmQ_G9J.js → ChatCollapsedStrip-B0DdrOo2.js} +1 -1
  44. package/dist/client/assets/{ChatRichInput-DhtwFxQE.js → ChatRichInput-DYJRhGTP.js} +1 -1
  45. package/dist/client/assets/ChatRightPanel-D94Lw7ud.js +1 -0
  46. package/dist/client/assets/ChatSpaceSurface-Cp532VmZ.js +1 -0
  47. package/dist/client/assets/{ChatSpaceTheme-CUH8bTZc.js → ChatSpaceTheme-DPzYpw-v.js} +1 -1
  48. package/dist/client/assets/{CodeDiffPane-DuQRwpgK.js → CodeDiffPane-DCgMUi39.js} +1 -1
  49. package/dist/client/assets/{CodeProjectPicker-ZQ6gSBpg.js → CodeProjectPicker-Dq787L77.js} +1 -1
  50. package/dist/client/assets/{CodeScreen-BXyKeL5T.js → CodeScreen-BN4TkiR0.js} +1 -1
  51. package/dist/client/assets/{CommsCanvas-THp0r_U8.js → CommsCanvas-Dh056d91.js} +1 -1
  52. package/dist/client/assets/{CommsDeck-BVmSMV2V.js → CommsDeck-CRXKIerH.js} +1 -1
  53. package/dist/client/assets/{CommsFlowGraph-DxoOaLF_.js → CommsFlowGraph-Cc48o9u_.js} +1 -1
  54. package/dist/client/assets/{CommsFlowMap-Vi8ziCPg.js → CommsFlowMap-Ckasql5e.js} +1 -1
  55. package/dist/client/assets/{CommsSelection-BUoRbu9o.js → CommsSelection-CuphnUny.js} +1 -1
  56. package/dist/client/assets/{ComposerAttachments-DW0AIb8k.js → ComposerAttachments-9uYp_Lh5.js} +1 -1
  57. package/dist/client/assets/ConversationComposer-hYtLurqy.js +1 -0
  58. package/dist/client/assets/ConversationFeedRows-Bu0ZJcy8.js +1 -0
  59. package/dist/client/assets/ConversationHeader-L9738YVP.js +1 -0
  60. package/dist/client/assets/{ConversationPanels-D9oC0xG5.js → ConversationPanels-D6KuqvGu.js} +2 -2
  61. package/dist/client/assets/ConversationScreen-Pzxy9x4m.js +2 -0
  62. package/dist/client/assets/ConversationStatus-BEefIbXq.js +1 -0
  63. package/dist/client/assets/{CrewAvatar-kTznzqcO.js → CrewAvatar-a_C_F9r_.js} +1 -1
  64. package/dist/client/assets/{CrewSprite-Dhryjx2c.js → CrewSprite-CguHb2Ny.js} +1 -1
  65. package/dist/client/assets/{CrewStage-vdO0qm3D.js → CrewStage-IPpS3Oja.js} +1 -1
  66. package/dist/client/assets/{CrewWorkspaces-DCBzAAS4.js → CrewWorkspaces-BTPtcEcx.js} +1 -1
  67. package/dist/client/assets/{DataTable-aH-jCyDq.js → DataTable-DnL_8SAu.js} +1 -1
  68. package/dist/client/assets/{DispatchAftermath-66uQAorV.js → DispatchAftermath-CoAYaL3B.js} +1 -1
  69. package/dist/client/assets/{DocumentFocusViewer-DJr0v0D_.js → DocumentFocusViewer-mxzPxQQW.js} +1 -1
  70. package/dist/client/assets/{EmbeddableSurfacesLab-BBa70EhJ.js → EmbeddableSurfacesLab-BAZ_eRMc.js} +1 -1
  71. package/dist/client/assets/{EmptyState-CZlrHXy-.js → EmptyState-DLiLgtPK.js} +1 -1
  72. package/dist/client/assets/{FileViewerPane-BAO6mtjD.js → FileViewerPane-Dc7AoVod.js} +1 -1
  73. package/dist/client/assets/{FleetRollCallHud-C5q2567n.js → FleetRollCallHud-VhpxVcGO.js} +1 -1
  74. package/dist/client/assets/FlightObserveScreen-C1kASP3J.js +1 -0
  75. package/dist/client/assets/{FloorContextSheet-2_NVPQor.js → FloorContextSheet-BfrXNoBn.js} +1 -1
  76. package/dist/client/assets/{FloorExchangePanel-BU1pPu8K.js → FloorExchangePanel-DsG1cRzu.js} +1 -1
  77. package/dist/client/assets/{FloorMessagePasses-cLW2UGNP.js → FloorMessagePasses-Cm3LbkHd.js} +1 -1
  78. package/dist/client/assets/{FloorReplay-VFzA6Kxc.js → FloorReplay-Bg7kA-tR.js} +1 -1
  79. package/dist/client/assets/FloorResourcesSheet-Ba9HubO2.js +1 -0
  80. package/dist/client/assets/{FloorSavedWork-BeHDejWz.js → FloorSavedWork-BDOvV3mA.js} +1 -1
  81. package/dist/client/assets/{FloorTacticalHUD-CO-iiFpb.js → FloorTacticalHUD-4d-Hr-YL.js} +1 -1
  82. package/dist/client/assets/{FollowScreen-CFfkIbc6.js → FollowScreen-DFVSlsQV.js} +1 -1
  83. package/dist/client/assets/{HarnessMark-C4naWc16.js → HarnessMark-CP-PWk2W.js} +1 -1
  84. package/dist/client/assets/HarnessesScreen-j-91IoOo.js +1 -0
  85. package/dist/client/assets/{HerdrSession-_t7yM8vX.js → HerdrSession-H2mmxeTK.js} +1 -1
  86. package/dist/client/assets/{HomeHero-DouPyNmz.js → HomeHero-g4H3Ctxg.js} +1 -1
  87. package/dist/client/assets/{HostAdvisorView-CnM1i8hW.js → HostAdvisorView-Cyt3b5Fq.js} +1 -1
  88. package/dist/client/assets/{InviteLandingScreen-CEjG2E34.js → InviteLandingScreen-C3DtAGD4.js} +1 -1
  89. package/dist/client/assets/{InviteSheet-CwxZtWCl.js → InviteSheet-BiGMNpsE.js} +1 -1
  90. package/dist/client/assets/{JumpPalette-O1aJE9gR.js → JumpPalette-goXAVByA.js} +1 -1
  91. package/dist/client/assets/{KnowledgeSearchInspector-32n9baT-.js → KnowledgeSearchInspector-BbOQIqdF.js} +1 -1
  92. package/dist/client/assets/KnowledgeSearchScreen-DC8yX-kA.js +1 -0
  93. package/dist/client/assets/{LaneToolHoverCard-CJa110yk.js → LaneToolHoverCard-B8Am_1DC.js} +1 -1
  94. package/dist/client/assets/LaneTraceDetailSheet-CngYIxdI.js +1 -0
  95. package/dist/client/assets/{LaneTraceEventFocus-TbrNHRj_.js → LaneTraceEventFocus-BRR_jcl9.js} +1 -1
  96. package/dist/client/assets/{MeshCanvas-DWZHYh1A.js → MeshCanvas-DzkuY_XI.js} +1 -1
  97. package/dist/client/assets/{MeshCanvasMinimap-iswYFpIb.js → MeshCanvasMinimap-BrscEPAH.js} +1 -1
  98. package/dist/client/assets/MeshScreen-CAtRB8K6.js +1 -0
  99. package/dist/client/assets/{MeshTopologyView-BVvtqI8q.js → MeshTopologyView-B1I2dAhu.js} +2 -2
  100. package/dist/client/assets/{MessageEmbeds-ksPazAKH.js → MessageEmbeds-B-FbWI7a.js} +1 -1
  101. package/dist/client/assets/MessagesScreen-hq7D3Lfi.js +1 -0
  102. package/dist/client/assets/{MissionContextRail-D62-Wis8.js → MissionContextRail-ClR8amG1.js} +1 -1
  103. package/dist/client/assets/MissionControlView-D6gbMrgx.js +1 -0
  104. package/dist/client/assets/{MissionFocusOverlay-C1zys3Jv.js → MissionFocusOverlay-CzeNgI9Q.js} +1 -1
  105. package/dist/client/assets/MissionLeftAgentRow-CB3cgeYr.js +1 -0
  106. package/dist/client/assets/{MissionLogPane-B19lYSY9.js → MissionLogPane-2PMEoG44.js} +1 -1
  107. package/dist/client/assets/NativeAreaScreen-BnlrAWT8.js +1 -0
  108. package/dist/client/assets/NativeAreaScreen-DSR5Tf6F.js +1 -0
  109. package/dist/client/assets/NativeAreaScreen-fGsxyeC3.js +1 -0
  110. package/dist/client/assets/{NewAgentModal-Bh-L-emz.js → NewAgentModal-4b_3aoZE.js} +1 -1
  111. package/dist/client/assets/{NewChatComposer-C97-iTMK.js → NewChatComposer-D-VB5vdt.js} +1 -1
  112. package/dist/client/assets/{NewChatOrigin-DFbF_XvR.js → NewChatOrigin-BYsEu9dZ.js} +1 -1
  113. package/dist/client/assets/{NodeDetailPanel-CElOEpCh.js → NodeDetailPanel-9NaEnZAQ.js} +1 -1
  114. package/dist/client/assets/{NodeMenu-B-jjHf1c.js → NodeMenu-BgJMmffZ.js} +1 -1
  115. package/dist/client/assets/{ObserveEmbedScreen-B7Qt69Ms.js → ObserveEmbedScreen-W7Q5HbXP.js} +2 -2
  116. package/dist/client/assets/{ObserveTextFlow-PFnG_10h.js → ObserveTextFlow-C0oQEerY.js} +2 -2
  117. package/dist/client/assets/{ObservedTopologyPanel-CUTIoLZJ.js → ObservedTopologyPanel-Ci7emnnj.js} +1 -1
  118. package/dist/client/assets/OpenScoutAppShell-Di9qdmI0.js +22 -0
  119. package/dist/client/assets/OpsAgentsView-DVotOMg2.js +1 -0
  120. package/dist/client/assets/OpsScreen-C955zgr3.js +1 -0
  121. package/dist/client/assets/OpsSubnav-CjMVj7Sk.js +1 -0
  122. package/dist/client/assets/ProjectAgentProfile-B1VqGSmu.js +1 -0
  123. package/dist/client/assets/{ProjectAgentProfileBar-DHuMKJj-.js → ProjectAgentProfileBar-DhVU7zew.js} +1 -1
  124. package/dist/client/assets/ProjectAgentProfileHero-CJk-Dx4t.js +1 -0
  125. package/dist/client/assets/ProjectsInbox-B7kap8nR.js +2 -0
  126. package/dist/client/assets/ProjectsRail-BhSaqbv0.js +1 -0
  127. package/dist/client/assets/ProjectsScreen-CSb7nwjb.js +1 -0
  128. package/dist/client/assets/ProjectsThreadAside-pEJutIO8.js +1 -0
  129. package/dist/client/assets/{Provider-C35yu29I.js → Provider-BEXAZWd9.js} +2 -2
  130. package/dist/client/assets/{RailRow-BjmWK420.js → RailRow-Ddz90weI.js} +1 -1
  131. package/dist/client/assets/RawSessionsTable-TdKlJIPl.js +1 -0
  132. package/dist/client/assets/RealtimeVoiceScreen-BU5KmlNo.js +8 -0
  133. package/dist/client/assets/{RenderedWorkerSprite-Dhlyg89J.js → RenderedWorkerSprite-BNhFXMIo.js} +1 -1
  134. package/dist/client/assets/{ReplayClock-348f17bW.js → ReplayClock-wLpb4VqN.js} +1 -1
  135. package/dist/client/assets/{ReplayLog-CBnAM3ui.js → ReplayLog-IUyQdklN.js} +1 -1
  136. package/dist/client/assets/{ReplayOutpost-DyRPfNFx.js → ReplayOutpost-C4djhjZJ.js} +1 -1
  137. package/dist/client/assets/{RepoDiffEmbedScreen-BWxvRDrS.js → RepoDiffEmbedScreen-BmQX_8E-.js} +1 -1
  138. package/dist/client/assets/{RepoDiffPageScreen-DN94irmY.js → RepoDiffPageScreen-B9oAjrC6.js} +1 -1
  139. package/dist/client/assets/{RepoDiffViewer-_4JVXBIW.js → RepoDiffViewer-Ch_lIMt-.js} +1 -1
  140. package/dist/client/assets/RepoDiffViewerLazy-DL6A2o_z.js +2 -0
  141. package/dist/client/assets/{ReposScreen-uMCpt0e9.js → ReposScreen-D-E7fSAB.js} +2 -2
  142. package/dist/client/assets/{RiggedWorkerCharacter-q6QRc7_o.js → RiggedWorkerCharacter-CF6fhzGd.js} +1 -1
  143. package/dist/client/assets/{SageModelStudio-CNDhZhgD.js → SageModelStudio-CSet_ITs.js} +1 -1
  144. package/dist/client/assets/{ScoutDeckSurface-CUaU4R6T.js → ScoutDeckSurface-BJ-fl8AX.js} +1 -1
  145. package/dist/client/assets/{ScoutSurface-3_25USO_.js → ScoutSurface-BvFRdce6.js} +1 -1
  146. package/dist/client/assets/{ScoutbotFxLab-CRqhYe0a.js → ScoutbotFxLab-CfPzycZ7.js} +1 -1
  147. package/dist/client/assets/{SecondaryNav-D7dbV2qo.js → SecondaryNav-1FjBDWuY.js} +1 -1
  148. package/dist/client/assets/{SessionContextStrip-CXfs9hUD.js → SessionContextStrip-BoiIxXvS.js} +1 -1
  149. package/dist/client/assets/{SessionEmbedScreen-D0zFmou-.js → SessionEmbedScreen-BizGNGOz.js} +1 -1
  150. package/dist/client/assets/{SessionHopMenu-E6VJZrE0.js → SessionHopMenu-DX6PJPNk.js} +1 -1
  151. package/dist/client/assets/{SessionObserve-DXxBvejJ.js → SessionObserve-Dw3bVQYF.js} +1 -1
  152. package/dist/client/assets/{SessionObserveEvidence-Cuj_KHxR.js → SessionObserveEvidence-uD1OX-R5.js} +1 -1
  153. package/dist/client/assets/SessionRefScreen-Ch9H-qVk.js +1 -0
  154. package/dist/client/assets/SessionsScreen-DUeP23Xy.js +1 -0
  155. package/dist/client/assets/{SettingsDrawer-juCpnbH6.js → SettingsDrawer-BVrP6J52.js} +3 -3
  156. package/dist/client/assets/SettingsScreen-BcJ05LE5.js +1 -0
  157. package/dist/client/assets/{SharedFloorCharacter-DNEiaOUh.js → SharedFloorCharacter-dnamlt1p.js} +1 -1
  158. package/dist/client/assets/SharedWorkFloor-H-e2TVj9.js +2 -0
  159. package/dist/client/assets/{ShikiPane-CRtTYkMj.js → ShikiPane-CDiIT_qn.js} +1 -1
  160. package/dist/client/assets/{SlidePanel-_CHAQdOa.js → SlidePanel-D5oPQocF.js} +1 -1
  161. package/dist/client/assets/{SpaceSwitcher-BLgSCf_T.js → SpaceSwitcher-WccPJ0fS.js} +1 -1
  162. package/dist/client/assets/{SpriteAvatar-CpZWf54-.js → SpriteAvatar-D53GaaK3.js} +1 -1
  163. package/dist/client/assets/{SproutActionSprite-BSiTS4en.js → SproutActionSprite-BrFCmgWS.js} +1 -1
  164. package/dist/client/assets/{StatusPill-2gCP6H7A.js → StatusPill-jT--OXbn.js} +1 -1
  165. package/dist/client/assets/{TailView-CYSijNTy.js → TailView-B44cSuyl.js} +2 -2
  166. package/dist/client/assets/Terminal-D0PanmIk.js +4 -0
  167. package/dist/client/assets/TerminalEmbedScreen-Eddi4sts.js +1 -0
  168. package/dist/client/assets/{TerminalHeaderMount-Cq4OD_xN.js → TerminalHeaderMount-CYYcKxQ-.js} +1 -1
  169. package/dist/client/assets/{TextDocumentSurface-D52m7Vd8.js → TextDocumentSurface-DBslUq9k.js} +1 -1
  170. package/dist/client/assets/{TmuxPeek-CXFeweMg.js → TmuxPeek-Ctw5yYO5.js} +1 -1
  171. package/dist/client/assets/{VoiceControlWell-DF3bjcYA.js → VoiceControlWell-BkjuWjYu.js} +1 -1
  172. package/dist/client/assets/{VoicePathDiagram-CmpHWfO-.js → VoicePathDiagram-u0i6ntbx.js} +1 -1
  173. package/dist/client/assets/{VoicePermissionsPanel-Ok2nfxHw.js → VoicePermissionsPanel-9Nuw-xCr.js} +1 -1
  174. package/dist/client/assets/{VoiceTurnDetails-wAByRaNB.js → VoiceTurnDetails-kS7lfbmt.js} +1 -1
  175. package/dist/client/assets/{VoiceTurnStage-edoJalLV.js → VoiceTurnStage-DLY6aYDg.js} +1 -1
  176. package/dist/client/assets/{VoiceTurnView-D-8g5E4r.js → VoiceTurnView-CF4tIldB.js} +1 -1
  177. package/dist/client/assets/{WorkDetailScreen-zQkNVy2F.js → WorkDetailScreen-BrrkENYq.js} +2 -2
  178. package/dist/client/assets/{WorkFilesViewer-vNt01sDd.js → WorkFilesViewer-B63sKRYZ.js} +1 -1
  179. package/dist/client/assets/{WorkRunView-BDkR7Edq.js → WorkRunView-DLIzAsc3.js} +1 -1
  180. package/dist/client/assets/WorldActorTalk-CHhFTiQV.js +1 -0
  181. package/dist/client/assets/{WorldCharacter-CIIlutQq.js → WorldCharacter-CJGx2DVy.js} +1 -1
  182. package/dist/client/assets/{WorldMinimap-B6HNgcDe.js → WorldMinimap-DL12pBw3.js} +1 -1
  183. package/dist/client/assets/{WorldSky-Jm2Z6dfW.js → WorldSky-BlPNvGLo.js} +1 -1
  184. package/dist/client/assets/{activity-CIlFrfPJ.js → activity-CXkZ620t.js} +1 -1
  185. package/dist/client/assets/{addon-fit-dFpj9Kfq.js → addon-fit-G3qi01sy.js} +1 -1
  186. package/dist/client/assets/{addon-webgl-BFCGRtGh.js → addon-webgl-Bo7kSgOB.js} +1 -1
  187. package/dist/client/assets/{agent-essentials-BGGvT5G6.js → agent-essentials-DnfdGmIX.js} +1 -1
  188. package/dist/client/assets/{agent-specialization-DDc7mLCW.js → agent-specialization-DYX_DSlY.js} +1 -1
  189. package/dist/client/assets/{arc.es-C1SQHJ3k.js → arc.es-CLA3XI14.js} +1 -1
  190. package/dist/client/assets/arrow-down--OUDFWIq.js +1 -0
  191. package/dist/client/assets/{arrow-left-MVUKauwQ.js → arrow-left-DNjQHf4C.js} +1 -1
  192. package/dist/client/assets/{arrow-right-Bp-FpE5V.js → arrow-right-A_yyXwoH.js} +1 -1
  193. package/dist/client/assets/arrow-up-DFy-9ghF.js +1 -0
  194. package/dist/client/assets/{arrow-up-right-BPedAgxO.js → arrow-up-right-DUW1A1Hb.js} +1 -1
  195. package/dist/client/assets/{book-open-CV98WMSp.js → book-open-B_idZgTF.js} +1 -1
  196. package/dist/client/assets/{bot-B4zLQ4IN.js → bot-BNv_ZJzi.js} +1 -1
  197. package/dist/client/assets/{chat-api-DSJMBYoT.js → chat-api-BHGHALv2.js} +1 -1
  198. package/dist/client/assets/{chat-message-markup-91DIry6R.js → chat-message-markup-esR-YLtN.js} +1 -1
  199. package/dist/client/assets/{chat-transport-DNS5CB2I.js → chat-transport-CtxnPLMU.js} +1 -1
  200. package/dist/client/assets/{check-lrJ3a73a.js → check-BM6QtbB7.js} +1 -1
  201. package/dist/client/assets/{chevron-down-l1mrh5S9.js → chevron-down-DEDSNJNY.js} +1 -1
  202. package/dist/client/assets/{chevron-right-DrfqcerI.js → chevron-right-B02kAw12.js} +1 -1
  203. package/dist/client/assets/{chevron-up-CETZJzjV.js → chevron-up-CzveykKG.js} +1 -1
  204. package/dist/client/assets/{chunk-HRAB3GC3-DbVLgbWX.js → chunk-HRAB3GC3-DVhUsgOw.js} +1 -1
  205. package/dist/client/assets/chunk-JTPDIGGW-hdpdYwXb.js +46 -0
  206. package/dist/client/assets/chunk-T65CQEWV-G_Z0lqtn.js +1 -0
  207. package/dist/client/assets/chunk-YOZR3KYS-apgUnfXh.js +2 -0
  208. package/dist/client/assets/{clock-BV1aqPkK.js → clock-8tb9t2t9.js} +1 -1
  209. package/dist/client/assets/{code-xml-BhcNbLWU.js → code-xml-E9gBuiVs.js} +1 -1
  210. package/dist/client/assets/{coffee-D7EAOdCk.js → coffee-D0YEK6-l.js} +1 -1
  211. package/dist/client/assets/{compass-63TUaz5_.js → compass-EmGkpxIe.js} +1 -1
  212. package/dist/client/assets/content-B-rn1rka.js +1 -0
  213. package/dist/client/assets/content-BHV-ZU8_.js +1 -0
  214. package/dist/client/assets/content-BI9yWpWC.js +1 -0
  215. package/dist/client/assets/content-BLVuukzF.js +1 -0
  216. package/dist/client/assets/content-BP3cQkAj.js +1 -0
  217. package/dist/client/assets/content-BRY-UTkP.js +1 -0
  218. package/dist/client/assets/content-BXTmYOPB.js +1 -0
  219. package/dist/client/assets/content-C3DZ77HZ.js +1 -0
  220. package/dist/client/assets/content-CPchclaV.js +1 -0
  221. package/dist/client/assets/{content-nGlEZhUI.js → content-CVqPTQnr.js} +1 -1
  222. package/dist/client/assets/content-CjAERU44.js +1 -0
  223. package/dist/client/assets/content-CoYG0nWL.js +1 -0
  224. package/dist/client/assets/content-DK1KeRPw.js +1 -0
  225. package/dist/client/assets/content-iWBSSXa6.js +1 -0
  226. package/dist/client/assets/content-ryJeaQk8.js +1 -0
  227. package/dist/client/assets/content-srNyLgDt.js +1 -0
  228. package/dist/client/assets/{conversation-icons-Tqba2d56.js → conversation-icons-Dxn9N1Kx.js} +1 -1
  229. package/dist/client/assets/conversation-motion-features-BfmPlONx.js +1 -0
  230. package/dist/client/assets/{copy-xKeM5ZtU.js → copy-C1XrY27_.js} +1 -1
  231. package/dist/client/assets/{cpu-BOTa_WLr.js → cpu-DVZ_LhPn.js} +1 -1
  232. package/dist/client/assets/{createLucideIcon-zZ8Hx7er.js → createLucideIcon-CKbjXlwv.js} +1 -1
  233. package/dist/client/assets/direct-voice-DAOUU-kc.js +10 -0
  234. package/dist/client/assets/discover-BNa3BPr_.js +2 -0
  235. package/dist/client/assets/embed-entry-gK3z8Yxi.js +2 -0
  236. package/dist/client/assets/{external-link-CUObqmgX.js → external-link-Df1R34rX.js} +1 -1
  237. package/dist/client/assets/{eye-LrO-cXQt.js → eye-CD-_aphP.js} +1 -1
  238. package/dist/client/assets/{file-code-corner-CsU7jJpu.js → file-code-corner-DtMWHBN3.js} +1 -1
  239. package/dist/client/assets/{file-text-CnISiiw6.js → file-text-BOJQiS8p.js} +1 -1
  240. package/dist/client/assets/{flag-C4wl8z2-.js → flag-CeKO8NoD.js} +1 -1
  241. package/dist/client/assets/{folder-D5prSkzz.js → folder-C2emmTHq.js} +1 -1
  242. package/dist/client/assets/{gauge-D9_5iJEm.js → gauge-BR5CrhRM.js} +1 -1
  243. package/dist/client/assets/{gestures-QZub3Ot9.js → gestures-Dh8szhcU.js} +1 -1
  244. package/dist/client/assets/{git-branch-B0_fPLO7.js → git-branch-C45vy8qT.js} +1 -1
  245. package/dist/client/assets/{go-shortcuts-DicR7sUf.js → go-shortcuts--25Qg0lD.js} +1 -1
  246. package/dist/client/assets/{home-moving-signal-rpMhsOJB.js → home-moving-signal-BiiyEKEb.js} +1 -1
  247. package/dist/client/assets/home-now-card-DaCpqUZe.js +1 -0
  248. package/dist/client/assets/{home-now-card-nano-B5Dv3-pb.js → home-now-card-nano-wbxgyY4q.js} +1 -1
  249. package/dist/client/assets/hooks-JNwYSH18.js +2 -0
  250. package/dist/client/assets/{index-EsrkGBcv.js → index-BFbLvCJn.js} +2 -2
  251. package/dist/client/assets/index-BRNHY2fp.css +1 -0
  252. package/dist/client/assets/index-BrXaMEdK.js +1 -0
  253. package/dist/client/assets/index-CXzJ_hGx.js +1 -0
  254. package/dist/client/assets/{index-CHD0qcfL.js → index-V8FYEUpD.js} +1 -1
  255. package/dist/client/assets/index-mYtyYeAe.js +1 -0
  256. package/dist/client/assets/{inspector-panel-BkgUDn6G.js → inspector-panel-BgU5xUln.js} +2 -2
  257. package/dist/client/assets/{keyboard-nav-DDHegDbx.js → keyboard-nav-CEe-ApvZ.js} +1 -1
  258. package/dist/client/assets/{lane-roster-store-D-RSWjb-.js → lane-roster-store-MraynTHP.js} +1 -1
  259. package/dist/client/assets/{layers-C8PDiMul.js → layers-ClmyjwpB.js} +1 -1
  260. package/dist/client/assets/{layout-grid-Cor2frzj.js → layout-grid-DG2-JaPn.js} +1 -1
  261. package/dist/client/assets/left-B66YR0c5.js +1 -0
  262. package/dist/client/assets/left-BP5P8lzw.js +2 -0
  263. package/dist/client/assets/left-BbCKRDbW.js +1 -0
  264. package/dist/client/assets/left-CaY5FK2k.js +1 -0
  265. package/dist/client/assets/left-CemrfeSs.js +1 -0
  266. package/dist/client/assets/left-DcYA26sH.js +1 -0
  267. package/dist/client/assets/left-DdMMaqFT.js +2 -0
  268. package/dist/client/assets/left-advisor-DBml48M5.js +1 -0
  269. package/dist/client/assets/left-agents-DowYF2ag.js +1 -0
  270. package/dist/client/assets/left-default-Bifaeg_V.js +1 -0
  271. package/dist/client/assets/left-lanes-BGhjdqpD.js +1 -0
  272. package/dist/client/assets/left-mission-CvXPUovR.js +1 -0
  273. package/dist/client/assets/library-CnC8uzJt.js +1 -0
  274. package/dist/client/assets/{loader-circle-OvccU82H.js → loader-circle-CCG7hG7z.js} +1 -1
  275. package/dist/client/assets/{local-agents-BqnoxJrq.js → local-agents-BMcFlY_x.js} +1 -1
  276. package/dist/client/assets/{log-in-7SnYqW5w.js → log-in-VL9mdgeE.js} +1 -1
  277. package/dist/client/assets/{machine-children-DxcqCLmd.js → machine-children-DvCiQxwA.js} +1 -1
  278. package/dist/client/assets/{mentions-ByUvhS-v.js → mentions-s5oW4aQU.js} +1 -1
  279. package/dist/client/assets/{mesh-ops-CiZ8xSAx.js → mesh-ops-9SzD3sPw.js} +1 -1
  280. package/dist/client/assets/{mesh-view-store-DZvJC4KU.js → mesh-view-store-CVqzYz4K.js} +1 -1
  281. package/dist/client/assets/{message-circle-CxRVKNE-.js → message-circle-BB3rFCVD.js} +1 -1
  282. package/dist/client/assets/{message-markup-Zwo3t4cI.js → message-markup-D1C7GzHo.js} +1 -1
  283. package/dist/client/assets/{message-square-BxesYglW.js → message-square-BwqBIfv5.js} +1 -1
  284. package/dist/client/assets/{mission-control-store-elEEsIvb.js → mission-control-store-e8F85JhP.js} +1 -1
  285. package/dist/client/assets/{monitor-DTTYEb73.js → monitor-M0VSmHQ-.js} +1 -1
  286. package/dist/client/assets/{nav-destinations-uorRqFxf.js → nav-destinations-B3R5zxFX.js} +1 -1
  287. package/dist/client/assets/{observe-BJqERJVj.js → observe-M3rLosT5.js} +1 -1
  288. package/dist/client/assets/{page-status-BswZLqvA.js → page-status-BIuh3C5p.js} +1 -1
  289. package/dist/client/assets/{panel-right-Bv7sP_fc.js → panel-right-WKLdPm0F.js} +1 -1
  290. package/dist/client/assets/{paperclip-BjcuP_Hx.js → paperclip-DLf_ABSv.js} +1 -1
  291. package/dist/client/assets/{pause-C2XTlkjs.js → pause-7mmEEvVx.js} +1 -1
  292. package/dist/client/assets/{persistent-state-KRk_yb0q.js → persistent-state-3mbBFRDO.js} +1 -1
  293. package/dist/client/assets/{pin-C2mFOV1l.js → pin-q_0gAA6i.js} +1 -1
  294. package/dist/client/assets/{play-FT6K3It1.js → play-N5-hnPCV.js} +1 -1
  295. package/dist/client/assets/{plus-DFDDeGKu.js → plus-B0hdY0fF.js} +1 -1
  296. package/dist/client/assets/profile-B7ZGToTo.js +1 -0
  297. package/dist/client/assets/{projects-inbox-C0FUCv_p.js → projects-inbox-CMFBjQt0.js} +1 -1
  298. package/dist/client/assets/{proxy-AJsmwA6h.js → proxy-k0ILOVkK.js} +1 -1
  299. package/dist/client/assets/{radio-DRoOZsws.js → radio-Bjqmv997.js} +1 -1
  300. package/dist/client/assets/{refresh-cw-BmVr7sCD.js → refresh-cw-BcqctLqo.js} +1 -1
  301. package/dist/client/assets/resolve-panes-wzGu9d8o.js +1 -0
  302. package/dist/client/assets/resolve-sidebar-context-C8SOo5oZ.js +1 -0
  303. package/dist/client/assets/right-9rMRZN_r.js +1 -0
  304. package/dist/client/assets/right-BHZq648O.js +1 -0
  305. package/dist/client/assets/{right-DWPVB-nK.js → right-BNJzCaH9.js} +1 -1
  306. package/dist/client/assets/right-CAd7lTvY.js +1 -0
  307. package/dist/client/assets/right-Cc57bCTW.js +1 -0
  308. package/dist/client/assets/right-DY49Prjj.js +1 -0
  309. package/dist/client/assets/right-DfU47xKY.js +1 -0
  310. package/dist/client/assets/right-Dr7vxdZl.js +1 -0
  311. package/dist/client/assets/right-DsE4aR3A.js +1 -0
  312. package/dist/client/assets/right-zlkRjnkv.js +1 -0
  313. package/dist/client/assets/{rocket-CGl4RTV7.js → rocket-BahsdUe6.js} +1 -1
  314. package/dist/client/assets/router-CJIx83Ia.js +1 -0
  315. package/dist/client/assets/runtime-picker-IRcTkMZ5.js +1 -0
  316. package/dist/client/assets/{scope-views-RUWwCVAr.js → scope-views-KDtZoLUC.js} +1 -1
  317. package/dist/client/assets/{scout-voice-CZx60X6E.js → scout-voice-Cdh6pCsb.js} +1 -1
  318. package/dist/client/assets/{scoutbot-markdown-BKEBSbG0.js → scoutbot-markdown-7PRQHaAc.js} +1 -1
  319. package/dist/client/assets/{scroll-text-DNjxhyO2.js → scroll-text-CA0QxBHu.js} +1 -1
  320. package/dist/client/assets/{search-DT42oyRW.js → search-Bv2IONmc.js} +1 -1
  321. package/dist/client/assets/secondaryNavConfig-Bmb-oRvD.js +1 -0
  322. package/dist/client/assets/{selection-bridge-x3wFUjxj.js → selection-bridge-CthAuPRw.js} +1 -1
  323. package/dist/client/assets/{send-horizontal-CH0-fbZE.js → send-horizontal-_Tf_It04.js} +1 -1
  324. package/dist/client/assets/{send-to-agent-session-DoKCDBJ4.js → send-to-agent-session-CWDHHgFB.js} +1 -1
  325. package/dist/client/assets/{server-QfsgMLk1.js → server-U_l8A83n.js} +1 -1
  326. package/dist/client/assets/{session-catalog-CvSdPHPe.js → session-catalog-Dx4tl3sx.js} +1 -1
  327. package/dist/client/assets/{session-recap-queue-41l2XVkI.js → session-recap-queue-GeicPLsQ.js} +1 -1
  328. package/dist/client/assets/{session-table-L-pns6Zl.js → session-table-BI62J4NP.js} +1 -1
  329. package/dist/client/assets/{sessions-view-Dc-QAa7O.js → sessions-view-lGMwwZY7.js} +1 -1
  330. package/dist/client/assets/{settings-BVh7kldq.js → settings-bo9X410k.js} +1 -1
  331. package/dist/client/assets/{sliders-horizontal-782VC_yy.js → sliders-horizontal-CPSx6wd2.js} +1 -1
  332. package/dist/client/assets/{sparkles-BjHq_DNK.js → sparkles-Br-bA2aZ.js} +1 -1
  333. package/dist/client/assets/{sse-BCPRocpq.js → sse-BVxO0zNp.js} +1 -1
  334. package/dist/client/assets/{tail-events-d0yAYxR0.js → tail-events-C6NWFB1N.js} +1 -1
  335. package/dist/client/assets/{terminal-hQKQygcf.js → terminal-DMBAZjPP.js} +1 -1
  336. package/dist/client/assets/{terminal-relay-Bxs1hp-j.js → terminal-relay-CpGHpDa8.js} +1 -1
  337. package/dist/client/assets/{terminal-takeover-Ay5C2c-M.js → terminal-takeover-CXwdoZ5j.js} +1 -1
  338. package/dist/client/assets/{triangle-alert-CHoRGdVO.js → triangle-alert-BZikHKuT.js} +1 -1
  339. package/dist/client/assets/use-beside-DopIbJwf.js +1 -0
  340. package/dist/client/assets/{use-conversation-list-CY4JciOV.js → use-conversation-list-CGtcpdPd.js} +1 -1
  341. package/dist/client/assets/{use-fleet-active-asks-CymmXWH4.js → use-fleet-active-asks-DAHOPYPV.js} +1 -1
  342. package/dist/client/assets/{use-mesh-node-state-BvaqtODo.js → use-mesh-node-state-BlWIPTc4.js} +1 -1
  343. package/dist/client/assets/{use-mesh-ops-items-BSYaqH_0.js → use-mesh-ops-items-pKWBro7o.js} +1 -1
  344. package/dist/client/assets/{use-reduced-motion-3gMYZNIp.js → use-reduced-motion-DkdIQBwh.js} +1 -1
  345. package/dist/client/assets/use-scout-dev-flags-CduUFb7l.js +1 -0
  346. package/dist/client/assets/{useAgentHoverCard-BANmpjMh.js → useAgentHoverCard-DNlXPYQf.js} +1 -1
  347. package/dist/client/assets/useContentSecondaryNav-LJGNYG3U.js +1 -0
  348. package/dist/client/assets/{useEmbedHeadline-D6pJRxUg.js → useEmbedHeadline-BeeBDb7E.js} +1 -1
  349. package/dist/client/assets/{usePierreRuntime-BAQdiN0L.js → usePierreRuntime-DUXZ-DTK.js} +1 -1
  350. package/dist/client/assets/useSidebarCollapse-DoMvU_2R.js +1 -0
  351. package/dist/client/assets/{users-BUjx36gx.js → users-BQPEIUfd.js} +1 -1
  352. package/dist/client/assets/{wrench-DR0i5BU7.js → wrench-C-wjicn5.js} +1 -1
  353. package/dist/client/assets/{x-DAehov0E.js → x-BcfhXYiF.js} +1 -1
  354. package/dist/client/assets/{xterm-BXQiLVnI.js → xterm-qXD45dc0.js} +1 -1
  355. package/dist/client/assets/{zap-CEjZNZbI.js → zap-BqL8ttGz.js} +1 -1
  356. package/dist/client/index.html +2 -2
  357. package/dist/main.mjs +1 -1
  358. package/package.json +29 -5
  359. package/server.json +31 -0
  360. package/dist/client/assets/ActivityScreen-CZmGwQ2U.js +0 -1
  361. package/dist/client/assets/AgentAdventures-BAgxdOF8.js +0 -1
  362. package/dist/client/assets/AgentConfigurationScreen-1L0IQm2w.js +0 -1
  363. package/dist/client/assets/AgentDefinitionsWorkspace-DguGs7jZ.js +0 -1
  364. package/dist/client/assets/AgentFloorView-DH4jiDgw.js +0 -1
  365. package/dist/client/assets/AgentInfoScreen-DYtmKkeE.js +0 -1
  366. package/dist/client/assets/AgentLanesEmbedScreen-BlSof_6S.js +0 -1
  367. package/dist/client/assets/AgentMasterScreen-EJhmuKgl.js +0 -1
  368. package/dist/client/assets/AgentsConsole-RXGqRvcb.js +0 -1
  369. package/dist/client/assets/AgentsScreen-ChwMBs11.js +0 -1
  370. package/dist/client/assets/AgentsSubnav-DwNX4yy0.js +0 -1
  371. package/dist/client/assets/BriefingDetailScreen-DrlC3qkm.js +0 -1
  372. package/dist/client/assets/BrokerScreen-DwOF6bMA.js +0 -8
  373. package/dist/client/assets/Canvas-X9pVSkw3.js +0 -1
  374. package/dist/client/assets/ChannelComposer-DoK7IDGa.js +0 -1
  375. package/dist/client/assets/ChatRightPanel-C1h_aIkn.js +0 -1
  376. package/dist/client/assets/ChatSpaceSurface-BXyLYKHn.js +0 -1
  377. package/dist/client/assets/ConversationComposer-CUQyArlk.js +0 -1
  378. package/dist/client/assets/ConversationFeedRows-DWiOfT-y.js +0 -1
  379. package/dist/client/assets/ConversationHeader-C-ZWscKj.js +0 -1
  380. package/dist/client/assets/ConversationScreen-CUfsQ4MR.js +0 -2
  381. package/dist/client/assets/ConversationStatus--IPm2nGh.js +0 -1
  382. package/dist/client/assets/FlightObserveScreen-DZ2mrw91.js +0 -1
  383. package/dist/client/assets/FloorResourcesSheet-C-kQ6Ren.js +0 -1
  384. package/dist/client/assets/HarnessesScreen-DX3NLcDG.js +0 -1
  385. package/dist/client/assets/KnowledgeSearchScreen-Dd6jrQ0A.js +0 -1
  386. package/dist/client/assets/LaneTraceDetailSheet-DYrd0BIf.js +0 -1
  387. package/dist/client/assets/MeshScreen-8nAzQVbm.js +0 -1
  388. package/dist/client/assets/MessagesScreen-C3WB4T21.js +0 -1
  389. package/dist/client/assets/MissionControlView-B9cNPXvl.js +0 -1
  390. package/dist/client/assets/MissionLeftAgentRow-vycMV77n.js +0 -1
  391. package/dist/client/assets/NativeAreaScreen-B1RLa85C.js +0 -1
  392. package/dist/client/assets/NativeAreaScreen-CV0OhGra.js +0 -1
  393. package/dist/client/assets/NativeAreaScreen-CzuZt6o1.js +0 -1
  394. package/dist/client/assets/OpenScoutAppShell-37PDFfA4.js +0 -31
  395. package/dist/client/assets/OpsAgentsView-DajlX8LO.js +0 -1
  396. package/dist/client/assets/OpsScreen-jVcaBKGi.js +0 -1
  397. package/dist/client/assets/OpsSubnav-BOOYShHE.js +0 -1
  398. package/dist/client/assets/ProjectAgentProfile-D_wlW4sQ.js +0 -1
  399. package/dist/client/assets/ProjectAgentProfileHero-Dbebtug1.js +0 -1
  400. package/dist/client/assets/ProjectsInbox-Cgu7B4--.js +0 -2
  401. package/dist/client/assets/ProjectsRail-CDWocin_.js +0 -1
  402. package/dist/client/assets/ProjectsScreen-B_CJycqW.js +0 -1
  403. package/dist/client/assets/ProjectsThreadAside-1MMl_qUD.js +0 -1
  404. package/dist/client/assets/RawSessionsTable-DzT90hWu.js +0 -1
  405. package/dist/client/assets/RealtimeVoiceScreen-B6ylX3WQ.js +0 -16
  406. package/dist/client/assets/RepoDiffViewerLazy-XGVC3WXv.js +0 -2
  407. package/dist/client/assets/SessionRefScreen-DqLSUlCE.js +0 -1
  408. package/dist/client/assets/SessionsScreen-BLIRkohT.js +0 -1
  409. package/dist/client/assets/SettingsScreen-BtGzE2-O.js +0 -1
  410. package/dist/client/assets/SharedWorkFloor-D9mf9KSg.js +0 -2
  411. package/dist/client/assets/Terminal-Bi97yb5s.js +0 -4
  412. package/dist/client/assets/TerminalEmbedScreen-Bqop67Bq.js +0 -1
  413. package/dist/client/assets/TerminalRelay-DrikpUSJ.js +0 -46
  414. package/dist/client/assets/WorldActorTalk-BvSg_b1y.js +0 -1
  415. package/dist/client/assets/content-B1lgE8qr.js +0 -1
  416. package/dist/client/assets/content-B5l11YyQ.js +0 -1
  417. package/dist/client/assets/content-BNZOZEpX.js +0 -1
  418. package/dist/client/assets/content-BRIxP155.js +0 -1
  419. package/dist/client/assets/content-BWd8gt8L.js +0 -1
  420. package/dist/client/assets/content-BfwS2jAK.js +0 -1
  421. package/dist/client/assets/content-C4p43_eT.js +0 -1
  422. package/dist/client/assets/content-CdYfaoDV.js +0 -1
  423. package/dist/client/assets/content-CzldLxw0.js +0 -1
  424. package/dist/client/assets/content-D-olnc4U.js +0 -1
  425. package/dist/client/assets/content-DTioimq4.js +0 -1
  426. package/dist/client/assets/content-LOebm3_d.js +0 -1
  427. package/dist/client/assets/content-oyzDM-LK.js +0 -1
  428. package/dist/client/assets/content-x1PHxED7.js +0 -1
  429. package/dist/client/assets/content-zX3ZY3T9.js +0 -1
  430. package/dist/client/assets/conversation-motion-features-C5zjuNwE.js +0 -1
  431. package/dist/client/assets/direct-voice-BbLPuJ04.js +0 -2
  432. package/dist/client/assets/discover-DJFxyV1k.js +0 -2
  433. package/dist/client/assets/embed-entry-Lyvu0Kfc.js +0 -2
  434. package/dist/client/assets/home-now-card-ByE6Umcx.js +0 -1
  435. package/dist/client/assets/hooks-_eCZZPsR.js +0 -2
  436. package/dist/client/assets/index-724SdE6r.js +0 -1
  437. package/dist/client/assets/index-CN4rBB_s.css +0 -1
  438. package/dist/client/assets/index-D1d98iYf.js +0 -1
  439. package/dist/client/assets/index-gGHPA-By.js +0 -1
  440. package/dist/client/assets/left-Bn5X7x2o.js +0 -2
  441. package/dist/client/assets/left-BqS0fYX1.js +0 -1
  442. package/dist/client/assets/left-CTCeeeD3.js +0 -1
  443. package/dist/client/assets/left-DhtVPVux.js +0 -1
  444. package/dist/client/assets/left-K39b-Wvx.js +0 -2
  445. package/dist/client/assets/left-KGmueNPt.js +0 -1
  446. package/dist/client/assets/left-P_GOYB-s.js +0 -1
  447. package/dist/client/assets/left-advisor-B0N47De2.js +0 -1
  448. package/dist/client/assets/left-agents-CsSNc51Y.js +0 -1
  449. package/dist/client/assets/left-default-BlO5LP2T.js +0 -1
  450. package/dist/client/assets/left-lanes-C4PhaJE6.js +0 -1
  451. package/dist/client/assets/left-mission-BjTE5vPa.js +0 -1
  452. package/dist/client/assets/library-CkWNPHRp.js +0 -1
  453. package/dist/client/assets/profile-DTmzN16I.js +0 -1
  454. package/dist/client/assets/provider-Dojd8quC.js +0 -1
  455. package/dist/client/assets/resolve-panes-pbY1fCWi.js +0 -1
  456. package/dist/client/assets/resolve-sidebar-context-YWkZTq1t.js +0 -1
  457. package/dist/client/assets/right-49kO-6nD.js +0 -1
  458. package/dist/client/assets/right-APtItA8A.js +0 -1
  459. package/dist/client/assets/right-BJwhPqtn.js +0 -1
  460. package/dist/client/assets/right-BPqrf4ek.js +0 -1
  461. package/dist/client/assets/right-D7djOy6K.js +0 -1
  462. package/dist/client/assets/right-DKOUCRob.js +0 -1
  463. package/dist/client/assets/right-DMNrVzg7.js +0 -1
  464. package/dist/client/assets/right-DppeMCy4.js +0 -1
  465. package/dist/client/assets/right-GAL5Mw1v.js +0 -1
  466. package/dist/client/assets/router-DCtl8wqb.js +0 -1
  467. package/dist/client/assets/runtime-picker-DXu2bOTh.js +0 -1
  468. package/dist/client/assets/secondaryNavConfig-CS1svh6n.js +0 -1
  469. package/dist/client/assets/use-beside-DoRC1nt0.js +0 -1
  470. package/dist/client/assets/use-scout-dev-flags-DS_pYYQd.js +0 -1
  471. package/dist/client/assets/useContentSecondaryNav-C6OBu-3_.js +0 -1
  472. package/dist/client/assets/usePersistentState-B8lP7TRb.js +0 -1
  473. package/dist/client/assets/useSidebarCollapse-OL_8J5cL.js +0 -1
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ # OpenScout — coordinate AI coding agents
2
+
1
3
  <p align="center">
2
4
  <a href="https://openscout.app">
3
5
  <img src="https://openscout.app/og.png" alt="Scout — one place for all your agents, local-first and neutral by design" width="100%" />
@@ -5,7 +7,7 @@
5
7
  </p>
6
8
 
7
9
  <p align="center">
8
- <strong>The coordination layer for the coding agents you already run.</strong><br />
10
+ <strong>Coordinate Claude Code, Codex, Cursor, OpenCode, Kimi, Grok, Pi, and Devin.</strong><br />
9
11
  Discover agents, dispatch work, send messages, and follow progress across the tools you already use.
10
12
  </p>
11
13
 
@@ -18,10 +20,11 @@
18
20
 
19
21
  ---
20
22
 
21
- Scout is a local-first control plane for AI agents. It sits underneath Claude
22
- Code, Codex, Cursor, Pi, and other harnesses, giving them one durable broker for
23
- discovery, messages, work, and routing without moving agents out of the tools
24
- where they already run.
23
+ OpenScout provides local-first agent messaging and multi-agent orchestration
24
+ through a CLI and MCP server. Discover coding agents, dispatch tasks, and follow
25
+ results across Claude Code, Codex, Cursor, OpenCode, Kimi Code, Grok, Pi, and
26
+ Devin. Keep using the tools where your agents already run, with one durable
27
+ broker for discovery, messages, work, and routing.
25
28
 
26
29
  ## What Scout gives you
27
30
 
@@ -38,23 +41,27 @@ TUI, web UI, and optional native apps.
38
41
 
39
42
  ## Start here
40
43
 
41
- Scout requires [Bun 1.3 or newer](https://bun.sh). The full broker and service
42
- package currently targets Apple Silicon macOS.
44
+ Local agent coordination requires [Bun 1.3 or newer](https://bun.sh). The full
45
+ broker and service package currently targets Apple Silicon macOS.
43
46
 
44
47
  ```bash
45
- bun add -g @openscout/scout
48
+ npm install -g @openscout/scout
49
+ scout --version
46
50
  scout setup
47
51
  scout doctor
48
52
  ```
49
53
 
50
- Prefer npm for global packages? `npm install -g @openscout/scout` installs the
51
- same package; Bun is still required at runtime.
54
+ Prefer Bun for global packages? `bun add -g @openscout/scout` installs the
55
+ same package. Bun is required for the local broker and agent coordination.
56
+
57
+ Only joining a Scout Chat room? The [standalone Chat client](#participate-in-scout-chat)
58
+ runs on Node.js or Bun and does not require `scout setup` or a local broker.
52
59
 
53
60
  Installing the package does not silently start services. `scout setup`
54
61
  configures the local broker and attempts to start it explicitly; `scout doctor`
55
62
  then verifies that the broker and project inventory are healthy.
56
63
 
57
- ## Make your first handoff
64
+ ## Make your first handoff: Claude Code or Codex
58
65
 
59
66
  Route work by project and harness instead of guessing an agent name:
60
67
 
@@ -65,6 +72,9 @@ scout ask --project . --harness codex \
65
72
  "Review this repository and return the three highest-leverage improvements."
66
73
  ```
67
74
 
75
+ Use `--harness claude` to route the same task to Claude Code. The selected
76
+ harness must already be installed and authenticated.
77
+
68
78
  Scout resolves or starts a suitable worker, records the request, and returns a
69
79
  durable handle. Continue the same work with the returned ref:
70
80
 
@@ -125,10 +135,37 @@ Run `scout --help` for the complete command list and
125
135
 
126
136
  ## Works with the tools you already use
127
137
 
128
- Scout has host integrations for Claude Code, Codex, Cursor, Pi, and Hermes, plus
129
- MCP, ACP, Slack, Telegram, voice, and webhook paths where those transports are
130
- configured. The broker provides the shared coordination model; each harness
131
- keeps its native runtime and workflow.
138
+ Scout's runtime catalog includes **Claude Code, Codex, Cursor CLI, OpenCode,
139
+ Kimi Code, Grok, Pi, and Devin**. Host integrations also connect **Hermes Agent**
140
+ and **Grok Bot** through their plugin or MCP paths. Hermes is an agent/MCP host,
141
+ not a dispatch harness.
142
+
143
+ Model families in Scout's runtime catalog include:
144
+
145
+ | Runtime | Model families |
146
+ | --- | --- |
147
+ | Claude Code | Claude **Opus**, **Fable**, **Sonnet**, and **Haiku** |
148
+ | Codex | **GPT**, including **Astra**, **Sol**, **Terra**, and **Luna** variants |
149
+ | Grok | **Grok** |
150
+ | OpenCode | **GLM**, **Kimi**, **Qwen**, **MiniMax**, **DeepSeek**, **Grok**, **Nemotron**, and **Laguna** |
151
+ | Devin | **SWE** |
152
+
153
+ Available models depend on the installed harness, provider configuration, and
154
+ account access. Run `scout runtimes --json` for the current runtime and model
155
+ IDs before selecting an exact model. Kimi Code, Cursor, and Pi use their harness
156
+ configuration; Scout does not enumerate fixed model choices for them.
157
+
158
+ MCP, ACP, Slack, Telegram, voice, and webhook paths connect additional surfaces
159
+ where configured. Each harness keeps its native runtime and workflow.
160
+
161
+ Connect Scout to your agent host:
162
+
163
+ - [Claude Code plugin](https://github.com/arach/claude-scout)
164
+ - [Codex plugin](https://github.com/arach/codex-scout)
165
+ - [Cursor MCP setup](https://github.com/arach/cursor-scout)
166
+ - [Pi extension](https://github.com/arach/pi-scout)
167
+ - [Hermes Agent plugin](https://github.com/arach/hermes-scout)
168
+ - [Grok setup guide](https://openscout.app/docs/scout-for-grok)
132
169
 
133
170
  See the [integration guide](https://github.com/oscout/scout/blob/main/docs/integrations.md)
134
171
  for the current package and setup map.
@@ -243,7 +280,7 @@ Run `scout --help` for the current command inventory and
243
280
  Apache-2.0. See the [license](https://github.com/oscout/scout/blob/main/LICENSE)
244
281
  and [notice](https://github.com/oscout/scout/blob/main/packages/cli/NOTICE).
245
282
 
246
- ### Participate in Scout Chat
283
+ ## Participate in Scout Chat
247
284
 
248
285
  The main package includes a scoped Chat client:
249
286
 
@@ -279,3 +316,29 @@ content. A stopped or interrupted watcher can resume; a crash between printing
279
316
  and cursor persistence can repeat events. Expired cursors are reported rather
280
317
  than silently skipping history. For uncertain sends, retry with the same
281
318
  `--request-id` printed in the error to avoid duplicate messages.
319
+
320
+ ## MCP server
321
+
322
+ Scout exposes local agent coordination tools over MCP stdio. Install Bun 1.3 or
323
+ newer, then initialize your local broker with `scout setup` and check it with
324
+ `scout doctor` before using tools that require coordination state.
325
+
326
+ For an MCP client that supports command-based stdio servers:
327
+
328
+ ```json
329
+ {
330
+ "mcpServers": {
331
+ "openscout": {
332
+ "command": "bunx",
333
+ "args": ["@openscout/scout", "mcp"]
334
+ }
335
+ }
336
+ }
337
+ ```
338
+
339
+ The client must be able to find `bunx` on its PATH. Scout is intended for
340
+ high-trust local developer pilots; give this server only to clients you trust
341
+ to interact with your local coding agents. This is a local stdio server, not a
342
+ public HTTP endpoint. See [integration documentation](https://openscout.app/docs/integrations)
343
+ for supported workflows. The registry identity is `io.github.oscout/scout`;
344
+ `server.json` describes the matching published package version.
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.106",
5
- "commit": "02db44c5ccdacb0dddbd4647e36da5d7d8f630bf",
4
+ "version": "0.2.108",
5
+ "commit": "ce595dba0bc2c09c1a7d5f60ec72222f226590b9",
6
6
  "branch": "main",
7
7
  "sourceDirty": false,
8
- "builtAt": "2026-09-20T03:07:52.495Z"
8
+ "builtAt": "2026-09-22T17:39:51.011Z"
9
9
  }
@@ -0,0 +1 @@
1
+ import{r as t,j as e}from"./index-BFbLvCJn.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-BVxO0zNp.js";import{m as ss,a as es}from"./machine-scope-DJt9RZ2w.js";import{b as as}from"./router-CJIx83Ia.js";import{r as U}from"./mentions-s5oW4aQU.js";import{t as w,b as q}from"./time-Dhsh_2EG.js";import{u as ts,a as ns}from"./Provider-BEXAZWd9.js";import{S as is,p as rs,r as ls,s as os}from"./SessionHopMenu-DX6PJPNk.js";import{E as T}from"./EmptyState-DLiLgtPK.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-CXzJ_hGx.js";import"./AgentDetailCard-CI-ufaEP.js";import"./AgentLiveActions-CkRGkv13.js";import"./terminal-takeover-CXwdoZ5j.js";import"./openContent-C6XO6kr5.js";import"./eye-CD-_aphP.js";import"./createLucideIcon-CKbjXlwv.js";import"./terminal-DMBAZjPP.js";import"./theme-vars-DNK0nn3k.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-Bk3nyrkj.js";import"./NewChatComposer-D-VB5vdt.js";import"./runtime-picker-IRcTkMZ5.js";import"./scout-voice-Cdh6pCsb.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-CCG7hG7z.js";import"./media-blobs-Bi8pxr1u.js";import"./HarnessMark-CP-PWk2W.js";import"./conversation-model-FxDeWlle.js";import"./conversations-DoAAO6kA.js";import"./NewChatOrigin-BYsEu9dZ.js";import"./keyboard-nav-CEe-ApvZ.js";import"./x-BcfhXYiF.js";import"./chevron-down-DEDSNJNY.js";import"./search-Bv2IONmc.js";import"./file-text-BOJQiS8p.js";import"./model-CBkMvT1w.js";import"./DocumentFocusViewer-mxzPxQQW.js";import"./TextDocumentSurface-DBslUq9k.js";import"./index-V8FYEUpD.js";import"./chevron-right-B02kAw12.js";import"./folder-C2emmTHq.js";import"./chevron-up-CzveykKG.js";import"./code-xml-E9gBuiVs.js";import"./arrow-left-DNjQHf4C.js";import"./arrow-right-A_yyXwoH.js";import"./voice-turn-ledger-BMZxlSjg.js";import"./chunk-HRAB3GC3-DVhUsgOw.js";import"./external-link-Df1R34rX.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 je({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{je as ActivityScreen};
@@ -1 +1 @@
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
+ import{r as n,j as o}from"./index-BFbLvCJn.js";import{a as y}from"./api-DSqpVKC7.js";import{c as j}from"./createLucideIcon-CKbjXlwv.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-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(`
1
+ import{j as e}from"./index-BFbLvCJn.js";import{u as E}from"./Provider-BEXAZWd9.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-B_idZgTF.js";import{c as S}from"./createLucideIcon-CKbjXlwv.js";import{A as R}from"./arrow-up-right-DUW1A1Hb.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-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(`
1
+ import{r as d,j as e}from"./index-BFbLvCJn.js";import{a as $}from"./api-DSqpVKC7.js";import{f as O}from"./index-V8FYEUpD.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-B_idZgTF.js";import{X as D}from"./x-BcfhXYiF.js";import{T as I}from"./terminal-DMBAZjPP.js";import{c as H}from"./createLucideIcon-CKbjXlwv.js";import{S as J}from"./scroll-text-CA0QxBHu.js";import"./TextDocumentSurface-DBslUq9k.js";import"./chevron-right-B02kAw12.js";import"./folder-C2emmTHq.js";import"./file-text-BOJQiS8p.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-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};
1
+ import{r as s,j as e}from"./index-BFbLvCJn.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-BFbLvCJn.js";import{ReplayClock as be}from"./ReplayClock-wLpb4VqN.js";import{S as _e}from"./SproutActionSprite-BrFCmgWS.js";import{C as B}from"./CrewSprite-CguHb2Ny.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-CGEcG0zV.js";import{AdventureReader as Se}from"./AdventureReader-BICypcDY.js";import{ReplayLog as Ce}from"./ReplayLog-IUyQdklN.js";import{H as $e,A as Pe}from"./AdventureEvidence-D5wq1vu8.js";import{f as H}from"./floor-preview-text-HrORUJ7D.js";/* empty css */import{c as K}from"./createLucideIcon-CKbjXlwv.js";import{F as V}from"./flag-CeKO8NoD.js";import{W as Me}from"./wrench-C-wjicn5.js";import{B as oe}from"./book-open-B_idZgTF.js";import{P as Te}from"./pause-7mmEEvVx.js";import{P as Ae}from"./play-N5-hnPCV.js";import{R as Re}from"./radio-Bjqmv997.js";import{A as ze}from"./arrow-left-DNjQHf4C.js";import{A as ae}from"./arrow-right-A_yyXwoH.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-V8FYEUpD.js";import"./TextDocumentSurface-DBslUq9k.js";import"./chevron-right-B02kAw12.js";import"./folder-C2emmTHq.js";import"./file-text-BOJQiS8p.js";/* empty css */import"./x-BcfhXYiF.js";import"./terminal-DMBAZjPP.js";import"./scroll-text-CA0QxBHu.js";import"./observe-M3rLosT5.js";import"./agent-state-DDhnFEEP.js";import"./surface-activity-B1rgWB1i.js";import"./Provider-BEXAZWd9.js";import"./theme-vars-DNK0nn3k.js";import"./router-CJIx83Ia.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./machine-scope-DJt9RZ2w.js";import"./sse-BVxO0zNp.js";import"./index-BWHgHrtv.js";import"./scoutbot-Bk3nyrkj.js";import"./NewChatComposer-D-VB5vdt.js";import"./runtime-picker-IRcTkMZ5.js";import"./scout-voice-Cdh6pCsb.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-CCG7hG7z.js";import"./media-blobs-Bi8pxr1u.js";import"./index-CXzJ_hGx.js";import"./HarnessMark-CP-PWk2W.js";import"./conversation-model-FxDeWlle.js";import"./conversations-DoAAO6kA.js";import"./colors-CFlbwC25.js";import"./NewChatOrigin-BYsEu9dZ.js";import"./keyboard-nav-CEe-ApvZ.js";import"./chevron-down-DEDSNJNY.js";import"./search-Bv2IONmc.js";import"./model-CBkMvT1w.js";import"./DocumentFocusViewer-mxzPxQQW.js";import"./chevron-up-CzveykKG.js";import"./code-xml-E9gBuiVs.js";import"./voice-turn-ledger-BMZxlSjg.js";import"./chunk-HRAB3GC3-DVhUsgOw.js";import"./agent-lane-detail-Ti3trpfH.js";/* empty css */import"./arrow-up-right-DUW1A1Hb.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 js({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{js as AgentAdventures};
@@ -1 +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};
1
+ import{j as i,C as Z,h as q,f as B,m as h,g as D}from"./index-BFbLvCJn.js";import{d as G}from"./Provider-BEXAZWd9.js";import{a as J,S as K}from"./SpriteAvatar-D53GaaK3.js";import{C as Q}from"./CrewAvatar-a_C_F9r_.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-BFbLvCJn.js";import{E as J}from"./EmptyState-DLiLgtPK.js";import{C as Y}from"./CastPicker-Y29K5kKk.js";import{a as I}from"./api-DSqpVKC7.js";import{h as F}from"./NewChatComposer-D-VB5vdt.js";import{d as G}from"./time-Dhsh_2EG.js";import{u as L}from"./Provider-BEXAZWd9.js";import{o as Q}from"./openContent-C6XO6kr5.js";import{AgentsSubnav as X}from"./AgentsSubnav-_1GVC4hj.js";/* empty css */import{R as Z}from"./refresh-cw-BcqctLqo.js";import{S as ss}from"./settings-bo9X410k.js";import{c as H}from"./createLucideIcon-CKbjXlwv.js";import{B as _}from"./bot-BNv_ZJzi.js";import{W as es}from"./wrench-C-wjicn5.js";import{S as as}from"./server-U_l8A83n.js";import{C as ns}from"./cpu-DVZ_LhPn.js";import"./CrewAvatar-a_C_F9r_.js";import"./HarnessMark-CP-PWk2W.js";import"./runtime-picker-IRcTkMZ5.js";import"./scout-voice-Cdh6pCsb.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-CCG7hG7z.js";import"./router-CJIx83Ia.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-3RfJpen8.js";import"./check-BM6QtbB7.js";import"./media-blobs-Bi8pxr1u.js";import"./index-CXzJ_hGx.js";import"./conversation-model-FxDeWlle.js";import"./agent-state-DDhnFEEP.js";import"./conversations-DoAAO6kA.js";import"./colors-CFlbwC25.js";import"./NewChatOrigin-BYsEu9dZ.js";import"./keyboard-nav-CEe-ApvZ.js";import"./x-BcfhXYiF.js";import"./chevron-down-DEDSNJNY.js";import"./search-Bv2IONmc.js";import"./file-text-BOJQiS8p.js";import"./theme-vars-DNK0nn3k.js";import"./machine-scope-DJt9RZ2w.js";import"./sse-BVxO0zNp.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-Bk3nyrkj.js";import"./model-CBkMvT1w.js";import"./DocumentFocusViewer-mxzPxQQW.js";import"./TextDocumentSurface-DBslUq9k.js";import"./index-V8FYEUpD.js";import"./chevron-right-B02kAw12.js";import"./folder-C2emmTHq.js";import"./chevron-up-CzveykKG.js";import"./code-xml-E9gBuiVs.js";import"./arrow-left-DNjQHf4C.js";import"./arrow-right-A_yyXwoH.js";import"./voice-turn-ledger-BMZxlSjg.js";import"./chunk-HRAB3GC3-DVhUsgOw.js";import"./SecondaryNav-1FjBDWuY.js";import"./secondaryNavConfig-Bmb-oRvD.js";import"./nav-destinations-B3R5zxFX.js";import"./message-square-BwqBIfv5.js";import"./terminal-DMBAZjPP.js";import"./compass-EmGkpxIe.js";import"./git-branch-C45vy8qT.js";import"./scroll-text-CA0QxBHu.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 Ce({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{Ce as AgentConfigurationScreen};
@@ -0,0 +1 @@
1
+ import{r as l,j as e}from"./index-BFbLvCJn.js";import{A as k}from"./AgentAvatar-Dn8TUv5W.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-BEXAZWd9.js";import{a as I}from"./agent-specialization-DYX_DSlY.js";import{p as O}from"./project-overview-helpers-BQTc_Ous.js";import{FileViewerPane as $}from"./FileViewerPane-Dc7AoVod.js";/* empty css */import{C as z}from"./chevron-right-B02kAw12.js";import{C as L}from"./chevron-down-DEDSNJNY.js";import{F as H}from"./folder-C2emmTHq.js";import{F as U}from"./DocumentFocusViewer-mxzPxQQW.js";import{F as G}from"./file-text-BOJQiS8p.js";import"./SpriteAvatar-D53GaaK3.js";import"./CrewAvatar-a_C_F9r_.js";import"./HarnessMark-CP-PWk2W.js";import"./runtime-picker-IRcTkMZ5.js";import"./scout-voice-Cdh6pCsb.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-CCG7hG7z.js";import"./createLucideIcon-CKbjXlwv.js";import"./router-CJIx83Ia.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-3RfJpen8.js";import"./colors-CFlbwC25.js";import"./theme-vars-DNK0nn3k.js";import"./machine-scope-DJt9RZ2w.js";import"./sse-BVxO0zNp.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-Bk3nyrkj.js";import"./NewChatComposer-D-VB5vdt.js";import"./media-blobs-Bi8pxr1u.js";import"./index-CXzJ_hGx.js";import"./conversation-model-FxDeWlle.js";import"./conversations-DoAAO6kA.js";import"./NewChatOrigin-BYsEu9dZ.js";import"./keyboard-nav-CEe-ApvZ.js";import"./x-BcfhXYiF.js";import"./search-Bv2IONmc.js";import"./model-CBkMvT1w.js";import"./index-V8FYEUpD.js";import"./TextDocumentSurface-DBslUq9k.js";import"./chevron-up-CzveykKG.js";import"./code-xml-E9gBuiVs.js";import"./arrow-left-DNjQHf4C.js";import"./arrow-right-A_yyXwoH.js";import"./voice-turn-ledger-BMZxlSjg.js";import"./chunk-HRAB3GC3-DVhUsgOw.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 Be({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{Be as AgentDefinitionsWorkspace};
@@ -1 +1 @@
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};
1
+ import{r as v,j as a}from"./index-BFbLvCJn.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-CkRGkv13.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-BFbLvCJn.js";import{AgentAdventures as it}from"./AgentAdventures-5yBt-Zl3.js";import{SharedWorkFloor as ct}from"./SharedWorkFloor-H-e2TVj9.js";import{FloorReplay as dt}from"./FloorReplay-Bg7kA-tR.js";import{a as mt}from"./floor-memory-YMM8AlLY.js";import{FloorTacticalHUD as pt}from"./FloorTacticalHUD-4d-Hr-YL.js";import{FloorResourcesSheet as ut}from"./FloorResourcesSheet-Ba9HubO2.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-BfrXNoBn.js";import{AgentFloorWorld as ht}from"./AgentFloorWorld-DqmnQexg.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-CP-PWk2W.js";import{a as Oe,S as Ae}from"./SpriteAvatar-D53GaaK3.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-Dw3bVQYF.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-MraynTHP.js";import{p as Ye}from"./session-recap-lanes-D-eVJnpY.js";import{c as St}from"./createLucideIcon-CKbjXlwv.js";import{T as wt}from"./terminal-DMBAZjPP.js";import{F as yt}from"./file-code-corner-DtMWHBN3.js";import{M as $t}from"./message-square-BwqBIfv5.js";import"./ReplayClock-wLpb4VqN.js";import"./SproutActionSprite-BrFCmgWS.js";/* empty css */import"./CrewSprite-CguHb2Ny.js";import"./adventure-playback-DTfkhIc0.js";import"./AdventureScenery-CGEcG0zV.js";import"./adventure-habitats-v1-M1lcpTJh.js";import"./AdventureReader-BICypcDY.js";import"./api-DSqpVKC7.js";import"./index-V8FYEUpD.js";import"./TextDocumentSurface-DBslUq9k.js";import"./chevron-right-B02kAw12.js";import"./folder-C2emmTHq.js";import"./file-text-BOJQiS8p.js";import"./floor-preview-text-HrORUJ7D.js";/* empty css */import"./book-open-B_idZgTF.js";import"./x-BcfhXYiF.js";import"./scroll-text-CA0QxBHu.js";import"./ReplayLog-IUyQdklN.js";import"./observe-M3rLosT5.js";import"./surface-activity-B1rgWB1i.js";import"./AdventureEvidence-D5wq1vu8.js";import"./Provider-BEXAZWd9.js";import"./theme-vars-DNK0nn3k.js";import"./router-CJIx83Ia.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-3RfJpen8.js";import"./machine-scope-DJt9RZ2w.js";import"./sse-BVxO0zNp.js";import"./index-BWHgHrtv.js";import"./scoutbot-Bk3nyrkj.js";import"./NewChatComposer-D-VB5vdt.js";import"./runtime-picker-IRcTkMZ5.js";import"./scout-voice-Cdh6pCsb.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-CCG7hG7z.js";import"./media-blobs-Bi8pxr1u.js";import"./index-CXzJ_hGx.js";import"./conversation-model-FxDeWlle.js";import"./conversations-DoAAO6kA.js";import"./colors-CFlbwC25.js";import"./NewChatOrigin-BYsEu9dZ.js";import"./keyboard-nav-CEe-ApvZ.js";import"./chevron-down-DEDSNJNY.js";import"./search-Bv2IONmc.js";import"./model-CBkMvT1w.js";import"./DocumentFocusViewer-mxzPxQQW.js";import"./chevron-up-CzveykKG.js";import"./code-xml-E9gBuiVs.js";import"./arrow-left-DNjQHf4C.js";import"./arrow-right-A_yyXwoH.js";import"./voice-turn-ledger-BMZxlSjg.js";import"./chunk-HRAB3GC3-DVhUsgOw.js";import"./agent-lane-detail-Ti3trpfH.js";import"./tail-display-DHSNmvor.js";import"./lane-edit-display-BjdT9oZl.js";/* empty css */import"./arrow-up-right-DUW1A1Hb.js";/* empty css */import"./flag-CeKO8NoD.js";import"./wrench-C-wjicn5.js";import"./pause-7mmEEvVx.js";import"./play-N5-hnPCV.js";import"./radio-Bjqmv997.js";import"./WorldMinimap-DL12pBw3.js";import"./WorldSky-BlPNvGLo.js";import"./WorldActorTalk-CHhFTiQV.js";import"./send-to-agent-session-CWDHHgFB.js";import"./FloorExchangePanel-DsG1cRzu.js";import"./floor-message-passes-CO3Ix_wR.js";import"./shared-work-artifacts-DfNl9KTo.js";import"./CharacterFamilyPreview-Bj8oMD-5.js";import"./RenderedWorkerSprite-BNhFXMIo.js";import"./FloorMessagePasses-Cm3LbkHd.js";import"./WorkRunView-DLIzAsc3.js";import"./floor-context-model-rWKqaKmV.js";import"./lane-ask-display-BTVSakyo.js";import"./context-budget-8qFKqM-j.js";import"./SharedFloorCharacter-dnamlt1p.js";import"./WorldCharacter-CJGx2DVy.js";import"./RiggedWorkerCharacter-CF6fhzGd.js";/* empty css */import"./FloorSavedWork-BDOvV3mA.js";import"./pin-q_0gAA6i.js";/* empty css */import"./triangle-alert-BZikHKuT.js";/* empty css */import"./git-branch-C45vy8qT.js";import"./coffee-D0YEK6-l.js";/* empty css */import"./bash-format-BRV5C6Gv.js";import"./lane-tool-detail-Czggx8oM.js";import"./LaneToolHoverCard-B8Am_1DC.js";import"./mentions-s5oW4aQU.js";import"./AgentDetailCard-CI-ufaEP.js";import"./AgentLiveActions-CkRGkv13.js";import"./terminal-takeover-CXwdoZ5j.js";import"./openContent-C6XO6kr5.js";import"./eye-CD-_aphP.js";import"./message-markup-D1C7GzHo.js";import"./message-markup-BQW5jdJw.js";import"./SessionHopMenu-DX6PJPNk.js";import"./external-link-Df1R34rX.js";import"./ObservedTopologyPanel-Ci7emnnj.js";import"./ObserveTextFlow-C0oQEerY.js";import"./use-reduced-motion-DkdIQBwh.js";import"./proxy-k0ILOVkK.js";import"./SessionObserveEvidence-uD1OX-R5.js";import"./SessionContextStrip-BoiIxXvS.js";import"./message-circle-BB3rFCVD.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 On({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{On as AgentFloorView};
@@ -1 +1 @@
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};
1
+ import{j as e,r as j}from"./index-BFbLvCJn.js";import{a as F,S as z}from"./SpriteAvatar-D53GaaK3.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-D0YEK6-l.js";import{T as H}from"./terminal-DMBAZjPP.js";import{R as P}from"./radio-Bjqmv997.js";import{F as U}from"./file-code-corner-DtMWHBN3.js";import{G as Z}from"./git-branch-C45vy8qT.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-CKbjXlwv.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};