decocms 2.310.5 → 2.310.6

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 (247) hide show
  1. package/dist/client/assets/{AlertCircle-Cxcba8DN.js → AlertCircle-CFABZy3o.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-CtUMVsB_.js → ArrowNarrowLeft-qjcSXUou.js} +1 -1
  3. package/dist/client/assets/{ArrowUpRight-ZaII7u8u.js → ArrowUpRight-havdJdQt.js} +1 -1
  4. package/dist/client/assets/{Check-BStFjKto.js → Check-4wEPFmVT.js} +1 -1
  5. package/dist/client/assets/{CheckCircle-CkSmS6Cg.js → CheckCircle-D7ReuLNV.js} +1 -1
  6. package/dist/client/assets/{ChevronDown-CJ0icK2r.js → ChevronDown-CLwgC4lc.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-Dw3Db6I0.js → ChevronRight-DW27S4dx.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-BDsNPBis.js → ChevronUp-DAW3-3dA.js} +1 -1
  9. package/dist/client/assets/{Container-WBb7qbdD.js → Container-C9S2fJrQ.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-BPk38qYQ.js → DotsVertical-BReL32xd.js} +1 -1
  11. package/dist/client/assets/{LinkExternal01-6x3Iy4Gd.js → LinkExternal01-0Xs4UV_i.js} +1 -1
  12. package/dist/client/assets/{Lock01-DA0MuRwj.js → Lock01-BjKqD6QN.js} +1 -1
  13. package/dist/client/assets/{Palette-DfzN4-9K.js → Palette-Dtg_tDlg.js} +1 -1
  14. package/dist/client/assets/{Play-QsP1MGXe.js → Play-85A9faRd.js} +1 -1
  15. package/dist/client/assets/{Plus-QZEpDFDV.js → Plus-BxG8Erza.js} +1 -1
  16. package/dist/client/assets/{RefreshCcw01-DKtPikGx.js → RefreshCcw01-DdgK7Krp.js} +1 -1
  17. package/dist/client/assets/{SearchMd-BHubyM0S.js → SearchMd-JVaJZdXg.js} +1 -1
  18. package/dist/client/assets/{Settings02-DpkRLLNd.js → Settings02-BZivkDIL.js} +1 -1
  19. package/dist/client/assets/{Shield01-BvsHGINb.js → Shield01-CAl07SGJ.js} +1 -1
  20. package/dist/client/assets/{Star01-DduN7cUl.js → Star01-DEmigL_c.js} +1 -1
  21. package/dist/client/assets/{Sun-k7d5io6k.js → Sun-TDfj1GPd.js} +1 -1
  22. package/dist/client/assets/{Tool01-BPmEF3oC.js → Tool01-Bhj2T1uN.js} +1 -1
  23. package/dist/client/assets/{Trash01-DhkmMJFO.js → Trash01-CdymalYb.js} +1 -1
  24. package/dist/client/assets/{User01-76gT3tOW.js → User01-BZ9BWkFc.js} +1 -1
  25. package/dist/client/assets/{Users03-DDHNU2o0.js → Users03-DG3Gfjoh.js} +1 -1
  26. package/dist/client/assets/{X-C_O1kj8t.js → X-DzLPqoAC.js} +1 -1
  27. package/dist/client/assets/{XCircle-D9VV2CKm.js → XCircle-DTJod2tn.js} +1 -1
  28. package/dist/client/assets/{XClose-C21czImH.js → XClose-0biyZ-nq.js} +1 -1
  29. package/dist/client/assets/{Zap-TR29R2LK.js → Zap-aKe8CYDP.js} +1 -1
  30. package/dist/client/assets/{ZapSquare-OxHp4t0m.js → ZapSquare-DtdkchqU.js} +1 -1
  31. package/dist/client/assets/{accordion-CTsJVvtX.js → accordion-CHtp00zM.js} +1 -1
  32. package/dist/client/assets/{agent-icon-s17W0wUB.js → agent-icon-D-W_-Msq.js} +1 -1
  33. package/dist/client/assets/{agents-list-VvrcV5iJ.js → agents-list-DuIrLHcS.js} +1 -1
  34. package/dist/client/assets/ai-providers-BTcrVDAh.js +1 -0
  35. package/dist/client/assets/{alert-dialog-CmK4A6kC.js → alert-dialog-DZ7MoPrC.js} +1 -1
  36. package/dist/client/assets/{auth-catchall-8ZQwpXp5.js → auth-catchall-0StMYUgy.js} +1 -1
  37. package/dist/client/assets/{automation-list-row-BCSS4QUj.js → automation-list-row-CS-JiMPM.js} +1 -1
  38. package/dist/client/assets/{automations-DeCusdy6.js → automations-BAEn2v9X.js} +1 -1
  39. package/dist/client/assets/{avatar-CSILDiJX.js → avatar-CtlfIArZ.js} +1 -1
  40. package/dist/client/assets/{badge-COxphYel.js → badge-YKYMjnfu.js} +1 -1
  41. package/dist/client/assets/{brand-context-CWfr5DVG.js → brand-context-DfGmGZnx.js} +1 -1
  42. package/dist/client/assets/{card-CBJhlNRB.js → card-uZ87GViI.js} +1 -1
  43. package/dist/client/assets/{chat-context-De5Jlj4X.js → chat-context-BFxTlymH.js} +1 -1
  44. package/dist/client/assets/{checkbox-DjVRr70r.js → checkbox-BFMSekYh.js} +1 -1
  45. package/dist/client/assets/{collection-detail-DpmRlPMa.js → collection-detail-z1-sDcK2.js} +1 -1
  46. package/dist/client/assets/{collection-display-button-BbDt8MHw.js → collection-display-button-DqIrM4V5.js} +1 -1
  47. package/dist/client/assets/{collection-search-Qnmn9Jjl.js → collection-search-CrNavgfW.js} +1 -1
  48. package/dist/client/assets/{collection-search-CfovRENW.js → collection-search-DV0cCH2j.js} +1 -1
  49. package/dist/client/assets/{collection-table-wrapper-CnIJP88L.js → collection-table-wrapper-CjedtIca.js} +1 -1
  50. package/dist/client/assets/{collection-tabs-BJ2mAaff.js → collection-tabs-D653lS2B.js} +1 -1
  51. package/dist/client/assets/{collections-BNKaenRk.js → collections-kcgqXRh1.js} +1 -1
  52. package/dist/client/assets/{command-DPlcxMzI.js → command-DEZQ8Srq.js} +1 -1
  53. package/dist/client/assets/{connection-card-CuHLr6qd.js → connection-card-DDf_nl47.js} +1 -1
  54. package/dist/client/assets/{connection-detail-b2gPCepr.js → connection-detail-DIAn09sC.js} +1 -1
  55. package/dist/client/assets/{connection-form-helpers-CAZC18NZ.js → connection-form-helpers-CaEsrTVy.js} +1 -1
  56. package/dist/client/assets/{connections-BQvZQo8B.js → connections-BTFAJALU.js} +1 -1
  57. package/dist/client/assets/{constants-B_3LNOq3.js → constants-9g9gFjnw.js} +1 -1
  58. package/dist/client/assets/{constants-BKat4sJw.js → constants-DsSHL62C.js} +1 -1
  59. package/dist/client/assets/{dialog-DxHqBK-g.js → dialog-B4KlHjek.js} +1 -1
  60. package/dist/client/assets/{domain-settings-Dj6mogBD.js → domain-settings-D1FHhwCI.js} +1 -1
  61. package/dist/client/assets/{drawer-CPYawKkb.js → drawer-5orE9Wr9.js} +1 -1
  62. package/dist/client/assets/{dropdown-menu-Do_6-JC4.js → dropdown-menu-BsFYaC7C.js} +1 -1
  63. package/dist/client/assets/{dynamic-plugin-layout-CGObbc--.js → dynamic-plugin-layout-CwAziEC5.js} +1 -1
  64. package/dist/client/assets/{empty-state-DDT6Axd2.js → empty-state-DnjUFLB3.js} +1 -1
  65. package/dist/client/assets/{empty-state-Bmp0M8wH.js → empty-state-fJhgTnn4.js} +1 -1
  66. package/dist/client/assets/{extract-connection-data-ooIvzjyZ.js → extract-connection-data-4I5O_R5k.js} +1 -1
  67. package/dist/client/assets/{features-Ck3YVx8z.js → features-CNtB2JQC.js} +1 -1
  68. package/dist/client/assets/{form-BV__Eo4v.js → form-CDvvEZtA.js} +1 -1
  69. package/dist/client/assets/{general-J5FLwmfS.js → general-Dz0H1FEC.js} +1 -1
  70. package/dist/client/assets/{index-CjZClkan.js → index-B3Ttc_5_.js} +1 -1
  71. package/dist/client/assets/{index-CKPYZoPD.js → index-BJq84O_6.js} +1 -1
  72. package/dist/client/assets/{index-D9tByeUz.js → index-BnEPkkjz.js} +1 -1
  73. package/dist/client/assets/{index-BrMQgHVf.js → index-C1C4QgjJ.js} +1 -1
  74. package/dist/client/assets/{index-CkXbIQAg.js → index-CVzq_PSm.js} +1 -1
  75. package/dist/client/assets/{index-CFiXkeYB.js → index-ChoE-W6u.js} +1 -1
  76. package/dist/client/assets/{index-DO6HBQ4K.js → index-CneSjNEN.js} +1 -1
  77. package/dist/client/assets/{index-D075V-Aw.js → index-CoY1MHFJ.js} +1 -1
  78. package/dist/client/assets/index-Di6eCNBZ.js +1 -0
  79. package/dist/client/assets/{index-BZ3dhBMg.js → index-DrOTgwhJ.js} +1 -1
  80. package/dist/client/assets/{index-Dt0vRnUx.js → index-H-xuVWHv.js} +1 -1
  81. package/dist/client/assets/{index-DJnCb9MX.js → index-TikwA-8X.js} +3 -3
  82. package/dist/client/assets/{index-BKcT0ut5.js → index-WBXw_0um.js} +1 -1
  83. package/dist/client/assets/{index-CQAZn3EK.js → index-_Uov_1Gm.js} +1 -1
  84. package/dist/client/assets/{index-Baly1FX_.js → index-__EZcmD7.js} +1 -1
  85. package/dist/client/assets/{index-BjqwKAPh.js → index-n0iHPcte.js} +2 -2
  86. package/dist/client/assets/{infiniteQueryObserver-BOOXGQo2.js → infiniteQueryObserver-CWqfKiPC.js} +1 -1
  87. package/dist/client/assets/{input-BY95D9hS.js → input-DEYTwRzn.js} +1 -1
  88. package/dist/client/assets/{integration-icon-BTq6hO7n.js → integration-icon-Bkie-XyL.js} +1 -1
  89. package/dist/client/assets/{label-Z9ad9sg6.js → label-DWRjHkWy.js} +1 -1
  90. package/dist/client/assets/{layout-D9TsRZCx.js → layout-CjfRI0kM.js} +1 -1
  91. package/dist/client/assets/{lean-canvas-recruit-modal-OmMNmndT.js → lean-canvas-recruit-modal-DGk9eFdJ.js} +1 -1
  92. package/dist/client/assets/{login-C9jgvn5K.js → login-DKUj7zIS.js} +1 -1
  93. package/dist/client/assets/{members-CBmW6KwZ.js → members-BbSPO94a.js} +1 -1
  94. package/dist/client/assets/{monaco-editor-UyxFxpQH.js → monaco-editor-DqaoMZN_.js} +1 -1
  95. package/dist/client/assets/{monitoring-stats-row-DdON8HAn.js → monitoring-stats-row-DhIBV8mS.js} +1 -1
  96. package/dist/client/assets/{oauth-callback-D7SVJIig.js → oauth-callback-4rQ_SIXQ.js} +1 -1
  97. package/dist/client/assets/{oauth-callback-ai-provider-D_zvQ6_C.js → oauth-callback-ai-provider--0vKdiLB.js} +1 -1
  98. package/dist/client/assets/{onboarding-0k8ZSX_k.js → onboarding-CCqg4mEL.js} +1 -1
  99. package/dist/client/assets/{org-layout-D_IQBqiz.js → org-layout-GNTOf2Y_.js} +1 -1
  100. package/dist/client/assets/{org-plugin-layout-CSiRNaTu.js → org-plugin-layout-DvR4YnGa.js} +1 -1
  101. package/dist/client/assets/{pair-DxZ7l3-Z.js → pair-tqYVnZzb.js} +1 -1
  102. package/dist/client/assets/{plugin-empty-state-Dp1Lzm8V.js → plugin-empty-state-B7Ew5cqE.js} +1 -1
  103. package/dist/client/assets/{plugin-header-9vDTFdB9.js → plugin-header-HT1h0NLv.js} +1 -1
  104. package/dist/client/assets/{plugin-layout-3ykxXUjf.js → plugin-layout-BRlJ23A-.js} +1 -1
  105. package/dist/client/assets/{popover-Zakke__8.js → popover-BDSYEq1Z.js} +1 -1
  106. package/dist/client/assets/{profile-9LB06cBx.js → profile-CE6TtzAL.js} +1 -1
  107. package/dist/client/assets/{project-app-view-CqdnMjZ0.js → project-app-view-CKGfiYJS.js} +1 -1
  108. package/dist/client/assets/registry-KydgQONl.js +2 -0
  109. package/dist/client/assets/{registry-layout-CJQb6Z8y.js → registry-layout-BgUN22Is.js} +1 -1
  110. package/dist/client/assets/{required-auth-layout-BxrX3bDQ.js → required-auth-layout-C2TKIvqH.js} +1 -1
  111. package/dist/client/assets/{reset-password-B5KLP3tu.js → reset-password-CFEVrlT-.js} +1 -1
  112. package/dist/client/assets/{roles-DGvkLiRr.js → roles-UDExR41M.js} +1 -1
  113. package/dist/client/assets/{scroll-area-DkrmJo9D.js → scroll-area-1CfGMim0.js} +1 -1
  114. package/dist/client/assets/{search-input-CdGp9qCd.js → search-input-BUN7olRm.js} +1 -1
  115. package/dist/client/assets/{select-CR2tN9TX.js → select-CDN58G81.js} +1 -1
  116. package/dist/client/assets/{select-model-CQhnH5Rx.js → select-model-BoyVFry8.js} +1 -1
  117. package/dist/client/assets/{settings-layout-DHX6Eu2B.js → settings-layout-DyxDLw6w.js} +1 -1
  118. package/dist/client/assets/{settings-section-67sbTFXw.js → settings-section-gdfEnAUq.js} +1 -1
  119. package/dist/client/assets/{shell-layout-CimuPmyV.js → shell-layout-BAgHU931.js} +1 -1
  120. package/dist/client/assets/{skeleton-CS-2bSP9.js → skeleton-B66wWsdL.js} +1 -1
  121. package/dist/client/assets/{sso-Dr2zYrCj.js → sso-9AzOTM0F.js} +1 -1
  122. package/dist/client/assets/{store-DpWEzwk_.js → store-8UHU7otF.js} +1 -1
  123. package/dist/client/assets/store-registry-JV-2CVIA.js +2 -0
  124. package/dist/client/assets/{switch-zLHY6ITD.js → switch-DIHVY0RD.js} +1 -1
  125. package/dist/client/assets/{table-CegXcKEa.js → table-pLgWKqqj.js} +1 -1
  126. package/dist/client/assets/{tabs-CJQTWD5_.js → tabs-B36z-iXu.js} +1 -1
  127. package/dist/client/assets/{task-status-0vcjP9bK.js → task-status-zPChwtIb.js} +1 -1
  128. package/dist/client/assets/{textarea-fydFuW_3.js → textarea-BJm0Tf5N.js} +1 -1
  129. package/dist/client/assets/{toggle-group-7VcHOdQ-.js → toggle-group-BCvX9smm.js} +1 -1
  130. package/dist/client/assets/{tools-list-DqqciwCd.js → tools-list-DsW7X9uH.js} +1 -1
  131. package/dist/client/assets/{tooltip-D_AU3yF1.js → tooltip-DK9ITTps.js} +1 -1
  132. package/dist/client/assets/{types-Cnb1YG8h.js → types-CHJA9iY7.js} +1 -1
  133. package/dist/client/assets/{use-ai-providers-BJDLmjji.js → use-ai-providers-Wa05FQa-.js} +1 -1
  134. package/dist/client/assets/{use-collections-Gut3G1oa.js → use-collections-DEtL7TsG.js} +1 -1
  135. package/dist/client/assets/{use-connection-DPW4E_0G.js → use-connection-BA7MX_A_.js} +1 -1
  136. package/dist/client/assets/{use-copy-B4TaRnHv.js → use-copy-B_9_NtCX.js} +1 -1
  137. package/dist/client/assets/{use-create-virtual-mcp-DIprfvzX.js → use-create-virtual-mcp-BWms3_Wm.js} +1 -1
  138. package/dist/client/assets/{use-debounced-autosave-DHCyVVfx.js → use-debounced-autosave-RQpwA8uI.js} +1 -1
  139. package/dist/client/assets/{use-decopilot-events-Cbmf5tlg.js → use-decopilot-events-CAAYd06u.js} +1 -1
  140. package/dist/client/assets/{use-delete-connection-WVmPLIlj.js → use-delete-connection-mhnpE7ro.js} +1 -1
  141. package/dist/client/assets/{use-infinite-scroll-T0hVA3O9.js → use-infinite-scroll-CM8Ra6DF.js} +1 -1
  142. package/dist/client/assets/{use-list-state-DA3cifaL.js → use-list-state-BWx4o2vn.js} +1 -1
  143. package/dist/client/assets/{use-mcp-tools-iAx7skPl.js → use-mcp-tools-D_JiTODV.js} +1 -1
  144. package/dist/client/assets/{use-members-j0TSecaQ.js → use-members-Dh6NCni1.js} +1 -1
  145. package/dist/client/assets/{use-navigate-to-agent-BCE8xoYG.js → use-navigate-to-agent-Cr_ZMHfb.js} +1 -1
  146. package/dist/client/assets/{use-org-auth-client-Csj669Fw.js → use-org-auth-client-D8ifGvzT.js} +1 -1
  147. package/dist/client/assets/{use-org-sso-Cm8qhi19.js → use-org-sso-IjJZMJF0.js} +1 -1
  148. package/dist/client/assets/{use-organization-roles-InflUxV2.js → use-organization-roles-sdfgjrG3.js} +1 -1
  149. package/dist/client/assets/{use-organization-settings-sGFYoeez.js → use-organization-settings-ZtHNr_4_.js} +1 -1
  150. package/dist/client/assets/{use-registry-connections-CA8kz06E.js → use-registry-connections-C9TouqtJ.js} +1 -1
  151. package/dist/client/assets/{use-status-sounds-DM61lJPE.js → use-status-sounds-BEFDLRaR.js} +1 -1
  152. package/dist/client/assets/{use-tasks-C2Vyiupf.js → use-tasks-DZC5fx2d.js} +1 -1
  153. package/dist/client/assets/{use-view-mode-BoUYdfcR.js → use-view-mode-C1XifkB4.js} +1 -1
  154. package/dist/client/assets/{use-virtual-mcp-DER1r6QO.js → use-virtual-mcp-w_wFYi9Y.js} +1 -1
  155. package/dist/client/assets/useInfiniteQuery-tCVYDURJ.js +1 -0
  156. package/dist/client/assets/useSuspenseInfiniteQuery-hHdMeBLO.js +1 -0
  157. package/dist/client/assets/{user-Di0TXJ3H.js → user-BHWnxivf.js} +1 -1
  158. package/dist/client/assets/{view-mode-toggle-DoU7eK15.js → view-mode-toggle-DUYrFi8F.js} +1 -1
  159. package/dist/client/assets/{workflow-DkCqRbGa.js → workflow-CAeRJIAh.js} +1 -1
  160. package/dist/client/assets/workflow-detail-CsmAVzf-.js +1 -0
  161. package/dist/client/index.html +1 -1
  162. package/dist/server/cli.js +48 -8
  163. package/dist/server/node_modules/ansi-regex/index.d.ts +33 -0
  164. package/dist/server/node_modules/ansi-regex/index.js +14 -0
  165. package/dist/server/node_modules/ansi-regex/package.json +61 -0
  166. package/dist/server/node_modules/ansi-regex/readme.md +66 -0
  167. package/dist/server/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  168. package/dist/server/node_modules/emoji-regex/README.md +107 -0
  169. package/dist/server/node_modules/emoji-regex/index.d.ts +3 -0
  170. package/dist/server/node_modules/emoji-regex/index.js +4 -0
  171. package/dist/server/node_modules/emoji-regex/index.mjs +4 -0
  172. package/dist/server/node_modules/emoji-regex/package.json +45 -0
  173. package/dist/server/node_modules/onetime/index.d.ts +64 -0
  174. package/dist/server/node_modules/onetime/index.js +44 -0
  175. package/dist/server/node_modules/{mimic-fn → onetime}/license +1 -1
  176. package/dist/server/node_modules/{mimic-fn → onetime}/package.json +16 -15
  177. package/dist/server/node_modules/onetime/readme.md +94 -0
  178. package/dist/server/server.js +47 -7
  179. package/package.json +1 -1
  180. package/dist/client/assets/ai-providers-CW7mNid6.js +0 -1
  181. package/dist/client/assets/index-DxiAr3ci.js +0 -1
  182. package/dist/client/assets/registry-DqBhBsD3.js +0 -2
  183. package/dist/client/assets/store-registry-CQpdN133.js +0 -2
  184. package/dist/client/assets/useInfiniteQuery-BjzmzsUJ.js +0 -1
  185. package/dist/client/assets/useSuspenseInfiniteQuery-SvwkjZhj.js +0 -1
  186. package/dist/client/assets/workflow-detail-CbEkNnBb.js +0 -1
  187. package/dist/server/node_modules/get-east-asian-width/index.d.ts +0 -60
  188. package/dist/server/node_modules/get-east-asian-width/index.js +0 -30
  189. package/dist/server/node_modules/get-east-asian-width/lookup-data.js +0 -18
  190. package/dist/server/node_modules/get-east-asian-width/lookup.js +0 -135
  191. package/dist/server/node_modules/get-east-asian-width/package.json +0 -71
  192. package/dist/server/node_modules/get-east-asian-width/readme.md +0 -65
  193. package/dist/server/node_modules/get-east-asian-width/utilities.js +0 -24
  194. package/dist/server/node_modules/mimic-fn/index.d.ts +0 -54
  195. package/dist/server/node_modules/mimic-fn/index.js +0 -13
  196. package/dist/server/node_modules/mimic-fn/readme.md +0 -69
  197. package/dist/server/node_modules/pg/LICENSE +0 -21
  198. package/dist/server/node_modules/pg/README.md +0 -95
  199. package/dist/server/node_modules/pg/esm/index.mjs +0 -20
  200. package/dist/server/node_modules/pg/lib/client.js +0 -743
  201. package/dist/server/node_modules/pg/lib/connection-parameters.js +0 -171
  202. package/dist/server/node_modules/pg/lib/connection.js +0 -221
  203. package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +0 -122
  204. package/dist/server/node_modules/pg/lib/crypto/sasl.js +0 -212
  205. package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +0 -43
  206. package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +0 -89
  207. package/dist/server/node_modules/pg/lib/crypto/utils.js +0 -9
  208. package/dist/server/node_modules/pg/lib/defaults.js +0 -91
  209. package/dist/server/node_modules/pg/lib/index.js +0 -73
  210. package/dist/server/node_modules/pg/lib/native/client.js +0 -323
  211. package/dist/server/node_modules/pg/lib/native/index.js +0 -2
  212. package/dist/server/node_modules/pg/lib/native/query.js +0 -165
  213. package/dist/server/node_modules/pg/lib/query.js +0 -252
  214. package/dist/server/node_modules/pg/lib/result.js +0 -109
  215. package/dist/server/node_modules/pg/lib/stream.js +0 -83
  216. package/dist/server/node_modules/pg/lib/type-overrides.js +0 -35
  217. package/dist/server/node_modules/pg/lib/utils.js +0 -217
  218. package/dist/server/node_modules/pg/package.json +0 -76
  219. package/dist/server/node_modules/pg-int8/LICENSE +0 -13
  220. package/dist/server/node_modules/pg-int8/README.md +0 -16
  221. package/dist/server/node_modules/pg-int8/index.js +0 -100
  222. package/dist/server/node_modules/pg-int8/package.json +0 -24
  223. package/dist/server/node_modules/postgres-array/index.d.ts +0 -4
  224. package/dist/server/node_modules/postgres-array/index.js +0 -97
  225. package/dist/server/node_modules/postgres-array/license +0 -21
  226. package/dist/server/node_modules/postgres-array/package.json +0 -35
  227. package/dist/server/node_modules/postgres-array/readme.md +0 -43
  228. package/dist/server/node_modules/postgres-bytea/index.js +0 -33
  229. package/dist/server/node_modules/postgres-bytea/license +0 -21
  230. package/dist/server/node_modules/postgres-bytea/package.json +0 -34
  231. package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
  232. package/dist/server/node_modules/postgres-date/index.js +0 -116
  233. package/dist/server/node_modules/postgres-date/license +0 -21
  234. package/dist/server/node_modules/postgres-date/package.json +0 -33
  235. package/dist/server/node_modules/postgres-date/readme.md +0 -49
  236. package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
  237. package/dist/server/node_modules/postgres-interval/index.js +0 -125
  238. package/dist/server/node_modules/postgres-interval/license +0 -21
  239. package/dist/server/node_modules/postgres-interval/package.json +0 -36
  240. package/dist/server/node_modules/postgres-interval/readme.md +0 -48
  241. package/dist/server/node_modules/split2/LICENSE +0 -13
  242. package/dist/server/node_modules/split2/README.md +0 -85
  243. package/dist/server/node_modules/split2/bench.js +0 -27
  244. package/dist/server/node_modules/split2/index.js +0 -141
  245. package/dist/server/node_modules/split2/package.json +0 -39
  246. package/dist/server/node_modules/split2/test.js +0 -409
  247. /package/dist/server/node_modules/{get-east-asian-width → ansi-regex}/license +0 -0
