@openscout/scout 0.2.105 → 0.2.106

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (573) hide show
  1. package/bin/scoutd +0 -0
  2. package/dist/build-manifest.json +3 -3
  3. package/dist/chat.mjs +23 -1
  4. package/dist/client/assets/ActivityScreen-CZmGwQ2U.js +1 -0
  5. package/dist/client/assets/{AddProjectForm-CHNJ4NnS.js → AddProjectForm-CusDRiVO.js} +1 -1
  6. package/dist/client/assets/{AdventureEvidence-B4mEvXeD.js → AdventureEvidence-CyegKk1V.js} +1 -1
  7. package/dist/client/assets/{AdventureReader-ZsBDQITY.js → AdventureReader-X-hbTOi0.js} +1 -1
  8. package/dist/client/assets/{AdventureScenery-DSxDlqG1.js → AdventureScenery-LPXSVP67.js} +1 -1
  9. package/dist/client/assets/AgentAdventures-BAgxdOF8.js +1 -0
  10. package/dist/client/assets/AgentAvatar-CrP1eXxk.js +1 -0
  11. package/dist/client/assets/AgentConfigurationScreen-1L0IQm2w.js +1 -0
  12. package/dist/client/assets/AgentDefinitionsWorkspace-DguGs7jZ.js +1 -0
  13. package/dist/client/assets/{AgentDetailCard-MIEBKw_S.js → AgentDetailCard-DtHT3sCo.js} +1 -1
  14. package/dist/client/assets/AgentFloorView-DH4jiDgw.js +1 -0
  15. package/dist/client/assets/{AgentFloorWorld-BTqwmK5G.js → AgentFloorWorld-CjoIa6jA.js} +1 -1
  16. package/dist/client/assets/AgentInfoScreen-DYtmKkeE.js +1 -0
  17. package/dist/client/assets/{AgentLaneCard-C4rKLLdT.js → AgentLaneCard-BaZ2g-f8.js} +1 -1
  18. package/dist/client/assets/{AgentLaneChrome-fGC-ZrJS.js → AgentLaneChrome-TF1SlJSc.js} +1 -1
  19. package/dist/client/assets/{AgentLaneDetailSheet-BTF4_th9.js → AgentLaneDetailSheet-EzEPsn3g.js} +1 -1
  20. package/dist/client/assets/{AgentLaneSummaryResize-DgSeA_vS.js → AgentLaneSummaryResize-dpp7YvrX.js} +1 -1
  21. package/dist/client/assets/AgentLanesEmbedScreen-BlSof_6S.js +1 -0
  22. package/dist/client/assets/{AgentLanesPreflight-CcS23wij.js → AgentLanesPreflight-Ry-aqDTr.js} +1 -1
  23. package/dist/client/assets/AgentLanesView-BJi9xXz6.js +2 -0
  24. package/dist/client/assets/{AgentLiveActions-6Kfr1uOT.js → AgentLiveActions-CfTupTEl.js} +1 -1
  25. package/dist/client/assets/AgentMasterScreen-EJhmuKgl.js +1 -0
  26. package/dist/client/assets/AgentSessions-B1gOhDBf.js +6 -0
  27. package/dist/client/assets/AgentsConsole-RXGqRvcb.js +1 -0
  28. package/dist/client/assets/AgentsScreen-ChwMBs11.js +1 -0
  29. package/dist/client/assets/AgentsSubnav-DwNX4yy0.js +1 -0
  30. package/dist/client/assets/{AstronautSuit-D67fIBdR.js → AstronautSuit-Cchnc4Ug.js} +1 -1
  31. package/dist/client/assets/{AtopView-Ck30FbzG.js → AtopView-gkEp4y__.js} +1 -1
  32. package/dist/client/assets/{BackToPicker-CkBhGRlD.js → BackToPicker-CUkjnoVk.js} +1 -1
  33. package/dist/client/assets/BriefingDetailScreen-DrlC3qkm.js +1 -0
  34. package/dist/client/assets/{BriefingsScreen-DTxYMr3a.js → BriefingsScreen-B1HlBMGZ.js} +1 -1
  35. package/dist/client/assets/{BrokerMetadataPanel-crirZCdo.js → BrokerMetadataPanel-Dk242Yh_.js} +1 -1
  36. package/dist/client/assets/BrokerScreen-DwOF6bMA.js +8 -0
  37. package/dist/client/assets/{Canvas-CRP0KjKb.js → Canvas-X9pVSkw3.js} +1 -1
  38. package/dist/client/assets/{CastPicker-ZPomvOf-.js → CastPicker-BXUtPAGC.js} +1 -1
  39. package/dist/client/assets/ChannelComposer-DoK7IDGa.js +1 -0
  40. package/dist/client/assets/ChannelSidebar-e9DOPulb.js +1 -0
  41. package/dist/client/assets/{CharacterFamilyPreview-ckVkecDO.js → CharacterFamilyPreview-DMfw7UM_.js} +1 -1
  42. package/dist/client/assets/{ChatAvatar-DKBsbOqk.js → ChatAvatar-C3a_o5Hj.js} +1 -1
  43. package/dist/client/assets/ChatBits-CsvxbToF.js +1 -0
  44. package/dist/client/assets/{ChatCollapsedStrip-Co0NmqOO.js → ChatCollapsedStrip-FEmQ_G9J.js} +1 -1
  45. package/dist/client/assets/ChatRichInput-DhtwFxQE.js +31 -0
  46. package/dist/client/assets/ChatRightPanel-C1h_aIkn.js +1 -0
  47. package/dist/client/assets/ChatSpaceSurface-BXyLYKHn.js +1 -0
  48. package/dist/client/assets/ChatSpaceTheme-3wLZGsvT.css +1 -0
  49. package/dist/client/assets/ChatSpaceTheme-CUH8bTZc.js +1 -0
  50. package/dist/client/assets/{CodeDiffPane-D-iv28LJ.js → CodeDiffPane-DuQRwpgK.js} +1 -1
  51. package/dist/client/assets/{CodeProjectPicker-CZ3gDdiT.js → CodeProjectPicker-ZQ6gSBpg.js} +1 -1
  52. package/dist/client/assets/{CodeScreen-CSC-zbP9.js → CodeScreen-BXyKeL5T.js} +1 -1
  53. package/dist/client/assets/{CommsCanvas-DdNAwjGW.js → CommsCanvas-THp0r_U8.js} +1 -1
  54. package/dist/client/assets/{CommsDeck-mGWY7Ivi.js → CommsDeck-BVmSMV2V.js} +1 -1
  55. package/dist/client/assets/{CommsFlowGraph-voDD9M5R.js → CommsFlowGraph-DxoOaLF_.js} +1 -1
  56. package/dist/client/assets/{CommsFlowMap-C33sgD48.js → CommsFlowMap-Vi8ziCPg.js} +1 -1
  57. package/dist/client/assets/{CommsSelection-BL8aYD7z.js → CommsSelection-BUoRbu9o.js} +1 -1
  58. package/dist/client/assets/ComposerAttachments-DW0AIb8k.js +1 -0
  59. package/dist/client/assets/ConversationComposer-CUQyArlk.js +1 -0
  60. package/dist/client/assets/ConversationFeedRows-DWiOfT-y.js +1 -0
  61. package/dist/client/assets/ConversationHeader-C-ZWscKj.js +1 -0
  62. package/dist/client/assets/{ConversationPanels-6pprBpmq.js → ConversationPanels-D9oC0xG5.js} +2 -2
  63. package/dist/client/assets/ConversationScreen-9MlMnEo4.css +1 -0
  64. package/dist/client/assets/ConversationScreen-CUfsQ4MR.js +2 -0
  65. package/dist/client/assets/ConversationStatus--IPm2nGh.js +1 -0
  66. package/dist/client/assets/{CrewAvatar-D0c9z5Qr.css → CrewAvatar-BnIPIn_Z.css} +1 -1
  67. package/dist/client/assets/CrewAvatar-kTznzqcO.js +1 -0
  68. package/dist/client/assets/{CrewSprite-Dp9KBBGY.js → CrewSprite-Dhryjx2c.js} +1 -1
  69. package/dist/client/assets/CrewStage-vdO0qm3D.js +1 -0
  70. package/dist/client/assets/CrewWorkspaces-DCBzAAS4.js +1 -0
  71. package/dist/client/assets/{DataTable-av71ehJV.js → DataTable-aH-jCyDq.js} +1 -1
  72. package/dist/client/assets/{DispatchAftermath-CcYGUB10.js → DispatchAftermath-66uQAorV.js} +1 -1
  73. package/dist/client/assets/{DocumentFocusViewer-DlMiEALb.js → DocumentFocusViewer-DJr0v0D_.js} +1 -1
  74. package/dist/client/assets/{EmbeddableSurfacesLab-CTkO_tQR.js → EmbeddableSurfacesLab-BBa70EhJ.js} +1 -1
  75. package/dist/client/assets/{EmptyState-CYUwYyAW.js → EmptyState-CZlrHXy-.js} +1 -1
  76. package/dist/client/assets/{FileViewerPane-Cxhixtks.js → FileViewerPane-BAO6mtjD.js} +1 -1
  77. package/dist/client/assets/FleetRollCallHud-C5q2567n.js +1 -0
  78. package/dist/client/assets/FlightObserveScreen-DZ2mrw91.js +1 -0
  79. package/dist/client/assets/{FloorContextSheet-Vj_wVZq1.js → FloorContextSheet-2_NVPQor.js} +1 -1
  80. package/dist/client/assets/{FloorExchangePanel-CjHSDXad.js → FloorExchangePanel-BU1pPu8K.js} +1 -1
  81. package/dist/client/assets/{FloorMessagePasses-BG4ebnX5.js → FloorMessagePasses-cLW2UGNP.js} +1 -1
  82. package/dist/client/assets/{FloorReplay-BoYaGY9t.js → FloorReplay-VFzA6Kxc.js} +1 -1
  83. package/dist/client/assets/FloorResourcesSheet-C-kQ6Ren.js +1 -0
  84. package/dist/client/assets/{FloorSavedWork-jbtRs-YE.js → FloorSavedWork-BeHDejWz.js} +1 -1
  85. package/dist/client/assets/FloorTacticalHUD-CO-iiFpb.js +1 -0
  86. package/dist/client/assets/{FollowScreen-CupyOgt4.js → FollowScreen-CFfkIbc6.js} +1 -1
  87. package/dist/client/assets/HarnessMark-C4naWc16.js +1 -0
  88. package/dist/client/assets/HarnessesScreen-DX3NLcDG.js +1 -0
  89. package/dist/client/assets/{HerdrSession-Dcm3vf9U.js → HerdrSession-_t7yM8vX.js} +2 -2
  90. package/dist/client/assets/{HomeHero-pIZtE1cC.js → HomeHero-DouPyNmz.js} +1 -1
  91. package/dist/client/assets/{HostAdvisorView-Dv5meXo2.js → HostAdvisorView-CnM1i8hW.js} +1 -1
  92. package/dist/client/assets/InviteLandingScreen-CEjG2E34.js +1 -0
  93. package/dist/client/assets/InviteSheet-CwxZtWCl.js +1 -0
  94. package/dist/client/assets/{JumpPalette-BmiSOEmp.js → JumpPalette-O1aJE9gR.js} +1 -1
  95. package/dist/client/assets/{KnowledgeSearchInspector-B8yiM524.js → KnowledgeSearchInspector-32n9baT-.js} +1 -1
  96. package/dist/client/assets/KnowledgeSearchScreen-Dd6jrQ0A.js +1 -0
  97. package/dist/client/assets/{LaneToolHoverCard-D2cnTeUd.js → LaneToolHoverCard-CJa110yk.js} +1 -1
  98. package/dist/client/assets/LaneTraceDetailSheet-DYrd0BIf.js +1 -0
  99. package/dist/client/assets/{LaneTraceEventFocus-BLhVHwff.js → LaneTraceEventFocus-TbrNHRj_.js} +1 -1
  100. package/dist/client/assets/{MeshCanvas-BR25OBTJ.js → MeshCanvas-DWZHYh1A.js} +2 -2
  101. package/dist/client/assets/{MeshCanvasMinimap-ClVolr4-.js → MeshCanvasMinimap-iswYFpIb.js} +1 -1
  102. package/dist/client/assets/MeshScreen-8nAzQVbm.js +1 -0
  103. package/dist/client/assets/{MeshTopologyView-BT3ke2D1.js → MeshTopologyView-BVvtqI8q.js} +2 -2
  104. package/dist/client/assets/MessageEmbeds-ksPazAKH.js +1 -0
  105. package/dist/client/assets/MessagesScreen-C3WB4T21.js +1 -0
  106. package/dist/client/assets/{MissionContextRail-CafjuseK.js → MissionContextRail-D62-Wis8.js} +1 -1
  107. package/dist/client/assets/MissionControlView-B9cNPXvl.js +1 -0
  108. package/dist/client/assets/{MissionFocusOverlay-nhy3hkxQ.js → MissionFocusOverlay-C1zys3Jv.js} +1 -1
  109. package/dist/client/assets/MissionLeftAgentRow-vycMV77n.js +1 -0
  110. package/dist/client/assets/{MissionLogPane-DiUf3vWW.js → MissionLogPane-B19lYSY9.js} +1 -1
  111. package/dist/client/assets/NativeAreaScreen-B1RLa85C.js +1 -0
  112. package/dist/client/assets/NativeAreaScreen-CV0OhGra.js +1 -0
  113. package/dist/client/assets/NativeAreaScreen-CzuZt6o1.js +1 -0
  114. package/dist/client/assets/{NewAgentModal-BQ2wQ5gp.js → NewAgentModal-Bh-L-emz.js} +1 -1
  115. package/dist/client/assets/NewChatComposer-C97-iTMK.js +19 -0
  116. package/dist/client/assets/{NewChatOrigin-C8ROO4ps.js → NewChatOrigin-DFbF_XvR.js} +1 -1
  117. package/dist/client/assets/{NodeDetailPanel-BNTqYC7m.js → NodeDetailPanel-CElOEpCh.js} +1 -1
  118. package/dist/client/assets/{NodeMenu-CcOeFRCB.js → NodeMenu-B-jjHf1c.js} +1 -1
  119. package/dist/client/assets/ObserveEmbedScreen-B7Qt69Ms.js +2 -0
  120. package/dist/client/assets/{ObserveTextFlow-CC5mnngm.js → ObserveTextFlow-PFnG_10h.js} +2 -2
  121. package/dist/client/assets/{ObservedTopologyPanel-DF6tRZL_.js → ObservedTopologyPanel-CUTIoLZJ.js} +1 -1
  122. package/dist/client/assets/OpenScoutAppShell-37PDFfA4.js +31 -0
  123. package/dist/client/assets/OpsAgentsView-DajlX8LO.js +1 -0
  124. package/dist/client/assets/OpsScreen-jVcaBKGi.js +1 -0
  125. package/dist/client/assets/OpsSubnav-BOOYShHE.js +1 -0
  126. package/dist/client/assets/ProjectAgentProfile-D_wlW4sQ.js +1 -0
  127. package/dist/client/assets/{ProjectAgentProfileBar-C8z22pJ2.js → ProjectAgentProfileBar-DHuMKJj-.js} +1 -1
  128. package/dist/client/assets/ProjectAgentProfileHero-Dbebtug1.js +1 -0
  129. package/dist/client/assets/ProjectsInbox-B8zYE4vP.css +1 -0
  130. package/dist/client/assets/ProjectsInbox-Cgu7B4--.js +2 -0
  131. package/dist/client/assets/ProjectsRail-CDWocin_.js +1 -0
  132. package/dist/client/assets/ProjectsScreen-B_CJycqW.js +1 -0
  133. package/dist/client/assets/ProjectsThreadAside-1MMl_qUD.js +1 -0
  134. package/dist/client/assets/Provider-C35yu29I.js +5 -0
  135. package/dist/client/assets/{RailRow-DUPqXMZh.js → RailRow-BjmWK420.js} +1 -1
  136. package/dist/client/assets/RawSessionsTable-DzT90hWu.js +1 -0
  137. package/dist/client/assets/RealtimeVoiceScreen-B6ylX3WQ.js +16 -0
  138. package/dist/client/assets/{RenderedWorkerSprite-C8fxndAh.js → RenderedWorkerSprite-Dhlyg89J.js} +1 -1
  139. package/dist/client/assets/{ReplayClock-DUVJjrIu.js → ReplayClock-348f17bW.js} +1 -1
  140. package/dist/client/assets/{ReplayLog-Bek1Vc4W.js → ReplayLog-CBnAM3ui.js} +1 -1
  141. package/dist/client/assets/{ReplayOutpost-DlRg3172.js → ReplayOutpost-DyRPfNFx.js} +1 -1
  142. package/dist/client/assets/{RepoDiffEmbedScreen-CVUMnt6A.js → RepoDiffEmbedScreen-BWxvRDrS.js} +1 -1
  143. package/dist/client/assets/{RepoDiffPageScreen-D9-s5PyB.js → RepoDiffPageScreen-DN94irmY.js} +1 -1
  144. package/dist/client/assets/{RepoDiffViewer-D7FN-oyY.js → RepoDiffViewer-_4JVXBIW.js} +1 -1
  145. package/dist/client/assets/RepoDiffViewerLazy-XGVC3WXv.js +2 -0
  146. package/dist/client/assets/{ReposScreen-BQ7HO1om.js → ReposScreen-uMCpt0e9.js} +2 -2
  147. package/dist/client/assets/{RiggedWorkerCharacter-CJMWlvV-.js → RiggedWorkerCharacter-q6QRc7_o.js} +1 -1
  148. package/dist/client/assets/{SageModelStudio-B526NSnw.js → SageModelStudio-CNDhZhgD.js} +1 -1
  149. package/dist/client/assets/{ScoutDeckSurface-ChkvGyEW.js → ScoutDeckSurface-CUaU4R6T.js} +1 -1
  150. package/dist/client/assets/{ScoutSurface-6g1f5chk.js → ScoutSurface-3_25USO_.js} +1 -1
  151. package/dist/client/assets/{ScoutbotFxLab-BuwBdnPf.js → ScoutbotFxLab-CRqhYe0a.js} +1 -1
  152. package/dist/client/assets/{SecondaryNav-Bs-_VwTC.js → SecondaryNav-D7dbV2qo.js} +1 -1
  153. package/dist/client/assets/SessionContextStrip-CXfs9hUD.js +1 -0
  154. package/dist/client/assets/SessionContextStrip-DAIXwtHd.css +1 -0
  155. package/dist/client/assets/{SessionEmbedScreen-C2wf35-P.js → SessionEmbedScreen-D0zFmou-.js} +1 -1
  156. package/dist/client/assets/SessionHopMenu-E6VJZrE0.js +1 -0
  157. package/dist/client/assets/{SessionObserve-B64YsYhy.js → SessionObserve-DXxBvejJ.js} +9 -9
  158. package/dist/client/assets/SessionObserveEvidence-Cuj_KHxR.js +1 -0
  159. package/dist/client/assets/SessionRefScreen-DqLSUlCE.js +1 -0
  160. package/dist/client/assets/SessionsScreen-BLIRkohT.js +1 -0
  161. package/dist/client/assets/SettingsDrawer-juCpnbH6.js +3 -0
  162. package/dist/client/assets/SettingsScreen-BtGzE2-O.js +1 -0
  163. package/dist/client/assets/{SharedFloorCharacter-V04kD5T9.js → SharedFloorCharacter-DNEiaOUh.js} +1 -1
  164. package/dist/client/assets/SharedWorkFloor-0rqtdF-n.css +1 -0
  165. package/dist/client/assets/SharedWorkFloor-D9mf9KSg.js +2 -0
  166. package/dist/client/assets/{ShikiPane-XwFI-pCp.js → ShikiPane-CRtTYkMj.js} +1 -1
  167. package/dist/client/assets/{SlidePanel-BMpkXai_.js → SlidePanel-_CHAQdOa.js} +1 -1
  168. package/dist/client/assets/SpaceSwitcher-BLgSCf_T.js +1 -0
  169. package/dist/client/assets/{SpriteAvatar-aHeF4ZQZ.js → SpriteAvatar-CpZWf54-.js} +1 -1
  170. package/dist/client/assets/{SproutActionSprite-DI5N3gOj.js → SproutActionSprite-BSiTS4en.js} +1 -1
  171. package/dist/client/assets/{StatusPill-Dw4LP7wu.js → StatusPill-2gCP6H7A.js} +1 -1
  172. package/dist/client/assets/{TailView-BofjmUMJ.js → TailView-CYSijNTy.js} +2 -2
  173. package/dist/client/assets/Terminal-Bi97yb5s.js +4 -0
  174. package/dist/client/assets/TerminalEmbedScreen-Bqop67Bq.js +1 -0
  175. package/dist/client/assets/{TerminalHeaderMount-CwbQhXcI.js → TerminalHeaderMount-Cq4OD_xN.js} +1 -1
  176. package/dist/client/assets/{TerminalRelay--qOBwnbR.js → TerminalRelay-DrikpUSJ.js} +3 -3
  177. package/dist/client/assets/{TextDocumentSurface-BK6Qy41F.js → TextDocumentSurface-D52m7Vd8.js} +1 -1
  178. package/dist/client/assets/{TmuxPeek-DpUT9Tpc.js → TmuxPeek-CXFeweMg.js} +1 -1
  179. package/dist/client/assets/VoiceControlWell-DF3bjcYA.js +1 -0
  180. package/dist/client/assets/VoicePathDiagram-CmpHWfO-.js +1 -0
  181. package/dist/client/assets/{VoicePermissionsPanel-D35fOnQj.js → VoicePermissionsPanel-Ok2nfxHw.js} +1 -1
  182. package/dist/client/assets/VoiceTurnDetails-wAByRaNB.js +8 -0
  183. package/dist/client/assets/VoiceTurnStage-edoJalLV.js +1 -0
  184. package/dist/client/assets/VoiceTurnView-D-8g5E4r.js +1 -0
  185. package/dist/client/assets/WorkDetailScreen-zQkNVy2F.js +5 -0
  186. package/dist/client/assets/{WorkFilesViewer-t8AEyx3Q.js → WorkFilesViewer-vNt01sDd.js} +1 -1
  187. package/dist/client/assets/{WorkRunView-_mhG_FR2.js → WorkRunView-BDkR7Edq.js} +1 -1
  188. package/dist/client/assets/WorldActorTalk-BvSg_b1y.js +1 -0
  189. package/dist/client/assets/{WorldCharacter-BRrj3MQN.js → WorldCharacter-CIIlutQq.js} +1 -1
  190. package/dist/client/assets/WorldMinimap-B6HNgcDe.js +1 -0
  191. package/dist/client/assets/{WorldSky-D-RJzSa6.js → WorldSky-Jm2Z6dfW.js} +1 -1
  192. package/dist/client/assets/{activity-BJqFrZyB.js → activity-CIlFrfPJ.js} +1 -1
  193. package/dist/client/assets/{addon-fit-CHohcvS3.js → addon-fit-dFpj9Kfq.js} +1 -1
  194. package/dist/client/assets/{addon-webgl-CaRy2x2b.js → addon-webgl-BFCGRtGh.js} +1 -1
  195. package/dist/client/assets/{agent-essentials-bKWYOZaH.js → agent-essentials-BGGvT5G6.js} +1 -1
  196. package/dist/client/assets/{agent-master-model-C-KdOFDK.js → agent-master-model-Bk_yuUXJ.js} +1 -1
  197. package/dist/client/assets/{agent-specialization-BplZUa_0.js → agent-specialization-DDc7mLCW.js} +1 -1
  198. package/dist/client/assets/agents-screen-BYakbO50.css +1 -0
  199. package/dist/client/assets/{arc.es-CubLvQ4W.js → arc.es-C1SQHJ3k.js} +1 -1
  200. package/dist/client/assets/{arrow-left-DFfKAq0d.js → arrow-left-MVUKauwQ.js} +1 -1
  201. package/dist/client/assets/{arrow-right-DmAWnyAH.js → arrow-right-Bp-FpE5V.js} +1 -1
  202. package/dist/client/assets/{arrow-up-right-B0aLKiyF.js → arrow-up-right-BPedAgxO.js} +1 -1
  203. package/dist/client/assets/{book-open-BL9qvhEI.js → book-open-CV98WMSp.js} +1 -1
  204. package/dist/client/assets/{bot-BhAVbcCA.js → bot-B4zLQ4IN.js} +1 -1
  205. package/dist/client/assets/chat-api-DSJMBYoT.js +2 -0
  206. package/dist/client/assets/chat-message-markup-91DIry6R.js +1 -0
  207. package/dist/client/assets/chat-space-model-aW3Fd8_U.js +4 -0
  208. package/dist/client/assets/chat-transport-DNS5CB2I.js +1 -0
  209. package/dist/client/assets/{check-g7D7-c1J.js → check-lrJ3a73a.js} +1 -1
  210. package/dist/client/assets/{chevron-down-CDzRQQGl.js → chevron-down-l1mrh5S9.js} +1 -1
  211. package/dist/client/assets/{chevron-right-DKGTLiqc.js → chevron-right-DrfqcerI.js} +1 -1
  212. package/dist/client/assets/{chevron-up-DX7R6KY2.js → chevron-up-CETZJzjV.js} +1 -1
  213. package/dist/client/assets/{chunk-HRAB3GC3-Dvk_QpRq.js → chunk-HRAB3GC3-DbVLgbWX.js} +1 -1
  214. package/dist/client/assets/{clock-CQb4FeMf.js → clock-BV1aqPkK.js} +1 -1
  215. package/dist/client/assets/{code-xml-Cmadr3pQ.js → code-xml-BhcNbLWU.js} +1 -1
  216. package/dist/client/assets/{coffee-ljG1_krY.js → coffee-D7EAOdCk.js} +1 -1
  217. package/dist/client/assets/{compass-CvzkzkIh.js → compass-63TUaz5_.js} +1 -1
  218. package/dist/client/assets/content-B1lgE8qr.js +1 -0
  219. package/dist/client/assets/content-B5l11YyQ.js +1 -0
  220. package/dist/client/assets/content-BNZOZEpX.js +1 -0
  221. package/dist/client/assets/content-BRIxP155.js +1 -0
  222. package/dist/client/assets/content-BWd8gt8L.js +1 -0
  223. package/dist/client/assets/content-BfwS2jAK.js +1 -0
  224. package/dist/client/assets/content-C4p43_eT.js +1 -0
  225. package/dist/client/assets/content-CdYfaoDV.js +1 -0
  226. package/dist/client/assets/content-CzldLxw0.js +1 -0
  227. package/dist/client/assets/content-D-olnc4U.js +1 -0
  228. package/dist/client/assets/content-DTioimq4.js +1 -0
  229. package/dist/client/assets/content-LOebm3_d.js +1 -0
  230. package/dist/client/assets/{content-CKJ9zb7Z.js → content-nGlEZhUI.js} +1 -1
  231. package/dist/client/assets/{content-D1Ze_FG9.js → content-oyzDM-LK.js} +1 -1
  232. package/dist/client/assets/content-x1PHxED7.js +1 -0
  233. package/dist/client/assets/content-zX3ZY3T9.js +1 -0
  234. package/dist/client/assets/{conversation-icons-CIRaxmid.js → conversation-icons-Tqba2d56.js} +1 -1
  235. package/dist/client/assets/conversation-model-FxDeWlle.js +1 -0
  236. package/dist/client/assets/conversation-motion-features-C5zjuNwE.js +1 -0
  237. package/dist/client/assets/conversations-DoAAO6kA.js +1 -0
  238. package/dist/client/assets/{copy-BGOC1tJB.js → copy-xKeM5ZtU.js} +1 -1
  239. package/dist/client/assets/{cpu-Q6nrHFTN.js → cpu-BOTa_WLr.js} +1 -1
  240. package/dist/client/assets/{createLucideIcon-ChvMq-zl.js → createLucideIcon-zZ8Hx7er.js} +1 -1
  241. package/dist/client/assets/ctx-panel-BC8fpcWJ.css +1 -0
  242. package/dist/client/assets/direct-voice-BbLPuJ04.js +2 -0
  243. package/dist/client/assets/direct-voice-DbO7CSv_.css +1 -0
  244. package/dist/client/assets/discover-DJFxyV1k.js +2 -0
  245. package/dist/client/assets/embed-entry-Lyvu0Kfc.js +2 -0
  246. package/dist/client/assets/{external-link-BVccgH0n.js → external-link-CUObqmgX.js} +1 -1
  247. package/dist/client/assets/{eye-CsGfEVR6.js → eye-LrO-cXQt.js} +1 -1
  248. package/dist/client/assets/{file-code-corner-Be6da5l3.js → file-code-corner-CsU7jJpu.js} +1 -1
  249. package/dist/client/assets/{file-text-DP6txVW-.js → file-text-CnISiiw6.js} +1 -1
  250. package/dist/client/assets/{flag-DAFE2wZ5.js → flag-C4wl8z2-.js} +1 -1
  251. package/dist/client/assets/fleet-roll-call-BUgf7w-V.css +1 -0
  252. package/dist/client/assets/{folder-B_S7gBVr.js → folder-D5prSkzz.js} +1 -1
  253. package/dist/client/assets/{gauge-DQCGlE3o.js → gauge-D9_5iJEm.js} +1 -1
  254. package/dist/client/assets/{gestures-CofqY4Km.js → gestures-QZub3Ot9.js} +1 -1
  255. package/dist/client/assets/{git-branch-DcUCsWdJ.js → git-branch-B0_fPLO7.js} +1 -1
  256. package/dist/client/assets/{go-shortcuts-KQy-ZOpV.js → go-shortcuts-DicR7sUf.js} +1 -1
  257. package/dist/client/assets/home-moving-signal-rpMhsOJB.js +1 -0
  258. package/dist/client/assets/home-now-card-ByE6Umcx.js +1 -0
  259. package/dist/client/assets/{home-now-card-nano-CvU8B61b.js → home-now-card-nano-B5Dv3-pb.js} +1 -1
  260. package/dist/client/assets/hooks-_eCZZPsR.js +2 -0
  261. package/dist/client/assets/index-724SdE6r.js +1 -0
  262. package/dist/client/assets/{index-kkXUq-zf.js → index-CHD0qcfL.js} +1 -1
  263. package/dist/client/assets/index-CN4rBB_s.css +1 -0
  264. package/dist/client/assets/index-D1d98iYf.js +1 -0
  265. package/dist/client/assets/{index-DReVb7jZ.js → index-EsrkGBcv.js} +8 -8
  266. package/dist/client/assets/index-gGHPA-By.js +1 -0
  267. package/dist/client/assets/{inspector-panel-CLU7wjnT.js → inspector-panel-BkgUDn6G.js} +2 -2
  268. package/dist/client/assets/{keyboard-nav-CJXPaHXj.js → keyboard-nav-DDHegDbx.js} +1 -1
  269. package/dist/client/assets/{lane-roster-store-Ch9t6lb0.js → lane-roster-store-D-RSWjb-.js} +1 -1
  270. package/dist/client/assets/{layers-BOwyWodP.js → layers-C8PDiMul.js} +1 -1
  271. package/dist/client/assets/{layout-grid-B36Qsh0y.js → layout-grid-Cor2frzj.js} +1 -1
  272. package/dist/client/assets/left-Bn5X7x2o.js +2 -0
  273. package/dist/client/assets/left-BqS0fYX1.js +1 -0
  274. package/dist/client/assets/left-CTCeeeD3.js +1 -0
  275. package/dist/client/assets/left-DhtVPVux.js +1 -0
  276. package/dist/client/assets/left-K39b-Wvx.js +2 -0
  277. package/dist/client/assets/left-KGmueNPt.js +1 -0
  278. package/dist/client/assets/left-P_GOYB-s.js +1 -0
  279. package/dist/client/assets/left-advisor-B0N47De2.js +1 -0
  280. package/dist/client/assets/left-agents-CsSNc51Y.js +1 -0
  281. package/dist/client/assets/left-default-BlO5LP2T.js +1 -0
  282. package/dist/client/assets/left-lanes-C4PhaJE6.js +1 -0
  283. package/dist/client/assets/left-mission-BjTE5vPa.js +1 -0
  284. package/dist/client/assets/library-CkWNPHRp.js +1 -0
  285. package/dist/client/assets/{loader-circle-DNUsuPWz.js → loader-circle-OvccU82H.js} +1 -1
  286. package/dist/client/assets/{local-agents-I40PawYA.js → local-agents-BqnoxJrq.js} +1 -1
  287. package/dist/client/assets/log-in-7SnYqW5w.js +1 -0
  288. package/dist/client/assets/{machine-children-CdhNzDF0.js → machine-children-DxcqCLmd.js} +1 -1
  289. package/dist/client/assets/media-blobs-Bi8pxr1u.js +1 -0
  290. package/dist/client/assets/{mentions-Ck_Vjnyp.js → mentions-ByUvhS-v.js} +1 -1
  291. package/dist/client/assets/{mesh-ops-DSlvHp-D.js → mesh-ops-CiZ8xSAx.js} +1 -1
  292. package/dist/client/assets/{mesh-view-store-C1-mdP3P.js → mesh-view-store-DZvJC4KU.js} +1 -1
  293. package/dist/client/assets/{message-circle-cI5_A5mj.js → message-circle-CxRVKNE-.js} +1 -1
  294. package/dist/client/assets/message-markup-BQW5jdJw.js +15 -0
  295. package/dist/client/assets/message-markup-Zwo3t4cI.js +1 -0
  296. package/dist/client/assets/{message-square-CJW4WRlo.js → message-square-BxesYglW.js} +1 -1
  297. package/dist/client/assets/mission-control-model-BpJHDV5D.js +1 -0
  298. package/dist/client/assets/{mission-control-store-p_cboAm4.js → mission-control-store-elEEsIvb.js} +1 -1
  299. package/dist/client/assets/{mission-wall-DOuGOxQy.js → mission-wall-CAo4BKfa.js} +1 -1
  300. package/dist/client/assets/{monitor-C7_cHlkC.js → monitor-DTTYEb73.js} +1 -1
  301. package/dist/client/assets/{nav-destinations-CU_euC-Q.js → nav-destinations-uorRqFxf.js} +1 -1
  302. package/dist/client/assets/{observe-CtS0l3zu.js → observe-BJqERJVj.js} +1 -1
  303. package/dist/client/assets/{page-status-DwFR4wSw.js → page-status-BswZLqvA.js} +1 -1
  304. package/dist/client/assets/{panel-right-qP17MwMl.js → panel-right-Bv7sP_fc.js} +1 -1
  305. package/dist/client/assets/paperclip-BjcuP_Hx.js +1 -0
  306. package/dist/client/assets/{pause-B_hliKuR.js → pause-C2XTlkjs.js} +1 -1
  307. package/dist/client/assets/{persistent-state-BUsTTZFE.js → persistent-state-KRk_yb0q.js} +1 -1
  308. package/dist/client/assets/{pin-Oi4qHR6M.js → pin-C2mFOV1l.js} +1 -1
  309. package/dist/client/assets/{play-CVeRmqLH.js → play-FT6K3It1.js} +1 -1
  310. package/dist/client/assets/{plus-D5NLH_fM.js → plus-DFDDeGKu.js} +1 -1
  311. package/dist/client/assets/profile-DTmzN16I.js +1 -0
  312. package/dist/client/assets/{projects-inbox-CfwxCTdN.js → projects-inbox-C0FUCv_p.js} +1 -1
  313. package/dist/client/assets/projects-inbox-ColX6lpx.css +1 -0
  314. package/dist/client/assets/{provider-DwmCoSlc.js → provider-Dojd8quC.js} +1 -1
  315. package/dist/client/assets/{proxy-DgzP27W8.js → proxy-AJsmwA6h.js} +1 -1
  316. package/dist/client/assets/{radio-Cas2qg1D.js → radio-DRoOZsws.js} +1 -1
  317. package/dist/client/assets/{refresh-cw-IcD2lPoT.js → refresh-cw-BmVr7sCD.js} +1 -1
  318. package/dist/client/assets/resolve-panes-pbY1fCWi.js +1 -0
  319. package/dist/client/assets/resolve-sidebar-context-YWkZTq1t.js +1 -0
  320. package/dist/client/assets/right-49kO-6nD.js +1 -0
  321. package/dist/client/assets/right-APtItA8A.js +1 -0
  322. package/dist/client/assets/right-BJwhPqtn.js +1 -0
  323. package/dist/client/assets/right-BPqrf4ek.js +1 -0
  324. package/dist/client/assets/right-D7djOy6K.js +1 -0
  325. package/dist/client/assets/right-DKOUCRob.js +1 -0
  326. package/dist/client/assets/right-DMNrVzg7.js +1 -0
  327. package/dist/client/assets/{right-cjPTwPXS.js → right-DWPVB-nK.js} +1 -1
  328. package/dist/client/assets/right-DppeMCy4.js +1 -0
  329. package/dist/client/assets/right-GAL5Mw1v.js +1 -0
  330. package/dist/client/assets/{rocket-DAqYvu8I.js → rocket-CGl4RTV7.js} +1 -1
  331. package/dist/client/assets/router-DCtl8wqb.js +1 -0
  332. package/dist/client/assets/runtime-picker-DXu2bOTh.js +1 -0
  333. package/dist/client/assets/{scope-views-Dl3ml9OZ.js → scope-views-RUWwCVAr.js} +1 -1
  334. package/dist/client/assets/scout-voice-CZx60X6E.js +1 -0
  335. package/dist/client/assets/{scoutbot-markdown-DwvGQOWo.js → scoutbot-markdown-BKEBSbG0.js} +1 -1
  336. package/dist/client/assets/{scroll-text-B0tKI9Sg.js → scroll-text-DNjxhyO2.js} +1 -1
  337. package/dist/client/assets/{search-UsM-9-_W.js → search-DT42oyRW.js} +1 -1
  338. package/dist/client/assets/secondaryNavConfig-CS1svh6n.js +1 -0
  339. package/dist/client/assets/{selection-bridge-OTS2iFkt.js → selection-bridge-x3wFUjxj.js} +1 -1
  340. package/dist/client/assets/{send-horizontal-BlQsRK6C.js → send-horizontal-CH0-fbZE.js} +1 -1
  341. package/dist/client/assets/{send-to-agent-session-C1mgqdow.js → send-to-agent-session-DoKCDBJ4.js} +1 -1
  342. package/dist/client/assets/{server-DBlPW0Mp.js → server-QfsgMLk1.js} +1 -1
  343. package/dist/client/assets/{session-catalog-CnpZMB7C.js → session-catalog-CvSdPHPe.js} +1 -1
  344. package/dist/client/assets/session-recap-lanes-D-eVJnpY.js +1 -0
  345. package/dist/client/assets/session-recap-queue-41l2XVkI.js +1 -0
  346. package/dist/client/assets/{session-table-CGkfG5Yd.js → session-table-L-pns6Zl.js} +1 -1
  347. package/dist/client/assets/{sessions-view-Bge4XZ4I.js → sessions-view-Dc-QAa7O.js} +1 -1
  348. package/dist/client/assets/{settings-C69Zjrpq.js → settings-BVh7kldq.js} +1 -1
  349. package/dist/client/assets/{sliders-horizontal-6bzeod7c.js → sliders-horizontal-782VC_yy.js} +1 -1
  350. package/dist/client/assets/{sparkles-Cc5lPZRv.js → sparkles-BjHq_DNK.js} +1 -1
  351. package/dist/client/assets/{sse-A8AyLH0g.js → sse-BCPRocpq.js} +1 -1
  352. package/dist/client/assets/system-surfaces-redesign-q2BmCB7e.css +1 -0
  353. package/dist/client/assets/{tail-events-C4WdhVeK.js → tail-events-d0yAYxR0.js} +1 -1
  354. package/dist/client/assets/{terminal-DMZjX1es.js → terminal-hQKQygcf.js} +1 -1
  355. package/dist/client/assets/{terminal-relay-mO89dX-Y.js → terminal-relay-Bxs1hp-j.js} +1 -1
  356. package/dist/client/assets/{terminal-takeover-CZZsnPzj.js → terminal-takeover-Ay5C2c-M.js} +1 -1
  357. package/dist/client/assets/theme-vars-DNK0nn3k.js +1 -0
  358. package/dist/client/assets/triangle-alert-CHoRGdVO.js +1 -0
  359. package/dist/client/assets/{use-beside-D3cJpA5p.js → use-beside-DoRC1nt0.js} +1 -1
  360. package/dist/client/assets/{use-conversation-list-D5EnpVba.js → use-conversation-list-CY4JciOV.js} +1 -1
  361. package/dist/client/assets/{use-fleet-active-asks-D_QOmjg5.js → use-fleet-active-asks-CymmXWH4.js} +1 -1
  362. package/dist/client/assets/{use-mesh-node-state-3V3ADQ-G.js → use-mesh-node-state-BvaqtODo.js} +1 -1
  363. package/dist/client/assets/{use-mesh-ops-items-DI9GKWlF.js → use-mesh-ops-items-BSYaqH_0.js} +1 -1
  364. package/dist/client/assets/{use-reduced-motion-CiaZHMnk.js → use-reduced-motion-3gMYZNIp.js} +1 -1
  365. package/dist/client/assets/{use-scout-dev-flags-CkdAHlDR.js → use-scout-dev-flags-DS_pYYQd.js} +1 -1
  366. package/dist/client/assets/{useAgentHoverCard-A3QGXqIy.js → useAgentHoverCard-BANmpjMh.js} +1 -1
  367. package/dist/client/assets/useContentSecondaryNav-C6OBu-3_.js +1 -0
  368. package/dist/client/assets/{useEmbedHeadline-atkQVfGw.js → useEmbedHeadline-D6pJRxUg.js} +1 -1
  369. package/dist/client/assets/usePersistentState-B8lP7TRb.js +1 -0
  370. package/dist/client/assets/{usePierreRuntime-DTvcwISe.js → usePierreRuntime-BAQdiN0L.js} +1 -1
  371. package/dist/client/assets/useSidebarCollapse-OL_8J5cL.js +1 -0
  372. package/dist/client/assets/{users-RLK3P5U4.js → users-BUjx36gx.js} +1 -1
  373. package/dist/client/assets/voice-paths-CJUuBPh3.css +1 -0
  374. package/dist/client/assets/voice-turn-DftA0iIb.css +1 -0
  375. package/dist/client/assets/voice-turn-ledger-BMZxlSjg.js +1 -0
  376. package/dist/client/assets/{wrench-B4maQJai.js → wrench-DR0i5BU7.js} +1 -1
  377. package/dist/client/assets/{x-rlMdRqJF.js → x-DAehov0E.js} +1 -1
  378. package/dist/client/assets/{xterm-B1zHHOLQ.js → xterm-BXQiLVnI.js} +1 -1
  379. package/dist/client/assets/{zap-B4X0OrEw.js → zap-CEjZNZbI.js} +1 -1
  380. package/dist/client/crew/sheets/eye-plate-v1/look-down-left.webp +0 -0
  381. package/dist/client/crew/sheets/eye-plate-v1/look-down-right.webp +0 -0
  382. package/dist/client/crew/sheets/eye-plate-v1/look-down.webp +0 -0
  383. package/dist/client/crew/sheets/eye-plate-v1/look-up-left.webp +0 -0
  384. package/dist/client/crew/sheets/eye-plate-v1/look-up-right.webp +0 -0
  385. package/dist/client/crew/sheets/eye-plate-v1/look-up.webp +0 -0
  386. package/dist/client/crew/sheets/sprout/blink-half.webp +0 -0
  387. package/dist/client/crew/sheets/sprout/blink-shut.webp +0 -0
  388. package/dist/client/crew/sheets/sprout/look-down-left.webp +0 -0
  389. package/dist/client/crew/sheets/sprout/look-down-right.webp +0 -0
  390. package/dist/client/crew/sheets/sprout/look-down.webp +0 -0
  391. package/dist/client/crew/sheets/sprout/look-left.webp +0 -0
  392. package/dist/client/crew/sheets/sprout/look-right.webp +0 -0
  393. package/dist/client/crew/sheets/sprout/look-up-left.webp +0 -0
  394. package/dist/client/crew/sheets/sprout/look-up-right.webp +0 -0
  395. package/dist/client/crew/sheets/sprout/look-up.webp +0 -0
  396. package/dist/client/index.html +2 -2
  397. package/dist/drizzle/0020_message_reactions.sql +11 -0
  398. package/dist/drizzle/meta/_journal.json +7 -0
  399. package/dist/main.mjs +542 -150
  400. package/dist/node/main.mjs +131 -17
  401. package/dist/pairing-runtime-controller.mjs +375 -78
  402. package/dist/runtime/base-daemon.mjs +98 -5
  403. package/dist/runtime/broker-daemon.mjs +1879 -1198
  404. package/dist/runtime/broker-process-manager.mjs +96 -3
  405. package/dist/runtime/mesh-discover.mjs +96 -3
  406. package/dist/scout-control-plane-web.mjs +4817 -1616
  407. package/dist/update-helper.mjs +211 -39
  408. package/package.json +2 -2
  409. package/dist/client/assets/ActivityScreen-CcDdQTBK.js +0 -1
  410. package/dist/client/assets/AgentAdventures-BxrYq_2v.js +0 -1
  411. package/dist/client/assets/AgentAvatar-NZOqcsB2.js +0 -1
  412. package/dist/client/assets/AgentConfigurationScreen-BhD1PEAM.js +0 -1
  413. package/dist/client/assets/AgentDefinitionsWorkspace-BqS6MXqF.js +0 -1
  414. package/dist/client/assets/AgentFloorView-A0dDRlRV.js +0 -1
  415. package/dist/client/assets/AgentInfoScreen-DuaN0sgE.js +0 -1
  416. package/dist/client/assets/AgentLanesEmbedScreen-CeNiaZ9_.js +0 -1
  417. package/dist/client/assets/AgentLanesView-WZhEDBFE.js +0 -2
  418. package/dist/client/assets/AgentMasterScreen-DUDUTAnU.js +0 -1
  419. package/dist/client/assets/AgentSessions-CO1WGa8Z.js +0 -6
  420. package/dist/client/assets/AgentsConsole-BQOWkj35.js +0 -1
  421. package/dist/client/assets/AgentsScreen-BMNAj1PH.js +0 -1
  422. package/dist/client/assets/AgentsSubnav-CeHhuzyM.js +0 -1
  423. package/dist/client/assets/BriefingDetailScreen-yZG8_m4h.js +0 -1
  424. package/dist/client/assets/BrokerScreen-CT37VQiL.js +0 -8
  425. package/dist/client/assets/ChannelComposer-BVItWlEz.js +0 -1
  426. package/dist/client/assets/ChannelSidebar-B-2spawY.js +0 -1
  427. package/dist/client/assets/ChatBits-CLJ71hTY.js +0 -1
  428. package/dist/client/assets/ChatRightPanel-pKQtkAgl.js +0 -1
  429. package/dist/client/assets/ChatSpaceSurface-NrLwdPkE.js +0 -1
  430. package/dist/client/assets/ChatSpaceTheme-BPMgPdVK.css +0 -1
  431. package/dist/client/assets/ChatSpaceTheme-D37Jk7bl.js +0 -1
  432. package/dist/client/assets/ConversationComposer-DNcn5U6D.js +0 -1
  433. package/dist/client/assets/ConversationFeedRows-RnYSa7Io.js +0 -1
  434. package/dist/client/assets/ConversationHeader-Y9TEJxP_.js +0 -1
  435. package/dist/client/assets/ConversationScreen-Brfas2y0.css +0 -1
  436. package/dist/client/assets/ConversationScreen-tpj4cqWs.js +0 -2
  437. package/dist/client/assets/ConversationStatus-Cv-7hErW.js +0 -1
  438. package/dist/client/assets/CrewAvatar-zgzC3cbU.js +0 -1
  439. package/dist/client/assets/CrewWorkspaces-K2jcyLec.js +0 -1
  440. package/dist/client/assets/FlightObserveScreen-CvzhzuWc.js +0 -1
  441. package/dist/client/assets/FloorResourcesSheet-_Iy5UqgY.js +0 -1
  442. package/dist/client/assets/FloorTacticalHUD-BhyOqlL5.js +0 -1
  443. package/dist/client/assets/HarnessMark-DSvM_H7H.js +0 -1
  444. package/dist/client/assets/HarnessesScreen-DyjqbZ4k.js +0 -1
  445. package/dist/client/assets/InviteLandingScreen-xZQ2na1z.js +0 -1
  446. package/dist/client/assets/InviteSheet--5Zjct25.js +0 -1
  447. package/dist/client/assets/KnowledgeSearchScreen-BPqAjHnH.js +0 -1
  448. package/dist/client/assets/LaneTraceDetailSheet-jl4XQmEx.js +0 -1
  449. package/dist/client/assets/MeshScreen-BW1dMFWF.js +0 -1
  450. package/dist/client/assets/MessagesScreen-CtNMfIvC.js +0 -1
  451. package/dist/client/assets/MissionControlView-BjPOViGY.js +0 -1
  452. package/dist/client/assets/MissionLeftAgentRow-Dms0DBjO.js +0 -1
  453. package/dist/client/assets/NativeAreaScreen-BQSTo8As.js +0 -1
  454. package/dist/client/assets/NativeAreaScreen-Brix6xDB.js +0 -1
  455. package/dist/client/assets/NativeAreaScreen-D7HyQNlM.js +0 -1
  456. package/dist/client/assets/NewChatComposer-BEXS8vV6.js +0 -19
  457. package/dist/client/assets/ObserveEmbedScreen-Dh30EjAQ.js +0 -2
  458. package/dist/client/assets/OpenScoutAppShell-D9pgw36i.js +0 -31
  459. package/dist/client/assets/OpsAgentsView-D3rM0udq.js +0 -1
  460. package/dist/client/assets/OpsScreen-DySeNQ1V.js +0 -1
  461. package/dist/client/assets/OpsSubnav-C9E0r3GZ.js +0 -1
  462. package/dist/client/assets/ProjectAgentProfile-FUav75j2.js +0 -1
  463. package/dist/client/assets/ProjectAgentProfileHero-BLK0EwMg.js +0 -1
  464. package/dist/client/assets/ProjectsInbox-DfCXReZK.js +0 -2
  465. package/dist/client/assets/ProjectsRail-CELVubfJ.js +0 -1
  466. package/dist/client/assets/ProjectsScreen-DMw4TLKy.js +0 -1
  467. package/dist/client/assets/ProjectsThreadAside-D1Sh4fnX.js +0 -1
  468. package/dist/client/assets/Provider-CNZluAZb.js +0 -5
  469. package/dist/client/assets/RailToggle-BwmY70B8.js +0 -1
  470. package/dist/client/assets/RawSessionsTable-6OVJq0JZ.js +0 -1
  471. package/dist/client/assets/RealtimeVoiceScreen-D41TYY0x.js +0 -9
  472. package/dist/client/assets/RepoDiffViewerLazy-BpMR7tlx.js +0 -2
  473. package/dist/client/assets/SessionObserveEvidence-CS1aQBpQ.js +0 -1
  474. package/dist/client/assets/SessionRefScreen-DURV0MpF.js +0 -1
  475. package/dist/client/assets/SessionsScreen-D71ZR-8t.js +0 -1
  476. package/dist/client/assets/SettingsDrawer-Nz98oBVl.js +0 -3
  477. package/dist/client/assets/SettingsScreen-CYBHal6y.js +0 -1
  478. package/dist/client/assets/SharedWorkFloor-BCmdeb3Q.css +0 -1
  479. package/dist/client/assets/SharedWorkFloor-C0xxW4SN.js +0 -2
  480. package/dist/client/assets/SpaceSwitcher-BfeIf-ad.js +0 -1
  481. package/dist/client/assets/Terminal-jIqnIZZ6.js +0 -4
  482. package/dist/client/assets/TerminalEmbedScreen-3XsjuySR.js +0 -1
  483. package/dist/client/assets/WorkDetailScreen-Bcf_yHhU.js +0 -5
  484. package/dist/client/assets/WorldActorTalk-CKerDikx.js +0 -1
  485. package/dist/client/assets/WorldMinimap-DOptgrc4.js +0 -1
  486. package/dist/client/assets/agent-autocomplete-C7xwIcwd.css +0 -1
  487. package/dist/client/assets/agent-autocomplete-_u9o5EZu.js +0 -2
  488. package/dist/client/assets/agents-screen-BMu6PpRY.css +0 -1
  489. package/dist/client/assets/at-sign-DM7xeppo.js +0 -1
  490. package/dist/client/assets/chat-api-BPVC0asu.js +0 -1
  491. package/dist/client/assets/chat-space-model-B6Jg2CY4.js +0 -4
  492. package/dist/client/assets/content-0AXa0klu.js +0 -1
  493. package/dist/client/assets/content-BEyJ19Lx.js +0 -1
  494. package/dist/client/assets/content-BN5weWKW.js +0 -1
  495. package/dist/client/assets/content-BNokkm7C.js +0 -1
  496. package/dist/client/assets/content-BV4PUM9q.js +0 -1
  497. package/dist/client/assets/content-BxUPlcx5.js +0 -1
  498. package/dist/client/assets/content-CIC5sku8.js +0 -1
  499. package/dist/client/assets/content-CdkTyxqk.js +0 -1
  500. package/dist/client/assets/content-CnhhSCZq.js +0 -1
  501. package/dist/client/assets/content-DY3F9Vfr.js +0 -1
  502. package/dist/client/assets/content-DrKBYpcb.js +0 -1
  503. package/dist/client/assets/content-LSStQYj5.js +0 -1
  504. package/dist/client/assets/content-YvU-D0hF.js +0 -1
  505. package/dist/client/assets/content-oKQMyVnH.js +0 -1
  506. package/dist/client/assets/conversation-model-m8HhzroS.js +0 -1
  507. package/dist/client/assets/conversation-motion-features-D9PxLoDt.js +0 -1
  508. package/dist/client/assets/conversations-Cbg9h_Af.js +0 -1
  509. package/dist/client/assets/ctx-panel-F05jXK4Q.css +0 -1
  510. package/dist/client/assets/discover-DlwbftpC.js +0 -2
  511. package/dist/client/assets/embed-entry-c0lwtjBG.js +0 -2
  512. package/dist/client/assets/home-moving-signal-BIHUGNfI.js +0 -1
  513. package/dist/client/assets/home-now-card-CaLgZze2.js +0 -1
  514. package/dist/client/assets/hooks-DaUOREpP.js +0 -2
  515. package/dist/client/assets/index-CGbs0SBm.css +0 -1
  516. package/dist/client/assets/index-CbqBwfIW.js +0 -1
  517. package/dist/client/assets/index-CyPMl7Up.js +0 -1
  518. package/dist/client/assets/index-PQpJveGO.js +0 -1
  519. package/dist/client/assets/left-0vBrvrBG.js +0 -2
  520. package/dist/client/assets/left-C6SyaqlJ.js +0 -1
  521. package/dist/client/assets/left-CTuXysZR.js +0 -2
  522. package/dist/client/assets/left-Cc6s4DT2.js +0 -1
  523. package/dist/client/assets/left-DF5caiyh.js +0 -1
  524. package/dist/client/assets/left-DgT4tWCx.js +0 -1
  525. package/dist/client/assets/left-R0wppTTr.js +0 -1
  526. package/dist/client/assets/left-advisor-C-kt8V28.js +0 -1
  527. package/dist/client/assets/left-agents-thnBO156.js +0 -1
  528. package/dist/client/assets/left-default-CT42fnpF.js +0 -1
  529. package/dist/client/assets/left-lanes-CSmZgciK.js +0 -1
  530. package/dist/client/assets/left-mission-C86x6i9h.js +0 -1
  531. package/dist/client/assets/library-DdhYL_9v.js +0 -1
  532. package/dist/client/assets/message-markup-6Tgo4qFJ.js +0 -15
  533. package/dist/client/assets/mission-control-model-C30vU1Fe.js +0 -1
  534. package/dist/client/assets/profile-BegEUmB7.js +0 -1
  535. package/dist/client/assets/projects-inbox-CKPLZN8s.css +0 -1
  536. package/dist/client/assets/resolve-panes-pfZTezKo.js +0 -1
  537. package/dist/client/assets/resolve-sidebar-context-D5ksvrb_.js +0 -1
  538. package/dist/client/assets/right-BDaCJ0CF.js +0 -1
  539. package/dist/client/assets/right-BP6lXRFS.js +0 -1
  540. package/dist/client/assets/right-Cb1VCrdj.js +0 -1
  541. package/dist/client/assets/right-CeFaxfBo.js +0 -1
  542. package/dist/client/assets/right-Ck2SrYCj.js +0 -1
  543. package/dist/client/assets/right-D-uv5YfF.js +0 -1
  544. package/dist/client/assets/right-DJMSICky.js +0 -1
  545. package/dist/client/assets/right-Dnljs8ah.js +0 -1
  546. package/dist/client/assets/right-SdCSF8PP.js +0 -1
  547. package/dist/client/assets/router-C-MF5-mb.js +0 -1
  548. package/dist/client/assets/runtime-picker-C_AVYF63.js +0 -1
  549. package/dist/client/assets/scout-voice-CqAyfblr.js +0 -1
  550. package/dist/client/assets/secondaryNavConfig-DzNHk6IH.js +0 -1
  551. package/dist/client/assets/system-surfaces-redesign-DKFg4GB5.css +0 -1
  552. package/dist/client/assets/useContentSecondaryNav-DrL_nkCZ.js +0 -1
  553. package/dist/client/assets/usePersistentState-Y8XwSTg-.js +0 -1
  554. package/dist/drizzle/meta/0000_snapshot.json +0 -4575
  555. package/dist/drizzle/meta/0001_snapshot.json +0 -4624
  556. package/dist/drizzle/meta/0002_snapshot.json +0 -4631
  557. package/dist/drizzle/meta/0003_snapshot.json +0 -4952
  558. package/dist/drizzle/meta/0004_snapshot.json +0 -5235
  559. package/dist/drizzle/meta/0005_snapshot.json +0 -5599
  560. package/dist/drizzle/meta/0006_snapshot.json +0 -5606
  561. package/dist/drizzle/meta/0007_snapshot.json +0 -5767
  562. package/dist/drizzle/meta/0008_snapshot.json +0 -5774
  563. package/dist/drizzle/meta/0009_snapshot.json +0 -6262
  564. package/dist/drizzle/meta/0010_snapshot.json +0 -6286
  565. package/dist/drizzle/meta/0011_snapshot.json +0 -6337
  566. package/dist/drizzle/meta/0012_snapshot.json +0 -6458
  567. package/dist/drizzle/meta/0013_snapshot.json +0 -6465
  568. package/dist/drizzle/meta/0014_snapshot.json +0 -6503
  569. package/dist/drizzle/meta/0015_snapshot.json +0 -6596
  570. package/dist/drizzle/meta/0016_snapshot.json +0 -6611
  571. package/dist/drizzle/meta/0017_snapshot.json +0 -6785
  572. package/dist/drizzle/meta/0018_snapshot.json +0 -6804
  573. package/dist/drizzle/meta/0019_snapshot.json +0 -6804
