decocms 2.310.4 → 2.310.5

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 (221) hide show
  1. package/dist/client/assets/{AlertCircle-B_ixt4PV.js → AlertCircle-Cxcba8DN.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-CrFHQhYJ.js → ArrowNarrowLeft-CtUMVsB_.js} +1 -1
  3. package/dist/client/assets/{ArrowUpRight-nmn7SUvw.js → ArrowUpRight-ZaII7u8u.js} +1 -1
  4. package/dist/client/assets/{Check-BqWn0Qac.js → Check-BStFjKto.js} +1 -1
  5. package/dist/client/assets/{CheckCircle-D5vzorp6.js → CheckCircle-CkSmS6Cg.js} +1 -1
  6. package/dist/client/assets/{ChevronDown-D9U47f9C.js → ChevronDown-CJ0icK2r.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-FNA-cwb3.js → ChevronRight-Dw3Db6I0.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-i8raSBwP.js → ChevronUp-BDsNPBis.js} +1 -1
  9. package/dist/client/assets/{Container-D4mVdsOS.js → Container-WBb7qbdD.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-DyRKYk_4.js → DotsVertical-BPk38qYQ.js} +1 -1
  11. package/dist/client/assets/{LinkExternal01-DbpTHzhG.js → LinkExternal01-6x3Iy4Gd.js} +1 -1
  12. package/dist/client/assets/{Lock01-BCzwOsnt.js → Lock01-DA0MuRwj.js} +1 -1
  13. package/dist/client/assets/{Palette-BPPf-x1D.js → Palette-DfzN4-9K.js} +1 -1
  14. package/dist/client/assets/{Play-DVx-BQBK.js → Play-QsP1MGXe.js} +1 -1
  15. package/dist/client/assets/{Plus-6Aj_3OR1.js → Plus-QZEpDFDV.js} +1 -1
  16. package/dist/client/assets/{RefreshCcw01-C5KiSpOO.js → RefreshCcw01-DKtPikGx.js} +1 -1
  17. package/dist/client/assets/{SearchMd-acewDSqi.js → SearchMd-BHubyM0S.js} +1 -1
  18. package/dist/client/assets/{Settings02-D5TrG9xD.js → Settings02-DpkRLLNd.js} +1 -1
  19. package/dist/client/assets/{Shield01-BFVZdmRt.js → Shield01-BvsHGINb.js} +1 -1
  20. package/dist/client/assets/{Star01-BlH1_8-6.js → Star01-DduN7cUl.js} +1 -1
  21. package/dist/client/assets/{Sun-DPLFw75Q.js → Sun-k7d5io6k.js} +1 -1
  22. package/dist/client/assets/{Tool01-C2Si0HgH.js → Tool01-BPmEF3oC.js} +1 -1
  23. package/dist/client/assets/{Trash01-BCpCFt9s.js → Trash01-DhkmMJFO.js} +1 -1
  24. package/dist/client/assets/{User01-DI61qRtW.js → User01-76gT3tOW.js} +1 -1
  25. package/dist/client/assets/{Users03-knaWc8Kc.js → Users03-DDHNU2o0.js} +1 -1
  26. package/dist/client/assets/{X-DBkpNyXP.js → X-C_O1kj8t.js} +1 -1
  27. package/dist/client/assets/{XCircle-Cw6xQq75.js → XCircle-D9VV2CKm.js} +1 -1
  28. package/dist/client/assets/{XClose-3a3Tbrfg.js → XClose-C21czImH.js} +1 -1
  29. package/dist/client/assets/{Zap-UEJX5ZfT.js → Zap-TR29R2LK.js} +1 -1
  30. package/dist/client/assets/{ZapSquare-pD3KrBS0.js → ZapSquare-OxHp4t0m.js} +1 -1
  31. package/dist/client/assets/{accordion-hXQ4kg4L.js → accordion-CTsJVvtX.js} +1 -1
  32. package/dist/client/assets/{agent-icon-DF6ftYz_.js → agent-icon-s17W0wUB.js} +1 -1
  33. package/dist/client/assets/{agents-list-YKvU-KT5.js → agents-list-VvrcV5iJ.js} +1 -1
  34. package/dist/client/assets/ai-providers-CW7mNid6.js +1 -0
  35. package/dist/client/assets/{alert-dialog-C9W8_i7D.js → alert-dialog-CmK4A6kC.js} +1 -1
  36. package/dist/client/assets/{auth-catchall-BjoJ1fit.js → auth-catchall-8ZQwpXp5.js} +1 -1
  37. package/dist/client/assets/{automation-list-row-Bn56w3kA.js → automation-list-row-BCSS4QUj.js} +1 -1
  38. package/dist/client/assets/{automations-CjWF6ELU.js → automations-DeCusdy6.js} +1 -1
  39. package/dist/client/assets/{avatar-DSXx4LT-.js → avatar-CSILDiJX.js} +1 -1
  40. package/dist/client/assets/{badge-CgKuwLV1.js → badge-COxphYel.js} +1 -1
  41. package/dist/client/assets/{brand-context-BqrRLTJ8.js → brand-context-CWfr5DVG.js} +1 -1
  42. package/dist/client/assets/{card-Dvu8__Va.js → card-CBJhlNRB.js} +1 -1
  43. package/dist/client/assets/{chat-context-D4Q2hOxG.js → chat-context-De5Jlj4X.js} +1 -1
  44. package/dist/client/assets/{checkbox-9a2NidDz.js → checkbox-DjVRr70r.js} +1 -1
  45. package/dist/client/assets/{collection-detail-D3nsJ20C.js → collection-detail-DpmRlPMa.js} +1 -1
  46. package/dist/client/assets/{collection-display-button-CF3TPZsy.js → collection-display-button-BbDt8MHw.js} +1 -1
  47. package/dist/client/assets/{collection-search-CavMXw0U.js → collection-search-CfovRENW.js} +1 -1
  48. package/dist/client/assets/{collection-search-CnhSwXsN.js → collection-search-Qnmn9Jjl.js} +1 -1
  49. package/dist/client/assets/{collection-table-wrapper-JhsTc14z.js → collection-table-wrapper-CnIJP88L.js} +1 -1
  50. package/dist/client/assets/{collection-tabs-CvpQBjP4.js → collection-tabs-BJ2mAaff.js} +1 -1
  51. package/dist/client/assets/{collections-DgMj_tKp.js → collections-BNKaenRk.js} +1 -1
  52. package/dist/client/assets/{command-DdZ6m00L.js → command-DPlcxMzI.js} +1 -1
  53. package/dist/client/assets/{connection-card-DCcXVB_E.js → connection-card-CuHLr6qd.js} +1 -1
  54. package/dist/client/assets/{connection-detail-CzXiJt7V.js → connection-detail-b2gPCepr.js} +1 -1
  55. package/dist/client/assets/{connection-form-helpers-0guFAknk.js → connection-form-helpers-CAZC18NZ.js} +1 -1
  56. package/dist/client/assets/{connections-DPNF_KPz.js → connections-BQvZQo8B.js} +1 -1
  57. package/dist/client/assets/{constants-DP1fYfN5.js → constants-BKat4sJw.js} +1 -1
  58. package/dist/client/assets/{constants-B0bVjev-.js → constants-B_3LNOq3.js} +1 -1
  59. package/dist/client/assets/{dialog-BFoHlGht.js → dialog-DxHqBK-g.js} +1 -1
  60. package/dist/client/assets/{domain-settings-BrBa2-xP.js → domain-settings-Dj6mogBD.js} +1 -1
  61. package/dist/client/assets/{drawer-BhTf1Qla.js → drawer-CPYawKkb.js} +1 -1
  62. package/dist/client/assets/{dropdown-menu-ECqk4Bwl.js → dropdown-menu-Do_6-JC4.js} +1 -1
  63. package/dist/client/assets/{dynamic-plugin-layout-C6uS9Fgd.js → dynamic-plugin-layout-CGObbc--.js} +1 -1
  64. package/dist/client/assets/{empty-state-DnTORYxE.js → empty-state-Bmp0M8wH.js} +1 -1
  65. package/dist/client/assets/{empty-state-WM4MEN1n.js → empty-state-DDT6Axd2.js} +1 -1
  66. package/dist/client/assets/{extract-connection-data-DI8Ev_i1.js → extract-connection-data-ooIvzjyZ.js} +1 -1
  67. package/dist/client/assets/{features-CeLAaeRl.js → features-Ck3YVx8z.js} +1 -1
  68. package/dist/client/assets/{form-FQnGS2M2.js → form-BV__Eo4v.js} +1 -1
  69. package/dist/client/assets/{general-ChIDXqk_.js → general-J5FLwmfS.js} +1 -1
  70. package/dist/client/assets/{index-DtFLCGGC.js → index-BKcT0ut5.js} +1 -1
  71. package/dist/client/assets/{index-CMV1uVKR.js → index-BZ3dhBMg.js} +1 -1
  72. package/dist/client/assets/{index-BNGN_z8K.js → index-Baly1FX_.js} +1 -1
  73. package/dist/client/assets/{index-tTl1XGBH.js → index-BjqwKAPh.js} +2 -2
  74. package/dist/client/assets/{index-DMhywANg.js → index-BrMQgHVf.js} +1 -1
  75. package/dist/client/assets/{index-BaGA1Dwt.js → index-CFiXkeYB.js} +1 -1
  76. package/dist/client/assets/{index-BR_akr8d.js → index-CKPYZoPD.js} +1 -1
  77. package/dist/client/assets/{index-D8S8aIBi.js → index-CQAZn3EK.js} +1 -1
  78. package/dist/client/assets/{index-DMXTlRhR.js → index-CjZClkan.js} +1 -1
  79. package/dist/client/assets/{index-B52t-Jgl.js → index-CkXbIQAg.js} +1 -1
  80. package/dist/client/assets/{index--7GMpzOC.js → index-D075V-Aw.js} +1 -1
  81. package/dist/client/assets/{index-BxU5h0n7.js → index-D9tByeUz.js} +1 -1
  82. package/dist/client/assets/{index-D2ho-V2I.js → index-DJnCb9MX.js} +3 -3
  83. package/dist/client/assets/{index-D5ted9OP.js → index-DO6HBQ4K.js} +1 -1
  84. package/dist/client/assets/{index-CQTEAoFE.js → index-Dt0vRnUx.js} +1 -1
  85. package/dist/client/assets/index-DxiAr3ci.js +1 -0
  86. package/dist/client/assets/{infiniteQueryObserver-DZfr_jIN.js → infiniteQueryObserver-BOOXGQo2.js} +1 -1
  87. package/dist/client/assets/{input-7B8HJEw8.js → input-BY95D9hS.js} +1 -1
  88. package/dist/client/assets/{integration-icon--zCgX8zg.js → integration-icon-BTq6hO7n.js} +1 -1
  89. package/dist/client/assets/{label-D7eZ_QmZ.js → label-Z9ad9sg6.js} +1 -1
  90. package/dist/client/assets/{layout-yHPZhe3e.js → layout-D9TsRZCx.js} +1 -1
  91. package/dist/client/assets/{lean-canvas-recruit-modal-c_n0ecvK.js → lean-canvas-recruit-modal-OmMNmndT.js} +1 -1
  92. package/dist/client/assets/{login-qkZIlsfB.js → login-C9jgvn5K.js} +1 -1
  93. package/dist/client/assets/{members-Bz4sBwrN.js → members-CBmW6KwZ.js} +1 -1
  94. package/dist/client/assets/{monaco-editor-DN9aHYBK.js → monaco-editor-UyxFxpQH.js} +1 -1
  95. package/dist/client/assets/{monitoring-stats-row-D_GvzMhv.js → monitoring-stats-row-DdON8HAn.js} +1 -1
  96. package/dist/client/assets/{oauth-callback-D32b5XtK.js → oauth-callback-D7SVJIig.js} +1 -1
  97. package/dist/client/assets/{oauth-callback-ai-provider-KERy7Bq0.js → oauth-callback-ai-provider-D_zvQ6_C.js} +1 -1
  98. package/dist/client/assets/{onboarding-C7pha-UZ.js → onboarding-0k8ZSX_k.js} +1 -1
  99. package/dist/client/assets/{org-layout-CGeuSECe.js → org-layout-D_IQBqiz.js} +1 -1
  100. package/dist/client/assets/{org-plugin-layout-DaAkPGcd.js → org-plugin-layout-CSiRNaTu.js} +1 -1
  101. package/dist/client/assets/{pair-BAhyu5p7.js → pair-DxZ7l3-Z.js} +1 -1
  102. package/dist/client/assets/{plugin-empty-state-JWDC1EDj.js → plugin-empty-state-Dp1Lzm8V.js} +1 -1
  103. package/dist/client/assets/{plugin-header-U1iHtY7c.js → plugin-header-9vDTFdB9.js} +1 -1
  104. package/dist/client/assets/{plugin-layout-D2NVqZwK.js → plugin-layout-3ykxXUjf.js} +1 -1
  105. package/dist/client/assets/{popover-ScITtqj7.js → popover-Zakke__8.js} +1 -1
  106. package/dist/client/assets/{profile-CS9_x9iB.js → profile-9LB06cBx.js} +1 -1
  107. package/dist/client/assets/{project-app-view-B18G8KW8.js → project-app-view-CqdnMjZ0.js} +1 -1
  108. package/dist/client/assets/registry-DqBhBsD3.js +2 -0
  109. package/dist/client/assets/{registry-layout-DXh--Ctx.js → registry-layout-CJQb6Z8y.js} +1 -1
  110. package/dist/client/assets/{required-auth-layout-RV8D4BS5.js → required-auth-layout-BxrX3bDQ.js} +1 -1
  111. package/dist/client/assets/{reset-password-BMtkWtLN.js → reset-password-B5KLP3tu.js} +1 -1
  112. package/dist/client/assets/{roles-Cu1HtilV.js → roles-DGvkLiRr.js} +1 -1
  113. package/dist/client/assets/{scroll-area-CV3e2fLD.js → scroll-area-DkrmJo9D.js} +1 -1
  114. package/dist/client/assets/{search-input-CbWJaisp.js → search-input-CdGp9qCd.js} +1 -1
  115. package/dist/client/assets/{select-BNR6YSaM.js → select-CR2tN9TX.js} +1 -1
  116. package/dist/client/assets/{select-model-CpSDRQob.js → select-model-CQhnH5Rx.js} +1 -1
  117. package/dist/client/assets/{settings-layout-C-BNaFF6.js → settings-layout-DHX6Eu2B.js} +1 -1
  118. package/dist/client/assets/{settings-section-BFYWADTj.js → settings-section-67sbTFXw.js} +1 -1
  119. package/dist/client/assets/{shell-layout-B81nbNNu.js → shell-layout-CimuPmyV.js} +1 -1
  120. package/dist/client/assets/{skeleton-BcUEgjSY.js → skeleton-CS-2bSP9.js} +1 -1
  121. package/dist/client/assets/{sso-BBUY-MCm.js → sso-Dr2zYrCj.js} +1 -1
  122. package/dist/client/assets/{store-WOpWwK_Y.js → store-DpWEzwk_.js} +1 -1
  123. package/dist/client/assets/store-registry-CQpdN133.js +2 -0
  124. package/dist/client/assets/{switch-D4ose26R.js → switch-zLHY6ITD.js} +1 -1
  125. package/dist/client/assets/{table-DSn9HnbO.js → table-CegXcKEa.js} +1 -1
  126. package/dist/client/assets/{tabs-DGhvVWfp.js → tabs-CJQTWD5_.js} +1 -1
  127. package/dist/client/assets/{task-status-ClsSHWqn.js → task-status-0vcjP9bK.js} +1 -1
  128. package/dist/client/assets/{textarea-BjUuyph-.js → textarea-fydFuW_3.js} +1 -1
  129. package/dist/client/assets/{toggle-group-DsS9JBq7.js → toggle-group-7VcHOdQ-.js} +1 -1
  130. package/dist/client/assets/{tools-list-Bs_cdsww.js → tools-list-DqqciwCd.js} +1 -1
  131. package/dist/client/assets/{tooltip-Bo9taUEe.js → tooltip-D_AU3yF1.js} +1 -1
  132. package/dist/client/assets/{types-BuGRX8kV.js → types-Cnb1YG8h.js} +1 -1
  133. package/dist/client/assets/{use-ai-providers-BIiiUYbr.js → use-ai-providers-BJDLmjji.js} +1 -1
  134. package/dist/client/assets/{use-collections-Dn6M4xty.js → use-collections-Gut3G1oa.js} +1 -1
  135. package/dist/client/assets/{use-connection-CHMNg8na.js → use-connection-DPW4E_0G.js} +1 -1
  136. package/dist/client/assets/{use-copy-BQRsHq5p.js → use-copy-B4TaRnHv.js} +1 -1
  137. package/dist/client/assets/{use-create-virtual-mcp-CA-saUXt.js → use-create-virtual-mcp-DIprfvzX.js} +1 -1
  138. package/dist/client/assets/{use-debounced-autosave-JBt9gs6I.js → use-debounced-autosave-DHCyVVfx.js} +1 -1
  139. package/dist/client/assets/{use-decopilot-events-M1xI3bmE.js → use-decopilot-events-Cbmf5tlg.js} +1 -1
  140. package/dist/client/assets/{use-delete-connection-n0Lzneey.js → use-delete-connection-WVmPLIlj.js} +1 -1
  141. package/dist/client/assets/{use-infinite-scroll-Culgd2S6.js → use-infinite-scroll-T0hVA3O9.js} +1 -1
  142. package/dist/client/assets/{use-list-state-C9Nw5MqH.js → use-list-state-DA3cifaL.js} +1 -1
  143. package/dist/client/assets/{use-mcp-tools-DI96BLC5.js → use-mcp-tools-iAx7skPl.js} +1 -1
  144. package/dist/client/assets/{use-members-VHDkQ6EX.js → use-members-j0TSecaQ.js} +1 -1
  145. package/dist/client/assets/{use-navigate-to-agent-Bt2qz35f.js → use-navigate-to-agent-BCE8xoYG.js} +1 -1
  146. package/dist/client/assets/{use-org-auth-client-DtFIoaM_.js → use-org-auth-client-Csj669Fw.js} +1 -1
  147. package/dist/client/assets/{use-org-sso-D-lyKVWd.js → use-org-sso-Cm8qhi19.js} +1 -1
  148. package/dist/client/assets/{use-organization-roles-CWUEcGZv.js → use-organization-roles-InflUxV2.js} +1 -1
  149. package/dist/client/assets/{use-organization-settings-DIRe4_4X.js → use-organization-settings-sGFYoeez.js} +1 -1
  150. package/dist/client/assets/{use-registry-connections-DQxUdfb_.js → use-registry-connections-CA8kz06E.js} +1 -1
  151. package/dist/client/assets/{use-status-sounds-m1a3znss.js → use-status-sounds-DM61lJPE.js} +1 -1
  152. package/dist/client/assets/{use-tasks-_o5ReDjx.js → use-tasks-C2Vyiupf.js} +1 -1
  153. package/dist/client/assets/{use-view-mode-6IIIMDrq.js → use-view-mode-BoUYdfcR.js} +1 -1
  154. package/dist/client/assets/{use-virtual-mcp-CCHAGkyS.js → use-virtual-mcp-DER1r6QO.js} +1 -1
  155. package/dist/client/assets/useInfiniteQuery-BjzmzsUJ.js +1 -0
  156. package/dist/client/assets/useSuspenseInfiniteQuery-SvwkjZhj.js +1 -0
  157. package/dist/client/assets/{user-CRtM2HfA.js → user-Di0TXJ3H.js} +1 -1
  158. package/dist/client/assets/{view-mode-toggle-DXuwWpcV.js → view-mode-toggle-DoU7eK15.js} +1 -1
  159. package/dist/client/assets/{workflow-BmpdL636.js → workflow-DkCqRbGa.js} +1 -1
  160. package/dist/client/assets/workflow-detail-CbEkNnBb.js +1 -0
  161. package/dist/client/index.html +1 -1
  162. package/dist/server/cli.js +1 -1
  163. package/dist/server/node_modules/get-east-asian-width/index.d.ts +60 -0
  164. package/dist/server/node_modules/get-east-asian-width/index.js +30 -0
  165. package/dist/server/node_modules/get-east-asian-width/lookup-data.js +18 -0
  166. package/dist/server/node_modules/get-east-asian-width/lookup.js +135 -0
  167. package/dist/server/node_modules/get-east-asian-width/package.json +71 -0
  168. package/dist/server/node_modules/get-east-asian-width/readme.md +65 -0
  169. package/dist/server/node_modules/get-east-asian-width/utilities.js +24 -0
  170. package/dist/server/node_modules/pg-int8/LICENSE +13 -0
  171. package/dist/server/node_modules/pg-int8/README.md +16 -0
  172. package/dist/server/node_modules/pg-int8/index.js +100 -0
  173. package/dist/server/node_modules/pg-int8/package.json +24 -0
  174. package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
  175. package/dist/server/node_modules/postgres-array/index.js +97 -0
  176. package/dist/server/node_modules/{xtend/LICENSE → postgres-array/license} +2 -1
  177. package/dist/server/node_modules/postgres-array/package.json +35 -0
  178. package/dist/server/node_modules/postgres-array/readme.md +43 -0
  179. package/dist/server/node_modules/postgres-bytea/index.js +33 -0
  180. package/dist/server/node_modules/postgres-bytea/license +21 -0
  181. package/dist/server/node_modules/postgres-bytea/package.json +34 -0
  182. package/dist/server/node_modules/postgres-bytea/readme.md +34 -0
  183. package/dist/server/node_modules/postgres-date/index.js +116 -0
  184. package/dist/server/node_modules/postgres-date/license +21 -0
  185. package/dist/server/node_modules/postgres-date/package.json +33 -0
  186. package/dist/server/node_modules/postgres-date/readme.md +49 -0
  187. package/package.json +1 -1
  188. package/dist/client/assets/ai-providers-CEOJVgLo.js +0 -1
  189. package/dist/client/assets/index-inyirlB4.js +0 -1
  190. package/dist/client/assets/registry-B-s71WVC.js +0 -2
  191. package/dist/client/assets/store-registry-D6Fj-htY.js +0 -2
  192. package/dist/client/assets/useInfiniteQuery-CLIUsnnt.js +0 -1
  193. package/dist/client/assets/useSuspenseInfiniteQuery-C7imnQ20.js +0 -1
  194. package/dist/client/assets/workflow-detail-CF7Wua1l.js +0 -1
  195. package/dist/server/node_modules/ansi-regex/index.d.ts +0 -33
  196. package/dist/server/node_modules/ansi-regex/index.js +0 -14
  197. package/dist/server/node_modules/ansi-regex/package.json +0 -61
  198. package/dist/server/node_modules/ansi-regex/readme.md +0 -66
  199. package/dist/server/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  200. package/dist/server/node_modules/emoji-regex/README.md +0 -107
  201. package/dist/server/node_modules/emoji-regex/index.d.ts +0 -3
  202. package/dist/server/node_modules/emoji-regex/index.js +0 -4
  203. package/dist/server/node_modules/emoji-regex/index.mjs +0 -4
  204. package/dist/server/node_modules/emoji-regex/package.json +0 -45
  205. package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  206. package/dist/server/node_modules/is-fullwidth-code-point/index.js +0 -12
  207. package/dist/server/node_modules/is-fullwidth-code-point/license +0 -9
  208. package/dist/server/node_modules/is-fullwidth-code-point/package.json +0 -53
  209. package/dist/server/node_modules/is-fullwidth-code-point/readme.md +0 -31
  210. package/dist/server/node_modules/onetime/index.d.ts +0 -64
  211. package/dist/server/node_modules/onetime/index.js +0 -44
  212. package/dist/server/node_modules/onetime/license +0 -9
  213. package/dist/server/node_modules/onetime/package.json +0 -43
  214. package/dist/server/node_modules/onetime/readme.md +0 -94
  215. package/dist/server/node_modules/xtend/.jshintrc +0 -30
  216. package/dist/server/node_modules/xtend/README.md +0 -32
  217. package/dist/server/node_modules/xtend/immutable.js +0 -19
  218. package/dist/server/node_modules/xtend/mutable.js +0 -17
  219. package/dist/server/node_modules/xtend/package.json +0 -55
  220. package/dist/server/node_modules/xtend/test.js +0 -103
  221. /package/dist/server/node_modules/{ansi-regex → get-east-asian-width}/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-tTl1XGBH.js";import{P as x}from"./index-B52t-Jgl.js";import{e as I}from"./use-organization-settings-DIRe4_4X.js";import{S as Q}from"./switch-D4ose26R.js";import{n as R}from"./Container-D4mVdsOS.js";import{b as w,S as z,a as F,d as M}from"./settings-section-BFYWADTj.js";import"./tooltip-Bo9taUEe.js";import"./X-DBkpNyXP.js";import"./constants-DP1fYfN5.js";import"./card-Dvu8__Va.js";import"./ArrowUpRight-nmn7SUvw.js";function N(){const e=b.c(17),{org:t,project:s}=k(),o=E();let d;e[0]!==s.enabledPlugins?(d=s.enabledPlugins??[],e[0]=s.enabledPlugins,e[1]=d):d=e[1];const c=d,l=I();let m;e[2]!==t||e[3]!==s.slug||e[4]!==o?(m=()=>{o.invalidateQueries({queryKey:S.project(t.id,s.slug)}),o.invalidateQueries({queryKey:S.projects(t.id)}),o.invalidateQueries({predicate:n=>{const r=n.queryKey;return r[1]===t.id&&r[3]==="collection"&&r[4]==="VIRTUAL_MCP"}})},e[2]=t,e[3]=s.slug,e[4]=o,e[5]=m):m=e[5];const j=m;let g;e[6]!==j||e[7]!==l||e[8]!==c?(g=(n,r)=>{const u=new Set(c);r?u.add(n):u.delete(n),l.mutate({enabled_plugins:Array.from(u)},{onSuccess:j,onError:A})},e[6]=j,e[7]=l,e[8]=c,e[9]=g):g=e[9];const p=g,y=$,C=U;if(P.length===0){let n;return e[10]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx("p",{className:"text-sm text-muted-foreground",children:"No plugins available."}),e[10]=n):n=e[10],n}let a;e[11]!==p||e[12]!==l||e[13]!==c?(a=P.map(n=>{const r=y(n.id),u=C(n.id),h=c.includes(n.id);return i.jsx(w,{title:r?.label??n.id,description:u??void 0,icon:i.jsx("span",{className:"text-muted-foreground [&>svg]:size-4",children:r?.icon??i.jsx(R,{size:14})}),onClick:()=>!l.isPending&&p(n.id,!h),action:i.jsx(Q,{checked:h,onCheckedChange:v=>p(n.id,v),disabled:l.isPending,onClick:T})},n.id)}),e[11]=p,e[12]=l,e[13]=c,e[14]=a):a=e[14];let f;return e[15]!==a?(f=i.jsx(z,{children:i.jsx(F,{children:a})}),e[15]=a,e[16]=f):f=e[16],f}function T(e){return e.stopPropagation()}function U(e){return P.find(s=>s.id===e)?.description??null}function $(e){const t=K.find(o=>o.pluginId===e);if(t)return{label:t.label,icon:t.items[0]?.icon};const s=_.find(o=>o.pluginId===e);return s?{label:s.label,icon:s.icon}:null}function A(e){q.error("Failed to update plugin: "+(e instanceof Error?e.message:"Unknown error"))}function D(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(x,{children:i.jsx(x.Content,{children:i.jsx(x.Body,{children:i.jsxs(M,{children:[i.jsx(x.Title,{children:"Plugins"}),i.jsx(N,{})]})})})}),e[0]=t):t=e[0],t}function ee(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(D,{}),e[0]=t):t=e[0],t}export{ee as default};
