decocms 4.372.1 → 4.372.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (369) hide show
  1. package/dist/client/assets/{AlertCircle-DbwtWnTP.js → AlertCircle-CMjsP_Tk.js} +1 -1
  2. package/dist/client/assets/{AreaChart-tdrxZdfF.js → AreaChart-Bh_grNQZ.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-CyH6aWpS.js → ArrowLeft-CjYy5Nhj.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-Bv0iX4wy.js → ArrowRight-CLncCNat.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-Scf6R8DX.js → ArrowUp-Cii1LHW7.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-D1MxLL7k.js → CartesianChart-CD-5y_pX.js} +1 -1
  7. package/dist/client/assets/{Check-BZE0WrNL.js → Check-B3RSsr_D.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-BKb1RVrA.js → CheckCircle-DHXQFnpK.js} +1 -1
  9. package/dist/client/assets/{ChevronRight-DNrwFBnC.js → ChevronRight-USKkhEpL.js} +1 -1
  10. package/dist/client/assets/{ChevronSelectorVertical-oXn0cTzk.js → ChevronSelectorVertical-DpRb2z1l.js} +1 -1
  11. package/dist/client/assets/{ChevronUp-D5_IWEtB.js → ChevronUp-DiYhGG4T.js} +1 -1
  12. package/dist/client/assets/{Copy01-DTHuBaTA.js → Copy01-nMxlBfeT.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-CwX6pA0M.js → CreditCard01-CWXVH3ZM.js} +1 -1
  14. package/dist/client/assets/{Database01-RGlwXHSd.js → Database01-C0YJpjc3.js} +1 -1
  15. package/dist/client/assets/{DotsVertical-DE9eZKrJ.js → DotsVertical-CsjwfYzf.js} +1 -1
  16. package/dist/client/assets/{Download01-qX3hmvr5.js → Download01-BRrSA3Yx.js} +1 -1
  17. package/dist/client/assets/{ErrorBarContext-9sp0Dc4M.js → ErrorBarContext-fXvhmekg.js} +1 -1
  18. package/dist/client/assets/{Eye-DXUjft5i.js → Eye-Dyg2WPG4.js} +1 -1
  19. package/dist/client/assets/{File02-g-xJPix_.js → File02-BvR-HYxK.js} +1 -1
  20. package/dist/client/assets/{GitBranch01-ddoPQdPH.js → GitBranch01-rWb2SJK9.js} +1 -1
  21. package/dist/client/assets/{Globe01-DIy8wXF6.js → Globe01-D6FaaFR2.js} +1 -1
  22. package/dist/client/assets/{HardDrive-DU_z1AQw.js → HardDrive-DNTPLPT4.js} +1 -1
  23. package/dist/client/assets/{Image01-DfaxHjlV.js → Image01-CxnjAzbb.js} +1 -1
  24. package/dist/client/assets/{Key01-mqjfsZRe.js → Key01-CIXwHMRo.js} +1 -1
  25. package/dist/client/assets/{Line-D02_6GXf.js → Line-YO4Ozgbt.js} +1 -1
  26. package/dist/client/assets/{Link01-C656VtHx.js → Link01-C0FvgZZB.js} +1 -1
  27. package/dist/client/assets/{LinkExternal01-BkRUjBAn.js → LinkExternal01-AWlhN5o7.js} +1 -1
  28. package/dist/client/assets/{MessageCircle01-CgotMmLL.js → MessageCircle01-DBcg2aiD.js} +1 -1
  29. package/dist/client/assets/{Monitor01-CQ6Zk1oP.js → Monitor01-Ccs1gh2Z.js} +1 -1
  30. package/dist/client/assets/{Package-t6euxYcP.js → Package-nTbucmaQ.js} +1 -1
  31. package/dist/client/assets/{Palette-oECS8j3l.js → Palette-DSdn1Xis.js} +1 -1
  32. package/dist/client/assets/{Play-DQgzDnaW.js → Play-lMuWOObF.js} +1 -1
  33. package/dist/client/assets/{Plus-D2HOi_DD.js → Plus-CVauOqLT.js} +1 -1
  34. package/dist/client/assets/{Printer-BpZBiqyG.js → Printer-CvyxF9Jo.js} +1 -1
  35. package/dist/client/assets/{SearchLg-DbX4T5E-.js → SearchLg-BrrPVuXr.js} +1 -1
  36. package/dist/client/assets/{SearchMd-FDCJM3CR.js → SearchMd-C45D2PMI.js} +1 -1
  37. package/dist/client/assets/{Sector-BW9tyobX.js → Sector-9mXbxJ9i.js} +1 -1
  38. package/dist/client/assets/{Settings02-CFcKewXh.js → Settings02-Cyf85ea0.js} +1 -1
  39. package/dist/client/assets/{Share07-CxuHcmnM.js → Share07-wC47qn2E.js} +1 -1
  40. package/dist/client/assets/{Shield01-HrKG6yUn.js → Shield01-CqB4I7qm.js} +1 -1
  41. package/dist/client/assets/{Stars01-B_nM3FYf.js → Stars01-oAh9h5b5.js} +1 -1
  42. package/dist/client/assets/{Sun-SBoG-e9B.js → Sun-0Ied-kyZ.js} +1 -1
  43. package/dist/client/assets/{SwitchHorizontal01-hHr6GOmU.js → SwitchHorizontal01-DpXsFGyJ.js} +1 -1
  44. package/dist/client/assets/{Tool01-DHi_Z7zo.js → Tool01-DouqPjim.js} +1 -1
  45. package/dist/client/assets/{Tool02-JY0gm8cg.js → Tool02-CATStXCy.js} +1 -1
  46. package/dist/client/assets/{Trash01-C6bziN5X.js → Trash01-nl-t4IoV.js} +1 -1
  47. package/dist/client/assets/{TrendUp01-Bkdgpfn7.js → TrendUp01-BFAEMx9E.js} +1 -1
  48. package/dist/client/assets/{Upload01-DC2spim9.js → Upload01-B4Fqdkae.js} +1 -1
  49. package/dist/client/assets/{User01-BbOpA84p.js → User01-ClMaVCaJ.js} +1 -1
  50. package/dist/client/assets/{UserSquare-qgzToKNd.js → UserSquare-B2lKdt4w.js} +1 -1
  51. package/dist/client/assets/{Users01-BOsDT0Jv.js → Users01-BFhxJVhO.js} +1 -1
  52. package/dist/client/assets/{Users03-BP-0DNhp.js → Users03-Y0Jco4zL.js} +1 -1
  53. package/dist/client/assets/{X-Bzh3NI3m.js → X-CFCE4a-Q.js} +1 -1
  54. package/dist/client/assets/{XCircle-CuK2q_XU.js → XCircle-CleKT0Id.js} +1 -1
  55. package/dist/client/assets/{XClose-Cvyz3reC.js → XClose-BgzK-Dwz.js} +1 -1
  56. package/dist/client/assets/{Zap-DXNovEva.js → Zap-B6zkqKWB.js} +1 -1
  57. package/dist/client/assets/{ZoomOut-BRjMa-04.js → ZoomOut-BPxprY2s.js} +1 -1
  58. package/dist/client/assets/{access-gate-NMf18NsK.js → access-gate-Ds4n25mC.js} +1 -1
  59. package/dist/client/assets/{add-connection-dialog-GfufFuLz.js → add-connection-dialog-DZjTm9W3.js} +1 -1
  60. package/dist/client/assets/{agent-analytics-DKvARLL3.js → agent-analytics-DmvdLg8B.js} +1 -1
  61. package/dist/client/assets/agent-app-BvmFdS4C.js +1 -0
  62. package/dist/client/assets/{agent-assets-DePuap3v.js → agent-assets-czUGY90q.js} +1 -1
  63. package/dist/client/assets/{agent-automation-NvLs9ax2.js → agent-automation-C5Kr5Oj3.js} +1 -1
  64. package/dist/client/assets/{agent-automations-BV3f-ekl.js → agent-automations-D-3-Opoc.js} +1 -1
  65. package/dist/client/assets/{agent-connect-sources-DtqgR_Ib.js → agent-connect-sources-CjhmYssY.js} +1 -1
  66. package/dist/client/assets/agent-deck-BC5MWVm-.js +1 -0
  67. package/dist/client/assets/{agent-e2e-CHL03ziT.js → agent-e2e-DkL4Ltr6.js} +1 -1
  68. package/dist/client/assets/{agent-experiments-CWfra8gc.js → agent-experiments--rXT-2aB.js} +1 -1
  69. package/dist/client/assets/agent-file-C3XkHLMm.js +1 -0
  70. package/dist/client/assets/{agent-git-CU-dqFim.js → agent-git-D4IYczGa.js} +1 -1
  71. package/dist/client/assets/{agent-hosting-x-9xTx9o.js → agent-hosting-DaIfm8Hu.js} +1 -1
  72. package/dist/client/assets/{agent-icon-BD4DM2Lv.js → agent-icon-CczrFEe7.js} +1 -1
  73. package/dist/client/assets/agent-library-file-Dji653pU.js +1 -0
  74. package/dist/client/assets/{agent-monitor-CpVDwlgY.js → agent-monitor-C-HIyaF_.js} +1 -1
  75. package/dist/client/assets/{agent-overview-SQDEg6Zv.js → agent-overview-cm15sxNU.js} +1 -1
  76. package/dist/client/assets/agent-settings-XmhY1FOi.js +1 -0
  77. package/dist/client/assets/{agent-site-editor-BXrb3i4T.js → agent-site-editor-DJSdtoNU.js} +1 -1
  78. package/dist/client/assets/agent-site-editor-code-_Tz57RqE.js +2 -0
  79. package/dist/client/assets/{agent-site-editor-content-C3uy2bqp.js → agent-site-editor-content-DOAcxz0t.js} +2 -2
  80. package/dist/client/assets/{agent-site-editor-preview-BB-KqzfI.js → agent-site-editor-preview-mg5Q6hoW.js} +3 -3
  81. package/dist/client/assets/agent-view-ClMILC98.js +1 -0
  82. package/dist/client/assets/{agent-view-guard-q_9RifUL.js → agent-view-guard-DHJpzCVR.js} +1 -1
  83. package/dist/client/assets/{agents-list-BCgsEzHh.js → agents-list-rKFF5b3o.js} +1 -1
  84. package/dist/client/assets/{ai-providers-DGgtE9F7.js → ai-providers-jxGd6MbV.js} +1 -1
  85. package/dist/client/assets/{alert-Cnsh1M35.js → alert-U2IStW1f.js} +1 -1
  86. package/dist/client/assets/{alert-dialog-Bi9Cy1y8.js → alert-dialog-BI-B_8hq.js} +1 -1
  87. package/dist/client/assets/{api-keys-BlYGdiam.js → api-keys-AIfL76r6.js} +1 -1
  88. package/dist/client/assets/api-keys-B6ry5Bc6.js +1 -0
  89. package/dist/client/assets/app-editor-BZKFeBmU.js +1 -0
  90. package/dist/client/assets/{asset-utils-syVIRo9d.js → asset-utils-DhbLEVKo.js} +1 -1
  91. package/dist/client/assets/{auth-D-2jYpOE.js → auth-DhzAq_9m.js} +1 -1
  92. package/dist/client/assets/{auth-catchall-C3GEml6h.js → auth-catchall-Dar7OygY.js} +1 -1
  93. package/dist/client/assets/{auth-entry-CJhH7CHs.js → auth-entry-CwWjlqGu.js} +1 -1
  94. package/dist/client/assets/{auth-split-layout-B3xBkE6i.js → auth-split-layout-DLFqjvPt.js} +1 -1
  95. package/dist/client/assets/{authenticate-and-persist-oauth-2yRhuiER.js → authenticate-and-persist-oauth-DkJ4g-X5.js} +1 -1
  96. package/dist/client/assets/{automation-list-row-DVPV4sOa.js → automation-list-row-Btr-Kty6.js} +1 -1
  97. package/dist/client/assets/{automation-runs-DnDgp3GT.js → automation-runs-CnOOOwZJ.js} +1 -1
  98. package/dist/client/assets/automations-CtLmB1Eo.js +1 -0
  99. package/dist/client/assets/{autosend-D-BN-cv5.js → autosend-BberXmli.js} +1 -1
  100. package/dist/client/assets/{avatar-Duu5Gg02.js → avatar-C9HiP4eS.js} +1 -1
  101. package/dist/client/assets/{badge-BNBGXxmC.js → badge-Bu51Hlti.js} +1 -1
  102. package/dist/client/assets/{block-document-BT-7XjFG.js → block-document-BLCekKXO.js} +1 -1
  103. package/dist/client/assets/{blocks-preview-workspace-context-BvM2Da4n.js → blocks-preview-workspace-context-Bwmvvd4S.js} +1 -1
  104. package/dist/client/assets/{breadcrumb-sWWxibcS.js → breadcrumb-Dhdru7Jh.js} +1 -1
  105. package/dist/client/assets/{buckets-Biauz5yB.js → buckets-BndbOAGO.js} +1 -1
  106. package/dist/client/assets/{build-improve-prompt-doc-RalyChXZ.js → build-improve-prompt-doc-Cedp3vV1.js} +1 -1
  107. package/dist/client/assets/{bulk-category-panel-CODUgRdO.js → bulk-category-panel-D3c_qJDk.js} +1 -1
  108. package/dist/client/assets/{calendar-Dyov14Y_.js → calendar-DIQx67oO.js} +1 -1
  109. package/dist/client/assets/{capability-load-error-L3ivCxmO.js → capability-load-error-CJMvYDf4.js} +1 -1
  110. package/dist/client/assets/{cards-ojW-Mo-n.js → cards-BVw8sRdW.js} +1 -1
  111. package/dist/client/assets/category-editor-C7sRrVfl.js +1 -0
  112. package/dist/client/assets/{chart-Con9xnVz.js → chart-8nXuVw9P.js} +1 -1
  113. package/dist/client/assets/{chat-context-BBVkwd3p.js → chat-context-tZCX_cqt.js} +1 -1
  114. package/dist/client/assets/{chat-draft-bAtYgASI.js → chat-draft-BCeqPSxA.js} +1 -1
  115. package/dist/client/assets/{checkbox-Dkejdmst.js → checkbox-jLf7fBuW.js} +1 -1
  116. package/dist/client/assets/{choose-editor-BKF6XAA7.js → choose-editor-Cbu3-nVC.js} +1 -1
  117. package/dist/client/assets/{cli-auth-success-BUl2RZMr.js → cli-auth-success-D39z_FO3.js} +1 -1
  118. package/dist/client/assets/{client-icons-DLMNndDc.js → client-icons-DpcP1bht.js} +1 -1
  119. package/dist/client/assets/{collapsible-n44mVpiB.js → collapsible-CTgXdVQa.js} +1 -1
  120. package/dist/client/assets/{collection-detail-B7MXGdLU.js → collection-detail-BF7WM7Gn.js} +1 -1
  121. package/dist/client/assets/{collection-display-button-C3iXY6zC.js → collection-display-button-C-4xB6xx.js} +1 -1
  122. package/dist/client/assets/{collection-search-CeA9TK20.js → collection-search-J9Bt25gS.js} +1 -1
  123. package/dist/client/assets/{collection-table-wrapper-SWoJua5h.js → collection-table-wrapper-DBeauaNS.js} +1 -1
  124. package/dist/client/assets/{collection-tabs-3kW0qDG6.js → collection-tabs-CrXIJeNf.js} +1 -1
  125. package/dist/client/assets/{combobox-Px3Uvt7K.js → combobox-BHrqHmge.js} +1 -1
  126. package/dist/client/assets/{command-D2fiEFer.js → command-B-XD29Nx.js} +1 -1
  127. package/dist/client/assets/{command-palette-store-LVCQ6fRv.js → command-palette-store-DK-56E2K.js} +1 -1
  128. package/dist/client/assets/{companion-mcps-section-BcoKVpmX.js → companion-mcps-section-xmRpNJBK.js} +1 -1
  129. package/dist/client/assets/{connect-DlipH902.js → connect-D4qCE3TM.js} +1 -1
  130. package/dist/client/assets/{connect-layout-BQblJmFQ.js → connect-layout-DGO84ImO.js} +1 -1
  131. package/dist/client/assets/{connection-BfiO32wM.js → connection-DD0omVHZ.js} +1 -1
  132. package/dist/client/assets/{connection-card-83VJQMov.js → connection-card-fcMCwbTh.js} +1 -1
  133. package/dist/client/assets/{connection-detail-j_CvFKhd.js → connection-detail-DS015J4e.js} +1 -1
  134. package/dist/client/assets/{connection-form-helpers-Ms_1nBbP.js → connection-form-helpers-CHlcdgAK.js} +1 -1
  135. package/dist/client/assets/{connections-CERSp27f.js → connections-C98FMYyY.js} +1 -1
  136. package/dist/client/assets/{create-organization-dialog-D0myNU26.js → create-organization-dialog-1mI4Ad1B.js} +1 -1
  137. package/dist/client/assets/{decofile-api-BVqR93jw.js → decofile-api-BNWbEMR6.js} +1 -1
  138. package/dist/client/assets/{decopilot-72HlEf1U.js → decopilot-BvepxP_-.js} +1 -1
  139. package/dist/client/assets/{dialog-DbzCN1O8.js → dialog-llvhXw2o.js} +1 -1
  140. package/dist/client/assets/{discover-D5kdY2vL.js → discover-DNPHmIfF.js} +1 -1
  141. package/dist/client/assets/{domain-settings-uVxQd7aQ.js → domain-settings-CXxEmIjB.js} +1 -1
  142. package/dist/client/assets/{download-app-dialog-Bsig7tOs.js → download-app-dialog-D_4eQbbs.js} +1 -1
  143. package/dist/client/assets/{drawer-CBdcJytm.js → drawer-BIjkXMV3.js} +1 -1
  144. package/dist/client/assets/{dropdown-menu-Dd8nakK9.js → dropdown-menu-C5iafa8S.js} +1 -1
  145. package/dist/client/assets/{editor-CpBx0ZCm.js → editor-D4Ls62vg.js} +1 -1
  146. package/dist/client/assets/{empty-state-ClEXvr10.js → empty-state-BdiOfgle.js} +1 -1
  147. package/dist/client/assets/{empty-state-BIcQyeij.js → empty-state-CyICQznD.js} +1 -1
  148. package/dist/client/assets/{extract-connection-data-CM8c_Wvw.js → extract-connection-data-Dbm_cKaX.js} +1 -1
  149. package/dist/client/assets/{feature-gate-BURkiaEd.js → feature-gate-Bp7Cydio.js} +1 -1
  150. package/dist/client/assets/{feature-paywall-BOwjYKin.js → feature-paywall-DEy2mpV2.js} +1 -1
  151. package/dist/client/assets/{file-explorer-BgbzlNyO.js → file-explorer-Bs7B2-rr.js} +1 -1
  152. package/dist/client/assets/{file-preview-BOFvyeTK.js → file-preview-CARebwHJ.js} +1 -1
  153. package/dist/client/assets/{file-share-button-Doj91OJi.js → file-share-button-Dk1ugrdV.js} +1 -1
  154. package/dist/client/assets/{file-type-icon-C37FwvPU.js → file-type-icon-C9Qn36v4.js} +1 -1
  155. package/dist/client/assets/{folder-icon-Dox5xEXV.js → folder-icon-BLBZBD_a.js} +1 -1
  156. package/dist/client/assets/{form-B7dtslOD.js → form-CSXgIHLz.js} +1 -1
  157. package/dist/client/assets/{gateway-client-CFIpVRaR.js → gateway-client-BuiOykcN.js} +1 -1
  158. package/dist/client/assets/{general-BcnikUr3.js → general-BYFfG0fF.js} +1 -1
  159. package/dist/client/assets/{github-icon-BcrkxW36.js → github-icon-huXDOAgf.js} +1 -1
  160. package/dist/client/assets/{home-MrzklFP0.js → home-DTaaCW3K.js} +1 -1
  161. package/dist/client/assets/{hooks-D09Ti1PG.js → hooks-BoX5BC-f.js} +1 -1
  162. package/dist/client/assets/{hooks-CkL4R3Tj.js → hooks-DZOMRp7D.js} +1 -1
  163. package/dist/client/assets/{index-D-XXgZ8p.js → index-2eKztu7k.js} +1 -1
  164. package/dist/client/assets/{index-KOGfrBZR.js → index-2gtoysbs.js} +1 -1
  165. package/dist/client/assets/{index-Cyoz5tz5.js → index-BD213WLU.js} +1 -1
  166. package/dist/client/assets/{index-DZOe0ODJ.js → index-BH7uCYoT.js} +1 -1
  167. package/dist/client/assets/{index-D68Q2TT2.js → index-BWpNlf6e.js} +1 -1
  168. package/dist/client/assets/{index-CULK6hDm.js → index-Bb-Re5q8.js} +1 -1
  169. package/dist/client/assets/{index-G9Ugx8pT.js → index-CSd_k8Np.js} +1 -1
  170. package/dist/client/assets/{index-NrvdR10n.js → index-CiMUXLco.js} +1 -1
  171. package/dist/client/assets/{index-C9w15wdL.js → index-D4RUT3q0.js} +1 -1
  172. package/dist/client/assets/{index-B46P4HkV.js → index-DWw5wi2G.js} +1 -1
  173. package/dist/client/assets/{index-BFjKFLU3.js → index-D_X-LIyA.js} +1 -1
  174. package/dist/client/assets/{index-z4bKt11m.js → index-Dc7hzqoi.js} +2 -2
  175. package/dist/client/assets/{index-CuiP-22D.js → index-DiULBiX9.js} +1 -1
  176. package/dist/client/assets/{index-DLxUQ-f9.js → index-DqT4mG5l.js} +1 -1
  177. package/dist/client/assets/{index-redirect-AuU1lkcv.js → index-redirect-BQTLrDGT.js} +1 -1
  178. package/dist/client/assets/{index-BwuwoN1w.js → index-tj4CWdxr.js} +1 -1
  179. package/dist/client/assets/{infiniteQueryObserver-BjcfJE2O.js → infiniteQueryObserver-CjWlcBHD.js} +1 -1
  180. package/dist/client/assets/{infra-billing-Blv1R6xm.js → infra-billing-D6jrbNxA.js} +1 -1
  181. package/dist/client/assets/{input-C7XH8Uj_.js → input-DXlaTX4w.js} +1 -1
  182. package/dist/client/assets/{input-I71U33T1.js → input-D_FfvHr0.js} +1 -1
  183. package/dist/client/assets/{input-CSQboV8k.js → input-uIV5S_EX.js} +1 -1
  184. package/dist/client/assets/{integration-icon-DOHTaQ6D.js → integration-icon-BeEdjsn9.js} +1 -1
  185. package/dist/client/assets/{label-8juC5J-g.js → label-BMxIRiEr.js} +1 -1
  186. package/dist/client/assets/{last-preview-page-C8M_ayBL.js → last-preview-page-B_H0ubHa.js} +1 -1
  187. package/dist/client/assets/{layout-fdXIUmGR.js → layout-Dli4i2a0.js} +1 -1
  188. package/dist/client/assets/{legacy-agents-deep-CIQ2cOBs.js → legacy-agents-deep-CoiLV3QJ.js} +1 -1
  189. package/dist/client/assets/{legacy-main-redirect-DdrzU7Xj.js → legacy-main-redirect-BZ4nzqkQ.js} +1 -1
  190. package/dist/client/assets/{library-DyrbEVfm.js → library-Dste3SFA.js} +1 -1
  191. package/dist/client/assets/{login-BhC3su0G.js → login-C4Dx9xMO.js} +1 -1
  192. package/dist/client/assets/{markdown-BhLIBmBv.js → markdown-DGWjAeXL.js} +1 -1
  193. package/dist/client/assets/{mcp-app-renderer-DjwQ0S-h.js → mcp-app-renderer-BTjC7Gse.js} +1 -1
  194. package/dist/client/assets/{mcp-oauth-DiqQlKOx.js → mcp-oauth-C4khbNJJ.js} +1 -1
  195. package/dist/client/assets/{members-PF8wxsqA.js → members-CRtKrUle.js} +1 -1
  196. package/dist/client/assets/{message-templates-BvR8vQvs.js → message-templates-B8kOo0Kk.js} +1 -1
  197. package/dist/client/assets/{mini-report-page-D2etEugE.js → mini-report-page-Ci4cxCz8.js} +1 -1
  198. package/dist/client/assets/{mock-board-jCiKK3gA.js → mock-board-DRa60E6i.js} +3 -3
  199. package/dist/client/assets/{monaco-editor-BHu8MLvz.js → monaco-editor-CMRYkmyb.js} +1 -1
  200. package/dist/client/assets/{monitoring-stats-row-2QEp_Jld.js → monitoring-stats-row-PncjnNwy.js} +1 -1
  201. package/dist/client/assets/{multi-select-DcF09HV8.js → multi-select-DzAZ8Rb8.js} +1 -1
  202. package/dist/client/assets/{mustache-DtVu96DY.js → mustache-CPZS2ebG.js} +1 -1
  203. package/dist/client/assets/{oauth-callback-CwSlt3mo.js → oauth-callback-CETK2WZB.js} +1 -1
  204. package/dist/client/assets/{oauth-callback-ai-provider-Co0a0HMU.js → oauth-callback-ai-provider-DqbbngEF.js} +1 -1
  205. package/dist/client/assets/{onboarding-D-ej0NPt.js → onboarding-B5zAGi2B.js} +1 -1
  206. package/dist/client/assets/{optimistic-project-sidebar-views-yjPJnhEG.js → optimistic-project-sidebar-views-CrZ9OeIk.js} +1 -1
  207. package/dist/client/assets/{org-file-open-context-BgiBbqKQ.js → org-file-open-context-BCUpiY_R.js} +1 -1
  208. package/dist/client/assets/{organization-choice-loyQwhEZ.js → organization-choice-BNulT5zU.js} +1 -1
  209. package/dist/client/assets/{orgs-DkENMfud.js → orgs-B1TBklWZ.js} +1 -1
  210. package/dist/client/assets/{page-seo-form-BBCLz5m0.js → page-seo-form-BrHgBXF1.js} +1 -1
  211. package/dist/client/assets/{pair-B2TMNGEX.js → pair-B46EBBjF.js} +1 -1
  212. package/dist/client/assets/{plan-ladder-C80Qcxkm.js → plan-ladder-B2pv9Y73.js} +1 -1
  213. package/dist/client/assets/{popover-CsEsUqbZ.js → popover-yk_ePqAA.js} +1 -1
  214. package/dist/client/assets/{post-calendar-gswoVxcp.js → post-calendar-Bx8YiCbs.js} +1 -1
  215. package/dist/client/assets/{post-editor-5tYPjO0c.js → post-editor-B1fD7o8C.js} +1 -1
  216. package/dist/client/assets/{preview-content-D5E6-qEP.js → preview-content-CfbsbElk.js} +1 -1
  217. package/dist/client/assets/{preview-dialog-D1qWdONG.js → preview-dialog-CA2C3DS4.js} +1 -1
  218. package/dist/client/assets/{primitives-Dy5hA1_y.js → primitives-JiGRyPkw.js} +1 -1
  219. package/dist/client/assets/{profile-9GEyG1R7.js → profile-CDR0JVtv.js} +1 -1
  220. package/dist/client/assets/{project-app-view-CsjjG0iu.js → project-app-view-8VWdrWMf.js} +1 -1
  221. package/dist/client/assets/{project-feed-CEhr0jA4.js → project-feed-ChJRKxhk.js} +1 -1
  222. package/dist/client/assets/{project-icon-Cw3la58q.js → project-icon-MWmzrrm8.js} +1 -1
  223. package/dist/client/assets/project-reports-D31utlHg.js +1 -0
  224. package/dist/client/assets/project-tasks-D2AAgqxo.js +1 -0
  225. package/dist/client/assets/{prompts-DQaXCBzS.js → prompts-4lILOzK9.js} +1 -1
  226. package/dist/client/assets/record-editor-DPAL8Tq5.js +1 -0
  227. package/dist/client/assets/{redirect-editor-B2uGI7FY.js → redirect-editor-EPs_GX-_.js} +1 -1
  228. package/dist/client/assets/registry-Dw8UrRRZ.js +2 -0
  229. package/dist/client/assets/{registry-layout-tJiz4Tt0.js → registry-layout-CC2lewiS.js} +1 -1
  230. package/dist/client/assets/{reports-DvgXBdzM.js → reports-BpxYdv2_.js} +1 -1
  231. package/dist/client/assets/reports-Ch9UvBcS.js +1 -0
  232. package/dist/client/assets/{reports-onboarding-BLUSVbkd.js → reports-onboarding-Dhm8IBuD.js} +1 -1
  233. package/dist/client/assets/{reports-tab-DSknxHUH.js → reports-tab-BJWrZp37.js} +2 -2
  234. package/dist/client/assets/{repositories-cOMgIGPf.js → repositories-CMIGVJwC.js} +1 -1
  235. package/dist/client/assets/{repository-import-picker-C0YugeGx.js → repository-import-picker-DhVniDI2.js} +1 -1
  236. package/dist/client/assets/{repository-picker-BaqWNwxf.js → repository-picker-BkoSI-jm.js} +1 -1
  237. package/dist/client/assets/{require-capability-CjU7EXPP.js → require-capability-CmtOZnXt.js} +1 -1
  238. package/dist/client/assets/{required-auth-layout-WkX8CtfT.js → required-auth-layout-RoMNnMPO.js} +1 -1
  239. package/dist/client/assets/{reset-password-FnA2kczZ.js → reset-password-BeUL8IgX.js} +1 -1
  240. package/dist/client/assets/{resizable-7umHaFcH.js → resizable-Bt7dvMCc.js} +1 -1
  241. package/dist/client/assets/{review-settings-BHAkNdHq.js → review-settings-Cx_Yzx40.js} +1 -1
  242. package/dist/client/assets/{rich-text-link-control-DgGIjR0I.js → rich-text-link-control-CHsxXHIo.js} +1 -1
  243. package/dist/client/assets/{roles-iNTzpIoS.js → roles-BNleKwt9.js} +1 -1
  244. package/dist/client/assets/{route-BdFq2Icl.js → route-CHqG9ihd.js} +1 -1
  245. package/dist/client/assets/{route-DQ3O_pQ7.js → route-DqJoK5dW.js} +1 -1
  246. package/dist/client/assets/{route-D2mgsDfh.js → route-x8jgkj5T.js} +1 -1
  247. package/dist/client/assets/{runnable-block-editor-CCXhy-vO.js → runnable-block-editor-xmOnaiFL.js} +1 -1
  248. package/dist/client/assets/{sandbox-lifecycle-context-DL9kkwoa.js → sandbox-lifecycle-context-C7VKOJoV.js} +1 -1
  249. package/dist/client/assets/{schema-D0xfowSf.js → schema-1zAO-l7e.js} +1 -1
  250. package/dist/client/assets/{scroll-area-BqCCUXvj.js → scroll-area-C-wtbVS1.js} +1 -1
  251. package/dist/client/assets/{search-input-DpLbMQRj.js → search-input-Pobww52G.js} +1 -1
  252. package/dist/client/assets/{secrets-B9E8fieV.js → secrets-BF5nuoR4.js} +1 -1
  253. package/dist/client/assets/{sections-editor-D24EQfD8.js → sections-editor-B1LpXw4X.js} +1 -1
  254. package/dist/client/assets/{select-cIekAVlM.js → select-BkKPcZFe.js} +1 -1
  255. package/dist/client/assets/{select-model-DcwphIdD.js → select-model-DPv-zVVj.js} +1 -1
  256. package/dist/client/assets/{seo-editor-BRYLT6tF.js → seo-editor-9G7mQFJ5.js} +1 -1
  257. package/dist/client/assets/{settings-tab-DKZf7OJg.js → settings-tab-D1V5Uszb.js} +1 -1
  258. package/dist/client/assets/{sheet-DhNzwMUj.js → sheet-i72Qx7sL.js} +1 -1
  259. package/dist/client/assets/{shell-layout-DMJSwXH6.js → shell-layout-Ce0aCJuX.js} +1 -1
  260. package/dist/client/assets/{sidebar-BCim0GYP.js → sidebar-C5KRz1Pj.js} +1 -1
  261. package/dist/client/assets/{skill-preview-eH_MzYft.js → skill-preview-gfYVdSdM.js} +1 -1
  262. package/dist/client/assets/{skills-BtiwGp2Q.js → skills-CgTiBPyO.js} +1 -1
  263. package/dist/client/assets/{sso-BOpSC7cb.js → sso-BK-aRT5P.js} +1 -1
  264. package/dist/client/assets/{store-DmrioYP8.js → store-Nm6KtwbD.js} +1 -1
  265. package/dist/client/assets/store-registry-Cs6bPPkP.js +2 -0
  266. package/dist/client/assets/{switch-9PLadaw_.js → switch-BQFtt3BH.js} +1 -1
  267. package/dist/client/assets/{synced-repos-gfJnKqre.js → synced-repos-B1z4DDCt.js} +1 -1
  268. package/dist/client/assets/{table-B6mPp07a.js → table-6I6YKvFY.js} +1 -1
  269. package/dist/client/assets/{tabs-Co2GUrNY.js → tabs-CLziM0Ww.js} +1 -1
  270. package/dist/client/assets/{task-board-lQZGfEfb.js → task-board-DrUf5p-Z.js} +1 -1
  271. package/dist/client/assets/{task-route-Btltx00G.js → task-route-BCTCy27Q.js} +1 -1
  272. package/dist/client/assets/{task-status-CLlOhQGx.js → task-status-DhCT2ly_.js} +1 -1
  273. package/dist/client/assets/{taskboard-analytics-CCRKXVH2.js → taskboard-analytics-Cf1r1f7I.js} +1 -1
  274. package/dist/client/assets/tasks-BNvHI7hJ.js +1 -0
  275. package/dist/client/assets/{tasks-D_kcQmbi.js → tasks-Drgd6az8.js} +1 -1
  276. package/dist/client/assets/{textarea-BEOceSll.js → textarea-BU6xemAP.js} +1 -1
  277. package/dist/client/assets/{thread-intent-9fI0jPLV.js → thread-intent-F-sZEflj.js} +1 -1
  278. package/dist/client/assets/{thread-route-B1EuqJlg.js → thread-route-BBf64Mwk.js} +1 -1
  279. package/dist/client/assets/{thread-route-DG6kj-ho.js → thread-route-BSYRqZDg.js} +1 -1
  280. package/dist/client/assets/{thread-sheet-body-CbIiPC8V.js → thread-sheet-body-B4OUWlMn.js} +1 -1
  281. package/dist/client/assets/{toggle-group-Ck5f9XVv.js → toggle-group-BiU_UDOq.js} +1 -1
  282. package/dist/client/assets/{toolbar-icon-button-8ctMGgIP.js → toolbar-icon-button-PuQFE8Y9.js} +1 -1
  283. package/dist/client/assets/{tooltip-BuKeolDX.js → tooltip-DV2xHesQ.js} +1 -1
  284. package/dist/client/assets/{track-B7aLvyYR.js → track-ZuOMvhd2.js} +1 -1
  285. package/dist/client/assets/{types-Bh4jNqv3.js → types-27TVsPN_.js} +1 -1
  286. package/dist/client/assets/{usage-stats-waRf4dtg.js → usage-stats-vMRDbAUM.js} +1 -1
  287. package/dist/client/assets/{use-ai-providers-B0bxSHYG.js → use-ai-providers-BnF5Rw_n.js} +1 -1
  288. package/dist/client/assets/{use-automations-BdS9yl-d.js → use-automations-Bo0S3g8m.js} +1 -1
  289. package/dist/client/assets/{use-autosave-CfERN5UF.js → use-autosave-DOzyZumC.js} +1 -1
  290. package/dist/client/assets/{use-connect-companion-_GDNSGRN.js → use-connect-companion-CClQCUMS.js} +1 -1
  291. package/dist/client/assets/{use-connection-CPQUKm0a.js → use-connection-Ba04fHwa.js} +1 -1
  292. package/dist/client/assets/{use-copy-DUiBegp6.js → use-copy-C_ctOeuP.js} +1 -1
  293. package/dist/client/assets/{use-create-virtual-mcp-BRT9hKZ3.js → use-create-virtual-mcp-D1w9d4ex.js} +1 -1
  294. package/dist/client/assets/{use-date-fns-locale-PFUAQIxr.js → use-date-fns-locale-onM9TTf8.js} +1 -1
  295. package/dist/client/assets/{use-debounced-autosave-CyDohN_c.js → use-debounced-autosave-DqyNKPJM.js} +1 -1
  296. package/dist/client/assets/{use-debounced-value-DeY1TNRX.js → use-debounced-value-B9nG3bW5.js} +1 -1
  297. package/dist/client/assets/{use-deco-credits-Du6WCMYS.js → use-deco-credits-BGBshlLi.js} +1 -1
  298. package/dist/client/assets/{use-decopilot-events-_O_0AHeH.js → use-decopilot-events-BpuQrfKN.js} +1 -1
  299. package/dist/client/assets/{use-delete-connection-kqt66yqS.js → use-delete-connection-Cns6x8UC.js} +1 -1
  300. package/dist/client/assets/{use-deployment-admin-MznxNIiy.js → use-deployment-admin-BVfgEagI.js} +1 -1
  301. package/dist/client/assets/{use-entitlements-BWaaNeuI.js → use-entitlements-Dl7pAsQ5.js} +1 -1
  302. package/dist/client/assets/{use-fast-preview-draft-url-BrZtKg6o.js → use-fast-preview-draft-url-mcfOeAAq.js} +1 -1
  303. package/dist/client/assets/{use-file-configs-sqbLS09v.js → use-file-configs-DYGSdjth.js} +1 -1
  304. package/dist/client/assets/{use-infinite-scroll-RrOnf-fI.js → use-infinite-scroll-PhBGPm8H.js} +1 -1
  305. package/dist/client/assets/{use-join-requests-BZzsbvb0.js → use-join-requests-DjeVFQr9.js} +1 -1
  306. package/dist/client/assets/{use-main-panel-tabs-CyT7yQAB.js → use-main-panel-tabs-sSRGo66A.js} +1 -1
  307. package/dist/client/assets/{use-mcp-auth-status-DvQCYJw0.js → use-mcp-auth-status-I377R0Kg.js} +1 -1
  308. package/dist/client/assets/{use-mcp-client-B1u2B39v.js → use-mcp-client-e_hCatGm.js} +1 -1
  309. package/dist/client/assets/{use-mcp-prompts-DxT8Kz-M.js → use-mcp-prompts-DJRXjL4_.js} +1 -1
  310. package/dist/client/assets/{use-mcp-tools-Ch_j97A3.js → use-mcp-tools-g86k4oib.js} +1 -1
  311. package/dist/client/assets/{use-members-H3oi0qPu.js → use-members-DPYHJDe2.js} +1 -1
  312. package/dist/client/assets/{use-mobile-CV7f0Wqe.js → use-mobile-hIijCK0k.js} +1 -1
  313. package/dist/client/assets/{use-navigate-to-agent-BMSyO1iB.js → use-navigate-to-agent-C8pu0B4z.js} +1 -1
  314. package/dist/client/assets/{use-open-billing-url-BGn9Wkis.js → use-open-billing-url-Df7K1DCF.js} +1 -1
  315. package/dist/client/assets/{use-org-auth-client-ZxEGrzhh.js → use-org-auth-client-DbPU3bA-.js} +1 -1
  316. package/dist/client/assets/{use-org-fs-D6lKuMAi.js → use-org-fs-Du-ErRPs.js} +1 -1
  317. package/dist/client/assets/{use-org-notice-C5thI8aD.js → use-org-notice-CyiiFkRG.js} +1 -1
  318. package/dist/client/assets/{use-org-sso-vHIufIoJ.js → use-org-sso-BvfIL0yq.js} +1 -1
  319. package/dist/client/assets/{use-organization-roles-DmWmnvDm.js → use-organization-roles-FAEtbpE5.js} +1 -1
  320. package/dist/client/assets/{use-organization-settings-C-XY0Wze.js → use-organization-settings-CKbX2SdA.js} +1 -1
  321. package/dist/client/assets/{use-panel-navigate-BG4d0Vrr.js → use-panel-navigate-WrD0KEYx.js} +1 -1
  322. package/dist/client/assets/{use-project-native-view-presence-0NQTfFQT.js → use-project-native-view-presence-DWzPH-Sc.js} +1 -1
  323. package/dist/client/assets/{use-project-scope-DRope0ob.js → use-project-scope-DU0-JxYr.js} +1 -1
  324. package/dist/client/assets/{use-registry-connections-D_a0MIjQ.js → use-registry-connections-SLFMHpqj.js} +1 -1
  325. package/dist/client/assets/{use-releases-BPrtCiPS.js → use-releases-CFNTwgY3.js} +1 -1
  326. package/dist/client/assets/{use-reports-diagnostic-BtS3SpeX.js → use-reports-diagnostic-8BvW2in8.js} +1 -1
  327. package/dist/client/assets/{use-route-default-main-DBXt2fvS.js → use-route-default-main-Djaj_cL9.js} +1 -1
  328. package/dist/client/assets/{use-secrets-C5iKdreo.js → use-secrets-DVry--sz.js} +1 -1
  329. package/dist/client/assets/{use-section-preview-base-Dwn5dF7B.js → use-section-preview-base-BOFovHh4.js} +1 -1
  330. package/dist/client/assets/{use-session-runtime-DU2zS-3V.js → use-session-runtime-BR1aW1y5.js} +1 -1
  331. package/dist/client/assets/{use-tags-BvskEBAC.js → use-tags-CZXCbbwL.js} +1 -1
  332. package/dist/client/assets/{use-task-board-analytics-DjIJHPkR.js → use-task-board-analytics-Ci1AhxvH.js} +1 -1
  333. package/dist/client/assets/{use-task-metadata-9gheSHac.js → use-task-metadata-Dt9l5S_a.js} +1 -1
  334. package/dist/client/assets/{use-thread-outputs-DAcljy5D.js → use-thread-outputs-Dq-RN0P_.js} +1 -1
  335. package/dist/client/assets/{use-view-mode-CTt0Tykp.js → use-view-mode-B0LeaJg7.js} +1 -1
  336. package/dist/client/assets/{use-virtual-mcp-Bq1RMGPF.js → use-virtual-mcp-DkK7ErtB.js} +1 -1
  337. package/dist/client/assets/useInfiniteQuery-CspLjV7h.js +1 -0
  338. package/dist/client/assets/{useQueries-DMqJmHGu.js → useQueries-C-SV8tD7.js} +1 -1
  339. package/dist/client/assets/useSuspenseInfiniteQuery-BiQYAhJn.js +1 -0
  340. package/dist/client/assets/{users-B0Y-7Aab.js → users-BiOPZ43X.js} +1 -1
  341. package/dist/client/assets/{utils-CU3t1jst.js → utils-DsvmRe8M.js} +1 -1
  342. package/dist/client/assets/{variant-calendar-Bp201sXA.js → variant-calendar-DImnsJnP.js} +1 -1
  343. package/dist/client/assets/{variant-matcher-override-DUPu0vkW.js → variant-matcher-override-BFQoXu82.js} +1 -1
  344. package/dist/client/assets/{view-mode-toggle-DaZN0qXY.js → view-mode-toggle-DvGhnpsV.js} +1 -1
  345. package/dist/client/assets/{virtual-mcp-BYPZngzy.js → virtual-mcp-ldxphi5G.js} +1 -1
  346. package/dist/client/index.html +1 -1
  347. package/dist/server/cli.js +651 -651
  348. package/dist/server/server.js +434 -434
  349. package/package.json +1 -1
  350. package/dist/client/assets/agent-app-CQgi_fkJ.js +0 -1
  351. package/dist/client/assets/agent-deck-Dx12NQ18.js +0 -1
  352. package/dist/client/assets/agent-file-B5qivcOi.js +0 -1
  353. package/dist/client/assets/agent-library-file-OKK2mnnF.js +0 -1
  354. package/dist/client/assets/agent-settings-BraxsXkL.js +0 -1
  355. package/dist/client/assets/agent-site-editor-code-03I9o24S.js +0 -2
  356. package/dist/client/assets/agent-view-74_Cuyp8.js +0 -1
  357. package/dist/client/assets/api-keys-ClN6LoeU.js +0 -1
  358. package/dist/client/assets/app-editor-CaCDGdiz.js +0 -1
  359. package/dist/client/assets/automations-XsBsFuGM.js +0 -1
  360. package/dist/client/assets/category-editor-CFCxetoB.js +0 -1
  361. package/dist/client/assets/project-reports-D83XbTn5.js +0 -1
  362. package/dist/client/assets/project-tasks-IrwgrDaD.js +0 -1
  363. package/dist/client/assets/record-editor-C02fIlfV.js +0 -1
  364. package/dist/client/assets/registry-CORfkc_Z.js +0 -2
  365. package/dist/client/assets/reports-X2I2m9Nu.js +0 -1
  366. package/dist/client/assets/store-registry-B398fyC0.js +0 -2
  367. package/dist/client/assets/tasks-BqLnbtfB.js +0 -1
  368. package/dist/client/assets/useInfiniteQuery-C6OBOha-.js +0 -1
  369. package/dist/client/assets/useSuspenseInfiniteQuery-XFcbI_PD.js +0 -1
