dorkos 0.127.1 → 0.128.0

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 (304) hide show
  1. package/THIRD-PARTY-NOTICES.md +61 -0
  2. package/dist/bin/cli.js +1387 -926
  3. package/dist/browser/native/package-manifest.json +1 -1
  4. package/dist/browser/source-manifest.json +1 -1
  5. package/dist/client/assets/{AboutPage-CwNzli7O.js → AboutPage-CmQERFxo.js} +1 -1
  6. package/dist/client/assets/{ActivityErrorState-D9UR9aYX.js → ActivityErrorState-Dw231W2w.js} +1 -1
  7. package/dist/client/assets/{ActivityPage-DeL7N0Rt.js → ActivityPage-DVfeyA9u.js} +1 -1
  8. package/dist/client/assets/{ActivityRow-DuuG4S5E.js → ActivityRow-DIBH4v9c.js} +1 -1
  9. package/dist/client/assets/{AdapterIcon-bYKCnumH.js → AdapterIcon-NqCDzgCI.js} +1 -1
  10. package/dist/client/assets/{AdapterSetupWizard-ByQU3Ryd.js → AdapterSetupWizard-Dle_b9qc.js} +1 -1
  11. package/dist/client/assets/{AgentOptionRow-CN9dDSeG.js → AgentOptionRow-BRJfZo2y.js} +1 -1
  12. package/dist/client/assets/{AgentPicker-Bbvnww9v.js → AgentPicker-B7upjYRk.js} +1 -1
  13. package/dist/client/assets/{AgentRequestCard-DmLUHbGa.js → AgentRequestCard-DXJnLk6q.js} +1 -1
  14. package/dist/client/assets/{AppearancePage-CS6bwH4x.js → AppearancePage-DXbhUt2e.js} +1 -1
  15. package/dist/client/assets/{ApplyToOverridesDialog-DG6pYkhN.js → ApplyToOverridesDialog-C_QQhNIf.js} +1 -1
  16. package/dist/client/assets/{AttentionSignalRow-ByeDJweR.js → AttentionSignalRow-5E7TkG98.js} +1 -1
  17. package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-CSaHAO1F.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-G7vrCqeA.js} +1 -1
  18. package/dist/client/assets/{BindingDialog-nNZW4-SF.js → BindingDialog-q--8SDJF.js} +1 -1
  19. package/dist/client/assets/{BlintzCanvas-BXwncq3A.js → BlintzCanvas-DruVZcDU.js} +3 -3
  20. package/dist/client/assets/{CanvasCsvContent-Dt7ko9e1.js → CanvasCsvContent-CtLpZnTs.js} +1 -1
  21. package/dist/client/assets/{CanvasFileContent-TO3VAFTI.js → CanvasFileContent-BThy5fjD.js} +2 -2
  22. package/dist/client/assets/{CanvasModel3dContent-DNK3EY5W.js → CanvasModel3dContent-BbgR73jh.js} +2 -2
  23. package/dist/client/assets/ChannelComposer-qhk0KtW7.js +44 -0
  24. package/dist/client/assets/{ChatAppsOff-BxUf0caI.js → ChatAppsOff-CCZUzDIH.js} +1 -1
  25. package/dist/client/assets/{CodeMirrorDiff-C78KCVkj.js → CodeMirrorDiff-BCpYdhgZ.js} +1 -1
  26. package/dist/client/assets/{CodeMirrorEditor-BWSTKK9s.js → CodeMirrorEditor-BeCubxHV.js} +1 -1
  27. package/dist/client/assets/{CommitmentList-oKrIigLt.js → CommitmentList-BZtfTnwg.js} +1 -1
  28. package/dist/client/assets/{CommitmentsPage-DKtyvmFd.js → CommitmentsPage-DmurDgxV.js} +1 -1
  29. package/dist/client/assets/{ComputerResourceView-DjtpGKRB.js → ComputerResourceView-Bik6GLKp.js} +1 -1
  30. package/dist/client/assets/{ComputerViewer-B7a77fXa.js → ComputerViewer-CksBDqdu.js} +1 -1
  31. package/dist/client/assets/{ConnectionAccessLists-BxLNtKdv.js → ConnectionAccessLists-DRwO1v0V.js} +1 -1
  32. package/dist/client/assets/{ConnectionsPage-DQEOL79u.js → ConnectionsPage-Cgg36gDY.js} +1 -1
  33. package/dist/client/assets/{ConventionPage-BJ1Fkt7H.js → ConventionPage-CNhpF6Z1.js} +1 -1
  34. package/dist/client/assets/{ExtensionPageRoute-DMbNbOMW.js → ExtensionPageRoute-C2zue_Pw.js} +1 -1
  35. package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-BmisG40-.js → FloatingTanStackRouterDevtools-CqogiFob-3v1TfY1P.js} +1 -1
  36. package/dist/client/assets/{ForwardConsentHost-DdEYtIvk.js → ForwardConsentHost-Mbo0D-zk.js} +1 -1
  37. package/dist/client/assets/HandlePage-B4qbFi40.js +1 -0
  38. package/dist/client/assets/{HeartbeatPage-DsVZLbVN.js → HeartbeatPage-BnNbQLCW.js} +1 -1
  39. package/dist/client/assets/{KeyEntry-B9twGZOd.js → KeyEntry-C43vkwpA.js} +1 -1
  40. package/dist/client/assets/{LexicalField-CBm1TZpt.js → LexicalField-iAHcvRmI.js} +1 -1
  41. package/dist/client/assets/{ManagesPage-bAtPePVC.js → ManagesPage-BUIJvLmv.js} +1 -1
  42. package/dist/client/assets/{Marketplace-DRaPW5c2.js → Marketplace-DbdLWz0-.js} +1 -1
  43. package/dist/client/assets/{MarketplaceSourcesView-lYEkmUGJ.js → MarketplaceSourcesView-BZODwhxu.js} +1 -1
  44. package/dist/client/assets/{McpAppFrame-BzZqyRxQ.js → McpAppFrame-D15nxVaI.js} +1 -1
  45. package/dist/client/assets/{McpSigninBody-oVPX3ZDZ.js → McpSigninBody-DmBxqgxN.js} +1 -1
  46. package/dist/client/assets/{Model3dViewer-DrS3qYW1.js → Model3dViewer-RGXeJd6a.js} +1 -1
  47. package/dist/client/assets/NamePage-fhxyWDDY.js +1 -0
  48. package/dist/client/assets/{NewDirectMessageMenu-BkPbuzx8.js → NewDirectMessageMenu-DBAdvv5p.js} +1 -1
  49. package/dist/client/assets/{NotificationsPage-CKU37E34.js → NotificationsPage-NRfyiinS.js} +1 -1
  50. package/dist/client/assets/{OpenMeshSwitch-B7z7XHNR.js → OpenMeshSwitch-CgQ6uefo.js} +1 -1
  51. package/dist/client/assets/{OperatorIdentityForm-BzZoS4KD.js → OperatorIdentityForm-Bls5Vo_u.js} +1 -1
  52. package/dist/client/assets/{PermissionHistory-D_WFGZtw.js → PermissionHistory-DPEPq8D9.js} +1 -1
  53. package/dist/client/assets/{PermissionsPage-15DeeKpE.js → PermissionsPage--k-xutbJ.js} +1 -1
  54. package/dist/client/assets/{PersonalityPopover-CQ-iLQpo.js → PersonalityPopover-DMMptmPS.js} +1 -1
  55. package/dist/client/assets/PhotoPage-CNHcXbz4.js +1 -0
  56. package/dist/client/assets/{PreviewRefusedNotice-DzvwQvMr.js → PreviewRefusedNotice-Ds4IO32o.js} +1 -1
  57. package/dist/client/assets/{ProfileFields-EgcVDViF.js → ProfileFields-DbPJ7fvN.js} +1 -1
  58. package/dist/client/assets/{ProfilePanelContainer-zAOmdAo9.js → ProfilePanelContainer-CzwhrIlw.js} +1 -1
  59. package/dist/client/assets/{ProfileRolePicker-D5ScObov.js → ProfileRolePicker-CZEXvlJm.js} +1 -1
  60. package/dist/client/assets/{PromptSuggestionChips-DlajKFMJ.js → PromptSuggestionChips-BXxC799Q.js} +1 -1
  61. package/dist/client/assets/{ReportsToPopover-BZBQY9rT.js → ReportsToPopover-YOwGLJy5.js} +1 -1
  62. package/dist/client/assets/{RoomSurface-YZW_jtGD.js → RoomSurface-DgH3a_Fv.js} +1 -1
  63. package/dist/client/assets/{RoomsPage-BY2Yzdxs.js → RoomsPage-CoXjZMWL.js} +1 -1
  64. package/dist/client/assets/{RunsOnPopover-CeQJLljM.js → RunsOnPopover-CEkkjrGg.js} +1 -1
  65. package/dist/client/assets/{RuntimeConnectFlow-BgLzK2Pf.js → RuntimeConnectFlow-DXWGgvCW.js} +1 -1
  66. package/dist/client/assets/{RuntimeSetupDialog-B9dgB_DN.js → RuntimeSetupDialog-D6L1QhMF.js} +1 -1
  67. package/dist/client/assets/{SeenDevices-C-4m1c9h.js → SeenDevices-Bh2yh-PW.js} +1 -1
  68. package/dist/client/assets/{SessionsPage-B5PdbDLK.js → SessionsPage-CFvkbT9X.js} +1 -1
  69. package/dist/client/assets/{SettingsDialog-C8TP1x7g.js → SettingsDialog-BOOqWKcj.js} +1 -1
  70. package/dist/client/assets/{SkillsPage-D5GNx64I.js → SkillsPage-ntCEhUIM.js} +1 -1
  71. package/dist/client/assets/{TaskDialogWrapper-DOpxfrLl.js → TaskDialogWrapper-vBWAWwTY.js} +1 -1
  72. package/dist/client/assets/{TasksEmptyState-sW-pmnOm.js → TasksEmptyState-C_3UkAbA.js} +1 -1
  73. package/dist/client/assets/{TasksPage-BGtTF442.js → TasksPage-D0Zi6Mve.js} +1 -1
  74. package/dist/client/assets/{TeamComputerEntry-BCW51xMv.js → TeamComputerEntry-CY9eLVad.js} +1 -1
  75. package/dist/client/assets/{ToolsPage-Craa3-78.js → ToolsPage-0_vx5P-F.js} +1 -1
  76. package/dist/client/assets/{TopologyGraph-BVbPyC0W.js → TopologyGraph-DUZLZZrB.js} +1 -1
  77. package/dist/client/assets/{TourHost-ChgzKB0c.js → TourHost-B69XAKpE.js} +1 -1
  78. package/dist/client/assets/{UnlinkDialog-BtQvTzCP.js → UnlinkDialog-ptZy3IN4.js} +1 -1
  79. package/dist/client/assets/UnreadDivider-Ckey1IWn.js +1 -0
  80. package/dist/client/assets/{WidgetErrorCard-DcsOHVds.js → WidgetErrorCard-BlqaIsPK.js} +7 -7
  81. package/dist/client/assets/{WithheldExtensionsNotice-Cts8hGJP.js → WithheldExtensionsNotice-7Vu1Jctn.js} +1 -1
  82. package/dist/client/assets/WorkView-BekLkR4O.js +51 -0
  83. package/dist/client/assets/{_shell-DOg4Lmhv.js → _shell-Du0F-5fK.js} +1 -1
  84. package/dist/client/assets/{_shell._home-BZpx4Mbk.js → _shell._home-BRIXhYLg.js} +1 -1
  85. package/dist/client/assets/{_shell._home.activity-Dk3nKLHQ.js → _shell._home.activity-5rihXoYF.js} +1 -1
  86. package/dist/client/assets/{_shell._home.index-B9rvWnn_.js → _shell._home.index-BsLNqt4f.js} +1 -1
  87. package/dist/client/assets/{_shell._home.tasks-BCPd5sNc.js → _shell._home.tasks-Cxs5tLWA.js} +1 -1
  88. package/dist/client/assets/{_shell._home.workspaces-BVBkkkT0.js → _shell._home.workspaces-CEHDdfbP.js} +1 -1
  89. package/dist/client/assets/{_shell.channels-myIv11W5.js → _shell.channels-Bx6q9xVH.js} +1 -1
  90. package/dist/client/assets/{_shell.connections-DFZFVHNc.js → _shell.connections-Bm0WmgXH.js} +1 -1
  91. package/dist/client/assets/{_shell.feedback-requests-tPcWZDaV.js → _shell.feedback-requests-DFznTGbN.js} +1 -1
  92. package/dist/client/assets/_shell.marketplace-CsQ60Mlc.js +1 -0
  93. package/dist/client/assets/_shell.marketplace_.sources-DNyShS1x.js +1 -0
  94. package/dist/client/assets/_shell.session-BN42bV3w.js +1 -0
  95. package/dist/client/assets/{_shell.team-IofNRuKL.js → _shell.team-DmA09abY.js} +3 -3
  96. package/dist/client/assets/{_shell.threads-B-nWDy_6.js → _shell.threads-HH4EvufJ.js} +1 -1
  97. package/dist/client/assets/_shell.x._extensionId-3ZlJV1iu.js +1 -0
  98. package/dist/client/assets/_shell.x._extensionId_._-3ZlJV1iu.js +1 -0
  99. package/dist/client/assets/{abnfDiagram-WEYOIA3C-COAdUrvu.js → abnfDiagram-WEYOIA3C-DxgtVd9I.js} +1 -1
  100. package/dist/client/assets/{access-copy-laAy9--H.js → access-copy-Dqct36mi.js} +1 -1
  101. package/dist/client/assets/{arc-2_zvZ-gp.js → arc-C-67Ef0p.js} +1 -1
  102. package/dist/client/assets/{architectureDiagram-ZHVYKT53-D2vJp2ju.js → architectureDiagram-ZHVYKT53-B7TjdT-_.js} +1 -1
  103. package/dist/client/assets/{banner-Dq7DY4At.js → banner-C9qTs6-C.js} +1 -1
  104. package/dist/client/assets/{blockDiagram-RJAE7QA3-CxjfUYKV.js → blockDiagram-RJAE7QA3-DNqxJ3Ww.js} +1 -1
  105. package/dist/client/assets/{c4Diagram-XDPPPE54-DBtTwidp.js → c4Diagram-XDPPPE54-D3jNLV0j.js} +1 -1
  106. package/dist/client/assets/{card-fYp8lOoT.js → card-DUmTNXJJ.js} +1 -1
  107. package/dist/client/assets/channel-B7zgJbnU.js +1 -0
  108. package/dist/client/assets/{chunk-2E7WHVMD-BAzBaRVY.js → chunk-2E7WHVMD-C6OKx0ty.js} +1 -1
  109. package/dist/client/assets/{chunk-2Q5K7J3B-0_0KxG0G.js → chunk-2Q5K7J3B-Dr_6hHrZ.js} +1 -1
  110. package/dist/client/assets/{chunk-4EMNKR2T-DmpZgXUr.js → chunk-4EMNKR2T-CSrZVDEt.js} +1 -1
  111. package/dist/client/assets/{chunk-55XCU76K-DOa5mrA1.js → chunk-55XCU76K-CIazeRXO.js} +1 -1
  112. package/dist/client/assets/{chunk-5VM5RSS4-BqzmE_oJ.js → chunk-5VM5RSS4-C8IJ3zTR.js} +1 -1
  113. package/dist/client/assets/{chunk-JWPE2WC7-C2F-qKzA.js → chunk-JWPE2WC7-D9DGXb79.js} +1 -1
  114. package/dist/client/assets/{chunk-VQ5W62QI-Cj9J_zab.js → chunk-VQ5W62QI-B0LNYdif.js} +1 -1
  115. package/dist/client/assets/{chunk-XXDRQBXY-Cyiza8Ap.js → chunk-XXDRQBXY-C7IAIbvZ.js} +1 -1
  116. package/dist/client/assets/{chunk-ZCHMQSOR-ITupr164.js → chunk-ZCHMQSOR-C79hvjlu.js} +2 -2
  117. package/dist/client/assets/{classDiagram-v2-4MYWR3UA-BH0_3wSx.js → classDiagram-v2-4MYWR3UA-0Di1C2ZB.js} +1 -1
  118. package/dist/client/assets/{command-tbegvEE8.js → command-BVQb6I3_.js} +1 -1
  119. package/dist/client/assets/{cose-bilkent-JH36ORCC-sZqlNAZ4.js → cose-bilkent-JH36ORCC-rZumaV4b.js} +1 -1
  120. package/dist/client/assets/{cpu-DDplcjVv.js → cpu-DeRuDMl4.js} +1 -1
  121. package/dist/client/assets/{cynefin-EF2NZ3EQ-6Kjz5H9v.js → cynefin-EF2NZ3EQ-CI9l9xhM.js} +1 -1
  122. package/dist/client/assets/{cynefinDiagram-WF24UDRP-DK7-moDM.js → cynefinDiagram-WF24UDRP-C8CdorJJ.js} +1 -1
  123. package/dist/client/assets/{dagre-NK4GIZVX-C---Yw3S.js → dagre-NK4GIZVX-AHpsTq1O.js} +1 -1
  124. package/dist/client/assets/{diagram-CBK3MWTC-BZo3ih_3.js → diagram-CBK3MWTC-BpPLL30n.js} +1 -1
  125. package/dist/client/assets/{diagram-I5XIIV2D-DsHN5Ikp.js → diagram-I5XIIV2D-D6loMn3G.js} +1 -1
  126. package/dist/client/assets/{diagram-ODIL2UCW-CVtFfjkm.js → diagram-ODIL2UCW-BaGNd5eN.js} +1 -1
  127. package/dist/client/assets/{diagram-PFBEJUXE-RrxvbTzz.js → diagram-PFBEJUXE-BnDdKu_g.js} +1 -1
  128. package/dist/client/assets/{diagram-RJA3I4VV-T4vRcsqE.js → diagram-RJA3I4VV-UXagB0_c.js} +1 -1
  129. package/dist/client/assets/{diagram-TYUNFSNR-DvgDENOh.js → diagram-TYUNFSNR-C-whBP-S.js} +1 -1
  130. package/dist/client/assets/{ebnfDiagram-V4P3TTPT-CT_Ykhnb.js → ebnfDiagram-V4P3TTPT-BbG481iS.js} +1 -1
  131. package/dist/client/assets/{elk-QONTBCTQ-1cHLrAbL.js → elk-QONTBCTQ-FtssIxOc.js} +1 -1
  132. package/dist/client/assets/{empty-state-BuerUR2L.js → empty-state-CACt-76q.js} +1 -1
  133. package/dist/client/assets/{erDiagram-KYQIGQAA-sKNWkMEB.js → erDiagram-KYQIGQAA-PpFgUf4C.js} +1 -1
  134. package/dist/client/assets/{execution-config-b_HoE2gl.js → execution-config-CGL73sRn.js} +1 -1
  135. package/dist/client/assets/{file-CG3ZGubn.js → file-D80JE_L0.js} +1 -1
  136. package/dist/client/assets/{file-exclamation-point-CVXN_udI.js → file-exclamation-point-CcJ_e4_m.js} +1 -1
  137. package/dist/client/assets/{file-text-iUPjXTFV.js → file-text-Ds9edaTZ.js} +1 -1
  138. package/dist/client/assets/{find-latest-widget-fence-DF1tpWBU.js → find-latest-widget-fence-BtqFMP_f.js} +1 -1
  139. package/dist/client/assets/{flowDiagram-IUGLLWBU-Dpro5XJ_.js → flowDiagram-IUGLLWBU-BIva66g9.js} +1 -1
  140. package/dist/client/assets/{form-CiD71zin.js → form-D93N5lrK.js} +1 -1
  141. package/dist/client/assets/{format-cron-B88ttX8j.js → format-cron-BpGrgPLu.js} +1 -1
  142. package/dist/client/assets/{ganttDiagram-R7GPNTJY-CtR4oMUH.js → ganttDiagram-R7GPNTJY-CZqips_4.js} +1 -1
  143. package/dist/client/assets/{git-branch-DZBdAsc0.js → git-branch-B8JNwQ6q.js} +1 -1
  144. package/dist/client/assets/{gitGraphDiagram-PDYL7XHY--euaveVk.js → gitGraphDiagram-PDYL7XHY-DoIc3lda.js} +1 -1
  145. package/dist/client/assets/{graph-jzPQScij.js → graph-yizM0vwL.js} +1 -1
  146. package/dist/client/assets/{heart-CNrKCfIZ.js → heart-BavUIV45.js} +1 -1
  147. package/dist/client/assets/{highlighted-body-KPVGNVTW-3HmPoqzm.js → highlighted-body-KPVGNVTW-CGr3AgaU.js} +1 -1
  148. package/dist/client/assets/{image-lightbox-CV8y6iVA.js → image-lightbox-vgPEvSCc.js} +1 -1
  149. package/dist/client/assets/{image-off-0A5Y9ekR.js → image-off-C1uTDs9-.js} +1 -1
  150. package/dist/client/assets/{index-qgNv3Cxj.js → index-1QfQImuJ.js} +3 -3
  151. package/dist/client/assets/{index-BU6kskMP.js → index-56EOd-zy.js} +1 -1
  152. package/dist/client/assets/{index-COAKEYxS.js → index-7XeZCCDI.js} +1 -1
  153. package/dist/client/assets/{index-BLHGc7hd.js → index-B36osK_S.js} +1 -1
  154. package/dist/client/assets/{index-B_ScMg0T.js → index-B446r3dL.js} +1 -1
  155. package/dist/client/assets/{index-KUHF1hd1.js → index-BGo1YiUE.js} +1 -1
  156. package/dist/client/assets/{index-DloK7L_D.js → index-BJEt9R_G.js} +1 -1
  157. package/dist/client/assets/{index-DGl_kpd1.js → index-BKWJiERs.js} +1 -1
  158. package/dist/client/assets/{index-ZV77GAWw.js → index-BO3yPJt-.js} +1 -1
  159. package/dist/client/assets/{index-D7HEC8Yo.js → index-BOEPL6hN.js} +1 -1
  160. package/dist/client/assets/{index-DKxKfg7Y.js → index-BOhSPP-6.js} +1 -1
  161. package/dist/client/assets/{index-zQs7Z5os.js → index-BkJlIXqM.js} +1 -1
  162. package/dist/client/assets/{index-ClIWAc6a.js → index-Br6xDNvu.js} +1 -1
  163. package/dist/client/assets/{index-BL3de6b2.js → index-C4t0UTU-.js} +1 -1
  164. package/dist/client/assets/{index-B2dE15Nh.js → index-C8ZpJXTQ.js} +1 -1
  165. package/dist/client/assets/{index-DxYiYBCN.js → index-CJXMgnYp.js} +1 -1
  166. package/dist/client/assets/{index-D0wnu6mZ.js → index-CXBYgGja.js} +1 -1
  167. package/dist/client/assets/{index-Cu4ctkPn.js → index-Cdod8zEY.js} +1 -1
  168. package/dist/client/assets/{index-BBSooI6P.js → index-CeDn1Ak1.js} +1 -1
  169. package/dist/client/assets/{index-BwqobvEU.js → index-CiGYtR9O.js} +1 -1
  170. package/dist/client/assets/{index-DFSOBVsY.js → index-CoKNU2F9.js} +1 -1
  171. package/dist/client/assets/{index-DdLM7r4n.js → index-CoNMlH37.js} +1 -1
  172. package/dist/client/assets/{index-1z7QYB4x.js → index-CrTmY12y.js} +2 -2
  173. package/dist/client/assets/{index-CsGjmUNs.js → index-DE6uOpn4.js} +1 -1
  174. package/dist/client/assets/{index-C2NwvhhG.js → index-DEiSJbvu.js} +1 -1
  175. package/dist/client/assets/{index-BKDTRodW.js → index-DW4KUPHp.js} +1 -1
  176. package/dist/client/assets/{index-DjmZGH7V.js → index-DYEmUa5t.js} +1 -1
  177. package/dist/client/assets/index-Dag1qeZI.js +1 -0
  178. package/dist/client/assets/{index-CeqxJyr2.js → index-Dcd4NqFB.js} +1 -1
  179. package/dist/client/assets/{index-BZkrahcw.js → index-Dm0Tav7v.js} +1 -1
  180. package/dist/client/assets/{index-Bgo2UMWk.js → index-DqkFtcGQ.js} +1 -1
  181. package/dist/client/assets/{index-PQ9ky1pb.js → index-FI_y_dND.js} +1 -1
  182. package/dist/client/assets/{index-JGRdQWAP.js → index-FhWMRBQP.js} +1 -1
  183. package/dist/client/assets/{index-D6lfnwuN.js → index-LwL5BpE4.js} +1 -1
  184. package/dist/client/assets/{index-_8SHxs8S.js → index-OQuvRZTD.js} +241 -241
  185. package/dist/client/assets/{index-BihGQXHU.js → index-QSXJR98z.js} +1 -1
  186. package/dist/client/assets/{index-mG1tkeJL.js → index-SOKlO1zZ.js} +1 -1
  187. package/dist/client/assets/{index-DTmOp_1r.js → index-X282DRZf.js} +1 -1
  188. package/dist/client/assets/{index-DdHstbQU.js → index-YSHcMqHa.js} +1 -1
  189. package/dist/client/assets/{index-GPUOanO_.js → index-ZR5f82z2.js} +1 -1
  190. package/dist/client/assets/index-eVrGefuq.js +1 -0
  191. package/dist/client/assets/{index-BP95cLC1.js → index-n_pnc-CO.js} +1 -1
  192. package/dist/client/assets/{index-DyyjN4h7.js → index-tgbcsB6H.js} +1 -1
  193. package/dist/client/assets/{index.esm-C41qhCJ5.js → index.esm-CAeUe7uQ.js} +1 -1
  194. package/dist/client/assets/{infoDiagram-MVDRKAX5-DrdZIXXy.js → infoDiagram-MVDRKAX5-DweUdYSy.js} +1 -1
  195. package/dist/client/assets/{inline-code-AHNJTNEg.js → inline-code-SYHTKcle.js} +1 -1
  196. package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-DUbSK1_E.js → ishikawaDiagram-HPEHV2GE-DKNQIv7P.js} +1 -1
  197. package/dist/client/assets/{journeyDiagram-BOSHW7O7-BR52zXJU.js → journeyDiagram-BOSHW7O7-DPD7F4VO.js} +1 -1
  198. package/dist/client/assets/{kanban-definition-FNSA4HC5-_Wcjt7SY.js → kanban-definition-FNSA4HC5-B_uPSwxC.js} +1 -1
  199. package/dist/client/assets/{layers-IVPemhwp.js → layers-F4mvrI2l.js} +1 -1
  200. package/dist/client/assets/{lightbulb-DrVZQcOf.js → lightbulb-a6nNsrzy.js} +1 -1
  201. package/dist/client/assets/{link-2-Irbj23wB.js → link-2-yI2Tlm7Q.js} +1 -1
  202. package/dist/client/assets/{list-runtime-types-BtXx3u9w.js → list-runtime-types-CsGil5te.js} +1 -1
  203. package/dist/client/assets/{markdown-content-DBXaMyx0.js → markdown-content-Cjhsscbn.js} +1 -1
  204. package/dist/client/assets/{mention-pill-BjC9bceV.js → mention-pill-BsOeTJ2f.js} +1 -1
  205. package/dist/client/assets/{mermaid.core-BwsoL8Cm.js → mermaid.core-9PwG-9fN.js} +4 -4
  206. package/dist/client/assets/{message-square-off-CIYKFEKw.js → message-square-off-aV4NMCjd.js} +1 -1
  207. package/dist/client/assets/{mindmap-definition-6OY57UG3-1IqhYOl3.js → mindmap-definition-6OY57UG3-BRbWmQkj.js} +1 -1
  208. package/dist/client/assets/{more-details-CEMEkDUz.js → more-details-CRLU2HN4.js} +1 -1
  209. package/dist/client/assets/{owner-notice-BJY5v-87.js → owner-notice-CTJbhUak.js} +1 -1
  210. package/dist/client/assets/{package-CTn_hN2S.js → package-sPggO7Dr.js} +1 -1
  211. package/dist/client/assets/{page-container-Cde6fRTi.js → page-container-CnfDuiDC.js} +1 -1
  212. package/dist/client/assets/{pane-resize-handle-CyT6JG8q.js → pane-resize-handle-63OC5vfI.js} +1 -1
  213. package/dist/client/assets/{paperclip-szlXSQSk.js → paperclip-WhPo3_WD.js} +1 -1
  214. package/dist/client/assets/{path-input-AlewPslD.js → path-input-C2KIXdON.js} +1 -1
  215. package/dist/client/assets/{pegDiagram-ECIUJNBX-Djw-8h2r.js → pegDiagram-ECIUJNBX-Ct9Li_PA.js} +1 -1
  216. package/dist/client/assets/{pieDiagram-GNMPY74T-DsZyw9x9.js → pieDiagram-GNMPY74T-BAB5RA5v.js} +1 -1
  217. package/dist/client/assets/{plug-CgD9bf2Y.js → plug-_q5iqunq.js} +1 -1
  218. package/dist/client/assets/{primer-trigger-ZBFgqPeY.js → primer-trigger-B2tjuHBx.js} +1 -1
  219. package/dist/client/assets/{profile-errors-Lfs66dvr.js → profile-errors-COcBx7w5.js} +1 -1
  220. package/dist/client/assets/{progress-BKspNOdx.js → progress-77FCPL2y.js} +1 -1
  221. package/dist/client/assets/{quadrantDiagram-D57K4MC3-D_Vi6U-2.js → quadrantDiagram-D57K4MC3-BqPJVmMS.js} +1 -1
  222. package/dist/client/assets/{query-error-state-B9bR1eRh.js → query-error-state-5236P3z0.js} +1 -1
  223. package/dist/client/assets/{radio-CmZ30mVT.js → radio-C8xmfoqO.js} +1 -1
  224. package/dist/client/assets/{railroadDiagram-Y72NRBL7-C6PgeQHt.js → railroadDiagram-Y72NRBL7-B8U11nT6.js} +1 -1
  225. package/dist/client/assets/{registry-CSe_ncC2.js → registry-BzXBOE9h.js} +13 -13
  226. package/dist/client/assets/registry-sfhDu9q2.js +1 -0
  227. package/dist/client/assets/{relay-trace-schemas-CdZnmG6_.js → relay-trace-schemas-B80E4EUn.js} +1 -1
  228. package/dist/client/assets/{repeat-DmCgFtjt.js → repeat-CHmB_vD7.js} +1 -1
  229. package/dist/client/assets/{requirementDiagram-EQYSW5RA-CnNYn7qe.js → requirementDiagram-EQYSW5RA-CzJ1gzTh.js} +1 -1
  230. package/dist/client/assets/{room-files-source-BbEFTxX0.js → room-files-source-B0gc97Ri.js} +1 -1
  231. package/dist/client/assets/{rotate-ccw-clock-k0vIMOao.js → rotate-ccw-clock-CCU6SVnv.js} +1 -1
  232. package/dist/client/assets/{rotate-cw-OJ7jzj3C.js → rotate-cw-B8WQa8O-.js} +1 -1
  233. package/dist/client/assets/{sankeyDiagram-SY24JHO5-0KFthF8u.js → sankeyDiagram-SY24JHO5-D4vQwyve.js} +1 -1
  234. package/dist/client/assets/{scroll-area-vYE-OvYe.js → scroll-area-FwZwM74Q.js} +1 -1
  235. package/dist/client/assets/{search-x-mbqB9SFV.js → search-x-Q18Wm-C5.js} +1 -1
  236. package/dist/client/assets/{sequenceDiagram-BLEHNHQU-BD3TzBXD.js → sequenceDiagram-BLEHNHQU-BVnIsPQe.js} +1 -1
  237. package/dist/client/assets/{shield-x-By16ILlp.js → shield-x-ijIbRppV.js} +1 -1
  238. package/dist/client/assets/{signed-in-DNUF_3Fa.js → signed-in-DEOMBWVX.js} +1 -1
  239. package/dist/client/assets/{sizeCapture-INFHLROL-BIJvrYdE.js → sizeCapture-INFHLROL-DGb1rAJL.js} +1 -1
  240. package/dist/client/assets/{soul-file-C81l7z8x.js → soul-file-CXgYs25S.js} +1 -1
  241. package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-CtigYKfx.js → stateDiagram-v2-A6IESKWZ-DeX3IKTm.js} +1 -1
  242. package/dist/client/assets/{swimlanes-B3ENRKFQ-CPMK7lCN.js → swimlanes-B3ENRKFQ-DN5ljYhG.js} +1 -1
  243. package/dist/client/assets/swimlanesDiagram-AYQRV4AK-D8kHFWtL.js +8 -0
  244. package/dist/client/assets/{table-jPIEjPov.js → table-D9ww_3Ij.js} +1 -1
  245. package/dist/client/assets/{timeline-definition-JXYKGLGB-CtihfrW4.js → timeline-definition-JXYKGLGB-DpRthC3r.js} +1 -1
  246. package/dist/client/assets/{trust-posture-olfknSP7.js → trust-posture-Dn2ciEE0.js} +1 -1
  247. package/dist/client/assets/{unplug-Bm7nHhBA.js → unplug-BZ8zSvfB.js} +1 -1
  248. package/dist/client/assets/{unverified-catalog-notice-DogkKIUJ.js → unverified-catalog-notice-CGy05tAO.js} +1 -1
  249. package/dist/client/assets/{use-bindings-C0bBY5jd.js → use-bindings-BLAWQRpe.js} +1 -1
  250. package/dist/client/assets/{use-composer-prefs-V6vxLUUc.js → use-composer-prefs-ICOpilWK.js} +1 -1
  251. package/dist/client/assets/{use-connector-management-DLOJoz45.js → use-connector-management-DEMGZy9N.js} +1 -1
  252. package/dist/client/assets/{use-deep-link-scroll-ODQAWdEP.js → use-deep-link-scroll-DxGYrks3.js} +1 -1
  253. package/dist/client/assets/{use-delete-binding-BL0OOgo0.js → use-delete-binding-Bnv3J5Fu.js} +1 -1
  254. package/dist/client/assets/{use-dev-links-DmzL_awM.js → use-dev-links-BOcktLiE.js} +1 -1
  255. package/dist/client/assets/{use-direct-message-panel-7DpsxnS_.js → use-direct-message-panel-D38tSozW.js} +1 -1
  256. package/dist/client/assets/{use-external-adapter-catalog-D7yXhN3U.js → use-external-adapter-catalog-9qiNBqpc.js} +1 -1
  257. package/dist/client/assets/{use-full-activity-feed-CnShEfSU.js → use-full-activity-feed-CtQquOBW.js} +1 -1
  258. package/dist/client/assets/use-is-below-desktop-CAGEAsCC.js +1 -0
  259. package/dist/client/assets/{use-local-browser-Ba-XDxE0.js → use-local-browser-B1huJhdg.js} +1 -1
  260. package/dist/client/assets/{use-mesh-topology-DhUhzu7Y.js → use-mesh-topology-BTYAy6zc.js} +1 -1
  261. package/dist/client/assets/{use-mounted-ref-Vm8D40hS.js → use-mounted-ref-CaPc6Prv.js} +1 -1
  262. package/dist/client/assets/{use-notification-prefs-Cjb26GhZ.js → use-notification-prefs-u76DPoP0.js} +1 -1
  263. package/dist/client/assets/use-pending-read-D0y6i7G9.js +1 -0
  264. package/dist/client/assets/{use-personality-commit-D1SSZI1q.js → use-personality-commit-C3h8upDo.js} +1 -1
  265. package/dist/client/assets/{use-promo-activation-D1DYLKS8.js → use-promo-activation-5HG08FlB.js} +1 -1
  266. package/dist/client/assets/{use-promo-dismissals-ByGIekeo.js → use-promo-dismissals-CO7-qhEl.js} +1 -1
  267. package/dist/client/assets/{use-pulse-freshness-CDqh0_k8.js → use-pulse-freshness-D07Mv-Sa.js} +1 -1
  268. package/dist/client/assets/{use-room-follow-claim-ysyr_uyD.js → use-room-follow-claim-DRQBuAIe.js} +1 -1
  269. package/dist/client/assets/{use-room-sessions-_zhdKcKj.js → use-room-sessions-Bzk7rM40.js} +1 -1
  270. package/dist/client/assets/{use-roving-tab-list-CoJ0aHCJ.js → use-roving-tab-list-CcznVldj.js} +1 -1
  271. package/dist/client/assets/use-session-canvas-CpgE7tFb.js +27 -0
  272. package/dist/client/assets/{use-status-budget-yYQ7GR9y.js → use-status-budget-Xn2sIeM1.js} +2 -2
  273. package/dist/client/assets/{use-transform-B5MsPCLG.js → use-transform-ByJGn3hq.js} +1 -1
  274. package/dist/client/assets/{use-unclaimed-chats-CjOWILFh.js → use-unclaimed-chats-C-z5fstJ.js} +1 -1
  275. package/dist/client/assets/use-update-config-L5NCTj3t.js +1 -0
  276. package/dist/client/assets/{useMutationState-4dFTMb_f.js → useMutationState-BF1EFtIZ.js} +1 -1
  277. package/dist/client/assets/{usecaseDiagram-WPOLBNNX-DD4D-089.js → usecaseDiagram-WPOLBNNX-efVKbRIX.js} +1 -1
  278. package/dist/client/assets/{vennDiagram-Q3Y3IDCW-DjVDYX3w.js → vennDiagram-Q3Y3IDCW-Bravmwce.js} +1 -1
  279. package/dist/client/assets/{wardleyDiagram-IVAIDKWA-bupKx7P8.js → wardleyDiagram-IVAIDKWA-fR77zByv.js} +1 -1
  280. package/dist/client/assets/{xychartDiagram-4URNHDU4-DoCyS7MC.js → xychartDiagram-4URNHDU4-BphORSLh.js} +1 -1
  281. package/dist/client/index.html +1 -1
  282. package/dist/server/index.js +18120 -16039
  283. package/dist/server/index.js.map +2 -2
  284. package/package.json +7 -6
  285. package/dist/client/assets/ChannelComposer-Bfi3hAgy.js +0 -44
  286. package/dist/client/assets/HandlePage-rhsJ5LBy.js +0 -1
  287. package/dist/client/assets/NamePage-BvRDf9r1.js +0 -1
  288. package/dist/client/assets/PhotoPage-CDCmTcmR.js +0 -1
  289. package/dist/client/assets/UnreadDivider-qMUA2rFP.js +0 -1
  290. package/dist/client/assets/WorkView-ynqZVa-o.js +0 -51
  291. package/dist/client/assets/_shell.marketplace-DIC-vQZq.js +0 -1
  292. package/dist/client/assets/_shell.marketplace_.sources-Dk7fKhJ6.js +0 -1
  293. package/dist/client/assets/_shell.session-BAq7SnHK.js +0 -1
  294. package/dist/client/assets/_shell.x._extensionId-B9CWzm8d.js +0 -1
  295. package/dist/client/assets/_shell.x._extensionId_._-B9CWzm8d.js +0 -1
  296. package/dist/client/assets/channel-ByM_gaT3.js +0 -1
  297. package/dist/client/assets/index-BUTqV5Hw.js +0 -1
  298. package/dist/client/assets/index-BuLpfIsj.js +0 -1
  299. package/dist/client/assets/registry-D10b3VBA.js +0 -1
  300. package/dist/client/assets/swimlanesDiagram-AYQRV4AK-C24DKoiY.js +0 -8
  301. package/dist/client/assets/use-is-below-desktop-C1nTBNsP.js +0 -1
  302. package/dist/client/assets/use-pending-read-r81zBhY9.js +0 -1
  303. package/dist/client/assets/use-session-canvas-IKy8PO1l.js +0 -27
  304. package/dist/client/assets/use-update-config-B49bVEOw.js +0 -1
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/dist/server/index.js.map
3
- size: 65771153 bytes
4
- sha256: 3ca87ad960d5ef1d39d877ae9f65bfdeb19ed3e2a40c6d79a78a27dff6383875
3
+ size: 66016655 bytes
4
+ sha256: f71d8d3ac461d318d2d2c50e8e663826b0a9c247e962d6ec352be1b1317edaee
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dorkos",
3
- "version": "0.127.1",
3
+ "version": "0.128.0",
4
4
  "description": "You, multiplied. Build and run your business with an agent team. Your agents join your team chat, take on real work, and build the tools your company runs on.",
