dorkos 0.126.2 → 0.126.3

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 +133 -38
  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-BQ66xWcJ.js → AboutPage-ycWTfXI8.js} +1 -1
  5. package/dist/client/assets/{ActivityErrorState-CPbfgXjw.js → ActivityErrorState-DBecAo4-.js} +1 -1
  6. package/dist/client/assets/{ActivityPage-CesljfZn.js → ActivityPage-CGuIeDGm.js} +1 -1
  7. package/dist/client/assets/{ActivityRow-DzhwE0ht.js → ActivityRow-BRiUvjHA.js} +1 -1
  8. package/dist/client/assets/{AdapterIcon-BXJkyF5g.js → AdapterIcon-z6z9LKwd.js} +1 -1
  9. package/dist/client/assets/{AdapterSetupWizard-CwKYl1vG.js → AdapterSetupWizard-Cp56Zx24.js} +1 -1
  10. package/dist/client/assets/{AgentOptionRow-0VdNzXCF.js → AgentOptionRow-BLuSwpNh.js} +1 -1
  11. package/dist/client/assets/{AgentPicker-Ldh64iOA.js → AgentPicker-DazquIgR.js} +1 -1
  12. package/dist/client/assets/{AgentRequestCard-CmAlDGTr.js → AgentRequestCard-BoRmxLKy.js} +1 -1
  13. package/dist/client/assets/{AppearancePage-DmsZPHst.js → AppearancePage-BMiVpe48.js} +1 -1
  14. package/dist/client/assets/{ApplyToOverridesDialog-Ct1W283T.js → ApplyToOverridesDialog-BHIrnfPf.js} +1 -1
  15. package/dist/client/assets/{AttentionSignalRow-B7gezgzA.js → AttentionSignalRow-CjN8lCWI.js} +1 -1
  16. package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-Nqvr65_g.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-BMBnO0fv.js} +1 -1
  17. package/dist/client/assets/{BindingDialog-CpBZoSZU.js → BindingDialog-Bw55sMTh.js} +1 -1
  18. package/dist/client/assets/{BlintzCanvas-BCtfZPrs.js → BlintzCanvas-Dd3bC9vw.js} +3 -3
  19. package/dist/client/assets/{CanvasCsvContent-DYksqzaf.js → CanvasCsvContent-B2S75f6B.js} +1 -1
  20. package/dist/client/assets/{CanvasFileContent-CqEqSxuJ.js → CanvasFileContent-CVSfg4MO.js} +2 -2
  21. package/dist/client/assets/{CanvasModel3dContent-vR6ze4IR.js → CanvasModel3dContent-CNmJsBTS.js} +2 -2
  22. package/dist/client/assets/{ChannelComposer-BVACOdph.js → ChannelComposer-7KpffyFv.js} +3 -3
  23. package/dist/client/assets/{ChatAppsOff-VsPP2Hye.js → ChatAppsOff-D7anOG3n.js} +1 -1
  24. package/dist/client/assets/{CodeMirrorDiff-CmKjH03N.js → CodeMirrorDiff-CfOmRCky.js} +1 -1
  25. package/dist/client/assets/{CodeMirrorEditor-BtNgazuc.js → CodeMirrorEditor-Cyz227_1.js} +1 -1
  26. package/dist/client/assets/{CommitmentList-D9I-CmNy.js → CommitmentList-DKo1Fb1A.js} +1 -1
  27. package/dist/client/assets/{CommitmentsPage-BORMYDZb.js → CommitmentsPage-DIcEZ2ka.js} +1 -1
  28. package/dist/client/assets/{ComputerResourceView-BZ9BxgOi.js → ComputerResourceView-Ck7rJ-SP.js} +1 -1
  29. package/dist/client/assets/{ComputerViewer-CbuU9tXK.js → ComputerViewer-Dw_VpNjD.js} +1 -1
  30. package/dist/client/assets/{ConnectionAccessLists-uE-Fzp6Y.js → ConnectionAccessLists-CETLVH7o.js} +1 -1
  31. package/dist/client/assets/{ConnectionsPage-D7QTHeQQ.js → ConnectionsPage-ZVWDffcl.js} +1 -1
  32. package/dist/client/assets/{ConventionPage-PS2WWCyB.js → ConventionPage-DkJ91wrN.js} +1 -1
  33. package/dist/client/assets/{ExtensionPageRoute-Cn7bYxGB.js → ExtensionPageRoute-FbJo1Qc0.js} +1 -1
  34. package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-DKGNSXVz.js → FloatingTanStackRouterDevtools-CqogiFob-DCLR3iKw.js} +1 -1
  35. package/dist/client/assets/{ForwardConsentHost-CLIHtWwq.js → ForwardConsentHost-Buy5XlH7.js} +1 -1
  36. package/dist/client/assets/HandlePage-CByGC3B8.js +1 -0
  37. package/dist/client/assets/{HeartbeatPage-7MTowke-.js → HeartbeatPage-GXBEcZoJ.js} +1 -1
  38. package/dist/client/assets/{KeyEntry-Cf7D0Oo6.js → KeyEntry-g2VQ33KW.js} +1 -1
  39. package/dist/client/assets/{LexicalField-DqvzeMr3.js → LexicalField-CLd77PuB.js} +1 -1
  40. package/dist/client/assets/{ManagesPage-DxR4zWMf.js → ManagesPage-qCwzJ4Cx.js} +1 -1
  41. package/dist/client/assets/{Marketplace-V_92jKOn.js → Marketplace-DdkdIVPQ.js} +1 -1
  42. package/dist/client/assets/{MarketplaceSourcesView-CjCVMP_d.js → MarketplaceSourcesView-D44G21ff.js} +1 -1
  43. package/dist/client/assets/{McpAppFrame-4JDJsrmg.js → McpAppFrame-DVNWJHrn.js} +1 -1
  44. package/dist/client/assets/{McpSigninBody-DG1XX7XT.js → McpSigninBody-BO0OkvOw.js} +1 -1
  45. package/dist/client/assets/{Model3dViewer-DedBFHsl.js → Model3dViewer-Cvcyx2yv.js} +1 -1
  46. package/dist/client/assets/NamePage-5VUtswMH.js +1 -0
  47. package/dist/client/assets/{NewDirectMessageMenu-C8t7x-sB.js → NewDirectMessageMenu-C_hXtliM.js} +1 -1
  48. package/dist/client/assets/{NotificationsPage-DwGFE3F6.js → NotificationsPage-DP4HAVMA.js} +1 -1
  49. package/dist/client/assets/{OpenMeshSwitch-DPmTA9eg.js → OpenMeshSwitch-0Mkl8abo.js} +1 -1
  50. package/dist/client/assets/{OperatorIdentityForm-Cu0h8Xqy.js → OperatorIdentityForm-BRftJqRq.js} +1 -1
  51. package/dist/client/assets/{PermissionHistory-zD6ksrl2.js → PermissionHistory-Czl5PWN3.js} +1 -1
  52. package/dist/client/assets/{PermissionsPage-Durcnmie.js → PermissionsPage-DAsbrl6Q.js} +1 -1
  53. package/dist/client/assets/{PersonalityPopover-DuRjJuLj.js → PersonalityPopover-liTJ0Lns.js} +1 -1
  54. package/dist/client/assets/PhotoPage-DDcbiGjb.js +1 -0
  55. package/dist/client/assets/{PreviewRefusedNotice-hlYrFDQM.js → PreviewRefusedNotice-DcD1EY2c.js} +1 -1
  56. package/dist/client/assets/{ProfileFields-x-x8vgNo.js → ProfileFields-Bi_AfHOE.js} +1 -1
  57. package/dist/client/assets/{ProfilePanelContainer-8WxopRj2.js → ProfilePanelContainer-BIbOulLu.js} +1 -1
  58. package/dist/client/assets/{ProfileRolePicker-BfciiNpr.js → ProfileRolePicker-BadkFi4V.js} +1 -1
  59. package/dist/client/assets/{PromptSuggestionChips-D34Zeaq_.js → PromptSuggestionChips-C653MlaU.js} +1 -1
  60. package/dist/client/assets/{ReportsToPopover-BhqA5qXi.js → ReportsToPopover-dIbt6aes.js} +1 -1
  61. package/dist/client/assets/{RoomSurface-BlMNuQsT.js → RoomSurface-CssMcozl.js} +1 -1
  62. package/dist/client/assets/{RoomsPage-C52AOHIE.js → RoomsPage-CxwTRRNu.js} +1 -1
  63. package/dist/client/assets/{RunsOnPopover-DLhEKwXF.js → RunsOnPopover-lp8n4lgI.js} +1 -1
  64. package/dist/client/assets/{RuntimeConnectFlow-D3H5Fpkc.js → RuntimeConnectFlow-BAqkzthF.js} +1 -1
  65. package/dist/client/assets/{RuntimeSetupDialog-DPU4QIY9.js → RuntimeSetupDialog-E6f7Rd2W.js} +1 -1
  66. package/dist/client/assets/{SeenDevices-CDSHTsL7.js → SeenDevices-xdR3YQNr.js} +1 -1
  67. package/dist/client/assets/{SessionsPage-Crh3D3Jj.js → SessionsPage-BNZTufty.js} +1 -1
  68. package/dist/client/assets/{SettingsDialog-D0Oh-ku1.js → SettingsDialog-d7SQTDNy.js} +1 -1
  69. package/dist/client/assets/{SkillsPage-BPexZwnJ.js → SkillsPage-DiqUOZup.js} +1 -1
  70. package/dist/client/assets/{TaskDialogWrapper-D6RB8E59.js → TaskDialogWrapper-5gb-f-Uo.js} +1 -1
  71. package/dist/client/assets/{TasksEmptyState-Di3SbhJM.js → TasksEmptyState-g-CavcMv.js} +1 -1
  72. package/dist/client/assets/{TasksPage-CDLsY1Ww.js → TasksPage-BexV_pxB.js} +1 -1
  73. package/dist/client/assets/{TeamComputerEntry-B_q-oVSs.js → TeamComputerEntry-BFYqGL-G.js} +1 -1
  74. package/dist/client/assets/{ToolsPage-gvIVTnwf.js → ToolsPage-Dxt6qOdF.js} +1 -1
  75. package/dist/client/assets/{TopologyGraph-Bp8aL_qw.js → TopologyGraph-Cx_6gdbV.js} +1 -1
  76. package/dist/client/assets/{TourHost-Cg8EHvod.js → TourHost-DvAjpsug.js} +1 -1
  77. package/dist/client/assets/{UnlinkDialog-Ddd1Yxfk.js → UnlinkDialog-fgubvOUd.js} +1 -1
  78. package/dist/client/assets/{UnreadDivider-LL4_YtF0.js → UnreadDivider-BoLcTO_Z.js} +1 -1
  79. package/dist/client/assets/{WidgetErrorCard-BA3P7hNv.js → WidgetErrorCard-CgRMeAEO.js} +1 -1
  80. package/dist/client/assets/{WithheldExtensionsNotice-quqWNbus.js → WithheldExtensionsNotice-CFHBDyIh.js} +1 -1
  81. package/dist/client/assets/{WorkView-C_h8sclU.js → WorkView-5jzcnod5.js} +1 -1
  82. package/dist/client/assets/{_shell-D9q8zLfr.js → _shell-DFfXd1ys.js} +1 -1
  83. package/dist/client/assets/{_shell._home-CrTxBB3h.js → _shell._home-D2GJeGbi.js} +1 -1
  84. package/dist/client/assets/{_shell._home.activity-2M0BJkbQ.js → _shell._home.activity-DRXBBtAq.js} +1 -1
  85. package/dist/client/assets/{_shell._home.index-BTJhhEWN.js → _shell._home.index-CA_GnaUK.js} +1 -1
  86. package/dist/client/assets/{_shell._home.tasks-Dfrqv2nl.js → _shell._home.tasks-Cr4gak8T.js} +1 -1
  87. package/dist/client/assets/{_shell._home.workspaces-DPLQXDdH.js → _shell._home.workspaces-DbWciI1g.js} +1 -1
  88. package/dist/client/assets/{_shell.channels-CJqfUTZ1.js → _shell.channels-C31Txlqh.js} +1 -1
  89. package/dist/client/assets/{_shell.connections-Cpe1hru3.js → _shell.connections-gfevZyC-.js} +1 -1
  90. package/dist/client/assets/{_shell.feedback-requests-BeWCqScf.js → _shell.feedback-requests-CQc7aVrV.js} +1 -1
  91. package/dist/client/assets/_shell.marketplace-BepG1fJe.js +1 -0
  92. package/dist/client/assets/_shell.marketplace_.sources-BBQESbqU.js +1 -0
  93. package/dist/client/assets/_shell.session-DzeI9YIK.js +1 -0
  94. package/dist/client/assets/{_shell.team-EPvcS7RS.js → _shell.team-BlLU5BMC.js} +3 -3
  95. package/dist/client/assets/{_shell.threads-NJDzq9dv.js → _shell.threads-YmF9dQnZ.js} +1 -1
  96. package/dist/client/assets/_shell.x._extensionId-ByRocZjS.js +1 -0
  97. package/dist/client/assets/_shell.x._extensionId_._-ByRocZjS.js +1 -0
  98. package/dist/client/assets/{abnfDiagram-WEYOIA3C-DUHshdrR.js → abnfDiagram-WEYOIA3C-DLiXaMmC.js} +1 -1
  99. package/dist/client/assets/{access-copy-DHfPjN3G.js → access-copy-xWnaUps1.js} +1 -1
  100. package/dist/client/assets/{arc-sP6zNsGB.js → arc-AndXXvZc.js} +1 -1
  101. package/dist/client/assets/{architectureDiagram-ZHVYKT53-C8PTjsPx.js → architectureDiagram-ZHVYKT53-CM4tGveM.js} +1 -1
  102. package/dist/client/assets/{banner-CVrzHqOT.js → banner-BH1gXPTc.js} +1 -1
  103. package/dist/client/assets/{blockDiagram-RJAE7QA3-Cydde2fz.js → blockDiagram-RJAE7QA3-DenkdFXV.js} +1 -1
  104. package/dist/client/assets/{c4Diagram-XDPPPE54-DbM6KAK7.js → c4Diagram-XDPPPE54-DMAlFuoX.js} +1 -1
  105. package/dist/client/assets/{card-DA_Z-FYX.js → card-TbpEl6EH.js} +1 -1
  106. package/dist/client/assets/channel-5-dQamNX.js +1 -0
  107. package/dist/client/assets/{chunk-2E7WHVMD-CEbspaNh.js → chunk-2E7WHVMD-u0q5vCEc.js} +1 -1
  108. package/dist/client/assets/{chunk-2Q5K7J3B-DDP1SiE0.js → chunk-2Q5K7J3B-DBTggfjR.js} +1 -1
  109. package/dist/client/assets/{chunk-4EMNKR2T-BFjozJqd.js → chunk-4EMNKR2T-zu55wq-c.js} +1 -1
  110. package/dist/client/assets/{chunk-55XCU76K-0JSp6acZ.js → chunk-55XCU76K-XLIA3Qss.js} +1 -1
  111. package/dist/client/assets/{chunk-5VM5RSS4-DswTXnmp.js → chunk-5VM5RSS4-DmGjbtZg.js} +1 -1
  112. package/dist/client/assets/{chunk-JWPE2WC7-D0PYncYV.js → chunk-JWPE2WC7-ikMrk6md.js} +1 -1
  113. package/dist/client/assets/{chunk-VQ5W62QI-r5T-ZVBs.js → chunk-VQ5W62QI-cfwin8SC.js} +1 -1
  114. package/dist/client/assets/{chunk-XXDRQBXY-D8kkjktE.js → chunk-XXDRQBXY-Cn3e0QEQ.js} +1 -1
  115. package/dist/client/assets/{chunk-ZCHMQSOR-D6XtRzln.js → chunk-ZCHMQSOR-7RkBP94K.js} +2 -2
  116. package/dist/client/assets/{classDiagram-v2-4MYWR3UA-DUPDMGfm.js → classDiagram-v2-4MYWR3UA-CqVol7t8.js} +1 -1
  117. package/dist/client/assets/{command-BvXBgZfv.js → command-2pl_Cn7b.js} +1 -1
  118. package/dist/client/assets/{cose-bilkent-JH36ORCC-tiQpE-Q8.js → cose-bilkent-JH36ORCC-m0tmlDnx.js} +1 -1
  119. package/dist/client/assets/{cpu-mx7zDf7k.js → cpu-CdCfSlSR.js} +1 -1
  120. package/dist/client/assets/{cynefin-EF2NZ3EQ-BjAUxFfb.js → cynefin-EF2NZ3EQ-Cf7ajLou.js} +1 -1
  121. package/dist/client/assets/{cynefinDiagram-WF24UDRP-PmlyltXR.js → cynefinDiagram-WF24UDRP-Dl8GJr0l.js} +1 -1
  122. package/dist/client/assets/{dagre-NK4GIZVX-DDePjPkn.js → dagre-NK4GIZVX-2yAF6nW_.js} +1 -1
  123. package/dist/client/assets/{diagram-CBK3MWTC-D7N3T4Fx.js → diagram-CBK3MWTC-DaBb9JFm.js} +1 -1
  124. package/dist/client/assets/{diagram-I5XIIV2D-BfZHSbR2.js → diagram-I5XIIV2D-BMeCfhD1.js} +1 -1
  125. package/dist/client/assets/{diagram-ODIL2UCW-sXAa9bzN.js → diagram-ODIL2UCW-ClVKCieB.js} +1 -1
  126. package/dist/client/assets/{diagram-PFBEJUXE-Dfd_61WO.js → diagram-PFBEJUXE-DFIKk-tB.js} +1 -1
  127. package/dist/client/assets/{diagram-RJA3I4VV-BCzdEfnM.js → diagram-RJA3I4VV-DzC_xtYu.js} +1 -1
  128. package/dist/client/assets/{diagram-TYUNFSNR-BMqtz6sZ.js → diagram-TYUNFSNR-BroMVHm2.js} +1 -1
  129. package/dist/client/assets/{ebnfDiagram-V4P3TTPT-CyWj1615.js → ebnfDiagram-V4P3TTPT-GMsyIh86.js} +1 -1
  130. package/dist/client/assets/{elk-QONTBCTQ-BkQMBXse.js → elk-QONTBCTQ-DIpw6SW5.js} +1 -1
  131. package/dist/client/assets/{empty-state-Dv5iV4jb.js → empty-state-B7ufhAFk.js} +1 -1
  132. package/dist/client/assets/{erDiagram-KYQIGQAA-DiPsX7uU.js → erDiagram-KYQIGQAA-CsezeWpx.js} +1 -1
  133. package/dist/client/assets/{execution-config-Bej0Ot8e.js → execution-config-DRqIsff0.js} +1 -1
  134. package/dist/client/assets/{file-DXbyb23e.js → file-DHPgnMgj.js} +1 -1
  135. package/dist/client/assets/{file-exclamation-point-C8XqHyzY.js → file-exclamation-point-DtjBa2XX.js} +1 -1
  136. package/dist/client/assets/{file-text-CRTgqqkn.js → file-text-wmrSy3Io.js} +1 -1
  137. package/dist/client/assets/{find-latest-widget-fence-D1i7qNny.js → find-latest-widget-fence-Bv9D10ve.js} +1 -1
  138. package/dist/client/assets/{flowDiagram-IUGLLWBU-BSM44aJP.js → flowDiagram-IUGLLWBU-BGwNqglr.js} +1 -1
  139. package/dist/client/assets/{form-DYSiVEri.js → form-CA_eiUg-.js} +1 -1
  140. package/dist/client/assets/{format-cron-DYYwmo-o.js → format-cron-YPhIy57w.js} +1 -1
  141. package/dist/client/assets/{ganttDiagram-R7GPNTJY-BWCjYexX.js → ganttDiagram-R7GPNTJY-4IlzTCzA.js} +1 -1
  142. package/dist/client/assets/{git-branch-1zYKSuur.js → git-branch-BLIYLcM4.js} +1 -1
  143. package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-ULC7Zunc.js → gitGraphDiagram-PDYL7XHY-HeaC8vlP.js} +1 -1
  144. package/dist/client/assets/{graph-BsZzo5TN.js → graph-Ch9lnHSS.js} +1 -1
  145. package/dist/client/assets/{heart-C4CSHUW7.js → heart-D4fTvM5q.js} +1 -1
  146. package/dist/client/assets/{highlighted-body-KPVGNVTW-CFECg7iB.js → highlighted-body-KPVGNVTW-KPma22SA.js} +1 -1
  147. package/dist/client/assets/{image-lightbox-M9t3Wulc.js → image-lightbox-DI18fB2Q.js} +1 -1
  148. package/dist/client/assets/{image-off-c01kxBAm.js → image-off-DRgXXpgv.js} +1 -1
  149. package/dist/client/assets/{index-BScgHCO_.js → index--2mMmier.js} +1 -1
  150. package/dist/client/assets/{index-DG13Cp5o.js → index-2J89pJxF.js} +1 -1
  151. package/dist/client/assets/{index-C1XazYWZ.js → index-3UGWygRZ.js} +1 -1
  152. package/dist/client/assets/{index-Dt7RONID.js → index-B-4XmK5Q.js} +1 -1
  153. package/dist/client/assets/index-B9X2-pzp.js +1 -0
  154. package/dist/client/assets/{index-Du4HX97h.js → index-BAd8jUzo.js} +2 -2
  155. package/dist/client/assets/{index-UJq1qaku.js → index-BMYGo6Ki.js} +1 -1
  156. package/dist/client/assets/{index-B3xeyV6n.js → index-BY0SKYuc.js} +1 -1
  157. package/dist/client/assets/{index-DIDUjTkq.js → index-B_56Srtt.js} +1 -1
  158. package/dist/client/assets/{index-uLbyd6YP.js → index-BmlBYrxT.js} +1 -1
  159. package/dist/client/assets/{index-Br35Gqfz.js → index-BtRM2yox.js} +1 -1
  160. package/dist/client/assets/{index-DyN65ufd.js → index-ButY6gKr.js} +1 -1
  161. package/dist/client/assets/{index-BYY8HEOz.js → index-C-X6jaVm.js} +1 -1
  162. package/dist/client/assets/{index-XEE1k4cl.js → index-C3IsCAxA.js} +1 -1
  163. package/dist/client/assets/{index-BTGRc0hC.js → index-COoO8dzi.js} +1 -1
  164. package/dist/client/assets/{index-BIVIHPoe.js → index-CRCfkwyN.js} +1 -1
  165. package/dist/client/assets/{index-BRH6C3LJ.js → index-CTTaeOCw.js} +1 -1
  166. package/dist/client/assets/index-CgpRBcA4.js +1 -0
  167. package/dist/client/assets/{index-DrENuQdJ.js → index-ClbMjgcZ.js} +1 -1
  168. package/dist/client/assets/{index-CnltS8ym.js → index-CucieFDK.js} +1 -1
  169. package/dist/client/assets/{index-DQTTC52E.js → index-D0cIffaH.js} +1 -1
  170. package/dist/client/assets/{index-B-7P1Q9s.js → index-D9w0FBQG.js} +1 -1
  171. package/dist/client/assets/{index-BqwCOIbF.js → index-DHZS9Lod.js} +1 -1
  172. package/dist/client/assets/{index-DsasLE1l.js → index-DSIdPh8G.js} +1 -1
  173. package/dist/client/assets/{index-CAAsqmfP.js → index-DTRAR0KK.js} +1 -1
  174. package/dist/client/assets/{index-LpaxG4VS.js → index-DbV3-jog.js} +1 -1
  175. package/dist/client/assets/{index-JG_0k1NX.js → index-Dbujw1c2.js} +1 -1
  176. package/dist/client/assets/{index-C3swXqWW.js → index-DpvGUFpV.js} +1 -1
  177. package/dist/client/assets/{index-CAjKQnAd.js → index-DuvW22xi.js} +1 -1
  178. package/dist/client/assets/{index-D847rJXW.js → index-Dy9bWvna.js} +1 -1
  179. package/dist/client/assets/{index-B_he44rF.js → index-EDXuyCOT.js} +1 -1
  180. package/dist/client/assets/{index-FwAvbbet.js → index-Ix2nCAz0.js} +1 -1
  181. package/dist/client/assets/{index-BSxkprTm.js → index-JoxvTUfo.js} +3 -3
  182. package/dist/client/assets/{index-YXyEu3Ia.js → index-QSo53dH-.js} +1 -1
  183. package/dist/client/assets/{index-DhkfALZp.js → index-bzM-k5lI.js} +1 -1
  184. package/dist/client/assets/{index-Ce3HZQem.js → index-jk2K24il.js} +1 -1
  185. package/dist/client/assets/{index-DzHj8lCz.js → index-mRMaqxu5.js} +9 -9
  186. package/dist/client/assets/{index-B6Scr7KJ.js → index-p3WivF1M.js} +226 -226
  187. package/dist/client/assets/{index-DrQqkQq_.js → index-qEI7Rsr1.js} +1 -1
  188. package/dist/client/assets/{index-DhoaVQXu.js → index-rPJ8b_DO.js} +1 -1
  189. package/dist/client/assets/{index-jLIoULQt.js → index-uG06zgQo.js} +1 -1
  190. package/dist/client/assets/{index-DhYnXLRT.js → index-uy36h8lC.js} +1 -1
  191. package/dist/client/assets/{index-BnXWm8Db.js → index-zvAbU6ah.js} +1 -1
  192. package/dist/client/assets/{index.esm-CZ68Qd2t.js → index.esm-CxXuMuQv.js} +1 -1
  193. package/dist/client/assets/{infoDiagram-MVDRKAX5-BCjhXqIT.js → infoDiagram-MVDRKAX5-g9EeD2xH.js} +1 -1
  194. package/dist/client/assets/{inline-code-BKPMIXZR.js → inline-code-14c1Gacs.js} +1 -1
  195. package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-C9rsv2nh.js → ishikawaDiagram-HPEHV2GE-Zv5DrRnv.js} +1 -1
  196. package/dist/client/assets/{journeyDiagram-BOSHW7O7-BRYr1XL1.js → journeyDiagram-BOSHW7O7-COiWWTez.js} +1 -1
  197. package/dist/client/assets/{kanban-definition-FNSA4HC5-2ey8FXEn.js → kanban-definition-FNSA4HC5-DnQa8qXB.js} +1 -1
  198. package/dist/client/assets/{layers-DE3wjQuk.js → layers-D_NEJsnH.js} +1 -1
  199. package/dist/client/assets/{lightbulb-BXJIRUdm.js → lightbulb-EadQi_Lr.js} +1 -1
  200. package/dist/client/assets/{link-2-DzWm9OxA.js → link-2-DugR2HHU.js} +1 -1
  201. package/dist/client/assets/{list-runtime-types-BhkZkTrB.js → list-runtime-types-iJaKcim4.js} +1 -1
  202. package/dist/client/assets/{markdown-content-Bk9lCksw.js → markdown-content-BFHUHPgi.js} +1 -1
  203. package/dist/client/assets/{mention-pill-os_7QQu2.js → mention-pill-DXBno6EY.js} +1 -1
  204. package/dist/client/assets/{mermaid.core-BcRUBvZd.js → mermaid.core-C6ckWvkG.js} +4 -4
  205. package/dist/client/assets/{message-square-off-DuOiETNI.js → message-square-off-BH8wbm2a.js} +1 -1
  206. package/dist/client/assets/{mindmap-definition-6OY57UG3-DBhXkS2i.js → mindmap-definition-6OY57UG3-DV4PNLc-.js} +1 -1
  207. package/dist/client/assets/{more-details-Bt9nlPmS.js → more-details-DhdX4DGU.js} +1 -1
  208. package/dist/client/assets/{owner-notice-4ZSBxa2K.js → owner-notice-FMj3k7-f.js} +1 -1
  209. package/dist/client/assets/{package-BmOMrNwc.js → package-0mI7-RiJ.js} +1 -1
  210. package/dist/client/assets/{page-container-LomhzyuS.js → page-container-DRyYoDkA.js} +1 -1
  211. package/dist/client/assets/{pane-resize-handle-BOtzx5Q4.js → pane-resize-handle-OBc3uYxQ.js} +1 -1
  212. package/dist/client/assets/{paperclip-C1tkiT74.js → paperclip-BsTJpkyE.js} +1 -1
  213. package/dist/client/assets/{path-input-JHTlL97W.js → path-input-CFm1b1pk.js} +1 -1
  214. package/dist/client/assets/{pegDiagram-ECIUJNBX-B01fb3t0.js → pegDiagram-ECIUJNBX-Cboo0f6B.js} +1 -1
  215. package/dist/client/assets/{pieDiagram-GNMPY74T-BJ7JYrTk.js → pieDiagram-GNMPY74T-CiihSor1.js} +1 -1
  216. package/dist/client/assets/{plug-CsqfQsYq.js → plug-BdnJAo1j.js} +1 -1
  217. package/dist/client/assets/{primer-trigger-DLdK7lVr.js → primer-trigger-BV4xZfFz.js} +1 -1
  218. package/dist/client/assets/{profile-errors-CpvSy5wY.js → profile-errors-B08zStmk.js} +1 -1
  219. package/dist/client/assets/{progress-qB87L0zJ.js → progress-CpiQE0rv.js} +1 -1
  220. package/dist/client/assets/{quadrantDiagram-D57K4MC3-mJYGGmOV.js → quadrantDiagram-D57K4MC3-dF0oKeMn.js} +1 -1
  221. package/dist/client/assets/{query-error-state-MyJ1ivia.js → query-error-state-B0RUeb10.js} +1 -1
  222. package/dist/client/assets/{radio-DJV7l0fv.js → radio-CAGXbJK_.js} +1 -1
  223. package/dist/client/assets/{railroadDiagram-Y72NRBL7-BlXWwQe2.js → railroadDiagram-Y72NRBL7-ClkFJVq1.js} +1 -1
  224. package/dist/client/assets/{registry-tJrGs7kB.js → registry-Cog_2xvt.js} +4 -4
  225. package/dist/client/assets/registry-DLWJMbtY.js +1 -0
  226. package/dist/client/assets/{relay-trace-schemas-TH0-GYCB.js → relay-trace-schemas-CNDSmhcJ.js} +1 -1
  227. package/dist/client/assets/{repeat-CBnopqBr.js → repeat-Dag80z5v.js} +1 -1
  228. package/dist/client/assets/{requirementDiagram-EQYSW5RA-Dqr1Y74x.js → requirementDiagram-EQYSW5RA-Cey6FmFd.js} +1 -1
  229. package/dist/client/assets/{room-files-source-BFo0FEUP.js → room-files-source-BKUFMU_b.js} +1 -1
  230. package/dist/client/assets/{rotate-ccw-clock-D9XRHj5E.js → rotate-ccw-clock-egrvXlKX.js} +1 -1
  231. package/dist/client/assets/{rotate-cw-DNa7ENG3.js → rotate-cw-Po-L3HFe.js} +1 -1
  232. package/dist/client/assets/{sankeyDiagram-SY24JHO5-DGYZs_kW.js → sankeyDiagram-SY24JHO5-BsIuHjbJ.js} +1 -1
  233. package/dist/client/assets/{scroll-area-Bf6IGziJ.js → scroll-area-C7vKp2H4.js} +1 -1
  234. package/dist/client/assets/{search-x-DFBBEouE.js → search-x-C_BEqIuX.js} +1 -1
  235. package/dist/client/assets/{sequenceDiagram-BLEHNHQU-BW3u4L9y.js → sequenceDiagram-BLEHNHQU-BJZXJxwu.js} +1 -1
  236. package/dist/client/assets/{shield-x-WGxwrtNV.js → shield-x-hHpT8rAA.js} +1 -1
  237. package/dist/client/assets/{signed-in-eV4_EXuv.js → signed-in-BhArfIJC.js} +1 -1
  238. package/dist/client/assets/{sizeCapture-INFHLROL-C1TpueOu.js → sizeCapture-INFHLROL-DYCQyn7S.js} +1 -1
  239. package/dist/client/assets/{soul-file-e1iYX9IV.js → soul-file-Doekkv7n.js} +1 -1
  240. package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-DvrHUauN.js → stateDiagram-v2-A6IESKWZ-C6bUDAO7.js} +1 -1
  241. package/dist/client/assets/{swimlanes-B3ENRKFQ-BUbTcoId.js → swimlanes-B3ENRKFQ-DGyTrJBT.js} +1 -1
  242. package/dist/client/assets/swimlanesDiagram-AYQRV4AK-DrZ99xGr.js +8 -0
  243. package/dist/client/assets/{table-DsxLk3Gx.js → table-9KRGRv_s.js} +1 -1
  244. package/dist/client/assets/{timeline-definition-JXYKGLGB-CzbVpGxn.js → timeline-definition-JXYKGLGB-CHAJwSq6.js} +1 -1
  245. package/dist/client/assets/{trust-posture-Blofy7eE.js → trust-posture-BQE9NSf_.js} +1 -1
  246. package/dist/client/assets/{unplug-B6dUhqA7.js → unplug-CklGWwz7.js} +1 -1
  247. package/dist/client/assets/untrusted-text-BDygHCRk.js +1 -0
  248. package/dist/client/assets/{unverified-catalog-notice-6pwZtIjx.js → unverified-catalog-notice-9mykZSlO.js} +1 -1
  249. package/dist/client/assets/{use-adapter-catalog-J43bUHJu.js → use-adapter-catalog-CDxy08u_.js} +1 -1
  250. package/dist/client/assets/{use-bindings-BgXZ0D7k.js → use-bindings-CPbqKyo6.js} +1 -1
  251. package/dist/client/assets/{use-composer-prefs--zO2mm_M.js → use-composer-prefs-C7v03Xx_.js} +1 -1
  252. package/dist/client/assets/{use-connector-management-9Q7wHb06.js → use-connector-management-COqWo76Y.js} +1 -1
  253. package/dist/client/assets/{use-deep-link-scroll-CXqwdwGr.js → use-deep-link-scroll-BuYR3PaO.js} +1 -1
  254. package/dist/client/assets/{use-delete-binding-BBQNMtUY.js → use-delete-binding-Dfz8BlLn.js} +1 -1
  255. package/dist/client/assets/{use-dev-links-C643CCcq.js → use-dev-links-Cu2JmM-_.js} +1 -1
  256. package/dist/client/assets/{use-direct-message-panel-BD_daG2E.js → use-direct-message-panel-DobIp_O4.js} +1 -1
  257. package/dist/client/assets/{use-external-adapter-catalog-BjbC1V6t.js → use-external-adapter-catalog-OLn4l20Q.js} +1 -1
  258. package/dist/client/assets/{use-full-activity-feed-DUH8r8jx.js → use-full-activity-feed-DNrhQueu.js} +1 -1
  259. package/dist/client/assets/use-is-below-desktop-7gY1n-47.js +1 -0
  260. package/dist/client/assets/{use-local-browser-P93oA-F5.js → use-local-browser-DPdkgs06.js} +1 -1
  261. package/dist/client/assets/{use-mesh-topology-B0k0gLoW.js → use-mesh-topology-Ci7r-pAi.js} +1 -1
  262. package/dist/client/assets/{use-mounted-ref-DE7EQsBF.js → use-mounted-ref-CWXhSyZ8.js} +1 -1
  263. package/dist/client/assets/{use-notification-prefs-B8JtshQ0.js → use-notification-prefs-GJ2coibL.js} +1 -1
  264. package/dist/client/assets/use-pending-read-DcVJ8fZb.js +1 -0
  265. package/dist/client/assets/{use-personality-commit-Dh5Sejj_.js → use-personality-commit-Da2BJ_58.js} +1 -1
  266. package/dist/client/assets/{use-promo-activation-C9FWA7ru.js → use-promo-activation-D4PAd7pd.js} +1 -1
  267. package/dist/client/assets/{use-promo-dismissals-BIfafj9f.js → use-promo-dismissals-BCBu0s3k.js} +1 -1
  268. package/dist/client/assets/{use-pulse-freshness-CxzVMmVK.js → use-pulse-freshness-CHLSUL-h.js} +1 -1
  269. package/dist/client/assets/{use-relay-config-DQE3dmJ2.js → use-relay-config-C6rPlEud.js} +1 -1
  270. package/dist/client/assets/{use-room-follow-claim-B1QPFaUb.js → use-room-follow-claim-BSijPV3c.js} +1 -1
  271. package/dist/client/assets/{use-room-sessions-CdjzO67_.js → use-room-sessions-CNqHgLVa.js} +1 -1
  272. package/dist/client/assets/{use-roving-tab-list-Nu-MIapD.js → use-roving-tab-list-EsqX22Ik.js} +1 -1
  273. package/dist/client/assets/use-session-canvas-DAGOz8a6.js +27 -0
  274. package/dist/client/assets/{use-status-budget-DgeTxC3h.js → use-status-budget-CHln-8aP.js} +1 -1
  275. package/dist/client/assets/{use-transform-CiJqtMBf.js → use-transform-BmyqpcvO.js} +1 -1
  276. package/dist/client/assets/{use-unclaimed-chats-Blkq6U4D.js → use-unclaimed-chats-9Clj_rwl.js} +1 -1
  277. package/dist/client/assets/use-update-config-T78vOnRy.js +1 -0
  278. package/dist/client/assets/{useMutationState-lbcdmnfE.js → useMutationState-B61VoWtY.js} +1 -1
  279. package/dist/client/assets/{usecaseDiagram-WPOLBNNX-BM36oESm.js → usecaseDiagram-WPOLBNNX-BUqj8rIH.js} +1 -1
  280. package/dist/client/assets/{vennDiagram-Q3Y3IDCW-Zrybcs91.js → vennDiagram-Q3Y3IDCW-B09oli-Z.js} +1 -1
  281. package/dist/client/assets/{wardleyDiagram-IVAIDKWA-CO4pzGG0.js → wardleyDiagram-IVAIDKWA-BE7gzLdw.js} +1 -1
  282. package/dist/client/assets/{xychartDiagram-4URNHDU4-pi_wF1CM.js → xychartDiagram-4URNHDU4-CbGKfmuW.js} +1 -1
  283. package/dist/client/index.html +1 -1
  284. package/dist/server/index.js +5692 -4710
  285. package/dist/server/index.js.map +2 -2
  286. package/package.json +4 -4
  287. package/dist/client/assets/HandlePage-BjlcYr_l.js +0 -1
  288. package/dist/client/assets/NamePage-A8X09lY7.js +0 -1
  289. package/dist/client/assets/PhotoPage-DP5WoeFd.js +0 -1
  290. package/dist/client/assets/_shell.marketplace-CzLqm8iR.js +0 -1
  291. package/dist/client/assets/_shell.marketplace_.sources-DtraxnMx.js +0 -1
  292. package/dist/client/assets/_shell.session-72JEfodU.js +0 -1
  293. package/dist/client/assets/_shell.x._extensionId-CcJi8pKR.js +0 -1
  294. package/dist/client/assets/_shell.x._extensionId_._-CcJi8pKR.js +0 -1
  295. package/dist/client/assets/channel-DMgpNBDz.js +0 -1
  296. package/dist/client/assets/index-e6oawwKv.js +0 -1
  297. package/dist/client/assets/index-j30EyYIU.js +0 -1
  298. package/dist/client/assets/registry-BrjQCdmG.js +0 -1
  299. package/dist/client/assets/swimlanesDiagram-AYQRV4AK-wkooBe_N.js +0 -8
  300. package/dist/client/assets/untrusted-text-pHjcUwfI.js +0 -1
  301. package/dist/client/assets/use-is-below-desktop-DAZnwJGB.js +0 -1
  302. package/dist/client/assets/use-pending-read-DeGO1wGC.js +0 -1
  303. package/dist/client/assets/use-session-canvas-BfKGOpNy.js +0 -27
  304. package/dist/client/assets/use-update-config-BFFW_6Mc.js +0 -1