@@ -1 +1 @@
1
- import{e as b,s as k,o as E,bM as P,j as i,X as K,aG as _,K as S,x as q}from"./index-BjqwKAPh.js";import{P as x}from"./index-CkXbIQAg.js";import{e as I}from"./use-organization-settings-sGFYoeez.js";import{S as Q}from"./switch-zLHY6ITD.js";import{n as R}from"./Container-WBb7qbdD.js";import{b as w,S as z,a as F,d as M}from"./settings-section-67sbTFXw.js";import"./tooltip-D_AU3yF1.js";import"./X-C_O1kj8t.js";import"./constants-BKat4sJw.js";import"./card-CBJhlNRB.js";import"./ArrowUpRight-ZaII7u8u.js";function N(){const e=b.c(17),{org:t,project:s}=k(),o=E();let d;e[0]!==s.enabledPlugins?(d=s.enabledPlugins??[],e[0]=s.enabledPlugins,e[1]=d):d=e[1];const c=d,l=I();let m;e[2]!==t||e[3]!==s.slug||e[4]!==o?(m=()=>{o.invalidateQueries({queryKey:S.project(t.id,s.slug)}),o.invalidateQueries({queryKey:S.projects(t.id)}),o.invalidateQueries({predicate:n=>{const r=n.queryKey;return r[1]===t.id&&r[3]==="collection"&&r[4]==="VIRTUAL_MCP"}})},e[2]=t,e[3]=s.slug,e[4]=o,e[5]=m):m=e[5];const j=m;let g;e[6]!==j||e[7]!==l||e[8]!==c?(g=(n,r)=>{const u=new Set(c);r?u.add(n):u.delete(n),l.mutate({enabled_plugins:Array.from(u)},{onSuccess:j,onError:A})},e[6]=j,e[7]=l,e[8]=c,e[9]=g):g=e[9];const p=g,y=$,C=U;if(P.length===0){let n;return e[10]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx("p",{className:"text-sm text-muted-foreground",children:"No plugins available."}),e[10]=n):n=e[10],n}let a;e[11]!==p||e[12]!==l||e[13]!==c?(a=P.map(n=>{const r=y(n.id),u=C(n.id),h=c.includes(n.id);return i.jsx(w,{title:r?.label??n.id,description:u??void 0,icon:i.jsx("span",{className:"text-muted-foreground [&>svg]:size-4",children:r?.icon??i.jsx(R,{size:14})}),onClick:()=>!l.isPending&&p(n.id,!h),action:i.jsx(Q,{checked:h,onCheckedChange:v=>p(n.id,v),disabled:l.isPending,onClick:T})},n.id)}),e[11]=p,e[12]=l,e[13]=c,e[14]=a):a=e[14];let f;return e[15]!==a?(f=i.jsx(z,{children:i.jsx(F,{children:a})}),e[15]=a,e[16]=f):f=e[16],f}function T(e){return e.stopPropagation()}function U(e){return P.find(s=>s.id===e)?.description??null}function $(e){const t=K.find(o=>o.pluginId===e);if(t)return{label:t.label,icon:t.items[0]?.icon};const s=_.find(o=>o.pluginId===e);return s?{label:s.label,icon:s.icon}:null}function A(e){q.error("Failed to update plugin: "+(e instanceof Error?e.message:"Unknown error"))}function D(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(x,{children:i.jsx(x.Content,{children:i.jsx(x.Body,{children:i.jsxs(M,{children:[i.jsx(x.Title,{children:"Plugins"}),i.jsx(N,{})]})})})}),e[0]=t):t=e[0],t}function ee(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(D,{}),e[0]=t):t=e[0],t}export{ee as default};
1
+ import{e as b,s as k,o as E,bM as P,j as i,X as K,aG as _,K as S,x as q}from"./index-n0iHPcte.js";import{P as x}from"./index-CVzq_PSm.js";import{e as I}from"./use-organization-settings-ZtHNr_4_.js";import{S as Q}from"./switch-DIHVY0RD.js";import{n as R}from"./Container-C9S2fJrQ.js";import{b as w,S as z,a as F,d as M}from"./settings-section-gdfEnAUq.js";import"./tooltip-DK9ITTps.js";import"./X-DzLPqoAC.js";import"./constants-DsSHL62C.js";import"./card-uZ87GViI.js";import"./ArrowUpRight-havdJdQt.js";function N(){const e=b.c(17),{org:t,project:s}=k(),o=E();let d;e[0]!==s.enabledPlugins?(d=s.enabledPlugins??[],e[0]=s.enabledPlugins,e[1]=d):d=e[1];const c=d,l=I();let m;e[2]!==t||e[3]!==s.slug||e[4]!==o?(m=()=>{o.invalidateQueries({queryKey:S.project(t.id,s.slug)}),o.invalidateQueries({queryKey:S.projects(t.id)}),o.invalidateQueries({predicate:n=>{const r=n.queryKey;return r[1]===t.id&&r[3]==="collection"&&r[4]==="VIRTUAL_MCP"}})},e[2]=t,e[3]=s.slug,e[4]=o,e[5]=m):m=e[5];const j=m;let g;e[6]!==j||e[7]!==l||e[8]!==c?(g=(n,r)=>{const u=new Set(c);r?u.add(n):u.delete(n),l.mutate({enabled_plugins:Array.from(u)},{onSuccess:j,onError:A})},e[6]=j,e[7]=l,e[8]=c,e[9]=g):g=e[9];const p=g,y=$,C=U;if(P.length===0){let n;return e[10]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx("p",{className:"text-sm text-muted-foreground",children:"No plugins available."}),e[10]=n):n=e[10],n}let a;e[11]!==p||e[12]!==l||e[13]!==c?(a=P.map(n=>{const r=y(n.id),u=C(n.id),h=c.includes(n.id);return i.jsx(w,{title:r?.label??n.id,description:u??void 0,icon:i.jsx("span",{className:"text-muted-foreground [&>svg]:size-4",children:r?.icon??i.jsx(R,{size:14})}),onClick:()=>!l.isPending&&p(n.id,!h),action:i.jsx(Q,{checked:h,onCheckedChange:v=>p(n.id,v),disabled:l.isPending,onClick:T})},n.id)}),e[11]=p,e[12]=l,e[13]=c,e[14]=a):a=e[14];let f;return e[15]!==a?(f=i.jsx(z,{children:i.jsx(F,{children:a})}),e[15]=a,e[16]=f):f=e[16],f}function T(e){return e.stopPropagation()}function U(e){return P.find(s=>s.id===e)?.description??null}function $(e){const t=K.find(o=>o.pluginId===e);if(t)return{label:t.label,icon:t.items[0]?.icon};const s=_.find(o=>o.pluginId===e);return s?{label:s.label,icon:s.icon}:null}function A(e){q.error("Failed to update plugin: "+(e instanceof Error?e.message:"Unknown error"))}function D(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(x,{children:i.jsx(x.Content,{children:i.jsx(x.Body,{children:i.jsxs(M,{children:[i.jsx(x.Title,{children:"Plugins"}),i.jsx(N,{})]})})})}),e[0]=t):t=e[0],t}function ee(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(D,{}),e[0]=t):t=e[0],t}export{ee as default};
@@ -1 +1 @@
1
- import{bW as b,e as f,j as c,D as C,r as d,c as p,aY as j,bX as v,bY as h}from"./index-BjqwKAPh.js";import{L as N}from"./label-Z9ad9sg6.js";const E=b,g=d.createContext({}),M=t=>{const e=f.c(9);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let o;e[2]!==s.name?(o={name:s.name},e[2]=s.name,e[3]=o):o=e[3];let n;e[4]!==s?(n=c.jsx(C,{...s}),e[4]=s,e[5]=n):n=e[5];let r;return e[6]!==o||e[7]!==n?(r=c.jsx(g.Provider,{value:o,children:n}),e[6]=o,e[7]=n,e[8]=r):r=e[8],r},x=()=>{const t=f.c(13),e=d.useContext(g),s=d.useContext($),{getFieldState:o}=v();let n;t[0]!==e.name?(n={name:e.name},t[0]=e.name,t[1]=n):n=t[1];const r=h(n);let a;t[2]!==e.name||t[3]!==r||t[4]!==o?(a=o(e.name,r),t[2]=e.name,t[3]=r,t[4]=o,t[5]=a):a=t[5];const l=a;if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=s,m=`${i}-form-item`,F=`${i}-form-item-description`,I=`${i}-form-item-message`;let u;return t[6]!==e.name||t[7]!==l||t[8]!==i||t[9]!==m||t[10]!==F||t[11]!==I?(u={id:i,name:e.name,formItemId:m,formDescriptionId:F,formMessageId:I,...l},t[6]=e.name,t[7]=l,t[8]=i,t[9]=m,t[10]=F,t[11]=I,t[12]=u):u=t[12],u},$=d.createContext({});function w(t){const e=f.c(13);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const n=d.useId();let r;e[3]!==n?(r={id:n},e[3]=n,e[4]=r):r=e[4];let a;e[5]!==s?(a=p("grid gap-2",s),e[5]=s,e[6]=a):a=e[6];let l;e[7]!==o||e[8]!==a?(l=c.jsx("div",{"data-slot":"form-item",className:a,...o}),e[7]=o,e[8]=a,e[9]=l):l=e[9];let i;return e[10]!==r||e[11]!==l?(i=c.jsx($.Provider,{value:r,children:l}),e[10]=r,e[11]=l,e[12]=i):i=e[12],i}function L(t){const e=f.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formItemId:r}=x(),a=!!n;let l;e[3]!==s?(l=p("text-foreground data-[error=true]:text-destructive",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==r||e[6]!==o||e[7]!==a||e[8]!==l?(i=c.jsx(N,{"data-slot":"form-label","data-error":a,className:l,htmlFor:r,...o}),e[5]=r,e[6]=o,e[7]=a,e[8]=l,e[9]=i):i=e[9],i}function P(t){const e=f.c(7);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];const{error:o,formItemId:n,formDescriptionId:r,formMessageId:a}=x(),l=o?`${r} ${a}`:`${r}`,i=!!o;let m;return e[2]!==n||e[3]!==s||e[4]!==l||e[5]!==i?(m=c.jsx(j,{"data-slot":"form-control",id:n,"aria-describedby":l,"aria-invalid":i,...s}),e[2]=n,e[3]=s,e[4]=l,e[5]=i,e[6]=m):m=e[6],m}function y(t){const e=f.c(9);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{formDescriptionId:n}=x();let r;e[3]!==s?(r=p("text-muted-foreground text-sm",s),e[3]=s,e[4]=r):r=e[4];let a;return e[5]!==n||e[6]!==o||e[7]!==r?(a=c.jsx("p",{"data-slot":"form-description",id:n,className:r,...o}),e[5]=n,e[6]=o,e[7]=r,e[8]=a):a=e[8],a}function R(t){const e=f.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formMessageId:r}=x(),a=n?String(n?.message??""):o.children;if(!a)return null;let l;e[3]!==s?(l=p("text-destructive text-sm",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==a||e[6]!==r||e[7]!==o||e[8]!==l?(i=c.jsx("p",{"data-slot":"form-message",id:r,className:l,...o,children:a}),e[5]=a,e[6]=r,e[7]=o,e[8]=l,e[9]=i):i=e[9],i}export{M as F,E as a,w as b,L as c,P as d,y as e,R as f};
1
+ import{bW as b,e as f,j as c,D as C,r as d,c as p,aY as j,bX as v,bY as h}from"./index-n0iHPcte.js";import{L as N}from"./label-DWRjHkWy.js";const E=b,g=d.createContext({}),M=t=>{const e=f.c(9);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let o;e[2]!==s.name?(o={name:s.name},e[2]=s.name,e[3]=o):o=e[3];let n;e[4]!==s?(n=c.jsx(C,{...s}),e[4]=s,e[5]=n):n=e[5];let r;return e[6]!==o||e[7]!==n?(r=c.jsx(g.Provider,{value:o,children:n}),e[6]=o,e[7]=n,e[8]=r):r=e[8],r},x=()=>{const t=f.c(13),e=d.useContext(g),s=d.useContext($),{getFieldState:o}=v();let n;t[0]!==e.name?(n={name:e.name},t[0]=e.name,t[1]=n):n=t[1];const r=h(n);let a;t[2]!==e.name||t[3]!==r||t[4]!==o?(a=o(e.name,r),t[2]=e.name,t[3]=r,t[4]=o,t[5]=a):a=t[5];const l=a;if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=s,m=`${i}-form-item`,F=`${i}-form-item-description`,I=`${i}-form-item-message`;let u;return t[6]!==e.name||t[7]!==l||t[8]!==i||t[9]!==m||t[10]!==F||t[11]!==I?(u={id:i,name:e.name,formItemId:m,formDescriptionId:F,formMessageId:I,...l},t[6]=e.name,t[7]=l,t[8]=i,t[9]=m,t[10]=F,t[11]=I,t[12]=u):u=t[12],u},$=d.createContext({});function w(t){const e=f.c(13);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const n=d.useId();let r;e[3]!==n?(r={id:n},e[3]=n,e[4]=r):r=e[4];let a;e[5]!==s?(a=p("grid gap-2",s),e[5]=s,e[6]=a):a=e[6];let l;e[7]!==o||e[8]!==a?(l=c.jsx("div",{"data-slot":"form-item",className:a,...o}),e[7]=o,e[8]=a,e[9]=l):l=e[9];let i;return e[10]!==r||e[11]!==l?(i=c.jsx($.Provider,{value:r,children:l}),e[10]=r,e[11]=l,e[12]=i):i=e[12],i}function L(t){const e=f.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formItemId:r}=x(),a=!!n;let l;e[3]!==s?(l=p("text-foreground data-[error=true]:text-destructive",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==r||e[6]!==o||e[7]!==a||e[8]!==l?(i=c.jsx(N,{"data-slot":"form-label","data-error":a,className:l,htmlFor:r,...o}),e[5]=r,e[6]=o,e[7]=a,e[8]=l,e[9]=i):i=e[9],i}function P(t){const e=f.c(7);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];const{error:o,formItemId:n,formDescriptionId:r,formMessageId:a}=x(),l=o?`${r} ${a}`:`${r}`,i=!!o;let m;return e[2]!==n||e[3]!==s||e[4]!==l||e[5]!==i?(m=c.jsx(j,{"data-slot":"form-control",id:n,"aria-describedby":l,"aria-invalid":i,...s}),e[2]=n,e[3]=s,e[4]=l,e[5]=i,e[6]=m):m=e[6],m}function y(t){const e=f.c(9);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{formDescriptionId:n}=x();let r;e[3]!==s?(r=p("text-muted-foreground text-sm",s),e[3]=s,e[4]=r):r=e[4];let a;return e[5]!==n||e[6]!==o||e[7]!==r?(a=c.jsx("p",{"data-slot":"form-description",id:n,className:r,...o}),e[5]=n,e[6]=o,e[7]=r,e[8]=a):a=e[8],a}function R(t){const e=f.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formMessageId:r}=x(),a=n?String(n?.message??""):o.children;if(!a)return null;let l;e[3]!==s?(l=p("text-destructive text-sm",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==a||e[6]!==r||e[7]!==o||e[8]!==l?(i=c.jsx("p",{"data-slot":"form-message",id:r,className:l,...o,children:a}),e[5]=a,e[6]=r,e[7]=o,e[8]=l,e[9]=i):i=e[9],i}export{M as F,E as a,w as b,L as c,P as d,y as e,R as f};
@@ -1 +1 @@
1
- import{f as re,s as ce,o as de,z as me,C as ue,a as fe,t as Y,x as V,K as te,j as s,D as se,H as ge,J as W,e as L,r as H,B as G,c as xe,M as pe}from"./index-BjqwKAPh.js";import{P as q}from"./index-CkXbIQAg.js";import{u as he}from"./use-org-auth-client-Csj669Fw.js";import{u as je}from"./use-debounced-autosave-DHCyVVfx.js";import{A as ve}from"./avatar-CSILDiJX.js";import{I as be}from"./input-BY95D9hS.js";import{S as X,a as Z,b as Q,c as ye,d as Se}from"./settings-section-67sbTFXw.js";import{D as Ne}from"./domain-settings-Dj6mogBD.js";import{u as Ce,a as ne,D as we,c as _e,S as ze,v as De,K as Ae,P as ke,d as Pe,C as Ie,s as Ee,b as Oe,e as Te}from"./collection-search-Qnmn9Jjl.js";import{W as ee,i as Re}from"./constants-BKat4sJw.js";import{b as le}from"./use-virtual-mcp-DER1r6QO.js";import{b as Fe,P as Le,a as $e}from"./popover-Zakke__8.js";import{S as Me}from"./skeleton-CS-2bSP9.js";import{y as Be}from"./agent-icon-s17W0wUB.js";import{s as Ve}from"./Plus-QZEpDFDV.js";import{a as ae}from"./Users03-DDHNU2o0.js";import{i as He}from"./X-C_O1kj8t.js";import{I as J}from"./integration-icon-BTq6hO7n.js";import{a as Ke,d as Ue}from"./use-organization-settings-sGFYoeez.js";import"./tooltip-D_AU3yF1.js";import"./User01-76gT3tOW.js";import"./card-CBJhlNRB.js";import"./ArrowUpRight-ZaII7u8u.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./switch-zLHY6ITD.js";import"./SearchMd-BHubyM0S.js";import"./use-collections-Gut3G1oa.js";import"./AlertCircle-Cxcba8DN.js";import"./Tool01-BPmEF3oC.js";import"./XClose-C21czImH.js";import"./RefreshCcw01-DKtPikGx.js";import"./ArrowNarrowLeft-CtUMVsB_.js";import"./XCircle-D9VV2CKm.js";import"./ZapSquare-OxHp4t0m.js";import"./CheckCircle-CkSmS6Cg.js";import"./Check-BStFjKto.js";import"./ChevronDown-CJ0icK2r.js";import"./ChevronRight-Dw3Db6I0.js";import"./ChevronUp-BDsNPBis.js";import"./DotsVertical-BPk38qYQ.js";import"./Container-WBb7qbdD.js";import"./Star01-DduN7cUl.js";import"./Palette-DfzN4-9K.js";import"./LinkExternal01-6x3Iy4Gd.js";import"./Lock01-DA0MuRwj.js";import"./Sun-k7d5io6k.js";import"./Play-QsP1MGXe.js";import"./Settings02-DpkRLLNd.js";import"./Shield01-BvsHGINb.js";import"./Trash01-DhkmMJFO.js";import"./Zap-TR29R2LK.js";const qe=ge({name:W().min(1,"Name is required").max(255,"Name is too long"),slug:W().min(1,"Slug is required").max(50,"Slug is too long").regex(/^[a-z0-9-]+$/,"Slug must contain only lowercase letters, numbers, and hyphens"),logo:W().optional()});function Ge(t){const e=L.c(13),{value:r,onChange:l,name:a,disabled:d}=t,n=H.useRef(null);let j;e[0]===Symbol.for("react.memo_cache_sentinel")?(j=()=>n.current?.click(),e[0]=j):j=e[0];const u=j;let v;e[1]!==l?(v=z=>{const p=z.target.files?.[0];if(!p)return;if(p.size>2097152){V.error("Image must be smaller than 2MB");return}const b=new FileReader;b.onerror=We,b.onloadend=()=>{b.result&&l(b.result),n.current&&(n.current.value="")},b.readAsDataURL(p)},e[1]=l,e[2]=v):v=e[2];const o=v;let i;e[3]!==d||e[4]!==o?(i=s.jsx("input",{ref:n,type:"file",accept:"image/*",onChange:o,className:"hidden",disabled:d}),e[3]=d,e[4]=o,e[5]=i):i=e[5];const m=r||void 0,g=a??"?";let f;e[6]!==m||e[7]!==g?(f=s.jsx(ve,{url:m,fallback:g,shape:"square",size:"base"}),e[6]=m,e[7]=g,e[8]=f):f=e[8];let x;return e[9]!==d||e[10]!==i||e[11]!==f?(x=s.jsxs("button",{type:"button",onClick:u,disabled:d,className:"rounded-lg overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":"Upload organization logo",children:[i,f]}),e[9]=d,e[10]=i,e[11]=f,e[12]=x):x=e[12],x}function We(){return V.error("Failed to read image")}function Qe(){const t=re(),{org:e}=ce(),r=he(),l=de(),a=me({resolver:ue(qe),values:{name:e.name??"",slug:e.slug??"",logo:e.logo??""}}),d=fe({mutationFn:async o=>{const i={name:o.name,slug:o.slug};o.logo&&(i.logo=o.logo);const m=await r.organization.update({data:i});if(m?.error)throw new Error(m.error.message||"Failed to update organization");return m},onSuccess:(o,i)=>{Y("organization_settings_updated",{organization_id:e.id,fields:Object.keys(i)}),l.invalidateQueries({queryKey:te.organizations()}),l.invalidateQueries({queryKey:te.activeOrganization(e.slug)}),V.success("Organization updated successfully"),o?.data?.slug&&o.data.slug!==e.slug&&t({to:"/$org/settings/general",params:{org:o.data.slug}})},onError:(o,i)=>{Y("organization_settings_update_failed",{organization_id:e.id,fields:Object.keys(i),error:o instanceof Error?o.message:String(o)}),V.error(o instanceof Error?o.message:"Failed to update organization")}}),{schedule:n,flush:j}=je({save:async()=>{const o=a.control._formState.dirtyFields;if(Object.keys(o).length===0||!await a.trigger())return;const m=a.getValues(),g=a.control._defaultValues;a.reset(m,{keepValues:!0});try{await d.mutateAsync(m)}catch{a.reset(g,{keepValues:!0})}}}),u=a.formState.errors,v=typeof window<"u"?`${window.location.host}/`:"";return s.jsx(X,{children:s.jsxs(Z,{children:[s.jsx(Q,{title:"Logo",description:"Recommended size is 256x256px",action:s.jsx(Ge,{value:a.watch("logo"),onChange:o=>{a.setValue("logo",o??"",{shouldDirty:!0}),j()},name:a.watch("name")})}),s.jsx(Q,{title:"Name",action:s.jsx(se,{control:a.control,name:"name",render:({field:o})=>s.jsx(be,{id:"org-name",...o,onChange:i=>{o.onChange(i),n()},onBlur:()=>{o.onBlur(),j()},placeholder:"Organization name",className:"w-[280px]"})})}),s.jsx(Q,{title:"URL",action:s.jsxs("div",{className:"flex items-center w-[280px] rounded-md border border-input bg-input/30 focus-within:ring-2 focus-within:ring-ring/50 overflow-hidden",children:[v&&s.jsx("span",{className:"pl-3 text-sm text-muted-foreground select-none",children:v}),s.jsx(se,{control:a.control,name:"slug",render:({field:o})=>s.jsx("input",{id:"org-slug",value:o.value??"",name:o.name,ref:o.ref,placeholder:"my-organization",className:"flex-1 min-w-0 bg-transparent px-2 py-1.5 text-sm text-foreground placeholder:text-muted-foreground/60 outline-none",onChange:i=>{const m=i.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"");a.setValue("slug",m,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),n()},onBlur:()=>{o.onBlur(),j()}})})]})}),(u.name||u.slug||u.logo)&&s.jsxs("div",{className:"px-5 pb-3 flex flex-col gap-1",children:[u.name&&s.jsx("p",{className:"text-xs text-destructive",children:u.name.message}),u.slug&&s.jsx("p",{className:"text-xs text-destructive",children:u.slug.message}),u.logo&&s.jsx("p",{className:"text-xs text-destructive",children:u.logo.message})]})]})})}const oe=["site-editor","site-diagnostics","ai-image","ai-research"],ie=8;function Ye(t,e,r){const l=e.find(d=>d.id===t);if(l)return{id:l.id,title:l.title,icon:l.icon,kind:"template"};const a=r.find(d=>d.id===t);return a?{id:t,title:a.title,icon:a.icon??null,kind:"custom"}:{id:t,title:t,icon:null,kind:"missing"}}function Je(t){const e=L.c(39),{agent:r,onRemove:l}=t;let a;e[0]!==r.id?(a={id:r.id},e[0]=r.id,e[1]=a):a=e[1];const{attributes:d,listeners:n,setNodeRef:j,transform:u,transition:v,isDragging:o}=Pe(a);let i;e[2]!==u?(i=Ie.Transform.toString(u),e[2]=u,e[3]=i):i=e[3];const m=o?.5:void 0,g=o?100:void 0;let f;e[4]!==i||e[5]!==m||e[6]!==g||e[7]!==v?(f={transform:i,transition:v,opacity:m,zIndex:g},e[4]=i,e[5]=m,e[6]=g,e[7]=v,e[8]=f):f=e[8];const x=f,z=o&&"shadow-lg";let p;e[9]!==z?(p=xe("flex items-center gap-3 px-3 py-2 rounded-lg border border-border bg-background",z),e[9]=z,e[10]=p):p=e[10];const b=`Drag to reorder ${r.title}`;let D;e[11]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Be,{size:14}),e[11]=D):D=e[11];let P;e[12]!==d||e[13]!==n||e[14]!==b?(P=s.jsx("button",{type:"button",...d,...n,className:"text-muted-foreground hover:text-foreground cursor-grab active:cursor-grabbing","aria-label":b,children:D}),e[12]=d,e[13]=n,e[14]=b,e[15]=P):P=e[15];let N;e[16]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(ae,{size:14}),e[16]=N):N=e[16];let w;e[17]!==r.icon||e[18]!==r.title?(w=s.jsx(J,{icon:r.icon,name:r.title,size:"xs",fallbackIcon:N}),e[17]=r.icon,e[18]=r.title,e[19]=w):w=e[19];let y;e[20]!==r.title?(y=s.jsx("span",{className:"text-sm text-foreground truncate",children:r.title}),e[20]=r.title,e[21]=y):y=e[21];const _=r.kind==="template"?"Template":r.kind==="custom"?"Custom agent":"Unavailable";let h;e[22]!==_?(h=s.jsx("span",{className:"text-xs text-muted-foreground",children:_}),e[22]=_,e[23]=h):h=e[23];let S;e[24]!==y||e[25]!==h?(S=s.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[y,h]}),e[24]=y,e[25]=h,e[26]=S):S=e[26];const I=`Remove ${r.title}`;let A;e[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(He,{size:14}),e[27]=A):A=e[27];let C;e[28]!==l||e[29]!==I?(C=s.jsx("button",{type:"button",onClick:l,className:"text-muted-foreground hover:text-foreground p-1 rounded","aria-label":I,children:A}),e[28]=l,e[29]=I,e[30]=C):C=e[30];let k;return e[31]!==j||e[32]!==x||e[33]!==P||e[34]!==w||e[35]!==S||e[36]!==C||e[37]!==p?(k=s.jsxs("div",{ref:j,style:x,className:p,children:[P,w,S,C]}),e[31]=j,e[32]=x,e[33]=P,e[34]=w,e[35]=S,e[36]=C,e[37]=p,e[38]=k):k=e[38],k}function Xe(t){const e=L.c(48),{selectedIds:r,onAdd:l}=t,[a,d]=H.useState(!1),[n,j]=H.useState(""),u=le();let v;e[0]!==r?(v=new Set(r),e[0]=r,e[1]=v):v=e[1];const o=v;let i,m,g,f,x,z,p,b,D,P,N,w,y;if(e[2]!==u||e[3]!==l||e[4]!==a||e[5]!==n||e[6]!==o){const A=n.toLowerCase();f=ee.filter(c=>!o.has(c.id)&&(!n||c.title.toLowerCase().includes(A)));let C;e[20]!==o?(C=c=>c.id!==null&&!Re(c.id)&&!o.has(c.id),e[20]=o,e[21]=C):C=e[21],g=u.filter(C).filter(c=>!n||c.title.toLowerCase().includes(A));let k;e[22]!==l?(k=c=>{l(c),d(!1),j("")},e[22]=l,e[23]=k):k=e[23];const O=k;m=Fe,w=a,y=d,e[24]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(Le,{asChild:!0,children:s.jsxs(G,{type:"button",variant:"outline",size:"sm",children:[s.jsx(Ve,{size:14}),"Add agent"]})}),e[24]=x):x=e[24],i=$e,D="w-[320px] p-0 overflow-hidden",P="start",e[25]!==n?(N=s.jsx(Te,{value:n,onChange:j,placeholder:"Search agents..."}),e[25]=n,e[26]=N):N=e[26],z="max-h-[320px] overflow-y-auto p-2 flex flex-col gap-3",p=f.length>0&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground px-1",children:"Templates"}),f.map(c=>s.jsxs("button",{type:"button",onClick:()=>O(c.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(J,{icon:c.icon,name:c.title,size:"xs"}),s.jsx("span",{className:"text-sm truncate",children:c.title})]},c.id))]}),b=g.length>0&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground px-1",children:"Custom agents"}),g.map(c=>s.jsxs("button",{type:"button",onClick:()=>O(c.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(J,{icon:c.icon,name:c.title,size:"xs",fallbackIcon:s.jsx(ae,{size:14})}),s.jsx("span",{className:"text-sm truncate",children:c.title})]},c.id))]}),e[2]=u,e[3]=l,e[4]=a,e[5]=n,e[6]=o,e[7]=i,e[8]=m,e[9]=g,e[10]=f,e[11]=x,e[12]=z,e[13]=p,e[14]=b,e[15]=D,e[16]=P,e[17]=N,e[18]=w,e[19]=y}else i=e[7],m=e[8],g=e[9],f=e[10],x=e[11],z=e[12],p=e[13],b=e[14],D=e[15],P=e[16],N=e[17],w=e[18],y=e[19];let _;e[27]!==g||e[28]!==f.length||e[29]!==n?(_=f.length===0&&g.length===0&&s.jsx("div",{className:"text-xs text-muted-foreground text-center py-6",children:n?"No agents found":"All agents are already added"}),e[27]=g,e[28]=f.length,e[29]=n,e[30]=_):_=e[30];let h;e[31]!==_||e[32]!==z||e[33]!==p||e[34]!==b?(h=s.jsxs("div",{className:z,children:[p,b,_]}),e[31]=_,e[32]=z,e[33]=p,e[34]=b,e[35]=h):h=e[35];let S;e[36]!==i||e[37]!==h||e[38]!==D||e[39]!==P||e[40]!==N?(S=s.jsxs(i,{className:D,align:P,children:[N,h]}),e[36]=i,e[37]=h,e[38]=D,e[39]=P,e[40]=N,e[41]=S):S=e[41];let I;return e[42]!==m||e[43]!==x||e[44]!==S||e[45]!==w||e[46]!==y?(I=s.jsxs(m,{open:w,onOpenChange:y,children:[x,S]}),e[42]=m,e[43]=x,e[44]=S,e[45]=w,e[46]=y,e[47]=I):I=e[47],I}function Ze(){const t=L.c(61),e=Ke(),r=le(),l=Ue();let a;t[0]!==e?.ids?(a=e?.ids??[...oe],t[0]=e?.ids,t[1]=a):a=t[1];const d=a,[n,j]=H.useState(d);let u;t[2]!==n||t[3]!==d?(u=n.length!==d.length||n.some((E,T)=>E!==d[T]),t[2]=n,t[3]=d,t[4]=u):u=t[4];const v=u;let o;t[5]===Symbol.for("react.memo_cache_sentinel")?(o={activationConstraint:{distance:5}},t[5]=o):o=t[5];let i;t[6]===Symbol.for("react.memo_cache_sentinel")?(i={coordinateGetter:Ee},t[6]=i):i=t[6];const m=Ce(ne(ke,o),ne(Ae,i));let g;t[7]!==n?(g=E=>{const{active:T,over:R}=E;if(!R||T.id===R.id)return;const F=n.indexOf(T.id),U=n.indexOf(R.id);F===-1||U===-1||j(Oe([...n],F,U))},t[7]=n,t[8]=g):g=t[8];const f=g;let x;t[9]!==n?(x=E=>{n.includes(E)||j([...n,E])},t[9]=n,t[10]=x):x=t[10];const z=x;let p;t[11]!==n?(p=E=>{j(n.filter(T=>T!==E))},t[11]=n,t[12]=p):p=t[12];const b=p;let D;t[13]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{j([...oe])},t[13]=D):D=t[13];const P=D;let N;t[14]!==n||t[15]!==l?(N=()=>{l.mutate({ids:n},{onSuccess:()=>{Y("default_home_agents_updated",{count:n.length,template_count:n.filter(tt).length}),V.success("Default home agents updated")},onError:et})},t[14]=n,t[15]=l,t[16]=N):N=t[16];const w=N;let y,_,h,S,I,A,C;if(t[17]!==r||t[18]!==n||t[19]!==f||t[20]!==b||t[21]!==m||t[22]!==l.isPending){let E;t[30]!==r?(E=F=>Ye(F,ee,r),t[30]=r,t[31]=E):E=t[31];const T=n.map(E);h=Math.max(0,n.length-ie),_=X,I="Default home agents";let R;t[32]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(pe,{size:14}),t[32]=R):R=t[32],t[33]!==l.isPending?(A=s.jsxs(G,{type:"button",variant:"ghost",size:"sm",onClick:P,disabled:l.isPending,children:[R,"Reset defaults"]}),t[33]=l.isPending,t[34]=A):A=t[34],y=Z,C="px-5 py-5 flex flex-col gap-3",S=T.length===0?s.jsx("div",{className:"rounded-lg border border-dashed border-border p-6 text-center text-xs text-muted-foreground",children:'No agents selected. The home view will only show "Create agent".'}):s.jsx(we,{sensors:m,collisionDetection:_e,onDragEnd:f,children:s.jsx(ze,{items:n,strategy:De,children:s.jsx("div",{className:"flex flex-col gap-1.5",children:T.map((F,U)=>s.jsxs("div",{className:"flex flex-col gap-1.5",children:[U===ie&&s.jsxs("div",{className:"flex items-center gap-2 px-1 py-1 text-xs text-muted-foreground",children:[s.jsx("div",{className:"flex-1 h-px bg-border"}),s.jsx("span",{children:"Below this line is hidden on the home view"}),s.jsx("div",{className:"flex-1 h-px bg-border"})]}),s.jsx(Je,{agent:F,onRemove:()=>b(F.id)})]},F.id))})})}),t[17]=r,t[18]=n,t[19]=f,t[20]=b,t[21]=m,t[22]=l.isPending,t[23]=y,t[24]=_,t[25]=h,t[26]=S,t[27]=I,t[28]=A,t[29]=C}else y=t[23],_=t[24],h=t[25],S=t[26],I=t[27],A=t[28],C=t[29];let k;t[35]!==n||t[36]!==z?(k=s.jsx(Xe,{selectedIds:n,onAdd:z}),t[35]=n,t[36]=z,t[37]=k):k=t[37];let O;t[38]!==h?(O=h>0&&s.jsxs("span",{className:"text-xs text-muted-foreground",children:[h," agent",h===1?"":"s"," won't fit on the home view"]}),t[38]=h,t[39]=O):O=t[39];let c;t[40]!==k||t[41]!==O?(c=s.jsxs("div",{className:"flex items-center justify-between",children:[k,O]}),t[40]=k,t[41]=O,t[42]=c):c=t[42];let $;t[43]!==S||t[44]!==c||t[45]!==C?($=s.jsxs("div",{className:C,children:[S,c]}),t[43]=S,t[44]=c,t[45]=C,t[46]=$):$=t[46];let M;t[47]!==w||t[48]!==d||t[49]!==v||t[50]!==l.isPending?(M=v&&s.jsxs(ye,{children:[s.jsx(G,{type:"button",variant:"outline",onClick:()=>j(d),disabled:l.isPending,children:"Cancel"}),s.jsx(G,{type:"button",onClick:w,disabled:l.isPending,children:l.isPending?"Saving…":"Save"})]}),t[47]=w,t[48]=d,t[49]=v,t[50]=l.isPending,t[51]=M):M=t[51];let B;t[52]!==y||t[53]!==$||t[54]!==M?(B=s.jsxs(y,{children:[$,M]}),t[52]=y,t[53]=$,t[54]=M,t[55]=B):B=t[55];let K;return t[56]!==_||t[57]!==I||t[58]!==A||t[59]!==B?(K=s.jsx(_,{title:I,actions:A,children:B}),t[56]=_,t[57]=I,t[58]=A,t[59]=B,t[60]=K):K=t[60],K}function et(t){V.error(t instanceof Error?t.message:"Failed to update default home agents")}function tt(t){return ee.some(e=>e.id===t)}function st(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(X,{title:"Default home agents",children:s.jsx(Z,{children:s.jsx("div",{className:"px-5 py-5 flex flex-col gap-2",children:Array.from({length:4}).map(nt)})})}),t[0]=e):e=t[0],e}function nt(t,e){return s.jsx(Me,{className:"h-12 w-full rounded-lg"},e)}function ot(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(H.Suspense,{fallback:s.jsx(st,{}),children:s.jsx(Ze,{})}),t[0]=e):e=t[0],e}function it(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(q,{children:s.jsx(q.Content,{children:s.jsx(q.Body,{children:s.jsxs(Se,{children:[s.jsx(q.Title,{children:"Organization"}),s.jsx(Qe,{}),s.jsx(Ne,{}),s.jsx(ot,{})]})})})}),t[0]=e):e=t[0],e}function ns(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(it,{}),t[0]=e):e=t[0],e}export{ns as default};
1
+ import{f as re,s as ce,o as de,z as me,C as ue,a as fe,t as Y,x as V,K as te,j as s,D as se,H as ge,J as W,e as L,r as H,B as G,c as xe,M as pe}from"./index-n0iHPcte.js";import{P as q}from"./index-CVzq_PSm.js";import{u as he}from"./use-org-auth-client-D8ifGvzT.js";import{u as je}from"./use-debounced-autosave-RQpwA8uI.js";import{A as ve}from"./avatar-CtlfIArZ.js";import{I as be}from"./input-DEYTwRzn.js";import{S as X,a as Z,b as Q,c as ye,d as Se}from"./settings-section-gdfEnAUq.js";import{D as Ne}from"./domain-settings-D1FHhwCI.js";import{u as Ce,a as ne,D as we,c as _e,S as ze,v as De,K as Ae,P as ke,d as Pe,C as Ie,s as Ee,b as Oe,e as Te}from"./collection-search-CrNavgfW.js";import{W as ee,i as Re}from"./constants-DsSHL62C.js";import{b as le}from"./use-virtual-mcp-w_wFYi9Y.js";import{b as Fe,P as Le,a as $e}from"./popover-BDSYEq1Z.js";import{S as Me}from"./skeleton-B66wWsdL.js";import{y as Be}from"./agent-icon-D-W_-Msq.js";import{s as Ve}from"./Plus-BxG8Erza.js";import{a as ae}from"./Users03-DG3Gfjoh.js";import{i as He}from"./X-DzLPqoAC.js";import{I as J}from"./integration-icon-Bkie-XyL.js";import{a as Ke,d as Ue}from"./use-organization-settings-ZtHNr_4_.js";import"./tooltip-DK9ITTps.js";import"./User01-BZ9BWkFc.js";import"./card-uZ87GViI.js";import"./ArrowUpRight-havdJdQt.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./switch-DIHVY0RD.js";import"./SearchMd-JVaJZdXg.js";import"./use-collections-DEtL7TsG.js";import"./AlertCircle-CFABZy3o.js";import"./Tool01-Bhj2T1uN.js";import"./XClose-0biyZ-nq.js";import"./RefreshCcw01-DdgK7Krp.js";import"./ArrowNarrowLeft-qjcSXUou.js";import"./XCircle-DTJod2tn.js";import"./ZapSquare-DtdkchqU.js";import"./CheckCircle-D7ReuLNV.js";import"./Check-4wEPFmVT.js";import"./ChevronDown-CLwgC4lc.js";import"./ChevronRight-DW27S4dx.js";import"./ChevronUp-DAW3-3dA.js";import"./DotsVertical-BReL32xd.js";import"./Container-C9S2fJrQ.js";import"./Star01-DEmigL_c.js";import"./Palette-Dtg_tDlg.js";import"./LinkExternal01-0Xs4UV_i.js";import"./Lock01-BjKqD6QN.js";import"./Sun-TDfj1GPd.js";import"./Play-85A9faRd.js";import"./Settings02-BZivkDIL.js";import"./Shield01-CAl07SGJ.js";import"./Trash01-CdymalYb.js";import"./Zap-aKe8CYDP.js";const qe=ge({name:W().min(1,"Name is required").max(255,"Name is too long"),slug:W().min(1,"Slug is required").max(50,"Slug is too long").regex(/^[a-z0-9-]+$/,"Slug must contain only lowercase letters, numbers, and hyphens"),logo:W().optional()});function Ge(t){const e=L.c(13),{value:r,onChange:l,name:a,disabled:d}=t,n=H.useRef(null);let j;e[0]===Symbol.for("react.memo_cache_sentinel")?(j=()=>n.current?.click(),e[0]=j):j=e[0];const u=j;let v;e[1]!==l?(v=z=>{const p=z.target.files?.[0];if(!p)return;if(p.size>2097152){V.error("Image must be smaller than 2MB");return}const b=new FileReader;b.onerror=We,b.onloadend=()=>{b.result&&l(b.result),n.current&&(n.current.value="")},b.readAsDataURL(p)},e[1]=l,e[2]=v):v=e[2];const o=v;let i;e[3]!==d||e[4]!==o?(i=s.jsx("input",{ref:n,type:"file",accept:"image/*",onChange:o,className:"hidden",disabled:d}),e[3]=d,e[4]=o,e[5]=i):i=e[5];const m=r||void 0,g=a??"?";let f;e[6]!==m||e[7]!==g?(f=s.jsx(ve,{url:m,fallback:g,shape:"square",size:"base"}),e[6]=m,e[7]=g,e[8]=f):f=e[8];let x;return e[9]!==d||e[10]!==i||e[11]!==f?(x=s.jsxs("button",{type:"button",onClick:u,disabled:d,className:"rounded-lg overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":"Upload organization logo",children:[i,f]}),e[9]=d,e[10]=i,e[11]=f,e[12]=x):x=e[12],x}function We(){return V.error("Failed to read image")}function Qe(){const t=re(),{org:e}=ce(),r=he(),l=de(),a=me({resolver:ue(qe),values:{name:e.name??"",slug:e.slug??"",logo:e.logo??""}}),d=fe({mutationFn:async o=>{const i={name:o.name,slug:o.slug};o.logo&&(i.logo=o.logo);const m=await r.organization.update({data:i});if(m?.error)throw new Error(m.error.message||"Failed to update organization");return m},onSuccess:(o,i)=>{Y("organization_settings_updated",{organization_id:e.id,fields:Object.keys(i)}),l.invalidateQueries({queryKey:te.organizations()}),l.invalidateQueries({queryKey:te.activeOrganization(e.slug)}),V.success("Organization updated successfully"),o?.data?.slug&&o.data.slug!==e.slug&&t({to:"/$org/settings/general",params:{org:o.data.slug}})},onError:(o,i)=>{Y("organization_settings_update_failed",{organization_id:e.id,fields:Object.keys(i),error:o instanceof Error?o.message:String(o)}),V.error(o instanceof Error?o.message:"Failed to update organization")}}),{schedule:n,flush:j}=je({save:async()=>{const o=a.control._formState.dirtyFields;if(Object.keys(o).length===0||!await a.trigger())return;const m=a.getValues(),g=a.control._defaultValues;a.reset(m,{keepValues:!0});try{await d.mutateAsync(m)}catch{a.reset(g,{keepValues:!0})}}}),u=a.formState.errors,v=typeof window<"u"?`${window.location.host}/`:"";return s.jsx(X,{children:s.jsxs(Z,{children:[s.jsx(Q,{title:"Logo",description:"Recommended size is 256x256px",action:s.jsx(Ge,{value:a.watch("logo"),onChange:o=>{a.setValue("logo",o??"",{shouldDirty:!0}),j()},name:a.watch("name")})}),s.jsx(Q,{title:"Name",action:s.jsx(se,{control:a.control,name:"name",render:({field:o})=>s.jsx(be,{id:"org-name",...o,onChange:i=>{o.onChange(i),n()},onBlur:()=>{o.onBlur(),j()},placeholder:"Organization name",className:"w-[280px]"})})}),s.jsx(Q,{title:"URL",action:s.jsxs("div",{className:"flex items-center w-[280px] rounded-md border border-input bg-input/30 focus-within:ring-2 focus-within:ring-ring/50 overflow-hidden",children:[v&&s.jsx("span",{className:"pl-3 text-sm text-muted-foreground select-none",children:v}),s.jsx(se,{control:a.control,name:"slug",render:({field:o})=>s.jsx("input",{id:"org-slug",value:o.value??"",name:o.name,ref:o.ref,placeholder:"my-organization",className:"flex-1 min-w-0 bg-transparent px-2 py-1.5 text-sm text-foreground placeholder:text-muted-foreground/60 outline-none",onChange:i=>{const m=i.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"");a.setValue("slug",m,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),n()},onBlur:()=>{o.onBlur(),j()}})})]})}),(u.name||u.slug||u.logo)&&s.jsxs("div",{className:"px-5 pb-3 flex flex-col gap-1",children:[u.name&&s.jsx("p",{className:"text-xs text-destructive",children:u.name.message}),u.slug&&s.jsx("p",{className:"text-xs text-destructive",children:u.slug.message}),u.logo&&s.jsx("p",{className:"text-xs text-destructive",children:u.logo.message})]})]})})}const oe=["site-editor","site-diagnostics","ai-image","ai-research"],ie=8;function Ye(t,e,r){const l=e.find(d=>d.id===t);if(l)return{id:l.id,title:l.title,icon:l.icon,kind:"template"};const a=r.find(d=>d.id===t);return a?{id:t,title:a.title,icon:a.icon??null,kind:"custom"}:{id:t,title:t,icon:null,kind:"missing"}}function Je(t){const e=L.c(39),{agent:r,onRemove:l}=t;let a;e[0]!==r.id?(a={id:r.id},e[0]=r.id,e[1]=a):a=e[1];const{attributes:d,listeners:n,setNodeRef:j,transform:u,transition:v,isDragging:o}=Pe(a);let i;e[2]!==u?(i=Ie.Transform.toString(u),e[2]=u,e[3]=i):i=e[3];const m=o?.5:void 0,g=o?100:void 0;let f;e[4]!==i||e[5]!==m||e[6]!==g||e[7]!==v?(f={transform:i,transition:v,opacity:m,zIndex:g},e[4]=i,e[5]=m,e[6]=g,e[7]=v,e[8]=f):f=e[8];const x=f,z=o&&"shadow-lg";let p;e[9]!==z?(p=xe("flex items-center gap-3 px-3 py-2 rounded-lg border border-border bg-background",z),e[9]=z,e[10]=p):p=e[10];const b=`Drag to reorder ${r.title}`;let D;e[11]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Be,{size:14}),e[11]=D):D=e[11];let P;e[12]!==d||e[13]!==n||e[14]!==b?(P=s.jsx("button",{type:"button",...d,...n,className:"text-muted-foreground hover:text-foreground cursor-grab active:cursor-grabbing","aria-label":b,children:D}),e[12]=d,e[13]=n,e[14]=b,e[15]=P):P=e[15];let N;e[16]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(ae,{size:14}),e[16]=N):N=e[16];let w;e[17]!==r.icon||e[18]!==r.title?(w=s.jsx(J,{icon:r.icon,name:r.title,size:"xs",fallbackIcon:N}),e[17]=r.icon,e[18]=r.title,e[19]=w):w=e[19];let y;e[20]!==r.title?(y=s.jsx("span",{className:"text-sm text-foreground truncate",children:r.title}),e[20]=r.title,e[21]=y):y=e[21];const _=r.kind==="template"?"Template":r.kind==="custom"?"Custom agent":"Unavailable";let h;e[22]!==_?(h=s.jsx("span",{className:"text-xs text-muted-foreground",children:_}),e[22]=_,e[23]=h):h=e[23];let S;e[24]!==y||e[25]!==h?(S=s.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[y,h]}),e[24]=y,e[25]=h,e[26]=S):S=e[26];const I=`Remove ${r.title}`;let A;e[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(He,{size:14}),e[27]=A):A=e[27];let C;e[28]!==l||e[29]!==I?(C=s.jsx("button",{type:"button",onClick:l,className:"text-muted-foreground hover:text-foreground p-1 rounded","aria-label":I,children:A}),e[28]=l,e[29]=I,e[30]=C):C=e[30];let k;return e[31]!==j||e[32]!==x||e[33]!==P||e[34]!==w||e[35]!==S||e[36]!==C||e[37]!==p?(k=s.jsxs("div",{ref:j,style:x,className:p,children:[P,w,S,C]}),e[31]=j,e[32]=x,e[33]=P,e[34]=w,e[35]=S,e[36]=C,e[37]=p,e[38]=k):k=e[38],k}function Xe(t){const e=L.c(48),{selectedIds:r,onAdd:l}=t,[a,d]=H.useState(!1),[n,j]=H.useState(""),u=le();let v;e[0]!==r?(v=new Set(r),e[0]=r,e[1]=v):v=e[1];const o=v;let i,m,g,f,x,z,p,b,D,P,N,w,y;if(e[2]!==u||e[3]!==l||e[4]!==a||e[5]!==n||e[6]!==o){const A=n.toLowerCase();f=ee.filter(c=>!o.has(c.id)&&(!n||c.title.toLowerCase().includes(A)));let C;e[20]!==o?(C=c=>c.id!==null&&!Re(c.id)&&!o.has(c.id),e[20]=o,e[21]=C):C=e[21],g=u.filter(C).filter(c=>!n||c.title.toLowerCase().includes(A));let k;e[22]!==l?(k=c=>{l(c),d(!1),j("")},e[22]=l,e[23]=k):k=e[23];const O=k;m=Fe,w=a,y=d,e[24]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(Le,{asChild:!0,children:s.jsxs(G,{type:"button",variant:"outline",size:"sm",children:[s.jsx(Ve,{size:14}),"Add agent"]})}),e[24]=x):x=e[24],i=$e,D="w-[320px] p-0 overflow-hidden",P="start",e[25]!==n?(N=s.jsx(Te,{value:n,onChange:j,placeholder:"Search agents..."}),e[25]=n,e[26]=N):N=e[26],z="max-h-[320px] overflow-y-auto p-2 flex flex-col gap-3",p=f.length>0&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground px-1",children:"Templates"}),f.map(c=>s.jsxs("button",{type:"button",onClick:()=>O(c.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(J,{icon:c.icon,name:c.title,size:"xs"}),s.jsx("span",{className:"text-sm truncate",children:c.title})]},c.id))]}),b=g.length>0&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground px-1",children:"Custom agents"}),g.map(c=>s.jsxs("button",{type:"button",onClick:()=>O(c.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(J,{icon:c.icon,name:c.title,size:"xs",fallbackIcon:s.jsx(ae,{size:14})}),s.jsx("span",{className:"text-sm truncate",children:c.title})]},c.id))]}),e[2]=u,e[3]=l,e[4]=a,e[5]=n,e[6]=o,e[7]=i,e[8]=m,e[9]=g,e[10]=f,e[11]=x,e[12]=z,e[13]=p,e[14]=b,e[15]=D,e[16]=P,e[17]=N,e[18]=w,e[19]=y}else i=e[7],m=e[8],g=e[9],f=e[10],x=e[11],z=e[12],p=e[13],b=e[14],D=e[15],P=e[16],N=e[17],w=e[18],y=e[19];let _;e[27]!==g||e[28]!==f.length||e[29]!==n?(_=f.length===0&&g.length===0&&s.jsx("div",{className:"text-xs text-muted-foreground text-center py-6",children:n?"No agents found":"All agents are already added"}),e[27]=g,e[28]=f.length,e[29]=n,e[30]=_):_=e[30];let h;e[31]!==_||e[32]!==z||e[33]!==p||e[34]!==b?(h=s.jsxs("div",{className:z,children:[p,b,_]}),e[31]=_,e[32]=z,e[33]=p,e[34]=b,e[35]=h):h=e[35];let S;e[36]!==i||e[37]!==h||e[38]!==D||e[39]!==P||e[40]!==N?(S=s.jsxs(i,{className:D,align:P,children:[N,h]}),e[36]=i,e[37]=h,e[38]=D,e[39]=P,e[40]=N,e[41]=S):S=e[41];let I;return e[42]!==m||e[43]!==x||e[44]!==S||e[45]!==w||e[46]!==y?(I=s.jsxs(m,{open:w,onOpenChange:y,children:[x,S]}),e[42]=m,e[43]=x,e[44]=S,e[45]=w,e[46]=y,e[47]=I):I=e[47],I}function Ze(){const t=L.c(61),e=Ke(),r=le(),l=Ue();let a;t[0]!==e?.ids?(a=e?.ids??[...oe],t[0]=e?.ids,t[1]=a):a=t[1];const d=a,[n,j]=H.useState(d);let u;t[2]!==n||t[3]!==d?(u=n.length!==d.length||n.some((E,T)=>E!==d[T]),t[2]=n,t[3]=d,t[4]=u):u=t[4];const v=u;let o;t[5]===Symbol.for("react.memo_cache_sentinel")?(o={activationConstraint:{distance:5}},t[5]=o):o=t[5];let i;t[6]===Symbol.for("react.memo_cache_sentinel")?(i={coordinateGetter:Ee},t[6]=i):i=t[6];const m=Ce(ne(ke,o),ne(Ae,i));let g;t[7]!==n?(g=E=>{const{active:T,over:R}=E;if(!R||T.id===R.id)return;const F=n.indexOf(T.id),U=n.indexOf(R.id);F===-1||U===-1||j(Oe([...n],F,U))},t[7]=n,t[8]=g):g=t[8];const f=g;let x;t[9]!==n?(x=E=>{n.includes(E)||j([...n,E])},t[9]=n,t[10]=x):x=t[10];const z=x;let p;t[11]!==n?(p=E=>{j(n.filter(T=>T!==E))},t[11]=n,t[12]=p):p=t[12];const b=p;let D;t[13]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{j([...oe])},t[13]=D):D=t[13];const P=D;let N;t[14]!==n||t[15]!==l?(N=()=>{l.mutate({ids:n},{onSuccess:()=>{Y("default_home_agents_updated",{count:n.length,template_count:n.filter(tt).length}),V.success("Default home agents updated")},onError:et})},t[14]=n,t[15]=l,t[16]=N):N=t[16];const w=N;let y,_,h,S,I,A,C;if(t[17]!==r||t[18]!==n||t[19]!==f||t[20]!==b||t[21]!==m||t[22]!==l.isPending){let E;t[30]!==r?(E=F=>Ye(F,ee,r),t[30]=r,t[31]=E):E=t[31];const T=n.map(E);h=Math.max(0,n.length-ie),_=X,I="Default home agents";let R;t[32]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(pe,{size:14}),t[32]=R):R=t[32],t[33]!==l.isPending?(A=s.jsxs(G,{type:"button",variant:"ghost",size:"sm",onClick:P,disabled:l.isPending,children:[R,"Reset defaults"]}),t[33]=l.isPending,t[34]=A):A=t[34],y=Z,C="px-5 py-5 flex flex-col gap-3",S=T.length===0?s.jsx("div",{className:"rounded-lg border border-dashed border-border p-6 text-center text-xs text-muted-foreground",children:'No agents selected. The home view will only show "Create agent".'}):s.jsx(we,{sensors:m,collisionDetection:_e,onDragEnd:f,children:s.jsx(ze,{items:n,strategy:De,children:s.jsx("div",{className:"flex flex-col gap-1.5",children:T.map((F,U)=>s.jsxs("div",{className:"flex flex-col gap-1.5",children:[U===ie&&s.jsxs("div",{className:"flex items-center gap-2 px-1 py-1 text-xs text-muted-foreground",children:[s.jsx("div",{className:"flex-1 h-px bg-border"}),s.jsx("span",{children:"Below this line is hidden on the home view"}),s.jsx("div",{className:"flex-1 h-px bg-border"})]}),s.jsx(Je,{agent:F,onRemove:()=>b(F.id)})]},F.id))})})}),t[17]=r,t[18]=n,t[19]=f,t[20]=b,t[21]=m,t[22]=l.isPending,t[23]=y,t[24]=_,t[25]=h,t[26]=S,t[27]=I,t[28]=A,t[29]=C}else y=t[23],_=t[24],h=t[25],S=t[26],I=t[27],A=t[28],C=t[29];let k;t[35]!==n||t[36]!==z?(k=s.jsx(Xe,{selectedIds:n,onAdd:z}),t[35]=n,t[36]=z,t[37]=k):k=t[37];let O;t[38]!==h?(O=h>0&&s.jsxs("span",{className:"text-xs text-muted-foreground",children:[h," agent",h===1?"":"s"," won't fit on the home view"]}),t[38]=h,t[39]=O):O=t[39];let c;t[40]!==k||t[41]!==O?(c=s.jsxs("div",{className:"flex items-center justify-between",children:[k,O]}),t[40]=k,t[41]=O,t[42]=c):c=t[42];let $;t[43]!==S||t[44]!==c||t[45]!==C?($=s.jsxs("div",{className:C,children:[S,c]}),t[43]=S,t[44]=c,t[45]=C,t[46]=$):$=t[46];let M;t[47]!==w||t[48]!==d||t[49]!==v||t[50]!==l.isPending?(M=v&&s.jsxs(ye,{children:[s.jsx(G,{type:"button",variant:"outline",onClick:()=>j(d),disabled:l.isPending,children:"Cancel"}),s.jsx(G,{type:"button",onClick:w,disabled:l.isPending,children:l.isPending?"Saving…":"Save"})]}),t[47]=w,t[48]=d,t[49]=v,t[50]=l.isPending,t[51]=M):M=t[51];let B;t[52]!==y||t[53]!==$||t[54]!==M?(B=s.jsxs(y,{children:[$,M]}),t[52]=y,t[53]=$,t[54]=M,t[55]=B):B=t[55];let K;return t[56]!==_||t[57]!==I||t[58]!==A||t[59]!==B?(K=s.jsx(_,{title:I,actions:A,children:B}),t[56]=_,t[57]=I,t[58]=A,t[59]=B,t[60]=K):K=t[60],K}function et(t){V.error(t instanceof Error?t.message:"Failed to update default home agents")}function tt(t){return ee.some(e=>e.id===t)}function st(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(X,{title:"Default home agents",children:s.jsx(Z,{children:s.jsx("div",{className:"px-5 py-5 flex flex-col gap-2",children:Array.from({length:4}).map(nt)})})}),t[0]=e):e=t[0],e}function nt(t,e){return s.jsx(Me,{className:"h-12 w-full rounded-lg"},e)}function ot(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(H.Suspense,{fallback:s.jsx(st,{}),children:s.jsx(Ze,{})}),t[0]=e):e=t[0],e}function it(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(q,{children:s.jsx(q.Content,{children:s.jsx(q.Body,{children:s.jsxs(Se,{children:[s.jsx(q.Title,{children:"Organization"}),s.jsx(Qe,{}),s.jsx(Ne,{}),s.jsx(ot,{})]})})})}),t[0]=e):e=t[0],e}function ns(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(it,{}),t[0]=e):e=t[0],e}export{ns as default};
@@ -1,4 +1,4 @@
1
- import{e as ae,r as R,f as cn,s as lt,j as s,B as ne,x as qe,c as le,ba as Rn,n as Ys,K as At,E as os,d as zs,t as Bt}from"./index-BjqwKAPh.js";import{S as Bs}from"./search-input-CdGp9qCd.js";import{r as is,c as ls,d as cs,e as ds,P as Ue}from"./index-CkXbIQAg.js";import{E as dn}from"./empty-state-DDT6Axd2.js";import{B as Ke}from"./badge-COxphYel.js";import{b as ct,P as dt,a as ut}from"./popover-Zakke__8.js";import{T as Mt,a as kt,b as Ct}from"./tooltip-D_AU3yF1.js";import{i as Ht}from"./Check-BStFjKto.js";import{e as un,c as _t,n as Wn}from"./XCircle-D9VV2CKm.js";import{a as Hs}from"./SearchMd-BHubyM0S.js";import{i as qs}from"./Play-QsP1MGXe.js";import{X as Vs,Y as Us,x as Ks,W as Gs}from"./agent-icon-s17W0wUB.js";import{M as An}from"./monaco-editor-UyxFxpQH.js";import{u as Qs}from"./use-members-j0TSecaQ.js";import{u as $n}from"./use-connection-DPW4E_0G.js";import{S as mn,u as fn,i as Js,g as Xs,d as Zs}from"./constants-BKat4sJw.js";import{b as ea}from"./use-virtual-mcp-DER1r6QO.js";import{n as Ge}from"./Container-WBb7qbdD.js";import{c as ta}from"./XClose-C21czImH.js";import{s as na}from"./Plus-QZEpDFDV.js";import{s as sa}from"./Trash01-DhkmMJFO.js";import{I as pt}from"./input-BY95D9hS.js";import{C as Yn}from"./checkbox-DjVRr70r.js";import{t as gt}from"./ChevronDown-CJ0icK2r.js";import{d as aa,C as ra,b as zn,e as oa,a as ia,f as la}from"./command-DPlcxMzI.js";import{a as Pt,b as Tt,c as Ot,d as Re,S as Ft}from"./select-CR2tN9TX.js";import{S as ca}from"./scroll-area-DkrmJo9D.js";import{n as da}from"./ZapSquare-OxHp4t0m.js";import{i as ua}from"./ChevronRight-Dw3Db6I0.js";import{T as ma}from"./textarea-fydFuW_3.js";import{C as us}from"./collection-tabs-BJ2mAaff.js";import{S as fa}from"./switch-zLHY6ITD.js";import{L as ha}from"./label-Z9ad9sg6.js";import{I as ze}from"./integration-icon-BTq6hO7n.js";import{A as $t}from"./avatar-CSILDiJX.js";import{C as ms}from"./card-CBJhlNRB.js";import{K as st}from"./monitoring-stats-row-DdON8HAn.js";import{c as fs}from"./use-mcp-tools-iAx7skPl.js";import{g as xa}from"./connection-slug-eyAPH6o3.js";import{u as hs}from"./useSuspenseInfiniteQuery-SvwkjZhj.js";import{T as ke,a as mt,b as hn,c as xn,d as pn,e as ce}from"./table-CegXcKEa.js";import{n as xs}from"./ChevronUp-BDsNPBis.js";import{u as gn}from"./use-infinite-scroll-T0hVA3O9.js";import{u as pa}from"./useInfiniteQuery-BjzmzsUJ.js";import{w as ga,x as va}from"./pair-DxZ7l3-Z.js";import{S as Lt}from"./task-status-0vcjP9bK.js";import"./X-C_O1kj8t.js";import"./AlertCircle-Cxcba8DN.js";import"./Tool01-BPmEF3oC.js";import"./RefreshCcw01-DKtPikGx.js";import"./ArrowNarrowLeft-CtUMVsB_.js";import"./ArrowUpRight-ZaII7u8u.js";import"./Users03-DDHNU2o0.js";import"./CheckCircle-CkSmS6Cg.js";import"./DotsVertical-BPk38qYQ.js";import"./Star01-DduN7cUl.js";import"./Palette-DfzN4-9K.js";import"./LinkExternal01-6x3Iy4Gd.js";import"./Lock01-DA0MuRwj.js";import"./Sun-k7d5io6k.js";import"./Settings02-DpkRLLNd.js";import"./Shield01-BvsHGINb.js";import"./User01-76gT3tOW.js";import"./Zap-TR29R2LK.js";import"./index-DO6HBQ4K.js";import"./use-org-auth-client-Csj669Fw.js";import"./use-collections-Gut3G1oa.js";import"./index-Baly1FX_.js";import"./index-Dt0vRnUx.js";import"./infiniteQueryObserver-BOOXGQo2.js";import"./use-copy-B4TaRnHv.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./dialog-DxHqBK-g.js";import"./content-blocks-o63cs2vh.js";import"./types-Cnb1YG8h.js";import"./chat-context-De5Jlj4X.js";import"./use-ai-providers-BJDLmjji.js";import"./use-decopilot-events-Cbmf5tlg.js";import"./create-sse-subscription-CxkOgzKf.js";import"./use-tasks-C2Vyiupf.js";import"./use-organization-settings-sGFYoeez.js";import"./shell-layout-CimuPmyV.js";import"./required-auth-layout-BxrX3bDQ.js";import"./use-org-sso-Cm8qhi19.js";const tn={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function Qe(t){return t.filter(e=>e.key.trim()).map(e=>{const n=encodeURIComponent(e.key.trim()),a=encodeURIComponent(e.value||"");return`${n}:${e.operator}:${a}`}).join(",")}function ba(t){return t?t.split(",").map(e=>{const[n,a,...r]=e.split(":");return{key:decodeURIComponent(n||""),operator:a||"eq",value:decodeURIComponent(r.join(":")||"")}}):[]}function St(t){return t.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
1
+ import{e as ae,r as R,f as cn,s as lt,j as s,B as ne,x as qe,c as le,ba as Rn,n as Ys,K as At,E as os,d as zs,t as Bt}from"./index-n0iHPcte.js";import{S as Bs}from"./search-input-BUN7olRm.js";import{r as is,c as ls,d as cs,e as ds,P as Ue}from"./index-CVzq_PSm.js";import{E as dn}from"./empty-state-DnjUFLB3.js";import{B as Ke}from"./badge-YKYMjnfu.js";import{b as ct,P as dt,a as ut}from"./popover-BDSYEq1Z.js";import{T as Mt,a as kt,b as Ct}from"./tooltip-DK9ITTps.js";import{i as Ht}from"./Check-4wEPFmVT.js";import{e as un,c as _t,n as Wn}from"./XCircle-DTJod2tn.js";import{a as Hs}from"./SearchMd-JVaJZdXg.js";import{i as qs}from"./Play-85A9faRd.js";import{X as Vs,Y as Us,x as Ks,W as Gs}from"./agent-icon-D-W_-Msq.js";import{M as An}from"./monaco-editor-DqaoMZN_.js";import{u as Qs}from"./use-members-Dh6NCni1.js";import{u as $n}from"./use-connection-BA7MX_A_.js";import{S as mn,u as fn,i as Js,g as Xs,d as Zs}from"./constants-DsSHL62C.js";import{b as ea}from"./use-virtual-mcp-w_wFYi9Y.js";import{n as Ge}from"./Container-C9S2fJrQ.js";import{c as ta}from"./XClose-0biyZ-nq.js";import{s as na}from"./Plus-BxG8Erza.js";import{s as sa}from"./Trash01-CdymalYb.js";import{I as pt}from"./input-DEYTwRzn.js";import{C as Yn}from"./checkbox-BFMSekYh.js";import{t as gt}from"./ChevronDown-CLwgC4lc.js";import{d as aa,C as ra,b as zn,e as oa,a as ia,f as la}from"./command-DEZQ8Srq.js";import{a as Pt,b as Tt,c as Ot,d as Re,S as Ft}from"./select-CDN58G81.js";import{S as ca}from"./scroll-area-1CfGMim0.js";import{n as da}from"./ZapSquare-DtdkchqU.js";import{i as ua}from"./ChevronRight-DW27S4dx.js";import{T as ma}from"./textarea-BJm0Tf5N.js";import{C as us}from"./collection-tabs-D653lS2B.js";import{S as fa}from"./switch-DIHVY0RD.js";import{L as ha}from"./label-DWRjHkWy.js";import{I as ze}from"./integration-icon-Bkie-XyL.js";import{A as $t}from"./avatar-CtlfIArZ.js";import{C as ms}from"./card-uZ87GViI.js";import{K as st}from"./monitoring-stats-row-DhIBV8mS.js";import{c as fs}from"./use-mcp-tools-D_JiTODV.js";import{g as xa}from"./connection-slug-eyAPH6o3.js";import{u as hs}from"./useSuspenseInfiniteQuery-hHdMeBLO.js";import{T as ke,a as mt,b as hn,c as xn,d as pn,e as ce}from"./table-pLgWKqqj.js";import{n as xs}from"./ChevronUp-DAW3-3dA.js";import{u as gn}from"./use-infinite-scroll-CM8Ra6DF.js";import{u as pa}from"./useInfiniteQuery-tCVYDURJ.js";import{w as ga,x as va}from"./pair-tqYVnZzb.js";import{S as Lt}from"./task-status-zPChwtIb.js";import"./X-DzLPqoAC.js";import"./AlertCircle-CFABZy3o.js";import"./Tool01-Bhj2T1uN.js";import"./RefreshCcw01-DdgK7Krp.js";import"./ArrowNarrowLeft-qjcSXUou.js";import"./ArrowUpRight-havdJdQt.js";import"./Users03-DG3Gfjoh.js";import"./CheckCircle-D7ReuLNV.js";import"./DotsVertical-BReL32xd.js";import"./Star01-DEmigL_c.js";import"./Palette-Dtg_tDlg.js";import"./LinkExternal01-0Xs4UV_i.js";import"./Lock01-BjKqD6QN.js";import"./Sun-TDfj1GPd.js";import"./Settings02-BZivkDIL.js";import"./Shield01-CAl07SGJ.js";import"./User01-BZ9BWkFc.js";import"./Zap-aKe8CYDP.js";import"./index-CneSjNEN.js";import"./use-org-auth-client-D8ifGvzT.js";import"./use-collections-DEtL7TsG.js";import"./index-__EZcmD7.js";import"./index-H-xuVWHv.js";import"./infiniteQueryObserver-CWqfKiPC.js";import"./use-copy-B_9_NtCX.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./dialog-B4KlHjek.js";import"./content-blocks-o63cs2vh.js";import"./types-CHJA9iY7.js";import"./chat-context-BFxTlymH.js";import"./use-ai-providers-Wa05FQa-.js";import"./use-decopilot-events-CAAYd06u.js";import"./create-sse-subscription-CxkOgzKf.js";import"./use-tasks-DZC5fx2d.js";import"./use-organization-settings-ZtHNr_4_.js";import"./shell-layout-BAgHU931.js";import"./required-auth-layout-C2TKIvqH.js";import"./use-org-sso-IjJZMJF0.js";const tn={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function Qe(t){return t.filter(e=>e.key.trim()).map(e=>{const n=encodeURIComponent(e.key.trim()),a=encodeURIComponent(e.value||"");return`${n}:${e.operator}:${a}`}).join(",")}function ba(t){return t?t.split(",").map(e=>{const[n,a,...r]=e.split(":");return{key:decodeURIComponent(n||""),operator:a||"eq",value:decodeURIComponent(r.join(":")||"")}}):[]}function St(t){return t.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
2
2
  `)}function Bn(t){return t.trim()?t.split(`
3
3
  `).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[n,...a]=e.split("=");return{key:n||"",operator:"eq",value:a.join("=")}}if(e.includes("~")){const[n,...a]=e.split("~");return{key:n||"",operator:"contains",value:a.join("~")}}if(e.includes("@")){const[n,...a]=e.split("@");return{key:n||"",operator:"in",value:a.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function ya(t){const e={},n={},a=[],r={};for(const o of t)if(o.key.trim())switch(o.operator){case"eq":o.value&&(e[o.key]=o.value);break;case"contains":o.value&&(n[o.key]=`%${o.value}%`);break;case"exists":a.push(o.key);break;case"in":o.value&&(r[o.key]=o.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(n).length>0?n:void 0,propertyKeys:a.length>0?a:void 0,propertyInValues:Object.keys(r).length>0?r:void 0}}function Hn(t){if(!t)return{content:"null",isTruncated:!1,originalSize:4};if(typeof t._decocms_truncated=="string")return{content:t._decocms_truncated,isTruncated:!0,originalSize:t._decocms_truncated.length};const e=JSON.stringify(t,null,2),n=e.length;return n<=tn.maxJsonRenderSize?{content:e,isTruncated:!1,originalSize:n}:{content:e.slice(0,tn.maxJsonRenderSize)+`
4
4
 
@@ -1 +1 @@
1
- import{r as h}from"./index-BjqwKAPh.js";var w=(o,i,l,s,c,t,m,d)=>{let r=document.documentElement,u=["light","dark"];function n(e){(Array.isArray(o)?o:[o]).forEach(a=>{let p=a==="class",S=p&&t?c.map(f=>t[f]||f):c;p?(r.classList.remove(...S),r.classList.add(t&&t[e]?t[e]:e)):r.setAttribute(a,e)}),y(e)}function y(e){d&&u.includes(e)&&(r.style.colorScheme=e)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)n(s);else try{let e=localStorage.getItem(i)||l,a=m&&e==="system"?g():e;n(a)}catch{}};h.createContext(void 0);h.memo(({forcedTheme:o,storageKey:i,attribute:l,enableSystem:s,enableColorScheme:c,defaultTheme:t,value:m,themes:d,nonce:r,scriptProps:u})=>{let n=JSON.stringify([l,i,t,o,d,m,s,c]).slice(1,-1);return h.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?r:"",dangerouslySetInnerHTML:{__html:`(${w.toString()})(${n})`}})});
1
+ import{r as h}from"./index-n0iHPcte.js";var w=(o,i,l,s,c,t,m,d)=>{let r=document.documentElement,u=["light","dark"];function n(e){(Array.isArray(o)?o:[o]).forEach(a=>{let p=a==="class",S=p&&t?c.map(f=>t[f]||f):c;p?(r.classList.remove(...S),r.classList.add(t&&t[e]?t[e]:e)):r.setAttribute(a,e)}),y(e)}function y(e){d&&u.includes(e)&&(r.style.colorScheme=e)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)n(s);else try{let e=localStorage.getItem(i)||l,a=m&&e==="system"?g():e;n(a)}catch{}};h.createContext(void 0);h.memo(({forcedTheme:o,storageKey:i,attribute:l,enableSystem:s,enableColorScheme:c,defaultTheme:t,value:m,themes:d,nonce:r,scriptProps:u})=>{let n=JSON.stringify([l,i,t,o,d,m,s,c]).slice(1,-1);return h.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?r:"",dangerouslySetInnerHTML:{__html:`(${w.toString()})(${n})`}})});