5
5
  "license": "MIT",
6
6
  "author": "Dorian Collier",
@@ -43,7 +43,8 @@
43
43
  "dist/",
44
44
  "core-extensions/",
45
45
  "LICENSE",
46
- "README.md"
46
+ "README.md",
47
+ "THIRD-PARTY-NOTICES.md"
47
48
  ],
48
49
  "engines": {
49
50
  "node": ">=22.22.3"
@@ -82,15 +83,15 @@
82
83
  "tsx": "^4.23.15",
83
84
  "typescript": "^5.9.3",
84
85
  "vitest": "^4.1.11",
85
- "@dorkos/browser": "0.0.0",
86
- "@dorkos/marketplace": "0.0.0",
87
- "@dorkos/client": "0.0.0",
88
86
  "@dorkos/db": "0.0.0",
87
+ "@dorkos/browser": "0.0.0",
89
88
  "@dorkos/eslint-config": "0.0.0",
89
+ "@dorkos/marketplace": "0.0.0",
90
90
  "@dorkos/harness": "0.0.0",
91
91
  "@dorkos/server": "0.0.0",
92
+ "@dorkos/typescript-config": "0.0.0",
92
93
  "@dorkos/shared": "0.0.0",
93
- "@dorkos/typescript-config": "0.0.0"
94
+ "@dorkos/client": "0.0.0"
94
95
  },