@@ -0,0 +1 @@
1
+ import{j as a,r as b}from"./index-EsrkGBcv.js";import{a as x}from"./voice-turn-ledger-BMZxlSjg.js";const u=l=>`${l.toFixed(1)}s`;function g(l,n,i){return[{key:"you",label:"you",match:e=>e.lane==="you"},{key:"stt",label:"stt",match:e=>e.lane==="host"},{key:"reply",label:"reply model",match:e=>e.lane==="scoutbot",ticks:!0},{key:"voice",label:i??"voice",match:e=>e.lane==="voice"&&e.tone==="prep"},{key:"speaker",label:"speaker",match:e=>e.lane==="voice"&&e.tone==="speak"}].map(e=>{const r=l?l.spans.filter(e.match):[];if(r.length===0)return{key:e.key,label:e.label,state:"pending"};const o=r.find(s=>s.end===null);if(o&&n!==void 0)return{key:e.key,label:e.label,state:"active",sec:Math.max(0,n-o.start)};const p=Math.min(...r.map(s=>s.start)),t=Math.max(...r.map(s=>s.end??n??s.start),...e.ticks&&l?l.ticks.map(s=>s.at):[0]);return{key:e.key,label:e.label,state:"done",sec:Math.max(0,t-p)}})}function $({state:l,floorWho:n,speakOpen:i=!1,voiceName:c}){const e=[{key:"you",label:"you",state:"pending"},{key:"webrtc",label:"webrtc",state:"pending"},{key:"reply",label:"openai realtime",sky:!0,state:"pending"},{key:"voice",label:c??"voice",sky:!0,state:"pending"},{key:"speaker",label:"speaker",state:"pending"}];if(l!=="live")return e;const r=n==="you"?0:n==="Scoutbot"?2:n==="Scout"?i?4:2:-1;return e.map((o,p)=>({...o,state:p===r?"active":"done"}))}function S({mode:l,stops:n,connecting:i=!1,error:c=!1,continuous:e=!1}){const r=["vp7-track",i?"vp7-track--connecting":"",c?"vp7-track--error":""].filter(Boolean).join(" "),o=i?"; connecting station by station":e?`; circuit open end to end${n.some(t=>t.state==="active")?"":"; current speaker not observed"}`:c?"; in error":"",p=n.map(t=>{const s=e&&t.state==="done"?"connected":t.state,v=!e&&t.sec!==void 0?`, ${u(t.sec)}`:"";return`${t.label}: ${s}${v}`}).join("; ");return a.jsx("div",{className:r,role:"img","aria-label":`${l==="gpt-live"?"GPT Live":"Local Live"} path: ${p}${o}.`,children:n.map((t,s)=>a.jsxs(b.Fragment,{children:[s>0&&a.jsx("span",{className:`vp7-link${t.sky?" vp7-link--sky":""}${e||t.state!=="pending"?" vp7-link--filled":""}${!e&&t.state==="active"?" vp7-link--filling":""}`,style:{"--i":s},"aria-hidden":"true",children:t.state==="active"&&a.jsx("i",{})}),a.jsxs("span",{className:`vp7-stop vp7-stop--${t.state}${t.sky?" vp7-stop--sky":""}`,style:{"--i":s},children:[a.jsx("span",{className:"vp7-dot","aria-hidden":"true"}),a.jsx("span",{className:"vp7-stop-label",children:t.label}),a.jsx("span",{className:"vp7-stop-time",children:e||t.sec===void 0?"":u(t.sec)})]})]},t.key))})}const j={you:"you",live:"sky",host:"transcribe",snap:"transcribe",model:"reply",scout:"reply",prep:"transcribe",speak:"speak",quiet:"quiet"};function q(l){return l?.spans[0]?.lane==="you"?"you":void 0}function T({who:l,whoTone:n="dim",clock:i,story:c,quote:e,quoteWho:r,placeholder:o,turn:p,now:t,live:s=!1,lanesOpen:v=!1,onToggleLanes:y}){const m=p?x(p,t):null,d=m&&m.length>0?a.jsx(a.Fragment,{children:m.map((h,k)=>a.jsx("span",{className:`vp7-share-seg vp7-share-seg--${j[h.tone]}${s&&k===m.length-1&&h.tone!=="quiet"?" vp7-share-seg--live":""}`,style:{flexGrow:Math.max(h.to-h.from,.08)}},k))}):null;return a.jsxs("div",{className:"vp7-hero",children:[a.jsxs("p",{className:"vp7-hero-eyebrow",children:[a.jsx("b",{className:`vp7-who vp7-who--${n}`,children:l}),i?a.jsx("span",{className:"vp7-hero-clock",children:i}):null,c?a.jsx("span",{className:"vp7-hero-story",children:c}):null]}),e?a.jsxs("p",{className:"vp7-hero-quote",children:[a.jsx("span",{className:"vp7-quote-mark",children:"“"}),e,a.jsx("span",{className:"vp7-quote-mark",children:"”"}),r&&a.jsxs("span",{className:"vp7-quote-who",children:[" — ",r]})]}):a.jsx("p",{className:"vp7-hero-quote vp7-hero-quote--rest",children:o??"…"}),d?y?a.jsx("button",{type:"button",className:"vp7-share",onClick:y,"aria-pressed":v,"aria-label":"Share of the turn — toggle the lanes timeline",title:"Turn lanes",children:d}):a.jsx("div",{className:"vp7-share",role:"img","aria-label":"Share of the turn",children:d}):null]})}export{T as VoiceTurnHero,S as VoiceTurnStageTrack,$ as gptStageStops,g as localStageStops,q as voiceTurnQuoteWho};
@@ -0,0 +1 @@
1
+ import{j as t}from"./index-EsrkGBcv.js";import{t as x,b as N,c as b,i as y,a as S,f as k}from"./voice-turn-ledger-BMZxlSjg.js";/* empty css */const g=["you","live","scoutbot","scout"],T=["you","host","scoutbot","scout","voice"],$={you:"you",live:"Scout",host:"transcribe",scoutbot:"Scoutbot",scout:"tools",voice:"speak"},d=(e,i)=>`${e/i*100}%`;function f(e){return e<=16?2:e<=40?5:10}function A({window:e}){const i=f(e),o=Array.from({length:Math.floor(e/i)+1},(l,r)=>r*i);return t.jsx("div",{className:"vtl-axis","aria-hidden":"true",children:o.map(l=>t.jsx("span",{style:{left:d(l,e)},children:l===0?"0s":l},l))})}function q({window:e}){const i=f(e),o=Array.from({length:Math.floor(e/i)},(l,r)=>(r+1)*i);return t.jsx(t.Fragment,{children:o.map(l=>t.jsx("span",{className:"vtl-grid",style:{left:d(l,e)},"aria-hidden":"true"},l))})}function E(e,i){if(i==="local-live")return T;const o=new Set(e.spans.map(l=>l.lane));return g.filter(l=>l==="you"||l==="live"||l==="scoutbot"||l==="scout"||o.has(l))}function L(e){return k(e.quote)||void 0}function G({turn:e,now:i,mode:o}){const l=i??x(e),r=i!==void 0,n=N(e,i),u=E(e,o),a=r?b(e,l):null;return t.jsxs("div",{className:"vtl vtl--lanes",children:[a&&t.jsxs("p",{className:"vtl-lanes-kicker",children:[t.jsx("b",{children:a.who}),t.jsxs("span",{children:[" ",a.since.toFixed(1),"s"]}),a.beneath?t.jsxs("span",{className:"vtl-beneath",children:[" · ",a.beneath]}):null]}),t.jsxs("div",{className:"vtl-lanes",children:[t.jsx("div",{className:"vtl-labels",children:u.map(c=>t.jsx("span",{children:$[c]},c))}),t.jsxs("div",{className:"vtl-track",children:[t.jsx(q,{window:n}),u.map(c=>t.jsxs("div",{className:"vtl-lane",children:[e.spans.filter(s=>s.lane===c).map(s=>{const m=s.end??i??s.start,p=s.end===null&&r;return t.jsxs("span",{children:[s.label&&t.jsx("span",{className:`vtl-label${s.quote?" is-quote":""}`,style:{left:d(s.start,n),"--l":d(s.start,n)},children:s.label}),t.jsx("span",{className:`vtl-span vtl-t-${s.tone}${p?" is-open":""}`,style:{left:d(s.start,n),width:d(Math.max(m-s.start,.08),n)}})]},s.id)}),e.ticks.filter(s=>s.lane===c).map(s=>t.jsxs("span",{children:[t.jsx("span",{className:"vtl-tick",style:{left:d(s.at,n)}}),t.jsx("span",{className:"vtl-tick-label",style:{left:`calc(${d(s.at,n)} + 4px)`},children:s.label})]},s.id))]},c)),r&&t.jsx("span",{className:"vtl-now",style:{left:d(l,n)},"aria-hidden":"true"}),t.jsx(A,{window:n})]})]})]})}function O({turns:e,selectedId:i,onSelect:o,mode:l,liveId:r,now:n}){const u=e.filter(a=>!y(a)||a.id===r);return u.length===0?t.jsx(V,{mode:l}):t.jsx("ol",{className:"vtl-settle",children:[...u].reverse().map(a=>{const c=L(a),s=a.id===i,m=a.id===r,p=S(a,m?n:void 0),j=x(a,m?n:void 0);return t.jsx("li",{className:`${s?"is-selected":""}${m?" is-live":""}`.trim()||void 0,children:t.jsxs("button",{type:"button",className:"vtl-settle-hit",onClick:()=>o?.(a.id),"aria-pressed":s,children:[t.jsxs("div",{children:[t.jsxs("span",{className:"vtl-settle-quote",children:[m&&t.jsx("span",{className:"vtl-live-dot","aria-hidden":"true"}),c?`“${c}”`:"turn"]}),t.jsxs("span",{className:"vtl-settle-meta",children:[t.jsx("span",{className:"vtl-mini-strip","aria-hidden":"true",children:p.map((h,v)=>t.jsx("i",{className:`vtl-t-${h.tone}${m&&v===p.length-1&&h.tone!=="quiet"?" is-live":""}`,style:{flexGrow:Math.max(h.to-h.from,.08)}},v))}),t.jsxs("span",{className:"vtl-settle-total",children:[j.toFixed(1),"s"]})]})]}),t.jsx("time",{dateTime:new Date(a.origin).toISOString(),children:new Date(a.origin).toLocaleTimeString([],{hour:"numeric",minute:"2-digit",second:"2-digit"})})]})},a.id)})})}function V({mode:e}){return t.jsx("p",{className:"vtl-empty-line",children:e==="gpt-live"?"Start a call. Seconds and tools land here after the first turn.":"Tap to talk. Seconds and tools land here after the first turn."})}export{V as VoiceTurnEmpty,O as VoiceTurnSettle,G as VoiceTurnView};
@@ -0,0 +1,5 @@
1
+ import{r as h,j as e}from"./index-EsrkGBcv.js";import{D as X}from"./DocumentFocusViewer-DJr0v0D_.js";import{S as he}from"./SessionHopMenu-E6VJZrE0.js";import{S as O}from"./StatusPill-2gCP6H7A.js";import{c as Z}from"./TextDocumentSurface-D52m7Vd8.js";import{WorkFilesViewer as me}from"./WorkFilesViewer-vNt01sDd.js";import{r as C}from"./mentions-ByUvhS-v.js";import{p as D,a as J}from"./api-DSqpVKC7.js";import{m as ue,e as ke}from"./machine-scope-DJt9RZ2w.js";import{d as pe}from"./router-DCtl8wqb.js";import{u as fe}from"./sse-BCPRocpq.js";import{w as xe,c as ve}from"./status-tone-BM_zuRy1.js";import{t as $}from"./time-Dhsh_2EG.js";import{u as W}from"./Provider-C35yu29I.js";import{B as E}from"./BackToPicker-CUkjnoVk.js";import{o as p}from"./openContent-C6XO6kr5.js";import{TailView as we}from"./TailView-CYSijNTy.js";import{M}from"./message-square-BxesYglW.js";import{R as _}from"./radio-DRoOZsws.js";import{c as Y}from"./createLucideIcon-zZ8Hx7er.js";import{E as ee}from"./external-link-CUObqmgX.js";import{A as se}from"./activity-CIlFrfPJ.js";import{F as V}from"./file-text-CnISiiw6.js";import{B as je}from"./book-open-CV98WMSp.js";import{C as ge}from"./code-xml-BhcNbLWU.js";import"./x-DAehov0E.js";import"./terminal-sessions-3RfJpen8.js";import"./chevron-right-DrfqcerI.js";import"./chevron-down-l1mrh5S9.js";import"./folder-D5prSkzz.js";import"./colors-CFlbwC25.js";import"./agent-state-DDhnFEEP.js";import"./index-724SdE6r.js";import"./AgentDetailCard-DtHT3sCo.js";import"./AgentLiveActions-CfTupTEl.js";import"./terminal-takeover-Ay5C2c-M.js";import"./eye-LrO-cXQt.js";import"./terminal-hQKQygcf.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./index-BWHgHrtv.js";import"./theme-vars-DNK0nn3k.js";import"./provider-Dojd8quC.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-Bk3nyrkj.js";import"./NewChatComposer-C97-iTMK.js";import"./runtime-picker-DXu2bOTh.js";import"./scout-voice-CZx60X6E.js";import"./fx-z37u1o2z.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-OvccU82H.js";import"./media-blobs-Bi8pxr1u.js";import"./HarnessMark-C4naWc16.js";import"./conversation-model-FxDeWlle.js";import"./conversations-DoAAO6kA.js";import"./NewChatOrigin-DFbF_XvR.js";import"./keyboard-nav-DDHegDbx.js";import"./search-DT42oyRW.js";import"./model-CBkMvT1w.js";import"./index-CHD0qcfL.js";import"./chevron-up-CETZJzjV.js";import"./arrow-left-MVUKauwQ.js";import"./arrow-right-Bp-FpE5V.js";import"./voice-turn-ledger-BMZxlSjg.js";import"./chunk-HRAB3GC3-DbVLgbWX.js";import"./SlidePanel-_CHAQdOa.js";import"./tail-display-DHSNmvor.js";import"./lane-edit-display-BjdT9oZl.js";import"./tail-events-d0yAYxR0.js";const Ie=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],K=Y("clipboard",Ie);const Ne=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],B=Y("folder-tree",Ne),H=3e4;function z(s){return`/api/work/${encodeURIComponent(s)}`}function U(s){switch(s){case"review":return"In review";case"waiting":return"Waiting";case"working":return"Working";case"done":return"Done";default:return s.replace(/_/g," ")}}function ye(s){switch(s){case"badge":return"Noteworthy";case"interrupt":return"Blocked signal";default:return null}}function be({detail:s,signal:t,ownerLabel:r,nextMoveLabel:n}){const i=n==="—"?r:n;return s.attention==="interrupt"?{eyebrow:"Network signal",title:`Blocker surfaced for ${i}`,body:s.conversationId?"Open the thread if you want the blocking context.":"No thread is attached; the record and timeline hold the current context.",tone:"blocked"}:t?{eyebrow:"Network signal",title:`Plan activity from ${i}`,body:s.conversationId?"A plan or spec discussion is active in the agent network. Open the thread only if you want context.":"A plan or spec discussion is active in the agent network, but no thread is attached yet.",tone:"attention"}:s.activeFlights.length>0||s.state==="in_turn"||s.state==="in_flight"?{eyebrow:"Next move",title:`${r} is working`,body:s.conversationId?"The thread has the freshest working context.":"Watch the flight list and timeline for the next update.",tone:"active"}:s.state==="waiting"||s.state==="review"?{eyebrow:"Next move",title:`Waiting on ${n}`,body:s.conversationId?"The thread has the current unblock context.":"No thread is attached; ownership and timeline are the best context.",tone:"quiet"}:s.state==="done"?{eyebrow:"Outcome",title:"Work is done",body:s.conversationId?"The thread keeps the handoff and final context.":"The record and timeline are preserved here.",tone:"quiet"}:{eyebrow:"Next move",title:n==="—"?"No next owner set":`Next move: ${n}`,body:s.conversationId?"The thread has the latest context.":"Use the record and timeline to decide where this should go next.",tone:"quiet"}}function x({children:s,icon:t,onClick:r,primary:n=!1,disabled:i=!1}){return e.jsxs("button",{type:"button",className:`s-work-action-button${n?" s-work-action-button-primary":""}`,onClick:r,disabled:i,children:[t,e.jsx("span",{children:s})]})}function te(s){const t=s?.toLowerCase()??"";return t.includes("mcp")?"MCP request":t.includes("cli")?"CLI request":t?`${s} request`:"Scout request"}function ne(s){const t=s.primaryInvocation,r=t?.targetAgentName??t?.targetAgentId??s.ownerName??s.ownerId??"The agent";switch(t?.state??s.activeFlights[0]?.state??s.state){case"running":return`${r} is running in background. Synchronous wait may have expired, but the Run is still active.`;case"waking":return`${r} is waking up for this Run.`;case"queued":return`${r} has the Run queued.`;case"waiting":case"review":return`${r} paused and is waiting for the next move.`;case"completed":case"done":return`${r} completed this Run.`;case"failed":return`${r} reported a failure for this Run.`;case"cancelled":return"This Run was cancelled.";default:return`${r} is attached to this work item.`}}function Se(s){const t=s.primaryInvocation;return[`Work: ${s.id}`,`State: ${s.currentPhase}`,t?`Source: ${te(t.source)}`:null,t?.targetAgentName||t?.targetAgentId?`Resolved agent: ${t.targetAgentName??t.targetAgentId}`:null,t?.requestedHarness?`Requested harness: ${t.requestedHarness}`:null,t?.requestedModel?`Requested model: ${t.requestedModel}`:null,t?.requestedReasoningEffort?`Requested effort: ${t.requestedReasoningEffort}`:null,t?.resolvedHarness?`Resolved harness: ${t.resolvedHarness}`:null,t?.resolvedModel?`Resolved model: ${t.resolvedModel}`:null,t?.resolvedReasoningEffort?`Resolved effort: ${t.resolvedReasoningEffort}`:null,t?.observedModel?`Observed model: ${t.observedModel}`:null,t?.observedReasoningEffort?`Observed effort: ${t.observedReasoningEffort}`:null,t?.resolvedSessionId?`Session: ${t.resolvedSessionId}`:null,t?.flightId?`Flight: ${t.flightId}`:null,t?.invocationId?`Invocation: ${t.invocationId}`:null,s.conversationId?`Conversation: ${s.conversationId}`:null,ne(s)].filter(Boolean).join(`
2
+ `)}function $e(s){const t=s.primaryInvocation;return[`workId=${s.id}`,t?.flightId?`flightId=${t.flightId}`:null,t?.invocationId?`invocationId=${t.invocationId}`:null,s.conversationId?`conversationId=${s.conversationId}`:null,t?.targetAgentId?`agentId=${t.targetAgentId}`:null,t?.resolvedSessionId?`sessionId=${t.resolvedSessionId}`:null].filter(Boolean).join(`
3
+ `)}function G(s){navigator.clipboard?.writeText(s)}function Ce({detail:s,navigate:t}){const{route:r}=W(),n=s.primaryInvocation,i=oe(s).query,o=$e(s),m=te(n?.source),k=n?.targetAgentName??n?.targetAgentId??s.ownerName??s.ownerId??"—",j=n?.task??re(s)??s.summary??"No original prompt captured.",v=n?.resolvedSessionId?{view:"sessions",sessionId:n.resolvedSessionId,...n.targetAgentId?{agentId:n.targetAgentId}:{}}:n?.targetAgentId?{view:"agents-v2",agentId:n.targetAgentId,tab:"observe"}:null,g=n?.resolvedSessionId?"Observe session":"Observe agent",f={view:"ops",mode:"tail",...i?{tailQuery:i}:{},workId:s.id,...n?.flightId?{flightId:n.flightId}:{},...n?.invocationId?{invocationId:n.invocationId}:{},...s.conversationId?{conversationId:s.conversationId}:{},...n?.resolvedSessionId?{sessionId:n.resolvedSessionId}:{},...n?.targetAgentId?{targetAgentId:n.targetAgentId}:{}};return e.jsxs("section",{className:"s-work-casefile-section s-work-ask-overview","data-kind":"ask","data-work-id":s.id,"data-flight-id":n?.flightId??void 0,"data-invocation-id":n?.invocationId??void 0,"data-agent-id":n?.targetAgentId??void 0,children:[e.jsx("div",{className:"s-work-ask-head",children:e.jsxs("div",{children:[e.jsxs("div",{className:"s-work-ask-badges",children:[e.jsx("span",{className:"s-work-ask-badge s-work-ask-badge-primary",children:"RUN created"}),e.jsx("span",{className:"s-work-ask-badge",children:m}),n?.state&&e.jsx("span",{className:"s-work-ask-badge",children:n.state})]}),e.jsx("h2",{className:"s-agent-section-title s-work-ask-title",children:"Message / work source of truth"}),e.jsx("p",{className:"s-work-ask-lifecycle",children:ne(s)})]})}),e.jsxs("div",{className:"s-work-ask-grid",children:[e.jsxs("div",{className:"s-work-ask-prompt",children:[e.jsx("span",{className:"s-work-ask-label",children:"Original prompt"}),e.jsx("p",{children:C(j)})]}),e.jsxs("dl",{className:"s-work-ask-facts",children:[e.jsxs("div",{children:[e.jsx("dt",{children:"Requested harness"}),e.jsx("dd",{children:n?.requestedHarness??"default"})]}),e.jsxs("div",{children:[e.jsx("dt",{children:"Requested model"}),e.jsx("dd",{children:n?.requestedModel??"default"})]}),e.jsxs("div",{children:[e.jsx("dt",{children:"Requested effort"}),e.jsx("dd",{children:n?.requestedReasoningEffort??"default"})]}),e.jsxs("div",{children:[e.jsx("dt",{children:"Resolved agent"}),e.jsx("dd",{children:k})]}),e.jsxs("div",{children:[e.jsx("dt",{children:"Resolved harness"}),e.jsx("dd",{children:n?.resolvedHarness??"—"})]}),e.jsxs("div",{children:[e.jsx("dt",{children:"Resolved model"}),e.jsx("dd",{children:n?.resolvedModel??"—"})]}),e.jsxs("div",{children:[e.jsx("dt",{children:"Resolved effort"}),e.jsx("dd",{children:n?.resolvedReasoningEffort??"—"})]}),e.jsxs("div",{children:[e.jsx("dt",{children:"Observed model"}),e.jsx("dd",{children:n?.observedModel??"—"})]}),e.jsxs("div",{children:[e.jsx("dt",{children:"Observed effort"}),e.jsx("dd",{children:n?.observedReasoningEffort??"—"})]}),e.jsxs("div",{children:[e.jsx("dt",{children:"Session"}),e.jsx("dd",{children:n?.resolvedSessionId??n?.targetSessionId??"—"})]}),e.jsxs("div",{children:[e.jsx("dt",{children:"Flight"}),e.jsx("dd",{children:n?.flightId??"—"})]}),e.jsxs("div",{children:[e.jsx("dt",{children:"Invocation"}),e.jsx("dd",{children:n?.invocationId??"—"})]}),e.jsxs("div",{children:[e.jsx("dt",{children:"Work"}),e.jsx("dd",{children:s.id})]}),e.jsxs("div",{children:[e.jsx("dt",{children:"Conversation"}),e.jsx("dd",{children:s.conversationId??"—"})]})]})]}),e.jsxs("div",{className:"s-work-ask-actions",children:[v&&e.jsx(x,{primary:!0,icon:e.jsx(_,{"aria-hidden":"true",size:13,strokeWidth:1.8}),onClick:()=>p(t,v,{returnTo:r}),children:g}),e.jsx(x,{icon:e.jsx(K,{"aria-hidden":"true",size:13,strokeWidth:1.8}),onClick:()=>G(Se(s)),children:"Copy status"}),s.conversationId&&e.jsx(x,{icon:e.jsx(M,{"aria-hidden":"true",size:13,strokeWidth:1.8}),onClick:()=>p(t,{view:"conversation",conversationId:s.conversationId},{returnTo:r}),children:"Open chat"}),e.jsx(x,{icon:e.jsx(ee,{"aria-hidden":"true",size:13,strokeWidth:1.8}),onClick:()=>p(t,{view:"work",workId:s.id},{returnTo:r}),children:"Open work"}),n?.resolvedSessionId&&e.jsx(x,{icon:e.jsx(_,{"aria-hidden":"true",size:13,strokeWidth:1.8}),onClick:()=>p(t,{view:"sessions",sessionId:n.resolvedSessionId},{returnTo:r}),children:"Open session"}),e.jsx(he,{className:"s-work-action-button",label:"Terminal",hints:{agentId:n?.targetAgentId,sessionRefs:[n?.resolvedSessionId,n?.targetSessionId]},navigate:t,returnTo:r}),e.jsx(x,{icon:e.jsx(se,{"aria-hidden":"true",size:13,strokeWidth:1.8}),onClick:()=>p(t,f,{returnTo:r}),children:"Scout tail"}),o&&e.jsx(x,{icon:e.jsx(K,{"aria-hidden":"true",size:13,strokeWidth:1.8}),onClick:()=>G(o),children:"Copy MCP ids"}),s.conversationId&&e.jsx(x,{icon:e.jsx(M,{"aria-hidden":"true",size:13,strokeWidth:1.8}),onClick:()=>p(t,{view:"conversation",conversationId:s.conversationId},{returnTo:r}),children:"Nudge agent"})]})]})}function Me({detail:s,navigate:t}){const r=!!s.conversationId,n=s.inventory??Te(s),i=n.materials.filter(l=>l.kind==="plan"||l.kind==="spec"),o=n.materials.filter(l=>l.kind==="doc"),m=n.materials.filter(l=>l.kind==="code"||l.kind==="test"||l.kind==="config"||l.kind==="asset"||l.kind==="other"),k=i.length>0,j=o.length>0,v=re(s),g=i[0]?Ae(i[0]):v??"No plan or spec file detected yet.",f=[...i,...o,...m].filter(l=>l.status!=="deleted"),[y,I]=h.useState(!1),[u,d]=h.useState(null),[b,N]=h.useState(null),[T,w]=h.useState(null),[R,a]=h.useState(null),[ae,P]=h.useState(!1),[de,le]=h.useState("all"),A=h.useCallback(l=>{I(!1),d(l)},[]),ce=h.useCallback(()=>{d(null),I(!0)},[]),q=h.useCallback(l=>{I(!1),d(null),le(l),P(!0)},[]);return h.useEffect(()=>{u&&!f.some(l=>l.id===u)&&d(null)},[u,f]),h.useEffect(()=>{if(!u){N(null),w(null),a(null);return}let l=!1;return a(u),w(null),J(`/api/work/${encodeURIComponent(s.id)}/material?materialId=${encodeURIComponent(u)}`).then(S=>{l||N(S)}).catch(S=>{l||(N(null),w(S instanceof Error?S.message:String(S)))}).finally(()=>{l||a(null)}),()=>{l=!0}},[s.id,u]),e.jsxs("section",{className:"s-work-casefile-section s-work-materials-section",children:[e.jsxs("div",{className:"s-agent-section-heading",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"s-agent-section-title",children:"Work materials"}),e.jsxs("p",{className:"s-work-section-note",children:[Re(n.mode)," · ",n.source," evidence · ",n.confidence," confidence"]})]}),e.jsxs("div",{className:"s-work-inventory-meta","aria-label":"Inventory totals",children:[e.jsxs("span",{children:[n.totals.materials," files"]}),e.jsxs("span",{children:[n.totals.agents," agents"]}),e.jsxs("span",{children:[n.totals.sessions," sessions"]})]})]}),e.jsxs("div",{className:"s-work-material-grid",children:[e.jsxs("article",{className:"s-work-material-card s-work-material-card-primary",children:[e.jsxs("div",{className:"s-work-material-head",children:[e.jsx("span",{className:"s-work-material-icon","aria-hidden":"true",children:e.jsx(V,{size:15,strokeWidth:1.8})}),e.jsxs("div",{children:[e.jsx("div",{className:"s-work-material-kicker",children:k?"Plans & specs":"Brief"}),e.jsx("div",{className:"s-work-material-title",children:k?`${i.length} surfaced`:v?"Original request":"No plan file yet"})]})]}),e.jsx("p",{className:"s-work-material-copy",children:g}),e.jsx(F,{materials:i.slice(0,3),empty:"No plan or spec files detected yet.",selectedId:u,onOpen:A}),e.jsxs("div",{className:"s-work-material-card-actions",children:[v&&e.jsxs("button",{type:"button",className:`s-work-material-link${y?" s-work-material-link-active":""}`,onClick:ce,children:[e.jsx(V,{"aria-hidden":"true",size:13,strokeWidth:1.8}),"View request"]}),i.length>3&&e.jsxs("button",{type:"button",className:"s-work-material-link",onClick:()=>q("plan"),children:[e.jsx(B,{"aria-hidden":"true",size:13,strokeWidth:1.8}),"View all ",i.length]})]})]}),e.jsxs("div",{className:`s-work-material-evidence-stack${j?"":" s-work-material-evidence-stack-single"}`,children:[j&&e.jsxs("article",{className:"s-work-material-card s-work-material-card-docs",children:[e.jsxs("div",{className:"s-work-material-head",children:[e.jsx("span",{className:"s-work-material-icon","aria-hidden":"true",children:e.jsx(je,{size:15,strokeWidth:1.8})}),e.jsxs("div",{children:[e.jsx("div",{className:"s-work-material-kicker",children:"Docs"}),e.jsxs("div",{className:"s-work-material-title",children:[o.length," documents"]})]})]}),e.jsx(F,{materials:o.slice(0,3),empty:"Docs from git or trace evidence will appear here.",selectedId:u,onOpen:A}),o.length>3&&e.jsx("div",{className:"s-work-material-card-actions",children:e.jsxs("button",{type:"button",className:"s-work-material-link",onClick:()=>q("doc"),children:[e.jsx(B,{"aria-hidden":"true",size:13,strokeWidth:1.8}),"View all ",o.length]})})]}),e.jsxs("article",{className:"s-work-material-card s-work-material-card-code",children:[e.jsxs("div",{className:"s-work-material-head",children:[e.jsx("span",{className:"s-work-material-icon","aria-hidden":"true",children:e.jsx(ge,{size:15,strokeWidth:1.8})}),e.jsxs("div",{children:[e.jsx("div",{className:"s-work-material-kicker",children:"Code"}),e.jsx("div",{className:"s-work-material-title",children:m.length>0?`${m.length} related files`:"No code yet"})]})]}),e.jsx(F,{materials:m.slice(0,5),empty:"Changed code from git or session traces will appear here.",selectedId:u,onOpen:A}),m.length>5&&e.jsx("div",{className:"s-work-material-card-actions",children:e.jsxs("button",{type:"button",className:"s-work-material-link",onClick:()=>q("code"),children:[e.jsx(B,{"aria-hidden":"true",size:13,strokeWidth:1.8}),"View all ",m.length]})})]})]})]}),e.jsx(We,{detail:s,summary:v,open:y,hasThread:r,navigate:t,onClose:()=>I(!1)}),e.jsx(qe,{material:f.find(l=>l.id===u)??null,content:b,loading:!!R,error:T,onClose:()=>d(null)}),e.jsx(me,{workId:s.id,workTitle:s.title,materials:f,open:ae,initialKind:de,onClose:()=>P(!1)}),n.limitations.length>0&&e.jsx("div",{className:"s-work-inventory-note",children:n.limitations[0]})]})}function We({detail:s,summary:t,open:r,hasThread:n,navigate:i,onClose:o}){const{route:m}=W();if(!r||!t)return null;const k=Z({id:`${s.id}:brief`,title:"Original request",uri:`scout://work/${s.id}/brief`,mediaType:"text/markdown",value:`# Original request
4
+
5
+ ${t}`,readOnly:!0});return e.jsx(X,{kind:"ask",document:k,title:"Original request",eyebrow:"Brief",subtitle:s.title,meta:["request",n?"thread linked":"threadless"],mode:"preview",actions:n&&s.conversationId?[{label:"Thread",icon:e.jsx(M,{"aria-hidden":"true",size:13,strokeWidth:1.8}),onClick:()=>p(i,{view:"conversation",conversationId:s.conversationId},{returnTo:m}),title:"Open source thread"}]:[],onClose:o})}function re(s){const t=[...s.timeline].sort((i,o)=>i.at-o.at),r=t.find(i=>i.kind==="collaboration_event"&&i.detailKind==="created"&&i.summary),n=t.find(i=>i.kind==="message"&&i.summary);return r?.summary??n?.summary??null}function Te(s){return{workId:s.id,generatedAt:Date.now(),mode:"trace-only",source:"broker",confidence:"low",agents:[],sessions:[],materials:[],totals:{materials:0,plans:0,specs:0,docs:0,code:0,tests:0,config:0,assets:0,agents:0,sessions:0},limitations:["Inventory is not available from this server yet."]}}function Re(s){switch(s){case"isolated-git-worktree":return"Isolated git worktree";case"shared-git-repo":return"Shared git repo";case"explicit-artifacts":return"Explicit artifacts";default:return"Trace-only"}}function Ae(s){const t=s.diffStat?`+${s.diffStat.additions} / -${s.diffStat.deletions}`:s.status;return`${s.path} · ${t} · ${s.confidence} confidence`}function F({materials:s,empty:t,selectedId:r,onOpen:n}){return s.length===0?e.jsx("div",{className:"s-work-material-empty",children:t}):e.jsx("div",{className:"s-work-material-list",children:s.map(i=>e.jsxs("button",{type:"button",className:`s-work-material-row${r===i.id?" s-work-material-row-active":""}`,title:i.path,onClick:()=>n?.(i.id),disabled:!n||i.status==="deleted",children:[e.jsx("div",{className:"s-work-material-path",children:i.path}),e.jsxs("div",{className:"s-work-material-row-meta",children:[e.jsx("span",{children:i.status}),i.diffStat&&e.jsxs("span",{children:["+",i.diffStat.additions," -",i.diffStat.deletions]}),e.jsx("span",{children:i.confidence})]})]},i.id))})}function qe({material:s,content:t,loading:r,error:n,onClose:i}){if(!s)return null;const o=t?Z({id:t.materialId,title:t.title,uri:t.uri,mediaType:t.mediaType,value:t.content,readOnly:!0}):null;return e.jsx(X,{kind:Oe(s),document:o,title:s.path,eyebrow:s.kind==="spec"?"Spec":s.kind,subtitle:t?.uri??s.worktreeRoot??void 0,meta:[s.status,s.confidence,...t?[Q(t.sizeBytes)]:[]],mode:o?.kind==="markdown"?"preview":"read",state:r||!t&&!n?"Loading file...":null,error:r?null:n,notice:t?.truncated?`Preview truncated at ${Q(t.content.length)}.`:null,onClose:i})}function Oe(s){return s.kind==="plan"||s.kind==="spec"?"plan":s.kind==="doc"?"doc":"code"}function Q(s){return s<1024?`${s} B`:s<1024*1024?`${Math.round(s/1024)} KB`:`${(s/(1024*1024)).toFixed(1)} MB`}function ie(s){const t=s.split(".");return t[t.length-1]||s}function c(s,t){const r=t?.trim();!r||r.length<3||s.add(r)}function L(s,t){c(s,t);const n=t?.trim().replace(/\/+$/,"")?.split("/").filter(Boolean).at(-1);n&&n.length>=3&&s.add(n)}function Ee(s){return s.replace(/^\/Users\/[^/]+/,"~")}function oe(s){const t=new Set,r=[],n=s.ownerName??s.ownerId??s.nextMoveOwnerName??s.nextMoveOwnerId;c(t,s.id),c(t,s.conversationId),c(t,s.ownerId),c(t,s.nextMoveOwnerId),c(t,s.ownerName),c(t,s.nextMoveOwnerName);for(const o of s.activeFlights)c(t,o.id),c(t,o.invocationId),c(t,o.agentId),c(t,o.agentName),c(t,o.conversationId),c(t,o.collaborationRecordId);for(const o of s.inventory?.agents??[])c(t,o.id),c(t,o.name),c(t,o.sessionId),L(t,o.cwd),L(t,o.projectRoot);const i=s.inventory?.sessions.find(o=>o.cwd)??s.inventory?.sessions[0]??null;for(const o of s.inventory?.sessions??[])c(t,o.id),c(t,o.conversationId),c(t,o.agentId),c(t,o.agentName),L(t,o.cwd);return n&&r.push(n),i?.cwd&&r.push(Ee(i.cwd)),{query:[...t].slice(0,20).join("|"),label:r.length>0?r.join(" · "):`Case ${ie(s.id)}`}}function Be(s){return s.kind==="message"?s.title||(s.detailKind==="agent"?"reply":"thread update"):s.kind==="flight_started"?"agent output":s.kind==="flight_completed"?s.detailKind==="completed"?"reply":s.detailKind??"flight":s.detailKind==="created"?"request created":s.title??s.kind.replace(/_/g," ")}function ze({detail:s}){const t=s.timeline.slice(0,18);return t.length===0?null:e.jsxs("section",{className:"s-work-casefile-section s-work-timeline-panel",children:[e.jsx("div",{className:"s-agent-section-heading",children:e.jsxs("div",{children:[e.jsx("h2",{className:"s-agent-section-title",children:"Timeline"}),e.jsx("p",{className:"s-work-section-note",children:"Run lifecycle, follow-up requirements, flight state, and replies attached to this work item."})]})}),e.jsx("div",{className:"s-work-timeline-list",children:t.map(r=>e.jsxs("article",{className:`s-work-timeline-row s-work-timeline-row-${r.kind}`,"data-kind":r.kind,"data-flight-id":r.flightId??void 0,"data-work-id":s.id,"data-conversation-id":r.conversationId??s.conversationId??void 0,children:[e.jsx("span",{className:"s-work-timeline-badge",children:Be(r)}),e.jsxs("div",{className:"s-work-timeline-body",children:[e.jsxs("div",{className:"s-work-timeline-meta",children:[e.jsx("span",{children:r.actorName??r.actorId??"system"}),e.jsx("span",{children:$(r.at)})]}),r.summary&&e.jsx("p",{children:C(r.summary)})]})]},r.id))})]})}function Fe({detail:s,navigate:t}){const{route:r}=W(),n=oe(s);return e.jsxs("section",{className:"s-work-casefile-section s-work-tail-section",children:[e.jsxs("div",{className:"s-agent-section-heading s-work-tail-heading",children:[e.jsxs("div",{children:[e.jsxs("h2",{className:"s-agent-section-title s-work-tail-title",children:[e.jsx(se,{"aria-hidden":"true",size:15,strokeWidth:1.8}),"Live tail"]}),e.jsxs("p",{className:"s-work-section-note",children:["Filtered to ",n.label]})]}),e.jsx(x,{icon:e.jsx(ee,{"aria-hidden":"true",size:13,strokeWidth:1.8}),onClick:()=>p(t,{view:"ops",mode:"tail",tailQuery:n.query||void 0},{returnTo:r}),children:"Scout tail"})]}),e.jsx("div",{className:"s-work-tail-frame",children:e.jsx(we,{navigate:t,initialFilter:n.query,filterLabel:n.label,filterScope:"context",chrome:"embedded"})})]})}function et({workId:s,navigate:t}){const{agents:r,route:n}=W(),[i]=h.useState(()=>D(z(s),H)),[o,m]=h.useState(i),[k,j]=h.useState(null),[v,g]=h.useState(i!==null),f=h.useCallback(async()=>{j(null);try{const a=await J(z(s));m(a)}catch(a){j(a instanceof Error?a.message:String(a)),m(null)}finally{g(!0)}},[s]);h.useEffect(()=>{const a=D(z(s),H);a?(m(a),g(!0)):g(!1),f()},[f,s]),fe(()=>{f()});const y=pe(n),I=h.useMemo(()=>ue(r,y),[r,y]),u=h.useMemo(()=>o?ke(o,I):null,[o,I]);if(!v)return e.jsxs("div",{children:[e.jsx(E,{slot:"work",fallback:{view:"inbox"},navigate:t}),e.jsx("div",{className:"s-empty",children:e.jsx("p",{children:"Loading…"})})]});if(!o||!u)return e.jsxs("div",{className:"s-work-not-found",children:[e.jsx(E,{slot:"work",fallback:{view:"inbox"},navigate:t}),e.jsxs("div",{className:"s-work-not-found-body",children:[e.jsx("div",{className:"s-work-not-found-glyph","aria-hidden":"true",children:"□"}),e.jsx("h2",{className:"s-work-not-found-title",children:o?"Work item outside this machine scope":"Work item not found"}),e.jsx("p",{className:"s-work-not-found-sub",children:o?"Clear the machine scope or switch machines to inspect this work item.":"This work item may have been removed or does not exist on this broker."}),k&&e.jsx("p",{className:"s-work-not-found-detail",children:k})]})]});const d=u,b=ye(d.attention),N=d.ownerName??d.ownerId??"Unassigned",T=d.nextMoveOwnerName??d.nextMoveOwnerId??"—",w=be({detail:d,signal:b,ownerLabel:N,nextMoveLabel:T}),R=d.activeFlights.length>0||d.childWork.length>0;return e.jsxs("div",{className:"s-work-detail s-work-casefile",children:[e.jsxs("div",{className:"s-work-casefile-topbar",children:[e.jsx(E,{slot:"work",fallback:{view:"inbox"},navigate:t}),e.jsxs("span",{className:"s-work-casefile-record",children:["Case ",ie(d.id)]})]}),k&&e.jsx("p",{className:"s-error",children:k}),e.jsxs("section",{className:"s-work-casefile-hero",children:[e.jsxs("div",{className:"s-work-casefile-hero-main",children:[e.jsxs("div",{className:"s-work-casefile-title-row",children:[e.jsx("h1",{className:"s-work-casefile-title",children:d.title}),e.jsx(O,{tone:xe(d),variant:"pill",children:d.currentPhase})]}),d.lastMeaningfulSummary&&e.jsx("div",{className:"s-work-casefile-summary",children:C(d.lastMeaningfulSummary)}),e.jsxs("div",{className:"s-work-casefile-meta",children:[e.jsxs("span",{children:["Updated ",$(d.updatedAt)]}),e.jsx("span",{children:N}),e.jsx("span",{children:U(d.state)}),b&&e.jsx("span",{children:b}),d.priority&&e.jsxs("span",{children:["Priority ",d.priority]})]})]}),e.jsxs("aside",{className:`s-work-next-move s-work-next-move-${w.tone}`,children:[e.jsx("div",{className:"s-work-next-move-kicker",children:w.eyebrow}),e.jsx("div",{className:"s-work-next-move-title",children:w.title}),e.jsx("p",{className:"s-work-next-move-copy",children:w.body}),e.jsx("div",{className:"s-work-next-move-actions",children:d.conversationId&&e.jsx(x,{primary:!0,icon:e.jsx(M,{"aria-hidden":"true",size:14,strokeWidth:1.8}),onClick:()=>p(t,{view:"conversation",conversationId:d.conversationId},{returnTo:n}),children:"Open thread"})})]})]}),e.jsxs("div",{className:"s-work-casefile-layout s-work-casefile-layout-main",children:[e.jsxs("div",{className:"s-work-casefile-main s-work-casefile-main-materials",children:[e.jsx(Ce,{detail:d,navigate:t}),e.jsx(Me,{detail:d,navigate:t}),e.jsx(ze,{detail:d})]}),e.jsx(Fe,{detail:d,navigate:t}),R&&e.jsxs("div",{className:"s-work-casefile-main s-work-casefile-main-lower",children:[d.activeFlights.length>0&&e.jsxs("section",{className:"s-work-casefile-section",children:[e.jsx("div",{className:"s-agent-section-heading",children:e.jsx("h2",{className:"s-agent-section-title",children:"Flights"})}),e.jsx("div",{className:"s-work-flight-list",children:d.activeFlights.map(a=>e.jsxs("button",{type:"button",className:"s-work-flight-card",onClick:a.conversationId?()=>p(t,{view:"conversation",conversationId:a.conversationId},{returnTo:n}):void 0,disabled:!a.conversationId,children:[e.jsxs("div",{className:"s-work-flight-card-header",children:[e.jsx("span",{className:"s-work-flight-card-title",children:a.agentName??a.agentId}),e.jsx(O,{tone:"working",variant:"pill",children:a.state})]}),e.jsxs("div",{className:"s-work-flight-card-meta",children:[e.jsx("span",{children:a.startedAt?`Started ${$(a.startedAt)}`:"Start time unavailable"}),a.completedAt&&e.jsxs("span",{children:["Completed ",$(a.completedAt)]})]}),a.summary&&e.jsx("div",{className:"s-work-flight-card-copy",children:a.summary})]},a.id))})]}),d.childWork.length>0&&e.jsxs("section",{className:"s-work-casefile-section",children:[e.jsx("div",{className:"s-agent-section-heading",children:e.jsx("h2",{className:"s-agent-section-title",children:"Child work"})}),e.jsx("div",{className:"s-work-related-list",children:d.childWork.map(a=>e.jsxs("button",{type:"button",className:"s-work-related-card",onClick:()=>p(t,{view:"work",workId:a.id},{returnTo:n}),children:[e.jsxs("div",{className:"s-work-related-card-header",children:[e.jsx("span",{className:"s-work-related-card-title",children:a.title}),e.jsx(O,{tone:ve(a),variant:"pill",children:a.currentPhase})]}),e.jsxs("div",{className:"s-work-related-card-meta",children:[e.jsx("span",{children:a.ownerName??a.ownerId??"Unassigned"}),e.jsx("span",{children:U(a.state)}),e.jsx("span",{children:$(a.lastMeaningfulAt)})]}),a.lastMeaningfulSummary&&e.jsx("div",{className:"s-work-related-card-copy",children:C(a.lastMeaningfulSummary)})]},a.id))})]})]})]})]})}export{et as WorkDetailScreen};
@@ -1 +1 @@
1
- import{r as c,j as e}from"./index-DReVb7jZ.js";import{D as $,F as T}from"./DocumentFocusViewer-DlMiEALb.js";import{c as E,T as D}from"./TextDocumentSurface-BK6Qy41F.js";import{a as M}from"./api-DSqpVKC7.js";import{C as R}from"./chevron-right-DKGTLiqc.js";import{C as L}from"./chevron-down-CDzRQQGl.js";import{F as W}from"./folder-B_S7gBVr.js";import{c as z}from"./createLucideIcon-ChvMq-zl.js";import{F as B}from"./file-text-DP6txVW-.js";import"./x-rlMdRqJF.js";const A=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],O=z("image",A),P=new Set(["png","jpg","jpeg","gif","webp","avif","svg"]),g=[{value:"all",label:"All"},{value:"plan",label:"Plans"},{value:"doc",label:"Docs"},{value:"code",label:"Code"},{value:"test",label:"Tests"},{value:"config",label:"Config"},{value:"asset",label:"Assets"}];function U(s){const t=s.split("/").pop()??s,l=t.lastIndexOf(".");return l>=0?t.slice(l+1).toLowerCase():""}function v(s){return P.has(U(s.path))}function _(s){const t={type:"dir",children:[]};for(const l of s){const a=l.path.split("/").filter(Boolean);if(a.length===0)continue;let n=t;for(let f=0;f<a.length-1;f+=1){const i=a[f],p=a.slice(0,f+1).join("/");let o=n.children.find(d=>d.type==="dir"&&d.name===i);o||(o={type:"dir",name:i,path:p,children:[]},n.children.push(o)),n=o}n.children.push({type:"file",name:a[a.length-1],path:l.path,material:l})}return b(t),N(t.children)}function b(s){if(s.type==="dir"){s.children.sort((t,l)=>t.type!==l.type?t.type==="dir"?-1:1:t.name.localeCompare(l.name));for(const t of s.children)b(t)}}function N(s){return s.map(t=>{if(t.type!=="dir")return t;let l=t;for(;l.children.length===1&&l.children[0].type==="dir";){const a=l.children[0];l={type:"dir",name:`${l.name}/${a.name}`,path:a.path,children:a.children}}return{...l,children:N(l.children)}})}function G(s){switch(s){case"added":return"A";case"modified":return"M";case"deleted":return"D";case"renamed":return"R";case"untracked":return"?";case"observed":return null}}function y({node:s,depth:t,selectedId:l,collapsed:a,onToggle:n,onSelect:f}){if(s.type==="dir"){const u=a.has(s.path);return e.jsxs(e.Fragment,{children:[e.jsxs("button",{type:"button",className:"s-work-files-tree-row s-work-files-tree-dir",style:{paddingLeft:`${8+t*12}px`},onClick:()=>n(s.path),children:[e.jsx("span",{className:"s-work-files-tree-chevron","aria-hidden":"true",children:u?e.jsx(R,{size:12,strokeWidth:1.8}):e.jsx(L,{size:12,strokeWidth:1.8})}),e.jsx("span",{className:"s-work-files-tree-icon","aria-hidden":"true",children:u?e.jsx(W,{size:12,strokeWidth:1.8}):e.jsx(T,{size:12,strokeWidth:1.8})}),e.jsx("span",{className:"s-work-files-tree-name",children:s.name||"/"})]}),!u&&s.children.map(m=>e.jsx(y,{node:m,depth:t+1,selectedId:l,collapsed:a,onToggle:n,onSelect:f},m.type==="dir"?`d:${m.path}`:`f:${m.material.id}`))]})}const i=s.material.id===l,p=v(s.material),o=G(s.material.status),d=s.material.status==="deleted";return e.jsxs("button",{type:"button",className:`s-work-files-tree-row s-work-files-tree-file${i?" s-work-files-tree-file-selected":""}`,style:{paddingLeft:`${8+t*12}px`},onClick:()=>f(s.material),disabled:d,title:s.path,children:[e.jsx("span",{className:"s-work-files-tree-chevron","aria-hidden":"true"}),e.jsx("span",{className:"s-work-files-tree-icon","aria-hidden":"true",children:p?e.jsx(O,{size:12,strokeWidth:1.8}):e.jsx(B,{size:12,strokeWidth:1.8})}),e.jsx("span",{className:"s-work-files-tree-name",children:s.name}),o&&e.jsx("span",{className:`s-work-files-tree-status s-work-files-tree-status-${s.material.status}`,"aria-label":s.material.status,children:o})]})}function V({path:s}){const t=s.split("/").filter(Boolean);if(t.length===0)return e.jsx("span",{className:"s-work-files-breadcrumb",children:s});const l=t[t.length-1],a=t.slice(0,-1).join("/");return e.jsxs("span",{className:"s-work-files-breadcrumb",children:[a&&e.jsxs("span",{className:"s-work-files-breadcrumb-folder",children:[a,"/"]}),e.jsx("span",{className:"s-work-files-breadcrumb-name",children:l})]})}function K({workId:s,material:t}){const l=v(t),[a,n]=c.useState(null),[f,i]=c.useState(null),[p,o]=c.useState(!1);if(c.useEffect(()=>{if(l){n(null),i(null),o(!1);return}let u=!1;return o(!0),i(null),n(null),M(`/api/work/${encodeURIComponent(s)}/material?materialId=${encodeURIComponent(t.id)}`).then(m=>{u||n(m)}).catch(m=>{u||i(m instanceof Error?m.message:String(m))}).finally(()=>{u||o(!1)}),()=>{u=!0}},[l,t.id,s]),l){const u=`/api/work/${encodeURIComponent(s)}/material/raw?materialId=${encodeURIComponent(t.id)}`;return e.jsx("div",{className:"s-work-files-pane s-work-files-pane-image",children:e.jsx("img",{src:u,alt:t.path,className:"s-work-files-image"})})}if(p&&!a)return e.jsx("div",{className:"s-work-files-pane-state",children:"Loading file…"});if(f)return e.jsx("div",{className:"s-work-files-pane-state s-work-files-pane-error",children:f});if(!a)return e.jsx("div",{className:"s-work-files-pane-state",children:"No content."});const d=E({id:a.materialId,title:a.title,uri:a.uri,mediaType:a.mediaType,value:a.content,readOnly:!0});return e.jsxs("div",{className:"s-work-files-pane",children:[e.jsx(D,{document:d,mode:d.kind==="markdown"?"preview":"read"}),a.truncated&&e.jsxs("div",{className:"s-work-files-pane-notice",children:["Preview truncated at ",Math.round(a.content.length/1024)," KB."]})]})}function re({workId:s,workTitle:t,materials:l,open:a,initialKind:n="all",onClose:f}){const i=c.useMemo(()=>l.filter(r=>r.status!=="deleted"),[l]),[p,o]=c.useState(n),[d,u]=c.useState(null),[m,C]=c.useState(()=>new Set);c.useEffect(()=>{a&&o(n)},[n,a]);const x=c.useMemo(()=>p==="all"?i:p==="plan"?i.filter(r=>r.kind==="plan"||r.kind==="spec"):i.filter(r=>r.kind===p),[i,p]),j=c.useMemo(()=>_(x),[x]);c.useEffect(()=>{if(!d&&x.length>0){u(x[0].id);return}d&&!x.some(r=>r.id===d)&&u(x[0]?.id??null)},[x,d]);const S=c.useCallback(r=>{u(r.id)},[]),F=c.useCallback(r=>{C(k=>{const h=new Set(k);return h.has(r)?h.delete(r):h.add(r),h})},[]),w=x.find(r=>r.id===d)??null,I=c.useMemo(()=>{const r={all:i.length};for(const k of g)k.value!=="all"&&(r[k.value]=i.filter(h=>k.value==="plan"?h.kind==="plan"||h.kind==="spec":h.kind===k.value).length);return r},[i]);return e.jsx($,{open:a,kind:"code",document:null,title:`Files · ${i.length}`,eyebrow:"Work materials",subtitle:t,focusable:!0,onClose:f,body:e.jsxs("div",{className:"s-work-files-layout",children:[e.jsxs("aside",{className:"s-work-files-tree","aria-label":"File tree",children:[e.jsx("div",{className:"s-work-files-tree-filters",role:"tablist",children:g.map(r=>{const k=I[r.value]??0;if(r.value!=="all"&&k===0)return null;const h=r.value===p;return e.jsxs("button",{type:"button",role:"tab","aria-selected":h,className:`s-work-files-tree-filter${h?" s-work-files-tree-filter-active":""}`,onClick:()=>o(r.value),children:[e.jsx("span",{children:r.label}),e.jsx("span",{className:"s-work-files-tree-filter-count",children:k})]},r.value)})}),e.jsx("div",{className:"s-work-files-tree-list",children:j.length===0?e.jsx("div",{className:"s-work-files-tree-empty",children:"No files match this filter."}):j.map(r=>e.jsx(y,{node:r,depth:0,selectedId:d,collapsed:m,onToggle:F,onSelect:S},r.type==="dir"?`d:${r.path}`:`f:${r.material.id}`))})]}),e.jsx("section",{className:"s-work-files-content","aria-label":"File preview",children:w?e.jsxs(e.Fragment,{children:[e.jsxs("header",{className:"s-work-files-content-head",children:[e.jsx(V,{path:w.path}),e.jsxs("div",{className:"s-work-files-content-meta",children:[e.jsx("span",{children:w.kind}),e.jsx("span",{children:w.status}),w.diffStat&&e.jsxs("span",{children:["+",w.diffStat.additions," -",w.diffStat.deletions]})]})]}),e.jsx(K,{workId:s,material:w})]}):e.jsx("div",{className:"s-work-files-pane-state",children:"Select a file to preview."})})]})})}export{re as WorkFilesViewer};
1
+ import{r as c,j as e}from"./index-EsrkGBcv.js";import{D as $,F as T}from"./DocumentFocusViewer-DJr0v0D_.js";import{c as E,T as D}from"./TextDocumentSurface-D52m7Vd8.js";import{a as M}from"./api-DSqpVKC7.js";import{C as R}from"./chevron-right-DrfqcerI.js";import{C as L}from"./chevron-down-l1mrh5S9.js";import{F as W}from"./folder-D5prSkzz.js";import{c as z}from"./createLucideIcon-zZ8Hx7er.js";import{F as B}from"./file-text-CnISiiw6.js";import"./x-DAehov0E.js";const A=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],O=z("image",A),P=new Set(["png","jpg","jpeg","gif","webp","avif","svg"]),g=[{value:"all",label:"All"},{value:"plan",label:"Plans"},{value:"doc",label:"Docs"},{value:"code",label:"Code"},{value:"test",label:"Tests"},{value:"config",label:"Config"},{value:"asset",label:"Assets"}];function U(s){const t=s.split("/").pop()??s,l=t.lastIndexOf(".");return l>=0?t.slice(l+1).toLowerCase():""}function v(s){return P.has(U(s.path))}function _(s){const t={type:"dir",children:[]};for(const l of s){const a=l.path.split("/").filter(Boolean);if(a.length===0)continue;let n=t;for(let f=0;f<a.length-1;f+=1){const i=a[f],p=a.slice(0,f+1).join("/");let o=n.children.find(d=>d.type==="dir"&&d.name===i);o||(o={type:"dir",name:i,path:p,children:[]},n.children.push(o)),n=o}n.children.push({type:"file",name:a[a.length-1],path:l.path,material:l})}return b(t),N(t.children)}function b(s){if(s.type==="dir"){s.children.sort((t,l)=>t.type!==l.type?t.type==="dir"?-1:1:t.name.localeCompare(l.name));for(const t of s.children)b(t)}}function N(s){return s.map(t=>{if(t.type!=="dir")return t;let l=t;for(;l.children.length===1&&l.children[0].type==="dir";){const a=l.children[0];l={type:"dir",name:`${l.name}/${a.name}`,path:a.path,children:a.children}}return{...l,children:N(l.children)}})}function G(s){switch(s){case"added":return"A";case"modified":return"M";case"deleted":return"D";case"renamed":return"R";case"untracked":return"?";case"observed":return null}}function y({node:s,depth:t,selectedId:l,collapsed:a,onToggle:n,onSelect:f}){if(s.type==="dir"){const u=a.has(s.path);return e.jsxs(e.Fragment,{children:[e.jsxs("button",{type:"button",className:"s-work-files-tree-row s-work-files-tree-dir",style:{paddingLeft:`${8+t*12}px`},onClick:()=>n(s.path),children:[e.jsx("span",{className:"s-work-files-tree-chevron","aria-hidden":"true",children:u?e.jsx(R,{size:12,strokeWidth:1.8}):e.jsx(L,{size:12,strokeWidth:1.8})}),e.jsx("span",{className:"s-work-files-tree-icon","aria-hidden":"true",children:u?e.jsx(W,{size:12,strokeWidth:1.8}):e.jsx(T,{size:12,strokeWidth:1.8})}),e.jsx("span",{className:"s-work-files-tree-name",children:s.name||"/"})]}),!u&&s.children.map(m=>e.jsx(y,{node:m,depth:t+1,selectedId:l,collapsed:a,onToggle:n,onSelect:f},m.type==="dir"?`d:${m.path}`:`f:${m.material.id}`))]})}const i=s.material.id===l,p=v(s.material),o=G(s.material.status),d=s.material.status==="deleted";return e.jsxs("button",{type:"button",className:`s-work-files-tree-row s-work-files-tree-file${i?" s-work-files-tree-file-selected":""}`,style:{paddingLeft:`${8+t*12}px`},onClick:()=>f(s.material),disabled:d,title:s.path,children:[e.jsx("span",{className:"s-work-files-tree-chevron","aria-hidden":"true"}),e.jsx("span",{className:"s-work-files-tree-icon","aria-hidden":"true",children:p?e.jsx(O,{size:12,strokeWidth:1.8}):e.jsx(B,{size:12,strokeWidth:1.8})}),e.jsx("span",{className:"s-work-files-tree-name",children:s.name}),o&&e.jsx("span",{className:`s-work-files-tree-status s-work-files-tree-status-${s.material.status}`,"aria-label":s.material.status,children:o})]})}function V({path:s}){const t=s.split("/").filter(Boolean);if(t.length===0)return e.jsx("span",{className:"s-work-files-breadcrumb",children:s});const l=t[t.length-1],a=t.slice(0,-1).join("/");return e.jsxs("span",{className:"s-work-files-breadcrumb",children:[a&&e.jsxs("span",{className:"s-work-files-breadcrumb-folder",children:[a,"/"]}),e.jsx("span",{className:"s-work-files-breadcrumb-name",children:l})]})}function K({workId:s,material:t}){const l=v(t),[a,n]=c.useState(null),[f,i]=c.useState(null),[p,o]=c.useState(!1);if(c.useEffect(()=>{if(l){n(null),i(null),o(!1);return}let u=!1;return o(!0),i(null),n(null),M(`/api/work/${encodeURIComponent(s)}/material?materialId=${encodeURIComponent(t.id)}`).then(m=>{u||n(m)}).catch(m=>{u||i(m instanceof Error?m.message:String(m))}).finally(()=>{u||o(!1)}),()=>{u=!0}},[l,t.id,s]),l){const u=`/api/work/${encodeURIComponent(s)}/material/raw?materialId=${encodeURIComponent(t.id)}`;return e.jsx("div",{className:"s-work-files-pane s-work-files-pane-image",children:e.jsx("img",{src:u,alt:t.path,className:"s-work-files-image"})})}if(p&&!a)return e.jsx("div",{className:"s-work-files-pane-state",children:"Loading file…"});if(f)return e.jsx("div",{className:"s-work-files-pane-state s-work-files-pane-error",children:f});if(!a)return e.jsx("div",{className:"s-work-files-pane-state",children:"No content."});const d=E({id:a.materialId,title:a.title,uri:a.uri,mediaType:a.mediaType,value:a.content,readOnly:!0});return e.jsxs("div",{className:"s-work-files-pane",children:[e.jsx(D,{document:d,mode:d.kind==="markdown"?"preview":"read"}),a.truncated&&e.jsxs("div",{className:"s-work-files-pane-notice",children:["Preview truncated at ",Math.round(a.content.length/1024)," KB."]})]})}function re({workId:s,workTitle:t,materials:l,open:a,initialKind:n="all",onClose:f}){const i=c.useMemo(()=>l.filter(r=>r.status!=="deleted"),[l]),[p,o]=c.useState(n),[d,u]=c.useState(null),[m,C]=c.useState(()=>new Set);c.useEffect(()=>{a&&o(n)},[n,a]);const x=c.useMemo(()=>p==="all"?i:p==="plan"?i.filter(r=>r.kind==="plan"||r.kind==="spec"):i.filter(r=>r.kind===p),[i,p]),j=c.useMemo(()=>_(x),[x]);c.useEffect(()=>{if(!d&&x.length>0){u(x[0].id);return}d&&!x.some(r=>r.id===d)&&u(x[0]?.id??null)},[x,d]);const S=c.useCallback(r=>{u(r.id)},[]),F=c.useCallback(r=>{C(k=>{const h=new Set(k);return h.has(r)?h.delete(r):h.add(r),h})},[]),w=x.find(r=>r.id===d)??null,I=c.useMemo(()=>{const r={all:i.length};for(const k of g)k.value!=="all"&&(r[k.value]=i.filter(h=>k.value==="plan"?h.kind==="plan"||h.kind==="spec":h.kind===k.value).length);return r},[i]);return e.jsx($,{open:a,kind:"code",document:null,title:`Files · ${i.length}`,eyebrow:"Work materials",subtitle:t,focusable:!0,onClose:f,body:e.jsxs("div",{className:"s-work-files-layout",children:[e.jsxs("aside",{className:"s-work-files-tree","aria-label":"File tree",children:[e.jsx("div",{className:"s-work-files-tree-filters",role:"tablist",children:g.map(r=>{const k=I[r.value]??0;if(r.value!=="all"&&k===0)return null;const h=r.value===p;return e.jsxs("button",{type:"button",role:"tab","aria-selected":h,className:`s-work-files-tree-filter${h?" s-work-files-tree-filter-active":""}`,onClick:()=>o(r.value),children:[e.jsx("span",{children:r.label}),e.jsx("span",{className:"s-work-files-tree-filter-count",children:k})]},r.value)})}),e.jsx("div",{className:"s-work-files-tree-list",children:j.length===0?e.jsx("div",{className:"s-work-files-tree-empty",children:"No files match this filter."}):j.map(r=>e.jsx(y,{node:r,depth:0,selectedId:d,collapsed:m,onToggle:F,onSelect:S},r.type==="dir"?`d:${r.path}`:`f:${r.material.id}`))})]}),e.jsx("section",{className:"s-work-files-content","aria-label":"File preview",children:w?e.jsxs(e.Fragment,{children:[e.jsxs("header",{className:"s-work-files-content-head",children:[e.jsx(V,{path:w.path}),e.jsxs("div",{className:"s-work-files-content-meta",children:[e.jsx("span",{children:w.kind}),e.jsx("span",{children:w.status}),w.diffStat&&e.jsxs("span",{children:["+",w.diffStat.additions," -",w.diffStat.deletions]})]})]}),e.jsx(K,{workId:s,material:w})]}):e.jsx("div",{className:"s-work-files-pane-state",children:"Select a file to preview."})})]})})}export{re as WorkFilesViewer};
@@ -1 +1 @@
1
- import{r as i,j as e}from"./index-DReVb7jZ.js";import{a as R,S as z}from"./SpriteAvatar-aHeF4ZQZ.js";import{f as A}from"./floor-context-model-rWKqaKmV.js";import{l as k}from"./agent-lanes-model-DMAdqCmK.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";const f=15*6e4,c=r=>new Date(r).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"});function X({lanes:r,now:I,onActor:j}){const[h,_]=i.useState(!1),[g,E]=i.useState(null),[y,b]=i.useState(null),[x,v]=i.useState(null),[o,p]=i.useState(!1),[N,$]=i.useState(null),n=y??I,a=n-f,m=Math.max(a,Math.min(n,x??n)),w=r.some(t=>t.id===g)?g:r[0]?.id,M=h?r.filter(t=>t.id===w):r,C=i.useMemo(()=>r.map(t=>({lane:t,events:A([t],n,["tool","message","ask"],250).reverse()})),[r,n]),d=C.flatMap(t=>t.events).find(t=>`${t.lane.id}:${t.event.id}`===N);i.useEffect(()=>{if(!o)return;const t=window.setInterval(()=>{document.hidden||v(u=>Math.min(n,(u??a)+5e3))},250);return()=>window.clearInterval(t)},[o,n,a]),i.useEffect(()=>{o&&x!==null&&x>=n&&p(!1)},[o,x,n]);const P=()=>{if(o){p(!1);return}b(n),m>=n&&v(a),p(!0)};return e.jsxs("section",{className:`work-run${o?" is-playing":""}`,"aria-label":"Work run replay",children:[e.jsxs("header",{className:"work-run__controls",children:[e.jsx("strong",{children:"Work run"}),e.jsxs("div",{role:"group","aria-label":"Actors shown",children:[e.jsx("button",{type:"button","aria-pressed":!h,onClick:()=>_(!1),children:"Everyone"}),e.jsx("button",{type:"button","aria-pressed":h,onClick:()=>_(!0),children:"Solo"})]}),h?e.jsx("select",{"aria-label":"Solo actor",value:w??"",onChange:t=>E(t.target.value),children:r.map(t=>e.jsxs("option",{value:t.id,children:[k(t.agent,t.source)," · ",t.id.slice(-5)]},t.id))}):null,e.jsx("button",{type:"button",onClick:P,disabled:!r.length,children:o?"Pause replay":"Play replay"}),e.jsx("button",{type:"button","aria-pressed":y===null,onClick:()=>{b(null),v(null),p(!1)},children:"Live"}),e.jsx("time",{children:c(m)})]}),e.jsxs("label",{className:"work-run__scrub",children:[e.jsx("span",{children:c(a)}),e.jsx("input",{type:"range","aria-label":"Replay time",min:a,max:n,step:1e3,value:m,onChange:t=>{b(n),v(Number(t.target.value)),p(!1)}}),e.jsx("span",{children:c(n)})]}),e.jsx("p",{className:"work-run__caption",children:"Recorded activity · 15 minutes · position follows the latest observation · playback 20×"}),e.jsx("div",{className:"work-run__scroll",children:e.jsxs("div",{className:"work-run__level",children:[M.map(t=>{const u=C.find(s=>s.lane.id===t.id)?.events??[],l=u.filter(s=>s.at<=m).at(-1),W=u.slice(-18),S=R(t.agent),L=l?(l.at-a)/f*100:0;return e.jsxs("article",{className:"work-run__track",children:[e.jsxs("button",{type:"button",className:"work-run__actor-name",onClick:()=>j(t),children:[k(t.agent,t.source),e.jsx("small",{children:t.id.slice(-5)})]}),e.jsxs("div",{className:"work-run__path",children:[e.jsx("div",{className:"work-run__ground","aria-hidden":"true"}),W.map(s=>e.jsx("button",{type:"button",className:`work-run__checkpoint${s.at<=m?" is-reached":""}${N===`${t.id}:${s.event.id}`?" is-selected":""}`,style:{left:`${(s.at-a)/f*100}%`},"aria-label":`${s.event.tool||s.event.kind} at ${c(s.at)}`,title:`${s.event.tool||s.event.kind} · ${c(s.at)}`,onClick:()=>$(`${t.id}:${s.event.id}`),children:e.jsx("span",{"aria-hidden":"true",children:s.event.kind==="tool"?"◆":"●"})},s.event.id)),e.jsx("button",{type:"button",className:`work-run__runner${l?" has-observation":""}`,style:{left:`${L}%`},onClick:()=>j(t),"aria-label":`Inspect ${k(t.agent,t.source)}, ${l?`latest observation ${c(l.at)}`:"no observation before replay time"}`,children:e.jsx("span",{children:e.jsx(z,{name:t.agent.name,size:54,hue:S.hue,tone:S.tone})})}),l?null:e.jsx("span",{className:"work-run__waiting",children:"No observation yet"})]}),e.jsx("small",{className:"work-run__coverage",children:u.length>18?"Latest 18 checkpoints shown":`${u.length} observed checkpoints`})]},t.id)}),r.length?null:e.jsx("p",{className:"work-run__empty",children:"Actors appear here when session activity is available."})]})}),d?e.jsxs("aside",{className:"work-run__detail",children:[e.jsxs("div",{children:[e.jsx("strong",{children:d.event.tool||d.event.kind}),e.jsx("time",{children:c(d.at)}),e.jsx("button",{type:"button",onClick:()=>$(null),children:"Close"})]}),e.jsx("p",{children:d.event.text?.slice(0,700)||"No event text recorded."}),e.jsx("button",{type:"button",onClick:()=>j(d.lane),children:"Inspect actor"})]}):null]})}export{X as WorkRunView};
1
+ import{r as i,j as e}from"./index-EsrkGBcv.js";import{a as R,S as z}from"./SpriteAvatar-CpZWf54-.js";import{f as A}from"./floor-context-model-rWKqaKmV.js";import{l as k}from"./agent-lanes-model-DMAdqCmK.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";const f=15*6e4,c=r=>new Date(r).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"});function X({lanes:r,now:I,onActor:j}){const[h,_]=i.useState(!1),[g,E]=i.useState(null),[y,b]=i.useState(null),[x,v]=i.useState(null),[o,p]=i.useState(!1),[N,$]=i.useState(null),n=y??I,a=n-f,m=Math.max(a,Math.min(n,x??n)),w=r.some(t=>t.id===g)?g:r[0]?.id,M=h?r.filter(t=>t.id===w):r,C=i.useMemo(()=>r.map(t=>({lane:t,events:A([t],n,["tool","message","ask"],250).reverse()})),[r,n]),d=C.flatMap(t=>t.events).find(t=>`${t.lane.id}:${t.event.id}`===N);i.useEffect(()=>{if(!o)return;const t=window.setInterval(()=>{document.hidden||v(u=>Math.min(n,(u??a)+5e3))},250);return()=>window.clearInterval(t)},[o,n,a]),i.useEffect(()=>{o&&x!==null&&x>=n&&p(!1)},[o,x,n]);const P=()=>{if(o){p(!1);return}b(n),m>=n&&v(a),p(!0)};return e.jsxs("section",{className:`work-run${o?" is-playing":""}`,"aria-label":"Work run replay",children:[e.jsxs("header",{className:"work-run__controls",children:[e.jsx("strong",{children:"Work run"}),e.jsxs("div",{role:"group","aria-label":"Actors shown",children:[e.jsx("button",{type:"button","aria-pressed":!h,onClick:()=>_(!1),children:"Everyone"}),e.jsx("button",{type:"button","aria-pressed":h,onClick:()=>_(!0),children:"Solo"})]}),h?e.jsx("select",{"aria-label":"Solo actor",value:w??"",onChange:t=>E(t.target.value),children:r.map(t=>e.jsxs("option",{value:t.id,children:[k(t.agent,t.source)," · ",t.id.slice(-5)]},t.id))}):null,e.jsx("button",{type:"button",onClick:P,disabled:!r.length,children:o?"Pause replay":"Play replay"}),e.jsx("button",{type:"button","aria-pressed":y===null,onClick:()=>{b(null),v(null),p(!1)},children:"Live"}),e.jsx("time",{children:c(m)})]}),e.jsxs("label",{className:"work-run__scrub",children:[e.jsx("span",{children:c(a)}),e.jsx("input",{type:"range","aria-label":"Replay time",min:a,max:n,step:1e3,value:m,onChange:t=>{b(n),v(Number(t.target.value)),p(!1)}}),e.jsx("span",{children:c(n)})]}),e.jsx("p",{className:"work-run__caption",children:"Recorded activity · 15 minutes · position follows the latest observation · playback 20×"}),e.jsx("div",{className:"work-run__scroll",children:e.jsxs("div",{className:"work-run__level",children:[M.map(t=>{const u=C.find(s=>s.lane.id===t.id)?.events??[],l=u.filter(s=>s.at<=m).at(-1),W=u.slice(-18),S=R(t.agent),L=l?(l.at-a)/f*100:0;return e.jsxs("article",{className:"work-run__track",children:[e.jsxs("button",{type:"button",className:"work-run__actor-name",onClick:()=>j(t),children:[k(t.agent,t.source),e.jsx("small",{children:t.id.slice(-5)})]}),e.jsxs("div",{className:"work-run__path",children:[e.jsx("div",{className:"work-run__ground","aria-hidden":"true"}),W.map(s=>e.jsx("button",{type:"button",className:`work-run__checkpoint${s.at<=m?" is-reached":""}${N===`${t.id}:${s.event.id}`?" is-selected":""}`,style:{left:`${(s.at-a)/f*100}%`},"aria-label":`${s.event.tool||s.event.kind} at ${c(s.at)}`,title:`${s.event.tool||s.event.kind} · ${c(s.at)}`,onClick:()=>$(`${t.id}:${s.event.id}`),children:e.jsx("span",{"aria-hidden":"true",children:s.event.kind==="tool"?"◆":"●"})},s.event.id)),e.jsx("button",{type:"button",className:`work-run__runner${l?" has-observation":""}`,style:{left:`${L}%`},onClick:()=>j(t),"aria-label":`Inspect ${k(t.agent,t.source)}, ${l?`latest observation ${c(l.at)}`:"no observation before replay time"}`,children:e.jsx("span",{children:e.jsx(z,{name:t.agent.name,size:54,hue:S.hue,tone:S.tone})})}),l?null:e.jsx("span",{className:"work-run__waiting",children:"No observation yet"})]}),e.jsx("small",{className:"work-run__coverage",children:u.length>18?"Latest 18 checkpoints shown":`${u.length} observed checkpoints`})]},t.id)}),r.length?null:e.jsx("p",{className:"work-run__empty",children:"Actors appear here when session activity is available."})]})}),d?e.jsxs("aside",{className:"work-run__detail",children:[e.jsxs("div",{children:[e.jsx("strong",{children:d.event.tool||d.event.kind}),e.jsx("time",{children:c(d.at)}),e.jsx("button",{type:"button",onClick:()=>$(null),children:"Close"})]}),e.jsx("p",{children:d.event.text?.slice(0,700)||"No event text recorded."}),e.jsx("button",{type:"button",onClick:()=>j(d.lane),children:"Inspect actor"})]}):null]})}export{X as WorkRunView};
@@ -0,0 +1 @@
1
+ import{r as i,j as t}from"./index-EsrkGBcv.js";import{M as H}from"./runtime-picker-DXu2bOTh.js";import{a as U}from"./api-DSqpVKC7.js";import"./index-724SdE6r.js";import{s as G}from"./scout-voice-CZx60X6E.js";import{h as V}from"./NewChatComposer-C97-iTMK.js";import{s as X,i as Y}from"./send-to-agent-session-DoKCDBJ4.js";import{u as z}from"./Provider-C35yu29I.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-OvccU82H.js";import"./createLucideIcon-zZ8Hx7er.js";import"./router-DCtl8wqb.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-3RfJpen8.js";import"./fx-z37u1o2z.js";import"./media-blobs-Bi8pxr1u.js";import"./HarnessMark-C4naWc16.js";import"./conversation-model-FxDeWlle.js";import"./agent-state-DDhnFEEP.js";import"./time-Dhsh_2EG.js";import"./conversations-DoAAO6kA.js";import"./colors-CFlbwC25.js";import"./NewChatOrigin-DFbF_XvR.js";import"./keyboard-nav-DDHegDbx.js";import"./x-DAehov0E.js";import"./chevron-down-l1mrh5S9.js";import"./search-DT42oyRW.js";import"./file-text-CnISiiw6.js";import"./theme-vars-DNK0nn3k.js";import"./provider-Dojd8quC.js";import"./machine-scope-DJt9RZ2w.js";import"./sse-BCPRocpq.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-Bk3nyrkj.js";import"./model-CBkMvT1w.js";import"./DocumentFocusViewer-DJr0v0D_.js";import"./TextDocumentSurface-D52m7Vd8.js";import"./index-CHD0qcfL.js";import"./chevron-right-DrfqcerI.js";import"./folder-D5prSkzz.js";import"./chevron-up-CETZJzjV.js";import"./code-xml-BhcNbLWU.js";import"./arrow-left-MVUKauwQ.js";import"./arrow-right-Bp-FpE5V.js";import"./voice-turn-ledger-BMZxlSjg.js";import"./chunk-HRAB3GC3-DbVLgbWX.js";const J=240;function Q(e){return e.replace(/```[\s\S]*?```/g," ").replace(/~~~[\s\S]*?~~~/g," ").replace(/`([^`]*)`/g,"$1").replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^\s{0,3}#{1,6}\s+/gm,"").replace(/^\s{0,3}>\s?/gm,"").replace(/^\s{0,3}[-*+]\s+/gm,"").replace(/^\s{0,3}\d+[.)]\s+/gm,"").replace(/(\*\*|__|\*|_|~~)/g,"").replace(/\s+/g," ").trim()}function Z(e,o=J){const r=Q(e??"");if(!r)return"";if(r.length<=o)return r;const s=r.slice(0,o+1),a=Math.max(s.lastIndexOf(". "),s.lastIndexOf("! "),s.lastIndexOf("? "));if(a>o*.4)return s.slice(0,a+1).trim();const l=s.lastIndexOf(" ");return`${(l>0?s.slice(0,l):r.slice(0,o)).trim()}…`}function tt(e,o){const r=Z(o);return r?`${e} says: ${r}`:`${e} replied, but there was nothing to read out.`}const D=2500,et=5*6e4;function nt(e,o,r,s=(a,l)=>{const p=setTimeout(a,l);return()=>clearTimeout(p)}){const a=new AbortController;let l=!1,p=()=>{},b=()=>{};const c=()=>{l=!0,a.abort(),p(),b()},v=async()=>{if(!l){try{const A=await o(a.signal);if(l)return;const g=A.filter(u=>u.class==="agent"&&u.createdAt>=e).reduce((u,y)=>!u||y.createdAt<u.createdAt?y:u,null);if(g){c(),r({status:"received",reply:g});return}}catch{}l||(p=s(()=>{v()},D))}};return r({status:"waiting",reply:null}),b=s(()=>{l||(c(),r({status:"timed-out",reply:null}))},et),p=s(()=>{v()},D),c}function st(e,o){const[r,s]=i.useState(null);return i.useEffect(()=>{if(!(!e||o===null))return nt(o,a=>U(`/api/messages?conversationId=${encodeURIComponent(e)}&limit=8`,{signal:a}),a=>s({conversationId:e,since:o,state:a}))},[e,o]),!e||o===null?{status:"idle",reply:null}:r?.conversationId!==e||r.since!==o?{status:"waiting",reply:null}:r.state}const L="scout.world.talkBack";function rt(){try{return window.localStorage.getItem(L)==="1"}catch{return!1}}function ot(e){try{window.localStorage.setItem(L,e?"1":"0")}catch{}}function Zt({lane:e,x:o,y:r,compose:s,voice:a=!1,onTalk:l,onDictate:p,onProfile:b,onClose:c,onSent:v}){const{route:A,navigate:g}=z(),[u,y]=i.useState(""),[h,T]=i.useState(!1),[E,k]=i.useState(""),[m,P]=i.useState(null),[f,F]=i.useState(rt),[O,C]=i.useState(!1),M=i.useRef(null),N=i.useRef(!1),S=i.useRef(null),j=e.agent.handle||e.agent.name;i.useEffect(()=>{s?M.current?.focus():S.current?.querySelector("button")?.focus()},[s]),i.useEffect(()=>{if(s&&a&&!N.current){const n=S.current?.querySelector(".s-dictation-mic");n&&!n.disabled&&(N.current=!0,n.click())}},[s,a]),i.useEffect(()=>{const n=d=>{!S.current?.contains(d.target)&&!h&&!u&&c()};return document.addEventListener("pointerdown",n),()=>document.removeEventListener("pointerdown",n)},[c,h,u]);const _=st(f&&m?m.conversationId:null,m?.at??null),R=_.status==="received"?_.reply:null;i.useEffect(()=>{if(!R||!f)return;const n=G(tt(j,R.body));return n.promise.catch(()=>k("Reply arrived, but Scout could not speak it.")),()=>n.stop()},[R,f,j]);async function $(n=u){const d=n.trim();if(!(!d||h)){T(!0),k("");try{const w=await X(e.agent,d);y(""),P({conversationId:w.conversationId,at:w.sentAt}),v()}catch(w){k(w instanceof Error?w.message:"Could not send message")}finally{T(!1)}}}const x=A.machineId,I=i.useCallback(n=>{g({view:"agents-v2",agentId:e.agent.id,...x?{machineId:x}:{},...n}),c()},[g,e.agent.id,x,c]),K=()=>F(n=>(ot(!n),!n)),B=t.jsxs("button",{className:`world-actor-talk__talkback${f?" is-on":""}`,type:"button",onClick:K,"aria-pressed":f,title:"Scout reads the first reply to your latest message aloud",children:[t.jsxs("span",{children:["Read replies aloud",f&&m?.conversationId?t.jsx("small",{children:_.status==="received"?"Reply received":_.status==="timed-out"?"Stopped waiting after five minutes. Open chat to check for replies.":"Listening for a reply…"}):null]}),t.jsxs("span",{className:"world-actor-talk__state",children:[t.jsx("small",{children:f?"On":"Off"}),t.jsx("span",{className:"world-actor-talk__switch","aria-hidden":"true"})]})]}),W=async()=>{if(O)return;const n=m?.conversationId;if(n){I({conversationId:n,tab:"message"});return}if(Y(e.agent)){const d=e.agent.harnessSessionId?.trim();if(!d){k("This native session has no session id to open.");return}g({view:"sessions",sessionId:d,...x?{machineId:x}:{}}),c();return}C(!0),k("");try{I({conversationId:await V(e.agent),tab:"message"})}catch(d){k(d instanceof Error?d.message:"Could not open the chat.")}finally{C(!1)}},q=m?t.jsxs("div",{className:"world-actor-talk__receipt",role:"status",children:[t.jsxs("strong",{children:["Sent to ",j]}),m.conversationId?t.jsx("div",{className:"world-actor-talk__links",children:t.jsx("button",{type:"button",onClick:()=>I({conversationId:m.conversationId,tab:"message"}),children:"Open chat →"})}):t.jsx("small",{children:"Native session — continued by session id, so there is no conversation to open."})]}):null;return t.jsx("div",{ref:S,className:"world-actor-talk",style:{left:Math.max(12,Math.min(o-180,window.innerWidth-372)),top:Math.max(12,Math.min(r,window.innerHeight-(s?430:300)))},onPointerDown:n=>n.stopPropagation(),onKeyDown:n=>{n.stopPropagation(),n.key==="Escape"&&!h&&c()},"aria-label":`Talk to ${e.agent.name}`,children:s?t.jsxs(t.Fragment,{children:[t.jsxs("header",{children:[t.jsxs("strong",{children:["Talk to ",j]}),t.jsx("span",{className:"world-actor-talk__header-actions",children:t.jsx("button",{type:"button",onClick:c,disabled:h,"aria-label":"Close composer",children:"×"})})]}),t.jsx(H,{density:"panel",value:u,onChange:y,onSend:()=>{$()},onDictationCommit:a?n=>{$(n)}:void 0,sending:h,textareaRef:M,rows:4,placeholder:"Send a message…","aria-label":"Message to this agent"}),B,q,t.jsx("small",{role:"status",children:E||(a?"Dictation sends on stop · ⌥-click to type instead":"Option-click to type · Shift-click to dictate and send")})]}):t.jsxs(t.Fragment,{children:[t.jsxs("button",{type:"button",onClick:l,children:["Talk ",t.jsx("small",{children:"⌥ / Alt + click"})]}),p?t.jsxs("button",{type:"button",onClick:p,children:["Dictate & send ",t.jsx("small",{children:"⇧ / Shift + click"})]}):null,B,t.jsxs("button",{type:"button",onClick:()=>{W()},disabled:O,children:["Open chat ",t.jsx("small",{children:O?"Opening…":"Full conversation"})]}),t.jsx("button",{type:"button",onClick:()=>I({tab:"profile"}),children:"Open agent profile"}),t.jsx("button",{type:"button",onClick:b,children:"Focus on floor"}),t.jsx("button",{type:"button",onClick:c,children:"Dismiss"}),E?t.jsx("small",{role:"status",children:E}):null]})})}export{Zt as WorldActorTalk};
@@ -1 +1 @@
1
- import{j as i}from"./index-DReVb7jZ.js";import{RiggedWorkerCharacter as c}from"./RiggedWorkerCharacter-CJMWlvV-.js";const t={id:"ceramic-worker",render:({identity:n,state:r,motion:o,size:e})=>i.jsx(c,{identity:n,posture:r.mood==="concerned"?"waiting":r.action==="thinking"?"thinking":r.action==="working"||r.action==="communicating"?"working":"idle",paused:o!=="normal",size:e})};function d({definition:n=t,...r}){const o=n.render;return i.jsx(o,{...r})}export{d as WorldCharacter,t as ceramicWorker};
1
+ import{j as i}from"./index-EsrkGBcv.js";import{RiggedWorkerCharacter as c}from"./RiggedWorkerCharacter-q6QRc7_o.js";const t={id:"ceramic-worker",render:({identity:n,state:r,motion:o,size:e})=>i.jsx(c,{identity:n,posture:r.mood==="concerned"?"waiting":r.action==="thinking"?"thinking":r.action==="working"||r.action==="communicating"?"working":"idle",paused:o!=="normal",size:e})};function d({definition:n=t,...r}){const o=n.render;return i.jsx(o,{...r})}export{d as WorldCharacter,t as ceramicWorker};
@@ -0,0 +1 @@
1
+ import{r as b,j as g}from"./index-EsrkGBcv.js";function j(t,r,o){return o==="iso"?{x:Math.sqrt(3)/2*(t-r),y:(t+r)/2}:{x:t,y:r}}function Z(t,r,o){return o==="iso"?{x:r+t/Math.sqrt(3),y:r-t/Math.sqrt(3)}:{x:t,y:r}}function F(t,r,o){const a=[[-t/2,-r/2],[t/2,-r/2],[t/2,r/2],[-t/2,r/2]].map(([u,x])=>j(u,x,o)),i=Math.max(...a.map(u=>Math.abs(u.x))),h=Math.max(...a.map(u=>Math.abs(u.y))),c=Math.min(156/Math.max(1,i*2),88/Math.max(1,h*2));return{ratio:c,corners:a,point:(u,x)=>({x:88+u*c,y:56+x*c})}}const R=2e-4,E=8,q=2;function A(t){const r=(o,a)=>Math.min(1,Math.max(0,(t-o)/(a-o)));return{world:r(.05,.18),beacons:1-r(.14,.34)}}function T(t,r){const o=t*r;return!Number.isFinite(o)||o<=0?t:Math.min(E,Math.max(R,o))}function W(t,r=0){const o=r===1?t*16:r===2?t*400:t;return Math.exp(-Math.max(-600,Math.min(600,o))*.003)}function w(t,r,o,a={x:0,y:0}){const i=T(t,o),h=i/t;return{zoom:i,pan:{x:a.x+(r.x-a.x)*h,y:a.y+(r.y-a.y)*h}}}function $(t,r,o,a=96){const i=(h,c,u)=>{if(!Number.isFinite(h))return 0;const x=Math.min(a,c,Math.max(0,u/2)),y=Math.max(0,u/2-x+c/2);return Math.min(y,Math.max(-y,h))};return{x:i(t.x,r.width,o.width),y:i(t.y,r.height,o.height)}}function I(t,r,o){return w(t,r,Math.exp(-o*.002))}const D=420;function z(t){return 1-Math.pow(1-Math.min(1,Math.max(0,t)),3)}function X(t,r,o){if(o<=0)return{zoom:t.zoom,pan:{...t.pan}};if(o>=1)return{zoom:r.zoom,pan:{...r.pan}};const a=z(o);return{zoom:Math.exp(Math.log(t.zoom)+(Math.log(r.zoom)-Math.log(t.zoom))*a),pan:{x:t.pan.x+(r.pan.x-t.pan.x)*a,y:t.pan.y+(r.pan.y-t.pan.y)*a}}}function L({width:t,height:r,projection:o,size:a,scale:i,zoom:h,pan:c,workspaces:u,onPan:x,onZoom:y,onLocate:C}){const _=b.useRef(null),m=b.useRef(null),f=b.useRef(!1),l=F(t,r,o),P=l.point(-c.x/i,-c.y/i),M={x:P.x-a.width/i*l.ratio/2,y:P.y-a.height/i*l.ratio/2,width:a.width/i*l.ratio,height:a.height/i*l.ratio};b.useEffect(()=>{const n=_.current;if(!n)return;const e=s=>{s.preventDefault(),s.stopPropagation();const p=s.deltaY*(s.deltaMode===1?16:s.deltaMode===2?112:1),d=I(h,c,p);x(d.pan),y(d.zoom)};return n.addEventListener("wheel",e,{passive:!1}),()=>n.removeEventListener("wheel",e)},[h,c,x,y]);const v=n=>C({x:-n.x*i,y:-n.y*i});return g.jsxs("aside",{ref:_,className:"shared-floor__minimap","aria-label":"World minimap",title:"Drag to move · Scroll to zoom",onPointerDown:n=>{if(n.button!==0||m.current)return;n.stopPropagation(),f.current=!1;const e=n.currentTarget.getBoundingClientRect(),s=(n.clientX-e.left)*176/e.width,p=(n.clientY-e.top)*112/e.height,O=s>=M.x&&s<=M.x+M.width&&p>=M.y&&p<=M.y+M.height||n.target.closest("button")?c:{x:-(s-88)/l.ratio*i,y:-(p-56)/l.ratio*i};x(O),m.current={x:n.clientX,y:n.clientY,pan:O,pointer:n.pointerId},(n.target.closest("button")??n.currentTarget).setPointerCapture(n.pointerId)},onPointerMove:n=>{const e=m.current;if(!e||e.pointer!==n.pointerId)return;const s=n.currentTarget.getBoundingClientRect(),p=(n.clientX-e.x)*176/s.width,d=(n.clientY-e.y)*112/s.height;Math.hypot(p,d)>3&&(f.current=!0),f.current&&x({x:e.pan.x-p/l.ratio*i,y:e.pan.y-d/l.ratio*i})},onPointerUp:n=>{if(m.current?.pointer!==n.pointerId)return;m.current=null;const e=n.target.closest("button")??n.currentTarget;e.hasPointerCapture(n.pointerId)&&e.releasePointerCapture(n.pointerId)},onPointerCancel:()=>{m.current=null,f.current=!0},onLostPointerCapture:()=>{m.current=null},children:[g.jsxs("svg",{viewBox:"0 0 176 112","aria-hidden":"true",children:[g.jsx("polygon",{points:l.corners.map(n=>{const e=l.point(n.x,n.y);return`${e.x},${e.y}`}).join(" "),className:"shared-floor__mini-ground"}),g.jsx("rect",{...M,className:"shared-floor__mini-camera"})]}),u.map(n=>{const e=j(n.x-t/2,n.y-r/2,o),s=l.point(e.x,e.y);return g.jsx("button",{type:"button","aria-label":n.label,style:{left:`${s.x/176*100}%`,top:`${s.y/112*100}%`},onClick:p=>{p.stopPropagation(),(p.detail===0||!f.current)&&v(e)}},n.id)})]})}const B=Object.freeze(Object.defineProperty({__proto__:null,WorldMinimap:L},Symbol.toStringTag,{value:"Module"}));export{D as C,L as W,q as Z,A as a,B as b,$ as c,j as p,X as t,Z as u,W as w,w as z};
@@ -1 +1 @@
1
- import{r as Y,j as I}from"./index-DReVb7jZ.js";const z=96;function S(t,o,s){let e=Math.imul(t|0,668265261)^Math.imul(o|0,374761393)^Math.imul(s|0,2654435761);return e=Math.imul(e^e>>>15,2246822507),e=Math.imul(e^e>>>13,3266489909),((e^e>>>16)>>>0)/4294967296}const N=4e3;function O(t,o){const{salt:s,density:e}=o,r=o.size??1,f=o.maxStars??N,l=o.cell??z;if(e<=0||f<=0||!(l>0))return[];const n=Math.floor(t.minX/l),c=Math.floor(t.maxX/l),i=Math.floor(t.minY/l),a=Math.floor(t.maxY/l),h=Math.floor(e),g=e-h,M=[];for(let u=i;u<=a;u+=1)for(let m=n;m<=c;m+=1){const x=h+(S(m,u,s)<g?1:0);for(let d=0;d<x;d+=1){if(M.length>=f)return M;const p=s+d*7919,b=S(m,u,p+3)**3;M.push({x:(m+S(m,u,p+1))*l,y:(u+S(m,u,p+2))*l,radius:r*(.45+b*1.45),alpha:.34+b*.66,roll:S(m,u,p+4)})}}return M}const $=[{salt:11,parallax:.05,depth:.06,density:1.7,size:.72,alpha:.6},{salt:23,parallax:.16,depth:.13,density:1.1,size:1,alpha:.85},{salt:37,parallax:.32,depth:.22,density:.55,size:1.55,alpha:1},{salt:53,parallax:.09,depth:.08,density:7,size:.62,alpha:.75,bandBound:!0}],j=101,w=-.32,D=.004,G=[{along:-.34,across:.1,tilt:.1,length:.42,width:.62,depth:.55},{along:.06,across:-.26,tilt:-.07,length:.3,width:.44,depth:.42},{along:.44,across:.16,tilt:.13,length:.36,width:.52,depth:.48}];function U(t,o,s,e){const r=Math.max(o,s)*1.5,f=Math.max(o,s)*(.17+.1/Math.max(e,.2)),l=(n,c,i)=>{t.save(),t.scale(1,c/n);const a=t.createRadialGradient(0,0,0,0,0,n);for(const[h,g]of i)a.addColorStop(h,g);t.fillStyle=a,t.beginPath(),t.arc(0,0,n,0,Math.PI*2),t.fill(),t.restore()};t.save(),t.translate(o/2,s*.46),t.rotate(w),l(r,f,[[0,"rgba(96, 116, 156, 0.15)"],[.42,"rgba(54, 70, 108, 0.09)"],[.75,"rgba(28, 42, 72, 0.03)"],[1,"rgba(20, 32, 56, 0)"]]),l(r*.4,f*.62,[[0,"rgba(178, 162, 138, 0.11)"],[.45,"rgba(116, 114, 138, 0.05)"],[1,"rgba(40, 48, 76, 0)"]]);for(const n of G)t.save(),t.translate(r*n.along,f*n.across),t.rotate(n.tilt),l(r*n.length,f*n.width,[[0,`rgba(5, 7, 13, ${n.depth})`],[.5,`rgba(5, 7, 13, ${n.depth*.55})`],[1,"rgba(5, 7, 13, 0)"]]),t.restore();t.restore()}function k(t,o,s,e,r){if(r<=0)return;const f=o/2,l=s/2;for(const n of e){const c=f+n.x,i=l+n.y;if(c<-40||i<-40||c>o+40||i>s+40)continue;const a=Math.min(7,Math.max(1.1,n.spread*.5)),h=t.createRadialGradient(c,i,0,c,i,a*6);h.addColorStop(0,`rgba(150, 226, 214, ${.5*r})`),h.addColorStop(.4,`rgba(120, 196, 200, ${.16*r})`),h.addColorStop(1,"rgba(80, 150, 170, 0)"),t.fillStyle=h,t.beginPath(),t.arc(c,i,a*6,0,Math.PI*2),t.fill(),t.globalAlpha=r,t.fillStyle="#e8fffb",t.beginPath(),t.arc(c,i,a,0,Math.PI*2),t.fill(),t.globalAlpha=1}}function H(t,o,s,e,r,f,l){const n=Math.min(window.devicePixelRatio||1,3),c=Math.round(o*n),i=Math.round(s*n);(t.width!==c||t.height!==i)&&(t.width=c,t.height=i);const a=t.getContext("2d");if(!a)return;a.setTransform(n,0,0,n,0,0),a.fillStyle="#05070d",a.fillRect(0,0,o,s),U(a,o,s,e);const h=o/2,g=s*.46,M=Math.max(o,s)*(.2+.12/Math.max(e,.2)),u=Math.cos(w),m=Math.sin(w),x=Math.max(e,1e-6);a.fillStyle="#dbe6f2";for(const d of $){const p=Math.pow(x,d.depth),b=r.x*d.parallax,A=r.y*d.parallax,E=Math.log2(1/p),C=Math.floor(E),X=E-C;for(const[P,_]of[[C,1-X],[C+1,X]]){if(_<=D)continue;const B=z*Math.pow(2,P),L=O({minX:-b/p,minY:-A/p,maxX:(o-b)/p,maxY:(s-A)/p},{salt:d.salt+P*j,density:d.density,size:d.size,cell:B});for(const y of L){const T=y.x*p+b,v=y.y*p+A,F=Math.abs(-(T-h)*m+(v-g)*u),R=Math.max(0,1-F/M);d.bandBound&&y.roll>R*R||(a.globalAlpha=Math.min(1,y.alpha*d.alpha*_*(.55+R*1.05)),a.beginPath(),a.arc(T,v,Math.max(y.radius,.5/n),0,Math.PI*2),a.fill())}}}a.globalAlpha=1,k(a,o,s,f,l)}function W({zoom:t,pan:o,beacons:s,beaconStrength:e}){const r=Y.useRef(null),f=Y.useRef({width:0,height:0});return Y.useEffect(()=>{const l=r.current,n=l?.parentElement;if(!l||!n)return;const c=()=>{const{width:a,height:h}=f.current;a>0&&h>0&&H(l,a,h,t,o,s,e)},i=new ResizeObserver(([a])=>{f.current={width:a.contentRect.width,height:a.contentRect.height},c()});return i.observe(n),c(),()=>i.disconnect()},[t,o,s,e]),I.jsx("canvas",{className:"shared-floor__sky-canvas",ref:r,"aria-hidden":"true"})}export{W as WorldSky};
1
+ import{r as Y,j as I}from"./index-EsrkGBcv.js";const z=96;function S(t,o,s){let e=Math.imul(t|0,668265261)^Math.imul(o|0,374761393)^Math.imul(s|0,2654435761);return e=Math.imul(e^e>>>15,2246822507),e=Math.imul(e^e>>>13,3266489909),((e^e>>>16)>>>0)/4294967296}const N=4e3;function O(t,o){const{salt:s,density:e}=o,r=o.size??1,f=o.maxStars??N,l=o.cell??z;if(e<=0||f<=0||!(l>0))return[];const n=Math.floor(t.minX/l),c=Math.floor(t.maxX/l),i=Math.floor(t.minY/l),a=Math.floor(t.maxY/l),h=Math.floor(e),g=e-h,M=[];for(let u=i;u<=a;u+=1)for(let m=n;m<=c;m+=1){const x=h+(S(m,u,s)<g?1:0);for(let d=0;d<x;d+=1){if(M.length>=f)return M;const p=s+d*7919,b=S(m,u,p+3)**3;M.push({x:(m+S(m,u,p+1))*l,y:(u+S(m,u,p+2))*l,radius:r*(.45+b*1.45),alpha:.34+b*.66,roll:S(m,u,p+4)})}}return M}const $=[{salt:11,parallax:.05,depth:.06,density:1.7,size:.72,alpha:.6},{salt:23,parallax:.16,depth:.13,density:1.1,size:1,alpha:.85},{salt:37,parallax:.32,depth:.22,density:.55,size:1.55,alpha:1},{salt:53,parallax:.09,depth:.08,density:7,size:.62,alpha:.75,bandBound:!0}],j=101,w=-.32,D=.004,G=[{along:-.34,across:.1,tilt:.1,length:.42,width:.62,depth:.55},{along:.06,across:-.26,tilt:-.07,length:.3,width:.44,depth:.42},{along:.44,across:.16,tilt:.13,length:.36,width:.52,depth:.48}];function U(t,o,s,e){const r=Math.max(o,s)*1.5,f=Math.max(o,s)*(.17+.1/Math.max(e,.2)),l=(n,c,i)=>{t.save(),t.scale(1,c/n);const a=t.createRadialGradient(0,0,0,0,0,n);for(const[h,g]of i)a.addColorStop(h,g);t.fillStyle=a,t.beginPath(),t.arc(0,0,n,0,Math.PI*2),t.fill(),t.restore()};t.save(),t.translate(o/2,s*.46),t.rotate(w),l(r,f,[[0,"rgba(96, 116, 156, 0.15)"],[.42,"rgba(54, 70, 108, 0.09)"],[.75,"rgba(28, 42, 72, 0.03)"],[1,"rgba(20, 32, 56, 0)"]]),l(r*.4,f*.62,[[0,"rgba(178, 162, 138, 0.11)"],[.45,"rgba(116, 114, 138, 0.05)"],[1,"rgba(40, 48, 76, 0)"]]);for(const n of G)t.save(),t.translate(r*n.along,f*n.across),t.rotate(n.tilt),l(r*n.length,f*n.width,[[0,`rgba(5, 7, 13, ${n.depth})`],[.5,`rgba(5, 7, 13, ${n.depth*.55})`],[1,"rgba(5, 7, 13, 0)"]]),t.restore();t.restore()}function k(t,o,s,e,r){if(r<=0)return;const f=o/2,l=s/2;for(const n of e){const c=f+n.x,i=l+n.y;if(c<-40||i<-40||c>o+40||i>s+40)continue;const a=Math.min(7,Math.max(1.1,n.spread*.5)),h=t.createRadialGradient(c,i,0,c,i,a*6);h.addColorStop(0,`rgba(150, 226, 214, ${.5*r})`),h.addColorStop(.4,`rgba(120, 196, 200, ${.16*r})`),h.addColorStop(1,"rgba(80, 150, 170, 0)"),t.fillStyle=h,t.beginPath(),t.arc(c,i,a*6,0,Math.PI*2),t.fill(),t.globalAlpha=r,t.fillStyle="#e8fffb",t.beginPath(),t.arc(c,i,a,0,Math.PI*2),t.fill(),t.globalAlpha=1}}function H(t,o,s,e,r,f,l){const n=Math.min(window.devicePixelRatio||1,3),c=Math.round(o*n),i=Math.round(s*n);(t.width!==c||t.height!==i)&&(t.width=c,t.height=i);const a=t.getContext("2d");if(!a)return;a.setTransform(n,0,0,n,0,0),a.fillStyle="#05070d",a.fillRect(0,0,o,s),U(a,o,s,e);const h=o/2,g=s*.46,M=Math.max(o,s)*(.2+.12/Math.max(e,.2)),u=Math.cos(w),m=Math.sin(w),x=Math.max(e,1e-6);a.fillStyle="#dbe6f2";for(const d of $){const p=Math.pow(x,d.depth),b=r.x*d.parallax,A=r.y*d.parallax,E=Math.log2(1/p),C=Math.floor(E),X=E-C;for(const[P,_]of[[C,1-X],[C+1,X]]){if(_<=D)continue;const B=z*Math.pow(2,P),L=O({minX:-b/p,minY:-A/p,maxX:(o-b)/p,maxY:(s-A)/p},{salt:d.salt+P*j,density:d.density,size:d.size,cell:B});for(const y of L){const T=y.x*p+b,v=y.y*p+A,F=Math.abs(-(T-h)*m+(v-g)*u),R=Math.max(0,1-F/M);d.bandBound&&y.roll>R*R||(a.globalAlpha=Math.min(1,y.alpha*d.alpha*_*(.55+R*1.05)),a.beginPath(),a.arc(T,v,Math.max(y.radius,.5/n),0,Math.PI*2),a.fill())}}}a.globalAlpha=1,k(a,o,s,f,l)}function W({zoom:t,pan:o,beacons:s,beaconStrength:e}){const r=Y.useRef(null),f=Y.useRef({width:0,height:0});return Y.useEffect(()=>{const l=r.current,n=l?.parentElement;if(!l||!n)return;const c=()=>{const{width:a,height:h}=f.current;a>0&&h>0&&H(l,a,h,t,o,s,e)},i=new ResizeObserver(([a])=>{f.current={width:a.contentRect.width,height:a.contentRect.height},c()});return i.observe(n),c(),()=>i.disconnect()},[t,o,s,e]),I.jsx("canvas",{className:"shared-floor__sky-canvas",ref:r,"aria-hidden":"true"})}export{W as WorldSky};
@@ -1 +1 @@
1
- import{c as t}from"./createLucideIcon-ChvMq-zl.js";const c=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],o=t("activity",c);export{o as A};
1
+ import{c as t}from"./createLucideIcon-zZ8Hx7er.js";const c=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],o=t("activity",c);export{o as A};
@@ -1 +1 @@
1
- import{J as f}from"./index-DReVb7jZ.js";function g(o,s){for(var r=0;r<s.length;r++){const t=s[r];if(typeof t!="string"&&!Array.isArray(t)){for(const e in t)if(e!=="default"&&!(e in o)){const i=Object.getOwnPropertyDescriptor(t,e);i&&Object.defineProperty(o,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var a={exports:{}},d;function _(){return d||(d=1,(function(o,s){(function(r,t){o.exports=t()})(globalThis,(()=>(()=>{var r={};return(()=>{var t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.FitAddon=void 0,t.FitAddon=class{activate(e){this._terminal=e}dispose(){}fit(){const e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;const i=this._terminal._core;this._terminal.rows===e.rows&&this._terminal.cols===e.cols||(i._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;const i=this._terminal.options.scrollback===0?0:this._terminal.options.overviewRuler?.width||14,l=window.getComputedStyle(this._terminal.element.parentElement),c=parseInt(l.getPropertyValue("height")),m=Math.max(0,parseInt(l.getPropertyValue("width"))),n=window.getComputedStyle(this._terminal.element),u=c-(parseInt(n.getPropertyValue("padding-top"))+parseInt(n.getPropertyValue("padding-bottom"))),h=m-(parseInt(n.getPropertyValue("padding-right"))+parseInt(n.getPropertyValue("padding-left")))-i;return{cols:Math.max(2,Math.floor(h/e.css.cell.width)),rows:Math.max(1,Math.floor(u/e.css.cell.height))}}}})(),r})()))})(a)),a.exports}var p=_();const y=f(p),v=g({__proto__:null,default:y},[p]);export{v as a};
1
+ import{K as f}from"./index-EsrkGBcv.js";function g(o,s){for(var r=0;r<s.length;r++){const t=s[r];if(typeof t!="string"&&!Array.isArray(t)){for(const e in t)if(e!=="default"&&!(e in o)){const i=Object.getOwnPropertyDescriptor(t,e);i&&Object.defineProperty(o,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var a={exports:{}},d;function _(){return d||(d=1,(function(o,s){(function(r,t){o.exports=t()})(globalThis,(()=>(()=>{var r={};return(()=>{var t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.FitAddon=void 0,t.FitAddon=class{activate(e){this._terminal=e}dispose(){}fit(){const e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;const i=this._terminal._core;this._terminal.rows===e.rows&&this._terminal.cols===e.cols||(i._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;const i=this._terminal.options.scrollback===0?0:this._terminal.options.overviewRuler?.width||14,l=window.getComputedStyle(this._terminal.element.parentElement),c=parseInt(l.getPropertyValue("height")),m=Math.max(0,parseInt(l.getPropertyValue("width"))),n=window.getComputedStyle(this._terminal.element),u=c-(parseInt(n.getPropertyValue("padding-top"))+parseInt(n.getPropertyValue("padding-bottom"))),h=m-(parseInt(n.getPropertyValue("padding-right"))+parseInt(n.getPropertyValue("padding-left")))-i;return{cols:Math.max(2,Math.floor(h/e.css.cell.width)),rows:Math.max(1,Math.floor(u/e.css.cell.height))}}}})(),r})()))})(a)),a.exports}var p=_();const y=f(p),v=g({__proto__:null,default:y},[p]);export{v as a};
@@ -1,4 +1,4 @@
1
- import{J as We}from"./index-DReVb7jZ.js";function Ke(Ie,ke){for(var Se=0;Se<ke.length;Se++){const Ee=ke[Se];if(typeof Ee!="string"&&!Array.isArray(Ee)){for(const ge in Ee)if(ge!=="default"&&!(ge in Ie)){const De=Object.getOwnPropertyDescriptor(Ee,ge);De&&Object.defineProperty(Ie,ge,De.get?De:{enumerable:!0,get:()=>Ee[ge]})}}}return Object.freeze(Object.defineProperty(Ie,Symbol.toStringTag,{value:"Module"}))}var Ne={exports:{}},Fe;function He(){return Fe||(Fe=1,(function(Ie,ke){(function(Se,Ee){Ie.exports=Ee()})(globalThis,(()=>(()=>{var Se={6864:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CellColorResolver=void 0;const i=v(1564),f=v(7993),h=v(4959);let C,b=0,_=0,o=!1,r=!1,p=!1,E=0;e.CellColorResolver=class{constructor(t,R,u,n,s,a){this._terminal=t,this._optionService=R,this._selectionRenderModel=u,this._decorationService=n,this._coreBrowserService=s,this._themeService=a,this.result={fg:0,bg:0,ext:0}}resolve(t,R,u,n){if(this.result.bg=t.bg,this.result.fg=t.fg,this.result.ext=268435456&t.bg?t.extended.ext:0,_=0,b=0,r=!1,o=!1,p=!1,C=this._themeService.colors,E=0,t.getCode()!==i.NULL_CELL_CODE&&t.extended.underlineStyle===4){const s=Math.max(1,Math.floor(this._optionService.rawOptions.fontSize*this._coreBrowserService.dpr/15));E=R*n%(2*Math.round(s))}if(this._decorationService.forEachDecorationAtCell(R,u,"bottom",(s=>{s.backgroundColorRGB&&(_=s.backgroundColorRGB.rgba>>8&16777215,r=!0),s.foregroundColorRGB&&(b=s.foregroundColorRGB.rgba>>8&16777215,o=!0)})),p=this._selectionRenderModel.isCellSelected(this._terminal,R,u),p){if(67108864&this.result.fg||50331648&this.result.bg){if(67108864&this.result.fg)switch(50331648&this.result.fg){case 16777216:case 33554432:_=this._themeService.colors.ansi[255&this.result.fg].rgba;break;case 50331648:_=(16777215&this.result.fg)<<8|255;break;default:_=this._themeService.colors.foreground.rgba}else switch(50331648&this.result.bg){case 16777216:case 33554432:_=this._themeService.colors.ansi[255&this.result.bg].rgba;break;case 50331648:_=(16777215&this.result.bg)<<8|255}_=f.rgba.blend(_,4294967040&(this._coreBrowserService.isFocused?C.selectionBackgroundOpaque:C.selectionInactiveBackgroundOpaque).rgba|128)>>8&16777215}else _=(this._coreBrowserService.isFocused?C.selectionBackgroundOpaque:C.selectionInactiveBackgroundOpaque).rgba>>8&16777215;if(r=!0,C.selectionForeground&&(b=C.selectionForeground.rgba>>8&16777215,o=!0),(0,h.treatGlyphAsBackgroundColor)(t.getCode())){if(67108864&this.result.fg&&!(50331648&this.result.bg))b=(this._coreBrowserService.isFocused?C.selectionBackgroundOpaque:C.selectionInactiveBackgroundOpaque).rgba>>8&16777215;else{if(67108864&this.result.fg)switch(50331648&this.result.bg){case 16777216:case 33554432:b=this._themeService.colors.ansi[255&this.result.bg].rgba;break;case 50331648:b=(16777215&this.result.bg)<<8|255}else switch(50331648&this.result.fg){case 16777216:case 33554432:b=this._themeService.colors.ansi[255&this.result.fg].rgba;break;case 50331648:b=(16777215&this.result.fg)<<8|255;break;default:b=this._themeService.colors.foreground.rgba}b=f.rgba.blend(b,4294967040&(this._coreBrowserService.isFocused?C.selectionBackgroundOpaque:C.selectionInactiveBackgroundOpaque).rgba|128)>>8&16777215}o=!0}}this._decorationService.forEachDecorationAtCell(R,u,"top",(s=>{s.backgroundColorRGB&&(_=s.backgroundColorRGB.rgba>>8&16777215,r=!0),s.foregroundColorRGB&&(b=s.foregroundColorRGB.rgba>>8&16777215,o=!0)})),r&&(_=p?-16777216&t.bg&-134217729|_|50331648:-16777216&t.bg|_|50331648),o&&(b=-16777216&t.fg&-67108865|b|50331648),67108864&this.result.fg&&(r&&!o&&(b=50331648&this.result.bg?-134217728&this.result.fg|67108863&this.result.bg:-134217728&this.result.fg|16777215&C.background.rgba>>8|50331648,o=!0),!r&&o&&(_=50331648&this.result.fg?-67108864&this.result.bg|67108863&this.result.fg:-67108864&this.result.bg|16777215&C.foreground.rgba>>8|50331648,r=!0)),C=void 0,this.result.bg=r?_:this.result.bg,this.result.fg=o?b:this.result.fg,this.result.ext&=536870911,this.result.ext|=E<<29&3758096384}}},5670:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.acquireTextureAtlas=function(C,b,_,o,r,p,E,t,R){const u=(0,f.generateConfig)(o,r,p,E,b,_,t,R);for(let a=0;a<h.length;a++){const c=h[a],l=c.ownedBy.indexOf(C);if(l>=0){if((0,f.configEquals)(c.config,u))return c.atlas;c.ownedBy.length===1?(c.atlas.dispose(),h.splice(a,1)):c.ownedBy.splice(l,1);break}}for(let a=0;a<h.length;a++){const c=h[a];if((0,f.configEquals)(c.config,u))return c.ownedBy.push(C),c.atlas}const n=C._core,s={atlas:new i.TextureAtlas(document,u,n.unicodeService),config:u,ownedBy:[C]};return h.push(s),s.atlas},e.removeTerminalFromCache=function(C){for(let b=0;b<h.length;b++){const _=h[b].ownedBy.indexOf(C);if(_!==-1){h[b].ownedBy.length===1?(h[b].atlas.dispose(),h.splice(b,1)):h[b].ownedBy.splice(_,1);break}}};const i=v(2115),f=v(3657),h=[]},3657:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.generateConfig=function(f,h,C,b,_,o,r,p){const E={foreground:o.foreground,background:o.background,cursor:i.NULL_COLOR,cursorAccent:i.NULL_COLOR,selectionForeground:i.NULL_COLOR,selectionBackgroundTransparent:i.NULL_COLOR,selectionBackgroundOpaque:i.NULL_COLOR,selectionInactiveBackgroundTransparent:i.NULL_COLOR,selectionInactiveBackgroundOpaque:i.NULL_COLOR,overviewRulerBorder:i.NULL_COLOR,scrollbarSliderBackground:i.NULL_COLOR,scrollbarSliderHoverBackground:i.NULL_COLOR,scrollbarSliderActiveBackground:i.NULL_COLOR,ansi:o.ansi.slice(),contrastCache:o.contrastCache,halfContrastCache:o.halfContrastCache};return{customGlyphs:_.customGlyphs,devicePixelRatio:r,deviceMaxTextureSize:p,letterSpacing:_.letterSpacing,lineHeight:_.lineHeight,deviceCellWidth:f,deviceCellHeight:h,deviceCharWidth:C,deviceCharHeight:b,fontFamily:_.fontFamily,fontSize:_.fontSize,fontWeight:_.fontWeight,fontWeightBold:_.fontWeightBold,allowTransparency:_.allowTransparency,drawBoldTextInBrightColors:_.drawBoldTextInBrightColors,minimumContrastRatio:_.minimumContrastRatio,colors:E}},e.configEquals=function(f,h){for(let C=0;C<f.colors.ansi.length;C++)if(f.colors.ansi[C].rgba!==h.colors.ansi[C].rgba)return!1;return f.devicePixelRatio===h.devicePixelRatio&&f.customGlyphs===h.customGlyphs&&f.lineHeight===h.lineHeight&&f.letterSpacing===h.letterSpacing&&f.fontFamily===h.fontFamily&&f.fontSize===h.fontSize&&f.fontWeight===h.fontWeight&&f.fontWeightBold===h.fontWeightBold&&f.allowTransparency===h.allowTransparency&&f.deviceCharWidth===h.deviceCharWidth&&f.deviceCharHeight===h.deviceCharHeight&&f.drawBoldTextInBrightColors===h.drawBoldTextInBrightColors&&f.minimumContrastRatio===h.minimumContrastRatio&&f.colors.foreground.rgba===h.colors.foreground.rgba&&f.colors.background.rgba===h.colors.background.rgba},e.is256Color=function(f){return(50331648&f)==16777216||(50331648&f)==33554432};const i=v(7993)},2e3:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TEXT_BASELINE=e.DIM_OPACITY=void 0;const i=v(7095);e.DIM_OPACITY=.5,e.TEXT_BASELINE=i.isFirefox||i.isLegacyEdge?"bottom":"ideographic"},3773:(j,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CursorBlinkStateManager=void 0,e.CursorBlinkStateManager=class{constructor(v,i){this._renderCallback=v,this._coreBrowserService=i,this.isCursorVisible=!0,this._coreBrowserService.isFocused&&this._restartInterval()}get isPaused(){return!(this._blinkStartTimeout||this._blinkInterval)}dispose(){this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(this._coreBrowserService.window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}restartBlinkAnimation(){this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0}))))}_restartInterval(v=600){this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=this._coreBrowserService.window.setTimeout((()=>{if(this._animationTimeRestarted){const i=600-(Date.now()-this._animationTimeRestarted);if(this._animationTimeRestarted=void 0,i>0)return void this._restartInterval(i)}this.isCursorVisible=!1,this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0})),this._blinkInterval=this._coreBrowserService.window.setInterval((()=>{if(this._animationTimeRestarted){const i=600-(Date.now()-this._animationTimeRestarted);return this._animationTimeRestarted=void 0,void this._restartInterval(i)}this.isCursorVisible=!this.isCursorVisible,this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0}))}),600)}),v)}pause(){this.isCursorVisible=!0,this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(this._coreBrowserService.window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}resume(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()}}},9705:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.powerlineDefinitions=e.boxDrawingDefinitions=e.blockElementDefinitions=void 0,e.tryDrawCustomChar=function(o,r,p,E,t,R,u,n){const s=e.blockElementDefinitions[r];if(s)return(function(L,w,S,g,A,U){for(let D=0;D<w.length;D++){const P=w[D],B=A/8,M=U/8;L.fillRect(S+P.x*B,g+P.y*M,P.w*B,P.h*M)}})(o,s,p,E,t,R),!0;const a=f[r];if(a)return(function(L,w,S,g,A,U){let D=h.get(w);D||(D=new Map,h.set(w,D));const P=L.fillStyle;if(typeof P!="string")throw new Error(`Unexpected fillStyle type "${P}"`);let B=D.get(P);if(!B){const M=w[0].length,y=w.length,x=L.canvas.ownerDocument.createElement("canvas");x.width=M,x.height=y;const I=(0,i.throwIfFalsy)(x.getContext("2d")),O=new ImageData(M,y);let N,W,K,$;if(P.startsWith("#"))N=parseInt(P.slice(1,3),16),W=parseInt(P.slice(3,5),16),K=parseInt(P.slice(5,7),16),$=P.length>7&&parseInt(P.slice(7,9),16)||1;else{if(!P.startsWith("rgba"))throw new Error(`Unexpected fillStyle color format "${P}" when drawing pattern glyph`);[N,W,K,$]=P.substring(5,P.length-1).split(",").map((X=>parseFloat(X)))}for(let X=0;X<y;X++)for(let Z=0;Z<M;Z++)O.data[4*(X*M+Z)]=N,O.data[4*(X*M+Z)+1]=W,O.data[4*(X*M+Z)+2]=K,O.data[4*(X*M+Z)+3]=w[X][Z]*(255*$);I.putImageData(O,0,0),B=(0,i.throwIfFalsy)(L.createPattern(x,null)),D.set(P,B)}L.fillStyle=B,L.fillRect(S,g,A,U)})(o,a,p,E,t,R),!0;const c=e.boxDrawingDefinitions[r];if(c)return(function(L,w,S,g,A,U,D){L.strokeStyle=L.fillStyle;for(const[P,B]of Object.entries(w)){let M;L.beginPath(),L.lineWidth=D*Number.parseInt(P),M=typeof B=="function"?B(.15,.15/U*A):B;for(const y of M.split(" ")){const x=y[0],I=b[x];if(!I){console.error(`Could not find drawing instructions for "${x}"`);continue}const O=y.substring(1).split(",");O[0]&&O[1]&&I(L,_(O,A,U,S,g,!0,D))}L.stroke(),L.closePath()}})(o,c,p,E,t,R,n),!0;const l=e.powerlineDefinitions[r];return!!l&&((function(L,w,S,g,A,U,D,P){const B=new Path2D;B.rect(S,g,A,U),L.clip(B),L.beginPath();const M=D/12;L.lineWidth=P*M;for(const y of w.d.split(" ")){const x=y[0],I=b[x];if(!I){console.error(`Could not find drawing instructions for "${x}"`);continue}const O=y.substring(1).split(",");O[0]&&O[1]&&I(L,_(O,A,U,S,g,!1,P,(w.leftPadding??0)*(M/2),(w.rightPadding??0)*(M/2)))}w.type===1?(L.strokeStyle=L.fillStyle,L.stroke()):L.fill(),L.closePath()})(o,l,p,E,t,R,u,n),!0)};const i=v(4959);e.blockElementDefinitions={"▀":[{x:0,y:0,w:8,h:4}],"▁":[{x:0,y:7,w:8,h:1}],"▂":[{x:0,y:6,w:8,h:2}],"▃":[{x:0,y:5,w:8,h:3}],"▄":[{x:0,y:4,w:8,h:4}],"▅":[{x:0,y:3,w:8,h:5}],"▆":[{x:0,y:2,w:8,h:6}],"▇":[{x:0,y:1,w:8,h:7}],"█":[{x:0,y:0,w:8,h:8}],"▉":[{x:0,y:0,w:7,h:8}],"▊":[{x:0,y:0,w:6,h:8}],"▋":[{x:0,y:0,w:5,h:8}],"▌":[{x:0,y:0,w:4,h:8}],"▍":[{x:0,y:0,w:3,h:8}],"▎":[{x:0,y:0,w:2,h:8}],"▏":[{x:0,y:0,w:1,h:8}],"▐":[{x:4,y:0,w:4,h:8}],"▔":[{x:0,y:0,w:8,h:1}],"▕":[{x:7,y:0,w:1,h:8}],"▖":[{x:0,y:4,w:4,h:4}],"▗":[{x:4,y:4,w:4,h:4}],"▘":[{x:0,y:0,w:4,h:4}],"▙":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"▚":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"▛":[{x:0,y:0,w:4,h:8},{x:4,y:0,w:4,h:4}],"▜":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"▝":[{x:4,y:0,w:4,h:4}],"▞":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"▟":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"🭰":[{x:1,y:0,w:1,h:8}],"🭱":[{x:2,y:0,w:1,h:8}],"🭲":[{x:3,y:0,w:1,h:8}],"🭳":[{x:4,y:0,w:1,h:8}],"🭴":[{x:5,y:0,w:1,h:8}],"🭵":[{x:6,y:0,w:1,h:8}],"🭶":[{x:0,y:1,w:8,h:1}],"🭷":[{x:0,y:2,w:8,h:1}],"🭸":[{x:0,y:3,w:8,h:1}],"🭹":[{x:0,y:4,w:8,h:1}],"🭺":[{x:0,y:5,w:8,h:1}],"🭻":[{x:0,y:6,w:8,h:1}],"🭼":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🭽":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭾":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭿":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🮀":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮁":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮂":[{x:0,y:0,w:8,h:2}],"🮃":[{x:0,y:0,w:8,h:3}],"🮄":[{x:0,y:0,w:8,h:5}],"🮅":[{x:0,y:0,w:8,h:6}],"🮆":[{x:0,y:0,w:8,h:7}],"🮇":[{x:6,y:0,w:2,h:8}],"🮈":[{x:5,y:0,w:3,h:8}],"🮉":[{x:3,y:0,w:5,h:8}],"🮊":[{x:2,y:0,w:6,h:8}],"🮋":[{x:1,y:0,w:7,h:8}],"🮕":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"🮖":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"🮗":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};const f={"░":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"▒":[[1,0],[0,0],[0,1],[0,0]],"▓":[[0,1],[1,1],[1,0],[1,1]]};e.boxDrawingDefinitions={"─":{1:"M0,.5 L1,.5"},"━":{3:"M0,.5 L1,.5"},"│":{1:"M.5,0 L.5,1"},"┃":{3:"M.5,0 L.5,1"},"┌":{1:"M0.5,1 L.5,.5 L1,.5"},"┏":{3:"M0.5,1 L.5,.5 L1,.5"},"┐":{1:"M0,.5 L.5,.5 L.5,1"},"┓":{3:"M0,.5 L.5,.5 L.5,1"},"└":{1:"M.5,0 L.5,.5 L1,.5"},"┗":{3:"M.5,0 L.5,.5 L1,.5"},"┘":{1:"M.5,0 L.5,.5 L0,.5"},"┛":{3:"M.5,0 L.5,.5 L0,.5"},"├":{1:"M.5,0 L.5,1 M.5,.5 L1,.5"},"┣":{3:"M.5,0 L.5,1 M.5,.5 L1,.5"},"┤":{1:"M.5,0 L.5,1 M.5,.5 L0,.5"},"┫":{3:"M.5,0 L.5,1 M.5,.5 L0,.5"},"┬":{1:"M0,.5 L1,.5 M.5,.5 L.5,1"},"┳":{3:"M0,.5 L1,.5 M.5,.5 L.5,1"},"┴":{1:"M0,.5 L1,.5 M.5,.5 L.5,0"},"┻":{3:"M0,.5 L1,.5 M.5,.5 L.5,0"},"┼":{1:"M0,.5 L1,.5 M.5,0 L.5,1"},"╋":{3:"M0,.5 L1,.5 M.5,0 L.5,1"},"╴":{1:"M.5,.5 L0,.5"},"╸":{3:"M.5,.5 L0,.5"},"╵":{1:"M.5,.5 L.5,0"},"╹":{3:"M.5,.5 L.5,0"},"╶":{1:"M.5,.5 L1,.5"},"╺":{3:"M.5,.5 L1,.5"},"╷":{1:"M.5,.5 L.5,1"},"╻":{3:"M.5,.5 L.5,1"},"═":{1:(o,r)=>`M0,${.5-r} L1,${.5-r} M0,${.5+r} L1,${.5+r}`},"║":{1:(o,r)=>`M${.5-o},0 L${.5-o},1 M${.5+o},0 L${.5+o},1`},"╒":{1:(o,r)=>`M.5,1 L.5,${.5-r} L1,${.5-r} M.5,${.5+r} L1,${.5+r}`},"╓":{1:(o,r)=>`M${.5-o},1 L${.5-o},.5 L1,.5 M${.5+o},.5 L${.5+o},1`},"╔":{1:(o,r)=>`M1,${.5-r} L${.5-o},${.5-r} L${.5-o},1 M1,${.5+r} L${.5+o},${.5+r} L${.5+o},1`},"╕":{1:(o,r)=>`M0,${.5-r} L.5,${.5-r} L.5,1 M0,${.5+r} L.5,${.5+r}`},"╖":{1:(o,r)=>`M${.5+o},1 L${.5+o},.5 L0,.5 M${.5-o},.5 L${.5-o},1`},"╗":{1:(o,r)=>`M0,${.5+r} L${.5-o},${.5+r} L${.5-o},1 M0,${.5-r} L${.5+o},${.5-r} L${.5+o},1`},"╘":{1:(o,r)=>`M.5,0 L.5,${.5+r} L1,${.5+r} M.5,${.5-r} L1,${.5-r}`},"╙":{1:(o,r)=>`M1,.5 L${.5-o},.5 L${.5-o},0 M${.5+o},.5 L${.5+o},0`},"╚":{1:(o,r)=>`M1,${.5-r} L${.5+o},${.5-r} L${.5+o},0 M1,${.5+r} L${.5-o},${.5+r} L${.5-o},0`},"╛":{1:(o,r)=>`M0,${.5+r} L.5,${.5+r} L.5,0 M0,${.5-r} L.5,${.5-r}`},"╜":{1:(o,r)=>`M0,.5 L${.5+o},.5 L${.5+o},0 M${.5-o},.5 L${.5-o},0`},"╝":{1:(o,r)=>`M0,${.5-r} L${.5-o},${.5-r} L${.5-o},0 M0,${.5+r} L${.5+o},${.5+r} L${.5+o},0`},"╞":{1:(o,r)=>`M.5,0 L.5,1 M.5,${.5-r} L1,${.5-r} M.5,${.5+r} L1,${.5+r}`},"╟":{1:(o,r)=>`M${.5-o},0 L${.5-o},1 M${.5+o},0 L${.5+o},1 M${.5+o},.5 L1,.5`},"╠":{1:(o,r)=>`M${.5-o},0 L${.5-o},1 M1,${.5+r} L${.5+o},${.5+r} L${.5+o},1 M1,${.5-r} L${.5+o},${.5-r} L${.5+o},0`},"╡":{1:(o,r)=>`M.5,0 L.5,1 M0,${.5-r} L.5,${.5-r} M0,${.5+r} L.5,${.5+r}`},"╢":{1:(o,r)=>`M0,.5 L${.5-o},.5 M${.5-o},0 L${.5-o},1 M${.5+o},0 L${.5+o},1`},"╣":{1:(o,r)=>`M${.5+o},0 L${.5+o},1 M0,${.5+r} L${.5-o},${.5+r} L${.5-o},1 M0,${.5-r} L${.5-o},${.5-r} L${.5-o},0`},"╤":{1:(o,r)=>`M0,${.5-r} L1,${.5-r} M0,${.5+r} L1,${.5+r} M.5,${.5+r} L.5,1`},"╥":{1:(o,r)=>`M0,.5 L1,.5 M${.5-o},.5 L${.5-o},1 M${.5+o},.5 L${.5+o},1`},"╦":{1:(o,r)=>`M0,${.5-r} L1,${.5-r} M0,${.5+r} L${.5-o},${.5+r} L${.5-o},1 M1,${.5+r} L${.5+o},${.5+r} L${.5+o},1`},"╧":{1:(o,r)=>`M.5,0 L.5,${.5-r} M0,${.5-r} L1,${.5-r} M0,${.5+r} L1,${.5+r}`},"╨":{1:(o,r)=>`M0,.5 L1,.5 M${.5-o},.5 L${.5-o},0 M${.5+o},.5 L${.5+o},0`},"╩":{1:(o,r)=>`M0,${.5+r} L1,${.5+r} M0,${.5-r} L${.5-o},${.5-r} L${.5-o},0 M1,${.5-r} L${.5+o},${.5-r} L${.5+o},0`},"╪":{1:(o,r)=>`M.5,0 L.5,1 M0,${.5-r} L1,${.5-r} M0,${.5+r} L1,${.5+r}`},"╫":{1:(o,r)=>`M0,.5 L1,.5 M${.5-o},0 L${.5-o},1 M${.5+o},0 L${.5+o},1`},"╬":{1:(o,r)=>`M0,${.5+r} L${.5-o},${.5+r} L${.5-o},1 M1,${.5+r} L${.5+o},${.5+r} L${.5+o},1 M0,${.5-r} L${.5-o},${.5-r} L${.5-o},0 M1,${.5-r} L${.5+o},${.5-r} L${.5+o},0`},"╱":{1:"M1,0 L0,1"},"╲":{1:"M0,0 L1,1"},"╳":{1:"M1,0 L0,1 M0,0 L1,1"},"╼":{1:"M.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"╽":{1:"M.5,.5 L.5,0",3:"M.5,.5 L.5,1"},"╾":{1:"M.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"╿":{1:"M.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"┍":{1:"M.5,.5 L.5,1",3:"M.5,.5 L1,.5"},"┎":{1:"M.5,.5 L1,.5",3:"M.5,.5 L.5,1"},"┑":{1:"M.5,.5 L.5,1",3:"M.5,.5 L0,.5"},"┒":{1:"M.5,.5 L0,.5",3:"M.5,.5 L.5,1"},"┕":{1:"M.5,.5 L.5,0",3:"M.5,.5 L1,.5"},"┖":{1:"M.5,.5 L1,.5",3:"M.5,.5 L.5,0"},"┙":{1:"M.5,.5 L.5,0",3:"M.5,.5 L0,.5"},"┚":{1:"M.5,.5 L0,.5",3:"M.5,.5 L.5,0"},"┝":{1:"M.5,0 L.5,1",3:"M.5,.5 L1,.5"},"┞":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,.5 L.5,0"},"┟":{1:"M.5,0 L.5,.5 L1,.5",3:"M.5,.5 L.5,1"},"┠":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,1"},"┡":{1:"M.5,.5 L.5,1",3:"M.5,0 L.5,.5 L1,.5"},"┢":{1:"M.5,.5 L.5,0",3:"M0.5,1 L.5,.5 L1,.5"},"┥":{1:"M.5,0 L.5,1",3:"M.5,.5 L0,.5"},"┦":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"┧":{1:"M.5,0 L.5,.5 L0,.5",3:"M.5,.5 L.5,1"},"┨":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,1"},"┩":{1:"M.5,.5 L.5,1",3:"M.5,0 L.5,.5 L0,.5"},"┪":{1:"M.5,.5 L.5,0",3:"M0,.5 L.5,.5 L.5,1"},"┭":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"┮":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,.5 L1,.5"},"┯":{1:"M.5,.5 L.5,1",3:"M0,.5 L1,.5"},"┰":{1:"M0,.5 L1,.5",3:"M.5,.5 L.5,1"},"┱":{1:"M.5,.5 L1,.5",3:"M0,.5 L.5,.5 L.5,1"},"┲":{1:"M.5,.5 L0,.5",3:"M0.5,1 L.5,.5 L1,.5"},"┵":{1:"M.5,0 L.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"┶":{1:"M.5,0 L.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"┷":{1:"M.5,.5 L.5,0",3:"M0,.5 L1,.5"},"┸":{1:"M0,.5 L1,.5",3:"M.5,.5 L.5,0"},"┹":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,.5 L0,.5"},"┺":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,.5 L1,.5"},"┽":{1:"M.5,0 L.5,1 M.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"┾":{1:"M.5,0 L.5,1 M.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"┿":{1:"M.5,0 L.5,1",3:"M0,.5 L1,.5"},"╀":{1:"M0,.5 L1,.5 M.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"╁":{1:"M.5,.5 L.5,0 M0,.5 L1,.5",3:"M.5,.5 L.5,1"},"╂":{1:"M0,.5 L1,.5",3:"M.5,0 L.5,1"},"╃":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,0 L.5,.5 L0,.5"},"╄":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,0 L.5,.5 L1,.5"},"╅":{1:"M.5,0 L.5,.5 L1,.5",3:"M0,.5 L.5,.5 L.5,1"},"╆":{1:"M.5,0 L.5,.5 L0,.5",3:"M0.5,1 L.5,.5 L1,.5"},"╇":{1:"M.5,.5 L.5,1",3:"M.5,.5 L.5,0 M0,.5 L1,.5"},"╈":{1:"M.5,.5 L.5,0",3:"M0,.5 L1,.5 M.5,.5 L.5,1"},"╉":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,1 M.5,.5 L0,.5"},"╊":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,1 M.5,.5 L1,.5"},"╌":{1:"M.1,.5 L.4,.5 M.6,.5 L.9,.5"},"╍":{3:"M.1,.5 L.4,.5 M.6,.5 L.9,.5"},"┄":{1:"M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5"},"┅":{3:"M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5"},"┈":{1:"M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5"},"┉":{3:"M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5"},"╎":{1:"M.5,.1 L.5,.4 M.5,.6 L.5,.9"},"╏":{3:"M.5,.1 L.5,.4 M.5,.6 L.5,.9"},"┆":{1:"M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333"},"┇":{3:"M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333"},"┊":{1:"M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95"},"┋":{3:"M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95"},"╭":{1:(o,r)=>`M.5,1 L.5,${.5+r/.15*.5} C.5,${.5+r/.15*.5},.5,.5,1,.5`},"╮":{1:(o,r)=>`M.5,1 L.5,${.5+r/.15*.5} C.5,${.5+r/.15*.5},.5,.5,0,.5`},"╯":{1:(o,r)=>`M.5,0 L.5,${.5-r/.15*.5} C.5,${.5-r/.15*.5},.5,.5,0,.5`},"╰":{1:(o,r)=>`M.5,0 L.5,${.5-r/.15*.5} C.5,${.5-r/.15*.5},.5,.5,1,.5`}},e.powerlineDefinitions={"":{d:"M.3,1 L.03,1 L.03,.88 C.03,.82,.06,.78,.11,.73 C.15,.7,.2,.68,.28,.65 L.43,.6 C.49,.58,.53,.56,.56,.53 C.59,.5,.6,.47,.6,.43 L.6,.27 L.4,.27 L.69,.1 L.98,.27 L.78,.27 L.78,.46 C.78,.52,.76,.56,.72,.61 C.68,.66,.63,.67,.56,.7 L.48,.72 C.42,.74,.38,.76,.35,.78 C.32,.8,.31,.84,.31,.88 L.31,1 M.3,.5 L.03,.59 L.03,.09 L.3,.09 L.3,.655",type:0},"":{d:"M.7,.4 L.7,.47 L.2,.47 L.2,.03 L.355,.03 L.355,.4 L.705,.4 M.7,.5 L.86,.5 L.86,.95 L.69,.95 L.44,.66 L.46,.86 L.46,.95 L.3,.95 L.3,.49 L.46,.49 L.71,.78 L.69,.565 L.69,.5",type:0},"":{d:"M.25,.94 C.16,.94,.11,.92,.11,.87 L.11,.53 C.11,.48,.15,.455,.23,.45 L.23,.3 C.23,.25,.26,.22,.31,.19 C.36,.16,.43,.15,.51,.15 C.59,.15,.66,.16,.71,.19 C.77,.22,.79,.26,.79,.3 L.79,.45 C.87,.45,.91,.48,.91,.53 L.91,.87 C.91,.92,.86,.94,.77,.94 L.24,.94 M.53,.2 C.49,.2,.45,.21,.42,.23 C.39,.25,.38,.27,.38,.3 L.38,.45 L.68,.45 L.68,.3 C.68,.27,.67,.25,.64,.23 C.61,.21,.58,.2,.53,.2 M.58,.82 L.58,.66 C.63,.65,.65,.63,.65,.6 C.65,.58,.64,.57,.61,.56 C.58,.55,.56,.54,.52,.54 C.48,.54,.46,.55,.43,.56 C.4,.57,.39,.59,.39,.6 C.39,.63,.41,.64,.46,.66 L.46,.82 L.57,.82",type:0},"":{d:"M0,0 L1,.5 L0,1",type:0,rightPadding:2},"":{d:"M-1,-.5 L1,.5 L-1,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M1,0 L0,.5 L1,1",type:0,leftPadding:2},"":{d:"M2,-.5 L0,.5 L2,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M0,0 L0,1 C0.552,1,1,0.776,1,.5 C1,0.224,0.552,0,0,0",type:0,rightPadding:1},"":{d:"M.2,1 C.422,1,.8,.826,.78,.5 C.8,.174,0.422,0,.2,0",type:1,rightPadding:1},"":{d:"M1,0 L1,1 C0.448,1,0,0.776,0,.5 C0,0.224,0.448,0,1,0",type:0,leftPadding:1},"":{d:"M.8,1 C0.578,1,0.2,.826,.22,.5 C0.2,0.174,0.578,0,0.8,0",type:1,leftPadding:1},"":{d:"M-.5,-.5 L1.5,1.5 L-.5,1.5",type:0},"":{d:"M-.5,-.5 L1.5,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M1.5,-.5 L-.5,1.5 L1.5,1.5",type:0},"":{d:"M1.5,-.5 L-.5,1.5 L-.5,-.5",type:0},"":{d:"M1.5,-.5 L-.5,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M-.5,-.5 L1.5,1.5 L1.5,-.5",type:0}},e.powerlineDefinitions[""]=e.powerlineDefinitions[""],e.powerlineDefinitions[""]=e.powerlineDefinitions[""];const h=new Map;function C(o,r,p=0){return Math.max(Math.min(o,r),p)}const b={C:(o,r)=>o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]),L:(o,r)=>o.lineTo(r[0],r[1]),M:(o,r)=>o.moveTo(r[0],r[1])};function _(o,r,p,E,t,R,u,n=0,s=0){const a=o.map((c=>parseFloat(c)||parseInt(c)));if(a.length<2)throw new Error("Too few arguments for instruction");for(let c=0;c<a.length;c+=2)a[c]*=r-n*u-s*u,R&&a[c]!==0&&(a[c]=C(Math.round(a[c]+.5)-.5,r,0)),a[c]+=E+n*u;for(let c=1;c<a.length;c+=2)a[c]*=p,R&&a[c]!==0&&(a[c]=C(Math.round(a[c]+.5)-.5,p,0)),a[c]+=t;return a}},697:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.observeDevicePixelDimensions=function(f,h,C){let b=new h.ResizeObserver((_=>{const o=_.find((E=>E.target===f));if(!o)return;if(!("devicePixelContentBoxSize"in o))return b?.disconnect(),void(b=void 0);const r=o.devicePixelContentBoxSize[0].inlineSize,p=o.devicePixelContentBoxSize[0].blockSize;r>0&&p>0&&C(r,p)}));try{b.observe(f,{box:["device-pixel-content-box"]})}catch{b.disconnect(),b=void 0}return(0,i.toDisposable)((()=>b?.disconnect()))};const i=v(2540)},3028:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GlyphRenderer=void 0;const i=v(2115),f=v(1564),h=v(2540),C=v(5719),b=v(4959),_=11,o=_*Float32Array.BYTES_PER_ELEMENT;let r,p=0,E=0,t=0;class R extends h.Disposable{constructor(n,s,a,c){super(),this._terminal=n,this._gl=s,this._dimensions=a,this._optionsService=c,this._activeBuffer=0,this._vertices={count:0,attributes:new Float32Array(0),attributesBuffers:[new Float32Array(0),new Float32Array(0)]};const l=this._gl;i.TextureAtlas.maxAtlasPages===void 0&&(i.TextureAtlas.maxAtlasPages=Math.min(32,(0,b.throwIfFalsy)(l.getParameter(l.MAX_TEXTURE_IMAGE_UNITS))),i.TextureAtlas.maxTextureSize=(0,b.throwIfFalsy)(l.getParameter(l.MAX_TEXTURE_SIZE))),this._program=(0,b.throwIfFalsy)((0,C.createProgram)(l,`#version 300 es
1
+ import{K as We}from"./index-EsrkGBcv.js";function Ke(Ie,ke){for(var Se=0;Se<ke.length;Se++){const Ee=ke[Se];if(typeof Ee!="string"&&!Array.isArray(Ee)){for(const ge in Ee)if(ge!=="default"&&!(ge in Ie)){const De=Object.getOwnPropertyDescriptor(Ee,ge);De&&Object.defineProperty(Ie,ge,De.get?De:{enumerable:!0,get:()=>Ee[ge]})}}}return Object.freeze(Object.defineProperty(Ie,Symbol.toStringTag,{value:"Module"}))}var Ne={exports:{}},Fe;function He(){return Fe||(Fe=1,(function(Ie,ke){(function(Se,Ee){Ie.exports=Ee()})(globalThis,(()=>(()=>{var Se={6864:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CellColorResolver=void 0;const i=v(1564),f=v(7993),h=v(4959);let C,b=0,_=0,o=!1,r=!1,p=!1,E=0;e.CellColorResolver=class{constructor(t,R,u,n,s,a){this._terminal=t,this._optionService=R,this._selectionRenderModel=u,this._decorationService=n,this._coreBrowserService=s,this._themeService=a,this.result={fg:0,bg:0,ext:0}}resolve(t,R,u,n){if(this.result.bg=t.bg,this.result.fg=t.fg,this.result.ext=268435456&t.bg?t.extended.ext:0,_=0,b=0,r=!1,o=!1,p=!1,C=this._themeService.colors,E=0,t.getCode()!==i.NULL_CELL_CODE&&t.extended.underlineStyle===4){const s=Math.max(1,Math.floor(this._optionService.rawOptions.fontSize*this._coreBrowserService.dpr/15));E=R*n%(2*Math.round(s))}if(this._decorationService.forEachDecorationAtCell(R,u,"bottom",(s=>{s.backgroundColorRGB&&(_=s.backgroundColorRGB.rgba>>8&16777215,r=!0),s.foregroundColorRGB&&(b=s.foregroundColorRGB.rgba>>8&16777215,o=!0)})),p=this._selectionRenderModel.isCellSelected(this._terminal,R,u),p){if(67108864&this.result.fg||50331648&this.result.bg){if(67108864&this.result.fg)switch(50331648&this.result.fg){case 16777216:case 33554432:_=this._themeService.colors.ansi[255&this.result.fg].rgba;break;case 50331648:_=(16777215&this.result.fg)<<8|255;break;default:_=this._themeService.colors.foreground.rgba}else switch(50331648&this.result.bg){case 16777216:case 33554432:_=this._themeService.colors.ansi[255&this.result.bg].rgba;break;case 50331648:_=(16777215&this.result.bg)<<8|255}_=f.rgba.blend(_,4294967040&(this._coreBrowserService.isFocused?C.selectionBackgroundOpaque:C.selectionInactiveBackgroundOpaque).rgba|128)>>8&16777215}else _=(this._coreBrowserService.isFocused?C.selectionBackgroundOpaque:C.selectionInactiveBackgroundOpaque).rgba>>8&16777215;if(r=!0,C.selectionForeground&&(b=C.selectionForeground.rgba>>8&16777215,o=!0),(0,h.treatGlyphAsBackgroundColor)(t.getCode())){if(67108864&this.result.fg&&!(50331648&this.result.bg))b=(this._coreBrowserService.isFocused?C.selectionBackgroundOpaque:C.selectionInactiveBackgroundOpaque).rgba>>8&16777215;else{if(67108864&this.result.fg)switch(50331648&this.result.bg){case 16777216:case 33554432:b=this._themeService.colors.ansi[255&this.result.bg].rgba;break;case 50331648:b=(16777215&this.result.bg)<<8|255}else switch(50331648&this.result.fg){case 16777216:case 33554432:b=this._themeService.colors.ansi[255&this.result.fg].rgba;break;case 50331648:b=(16777215&this.result.fg)<<8|255;break;default:b=this._themeService.colors.foreground.rgba}b=f.rgba.blend(b,4294967040&(this._coreBrowserService.isFocused?C.selectionBackgroundOpaque:C.selectionInactiveBackgroundOpaque).rgba|128)>>8&16777215}o=!0}}this._decorationService.forEachDecorationAtCell(R,u,"top",(s=>{s.backgroundColorRGB&&(_=s.backgroundColorRGB.rgba>>8&16777215,r=!0),s.foregroundColorRGB&&(b=s.foregroundColorRGB.rgba>>8&16777215,o=!0)})),r&&(_=p?-16777216&t.bg&-134217729|_|50331648:-16777216&t.bg|_|50331648),o&&(b=-16777216&t.fg&-67108865|b|50331648),67108864&this.result.fg&&(r&&!o&&(b=50331648&this.result.bg?-134217728&this.result.fg|67108863&this.result.bg:-134217728&this.result.fg|16777215&C.background.rgba>>8|50331648,o=!0),!r&&o&&(_=50331648&this.result.fg?-67108864&this.result.bg|67108863&this.result.fg:-67108864&this.result.bg|16777215&C.foreground.rgba>>8|50331648,r=!0)),C=void 0,this.result.bg=r?_:this.result.bg,this.result.fg=o?b:this.result.fg,this.result.ext&=536870911,this.result.ext|=E<<29&3758096384}}},5670:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.acquireTextureAtlas=function(C,b,_,o,r,p,E,t,R){const u=(0,f.generateConfig)(o,r,p,E,b,_,t,R);for(let a=0;a<h.length;a++){const c=h[a],l=c.ownedBy.indexOf(C);if(l>=0){if((0,f.configEquals)(c.config,u))return c.atlas;c.ownedBy.length===1?(c.atlas.dispose(),h.splice(a,1)):c.ownedBy.splice(l,1);break}}for(let a=0;a<h.length;a++){const c=h[a];if((0,f.configEquals)(c.config,u))return c.ownedBy.push(C),c.atlas}const n=C._core,s={atlas:new i.TextureAtlas(document,u,n.unicodeService),config:u,ownedBy:[C]};return h.push(s),s.atlas},e.removeTerminalFromCache=function(C){for(let b=0;b<h.length;b++){const _=h[b].ownedBy.indexOf(C);if(_!==-1){h[b].ownedBy.length===1?(h[b].atlas.dispose(),h.splice(b,1)):h[b].ownedBy.splice(_,1);break}}};const i=v(2115),f=v(3657),h=[]},3657:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.generateConfig=function(f,h,C,b,_,o,r,p){const E={foreground:o.foreground,background:o.background,cursor:i.NULL_COLOR,cursorAccent:i.NULL_COLOR,selectionForeground:i.NULL_COLOR,selectionBackgroundTransparent:i.NULL_COLOR,selectionBackgroundOpaque:i.NULL_COLOR,selectionInactiveBackgroundTransparent:i.NULL_COLOR,selectionInactiveBackgroundOpaque:i.NULL_COLOR,overviewRulerBorder:i.NULL_COLOR,scrollbarSliderBackground:i.NULL_COLOR,scrollbarSliderHoverBackground:i.NULL_COLOR,scrollbarSliderActiveBackground:i.NULL_COLOR,ansi:o.ansi.slice(),contrastCache:o.contrastCache,halfContrastCache:o.halfContrastCache};return{customGlyphs:_.customGlyphs,devicePixelRatio:r,deviceMaxTextureSize:p,letterSpacing:_.letterSpacing,lineHeight:_.lineHeight,deviceCellWidth:f,deviceCellHeight:h,deviceCharWidth:C,deviceCharHeight:b,fontFamily:_.fontFamily,fontSize:_.fontSize,fontWeight:_.fontWeight,fontWeightBold:_.fontWeightBold,allowTransparency:_.allowTransparency,drawBoldTextInBrightColors:_.drawBoldTextInBrightColors,minimumContrastRatio:_.minimumContrastRatio,colors:E}},e.configEquals=function(f,h){for(let C=0;C<f.colors.ansi.length;C++)if(f.colors.ansi[C].rgba!==h.colors.ansi[C].rgba)return!1;return f.devicePixelRatio===h.devicePixelRatio&&f.customGlyphs===h.customGlyphs&&f.lineHeight===h.lineHeight&&f.letterSpacing===h.letterSpacing&&f.fontFamily===h.fontFamily&&f.fontSize===h.fontSize&&f.fontWeight===h.fontWeight&&f.fontWeightBold===h.fontWeightBold&&f.allowTransparency===h.allowTransparency&&f.deviceCharWidth===h.deviceCharWidth&&f.deviceCharHeight===h.deviceCharHeight&&f.drawBoldTextInBrightColors===h.drawBoldTextInBrightColors&&f.minimumContrastRatio===h.minimumContrastRatio&&f.colors.foreground.rgba===h.colors.foreground.rgba&&f.colors.background.rgba===h.colors.background.rgba},e.is256Color=function(f){return(50331648&f)==16777216||(50331648&f)==33554432};const i=v(7993)},2e3:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TEXT_BASELINE=e.DIM_OPACITY=void 0;const i=v(7095);e.DIM_OPACITY=.5,e.TEXT_BASELINE=i.isFirefox||i.isLegacyEdge?"bottom":"ideographic"},3773:(j,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CursorBlinkStateManager=void 0,e.CursorBlinkStateManager=class{constructor(v,i){this._renderCallback=v,this._coreBrowserService=i,this.isCursorVisible=!0,this._coreBrowserService.isFocused&&this._restartInterval()}get isPaused(){return!(this._blinkStartTimeout||this._blinkInterval)}dispose(){this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(this._coreBrowserService.window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}restartBlinkAnimation(){this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0}))))}_restartInterval(v=600){this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=this._coreBrowserService.window.setTimeout((()=>{if(this._animationTimeRestarted){const i=600-(Date.now()-this._animationTimeRestarted);if(this._animationTimeRestarted=void 0,i>0)return void this._restartInterval(i)}this.isCursorVisible=!1,this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0})),this._blinkInterval=this._coreBrowserService.window.setInterval((()=>{if(this._animationTimeRestarted){const i=600-(Date.now()-this._animationTimeRestarted);return this._animationTimeRestarted=void 0,void this._restartInterval(i)}this.isCursorVisible=!this.isCursorVisible,this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0}))}),600)}),v)}pause(){this.isCursorVisible=!0,this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(this._coreBrowserService.window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}resume(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()}}},9705:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.powerlineDefinitions=e.boxDrawingDefinitions=e.blockElementDefinitions=void 0,e.tryDrawCustomChar=function(o,r,p,E,t,R,u,n){const s=e.blockElementDefinitions[r];if(s)return(function(L,w,S,g,A,U){for(let D=0;D<w.length;D++){const P=w[D],B=A/8,M=U/8;L.fillRect(S+P.x*B,g+P.y*M,P.w*B,P.h*M)}})(o,s,p,E,t,R),!0;const a=f[r];if(a)return(function(L,w,S,g,A,U){let D=h.get(w);D||(D=new Map,h.set(w,D));const P=L.fillStyle;if(typeof P!="string")throw new Error(`Unexpected fillStyle type "${P}"`);let B=D.get(P);if(!B){const M=w[0].length,y=w.length,x=L.canvas.ownerDocument.createElement("canvas");x.width=M,x.height=y;const I=(0,i.throwIfFalsy)(x.getContext("2d")),O=new ImageData(M,y);let N,W,K,$;if(P.startsWith("#"))N=parseInt(P.slice(1,3),16),W=parseInt(P.slice(3,5),16),K=parseInt(P.slice(5,7),16),$=P.length>7&&parseInt(P.slice(7,9),16)||1;else{if(!P.startsWith("rgba"))throw new Error(`Unexpected fillStyle color format "${P}" when drawing pattern glyph`);[N,W,K,$]=P.substring(5,P.length-1).split(",").map((X=>parseFloat(X)))}for(let X=0;X<y;X++)for(let Z=0;Z<M;Z++)O.data[4*(X*M+Z)]=N,O.data[4*(X*M+Z)+1]=W,O.data[4*(X*M+Z)+2]=K,O.data[4*(X*M+Z)+3]=w[X][Z]*(255*$);I.putImageData(O,0,0),B=(0,i.throwIfFalsy)(L.createPattern(x,null)),D.set(P,B)}L.fillStyle=B,L.fillRect(S,g,A,U)})(o,a,p,E,t,R),!0;const c=e.boxDrawingDefinitions[r];if(c)return(function(L,w,S,g,A,U,D){L.strokeStyle=L.fillStyle;for(const[P,B]of Object.entries(w)){let M;L.beginPath(),L.lineWidth=D*Number.parseInt(P),M=typeof B=="function"?B(.15,.15/U*A):B;for(const y of M.split(" ")){const x=y[0],I=b[x];if(!I){console.error(`Could not find drawing instructions for "${x}"`);continue}const O=y.substring(1).split(",");O[0]&&O[1]&&I(L,_(O,A,U,S,g,!0,D))}L.stroke(),L.closePath()}})(o,c,p,E,t,R,n),!0;const l=e.powerlineDefinitions[r];return!!l&&((function(L,w,S,g,A,U,D,P){const B=new Path2D;B.rect(S,g,A,U),L.clip(B),L.beginPath();const M=D/12;L.lineWidth=P*M;for(const y of w.d.split(" ")){const x=y[0],I=b[x];if(!I){console.error(`Could not find drawing instructions for "${x}"`);continue}const O=y.substring(1).split(",");O[0]&&O[1]&&I(L,_(O,A,U,S,g,!1,P,(w.leftPadding??0)*(M/2),(w.rightPadding??0)*(M/2)))}w.type===1?(L.strokeStyle=L.fillStyle,L.stroke()):L.fill(),L.closePath()})(o,l,p,E,t,R,u,n),!0)};const i=v(4959);e.blockElementDefinitions={"▀":[{x:0,y:0,w:8,h:4}],"▁":[{x:0,y:7,w:8,h:1}],"▂":[{x:0,y:6,w:8,h:2}],"▃":[{x:0,y:5,w:8,h:3}],"▄":[{x:0,y:4,w:8,h:4}],"▅":[{x:0,y:3,w:8,h:5}],"▆":[{x:0,y:2,w:8,h:6}],"▇":[{x:0,y:1,w:8,h:7}],"█":[{x:0,y:0,w:8,h:8}],"▉":[{x:0,y:0,w:7,h:8}],"▊":[{x:0,y:0,w:6,h:8}],"▋":[{x:0,y:0,w:5,h:8}],"▌":[{x:0,y:0,w:4,h:8}],"▍":[{x:0,y:0,w:3,h:8}],"▎":[{x:0,y:0,w:2,h:8}],"▏":[{x:0,y:0,w:1,h:8}],"▐":[{x:4,y:0,w:4,h:8}],"▔":[{x:0,y:0,w:8,h:1}],"▕":[{x:7,y:0,w:1,h:8}],"▖":[{x:0,y:4,w:4,h:4}],"▗":[{x:4,y:4,w:4,h:4}],"▘":[{x:0,y:0,w:4,h:4}],"▙":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"▚":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"▛":[{x:0,y:0,w:4,h:8},{x:4,y:0,w:4,h:4}],"▜":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"▝":[{x:4,y:0,w:4,h:4}],"▞":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"▟":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"🭰":[{x:1,y:0,w:1,h:8}],"🭱":[{x:2,y:0,w:1,h:8}],"🭲":[{x:3,y:0,w:1,h:8}],"🭳":[{x:4,y:0,w:1,h:8}],"🭴":[{x:5,y:0,w:1,h:8}],"🭵":[{x:6,y:0,w:1,h:8}],"🭶":[{x:0,y:1,w:8,h:1}],"🭷":[{x:0,y:2,w:8,h:1}],"🭸":[{x:0,y:3,w:8,h:1}],"🭹":[{x:0,y:4,w:8,h:1}],"🭺":[{x:0,y:5,w:8,h:1}],"🭻":[{x:0,y:6,w:8,h:1}],"🭼":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🭽":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭾":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭿":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🮀":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮁":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮂":[{x:0,y:0,w:8,h:2}],"🮃":[{x:0,y:0,w:8,h:3}],"🮄":[{x:0,y:0,w:8,h:5}],"🮅":[{x:0,y:0,w:8,h:6}],"🮆":[{x:0,y:0,w:8,h:7}],"🮇":[{x:6,y:0,w:2,h:8}],"🮈":[{x:5,y:0,w:3,h:8}],"🮉":[{x:3,y:0,w:5,h:8}],"🮊":[{x:2,y:0,w:6,h:8}],"🮋":[{x:1,y:0,w:7,h:8}],"🮕":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"🮖":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"🮗":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};const f={"░":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"▒":[[1,0],[0,0],[0,1],[0,0]],"▓":[[0,1],[1,1],[1,0],[1,1]]};e.boxDrawingDefinitions={"─":{1:"M0,.5 L1,.5"},"━":{3:"M0,.5 L1,.5"},"│":{1:"M.5,0 L.5,1"},"┃":{3:"M.5,0 L.5,1"},"┌":{1:"M0.5,1 L.5,.5 L1,.5"},"┏":{3:"M0.5,1 L.5,.5 L1,.5"},"┐":{1:"M0,.5 L.5,.5 L.5,1"},"┓":{3:"M0,.5 L.5,.5 L.5,1"},"└":{1:"M.5,0 L.5,.5 L1,.5"},"┗":{3:"M.5,0 L.5,.5 L1,.5"},"┘":{1:"M.5,0 L.5,.5 L0,.5"},"┛":{3:"M.5,0 L.5,.5 L0,.5"},"├":{1:"M.5,0 L.5,1 M.5,.5 L1,.5"},"┣":{3:"M.5,0 L.5,1 M.5,.5 L1,.5"},"┤":{1:"M.5,0 L.5,1 M.5,.5 L0,.5"},"┫":{3:"M.5,0 L.5,1 M.5,.5 L0,.5"},"┬":{1:"M0,.5 L1,.5 M.5,.5 L.5,1"},"┳":{3:"M0,.5 L1,.5 M.5,.5 L.5,1"},"┴":{1:"M0,.5 L1,.5 M.5,.5 L.5,0"},"┻":{3:"M0,.5 L1,.5 M.5,.5 L.5,0"},"┼":{1:"M0,.5 L1,.5 M.5,0 L.5,1"},"╋":{3:"M0,.5 L1,.5 M.5,0 L.5,1"},"╴":{1:"M.5,.5 L0,.5"},"╸":{3:"M.5,.5 L0,.5"},"╵":{1:"M.5,.5 L.5,0"},"╹":{3:"M.5,.5 L.5,0"},"╶":{1:"M.5,.5 L1,.5"},"╺":{3:"M.5,.5 L1,.5"},"╷":{1:"M.5,.5 L.5,1"},"╻":{3:"M.5,.5 L.5,1"},"═":{1:(o,r)=>`M0,${.5-r} L1,${.5-r} M0,${.5+r} L1,${.5+r}`},"║":{1:(o,r)=>`M${.5-o},0 L${.5-o},1 M${.5+o},0 L${.5+o},1`},"╒":{1:(o,r)=>`M.5,1 L.5,${.5-r} L1,${.5-r} M.5,${.5+r} L1,${.5+r}`},"╓":{1:(o,r)=>`M${.5-o},1 L${.5-o},.5 L1,.5 M${.5+o},.5 L${.5+o},1`},"╔":{1:(o,r)=>`M1,${.5-r} L${.5-o},${.5-r} L${.5-o},1 M1,${.5+r} L${.5+o},${.5+r} L${.5+o},1`},"╕":{1:(o,r)=>`M0,${.5-r} L.5,${.5-r} L.5,1 M0,${.5+r} L.5,${.5+r}`},"╖":{1:(o,r)=>`M${.5+o},1 L${.5+o},.5 L0,.5 M${.5-o},.5 L${.5-o},1`},"╗":{1:(o,r)=>`M0,${.5+r} L${.5-o},${.5+r} L${.5-o},1 M0,${.5-r} L${.5+o},${.5-r} L${.5+o},1`},"╘":{1:(o,r)=>`M.5,0 L.5,${.5+r} L1,${.5+r} M.5,${.5-r} L1,${.5-r}`},"╙":{1:(o,r)=>`M1,.5 L${.5-o},.5 L${.5-o},0 M${.5+o},.5 L${.5+o},0`},"╚":{1:(o,r)=>`M1,${.5-r} L${.5+o},${.5-r} L${.5+o},0 M1,${.5+r} L${.5-o},${.5+r} L${.5-o},0`},"╛":{1:(o,r)=>`M0,${.5+r} L.5,${.5+r} L.5,0 M0,${.5-r} L.5,${.5-r}`},"╜":{1:(o,r)=>`M0,.5 L${.5+o},.5 L${.5+o},0 M${.5-o},.5 L${.5-o},0`},"╝":{1:(o,r)=>`M0,${.5-r} L${.5-o},${.5-r} L${.5-o},0 M0,${.5+r} L${.5+o},${.5+r} L${.5+o},0`},"╞":{1:(o,r)=>`M.5,0 L.5,1 M.5,${.5-r} L1,${.5-r} M.5,${.5+r} L1,${.5+r}`},"╟":{1:(o,r)=>`M${.5-o},0 L${.5-o},1 M${.5+o},0 L${.5+o},1 M${.5+o},.5 L1,.5`},"╠":{1:(o,r)=>`M${.5-o},0 L${.5-o},1 M1,${.5+r} L${.5+o},${.5+r} L${.5+o},1 M1,${.5-r} L${.5+o},${.5-r} L${.5+o},0`},"╡":{1:(o,r)=>`M.5,0 L.5,1 M0,${.5-r} L.5,${.5-r} M0,${.5+r} L.5,${.5+r}`},"╢":{1:(o,r)=>`M0,.5 L${.5-o},.5 M${.5-o},0 L${.5-o},1 M${.5+o},0 L${.5+o},1`},"╣":{1:(o,r)=>`M${.5+o},0 L${.5+o},1 M0,${.5+r} L${.5-o},${.5+r} L${.5-o},1 M0,${.5-r} L${.5-o},${.5-r} L${.5-o},0`},"╤":{1:(o,r)=>`M0,${.5-r} L1,${.5-r} M0,${.5+r} L1,${.5+r} M.5,${.5+r} L.5,1`},"╥":{1:(o,r)=>`M0,.5 L1,.5 M${.5-o},.5 L${.5-o},1 M${.5+o},.5 L${.5+o},1`},"╦":{1:(o,r)=>`M0,${.5-r} L1,${.5-r} M0,${.5+r} L${.5-o},${.5+r} L${.5-o},1 M1,${.5+r} L${.5+o},${.5+r} L${.5+o},1`},"╧":{1:(o,r)=>`M.5,0 L.5,${.5-r} M0,${.5-r} L1,${.5-r} M0,${.5+r} L1,${.5+r}`},"╨":{1:(o,r)=>`M0,.5 L1,.5 M${.5-o},.5 L${.5-o},0 M${.5+o},.5 L${.5+o},0`},"╩":{1:(o,r)=>`M0,${.5+r} L1,${.5+r} M0,${.5-r} L${.5-o},${.5-r} L${.5-o},0 M1,${.5-r} L${.5+o},${.5-r} L${.5+o},0`},"╪":{1:(o,r)=>`M.5,0 L.5,1 M0,${.5-r} L1,${.5-r} M0,${.5+r} L1,${.5+r}`},"╫":{1:(o,r)=>`M0,.5 L1,.5 M${.5-o},0 L${.5-o},1 M${.5+o},0 L${.5+o},1`},"╬":{1:(o,r)=>`M0,${.5+r} L${.5-o},${.5+r} L${.5-o},1 M1,${.5+r} L${.5+o},${.5+r} L${.5+o},1 M0,${.5-r} L${.5-o},${.5-r} L${.5-o},0 M1,${.5-r} L${.5+o},${.5-r} L${.5+o},0`},"╱":{1:"M1,0 L0,1"},"╲":{1:"M0,0 L1,1"},"╳":{1:"M1,0 L0,1 M0,0 L1,1"},"╼":{1:"M.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"╽":{1:"M.5,.5 L.5,0",3:"M.5,.5 L.5,1"},"╾":{1:"M.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"╿":{1:"M.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"┍":{1:"M.5,.5 L.5,1",3:"M.5,.5 L1,.5"},"┎":{1:"M.5,.5 L1,.5",3:"M.5,.5 L.5,1"},"┑":{1:"M.5,.5 L.5,1",3:"M.5,.5 L0,.5"},"┒":{1:"M.5,.5 L0,.5",3:"M.5,.5 L.5,1"},"┕":{1:"M.5,.5 L.5,0",3:"M.5,.5 L1,.5"},"┖":{1:"M.5,.5 L1,.5",3:"M.5,.5 L.5,0"},"┙":{1:"M.5,.5 L.5,0",3:"M.5,.5 L0,.5"},"┚":{1:"M.5,.5 L0,.5",3:"M.5,.5 L.5,0"},"┝":{1:"M.5,0 L.5,1",3:"M.5,.5 L1,.5"},"┞":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,.5 L.5,0"},"┟":{1:"M.5,0 L.5,.5 L1,.5",3:"M.5,.5 L.5,1"},"┠":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,1"},"┡":{1:"M.5,.5 L.5,1",3:"M.5,0 L.5,.5 L1,.5"},"┢":{1:"M.5,.5 L.5,0",3:"M0.5,1 L.5,.5 L1,.5"},"┥":{1:"M.5,0 L.5,1",3:"M.5,.5 L0,.5"},"┦":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"┧":{1:"M.5,0 L.5,.5 L0,.5",3:"M.5,.5 L.5,1"},"┨":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,1"},"┩":{1:"M.5,.5 L.5,1",3:"M.5,0 L.5,.5 L0,.5"},"┪":{1:"M.5,.5 L.5,0",3:"M0,.5 L.5,.5 L.5,1"},"┭":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"┮":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,.5 L1,.5"},"┯":{1:"M.5,.5 L.5,1",3:"M0,.5 L1,.5"},"┰":{1:"M0,.5 L1,.5",3:"M.5,.5 L.5,1"},"┱":{1:"M.5,.5 L1,.5",3:"M0,.5 L.5,.5 L.5,1"},"┲":{1:"M.5,.5 L0,.5",3:"M0.5,1 L.5,.5 L1,.5"},"┵":{1:"M.5,0 L.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"┶":{1:"M.5,0 L.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"┷":{1:"M.5,.5 L.5,0",3:"M0,.5 L1,.5"},"┸":{1:"M0,.5 L1,.5",3:"M.5,.5 L.5,0"},"┹":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,.5 L0,.5"},"┺":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,.5 L1,.5"},"┽":{1:"M.5,0 L.5,1 M.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"┾":{1:"M.5,0 L.5,1 M.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"┿":{1:"M.5,0 L.5,1",3:"M0,.5 L1,.5"},"╀":{1:"M0,.5 L1,.5 M.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"╁":{1:"M.5,.5 L.5,0 M0,.5 L1,.5",3:"M.5,.5 L.5,1"},"╂":{1:"M0,.5 L1,.5",3:"M.5,0 L.5,1"},"╃":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,0 L.5,.5 L0,.5"},"╄":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,0 L.5,.5 L1,.5"},"╅":{1:"M.5,0 L.5,.5 L1,.5",3:"M0,.5 L.5,.5 L.5,1"},"╆":{1:"M.5,0 L.5,.5 L0,.5",3:"M0.5,1 L.5,.5 L1,.5"},"╇":{1:"M.5,.5 L.5,1",3:"M.5,.5 L.5,0 M0,.5 L1,.5"},"╈":{1:"M.5,.5 L.5,0",3:"M0,.5 L1,.5 M.5,.5 L.5,1"},"╉":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,1 M.5,.5 L0,.5"},"╊":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,1 M.5,.5 L1,.5"},"╌":{1:"M.1,.5 L.4,.5 M.6,.5 L.9,.5"},"╍":{3:"M.1,.5 L.4,.5 M.6,.5 L.9,.5"},"┄":{1:"M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5"},"┅":{3:"M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5"},"┈":{1:"M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5"},"┉":{3:"M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5"},"╎":{1:"M.5,.1 L.5,.4 M.5,.6 L.5,.9"},"╏":{3:"M.5,.1 L.5,.4 M.5,.6 L.5,.9"},"┆":{1:"M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333"},"┇":{3:"M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333"},"┊":{1:"M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95"},"┋":{3:"M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95"},"╭":{1:(o,r)=>`M.5,1 L.5,${.5+r/.15*.5} C.5,${.5+r/.15*.5},.5,.5,1,.5`},"╮":{1:(o,r)=>`M.5,1 L.5,${.5+r/.15*.5} C.5,${.5+r/.15*.5},.5,.5,0,.5`},"╯":{1:(o,r)=>`M.5,0 L.5,${.5-r/.15*.5} C.5,${.5-r/.15*.5},.5,.5,0,.5`},"╰":{1:(o,r)=>`M.5,0 L.5,${.5-r/.15*.5} C.5,${.5-r/.15*.5},.5,.5,1,.5`}},e.powerlineDefinitions={"":{d:"M.3,1 L.03,1 L.03,.88 C.03,.82,.06,.78,.11,.73 C.15,.7,.2,.68,.28,.65 L.43,.6 C.49,.58,.53,.56,.56,.53 C.59,.5,.6,.47,.6,.43 L.6,.27 L.4,.27 L.69,.1 L.98,.27 L.78,.27 L.78,.46 C.78,.52,.76,.56,.72,.61 C.68,.66,.63,.67,.56,.7 L.48,.72 C.42,.74,.38,.76,.35,.78 C.32,.8,.31,.84,.31,.88 L.31,1 M.3,.5 L.03,.59 L.03,.09 L.3,.09 L.3,.655",type:0},"":{d:"M.7,.4 L.7,.47 L.2,.47 L.2,.03 L.355,.03 L.355,.4 L.705,.4 M.7,.5 L.86,.5 L.86,.95 L.69,.95 L.44,.66 L.46,.86 L.46,.95 L.3,.95 L.3,.49 L.46,.49 L.71,.78 L.69,.565 L.69,.5",type:0},"":{d:"M.25,.94 C.16,.94,.11,.92,.11,.87 L.11,.53 C.11,.48,.15,.455,.23,.45 L.23,.3 C.23,.25,.26,.22,.31,.19 C.36,.16,.43,.15,.51,.15 C.59,.15,.66,.16,.71,.19 C.77,.22,.79,.26,.79,.3 L.79,.45 C.87,.45,.91,.48,.91,.53 L.91,.87 C.91,.92,.86,.94,.77,.94 L.24,.94 M.53,.2 C.49,.2,.45,.21,.42,.23 C.39,.25,.38,.27,.38,.3 L.38,.45 L.68,.45 L.68,.3 C.68,.27,.67,.25,.64,.23 C.61,.21,.58,.2,.53,.2 M.58,.82 L.58,.66 C.63,.65,.65,.63,.65,.6 C.65,.58,.64,.57,.61,.56 C.58,.55,.56,.54,.52,.54 C.48,.54,.46,.55,.43,.56 C.4,.57,.39,.59,.39,.6 C.39,.63,.41,.64,.46,.66 L.46,.82 L.57,.82",type:0},"":{d:"M0,0 L1,.5 L0,1",type:0,rightPadding:2},"":{d:"M-1,-.5 L1,.5 L-1,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M1,0 L0,.5 L1,1",type:0,leftPadding:2},"":{d:"M2,-.5 L0,.5 L2,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M0,0 L0,1 C0.552,1,1,0.776,1,.5 C1,0.224,0.552,0,0,0",type:0,rightPadding:1},"":{d:"M.2,1 C.422,1,.8,.826,.78,.5 C.8,.174,0.422,0,.2,0",type:1,rightPadding:1},"":{d:"M1,0 L1,1 C0.448,1,0,0.776,0,.5 C0,0.224,0.448,0,1,0",type:0,leftPadding:1},"":{d:"M.8,1 C0.578,1,0.2,.826,.22,.5 C0.2,0.174,0.578,0,0.8,0",type:1,leftPadding:1},"":{d:"M-.5,-.5 L1.5,1.5 L-.5,1.5",type:0},"":{d:"M-.5,-.5 L1.5,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M1.5,-.5 L-.5,1.5 L1.5,1.5",type:0},"":{d:"M1.5,-.5 L-.5,1.5 L-.5,-.5",type:0},"":{d:"M1.5,-.5 L-.5,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M-.5,-.5 L1.5,1.5 L1.5,-.5",type:0}},e.powerlineDefinitions[""]=e.powerlineDefinitions[""],e.powerlineDefinitions[""]=e.powerlineDefinitions[""];const h=new Map;function C(o,r,p=0){return Math.max(Math.min(o,r),p)}const b={C:(o,r)=>o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]),L:(o,r)=>o.lineTo(r[0],r[1]),M:(o,r)=>o.moveTo(r[0],r[1])};function _(o,r,p,E,t,R,u,n=0,s=0){const a=o.map((c=>parseFloat(c)||parseInt(c)));if(a.length<2)throw new Error("Too few arguments for instruction");for(let c=0;c<a.length;c+=2)a[c]*=r-n*u-s*u,R&&a[c]!==0&&(a[c]=C(Math.round(a[c]+.5)-.5,r,0)),a[c]+=E+n*u;for(let c=1;c<a.length;c+=2)a[c]*=p,R&&a[c]!==0&&(a[c]=C(Math.round(a[c]+.5)-.5,p,0)),a[c]+=t;return a}},697:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.observeDevicePixelDimensions=function(f,h,C){let b=new h.ResizeObserver((_=>{const o=_.find((E=>E.target===f));if(!o)return;if(!("devicePixelContentBoxSize"in o))return b?.disconnect(),void(b=void 0);const r=o.devicePixelContentBoxSize[0].inlineSize,p=o.devicePixelContentBoxSize[0].blockSize;r>0&&p>0&&C(r,p)}));try{b.observe(f,{box:["device-pixel-content-box"]})}catch{b.disconnect(),b=void 0}return(0,i.toDisposable)((()=>b?.disconnect()))};const i=v(2540)},3028:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GlyphRenderer=void 0;const i=v(2115),f=v(1564),h=v(2540),C=v(5719),b=v(4959),_=11,o=_*Float32Array.BYTES_PER_ELEMENT;let r,p=0,E=0,t=0;class R extends h.Disposable{constructor(n,s,a,c){super(),this._terminal=n,this._gl=s,this._dimensions=a,this._optionsService=c,this._activeBuffer=0,this._vertices={count:0,attributes:new Float32Array(0),attributesBuffers:[new Float32Array(0),new Float32Array(0)]};const l=this._gl;i.TextureAtlas.maxAtlasPages===void 0&&(i.TextureAtlas.maxAtlasPages=Math.min(32,(0,b.throwIfFalsy)(l.getParameter(l.MAX_TEXTURE_IMAGE_UNITS))),i.TextureAtlas.maxTextureSize=(0,b.throwIfFalsy)(l.getParameter(l.MAX_TEXTURE_SIZE))),this._program=(0,b.throwIfFalsy)((0,C.createProgram)(l,`#version 300 es
2
2
  layout (location = 0) in vec2 a_unitquad;
3
3
  layout (location = 1) in vec2 a_cellpos;
4
4
  layout (location = 2) in vec2 a_offset;
@@ -1 +1 @@
1
- import{j as s}from"./index-DReVb7jZ.js";function d(e){return e?e.startsWith("/Users/")?"~/"+e.split("/").slice(3).join("/"):e:null}function u(e,r){const l=e.model&&e.harness&&e.model.startsWith(`${e.harness}-`)?e.model.slice(e.harness.length+1):e.model??null,o=e.cwd??e.projectRoot??r?.projectRoot??null,n=o?d(o)??o:null,i=e.homeNodeName?e.homeNodeName.replace(/\.local$/i,""):null,c=[e.harness,l].filter(a=>!!a).join(" · ")||null,t=e.branch?.trim()||null;return{cwdShort:n,hostShort:i,branch:t,chip:c,cwdFull:o}}function x(){return s.jsx("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.2","aria-hidden":!0,children:s.jsx("path",{d:"M2 4h4l1.4 1.6H14v6.4H2z",strokeLinejoin:"round"})})}function j(){return s.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.2","aria-hidden":!0,children:[s.jsx("circle",{cx:"4.5",cy:"3.5",r:"1.5"}),s.jsx("circle",{cx:"4.5",cy:"12.5",r:"1.5"}),s.jsx("circle",{cx:"11.5",cy:"5.5",r:"1.5"}),s.jsx("path",{d:"M4.5 5v6M4.5 11c0-3 7-1.4 7-4",strokeLinecap:"round"})]})}function p(){return s.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.2","aria-hidden":!0,children:[s.jsx("rect",{x:"4.5",y:"4.5",width:"7",height:"7",rx:"1"}),s.jsx("path",{d:"M6.5 2v2M9.5 2v2M6.5 12v2M9.5 12v2M2 6.5h2M2 9.5h2M12 6.5h2M12 9.5h2",strokeLinecap:"round"})]})}function v(){return s.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.2","aria-hidden":!0,children:[s.jsx("rect",{x:"2.5",y:"3.5",width:"11",height:"7",rx:"1"}),s.jsx("path",{d:"M6 13h4M8 10.5V13",strokeLinecap:"round"})]})}function h({ico:e,v:r,title:l}){return s.jsxs("span",{className:"s-sess-glyph-cell",title:l??r,children:[s.jsx("span",{className:"s-sess-glyph-ico",children:e}),s.jsx("span",{className:"s-sess-glyph-v",children:r})]})}function M({agent:e,projectRoot:r,chipTitle:l,className:o}){const{cwdShort:n,hostShort:i,branch:c,chip:t,cwdFull:a}=u(e,{projectRoot:r});return!(n||c||i||t)?null:s.jsxs("div",{className:["s-sess-glyph",o].filter(Boolean).join(" "),"aria-label":"Agent runtime essentials",children:[n&&s.jsx(h,{ico:s.jsx(x,{}),v:n,title:a??n}),c&&s.jsx(h,{ico:s.jsx(j,{}),v:c}),i&&s.jsx(h,{ico:s.jsx(v,{}),v:i}),t&&s.jsx(h,{ico:s.jsx(p,{}),v:t,title:l??t})]})}export{M as AgentEssentialsGlyph,u as agentEssentials};
1
+ import{j as s}from"./index-EsrkGBcv.js";function d(e){return e?e.startsWith("/Users/")?"~/"+e.split("/").slice(3).join("/"):e:null}function u(e,r){const l=e.model&&e.harness&&e.model.startsWith(`${e.harness}-`)?e.model.slice(e.harness.length+1):e.model??null,o=e.cwd??e.projectRoot??r?.projectRoot??null,n=o?d(o)??o:null,i=e.homeNodeName?e.homeNodeName.replace(/\.local$/i,""):null,c=[e.harness,l].filter(a=>!!a).join(" · ")||null,t=e.branch?.trim()||null;return{cwdShort:n,hostShort:i,branch:t,chip:c,cwdFull:o}}function x(){return s.jsx("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.2","aria-hidden":!0,children:s.jsx("path",{d:"M2 4h4l1.4 1.6H14v6.4H2z",strokeLinejoin:"round"})})}function j(){return s.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.2","aria-hidden":!0,children:[s.jsx("circle",{cx:"4.5",cy:"3.5",r:"1.5"}),s.jsx("circle",{cx:"4.5",cy:"12.5",r:"1.5"}),s.jsx("circle",{cx:"11.5",cy:"5.5",r:"1.5"}),s.jsx("path",{d:"M4.5 5v6M4.5 11c0-3 7-1.4 7-4",strokeLinecap:"round"})]})}function p(){return s.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.2","aria-hidden":!0,children:[s.jsx("rect",{x:"4.5",y:"4.5",width:"7",height:"7",rx:"1"}),s.jsx("path",{d:"M6.5 2v2M9.5 2v2M6.5 12v2M9.5 12v2M2 6.5h2M2 9.5h2M12 6.5h2M12 9.5h2",strokeLinecap:"round"})]})}function v(){return s.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.2","aria-hidden":!0,children:[s.jsx("rect",{x:"2.5",y:"3.5",width:"11",height:"7",rx:"1"}),s.jsx("path",{d:"M6 13h4M8 10.5V13",strokeLinecap:"round"})]})}function h({ico:e,v:r,title:l}){return s.jsxs("span",{className:"s-sess-glyph-cell",title:l??r,children:[s.jsx("span",{className:"s-sess-glyph-ico",children:e}),s.jsx("span",{className:"s-sess-glyph-v",children:r})]})}function M({agent:e,projectRoot:r,chipTitle:l,className:o}){const{cwdShort:n,hostShort:i,branch:c,chip:t,cwdFull:a}=u(e,{projectRoot:r});return!(n||c||i||t)?null:s.jsxs("div",{className:["s-sess-glyph",o].filter(Boolean).join(" "),"aria-label":"Agent runtime essentials",children:[n&&s.jsx(h,{ico:s.jsx(x,{}),v:n,title:a??n}),c&&s.jsx(h,{ico:s.jsx(j,{}),v:c}),i&&s.jsx(h,{ico:s.jsx(v,{}),v:i}),t&&s.jsx(h,{ico:s.jsx(p,{}),v:t,title:l??t})]})}export{M as AgentEssentialsGlyph,u as agentEssentials};
@@ -1 +1 @@
1
- import{i as y}from"./conversations-Cbg9h_Af.js";import{b as j,m as b,c as v}from"./machine-scope-DJt9RZ2w.js";function w(e){const o=e.project?.trim().toLowerCase();if(o)return`project:${o}`;const n=e.projectRoot?.trim().replace(/\/+$/,"").toLowerCase();return n?`root:${n}`:"project:"}function B(e){return(e.authorityNodeId??e.homeNodeId??"").trim().toLowerCase()}function h(e,o){const n=e?.definitionId.trim().toLowerCase();return!e||!n?`agent:${o}`:JSON.stringify(["definition",n,w(e),B(e)])}function u(e,o){const n=e.id===e.definitionId?0:1,a=o.id===o.definitionId?0:1;return n-a||e.id.localeCompare(o.id)}function $(e){return[...e].sort(u)[0]}function I(e,o){return e.id===o||!!e.equivalentConversationIds?.includes(o)}function l(e,o){return(e.agentId??"").localeCompare(o.agentId??"")||e.id.localeCompare(o.id)}function z(e){const o=e.machineId?.trim()||null,n=j(e.agents,o),a=b(e.agents,o),A=v(e.sessions,a,o),c=n.find(t=>t.id===e.agentId),p=h(c,e.agentId),m=c?n.filter(t=>h(t,t.id)===p):[],i=new Set(m.map(t=>t.id));i.size===0&&i.add(e.agentId);const s=A.filter(t=>y(t)&&!!(t.agentId&&i.has(t.agentId))).sort((t,d)=>(d.lastMessageAt??0)-(t.lastMessageAt??0)||l(t,d)),g=[...m].sort(u),f=g[0]??c;let r;for(const t of g)if(t.conversationId&&(r=s.find(d=>I(d,t.conversationId)),r))break;!r&&f&&(r=[...s].filter(t=>t.agentId===f.id).sort(l)[0]),r??=[...s].sort(l)[0];const S=s.filter(t=>t.id!==r?.id),C=!!(e.threadId&&r&&I(r,e.threadId)),M=e.threadId&&!C?s.find(t=>I(t,e.threadId)):void 0;return{agent:f,memberAgentIds:[...i].sort(),sessions:s,master:r,threads:S,thread:M}}export{h as a,z as b,$ as c,I as s};
1
+ import{i as y}from"./conversations-DoAAO6kA.js";import{b as j,m as b,c as v}from"./machine-scope-DJt9RZ2w.js";function w(e){const o=e.project?.trim().toLowerCase();if(o)return`project:${o}`;const n=e.projectRoot?.trim().replace(/\/+$/,"").toLowerCase();return n?`root:${n}`:"project:"}function B(e){return(e.authorityNodeId??e.homeNodeId??"").trim().toLowerCase()}function h(e,o){const n=e?.definitionId.trim().toLowerCase();return!e||!n?`agent:${o}`:JSON.stringify(["definition",n,w(e),B(e)])}function u(e,o){const n=e.id===e.definitionId?0:1,a=o.id===o.definitionId?0:1;return n-a||e.id.localeCompare(o.id)}function $(e){return[...e].sort(u)[0]}function I(e,o){return e.id===o||!!e.equivalentConversationIds?.includes(o)}function l(e,o){return(e.agentId??"").localeCompare(o.agentId??"")||e.id.localeCompare(o.id)}function z(e){const o=e.machineId?.trim()||null,n=j(e.agents,o),a=b(e.agents,o),A=v(e.sessions,a,o),c=n.find(t=>t.id===e.agentId),p=h(c,e.agentId),m=c?n.filter(t=>h(t,t.id)===p):[],i=new Set(m.map(t=>t.id));i.size===0&&i.add(e.agentId);const s=A.filter(t=>y(t)&&!!(t.agentId&&i.has(t.agentId))).sort((t,d)=>(d.lastMessageAt??0)-(t.lastMessageAt??0)||l(t,d)),g=[...m].sort(u),f=g[0]??c;let r;for(const t of g)if(t.conversationId&&(r=s.find(d=>I(d,t.conversationId)),r))break;!r&&f&&(r=[...s].filter(t=>t.agentId===f.id).sort(l)[0]),r??=[...s].sort(l)[0];const S=s.filter(t=>t.id!==r?.id),C=!!(e.threadId&&r&&I(r,e.threadId)),M=e.threadId&&!C?s.find(t=>I(t,e.threadId)):void 0;return{agent:f,memberAgentIds:[...i].sort(),sessions:s,master:r,threads:S,thread:M}}export{h as a,z as b,$ as c,I as s};
@@ -1 +1 @@
1
- import{f as s}from"./runtime-picker-C_AVYF63.js";const c={general:"Generalist",builder:"Builder",reviewer:"Reviewer",researcher:"Researcher",operator:"Operator",bridge:"Bridge",system:"System",organic:"Organic",managed:"Managed"};function u(e){if(!e?.trim())return"Generalist";const r=e.trim().toLowerCase();return c[r]??e.replace(/_/g," ")}function m(e){return e?.trim()?s(e)?.trim()??null:null}function g(e,r){const i=e.agentClass?.trim()||"general",t=u(i),n=m(e.role),a=[...new Set(e.skills??[])].filter(Boolean),l=[...new Set([...e.capabilities??[],...r?.capabilities??[]])].filter(Boolean),o=i==="general"&&!n&&a.length===0;return{kind:t,kindRaw:i,role:n,isGeneralist:o,headline:n??t,skills:a,capabilities:l}}export{g as a};
1
+ import{f as s}from"./runtime-picker-DXu2bOTh.js";const c={general:"Generalist",builder:"Builder",reviewer:"Reviewer",researcher:"Researcher",operator:"Operator",bridge:"Bridge",system:"System",organic:"Organic",managed:"Managed"};function u(e){if(!e?.trim())return"Generalist";const r=e.trim().toLowerCase();return c[r]??e.replace(/_/g," ")}function m(e){return e?.trim()?s(e)?.trim()??null:null}function g(e,r){const i=e.agentClass?.trim()||"general",t=u(i),n=m(e.role),a=[...new Set(e.skills??[])].filter(Boolean),l=[...new Set([...e.capabilities??[],...r?.capabilities??[]])].filter(Boolean),o=i==="general"&&!n&&a.length===0;return{kind:t,kindRaw:i,role:n,isGeneralist:o,headline:n??t,skills:a,capabilities:l}}export{g as a};