@@ -1 +1 @@
1
- import{c as z,r as Z,j as i,b as ae,h as ge,B as xe,l as je,ah as ye,t as ce}from"./index-z4bKt11m.js";import{C as Pe}from"./index-DZOe0ODJ.js";import{A as De}from"./agent-view-guard-q_9RifUL.js";import{i as Ne}from"./Check-BZE0WrNL.js";import{a as ve}from"./Copy01-DTHuBaTA.js";import{i as Se}from"./DotsVertical-DE9eZKrJ.js";import{i as Ce}from"./File02-g-xJPix_.js";import{a as we}from"./Image01-DfaxHjlV.js";import{n as _e}from"./LinkExternal01-BkRUjBAn.js";import{a as Ae}from"./Package-t6euxYcP.js";import{s as ze}from"./Trash01-C6bziN5X.js";import{i as he}from"./Upload01-DC2spim9.js";import{A as Fe,a as Ue,b as $e,c as Ie,g as Me,d as Te,e as Ee,f as Oe}from"./alert-dialog-Bi9Cy1y8.js";import{D as Re,a as ue,b as Be,c as Le}from"./dropdown-menu-Dd8nakK9.js";import{S as Ve}from"./search-input-DpLbMQRj.js";import{a as We}from"./use-virtual-mcp-Bq1RMGPF.js";import{u as qe}from"./use-debounced-value-DeY1TNRX.js";import{u as Ge}from"./use-file-configs-sqbLS09v.js";import{u as He,a as Ke,e as Qe,i as Ye,b as ke,f as Je,c as Xe}from"./asset-utils-syVIRo9d.js";import{m as Ze}from"./match-site-slug-config-D3fUJ6vX.js";import{r as et}from"./site-slug-uya6Wp4-.js";import{b as tt}from"./thread-route-B1EuqJlg.js";import"./use-mobile-CV7f0Wqe.js";import"./index-G9Ugx8pT.js";import"./resizable-7umHaFcH.js";import"./MessageCircle01-CgotMmLL.js";import"./use-panel-navigate-BG4d0Vrr.js";import"./use-project-scope-DRope0ob.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-DBXt2fvS.js";import"./hooks-CkL4R3Tj.js";import"./use-mcp-client-B1u2B39v.js";import"./auth-D-2jYpOE.js";import"./backoff-8mStPHYB.js";import"./task-board-lQZGfEfb.js";import"./schema-D0xfowSf.js";import"./tooltip-BuKeolDX.js";import"./index-B46P4HkV.js";import"./toolbar-icon-button-8ctMGgIP.js";import"./use-main-panel-tabs-CyT7yQAB.js";import"./Globe01-DIy8wXF6.js";import"./Monitor01-CQ6Zk1oP.js";import"./use-connection-CPQUKm0a.js";import"./use-mcp-tools-Ch_j97A3.js";import"./types-Bh4jNqv3.js";import"./utils-CVEq3hMx.js";import"./index-BFjKFLU3.js";import"./ArrowUp-Scf6R8DX.js";import"./chat-context-BBVkwd3p.js";import"./autosend-D-BN-cv5.js";import"./thread-intent-9fI0jPLV.js";import"./slugify-CEUa2lfQ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-BWaaNeuI.js";import"./use-ai-providers-B0bxSHYG.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-_O_0AHeH.js";import"./use-organization-settings-C-XY0Wze.js";import"./gateway-client-CFIpVRaR.js";import"./dialog-DbzCN1O8.js";import"./X-Bzh3NI3m.js";import"./drawer-CBdcJytm.js";import"./collection-search-CeA9TK20.js";import"./SearchMd-FDCJM3CR.js";import"./use-mcp-prompts-DxT8Kz-M.js";import"./index-CuiP-22D.js";import"./form-B7dtslOD.js";import"./label-8juC5J-g.js";import"./input-C7XH8Uj_.js";import"./org-file-open-context-BgiBbqKQ.js";import"./input-I71U33T1.js";import"./command-palette-store-LVCQ6fRv.js";import"./chat-draft-bAtYgASI.js";import"./use-session-runtime-DU2zS-3V.js";import"./ArrowRight-Bv0iX4wy.js";import"./agent-icon-BD4DM2Lv.js";import"./AlertCircle-DbwtWnTP.js";import"./Tool01-DHi_Z7zo.js";import"./ArrowLeft-CyH6aWpS.js";import"./Tool02-JY0gm8cg.js";import"./TrendUp01-Bkdgpfn7.js";import"./ZoomOut-BRjMa-04.js";import"./Users03-BP-0DNhp.js";import"./CheckCircle-BKb1RVrA.js";import"./ChevronUp-D5_IWEtB.js";import"./ChevronRight-DNrwFBnC.js";import"./ChevronSelectorVertical-oXn0cTzk.js";import"./UserSquare-qgzToKNd.js";import"./CreditCard01-CwX6pA0M.js";import"./Database01-RGlwXHSd.js";import"./Download01-qX3hmvr5.js";import"./Printer-BpZBiqyG.js";import"./Settings02-CFcKewXh.js";import"./Eye-DXUjft5i.js";import"./Share07-CxuHcmnM.js";import"./GitBranch01-ddoPQdPH.js";import"./SwitchHorizontal01-hHr6GOmU.js";import"./HardDrive-DU_z1AQw.js";import"./Key01-mqjfsZRe.js";import"./Link01-C656VtHx.js";import"./Sun-SBoG-e9B.js";import"./Palette-oECS8j3l.js";import"./Play-DQgzDnaW.js";import"./Plus-D2HOi_DD.js";import"./SearchLg-DbX4T5E-.js";import"./Shield01-HrKG6yUn.js";import"./Stars01-B_nM3FYf.js";import"./User01-BbOpA84p.js";import"./Users01-BOsDT0Jv.js";import"./XCircle-CuK2q_XU.js";import"./XClose-Cvyz3reC.js";import"./Zap-DXNovEva.js";import"./select-cIekAVlM.js";import"./usage-stats-waRf4dtg.js";import"./use-copy-DUiBegp6.js";import"./markdown-BhLIBmBv.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./tabs-Co2GUrNY.js";import"./use-deco-credits-Du6WCMYS.js";import"./toggle-group-Ck5f9XVv.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-BGn9Wkis.js";import"./decopilot-72HlEf1U.js";import"./checkbox-Dkejdmst.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-Duu5Gg02.js";import"./download-app-dialog-Bsig7tOs.js";import"./popover-CsEsUqbZ.js";import"./index-CULK6hDm.js";import"./input-CSQboV8k.js";import"./hooks-D09Ti1PG.js";import"./use-org-fs-D6lKuMAi.js";import"./question-004-sINsf4GQ.js";import"./use-members-H3oi0qPu.js";import"./use-org-auth-client-ZxEGrzhh.js";import"./feature-paywall-BOwjYKin.js";import"./plan-ladder-C80Qcxkm.js";import"./add-connection-dialog-GfufFuLz.js";import"./extract-connection-data-CM8c_Wvw.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-BfiO32wM.js";import"./connection-card-83VJQMov.js";import"./use-registry-connections-D_a0MIjQ.js";import"./useInfiniteQuery-C6OBOha-.js";import"./infiniteQueryObserver-BjcfJE2O.js";import"./retry-i8LvYSZg.js";import"./connection-slug-CITJ0kGN.js";import"./integration-icon-DOHTaQ6D.js";import"./textarea-BEOceSll.js";import"./connection-form-helpers-Ms_1nBbP.js";import"./authenticate-and-persist-oauth-2yRhuiER.js";import"./mcp-oauth-DiqQlKOx.js";import"./collection-tabs-3kW0qDG6.js";import"./badge-BNBGXxmC.js";import"./use-infinite-scroll-RrOnf-fI.js";import"./useSuspenseInfiniteQuery-XFcbI_PD.js";import"./pair-B2TMNGEX.js";import"./collapsible-n44mVpiB.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DjwQ0S-h.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./shell-layout-DMJSwXH6.js";import"./anchors-yqDzZN4K.js";import"./use-org-notice-C5thI8aD.js";import"./command-D2fiEFer.js";import"./index-Cyoz5tz5.js";import"./project-icon-Cw3la58q.js";import"./required-auth-layout-WkX8CtfT.js";import"./use-org-sso-vHIufIoJ.js";import"./sheet-DhNzwMUj.js";import"./use-navigate-to-agent-BMSyO1iB.js";import"./use-thread-outputs-DAcljy5D.js";import"./file-type-icon-C37FwvPU.js";import"./sandbox-lifecycle-context-DL9kkwoa.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-metadata-9gheSHac.js";import"./use-project-native-view-presence-0NQTfFQT.js";import"./virtual-mcp-BYPZngzy.js";function it(){const s=z.c(3),[e,t]=Z.useState(-1);let r;s[0]===Symbol.for("react.memo_cache_sentinel")?(r=n=>{if(!n)return;const a=()=>t(n.clientWidth);a();const c=new ResizeObserver(a);return c.observe(n),()=>c.disconnect()},s[0]=r):r=s[0];const l=r;let o;return s[1]!==e?(o=[e,l],s[1]=e,s[2]=o):o=s[2],o}function rt(s){const e=z.c(6),{virtualMcpId:t}=s,r=We(t),l=Ge();let o;e[0]!==l||e[1]!==r?(o=Ze(l,et(r)),e[0]=l,e[1]=r,e[2]=o):o=e[2];const n=o;if(!n){let c;return e[3]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(st,{}),e[3]=c):c=e[3],c}let a;return e[4]!==n?(a=i.jsx(nt,{config:n}),e[4]=n,e[5]=a):a=e[5],a}function st(){const s=z.c(12),e=ae();let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx("div",{className:"flex size-12 items-center justify-center rounded-full bg-muted",children:i.jsx(Ae,{size:20,className:"text-muted-foreground"})}),s[0]=t):t=s[0];let r;s[1]!==e?(r=e("assets.browser.noBucketTitle"),s[1]=e,s[2]=r):r=s[2];let l;s[3]!==r?(l=i.jsx("p",{className:"text-sm font-medium",children:r}),s[3]=r,s[4]=l):l=s[4];let o;s[5]!==e?(o=e("assets.browser.noBucketDescription"),s[5]=e,s[6]=o):o=s[6];let n;s[7]!==o?(n=i.jsx("p",{className:"mt-1 max-w-sm text-xs text-muted-foreground",children:o}),s[7]=o,s[8]=n):n=s[8];let a;return s[9]!==l||s[10]!==n?(a=i.jsxs("div",{className:"flex h-full min-h-0 flex-col items-center justify-center gap-3 p-10 text-center",children:[t,i.jsxs("div",{children:[l,n]})]}),s[9]=l,s[10]=n,s[11]=a):a=s[11],a}function lt(s){return s<0||s<640?2:s<768?3:s<1024?4:5}function ot(s,e){const t=Array.from({length:e},()=>[]);return s.forEach((r,l)=>t[l%e].push(r)),t}function nt(s){const e=z.c(99),{config:t}=s,r=ae(),[l,o]=Z.useState(""),n=qe(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=He(a),m=Ke(),[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]!==r||e[6]!==m?(h=async function(_){if(!_)return;const ee=Array.from(_);if(ee.length===0)return;const $=[];for(const R of ee)try{await m.mutateAsync({configId:t.id,file:R})}catch(I){const F=I;$.push(`${R.name} (${F instanceof Error?F.message:"upload failed"})`)}await c.refetch(),$.length>0&&ce.error($.length===ee.length?r("filePicker.filePickerDialog.uploadFailedAll",{errors:$.join("; ")}):r("filePicker.filePickerDialog.uploadFailedSome",{errors:$.join("; ")}))},e[3]=t.id,e[4]=c,e[5]=r,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]=it();let D,N,C,w,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]!==r||e[24]!==m.isPending){const _=(c.data?.pages??[]).flatMap(ct),ee=ot(_,lt(P)),$=n.trim(),R=l!==n||c.isFetching&&!c.isFetchingNextPage;M="flex h-full min-h-0 flex-col gap-3 p-4";let I;e[31]!==r?(I=r("assets.browser.title"),e[31]=r,e[32]=I):I=e[32];let F;e[33]!==I?(F=i.jsx("h2",{className:"text-sm font-semibold",children:I}),e[33]=I,e[34]=F):F=e[34];let B;e[35]!==t.name||e[36]!==r?(B=r("assets.browser.bucketLabel",{name:t.name}),e[35]=t.name,e[36]=r,e[37]=B):B=e[37];let L;e[38]!==B?(L=i.jsx("p",{className:"truncate text-xs text-muted-foreground",children:B}),e[38]=B,e[39]=L):L=e[39];let V;e[40]!==F||e[41]!==L?(V=i.jsxs("div",{className:"min-w-0",children:[F,L]}),e[40]=F,e[41]=L,e[42]=V):V=e[42];let se;e[43]===Symbol.for("react.memo_cache_sentinel")?(se=()=>u.current?.click(),e[43]=se):se=e[43];let W;e[44]!==m.isPending?(W=m.isPending?i.jsx(ge,{className:"size-3.5"}):i.jsx(he,{size:14}),e[44]=m.isPending,e[45]=W):W=e[45];let q;e[46]!==r||e[47]!==m.isPending?(q=m.isPending?r("filePicker.filePickerDialog.uploading"):r("filePicker.filePickerDialog.dropFilesOrClick"),e[46]=r,e[47]=m.isPending,e[48]=q):q=e[48];let G;e[49]!==W||e[50]!==q||e[51]!==m.isPending?(G=i.jsxs(xe,{type:"button",size:"sm",disabled:m.isPending,onClick:se,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=i.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=i.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]!==r?(K=r("filePicker.filePickerDialog.searchFilesPlaceholder"),e[59]=r,e[60]=K):K=e[60],e[61]!==R||e[62]!==l||e[63]!==K?(D=i.jsx(Ve,{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=i.jsx(he,{size:16,className:"text-muted-foreground"}),e[69]=oe):oe=e[69];let Y;e[70]!==r?(Y=r("filePicker.filePickerDialog.dropFilesOrClick"),e[70]=r,e[71]=Y):Y=e[71];let J;e[72]!==r?(J=r("filePicker.filePickerDialog.uploadSizeLimit"),e[72]=r,e[73]=J):J=e[73];let X;e[74]!==Y||e[75]!==J?(X=i.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=i.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],C="min-h-0 flex-1 overflow-y-auto pr-1",w=_.length===0?$?i.jsx(be,{title:r("filePicker.filePickerDialog.noMatches",{query:$}),description:r("filePicker.filePickerDialog.tryDifferentSearchOrLoadMore")}):i.jsx(be,{title:r("filePicker.filePickerDialog.noFilesYet"),description:r("filePicker.filePickerDialog.dropFileToGetStarted")}):i.jsx("div",{ref:S,className:"flex items-start gap-3",children:ee.map((ne,pe)=>i.jsx("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:ne.map(de=>i.jsx(at,{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]=r,e[24]=m.isPending,e[25]=D,e[26]=N,e[27]=C,e[28]=w,e[29]=M,e[30]=U}else D=e[25],N=e[26],C=e[27],w=e[28],M=e[29],U=e[30];let T;e[81]!==c||e[82]!==r?(T=c.hasNextPage&&i.jsx("div",{className:"flex justify-center py-4",children:i.jsx(xe,{type:"button",variant:"outline",size:"sm",disabled:c.isFetchingNextPage,onClick:()=>c.fetchNextPage(),children:c.isFetchingNextPage?i.jsxs(i.Fragment,{children:[i.jsx(ge,{className:"size-3.5"}),r("filePicker.filePickerDialog.loading")]}):r("filePicker.filePickerDialog.loadMore")})}),e[81]=c,e[82]=r,e[83]=T):T=e[83];let E;e[84]!==T||e[85]!==C||e[86]!==w?(E=i.jsxs("div",{className:C,children:[w,T]}),e[84]=T,e[85]=C,e[86]=w,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=i.jsx(pt,{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=i.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 ct(s){return s.items}function be(s){const e=z.c(8),{title:t,description:r}=s;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsx("div",{className:"flex size-10 items-center justify-center rounded-full bg-muted",children:i.jsx(we,{size:18,className:"text-muted-foreground"})}),e[0]=l):l=e[0];let o;e[1]!==t?(o=i.jsx("p",{className:"text-sm font-medium",children:t}),e[1]=t,e[2]=o):o=e[2];let n;e[3]!==r?(n=i.jsx("p",{className:"text-xs text-muted-foreground",children:r}),e[3]=r,e[4]=n):n=e[4];let a;return e[5]!==o||e[6]!==n?(a=i.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 at(s){const e=z.c(34),{item:t,onDelete:r}=s;let l;e[0]!==t.key?(l=Qe(t.key),e[0]=t.key,e[1]=l):l=e[1];const o=l;let n;e[2]!==t.key?(n=Ye(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?i.jsx("img",{src:t.publicUrl,alt:t.key,loading:"lazy",className:"block h-auto w-full",onError:mt}):i.jsx("div",{className:"flex aspect-square items-center justify-center",children:i.jsx(Ce,{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=i.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=i.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=Je(t.size),e[17]=t.size,e[18]=g):g=e[18];let u;e[19]!==o||e[20]!==g?(u=i.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=i.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]!==r?(x=i.jsx(ft,{item:t,onDelete:r}),e[25]=t,e[26]=r,e[27]=x):x=e[27];let f;e[28]!==h||e[29]!==x?(f=i.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=i.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 mt(s){s.target.style.display="none"}function ft(s){const e=z.c(36),{item:t,onDelete:r}=s,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=i.jsx(Se,{size:14}),e[5]=y):y=e[5];let p;e[6]!==m?(p=i.jsx(Re,{asChild:!0,children:i.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?i.jsx(Ne,{size:14}):i.jsx(ve,{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=i.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=i.jsx(_e,{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=i.jsx(ue,{asChild:!0,children:i.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=i.jsx(ze,{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]!==r||e[27]!==A?(k=i.jsxs(ue,{variant:"destructive",onClick:r,children:[v,A]}),e[26]=r,e[27]=A,e[28]=k):k=e[28];let j;e[29]!==b||e[30]!==k||e[31]!==u?(j=i.jsxs(Be,{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=i.jsxs(Le,{children:[p,j]}),e[33]=j,e[34]=p,e[35]=P):P=e[35],P}function pt(s){const e=z.c(47),{configId:t,item:r,onClose:l}=s,o=ae(),n=Xe();let a;e[0]!==t||e[1]!==n||e[2]!==r||e[3]!==l||e[4]!==o?(a=async function(){if(r)try{await n.mutateAsync({configId:t,key:r.key}),ce.success(o("assets.browser.deleted")),l()}catch{ce.error(o("assets.browser.deleteFailed"))}},e[0]=t,e[1]=n,e[2]=r,e[3]=l,e[4]=o,e[5]=a):a=e[5];const c=a,m=!!r;let y;e[6]!==l?(y=w=>!w&&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=i.jsx(Fe,{children:p}),e[10]=p,e[11]=d):d=e[11];let g;e[12]!==r||e[13]!==o?(g=o("assets.browser.deleteConfirmDescription",{name:r?ke(r.key):""}),e[12]=r,e[13]=o,e[14]=g):g=e[14];let u;e[15]!==g?(u=i.jsx(Ue,{children:g}),e[15]=g,e[16]=u):u=e[16];let h;e[17]!==d||e[18]!==u?(h=i.jsxs($e,{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=i.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=w=>{w.preventDefault(),c()},e[26]=c,e[27]=k):k=e[27];let j;e[28]!==n.isPending?(j=n.isPending?i.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=i.jsxs(Me,{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=i.jsxs(Te,{children:[b,S]}),e[37]=b,e[38]=S,e[39]=D):D=e[39];let N;e[40]!==D||e[41]!==h?(N=i.jsxs(Ee,{children:[h,D]}),e[40]=D,e[41]=h,e[42]=N):N=e[42];let C;return e[43]!==N||e[44]!==m||e[45]!==y?(C=i.jsx(Oe,{open:m,onOpenChange:y,children:N}),e[43]=N,e[44]=m,e[45]=y,e[46]=C):C=e[46],C}function dt(){const s=z.c(2),e=tt();let t;return s[0]!==e?(t=i.jsx(De,{tabId:"assets",children:i.jsx(rt,{virtualMcpId:e})}),s[0]=e,s[1]=t):t=s[1],t}function Us(){const s=z.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Pe.Content,{children:i.jsx(dt,{})}),s[0]=e):e=s[0],e}export{Us as default};
1
+ import{c as z,r as Z,j as i,b as ae,h as ge,B as xe,l as je,ah as ye,t as ce}from"./index-Dc7hzqoi.js";import{C as Pe}from"./index-BH7uCYoT.js";import{A as De}from"./agent-view-guard-DHJpzCVR.js";import{i as Ne}from"./Check-B3RSsr_D.js";import{a as ve}from"./Copy01-nMxlBfeT.js";import{i as Se}from"./DotsVertical-CsjwfYzf.js";import{i as Ce}from"./File02-BvR-HYxK.js";import{a as we}from"./Image01-CxnjAzbb.js";import{n as _e}from"./LinkExternal01-AWlhN5o7.js";import{a as Ae}from"./Package-nTbucmaQ.js";import{s as ze}from"./Trash01-nl-t4IoV.js";import{i as he}from"./Upload01-B4Fqdkae.js";import{A as Fe,a as Ue,b as $e,c as Ie,g as Me,d as Te,e as Ee,f as Oe}from"./alert-dialog-BI-B_8hq.js";import{D as Re,a as ue,b as Be,c as Le}from"./dropdown-menu-C5iafa8S.js";import{S as Ve}from"./search-input-Pobww52G.js";import{a as We}from"./use-virtual-mcp-DkK7ErtB.js";import{u as qe}from"./use-debounced-value-B9nG3bW5.js";import{u as Ge}from"./use-file-configs-DYGSdjth.js";import{u as He,a as Ke,e as Qe,i as Ye,b as ke,f as Je,c as Xe}from"./asset-utils-DhbLEVKo.js";import{m as Ze}from"./match-site-slug-config-D3fUJ6vX.js";import{r as et}from"./site-slug-uya6Wp4-.js";import{b as tt}from"./thread-route-BBf64Mwk.js";import"./use-mobile-hIijCK0k.js";import"./index-CSd_k8Np.js";import"./resizable-Bt7dvMCc.js";import"./MessageCircle01-DBcg2aiD.js";import"./use-panel-navigate-WrD0KEYx.js";import"./use-project-scope-DU0-JxYr.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-Djaj_cL9.js";import"./hooks-DZOMRp7D.js";import"./use-mcp-client-e_hCatGm.js";import"./auth-DhzAq_9m.js";import"./backoff-8mStPHYB.js";import"./task-board-DrUf5p-Z.js";import"./schema-1zAO-l7e.js";import"./tooltip-DV2xHesQ.js";import"./index-DWw5wi2G.js";import"./toolbar-icon-button-PuQFE8Y9.js";import"./use-main-panel-tabs-sSRGo66A.js";import"./Globe01-D6FaaFR2.js";import"./Monitor01-Ccs1gh2Z.js";import"./use-connection-Ba04fHwa.js";import"./use-mcp-tools-g86k4oib.js";import"./types-27TVsPN_.js";import"./utils-CVEq3hMx.js";import"./index-D_X-LIyA.js";import"./ArrowUp-Cii1LHW7.js";import"./chat-context-tZCX_cqt.js";import"./autosend-BberXmli.js";import"./thread-intent-F-sZEflj.js";import"./slugify-CEUa2lfQ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-Dl7pAsQ5.js";import"./use-ai-providers-BnF5Rw_n.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BpuQrfKN.js";import"./use-organization-settings-CKbX2SdA.js";import"./gateway-client-BuiOykcN.js";import"./dialog-llvhXw2o.js";import"./X-CFCE4a-Q.js";import"./drawer-BIjkXMV3.js";import"./collection-search-J9Bt25gS.js";import"./SearchMd-C45D2PMI.js";import"./use-mcp-prompts-DJRXjL4_.js";import"./index-DiULBiX9.js";import"./form-CSXgIHLz.js";import"./label-BMxIRiEr.js";import"./input-DXlaTX4w.js";import"./org-file-open-context-BCUpiY_R.js";import"./input-D_FfvHr0.js";import"./command-palette-store-DK-56E2K.js";import"./chat-draft-BCeqPSxA.js";import"./use-session-runtime-BR1aW1y5.js";import"./ArrowRight-CLncCNat.js";import"./agent-icon-CczrFEe7.js";import"./AlertCircle-CMjsP_Tk.js";import"./Tool01-DouqPjim.js";import"./ArrowLeft-CjYy5Nhj.js";import"./Tool02-CATStXCy.js";import"./TrendUp01-BFAEMx9E.js";import"./ZoomOut-BPxprY2s.js";import"./Users03-Y0Jco4zL.js";import"./CheckCircle-DHXQFnpK.js";import"./ChevronUp-DiYhGG4T.js";import"./ChevronRight-USKkhEpL.js";import"./ChevronSelectorVertical-DpRb2z1l.js";import"./UserSquare-B2lKdt4w.js";import"./CreditCard01-CWXVH3ZM.js";import"./Database01-C0YJpjc3.js";import"./Download01-BRrSA3Yx.js";import"./Printer-CvyxF9Jo.js";import"./Settings02-Cyf85ea0.js";import"./Eye-Dyg2WPG4.js";import"./Share07-wC47qn2E.js";import"./GitBranch01-rWb2SJK9.js";import"./SwitchHorizontal01-DpXsFGyJ.js";import"./HardDrive-DNTPLPT4.js";import"./Key01-CIXwHMRo.js";import"./Link01-C0FvgZZB.js";import"./Sun-0Ied-kyZ.js";import"./Palette-DSdn1Xis.js";import"./Play-lMuWOObF.js";import"./Plus-CVauOqLT.js";import"./SearchLg-BrrPVuXr.js";import"./Shield01-CqB4I7qm.js";import"./Stars01-oAh9h5b5.js";import"./User01-ClMaVCaJ.js";import"./Users01-BFhxJVhO.js";import"./XCircle-CleKT0Id.js";import"./XClose-BgzK-Dwz.js";import"./Zap-B6zkqKWB.js";import"./select-BkKPcZFe.js";import"./usage-stats-vMRDbAUM.js";import"./use-copy-C_ctOeuP.js";import"./markdown-DGWjAeXL.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./tabs-CLziM0Ww.js";import"./use-deco-credits-BGBshlLi.js";import"./toggle-group-BiU_UDOq.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-Df7K1DCF.js";import"./decopilot-BvepxP_-.js";import"./checkbox-jLf7fBuW.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-C9HiP4eS.js";import"./download-app-dialog-D_4eQbbs.js";import"./popover-yk_ePqAA.js";import"./index-Bb-Re5q8.js";import"./input-uIV5S_EX.js";import"./hooks-BoX5BC-f.js";import"./use-org-fs-Du-ErRPs.js";import"./question-004-sINsf4GQ.js";import"./use-members-DPYHJDe2.js";import"./use-org-auth-client-DbPU3bA-.js";import"./feature-paywall-DEy2mpV2.js";import"./plan-ladder-B2pv9Y73.js";import"./add-connection-dialog-DZjTm9W3.js";import"./extract-connection-data-Dbm_cKaX.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-DD0omVHZ.js";import"./connection-card-fcMCwbTh.js";import"./use-registry-connections-SLFMHpqj.js";import"./useInfiniteQuery-CspLjV7h.js";import"./infiniteQueryObserver-CjWlcBHD.js";import"./retry-i8LvYSZg.js";import"./connection-slug-CITJ0kGN.js";import"./integration-icon-BeEdjsn9.js";import"./textarea-BU6xemAP.js";import"./connection-form-helpers-CHlcdgAK.js";import"./authenticate-and-persist-oauth-DkJ4g-X5.js";import"./mcp-oauth-C4khbNJJ.js";import"./collection-tabs-CrXIJeNf.js";import"./badge-Bu51Hlti.js";import"./use-infinite-scroll-PhBGPm8H.js";import"./useSuspenseInfiniteQuery-BiQYAhJn.js";import"./pair-B46EBBjF.js";import"./collapsible-CTgXdVQa.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BTjC7Gse.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./shell-layout-Ce0aCJuX.js";import"./anchors-yqDzZN4K.js";import"./use-org-notice-CyiiFkRG.js";import"./command-B-XD29Nx.js";import"./index-BD213WLU.js";import"./project-icon-MWmzrrm8.js";import"./required-auth-layout-RoMNnMPO.js";import"./use-org-sso-BvfIL0yq.js";import"./sheet-i72Qx7sL.js";import"./use-navigate-to-agent-C8pu0B4z.js";import"./use-thread-outputs-Dq-RN0P_.js";import"./file-type-icon-C9Qn36v4.js";import"./sandbox-lifecycle-context-C7VKOJoV.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-metadata-Dt9l5S_a.js";import"./use-project-native-view-presence-DWzPH-Sc.js";import"./virtual-mcp-ldxphi5G.js";function it(){const s=z.c(3),[e,t]=Z.useState(-1);let r;s[0]===Symbol.for("react.memo_cache_sentinel")?(r=n=>{if(!n)return;const a=()=>t(n.clientWidth);a();const c=new ResizeObserver(a);return c.observe(n),()=>c.disconnect()},s[0]=r):r=s[0];const l=r;let o;return s[1]!==e?(o=[e,l],s[1]=e,s[2]=o):o=s[2],o}function rt(s){const e=z.c(6),{virtualMcpId:t}=s,r=We(t),l=Ge();let o;e[0]!==l||e[1]!==r?(o=Ze(l,et(r)),e[0]=l,e[1]=r,e[2]=o):o=e[2];const n=o;if(!n){let c;return e[3]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(st,{}),e[3]=c):c=e[3],c}let a;return e[4]!==n?(a=i.jsx(nt,{config:n}),e[4]=n,e[5]=a):a=e[5],a}function st(){const s=z.c(12),e=ae();let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx("div",{className:"flex size-12 items-center justify-center rounded-full bg-muted",children:i.jsx(Ae,{size:20,className:"text-muted-foreground"})}),s[0]=t):t=s[0];let r;s[1]!==e?(r=e("assets.browser.noBucketTitle"),s[1]=e,s[2]=r):r=s[2];let l;s[3]!==r?(l=i.jsx("p",{className:"text-sm font-medium",children:r}),s[3]=r,s[4]=l):l=s[4];let o;s[5]!==e?(o=e("assets.browser.noBucketDescription"),s[5]=e,s[6]=o):o=s[6];let n;s[7]!==o?(n=i.jsx("p",{className:"mt-1 max-w-sm text-xs text-muted-foreground",children:o}),s[7]=o,s[8]=n):n=s[8];let a;return s[9]!==l||s[10]!==n?(a=i.jsxs("div",{className:"flex h-full min-h-0 flex-col items-center justify-center gap-3 p-10 text-center",children:[t,i.jsxs("div",{children:[l,n]})]}),s[9]=l,s[10]=n,s[11]=a):a=s[11],a}function lt(s){return s<0||s<640?2:s<768?3:s<1024?4:5}function ot(s,e){const t=Array.from({length:e},()=>[]);return s.forEach((r,l)=>t[l%e].push(r)),t}function nt(s){const e=z.c(99),{config:t}=s,r=ae(),[l,o]=Z.useState(""),n=qe(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=He(a),m=Ke(),[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]!==r||e[6]!==m?(h=async function(_){if(!_)return;const ee=Array.from(_);if(ee.length===0)return;const $=[];for(const R of ee)try{await m.mutateAsync({configId:t.id,file:R})}catch(I){const F=I;$.push(`${R.name} (${F instanceof Error?F.message:"upload failed"})`)}await c.refetch(),$.length>0&&ce.error($.length===ee.length?r("filePicker.filePickerDialog.uploadFailedAll",{errors:$.join("; ")}):r("filePicker.filePickerDialog.uploadFailedSome",{errors:$.join("; ")}))},e[3]=t.id,e[4]=c,e[5]=r,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]=it();let D,N,C,w,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]!==r||e[24]!==m.isPending){const _=(c.data?.pages??[]).flatMap(ct),ee=ot(_,lt(P)),$=n.trim(),R=l!==n||c.isFetching&&!c.isFetchingNextPage;M="flex h-full min-h-0 flex-col gap-3 p-4";let I;e[31]!==r?(I=r("assets.browser.title"),e[31]=r,e[32]=I):I=e[32];let F;e[33]!==I?(F=i.jsx("h2",{className:"text-sm font-semibold",children:I}),e[33]=I,e[34]=F):F=e[34];let B;e[35]!==t.name||e[36]!==r?(B=r("assets.browser.bucketLabel",{name:t.name}),e[35]=t.name,e[36]=r,e[37]=B):B=e[37];let L;e[38]!==B?(L=i.jsx("p",{className:"truncate text-xs text-muted-foreground",children:B}),e[38]=B,e[39]=L):L=e[39];let V;e[40]!==F||e[41]!==L?(V=i.jsxs("div",{className:"min-w-0",children:[F,L]}),e[40]=F,e[41]=L,e[42]=V):V=e[42];let se;e[43]===Symbol.for("react.memo_cache_sentinel")?(se=()=>u.current?.click(),e[43]=se):se=e[43];let W;e[44]!==m.isPending?(W=m.isPending?i.jsx(ge,{className:"size-3.5"}):i.jsx(he,{size:14}),e[44]=m.isPending,e[45]=W):W=e[45];let q;e[46]!==r||e[47]!==m.isPending?(q=m.isPending?r("filePicker.filePickerDialog.uploading"):r("filePicker.filePickerDialog.dropFilesOrClick"),e[46]=r,e[47]=m.isPending,e[48]=q):q=e[48];let G;e[49]!==W||e[50]!==q||e[51]!==m.isPending?(G=i.jsxs(xe,{type:"button",size:"sm",disabled:m.isPending,onClick:se,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=i.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=i.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]!==r?(K=r("filePicker.filePickerDialog.searchFilesPlaceholder"),e[59]=r,e[60]=K):K=e[60],e[61]!==R||e[62]!==l||e[63]!==K?(D=i.jsx(Ve,{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=i.jsx(he,{size:16,className:"text-muted-foreground"}),e[69]=oe):oe=e[69];let Y;e[70]!==r?(Y=r("filePicker.filePickerDialog.dropFilesOrClick"),e[70]=r,e[71]=Y):Y=e[71];let J;e[72]!==r?(J=r("filePicker.filePickerDialog.uploadSizeLimit"),e[72]=r,e[73]=J):J=e[73];let X;e[74]!==Y||e[75]!==J?(X=i.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=i.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],C="min-h-0 flex-1 overflow-y-auto pr-1",w=_.length===0?$?i.jsx(be,{title:r("filePicker.filePickerDialog.noMatches",{query:$}),description:r("filePicker.filePickerDialog.tryDifferentSearchOrLoadMore")}):i.jsx(be,{title:r("filePicker.filePickerDialog.noFilesYet"),description:r("filePicker.filePickerDialog.dropFileToGetStarted")}):i.jsx("div",{ref:S,className:"flex items-start gap-3",children:ee.map((ne,pe)=>i.jsx("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:ne.map(de=>i.jsx(at,{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]=r,e[24]=m.isPending,e[25]=D,e[26]=N,e[27]=C,e[28]=w,e[29]=M,e[30]=U}else D=e[25],N=e[26],C=e[27],w=e[28],M=e[29],U=e[30];let T;e[81]!==c||e[82]!==r?(T=c.hasNextPage&&i.jsx("div",{className:"flex justify-center py-4",children:i.jsx(xe,{type:"button",variant:"outline",size:"sm",disabled:c.isFetchingNextPage,onClick:()=>c.fetchNextPage(),children:c.isFetchingNextPage?i.jsxs(i.Fragment,{children:[i.jsx(ge,{className:"size-3.5"}),r("filePicker.filePickerDialog.loading")]}):r("filePicker.filePickerDialog.loadMore")})}),e[81]=c,e[82]=r,e[83]=T):T=e[83];let E;e[84]!==T||e[85]!==C||e[86]!==w?(E=i.jsxs("div",{className:C,children:[w,T]}),e[84]=T,e[85]=C,e[86]=w,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=i.jsx(pt,{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=i.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 ct(s){return s.items}function be(s){const e=z.c(8),{title:t,description:r}=s;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsx("div",{className:"flex size-10 items-center justify-center rounded-full bg-muted",children:i.jsx(we,{size:18,className:"text-muted-foreground"})}),e[0]=l):l=e[0];let o;e[1]!==t?(o=i.jsx("p",{className:"text-sm font-medium",children:t}),e[1]=t,e[2]=o):o=e[2];let n;e[3]!==r?(n=i.jsx("p",{className:"text-xs text-muted-foreground",children:r}),e[3]=r,e[4]=n):n=e[4];let a;return e[5]!==o||e[6]!==n?(a=i.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 at(s){const e=z.c(34),{item:t,onDelete:r}=s;let l;e[0]!==t.key?(l=Qe(t.key),e[0]=t.key,e[1]=l):l=e[1];const o=l;let n;e[2]!==t.key?(n=Ye(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?i.jsx("img",{src:t.publicUrl,alt:t.key,loading:"lazy",className:"block h-auto w-full",onError:mt}):i.jsx("div",{className:"flex aspect-square items-center justify-center",children:i.jsx(Ce,{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=i.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=i.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=Je(t.size),e[17]=t.size,e[18]=g):g=e[18];let u;e[19]!==o||e[20]!==g?(u=i.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=i.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]!==r?(x=i.jsx(ft,{item:t,onDelete:r}),e[25]=t,e[26]=r,e[27]=x):x=e[27];let f;e[28]!==h||e[29]!==x?(f=i.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=i.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 mt(s){s.target.style.display="none"}function ft(s){const e=z.c(36),{item:t,onDelete:r}=s,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=i.jsx(Se,{size:14}),e[5]=y):y=e[5];let p;e[6]!==m?(p=i.jsx(Re,{asChild:!0,children:i.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?i.jsx(Ne,{size:14}):i.jsx(ve,{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=i.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=i.jsx(_e,{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=i.jsx(ue,{asChild:!0,children:i.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=i.jsx(ze,{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]!==r||e[27]!==A?(k=i.jsxs(ue,{variant:"destructive",onClick:r,children:[v,A]}),e[26]=r,e[27]=A,e[28]=k):k=e[28];let j;e[29]!==b||e[30]!==k||e[31]!==u?(j=i.jsxs(Be,{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=i.jsxs(Le,{children:[p,j]}),e[33]=j,e[34]=p,e[35]=P):P=e[35],P}function pt(s){const e=z.c(47),{configId:t,item:r,onClose:l}=s,o=ae(),n=Xe();let a;e[0]!==t||e[1]!==n||e[2]!==r||e[3]!==l||e[4]!==o?(a=async function(){if(r)try{await n.mutateAsync({configId:t,key:r.key}),ce.success(o("assets.browser.deleted")),l()}catch{ce.error(o("assets.browser.deleteFailed"))}},e[0]=t,e[1]=n,e[2]=r,e[3]=l,e[4]=o,e[5]=a):a=e[5];const c=a,m=!!r;let y;e[6]!==l?(y=w=>!w&&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=i.jsx(Fe,{children:p}),e[10]=p,e[11]=d):d=e[11];let g;e[12]!==r||e[13]!==o?(g=o("assets.browser.deleteConfirmDescription",{name:r?ke(r.key):""}),e[12]=r,e[13]=o,e[14]=g):g=e[14];let u;e[15]!==g?(u=i.jsx(Ue,{children:g}),e[15]=g,e[16]=u):u=e[16];let h;e[17]!==d||e[18]!==u?(h=i.jsxs($e,{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=i.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=w=>{w.preventDefault(),c()},e[26]=c,e[27]=k):k=e[27];let j;e[28]!==n.isPending?(j=n.isPending?i.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=i.jsxs(Me,{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=i.jsxs(Te,{children:[b,S]}),e[37]=b,e[38]=S,e[39]=D):D=e[39];let N;e[40]!==D||e[41]!==h?(N=i.jsxs(Ee,{children:[h,D]}),e[40]=D,e[41]=h,e[42]=N):N=e[42];let C;return e[43]!==N||e[44]!==m||e[45]!==y?(C=i.jsx(Oe,{open:m,onOpenChange:y,children:N}),e[43]=N,e[44]=m,e[45]=y,e[46]=C):C=e[46],C}function dt(){const s=z.c(2),e=tt();let t;return s[0]!==e?(t=i.jsx(De,{tabId:"assets",children:i.jsx(rt,{virtualMcpId:e})}),s[0]=e,s[1]=t):t=s[1],t}function Us(){const s=z.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Pe.Content,{children:i.jsx(dt,{})}),s[0]=e):e=s[0],e}export{Us as default};
@@ -1,4 +1,4 @@
1
- import{c as ce,b as de,r as D,j as t,B as q,l as It,M as gt,t as oe,as as $t,h as _e,o as Se,ad as At,az as Ye,aA as Pt,a4 as zt,P as Ue,av as ht,f as Et}from"./index-z4bKt11m.js";import{C as Kt}from"./index-DZOe0ODJ.js";import{a5 as Ft,a6 as Ot,a7 as Mt,J as Ze,a8 as Rt,c as Lt,a9 as Te}from"./agent-icon-BD4DM2Lv.js";import{i as Ut}from"./Check-BZE0WrNL.js";import{t as Be}from"./ChevronUp-D5_IWEtB.js";import{c as Wt}from"./UserSquare-qgzToKNd.js";import{s as et}from"./Database01-RGlwXHSd.js";import{c as Ge,i as jt}from"./Tool01-DHi_Z7zo.js";import{a as Vt}from"./Printer-BpZBiqyG.js";import{i as tt}from"./Share07-CxuHcmnM.js";import{i as Bt}from"./GitBranch01-ddoPQdPH.js";import{i as He}from"./Globe01-DIy8wXF6.js";import{a as Gt}from"./Image01-DfaxHjlV.js";import{i as Ht}from"./SearchMd-FDCJM3CR.js";import{t as yt}from"./Stars01-B_nM3FYf.js";import{B as Jt}from"./badge-BNBGXxmC.js";import{C as bt}from"./checkbox-Dkejdmst.js";import{S as vt}from"./switch-9PLadaw_.js";import{a as Ct,b as Nt,P as St}from"./popover-CsEsUqbZ.js";import{C as Xt,a as st,b as Qt,d as qt,e as Yt,c as Zt}from"./command-D2fiEFer.js";import{g as es,s as ts}from"./gateway-client-CFIpVRaR.js";import{u as Je}from"./use-connection-CPQUKm0a.js";import{u as ss}from"./use-mcp-client-B1u2B39v.js";import{u as os}from"./use-mcp-tools-Ch_j97A3.js";import{I as ns}from"./integration-icon-DOHTaQ6D.js";import{M as as}from"./select-model-DcwphIdD.js";import{u as is}from"./use-ai-providers-B0bxSHYG.js";import{U as rs,b as ls}from"./build-improve-prompt-doc-RalyChXZ.js";import{a as Fe,c as cs,d as ms}from"./use-automations-BdS9yl-d.js";import{b as ds,a as us,t as ps,g as fs}from"./chat-context-BBVkwd3p.js";import{b as xs,C as gs,a as hs}from"./collapsible-n44mVpiB.js";import{I as ot}from"./input-C7XH8Uj_.js";import{c as js,T as ys,a as bs}from"./tooltip-BuKeolDX.js";import{u as vs}from"./shell-layout-DMJSwXH6.js";import{i as kt}from"./ArrowLeft-CyH6aWpS.js";import{i as Cs}from"./ArrowUp-Scf6R8DX.js";import{s as Ns}from"./Trash01-C6bziN5X.js";import{s as Xe}from"./XClose-Cvyz3reC.js";import{u as nt}from"./use-debounced-autosave-CyDohN_c.js";import{T as Ss,a as ks}from"./input-CSQboV8k.js";import{c as Ts,D as ws,b as _s,h as Ds,i as Is,j as $s,a as Ae}from"./dropdown-menu-Dd8nakK9.js";import{s as As}from"./Plus-D2HOi_DD.js";import{i as Qe}from"./Zap-DXNovEva.js";import{d as Ps,h as zs,c as Es,e as Ks,b as Fs,D as Os}from"./dialog-DbzCN1O8.js";import{b as Ms,a as Rs,T as at}from"./tabs-Co2GUrNY.js";import{a as We}from"./Copy01-DTHuBaTA.js";import{M as Ls}from"./monaco-editor-BHu8MLvz.js";import{A as it,a as rt,b as lt,c as ct,g as mt,d as dt,e as ut,f as pt}from"./alert-dialog-Bi9Cy1y8.js";import{S as Pe,b as ze,a as Ee,d as Ke,c as Oe}from"./select-cIekAVlM.js";import{A as Us}from"./automation-runs-DnDgp3GT.js";import{C as Ws}from"./collection-tabs-3kW0qDG6.js";import{a as Vs}from"./use-panel-navigate-BG4d0Vrr.js";import"./use-mobile-CV7f0Wqe.js";import"./index-G9Ugx8pT.js";import"./resizable-7umHaFcH.js";import"./MessageCircle01-CgotMmLL.js";import"./thread-route-B1EuqJlg.js";import"./use-route-default-main-DBXt2fvS.js";import"./hooks-CkL4R3Tj.js";import"./backoff-8mStPHYB.js";import"./task-board-lQZGfEfb.js";import"./schema-D0xfowSf.js";import"./toolbar-icon-button-8ctMGgIP.js";import"./AlertCircle-DbwtWnTP.js";import"./Tool02-JY0gm8cg.js";import"./ArrowRight-Bv0iX4wy.js";import"./TrendUp01-Bkdgpfn7.js";import"./ZoomOut-BRjMa-04.js";import"./Users03-BP-0DNhp.js";import"./CheckCircle-BKb1RVrA.js";import"./ChevronRight-DNrwFBnC.js";import"./ChevronSelectorVertical-oXn0cTzk.js";import"./DotsVertical-DE9eZKrJ.js";import"./CreditCard01-CwX6pA0M.js";import"./Download01-qX3hmvr5.js";import"./Settings02-CFcKewXh.js";import"./Eye-DXUjft5i.js";import"./File02-g-xJPix_.js";import"./SwitchHorizontal01-hHr6GOmU.js";import"./HardDrive-DU_z1AQw.js";import"./Key01-mqjfsZRe.js";import"./Link01-C656VtHx.js";import"./LinkExternal01-BkRUjBAn.js";import"./Monitor01-CQ6Zk1oP.js";import"./Sun-SBoG-e9B.js";import"./Package-t6euxYcP.js";import"./Palette-oECS8j3l.js";import"./Play-DQgzDnaW.js";import"./SearchLg-DbX4T5E-.js";import"./Shield01-HrKG6yUn.js";import"./Upload01-DC2spim9.js";import"./User01-BbOpA84p.js";import"./Users01-BOsDT0Jv.js";import"./XCircle-CuK2q_XU.js";import"./X-Bzh3NI3m.js";import"./index-Cyoz5tz5.js";import"./auth-D-2jYpOE.js";import"./drawer-CBdcJytm.js";import"./decopilot-72HlEf1U.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-Duu5Gg02.js";import"./download-app-dialog-Bsig7tOs.js";import"./use-is-desktop-app-BNujXJc_.js";import"./index-CULK6hDm.js";import"./autosend-D-BN-cv5.js";import"./thread-intent-9fI0jPLV.js";import"./slugify-CEUa2lfQ.js";import"./use-virtual-mcp-Bq1RMGPF.js";import"./use-entitlements-BWaaNeuI.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-_O_0AHeH.js";import"./use-organization-settings-C-XY0Wze.js";import"./index-B46P4HkV.js";import"./anchors-yqDzZN4K.js";import"./use-project-scope-DRope0ob.js";import"./github-repo-BknN0SVI.js";import"./use-org-notice-C5thI8aD.js";import"./command-palette-store-LVCQ6fRv.js";import"./project-icon-Cw3la58q.js";import"./required-auth-layout-WkX8CtfT.js";import"./use-org-sso-vHIufIoJ.js";import"./hooks-D09Ti1PG.js";import"./index-CuiP-22D.js";import"./form-B7dtslOD.js";import"./label-8juC5J-g.js";import"./utils-CVEq3hMx.js";import"./org-file-open-context-BgiBbqKQ.js";import"./use-mcp-prompts-DxT8Kz-M.js";import"./use-org-fs-D6lKuMAi.js";import"./editor-CpBx0ZCm.js";import"./useInfiniteQuery-C6OBOha-.js";import"./infiniteQueryObserver-BjcfJE2O.js";import"./sheet-DhNzwMUj.js";import"./table-B6mPp07a.js";import"./empty-state-BIcQyeij.js";import"./use-infinite-scroll-RrOnf-fI.js";import"./use-members-H3oi0qPu.js";import"./use-org-auth-client-ZxEGrzhh.js";import"./task-status-CLlOhQGx.js";import"./thread-sheet-body-CbIiPC8V.js";import"./useSuspenseInfiniteQuery-XFcbI_PD.js";import"./pair-B2TMNGEX.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-DUiBegp6.js";import"./usage-stats-waRf4dtg.js";import"./markdown-BhLIBmBv.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DjwQ0S-h.js";import"./types-Bh4jNqv3.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./use-navigate-to-agent-BMSyO1iB.js";import"./use-thread-outputs-DAcljy5D.js";import"./file-type-icon-C37FwvPU.js";const Ve={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:Lt},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:yt},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:Rt}},Bs=["fast","smart","thinking"];function Gs(a){const e=ce.c(19),{tier:o,onSelect:i}=a,n=de(),[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 p;e[5]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(Be,{size:14,className:"text-muted-foreground"}),e[5]=p):p=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,p]})}),e[6]=j,e[7]=c,e[8]=g):g=e[8];let h;e[9]!==i||e[10]!==n||e[11]!==o?(h=Bs.map(d=>{const x=Ve[d],b=x.icon;return t.jsxs("button",{type:"button",onClick:()=>{i(d),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)})]}),d===o&&t.jsx(Ut,{size:14,className:"text-foreground mt-0.5"})]},d)}),e[9]=i,e[10]=n,e[11]=o,e[12]=h):h=e[12];let m;e[13]!==h?(m=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]=m):m=e[14];let f;return e[15]!==s||e[16]!==g||e[17]!==m?(f=t.jsxs(St,{open:s,onOpenChange:l,children:[g,m]}),e[15]=s,e[16]=g,e[17]=m,e[18]=f):f=e[18],f}function Hs(a){const e=ce.c(27),{tier:o,onTierChange:i,override:n,onOverrideChange:s}=a,l=de(),[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 p;e[4]!==s||e[5]!==i||e[6]!==n||e[7]!==l||e[8]!==o||e[9]!==r?(p=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(Js,{override:n,onOverrideChange:s})}):t.jsx(Gs,{tier:o,onSelect:i}),e[4]=s,e[5]=i,e[6]=n,e[7]=l,e[8]=o,e[9]=r,e[10]=p):p=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 m;e[16]!==l?(m=l("automations.automationConfig.specificModel"),e[16]=l,e[17]=m):m=e[17];let f;e[18]!==h||e[19]!==m?(f=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[h,m]}),e[18]=h,e[19]=m,e[20]=f):f=e[20];let d;e[21]!==p||e[22]!==f?(d=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[p,f]}),e[21]=p,e[22]=f,e[23]=d):d=e[23];let x;return e[24]!==c||e[25]!==d?(x=t.jsxs("div",{className:"flex flex-col gap-2",children:[c,d]}),e[24]=c,e[25]=d,e[26]=x):x=e[26],x}function Js(a){const e=ce.c(25),{override:o,onOverrideChange:i}=a,n=de(),s=is(),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 p=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 m;e[15]!==n?(m=n("automations.automationConfig.pickModelPlaceholder"),e[15]=n,e[16]=m):m=e[16];let f;e[17]!==p||e[18]!==i?(f=x=>{const b=x.keyId??p??"";u(b),i({modelId:x.modelId,credentialId:b,title:x.title??x.modelId})},e[17]=p,e[18]=i,e[19]=f):f=e[19];let d;return e[20]!==p||e[21]!==h||e[22]!==m||e[23]!==f?(d=t.jsx("div",{className:"w-fit max-w-full [&_button]:rounded-md",children:t.jsx(as,{variant:"bordered",placeholder:m,model:h,credentialId:p,onCredentialChange:u,onModelChange:f})}),e[20]=p,e[21]=h,e[22]=m,e[23]=f,e[24]=d):d=e[24],d}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:Gt},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:Bt},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:Ft}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:tt,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:Vt},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:jt},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:Ot},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:Ht},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:tt},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:Mt}]},{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 Qs(a){const e=a.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,o=>o.toUpperCase()):a}function qs(a){const e=ce.c(12),{agentId:o,value:i,onChange:n}=a,s=de();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(Ys,{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 ft(a){const e=ce.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 p;e[6]!==l?(p=l&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:l}),e[6]=l,e[7]=p):p=e[7];let g;e[8]!==c||e[9]!==p?(g=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[c,p]}),e[8]=c,e[9]=p,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(Qt,{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=ce.c(27),{conn:o,label:i,icon:n,on:s,total:l,onToggle:r}=a,j=de(),u=s===l;let c;e[0]!==n||e[1]!==o?(c=o?t.jsx(ns,{icon:o.icon,name:o.title,size:"2xs"}):n?t.jsx(n,{size:14,className:"text-muted-foreground"}):t.jsx(Wt,{size:14,className:"text-muted-foreground"}),e[0]=n,e[1]=o,e[2]=c):c=e[2];let p;e[3]!==o?.title||e[4]!==i||e[5]!==j?(p=o?.title??i??j("automations.automationConfig.otherTools"),e[3]=o?.title,e[4]=i,e[5]=j,e[6]=p):p=e[6];let g;e[7]!==p?(g=t.jsx("span",{className:"truncate",children:p}),e[7]=p,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 m;e[12]!==r?(m=C=>{C.stopPropagation(),r()},e[12]=r,e[13]=m):m=e[13];let f;e[14]!==u||e[15]!==j?(f=j(u?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=u,e[15]=j,e[16]=f):f=e[16];let d;e[17]!==m||e[18]!==f?(d=t.jsx("button",{type:"button",onClick:m,className:"text-[11px] font-medium text-primary hover:underline",children:f}),e[17]=m,e[18]=f,e[19]=d):d=e[19];let x;e[20]!==h||e[21]!==d?(x=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[h,d]}),e[20]=h,e[21]=d,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 Ys(a){const e=ce.c(83),{agentId:o,value:i,onChange:n}=a,s=de(),{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=ss(u);let p;e[4]!==c?(p={client:c},e[4]=c,e[5]=p):p=e[5];const{data:g,isLoading:h}=os(p),m=Je();let f,d,x,b,C,w,N,z,_,v,S,k,E;if(e[6]!==m||e[7]!==g?.tools||e[8]!==h||e[9]!==n||e[10]!==r||e[11]!==s||e[12]!==i){const H=new Map(m.map(oo)),G=new Map;for(const T of g?.tools??[]){const A=es(T._meta)??"__other__",Q=ts(T.name,A==="__other__"?void 0:A),$=T.title,xe=$&&$!==T.name?$:Qs(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(so),J=(g?.tools??[]).map(to),B=[...Xs,...J],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 X;e[26]===Symbol.for("react.memo_cache_sentinel")?(X=t.jsx(Ge,{size:14,className:"text-muted-foreground"}),e[26]=X):X=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(Jt,{variant:"secondary",className:"ml-0.5 h-5 px-1.5 text-[11px] tabular-nums",children:[L.size,"/",B.length]});let me;e[30]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(Be,{size:14,className:"text-muted-foreground"}),e[30]=me):me=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:[X,ne,ue,me]})}),e[31]=ne,e[32]=ue,e[33]=w):w=e[33],x=Nt,S="p-0 w-80",k="start",d=qt;let ee;e[34]!==s?(ee=s("automations.automationConfig.searchToolsPlaceholder"),e[34]=s,e[35]=ee):ee=e[35],e[36]!==ee?(_=t.jsx(Yt,{placeholder:ee}),e[36]=ee,e[37]=_):_=e[37];const pe=W?s("automations.automationConfig.allToolsEnabled",{count:B.length}):s("automations.automationConfig.toolsEnabledCount",{enabled:L.size,total:B.length});let te;e[38]!==pe?(te=t.jsx("span",{className:"text-xs text-muted-foreground",children:pe}),e[38]=pe,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 fe=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]!==fe||e[55]!==se?(re=t.jsx("button",{type:"button",onClick:P,disabled:fe,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]=fe,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],f=Zt,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(Xt,{children:s("automations.automationConfig.noToolsFound")}),Tt.map(T=>{const A=T.tools.map(eo),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(ft,{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(Zs),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(ft,{value:`${$.display} ${$.name} ${T.conn?.title??""}`,checked:L.has($.name),onToggle:()=>Y($.name),title:$.display,description:$.description},$.name))},T.clientId)})]}),e[6]=m,e[7]=g?.tools,e[8]=h,e[9]=n,e[10]=r,e[11]=s,e[12]=i,e[13]=f,e[14]=d,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 f=e[13],d=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]!==f||e[64]!==N||e[65]!==z?(F=t.jsx(f,{className:N,children:z}),e[63]=f,e[64]=N,e[65]=z,e[66]=F):F=e[66];let K;e[67]!==d||e[68]!==F||e[69]!==_||e[70]!==v?(K=t.jsxs(d,{children:[_,v,F]}),e[67]=d,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 Zs(a){return a.name}function eo(a){return a.name}function to(a){return a.name}function so(a,e){return(a.conn?.title??a.clientId).localeCompare(e.conn?.title??e.clientId)}function oo(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 no(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 ao(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 io(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 ro(a,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[a]??a:a}const lo=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}];function co({automationId:a,open:e,onOpenChange:o,onCustomSelect:i,onEventSelect:n,onWebhookCreated:s}){const l=de(),{triggerAdd:r}=Fe(),[j,u]=D.useState(!1),c=e??j,p=m=>{o?o(m):u(m)},g=async m=>{try{await r.mutateAsync({automation_id:a,type:"cron",cron_expression:m}),oe.success(l("automations.addStarterPopover.starterAdded")),p(!1)}catch(f){const d=f instanceof Error?f.message:l("automations.addStarterPopover.failedAddStarter");oe.error(d)}},h=async()=>{try{const m=await r.mutateAsync({automation_id:a,type:"webhook"});p(!1),m.webhook?s?.(m.webhook):oe.success(l("automations.addStarterPopover.webhookStarterAdded"))}catch(m){const f=m instanceof Error?m.message:l("automations.addStarterPopover.failedAddWebhookStarter");oe.error(f)}};return t.jsxs(Ts,{open:c,onOpenChange:p,children:[t.jsx(ws,{asChild:!0,children:t.jsxs(q,{variant:"outline",size:"sm",children:[t.jsx(As,{size:14}),l("automations.addStarterPopover.addStarter")]})}),t.jsxs(_s,{align:"end",className:"w-[200px]",children:[t.jsxs(Ds,{children:[t.jsxs(Is,{className:"gap-2.5",children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.every")]}),t.jsx($s,{className:"w-[160px]",children:lo.map(m=>t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>g(m.cron),disabled:r.isPending,children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.everyUnit",{unit:m.label})]},m.cron))})]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{p(!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:()=>{p(!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=ce.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=de(),[p,g]=D.useState(null),[h,m]=D.useState("curl"),[f,d]=D.useState("header"),x=D.useId();let b;e[0]!==c?(b=async(V,J)=>{try{await navigator.clipboard.writeText(V),g(J),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]!==f||e[3]!==s||e[4]!==n?(w=n&&s&&f==="url"?`${n.replace(/\/$/,"")}/${s}`:n??"",e[2]=f,e[3]=s,e[4]=n,e[5]=w):w=e[5];const N=w,z=n&&s?f==="header"?`curl -X POST "${N}" \\
1
+ import{c as ce,b as de,r as D,j as t,B as q,l as It,M as gt,t as oe,as as $t,h as _e,o as Se,ad as At,az as Ye,aA as Pt,a4 as zt,P as Ue,av as ht,f as Et}from"./index-Dc7hzqoi.js";import{C as Kt}from"./index-BH7uCYoT.js";import{a5 as Ft,a6 as Ot,a7 as Mt,J as Ze,a8 as Rt,c as Lt,a9 as Te}from"./agent-icon-CczrFEe7.js";import{i as Ut}from"./Check-B3RSsr_D.js";import{t as Be}from"./ChevronUp-DiYhGG4T.js";import{c as Wt}from"./UserSquare-B2lKdt4w.js";import{s as et}from"./Database01-C0YJpjc3.js";import{c as Ge,i as jt}from"./Tool01-DouqPjim.js";import{a as Vt}from"./Printer-CvyxF9Jo.js";import{i as tt}from"./Share07-wC47qn2E.js";import{i as Bt}from"./GitBranch01-rWb2SJK9.js";import{i as He}from"./Globe01-D6FaaFR2.js";import{a as Gt}from"./Image01-CxnjAzbb.js";import{i as Ht}from"./SearchMd-C45D2PMI.js";import{t as yt}from"./Stars01-oAh9h5b5.js";import{B as Jt}from"./badge-Bu51Hlti.js";import{C as bt}from"./checkbox-jLf7fBuW.js";import{S as vt}from"./switch-BQFtt3BH.js";import{a as Ct,b as Nt,P as St}from"./popover-yk_ePqAA.js";import{C as Xt,a as st,b as Qt,d as qt,e as Yt,c as Zt}from"./command-B-XD29Nx.js";import{g as es,s as ts}from"./gateway-client-BuiOykcN.js";import{u as Je}from"./use-connection-Ba04fHwa.js";import{u as ss}from"./use-mcp-client-e_hCatGm.js";import{u as os}from"./use-mcp-tools-g86k4oib.js";import{I as ns}from"./integration-icon-BeEdjsn9.js";import{M as as}from"./select-model-DPv-zVVj.js";import{u as is}from"./use-ai-providers-BnF5Rw_n.js";import{U as rs,b as ls}from"./build-improve-prompt-doc-Cedp3vV1.js";import{a as Fe,c as cs,d as ms}from"./use-automations-Bo0S3g8m.js";import{b as ds,a as us,t as ps,g as fs}from"./chat-context-tZCX_cqt.js";import{b as xs,C as gs,a as hs}from"./collapsible-CTgXdVQa.js";import{I as ot}from"./input-DXlaTX4w.js";import{c as js,T as ys,a as bs}from"./tooltip-DV2xHesQ.js";import{u as vs}from"./shell-layout-Ce0aCJuX.js";import{i as kt}from"./ArrowLeft-CjYy5Nhj.js";import{i as Cs}from"./ArrowUp-Cii1LHW7.js";import{s as Ns}from"./Trash01-nl-t4IoV.js";import{s as Xe}from"./XClose-BgzK-Dwz.js";import{u as nt}from"./use-debounced-autosave-DqyNKPJM.js";import{T as Ss,a as ks}from"./input-uIV5S_EX.js";import{c as Ts,D as ws,b as _s,h as Ds,i as Is,j as $s,a as Ae}from"./dropdown-menu-C5iafa8S.js";import{s as As}from"./Plus-CVauOqLT.js";import{i as Qe}from"./Zap-B6zkqKWB.js";import{d as Ps,h as zs,c as Es,e as Ks,b as Fs,D as Os}from"./dialog-llvhXw2o.js";import{b as Ms,a as Rs,T as at}from"./tabs-CLziM0Ww.js";import{a as We}from"./Copy01-nMxlBfeT.js";import{M as Ls}from"./monaco-editor-CMRYkmyb.js";import{A as it,a as rt,b as lt,c as ct,g as mt,d as dt,e as ut,f as pt}from"./alert-dialog-BI-B_8hq.js";import{S as Pe,b as ze,a as Ee,d as Ke,c as Oe}from"./select-BkKPcZFe.js";import{A as Us}from"./automation-runs-CnOOOwZJ.js";import{C as Ws}from"./collection-tabs-CrXIJeNf.js";import{a as Vs}from"./use-panel-navigate-WrD0KEYx.js";import"./use-mobile-hIijCK0k.js";import"./index-CSd_k8Np.js";import"./resizable-Bt7dvMCc.js";import"./MessageCircle01-DBcg2aiD.js";import"./thread-route-BBf64Mwk.js";import"./use-route-default-main-Djaj_cL9.js";import"./hooks-DZOMRp7D.js";import"./backoff-8mStPHYB.js";import"./task-board-DrUf5p-Z.js";import"./schema-1zAO-l7e.js";import"./toolbar-icon-button-PuQFE8Y9.js";import"./AlertCircle-CMjsP_Tk.js";import"./Tool02-CATStXCy.js";import"./ArrowRight-CLncCNat.js";import"./TrendUp01-BFAEMx9E.js";import"./ZoomOut-BPxprY2s.js";import"./Users03-Y0Jco4zL.js";import"./CheckCircle-DHXQFnpK.js";import"./ChevronRight-USKkhEpL.js";import"./ChevronSelectorVertical-DpRb2z1l.js";import"./DotsVertical-CsjwfYzf.js";import"./CreditCard01-CWXVH3ZM.js";import"./Download01-BRrSA3Yx.js";import"./Settings02-Cyf85ea0.js";import"./Eye-Dyg2WPG4.js";import"./File02-BvR-HYxK.js";import"./SwitchHorizontal01-DpXsFGyJ.js";import"./HardDrive-DNTPLPT4.js";import"./Key01-CIXwHMRo.js";import"./Link01-C0FvgZZB.js";import"./LinkExternal01-AWlhN5o7.js";import"./Monitor01-Ccs1gh2Z.js";import"./Sun-0Ied-kyZ.js";import"./Package-nTbucmaQ.js";import"./Palette-DSdn1Xis.js";import"./Play-lMuWOObF.js";import"./SearchLg-BrrPVuXr.js";import"./Shield01-CqB4I7qm.js";import"./Upload01-B4Fqdkae.js";import"./User01-ClMaVCaJ.js";import"./Users01-BFhxJVhO.js";import"./XCircle-CleKT0Id.js";import"./X-CFCE4a-Q.js";import"./index-BD213WLU.js";import"./auth-DhzAq_9m.js";import"./drawer-BIjkXMV3.js";import"./decopilot-BvepxP_-.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-C9HiP4eS.js";import"./download-app-dialog-D_4eQbbs.js";import"./use-is-desktop-app-BNujXJc_.js";import"./index-Bb-Re5q8.js";import"./autosend-BberXmli.js";import"./thread-intent-F-sZEflj.js";import"./slugify-CEUa2lfQ.js";import"./use-virtual-mcp-DkK7ErtB.js";import"./use-entitlements-Dl7pAsQ5.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BpuQrfKN.js";import"./use-organization-settings-CKbX2SdA.js";import"./index-DWw5wi2G.js";import"./anchors-yqDzZN4K.js";import"./use-project-scope-DU0-JxYr.js";import"./github-repo-BknN0SVI.js";import"./use-org-notice-CyiiFkRG.js";import"./command-palette-store-DK-56E2K.js";import"./project-icon-MWmzrrm8.js";import"./required-auth-layout-RoMNnMPO.js";import"./use-org-sso-BvfIL0yq.js";import"./hooks-BoX5BC-f.js";import"./index-DiULBiX9.js";import"./form-CSXgIHLz.js";import"./label-BMxIRiEr.js";import"./utils-CVEq3hMx.js";import"./org-file-open-context-BCUpiY_R.js";import"./use-mcp-prompts-DJRXjL4_.js";import"./use-org-fs-Du-ErRPs.js";import"./editor-D4Ls62vg.js";import"./useInfiniteQuery-CspLjV7h.js";import"./infiniteQueryObserver-CjWlcBHD.js";import"./sheet-i72Qx7sL.js";import"./table-6I6YKvFY.js";import"./empty-state-CyICQznD.js";import"./use-infinite-scroll-PhBGPm8H.js";import"./use-members-DPYHJDe2.js";import"./use-org-auth-client-DbPU3bA-.js";import"./task-status-DhCT2ly_.js";import"./thread-sheet-body-B4OUWlMn.js";import"./useSuspenseInfiniteQuery-BiQYAhJn.js";import"./pair-B46EBBjF.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-C_ctOeuP.js";import"./usage-stats-vMRDbAUM.js";import"./markdown-DGWjAeXL.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BTjC7Gse.js";import"./types-27TVsPN_.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./use-navigate-to-agent-C8pu0B4z.js";import"./use-thread-outputs-Dq-RN0P_.js";import"./file-type-icon-C9Qn36v4.js";const Ve={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:Lt},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:yt},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:Rt}},Bs=["fast","smart","thinking"];function Gs(a){const e=ce.c(19),{tier:o,onSelect:i}=a,n=de(),[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 p;e[5]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(Be,{size:14,className:"text-muted-foreground"}),e[5]=p):p=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,p]})}),e[6]=j,e[7]=c,e[8]=g):g=e[8];let h;e[9]!==i||e[10]!==n||e[11]!==o?(h=Bs.map(d=>{const x=Ve[d],b=x.icon;return t.jsxs("button",{type:"button",onClick:()=>{i(d),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)})]}),d===o&&t.jsx(Ut,{size:14,className:"text-foreground mt-0.5"})]},d)}),e[9]=i,e[10]=n,e[11]=o,e[12]=h):h=e[12];let m;e[13]!==h?(m=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]=m):m=e[14];let f;return e[15]!==s||e[16]!==g||e[17]!==m?(f=t.jsxs(St,{open:s,onOpenChange:l,children:[g,m]}),e[15]=s,e[16]=g,e[17]=m,e[18]=f):f=e[18],f}function Hs(a){const e=ce.c(27),{tier:o,onTierChange:i,override:n,onOverrideChange:s}=a,l=de(),[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 p;e[4]!==s||e[5]!==i||e[6]!==n||e[7]!==l||e[8]!==o||e[9]!==r?(p=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(Js,{override:n,onOverrideChange:s})}):t.jsx(Gs,{tier:o,onSelect:i}),e[4]=s,e[5]=i,e[6]=n,e[7]=l,e[8]=o,e[9]=r,e[10]=p):p=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 m;e[16]!==l?(m=l("automations.automationConfig.specificModel"),e[16]=l,e[17]=m):m=e[17];let f;e[18]!==h||e[19]!==m?(f=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[h,m]}),e[18]=h,e[19]=m,e[20]=f):f=e[20];let d;e[21]!==p||e[22]!==f?(d=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[p,f]}),e[21]=p,e[22]=f,e[23]=d):d=e[23];let x;return e[24]!==c||e[25]!==d?(x=t.jsxs("div",{className:"flex flex-col gap-2",children:[c,d]}),e[24]=c,e[25]=d,e[26]=x):x=e[26],x}function Js(a){const e=ce.c(25),{override:o,onOverrideChange:i}=a,n=de(),s=is(),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 p=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 m;e[15]!==n?(m=n("automations.automationConfig.pickModelPlaceholder"),e[15]=n,e[16]=m):m=e[16];let f;e[17]!==p||e[18]!==i?(f=x=>{const b=x.keyId??p??"";u(b),i({modelId:x.modelId,credentialId:b,title:x.title??x.modelId})},e[17]=p,e[18]=i,e[19]=f):f=e[19];let d;return e[20]!==p||e[21]!==h||e[22]!==m||e[23]!==f?(d=t.jsx("div",{className:"w-fit max-w-full [&_button]:rounded-md",children:t.jsx(as,{variant:"bordered",placeholder:m,model:h,credentialId:p,onCredentialChange:u,onModelChange:f})}),e[20]=p,e[21]=h,e[22]=m,e[23]=f,e[24]=d):d=e[24],d}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:Gt},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:Bt},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:Ft}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:tt,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:Vt},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:jt},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:Ot},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:Ht},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:tt},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:Mt}]},{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 Qs(a){const e=a.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,o=>o.toUpperCase()):a}function qs(a){const e=ce.c(12),{agentId:o,value:i,onChange:n}=a,s=de();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(Ys,{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 ft(a){const e=ce.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 p;e[6]!==l?(p=l&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:l}),e[6]=l,e[7]=p):p=e[7];let g;e[8]!==c||e[9]!==p?(g=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[c,p]}),e[8]=c,e[9]=p,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(Qt,{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=ce.c(27),{conn:o,label:i,icon:n,on:s,total:l,onToggle:r}=a,j=de(),u=s===l;let c;e[0]!==n||e[1]!==o?(c=o?t.jsx(ns,{icon:o.icon,name:o.title,size:"2xs"}):n?t.jsx(n,{size:14,className:"text-muted-foreground"}):t.jsx(Wt,{size:14,className:"text-muted-foreground"}),e[0]=n,e[1]=o,e[2]=c):c=e[2];let p;e[3]!==o?.title||e[4]!==i||e[5]!==j?(p=o?.title??i??j("automations.automationConfig.otherTools"),e[3]=o?.title,e[4]=i,e[5]=j,e[6]=p):p=e[6];let g;e[7]!==p?(g=t.jsx("span",{className:"truncate",children:p}),e[7]=p,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 m;e[12]!==r?(m=C=>{C.stopPropagation(),r()},e[12]=r,e[13]=m):m=e[13];let f;e[14]!==u||e[15]!==j?(f=j(u?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=u,e[15]=j,e[16]=f):f=e[16];let d;e[17]!==m||e[18]!==f?(d=t.jsx("button",{type:"button",onClick:m,className:"text-[11px] font-medium text-primary hover:underline",children:f}),e[17]=m,e[18]=f,e[19]=d):d=e[19];let x;e[20]!==h||e[21]!==d?(x=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[h,d]}),e[20]=h,e[21]=d,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 Ys(a){const e=ce.c(83),{agentId:o,value:i,onChange:n}=a,s=de(),{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=ss(u);let p;e[4]!==c?(p={client:c},e[4]=c,e[5]=p):p=e[5];const{data:g,isLoading:h}=os(p),m=Je();let f,d,x,b,C,w,N,z,_,v,S,k,E;if(e[6]!==m||e[7]!==g?.tools||e[8]!==h||e[9]!==n||e[10]!==r||e[11]!==s||e[12]!==i){const H=new Map(m.map(oo)),G=new Map;for(const T of g?.tools??[]){const A=es(T._meta)??"__other__",Q=ts(T.name,A==="__other__"?void 0:A),$=T.title,xe=$&&$!==T.name?$:Qs(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(so),J=(g?.tools??[]).map(to),B=[...Xs,...J],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 X;e[26]===Symbol.for("react.memo_cache_sentinel")?(X=t.jsx(Ge,{size:14,className:"text-muted-foreground"}),e[26]=X):X=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(Jt,{variant:"secondary",className:"ml-0.5 h-5 px-1.5 text-[11px] tabular-nums",children:[L.size,"/",B.length]});let me;e[30]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(Be,{size:14,className:"text-muted-foreground"}),e[30]=me):me=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:[X,ne,ue,me]})}),e[31]=ne,e[32]=ue,e[33]=w):w=e[33],x=Nt,S="p-0 w-80",k="start",d=qt;let ee;e[34]!==s?(ee=s("automations.automationConfig.searchToolsPlaceholder"),e[34]=s,e[35]=ee):ee=e[35],e[36]!==ee?(_=t.jsx(Yt,{placeholder:ee}),e[36]=ee,e[37]=_):_=e[37];const pe=W?s("automations.automationConfig.allToolsEnabled",{count:B.length}):s("automations.automationConfig.toolsEnabledCount",{enabled:L.size,total:B.length});let te;e[38]!==pe?(te=t.jsx("span",{className:"text-xs text-muted-foreground",children:pe}),e[38]=pe,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 fe=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]!==fe||e[55]!==se?(re=t.jsx("button",{type:"button",onClick:P,disabled:fe,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]=fe,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],f=Zt,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(Xt,{children:s("automations.automationConfig.noToolsFound")}),Tt.map(T=>{const A=T.tools.map(eo),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(ft,{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(Zs),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(ft,{value:`${$.display} ${$.name} ${T.conn?.title??""}`,checked:L.has($.name),onToggle:()=>Y($.name),title:$.display,description:$.description},$.name))},T.clientId)})]}),e[6]=m,e[7]=g?.tools,e[8]=h,e[9]=n,e[10]=r,e[11]=s,e[12]=i,e[13]=f,e[14]=d,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 f=e[13],d=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]!==f||e[64]!==N||e[65]!==z?(F=t.jsx(f,{className:N,children:z}),e[63]=f,e[64]=N,e[65]=z,e[66]=F):F=e[66];let K;e[67]!==d||e[68]!==F||e[69]!==_||e[70]!==v?(K=t.jsxs(d,{children:[_,v,F]}),e[67]=d,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 Zs(a){return a.name}function eo(a){return a.name}function to(a){return a.name}function so(a,e){return(a.conn?.title??a.clientId).localeCompare(e.conn?.title??e.clientId)}function oo(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 no(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 ao(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 io(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 ro(a,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[a]??a:a}const lo=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}];function co({automationId:a,open:e,onOpenChange:o,onCustomSelect:i,onEventSelect:n,onWebhookCreated:s}){const l=de(),{triggerAdd:r}=Fe(),[j,u]=D.useState(!1),c=e??j,p=m=>{o?o(m):u(m)},g=async m=>{try{await r.mutateAsync({automation_id:a,type:"cron",cron_expression:m}),oe.success(l("automations.addStarterPopover.starterAdded")),p(!1)}catch(f){const d=f instanceof Error?f.message:l("automations.addStarterPopover.failedAddStarter");oe.error(d)}},h=async()=>{try{const m=await r.mutateAsync({automation_id:a,type:"webhook"});p(!1),m.webhook?s?.(m.webhook):oe.success(l("automations.addStarterPopover.webhookStarterAdded"))}catch(m){const f=m instanceof Error?m.message:l("automations.addStarterPopover.failedAddWebhookStarter");oe.error(f)}};return t.jsxs(Ts,{open:c,onOpenChange:p,children:[t.jsx(ws,{asChild:!0,children:t.jsxs(q,{variant:"outline",size:"sm",children:[t.jsx(As,{size:14}),l("automations.addStarterPopover.addStarter")]})}),t.jsxs(_s,{align:"end",className:"w-[200px]",children:[t.jsxs(Ds,{children:[t.jsxs(Is,{className:"gap-2.5",children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.every")]}),t.jsx($s,{className:"w-[160px]",children:lo.map(m=>t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>g(m.cron),disabled:r.isPending,children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.everyUnit",{unit:m.label})]},m.cron))})]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{p(!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:()=>{p(!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=ce.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=de(),[p,g]=D.useState(null),[h,m]=D.useState("curl"),[f,d]=D.useState("header"),x=D.useId();let b;e[0]!==c?(b=async(V,J)=>{try{await navigator.clipboard.writeText(V),g(J),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]!==f||e[3]!==s||e[4]!==n?(w=n&&s&&f==="url"?`${n.replace(/\/$/,"")}/${s}`:n??"",e[2]=f,e[3]=s,e[4]=n,e[5]=w):w=e[5];const N=w,z=n&&s?f==="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 _,b as O,r as G,j as e,P as m,o as Q,B as V,av as U}from"./index-z4bKt11m.js";import{C as W}from"./index-DZOe0ODJ.js";import{s as X}from"./Plus-D2HOi_DD.js";import{M as Y}from"./agent-icon-BD4DM2Lv.js";import{i as F}from"./Zap-DXNovEva.js";import{S as Z}from"./search-input-DpLbMQRj.js";import{E as $}from"./empty-state-BIcQyeij.js";import{u as tt,a as et,b as it}from"./use-automations-BdS9yl-d.js";import{a as ot}from"./use-panel-navigate-BG4d0Vrr.js";import{A as st}from"./automation-list-row-DVPV4sOa.js";import{b as rt}from"./thread-route-B1EuqJlg.js";import"./use-mobile-CV7f0Wqe.js";import"./index-G9Ugx8pT.js";import"./resizable-7umHaFcH.js";import"./MessageCircle01-CgotMmLL.js";import"./use-route-default-main-DBXt2fvS.js";import"./hooks-CkL4R3Tj.js";import"./use-mcp-client-B1u2B39v.js";import"./auth-D-2jYpOE.js";import"./backoff-8mStPHYB.js";import"./task-board-lQZGfEfb.js";import"./schema-D0xfowSf.js";import"./tooltip-BuKeolDX.js";import"./index-B46P4HkV.js";import"./toolbar-icon-button-8ctMGgIP.js";import"./AlertCircle-DbwtWnTP.js";import"./Tool01-DHi_Z7zo.js";import"./ArrowUp-Scf6R8DX.js";import"./ArrowLeft-CyH6aWpS.js";import"./Tool02-JY0gm8cg.js";import"./ArrowRight-Bv0iX4wy.js";import"./TrendUp01-Bkdgpfn7.js";import"./ZoomOut-BRjMa-04.js";import"./Users03-BP-0DNhp.js";import"./CheckCircle-BKb1RVrA.js";import"./Check-BZE0WrNL.js";import"./ChevronUp-D5_IWEtB.js";import"./ChevronRight-DNrwFBnC.js";import"./ChevronSelectorVertical-oXn0cTzk.js";import"./DotsVertical-DE9eZKrJ.js";import"./UserSquare-qgzToKNd.js";import"./Copy01-DTHuBaTA.js";import"./CreditCard01-CwX6pA0M.js";import"./Database01-RGlwXHSd.js";import"./Download01-qX3hmvr5.js";import"./Printer-BpZBiqyG.js";import"./Settings02-CFcKewXh.js";import"./Eye-DXUjft5i.js";import"./File02-g-xJPix_.js";import"./Share07-CxuHcmnM.js";import"./GitBranch01-ddoPQdPH.js";import"./Globe01-DIy8wXF6.js";import"./SwitchHorizontal01-hHr6GOmU.js";import"./HardDrive-DU_z1AQw.js";import"./Image01-DfaxHjlV.js";import"./Key01-mqjfsZRe.js";import"./Link01-C656VtHx.js";import"./LinkExternal01-BkRUjBAn.js";import"./Monitor01-CQ6Zk1oP.js";import"./Sun-SBoG-e9B.js";import"./Package-t6euxYcP.js";import"./Palette-oECS8j3l.js";import"./Play-DQgzDnaW.js";import"./SearchLg-DbX4T5E-.js";import"./SearchMd-FDCJM3CR.js";import"./Shield01-HrKG6yUn.js";import"./Stars01-B_nM3FYf.js";import"./Trash01-C6bziN5X.js";import"./Upload01-DC2spim9.js";import"./User01-BbOpA84p.js";import"./Users01-BOsDT0Jv.js";import"./XCircle-CuK2q_XU.js";import"./XClose-Cvyz3reC.js";import"./X-Bzh3NI3m.js";import"./use-project-scope-DRope0ob.js";import"./use-virtual-mcp-Bq1RMGPF.js";import"./github-repo-BknN0SVI.js";import"./alert-dialog-Bi9Cy1y8.js";import"./dropdown-menu-Dd8nakK9.js";function nt(o){if(!(o instanceof Error))return!1;const t=o.message.toLowerCase();return t.includes("relation")&&t.includes("does not exist")}function mt(o){const t=_.c(45),{virtualMcpId:r}=o,i=O(),{openPanel:n}=ot(),{data:M,error:D}=tt(r),b=M===void 0?[]:M,{create:y}=et(),[P,H]=G.useState("");if(D&&nt(D)){let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=e.jsx(Y,{size:48,className:"text-muted-foreground"}),t[0]=s):s=t[0];let x;t[1]!==i?(x=i("automations.setupRequired.title"),t[1]=i,t[2]=x):x=t[2];let h;t[3]!==i?(h=i("automations.setupRequired.description"),t[3]=i,t[4]=h):h=t[4];let j;t[5]!==n?(j=()=>n("settings"),t[5]=n,t[6]=j):j=t[6];let g;t[7]!==i?(g=i("automations.setupRequired.goToSetup"),t[7]=i,t[8]=g):g=t[8];let C;t[9]!==j||t[10]!==g?(C=e.jsx(V,{size:"sm",onClick:j,children:g}),t[9]=j,t[10]=g,t[11]=C):C=t[11];let S;return t[12]!==x||t[13]!==h||t[14]!==C?(S=e.jsx(m,{children:e.jsx(m.Content,{children:e.jsx(m.Container,{children:e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:s,title:x,description:h,actions:C})})})})}),t[12]=x,t[13]=h,t[14]=C,t[15]=S):S=t[15],S}const J=P.toLowerCase(),q=b.filter(s=>s.name.toLowerCase().includes(J));let v;t[16]!==n?(v=s=>n(`automation:${s}`),t[16]=n,t[17]=v):v=t[17];const B=v,R=async()=>{if(y.isPending)return;Q("automation_new_clicked",{virtual_mcp_id:r,existing_count:b.length});const s=await y.mutateAsync(it(r));B(s.id)},K=y.isPending;let w;t[18]===Symbol.for("react.memo_cache_sentinel")?(w=e.jsx(X,{size:14}),t[18]=w):w=t[18];let a;t[19]!==i?(a=i("automations.automationsList.newAutomation"),t[19]=i,t[20]=a):a=t[20];let A;t[21]!==y.isPending||t[22]!==R||t[23]!==a?(A=e.jsxs(V,{size:"sm",onClick:R,disabled:K,children:[w,a]}),t[21]=y.isPending,t[22]=R,t[23]=a,t[24]=A):A=t[24];const L=A,T=m,E=m,k=m;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(m.Title,{children:l}),t[27]=l,t[28]=c):c=t[28];const z=b.length>0&&e.jsx(Z,{value:P,onChange:H,placeholder:i("automations.automationsList.searchPlaceholder"),className:"w-full md:w-[375px]"});let p;t[29]!==L||t[30]!==z?(p=e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[z,L]}),t[29]=L,t[30]=z,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 I=b.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.emptyTitle"),description:i("automations.automationsList.emptyDescription"),actions:L})}):q.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{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:q.map(s=>e.jsx(st,{automation:s,onClick:()=>B(s.id)},s.id))});let d;t[35]!==u||t[36]!==I||t[37]!==k.Container?(d=e.jsxs(k.Container,{children:[u,I]}),t[35]=u,t[36]=I,t[37]=k.Container,t[38]=d):d=t[38];let f;t[39]!==d||t[40]!==E.Content?(f=e.jsx(E.Content,{children:d}),t[39]=d,t[40]=E.Content,t[41]=f):f=t[41];let N;return t[42]!==T||t[43]!==f?(N=e.jsx(T,{children:f}),t[42]=T,t[43]=f,t[44]=N):N=t[44],N}function at(o){const t=_.c(3),{virtualMcpId:r}=o;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]!==r?(n=e.jsx(G.Suspense,{fallback:i,children:e.jsx(mt,{virtualMcpId:r})}),t[1]=r,t[2]=n):n=t[2],n}function lt(){const o=_.c(2),t=rt();let r;return o[0]!==t?(r=e.jsx(at,{virtualMcpId:t}),o[0]=t,o[1]=r):r=o[1],r}function Ie(){const o=_.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(W.Content,{children:e.jsx(lt,{})}),o[0]=t):t=o[0],t}export{Ie as default};
1
+ import{c as _,b as O,r as G,j as e,P as m,o as Q,B as V,av as U}from"./index-Dc7hzqoi.js";import{C as W}from"./index-BH7uCYoT.js";import{s as X}from"./Plus-CVauOqLT.js";import{M as Y}from"./agent-icon-CczrFEe7.js";import{i as F}from"./Zap-B6zkqKWB.js";import{S as Z}from"./search-input-Pobww52G.js";import{E as $}from"./empty-state-CyICQznD.js";import{u as tt,a as et,b as it}from"./use-automations-Bo0S3g8m.js";import{a as ot}from"./use-panel-navigate-WrD0KEYx.js";import{A as st}from"./automation-list-row-Btr-Kty6.js";import{b as rt}from"./thread-route-BBf64Mwk.js";import"./use-mobile-hIijCK0k.js";import"./index-CSd_k8Np.js";import"./resizable-Bt7dvMCc.js";import"./MessageCircle01-DBcg2aiD.js";import"./use-route-default-main-Djaj_cL9.js";import"./hooks-DZOMRp7D.js";import"./use-mcp-client-e_hCatGm.js";import"./auth-DhzAq_9m.js";import"./backoff-8mStPHYB.js";import"./task-board-DrUf5p-Z.js";import"./schema-1zAO-l7e.js";import"./tooltip-DV2xHesQ.js";import"./index-DWw5wi2G.js";import"./toolbar-icon-button-PuQFE8Y9.js";import"./AlertCircle-CMjsP_Tk.js";import"./Tool01-DouqPjim.js";import"./ArrowUp-Cii1LHW7.js";import"./ArrowLeft-CjYy5Nhj.js";import"./Tool02-CATStXCy.js";import"./ArrowRight-CLncCNat.js";import"./TrendUp01-BFAEMx9E.js";import"./ZoomOut-BPxprY2s.js";import"./Users03-Y0Jco4zL.js";import"./CheckCircle-DHXQFnpK.js";import"./Check-B3RSsr_D.js";import"./ChevronUp-DiYhGG4T.js";import"./ChevronRight-USKkhEpL.js";import"./ChevronSelectorVertical-DpRb2z1l.js";import"./DotsVertical-CsjwfYzf.js";import"./UserSquare-B2lKdt4w.js";import"./Copy01-nMxlBfeT.js";import"./CreditCard01-CWXVH3ZM.js";import"./Database01-C0YJpjc3.js";import"./Download01-BRrSA3Yx.js";import"./Printer-CvyxF9Jo.js";import"./Settings02-Cyf85ea0.js";import"./Eye-Dyg2WPG4.js";import"./File02-BvR-HYxK.js";import"./Share07-wC47qn2E.js";import"./GitBranch01-rWb2SJK9.js";import"./Globe01-D6FaaFR2.js";import"./SwitchHorizontal01-DpXsFGyJ.js";import"./HardDrive-DNTPLPT4.js";import"./Image01-CxnjAzbb.js";import"./Key01-CIXwHMRo.js";import"./Link01-C0FvgZZB.js";import"./LinkExternal01-AWlhN5o7.js";import"./Monitor01-Ccs1gh2Z.js";import"./Sun-0Ied-kyZ.js";import"./Package-nTbucmaQ.js";import"./Palette-DSdn1Xis.js";import"./Play-lMuWOObF.js";import"./SearchLg-BrrPVuXr.js";import"./SearchMd-C45D2PMI.js";import"./Shield01-CqB4I7qm.js";import"./Stars01-oAh9h5b5.js";import"./Trash01-nl-t4IoV.js";import"./Upload01-B4Fqdkae.js";import"./User01-ClMaVCaJ.js";import"./Users01-BFhxJVhO.js";import"./XCircle-CleKT0Id.js";import"./XClose-BgzK-Dwz.js";import"./X-CFCE4a-Q.js";import"./use-project-scope-DU0-JxYr.js";import"./use-virtual-mcp-DkK7ErtB.js";import"./github-repo-BknN0SVI.js";import"./alert-dialog-BI-B_8hq.js";import"./dropdown-menu-C5iafa8S.js";function nt(o){if(!(o instanceof Error))return!1;const t=o.message.toLowerCase();return t.includes("relation")&&t.includes("does not exist")}function mt(o){const t=_.c(45),{virtualMcpId:r}=o,i=O(),{openPanel:n}=ot(),{data:M,error:D}=tt(r),b=M===void 0?[]:M,{create:y}=et(),[P,H]=G.useState("");if(D&&nt(D)){let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=e.jsx(Y,{size:48,className:"text-muted-foreground"}),t[0]=s):s=t[0];let x;t[1]!==i?(x=i("automations.setupRequired.title"),t[1]=i,t[2]=x):x=t[2];let h;t[3]!==i?(h=i("automations.setupRequired.description"),t[3]=i,t[4]=h):h=t[4];let j;t[5]!==n?(j=()=>n("settings"),t[5]=n,t[6]=j):j=t[6];let g;t[7]!==i?(g=i("automations.setupRequired.goToSetup"),t[7]=i,t[8]=g):g=t[8];let C;t[9]!==j||t[10]!==g?(C=e.jsx(V,{size:"sm",onClick:j,children:g}),t[9]=j,t[10]=g,t[11]=C):C=t[11];let S;return t[12]!==x||t[13]!==h||t[14]!==C?(S=e.jsx(m,{children:e.jsx(m.Content,{children:e.jsx(m.Container,{children:e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:s,title:x,description:h,actions:C})})})})}),t[12]=x,t[13]=h,t[14]=C,t[15]=S):S=t[15],S}const J=P.toLowerCase(),q=b.filter(s=>s.name.toLowerCase().includes(J));let v;t[16]!==n?(v=s=>n(`automation:${s}`),t[16]=n,t[17]=v):v=t[17];const B=v,R=async()=>{if(y.isPending)return;Q("automation_new_clicked",{virtual_mcp_id:r,existing_count:b.length});const s=await y.mutateAsync(it(r));B(s.id)},K=y.isPending;let w;t[18]===Symbol.for("react.memo_cache_sentinel")?(w=e.jsx(X,{size:14}),t[18]=w):w=t[18];let a;t[19]!==i?(a=i("automations.automationsList.newAutomation"),t[19]=i,t[20]=a):a=t[20];let A;t[21]!==y.isPending||t[22]!==R||t[23]!==a?(A=e.jsxs(V,{size:"sm",onClick:R,disabled:K,children:[w,a]}),t[21]=y.isPending,t[22]=R,t[23]=a,t[24]=A):A=t[24];const L=A,T=m,E=m,k=m;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(m.Title,{children:l}),t[27]=l,t[28]=c):c=t[28];const z=b.length>0&&e.jsx(Z,{value:P,onChange:H,placeholder:i("automations.automationsList.searchPlaceholder"),className:"w-full md:w-[375px]"});let p;t[29]!==L||t[30]!==z?(p=e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[z,L]}),t[29]=L,t[30]=z,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 I=b.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.emptyTitle"),description:i("automations.automationsList.emptyDescription"),actions:L})}):q.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{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:q.map(s=>e.jsx(st,{automation:s,onClick:()=>B(s.id)},s.id))});let d;t[35]!==u||t[36]!==I||t[37]!==k.Container?(d=e.jsxs(k.Container,{children:[u,I]}),t[35]=u,t[36]=I,t[37]=k.Container,t[38]=d):d=t[38];let f;t[39]!==d||t[40]!==E.Content?(f=e.jsx(E.Content,{children:d}),t[39]=d,t[40]=E.Content,t[41]=f):f=t[41];let N;return t[42]!==T||t[43]!==f?(N=e.jsx(T,{children:f}),t[42]=T,t[43]=f,t[44]=N):N=t[44],N}function at(o){const t=_.c(3),{virtualMcpId:r}=o;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]!==r?(n=e.jsx(G.Suspense,{fallback:i,children:e.jsx(mt,{virtualMcpId:r})}),t[1]=r,t[2]=n):n=t[2],n}function lt(){const o=_.c(2),t=rt();let r;return o[0]!==t?(r=e.jsx(at,{virtualMcpId:t}),o[0]=t,o[1]=r):r=o[1],r}function Ie(){const o=_.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(W.Content,{children:e.jsx(lt,{})}),o[0]=t):t=o[0],t}export{Ie as default};
@@ -1 +1 @@
1
- import{c as M,j as i,r as _,E as F,b as w,M as L,W as U,x as W,e as $}from"./index-z4bKt11m.js";import{C as D}from"./index-DZOe0ODJ.js";import{u as B}from"./use-mcp-client-B1u2B39v.js";import{C as H,a as K}from"./companion-mcps-section-BcoKVpmX.js";import{c as q}from"./use-connect-companion-_GDNSGRN.js";import{C as v,a as z}from"./connect-layout-BQblJmFQ.js";import{p as G}from"./self-tool-result-8OxPN9Nm.js";import{a as J}from"./use-panel-navigate-BG4d0Vrr.js";import"./use-mobile-CV7f0Wqe.js";import"./index-G9Ugx8pT.js";import"./resizable-7umHaFcH.js";import"./MessageCircle01-CgotMmLL.js";import"./thread-route-B1EuqJlg.js";import"./use-route-default-main-DBXt2fvS.js";import"./hooks-CkL4R3Tj.js";import"./backoff-8mStPHYB.js";import"./task-board-lQZGfEfb.js";import"./schema-D0xfowSf.js";import"./tooltip-BuKeolDX.js";import"./index-B46P4HkV.js";import"./toolbar-icon-button-8ctMGgIP.js";import"./auth-D-2jYpOE.js";import"./site-url-en5df9c-.js";import"./integration-icon-DOHTaQ6D.js";import"./Tool02-JY0gm8cg.js";import"./agent-icon-BD4DM2Lv.js";import"./AlertCircle-DbwtWnTP.js";import"./Tool01-DHi_Z7zo.js";import"./ArrowUp-Scf6R8DX.js";import"./ArrowLeft-CyH6aWpS.js";import"./ArrowRight-Bv0iX4wy.js";import"./TrendUp01-Bkdgpfn7.js";import"./ZoomOut-BRjMa-04.js";import"./Users03-BP-0DNhp.js";import"./CheckCircle-BKb1RVrA.js";import"./Check-BZE0WrNL.js";import"./ChevronUp-D5_IWEtB.js";import"./ChevronRight-DNrwFBnC.js";import"./ChevronSelectorVertical-oXn0cTzk.js";import"./DotsVertical-DE9eZKrJ.js";import"./UserSquare-qgzToKNd.js";import"./Copy01-DTHuBaTA.js";import"./CreditCard01-CwX6pA0M.js";import"./Database01-RGlwXHSd.js";import"./Download01-qX3hmvr5.js";import"./Printer-BpZBiqyG.js";import"./Settings02-CFcKewXh.js";import"./Eye-DXUjft5i.js";import"./File02-g-xJPix_.js";import"./Share07-CxuHcmnM.js";import"./GitBranch01-ddoPQdPH.js";import"./Globe01-DIy8wXF6.js";import"./SwitchHorizontal01-hHr6GOmU.js";import"./HardDrive-DU_z1AQw.js";import"./Image01-DfaxHjlV.js";import"./Key01-mqjfsZRe.js";import"./Link01-C656VtHx.js";import"./LinkExternal01-BkRUjBAn.js";import"./Monitor01-CQ6Zk1oP.js";import"./Sun-SBoG-e9B.js";import"./Package-t6euxYcP.js";import"./Palette-oECS8j3l.js";import"./Play-DQgzDnaW.js";import"./Plus-D2HOi_DD.js";import"./SearchLg-DbX4T5E-.js";import"./SearchMd-FDCJM3CR.js";import"./Shield01-HrKG6yUn.js";import"./Stars01-B_nM3FYf.js";import"./Trash01-C6bziN5X.js";import"./Upload01-DC2spim9.js";import"./User01-BbOpA84p.js";import"./Users01-BOsDT0Jv.js";import"./XCircle-CuK2q_XU.js";import"./XClose-Cvyz3reC.js";import"./X-Bzh3NI3m.js";import"./Zap-DXNovEva.js";import"./dialog-DbzCN1O8.js";import"./companions-core-WMNDPuPs.js";import"./github-D4UJ99TO.js";import"./github-repo-scope-C8GSbvaz.js";import"./metadata-dUsYcpuu.js";import"./form-B7dtslOD.js";import"./label-8juC5J-g.js";import"./input-C7XH8Uj_.js";import"./use-debounced-value-DeY1TNRX.js";import"./provision-repo-scoped-github-connection-B6zdkC6p.js";import"./extract-connection-data-CM8c_Wvw.js";import"./connection-BfiO32wM.js";import"./useQueries-DMqJmHGu.js";import"./authenticate-and-persist-oauth-2yRhuiER.js";import"./mcp-oauth-DiqQlKOx.js";import"./track-B7aLvyYR.js";import"./use-project-scope-DRope0ob.js";import"./use-virtual-mcp-Bq1RMGPF.js";import"./github-repo-BknN0SVI.js";function Q(o){const t=M.c(7),{onClose:l}=o,n=w();let r;t[0]!==n?(r=n("routes.reportsOnboarding.connectModal.loadError"),t[0]=n,t[1]=r):r=t[1];let e;t[2]!==r?(e=i.jsx("p",{className:"text-sm text-muted-foreground",children:r}),t[2]=r,t[3]=e):e=t[3];let s;return t[4]!==l||t[5]!==e?(s=i.jsx(v,{onClose:l,footer:null,children:e}),t[4]=l,t[5]=e,t[6]=s):s=t[6],s}function V(){const o=M.c(10),{closePanel:t}=J();let l;o[0]!==t?(l=()=>t(),o[0]=t,o[1]=l):l=o[1];const n=l;let r;o[2]!==n?(r=()=>i.jsx(Q,{onClose:n}),o[2]=n,o[3]=r):r=o[3];let e;o[4]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(H,{}),o[4]=e):e=o[4];let s;o[5]!==n?(s=i.jsx(_.Suspense,{fallback:i.jsx(v,{onClose:n,footer:null,children:e}),children:i.jsx(X,{onDone:n,onClose:n})}),o[5]=n,o[6]=s):s=o[6];let m;return o[7]!==r||o[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})}),o[7]=r,o[8]=s,o[9]=m):m=o[9],m}function X(o){const t=M.c(46),{onDone:l,onClose:n}=o,r=w(),{org:e}=L();let s;t[0]!==e.id?(s=U.REPORTS(e.id),t[0]=e.id,t[1]=s):s=t[1];const m=s;let b;t[2]!==e.id||t[3]!==e.slug?(b={connectionId:W,orgId:e.id,orgSlug:e.slug},t[2]=e.id,t[3]=e.slug,t[4]=b):b=t[4];const a=B(b);let P;t[5]!==m||t[6]!==e||t[7]!==a?(P={selfClient:a,org:e,cdConnectionId:m},t[5]=m,t[6]=e,t[7]=a,t[8]=P):P=t[8];const c=q(P),[I,k]=_.useState(!1),[R,N]=_.useState(null);let y;t[9]!==a?(y={mutationFn:async A=>G(await a.callTool({name:"REPORTS_RUN",arguments:{siteUrl:A}})),retry:!1},t[9]=a,t[10]=y):y=t[10];const p=$(y);let E;t[11]!==l||t[12]!==p||t[13]!==c||t[14]!==r?(E=async()=>{if(N(null),c)try{await p.mutateAsync(c)}catch{N(r("routes.reportsOnboarding.connectModal.somethingWentWrong"));return}l()},t[11]=l,t[12]=p,t[13]=c,t[14]=r,t[15]=E):E=t[15];const O=E;let u;t[16]!==R?(u=R?i.jsx("p",{className:"text-sm leading-5 text-destructive",role:"alert",children:R}):null,t[16]=R,t[17]=u):u=t[17];let f;t[18]!==p.isPending||t[19]!==r?(f=p.isPending?r("routes.reportsOnboarding.connectSourcesTab.refreshing"):r("routes.reportsOnboarding.connectSourcesTab.refresh"),t[18]=p.isPending,t[19]=r,t[20]=f):f=t[20];let d;t[21]!==O?(d=()=>{O()},t[21]=O,t[22]=d):d=t[22];let x;t[23]!==I||t[24]!==p.isPending||t[25]!==f||t[26]!==d?(x=i.jsx(z,{ready:I,pending:p.isPending,label:f,onClick:d}),t[23]=I,t[24]=p.isPending,t[25]=f,t[26]=d,t[27]=x):x=t[27];let g;t[28]!==u||t[29]!==x?(g=i.jsxs(i.Fragment,{children:[u,x]}),t[28]=u,t[29]=x,t[30]=g):g=t[30];let C;t[31]!==r?(C=r("routes.reportsOnboarding.connectSourcesTab.title"),t[31]=r,t[32]=C):C=t[32];let h;t[33]!==C?(h=i.jsx("h2",{className:"text-xl font-medium leading-tight text-foreground",children:C}),t[33]=C,t[34]=h):h=t[34];let S;t[35]!==m||t[36]!==e||t[37]!==c?(S=i.jsx(K,{org:e,cdConnectionId:m,siteUrl:c,onReadinessChange:k}),t[35]=m,t[36]=e,t[37]=c,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 T;return t[42]!==n||t[43]!==g||t[44]!==j?(T=i.jsx(v,{onClose:n,footer:g,children:j}),t[42]=n,t[43]=g,t[44]=j,t[45]=T):T=t[45],T}function $o(){const o=M.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(D.Content,{children:i.jsx(V,{})}),o[0]=t):t=o[0],t}export{$o as default};
1
+ import{c as M,j as i,r as _,E as F,b as w,M as L,W as U,x as W,e as $}from"./index-Dc7hzqoi.js";import{C as D}from"./index-BH7uCYoT.js";import{u as B}from"./use-mcp-client-e_hCatGm.js";import{C as H,a as K}from"./companion-mcps-section-xmRpNJBK.js";import{c as q}from"./use-connect-companion-CClQCUMS.js";import{C as v,a as z}from"./connect-layout-DGO84ImO.js";import{p as G}from"./self-tool-result-8OxPN9Nm.js";import{a as J}from"./use-panel-navigate-WrD0KEYx.js";import"./use-mobile-hIijCK0k.js";import"./index-CSd_k8Np.js";import"./resizable-Bt7dvMCc.js";import"./MessageCircle01-DBcg2aiD.js";import"./thread-route-BBf64Mwk.js";import"./use-route-default-main-Djaj_cL9.js";import"./hooks-DZOMRp7D.js";import"./backoff-8mStPHYB.js";import"./task-board-DrUf5p-Z.js";import"./schema-1zAO-l7e.js";import"./tooltip-DV2xHesQ.js";import"./index-DWw5wi2G.js";import"./toolbar-icon-button-PuQFE8Y9.js";import"./auth-DhzAq_9m.js";import"./site-url-en5df9c-.js";import"./integration-icon-BeEdjsn9.js";import"./Tool02-CATStXCy.js";import"./agent-icon-CczrFEe7.js";import"./AlertCircle-CMjsP_Tk.js";import"./Tool01-DouqPjim.js";import"./ArrowUp-Cii1LHW7.js";import"./ArrowLeft-CjYy5Nhj.js";import"./ArrowRight-CLncCNat.js";import"./TrendUp01-BFAEMx9E.js";import"./ZoomOut-BPxprY2s.js";import"./Users03-Y0Jco4zL.js";import"./CheckCircle-DHXQFnpK.js";import"./Check-B3RSsr_D.js";import"./ChevronUp-DiYhGG4T.js";import"./ChevronRight-USKkhEpL.js";import"./ChevronSelectorVertical-DpRb2z1l.js";import"./DotsVertical-CsjwfYzf.js";import"./UserSquare-B2lKdt4w.js";import"./Copy01-nMxlBfeT.js";import"./CreditCard01-CWXVH3ZM.js";import"./Database01-C0YJpjc3.js";import"./Download01-BRrSA3Yx.js";import"./Printer-CvyxF9Jo.js";import"./Settings02-Cyf85ea0.js";import"./Eye-Dyg2WPG4.js";import"./File02-BvR-HYxK.js";import"./Share07-wC47qn2E.js";import"./GitBranch01-rWb2SJK9.js";import"./Globe01-D6FaaFR2.js";import"./SwitchHorizontal01-DpXsFGyJ.js";import"./HardDrive-DNTPLPT4.js";import"./Image01-CxnjAzbb.js";import"./Key01-CIXwHMRo.js";import"./Link01-C0FvgZZB.js";import"./LinkExternal01-AWlhN5o7.js";import"./Monitor01-Ccs1gh2Z.js";import"./Sun-0Ied-kyZ.js";import"./Package-nTbucmaQ.js";import"./Palette-DSdn1Xis.js";import"./Play-lMuWOObF.js";import"./Plus-CVauOqLT.js";import"./SearchLg-BrrPVuXr.js";import"./SearchMd-C45D2PMI.js";import"./Shield01-CqB4I7qm.js";import"./Stars01-oAh9h5b5.js";import"./Trash01-nl-t4IoV.js";import"./Upload01-B4Fqdkae.js";import"./User01-ClMaVCaJ.js";import"./Users01-BFhxJVhO.js";import"./XCircle-CleKT0Id.js";import"./XClose-BgzK-Dwz.js";import"./X-CFCE4a-Q.js";import"./Zap-B6zkqKWB.js";import"./dialog-llvhXw2o.js";import"./companions-core-WMNDPuPs.js";import"./github-D4UJ99TO.js";import"./github-repo-scope-C8GSbvaz.js";import"./metadata-dUsYcpuu.js";import"./form-CSXgIHLz.js";import"./label-BMxIRiEr.js";import"./input-DXlaTX4w.js";import"./use-debounced-value-B9nG3bW5.js";import"./provision-repo-scoped-github-connection-B6zdkC6p.js";import"./extract-connection-data-Dbm_cKaX.js";import"./connection-DD0omVHZ.js";import"./useQueries-C-SV8tD7.js";import"./authenticate-and-persist-oauth-DkJ4g-X5.js";import"./mcp-oauth-C4khbNJJ.js";import"./track-ZuOMvhd2.js";import"./use-project-scope-DU0-JxYr.js";import"./use-virtual-mcp-DkK7ErtB.js";import"./github-repo-BknN0SVI.js";function Q(o){const t=M.c(7),{onClose:l}=o,n=w();let r;t[0]!==n?(r=n("routes.reportsOnboarding.connectModal.loadError"),t[0]=n,t[1]=r):r=t[1];let e;t[2]!==r?(e=i.jsx("p",{className:"text-sm text-muted-foreground",children:r}),t[2]=r,t[3]=e):e=t[3];let s;return t[4]!==l||t[5]!==e?(s=i.jsx(v,{onClose:l,footer:null,children:e}),t[4]=l,t[5]=e,t[6]=s):s=t[6],s}function V(){const o=M.c(10),{closePanel:t}=J();let l;o[0]!==t?(l=()=>t(),o[0]=t,o[1]=l):l=o[1];const n=l;let r;o[2]!==n?(r=()=>i.jsx(Q,{onClose:n}),o[2]=n,o[3]=r):r=o[3];let e;o[4]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(H,{}),o[4]=e):e=o[4];let s;o[5]!==n?(s=i.jsx(_.Suspense,{fallback:i.jsx(v,{onClose:n,footer:null,children:e}),children:i.jsx(X,{onDone:n,onClose:n})}),o[5]=n,o[6]=s):s=o[6];let m;return o[7]!==r||o[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})}),o[7]=r,o[8]=s,o[9]=m):m=o[9],m}function X(o){const t=M.c(46),{onDone:l,onClose:n}=o,r=w(),{org:e}=L();let s;t[0]!==e.id?(s=U.REPORTS(e.id),t[0]=e.id,t[1]=s):s=t[1];const m=s;let b;t[2]!==e.id||t[3]!==e.slug?(b={connectionId:W,orgId:e.id,orgSlug:e.slug},t[2]=e.id,t[3]=e.slug,t[4]=b):b=t[4];const a=B(b);let P;t[5]!==m||t[6]!==e||t[7]!==a?(P={selfClient:a,org:e,cdConnectionId:m},t[5]=m,t[6]=e,t[7]=a,t[8]=P):P=t[8];const c=q(P),[I,k]=_.useState(!1),[R,N]=_.useState(null);let y;t[9]!==a?(y={mutationFn:async A=>G(await a.callTool({name:"REPORTS_RUN",arguments:{siteUrl:A}})),retry:!1},t[9]=a,t[10]=y):y=t[10];const p=$(y);let E;t[11]!==l||t[12]!==p||t[13]!==c||t[14]!==r?(E=async()=>{if(N(null),c)try{await p.mutateAsync(c)}catch{N(r("routes.reportsOnboarding.connectModal.somethingWentWrong"));return}l()},t[11]=l,t[12]=p,t[13]=c,t[14]=r,t[15]=E):E=t[15];const O=E;let u;t[16]!==R?(u=R?i.jsx("p",{className:"text-sm leading-5 text-destructive",role:"alert",children:R}):null,t[16]=R,t[17]=u):u=t[17];let f;t[18]!==p.isPending||t[19]!==r?(f=p.isPending?r("routes.reportsOnboarding.connectSourcesTab.refreshing"):r("routes.reportsOnboarding.connectSourcesTab.refresh"),t[18]=p.isPending,t[19]=r,t[20]=f):f=t[20];let d;t[21]!==O?(d=()=>{O()},t[21]=O,t[22]=d):d=t[22];let x;t[23]!==I||t[24]!==p.isPending||t[25]!==f||t[26]!==d?(x=i.jsx(z,{ready:I,pending:p.isPending,label:f,onClick:d}),t[23]=I,t[24]=p.isPending,t[25]=f,t[26]=d,t[27]=x):x=t[27];let g;t[28]!==u||t[29]!==x?(g=i.jsxs(i.Fragment,{children:[u,x]}),t[28]=u,t[29]=x,t[30]=g):g=t[30];let C;t[31]!==r?(C=r("routes.reportsOnboarding.connectSourcesTab.title"),t[31]=r,t[32]=C):C=t[32];let h;t[33]!==C?(h=i.jsx("h2",{className:"text-xl font-medium leading-tight text-foreground",children:C}),t[33]=C,t[34]=h):h=t[34];let S;t[35]!==m||t[36]!==e||t[37]!==c?(S=i.jsx(K,{org:e,cdConnectionId:m,siteUrl:c,onReadinessChange:k}),t[35]=m,t[36]=e,t[37]=c,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 T;return t[42]!==n||t[43]!==g||t[44]!==j?(T=i.jsx(v,{onClose:n,footer:g,children:j}),t[42]=n,t[43]=g,t[44]=j,t[45]=T):T=t[45],T}function $o(){const o=M.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(D.Content,{children:i.jsx(V,{})}),o[0]=t):t=o[0],t}export{$o as default};
@@ -0,0 +1 @@
1
+ import{c,j as e,ax as b,u as g}from"./index-Dc7hzqoi.js";import{C as j}from"./index-BH7uCYoT.js";import{F as v,H as S}from"./file-share-button-Dk1ugrdV.js";import{u as k,b as y,e as _}from"./use-org-fs-Du-ErRPs.js";import{S as w}from"./settings-tab-D1V5Uszb.js";import{b as M}from"./thread-route-BBf64Mwk.js";import"./use-mobile-hIijCK0k.js";import"./index-CSd_k8Np.js";import"./resizable-Bt7dvMCc.js";import"./MessageCircle01-DBcg2aiD.js";import"./use-panel-navigate-WrD0KEYx.js";import"./use-project-scope-DU0-JxYr.js";import"./use-virtual-mcp-DkK7ErtB.js";import"./use-mcp-client-e_hCatGm.js";import"./auth-DhzAq_9m.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-Djaj_cL9.js";import"./hooks-DZOMRp7D.js";import"./backoff-8mStPHYB.js";import"./task-board-DrUf5p-Z.js";import"./schema-1zAO-l7e.js";import"./tooltip-DV2xHesQ.js";import"./index-DWw5wi2G.js";import"./toolbar-icon-button-PuQFE8Y9.js";import"./dropdown-menu-C5iafa8S.js";import"./Check-B3RSsr_D.js";import"./ChevronRight-USKkhEpL.js";import"./DotsVertical-CsjwfYzf.js";import"./Download01-BRrSA3Yx.js";import"./Printer-CvyxF9Jo.js";import"./LinkExternal01-AWlhN5o7.js";import"./dialog-llvhXw2o.js";import"./X-CFCE4a-Q.js";import"./input-DXlaTX4w.js";import"./popover-yk_ePqAA.js";import"./Copy01-nMxlBfeT.js";import"./Globe01-D6FaaFR2.js";import"./Key01-CIXwHMRo.js";import"./Share07-wC47qn2E.js";import"./extract-connection-data-Dbm_cKaX.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-DD0omVHZ.js";import"./chat-context-tZCX_cqt.js";import"./autosend-BberXmli.js";import"./thread-intent-F-sZEflj.js";import"./slugify-CEUa2lfQ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-Dl7pAsQ5.js";import"./use-ai-providers-BnF5Rw_n.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BpuQrfKN.js";import"./use-organization-settings-CKbX2SdA.js";import"./build-improve-prompt-doc-Cedp3vV1.js";import"./avatar-C9HiP4eS.js";import"./User01-ClMaVCaJ.js";import"./empty-state-CyICQznD.js";import"./shell-layout-Ce0aCJuX.js";import"./Users03-Y0Jco4zL.js";import"./SearchLg-BrrPVuXr.js";import"./agent-icon-CczrFEe7.js";import"./AlertCircle-CMjsP_Tk.js";import"./Tool01-DouqPjim.js";import"./ArrowUp-Cii1LHW7.js";import"./ArrowLeft-CjYy5Nhj.js";import"./Tool02-CATStXCy.js";import"./ArrowRight-CLncCNat.js";import"./TrendUp01-BFAEMx9E.js";import"./ZoomOut-BPxprY2s.js";import"./CheckCircle-DHXQFnpK.js";import"./ChevronUp-DiYhGG4T.js";import"./ChevronSelectorVertical-DpRb2z1l.js";import"./UserSquare-B2lKdt4w.js";import"./CreditCard01-CWXVH3ZM.js";import"./Database01-C0YJpjc3.js";import"./Settings02-Cyf85ea0.js";import"./Eye-Dyg2WPG4.js";import"./File02-BvR-HYxK.js";import"./GitBranch01-rWb2SJK9.js";import"./SwitchHorizontal01-DpXsFGyJ.js";import"./HardDrive-DNTPLPT4.js";import"./Image01-CxnjAzbb.js";import"./Link01-C0FvgZZB.js";import"./Monitor01-Ccs1gh2Z.js";import"./Sun-0Ied-kyZ.js";import"./Package-nTbucmaQ.js";import"./Palette-DSdn1Xis.js";import"./Play-lMuWOObF.js";import"./Plus-CVauOqLT.js";import"./SearchMd-C45D2PMI.js";import"./Shield01-CqB4I7qm.js";import"./Stars01-oAh9h5b5.js";import"./Trash01-nl-t4IoV.js";import"./Upload01-B4Fqdkae.js";import"./Users01-BFhxJVhO.js";import"./XCircle-CleKT0Id.js";import"./XClose-BgzK-Dwz.js";import"./Zap-B6zkqKWB.js";import"./download-app-dialog-D_4eQbbs.js";import"./anchors-yqDzZN4K.js";import"./use-org-notice-CyiiFkRG.js";import"./command-palette-store-DK-56E2K.js";import"./command-B-XD29Nx.js";import"./index-BD213WLU.js";import"./integration-icon-BeEdjsn9.js";import"./project-icon-MWmzrrm8.js";import"./required-auth-layout-RoMNnMPO.js";import"./use-org-sso-BvfIL0yq.js";import"./use-date-fns-locale-onM9TTf8.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-connection-Ba04fHwa.js";import"./mcp-oauth-C4khbNJJ.js";import"./alert-dialog-BI-B_8hq.js";import"./textarea-BU6xemAP.js";import"./use-debounced-autosave-DqyNKPJM.js";import"./scroll-area-C-wtbVS1.js";import"./select-BkKPcZFe.js";import"./add-connection-dialog-DZjTm9W3.js";import"./collection-search-J9Bt25gS.js";import"./connection-card-fcMCwbTh.js";import"./use-registry-connections-SLFMHpqj.js";import"./useInfiniteQuery-CspLjV7h.js";import"./infiniteQueryObserver-CjWlcBHD.js";import"./retry-i8LvYSZg.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-BIjkXMV3.js";import"./form-CSXgIHLz.js";import"./label-BMxIRiEr.js";import"./connection-form-helpers-CHlcdgAK.js";import"./authenticate-and-persist-oauth-DkJ4g-X5.js";import"./collection-tabs-CrXIJeNf.js";import"./badge-Bu51Hlti.js";import"./use-infinite-scroll-PhBGPm8H.js";import"./useSuspenseInfiniteQuery-BiQYAhJn.js";import"./file-type-icon-C9Qn36v4.js";import"./checkbox-jLf7fBuW.js";import"./search-input-Pobww52G.js";import"./use-mcp-auth-status-I377R0Kg.js";import"./types-27TVsPN_.js";import"./use-mcp-tools-g86k4oib.js";import"./use-mcp-prompts-DJRXjL4_.js";import"./utils-CVEq3hMx.js";import"./switch-BQFtt3BH.js";import"./use-project-native-view-presence-DWzPH-Sc.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-DYGSdjth.js";import"./site-slug-uya6Wp4-.js";import"./optimistic-project-sidebar-views-CrZ9OeIk.js";import"./breadcrumb-Dhdru7Jh.js";import"./virtual-mcp-ldxphi5G.js";import"./repository-import-picker-DhVniDI2.js";import"./use-navigate-to-agent-C8pu0B4z.js";import"./repository-picker-BkoSI-jm.js";import"./github-icon-huXDOAgf.js";import"./use-debounced-value-B9nG3bW5.js";import"./sandbox-url-D3mC8qhT.js";import"./use-secrets-DVry--sz.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./serial-task-queue-CGOeQgpr.js";const x="home";function P(i){const t=c.c(5),{label:r}=i;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 m;return t[3]!==o?(m=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]=m):m=t[4],m}function D(i){const t=c.c(15),{path:r}=i;let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p={refetchIntervalWhenAbsent:2e3},t[0]=p):p=t[0];const o=k(x,r,p),m=y(x)(r);if(o.isPending||!o.data){const h=!o.isPending&&!o.data?"Waiting for the deck to sync…":void 0;let l;return t[1]!==h?(l=e.jsx(P,{label:h}),t[1]=h,t[2]=l):l=t[2],l}let s;t[3]!==o.data?(s=_(o.data),t[3]=o.data,t[4]=s):s=t[4];const f=o.data.shareMode??"private",u=o.data.effectivePublic??!1,d=window.location.origin+m;let a;t[5]!==r||t[6]!==f||t[7]!==u||t[8]!==d?(a=e.jsx(v,{volume:x,path:r,shareMode:f,effectivePublic:u,url:d}),t[5]=r,t[6]=f,t[7]=u,t[8]=d,t[9]=a):a=t[9];let n;return t[10]!==r||t[11]!==m||t[12]!==s||t[13]!==a?(n=e.jsx(S,{readUrl:m,marker:s,title:r,savePath:r,trailing:a}),t[10]=r,t[11]=m,t[12]=s,t[13]=a,t[14]=n):n=t[14],n}function C(){const i=c.c(4);let t;i[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},i[0]=t):t=i[0];const r=g(t),p=M(),o="path"in r&&typeof r.path=="string"?r.path:void 0;let m;return i[1]!==o||i[2]!==p?(m=o?e.jsx(D,{path:o},o):e.jsx(w,{virtualMcpId:p}),i[1]=o,i[2]=p,i[3]=m):m=i[3],m}function Dr(){const i=c.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(j.Content,{children:e.jsx(C,{})}),i[0]=t):t=i[0],t}export{Dr as default};