decocms 4.363.1 → 4.364.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) hide show
  1. package/dist/client/assets/{AlertCircle-CgERhdh6.js → AlertCircle-EniJtD8E.js} +1 -1
  2. package/dist/client/assets/{AreaChart-kU4sTinA.js → AreaChart-DZpAPo6a.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-BVx6AQzq.js → ArrowLeft-Clu1mSdY.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-DZQert3q.js → ArrowRight-Cu8UuHNR.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-lpfNBlP2.js → ArrowUp-C0eratGp.js} +1 -1
  6. package/dist/client/assets/{Check-DClZtAIP.js → Check-BWpBE9uf.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-BGqFZ8sM.js → CheckCircle-cinYKmPU.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-BNfU55ld.js → ChevronRight-DzRB-rdO.js} +1 -1
  9. package/dist/client/assets/{ChevronSelectorVertical-ilm76_0p.js → ChevronSelectorVertical-BiIbFU31.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-CbF1Gmeo.js → ChevronUp-DGrguvGW.js} +1 -1
  11. package/dist/client/assets/{Copy01-DiITYBuR.js → Copy01-DayLu0dF.js} +1 -1
  12. package/dist/client/assets/{CreditCard01-Zpy-4Wu9.js → CreditCard01-4OsjIT5f.js} +1 -1
  13. package/dist/client/assets/{Database01-zcGUPFsG.js → Database01-2gG_9E30.js} +1 -1
  14. package/dist/client/assets/{DotsVertical-LmkOTjL4.js → DotsVertical-CucJCL9y.js} +1 -1
  15. package/dist/client/assets/{Download01-C4blLpML.js → Download01-BC2rKbuh.js} +1 -1
  16. package/dist/client/assets/{ErrorBarContext-KbkdtIBU.js → ErrorBarContext-CRh7XbJc.js} +1 -1
  17. package/dist/client/assets/{Eye-Cd7v-liN.js → Eye-dnrP5DkM.js} +1 -1
  18. package/dist/client/assets/{File02-CceuR6rF.js → File02-BhckHV8N.js} +1 -1
  19. package/dist/client/assets/{GitBranch01-Dil6c2wv.js → GitBranch01-BBn4dN5f.js} +1 -1
  20. package/dist/client/assets/{Globe01-BVji6jXS.js → Globe01-SLAc63wC.js} +1 -1
  21. package/dist/client/assets/{HardDrive-B4UY5qYp.js → HardDrive-FlnOYA_8.js} +1 -1
  22. package/dist/client/assets/{Image01-CpXdMb8x.js → Image01-BrHSH-Vi.js} +1 -1
  23. package/dist/client/assets/{Key01-BsAAVoJx.js → Key01-CKcg8G1v.js} +1 -1
  24. package/dist/client/assets/{Link01-OqB-2yPE.js → Link01-3t9JrUgl.js} +1 -1
  25. package/dist/client/assets/{LinkExternal01-DobnLseV.js → LinkExternal01-Cp7uxK1i.js} +1 -1
  26. package/dist/client/assets/{Monitor01-BTqHf-K4.js → Monitor01-BUruMK2r.js} +1 -1
  27. package/dist/client/assets/{Package-CCkk0w5h.js → Package-CdfyZYxN.js} +1 -1
  28. package/dist/client/assets/{Palette-BBWt8owf.js → Palette-CglyAOTg.js} +1 -1
  29. package/dist/client/assets/{Play-CPeIBqH_.js → Play-rnw1eV52.js} +1 -1
  30. package/dist/client/assets/{Plus-DaErdsG1.js → Plus-Bxp02MWl.js} +1 -1
  31. package/dist/client/assets/{Printer-BG6NfeSZ.js → Printer-fz_zwxfT.js} +1 -1
  32. package/dist/client/assets/{SearchLg-DxQfk550.js → SearchLg-FC9suxna.js} +1 -1
  33. package/dist/client/assets/{SearchMd-BNXjQ2BV.js → SearchMd-DRRptSJN.js} +1 -1
  34. package/dist/client/assets/{Sector-D2wxgDkd.js → Sector-CJIPfQ5Z.js} +1 -1
  35. package/dist/client/assets/{Settings02-DL8f5fN1.js → Settings02-D2oiGU4q.js} +1 -1
  36. package/dist/client/assets/{Share07-D1Sv14jA.js → Share07-D_kiq5Fr.js} +1 -1
  37. package/dist/client/assets/{Shield01-BsobIEfQ.js → Shield01-CjyLhqlS.js} +1 -1
  38. package/dist/client/assets/{Stars01-f37Q7vDf.js → Stars01-COChWymR.js} +1 -1
  39. package/dist/client/assets/{Sun-DjKz3VjB.js → Sun-nKOZMh9n.js} +1 -1
  40. package/dist/client/assets/{SwitchHorizontal01-BIyO34Jw.js → SwitchHorizontal01-CxlKjkIX.js} +1 -1
  41. package/dist/client/assets/{Tool01-D6HOM_aJ.js → Tool01-BnKd95Y1.js} +1 -1
  42. package/dist/client/assets/{Tool02-BrfQeZRx.js → Tool02-C_xRWqQk.js} +1 -1
  43. package/dist/client/assets/{Trash01-DQjprOwc.js → Trash01-DqUm2RRh.js} +1 -1
  44. package/dist/client/assets/{TrendUp01-DIz6JZwT.js → TrendUp01-PFzYDizC.js} +1 -1
  45. package/dist/client/assets/{Upload01-BDeLrRhf.js → Upload01-CqWnAR1-.js} +1 -1
  46. package/dist/client/assets/{User01-B8a5ssx2.js → User01-BJoNdkjl.js} +1 -1
  47. package/dist/client/assets/{UserSquare-yIpHwPSn.js → UserSquare-CCDsU001.js} +1 -1
  48. package/dist/client/assets/{Users01-BCRhQsCX.js → Users01-DSQPwtP5.js} +1 -1
  49. package/dist/client/assets/{Users03-DWh3D2_T.js → Users03-CRtXqa1Q.js} +1 -1
  50. package/dist/client/assets/{XCircle-DudPVYQR.js → XCircle-9Cb0khfg.js} +1 -1
  51. package/dist/client/assets/{XClose-DpDcHm9Y.js → XClose-Cw4b4Uag.js} +1 -1
  52. package/dist/client/assets/{Zap-C5eiFR0N.js → Zap-ChVc0p76.js} +1 -1
  53. package/dist/client/assets/{ZoomOut-DdupjPFF.js → ZoomOut-BXPGwF_O.js} +1 -1
  54. package/dist/client/assets/{access-gate-Dnh0JyKy.js → access-gate-BZbNb1lq.js} +1 -1
  55. package/dist/client/assets/{add-connection-dialog-BSihy3_s.js → add-connection-dialog-s1GRGQ63.js} +1 -1
  56. package/dist/client/assets/{agent-analytics-C1OAYjbt.js → agent-analytics-C4aHsqYV.js} +1 -1
  57. package/dist/client/assets/agent-app-CzbKRw1_.js +1 -0
  58. package/dist/client/assets/{agent-assets-vYQq8qui.js → agent-assets-B6lPIA_2.js} +1 -1
  59. package/dist/client/assets/{agent-automation-BPNX454_.js → agent-automation-Bmdy2mNK.js} +1 -1
  60. package/dist/client/assets/{agent-automations-BLOXID0N.js → agent-automations-5exIOZ--.js} +1 -1
  61. package/dist/client/assets/{agent-connect-sources-BzEccd4r.js → agent-connect-sources-ozaEzrP4.js} +1 -1
  62. package/dist/client/assets/agent-deck-D5-mvZ5i.js +1 -0
  63. package/dist/client/assets/{agent-e2e-DM8adI3E.js → agent-e2e-s-Nk1F2Y.js} +1 -1
  64. package/dist/client/assets/agent-file-DkGApBvp.js +1 -0
  65. package/dist/client/assets/{agent-git-DarQSTRH.js → agent-git-Bu3r6tWp.js} +1 -1
  66. package/dist/client/assets/{agent-hosting-Dnr2S-TT.js → agent-hosting-CdYzW_dA.js} +1 -1
  67. package/dist/client/assets/{agent-icon-vDfwuZu4.js → agent-icon-DrlilhFJ.js} +1 -1
  68. package/dist/client/assets/agent-library-file-CK85m8fH.js +1 -0
  69. package/dist/client/assets/{agent-monitor-DpaaBIhL.js → agent-monitor-DEQ-34KF.js} +1 -1
  70. package/dist/client/assets/{agent-overview-D9IrP622.js → agent-overview-BQIF-rwN.js} +1 -1
  71. package/dist/client/assets/agent-settings-gb3smN_4.js +1 -0
  72. package/dist/client/assets/{agent-site-editor-DTFbZmEY.js → agent-site-editor-DtPpWjDD.js} +1 -1
  73. package/dist/client/assets/agent-site-editor-code-DkcL_YVi.js +2 -0
  74. package/dist/client/assets/{agent-site-editor-content-BE26aik7.js → agent-site-editor-content-6zQLGSyR.js} +2 -2
  75. package/dist/client/assets/{agent-site-editor-preview-ki_D8wtP.js → agent-site-editor-preview-D8mxBZIU.js} +3 -3
  76. package/dist/client/assets/agent-view-D9WzU94g.js +1 -0
  77. package/dist/client/assets/{agent-view-guard-DomQyuot.js → agent-view-guard-nj1TYVsk.js} +1 -1
  78. package/dist/client/assets/{agents-list-B0vnsITA.js → agents-list-hiZ_XS0O.js} +1 -1
  79. package/dist/client/assets/{ai-providers-CxaMjUP7.js → ai-providers-oY9ilqJZ.js} +1 -1
  80. package/dist/client/assets/{alert-DcFgIKLk.js → alert-D-emvPaG.js} +1 -1
  81. package/dist/client/assets/{alert-dialog-CiKfgw9r.js → alert-dialog-BE9ltHtr.js} +1 -1
  82. package/dist/client/assets/{api-keys-CEPWE1iS.js → api-keys-4NMR09V3.js} +1 -1
  83. package/dist/client/assets/api-keys-BQayHq-8.js +1 -0
  84. package/dist/client/assets/app-editor-DeI0TeES.js +1 -0
  85. package/dist/client/assets/{asset-utils-DJXdpjr9.js → asset-utils-CR65HphV.js} +1 -1
  86. package/dist/client/assets/{auth-ksbj4Esa.js → auth-RjDDTUUT.js} +1 -1
  87. package/dist/client/assets/{auth-catchall-DV5KEwZ2.js → auth-catchall-qxwSZGuB.js} +1 -1
  88. package/dist/client/assets/{auth-entry-Fe8qT_kq.js → auth-entry-ddblLMjc.js} +1 -1
  89. package/dist/client/assets/{auth-split-layout-CFJK_BXW.js → auth-split-layout-oGs_kK_4.js} +1 -1
  90. package/dist/client/assets/{authenticate-and-persist-oauth-DMvGjBUE.js → authenticate-and-persist-oauth-DXlrPDSv.js} +1 -1
  91. package/dist/client/assets/{automation-list-row-CkrObNhq.js → automation-list-row-XibuWgpW.js} +1 -1
  92. package/dist/client/assets/{automation-runs-C-5kRp10.js → automation-runs-nZP284NC.js} +1 -1
  93. package/dist/client/assets/automations-CDxxuCym.js +1 -0
  94. package/dist/client/assets/{autosend-BzUVLyEq.js → autosend-HdosN86x.js} +1 -1
  95. package/dist/client/assets/{avatar-CW4PxBuN.js → avatar-DcDvs8Zz.js} +1 -1
  96. package/dist/client/assets/{badge-C5Ilvf_J.js → badge-DJpaBl8u.js} +1 -1
  97. package/dist/client/assets/{block-document-Zfk-C1Kp.js → block-document-LCYQj9PJ.js} +1 -1
  98. package/dist/client/assets/{breadcrumb-BajFgW5V.js → breadcrumb-BOAVRiAa.js} +1 -1
  99. package/dist/client/assets/{buckets-CyNocIPE.js → buckets-Ze5fok7v.js} +1 -1
  100. package/dist/client/assets/{build-improve-prompt-doc-BrRLOIlw.js → build-improve-prompt-doc-Dn9xs_5X.js} +1 -1
  101. package/dist/client/assets/{bulk-category-panel-e217-dmm.js → bulk-category-panel-D-Hh71MB.js} +1 -1
  102. package/dist/client/assets/{calendar-DGiOuDgZ.js → calendar-DTnssie4.js} +1 -1
  103. package/dist/client/assets/{capability-load-error-DFv8gs5U.js → capability-load-error-CJ3e1sqb.js} +1 -1
  104. package/dist/client/assets/{cards-XHNjVWeh.js → cards-DTFINi5r.js} +1 -1
  105. package/dist/client/assets/category-editor-4KcN0JRt.js +1 -0
  106. package/dist/client/assets/{chart-C7CmtzOp.js → chart-Jb0gHMLD.js} +1 -1
  107. package/dist/client/assets/{chat-context-HB_KOUNM.js → chat-context-CXknhaDs.js} +1 -1
  108. package/dist/client/assets/{checkbox-Dg_GkeBT.js → checkbox-D8Ab2Vb-.js} +1 -1
  109. package/dist/client/assets/{choose-editor-DO1mGCL1.js → choose-editor-Chy2VB_F.js} +1 -1
  110. package/dist/client/assets/{cli-auth-success-e-RADpiN.js → cli-auth-success-B27gos5d.js} +1 -1
  111. package/dist/client/assets/{client-icons-tt6oaVA2.js → client-icons-CoIMqlIz.js} +1 -1
  112. package/dist/client/assets/{collapsible-CycyYnXe.js → collapsible-DH_CZdwE.js} +1 -1
  113. package/dist/client/assets/{collection-detail-DhtfN_Wl.js → collection-detail-D8Sq0PzS.js} +1 -1
  114. package/dist/client/assets/{collection-display-button-BRbx9UhH.js → collection-display-button-P_aK73Om.js} +1 -1
  115. package/dist/client/assets/{collection-search-j4HjYlys.js → collection-search-CzGq8Uso.js} +1 -1
  116. package/dist/client/assets/{collection-table-wrapper-0LZ9BKlr.js → collection-table-wrapper-ChqJqpKo.js} +1 -1
  117. package/dist/client/assets/{collection-tabs-Bc9QOlJ8.js → collection-tabs-BLgGMB42.js} +1 -1
  118. package/dist/client/assets/{command-BpjWfGyr.js → command-B6LMVdkQ.js} +1 -1
  119. package/dist/client/assets/{command-palette-store-D19nXDNm.js → command-palette-store-BwHku_Zt.js} +1 -1
  120. package/dist/client/assets/{commerce-onboarding-CdG4FfWS.js → commerce-onboarding-EmIMFBqV.js} +1 -1
  121. package/dist/client/assets/{companion-mcps-section-CVcicsr9.js → companion-mcps-section-BszDkkOp.js} +1 -1
  122. package/dist/client/assets/{connect-COU6F3Do.js → connect-CM-97gwN.js} +1 -1
  123. package/dist/client/assets/{connect-layout-Bl-ol5HH.js → connect-layout-C_MQVbrT.js} +1 -1
  124. package/dist/client/assets/{connection-By77bjvj.js → connection-OmoYXqZk.js} +1 -1
  125. package/dist/client/assets/{connection-card-Br8jDKgZ.js → connection-card-Cy-GdKQl.js} +1 -1
  126. package/dist/client/assets/{connection-detail-vVdPGlxv.js → connection-detail-CuBiFvjK.js} +1 -1
  127. package/dist/client/assets/{connection-form-helpers-CFXh6BoJ.js → connection-form-helpers-D3hdN_Pk.js} +1 -1
  128. package/dist/client/assets/{connections-BBNFmXEe.js → connections-BnO49Vti.js} +1 -1
  129. package/dist/client/assets/{create-organization-dialog-CRl8hry2.js → create-organization-dialog--p2RMsV5.js} +1 -1
  130. package/dist/client/assets/{decode-html-entities-Cf7wUEql.js → decode-html-entities-DDqE27I4.js} +1 -1
  131. package/dist/client/assets/{decopilot-sse-pool-D2Qtyl-A.js → decopilot-sse-pool-CfYFArSW.js} +1 -1
  132. package/dist/client/assets/{dialog-DJBpjJnY.js → dialog-otnvxVN0.js} +1 -1
  133. package/dist/client/assets/{discover-y7BsppSE.js → discover-BZKxvY_j.js} +1 -1
  134. package/dist/client/assets/{domain-settings-B_cuGCF0.js → domain-settings-QORwmdcG.js} +1 -1
  135. package/dist/client/assets/{download-app-dialog-DYhv8XsJ.js → download-app-dialog-BqNRF4Sn.js} +1 -1
  136. package/dist/client/assets/{drawer-B5NRhNfW.js → drawer-s7gtDrb4.js} +1 -1
  137. package/dist/client/assets/{dropdown-menu-DzwCPltk.js → dropdown-menu-BxKUbUkE.js} +1 -1
  138. package/dist/client/assets/{editor-BHnwprUT.js → editor-DCxsAs7o.js} +1 -1
  139. package/dist/client/assets/{empty-state-CJ95hR0w.js → empty-state-CL4F2BS4.js} +1 -1
  140. package/dist/client/assets/{empty-state-CXolWOTn.js → empty-state-Cz1DkYZE.js} +1 -1
  141. package/dist/client/assets/{extract-connection-data-B1nPGa4h.js → extract-connection-data-CqGCTPdZ.js} +1 -1
  142. package/dist/client/assets/{file-explorer-Dj1zqDxa.js → file-explorer-Uvp7ogK8.js} +1 -1
  143. package/dist/client/assets/{file-preview-kRDXQYfi.js → file-preview-18IJQMnU.js} +1 -1
  144. package/dist/client/assets/{file-share-button-P5GnoZYM.js → file-share-button-Cef5f1VZ.js} +1 -1
  145. package/dist/client/assets/{file-type-icon-Cg81au_Z.js → file-type-icon-DGllFDOf.js} +1 -1
  146. package/dist/client/assets/{folder-icon-Bey_C_xd.js → folder-icon-p8jB76CU.js} +1 -1
  147. package/dist/client/assets/{form-EGCuUtdG.js → form-KjPevg0A.js} +1 -1
  148. package/dist/client/assets/{general-BJ_Ksgnn.js → general-t-IB2WC3.js} +1 -1
  149. package/dist/client/assets/{github-icon-CiNkodR8.js → github-icon-D51q_6S8.js} +1 -1
  150. package/dist/client/assets/{home-Cmddezu3.js → home-Bhl8U_ph.js} +1 -1
  151. package/dist/client/assets/{hooks-Bb9SArul.js → hooks-BhviOOpn.js} +1 -1
  152. package/dist/client/assets/{hooks-BSkeWBV7.js → hooks-k1OxvonE.js} +1 -1
  153. package/dist/client/assets/{index-6GXqHE0w.js → index-B3yBTWEk.js} +4 -4
  154. package/dist/client/assets/{index-BVRQ9yUZ.js → index-Bwc7J041.js} +1 -1
  155. package/dist/client/assets/{index-CY40-aHW.js → index-C1N-CFMR.js} +1 -1
  156. package/dist/client/assets/{index-BaItIL-_.js → index-C7WIaN4y.js} +1 -1
  157. package/dist/client/assets/{index-DCQ3taiG.js → index-CRCvoACn.js} +1 -1
  158. package/dist/client/assets/{index-B9bOVdMd.js → index-D4YJGrDI.js} +3 -3
  159. package/dist/client/assets/{index-hC6VOnUm.js → index-DD-r2o4M.js} +1 -1
  160. package/dist/client/assets/{index-CUa7fAjf.js → index-DOk05MCp.js} +1 -1
  161. package/dist/client/assets/{index-B7ENeoW4.js → index-DlQKfvnq.js} +1 -1
  162. package/dist/client/assets/{index-Cu77hgR2.js → index-DqX9hbqM.js} +1 -1
  163. package/dist/client/assets/{index-Dg14Zpi9.js → index-fTs6ROSj.js} +1 -1
  164. package/dist/client/assets/{index-qEipD_7S.js → index-m01im2kT.js} +1 -1
  165. package/dist/client/assets/{index-redirect-BRL1uQPT.js → index-redirect-e7Kr1hOd.js} +1 -1
  166. package/dist/client/assets/{index-cEqwHhEg.js → index-w1d_dmEj.js} +1 -1
  167. package/dist/client/assets/{index-9FQARZdh.js → index-xVQnUsdi.js} +1 -1
  168. package/dist/client/assets/{infiniteQueryObserver-C7FrFXuf.js → infiniteQueryObserver-DgAoAIrN.js} +1 -1
  169. package/dist/client/assets/{infra-billing-B0e93_qz.js → infra-billing-B2HwpfSN.js} +1 -1
  170. package/dist/client/assets/{input-D8xrvlz-.js → input-BnbYz5_9.js} +1 -1
  171. package/dist/client/assets/{input-BRqLi1TH.js → input-DxAgQLPa.js} +1 -1
  172. package/dist/client/assets/{input-TvernbmY.js → input-HFOrJf5B.js} +1 -1
  173. package/dist/client/assets/{integration-icon-B6H5J7sl.js → integration-icon-BPwWRlNG.js} +1 -1
  174. package/dist/client/assets/{invite-member-dialog-CsolElt3.js → invite-member-dialog-vPcEYe6v.js} +1 -1
  175. package/dist/client/assets/{label-aWEsDmHM.js → label-CqlSWrLn.js} +1 -1
  176. package/dist/client/assets/{layout-CAwe_kK2.js → layout-aU1eoqDA.js} +1 -1
  177. package/dist/client/assets/{legacy-agents-deep-DJ_t0QLc.js → legacy-agents-deep-CpKjJlPs.js} +1 -1
  178. package/dist/client/assets/{legacy-main-redirect-CySqEohs.js → legacy-main-redirect-ZPChWdtD.js} +1 -1
  179. package/dist/client/assets/{library-DRmbr8Ht.js → library-uYIcEGdr.js} +1 -1
  180. package/dist/client/assets/{login-DQDbHhI7.js → login-CfxNz6kc.js} +1 -1
  181. package/dist/client/assets/{markdown-CBvmi8AF.js → markdown-B1038zFJ.js} +1 -1
  182. package/dist/client/assets/{mcp-app-renderer-BQ7hPzlx.js → mcp-app-renderer-Cb8Ud-E7.js} +1 -1
  183. package/dist/client/assets/{mcp-oauth-DhRKpyTH.js → mcp-oauth-D6isOO_s.js} +1 -1
  184. package/dist/client/assets/{members-NHaXKGgP.js → members-DHLsomPg.js} +1 -1
  185. package/dist/client/assets/{mini-report-page-BcG9QHwQ.js → mini-report-page-iTjakIrU.js} +1 -1
  186. package/dist/client/assets/{monaco-editor-C5zvkMO4.js → monaco-editor-WNMTPDp9.js} +1 -1
  187. package/dist/client/assets/{monitoring-stats-row-CWqusnLf.js → monitoring-stats-row-B_mR1zw-.js} +1 -1
  188. package/dist/client/assets/{multi-select-CvACpZbb.js → multi-select-D54pM3d4.js} +1 -1
  189. package/dist/client/assets/{mustache-DQXz9E52.js → mustache-r9snVmI4.js} +1 -1
  190. package/dist/client/assets/{oauth-callback-BHJTnNxG.js → oauth-callback-GAK1H0Is.js} +1 -1
  191. package/dist/client/assets/{oauth-callback-ai-provider-wF0_7wc5.js → oauth-callback-ai-provider-sdaHeEFx.js} +1 -1
  192. package/dist/client/assets/{onboarding-20FUHLvO.js → onboarding-BKPW4du6.js} +1 -1
  193. package/dist/client/assets/{optimistic-project-sidebar-views-DKtRXqQ0.js → optimistic-project-sidebar-views-yrtk59Mo.js} +1 -1
  194. package/dist/client/assets/{org-layout-DRrVivAL.js → org-layout-BNIg984j.js} +1 -1
  195. package/dist/client/assets/{organization-choice-BmSYuBSE.js → organization-choice-DvXG7tgx.js} +1 -1
  196. package/dist/client/assets/{orgs-1ZlqeM-y.js → orgs-NTyzCYi-.js} +1 -1
  197. package/dist/client/assets/{page-seo-form-Cpi2Oike.js → page-seo-form-DAkbVQPg.js} +1 -1
  198. package/dist/client/assets/{pair-CD8Vxcvs.js → pair-C08OPQNP.js} +1 -1
  199. package/dist/client/assets/{popover-Ci-k968-.js → popover-DIqZ2IKF.js} +1 -1
  200. package/dist/client/assets/{post-calendar-CgTLYrrU.js → post-calendar-DuH_hA9y.js} +1 -1
  201. package/dist/client/assets/{post-editor-DyayPm7u.js → post-editor-BAf6FqSQ.js} +1 -1
  202. package/dist/client/assets/{preview-content-DhEgigNG.js → preview-content-B5xB74fu.js} +1 -1
  203. package/dist/client/assets/{preview-dialog-CKWnRekk.js → preview-dialog-b2QyOGzU.js} +1 -1
  204. package/dist/client/assets/{primitives-1lR28duD.js → primitives-4_D03rJK.js} +1 -1
  205. package/dist/client/assets/{profile-DixSbE4L.js → profile-COT-hKKD.js} +1 -1
  206. package/dist/client/assets/{project-app-view-DBHiU3Rg.js → project-app-view-DJ_q7UHg.js} +1 -1
  207. package/dist/client/assets/{project-feed-boKgu_TR.js → project-feed-DJ_jJM3E.js} +1 -1
  208. package/dist/client/assets/{project-icon-DIXBuD-A.js → project-icon-Bl3bXnhv.js} +1 -1
  209. package/dist/client/assets/project-reports-q4w3pT5T.js +1 -0
  210. package/dist/client/assets/project-tasks-DqlAyIfE.js +1 -0
  211. package/dist/client/assets/{prompts-BROxvafI.js → prompts-CI44HEcf.js} +1 -1
  212. package/dist/client/assets/record-editor-n0M7yiQw.js +1 -0
  213. package/dist/client/assets/redirect-editor-CK3YSOdb.js +1 -0
  214. package/dist/client/assets/registry-DkzCUqTc.js +2 -0
  215. package/dist/client/assets/{registry-layout-BUEF9YqP.js → registry-layout-CvRfdld3.js} +1 -1
  216. package/dist/client/assets/{reports-B1C9NU2m.js → reports-C-eaYxW3.js} +1 -1
  217. package/dist/client/assets/reports-C2LVTrmJ.js +1 -0
  218. package/dist/client/assets/{reports-tab-uLMivl2p.js → reports-tab-qffeKlGd.js} +2 -2
  219. package/dist/client/assets/repositories-ao250fUH.js +1 -0
  220. package/dist/client/assets/{repository-import-picker-DVnadPZ8.js → repository-import-picker-Bg_h8YsG.js} +1 -1
  221. package/dist/client/assets/repository-picker-BDWGy2xY.js +1 -0
  222. package/dist/client/assets/{require-capability-DSFKKTc-.js → require-capability-CmR_46yt.js} +1 -1
  223. package/dist/client/assets/{required-auth-layout-DMNBbcf3.js → required-auth-layout-BEc3NUsQ.js} +1 -1
  224. package/dist/client/assets/{reset-password-GCDcBOjo.js → reset-password-BlF157J6.js} +1 -1
  225. package/dist/client/assets/{review-settings-VwYzzjCc.js → review-settings-BBciVvfB.js} +1 -1
  226. package/dist/client/assets/{rich-text-link-control-C6A8Q9Jd.js → rich-text-link-control-CrwbAR31.js} +1 -1
  227. package/dist/client/assets/{roles-PgEO9KN-.js → roles-CuHUTdKb.js} +1 -1
  228. package/dist/client/assets/{runnable-block-editor-Db2XbJYi.js → runnable-block-editor-2CMWc-S3.js} +1 -1
  229. package/dist/client/assets/{sandbox-lifecycle-context-DxbfUbxP.js → sandbox-lifecycle-context-CXd9Um8u.js} +1 -1
  230. package/dist/client/assets/{schema-Cnskrzk1.js → schema-BQbhQoxs.js} +1 -1
  231. package/dist/client/assets/{scroll-area-CaE3a4_T.js → scroll-area-BgZjjLM3.js} +1 -1
  232. package/dist/client/assets/{search-input-lFP9sD3O.js → search-input-uXtJ6IU8.js} +1 -1
  233. package/dist/client/assets/{secrets-BU_daRxy.js → secrets-C1mCKV1g.js} +1 -1
  234. package/dist/client/assets/{sections-editor-D-W8vM7g.js → sections-editor-Bv2odcBq.js} +1 -1
  235. package/dist/client/assets/{select-Ce9NznPv.js → select-Bc5UZb4n.js} +1 -1
  236. package/dist/client/assets/{select-model-CjTijsS7.js → select-model-BDGEzt-Y.js} +1 -1
  237. package/dist/client/assets/{seo-editor-O94He1NF.js → seo-editor-DJw3ydvJ.js} +1 -1
  238. package/dist/client/assets/settings-layout-DlH0gQXK.js +1 -0
  239. package/dist/client/assets/{settings-sidebar-BcAe-WS4.js → settings-sidebar-DswZBMwm.js} +1 -1
  240. package/dist/client/assets/{settings-tab-Cg5CqTki.js → settings-tab-Ru2atFmZ.js} +1 -1
  241. package/dist/client/assets/{shell-controls-gkZZS07l.js → shell-controls-DkLEUvEw.js} +1 -1
  242. package/dist/client/assets/{shell-layout-C3IRibnI.js → shell-layout-1dFmVwYI.js} +1 -1
  243. package/dist/client/assets/{skill-preview-MIddvDZe.js → skill-preview-CGe8kUoa.js} +1 -1
  244. package/dist/client/assets/{skills-hRnVKZ5K.js → skills-BGdKR-aF.js} +1 -1
  245. package/dist/client/assets/{sso-BePH_NId.js → sso-M-OsbEtw.js} +1 -1
  246. package/dist/client/assets/{store-CqeIEwHN.js → store-BY4ZRY7y.js} +1 -1
  247. package/dist/client/assets/store-registry-DQHLJpOA.js +2 -0
  248. package/dist/client/assets/{switch-D5GcuD9Z.js → switch-CJ5Ir2Zx.js} +1 -1
  249. package/dist/client/assets/{synced-repos-Cnp4m7yg.js → synced-repos-9D-CfhL7.js} +1 -1
  250. package/dist/client/assets/{table-O0SpY8ZO.js → table-Di_WRNkb.js} +1 -1
  251. package/dist/client/assets/{tabs-DQoXHeZr.js → tabs-DV8akPGb.js} +1 -1
  252. package/dist/client/assets/{task-board-DyZE7mH1.js → task-board-CXsHf2Zn.js} +1 -1
  253. package/dist/client/assets/{task-route-CayeX6cv.js → task-route-D79aS9d_.js} +1 -1
  254. package/dist/client/assets/{task-status-CyTozLxL.js → task-status-DIr_2V94.js} +1 -1
  255. package/dist/client/assets/tasks-C6DyE2q-.js +1 -0
  256. package/dist/client/assets/{tasks-Da-h-zLm.js → tasks-CiIHA5f1.js} +1 -1
  257. package/dist/client/assets/{textarea-BpFOmm9_.js → textarea-CneoU2lJ.js} +1 -1
  258. package/dist/client/assets/{thread-intent-AJKohiRy.js → thread-intent-DVKldCEq.js} +1 -1
  259. package/dist/client/assets/{thread-route-CEvVLI2K.js → thread-route-CKY-dKC0.js} +1 -1
  260. package/dist/client/assets/{thread-sheet-body-Bs4b4fMK.js → thread-sheet-body-CcUGPZXB.js} +1 -1
  261. package/dist/client/assets/{toggle-group-Cs1yIHkK.js → toggle-group-9HQCpj-q.js} +1 -1
  262. package/dist/client/assets/{tool-namespace-ySa3S1AM.js → tool-namespace-BVMQcKlk.js} +1 -1
  263. package/dist/client/assets/{toolbar-DOOz2W24.js → toolbar-D0oe2g2b.js} +1 -1
  264. package/dist/client/assets/{toolbar-icon-button-Dp-AbzNZ.js → toolbar-icon-button-EOE8J-Ai.js} +1 -1
  265. package/dist/client/assets/{track-Dns1NpdC.js → track-BzMi8kcZ.js} +1 -1
  266. package/dist/client/assets/{types-C1gRrnQe.js → types-Csu6Ims7.js} +1 -1
  267. package/dist/client/assets/{usage-stats-D5mXC24B.js → usage-stats-BNse37Wk.js} +1 -1
  268. package/dist/client/assets/{use-ai-providers-Bg_y9f3x.js → use-ai-providers-qnkcjapR.js} +1 -1
  269. package/dist/client/assets/{use-automations-BI_yIok-.js → use-automations-CYOC_eS5.js} +1 -1
  270. package/dist/client/assets/{use-autosave-BB0U2eiK.js → use-autosave-CCprSQ13.js} +1 -1
  271. package/dist/client/assets/{use-commerce-diagnostic-DqKipeip.js → use-commerce-diagnostic-mdvL2BW-.js} +1 -1
  272. package/dist/client/assets/{use-connect-companion-Mci4Y6hu.js → use-connect-companion-2fL060lG.js} +1 -1
  273. package/dist/client/assets/{use-connection-DCUpGmsb.js → use-connection-DCLPda2h.js} +1 -1
  274. package/dist/client/assets/{use-copy-GVBAvo9n.js → use-copy-14DzRp8J.js} +1 -1
  275. package/dist/client/assets/{use-create-virtual-mcp-CizXpVyQ.js → use-create-virtual-mcp-DoCSQs95.js} +1 -1
  276. package/dist/client/assets/{use-date-fns-locale-CcPpBz8y.js → use-date-fns-locale-DYzMvrWB.js} +1 -1
  277. package/dist/client/assets/{use-debounced-autosave-wCEzYUZh.js → use-debounced-autosave-BRAVEUZc.js} +1 -1
  278. package/dist/client/assets/{use-debounced-value-D0SYNQsR.js → use-debounced-value-Cud3o3Fq.js} +1 -1
  279. package/dist/client/assets/{use-deco-credits-DjxZxHMq.js → use-deco-credits-rwNQ1gMg.js} +1 -1
  280. package/dist/client/assets/{use-decopilot-events-zpeu2MCG.js → use-decopilot-events-DYRVevWg.js} +1 -1
  281. package/dist/client/assets/{use-delete-connection-B-DNpbCU.js → use-delete-connection-ueGIYWMK.js} +1 -1
  282. package/dist/client/assets/{use-deployment-admin-Dpkh4HgH.js → use-deployment-admin-D6IzoXV0.js} +1 -1
  283. package/dist/client/assets/{use-file-configs-B1FdrMZJ.js → use-file-configs-BwD1CaWo.js} +1 -1
  284. package/dist/client/assets/{use-infinite-scroll-BXOEU8Y7.js → use-infinite-scroll-DkLPxlOu.js} +1 -1
  285. package/dist/client/assets/{use-join-requests-1Ow065Yq.js → use-join-requests-DTGTfD21.js} +1 -1
  286. package/dist/client/assets/{use-main-panel-tabs-CeyJWpQP.js → use-main-panel-tabs-EW6rbxam.js} +1 -1
  287. package/dist/client/assets/{use-mcp-auth-status-CSQiZCDG.js → use-mcp-auth-status-CPh3Lmzs.js} +1 -1
  288. package/dist/client/assets/{use-mcp-client-Bq-mjhw3.js → use-mcp-client-DsJzBus3.js} +1 -1
  289. package/dist/client/assets/{use-mcp-prompts-CWmeNLXn.js → use-mcp-prompts-i0LZ2nQA.js} +1 -1
  290. package/dist/client/assets/{use-mcp-tools-DGdyHn8U.js → use-mcp-tools-Dc3F6Krl.js} +1 -1
  291. package/dist/client/assets/{use-members-Dnee1tF2.js → use-members-C0MdJrYz.js} +1 -1
  292. package/dist/client/assets/{use-navigate-to-agent-Drdqs1cr.js → use-navigate-to-agent-Bbq0oQ0Y.js} +1 -1
  293. package/dist/client/assets/{use-open-billing-url-Cju1isPI.js → use-open-billing-url-DvTk9GH0.js} +1 -1
  294. package/dist/client/assets/{use-org-auth-client-CVFBkaiI.js → use-org-auth-client-4o0wRx2Q.js} +1 -1
  295. package/dist/client/assets/{use-org-fs-DG1oJieK.js → use-org-fs-BEoPvlnI.js} +1 -1
  296. package/dist/client/assets/{use-org-notice-PUfO84YR.js → use-org-notice-CXYMfMUq.js} +1 -1
  297. package/dist/client/assets/{use-org-sso-uleG21Aq.js → use-org-sso-CdSz0xa8.js} +1 -1
  298. package/dist/client/assets/{use-organization-roles-yO3kgQbK.js → use-organization-roles-DzWM9Nv-.js} +1 -1
  299. package/dist/client/assets/{use-organization-settings-DrJN-E78.js → use-organization-settings-BAVHurZk.js} +1 -1
  300. package/dist/client/assets/{use-panel-navigate-CCqZdv2O.js → use-panel-navigate-Byvx0cbx.js} +1 -1
  301. package/dist/client/assets/{use-project-native-view-presence-01L5j4lu.js → use-project-native-view-presence-D-AyEulW.js} +1 -1
  302. package/dist/client/assets/{use-project-scope-DZ9tacAx.js → use-project-scope-B2cuvtTy.js} +1 -1
  303. package/dist/client/assets/{use-registry-connections-cro5WL6A.js → use-registry-connections-DikbDR8w.js} +1 -1
  304. package/dist/client/assets/{use-secrets-w6G8jtp4.js → use-secrets-D-c1ciPZ.js} +1 -1
  305. package/dist/client/assets/{use-section-preview-base-lro_p1nx.js → use-section-preview-base-CwIWGkgy.js} +1 -1
  306. package/dist/client/assets/{use-session-runtime-TS34dEJv.js → use-session-runtime-BHahDP0E.js} +1 -1
  307. package/dist/client/assets/{use-status-sounds-DQ2pMmh0.js → use-status-sounds-CnCb1h48.js} +1 -1
  308. package/dist/client/assets/{use-tags-B6zE47mm.js → use-tags-C2LhenRb.js} +1 -1
  309. package/dist/client/assets/{use-task-metadata-C4MfiHBQ.js → use-task-metadata-CB3EJ29f.js} +1 -1
  310. package/dist/client/assets/{use-thread-outputs-CpCqTMOi.js → use-thread-outputs-9oZhiYbB.js} +1 -1
  311. package/dist/client/assets/{use-view-mode-B9wUn2ad.js → use-view-mode-BvOL5I4W.js} +1 -1
  312. package/dist/client/assets/{use-virtual-mcp-CMlCV8Oj.js → use-virtual-mcp-Bk09OpEg.js} +1 -1
  313. package/dist/client/assets/useInfiniteQuery-GKCP1c_7.js +1 -0
  314. package/dist/client/assets/{useQueries-C6OAJOs7.js → useQueries-qr8TAkZc.js} +1 -1
  315. package/dist/client/assets/useSuspenseInfiniteQuery-DmEiIBI4.js +1 -0
  316. package/dist/client/assets/{users-CYflDdFv.js → users-C1ExMDuM.js} +1 -1
  317. package/dist/client/assets/{utils-B-5U5Z26.js → utils-B14U8IKK.js} +1 -1
  318. package/dist/client/assets/{variant-calendar-BsFwTl3D.js → variant-calendar-urd0wE-3.js} +1 -1
  319. package/dist/client/assets/{variant-matcher-override-CRlEf4IL.js → variant-matcher-override-DvY-JiuY.js} +1 -1
  320. package/dist/client/assets/{view-mode-toggle-kY4gR8CN.js → view-mode-toggle-swSorpD7.js} +1 -1
  321. package/dist/client/assets/{virtual-mcp-CKi1xJsO.js → virtual-mcp-DGQbDtgM.js} +1 -1
  322. package/dist/client/index.html +1 -1
  323. package/dist/server/cli.js +678 -668
  324. package/dist/server/migrate.js +171 -161
  325. package/dist/server/server.js +418 -418
  326. package/package.json +1 -1
  327. package/dist/client/assets/agent-app-62cavSHy.js +0 -1
  328. package/dist/client/assets/agent-deck-DVW32bsA.js +0 -1
  329. package/dist/client/assets/agent-file-C7nywZCe.js +0 -1
  330. package/dist/client/assets/agent-library-file-D4p-8dXS.js +0 -1
  331. package/dist/client/assets/agent-settings-CxGAsqqN.js +0 -1
  332. package/dist/client/assets/agent-site-editor-code-Dcgjtfwk.js +0 -2
  333. package/dist/client/assets/agent-view-DYYYDEW_.js +0 -1
  334. package/dist/client/assets/api-keys-DoGNEUpY.js +0 -1
  335. package/dist/client/assets/app-editor-CRjlYU-M.js +0 -1
  336. package/dist/client/assets/automations-CKhgbURI.js +0 -1
  337. package/dist/client/assets/category-editor-zLRtagcy.js +0 -1
  338. package/dist/client/assets/project-reports-ChLta7_v.js +0 -1
  339. package/dist/client/assets/project-tasks-nUWazd1g.js +0 -1
  340. package/dist/client/assets/record-editor-FqHaN2k4.js +0 -1
  341. package/dist/client/assets/redirect-editor-CWYZom_C.js +0 -1
  342. package/dist/client/assets/registry-C3_EEMj-.js +0 -2
  343. package/dist/client/assets/reports-BY7Ca1Ey.js +0 -1
  344. package/dist/client/assets/repositories-BgD13VwL.js +0 -1
  345. package/dist/client/assets/repository-picker-BGpoa_g_.js +0 -1
  346. package/dist/client/assets/settings-layout-CWQI71Tg.js +0 -1
  347. package/dist/client/assets/store-registry-BCokMLik.js +0 -2
  348. package/dist/client/assets/tasks-DGTMeQBa.js +0 -1
  349. package/dist/client/assets/useInfiniteQuery-CM35R0yt.js +0 -1
  350. package/dist/client/assets/useSuspenseInfiniteQuery-DWyGwvh9.js +0 -1