@@ -1 +1 @@
1
- import{a1 as u,dM as h,a4 as p,dN as k,j as r,d2 as D,d3 as j,d5 as x,d6 as L,d7 as R,dO as P,B as f,a7 as l}from"./index-B6Scr7KJ.js";import{u as m}from"./use-dev-links-C643CCcq.js";function y(){const e=u();return p({mutationFn:t=>e.previewDevLink(t),meta:{suppressErrorToast:!0}})}function A(){const e=u(),t=m(),o=h(n=>n.forget);return p({mutationFn:n=>e.linkDevLink(n),meta:{suppressErrorToast:!0},onSuccess:n=>{n.status==="linked"&&(o(n.link),t())}})}function $(){const e=u(),t=m(),o=h(n=>n.forget);return p({mutationFn:({name:n,...s})=>e.unlinkDevLink(n,s),meta:{suppressErrorToast:!0},onSuccess:(n,s)=>{o(s),t()}})}const w=/^(\S+) didn't build:/;function g(e){const t=e.length===1?w.exec(e[0]):null;return t?`Couldn’t reload: ${t[1]} has a build error.`:"Couldn’t reload your last edit."}function N(e,t,o){if(e.state!=="active")return{kind:e.state};const n=o==null?void 0:o.lastReloadAt,s=t!==void 0&&(o===void 0||t.at>=o.linkedAt)?t:void 0,i=s!==void 0&&(n===void 0||s.at>=n);if(i&&s.errors&&s.errors.length>0)return{kind:"reload-failed",at:s.at,headline:g(s.errors),details:s.errors};const d=i?s.at:n;return d?{kind:"reloaded",at:d}:{kind:"watching"}}function C(e,t){const o=Math.max(0,Math.floor((t-new Date(e).getTime())/1e3));if(o<2)return"Reloaded just now";if(o<60)return`Reloaded ${o}s ago`;const n=Math.floor(o/60);if(n<60)return`Reloaded ${n}m ago`;const s=Math.floor(n/60);return s<24?`Reloaded ${s}h ago`:`Reloaded ${new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"})}`}function v(e){return e.agentPath?{scope:"project",projectPath:e.agentPath}:{scope:"global"}}function F(e,t){var s;const{scope:o}=v(t),n=(s=t.devLink)==null?void 0:s.path;return e==null?void 0:e.find(i=>i.name===t.name&&i.scope===o&&i.path===n)}function T(e,t){return t?{name:t.name,scope:t.scope,...t.projectPath!==void 0&&{projectPath:t.projectPath}}:{name:e.name,...v(e)}}function I(e,t){return t.restored==="installed"?{title:`${e} runs from the installed copy.`}:t.parkedLeftAt?{title:`${e} unlinked. Its installed copy couldn’t come back.`,description:`It’s still set aside at ${t.parkedLeftAt}.`}:t.leftInPlace?{title:`${e} unlinked.`,description:"Something else was in its place. It was left as it is."}:{title:`${e} removed.`}}function M({target:e,onClose:t,onUnlinked:o}){const n=$(),s=e?k(e.name):"",i=(e==null?void 0:e.then)==="install";async function d(){if(e)try{const a=await n.mutateAsync({name:e.name,scope:e.scope,...e.projectPath!==void 0&&{projectPath:e.projectPath}});if(i&&a.restored==="removed"&&!a.parkedLeftAt)l.success(`${s} unlinked.`,{description:a.leftInPlace?"Something else was in its place. It was left as it is.":"It’s not installed until you finish the install."});else{const c=I(s,a);l.success(c.title,c.description?{description:c.description}:void 0)}o==null||o(e,a),t()}catch(a){l.error(`Couldn’t unlink ${s}`,{description:a instanceof Error?a.message:void 0})}}return r.jsx(D,{open:e!==null,onOpenChange:a=>!a&&t(),children:r.jsx(j,{className:"!min-h-0 sm:max-w-md",children:e&&r.jsxs(r.Fragment,{children:[r.jsxs(x,{className:"text-left",children:[r.jsx(L,{className:"text-left",children:i?`Install the published ${s}?`:`Unlink ${s}?`}),r.jsx(R,{className:"text-left",children:i?`${s} is unlinked first. Your folder is not touched.`:e.parked?"Your installed copy comes back.":`${s} is removed. Your folder is not touched.`})]}),r.jsxs(P,{children:[r.jsx(f,{variant:"ghost",onClick:t,disabled:n.isPending,children:"Cancel"}),r.jsx(f,{onClick:()=>void d(),disabled:n.isPending,children:n.isPending?"Unlinking…":i?"Unlink and install":"Unlink"})]})]})})})}export{M as U,T as a,N as b,C as c,v as d,A as e,F as f,y as u};
1
+ import{a1 as u,dM as h,a4 as p,dN as k,j as r,d2 as D,d3 as j,d5 as x,d6 as L,d7 as R,dO as P,B as f,a7 as l}from"./index-p3WivF1M.js";import{u as m}from"./use-dev-links-Cu2JmM-_.js";function y(){const e=u();return p({mutationFn:t=>e.previewDevLink(t),meta:{suppressErrorToast:!0}})}function A(){const e=u(),t=m(),o=h(n=>n.forget);return p({mutationFn:n=>e.linkDevLink(n),meta:{suppressErrorToast:!0},onSuccess:n=>{n.status==="linked"&&(o(n.link),t())}})}function $(){const e=u(),t=m(),o=h(n=>n.forget);return p({mutationFn:({name:n,...s})=>e.unlinkDevLink(n,s),meta:{suppressErrorToast:!0},onSuccess:(n,s)=>{o(s),t()}})}const w=/^(\S+) didn't build:/;function g(e){const t=e.length===1?w.exec(e[0]):null;return t?`Couldn’t reload: ${t[1]} has a build error.`:"Couldn’t reload your last edit."}function N(e,t,o){if(e.state!=="active")return{kind:e.state};const n=o==null?void 0:o.lastReloadAt,s=t!==void 0&&(o===void 0||t.at>=o.linkedAt)?t:void 0,i=s!==void 0&&(n===void 0||s.at>=n);if(i&&s.errors&&s.errors.length>0)return{kind:"reload-failed",at:s.at,headline:g(s.errors),details:s.errors};const d=i?s.at:n;return d?{kind:"reloaded",at:d}:{kind:"watching"}}function C(e,t){const o=Math.max(0,Math.floor((t-new Date(e).getTime())/1e3));if(o<2)return"Reloaded just now";if(o<60)return`Reloaded ${o}s ago`;const n=Math.floor(o/60);if(n<60)return`Reloaded ${n}m ago`;const s=Math.floor(n/60);return s<24?`Reloaded ${s}h ago`:`Reloaded ${new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"})}`}function v(e){return e.agentPath?{scope:"project",projectPath:e.agentPath}:{scope:"global"}}function F(e,t){var s;const{scope:o}=v(t),n=(s=t.devLink)==null?void 0:s.path;return e==null?void 0:e.find(i=>i.name===t.name&&i.scope===o&&i.path===n)}function T(e,t){return t?{name:t.name,scope:t.scope,...t.projectPath!==void 0&&{projectPath:t.projectPath}}:{name:e.name,...v(e)}}function I(e,t){return t.restored==="installed"?{title:`${e} runs from the installed copy.`}:t.parkedLeftAt?{title:`${e} unlinked. Its installed copy couldn’t come back.`,description:`It’s still set aside at ${t.parkedLeftAt}.`}:t.leftInPlace?{title:`${e} unlinked.`,description:"Something else was in its place. It was left as it is."}:{title:`${e} removed.`}}function M({target:e,onClose:t,onUnlinked:o}){const n=$(),s=e?k(e.name):"",i=(e==null?void 0:e.then)==="install";async function d(){if(e)try{const a=await n.mutateAsync({name:e.name,scope:e.scope,...e.projectPath!==void 0&&{projectPath:e.projectPath}});if(i&&a.restored==="removed"&&!a.parkedLeftAt)l.success(`${s} unlinked.`,{description:a.leftInPlace?"Something else was in its place. It was left as it is.":"It’s not installed until you finish the install."});else{const c=I(s,a);l.success(c.title,c.description?{description:c.description}:void 0)}o==null||o(e,a),t()}catch(a){l.error(`Couldn’t unlink ${s}`,{description:a instanceof Error?a.message:void 0})}}return r.jsx(D,{open:e!==null,onOpenChange:a=>!a&&t(),children:r.jsx(j,{className:"!min-h-0 sm:max-w-md",children:e&&r.jsxs(r.Fragment,{children:[r.jsxs(x,{className:"text-left",children:[r.jsx(L,{className:"text-left",children:i?`Install the published ${s}?`:`Unlink ${s}?`}),r.jsx(R,{className:"text-left",children:i?`${s} is unlinked first. Your folder is not touched.`:e.parked?"Your installed copy comes back.":`${s} is removed. Your folder is not touched.`})]}),r.jsxs(P,{children:[r.jsx(f,{variant:"ghost",onClick:t,disabled:n.isPending,children:"Cancel"}),r.jsx(f,{onClick:()=>void d(),disabled:n.isPending,children:n.isPending?"Unlinking…":i?"Unlink and install":"Unlink"})]})]})})})}export{M as U,T as a,N as b,C as c,v as d,A as e,F as f,y as u};
@@ -1 +1 @@
1
- import{a1 as k,a3 as F,r as o,dW as T,aY as m,dX as v,dY as M,dZ as q,aK as B,d_ as C,aP as E,d$ as P,e0 as Q,j as S}from"./index-B6Scr7KJ.js";import{m as J}from"./registry-tJrGs7kB.js";function W(e,t){const n=e??[];return n.some(a=>a.seq===t.seq)?n:n.length===0||n[n.length-1].seq<t.seq?[...n,t]:[...n,t].sort((a,s)=>a.seq-s.seq)}function Y(e,t){const n=e??[],a=n.findIndex(w=>w.id===t.id);if(a===-1)return n;const s=n[a];if(s.seq!==t.seq||s.roomId!==t.roomId||JSON.stringify(s.body)===JSON.stringify(t.body)&&JSON.stringify(s.mentions)===JSON.stringify(t.mentions)&&JSON.stringify(s.mentionSpans)===JSON.stringify(t.mentionSpans))return n;const h=[...n];return h[a]={...s,body:t.body,mentions:t.mentions,mentionSpans:t.mentionSpans},h}function K(e,t){if(t.kind!=="notice"||t.body.notice!=="turn_failed")return;const n=t.body.subjectAuthorId;n!==void 0&&C.getState().clearAuthor(e,n)}function U(e,t){const n=e.getQueryData(E.entries(t));return n&&n.length>0?n[n.length-1].seq:0}function H(e,t){var n;return((n=e.getQueryData(E.detail(t)))==null?void 0:n.viewerAuthorId)??null}const G=2e3;function V(){const e=o.useRef(null),t=o.useCallback(()=>{e.current!==null&&(clearTimeout(e.current),e.current=null)},[]),n=o.useCallback(s=>{t(),m.getState().endRoomCanvasCycle(s)},[t]),a=o.useCallback(s=>{t(),e.current=setTimeout(()=>{e.current=null,m.getState().endRoomCanvasCycle(s)},G)},[t]);return o.useEffect(()=>t,[t]),{arm:a,now:n}}function X(e){const t=Math.min(v.BACKOFF_CAP_MS,v.BACKOFF_BASE_MS*2**e);return Math.random()*t}const Z=50;function $(e,t){return new Promise(n=>{if(t.aborted)return n();const a=()=>{clearTimeout(s),t.removeEventListener("abort",a),n()},s=setTimeout(a,e);t.addEventListener("abort",a,{once:!0})})}function ee(e,t){const n=k(),a=F(),[s,y]=o.useState(null),[h,w]=o.useState(null),[O,A]=o.useState(0),R=o.useRef(!1),N=V(),j=o.useCallback(()=>A(i=>i+1),[]),g=o.useRef(null),_=o.useCallback(()=>{g.current===null&&(g.current=setTimeout(()=>{g.current=null,A(i=>i+1)},Z))},[]);return o.useEffect(()=>{if(e===null)return;const i=()=>_();let u=null;const d=()=>{if(document.visibilityState!=="visible"){u=Date.now();return}const f=u===null?0:Date.now()-u;u=null,(R.current||f>=v.VISIBILITY_GRACE_MS)&&_()};let c=T.getListConnectionState();const b=T.subscribeListConnectionState(f=>{const p=f==="connected"&&c==="reconnecting";c=f,p&&_()});return window.addEventListener("online",i),document.addEventListener("visibilitychange",d),()=>{window.removeEventListener("online",i),document.removeEventListener("visibilitychange",d),b(),g.current!==null&&(clearTimeout(g.current),g.current=null)}},[e,_]),o.useEffect(()=>(m.getState().setRoomCanvasLiveRoom(e),()=>m.getState().setRoomCanvasLiveRoom(null)),[e]),o.useEffect(()=>{if(e===null||!t)return;const i=new AbortController;let u=!0,d;return(async()=>{y(null),w(null),R.current=!1;let c=0,b=!1;const f=()=>{c=0,R.current=!1,b&&(b=!1,y(p=>p===e?null:p))};for(;u&&!i.signal.aborted;){const p=Date.now();R.current=!1,m.getState().beginRoomCanvasCycle(e),N.arm(e);const D=setTimeout(f,v.STABILITY_WINDOW_MS);let l;try{if(l=M(n,e,U(a,e),i.signal),d=l,!u||i.signal.aborted){l.retire();return}for await(const r of l.stream){if(!u||i.signal.aborted||(f(),!l.current()))return;if(r.type==="canvas_event"||r.type==="canvas_channel_snapshot"){if(l.publish(r),!l.current())return;continue}if(r.type==="signal"){q(r)?B.getState().observe(e,r):(C.getState().observe(e,r),m.getState().applyRoomCanvasPresence(e,r));continue}if(r.type==="reaction"){a.setQueryData(E.entries(e),x=>J(x,r.entryId,r.reactions));continue}if(r.type==="revision"){if(r.entry.roomId!==e)continue;a.setQueryData(E.entries(e),x=>Y(x,r.entry));continue}if(r.type==="canvas"){m.getState().applyRoomCanvasFrame(e,r,H(a,e)),r.change!==void 0?N.now(e):N.arm(e);continue}C.getState().clearAuthor(e,r.entry.authorId),K(e,r.entry),P.getState().settle(e,r.entry.id),a.setQueryData(E.entries(e),x=>W(x,r.entry))}}catch(r){if(i.signal.aborted)return;if(console.warn("[rooms] live stream dropped",{roomId:e,err:r}),Q(r)){C.getState().clearRoom(e),w(e),y(e),clearTimeout(D);return}}finally{try{l==null||l.retire()}finally{clearTimeout(D)}}if(i.signal.aborted)return;Date.now()-p>=v.STABILITY_WINDOW_MS&&(c=0),c+=1,R.current=!0,c>=v.DISCONNECTED_THRESHOLD&&!b&&(C.getState().clearRoom(e),y(e),b=!0),await $(X(c),i.signal)}})(),()=>{u=!1;try{d==null||d.retire()}finally{i.abort()}}},[e,t,n,a,O]),{stalled:s!==null&&s===e,unavailable:h!==null&&h===e,retry:j}}function te({label:e}){return S.jsxs("div",{"data-slot":"day-divider","data-testid":"day-divider",role:"separator","aria-label":e,className:"flex items-center gap-3 py-4",children:[S.jsx("span",{"aria-hidden":"true",className:"bg-border/70 h-px flex-1"}),S.jsx("span",{className:"border-border/70 bg-background text-muted-foreground text-2xs rounded-full border px-2.5 py-0.5 font-medium",children:e}),S.jsx("span",{"aria-hidden":"true",className:"bg-border/70 h-px flex-1"})]})}const L="New messages";function ne(){return S.jsxs("div",{"data-slot":"unread-divider","data-testid":"unread-divider",role:"separator","aria-label":L,className:"flex items-center gap-2 px-[var(--msg-padding-x)] py-2",children:[S.jsx("span",{"aria-hidden":"true",className:"bg-brand/60 h-px flex-1"}),S.jsx("span",{className:"text-brand-text text-2xs font-medium tracking-wide",children:L})]})}export{te as D,ne as U,ee as u};
1
+ import{a1 as k,a3 as F,r as o,dW as T,aY as m,dX as v,dY as M,dZ as q,aK as B,d_ as C,aP as E,d$ as P,e0 as Q,j as S}from"./index-p3WivF1M.js";import{m as J}from"./registry-Cog_2xvt.js";function W(e,t){const n=e??[];return n.some(a=>a.seq===t.seq)?n:n.length===0||n[n.length-1].seq<t.seq?[...n,t]:[...n,t].sort((a,s)=>a.seq-s.seq)}function Y(e,t){const n=e??[],a=n.findIndex(w=>w.id===t.id);if(a===-1)return n;const s=n[a];if(s.seq!==t.seq||s.roomId!==t.roomId||JSON.stringify(s.body)===JSON.stringify(t.body)&&JSON.stringify(s.mentions)===JSON.stringify(t.mentions)&&JSON.stringify(s.mentionSpans)===JSON.stringify(t.mentionSpans))return n;const h=[...n];return h[a]={...s,body:t.body,mentions:t.mentions,mentionSpans:t.mentionSpans},h}function K(e,t){if(t.kind!=="notice"||t.body.notice!=="turn_failed")return;const n=t.body.subjectAuthorId;n!==void 0&&C.getState().clearAuthor(e,n)}function U(e,t){const n=e.getQueryData(E.entries(t));return n&&n.length>0?n[n.length-1].seq:0}function H(e,t){var n;return((n=e.getQueryData(E.detail(t)))==null?void 0:n.viewerAuthorId)??null}const G=2e3;function V(){const e=o.useRef(null),t=o.useCallback(()=>{e.current!==null&&(clearTimeout(e.current),e.current=null)},[]),n=o.useCallback(s=>{t(),m.getState().endRoomCanvasCycle(s)},[t]),a=o.useCallback(s=>{t(),e.current=setTimeout(()=>{e.current=null,m.getState().endRoomCanvasCycle(s)},G)},[t]);return o.useEffect(()=>t,[t]),{arm:a,now:n}}function X(e){const t=Math.min(v.BACKOFF_CAP_MS,v.BACKOFF_BASE_MS*2**e);return Math.random()*t}const Z=50;function $(e,t){return new Promise(n=>{if(t.aborted)return n();const a=()=>{clearTimeout(s),t.removeEventListener("abort",a),n()},s=setTimeout(a,e);t.addEventListener("abort",a,{once:!0})})}function ee(e,t){const n=k(),a=F(),[s,y]=o.useState(null),[h,w]=o.useState(null),[O,A]=o.useState(0),R=o.useRef(!1),N=V(),j=o.useCallback(()=>A(i=>i+1),[]),g=o.useRef(null),_=o.useCallback(()=>{g.current===null&&(g.current=setTimeout(()=>{g.current=null,A(i=>i+1)},Z))},[]);return o.useEffect(()=>{if(e===null)return;const i=()=>_();let u=null;const d=()=>{if(document.visibilityState!=="visible"){u=Date.now();return}const f=u===null?0:Date.now()-u;u=null,(R.current||f>=v.VISIBILITY_GRACE_MS)&&_()};let c=T.getListConnectionState();const b=T.subscribeListConnectionState(f=>{const p=f==="connected"&&c==="reconnecting";c=f,p&&_()});return window.addEventListener("online",i),document.addEventListener("visibilitychange",d),()=>{window.removeEventListener("online",i),document.removeEventListener("visibilitychange",d),b(),g.current!==null&&(clearTimeout(g.current),g.current=null)}},[e,_]),o.useEffect(()=>(m.getState().setRoomCanvasLiveRoom(e),()=>m.getState().setRoomCanvasLiveRoom(null)),[e]),o.useEffect(()=>{if(e===null||!t)return;const i=new AbortController;let u=!0,d;return(async()=>{y(null),w(null),R.current=!1;let c=0,b=!1;const f=()=>{c=0,R.current=!1,b&&(b=!1,y(p=>p===e?null:p))};for(;u&&!i.signal.aborted;){const p=Date.now();R.current=!1,m.getState().beginRoomCanvasCycle(e),N.arm(e);const D=setTimeout(f,v.STABILITY_WINDOW_MS);let l;try{if(l=M(n,e,U(a,e),i.signal),d=l,!u||i.signal.aborted){l.retire();return}for await(const r of l.stream){if(!u||i.signal.aborted||(f(),!l.current()))return;if(r.type==="canvas_event"||r.type==="canvas_channel_snapshot"){if(l.publish(r),!l.current())return;continue}if(r.type==="signal"){q(r)?B.getState().observe(e,r):(C.getState().observe(e,r),m.getState().applyRoomCanvasPresence(e,r));continue}if(r.type==="reaction"){a.setQueryData(E.entries(e),x=>J(x,r.entryId,r.reactions));continue}if(r.type==="revision"){if(r.entry.roomId!==e)continue;a.setQueryData(E.entries(e),x=>Y(x,r.entry));continue}if(r.type==="canvas"){m.getState().applyRoomCanvasFrame(e,r,H(a,e)),r.change!==void 0?N.now(e):N.arm(e);continue}C.getState().clearAuthor(e,r.entry.authorId),K(e,r.entry),P.getState().settle(e,r.entry.id),a.setQueryData(E.entries(e),x=>W(x,r.entry))}}catch(r){if(i.signal.aborted)return;if(console.warn("[rooms] live stream dropped",{roomId:e,err:r}),Q(r)){C.getState().clearRoom(e),w(e),y(e),clearTimeout(D);return}}finally{try{l==null||l.retire()}finally{clearTimeout(D)}}if(i.signal.aborted)return;Date.now()-p>=v.STABILITY_WINDOW_MS&&(c=0),c+=1,R.current=!0,c>=v.DISCONNECTED_THRESHOLD&&!b&&(C.getState().clearRoom(e),y(e),b=!0),await $(X(c),i.signal)}})(),()=>{u=!1;try{d==null||d.retire()}finally{i.abort()}}},[e,t,n,a,O]),{stalled:s!==null&&s===e,unavailable:h!==null&&h===e,retry:j}}function te({label:e}){return S.jsxs("div",{"data-slot":"day-divider","data-testid":"day-divider",role:"separator","aria-label":e,className:"flex items-center gap-3 py-4",children:[S.jsx("span",{"aria-hidden":"true",className:"bg-border/70 h-px flex-1"}),S.jsx("span",{className:"border-border/70 bg-background text-muted-foreground text-2xs rounded-full border px-2.5 py-0.5 font-medium",children:e}),S.jsx("span",{"aria-hidden":"true",className:"bg-border/70 h-px flex-1"})]})}const L="New messages";function ne(){return S.jsxs("div",{"data-slot":"unread-divider","data-testid":"unread-divider",role:"separator","aria-label":L,className:"flex items-center gap-2 px-[var(--msg-padding-x)] py-2",children:[S.jsx("span",{"aria-hidden":"true",className:"bg-brand/60 h-px flex-1"}),S.jsx("span",{className:"text-brand-text text-2xs font-medium tracking-wide",children:L})]})}export{te as D,ne as U,ee as u};
@@ -1,4 +1,4 @@
1
- import{O as A,r as x,fI as g,fJ as f,fT as k,fH as F,fQ as st,fS as ln,nU as dn,l8 as Te,fR as ye,o0 as E,o1 as Z,o2 as un,o3 as pn,o4 as mn,fP as Ee,fL as he,o5 as fn,fM as M,fK as ee,o6 as hn,nS as xn,o7 as gn,js as yn,a1 as bn,o8 as Ne,o9 as vn,oa as at,aY as jn,jw as kn,j as t,fA as Nn,fB as wn,e4 as Sn,ob as Cn,dJ as _n,i7 as rt,m5 as In,m4 as An,ar as y,G as N,cx as Mn,fh as Se,aS as $n,cD as Tn,bW as En,fi as Ln,oc as Dn,jQ as On,kh as it,dF as Rn,dV as zn,g8 as Wn,fD as Pn,od as Bn,ba as Fn,oe as Un,bx as Gn,ic as Hn,em as Kn,b9 as Yn,J as Le,of as Vn,ib as qn,mX as Qn,a0 as ot,bX as Xn,B as ct,eo as De,eh as Jn,ei as Zn,ej as es,ek as ts,el as ns,I as ss,x as as,h8 as lt,dl as dt,dm as ut,dn as pt,og as mt,a7 as ft,gQ as rs,X as is,oh as os,C as cs}from"./index-B6Scr7KJ.js";import{a as ls}from"./index-B3xeyV6n.js";import{C as ht,a as ds,b as us,c as ps,d as ms,e as fs}from"./card-DA_Z-FYX.js";import{P as hs,S as xs}from"./progress-qB87L0zJ.js";import{M as gs}from"./markdown-content-Bk9lCksw.js";import{T as xt,d as gt,b as be,e as Ce,c as _e,a as yt}from"./table-DsxLk3Gx.js";import{P as ys}from"./package-BmOMrNwc.js";import{H as bs}from"./heart-C4CSHUW7.js";import{G as vs}from"./git-branch-1zYKSuur.js";import{F as js}from"./file-text-CRTgqqkn.js";import{F as ks}from"./file-DXbyb23e.js";/**
1
+ import{O as A,r as x,fI as g,fJ as f,fT as k,fH as F,fQ as st,fS as ln,nU as dn,l8 as Te,fR as ye,o0 as E,o1 as Z,o2 as un,o3 as pn,o4 as mn,fP as Ee,fL as he,o5 as fn,fM as M,fK as ee,o6 as hn,nS as xn,o7 as gn,js as yn,a1 as bn,o8 as Ne,o9 as vn,oa as at,aY as jn,jw as kn,j as t,fA as Nn,fB as wn,e4 as Sn,ob as Cn,dJ as _n,i7 as rt,m5 as In,m4 as An,ar as y,G as N,cx as Mn,fh as Se,aS as $n,cD as Tn,bW as En,fi as Ln,oc as Dn,jQ as On,kh as it,dF as Rn,dV as zn,g8 as Wn,fD as Pn,od as Bn,ba as Fn,oe as Un,bx as Gn,ic as Hn,em as Kn,b9 as Yn,J as Le,of as Vn,ib as qn,mX as Qn,a0 as ot,bX as Xn,B as ct,eo as De,eh as Jn,ei as Zn,ej as es,ek as ts,el as ns,I as ss,x as as,h8 as lt,dl as dt,dm as ut,dn as pt,og as mt,a7 as ft,gQ as rs,X as is,oh as os,C as cs}from"./index-p3WivF1M.js";import{a as ls}from"./index-BY0SKYuc.js";import{C as ht,a as ds,b as us,c as ps,d as ms,e as fs}from"./card-TbpEl6EH.js";import{P as hs,S as xs}from"./progress-CpiQE0rv.js";import{M as gs}from"./markdown-content-BFHUHPgi.js";import{T as xt,d as gt,b as be,e as Ce,c as _e,a as yt}from"./table-9KRGRv_s.js";import{P as ys}from"./package-0mI7-RiJ.js";import{H as bs}from"./heart-D4fTvM5q.js";import{G as vs}from"./git-branch-BLIYLcM4.js";import{F as js}from"./file-text-wmrSy3Io.js";import{F as ks}from"./file-DHPgnMgj.js";/**
2
2
  * @license lucide-react v1.48.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{d9 as c,da as l,r as u,j as r,B as h,G as m}from"./index-B6Scr7KJ.js";const d=[];function x(i){const{approvals:s}=c(),{data:t}=l();return u.useMemo(()=>{if(!t||s.length===0)return d;const a=new Set(t.filter(e=>{var o;return(o=e.manifest.contributions)==null?void 0:o[i]}).map(e=>e.id)),n=s.filter(e=>(e.changedFiles||e.updatedFrom)&&a.has(e.id)).map(e=>({id:e.id,name:e.name}));return n.length===0?d:n},[s,t,i])}function f({slot:i,onReview:s,className:t}){const a=x(i);return a.length===0?null:r.jsx("ul",{className:m("space-y-1",t),"aria-label":"Mini apps waiting for your OK",children:a.map(n=>r.jsxs("li",{"data-testid":`withheld-extension-${n.id}`,className:"bg-status-warning-bg text-status-warning-fg flex items-center justify-between gap-2 rounded-md px-3 py-1.5 text-xs",children:[r.jsxs("span",{className:"min-w-0 truncate",children:[n.name," changed and is waiting for your OK"]}),r.jsx(h,{variant:"ghost",size:"xs",className:"text-status-warning-fg shrink-0 pointer-coarse:min-h-11",onClick:s,children:"Review"})]},n.id))})}export{f as W,x as u};
1
+ import{d9 as c,da as l,r as u,j as r,B as h,G as m}from"./index-p3WivF1M.js";const d=[];function x(i){const{approvals:s}=c(),{data:t}=l();return u.useMemo(()=>{if(!t||s.length===0)return d;const a=new Set(t.filter(e=>{var o;return(o=e.manifest.contributions)==null?void 0:o[i]}).map(e=>e.id)),n=s.filter(e=>(e.changedFiles||e.updatedFrom)&&a.has(e.id)).map(e=>({id:e.id,name:e.name}));return n.length===0?d:n},[s,t,i])}function f({slot:i,onReview:s,className:t}){const a=x(i);return a.length===0?null:r.jsx("ul",{className:m("space-y-1",t),"aria-label":"Mini apps waiting for your OK",children:a.map(n=>r.jsxs("li",{"data-testid":`withheld-extension-${n.id}`,className:"bg-status-warning-bg text-status-warning-fg flex items-center justify-between gap-2 rounded-md px-3 py-1.5 text-xs",children:[r.jsxs("span",{className:"min-w-0 truncate",children:[n.name," changed and is waiting for your OK"]}),r.jsx(h,{variant:"ghost",size:"xs",className:"text-status-warning-fg shrink-0 pointer-coarse:min-h-11",onClick:s,children:"Review"})]},n.id))})}export{f as W,x as u};
@@ -1,4 +1,4 @@
1
- var Ea=Object.defineProperty;var _a=(e,t,n)=>t in e?Ea(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ye=(e,t,n)=>_a(e,typeof t!="symbol"?t+"":t,n);import{r as l,O as it,e4 as Ue,j as r,ar as Q,by as pe,id as Fn,a1 as be,qy as Ar,q as rt,ko as Ma,cs as Oa,qz as Er,qA as Ia,qB as Da,g9 as Pa,B as me,a7 as Ee,fB as $a,G as W,J as Gt,X as ot,b9 as ft,qC as kt,qD as _r,aY as ce,qE as Fa,qF as Cn,ib as La,aN as Ln,dH as qa,ap as Ua,j3 as za,ai as lt,a9 as qn,qG as Ba,j4 as Wa,qH as Ha,bc as Ga,x as ze,U as vt,ih as Be,ii as We,aj as Un,qI as Kt,ef as St,kh as Ka,cu as Qe,s as ct,gS as Qa,gO as ks,ip as Mr,gW as Va,C as zn,qJ as Ya,l as Xa,mW as Or,aW as Ja,qK as Za,qL as qe,o8 as Re,oh as ei,o9 as Qt,aQ as ti,i0 as ni,cD as si,bW as ri,jr as oi,qM as tt,a0 as Bn,eS as vs,dJ as Ir,f as Dr,qN as Ss,ee as js,a8 as at,pt as ai,qO as ii,pA as gt,qP as zt,a2 as ut,jP as Wn,a4 as xt,hh as jt,ed as Hn,cm as wt,d2 as li,d3 as ci,d5 as ui,d6 as di,d7 as mi,eD as fi,e as ws,ll as pi,dO as hi,lm as gi,pv as Gn,e8 as xi,qQ as yi,qR as bi,lz as Kn,qS as Pr,qT as $r,qU as ki,qV as vi,a3 as Qn,cU as Ct,ec as Vt,ea as Vn,eb as Si,qW as ji,jX as Fr,qX as wi,px as Ci,i7 as Ni,hI as Lr,iv as qr,hU as yt,jY as Ur,eP as Ti,qY as Ri,qZ as Ai,o as zr,y as Yt,aV as Br,q_ as Wr,q$ as Ei,nt as rn,r0 as Bt,jE as _i,lq as Mi,be as Hr,r1 as Yn,r2 as Oi,r3 as Ii,r4 as Di,r5 as Gr,r6 as Pi,r7 as $i,r8 as Kr,r9 as Qr,fh as Fi,ra as Li,fD as qi,ff as Ui,m4 as zi,bJ as Bi,bK as Wi,bL as Hi,bM as Gi,bN as Ki,bO as Qi,bP as Vi,bR as Yi,rb as Xi,oO as Vr,rc as Ji,rd as Zi,mw as el,jy as tl,jz as nl,jA as sl,jB as on,mQ as rl,jC as Cs,kg as ol,b$ as al,ki as il,c1 as ll,re as Ns,cG as cl,f$ as Yr,cL as Xr,cA as ul,cK as dl,it as ml,cT as Jr,rf as Zr,cw as eo,cQ as fl,rg as Xn,cR as pl,rh as hl,at as gl,cC as xl,ri as yl,md as oe,rj as bl,rk as kl,cP as vl,_ as Sl,aU as Ge,n8 as Ts,rl as jl,iV as He,rm as an,dW as pt,rn as Rs,ro as As,rp as Es,cv as ln,rq as et,eT as ht,rr as wl,cW as to,rs as no,rt as Cl,ru as Nl,rv as Tl,cX as so,rw as Rl,rx as Al,ry as Xe,rz as ro,rA as El,b_ as _l,rB as Ml,rC as Ol,fC as oo,rD as _s,rE as Il,c6 as Nn,ji as ao,em as Dl,c_ as Pl,rF as $l,gv as Fl,gu as Ll,jk as ql,cn as Ul,cZ as zl,ck as Bl,ak as Xt,rG as Wl,rH as Hl,gp as io,gm as Jn,kJ as Gl,rI as Kl,rJ as Ql,rK as Vl,iY as Yl,rL as lo,om as Xl,jD as Jl,rM as mt,rN as Zl,cV as ec,hl as tc,rO as nc,fy as sc,rP as rc,e2 as oc,jQ as ac,Y as ic}from"./index-B6Scr7KJ.js";import{P as lc}from"./PromptSuggestionChips-D34Zeaq_.js";import{u as cc,a as uc,L as dc,f as mc,b as fc,c as pc,B as hc,d as gc}from"./primer-trigger-DLdK7lVr.js";import{C as xc}from"./card-DA_Z-FYX.js";import{a as yc,u as bc,i as kc}from"./use-notification-prefs-B8JtshQ0.js";import{e as vc,h as Sc,o as co,f as jc,P as wc,g as Cc,d as Nc,p as Tc,j as Rc,b as Ac,G as Ec,W as uo,y as _c,x as Mc,z as Oc,u as Ic,t as Dc,w as Pc,n as $c,k as Fc,s as Lc,M as qc,i as Uc,S as zc,U as Bc,A as Wc,v as Hc,R as Gc,q as Kc}from"./use-status-budget-DgeTxC3h.js";import{B as Qc}from"./banner-CVrzHqOT.js";import{t as At,S as Zn,f as Wt,n as mo,O as fo,o as Vc,p as Yc,V as po,q as Xc,r as Jc,s as Zc,v as eu,w as Ms,x as Os,T as tu,y as nu,L as Is,z as ho,A as su,B as go,D as ru,G as xo,H as Tn,N as Ds,d as ou,I as yo,J as au,u as iu,C as bt,K as bo,c as Je,k as lu,h as cu,F as uu}from"./registry-tJrGs7kB.js";import{u as du,b as mu}from"./WidgetErrorCard-BA3P7hNv.js";import{u as fu,D as pu,U as hu}from"./UnreadDivider-LL4_YtF0.js";import{a as gu,c as xu}from"./composer-insert-BpyATrmR.js";import{u as yu}from"./use-composer-prefs--zO2mm_M.js";import{A as Rn,M as bu}from"./McpAppFrame-4JDJsrmg.js";import{P as ku,C as vu,b as Su}from"./find-latest-widget-fence-D1i7qNny.js";import{F as ko}from"./file-DXbyb23e.js";import{F as ju,i as wu}from"./use-session-canvas-BfKGOpNy.js";import{F as Cu}from"./file-text-CRTgqqkn.js";import{b as vo,e as Nu,R as Tu,K as Ru,a as Au,g as Eu}from"./RuntimeConnectFlow-D3H5Fpkc.js";import{S as _u}from"./shield-x-WGxwrtNV.js";import{u as Mu,M as Ou}from"./McpSigninBody-DG1XX7XT.js";import{I as Iu}from"./image-off-c01kxBAm.js";import{f as Du}from"./format-duration-BCr6uzby.js";import{l as Pu}from"./use-connector-management-9Q7wHb06.js";import{A as $u}from"./AgentRequestCard-CmAlDGTr.js";function Fu(e){const t=Math.floor(e/1e3);if(t<3600){const o=Math.floor(t/60),a=t%60;return`${o}m ${String(a).padStart(2,"0")}s`}const n=Math.floor(t/3600),s=Math.floor(t%3600/60);return`${n}h ${String(s).padStart(2,"0")}m`}function So(e){const[t,n]=l.useState(()=>Date.now()),s=l.useRef(null);if(l.useEffect(()=>{if(e===null){s.current&&(clearInterval(s.current),s.current=null);return}return n(Date.now()),s.current=setInterval(()=>n(Date.now()),1e3),()=>{s.current&&(clearInterval(s.current),s.current=null)}},[e]),e===null)return{formatted:"0m 00s",ms:0};const o=Math.max(0,t-e);return{formatted:Fu(o),ms:o}}function Lu(e={}){const{timeoutMs:t=3e4,onIdle:n,onReturn:s}=e,o=l.useRef(!1),a=l.useRef(null),i=l.useCallback(()=>{o.current||(o.current=!0,n==null||n())},[n]),c=l.useCallback(()=>{o.current&&(o.current=!1,s==null||s())},[s]),u=l.useCallback(()=>{a.current&&clearTimeout(a.current),a.current=setTimeout(i,t),c()},[t,i,c]);return l.useEffect(()=>{a.current=setTimeout(i,t);const d=["mousemove","keydown","scroll","touchstart"];d.forEach(h=>document.addEventListener(h,u,{passive:!0}));const m=()=>{document.hidden?i():u()};return document.addEventListener("visibilitychange",m),()=>{a.current&&clearTimeout(a.current),d.forEach(h=>document.removeEventListener(h,u)),document.removeEventListener("visibilitychange",m)}},[t,i,u]),{isIdle:o.current}}function qu({activeInteraction:e,onApprove:t,onAlwaysAllow:n,onDeny:s,onToggleOption:o,onNavigateOption:a,onNavigateQuestion:i,onSubmit:c,optionCount:u=0,focusedIndex:d=0}){const m=l.useRef(!1);l.useEffect(()=>{m.current=!1},[e==null?void 0:e.toolCallId]),l.useEffect(()=>{if(!e)return;function h(p){const f=p.target,g=(f.tagName==="TEXTAREA"||f.tagName==="INPUT")&&!f.disabled;if(!m.current&&!(p.metaKey||p.ctrlKey||p.altKey)){if(e.type==="approval"){if(p.key==="Enter"&&g&&f.closest("[data-approval-field]")!==null)return;p.key==="Enter"&&p.shiftKey?(p.preventDefault(),m.current=!0,n==null||n()):p.key==="Enter"?(p.preventDefault(),m.current=!0,t==null||t()):p.key==="Escape"&&(p.preventDefault(),m.current=!0,s==null||s());return}if(e.type==="question"){if(g){if(p.key==="Enter"&&!p.shiftKey){p.preventDefault(),c==null||c();return}if(p.key==="ArrowUp"){p.preventDefault(),a==null||a("up");return}if(p.key==="ArrowDown"){p.preventDefault(),a==null||a("down");return}return}const x=parseInt(p.key,10);if(x>=1&&x<=9){p.preventDefault(),x-1<u&&(o==null||o(x-1));return}switch(p.key){case"ArrowUp":p.preventDefault(),a==null||a("up");break;case"ArrowDown":p.preventDefault(),a==null||a("down");break;case" ":p.preventDefault(),o==null||o(d);break;case"ArrowLeft":case"[":p.preventDefault(),i==null||i("prev");break;case"ArrowRight":case"]":p.preventDefault(),i==null||i("next");break;case"Enter":p.preventDefault(),c==null||c();break}}}}return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[e,t,n,s,o,a,i,c,u,d])}function jo(){const[e,t]=l.useState(()=>!document.hidden);return l.useEffect(()=>{const n=()=>t(!document.hidden);return document.addEventListener("visibilitychange",n),()=>document.removeEventListener("visibilitychange",n)},[]),e}/**
1
+ var Ea=Object.defineProperty;var _a=(e,t,n)=>t in e?Ea(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ye=(e,t,n)=>_a(e,typeof t!="symbol"?t+"":t,n);import{r as l,O as it,e4 as Ue,j as r,ar as Q,by as pe,id as Fn,a1 as be,qy as Ar,q as rt,ko as Ma,cs as Oa,qz as Er,qA as Ia,qB as Da,g9 as Pa,B as me,a7 as Ee,fB as $a,G as W,J as Gt,X as ot,b9 as ft,qC as kt,qD as _r,aY as ce,qE as Fa,qF as Cn,ib as La,aN as Ln,dH as qa,ap as Ua,j3 as za,ai as lt,a9 as qn,qG as Ba,j4 as Wa,qH as Ha,bc as Ga,x as ze,U as vt,ih as Be,ii as We,aj as Un,qI as Kt,ef as St,kh as Ka,cu as Qe,s as ct,gS as Qa,gO as ks,ip as Mr,gW as Va,C as zn,qJ as Ya,l as Xa,mW as Or,aW as Ja,qK as Za,qL as qe,o8 as Re,oh as ei,o9 as Qt,aQ as ti,i0 as ni,cD as si,bW as ri,jr as oi,qM as tt,a0 as Bn,eS as vs,dJ as Ir,f as Dr,qN as Ss,ee as js,a8 as at,pt as ai,qO as ii,pA as gt,qP as zt,a2 as ut,jP as Wn,a4 as xt,hh as jt,ed as Hn,cm as wt,d2 as li,d3 as ci,d5 as ui,d6 as di,d7 as mi,eD as fi,e as ws,ll as pi,dO as hi,lm as gi,pv as Gn,e8 as xi,qQ as yi,qR as bi,lz as Kn,qS as Pr,qT as $r,qU as ki,qV as vi,a3 as Qn,cU as Ct,ec as Vt,ea as Vn,eb as Si,qW as ji,jX as Fr,qX as wi,px as Ci,i7 as Ni,hI as Lr,iv as qr,hU as yt,jY as Ur,eP as Ti,qY as Ri,qZ as Ai,o as zr,y as Yt,aV as Br,q_ as Wr,q$ as Ei,nt as rn,r0 as Bt,jE as _i,lq as Mi,be as Hr,r1 as Yn,r2 as Oi,r3 as Ii,r4 as Di,r5 as Gr,r6 as Pi,r7 as $i,r8 as Kr,r9 as Qr,fh as Fi,ra as Li,fD as qi,ff as Ui,m4 as zi,bJ as Bi,bK as Wi,bL as Hi,bM as Gi,bN as Ki,bO as Qi,bP as Vi,bR as Yi,rb as Xi,oO as Vr,rc as Ji,rd as Zi,mw as el,jy as tl,jz as nl,jA as sl,jB as on,mQ as rl,jC as Cs,kg as ol,b$ as al,ki as il,c1 as ll,re as Ns,cG as cl,f$ as Yr,cL as Xr,cA as ul,cK as dl,it as ml,cT as Jr,rf as Zr,cw as eo,cQ as fl,rg as Xn,cR as pl,rh as hl,at as gl,cC as xl,ri as yl,md as oe,rj as bl,rk as kl,cP as vl,_ as Sl,aU as Ge,n8 as Ts,rl as jl,iV as He,rm as an,dW as pt,rn as Rs,ro as As,rp as Es,cv as ln,rq as et,eT as ht,rr as wl,cW as to,rs as no,rt as Cl,ru as Nl,rv as Tl,cX as so,rw as Rl,rx as Al,ry as Xe,rz as ro,rA as El,b_ as _l,rB as Ml,rC as Ol,fC as oo,rD as _s,rE as Il,c6 as Nn,ji as ao,em as Dl,c_ as Pl,rF as $l,gv as Fl,gu as Ll,jk as ql,cn as Ul,cZ as zl,ck as Bl,ak as Xt,rG as Wl,rH as Hl,gp as io,gm as Jn,kJ as Gl,rI as Kl,rJ as Ql,rK as Vl,iY as Yl,rL as lo,om as Xl,jD as Jl,rM as mt,rN as Zl,cV as ec,hl as tc,rO as nc,fy as sc,rP as rc,e2 as oc,jQ as ac,Y as ic}from"./index-p3WivF1M.js";import{P as lc}from"./PromptSuggestionChips-C653MlaU.js";import{u as cc,a as uc,L as dc,f as mc,b as fc,c as pc,B as hc,d as gc}from"./primer-trigger-BV4xZfFz.js";import{C as xc}from"./card-TbpEl6EH.js";import{a as yc,u as bc,i as kc}from"./use-notification-prefs-GJ2coibL.js";import{e as vc,h as Sc,o as co,f as jc,P as wc,g as Cc,d as Nc,p as Tc,j as Rc,b as Ac,G as Ec,W as uo,y as _c,x as Mc,z as Oc,u as Ic,t as Dc,w as Pc,n as $c,k as Fc,s as Lc,M as qc,i as Uc,S as zc,U as Bc,A as Wc,v as Hc,R as Gc,q as Kc}from"./use-status-budget-CHln-8aP.js";import{B as Qc}from"./banner-BH1gXPTc.js";import{t as At,S as Zn,f as Wt,n as mo,O as fo,o as Vc,p as Yc,V as po,q as Xc,r as Jc,s as Zc,v as eu,w as Ms,x as Os,T as tu,y as nu,L as Is,z as ho,A as su,B as go,D as ru,G as xo,H as Tn,N as Ds,d as ou,I as yo,J as au,u as iu,C as bt,K as bo,c as Je,k as lu,h as cu,F as uu}from"./registry-Cog_2xvt.js";import{u as du,b as mu}from"./WidgetErrorCard-CgRMeAEO.js";import{u as fu,D as pu,U as hu}from"./UnreadDivider-BoLcTO_Z.js";import{a as gu,c as xu}from"./composer-insert-BpyATrmR.js";import{u as yu}from"./use-composer-prefs-C7v03Xx_.js";import{A as Rn,M as bu}from"./McpAppFrame-DVNWJHrn.js";import{P as ku,C as vu,b as Su}from"./find-latest-widget-fence-Bv9D10ve.js";import{F as ko}from"./file-DHPgnMgj.js";import{F as ju,j as wu}from"./use-session-canvas-DAGOz8a6.js";import{F as Cu}from"./file-text-wmrSy3Io.js";import{b as vo,e as Nu,R as Tu,K as Ru,a as Au,g as Eu}from"./RuntimeConnectFlow-BAqkzthF.js";import{S as _u}from"./shield-x-hHpT8rAA.js";import{u as Mu,M as Ou}from"./McpSigninBody-BO0OkvOw.js";import{I as Iu}from"./image-off-DRgXXpgv.js";import{f as Du}from"./format-duration-BCr6uzby.js";import{l as Pu}from"./use-connector-management-COqWo76Y.js";import{A as $u}from"./AgentRequestCard-BoRmxLKy.js";function Fu(e){const t=Math.floor(e/1e3);if(t<3600){const o=Math.floor(t/60),a=t%60;return`${o}m ${String(a).padStart(2,"0")}s`}const n=Math.floor(t/3600),s=Math.floor(t%3600/60);return`${n}h ${String(s).padStart(2,"0")}m`}function So(e){const[t,n]=l.useState(()=>Date.now()),s=l.useRef(null);if(l.useEffect(()=>{if(e===null){s.current&&(clearInterval(s.current),s.current=null);return}return n(Date.now()),s.current=setInterval(()=>n(Date.now()),1e3),()=>{s.current&&(clearInterval(s.current),s.current=null)}},[e]),e===null)return{formatted:"0m 00s",ms:0};const o=Math.max(0,t-e);return{formatted:Fu(o),ms:o}}function Lu(e={}){const{timeoutMs:t=3e4,onIdle:n,onReturn:s}=e,o=l.useRef(!1),a=l.useRef(null),i=l.useCallback(()=>{o.current||(o.current=!0,n==null||n())},[n]),c=l.useCallback(()=>{o.current&&(o.current=!1,s==null||s())},[s]),u=l.useCallback(()=>{a.current&&clearTimeout(a.current),a.current=setTimeout(i,t),c()},[t,i,c]);return l.useEffect(()=>{a.current=setTimeout(i,t);const d=["mousemove","keydown","scroll","touchstart"];d.forEach(h=>document.addEventListener(h,u,{passive:!0}));const m=()=>{document.hidden?i():u()};return document.addEventListener("visibilitychange",m),()=>{a.current&&clearTimeout(a.current),d.forEach(h=>document.removeEventListener(h,u)),document.removeEventListener("visibilitychange",m)}},[t,i,u]),{isIdle:o.current}}function qu({activeInteraction:e,onApprove:t,onAlwaysAllow:n,onDeny:s,onToggleOption:o,onNavigateOption:a,onNavigateQuestion:i,onSubmit:c,optionCount:u=0,focusedIndex:d=0}){const m=l.useRef(!1);l.useEffect(()=>{m.current=!1},[e==null?void 0:e.toolCallId]),l.useEffect(()=>{if(!e)return;function h(p){const f=p.target,g=(f.tagName==="TEXTAREA"||f.tagName==="INPUT")&&!f.disabled;if(!m.current&&!(p.metaKey||p.ctrlKey||p.altKey)){if(e.type==="approval"){if(p.key==="Enter"&&g&&f.closest("[data-approval-field]")!==null)return;p.key==="Enter"&&p.shiftKey?(p.preventDefault(),m.current=!0,n==null||n()):p.key==="Enter"?(p.preventDefault(),m.current=!0,t==null||t()):p.key==="Escape"&&(p.preventDefault(),m.current=!0,s==null||s());return}if(e.type==="question"){if(g){if(p.key==="Enter"&&!p.shiftKey){p.preventDefault(),c==null||c();return}if(p.key==="ArrowUp"){p.preventDefault(),a==null||a("up");return}if(p.key==="ArrowDown"){p.preventDefault(),a==null||a("down");return}return}const x=parseInt(p.key,10);if(x>=1&&x<=9){p.preventDefault(),x-1<u&&(o==null||o(x-1));return}switch(p.key){case"ArrowUp":p.preventDefault(),a==null||a("up");break;case"ArrowDown":p.preventDefault(),a==null||a("down");break;case" ":p.preventDefault(),o==null||o(d);break;case"ArrowLeft":case"[":p.preventDefault(),i==null||i("prev");break;case"ArrowRight":case"]":p.preventDefault(),i==null||i("next");break;case"Enter":p.preventDefault(),c==null||c();break}}}}return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[e,t,n,s,o,a,i,c,u,d])}function jo(){const[e,t]=l.useState(()=>!document.hidden);return l.useEffect(()=>{const n=()=>t(!document.hidden);return document.addEventListener("visibilitychange",n),()=>document.removeEventListener("visibilitychange",n)},[]),e}/**
2
2
  * @license lucide-react v1.48.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- var Bu=Object.defineProperty;var zu=(e,t,s)=>t in e?Bu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var bn=(e,t,s)=>zu(e,typeof t!="symbol"?t+"":t,s);import{rQ as Uu,r as u,fa as Ho,rR as Ku,f8 as Yr,j as n,rS as Hu,rT as Gi,fb as Wu,k5 as Vr,a1 as ae,a2 as Ie,aI as Be,f6 as _e,fX as Rn,rU as Gs,k2 as as,rV as Gu,rW as qu,a3 as le,ap as pe,jP as Wo,rX as Yu,O as Ge,et as js,ar as se,B as L,X as Ue,G as K,js as qi,rY as Vu,x as De,a0 as Yi,bx as Vi,be as ks,dH as ze,aZ as Qu,rZ as Go,r_ as Xu,bS as Ju,aH as Qi,cu as Pe,aN as Le,s as $t,kn as Zu,ko as Xi,a7 as ce,lt as Ln,lu as jt,lv as Ji,aY as P,rr as em,eT as kt,dW as is,iV as an,r$ as tm,a4 as Wt,eG as Zi,fy as Qr,dc as Xr,au as Gt,s0 as qo,jO as nm,jT as ec,jN as sm,pG as Jr,jr as Fn,J as cn,iq as Zr,es as nn,l as je,aJ as tc,eQ as nc,ea as sc,eb as rc,eR as rm,s1 as om,ef as it,bz as ln,bA as dn,U as qt,bB as un,bD as mn,C as hn,eo as We,ep as am,mL as oc,l4 as ac,aP as Ke,s2 as im,gM as ic,bT as Yo,s3 as cm,g as cs,k1 as vr,z as eo,e4 as lt,hI as rt,gd as to,fD as Ss,kg as no,f as At,b9 as cc,eF as Cs,s4 as lc,em as lm,am as so,_ as Tn,dl as fn,dm as pn,dn as gn,ak as $e,aq as Ns,nF as dc,s5 as dm,s6 as um,c$ as mm,dV as ls,by as Xe,ku as As,kt as en,d2 as xt,d3 as bt,d5 as ht,d6 as tt,d7 as ft,eD as St,dO as tn,dM as hm,co as $n,ez as uc,s7 as fm,cm as mc,gv as hc,h6 as Vo,s8 as pm,ic as ds,kc as gm,ke as xm,h4 as fc,s9 as bm,g1 as Es,g2 as Is,g4 as Rs,sa as pc,g5 as Qe,sb as Bn,g7 as es,h as ro,sc as oo,sd as ym,g3 as vm,qE as wm,se as gc,jE as jm,sf as km,sg as Sm,sh as Cm,hn as xc,si as Nm,sj as Am,iU as Em,sk as Im,sl as Rm,ax as Tm,gm as bc,ad as Fe,hl as Ts,sm as Dm,sn as Om,gn as Mm,rK as Qo,i1 as _m,mJ as Pm,i3 as Lm,i4 as Fm,i5 as $m,jh as yc,so as Bm,sp as me,sq as zm,sr as vc,ss as ao,st as wr,su as wc,sv as io,sw as co,b8 as zn,sx as Ds,sy as Um,sz as Km,sA as Hm,sB as Wm,sC as Gm,sD as qm,sE as Ym,sF as Tt,k3 as Vm,jx as Qm,oe as Xm,sG as Xo,bd as Jm,hU as jc,sH as Bt,sI as sn,sJ as Zm,sK as eh,sL as th,sM as nh,fC as kc,c6 as Dt,sN as Sc,sO as us,sP as Cc,sQ as sh,sR as rh,sS as Nc,sT as Ac,sU as oh,sV as ah,i6 as Ec,i7 as Ic,sW as zt,sX as ih,sY as ch,ev as lh,sZ as Dn,s_ as dh,a$ as Rc,s$ as uh,t0 as mh,t1 as hh,t2 as fh,t3 as ph,t4 as Tc,t5 as Ot,fB as Ct,fJ as ct,fH as Un,fI as he,fM as Kn,fL as _t,fP as xe,I as gt,p1 as Dc,pb as Oc,n8 as Ut,n7 as rn,cq as Os,kY as gh,n6 as Mc,eU as _c,rB as Pc,om as xh,n5 as bh,t6 as yh,t7 as Jo,t8 as vh,t9 as on,ta as Lc,b_ as Ms,id as Fc,tb as wh,pZ as jh,tc as kh,td as $c,te as Sh,tf as Ch,gw as Nh,a_ as lo,n9 as uo,tg as Ah,gp as _s,th as Sn,ti as mo,q as ms,ly as Bc,tj as Eh,o as zc,tk as Ih,kp as Zo,md as Rh,oE as Th,tl as Dh,cc as Oh,tm as Mh,aj as ho,ai as fo,ng as Uc,nf as Kc,tn as _h,dF as Ps,kJ as Hc,to as Ph,tp as Lh,tq as Fh,tr as $h,ts as Bh,tt as zh,tu as Uh,hh as po,pF as Kh,tv as Wc,nI as Hh,l2 as jr,e6 as Wh,tw as Ls,nb as Fs,tx as $s,ty as Gh,na as qh,ij as go,nc as Gc,tz as Yh,qy as Vh,tA as Qh,tB as Xh,tC as ea,tD as Jh,tE as Zh,tF as ef,tG as tf,tH as ta,tI as nf,tJ as sf,tK as rf,tL as of,tM as na,e as Pt,tN as af,tO as cf,l0 as Bs,lK as qc,tP as lf,gr as Yc,lF as df,lR as uf,tQ as mf,b6 as hf,jF as ff,tR as pf,tS as hs,l_ as Vc,tT as Qc,tU as gf,tV as xf,tW as Xc,tX as sa,tY as ra,tZ as Jc,b5 as bf,t_ as yf,t$ as Zc,u0 as qn,u1 as vf,u2 as wf,u3 as jf,u4 as el,go as zs,u5 as kr,u6 as kf,cD as yn,H as tl,aV as Sf,u7 as nl,eS as oa,ki as xo,bj as Cf,t as Nf,iv as Sr,i0 as Af,aQ as bo,ia as sl,u8 as Ef,m4 as If,m5 as Rf,p5 as Tf,k$ as Df,u9 as Of,l1 as aa,lS as rl,bJ as Mf,bK as _f,bL as Pf,bM as Lf,bN as Ff,bO as $f,bP as Bf,ua as zf,ub as Cr,uc as Uf,ud as qs,ue as Kf,uf as Hf,ug as On,uh as Wf,ui as ia,mN as Gf,lL as qf,uj as Yf,k6 as Vf,k7 as Qf,ba as fs,k8 as Xf,k9 as ca,mm as la,mk as Jf,ml as da,uk as Zf,lZ as ep,ul as tp,um as np,ff as sp,un as rp,uo as op,up as ap,c1 as ip,uq as cp,ur as ol,us as al,Q as yo,T as vo,V as wo,ut as lp,uu as dp,bX as up,f$ as mp,uv as Ys,ha as hp,uw as fp,ux as pp,uy as gp,uz as xp,uA as bp,uB as yp,uC as vp,uD as wp,uE as jp,uF as ua,jD as kp,bW as Sp,uG as il,uH as Cp,fE as Np,uI as ma,h$ as Ap,uJ as Ep,uK as Ip,p6 as Rp,uL as Tp,uM as Dp,cl as Op,uN as Mp,uO as ha,uP as _p,uQ as Pp,p0 as Lp,pj as Fp,jX as $p,ed as Bp,uR as zp,a9 as cl,uS as Up,jR as Kp,jS as Hp,kK as Wp,fl as ll,fm as dl,fn as ul,fo as ml,dI as Gp,er as qp,fj as Yp,fk as Vp,j5 as Qp,jc as Xp,kO as Jp,j6 as Zp,uT as eg,ex as tg,kP as ng,uU as hl,uV as sg,uW as rg,kN as og,kM as ag,j7 as ig,eA as cg,k0 as lg,iY as dg,uX as ug,uY as fl,uZ as Us,bi as pl,$ as gl,u_ as xl,pI as mg,bg as hg,bh as fg,eX as fa,bf as pg,gO as Vs,gW as Qs,eq as gg,u$ as jo,n as xg,aS as pa,p4 as bg,bC as bl,v0 as yl,v1 as vl,pT as yg,v2 as vg,v3 as wg,v4 as Zt,dt as jg,v5 as ga,nn as kg,np as wl,dN as Sg,jM as Cg,oD as Ng,v6 as Nr,g0 as Ag,iu as Eg,nA as ut,nC as Ig,rq as Rg,o8 as xa,cW as Tg,v7 as Dg,v8 as Og,v9 as Mg,va as _g,vb as Pg,vc as Lg,vd as Fg,ve as $g,vf as Bg,rP as zg,kD as Ug,h8 as Kg,vg as Hg,vh as Wg,vi as Gg,vj as qg,vk as Yg,vl as Vg,cx as Qg,vm as Xg,vn as Jg,jg as Zg,db as ex}from"./index-B6Scr7KJ.js";import{u as tx,g as nx}from"./use-connector-management-9Q7wHb06.js";import{D as Nt,a as sx}from"./TourHost-Cg8EHvod.js";import{r as rx,f as ox,b as ax,K as ix}from"./RuntimeConnectFlow-D3H5Fpkc.js";import{O as cx,B as jl}from"./banner-CVrzHqOT.js";import{u as Ks,P as kl,a as lx}from"./ProfileRolePicker-BfciiNpr.js";import{u as dx}from"./use-dev-links-C643CCcq.js";import{B as ux,u as mx}from"./use-bindings-BgXZ0D7k.js";import{C as ko,o as Sl,O as Cl,p as at,H as hx,q as wt,I as nt,t as ps,s as Hn,v as Nl,x as fx,y as Al,z as px,u as El,r as gx,w as xx,b as bx,j as yx,D as Ar,A as vx,T as wx,a as jx,P as kx,B as Sx,e as Il,E as Rl,F as Tl,G as Cx,J as Nx,h as Ax,S as ba,n as Ex,L as Ix}from"./SeenDevices-CDSHTsL7.js";import{d as Rx}from"./untrusted-text-pHjcUwfI.js";import{S as Nn}from"./scroll-area-Bf6IGziJ.js";import{T as Dl,a as Ol,b as ts,c as Xs,u as Tx,i as Dx,d as Ox,P as Ml}from"./PreviewRefusedNotice-hlYrFDQM.js";import{P as Mx}from"./paperclip-C1tkiT74.js";import{L as _x}from"./lightbulb-BXJIRUdm.js";import{u as Wn}from"./use-update-config-BFFW_6Mc.js";import{a as Px,u as Lx,S as Fx,s as $x,b as Bx,P as zx}from"./ApplyToOverridesDialog-Ct1W283T.js";import{r as _l,s as ya,e as Ux}from"./access-copy-DHfPjN3G.js";import{t as Kx,I as va}from"./trust-posture-Blofy7eE.js";import{a as Hx}from"./use-pulse-freshness-CxzVMmVK.js";import{c as Wx,B as Gx,w as qx,b as Yx,a as Vx,e as Qx}from"./primer-trigger-DLdK7lVr.js";import{M as Xx,u as Jx,s as Zx,P as eb,a as tb}from"./use-promo-activation-C9FWA7ru.js";import{u as Pl}from"./use-promo-dismissals-BIfafj9f.js";import{u as Ll}from"./use-pending-read-DeGO1wGC.js";import{a as pt}from"./dorkbot-templates-8Yu9POWJ.js";import{i as nb,O as Fl,c as sb,b as rb}from"./OperatorIdentityForm-Cu0h8Xqy.js";import{A as $l}from"./repeat-CBnopqBr.js";import{S as Bl,P as ob}from"./progress-qB87L0zJ.js";import{P as ab,M as ib}from"./plug-CsqfQsYq.js";import{i as So,a as cb,u as lb}from"./use-notification-prefs-B8JtshQ0.js";import{R as db}from"./rotate-cw-DNa7ENG3.js";import{b as ub,u as mb,O as hb,c as fb}from"./OpenMeshSwitch-DPmTA9eg.js";import{u as pb,a as gb,C as xb,N as bb}from"./NewDirectMessageMenu-C8t7x-sB.js";import{P as yb,C as vb,f as wb,a as jb}from"./find-latest-widget-fence-D1i7qNny.js";import{o as kb}from"./owner-notice-4ZSBxa2K.js";import{a as zl,C as Sb}from"./cpu-mx7zDf7k.js";import{U as Cb}from"./unplug-B6dUhqA7.js";import{c as Nb,H as Ul,a as Kl,b as Hl}from"./RuntimeSetupDialog-DPU4QIY9.js";import{a as Ab,u as Eb,F as Ib}from"./ForwardConsentHost-CLIHtWwq.js";import{P as wa}from"./page-container-LomhzyuS.js";import{A as Rb}from"./AttentionSignalRow-B7gezgzA.js";import{u as Tb}from"./use-roving-tab-list-Nu-MIapD.js";import{R as Wl}from"./rotate-ccw-clock-D9XRHj5E.js";import{d as et,e as Ce,f as ja,g as Gl,C as ql,a as Yl,b as Vl,c as Db}from"./command-BvXBgZfv.js";import{A as Ob,M as Mb}from"./McpAppFrame-4JDJsrmg.js";import{L as _b}from"./layers-DE3wjQuk.js";import{A as Pb}from"./AgentOptionRow-0VdNzXCF.js";import{R as Lb}from"./radio-DJV7l0fv.js";import{a as Fb}from"./sound-D3r8dGFH.js";import{d as $b}from"./connection-copy--MA7AN04.js";import{P as Bb}from"./path-input-JHTlL97W.js";import"./WidgetErrorCard-BA3P7hNv.js";import{a as zb}from"./ComputerResourceView-BZ9BxgOi.js";import{P as Ub,u as Kb}from"./pane-resize-handle-BOtzx5Q4.js";import{u as Ql}from"./use-is-below-desktop-DAZnwJGB.js";import{W as Hb}from"./WithheldExtensionsNotice-quqWNbus.js";import{u as Wb}from"./use-direct-message-panel-BD_daG2E.js";import{u as Gb}from"./ComputerViewer-CbuU9tXK.js";import{a as qb}from"./use-local-browser-P93oA-F5.js";import{F as Yb}from"./file-text-CRTgqqkn.js";import"./use-relay-config-DQE3dmJ2.js";import"./use-external-adapter-catalog-BjbC1V6t.js";import"./use-adapter-catalog-J43bUHJu.js";import"./inline-code-BKPMIXZR.js";import"./useMutationState-lbcdmnfE.js";import"./runtime-connect-Dn0T5YWv.js";import"./execution-config-Bej0Ot8e.js";import"./settings-for-runtime-BoOa-ZFG.js";import"./shield-x-WGxwrtNV.js";import"./use-full-activity-feed-DUH8r8jx.js";import"./profile-errors-CpvSy5wY.js";import"./use-mounted-ref-DE7EQsBF.js";import"./ProfileFields-x-x8vgNo.js";import"./use-mesh-topology-B0k0gLoW.js";import"./card-DA_Z-FYX.js";import"./list-runtime-types-BhkZkTrB.js";import"./more-details-Bt9nlPmS.js";import"./index-B3xeyV6n.js";import"./markdown-content-Bk9lCksw.js";import"./table-DsxLk3Gx.js";import"./package-BmOMrNwc.js";import"./heart-C4CSHUW7.js";import"./git-branch-1zYKSuur.js";import"./file-DXbyb23e.js";function Vb({children:e,isValidProp:t,...s}){t&&Uu(t);const r=u.useContext(Ho);s={...r,...s},s.transition=Ku(s.transition,r.transition),s.isStatic=Yr(()=>s.isStatic);const o=u.useMemo(()=>s,[JSON.stringify(s.transition),s.transformPagePoint,s.reducedMotion,s.skipAnimations]);return n.jsx(Ho.Provider,{value:o,children:e})}function Qb(e){e.values.forEach(t=>t.stop())}function Er(e,t){[...t].reverse().forEach(r=>{const o=e.getVariant(r);o&&Gi(e,o),e.variantChildren&&e.variantChildren.forEach(a=>{Er(a,t)})})}function Xb(e,t){if(Array.isArray(t))return Er(e,t);if(typeof t=="string")return Er(e,[t]);Gi(e,t)}function Jb(){const e=new Set,t={subscribe(s){return e.add(s),()=>void e.delete(s)},start(s,r){const o=[];return e.forEach(a=>{o.push(Hu(a,s,{transitionOverride:r}))}),Promise.all(o)},set(s){return e.forEach(r=>{Xb(r,s)})},stop(){e.forEach(s=>{Qb(s)})},mount(){return()=>{t.stop()}}};return t}function Zb(){const e=Yr(Jb);return Wu(e.mount,[]),e}class ey{constructor(){this.componentControls=new Set}subscribe(t){return this.componentControls.add(t),()=>this.componentControls.delete(t)}start(t,s){this.componentControls.forEach(r=>{r.start(t.nativeEvent||t,s)})}cancel(){this.componentControls.forEach(t=>{t.cancel()})}stop(){this.componentControls.forEach(t=>{t.stop()})}}const ty=()=>new ey;function ny(){return Yr(ty)}const sy=`${Vr.repo}/issues/new`,ry={"tunnel.enabled":"boolean","tasks.enabled":"boolean","relay.enabled":"boolean","scheduler.enabled":"boolean","mesh.enabled":"boolean","mcp.enabled":"boolean","telemetry.install":"boolean","telemetry.heartbeat":"boolean","telemetry.errorReporting":"boolean","auth.enabled":"boolean","workspace.enabled":"boolean","harness.autoSync":"boolean","harness.autoAdopt":"boolean","runtimes.codex.enabled":"boolean","runtimes.opencode.enabled":"boolean","runtimes.default":"enum","logging.level":"enum","ui.theme":"enum"},oy={"runtimes.default":["claude-code","codex","opencode","doe"],"logging.level":["fatal","error","warn","info","debug","trace"],"ui.theme":["light","dark","system"]},ay=/^[a-z0-9][a-z0-9._-]{0,31}$/,iy={bug:["bug"],feature:["enhancement"],runtime:["bug"]},cy={bug:"Bug: (describe what went wrong)",feature:"Feature: (describe what you want)",runtime:"Runtime issue: (describe what went wrong)"};function ly(e){return e.replace(/\b(?:sk-|pk-|rk-|ghp_|gho_|ghu_|ghs_|github_pat_|glpat-|npm_|xox[baprsc]-)[A-Za-z0-9._-]+/g,"[redacted]").replace(/\b(?:AKIA|ASIA|AGPA|AIDA|AROA|ANPA)[0-9A-Z]{16}\b/g,"[redacted]").replace(/\bBearer\s+[A-Za-z0-9._-]+/gi,"[redacted]")}function Co(e){return ly(e).replace(/[^\s/@]+@[^\s/@]+\.[^\s/@]+/g,"[email]").replace(/\b\d{1,3}(?:\.\d{1,3}){3}\b/g,"[ip]").replace(/\b(?:[A-Fa-f0-9]{1,4}:){2,7}[A-Fa-f0-9]{1,4}\b/g,"[ip]").replace(new RegExp("(?<![\\w:.])(?:[A-Fa-f0-9]{1,4})?(?::[A-Fa-f0-9]{0,4}){2,}(?![\\w:.])","g"),"[ip]").replace(/\\\\[^\s\\]+(?:\\[^\s\\]+)+/g,"[path]").replace(/(^|[\s"'`(<[{])\/\/[^\s"'`)>\]}/]+\/[^\s"'`)>\]}]+/g,"$1[path]").replace(/\b[A-Za-z]:\\[^\r\n]*/g,"[path]").replace(/(^|[\s"'`(<[{/:])(~|\/(?:Users|home))\/[^\s"'`)>\]}]+/g,"$1[home]").replace(/(^|[\s"'`(<[{])\/[\w.-]+(?:\/[\w.-]*)+/g,"$1[path]").replace(/\b(?=[A-Za-z0-9_-]*\d)[A-Za-z0-9_-]{24,}\b/g,"[redacted]")}function dy(e,t){const s=oy[e];return s?s.includes(t):ay.test(t)&&Co(t)===t}function uy(e){const t={};for(const[s,r]of Object.entries(ry)){const o=e[s];o!=null&&(r==="boolean"&&typeof o=="boolean"||r==="number"&&typeof o=="number"&&Number.isFinite(o)||r==="enum"&&typeof o=="string"&&dy(s,o))&&(t[s]=o)}return t}const my=["details","summary"];function No(e){return Rx(Co(e),my)}function hy(e){const t=e.runtimes.length>0?e.runtimes.join(", "):"none configured",s=Object.entries(e.flags).map(([o,a])=>`- ${o}: ${String(a)}`).join(`
1
+ var Bu=Object.defineProperty;var zu=(e,t,s)=>t in e?Bu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var bn=(e,t,s)=>zu(e,typeof t!="symbol"?t+"":t,s);import{rQ as Uu,r as u,fa as Ho,rR as Ku,f8 as Yr,j as n,rS as Hu,rT as Gi,fb as Wu,k5 as Vr,a1 as ae,a2 as Ie,aI as Be,f6 as _e,fX as Rn,rU as Gs,k2 as as,rV as Gu,rW as qu,a3 as le,ap as pe,jP as Wo,rX as Yu,O as Ge,et as js,ar as se,B as L,X as Ue,G as K,js as qi,rY as Vu,x as De,a0 as Yi,bx as Vi,be as ks,dH as ze,aZ as Qu,rZ as Go,r_ as Xu,bS as Ju,aH as Qi,cu as Pe,aN as Le,s as $t,kn as Zu,ko as Xi,a7 as ce,lt as Ln,lu as jt,lv as Ji,aY as P,rr as em,eT as kt,dW as is,iV as an,r$ as tm,a4 as Wt,eG as Zi,fy as Qr,dc as Xr,au as Gt,s0 as qo,jO as nm,jT as ec,jN as sm,pG as Jr,jr as Fn,J as cn,iq as Zr,es as nn,l as je,aJ as tc,eQ as nc,ea as sc,eb as rc,eR as rm,s1 as om,ef as it,bz as ln,bA as dn,U as qt,bB as un,bD as mn,C as hn,eo as We,ep as am,mL as oc,l4 as ac,aP as Ke,s2 as im,gM as ic,bT as Yo,s3 as cm,g as cs,k1 as vr,z as eo,e4 as lt,hI as rt,gd as to,fD as Ss,kg as no,f as At,b9 as cc,eF as Cs,s4 as lc,em as lm,am as so,_ as Tn,dl as fn,dm as pn,dn as gn,ak as $e,aq as Ns,nF as dc,s5 as dm,s6 as um,c$ as mm,dV as ls,by as Xe,ku as As,kt as en,d2 as xt,d3 as bt,d5 as ht,d6 as tt,d7 as ft,eD as St,dO as tn,dM as hm,co as $n,ez as uc,s7 as fm,cm as mc,gv as hc,h6 as Vo,s8 as pm,ic as ds,kc as gm,ke as xm,h4 as fc,s9 as bm,g1 as Es,g2 as Is,g4 as Rs,sa as pc,g5 as Qe,sb as Bn,g7 as es,h as ro,sc as oo,sd as ym,g3 as vm,qE as wm,se as gc,jE as jm,sf as km,sg as Sm,sh as Cm,hn as xc,si as Nm,sj as Am,iU as Em,sk as Im,sl as Rm,ax as Tm,gm as bc,ad as Fe,hl as Ts,sm as Dm,sn as Om,gn as Mm,rK as Qo,i1 as _m,mJ as Pm,i3 as Lm,i4 as Fm,i5 as $m,jh as yc,so as Bm,sp as me,sq as zm,sr as vc,ss as ao,st as wr,su as wc,sv as io,sw as co,b8 as zn,sx as Ds,sy as Um,sz as Km,sA as Hm,sB as Wm,sC as Gm,sD as qm,sE as Ym,sF as Tt,k3 as Vm,jx as Qm,oe as Xm,sG as Xo,bd as Jm,hU as jc,sH as Bt,sI as sn,sJ as Zm,sK as eh,sL as th,sM as nh,fC as kc,c6 as Dt,sN as Sc,sO as us,sP as Cc,sQ as sh,sR as rh,sS as Nc,sT as Ac,sU as oh,sV as ah,i6 as Ec,i7 as Ic,sW as zt,sX as ih,sY as ch,ev as lh,sZ as Dn,s_ as dh,a$ as Rc,s$ as uh,t0 as mh,t1 as hh,t2 as fh,t3 as ph,t4 as Tc,t5 as Ot,fB as Ct,fJ as ct,fH as Un,fI as he,fM as Kn,fL as _t,fP as xe,I as gt,p1 as Dc,pb as Oc,n8 as Ut,n7 as rn,cq as Os,kY as gh,n6 as Mc,eU as _c,rB as Pc,om as xh,n5 as bh,t6 as yh,t7 as Jo,t8 as vh,t9 as on,ta as Lc,b_ as Ms,id as Fc,tb as wh,pZ as jh,tc as kh,td as $c,te as Sh,tf as Ch,gw as Nh,a_ as lo,n9 as uo,tg as Ah,gp as _s,th as Sn,ti as mo,q as ms,ly as Bc,tj as Eh,o as zc,tk as Ih,kp as Zo,md as Rh,oE as Th,tl as Dh,cc as Oh,tm as Mh,aj as ho,ai as fo,ng as Uc,nf as Kc,tn as _h,dF as Ps,kJ as Hc,to as Ph,tp as Lh,tq as Fh,tr as $h,ts as Bh,tt as zh,tu as Uh,hh as po,pF as Kh,tv as Wc,nI as Hh,l2 as jr,e6 as Wh,tw as Ls,nb as Fs,tx as $s,ty as Gh,na as qh,ij as go,nc as Gc,tz as Yh,qy as Vh,tA as Qh,tB as Xh,tC as ea,tD as Jh,tE as Zh,tF as ef,tG as tf,tH as ta,tI as nf,tJ as sf,tK as rf,tL as of,tM as na,e as Pt,tN as af,tO as cf,l0 as Bs,lK as qc,tP as lf,gr as Yc,lF as df,lR as uf,tQ as mf,b6 as hf,jF as ff,tR as pf,tS as hs,l_ as Vc,tT as Qc,tU as gf,tV as xf,tW as Xc,tX as sa,tY as ra,tZ as Jc,b5 as bf,t_ as yf,t$ as Zc,u0 as qn,u1 as vf,u2 as wf,u3 as jf,u4 as el,go as zs,u5 as kr,u6 as kf,cD as yn,H as tl,aV as Sf,u7 as nl,eS as oa,ki as xo,bj as Cf,t as Nf,iv as Sr,i0 as Af,aQ as bo,ia as sl,u8 as Ef,m4 as If,m5 as Rf,p5 as Tf,k$ as Df,u9 as Of,l1 as aa,lS as rl,bJ as Mf,bK as _f,bL as Pf,bM as Lf,bN as Ff,bO as $f,bP as Bf,ua as zf,ub as Cr,uc as Uf,ud as qs,ue as Kf,uf as Hf,ug as On,uh as Wf,ui as ia,mN as Gf,lL as qf,uj as Yf,k6 as Vf,k7 as Qf,ba as fs,k8 as Xf,k9 as ca,mm as la,mk as Jf,ml as da,uk as Zf,lZ as ep,ul as tp,um as np,ff as sp,un as rp,uo as op,up as ap,c1 as ip,uq as cp,ur as ol,us as al,Q as yo,T as vo,V as wo,ut as lp,uu as dp,bX as up,f$ as mp,uv as Ys,ha as hp,uw as fp,ux as pp,uy as gp,uz as xp,uA as bp,uB as yp,uC as vp,uD as wp,uE as jp,uF as ua,jD as kp,bW as Sp,uG as il,uH as Cp,fE as Np,uI as ma,h$ as Ap,uJ as Ep,uK as Ip,p6 as Rp,uL as Tp,uM as Dp,cl as Op,uN as Mp,uO as ha,uP as _p,uQ as Pp,p0 as Lp,pj as Fp,jX as $p,ed as Bp,uR as zp,a9 as cl,uS as Up,jR as Kp,jS as Hp,kK as Wp,fl as ll,fm as dl,fn as ul,fo as ml,dI as Gp,er as qp,fj as Yp,fk as Vp,j5 as Qp,jc as Xp,kO as Jp,j6 as Zp,uT as eg,ex as tg,kP as ng,uU as hl,uV as sg,uW as rg,kN as og,kM as ag,j7 as ig,eA as cg,k0 as lg,iY as dg,uX as ug,uY as fl,uZ as Us,bi as pl,$ as gl,u_ as xl,pI as mg,bg as hg,bh as fg,eX as fa,bf as pg,gO as Vs,gW as Qs,eq as gg,u$ as jo,n as xg,aS as pa,p4 as bg,bC as bl,v0 as yl,v1 as vl,pT as yg,v2 as vg,v3 as wg,v4 as Zt,dt as jg,v5 as ga,nn as kg,np as wl,dN as Sg,jM as Cg,oD as Ng,v6 as Nr,g0 as Ag,iu as Eg,nA as ut,nC as Ig,rq as Rg,o8 as xa,cW as Tg,v7 as Dg,v8 as Og,v9 as Mg,va as _g,vb as Pg,vc as Lg,vd as Fg,ve as $g,vf as Bg,rP as zg,kD as Ug,h8 as Kg,vg as Hg,vh as Wg,vi as Gg,vj as qg,vk as Yg,vl as Vg,cx as Qg,vm as Xg,vn as Jg,jg as Zg,db as ex}from"./index-p3WivF1M.js";import{u as tx,g as nx}from"./use-connector-management-COqWo76Y.js";import{D as Nt,a as sx}from"./TourHost-DvAjpsug.js";import{r as rx,f as ox,b as ax,K as ix}from"./RuntimeConnectFlow-BAqkzthF.js";import{O as cx,B as jl}from"./banner-BH1gXPTc.js";import{u as Ks,P as kl,a as lx}from"./ProfileRolePicker-BadkFi4V.js";import{u as dx}from"./use-dev-links-Cu2JmM-_.js";import{B as ux,u as mx}from"./use-bindings-CPbqKyo6.js";import{C as ko,o as Sl,O as Cl,p as at,H as hx,q as wt,I as nt,t as ps,s as Hn,v as Nl,x as fx,y as Al,z as px,u as El,r as gx,w as xx,b as bx,j as yx,D as Ar,A as vx,T as wx,a as jx,P as kx,B as Sx,e as Il,E as Rl,F as Tl,G as Cx,J as Nx,h as Ax,S as ba,n as Ex,L as Ix}from"./SeenDevices-xdR3YQNr.js";import{d as Rx}from"./untrusted-text-BDygHCRk.js";import{S as Nn}from"./scroll-area-C7vKp2H4.js";import{T as Dl,a as Ol,b as ts,c as Xs,u as Tx,i as Dx,d as Ox,P as Ml}from"./PreviewRefusedNotice-DcD1EY2c.js";import{P as Mx}from"./paperclip-BsTJpkyE.js";import{L as _x}from"./lightbulb-EadQi_Lr.js";import{u as Wn}from"./use-update-config-T78vOnRy.js";import{a as Px,u as Lx,S as Fx,s as $x,b as Bx,P as zx}from"./ApplyToOverridesDialog-BHIrnfPf.js";import{r as _l,s as ya,e as Ux}from"./access-copy-xWnaUps1.js";import{t as Kx,I as va}from"./trust-posture-BQE9NSf_.js";import{a as Hx}from"./use-pulse-freshness-CHLSUL-h.js";import{c as Wx,B as Gx,w as qx,b as Yx,a as Vx,e as Qx}from"./primer-trigger-BV4xZfFz.js";import{M as Xx,u as Jx,s as Zx,P as eb,a as tb}from"./use-promo-activation-D4PAd7pd.js";import{u as Pl}from"./use-promo-dismissals-BCBu0s3k.js";import{u as Ll}from"./use-pending-read-DcVJ8fZb.js";import{a as pt}from"./dorkbot-templates-8Yu9POWJ.js";import{i as nb,O as Fl,c as sb,b as rb}from"./OperatorIdentityForm-BRftJqRq.js";import{A as $l}from"./repeat-Dag80z5v.js";import{S as Bl,P as ob}from"./progress-CpiQE0rv.js";import{P as ab,M as ib}from"./plug-BdnJAo1j.js";import{i as So,a as cb,u as lb}from"./use-notification-prefs-GJ2coibL.js";import{R as db}from"./rotate-cw-Po-L3HFe.js";import{b as ub,u as mb,O as hb,c as fb}from"./OpenMeshSwitch-0Mkl8abo.js";import{u as pb,a as gb,C as xb,N as bb}from"./NewDirectMessageMenu-C_hXtliM.js";import{P as yb,C as vb,f as wb,a as jb}from"./find-latest-widget-fence-Bv9D10ve.js";import{o as kb}from"./owner-notice-FMj3k7-f.js";import{a as zl,C as Sb}from"./cpu-CdCfSlSR.js";import{U as Cb}from"./unplug-CklGWwz7.js";import{c as Nb,H as Ul,a as Kl,b as Hl}from"./RuntimeSetupDialog-E6f7Rd2W.js";import{a as Ab,u as Eb,F as Ib}from"./ForwardConsentHost-Buy5XlH7.js";import{P as wa}from"./page-container-DRyYoDkA.js";import{A as Rb}from"./AttentionSignalRow-CjN8lCWI.js";import{u as Tb}from"./use-roving-tab-list-EsqX22Ik.js";import{R as Wl}from"./rotate-ccw-clock-egrvXlKX.js";import{d as et,e as Ce,f as ja,g as Gl,C as ql,a as Yl,b as Vl,c as Db}from"./command-2pl_Cn7b.js";import{A as Ob,M as Mb}from"./McpAppFrame-DVNWJHrn.js";import{L as _b}from"./layers-D_NEJsnH.js";import{A as Pb}from"./AgentOptionRow-BLuSwpNh.js";import{R as Lb}from"./radio-CAGXbJK_.js";import{a as Fb}from"./sound-D3r8dGFH.js";import{d as $b}from"./connection-copy--MA7AN04.js";import{P as Bb}from"./path-input-CFm1b1pk.js";import"./WidgetErrorCard-CgRMeAEO.js";import{a as zb}from"./ComputerResourceView-Ck7rJ-SP.js";import{P as Ub,u as Kb}from"./pane-resize-handle-OBc3uYxQ.js";import{u as Ql}from"./use-is-below-desktop-7gY1n-47.js";import{W as Hb}from"./WithheldExtensionsNotice-CFHBDyIh.js";import{u as Wb}from"./use-direct-message-panel-DobIp_O4.js";import{u as Gb}from"./ComputerViewer-Dw_VpNjD.js";import{a as qb}from"./use-local-browser-DPdkgs06.js";import{F as Yb}from"./file-text-wmrSy3Io.js";import"./use-relay-config-C6rPlEud.js";import"./use-external-adapter-catalog-OLn4l20Q.js";import"./use-adapter-catalog-CDxy08u_.js";import"./inline-code-14c1Gacs.js";import"./useMutationState-B61VoWtY.js";import"./runtime-connect-Dn0T5YWv.js";import"./execution-config-DRqIsff0.js";import"./settings-for-runtime-BoOa-ZFG.js";import"./shield-x-hHpT8rAA.js";import"./use-full-activity-feed-DNrhQueu.js";import"./profile-errors-B08zStmk.js";import"./use-mounted-ref-CWXhSyZ8.js";import"./ProfileFields-Bi_AfHOE.js";import"./use-mesh-topology-Ci7r-pAi.js";import"./card-TbpEl6EH.js";import"./list-runtime-types-iJaKcim4.js";import"./more-details-DhdX4DGU.js";import"./index-BY0SKYuc.js";import"./markdown-content-BFHUHPgi.js";import"./table-9KRGRv_s.js";import"./package-0mI7-RiJ.js";import"./heart-D4fTvM5q.js";import"./git-branch-BLIYLcM4.js";import"./file-DHPgnMgj.js";function Vb({children:e,isValidProp:t,...s}){t&&Uu(t);const r=u.useContext(Ho);s={...r,...s},s.transition=Ku(s.transition,r.transition),s.isStatic=Yr(()=>s.isStatic);const o=u.useMemo(()=>s,[JSON.stringify(s.transition),s.transformPagePoint,s.reducedMotion,s.skipAnimations]);return n.jsx(Ho.Provider,{value:o,children:e})}function Qb(e){e.values.forEach(t=>t.stop())}function Er(e,t){[...t].reverse().forEach(r=>{const o=e.getVariant(r);o&&Gi(e,o),e.variantChildren&&e.variantChildren.forEach(a=>{Er(a,t)})})}function Xb(e,t){if(Array.isArray(t))return Er(e,t);if(typeof t=="string")return Er(e,[t]);Gi(e,t)}function Jb(){const e=new Set,t={subscribe(s){return e.add(s),()=>void e.delete(s)},start(s,r){const o=[];return e.forEach(a=>{o.push(Hu(a,s,{transitionOverride:r}))}),Promise.all(o)},set(s){return e.forEach(r=>{Xb(r,s)})},stop(){e.forEach(s=>{Qb(s)})},mount(){return()=>{t.stop()}}};return t}function Zb(){const e=Yr(Jb);return Wu(e.mount,[]),e}class ey{constructor(){this.componentControls=new Set}subscribe(t){return this.componentControls.add(t),()=>this.componentControls.delete(t)}start(t,s){this.componentControls.forEach(r=>{r.start(t.nativeEvent||t,s)})}cancel(){this.componentControls.forEach(t=>{t.cancel()})}stop(){this.componentControls.forEach(t=>{t.stop()})}}const ty=()=>new ey;function ny(){return Yr(ty)}const sy=`${Vr.repo}/issues/new`,ry={"tunnel.enabled":"boolean","tasks.enabled":"boolean","relay.enabled":"boolean","scheduler.enabled":"boolean","mesh.enabled":"boolean","mcp.enabled":"boolean","telemetry.install":"boolean","telemetry.heartbeat":"boolean","telemetry.errorReporting":"boolean","auth.enabled":"boolean","workspace.enabled":"boolean","harness.autoSync":"boolean","harness.autoAdopt":"boolean","runtimes.codex.enabled":"boolean","runtimes.opencode.enabled":"boolean","runtimes.default":"enum","logging.level":"enum","ui.theme":"enum"},oy={"runtimes.default":["claude-code","codex","opencode","doe"],"logging.level":["fatal","error","warn","info","debug","trace"],"ui.theme":["light","dark","system"]},ay=/^[a-z0-9][a-z0-9._-]{0,31}$/,iy={bug:["bug"],feature:["enhancement"],runtime:["bug"]},cy={bug:"Bug: (describe what went wrong)",feature:"Feature: (describe what you want)",runtime:"Runtime issue: (describe what went wrong)"};function ly(e){return e.replace(/\b(?:sk-|pk-|rk-|ghp_|gho_|ghu_|ghs_|github_pat_|glpat-|npm_|xox[baprsc]-)[A-Za-z0-9._-]+/g,"[redacted]").replace(/\b(?:AKIA|ASIA|AGPA|AIDA|AROA|ANPA)[0-9A-Z]{16}\b/g,"[redacted]").replace(/\bBearer\s+[A-Za-z0-9._-]+/gi,"[redacted]")}function Co(e){return ly(e).replace(/[^\s/@]+@[^\s/@]+\.[^\s/@]+/g,"[email]").replace(/\b\d{1,3}(?:\.\d{1,3}){3}\b/g,"[ip]").replace(/\b(?:[A-Fa-f0-9]{1,4}:){2,7}[A-Fa-f0-9]{1,4}\b/g,"[ip]").replace(new RegExp("(?<![\\w:.])(?:[A-Fa-f0-9]{1,4})?(?::[A-Fa-f0-9]{0,4}){2,}(?![\\w:.])","g"),"[ip]").replace(/\\\\[^\s\\]+(?:\\[^\s\\]+)+/g,"[path]").replace(/(^|[\s"'`(<[{])\/\/[^\s"'`)>\]}/]+\/[^\s"'`)>\]}]+/g,"$1[path]").replace(/\b[A-Za-z]:\\[^\r\n]*/g,"[path]").replace(/(^|[\s"'`(<[{/:])(~|\/(?:Users|home))\/[^\s"'`)>\]}]+/g,"$1[home]").replace(/(^|[\s"'`(<[{])\/[\w.-]+(?:\/[\w.-]*)+/g,"$1[path]").replace(/\b(?=[A-Za-z0-9_-]*\d)[A-Za-z0-9_-]{24,}\b/g,"[redacted]")}function dy(e,t){const s=oy[e];return s?s.includes(t):ay.test(t)&&Co(t)===t}function uy(e){const t={};for(const[s,r]of Object.entries(ry)){const o=e[s];o!=null&&(r==="boolean"&&typeof o=="boolean"||r==="number"&&typeof o=="number"&&Number.isFinite(o)||r==="enum"&&typeof o=="string"&&dy(s,o))&&(t[s]=o)}return t}const my=["details","summary"];function No(e){return Rx(Co(e),my)}function hy(e){const t=e.runtimes.length>0?e.runtimes.join(", "):"none configured",s=Object.entries(e.flags).map(([o,a])=>`- ${o}: ${String(a)}`).join(`
2
2
  `),r=[`- DorkOS version: ${e.version}`,`- OS / arch: ${e.platform}`,`- Runtimes configured: ${t}`,`- Reported from: ${e.surface}`,"","Settings (on/off values only, no secrets or file paths):",s.length>0?s:"- (none available)"];return Co(r.join(`
3
3
  `))}function fy(e){var s;const t=(s=e.body)==null?void 0:s.trim();return t?[No(t)]:e.kind==="feature"?["## What do you want DorkOS to do?","","","## Why would it help?","",""]:["## What happened?","","","## What did you expect?","","","## Steps to reproduce","","1. ","2. ","3. "]}function py(e){return["<details><summary>Environment</summary>","",hy(e),"","</details>","","DorkOS filled in the details above. Please check them and remove anything you do not want to share.","","---","",...fy(e)].join(`
4
4
  `)}function Js(e){var r;const t=(r=e.title)==null?void 0:r.trim(),s=new URLSearchParams({title:No(t||cy[e.kind]),body:py(e),labels:iy[e.kind].join(",")});return`${sy}?${s.toString()}`}const gy=6e3,ka=`
@@ -1 +1 @@
1
- import{j as o,db as t}from"./index-B6Scr7KJ.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,db as t}from"./index-p3WivF1M.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{cu as R,dc as D,r as l,iT as C,iU as B,j as e,by as O,ar as g,B as M,X as G,G as x,A as j,hp as Y,hq as k,_ as q,e as v,x as K,a1 as z,a2 as U,iV as X,hl as Q,iW as J,ez as Z,e2 as ee}from"./index-B6Scr7KJ.js";import{P as te}from"./page-container-LomhzyuS.js";import{g as se,A as ne,a as ie,b as ae}from"./ActivityErrorState-CPbfgXjw.js";import{u as re}from"./use-full-activity-feed-DUH8r8jx.js";import{C as w,A as oe}from"./ActivityRow-DzhwE0ht.js";import{T as P,a as _,b as ce,c as p}from"./table-DsxLk3Gx.js";import{E as b}from"./empty-state-Dv5iV4jb.js";import{u as le,W as ue}from"./WithheldExtensionsNotice-quqWNbus.js";const S=["categories","actorType","actorId","since"];function A(){const s=R(),n=D({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(f=>{const y=f.categories?f.categories.split(","):[],N=y.includes(c)?y.filter(W=>W!==c):[...y,c];return{...f,categories:N.length>0?N.join(","):void 0}})},[r]),d=l.useCallback(c=>{r(f=>({...f,actorType:c}))},[r]),m=l.useCallback(c=>{r(f=>({...f,actorId:c}))},[r]),u=l.useCallback(c=>{r(f=>({...f,since:c}))},[r]),h=l.useCallback(()=>{r(c=>{const f={...c};for(const y of S)delete f[y];return f})},[r]);return{filters:t,queryFilters:a,isFiltered:i,toggleCategory:o,setActorType:d,setActorId:m,setSince:u,clearAll:h}}function de(){const s=R(),t=D({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 me(){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 he(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 xe=["tasks","relay","agent","config","system","permissions"],L="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 fe({category:s,isActive:n,onToggle:t}){const i=w[s];return e.jsx(g.button,{type:"button",layout:!0,onClick:t,"aria-pressed":n,transition:{duration:.15},className:L,children:e.jsx("span",{className:x($,n?x(i.bg,i.text):"text-muted-foreground group-hover:bg-muted group-hover:text-foreground"),children:i.label})})}function ge({isActive:s,onClick:n}){return e.jsx(g.button,{type:"button",layout:!0,onClick:n,"aria-pressed":s,transition:{duration:.15},className:L,children:e.jsx("span",{className:x($,s?"bg-foreground text-background":"text-muted-foreground group-hover:bg-muted group-hover:text-foreground"),children:"All"})})}function ye({className:s}){const{filters:n,isFiltered:t,toggleCategory:i,clearAll:a}=A(),r=l.useRef(null),o=B(r,"horizontal"),d=new Set(n.categories?n.categories.split(","):[]),m=()=>{t&&a()};return e.jsxs("div",{className:x("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(ge,{isActive:!t,onClick:m}),xe.map(u=>e.jsx(fe,{category:u,isActive:d.has(u),onToggle:()=>i(u)},u)),e.jsx(O,{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(M,{variant:"ghost",size:"xs",className:"ml-1",onClick:a,children:[e.jsx(G,{"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 pe({isFiltered:s=!1,view:n="activity",className:t}){const{filters:i,clearAll:a}=A();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 ${ve(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 ve(s){if(!s)return"matching";const t=s.split(",").map(r=>{var o;return((o=w[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 je({view:s,onViewChange:n,className:t}){return e.jsxs(Y,{"aria-label":"Which list to show",className:x("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 be(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 we(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 Ae(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 Ne({lastVisitedAt:s,items:n,className:t}){if(!s)return null;const i=we(n,s);if(Object.values(i).reduce((d,m)=>d+(m??0),0)===0)return null;const r=be(s),o=Ae(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:x("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=w[d];return e.jsxs(q,{shape:"pill",className:x("border-transparent",u.bg,u.text),children:[m," ",u.label]},d)})})]})}const Ce={initial:{opacity:0,y:6},animate:{opacity:1,y:0,transition:{duration:.2,ease:"easeOut"}}};function ke(){const s=l.useId(),n=l.useMemo(()=>`${s.split("").reduce((i,a)=>i+a.charCodeAt(0),0)%40+50}%`,[s]);return e.jsxs(ce,{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 Se(){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(_,{children:Array.from({length:5}).map((s,n)=>e.jsx(ke,{},n))})})]})}function H({items:s,isLoading:n,isError:t,onRetry:i,isFiltered:a,view:r="activity",className:o}){const d=l.useMemo(()=>se(s,new Date),[s]),{containerRef:m,handleKeyDown:u}=he(s.length);return n&&s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:x(o),children:e.jsx(Se,{})}):t&&s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:x(o),children:e.jsx(ne,{onRetry:i})}):s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:x(o),children:e.jsx(pe,{isFiltered:a,view:r})}):e.jsx("div",{ref:m,onKeyDown:u,"data-slot":"activity-timeline",className:x(o),children:d.map(h=>e.jsxs("section",{children:[e.jsx(ie,{label:h.label}),e.jsx(g.div,{variants:Ce,initial:"initial",animate:"animate",children:e.jsx(P,{children:e.jsx(_,{children:h.items.map(c=>e.jsx(oe,{item:c},c.id))})})})]},h.label))})}function V({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:x("flex justify-center py-4",i),children:e.jsxs(M,{variant:"outline",size:"sm",onClick:s,disabled:n,className:"gap-2",children:[n&&e.jsx(K,{size:"xs"}),"Load 50 more events"]})}):null}const T=7;function Te(){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 Ie(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,Ee=4,E=30,F=1;function Fe({data:s,className:n}){const t=Math.max(...s,1);return e.jsx("svg",{viewBox:"0 0 100 30",className:x("text-muted-foreground",n),"aria-hidden":"true",children:s.map((i,a)=>{const r=i/t*E;return e.jsx("rect",{x:a*(I+Ee)+1,y:E-Math.max(r,F),width:I,height:Math.max(r,F),rx:2,fill:"currentColor",opacity:.6},a)})})}function Re(){const s=Te();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:Ie(s.dailyCounts,s.degraded)}),e.jsx(Fe,{data:s.dailyCounts,className:"h-6 w-24 shrink-0"})]})}function De(){const s=l.useId(),n=Q("dashboard.sections"),t=l.useMemo(()=>n.filter(a=>J(a.id)&&(!a.visibleWhen||a.visibleWhen())),[n]),i=le("dashboard.sections");return t.length===0&&i.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(ue,{slot:"dashboard.sections",onReview:()=>Z()}),e.jsx("div",{className:"space-y-4",children:t.map(a=>e.jsx(a.component,{},a.id))})]})}function Me(){const{view:s,setView:n}=de();return e.jsxs(e.Fragment,{children:[e.jsx(ee,{children:"Activity"}),e.jsxs(te,{width:"wide",className:"space-y-4",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[e.jsx(je,{view:s,onViewChange:n}),s==="activity"&&e.jsx(ye,{className:"min-w-0 flex-1"})]}),e.jsx(Re,{}),e.jsx(De,{}),s==="all"?e.jsx(_e,{}):e.jsx(Pe,{})]})]})}function Pe(){const{queryFilters:s,isFiltered:n}=A(),t=me(),{data:i,isLoading:a,isError:r,refetch:o,isFetchingNextPage:d,hasNextPage:m,fetchNextPage:u}=re(s),h=l.useMemo(()=>(i==null?void 0:i.pages.flatMap(c=>c.items))??[],[i]);return e.jsxs(e.Fragment,{children:[e.jsx(Ne,{lastVisitedAt:t,items:h}),e.jsx(H,{items:h,isLoading:a,isError:r,onRetry:()=>void o(),isFiltered:n}),e.jsx(V,{onLoadMore:()=>void u(),isFetching:d,hasNextPage:!!m})]})}function _e(){const{data:s,isLoading:n,isError:t,refetch:i,isFetchingNextPage:a,hasNextPage:r,fetchNextPage:o}=ae();return e.jsxs(e.Fragment,{children:[e.jsx(H,{items:s??[],isLoading:n,isError:t,onRetry:()=>void i(),isFiltered:!1,view:"all"}),e.jsx(V,{onLoadMore:()=>void o(),isFetching:a,hasNextPage:!!r})]})}const Ye=Me;export{Ye as component};
1
+ import{cu as R,dc as D,r as l,iT as C,iU as B,j as e,by as O,ar as g,B as M,X as G,G as x,A as j,hp as Y,hq as k,_ as q,e as v,x as K,a1 as z,a2 as U,iV as X,hl as Q,iW as J,ez as Z,e2 as ee}from"./index-p3WivF1M.js";import{P as te}from"./page-container-DRyYoDkA.js";import{g as se,A as ne,a as ie,b as ae}from"./ActivityErrorState-DBecAo4-.js";import{u as re}from"./use-full-activity-feed-DNrhQueu.js";import{C as w,A as oe}from"./ActivityRow-BRiUvjHA.js";import{T as P,a as _,b as ce,c as p}from"./table-9KRGRv_s.js";import{E as b}from"./empty-state-B7ufhAFk.js";import{u as le,W as ue}from"./WithheldExtensionsNotice-CFHBDyIh.js";const S=["categories","actorType","actorId","since"];function A(){const s=R(),n=D({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(f=>{const y=f.categories?f.categories.split(","):[],N=y.includes(c)?y.filter(W=>W!==c):[...y,c];return{...f,categories:N.length>0?N.join(","):void 0}})},[r]),d=l.useCallback(c=>{r(f=>({...f,actorType:c}))},[r]),m=l.useCallback(c=>{r(f=>({...f,actorId:c}))},[r]),u=l.useCallback(c=>{r(f=>({...f,since:c}))},[r]),h=l.useCallback(()=>{r(c=>{const f={...c};for(const y of S)delete f[y];return f})},[r]);return{filters:t,queryFilters:a,isFiltered:i,toggleCategory:o,setActorType:d,setActorId:m,setSince:u,clearAll:h}}function de(){const s=R(),t=D({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 me(){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 he(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 xe=["tasks","relay","agent","config","system","permissions"],L="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 fe({category:s,isActive:n,onToggle:t}){const i=w[s];return e.jsx(g.button,{type:"button",layout:!0,onClick:t,"aria-pressed":n,transition:{duration:.15},className:L,children:e.jsx("span",{className:x($,n?x(i.bg,i.text):"text-muted-foreground group-hover:bg-muted group-hover:text-foreground"),children:i.label})})}function ge({isActive:s,onClick:n}){return e.jsx(g.button,{type:"button",layout:!0,onClick:n,"aria-pressed":s,transition:{duration:.15},className:L,children:e.jsx("span",{className:x($,s?"bg-foreground text-background":"text-muted-foreground group-hover:bg-muted group-hover:text-foreground"),children:"All"})})}function ye({className:s}){const{filters:n,isFiltered:t,toggleCategory:i,clearAll:a}=A(),r=l.useRef(null),o=B(r,"horizontal"),d=new Set(n.categories?n.categories.split(","):[]),m=()=>{t&&a()};return e.jsxs("div",{className:x("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(ge,{isActive:!t,onClick:m}),xe.map(u=>e.jsx(fe,{category:u,isActive:d.has(u),onToggle:()=>i(u)},u)),e.jsx(O,{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(M,{variant:"ghost",size:"xs",className:"ml-1",onClick:a,children:[e.jsx(G,{"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 pe({isFiltered:s=!1,view:n="activity",className:t}){const{filters:i,clearAll:a}=A();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 ${ve(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 ve(s){if(!s)return"matching";const t=s.split(",").map(r=>{var o;return((o=w[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 je({view:s,onViewChange:n,className:t}){return e.jsxs(Y,{"aria-label":"Which list to show",className:x("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 be(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 we(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 Ae(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 Ne({lastVisitedAt:s,items:n,className:t}){if(!s)return null;const i=we(n,s);if(Object.values(i).reduce((d,m)=>d+(m??0),0)===0)return null;const r=be(s),o=Ae(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:x("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=w[d];return e.jsxs(q,{shape:"pill",className:x("border-transparent",u.bg,u.text),children:[m," ",u.label]},d)})})]})}const Ce={initial:{opacity:0,y:6},animate:{opacity:1,y:0,transition:{duration:.2,ease:"easeOut"}}};function ke(){const s=l.useId(),n=l.useMemo(()=>`${s.split("").reduce((i,a)=>i+a.charCodeAt(0),0)%40+50}%`,[s]);return e.jsxs(ce,{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 Se(){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(_,{children:Array.from({length:5}).map((s,n)=>e.jsx(ke,{},n))})})]})}function H({items:s,isLoading:n,isError:t,onRetry:i,isFiltered:a,view:r="activity",className:o}){const d=l.useMemo(()=>se(s,new Date),[s]),{containerRef:m,handleKeyDown:u}=he(s.length);return n&&s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:x(o),children:e.jsx(Se,{})}):t&&s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:x(o),children:e.jsx(ne,{onRetry:i})}):s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:x(o),children:e.jsx(pe,{isFiltered:a,view:r})}):e.jsx("div",{ref:m,onKeyDown:u,"data-slot":"activity-timeline",className:x(o),children:d.map(h=>e.jsxs("section",{children:[e.jsx(ie,{label:h.label}),e.jsx(g.div,{variants:Ce,initial:"initial",animate:"animate",children:e.jsx(P,{children:e.jsx(_,{children:h.items.map(c=>e.jsx(oe,{item:c},c.id))})})})]},h.label))})}function V({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:x("flex justify-center py-4",i),children:e.jsxs(M,{variant:"outline",size:"sm",onClick:s,disabled:n,className:"gap-2",children:[n&&e.jsx(K,{size:"xs"}),"Load 50 more events"]})}):null}const T=7;function Te(){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 Ie(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,Ee=4,E=30,F=1;function Fe({data:s,className:n}){const t=Math.max(...s,1);return e.jsx("svg",{viewBox:"0 0 100 30",className:x("text-muted-foreground",n),"aria-hidden":"true",children:s.map((i,a)=>{const r=i/t*E;return e.jsx("rect",{x:a*(I+Ee)+1,y:E-Math.max(r,F),width:I,height:Math.max(r,F),rx:2,fill:"currentColor",opacity:.6},a)})})}function Re(){const s=Te();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:Ie(s.dailyCounts,s.degraded)}),e.jsx(Fe,{data:s.dailyCounts,className:"h-6 w-24 shrink-0"})]})}function De(){const s=l.useId(),n=Q("dashboard.sections"),t=l.useMemo(()=>n.filter(a=>J(a.id)&&(!a.visibleWhen||a.visibleWhen())),[n]),i=le("dashboard.sections");return t.length===0&&i.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(ue,{slot:"dashboard.sections",onReview:()=>Z()}),e.jsx("div",{className:"space-y-4",children:t.map(a=>e.jsx(a.component,{},a.id))})]})}function Me(){const{view:s,setView:n}=de();return e.jsxs(e.Fragment,{children:[e.jsx(ee,{children:"Activity"}),e.jsxs(te,{width:"wide",className:"space-y-4",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[e.jsx(je,{view:s,onViewChange:n}),s==="activity"&&e.jsx(ye,{className:"min-w-0 flex-1"})]}),e.jsx(Re,{}),e.jsx(De,{}),s==="all"?e.jsx(_e,{}):e.jsx(Pe,{})]})]})}function Pe(){const{queryFilters:s,isFiltered:n}=A(),t=me(),{data:i,isLoading:a,isError:r,refetch:o,isFetchingNextPage:d,hasNextPage:m,fetchNextPage:u}=re(s),h=l.useMemo(()=>(i==null?void 0:i.pages.flatMap(c=>c.items))??[],[i]);return e.jsxs(e.Fragment,{children:[e.jsx(Ne,{lastVisitedAt:t,items:h}),e.jsx(H,{items:h,isLoading:a,isError:r,onRetry:()=>void o(),isFiltered:n}),e.jsx(V,{onLoadMore:()=>void u(),isFetching:d,hasNextPage:!!m})]})}function _e(){const{data:s,isLoading:n,isError:t,refetch:i,isFetchingNextPage:a,hasNextPage:r,fetchNextPage:o}=ae();return e.jsxs(e.Fragment,{children:[e.jsx(H,{items:s??[],isLoading:n,isError:t,onRetry:()=>void i(),isFiltered:!1,view:"all"}),e.jsx(V,{onLoadMore:()=>void o(),isFetching:a,hasNextPage:!!r})]})}const Ye=Me;export{Ye as component};
@@ -1,3 +1,3 @@
1
- import{kE as be,kF as ye,j as t,i1 as $,i2 as F,i3 as L,i4 as q,i5 as B,_ as I,av as A,Q as Se,T as ke,C as Ne,V as we,kG as z,B as b,kH as Re,kI as Ce,cu as W,e as C,G as y,s as _,r as m,J as Ie,kJ as Ae,aj as Pe,ak as De,ef as Oe,aY as Me,X as oe,kK as Te,kL as Ee,aQ as $e,e4 as ie,iU as Fe,by as V,ar as R,U as Le,kM as qe,j7 as Be,kN as ze,eA as We,eB as _e,j5 as He,jc as Ue,kO as Ke,kP as Ve,eu as ae,ew as Ge,kQ as Qe,dc as re,ad as Ye,ex as Je,j6 as Xe,l as le,kR as ce,kS as de,gv as Ze,kT as H,ev as et,bf as tt,a$ as st,hh as nt,hI as ot,kU as it,aN as at,gx as ue,g as rt,gw as me,kV as G,ai as Q,ci as lt,kW as ct,kX as dt,kY as ut,a1 as mt,kZ as ht,cq as gt,b_ as ft,ju as pt,aP as xt,ij as jt,eT as M,ki as vt,q as Y,e2 as bt,gA as yt,k_ as St,n as kt}from"./index-B6Scr7KJ.js";import{I as Nt,p as wt}from"./ChannelComposer-BVACOdph.js";import{b as Rt}from"./registry-tJrGs7kB.js";import{R as Ct}from"./RoomSurface-BlMNuQsT.js";import{P as he}from"./PromptSuggestionChips-D34Zeaq_.js";import{S as U}from"./scroll-area-Bf6IGziJ.js";import{d as It}from"./dead-letter-reasons-DtBHju9v.js";import{u as At}from"./use-mesh-topology-B0k0gLoW.js";import{A as Pt}from"./AttentionSignalRow-B7gezgzA.js";import{u as ge}from"./use-promo-dismissals-BIfafj9f.js";import{u as Dt,s as Ot,P as Mt,a as Tt}from"./use-promo-activation-C9FWA7ru.js";import"./WidgetErrorCard-BA3P7hNv.js";import"./index-B3xeyV6n.js";import"./card-DA_Z-FYX.js";import"./progress-qB87L0zJ.js";import"./markdown-content-Bk9lCksw.js";import"./table-DsxLk3Gx.js";import"./package-BmOMrNwc.js";import"./heart-C4CSHUW7.js";import"./git-branch-1zYKSuur.js";import"./file-text-CRTgqqkn.js";import"./file-DXbyb23e.js";import"./repeat-CBnopqBr.js";import"./use-room-sessions-CdjzO67_.js";import"./find-latest-widget-fence-D1i7qNny.js";import"./format-duration-BCr6uzby.js";import"./RuntimeSetupDialog-DPU4QIY9.js";import"./inline-code-BKPMIXZR.js";import"./list-runtime-types-BhkZkTrB.js";import"./RuntimeConnectFlow-D3H5Fpkc.js";import"./useMutationState-lbcdmnfE.js";import"./runtime-connect-Dn0T5YWv.js";import"./mention-pill-os_7QQu2.js";import"./rotate-ccw-clock-D9XRHj5E.js";import"./unplug-B6dUhqA7.js";import"./message-square-off-DuOiETNI.js";import"./registry-BrjQCdmG.js";import"./file-drag-GDx2qhdk.js";import"./paperclip-C1tkiT74.js";import"./index-JG_0k1NX.js";import"./use-transform-CiJqtMBf.js";import"./pane-resize-handle-BOtzx5Q4.js";import"./UnreadDivider-LL4_YtF0.js";import"./use-room-follow-claim-B1QPFaUb.js";import"./use-connector-management-9Q7wHb06.js";import"./AgentRequestCard-CmAlDGTr.js";import"./access-copy-DHfPjN3G.js";import"./query-error-state-MyJ1ivia.js";import"./empty-state-Dv5iV4jb.js";import"./use-bindings-BgXZ0D7k.js";import"./connection-copy--MA7AN04.js";import"./KeyEntry-Cf7D0Oo6.js";import"./use-update-config-BFFW_6Mc.js";import"./use-relay-config-DQE3dmJ2.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,c=s==null?void 0:s.find(h=>h.source===r&&h.reason===l),d=()=>{!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(q,{children:"Messages that never arrived"}),t.jsx(B,{children:r??"Source unknown"})]}),t.jsx(U,{className:"flex-1 px-4",children:c?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:[c.count," message",c.count===1?"":"s"," couldn’t be delivered"]}),t.jsx(I,{variant:"secondary",children:It(c.reason)})]}),t.jsxs("div",{className:"space-y-1 text-sm",children:[t.jsxs("p",{className:"text-muted-foreground",children:["First happened ",A(c.firstSeen)," ago"]}),t.jsxs("p",{className:"text-muted-foreground",children:["Last happened ",A(c.lastSeen)," ago"]})]}),c.sample!=null&&t.jsxs(Se,{children:[t.jsxs(ke,{className:"text-muted-foreground hover:text-foreground group flex items-center gap-1 text-xs font-medium transition-colors",children:[t.jsx(Ne,{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(c.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:[c&&t.jsx(b,{variant:"destructive",onClick:d,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"needs_attention":return{label:"Needs attention",badge:"destructive",tone:"error",heading:"What it needed",title:"Run that was refused a tool"};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"},neutral:{box:"bg-muted border-border",heading:"text-foreground",body:"text-foreground/80"}};function qt({open:e,itemId:n,onClose:o}){const{data:s,isLoading:i,isError:a}=Re(e?n??null:null),r=Ce(),l=W(),c=()=>{s!=null&&s.sessionId&&l(_({session:s.sessionId}))},d=()=>{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(q,{children:(h==null?void 0:h.title)??"Run that needs a look"}),t.jsx(B,{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:c,children:"View chat"}),(s==null?void 0:s.status)==="running"&&t.jsx(b,{variant:"destructive",onClick:d,disabled:r.isPending,children:r.isPending?"Cancelling…":"Cancel run"}),t.jsx(b,{variant:"outline",onClick:o,children:"Close"})]})]})})}function Bt({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(q,{children:"Agents that aren’t answering"}),t.jsxs(B,{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(Bt,{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 _t(){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 Ht({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(Ht,{suggestion:e.content.suggestion,promoTitle:e.content.title,onAccept:o,onDismiss:()=>n(e.id)}),s]})}function Kt(){const e=_t();return e===null?null:t.jsx(Ut,{promo:e},e.id)}const Vt=["report.daily"];function fe(){const{notifications:e}=Te({kinds:Vt,unread:!0});return m.useMemo(()=>e[0],[e])}function Gt({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 Qt({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 Yt="max-h-[40svh] sm:max-h-[50svh]",Jt={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 J({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 X={animate:{transition:{staggerChildren:.04}}};function Xt(e){return e?0:.18}function Zt({approvals:e,asks:n,settlingAsks:o,askAgentNames:s,onOpenSession:i,approvalsUnavailable:a,onRetryApprovals:r,scheduleApprovals:l,errorSignals:c,activityItems:d,onOpenActivity:h,shiftReport:g,presence:f,condensed:j,onExpand:x,className:u}){const p=ie(),v=m.useRef(null),k=Fe(v),N=e.length>0||n.length>0||o.length>0||l.length>0||a,P=c.length>0,w=d.length>0,je=N||P||w||g!==void 0||(f==null?void 0:f.occupied)===!0,O=Gt({questions:n.length,requests:e.length,schedules:l.length,approvalsUnavailable:a,attention:c.length+d.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(V,{initial:!1,children:[ve&&t.jsx(R.div,{"data-slot":"pinned-triage-summary",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:Xt(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",...Jt,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:k.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",Yt),children:[N&&t.jsxs(T,{title:"Waiting on you",children:[(n.length>0||o.length>0)&&t.jsx(qe,{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(Be,{approvals:e}),e.length===0&&a&&t.jsx(ze,{onRetry:r}),t.jsx(V,{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:X,initial:"initial",animate:"animate",children:c.map(S=>t.jsx(Pt,{signal:S},S.id))})})}),g&&t.jsx(Qt,{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:X,initial:"initial",animate:"animate",children:d.map(S=>t.jsx(_e,{notification:S,onOpen:()=>h(S)},S.id))})})}),f==null?void 0:f.node]}),k.start&&t.jsx(J,{edge:"top"}),k.end&&t.jsx(J,{edge:"bottom"})]},"triage-header")]})]})}function es({presence:e,composerFocused:n,onExpand:o,className:s}){const{approvals:i,isError:a,retry:r}=He(),{interactions:l}=Ue(),c=Ke(),d=Ve(l),{schedules:h,errors:g,activity:f}=ae(),j=Ge(),x=fe(),{mutate:u}=Qe(),p=re({strict:!1}),v=W(),k=Ye(),N=Je(h),P=Xe(i),w=m.useCallback(()=>{v({...le.home(),search:{}})},[v]);return t.jsxs(t.Fragment,{children:[t.jsx(Zt,{approvals:P,asks:l,settlingAsks:c,askAgentNames:d,onOpenSession:K=>{v(_({session:K}))},approvalsUnavailable:a&&i.length===0,onRetryApprovals:r,scheduleApprovals:N,errorSignals:g,activityItems:f,onOpenActivity:j,shiftReport:x===void 0?void 0:{notification:x,onDismiss:()=>u(x.id)},presence:e,condensed:k&&n===!0,onExpand:o,className:s}),t.jsx(Et,{open:p.detail==="dead-letter",itemId:p.itemId,onClose:w}),t.jsx(qt,{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=>{ce.getState().set(e,o),de.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 cs({roomId:e,presenceOccupied:n}){const o=H(e),s=ns(e),{items:i,isLoading:a,isAnyError:r}=et(),{total:l}=ae(),c=fe(),d=o!==void 0&&o.length>0,h=s!==null&&o!==void 0&&o.every(N=>N.seq<=s),g=i.length>0||a||r||l>0||c!==void 0||n,f=d&&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),k=nt();return u?t.jsx(ls,{forwardLook:rs(os(v,k),k),suggestion:t.jsx(Kt,{})}):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 ds(){try{return localStorage.getItem(pe)}catch{return null}}function us(e){try{localStorage.setItem(pe,e)}catch{}}function ms(){const[e]=m.useState(()=>ds()!==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){ce.getState().set(e,`${ee} `),de.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=H(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((c,d)=>c===void 0||d.seq>c.seq?d:c,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(Nt,{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 ks({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 Ns(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:dt(e.name,e.binding,e.state),detail:ct(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 c=Rs(l.roomId,e).find(f=>f.author.id===l.authorId);if(c===void 0)continue;const d=c.author.agentRef===void 0?void 0:n.get(c.author.agentRef);if(d!==void 0&&i.add(d.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:c.author.displayName,handle:c.author.handle,face:G({record:c.author,override:d===void 0?null:Q(d.manifest),...c.origin!==void 0?{origin:c.origin}:{}}),binding:g===null?null:Ns(g),state:l.state,since:l.since,roomTitle:g,runtime:(d==null?void 0:d.manifest.runtime)??null,profileMemberId:d===void 0?null:e.meshIdByPath[d.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 c=e.agents[l.cwd];if(c==null)continue;a.add(l.cwd);const d=c.displayName??c.name;r.push(te({id:`session:${l.sessionId}`,name:d,handle:null,face:G({record:{id:c.id,kind:"agent",displayName:d},override:Q(c)}),binding:ws,state:"working",since:null,roomTitle:null,runtime:c.runtime,profileMemberId:e.meshIdByPath[l.cwd]??null,follow:{kind:"session",sessionId:l.sessionId,cwd:l.cwd}}))}return r.sort((l,c)=>l.name.localeCompare(c.name)||l.id.localeCompare(c.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{kE as be,kF as ye,j as t,i1 as $,i2 as F,i3 as L,i4 as q,i5 as B,_ as I,av as A,Q as Se,T as ke,C as Ne,V as we,kG as z,B as b,kH as Re,kI as Ce,cu as W,e as C,G as y,s as _,r as m,J as Ie,kJ as Ae,aj as Pe,ak as De,ef as Oe,aY as Me,X as oe,kK as Te,kL as Ee,aQ as $e,e4 as ie,iU as Fe,by as V,ar as R,U as Le,kM as qe,j7 as Be,kN as ze,eA as We,eB as _e,j5 as He,jc as Ue,kO as Ke,kP as Ve,eu as ae,ew as Ge,kQ as Qe,dc as re,ad as Ye,ex as Je,j6 as Xe,l as le,kR as ce,kS as de,gv as Ze,kT as H,ev as et,bf as tt,a$ as st,hh as nt,hI as ot,kU as it,aN as at,gx as ue,g as rt,gw as me,kV as G,ai as Q,ci as lt,kW as ct,kX as dt,kY as ut,a1 as mt,kZ as ht,cq as gt,b_ as ft,ju as pt,aP as xt,ij as jt,eT as M,ki as vt,q as Y,e2 as bt,gA as yt,k_ as St,n as kt}from"./index-p3WivF1M.js";import{I as Nt,p as wt}from"./ChannelComposer-7KpffyFv.js";import{b as Rt}from"./registry-Cog_2xvt.js";import{R as Ct}from"./RoomSurface-CssMcozl.js";import{P as he}from"./PromptSuggestionChips-C653MlaU.js";import{S as U}from"./scroll-area-C7vKp2H4.js";import{d as It}from"./dead-letter-reasons-DtBHju9v.js";import{u as At}from"./use-mesh-topology-Ci7r-pAi.js";import{A as Pt}from"./AttentionSignalRow-CjN8lCWI.js";import{u as ge}from"./use-promo-dismissals-BCBu0s3k.js";import{u as Dt,s as Ot,P as Mt,a as Tt}from"./use-promo-activation-D4PAd7pd.js";import"./WidgetErrorCard-CgRMeAEO.js";import"./index-BY0SKYuc.js";import"./card-TbpEl6EH.js";import"./progress-CpiQE0rv.js";import"./markdown-content-BFHUHPgi.js";import"./table-9KRGRv_s.js";import"./package-0mI7-RiJ.js";import"./heart-D4fTvM5q.js";import"./git-branch-BLIYLcM4.js";import"./file-text-wmrSy3Io.js";import"./file-DHPgnMgj.js";import"./repeat-Dag80z5v.js";import"./use-room-sessions-CNqHgLVa.js";import"./find-latest-widget-fence-Bv9D10ve.js";import"./format-duration-BCr6uzby.js";import"./RuntimeSetupDialog-E6f7Rd2W.js";import"./inline-code-14c1Gacs.js";import"./list-runtime-types-iJaKcim4.js";import"./RuntimeConnectFlow-BAqkzthF.js";import"./useMutationState-B61VoWtY.js";import"./runtime-connect-Dn0T5YWv.js";import"./mention-pill-DXBno6EY.js";import"./rotate-ccw-clock-egrvXlKX.js";import"./unplug-CklGWwz7.js";import"./message-square-off-BH8wbm2a.js";import"./registry-DLWJMbtY.js";import"./file-drag-GDx2qhdk.js";import"./paperclip-BsTJpkyE.js";import"./index-Dbujw1c2.js";import"./use-transform-BmyqpcvO.js";import"./pane-resize-handle-OBc3uYxQ.js";import"./UnreadDivider-BoLcTO_Z.js";import"./use-room-follow-claim-BSijPV3c.js";import"./use-connector-management-COqWo76Y.js";import"./AgentRequestCard-BoRmxLKy.js";import"./access-copy-xWnaUps1.js";import"./query-error-state-B0RUeb10.js";import"./empty-state-B7ufhAFk.js";import"./use-bindings-CPbqKyo6.js";import"./connection-copy--MA7AN04.js";import"./KeyEntry-g2VQ33KW.js";import"./use-update-config-T78vOnRy.js";import"./use-relay-config-C6rPlEud.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,c=s==null?void 0:s.find(h=>h.source===r&&h.reason===l),d=()=>{!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(q,{children:"Messages that never arrived"}),t.jsx(B,{children:r??"Source unknown"})]}),t.jsx(U,{className:"flex-1 px-4",children:c?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:[c.count," message",c.count===1?"":"s"," couldn’t be delivered"]}),t.jsx(I,{variant:"secondary",children:It(c.reason)})]}),t.jsxs("div",{className:"space-y-1 text-sm",children:[t.jsxs("p",{className:"text-muted-foreground",children:["First happened ",A(c.firstSeen)," ago"]}),t.jsxs("p",{className:"text-muted-foreground",children:["Last happened ",A(c.lastSeen)," ago"]})]}),c.sample!=null&&t.jsxs(Se,{children:[t.jsxs(ke,{className:"text-muted-foreground hover:text-foreground group flex items-center gap-1 text-xs font-medium transition-colors",children:[t.jsx(Ne,{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(c.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:[c&&t.jsx(b,{variant:"destructive",onClick:d,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"needs_attention":return{label:"Needs attention",badge:"destructive",tone:"error",heading:"What it needed",title:"Run that was refused a tool"};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"},neutral:{box:"bg-muted border-border",heading:"text-foreground",body:"text-foreground/80"}};function qt({open:e,itemId:n,onClose:o}){const{data:s,isLoading:i,isError:a}=Re(e?n??null:null),r=Ce(),l=W(),c=()=>{s!=null&&s.sessionId&&l(_({session:s.sessionId}))},d=()=>{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(q,{children:(h==null?void 0:h.title)??"Run that needs a look"}),t.jsx(B,{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:c,children:"View chat"}),(s==null?void 0:s.status)==="running"&&t.jsx(b,{variant:"destructive",onClick:d,disabled:r.isPending,children:r.isPending?"Cancelling…":"Cancel run"}),t.jsx(b,{variant:"outline",onClick:o,children:"Close"})]})]})})}function Bt({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(q,{children:"Agents that aren’t answering"}),t.jsxs(B,{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(Bt,{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 _t(){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 Ht({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(Ht,{suggestion:e.content.suggestion,promoTitle:e.content.title,onAccept:o,onDismiss:()=>n(e.id)}),s]})}function Kt(){const e=_t();return e===null?null:t.jsx(Ut,{promo:e},e.id)}const Vt=["report.daily"];function fe(){const{notifications:e}=Te({kinds:Vt,unread:!0});return m.useMemo(()=>e[0],[e])}function Gt({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 Qt({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 Yt="max-h-[40svh] sm:max-h-[50svh]",Jt={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 J({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 X={animate:{transition:{staggerChildren:.04}}};function Xt(e){return e?0:.18}function Zt({approvals:e,asks:n,settlingAsks:o,askAgentNames:s,onOpenSession:i,approvalsUnavailable:a,onRetryApprovals:r,scheduleApprovals:l,errorSignals:c,activityItems:d,onOpenActivity:h,shiftReport:g,presence:f,condensed:j,onExpand:x,className:u}){const p=ie(),v=m.useRef(null),k=Fe(v),N=e.length>0||n.length>0||o.length>0||l.length>0||a,P=c.length>0,w=d.length>0,je=N||P||w||g!==void 0||(f==null?void 0:f.occupied)===!0,O=Gt({questions:n.length,requests:e.length,schedules:l.length,approvalsUnavailable:a,attention:c.length+d.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(V,{initial:!1,children:[ve&&t.jsx(R.div,{"data-slot":"pinned-triage-summary",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:Xt(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",...Jt,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:k.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",Yt),children:[N&&t.jsxs(T,{title:"Waiting on you",children:[(n.length>0||o.length>0)&&t.jsx(qe,{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(Be,{approvals:e}),e.length===0&&a&&t.jsx(ze,{onRetry:r}),t.jsx(V,{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:X,initial:"initial",animate:"animate",children:c.map(S=>t.jsx(Pt,{signal:S},S.id))})})}),g&&t.jsx(Qt,{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:X,initial:"initial",animate:"animate",children:d.map(S=>t.jsx(_e,{notification:S,onOpen:()=>h(S)},S.id))})})}),f==null?void 0:f.node]}),k.start&&t.jsx(J,{edge:"top"}),k.end&&t.jsx(J,{edge:"bottom"})]},"triage-header")]})]})}function es({presence:e,composerFocused:n,onExpand:o,className:s}){const{approvals:i,isError:a,retry:r}=He(),{interactions:l}=Ue(),c=Ke(),d=Ve(l),{schedules:h,errors:g,activity:f}=ae(),j=Ge(),x=fe(),{mutate:u}=Qe(),p=re({strict:!1}),v=W(),k=Ye(),N=Je(h),P=Xe(i),w=m.useCallback(()=>{v({...le.home(),search:{}})},[v]);return t.jsxs(t.Fragment,{children:[t.jsx(Zt,{approvals:P,asks:l,settlingAsks:c,askAgentNames:d,onOpenSession:K=>{v(_({session:K}))},approvalsUnavailable:a&&i.length===0,onRetryApprovals:r,scheduleApprovals:N,errorSignals:g,activityItems:f,onOpenActivity:j,shiftReport:x===void 0?void 0:{notification:x,onDismiss:()=>u(x.id)},presence:e,condensed:k&&n===!0,onExpand:o,className:s}),t.jsx(Et,{open:p.detail==="dead-letter",itemId:p.itemId,onClose:w}),t.jsx(qt,{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=>{ce.getState().set(e,o),de.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 cs({roomId:e,presenceOccupied:n}){const o=H(e),s=ns(e),{items:i,isLoading:a,isAnyError:r}=et(),{total:l}=ae(),c=fe(),d=o!==void 0&&o.length>0,h=s!==null&&o!==void 0&&o.every(N=>N.seq<=s),g=i.length>0||a||r||l>0||c!==void 0||n,f=d&&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),k=nt();return u?t.jsx(ls,{forwardLook:rs(os(v,k),k),suggestion:t.jsx(Kt,{})}):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 ds(){try{return localStorage.getItem(pe)}catch{return null}}function us(e){try{localStorage.setItem(pe,e)}catch{}}function ms(){const[e]=m.useState(()=>ds()!==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){ce.getState().set(e,`${ee} `),de.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=H(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((c,d)=>c===void 0||d.seq>c.seq?d:c,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(Nt,{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 ks({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 Ns(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:dt(e.name,e.binding,e.state),detail:ct(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 c=Rs(l.roomId,e).find(f=>f.author.id===l.authorId);if(c===void 0)continue;const d=c.author.agentRef===void 0?void 0:n.get(c.author.agentRef);if(d!==void 0&&i.add(d.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:c.author.displayName,handle:c.author.handle,face:G({record:c.author,override:d===void 0?null:Q(d.manifest),...c.origin!==void 0?{origin:c.origin}:{}}),binding:g===null?null:Ns(g),state:l.state,since:l.since,roomTitle:g,runtime:(d==null?void 0:d.manifest.runtime)??null,profileMemberId:d===void 0?null:e.meshIdByPath[d.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 c=e.agents[l.cwd];if(c==null)continue;a.add(l.cwd);const d=c.displayName??c.name;r.push(te({id:`session:${l.sessionId}`,name:d,handle:null,face:G({record:{id:c.id,kind:"agent",displayName:d},override:Q(c)}),binding:ws,state:"working",since:null,roomTitle:null,runtime:c.runtime,profileMemberId:e.meshIdByPath[l.cwd]??null,follow:{kind:"session",sessionId:l.sessionId,cwd:l.cwd}}))}return r.sort((l,c)=>l.name.localeCompare(c.name)||l.id.localeCompare(c.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]),c=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}}),d=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:c,rooms:d,sessions:s,agents:f,meshIdByPath:j,excludeRoomIds:x.length===0?[]:x.split(D)});return u.length===0?se:u},[o,c,d,s,f,j,x])}function Ms(e=[]){const n=Os(e),o=W(),{open:s}=vt(),i=m.useCallback(r=>{if(r.kind==="room"){Y.getState().recordOpened("room",r.roomId),o({...le.channels(),search:{id:r.roomId}});return}r.cwd&&Y.getState().recordOpened("agent",r.cwd),o(_({session:r.sessionId,dir:r.cwd}))},[o]),a=m.useMemo(()=>t.jsx(ks,{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(kt,{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]),c=H(((f=e.room)==null?void 0:f.id)??null),d=ue(((j=e.room)==null?void 0:j.id)??null,null),h=c!==void 0&&c.length===0&&d.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(cs,{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 Fn=Ts;export{Fn as component};
@@ -1 +1 @@
1
- import{j as e,G as R,ar as f,be as D,B as E,eY as C,r as n,eZ as M,e_ as b,e$ as F,f0 as _,f1 as B,e as L,f2 as u,f3 as z,d0 as H,e2 as $,bf as G,a$ as U,c$ as K,b2 as Q}from"./index-B6Scr7KJ.js";import{Q as V}from"./query-error-state-MyJ1ivia.js";import{P as N}from"./page-container-LomhzyuS.js";import{F as W,T as X,C as Y}from"./TasksEmptyState-Di3SbhJM.js";import{i as Z}from"./registry-BrjQCdmG.js";import{u as q,S as J}from"./search-x-DFBBEouE.js";import{S as ee}from"./scroll-area-Bf6IGziJ.js";import"./empty-state-Dv5iV4jb.js";import"./inline-code-BKPMIXZR.js";import"./form-DYSiVEri.js";import"./command-BvXBgZfv.js";import"./AgentPicker-Ldh64iOA.js";import"./AgentOptionRow-0VdNzXCF.js";import"./execution-config-Bej0Ot8e.js";import"./settings-for-runtime-BoOa-ZFG.js";import"./list-runtime-types-BhkZkTrB.js";import"./format-cron-DYYwmo-o.js";const te="relative after:absolute after:-inset-x-1 after:-inset-y-2 md:after:hidden";function se({count:a,active:r,onToggle:d}){return e.jsxs("button",{type:"button","data-slot":"tasks-failing-chip","aria-pressed":r,onClick:d,className:R("text-destructive hover:bg-destructive/10 inline-flex h-7 items-center gap-1.5 rounded-md border px-2.5 text-xs",te,r?"border-destructive/50 bg-destructive/10":"border-input"),children:["Failing",e.jsx("span",{className:"font-medium tabular-nums",children:a})]})}function ae({count:a,onShow:r}){return e.jsxs(e.Fragment,{children:[e.jsx("span",{"aria-hidden":!0,children:"·"}),e.jsxs("button",{type:"button","data-slot":"tasks-failing-count",onClick:r,className:"text-destructive rounded-sm underline-offset-2 hover:underline",children:[a," failing"]})]})}function ie({onShowAll:a}){return e.jsxs(f.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},"data-slot":"tasks-nothing-failing",className:"flex flex-col items-center justify-center gap-3 py-12 text-center",children:[e.jsx(D,{className:"text-muted-foreground/50 size-10","aria-hidden":!0}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"Nothing is failing. Every schedule’s last run did its job."}),e.jsx(E,{variant:"outline",size:"sm",onClick:a,children:"Show all"})]})}const ne=8,re={visible:{transition:{staggerChildren:.04}},hidden:{}},oe={hidden:{opacity:0,y:8},visible:{opacity:1,y:0}};function le({tasks:a,isLoading:r,agentMap:d,onEditTask:k,agentId:x}){const s=q(C,{debounce:{search:200}}),[c]=n.useState(0),[v,h]=n.useState(null),o=n.useMemo(()=>x?a.filter(t=>t.agentId===x):a,[a,x]),j=n.useMemo(()=>[...new Set(o.map(t=>t.agentId).filter(t=>!!t))],[o]),m=n.useMemo(()=>{const t=M(o,C,s.values,F,{field:s.sortField||b,direction:s.sortDirection});return s.sortField?t:_(t)},[o,s.values,s.sortField,s.sortDirection]),l=n.useMemo(()=>o.filter(B).length,[o]),g=s.values.health==="failing",y=()=>s.set("health",g?"":"failing");return r?e.jsx("div",{className:"space-y-3 py-4",children:Array.from({length:3}).map((t,p)=>e.jsx(L,{className:"h-14 w-full rounded-xl"},p))}):e.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[e.jsxs(u,{state:s,className:"px-0",children:[e.jsx(u.Search,{placeholder:"Filter tasks…"}),(l>0||g)&&e.jsx(se,{count:l,active:g,onToggle:y}),e.jsx(u.Primary,{name:"status"}),e.jsx(u.AddFilter,{dynamicOptions:{agent:j}}),e.jsx(u.Sort,{options:F,defaultField:b}),e.jsx(u.ResultCount,{count:m.length,total:o.length,noun:"schedule",children:l>0&&e.jsx(ae,{count:l,onShow:()=>s.set("health","failing")})}),e.jsx(u.ActiveFilters,{})]}),e.jsx(ee,{className:"min-h-0 flex-1","data-testid":z.tasksList,children:e.jsx("div",{className:"space-y-2 pb-4",children:m.length===0&&g&&l===0?e.jsx(ie,{onShowAll:()=>s.clear("health")}):m.length===0&&o.length>0?e.jsxs(f.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(J,{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(E,{variant:"outline",size:"sm",onClick:s.clearAll,children:"Clear filters"})]}):e.jsx(f.div,{initial:"hidden",animate:"visible",variants:re,className:"space-y-2",children:m.map((t,p)=>e.jsx(f.div,{variants:p<ne?oe:void 0,transition:{duration:.15},children:e.jsx(H,{task:t,agent:(t.agentId?d.get(t.agentId):void 0)??null,expanded:v===t.id,onToggleExpand:()=>h(v===t.id?null:t.id),onEdit:()=>k(t)})},t.id))},c)})})]})}function de(){return e.jsxs(e.Fragment,{children:[e.jsx($,{children:"Schedules"}),e.jsx(ce,{})]})}function ce(){const a=G(),{data:r=[],isLoading:d,isError:k,refetch:x}=U(a),[s,c]=n.useState(!1),[v,h]=n.useState(),[o,j]=n.useState(null),m=r.some(i=>i.agentId),{data:l}=K(void 0,m||!d),g=n.useMemo(()=>{const i=new Map;for(const S of(l==null?void 0:l.agents)??[])i.set(S.id,S);return i},[l]),{externalTrigger:y,clear:t}=Q(),[p,T]=n.useState(!1);y&&!p&&!s?(T(!0),h(void 0),c(!0),t()):!y&&p&&T(!1);const A=i=>{j(i),h(void 0),c(!0)},O=()=>{j(null),h(void 0),c(!0)},w=i=>{h(i),c(!0)},P=i=>{c(i),i||j(null)};if(!a)return e.jsx(W,{icon:Z.tasks,name:"Scheduling",description:"Agents run tasks on a schedule, even while you’re away.",command:"dorkos --tasks"});if(k)return e.jsx(V,{className:"h-full",title:"Couldn’t load your scheduled tasks",description:"The DorkOS server didn’t answer. Check that it’s running.",onRetry:()=>void x()});const I=r.length>0;return e.jsxs(e.Fragment,{children:[!I&&!d?e.jsx(f.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15},className:"h-full min-h-0",children:e.jsx(N,{width:"full",children:e.jsx(X,{onCreateWithPreset:A,onCreateBlank:O})})}):e.jsx(f.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15},className:"h-full min-h-0",children:e.jsx(N,{width:"full",scroll:!1,children:e.jsx(le,{tasks:r,isLoading:d,agentMap:g,onEditTask:w})})}),e.jsx(Y,{open:s,onOpenChange:P,editTask:v,initialPreset:o})]})}const Ee=de;export{Ee as component};
1
+ import{j as e,G as R,ar as f,be as D,B as E,eY as C,r as n,eZ as M,e_ as b,e$ as F,f0 as _,f1 as B,e as L,f2 as u,f3 as z,d0 as H,e2 as $,bf as G,a$ as U,c$ as K,b2 as Q}from"./index-p3WivF1M.js";import{Q as V}from"./query-error-state-B0RUeb10.js";import{P as N}from"./page-container-DRyYoDkA.js";import{F as W,T as X,C as Y}from"./TasksEmptyState-g-CavcMv.js";import{i as Z}from"./registry-DLWJMbtY.js";import{u as q,S as J}from"./search-x-C_BEqIuX.js";import{S as ee}from"./scroll-area-C7vKp2H4.js";import"./empty-state-B7ufhAFk.js";import"./inline-code-14c1Gacs.js";import"./form-CA_eiUg-.js";import"./command-2pl_Cn7b.js";import"./AgentPicker-DazquIgR.js";import"./AgentOptionRow-BLuSwpNh.js";import"./execution-config-DRqIsff0.js";import"./settings-for-runtime-BoOa-ZFG.js";import"./list-runtime-types-iJaKcim4.js";import"./format-cron-YPhIy57w.js";const te="relative after:absolute after:-inset-x-1 after:-inset-y-2 md:after:hidden";function se({count:a,active:r,onToggle:d}){return e.jsxs("button",{type:"button","data-slot":"tasks-failing-chip","aria-pressed":r,onClick:d,className:R("text-destructive hover:bg-destructive/10 inline-flex h-7 items-center gap-1.5 rounded-md border px-2.5 text-xs",te,r?"border-destructive/50 bg-destructive/10":"border-input"),children:["Failing",e.jsx("span",{className:"font-medium tabular-nums",children:a})]})}function ae({count:a,onShow:r}){return e.jsxs(e.Fragment,{children:[e.jsx("span",{"aria-hidden":!0,children:"·"}),e.jsxs("button",{type:"button","data-slot":"tasks-failing-count",onClick:r,className:"text-destructive rounded-sm underline-offset-2 hover:underline",children:[a," failing"]})]})}function ie({onShowAll:a}){return e.jsxs(f.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},"data-slot":"tasks-nothing-failing",className:"flex flex-col items-center justify-center gap-3 py-12 text-center",children:[e.jsx(D,{className:"text-muted-foreground/50 size-10","aria-hidden":!0}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"Nothing is failing. Every schedule’s last run did its job."}),e.jsx(E,{variant:"outline",size:"sm",onClick:a,children:"Show all"})]})}const ne=8,re={visible:{transition:{staggerChildren:.04}},hidden:{}},oe={hidden:{opacity:0,y:8},visible:{opacity:1,y:0}};function le({tasks:a,isLoading:r,agentMap:d,onEditTask:k,agentId:x}){const s=q(C,{debounce:{search:200}}),[c]=n.useState(0),[v,h]=n.useState(null),o=n.useMemo(()=>x?a.filter(t=>t.agentId===x):a,[a,x]),j=n.useMemo(()=>[...new Set(o.map(t=>t.agentId).filter(t=>!!t))],[o]),m=n.useMemo(()=>{const t=M(o,C,s.values,F,{field:s.sortField||b,direction:s.sortDirection});return s.sortField?t:_(t)},[o,s.values,s.sortField,s.sortDirection]),l=n.useMemo(()=>o.filter(B).length,[o]),g=s.values.health==="failing",y=()=>s.set("health",g?"":"failing");return r?e.jsx("div",{className:"space-y-3 py-4",children:Array.from({length:3}).map((t,p)=>e.jsx(L,{className:"h-14 w-full rounded-xl"},p))}):e.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[e.jsxs(u,{state:s,className:"px-0",children:[e.jsx(u.Search,{placeholder:"Filter tasks…"}),(l>0||g)&&e.jsx(se,{count:l,active:g,onToggle:y}),e.jsx(u.Primary,{name:"status"}),e.jsx(u.AddFilter,{dynamicOptions:{agent:j}}),e.jsx(u.Sort,{options:F,defaultField:b}),e.jsx(u.ResultCount,{count:m.length,total:o.length,noun:"schedule",children:l>0&&e.jsx(ae,{count:l,onShow:()=>s.set("health","failing")})}),e.jsx(u.ActiveFilters,{})]}),e.jsx(ee,{className:"min-h-0 flex-1","data-testid":z.tasksList,children:e.jsx("div",{className:"space-y-2 pb-4",children:m.length===0&&g&&l===0?e.jsx(ie,{onShowAll:()=>s.clear("health")}):m.length===0&&o.length>0?e.jsxs(f.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(J,{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(E,{variant:"outline",size:"sm",onClick:s.clearAll,children:"Clear filters"})]}):e.jsx(f.div,{initial:"hidden",animate:"visible",variants:re,className:"space-y-2",children:m.map((t,p)=>e.jsx(f.div,{variants:p<ne?oe:void 0,transition:{duration:.15},children:e.jsx(H,{task:t,agent:(t.agentId?d.get(t.agentId):void 0)??null,expanded:v===t.id,onToggleExpand:()=>h(v===t.id?null:t.id),onEdit:()=>k(t)})},t.id))},c)})})]})}function de(){return e.jsxs(e.Fragment,{children:[e.jsx($,{children:"Schedules"}),e.jsx(ce,{})]})}function ce(){const a=G(),{data:r=[],isLoading:d,isError:k,refetch:x}=U(a),[s,c]=n.useState(!1),[v,h]=n.useState(),[o,j]=n.useState(null),m=r.some(i=>i.agentId),{data:l}=K(void 0,m||!d),g=n.useMemo(()=>{const i=new Map;for(const S of(l==null?void 0:l.agents)??[])i.set(S.id,S);return i},[l]),{externalTrigger:y,clear:t}=Q(),[p,T]=n.useState(!1);y&&!p&&!s?(T(!0),h(void 0),c(!0),t()):!y&&p&&T(!1);const A=i=>{j(i),h(void 0),c(!0)},O=()=>{j(null),h(void 0),c(!0)},w=i=>{h(i),c(!0)},P=i=>{c(i),i||j(null)};if(!a)return e.jsx(W,{icon:Z.tasks,name:"Scheduling",description:"Agents run tasks on a schedule, even while you’re away.",command:"dorkos --tasks"});if(k)return e.jsx(V,{className:"h-full",title:"Couldn’t load your scheduled tasks",description:"The DorkOS server didn’t answer. Check that it’s running.",onRetry:()=>void x()});const I=r.length>0;return e.jsxs(e.Fragment,{children:[!I&&!d?e.jsx(f.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15},className:"h-full min-h-0",children:e.jsx(N,{width:"full",children:e.jsx(X,{onCreateWithPreset:A,onCreateBlank:O})})}):e.jsx(f.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15},className:"h-full min-h-0",children:e.jsx(N,{width:"full",scroll:!1,children:e.jsx(le,{tasks:r,isLoading:d,agentMap:g,onEditTask:w})})}),e.jsx(Y,{open:s,onOpenChange:P,editTask:v,initialPreset:o})]})}const Ee=de;export{Ee as component};
@@ -1 +1 @@
1
- import{a1 as j,a2 as g,r as f,j as e,e2 as N,am as i,a0 as b,e3 as y,_ as u,b8 as w}from"./index-B6Scr7KJ.js";import{I as C}from"./inline-code-BKPMIXZR.js";import{T,d as v,b as p,e as c,a as S,c as d}from"./table-DsxLk3Gx.js";import{P as k}from"./page-container-LomhzyuS.js";import{G as L}from"./git-branch-1zYKSuur.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,e2 as N,am as i,a0 as b,e3 as y,_ as u,b8 as w}from"./index-p3WivF1M.js";import{I as C}from"./inline-code-14c1Gacs.js";import{T,d as v,b as p,e as c,a as S,c as d}from"./table-9KRGRv_s.js";import{P as k}from"./page-container-DRyYoDkA.js";import{G as L}from"./git-branch-BLIYLcM4.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{O as Jt,r as f,j as e,gs as Qt,a1 as V,lt as mt,a2 as ft,lu as Y,a3 as ce,a4 as $e,lv as Wt,lw as fe,lx as X,cq as Gt,ly as Vt,ch as Xt,gA as Zt,cu as Ie,l as Ne,lz as es,lA as ts,lB as ss,lC as Se,lD as Fe,B as S,lE as ns,c$ as ht,lF as pt,eo as re,eh as xt,ei as gt,ej as yt,ek as vt,el as _e,I as qe,bJ as jt,h1 as as,bK as Nt,bL as wt,bM as bt,bN as Ct,bO as St,bP as Rt,bR as rs,$ as is,lG as os,lH as ls,lI as cs,l0 as he,d2 as He,d3 as Be,d5 as Je,d6 as Qe,d7 as We,eD as Ge,dO as Ve,a7 as kt,ll as ds,lm as us,h$ as ms,lJ as fs,lK as Xe,lL as hs,lM as ps,lN as At,lO as xs,lP as Dt,lQ as Tt,lR as gs,e2 as Mt,lS as ys,lT as vs,lU as js,jr as Ns,a0 as ws,es as bs,fB as Cs,lV as Ss,lW as Rs,G as ve,ba as Re,er as Ze,Y as De,h2 as ks,lX as As,lY as rt,lZ as it,dc as Et,l_ as Ds,l$ as Ts,ku as Ms,ad as Es,n as ot}from"./index-B6Scr7KJ.js";import{T as Os,a as $s,R as Is}from"./RoomSurface-BlMNuQsT.js";import{c as ge,C as ke}from"./registry-tJrGs7kB.js";import{M as Ls}from"./markdown-content-Bk9lCksw.js";import{o as Us,a as zs,c as Fs}from"./owner-notice-4ZSBxa2K.js";import{B as Ps}from"./banner-CVrzHqOT.js";import"./ChannelComposer-BVACOdph.js";import"./pane-resize-handle-BOtzx5Q4.js";import"./UnreadDivider-LL4_YtF0.js";import"./use-room-follow-claim-B1QPFaUb.js";import"./use-connector-management-9Q7wHb06.js";import"./AgentRequestCard-CmAlDGTr.js";import"./access-copy-DHfPjN3G.js";import"./query-error-state-MyJ1ivia.js";import"./empty-state-Dv5iV4jb.js";import"./use-bindings-BgXZ0D7k.js";import"./connection-copy--MA7AN04.js";import"./KeyEntry-Cf7D0Oo6.js";import"./use-room-sessions-CdjzO67_.js";import"./file-DXbyb23e.js";import"./file-drag-GDx2qhdk.js";import"./find-latest-widget-fence-D1i7qNny.js";import"./WidgetErrorCard-BA3P7hNv.js";import"./index-B3xeyV6n.js";import"./card-DA_Z-FYX.js";import"./progress-qB87L0zJ.js";import"./table-DsxLk3Gx.js";import"./package-BmOMrNwc.js";import"./heart-C4CSHUW7.js";import"./git-branch-1zYKSuur.js";import"./file-text-CRTgqqkn.js";import"./paperclip-C1tkiT74.js";import"./index-JG_0k1NX.js";import"./RuntimeSetupDialog-DPU4QIY9.js";import"./inline-code-BKPMIXZR.js";import"./list-runtime-types-BhkZkTrB.js";import"./RuntimeConnectFlow-D3H5Fpkc.js";import"./useMutationState-lbcdmnfE.js";import"./runtime-connect-Dn0T5YWv.js";import"./use-transform-CiJqtMBf.js";import"./repeat-CBnopqBr.js";import"./format-duration-BCr6uzby.js";import"./mention-pill-os_7QQu2.js";import"./rotate-ccw-clock-D9XRHj5E.js";import"./unplug-B6dUhqA7.js";import"./message-square-off-DuOiETNI.js";import"./registry-BrjQCdmG.js";/**
1
+ import{O as Jt,r as f,j as e,gs as Qt,a1 as V,lt as mt,a2 as ft,lu as Y,a3 as ce,a4 as $e,lv as Wt,lw as fe,lx as X,cq as Gt,ly as Vt,ch as Xt,gA as Zt,cu as Ie,l as Ne,lz as es,lA as ts,lB as ss,lC as Se,lD as Fe,B as S,lE as ns,c$ as ht,lF as pt,eo as re,eh as xt,ei as gt,ej as yt,ek as vt,el as _e,I as qe,bJ as jt,h1 as as,bK as Nt,bL as wt,bM as bt,bN as Ct,bO as St,bP as Rt,bR as rs,$ as is,lG as os,lH as ls,lI as cs,l0 as he,d2 as He,d3 as Be,d5 as Je,d6 as Qe,d7 as We,eD as Ge,dO as Ve,a7 as kt,ll as ds,lm as us,h$ as ms,lJ as fs,lK as Xe,lL as hs,lM as ps,lN as At,lO as xs,lP as Dt,lQ as Tt,lR as gs,e2 as Mt,lS as ys,lT as vs,lU as js,jr as Ns,a0 as ws,es as bs,fB as Cs,lV as Ss,lW as Rs,G as ve,ba as Re,er as Ze,Y as De,h2 as ks,lX as As,lY as rt,lZ as it,dc as Et,l_ as Ds,l$ as Ts,ku as Ms,ad as Es,n as ot}from"./index-p3WivF1M.js";import{T as Os,a as $s,R as Is}from"./RoomSurface-CssMcozl.js";import{c as ge,C as ke}from"./registry-Cog_2xvt.js";import{M as Ls}from"./markdown-content-BFHUHPgi.js";import{o as Us,a as zs,c as Fs}from"./owner-notice-FMj3k7-f.js";import{B as Ps}from"./banner-BH1gXPTc.js";import"./ChannelComposer-7KpffyFv.js";import"./pane-resize-handle-OBc3uYxQ.js";import"./UnreadDivider-BoLcTO_Z.js";import"./use-room-follow-claim-BSijPV3c.js";import"./use-connector-management-COqWo76Y.js";import"./AgentRequestCard-BoRmxLKy.js";import"./access-copy-xWnaUps1.js";import"./query-error-state-B0RUeb10.js";import"./empty-state-B7ufhAFk.js";import"./use-bindings-CPbqKyo6.js";import"./connection-copy--MA7AN04.js";import"./KeyEntry-g2VQ33KW.js";import"./use-room-sessions-CNqHgLVa.js";import"./file-DHPgnMgj.js";import"./file-drag-GDx2qhdk.js";import"./find-latest-widget-fence-Bv9D10ve.js";import"./WidgetErrorCard-CgRMeAEO.js";import"./index-BY0SKYuc.js";import"./card-TbpEl6EH.js";import"./progress-CpiQE0rv.js";import"./table-9KRGRv_s.js";import"./package-0mI7-RiJ.js";import"./heart-D4fTvM5q.js";import"./git-branch-BLIYLcM4.js";import"./file-text-wmrSy3Io.js";import"./paperclip-BsTJpkyE.js";import"./index-Dbujw1c2.js";import"./RuntimeSetupDialog-E6f7Rd2W.js";import"./inline-code-14c1Gacs.js";import"./list-runtime-types-iJaKcim4.js";import"./RuntimeConnectFlow-BAqkzthF.js";import"./useMutationState-B61VoWtY.js";import"./runtime-connect-Dn0T5YWv.js";import"./use-transform-BmyqpcvO.js";import"./repeat-Dag80z5v.js";import"./format-duration-BCr6uzby.js";import"./mention-pill-DXBno6EY.js";import"./rotate-ccw-clock-egrvXlKX.js";import"./unplug-CklGWwz7.js";import"./message-square-off-BH8wbm2a.js";import"./registry-DLWJMbtY.js";/**
2
2
  * @license lucide-react v1.48.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.