decocms 4.82.13 → 4.82.14

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 (276) hide show
  1. package/dist/client/assets/{AlertCircle-B6AELEdc.js → AlertCircle-DvPByT3s.js} +1 -1
  2. package/dist/client/assets/{AreaChart-fCNs67j_.js → AreaChart-BtYig8Ye.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-YK2fJPgi.js → ArrowUp-Dh74oxmM.js} +1 -1
  4. package/dist/client/assets/{ArrowUpRight-BKVLcZTe.js → ArrowUpRight-DC6Yb9Jn.js} +1 -1
  5. package/dist/client/assets/{CheckCircle-BfxYbuVE.js → CheckCircle-Be2POQuF.js} +1 -1
  6. package/dist/client/assets/{ChevronDown-CQLSXgt3.js → ChevronDown-BE7JvSpD.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-Fgy0rUS_.js → ChevronRight-4-DNv2jL.js} +1 -1
  8. package/dist/client/assets/ChevronUp-Bwx_DvAp.js +1 -0
  9. package/dist/client/assets/{Copy01-B0CQRE_5.js → Copy01-CaaZXEMR.js} +1 -1
  10. package/dist/client/assets/DotsVertical-hH1ie9LK.js +1 -0
  11. package/dist/client/assets/{Eye-CLtdCpUf.js → Eye-s3MCo34O.js} +1 -1
  12. package/dist/client/assets/{FilterLines-DeiGsRZY.js → FilterLines-B8M_kRrg.js} +1 -1
  13. package/dist/client/assets/{Globe01-B52VKYy7.js → Globe01-BNvAFZ7t.js} +1 -1
  14. package/dist/client/assets/{Globe04-B0las6Jv.js → Globe04-B8fLlHyp.js} +1 -1
  15. package/dist/client/assets/{HardDrive-CU-vvmKE.js → HardDrive-DDRUuRUd.js} +1 -1
  16. package/dist/client/assets/{Image01-B-FQwXx8.js → Image01-DxLV4xvs.js} +1 -1
  17. package/dist/client/assets/{Key01-myvTSA8u.js → Key01-Cq8uChmI.js} +1 -1
  18. package/dist/client/assets/{LayoutLeft-C0g0LezP.js → LayoutLeft-riUBpORF.js} +1 -1
  19. package/dist/client/assets/{LinkExternal01-d9EixhiS.js → LinkExternal01-DU3CPyqq.js} +1 -1
  20. package/dist/client/assets/{Monitor01-BkDBzdlH.js → Monitor01-0ngeB4wd.js} +1 -1
  21. package/dist/client/assets/{Package-eNacrLmv.js → Package-BrNfAbz_.js} +1 -1
  22. package/dist/client/assets/{Palette-BiKqXWvc.js → Palette-CtgW-PAY.js} +1 -1
  23. package/dist/client/assets/{Play-CdkPhmTs.js → Play-CdZJWvJx.js} +1 -1
  24. package/dist/client/assets/{Plus-DWjKZ2wj.js → Plus-Ca4hMAKt.js} +1 -1
  25. package/dist/client/assets/{SearchLg-DBOWvxyl.js → SearchLg-BGyV5Bz4.js} +1 -1
  26. package/dist/client/assets/{SearchMd-CKteZWzZ.js → SearchMd-CFTyyPmA.js} +1 -1
  27. package/dist/client/assets/{Settings02-CM0Uzs0U.js → Settings02-BIuCsH3l.js} +1 -1
  28. package/dist/client/assets/{Shield01-aDvWVv5Z.js → Shield01-DdJSxLoT.js} +1 -1
  29. package/dist/client/assets/{Star01-B-8espqJ.js → Star01-Dg6BZrlI.js} +1 -1
  30. package/dist/client/assets/{Stars01-DsfblQf3.js → Stars01-wVvTShj4.js} +1 -1
  31. package/dist/client/assets/{Stars02-DBH33Ez2.js → Stars02-BF8YOJhr.js} +1 -1
  32. package/dist/client/assets/{Sun-MvOAGgKN.js → Sun-Cd6pfpZ3.js} +1 -1
  33. package/dist/client/assets/{SwitchHorizontal01-DUrn8gXV.js → SwitchHorizontal01-T7cYMNoP.js} +1 -1
  34. package/dist/client/assets/{Tool01-4pit7qOS.js → Tool01-BDwVCBnM.js} +1 -1
  35. package/dist/client/assets/{Tool02-tJKj7JcW.js → Tool02-DjIBln53.js} +1 -1
  36. package/dist/client/assets/{Trash01-DEWgFvvg.js → Trash01-CxvmthNE.js} +1 -1
  37. package/dist/client/assets/TrendUp01-DdL0oR_B.js +1 -0
  38. package/dist/client/assets/{Upload01-C8RP0Fvq.js → Upload01-w4HjmReL.js} +1 -1
  39. package/dist/client/assets/{User01-v0Bqr3nA.js → User01-0Zd0134v.js} +1 -1
  40. package/dist/client/assets/{Users01-CPNZ7uMu.js → Users01-j-t-q-sR.js} +1 -1
  41. package/dist/client/assets/{Users03-WVYBBENu.js → Users03-BpRSYTYN.js} +1 -1
  42. package/dist/client/assets/{X-Dm6kY_ek.js → X--0kJVtau.js} +1 -1
  43. package/dist/client/assets/{XCircle-cwYbcP7y.js → XCircle-CWZBOndb.js} +1 -1
  44. package/dist/client/assets/{XClose-DnNyN9T-.js → XClose-CFj_hbve.js} +1 -1
  45. package/dist/client/assets/{Zap-CNRURtEh.js → Zap-BfGgAuT1.js} +1 -1
  46. package/dist/client/assets/{ZapSquare-Dj8pa8Fg.js → ZapSquare-CS1YImRf.js} +1 -1
  47. package/dist/client/assets/{ZoomOut-_psBJlXD.js → ZoomOut-DBunTdui.js} +1 -1
  48. package/dist/client/assets/{access-gate-CPecvlS5.js → access-gate-C3Jf69ZD.js} +1 -1
  49. package/dist/client/assets/{add-section-modal-CcLBxmBX.js → add-section-modal-Ca2kfOel.js} +1 -1
  50. package/dist/client/assets/agent-icon-BdMdPyH8.js +1 -0
  51. package/dist/client/assets/agents-list-s5b3COYS.js +1 -0
  52. package/dist/client/assets/ai-providers-DAXq9GNP.js +1 -0
  53. package/dist/client/assets/{alert-dialog-3VMQ65hF.js → alert-dialog-BjP2s6Nc.js} +1 -1
  54. package/dist/client/assets/{alert-XkDwazoe.js → alert-sYi6c8L0.js} +1 -1
  55. package/dist/client/assets/app-editor-lqTV057s.js +1 -0
  56. package/dist/client/assets/{auth-dSVlMQ86.js → auth-DWUY37QO.js} +1 -1
  57. package/dist/client/assets/{auth-catchall-BVp4zpOf.js → auth-catchall-4BdHIsfs.js} +1 -1
  58. package/dist/client/assets/{auth-entry-C48ylSC_.js → auth-entry-CbO-WTGZ.js} +1 -1
  59. package/dist/client/assets/{auth-split-layout-dbrXw6Uq.js → auth-split-layout-Cunbbv7Y.js} +1 -1
  60. package/dist/client/assets/{authenticate-and-persist-oauth-BHT9Kp62.js → authenticate-and-persist-oauth-tVxGkZPI.js} +1 -1
  61. package/dist/client/assets/{automation-list-row-PkSpkeID.js → automation-list-row-Bx2czjnJ.js} +1 -1
  62. package/dist/client/assets/automation-runs-CvOQZBIo.js +87 -0
  63. package/dist/client/assets/automations-ZGK89zV_.js +1 -0
  64. package/dist/client/assets/{autosend-D_-616qs.js → autosend-BLRimjZ_.js} +1 -1
  65. package/dist/client/assets/{avatar-UXZ4R5Yb.js → avatar-BVfPlbpm.js} +1 -1
  66. package/dist/client/assets/{badge-CfAmvo-h.js → badge-DNxr1fi7.js} +1 -1
  67. package/dist/client/assets/{block-document-DbCz5f9N.js → block-document-z1ZnryZ2.js} +2 -2
  68. package/dist/client/assets/{brand-context-G_6bLd5F.js → brand-context-CLHvlJV7.js} +1 -1
  69. package/dist/client/assets/buckets-BTIuBcJT.js +1 -0
  70. package/dist/client/assets/bulk-category-panel-BgK98tsF.js +1 -0
  71. package/dist/client/assets/calendar-VVDY0smi.js +102 -0
  72. package/dist/client/assets/{capability-load-error-B9xkkNBq.js → capability-load-error-2OJTaAO-.js} +1 -1
  73. package/dist/client/assets/{card-dLLzWD0r.js → card-CRilZAuB.js} +1 -1
  74. package/dist/client/assets/category-editor-D_whkLw0.js +1 -0
  75. package/dist/client/assets/{chat-context-CyCuyn4t.js → chat-context-BI8_Nmou.js} +13 -11
  76. package/dist/client/assets/checkbox-CcBhppQn.js +1 -0
  77. package/dist/client/assets/{cli-auth-success-zoB4TWhQ.js → cli-auth-success-DEIP-V25.js} +1 -1
  78. package/dist/client/assets/collection-detail-1c1ACTcR.js +1 -0
  79. package/dist/client/assets/collection-display-button-DXJEmTV8.js +1 -0
  80. package/dist/client/assets/{collection-search-C4jDpdZf.js → collection-search-COKgSE9f.js} +1 -1
  81. package/dist/client/assets/{collection-table-wrapper-DIkftYUF.js → collection-table-wrapper-Bkw9b8hk.js} +1 -1
  82. package/dist/client/assets/{collection-tabs-DvvibY6H.js → collection-tabs-ttDF8X2o.js} +1 -1
  83. package/dist/client/assets/{command-EQNrbniG.js → command-vkOcTid-.js} +1 -1
  84. package/dist/client/assets/commerce-onboarding-bjzg6F_h.js +1 -0
  85. package/dist/client/assets/{companions-core-fc2Z_sCB.js → companions-core-B9YYDQ4A.js} +1 -1
  86. package/dist/client/assets/connect-desktop-dialog-D7YkwfUU.js +1 -0
  87. package/dist/client/assets/{connection-card-CtY9PRIw.js → connection-card-DU81gKdu.js} +1 -1
  88. package/dist/client/assets/connection-detail-DABVCpPE.js +1 -0
  89. package/dist/client/assets/{connection-form-helpers-TGmycj7X.js → connection-form-helpers-Dyl58fX0.js} +1 -1
  90. package/dist/client/assets/connections-bXxskjsO.js +1 -0
  91. package/dist/client/assets/{decopilot-sse-pool-DHojW3EC.js → decopilot-sse-pool-B7Q1Pjne.js} +1 -1
  92. package/dist/client/assets/{dialog-CmXDzme5.js → dialog-B1V0iUXV.js} +1 -1
  93. package/dist/client/assets/{domain-settings-GxKzcerZ.js → domain-settings-B1ZyfdYW.js} +1 -1
  94. package/dist/client/assets/{drawer-Ds-r7525.js → drawer-9Bvsh1k7.js} +1 -1
  95. package/dist/client/assets/dropdown-menu-Bel6DI3v.js +1 -0
  96. package/dist/client/assets/{empty-state-CdKwtMyP.js → empty-state-BHQtYUSO.js} +1 -1
  97. package/dist/client/assets/{extract-connection-data-CK9iLAoG.js → extract-connection-data-BZuABMOr.js} +1 -1
  98. package/dist/client/assets/file-explorer-PgVeGy2E.js +2 -0
  99. package/dist/client/assets/{file-type-icon-DjNFZnTs.js → file-type-icon-CGkU8X5K.js} +1 -1
  100. package/dist/client/assets/{files-CQYyuV1E.js → files-DZ3SJjR-.js} +1 -1
  101. package/dist/client/assets/{form-x0k-kdB2.js → form-C9jBxN8G.js} +1 -1
  102. package/dist/client/assets/general-CuHItqTO.js +1 -0
  103. package/dist/client/assets/{github-repo-picker-C-tZ-Bba.js → github-repo-picker-DPwCOiEB.js} +1 -1
  104. package/dist/client/assets/{hooks-QHrmNjJQ.js → hooks-DtDviOax.js} +1 -1
  105. package/dist/client/assets/index-B3GkLwEh.js +2 -0
  106. package/dist/client/assets/{index-cG8paP3z.js → index-BRH7yHcF.js} +1 -1
  107. package/dist/client/assets/{index-Czi2ZhJ5.js → index-BcgykEG5.js} +1 -1
  108. package/dist/client/assets/{index-C-B6S6Q9.js → index-CHJYXQSS.js} +1 -1
  109. package/dist/client/assets/{index-DF3zg-P1.js → index-CMuj1duV.js} +3 -3
  110. package/dist/client/assets/{index-T-oY3h3t.js → index-Clopj9KU.js} +1 -1
  111. package/dist/client/assets/{index-CUVgjm02.js → index-CwggL_PJ.js} +1 -1
  112. package/dist/client/assets/{index-CeqD0RVV.js → index-DVJqB6A6.js} +1 -1
  113. package/dist/client/assets/{index-BcWQMJI4.js → index-Df10o6gn.js} +3 -3
  114. package/dist/client/assets/index-Dj5WILcq.css +1 -0
  115. package/dist/client/assets/{index-DonY639O.js → index-Dp8SB-ud.js} +29 -29
  116. package/dist/client/assets/index-DxeK__BQ.js +1 -0
  117. package/dist/client/assets/{index-BCiDnhhX.js → index-gAU-Arvb.js} +4 -4
  118. package/dist/client/assets/{index-BjO8A-VO.js → index-jm5YycYM.js} +1 -1
  119. package/dist/client/assets/{index-redirect-_hpy7g8S.js → index-redirect-CecfnhiM.js} +1 -1
  120. package/dist/client/assets/{index-CzMEWsZX.js → index-z2UBv_6H.js} +1 -1
  121. package/dist/client/assets/{input-BZTiU0ds.js → input-qdMTAJH4.js} +1 -1
  122. package/dist/client/assets/{integration-icon-BfKWLZT4.js → integration-icon-ByqyfRpT.js} +1 -1
  123. package/dist/client/assets/{invite-member-dialog-fPpySKy7.js → invite-member-dialog-cnQXBieX.js} +1 -1
  124. package/dist/client/assets/{label-B1OfKy2N.js → label-CnEhHuVP.js} +1 -1
  125. package/dist/client/assets/{layout-BzlkAZij.js → layout-ofNqb8rV.js} +1 -1
  126. package/dist/client/assets/{login-CfYNPvDo.js → login-knndhvVF.js} +1 -1
  127. package/dist/client/assets/{mcp-oauth-CoKzxQiz.js → mcp-oauth-CAUkOKji.js} +1 -1
  128. package/dist/client/assets/members-Bb6cqv3N.js +1 -0
  129. package/dist/client/assets/{monaco-editor-BzdwB2U8.js → monaco-editor-4EWxCivt.js} +1 -1
  130. package/dist/client/assets/{monitoring-stats-row-C0-lT8X-.js → monitoring-stats-row-CYRhMPF6.js} +1 -1
  131. package/dist/client/assets/{multi-select-BYFsBcLx.js → multi-select-DGg7VcY7.js} +1 -1
  132. package/dist/client/assets/{oauth-callback-D6L6RroV.js → oauth-callback-Txh_HZU1.js} +1 -1
  133. package/dist/client/assets/{oauth-callback-ai-provider-NS24Yhk_.js → oauth-callback-ai-provider-gZcF7GFt.js} +1 -1
  134. package/dist/client/assets/{onboarding-CXfWXP3L.js → onboarding-BNd98v9F.js} +1 -1
  135. package/dist/client/assets/{org-install-CFASOU4_.js → org-install-s29fSk6T.js} +1 -1
  136. package/dist/client/assets/{org-layout-gngtZKVa.js → org-layout-pC6WuH2d.js} +1 -1
  137. package/dist/client/assets/{organization-choice-DB-AR__E.js → organization-choice-Cvpg9cyR.js} +1 -1
  138. package/dist/client/assets/orgs-BH4zqSW4.js +1 -0
  139. package/dist/client/assets/{page-seo-form-DsaBxdUW.js → page-seo-form-DpJbL5qC.js} +1 -1
  140. package/dist/client/assets/page-seo-sheet-BViE3vmf.js +1 -0
  141. package/dist/client/assets/{popover-BzHpXFL_.js → popover-BXXrlEXA.js} +1 -1
  142. package/dist/client/assets/post-editor-DgVq5HAq.js +1 -0
  143. package/dist/client/assets/{primitives-BxBoeZTE.js → primitives-C0YiE9Dl.js} +1 -1
  144. package/dist/client/assets/profile-CdQoqyRv.js +1 -0
  145. package/dist/client/assets/project-app-view-DORLMZaj.js +1 -0
  146. package/dist/client/assets/record-editor-D2PAFmR-.js +1 -0
  147. package/dist/client/assets/redirect-editor-ClaSMwyP.js +1 -0
  148. package/dist/client/assets/registry-DqKNpXHC.js +2 -0
  149. package/dist/client/assets/{registry-layout-B8iHO94t.js → registry-layout-CFETb4kQ.js} +2 -2
  150. package/dist/client/assets/{reports-DFt5o5JU.js → reports-Bd4Konjf.js} +2 -2
  151. package/dist/client/assets/{require-capability-CEBGt_Ot.js → require-capability-D0uXhAfv.js} +1 -1
  152. package/dist/client/assets/{required-auth-layout-vPZ2d-Yx.js → required-auth-layout-uUQ9Dfyr.js} +1 -1
  153. package/dist/client/assets/{reset-password-l6ffdCqx.js → reset-password-InhP_QJS.js} +1 -1
  154. package/dist/client/assets/roles-C8MjshKP.js +1 -0
  155. package/dist/client/assets/{search-input-ByuB0YyC.js → search-input-Bhg65axQ.js} +1 -1
  156. package/dist/client/assets/secrets-CoTCTnY9.js +1 -0
  157. package/dist/client/assets/sections-editor-P9NnL9uS.js +2 -0
  158. package/dist/client/assets/select-Bhj7LCuD.js +1 -0
  159. package/dist/client/assets/{select-model-CebmAt-C.js → select-model-BkLoUhWB.js} +1 -1
  160. package/dist/client/assets/self-tool-result-DdS1heyV.js +1 -0
  161. package/dist/client/assets/seo-editor-5nf9jCaQ.js +1 -0
  162. package/dist/client/assets/{settings-layout-DUpflFya.js → settings-layout-Ct-vBxnm.js} +1 -1
  163. package/dist/client/assets/{settings-section-DS6otYn7.js → settings-section-D-A3Bfgf.js} +1 -1
  164. package/dist/client/assets/{shell-controls-B9xMPAfw.js → shell-controls-DCy9Peje.js} +1 -1
  165. package/dist/client/assets/{shell-layout-Bo6QxW8m.js → shell-layout-DDCV5qM0.js} +1 -1
  166. package/dist/client/assets/{sidebar-BFdShy9x.js → sidebar-DeWKCtxp.js} +1 -1
  167. package/dist/client/assets/{skeleton-BGZh750P.js → skeleton-BbGF1H7-.js} +1 -1
  168. package/dist/client/assets/sso-D7TxlrMn.js +1 -0
  169. package/dist/client/assets/{store-ioH_J-rE.js → store-0pluQIHD.js} +1 -1
  170. package/dist/client/assets/store-registry-CO9GrEkA.js +2 -0
  171. package/dist/client/assets/{studio-tools-bThaob6p.js → studio-tools-CE7lpCkl.js} +1 -1
  172. package/dist/client/assets/{switch-C2KH_TaK.js → switch-BNLG1jmU.js} +1 -1
  173. package/dist/client/assets/{table-XKbQ5Wjx.js → table-ByQcTCqP.js} +1 -1
  174. package/dist/client/assets/{tabs-D-6eQ0wE.js → tabs-CXMTix3U.js} +1 -1
  175. package/dist/client/assets/{textarea-PYu4eHQV.js → textarea-BPWk2Ywn.js} +1 -1
  176. package/dist/client/assets/{toggle-group-BcxqPGrf.js → toggle-group-DPBmxHrX.js} +1 -1
  177. package/dist/client/assets/{toolbar-D90MFc80.js → toolbar-CpK88Wot.js} +1 -1
  178. package/dist/client/assets/{toolbar-icon-button-D3m9VnTI.js → toolbar-icon-button--NaDqMEF.js} +1 -1
  179. package/dist/client/assets/{tooltip-O3iHy7-o.js → tooltip-B8wnTm17.js} +1 -1
  180. package/dist/client/assets/{use-ai-providers-B4nhSJlr.js → use-ai-providers-BO2D28v4.js} +1 -1
  181. package/dist/client/assets/{use-automations-C01orYPa.js → use-automations-CvhBPwX5.js} +1 -1
  182. package/dist/client/assets/{use-autosave-BhfvFfoI.js → use-autosave-DUdpa8zB.js} +1 -1
  183. package/dist/client/assets/{use-capability--WeMT0KP.js → use-capability-B2zRKwHf.js} +1 -1
  184. package/dist/client/assets/use-clock-tick-BfNa5AcO.js +1 -0
  185. package/dist/client/assets/{use-collections-K1HyCAfG.js → use-collections-tP6FM68N.js} +1 -1
  186. package/dist/client/assets/{use-connection-twfWXxwG.js → use-connection-Bubfkk8k.js} +1 -1
  187. package/dist/client/assets/{use-copy-DQ4y4418.js → use-copy-3Mpuxl0p.js} +1 -1
  188. package/dist/client/assets/{use-create-virtual-mcp-NwJ9x5Kd.js → use-create-virtual-mcp-BhfqxX9Z.js} +1 -1
  189. package/dist/client/assets/{use-debounced-autosave-BdWGMbok.js → use-debounced-autosave-B1u8xEPK.js} +1 -1
  190. package/dist/client/assets/{use-debounced-value-xN0eyoO9.js → use-debounced-value-ToigCZRD.js} +1 -1
  191. package/dist/client/assets/use-deco-credits-We_pqPUY.js +1 -0
  192. package/dist/client/assets/{use-decopilot-events-BEOY-_n2.js → use-decopilot-events-DDSe_K7D.js} +1 -1
  193. package/dist/client/assets/{use-delete-connection-BlzYSB_f.js → use-delete-connection-veOzeP_-.js} +1 -1
  194. package/dist/client/assets/{use-deployment-admin-DYO-CLsy.js → use-deployment-admin-uwYQkYfr.js} +1 -1
  195. package/dist/client/assets/{use-file-configs-Bs9N4w-Z.js → use-file-configs-DxQ_uwCG.js} +1 -1
  196. package/dist/client/assets/{use-infinite-scroll-Dt7gLdpr.js → use-infinite-scroll-0uWHf52y.js} +1 -1
  197. package/dist/client/assets/{use-join-requests-D0z99IAk.js → use-join-requests-FGCBDSYD.js} +1 -1
  198. package/dist/client/assets/{use-mcp-auth-status-C7G9bAkb.js → use-mcp-auth-status-CFgkpOhb.js} +1 -1
  199. package/dist/client/assets/{use-mcp-client-DrROXOcH.js → use-mcp-client-D2BCR1MH.js} +1 -1
  200. package/dist/client/assets/{use-mcp-tools-D28ox9dJ.js → use-mcp-tools-DadUkegG.js} +1 -1
  201. package/dist/client/assets/{use-members-mvfsRjey.js → use-members-X6Ssb-cK.js} +1 -1
  202. package/dist/client/assets/{use-mobile-nauPjzo2.js → use-mobile-Cd6_A-wv.js} +1 -1
  203. package/dist/client/assets/{use-navigate-to-agent-BJC_x779.js → use-navigate-to-agent-rb-KJLb8.js} +1 -1
  204. package/dist/client/assets/{use-org-auth-client-jU0nDPT-.js → use-org-auth-client-Bw3VIyYp.js} +1 -1
  205. package/dist/client/assets/{use-org-sso-j8hZyqdO.js → use-org-sso-DBoYR181.js} +1 -1
  206. package/dist/client/assets/{use-organization-roles-thqey2Pm.js → use-organization-roles-B2nz6Y2V.js} +1 -1
  207. package/dist/client/assets/{use-organization-settings-BJ1bjHsL.js → use-organization-settings-B7BUH-ed.js} +1 -1
  208. package/dist/client/assets/{use-registry-app-CeyrXTI4.js → use-registry-app-DnzAi61_.js} +1 -1
  209. package/dist/client/assets/{use-registry-connections-D94L7VqK.js → use-registry-connections-dW2A6Cn6.js} +1 -1
  210. package/dist/client/assets/{use-secrets-C1Fme0Ya.js → use-secrets-BDm4jx5-.js} +1 -1
  211. package/dist/client/assets/{use-status-sounds-B1YKt2sD.js → use-status-sounds-Bf8VuMQs.js} +1 -1
  212. package/dist/client/assets/{use-view-mode-gP4n4GFH.js → use-view-mode-Rpx9lr2S.js} +1 -1
  213. package/dist/client/assets/{use-virtual-mcp-C964oRwj.js → use-virtual-mcp-BIj51zng.js} +1 -1
  214. package/dist/client/assets/useInfiniteQuery-B2tGgvl5.js +1 -0
  215. package/dist/client/assets/{useRouterState-Bi7YKwTw.js → useRouterState-DPwhq9G0.js} +1 -1
  216. package/dist/client/assets/useSuspenseInfiniteQuery-BYVVsI1f.js +1 -0
  217. package/dist/client/assets/{users-BiDYlXA2.js → users-DAp0zXfL.js} +1 -1
  218. package/dist/client/assets/variant-calendar-ByIjiAPe.js +1 -0
  219. package/dist/client/assets/{view-mode-toggle-kFlOpvCC.js → view-mode-toggle-BbtMRSS5.js} +1 -1
  220. package/dist/client/index.html +2 -2
  221. package/dist/server/cli.js +1 -1
  222. package/dist/server/server.js +1 -1
  223. package/package.json +1 -1
  224. package/dist/client/assets/Check-BF3t7WWi.js +0 -1
  225. package/dist/client/assets/ChevronUp-Y-IpPAUR.js +0 -1
  226. package/dist/client/assets/Circle-0HId1SV6.js +0 -1
  227. package/dist/client/assets/DotsVertical-CYU3Mae1.js +0 -1
  228. package/dist/client/assets/Flag01-B_AKNFoc.js +0 -1
  229. package/dist/client/assets/List-DZAsltZv.js +0 -1
  230. package/dist/client/assets/TrendUp01-7N_6K3-X.js +0 -1
  231. package/dist/client/assets/UserPlus01-D2pAl0t2.js +0 -1
  232. package/dist/client/assets/agent-icon-DmIJ53uv.js +0 -1
  233. package/dist/client/assets/agents-list-GFWV8fSw.js +0 -1
  234. package/dist/client/assets/ai-providers-C93Uux8H.js +0 -1
  235. package/dist/client/assets/app-editor-GnwEYs2F.js +0 -1
  236. package/dist/client/assets/automation-runs-yMzfgCqo.js +0 -188
  237. package/dist/client/assets/automations-Db9v_2wu.js +0 -1
  238. package/dist/client/assets/buckets-Bkz3itxJ.js +0 -1
  239. package/dist/client/assets/bulk-category-panel-EjjgUKdU.js +0 -1
  240. package/dist/client/assets/calendar-BdMqQsTv.js +0 -1
  241. package/dist/client/assets/category-editor-l1ImzDA-.js +0 -1
  242. package/dist/client/assets/checkbox-CxV2vfbv.js +0 -1
  243. package/dist/client/assets/collection-detail-ByPPxvaR.js +0 -1
  244. package/dist/client/assets/collection-display-button-BBHublq2.js +0 -1
  245. package/dist/client/assets/commerce-onboarding-Dgs4FWfH.js +0 -1
  246. package/dist/client/assets/connect-desktop-dialog-CPSwwSyz.js +0 -1
  247. package/dist/client/assets/connection-detail-DuvF3pbE.js +0 -1
  248. package/dist/client/assets/connections-CE66Octw.js +0 -1
  249. package/dist/client/assets/dropdown-menu-BgNr7tM1.js +0 -1
  250. package/dist/client/assets/file-explorer-nG37TAVQ.js +0 -2
  251. package/dist/client/assets/general-c3hgsq_x.js +0 -1
  252. package/dist/client/assets/index-DKadkG06.js +0 -4
  253. package/dist/client/assets/index-DpLPq5a_.css +0 -1
  254. package/dist/client/assets/index-bj26_8KX.js +0 -1
  255. package/dist/client/assets/members-CrKGCoFu.js +0 -1
  256. package/dist/client/assets/orgs-jcqywdGM.js +0 -1
  257. package/dist/client/assets/page-seo-sheet-BF2mpJ0B.js +0 -1
  258. package/dist/client/assets/post-editor-JD3fSSO7.js +0 -1
  259. package/dist/client/assets/profile-CZ9vM3_S.js +0 -1
  260. package/dist/client/assets/project-app-view-40EQ9ogm.js +0 -1
  261. package/dist/client/assets/record-editor-BmGDR-eB.js +0 -1
  262. package/dist/client/assets/redirect-editor-0M8-Neu7.js +0 -1
  263. package/dist/client/assets/registry-CwTOcwuV.js +0 -2
  264. package/dist/client/assets/roles-Bo-eSbrf.js +0 -1
  265. package/dist/client/assets/secrets-C_1Jcs02.js +0 -1
  266. package/dist/client/assets/sections-editor-gaZ0BvyI.js +0 -2
  267. package/dist/client/assets/select-B6GE4jHJ.js +0 -1
  268. package/dist/client/assets/self-tool-result-DJIiUu6Z.js +0 -1
  269. package/dist/client/assets/seo-editor-DNUmLmzw.js +0 -1
  270. package/dist/client/assets/sso-D7EYt-G3.js +0 -1
  271. package/dist/client/assets/store-registry-s8bkhEBH.js +0 -2
  272. package/dist/client/assets/use-clock-tick-DboEo7Cc.js +0 -1
  273. package/dist/client/assets/use-deco-credits-Bm-VH5Hm.js +0 -1
  274. package/dist/client/assets/useInfiniteQuery-DKhJHTs2.js +0 -1
  275. package/dist/client/assets/useSuspenseInfiniteQuery-DAAXTkZt.js +0 -1
  276. package/dist/client/assets/variant-calendar-m6XjJ2dx.js +0 -1