95
96
  "scripts": {
96
97
  "build": "tsx scripts/build.ts",
@@ -1,44 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BLHGc7hd.js","assets/index-_8SHxs8S.js","assets/index-Dry_agqN.css","assets/room-files-source-BbEFTxX0.js","assets/markdown-content-DBXaMyx0.js","assets/file-exclamation-point-CVXN_udI.js","assets/query-keys-DeYqUDia.js","assets/composer-insert-BpyATrmR.js","assets/index-BP95cLC1.js","assets/file-drag-GDx2qhdk.js","assets/rotate-cw-OJ7jzj3C.js","assets/link-2-Irbj23wB.js","assets/file-CG3ZGubn.js","assets/git-branch-DZBdAsc0.js","assets/more-details-CEMEkDUz.js"])))=>i.map(i=>d[i]);
2
- import{O as F,r as c,j as l,B as ue,h4 as vn,n2 as kn,g as wn,k4 as In,G as te,a1 as fe,a3 as Pe,a4 as Fe,aN as H,ch as Le,ci as Nn,cX as Rn,n3 as Cn,lB as An,n4 as Mn,h as Sn,av as jn,co as Be,gw as se,q as Z,dD as Ue,s as pe,l$ as _n,n5 as On,mF as En,n6 as Tn,eR as $n,g8 as Dn,Y as Pn,e2 as Fn,n0 as Ln,n7 as Bn,n8 as Un,a0 as Hn,bv as Kn,n9 as qn,na as Wn,ju as zn,it as Vn,gB as Gn,kV as Ie,nb as He,bU as Yn,kU as X,kY as Ke,nc as Jn,cg as ge,ag as Xn,bY as he,im as qe,nd as Qn,cs as We,ne as Zn,fe as et,kl as ze,nf as Ve,aX as nt,gy as Ge,kX as tt,ng as Ye,nh as st,ni as ot,nj as at,nk as Ne,eT as rt,nl as it,nm as ct,nn as lt,no as dt,np as ut,nq as mt,l as ft,hh as pt,ap as Je,kM as gt,ah as ht,nr as xt,ns as yt,nt as bt,b6 as vt,c4 as kt,nu as wt,nv as It,nw as Nt,nx as Rt,bw as Re,f2 as Ct}from"./index-_8SHxs8S.js";import{g as Ce,m as Ae,h as xe,f as Xe,M as At,a as Mt,E as St,i as jt,j as _t,c as P,k as Ot,b as Et,l as Tt,u as $t,C as Dt}from"./registry-CSe_ncC2.js";import"./WidgetErrorCard-DcsOHVds.js";import{R as Pt,A as Qe}from"./repeat-DmCgFtjt.js";import{u as Ft}from"./use-room-sessions-_zhdKcKj.js";import{M as Lt}from"./markdown-content-DBXaMyx0.js";import{W as Bt,a as Ut}from"./find-latest-widget-fence-DF1tpWBU.js";import{f as Ht}from"./format-duration-BCr6uzby.js";import{H as Kt,a as qt,b as Wt}from"./RuntimeSetupDialog-B9dgB_DN.js";import{M as Me}from"./mention-pill-BjC9bceV.js";import{R as zt}from"./rotate-ccw-clock-k0vIMOao.js";import{U as Vt}from"./unplug-Bm7nHhBA.js";import{M as Se}from"./message-square-off-CIYKFEKw.js";import{i as Gt}from"./registry-D10b3VBA.js";/**
3
- * @license lucide-react v1.48.0 - ISC
4
- *
5
- * This source code is licensed under the ISC license.
6
- * See the LICENSE file in the root directory of this source tree.
7
- */const Ze={name:"hand",size:24,node:[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]};Ze.node;const Yt=F(Ze);/**
8
- * @license lucide-react v1.48.0 - ISC
9
- *
10
- * This source code is licensed under the ISC license.
11
- * See the LICENSE file in the root directory of this source tree.
12
- */const en={name:"link-2-off",size:24,node:[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]};en.node;const Jt=F(en);/**
13
- * @license lucide-react v1.48.0 - ISC
14
- *
15
- * This source code is licensed under the ISC license.
16
- * See the LICENSE file in the root directory of this source tree.
17
- */const nn={name:"megaphone",size:24,node:[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]]};nn.node;const Xt=F(nn);/**
18
- * @license lucide-react v1.48.0 - ISC
19
- *
20
- * This source code is licensed under the ISC license.
21
- * See the LICENSE file in the root directory of this source tree.
22
- */const tn={name:"power-off",size:24,node:[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15",key:"dxknvb"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68",key:"1x7qb5"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};tn.node;const Qt=F(tn);/**
23
- * @license lucide-react v1.48.0 - ISC
24
- *
25
- * This source code is licensed under the ISC license.
26
- * See the LICENSE file in the root directory of this source tree.
27
- */const sn={name:"reply",size:24,node:[["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}],["path",{d:"m9 17-5-5 5-5",key:"nvlc11"}]]};sn.node;const Zt=F(sn);/**
28
- * @license lucide-react v1.48.0 - ISC
29
- *
30
- * This source code is licensed under the ISC license.
31
- * See the LICENSE file in the root directory of this source tree.
32
- */const on={name:"timer",size:24,node:[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]};on.node;const es=F(on);/**
33
- * @license lucide-react v1.48.0 - ISC
34
- *
35
- * This source code is licensed under the ISC license.
36
- * See the LICENSE file in the root directory of this source tree.
37
- */const an={name:"user-minus",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]};an.node;const je=F(an);/**
38
- * @license lucide-react v1.48.0 - ISC
39
- *
40
- * This source code is licensed under the ISC license.
41
- * See the LICENSE file in the root directory of this source tree.
42
- */const rn={name:"user-x",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]]};rn.node;const ns=F(rn),ts='[data-slot="identity-hover-card-actions"] button:not(:disabled)';function ss(e){const{open:t,setOpen:s,triggerRef:n,enabled:o}=e,a=c.useRef(null),r=c.useRef(!1);c.useEffect(()=>{if(!t||!r.current)return;r.current=!1;let u=0,x=0;const v=()=>{var f;const m=(f=a.current)==null?void 0:f.querySelector(ts);if(m)return m.focus();++u<10&&(x=requestAnimationFrame(v))};return v(),()=>cancelAnimationFrame(x)},[t]);const i=c.useCallback(u=>{var x;!u&&((x=a.current)!=null&&x.contains(document.activeElement))||s(u)},[s]),d=c.useCallback(u=>{!o||u.key!=="Enter"&&u.key!==" "||(u.preventDefault(),r.current=!0,s(!0))},[o,s]),p=c.useMemo(()=>({onEscapeKeyDown:()=>{var u;return(u=n.current)==null?void 0:u.focus()},onBlur:u=>{var v,m,f;const x=u.relatedTarget;x&&((v=a.current)!=null&&v.contains(x)||(m=n.current)!=null&&m.contains(x))||(f=a.current)!=null&&f.contains(document.activeElement)||s(!1)}}),[s,n]);return{contentRef:a,handleOpenChange:i,onTriggerKeyDown:d,contentHandlers:p}}function ce(e){const t=e.key==="ArrowRight"||e.key==="ArrowDown",s=e.key==="ArrowLeft"||e.key==="ArrowUp",n=e.key==="Tab";if(!t&&!s&&!n)return;const o=e.currentTarget.closest('[data-slot="identity-hover-card-actions"]');if(!o)return;const a=Array.from(o.querySelectorAll("button:not(:disabled)")),r=a.indexOf(document.activeElement);if(r===-1||a.length===0)return;e.preventDefault();const i=s||n&&e.shiftKey?-1:1;a[(r+i+a.length)%a.length].focus()}function os({kind:e,about:t}){const n=[e==="agent"?"Agent":e==="human"?"Person":null,t.role].filter(Boolean).join(" · ");return!n&&!t.status?null:l.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5 px-3 pb-3","data-slot":"identity-hover-card-about",children:[n&&l.jsx("p",{className:"text-muted-foreground truncate text-xs",title:n,children:n}),t.status&&l.jsx("p",{className:"text-foreground/80 truncate text-xs","data-slot":"identity-hover-card-status",children:t.status})]})}function as({actions:e,onAct:t}){const s=n=>()=>{t(),n()};return l.jsxs("div",{className:"border-border mt-auto flex flex-col gap-2 border-t p-3","data-slot":"identity-hover-card-actions",role:"group","aria-label":"Actions",children:[l.jsxs("div",{className:"flex gap-2",children:[e.onMessage&&l.jsx(ue,{size:"xs",className:"flex-1",onClick:s(e.onMessage),onKeyDown:ce,children:"Message"}),e.onViewProfile&&l.jsx(ue,{size:"xs",variant:"outline",className:"flex-1",onClick:s(e.onViewProfile),onKeyDown:ce,children:"Profile"})]}),e.session&&l.jsxs("button",{type:"button","data-slot":"identity-hover-card-session",onClick:s(e.session.onOpen),onKeyDown:ce,className:"text-muted-foreground hover:text-foreground focus-visible:ring-ring flex min-w-0 items-center gap-1.5 rounded-sm text-left text-xs transition-colors focus-visible:ring-2 focus-visible:outline-none",children:[l.jsx(vn,{className:"size-3.5 shrink-0","aria-hidden":!0}),l.jsx("span",{className:"truncate",children:e.session.label})]})]})}const rs=300;function G({className:e,children:t}){return l.jsx("span",{className:te("bg-muted text-muted-foreground text-2xs inline-flex max-w-full items-center gap-1 truncate rounded-full px-2 py-0.5",e),children:t})}function ye({identity:e,children:t,onViewProfile:s,about:n,actions:o,onOpenChange:a,openOnClick:r=!1,className:i}){const{kind:d,displayName:p,handle:u,color:x,emoji:v,imageUrl:m,origin:f,agent:g}=e,w=x??"hsl(var(--muted-foreground))",h=typeof f=="object"&&f!==null,y=d==="agent"&&(g==null?void 0:g.working)!=null?g.working:null,[I,S]=c.useState(!1),M=c.useCallback(k=>{S(k),a==null||a(k)},[a]),C=c.useRef(!1),N=c.useRef(null),A=kn({onLongPress:()=>{C.current&&M(!0)}}),{contentRef:_,handleOpenChange:j,onTriggerKeyDown:b,contentHandlers:O}=ss({open:I,setOpen:M,triggerRef:N,enabled:r&&o!==void 0});return l.jsxs(Kt,{open:I,onOpenChange:j,openDelay:rs,children:[l.jsx(qt,{asChild:!0,ref:N,"data-gesture-priority":"",...A,onPointerDown:k=>{C.current=k.pointerType==="touch"||k.pointerType==="pen",A.onPointerDown(k)},...r?{onClick:()=>M(!0),onKeyDown:b}:{},children:t}),l.jsxs(Wt,{ref:_,...O,...o?{role:"dialog","aria-label":p}:{},"data-slot":"identity-hover-card",align:"start",className:te("flex w-64 flex-col gap-0 overflow-hidden p-0",i),children:[l.jsxs("div",{className:"flex items-center gap-3 p-3",children:[l.jsx(wn,{"aria-hidden":!0,color:w,emoji:v,imageUrl:m,fallback:In(p),kind:d,origin:f,status:y?"working":"idle",size:"md"}),l.jsxs("div",{className:"min-w-0",children:[l.jsx("p",{className:"text-foreground truncate text-sm font-semibold",children:p}),u&&l.jsxs("p",{className:"text-muted-foreground truncate text-xs font-medium",children:["@",u]})]})]}),n&&l.jsx(os,{kind:d,about:n}),l.jsxs("div",{className:"flex flex-wrap gap-1.5 px-3 pb-3 empty:hidden",children:[d==="agent"&&((g==null?void 0:g.runtime)||(g==null?void 0:g.model))&&l.jsx(G,{children:[g.runtime,g.model].filter(Boolean).join(" · ")}),y&&l.jsxs(G,{className:"bg-status-success-bg text-status-success-fg",children:["Working · ",Ht(y.forMs)]}),d==="human"&&l.jsx(G,{children:h?f.platform:"On this machine"}),d==="agent"&&(g==null?void 0:g.managedBy)&&l.jsxs(G,{children:["Managed by"," ",g.managedBy.handle?`@${g.managedBy.handle}`:g.managedBy.displayName]})]}),o?l.jsx(as,{actions:o,onAct:()=>{var k;(k=N.current)==null||k.focus(),M(!1)}}):s?l.jsx("button",{type:"button","data-slot":"identity-hover-card-profile",onClick:()=>{var k;(k=N.current)==null||k.focus(),s()},className:"border-border hover:bg-accent focus-visible:ring-ring text-brand-text mt-auto flex w-full items-center border-t px-3 py-2 text-left text-xs font-medium transition-colors focus-visible:ring-2 focus-visible:outline-none",children:"View profile"}):l.jsxs("div",{className:"border-border mt-auto flex items-center justify-between border-t px-3 py-2",children:[l.jsx("span",{className:"text-muted-foreground text-xs font-medium",children:"View profile"}),l.jsx("span",{className:"text-muted-foreground text-3xs tracking-wide uppercase",children:"soon"})]})]})]})}function is(){const e=fe(),t=Pe();return Fe({onMutate:({roomId:s,entryId:n,emoji:o,viewerAuthorId:a})=>{var u;const r=t.getQueryData(H.entries(s)),i=(u=r==null?void 0:r.find(x=>x.id===n))==null?void 0:u.reactions,{reactions:d,on:p}=Ce(i,o,a);return t.setQueryData(H.entries(s),x=>Ae(x,n,d)),{on:p}},mutationFn:({roomId:s,entryId:n,emoji:o,viewerAuthorId:a})=>{var d,p;const r=t.getQueryData(H.entries(s)),i=((p=(d=r==null?void 0:r.find(u=>u.id===n))==null?void 0:d.reactions)==null?void 0:p.some(u=>u.emoji===o&&u.authorIds.includes(a)))??!1;return e.toggleReaction(s,n,{emoji:o,on:i})},onError:(s,{roomId:n,entryId:o,emoji:a,viewerAuthorId:r},i)=>{i!==void 0&&t.setQueryData(H.entries(n),d=>{var x;const p=(x=d==null?void 0:d.find(v=>v.id===o))==null?void 0:x.reactions,{reactions:u}=Ce(p,a,r,!i.on);return Ae(d,o,u)})},onSuccess:({frequents:s},{roomId:n})=>{t.setQueryData(H.detail(n),o=>o&&{...o,reactionFrequents:s})},meta:{errorLabel:"Couldn’t add your reaction",errorToastId:"room-reaction"}})}function q(e){return e.threadRootEntryId??e.parentEntryId}function cs(e){return q(e)??e.id}function ls(e,t){return Math.max(t??0,e)}function ea(e,t,s){let n=e[0],o=0;for(const a of e)a.seq>n.seq&&(n=a),t!==null&&a.seq>t&&(o+=1);return{count:ls(e.length,s),lastAt:n.createdAt,unread:o}}function ds(e){var M,C;const{agentPath:t,displayName:s,onViewProfile:n,engaged:o}=e,a=Le(),r=Nn(),i=a&&o&&t!==void 0,d=Rn(i?t:null),p=Cn(d.member),u=An(),x=Mn(),v=Sn(),m=jn(),{data:f}=Be({enabled:i&&r}),g=m.status==="ready"?m.roomId:null,w=f==null?void 0:f.find(N=>N.id===g),h=w?se(w):null,y=(C=(M=d.member)==null?void 0:M.agent)==null?void 0:C.effectiveRuntimeId,I=c.useCallback(()=>{t!==void 0&&(Z.getState().recordOpened("agent",t),u({agentPath:t},y?{runtime:y}:{}))},[t,u,y]),S=c.useCallback(async()=>{if(t===void 0||!v)return;const N=await x(t);if(N===null){Ue(`${s} has no session in ${h??"this room"} yet`);return}v(pe({session:N}))},[t,v,x,s,h]);return c.useMemo(()=>!a||t===void 0?null:{about:{role:d.role,status:p},actions:{onMessage:I,...n?{onViewProfile:n}:{},...r&&h?{session:{label:`Session in ${h}`,onOpen:()=>void S()}}:{}}},[a,t,d.role,p,I,n,r,h,S])}function us({identity:e,agentPath:t,onViewProfile:s,openOnClick:n=!1,children:o}){const[a,r]=c.useState(!1),i=ds({agentPath:t,displayName:e.displayName,onViewProfile:s,engaged:a}),d=c.useCallback(p=>{p&&r(!0)},[]);return l.jsx(ye,{identity:e,onViewProfile:s,onOpenChange:d,openOnClick:n&&i!==null,...i?{about:i.about,actions:i.actions}:{},children:o})}function ms(e){return l.jsx(Ut,{code:e.code,isIncomplete:e.isIncomplete})}const fs=[{language:Bt,component:ms}],ps={turn_failed:{Icon:Hn,tone:"text-status-warning"},agent_busy:{Icon:Un},agent_gone:{Icon:ns,tone:"text-status-warning"},agent_left:{Icon:je,tone:"text-status-warning"},room_archived:{Icon:Bn},agent_reseated:{Icon:Ln},handle_changed:{Icon:Qe},files_set_up:{Icon:Fn},handoff_shared:{Icon:Pn},handoff_declined:{Icon:Se},runtime_gone:{Icon:Qt,tone:"text-status-warning"},agent_paused:{Icon:Dn},agent_declined:{Icon:Se},agent_unavailable:{Icon:$n},awaiting_approval:{Icon:Yt,tone:"text-status-warning"},halted:{Icon:Tn},budget_reached:{Icon:En},cascade_stopped:{Icon:On},addressing_changed:{Icon:Xt},bridge_blocked:{Icon:Vt,tone:"text-status-warning"},bridge_undelivered:{Icon:_n,tone:"text-status-warning"},bridge_rate_limited:{Icon:es},bridge_second_agent_refused:{Icon:je},bridge_disconnected:{Icon:Jt},bridge_agent_swapped:{Icon:Pt},bridge_history_note:{Icon:zt}},gs={Icon:Kn},le=80;function hs(e){const t=e.trim();if(t.length<=le)return t;const s=t.slice(0,le),n=s.lastIndexOf(" ");return`${(n>le/2?s.slice(0,n):s).trimEnd()}…`}function xs(e,t,s){const n=ys(e,s),o=a=>l.jsx("a",{href:t.href,onClick:t.onOpen,"data-testid":"room-notice-session-link",className:"focus-ring hover:text-foreground rounded py-2 font-medium underline underline-offset-2",children:a});return n===null?l.jsxs(l.Fragment,{children:[e," ",o("Open chat")]}):l.jsxs(l.Fragment,{children:[e.slice(0,n.index),o(n.words),e.slice(n.index+n.words.length)]})}function ys(e,t){if(t!==void 0){const n=qn(t),o=e.lastIndexOf(n);if(o!==-1)return{index:o,words:n}}const s=Wn.exec(e);return s===null?null:{index:s.index,words:s[0]}}function bs({entry:e,feedPosition:t,rowId:s,sessionLink:n,subjectName:o}){const{Icon:a,tone:r}=(e.body.notice&&ps[e.body.notice])??gs;return l.jsxs("p",{id:s,"data-slot":"notice-row","data-testid":"room-notice","data-notice":e.body.notice??"unknown",...t&&{role:"article","aria-label":hs(e.body.text)},...xe(t),className:te("focus-visible:ring-ring flex items-start gap-2 px-[var(--msg-padding-x)] py-2 text-xs outline-none focus-visible:ring-2",r??"text-muted-foreground"),children:[l.jsx(a,{"aria-hidden":!0,className:"mt-px size-3.5 shrink-0"}),l.jsx("span",{children:n?xs(e.body.text,n,o):e.body.text})]})}const vs=Gt.moment;function ks({entry:e,moment:t,subject:s,subjectIdentity:n,feedPosition:o,rowId:a}){const r=Xe(e.createdAt);return l.jsx("div",{id:a,"data-slot":"moment-row","data-testid":"room-moment","data-moment":t.kind,role:"article","aria-label":`Moment: ${e.body.text}`,...xe(o),className:"focus-visible:ring-ring px-[var(--msg-padding-x)] py-1 outline-none focus-visible:ring-2",children:l.jsxs("div",{className:"border-border/60 bg-muted/40 flex items-center gap-2.5 rounded-lg border px-3 py-2",children:[l.jsx(ye,{identity:{kind:s.kind,displayName:s.displayName,handle:n==null?void 0:n.handle,color:s.color,emoji:s.emoji,imageUrl:s.imageUrl,origin:n==null?void 0:n.origin,agent:n==null?void 0:n.agent},children:l.jsxs("span",{"data-testid":"room-moment-identity",className:"flex shrink-0 items-center",children:[l.jsx(At,{author:s}),l.jsx("span",{className:"sr-only",children:s.displayName})]})}),l.jsx(vs,{"data-testid":"room-moment-mark","aria-hidden":!0,className:"text-muted-foreground size-3.5 shrink-0"}),l.jsx("p",{className:"min-w-0 flex-1 text-sm",children:e.body.text}),r.length>0&&l.jsx("time",{dateTime:e.createdAt,title:Mt(e.createdAt),className:"text-msg-timestamp shrink-0 text-xs",children:r})]})})}function ws(e,t){const s=X.getState(),n=s.drafts[e]??"",o=n===""||n.endsWith(" ")||n.endsWith(`
43
- `)?"":" ";s.set(e,`${n}${o}@${t} `)}function Is({roomId:e,entry:t,author:s,viewerAuthorId:n,onViewProfile:o}){const a=cs(t),r=t.body.text,i=(s==null?void 0:s.id)===n?void 0:(s==null?void 0:s.handle)??void 0,d=s==null?void 0:s.displayName,{copy:p}=zn({toastOnSettle:!0});return c.useMemo(()=>{const u={reply:{id:"reply",label:"Reply in thread",icon:Zt,run:()=>{Gn.getState().openThread(e,a,!0),Ie.getState().requestFocus(He(e,a))}},copy:{id:"copy",label:"Copy text",icon:Vn,run:()=>void p(r)}};return o!==void 0&&(u.profile={id:"profile",label:"View profile",icon:Yn,run:o}),i!==void 0&&(u.mention={id:"mention",label:d===void 0?"Mention author":`Mention ${d}`,icon:Qe,run:()=>{ws(e,i),Ie.getState().requestFocus(e)}}),St.map(x=>u[x]).filter(x=>x!==void 0)},[e,a,r,i,d,o,p])}function Ns(e){if(e.kind==="notice")return{kind:"notice"};const t=e.body.moment;return t?{kind:"moment",moment:t}:{kind:"message"}}function na(e,t=[]){return new Map([...t.map(s=>[s.author.id,{...s.author,origin:s.origin}]),...e.map(s=>[s.author.id,{...s.author,origin:s.origin}])])}function ta(e,t){const s=e.body.subjectAuthorId;return s===void 0||t.has(e.authorId)?e.authorId:s}function Rs(e,t,s){const n=t.get(e),o=Ke({record:{kind:(n==null?void 0:n.kind)??"system",id:e,displayName:(n==null?void 0:n.displayName)??"Unknown",emoji:n==null?void 0:n.emoji,color:n==null?void 0:n.color,imageUrl:n==null?void 0:n.imageUrl},override:(n==null?void 0:n.agentRef)===void 0?null:s==null?void 0:s.get(n.agentRef)});return{kind:o.kind,id:e,displayName:(n==null?void 0:n.displayName)??"Unknown",emoji:o.emoji,imageUrl:o.imageUrl,color:o.color,isExternal:typeof(n==null?void 0:n.origin)=="object"&&(n==null?void 0:n.origin)!==null,...(n==null?void 0:n.retired)===!0?{retired:!0}:{}}}function sa(e){const t=new Set;for(const a of e)q(a)===null&&t.add(a.id);const s=[],n=new Map,o=new Set;for(const a of e){const r=q(a);if(r===null){s.push(a);continue}if(!t.has(r)){s.push(a),o.add(a.id);continue}const i=n.get(r);i?i.push(a):n.set(r,[a])}return{topLevel:s,repliesByRoot:n,orphaned:o}}function Cs(e){return`thread-${e}`}function As(e){return`thread-row-${e}`}function oa(e){return`thread-panel-entry-${e}`}function Ms(e){return`room-entry-${e}`}function Ss(e,t){const s=e.find(i=>i.id===t);if(s===void 0)return null;const n=q(s)??null,o={rowId:t,domId:Ms(t)};if(n===null)return o;const a=e.find(i=>i.id===n);return a!==void 0&&(q(a)??null)===null?{rowId:Cs(n),domId:As(n)}:o}function aa(e,t){if(t===null)return null;const s=e.find(n=>n.seq===t);return s===void 0?null:Ss(e,s.id)}const _e=48;function ra(e,t,s){const n=e.body.answersEntryId;if(n===void 0||n===e.id||t!==void 0&&t.id===n)return null;const o=s(n);if(o===void 0)return null;const a=o.body.text.replace(/\s+/gu," ").trim();return a.length===0?null:{entryId:n,excerpt:a.length>_e?`${a.slice(0,_e).trimEnd()}…`:a}}function js(e,t){const s=new Map;for(const n of e){const o=t[n.projectPath];if(!o)continue;const a=Jn({runtime:o.runtime,model:o.model});s.set(ge(n.projectPath),{memberId:n.id,visual:Xn(o),runtime:a.label,...a.modelLabel!==null&&{model:a.modelLabel}})}return s}function _s(e){const t=new Map;for(const[s,n]of e)t.set(s,n.visual);return t}const Os={info:new Map,faces:new Map},be=c.createContext(Os);function ia({known:e,children:t}){return l.jsx(be.Provider,{value:e,children:t})}function ca(){const e=he(),t=c.useMemo(()=>{var r;return((r=e.data)==null?void 0:r.agents)??[]},[e.data]),s=c.useMemo(()=>t.map(r=>r.projectPath),[t]),n=qe(s),o=c.useMemo(()=>js(t,n.data??{}),[t,n.data]),a=c.useMemo(()=>_s(o),[o]);return c.useMemo(()=>({info:o,faces:a}),[o,a])}function ee(e){const t=c.useContext(be);return e===void 0?void 0:t.info.get(e)}function Es(){return c.useContext(be).faces}function Ts({showAuthorHeader:e,headerId:t,displayName:s,time:n,summary:o,contentId:a,summaryId:r,feedPosition:i}){return{...e?{"aria-labelledby":t}:{"aria-label":n.length>0?`${s}, ${n}`:s},"aria-describedby":o===null?a:r,...xe(i)}}const Q=120,$s="code block";function Ds(e){if(e.length<=Q&&!e.includes("```"))return null;const t=Ps(e);return t.length===0?null:t}function Ps(e){const t=e.replace(/```[\s\S]*?(?:```|$)/g,` ${$s} `).replace(/`([^`]*)`/g,"$1").replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^\s{0,3}(?:#{1,6}\s+|>\s?|[-*+]\s+)/gm,"").replace(/^\s{0,3}\|?[\s:|-]*\|[\s:|-]*$/gm," ").replace(/\|/g," ").replace(/[*_~]{1,3}/g,"").replace(/\s+/g," ").trim();if(t.length<=Q)return t;const s=Fs(t,Q),n=s.lastIndexOf(" ");return`${(n>Q/2?s.slice(0,n):s).trimEnd()}…`}function Fs(e,t){if(typeof Intl.Segmenter=="function"){const n=new Intl.Segmenter(void 0,{granularity:"grapheme"});let o="";for(const{segment:a}of n.segment(e)){if(o.length+a.length>t)break;o+=a}return o}let s="";for(const n of e){if(s.length+n.length>t)break;s+=n}return s}function Ls({roomId:e,entry:t,viewerAuthorId:s,reactionFrequents:n,streamStalled:o,isMember:a=!0}){const r=is(),i=o===!0||!a,d=c.useMemo(()=>t.reactions??[],[t.reactions]),p=c.useMemo(()=>d.filter(v=>jt(v,s)).map(v=>v.emoji),[d,s]),u=c.useCallback(v=>r.mutate({roomId:e,entryId:t.id,emoji:v,viewerAuthorId:s}),[r,e,t.id,s]),x=c.useMemo(()=>({quick:n,mine:p,onToggle:u,disabled:i}),[n,p,u,i]);return{reactions:d,toggle:u,quickRow:x}}function Bs({barRef:e,pillsRef:t,hasReactions:s}){return n=>{var a,r;if(n.target!==n.currentTarget)return;const{key:o}=n;if(o==="ArrowDown"&&s){n.preventDefault(),(a=t.current)==null||a.focusFirst();return}o!=="ArrowRight"&&o!=="Enter"||(n.preventDefault(),(r=e.current)==null||r.focusFirst())}}function Us(e,t){var x,v;const s=t.body.subjectAuthorId,n=t.body.notice,o=t.kind==="notice"&&n!==void 0&&s!==void 0&&Qn.includes(n),a=Ft(e,{enabled:o}),r=We(),i=Pe(),d=fe(),p=o?((v=(x=a.data)==null?void 0:x.bindings.find(m=>m.authorId===s))==null?void 0:v.sessionId)??null:null,u=c.useCallback(m=>{m.button!==0||m.metaKey||m.ctrlKey||m.shiftKey||m.altKey||(m.preventDefault(),!(p===null||s===void 0)&&Zn({queryClient:i,transport:d},e,s).then(f=>{f.kind!=="none"&&r(pe({session:f.kind==="bound"?f.sessionId:p}))}))},[s,r,i,e,p,d]);return c.useMemo(()=>p===null?null:{href:et({session:p}),onOpen:u},[u,p])}const ne="mention",ve="author_id",Hs={[ne]:[ve]},Ks=[ne];function qs(e,t){if(!t||t.length===0)return e;const s=Ws(e,t);if(s.length===0)return e;let n=e;for(let o=s.length-1;o>=0;o--){const{offset:a,length:r,authorId:i}=s[o],d=n.slice(0,a),p=n.slice(a,a+r),u=n.slice(a+r);n=`${d}<${ne} ${ve}="${i}">${p}</${ne}>${u}`}return n}function Ws(e,t){const s=[...t].sort((a,r)=>a.offset-r.offset),n=[];let o=0;for(const a of s)a.offset<o||a.offset+a.length>e.length||(n.push(a),o=a.offset+a.length);return n}const zs=/^[\s,&+/]*(?:and[\s,&+/]+)?$/i;function Vs(e,t){const s=[...t].sort((a,r)=>a.offset-r.offset),n=new Set;let o=!0;return s.map((a,r)=>{if(o&&r>0){const i=s[r-1];o=zs.test(e.slice(i.offset+i.length,a.offset))}return o&&n.add(a.authorId),n.has(a.authorId)?a:{...a,cc:!0}})}function Gs(e){const t=new Set(e.filter(n=>!n.cc).map(n=>n.authorId)),s=[];for(const n of e)n.cc&&!t.has(n.authorId)&&!s.includes(n.authorId)&&s.push(n.authorId);return s}const Ys=new Map,cn=c.createContext(Ys);function Js({authors:e,children:t}){return l.jsx(cn.Provider,{value:e,children:t})}function Xs(e){const t=c.useContext(cn);return e===void 0?void 0:t.get(e)}const Oe=new WeakMap;function Qs(e){const t=Oe.get(e);if(t)return t;const s=new Map(e.map(n=>[ge(n.projectPath),n.projectPath]));return Oe.set(e,s),s}function Zs(e){var n;const s=(n=he().data)==null?void 0:n.agents;return c.useMemo(()=>e===void 0||!s?void 0:Qs(s).get(e),[s,e])}function ln(e){const{agentRef:t,identity:s,onViewProfile:n}=e,o=Le(),a=Zs(o?t:void 0),r=ee(t);return c.useMemo(()=>{if(!o||s.kind!=="agent"||a===void 0)return null;const i={...s,agent:r&&{runtime:r.runtime,...r.model&&{model:r.model}}},d=(p,u={})=>l.jsx(us,{identity:i,agentPath:a,onViewProfile:n,openOnClick:u.openOnClick??!1,children:p});return{wrap:d,wrapAvatar:p=>d(l.jsx("button",{type:"button",tabIndex:-1,"aria-label":s.displayName,"aria-haspopup":"dialog",className:"focus-ring inline-flex cursor-pointer rounded-sm","data-slot":"room-agent-card-face",children:p}),{openOnClick:!0}),wrapName:p=>d(l.jsx("button",{type:"button","aria-haspopup":"dialog",className:te(p.props.className,"focus-ring cursor-pointer rounded-sm text-left underline-offset-4 hover:underline"),"data-slot":"room-agent-card-name",children:s.displayName}),{openOnClick:!0})}},[o,s,a,r,n])}const eo={kind:"human",displayName:""};function no(e){return typeof e=="string"?e.replace(/^@/,""):""}function to({authorId:e,children:t,cc:s}){const n=Xs(e),o=ee(n==null?void 0:n.agentRef),{open:a}=ze(),r=n?Ke({record:n,override:o==null?void 0:o.visual}):null,i=n?Ve(n,o==null?void 0:o.memberId):void 0,d=c.useMemo(()=>i===void 0?void 0:()=>a(i),[i,a]),p=r==null?void 0:r.color,u=r==null?void 0:r.emoji,x=r==null?void 0:r.imageUrl,v=c.useMemo(()=>n?{kind:n.kind,displayName:n.displayName,handle:n.handle??void 0,color:p,emoji:u,imageUrl:x,origin:n.origin,agent:o&&{runtime:o.runtime,...o.model&&{model:o.model}}}:null,[n,p,u,x,o]),m=ln({agentRef:n==null?void 0:n.agentRef,identity:v??eo,onViewProfile:d});if(!n||!v)return l.jsx(Me,{kind:"human",label:no(t),resolved:!1});const g=m?{role:"button",tabIndex:0,"aria-haspopup":"dialog"}:d?{role:"button",tabIndex:0,"aria-label":`View ${n.displayName}’s profile`,onClick:d,onKeyDown:h=>{h.key!=="Enter"&&h.key!==" "||(h.preventDefault(),d())}}:{},w=l.jsx(Me,{kind:n.kind,label:n.displayName,handle:n.handle??void 0,color:n.color,origin:n.origin,resolved:!0,interactive:d!==void 0,...g,cc:s});return m?m.wrap(w,{openOnClick:!0}):l.jsx(ye,{onViewProfile:d,identity:v,children:w})}function so(e,t=new Set){return{mention:s=>{const n=s[ve],o=typeof n=="string"?n:void 0;return!o||!e.has(o)?l.jsx(l.Fragment,{children:s.children}):l.jsx(to,{authorId:o,cc:t.has(o),children:s.children})}}}function oo({entry:e,authors:t}){const s=c.useMemo(()=>qs(e.body.text,e.mentionSpans),[e.body.text,e.mentionSpans]),n=c.useMemo(()=>{var r;return new Set(((r=e.mentionSpans)==null?void 0:r.map(i=>i.authorId))??[])},[e.mentionSpans]),o=c.useMemo(()=>new Set(Gs(e.mentionSpans??[])),[e.mentionSpans]),a=c.useMemo(()=>so(n,o),[n,o]);return l.jsx(Js,{authors:t,children:l.jsx(Lt,{content:s,className:"msg-prose",allowedTags:Hs,literalTagContent:Ks,components:a,renderers:fs})})}function ao(e){return function(s){return l.jsx(oo,{entry:s,authors:e})}}const dn="the top folder";function Ee(e){return e.slice(e.lastIndexOf("/")+1)}function ro(e){const t=e.lastIndexOf("/");return t===-1?"":e.slice(0,t)}function io(e){return e===""?dn:`${e}/`}function de(e){return e.target!==void 0?e.target===""?dn:e.target:io(ro(e.paths[0]??""))}function co(e,t){const s=e.paths[0]??"",n=e.target;switch(e.kind){case"edit":return`${t} edited ${n??s}`;case"add":return`${t} added ${n??s}`;case"upload":return e.pathCount===1?`${t} uploaded ${Ee(s)} to ${de(e)}`:`${t} uploaded ${e.pathCount} files to ${de(e)}`;case"rename":{const o=e.from??"";return n!==void 0?`${t} renamed ${o} to ${n}`:o.endsWith("/")?`${t} renamed ${o}`:`${t} renamed ${o} to ${s}`}case"delete":return n!==void 0?`${t} deleted ${n}`:e.pathCount===1?`${t} deleted ${s}`:`${t} deleted ${e.pathCount} files`;case"from-attachment":return`${t} saved ${Ee(s)} from the chat to ${de(e)}`}}const lo=c.lazy(()=>nt(()=>import("./index-BLHGc7hd.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(e=>({default:e.SaveToRoomFilesButton})));function la({roomId:e,entry:t,author:s,authorRef:n,authors:o,viewerAuthorId:a,authorNames:r,reactionFrequents:i,streamStalled:d,isMember:p=!0,grouping:u,orphanedReply:x,answers:v,feedPosition:m,rowId:f}){const g=Xe(t.createdAt),w=c.useMemo(()=>{const L=Ds(t.body.text),ie=_t(t.attachments??[]);if(ie===null)return L;const we=L??t.body.text.trim();return we.length>0?`${we} ${ie}`:ie},[t.body.text,t.attachments]),h=c.useId(),y=`${h}-author`,I=`${h}-content`,S=`${h}-summary`,M=c.useRef(null),C=c.useRef(null),N=c.useRef(null),{reactions:A,toggle:_,quickRow:j}=Ls({roomId:e,entry:t,viewerAuthorId:a,reactionFrequents:i,streamStalled:d,isMember:p}),b=ee(n==null?void 0:n.agentRef),{open:O}=ze(),k=n===void 0?void 0:Ve(n,b==null?void 0:b.memberId),T=c.useCallback(()=>{k!==void 0&&O(k)},[O,k]),$=k===void 0?void 0:T,W=Is({roomId:e,entry:t,author:n,viewerAuthorId:a,onViewProfile:$}),z=(n==null?void 0:n.handle)??void 0,B=c.useMemo(()=>({kind:s.kind,displayName:s.displayName,handle:z,color:s.color,emoji:s.emoji,imageUrl:s.imageUrl}),[s.kind,s.displayName,z,s.color,s.emoji,s.imageUrl]),D=ln({agentRef:n==null?void 0:n.agentRef,identity:B,onViewProfile:$}),R=Bs({barRef:C,pillsRef:N,hasReactions:A.length>0}),U=c.useCallback(()=>{var L;return(L=M.current)==null?void 0:L.focus()},[]),oe=c.useMemo(()=>ao(o),[o]),hn=c.useCallback(L=>l.jsx(c.Suspense,{fallback:null,children:l.jsx(lo,{roomId:e,attachment:L})}),[e]),xn=Es(),ae=t.body.subjectAuthorId??t.authorId,E=o.get(ae),V=ee(E==null?void 0:E.agentRef),yn=Us(e,t),re=Ns(t);if(re.kind==="notice")return l.jsx(bs,{entry:t,feedPosition:m,rowId:f,sessionLink:yn,subjectName:E==null?void 0:E.displayName});if(re.kind==="moment")return l.jsx(ks,{entry:t,moment:re.moment,subject:ae===t.authorId?s:Rs(ae,o,xn),subjectIdentity:{handle:(E==null?void 0:E.handle)??void 0,origin:E==null?void 0:E.origin,agent:V&&{runtime:V.runtime,...V.model&&{model:V.model}}},feedPosition:m,rowId:f});const bn=u.position==="first"||u.position==="only";return l.jsxs(P.Root,{ref:M,id:f,position:u.position,actions:W,reactions:j,"data-testid":"room-entry",tabIndex:0,...Ts({showAuthorHeader:bn,headerId:y,displayName:s.displayName,time:g,summary:w,contentId:I,summaryId:S,feedPosition:m}),onKeyDown:R,children:[l.jsx(P.Gutter,{author:s,at:t.createdAt,onViewProfile:D?void 0:$,isSelf:t.authorId===a,renderAvatar:D==null?void 0:D.wrapAvatar}),l.jsxs(P.Body,{children:[l.jsx(P.Author,{id:y,author:s,at:t.createdAt,origin:n==null?void 0:n.origin,renderName:D==null?void 0:D.wrapName}),x===!0&&l.jsx("p",{"data-testid":"room-entry-orphan",className:"text-muted-foreground text-xs italic",children:"Replying to an earlier message"}),v!=null&&l.jsx("p",{"data-testid":"room-entry-answers",className:"text-muted-foreground mb-1 truncate text-xs italic",children:`Answering “${v.excerpt}”`}),t.body.via&&l.jsx(Ot,{via:t.body.via}),l.jsx(P.Content,{id:I,className:"wrap-anywhere [&_pre]:overflow-x-auto [&_pre]:wrap-normal",children:t.body.fileChange?l.jsx("p",{"data-testid":"room-entry-file-change",className:"wrap-anywhere",children:co(t.body.fileChange,(E==null?void 0:E.displayName)??"Somebody")}):oe(t,{rowId:t.id,isStreaming:!1})}),w!==null&&l.jsx("span",{id:S,className:"hidden",children:w}),l.jsx(P.Attachments,{items:t.attachments??[],renderAction:p?hn:void 0}),l.jsx(P.Reactions,{ref:N,reactions:A,viewerAuthorId:a,names:r,frequents:i,onToggle:_,disabled:d===!0||!p,onExit:U}),l.jsx(P.Actions,{actions:W,reactions:j,barRef:C,onExit:U})]})]})}const da={reactions:!0,threads:!0,runWith:!1,attachments:!0,mentions:!0,streamHealth:!0,presence:!0,turnStatus:!1,asks:!0};function uo(e){const t=fe(),[s,n]=c.useState([]),o=c.useRef(new Map),a=c.useCallback(m=>{const f=m.map(g=>({id:crypto.randomUUID(),file:g,status:"pending",progress:0}));n(g=>[...g,...f])},[]),r=c.useCallback(m=>{o.current.delete(m),n(f=>f.filter(g=>g.id!==m))},[]),i=c.useCallback(m=>{if(!m){o.current.clear(),n([]);return}const f=new Set(m);for(const g of f)o.current.delete(g);n(g=>g.filter(w=>!f.has(w.id)))},[]),d=c.useCallback(m=>{o.current.delete(m),n(f=>f.map(g=>g.id===m&&g.status==="error"?{...g,status:"pending",progress:0,error:void 0}:g))},[]),p=c.useRef(null),u=Fe({meta:{suppressErrorToast:!0},mutationFn:async m=>{n(h=>h.map(y=>m.some(I=>I.id===y.id)?{...y,status:"uploading"}:y));const f=h=>{n(y=>y.map(I=>I.status==="uploading"?{...I,progress:h.percentage}:I))},g=new AbortController;p.current=g;const w=m.map(h=>h.file);return t.uploadRoomAttachments(e,w,f,g.signal)},onSettled:()=>{p.current=null},onSuccess:(m,f)=>{f.forEach((g,w)=>{const h=m[w];h&&o.current.set(g.id,h.id)}),n(g=>g.map(w=>f.findIndex(y=>y.id===w.id)===-1?w:{...w,status:"uploaded",progress:100}))},onError:m=>{n(f=>f.map(g=>g.status==="uploading"?{...g,status:"error",error:m.message}:g))}}),x=c.useCallback(()=>{var m;(m=p.current)==null||m.abort()},[]),v=c.useCallback(async()=>{const m=s.filter(g=>g.status==="error");if(m.length>0)throw new Error(m.length===1?`${m[0].file.name} didn’t upload. Try again or remove it.`:`${m.length} files didn’t upload. Try again or remove them.`);const f=s.filter(g=>g.status==="pending");return f.length>0&&await u.mutateAsync(f),s.map(g=>o.current.get(g.id)).filter(g=>g!==void 0)},[s,u]);return{pendingFiles:s,addFiles:a,removeFile:r,retryFile:d,clearFiles:i,cancelUpload:x,uploadAndGetIds:v,hasPendingFiles:s.length>0,hasFailedUpload:s.some(m=>m.status==="error"),isUploading:u.isPending}}function ua(e){const{room:t,threadRootId:s}=e,n=Et(),o=Tt(),a=uo((t==null?void 0:t.id)??""),r=t!==void 0&&Ge(t.members,t.viewerAuthorId),i=c.useRef({attachments:a,post:n,reply:o,room:t,threadRootId:s});c.useEffect(()=>{i.current={attachments:a,post:n,reply:o,room:t,threadRootId:s}});const d=c.useCallback(y=>i.current.attachments.addFiles(y),[]),p=c.useCallback(y=>i.current.attachments.removeFile(y),[]),u=c.useCallback(y=>i.current.attachments.retryFile(y),[]),x=c.useCallback(()=>i.current.attachments.cancelUpload(),[]),{pendingFiles:v,hasFailedUpload:m,isUploading:f}=a,g=c.useMemo(()=>({staged:v,add:d,remove:p,retry:u,cancel:x,hasFailed:m,isUploading:f,holdsSendWhileUploading:!1}),[v,m,f,d,p,u,x]),w=c.useCallback(async y=>{const{attachments:I,post:S,reply:M,room:C,threadRootId:N}=i.current;if(C===void 0)throw new Error("That room isn’t loaded yet.");if(C.archived)throw new Error("This room is archived.");Z.getState().recordOpened("room",C.id);const A=tt(),_=I.pendingFiles.map(k=>k.file.name),j=I.pendingFiles.map(k=>k.id),b=await I.uploadAndGetIds();I.clearFiles(j);const O=y.parentEntryId??N;if(O!==void 0){M.mutate({roomId:C.id,rootEntryId:O,text:y.text,clientId:A,attachmentIds:b,attachmentNames:_});return}S.mutate({roomId:C.id,text:y.text,clientId:A,attachmentIds:b,attachmentNames:_})},[]);return{target:c.useMemo(()=>({kind:"room",id:(t==null?void 0:t.id)??"",placeholder:t===void 0?"Message…":s===void 0?`Message ${se(t)}…`:"Reply in this thread…",canSend:t!==void 0&&!t.archived&&r,...t===void 0?{canSendReason:"Still opening this room…"}:t.archived?{canSendReason:"This room is archived. You can read it, but not add to it."}:r?{}:{canSendReason:Ye},send:w,attachments:g}),[t,s,r,g,w]),attachments:a}}const un=8;function mn(e){if(e==null)return null;const t=e.replace(/\s+/g," ").trim();return t.length===0?null:t}function mo(e){if(at(e)){const s=e.unreadCount??0;return s===1?"1 new message":`${s} new messages`}const t=e.working??0;return t>0?t===1?"1 agent working":`${t} agents working`:mn(e.topic)}function Te(e){return{kind:"session",id:e.id,name:ot(e.title),summary:mn(e.lastMessagePreview),lastActivityAt:e.updatedAt,session:e}}function fo(e){return{kind:e.kind==="dm"?"dm":"channel",id:e.id,name:se(e),summary:mo(e),lastActivityAt:e.lastActivityAt,room:e}}function Y(e){if(e===void 0)return null;const t=Date.parse(e);return Number.isNaN(t)?null:t}function po(e){return e.kind==="session"?Ne("session",e.id):Ne("room",e.id)}function $e(e,t){const s=[Y(t[po(e)]),...e.kind==="session"?[Y(e.session.lastTouchedByYouAt),Y(e.session.userLastMessageAt)]:[]].filter(n=>n!==null);return s.length>0?Math.max(...s):Y(e.lastActivityAt)??Number.NEGATIVE_INFINITY}function go(e){return(t,s)=>$e(s,e)-$e(t,e)||s.id.localeCompare(t.id)}function ho(e){const t=new Set;return e.filter(s=>{const n=`${s.kind}:${s.id}`;return t.has(n)?!1:(t.add(n),!0)})}function xo(e,t){return!(t.has(e.id)||e.unreadCount===null||e.lastActivityAt===e.createdAt)}function yo({sessions:e,rooms:t,mutedRoomIds:s=new Set,interactions:n={},limit:o=un}){const{yours:a,spinOffs:r,automated:i}=st(e),d=go(n),p=[...a.map(Te),...t.filter(u=>xo(u,s)).map(fo)].sort(d);return{items:ho(p).slice(0,o),automated:[...r,...i].map(Te).sort(d).slice(0,o)}}const bo=3,vo=ct;function ko({limit:e=un,mutedRoomIds:t,enabled:s=!0}={}){var p,u;const n=rt(Math.max(e*bo,vo),{enabled:s}),o=Be({enabled:s}),a=it(),r=(p=n.data)==null?void 0:p.sessions,i=o.data;return{...c.useMemo(()=>yo({sessions:r??[],rooms:i??[],mutedRoomIds:t,interactions:a,limit:e}),[r,i,t,a,e]),isLoading:s&&(n.isLoading||o.isLoading),warnings:((u=n.data)==null?void 0:u.warnings)??[]}}const wo=6,fn="jump-back-in-listbox";function ke(e){return`jump-back-in-item-${e}`}const Io='[role="combobox"]';function K(e){return e instanceof Element&&e.matches(Io)}function No({value:e,yieldToPalette:t=!1,enabled:s=!0}){const n=We(),o=lt(),[a,r]=c.useState(!1),[i,d]=c.useState({stamp:"",index:0}),[p,u]=c.useState(!1),[x,v]=c.useState(!1);e.length>0&&!x&&v(!0);const m=c.useRef(!1);c.useEffect(()=>{m.current=!0},[]);const{data:f}=he({enabled:s}),g=c.useMemo(()=>((f==null?void 0:f.agents)??[]).map(R=>R.projectPath),[f]),{data:w}=qe(g,{enabled:s}),h=c.useMemo(()=>w??{},[w]),y=c.useMemo(()=>dt(g,h),[g,h]),I=c.useMemo(()=>new Map(g.map(R=>[ge(R),R])),[g]),S=c.useCallback(R=>ut({room:R,agentsByPath:h,pathByAgentRef:I}),[h,I]),M=c.useMemo(()=>mt(o.muted),[o.muted]),{items:C}=ko({mutedRoomIds:M,enabled:s}),N=c.useMemo(()=>C.slice(0,wo),[C]),A=s&&a&&!p&&!x&&!t&&e.length===0&&N.length>0,_=`${A}:${N.length}`,j=i.stamp===_?i.index:0,b=c.useCallback(R=>{m.current&&K(R.target)&&(u(!1),v(!1),r(!0))},[]),O=c.useCallback(R=>{K(R.target)&&r(!0)},[]),k=c.useCallback(R=>{K(R.target)&&r(!1)},[]),T=c.useCallback(R=>{N.length!==0&&d(U=>{const oe=U.stamp===_?U.index:0;return{stamp:_,index:(oe+R+N.length)%N.length}})},[N.length,_]),$=c.useCallback(()=>T(1),[T]),W=c.useCallback(()=>T(-1),[T]),z=c.useCallback(()=>{u(!0)},[]),B=c.useCallback(R=>{if(u(!0),R.kind==="session"){R.session.cwd&&Z.getState().recordOpened("agent",R.session.cwd),n(pe({dir:R.session.cwd??void 0,session:R.session.id}));return}Z.getState().recordOpened("room",R.room.id),n({...ft.channels(),search:{id:R.room.id}})},[n]),D=c.useCallback(()=>{const R=N[j];!A||!R||B(R)},[A,N,j,B]);return{isOpen:A,hasRows:N.length>0,rows:N,agents:h,displayNames:y,visualOf:S,selectedIndex:j,activeDescendantId:A&&N[j]!==void 0?ke(j):void 0,listboxId:A?fn:void 0,handleFocus:b,handleBlur:k,handlePointerDown:O,moveDown:$,moveUp:W,selectHighlighted:D,selectRow:B,dismiss:z}}function pn({mark:e,label:t,title:s,summary:n,lastActivityAt:o,index:a,isSelected:r,now:i,onSelect:d}){const p=c.useMemo(()=>Number.isNaN(Date.parse(o))?null:vt(o),[o,i]);return l.jsxs("div",{id:ke(a),role:"option","aria-selected":r,"data-selected":r,title:s,onClick:d,className:"data-[selected=true]:bg-accent hover:bg-muted flex cursor-pointer items-start gap-2 rounded-md px-2 py-1.5 transition-colors duration-100",children:[l.jsx("span",{className:"mt-px flex shrink-0 items-center",children:e}),l.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[l.jsxs("span",{className:"flex w-full items-center gap-1.5",children:[l.jsx("span",{className:"text-foreground min-w-0 flex-1 truncate text-sm",children:t}),p!==null&&l.jsx("span",{className:"text-muted-foreground/60 text-3xs shrink-0",children:p})]}),n!==null&&l.jsx("span",{className:"text-muted-foreground/70 text-2xs truncate",children:n})]})]})}function Ro({item:e,agent:t,displayName:s,index:n,isSelected:o,now:a,onSelect:r}){const i=gt(t,e.session.cwd??s);return l.jsx(pn,{mark:l.jsx(ht,{color:i.color,emoji:i.emoji,size:"xs"}),label:e.name,title:`${s} · ${e.name}`,summary:e.summary,lastActivityAt:e.lastActivityAt,index:n,isSelected:o,now:a,onSelect:r})}function Co({item:e,visual:t,index:s,isSelected:n,now:o,onSelect:a}){return l.jsx(pn,{mark:l.jsx(yt,{room:e.room,participants:e.room.participants,visuals:bt(t)}),label:l.jsx(xt,{room:e.room}),title:e.summary===null?e.name:`${e.name} · ${e.summary}`,summary:e.summary,lastActivityAt:e.lastActivityAt,index:s,isSelected:n,now:o,onSelect:a})}function Ao({rows:e,selectedIndex:t,agents:s={},displayNames:n={},visualOf:o,onSelect:a}){const r=pt(6e4);return c.useEffect(()=>{var i,d;(d=(i=document.getElementById(ke(t)))==null?void 0:i.scrollIntoView)==null||d.call(i,{block:"nearest"})},[t]),l.jsx(Je.div,{initial:{opacity:0,scale:.98,y:4},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.98,y:4},transition:{duration:.15,ease:[0,0,.2,1]},className:"bg-popover max-h-80 overflow-hidden rounded-lg border shadow-lg",onMouseDown:i=>i.preventDefault(),children:l.jsx("div",{id:fn,role:"listbox","aria-label":"Jump back in",className:"max-h-72 overflow-y-auto p-1.5",children:e.map((i,d)=>{var p;return i.kind==="session"?l.jsx(Ro,{item:i,agent:i.session.cwd&&s[i.session.cwd]||null,displayName:i.session.cwd&&n[i.session.cwd]||((p=i.session.cwd)==null?void 0:p.split("/").pop())||"Agent",index:d,isSelected:d===t,now:r,onSelect:()=>a(i)},`session-${i.id}`):l.jsx(Co,{item:i,visual:o(i.room),index:d,isSelected:d===t,now:r,onSelect:()=>a(i)},`room-${i.id}`)})})})}const De={people:"People",agents:"Agents"},Mo=["people","agents"];function So(e,t){const s=[];for(const{author:n}of e){if(n.kind==="system"||n.id===t||n.retired)continue;const o=n.handle;s.push({section:n.kind==="agent"?"agents":"people",authorId:n.id,label:n.displayName,...o?{handle:o}:{},...n.emoji?{emoji:n.emoji}:{},...n.color?{color:n.color}:{},disabled:!o,...o?{}:{disabledReason:"No @name"}})}return s}function jo(e,t,s){const n=t.trim().toLowerCase(),o=e.map((a,r)=>({row:a,position:r,tier:_o(a,n)})).filter(a=>a.tier!==null).sort((a,r)=>a.tier-r.tier||a.position-r.position);return s.flatMap(a=>o.filter(r=>r.row.section===a).map(({row:r})=>r))}function _o(e,t){var o;if(t==="")return 0;const s=[(o=e.handle)==null?void 0:o.toLowerCase(),e.label.toLowerCase()].filter(a=>a!==void 0);let n=null;for(const a of s){const r=a===t?0:a.startsWith(t)?1:a.includes(t)?2:null;r!==null&&(n===null||r<n)&&(n=r)}return n}function J(e,t,s){var a;const n=e.length;if(n===0)return 0;let o=(t%n+n)%n;for(let r=0;r<n;r++){if(!((a=e[o])!=null&&a.disabled))return o;o=(o+s+n)%n}return 0}function Oo(e,t,s,n){const o=e.slice(0,t),a=e.slice(t+1+s.length),r=`@${n}`,i=a.startsWith(" ")?"":" ";return{value:o+r+i+a,cursorPos:o.length+r.length+1}}const Eo=/(^|\s)@([A-Za-z0-9_.-]*)$/,gn="mention-palette-listbox";function me(e){return`mention-item-${e}`}function To({members:e,viewerAuthorId:t,text:s,sectionOrder:n=Mo}){var O;const[o,a]=c.useState(!1),[r,i]=c.useState(""),[d,p]=c.useState(-1),u=kt(s),x=c.useRef(!1),v=c.useMemo(()=>So(e,t),[e,t]),m=c.useMemo(()=>o?jo(v,r,n):[],[v,r,o,n]),[f,g]=c.useState(null),w=f!==null&&f.query===r&&f.open===o?f.index:J(m,0,1),h=m[w],y=m.length===0||h!==void 0&&!h.disabled?w:J(m,0,1),I=c.useCallback((k,T)=>{const $=k.slice(0,T).match(Eo);if(!$){a(!1);return}a(!0),i($[2]),p(($.index??0)+$[1].length)},[]),S=c.useCallback(k=>{u.write(k),x.current=!1},[u]),M=c.useCallback(k=>{x.current||I(u.read(),k)},[I,u]),C=c.useCallback(()=>{g({query:r,open:o,index:J(m,y+1,1)})},[m,y,r,o]),N=c.useCallback(()=>{g({query:r,open:o,index:J(m,y-1,-1)})},[m,y,r,o]),A=c.useCallback(k=>k.disabled||k.handle===void 0?null:(x.current=!0,a(!1),Oo(u.read(),d,r,k.handle)),[d,r,u]),_=c.useCallback(()=>{const k=m[y];return k?A(k):(a(!1),null)},[m,y,A]),j=c.useCallback(()=>{x.current=!0,a(!1)},[]),b=m.some(k=>!k.disabled);return{isOpen:o,hasSelectableRows:b,rows:m,selectedIndex:y,activeDescendantId:o&&((O=m[y])==null?void 0:O.disabled)===!1?me(y):void 0,listboxId:o?gn:void 0,noteTextChange:S,handleCursorChange:M,moveDown:C,moveUp:N,selectHighlighted:_,selectRow:A,dismiss:j}}function $o({rows:e,selectedIndex:t,onSelect:s}){const n=c.useMemo(()=>{const o=[];return e.forEach((a,r)=>{const i=o[o.length-1];i&&i.section===a.section?i.items.push({row:a,index:r}):o.push({section:a.section,items:[{row:a,index:r}]})}),o},[e]);return c.useEffect(()=>{var o;(o=document.getElementById(me(t)))==null||o.scrollIntoView({block:"nearest"})},[t]),l.jsx(Je.div,{initial:{opacity:0,scale:.98,y:4},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.98,y:4},transition:{duration:.15,ease:[0,0,.2,1]},className:"bg-popover max-h-80 overflow-hidden rounded-lg border shadow-lg",onMouseDown:o=>o.preventDefault(),children:l.jsx("div",{id:gn,role:"listbox","aria-label":"Mentions",className:"max-h-72 overflow-y-auto p-1.5",children:e.length===0?l.jsx("div",{className:"text-muted-foreground px-2 py-4 text-center text-sm",children:"No one by that name."}):n.map(({section:o,items:a},r)=>l.jsxs("div",{role:"group","aria-label":De[o],children:[r>0&&l.jsx("div",{className:"bg-border mx-2 my-1.5 h-px"}),l.jsx("div",{"aria-hidden":!0,className:"text-muted-foreground/70 text-2xs px-2 pt-1.5 pb-1 font-medium tracking-wide uppercase",children:De[o]}),a.map(({row:i,index:d})=>{const p=d===t;return l.jsxs("div",{id:me(d),role:"option","aria-selected":p,"aria-disabled":i.disabled,"data-selected":p,"data-disabled":i.disabled,onClick:()=>{i.disabled||s(i)},className:i.disabled?"flex cursor-not-allowed items-center gap-2 rounded-md px-2 py-1.5 opacity-45":"data-[selected=true]:bg-accent hover:bg-muted flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 transition-colors duration-100",children:[l.jsx("span",{"aria-hidden":!0,className:"size-4 shrink-0 text-center text-sm leading-none",children:i.emoji}),l.jsx("span",{className:"text-foreground truncate text-sm font-medium",children:i.label}),i.handle!==void 0&&l.jsxs("span",{className:"text-muted-foreground/70 truncate font-mono text-xs",children:["@",i.handle]}),i.disabledReason!==void 0&&l.jsx("span",{className:"text-muted-foreground/70 text-2xs ml-auto shrink-0",children:i.disabledReason})]},i.authorId)})]},o))})})}const Do=/@([A-Za-z0-9][A-Za-z0-9_.-]*)/g,Po=/[.\-_]+$/;function Fo(e,t){const s=new Map;for(const{author:o}of t)o.handle&&s.set(o.handle.toLowerCase(),o.handle);const n=[];for(const o of e.matchAll(Do)){if(o.index===void 0)continue;const a=o[1].toLowerCase(),r=a.replace(Po,""),i=s.get(a)??s.get(r);if(!i)continue;const d=(s.has(a)?a.length:r.length)+1;n.push({offset:o.index,length:d,authorId:i,handle:i})}return n}function Lo(e,t){const s=Vs(e,Fo(e,t)),n=[],o=[];for(const r of s){const i=r.cc?o:n;i.includes(r.handle)||i.push(r.handle)}if(o.length===0||n.length===0)return null;const a=r=>r.map(i=>`@${i}`).join(", ");return`Asks ${a(n)} · cc ${a(o)}`}function ma({room:e,threadRootId:t,focusOnMount:s,offerJumpBackIn:n,onFocusChange:o,attachments:a}){const r=t===void 0?e.id:He(e.id,t),i=wt(r),{target:d}=$t(),p=It(),u=Nt(r),x=c.useRef(null),v=Ge(e.members,e.viewerAuthorId),m=c.useRef(!1),f=To({members:e.members,viewerAuthorId:e.viewerAuthorId,text:i}),g=c.useMemo(()=>e.kind==="channel"?Lo(i,e.members):null,[e.kind,e.members,i]),w=n===!0,h=No({value:i,yieldToPalette:f.isOpen,enabled:w}),y=c.useRef(u);c.useEffect(()=>{var b;u!==y.current&&(y.current=u,(b=x.current)==null||b.focus())},[u]),c.useEffect(()=>{var b;s===!0&&((b=x.current)==null||b.focusUnlessTouch())},[]);const I=c.useCallback(b=>X.getState().set(r,b),[r]),[S,M]=c.useState(null);c.useLayoutEffect(()=>{var b;S!==null&&((b=x.current)==null||b.focusAt(S.pos))},[S]);const C=c.useCallback(b=>{b&&(I(b.value),M({pos:b.cursorPos}))},[I]),N=c.useCallback(b=>C(f.selectRow(b)),[f,C]),A=c.useCallback(()=>C(f.selectHighlighted()),[f,C]),_=()=>{if(d===null||!d.canSend||m.current)return;f.dismiss();const b=X.getState().take(r).trim();if(b==="")return;const O=a.pendingFiles.length>0;O&&(m.current=!0),d.send({text:b}).catch(()=>{const k=X.getState(),T=k.drafts[r]??"";k.set(r,T===""?b:`${b}
44
- ${T}`)}).finally(()=>{O&&(m.current=!1)})};if(!v)return l.jsxs("div",{className:"flex items-center justify-between gap-3 border-t px-4 py-3",children:[l.jsx("p",{className:"text-muted-foreground text-sm",children:Ye}),l.jsx(ue,{type:"button",size:"sm",variant:"outline",disabled:p.isPending,onClick:()=>p.mutate({roomId:e.id,authorId:e.viewerAuthorId},{onSuccess:()=>Ue.success(`You joined ${se(e)}`)}),children:Rt})]});const j=l.jsx(Dt.Composer,{inputRef:x,value:i,onChange:b=>{I(b),f.noteTextChange(b)},onSubmit:_,footer:g?l.jsx("p",{"data-slot":"cc-line",className:"text-muted-foreground px-3 pb-2 text-xs",children:g}):void 0,head:l.jsx("span",{role:"status","aria-live":"polite","aria-atomic":"true",className:"sr-only",children:f.isOpen&&f.rows.length===0?"No one by that name.":""}),mentionPicker:l.jsx(Re,{children:f.isOpen&&l.jsx($o,{rows:f.rows,selectedIndex:f.selectedIndex,onSelect:N})}),overlays:l.jsx(l.Fragment,{children:l.jsx(Re,{children:h.isOpen&&l.jsx(Ao,{rows:h.rows,selectedIndex:h.selectedIndex,agents:h.agents,displayNames:h.displayNames,visualOf:h.visualOf,onSelect:h.selectRow})})}),input:{onCursorChange:f.handleCursorChange,isStreaming:!1,isPaletteOpen:f.isOpen||h.isOpen,paletteHasResults:h.isOpen?h.hasRows:f.hasSelectableRows,onArrowUp:h.isOpen?h.moveUp:f.moveUp,onArrowDown:h.isOpen?h.moveDown:f.moveDown,onCommandSelect:h.isOpen?h.selectHighlighted:A,onEscape:h.isOpen?h.dismiss:f.dismiss,tabPicks:!h.isOpen,onClear:()=>{I(""),f.dismiss()},activeDescendantId:h.isOpen?h.activeDescendantId:f.activeDescendantId,paletteListboxId:h.isOpen?h.listboxId:f.listboxId,contextKey:r,...a.hasFailedUpload?{canSubmitReason:"A file didn’t upload. Try it again or remove it, then send."}:{}}});return!w&&o===void 0?j:l.jsx("section",{className:"flex flex-col","data-testid":Ct.homeComposer,onFocus:b=>{h.handleFocus(b),K(b.target)&&(o==null||o(!0))},onBlur:b=>{h.handleBlur(b),K(b.target)&&(o==null||o(!1))},onPointerDown:h.handlePointerDown,children:j})}export{ia as A,ma as C,ye as I,da as R,na as a,la as b,Rs as c,ta as d,ca as e,ra as f,sa as g,Cs as h,ls as i,ea as j,As as k,Ms as l,Ss as m,oa as n,aa as o,K as p,cs as r,q as t,ua as u};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-_8SHxs8S.js";import{a as t}from"./ProfileFields-EgcVDViF.js";import"./profile-errors-Lfs66dvr.js";import"./use-mounted-ref-Vm8D40hS.js";function n({member:r}){return o.jsx(t,{member:r})}export{n as HandlePage};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-_8SHxs8S.js";import{P as m}from"./ProfileFields-EgcVDViF.js";import"./profile-errors-Lfs66dvr.js";import"./use-mounted-ref-Vm8D40hS.js";function a({member:r}){return o.jsx(m,{member:r})}export{a as NamePage};
@@ -1 +0,0 @@
1
- import{j as r}from"./index-_8SHxs8S.js";import{b as t}from"./ProfileFields-EgcVDViF.js";import"./profile-errors-Lfs66dvr.js";import"./use-mounted-ref-Vm8D40hS.js";function s({member:o}){return r.jsx(t,{member:o})}export{s as PhotoPage};
@@ -1 +0,0 @@
1
- import{a1 as k,a3 as F,r as o,dV as T,aW as m,dW as v,dX as M,dY as q,aI as B,dZ as C,aN as E,d_ as Q,d$ as W,j as S}from"./index-_8SHxs8S.js";import{m as J}from"./registry-CSe_ncC2.js";function P(e,t){const n=e??[];return n.some(a=>a.seq===t.seq)?n:n.length===0||n[n.length-1].seq<t.seq?[...n,t]:[...n,t].sort((a,s)=>a.seq-s.seq)}function U(e,t){const n=e??[],a=n.findIndex(w=>w.id===t.id);if(a===-1)return n;const s=n[a];if(s.seq!==t.seq||s.roomId!==t.roomId||JSON.stringify(s.body)===JSON.stringify(t.body)&&JSON.stringify(s.mentions)===JSON.stringify(t.mentions)&&JSON.stringify(s.mentionSpans)===JSON.stringify(t.mentionSpans))return n;const h=[...n];return h[a]={...s,body:t.body,mentions:t.mentions,mentionSpans:t.mentionSpans},h}function Y(e,t){if(t.kind!=="notice"||t.body.notice!=="turn_failed")return;const n=t.body.subjectAuthorId;n!==void 0&&C.getState().clearAuthor(e,n)}function K(e,t){const n=e.getQueryData(E.entries(t));return n&&n.length>0?n[n.length-1].seq:0}function H(e,t){var n;return((n=e.getQueryData(E.detail(t)))==null?void 0:n.viewerAuthorId)??null}const V=2e3;function G(){const e=o.useRef(null),t=o.useCallback(()=>{e.current!==null&&(clearTimeout(e.current),e.current=null)},[]),n=o.useCallback(s=>{t(),m.getState().endRoomCanvasCycle(s)},[t]),a=o.useCallback(s=>{t(),e.current=setTimeout(()=>{e.current=null,m.getState().endRoomCanvasCycle(s)},V)},[t]);return o.useEffect(()=>t,[t]),{arm:a,now:n}}function X(e){const t=Math.min(v.BACKOFF_CAP_MS,v.BACKOFF_BASE_MS*2**e);return Math.random()*t}const Z=50;function $(e,t){return new Promise(n=>{if(t.aborted)return n();const a=()=>{clearTimeout(s),t.removeEventListener("abort",a),n()},s=setTimeout(a,e);t.addEventListener("abort",a,{once:!0})})}function ee(e,t){const n=k(),a=F(),[s,y]=o.useState(null),[h,w]=o.useState(null),[O,A]=o.useState(0),R=o.useRef(!1),_=G(),j=o.useCallback(()=>A(i=>i+1),[]),g=o.useRef(null),N=o.useCallback(()=>{g.current===null&&(g.current=setTimeout(()=>{g.current=null,A(i=>i+1)},Z))},[]);return o.useEffect(()=>{if(e===null)return;const i=()=>N();let u=null;const d=()=>{if(document.visibilityState!=="visible"){u=Date.now();return}const f=u===null?0:Date.now()-u;u=null,(R.current||f>=v.VISIBILITY_GRACE_MS)&&N()};let c=T.getListConnectionState();const b=T.subscribeListConnectionState(f=>{const p=f==="connected"&&c==="reconnecting";c=f,p&&N()});return window.addEventListener("online",i),document.addEventListener("visibilitychange",d),()=>{window.removeEventListener("online",i),document.removeEventListener("visibilitychange",d),b(),g.current!==null&&(clearTimeout(g.current),g.current=null)}},[e,N]),o.useEffect(()=>(m.getState().setRoomCanvasLiveRoom(e),()=>m.getState().setRoomCanvasLiveRoom(null)),[e]),o.useEffect(()=>{if(e===null||!t)return;const i=new AbortController;let u=!0,d;return(async()=>{y(null),w(null),R.current=!1;let c=0,b=!1;const f=()=>{c=0,R.current=!1,b&&(b=!1,y(p=>p===e?null:p))};for(;u&&!i.signal.aborted;){const p=Date.now();R.current=!1,m.getState().beginRoomCanvasCycle(e),_.arm(e);const D=setTimeout(f,v.STABILITY_WINDOW_MS);let l;try{if(l=M(n,e,K(a,e),i.signal),d=l,!u||i.signal.aborted){l.retire();return}for await(const r of l.stream){if(!u||i.signal.aborted||(f(),!l.current()))return;if(r.type==="canvas_event"||r.type==="canvas_channel_snapshot"){if(l.publish(r),!l.current())return;continue}if(r.type==="signal"){q(r)?B.getState().observe(e,r):(C.getState().observe(e,r),m.getState().applyRoomCanvasPresence(e,r));continue}if(r.type==="reaction"){a.setQueryData(E.entries(e),x=>J(x,r.entryId,r.reactions));continue}if(r.type==="revision"){if(r.entry.roomId!==e)continue;a.setQueryData(E.entries(e),x=>U(x,r.entry));continue}if(r.type==="canvas"){m.getState().applyRoomCanvasFrame(e,r,H(a,e)),r.change!==void 0?_.now(e):_.arm(e);continue}C.getState().clearAuthor(e,r.entry.authorId),Y(e,r.entry),Q.getState().settle(e,r.entry.id),a.setQueryData(E.entries(e),x=>P(x,r.entry))}}catch(r){if(i.signal.aborted)return;if(console.warn("[rooms] live stream dropped",{roomId:e,err:r}),W(r)){C.getState().clearRoom(e),w(e),y(e),clearTimeout(D);return}}finally{try{l==null||l.retire()}finally{clearTimeout(D)}}if(i.signal.aborted)return;Date.now()-p>=v.STABILITY_WINDOW_MS&&(c=0),c+=1,R.current=!0,c>=v.DISCONNECTED_THRESHOLD&&!b&&(C.getState().clearRoom(e),y(e),b=!0),await $(X(c),i.signal)}})(),()=>{u=!1;try{d==null||d.retire()}finally{i.abort()}}},[e,t,n,a,O]),{stalled:s!==null&&s===e,unavailable:h!==null&&h===e,retry:j}}function te({label:e}){return S.jsxs("div",{"data-slot":"day-divider","data-testid":"day-divider",role:"separator","aria-label":e,className:"flex items-center gap-3 py-4",children:[S.jsx("span",{"aria-hidden":"true",className:"bg-border/70 h-px flex-1"}),S.jsx("span",{className:"border-border/70 bg-background text-muted-foreground text-2xs rounded-full border px-2.5 py-0.5 font-medium",children:e}),S.jsx("span",{"aria-hidden":"true",className:"bg-border/70 h-px flex-1"})]})}const L="New messages";function ne(){return S.jsxs("div",{"data-slot":"unread-divider","data-testid":"unread-divider",role:"separator","aria-label":L,className:"flex items-center gap-2 px-[var(--msg-padding-x)] py-2",children:[S.jsx("span",{"aria-hidden":"true",className:"bg-brand/60 h-px flex-1"}),S.jsx("span",{className:"text-brand-text text-2xs font-medium tracking-wide",children:L})]})}export{te as D,ne as U,ee as u};