1
+ import{e as b,s as k,o as E,bM as P,j as i,X as K,aG as _,K as S,x as q}from"./index-BjqwKAPh.js";import{P as x}from"./index-CkXbIQAg.js";import{e as I}from"./use-organization-settings-sGFYoeez.js";import{S as Q}from"./switch-zLHY6ITD.js";import{n as R}from"./Container-WBb7qbdD.js";import{b as w,S as z,a as F,d as M}from"./settings-section-67sbTFXw.js";import"./tooltip-D_AU3yF1.js";import"./X-C_O1kj8t.js";import"./constants-BKat4sJw.js";import"./card-CBJhlNRB.js";import"./ArrowUpRight-ZaII7u8u.js";function N(){const e=b.c(17),{org:t,project:s}=k(),o=E();let d;e[0]!==s.enabledPlugins?(d=s.enabledPlugins??[],e[0]=s.enabledPlugins,e[1]=d):d=e[1];const c=d,l=I();let m;e[2]!==t||e[3]!==s.slug||e[4]!==o?(m=()=>{o.invalidateQueries({queryKey:S.project(t.id,s.slug)}),o.invalidateQueries({queryKey:S.projects(t.id)}),o.invalidateQueries({predicate:n=>{const r=n.queryKey;return r[1]===t.id&&r[3]==="collection"&&r[4]==="VIRTUAL_MCP"}})},e[2]=t,e[3]=s.slug,e[4]=o,e[5]=m):m=e[5];const j=m;let g;e[6]!==j||e[7]!==l||e[8]!==c?(g=(n,r)=>{const u=new Set(c);r?u.add(n):u.delete(n),l.mutate({enabled_plugins:Array.from(u)},{onSuccess:j,onError:A})},e[6]=j,e[7]=l,e[8]=c,e[9]=g):g=e[9];const p=g,y=$,C=U;if(P.length===0){let n;return e[10]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx("p",{className:"text-sm text-muted-foreground",children:"No plugins available."}),e[10]=n):n=e[10],n}let a;e[11]!==p||e[12]!==l||e[13]!==c?(a=P.map(n=>{const r=y(n.id),u=C(n.id),h=c.includes(n.id);return i.jsx(w,{title:r?.label??n.id,description:u??void 0,icon:i.jsx("span",{className:"text-muted-foreground [&>svg]:size-4",children:r?.icon??i.jsx(R,{size:14})}),onClick:()=>!l.isPending&&p(n.id,!h),action:i.jsx(Q,{checked:h,onCheckedChange:v=>p(n.id,v),disabled:l.isPending,onClick:T})},n.id)}),e[11]=p,e[12]=l,e[13]=c,e[14]=a):a=e[14];let f;return e[15]!==a?(f=i.jsx(z,{children:i.jsx(F,{children:a})}),e[15]=a,e[16]=f):f=e[16],f}function T(e){return e.stopPropagation()}function U(e){return P.find(s=>s.id===e)?.description??null}function $(e){const t=K.find(o=>o.pluginId===e);if(t)return{label:t.label,icon:t.items[0]?.icon};const s=_.find(o=>o.pluginId===e);return s?{label:s.label,icon:s.icon}:null}function A(e){q.error("Failed to update plugin: "+(e instanceof Error?e.message:"Unknown error"))}function D(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(x,{children:i.jsx(x.Content,{children:i.jsx(x.Body,{children:i.jsxs(M,{children:[i.jsx(x.Title,{children:"Plugins"}),i.jsx(N,{})]})})})}),e[0]=t):t=e[0],t}function ee(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(D,{}),e[0]=t):t=e[0],t}export{ee as default};
@@ -1 +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-tTl1XGBH.js";import{L as N}from"./label-D7eZ_QmZ.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-BjqwKAPh.js";import{L as N}from"./label-Z9ad9sg6.js";const E=b,g=d.createContext({}),M=t=>{const e=f.c(9);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let o;e[2]!==s.name?(o={name:s.name},e[2]=s.name,e[3]=o):o=e[3];let n;e[4]!==s?(n=c.jsx(C,{...s}),e[4]=s,e[5]=n):n=e[5];let r;return e[6]!==o||e[7]!==n?(r=c.jsx(g.Provider,{value:o,children:n}),e[6]=o,e[7]=n,e[8]=r):r=e[8],r},x=()=>{const t=f.c(13),e=d.useContext(g),s=d.useContext($),{getFieldState:o}=v();let n;t[0]!==e.name?(n={name:e.name},t[0]=e.name,t[1]=n):n=t[1];const r=h(n);let a;t[2]!==e.name||t[3]!==r||t[4]!==o?(a=o(e.name,r),t[2]=e.name,t[3]=r,t[4]=o,t[5]=a):a=t[5];const l=a;if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=s,m=`${i}-form-item`,F=`${i}-form-item-description`,I=`${i}-form-item-message`;let u;return t[6]!==e.name||t[7]!==l||t[8]!==i||t[9]!==m||t[10]!==F||t[11]!==I?(u={id:i,name:e.name,formItemId:m,formDescriptionId:F,formMessageId:I,...l},t[6]=e.name,t[7]=l,t[8]=i,t[9]=m,t[10]=F,t[11]=I,t[12]=u):u=t[12],u},$=d.createContext({});function w(t){const e=f.c(13);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const n=d.useId();let r;e[3]!==n?(r={id:n},e[3]=n,e[4]=r):r=e[4];let a;e[5]!==s?(a=p("grid gap-2",s),e[5]=s,e[6]=a):a=e[6];let l;e[7]!==o||e[8]!==a?(l=c.jsx("div",{"data-slot":"form-item",className:a,...o}),e[7]=o,e[8]=a,e[9]=l):l=e[9];let i;return e[10]!==r||e[11]!==l?(i=c.jsx($.Provider,{value:r,children:l}),e[10]=r,e[11]=l,e[12]=i):i=e[12],i}function L(t){const e=f.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formItemId:r}=x(),a=!!n;let l;e[3]!==s?(l=p("text-foreground data-[error=true]:text-destructive",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==r||e[6]!==o||e[7]!==a||e[8]!==l?(i=c.jsx(N,{"data-slot":"form-label","data-error":a,className:l,htmlFor:r,...o}),e[5]=r,e[6]=o,e[7]=a,e[8]=l,e[9]=i):i=e[9],i}function P(t){const e=f.c(7);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];const{error:o,formItemId:n,formDescriptionId:r,formMessageId:a}=x(),l=o?`${r} ${a}`:`${r}`,i=!!o;let m;return e[2]!==n||e[3]!==s||e[4]!==l||e[5]!==i?(m=c.jsx(j,{"data-slot":"form-control",id:n,"aria-describedby":l,"aria-invalid":i,...s}),e[2]=n,e[3]=s,e[4]=l,e[5]=i,e[6]=m):m=e[6],m}function y(t){const e=f.c(9);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{formDescriptionId:n}=x();let r;e[3]!==s?(r=p("text-muted-foreground text-sm",s),e[3]=s,e[4]=r):r=e[4];let a;return e[5]!==n||e[6]!==o||e[7]!==r?(a=c.jsx("p",{"data-slot":"form-description",id:n,className:r,...o}),e[5]=n,e[6]=o,e[7]=r,e[8]=a):a=e[8],a}function R(t){const e=f.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formMessageId:r}=x(),a=n?String(n?.message??""):o.children;if(!a)return null;let l;e[3]!==s?(l=p("text-destructive text-sm",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==a||e[6]!==r||e[7]!==o||e[8]!==l?(i=c.jsx("p",{"data-slot":"form-message",id:r,className:l,...o,children:a}),e[5]=a,e[6]=r,e[7]=o,e[8]=l,e[9]=i):i=e[9],i}export{M as F,E as a,w as b,L as c,P as d,y as e,R as f};
@@ -1 +1 @@
1
- import{f as re,s as ce,o as de,z as me,C as ue,a as fe,t as Y,x as V,K as te,j as s,D as se,H as ge,J as W,e as L,r as H,B as G,c as xe,M as pe}from"./index-tTl1XGBH.js";import{P as q}from"./index-B52t-Jgl.js";import{u as he}from"./use-org-auth-client-DtFIoaM_.js";import{u as je}from"./use-debounced-autosave-JBt9gs6I.js";import{A as ve}from"./avatar-DSXx4LT-.js";import{I as be}from"./input-7B8HJEw8.js";import{S as X,a as Z,b as Q,c as ye,d as Se}from"./settings-section-BFYWADTj.js";import{D as Ne}from"./domain-settings-BrBa2-xP.js";import{u as Ce,a as ne,D as we,c as _e,S as ze,v as De,K as Ae,P as ke,d as Pe,C as Ie,s as Ee,b as Oe,e as Te}from"./collection-search-CnhSwXsN.js";import{W as ee,i as Re}from"./constants-DP1fYfN5.js";import{b as le}from"./use-virtual-mcp-CCHAGkyS.js";import{b as Fe,P as Le,a as $e}from"./popover-ScITtqj7.js";import{S as Me}from"./skeleton-BcUEgjSY.js";import{y as Be}from"./agent-icon-DF6ftYz_.js";import{s as Ve}from"./Plus-6Aj_3OR1.js";import{a as ae}from"./Users03-knaWc8Kc.js";import{i as He}from"./X-DBkpNyXP.js";import{I as J}from"./integration-icon--zCgX8zg.js";import{a as Ke,d as Ue}from"./use-organization-settings-DIRe4_4X.js";import"./tooltip-Bo9taUEe.js";import"./User01-DI61qRtW.js";import"./card-Dvu8__Va.js";import"./ArrowUpRight-nmn7SUvw.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./switch-D4ose26R.js";import"./SearchMd-acewDSqi.js";import"./use-collections-Dn6M4xty.js";import"./AlertCircle-B_ixt4PV.js";import"./Tool01-C2Si0HgH.js";import"./XClose-3a3Tbrfg.js";import"./RefreshCcw01-C5KiSpOO.js";import"./ArrowNarrowLeft-CrFHQhYJ.js";import"./XCircle-Cw6xQq75.js";import"./ZapSquare-pD3KrBS0.js";import"./CheckCircle-D5vzorp6.js";import"./Check-BqWn0Qac.js";import"./ChevronDown-D9U47f9C.js";import"./ChevronRight-FNA-cwb3.js";import"./ChevronUp-i8raSBwP.js";import"./DotsVertical-DyRKYk_4.js";import"./Container-D4mVdsOS.js";import"./Star01-BlH1_8-6.js";import"./Palette-BPPf-x1D.js";import"./LinkExternal01-DbpTHzhG.js";import"./Lock01-BCzwOsnt.js";import"./Sun-DPLFw75Q.js";import"./Play-DVx-BQBK.js";import"./Settings02-D5TrG9xD.js";import"./Shield01-BFVZdmRt.js";import"./Trash01-BCpCFt9s.js";import"./Zap-UEJX5ZfT.js";const qe=ge({name:W().min(1,"Name is required").max(255,"Name is too long"),slug:W().min(1,"Slug is required").max(50,"Slug is too long").regex(/^[a-z0-9-]+$/,"Slug must contain only lowercase letters, numbers, and hyphens"),logo:W().optional()});function Ge(t){const e=L.c(13),{value:r,onChange:l,name:a,disabled:d}=t,n=H.useRef(null);let j;e[0]===Symbol.for("react.memo_cache_sentinel")?(j=()=>n.current?.click(),e[0]=j):j=e[0];const u=j;let v;e[1]!==l?(v=z=>{const p=z.target.files?.[0];if(!p)return;if(p.size>2097152){V.error("Image must be smaller than 2MB");return}const b=new FileReader;b.onerror=We,b.onloadend=()=>{b.result&&l(b.result),n.current&&(n.current.value="")},b.readAsDataURL(p)},e[1]=l,e[2]=v):v=e[2];const o=v;let i;e[3]!==d||e[4]!==o?(i=s.jsx("input",{ref:n,type:"file",accept:"image/*",onChange:o,className:"hidden",disabled:d}),e[3]=d,e[4]=o,e[5]=i):i=e[5];const m=r||void 0,g=a??"?";let f;e[6]!==m||e[7]!==g?(f=s.jsx(ve,{url:m,fallback:g,shape:"square",size:"base"}),e[6]=m,e[7]=g,e[8]=f):f=e[8];let x;return e[9]!==d||e[10]!==i||e[11]!==f?(x=s.jsxs("button",{type:"button",onClick:u,disabled:d,className:"rounded-lg overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":"Upload organization logo",children:[i,f]}),e[9]=d,e[10]=i,e[11]=f,e[12]=x):x=e[12],x}function We(){return V.error("Failed to read image")}function Qe(){const t=re(),{org:e}=ce(),r=he(),l=de(),a=me({resolver:ue(qe),values:{name:e.name??"",slug:e.slug??"",logo:e.logo??""}}),d=fe({mutationFn:async o=>{const i={name:o.name,slug:o.slug};o.logo&&(i.logo=o.logo);const m=await r.organization.update({data:i});if(m?.error)throw new Error(m.error.message||"Failed to update organization");return m},onSuccess:(o,i)=>{Y("organization_settings_updated",{organization_id:e.id,fields:Object.keys(i)}),l.invalidateQueries({queryKey:te.organizations()}),l.invalidateQueries({queryKey:te.activeOrganization(e.slug)}),V.success("Organization updated successfully"),o?.data?.slug&&o.data.slug!==e.slug&&t({to:"/$org/settings/general",params:{org:o.data.slug}})},onError:(o,i)=>{Y("organization_settings_update_failed",{organization_id:e.id,fields:Object.keys(i),error:o instanceof Error?o.message:String(o)}),V.error(o instanceof Error?o.message:"Failed to update organization")}}),{schedule:n,flush:j}=je({save:async()=>{const o=a.control._formState.dirtyFields;if(Object.keys(o).length===0||!await a.trigger())return;const m=a.getValues(),g=a.control._defaultValues;a.reset(m,{keepValues:!0});try{await d.mutateAsync(m)}catch{a.reset(g,{keepValues:!0})}}}),u=a.formState.errors,v=typeof window<"u"?`${window.location.host}/`:"";return s.jsx(X,{children:s.jsxs(Z,{children:[s.jsx(Q,{title:"Logo",description:"Recommended size is 256x256px",action:s.jsx(Ge,{value:a.watch("logo"),onChange:o=>{a.setValue("logo",o??"",{shouldDirty:!0}),j()},name:a.watch("name")})}),s.jsx(Q,{title:"Name",action:s.jsx(se,{control:a.control,name:"name",render:({field:o})=>s.jsx(be,{id:"org-name",...o,onChange:i=>{o.onChange(i),n()},onBlur:()=>{o.onBlur(),j()},placeholder:"Organization name",className:"w-[280px]"})})}),s.jsx(Q,{title:"URL",action:s.jsxs("div",{className:"flex items-center w-[280px] rounded-md border border-input bg-input/30 focus-within:ring-2 focus-within:ring-ring/50 overflow-hidden",children:[v&&s.jsx("span",{className:"pl-3 text-sm text-muted-foreground select-none",children:v}),s.jsx(se,{control:a.control,name:"slug",render:({field:o})=>s.jsx("input",{id:"org-slug",value:o.value??"",name:o.name,ref:o.ref,placeholder:"my-organization",className:"flex-1 min-w-0 bg-transparent px-2 py-1.5 text-sm text-foreground placeholder:text-muted-foreground/60 outline-none",onChange:i=>{const m=i.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"");a.setValue("slug",m,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),n()},onBlur:()=>{o.onBlur(),j()}})})]})}),(u.name||u.slug||u.logo)&&s.jsxs("div",{className:"px-5 pb-3 flex flex-col gap-1",children:[u.name&&s.jsx("p",{className:"text-xs text-destructive",children:u.name.message}),u.slug&&s.jsx("p",{className:"text-xs text-destructive",children:u.slug.message}),u.logo&&s.jsx("p",{className:"text-xs text-destructive",children:u.logo.message})]})]})})}const oe=["site-editor","site-diagnostics","ai-image","ai-research"],ie=8;function Ye(t,e,r){const l=e.find(d=>d.id===t);if(l)return{id:l.id,title:l.title,icon:l.icon,kind:"template"};const a=r.find(d=>d.id===t);return a?{id:t,title:a.title,icon:a.icon??null,kind:"custom"}:{id:t,title:t,icon:null,kind:"missing"}}function Je(t){const e=L.c(39),{agent:r,onRemove:l}=t;let a;e[0]!==r.id?(a={id:r.id},e[0]=r.id,e[1]=a):a=e[1];const{attributes:d,listeners:n,setNodeRef:j,transform:u,transition:v,isDragging:o}=Pe(a);let i;e[2]!==u?(i=Ie.Transform.toString(u),e[2]=u,e[3]=i):i=e[3];const m=o?.5:void 0,g=o?100:void 0;let f;e[4]!==i||e[5]!==m||e[6]!==g||e[7]!==v?(f={transform:i,transition:v,opacity:m,zIndex:g},e[4]=i,e[5]=m,e[6]=g,e[7]=v,e[8]=f):f=e[8];const x=f,z=o&&"shadow-lg";let p;e[9]!==z?(p=xe("flex items-center gap-3 px-3 py-2 rounded-lg border border-border bg-background",z),e[9]=z,e[10]=p):p=e[10];const b=`Drag to reorder ${r.title}`;let D;e[11]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Be,{size:14}),e[11]=D):D=e[11];let P;e[12]!==d||e[13]!==n||e[14]!==b?(P=s.jsx("button",{type:"button",...d,...n,className:"text-muted-foreground hover:text-foreground cursor-grab active:cursor-grabbing","aria-label":b,children:D}),e[12]=d,e[13]=n,e[14]=b,e[15]=P):P=e[15];let N;e[16]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(ae,{size:14}),e[16]=N):N=e[16];let w;e[17]!==r.icon||e[18]!==r.title?(w=s.jsx(J,{icon:r.icon,name:r.title,size:"xs",fallbackIcon:N}),e[17]=r.icon,e[18]=r.title,e[19]=w):w=e[19];let y;e[20]!==r.title?(y=s.jsx("span",{className:"text-sm text-foreground truncate",children:r.title}),e[20]=r.title,e[21]=y):y=e[21];const _=r.kind==="template"?"Template":r.kind==="custom"?"Custom agent":"Unavailable";let h;e[22]!==_?(h=s.jsx("span",{className:"text-xs text-muted-foreground",children:_}),e[22]=_,e[23]=h):h=e[23];let S;e[24]!==y||e[25]!==h?(S=s.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[y,h]}),e[24]=y,e[25]=h,e[26]=S):S=e[26];const I=`Remove ${r.title}`;let A;e[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(He,{size:14}),e[27]=A):A=e[27];let C;e[28]!==l||e[29]!==I?(C=s.jsx("button",{type:"button",onClick:l,className:"text-muted-foreground hover:text-foreground p-1 rounded","aria-label":I,children:A}),e[28]=l,e[29]=I,e[30]=C):C=e[30];let k;return e[31]!==j||e[32]!==x||e[33]!==P||e[34]!==w||e[35]!==S||e[36]!==C||e[37]!==p?(k=s.jsxs("div",{ref:j,style:x,className:p,children:[P,w,S,C]}),e[31]=j,e[32]=x,e[33]=P,e[34]=w,e[35]=S,e[36]=C,e[37]=p,e[38]=k):k=e[38],k}function Xe(t){const e=L.c(48),{selectedIds:r,onAdd:l}=t,[a,d]=H.useState(!1),[n,j]=H.useState(""),u=le();let v;e[0]!==r?(v=new Set(r),e[0]=r,e[1]=v):v=e[1];const o=v;let i,m,g,f,x,z,p,b,D,P,N,w,y;if(e[2]!==u||e[3]!==l||e[4]!==a||e[5]!==n||e[6]!==o){const A=n.toLowerCase();f=ee.filter(c=>!o.has(c.id)&&(!n||c.title.toLowerCase().includes(A)));let C;e[20]!==o?(C=c=>c.id!==null&&!Re(c.id)&&!o.has(c.id),e[20]=o,e[21]=C):C=e[21],g=u.filter(C).filter(c=>!n||c.title.toLowerCase().includes(A));let k;e[22]!==l?(k=c=>{l(c),d(!1),j("")},e[22]=l,e[23]=k):k=e[23];const O=k;m=Fe,w=a,y=d,e[24]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(Le,{asChild:!0,children:s.jsxs(G,{type:"button",variant:"outline",size:"sm",children:[s.jsx(Ve,{size:14}),"Add agent"]})}),e[24]=x):x=e[24],i=$e,D="w-[320px] p-0 overflow-hidden",P="start",e[25]!==n?(N=s.jsx(Te,{value:n,onChange:j,placeholder:"Search agents..."}),e[25]=n,e[26]=N):N=e[26],z="max-h-[320px] overflow-y-auto p-2 flex flex-col gap-3",p=f.length>0&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground px-1",children:"Templates"}),f.map(c=>s.jsxs("button",{type:"button",onClick:()=>O(c.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(J,{icon:c.icon,name:c.title,size:"xs"}),s.jsx("span",{className:"text-sm truncate",children:c.title})]},c.id))]}),b=g.length>0&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground px-1",children:"Custom agents"}),g.map(c=>s.jsxs("button",{type:"button",onClick:()=>O(c.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(J,{icon:c.icon,name:c.title,size:"xs",fallbackIcon:s.jsx(ae,{size:14})}),s.jsx("span",{className:"text-sm truncate",children:c.title})]},c.id))]}),e[2]=u,e[3]=l,e[4]=a,e[5]=n,e[6]=o,e[7]=i,e[8]=m,e[9]=g,e[10]=f,e[11]=x,e[12]=z,e[13]=p,e[14]=b,e[15]=D,e[16]=P,e[17]=N,e[18]=w,e[19]=y}else i=e[7],m=e[8],g=e[9],f=e[10],x=e[11],z=e[12],p=e[13],b=e[14],D=e[15],P=e[16],N=e[17],w=e[18],y=e[19];let _;e[27]!==g||e[28]!==f.length||e[29]!==n?(_=f.length===0&&g.length===0&&s.jsx("div",{className:"text-xs text-muted-foreground text-center py-6",children:n?"No agents found":"All agents are already added"}),e[27]=g,e[28]=f.length,e[29]=n,e[30]=_):_=e[30];let h;e[31]!==_||e[32]!==z||e[33]!==p||e[34]!==b?(h=s.jsxs("div",{className:z,children:[p,b,_]}),e[31]=_,e[32]=z,e[33]=p,e[34]=b,e[35]=h):h=e[35];let S;e[36]!==i||e[37]!==h||e[38]!==D||e[39]!==P||e[40]!==N?(S=s.jsxs(i,{className:D,align:P,children:[N,h]}),e[36]=i,e[37]=h,e[38]=D,e[39]=P,e[40]=N,e[41]=S):S=e[41];let I;return e[42]!==m||e[43]!==x||e[44]!==S||e[45]!==w||e[46]!==y?(I=s.jsxs(m,{open:w,onOpenChange:y,children:[x,S]}),e[42]=m,e[43]=x,e[44]=S,e[45]=w,e[46]=y,e[47]=I):I=e[47],I}function Ze(){const t=L.c(61),e=Ke(),r=le(),l=Ue();let a;t[0]!==e?.ids?(a=e?.ids??[...oe],t[0]=e?.ids,t[1]=a):a=t[1];const d=a,[n,j]=H.useState(d);let u;t[2]!==n||t[3]!==d?(u=n.length!==d.length||n.some((E,T)=>E!==d[T]),t[2]=n,t[3]=d,t[4]=u):u=t[4];const v=u;let o;t[5]===Symbol.for("react.memo_cache_sentinel")?(o={activationConstraint:{distance:5}},t[5]=o):o=t[5];let i;t[6]===Symbol.for("react.memo_cache_sentinel")?(i={coordinateGetter:Ee},t[6]=i):i=t[6];const m=Ce(ne(ke,o),ne(Ae,i));let g;t[7]!==n?(g=E=>{const{active:T,over:R}=E;if(!R||T.id===R.id)return;const F=n.indexOf(T.id),U=n.indexOf(R.id);F===-1||U===-1||j(Oe([...n],F,U))},t[7]=n,t[8]=g):g=t[8];const f=g;let x;t[9]!==n?(x=E=>{n.includes(E)||j([...n,E])},t[9]=n,t[10]=x):x=t[10];const z=x;let p;t[11]!==n?(p=E=>{j(n.filter(T=>T!==E))},t[11]=n,t[12]=p):p=t[12];const b=p;let D;t[13]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{j([...oe])},t[13]=D):D=t[13];const P=D;let N;t[14]!==n||t[15]!==l?(N=()=>{l.mutate({ids:n},{onSuccess:()=>{Y("default_home_agents_updated",{count:n.length,template_count:n.filter(tt).length}),V.success("Default home agents updated")},onError:et})},t[14]=n,t[15]=l,t[16]=N):N=t[16];const w=N;let y,_,h,S,I,A,C;if(t[17]!==r||t[18]!==n||t[19]!==f||t[20]!==b||t[21]!==m||t[22]!==l.isPending){let E;t[30]!==r?(E=F=>Ye(F,ee,r),t[30]=r,t[31]=E):E=t[31];const T=n.map(E);h=Math.max(0,n.length-ie),_=X,I="Default home agents";let R;t[32]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(pe,{size:14}),t[32]=R):R=t[32],t[33]!==l.isPending?(A=s.jsxs(G,{type:"button",variant:"ghost",size:"sm",onClick:P,disabled:l.isPending,children:[R,"Reset defaults"]}),t[33]=l.isPending,t[34]=A):A=t[34],y=Z,C="px-5 py-5 flex flex-col gap-3",S=T.length===0?s.jsx("div",{className:"rounded-lg border border-dashed border-border p-6 text-center text-xs text-muted-foreground",children:'No agents selected. The home view will only show "Create agent".'}):s.jsx(we,{sensors:m,collisionDetection:_e,onDragEnd:f,children:s.jsx(ze,{items:n,strategy:De,children:s.jsx("div",{className:"flex flex-col gap-1.5",children:T.map((F,U)=>s.jsxs("div",{className:"flex flex-col gap-1.5",children:[U===ie&&s.jsxs("div",{className:"flex items-center gap-2 px-1 py-1 text-xs text-muted-foreground",children:[s.jsx("div",{className:"flex-1 h-px bg-border"}),s.jsx("span",{children:"Below this line is hidden on the home view"}),s.jsx("div",{className:"flex-1 h-px bg-border"})]}),s.jsx(Je,{agent:F,onRemove:()=>b(F.id)})]},F.id))})})}),t[17]=r,t[18]=n,t[19]=f,t[20]=b,t[21]=m,t[22]=l.isPending,t[23]=y,t[24]=_,t[25]=h,t[26]=S,t[27]=I,t[28]=A,t[29]=C}else y=t[23],_=t[24],h=t[25],S=t[26],I=t[27],A=t[28],C=t[29];let k;t[35]!==n||t[36]!==z?(k=s.jsx(Xe,{selectedIds:n,onAdd:z}),t[35]=n,t[36]=z,t[37]=k):k=t[37];let O;t[38]!==h?(O=h>0&&s.jsxs("span",{className:"text-xs text-muted-foreground",children:[h," agent",h===1?"":"s"," won't fit on the home view"]}),t[38]=h,t[39]=O):O=t[39];let c;t[40]!==k||t[41]!==O?(c=s.jsxs("div",{className:"flex items-center justify-between",children:[k,O]}),t[40]=k,t[41]=O,t[42]=c):c=t[42];let $;t[43]!==S||t[44]!==c||t[45]!==C?($=s.jsxs("div",{className:C,children:[S,c]}),t[43]=S,t[44]=c,t[45]=C,t[46]=$):$=t[46];let M;t[47]!==w||t[48]!==d||t[49]!==v||t[50]!==l.isPending?(M=v&&s.jsxs(ye,{children:[s.jsx(G,{type:"button",variant:"outline",onClick:()=>j(d),disabled:l.isPending,children:"Cancel"}),s.jsx(G,{type:"button",onClick:w,disabled:l.isPending,children:l.isPending?"Saving…":"Save"})]}),t[47]=w,t[48]=d,t[49]=v,t[50]=l.isPending,t[51]=M):M=t[51];let B;t[52]!==y||t[53]!==$||t[54]!==M?(B=s.jsxs(y,{children:[$,M]}),t[52]=y,t[53]=$,t[54]=M,t[55]=B):B=t[55];let K;return t[56]!==_||t[57]!==I||t[58]!==A||t[59]!==B?(K=s.jsx(_,{title:I,actions:A,children:B}),t[56]=_,t[57]=I,t[58]=A,t[59]=B,t[60]=K):K=t[60],K}function et(t){V.error(t instanceof Error?t.message:"Failed to update default home agents")}function tt(t){return ee.some(e=>e.id===t)}function st(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(X,{title:"Default home agents",children:s.jsx(Z,{children:s.jsx("div",{className:"px-5 py-5 flex flex-col gap-2",children:Array.from({length:4}).map(nt)})})}),t[0]=e):e=t[0],e}function nt(t,e){return s.jsx(Me,{className:"h-12 w-full rounded-lg"},e)}function ot(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(H.Suspense,{fallback:s.jsx(st,{}),children:s.jsx(Ze,{})}),t[0]=e):e=t[0],e}function it(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(q,{children:s.jsx(q.Content,{children:s.jsx(q.Body,{children:s.jsxs(Se,{children:[s.jsx(q.Title,{children:"Organization"}),s.jsx(Qe,{}),s.jsx(Ne,{}),s.jsx(ot,{})]})})})}),t[0]=e):e=t[0],e}function ns(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(it,{}),t[0]=e):e=t[0],e}export{ns as default};
1
+ import{f as re,s as ce,o as de,z as me,C as ue,a as fe,t as Y,x as V,K as te,j as s,D as se,H as ge,J as W,e as L,r as H,B as G,c as xe,M as pe}from"./index-BjqwKAPh.js";import{P as q}from"./index-CkXbIQAg.js";import{u as he}from"./use-org-auth-client-Csj669Fw.js";import{u as je}from"./use-debounced-autosave-DHCyVVfx.js";import{A as ve}from"./avatar-CSILDiJX.js";import{I as be}from"./input-BY95D9hS.js";import{S as X,a as Z,b as Q,c as ye,d as Se}from"./settings-section-67sbTFXw.js";import{D as Ne}from"./domain-settings-Dj6mogBD.js";import{u as Ce,a as ne,D as we,c as _e,S as ze,v as De,K as Ae,P as ke,d as Pe,C as Ie,s as Ee,b as Oe,e as Te}from"./collection-search-Qnmn9Jjl.js";import{W as ee,i as Re}from"./constants-BKat4sJw.js";import{b as le}from"./use-virtual-mcp-DER1r6QO.js";import{b as Fe,P as Le,a as $e}from"./popover-Zakke__8.js";import{S as Me}from"./skeleton-CS-2bSP9.js";import{y as Be}from"./agent-icon-s17W0wUB.js";import{s as Ve}from"./Plus-QZEpDFDV.js";import{a as ae}from"./Users03-DDHNU2o0.js";import{i as He}from"./X-C_O1kj8t.js";import{I as J}from"./integration-icon-BTq6hO7n.js";import{a as Ke,d as Ue}from"./use-organization-settings-sGFYoeez.js";import"./tooltip-D_AU3yF1.js";import"./User01-76gT3tOW.js";import"./card-CBJhlNRB.js";import"./ArrowUpRight-ZaII7u8u.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./switch-zLHY6ITD.js";import"./SearchMd-BHubyM0S.js";import"./use-collections-Gut3G1oa.js";import"./AlertCircle-Cxcba8DN.js";import"./Tool01-BPmEF3oC.js";import"./XClose-C21czImH.js";import"./RefreshCcw01-DKtPikGx.js";import"./ArrowNarrowLeft-CtUMVsB_.js";import"./XCircle-D9VV2CKm.js";import"./ZapSquare-OxHp4t0m.js";import"./CheckCircle-CkSmS6Cg.js";import"./Check-BStFjKto.js";import"./ChevronDown-CJ0icK2r.js";import"./ChevronRight-Dw3Db6I0.js";import"./ChevronUp-BDsNPBis.js";import"./DotsVertical-BPk38qYQ.js";import"./Container-WBb7qbdD.js";import"./Star01-DduN7cUl.js";import"./Palette-DfzN4-9K.js";import"./LinkExternal01-6x3Iy4Gd.js";import"./Lock01-DA0MuRwj.js";import"./Sun-k7d5io6k.js";import"./Play-QsP1MGXe.js";import"./Settings02-DpkRLLNd.js";import"./Shield01-BvsHGINb.js";import"./Trash01-DhkmMJFO.js";import"./Zap-TR29R2LK.js";const qe=ge({name:W().min(1,"Name is required").max(255,"Name is too long"),slug:W().min(1,"Slug is required").max(50,"Slug is too long").regex(/^[a-z0-9-]+$/,"Slug must contain only lowercase letters, numbers, and hyphens"),logo:W().optional()});function Ge(t){const e=L.c(13),{value:r,onChange:l,name:a,disabled:d}=t,n=H.useRef(null);let j;e[0]===Symbol.for("react.memo_cache_sentinel")?(j=()=>n.current?.click(),e[0]=j):j=e[0];const u=j;let v;e[1]!==l?(v=z=>{const p=z.target.files?.[0];if(!p)return;if(p.size>2097152){V.error("Image must be smaller than 2MB");return}const b=new FileReader;b.onerror=We,b.onloadend=()=>{b.result&&l(b.result),n.current&&(n.current.value="")},b.readAsDataURL(p)},e[1]=l,e[2]=v):v=e[2];const o=v;let i;e[3]!==d||e[4]!==o?(i=s.jsx("input",{ref:n,type:"file",accept:"image/*",onChange:o,className:"hidden",disabled:d}),e[3]=d,e[4]=o,e[5]=i):i=e[5];const m=r||void 0,g=a??"?";let f;e[6]!==m||e[7]!==g?(f=s.jsx(ve,{url:m,fallback:g,shape:"square",size:"base"}),e[6]=m,e[7]=g,e[8]=f):f=e[8];let x;return e[9]!==d||e[10]!==i||e[11]!==f?(x=s.jsxs("button",{type:"button",onClick:u,disabled:d,className:"rounded-lg overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":"Upload organization logo",children:[i,f]}),e[9]=d,e[10]=i,e[11]=f,e[12]=x):x=e[12],x}function We(){return V.error("Failed to read image")}function Qe(){const t=re(),{org:e}=ce(),r=he(),l=de(),a=me({resolver:ue(qe),values:{name:e.name??"",slug:e.slug??"",logo:e.logo??""}}),d=fe({mutationFn:async o=>{const i={name:o.name,slug:o.slug};o.logo&&(i.logo=o.logo);const m=await r.organization.update({data:i});if(m?.error)throw new Error(m.error.message||"Failed to update organization");return m},onSuccess:(o,i)=>{Y("organization_settings_updated",{organization_id:e.id,fields:Object.keys(i)}),l.invalidateQueries({queryKey:te.organizations()}),l.invalidateQueries({queryKey:te.activeOrganization(e.slug)}),V.success("Organization updated successfully"),o?.data?.slug&&o.data.slug!==e.slug&&t({to:"/$org/settings/general",params:{org:o.data.slug}})},onError:(o,i)=>{Y("organization_settings_update_failed",{organization_id:e.id,fields:Object.keys(i),error:o instanceof Error?o.message:String(o)}),V.error(o instanceof Error?o.message:"Failed to update organization")}}),{schedule:n,flush:j}=je({save:async()=>{const o=a.control._formState.dirtyFields;if(Object.keys(o).length===0||!await a.trigger())return;const m=a.getValues(),g=a.control._defaultValues;a.reset(m,{keepValues:!0});try{await d.mutateAsync(m)}catch{a.reset(g,{keepValues:!0})}}}),u=a.formState.errors,v=typeof window<"u"?`${window.location.host}/`:"";return s.jsx(X,{children:s.jsxs(Z,{children:[s.jsx(Q,{title:"Logo",description:"Recommended size is 256x256px",action:s.jsx(Ge,{value:a.watch("logo"),onChange:o=>{a.setValue("logo",o??"",{shouldDirty:!0}),j()},name:a.watch("name")})}),s.jsx(Q,{title:"Name",action:s.jsx(se,{control:a.control,name:"name",render:({field:o})=>s.jsx(be,{id:"org-name",...o,onChange:i=>{o.onChange(i),n()},onBlur:()=>{o.onBlur(),j()},placeholder:"Organization name",className:"w-[280px]"})})}),s.jsx(Q,{title:"URL",action:s.jsxs("div",{className:"flex items-center w-[280px] rounded-md border border-input bg-input/30 focus-within:ring-2 focus-within:ring-ring/50 overflow-hidden",children:[v&&s.jsx("span",{className:"pl-3 text-sm text-muted-foreground select-none",children:v}),s.jsx(se,{control:a.control,name:"slug",render:({field:o})=>s.jsx("input",{id:"org-slug",value:o.value??"",name:o.name,ref:o.ref,placeholder:"my-organization",className:"flex-1 min-w-0 bg-transparent px-2 py-1.5 text-sm text-foreground placeholder:text-muted-foreground/60 outline-none",onChange:i=>{const m=i.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"");a.setValue("slug",m,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),n()},onBlur:()=>{o.onBlur(),j()}})})]})}),(u.name||u.slug||u.logo)&&s.jsxs("div",{className:"px-5 pb-3 flex flex-col gap-1",children:[u.name&&s.jsx("p",{className:"text-xs text-destructive",children:u.name.message}),u.slug&&s.jsx("p",{className:"text-xs text-destructive",children:u.slug.message}),u.logo&&s.jsx("p",{className:"text-xs text-destructive",children:u.logo.message})]})]})})}const oe=["site-editor","site-diagnostics","ai-image","ai-research"],ie=8;function Ye(t,e,r){const l=e.find(d=>d.id===t);if(l)return{id:l.id,title:l.title,icon:l.icon,kind:"template"};const a=r.find(d=>d.id===t);return a?{id:t,title:a.title,icon:a.icon??null,kind:"custom"}:{id:t,title:t,icon:null,kind:"missing"}}function Je(t){const e=L.c(39),{agent:r,onRemove:l}=t;let a;e[0]!==r.id?(a={id:r.id},e[0]=r.id,e[1]=a):a=e[1];const{attributes:d,listeners:n,setNodeRef:j,transform:u,transition:v,isDragging:o}=Pe(a);let i;e[2]!==u?(i=Ie.Transform.toString(u),e[2]=u,e[3]=i):i=e[3];const m=o?.5:void 0,g=o?100:void 0;let f;e[4]!==i||e[5]!==m||e[6]!==g||e[7]!==v?(f={transform:i,transition:v,opacity:m,zIndex:g},e[4]=i,e[5]=m,e[6]=g,e[7]=v,e[8]=f):f=e[8];const x=f,z=o&&"shadow-lg";let p;e[9]!==z?(p=xe("flex items-center gap-3 px-3 py-2 rounded-lg border border-border bg-background",z),e[9]=z,e[10]=p):p=e[10];const b=`Drag to reorder ${r.title}`;let D;e[11]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Be,{size:14}),e[11]=D):D=e[11];let P;e[12]!==d||e[13]!==n||e[14]!==b?(P=s.jsx("button",{type:"button",...d,...n,className:"text-muted-foreground hover:text-foreground cursor-grab active:cursor-grabbing","aria-label":b,children:D}),e[12]=d,e[13]=n,e[14]=b,e[15]=P):P=e[15];let N;e[16]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(ae,{size:14}),e[16]=N):N=e[16];let w;e[17]!==r.icon||e[18]!==r.title?(w=s.jsx(J,{icon:r.icon,name:r.title,size:"xs",fallbackIcon:N}),e[17]=r.icon,e[18]=r.title,e[19]=w):w=e[19];let y;e[20]!==r.title?(y=s.jsx("span",{className:"text-sm text-foreground truncate",children:r.title}),e[20]=r.title,e[21]=y):y=e[21];const _=r.kind==="template"?"Template":r.kind==="custom"?"Custom agent":"Unavailable";let h;e[22]!==_?(h=s.jsx("span",{className:"text-xs text-muted-foreground",children:_}),e[22]=_,e[23]=h):h=e[23];let S;e[24]!==y||e[25]!==h?(S=s.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[y,h]}),e[24]=y,e[25]=h,e[26]=S):S=e[26];const I=`Remove ${r.title}`;let A;e[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(He,{size:14}),e[27]=A):A=e[27];let C;e[28]!==l||e[29]!==I?(C=s.jsx("button",{type:"button",onClick:l,className:"text-muted-foreground hover:text-foreground p-1 rounded","aria-label":I,children:A}),e[28]=l,e[29]=I,e[30]=C):C=e[30];let k;return e[31]!==j||e[32]!==x||e[33]!==P||e[34]!==w||e[35]!==S||e[36]!==C||e[37]!==p?(k=s.jsxs("div",{ref:j,style:x,className:p,children:[P,w,S,C]}),e[31]=j,e[32]=x,e[33]=P,e[34]=w,e[35]=S,e[36]=C,e[37]=p,e[38]=k):k=e[38],k}function Xe(t){const e=L.c(48),{selectedIds:r,onAdd:l}=t,[a,d]=H.useState(!1),[n,j]=H.useState(""),u=le();let v;e[0]!==r?(v=new Set(r),e[0]=r,e[1]=v):v=e[1];const o=v;let i,m,g,f,x,z,p,b,D,P,N,w,y;if(e[2]!==u||e[3]!==l||e[4]!==a||e[5]!==n||e[6]!==o){const A=n.toLowerCase();f=ee.filter(c=>!o.has(c.id)&&(!n||c.title.toLowerCase().includes(A)));let C;e[20]!==o?(C=c=>c.id!==null&&!Re(c.id)&&!o.has(c.id),e[20]=o,e[21]=C):C=e[21],g=u.filter(C).filter(c=>!n||c.title.toLowerCase().includes(A));let k;e[22]!==l?(k=c=>{l(c),d(!1),j("")},e[22]=l,e[23]=k):k=e[23];const O=k;m=Fe,w=a,y=d,e[24]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(Le,{asChild:!0,children:s.jsxs(G,{type:"button",variant:"outline",size:"sm",children:[s.jsx(Ve,{size:14}),"Add agent"]})}),e[24]=x):x=e[24],i=$e,D="w-[320px] p-0 overflow-hidden",P="start",e[25]!==n?(N=s.jsx(Te,{value:n,onChange:j,placeholder:"Search agents..."}),e[25]=n,e[26]=N):N=e[26],z="max-h-[320px] overflow-y-auto p-2 flex flex-col gap-3",p=f.length>0&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground px-1",children:"Templates"}),f.map(c=>s.jsxs("button",{type:"button",onClick:()=>O(c.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(J,{icon:c.icon,name:c.title,size:"xs"}),s.jsx("span",{className:"text-sm truncate",children:c.title})]},c.id))]}),b=g.length>0&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground px-1",children:"Custom agents"}),g.map(c=>s.jsxs("button",{type:"button",onClick:()=>O(c.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(J,{icon:c.icon,name:c.title,size:"xs",fallbackIcon:s.jsx(ae,{size:14})}),s.jsx("span",{className:"text-sm truncate",children:c.title})]},c.id))]}),e[2]=u,e[3]=l,e[4]=a,e[5]=n,e[6]=o,e[7]=i,e[8]=m,e[9]=g,e[10]=f,e[11]=x,e[12]=z,e[13]=p,e[14]=b,e[15]=D,e[16]=P,e[17]=N,e[18]=w,e[19]=y}else i=e[7],m=e[8],g=e[9],f=e[10],x=e[11],z=e[12],p=e[13],b=e[14],D=e[15],P=e[16],N=e[17],w=e[18],y=e[19];let _;e[27]!==g||e[28]!==f.length||e[29]!==n?(_=f.length===0&&g.length===0&&s.jsx("div",{className:"text-xs text-muted-foreground text-center py-6",children:n?"No agents found":"All agents are already added"}),e[27]=g,e[28]=f.length,e[29]=n,e[30]=_):_=e[30];let h;e[31]!==_||e[32]!==z||e[33]!==p||e[34]!==b?(h=s.jsxs("div",{className:z,children:[p,b,_]}),e[31]=_,e[32]=z,e[33]=p,e[34]=b,e[35]=h):h=e[35];let S;e[36]!==i||e[37]!==h||e[38]!==D||e[39]!==P||e[40]!==N?(S=s.jsxs(i,{className:D,align:P,children:[N,h]}),e[36]=i,e[37]=h,e[38]=D,e[39]=P,e[40]=N,e[41]=S):S=e[41];let I;return e[42]!==m||e[43]!==x||e[44]!==S||e[45]!==w||e[46]!==y?(I=s.jsxs(m,{open:w,onOpenChange:y,children:[x,S]}),e[42]=m,e[43]=x,e[44]=S,e[45]=w,e[46]=y,e[47]=I):I=e[47],I}function Ze(){const t=L.c(61),e=Ke(),r=le(),l=Ue();let a;t[0]!==e?.ids?(a=e?.ids??[...oe],t[0]=e?.ids,t[1]=a):a=t[1];const d=a,[n,j]=H.useState(d);let u;t[2]!==n||t[3]!==d?(u=n.length!==d.length||n.some((E,T)=>E!==d[T]),t[2]=n,t[3]=d,t[4]=u):u=t[4];const v=u;let o;t[5]===Symbol.for("react.memo_cache_sentinel")?(o={activationConstraint:{distance:5}},t[5]=o):o=t[5];let i;t[6]===Symbol.for("react.memo_cache_sentinel")?(i={coordinateGetter:Ee},t[6]=i):i=t[6];const m=Ce(ne(ke,o),ne(Ae,i));let g;t[7]!==n?(g=E=>{const{active:T,over:R}=E;if(!R||T.id===R.id)return;const F=n.indexOf(T.id),U=n.indexOf(R.id);F===-1||U===-1||j(Oe([...n],F,U))},t[7]=n,t[8]=g):g=t[8];const f=g;let x;t[9]!==n?(x=E=>{n.includes(E)||j([...n,E])},t[9]=n,t[10]=x):x=t[10];const z=x;let p;t[11]!==n?(p=E=>{j(n.filter(T=>T!==E))},t[11]=n,t[12]=p):p=t[12];const b=p;let D;t[13]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{j([...oe])},t[13]=D):D=t[13];const P=D;let N;t[14]!==n||t[15]!==l?(N=()=>{l.mutate({ids:n},{onSuccess:()=>{Y("default_home_agents_updated",{count:n.length,template_count:n.filter(tt).length}),V.success("Default home agents updated")},onError:et})},t[14]=n,t[15]=l,t[16]=N):N=t[16];const w=N;let y,_,h,S,I,A,C;if(t[17]!==r||t[18]!==n||t[19]!==f||t[20]!==b||t[21]!==m||t[22]!==l.isPending){let E;t[30]!==r?(E=F=>Ye(F,ee,r),t[30]=r,t[31]=E):E=t[31];const T=n.map(E);h=Math.max(0,n.length-ie),_=X,I="Default home agents";let R;t[32]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(pe,{size:14}),t[32]=R):R=t[32],t[33]!==l.isPending?(A=s.jsxs(G,{type:"button",variant:"ghost",size:"sm",onClick:P,disabled:l.isPending,children:[R,"Reset defaults"]}),t[33]=l.isPending,t[34]=A):A=t[34],y=Z,C="px-5 py-5 flex flex-col gap-3",S=T.length===0?s.jsx("div",{className:"rounded-lg border border-dashed border-border p-6 text-center text-xs text-muted-foreground",children:'No agents selected. The home view will only show "Create agent".'}):s.jsx(we,{sensors:m,collisionDetection:_e,onDragEnd:f,children:s.jsx(ze,{items:n,strategy:De,children:s.jsx("div",{className:"flex flex-col gap-1.5",children:T.map((F,U)=>s.jsxs("div",{className:"flex flex-col gap-1.5",children:[U===ie&&s.jsxs("div",{className:"flex items-center gap-2 px-1 py-1 text-xs text-muted-foreground",children:[s.jsx("div",{className:"flex-1 h-px bg-border"}),s.jsx("span",{children:"Below this line is hidden on the home view"}),s.jsx("div",{className:"flex-1 h-px bg-border"})]}),s.jsx(Je,{agent:F,onRemove:()=>b(F.id)})]},F.id))})})}),t[17]=r,t[18]=n,t[19]=f,t[20]=b,t[21]=m,t[22]=l.isPending,t[23]=y,t[24]=_,t[25]=h,t[26]=S,t[27]=I,t[28]=A,t[29]=C}else y=t[23],_=t[24],h=t[25],S=t[26],I=t[27],A=t[28],C=t[29];let k;t[35]!==n||t[36]!==z?(k=s.jsx(Xe,{selectedIds:n,onAdd:z}),t[35]=n,t[36]=z,t[37]=k):k=t[37];let O;t[38]!==h?(O=h>0&&s.jsxs("span",{className:"text-xs text-muted-foreground",children:[h," agent",h===1?"":"s"," won't fit on the home view"]}),t[38]=h,t[39]=O):O=t[39];let c;t[40]!==k||t[41]!==O?(c=s.jsxs("div",{className:"flex items-center justify-between",children:[k,O]}),t[40]=k,t[41]=O,t[42]=c):c=t[42];let $;t[43]!==S||t[44]!==c||t[45]!==C?($=s.jsxs("div",{className:C,children:[S,c]}),t[43]=S,t[44]=c,t[45]=C,t[46]=$):$=t[46];let M;t[47]!==w||t[48]!==d||t[49]!==v||t[50]!==l.isPending?(M=v&&s.jsxs(ye,{children:[s.jsx(G,{type:"button",variant:"outline",onClick:()=>j(d),disabled:l.isPending,children:"Cancel"}),s.jsx(G,{type:"button",onClick:w,disabled:l.isPending,children:l.isPending?"Saving…":"Save"})]}),t[47]=w,t[48]=d,t[49]=v,t[50]=l.isPending,t[51]=M):M=t[51];let B;t[52]!==y||t[53]!==$||t[54]!==M?(B=s.jsxs(y,{children:[$,M]}),t[52]=y,t[53]=$,t[54]=M,t[55]=B):B=t[55];let K;return t[56]!==_||t[57]!==I||t[58]!==A||t[59]!==B?(K=s.jsx(_,{title:I,actions:A,children:B}),t[56]=_,t[57]=I,t[58]=A,t[59]=B,t[60]=K):K=t[60],K}function et(t){V.error(t instanceof Error?t.message:"Failed to update default home agents")}function tt(t){return ee.some(e=>e.id===t)}function st(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(X,{title:"Default home agents",children:s.jsx(Z,{children:s.jsx("div",{className:"px-5 py-5 flex flex-col gap-2",children:Array.from({length:4}).map(nt)})})}),t[0]=e):e=t[0],e}function nt(t,e){return s.jsx(Me,{className:"h-12 w-full rounded-lg"},e)}function ot(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(H.Suspense,{fallback:s.jsx(st,{}),children:s.jsx(Ze,{})}),t[0]=e):e=t[0],e}function it(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(q,{children:s.jsx(q.Content,{children:s.jsx(q.Body,{children:s.jsxs(Se,{children:[s.jsx(q.Title,{children:"Organization"}),s.jsx(Qe,{}),s.jsx(Ne,{}),s.jsx(ot,{})]})})})}),t[0]=e):e=t[0],e}function ns(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(it,{}),t[0]=e):e=t[0],e}export{ns as default};
@@ -1,4 +1,4 @@
1
- import{cj as ne,e as _,j as o,B as te,l as ln,bc as ze,ck as ms,r as T,s as oe,c as O,g as ps,o as cn,c5 as xs,a7 as hs,a8 as fe,aW as an,c6 as gs,aT as bs,c4 as Ss,c7 as un,b6 as js,cd as ys,ce as vs,ae as ws,cf as Ns,cl as $t,cm as dn,x as ks,y as _s,cn as Cs,co as Is}from"./index-tTl1XGBH.js";import{D as Ts,F as Es,B as $s}from"./index--7GMpzOC.js";import{e as Fe,i as Os,u as ae}from"./constants-DP1fYfN5.js";import{b as fn}from"./use-virtual-mcp-CCHAGkyS.js";import{M as Re}from"./monaco-editor-DN9aHYBK.js";import{A as Rs,c as Ms,a as Ls,b as Ps,e as As,R as Ut,d as zs}from"./accordion-hXQ4kg4L.js";import{B as le}from"./badge-CgKuwLV1.js";import{c as vt,S as wt,d as nt,b as Nt,a as kt}from"./select-BNR6YSaM.js";import{N as Ws,h as Ds,j as Fs,m as Be,P as Hs,i as Vs,R as Us,c as qs,k as Ks,e as qt,d as Bs,S as st}from"./index-D5ted9OP.js";import{V as Xs}from"./view-mode-toggle-DXuwWpcV.js";import{a9 as Js,aa as Gs,i as Qs,a1 as mn,ab as Ys,Q as Zs,r as eo,ac as pn,Y as to,U as xn,ad as no,ae as so,S as bt,af as oo}from"./agent-icon-DF6ftYz_.js";import{i as hn}from"./Play-DVx-BQBK.js";import{b as ro,a as io,V as Qe}from"./layout-yHPZhe3e.js";import{c as gn,T as bn,a as Sn,b as jn}from"./tooltip-Bo9taUEe.js";import{u as lo,a as co}from"./use-connection-CHMNg8na.js";import{u as Ot,d as Rt,b as yn}from"./use-mcp-tools-DI96BLC5.js";import{c as ao,d as uo,e as fo,D as mo,a as po,b as xo}from"./dialog-BFoHlGht.js";import"./index-CQTEAoFE.js";import{S as ho}from"./index-D8S8aIBi.js";import{D as vn,a as wn,b as Nn,c as Ye}from"./dropdown-menu-ECqk4Bwl.js";import{s as go}from"./Plus-6Aj_3OR1.js";import{b as kn}from"./Tool01-C2Si0HgH.js";import{i as He}from"./Check-BqWn0Qac.js";import{s as Mt}from"./XClose-3a3Tbrfg.js";import{I as Lt}from"./integration-icon--zCgX8zg.js";import{a as bo,S as So}from"./scroll-area-CV3e2fLD.js";import"./index-BR_akr8d.js";import{i as _n}from"./X-DBkpNyXP.js";import{u as Cn,a as jo}from"./use-collections-Dn6M4xty.js";import{E as In}from"./empty-state-DnTORYxE.js";import{c as yo}from"./create-sse-subscription-CxkOgzKf.js";import{I as Kt}from"./input-7B8HJEw8.js";const Tn=ne("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);const En=ne("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);const ot=ne("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const rt=ne("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const vo=ne("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);const $n=ne("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);const wo=ne("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);const On=ne("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const Rn=ne("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);const Mn=ne("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);const No=ne("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);const Ln=ne("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const Pn=ne("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);const ko=ne("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const An=ne("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);function _o(t){const e=_.c(15),{onSave:n,onUndo:s,isDirty:i,isSaving:r,saveLabel:l,undoLabel:c}=t,a=l===void 0?"Save":l,u=c===void 0?"Undo":c;if(!i)return null;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx(Js,{size:14}),e[0]=d):d=e[0];let f;e[1]!==r||e[2]!==s||e[3]!==u?(f=o.jsxs(te,{variant:"outline",size:"sm",onClick:s,disabled:r,"aria-label":u,children:[d,u]}),e[1]=r,e[2]=s,e[3]=u,e[4]=f):f=e[4];let m;e[5]!==r?(m=r?o.jsx(ln,{size:14,className:"animate-spin"}):o.jsx(Gs,{size:14}),e[5]=r,e[6]=m):m=e[6];let x;e[7]!==r||e[8]!==n||e[9]!==a||e[10]!==m?(x=o.jsxs(te,{variant:"default",size:"sm",onClick:n,disabled:r,"aria-label":a,children:[m,a]}),e[7]=r,e[8]=n,e[9]=a,e[10]=m,e[11]=x):x=e[11];let p;return e[12]!==f||e[13]!==x?(p=o.jsxs(o.Fragment,{children:[f,x]}),e[12]=f,e[13]=x,e[14]=p):p=e[14],p}const Bt=t=>{let e;const n=new Set,s=(u,d)=>{const f=typeof u=="function"?u(e):u;if(!Object.is(f,e)){const m=e;e=d??(typeof f!="object"||f===null)?f:Object.assign({},e,f),n.forEach(x=>x(e,m))}},i=()=>e,c={setState:s,getState:i,getInitialState:()=>a,subscribe:u=>(n.add(u),()=>n.delete(u))},a=e=t(s,i,c);return c},Pt=(t=>t?Bt(t):Bt),Co=t=>t;function _t(t,e=Co){const n=ze.useSyncExternalStore(t.subscribe,ze.useCallback(()=>e(t.getState()),[t,e]),ze.useCallback(()=>e(t.getInitialState()),[t,e]));return ze.useDebugValue(n),n}const Io=t=>{const e=Pt(t),n=s=>_t(e,s);return Object.assign(n,e),n},To=(t=>Io);function zn(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var r;const l=a=>a===null?null:JSON.parse(a,void 0),c=(r=n.getItem(i))!=null?r:null;return c instanceof Promise?c.then(l):l(c)},setItem:(i,r)=>n.setItem(i,JSON.stringify(r,void 0)),removeItem:i=>n.removeItem(i)}}const Ct=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(s){return Ct(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return Ct(s)(n)}}}},Eo=(t,e)=>(n,s,i)=>{let r={storage:zn(()=>window.localStorage),partialize:g=>g,version:0,merge:(g,b)=>({...b,...g}),...e},l=!1,c=0;const a=new Set,u=new Set;let d=r.storage;if(!d)return t((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${r.name}', the given storage is currently unavailable.`),n(...g)},s,i);const f=()=>{const g=r.partialize({...s()});return d.setItem(r.name,{state:g,version:r.version})},m=i.setState;i.setState=(g,b)=>(m(g,b),f());const x=t((...g)=>(n(...g),f()),s,i);i.getInitialState=()=>x;let p;const h=()=>{var g,b;if(!d)return;const j=++c;l=!1,a.forEach(y=>{var S;return y((S=s())!=null?S:x)});const v=((b=r.onRehydrateStorage)==null?void 0:b.call(r,(g=s())!=null?g:x))||void 0;return Ct(d.getItem.bind(d))(r.name).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==r.version){if(r.migrate){const S=r.migrate(y.state,y.version);return S instanceof Promise?S.then(w=>[!0,w]):[!0,S]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,y.state];return[!1,void 0]}).then(y=>{var S;if(j!==c)return;const[w,N]=y;if(p=r.merge(N,(S=s())!=null?S:x),n(p,!0),w)return f()}).then(()=>{j===c&&(v?.(s(),void 0),p=s(),l=!0,u.forEach(y=>y(p)))}).catch(y=>{j===c&&v?.(void 0,y)})};return i.persist={setOptions:g=>{r={...r,...g},g.storage&&(d=g.storage)},clearStorage:()=>{d?.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>h(),hasHydrated:()=>l,onHydrate:g=>(a.add(g),()=>{a.delete(g)}),onFinishHydration:g=>(u.add(g),()=>{u.delete(g)})},r.skipHydration||h(),p||x},Wn=Eo,{useSyncExternalStoreWithSelector:$o}=ms,Oo=t=>t;function Ro(t,e=Oo,n){const s=$o(t.subscribe,t.getState,t.getInitialState,e,n);return ze.useDebugValue(s),s}const Xt=t=>Symbol.iterator in t,Jt=t=>"entries"in t,Gt=(t,e)=>{const n=t instanceof Map?t:new Map(t.entries()),s=e instanceof Map?e:new Map(e.entries());if(n.size!==s.size)return!1;for(const[i,r]of n)if(!s.has(i)||!Object.is(r,s.get(i)))return!1;return!0},Mo=(t,e)=>{const n=t[Symbol.iterator](),s=e[Symbol.iterator]();let i=n.next(),r=s.next();for(;!i.done&&!r.done;){if(!Object.is(i.value,r.value))return!1;i=n.next(),r=s.next()}return!!i.done&&!!r.done};function Lo(t,e){return Object.is(t,e)?!0:typeof t!="object"||t===null||typeof e!="object"||e===null||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e)?!1:Xt(t)&&Xt(e)?Jt(t)&&Jt(e)?Gt(t,e):Mo(t,e):Gt({entries:()=>Object.entries(t)},{entries:()=>Object.entries(e)})}function Dn(t,e="Output"){if(!t)return`interface ${e} {}`;function n(r){if(!r||typeof r!="object")return"unknown";const l=r.type;if(Array.isArray(l))return l.map(c=>s(c)).join(" | ");switch(l){case"string":return r.enum?r.enum.map(c=>`"${c}"`).join(" | "):"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";case"array":{const c=r.items;return c?`${n(c)}[]`:"unknown[]"}case"object":return i(r);default:return r.anyOf?r.anyOf.map(n).join(" | "):r.oneOf?r.oneOf.map(n).join(" | "):r.allOf?r.allOf.map(n).join(" & "):"unknown"}}function s(r){switch(r){case"string":return"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";default:return"unknown"}}function i(r){const l=r.properties;if(!l)return"Record<string, unknown>";const c=new Set(r.required||[]);return`{
1
+ import{cj as ne,e as _,j as o,B as te,l as ln,bc as ze,ck as ms,r as T,s as oe,c as O,g as ps,o as cn,c5 as xs,a7 as hs,a8 as fe,aW as an,c6 as gs,aT as bs,c4 as Ss,c7 as un,b6 as js,cd as ys,ce as vs,ae as ws,cf as Ns,cl as $t,cm as dn,x as ks,y as _s,cn as Cs,co as Is}from"./index-BjqwKAPh.js";import{D as Ts,F as Es,B as $s}from"./index-D075V-Aw.js";import{e as Fe,i as Os,u as ae}from"./constants-BKat4sJw.js";import{b as fn}from"./use-virtual-mcp-DER1r6QO.js";import{M as Re}from"./monaco-editor-UyxFxpQH.js";import{A as Rs,c as Ms,a as Ls,b as Ps,e as As,R as Ut,d as zs}from"./accordion-CTsJVvtX.js";import{B as le}from"./badge-COxphYel.js";import{c as vt,S as wt,d as nt,b as Nt,a as kt}from"./select-CR2tN9TX.js";import{N as Ws,h as Ds,j as Fs,m as Be,P as Hs,i as Vs,R as Us,c as qs,k as Ks,e as qt,d as Bs,S as st}from"./index-DO6HBQ4K.js";import{V as Xs}from"./view-mode-toggle-DoU7eK15.js";import{a9 as Js,aa as Gs,i as Qs,a1 as mn,ab as Ys,Q as Zs,r as eo,ac as pn,Y as to,U as xn,ad as no,ae as so,S as bt,af as oo}from"./agent-icon-s17W0wUB.js";import{i as hn}from"./Play-QsP1MGXe.js";import{b as ro,a as io,V as Qe}from"./layout-D9TsRZCx.js";import{c as gn,T as bn,a as Sn,b as jn}from"./tooltip-D_AU3yF1.js";import{u as lo,a as co}from"./use-connection-DPW4E_0G.js";import{u as Ot,d as Rt,b as yn}from"./use-mcp-tools-iAx7skPl.js";import{c as ao,d as uo,e as fo,D as mo,a as po,b as xo}from"./dialog-DxHqBK-g.js";import"./index-Dt0vRnUx.js";import{S as ho}from"./index-CQAZn3EK.js";import{D as vn,a as wn,b as Nn,c as Ye}from"./dropdown-menu-Do_6-JC4.js";import{s as go}from"./Plus-QZEpDFDV.js";import{b as kn}from"./Tool01-BPmEF3oC.js";import{i as He}from"./Check-BStFjKto.js";import{s as Mt}from"./XClose-C21czImH.js";import{I as Lt}from"./integration-icon-BTq6hO7n.js";import{a as bo,S as So}from"./scroll-area-DkrmJo9D.js";import"./index-CKPYZoPD.js";import{i as _n}from"./X-C_O1kj8t.js";import{u as Cn,a as jo}from"./use-collections-Gut3G1oa.js";import{E as In}from"./empty-state-Bmp0M8wH.js";import{c as yo}from"./create-sse-subscription-CxkOgzKf.js";import{I as Kt}from"./input-BY95D9hS.js";const Tn=ne("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);const En=ne("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);const ot=ne("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const rt=ne("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const vo=ne("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);const $n=ne("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);const wo=ne("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);const On=ne("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const Rn=ne("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);const Mn=ne("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);const No=ne("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);const Ln=ne("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const Pn=ne("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);const ko=ne("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const An=ne("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);function _o(t){const e=_.c(15),{onSave:n,onUndo:s,isDirty:i,isSaving:r,saveLabel:l,undoLabel:c}=t,a=l===void 0?"Save":l,u=c===void 0?"Undo":c;if(!i)return null;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx(Js,{size:14}),e[0]=d):d=e[0];let f;e[1]!==r||e[2]!==s||e[3]!==u?(f=o.jsxs(te,{variant:"outline",size:"sm",onClick:s,disabled:r,"aria-label":u,children:[d,u]}),e[1]=r,e[2]=s,e[3]=u,e[4]=f):f=e[4];let m;e[5]!==r?(m=r?o.jsx(ln,{size:14,className:"animate-spin"}):o.jsx(Gs,{size:14}),e[5]=r,e[6]=m):m=e[6];let x;e[7]!==r||e[8]!==n||e[9]!==a||e[10]!==m?(x=o.jsxs(te,{variant:"default",size:"sm",onClick:n,disabled:r,"aria-label":a,children:[m,a]}),e[7]=r,e[8]=n,e[9]=a,e[10]=m,e[11]=x):x=e[11];let p;return e[12]!==f||e[13]!==x?(p=o.jsxs(o.Fragment,{children:[f,x]}),e[12]=f,e[13]=x,e[14]=p):p=e[14],p}const Bt=t=>{let e;const n=new Set,s=(u,d)=>{const f=typeof u=="function"?u(e):u;if(!Object.is(f,e)){const m=e;e=d??(typeof f!="object"||f===null)?f:Object.assign({},e,f),n.forEach(x=>x(e,m))}},i=()=>e,c={setState:s,getState:i,getInitialState:()=>a,subscribe:u=>(n.add(u),()=>n.delete(u))},a=e=t(s,i,c);return c},Pt=(t=>t?Bt(t):Bt),Co=t=>t;function _t(t,e=Co){const n=ze.useSyncExternalStore(t.subscribe,ze.useCallback(()=>e(t.getState()),[t,e]),ze.useCallback(()=>e(t.getInitialState()),[t,e]));return ze.useDebugValue(n),n}const Io=t=>{const e=Pt(t),n=s=>_t(e,s);return Object.assign(n,e),n},To=(t=>Io);function zn(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var r;const l=a=>a===null?null:JSON.parse(a,void 0),c=(r=n.getItem(i))!=null?r:null;return c instanceof Promise?c.then(l):l(c)},setItem:(i,r)=>n.setItem(i,JSON.stringify(r,void 0)),removeItem:i=>n.removeItem(i)}}const Ct=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(s){return Ct(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return Ct(s)(n)}}}},Eo=(t,e)=>(n,s,i)=>{let r={storage:zn(()=>window.localStorage),partialize:g=>g,version:0,merge:(g,b)=>({...b,...g}),...e},l=!1,c=0;const a=new Set,u=new Set;let d=r.storage;if(!d)return t((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${r.name}', the given storage is currently unavailable.`),n(...g)},s,i);const f=()=>{const g=r.partialize({...s()});return d.setItem(r.name,{state:g,version:r.version})},m=i.setState;i.setState=(g,b)=>(m(g,b),f());const x=t((...g)=>(n(...g),f()),s,i);i.getInitialState=()=>x;let p;const h=()=>{var g,b;if(!d)return;const j=++c;l=!1,a.forEach(y=>{var S;return y((S=s())!=null?S:x)});const v=((b=r.onRehydrateStorage)==null?void 0:b.call(r,(g=s())!=null?g:x))||void 0;return Ct(d.getItem.bind(d))(r.name).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==r.version){if(r.migrate){const S=r.migrate(y.state,y.version);return S instanceof Promise?S.then(w=>[!0,w]):[!0,S]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,y.state];return[!1,void 0]}).then(y=>{var S;if(j!==c)return;const[w,N]=y;if(p=r.merge(N,(S=s())!=null?S:x),n(p,!0),w)return f()}).then(()=>{j===c&&(v?.(s(),void 0),p=s(),l=!0,u.forEach(y=>y(p)))}).catch(y=>{j===c&&v?.(void 0,y)})};return i.persist={setOptions:g=>{r={...r,...g},g.storage&&(d=g.storage)},clearStorage:()=>{d?.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>h(),hasHydrated:()=>l,onHydrate:g=>(a.add(g),()=>{a.delete(g)}),onFinishHydration:g=>(u.add(g),()=>{u.delete(g)})},r.skipHydration||h(),p||x},Wn=Eo,{useSyncExternalStoreWithSelector:$o}=ms,Oo=t=>t;function Ro(t,e=Oo,n){const s=$o(t.subscribe,t.getState,t.getInitialState,e,n);return ze.useDebugValue(s),s}const Xt=t=>Symbol.iterator in t,Jt=t=>"entries"in t,Gt=(t,e)=>{const n=t instanceof Map?t:new Map(t.entries()),s=e instanceof Map?e:new Map(e.entries());if(n.size!==s.size)return!1;for(const[i,r]of n)if(!s.has(i)||!Object.is(r,s.get(i)))return!1;return!0},Mo=(t,e)=>{const n=t[Symbol.iterator](),s=e[Symbol.iterator]();let i=n.next(),r=s.next();for(;!i.done&&!r.done;){if(!Object.is(i.value,r.value))return!1;i=n.next(),r=s.next()}return!!i.done&&!!r.done};function Lo(t,e){return Object.is(t,e)?!0:typeof t!="object"||t===null||typeof e!="object"||e===null||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e)?!1:Xt(t)&&Xt(e)?Jt(t)&&Jt(e)?Gt(t,e):Mo(t,e):Gt({entries:()=>Object.entries(t)},{entries:()=>Object.entries(e)})}function Dn(t,e="Output"){if(!t)return`interface ${e} {}`;function n(r){if(!r||typeof r!="object")return"unknown";const l=r.type;if(Array.isArray(l))return l.map(c=>s(c)).join(" | ");switch(l){case"string":return r.enum?r.enum.map(c=>`"${c}"`).join(" | "):"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";case"array":{const c=r.items;return c?`${n(c)}[]`:"unknown[]"}case"object":return i(r);default:return r.anyOf?r.anyOf.map(n).join(" | "):r.oneOf?r.oneOf.map(n).join(" | "):r.allOf?r.allOf.map(n).join(" & "):"unknown"}}function s(r){switch(r){case"string":return"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";default:return"unknown"}}function i(r){const l=r.properties;if(!l)return"Record<string, unknown>";const c=new Set(r.required||[]);return`{
2
2
  ${Object.entries(l).map(([u,d])=>{const f=c.has(u)?"":"?";return`${d.description?` /** ${d.description} */
3
3
  `:""} ${u}${f}: ${n(d)};`}).join(`
4
4
  `)}