dorkos 0.125.0 → 0.125.2

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/dist/bin/cli.js +27 -15
  2. package/dist/browser/native/package-manifest.json +1 -1
  3. package/dist/browser/source-manifest.json +1 -1
  4. package/dist/client/assets/{AboutPage-GdrU2Z3k.js → AboutPage-BqGlH1pd.js} +1 -1
  5. package/dist/client/assets/{ActivityErrorState-D1T74VJE.js → ActivityErrorState-C4hqCedX.js} +1 -1
  6. package/dist/client/assets/{ActivityPage-7GXGUwd1.js → ActivityPage-frpyizcK.js} +1 -1
  7. package/dist/client/assets/{ActivityRow-C-8dACWp.js → ActivityRow-DB9c3g1G.js} +1 -1
  8. package/dist/client/assets/{AdapterIcon-CRRs6yil.js → AdapterIcon-CEHkdca8.js} +1 -1
  9. package/dist/client/assets/{AdapterSetupWizard-K6DsejqG.js → AdapterSetupWizard-DLJMkb-u.js} +1 -1
  10. package/dist/client/assets/{AgentOptionRow-CF5XZmBx.js → AgentOptionRow-D-QjHi5k.js} +1 -1
  11. package/dist/client/assets/{AgentPicker-BXes2ymU.js → AgentPicker-DoGucmqI.js} +1 -1
  12. package/dist/client/assets/{AgentRequestCard-BuXVpWfb.js → AgentRequestCard--9GA9ymH.js} +1 -1
  13. package/dist/client/assets/{AppearancePage-DoqoCU4j.js → AppearancePage-NHNiZrtY.js} +1 -1
  14. package/dist/client/assets/{ApplyToOverridesDialog-By8jgPX3.js → ApplyToOverridesDialog-Clo55n6V.js} +1 -1
  15. package/dist/client/assets/{AttentionSignalRow-CgGyTDmT.js → AttentionSignalRow-BOpClaCD.js} +1 -1
  16. package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-BzDxZ-G5.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-D9Tm8ual.js} +1 -1
  17. package/dist/client/assets/{BindingDialog-BXfjFGvP.js → BindingDialog-DZcTXLE8.js} +1 -1
  18. package/dist/client/assets/{BlintzCanvas-C-dobEns.js → BlintzCanvas-DzjdPTlx.js} +3 -3
  19. package/dist/client/assets/{CanvasCsvContent-ClMFJX7T.js → CanvasCsvContent-xYUrbFeA.js} +1 -1
  20. package/dist/client/assets/{CanvasFileContent-BoDE2jjA.js → CanvasFileContent-D6fTvMea.js} +2 -2
  21. package/dist/client/assets/{CanvasModel3dContent-fnWc0B7B.js → CanvasModel3dContent-DEassnBV.js} +2 -2
  22. package/dist/client/assets/{ChannelComposer-DIRPjyyf.js → ChannelComposer-CutghXOq.js} +3 -3
  23. package/dist/client/assets/{ChatAppsOff-DlCWmwEz.js → ChatAppsOff-C00Nl_w6.js} +1 -1
  24. package/dist/client/assets/{CodeMirrorDiff-COsbYyNC.js → CodeMirrorDiff-JYxkSqFi.js} +1 -1
  25. package/dist/client/assets/{CodeMirrorEditor-n3l14rY7.js → CodeMirrorEditor-CVXZ9B5S.js} +1 -1
  26. package/dist/client/assets/{CommitmentList-S2O_hvwR.js → CommitmentList-CcCSwcZ8.js} +1 -1
  27. package/dist/client/assets/{CommitmentsPage-COOCQFpL.js → CommitmentsPage-BrDbzpyR.js} +1 -1
  28. package/dist/client/assets/{ComputerResourceView-PA9T4FZP.js → ComputerResourceView-BlLvMt1I.js} +1 -1
  29. package/dist/client/assets/{ComputerViewer-CnYUWQBS.js → ComputerViewer-B8SWICbj.js} +1 -1
  30. package/dist/client/assets/{ConnectionAccessLists-C1ZJtNl-.js → ConnectionAccessLists-Bsb-t24W.js} +1 -1
  31. package/dist/client/assets/{ConnectionsPage-BBpWiN4-.js → ConnectionsPage-RAhWxuWU.js} +1 -1
  32. package/dist/client/assets/{ConventionPage-sa0Yn2uq.js → ConventionPage-CNij_BXA.js} +1 -1
  33. package/dist/client/assets/{ExtensionPageRoute-BztrmZNp.js → ExtensionPageRoute-BsGqTcyI.js} +1 -1
  34. package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-CJrqr29-.js → FloatingTanStackRouterDevtools-CqogiFob-eQVA1bL6.js} +1 -1
  35. package/dist/client/assets/HandlePage-XG5mP_e9.js +1 -0
  36. package/dist/client/assets/{HeartbeatPage-BkyUpdZt.js → HeartbeatPage-D0tKoR6G.js} +1 -1
  37. package/dist/client/assets/{KeyEntry-DAMr1NNY.js → KeyEntry-CSmznLcG.js} +1 -1
  38. package/dist/client/assets/{LexicalField-Cnzrh08A.js → LexicalField-gYKPjFfN.js} +1 -1
  39. package/dist/client/assets/{ManagesPage-EAbQtygH.js → ManagesPage-BF6MFrsv.js} +1 -1
  40. package/dist/client/assets/{Marketplace-BfADALGd.js → Marketplace-BWDlXgwH.js} +1 -1
  41. package/dist/client/assets/{MarketplaceSourcesView-u1WKUk-p.js → MarketplaceSourcesView-BhKzgkiO.js} +1 -1
  42. package/dist/client/assets/{McpAppFrame-Cz-Ttlqr.js → McpAppFrame-BotrzoHd.js} +1 -1
  43. package/dist/client/assets/{McpSigninBody-CkOBUhOz.js → McpSigninBody-CdeX_lYs.js} +1 -1
  44. package/dist/client/assets/{Model3dViewer-CvLaSO7V.js → Model3dViewer-KHktOpbD.js} +1 -1
  45. package/dist/client/assets/NamePage-Cdd9-mZg.js +1 -0
  46. package/dist/client/assets/{NewDirectMessageMenu-Be_4mBPd.js → NewDirectMessageMenu-CuvKJEDY.js} +1 -1
  47. package/dist/client/assets/{NotificationsPage-GCk9gfsW.js → NotificationsPage-DWcgfZJD.js} +1 -1
  48. package/dist/client/assets/{OpenMeshSwitch-BBzgYSUc.js → OpenMeshSwitch-DdJ7g4yD.js} +1 -1
  49. package/dist/client/assets/{OperatorIdentityForm-ZAbJ4FJn.js → OperatorIdentityForm-7FUOEWw_.js} +1 -1
  50. package/dist/client/assets/{PermissionHistory-DgmFpdJK.js → PermissionHistory-CgQhZrvg.js} +1 -1
  51. package/dist/client/assets/{PermissionsPage-DHFt_34a.js → PermissionsPage-CK34y1VF.js} +1 -1
  52. package/dist/client/assets/{PersonalityPopover-CobRy95S.js → PersonalityPopover-3BA36sB0.js} +1 -1
  53. package/dist/client/assets/PhotoPage-DFic-gDH.js +1 -0
  54. package/dist/client/assets/{PreviewRefusedNotice-Ux5sq2Om.js → PreviewRefusedNotice-CnqAE9sr.js} +1 -1
  55. package/dist/client/assets/{ProfileFields-kBzeRPfc.js → ProfileFields-CIbISW83.js} +1 -1
  56. package/dist/client/assets/{ProfilePanelContainer-CREt4ZC3.js → ProfilePanelContainer-DPDHtTbI.js} +1 -1
  57. package/dist/client/assets/{ProfileRolePicker-hQbo8P6M.js → ProfileRolePicker-83GFtm2P.js} +1 -1
  58. package/dist/client/assets/{PromptSuggestionChips-CmW1lIso.js → PromptSuggestionChips-B9chKG4w.js} +1 -1
  59. package/dist/client/assets/{ReportsToPopover-Dpa-_NsO.js → ReportsToPopover-DUv03JZP.js} +1 -1
  60. package/dist/client/assets/{RoomSurface-BQhgKnIE.js → RoomSurface-Bq6Slne3.js} +1 -1
  61. package/dist/client/assets/{RoomsPage-BHUDRYzJ.js → RoomsPage-BKxzz-nN.js} +1 -1
  62. package/dist/client/assets/{RunsOnPopover-bGZ6VJoF.js → RunsOnPopover-BIdmMhs9.js} +1 -1
  63. package/dist/client/assets/{RuntimeConnectFlow-DN2ElvcH.js → RuntimeConnectFlow-IaRVgmqH.js} +1 -1
  64. package/dist/client/assets/{RuntimeSetupDialog-CUFie4LV.js → RuntimeSetupDialog-Er-lzjmK.js} +1 -1
  65. package/dist/client/assets/{SeenDevices-D_FnsL7V.js → SeenDevices-9quCcdUW.js} +1 -1
  66. package/dist/client/assets/{SessionsPage-1uOPUCP9.js → SessionsPage-CGic5VaN.js} +1 -1
  67. package/dist/client/assets/{SettingsDialog-AbwEHDG8.js → SettingsDialog-BZ58IaK1.js} +1 -1
  68. package/dist/client/assets/{SkillsPage-BEobBuAr.js → SkillsPage-VRYwez5T.js} +1 -1
  69. package/dist/client/assets/{TaskDialogWrapper-BAFSmT-z.js → TaskDialogWrapper-C9LMV8oe.js} +1 -1
  70. package/dist/client/assets/{TasksEmptyState-BFw2ODM-.js → TasksEmptyState-CagC0LAa.js} +1 -1
  71. package/dist/client/assets/{TasksPage-C0CMgSFx.js → TasksPage-3gkHB1Pv.js} +1 -1
  72. package/dist/client/assets/{TeamComputerEntry-BpjxLA1n.js → TeamComputerEntry-BD89Y5e6.js} +1 -1
  73. package/dist/client/assets/{ToolsPage-dx-rQ2F1.js → ToolsPage-Ds6LwY79.js} +1 -1
  74. package/dist/client/assets/{TopologyGraph-LpxkBhGK.js → TopologyGraph-CiZ2ACcQ.js} +1 -1
  75. package/dist/client/assets/{TourHost--UYZoKlJ.js → TourHost-BISNaEzZ.js} +1 -1
  76. package/dist/client/assets/{UnlinkDialog-BN2odbqD.js → UnlinkDialog-DTuXHNsi.js} +1 -1
  77. package/dist/client/assets/{UnreadDivider-LbVIAoxM.js → UnreadDivider-l_VZ7ECn.js} +1 -1
  78. package/dist/client/assets/{WidgetErrorCard-CAUx4KUI.js → WidgetErrorCard-I8WiJv2g.js} +1 -1
  79. package/dist/client/assets/{WorkView-DVx4WoVI.js → WorkView-_wehEEl-.js} +3 -3
  80. package/dist/client/assets/_shell-BLcPeb8K.js +80 -0
  81. package/dist/client/assets/{_shell._home-uuqgFA3M.js → _shell._home-CcRH-M-A.js} +1 -1
  82. package/dist/client/assets/{_shell._home.activity-CiMsy7bF.js → _shell._home.activity-cR24Vr9Q.js} +1 -1
  83. package/dist/client/assets/{_shell._home.index-0Zm5q3-G.js → _shell._home.index-agU2ItcI.js} +1 -1
  84. package/dist/client/assets/{_shell._home.tasks-BClPai4g.js → _shell._home.tasks-BDR9JTj3.js} +1 -1
  85. package/dist/client/assets/{_shell._home.workspaces-DH4BgLT0.js → _shell._home.workspaces-B4nlcACK.js} +1 -1
  86. package/dist/client/assets/{_shell.channels-BGXkXPhY.js → _shell.channels-B7lTxkqM.js} +1 -1
  87. package/dist/client/assets/{_shell.connections-BwjXkgi1.js → _shell.connections-CWQYcH58.js} +1 -1
  88. package/dist/client/assets/{_shell.feedback-requests-j7gTBF5b.js → _shell.feedback-requests-BkgHtyZr.js} +1 -1
  89. package/dist/client/assets/_shell.marketplace-BMqwT9qX.js +1 -0
  90. package/dist/client/assets/_shell.marketplace_.sources-pXGa7Cqb.js +1 -0
  91. package/dist/client/assets/_shell.session-CmoE1W38.js +1 -0
  92. package/dist/client/assets/{_shell.team-BgJu1gDa.js → _shell.team-CTIVEpZQ.js} +3 -3
  93. package/dist/client/assets/{_shell.threads-C1IJJzcf.js → _shell.threads-ClWYrnld.js} +1 -1
  94. package/dist/client/assets/_shell.x._extensionId-BiXilrSW.js +1 -0
  95. package/dist/client/assets/_shell.x._extensionId_._-BiXilrSW.js +1 -0
  96. package/dist/client/assets/{abnfDiagram-WEYOIA3C-BuEHMh0D.js → abnfDiagram-WEYOIA3C-0-Mx5lSG.js} +1 -1
  97. package/dist/client/assets/{access-copy-BZNjpw9v.js → access-copy-Cj31J6PU.js} +1 -1
  98. package/dist/client/assets/{arc-BbGU9Ctb.js → arc-DVmpcNHP.js} +1 -1
  99. package/dist/client/assets/{architectureDiagram-ZHVYKT53-CdRG5sTM.js → architectureDiagram-ZHVYKT53-BZhMXbuC.js} +1 -1
  100. package/dist/client/assets/{banner-C7kHJJGz.js → banner-Ctq7kvQ0.js} +1 -1
  101. package/dist/client/assets/{blockDiagram-RJAE7QA3-CBQ6YXoI.js → blockDiagram-RJAE7QA3-Ctmof3-7.js} +1 -1
  102. package/dist/client/assets/{c4Diagram-XDPPPE54-DavNcKCF.js → c4Diagram-XDPPPE54-BPglmQhG.js} +1 -1
  103. package/dist/client/assets/{card-D4ek-VvX.js → card-DI7YtQh3.js} +1 -1
  104. package/dist/client/assets/channel-A2WD4smw.js +1 -0
  105. package/dist/client/assets/{chunk-2E7WHVMD-ClO15ze9.js → chunk-2E7WHVMD-DIK6CHka.js} +1 -1
  106. package/dist/client/assets/{chunk-2Q5K7J3B-DsLDzf_i.js → chunk-2Q5K7J3B-C3uATYd9.js} +1 -1
  107. package/dist/client/assets/{chunk-4EMNKR2T-D20fXIIK.js → chunk-4EMNKR2T-Dl3iYXVl.js} +1 -1
  108. package/dist/client/assets/{chunk-55XCU76K-no_S5sRX.js → chunk-55XCU76K-BJF-Hcs9.js} +1 -1
  109. package/dist/client/assets/{chunk-5VM5RSS4-D5xWEZ2p.js → chunk-5VM5RSS4-Cju3BnqQ.js} +1 -1
  110. package/dist/client/assets/{chunk-JWPE2WC7-CnsdZOv0.js → chunk-JWPE2WC7-v1omZzgE.js} +1 -1
  111. package/dist/client/assets/{chunk-VQ5W62QI-DxYg8tsH.js → chunk-VQ5W62QI-2HqA3jPL.js} +1 -1
  112. package/dist/client/assets/{chunk-XXDRQBXY-7CQ-MKdC.js → chunk-XXDRQBXY-RDXwFs9Z.js} +1 -1
  113. package/dist/client/assets/{chunk-ZCHMQSOR-Ca7Jh42b.js → chunk-ZCHMQSOR-DhQsY-OT.js} +2 -2
  114. package/dist/client/assets/{classDiagram-v2-4MYWR3UA-BvZXavcI.js → classDiagram-v2-4MYWR3UA-DC5N-GDk.js} +1 -1
  115. package/dist/client/assets/{command-srO4Wv-5.js → command-DpK0GpDM.js} +1 -1
  116. package/dist/client/assets/{cose-bilkent-JH36ORCC-1NCiJaHv.js → cose-bilkent-JH36ORCC-BriFsb6c.js} +1 -1
  117. package/dist/client/assets/{cpu-CFIu4JtK.js → cpu-DzCUBK-1.js} +1 -1
  118. package/dist/client/assets/{cynefin-EF2NZ3EQ-DgZeohG3.js → cynefin-EF2NZ3EQ-cj34OpiI.js} +1 -1
  119. package/dist/client/assets/{cynefinDiagram-WF24UDRP-MQB2xbJK.js → cynefinDiagram-WF24UDRP-DvAggKpl.js} +1 -1
  120. package/dist/client/assets/{dagre-NK4GIZVX-BFHk_Y44.js → dagre-NK4GIZVX-BskSpt7C.js} +1 -1
  121. package/dist/client/assets/{diagram-CBK3MWTC-CloEvZfp.js → diagram-CBK3MWTC-C6BZljcO.js} +1 -1
  122. package/dist/client/assets/{diagram-I5XIIV2D-9nzUtfKI.js → diagram-I5XIIV2D--4FPRmBZ.js} +1 -1
  123. package/dist/client/assets/{diagram-ODIL2UCW-DVdnelgu.js → diagram-ODIL2UCW-kZxp81Fr.js} +1 -1
  124. package/dist/client/assets/{diagram-PFBEJUXE-tTEeiAHa.js → diagram-PFBEJUXE-BSXBAffS.js} +1 -1
  125. package/dist/client/assets/{diagram-RJA3I4VV-QFehV9_1.js → diagram-RJA3I4VV-DLDPF6FG.js} +1 -1
  126. package/dist/client/assets/{diagram-TYUNFSNR-CYU5li-4.js → diagram-TYUNFSNR-CoU2knZy.js} +1 -1
  127. package/dist/client/assets/{ebnfDiagram-V4P3TTPT-Cn040Beg.js → ebnfDiagram-V4P3TTPT-C77T1UPB.js} +1 -1
  128. package/dist/client/assets/{elk-QONTBCTQ-tBbnwcb3.js → elk-QONTBCTQ-UFXrlbAn.js} +1 -1
  129. package/dist/client/assets/{empty-state-Bxfi7_ss.js → empty-state-aNwJA6H8.js} +1 -1
  130. package/dist/client/assets/{erDiagram-KYQIGQAA-DAA0fFlD.js → erDiagram-KYQIGQAA-CyLB8fKu.js} +1 -1
  131. package/dist/client/assets/{execution-config-afKaYukD.js → execution-config-D7JzMYC2.js} +1 -1
  132. package/dist/client/assets/{file-C-ooqbRY.js → file-bSD5jgk_.js} +1 -1
  133. package/dist/client/assets/{file-exclamation-point-BWWgLsMF.js → file-exclamation-point-BcCIL-rE.js} +1 -1
  134. package/dist/client/assets/{file-text-BJt8biPY.js → file-text-DTvj1wzM.js} +1 -1
  135. package/dist/client/assets/{find-latest-widget-fence-DPQimlUD.js → find-latest-widget-fence-D01ENK2h.js} +1 -1
  136. package/dist/client/assets/{flowDiagram-IUGLLWBU-vYI6TodS.js → flowDiagram-IUGLLWBU-qmnUF-Ak.js} +1 -1
  137. package/dist/client/assets/{form-LJ2Rf9ny.js → form-C_yPntkz.js} +1 -1
  138. package/dist/client/assets/{format-cron-DrUISrHj.js → format-cron-DUPWkOrW.js} +1 -1
  139. package/dist/client/assets/{ganttDiagram-R7GPNTJY-DLYpSX7r.js → ganttDiagram-R7GPNTJY-CBzoqGuU.js} +1 -1
  140. package/dist/client/assets/{git-branch-D5xr7U5P.js → git-branch-ClXAt1_G.js} +1 -1
  141. package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-DNIbVOaY.js → gitGraphDiagram-PDYL7XHY-DMh_n1S2.js} +1 -1
  142. package/dist/client/assets/{graph-DNjxkUSL.js → graph-BgkuepqW.js} +1 -1
  143. package/dist/client/assets/{heart-DnR_GX4I.js → heart-BrjEmIsl.js} +1 -1
  144. package/dist/client/assets/{highlighted-body-KPVGNVTW-L_Jd2uei.js → highlighted-body-KPVGNVTW-DlHNVEaV.js} +1 -1
  145. package/dist/client/assets/{image-lightbox-DZIhMyF3.js → image-lightbox-BtzkRztd.js} +1 -1
  146. package/dist/client/assets/{image-off-DdvvVxmq.js → image-off-4yaoLh32.js} +1 -1
  147. package/dist/client/assets/{index-B0jt7Nng.js → index-6yT0Qr0s.js} +1 -1
  148. package/dist/client/assets/{index-Ixk2o7yl.js → index-A_qzw4D8.js} +1 -1
  149. package/dist/client/assets/{index-adYd35CJ.js → index-Adjbt_HC.js} +1 -1
  150. package/dist/client/assets/{index-CXWlrRzK.js → index-B-X82FND.js} +1 -1
  151. package/dist/client/assets/{index-BzKkoaB1.js → index-BMCDckcY.js} +1 -1
  152. package/dist/client/assets/index-BOuCpkRb.js +1 -0
  153. package/dist/client/assets/{index-DTuNXPGU.js → index-BUkUamu4.js} +1 -1
  154. package/dist/client/assets/index-BVq1p60h.js +1 -0
  155. package/dist/client/assets/{index-By8pKNSM.js → index-BXtagrMY.js} +1 -1
  156. package/dist/client/assets/{index-CQ2atcs_.js → index-BeVLPg9t.js} +1 -1
  157. package/dist/client/assets/{index-ld6lMfGU.js → index-Bgg4cW4L.js} +1 -1
  158. package/dist/client/assets/{index-Ba9q2CoQ.js → index-BqHUbNdh.js} +1 -1
  159. package/dist/client/assets/{index-DqCxUalt.js → index-BtG4vr8c.js} +1 -1
  160. package/dist/client/assets/{index-BsHyymmC.js → index-C0LPB1iH.js} +1 -1
  161. package/dist/client/assets/{index-CDo6TA8n.js → index-CJhmUsIv.js} +1 -1
  162. package/dist/client/assets/{index-a6ojvFqI.js → index-CMLDdOez.js} +1 -1
  163. package/dist/client/assets/{index-D-Q7CW4p.js → index-CNV11SW6.js} +1 -1
  164. package/dist/client/assets/{index-9GoQjBFo.js → index-CNiC7KUz.js} +1 -1
  165. package/dist/client/assets/{index-By-VWzSF.js → index-CSyZb1X9.js} +1 -1
  166. package/dist/client/assets/{index-B1gC3xYN.js → index-CThGpHO2.js} +1 -1
  167. package/dist/client/assets/{index-uIonuakd.js → index-C_H6ZIel.js} +1 -1
  168. package/dist/client/assets/{index-ANmu61E0.js → index-C_xSr5lb.js} +1 -1
  169. package/dist/client/assets/{index-r0stHl-2.js → index-Cefoks17.js} +1 -1
  170. package/dist/client/assets/{index-DKTd8X7n.js → index-CjUfPyOM.js} +261 -261
  171. package/dist/client/assets/{index-DXWsH2Ep.js → index-Ckut3u-d.js} +1 -1
  172. package/dist/client/assets/{index-BFecX5dC.js → index-CrQWuUpr.js} +1 -1
  173. package/dist/client/assets/{index-xfRcAp50.js → index-CyfSPJ1D.js} +1 -1
  174. package/dist/client/assets/{index-CSqz4B0v.js → index-D0yajRDv.js} +1 -1
  175. package/dist/client/assets/index-D2ZFfqZZ.css +1 -0
  176. package/dist/client/assets/{index-ZYbeRA5f.js → index-DB2t3GUm.js} +3 -3
  177. package/dist/client/assets/{index-Bri5bZfv.js → index-DFWrO42z.js} +1 -1
  178. package/dist/client/assets/{index-BqKjnd_r.js → index-DGdKO24t.js} +1 -1
  179. package/dist/client/assets/{index-5hCWBj-r.js → index-DQ9ppIWv.js} +1 -1
  180. package/dist/client/assets/{index-DjFFFMc-.js → index-DX546SK5.js} +2 -2
  181. package/dist/client/assets/{index-Blhsfk7u.js → index-DXalAOXT.js} +1 -1
  182. package/dist/client/assets/{index-CDGWl8qL.js → index-DZ1BC5JW.js} +1 -1
  183. package/dist/client/assets/{index-BAIKz_P0.js → index-DgxXSEmR.js} +1 -1
  184. package/dist/client/assets/{index-BsmR2hi4.js → index-Dj4I8KcL.js} +3 -3
  185. package/dist/client/assets/{index-Bpwvxz0c.js → index-DrnHzrt4.js} +1 -1
  186. package/dist/client/assets/{index-CLQIvYHP.js → index-FhmSwVD0.js} +1 -1
  187. package/dist/client/assets/{index-BWQfqbbe.js → index-WkQdt6Zo.js} +1 -1
  188. package/dist/client/assets/{index-BYeyKNKj.js → index-WxG6nG96.js} +1 -1
  189. package/dist/client/assets/{index-D0ujPZdD.js → index-f1W4Bd4W.js} +1 -1
  190. package/dist/client/assets/{index-B2wx4J9U.js → index-qdygDruh.js} +1 -1
  191. package/dist/client/assets/{index-CLbs0fcq.js → index-t-NyR7HD.js} +1 -1
  192. package/dist/client/assets/{index.esm-j5KQ_b6S.js → index.esm-Bb3LMu5X.js} +1 -1
  193. package/dist/client/assets/{infoDiagram-MVDRKAX5-DjvSkTas.js → infoDiagram-MVDRKAX5-DbU4eDjZ.js} +1 -1
  194. package/dist/client/assets/{inline-code-DlVYFFW7.js → inline-code-DwFNff3_.js} +1 -1
  195. package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-BBivrI5n.js → ishikawaDiagram-HPEHV2GE-DmHmF-HT.js} +1 -1
  196. package/dist/client/assets/{journeyDiagram-BOSHW7O7-DKdhbtdx.js → journeyDiagram-BOSHW7O7-DsjOeP3J.js} +1 -1
  197. package/dist/client/assets/{kanban-definition-FNSA4HC5-CkgAodR5.js → kanban-definition-FNSA4HC5-ByQ1WGy2.js} +1 -1
  198. package/dist/client/assets/{layers-CzyhuVSM.js → layers-DFZUUHM5.js} +1 -1
  199. package/dist/client/assets/{lightbulb-DwGE7s99.js → lightbulb-Bbgsejp1.js} +1 -1
  200. package/dist/client/assets/{link-2-CljREnN9.js → link-2-xieOmwOK.js} +1 -1
  201. package/dist/client/assets/{list-runtime-types-D5ZO30FL.js → list-runtime-types-B0CSonAi.js} +1 -1
  202. package/dist/client/assets/{markdown-content-CN_dGlgE.js → markdown-content-ysBIqFAg.js} +1 -1
  203. package/dist/client/assets/{mention-pill-C6OT4gx4.js → mention-pill-Daeu1X92.js} +1 -1
  204. package/dist/client/assets/{mermaid.core-DNuzxE7q.js → mermaid.core-B1mQMOXd.js} +4 -4
  205. package/dist/client/assets/{message-square-off-DlkAPJdd.js → message-square-off-D9hm8WNH.js} +1 -1
  206. package/dist/client/assets/{mindmap-definition-6OY57UG3-f9ygKKO1.js → mindmap-definition-6OY57UG3-CoP-DGm1.js} +1 -1
  207. package/dist/client/assets/{more-details-DRPervoL.js → more-details-DHCpYDi7.js} +1 -1
  208. package/dist/client/assets/{owner-notice-C-Q9ySA7.js → owner-notice-Crxco7HN.js} +1 -1
  209. package/dist/client/assets/{package-BVNiaGrb.js → package-CD8xq7hk.js} +1 -1
  210. package/dist/client/assets/{page-container-D03bhclt.js → page-container-B9sDc2wq.js} +1 -1
  211. package/dist/client/assets/{pane-resize-handle-CZ9rHhNr.js → pane-resize-handle-DOchpdJ6.js} +1 -1
  212. package/dist/client/assets/{paperclip-DQQVX5tJ.js → paperclip-CzhXW5qi.js} +1 -1
  213. package/dist/client/assets/{path-input-CQ16nhYd.js → path-input-Z2p922fj.js} +1 -1
  214. package/dist/client/assets/{pegDiagram-ECIUJNBX-CZ_YkcKh.js → pegDiagram-ECIUJNBX-TEsMAO1a.js} +1 -1
  215. package/dist/client/assets/{pieDiagram-GNMPY74T-DLHSPEH7.js → pieDiagram-GNMPY74T-CMIDIiMP.js} +1 -1
  216. package/dist/client/assets/{plug-CadJyjTp.js → plug-BEp9Ly3k.js} +1 -1
  217. package/dist/client/assets/{primer-trigger-DH4xfrlM.js → primer-trigger-4qUY83SX.js} +1 -1
  218. package/dist/client/assets/{profile-errors-DSnHlauU.js → profile-errors-CezsKqhA.js} +1 -1
  219. package/dist/client/assets/{progress-BB97hlmb.js → progress-eQl1UvNz.js} +1 -1
  220. package/dist/client/assets/{quadrantDiagram-D57K4MC3-BWcUu48x.js → quadrantDiagram-D57K4MC3-DXjohzOz.js} +1 -1
  221. package/dist/client/assets/{query-error-state-B456s96E.js → query-error-state-COuKRlU0.js} +1 -1
  222. package/dist/client/assets/{radio-DrpN3x3S.js → radio-Cdnkcg1w.js} +1 -1
  223. package/dist/client/assets/{railroadDiagram-Y72NRBL7-C2VRM83h.js → railroadDiagram-Y72NRBL7-BojgH6Hw.js} +1 -1
  224. package/dist/client/assets/registry-BSucT23N.js +1 -0
  225. package/dist/client/assets/{relay-trace-schemas-BYCaGsVJ.js → relay-trace-schemas-XcVQg5Fa.js} +1 -1
  226. package/dist/client/assets/{repeat-DPzic7-j.js → repeat-wB31CP7I.js} +1 -1
  227. package/dist/client/assets/{requirementDiagram-EQYSW5RA-B1bpdcM7.js → requirementDiagram-EQYSW5RA-Gojbrcvg.js} +1 -1
  228. package/dist/client/assets/{room-files-source-aN4p_kDV.js → room-files-source-DXKpm43a.js} +1 -1
  229. package/dist/client/assets/{rotate-ccw-clock-gqBy98sI.js → rotate-ccw-clock-LSKKAcnR.js} +1 -1
  230. package/dist/client/assets/{rotate-cw-mHsqEte-.js → rotate-cw-scTEKxeZ.js} +1 -1
  231. package/dist/client/assets/{sankeyDiagram-SY24JHO5-QCGTTh9k.js → sankeyDiagram-SY24JHO5-QS71aycL.js} +1 -1
  232. package/dist/client/assets/{scroll-area-DVd6ctli.js → scroll-area-BNFXgTKM.js} +1 -1
  233. package/dist/client/assets/{search-x-CzgTzL0z.js → search-x-Cjf0n9z7.js} +1 -1
  234. package/dist/client/assets/{sequenceDiagram-BLEHNHQU-kiR1gX_u.js → sequenceDiagram-BLEHNHQU-Beg7mj69.js} +1 -1
  235. package/dist/client/assets/{shield-x-Btfd3Xnx.js → shield-x-Dr4BZfo_.js} +1 -1
  236. package/dist/client/assets/{signed-in-gS3tMpTW.js → signed-in-L9MLqTuc.js} +1 -1
  237. package/dist/client/assets/{sizeCapture-INFHLROL-Da56aMj0.js → sizeCapture-INFHLROL-3Oo1KjRp.js} +1 -1
  238. package/dist/client/assets/{soul-file-C7zd1yXt.js → soul-file-CxpOawh5.js} +1 -1
  239. package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-BZ3qlQWl.js → stateDiagram-v2-A6IESKWZ-DFYIDQ6C.js} +1 -1
  240. package/dist/client/assets/{swimlanes-B3ENRKFQ-B-wp91_T.js → swimlanes-B3ENRKFQ-BUgKOOrv.js} +1 -1
  241. package/dist/client/assets/swimlanesDiagram-AYQRV4AK-Bqjv1MSj.js +8 -0
  242. package/dist/client/assets/{table-BIdFvzBs.js → table-B0LsKsEv.js} +1 -1
  243. package/dist/client/assets/{timeline-definition-JXYKGLGB-CQojjy-8.js → timeline-definition-JXYKGLGB-BsPZ0P_8.js} +1 -1
  244. package/dist/client/assets/{trust-posture-DszobEjt.js → trust-posture-Cm7OhCEx.js} +1 -1
  245. package/dist/client/assets/{unplug-xlfZ61jC.js → unplug-DLA7Ib_s.js} +1 -1
  246. package/dist/client/assets/{unverified-catalog-notice-DymrAwtm.js → unverified-catalog-notice-CxBO_pta.js} +1 -1
  247. package/dist/client/assets/{use-adapter-catalog-CytBTafV.js → use-adapter-catalog-C333Z2Q6.js} +1 -1
  248. package/dist/client/assets/{use-bindings-BPNK3sUh.js → use-bindings-Bu4yLLR5.js} +1 -1
  249. package/dist/client/assets/{use-composer-prefs-DMQT0qiv.js → use-composer-prefs-BnjCX9pM.js} +1 -1
  250. package/dist/client/assets/{use-connector-management-PDVdWccW.js → use-connector-management-Bo6wOJQS.js} +1 -1
  251. package/dist/client/assets/{use-deep-link-scroll-CwapSmGj.js → use-deep-link-scroll-D867V6rs.js} +1 -1
  252. package/dist/client/assets/{use-delete-binding-CgTwS83G.js → use-delete-binding-DKObM-zT.js} +1 -1
  253. package/dist/client/assets/{use-dev-links-BoZCIc4h.js → use-dev-links-C0Zc30aj.js} +1 -1
  254. package/dist/client/assets/{use-direct-message-panel-Cs4I6669.js → use-direct-message-panel-DNWtQq4B.js} +1 -1
  255. package/dist/client/assets/{use-external-adapter-catalog-PBrsasQ8.js → use-external-adapter-catalog-Bv5rDkX4.js} +1 -1
  256. package/dist/client/assets/{use-full-activity-feed-C2seN-V1.js → use-full-activity-feed-CFUj0qCS.js} +1 -1
  257. package/dist/client/assets/use-is-below-desktop-BUS7OPGv.js +1 -0
  258. package/dist/client/assets/use-is-hub-CFhvDMHt.js +1 -0
  259. package/dist/client/assets/{use-local-browser-CF0uGQ6e.js → use-local-browser-BeZjn0gA.js} +1 -1
  260. package/dist/client/assets/{use-mesh-topology-CnCeK4gS.js → use-mesh-topology-DurMpvjU.js} +1 -1
  261. package/dist/client/assets/{use-mounted-ref-BtAb14HI.js → use-mounted-ref-CBSuPNPv.js} +1 -1
  262. package/dist/client/assets/{use-notification-prefs-B8LHpZTt.js → use-notification-prefs-b8iKvzB4.js} +1 -1
  263. package/dist/client/assets/{use-panel-tab-placements-DOXj0Pii.js → use-panel-tab-placements-BcKEux1G.js} +1 -1
  264. package/dist/client/assets/use-pending-read-BBBAnUYu.js +1 -0
  265. package/dist/client/assets/{use-personality-commit-YV9FVC-a.js → use-personality-commit-u3kQ6h3H.js} +1 -1
  266. package/dist/client/assets/{use-promo-activation-CjtGhz_3.js → use-promo-activation-C8_cGmEW.js} +1 -1
  267. package/dist/client/assets/{use-promo-dismissals-4rbLgSDG.js → use-promo-dismissals-B3VuaQCf.js} +1 -1
  268. package/dist/client/assets/{use-pulse-freshness-CGqANpVO.js → use-pulse-freshness-CSWQ0TZS.js} +1 -1
  269. package/dist/client/assets/{use-relay-config-CvU_70WJ.js → use-relay-config-BA6c0FMB.js} +1 -1
  270. package/dist/client/assets/{use-room-follow-claim-Doq_lWjk.js → use-room-follow-claim-BV-MtDQ5.js} +1 -1
  271. package/dist/client/assets/{use-room-sessions-CoEIaBRt.js → use-room-sessions-W62Zl72O.js} +1 -1
  272. package/dist/client/assets/{use-roving-tab-list-BzsrpjWV.js → use-roving-tab-list-CMITzUHu.js} +1 -1
  273. package/dist/client/assets/{use-session-canvas-DQ9ND8il.js → use-session-canvas-u63m2mYH.js} +3 -3
  274. package/dist/client/assets/{use-status-budget-AnHroEO0.js → use-status-budget-CbmPFvpQ.js} +1 -1
  275. package/dist/client/assets/{use-unclaimed-chats-DzOLK27i.js → use-unclaimed-chats-D7SEUfiO.js} +1 -1
  276. package/dist/client/assets/use-update-config-Dfd7KMde.js +1 -0
  277. package/dist/client/assets/{useMutationState-BAU_J-u3.js → useMutationState-rOg4bnKv.js} +1 -1
  278. package/dist/client/assets/{usecaseDiagram-WPOLBNNX-BrHN0c6G.js → usecaseDiagram-WPOLBNNX-C-w0e-nv.js} +1 -1
  279. package/dist/client/assets/{vennDiagram-Q3Y3IDCW-CbeP0Pbp.js → vennDiagram-Q3Y3IDCW-BNm2WXT5.js} +1 -1
  280. package/dist/client/assets/{wardleyDiagram-IVAIDKWA-mn5ebFhs.js → wardleyDiagram-IVAIDKWA-BFyFLiir.js} +1 -1
  281. package/dist/client/assets/{xychartDiagram-4URNHDU4-C8fXRQEv.js → xychartDiagram-4URNHDU4-BKxZlnEx.js} +1 -1
  282. package/dist/client/index.html +2 -2
  283. package/dist/server/index.js +278 -101
  284. package/dist/server/index.js.map +2 -2
  285. package/package.json +4 -4
  286. package/dist/client/assets/HandlePage-tZidnrlt.js +0 -1
  287. package/dist/client/assets/NamePage-BS-oN_Hi.js +0 -1
  288. package/dist/client/assets/PhotoPage-BmFypD13.js +0 -1
  289. package/dist/client/assets/_shell-D7Jp6t6_.js +0 -80
  290. package/dist/client/assets/_shell.marketplace-6JRXJ9gt.js +0 -1
  291. package/dist/client/assets/_shell.marketplace_.sources-DriHXfBM.js +0 -1
  292. package/dist/client/assets/_shell.session-BXSWGdwi.js +0 -1
  293. package/dist/client/assets/_shell.x._extensionId-BNgicBXG.js +0 -1
  294. package/dist/client/assets/_shell.x._extensionId_._-BNgicBXG.js +0 -1
  295. package/dist/client/assets/channel-ClNeQ2PQ.js +0 -1
  296. package/dist/client/assets/index-5eNHb7up.js +0 -1
  297. package/dist/client/assets/index-D1kQ19Gb.css +0 -1
  298. package/dist/client/assets/index-DHi8-3w0.js +0 -1
  299. package/dist/client/assets/registry-DRvQ3ChB.js +0 -1
  300. package/dist/client/assets/swimlanesDiagram-AYQRV4AK-Drg_8k1s.js +0 -8
  301. package/dist/client/assets/use-is-below-desktop-pvzUlnxh.js +0 -1
  302. package/dist/client/assets/use-is-hub-CvEPWuj0.js +0 -1
  303. package/dist/client/assets/use-pending-read-DBaC7e8N.js +0 -1
  304. package/dist/client/assets/use-update-config-NRkQbxae.js +0 -1
