decocms 2.300.0 → 2.300.2

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 (253) hide show
  1. package/dist/client/assets/{AlertCircle-DQvE1HHW.js → AlertCircle-CDtbI_oO.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-JeNHsl7t.js → ArrowNarrowLeft-CJ8McWmC.js} +1 -1
  3. package/dist/client/assets/{ArrowUpRight-DrX0ZBVK.js → ArrowUpRight-CfmSEQdr.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-jz1wj0OZ.js → CheckCircle-BfnVNP63.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-CJXiv6mb.js → ChevronDown-BKNJxAvQ.js} +1 -1
  6. package/dist/client/assets/{ChevronRight-jhe98Hpl.js → ChevronRight-DmLVJ7rn.js} +1 -1
  7. package/dist/client/assets/{ChevronUp--G-qrAEM.js → ChevronUp-CsX2yfUc.js} +1 -1
  8. package/dist/client/assets/{Container-LZZyJPZO.js → Container-DASuUdbK.js} +1 -1
  9. package/dist/client/assets/{DotsVertical-B-LaCx0W.js → DotsVertical-CiluvdTj.js} +1 -1
  10. package/dist/client/assets/{LinkExternal01-2sbW7UGS.js → LinkExternal01-CPmlMGsQ.js} +1 -1
  11. package/dist/client/assets/{Lock01-BOEORqQ0.js → Lock01-BjCX4hvk.js} +1 -1
  12. package/dist/client/assets/{Palette-CZdOy-tN.js → Palette-CmFr12m3.js} +1 -1
  13. package/dist/client/assets/{Play-CVmYi0Gz.js → Play-AcQdYeyW.js} +1 -1
  14. package/dist/client/assets/{Plus-0qTCNeQu.js → Plus-DkESyBkp.js} +1 -1
  15. package/dist/client/assets/{RefreshCcw01-CczH9hEb.js → RefreshCcw01-DLpzNYLg.js} +1 -1
  16. package/dist/client/assets/{SearchMd-D3ej9sdm.js → SearchMd-RHgmu5nb.js} +1 -1
  17. package/dist/client/assets/{Settings02-DSMqESXP.js → Settings02-BgsL1r4k.js} +1 -1
  18. package/dist/client/assets/{Shield01-Dk5a3EIz.js → Shield01-BndBIezR.js} +1 -1
  19. package/dist/client/assets/{Star01-BRqpvEVh.js → Star01-CRQ6Bc0M.js} +1 -1
  20. package/dist/client/assets/{Sun-D-zn2wQr.js → Sun-DKXWmMuG.js} +1 -1
  21. package/dist/client/assets/{Tool01-ta8c5owo.js → Tool01-CRyHj4QJ.js} +1 -1
  22. package/dist/client/assets/{Trash01-piYSxXuV.js → Trash01-CfK96-qY.js} +1 -1
  23. package/dist/client/assets/{User01-BRe74tu_.js → User01-KY-MO20F.js} +1 -1
  24. package/dist/client/assets/{Users03-BthJNdjb.js → Users03-BCFGwdah.js} +1 -1
  25. package/dist/client/assets/{X-Bs-K3rP3.js → X-ZLJ81KrS.js} +1 -1
  26. package/dist/client/assets/{XCircle-W80KsA2R.js → XCircle-B2dZZ7-3.js} +1 -1
  27. package/dist/client/assets/{XClose-BvTeI7_p.js → XClose-DXU_tOKb.js} +1 -1
  28. package/dist/client/assets/{Zap-CruZDu0W.js → Zap-25qc4enN.js} +1 -1
  29. package/dist/client/assets/{ZapSquare-oPqMGrmK.js → ZapSquare-D6uI2CIK.js} +1 -1
  30. package/dist/client/assets/{accordion-CbzOgqka.js → accordion-D3bxaM5e.js} +1 -1
  31. package/dist/client/assets/{agent-icon-a5rgdmvn.js → agent-icon-Y41Xl4RB.js} +1 -1
  32. package/dist/client/assets/{agents-list-DUOWHygM.js → agents-list-mS9MVQZN.js} +1 -1
  33. package/dist/client/assets/ai-providers-BRoGM2rY.js +1 -0
  34. package/dist/client/assets/ai-providers-logos-DD3qZ33J.js +1 -0
  35. package/dist/client/assets/{alert-dialog-DpjW0duE.js → alert-dialog-DnoDZh7l.js} +1 -1
  36. package/dist/client/assets/{auth-catchall-DdrEC2nk.js → auth-catchall-BoFlqYg1.js} +1 -1
  37. package/dist/client/assets/{automation-list-row-DmDAOiMK.js → automation-list-row-CAHW7UMQ.js} +1 -1
  38. package/dist/client/assets/{automations-BGpDui88.js → automations-PZEFUnMk.js} +1 -1
  39. package/dist/client/assets/{avatar-C9H5J0ZH.js → avatar-C1td1Be6.js} +1 -1
  40. package/dist/client/assets/{badge-DM1yKdHA.js → badge-BQ5WsTn4.js} +1 -1
  41. package/dist/client/assets/{brand-context-CHgKeNYL.js → brand-context-DIIOMD2x.js} +1 -1
  42. package/dist/client/assets/{card-D3EHlDqN.js → card-DQYOkC6d.js} +1 -1
  43. package/dist/client/assets/{chat-context-BTwAu2wE.js → chat-context-hgW5gAmm.js} +1 -1
  44. package/dist/client/assets/{checkbox-BfEy2ev6.js → checkbox-DkmOdGV4.js} +1 -1
  45. package/dist/client/assets/{collection-detail-CwiJKTp0.js → collection-detail-tXsv3iGO.js} +1 -1
  46. package/dist/client/assets/{collection-display-button-I1MRNJca.js → collection-display-button-8PlYmXiO.js} +1 -1
  47. package/dist/client/assets/{collection-search-BDlHgig4.js → collection-search-B7ehvlGW.js} +1 -1
  48. package/dist/client/assets/{collection-search-DTXYBhEG.js → collection-search-CqdVjZKz.js} +1 -1
  49. package/dist/client/assets/{collection-table-wrapper-BZgayY2v.js → collection-table-wrapper-DtBSTmHD.js} +1 -1
  50. package/dist/client/assets/{collection-tabs-ZB2vm_Ts.js → collection-tabs-BymkuH-J.js} +1 -1
  51. package/dist/client/assets/{collections-B4NDDkQp.js → collections-DusXIGhy.js} +1 -1
  52. package/dist/client/assets/{command-C8axDPx1.js → command-BCmTpu4J.js} +1 -1
  53. package/dist/client/assets/{connection-card-B8zimY_1.js → connection-card-Bfng1y5O.js} +1 -1
  54. package/dist/client/assets/{connection-detail-CteDwS0C.js → connection-detail-BvkQKjE1.js} +1 -1
  55. package/dist/client/assets/{connection-form-helpers-DW_KgaUQ.js → connection-form-helpers-DmVfKyR2.js} +1 -1
  56. package/dist/client/assets/{connections-DDRTvEHs.js → connections-BOpJFAVW.js} +1 -1
  57. package/dist/client/assets/{constants-6-xiUPcQ.js → constants-Da2DvZbd.js} +1 -1
  58. package/dist/client/assets/{constants-o7_eEaEl.js → constants-Dm-yPW31.js} +1 -1
  59. package/dist/client/assets/{dialog-Bt7s8NCP.js → dialog-D0LCITx0.js} +1 -1
  60. package/dist/client/assets/{domain-settings-2mBA4m9S.js → domain-settings-D2GqzT5W.js} +1 -1
  61. package/dist/client/assets/{drawer-a25q5Lla.js → drawer-DWuqMoty.js} +1 -1
  62. package/dist/client/assets/{dropdown-menu-BNdhp1TS.js → dropdown-menu-BooeaeZW.js} +1 -1
  63. package/dist/client/assets/{dynamic-plugin-layout-COSx8up3.js → dynamic-plugin-layout-BBI0fzcH.js} +1 -1
  64. package/dist/client/assets/{empty-state-DfhDT_rL.js → empty-state-DtXUXgFg.js} +1 -1
  65. package/dist/client/assets/{empty-state-TuyNETUf.js → empty-state-V_MWZYVh.js} +1 -1
  66. package/dist/client/assets/{extract-connection-data-D-LoPsgm.js → extract-connection-data-JkyrF-5k.js} +1 -1
  67. package/dist/client/assets/{features-Dlqphz2t.js → features-BRMl1rr6.js} +1 -1
  68. package/dist/client/assets/{form-DdyedIOG.js → form-3xE0OqGj.js} +1 -1
  69. package/dist/client/assets/{general-B4yYUcgX.js → general-CkXiaAh9.js} +1 -1
  70. package/dist/client/assets/{index-CyHkfxs2.js → index-BOmAbn3-.js} +2 -2
  71. package/dist/client/assets/{index-kpfWZVBp.js → index-BSli4TIm.js} +1 -1
  72. package/dist/client/assets/{index-DiI3qNgk.js → index-BUabcSp1.js} +1 -1
  73. package/dist/client/assets/{index-DK4Y3HO1.js → index-BXOHXvkd.js} +1 -1
  74. package/dist/client/assets/{index-EieaBqsE.js → index-Bh9ip1xM.js} +1 -1
  75. package/dist/client/assets/{index-Cpu398f4.js → index-By-OUdid.js} +1 -1
  76. package/dist/client/assets/{index-0ONdtZvR.js → index-C2XzR7MH.js} +1 -1
  77. package/dist/client/assets/index-CUHQFzXU.js +1 -0
  78. package/dist/client/assets/{index-DrWfdeB3.js → index-CdUEwHcT.js} +1 -1
  79. package/dist/client/assets/{index-CFysdS9W.js → index-Cm97pdLv.js} +1 -1
  80. package/dist/client/assets/{index-CPCIVubP.js → index-D1vwSlce.js} +1 -1
  81. package/dist/client/assets/{index-C656JC4f.js → index-D2cvrx8-.js} +1 -1
  82. package/dist/client/assets/{index-DC8ny_LW.js → index-Db1yn84L.js} +3 -3
  83. package/dist/client/assets/{index-CQbllXV7.js → index-DcLrVfh1.js} +1 -1
  84. package/dist/client/assets/{index-prfGmBrm.js → index-DqWkjFjy.js} +1 -1
  85. package/dist/client/assets/{index-BLw8IR3q.js → index-oZ72eHkF.js} +1 -1
  86. package/dist/client/assets/{infiniteQueryObserver-WKNIeKEe.js → infiniteQueryObserver-ruN3KSWZ.js} +1 -1
  87. package/dist/client/assets/{input-DocW6-0a.js → input-DFMPKZJm.js} +1 -1
  88. package/dist/client/assets/{integration-icon-DtlHVjfw.js → integration-icon-Bu4bZk46.js} +1 -1
  89. package/dist/client/assets/{label-DbfzJMol.js → label-DZwWOqq7.js} +1 -1
  90. package/dist/client/assets/{layout-Csh5DA6j.js → layout-DktxHUWV.js} +1 -1
  91. package/dist/client/assets/{lean-canvas-recruit-modal-DUB9h6gA.js → lean-canvas-recruit-modal-KLORFsWq.js} +1 -1
  92. package/dist/client/assets/{login-D1QEp6zv.js → login-Qjtx70Ay.js} +1 -1
  93. package/dist/client/assets/{members-CW5_GrD2.js → members-CB5ygrXY.js} +1 -1
  94. package/dist/client/assets/{monaco-editor-CteNuuJr.js → monaco-editor-BMXf_ICC.js} +1 -1
  95. package/dist/client/assets/{monitoring-stats-row-C3CIix3j.js → monitoring-stats-row-hB6Djn4O.js} +1 -1
  96. package/dist/client/assets/{oauth-callback-DvWEpCtv.js → oauth-callback-Cgk_ji97.js} +1 -1
  97. package/dist/client/assets/{oauth-callback-ai-provider-D6aB3jn_.js → oauth-callback-ai-provider-BWQb53Zq.js} +1 -1
  98. package/dist/client/assets/{onboarding-CSq15NJd.js → onboarding-BJq0uANa.js} +1 -1
  99. package/dist/client/assets/{org-layout-BcG-IuRM.js → org-layout-BOmngSEh.js} +1 -1
  100. package/dist/client/assets/{org-plugin-layout-R-CfCKdC.js → org-plugin-layout-DYC_-fTx.js} +1 -1
  101. package/dist/client/assets/{pair-4EJpDs9f.js → pair-Ds1EbiW2.js} +1 -1
  102. package/dist/client/assets/{plugin-empty-state-C1qJ21wH.js → plugin-empty-state-D34qTA46.js} +1 -1
  103. package/dist/client/assets/{plugin-header-CnnrJKt7.js → plugin-header-D19z2yPe.js} +1 -1
  104. package/dist/client/assets/{plugin-layout-OKTV_231.js → plugin-layout-DBmHNWl4.js} +1 -1
  105. package/dist/client/assets/{popover-BD8OsO_3.js → popover-Cvs9u_0D.js} +1 -1
  106. package/dist/client/assets/{profile-CPpu_rOC.js → profile-_mVuN_Pw.js} +1 -1
  107. package/dist/client/assets/{project-app-view-gL9oMI0P.js → project-app-view-BWTIFTZt.js} +1 -1
  108. package/dist/client/assets/registry-BYjdxPj0.js +2 -0
  109. package/dist/client/assets/{registry-layout-CNGnjhXy.js → registry-layout-BiMLaZ5I.js} +1 -1
  110. package/dist/client/assets/{required-auth-layout-crEy15On.js → required-auth-layout-CGJ5rk5i.js} +1 -1
  111. package/dist/client/assets/{reset-password-kcnAbcv3.js → reset-password-CaWZrhgz.js} +1 -1
  112. package/dist/client/assets/{roles-DYIwGuDN.js → roles-ychtuZ_l.js} +1 -1
  113. package/dist/client/assets/{scroll-area-DuFte1VC.js → scroll-area-DaS5ALMq.js} +1 -1
  114. package/dist/client/assets/{search-input-DQy0Ln81.js → search-input-C4vXNPxO.js} +1 -1
  115. package/dist/client/assets/{select-Ceunqeln.js → select-Czs_bVht.js} +1 -1
  116. package/dist/client/assets/{select-model-UWZWvXzk.js → select-model-BAqBST4u.js} +1 -1
  117. package/dist/client/assets/{settings-layout-DMvCQRt1.js → settings-layout-CKeL2zhm.js} +1 -1
  118. package/dist/client/assets/{settings-section-iYYh-GAG.js → settings-section-D1IZyeMZ.js} +1 -1
  119. package/dist/client/assets/{shell-layout-B8B_ABl6.js → shell-layout-C3cZnoYI.js} +1 -1
  120. package/dist/client/assets/{skeleton-D9tsK-SD.js → skeleton-DFL6A56z.js} +1 -1
  121. package/dist/client/assets/{sso-D0aPF4WO.js → sso-C4f0AfMQ.js} +1 -1
  122. package/dist/client/assets/{store-dscxfYPH.js → store-CEIp74Dt.js} +1 -1
  123. package/dist/client/assets/store-registry-B0W6zcCj.js +2 -0
  124. package/dist/client/assets/{switch-PJFUwNv2.js → switch-CgZ8SLcM.js} +1 -1
  125. package/dist/client/assets/{table-B0qcR2jp.js → table-bZ3KC8o2.js} +1 -1
  126. package/dist/client/assets/{tabs-CbvFgdFf.js → tabs-CQg6na0A.js} +1 -1
  127. package/dist/client/assets/{task-status-C0VnLSBE.js → task-status-ZLGfD6LC.js} +1 -1
  128. package/dist/client/assets/{textarea-BBy60ci1.js → textarea-dZeCqaKZ.js} +1 -1
  129. package/dist/client/assets/{toggle-group-wE6dZdNy.js → toggle-group-BWbe6Sle.js} +1 -1
  130. package/dist/client/assets/{tools-list-B1mXoVnY.js → tools-list-Cs00fcMQ.js} +1 -1
  131. package/dist/client/assets/{tooltip-MEij__fd.js → tooltip-f4eQJmkn.js} +1 -1
  132. package/dist/client/assets/{types-DfUe_JMo.js → types-BxKF_I-u.js} +1 -1
  133. package/dist/client/assets/{use-ai-providers-BsFsk2om.js → use-ai-providers-CTaSMN44.js} +1 -1
  134. package/dist/client/assets/{use-collections-CuFil9_H.js → use-collections-ciAA_3Td.js} +1 -1
  135. package/dist/client/assets/{use-connection-CyKUB7va.js → use-connection-DcySEqVV.js} +1 -1
  136. package/dist/client/assets/{use-copy-L-Votg83.js → use-copy-VDNca3ax.js} +1 -1
  137. package/dist/client/assets/{use-create-virtual-mcp-DCZ_Q4yV.js → use-create-virtual-mcp-BosIHDl_.js} +1 -1
  138. package/dist/client/assets/{use-decopilot-events-BU0YCIkb.js → use-decopilot-events-CJG2rWbg.js} +1 -1
  139. package/dist/client/assets/{use-delete-connection-CH1yR3V8.js → use-delete-connection-BHdNUeNC.js} +1 -1
  140. package/dist/client/assets/{use-infinite-scroll-CQf3beQh.js → use-infinite-scroll-Cd7090oj.js} +1 -1
  141. package/dist/client/assets/{use-list-state-BO6QgJwM.js → use-list-state-B_mnqmDh.js} +1 -1
  142. package/dist/client/assets/{use-mcp-tools-UR7Tvr-a.js → use-mcp-tools-C9cj3BH6.js} +1 -1
  143. package/dist/client/assets/{use-members-0EtHtToT.js → use-members-YqP0IEDf.js} +1 -1
  144. package/dist/client/assets/{use-navigate-to-agent-C4FkilnS.js → use-navigate-to-agent-KmcfdsLb.js} +1 -1
  145. package/dist/client/assets/{use-org-auth-client-DSFb3AOu.js → use-org-auth-client-DKAFGF5X.js} +1 -1
  146. package/dist/client/assets/{use-org-sso-uVWWV8lc.js → use-org-sso-BUVEFfyx.js} +1 -1
  147. package/dist/client/assets/{use-organization-roles-DBQSLgAo.js → use-organization-roles-BY88cyRn.js} +1 -1
  148. package/dist/client/assets/{use-organization-settings-D388Q9Bl.js → use-organization-settings-BrpxY44K.js} +1 -1
  149. package/dist/client/assets/{use-registry-connections-Cdqd9fMq.js → use-registry-connections-C5Res-NO.js} +1 -1
  150. package/dist/client/assets/{use-status-sounds-DcqY0aWN.js → use-status-sounds-DF_LdFlX.js} +1 -1
  151. package/dist/client/assets/{use-tasks-BJrgZKAK.js → use-tasks-DjQnA3sr.js} +1 -1
  152. package/dist/client/assets/{use-view-mode-DLgQEYRO.js → use-view-mode-pmOkpC-l.js} +1 -1
  153. package/dist/client/assets/{use-virtual-mcp-MAVDLFj3.js → use-virtual-mcp-D8YFOZwW.js} +1 -1
  154. package/dist/client/assets/useInfiniteQuery-z1Rh4SPR.js +1 -0
  155. package/dist/client/assets/useSuspenseInfiniteQuery-DmArxoRp.js +1 -0
  156. package/dist/client/assets/{user-DvRNamCQ.js → user-BG2r6Yob.js} +1 -1
  157. package/dist/client/assets/{view-mode-toggle-D8-KKhvu.js → view-mode-toggle-iIz_yTY4.js} +1 -1
  158. package/dist/client/assets/workflow-detail-hy-jKDKn.js +1 -0
  159. package/dist/client/assets/{workflow-C2dwTU43.js → workflow-w5_7cK4m.js} +1 -1
  160. package/dist/client/index.html +1 -1
  161. package/dist/server/cli.js +3 -3
  162. package/dist/server/node_modules/ansi-regex/index.d.ts +33 -0
  163. package/dist/server/node_modules/ansi-regex/index.js +14 -0
  164. package/dist/server/node_modules/ansi-regex/package.json +61 -0
  165. package/dist/server/node_modules/ansi-regex/readme.md +66 -0
  166. package/dist/server/node_modules/ansi-styles/index.d.ts +236 -0
  167. package/dist/server/node_modules/ansi-styles/index.js +223 -0
  168. package/dist/server/node_modules/ansi-styles/license +9 -0
  169. package/dist/server/node_modules/ansi-styles/package.json +54 -0
  170. package/dist/server/node_modules/ansi-styles/readme.md +173 -0
  171. package/dist/server/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  172. package/dist/server/node_modules/emoji-regex/README.md +107 -0
  173. package/dist/server/node_modules/emoji-regex/index.d.ts +3 -0
  174. package/dist/server/node_modules/emoji-regex/index.js +4 -0
  175. package/dist/server/node_modules/emoji-regex/index.mjs +4 -0
  176. package/dist/server/node_modules/emoji-regex/package.json +45 -0
  177. package/dist/server/node_modules/mimic-fn/index.d.ts +54 -0
  178. package/dist/server/node_modules/mimic-fn/index.js +13 -0
  179. package/dist/server/node_modules/mimic-fn/license +9 -0
  180. package/dist/server/node_modules/mimic-fn/package.json +42 -0
  181. package/dist/server/node_modules/mimic-fn/readme.md +69 -0
  182. package/dist/server/node_modules/onetime/index.d.ts +64 -0
  183. package/dist/server/node_modules/onetime/index.js +44 -0
  184. package/dist/server/node_modules/onetime/license +9 -0
  185. package/dist/server/node_modules/onetime/package.json +43 -0
  186. package/dist/server/node_modules/onetime/readme.md +94 -0
  187. package/dist/server/node_modules/pg-int8/LICENSE +13 -0
  188. package/dist/server/node_modules/pg-int8/README.md +16 -0
  189. package/dist/server/node_modules/pg-int8/index.js +100 -0
  190. package/dist/server/node_modules/pg-int8/package.json +24 -0
  191. package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
  192. package/dist/server/node_modules/postgres-array/index.js +97 -0
  193. package/dist/server/node_modules/{pg/LICENSE → postgres-array/license} +6 -6
  194. package/dist/server/node_modules/postgres-array/package.json +35 -0
  195. package/dist/server/node_modules/postgres-array/readme.md +43 -0
  196. package/dist/server/node_modules/postgres-bytea/index.js +33 -0
  197. package/dist/server/node_modules/postgres-bytea/license +21 -0
  198. package/dist/server/node_modules/postgres-bytea/package.json +34 -0
  199. package/dist/server/node_modules/postgres-bytea/readme.md +34 -0
  200. package/dist/server/node_modules/postgres-date/index.js +116 -0
  201. package/dist/server/node_modules/postgres-date/license +21 -0
  202. package/dist/server/node_modules/postgres-date/package.json +33 -0
  203. package/dist/server/node_modules/postgres-date/readme.md +49 -0
  204. package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
  205. package/dist/server/node_modules/postgres-interval/index.js +125 -0
  206. package/dist/server/node_modules/postgres-interval/license +21 -0
  207. package/dist/server/node_modules/postgres-interval/package.json +36 -0
  208. package/dist/server/node_modules/postgres-interval/readme.md +48 -0
  209. package/dist/server/node_modules/split2/LICENSE +13 -0
  210. package/dist/server/node_modules/split2/README.md +85 -0
  211. package/dist/server/node_modules/split2/bench.js +27 -0
  212. package/dist/server/node_modules/split2/index.js +141 -0
  213. package/dist/server/node_modules/split2/package.json +39 -0
  214. package/dist/server/node_modules/split2/test.js +409 -0
  215. package/dist/server/server.js +2 -2
  216. package/package.json +1 -1
  217. package/dist/client/assets/ai-providers-BrRsZwwm.js +0 -1
  218. package/dist/client/assets/ai-providers-logos-D6a8kmGH.js +0 -1
  219. package/dist/client/assets/index-6xFo1iCj.js +0 -1
  220. package/dist/client/assets/registry-BsoIBUPl.js +0 -2
  221. package/dist/client/assets/store-registry-D40XBFQ3.js +0 -2
  222. package/dist/client/assets/useInfiniteQuery-Cb2JkfVZ.js +0 -1
  223. package/dist/client/assets/useSuspenseInfiniteQuery-JMOXdk3c.js +0 -1
  224. package/dist/client/assets/workflow-detail-BcRuChZH.js +0 -1
  225. package/dist/server/node_modules/get-east-asian-width/index.d.ts +0 -60
  226. package/dist/server/node_modules/get-east-asian-width/index.js +0 -30
  227. package/dist/server/node_modules/get-east-asian-width/lookup-data.js +0 -18
  228. package/dist/server/node_modules/get-east-asian-width/lookup.js +0 -135
  229. package/dist/server/node_modules/get-east-asian-width/package.json +0 -71
  230. package/dist/server/node_modules/get-east-asian-width/readme.md +0 -65
  231. package/dist/server/node_modules/get-east-asian-width/utilities.js +0 -24
  232. package/dist/server/node_modules/pg/README.md +0 -95
  233. package/dist/server/node_modules/pg/esm/index.mjs +0 -20
  234. package/dist/server/node_modules/pg/lib/client.js +0 -743
  235. package/dist/server/node_modules/pg/lib/connection-parameters.js +0 -171
  236. package/dist/server/node_modules/pg/lib/connection.js +0 -221
  237. package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +0 -122
  238. package/dist/server/node_modules/pg/lib/crypto/sasl.js +0 -212
  239. package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +0 -43
  240. package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +0 -89
  241. package/dist/server/node_modules/pg/lib/crypto/utils.js +0 -9
  242. package/dist/server/node_modules/pg/lib/defaults.js +0 -91
  243. package/dist/server/node_modules/pg/lib/index.js +0 -73
  244. package/dist/server/node_modules/pg/lib/native/client.js +0 -323
  245. package/dist/server/node_modules/pg/lib/native/index.js +0 -2
  246. package/dist/server/node_modules/pg/lib/native/query.js +0 -165
  247. package/dist/server/node_modules/pg/lib/query.js +0 -252
  248. package/dist/server/node_modules/pg/lib/result.js +0 -109
  249. package/dist/server/node_modules/pg/lib/stream.js +0 -83
  250. package/dist/server/node_modules/pg/lib/type-overrides.js +0 -35
  251. package/dist/server/node_modules/pg/lib/utils.js +0 -217
  252. package/dist/server/node_modules/pg/package.json +0 -76
  253. /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-CyHkfxs2.js";import{P as x}from"./index-DK4Y3HO1.js";import{d as I}from"./use-organization-settings-D388Q9Bl.js";import{S as Q}from"./switch-PJFUwNv2.js";import{n as R}from"./Container-LZZyJPZO.js";import{b as w,S as z,a as F,d as M}from"./settings-section-iYYh-GAG.js";import"./tooltip-MEij__fd.js";import"./X-Bs-K3rP3.js";import"./constants-6-xiUPcQ.js";import"./card-D3EHlDqN.js";import"./ArrowUpRight-DrX0ZBVK.js";function N(){const e=b.c(17),{org:t,project:s}=k(),o=E();let u;e[0]!==s.enabledPlugins?(u=s.enabledPlugins??[],e[0]=s.enabledPlugins,e[1]=u):u=e[1];const c=u,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 d=new Set(c);r?d.add(n):d.delete(n),l.mutate({enabled_plugins:Array.from(d)},{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),d=C(n.id),h=c.includes(n.id);return i.jsx(w,{title:r?.label??n.id,description:d??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-BOmAbn3-.js";import{P as x}from"./index-BXOHXvkd.js";import{d as I}from"./use-organization-settings-BrpxY44K.js";import{S as Q}from"./switch-CgZ8SLcM.js";import{n as R}from"./Container-DASuUdbK.js";import{b as w,S as z,a as F,d as M}from"./settings-section-D1IZyeMZ.js";import"./tooltip-f4eQJmkn.js";import"./X-ZLJ81KrS.js";import"./constants-Da2DvZbd.js";import"./card-DQYOkC6d.js";import"./ArrowUpRight-CfmSEQdr.js";function N(){const e=b.c(17),{org:t,project:s}=k(),o=E();let u;e[0]!==s.enabledPlugins?(u=s.enabledPlugins??[],e[0]=s.enabledPlugins,e[1]=u):u=e[1];const c=u,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 d=new Set(c);r?d.add(n):d.delete(n),l.mutate({enabled_plugins:Array.from(d)},{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),d=C(n.id),h=c.includes(n.id);return i.jsx(w,{title:r?.label??n.id,description:d??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-CyHkfxs2.js";import{L as N}from"./label-DbfzJMol.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-BOmAbn3-.js";import{L as N}from"./label-DZwWOqq7.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,r as U,z as me,C as ue,a as fe,t as Y,x as q,K as te,j as s,B as K,H as ge,J as W,e as L,c as xe,M as pe}from"./index-CyHkfxs2.js";import{P as V}from"./index-DK4Y3HO1.js";import{u as he}from"./use-org-auth-client-DSFb3AOu.js";import{A as be}from"./avatar-C9H5J0ZH.js";import{I as je}from"./input-DocW6-0a.js";import{S as X,a as Z,b as Q,c as ie,d as ve}from"./settings-section-iYYh-GAG.js";import{D as Se}from"./domain-settings-2mBA4m9S.js";import{u as ye,a as se,D as Ne,c as Ce,S as we,v as _e,K as ze,P as De,d as Ae,C as Pe,s as ke,b as Ie,e as Ee}from"./collection-search-BDlHgig4.js";import{W as ee,i as Oe}from"./constants-6-xiUPcQ.js";import{b as le}from"./use-virtual-mcp-MAVDLFj3.js";import{b as Te,P as Re,a as Fe}from"./popover-BD8OsO_3.js";import{S as Le}from"./skeleton-D9tsK-SD.js";import{z as $e}from"./agent-icon-a5rgdmvn.js";import{s as Me}from"./Plus-0qTCNeQu.js";import{a as ae}from"./Users03-BthJNdjb.js";import{i as He}from"./X-Bs-K3rP3.js";import{I as J}from"./integration-icon-DtlHVjfw.js";import{u as Ke,c as Ue}from"./use-organization-settings-D388Q9Bl.js";import"./tooltip-MEij__fd.js";import"./User01-BRe74tu_.js";import"./card-D3EHlDqN.js";import"./ArrowUpRight-DrX0ZBVK.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./switch-PJFUwNv2.js";import"./SearchMd-D3ej9sdm.js";import"./use-collections-CuFil9_H.js";import"./AlertCircle-DQvE1HHW.js";import"./Tool01-ta8c5owo.js";import"./XClose-BvTeI7_p.js";import"./RefreshCcw01-CczH9hEb.js";import"./ArrowNarrowLeft-JeNHsl7t.js";import"./XCircle-W80KsA2R.js";import"./ZapSquare-oPqMGrmK.js";import"./CheckCircle-jz1wj0OZ.js";import"./ChevronDown-CJXiv6mb.js";import"./ChevronRight-jhe98Hpl.js";import"./ChevronUp--G-qrAEM.js";import"./DotsVertical-B-LaCx0W.js";import"./Container-LZZyJPZO.js";import"./Star01-BRqpvEVh.js";import"./Palette-CZdOy-tN.js";import"./LinkExternal01-2sbW7UGS.js";import"./Lock01-BOEORqQ0.js";import"./Sun-D-zn2wQr.js";import"./Play-CVmYi0Gz.js";import"./Settings02-DSMqESXP.js";import"./Shield01-Dk5a3EIz.js";import"./Trash01-piYSxXuV.js";import"./Zap-CruZDu0W.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 Be(t){const e=L.c(13),{value:l,onChange:i,name:u,disabled:a}=t,n=U.useRef(null);let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v=()=>n.current?.click(),e[0]=v):v=e[0];const _=v;let S;e[1]!==i?(S=z=>{const x=z.target.files?.[0];if(!x)return;if(x.size>2097152){q.error("Image must be smaller than 2MB");return}const h=new FileReader;h.onerror=Ge,h.onloadend=()=>{h.result&&i(h.result),n.current&&(n.current.value="")},h.readAsDataURL(x)},e[1]=i,e[2]=S):S=e[2];const r=S;let d;e[3]!==a||e[4]!==r?(d=s.jsx("input",{ref:n,type:"file",accept:"image/*",onChange:r,className:"hidden",disabled:a}),e[3]=a,e[4]=r,e[5]=d):d=e[5];const o=l||void 0,f=u??"?";let m;e[6]!==o||e[7]!==f?(m=s.jsx(be,{url:o,fallback:f,shape:"square",size:"base"}),e[6]=o,e[7]=f,e[8]=m):m=e[8];let g;return e[9]!==a||e[10]!==d||e[11]!==m?(g=s.jsxs("button",{type:"button",onClick:_,disabled:a,className:"rounded-lg overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":"Upload organization logo",children:[d,m]}),e[9]=a,e[10]=d,e[11]=m,e[12]=g):g=e[12],g}function Ge(){return q.error("Failed to read image")}function Ve(){const t=re(),{org:e}=ce(),l=he(),i=de(),[u,a]=U.useState(!1),n=me({resolver:ue(qe),values:{name:e.name??"",slug:e.slug??"",logo:e.logo??""}}),v=fe({mutationFn:async o=>{const f={name:o.name,slug:o.slug};o.logo&&(f.logo=o.logo);const m=await l.organization.update({data:f});if(m?.error)throw new Error(m.error.message||"Failed to update organization");return m},onSuccess:o=>{Y("organization_settings_updated",{organization_id:e.id,fields:Object.keys(n.formState.dirtyFields)}),i.invalidateQueries({queryKey:te.organizations()}),i.invalidateQueries({queryKey:te.activeOrganization(e.slug)}),q.success("Organization settings updated successfully"),o?.data?.slug&&o.data.slug!==e.slug&&t({to:"/$org/settings/general",params:{org:o.data.slug}})},onError:o=>{Y("organization_settings_update_failed",{organization_id:e.id,fields:Object.keys(n.formState.dirtyFields),error:o instanceof Error?o.message:String(o)}),q.error(o instanceof Error?o.message:"Failed to update organization")},onSettled:()=>{a(!1)}}),_=o=>{a(!0),v.mutate(o)},S=n.formState.isDirty,r=n.formState.errors,d=typeof window<"u"?`${window.location.host}/`:"";return s.jsx("form",{onSubmit:n.handleSubmit(_),className:"flex flex-col gap-3",children:s.jsx(X,{children:s.jsxs(Z,{children:[s.jsx(Q,{title:"Logo",description:"Recommended size is 256x256px",action:s.jsx(Be,{value:n.watch("logo"),onChange:o=>n.setValue("logo",o??"",{shouldDirty:!0}),name:n.watch("name"),disabled:u})}),s.jsx(Q,{title:"Name",action:s.jsx(je,{id:"org-name",...n.register("name"),placeholder:"Organization name",disabled:u,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:[d&&s.jsx("span",{className:"pl-3 text-sm text-muted-foreground select-none",children:d}),s.jsx("input",{id:"org-slug",...n.register("slug"),placeholder:"my-organization",disabled:u,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:o=>{const f=o.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"");n.setValue("slug",f,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})}})]})}),(r.name||r.slug||r.logo)&&s.jsxs("div",{className:"px-5 pb-3 flex flex-col gap-1",children:[r.name&&s.jsx("p",{className:"text-xs text-destructive",children:r.name.message}),r.slug&&s.jsx("p",{className:"text-xs text-destructive",children:r.slug.message}),r.logo&&s.jsx("p",{className:"text-xs text-destructive",children:r.logo.message})]}),S&&s.jsxs(ie,{children:[s.jsx(K,{type:"button",variant:"outline",size:"sm",onClick:()=>n.reset(),disabled:u,children:"Cancel"}),s.jsx(K,{type:"submit",disabled:u,size:"sm",children:u?"Saving…":"Save"})]})]})})})}const ne=["site-editor","site-diagnostics","ai-image","ai-research"],oe=8;function We(t,e,l){const i=e.find(a=>a.id===t);if(i)return{id:i.id,title:i.title,icon:i.icon,kind:"template"};const u=l.find(a=>a.id===t);return u?{id:t,title:u.title,icon:u.icon??null,kind:"custom"}:{id:t,title:t,icon:null,kind:"missing"}}function Qe(t){const e=L.c(39),{agent:l,onRemove:i}=t;let u;e[0]!==l.id?(u={id:l.id},e[0]=l.id,e[1]=u):u=e[1];const{attributes:a,listeners:n,setNodeRef:v,transform:_,transition:S,isDragging:r}=Ae(u);let d;e[2]!==_?(d=Pe.Transform.toString(_),e[2]=_,e[3]=d):d=e[3];const o=r?.5:void 0,f=r?100:void 0;let m;e[4]!==d||e[5]!==o||e[6]!==f||e[7]!==S?(m={transform:d,transition:S,opacity:o,zIndex:f},e[4]=d,e[5]=o,e[6]=f,e[7]=S,e[8]=m):m=e[8];const g=m,z=r&&"shadow-lg";let x;e[9]!==z?(x=xe("flex items-center gap-3 px-3 py-2 rounded-lg border border-border bg-background",z),e[9]=z,e[10]=x):x=e[10];const h=`Drag to reorder ${l.title}`;let D;e[11]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx($e,{size:14}),e[11]=D):D=e[11];let k;e[12]!==a||e[13]!==n||e[14]!==h?(k=s.jsx("button",{type:"button",...a,...n,className:"text-muted-foreground hover:text-foreground cursor-grab active:cursor-grabbing","aria-label":h,children:D}),e[12]=a,e[13]=n,e[14]=h,e[15]=k):k=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(ae,{size:14}),e[16]=y):y=e[16];let C;e[17]!==l.icon||e[18]!==l.title?(C=s.jsx(J,{icon:l.icon,name:l.title,size:"xs",fallbackIcon:y}),e[17]=l.icon,e[18]=l.title,e[19]=C):C=e[19];let b;e[20]!==l.title?(b=s.jsx("span",{className:"text-sm text-foreground truncate",children:l.title}),e[20]=l.title,e[21]=b):b=e[21];const w=l.kind==="template"?"Template":l.kind==="custom"?"Custom agent":"Unavailable";let p;e[22]!==w?(p=s.jsx("span",{className:"text-xs text-muted-foreground",children:w}),e[22]=w,e[23]=p):p=e[23];let j;e[24]!==b||e[25]!==p?(j=s.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[b,p]}),e[24]=b,e[25]=p,e[26]=j):j=e[26];const I=`Remove ${l.title}`;let A;e[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(He,{size:14}),e[27]=A):A=e[27];let N;e[28]!==i||e[29]!==I?(N=s.jsx("button",{type:"button",onClick:i,className:"text-muted-foreground hover:text-foreground p-1 rounded","aria-label":I,children:A}),e[28]=i,e[29]=I,e[30]=N):N=e[30];let P;return e[31]!==v||e[32]!==g||e[33]!==k||e[34]!==C||e[35]!==j||e[36]!==N||e[37]!==x?(P=s.jsxs("div",{ref:v,style:g,className:x,children:[k,C,j,N]}),e[31]=v,e[32]=g,e[33]=k,e[34]=C,e[35]=j,e[36]=N,e[37]=x,e[38]=P):P=e[38],P}function Ye(t){const e=L.c(48),{selectedIds:l,onAdd:i}=t,[u,a]=U.useState(!1),[n,v]=U.useState(""),_=le();let S;e[0]!==l?(S=new Set(l),e[0]=l,e[1]=S):S=e[1];const r=S;let d,o,f,m,g,z,x,h,D,k,y,C,b;if(e[2]!==_||e[3]!==i||e[4]!==u||e[5]!==n||e[6]!==r){const A=n.toLowerCase();m=ee.filter(c=>!r.has(c.id)&&(!n||c.title.toLowerCase().includes(A)));let N;e[20]!==r?(N=c=>c.id!==null&&!Oe(c.id)&&!r.has(c.id),e[20]=r,e[21]=N):N=e[21],f=_.filter(N).filter(c=>!n||c.title.toLowerCase().includes(A));let P;e[22]!==i?(P=c=>{i(c),a(!1),v("")},e[22]=i,e[23]=P):P=e[23];const O=P;o=Te,C=u,b=a,e[24]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(Re,{asChild:!0,children:s.jsxs(K,{type:"button",variant:"outline",size:"sm",children:[s.jsx(Me,{size:14}),"Add agent"]})}),e[24]=g):g=e[24],d=Fe,D="w-[320px] p-0 overflow-hidden",k="start",e[25]!==n?(y=s.jsx(Ee,{value:n,onChange:v,placeholder:"Search agents..."}),e[25]=n,e[26]=y):y=e[26],z="max-h-[320px] overflow-y-auto p-2 flex flex-col gap-3",x=m.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"}),m.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))]}),h=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:"Custom agents"}),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",fallbackIcon:s.jsx(ae,{size:14})}),s.jsx("span",{className:"text-sm truncate",children:c.title})]},c.id))]}),e[2]=_,e[3]=i,e[4]=u,e[5]=n,e[6]=r,e[7]=d,e[8]=o,e[9]=f,e[10]=m,e[11]=g,e[12]=z,e[13]=x,e[14]=h,e[15]=D,e[16]=k,e[17]=y,e[18]=C,e[19]=b}else d=e[7],o=e[8],f=e[9],m=e[10],g=e[11],z=e[12],x=e[13],h=e[14],D=e[15],k=e[16],y=e[17],C=e[18],b=e[19];let w;e[27]!==f||e[28]!==m.length||e[29]!==n?(w=m.length===0&&f.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]=f,e[28]=m.length,e[29]=n,e[30]=w):w=e[30];let p;e[31]!==w||e[32]!==z||e[33]!==x||e[34]!==h?(p=s.jsxs("div",{className:z,children:[x,h,w]}),e[31]=w,e[32]=z,e[33]=x,e[34]=h,e[35]=p):p=e[35];let j;e[36]!==d||e[37]!==p||e[38]!==D||e[39]!==k||e[40]!==y?(j=s.jsxs(d,{className:D,align:k,children:[y,p]}),e[36]=d,e[37]=p,e[38]=D,e[39]=k,e[40]=y,e[41]=j):j=e[41];let I;return e[42]!==o||e[43]!==g||e[44]!==j||e[45]!==C||e[46]!==b?(I=s.jsxs(o,{open:C,onOpenChange:b,children:[g,j]}),e[42]=o,e[43]=g,e[44]=j,e[45]=C,e[46]=b,e[47]=I):I=e[47],I}function Je(){const t=L.c(61),e=Ke(),l=le(),i=Ue();let u;t[0]!==e?.ids?(u=e?.ids??[...ne],t[0]=e?.ids,t[1]=u):u=t[1];const a=u,[n,v]=U.useState(a);let _;t[2]!==n||t[3]!==a?(_=n.length!==a.length||n.some((E,T)=>E!==a[T]),t[2]=n,t[3]=a,t[4]=_):_=t[4];const S=_;let r;t[5]===Symbol.for("react.memo_cache_sentinel")?(r={activationConstraint:{distance:5}},t[5]=r):r=t[5];let d;t[6]===Symbol.for("react.memo_cache_sentinel")?(d={coordinateGetter:ke},t[6]=d):d=t[6];const o=ye(se(De,r),se(ze,d));let f;t[7]!==n?(f=E=>{const{active:T,over:R}=E;if(!R||T.id===R.id)return;const F=n.indexOf(T.id),G=n.indexOf(R.id);F===-1||G===-1||v(Ie([...n],F,G))},t[7]=n,t[8]=f):f=t[8];const m=f;let g;t[9]!==n?(g=E=>{n.includes(E)||v([...n,E])},t[9]=n,t[10]=g):g=t[10];const z=g;let x;t[11]!==n?(x=E=>{v(n.filter(T=>T!==E))},t[11]=n,t[12]=x):x=t[12];const h=x;let D;t[13]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{v([...ne])},t[13]=D):D=t[13];const k=D;let y;t[14]!==n||t[15]!==i?(y=()=>{i.mutate({ids:n},{onSuccess:()=>{Y("default_home_agents_updated",{count:n.length,template_count:n.filter(Ze).length}),q.success("Default home agents updated")},onError:Xe})},t[14]=n,t[15]=i,t[16]=y):y=t[16];const C=y;let b,w,p,j,I,A,N;if(t[17]!==l||t[18]!==n||t[19]!==m||t[20]!==h||t[21]!==o||t[22]!==i.isPending){let E;t[30]!==l?(E=F=>We(F,ee,l),t[30]=l,t[31]=E):E=t[31];const T=n.map(E);p=Math.max(0,n.length-oe),w=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]!==i.isPending?(A=s.jsxs(K,{type:"button",variant:"ghost",size:"sm",onClick:k,disabled:i.isPending,children:[R,"Reset defaults"]}),t[33]=i.isPending,t[34]=A):A=t[34],b=Z,N="px-5 py-5 flex flex-col gap-3",j=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(Ne,{sensors:o,collisionDetection:Ce,onDragEnd:m,children:s.jsx(we,{items:n,strategy:_e,children:s.jsx("div",{className:"flex flex-col gap-1.5",children:T.map((F,G)=>s.jsxs("div",{className:"flex flex-col gap-1.5",children:[G===oe&&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(Qe,{agent:F,onRemove:()=>h(F.id)})]},F.id))})})}),t[17]=l,t[18]=n,t[19]=m,t[20]=h,t[21]=o,t[22]=i.isPending,t[23]=b,t[24]=w,t[25]=p,t[26]=j,t[27]=I,t[28]=A,t[29]=N}else b=t[23],w=t[24],p=t[25],j=t[26],I=t[27],A=t[28],N=t[29];let P;t[35]!==n||t[36]!==z?(P=s.jsx(Ye,{selectedIds:n,onAdd:z}),t[35]=n,t[36]=z,t[37]=P):P=t[37];let O;t[38]!==p?(O=p>0&&s.jsxs("span",{className:"text-xs text-muted-foreground",children:[p," agent",p===1?"":"s"," won't fit on the home view"]}),t[38]=p,t[39]=O):O=t[39];let c;t[40]!==P||t[41]!==O?(c=s.jsxs("div",{className:"flex items-center justify-between",children:[P,O]}),t[40]=P,t[41]=O,t[42]=c):c=t[42];let $;t[43]!==j||t[44]!==c||t[45]!==N?($=s.jsxs("div",{className:N,children:[j,c]}),t[43]=j,t[44]=c,t[45]=N,t[46]=$):$=t[46];let M;t[47]!==C||t[48]!==a||t[49]!==S||t[50]!==i.isPending?(M=S&&s.jsxs(ie,{children:[s.jsx(K,{type:"button",variant:"outline",onClick:()=>v(a),disabled:i.isPending,children:"Cancel"}),s.jsx(K,{type:"button",onClick:C,disabled:i.isPending,children:i.isPending?"Saving…":"Save"})]}),t[47]=C,t[48]=a,t[49]=S,t[50]=i.isPending,t[51]=M):M=t[51];let H;t[52]!==b||t[53]!==$||t[54]!==M?(H=s.jsxs(b,{children:[$,M]}),t[52]=b,t[53]=$,t[54]=M,t[55]=H):H=t[55];let B;return t[56]!==w||t[57]!==I||t[58]!==A||t[59]!==H?(B=s.jsx(w,{title:I,actions:A,children:H}),t[56]=w,t[57]=I,t[58]=A,t[59]=H,t[60]=B):B=t[60],B}function Xe(t){q.error(t instanceof Error?t.message:"Failed to update default home agents")}function Ze(t){return ee.some(e=>e.id===t)}function et(){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(tt)})})}),t[0]=e):e=t[0],e}function tt(t,e){return s.jsx(Le,{className:"h-12 w-full rounded-lg"},e)}function st(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(U.Suspense,{fallback:s.jsx(et,{}),children:s.jsx(Je,{})}),t[0]=e):e=t[0],e}function nt(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(V,{children:s.jsx(V.Content,{children:s.jsx(V.Body,{children:s.jsxs(ve,{children:[s.jsx(V.Title,{children:"Organization"}),s.jsx(Ve,{}),s.jsx(Se,{}),s.jsx(st,{})]})})})}),t[0]=e):e=t[0],e}function Zt(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(nt,{}),t[0]=e):e=t[0],e}export{Zt as default};
1
+ import{f as re,s as ce,o as de,r as U,z as me,C as ue,a as fe,t as Y,x as q,K as te,j as s,B as K,H as ge,J as W,e as L,c as xe,M as pe}from"./index-BOmAbn3-.js";import{P as V}from"./index-BXOHXvkd.js";import{u as he}from"./use-org-auth-client-DKAFGF5X.js";import{A as be}from"./avatar-C1td1Be6.js";import{I as je}from"./input-DFMPKZJm.js";import{S as X,a as Z,b as Q,c as ie,d as ve}from"./settings-section-D1IZyeMZ.js";import{D as Se}from"./domain-settings-D2GqzT5W.js";import{u as ye,a as se,D as Ne,c as Ce,S as we,v as _e,K as ze,P as De,d as Ae,C as Pe,s as ke,b as Ie,e as Ee}from"./collection-search-B7ehvlGW.js";import{W as ee,i as Oe}from"./constants-Da2DvZbd.js";import{b as le}from"./use-virtual-mcp-D8YFOZwW.js";import{b as Te,P as Re,a as Fe}from"./popover-Cvs9u_0D.js";import{S as Le}from"./skeleton-DFL6A56z.js";import{z as $e}from"./agent-icon-Y41Xl4RB.js";import{s as Me}from"./Plus-DkESyBkp.js";import{a as ae}from"./Users03-BCFGwdah.js";import{i as He}from"./X-ZLJ81KrS.js";import{I as J}from"./integration-icon-Bu4bZk46.js";import{u as Ke,c as Ue}from"./use-organization-settings-BrpxY44K.js";import"./tooltip-f4eQJmkn.js";import"./User01-KY-MO20F.js";import"./card-DQYOkC6d.js";import"./ArrowUpRight-CfmSEQdr.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./switch-CgZ8SLcM.js";import"./SearchMd-RHgmu5nb.js";import"./use-collections-ciAA_3Td.js";import"./AlertCircle-CDtbI_oO.js";import"./Tool01-CRyHj4QJ.js";import"./XClose-DXU_tOKb.js";import"./RefreshCcw01-DLpzNYLg.js";import"./ArrowNarrowLeft-CJ8McWmC.js";import"./XCircle-B2dZZ7-3.js";import"./ZapSquare-D6uI2CIK.js";import"./CheckCircle-BfnVNP63.js";import"./ChevronDown-BKNJxAvQ.js";import"./ChevronRight-DmLVJ7rn.js";import"./ChevronUp-CsX2yfUc.js";import"./DotsVertical-CiluvdTj.js";import"./Container-DASuUdbK.js";import"./Star01-CRQ6Bc0M.js";import"./Palette-CmFr12m3.js";import"./LinkExternal01-CPmlMGsQ.js";import"./Lock01-BjCX4hvk.js";import"./Sun-DKXWmMuG.js";import"./Play-AcQdYeyW.js";import"./Settings02-BgsL1r4k.js";import"./Shield01-BndBIezR.js";import"./Trash01-CfK96-qY.js";import"./Zap-25qc4enN.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 Be(t){const e=L.c(13),{value:l,onChange:i,name:u,disabled:a}=t,n=U.useRef(null);let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v=()=>n.current?.click(),e[0]=v):v=e[0];const _=v;let S;e[1]!==i?(S=z=>{const x=z.target.files?.[0];if(!x)return;if(x.size>2097152){q.error("Image must be smaller than 2MB");return}const h=new FileReader;h.onerror=Ge,h.onloadend=()=>{h.result&&i(h.result),n.current&&(n.current.value="")},h.readAsDataURL(x)},e[1]=i,e[2]=S):S=e[2];const r=S;let d;e[3]!==a||e[4]!==r?(d=s.jsx("input",{ref:n,type:"file",accept:"image/*",onChange:r,className:"hidden",disabled:a}),e[3]=a,e[4]=r,e[5]=d):d=e[5];const o=l||void 0,f=u??"?";let m;e[6]!==o||e[7]!==f?(m=s.jsx(be,{url:o,fallback:f,shape:"square",size:"base"}),e[6]=o,e[7]=f,e[8]=m):m=e[8];let g;return e[9]!==a||e[10]!==d||e[11]!==m?(g=s.jsxs("button",{type:"button",onClick:_,disabled:a,className:"rounded-lg overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":"Upload organization logo",children:[d,m]}),e[9]=a,e[10]=d,e[11]=m,e[12]=g):g=e[12],g}function Ge(){return q.error("Failed to read image")}function Ve(){const t=re(),{org:e}=ce(),l=he(),i=de(),[u,a]=U.useState(!1),n=me({resolver:ue(qe),values:{name:e.name??"",slug:e.slug??"",logo:e.logo??""}}),v=fe({mutationFn:async o=>{const f={name:o.name,slug:o.slug};o.logo&&(f.logo=o.logo);const m=await l.organization.update({data:f});if(m?.error)throw new Error(m.error.message||"Failed to update organization");return m},onSuccess:o=>{Y("organization_settings_updated",{organization_id:e.id,fields:Object.keys(n.formState.dirtyFields)}),i.invalidateQueries({queryKey:te.organizations()}),i.invalidateQueries({queryKey:te.activeOrganization(e.slug)}),q.success("Organization settings updated successfully"),o?.data?.slug&&o.data.slug!==e.slug&&t({to:"/$org/settings/general",params:{org:o.data.slug}})},onError:o=>{Y("organization_settings_update_failed",{organization_id:e.id,fields:Object.keys(n.formState.dirtyFields),error:o instanceof Error?o.message:String(o)}),q.error(o instanceof Error?o.message:"Failed to update organization")},onSettled:()=>{a(!1)}}),_=o=>{a(!0),v.mutate(o)},S=n.formState.isDirty,r=n.formState.errors,d=typeof window<"u"?`${window.location.host}/`:"";return s.jsx("form",{onSubmit:n.handleSubmit(_),className:"flex flex-col gap-3",children:s.jsx(X,{children:s.jsxs(Z,{children:[s.jsx(Q,{title:"Logo",description:"Recommended size is 256x256px",action:s.jsx(Be,{value:n.watch("logo"),onChange:o=>n.setValue("logo",o??"",{shouldDirty:!0}),name:n.watch("name"),disabled:u})}),s.jsx(Q,{title:"Name",action:s.jsx(je,{id:"org-name",...n.register("name"),placeholder:"Organization name",disabled:u,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:[d&&s.jsx("span",{className:"pl-3 text-sm text-muted-foreground select-none",children:d}),s.jsx("input",{id:"org-slug",...n.register("slug"),placeholder:"my-organization",disabled:u,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:o=>{const f=o.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"");n.setValue("slug",f,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})}})]})}),(r.name||r.slug||r.logo)&&s.jsxs("div",{className:"px-5 pb-3 flex flex-col gap-1",children:[r.name&&s.jsx("p",{className:"text-xs text-destructive",children:r.name.message}),r.slug&&s.jsx("p",{className:"text-xs text-destructive",children:r.slug.message}),r.logo&&s.jsx("p",{className:"text-xs text-destructive",children:r.logo.message})]}),S&&s.jsxs(ie,{children:[s.jsx(K,{type:"button",variant:"outline",size:"sm",onClick:()=>n.reset(),disabled:u,children:"Cancel"}),s.jsx(K,{type:"submit",disabled:u,size:"sm",children:u?"Saving…":"Save"})]})]})})})}const ne=["site-editor","site-diagnostics","ai-image","ai-research"],oe=8;function We(t,e,l){const i=e.find(a=>a.id===t);if(i)return{id:i.id,title:i.title,icon:i.icon,kind:"template"};const u=l.find(a=>a.id===t);return u?{id:t,title:u.title,icon:u.icon??null,kind:"custom"}:{id:t,title:t,icon:null,kind:"missing"}}function Qe(t){const e=L.c(39),{agent:l,onRemove:i}=t;let u;e[0]!==l.id?(u={id:l.id},e[0]=l.id,e[1]=u):u=e[1];const{attributes:a,listeners:n,setNodeRef:v,transform:_,transition:S,isDragging:r}=Ae(u);let d;e[2]!==_?(d=Pe.Transform.toString(_),e[2]=_,e[3]=d):d=e[3];const o=r?.5:void 0,f=r?100:void 0;let m;e[4]!==d||e[5]!==o||e[6]!==f||e[7]!==S?(m={transform:d,transition:S,opacity:o,zIndex:f},e[4]=d,e[5]=o,e[6]=f,e[7]=S,e[8]=m):m=e[8];const g=m,z=r&&"shadow-lg";let x;e[9]!==z?(x=xe("flex items-center gap-3 px-3 py-2 rounded-lg border border-border bg-background",z),e[9]=z,e[10]=x):x=e[10];const h=`Drag to reorder ${l.title}`;let D;e[11]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx($e,{size:14}),e[11]=D):D=e[11];let k;e[12]!==a||e[13]!==n||e[14]!==h?(k=s.jsx("button",{type:"button",...a,...n,className:"text-muted-foreground hover:text-foreground cursor-grab active:cursor-grabbing","aria-label":h,children:D}),e[12]=a,e[13]=n,e[14]=h,e[15]=k):k=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(ae,{size:14}),e[16]=y):y=e[16];let C;e[17]!==l.icon||e[18]!==l.title?(C=s.jsx(J,{icon:l.icon,name:l.title,size:"xs",fallbackIcon:y}),e[17]=l.icon,e[18]=l.title,e[19]=C):C=e[19];let b;e[20]!==l.title?(b=s.jsx("span",{className:"text-sm text-foreground truncate",children:l.title}),e[20]=l.title,e[21]=b):b=e[21];const w=l.kind==="template"?"Template":l.kind==="custom"?"Custom agent":"Unavailable";let p;e[22]!==w?(p=s.jsx("span",{className:"text-xs text-muted-foreground",children:w}),e[22]=w,e[23]=p):p=e[23];let j;e[24]!==b||e[25]!==p?(j=s.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[b,p]}),e[24]=b,e[25]=p,e[26]=j):j=e[26];const I=`Remove ${l.title}`;let A;e[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(He,{size:14}),e[27]=A):A=e[27];let N;e[28]!==i||e[29]!==I?(N=s.jsx("button",{type:"button",onClick:i,className:"text-muted-foreground hover:text-foreground p-1 rounded","aria-label":I,children:A}),e[28]=i,e[29]=I,e[30]=N):N=e[30];let P;return e[31]!==v||e[32]!==g||e[33]!==k||e[34]!==C||e[35]!==j||e[36]!==N||e[37]!==x?(P=s.jsxs("div",{ref:v,style:g,className:x,children:[k,C,j,N]}),e[31]=v,e[32]=g,e[33]=k,e[34]=C,e[35]=j,e[36]=N,e[37]=x,e[38]=P):P=e[38],P}function Ye(t){const e=L.c(48),{selectedIds:l,onAdd:i}=t,[u,a]=U.useState(!1),[n,v]=U.useState(""),_=le();let S;e[0]!==l?(S=new Set(l),e[0]=l,e[1]=S):S=e[1];const r=S;let d,o,f,m,g,z,x,h,D,k,y,C,b;if(e[2]!==_||e[3]!==i||e[4]!==u||e[5]!==n||e[6]!==r){const A=n.toLowerCase();m=ee.filter(c=>!r.has(c.id)&&(!n||c.title.toLowerCase().includes(A)));let N;e[20]!==r?(N=c=>c.id!==null&&!Oe(c.id)&&!r.has(c.id),e[20]=r,e[21]=N):N=e[21],f=_.filter(N).filter(c=>!n||c.title.toLowerCase().includes(A));let P;e[22]!==i?(P=c=>{i(c),a(!1),v("")},e[22]=i,e[23]=P):P=e[23];const O=P;o=Te,C=u,b=a,e[24]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(Re,{asChild:!0,children:s.jsxs(K,{type:"button",variant:"outline",size:"sm",children:[s.jsx(Me,{size:14}),"Add agent"]})}),e[24]=g):g=e[24],d=Fe,D="w-[320px] p-0 overflow-hidden",k="start",e[25]!==n?(y=s.jsx(Ee,{value:n,onChange:v,placeholder:"Search agents..."}),e[25]=n,e[26]=y):y=e[26],z="max-h-[320px] overflow-y-auto p-2 flex flex-col gap-3",x=m.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"}),m.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))]}),h=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:"Custom agents"}),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",fallbackIcon:s.jsx(ae,{size:14})}),s.jsx("span",{className:"text-sm truncate",children:c.title})]},c.id))]}),e[2]=_,e[3]=i,e[4]=u,e[5]=n,e[6]=r,e[7]=d,e[8]=o,e[9]=f,e[10]=m,e[11]=g,e[12]=z,e[13]=x,e[14]=h,e[15]=D,e[16]=k,e[17]=y,e[18]=C,e[19]=b}else d=e[7],o=e[8],f=e[9],m=e[10],g=e[11],z=e[12],x=e[13],h=e[14],D=e[15],k=e[16],y=e[17],C=e[18],b=e[19];let w;e[27]!==f||e[28]!==m.length||e[29]!==n?(w=m.length===0&&f.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]=f,e[28]=m.length,e[29]=n,e[30]=w):w=e[30];let p;e[31]!==w||e[32]!==z||e[33]!==x||e[34]!==h?(p=s.jsxs("div",{className:z,children:[x,h,w]}),e[31]=w,e[32]=z,e[33]=x,e[34]=h,e[35]=p):p=e[35];let j;e[36]!==d||e[37]!==p||e[38]!==D||e[39]!==k||e[40]!==y?(j=s.jsxs(d,{className:D,align:k,children:[y,p]}),e[36]=d,e[37]=p,e[38]=D,e[39]=k,e[40]=y,e[41]=j):j=e[41];let I;return e[42]!==o||e[43]!==g||e[44]!==j||e[45]!==C||e[46]!==b?(I=s.jsxs(o,{open:C,onOpenChange:b,children:[g,j]}),e[42]=o,e[43]=g,e[44]=j,e[45]=C,e[46]=b,e[47]=I):I=e[47],I}function Je(){const t=L.c(61),e=Ke(),l=le(),i=Ue();let u;t[0]!==e?.ids?(u=e?.ids??[...ne],t[0]=e?.ids,t[1]=u):u=t[1];const a=u,[n,v]=U.useState(a);let _;t[2]!==n||t[3]!==a?(_=n.length!==a.length||n.some((E,T)=>E!==a[T]),t[2]=n,t[3]=a,t[4]=_):_=t[4];const S=_;let r;t[5]===Symbol.for("react.memo_cache_sentinel")?(r={activationConstraint:{distance:5}},t[5]=r):r=t[5];let d;t[6]===Symbol.for("react.memo_cache_sentinel")?(d={coordinateGetter:ke},t[6]=d):d=t[6];const o=ye(se(De,r),se(ze,d));let f;t[7]!==n?(f=E=>{const{active:T,over:R}=E;if(!R||T.id===R.id)return;const F=n.indexOf(T.id),G=n.indexOf(R.id);F===-1||G===-1||v(Ie([...n],F,G))},t[7]=n,t[8]=f):f=t[8];const m=f;let g;t[9]!==n?(g=E=>{n.includes(E)||v([...n,E])},t[9]=n,t[10]=g):g=t[10];const z=g;let x;t[11]!==n?(x=E=>{v(n.filter(T=>T!==E))},t[11]=n,t[12]=x):x=t[12];const h=x;let D;t[13]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{v([...ne])},t[13]=D):D=t[13];const k=D;let y;t[14]!==n||t[15]!==i?(y=()=>{i.mutate({ids:n},{onSuccess:()=>{Y("default_home_agents_updated",{count:n.length,template_count:n.filter(Ze).length}),q.success("Default home agents updated")},onError:Xe})},t[14]=n,t[15]=i,t[16]=y):y=t[16];const C=y;let b,w,p,j,I,A,N;if(t[17]!==l||t[18]!==n||t[19]!==m||t[20]!==h||t[21]!==o||t[22]!==i.isPending){let E;t[30]!==l?(E=F=>We(F,ee,l),t[30]=l,t[31]=E):E=t[31];const T=n.map(E);p=Math.max(0,n.length-oe),w=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]!==i.isPending?(A=s.jsxs(K,{type:"button",variant:"ghost",size:"sm",onClick:k,disabled:i.isPending,children:[R,"Reset defaults"]}),t[33]=i.isPending,t[34]=A):A=t[34],b=Z,N="px-5 py-5 flex flex-col gap-3",j=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(Ne,{sensors:o,collisionDetection:Ce,onDragEnd:m,children:s.jsx(we,{items:n,strategy:_e,children:s.jsx("div",{className:"flex flex-col gap-1.5",children:T.map((F,G)=>s.jsxs("div",{className:"flex flex-col gap-1.5",children:[G===oe&&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(Qe,{agent:F,onRemove:()=>h(F.id)})]},F.id))})})}),t[17]=l,t[18]=n,t[19]=m,t[20]=h,t[21]=o,t[22]=i.isPending,t[23]=b,t[24]=w,t[25]=p,t[26]=j,t[27]=I,t[28]=A,t[29]=N}else b=t[23],w=t[24],p=t[25],j=t[26],I=t[27],A=t[28],N=t[29];let P;t[35]!==n||t[36]!==z?(P=s.jsx(Ye,{selectedIds:n,onAdd:z}),t[35]=n,t[36]=z,t[37]=P):P=t[37];let O;t[38]!==p?(O=p>0&&s.jsxs("span",{className:"text-xs text-muted-foreground",children:[p," agent",p===1?"":"s"," won't fit on the home view"]}),t[38]=p,t[39]=O):O=t[39];let c;t[40]!==P||t[41]!==O?(c=s.jsxs("div",{className:"flex items-center justify-between",children:[P,O]}),t[40]=P,t[41]=O,t[42]=c):c=t[42];let $;t[43]!==j||t[44]!==c||t[45]!==N?($=s.jsxs("div",{className:N,children:[j,c]}),t[43]=j,t[44]=c,t[45]=N,t[46]=$):$=t[46];let M;t[47]!==C||t[48]!==a||t[49]!==S||t[50]!==i.isPending?(M=S&&s.jsxs(ie,{children:[s.jsx(K,{type:"button",variant:"outline",onClick:()=>v(a),disabled:i.isPending,children:"Cancel"}),s.jsx(K,{type:"button",onClick:C,disabled:i.isPending,children:i.isPending?"Saving…":"Save"})]}),t[47]=C,t[48]=a,t[49]=S,t[50]=i.isPending,t[51]=M):M=t[51];let H;t[52]!==b||t[53]!==$||t[54]!==M?(H=s.jsxs(b,{children:[$,M]}),t[52]=b,t[53]=$,t[54]=M,t[55]=H):H=t[55];let B;return t[56]!==w||t[57]!==I||t[58]!==A||t[59]!==H?(B=s.jsx(w,{title:I,actions:A,children:H}),t[56]=w,t[57]=I,t[58]=A,t[59]=H,t[60]=B):B=t[60],B}function Xe(t){q.error(t instanceof Error?t.message:"Failed to update default home agents")}function Ze(t){return ee.some(e=>e.id===t)}function et(){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(tt)})})}),t[0]=e):e=t[0],e}function tt(t,e){return s.jsx(Le,{className:"h-12 w-full rounded-lg"},e)}function st(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(U.Suspense,{fallback:s.jsx(et,{}),children:s.jsx(Je,{})}),t[0]=e):e=t[0],e}function nt(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(V,{children:s.jsx(V.Content,{children:s.jsx(V.Body,{children:s.jsxs(ve,{children:[s.jsx(V.Title,{children:"Organization"}),s.jsx(Ve,{}),s.jsx(Se,{}),s.jsx(st,{})]})})})}),t[0]=e):e=t[0],e}function Zt(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(nt,{}),t[0]=e):e=t[0],e}export{Zt as default};
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-CnnrJKt7.js","assets/ChevronDown-CJXiv6mb.js","assets/login-D1QEp6zv.js","assets/input-DocW6-0a.js","assets/reset-password-kcnAbcv3.js","assets/shell-layout-B8B_ABl6.js","assets/dialog-Bt7s8NCP.js","assets/X-Bs-K3rP3.js","assets/required-auth-layout-crEy15On.js","assets/use-tasks-BJrgZKAK.js","assets/use-collections-CuFil9_H.js","assets/constants-6-xiUPcQ.js","assets/use-organization-settings-D388Q9Bl.js","assets/use-org-sso-uVWWV8lc.js","assets/Lock01-BOEORqQ0.js","assets/onboarding-CSq15NJd.js","assets/label-DbfzJMol.js","assets/Users03-BthJNdjb.js","assets/CheckCircle-jz1wj0OZ.js","assets/Palette-CZdOy-tN.js","assets/index-6xFo1iCj.js","assets/index-DK4Y3HO1.js","assets/tooltip-MEij__fd.js","assets/index-CQbllXV7.js","assets/agent-icon-a5rgdmvn.js","assets/AlertCircle-DQvE1HHW.js","assets/Tool01-ta8c5owo.js","assets/XClose-BvTeI7_p.js","assets/RefreshCcw01-CczH9hEb.js","assets/ArrowNarrowLeft-JeNHsl7t.js","assets/XCircle-W80KsA2R.js","assets/ArrowUpRight-DrX0ZBVK.js","assets/ZapSquare-oPqMGrmK.js","assets/ChevronRight-jhe98Hpl.js","assets/ChevronUp--G-qrAEM.js","assets/DotsVertical-B-LaCx0W.js","assets/Container-LZZyJPZO.js","assets/Star01-BRqpvEVh.js","assets/SearchMd-D3ej9sdm.js","assets/LinkExternal01-2sbW7UGS.js","assets/Sun-D-zn2wQr.js","assets/Play-CVmYi0Gz.js","assets/Plus-0qTCNeQu.js","assets/Settings02-DSMqESXP.js","assets/Shield01-Dk5a3EIz.js","assets/Trash01-piYSxXuV.js","assets/User01-BRe74tu_.js","assets/Zap-CruZDu0W.js","assets/pair-4EJpDs9f.js","assets/index-Cpu398f4.js","assets/use-copy-L-Votg83.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/content-blocks-o63cs2vh.js","assets/types-DfUe_JMo.js","assets/chat-context-BTwAu2wE.js","assets/use-virtual-mcp-MAVDLFj3.js","assets/use-ai-providers-BsFsk2om.js","assets/use-decopilot-events-BU0YCIkb.js","assets/create-sse-subscription-CxkOgzKf.js","assets/integration-icon-DtlHVjfw.js","assets/skeleton-D9tsK-SD.js","assets/popover-BD8OsO_3.js","assets/drawer-a25q5Lla.js","assets/avatar-C9H5J0ZH.js","assets/alert-dialog-DpjW0duE.js","assets/form-DdyedIOG.js","assets/index-BLw8IR3q.js","assets/use-mcp-tools-UR7Tvr-a.js","assets/index-DrWfdeB3.js","assets/switch-PJFUwNv2.js","assets/use-connection-CyKUB7va.js","assets/lean-canvas-recruit-modal-DUB9h6gA.js","assets/use-navigate-to-agent-C4FkilnS.js","assets/collection-search-DTXYBhEG.js","assets/checkbox-BfEy2ev6.js","assets/extract-connection-data-D-LoPsgm.js","assets/constants-o7_eEaEl.js","assets/collections-B4NDDkQp.js","assets/tabs-CbvFgdFf.js","assets/dropdown-menu-BNdhp1TS.js","assets/select-Ceunqeln.js","assets/toggle-group-wE6dZdNy.js","assets/select-model-UWZWvXzk.js","assets/ai-providers-logos-D6a8kmGH.js","assets/settings-section-iYYh-GAG.js","assets/card-D3EHlDqN.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/unwrap-tool-result-BYXdCQMg.js","assets/index-prfGmBrm.js","assets/question-004-sINsf4GQ.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-B8zimY_1.js","assets/use-registry-connections-Cdqd9fMq.js","assets/useInfiniteQuery-Cb2JkfVZ.js","assets/infiniteQueryObserver-WKNIeKEe.js","assets/collection-tabs-ZB2vm_Ts.js","assets/badge-DM1yKdHA.js","assets/textarea-BBy60ci1.js","assets/connection-form-helpers-DW_KgaUQ.js","assets/use-infinite-scroll-CQf3beQh.js","assets/useSuspenseInfiniteQuery-JMOXdk3c.js","assets/collection-search-BDlHgig4.js","assets/use-create-virtual-mcp-DCZ_Q4yV.js","assets/empty-state-TuyNETUf.js","assets/task-status-C0VnLSBE.js","assets/index-DC8ny_LW.js","assets/command-C8axDPx1.js","assets/index-CFysdS9W.js","assets/use-status-sounds-DcqY0aWN.js","assets/accordion-CbzOgqka.js","assets/user-DvRNamCQ.js","assets/tools-list-B1mXoVnY.js","assets/scroll-area-DuFte1VC.js","assets/view-mode-toggle-D8-KKhvu.js","assets/automation-list-row-DmDAOiMK.js","assets/search-input-DQy0Ln81.js","assets/index-DDGTF8rc.css","assets/index-DiI3qNgk.js","assets/settings-layout-DMvCQRt1.js","assets/connections-DDRTvEHs.js","assets/collection-display-button-I1MRNJca.js","assets/use-delete-connection-CH1yR3V8.js","assets/use-list-state-BO6QgJwM.js","assets/use-view-mode-DLgQEYRO.js","assets/connection-detail-CteDwS0C.js","assets/index-kpfWZVBp.js","assets/index-0ONdtZvR.js","assets/index-CPCIVubP.js","assets/use-members-0EtHtToT.js","assets/use-org-auth-client-DSFb3AOu.js","assets/layout-Csh5DA6j.js","assets/monitoring-stats-row-C3CIix3j.js","assets/collection-detail-CwiJKTp0.js","assets/index-EieaBqsE.js","assets/monaco-editor-CteNuuJr.js","assets/empty-state-DfhDT_rL.js","assets/index-C656JC4f.js","assets/table-B0qcR2jp.js","assets/general-B4yYUcgX.js","assets/domain-settings-2mBA4m9S.js","assets/features-Dlqphz2t.js","assets/brand-context-CHgKeNYL.js","assets/ai-providers-BrRsZwwm.js","assets/members-CW5_GrD2.js","assets/collection-table-wrapper-BZgayY2v.js","assets/use-organization-roles-DBQSLgAo.js","assets/roles-DYIwGuDN.js","assets/sso-D0aPF4WO.js","assets/profile-CPpu_rOC.js","assets/store-dscxfYPH.js","assets/workflow-C2dwTU43.js","assets/workflow-detail-BcRuChZH.js","assets/org-plugin-layout-R-CfCKdC.js","assets/plugin-layout-OKTV_231.js","assets/agents-list-DUOWHygM.js","assets/automations-BGpDui88.js","assets/dynamic-plugin-layout-COSx8up3.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-D19z2yPe.js","assets/ChevronDown-BKNJxAvQ.js","assets/login-Qjtx70Ay.js","assets/input-DFMPKZJm.js","assets/reset-password-CaWZrhgz.js","assets/shell-layout-C3cZnoYI.js","assets/dialog-D0LCITx0.js","assets/X-ZLJ81KrS.js","assets/required-auth-layout-CGJ5rk5i.js","assets/use-tasks-DjQnA3sr.js","assets/use-collections-ciAA_3Td.js","assets/constants-Da2DvZbd.js","assets/use-organization-settings-BrpxY44K.js","assets/use-org-sso-BUVEFfyx.js","assets/Lock01-BjCX4hvk.js","assets/onboarding-BJq0uANa.js","assets/label-DZwWOqq7.js","assets/Users03-BCFGwdah.js","assets/CheckCircle-BfnVNP63.js","assets/Palette-CmFr12m3.js","assets/index-CUHQFzXU.js","assets/index-BXOHXvkd.js","assets/tooltip-f4eQJmkn.js","assets/index-DcLrVfh1.js","assets/agent-icon-Y41Xl4RB.js","assets/AlertCircle-CDtbI_oO.js","assets/Tool01-CRyHj4QJ.js","assets/XClose-DXU_tOKb.js","assets/RefreshCcw01-DLpzNYLg.js","assets/ArrowNarrowLeft-CJ8McWmC.js","assets/XCircle-B2dZZ7-3.js","assets/ArrowUpRight-CfmSEQdr.js","assets/ZapSquare-D6uI2CIK.js","assets/ChevronRight-DmLVJ7rn.js","assets/ChevronUp-CsX2yfUc.js","assets/DotsVertical-CiluvdTj.js","assets/Container-DASuUdbK.js","assets/Star01-CRQ6Bc0M.js","assets/SearchMd-RHgmu5nb.js","assets/LinkExternal01-CPmlMGsQ.js","assets/Sun-DKXWmMuG.js","assets/Play-AcQdYeyW.js","assets/Plus-DkESyBkp.js","assets/Settings02-BgsL1r4k.js","assets/Shield01-BndBIezR.js","assets/Trash01-CfK96-qY.js","assets/User01-KY-MO20F.js","assets/Zap-25qc4enN.js","assets/pair-Ds1EbiW2.js","assets/index-By-OUdid.js","assets/use-copy-VDNca3ax.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/content-blocks-o63cs2vh.js","assets/types-BxKF_I-u.js","assets/chat-context-hgW5gAmm.js","assets/use-virtual-mcp-D8YFOZwW.js","assets/use-ai-providers-CTaSMN44.js","assets/use-decopilot-events-CJG2rWbg.js","assets/create-sse-subscription-CxkOgzKf.js","assets/integration-icon-Bu4bZk46.js","assets/skeleton-DFL6A56z.js","assets/popover-Cvs9u_0D.js","assets/drawer-DWuqMoty.js","assets/avatar-C1td1Be6.js","assets/alert-dialog-DnoDZh7l.js","assets/form-3xE0OqGj.js","assets/index-oZ72eHkF.js","assets/use-mcp-tools-C9cj3BH6.js","assets/index-CdUEwHcT.js","assets/switch-CgZ8SLcM.js","assets/use-connection-DcySEqVV.js","assets/lean-canvas-recruit-modal-KLORFsWq.js","assets/use-navigate-to-agent-KmcfdsLb.js","assets/collection-search-CqdVjZKz.js","assets/checkbox-DkmOdGV4.js","assets/extract-connection-data-JkyrF-5k.js","assets/constants-Dm-yPW31.js","assets/collections-DusXIGhy.js","assets/tabs-CQg6na0A.js","assets/dropdown-menu-BooeaeZW.js","assets/select-Czs_bVht.js","assets/toggle-group-BWbe6Sle.js","assets/select-model-BAqBST4u.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-D1IZyeMZ.js","assets/card-DQYOkC6d.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/unwrap-tool-result-BYXdCQMg.js","assets/index-DqWkjFjy.js","assets/question-004-sINsf4GQ.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-Bfng1y5O.js","assets/use-registry-connections-C5Res-NO.js","assets/useInfiniteQuery-z1Rh4SPR.js","assets/infiniteQueryObserver-ruN3KSWZ.js","assets/collection-tabs-BymkuH-J.js","assets/badge-BQ5WsTn4.js","assets/textarea-dZeCqaKZ.js","assets/connection-form-helpers-DmVfKyR2.js","assets/use-infinite-scroll-Cd7090oj.js","assets/useSuspenseInfiniteQuery-DmArxoRp.js","assets/collection-search-B7ehvlGW.js","assets/use-create-virtual-mcp-BosIHDl_.js","assets/empty-state-V_MWZYVh.js","assets/task-status-ZLGfD6LC.js","assets/index-Db1yn84L.js","assets/command-BCmTpu4J.js","assets/index-Cm97pdLv.js","assets/use-status-sounds-DF_LdFlX.js","assets/accordion-D3bxaM5e.js","assets/user-BG2r6Yob.js","assets/tools-list-Cs00fcMQ.js","assets/scroll-area-DaS5ALMq.js","assets/view-mode-toggle-iIz_yTY4.js","assets/automation-list-row-CAHW7UMQ.js","assets/search-input-C4vXNPxO.js","assets/index-DDGTF8rc.css","assets/index-BUabcSp1.js","assets/settings-layout-CKeL2zhm.js","assets/connections-BOpJFAVW.js","assets/collection-display-button-8PlYmXiO.js","assets/use-delete-connection-BHdNUeNC.js","assets/use-list-state-B_mnqmDh.js","assets/use-view-mode-pmOkpC-l.js","assets/connection-detail-BvkQKjE1.js","assets/index-BSli4TIm.js","assets/index-C2XzR7MH.js","assets/index-D1vwSlce.js","assets/use-members-YqP0IEDf.js","assets/use-org-auth-client-DKAFGF5X.js","assets/layout-DktxHUWV.js","assets/monitoring-stats-row-hB6Djn4O.js","assets/collection-detail-tXsv3iGO.js","assets/index-Bh9ip1xM.js","assets/monaco-editor-BMXf_ICC.js","assets/empty-state-DtXUXgFg.js","assets/index-D2cvrx8-.js","assets/table-bZ3KC8o2.js","assets/general-CkXiaAh9.js","assets/domain-settings-D2GqzT5W.js","assets/features-BRMl1rr6.js","assets/brand-context-DIIOMD2x.js","assets/ai-providers-BRoGM2rY.js","assets/members-CB5ygrXY.js","assets/collection-table-wrapper-DtBSTmHD.js","assets/use-organization-roles-BY88cyRn.js","assets/roles-ychtuZ_l.js","assets/sso-C4f0AfMQ.js","assets/profile-_mVuN_Pw.js","assets/store-CEIp74Dt.js","assets/workflow-w5_7cK4m.js","assets/workflow-detail-hy-jKDKn.js","assets/org-plugin-layout-DYC_-fTx.js","assets/plugin-layout-DBmHNWl4.js","assets/agents-list-mS9MVQZN.js","assets/automations-PZEFUnMk.js","assets/dynamic-plugin-layout-BBI0fzcH.js"])))=>i.map(i=>d[i]);
2
2
  function z$(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();const F$="modulepreload",B$=function(e){return"/"+e},X2={},At=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(f){return Promise.all(f.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");i=l(n.map(f=>{if(f=B$(f),f in X2)return;X2[f]=!0;const m=f.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${p}`))return;const g=document.createElement("link");if(g.rel=m?"stylesheet":F$,m||(g.as="script"),g.crossOrigin="",g.href=f,d&&g.setAttribute("nonce",d),document.head.appendChild(g),m)return new Promise((v,y)=>{g.addEventListener("load",v),g.addEventListener("error",()=>y(Error(`Unable to preload CSS for ${f}`)))})}))}function s(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return i.then(l=>{for(const c of l||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};var Jae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function la(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var v_={exports:{}},Bu={};var J2;function V$(){if(J2)return Bu;J2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var l=null;if(s!==void 0&&(l=""+s),i.key!==void 0&&(l=""+i.key),"key"in i){s={};for(var c in i)c!=="key"&&(s[c]=i[c])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:s}}return Bu.Fragment=t,Bu.jsx=n,Bu.jsxs=n,Bu}var eO;function q$(){return eO||(eO=1,v_.exports=V$()),v_.exports}var T=q$(),__={exports:{}},Vu={},y_={exports:{}},b_={};var tO;function H$(){return tO||(tO=1,(function(e){function t(q,W){var ee=q.length;q.push(W);e:for(;0<ee;){var ae=ee-1>>>1,Q=q[ae];if(0<i(Q,W))q[ae]=W,q[ee]=Q,ee=ae;else break e}}function n(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var W=q[0],ee=q.pop();if(ee!==W){q[0]=ee;e:for(var ae=0,Q=q.length,k=Q>>>1;ae<k;){var K=2*(ae+1)-1,V=q[K],D=K+1,F=q[D];if(0>i(V,ee))D<Q&&0>i(F,V)?(q[ae]=F,q[D]=ee,ae=D):(q[ae]=V,q[K]=ee,ae=K);else if(D<Q&&0>i(F,ee))q[ae]=F,q[D]=ee,ae=D;else break e}}return W}function i(q,W){var ee=q.sortIndex-W.sortIndex;return ee!==0?ee:q.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],m=1,p=null,g=3,v=!1,y=!1,b=!1,x=!1,S=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function C(q){for(var W=n(f);W!==null;){if(W.callback===null)r(f);else if(W.startTime<=q)r(f),W.sortIndex=W.expirationTime,t(d,W);else break;W=n(f)}}function O(q){if(b=!1,C(q),!y)if(n(d)!==null)y=!0,A||(A=!0,B());else{var W=n(f);W!==null&&re(O,W.startTime-q)}}var A=!1,M=-1,P=5,L=-1;function H(){return x?!0:!(e.unstable_now()-L<P)}function j(){if(x=!1,A){var q=e.unstable_now();L=q;var W=!0;try{e:{y=!1,b&&(b=!1,E(M),M=-1),v=!0;var ee=g;try{t:{for(C(q),p=n(d);p!==null&&!(p.expirationTime>q&&H());){var ae=p.callback;if(typeof ae=="function"){p.callback=null,g=p.priorityLevel;var Q=ae(p.expirationTime<=q);if(q=e.unstable_now(),typeof Q=="function"){p.callback=Q,C(q),W=!0;break t}p===n(d)&&r(d),C(q)}else r(d);p=n(d)}if(p!==null)W=!0;else{var k=n(f);k!==null&&re(O,k.startTime-q),W=!1}}break e}finally{p=null,g=ee,v=!1}W=void 0}}finally{W?B():A=!1}}}var B;if(typeof R=="function")B=function(){R(j)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,Z=U.port2;U.port1.onmessage=j,B=function(){Z.postMessage(null)}}else B=function(){S(j,0)};function re(q,W){M=S(function(){q(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(q){switch(g){case 1:case 2:case 3:var W=3;break;default:W=g}var ee=g;g=W;try{return q()}finally{g=ee}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(q,W){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ee=g;g=q;try{return W()}finally{g=ee}},e.unstable_scheduleCallback=function(q,W,ee){var ae=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ae+ee:ae):ee=ae,q){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=ee+Q,q={id:m++,callback:W,priorityLevel:q,startTime:ee,expirationTime:Q,sortIndex:-1},ee>ae?(q.sortIndex=ee,t(f,q),n(d)===null&&q===n(f)&&(b?(E(M),M=-1):b=!0,re(O,ee-ae))):(q.sortIndex=Q,t(d,q),y||v||(y=!0,A||(A=!0,B()))),q},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(q){var W=g;return function(){var ee=g;g=W;try{return q.apply(this,arguments)}finally{g=ee}}}})(b_)),b_}var nO;function G$(){return nO||(nO=1,y_.exports=H$()),y_.exports}var w_={exports:{}},rt={};var rO;function K$(){if(rO)return rt;rO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),g=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=g&&k[g]||k["@@iterator"],typeof k=="function"?k:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function S(k,K,V){this.props=k,this.context=K,this.refs=x,this.updater=V||y}S.prototype.isReactComponent={},S.prototype.setState=function(k,K){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,K,"setState")},S.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function E(){}E.prototype=S.prototype;function R(k,K,V){this.props=k,this.context=K,this.refs=x,this.updater=V||y}var C=R.prototype=new E;C.constructor=R,b(C,S.prototype),C.isPureReactComponent=!0;var O=Array.isArray;function A(){}var M={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function L(k,K,V){var D=V.ref;return{$$typeof:e,type:k,key:K,ref:D!==void 0?D:null,props:V}}function H(k,K){return L(k.type,K,k.props)}function j(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function B(k){var K={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(V){return K[V]})}var U=/\/+/g;function Z(k,K){return typeof k=="object"&&k!==null&&k.key!=null?B(""+k.key):K.toString(36)}function re(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(A,A):(k.status="pending",k.then(function(K){k.status==="pending"&&(k.status="fulfilled",k.value=K)},function(K){k.status==="pending"&&(k.status="rejected",k.reason=K)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function q(k,K,V,D,F){var X=typeof k;(X==="undefined"||X==="boolean")&&(k=null);var fe=!1;if(k===null)fe=!0;else switch(X){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(k.$$typeof){case e:case t:fe=!0;break;case m:return fe=k._init,q(fe(k._payload),K,V,D,F)}}if(fe)return F=F(k),fe=D===""?"."+Z(k,0):D,O(F)?(V="",fe!=null&&(V=fe.replace(U,"$&/")+"/"),q(F,K,V,"",function(Ue){return Ue})):F!=null&&(j(F)&&(F=H(F,V+(F.key==null||k&&k.key===F.key?"":(""+F.key).replace(U,"$&/")+"/")+fe)),K.push(F)),1;fe=0;var pe=D===""?".":D+":";if(O(k))for(var xe=0;xe<k.length;xe++)D=k[xe],X=pe+Z(D,xe),fe+=q(D,K,V,X,F);else if(xe=v(k),typeof xe=="function")for(k=xe.call(k),xe=0;!(D=k.next()).done;)D=D.value,X=pe+Z(D,xe++),fe+=q(D,K,V,X,F);else if(X==="object"){if(typeof k.then=="function")return q(re(k),K,V,D,F);throw K=String(k),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return fe}function W(k,K,V){if(k==null)return k;var D=[],F=0;return q(k,D,"","",function(X){return K.call(V,X,F++)}),D}function ee(k){if(k._status===-1){var K=k._result;K=K(),K.then(function(V){(k._status===0||k._status===-1)&&(k._status=1,k._result=V)},function(V){(k._status===0||k._status===-1)&&(k._status=2,k._result=V)}),k._status===-1&&(k._status=0,k._result=K)}if(k._status===1)return k._result.default;throw k._result}var ae=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},Q={map:W,forEach:function(k,K,V){W(k,function(){K.apply(this,arguments)},V)},count:function(k){var K=0;return W(k,function(){K++}),K},toArray:function(k){return W(k,function(K){return K})||[]},only:function(k){if(!j(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return rt.Activity=p,rt.Children=Q,rt.Component=S,rt.Fragment=n,rt.Profiler=i,rt.PureComponent=R,rt.StrictMode=r,rt.Suspense=d,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,rt.__COMPILER_RUNTIME={__proto__:null,c:function(k){return M.H.useMemoCache(k)}},rt.cache=function(k){return function(){return k.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(k,K,V){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var D=b({},k.props),F=k.key;if(K!=null)for(X in K.key!==void 0&&(F=""+K.key),K)!P.call(K,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&K.ref===void 0||(D[X]=K[X]);var X=arguments.length-2;if(X===1)D.children=V;else if(1<X){for(var fe=Array(X),pe=0;pe<X;pe++)fe[pe]=arguments[pe+2];D.children=fe}return L(k.type,F,D)},rt.createContext=function(k){return k={$$typeof:l,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},rt.createElement=function(k,K,V){var D,F={},X=null;if(K!=null)for(D in K.key!==void 0&&(X=""+K.key),K)P.call(K,D)&&D!=="key"&&D!=="__self"&&D!=="__source"&&(F[D]=K[D]);var fe=arguments.length-2;if(fe===1)F.children=V;else if(1<fe){for(var pe=Array(fe),xe=0;xe<fe;xe++)pe[xe]=arguments[xe+2];F.children=pe}if(k&&k.defaultProps)for(D in fe=k.defaultProps,fe)F[D]===void 0&&(F[D]=fe[D]);return L(k,X,F)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(k){return{$$typeof:c,render:k}},rt.isValidElement=j,rt.lazy=function(k){return{$$typeof:m,_payload:{_status:-1,_result:k},_init:ee}},rt.memo=function(k,K){return{$$typeof:f,type:k,compare:K===void 0?null:K}},rt.startTransition=function(k){var K=M.T,V={};M.T=V;try{var D=k(),F=M.S;F!==null&&F(V,D),typeof D=="object"&&D!==null&&typeof D.then=="function"&&D.then(A,ae)}catch(X){ae(X)}finally{K!==null&&V.types!==null&&(K.types=V.types),M.T=K}},rt.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},rt.use=function(k){return M.H.use(k)},rt.useActionState=function(k,K,V){return M.H.useActionState(k,K,V)},rt.useCallback=function(k,K){return M.H.useCallback(k,K)},rt.useContext=function(k){return M.H.useContext(k)},rt.useDebugValue=function(){},rt.useDeferredValue=function(k,K){return M.H.useDeferredValue(k,K)},rt.useEffect=function(k,K){return M.H.useEffect(k,K)},rt.useEffectEvent=function(k){return M.H.useEffectEvent(k)},rt.useId=function(){return M.H.useId()},rt.useImperativeHandle=function(k,K,V){return M.H.useImperativeHandle(k,K,V)},rt.useInsertionEffect=function(k,K){return M.H.useInsertionEffect(k,K)},rt.useLayoutEffect=function(k,K){return M.H.useLayoutEffect(k,K)},rt.useMemo=function(k,K){return M.H.useMemo(k,K)},rt.useOptimistic=function(k,K){return M.H.useOptimistic(k,K)},rt.useReducer=function(k,K,V){return M.H.useReducer(k,K,V)},rt.useRef=function(k){return M.H.useRef(k)},rt.useState=function(k){return M.H.useState(k)},rt.useSyncExternalStore=function(k,K,V){return M.H.useSyncExternalStore(k,K,V)},rt.useTransition=function(){return M.H.useTransition()},rt.version="19.2.5",rt}var iO;function ca(){return iO||(iO=1,w_.exports=K$()),w_.exports}var S_={exports:{}},yr={};var oO;function Z$(){if(oO)return yr;oO=1;var e=ca();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(d,f,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:d,containerInfo:f,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return yr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,yr.createPortal=function(d,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(d,f,null,m)},yr.flushSync=function(d){var f=l.T,m=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=m,r.d.f()}},yr.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},yr.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},yr.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,v=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:v}):m==="script"&&r.d.X(d,{crossOrigin:p,integrity:g,fetchPriority:v,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},yr.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=c(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},yr.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin);r.d.L(d,m,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},yr.preloadModule=function(d,f){if(typeof d=="string")if(f){var m=c(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},yr.requestFormReset=function(d){r.d.r(d)},yr.unstable_batchedUpdates=function(d,f){return d(f)},yr.useFormState=function(d,f,m){return l.H.useFormState(d,f,m)},yr.useFormStatus=function(){return l.H.useHostTransitionStatus()},yr.version="19.2.5",yr}var sO;function IM(){if(sO)return S_.exports;sO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),S_.exports=Z$(),S_.exports}var aO;function Y$(){if(aO)return Vu;aO=1;var e=G$(),t=ca(),n=IM();function r(o){var a="https://react.dev/errors/"+o;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+o+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var a=o,u=o;if(o.alternate)for(;a.return;)a=a.return;else{o=a;do a=o,(a.flags&4098)!==0&&(u=a.return),o=a.return;while(o)}return a.tag===3?u:null}function l(o){if(o.tag===13){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function c(o){if(o.tag===31){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function d(o){if(s(o)!==o)throw Error(r(188))}function f(o){var a=o.alternate;if(!a){if(a=s(o),a===null)throw Error(r(188));return a!==o?null:o}for(var u=o,h=a;;){var _=u.return;if(_===null)break;var w=_.alternate;if(w===null){if(h=_.return,h!==null){u=h;continue}break}if(_.child===w.child){for(w=_.child;w;){if(w===u)return d(_),o;if(w===h)return d(_),a;w=w.sibling}throw Error(r(188))}if(u.return!==h.return)u=_,h=w;else{for(var N=!1,$=_.child;$;){if($===u){N=!0,u=_,h=w;break}if($===h){N=!0,h=_,u=w;break}$=$.sibling}if(!N){for($=w.child;$;){if($===u){N=!0,u=w,h=_;break}if($===h){N=!0,h=w,u=_;break}$=$.sibling}if(!N)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?o:a}function m(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o;for(o=o.child;o!==null;){if(a=m(o),a!==null)return a;o=o.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),R=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function B(o){return o===null||typeof o!="object"?null:(o=j&&o[j]||o["@@iterator"],typeof o=="function"?o:null)}var U=Symbol.for("react.client.reference");function Z(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===U?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case b:return"Fragment";case S:return"Profiler";case x:return"StrictMode";case O:return"Suspense";case A:return"SuspenseList";case L:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case y:return"Portal";case R:return o.displayName||"Context";case E:return(o._context.displayName||"Context")+".Consumer";case C:var a=o.render;return o=o.displayName,o||(o=a.displayName||a.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case M:return a=o.displayName||null,a!==null?a:Z(o.type)||"Memo";case P:a=o._payload,o=o._init;try{return Z(o(a))}catch{}}return null}var re=Array.isArray,q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ae=[],Q=-1;function k(o){return{current:o}}function K(o){0>Q||(o.current=ae[Q],ae[Q]=null,Q--)}function V(o,a){Q++,ae[Q]=o.current,o.current=a}var D=k(null),F=k(null),X=k(null),fe=k(null);function pe(o,a){switch(V(X,a),V(F,o),V(D,null),a.nodeType){case 9:case 11:o=(o=a.documentElement)&&(o=o.namespaceURI)?w2(o):0;break;default:if(o=a.tagName,a=a.namespaceURI)a=w2(a),o=S2(a,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}K(D),V(D,o)}function xe(){K(D),K(F),K(X)}function Ue(o){o.memoizedState!==null&&V(fe,o);var a=D.current,u=S2(a,o.type);a!==u&&(V(F,o),V(D,u))}function Y(o){F.current===o&&(K(D),K(F)),fe.current===o&&(K(fe),ju._currentValue=ee)}var te,ve;function se(o){if(te===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);te=a&&a[1]||"",ve=-1<u.stack.indexOf(`
3
3
  at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
4
4
  `+te+o+ve}var we=!1;function Oe(o,a){if(!o||we)return"";we=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(a){var Se=function(){throw Error()};if(Object.defineProperty(Se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Se,[])}catch(ge){var he=ge}Reflect.construct(o,[],Se)}else{try{Se.call()}catch(ge){he=ge}o.call(Se.prototype)}}else{try{throw Error()}catch(ge){he=ge}(Se=o())&&typeof Se.catch=="function"&&Se.catch(function(){})}}catch(ge){if(ge&&he&&typeof ge.stack=="string")return[ge.stack,he.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var _=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");_&&_.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=h.DetermineComponentFrameRoot(),N=w[0],$=w[1];if(N&&$){var J=N.split(`
@@ -168,4 +168,4 @@ ${r}
168
168
  ${r}
169
169
  }`)}if(n.length>0){const r=document.createElement("style");r.id="mesh-theme-overrides",r.textContent=n.join(`
170
170
 
171
- `),document.head.appendChild(r)}}function Xse(e){const t=Ro.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:GM.publicConfig(),queryFn:Wse,staleTime:1/0},t[0]=r):r=t[0];const{data:i}=HM(r),[s]=Zse();i.internalUrl&&Use(i.internalUrl);let l,c;t[1]!==i.theme?(l=()=>{Qse(i.theme)},c=[i.theme],t[1]=i.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),I.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const p=document.documentElement;if(s.theme==="dark"){p.classList.add("dark");return}if(s.theme==="light"){p.classList.remove("dark");return}const g=window.matchMedia("(prefers-color-scheme: dark)"),v=b=>p.classList.toggle("dark",b);v(g.matches);const y=b=>v(b.matches);return g.addEventListener("change",y),()=>g.removeEventListener("change",y)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),I.useLayoutEffect(d,f);let m;return t[7]!==n?(m=T.jsx(T.Fragment,{children:n}),t[7]=n,t[8]=m):m=t[8],m}const Jse=new bj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function eae(e){const t=Ro.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=T.jsx(hH,{}),t[0]=r):r=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx(jD,{}),t[1]=i):i=t[1];let s;return t[2]!==n?(s=T.jsxs(wj,{client:Jse,children:[r,T.jsx(I.Suspense,{fallback:i,children:T.jsx(Xse,{children:T.jsx(Lj,{children:T.jsx(Fee,{children:T.jsx(Wne,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function tae(...e){return BP(hw(e))}const nae=y4("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function Y1(e){const t=Ro.c(14);let n,r,i,s,l;t[0]!==e?({className:n,variant:l,size:i,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=l):(n=t[1],r=t[2],i=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?$w:"button";let f;t[6]!==n||t[7]!==i||t[8]!==l?(f=tae(nae({variant:l,size:i,className:n})),t[6]=n,t[7]=i,t[8]=l,t[9]=f):f=t[9];let m;return t[10]!==d||t[11]!==r||t[12]!==f?(m=T.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=m):m=t[13],m}const CM="__mesh_chunk_reload_ts";function AM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class rce extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),kD(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:T.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(PS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(Y1,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class rae extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=AM(t);if(kD(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const i=sessionStorage.getItem(CM),s=Date.now();(!i||s-Number(i)>1e4)&&(sessionStorage.setItem(CM,String(s)),window.location.reload())}render(){return this.state.hasError&&AM(this.state.error)?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:T.jsx($D,{className:"h-6 w-6 text-primary"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),T.jsx(Y1,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(PS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(Y1,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}const iae="MCP Workflows",oae="Create workflows using your MCP tools",sae=I.lazy(()=>At(()=>import("./plugin-header-CnnrJKt7.js"),__vite__mapDeps([0,1]))),aae=I.lazy(()=>At(()=>import("./plugin-empty-state-C1qJ21wH.js"),[])),lae={id:iae,description:oae,bindingName:"WORKFLOW",renderHeader:e=>T.jsx(sae,{...e}),renderEmptyState:()=>T.jsx(aae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:T.jsx(DD,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},cae=[lae],ma=t7({component:()=>T.jsx(rae,{children:T.jsx(eae,{children:T.jsx(I.Suspense,{fallback:T.jsx(jD,{}),children:T.jsx(mP,{})})})})}),uae=mt({getParentRoute:()=>ma,path:"/login",component:It(()=>At(()=>import("./login-D1QEp6zv.js"),__vite__mapDeps([2,3]))),validateSearch:ul(()=>Ee({next:z().optional(),client_id:z().optional(),redirect_uri:z().optional(),response_type:z().optional(),state:z().optional(),scope:z().optional(),code_challenge:z().optional(),code_challenge_method:z().optional()}))}),dae=mt({getParentRoute:()=>ma,path:"/reset-password",component:It(()=>At(()=>import("./reset-password-kcnAbcv3.js"),__vite__mapDeps([4,3]))),validateSearch:ul(()=>Ee({token:z().optional(),error:z().optional()}))}),fae=mt({getParentRoute:()=>ma,path:"/auth/$pathname",component:It(()=>At(()=>import("./auth-catchall-DdrEC2nk.js"),[]))}),hae=mt({getParentRoute:()=>ma,path:"/oauth/callback",component:It(()=>At(()=>import("./oauth-callback-DvWEpCtv.js"),[]))}),pae=mt({getParentRoute:()=>ma,path:"/oauth/callback/ai-provider",component:It(()=>At(()=>import("./oauth-callback-ai-provider-D6aB3jn_.js"),[]))}),rE=mt({getParentRoute:()=>ma,id:"shell",component:It(()=>At(()=>import("./shell-layout-B8B_ABl6.js").then(e=>e.s),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14])))}),mae=mt({getParentRoute:()=>rE,path:"/",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(!e)return;const t=localStorage.getItem(Rg.lastOrgSlug());if(t){if(e.some(i=>i.slug===t))throw Oc({to:"/$org",params:{org:t}});localStorage.removeItem(Rg.lastOrgSlug())}const n=e[0];throw Oc(n?{to:"/$org",params:{org:n.slug}}:{to:"/onboarding"})}}),gae=mt({getParentRoute:()=>ma,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(e&&e.length>0)throw Oc({to:"/"})},component:It(()=>At(()=>import("./onboarding-CSq15NJd.js"),__vite__mapDeps([15,8,3,16,17,18,19])))}),iE=mt({getParentRoute:()=>rE,path:"/$org",component:It(()=>At(()=>import("./org-layout-BcG-IuRM.js"),[]))}),oE=mt({getParentRoute:()=>iE,id:"org-shell",component:It(()=>At(()=>import("./index-6xFo1iCj.js"),__vite__mapDeps([20,21,22,7,23,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,39,14,40,41,42,43,44,45,46,47,5,6,8,9,10,11,12,13,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,16,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104])))}),sE=mt({getParentRoute:()=>oE,id:"agent-shell",component:It(()=>At(()=>import("./index-DC8ny_LW.js"),__vite__mapDeps([105,68,6,7,69,3,70,10,11,71,72,55,28,73,38,74,1,14,24,25,26,27,29,30,31,32,17,18,33,34,35,36,37,19,21,22,39,40,41,42,43,44,45,46,47,75,76,77,62,59,67,54,56,57,58,9,12,5,8,13,48,49,50,51,52,53,78,65,16,79,80,81,82,60,83,84,85,63,64,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,106,107,61,23,66,101,102,103,104,108,109,110,111,112,113,114,115,116])))}),vae=Ee({virtualmcpid:z().optional(),tab:z().optional(),main:z().optional(),id:z().optional(),toolName:z().optional(),tasks:St().optional(),mainOpen:St().optional(),chat:St().optional(),autosend:z().optional()}),O6=mt({getParentRoute:()=>sE,path:"/$taskId",validateSearch:vae,component:()=>null}),_ae=mt({getParentRoute:()=>oE,path:"/",component:It(()=>At(()=>import("./index-DiI3qNgk.js"),__vite__mapDeps([117,59,36,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,37,19,38,21,22,7,39,14,40,41,42,43,44,45,46,47,60,11,55,10,12,71,72,6,73,74,70,75,76,77,62,67,68,69,3,54,56,57,58,9,5,8,13,48,49,50,51,52,53,78,65,16,79,80,81,82,83,84,85,63,64,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,102])))}),Pn=mt({getParentRoute:()=>iE,path:"/settings",component:It(()=>At(()=>import("./settings-layout-DMvCQRt1.js"),__vite__mapDeps([118,21,22,7,29,32,17,33,14,44,46,47,108,89,57,58])))}),yae=mt({getParentRoute:()=>Pn,path:"/",beforeLoad:({params:e})=>{throw Oc({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),bae=mt({getParentRoute:()=>Pn,path:"/connections",component:It(()=>At(()=>import("./connections-DDRTvEHs.js"),__vite__mapDeps([119,76,77,120,79,1,33,35,27,22,113,96,115,38,95,91,90,92,70,10,11,12,93,94,75,85,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,21,7,39,14,40,41,42,43,44,45,46,47,103,121,64,99,122,123,74,6,62,65,16,3,80,97,55,98]))),validateSearch:ul(()=>Ee({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),wae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug",component:It(()=>At(()=>import("./connection-detail-CteDwS0C.js"),__vite__mapDeps([124,76,77,103,98,3,42,45,125,11,67,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,21,22,7,39,14,40,41,43,44,46,47,70,10,126,127,75,92,12,80,107,61,55,102,72,111,96,53,128,129,63,78,59,65,16,121,64,130,131,90,73,85,79]))),validateSearch:ul(()=>Ee({tab:z().optional()}))}),Sae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug/$collectionName/$itemId",component:It(()=>At(()=>import("./collection-detail-CwiJKTp0.js"),__vite__mapDeps([132,103,10,11,65,16,3,97,130,21,22,7,133,126,77,127,55,134,49,109,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,39,14,40,41,42,43,44,45,46,47,96,80,113,70,67,6,88,79,59,112,66,135,58,53,125,75,76,92,12,107,61,102,72,90,111,52,54,56,57,9,5,8,13]))),validateSearch:ul(()=>Ee({replayId:z().optional()}))}),Eae=mt({getParentRoute:()=>Pn,path:"/monitor",component:It(()=>At(()=>import("./index-C656JC4f.js"),__vite__mapDeps([136,115,38,21,22,7,103,96,61,1,30,41,24,25,26,27,28,29,31,32,17,18,33,34,35,36,37,19,39,14,40,42,43,44,45,46,47,134,49,128,129,70,10,11,55,3,74,106,107,80,112,97,95,69,16,59,63,85,131,127,67,90,100,94,137,99,93,48,50,51,6,52,53,54,56,57,58,9,12,5,8,13,104]))),validateSearch:ul(()=>Ee({tab:dn(["overview","audit","threads"]).default("overview"),from:z().default("now-30m"),to:z().default("now"),connectionId:Ie(z()).optional().default([]),virtualMcpId:Ie(z()).optional().default([]),tool:z().default(""),status:dn(["all","success","errors"]).default("all"),search:z().default(""),page:St().optional(),streaming:Pt().default(!0),propertyFilters:z().default(""),hideSystem:Pt().default(!1)}))}),xae=mt({getParentRoute:()=>Pn,path:"/general",component:It(()=>At(()=>import("./general-B4yYUcgX.js"),__vite__mapDeps([138,21,22,7,129,63,46,3,84,85,31,139,87,11,69,101,38,55,10,61,60,24,25,26,27,28,29,30,32,17,18,1,33,34,35,36,37,19,39,14,40,41,42,43,44,45,47,59,12])))}),Rae=mt({getParentRoute:()=>Pn,path:"/features",component:It(()=>At(()=>import("./features-Dlqphz2t.js"),__vite__mapDeps([140,21,22,7,12,11,69,36,84,85,31])))}),Oae=mt({getParentRoute:()=>Pn,path:"/brand-context",component:It(()=>At(()=>import("./brand-context-CHgKeNYL.js"),__vite__mapDeps([141,11,1,33,37,39,42,45,7,47,64,3,97,21,22,87])))}),Tae=mt({getParentRoute:()=>Pn,path:"/ai-providers",component:It(()=>At(()=>import("./ai-providers-BrRsZwwm.js"),__vite__mapDeps([142,82,74,1,3,6,7,62,22,80,34,60,26,28,38,43,56,11,54,55,10,57,58,9,12,83,47,25,18,45,21,84,85,31,69,81,63,46,64,86,51,87])))}),Cae=mt({getParentRoute:()=>Pn,path:"/members",component:It(()=>At(()=>import("./members-CW5_GrD2.js"),__vite__mapDeps([143,120,79,1,33,35,27,22,113,96,115,38,21,7,144,137,103,6,65,16,80,34,97,129,145,128,11,64,63,46,85,44,45,74,106,107,61,42])))}),Aae=mt({getParentRoute:()=>Pn,path:"/roles",component:It(()=>At(()=>import("./roles-DYIwGuDN.js"),__vite__mapDeps([146,145,129,96,64,79,1,33,35,14,42,45,144,137,27,21,22,7,103,115,38,83,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,39,40,41,43,44,46,47,99,74,100,94,11,73,128,70,10,56,63,69,84,85]))),validateSearch:ul(()=>Ee({role:z().optional()}))}),Iae=mt({getParentRoute:()=>Pn,path:"/sso",component:It(()=>At(()=>import("./sso-D0aPF4WO.js"),__vite__mapDeps([147,139,87,11,69,84,85,31,21,22,7,3,13,45])))}),Mae=mt({getParentRoute:()=>Pn,path:"/profile",component:It(()=>At(()=>import("./profile-CPpu_rOC.js"),__vite__mapDeps([148,21,22,7,63,46,69,80,1,34,81,3,40,41,89,66,84,85,31])))}),Pae=mt({getParentRoute:()=>Pn,path:"/store",component:It(()=>At(()=>import("./store-dscxfYPH.js"),__vite__mapDeps([149,25,33,42,45,3,69,60,63,46,61,70,10,11,21,22,7,92,12,84,85,31])))}),Nae=mt({getParentRoute:()=>Pn,path:"/registry",component:It(()=>At(()=>import("./registry-BsoIBUPl.js"),[]))}),kae=mt({getParentRoute:()=>Pn,path:"/store/registry",component:It(()=>At(()=>import("./store-registry-D40XBFQ3.js"),[]))}),Dae=mt({getParentRoute:()=>Pn,path:"/workflows",component:It(()=>At(()=>import("./workflow-C2dwTU43.js"),__vite__mapDeps([150,11,76,77,120,79,1,33,35,27,22,113,96,73,38,85,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,21,7,39,14,40,41,42,43,44,45,46,47,144,137,135,110,63,103,122,123,90,64,10,70,130])))}),Lae=mt({getParentRoute:()=>Pn,path:"/workflows/$itemId",component:It(()=>At(()=>import("./workflow-detail-BcRuChZH.js"),__vite__mapDeps([151,133,126,11,77,127,55,10,134,49,109,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,21,22,7,39,14,40,41,42,43,44,45,46,47,96,80,113,130,70,67,6,88,79,59,112,66,135,58,3])))}),$ae=mt({getParentRoute:()=>sE,path:"/plugins/$pluginId",component:It(()=>At(()=>import("./org-plugin-layout-R-CfCKdC.js"),__vite__mapDeps([152,153,70,10,11,43,21,22,7])))}),jae=mt({getParentRoute:()=>Pn,path:"/agents",component:It(()=>At(()=>import("./agents-list-DUOWHygM.js"),__vite__mapDeps([154,79,1,33,35,17,71,11,72,55,10,6,7,28,73,38,74,70,14,24,25,26,27,29,30,31,32,18,34,36,37,19,21,22,39,40,41,42,43,44,45,46,47,75,76,77,62,59,67,85,86,51,103,102,64,115])))}),Uae=mt({getParentRoute:()=>Pn,path:"/automations",component:It(()=>At(()=>import("./automations-BGpDui88.js"),__vite__mapDeps([155,42,47,115,38,21,22,7,103,114,64,79,1,33,35,24,25,26,27,28,29,30,31,32,17,18,34,36,37,19,39,14,40,41,43,44,45,46,55,10,11,72])))}),T6=mt({getParentRoute:()=>O6,path:"/$pluginId",component:It(()=>At(()=>import("./dynamic-plugin-layout-COSx8up3.js"),__vite__mapDeps([156,153,70,10,11,43,21,22,7])))}),zae=[],Fae=[],Bae=[],C6=[];cae.forEach(e=>{if(!e.setup)return;const t={parentRoute:T6,routing:{createRoute:mt,lazyRouteComponent:It},registerRootSidebarItem:n=>zae.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Fae.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>Bae.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{C6.push(...n)}};e.setup(t)});const Vae=T6.addChildren(C6),qae=Pn.addChildren([yae,bae,wae,Sae,jae,Uae,Eae,xae,Rae,Oae,Tae,Cae,Aae,Iae,Mae,Pae,kae,Nae,Dae,Lae]),Hae=O6.addChildren([Vae]),Gae=sE.addChildren([Hae,$ae]),Kae=oE.addChildren([_ae,Gae]),Zae=iE.addChildren([Kae,qae]),Yae=rE.addChildren([mae,Zae]),Wae=ma.addChildren([Yae,gae,uae,dae,fae,hae,pae]),Qae=u7({routeTree:Wae,defaultNotFoundComponent:()=>T.jsx("div",{className:"flex h-full items-center justify-center",children:T.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[T.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),T.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),T.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})}),Xae=document.getElementById("root");Q$.createRoot(Xae).render(T.jsx(I.StrictMode,{children:T.jsx(h7,{router:Qae})}));export{KM as $,Ile as A,Y1 as B,To as C,tG as D,rce as E,Jle as F,tce as G,Ee as H,St as I,z as J,GM as K,dw as L,$D as M,lle as N,mP as O,Zse as P,Hse as Q,Rg as R,jD as S,LJ as T,Yr as U,Xle as V,zae as W,Fae as X,iae as Y,DD as Z,At as _,kj as a,Ye as a$,ole as a0,xo as a1,eee as a2,ht as a3,no as a4,cW as a5,uW as a6,yn as a7,lt as a8,dW as a9,t3 as aA,sY as aB,cY as aC,aY as aD,ZZ as aE,Rle as aF,Bae as aG,ele as aH,Ut as aI,Xt as aJ,Ie as aK,JH as aL,Qle as aM,Wle as aN,qS as aO,vg as aP,DY as aQ,x3 as aR,X4 as aS,lf as aT,ta as aU,kY as aV,ds as aW,y4 as aX,$w as aY,Wr as aZ,Pt as a_,fW as aa,mW as ab,bW as ac,I3 as ad,fl as ae,hW as af,pW as ag,gW as ah,vW as ai,_W as aj,yW as ak,wW as al,EW as am,xW as an,Ig as ao,dn as ap,fC as aq,W1 as ar,iY as as,ro as at,Kd as au,Yw as av,jc as aw,aa as ax,fs as ay,io as az,Mg as b,nZ as b$,RV as b0,BP as b1,hw as b2,Rk as b3,Tk as b4,YW as b5,Wn as b6,wQ as b7,d3 as b8,Q4 as b9,wre as bA,xre as bB,Dre as bC,Zre as bD,Qre as bE,bre as bF,Sre as bG,Rre as bH,Ore as bI,Lre as bJ,qre as bK,Vle as bL,cae as bM,pV as bN,cle as bO,ple as bP,gq as bQ,ul as bR,VN as bS,GN as bT,dle as bU,nce as bV,rG as bW,nG as bX,u4 as bY,pf as bZ,eZ as b_,nae as ba,la as bb,ne as bc,Jae as bd,iZ as be,Dle as bf,uP as bg,ca as bh,as as bi,kle as bj,Lle as bk,rn as bl,ule as bm,qN as bn,zre as bo,Fre as bp,BS as bq,l6 as br,VS as bs,nv as bt,GD as bu,tie as bv,ZD as bw,Wre as bx,cie as by,yre as bz,tae as c,n6 as c$,rZ as c0,af as c1,qM as c2,Aj as c3,S3 as c4,wY as c5,zw as c6,h3 as c7,k4 as c8,Fw as c9,Yle as cA,eoe as cB,pt as cC,Hoe as cD,to as cE,XW as cF,fP as cG,Cle as cH,oZ as cI,sZ as cJ,tZ as cK,aZ as cL,Bz as cM,HD as cN,YD as cO,XD as cP,e6 as cQ,t6 as cR,r6 as cS,Fle as cT,Ble as cU,Ule as cV,zle as cW,Jne as cX,jle as cY,WD as cZ,JD as c_,Gd as ca,R4 as cb,Uw as cc,jw as cd,SY as ce,EY as cf,oQ as cg,sQ as ch,iQ as ci,Or as cj,ale as ck,QH as cl,YH as cm,HH as cn,n4 as co,HV as cp,ww as cq,EV as cr,fle as cs,ZV as ct,Ew as cu,Sw as cv,XV as cw,hle as cx,Zle as cy,_se as cz,uw as d,Hle as d0,QD as d1,Kle as d2,NS as d3,fre as d4,$le as d5,qD as d6,Die as d7,Vre as d8,Gle as d9,Tie as da,Iie as db,die as dc,uie as dd,qle as de,mle as df,BW as dg,VW as dh,GW as di,qW as dj,HW as dk,_le as dl,yle as dm,Ele as dn,xle as dp,Ole as dq,Sle as dr,wle as ds,ble as dt,vle as du,gle as dv,UM as dw,yO as dx,nle as dy,tle as dz,Ro as e,rf as f,cw as g,Mle as h,Ale as i,T as j,Ple as k,LD as l,ece as m,Nj as n,tw as o,PM as p,Zn as q,I as r,Xne as s,Nle as t,sle as u,ile as v,HM as w,RT as x,PS as y,Oo as z};
171
+ `),document.head.appendChild(r)}}function Xse(e){const t=Ro.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:GM.publicConfig(),queryFn:Wse,staleTime:1/0},t[0]=r):r=t[0];const{data:i}=HM(r),[s]=Zse();i.internalUrl&&Use(i.internalUrl);let l,c;t[1]!==i.theme?(l=()=>{Qse(i.theme)},c=[i.theme],t[1]=i.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),I.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const p=document.documentElement;if(s.theme==="dark"){p.classList.add("dark");return}if(s.theme==="light"){p.classList.remove("dark");return}const g=window.matchMedia("(prefers-color-scheme: dark)"),v=b=>p.classList.toggle("dark",b);v(g.matches);const y=b=>v(b.matches);return g.addEventListener("change",y),()=>g.removeEventListener("change",y)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),I.useLayoutEffect(d,f);let m;return t[7]!==n?(m=T.jsx(T.Fragment,{children:n}),t[7]=n,t[8]=m):m=t[8],m}const Jse=new bj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function eae(e){const t=Ro.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=T.jsx(hH,{}),t[0]=r):r=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx(jD,{}),t[1]=i):i=t[1];let s;return t[2]!==n?(s=T.jsxs(wj,{client:Jse,children:[r,T.jsx(I.Suspense,{fallback:i,children:T.jsx(Xse,{children:T.jsx(Lj,{children:T.jsx(Fee,{children:T.jsx(Wne,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function tae(...e){return BP(hw(e))}const nae=y4("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function Y1(e){const t=Ro.c(14);let n,r,i,s,l;t[0]!==e?({className:n,variant:l,size:i,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=l):(n=t[1],r=t[2],i=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?$w:"button";let f;t[6]!==n||t[7]!==i||t[8]!==l?(f=tae(nae({variant:l,size:i,className:n})),t[6]=n,t[7]=i,t[8]=l,t[9]=f):f=t[9];let m;return t[10]!==d||t[11]!==r||t[12]!==f?(m=T.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=m):m=t[13],m}const CM="__mesh_chunk_reload_ts";function AM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class rce extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),kD(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:T.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(PS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(Y1,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class rae extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=AM(t);if(kD(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const i=sessionStorage.getItem(CM),s=Date.now();(!i||s-Number(i)>1e4)&&(sessionStorage.setItem(CM,String(s)),window.location.reload())}render(){return this.state.hasError&&AM(this.state.error)?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:T.jsx($D,{className:"h-6 w-6 text-primary"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),T.jsx(Y1,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(PS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(Y1,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}const iae="MCP Workflows",oae="Create workflows using your MCP tools",sae=I.lazy(()=>At(()=>import("./plugin-header-D19z2yPe.js"),__vite__mapDeps([0,1]))),aae=I.lazy(()=>At(()=>import("./plugin-empty-state-D34qTA46.js"),[])),lae={id:iae,description:oae,bindingName:"WORKFLOW",renderHeader:e=>T.jsx(sae,{...e}),renderEmptyState:()=>T.jsx(aae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:T.jsx(DD,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},cae=[lae],ma=t7({component:()=>T.jsx(rae,{children:T.jsx(eae,{children:T.jsx(I.Suspense,{fallback:T.jsx(jD,{}),children:T.jsx(mP,{})})})})}),uae=mt({getParentRoute:()=>ma,path:"/login",component:It(()=>At(()=>import("./login-Qjtx70Ay.js"),__vite__mapDeps([2,3]))),validateSearch:ul(()=>Ee({next:z().optional(),client_id:z().optional(),redirect_uri:z().optional(),response_type:z().optional(),state:z().optional(),scope:z().optional(),code_challenge:z().optional(),code_challenge_method:z().optional()}))}),dae=mt({getParentRoute:()=>ma,path:"/reset-password",component:It(()=>At(()=>import("./reset-password-CaWZrhgz.js"),__vite__mapDeps([4,3]))),validateSearch:ul(()=>Ee({token:z().optional(),error:z().optional()}))}),fae=mt({getParentRoute:()=>ma,path:"/auth/$pathname",component:It(()=>At(()=>import("./auth-catchall-BoFlqYg1.js"),[]))}),hae=mt({getParentRoute:()=>ma,path:"/oauth/callback",component:It(()=>At(()=>import("./oauth-callback-Cgk_ji97.js"),[]))}),pae=mt({getParentRoute:()=>ma,path:"/oauth/callback/ai-provider",component:It(()=>At(()=>import("./oauth-callback-ai-provider-BWQb53Zq.js"),[]))}),rE=mt({getParentRoute:()=>ma,id:"shell",component:It(()=>At(()=>import("./shell-layout-C3cZnoYI.js").then(e=>e.s),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14])))}),mae=mt({getParentRoute:()=>rE,path:"/",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(!e)return;const t=localStorage.getItem(Rg.lastOrgSlug());if(t){if(e.some(i=>i.slug===t))throw Oc({to:"/$org",params:{org:t}});localStorage.removeItem(Rg.lastOrgSlug())}const n=e[0];throw Oc(n?{to:"/$org",params:{org:n.slug}}:{to:"/onboarding"})}}),gae=mt({getParentRoute:()=>ma,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(e&&e.length>0)throw Oc({to:"/"})},component:It(()=>At(()=>import("./onboarding-BJq0uANa.js"),__vite__mapDeps([15,8,3,16,17,18,19])))}),iE=mt({getParentRoute:()=>rE,path:"/$org",component:It(()=>At(()=>import("./org-layout-BOmngSEh.js"),[]))}),oE=mt({getParentRoute:()=>iE,id:"org-shell",component:It(()=>At(()=>import("./index-CUHQFzXU.js"),__vite__mapDeps([20,21,22,7,23,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,39,14,40,41,42,43,44,45,46,47,5,6,8,9,10,11,12,13,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,16,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104])))}),sE=mt({getParentRoute:()=>oE,id:"agent-shell",component:It(()=>At(()=>import("./index-Db1yn84L.js"),__vite__mapDeps([105,68,6,7,69,3,70,10,11,71,72,55,28,73,38,74,1,14,24,25,26,27,29,30,31,32,17,18,33,34,35,36,37,19,21,22,39,40,41,42,43,44,45,46,47,75,76,77,62,59,67,54,56,57,58,9,12,5,8,13,48,49,50,51,52,53,78,65,16,79,80,81,82,60,83,84,85,63,64,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,106,107,61,23,66,101,102,103,104,108,109,110,111,112,113,114,115,116])))}),vae=Ee({virtualmcpid:z().optional(),tab:z().optional(),main:z().optional(),id:z().optional(),toolName:z().optional(),tasks:St().optional(),mainOpen:St().optional(),chat:St().optional(),autosend:z().optional()}),O6=mt({getParentRoute:()=>sE,path:"/$taskId",validateSearch:vae,component:()=>null}),_ae=mt({getParentRoute:()=>oE,path:"/",component:It(()=>At(()=>import("./index-BUabcSp1.js"),__vite__mapDeps([117,59,36,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,37,19,38,21,22,7,39,14,40,41,42,43,44,45,46,47,60,11,55,10,12,71,72,6,73,74,70,75,76,77,62,67,68,69,3,54,56,57,58,9,5,8,13,48,49,50,51,52,53,78,65,16,79,80,81,82,83,84,85,63,64,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,102])))}),Pn=mt({getParentRoute:()=>iE,path:"/settings",component:It(()=>At(()=>import("./settings-layout-CKeL2zhm.js"),__vite__mapDeps([118,21,22,7,29,32,17,33,14,44,46,47,108,89,57,58])))}),yae=mt({getParentRoute:()=>Pn,path:"/",beforeLoad:({params:e})=>{throw Oc({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),bae=mt({getParentRoute:()=>Pn,path:"/connections",component:It(()=>At(()=>import("./connections-BOpJFAVW.js"),__vite__mapDeps([119,76,77,120,79,1,33,35,27,22,113,96,115,38,95,91,90,92,70,10,11,12,93,94,75,85,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,21,7,39,14,40,41,42,43,44,45,46,47,103,121,64,99,122,123,74,6,62,65,16,3,80,97,55,98]))),validateSearch:ul(()=>Ee({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),wae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug",component:It(()=>At(()=>import("./connection-detail-BvkQKjE1.js"),__vite__mapDeps([124,76,77,103,98,3,42,45,125,11,67,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,21,22,7,39,14,40,41,43,44,46,47,70,10,126,127,75,92,12,80,107,61,55,102,72,111,96,53,128,129,63,78,59,65,16,121,64,130,131,90,73,85,79]))),validateSearch:ul(()=>Ee({tab:z().optional()}))}),Sae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug/$collectionName/$itemId",component:It(()=>At(()=>import("./collection-detail-tXsv3iGO.js"),__vite__mapDeps([132,103,10,11,65,16,3,97,130,21,22,7,133,126,77,127,55,134,49,109,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,39,14,40,41,42,43,44,45,46,47,96,80,113,70,67,6,88,79,59,112,66,135,58,53,125,75,76,92,12,107,61,102,72,90,111,52,54,56,57,9,5,8,13]))),validateSearch:ul(()=>Ee({replayId:z().optional()}))}),Eae=mt({getParentRoute:()=>Pn,path:"/monitor",component:It(()=>At(()=>import("./index-D2cvrx8-.js"),__vite__mapDeps([136,115,38,21,22,7,103,96,61,1,30,41,24,25,26,27,28,29,31,32,17,18,33,34,35,36,37,19,39,14,40,42,43,44,45,46,47,134,49,128,129,70,10,11,55,3,74,106,107,80,112,97,95,69,16,59,63,85,131,127,67,90,100,94,137,99,93,48,50,51,6,52,53,54,56,57,58,9,12,5,8,13,104]))),validateSearch:ul(()=>Ee({tab:dn(["overview","audit","threads"]).default("overview"),from:z().default("now-30m"),to:z().default("now"),connectionId:Ie(z()).optional().default([]),virtualMcpId:Ie(z()).optional().default([]),tool:z().default(""),status:dn(["all","success","errors"]).default("all"),search:z().default(""),page:St().optional(),streaming:Pt().default(!0),propertyFilters:z().default(""),hideSystem:Pt().default(!1)}))}),xae=mt({getParentRoute:()=>Pn,path:"/general",component:It(()=>At(()=>import("./general-CkXiaAh9.js"),__vite__mapDeps([138,21,22,7,129,63,46,3,84,85,31,139,87,11,69,101,38,55,10,61,60,24,25,26,27,28,29,30,32,17,18,1,33,34,35,36,37,19,39,14,40,41,42,43,44,45,47,59,12])))}),Rae=mt({getParentRoute:()=>Pn,path:"/features",component:It(()=>At(()=>import("./features-BRMl1rr6.js"),__vite__mapDeps([140,21,22,7,12,11,69,36,84,85,31])))}),Oae=mt({getParentRoute:()=>Pn,path:"/brand-context",component:It(()=>At(()=>import("./brand-context-DIIOMD2x.js"),__vite__mapDeps([141,11,1,33,37,39,42,45,7,47,64,3,97,21,22,87])))}),Tae=mt({getParentRoute:()=>Pn,path:"/ai-providers",component:It(()=>At(()=>import("./ai-providers-BRoGM2rY.js"),__vite__mapDeps([142,82,74,1,3,6,7,62,22,80,34,60,26,28,38,43,56,11,54,55,10,57,58,9,12,83,47,25,18,45,21,84,85,31,69,81,63,46,64,86,51,87])))}),Cae=mt({getParentRoute:()=>Pn,path:"/members",component:It(()=>At(()=>import("./members-CB5ygrXY.js"),__vite__mapDeps([143,120,79,1,33,35,27,22,113,96,115,38,21,7,144,137,103,6,65,16,80,34,97,129,145,128,11,64,63,46,85,44,45,74,106,107,61,42])))}),Aae=mt({getParentRoute:()=>Pn,path:"/roles",component:It(()=>At(()=>import("./roles-ychtuZ_l.js"),__vite__mapDeps([146,145,129,96,64,79,1,33,35,14,42,45,144,137,27,21,22,7,103,115,38,83,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,39,40,41,43,44,46,47,99,74,100,94,11,73,128,70,10,56,63,69,84,85]))),validateSearch:ul(()=>Ee({role:z().optional()}))}),Iae=mt({getParentRoute:()=>Pn,path:"/sso",component:It(()=>At(()=>import("./sso-C4f0AfMQ.js"),__vite__mapDeps([147,139,87,11,69,84,85,31,21,22,7,3,13,45])))}),Mae=mt({getParentRoute:()=>Pn,path:"/profile",component:It(()=>At(()=>import("./profile-_mVuN_Pw.js"),__vite__mapDeps([148,21,22,7,63,46,69,80,1,34,81,3,40,41,89,66,84,85,31])))}),Pae=mt({getParentRoute:()=>Pn,path:"/store",component:It(()=>At(()=>import("./store-CEIp74Dt.js"),__vite__mapDeps([149,25,33,42,45,3,69,60,63,46,61,70,10,11,21,22,7,92,12,84,85,31])))}),Nae=mt({getParentRoute:()=>Pn,path:"/registry",component:It(()=>At(()=>import("./registry-BYjdxPj0.js"),[]))}),kae=mt({getParentRoute:()=>Pn,path:"/store/registry",component:It(()=>At(()=>import("./store-registry-B0W6zcCj.js"),[]))}),Dae=mt({getParentRoute:()=>Pn,path:"/workflows",component:It(()=>At(()=>import("./workflow-w5_7cK4m.js"),__vite__mapDeps([150,11,76,77,120,79,1,33,35,27,22,113,96,73,38,85,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,21,7,39,14,40,41,42,43,44,45,46,47,144,137,135,110,63,103,122,123,90,64,10,70,130])))}),Lae=mt({getParentRoute:()=>Pn,path:"/workflows/$itemId",component:It(()=>At(()=>import("./workflow-detail-hy-jKDKn.js"),__vite__mapDeps([151,133,126,11,77,127,55,10,134,49,109,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,21,22,7,39,14,40,41,42,43,44,45,46,47,96,80,113,130,70,67,6,88,79,59,112,66,135,58,3])))}),$ae=mt({getParentRoute:()=>sE,path:"/plugins/$pluginId",component:It(()=>At(()=>import("./org-plugin-layout-DYC_-fTx.js"),__vite__mapDeps([152,153,70,10,11,43,21,22,7])))}),jae=mt({getParentRoute:()=>Pn,path:"/agents",component:It(()=>At(()=>import("./agents-list-mS9MVQZN.js"),__vite__mapDeps([154,79,1,33,35,17,71,11,72,55,10,6,7,28,73,38,74,70,14,24,25,26,27,29,30,31,32,18,34,36,37,19,21,22,39,40,41,42,43,44,45,46,47,75,76,77,62,59,67,85,86,51,103,102,64,115])))}),Uae=mt({getParentRoute:()=>Pn,path:"/automations",component:It(()=>At(()=>import("./automations-PZEFUnMk.js"),__vite__mapDeps([155,42,47,115,38,21,22,7,103,114,64,79,1,33,35,24,25,26,27,28,29,30,31,32,17,18,34,36,37,19,39,14,40,41,43,44,45,46,55,10,11,72])))}),T6=mt({getParentRoute:()=>O6,path:"/$pluginId",component:It(()=>At(()=>import("./dynamic-plugin-layout-BBI0fzcH.js"),__vite__mapDeps([156,153,70,10,11,43,21,22,7])))}),zae=[],Fae=[],Bae=[],C6=[];cae.forEach(e=>{if(!e.setup)return;const t={parentRoute:T6,routing:{createRoute:mt,lazyRouteComponent:It},registerRootSidebarItem:n=>zae.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Fae.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>Bae.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{C6.push(...n)}};e.setup(t)});const Vae=T6.addChildren(C6),qae=Pn.addChildren([yae,bae,wae,Sae,jae,Uae,Eae,xae,Rae,Oae,Tae,Cae,Aae,Iae,Mae,Pae,kae,Nae,Dae,Lae]),Hae=O6.addChildren([Vae]),Gae=sE.addChildren([Hae,$ae]),Kae=oE.addChildren([_ae,Gae]),Zae=iE.addChildren([Kae,qae]),Yae=rE.addChildren([mae,Zae]),Wae=ma.addChildren([Yae,gae,uae,dae,fae,hae,pae]),Qae=u7({routeTree:Wae,defaultNotFoundComponent:()=>T.jsx("div",{className:"flex h-full items-center justify-center",children:T.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[T.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),T.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),T.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})}),Xae=document.getElementById("root");Q$.createRoot(Xae).render(T.jsx(I.StrictMode,{children:T.jsx(h7,{router:Qae})}));export{KM as $,Ile as A,Y1 as B,To as C,tG as D,rce as E,Jle as F,tce as G,Ee as H,St as I,z as J,GM as K,dw as L,$D as M,lle as N,mP as O,Zse as P,Hse as Q,Rg as R,jD as S,LJ as T,Yr as U,Xle as V,zae as W,Fae as X,iae as Y,DD as Z,At as _,kj as a,Ye as a$,ole as a0,xo as a1,eee as a2,ht as a3,no as a4,cW as a5,uW as a6,yn as a7,lt as a8,dW as a9,t3 as aA,sY as aB,cY as aC,aY as aD,ZZ as aE,Rle as aF,Bae as aG,ele as aH,Ut as aI,Xt as aJ,Ie as aK,JH as aL,Qle as aM,Wle as aN,qS as aO,vg as aP,DY as aQ,x3 as aR,X4 as aS,lf as aT,ta as aU,kY as aV,ds as aW,y4 as aX,$w as aY,Wr as aZ,Pt as a_,fW as aa,mW as ab,bW as ac,I3 as ad,fl as ae,hW as af,pW as ag,gW as ah,vW as ai,_W as aj,yW as ak,wW as al,EW as am,xW as an,Ig as ao,dn as ap,fC as aq,W1 as ar,iY as as,ro as at,Kd as au,Yw as av,jc as aw,aa as ax,fs as ay,io as az,Mg as b,nZ as b$,RV as b0,BP as b1,hw as b2,Rk as b3,Tk as b4,YW as b5,Wn as b6,wQ as b7,d3 as b8,Q4 as b9,wre as bA,xre as bB,Dre as bC,Zre as bD,Qre as bE,bre as bF,Sre as bG,Rre as bH,Ore as bI,Lre as bJ,qre as bK,Vle as bL,cae as bM,pV as bN,cle as bO,ple as bP,gq as bQ,ul as bR,VN as bS,GN as bT,dle as bU,nce as bV,rG as bW,nG as bX,u4 as bY,pf as bZ,eZ as b_,nae as ba,la as bb,ne as bc,Jae as bd,iZ as be,Dle as bf,uP as bg,ca as bh,as as bi,kle as bj,Lle as bk,rn as bl,ule as bm,qN as bn,zre as bo,Fre as bp,BS as bq,l6 as br,VS as bs,nv as bt,GD as bu,tie as bv,ZD as bw,Wre as bx,cie as by,yre as bz,tae as c,n6 as c$,rZ as c0,af as c1,qM as c2,Aj as c3,S3 as c4,wY as c5,zw as c6,h3 as c7,k4 as c8,Fw as c9,Yle as cA,eoe as cB,pt as cC,Hoe as cD,to as cE,XW as cF,fP as cG,Cle as cH,oZ as cI,sZ as cJ,tZ as cK,aZ as cL,Bz as cM,HD as cN,YD as cO,XD as cP,e6 as cQ,t6 as cR,r6 as cS,Fle as cT,Ble as cU,Ule as cV,zle as cW,Jne as cX,jle as cY,WD as cZ,JD as c_,Gd as ca,R4 as cb,Uw as cc,jw as cd,SY as ce,EY as cf,oQ as cg,sQ as ch,iQ as ci,Or as cj,ale as ck,QH as cl,YH as cm,HH as cn,n4 as co,HV as cp,ww as cq,EV as cr,fle as cs,ZV as ct,Ew as cu,Sw as cv,XV as cw,hle as cx,Zle as cy,_se as cz,uw as d,Hle as d0,QD as d1,Kle as d2,NS as d3,fre as d4,$le as d5,qD as d6,Die as d7,Vre as d8,Gle as d9,Tie as da,Iie as db,die as dc,uie as dd,qle as de,mle as df,BW as dg,VW as dh,GW as di,qW as dj,HW as dk,_le as dl,yle as dm,Ele as dn,xle as dp,Ole as dq,Sle as dr,wle as ds,ble as dt,vle as du,gle as dv,UM as dw,yO as dx,nle as dy,tle as dz,Ro as e,rf as f,cw as g,Mle as h,Ale as i,T as j,Ple as k,LD as l,ece as m,Nj as n,tw as o,PM as p,Zn as q,I as r,Xne as s,Nle as t,sle as u,ile as v,HM as w,RT as x,PS as y,Oo as z};