@@ -1 +0,0 @@
1
- import{c as ie,j as s,B as J,C as ce,n as fe,a as he,r as K,m as ge,K as ee,d as xe,p as $,t as te,l as je}from"./index-DF3zg-P1.js";import{d as Y,c as de,a as se,D as oe}from"./dropdown-menu-BgNr7tM1.js";import{a as be}from"./Users03-WVYBBENu.js";import{G as me}from"./use-registry-app-CeyrXTI4.js";import{u as Ce,b as ye,c as we}from"./use-virtual-mcp-C964oRwj.js";import{P as X}from"./index-CeqD0RVV.js";import{i as _e}from"./DotsVertical-CYU3Mae1.js";import{a as Ne,b as ve}from"./Settings02-CM0Uzs0U.js";import{s as Se}from"./Trash01-DEWgFvvg.js";import{A as Ie,av as De}from"./agent-icon-DmIJ53uv.js";import{c as ue}from"./use-navigate-to-agent-BJC_x779.js";import{C as Ae}from"./card-dLLzWD0r.js";import{f as ne}from"./formatDistanceToNow-Cb2QZZJn.js";import{u as Ee}from"./use-capability--WeMT0KP.js";import{E as Te}from"./empty-state-CdKwtMyP.js";import{u as ke}from"./use-create-virtual-mcp-NwJ9x5Kd.js";import{u as Ge}from"./use-connection-twfWXxwG.js";import{u as re}from"./use-mcp-client-DrROXOcH.js";import{S as Le}from"./constants-BHDe7bIw.js";import{u as Oe,G as Pe}from"./github-repo-picker-C-tZ-Bba.js";import{g as ze}from"./github-repo-scope-DjMZbiKa.js";import{f as Me,a as $e,p as He}from"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import{e as Fe,d as Re,D as Ue,a as Be,c as Ve}from"./dialog-CmXDzme5.js";import{C as Ke}from"./collection-search-C4jDpdZf.js";import{c as qe,b as Qe,d as Je,A as We,e as Ye,g as Xe,a as Ze,f as et}from"./alert-dialog-3VMQ65hF.js";import{S as tt}from"./search-input-ByuB0YyC.js";import{s as le}from"./Plus-DWjKZ2wj.js";import"./Check-BF3t7WWi.js";import"./ChevronRight-Fgy0rUS_.js";import"./Circle-0HId1SV6.js";import"./use-mcp-tools-D28ox9dJ.js";import"./use-collections-K1HyCAfG.js";import"./sidebar-BFdShy9x.js";import"./LayoutLeft-C0g0LezP.js";import"./use-mobile-nauPjzo2.js";import"./X-Dm6kY_ek.js";import"./tooltip-O3iHy7-o.js";import"./AlertCircle-B6AELEdc.js";import"./UserPlus01-D2pAl0t2.js";import"./Tool01-4pit7qOS.js";import"./ArrowUp-YK2fJPgi.js";import"./Tool02-tJKj7JcW.js";import"./XCircle-cwYbcP7y.js";import"./ArrowUpRight-BKVLcZTe.js";import"./TrendUp01-7N_6K3-X.js";import"./ZapSquare-Dj8pa8Fg.js";import"./ZoomOut-_psBJlXD.js";import"./CheckCircle-BfxYbuVE.js";import"./ChevronDown-CQLSXgt3.js";import"./ChevronUp-Y-IpPAUR.js";import"./Stars02-DBH33Ez2.js";import"./Copy01-B0CQRE_5.js";import"./Globe01-B52VKYy7.js";import"./Eye-CLtdCpUf.js";import"./FilterLines-DeiGsRZY.js";import"./Flag01-B_AKNFoc.js";import"./Star01-B-8espqJ.js";import"./Globe04-B0las6Jv.js";import"./SwitchHorizontal01-DUrn8gXV.js";import"./HardDrive-CU-vvmKE.js";import"./Image01-B-FQwXx8.js";import"./Key01-myvTSA8u.js";import"./LinkExternal01-d9EixhiS.js";import"./List-DZAsltZv.js";import"./Monitor01-BkDBzdlH.js";import"./Sun-MvOAGgKN.js";import"./Package-eNacrLmv.js";import"./Palette-BiKqXWvc.js";import"./Play-CdkPhmTs.js";import"./SearchLg-DBOWvxyl.js";import"./SearchMd-CKteZWzZ.js";import"./Shield01-aDvWVv5Z.js";import"./Stars01-DsfblQf3.js";import"./Upload01-C8RP0Fvq.js";import"./User01-v0Bqr3nA.js";import"./Users01-CPNZ7uMu.js";import"./XClose-DnNyN9T-.js";import"./Zap-CNRURtEh.js";import"./hooks-QHrmNjJQ.js";import"./decopilot-sse-pool-DHojW3EC.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./reusable-new-chat-CouMjkYR.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./auth-dSVlMQ86.js";import"./use-debounced-value-xN0eyoO9.js";import"./authenticate-and-persist-oauth-BHT9Kp62.js";import"./mcp-oauth-CoKzxQiz.js";import"./extract-connection-data-CK9iLAoG.js";function ae(t){const e=ie.c(19),{onCreateFromScratch:i,onImportGitHub:n,onImportDeco:l,isCreating:b,align:C,side:d,showBetaBadge:g}=t,y=C===void 0?"end":C;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(be,{size:14}),e[0]=x):x=e[0];let m;e[1]!==b||e[2]!==i?(m=s.jsxs(Y,{disabled:b,onClick:i,children:[x,"Create from scratch"]}),e[1]=b,e[2]=i,e[3]=m):m=e[3];let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(me,{className:"size-3.5"}),e[4]=f):f=e[4];let a;e[5]!==g?(a=g&&s.jsx("span",{className:"ml-auto text-[10px] font-medium text-muted-foreground bg-muted rounded px-1 py-0.5",children:"Beta"}),e[5]=g,e[6]=a):a=e[6];let h;e[7]!==n||e[8]!==a?(h=s.jsxs(Y,{onClick:n,children:[f,"Import from GitHub",a]}),e[7]=n,e[8]=a,e[9]=h):h=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("img",{src:"/logos/deco%20logo.svg",alt:"deco.cx",className:"size-3.5"}),e[10]=c):c=e[10];let r;e[11]!==l?(r=s.jsxs(Y,{onClick:l,children:[c,"Import from deco.cx"]}),e[11]=l,e[12]=r):r=e[12];let u;return e[13]!==y||e[14]!==d||e[15]!==m||e[16]!==h||e[17]!==r?(u=s.jsxs(de,{side:d,align:y,className:"w-48",children:[m,h,r]}),e[13]=y,e[14]=d,e[15]=m,e[16]=h,e[17]=r,e[18]=u):u=e[18],u}function st(t){const e=ie.c(45),{project:i,lastUsedAt:n,onDeleteClick:l}=t,b=ue();let C;e[0]!==b||e[1]!==i.id?(C=()=>b(i.id),e[0]=b,e[1]=i.id,e[2]=C):C=e[2];let d;e[3]!==i.title||e[4]!==C?(d=s.jsx("button",{type:"button",onClick:C,className:"absolute inset-0 z-0","aria-label":i.title}),e[3]=i.title,e[4]=C,e[5]=d):d=e[5];let g;e[6]!==i.icon||e[7]!==i.title?(g=s.jsx(Ie,{icon:i.icon,name:i.title,size:"sm",className:"shrink-0 shadow-sm"}),e[6]=i.icon,e[7]=i.title,e[8]=g):g=e[8];let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(se,{asChild:!0,children:s.jsx(J,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:s.jsx(_e,{size:20})})}),e[9]=y):y=e[9];let x;e[10]!==b||e[11]!==i.id?(x=()=>b(i.id,{search:{main:"settings"}}),e[10]=b,e[11]=i.id,e[12]=x):x=e[12];let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(Ne,{size:16}),e[13]=m):m=e[13];let f;e[14]!==x?(f=s.jsxs(Y,{onClick:x,children:[m,"Settings"]}),e[14]=x,e[15]=f):f=e[15];let a;e[16]!==l?(a=l&&s.jsxs(Y,{variant:"destructive",onClick:G=>{G.stopPropagation(),l(G)},children:[s.jsx(Se,{size:16}),"Delete"]}),e[16]=l,e[17]=a):a=e[17];let h;e[18]!==f||e[19]!==a?(h=s.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:s.jsxs(oe,{children:[y,s.jsxs(de,{align:"end",children:[f,a]})]})}),e[18]=f,e[19]=a,e[20]=h):h=e[20];let c;e[21]!==g||e[22]!==h?(c=s.jsxs("div",{className:"flex items-start justify-between",children:[g,h]}),e[21]=g,e[22]=h,e[23]=c):c=e[23];let r;e[24]!==i.title?(r=s.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:i.title}),e[24]=i.title,e[25]=r):r=e[25];const u=i.description||"No description";let I;e[26]!==u?(I=s.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:u}),e[26]=u,e[27]=I):I=e[27];let D;e[28]!==r||e[29]!==I?(D=s.jsxs("div",{className:"flex flex-col gap-1",children:[r,I]}),e[28]=r,e[29]=I,e[30]=D):D=e[30];let w;e[31]!==c||e[32]!==D?(w=s.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[c,D]}),e[31]=c,e[32]=D,e[33]=w):w=e[33];let E;e[34]!==n||e[35]!==i.updated_at?(E=n?`Last used ${ne(new Date(n),{addSuffix:!0})}`:`Updated ${ne(new Date(i.updated_at),{addSuffix:!0})}`,e[34]=n,e[35]=i.updated_at,e[36]=E):E=e[36];let N;e[37]!==E?(N=s.jsx("div",{className:"border-t border-border mt-auto",children:s.jsx("div",{className:"h-10 flex items-center px-4.5",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:E})})}),e[37]=E,e[38]=N):N=e[38];let T;e[39]!==w||e[40]!==N?(T=s.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[w,N]}),e[39]=w,e[40]=N,e[41]=T):T=e[41];let v;return e[42]!==T||e[43]!==d?(v=s.jsxs(Ae,{className:"relative transition-colors group overflow-hidden flex flex-col h-full hover:bg-muted/50",children:[d,T]}),e[42]=T,e[43]=d,e[44]=v):v=e[44],v}const ot="deco-sites";function it(t){if(!t||typeof t!="object")return null;const e=t.github;if(!e||typeof e!="object")return null;const i=e.owner,n=e.repo;return typeof i!="string"||typeof n!="string"||i.length===0||n.length===0?null:{owner:i,repo:n}}function nt(t,e){const i=e?it(e):null,n=i?.owner??ot,l=i?.repo??t;return{owner:n,name:l,url:`https://github.com/${n}/${l}`}}function rt(t){return t.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")}async function pe(t,e,i){const n=await fetch(t,e),l=await n.json().catch(()=>({}));if(!n.ok)throw new Error(l.error??`${i} (${n.status})`);return l}function lt(t){return pe(`/api/${t}/deco-sites`,void 0,"Failed to load sites")}function at({open:t,onOpenChange:e,onBack:i}){const{org:n}=ce(),l=ue(),b=fe(),{data:C}=he.useSession(),[d,g]=K.useState(null),[y,x]=K.useState(null),[m,f]=K.useState(""),a=re({connectionId:Le,orgId:n.id,orgSlug:n.slug}),h=Ge({slug:"mcp-github"}),c=ze(h),r=Oe({enabled:t&&c.length===0}),u=c.length===1?c[0]??null:y,I=c.length>1&&!u,D=re({connectionId:u?.id??"",orgId:n.id,orgSlug:n.slug}),w=t&&c.length===0&&(r.status==="installing"||r.status==="authenticating"||r.status==="idle"),{data:E,isLoading:N,error:T}=ge({queryKey:ee.decoSites(C?.user?.email),queryFn:()=>lt(n.slug),enabled:t&&!!C?.user?.email,staleTime:6e4,retry:!1}),v=E?.sites??[],G=o=>{o||(g(null),x(null),f("")),e(o)},P=v.filter(o=>o.name.toLowerCase().includes(m.toLowerCase())||(o.domains?.[0]?.domain?.toLowerCase().includes(m.toLowerCase())??!1)),R=!d||P.some(o=>o.name===d),L=xe({mutationFn:async o=>{if(!u)throw new Error("GitHub is not connected. Complete GitHub setup and try again.");$("deco_site_import_started",{site_name:o});const{installations:k,appSlug:S}=await Me(_=>a.callTool(_),u.id),A=v.find(_=>_.name===o);if(!A)throw new Error("Selected site is no longer available");const j=nt(o,A.metadata),z=$e(k,j.owner);if(!z){const _=S?`https://github.com/apps/${S}/installations/new`:"https://github.com/settings/installations";throw new Error(`Install the GitHub App on the "${j.owner}" organization to import this site. ${_}`)}let V=null,U=null,B=null;const W=async()=>{B&&await a.callTool({name:"COLLECTION_VIRTUAL_MCP_DELETE",arguments:{id:B}}).catch(()=>{}),U&&await a.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:U,force:!0}}).catch(()=>{}),V&&await a.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:V,force:!0}}).catch(()=>{})};try{const _=await pe(`/api/${n.slug}/deco-sites/connection`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({siteName:o})},"Failed to create connection"),O=_.connId;if(!O)throw new Error("Server did not return a connection ID");V=O;const{childConnectionId:M}=await He({orgSlug:n.slug,sourceConnection:u,installationId:z.installationId,owner:j.owner,repo:j.name,githubCallTool:Z=>D.callTool(Z),selfCallTool:Z=>a.callTool(Z)});U=M;const H=_.icon??null,F=rt(o),q=o.toLowerCase(),p=await a.callTool({name:"COLLECTION_VIRTUAL_MCP_CREATE",arguments:{data:{title:o,description:"Imported from deco.cx",pinned:!1,icon:H??null,subtype:"project",metadata:{instructions:null,enabled_plugins:[],siteSlug:q,githubRepo:{owner:j.owner,name:j.name,url:j.url,installationId:z.installationId,connectionId:M},ui:{banner:null,bannerColor:"#22C55E",icon:H,themeColor:"#22C55E",slug:F,pinnedViews:[{connectionId:O,toolName:"fetch_assets",label:"Assets",icon:null},{connectionId:O,toolName:"get_monitor_data",label:"Monitor",icon:null}],layout:{defaultMainView:{type:"preview"},chatDefaultOpen:!0}}},connections:[{connection_id:O},{connection_id:M}]}}}),Q=p.structuredContent??p;if(!Q.item?.id)throw new Error("Failed to create the imported agent");return B=Q.item.id,{slug:F,virtualMcpId:Q.item.id,connId:O,item:Q.item}}catch(_){throw await W(),_}},onSuccess:({slug:o,virtualMcpId:k,item:S})=>{$("deco_site_import_succeeded",{site_name:S.title,virtual_mcp_id:k,slug:o}),b.setQueryData(ee.collectionItem(a,n.id,"","VIRTUAL_MCP",k),{item:S}),b.invalidateQueries({predicate:A=>{const j=A.queryKey;return j[1]===n.id&&j[3]==="collection"&&j[4]==="VIRTUAL_MCP"}}),b.invalidateQueries({queryKey:ee.projects(n.id)}),te.success(`Imported ${o} from deco.cx`),G(!1),localStorage.setItem("mesh:sidebar-open",JSON.stringify(!1)),l(k)},onError:o=>{$("deco_site_import_failed",{error:o instanceof Error?o.message:"Unknown error"}),te.error("Import failed: "+(o instanceof Error?o.message:"Unknown error"))}});return s.jsx(Fe,{open:t,onOpenChange:G,children:s.jsxs(Re,{className:"sm:max-w-[900px] p-0 gap-0 overflow-hidden",children:[s.jsx(Ue,{className:"sr-only",children:s.jsx(Be,{children:"Import from deco.cx"})}),s.jsxs("div",{className:"flex items-center h-12 border-b border-border px-4 gap-3",children:[i&&s.jsx("button",{type:"button",onClick:i,className:"flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors","aria-label":"Go back",children:s.jsx(ve,{size:18})}),s.jsx("span",{className:"text-sm font-medium text-foreground",children:"Import from deco.cx"})]}),s.jsx("div",{children:s.jsx(Ke,{value:m,onChange:f,placeholder:"Search sites...",onKeyDown:o=>{o.key==="Escape"&&f("")}})}),s.jsxs("div",{className:"pb-0 min-h-[300px]",children:[r.status==="error"&&s.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 h-48 px-8 text-center",children:[s.jsx("p",{className:"text-sm text-destructive",children:r.error??"Failed to connect GitHub"}),s.jsx(J,{variant:"outline",size:"sm",onClick:r.retry,children:"Retry GitHub setup"})]}),w&&r.status!=="error"&&s.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:"Setting up GitHub connection..."}),I&&!w&&r.status!=="error"&&s.jsxs("div",{className:"flex flex-col py-2",children:[s.jsx("div",{className:"px-8 py-2",children:s.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Select a GitHub connection"})}),c.map(o=>s.jsxs("button",{type:"button",onClick:()=>x(o),className:"flex items-center gap-3 px-8 py-3 hover:bg-accent transition-colors text-left",children:[o.icon?s.jsx("img",{src:o.icon,alt:o.title,className:"size-7 rounded-full shrink-0"}):s.jsx("div",{className:"size-7 rounded-full bg-muted flex items-center justify-center shrink-0",children:s.jsx(me,{className:"size-3.5 text-muted-foreground"})}),s.jsx("span",{className:"text-sm font-medium",children:o.title})]},o.id))]}),N&&!w&&r.status!=="error"&&s.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:"Loading sites..."}),!N&&!w&&!I&&r.status!=="error"&&!T&&v.length===0&&s.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:"No sites found for this account."}),!N&&!w&&!I&&r.status!=="error"&&v.length>0&&s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 max-h-[420px] overflow-y-auto py-4 px-8 [scrollbar-gutter:stable]",children:[P.length===0&&s.jsxs("p",{className:"col-span-3 text-sm text-muted-foreground text-center py-8",children:["No sites match “",m,"”"]}),P.map(o=>{const k=o.domains?.find(A=>A.production)?.domain??o.domains?.[0]?.domain,S=d===o.name;return s.jsxs("button",{type:"button",onClick:()=>g(o.name),className:je("flex flex-col rounded-xl border overflow-hidden text-left transition-all cursor-pointer",S?"border-primary ring-1 ring-primary":"border-border hover:border-muted-foreground/40"),children:[s.jsx("div",{className:"w-full aspect-video bg-muted overflow-hidden",children:o.thumb_url?s.jsx("img",{src:o.thumb_url,alt:o.name,className:"w-full h-full object-cover",loading:"lazy"}):s.jsx("div",{className:"w-full h-full bg-muted"})}),s.jsxs("div",{className:"px-4 py-3",children:[s.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:o.name}),k&&s.jsx("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:k})]})]},o.name)})]})]}),s.jsxs(Ve,{className:"px-8 py-5 border-t border-border",children:[s.jsx(J,{variant:"outline",onClick:()=>G(!1),disabled:L.isPending,children:"Cancel"}),s.jsx(J,{disabled:!d||!R||L.isPending||N||w||I||!u||r.status==="error",onClick:()=>d&&L.mutate(d),children:L.isPending?"Importing...":"Import"})]})]})})}function Vs(){const t=ie.c(46),{org:e}=ce(),i=Ce(),n=ye(),[l,b]=K.useState("");let C;t[0]===Symbol.for("react.memo_cache_sentinel")?(C={navigateOnCreate:!0},t[0]=C):C=t[0];const{createVirtualMCP:d,isCreating:g}=ke(C),[y,x]=K.useState(null),[m,f]=K.useState(!1),[a,h]=K.useState(!1),{granted:c}=Ee("agents:manage"),r=l.toLowerCase(),u=i.filter(p=>p.id!==e.id&&(p.title.toLowerCase().includes(r)||p.description?.toLowerCase().includes(r))),{data:I}=we(u.map(ct));let D;t[1]!==n||t[2]!==y?(D=async()=>{if(!y)return;const{id:p,title:Q}=y;x(null);try{await n.delete.mutateAsync(p),$("agent_deleted",{agent_id:p,source:"agents_list"}),te.success(`Deleted "${Q}"`)}catch{}},t[1]=n,t[2]=y,t[3]=D):D=t[3];const w=D,E=X,N=X,T=X;let v;t[4]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(X.Title,{children:"Agents"}),t[4]=v):v=t[4];let G;t[5]===Symbol.for("react.memo_cache_sentinel")?(G=p=>{p.key==="Escape"&&(b(""),p.target.blur())},t[5]=G):G=t[5];let P;t[6]!==l?(P=s.jsx(tt,{value:l,onChange:b,placeholder:"Search for an agent...",className:"w-full md:w-[375px]",onKeyDown:G}),t[6]=l,t[7]=P):P=t[7];let R;t[8]!==c||t[9]!==d||t[10]!==g?(R=c&&s.jsxs(oe,{children:[s.jsx(se,{asChild:!0,children:s.jsxs(J,{size:"sm",children:[s.jsx(le,{size:14}),"Create Agent"]})}),s.jsx(ae,{onCreateFromScratch:()=>{$("agent_create_clicked",{source:"agents_list",method:"scratch"}),d()},onImportGitHub:()=>{$("agent_create_clicked",{source:"agents_list",method:"github"}),h(!0)},onImportDeco:()=>{$("agent_create_clicked",{source:"agents_list",method:"deco"}),f(!0)},isCreating:g,align:"end"})]}),t[8]=c,t[9]=d,t[10]=g,t[11]=R):R=t[11];let L;t[12]!==P||t[13]!==R?(L=s.jsxs("div",{className:"flex flex-col gap-6",children:[v,s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[P,R]})]}),t[12]=P,t[13]=R,t[14]=L):L=t[14];const o=u.length===0&&s.jsx("div",{className:"flex items-center justify-center py-20",children:s.jsx(Te,{image:s.jsx(De,{size:48,className:"text-muted-foreground"}),title:l?"No agents found":"No agents yet",description:l?`No agents match "${l}"`:c?"Create an agent to get started.":"Ask an organization admin to create one.",actions:!l&&c&&s.jsxs(oe,{children:[s.jsx(se,{asChild:!0,children:s.jsxs(J,{size:"sm",children:[s.jsx(le,{size:14}),"Create Agent"]})}),s.jsx(ae,{onCreateFromScratch:()=>{$("agent_create_clicked",{source:"agents_list_empty",method:"scratch"}),d()},onImportGitHub:()=>{$("agent_create_clicked",{source:"agents_list_empty",method:"github"}),h(!0)},onImportDeco:()=>{$("agent_create_clicked",{source:"agents_list_empty",method:"deco"}),f(!0)},isCreating:g,align:"center",showBetaBadge:!0})]})})}),k=u.length>0&&s.jsxs("div",{className:"mt-6 @container",children:[s.jsx("h3",{className:"text-sm font-medium text-muted-foreground mb-3",children:"Agents"}),s.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:u.map(p=>s.jsx(st,{project:p,lastUsedAt:I?.get(p.id)?.last_used_at,onDeleteClick:c?()=>x({id:p.id,title:p.title}):void 0},p.id))})]});let S;t[15]!==k||t[16]!==T.Body||t[17]!==L||t[18]!==o?(S=s.jsxs(T.Body,{children:[L,o,k]}),t[15]=k,t[16]=T.Body,t[17]=L,t[18]=o,t[19]=S):S=t[19];let A;t[20]!==S||t[21]!==N.Content?(A=s.jsx(N.Content,{children:S}),t[20]=S,t[21]=N.Content,t[22]=A):A=t[22];let j;t[23]!==a?(j=s.jsx(Pe,{open:a,onOpenChange:h}),t[23]=a,t[24]=j):j=t[24];let z;t[25]!==m?(z=s.jsx(at,{open:m,onOpenChange:f}),t[25]=m,t[26]=z):z=t[26];const V=!!y;let U;t[27]===Symbol.for("react.memo_cache_sentinel")?(U=p=>!p&&x(null),t[27]=U):U=t[27];let B;t[28]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(qe,{children:"Delete Agent?"}),t[28]=B):B=t[28];const W=y?.title;let _;t[29]!==W?(_=s.jsxs(Qe,{children:[B,s.jsxs(Je,{children:["This action cannot be undone. This will permanently delete"," ",s.jsx("span",{className:"font-medium text-foreground",children:W}),"."]})]}),t[29]=W,t[30]=_):_=t[30];let O;t[31]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(We,{children:"Cancel"}),t[31]=O):O=t[31];let M;t[32]!==w?(M=s.jsxs(Ye,{children:[O,s.jsx(Xe,{onClick:w,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),t[32]=w,t[33]=M):M=t[33];let H;t[34]!==_||t[35]!==M?(H=s.jsxs(Ze,{children:[_,M]}),t[34]=_,t[35]=M,t[36]=H):H=t[36];let F;t[37]!==V||t[38]!==H?(F=s.jsx(et,{open:V,onOpenChange:U,children:H}),t[37]=V,t[38]=H,t[39]=F):F=t[39];let q;return t[40]!==E||t[41]!==A||t[42]!==j||t[43]!==z||t[44]!==F?(q=s.jsxs(E,{children:[A,j,z,F]}),t[40]=E,t[41]=A,t[42]=j,t[43]=z,t[44]=F,t[45]=q):q=t[45],q}function ct(t){return t.id}export{Vs as default};
@@ -1 +0,0 @@
1
- import{H as V,I as N,ad as ae,af as le,ag as he,ae as xe,b3 as me,c as U,J as ge,M as be,r as M,j as s,ah as Ee,t as G,aL as ye,C as re,n as oe,d as J,K as Q,m as ve,l as ue,B as L,p as je,E as $e}from"./index-DF3zg-P1.js";import{i as Fe}from"./AlertCircle-B6AELEdc.js";import{P as te}from"./index-CeqD0RVV.js";import{S as ne}from"./skeleton-BGZh750P.js";import{b as _e,a as ce,S as de,c as Re}from"./settings-section-DS6otYn7.js";import{u as X,a as se,b as Se}from"./use-ai-providers-B4nhSJlr.js";import{i as Me}from"./CheckCircle-BfxYbuVE.js";import{n as Oe,o as Te,q as Ue,S as ze}from"./chat-context-CyCuyn4t.js";import{g as qe,h as Le}from"./use-organization-settings-BJ1bjHsL.js";import{M as Ve,b as ke,P as Qe,C as pe}from"./select-model-CebmAt-C.js";import{u as Be}from"./use-debounced-autosave-BdWGMbok.js";import{I as ie}from"./input-BZTiU0ds.js";import{T as fe,a as Ge}from"./toggle-group-BcxqPGrf.js";import{b as Ie,c as Ce,d as Ne,A as we,a as Pe,e as De,g as Ae,f as Ke}from"./alert-dialog-3VMQ65hF.js";import{u as H}from"./studio-tools-bThaob6p.js";import{s as Ye}from"./Plus-DWjKZ2wj.js";import{b as We}from"./Tool01-4pit7qOS.js";import{s as He}from"./Trash01-DEWgFvvg.js";import{A as Je}from"./avatar-UXZ4R5Yb.js";import{i as Xe}from"./Settings02-CM0Uzs0U.js";import{s as Ze}from"./Eye-CLtdCpUf.js";import{c as et,D as tt,a as st,d as it,e as rt}from"./dialog-CmXDzme5.js";import{f as ot}from"./formatDistanceToNow-Cb2QZZJn.js";import{R as lt}from"./require-capability-CEBGt_Ot.js";import"./sidebar-BFdShy9x.js";import"./LayoutLeft-C0g0LezP.js";import"./use-mobile-nauPjzo2.js";import"./X-Dm6kY_ek.js";import"./tooltip-O3iHy7-o.js";import"./card-dLLzWD0r.js";import"./ArrowUpRight-BKVLcZTe.js";import"./autosend-D_-616qs.js";import"./hooks-QHrmNjJQ.js";import"./use-mcp-client-DrROXOcH.js";import"./constants-BHDe7bIw.js";import"./auth-dSVlMQ86.js";import"./decopilot-sse-pool-DHojW3EC.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-C964oRwj.js";import"./use-collections-K1HyCAfG.js";import"./location-BpLtHjTZ.js";import"./tab-id-BijBBRwE.js";import"./use-decopilot-events-BEOY-_n2.js";import"./drawer-Ds-r7525.js";import"./checkbox-CxV2vfbv.js";import"./Check-BF3t7WWi.js";import"./select-B6GE4jHJ.js";import"./ChevronDown-CQLSXgt3.js";import"./ChevronUp-Y-IpPAUR.js";import"./Key01-myvTSA8u.js";import"./SearchMd-CKteZWzZ.js";import"./ai-providers-logos-DD3qZ33J.js";import"./Monitor01-BkDBzdlH.js";import"./ChevronRight-Fgy0rUS_.js";import"./connect-desktop-dialog-CPSwwSyz.js";import"./Copy01-B0CQRE_5.js";import"./Image01-B-FQwXx8.js";import"./Stars01-DsfblQf3.js";import"./User01-v0Bqr3nA.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-capability--WeMT0KP.js";import"./access-gate-CPecvlS5.js";import"./capability-load-error-B9xkkNBq.js";V({title:N(),url:N(),icon:N()});V({registries:le(N(),V({enabled:he()})).describe("Per-registry enabled/disabled state. Key is connection ID. Absent registries are treated as enabled."),blockedMcps:ae(N()).describe("List of MCP app_name or app_id values to hide from the store.")});const W=V({keyId:N(),modelId:N(),title:N().optional()}).nullable();xe(["fast","smart","thinking","image","web_search","deep_research"]);xe(["fast","smart","thinking"]);const at=V({tiers:V({fast:W,smart:W,thinking:W,image:W,web_search:W,deep_research:W})});V({ids:ae(N()).describe("Ordered list of custom virtual MCP agent ids to show on the home view.")});V({id:N().describe("Brand context ID"),name:N().describe("Company name"),domain:N().describe("Company domain (e.g. example.com)"),overview:N().describe("Company overview / description"),logo:N().nullable().optional().describe("Logo URL"),favicon:N().nullable().optional().describe("Favicon URL"),ogImage:N().nullable().optional().describe("OG image URL"),fonts:V({heading:N().optional().describe("Font family for headings"),body:N().optional().describe("Font family for body text"),code:N().optional().describe("Font family for code / monospace")}).nullable().optional().describe("Font families by semantic role"),colors:V({primary:N().optional().describe("Primary brand color (hex)"),secondary:N().optional().describe("Secondary brand color (hex)"),accent:N().optional().describe("Accent / highlight color (hex)"),background:N().optional().describe("Background color (hex)"),foreground:N().optional().describe("Foreground / text color (hex)")}).nullable().optional().describe("Semantic color palette"),images:ae(le(N(),me())).nullable().optional().describe("Brand images"),metadata:le(N(),me()).nullable().optional().describe("Extra design tokens (typography, components, spacing, layout, tone, etc.)"),archivedAt:N().nullable().optional().describe("Archive timestamp (null to unarchive)"),isDefault:he().optional().describe("Whether this is the default brand for the organization")});const nt=e=>e.capabilities?.includes("image")===!0,ct=e=>Oe(e),dt=e=>Te(e),mt=[{key:"fast",label:"Fast",description:"Fastest responses, best for quick tasks",filter:void 0},{key:"smart",label:"Smart",description:"Balanced speed and capability",filter:void 0},{key:"thinking",label:"Thinking",description:"Most capable, best for complex tasks",filter:void 0},{key:"image",label:"Image",description:"Image generation",filter:nt},{key:"web_search",label:"Web search",description:"Quick, up-to-date answers from the web",filter:ct},{key:"deep_research",label:"Deep research",description:"In-depth, multi-source research reports",filter:dt}];function ut(e){const t=U.c(20),{slot:i,onSlotChange:a,filterModels:r,defaultKeyId:l}=e,o=X(),[x,S]=M.useState(i?.keyId??l);let b;t[0]!==i?(b=()=>{i?.keyId&&S(i.keyId)},t[0]=i,t[1]=b):b=t[1];const d=i?.keyId;let n;t[2]!==d?(n=[d],t[2]=d,t[3]=n):n=t[3],M.useEffect(b,n);const m=x??l;let c;t[4]!==m||t[5]!==o?(c=m?o.find(y=>y.id===m):null,t[4]=m,t[5]=o,t[6]=c):c=t[6];const u=c,{models:g,isLoading:j}=se(r?m??void 0:void 0),_=r?j||g.some(r):!0;let p;t[7]!==i||t[8]!==u?.providerId?(p=i?{modelId:i.modelId,title:i.title??i.modelId,keyId:i.keyId,providerId:u?.providerId??"deco",description:null,logo:null,capabilities:[],limits:null,costs:null}:null,t[7]=i,t[8]=u?.providerId,t[9]=p):p=t[9];const k=p;if(r&&!_){let y;return t[10]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx("p",{className:"text-xs text-muted-foreground italic",children:"Not available with current provider"}),t[10]=y):y=t[10],y}let I;t[11]===Symbol.for("react.memo_cache_sentinel")?(I=y=>S(y),t[11]=I):I=t[11];let h;t[12]!==m||t[13]!==a?(h=y=>{const F=y.keyId??m??"";S(F),a({keyId:F,modelId:y.modelId,title:y.title})},t[12]=m,t[13]=a,t[14]=h):h=t[14];let f;return t[15]!==m||t[16]!==r||t[17]!==k||t[18]!==h?(f=s.jsx(Ve,{variant:"bordered",placeholder:"Pick model",model:k,credentialId:m,filterModels:r,onCredentialChange:I,onModelChange:h}),t[15]=m,t[16]=r,t[17]=k,t[18]=h,t[19]=f):f=t[19],f}function pt(e){const t=U.c(2),{isPending:i,showSaved:a}=e;if(i){let r;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[s.jsx(ye,{size:12,className:"animate-spin"}),"Saving…"]}),t[0]=r):r=t[0],r}if(a){let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[s.jsx(Me,{size:12}),"Saved"]}),t[1]=r):r=t[1],r}return null}function ft(){const e=U.c(42),t=X(),i=qe(),a=t.length>0;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=ge(at),e[0]=r):r=e[0];let l;e[1]!==i?(l={resolver:r,values:i,mode:"onChange"},e[1]=i,e[2]=l):l=e[2];const o=be(l),{mutate:x,isPending:S,isSuccess:b}=Le(),d=o.formState.isDirty;let n;e[3]!==o||e[4]!==i||e[5]!==x?(n={delayMs:250,save:async()=>{const v=o.getValues();x(v,{onSuccess:()=>o.reset(v,{keepValues:!0}),onError:P=>{o.reset(i),G.error(`Failed to save: ${P.message}`)}})}},e[3]=o,e[4]=i,e[5]=x,e[6]=n):n=e[6];const{schedule:m}=Be(n),c=t[0],u=t[1],g=t[2],{models:j}=se(c?.id),{models:_}=se(u?.id),{models:p}=se(g?.id);let k,I;e[7]!==o||e[8]!==a?(k=()=>{a||o.reset({tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}})},I=[a,o],e[7]=o,e[8]=a,e[9]=k,e[10]=I):(k=e[9],I=e[10]),M.useEffect(k,I);let h;e[11]!==t||e[12]!==o||e[13]!==c||e[14]!==u||e[15]!==g||e[16]!==j||e[17]!==_||e[18]!==p?(h=()=>{const v=o.getValues(),P=new Set(t.map(ht)),$={};c?.id&&($[c.id]=j),u?.id&&($[u.id]=_),g?.id&&($[g.id]=p);const w=Y=>Y!=null&&!P.has(Y.keyId),C={fast:w(v.tiers.fast)?null:v.tiers.fast,smart:w(v.tiers.smart)?null:v.tiers.smart,thinking:w(v.tiers.thinking)?null:v.tiers.thinking,image:w(v.tiers.image)?null:v.tiers.image,web_search:w(v.tiers.web_search)?null:v.tiers.web_search,deep_research:w(v.tiers.deep_research)?null:v.tiers.deep_research},B=!C.fast||!C.smart||!C.thinking||!C.image||!C.web_search||!C.deep_research,z=C.fast===v.tiers.fast&&C.smart===v.tiers.smart&&C.thinking===v.tiers.thinking&&C.image===v.tiers.image&&C.web_search===v.tiers.web_search&&C.deep_research===v.tiers.deep_research;if(!B&&z)return;const q=Ue(t,$);o.reset({tiers:{fast:C.fast??q.chat.fast,smart:C.smart??q.chat.smart,thinking:C.thinking??q.chat.thinking,image:C.image??q.image,web_search:C.web_search??q.webSearch,deep_research:C.deep_research??q.deepResearch}},{keepDirty:!0})},e[11]=t,e[12]=o,e[13]=c,e[14]=u,e[15]=g,e[16]=j,e[17]=_,e[18]=p,e[19]=h):h=e[19];const f=c?.id,y=u?.id,F=g?.id;let O;e[20]!==t||e[21]!==o||e[22]!==j||e[23]!==_||e[24]!==p||e[25]!==f||e[26]!==y||e[27]!==F?(O=[o,t,j,_,p,f,y,F],e[20]=t,e[21]=o,e[22]=j,e[23]=_,e[24]=p,e[25]=f,e[26]=y,e[27]=F,e[28]=O):O=e[28],M.useEffect(h,O);let T;e[29]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx("p",{className:"text-sm text-muted-foreground",children:"These models power chat, automations, and tools across your organization."}),e[29]=T):T=e[29];const R=b&&!d;let D;e[30]!==S||e[31]!==R?(D=s.jsxs("div",{className:"flex items-center justify-between -mt-2 mb-2",children:[T,s.jsx(pt,{isPending:S,showSaved:R})]}),e[30]=S,e[31]=R,e[32]=D):D=e[32];let A;e[33]!==t[0]?.id||e[34]!==o.control||e[35]!==m?(A=mt.map(v=>s.jsx(Ee,{control:o.control,name:`tiers.${v.key}`,render:P=>{const{field:$}=P;return s.jsx(_e,{title:v.label,description:v.description,action:s.jsx(ut,{slot:$.value,defaultKeyId:t[0]?.id??null,filterModels:v.filter,onSlotChange:w=>{$.onChange(w),m()}})})}},v.key)),e[33]=t[0]?.id,e[34]=o.control,e[35]=m,e[36]=A):A=e[36];let K;e[37]!==A?(K=s.jsx(ce,{children:A}),e[37]=A,e[38]=K):K=e[38];let E;return e[39]!==D||e[40]!==K?(E=s.jsxs(de,{title:"Default models",headerClassName:"pl-0",children:[D,K]}),e[39]=D,e[40]=K,e[41]=E):E=e[41],E}function ht(e){return e.id}const xt={usd:[10,20,100],brl:[50,100,500]};function gt(){const e=U.c(26),t=H(),[i,a]=M.useState(!1),{mutate:r,isPending:l}=J({mutationFn:async h=>{const{url:f}=await t.call("AI_PROVIDER_TOPUP_URL",{providerId:"deco",amountCents:h,currency:d});return f},onSuccess:yt,onError:bt}),[o,x]=M.useState(""),[S,b]=M.useState("usd"),d=S,n=parseFloat(o),m=!isNaN(n)&&n>=1,c=d==="brl"?"R$":"$";let u;e[0]!==b?(u=h=>{h&&b(h)},e[0]=b,e[1]=u):u=e[1];let g,j;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(fe,{value:"usd",className:"px-3.5 text-sm",children:"USD"}),j=s.jsx(fe,{value:"brl",className:"px-3.5 text-sm",children:"BRL"}),e[2]=g,e[3]=j):(g=e[2],j=e[3]);let _;e[4]!==d||e[5]!==u?(_=s.jsxs(Ge,{type:"single",variant:"outline",size:"default",value:d,onValueChange:u,children:[g,j]}),e[4]=d,e[5]=u,e[6]=_):_=e[6];let p;e[7]!==d||e[8]!==c||e[9]!==i||e[10]!==l||e[11]!==r?(p=!i&&s.jsxs(s.Fragment,{children:[xt[d].map(h=>s.jsxs(L,{variant:"outline",className:"h-10 px-4 text-sm font-medium tabular-nums",disabled:l,onClick:()=>r(h*100),children:[c,h]},h)),s.jsx(L,{variant:"ghost",className:"h-10 px-4 text-sm text-muted-foreground",onClick:()=>a(!0),disabled:l,children:"Custom"})]}),e[7]=d,e[8]=c,e[9]=i,e[10]=l,e[11]=r,e[12]=p):p=e[12];let k;e[13]!==c||e[14]!==o||e[15]!==n||e[16]!==i||e[17]!==m||e[18]!==l||e[19]!==x||e[20]!==r?(k=i&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"relative max-w-[140px]",children:[s.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-sm text-muted-foreground select-none",children:c}),s.jsx(ie,{type:"number",min:"1",step:"1",placeholder:"50",value:o,onChange:h=>x(h.target.value),className:"h-10 text-sm pl-7",autoFocus:!0})]}),s.jsx(L,{className:"h-10",disabled:!m||l,onClick:()=>r(Math.round(n*100)),children:l?"...":"Add"}),s.jsx(L,{variant:"ghost",className:"h-10 text-sm text-muted-foreground",onClick:()=>{a(!1),x("")},children:"Cancel"})]}),e[13]=c,e[14]=o,e[15]=n,e[16]=i,e[17]=m,e[18]=l,e[19]=x,e[20]=r,e[21]=k):k=e[21];let I;return e[22]!==_||e[23]!==p||e[24]!==k?(I=s.jsx("div",{className:"flex flex-col gap-2.5",children:s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[_,p,k]})}),e[22]=_,e[23]=p,e[24]=k,e[25]=I):I=e[25],I}function bt(e){G.error(`Top-up failed: ${e.message}`)}function yt(e){e&&window.open(e,"_blank","noopener,noreferrer")}function vt(e){return e<=0?"text-destructive":e<=1?"text-warning":"text-foreground"}function jt(){const e=U.c(58),{org:t}=re(),i=H(),a=oe(),r=X();let l;e[0]!==r?(l=r.find(St),e[0]=r,e[1]=l):l=e[1];const o=l,[x,S]=M.useState(!1);let b;e[2]!==o||e[3]!==i?(b=async()=>{o&&await i.call("AI_PROVIDER_KEY_DELETE",{keyId:o.id})},e[2]=o,e[3]=i,e[4]=b):b=e[4];let d;e[5]!==t.id||e[6]!==a?(d=()=>{a.invalidateQueries({queryKey:Q.aiProviderKeys(t.id)}),a.invalidateQueries({queryKey:Q.aiProviders(t.id)}),G.success("Deco AI Gateway disconnected"),S(!1)},e[5]=t.id,e[6]=a,e[7]=d):d=e[7];let n;e[8]!==b||e[9]!==d?(n={mutationFn:b,onSuccess:d,onError:_t},e[8]=b,e[9]=d,e[10]=n):n=e[10];const{mutate:m,isPending:c}=J(n);let u;e[11]!==t.id?(u=Q.aiProviderCredits(t.id,"deco"),e[11]=t.id,e[12]=u):u=e[12];const g=!!o;let j;e[13]!==i?(j=async()=>{try{return await i.call("AI_PROVIDER_CREDITS",{providerId:"deco"})}catch{return null}},e[13]=i,e[14]=j):j=e[14];let _;e[15]!==u||e[16]!==g||e[17]!==j?(_={queryKey:u,enabled:g,staleTime:6e4,queryFn:j},e[15]=u,e[16]=g,e[17]=j,e[18]=_):_=e[18];const{data:p,isLoading:k,refetch:I,isFetching:h}=ve(_);if(!o)return null;const f=p?.balanceCents!=null?p.balanceCents/100:null;let y;e[19]!==f?(y=f!=null?`$${f.toFixed(2)}`:"—",e[19]=f,e[20]=y):y=e[20];const F=y;let O;e[21]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("img",{src:"/logos/deco%20logo.svg",alt:"Deco AI Gateway",className:"size-9 rounded-lg object-contain dark:bg-white dark:p-0.5"}),s.jsx("div",{children:s.jsx("p",{className:"text-xs text-muted-foreground",children:"Access to 100+ models"})})]}),e[21]=O):O=e[21];let T;e[22]===Symbol.for("react.memo_cache_sentinel")?(T=()=>S(!0),e[22]=T):T=e[22];let R;e[23]!==c?(R=s.jsxs("div",{className:"flex items-center justify-between",children:[O,s.jsx(L,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground hover:text-destructive",onClick:T,disabled:c,children:"Disconnect"})]}),e[23]=c,e[24]=R):R=e[24];let D;e[25]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsxs(Ie,{children:[s.jsx(Ce,{children:"Disconnect Deco AI Gateway"}),s.jsx(Ne,{children:"This will remove the Deco AI Gateway from this workspace. Your credit balance is preserved and will be available if you reconnect."})]}),e[25]=D):D=e[25];let A;e[26]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(we,{children:"Cancel"}),e[26]=A):A=e[26];let K;e[27]!==m?(K=s.jsxs(Pe,{children:[D,s.jsxs(De,{children:[A,s.jsx(Ae,{onClick:()=>m(),className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Disconnect"})]})]}),e[27]=m,e[28]=K):K=e[28];let E;e[29]!==x||e[30]!==K?(E=s.jsx(Ke,{open:x,onOpenChange:S,children:K}),e[29]=x,e[30]=K,e[31]=E):E=e[31];let v;e[32]!==f||e[33]!==F||e[34]!==h||e[35]!==k?(v=k||h?s.jsx(ne,{className:"h-9 w-24"}):s.jsx("span",{className:ue("text-3xl font-semibold tabular-nums tracking-tight",f!=null&&vt(f)),children:F}),e[32]=f,e[33]=F,e[34]=h,e[35]=k,e[36]=v):v=e[36];let P;e[37]!==I?(P=()=>I(),e[37]=I,e[38]=P):P=e[38];const $=h&&"animate-spin";let w;e[39]!==$?(w=ue($),e[39]=$,e[40]=w):w=e[40];let C;e[41]!==w?(C=s.jsx(ye,{size:14,className:w}),e[41]=w,e[42]=C):C=e[42];let B;e[43]!==h||e[44]!==P||e[45]!==C?(B=s.jsx("button",{type:"button",onClick:P,disabled:h,className:"text-muted-foreground hover:text-foreground disabled:opacity-50 transition-colors p-1 rounded-md hover:bg-muted/50","aria-label":"Refresh balance",children:C}),e[43]=h,e[44]=P,e[45]=C,e[46]=B):B=e[46];let z;e[47]!==v||e[48]!==B?(z=s.jsxs("div",{className:"flex items-baseline gap-2",children:[v,B]}),e[47]=v,e[48]=B,e[49]=z):z=e[49];let q;e[50]===Symbol.for("react.memo_cache_sentinel")?(q=s.jsx("p",{className:"text-xs text-muted-foreground",children:"Available credit balance"}),e[50]=q):q=e[50];let Y;e[51]!==z?(Y=s.jsxs("div",{className:"flex flex-col gap-2 pt-2",children:[z,q]}),e[51]=z,e[52]=Y):Y=e[52];let Z;e[53]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsxs("div",{className:"pt-4 border-t border-border/60",children:[s.jsx("p",{className:"text-xs font-medium text-muted-foreground mb-2.5",children:"Add credits"}),s.jsx(gt,{})]}),e[53]=Z):Z=e[53];let ee;return e[54]!==R||e[55]!==E||e[56]!==Y?(ee=s.jsx(de,{title:"Deco AI Gateway",children:s.jsx(ce,{children:s.jsxs("div",{className:"px-5 py-5 flex flex-col gap-5",children:[R,E,Y,Z]})})}),e[54]=R,e[55]=E,e[56]=Y,e[57]=ee):ee=e[57],ee}function _t(e){G.error(`Failed to disconnect: ${e.message}`)}function St(e){return e.providerId==="deco"}function kt(){const e=U.c(8),{org:t}=re(),i=H(),a=oe();let r;e[0]!==i?(r=async()=>{await i.call("AI_PROVIDER_PROVISION_KEY",{providerId:"deco"})},e[0]=i,e[1]=r):r=e[1];let l;e[2]!==t||e[3]!==a?(l=()=>{je("ai_provider_provision_succeeded",{provider_id:"deco"}),a.invalidateQueries({queryKey:Q.aiProviderKeys(t.id)}),a.invalidateQueries({queryKey:Q.aiProviders(t.id)}),G.success("Deco AI Gateway connected successfully")},e[2]=t,e[3]=a,e[4]=l):l=e[4];let o;return e[5]!==r||e[6]!==l?(o={mutationFn:r,onSuccess:l,onError:It},e[5]=r,e[6]=l,e[7]=o):o=e[7],J(o)}function It(e){je("ai_provider_provision_failed",{provider_id:"deco",error:e.message}),G.error(`Failed to connect Deco AI Gateway: ${e.message}`)}function Ct(){const e=U.c(10),{mutate:t,isPending:i}=kt();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=["radial-gradient(ellipse 50% 150% at -15% 50%, rgba(165,149,255,0.14) 0%, transparent 60%)","radial-gradient(ellipse 50% 150% at 115% 50%, rgba(208,236,26,0.11) 0%, transparent 60%)"],e[0]=a):a=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:a.join(", ")}}),e[1]=r):r=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("img",{src:"/logos/deco%20logo.svg",alt:"Deco AI Gateway",className:"size-12 shrink-0 rounded-xl object-contain dark:bg-white dark:p-1"}),e[2]=l):l=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("p",{className:"text-base font-semibold",children:"Deco AI Gateway"}),s.jsx("span",{className:"rounded-full border border-border/60 bg-background/60 px-2 py-0.5 text-[10px] font-medium text-muted-foreground",children:"Recommended"})]}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"100+ models, one connection — pay as you go, no API keys to juggle."})]}),e[3]=o):o=e[3];let x;e[4]!==t?(x=()=>t(),e[4]=t,e[5]=x):x=e[5];const S=i?"Connecting…":"Connect Deco";let b;return e[6]!==i||e[7]!==x||e[8]!==S?(b=s.jsxs("div",{className:"relative rounded-xl border border-border overflow-hidden",children:[r,s.jsxs("div",{className:"relative flex items-center gap-5 px-6 py-5",children:[l,o,s.jsx(L,{variant:"outline",disabled:i,onClick:x,children:S})]})]}),e[6]=i,e[7]=x,e[8]=S,e[9]=b):b=e[9],b}const Nt=V({label:N().min(1,"Label is required").max(100),apiKey:N().optional(),baseUrl:N().optional()});function wt({providerKey:e,provider:t,preset:i,maskedKey:a,currentLabel:r,currentBaseUrl:l,onCancel:o,onSuccess:x}){const{org:S}=re(),b=H(),d=oe(),[n,m]=M.useState(!1),c=t.id==="openai-compatible",u=t.supportedMethods.includes("api-key"),{register:g,handleSubmit:j,watch:_,formState:{errors:p}}=be({resolver:ge(Nt),defaultValues:{label:r,apiKey:"",baseUrl:l??""}}),k=_("apiKey")??"",{mutate:I,isPending:h}=J({mutationFn:async f=>{let y;f.apiKey?c?y=JSON.stringify({baseUrl:f.baseUrl||l||"",apiKey:f.apiKey}):y=f.apiKey:c&&f.baseUrl&&f.baseUrl!==l&&(y=JSON.stringify({baseUrl:f.baseUrl,apiKey:""})),await b.call("AI_PROVIDER_KEY_UPDATE",{keyId:e.id,label:f.label,...y!==void 0?{apiKey:y}:{}})},onSuccess:()=>{d.invalidateQueries({queryKey:Q.aiProviderKeys(S.id)}),d.invalidateQueries({queryKey:Q.aiProviders(S.id)}),G.success("Provider updated"),x()},onError:f=>G.error(`Failed to update: ${f.message}`)});return s.jsxs("form",{onSubmit:j(f=>I(f)),className:"space-y-3",children:[s.jsxs("div",{className:"space-y-1",children:[s.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Label"}),s.jsx(ie,{placeholder:"e.g. Personal key",...g("label"),className:"h-8 text-sm"}),p.label&&s.jsx("p",{className:"text-xs text-destructive",children:p.label.message})]}),c&&!i?.defaultBaseUrl&&s.jsxs("div",{className:"space-y-1",children:[s.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Base URL"}),s.jsx(ie,{type:"url",placeholder:i?.baseUrlPlaceholder??"http://localhost:4000/v1",...g("baseUrl"),className:"h-8 text-sm"})]}),u&&s.jsxs("div",{className:"space-y-1",children:[s.jsxs("label",{className:"text-xs font-medium text-muted-foreground",children:["API key"," ",s.jsx("span",{className:"text-muted-foreground/60",children:"(leave blank to keep current)"})]}),s.jsxs("div",{className:"relative",children:[s.jsx(ie,{type:n&&k?"text":"password",placeholder:a,...g("apiKey"),className:"ph-no-capture h-8 text-sm pr-8"}),k&&s.jsx("button",{type:"button",onClick:()=>m(!n),className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:n?s.jsx(Xe,{size:14}):s.jsx(Ze,{size:14})})]})]}),i?.helpText&&s.jsx("p",{className:"text-xs text-muted-foreground",children:i.helpText}),s.jsxs(et,{children:[s.jsx(L,{type:"button",variant:"ghost",size:"sm",onClick:o,disabled:h,children:"Cancel"}),s.jsx(L,{type:"submit",size:"sm",disabled:h,children:h?"Saving...":"Save"})]})]})}function Pt(e){const t=U.c(28),{providerKey:i,provider:a,open:r,onOpenChange:l}=e,o=H();let x;t[0]!==a.id||t[1]!==i.presetId?(x=a.id==="openai-compatible"&&i.presetId?ke(i.presetId):void 0,t[0]=a.id,t[1]=i.presetId,t[2]=x):x=t[2];const S=x,b=S?.name??a.name;let d;t[3]!==i.id?(d=Q.aiProviderKeyPreview(i.id),t[3]=i.id,t[4]=d):d=t[4];let n;t[5]!==i.id||t[6]!==o?(n=()=>o.call("AI_PROVIDER_KEY_PREVIEW",{keyId:i.id}),t[5]=i.id,t[6]=o,t[7]=n):n=t[7];let m;t[8]!==r||t[9]!==d||t[10]!==n?(m={queryKey:d,queryFn:n,enabled:r,staleTime:0},t[8]=r,t[9]=d,t[10]=n,t[11]=m):m=t[11];const{data:c,isLoading:u}=ve(m);let g;t[12]!==b?(g=s.jsx(tt,{children:s.jsxs(st,{children:["Edit ",b]})}),t[12]=b,t[13]=g):g=t[13];let j;t[14]!==u||t[15]!==l||t[16]!==S||t[17]!==c||t[18]!==a||t[19]!==i?(j=u||!c?s.jsx("div",{className:"flex justify-center py-8",children:s.jsx(ze,{})}):s.jsx(wt,{providerKey:i,provider:a,preset:S,maskedKey:c.maskedKey,currentLabel:c.label,currentBaseUrl:c.baseUrl,onCancel:()=>l(!1),onSuccess:()=>l(!1)}),t[14]=u,t[15]=l,t[16]=S,t[17]=c,t[18]=a,t[19]=i,t[20]=j):j=t[20];let _;t[21]!==g||t[22]!==j?(_=s.jsxs(it,{className:"sm:max-w-md",children:[g,j]}),t[21]=g,t[22]=j,t[23]=_):_=t[23];let p;return t[24]!==l||t[25]!==r||t[26]!==_?(p=s.jsx(rt,{open:r,onOpenChange:l,children:_}),t[24]=l,t[25]=r,t[26]=_,t[27]=p):p=t[27],p}function Dt(e){const t=U.c(48),{providerKey:i,provider:a}=e,{org:r}=re(),l=H(),o=oe(),[x,S]=M.useState(!1),[b,d]=M.useState(!1),n=a.id==="openai-compatible";let m;t[0]!==n||t[1]!==i.presetId?(m=n&&i.presetId?ke(i.presetId):void 0,t[0]=n,t[1]=i.presetId,t[2]=m):m=t[2];const c=m,u=c?c.name:n?"Custom OpenAI-compatible":a.name,g=c?.logo??a.logo;let j;e:{if(n){j=i.label;break e}const B=i.label;let z;t[3]!==i.createdAt?(z=ot(new Date(i.createdAt)),t[3]=i.createdAt,t[4]=z):z=t[4],j=`${B} · added ${z} ago`}const _=j;let p;t[5]!==i.id||t[6]!==l?(p=async()=>{await l.call("AI_PROVIDER_KEY_DELETE",{keyId:i.id})},t[5]=i.id,t[6]=l,t[7]=p):p=t[7];let k;t[8]!==r||t[9]!==i.id||t[10]!==o?(k=()=>{o.invalidateQueries({queryKey:Q.aiProviderKeys(r.id)}),o.invalidateQueries({queryKey:Q.aiProviders(r.id)}),o.invalidateQueries({queryKey:Q.aiProviderModels(r.id,i.id)}),G.success("Key deleted"),S(!1)},t[8]=r,t[9]=i.id,t[10]=o,t[11]=k):k=t[11];let I;t[12]!==p||t[13]!==k?(I={mutationFn:p,onSuccess:k,onError:At},t[12]=p,t[13]=k,t[14]=I):I=t[14];const{mutate:h,isPending:f}=J(I);let y;t[15]!==u||t[16]!==g?(y=g?s.jsx("img",{src:g,alt:u,className:"size-8 rounded-md object-contain dark:bg-white dark:p-0.5"}):s.jsx(Je,{fallback:u.charAt(0),className:"size-8 bg-primary/10 text-primary"}),t[15]=u,t[16]=g,t[17]=y):y=t[17];let F;t[18]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(L,{variant:"ghost",size:"icon",className:"h-7 w-7 text-muted-foreground hover:text-foreground",onClick:()=>d(!0),children:s.jsx(We,{size:14})}),t[18]=F):F=t[18];let O,T;t[19]===Symbol.for("react.memo_cache_sentinel")?(O=()=>S(!0),T=s.jsx(He,{size:14}),t[19]=O,t[20]=T):(O=t[19],T=t[20]);let R;t[21]!==f?(R=s.jsxs("div",{className:"flex items-center gap-0.5",children:[F,s.jsx(L,{variant:"ghost",size:"icon",className:"h-7 w-7 text-muted-foreground hover:text-destructive",disabled:f,onClick:O,children:T})]}),t[21]=f,t[22]=R):R=t[22];let D;t[23]!==_||t[24]!==u||t[25]!==R||t[26]!==y?(D=s.jsx(_e,{icon:y,title:u,description:_,action:R}),t[23]=_,t[24]=u,t[25]=R,t[26]=y,t[27]=D):D=t[27];let A;t[28]!==b||t[29]!==a||t[30]!==i?(A=s.jsx(Pt,{providerKey:i,provider:a,open:b,onOpenChange:d}),t[28]=b,t[29]=a,t[30]=i,t[31]=A):A=t[31];let K;t[32]===Symbol.for("react.memo_cache_sentinel")?(K=s.jsx(Ce,{children:"Delete API key"}),t[32]=K):K=t[32];let E;t[33]!==i.label?(E=s.jsxs(Ie,{children:[K,s.jsxs(Ne,{children:["This action cannot be undone. This will permanently delete"," ",s.jsx("span",{className:"font-medium text-foreground",children:i.label}),"."]})]}),t[33]=i.label,t[34]=E):E=t[34];let v;t[35]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(we,{children:"Cancel"}),t[35]=v):v=t[35];let P;t[36]!==h?(P=s.jsxs(De,{children:[v,s.jsx(Ae,{onClick:()=>h(),className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),t[36]=h,t[37]=P):P=t[37];let $;t[38]!==E||t[39]!==P?($=s.jsxs(Pe,{children:[E,P]}),t[38]=E,t[39]=P,t[40]=$):$=t[40];let w;t[41]!==x||t[42]!==$?(w=s.jsx(Ke,{open:x,onOpenChange:S,children:$}),t[41]=x,t[42]=$,t[43]=w):w=t[43];let C;return t[44]!==D||t[45]!==A||t[46]!==w?(C=s.jsxs(s.Fragment,{children:[D,A,w]}),t[44]=D,t[45]=A,t[46]=w,t[47]=C):C=t[47],C}function At(e){return G.error(`Failed to delete key: ${e.message}`)}function Kt(e){const t=U.c(11),{onConnectClick:i}=e,a=X(),r=Se();let l;t[0]!==r?.providers?(l=r?.providers??[],t[0]=r?.providers,t[1]=l):l=t[1];const o=l;let x;if(t[2]!==a||t[3]!==i||t[4]!==o){let S;t[6]!==o?(S=m=>({key:m,provider:o.find(c=>c.id===m.providerId)}),t[6]=o,t[7]=S):S=t[7];const b=a.filter(Ft).map(S).filter($t);let d;t[8]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Ye,{size:14}),t[8]=d):d=t[8];let n;t[9]!==i?(n=s.jsxs(L,{size:"sm",onClick:i,children:[d,"Connect provider"]}),t[9]=i,t[10]=n):n=t[10],x=s.jsx(de,{title:"Connected providers",headerClassName:"px-0",actions:n,children:b.length===0?s.jsx("p",{className:"text-sm text-muted-foreground px-1",children:"Bring your own keys to use specific models alongside Deco's gateway."}):s.jsx(ce,{children:b.map(Et)})}),t[2]=a,t[3]=i,t[4]=o,t[5]=x}else x=t[5];return x}function Et(e){const{key:t,provider:i}=e;return s.jsx(Dt,{providerKey:t,provider:i},t.id)}function $t(e){return e.provider!==void 0}function Ft(e){return e.providerId!=="deco"}function Rt(e){const t=U.c(3),{error:i}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Fe,{size:16}),t[0]=a):a=t[0];let r;return t[1]!==i.message?(r=s.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[a,s.jsxs("span",{className:"text-sm font-medium",children:["Failed to load AI providers: ",i.message]})]}),t[1]=i.message,t[2]=r):r=t[2],r}function Mt(){const e=U.c(23),t=X();let i;e[0]!==t?(i=t.some(Ot),e[0]=t,e[1]=i):i=e[1];const a=i,r=t.length>0,[l,o]=M.useState(!1),[x,S]=M.useState(null),b=Se();let d;e[2]!==b?.providers?(d=b?.providers??[],e[2]=b?.providers,e[3]=d):d=e[3];const n=d;if(!r){let _;e[4]===Symbol.for("react.memo_cache_sentinel")?(_=()=>o(!0),e[4]=_):_=e[4];let p;e[5]!==n?(p=s.jsx(Qe,{providers:n,onSelect:S,onShowAll:_}),e[5]=n,e[6]=p):p=e[6];const k=x!==null||l;let I;e[7]===Symbol.for("react.memo_cache_sentinel")?(I=F=>{F||(S(null),o(!1))},e[7]=I):I=e[7];const h=x??void 0;let f;e[8]!==k||e[9]!==h?(f=s.jsx(pe,{open:k,onOpenChange:I,initialProvider:h}),e[8]=k,e[9]=h,e[10]=f):f=e[10];let y;return e[11]!==p||e[12]!==f?(y=s.jsxs(s.Fragment,{children:[p,f]}),e[11]=p,e[12]=f,e[13]=y):y=e[13],y}let m;e[14]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(M.Suspense,{fallback:s.jsx(ne,{className:"h-16 w-full"}),children:s.jsx(ft,{})}),e[14]=m):m=e[14];let c;e[15]!==a?(c=a?s.jsx(jt,{}):s.jsx(Ct,{}),e[15]=a,e[16]=c):c=e[16];let u;e[17]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(Kt,{onConnectClick:()=>o(!0)}),e[17]=u):u=e[17];let g;e[18]!==l?(g=s.jsx(pe,{open:l,onOpenChange:o}),e[18]=l,e[19]=g):g=e[19];let j;return e[20]!==c||e[21]!==g?(j=s.jsxs(s.Fragment,{children:[m,c,u,g]}),e[20]=c,e[21]=g,e[22]=j):j=e[22],j}function Ot(e){return e.providerId==="deco"}function Tt(){const e=U.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(te.Title,{children:"AI Providers"}),e[0]=t):t=e[0];let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(te,{children:s.jsx(te.Content,{children:s.jsx(te.Body,{children:s.jsxs(Re,{children:[t,s.jsx($e,{fallback:Ut,children:s.jsx(M.Suspense,{fallback:s.jsx(ne,{className:"h-64 w-full"}),children:s.jsx(Mt,{})})})]})})})}),e[1]=i):i=e[1],i}function Ut(e){const{error:t}=e;return s.jsx(Rt,{error:t??new Error("Failed to load AI providers")})}function Js(){const e=U.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(lt,{capability:"ai-providers:manage",area:"AI providers",children:s.jsx(Tt,{})}),e[0]=t):t=e[0],t}export{Js as default};
@@ -1 +0,0 @@
1
- import{c as gt,r as w,j as o,l as yt,t as ut,i as St}from"./index-DF3zg-P1.js";import{i as jt}from"./ChevronRight-Fgy0rUS_.js";import{A as kt}from"./automation-runs-yMzfgCqo.js";import{A as _t}from"./add-section-modal-CcLBxmBX.js";import{n as Bt,h as wt,j as At,e as Nt,k as Rt,l as Ct,m as Et,o as Kt,S as Tt}from"./index-DonY639O.js";import"./select-B6GE4jHJ.js";import"./tooltip-O3iHy7-o.js";import"./Check-BF3t7WWi.js";import"./ChevronDown-CQLSXgt3.js";import"./ChevronUp-Y-IpPAUR.js";import"./useInfiniteQuery-DKhJHTs2.js";import"./use-infinite-scroll-Dt7gLdpr.js";import"./use-connection-twfWXxwG.js";import"./use-collections-K1HyCAfG.js";import"./use-mcp-client-DrROXOcH.js";import"./constants-BHDe7bIw.js";import"./auth-dSVlMQ86.js";import"./use-virtual-mcp-C964oRwj.js";import"./card-dLLzWD0r.js";import"./sidebar-BFdShy9x.js";import"./LayoutLeft-C0g0LezP.js";import"./use-mobile-nauPjzo2.js";import"./X-Dm6kY_ek.js";import"./table-XKbQ5Wjx.js";import"./empty-state-CdKwtMyP.js";import"./use-members-mvfsRjey.js";import"./use-org-auth-client-jU0nDPT-.js";import"./use-clock-tick-DboEo7Cc.js";import"./AlertCircle-B6AELEdc.js";import"./CheckCircle-BfxYbuVE.js";import"./Circle-0HId1SV6.js";import"./agent-icon-DmIJ53uv.js";import"./UserPlus01-D2pAl0t2.js";import"./Tool01-4pit7qOS.js";import"./ArrowUp-YK2fJPgi.js";import"./Settings02-CM0Uzs0U.js";import"./Tool02-tJKj7JcW.js";import"./XCircle-cwYbcP7y.js";import"./ArrowUpRight-BKVLcZTe.js";import"./TrendUp01-7N_6K3-X.js";import"./ZapSquare-Dj8pa8Fg.js";import"./ZoomOut-_psBJlXD.js";import"./Users03-WVYBBENu.js";import"./Stars02-DBH33Ez2.js";import"./Copy01-B0CQRE_5.js";import"./DotsVertical-CYU3Mae1.js";import"./Globe01-B52VKYy7.js";import"./Eye-CLtdCpUf.js";import"./FilterLines-DeiGsRZY.js";import"./Flag01-B_AKNFoc.js";import"./Star01-B-8espqJ.js";import"./Globe04-B0las6Jv.js";import"./SwitchHorizontal01-DUrn8gXV.js";import"./HardDrive-CU-vvmKE.js";import"./Image01-B-FQwXx8.js";import"./Key01-myvTSA8u.js";import"./LinkExternal01-d9EixhiS.js";import"./List-DZAsltZv.js";import"./Monitor01-BkDBzdlH.js";import"./Sun-MvOAGgKN.js";import"./Package-eNacrLmv.js";import"./Palette-BiKqXWvc.js";import"./Play-CdkPhmTs.js";import"./Plus-DWjKZ2wj.js";import"./SearchLg-DBOWvxyl.js";import"./SearchMd-CKteZWzZ.js";import"./Shield01-aDvWVv5Z.js";import"./Stars01-DsfblQf3.js";import"./Trash01-DEWgFvvg.js";import"./Upload01-C8RP0Fvq.js";import"./User01-v0Bqr3nA.js";import"./Users01-CPNZ7uMu.js";import"./XClose-DnNyN9T-.js";import"./Zap-CNRURtEh.js";import"./use-automations-C01orYPa.js";import"./studio-tools-bThaob6p.js";import"./useSuspenseInfiniteQuery-DAAXTkZt.js";import"./avatar-UXZ4R5Yb.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DQ4y4418.js";import"./file-type-icon-DjNFZnTs.js";import"./dialog-CmXDzme5.js";import"./tab-id-BijBBRwE.js";import"./hooks-QHrmNjJQ.js";import"./decopilot-sse-pool-DHojW3EC.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./chat-context-CyCuyn4t.js";import"./autosend-D_-616qs.js";import"./use-ai-providers-B4nhSJlr.js";import"./location-BpLtHjTZ.js";import"./use-decopilot-events-BEOY-_n2.js";import"./use-organization-settings-BJ1bjHsL.js";import"./monaco-editor-BzdwB2U8.js";import"./index-cG8paP3z.js";import"./index-BjO8A-VO.js";import"./shell-layout-Bo6QxW8m.js";import"./required-auth-layout-vPZ2d-Yx.js";import"./use-org-sso-j8hZyqdO.js";import"./integration-icon-BfKWLZT4.js";import"./use-navigate-to-agent-BJC_x779.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-fCNs67j_.js";import"./form-x0k-kdB2.js";import"./label-B1OfKy2N.js";import"./input-BZTiU0ds.js";import"./drawer-Ds-r7525.js";import"./collection-search-C4jDpdZf.js";import"./tabs-D-6eQ0wE.js";import"./toggle-group-BcxqPGrf.js";import"./use-deco-credits-Bm-VH5Hm.js";import"./extract-connection-data-CK9iLAoG.js";import"./connection-card-CtY9PRIw.js";import"./use-registry-connections-D94L7VqK.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-PYu4eHQV.js";import"./connection-form-helpers-TGmycj7X.js";import"./authenticate-and-persist-oauth-BHT9Kp62.js";import"./mcp-oauth-CoKzxQiz.js";import"./collection-tabs-DvvibY6H.js";import"./badge-CfAmvo-h.js";import"./connect-desktop-dialog-CPSwwSyz.js";import"./select-model-CebmAt-C.js";import"./checkbox-CxV2vfbv.js";import"./skeleton-BGZh750P.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DS6otYn7.js";import"./command-EQNrbniG.js";import"./index-CUVgjm02.js";import"./popover-BzHpXFL_.js";import"./dropdown-menu-BgNr7tM1.js";import"./index-BCiDnhhX.js";import"./alert-dialog-3VMQ65hF.js";import"./toolbar-D90MFc80.js";import"./use-debounced-value-xN0eyoO9.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-B1YKt2sD.js";import"./use-mcp-tools-D28ox9dJ.js";import"./use-capability--WeMT0KP.js";import"./toolbar-icon-button-D3m9VnTI.js";import"./use-debounced-autosave-BdWGMbok.js";import"./index-CeqD0RVV.js";import"./search-input-ByuB0YyC.js";import"./use-mcp-auth-status-C7G9bAkb.js";import"./switch-C2KH_TaK.js";import"./use-registry-app-CeyrXTI4.js";import"./github-repo-picker-C-tZ-Bba.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./github-repo-scope-DjMZbiKa.js";import"./use-secrets-C1Fme0Ya.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-fc2Z_sCB.js";import"./index-DKadkG06.js";import"./get-initials-D-f_fDFw.js";import"./calendar-BdMqQsTv.js";import"./use-file-configs-Bs9N4w-Z.js";import"./automation-list-row-PkSpkeID.js";function $t(l,t){const s=(l.title||l.resolveType.split("/").pop()||"").replace(/\.(tsx?|jsx?)$/,"").replace(/[^A-Za-z0-9_-]/g,""),f=/^[A-Za-z]/.test(s)&&s.length>0?s:"Section",n=Bt(t,f);return{blockKey:n,data:{__resolveType:l.resolveType,name:n}}}function Fr(l){const t=gt.c(77),{orgSlug:s,virtualMcpId:f,branch:n,blockKey:i,block:a,meta:m,decofile:c,title:D,excludeFields:H,schemaPending:nt,previewBaseUrl:at}=l,G=nt===void 0?!1:nt,u=at===void 0?null:at,x=typeof a?.__resolveType=="string"?a.__resolveType:"";let R;t[0]!==H||t[1]!==m||t[2]!==x?(R=wt(x,m,H),t[0]=H,t[1]=m,t[2]=x,t[3]=R):R=t[3];const h=R;let C;t[4]!==h?(C=!!h&&Object.keys(h.properties??{}).length>0,t[4]=h,t[5]=C):C=t[5];const J=C;let E;t[6]!==a||t[7]!==i||t[8]!==m||t[9]!==D?(E=D??(a?At(i,a,m):i),t[6]=a,t[7]=i,t[8]=m,t[9]=D,t[10]=E):E=t[10];const v=E;let K;t[11]!==n||t[12]!==s||t[13]!==f?(K={orgSlug:s,virtualMcpId:f,branch:n},t[11]=n,t[12]=s,t[13]=f,t[14]=K):K=t[14];const{save:b,flush:Q,isPending:W}=Nt(K);let T;t[15]!==n||t[16]!==s||t[17]!==f?(T={orgSlug:s,virtualMcpId:f,branch:n},t[15]=n,t[16]=s,t[17]=f,t[18]=T):T=t[18];const X=Rt(T);let $;t[19]!==b?($=Et((e,r)=>b(e,r)),t[19]=b,t[20]=$):$=t[20];const Y=$,[ht,xt]=w.useState(i),[tt,ct]=w.useState(null),[et,dt]=w.useState(0);let F;t[21]===Symbol.for("react.memo_cache_sentinel")?(F=[],t[21]=F):F=t[21];const[p,ft]=w.useState(F),[ot,rt]=w.useState(!1),P=w.useRef(null);ht!==i&&(xt(i),ct(null),dt(Pt),ft([]));let O;t[22]!==a?(O=a??{},t[22]=a,t[23]=O):O=t[23];const it=O;let g;t[24]!==tt?(g=tt??{},t[24]=tt,t[25]=g):g=t[25];let z;t[26]!==it||t[27]!==g?(z={...it,...g},t[26]=it,t[27]=g,t[28]=z):z=t[28];const mt=z;let L;t[29]!==i||t[30]!==x||t[31]!==b?(L=e=>{const r=e;ct(r),b(i,{...r,__resolveType:x})},t[29]=i,t[30]=x,t[31]=b,t[32]=L):L=t[32];const st=L;let V;t[33]===Symbol.for("react.memo_cache_sentinel")?(V=e=>{ft(e)},t[33]=V):V=t[33];const pt=V;let q;t[34]!==c||t[35]!==Q||t[36]!==X?(q=async(e,r)=>{try{const{blockKey:d,data:N}=$t(e,c);await X.mutateAsync({blockKey:d,data:N}),ut.success(`Created section "${d}"`),r({__resolveType:d}),Q()}catch(d){const N=d,bt=N instanceof Error?N.message:"Could not add section";throw ut.error(bt),N}},t[34]=c,t[35]=Q,t[36]=X,t[37]=q):q=t[37];const y=q;let I;t[38]===Symbol.for("react.memo_cache_sentinel")?(I=e=>{P.current=e.append,rt(!0)},t[38]=I):I=t[38];const vt=I;let U;t[39]!==y?(U=async e=>{const r=P.current;if(r)try{await y(e,d=>{r(d),rt(!1),P.current=null})}catch{}},t[39]=y,t[40]=U):U=t[40];const lt=U;let M;t[41]!==p||t[42]!==v?(M=p.length>0?[v,...p]:[],t[41]=p,t[42]=v,t[43]=M):M=t[43];const A=M;let S;t[44]!==p||t[45]!==A||t[46]!==v?(S=A.length>0?o.jsx("nav",{"aria-label":"Editing breadcrumb",className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:A.map((e,r)=>{const d=r===A.length-1;return o.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[r>0&&o.jsx(jt,{className:"size-3 shrink-0 text-muted-foreground/60"}),o.jsx("button",{type:"button",onClick:()=>{pt(r===0?[]:Ct(p,r)),dt(Ft)},title:e,className:yt("min-w-0 truncate rounded-md px-1 py-0.5 text-left transition-colors",d?"font-medium text-foreground":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:e})]},`${e}-${r}`)})}):o.jsx("span",{className:"text-sm font-medium",children:v}),t[44]=p,t[45]=A,t[46]=v,t[47]=S):S=t[47];let j;t[48]!==W?(j=o.jsx(Kt,{isPending:W,isError:!1}),t[48]=W,t[49]=j):j=t[49];let k;t[50]!==S||t[51]!==j?(k=o.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[S,j]}),t[50]=S,t[51]=j,t[52]=k):k=t[52];let _;t[53]!==i||t[54]!==p||t[55]!==c||t[56]!==mt||t[57]!==et||t[58]!==y||t[59]!==st||t[60]!==J||t[61]!==m||t[62]!==u||t[63]!==Y||t[64]!==h||t[65]!==G?(_=o.jsx(kt,{className:"min-h-0 min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"px-6 py-6",children:o.jsx("div",{className:"mx-auto max-w-xl",children:J?o.jsx(Tt,{schema:h,value:mt,onChange:st,basePath:"",breadcrumbPath:p,onBreadcrumbChange:pt,decofile:c,meta:m,onSaveReferencedBlock:Y,previewBaseUrl:u,onAddSectionItem:y,onRequestAddSection:vt},`${i}:${et}`):G?o.jsxs("div",{className:"flex flex-col items-center gap-2 py-6 text-center text-xs text-muted-foreground",children:[o.jsx(St,{size:16,className:"animate-spin"}),"Loading app schema…"]}):o.jsx("div",{className:"py-6 text-center text-xs text-muted-foreground",children:"No editable schema found for this app."})})})}),t[53]=i,t[54]=p,t[55]=c,t[56]=mt,t[57]=et,t[58]=y,t[59]=st,t[60]=J,t[61]=m,t[62]=u,t[63]=Y,t[64]=h,t[65]=G,t[66]=_):_=t[66];let B;t[67]!==ot||t[68]!==c||t[69]!==lt||t[70]!==m||t[71]!==u?(B=u&&o.jsx(_t,{open:ot,onOpenChange:e=>{rt(e),e||(P.current=null)},meta:m,decofile:c,previewBaseUrl:u,onSelect:e=>{lt(e)}}),t[67]=ot,t[68]=c,t[69]=lt,t[70]=m,t[71]=u,t[72]=B):B=t[72];let Z;return t[73]!==k||t[74]!==_||t[75]!==B?(Z=o.jsxs("div",{className:"flex h-full flex-col",children:[k,_,B]}),t[73]=k,t[74]=_,t[75]=B,t[76]=Z):Z=t[76],Z}function Ft(l){return l+1}function Pt(l){return l+1}export{Fr as AppEditor};