@@ -1 +1 @@
1
- import{j as o,c_ as t}from"./index-DKTd8X7n.js";function e(){return o.jsx("div",{className:"h-full min-h-0 overflow-hidden",children:o.jsx(t,{})})}const s=e;export{s as component};
1
+ import{j as o,c_ as t}from"./index-CjUfPyOM.js";function e(){return o.jsx("div",{className:"h-full min-h-0 overflow-hidden",children:o.jsx(t,{})})}const s=e;export{s as component};
@@ -1 +1 @@
1
- import{cj as R,c$ as M,r as l,iK as C,iL as V,j as e,by as G,ar as g,B as D,X as Y,G as f,A as j,gi as K,gj as k,_ as W,e as v,x as q,a1 as z,a2 as U,iM as X,ge as Q,iN as J,eb as Z}from"./index-DKTd8X7n.js";import{P as ee}from"./page-container-D03bhclt.js";import{g as te,A as se,a as ne,b as ie}from"./ActivityErrorState-D1T74VJE.js";import{u as ae}from"./use-full-activity-feed-C2seN-V1.js";import{C as A,A as re}from"./ActivityRow-C-8dACWp.js";import{T as P,a as L,b as oe,c as p}from"./table-BIdFvzBs.js";import{E as b}from"./empty-state-Bxfi7_ss.js";const S=["categories","actorType","actorId","since"];function w(){const s=R(),n=M({strict:!1}),t={categories:n.categories,actorType:n.actorType,actorId:n.actorId,since:n.since},i=S.some(c=>n[c]!==void 0),a={};t.categories&&(a.categories=t.categories),t.actorType&&(a.actorType=t.actorType),t.actorId&&(a.actorId=t.actorId),t.since&&(a.since=t.since);const r=l.useCallback(c=>{s({search:c})},[s]),o=l.useCallback(c=>{r(x=>{const y=x.categories?x.categories.split(","):[],N=y.includes(c)?y.filter(O=>O!==c):[...y,c];return{...x,categories:N.length>0?N.join(","):void 0}})},[r]),d=l.useCallback(c=>{r(x=>({...x,actorType:c}))},[r]),m=l.useCallback(c=>{r(x=>({...x,actorId:c}))},[r]),u=l.useCallback(c=>{r(x=>({...x,since:c}))},[r]),h=l.useCallback(()=>{r(c=>{const x={...c};for(const y of S)delete x[y];return x})},[r]);return{filters:t,queryFilters:a,isFiltered:i,toggleCategory:o,setActorType:d,setActorId:m,setSince:u,clearAll:h}}function ce(){const s=R(),t=M({strict:!1}).view==="all"?"all":"activity",i=l.useCallback(a=>{s({search:(r=>({...r,view:a==="all"?"all":void 0}))})},[s]);return{view:t,setView:i}}function le(){const[s]=l.useState(()=>C.getState().lastSeenAt);return l.useEffect(()=>{const{markSeen:n,setViewing:t}=C.getState();return n(),t(!0),()=>{n(),t(!1)}},[]),s}function ue(s){const n=l.useRef(null),t=l.useCallback(i=>{var d,m,u;const a=n.current;if(!a)return;const r=a.querySelectorAll("[data-activity-row]"),o=Array.from(r).findIndex(h=>h===document.activeElement||h.contains(document.activeElement));switch(i.key){case"ArrowDown":{i.preventDefault();const h=Math.min(o+1,r.length-1);(d=r[h])==null||d.focus();break}case"ArrowUp":{i.preventDefault();const h=Math.max(o-1,0);(m=r[h])==null||m.focus();break}case"Escape":{(u=document.activeElement)==null||u.blur();break}}},[s]);return{containerRef:n,handleKeyDown:t}}const de=["tasks","relay","agent","config","system","permissions"],_="group inline-flex min-h-11 shrink-0 items-center outline-none md:min-h-0",$="inline-flex h-6 items-center rounded-full px-2.5 text-xs font-medium transition-colors group-focus-visible:ring-ring group-focus-visible:ring-2 group-focus-visible:ring-offset-1";function me({category:s,isActive:n,onToggle:t}){const i=A[s];return e.jsx(g.button,{type:"button",layout:!0,onClick:t,"aria-pressed":n,transition:{duration:.15},className:_,children:e.jsx("span",{className:f($,n?f(i.bg,i.text):"text-muted-foreground group-hover:bg-muted group-hover:text-foreground"),children:i.label})})}function he({isActive:s,onClick:n}){return e.jsx(g.button,{type:"button",layout:!0,onClick:n,"aria-pressed":s,transition:{duration:.15},className:_,children:e.jsx("span",{className:f($,s?"bg-foreground text-background":"text-muted-foreground group-hover:bg-muted group-hover:text-foreground"),children:"All"})})}function fe({className:s}){const{filters:n,isFiltered:t,toggleCategory:i,clearAll:a}=w(),r=l.useRef(null),o=V(r,"horizontal"),d=new Set(n.categories?n.categories.split(","):[]),m=()=>{t&&a()};return e.jsxs("div",{className:f("relative",s),children:[e.jsxs("div",{ref:r,onScroll:o.onScroll,"data-slot":"activity-filter-bar",className:"flex items-center gap-1 overflow-x-auto",children:[e.jsx(he,{isActive:!t,onClick:m}),de.map(u=>e.jsx(me,{category:u,isActive:d.has(u),onToggle:()=>i(u)},u)),e.jsx(G,{children:t&&e.jsx(g.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.15},children:e.jsxs(D,{variant:"ghost",size:"xs",className:"ml-1",onClick:a,children:[e.jsx(Y,{"aria-hidden":!0}),"Clear"]})},"clear-filters")})]}),o.start&&e.jsx("div",{"aria-hidden":!0,"data-testid":"activity-filter-bar-fade-start",className:"from-background via-background/70 pointer-events-none absolute inset-y-0 left-0 w-8 bg-gradient-to-r to-transparent"}),o.end&&e.jsx("div",{"aria-hidden":!0,"data-testid":"activity-filter-bar-fade-end",className:"from-background via-background/70 pointer-events-none absolute inset-y-0 right-0 w-8 bg-gradient-to-l to-transparent"})]})}function xe({isFiltered:s=!1,view:n="activity",className:t}){const{filters:i,clearAll:a}=w();return n==="all"?e.jsx(b,{className:t,icon:j,headline:"No actions yet",description:"Every action a person or agent takes shows up here."}):s?e.jsx(b,{className:t,icon:j,headline:`No ${ge(i.categories)} activity found`,description:"Try other filters.",action:{label:"Clear filters",onClick:a,variant:"outline"}}):e.jsx(b,{className:t,icon:j,headline:"No activity yet",description:"Your agents’ work shows up here."})}function ge(s){if(!s)return"matching";const t=s.split(",").map(r=>{var o;return((o=A[r])==null?void 0:o.label)??r});if(t.length===1)return t[0];const i=t[t.length-1];return`${t.slice(0,-1).join(", ")} or ${i}`}function ye({view:s,onViewChange:n,className:t}){return e.jsxs(K,{"aria-label":"Which list to show",className:f("w-fit shrink-0",t),value:s,onValueChange:i=>n(i),children:[e.jsx(k,{value:"activity",children:"Activity"}),e.jsx(k,{value:"all",children:"All actions"})]})}function pe(s){const n=Date.now()-new Date(s).getTime(),t=Math.floor(n/36e5);return t<1?"recently":t<24?`${t}h ago`:`${Math.floor(t/24)}d ago`}function ve(s,n){const t=new Date(n),i={};for(const a of s)new Date(a.occurredAt)>t&&(i[a.category]=(i[a.category]??0)+1);return i}function je(s){const n={tasks:"scheduled run",relay:"message",agent:"agent update",config:"settings change",system:"system event",permissions:"permission change"};return Object.entries(s).filter(([,t])=>t>0).map(([t,i])=>{const a=n[t];return`${i} ${i===1?a:`${a}s`}`}).join(" · ")}function be({lastVisitedAt:s,items:n,className:t}){if(!s)return null;const i=ve(n,s);if(Object.values(i).reduce((d,m)=>d+(m??0),0)===0)return null;const r=pe(s),o=je(i);return e.jsxs(g.div,{"data-slot":"activity-since-last-visit",initial:{opacity:0,y:-6},animate:{opacity:1,y:0},transition:{duration:.2,ease:"easeOut"},className:f("rounded-lg border px-4 py-3","bg-card border-border",t),children:[e.jsxs("p",{className:"text-muted-foreground text-xs",children:[e.jsx("span",{className:"text-foreground font-medium",children:"Since your last visit"})," ",e.jsxs("span",{children:["(",r,")"]})]}),e.jsx("p",{className:"text-foreground/80 mt-0.5 text-sm",children:o}),e.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:Object.keys(i).map(d=>{const m=i[d];if(!m)return null;const u=A[d];return e.jsxs(W,{shape:"pill",className:f("border-transparent",u.bg,u.text),children:[m," ",u.label]},d)})})]})}const Ae={initial:{opacity:0,y:6},animate:{opacity:1,y:0,transition:{duration:.2,ease:"easeOut"}}};function we(){const s=l.useId(),n=l.useMemo(()=>`${s.split("").reduce((i,a)=>i+a.charCodeAt(0),0)%40+50}%`,[s]);return e.jsxs(oe,{children:[e.jsx(p,{className:"w-28 py-1.5 pr-0 pl-2 max-sm:hidden",children:e.jsx(v,{className:"h-3 w-20"})}),e.jsx(p,{className:"w-24 py-1.5 pr-0 max-sm:hidden",children:e.jsx(v,{className:"h-5 w-20 rounded-full"})}),e.jsx(p,{className:"py-1.5 max-sm:pl-2",children:e.jsx(v,{className:"h-3 rounded",style:{width:n}})}),e.jsx(p,{className:"w-16 py-1.5 max-sm:w-10"})]})}function Ne(){return e.jsxs("div",{"data-slot":"activity-timeline-skeleton",className:"space-y-1",children:[e.jsx("div",{className:"py-2",children:e.jsx(v,{className:"h-3 w-16 rounded"})}),e.jsx(P,{children:e.jsx(L,{children:Array.from({length:5}).map((s,n)=>e.jsx(we,{},n))})})]})}function H({items:s,isLoading:n,isError:t,onRetry:i,isFiltered:a,view:r="activity",className:o}){const d=l.useMemo(()=>te(s,new Date),[s]),{containerRef:m,handleKeyDown:u}=ue(s.length);return n&&s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:f(o),children:e.jsx(Ne,{})}):t&&s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:f(o),children:e.jsx(se,{onRetry:i})}):s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:f(o),children:e.jsx(xe,{isFiltered:a,view:r})}):e.jsx("div",{ref:m,onKeyDown:u,"data-slot":"activity-timeline",className:f(o),children:d.map(h=>e.jsxs("section",{children:[e.jsx(ne,{label:h.label}),e.jsx(g.div,{variants:Ae,initial:"initial",animate:"animate",children:e.jsx(P,{children:e.jsx(L,{children:h.items.map(c=>e.jsx(re,{item:c},c.id))})})})]},h.label))})}function B({onLoadMore:s,isFetching:n,hasNextPage:t,className:i}){return t?e.jsx(g.div,{"data-slot":"activity-load-more",initial:{opacity:0},animate:{opacity:1},transition:{duration:.2,delay:.1},className:f("flex justify-center py-4",i),children:e.jsxs(D,{variant:"outline",size:"sm",onClick:s,disabled:n,className:"gap-2",children:[n&&e.jsx(q,{size:"xs"}),"Load 50 more events"]})}):null}const T=7;function Ce(){var t;const s=z(),{data:n}=U({queryKey:X.dailyCounts(T),queryFn:()=>s.getSessionDailyCounts(T),staleTime:6e4});return!n||n.dailyCounts.length===0?null:{dailyCounts:n.dailyCounts,degraded:(((t=n.warnings)==null?void 0:t.length)??0)>0}}function ke(s,n){const t=s.reduce((a,r)=>a+r,0),i=t===1?"session":"sessions";return n?t===0?"This week’s count is incomplete":`Your agents started at least ${t} ${i} this week`:t===0?"Your agents started no chats this week":`Your agents started ${t} ${i} this week`}const I=10,Se=4,E=30,F=1;function Te({data:s,className:n}){const t=Math.max(...s,1);return e.jsx("svg",{viewBox:"0 0 100 30",className:f("text-muted-foreground",n),"aria-hidden":"true",children:s.map((i,a)=>{const r=i/t*E;return e.jsx("rect",{x:a*(I+Se)+1,y:E-Math.max(r,F),width:I,height:Math.max(r,F),rx:2,fill:"currentColor",opacity:.6},a)})})}function Ie(){const s=Ce();return s===null?null:e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsx("p",{className:"text-muted-foreground text-sm",children:ke(s.dailyCounts,s.degraded)}),e.jsx(Te,{data:s.dailyCounts,className:"h-6 w-24 shrink-0"})]})}function Ee(){const s=l.useId(),n=Q("dashboard.sections"),t=l.useMemo(()=>n.filter(i=>J(i.id)&&(!i.visibleWhen||i.visibleWhen())),[n]);return t.length===0?null:e.jsxs("section",{className:"space-y-3","aria-labelledby":s,children:[e.jsx("h2",{id:s,className:"text-muted-foreground text-xs font-medium tracking-widest uppercase",children:"From your extensions"}),e.jsx("div",{className:"space-y-4",children:t.map(i=>e.jsx(i.component,{},i.id))})]})}function Fe(){const{view:s,setView:n}=ce();return e.jsxs(e.Fragment,{children:[e.jsx(Z,{children:"Activity"}),e.jsxs(ee,{width:"wide",className:"space-y-4",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[e.jsx(ye,{view:s,onViewChange:n}),s==="activity"&&e.jsx(fe,{className:"min-w-0 flex-1"})]}),e.jsx(Ie,{}),e.jsx(Ee,{}),s==="all"?e.jsx(Me,{}):e.jsx(Re,{})]})]})}function Re(){const{queryFilters:s,isFiltered:n}=w(),t=le(),{data:i,isLoading:a,isError:r,refetch:o,isFetchingNextPage:d,hasNextPage:m,fetchNextPage:u}=ae(s),h=l.useMemo(()=>(i==null?void 0:i.pages.flatMap(c=>c.items))??[],[i]);return e.jsxs(e.Fragment,{children:[e.jsx(be,{lastVisitedAt:t,items:h}),e.jsx(H,{items:h,isLoading:a,isError:r,onRetry:()=>void o(),isFiltered:n}),e.jsx(B,{onLoadMore:()=>void u(),isFetching:d,hasNextPage:!!m})]})}function Me(){const{data:s,isLoading:n,isError:t,refetch:i,isFetchingNextPage:a,hasNextPage:r,fetchNextPage:o}=ie();return e.jsxs(e.Fragment,{children:[e.jsx(H,{items:s??[],isLoading:n,isError:t,onRetry:()=>void i(),isFiltered:!1,view:"all"}),e.jsx(B,{onLoadMore:()=>void o(),isFetching:a,hasNextPage:!!r})]})}const Oe=Fe;export{Oe as component};
1
+ import{cj as R,c$ as M,r as l,iK as C,iL as V,j as e,by as G,ar as g,B as D,X as Y,G as f,A as j,gi as K,gj as k,_ as W,e as v,x as q,a1 as z,a2 as U,iM as X,ge as Q,iN as J,eb as Z}from"./index-CjUfPyOM.js";import{P as ee}from"./page-container-B9sDc2wq.js";import{g as te,A as se,a as ne,b as ie}from"./ActivityErrorState-C4hqCedX.js";import{u as ae}from"./use-full-activity-feed-CFUj0qCS.js";import{C as A,A as re}from"./ActivityRow-DB9c3g1G.js";import{T as P,a as L,b as oe,c as p}from"./table-B0LsKsEv.js";import{E as b}from"./empty-state-aNwJA6H8.js";const S=["categories","actorType","actorId","since"];function w(){const s=R(),n=M({strict:!1}),t={categories:n.categories,actorType:n.actorType,actorId:n.actorId,since:n.since},i=S.some(c=>n[c]!==void 0),a={};t.categories&&(a.categories=t.categories),t.actorType&&(a.actorType=t.actorType),t.actorId&&(a.actorId=t.actorId),t.since&&(a.since=t.since);const r=l.useCallback(c=>{s({search:c})},[s]),o=l.useCallback(c=>{r(x=>{const y=x.categories?x.categories.split(","):[],N=y.includes(c)?y.filter(O=>O!==c):[...y,c];return{...x,categories:N.length>0?N.join(","):void 0}})},[r]),d=l.useCallback(c=>{r(x=>({...x,actorType:c}))},[r]),m=l.useCallback(c=>{r(x=>({...x,actorId:c}))},[r]),u=l.useCallback(c=>{r(x=>({...x,since:c}))},[r]),h=l.useCallback(()=>{r(c=>{const x={...c};for(const y of S)delete x[y];return x})},[r]);return{filters:t,queryFilters:a,isFiltered:i,toggleCategory:o,setActorType:d,setActorId:m,setSince:u,clearAll:h}}function ce(){const s=R(),t=M({strict:!1}).view==="all"?"all":"activity",i=l.useCallback(a=>{s({search:(r=>({...r,view:a==="all"?"all":void 0}))})},[s]);return{view:t,setView:i}}function le(){const[s]=l.useState(()=>C.getState().lastSeenAt);return l.useEffect(()=>{const{markSeen:n,setViewing:t}=C.getState();return n(),t(!0),()=>{n(),t(!1)}},[]),s}function ue(s){const n=l.useRef(null),t=l.useCallback(i=>{var d,m,u;const a=n.current;if(!a)return;const r=a.querySelectorAll("[data-activity-row]"),o=Array.from(r).findIndex(h=>h===document.activeElement||h.contains(document.activeElement));switch(i.key){case"ArrowDown":{i.preventDefault();const h=Math.min(o+1,r.length-1);(d=r[h])==null||d.focus();break}case"ArrowUp":{i.preventDefault();const h=Math.max(o-1,0);(m=r[h])==null||m.focus();break}case"Escape":{(u=document.activeElement)==null||u.blur();break}}},[s]);return{containerRef:n,handleKeyDown:t}}const de=["tasks","relay","agent","config","system","permissions"],_="group inline-flex min-h-11 shrink-0 items-center outline-none md:min-h-0",$="inline-flex h-6 items-center rounded-full px-2.5 text-xs font-medium transition-colors group-focus-visible:ring-ring group-focus-visible:ring-2 group-focus-visible:ring-offset-1";function me({category:s,isActive:n,onToggle:t}){const i=A[s];return e.jsx(g.button,{type:"button",layout:!0,onClick:t,"aria-pressed":n,transition:{duration:.15},className:_,children:e.jsx("span",{className:f($,n?f(i.bg,i.text):"text-muted-foreground group-hover:bg-muted group-hover:text-foreground"),children:i.label})})}function he({isActive:s,onClick:n}){return e.jsx(g.button,{type:"button",layout:!0,onClick:n,"aria-pressed":s,transition:{duration:.15},className:_,children:e.jsx("span",{className:f($,s?"bg-foreground text-background":"text-muted-foreground group-hover:bg-muted group-hover:text-foreground"),children:"All"})})}function fe({className:s}){const{filters:n,isFiltered:t,toggleCategory:i,clearAll:a}=w(),r=l.useRef(null),o=V(r,"horizontal"),d=new Set(n.categories?n.categories.split(","):[]),m=()=>{t&&a()};return e.jsxs("div",{className:f("relative",s),children:[e.jsxs("div",{ref:r,onScroll:o.onScroll,"data-slot":"activity-filter-bar",className:"flex items-center gap-1 overflow-x-auto",children:[e.jsx(he,{isActive:!t,onClick:m}),de.map(u=>e.jsx(me,{category:u,isActive:d.has(u),onToggle:()=>i(u)},u)),e.jsx(G,{children:t&&e.jsx(g.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.15},children:e.jsxs(D,{variant:"ghost",size:"xs",className:"ml-1",onClick:a,children:[e.jsx(Y,{"aria-hidden":!0}),"Clear"]})},"clear-filters")})]}),o.start&&e.jsx("div",{"aria-hidden":!0,"data-testid":"activity-filter-bar-fade-start",className:"from-background via-background/70 pointer-events-none absolute inset-y-0 left-0 w-8 bg-gradient-to-r to-transparent"}),o.end&&e.jsx("div",{"aria-hidden":!0,"data-testid":"activity-filter-bar-fade-end",className:"from-background via-background/70 pointer-events-none absolute inset-y-0 right-0 w-8 bg-gradient-to-l to-transparent"})]})}function xe({isFiltered:s=!1,view:n="activity",className:t}){const{filters:i,clearAll:a}=w();return n==="all"?e.jsx(b,{className:t,icon:j,headline:"No actions yet",description:"Every action a person or agent takes shows up here."}):s?e.jsx(b,{className:t,icon:j,headline:`No ${ge(i.categories)} activity found`,description:"Try other filters.",action:{label:"Clear filters",onClick:a,variant:"outline"}}):e.jsx(b,{className:t,icon:j,headline:"No activity yet",description:"Your agents’ work shows up here."})}function ge(s){if(!s)return"matching";const t=s.split(",").map(r=>{var o;return((o=A[r])==null?void 0:o.label)??r});if(t.length===1)return t[0];const i=t[t.length-1];return`${t.slice(0,-1).join(", ")} or ${i}`}function ye({view:s,onViewChange:n,className:t}){return e.jsxs(K,{"aria-label":"Which list to show",className:f("w-fit shrink-0",t),value:s,onValueChange:i=>n(i),children:[e.jsx(k,{value:"activity",children:"Activity"}),e.jsx(k,{value:"all",children:"All actions"})]})}function pe(s){const n=Date.now()-new Date(s).getTime(),t=Math.floor(n/36e5);return t<1?"recently":t<24?`${t}h ago`:`${Math.floor(t/24)}d ago`}function ve(s,n){const t=new Date(n),i={};for(const a of s)new Date(a.occurredAt)>t&&(i[a.category]=(i[a.category]??0)+1);return i}function je(s){const n={tasks:"scheduled run",relay:"message",agent:"agent update",config:"settings change",system:"system event",permissions:"permission change"};return Object.entries(s).filter(([,t])=>t>0).map(([t,i])=>{const a=n[t];return`${i} ${i===1?a:`${a}s`}`}).join(" · ")}function be({lastVisitedAt:s,items:n,className:t}){if(!s)return null;const i=ve(n,s);if(Object.values(i).reduce((d,m)=>d+(m??0),0)===0)return null;const r=pe(s),o=je(i);return e.jsxs(g.div,{"data-slot":"activity-since-last-visit",initial:{opacity:0,y:-6},animate:{opacity:1,y:0},transition:{duration:.2,ease:"easeOut"},className:f("rounded-lg border px-4 py-3","bg-card border-border",t),children:[e.jsxs("p",{className:"text-muted-foreground text-xs",children:[e.jsx("span",{className:"text-foreground font-medium",children:"Since your last visit"})," ",e.jsxs("span",{children:["(",r,")"]})]}),e.jsx("p",{className:"text-foreground/80 mt-0.5 text-sm",children:o}),e.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:Object.keys(i).map(d=>{const m=i[d];if(!m)return null;const u=A[d];return e.jsxs(W,{shape:"pill",className:f("border-transparent",u.bg,u.text),children:[m," ",u.label]},d)})})]})}const Ae={initial:{opacity:0,y:6},animate:{opacity:1,y:0,transition:{duration:.2,ease:"easeOut"}}};function we(){const s=l.useId(),n=l.useMemo(()=>`${s.split("").reduce((i,a)=>i+a.charCodeAt(0),0)%40+50}%`,[s]);return e.jsxs(oe,{children:[e.jsx(p,{className:"w-28 py-1.5 pr-0 pl-2 max-sm:hidden",children:e.jsx(v,{className:"h-3 w-20"})}),e.jsx(p,{className:"w-24 py-1.5 pr-0 max-sm:hidden",children:e.jsx(v,{className:"h-5 w-20 rounded-full"})}),e.jsx(p,{className:"py-1.5 max-sm:pl-2",children:e.jsx(v,{className:"h-3 rounded",style:{width:n}})}),e.jsx(p,{className:"w-16 py-1.5 max-sm:w-10"})]})}function Ne(){return e.jsxs("div",{"data-slot":"activity-timeline-skeleton",className:"space-y-1",children:[e.jsx("div",{className:"py-2",children:e.jsx(v,{className:"h-3 w-16 rounded"})}),e.jsx(P,{children:e.jsx(L,{children:Array.from({length:5}).map((s,n)=>e.jsx(we,{},n))})})]})}function H({items:s,isLoading:n,isError:t,onRetry:i,isFiltered:a,view:r="activity",className:o}){const d=l.useMemo(()=>te(s,new Date),[s]),{containerRef:m,handleKeyDown:u}=ue(s.length);return n&&s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:f(o),children:e.jsx(Ne,{})}):t&&s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:f(o),children:e.jsx(se,{onRetry:i})}):s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:f(o),children:e.jsx(xe,{isFiltered:a,view:r})}):e.jsx("div",{ref:m,onKeyDown:u,"data-slot":"activity-timeline",className:f(o),children:d.map(h=>e.jsxs("section",{children:[e.jsx(ne,{label:h.label}),e.jsx(g.div,{variants:Ae,initial:"initial",animate:"animate",children:e.jsx(P,{children:e.jsx(L,{children:h.items.map(c=>e.jsx(re,{item:c},c.id))})})})]},h.label))})}function B({onLoadMore:s,isFetching:n,hasNextPage:t,className:i}){return t?e.jsx(g.div,{"data-slot":"activity-load-more",initial:{opacity:0},animate:{opacity:1},transition:{duration:.2,delay:.1},className:f("flex justify-center py-4",i),children:e.jsxs(D,{variant:"outline",size:"sm",onClick:s,disabled:n,className:"gap-2",children:[n&&e.jsx(q,{size:"xs"}),"Load 50 more events"]})}):null}const T=7;function Ce(){var t;const s=z(),{data:n}=U({queryKey:X.dailyCounts(T),queryFn:()=>s.getSessionDailyCounts(T),staleTime:6e4});return!n||n.dailyCounts.length===0?null:{dailyCounts:n.dailyCounts,degraded:(((t=n.warnings)==null?void 0:t.length)??0)>0}}function ke(s,n){const t=s.reduce((a,r)=>a+r,0),i=t===1?"session":"sessions";return n?t===0?"This week’s count is incomplete":`Your agents started at least ${t} ${i} this week`:t===0?"Your agents started no chats this week":`Your agents started ${t} ${i} this week`}const I=10,Se=4,E=30,F=1;function Te({data:s,className:n}){const t=Math.max(...s,1);return e.jsx("svg",{viewBox:"0 0 100 30",className:f("text-muted-foreground",n),"aria-hidden":"true",children:s.map((i,a)=>{const r=i/t*E;return e.jsx("rect",{x:a*(I+Se)+1,y:E-Math.max(r,F),width:I,height:Math.max(r,F),rx:2,fill:"currentColor",opacity:.6},a)})})}function Ie(){const s=Ce();return s===null?null:e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsx("p",{className:"text-muted-foreground text-sm",children:ke(s.dailyCounts,s.degraded)}),e.jsx(Te,{data:s.dailyCounts,className:"h-6 w-24 shrink-0"})]})}function Ee(){const s=l.useId(),n=Q("dashboard.sections"),t=l.useMemo(()=>n.filter(i=>J(i.id)&&(!i.visibleWhen||i.visibleWhen())),[n]);return t.length===0?null:e.jsxs("section",{className:"space-y-3","aria-labelledby":s,children:[e.jsx("h2",{id:s,className:"text-muted-foreground text-xs font-medium tracking-widest uppercase",children:"From your extensions"}),e.jsx("div",{className:"space-y-4",children:t.map(i=>e.jsx(i.component,{},i.id))})]})}function Fe(){const{view:s,setView:n}=ce();return e.jsxs(e.Fragment,{children:[e.jsx(Z,{children:"Activity"}),e.jsxs(ee,{width:"wide",className:"space-y-4",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[e.jsx(ye,{view:s,onViewChange:n}),s==="activity"&&e.jsx(fe,{className:"min-w-0 flex-1"})]}),e.jsx(Ie,{}),e.jsx(Ee,{}),s==="all"?e.jsx(Me,{}):e.jsx(Re,{})]})]})}function Re(){const{queryFilters:s,isFiltered:n}=w(),t=le(),{data:i,isLoading:a,isError:r,refetch:o,isFetchingNextPage:d,hasNextPage:m,fetchNextPage:u}=ae(s),h=l.useMemo(()=>(i==null?void 0:i.pages.flatMap(c=>c.items))??[],[i]);return e.jsxs(e.Fragment,{children:[e.jsx(be,{lastVisitedAt:t,items:h}),e.jsx(H,{items:h,isLoading:a,isError:r,onRetry:()=>void o(),isFiltered:n}),e.jsx(B,{onLoadMore:()=>void u(),isFetching:d,hasNextPage:!!m})]})}function Me(){const{data:s,isLoading:n,isError:t,refetch:i,isFetchingNextPage:a,hasNextPage:r,fetchNextPage:o}=ie();return e.jsxs(e.Fragment,{children:[e.jsx(H,{items:s??[],isLoading:n,isError:t,onRetry:()=>void i(),isFiltered:!1,view:"all"}),e.jsx(B,{onLoadMore:()=>void o(),isFetching:a,hasNextPage:!!r})]})}const Oe=Fe;export{Oe as component};
@@ -1,3 +1,3 @@
1
- import{lf as be,lg as ye,j as t,hV as $,hW as F,hX as L,hY as B,hZ as q,_ as I,ay as A,O as Se,Q as Ne,C as ke,U as we,lh as z,B as b,li as Re,lj as Ce,cj as W,e as C,G as y,s as H,r as m,J as Ie,lk as Ae,aj as Pe,ak as De,dV as Oe,aY as Me,X as oe,ll as Te,lm as Ee,aQ as $e,dW as ie,iL as Fe,by as G,ar as R,T as Le,ln as Be,i_ as qe,lo as ze,eG as We,eH as He,iY as _e,j3 as Ue,lp as Ve,lq as Ge,eA as ae,eC as Ke,lr as Ye,c$ as re,ad as Qe,eD as Xe,iZ as Je,l as le,ls as de,lt as ce,gX as Ze,lu as _,eB as et,bf as tt,a$ as st,hI as nt,gB as ot,lv as it,as as at,gY as ue,g as rt,gk as me,lw as K,ai as Y,c7 as lt,lx as dt,ly as ct,lz as ut,a1 as mt,lA as ht,cf as gt,bP as ft,jl as pt,aP as xt,i6 as jt,eM as M,k7 as vt,q as Q,eb as bt,g$ as yt,lB as St,n as Nt}from"./index-DKTd8X7n.js";import{I as kt,p as wt}from"./ChannelComposer-DIRPjyyf.js";import{c as Rt}from"./index-BsmR2hi4.js";import{a as Ct}from"./RoomSurface-BQhgKnIE.js";import{P as he}from"./PromptSuggestionChips-CmW1lIso.js";import{S as U}from"./scroll-area-DVd6ctli.js";import{d as It}from"./dead-letter-reasons-DtBHju9v.js";import{u as At}from"./use-mesh-topology-CnCeK4gS.js";import{A as Pt}from"./AttentionSignalRow-CgGyTDmT.js";import{u as ge}from"./use-promo-dismissals-4rbLgSDG.js";import{u as Dt,s as Ot,P as Mt,a as Tt}from"./use-promo-activation-CjtGhz_3.js";import"./repeat-DPzic7-j.js";import"./use-room-sessions-CoEIaBRt.js";import"./WidgetErrorCard-CAUx4KUI.js";import"./index-CSqz4B0v.js";import"./card-D4ek-VvX.js";import"./progress-BB97hlmb.js";import"./markdown-content-CN_dGlgE.js";import"./table-BIdFvzBs.js";import"./package-BVNiaGrb.js";import"./heart-DnR_GX4I.js";import"./git-branch-D5xr7U5P.js";import"./file-text-BJt8biPY.js";import"./file-C-ooqbRY.js";import"./find-latest-widget-fence-DPQimlUD.js";import"./format-duration-BCr6uzby.js";import"./RuntimeSetupDialog-CUFie4LV.js";import"./inline-code-DlVYFFW7.js";import"./list-runtime-types-D5ZO30FL.js";import"./RuntimeConnectFlow-DN2ElvcH.js";import"./useMutationState-BAU_J-u3.js";import"./runtime-connect-Dn0T5YWv.js";import"./mention-pill-C6OT4gx4.js";import"./rotate-ccw-clock-gqBy98sI.js";import"./unplug-xlfZ61jC.js";import"./message-square-off-DlkAPJdd.js";import"./registry-DRvQ3ChB.js";import"./file-drag-GDx2qhdk.js";import"./paperclip-DQQVX5tJ.js";import"./index-B0jt7Nng.js";import"./pane-resize-handle-CZ9rHhNr.js";import"./UnreadDivider-LbVIAoxM.js";import"./use-room-follow-claim-Doq_lWjk.js";import"./use-connector-management-PDVdWccW.js";import"./AgentRequestCard-BuXVpWfb.js";import"./access-copy-BZNjpw9v.js";import"./query-error-state-B456s96E.js";import"./empty-state-Bxfi7_ss.js";import"./use-bindings-BPNK3sUh.js";import"./connection-copy--MA7AN04.js";import"./KeyEntry-DAMr1NNY.js";import"./use-update-config-NRkQbxae.js";import"./use-relay-config-CvU_70WJ.js";function Et({open:e,itemId:n,onClose:o}){const{data:s}=be(),i=ye(),a=(n==null?void 0:n.indexOf("::"))??-1,r=a>=0?n.slice(0,a):void 0,l=a>=0?n.slice(a+2):void 0,d=s==null?void 0:s.find(h=>h.source===r&&h.reason===l),c=()=>{!r||!l||i.mutate({source:r,reason:l},{onSuccess:o})};return t.jsx($,{open:e,onOpenChange:h=>!h&&o(),children:t.jsxs(F,{side:"right",children:[t.jsxs(L,{children:[t.jsx(B,{children:"Messages that never arrived"}),t.jsx(q,{children:r??"Source unknown"})]}),t.jsx(U,{className:"flex-1 px-4",children:d?t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx("p",{className:"text-muted-foreground text-sm",children:"These never reached an agent. Clearing them doesn’t send them."}),t.jsxs("p",{className:"text-foreground text-sm",children:[d.count," message",d.count===1?"":"s"," couldn’t be delivered"]}),t.jsx(I,{variant:"secondary",children:It(d.reason)})]}),t.jsxs("div",{className:"space-y-1 text-sm",children:[t.jsxs("p",{className:"text-muted-foreground",children:["First happened ",A(d.firstSeen)," ago"]}),t.jsxs("p",{className:"text-muted-foreground",children:["Last happened ",A(d.lastSeen)," ago"]})]}),d.sample!=null&&t.jsxs(Se,{children:[t.jsxs(Ne,{className:"text-muted-foreground hover:text-foreground group flex items-center gap-1 text-xs font-medium transition-colors",children:[t.jsx(ke,{className:"size-3 transition-transform group-data-[state=open]:rotate-90"}),"What one of them looked like"]}),t.jsx(we,{children:t.jsx("pre",{className:"bg-muted mt-1 overflow-x-auto rounded-md p-3 font-mono text-xs",children:JSON.stringify(d.sample,null,2)})})]})]}):t.jsx("p",{className:"text-muted-foreground py-8 text-center text-sm",children:"These are cleared already."})}),t.jsxs(z,{children:[d&&t.jsx(b,{variant:"destructive",onClick:c,disabled:i.isPending,children:i.isPending?"Clearing…":"Clear these"}),t.jsx(b,{variant:"outline",onClick:o,children:"Close"})]})]})})}function $t(e){const n=Math.floor(e/1e3);if(n<60)return`${n}s`;const o=Math.floor(n/60),s=n%60;if(o<60)return`${o}m ${s}s`;const i=Math.floor(o/60),a=o%60;return`${i}h ${a}m`}function Ft(e){switch(e){case"blocked":return{label:"Blocked",badge:"outline",tone:"warning",heading:"What it needed",title:"Run that couldn’t use its tools"};case"failed":return{label:"Didn’t finish",badge:"destructive",tone:"error",heading:"Error",title:"Run that didn’t finish"};case"cancelled":return{label:"Cancelled",badge:"secondary",tone:"neutral",heading:"Stopped",title:"Run that was stopped"};case"skipped":return{label:"Skipped",badge:"secondary",tone:"neutral",heading:"Why",title:"Run that never started"};case"running":return{label:"Running",badge:"secondary",tone:"neutral",heading:"Latest",title:"Run that is still going"};default:return{label:"Completed",badge:"secondary",tone:"neutral",heading:"Note",title:"Run that finished"}}}const Lt={error:{box:"bg-destructive/10 border-destructive/20",heading:"text-destructive",body:"text-destructive"},warning:{box:"bg-status-warning-bg border-status-warning-border",heading:"text-status-warning-fg",body:"text-status-warning-fg"},neutral:{box:"bg-muted border-border",heading:"text-foreground",body:"text-foreground/80"}};function Bt({open:e,itemId:n,onClose:o}){const{data:s,isLoading:i,isError:a}=Re(e?n??null:null),r=Ce(),l=W(),d=()=>{s!=null&&s.sessionId&&l(H({session:s.sessionId}))},c=()=>{s&&r.mutate(s.id)},h=s?Ft(s.status):null,g=h?Lt[h.tone]:null;return t.jsx($,{open:e,onOpenChange:f=>!f&&o(),children:t.jsxs(F,{side:"right",children:[t.jsxs(L,{children:[t.jsx(B,{children:(h==null?void 0:h.title)??"Run that needs a look"}),t.jsx(q,{children:n?n.slice(0,8):"Unknown"})]}),t.jsxs(U,{className:"flex-1 px-4",children:[i&&t.jsxs("div",{className:"space-y-4",children:[t.jsx(C,{className:"h-6 w-24"}),t.jsx(C,{className:"h-4 w-48"}),t.jsx(C,{className:"h-20 w-full"})]}),a&&t.jsx("p",{className:"text-destructive py-8 text-center text-sm",children:"Couldn’t load this run."}),!i&&!a&&!s&&t.jsx("p",{className:"text-muted-foreground py-8 text-center text-sm",children:"Already resolved."}),s&&t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex gap-2",children:[t.jsx(I,{variant:h.badge,children:h.label}),t.jsx(I,{variant:"secondary",children:s.trigger==="scheduled"?"Scheduled":"Manual"})]}),t.jsxs("div",{className:"space-y-1 text-sm",children:[s.startedAt&&t.jsxs("p",{className:"text-muted-foreground",children:["Started: ",A(s.startedAt)," ago"]}),s.finishedAt&&t.jsxs("p",{className:"text-muted-foreground",children:["Finished: ",A(s.finishedAt)," ago"]}),s.durationMs!=null&&t.jsxs("p",{className:"text-muted-foreground",children:["Duration: ",$t(s.durationMs)]})]}),s.error&&t.jsxs("div",{className:y("rounded-md border p-3",g.box),children:[t.jsx("p",{className:y("text-sm font-medium",g.heading),children:h.heading}),t.jsx("p",{className:y("mt-1 text-sm",g.body),children:s.error})]}),s.outputSummary&&t.jsxs("div",{className:"space-y-1",children:[t.jsx("p",{className:"text-muted-foreground text-xs font-medium",children:"Output"}),t.jsx("pre",{className:"bg-muted max-h-48 overflow-auto rounded-md p-3 font-mono text-xs",children:s.outputSummary})]})]})]}),t.jsxs(z,{children:[(s==null?void 0:s.sessionId)&&t.jsx(b,{variant:"default",onClick:d,children:"View chat"}),(s==null?void 0:s.status)==="running"&&t.jsx(b,{variant:"destructive",onClick:c,disabled:r.isPending,children:r.isPending?"Cancelling…":"Cancel run"}),t.jsx(b,{variant:"outline",onClick:o,children:"Close"})]})]})})}function qt({agent:e}){const n=Ae(e,e.projectPath??"");return t.jsxs("div",{className:"flex items-center gap-3 py-2",children:[t.jsx(Pe,{color:n.color,emoji:n.emoji,size:"sm",className:"shrink-0"}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{className:"text-foreground truncate text-sm font-medium",children:De(e)}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(I,{variant:"destructive",children:"Unreachable"}),e.runtime&&t.jsx(I,{variant:"secondary",children:Oe(e.runtime).label})]})]}),e.lastSeenAt&&t.jsxs("span",{className:"text-muted-foreground shrink-0 text-xs",children:[A(e.lastSeenAt)," ago"]})]})}function zt({open:e,onClose:n}){const{data:o}=At(void 0,e),s=m.useMemo(()=>o?o.namespaces.flatMap(i=>i.agents).filter(i=>i.healthStatus==="unreachable"):[],[o]);return t.jsx($,{open:e,onOpenChange:i=>!i&&n(),children:t.jsxs(F,{side:"right",children:[t.jsxs(L,{children:[t.jsx(B,{children:"Agents that aren’t answering"}),t.jsxs(q,{children:["DorkOS can’t reach ",s.length," agent",s.length===1?"":"s"," right now"]})]}),t.jsx(U,{className:"flex-1 px-4",children:s.length>0?t.jsx("div",{className:"divide-y",children:s.map(i=>t.jsx(qt,{agent:i},i.id))}):t.jsxs("div",{className:"flex flex-col items-center gap-2 py-8",children:[t.jsx(Ie,{className:"text-status-success size-6"}),t.jsx("p",{className:"text-muted-foreground text-sm",children:"All agents are online"})]})}),t.jsx(z,{children:t.jsx(b,{variant:"outline",onClick:n,children:"Close"})})]})})}function Wt(e){return e.content.suggestion!==void 0}function Ht(){const e=Dt(),{dismissedIds:n}=ge(),o=Me(s=>s.promoEnabled);return m.useMemo(()=>{if(!o)return null;const[s]=Ot(Mt.filter(Wt),e,n,1);return s??null},[e,n,o])}function _t({suggestion:e,promoTitle:n,onAccept:o,onDismiss:s}){return t.jsxs("p",{"data-slot":"quiet-suggestion",className:"text-muted-foreground/70 text-2xs mt-1",children:[e.question," ",t.jsx("button",{type:"button",onClick:o,className:"text-muted-foreground hover:text-foreground focus-ring rounded-sm font-medium underline-offset-4 transition-colors hover:underline focus-visible:underline",children:e.action}),t.jsx("button",{type:"button","aria-label":`Dismiss suggestion: ${n}`,onClick:s,className:"text-muted-foreground/60 hover:text-foreground focus-ring -my-1.5 ml-0.5 inline-flex translate-y-[3px] items-center justify-center rounded-sm p-1.5 align-baseline transition-colors",children:t.jsx(oe,{className:"size-3"})})]})}function Ut({promo:e}){const{dismissPromo:n}=ge(),{activate:o,dialog:s}=Tt(e);return t.jsxs(t.Fragment,{children:[t.jsx(_t,{suggestion:e.content.suggestion,promoTitle:e.content.title,onAccept:o,onDismiss:()=>n(e.id)}),s]})}function Vt(){const e=Ht();return e===null?null:t.jsx(Ut,{promo:e},e.id)}const Gt=["report.daily"];function fe(){const{notifications:e}=Te({kinds:Gt,unread:!0});return m.useMemo(()=>e[0],[e])}function Kt({questions:e,requests:n,schedules:o,approvalsUnavailable:s,attention:i}){const a=[],r=[],l=e+n+o;return l>0?(a.push(`${Ee(e,n,o)} ${l===1?"is":"are"} waiting on you.`),r.push(`${l} waiting`)):s&&(a.push("Couldn’t read approvals."),r.push("Couldn’t read approvals")),i===1?(a.push("1 thing needs attention."),r.push("1 needs attention")):i>1&&(a.push(`${i} things need attention.`),r.push(`${i} need attention`)),{spoken:a.join(" "),compact:r.join(" · ")}}function Yt({notification:e,onDismiss:n}){return t.jsxs("div",{"data-slot":"shift-report-card",className:"border-border/60 bg-background/60 relative rounded-lg border p-3 pr-8",children:[t.jsxs("div",{className:"flex items-start gap-2.5",children:[t.jsx($e,{"aria-hidden":!0,className:"text-muted-foreground mt-0.5 size-3.5 shrink-0"}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{className:"text-foreground text-xs font-medium",children:e.title}),e.body!==void 0&&t.jsx("p",{className:"text-muted-foreground mt-1 text-xs leading-relaxed",children:e.body})]})]}),t.jsx("button",{type:"button",onClick:n,"aria-label":"Dismiss",className:"text-muted-foreground hover:text-foreground focus-ring absolute top-2 right-2 rounded-md p-1 transition-colors",children:t.jsx(oe,{className:"size-3.5"})})]})}const Qt="max-h-[40svh] sm:max-h-[50svh]",Xt={initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0}};function T({title:e,tone:n="waiting",children:o}){const s=m.useId();return t.jsxs("section",{"aria-labelledby":s,className:"min-w-0",children:[t.jsx("h2",{id:s,className:y("mb-2 text-xs font-medium",n==="waiting"?"text-status-warning-fg":"text-muted-foreground"),children:e}),o]})}function X({edge:e}){return t.jsx("div",{"aria-hidden":"true","data-slot":`pinned-triage-fade-${e}`,className:y("from-background/95 via-background/65 pointer-events-none absolute inset-x-0 h-6 to-transparent",e==="bottom"?"bottom-0 bg-gradient-to-t":"top-0 bg-gradient-to-b")})}const J={animate:{transition:{staggerChildren:.04}}};function Jt(e){return e?0:.18}function Zt({approvals:e,asks:n,settlingAsks:o,askAgentNames:s,onOpenSession:i,approvalsUnavailable:a,onRetryApprovals:r,scheduleApprovals:l,errorSignals:d,activityItems:c,onOpenActivity:h,shiftReport:g,presence:f,condensed:j,onExpand:x,className:u}){const p=ie(),v=m.useRef(null),N=Fe(v),k=e.length>0||n.length>0||o.length>0||l.length>0||a,P=d.length>0,w=c.length>0,je=k||P||w||g!==void 0||(f==null?void 0:f.occupied)===!0,O=Kt({questions:n.length,requests:e.length,schedules:l.length,approvalsUnavailable:a,attention:d.length+c.length}),ve=j===!0&&O.compact!=="";return t.jsxs(t.Fragment,{children:[t.jsx("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"sr-only",children:O.spoken}),t.jsxs(G,{initial:!1,children:[ve&&t.jsx(R.div,{"data-slot":"pinned-triage-summary",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:Jt(p===!0)},className:y("bg-background/95 border-border/60 shrink-0 border-b backdrop-blur-sm",u),children:t.jsxs("button",{type:"button",onClick:x,className:"text-muted-foreground hover:text-foreground flex min-h-11 w-full min-w-0 items-center gap-2 px-[var(--msg-padding-x)] text-left text-xs",children:[t.jsx("span",{className:"bg-status-warning-dot size-1.5 shrink-0 rounded-full","aria-hidden":!0}),t.jsx("span",{className:"min-w-0 flex-1 truncate",children:O.compact}),t.jsx(Le,{className:"size-3.5 shrink-0","aria-hidden":!0})]})},"triage-summary"),je&&j!==!0&&t.jsxs(R.div,{"data-slot":"pinned-triage-header",...Xt,transition:{duration:p?0:.25,ease:[0,0,.2,1]},className:y("bg-background/95 border-border/60 relative shrink-0 overflow-hidden border-b backdrop-blur-sm",u),children:[t.jsxs("div",{ref:v,onScroll:N.onScroll,"data-slot":"pinned-triage-scroller",className:y("flex w-full min-w-0 scroll-py-6 flex-col gap-3 overflow-y-auto overscroll-contain px-[var(--msg-padding-x)] py-3",Qt),children:[k&&t.jsxs(T,{title:"Waiting on you",children:[(n.length>0||o.length>0)&&t.jsx(Be,{asks:n,agentNames:s,onOpenSession:i,emptyState:t.jsx("p",{className:"text-muted-foreground text-xs",children:"Nothing needs you"})}),e.length>0&&t.jsx(qe,{approvals:e}),e.length===0&&a&&t.jsx(ze,{onRetry:r}),t.jsx(G,{initial:!1,children:l.map(S=>t.jsx(We,{task:S,className:"mt-2"},S.id))})]}),P&&t.jsx(T,{title:"Needs attention",children:t.jsx("div",{className:"border-status-warning-border/40 bg-background/60 rounded-lg border p-2",children:t.jsx(R.div,{variants:J,initial:"initial",animate:"animate",children:d.map(S=>t.jsx(Pt,{signal:S},S.id))})})}),g&&t.jsx(Yt,{notification:g.notification,onDismiss:g.onDismiss}),w&&t.jsx(T,{title:"Recent activity",tone:"neutral",children:t.jsx("div",{className:"border-border/60 bg-background/60 rounded-lg border p-2",children:t.jsx(R.div,{variants:J,initial:"initial",animate:"animate",children:c.map(S=>t.jsx(He,{notification:S,onOpen:()=>h(S)},S.id))})})}),f==null?void 0:f.node]}),N.start&&t.jsx(X,{edge:"top"}),N.end&&t.jsx(X,{edge:"bottom"})]},"triage-header")]})]})}function es({presence:e,composerFocused:n,onExpand:o,className:s}){const{approvals:i,isError:a,retry:r}=_e(),{interactions:l}=Ue(),d=Ve(),c=Ge(l),{schedules:h,errors:g,activity:f}=ae(),j=Ke(),x=fe(),{mutate:u}=Ye(),p=re({strict:!1}),v=W(),N=Qe(),k=Xe(h),P=Je(i),w=m.useCallback(()=>{v({...le.home(),search:{}})},[v]);return t.jsxs(t.Fragment,{children:[t.jsx(Zt,{approvals:P,asks:l,settlingAsks:d,askAgentNames:c,onOpenSession:V=>{v(H({session:V}))},approvalsUnavailable:a&&i.length===0,onRetryApprovals:r,scheduleApprovals:k,errorSignals:g,activityItems:f,onOpenActivity:j,shiftReport:x===void 0?void 0:{notification:x,onDismiss:()=>u(x.id)},presence:e,condensed:N&&n===!0,onExpand:o,className:s}),t.jsx(Et,{open:p.detail==="dead-letter",itemId:p.itemId,onClose:w}),t.jsx(Bt,{open:p.detail==="failed-run",itemId:p.itemId,onClose:w}),t.jsx(zt,{open:p.detail==="offline-agent",onClose:w})]})}const ts=["What can you help with?","Make my first agent","What’s in this project?","Set up a daily run"];function ss({roomId:e}){const n=m.useCallback(o=>{de.getState().set(e,o),ce.getState().requestFocus(e)},[e]);return t.jsx("div",{className:"w-full px-[var(--msg-padding-x)] pb-1",children:t.jsx(he,{suggestions:ts,onChipClick:n,ariaLabel:"Ways to start",size:"comfortable"})})}function ns(e){var a;const{data:n}=Ze(e),o=((a=n==null?void 0:n.members.find(r=>r.author.id===n.viewerAuthorId))==null?void 0:a.lastReadSeq)??null,[s,i]=m.useState({roomId:null,seq:null});return s.roomId===e?s.seq:o===null?null:(i({roomId:e,seq:o}),o)}function os(e,n){if(e===void 0)return null;let o=null,s=1/0;for(const i of e){if(!i.enabled||i.status!=="active")continue;const a=i.nextRun;if(a==null)continue;const r=Date.parse(a);Number.isNaN(r)||r<=n||r>=s||(s=r,o={name:i.displayName??i.name,at:a})}return o}function is(e,n){const o=new Date(e),s=o.toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"}),i=as(new Date(n),o);return i===0?`today at ${s}`:i===1?`tomorrow at ${s}`:`on ${o.toLocaleDateString(void 0,{weekday:"long",month:"short",day:"numeric"})} at ${s}`}function as(e,n){const o=s=>new Date(s.getFullYear(),s.getMonth(),s.getDate()).getTime();return Math.round((o(n)-o(e))/864e5)}function rs(e,n){return e===null?null:`Next up: ${e.name} runs ${is(e.at,n)}.`}function ls({forwardLook:e,suggestion:n}){return t.jsx(R.div,{"data-slot":"home-quiet-state",initial:{opacity:0},animate:{opacity:1},transition:{duration:.2},className:"border-border/60 shrink-0 border-b",children:t.jsxs("div",{className:"w-full px-[var(--msg-padding-x)] py-2",children:[t.jsxs("p",{className:"text-muted-foreground text-xs",children:[t.jsx("span",{className:"text-foreground/80 font-medium",children:"All quiet."}),e!==null&&t.jsxs(t.Fragment,{children:[" ",e]})]}),n]})})}function ds({roomId:e,presenceOccupied:n}){const o=_(e),s=ns(e),{items:i,isLoading:a,isAnyError:r}=et(),{total:l}=ae(),d=fe(),c=o!==void 0&&o.length>0,h=s!==null&&o!==void 0&&o.every(k=>k.seq<=s),g=i.length>0||a||r||l>0||d!==void 0||n,f=c&&h&&!g,[j,x]=m.useState("waiting");f&&j==="waiting"?x("shown"):!f&&j==="shown"&&x("retired");const u=f&&j!=="retired",p=tt(),{data:v}=st(p&&u),N=nt();return u?t.jsx(ls,{forwardLook:rs(os(v,N),N),suggestion:t.jsx(Vt,{})}):null}const pe="dorkos:home-opened-on";function Z(){const e=new Date,n=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0");return`${e.getFullYear()}-${n}-${o}`}function cs(){try{return localStorage.getItem(pe)}catch{return null}}function us(e){try{localStorage.setItem(pe,e)}catch{}}function ms(){const[e]=m.useState(()=>cs()!==Z());return m.useEffect(()=>{e&&us(Z())},[e]),e}function hs({children:e}){const n=ms(),o=ie(),s=n&&o!==!0;return t.jsx(R.div,{className:"h-full",initial:s?{opacity:0}:!1,animate:{opacity:1},transition:{duration:.45,ease:[0,0,.2,1]},children:e})}const ee="@dorkbot",gs="Build me a tracker for my customers",fs="Make a daily plan board",xe="Something else",ps=[gs,fs,xe];function xs({roomId:e,mode:n}){const o=Rt(),s=ot(),i=m.useCallback(a=>{if(a===xe){de.getState().set(e,`${ee} `),ce.getState().requestFocus(e);return}o.mutate({roomId:e,text:`${ee} ${a}`,clientId:it()})},[e,o]);return n==="starters"?t.jsx("div",{className:"w-full px-[var(--msg-padding-x)] pb-1","data-testid":"first-run-chips",children:t.jsx(he,{suggestions:ps,onChipClick:i,ariaLabel:"First jobs for DorkBot",size:"comfortable"})}):t.jsxs("div",{className:"flex w-full flex-wrap gap-2 px-[var(--msg-padding-x)] pb-1","data-testid":"first-run-connect-chips",children:[t.jsx(b,{size:"sm",onClick:()=>s.open("account"),children:"Continue with DorkOS"}),t.jsx(b,{size:"sm",variant:"outline",onClick:()=>s.open("runtimes"),children:"Use my own AI"})]})}function js(e){var r,l;const{data:n}=at(),o=_(e),s=ue(e,null),i=((r=n==null?void 0:n.onboarding)==null?void 0:r.welcomeEntryId)??null;if(e===null||i===null||!o||s.length>0)return null;const a=o.reduce((d,c)=>d===void 0||c.seq>d.seq?c:d,void 0);return(a==null?void 0:a.id)!==i?null:((l=n==null?void 0:n.onboarding)==null?void 0:l.firstRunPath)==="none"?"connect":"starters"}const vs=5,bs="relative after:absolute after:-inset-x-1 after:-inset-y-2.5 md:after:hidden";function ys(e,n){return e===null||n===null?null:Math.max(0,n-Date.parse(e))}function Ss({row:e,onFollow:n,onViewProfile:o}){const[s,i]=m.useState(null),a=ys(e.since,s),r=e.profileMemberId,l=o===void 0||r===null?void 0:()=>o(r);return t.jsx(kt,{onViewProfile:l,identity:{kind:e.face.kind,displayName:e.name,...e.handle!==null?{handle:e.handle}:{},color:e.face.color,...e.face.emoji!==void 0?{emoji:e.face.emoji}:{},...e.face.imageUrl!==void 0?{imageUrl:e.face.imageUrl}:{},...e.face.origin!==void 0?{origin:e.face.origin}:{},...e.face.kind==="agent"?{agent:{...e.runtime!==null?{runtime:e.runtime}:{},...a!==null?{working:{...e.roomTitle!==null?{room:e.roomTitle}:{},forMs:a}}:{}}}:{}},children:t.jsxs("button",{type:"button","aria-label":e.detail===null?`Watch ${e.name}`:`Watch ${e.name}: ${e.detail}`,onClick:()=>n(e.follow),onPointerEnter:()=>i(Date.now()),onPointerLeave:()=>i(null),onFocus:()=>i(Date.now()),onBlur:()=>i(null),className:y("focus-ring group/identity hover:bg-muted/60 flex min-w-0 items-center gap-1.5 rounded-full py-1 pr-2.5 pl-1 text-xs transition-colors",bs),children:[t.jsx(rt,{size:"xs",kind:e.face.kind,color:e.face.color,...e.face.emoji!==void 0?{emoji:e.face.emoji}:{},...e.face.imageUrl!==void 0?{imageUrl:e.face.imageUrl}:{},...e.face.origin!==void 0?{origin:e.face.origin}:{},fallback:e.face.fallback,status:"working"}),t.jsx("span",{className:"text-foreground shrink-0 font-medium",children:e.name}),e.detail!==null&&t.jsxs("span",{"aria-hidden":!0,className:"text-muted-foreground truncate",children:["· ",e.detail]})]})})}function Ns({rows:e,onFollow:n,onViewProfile:o,className:s}){if(e.length===0)return null;const i=e.slice(0,vs),a=e.length-i.length;return t.jsxs("ul",{"data-testid":"presence-strip","aria-label":"Working right now",className:y("flex items-center gap-x-2 overflow-hidden",s),children:[i.map(r=>t.jsx("li",{className:"min-w-0",children:t.jsx(Ss,{row:r,onFollow:n,onViewProfile:o})},r.id)),a>0&&t.jsx("li",{"aria-label":a===1?"1 more agent is working":`${a} more agents are working`,className:"text-muted-foreground shrink-0 text-xs",children:t.jsxs("span",{"aria-hidden":!0,children:["+",a," more"]})})]})}function ks(e){return`replying in ${e}`}const ws="working in a chat";function Rs(e,n){var i;const o=n.rosters[e];if(o!==void 0)return o.members.map(a=>({author:a.author,origin:a.origin}));const s=(i=n.rooms[e])==null?void 0:i.participants;return s==null?[]:s.map(a=>({author:a}))}function Cs(e){const n=new Map;for(const[o,s]of Object.entries(e))s!==null&&n.set(lt(o),{path:o,manifest:s});return n}function te(e){return{...e,line:ct(e.name,e.binding,e.state),detail:dt(e.binding,e.state)}}function Is(e){const n=Cs(e.agents),o=new Set(e.excludeRoomIds??[]),s=[],i=new Set;for(const l of e.claims){const d=Rs(l.roomId,e).find(f=>f.author.id===l.authorId);if(d===void 0)continue;const c=d.author.agentRef===void 0?void 0:n.get(d.author.agentRef);if(c!==void 0&&i.add(c.path),o.has(l.roomId))continue;const h=e.rooms[l.roomId],g=h===void 0?null:me(h);s.push(te({id:`room:${l.roomId}:${l.authorId}`,name:d.author.displayName,handle:d.author.handle,face:K({record:d.author,override:c===void 0?null:Y(c.manifest),...d.origin!==void 0?{origin:d.origin}:{}}),binding:g===null?null:ks(g),state:l.state,since:l.since,roomTitle:g,runtime:(c==null?void 0:c.manifest.runtime)??null,profileMemberId:c===void 0?null:e.meshIdByPath[c.path]??null,follow:{kind:"room",roomId:l.roomId}}))}const a=new Set(i),r=[];for(const l of e.sessions){if(a.has(l.cwd))continue;const d=e.agents[l.cwd];if(d==null)continue;a.add(l.cwd);const c=d.displayName??d.name;r.push(te({id:`session:${l.sessionId}`,name:c,handle:null,face:K({record:{id:d.id,kind:"agent",displayName:c},override:Y(d)}),binding:ws,state:"working",since:null,roomTitle:null,runtime:d.runtime,profileMemberId:e.meshIdByPath[l.cwd]??null,follow:{kind:"session",sessionId:l.sessionId,cwd:l.cwd}}))}return r.sort((l,d)=>l.name.localeCompare(d.name)||l.id.localeCompare(d.id)),[...s,...r]}function As(e,n,o){var a;const s=new Set(ut(Object.keys(n),Object.values(o))),i=[];for(const[r,l]of Object.entries(n))((a=e[r])==null?void 0:a.lifecycle)==="streaming"&&s.has(r)&&i.push({sessionId:r,cwd:l});return i}const se=[],Ps=[],ne="\0",D="";function Ds(){const e=M(m.useCallback(i=>i.statuses,[])),n=M(m.useCallback(i=>i.statusCwds,[])),o=M(m.useCallback(i=>i.sessions,[])),s=m.useMemo(()=>As(e,n,o).map(i=>`${i.sessionId}${ne}${i.cwd}`).sort().join(D),[e,n,o]);return m.useMemo(()=>s.length===0?Ps:s.split(D).map(i=>{const[a,r]=i.split(ne);return{sessionId:a,cwd:r}}),[s])}function Os(e=[]){const n=mt(),o=ht(),s=Ds(),{data:i}=gt(),{data:a}=ft(),r=m.useMemo(()=>[...new Set(o.map(u=>u.roomId))].sort().join(`
1
+ import{lf as be,lg as ye,j as t,hV as $,hW as F,hX as L,hY as B,hZ as q,_ as I,ay as A,O as Se,Q as Ne,C as ke,U as we,lh as z,B as b,li as Re,lj as Ce,cj as W,e as C,G as y,s as H,r as m,J as Ie,lk as Ae,aj as Pe,ak as De,dV as Oe,aY as Me,X as oe,ll as Te,lm as Ee,aQ as $e,dW as ie,iL as Fe,by as G,ar as R,T as Le,ln as Be,i_ as qe,lo as ze,eG as We,eH as He,iY as _e,j3 as Ue,lp as Ve,lq as Ge,eA as ae,eC as Ke,lr as Ye,c$ as re,ad as Qe,eD as Xe,iZ as Je,l as le,ls as de,lt as ce,gX as Ze,lu as _,eB as et,bf as tt,a$ as st,hI as nt,gB as ot,lv as it,as as at,gY as ue,g as rt,gk as me,lw as K,ai as Y,c7 as lt,lx as dt,ly as ct,lz as ut,a1 as mt,lA as ht,cf as gt,bP as ft,jl as pt,aP as xt,i6 as jt,eM as M,k7 as vt,q as Q,eb as bt,g$ as yt,lB as St,n as Nt}from"./index-CjUfPyOM.js";import{I as kt,p as wt}from"./ChannelComposer-CutghXOq.js";import{c as Rt}from"./index-Dj4I8KcL.js";import{a as Ct}from"./RoomSurface-Bq6Slne3.js";import{P as he}from"./PromptSuggestionChips-B9chKG4w.js";import{S as U}from"./scroll-area-BNFXgTKM.js";import{d as It}from"./dead-letter-reasons-DtBHju9v.js";import{u as At}from"./use-mesh-topology-DurMpvjU.js";import{A as Pt}from"./AttentionSignalRow-BOpClaCD.js";import{u as ge}from"./use-promo-dismissals-B3VuaQCf.js";import{u as Dt,s as Ot,P as Mt,a as Tt}from"./use-promo-activation-C8_cGmEW.js";import"./repeat-wB31CP7I.js";import"./use-room-sessions-W62Zl72O.js";import"./WidgetErrorCard-I8WiJv2g.js";import"./index-D0yajRDv.js";import"./card-DI7YtQh3.js";import"./progress-eQl1UvNz.js";import"./markdown-content-ysBIqFAg.js";import"./table-B0LsKsEv.js";import"./package-CD8xq7hk.js";import"./heart-BrjEmIsl.js";import"./git-branch-ClXAt1_G.js";import"./file-text-DTvj1wzM.js";import"./file-bSD5jgk_.js";import"./find-latest-widget-fence-D01ENK2h.js";import"./format-duration-BCr6uzby.js";import"./RuntimeSetupDialog-Er-lzjmK.js";import"./inline-code-DwFNff3_.js";import"./list-runtime-types-B0CSonAi.js";import"./RuntimeConnectFlow-IaRVgmqH.js";import"./useMutationState-rOg4bnKv.js";import"./runtime-connect-Dn0T5YWv.js";import"./mention-pill-Daeu1X92.js";import"./rotate-ccw-clock-LSKKAcnR.js";import"./unplug-DLA7Ib_s.js";import"./message-square-off-D9hm8WNH.js";import"./registry-BSucT23N.js";import"./file-drag-GDx2qhdk.js";import"./paperclip-CzhXW5qi.js";import"./index-6yT0Qr0s.js";import"./pane-resize-handle-DOchpdJ6.js";import"./UnreadDivider-l_VZ7ECn.js";import"./use-room-follow-claim-BV-MtDQ5.js";import"./use-connector-management-Bo6wOJQS.js";import"./AgentRequestCard--9GA9ymH.js";import"./access-copy-Cj31J6PU.js";import"./query-error-state-COuKRlU0.js";import"./empty-state-aNwJA6H8.js";import"./use-bindings-Bu4yLLR5.js";import"./connection-copy--MA7AN04.js";import"./KeyEntry-CSmznLcG.js";import"./use-update-config-Dfd7KMde.js";import"./use-relay-config-BA6c0FMB.js";function Et({open:e,itemId:n,onClose:o}){const{data:s}=be(),i=ye(),a=(n==null?void 0:n.indexOf("::"))??-1,r=a>=0?n.slice(0,a):void 0,l=a>=0?n.slice(a+2):void 0,d=s==null?void 0:s.find(h=>h.source===r&&h.reason===l),c=()=>{!r||!l||i.mutate({source:r,reason:l},{onSuccess:o})};return t.jsx($,{open:e,onOpenChange:h=>!h&&o(),children:t.jsxs(F,{side:"right",children:[t.jsxs(L,{children:[t.jsx(B,{children:"Messages that never arrived"}),t.jsx(q,{children:r??"Source unknown"})]}),t.jsx(U,{className:"flex-1 px-4",children:d?t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx("p",{className:"text-muted-foreground text-sm",children:"These never reached an agent. Clearing them doesn’t send them."}),t.jsxs("p",{className:"text-foreground text-sm",children:[d.count," message",d.count===1?"":"s"," couldn’t be delivered"]}),t.jsx(I,{variant:"secondary",children:It(d.reason)})]}),t.jsxs("div",{className:"space-y-1 text-sm",children:[t.jsxs("p",{className:"text-muted-foreground",children:["First happened ",A(d.firstSeen)," ago"]}),t.jsxs("p",{className:"text-muted-foreground",children:["Last happened ",A(d.lastSeen)," ago"]})]}),d.sample!=null&&t.jsxs(Se,{children:[t.jsxs(Ne,{className:"text-muted-foreground hover:text-foreground group flex items-center gap-1 text-xs font-medium transition-colors",children:[t.jsx(ke,{className:"size-3 transition-transform group-data-[state=open]:rotate-90"}),"What one of them looked like"]}),t.jsx(we,{children:t.jsx("pre",{className:"bg-muted mt-1 overflow-x-auto rounded-md p-3 font-mono text-xs",children:JSON.stringify(d.sample,null,2)})})]})]}):t.jsx("p",{className:"text-muted-foreground py-8 text-center text-sm",children:"These are cleared already."})}),t.jsxs(z,{children:[d&&t.jsx(b,{variant:"destructive",onClick:c,disabled:i.isPending,children:i.isPending?"Clearing…":"Clear these"}),t.jsx(b,{variant:"outline",onClick:o,children:"Close"})]})]})})}function $t(e){const n=Math.floor(e/1e3);if(n<60)return`${n}s`;const o=Math.floor(n/60),s=n%60;if(o<60)return`${o}m ${s}s`;const i=Math.floor(o/60),a=o%60;return`${i}h ${a}m`}function Ft(e){switch(e){case"blocked":return{label:"Blocked",badge:"outline",tone:"warning",heading:"What it needed",title:"Run that couldn’t use its tools"};case"failed":return{label:"Didn’t finish",badge:"destructive",tone:"error",heading:"Error",title:"Run that didn’t finish"};case"cancelled":return{label:"Cancelled",badge:"secondary",tone:"neutral",heading:"Stopped",title:"Run that was stopped"};case"skipped":return{label:"Skipped",badge:"secondary",tone:"neutral",heading:"Why",title:"Run that never started"};case"running":return{label:"Running",badge:"secondary",tone:"neutral",heading:"Latest",title:"Run that is still going"};default:return{label:"Completed",badge:"secondary",tone:"neutral",heading:"Note",title:"Run that finished"}}}const Lt={error:{box:"bg-destructive/10 border-destructive/20",heading:"text-destructive",body:"text-destructive"},warning:{box:"bg-status-warning-bg border-status-warning-border",heading:"text-status-warning-fg",body:"text-status-warning-fg"},neutral:{box:"bg-muted border-border",heading:"text-foreground",body:"text-foreground/80"}};function Bt({open:e,itemId:n,onClose:o}){const{data:s,isLoading:i,isError:a}=Re(e?n??null:null),r=Ce(),l=W(),d=()=>{s!=null&&s.sessionId&&l(H({session:s.sessionId}))},c=()=>{s&&r.mutate(s.id)},h=s?Ft(s.status):null,g=h?Lt[h.tone]:null;return t.jsx($,{open:e,onOpenChange:f=>!f&&o(),children:t.jsxs(F,{side:"right",children:[t.jsxs(L,{children:[t.jsx(B,{children:(h==null?void 0:h.title)??"Run that needs a look"}),t.jsx(q,{children:n?n.slice(0,8):"Unknown"})]}),t.jsxs(U,{className:"flex-1 px-4",children:[i&&t.jsxs("div",{className:"space-y-4",children:[t.jsx(C,{className:"h-6 w-24"}),t.jsx(C,{className:"h-4 w-48"}),t.jsx(C,{className:"h-20 w-full"})]}),a&&t.jsx("p",{className:"text-destructive py-8 text-center text-sm",children:"Couldn’t load this run."}),!i&&!a&&!s&&t.jsx("p",{className:"text-muted-foreground py-8 text-center text-sm",children:"Already resolved."}),s&&t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex gap-2",children:[t.jsx(I,{variant:h.badge,children:h.label}),t.jsx(I,{variant:"secondary",children:s.trigger==="scheduled"?"Scheduled":"Manual"})]}),t.jsxs("div",{className:"space-y-1 text-sm",children:[s.startedAt&&t.jsxs("p",{className:"text-muted-foreground",children:["Started: ",A(s.startedAt)," ago"]}),s.finishedAt&&t.jsxs("p",{className:"text-muted-foreground",children:["Finished: ",A(s.finishedAt)," ago"]}),s.durationMs!=null&&t.jsxs("p",{className:"text-muted-foreground",children:["Duration: ",$t(s.durationMs)]})]}),s.error&&t.jsxs("div",{className:y("rounded-md border p-3",g.box),children:[t.jsx("p",{className:y("text-sm font-medium",g.heading),children:h.heading}),t.jsx("p",{className:y("mt-1 text-sm",g.body),children:s.error})]}),s.outputSummary&&t.jsxs("div",{className:"space-y-1",children:[t.jsx("p",{className:"text-muted-foreground text-xs font-medium",children:"Output"}),t.jsx("pre",{className:"bg-muted max-h-48 overflow-auto rounded-md p-3 font-mono text-xs",children:s.outputSummary})]})]})]}),t.jsxs(z,{children:[(s==null?void 0:s.sessionId)&&t.jsx(b,{variant:"default",onClick:d,children:"View chat"}),(s==null?void 0:s.status)==="running"&&t.jsx(b,{variant:"destructive",onClick:c,disabled:r.isPending,children:r.isPending?"Cancelling…":"Cancel run"}),t.jsx(b,{variant:"outline",onClick:o,children:"Close"})]})]})})}function qt({agent:e}){const n=Ae(e,e.projectPath??"");return t.jsxs("div",{className:"flex items-center gap-3 py-2",children:[t.jsx(Pe,{color:n.color,emoji:n.emoji,size:"sm",className:"shrink-0"}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{className:"text-foreground truncate text-sm font-medium",children:De(e)}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(I,{variant:"destructive",children:"Unreachable"}),e.runtime&&t.jsx(I,{variant:"secondary",children:Oe(e.runtime).label})]})]}),e.lastSeenAt&&t.jsxs("span",{className:"text-muted-foreground shrink-0 text-xs",children:[A(e.lastSeenAt)," ago"]})]})}function zt({open:e,onClose:n}){const{data:o}=At(void 0,e),s=m.useMemo(()=>o?o.namespaces.flatMap(i=>i.agents).filter(i=>i.healthStatus==="unreachable"):[],[o]);return t.jsx($,{open:e,onOpenChange:i=>!i&&n(),children:t.jsxs(F,{side:"right",children:[t.jsxs(L,{children:[t.jsx(B,{children:"Agents that aren’t answering"}),t.jsxs(q,{children:["DorkOS can’t reach ",s.length," agent",s.length===1?"":"s"," right now"]})]}),t.jsx(U,{className:"flex-1 px-4",children:s.length>0?t.jsx("div",{className:"divide-y",children:s.map(i=>t.jsx(qt,{agent:i},i.id))}):t.jsxs("div",{className:"flex flex-col items-center gap-2 py-8",children:[t.jsx(Ie,{className:"text-status-success size-6"}),t.jsx("p",{className:"text-muted-foreground text-sm",children:"All agents are online"})]})}),t.jsx(z,{children:t.jsx(b,{variant:"outline",onClick:n,children:"Close"})})]})})}function Wt(e){return e.content.suggestion!==void 0}function Ht(){const e=Dt(),{dismissedIds:n}=ge(),o=Me(s=>s.promoEnabled);return m.useMemo(()=>{if(!o)return null;const[s]=Ot(Mt.filter(Wt),e,n,1);return s??null},[e,n,o])}function _t({suggestion:e,promoTitle:n,onAccept:o,onDismiss:s}){return t.jsxs("p",{"data-slot":"quiet-suggestion",className:"text-muted-foreground/70 text-2xs mt-1",children:[e.question," ",t.jsx("button",{type:"button",onClick:o,className:"text-muted-foreground hover:text-foreground focus-ring rounded-sm font-medium underline-offset-4 transition-colors hover:underline focus-visible:underline",children:e.action}),t.jsx("button",{type:"button","aria-label":`Dismiss suggestion: ${n}`,onClick:s,className:"text-muted-foreground/60 hover:text-foreground focus-ring -my-1.5 ml-0.5 inline-flex translate-y-[3px] items-center justify-center rounded-sm p-1.5 align-baseline transition-colors",children:t.jsx(oe,{className:"size-3"})})]})}function Ut({promo:e}){const{dismissPromo:n}=ge(),{activate:o,dialog:s}=Tt(e);return t.jsxs(t.Fragment,{children:[t.jsx(_t,{suggestion:e.content.suggestion,promoTitle:e.content.title,onAccept:o,onDismiss:()=>n(e.id)}),s]})}function Vt(){const e=Ht();return e===null?null:t.jsx(Ut,{promo:e},e.id)}const Gt=["report.daily"];function fe(){const{notifications:e}=Te({kinds:Gt,unread:!0});return m.useMemo(()=>e[0],[e])}function Kt({questions:e,requests:n,schedules:o,approvalsUnavailable:s,attention:i}){const a=[],r=[],l=e+n+o;return l>0?(a.push(`${Ee(e,n,o)} ${l===1?"is":"are"} waiting on you.`),r.push(`${l} waiting`)):s&&(a.push("Couldn’t read approvals."),r.push("Couldn’t read approvals")),i===1?(a.push("1 thing needs attention."),r.push("1 needs attention")):i>1&&(a.push(`${i} things need attention.`),r.push(`${i} need attention`)),{spoken:a.join(" "),compact:r.join(" · ")}}function Yt({notification:e,onDismiss:n}){return t.jsxs("div",{"data-slot":"shift-report-card",className:"border-border/60 bg-background/60 relative rounded-lg border p-3 pr-8",children:[t.jsxs("div",{className:"flex items-start gap-2.5",children:[t.jsx($e,{"aria-hidden":!0,className:"text-muted-foreground mt-0.5 size-3.5 shrink-0"}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{className:"text-foreground text-xs font-medium",children:e.title}),e.body!==void 0&&t.jsx("p",{className:"text-muted-foreground mt-1 text-xs leading-relaxed",children:e.body})]})]}),t.jsx("button",{type:"button",onClick:n,"aria-label":"Dismiss",className:"text-muted-foreground hover:text-foreground focus-ring absolute top-2 right-2 rounded-md p-1 transition-colors",children:t.jsx(oe,{className:"size-3.5"})})]})}const Qt="max-h-[40svh] sm:max-h-[50svh]",Xt={initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0}};function T({title:e,tone:n="waiting",children:o}){const s=m.useId();return t.jsxs("section",{"aria-labelledby":s,className:"min-w-0",children:[t.jsx("h2",{id:s,className:y("mb-2 text-xs font-medium",n==="waiting"?"text-status-warning-fg":"text-muted-foreground"),children:e}),o]})}function X({edge:e}){return t.jsx("div",{"aria-hidden":"true","data-slot":`pinned-triage-fade-${e}`,className:y("from-background/95 via-background/65 pointer-events-none absolute inset-x-0 h-6 to-transparent",e==="bottom"?"bottom-0 bg-gradient-to-t":"top-0 bg-gradient-to-b")})}const J={animate:{transition:{staggerChildren:.04}}};function Jt(e){return e?0:.18}function Zt({approvals:e,asks:n,settlingAsks:o,askAgentNames:s,onOpenSession:i,approvalsUnavailable:a,onRetryApprovals:r,scheduleApprovals:l,errorSignals:d,activityItems:c,onOpenActivity:h,shiftReport:g,presence:f,condensed:j,onExpand:x,className:u}){const p=ie(),v=m.useRef(null),N=Fe(v),k=e.length>0||n.length>0||o.length>0||l.length>0||a,P=d.length>0,w=c.length>0,je=k||P||w||g!==void 0||(f==null?void 0:f.occupied)===!0,O=Kt({questions:n.length,requests:e.length,schedules:l.length,approvalsUnavailable:a,attention:d.length+c.length}),ve=j===!0&&O.compact!=="";return t.jsxs(t.Fragment,{children:[t.jsx("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"sr-only",children:O.spoken}),t.jsxs(G,{initial:!1,children:[ve&&t.jsx(R.div,{"data-slot":"pinned-triage-summary",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:Jt(p===!0)},className:y("bg-background/95 border-border/60 shrink-0 border-b backdrop-blur-sm",u),children:t.jsxs("button",{type:"button",onClick:x,className:"text-muted-foreground hover:text-foreground flex min-h-11 w-full min-w-0 items-center gap-2 px-[var(--msg-padding-x)] text-left text-xs",children:[t.jsx("span",{className:"bg-status-warning-dot size-1.5 shrink-0 rounded-full","aria-hidden":!0}),t.jsx("span",{className:"min-w-0 flex-1 truncate",children:O.compact}),t.jsx(Le,{className:"size-3.5 shrink-0","aria-hidden":!0})]})},"triage-summary"),je&&j!==!0&&t.jsxs(R.div,{"data-slot":"pinned-triage-header",...Xt,transition:{duration:p?0:.25,ease:[0,0,.2,1]},className:y("bg-background/95 border-border/60 relative shrink-0 overflow-hidden border-b backdrop-blur-sm",u),children:[t.jsxs("div",{ref:v,onScroll:N.onScroll,"data-slot":"pinned-triage-scroller",className:y("flex w-full min-w-0 scroll-py-6 flex-col gap-3 overflow-y-auto overscroll-contain px-[var(--msg-padding-x)] py-3",Qt),children:[k&&t.jsxs(T,{title:"Waiting on you",children:[(n.length>0||o.length>0)&&t.jsx(Be,{asks:n,agentNames:s,onOpenSession:i,emptyState:t.jsx("p",{className:"text-muted-foreground text-xs",children:"Nothing needs you"})}),e.length>0&&t.jsx(qe,{approvals:e}),e.length===0&&a&&t.jsx(ze,{onRetry:r}),t.jsx(G,{initial:!1,children:l.map(S=>t.jsx(We,{task:S,className:"mt-2"},S.id))})]}),P&&t.jsx(T,{title:"Needs attention",children:t.jsx("div",{className:"border-status-warning-border/40 bg-background/60 rounded-lg border p-2",children:t.jsx(R.div,{variants:J,initial:"initial",animate:"animate",children:d.map(S=>t.jsx(Pt,{signal:S},S.id))})})}),g&&t.jsx(Yt,{notification:g.notification,onDismiss:g.onDismiss}),w&&t.jsx(T,{title:"Recent activity",tone:"neutral",children:t.jsx("div",{className:"border-border/60 bg-background/60 rounded-lg border p-2",children:t.jsx(R.div,{variants:J,initial:"initial",animate:"animate",children:c.map(S=>t.jsx(He,{notification:S,onOpen:()=>h(S)},S.id))})})}),f==null?void 0:f.node]}),N.start&&t.jsx(X,{edge:"top"}),N.end&&t.jsx(X,{edge:"bottom"})]},"triage-header")]})]})}function es({presence:e,composerFocused:n,onExpand:o,className:s}){const{approvals:i,isError:a,retry:r}=_e(),{interactions:l}=Ue(),d=Ve(),c=Ge(l),{schedules:h,errors:g,activity:f}=ae(),j=Ke(),x=fe(),{mutate:u}=Ye(),p=re({strict:!1}),v=W(),N=Qe(),k=Xe(h),P=Je(i),w=m.useCallback(()=>{v({...le.home(),search:{}})},[v]);return t.jsxs(t.Fragment,{children:[t.jsx(Zt,{approvals:P,asks:l,settlingAsks:d,askAgentNames:c,onOpenSession:V=>{v(H({session:V}))},approvalsUnavailable:a&&i.length===0,onRetryApprovals:r,scheduleApprovals:k,errorSignals:g,activityItems:f,onOpenActivity:j,shiftReport:x===void 0?void 0:{notification:x,onDismiss:()=>u(x.id)},presence:e,condensed:N&&n===!0,onExpand:o,className:s}),t.jsx(Et,{open:p.detail==="dead-letter",itemId:p.itemId,onClose:w}),t.jsx(Bt,{open:p.detail==="failed-run",itemId:p.itemId,onClose:w}),t.jsx(zt,{open:p.detail==="offline-agent",onClose:w})]})}const ts=["What can you help with?","Make my first agent","What’s in this project?","Set up a daily run"];function ss({roomId:e}){const n=m.useCallback(o=>{de.getState().set(e,o),ce.getState().requestFocus(e)},[e]);return t.jsx("div",{className:"w-full px-[var(--msg-padding-x)] pb-1",children:t.jsx(he,{suggestions:ts,onChipClick:n,ariaLabel:"Ways to start",size:"comfortable"})})}function ns(e){var a;const{data:n}=Ze(e),o=((a=n==null?void 0:n.members.find(r=>r.author.id===n.viewerAuthorId))==null?void 0:a.lastReadSeq)??null,[s,i]=m.useState({roomId:null,seq:null});return s.roomId===e?s.seq:o===null?null:(i({roomId:e,seq:o}),o)}function os(e,n){if(e===void 0)return null;let o=null,s=1/0;for(const i of e){if(!i.enabled||i.status!=="active")continue;const a=i.nextRun;if(a==null)continue;const r=Date.parse(a);Number.isNaN(r)||r<=n||r>=s||(s=r,o={name:i.displayName??i.name,at:a})}return o}function is(e,n){const o=new Date(e),s=o.toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"}),i=as(new Date(n),o);return i===0?`today at ${s}`:i===1?`tomorrow at ${s}`:`on ${o.toLocaleDateString(void 0,{weekday:"long",month:"short",day:"numeric"})} at ${s}`}function as(e,n){const o=s=>new Date(s.getFullYear(),s.getMonth(),s.getDate()).getTime();return Math.round((o(n)-o(e))/864e5)}function rs(e,n){return e===null?null:`Next up: ${e.name} runs ${is(e.at,n)}.`}function ls({forwardLook:e,suggestion:n}){return t.jsx(R.div,{"data-slot":"home-quiet-state",initial:{opacity:0},animate:{opacity:1},transition:{duration:.2},className:"border-border/60 shrink-0 border-b",children:t.jsxs("div",{className:"w-full px-[var(--msg-padding-x)] py-2",children:[t.jsxs("p",{className:"text-muted-foreground text-xs",children:[t.jsx("span",{className:"text-foreground/80 font-medium",children:"All quiet."}),e!==null&&t.jsxs(t.Fragment,{children:[" ",e]})]}),n]})})}function ds({roomId:e,presenceOccupied:n}){const o=_(e),s=ns(e),{items:i,isLoading:a,isAnyError:r}=et(),{total:l}=ae(),d=fe(),c=o!==void 0&&o.length>0,h=s!==null&&o!==void 0&&o.every(k=>k.seq<=s),g=i.length>0||a||r||l>0||d!==void 0||n,f=c&&h&&!g,[j,x]=m.useState("waiting");f&&j==="waiting"?x("shown"):!f&&j==="shown"&&x("retired");const u=f&&j!=="retired",p=tt(),{data:v}=st(p&&u),N=nt();return u?t.jsx(ls,{forwardLook:rs(os(v,N),N),suggestion:t.jsx(Vt,{})}):null}const pe="dorkos:home-opened-on";function Z(){const e=new Date,n=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0");return`${e.getFullYear()}-${n}-${o}`}function cs(){try{return localStorage.getItem(pe)}catch{return null}}function us(e){try{localStorage.setItem(pe,e)}catch{}}function ms(){const[e]=m.useState(()=>cs()!==Z());return m.useEffect(()=>{e&&us(Z())},[e]),e}function hs({children:e}){const n=ms(),o=ie(),s=n&&o!==!0;return t.jsx(R.div,{className:"h-full",initial:s?{opacity:0}:!1,animate:{opacity:1},transition:{duration:.45,ease:[0,0,.2,1]},children:e})}const ee="@dorkbot",gs="Build me a tracker for my customers",fs="Make a daily plan board",xe="Something else",ps=[gs,fs,xe];function xs({roomId:e,mode:n}){const o=Rt(),s=ot(),i=m.useCallback(a=>{if(a===xe){de.getState().set(e,`${ee} `),ce.getState().requestFocus(e);return}o.mutate({roomId:e,text:`${ee} ${a}`,clientId:it()})},[e,o]);return n==="starters"?t.jsx("div",{className:"w-full px-[var(--msg-padding-x)] pb-1","data-testid":"first-run-chips",children:t.jsx(he,{suggestions:ps,onChipClick:i,ariaLabel:"First jobs for DorkBot",size:"comfortable"})}):t.jsxs("div",{className:"flex w-full flex-wrap gap-2 px-[var(--msg-padding-x)] pb-1","data-testid":"first-run-connect-chips",children:[t.jsx(b,{size:"sm",onClick:()=>s.open("account"),children:"Continue with DorkOS"}),t.jsx(b,{size:"sm",variant:"outline",onClick:()=>s.open("runtimes"),children:"Use my own AI"})]})}function js(e){var r,l;const{data:n}=at(),o=_(e),s=ue(e,null),i=((r=n==null?void 0:n.onboarding)==null?void 0:r.welcomeEntryId)??null;if(e===null||i===null||!o||s.length>0)return null;const a=o.reduce((d,c)=>d===void 0||c.seq>d.seq?c:d,void 0);return(a==null?void 0:a.id)!==i?null:((l=n==null?void 0:n.onboarding)==null?void 0:l.firstRunPath)==="none"?"connect":"starters"}const vs=5,bs="relative after:absolute after:-inset-x-1 after:-inset-y-2.5 md:after:hidden";function ys(e,n){return e===null||n===null?null:Math.max(0,n-Date.parse(e))}function Ss({row:e,onFollow:n,onViewProfile:o}){const[s,i]=m.useState(null),a=ys(e.since,s),r=e.profileMemberId,l=o===void 0||r===null?void 0:()=>o(r);return t.jsx(kt,{onViewProfile:l,identity:{kind:e.face.kind,displayName:e.name,...e.handle!==null?{handle:e.handle}:{},color:e.face.color,...e.face.emoji!==void 0?{emoji:e.face.emoji}:{},...e.face.imageUrl!==void 0?{imageUrl:e.face.imageUrl}:{},...e.face.origin!==void 0?{origin:e.face.origin}:{},...e.face.kind==="agent"?{agent:{...e.runtime!==null?{runtime:e.runtime}:{},...a!==null?{working:{...e.roomTitle!==null?{room:e.roomTitle}:{},forMs:a}}:{}}}:{}},children:t.jsxs("button",{type:"button","aria-label":e.detail===null?`Watch ${e.name}`:`Watch ${e.name}: ${e.detail}`,onClick:()=>n(e.follow),onPointerEnter:()=>i(Date.now()),onPointerLeave:()=>i(null),onFocus:()=>i(Date.now()),onBlur:()=>i(null),className:y("focus-ring group/identity hover:bg-muted/60 flex min-w-0 items-center gap-1.5 rounded-full py-1 pr-2.5 pl-1 text-xs transition-colors",bs),children:[t.jsx(rt,{size:"xs",kind:e.face.kind,color:e.face.color,...e.face.emoji!==void 0?{emoji:e.face.emoji}:{},...e.face.imageUrl!==void 0?{imageUrl:e.face.imageUrl}:{},...e.face.origin!==void 0?{origin:e.face.origin}:{},fallback:e.face.fallback,status:"working"}),t.jsx("span",{className:"text-foreground shrink-0 font-medium",children:e.name}),e.detail!==null&&t.jsxs("span",{"aria-hidden":!0,className:"text-muted-foreground truncate",children:["· ",e.detail]})]})})}function Ns({rows:e,onFollow:n,onViewProfile:o,className:s}){if(e.length===0)return null;const i=e.slice(0,vs),a=e.length-i.length;return t.jsxs("ul",{"data-testid":"presence-strip","aria-label":"Working right now",className:y("flex items-center gap-x-2 overflow-hidden",s),children:[i.map(r=>t.jsx("li",{className:"min-w-0",children:t.jsx(Ss,{row:r,onFollow:n,onViewProfile:o})},r.id)),a>0&&t.jsx("li",{"aria-label":a===1?"1 more agent is working":`${a} more agents are working`,className:"text-muted-foreground shrink-0 text-xs",children:t.jsxs("span",{"aria-hidden":!0,children:["+",a," more"]})})]})}function ks(e){return`replying in ${e}`}const ws="working in a chat";function Rs(e,n){var i;const o=n.rosters[e];if(o!==void 0)return o.members.map(a=>({author:a.author,origin:a.origin}));const s=(i=n.rooms[e])==null?void 0:i.participants;return s==null?[]:s.map(a=>({author:a}))}function Cs(e){const n=new Map;for(const[o,s]of Object.entries(e))s!==null&&n.set(lt(o),{path:o,manifest:s});return n}function te(e){return{...e,line:ct(e.name,e.binding,e.state),detail:dt(e.binding,e.state)}}function Is(e){const n=Cs(e.agents),o=new Set(e.excludeRoomIds??[]),s=[],i=new Set;for(const l of e.claims){const d=Rs(l.roomId,e).find(f=>f.author.id===l.authorId);if(d===void 0)continue;const c=d.author.agentRef===void 0?void 0:n.get(d.author.agentRef);if(c!==void 0&&i.add(c.path),o.has(l.roomId))continue;const h=e.rooms[l.roomId],g=h===void 0?null:me(h);s.push(te({id:`room:${l.roomId}:${l.authorId}`,name:d.author.displayName,handle:d.author.handle,face:K({record:d.author,override:c===void 0?null:Y(c.manifest),...d.origin!==void 0?{origin:d.origin}:{}}),binding:g===null?null:ks(g),state:l.state,since:l.since,roomTitle:g,runtime:(c==null?void 0:c.manifest.runtime)??null,profileMemberId:c===void 0?null:e.meshIdByPath[c.path]??null,follow:{kind:"room",roomId:l.roomId}}))}const a=new Set(i),r=[];for(const l of e.sessions){if(a.has(l.cwd))continue;const d=e.agents[l.cwd];if(d==null)continue;a.add(l.cwd);const c=d.displayName??d.name;r.push(te({id:`session:${l.sessionId}`,name:c,handle:null,face:K({record:{id:d.id,kind:"agent",displayName:c},override:Y(d)}),binding:ws,state:"working",since:null,roomTitle:null,runtime:d.runtime,profileMemberId:e.meshIdByPath[l.cwd]??null,follow:{kind:"session",sessionId:l.sessionId,cwd:l.cwd}}))}return r.sort((l,d)=>l.name.localeCompare(d.name)||l.id.localeCompare(d.id)),[...s,...r]}function As(e,n,o){var a;const s=new Set(ut(Object.keys(n),Object.values(o))),i=[];for(const[r,l]of Object.entries(n))((a=e[r])==null?void 0:a.lifecycle)==="streaming"&&s.has(r)&&i.push({sessionId:r,cwd:l});return i}const se=[],Ps=[],ne="\0",D="";function Ds(){const e=M(m.useCallback(i=>i.statuses,[])),n=M(m.useCallback(i=>i.statusCwds,[])),o=M(m.useCallback(i=>i.sessions,[])),s=m.useMemo(()=>As(e,n,o).map(i=>`${i.sessionId}${ne}${i.cwd}`).sort().join(D),[e,n,o]);return m.useMemo(()=>s.length===0?Ps:s.split(D).map(i=>{const[a,r]=i.split(ne);return{sessionId:a,cwd:r}}),[s])}function Os(e=[]){const n=mt(),o=ht(),s=Ds(),{data:i}=gt(),{data:a}=ft(),r=m.useMemo(()=>[...new Set(o.map(u=>u.roomId))].sort().join(`
2
2
  `),[o]),l=m.useMemo(()=>r.length===0?[]:r.split(`
3
3
  `),[r]),d=pt({queries:l.map(u=>({queryKey:xt.detail(u),queryFn:()=>n.getRoom(u)})),combine:u=>{const p={};for(const v of u)v.data!==void 0&&(p[v.data.id]=v.data);return p}}),c=m.useMemo(()=>{const u={};for(const p of i??[])u[p.id]=p;return u},[i]),h=m.useMemo(()=>((a==null?void 0:a.agents)??[]).map(u=>u.projectPath),[a]),{data:g}=jt(h),f=m.useMemo(()=>g??{},[g]),j=m.useMemo(()=>{const u={};for(const p of(a==null?void 0:a.agents)??[])u[p.projectPath]=p.id;return u},[a]),x=e.join(D);return m.useMemo(()=>{if(o.length===0&&s.length===0)return se;const u=Is({claims:o,rosters:d,rooms:c,sessions:s,agents:f,meshIdByPath:j,excludeRoomIds:x.length===0?[]:x.split(D)});return u.length===0?se:u},[o,d,c,s,f,j,x])}function Ms(e=[]){const n=Os(e),o=W(),{open:s}=vt(),i=m.useCallback(r=>{if(r.kind==="room"){Q.getState().recordOpened("room",r.roomId),o({...le.channels(),search:{id:r.roomId}});return}r.cwd&&Q.getState().recordOpened("agent",r.cwd),o(H({session:r.sessionId,dir:r.cwd}))},[o]),a=m.useMemo(()=>t.jsx(Ns,{rows:n,onFollow:i,onViewProfile:s}),[n,i,s]);return{occupied:n.length>0,node:a}}function E({title:e,children:n,action:o}){return t.jsxs("div",{className:"text-muted-foreground flex h-full flex-col items-center justify-center gap-2 p-10 text-center text-sm",children:[t.jsx(Nt,{className:"text-muted-foreground/50 size-10","aria-hidden":!0}),t.jsx("p",{className:"text-foreground font-medium",children:e}),t.jsx("p",{className:"max-w-sm",children:n}),o]})}function Ts(){return t.jsxs(t.Fragment,{children:[t.jsx(bt,{children:"Home"}),t.jsx(Es,{})]})}function Es(){var f,j,x;const e=yt(),[n,o]=m.useState(!1),s=m.useCallback(()=>{const u=document.activeElement;wt(u)&&u.blur()},[]),{thread:i,entry:a}=re({strict:!1}),r=St(),l=Ms(e.room===null?[]:[e.room.id]),d=_(((f=e.room)==null?void 0:f.id)??null),c=ue(((j=e.room)==null?void 0:j.id)??null,null),h=d!==void 0&&d.length===0&&c.length===0,g=js(((x=e.room)==null?void 0:x.id)??null);if(e.status==="loading")return t.jsxs("div",{className:"flex h-full flex-col","aria-busy":!0,children:[t.jsxs("div",{className:"flex items-center gap-3 border-b px-4 py-3",children:[t.jsx(C,{className:"size-7 rounded-full"}),t.jsx(C,{className:"h-4 w-40"})]}),t.jsx("div",{className:"flex-1"})]});if(e.status==="error")return t.jsx(E,{title:"Couldn’t load your team room",action:t.jsx(b,{variant:"outline",size:"sm",className:"mt-2",onClick:e.retry,children:"Try again"}),children:"Its messages are safe."});if(e.status==="missing")return t.jsx(E,{title:"Your team room isn’t open yet",children:"DorkOS opens it at startup. Still missing? Restart DorkOS."});if(e.status==="archived"){const u=e.room;return t.jsx(E,{title:`${me(u)} is archived`,action:t.jsx(b,{variant:"outline",size:"sm",className:"mt-2",disabled:r.isPending,onClick:()=>r.mutate({roomId:u.id}),children:r.isPending?"Bringing it back…":"Bring it back"}),children:"Its messages are safe."})}return t.jsx(hs,{children:t.jsx(Ct,{roomId:e.room.id,threadId:i,entrySeq:a,threadRoute:"/",offerJumpBackIn:!0,onComposerFocusChange:o,aboveTimeline:t.jsxs(t.Fragment,{children:[t.jsx(es,{presence:l,composerFocused:n,onExpand:s}),t.jsx(ds,{roomId:e.room.id,presenceOccupied:l.occupied})]}),aboveComposer:g?t.jsx(xs,{roomId:e.room.id,mode:g}):h?t.jsx(ss,{roomId:e.room.id}):void 0})})}const $n=Ts;export{$n as component};
@@ -1 +1 @@
1
- import{e5 as k,r as i,e6 as w,e7 as C,e8 as E,j as e,e as R,e9 as o,ea as D,ar as x,B as M,cR as B,eb as _,bf as L,a$ as Q,cQ as z,b2 as G}from"./index-DKTd8X7n.js";import{Q as H}from"./query-error-state-B456s96E.js";import{P as F}from"./page-container-D03bhclt.js";import{F as K,T as U,C as V}from"./TasksEmptyState-BFw2ODM-.js";import{i as W}from"./registry-DRvQ3ChB.js";import{u as $,S as X}from"./search-x-CzgTzL0z.js";import{S as q}from"./scroll-area-DVd6ctli.js";import"./empty-state-Bxfi7_ss.js";import"./inline-code-DlVYFFW7.js";import"./form-LJ2Rf9ny.js";import"./command-srO4Wv-5.js";import"./AgentPicker-BXes2ymU.js";import"./AgentOptionRow-CF5XZmBx.js";import"./execution-config-afKaYukD.js";import"./settings-for-runtime-BoOa-ZFG.js";import"./list-runtime-types-D5ZO30FL.js";import"./format-cron-DrUISrHj.js";const J=8,Y={visible:{transition:{staggerChildren:.04}},hidden:{}},Z={hidden:{opacity:0,y:8},visible:{opacity:1,y:0}};function ee({tasks:l,isLoading:c,agentMap:u,onEditTask:j,agentId:m}){const s=$(k,{debounce:{search:200}}),[r]=i.useState(0),[f,d]=i.useState(null),n=i.useMemo(()=>m?l.filter(t=>t.agentId===m):l,[l,m]),p=i.useMemo(()=>[...new Set(n.map(t=>t.agentId).filter(t=>!!t))],[n]),h=i.useMemo(()=>w(n,k,s.values,E,{field:s.sortField||C,direction:s.sortDirection}),[n,s.values,s.sortField,s.sortDirection]);return c?e.jsx("div",{className:"space-y-3 py-4",children:Array.from({length:3}).map((t,g)=>e.jsx(R,{className:"h-14 w-full rounded-xl"},g))}):e.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[e.jsxs(o,{state:s,className:"px-0",children:[e.jsx(o.Search,{placeholder:"Filter tasks…"}),e.jsx(o.Primary,{name:"status"}),e.jsx(o.AddFilter,{dynamicOptions:{agent:p}}),e.jsx(o.Sort,{options:E,defaultField:C}),e.jsx(o.ResultCount,{count:h.length,total:n.length,noun:"task"}),e.jsx(o.ActiveFilters,{})]}),e.jsx(q,{className:"min-h-0 flex-1","data-testid":D.tasksList,children:e.jsx("div",{className:"space-y-2 pb-4",children:h.length===0&&n.length>0?e.jsxs(x.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},className:"flex flex-col items-center justify-center gap-3 py-12 text-center",children:[e.jsx(X,{className:"text-muted-foreground/50 size-10"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:s.describeActive()?`No tasks match ${s.describeActive()}`:"No tasks match your filters"}),e.jsx(M,{variant:"outline",size:"sm",onClick:s.clearAll,children:"Clear filters"})]}):e.jsx(x.div,{initial:"hidden",animate:"visible",variants:Y,className:"space-y-2",children:h.map((t,g)=>e.jsx(x.div,{variants:g<J?Z:void 0,transition:{duration:.15},children:e.jsx(B,{task:t,agent:(t.agentId?u.get(t.agentId):void 0)??null,expanded:f===t.id,onToggleExpand:()=>d(f===t.id?null:t.id),onEdit:()=>j(t)})},t.id))},r)})})]})}function te(){return e.jsxs(e.Fragment,{children:[e.jsx(_,{children:"Schedules"}),e.jsx(se,{})]})}function se(){const l=L(),{data:c=[],isLoading:u,isError:j,refetch:m}=Q(l),[s,r]=i.useState(!1),[f,d]=i.useState(),[n,p]=i.useState(null),h=c.some(a=>a.agentId),{data:t}=z(void 0,h||!u),g=i.useMemo(()=>{const a=new Map;for(const S of(t==null?void 0:t.agents)??[])a.set(S.id,S);return a},[t]),{externalTrigger:T,clear:N}=G(),[v,y]=i.useState(!1);T&&!v&&!s?(y(!0),d(void 0),r(!0),N()):!T&&v&&y(!1);const A=a=>{p(a),d(void 0),r(!0)},b=()=>{p(null),d(void 0),r(!0)},O=a=>{d(a),r(!0)},P=a=>{r(a),a||p(null)};if(!l)return e.jsx(K,{icon:W.tasks,name:"Scheduling",description:"Agents run tasks on a schedule, even while you’re away.",command:"dorkos --tasks"});if(j)return e.jsx(H,{className:"h-full",title:"Couldn’t load your scheduled tasks",description:"The DorkOS server didn’t answer. Check that it’s running.",onRetry:()=>void m()});const I=c.length>0;return e.jsxs(e.Fragment,{children:[!I&&!u?e.jsx(x.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15},className:"h-full min-h-0",children:e.jsx(F,{width:"full",children:e.jsx(U,{onCreateWithPreset:A,onCreateBlank:b})})}):e.jsx(x.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15},className:"h-full min-h-0",children:e.jsx(F,{width:"full",scroll:!1,children:e.jsx(ee,{tasks:c,isLoading:u,agentMap:g,onEditTask:O})})}),e.jsx(V,{open:s,onOpenChange:P,editTask:f,initialPreset:n})]})}const ve=te;export{ve as component};
1
+ import{e5 as k,r as i,e6 as w,e7 as C,e8 as E,j as e,e as R,e9 as o,ea as D,ar as x,B as M,cR as B,eb as _,bf as L,a$ as Q,cQ as z,b2 as G}from"./index-CjUfPyOM.js";import{Q as H}from"./query-error-state-COuKRlU0.js";import{P as F}from"./page-container-B9sDc2wq.js";import{F as K,T as U,C as V}from"./TasksEmptyState-CagC0LAa.js";import{i as W}from"./registry-BSucT23N.js";import{u as $,S as X}from"./search-x-Cjf0n9z7.js";import{S as q}from"./scroll-area-BNFXgTKM.js";import"./empty-state-aNwJA6H8.js";import"./inline-code-DwFNff3_.js";import"./form-C_yPntkz.js";import"./command-DpK0GpDM.js";import"./AgentPicker-DoGucmqI.js";import"./AgentOptionRow-D-QjHi5k.js";import"./execution-config-D7JzMYC2.js";import"./settings-for-runtime-BoOa-ZFG.js";import"./list-runtime-types-B0CSonAi.js";import"./format-cron-DUPWkOrW.js";const J=8,Y={visible:{transition:{staggerChildren:.04}},hidden:{}},Z={hidden:{opacity:0,y:8},visible:{opacity:1,y:0}};function ee({tasks:l,isLoading:c,agentMap:u,onEditTask:j,agentId:m}){const s=$(k,{debounce:{search:200}}),[r]=i.useState(0),[f,d]=i.useState(null),n=i.useMemo(()=>m?l.filter(t=>t.agentId===m):l,[l,m]),p=i.useMemo(()=>[...new Set(n.map(t=>t.agentId).filter(t=>!!t))],[n]),h=i.useMemo(()=>w(n,k,s.values,E,{field:s.sortField||C,direction:s.sortDirection}),[n,s.values,s.sortField,s.sortDirection]);return c?e.jsx("div",{className:"space-y-3 py-4",children:Array.from({length:3}).map((t,g)=>e.jsx(R,{className:"h-14 w-full rounded-xl"},g))}):e.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[e.jsxs(o,{state:s,className:"px-0",children:[e.jsx(o.Search,{placeholder:"Filter tasks…"}),e.jsx(o.Primary,{name:"status"}),e.jsx(o.AddFilter,{dynamicOptions:{agent:p}}),e.jsx(o.Sort,{options:E,defaultField:C}),e.jsx(o.ResultCount,{count:h.length,total:n.length,noun:"task"}),e.jsx(o.ActiveFilters,{})]}),e.jsx(q,{className:"min-h-0 flex-1","data-testid":D.tasksList,children:e.jsx("div",{className:"space-y-2 pb-4",children:h.length===0&&n.length>0?e.jsxs(x.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},className:"flex flex-col items-center justify-center gap-3 py-12 text-center",children:[e.jsx(X,{className:"text-muted-foreground/50 size-10"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:s.describeActive()?`No tasks match ${s.describeActive()}`:"No tasks match your filters"}),e.jsx(M,{variant:"outline",size:"sm",onClick:s.clearAll,children:"Clear filters"})]}):e.jsx(x.div,{initial:"hidden",animate:"visible",variants:Y,className:"space-y-2",children:h.map((t,g)=>e.jsx(x.div,{variants:g<J?Z:void 0,transition:{duration:.15},children:e.jsx(B,{task:t,agent:(t.agentId?u.get(t.agentId):void 0)??null,expanded:f===t.id,onToggleExpand:()=>d(f===t.id?null:t.id),onEdit:()=>j(t)})},t.id))},r)})})]})}function te(){return e.jsxs(e.Fragment,{children:[e.jsx(_,{children:"Schedules"}),e.jsx(se,{})]})}function se(){const l=L(),{data:c=[],isLoading:u,isError:j,refetch:m}=Q(l),[s,r]=i.useState(!1),[f,d]=i.useState(),[n,p]=i.useState(null),h=c.some(a=>a.agentId),{data:t}=z(void 0,h||!u),g=i.useMemo(()=>{const a=new Map;for(const S of(t==null?void 0:t.agents)??[])a.set(S.id,S);return a},[t]),{externalTrigger:T,clear:N}=G(),[v,y]=i.useState(!1);T&&!v&&!s?(y(!0),d(void 0),r(!0),N()):!T&&v&&y(!1);const A=a=>{p(a),d(void 0),r(!0)},b=()=>{p(null),d(void 0),r(!0)},O=a=>{d(a),r(!0)},P=a=>{r(a),a||p(null)};if(!l)return e.jsx(K,{icon:W.tasks,name:"Scheduling",description:"Agents run tasks on a schedule, even while you’re away.",command:"dorkos --tasks"});if(j)return e.jsx(H,{className:"h-full",title:"Couldn’t load your scheduled tasks",description:"The DorkOS server didn’t answer. Check that it’s running.",onRetry:()=>void m()});const I=c.length>0;return e.jsxs(e.Fragment,{children:[!I&&!u?e.jsx(x.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15},className:"h-full min-h-0",children:e.jsx(F,{width:"full",children:e.jsx(U,{onCreateWithPreset:A,onCreateBlank:b})})}):e.jsx(x.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15},className:"h-full min-h-0",children:e.jsx(F,{width:"full",scroll:!1,children:e.jsx(ee,{tasks:c,isLoading:u,agentMap:g,onEditTask:O})})}),e.jsx(V,{open:s,onOpenChange:P,editTask:f,initialPreset:n})]})}const ve=te;export{ve as component};
@@ -1 +1 @@
1
- import{a1 as j,a2 as g,r as f,j as e,eb as N,am as i,a0 as b,ec as y,_ as u,b8 as w}from"./index-DKTd8X7n.js";import{I as C}from"./inline-code-DlVYFFW7.js";import{T,d as v,b as p,e as c,a as S,c as d}from"./table-BIdFvzBs.js";import{P as k}from"./page-container-D03bhclt.js";import{G as L}from"./git-branch-D5xr7U5P.js";const F=["workspaces","scan"],P=6e4;function W(){var a,n,l;const s=j(),t=g({queryKey:F,queryFn:()=>s.scanWorktrees(),staleTime:P,refetchOnWindowFocus:!0});return{root:((a=t.data)==null?void 0:a.root)??null,worktrees:((n=t.data)==null?void 0:n.worktrees)??[],warnings:((l=t.data)==null?void 0:l.warnings)??[],isLoading:t.isLoading,isError:t.isError}}const m="—";function A(s){return s.changedFiles===null?m:s.changedFiles===0?"Clean":`${s.changedFiles} changed`}function B(s){const{ahead:t,behind:a,upstreamGone:n}=s;return n?"Branch merged or deleted":t===null||a===null?m:t===0&&a===0?"In sync":[t>0&&`${t} ahead`,a>0&&`${a} behind`].filter(Boolean).join(" · ")}function E({worktree:s}){const t=(s.changedFiles??0)>0;return e.jsxs(p,{children:[e.jsxs(d,{className:"max-w-0",children:[e.jsx("div",{className:"truncate font-medium",children:s.name}),e.jsx("div",{className:"text-muted-foreground truncate text-xs",title:s.path,children:i(s.path)})]}),e.jsx(d,{className:"max-w-0",children:s.readable?s.branch?e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(L,{className:"text-muted-foreground size-3.5 shrink-0"}),e.jsx("span",{className:"truncate text-xs",children:s.branch})]}):e.jsx("span",{className:"text-muted-foreground text-xs",children:"No branch"}):e.jsx(u,{variant:"outline",title:"DorkOS couldn’t read this folder with git.",children:"Can’t read"})}),e.jsx(d,{className:t?"text-status-warning-fg":"text-muted-foreground",children:e.jsx("span",{className:"text-xs whitespace-nowrap",children:A(s)})}),e.jsx(d,{className:"text-muted-foreground hidden md:table-cell",children:e.jsx("span",{className:"text-xs whitespace-nowrap",children:B(s)})}),e.jsx(d,{className:"text-muted-foreground hidden sm:table-cell",children:e.jsx("span",{className:"text-xs whitespace-nowrap",children:s.lastCommitAt?w(s.lastCommitAt):m})})]})}function G({project:s,worktrees:t}){return e.jsxs("section",{children:[e.jsxs("h2",{className:"mb-3 flex items-center gap-2 text-sm font-semibold",children:[s,e.jsx(u,{variant:"secondary",children:t.length})]}),e.jsx("div",{className:"bg-card rounded-lg border",children:e.jsxs(T,{children:[e.jsx(v,{children:e.jsxs(p,{children:[e.jsx(c,{children:"Folder"}),e.jsx(c,{children:"Branch"}),e.jsx(c,{children:"Changes"}),e.jsx(c,{className:"hidden md:table-cell",children:"Compared to remote"}),e.jsx(c,{className:"hidden sm:table-cell",children:"Last commit"})]})}),e.jsx(S,{children:t.map(a=>e.jsx(E,{worktree:a},a.path))})]})})]})}function H(){const{root:s,worktrees:t,warnings:a,isLoading:n,isError:l}=W(),x=f.useMemo(()=>{const r=new Map;for(const o of t){const h=r.get(o.project)??[];h.push(o),r.set(o.project,h)}return[...r.entries()]},[t]);return e.jsxs(k,{width:"wide",children:[e.jsx(N,{children:"Workspaces"}),e.jsx("p",{className:"text-muted-foreground mb-6 text-sm",children:"Copies of your code, per agent."}),a.length>0&&e.jsxs("div",{className:"mb-6 rounded-lg border border-amber-600/40 bg-amber-500/10 p-4",children:[e.jsx("p",{className:"text-sm font-medium",children:"Some folders couldn’t be read"}),e.jsx("p",{className:"text-muted-foreground mt-1 text-sm",children:"This list may be missing what’s inside them."}),e.jsx("ul",{className:"text-muted-foreground mt-2 space-y-0.5 text-xs",children:a.map(r=>e.jsxs("li",{className:"truncate",title:r.path,children:[i(r.path)," (",r.reason,")"]},r.path))})]}),n?e.jsx("p",{className:"text-muted-foreground text-sm",children:"Looking for your worktrees…"}):l?e.jsxs("div",{className:"bg-card rounded-xl border p-10 text-center",children:[e.jsx(b,{className:"text-muted-foreground/60 mx-auto size-8"}),e.jsx("p",{className:"mt-3 font-medium",children:"Couldn’t check your worktrees"}),e.jsx("p",{className:"text-muted-foreground mt-1 text-sm",children:"The scan didn’t finish. DorkOS tries again on its own."})]}):x.length===0?e.jsxs("div",{className:"bg-card rounded-xl border p-10 text-center",children:[e.jsx(y,{className:"text-muted-foreground/60 mx-auto size-8"}),e.jsx("p",{className:"mt-3 font-medium",children:"No worktrees yet"}),e.jsx("p",{className:"text-muted-foreground mt-1 text-sm",children:"A worktree is a copy of your project, so agents’ edits never collide."}),s&&e.jsxs("p",{className:"text-muted-foreground mt-3 truncate text-xs",title:s,"data-slot":"workspaces-root-path",children:["Looking in ",e.jsx(C,{children:i(s)})]})]}):e.jsx("div",{className:"flex flex-col gap-8",children:x.map(([r,o])=>e.jsx(G,{project:r,worktrees:o},r))})]})}const K=H;export{K as component};
1
+ import{a1 as j,a2 as g,r as f,j as e,eb as N,am as i,a0 as b,ec as y,_ as u,b8 as w}from"./index-CjUfPyOM.js";import{I as C}from"./inline-code-DwFNff3_.js";import{T,d as v,b as p,e as c,a as S,c as d}from"./table-B0LsKsEv.js";import{P as k}from"./page-container-B9sDc2wq.js";import{G as L}from"./git-branch-ClXAt1_G.js";const F=["workspaces","scan"],P=6e4;function W(){var a,n,l;const s=j(),t=g({queryKey:F,queryFn:()=>s.scanWorktrees(),staleTime:P,refetchOnWindowFocus:!0});return{root:((a=t.data)==null?void 0:a.root)??null,worktrees:((n=t.data)==null?void 0:n.worktrees)??[],warnings:((l=t.data)==null?void 0:l.warnings)??[],isLoading:t.isLoading,isError:t.isError}}const m="—";function A(s){return s.changedFiles===null?m:s.changedFiles===0?"Clean":`${s.changedFiles} changed`}function B(s){const{ahead:t,behind:a,upstreamGone:n}=s;return n?"Branch merged or deleted":t===null||a===null?m:t===0&&a===0?"In sync":[t>0&&`${t} ahead`,a>0&&`${a} behind`].filter(Boolean).join(" · ")}function E({worktree:s}){const t=(s.changedFiles??0)>0;return e.jsxs(p,{children:[e.jsxs(d,{className:"max-w-0",children:[e.jsx("div",{className:"truncate font-medium",children:s.name}),e.jsx("div",{className:"text-muted-foreground truncate text-xs",title:s.path,children:i(s.path)})]}),e.jsx(d,{className:"max-w-0",children:s.readable?s.branch?e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(L,{className:"text-muted-foreground size-3.5 shrink-0"}),e.jsx("span",{className:"truncate text-xs",children:s.branch})]}):e.jsx("span",{className:"text-muted-foreground text-xs",children:"No branch"}):e.jsx(u,{variant:"outline",title:"DorkOS couldn’t read this folder with git.",children:"Can’t read"})}),e.jsx(d,{className:t?"text-status-warning-fg":"text-muted-foreground",children:e.jsx("span",{className:"text-xs whitespace-nowrap",children:A(s)})}),e.jsx(d,{className:"text-muted-foreground hidden md:table-cell",children:e.jsx("span",{className:"text-xs whitespace-nowrap",children:B(s)})}),e.jsx(d,{className:"text-muted-foreground hidden sm:table-cell",children:e.jsx("span",{className:"text-xs whitespace-nowrap",children:s.lastCommitAt?w(s.lastCommitAt):m})})]})}function G({project:s,worktrees:t}){return e.jsxs("section",{children:[e.jsxs("h2",{className:"mb-3 flex items-center gap-2 text-sm font-semibold",children:[s,e.jsx(u,{variant:"secondary",children:t.length})]}),e.jsx("div",{className:"bg-card rounded-lg border",children:e.jsxs(T,{children:[e.jsx(v,{children:e.jsxs(p,{children:[e.jsx(c,{children:"Folder"}),e.jsx(c,{children:"Branch"}),e.jsx(c,{children:"Changes"}),e.jsx(c,{className:"hidden md:table-cell",children:"Compared to remote"}),e.jsx(c,{className:"hidden sm:table-cell",children:"Last commit"})]})}),e.jsx(S,{children:t.map(a=>e.jsx(E,{worktree:a},a.path))})]})})]})}function H(){const{root:s,worktrees:t,warnings:a,isLoading:n,isError:l}=W(),x=f.useMemo(()=>{const r=new Map;for(const o of t){const h=r.get(o.project)??[];h.push(o),r.set(o.project,h)}return[...r.entries()]},[t]);return e.jsxs(k,{width:"wide",children:[e.jsx(N,{children:"Workspaces"}),e.jsx("p",{className:"text-muted-foreground mb-6 text-sm",children:"Copies of your code, per agent."}),a.length>0&&e.jsxs("div",{className:"mb-6 rounded-lg border border-amber-600/40 bg-amber-500/10 p-4",children:[e.jsx("p",{className:"text-sm font-medium",children:"Some folders couldn’t be read"}),e.jsx("p",{className:"text-muted-foreground mt-1 text-sm",children:"This list may be missing what’s inside them."}),e.jsx("ul",{className:"text-muted-foreground mt-2 space-y-0.5 text-xs",children:a.map(r=>e.jsxs("li",{className:"truncate",title:r.path,children:[i(r.path)," (",r.reason,")"]},r.path))})]}),n?e.jsx("p",{className:"text-muted-foreground text-sm",children:"Looking for your worktrees…"}):l?e.jsxs("div",{className:"bg-card rounded-xl border p-10 text-center",children:[e.jsx(b,{className:"text-muted-foreground/60 mx-auto size-8"}),e.jsx("p",{className:"mt-3 font-medium",children:"Couldn’t check your worktrees"}),e.jsx("p",{className:"text-muted-foreground mt-1 text-sm",children:"The scan didn’t finish. DorkOS tries again on its own."})]}):x.length===0?e.jsxs("div",{className:"bg-card rounded-xl border p-10 text-center",children:[e.jsx(y,{className:"text-muted-foreground/60 mx-auto size-8"}),e.jsx("p",{className:"mt-3 font-medium",children:"No worktrees yet"}),e.jsx("p",{className:"text-muted-foreground mt-1 text-sm",children:"A worktree is a copy of your project, so agents’ edits never collide."}),s&&e.jsxs("p",{className:"text-muted-foreground mt-3 truncate text-xs",title:s,"data-slot":"workspaces-root-path",children:["Looking in ",e.jsx(C,{children:i(s)})]})]}):e.jsx("div",{className:"flex flex-col gap-8",children:x.map(([r,o])=>e.jsx(G,{project:r,worktrees:o},r))})]})}const K=H;export{K as component};
@@ -1,4 +1,4 @@
1
- import{W as Mt,r as f,j as t,gU as Ot,a1 as V,ks as Xe,a2 as Ze,kt as z,a3 as le,a4 as we,ku as $t,kv as ue,kw as X,cf as Ut,kx as It,c6 as Lt,g$ as Ft,cj as Re,l as xe,ky as Kt,kz as _t,kA as Pt,kB as je,kC as Ae,B as S,kD as qt,cQ as zt,kE as et,eu as ae,en as tt,eo as st,ep as nt,eq as at,er as Te,I as Me,fX as rt,hs as Yt,fY as it,fZ as ot,f_ as lt,f$ as ct,g0 as dt,g1 as ut,g2 as Ht,$ as Qt,kF as Bt,kG as Jt,kH as Wt,kI as ge,cT as Oe,cU as $e,cW as Ue,cX as Ie,cY as Le,dU as Fe,dB as Ke,a7 as mt,kJ as Gt,kK as Vt,hT as Xt,kL as Zt,kM as _e,kN as es,kO as ts,kP as ft,kQ as ss,kR as pt,kS as ht,kT as ns,eb as xt,kU as as,kV as rs,kW as is,ji as os,a0 as ls,ey as cs,fe as ds,kX as us,c$ as gt,kY as ms,kZ as fs,ad as ps,n as Qe}from"./index-DKTd8X7n.js";import{T as hs,R as xs,a as gs}from"./RoomSurface-BQhgKnIE.js";import{b as pe,C as Ne}from"./index-BsmR2hi4.js";import{M as ys}from"./markdown-content-CN_dGlgE.js";import{o as vs,a as js,c as Ns}from"./owner-notice-C-Q9ySA7.js";import"./ChannelComposer-DIRPjyyf.js";import"./pane-resize-handle-CZ9rHhNr.js";import"./UnreadDivider-LbVIAoxM.js";import"./use-room-follow-claim-Doq_lWjk.js";import"./use-connector-management-PDVdWccW.js";import"./AgentRequestCard-BuXVpWfb.js";import"./access-copy-BZNjpw9v.js";import"./query-error-state-B456s96E.js";import"./empty-state-Bxfi7_ss.js";import"./use-bindings-BPNK3sUh.js";import"./connection-copy--MA7AN04.js";import"./KeyEntry-DAMr1NNY.js";import"./use-room-sessions-CoEIaBRt.js";import"./file-C-ooqbRY.js";import"./file-drag-GDx2qhdk.js";import"./find-latest-widget-fence-DPQimlUD.js";import"./WidgetErrorCard-CAUx4KUI.js";import"./index-CSqz4B0v.js";import"./card-D4ek-VvX.js";import"./progress-BB97hlmb.js";import"./table-BIdFvzBs.js";import"./package-BVNiaGrb.js";import"./heart-DnR_GX4I.js";import"./git-branch-D5xr7U5P.js";import"./file-text-BJt8biPY.js";import"./paperclip-DQQVX5tJ.js";import"./index-B0jt7Nng.js";import"./RuntimeSetupDialog-CUFie4LV.js";import"./inline-code-DlVYFFW7.js";import"./list-runtime-types-D5ZO30FL.js";import"./RuntimeConnectFlow-DN2ElvcH.js";import"./useMutationState-BAU_J-u3.js";import"./runtime-connect-Dn0T5YWv.js";import"./repeat-DPzic7-j.js";import"./format-duration-BCr6uzby.js";import"./mention-pill-C6OT4gx4.js";import"./rotate-ccw-clock-gqBy98sI.js";import"./unplug-xlfZ61jC.js";import"./message-square-off-DlkAPJdd.js";import"./registry-DRvQ3ChB.js";/**
1
+ import{W as Mt,r as f,j as t,gU as Ot,a1 as V,ks as Xe,a2 as Ze,kt as z,a3 as le,a4 as we,ku as $t,kv as ue,kw as X,cf as Ut,kx as It,c6 as Lt,g$ as Ft,cj as Re,l as xe,ky as Kt,kz as _t,kA as Pt,kB as je,kC as Ae,B as S,kD as qt,cQ as zt,kE as et,eu as ae,en as tt,eo as st,ep as nt,eq as at,er as Te,I as Me,fX as rt,hs as Yt,fY as it,fZ as ot,f_ as lt,f$ as ct,g0 as dt,g1 as ut,g2 as Ht,$ as Qt,kF as Bt,kG as Jt,kH as Wt,kI as ge,cT as Oe,cU as $e,cW as Ue,cX as Ie,cY as Le,dU as Fe,dB as Ke,a7 as mt,kJ as Gt,kK as Vt,hT as Xt,kL as Zt,kM as _e,kN as es,kO as ts,kP as ft,kQ as ss,kR as pt,kS as ht,kT as ns,eb as xt,kU as as,kV as rs,kW as is,ji as os,a0 as ls,ey as cs,fe as ds,kX as us,c$ as gt,kY as ms,kZ as fs,ad as ps,n as Qe}from"./index-CjUfPyOM.js";import{T as hs,R as xs,a as gs}from"./RoomSurface-Bq6Slne3.js";import{b as pe,C as Ne}from"./index-Dj4I8KcL.js";import{M as ys}from"./markdown-content-ysBIqFAg.js";import{o as vs,a as js,c as Ns}from"./owner-notice-Crxco7HN.js";import"./ChannelComposer-CutghXOq.js";import"./pane-resize-handle-DOchpdJ6.js";import"./UnreadDivider-l_VZ7ECn.js";import"./use-room-follow-claim-BV-MtDQ5.js";import"./use-connector-management-Bo6wOJQS.js";import"./AgentRequestCard--9GA9ymH.js";import"./access-copy-Cj31J6PU.js";import"./query-error-state-COuKRlU0.js";import"./empty-state-aNwJA6H8.js";import"./use-bindings-Bu4yLLR5.js";import"./connection-copy--MA7AN04.js";import"./KeyEntry-CSmznLcG.js";import"./use-room-sessions-W62Zl72O.js";import"./file-bSD5jgk_.js";import"./file-drag-GDx2qhdk.js";import"./find-latest-widget-fence-D01ENK2h.js";import"./WidgetErrorCard-I8WiJv2g.js";import"./index-D0yajRDv.js";import"./card-DI7YtQh3.js";import"./progress-eQl1UvNz.js";import"./table-B0LsKsEv.js";import"./package-CD8xq7hk.js";import"./heart-BrjEmIsl.js";import"./git-branch-ClXAt1_G.js";import"./file-text-DTvj1wzM.js";import"./paperclip-CzhXW5qi.js";import"./index-6yT0Qr0s.js";import"./RuntimeSetupDialog-Er-lzjmK.js";import"./inline-code-DwFNff3_.js";import"./list-runtime-types-B0CSonAi.js";import"./RuntimeConnectFlow-IaRVgmqH.js";import"./useMutationState-rOg4bnKv.js";import"./runtime-connect-Dn0T5YWv.js";import"./repeat-wB31CP7I.js";import"./format-duration-BCr6uzby.js";import"./mention-pill-Daeu1X92.js";import"./rotate-ccw-clock-LSKKAcnR.js";import"./unplug-DLA7Ib_s.js";import"./message-square-off-D9hm8WNH.js";import"./registry-BSucT23N.js";/**
2
2
  * @license lucide-react v1.48.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.