@@ -1 +1 @@
1
- import{c as F,r as Z,j as s,b as ae,h as ge,B as xe,l as je,aA as ye,t as ce}from"./index-6GXqHE0w.js";import{A as Pe}from"./agent-view-guard-DomQyuot.js";import{i as De}from"./Check-DClZtAIP.js";import{a as Ne}from"./Copy01-DiITYBuR.js";import{i as ve}from"./DotsVertical-LmkOTjL4.js";import{i as Se}from"./File02-CceuR6rF.js";import{a as we}from"./Image01-CpXdMb8x.js";import{n as Ce}from"./LinkExternal01-DobnLseV.js";import{a as _e}from"./Package-CCkk0w5h.js";import{s as Ae}from"./Trash01-DQjprOwc.js";import{i as he}from"./Upload01-BDeLrRhf.js";import{c as ze,d as Fe,b as Ue,f as Ie,g as $e,e as Me,a as Te,A as Ee}from"./alert-dialog-CiKfgw9r.js";import{D as Oe,a as ue,b as Re,c as Be}from"./dropdown-menu-DzwCPltk.js";import{S as Le}from"./search-input-lFP9sD3O.js";import{a as Ve}from"./use-virtual-mcp-CMlCV8Oj.js";import{u as We}from"./use-debounced-value-D0SYNQsR.js";import{u as qe}from"./use-file-configs-B1FdrMZJ.js";import{u as Ge,a as He,e as Ke,i as Qe,b as ke,f as Ye,c as Je}from"./asset-utils-DJXdpjr9.js";import{m as Xe}from"./match-site-slug-config-D3fUJ6vX.js";import{r as Ze}from"./site-slug-uya6Wp4-.js";import{a as et}from"./thread-route-CEvVLI2K.js";import"./use-main-panel-tabs-CeyJWpQP.js";import"./use-panel-navigate-CCqZdv2O.js";import"./use-project-scope-DZ9tacAx.js";import"./github-repo-C0igpkr9.js";import"./Globe01-BVji6jXS.js";import"./Monitor01-BTqHf-K4.js";import"./use-connection-DCUpGmsb.js";import"./use-mcp-client-Bq-mjhw3.js";import"./auth-ksbj4Esa.js";import"./use-mcp-tools-DGdyHn8U.js";import"./types-C1gRrnQe.js";import"./utils-CVEq3hMx.js";import"./ArrowUp-lpfNBlP2.js";import"./chat-context-HB_KOUNM.js";import"./autosend-BzUVLyEq.js";import"./thread-intent-AJKohiRy.js";import"./slugify-CEUa2lfQ.js";import"./hooks-BSkeWBV7.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-D2Qtyl-A.js";import"./task-board-DyZE7mH1.js";import"./schema-Cnskrzk1.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-Bg_y9f3x.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-zpeu2MCG.js";import"./use-organization-settings-DrJN-E78.js";import"./tool-namespace-ySa3S1AM.js";import"./dialog-DJBpjJnY.js";import"./drawer-B5NRhNfW.js";import"./collection-search-j4HjYlys.js";import"./SearchMd-BNXjQ2BV.js";import"./use-mcp-prompts-CWmeNLXn.js";import"./usage-stats-D5mXC24B.js";import"./form-EGCuUtdG.js";import"./label-aWEsDmHM.js";import"./input-TvernbmY.js";import"./use-copy-GVBAvo9n.js";import"./markdown-CBvmi8AF.js";import"./Download01-C4blLpML.js";import"./ZoomOut-DdupjPFF.js";import"./agent-icon-vDfwuZu4.js";import"./AlertCircle-CgERhdh6.js";import"./Tool01-D6HOM_aJ.js";import"./ArrowLeft-BVx6AQzq.js";import"./Tool02-BrfQeZRx.js";import"./ArrowRight-DZQert3q.js";import"./TrendUp01-DIz6JZwT.js";import"./Users03-DWh3D2_T.js";import"./CheckCircle-BGqFZ8sM.js";import"./ChevronUp-CbF1Gmeo.js";import"./ChevronRight-BNfU55ld.js";import"./ChevronSelectorVertical-ilm76_0p.js";import"./UserSquare-yIpHwPSn.js";import"./CreditCard01-Zpy-4Wu9.js";import"./Database01-zcGUPFsG.js";import"./Printer-BG6NfeSZ.js";import"./Settings02-DL8f5fN1.js";import"./Eye-Cd7v-liN.js";import"./Share07-D1Sv14jA.js";import"./GitBranch01-Dil6c2wv.js";import"./SwitchHorizontal01-BIyO34Jw.js";import"./HardDrive-B4UY5qYp.js";import"./Key01-BsAAVoJx.js";import"./Link01-OqB-2yPE.js";import"./Sun-DjKz3VjB.js";import"./Palette-BBWt8owf.js";import"./Play-CPeIBqH_.js";import"./Plus-DaErdsG1.js";import"./SearchLg-DxQfk550.js";import"./Shield01-BsobIEfQ.js";import"./Stars01-f37Q7vDf.js";import"./User01-B8a5ssx2.js";import"./Users01-BCRhQsCX.js";import"./XCircle-DudPVYQR.js";import"./XClose-DpDcHm9Y.js";import"./Zap-C5eiFR0N.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./input-BRqLi1TH.js";import"./command-palette-store-D19nXDNm.js";import"./use-open-billing-url-Cju1isPI.js";import"./use-session-runtime-TS34dEJv.js";import"./select-Ce9NznPv.js";import"./tabs-DQoXHeZr.js";import"./toggle-group-Cs1yIHkK.js";import"./use-deco-credits-DjxZxHMq.js";import"./index-B7ENeoW4.js";import"./checkbox-Dg_GkeBT.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-CW4PxBuN.js";import"./download-app-dialog-DYhv8XsJ.js";import"./popover-Ci-k968-.js";import"./input-D8xrvlz-.js";import"./hooks-Bb9SArul.js";import"./use-org-fs-DG1oJieK.js";import"./question-004-sINsf4GQ.js";import"./use-members-Dnee1tF2.js";import"./use-org-auth-client-CVFBkaiI.js";import"./add-connection-dialog-BSihy3_s.js";import"./extract-connection-data-B1nPGa4h.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-By77bjvj.js";import"./connection-card-Br8jDKgZ.js";import"./use-registry-connections-cro5WL6A.js";import"./useInfiniteQuery-CM35R0yt.js";import"./infiniteQueryObserver-C7FrFXuf.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./integration-icon-B6H5J7sl.js";import"./textarea-BpFOmm9_.js";import"./connection-form-helpers-CFXh6BoJ.js";import"./authenticate-and-persist-oauth-DMvGjBUE.js";import"./mcp-oauth-DhRKpyTH.js";import"./collection-tabs-Bc9QOlJ8.js";import"./badge-C5Ilvf_J.js";import"./use-infinite-scroll-BXOEU8Y7.js";import"./useSuspenseInfiniteQuery-DWyGwvh9.js";import"./pair-CD8Vxcvs.js";import"./collapsible-CycyYnXe.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BQ7hPzlx.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./shell-layout-C3IRibnI.js";import"./anchors-yqDzZN4K.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-BpjWfGyr.js";import"./index-cEqwHhEg.js";import"./project-icon-DIXBuD-A.js";import"./required-auth-layout-DMNBbcf3.js";import"./use-org-sso-uleG21Aq.js";import"./use-org-notice-PUfO84YR.js";import"./use-navigate-to-agent-Drdqs1cr.js";import"./use-thread-outputs-CpCqTMOi.js";import"./file-type-icon-Cg81au_Z.js";import"./sandbox-lifecycle-context-DxbfUbxP.js";import"./sandbox-url-D3mC8qhT.js";import"./use-task-metadata-C4MfiHBQ.js";import"./use-project-native-view-presence-01L5j4lu.js";import"./virtual-mcp-CKi1xJsO.js";function tt(){const r=F.c(3),[e,t]=Z.useState(-1);let i;r[0]===Symbol.for("react.memo_cache_sentinel")?(i=n=>{if(!n)return;const a=()=>t(n.clientWidth);a();const c=new ResizeObserver(a);return c.observe(n),()=>c.disconnect()},r[0]=i):i=r[0];const l=i;let o;return r[1]!==e?(o=[e,l],r[1]=e,r[2]=o):o=r[2],o}function it(r){const e=F.c(6),{virtualMcpId:t}=r,i=Ve(t),l=qe();let o;e[0]!==l||e[1]!==i?(o=Xe(l,Ze(i)),e[0]=l,e[1]=i,e[2]=o):o=e[2];const n=o;if(!n){let c;return e[3]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(st,{}),e[3]=c):c=e[3],c}let a;return e[4]!==n?(a=s.jsx(ot,{config:n}),e[4]=n,e[5]=a):a=e[5],a}function st(){const r=F.c(12),e=ae();let t;r[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx("div",{className:"flex size-12 items-center justify-center rounded-full bg-muted",children:s.jsx(_e,{size:20,className:"text-muted-foreground"})}),r[0]=t):t=r[0];let i;r[1]!==e?(i=e("assets.browser.noBucketTitle"),r[1]=e,r[2]=i):i=r[2];let l;r[3]!==i?(l=s.jsx("p",{className:"text-sm font-medium",children:i}),r[3]=i,r[4]=l):l=r[4];let o;r[5]!==e?(o=e("assets.browser.noBucketDescription"),r[5]=e,r[6]=o):o=r[6];let n;r[7]!==o?(n=s.jsx("p",{className:"mt-1 max-w-sm text-xs text-muted-foreground",children:o}),r[7]=o,r[8]=n):n=r[8];let a;return r[9]!==l||r[10]!==n?(a=s.jsxs("div",{className:"flex h-full min-h-0 flex-col items-center justify-center gap-3 p-10 text-center",children:[t,s.jsxs("div",{children:[l,n]})]}),r[9]=l,r[10]=n,r[11]=a):a=r[11],a}function rt(r){return r<0||r<640?2:r<768?3:r<1024?4:5}function lt(r,e){const t=Array.from({length:e},()=>[]);return r.forEach((i,l)=>t[l%e].push(i)),t}function ot(r){const e=F.c(99),{config:t}=r,i=ae(),[l,o]=Z.useState(""),n=We(l,300);let a;e[0]!==t.id||e[1]!==n?(a={configId:t.id,search:n},e[0]=t.id,e[1]=n,e[2]=a):a=e[2];const c=Ge(a),m=He(),[y,p]=Z.useState(!1),[d,g]=Z.useState(null),u=Z.useRef(null);let h;e[3]!==t.id||e[4]!==c||e[5]!==i||e[6]!==m?(h=async function(_){if(!_)return;const ee=Array.from(_);if(ee.length===0)return;const I=[];for(const R of ee)try{await m.mutateAsync({configId:t.id,file:R})}catch($){const z=$;I.push(`${R.name} (${z instanceof Error?z.message:"upload failed"})`)}await c.refetch(),I.length>0&&ce.error(I.length===ee.length?i("filePicker.filePickerDialog.uploadFailedAll",{errors:I.join("; ")}):i("filePicker.filePickerDialog.uploadFailedSome",{errors:I.join("; ")}))},e[3]=t.id,e[4]=c,e[5]=i,e[6]=m,e[7]=h):h=e[7];const x=h;let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=function(_){_.preventDefault(),p(!0)},e[8]=f):f=e[8];const b=f;let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=function(){p(!1)},e[9]=v):v=e[9];const A=v;let k;e[10]!==x?(k=function(_){_.preventDefault(),_.stopPropagation(),p(!1),x(_.dataTransfer.files)},e[10]=x,e[11]=k):k=e[11];const j=k,[P,S]=tt();let D,N,w,C,M,U;if(e[12]!==t.name||e[13]!==n||e[14]!==S||e[15]!==P||e[16]!==x||e[17]!==y||e[18]!==c.data?.pages||e[19]!==c.isFetching||e[20]!==c.isFetchingNextPage||e[21]!==j||e[22]!==l||e[23]!==i||e[24]!==m.isPending){const _=(c.data?.pages??[]).flatMap(nt),ee=lt(_,rt(P)),I=n.trim(),R=l!==n||c.isFetching&&!c.isFetchingNextPage;M="flex h-full min-h-0 flex-col gap-3 p-4";let $;e[31]!==i?($=i("assets.browser.title"),e[31]=i,e[32]=$):$=e[32];let z;e[33]!==$?(z=s.jsx("h2",{className:"text-sm font-semibold",children:$}),e[33]=$,e[34]=z):z=e[34];let B;e[35]!==t.name||e[36]!==i?(B=i("assets.browser.bucketLabel",{name:t.name}),e[35]=t.name,e[36]=i,e[37]=B):B=e[37];let L;e[38]!==B?(L=s.jsx("p",{className:"truncate text-xs text-muted-foreground",children:B}),e[38]=B,e[39]=L):L=e[39];let V;e[40]!==z||e[41]!==L?(V=s.jsxs("div",{className:"min-w-0",children:[z,L]}),e[40]=z,e[41]=L,e[42]=V):V=e[42];let re;e[43]===Symbol.for("react.memo_cache_sentinel")?(re=()=>u.current?.click(),e[43]=re):re=e[43];let W;e[44]!==m.isPending?(W=m.isPending?s.jsx(ge,{className:"size-3.5"}):s.jsx(he,{size:14}),e[44]=m.isPending,e[45]=W):W=e[45];let q;e[46]!==i||e[47]!==m.isPending?(q=m.isPending?i("filePicker.filePickerDialog.uploading"):i("filePicker.filePickerDialog.dropFilesOrClick"),e[46]=i,e[47]=m.isPending,e[48]=q):q=e[48];let G;e[49]!==W||e[50]!==q||e[51]!==m.isPending?(G=s.jsxs(xe,{type:"button",size:"sm",disabled:m.isPending,onClick:re,children:[W,q]}),e[49]=W,e[50]=q,e[51]=m.isPending,e[52]=G):G=e[52];let H;e[53]!==x?(H=s.jsx("input",{ref:u,type:"file",multiple:!0,className:"hidden",onChange:ne=>{const pe=Array.from(ne.target.files??[]);ne.target.value="",x(pe)}}),e[53]=x,e[54]=H):H=e[54],e[55]!==V||e[56]!==G||e[57]!==H?(U=s.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-3",children:[V,G,H]}),e[55]=V,e[56]=G,e[57]=H,e[58]=U):U=e[58];let K;e[59]!==i?(K=i("filePicker.filePickerDialog.searchFilesPlaceholder"),e[59]=i,e[60]=K):K=e[60],e[61]!==R||e[62]!==l||e[63]!==K?(D=s.jsx(Le,{value:l,onChange:o,isSearching:R,placeholder:K,className:"shrink-0"}),e[61]=R,e[62]=l,e[63]=K,e[64]=D):D=e[64];let le;e[65]===Symbol.for("react.memo_cache_sentinel")?(le=()=>u.current?.click(),e[65]=le):le=e[65];const me=y&&"border-primary bg-primary/5",fe=m.isPending&&"pointer-events-none opacity-60";let Q;e[66]!==me||e[67]!==fe?(Q=je("flex shrink-0 flex-col items-center justify-center gap-1 rounded-xl border border-dashed border-border/60 p-4 text-center transition-colors",me,fe),e[66]=me,e[67]=fe,e[68]=Q):Q=e[68];let oe;e[69]===Symbol.for("react.memo_cache_sentinel")?(oe=s.jsx(he,{size:16,className:"text-muted-foreground"}),e[69]=oe):oe=e[69];let Y;e[70]!==i?(Y=i("filePicker.filePickerDialog.dropFilesOrClick"),e[70]=i,e[71]=Y):Y=e[71];let J;e[72]!==i?(J=i("filePicker.filePickerDialog.uploadSizeLimit"),e[72]=i,e[73]=J):J=e[73];let X;e[74]!==Y||e[75]!==J?(X=s.jsxs("p",{className:"text-xs text-muted-foreground",children:[Y," ",J]}),e[74]=Y,e[75]=J,e[76]=X):X=e[76],e[77]!==j||e[78]!==Q||e[79]!==X?(N=s.jsxs("button",{type:"button",onClick:le,onDragOver:b,onDragLeave:A,onDrop:j,className:Q,children:[oe,X]}),e[77]=j,e[78]=Q,e[79]=X,e[80]=N):N=e[80],w="min-h-0 flex-1 overflow-y-auto pr-1",C=_.length===0?I?s.jsx(be,{title:i("filePicker.filePickerDialog.noMatches",{query:I}),description:i("filePicker.filePickerDialog.tryDifferentSearchOrLoadMore")}):s.jsx(be,{title:i("filePicker.filePickerDialog.noFilesYet"),description:i("filePicker.filePickerDialog.dropFileToGetStarted")}):s.jsx("div",{ref:S,className:"flex items-start gap-3",children:ee.map((ne,pe)=>s.jsx("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:ne.map(de=>s.jsx(ct,{item:de,onDelete:()=>g(de)},de.key))},pe))}),e[12]=t.name,e[13]=n,e[14]=S,e[15]=P,e[16]=x,e[17]=y,e[18]=c.data?.pages,e[19]=c.isFetching,e[20]=c.isFetchingNextPage,e[21]=j,e[22]=l,e[23]=i,e[24]=m.isPending,e[25]=D,e[26]=N,e[27]=w,e[28]=C,e[29]=M,e[30]=U}else D=e[25],N=e[26],w=e[27],C=e[28],M=e[29],U=e[30];let T;e[81]!==c||e[82]!==i?(T=c.hasNextPage&&s.jsx("div",{className:"flex justify-center py-4",children:s.jsx(xe,{type:"button",variant:"outline",size:"sm",disabled:c.isFetchingNextPage,onClick:()=>c.fetchNextPage(),children:c.isFetchingNextPage?s.jsxs(s.Fragment,{children:[s.jsx(ge,{className:"size-3.5"}),i("filePicker.filePickerDialog.loading")]}):i("filePicker.filePickerDialog.loadMore")})}),e[81]=c,e[82]=i,e[83]=T):T=e[83];let E;e[84]!==T||e[85]!==w||e[86]!==C?(E=s.jsxs("div",{className:w,children:[C,T]}),e[84]=T,e[85]=w,e[86]=C,e[87]=E):E=e[87];let te;e[88]===Symbol.for("react.memo_cache_sentinel")?(te=()=>g(null),e[88]=te):te=e[88];let O;e[89]!==t.id||e[90]!==d?(O=s.jsx(ft,{configId:t.id,item:d,onClose:te}),e[89]=t.id,e[90]=d,e[91]=O):O=e[91];let ie;return e[92]!==D||e[93]!==N||e[94]!==E||e[95]!==O||e[96]!==M||e[97]!==U?(ie=s.jsxs("div",{className:M,children:[U,D,N,E,O]}),e[92]=D,e[93]=N,e[94]=E,e[95]=O,e[96]=M,e[97]=U,e[98]=ie):ie=e[98],ie}function nt(r){return r.items}function be(r){const e=F.c(8),{title:t,description:i}=r;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"flex size-10 items-center justify-center rounded-full bg-muted",children:s.jsx(we,{size:18,className:"text-muted-foreground"})}),e[0]=l):l=e[0];let o;e[1]!==t?(o=s.jsx("p",{className:"text-sm font-medium",children:t}),e[1]=t,e[2]=o):o=e[2];let n;e[3]!==i?(n=s.jsx("p",{className:"text-xs text-muted-foreground",children:i}),e[3]=i,e[4]=n):n=e[4];let a;return e[5]!==o||e[6]!==n?(a=s.jsxs("div",{className:"flex h-full min-h-40 flex-col items-center justify-center gap-2 py-8 text-center",children:[l,o,n]}),e[5]=o,e[6]=n,e[7]=a):a=e[7],a}function ct(r){const e=F.c(34),{item:t,onDelete:i}=r;let l;e[0]!==t.key?(l=Ke(t.key),e[0]=t.key,e[1]=l):l=e[1];const o=l;let n;e[2]!==t.key?(n=Qe(t.key),e[2]=t.key,e[3]=n):n=e[3];const a=n;let c;e[4]!==a||e[5]!==t.key||e[6]!==t.publicUrl?(c=a?s.jsx("img",{src:t.publicUrl,alt:t.key,loading:"lazy",className:"block h-auto w-full",onError:at}):s.jsx("div",{className:"flex aspect-square items-center justify-center",children:s.jsx(Se,{size:28,className:"text-muted-foreground"})}),e[4]=a,e[5]=t.key,e[6]=t.publicUrl,e[7]=c):c=e[7];let m;e[8]!==t.key||e[9]!==t.publicUrl||e[10]!==c?(m=s.jsx("a",{href:t.publicUrl,target:"_blank",rel:"noreferrer",title:t.key,className:"block transition hover:ring-2 hover:ring-inset hover:ring-primary",children:c}),e[8]=t.key,e[9]=t.publicUrl,e[10]=c,e[11]=m):m=e[11];const y=t.key;let p;e[12]!==t.key?(p=ke(t.key),e[12]=t.key,e[13]=p):p=e[13];let d;e[14]!==t.key||e[15]!==p?(d=s.jsx("p",{className:"truncate text-xs font-medium",title:y,children:p}),e[14]=t.key,e[15]=p,e[16]=d):d=e[16];let g;e[17]!==t.size?(g=Ye(t.size),e[17]=t.size,e[18]=g):g=e[18];let u;e[19]!==o||e[20]!==g?(u=s.jsxs("p",{className:"text-[10px] uppercase text-muted-foreground",children:[o," · ",g]}),e[19]=o,e[20]=g,e[21]=u):u=e[21];let h;e[22]!==d||e[23]!==u?(h=s.jsxs("div",{className:"min-w-0 flex-1",children:[d,u]}),e[22]=d,e[23]=u,e[24]=h):h=e[24];let x;e[25]!==t||e[26]!==i?(x=s.jsx(mt,{item:t,onDelete:i}),e[25]=t,e[26]=i,e[27]=x):x=e[27];let f;e[28]!==h||e[29]!==x?(f=s.jsxs("div",{className:"flex items-center gap-1 border-t border-border/60 bg-background px-2 py-1.5",children:[h,x]}),e[28]=h,e[29]=x,e[30]=f):f=e[30];let b;return e[31]!==f||e[32]!==m?(b=s.jsxs("div",{className:"group relative flex flex-col overflow-hidden rounded-lg border border-border/60 bg-muted",children:[m,f]}),e[31]=f,e[32]=m,e[33]=b):b=e[33],b}function at(r){r.target.style.display="none"}function mt(r){const e=F.c(36),{item:t,onDelete:i}=r,l=ae(),[o,n]=Z.useState(!1);let a;e[0]!==t.publicUrl||e[1]!==l?(a=async function(){try{await navigator.clipboard.writeText(t.publicUrl),n(!0),window.setTimeout(()=>n(!1),1500)}catch{ce.error(l("filePicker.filePickerDialog.failedToCopyUrl"))}},e[0]=t.publicUrl,e[1]=l,e[2]=a):a=e[2];const c=a;let m;e[3]!==l?(m=l("filePicker.filePickerDialog.assetActions"),e[3]=l,e[4]=m):m=e[4];let y;e[5]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(ve,{size:14}),e[5]=y):y=e[5];let p;e[6]!==m?(p=s.jsx(Oe,{asChild:!0,children:s.jsx(xe,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0 rounded-md","aria-label":m,children:y})}),e[6]=m,e[7]=p):p=e[7];let d;e[8]!==o?(d=o?s.jsx(De,{size:14}):s.jsx(Ne,{size:14}),e[8]=o,e[9]=d):d=e[9];let g;e[10]!==o||e[11]!==l?(g=l(o?"filePicker.filePickerDialog.copied":"filePicker.filePickerDialog.copyUrl"),e[10]=o,e[11]=l,e[12]=g):g=e[12];let u;e[13]!==c||e[14]!==d||e[15]!==g?(u=s.jsxs(ue,{onClick:c,children:[d,g]}),e[13]=c,e[14]=d,e[15]=g,e[16]=u):u=e[16];const h=t.publicUrl;let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(Ce,{size:14}),e[17]=x):x=e[17];let f;e[18]!==l?(f=l("filePicker.filePickerDialog.openInNewTab"),e[18]=l,e[19]=f):f=e[19];let b;e[20]!==t.publicUrl||e[21]!==f?(b=s.jsx(ue,{asChild:!0,children:s.jsxs("a",{href:h,target:"_blank",rel:"noreferrer",children:[x,f]})}),e[20]=t.publicUrl,e[21]=f,e[22]=b):b=e[22];let v;e[23]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(Ae,{size:14}),e[23]=v):v=e[23];let A;e[24]!==l?(A=l("assets.browser.deleteAction"),e[24]=l,e[25]=A):A=e[25];let k;e[26]!==i||e[27]!==A?(k=s.jsxs(ue,{variant:"destructive",onClick:i,children:[v,A]}),e[26]=i,e[27]=A,e[28]=k):k=e[28];let j;e[29]!==b||e[30]!==k||e[31]!==u?(j=s.jsxs(Re,{align:"end",children:[u,b,k]}),e[29]=b,e[30]=k,e[31]=u,e[32]=j):j=e[32];let P;return e[33]!==j||e[34]!==p?(P=s.jsxs(Be,{children:[p,j]}),e[33]=j,e[34]=p,e[35]=P):P=e[35],P}function ft(r){const e=F.c(47),{configId:t,item:i,onClose:l}=r,o=ae(),n=Je();let a;e[0]!==t||e[1]!==n||e[2]!==i||e[3]!==l||e[4]!==o?(a=async function(){if(i)try{await n.mutateAsync({configId:t,key:i.key}),ce.success(o("assets.browser.deleted")),l()}catch{ce.error(o("assets.browser.deleteFailed"))}},e[0]=t,e[1]=n,e[2]=i,e[3]=l,e[4]=o,e[5]=a):a=e[5];const c=a,m=!!i;let y;e[6]!==l?(y=C=>!C&&l(),e[6]=l,e[7]=y):y=e[7];let p;e[8]!==o?(p=o("assets.browser.deleteConfirmTitle"),e[8]=o,e[9]=p):p=e[9];let d;e[10]!==p?(d=s.jsx(ze,{children:p}),e[10]=p,e[11]=d):d=e[11];let g;e[12]!==i||e[13]!==o?(g=o("assets.browser.deleteConfirmDescription",{name:i?ke(i.key):""}),e[12]=i,e[13]=o,e[14]=g):g=e[14];let u;e[15]!==g?(u=s.jsx(Fe,{children:g}),e[15]=g,e[16]=u):u=e[16];let h;e[17]!==d||e[18]!==u?(h=s.jsxs(Ue,{children:[d,u]}),e[17]=d,e[18]=u,e[19]=h):h=e[19];const x=n.isPending;let f;e[20]!==o?(f=o("assets.browser.deleteCancel"),e[20]=o,e[21]=f):f=e[21];let b;e[22]!==n.isPending||e[23]!==f?(b=s.jsx(Ie,{disabled:x,children:f}),e[22]=n.isPending,e[23]=f,e[24]=b):b=e[24];let v;e[25]===Symbol.for("react.memo_cache_sentinel")?(v=je(ye({variant:"destructive"})),e[25]=v):v=e[25];const A=n.isPending;let k;e[26]!==c?(k=C=>{C.preventDefault(),c()},e[26]=c,e[27]=k):k=e[27];let j;e[28]!==n.isPending?(j=n.isPending?s.jsx(ge,{className:"size-3.5"}):null,e[28]=n.isPending,e[29]=j):j=e[29];let P;e[30]!==o?(P=o("assets.browser.deleteConfirm"),e[30]=o,e[31]=P):P=e[31];let S;e[32]!==n.isPending||e[33]!==k||e[34]!==j||e[35]!==P?(S=s.jsxs($e,{className:v,disabled:A,onClick:k,children:[j,P]}),e[32]=n.isPending,e[33]=k,e[34]=j,e[35]=P,e[36]=S):S=e[36];let D;e[37]!==b||e[38]!==S?(D=s.jsxs(Me,{children:[b,S]}),e[37]=b,e[38]=S,e[39]=D):D=e[39];let N;e[40]!==D||e[41]!==h?(N=s.jsxs(Te,{children:[h,D]}),e[40]=D,e[41]=h,e[42]=N):N=e[42];let w;return e[43]!==N||e[44]!==m||e[45]!==y?(w=s.jsx(Ee,{open:m,onOpenChange:y,children:N}),e[43]=N,e[44]=m,e[45]=y,e[46]=w):w=e[46],w}function dr(){const r=F.c(2),e=et();let t;return r[0]!==e?(t=s.jsx(Pe,{tabId:"assets",children:s.jsx(it,{virtualMcpId:e})}),r[0]=e,r[1]=t):t=r[1],t}export{dr as default};
1
+ import{c as F,r as Z,j as s,b as ae,h as ge,B as xe,l as je,aA as ye,t as ce}from"./index-B3yBTWEk.js";import{A as Pe}from"./agent-view-guard-nj1TYVsk.js";import{i as De}from"./Check-BWpBE9uf.js";import{a as Ne}from"./Copy01-DayLu0dF.js";import{i as ve}from"./DotsVertical-CucJCL9y.js";import{i as Se}from"./File02-BhckHV8N.js";import{a as we}from"./Image01-BrHSH-Vi.js";import{n as Ce}from"./LinkExternal01-Cp7uxK1i.js";import{a as _e}from"./Package-CdfyZYxN.js";import{s as Ae}from"./Trash01-DqUm2RRh.js";import{i as he}from"./Upload01-CqWnAR1-.js";import{c as ze,d as Fe,b as Ue,f as Ie,g as $e,e as Me,a as Te,A as Ee}from"./alert-dialog-BE9ltHtr.js";import{D as Oe,a as ue,b as Re,c as Be}from"./dropdown-menu-BxKUbUkE.js";import{S as Le}from"./search-input-uXtJ6IU8.js";import{a as Ve}from"./use-virtual-mcp-Bk09OpEg.js";import{u as We}from"./use-debounced-value-Cud3o3Fq.js";import{u as qe}from"./use-file-configs-BwD1CaWo.js";import{u as Ge,a as He,e as Ke,i as Qe,b as ke,f as Ye,c as Je}from"./asset-utils-CR65HphV.js";import{m as Xe}from"./match-site-slug-config-D3fUJ6vX.js";import{r as Ze}from"./site-slug-uya6Wp4-.js";import{a as et}from"./thread-route-CKY-dKC0.js";import"./use-main-panel-tabs-EW6rbxam.js";import"./use-panel-navigate-Byvx0cbx.js";import"./use-project-scope-B2cuvtTy.js";import"./github-repo-C0igpkr9.js";import"./Globe01-SLAc63wC.js";import"./Monitor01-BUruMK2r.js";import"./use-connection-DCLPda2h.js";import"./use-mcp-client-DsJzBus3.js";import"./auth-RjDDTUUT.js";import"./use-mcp-tools-Dc3F6Krl.js";import"./types-Csu6Ims7.js";import"./utils-CVEq3hMx.js";import"./ArrowUp-C0eratGp.js";import"./chat-context-CXknhaDs.js";import"./autosend-HdosN86x.js";import"./thread-intent-DVKldCEq.js";import"./slugify-CEUa2lfQ.js";import"./hooks-k1OxvonE.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-CfYFArSW.js";import"./task-board-CXsHf2Zn.js";import"./schema-BQbhQoxs.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-qnkcjapR.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DYRVevWg.js";import"./use-organization-settings-BAVHurZk.js";import"./tool-namespace-BVMQcKlk.js";import"./dialog-otnvxVN0.js";import"./drawer-s7gtDrb4.js";import"./collection-search-CzGq8Uso.js";import"./SearchMd-DRRptSJN.js";import"./use-mcp-prompts-i0LZ2nQA.js";import"./usage-stats-BNse37Wk.js";import"./form-KjPevg0A.js";import"./label-CqlSWrLn.js";import"./input-HFOrJf5B.js";import"./use-copy-14DzRp8J.js";import"./markdown-B1038zFJ.js";import"./Download01-BC2rKbuh.js";import"./ZoomOut-BXPGwF_O.js";import"./agent-icon-DrlilhFJ.js";import"./AlertCircle-EniJtD8E.js";import"./Tool01-BnKd95Y1.js";import"./ArrowLeft-Clu1mSdY.js";import"./Tool02-C_xRWqQk.js";import"./ArrowRight-Cu8UuHNR.js";import"./TrendUp01-PFzYDizC.js";import"./Users03-CRtXqa1Q.js";import"./CheckCircle-cinYKmPU.js";import"./ChevronUp-DGrguvGW.js";import"./ChevronRight-DzRB-rdO.js";import"./ChevronSelectorVertical-BiIbFU31.js";import"./UserSquare-CCDsU001.js";import"./CreditCard01-4OsjIT5f.js";import"./Database01-2gG_9E30.js";import"./Printer-fz_zwxfT.js";import"./Settings02-D2oiGU4q.js";import"./Eye-dnrP5DkM.js";import"./Share07-D_kiq5Fr.js";import"./GitBranch01-BBn4dN5f.js";import"./SwitchHorizontal01-CxlKjkIX.js";import"./HardDrive-FlnOYA_8.js";import"./Key01-CKcg8G1v.js";import"./Link01-3t9JrUgl.js";import"./Sun-nKOZMh9n.js";import"./Palette-CglyAOTg.js";import"./Play-rnw1eV52.js";import"./Plus-Bxp02MWl.js";import"./SearchLg-FC9suxna.js";import"./Shield01-CjyLhqlS.js";import"./Stars01-COChWymR.js";import"./User01-BJoNdkjl.js";import"./Users01-DSQPwtP5.js";import"./XCircle-9Cb0khfg.js";import"./XClose-Cw4b4Uag.js";import"./Zap-ChVc0p76.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./input-DxAgQLPa.js";import"./command-palette-store-BwHku_Zt.js";import"./use-open-billing-url-DvTk9GH0.js";import"./use-session-runtime-BHahDP0E.js";import"./select-Bc5UZb4n.js";import"./tabs-DV8akPGb.js";import"./toggle-group-9HQCpj-q.js";import"./use-deco-credits-rwNQ1gMg.js";import"./index-DlQKfvnq.js";import"./checkbox-D8Ab2Vb-.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-DcDvs8Zz.js";import"./download-app-dialog-BqNRF4Sn.js";import"./popover-DIqZ2IKF.js";import"./input-BnbYz5_9.js";import"./hooks-BhviOOpn.js";import"./use-org-fs-BEoPvlnI.js";import"./question-004-sINsf4GQ.js";import"./use-members-C0MdJrYz.js";import"./use-org-auth-client-4o0wRx2Q.js";import"./add-connection-dialog-s1GRGQ63.js";import"./extract-connection-data-CqGCTPdZ.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-OmoYXqZk.js";import"./connection-card-Cy-GdKQl.js";import"./use-registry-connections-DikbDR8w.js";import"./useInfiniteQuery-GKCP1c_7.js";import"./infiniteQueryObserver-DgAoAIrN.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./integration-icon-BPwWRlNG.js";import"./textarea-CneoU2lJ.js";import"./connection-form-helpers-D3hdN_Pk.js";import"./authenticate-and-persist-oauth-DXlrPDSv.js";import"./mcp-oauth-D6isOO_s.js";import"./collection-tabs-BLgGMB42.js";import"./badge-DJpaBl8u.js";import"./use-infinite-scroll-DkLPxlOu.js";import"./useSuspenseInfiniteQuery-DmEiIBI4.js";import"./pair-C08OPQNP.js";import"./collapsible-DH_CZdwE.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-Cb8Ud-E7.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./shell-layout-1dFmVwYI.js";import"./anchors-yqDzZN4K.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-B6LMVdkQ.js";import"./index-w1d_dmEj.js";import"./project-icon-Bl3bXnhv.js";import"./required-auth-layout-BEc3NUsQ.js";import"./use-org-sso-CdSz0xa8.js";import"./use-org-notice-CXYMfMUq.js";import"./use-navigate-to-agent-Bbq0oQ0Y.js";import"./use-thread-outputs-9oZhiYbB.js";import"./file-type-icon-DGllFDOf.js";import"./sandbox-lifecycle-context-CXd9Um8u.js";import"./sandbox-url-D3mC8qhT.js";import"./use-task-metadata-CB3EJ29f.js";import"./use-project-native-view-presence-D-AyEulW.js";import"./virtual-mcp-DGQbDtgM.js";function tt(){const r=F.c(3),[e,t]=Z.useState(-1);let i;r[0]===Symbol.for("react.memo_cache_sentinel")?(i=n=>{if(!n)return;const a=()=>t(n.clientWidth);a();const c=new ResizeObserver(a);return c.observe(n),()=>c.disconnect()},r[0]=i):i=r[0];const l=i;let o;return r[1]!==e?(o=[e,l],r[1]=e,r[2]=o):o=r[2],o}function it(r){const e=F.c(6),{virtualMcpId:t}=r,i=Ve(t),l=qe();let o;e[0]!==l||e[1]!==i?(o=Xe(l,Ze(i)),e[0]=l,e[1]=i,e[2]=o):o=e[2];const n=o;if(!n){let c;return e[3]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(st,{}),e[3]=c):c=e[3],c}let a;return e[4]!==n?(a=s.jsx(ot,{config:n}),e[4]=n,e[5]=a):a=e[5],a}function st(){const r=F.c(12),e=ae();let t;r[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx("div",{className:"flex size-12 items-center justify-center rounded-full bg-muted",children:s.jsx(_e,{size:20,className:"text-muted-foreground"})}),r[0]=t):t=r[0];let i;r[1]!==e?(i=e("assets.browser.noBucketTitle"),r[1]=e,r[2]=i):i=r[2];let l;r[3]!==i?(l=s.jsx("p",{className:"text-sm font-medium",children:i}),r[3]=i,r[4]=l):l=r[4];let o;r[5]!==e?(o=e("assets.browser.noBucketDescription"),r[5]=e,r[6]=o):o=r[6];let n;r[7]!==o?(n=s.jsx("p",{className:"mt-1 max-w-sm text-xs text-muted-foreground",children:o}),r[7]=o,r[8]=n):n=r[8];let a;return r[9]!==l||r[10]!==n?(a=s.jsxs("div",{className:"flex h-full min-h-0 flex-col items-center justify-center gap-3 p-10 text-center",children:[t,s.jsxs("div",{children:[l,n]})]}),r[9]=l,r[10]=n,r[11]=a):a=r[11],a}function rt(r){return r<0||r<640?2:r<768?3:r<1024?4:5}function lt(r,e){const t=Array.from({length:e},()=>[]);return r.forEach((i,l)=>t[l%e].push(i)),t}function ot(r){const e=F.c(99),{config:t}=r,i=ae(),[l,o]=Z.useState(""),n=We(l,300);let a;e[0]!==t.id||e[1]!==n?(a={configId:t.id,search:n},e[0]=t.id,e[1]=n,e[2]=a):a=e[2];const c=Ge(a),m=He(),[y,p]=Z.useState(!1),[d,g]=Z.useState(null),u=Z.useRef(null);let h;e[3]!==t.id||e[4]!==c||e[5]!==i||e[6]!==m?(h=async function(_){if(!_)return;const ee=Array.from(_);if(ee.length===0)return;const I=[];for(const R of ee)try{await m.mutateAsync({configId:t.id,file:R})}catch($){const z=$;I.push(`${R.name} (${z instanceof Error?z.message:"upload failed"})`)}await c.refetch(),I.length>0&&ce.error(I.length===ee.length?i("filePicker.filePickerDialog.uploadFailedAll",{errors:I.join("; ")}):i("filePicker.filePickerDialog.uploadFailedSome",{errors:I.join("; ")}))},e[3]=t.id,e[4]=c,e[5]=i,e[6]=m,e[7]=h):h=e[7];const x=h;let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=function(_){_.preventDefault(),p(!0)},e[8]=f):f=e[8];const b=f;let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=function(){p(!1)},e[9]=v):v=e[9];const A=v;let k;e[10]!==x?(k=function(_){_.preventDefault(),_.stopPropagation(),p(!1),x(_.dataTransfer.files)},e[10]=x,e[11]=k):k=e[11];const j=k,[P,S]=tt();let D,N,w,C,M,U;if(e[12]!==t.name||e[13]!==n||e[14]!==S||e[15]!==P||e[16]!==x||e[17]!==y||e[18]!==c.data?.pages||e[19]!==c.isFetching||e[20]!==c.isFetchingNextPage||e[21]!==j||e[22]!==l||e[23]!==i||e[24]!==m.isPending){const _=(c.data?.pages??[]).flatMap(nt),ee=lt(_,rt(P)),I=n.trim(),R=l!==n||c.isFetching&&!c.isFetchingNextPage;M="flex h-full min-h-0 flex-col gap-3 p-4";let $;e[31]!==i?($=i("assets.browser.title"),e[31]=i,e[32]=$):$=e[32];let z;e[33]!==$?(z=s.jsx("h2",{className:"text-sm font-semibold",children:$}),e[33]=$,e[34]=z):z=e[34];let B;e[35]!==t.name||e[36]!==i?(B=i("assets.browser.bucketLabel",{name:t.name}),e[35]=t.name,e[36]=i,e[37]=B):B=e[37];let L;e[38]!==B?(L=s.jsx("p",{className:"truncate text-xs text-muted-foreground",children:B}),e[38]=B,e[39]=L):L=e[39];let V;e[40]!==z||e[41]!==L?(V=s.jsxs("div",{className:"min-w-0",children:[z,L]}),e[40]=z,e[41]=L,e[42]=V):V=e[42];let re;e[43]===Symbol.for("react.memo_cache_sentinel")?(re=()=>u.current?.click(),e[43]=re):re=e[43];let W;e[44]!==m.isPending?(W=m.isPending?s.jsx(ge,{className:"size-3.5"}):s.jsx(he,{size:14}),e[44]=m.isPending,e[45]=W):W=e[45];let q;e[46]!==i||e[47]!==m.isPending?(q=m.isPending?i("filePicker.filePickerDialog.uploading"):i("filePicker.filePickerDialog.dropFilesOrClick"),e[46]=i,e[47]=m.isPending,e[48]=q):q=e[48];let G;e[49]!==W||e[50]!==q||e[51]!==m.isPending?(G=s.jsxs(xe,{type:"button",size:"sm",disabled:m.isPending,onClick:re,children:[W,q]}),e[49]=W,e[50]=q,e[51]=m.isPending,e[52]=G):G=e[52];let H;e[53]!==x?(H=s.jsx("input",{ref:u,type:"file",multiple:!0,className:"hidden",onChange:ne=>{const pe=Array.from(ne.target.files??[]);ne.target.value="",x(pe)}}),e[53]=x,e[54]=H):H=e[54],e[55]!==V||e[56]!==G||e[57]!==H?(U=s.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-3",children:[V,G,H]}),e[55]=V,e[56]=G,e[57]=H,e[58]=U):U=e[58];let K;e[59]!==i?(K=i("filePicker.filePickerDialog.searchFilesPlaceholder"),e[59]=i,e[60]=K):K=e[60],e[61]!==R||e[62]!==l||e[63]!==K?(D=s.jsx(Le,{value:l,onChange:o,isSearching:R,placeholder:K,className:"shrink-0"}),e[61]=R,e[62]=l,e[63]=K,e[64]=D):D=e[64];let le;e[65]===Symbol.for("react.memo_cache_sentinel")?(le=()=>u.current?.click(),e[65]=le):le=e[65];const me=y&&"border-primary bg-primary/5",fe=m.isPending&&"pointer-events-none opacity-60";let Q;e[66]!==me||e[67]!==fe?(Q=je("flex shrink-0 flex-col items-center justify-center gap-1 rounded-xl border border-dashed border-border/60 p-4 text-center transition-colors",me,fe),e[66]=me,e[67]=fe,e[68]=Q):Q=e[68];let oe;e[69]===Symbol.for("react.memo_cache_sentinel")?(oe=s.jsx(he,{size:16,className:"text-muted-foreground"}),e[69]=oe):oe=e[69];let Y;e[70]!==i?(Y=i("filePicker.filePickerDialog.dropFilesOrClick"),e[70]=i,e[71]=Y):Y=e[71];let J;e[72]!==i?(J=i("filePicker.filePickerDialog.uploadSizeLimit"),e[72]=i,e[73]=J):J=e[73];let X;e[74]!==Y||e[75]!==J?(X=s.jsxs("p",{className:"text-xs text-muted-foreground",children:[Y," ",J]}),e[74]=Y,e[75]=J,e[76]=X):X=e[76],e[77]!==j||e[78]!==Q||e[79]!==X?(N=s.jsxs("button",{type:"button",onClick:le,onDragOver:b,onDragLeave:A,onDrop:j,className:Q,children:[oe,X]}),e[77]=j,e[78]=Q,e[79]=X,e[80]=N):N=e[80],w="min-h-0 flex-1 overflow-y-auto pr-1",C=_.length===0?I?s.jsx(be,{title:i("filePicker.filePickerDialog.noMatches",{query:I}),description:i("filePicker.filePickerDialog.tryDifferentSearchOrLoadMore")}):s.jsx(be,{title:i("filePicker.filePickerDialog.noFilesYet"),description:i("filePicker.filePickerDialog.dropFileToGetStarted")}):s.jsx("div",{ref:S,className:"flex items-start gap-3",children:ee.map((ne,pe)=>s.jsx("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:ne.map(de=>s.jsx(ct,{item:de,onDelete:()=>g(de)},de.key))},pe))}),e[12]=t.name,e[13]=n,e[14]=S,e[15]=P,e[16]=x,e[17]=y,e[18]=c.data?.pages,e[19]=c.isFetching,e[20]=c.isFetchingNextPage,e[21]=j,e[22]=l,e[23]=i,e[24]=m.isPending,e[25]=D,e[26]=N,e[27]=w,e[28]=C,e[29]=M,e[30]=U}else D=e[25],N=e[26],w=e[27],C=e[28],M=e[29],U=e[30];let T;e[81]!==c||e[82]!==i?(T=c.hasNextPage&&s.jsx("div",{className:"flex justify-center py-4",children:s.jsx(xe,{type:"button",variant:"outline",size:"sm",disabled:c.isFetchingNextPage,onClick:()=>c.fetchNextPage(),children:c.isFetchingNextPage?s.jsxs(s.Fragment,{children:[s.jsx(ge,{className:"size-3.5"}),i("filePicker.filePickerDialog.loading")]}):i("filePicker.filePickerDialog.loadMore")})}),e[81]=c,e[82]=i,e[83]=T):T=e[83];let E;e[84]!==T||e[85]!==w||e[86]!==C?(E=s.jsxs("div",{className:w,children:[C,T]}),e[84]=T,e[85]=w,e[86]=C,e[87]=E):E=e[87];let te;e[88]===Symbol.for("react.memo_cache_sentinel")?(te=()=>g(null),e[88]=te):te=e[88];let O;e[89]!==t.id||e[90]!==d?(O=s.jsx(ft,{configId:t.id,item:d,onClose:te}),e[89]=t.id,e[90]=d,e[91]=O):O=e[91];let ie;return e[92]!==D||e[93]!==N||e[94]!==E||e[95]!==O||e[96]!==M||e[97]!==U?(ie=s.jsxs("div",{className:M,children:[U,D,N,E,O]}),e[92]=D,e[93]=N,e[94]=E,e[95]=O,e[96]=M,e[97]=U,e[98]=ie):ie=e[98],ie}function nt(r){return r.items}function be(r){const e=F.c(8),{title:t,description:i}=r;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"flex size-10 items-center justify-center rounded-full bg-muted",children:s.jsx(we,{size:18,className:"text-muted-foreground"})}),e[0]=l):l=e[0];let o;e[1]!==t?(o=s.jsx("p",{className:"text-sm font-medium",children:t}),e[1]=t,e[2]=o):o=e[2];let n;e[3]!==i?(n=s.jsx("p",{className:"text-xs text-muted-foreground",children:i}),e[3]=i,e[4]=n):n=e[4];let a;return e[5]!==o||e[6]!==n?(a=s.jsxs("div",{className:"flex h-full min-h-40 flex-col items-center justify-center gap-2 py-8 text-center",children:[l,o,n]}),e[5]=o,e[6]=n,e[7]=a):a=e[7],a}function ct(r){const e=F.c(34),{item:t,onDelete:i}=r;let l;e[0]!==t.key?(l=Ke(t.key),e[0]=t.key,e[1]=l):l=e[1];const o=l;let n;e[2]!==t.key?(n=Qe(t.key),e[2]=t.key,e[3]=n):n=e[3];const a=n;let c;e[4]!==a||e[5]!==t.key||e[6]!==t.publicUrl?(c=a?s.jsx("img",{src:t.publicUrl,alt:t.key,loading:"lazy",className:"block h-auto w-full",onError:at}):s.jsx("div",{className:"flex aspect-square items-center justify-center",children:s.jsx(Se,{size:28,className:"text-muted-foreground"})}),e[4]=a,e[5]=t.key,e[6]=t.publicUrl,e[7]=c):c=e[7];let m;e[8]!==t.key||e[9]!==t.publicUrl||e[10]!==c?(m=s.jsx("a",{href:t.publicUrl,target:"_blank",rel:"noreferrer",title:t.key,className:"block transition hover:ring-2 hover:ring-inset hover:ring-primary",children:c}),e[8]=t.key,e[9]=t.publicUrl,e[10]=c,e[11]=m):m=e[11];const y=t.key;let p;e[12]!==t.key?(p=ke(t.key),e[12]=t.key,e[13]=p):p=e[13];let d;e[14]!==t.key||e[15]!==p?(d=s.jsx("p",{className:"truncate text-xs font-medium",title:y,children:p}),e[14]=t.key,e[15]=p,e[16]=d):d=e[16];let g;e[17]!==t.size?(g=Ye(t.size),e[17]=t.size,e[18]=g):g=e[18];let u;e[19]!==o||e[20]!==g?(u=s.jsxs("p",{className:"text-[10px] uppercase text-muted-foreground",children:[o," · ",g]}),e[19]=o,e[20]=g,e[21]=u):u=e[21];let h;e[22]!==d||e[23]!==u?(h=s.jsxs("div",{className:"min-w-0 flex-1",children:[d,u]}),e[22]=d,e[23]=u,e[24]=h):h=e[24];let x;e[25]!==t||e[26]!==i?(x=s.jsx(mt,{item:t,onDelete:i}),e[25]=t,e[26]=i,e[27]=x):x=e[27];let f;e[28]!==h||e[29]!==x?(f=s.jsxs("div",{className:"flex items-center gap-1 border-t border-border/60 bg-background px-2 py-1.5",children:[h,x]}),e[28]=h,e[29]=x,e[30]=f):f=e[30];let b;return e[31]!==f||e[32]!==m?(b=s.jsxs("div",{className:"group relative flex flex-col overflow-hidden rounded-lg border border-border/60 bg-muted",children:[m,f]}),e[31]=f,e[32]=m,e[33]=b):b=e[33],b}function at(r){r.target.style.display="none"}function mt(r){const e=F.c(36),{item:t,onDelete:i}=r,l=ae(),[o,n]=Z.useState(!1);let a;e[0]!==t.publicUrl||e[1]!==l?(a=async function(){try{await navigator.clipboard.writeText(t.publicUrl),n(!0),window.setTimeout(()=>n(!1),1500)}catch{ce.error(l("filePicker.filePickerDialog.failedToCopyUrl"))}},e[0]=t.publicUrl,e[1]=l,e[2]=a):a=e[2];const c=a;let m;e[3]!==l?(m=l("filePicker.filePickerDialog.assetActions"),e[3]=l,e[4]=m):m=e[4];let y;e[5]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(ve,{size:14}),e[5]=y):y=e[5];let p;e[6]!==m?(p=s.jsx(Oe,{asChild:!0,children:s.jsx(xe,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0 rounded-md","aria-label":m,children:y})}),e[6]=m,e[7]=p):p=e[7];let d;e[8]!==o?(d=o?s.jsx(De,{size:14}):s.jsx(Ne,{size:14}),e[8]=o,e[9]=d):d=e[9];let g;e[10]!==o||e[11]!==l?(g=l(o?"filePicker.filePickerDialog.copied":"filePicker.filePickerDialog.copyUrl"),e[10]=o,e[11]=l,e[12]=g):g=e[12];let u;e[13]!==c||e[14]!==d||e[15]!==g?(u=s.jsxs(ue,{onClick:c,children:[d,g]}),e[13]=c,e[14]=d,e[15]=g,e[16]=u):u=e[16];const h=t.publicUrl;let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(Ce,{size:14}),e[17]=x):x=e[17];let f;e[18]!==l?(f=l("filePicker.filePickerDialog.openInNewTab"),e[18]=l,e[19]=f):f=e[19];let b;e[20]!==t.publicUrl||e[21]!==f?(b=s.jsx(ue,{asChild:!0,children:s.jsxs("a",{href:h,target:"_blank",rel:"noreferrer",children:[x,f]})}),e[20]=t.publicUrl,e[21]=f,e[22]=b):b=e[22];let v;e[23]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(Ae,{size:14}),e[23]=v):v=e[23];let A;e[24]!==l?(A=l("assets.browser.deleteAction"),e[24]=l,e[25]=A):A=e[25];let k;e[26]!==i||e[27]!==A?(k=s.jsxs(ue,{variant:"destructive",onClick:i,children:[v,A]}),e[26]=i,e[27]=A,e[28]=k):k=e[28];let j;e[29]!==b||e[30]!==k||e[31]!==u?(j=s.jsxs(Re,{align:"end",children:[u,b,k]}),e[29]=b,e[30]=k,e[31]=u,e[32]=j):j=e[32];let P;return e[33]!==j||e[34]!==p?(P=s.jsxs(Be,{children:[p,j]}),e[33]=j,e[34]=p,e[35]=P):P=e[35],P}function ft(r){const e=F.c(47),{configId:t,item:i,onClose:l}=r,o=ae(),n=Je();let a;e[0]!==t||e[1]!==n||e[2]!==i||e[3]!==l||e[4]!==o?(a=async function(){if(i)try{await n.mutateAsync({configId:t,key:i.key}),ce.success(o("assets.browser.deleted")),l()}catch{ce.error(o("assets.browser.deleteFailed"))}},e[0]=t,e[1]=n,e[2]=i,e[3]=l,e[4]=o,e[5]=a):a=e[5];const c=a,m=!!i;let y;e[6]!==l?(y=C=>!C&&l(),e[6]=l,e[7]=y):y=e[7];let p;e[8]!==o?(p=o("assets.browser.deleteConfirmTitle"),e[8]=o,e[9]=p):p=e[9];let d;e[10]!==p?(d=s.jsx(ze,{children:p}),e[10]=p,e[11]=d):d=e[11];let g;e[12]!==i||e[13]!==o?(g=o("assets.browser.deleteConfirmDescription",{name:i?ke(i.key):""}),e[12]=i,e[13]=o,e[14]=g):g=e[14];let u;e[15]!==g?(u=s.jsx(Fe,{children:g}),e[15]=g,e[16]=u):u=e[16];let h;e[17]!==d||e[18]!==u?(h=s.jsxs(Ue,{children:[d,u]}),e[17]=d,e[18]=u,e[19]=h):h=e[19];const x=n.isPending;let f;e[20]!==o?(f=o("assets.browser.deleteCancel"),e[20]=o,e[21]=f):f=e[21];let b;e[22]!==n.isPending||e[23]!==f?(b=s.jsx(Ie,{disabled:x,children:f}),e[22]=n.isPending,e[23]=f,e[24]=b):b=e[24];let v;e[25]===Symbol.for("react.memo_cache_sentinel")?(v=je(ye({variant:"destructive"})),e[25]=v):v=e[25];const A=n.isPending;let k;e[26]!==c?(k=C=>{C.preventDefault(),c()},e[26]=c,e[27]=k):k=e[27];let j;e[28]!==n.isPending?(j=n.isPending?s.jsx(ge,{className:"size-3.5"}):null,e[28]=n.isPending,e[29]=j):j=e[29];let P;e[30]!==o?(P=o("assets.browser.deleteConfirm"),e[30]=o,e[31]=P):P=e[31];let S;e[32]!==n.isPending||e[33]!==k||e[34]!==j||e[35]!==P?(S=s.jsxs($e,{className:v,disabled:A,onClick:k,children:[j,P]}),e[32]=n.isPending,e[33]=k,e[34]=j,e[35]=P,e[36]=S):S=e[36];let D;e[37]!==b||e[38]!==S?(D=s.jsxs(Me,{children:[b,S]}),e[37]=b,e[38]=S,e[39]=D):D=e[39];let N;e[40]!==D||e[41]!==h?(N=s.jsxs(Te,{children:[h,D]}),e[40]=D,e[41]=h,e[42]=N):N=e[42];let w;return e[43]!==N||e[44]!==m||e[45]!==y?(w=s.jsx(Ee,{open:m,onOpenChange:y,children:N}),e[43]=N,e[44]=m,e[45]=y,e[46]=w):w=e[46],w}function dr(){const r=F.c(2),e=et();let t;return r[0]!==e?(t=s.jsx(Pe,{tabId:"assets",children:s.jsx(it,{virtualMcpId:e})}),r[0]=e,r[1]=t):t=r[1],t}export{dr as default};
@@ -1,4 +1,4 @@
1
- import{c as de,b as me,r as D,j as t,B as Q,l as It,I as gt,t as oe,aq as $t,h as _e,o as Se,aF as At,aG as Ye,a9 as Pt,a6 as zt,a7 as Et,aH as Kt,ah as Ft,P as Ue,ao as ht,f as Ot}from"./index-6GXqHE0w.js";import{a6 as Mt,a7 as Rt,a8 as Lt,w as Ze,a9 as Ut,g as Wt,aa as Te}from"./agent-icon-vDfwuZu4.js";import{i as Vt}from"./Check-DClZtAIP.js";import{t as Be}from"./ChevronUp-CbF1Gmeo.js";import{c as Bt}from"./UserSquare-yIpHwPSn.js";import{s as et}from"./Database01-zcGUPFsG.js";import{b as Ge,i as jt}from"./Tool01-D6HOM_aJ.js";import{i as Gt}from"./Printer-BG6NfeSZ.js";import{i as tt}from"./Share07-D1Sv14jA.js";import{i as Ht}from"./GitBranch01-Dil6c2wv.js";import{i as He}from"./Globe01-BVji6jXS.js";import{a as Xt}from"./Image01-CpXdMb8x.js";import{i as Jt}from"./SearchMd-BNXjQ2BV.js";import{t as yt}from"./Stars01-f37Q7vDf.js";import{B as qt}from"./badge-C5Ilvf_J.js";import{C as bt}from"./checkbox-Dg_GkeBT.js";import{S as vt}from"./switch-D5GcuD9Z.js";import{a as Ct,b as Nt,P as St}from"./popover-Ci-k968-.js";import{e as Qt,C as st,a as Yt,c as Zt,d as es,b as ts}from"./command-BpjWfGyr.js";import{g as ss,s as os}from"./tool-namespace-ySa3S1AM.js";import{u as Xe}from"./use-connection-DCUpGmsb.js";import{u as ns}from"./use-mcp-client-Bq-mjhw3.js";import{u as as}from"./use-mcp-tools-DGdyHn8U.js";import{I as is}from"./integration-icon-B6H5J7sl.js";import{M as rs}from"./select-model-CjTijsS7.js";import{u as ls}from"./use-ai-providers-Bg_y9f3x.js";import{U as cs,b as ds}from"./build-improve-prompt-doc-BrRLOIlw.js";import{a as Fe,c as ms,d as us}from"./use-automations-BI_yIok-.js";import{a as fs,u as ps,f as xs,t as gs}from"./chat-context-HB_KOUNM.js";import{b as hs,C as js,a as ys}from"./collapsible-CycyYnXe.js";import{I as ot}from"./input-TvernbmY.js";import{u as bs}from"./shell-layout-C3IRibnI.js";import{i as kt}from"./ArrowLeft-BVx6AQzq.js";import{i as vs}from"./ArrowUp-lpfNBlP2.js";import{s as Cs}from"./Trash01-DQjprOwc.js";import{s as Je}from"./XClose-DpDcHm9Y.js";import{u as nt}from"./use-debounced-autosave-wCEzYUZh.js";import{T as Ns,a as Ss}from"./input-D8xrvlz-.js";import{c as ks,D as Ts,b as ws,h as _s,i as Ds,j as Is,a as Ae}from"./dropdown-menu-DzwCPltk.js";import{s as $s}from"./Plus-DaErdsG1.js";import{i as qe}from"./Zap-C5eiFR0N.js";import{d as As,h as Ps,c as zs,e as Es,b as Ks,D as Fs}from"./dialog-DJBpjJnY.js";import{c as Os,a as Ms,T as at}from"./tabs-DQoXHeZr.js";import{a as We}from"./Copy01-DiITYBuR.js";import{M as Rs}from"./monaco-editor-C5zvkMO4.js";import{c as it,d as rt,b as lt,f as ct,g as dt,e as mt,a as ut,A as ft}from"./alert-dialog-CiKfgw9r.js";import{S as Pe,b as ze,a as Ee,d as Ke,c as Oe}from"./select-Ce9NznPv.js";import{A as Ls}from"./automation-runs-C-5kRp10.js";import{C as Us}from"./collection-tabs-Bc9QOlJ8.js";import{b as Ws}from"./use-panel-navigate-CCqZdv2O.js";import"./AlertCircle-CgERhdh6.js";import"./Tool02-BrfQeZRx.js";import"./ArrowRight-DZQert3q.js";import"./TrendUp01-DIz6JZwT.js";import"./ZoomOut-DdupjPFF.js";import"./Users03-DWh3D2_T.js";import"./CheckCircle-BGqFZ8sM.js";import"./ChevronRight-BNfU55ld.js";import"./ChevronSelectorVertical-ilm76_0p.js";import"./DotsVertical-LmkOTjL4.js";import"./CreditCard01-Zpy-4Wu9.js";import"./Download01-C4blLpML.js";import"./Settings02-DL8f5fN1.js";import"./Eye-Cd7v-liN.js";import"./File02-CceuR6rF.js";import"./SwitchHorizontal01-BIyO34Jw.js";import"./HardDrive-B4UY5qYp.js";import"./Key01-BsAAVoJx.js";import"./Link01-OqB-2yPE.js";import"./LinkExternal01-DobnLseV.js";import"./Monitor01-BTqHf-K4.js";import"./Sun-DjKz3VjB.js";import"./Package-CCkk0w5h.js";import"./Palette-BBWt8owf.js";import"./Play-CPeIBqH_.js";import"./SearchLg-DxQfk550.js";import"./Shield01-BsobIEfQ.js";import"./Upload01-BDeLrRhf.js";import"./User01-B8a5ssx2.js";import"./Users01-BCRhQsCX.js";import"./XCircle-DudPVYQR.js";import"./index-cEqwHhEg.js";import"./auth-ksbj4Esa.js";import"./drawer-B5NRhNfW.js";import"./index-B7ENeoW4.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-CW4PxBuN.js";import"./download-app-dialog-DYhv8XsJ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./autosend-BzUVLyEq.js";import"./thread-intent-AJKohiRy.js";import"./slugify-CEUa2lfQ.js";import"./hooks-BSkeWBV7.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-D2Qtyl-A.js";import"./task-board-DyZE7mH1.js";import"./schema-Cnskrzk1.js";import"./use-virtual-mcp-CMlCV8Oj.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-zpeu2MCG.js";import"./thread-route-CEvVLI2K.js";import"./use-organization-settings-DrJN-E78.js";import"./anchors-yqDzZN4K.js";import"./use-project-scope-DZ9tacAx.js";import"./github-repo-C0igpkr9.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-palette-store-D19nXDNm.js";import"./project-icon-DIXBuD-A.js";import"./required-auth-layout-DMNBbcf3.js";import"./use-org-sso-uleG21Aq.js";import"./use-org-notice-PUfO84YR.js";import"./hooks-Bb9SArul.js";import"./usage-stats-D5mXC24B.js";import"./form-EGCuUtdG.js";import"./label-aWEsDmHM.js";import"./utils-CVEq3hMx.js";import"./use-copy-GVBAvo9n.js";import"./markdown-CBvmi8AF.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-mcp-prompts-CWmeNLXn.js";import"./use-org-fs-DG1oJieK.js";import"./editor-BHnwprUT.js";import"./useInfiniteQuery-CM35R0yt.js";import"./infiniteQueryObserver-C7FrFXuf.js";import"./table-O0SpY8ZO.js";import"./empty-state-CXolWOTn.js";import"./use-infinite-scroll-BXOEU8Y7.js";import"./use-members-Dnee1tF2.js";import"./use-org-auth-client-CVFBkaiI.js";import"./task-status-CyTozLxL.js";import"./thread-sheet-body-Bs4b4fMK.js";import"./useSuspenseInfiniteQuery-DWyGwvh9.js";import"./pair-CD8Vxcvs.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BQ7hPzlx.js";import"./types-C1gRrnQe.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-navigate-to-agent-Drdqs1cr.js";import"./use-thread-outputs-CpCqTMOi.js";import"./file-type-icon-Cg81au_Z.js";const Ve={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:Wt},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:yt},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:Ut}},Vs=["fast","smart","thinking"];function Bs(a){const e=de.c(19),{tier:o,onSelect:i}=a,n=me(),[s,l]=D.useState(!1),r=Ve[o].icon;let j;e[0]!==r?(j=t.jsx(r,{size:14,className:"text-muted-foreground"}),e[0]=r,e[1]=j):j=e[1];const u=Ve[o];let c;e[2]!==n||e[3]!==u.labelKey?(c=n(u.labelKey),e[2]=n,e[3]=u.labelKey,e[4]=c):c=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Be,{size:14,className:"text-muted-foreground"}),e[5]=f):f=e[5];let g;e[6]!==j||e[7]!==c?(g=t.jsx(Ct,{asChild:!0,children:t.jsxs(Q,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[j,c,f]})}),e[6]=j,e[7]=c,e[8]=g):g=e[8];let h;e[9]!==i||e[10]!==n||e[11]!==o?(h=Vs.map(m=>{const x=Ve[m],b=x.icon;return t.jsxs("button",{type:"button",onClick:()=>{i(m),l(!1)},className:It("flex items-start gap-2 px-2 py-1.5 rounded-md text-left hover:bg-muted"),children:[t.jsx(b,{size:16,className:"shrink-0 text-muted-foreground mt-0.5"}),t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"text-sm",children:n(x.labelKey)}),t.jsx("div",{className:"text-xs text-muted-foreground",children:n(x.subtitleKey)})]}),m===o&&t.jsx(Vt,{size:14,className:"text-foreground mt-0.5"})]},m)}),e[9]=i,e[10]=n,e[11]=o,e[12]=h):h=e[12];let d;e[13]!==h?(d=t.jsx(Nt,{align:"start",className:"p-1 w-64",children:t.jsx("div",{className:"flex flex-col",children:h})}),e[13]=h,e[14]=d):d=e[14];let p;return e[15]!==s||e[16]!==g||e[17]!==d?(p=t.jsxs(St,{open:s,onOpenChange:l,children:[g,d]}),e[15]=s,e[16]=g,e[17]=d,e[18]=p):p=e[18],p}function Gs(a){const e=de.c(27),{tier:o,onTierChange:i,override:n,onOverrideChange:s}=a,l=me(),[r,j]=D.useState(n!==null);let u;e[0]!==l?(u=l("automations.automationConfig.modelLabel"),e[0]=l,e[1]=u):u=e[1];let c;e[2]!==u?(c=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:u}),e[2]=u,e[3]=c):c=e[3];let f;e[4]!==s||e[5]!==i||e[6]!==n||e[7]!==l||e[8]!==o||e[9]!==r?(f=r?t.jsx(D.Suspense,{fallback:t.jsx(Q,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:l("automations.automationConfig.loadingModels")}),children:t.jsx(Hs,{override:n,onOverrideChange:s})}):t.jsx(Bs,{tier:o,onSelect:i}),e[4]=s,e[5]=i,e[6]=n,e[7]=l,e[8]=o,e[9]=r,e[10]=f):f=e[10];let g;e[11]!==s?(g=b=>{j(b),b||s(null)},e[11]=s,e[12]=g):g=e[12];let h;e[13]!==g||e[14]!==r?(h=t.jsx(vt,{checked:r,onCheckedChange:g,className:"cursor-pointer"}),e[13]=g,e[14]=r,e[15]=h):h=e[15];let d;e[16]!==l?(d=l("automations.automationConfig.specificModel"),e[16]=l,e[17]=d):d=e[17];let p;e[18]!==h||e[19]!==d?(p=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[h,d]}),e[18]=h,e[19]=d,e[20]=p):p=e[20];let m;e[21]!==f||e[22]!==p?(m=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[f,p]}),e[21]=f,e[22]=p,e[23]=m):m=e[23];let x;return e[24]!==c||e[25]!==m?(x=t.jsxs("div",{className:"flex flex-col gap-2",children:[c,m]}),e[24]=c,e[25]=m,e[26]=x):x=e[26],x}function Hs(a){const e=de.c(25),{override:o,onOverrideChange:i}=a,n=me(),s=ls(),l=s[0]?.id??null;let r;e[0]!==l||e[1]!==s||e[2]!==o?.credentialId?(r=s.some(x=>x.id===o?.credentialId)?o?.credentialId??null:l,e[0]=l,e[1]=s,e[2]=o?.credentialId,e[3]=r):r=e[3];const[j,u]=D.useState(r);let c;e[4]!==j||e[5]!==l||e[6]!==s?(c=s.some(x=>x.id===j)?j:l,e[4]=j,e[5]=l,e[6]=s,e[7]=c):c=e[7];const f=c;let g;e[8]!==s||e[9]!==o?(g=o&&s.some(x=>x.id===o.credentialId)?{modelId:o.modelId,title:o.title||o.modelId,keyId:o.credentialId,providerId:"deco",description:null,logo:null,capabilities:[],limits:null,costs:null}:null,e[8]=s,e[9]=o,e[10]=g):g=e[10];const h=g;if(s.length===0){let x;e[11]!==n?(x=n("automations.automationConfig.connectAiProviderHint"),e[11]=n,e[12]=x):x=e[12];let b;return e[13]!==x?(b=t.jsx("span",{className:"text-xs text-muted-foreground italic",children:x}),e[13]=x,e[14]=b):b=e[14],b}let d;e[15]!==n?(d=n("automations.automationConfig.pickModelPlaceholder"),e[15]=n,e[16]=d):d=e[16];let p;e[17]!==f||e[18]!==i?(p=x=>{const b=x.keyId??f??"";u(b),i({modelId:x.modelId,credentialId:b,title:x.title??x.modelId})},e[17]=f,e[18]=i,e[19]=p):p=e[19];let m;return e[20]!==f||e[21]!==h||e[22]!==d||e[23]!==p?(m=t.jsx("div",{className:"w-fit max-w-full [&_button]:rounded-md",children:t.jsx(rs,{variant:"bordered",placeholder:d,model:h,credentialId:f,onCredentialChange:u,onModelChange:p})}),e[20]=f,e[21]=h,e[22]=d,e[23]=p,e[24]=m):m=e[24],m}const Tt=[{key:"capabilities",headingKey:"automations.automationConfig.builtinCapabilities",icon:Ge,tools:[{name:"web_search",titleKey:"automations.automationConfig.toolWebSearch",descriptionKey:"automations.automationConfig.toolWebSearchDesc",icon:He},{name:"generate_image",titleKey:"automations.automationConfig.toolGenerateImage",descriptionKey:"automations.automationConfig.toolGenerateImageDesc",icon:Xt},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:Ht},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:Mt}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:tt,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:Gt},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:jt},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:Rt},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:Jt},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:tt},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:Lt}]},{key:"context",headingKey:"automations.automationConfig.context",icon:et,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:et},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:Ze},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:Ze}]}],Xs=Tt.flatMap(a=>a.tools.map(e=>e.name));function Js(a){const e=a.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,o=>o.toUpperCase()):a}function qs(a){const e=de.c(12),{agentId:o,value:i,onChange:n}=a,s=me();let l;e[0]!==s?(l=s("automations.automationConfig.toolsLabel"),e[0]=s,e[1]=l):l=e[1];let r;e[2]!==l?(r=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:l}),e[2]=l,e[3]=r):r=e[3];let j;e[4]!==o||e[5]!==n||e[6]!==s||e[7]!==i?(j=o?t.jsx(D.Suspense,{fallback:t.jsxs(Q,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:[t.jsx(Ge,{size:14}),s("automations.automationConfig.loadingTools")]}),children:t.jsx(Qs,{agentId:o,value:i,onChange:n})}):t.jsx("span",{className:"text-xs text-muted-foreground italic",children:s("automations.automationConfig.pickAgentFirst")}),e[4]=o,e[5]=n,e[6]=s,e[7]=i,e[8]=j):j=e[8];let u;return e[9]!==r||e[10]!==j?(u=t.jsxs("div",{className:"flex flex-col gap-2",children:[r,j]}),e[9]=r,e[10]=j,e[11]=u):u=e[11],u}function pt(a){const e=de.c(17),{value:o,checked:i,onToggle:n,title:s,description:l,leading:r}=a;let j;e[0]!==i?(j=t.jsx(bt,{checked:i,className:"pointer-events-none mt-0.5"}),e[0]=i,e[1]=j):j=e[1];let u;e[2]!==r?(u=r&&t.jsx("span",{className:"mt-px shrink-0",children:r}),e[2]=r,e[3]=u):u=e[3];let c;e[4]!==s?(c=t.jsx("span",{className:"truncate text-sm leading-tight",children:s}),e[4]=s,e[5]=c):c=e[5];let f;e[6]!==l?(f=l&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:l}),e[6]=l,e[7]=f):f=e[7];let g;e[8]!==c||e[9]!==f?(g=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[c,f]}),e[8]=c,e[9]=f,e[10]=g):g=e[10];let h;return e[11]!==n||e[12]!==j||e[13]!==u||e[14]!==g||e[15]!==o?(h=t.jsxs(Yt,{value:o,onSelect:n,className:"items-start gap-2.5 py-2",children:[j,u,g]}),e[11]=n,e[12]=j,e[13]=u,e[14]=g,e[15]=o,e[16]=h):h=e[16],h}function xt(a){const e=de.c(27),{conn:o,label:i,icon:n,on:s,total:l,onToggle:r}=a,j=me(),u=s===l;let c;e[0]!==n||e[1]!==o?(c=o?t.jsx(is,{icon:o.icon,name:o.title,size:"2xs"}):n?t.jsx(n,{size:14,className:"text-muted-foreground"}):t.jsx(Bt,{size:14,className:"text-muted-foreground"}),e[0]=n,e[1]=o,e[2]=c):c=e[2];let f;e[3]!==o?.title||e[4]!==i||e[5]!==j?(f=o?.title??i??j("automations.automationConfig.otherTools"),e[3]=o?.title,e[4]=i,e[5]=j,e[6]=f):f=e[6];let g;e[7]!==f?(g=t.jsx("span",{className:"truncate",children:f}),e[7]=f,e[8]=g):g=e[8];let h;e[9]!==s||e[10]!==l?(h=t.jsxs("span",{className:"text-[11px] font-normal tabular-nums text-muted-foreground/70",children:[s,"/",l]}),e[9]=s,e[10]=l,e[11]=h):h=e[11];let d;e[12]!==r?(d=C=>{C.stopPropagation(),r()},e[12]=r,e[13]=d):d=e[13];let p;e[14]!==u||e[15]!==j?(p=j(u?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=u,e[15]=j,e[16]=p):p=e[16];let m;e[17]!==d||e[18]!==p?(m=t.jsx("button",{type:"button",onClick:d,className:"text-[11px] font-medium text-primary hover:underline",children:p}),e[17]=d,e[18]=p,e[19]=m):m=e[19];let x;e[20]!==h||e[21]!==m?(x=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[h,m]}),e[20]=h,e[21]=m,e[22]=x):x=e[22];let b;return e[23]!==c||e[24]!==g||e[25]!==x?(b=t.jsxs("div",{className:"flex items-center gap-2",children:[c,g,x]}),e[23]=c,e[24]=g,e[25]=x,e[26]=b):b=e[26],b}function Qs(a){const e=de.c(83),{agentId:o,value:i,onChange:n}=a,s=me(),{org:l}=gt(),[r,j]=D.useState(!1);let u;e[0]!==o||e[1]!==l.id||e[2]!==l.slug?(u={connectionId:o,orgId:l.id,orgSlug:l.slug},e[0]=o,e[1]=l.id,e[2]=l.slug,e[3]=u):u=e[3];const c=ns(u);let f;e[4]!==c?(f={client:c},e[4]=c,e[5]=f):f=e[5];const{data:g,isLoading:h}=as(f),d=Xe();let p,m,x,b,C,w,N,z,_,v,S,k,E;if(e[6]!==d||e[7]!==g?.tools||e[8]!==h||e[9]!==n||e[10]!==r||e[11]!==s||e[12]!==i){const H=new Map(d.map(so)),G=new Map;for(const T of g?.tools??[]){const A=ss(T._meta)??"__other__",q=os(T.name,A==="__other__"?void 0:A),$=T.title,xe=$&&$!==T.name?$:Js(q);G.has(A)||G.set(A,{clientId:A,conn:H.get(A),tools:[]}),G.get(A).tools.push({name:T.name,display:xe,description:T.description})}const V=[...G.values()].sort(to),X=(g?.tools??[]).map(eo),B=[...Xs,...X],L=i===null?new Set(B):new Set(i),W=B.every(T=>L.has(T)),I=T=>n(B.every(A=>T.has(A))?null:[...T]),Y=T=>{const A=new Set(L);A.has(T)?A.delete(T):A.add(T),I(A)},Z=(T,A)=>{const q=new Set(L);for(const $ of T)A?q.add($):q.delete($);I(q)};b=St,E=r,C=j;let J;e[26]===Symbol.for("react.memo_cache_sentinel")?(J=t.jsx(Ge,{size:14,className:"text-muted-foreground"}),e[26]=J):J=e[26];let ne;e[27]!==W||e[28]!==s?(ne=s(W?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=W,e[28]=s,e[29]=ne):ne=e[29];const ue=!W&&t.jsxs(qt,{variant:"secondary",className:"ml-0.5 h-5 px-1.5 text-[11px] tabular-nums",children:[L.size,"/",B.length]});let ce;e[30]===Symbol.for("react.memo_cache_sentinel")?(ce=t.jsx(Be,{size:14,className:"text-muted-foreground"}),e[30]=ce):ce=e[30],e[31]!==ne||e[32]!==ue?(w=t.jsx(Ct,{asChild:!0,children:t.jsxs(Q,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[J,ne,ue,ce]})}),e[31]=ne,e[32]=ue,e[33]=w):w=e[33],x=Nt,S="p-0 w-80",k="start",m=Zt;let ee;e[34]!==s?(ee=s("automations.automationConfig.searchToolsPlaceholder"),e[34]=s,e[35]=ee):ee=e[35],e[36]!==ee?(_=t.jsx(es,{placeholder:ee}),e[36]=ee,e[37]=_):_=e[37];const fe=W?s("automations.automationConfig.allToolsEnabled",{count:B.length}):s("automations.automationConfig.toolsEnabledCount",{enabled:L.size,total:B.length});let te;e[38]!==fe?(te=t.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[38]=fe,e[39]=te):te=e[39];let ae;e[40]!==n?(ae=()=>n(null),e[40]=n,e[41]=ae):ae=e[41];let ie;e[42]!==s?(ie=s("automations.automationConfig.selectAll"),e[42]=s,e[43]=ie):ie=e[43];let y;e[44]!==W||e[45]!==ae||e[46]!==ie?(y=t.jsx("button",{type:"button",onClick:ae,disabled:W,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:ie}),e[44]=W,e[45]=ae,e[46]=ie,e[47]=y):y=e[47];let O;e[48]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx("span",{className:"text-muted-foreground/30",children:"·"}),e[48]=O):O=e[48];let P;e[49]!==n?(P=()=>n([]),e[49]=n,e[50]=P):P=e[50];const pe=L.size===0;let se;e[51]!==s?(se=s("automations.automationConfig.clear"),e[51]=s,e[52]=se):se=e[52];let re;e[53]!==P||e[54]!==pe||e[55]!==se?(re=t.jsx("button",{type:"button",onClick:P,disabled:pe,className:"text-xs font-medium text-muted-foreground hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:se}),e[53]=P,e[54]=pe,e[55]=se,e[56]=re):re=e[56];let le;e[57]!==y||e[58]!==re?(le=t.jsxs("div",{className:"flex items-center gap-2",children:[y,O,re]}),e[57]=y,e[58]=re,e[59]=le):le=e[59],e[60]!==te||e[61]!==le?(v=t.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[te,le]}),e[60]=te,e[61]=le,e[62]=v):v=e[62],p=ts,N="max-h-80",z=h?t.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:s("automations.automationConfig.loadingTools")}):t.jsxs(t.Fragment,{children:[t.jsx(Qt,{children:s("automations.automationConfig.noToolsFound")}),Tt.map(T=>{const A=T.tools.map(Zs),q=A.filter($=>L.has($)).length;return t.jsx(st,{heading:t.jsx(xt,{label:s(T.headingKey),icon:T.icon,on:q,total:A.length,onToggle:()=>Z(A,q!==A.length)}),children:T.tools.map($=>t.jsx(pt,{value:`${s($.titleKey)} ${$.name}`,checked:L.has($.name),onToggle:()=>Y($.name),title:s($.titleKey),description:s($.descriptionKey),leading:t.jsx($.icon,{size:16,className:"text-muted-foreground"})},$.name))},T.key)}),V.map(T=>{const A=T.tools.map(Ys),q=A.filter($=>L.has($)).length;return t.jsx(st,{heading:t.jsx(xt,{conn:T.conn,on:q,total:A.length,onToggle:()=>Z(A,q!==A.length)}),children:T.tools.map($=>t.jsx(pt,{value:`${$.display} ${$.name} ${T.conn?.title??""}`,checked:L.has($.name),onToggle:()=>Y($.name),title:$.display,description:$.description},$.name))},T.clientId)})]}),e[6]=d,e[7]=g?.tools,e[8]=h,e[9]=n,e[10]=r,e[11]=s,e[12]=i,e[13]=p,e[14]=m,e[15]=x,e[16]=b,e[17]=C,e[18]=w,e[19]=N,e[20]=z,e[21]=_,e[22]=v,e[23]=S,e[24]=k,e[25]=E}else p=e[13],m=e[14],x=e[15],b=e[16],C=e[17],w=e[18],N=e[19],z=e[20],_=e[21],v=e[22],S=e[23],k=e[24],E=e[25];let F;e[63]!==p||e[64]!==N||e[65]!==z?(F=t.jsx(p,{className:N,children:z}),e[63]=p,e[64]=N,e[65]=z,e[66]=F):F=e[66];let K;e[67]!==m||e[68]!==F||e[69]!==_||e[70]!==v?(K=t.jsxs(m,{children:[_,v,F]}),e[67]=m,e[68]=F,e[69]=_,e[70]=v,e[71]=K):K=e[71];let R;e[72]!==x||e[73]!==K||e[74]!==S||e[75]!==k?(R=t.jsx(x,{className:S,align:k,children:K}),e[72]=x,e[73]=K,e[74]=S,e[75]=k,e[76]=R):R=e[76];let U;return e[77]!==b||e[78]!==C||e[79]!==w||e[80]!==R||e[81]!==E?(U=t.jsxs(b,{open:E,onOpenChange:C,children:[w,R]}),e[77]=b,e[78]=C,e[79]=w,e[80]=R,e[81]=E,e[82]=U):U=e[82],U}function Ys(a){return a.name}function Zs(a){return a.name}function eo(a){return a.name}function to(a,e){return(a.conn?.title??a.clientId).localeCompare(e.conn?.title??e.clientId)}function so(a){return[a.id,a]}function we(a){const e=a.trim().split(/\s+/);return e.length!==5?!1:e.every(o=>/^[\d*/,-]+$/.test(o))}function oo(a){if(!a)return"Unknown schedule";const e=a.trim();if(e==="* * * * *")return"Every minute";if(e==="0 * * * *")return"Every hour";if(e==="0 0 * * *")return"Every day";if(e==="0 0 * * 1")return"Every week";const o=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(o)return`Every ${o[1]} minutes`;const i=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(i)return`Every ${i[1]} hours`;const n=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(n){const r=parseInt(n[1]??"1");return r%7===0?`Every ${r/7} weeks`:`Every ${r} days`}const s=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(s){const r=(s[2]??"0").padStart(2,"0"),j=(s[1]??"0").padStart(2,"0");return`Every day at ${r}:${j} UTC`}const l=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(l){const j=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(l[3]??"0")]??"day",u=(l[2]??"0").padStart(2,"0"),c=(l[1]??"0").padStart(2,"0");return`Every ${j} at ${u}:${c} UTC`}return a}function no(a,e){const o=Math.max(1,a);switch(e){case"minutes":return o===1?"* * * * *":`*/${o} * * * *`;case"hours":return o===1?"0 * * * *":`0 */${o} * * *`;case"days":return o===1?"0 0 * * *":`0 0 */${o} * *`;case"weeks":return o===1?"0 0 * * 1":`0 0 */${o*7} * *`}}function ao(a){const e=a.trim();if(e==="* * * * *")return{count:1,unit:"minutes"};if(e==="0 * * * *")return{count:1,unit:"hours"};if(e==="0 0 * * *")return{count:1,unit:"days"};if(e==="0 0 * * 1")return{count:1,unit:"weeks"};const o=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(o)return{count:parseInt(o[1]),unit:"minutes"};const i=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(i)return{count:parseInt(i[1]),unit:"hours"};const n=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);return n?{count:parseInt(n[1]),unit:"days"}:null}function io(a,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[a]??a:a}const ro=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}];function lo({automationId:a,open:e,onOpenChange:o,onCustomSelect:i,onEventSelect:n,onWebhookCreated:s}){const l=me(),{triggerAdd:r}=Fe(),[j,u]=D.useState(!1),c=e??j,f=d=>{o?o(d):u(d)},g=async d=>{try{await r.mutateAsync({automation_id:a,type:"cron",cron_expression:d}),oe.success(l("automations.addStarterPopover.starterAdded")),f(!1)}catch(p){const m=p instanceof Error?p.message:l("automations.addStarterPopover.failedAddStarter");oe.error(m)}},h=async()=>{try{const d=await r.mutateAsync({automation_id:a,type:"webhook"});f(!1),d.webhook?s?.(d.webhook):oe.success(l("automations.addStarterPopover.webhookStarterAdded"))}catch(d){const p=d instanceof Error?d.message:l("automations.addStarterPopover.failedAddWebhookStarter");oe.error(p)}};return t.jsxs(ks,{open:c,onOpenChange:f,children:[t.jsx(Ts,{asChild:!0,children:t.jsxs(Q,{variant:"outline",size:"sm",children:[t.jsx($s,{size:14}),l("automations.addStarterPopover.addStarter")]})}),t.jsxs(ws,{align:"end",className:"w-[200px]",children:[t.jsxs(_s,{children:[t.jsxs(Ds,{className:"gap-2.5",children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.every")]}),t.jsx(Is,{className:"w-[160px]",children:ro.map(d=>t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>g(d.cron),disabled:r.isPending,children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.everyUnit",{unit:d.label})]},d.cron))})]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{f(!1),i?.()},children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.customCron")]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{f(!1),n?.()},children:[t.jsx(qe,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.event")]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{h()},disabled:r.isPending,children:[t.jsx(He,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.webhook")]})]})]})}function wt(a){const e=de.c(39),{open:o,onOpenChange:i,url:n,token:s,title:l,description:r}=a,j=l===void 0?"Webhook ready":l,u=r===void 0?"Send a POST to this URL with the bearer token to fire the automation. The token is shown once — copy it now.":r,c=me(),[f,g]=D.useState(null),[h,d]=D.useState("curl"),[p,m]=D.useState("header"),x=D.useId();let b;e[0]!==c?(b=async(V,X)=>{try{await navigator.clipboard.writeText(V),g(X),oe.success(c("automations.webhookSecretDialog.copied")),setTimeout(()=>g(null),1500)}catch{oe.error(c("automations.webhookSecretDialog.failedCopy"))}},e[0]=c,e[1]=b):b=e[1];const C=b;let w;e[2]!==p||e[3]!==s||e[4]!==n?(w=n&&s&&p==="url"?`${n.replace(/\/$/,"")}/${s}`:n??"",e[2]=p,e[3]=s,e[4]=n,e[5]=w):w=e[5];const N=w,z=n&&s?p==="header"?`curl -X POST "${N}" \\
1
+ import{c as de,b as me,r as D,j as t,B as Q,l as It,I as gt,t as oe,aq as $t,h as _e,o as Se,aF as At,aG as Ye,a9 as Pt,a6 as zt,a7 as Et,aH as Kt,ah as Ft,P as Ue,ao as ht,f as Ot}from"./index-B3yBTWEk.js";import{a6 as Mt,a7 as Rt,a8 as Lt,w as Ze,a9 as Ut,g as Wt,aa as Te}from"./agent-icon-DrlilhFJ.js";import{i as Vt}from"./Check-BWpBE9uf.js";import{t as Be}from"./ChevronUp-DGrguvGW.js";import{c as Bt}from"./UserSquare-CCDsU001.js";import{s as et}from"./Database01-2gG_9E30.js";import{b as Ge,i as jt}from"./Tool01-BnKd95Y1.js";import{i as Gt}from"./Printer-fz_zwxfT.js";import{i as tt}from"./Share07-D_kiq5Fr.js";import{i as Ht}from"./GitBranch01-BBn4dN5f.js";import{i as He}from"./Globe01-SLAc63wC.js";import{a as Xt}from"./Image01-BrHSH-Vi.js";import{i as Jt}from"./SearchMd-DRRptSJN.js";import{t as yt}from"./Stars01-COChWymR.js";import{B as qt}from"./badge-DJpaBl8u.js";import{C as bt}from"./checkbox-D8Ab2Vb-.js";import{S as vt}from"./switch-CJ5Ir2Zx.js";import{a as Ct,b as Nt,P as St}from"./popover-DIqZ2IKF.js";import{e as Qt,C as st,a as Yt,c as Zt,d as es,b as ts}from"./command-B6LMVdkQ.js";import{g as ss,s as os}from"./tool-namespace-BVMQcKlk.js";import{u as Xe}from"./use-connection-DCLPda2h.js";import{u as ns}from"./use-mcp-client-DsJzBus3.js";import{u as as}from"./use-mcp-tools-Dc3F6Krl.js";import{I as is}from"./integration-icon-BPwWRlNG.js";import{M as rs}from"./select-model-BDGEzt-Y.js";import{u as ls}from"./use-ai-providers-qnkcjapR.js";import{U as cs,b as ds}from"./build-improve-prompt-doc-Dn9xs_5X.js";import{a as Fe,c as ms,d as us}from"./use-automations-CYOC_eS5.js";import{a as fs,u as ps,f as xs,t as gs}from"./chat-context-CXknhaDs.js";import{b as hs,C as js,a as ys}from"./collapsible-DH_CZdwE.js";import{I as ot}from"./input-HFOrJf5B.js";import{u as bs}from"./shell-layout-1dFmVwYI.js";import{i as kt}from"./ArrowLeft-Clu1mSdY.js";import{i as vs}from"./ArrowUp-C0eratGp.js";import{s as Cs}from"./Trash01-DqUm2RRh.js";import{s as Je}from"./XClose-Cw4b4Uag.js";import{u as nt}from"./use-debounced-autosave-BRAVEUZc.js";import{T as Ns,a as Ss}from"./input-BnbYz5_9.js";import{c as ks,D as Ts,b as ws,h as _s,i as Ds,j as Is,a as Ae}from"./dropdown-menu-BxKUbUkE.js";import{s as $s}from"./Plus-Bxp02MWl.js";import{i as qe}from"./Zap-ChVc0p76.js";import{d as As,h as Ps,c as zs,e as Es,b as Ks,D as Fs}from"./dialog-otnvxVN0.js";import{c as Os,a as Ms,T as at}from"./tabs-DV8akPGb.js";import{a as We}from"./Copy01-DayLu0dF.js";import{M as Rs}from"./monaco-editor-WNMTPDp9.js";import{c as it,d as rt,b as lt,f as ct,g as dt,e as mt,a as ut,A as ft}from"./alert-dialog-BE9ltHtr.js";import{S as Pe,b as ze,a as Ee,d as Ke,c as Oe}from"./select-Bc5UZb4n.js";import{A as Ls}from"./automation-runs-nZP284NC.js";import{C as Us}from"./collection-tabs-BLgGMB42.js";import{b as Ws}from"./use-panel-navigate-Byvx0cbx.js";import"./AlertCircle-EniJtD8E.js";import"./Tool02-C_xRWqQk.js";import"./ArrowRight-Cu8UuHNR.js";import"./TrendUp01-PFzYDizC.js";import"./ZoomOut-BXPGwF_O.js";import"./Users03-CRtXqa1Q.js";import"./CheckCircle-cinYKmPU.js";import"./ChevronRight-DzRB-rdO.js";import"./ChevronSelectorVertical-BiIbFU31.js";import"./DotsVertical-CucJCL9y.js";import"./CreditCard01-4OsjIT5f.js";import"./Download01-BC2rKbuh.js";import"./Settings02-D2oiGU4q.js";import"./Eye-dnrP5DkM.js";import"./File02-BhckHV8N.js";import"./SwitchHorizontal01-CxlKjkIX.js";import"./HardDrive-FlnOYA_8.js";import"./Key01-CKcg8G1v.js";import"./Link01-3t9JrUgl.js";import"./LinkExternal01-Cp7uxK1i.js";import"./Monitor01-BUruMK2r.js";import"./Sun-nKOZMh9n.js";import"./Package-CdfyZYxN.js";import"./Palette-CglyAOTg.js";import"./Play-rnw1eV52.js";import"./SearchLg-FC9suxna.js";import"./Shield01-CjyLhqlS.js";import"./Upload01-CqWnAR1-.js";import"./User01-BJoNdkjl.js";import"./Users01-DSQPwtP5.js";import"./XCircle-9Cb0khfg.js";import"./index-w1d_dmEj.js";import"./auth-RjDDTUUT.js";import"./drawer-s7gtDrb4.js";import"./index-DlQKfvnq.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-DcDvs8Zz.js";import"./download-app-dialog-BqNRF4Sn.js";import"./use-is-desktop-app-BNujXJc_.js";import"./autosend-HdosN86x.js";import"./thread-intent-DVKldCEq.js";import"./slugify-CEUa2lfQ.js";import"./hooks-k1OxvonE.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-CfYFArSW.js";import"./task-board-CXsHf2Zn.js";import"./schema-BQbhQoxs.js";import"./use-virtual-mcp-Bk09OpEg.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DYRVevWg.js";import"./thread-route-CKY-dKC0.js";import"./use-organization-settings-BAVHurZk.js";import"./anchors-yqDzZN4K.js";import"./use-project-scope-B2cuvtTy.js";import"./github-repo-C0igpkr9.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-palette-store-BwHku_Zt.js";import"./project-icon-Bl3bXnhv.js";import"./required-auth-layout-BEc3NUsQ.js";import"./use-org-sso-CdSz0xa8.js";import"./use-org-notice-CXYMfMUq.js";import"./hooks-BhviOOpn.js";import"./usage-stats-BNse37Wk.js";import"./form-KjPevg0A.js";import"./label-CqlSWrLn.js";import"./utils-CVEq3hMx.js";import"./use-copy-14DzRp8J.js";import"./markdown-B1038zFJ.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-mcp-prompts-i0LZ2nQA.js";import"./use-org-fs-BEoPvlnI.js";import"./editor-DCxsAs7o.js";import"./useInfiniteQuery-GKCP1c_7.js";import"./infiniteQueryObserver-DgAoAIrN.js";import"./table-Di_WRNkb.js";import"./empty-state-Cz1DkYZE.js";import"./use-infinite-scroll-DkLPxlOu.js";import"./use-members-C0MdJrYz.js";import"./use-org-auth-client-4o0wRx2Q.js";import"./task-status-DIr_2V94.js";import"./thread-sheet-body-CcUGPZXB.js";import"./useSuspenseInfiniteQuery-DmEiIBI4.js";import"./pair-C08OPQNP.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-Cb8Ud-E7.js";import"./types-Csu6Ims7.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-navigate-to-agent-Bbq0oQ0Y.js";import"./use-thread-outputs-9oZhiYbB.js";import"./file-type-icon-DGllFDOf.js";const Ve={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:Wt},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:yt},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:Ut}},Vs=["fast","smart","thinking"];function Bs(a){const e=de.c(19),{tier:o,onSelect:i}=a,n=me(),[s,l]=D.useState(!1),r=Ve[o].icon;let j;e[0]!==r?(j=t.jsx(r,{size:14,className:"text-muted-foreground"}),e[0]=r,e[1]=j):j=e[1];const u=Ve[o];let c;e[2]!==n||e[3]!==u.labelKey?(c=n(u.labelKey),e[2]=n,e[3]=u.labelKey,e[4]=c):c=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Be,{size:14,className:"text-muted-foreground"}),e[5]=f):f=e[5];let g;e[6]!==j||e[7]!==c?(g=t.jsx(Ct,{asChild:!0,children:t.jsxs(Q,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[j,c,f]})}),e[6]=j,e[7]=c,e[8]=g):g=e[8];let h;e[9]!==i||e[10]!==n||e[11]!==o?(h=Vs.map(m=>{const x=Ve[m],b=x.icon;return t.jsxs("button",{type:"button",onClick:()=>{i(m),l(!1)},className:It("flex items-start gap-2 px-2 py-1.5 rounded-md text-left hover:bg-muted"),children:[t.jsx(b,{size:16,className:"shrink-0 text-muted-foreground mt-0.5"}),t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"text-sm",children:n(x.labelKey)}),t.jsx("div",{className:"text-xs text-muted-foreground",children:n(x.subtitleKey)})]}),m===o&&t.jsx(Vt,{size:14,className:"text-foreground mt-0.5"})]},m)}),e[9]=i,e[10]=n,e[11]=o,e[12]=h):h=e[12];let d;e[13]!==h?(d=t.jsx(Nt,{align:"start",className:"p-1 w-64",children:t.jsx("div",{className:"flex flex-col",children:h})}),e[13]=h,e[14]=d):d=e[14];let p;return e[15]!==s||e[16]!==g||e[17]!==d?(p=t.jsxs(St,{open:s,onOpenChange:l,children:[g,d]}),e[15]=s,e[16]=g,e[17]=d,e[18]=p):p=e[18],p}function Gs(a){const e=de.c(27),{tier:o,onTierChange:i,override:n,onOverrideChange:s}=a,l=me(),[r,j]=D.useState(n!==null);let u;e[0]!==l?(u=l("automations.automationConfig.modelLabel"),e[0]=l,e[1]=u):u=e[1];let c;e[2]!==u?(c=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:u}),e[2]=u,e[3]=c):c=e[3];let f;e[4]!==s||e[5]!==i||e[6]!==n||e[7]!==l||e[8]!==o||e[9]!==r?(f=r?t.jsx(D.Suspense,{fallback:t.jsx(Q,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:l("automations.automationConfig.loadingModels")}),children:t.jsx(Hs,{override:n,onOverrideChange:s})}):t.jsx(Bs,{tier:o,onSelect:i}),e[4]=s,e[5]=i,e[6]=n,e[7]=l,e[8]=o,e[9]=r,e[10]=f):f=e[10];let g;e[11]!==s?(g=b=>{j(b),b||s(null)},e[11]=s,e[12]=g):g=e[12];let h;e[13]!==g||e[14]!==r?(h=t.jsx(vt,{checked:r,onCheckedChange:g,className:"cursor-pointer"}),e[13]=g,e[14]=r,e[15]=h):h=e[15];let d;e[16]!==l?(d=l("automations.automationConfig.specificModel"),e[16]=l,e[17]=d):d=e[17];let p;e[18]!==h||e[19]!==d?(p=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[h,d]}),e[18]=h,e[19]=d,e[20]=p):p=e[20];let m;e[21]!==f||e[22]!==p?(m=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[f,p]}),e[21]=f,e[22]=p,e[23]=m):m=e[23];let x;return e[24]!==c||e[25]!==m?(x=t.jsxs("div",{className:"flex flex-col gap-2",children:[c,m]}),e[24]=c,e[25]=m,e[26]=x):x=e[26],x}function Hs(a){const e=de.c(25),{override:o,onOverrideChange:i}=a,n=me(),s=ls(),l=s[0]?.id??null;let r;e[0]!==l||e[1]!==s||e[2]!==o?.credentialId?(r=s.some(x=>x.id===o?.credentialId)?o?.credentialId??null:l,e[0]=l,e[1]=s,e[2]=o?.credentialId,e[3]=r):r=e[3];const[j,u]=D.useState(r);let c;e[4]!==j||e[5]!==l||e[6]!==s?(c=s.some(x=>x.id===j)?j:l,e[4]=j,e[5]=l,e[6]=s,e[7]=c):c=e[7];const f=c;let g;e[8]!==s||e[9]!==o?(g=o&&s.some(x=>x.id===o.credentialId)?{modelId:o.modelId,title:o.title||o.modelId,keyId:o.credentialId,providerId:"deco",description:null,logo:null,capabilities:[],limits:null,costs:null}:null,e[8]=s,e[9]=o,e[10]=g):g=e[10];const h=g;if(s.length===0){let x;e[11]!==n?(x=n("automations.automationConfig.connectAiProviderHint"),e[11]=n,e[12]=x):x=e[12];let b;return e[13]!==x?(b=t.jsx("span",{className:"text-xs text-muted-foreground italic",children:x}),e[13]=x,e[14]=b):b=e[14],b}let d;e[15]!==n?(d=n("automations.automationConfig.pickModelPlaceholder"),e[15]=n,e[16]=d):d=e[16];let p;e[17]!==f||e[18]!==i?(p=x=>{const b=x.keyId??f??"";u(b),i({modelId:x.modelId,credentialId:b,title:x.title??x.modelId})},e[17]=f,e[18]=i,e[19]=p):p=e[19];let m;return e[20]!==f||e[21]!==h||e[22]!==d||e[23]!==p?(m=t.jsx("div",{className:"w-fit max-w-full [&_button]:rounded-md",children:t.jsx(rs,{variant:"bordered",placeholder:d,model:h,credentialId:f,onCredentialChange:u,onModelChange:p})}),e[20]=f,e[21]=h,e[22]=d,e[23]=p,e[24]=m):m=e[24],m}const Tt=[{key:"capabilities",headingKey:"automations.automationConfig.builtinCapabilities",icon:Ge,tools:[{name:"web_search",titleKey:"automations.automationConfig.toolWebSearch",descriptionKey:"automations.automationConfig.toolWebSearchDesc",icon:He},{name:"generate_image",titleKey:"automations.automationConfig.toolGenerateImage",descriptionKey:"automations.automationConfig.toolGenerateImageDesc",icon:Xt},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:Ht},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:Mt}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:tt,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:Gt},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:jt},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:Rt},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:Jt},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:tt},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:Lt}]},{key:"context",headingKey:"automations.automationConfig.context",icon:et,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:et},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:Ze},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:Ze}]}],Xs=Tt.flatMap(a=>a.tools.map(e=>e.name));function Js(a){const e=a.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,o=>o.toUpperCase()):a}function qs(a){const e=de.c(12),{agentId:o,value:i,onChange:n}=a,s=me();let l;e[0]!==s?(l=s("automations.automationConfig.toolsLabel"),e[0]=s,e[1]=l):l=e[1];let r;e[2]!==l?(r=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:l}),e[2]=l,e[3]=r):r=e[3];let j;e[4]!==o||e[5]!==n||e[6]!==s||e[7]!==i?(j=o?t.jsx(D.Suspense,{fallback:t.jsxs(Q,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:[t.jsx(Ge,{size:14}),s("automations.automationConfig.loadingTools")]}),children:t.jsx(Qs,{agentId:o,value:i,onChange:n})}):t.jsx("span",{className:"text-xs text-muted-foreground italic",children:s("automations.automationConfig.pickAgentFirst")}),e[4]=o,e[5]=n,e[6]=s,e[7]=i,e[8]=j):j=e[8];let u;return e[9]!==r||e[10]!==j?(u=t.jsxs("div",{className:"flex flex-col gap-2",children:[r,j]}),e[9]=r,e[10]=j,e[11]=u):u=e[11],u}function pt(a){const e=de.c(17),{value:o,checked:i,onToggle:n,title:s,description:l,leading:r}=a;let j;e[0]!==i?(j=t.jsx(bt,{checked:i,className:"pointer-events-none mt-0.5"}),e[0]=i,e[1]=j):j=e[1];let u;e[2]!==r?(u=r&&t.jsx("span",{className:"mt-px shrink-0",children:r}),e[2]=r,e[3]=u):u=e[3];let c;e[4]!==s?(c=t.jsx("span",{className:"truncate text-sm leading-tight",children:s}),e[4]=s,e[5]=c):c=e[5];let f;e[6]!==l?(f=l&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:l}),e[6]=l,e[7]=f):f=e[7];let g;e[8]!==c||e[9]!==f?(g=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[c,f]}),e[8]=c,e[9]=f,e[10]=g):g=e[10];let h;return e[11]!==n||e[12]!==j||e[13]!==u||e[14]!==g||e[15]!==o?(h=t.jsxs(Yt,{value:o,onSelect:n,className:"items-start gap-2.5 py-2",children:[j,u,g]}),e[11]=n,e[12]=j,e[13]=u,e[14]=g,e[15]=o,e[16]=h):h=e[16],h}function xt(a){const e=de.c(27),{conn:o,label:i,icon:n,on:s,total:l,onToggle:r}=a,j=me(),u=s===l;let c;e[0]!==n||e[1]!==o?(c=o?t.jsx(is,{icon:o.icon,name:o.title,size:"2xs"}):n?t.jsx(n,{size:14,className:"text-muted-foreground"}):t.jsx(Bt,{size:14,className:"text-muted-foreground"}),e[0]=n,e[1]=o,e[2]=c):c=e[2];let f;e[3]!==o?.title||e[4]!==i||e[5]!==j?(f=o?.title??i??j("automations.automationConfig.otherTools"),e[3]=o?.title,e[4]=i,e[5]=j,e[6]=f):f=e[6];let g;e[7]!==f?(g=t.jsx("span",{className:"truncate",children:f}),e[7]=f,e[8]=g):g=e[8];let h;e[9]!==s||e[10]!==l?(h=t.jsxs("span",{className:"text-[11px] font-normal tabular-nums text-muted-foreground/70",children:[s,"/",l]}),e[9]=s,e[10]=l,e[11]=h):h=e[11];let d;e[12]!==r?(d=C=>{C.stopPropagation(),r()},e[12]=r,e[13]=d):d=e[13];let p;e[14]!==u||e[15]!==j?(p=j(u?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=u,e[15]=j,e[16]=p):p=e[16];let m;e[17]!==d||e[18]!==p?(m=t.jsx("button",{type:"button",onClick:d,className:"text-[11px] font-medium text-primary hover:underline",children:p}),e[17]=d,e[18]=p,e[19]=m):m=e[19];let x;e[20]!==h||e[21]!==m?(x=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[h,m]}),e[20]=h,e[21]=m,e[22]=x):x=e[22];let b;return e[23]!==c||e[24]!==g||e[25]!==x?(b=t.jsxs("div",{className:"flex items-center gap-2",children:[c,g,x]}),e[23]=c,e[24]=g,e[25]=x,e[26]=b):b=e[26],b}function Qs(a){const e=de.c(83),{agentId:o,value:i,onChange:n}=a,s=me(),{org:l}=gt(),[r,j]=D.useState(!1);let u;e[0]!==o||e[1]!==l.id||e[2]!==l.slug?(u={connectionId:o,orgId:l.id,orgSlug:l.slug},e[0]=o,e[1]=l.id,e[2]=l.slug,e[3]=u):u=e[3];const c=ns(u);let f;e[4]!==c?(f={client:c},e[4]=c,e[5]=f):f=e[5];const{data:g,isLoading:h}=as(f),d=Xe();let p,m,x,b,C,w,N,z,_,v,S,k,E;if(e[6]!==d||e[7]!==g?.tools||e[8]!==h||e[9]!==n||e[10]!==r||e[11]!==s||e[12]!==i){const H=new Map(d.map(so)),G=new Map;for(const T of g?.tools??[]){const A=ss(T._meta)??"__other__",q=os(T.name,A==="__other__"?void 0:A),$=T.title,xe=$&&$!==T.name?$:Js(q);G.has(A)||G.set(A,{clientId:A,conn:H.get(A),tools:[]}),G.get(A).tools.push({name:T.name,display:xe,description:T.description})}const V=[...G.values()].sort(to),X=(g?.tools??[]).map(eo),B=[...Xs,...X],L=i===null?new Set(B):new Set(i),W=B.every(T=>L.has(T)),I=T=>n(B.every(A=>T.has(A))?null:[...T]),Y=T=>{const A=new Set(L);A.has(T)?A.delete(T):A.add(T),I(A)},Z=(T,A)=>{const q=new Set(L);for(const $ of T)A?q.add($):q.delete($);I(q)};b=St,E=r,C=j;let J;e[26]===Symbol.for("react.memo_cache_sentinel")?(J=t.jsx(Ge,{size:14,className:"text-muted-foreground"}),e[26]=J):J=e[26];let ne;e[27]!==W||e[28]!==s?(ne=s(W?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=W,e[28]=s,e[29]=ne):ne=e[29];const ue=!W&&t.jsxs(qt,{variant:"secondary",className:"ml-0.5 h-5 px-1.5 text-[11px] tabular-nums",children:[L.size,"/",B.length]});let ce;e[30]===Symbol.for("react.memo_cache_sentinel")?(ce=t.jsx(Be,{size:14,className:"text-muted-foreground"}),e[30]=ce):ce=e[30],e[31]!==ne||e[32]!==ue?(w=t.jsx(Ct,{asChild:!0,children:t.jsxs(Q,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[J,ne,ue,ce]})}),e[31]=ne,e[32]=ue,e[33]=w):w=e[33],x=Nt,S="p-0 w-80",k="start",m=Zt;let ee;e[34]!==s?(ee=s("automations.automationConfig.searchToolsPlaceholder"),e[34]=s,e[35]=ee):ee=e[35],e[36]!==ee?(_=t.jsx(es,{placeholder:ee}),e[36]=ee,e[37]=_):_=e[37];const fe=W?s("automations.automationConfig.allToolsEnabled",{count:B.length}):s("automations.automationConfig.toolsEnabledCount",{enabled:L.size,total:B.length});let te;e[38]!==fe?(te=t.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[38]=fe,e[39]=te):te=e[39];let ae;e[40]!==n?(ae=()=>n(null),e[40]=n,e[41]=ae):ae=e[41];let ie;e[42]!==s?(ie=s("automations.automationConfig.selectAll"),e[42]=s,e[43]=ie):ie=e[43];let y;e[44]!==W||e[45]!==ae||e[46]!==ie?(y=t.jsx("button",{type:"button",onClick:ae,disabled:W,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:ie}),e[44]=W,e[45]=ae,e[46]=ie,e[47]=y):y=e[47];let O;e[48]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx("span",{className:"text-muted-foreground/30",children:"·"}),e[48]=O):O=e[48];let P;e[49]!==n?(P=()=>n([]),e[49]=n,e[50]=P):P=e[50];const pe=L.size===0;let se;e[51]!==s?(se=s("automations.automationConfig.clear"),e[51]=s,e[52]=se):se=e[52];let re;e[53]!==P||e[54]!==pe||e[55]!==se?(re=t.jsx("button",{type:"button",onClick:P,disabled:pe,className:"text-xs font-medium text-muted-foreground hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:se}),e[53]=P,e[54]=pe,e[55]=se,e[56]=re):re=e[56];let le;e[57]!==y||e[58]!==re?(le=t.jsxs("div",{className:"flex items-center gap-2",children:[y,O,re]}),e[57]=y,e[58]=re,e[59]=le):le=e[59],e[60]!==te||e[61]!==le?(v=t.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[te,le]}),e[60]=te,e[61]=le,e[62]=v):v=e[62],p=ts,N="max-h-80",z=h?t.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:s("automations.automationConfig.loadingTools")}):t.jsxs(t.Fragment,{children:[t.jsx(Qt,{children:s("automations.automationConfig.noToolsFound")}),Tt.map(T=>{const A=T.tools.map(Zs),q=A.filter($=>L.has($)).length;return t.jsx(st,{heading:t.jsx(xt,{label:s(T.headingKey),icon:T.icon,on:q,total:A.length,onToggle:()=>Z(A,q!==A.length)}),children:T.tools.map($=>t.jsx(pt,{value:`${s($.titleKey)} ${$.name}`,checked:L.has($.name),onToggle:()=>Y($.name),title:s($.titleKey),description:s($.descriptionKey),leading:t.jsx($.icon,{size:16,className:"text-muted-foreground"})},$.name))},T.key)}),V.map(T=>{const A=T.tools.map(Ys),q=A.filter($=>L.has($)).length;return t.jsx(st,{heading:t.jsx(xt,{conn:T.conn,on:q,total:A.length,onToggle:()=>Z(A,q!==A.length)}),children:T.tools.map($=>t.jsx(pt,{value:`${$.display} ${$.name} ${T.conn?.title??""}`,checked:L.has($.name),onToggle:()=>Y($.name),title:$.display,description:$.description},$.name))},T.clientId)})]}),e[6]=d,e[7]=g?.tools,e[8]=h,e[9]=n,e[10]=r,e[11]=s,e[12]=i,e[13]=p,e[14]=m,e[15]=x,e[16]=b,e[17]=C,e[18]=w,e[19]=N,e[20]=z,e[21]=_,e[22]=v,e[23]=S,e[24]=k,e[25]=E}else p=e[13],m=e[14],x=e[15],b=e[16],C=e[17],w=e[18],N=e[19],z=e[20],_=e[21],v=e[22],S=e[23],k=e[24],E=e[25];let F;e[63]!==p||e[64]!==N||e[65]!==z?(F=t.jsx(p,{className:N,children:z}),e[63]=p,e[64]=N,e[65]=z,e[66]=F):F=e[66];let K;e[67]!==m||e[68]!==F||e[69]!==_||e[70]!==v?(K=t.jsxs(m,{children:[_,v,F]}),e[67]=m,e[68]=F,e[69]=_,e[70]=v,e[71]=K):K=e[71];let R;e[72]!==x||e[73]!==K||e[74]!==S||e[75]!==k?(R=t.jsx(x,{className:S,align:k,children:K}),e[72]=x,e[73]=K,e[74]=S,e[75]=k,e[76]=R):R=e[76];let U;return e[77]!==b||e[78]!==C||e[79]!==w||e[80]!==R||e[81]!==E?(U=t.jsxs(b,{open:E,onOpenChange:C,children:[w,R]}),e[77]=b,e[78]=C,e[79]=w,e[80]=R,e[81]=E,e[82]=U):U=e[82],U}function Ys(a){return a.name}function Zs(a){return a.name}function eo(a){return a.name}function to(a,e){return(a.conn?.title??a.clientId).localeCompare(e.conn?.title??e.clientId)}function so(a){return[a.id,a]}function we(a){const e=a.trim().split(/\s+/);return e.length!==5?!1:e.every(o=>/^[\d*/,-]+$/.test(o))}function oo(a){if(!a)return"Unknown schedule";const e=a.trim();if(e==="* * * * *")return"Every minute";if(e==="0 * * * *")return"Every hour";if(e==="0 0 * * *")return"Every day";if(e==="0 0 * * 1")return"Every week";const o=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(o)return`Every ${o[1]} minutes`;const i=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(i)return`Every ${i[1]} hours`;const n=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(n){const r=parseInt(n[1]??"1");return r%7===0?`Every ${r/7} weeks`:`Every ${r} days`}const s=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(s){const r=(s[2]??"0").padStart(2,"0"),j=(s[1]??"0").padStart(2,"0");return`Every day at ${r}:${j} UTC`}const l=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(l){const j=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(l[3]??"0")]??"day",u=(l[2]??"0").padStart(2,"0"),c=(l[1]??"0").padStart(2,"0");return`Every ${j} at ${u}:${c} UTC`}return a}function no(a,e){const o=Math.max(1,a);switch(e){case"minutes":return o===1?"* * * * *":`*/${o} * * * *`;case"hours":return o===1?"0 * * * *":`0 */${o} * * *`;case"days":return o===1?"0 0 * * *":`0 0 */${o} * *`;case"weeks":return o===1?"0 0 * * 1":`0 0 */${o*7} * *`}}function ao(a){const e=a.trim();if(e==="* * * * *")return{count:1,unit:"minutes"};if(e==="0 * * * *")return{count:1,unit:"hours"};if(e==="0 0 * * *")return{count:1,unit:"days"};if(e==="0 0 * * 1")return{count:1,unit:"weeks"};const o=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(o)return{count:parseInt(o[1]),unit:"minutes"};const i=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(i)return{count:parseInt(i[1]),unit:"hours"};const n=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);return n?{count:parseInt(n[1]),unit:"days"}:null}function io(a,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[a]??a:a}const ro=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}];function lo({automationId:a,open:e,onOpenChange:o,onCustomSelect:i,onEventSelect:n,onWebhookCreated:s}){const l=me(),{triggerAdd:r}=Fe(),[j,u]=D.useState(!1),c=e??j,f=d=>{o?o(d):u(d)},g=async d=>{try{await r.mutateAsync({automation_id:a,type:"cron",cron_expression:d}),oe.success(l("automations.addStarterPopover.starterAdded")),f(!1)}catch(p){const m=p instanceof Error?p.message:l("automations.addStarterPopover.failedAddStarter");oe.error(m)}},h=async()=>{try{const d=await r.mutateAsync({automation_id:a,type:"webhook"});f(!1),d.webhook?s?.(d.webhook):oe.success(l("automations.addStarterPopover.webhookStarterAdded"))}catch(d){const p=d instanceof Error?d.message:l("automations.addStarterPopover.failedAddWebhookStarter");oe.error(p)}};return t.jsxs(ks,{open:c,onOpenChange:f,children:[t.jsx(Ts,{asChild:!0,children:t.jsxs(Q,{variant:"outline",size:"sm",children:[t.jsx($s,{size:14}),l("automations.addStarterPopover.addStarter")]})}),t.jsxs(ws,{align:"end",className:"w-[200px]",children:[t.jsxs(_s,{children:[t.jsxs(Ds,{className:"gap-2.5",children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.every")]}),t.jsx(Is,{className:"w-[160px]",children:ro.map(d=>t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>g(d.cron),disabled:r.isPending,children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.everyUnit",{unit:d.label})]},d.cron))})]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{f(!1),i?.()},children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.customCron")]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{f(!1),n?.()},children:[t.jsx(qe,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.event")]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{h()},disabled:r.isPending,children:[t.jsx(He,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.webhook")]})]})]})}function wt(a){const e=de.c(39),{open:o,onOpenChange:i,url:n,token:s,title:l,description:r}=a,j=l===void 0?"Webhook ready":l,u=r===void 0?"Send a POST to this URL with the bearer token to fire the automation. The token is shown once — copy it now.":r,c=me(),[f,g]=D.useState(null),[h,d]=D.useState("curl"),[p,m]=D.useState("header"),x=D.useId();let b;e[0]!==c?(b=async(V,X)=>{try{await navigator.clipboard.writeText(V),g(X),oe.success(c("automations.webhookSecretDialog.copied")),setTimeout(()=>g(null),1500)}catch{oe.error(c("automations.webhookSecretDialog.failedCopy"))}},e[0]=c,e[1]=b):b=e[1];const C=b;let w;e[2]!==p||e[3]!==s||e[4]!==n?(w=n&&s&&p==="url"?`${n.replace(/\/$/,"")}/${s}`:n??"",e[2]=p,e[3]=s,e[4]=n,e[5]=w):w=e[5];const N=w,z=n&&s?p==="header"?`curl -X POST "${N}" \\
2
2
  -H "Authorization: Bearer ${s}" \\
3
3
  -H "Content-Type: application/json" \\
4
4
  -d '{"hello":"world"}'`:`curl -X POST "${N}" \\
@@ -1 +1 @@
1
- import{c as I,b as O,r as G,j as e,P as a,o as Q,B as V,ao as U}from"./index-6GXqHE0w.js";import{s as W}from"./Plus-DaErdsG1.js";import{z as X}from"./agent-icon-vDfwuZu4.js";import{i as F}from"./Zap-C5eiFR0N.js";import{S as Y}from"./search-input-lFP9sD3O.js";import{E as k}from"./empty-state-CXolWOTn.js";import{u as Z,a as tt,b as et}from"./use-automations-BI_yIok-.js";import{b as it}from"./use-panel-navigate-CCqZdv2O.js";import{A as ot}from"./automation-list-row-CkrObNhq.js";import{a as st}from"./thread-route-CEvVLI2K.js";import"./AlertCircle-CgERhdh6.js";import"./Tool01-D6HOM_aJ.js";import"./ArrowUp-lpfNBlP2.js";import"./ArrowLeft-BVx6AQzq.js";import"./Tool02-BrfQeZRx.js";import"./ArrowRight-DZQert3q.js";import"./TrendUp01-DIz6JZwT.js";import"./ZoomOut-DdupjPFF.js";import"./Users03-DWh3D2_T.js";import"./CheckCircle-BGqFZ8sM.js";import"./Check-DClZtAIP.js";import"./ChevronUp-CbF1Gmeo.js";import"./ChevronRight-BNfU55ld.js";import"./ChevronSelectorVertical-ilm76_0p.js";import"./DotsVertical-LmkOTjL4.js";import"./UserSquare-yIpHwPSn.js";import"./Copy01-DiITYBuR.js";import"./CreditCard01-Zpy-4Wu9.js";import"./Database01-zcGUPFsG.js";import"./Download01-C4blLpML.js";import"./Printer-BG6NfeSZ.js";import"./Settings02-DL8f5fN1.js";import"./Eye-Cd7v-liN.js";import"./File02-CceuR6rF.js";import"./Share07-D1Sv14jA.js";import"./GitBranch01-Dil6c2wv.js";import"./Globe01-BVji6jXS.js";import"./SwitchHorizontal01-BIyO34Jw.js";import"./HardDrive-B4UY5qYp.js";import"./Image01-CpXdMb8x.js";import"./Key01-BsAAVoJx.js";import"./Link01-OqB-2yPE.js";import"./LinkExternal01-DobnLseV.js";import"./Monitor01-BTqHf-K4.js";import"./Sun-DjKz3VjB.js";import"./Package-CCkk0w5h.js";import"./Palette-BBWt8owf.js";import"./Play-CPeIBqH_.js";import"./SearchLg-DxQfk550.js";import"./SearchMd-BNXjQ2BV.js";import"./Shield01-BsobIEfQ.js";import"./Stars01-f37Q7vDf.js";import"./Trash01-DQjprOwc.js";import"./Upload01-BDeLrRhf.js";import"./User01-B8a5ssx2.js";import"./Users01-BCRhQsCX.js";import"./XCircle-DudPVYQR.js";import"./XClose-DpDcHm9Y.js";import"./use-mcp-client-Bq-mjhw3.js";import"./auth-ksbj4Esa.js";import"./use-project-scope-DZ9tacAx.js";import"./use-virtual-mcp-CMlCV8Oj.js";import"./github-repo-C0igpkr9.js";import"./alert-dialog-CiKfgw9r.js";import"./dropdown-menu-DzwCPltk.js";function rt(r){if(!(r instanceof Error))return!1;const t=r.message.toLowerCase();return t.includes("relation")&&t.includes("does not exist")}function nt(r){const t=I.c(45),{virtualMcpId:s}=r,i=O(),{openPanel:n}=it(),{data:$,error:D}=Z(s),b=$===void 0?[]:$,{create:w}=tt(),[P,H]=G.useState("");if(D&&rt(D)){let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(X,{size:48,className:"text-muted-foreground"}),t[0]=o):o=t[0];let x;t[1]!==i?(x=i("automations.setupRequired.title"),t[1]=i,t[2]=x):x=t[2];let j;t[3]!==i?(j=i("automations.setupRequired.description"),t[3]=i,t[4]=j):j=t[4];let h;t[5]!==n?(h=()=>n("settings"),t[5]=n,t[6]=h):h=t[6];let g;t[7]!==i?(g=i("automations.setupRequired.goToSetup"),t[7]=i,t[8]=g):g=t[8];let y;t[9]!==h||t[10]!==g?(y=e.jsx(V,{size:"sm",onClick:h,children:g}),t[9]=h,t[10]=g,t[11]=y):y=t[11];let S;return t[12]!==x||t[13]!==j||t[14]!==y?(S=e.jsx(a,{children:e.jsx(a.Content,{children:e.jsx(a.Body,{children:e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(k,{image:o,title:x,description:j,actions:y})})})})}),t[12]=x,t[13]=j,t[14]=y,t[15]=S):S=t[15],S}const J=P.toLowerCase(),M=b.filter(o=>o.name.toLowerCase().includes(J));let v;t[16]!==n?(v=o=>n(`automation:${o}`),t[16]=n,t[17]=v):v=t[17];const q=v,R=async()=>{if(w.isPending)return;Q("automation_new_clicked",{virtual_mcp_id:s,existing_count:b.length});const o=await w.mutateAsync(et(s));q(o.id)},K=w.isPending;let L;t[18]===Symbol.for("react.memo_cache_sentinel")?(L=e.jsx(W,{size:14}),t[18]=L):L=t[18];let m;t[19]!==i?(m=i("automations.automationsList.newAutomation"),t[19]=i,t[20]=m):m=t[20];let N;t[21]!==w.isPending||t[22]!==R||t[23]!==m?(N=e.jsxs(V,{size:"sm",onClick:R,disabled:K,children:[L,m]}),t[21]=w.isPending,t[22]=R,t[23]=m,t[24]=N):N=t[24];const C=N,_=a,T=a,z=a;let l;t[25]!==i?(l=i("automations.automationsList.title"),t[25]=i,t[26]=l):l=t[26];let c;t[27]!==l?(c=e.jsx(a.Title,{children:l}),t[27]=l,t[28]=c):c=t[28];const B=b.length>0&&e.jsx(Y,{value:P,onChange:H,placeholder:i("automations.automationsList.searchPlaceholder"),className:"w-full md:w-[375px]"});let p;t[29]!==C||t[30]!==B?(p=e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[B,C]}),t[29]=C,t[30]=B,t[31]=p):p=t[31];let u;t[32]!==c||t[33]!==p?(u=e.jsxs("div",{className:"flex flex-col gap-6",children:[c,p]}),t[32]=c,t[33]=p,t[34]=u):u=t[34];const E=b.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(k,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.emptyTitle"),description:i("automations.automationsList.emptyDescription"),actions:C})}):M.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(k,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.noResultsTitle"),description:i("automations.automationsList.noResultsDescription",{search:P})})}):e.jsx("div",{className:"mt-6 rounded-xl border border-border overflow-hidden",children:M.map(o=>e.jsx(ot,{automation:o,onClick:()=>q(o.id)},o.id))});let d;t[35]!==u||t[36]!==E||t[37]!==z.Body?(d=e.jsxs(z.Body,{children:[u,E]}),t[35]=u,t[36]=E,t[37]=z.Body,t[38]=d):d=t[38];let f;t[39]!==d||t[40]!==T.Content?(f=e.jsx(T.Content,{children:d}),t[39]=d,t[40]=T.Content,t[41]=f):f=t[41];let A;return t[42]!==_||t[43]!==f?(A=e.jsx(_,{children:f}),t[42]=_,t[43]=f,t[44]=A):A=t[44],A}function at(r){const t=I.c(3),{virtualMcpId:s}=r;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=e.jsx(U,{}),t[0]=i):i=t[0];let n;return t[1]!==s?(n=e.jsx(G.Suspense,{fallback:i,children:e.jsx(nt,{virtualMcpId:s})}),t[1]=s,t[2]=n):n=t[2],n}function ye(){const r=I.c(2),t=st();let s;return r[0]!==t?(s=e.jsx(at,{virtualMcpId:t}),r[0]=t,r[1]=s):s=r[1],s}export{ye as default};
1
+ import{c as I,b as O,r as G,j as e,P as a,o as Q,B as V,ao as U}from"./index-B3yBTWEk.js";import{s as W}from"./Plus-Bxp02MWl.js";import{z as X}from"./agent-icon-DrlilhFJ.js";import{i as F}from"./Zap-ChVc0p76.js";import{S as Y}from"./search-input-uXtJ6IU8.js";import{E as k}from"./empty-state-Cz1DkYZE.js";import{u as Z,a as tt,b as et}from"./use-automations-CYOC_eS5.js";import{b as it}from"./use-panel-navigate-Byvx0cbx.js";import{A as ot}from"./automation-list-row-XibuWgpW.js";import{a as st}from"./thread-route-CKY-dKC0.js";import"./AlertCircle-EniJtD8E.js";import"./Tool01-BnKd95Y1.js";import"./ArrowUp-C0eratGp.js";import"./ArrowLeft-Clu1mSdY.js";import"./Tool02-C_xRWqQk.js";import"./ArrowRight-Cu8UuHNR.js";import"./TrendUp01-PFzYDizC.js";import"./ZoomOut-BXPGwF_O.js";import"./Users03-CRtXqa1Q.js";import"./CheckCircle-cinYKmPU.js";import"./Check-BWpBE9uf.js";import"./ChevronUp-DGrguvGW.js";import"./ChevronRight-DzRB-rdO.js";import"./ChevronSelectorVertical-BiIbFU31.js";import"./DotsVertical-CucJCL9y.js";import"./UserSquare-CCDsU001.js";import"./Copy01-DayLu0dF.js";import"./CreditCard01-4OsjIT5f.js";import"./Database01-2gG_9E30.js";import"./Download01-BC2rKbuh.js";import"./Printer-fz_zwxfT.js";import"./Settings02-D2oiGU4q.js";import"./Eye-dnrP5DkM.js";import"./File02-BhckHV8N.js";import"./Share07-D_kiq5Fr.js";import"./GitBranch01-BBn4dN5f.js";import"./Globe01-SLAc63wC.js";import"./SwitchHorizontal01-CxlKjkIX.js";import"./HardDrive-FlnOYA_8.js";import"./Image01-BrHSH-Vi.js";import"./Key01-CKcg8G1v.js";import"./Link01-3t9JrUgl.js";import"./LinkExternal01-Cp7uxK1i.js";import"./Monitor01-BUruMK2r.js";import"./Sun-nKOZMh9n.js";import"./Package-CdfyZYxN.js";import"./Palette-CglyAOTg.js";import"./Play-rnw1eV52.js";import"./SearchLg-FC9suxna.js";import"./SearchMd-DRRptSJN.js";import"./Shield01-CjyLhqlS.js";import"./Stars01-COChWymR.js";import"./Trash01-DqUm2RRh.js";import"./Upload01-CqWnAR1-.js";import"./User01-BJoNdkjl.js";import"./Users01-DSQPwtP5.js";import"./XCircle-9Cb0khfg.js";import"./XClose-Cw4b4Uag.js";import"./use-mcp-client-DsJzBus3.js";import"./auth-RjDDTUUT.js";import"./use-project-scope-B2cuvtTy.js";import"./use-virtual-mcp-Bk09OpEg.js";import"./github-repo-C0igpkr9.js";import"./alert-dialog-BE9ltHtr.js";import"./dropdown-menu-BxKUbUkE.js";function rt(r){if(!(r instanceof Error))return!1;const t=r.message.toLowerCase();return t.includes("relation")&&t.includes("does not exist")}function nt(r){const t=I.c(45),{virtualMcpId:s}=r,i=O(),{openPanel:n}=it(),{data:$,error:D}=Z(s),b=$===void 0?[]:$,{create:w}=tt(),[P,H]=G.useState("");if(D&&rt(D)){let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(X,{size:48,className:"text-muted-foreground"}),t[0]=o):o=t[0];let x;t[1]!==i?(x=i("automations.setupRequired.title"),t[1]=i,t[2]=x):x=t[2];let j;t[3]!==i?(j=i("automations.setupRequired.description"),t[3]=i,t[4]=j):j=t[4];let h;t[5]!==n?(h=()=>n("settings"),t[5]=n,t[6]=h):h=t[6];let g;t[7]!==i?(g=i("automations.setupRequired.goToSetup"),t[7]=i,t[8]=g):g=t[8];let y;t[9]!==h||t[10]!==g?(y=e.jsx(V,{size:"sm",onClick:h,children:g}),t[9]=h,t[10]=g,t[11]=y):y=t[11];let S;return t[12]!==x||t[13]!==j||t[14]!==y?(S=e.jsx(a,{children:e.jsx(a.Content,{children:e.jsx(a.Body,{children:e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(k,{image:o,title:x,description:j,actions:y})})})})}),t[12]=x,t[13]=j,t[14]=y,t[15]=S):S=t[15],S}const J=P.toLowerCase(),M=b.filter(o=>o.name.toLowerCase().includes(J));let v;t[16]!==n?(v=o=>n(`automation:${o}`),t[16]=n,t[17]=v):v=t[17];const q=v,R=async()=>{if(w.isPending)return;Q("automation_new_clicked",{virtual_mcp_id:s,existing_count:b.length});const o=await w.mutateAsync(et(s));q(o.id)},K=w.isPending;let L;t[18]===Symbol.for("react.memo_cache_sentinel")?(L=e.jsx(W,{size:14}),t[18]=L):L=t[18];let m;t[19]!==i?(m=i("automations.automationsList.newAutomation"),t[19]=i,t[20]=m):m=t[20];let N;t[21]!==w.isPending||t[22]!==R||t[23]!==m?(N=e.jsxs(V,{size:"sm",onClick:R,disabled:K,children:[L,m]}),t[21]=w.isPending,t[22]=R,t[23]=m,t[24]=N):N=t[24];const C=N,_=a,T=a,z=a;let l;t[25]!==i?(l=i("automations.automationsList.title"),t[25]=i,t[26]=l):l=t[26];let c;t[27]!==l?(c=e.jsx(a.Title,{children:l}),t[27]=l,t[28]=c):c=t[28];const B=b.length>0&&e.jsx(Y,{value:P,onChange:H,placeholder:i("automations.automationsList.searchPlaceholder"),className:"w-full md:w-[375px]"});let p;t[29]!==C||t[30]!==B?(p=e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[B,C]}),t[29]=C,t[30]=B,t[31]=p):p=t[31];let u;t[32]!==c||t[33]!==p?(u=e.jsxs("div",{className:"flex flex-col gap-6",children:[c,p]}),t[32]=c,t[33]=p,t[34]=u):u=t[34];const E=b.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(k,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.emptyTitle"),description:i("automations.automationsList.emptyDescription"),actions:C})}):M.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(k,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.noResultsTitle"),description:i("automations.automationsList.noResultsDescription",{search:P})})}):e.jsx("div",{className:"mt-6 rounded-xl border border-border overflow-hidden",children:M.map(o=>e.jsx(ot,{automation:o,onClick:()=>q(o.id)},o.id))});let d;t[35]!==u||t[36]!==E||t[37]!==z.Body?(d=e.jsxs(z.Body,{children:[u,E]}),t[35]=u,t[36]=E,t[37]=z.Body,t[38]=d):d=t[38];let f;t[39]!==d||t[40]!==T.Content?(f=e.jsx(T.Content,{children:d}),t[39]=d,t[40]=T.Content,t[41]=f):f=t[41];let A;return t[42]!==_||t[43]!==f?(A=e.jsx(_,{children:f}),t[42]=_,t[43]=f,t[44]=A):A=t[44],A}function at(r){const t=I.c(3),{virtualMcpId:s}=r;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=e.jsx(U,{}),t[0]=i):i=t[0];let n;return t[1]!==s?(n=e.jsx(G.Suspense,{fallback:i,children:e.jsx(nt,{virtualMcpId:s})}),t[1]=s,t[2]=n):n=t[2],n}function ye(){const r=I.c(2),t=st();let s;return r[0]!==t?(s=e.jsx(at,{virtualMcpId:t}),r[0]=t,r[1]=s):s=r[1],s}export{ye as default};
@@ -1 +1 @@
1
- import{c as I,j as i,r as T,E as F,b as D,I as U,W,x as $,e as A}from"./index-6GXqHE0w.js";import{u as L}from"./use-mcp-client-Bq-mjhw3.js";import{C as B,a as V}from"./companion-mcps-section-CVcicsr9.js";import{c as Y}from"./use-connect-companion-Mci4Y6hu.js";import{C as v,a as H}from"./connect-layout-Bl-ol5HH.js";import{p as K}from"./self-tool-result-8OxPN9Nm.js";import{b as q}from"./use-panel-navigate-CCqZdv2O.js";import"./auth-ksbj4Esa.js";import"./site-url-en5df9c-.js";import"./integration-icon-B6H5J7sl.js";import"./Tool02-BrfQeZRx.js";import"./agent-icon-vDfwuZu4.js";import"./AlertCircle-CgERhdh6.js";import"./Tool01-D6HOM_aJ.js";import"./ArrowUp-lpfNBlP2.js";import"./ArrowLeft-BVx6AQzq.js";import"./ArrowRight-DZQert3q.js";import"./TrendUp01-DIz6JZwT.js";import"./ZoomOut-DdupjPFF.js";import"./Users03-DWh3D2_T.js";import"./CheckCircle-BGqFZ8sM.js";import"./Check-DClZtAIP.js";import"./ChevronUp-CbF1Gmeo.js";import"./ChevronRight-BNfU55ld.js";import"./ChevronSelectorVertical-ilm76_0p.js";import"./DotsVertical-LmkOTjL4.js";import"./UserSquare-yIpHwPSn.js";import"./Copy01-DiITYBuR.js";import"./CreditCard01-Zpy-4Wu9.js";import"./Database01-zcGUPFsG.js";import"./Download01-C4blLpML.js";import"./Printer-BG6NfeSZ.js";import"./Settings02-DL8f5fN1.js";import"./Eye-Cd7v-liN.js";import"./File02-CceuR6rF.js";import"./Share07-D1Sv14jA.js";import"./GitBranch01-Dil6c2wv.js";import"./Globe01-BVji6jXS.js";import"./SwitchHorizontal01-BIyO34Jw.js";import"./HardDrive-B4UY5qYp.js";import"./Image01-CpXdMb8x.js";import"./Key01-BsAAVoJx.js";import"./Link01-OqB-2yPE.js";import"./LinkExternal01-DobnLseV.js";import"./Monitor01-BTqHf-K4.js";import"./Sun-DjKz3VjB.js";import"./Package-CCkk0w5h.js";import"./Palette-BBWt8owf.js";import"./Play-CPeIBqH_.js";import"./Plus-DaErdsG1.js";import"./SearchLg-DxQfk550.js";import"./SearchMd-BNXjQ2BV.js";import"./Shield01-BsobIEfQ.js";import"./Stars01-f37Q7vDf.js";import"./Trash01-DQjprOwc.js";import"./Upload01-BDeLrRhf.js";import"./User01-B8a5ssx2.js";import"./Users01-BCRhQsCX.js";import"./XCircle-DudPVYQR.js";import"./XClose-DpDcHm9Y.js";import"./Zap-C5eiFR0N.js";import"./dialog-DJBpjJnY.js";import"./companions-core-CZwGf1b1.js";import"./github-D4UJ99TO.js";import"./github-repo-scope-C8GSbvaz.js";import"./metadata-dUsYcpuu.js";import"./form-EGCuUtdG.js";import"./label-aWEsDmHM.js";import"./input-TvernbmY.js";import"./use-debounced-value-D0SYNQsR.js";import"./provision-repo-scoped-github-connection-B6zdkC6p.js";import"./extract-connection-data-B1nPGa4h.js";import"./connection-By77bjvj.js";import"./useQueries-C6OAJOs7.js";import"./authenticate-and-persist-oauth-DMvGjBUE.js";import"./mcp-oauth-DhRKpyTH.js";import"./track-Dns1NpdC.js";import"./thread-route-CEvVLI2K.js";import"./use-project-scope-DZ9tacAx.js";import"./use-virtual-mcp-CMlCV8Oj.js";import"./github-repo-C0igpkr9.js";function z(e){const t=I.c(7),{onClose:l}=e,n=D();let r;t[0]!==n?(r=n("routes.commerceOnboarding.connectModal.loadError"),t[0]=n,t[1]=r):r=t[1];let o;t[2]!==r?(o=i.jsx("p",{className:"text-sm text-muted-foreground",children:r}),t[2]=r,t[3]=o):o=t[3];let s;return t[4]!==l||t[5]!==o?(s=i.jsx(v,{onClose:l,footer:null,children:o}),t[4]=l,t[5]=o,t[6]=s):s=t[6],s}function G(){const e=I.c(10),{closePanel:t}=q();let l;e[0]!==t?(l=()=>t(),e[0]=t,e[1]=l):l=e[1];const n=l;let r;e[2]!==n?(r=()=>i.jsx(z,{onClose:n}),e[2]=n,e[3]=r):r=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx(B,{}),e[4]=o):o=e[4];let s;e[5]!==n?(s=i.jsx(T.Suspense,{fallback:i.jsx(v,{onClose:n,footer:null,children:o}),children:i.jsx(J,{onDone:n,onClose:n})}),e[5]=n,e[6]=s):s=e[6];let m;return e[7]!==r||e[8]!==s?(m=i.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:i.jsx(F,{fallback:r,children:s})}),e[7]=r,e[8]=s,e[9]=m):m=e[9],m}function J(e){const t=I.c(46),{onDone:l,onClose:n}=e,r=D(),{org:o}=U();let s;t[0]!==o.id?(s=W.COMMERCE_DISCOVERY(o.id),t[0]=o.id,t[1]=s):s=t[1];const m=s;let b;t[2]!==o.id||t[3]!==o.slug?(b={connectionId:$,orgId:o.id,orgSlug:o.slug},t[2]=o.id,t[3]=o.slug,t[4]=b):b=t[4];const a=L(b);let E;t[5]!==m||t[6]!==o||t[7]!==a?(E={selfClient:a,org:o,cdConnectionId:m},t[5]=m,t[6]=o,t[7]=a,t[8]=E):E=t[8];const p=Y(E),[O,w]=T.useState(!1),[M,N]=T.useState(null);let y;t[9]!==a?(y={mutationFn:async k=>K(await a.callTool({name:"COMMERCE_DISCOVERY_RUN",arguments:{siteUrl:k}})),retry:!1},t[9]=a,t[10]=y):y=t[10];const c=A(y);let P;t[11]!==l||t[12]!==c||t[13]!==p||t[14]!==r?(P=async()=>{if(N(null),p)try{await c.mutateAsync(p)}catch{N(r("routes.commerceOnboarding.connectModal.somethingWentWrong"));return}l()},t[11]=l,t[12]=c,t[13]=p,t[14]=r,t[15]=P):P=t[15];const _=P;let u;t[16]!==M?(u=M?i.jsx("p",{className:"text-sm leading-5 text-destructive",role:"alert",children:M}):null,t[16]=M,t[17]=u):u=t[17];let f;t[18]!==c.isPending||t[19]!==r?(f=c.isPending?r("routes.commerceOnboarding.connectSourcesTab.refreshing"):r("routes.commerceOnboarding.connectSourcesTab.refresh"),t[18]=c.isPending,t[19]=r,t[20]=f):f=t[20];let d;t[21]!==_?(d=()=>{_()},t[21]=_,t[22]=d):d=t[22];let x;t[23]!==O||t[24]!==c.isPending||t[25]!==f||t[26]!==d?(x=i.jsx(H,{ready:O,pending:c.isPending,label:f,onClick:d}),t[23]=O,t[24]=c.isPending,t[25]=f,t[26]=d,t[27]=x):x=t[27];let C;t[28]!==u||t[29]!==x?(C=i.jsxs(i.Fragment,{children:[u,x]}),t[28]=u,t[29]=x,t[30]=C):C=t[30];let g;t[31]!==r?(g=r("routes.commerceOnboarding.connectSourcesTab.title"),t[31]=r,t[32]=g):g=t[32];let h;t[33]!==g?(h=i.jsx("h2",{className:"text-xl font-medium leading-tight text-foreground",children:g}),t[33]=g,t[34]=h):h=t[34];let S;t[35]!==m||t[36]!==o||t[37]!==p?(S=i.jsx(V,{org:o,cdConnectionId:m,siteUrl:p,onReadinessChange:w}),t[35]=m,t[36]=o,t[37]=p,t[38]=S):S=t[38];let j;t[39]!==h||t[40]!==S?(j=i.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 overflow-y-auto",children:[h,S]}),t[39]=h,t[40]=S,t[41]=j):j=t[41];let R;return t[42]!==n||t[43]!==C||t[44]!==j?(R=i.jsx(v,{onClose:n,footer:C,children:j}),t[42]=n,t[43]=C,t[44]=j,t[45]=R):R=t[45],R}function ye(){const e=I.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(G,{}),e[0]=t):t=e[0],t}export{ye as default};
1
+ import{c as I,j as i,r as T,E as F,b as D,I as U,W,x as $,e as A}from"./index-B3yBTWEk.js";import{u as L}from"./use-mcp-client-DsJzBus3.js";import{C as B,a as V}from"./companion-mcps-section-BszDkkOp.js";import{c as Y}from"./use-connect-companion-2fL060lG.js";import{C as v,a as H}from"./connect-layout-C_MQVbrT.js";import{p as K}from"./self-tool-result-8OxPN9Nm.js";import{b as q}from"./use-panel-navigate-Byvx0cbx.js";import"./auth-RjDDTUUT.js";import"./site-url-en5df9c-.js";import"./integration-icon-BPwWRlNG.js";import"./Tool02-C_xRWqQk.js";import"./agent-icon-DrlilhFJ.js";import"./AlertCircle-EniJtD8E.js";import"./Tool01-BnKd95Y1.js";import"./ArrowUp-C0eratGp.js";import"./ArrowLeft-Clu1mSdY.js";import"./ArrowRight-Cu8UuHNR.js";import"./TrendUp01-PFzYDizC.js";import"./ZoomOut-BXPGwF_O.js";import"./Users03-CRtXqa1Q.js";import"./CheckCircle-cinYKmPU.js";import"./Check-BWpBE9uf.js";import"./ChevronUp-DGrguvGW.js";import"./ChevronRight-DzRB-rdO.js";import"./ChevronSelectorVertical-BiIbFU31.js";import"./DotsVertical-CucJCL9y.js";import"./UserSquare-CCDsU001.js";import"./Copy01-DayLu0dF.js";import"./CreditCard01-4OsjIT5f.js";import"./Database01-2gG_9E30.js";import"./Download01-BC2rKbuh.js";import"./Printer-fz_zwxfT.js";import"./Settings02-D2oiGU4q.js";import"./Eye-dnrP5DkM.js";import"./File02-BhckHV8N.js";import"./Share07-D_kiq5Fr.js";import"./GitBranch01-BBn4dN5f.js";import"./Globe01-SLAc63wC.js";import"./SwitchHorizontal01-CxlKjkIX.js";import"./HardDrive-FlnOYA_8.js";import"./Image01-BrHSH-Vi.js";import"./Key01-CKcg8G1v.js";import"./Link01-3t9JrUgl.js";import"./LinkExternal01-Cp7uxK1i.js";import"./Monitor01-BUruMK2r.js";import"./Sun-nKOZMh9n.js";import"./Package-CdfyZYxN.js";import"./Palette-CglyAOTg.js";import"./Play-rnw1eV52.js";import"./Plus-Bxp02MWl.js";import"./SearchLg-FC9suxna.js";import"./SearchMd-DRRptSJN.js";import"./Shield01-CjyLhqlS.js";import"./Stars01-COChWymR.js";import"./Trash01-DqUm2RRh.js";import"./Upload01-CqWnAR1-.js";import"./User01-BJoNdkjl.js";import"./Users01-DSQPwtP5.js";import"./XCircle-9Cb0khfg.js";import"./XClose-Cw4b4Uag.js";import"./Zap-ChVc0p76.js";import"./dialog-otnvxVN0.js";import"./companions-core-CZwGf1b1.js";import"./github-D4UJ99TO.js";import"./github-repo-scope-C8GSbvaz.js";import"./metadata-dUsYcpuu.js";import"./form-KjPevg0A.js";import"./label-CqlSWrLn.js";import"./input-HFOrJf5B.js";import"./use-debounced-value-Cud3o3Fq.js";import"./provision-repo-scoped-github-connection-B6zdkC6p.js";import"./extract-connection-data-CqGCTPdZ.js";import"./connection-OmoYXqZk.js";import"./useQueries-qr8TAkZc.js";import"./authenticate-and-persist-oauth-DXlrPDSv.js";import"./mcp-oauth-D6isOO_s.js";import"./track-BzMi8kcZ.js";import"./thread-route-CKY-dKC0.js";import"./use-project-scope-B2cuvtTy.js";import"./use-virtual-mcp-Bk09OpEg.js";import"./github-repo-C0igpkr9.js";function z(e){const t=I.c(7),{onClose:l}=e,n=D();let r;t[0]!==n?(r=n("routes.commerceOnboarding.connectModal.loadError"),t[0]=n,t[1]=r):r=t[1];let o;t[2]!==r?(o=i.jsx("p",{className:"text-sm text-muted-foreground",children:r}),t[2]=r,t[3]=o):o=t[3];let s;return t[4]!==l||t[5]!==o?(s=i.jsx(v,{onClose:l,footer:null,children:o}),t[4]=l,t[5]=o,t[6]=s):s=t[6],s}function G(){const e=I.c(10),{closePanel:t}=q();let l;e[0]!==t?(l=()=>t(),e[0]=t,e[1]=l):l=e[1];const n=l;let r;e[2]!==n?(r=()=>i.jsx(z,{onClose:n}),e[2]=n,e[3]=r):r=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx(B,{}),e[4]=o):o=e[4];let s;e[5]!==n?(s=i.jsx(T.Suspense,{fallback:i.jsx(v,{onClose:n,footer:null,children:o}),children:i.jsx(J,{onDone:n,onClose:n})}),e[5]=n,e[6]=s):s=e[6];let m;return e[7]!==r||e[8]!==s?(m=i.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:i.jsx(F,{fallback:r,children:s})}),e[7]=r,e[8]=s,e[9]=m):m=e[9],m}function J(e){const t=I.c(46),{onDone:l,onClose:n}=e,r=D(),{org:o}=U();let s;t[0]!==o.id?(s=W.COMMERCE_DISCOVERY(o.id),t[0]=o.id,t[1]=s):s=t[1];const m=s;let b;t[2]!==o.id||t[3]!==o.slug?(b={connectionId:$,orgId:o.id,orgSlug:o.slug},t[2]=o.id,t[3]=o.slug,t[4]=b):b=t[4];const a=L(b);let E;t[5]!==m||t[6]!==o||t[7]!==a?(E={selfClient:a,org:o,cdConnectionId:m},t[5]=m,t[6]=o,t[7]=a,t[8]=E):E=t[8];const p=Y(E),[O,w]=T.useState(!1),[M,N]=T.useState(null);let y;t[9]!==a?(y={mutationFn:async k=>K(await a.callTool({name:"COMMERCE_DISCOVERY_RUN",arguments:{siteUrl:k}})),retry:!1},t[9]=a,t[10]=y):y=t[10];const c=A(y);let P;t[11]!==l||t[12]!==c||t[13]!==p||t[14]!==r?(P=async()=>{if(N(null),p)try{await c.mutateAsync(p)}catch{N(r("routes.commerceOnboarding.connectModal.somethingWentWrong"));return}l()},t[11]=l,t[12]=c,t[13]=p,t[14]=r,t[15]=P):P=t[15];const _=P;let u;t[16]!==M?(u=M?i.jsx("p",{className:"text-sm leading-5 text-destructive",role:"alert",children:M}):null,t[16]=M,t[17]=u):u=t[17];let f;t[18]!==c.isPending||t[19]!==r?(f=c.isPending?r("routes.commerceOnboarding.connectSourcesTab.refreshing"):r("routes.commerceOnboarding.connectSourcesTab.refresh"),t[18]=c.isPending,t[19]=r,t[20]=f):f=t[20];let d;t[21]!==_?(d=()=>{_()},t[21]=_,t[22]=d):d=t[22];let x;t[23]!==O||t[24]!==c.isPending||t[25]!==f||t[26]!==d?(x=i.jsx(H,{ready:O,pending:c.isPending,label:f,onClick:d}),t[23]=O,t[24]=c.isPending,t[25]=f,t[26]=d,t[27]=x):x=t[27];let C;t[28]!==u||t[29]!==x?(C=i.jsxs(i.Fragment,{children:[u,x]}),t[28]=u,t[29]=x,t[30]=C):C=t[30];let g;t[31]!==r?(g=r("routes.commerceOnboarding.connectSourcesTab.title"),t[31]=r,t[32]=g):g=t[32];let h;t[33]!==g?(h=i.jsx("h2",{className:"text-xl font-medium leading-tight text-foreground",children:g}),t[33]=g,t[34]=h):h=t[34];let S;t[35]!==m||t[36]!==o||t[37]!==p?(S=i.jsx(V,{org:o,cdConnectionId:m,siteUrl:p,onReadinessChange:w}),t[35]=m,t[36]=o,t[37]=p,t[38]=S):S=t[38];let j;t[39]!==h||t[40]!==S?(j=i.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 overflow-y-auto",children:[h,S]}),t[39]=h,t[40]=S,t[41]=j):j=t[41];let R;return t[42]!==n||t[43]!==C||t[44]!==j?(R=i.jsx(v,{onClose:n,footer:C,children:j}),t[42]=n,t[43]=C,t[44]=j,t[45]=R):R=t[45],R}function ye(){const e=I.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(G,{}),e[0]=t):t=e[0],t}export{ye as default};
@@ -0,0 +1 @@
1
+ import{c as x,j as e,as as b,u as g}from"./index-B3yBTWEk.js";import{F as v,H as j}from"./file-share-button-Cef5f1VZ.js";import{u as S,b as k,e as w}from"./use-org-fs-BEoPvlnI.js";import{S as y}from"./settings-tab-Ru2atFmZ.js";import{a as M}from"./thread-route-CKY-dKC0.js";import"./dropdown-menu-BxKUbUkE.js";import"./Check-BWpBE9uf.js";import"./ChevronRight-DzRB-rdO.js";import"./DotsVertical-CucJCL9y.js";import"./Download01-BC2rKbuh.js";import"./Printer-fz_zwxfT.js";import"./LinkExternal01-Cp7uxK1i.js";import"./dialog-otnvxVN0.js";import"./input-HFOrJf5B.js";import"./popover-DIqZ2IKF.js";import"./Copy01-DayLu0dF.js";import"./Globe01-SLAc63wC.js";import"./Key01-CKcg8G1v.js";import"./Share07-D_kiq5Fr.js";import"./extract-connection-data-CqGCTPdZ.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./use-mcp-client-DsJzBus3.js";import"./auth-RjDDTUUT.js";import"./connection-OmoYXqZk.js";import"./chat-context-CXknhaDs.js";import"./use-panel-navigate-Byvx0cbx.js";import"./use-project-scope-B2cuvtTy.js";import"./use-virtual-mcp-Bk09OpEg.js";import"./github-repo-C0igpkr9.js";import"./autosend-HdosN86x.js";import"./thread-intent-DVKldCEq.js";import"./slugify-CEUa2lfQ.js";import"./hooks-k1OxvonE.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-CfYFArSW.js";import"./task-board-CXsHf2Zn.js";import"./schema-BQbhQoxs.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-qnkcjapR.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DYRVevWg.js";import"./use-organization-settings-BAVHurZk.js";import"./build-improve-prompt-doc-Dn9xs_5X.js";import"./avatar-DcDvs8Zz.js";import"./User01-BJoNdkjl.js";import"./empty-state-Cz1DkYZE.js";import"./shell-layout-1dFmVwYI.js";import"./Users03-CRtXqa1Q.js";import"./SearchLg-FC9suxna.js";import"./agent-icon-DrlilhFJ.js";import"./AlertCircle-EniJtD8E.js";import"./Tool01-BnKd95Y1.js";import"./ArrowUp-C0eratGp.js";import"./ArrowLeft-Clu1mSdY.js";import"./Tool02-C_xRWqQk.js";import"./ArrowRight-Cu8UuHNR.js";import"./TrendUp01-PFzYDizC.js";import"./ZoomOut-BXPGwF_O.js";import"./CheckCircle-cinYKmPU.js";import"./ChevronUp-DGrguvGW.js";import"./ChevronSelectorVertical-BiIbFU31.js";import"./UserSquare-CCDsU001.js";import"./CreditCard01-4OsjIT5f.js";import"./Database01-2gG_9E30.js";import"./Settings02-D2oiGU4q.js";import"./Eye-dnrP5DkM.js";import"./File02-BhckHV8N.js";import"./GitBranch01-BBn4dN5f.js";import"./SwitchHorizontal01-CxlKjkIX.js";import"./HardDrive-FlnOYA_8.js";import"./Image01-BrHSH-Vi.js";import"./Link01-3t9JrUgl.js";import"./Monitor01-BUruMK2r.js";import"./Sun-nKOZMh9n.js";import"./Package-CdfyZYxN.js";import"./Palette-CglyAOTg.js";import"./Play-rnw1eV52.js";import"./Plus-Bxp02MWl.js";import"./SearchMd-DRRptSJN.js";import"./Shield01-CjyLhqlS.js";import"./Stars01-COChWymR.js";import"./Trash01-DqUm2RRh.js";import"./Upload01-CqWnAR1-.js";import"./Users01-DSQPwtP5.js";import"./XCircle-9Cb0khfg.js";import"./XClose-Cw4b4Uag.js";import"./Zap-ChVc0p76.js";import"./download-app-dialog-BqNRF4Sn.js";import"./anchors-yqDzZN4K.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-palette-store-BwHku_Zt.js";import"./command-B6LMVdkQ.js";import"./index-w1d_dmEj.js";import"./integration-icon-BPwWRlNG.js";import"./project-icon-Bl3bXnhv.js";import"./required-auth-layout-BEc3NUsQ.js";import"./use-org-sso-CdSz0xa8.js";import"./use-org-notice-CXYMfMUq.js";import"./use-date-fns-locale-DYzMvrWB.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-connection-DCLPda2h.js";import"./mcp-oauth-D6isOO_s.js";import"./alert-dialog-BE9ltHtr.js";import"./textarea-CneoU2lJ.js";import"./use-debounced-autosave-BRAVEUZc.js";import"./scroll-area-BgZjjLM3.js";import"./select-Bc5UZb4n.js";import"./add-connection-dialog-s1GRGQ63.js";import"./collection-search-CzGq8Uso.js";import"./connection-card-Cy-GdKQl.js";import"./use-registry-connections-DikbDR8w.js";import"./useInfiniteQuery-GKCP1c_7.js";import"./infiniteQueryObserver-DgAoAIrN.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-s7gtDrb4.js";import"./form-KjPevg0A.js";import"./label-CqlSWrLn.js";import"./connection-form-helpers-D3hdN_Pk.js";import"./authenticate-and-persist-oauth-DXlrPDSv.js";import"./collection-tabs-BLgGMB42.js";import"./badge-DJpaBl8u.js";import"./use-infinite-scroll-DkLPxlOu.js";import"./useSuspenseInfiniteQuery-DmEiIBI4.js";import"./file-type-icon-DGllFDOf.js";import"./checkbox-D8Ab2Vb-.js";import"./search-input-uXtJ6IU8.js";import"./use-mcp-auth-status-CPh3Lmzs.js";import"./types-Csu6Ims7.js";import"./use-mcp-tools-Dc3F6Krl.js";import"./use-mcp-prompts-i0LZ2nQA.js";import"./utils-CVEq3hMx.js";import"./switch-CJ5Ir2Zx.js";import"./use-project-native-view-presence-D-AyEulW.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-BwD1CaWo.js";import"./site-slug-uya6Wp4-.js";import"./optimistic-project-sidebar-views-yrtk59Mo.js";import"./breadcrumb-BOAVRiAa.js";import"./virtual-mcp-DGQbDtgM.js";import"./repository-import-picker-Bg_h8YsG.js";import"./use-navigate-to-agent-Bbq0oQ0Y.js";import"./repository-picker-BDWGy2xY.js";import"./github-icon-D51q_6S8.js";import"./use-debounced-value-Cud3o3Fq.js";import"./sandbox-url-D3mC8qhT.js";import"./use-secrets-D-c1ciPZ.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./serial-task-queue-CGOeQgpr.js";const h="home";function P(m){const t=x.c(5),{label:r}=m;let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p=e.jsx(b,{className:"aspect-video w-2/3 max-w-xl"}),t[0]=p):p=t[0];let o;t[1]!==r?(o=r&&e.jsx("p",{className:"text-xs text-muted-foreground",children:r}),t[1]=r,t[2]=o):o=t[2];let i;return t[3]!==o?(i=e.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-3 bg-background",children:[p,o]}),t[3]=o,t[4]=i):i=t[4],i}function _(m){const t=x.c(15),{path:r}=m;let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p={refetchIntervalWhenAbsent:2e3},t[0]=p):p=t[0];const o=S(h,r,p),i=k(h)(r);if(o.isPending||!o.data){const d=!o.isPending&&!o.data?"Waiting for the deck to sync…":void 0;let n;return t[1]!==d?(n=e.jsx(P,{label:d}),t[1]=d,t[2]=n):n=t[2],n}let s;t[3]!==o.data?(s=w(o.data),t[3]=o.data,t[4]=s):s=t[4];const c=o.data.shareMode??"private",f=o.data.effectivePublic??!1,u=window.location.origin+i;let a;t[5]!==r||t[6]!==c||t[7]!==f||t[8]!==u?(a=e.jsx(v,{volume:h,path:r,shareMode:c,effectivePublic:f,url:u}),t[5]=r,t[6]=c,t[7]=f,t[8]=u,t[9]=a):a=t[9];let l;return t[10]!==r||t[11]!==i||t[12]!==s||t[13]!==a?(l=e.jsx(j,{readUrl:i,marker:s,title:r,savePath:r,trailing:a}),t[10]=r,t[11]=i,t[12]=s,t[13]=a,t[14]=l):l=t[14],l}function gr(){const m=x.c(4);let t;m[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},m[0]=t):t=m[0];const r=g(t),p=M(),o="path"in r&&typeof r.path=="string"?r.path:void 0;let i;return m[1]!==o||m[2]!==p?(i=o?e.jsx(_,{path:o},o):e.jsx(y,{virtualMcpId:p}),m[1]=o,m[2]=p,m[3]=i):i=m[3],i}export{gr as default};