@decocms/mesh 2.93.0 → 2.94.0

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 (167) hide show
  1. package/dist/client/assets/{AlertCircle-BJfVaiNR.js → AlertCircle-j0KzIdIX.js} +1 -1
  2. package/dist/client/assets/{AlertOctagon-BqIGROe2.js → AlertOctagon-BgwSXYuk.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-C2r9xCMk.js → ArrowLeft-6dlMDZD7.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-DRp6vASi.js → ArrowUp-C1DJqgoZ.js} +1 -1
  5. package/dist/client/assets/{Check-BbDyAKwk.js → Check-C5QtWx2D.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-B8fLHQdH.js → CheckCircle-EHieoMk6.js} +1 -1
  7. package/dist/client/assets/{CheckDone01-Bys75aHQ.js → CheckDone01-SCPIkQCe.js} +1 -1
  8. package/dist/client/assets/{ChevronDown-7A1cRX7R.js → ChevronDown-BLfACJvJ.js} +1 -1
  9. package/dist/client/assets/{ChevronRight-BRhPcZSa.js → ChevronRight-DnWxHWge.js} +1 -1
  10. package/dist/client/assets/{Clock-BIGQHD9h.js → Clock-BYemExR5.js} +1 -1
  11. package/dist/client/assets/{Code01-Cjj1F5gy.js → Code01-DM216x2v.js} +1 -1
  12. package/dist/client/assets/{Copy01-D25IcVik.js → Copy01-B0_tEmE3.js} +1 -1
  13. package/dist/client/assets/{Dataflow03-gt5EZJRf.js → Dataflow03-C_xLhNUT.js} +1 -1
  14. package/dist/client/assets/{DotsHorizontal-YlLfe7Uj.js → DotsHorizontal-DRvl8_yh.js} +1 -1
  15. package/dist/client/assets/{DotsVertical-CNF9s03z.js → DotsVertical-G8ImM-fa.js} +1 -1
  16. package/dist/client/assets/{Download01-DpqRqMow.js → Download01-ZPaYMSna.js} +1 -1
  17. package/dist/client/assets/{Edit01-CGEDBBX4.js → Edit01-Lq8UOkVd.js} +1 -1
  18. package/dist/client/assets/{Eye-BRxUETF7.js → Eye-ByHE2GJe.js} +1 -1
  19. package/dist/client/assets/{File02-N8JiOK1D.js → File02-dG5TfZkb.js} +1 -1
  20. package/dist/client/assets/{File06-DTqAGoXv.js → File06-Cww6dYwi.js} +1 -1
  21. package/dist/client/assets/{FilterLines-D8i8JEig.js → FilterLines-CadzWYuC.js} +1 -1
  22. package/dist/client/assets/{Grid01-C32o_3u_.js → Grid01-D_3V4UIT.js} +1 -1
  23. package/dist/client/assets/{Home02-Dr-QYPYE.js → Home02-BtcHSeDX.js} +1 -1
  24. package/dist/client/assets/{Image01-BrG0_eQI.js → Image01-CrD1aqdp.js} +1 -1
  25. package/dist/client/assets/{Inbox01-CbmffRtl.js → Inbox01-CU36sLHT.js} +1 -1
  26. package/dist/client/assets/{InfoCircle-D3aiaAIu.js → InfoCircle-DJLnyVJD.js} +1 -1
  27. package/dist/client/assets/{Key01-DjcGMWKs.js → Key01-sSzNClAs.js} +1 -1
  28. package/dist/client/assets/{LinkExternal01-BhAQglyx.js → LinkExternal01-YszpKCPw.js} +1 -1
  29. package/dist/client/assets/{List-CjbzYeJ6.js → List-BzgZveoS.js} +1 -1
  30. package/dist/client/assets/{Loading01-DfNZTeXG.js → Loading01-5hc3T6Gd.js} +1 -1
  31. package/dist/client/assets/{Lock01-Dn4GQ5fz.js → Lock01-C9-6HhjA.js} +1 -1
  32. package/dist/client/assets/{Pin01-CaFrlg6f.js → Pin01-HGARLW8T.js} +1 -1
  33. package/dist/client/assets/{Play-DVbots08.js → Play-CwkyX1Lx.js} +1 -1
  34. package/dist/client/assets/{Plus-Dvi8ykdU.js → Plus-Dn73MiSM.js} +1 -1
  35. package/dist/client/assets/{RefreshCcw01-D_4ed9nd.js → RefreshCcw01-CtqWKAvv.js} +1 -1
  36. package/dist/client/assets/{RefreshCw01-DdWg_Gm-.js → RefreshCw01-BqgcQ10A.js} +1 -1
  37. package/dist/client/assets/{SearchMd-C7x5Yx1g.js → SearchMd-Czj8XGUX.js} +1 -1
  38. package/dist/client/assets/{Settings01-DoWv9Fu6.js → Settings01-Dk3-DPld.js} +1 -1
  39. package/dist/client/assets/{Settings02-CagrIiKm.js → Settings02-CaNoLwfL.js} +1 -1
  40. package/dist/client/assets/{Share07-1fblvQNV.js → Share07-Bt_j0pH2.js} +1 -1
  41. package/dist/client/assets/{Terminal-CXaVZ6Bv.js → Terminal-DlCWfDrb.js} +1 -1
  42. package/dist/client/assets/{Tool01-B4L7cusv.js → Tool01-Bj8w--YE.js} +1 -1
  43. package/dist/client/assets/{Trash01-r6tGqIUl.js → Trash01-OGm6m6Nc.js} +1 -1
  44. package/dist/client/assets/{Upload01-BYzZ690G.js → Upload01-oWeoIlBw.js} +1 -1
  45. package/dist/client/assets/{Users03-C95Djxl4.js → Users03-CSqNlpDP.js} +1 -1
  46. package/dist/client/assets/{X-CVCjil0X.js → X-B7oOOayR.js} +1 -1
  47. package/dist/client/assets/{XClose-Dp6HbUr0.js → XClose-BoGXvnQN.js} +1 -1
  48. package/dist/client/assets/{agent-connections-preview-CXMwGC6e.js → agent-connections-preview-D0tJithr.js} +1 -1
  49. package/dist/client/assets/{agent-detail-BGfRpcYw.js → agent-detail-BAEmFvyw.js} +1 -1
  50. package/dist/client/assets/{agents-CzKqpWnp.js → agents-8OgY3q49.js} +1 -1
  51. package/dist/client/assets/{alert-dialog-C_MhPBjV.js → alert-dialog-DbDLG2bb.js} +1 -1
  52. package/dist/client/assets/{auth-catchall-BT1nv9yw.js → auth-catchall-CSK2qJvQ.js} +1 -1
  53. package/dist/client/assets/{avatar-CsyEZ4U0.js → avatar-Cmlnx_C9.js} +1 -1
  54. package/dist/client/assets/{badge-DS2umfQr.js → badge-Cx_QA8bK.js} +1 -1
  55. package/dist/client/assets/{binder-D8X0PSpx.js → binder-Uir9nDQX.js} +1 -1
  56. package/dist/client/assets/{breadcrumb-BRZG3zMf.js → breadcrumb-C3FvNwVA.js} +1 -1
  57. package/dist/client/assets/{button-B7ka7-3W.js → button-uGDTfTKe.js} +1 -1
  58. package/dist/client/assets/{card-IslZUJjv.js → card-iB3dEEBq.js} +1 -1
  59. package/dist/client/assets/{checkbox-N9xlAZG6.js → checkbox-DlxK4giK.js} +1 -1
  60. package/dist/client/assets/{circle-alert-BOqlMP-B.js → circle-alert-BfwB-QbZ.js} +1 -1
  61. package/dist/client/assets/{collection-detail-Ckj_PfGi.js → collection-detail-gKM8GfH1.js} +1 -1
  62. package/dist/client/assets/{collection-search-Dc3u5WCg.js → collection-search-DJnwTt8_.js} +1 -1
  63. package/dist/client/assets/{collection-tab-ClVoT0O5.js → collection-tab-CL4PGzJi.js} +1 -1
  64. package/dist/client/assets/{collection-table-wrapper-DXkNnzzP.js → collection-table-wrapper-Dfa5iGyr.js} +1 -1
  65. package/dist/client/assets/{collection-tabs-B6VUPYdB.js → collection-tabs-DQIxnf5_.js} +1 -1
  66. package/dist/client/assets/{command-BzQJirY0.js → command-CmjP7-sd.js} +1 -1
  67. package/dist/client/assets/{connect-Bd6H4q6l.js → connect-Bhbh52h6.js} +1 -1
  68. package/dist/client/assets/{connection-card-DBo6HS7G.js → connection-card-r6lGrO9Z.js} +1 -1
  69. package/dist/client/assets/{connection-detail-DyDRbHfo.js → connection-detail-BwQb7zY3.js} +1 -1
  70. package/dist/client/assets/connections-Dzev22uX.js +1 -0
  71. package/dist/client/assets/constants-C4qr_kek.js +1 -0
  72. package/dist/client/assets/{constants-CXH7KAl4.js → constants-CIhuTv50.js} +1 -1
  73. package/dist/client/assets/{create-organization-dialog-C7OKlYZY.js → create-organization-dialog-BCHRnFB_.js} +1 -1
  74. package/dist/client/assets/{create-project-dialog-CviL6QrJ.js → create-project-dialog-BjcXzhvN.js} +1 -1
  75. package/dist/client/assets/{dialog-2iLIQa98.js → dialog-Djkrqbm4.js} +1 -1
  76. package/dist/client/assets/{dropdown-menu-Dhj3xslt.js → dropdown-menu-DAtjzZqM.js} +1 -1
  77. package/dist/client/assets/{dynamic-plugin-layout-BK7gmL7M.js → dynamic-plugin-layout-BX3kUg6t.js} +1 -1
  78. package/dist/client/assets/{empty-state-xLrHbv5w.js → empty-state-B4Xs8BbY.js} +1 -1
  79. package/dist/client/assets/{empty-state-CEeOlVKW.js → empty-state-D0gJavvT.js} +1 -1
  80. package/dist/client/assets/{env-vars-editor-Uc1wgezs.js → env-vars-editor-DSV90YYy.js} +1 -1
  81. package/dist/client/assets/{error-boundary-DayL6xNm.js → error-boundary-C-Q55BuJ.js} +1 -1
  82. package/dist/client/assets/{extract-connection-data-BDlrX5ED.js → extract-connection-data-xNwT9mtT.js} +1 -1
  83. package/dist/client/assets/{file-browser-Dbl2ZHQg.js → file-browser-K49CpZUF.js} +2 -2
  84. package/dist/client/assets/{form-DfXqOcsi.js → form-Bk7wyfiz.js} +1 -1
  85. package/dist/client/assets/{grid-view-2lyJmXem.js → grid-view-BKVj8VSk.js} +1 -1
  86. package/dist/client/assets/{home-BxIDMoQr.js → home-by7QPDwa.js} +1 -1
  87. package/dist/client/assets/{index-ChKp8e7_.js → index-B4DGyuZW.js} +1 -1
  88. package/dist/client/assets/{index-CRl9fUjY.js → index-BHw6ELR5.js} +2 -2
  89. package/dist/client/assets/{index-DDv_QJU7.js → index-Bddg6gZB.js} +1 -1
  90. package/dist/client/assets/{index-CKqXatiN.js → index-Bur8hacl.js} +1 -1
  91. package/dist/client/assets/{index-qu9a3zIu.js → index-C7jtMR1a.js} +1 -1
  92. package/dist/client/assets/{index-Cysv0hvW.js → index-CD4iOgE7.js} +1 -1
  93. package/dist/client/assets/{index-BAHCHsLC.js → index-CJhE8yKG.js} +1 -1
  94. package/dist/client/assets/{index-XkXKRrgW.js → index-DzHM-DwB.js} +1 -1
  95. package/dist/client/assets/{index-C5XqUNxh.js → index-FIsnCxJr.js} +1 -1
  96. package/dist/client/assets/{infiniteQueryObserver-CV7WHh9g.js → infiniteQueryObserver-Zdbaiai7.js} +1 -1
  97. package/dist/client/assets/{input-tQaB1EGD.js → input-Bb_Is7TQ.js} +1 -1
  98. package/dist/client/assets/{integration-icon-DkG5JLEv.js → integration-icon-BDbW1I_P.js} +1 -1
  99. package/dist/client/assets/{label-BTh0AlEX.js → label-jQ9Y0bqG.js} +1 -1
  100. package/dist/client/assets/{layout-CC7_lOr2.js → layout-fK9zuUWE.js} +1 -1
  101. package/dist/client/assets/{localstorage-keys-Du6pGud6.js → localstorage-keys-D2n2DXCy.js} +1 -1
  102. package/dist/client/assets/{login-DrRbgqLF.js → login-5ohFFTdJ.js} +1 -1
  103. package/dist/client/assets/{mcp-oauth-EKZwrWcY.js → mcp-oauth-Bd_j2s3F.js} +1 -1
  104. package/dist/client/assets/{mcp-server-card-BBepojBT.js → mcp-server-card-BVKsh68h.js} +1 -1
  105. package/dist/client/assets/{mcp-server-detail-BCCjaNbB.js → mcp-server-detail-DYhvID4P.js} +2 -2
  106. package/dist/client/assets/{members-DOdfDxbu.js → members-NKjnK3ym.js} +1 -1
  107. package/dist/client/assets/{monitoring-DuPOJeDr.js → monitoring-CvMsjZ4V.js} +1 -1
  108. package/dist/client/assets/{monitoring-dashboard-edit-DhDNeid6.js → monitoring-dashboard-edit-BWTd-7SE.js} +1 -1
  109. package/dist/client/assets/{monitoring-dashboard-view-9iAvIXjf.js → monitoring-dashboard-view-BBMFO1Hp.js} +1 -1
  110. package/dist/client/assets/{oauth-callback-zxCj1DsH.js → oauth-callback-Cfxs1XX-.js} +1 -1
  111. package/dist/client/assets/{page-ZPUVf6Il.js → page-BNCnlGEL.js} +1 -1
  112. package/dist/client/assets/{page-DHmJIPLV.js → page-C1pjP9Vh.js} +1 -1
  113. package/dist/client/assets/{plugin-empty-state-DR21t5FO.js → plugin-empty-state-C9VZo2uN.js} +1 -1
  114. package/dist/client/assets/{plugin-empty-state-Cye3Qt-U.js → plugin-empty-state-CBnqo-9I.js} +1 -1
  115. package/dist/client/assets/{plugin-header-DZNkLkmq.js → plugin-header-BkNoP5j1.js} +1 -1
  116. package/dist/client/assets/{plugin-header--mokZ266.js → plugin-header-_3DibYH3.js} +1 -1
  117. package/dist/client/assets/{popover-B8EfmsW0.js → popover-DSuia8V-.js} +1 -1
  118. package/dist/client/assets/{project-layout-CcmDYTkL.js → project-layout-CXN_QDXD.js} +1 -1
  119. package/dist/client/assets/{project-settings-72kBU_os.js → project-settings-1nIiogcH.js} +1 -1
  120. package/dist/client/assets/{projects-list-Douqk3Ql.js → projects-list-CxoFKZsZ.js} +1 -1
  121. package/dist/client/assets/{registry-utils-BEk6U_Vt.js → registry-utils-n_q5XbrA.js} +1 -1
  122. package/dist/client/assets/{resizable-D77t1u75.js → resizable-PI_rMJEl.js} +1 -1
  123. package/dist/client/assets/{save-actions-Dfm0WJwg.js → save-actions-DRuBsCtk.js} +1 -1
  124. package/dist/client/assets/{scroll-area-Dx2uHZEK.js → scroll-area-DyM_jTU0.js} +1 -1
  125. package/dist/client/assets/{select-_zCpIZEW.js → select-e1w6AMgG.js} +1 -1
  126. package/dist/client/assets/{shell-layout-Bh0OGKkq.js → shell-layout-Chb28hAj.js} +3 -3
  127. package/dist/client/assets/{spinner-BlmATy2A.js → spinner-50t_5sK1.js} +1 -1
  128. package/dist/client/assets/{store-invite-k1n4_IWc.js → store-invite-CfusxH-f.js} +1 -1
  129. package/dist/client/assets/{switch-BK6Fi3Mj.js → switch-DfJWmJbl.js} +1 -1
  130. package/dist/client/assets/{table-DrFZAy2x.js → table-CjEYCP4J.js} +1 -1
  131. package/dist/client/assets/{tasks-CYSmdH4X.js → tasks-BFTBHo10.js} +1 -1
  132. package/dist/client/assets/{textarea-BvDgq9-6.js → textarea-cmxXPWPP.js} +1 -1
  133. package/dist/client/assets/{time-range-picker-lwIn2daX.js → time-range-picker-CgJDmhVP.js} +1 -1
  134. package/dist/client/assets/{toggle-group-BnAZbxsh.js → toggle-group-DPJARcjw.js} +1 -1
  135. package/dist/client/assets/{tools-list-DnLgJV49.js → tools-list-BtJ_PE1H.js} +1 -1
  136. package/dist/client/assets/{tooltip-B4-DKV0g.js → tooltip-Cw3XU4NX.js} +1 -1
  137. package/dist/client/assets/{topbar-portal-C-P5wqYO.js → topbar-portal-BgbaZUfk.js} +1 -1
  138. package/dist/client/assets/{typewriter-title-oXfPR9E8.js → typewriter-title-DbWojJan.js} +1 -1
  139. package/dist/client/assets/{use-binding-DmAl273h.js → use-binding-BaVHLV4F.js} +1 -1
  140. package/dist/client/assets/{use-connection-n814nrzh.js → use-connection-BWwxbNp9.js} +1 -1
  141. package/dist/client/assets/{use-create-virtual-mcp-B7cs0ROu.js → use-create-virtual-mcp-G8uYgZJA.js} +1 -1
  142. package/dist/client/assets/{use-deco-chat-open-CDpVcfwG.js → use-deco-chat-open-BXvSnqAG.js} +1 -1
  143. package/dist/client/assets/{use-install-from-registry-BqAMGOtv.js → use-install-from-registry-CnpW5eWM.js} +1 -1
  144. package/dist/client/assets/{use-list-state-CWWwD8lE.js → use-list-state-D2v6Hz5J.js} +1 -1
  145. package/dist/client/assets/{use-llm-aPhdwvL2.js → use-llm-DSbhxgKh.js} +1 -1
  146. package/dist/client/assets/{use-mcp-prompts-CCXHLkvg.js → use-mcp-prompts-xMiR4WPu.js} +1 -1
  147. package/dist/client/assets/{use-mcp-tools-D78Nn9Ac.js → use-mcp-tools-C8U12OPz.js} +1 -1
  148. package/dist/client/assets/{use-mobile-lAw7TpzD.js → use-mobile-XORtk01Y.js} +1 -1
  149. package/dist/client/assets/{use-organization-settings-L_mIWHBz.js → use-organization-settings-Ceh3kGcw.js} +1 -1
  150. package/dist/client/assets/{use-project-B1Waya7T.js → use-project-BzX6yA4j.js} +1 -1
  151. package/dist/client/assets/{use-virtual-mcp-DiOrIS6l.js → use-virtual-mcp-CljEtWT3.js} +1 -1
  152. package/dist/client/assets/useInfiniteQuery-BuyPuSfd.js +1 -0
  153. package/dist/client/assets/{useMutation-DtsbJrnw.js → useMutation-6eAmA_sQ.js} +1 -1
  154. package/dist/client/assets/useQuery-Dke1OZg8.js +1 -0
  155. package/dist/client/assets/useSuspenseInfiniteQuery-SwWrV--F.js +1 -0
  156. package/dist/client/assets/{view-mode-toggle-BNnz7Syv.js → view-mode-toggle-Cynyu4xY.js} +1 -1
  157. package/dist/client/assets/{workflow-BPgOeR4t.js → workflow-BvStAxqo.js} +1 -1
  158. package/dist/client/index.html +1 -1
  159. package/dist/server/cli.js +82 -82
  160. package/dist/server/migrate.js +51 -51
  161. package/dist/server/server.js +77 -77
  162. package/package.json +1 -1
  163. package/dist/client/assets/connections-CVVKjoqq.js +0 -1
  164. package/dist/client/assets/constants-CZ-PBNMO.js +0 -1
  165. package/dist/client/assets/useInfiniteQuery-DctQZ6Nz.js +0 -1
  166. package/dist/client/assets/useQuery-oplh-7P6.js +0 -1
  167. package/dist/client/assets/useSuspenseInfiniteQuery-BUD9WLmO.js +0 -1
@@ -1 +1 @@
1
- import{c as m,r}from"./index-CRl9fUjY.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
1
+ import{c as m,r}from"./index-BHw6ELR5.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
@@ -1 +1 @@
1
- import{c as m,u as T,n as d,z as y,K as g}from"./index-CRl9fUjY.js";import{u as _}from"./useMutation-DtsbJrnw.js";import{a as p,u as A}from"./constants-CXH7KAl4.js";function D(e){const t=m.c(10),{org:i}=T();let l;t[0]!==i.id?(l={connectionId:p,orgId:i.id},t[0]=i.id,t[1]=l):l=t[1];const c=A(l);let u;t[2]!==e?(u=g.organizationSettings(e),t[2]=e,t[3]=u):u=t[3];let s;t[4]!==c||t[5]!==e?(s=async()=>{const a=await c.callTool({name:"ORGANIZATION_SETTINGS_GET",arguments:{}}),r=a.structuredContent??a;return r||{organizationId:e,sidebar_items:null,enabled_plugins:null,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}},t[4]=c,t[5]=e,t[6]=s):s=t[6];let n;t[7]!==u||t[8]!==s?(n={queryKey:u,queryFn:s,staleTime:6e4},t[7]=u,t[8]=s,t[9]=n):n=t[9];const{data:o}=d(n);return o}function G(e){const t=m.c(13),i=y(),{org:l}=T();let c;t[0]!==l.id?(c={connectionId:p,orgId:l.id},t[0]=l.id,t[1]=c):c=t[1];const u=A(c);let s;t[2]!==u||t[3]!==e?(s=async S=>{const f=await u.callTool({name:"ORGANIZATION_SETTINGS_UPDATE",arguments:{organizationId:e,...S}});return f.structuredContent??f},t[2]=u,t[3]=e,t[4]=s):s=t[4];let n;t[5]!==e||t[6]!==i?(n=S=>{i.setQueryData(g.organizationSettings(e),S)},t[5]=e,t[6]=i,t[7]=n):n=t[7];let o;t[8]!==s||t[9]!==n?(o={mutationFn:s,onSuccess:n},t[8]=s,t[9]=n,t[10]=o):o=t[10];const a=_(o);let r;return t[11]!==a?(r={update:a},t[11]=a,t[12]=r):r=t[12],r}export{G as a,D as u};
1
+ import{c as m,u as T,n as d,z as y,K as g}from"./index-BHw6ELR5.js";import{u as _}from"./useMutation-6eAmA_sQ.js";import{a as p,u as A}from"./constants-CIhuTv50.js";function D(e){const t=m.c(10),{org:i}=T();let l;t[0]!==i.id?(l={connectionId:p,orgId:i.id},t[0]=i.id,t[1]=l):l=t[1];const c=A(l);let u;t[2]!==e?(u=g.organizationSettings(e),t[2]=e,t[3]=u):u=t[3];let s;t[4]!==c||t[5]!==e?(s=async()=>{const a=await c.callTool({name:"ORGANIZATION_SETTINGS_GET",arguments:{}}),r=a.structuredContent??a;return r||{organizationId:e,sidebar_items:null,enabled_plugins:null,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}},t[4]=c,t[5]=e,t[6]=s):s=t[6];let n;t[7]!==u||t[8]!==s?(n={queryKey:u,queryFn:s,staleTime:6e4},t[7]=u,t[8]=s,t[9]=n):n=t[9];const{data:o}=d(n);return o}function G(e){const t=m.c(13),i=y(),{org:l}=T();let c;t[0]!==l.id?(c={connectionId:p,orgId:l.id},t[0]=l.id,t[1]=c):c=t[1];const u=A(c);let s;t[2]!==u||t[3]!==e?(s=async S=>{const f=await u.callTool({name:"ORGANIZATION_SETTINGS_UPDATE",arguments:{organizationId:e,...S}});return f.structuredContent??f},t[2]=u,t[3]=e,t[4]=s):s=t[4];let n;t[5]!==e||t[6]!==i?(n=S=>{i.setQueryData(g.organizationSettings(e),S)},t[5]=e,t[6]=i,t[7]=n):n=t[7];let o;t[8]!==s||t[9]!==n?(o={mutationFn:s,onSuccess:n},t[8]=s,t[9]=n,t[10]=o):o=t[10];const a=_(o);let r;return t[11]!==a?(r={update:a},t[11]=a,t[12]=r):r=t[12],r}export{G as a,D as u};
@@ -1 +1 @@
1
- import{K as m,c as C,n as T}from"./index-CRl9fUjY.js";import{u as y}from"./useQuery-oplh-7P6.js";import{u as f,a}from"./constants-CXH7KAl4.js";function S(t,s){const e=C.c(13);let r;e[0]!==t?(r={connectionId:a,orgId:t},e[0]=t,e[1]=r):r=e[1];const l=f(r);let u;e[2]!==t||e[3]!==s?(u=m.project(t,s),e[2]=t,e[3]=s,e[4]=u):u=e[4];let c;e[5]!==l||e[6]!==t||e[7]!==s?(c=async()=>{const p=await l.callTool({name:"PROJECT_GET",arguments:{organizationId:t,slug:s}});return(p.structuredContent??p).project},e[5]=l,e[6]=t,e[7]=s,e[8]=c):c=e[8];const o=!!t&&!!s;let n;return e[9]!==u||e[10]!==c||e[11]!==o?(n={queryKey:u,queryFn:c,enabled:o,staleTime:3e4},e[9]=u,e[10]=c,e[11]=o,e[12]=n):n=e[12],y(n)}function _(t,s){const e=f({connectionId:a,orgId:t}),r={queryKey:m.projects(t),queryFn:async()=>{const l=await e.callTool({name:"PROJECT_LIST",arguments:{organizationId:t}});return(l.structuredContent??l).projects.map(c=>({...c,organizationId:t}))},staleTime:3e4};return s?.suspense?T(r):y({...r,enabled:!!t})}export{_ as a,S as u};
1
+ import{K as m,c as C,n as T}from"./index-BHw6ELR5.js";import{u as y}from"./useQuery-Dke1OZg8.js";import{u as f,a}from"./constants-CIhuTv50.js";function S(t,s){const e=C.c(13);let r;e[0]!==t?(r={connectionId:a,orgId:t},e[0]=t,e[1]=r):r=e[1];const l=f(r);let u;e[2]!==t||e[3]!==s?(u=m.project(t,s),e[2]=t,e[3]=s,e[4]=u):u=e[4];let c;e[5]!==l||e[6]!==t||e[7]!==s?(c=async()=>{const p=await l.callTool({name:"PROJECT_GET",arguments:{organizationId:t,slug:s}});return(p.structuredContent??p).project},e[5]=l,e[6]=t,e[7]=s,e[8]=c):c=e[8];const o=!!t&&!!s;let n;return e[9]!==u||e[10]!==c||e[11]!==o?(n={queryKey:u,queryFn:c,enabled:o,staleTime:3e4},e[9]=u,e[10]=c,e[11]=o,e[12]=n):n=e[12],y(n)}function _(t,s){const e=f({connectionId:a,orgId:t}),r={queryKey:m.projects(t),queryFn:async()=>{const l=await e.callTool({name:"PROJECT_LIST",arguments:{organizationId:t}});return(l.structuredContent??l).projects.map(c=>({...c,organizationId:t}))},staleTime:3e4};return s?.suspense?T(r):y({...r,enabled:!!t})}export{_ as a,S as u};
@@ -1 +1 @@
1
- import{c,u as r}from"./index-CRl9fUjY.js";import{e as a,u as C,d as I}from"./use-connection-n814nrzh.js";import{a as l,u}from"./constants-CXH7KAl4.js";function m(i){const t=c.c(4);let o;t[0]!==i?(o=i===void 0?{}:i,t[0]=i,t[1]=o):o=t[1];const n=o,{org:e}=r();let s;t[2]!==e.id?(s={connectionId:l,orgId:e.id},t[2]=e.id,t[3]=s):s=t[3];const d=u(s);return a(e.id,"VIRTUAL_MCP",d,n)}function V(i){const t=c.c(2),{org:o}=r();let n;t[0]!==o.id?(n={connectionId:l,orgId:o.id},t[0]=o.id,t[1]=n):n=t[1];const e=u(n);return I(o.id,"VIRTUAL_MCP",i??void 0,e)}function p(){const i=c.c(2),{org:t}=r();let o;i[0]!==t.id?(o={connectionId:l,orgId:t.id},i[0]=t.id,i[1]=o):o=i[1];const n=u(o);return C(t.id,"VIRTUAL_MCP",n)}export{p as a,m as b,V as u};
1
+ import{c,u as r}from"./index-BHw6ELR5.js";import{e as a,u as C,d as I}from"./use-connection-BWwxbNp9.js";import{a as l,u}from"./constants-CIhuTv50.js";function m(i){const t=c.c(4);let o;t[0]!==i?(o=i===void 0?{}:i,t[0]=i,t[1]=o):o=t[1];const n=o,{org:e}=r();let s;t[2]!==e.id?(s={connectionId:l,orgId:e.id},t[2]=e.id,t[3]=s):s=t[3];const d=u(s);return a(e.id,"VIRTUAL_MCP",d,n)}function V(i){const t=c.c(2),{org:o}=r();let n;t[0]!==o.id?(n={connectionId:l,orgId:o.id},t[0]=o.id,t[1]=n):n=t[1];const e=u(n);return I(o.id,"VIRTUAL_MCP",i??void 0,e)}function p(){const i=c.c(2),{org:t}=r();let o;i[0]!==t.id?(o={connectionId:l,orgId:t.id},i[0]=t.id,i[1]=o):o=i[1];const n=u(o);return C(t.id,"VIRTUAL_MCP",n)}export{p as a,m as b,V as u};
@@ -0,0 +1 @@
1
+ import{I as u}from"./infiniteQueryObserver-Zdbaiai7.js";import{M as i}from"./index-BHw6ELR5.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +1 @@
1
- import{aS as l,aT as p,aU as n,aV as d,aW as h,z as b,r as o,aX as m,aY as f}from"./index-CRl9fUjY.js";var v=class extends l{#s;#i=void 0;#t;#e;constructor(t,s){super(),this.#s=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#s.defaultMutationOptions(t),p(this.options,s)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),s?.mutationKey&&this.options.mutationKey&&n(s.mutationKey)!==n(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(t,s){return this.#e=s,this.#t?.removeObserver(this),this.#t=this.#s.getMutationCache().build(this.#s,this.options),this.#t.addObserver(this),this.#t.execute(t)}#r(){const t=this.#t?.state??d();this.#i={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){h.batch(()=>{if(this.#e&&this.hasListeners()){const s=this.#i.variables,i=this.#i.context,e={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#e.onSuccess?.(t.data,s,i,e),this.#e.onSettled?.(t.data,null,s,i,e)):t?.type==="error"&&(this.#e.onError?.(t.error,s,i,e),this.#e.onSettled?.(void 0,t.error,s,i,e))}this.listeners.forEach(s=>{s(this.#i)})})}};function O(t,s){const i=b(s),[e]=o.useState(()=>new v(i,t));o.useEffect(()=>{e.setOptions(t)},[e,t]);const r=o.useSyncExternalStore(o.useCallback(a=>e.subscribe(h.batchCalls(a)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),u=o.useCallback((a,c)=>{e.mutate(a,c).catch(m)},[e]);if(r.error&&f(e.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:u,mutateAsync:r.mutate}}export{O as u};
1
+ import{aS as l,aT as p,aU as n,aV as d,aW as h,z as b,r as o,aX as m,aY as f}from"./index-BHw6ELR5.js";var v=class extends l{#s;#i=void 0;#t;#e;constructor(t,s){super(),this.#s=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#s.defaultMutationOptions(t),p(this.options,s)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),s?.mutationKey&&this.options.mutationKey&&n(s.mutationKey)!==n(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(t,s){return this.#e=s,this.#t?.removeObserver(this),this.#t=this.#s.getMutationCache().build(this.#s,this.options),this.#t.addObserver(this),this.#t.execute(t)}#r(){const t=this.#t?.state??d();this.#i={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){h.batch(()=>{if(this.#e&&this.hasListeners()){const s=this.#i.variables,i=this.#i.context,e={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#e.onSuccess?.(t.data,s,i,e),this.#e.onSettled?.(t.data,null,s,i,e)):t?.type==="error"&&(this.#e.onError?.(t.error,s,i,e),this.#e.onSettled?.(void 0,t.error,s,i,e))}this.listeners.forEach(s=>{s(this.#i)})})}};function O(t,s){const i=b(s),[e]=o.useState(()=>new v(i,t));o.useEffect(()=>{e.setOptions(t)},[e,t]);const r=o.useSyncExternalStore(o.useCallback(a=>e.subscribe(h.batchCalls(a)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),u=o.useCallback((a,c)=>{e.mutate(a,c).catch(m)},[e]);if(r.error&&f(e.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:u,mutateAsync:r.mutate}}export{O as u};
@@ -0,0 +1 @@
1
+ import{M as u,a9 as s}from"./index-BHw6ELR5.js";function o(e,r){return u(e,s,r)}export{o as u};
@@ -0,0 +1 @@
1
+ import{I as s}from"./infiniteQueryObserver-Zdbaiai7.js";import{M as u,Q as n}from"./index-BHw6ELR5.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
@@ -1 +1 @@
1
- import{c as Y,r as V,j as i}from"./index-CRl9fUjY.js";import{c as n}from"./button-B7ka7-3W.js";const Z={sm:{button:"size-7",icon:"size-4"},md:{button:"size-9",icon:"size-5"},lg:{button:"size-12",icon:"size-6"}};function oe(J){const e=Y.c(66),{value:o,onValueChange:l,options:t,size:D,fullWidth:F,className:W}=J,K=D===void 0?"sm":D,w=F===void 0?!1:F,G=V.useRef(null),H=V.useRef(null);let R;e[0]===Symbol.for("react.memo_cache_sentinel")?(R={left:0,width:0,opacity:0},e[0]=R):R=e[0];const[N,O]=V.useState(R);let _;e[1]===Symbol.for("react.memo_cache_sentinel")?(_=S=>{if(!S.current)return;const{offsetLeft:U,offsetWidth:X}=S.current;O({left:U,width:X,opacity:1})},e[1]=_):_=e[1];const Q=_;let C;e[2]!==t[0].value||e[3]!==o?(C=()=>{const S=o===t[0].value?G:H;Q(S)},e[2]=t[0].value,e[3]=o,e[4]=C):C=e[4];let E;e[5]!==t||e[6]!==o?(E=[o,t],e[5]=t,e[6]=o,e[7]=E):E=e[7],V.useEffect(C,E);const s=Z[K];let a;e[8]!==W?(a=n("relative flex gap-0 bg-muted rounded-lg",W),e[8]=W,e[9]=a):a=e[9];let c;e[10]!==l||e[11]!==t[0].value?(c=()=>l(t[0].value),e[10]=l,e[11]=t[0].value,e[12]=c):c=e[12];const $=w?"flex-1 h-12 px-4":s.button,I=!w&&t[0].label?"px-3":"";let r;e[13]!==I||e[14]!==$?(r=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",$,I),e[13]=I,e[14]=$,e[15]=r):r=e[15];const P=o===t[0].value?"text-foreground":"text-muted-foreground";let u;e[16]!==s.icon||e[17]!==P?(u=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,P),e[16]=s.icon,e[17]=P,e[18]=u):u=e[18];let f;e[19]!==t[0].icon||e[20]!==u?(f=i.jsx("span",{className:u,children:t[0].icon}),e[19]=t[0].icon,e[20]=u,e[21]=f):f=e[21];let d;e[22]!==t[0].label||e[23]!==t[0].value||e[24]!==o?(d=t[0].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[0].value?"text-foreground":"text-muted-foreground"),children:t[0].label}),e[22]=t[0].label,e[23]=t[0].value,e[24]=o,e[25]=d):d=e[25];let m;e[26]!==r||e[27]!==f||e[28]!==d||e[29]!==c?(m=i.jsxs("button",{ref:G,type:"button",onClick:c,className:r,children:[f,d]}),e[26]=r,e[27]=f,e[28]=d,e[29]=c,e[30]=m):m=e[30];let x;e[31]!==l||e[32]!==t[1].value?(x=()=>l(t[1].value),e[31]=l,e[32]=t[1].value,e[33]=x):x=e[33];const L=w?"flex-1 h-12 px-4":s.button,M=!w&&t[1].label?"px-3":"";let p;e[34]!==L||e[35]!==M?(p=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",L,M),e[34]=L,e[35]=M,e[36]=p):p=e[36];const T=o===t[1].value?"text-foreground":"text-muted-foreground";let b;e[37]!==s.icon||e[38]!==T?(b=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,T),e[37]=s.icon,e[38]=T,e[39]=b):b=e[39];let v;e[40]!==t[1].icon||e[41]!==b?(v=i.jsx("span",{className:b,children:t[1].icon}),e[40]=t[1].icon,e[41]=b,e[42]=v):v=e[42];let g;e[43]!==t[1].label||e[44]!==t[1].value||e[45]!==o?(g=t[1].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[1].value?"text-foreground":"text-muted-foreground"),children:t[1].label}),e[43]=t[1].label,e[44]=t[1].value,e[45]=o,e[46]=g):g=e[46];let h;e[47]!==x||e[48]!==p||e[49]!==v||e[50]!==g?(h=i.jsxs("button",{ref:H,type:"button",onClick:x,className:p,children:[v,g]}),e[47]=x,e[48]=p,e[49]=v,e[50]=g,e[51]=h):h=e[51];const q=w?"h-12":s.button;let y;e[52]!==q?(y=n("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",q),e[52]=q,e[53]=y):y=e[53];const A=`${N.left}px`,B=`${N.width}px`;let j;e[54]!==N.opacity||e[55]!==A||e[56]!==B?(j={left:A,width:B,opacity:N.opacity},e[54]=N.opacity,e[55]=A,e[56]=B,e[57]=j):j=e[57];let z;e[58]!==y||e[59]!==j?(z=i.jsx("div",{className:y,style:j}),e[58]=y,e[59]=j,e[60]=z):z=e[60];let k;return e[61]!==m||e[62]!==h||e[63]!==z||e[64]!==a?(k=i.jsxs("div",{className:a,children:[m,h,z]}),e[61]=m,e[62]=h,e[63]=z,e[64]=a,e[65]=k):k=e[65],k}export{oe as V};
1
+ import{c as Y,r as V,j as i}from"./index-BHw6ELR5.js";import{c as n}from"./button-uGDTfTKe.js";const Z={sm:{button:"size-7",icon:"size-4"},md:{button:"size-9",icon:"size-5"},lg:{button:"size-12",icon:"size-6"}};function oe(J){const e=Y.c(66),{value:o,onValueChange:l,options:t,size:D,fullWidth:F,className:W}=J,K=D===void 0?"sm":D,w=F===void 0?!1:F,G=V.useRef(null),H=V.useRef(null);let R;e[0]===Symbol.for("react.memo_cache_sentinel")?(R={left:0,width:0,opacity:0},e[0]=R):R=e[0];const[N,O]=V.useState(R);let _;e[1]===Symbol.for("react.memo_cache_sentinel")?(_=S=>{if(!S.current)return;const{offsetLeft:U,offsetWidth:X}=S.current;O({left:U,width:X,opacity:1})},e[1]=_):_=e[1];const Q=_;let C;e[2]!==t[0].value||e[3]!==o?(C=()=>{const S=o===t[0].value?G:H;Q(S)},e[2]=t[0].value,e[3]=o,e[4]=C):C=e[4];let E;e[5]!==t||e[6]!==o?(E=[o,t],e[5]=t,e[6]=o,e[7]=E):E=e[7],V.useEffect(C,E);const s=Z[K];let a;e[8]!==W?(a=n("relative flex gap-0 bg-muted rounded-lg",W),e[8]=W,e[9]=a):a=e[9];let c;e[10]!==l||e[11]!==t[0].value?(c=()=>l(t[0].value),e[10]=l,e[11]=t[0].value,e[12]=c):c=e[12];const $=w?"flex-1 h-12 px-4":s.button,I=!w&&t[0].label?"px-3":"";let r;e[13]!==I||e[14]!==$?(r=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",$,I),e[13]=I,e[14]=$,e[15]=r):r=e[15];const P=o===t[0].value?"text-foreground":"text-muted-foreground";let u;e[16]!==s.icon||e[17]!==P?(u=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,P),e[16]=s.icon,e[17]=P,e[18]=u):u=e[18];let f;e[19]!==t[0].icon||e[20]!==u?(f=i.jsx("span",{className:u,children:t[0].icon}),e[19]=t[0].icon,e[20]=u,e[21]=f):f=e[21];let d;e[22]!==t[0].label||e[23]!==t[0].value||e[24]!==o?(d=t[0].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[0].value?"text-foreground":"text-muted-foreground"),children:t[0].label}),e[22]=t[0].label,e[23]=t[0].value,e[24]=o,e[25]=d):d=e[25];let m;e[26]!==r||e[27]!==f||e[28]!==d||e[29]!==c?(m=i.jsxs("button",{ref:G,type:"button",onClick:c,className:r,children:[f,d]}),e[26]=r,e[27]=f,e[28]=d,e[29]=c,e[30]=m):m=e[30];let x;e[31]!==l||e[32]!==t[1].value?(x=()=>l(t[1].value),e[31]=l,e[32]=t[1].value,e[33]=x):x=e[33];const L=w?"flex-1 h-12 px-4":s.button,M=!w&&t[1].label?"px-3":"";let p;e[34]!==L||e[35]!==M?(p=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",L,M),e[34]=L,e[35]=M,e[36]=p):p=e[36];const T=o===t[1].value?"text-foreground":"text-muted-foreground";let b;e[37]!==s.icon||e[38]!==T?(b=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,T),e[37]=s.icon,e[38]=T,e[39]=b):b=e[39];let v;e[40]!==t[1].icon||e[41]!==b?(v=i.jsx("span",{className:b,children:t[1].icon}),e[40]=t[1].icon,e[41]=b,e[42]=v):v=e[42];let g;e[43]!==t[1].label||e[44]!==t[1].value||e[45]!==o?(g=t[1].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[1].value?"text-foreground":"text-muted-foreground"),children:t[1].label}),e[43]=t[1].label,e[44]=t[1].value,e[45]=o,e[46]=g):g=e[46];let h;e[47]!==x||e[48]!==p||e[49]!==v||e[50]!==g?(h=i.jsxs("button",{ref:H,type:"button",onClick:x,className:p,children:[v,g]}),e[47]=x,e[48]=p,e[49]=v,e[50]=g,e[51]=h):h=e[51];const q=w?"h-12":s.button;let y;e[52]!==q?(y=n("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",q),e[52]=q,e[53]=y):y=e[53];const A=`${N.left}px`,B=`${N.width}px`;let j;e[54]!==N.opacity||e[55]!==A||e[56]!==B?(j={left:A,width:B,opacity:N.opacity},e[54]=N.opacity,e[55]=A,e[56]=B,e[57]=j):j=e[57];let z;e[58]!==y||e[59]!==j?(z=i.jsx("div",{className:y,style:j}),e[58]=y,e[59]=j,e[60]=z):z=e[60];let k;return e[61]!==m||e[62]!==h||e[63]!==z||e[64]!==a?(k=i.jsxs("div",{className:a,children:[m,h,z]}),e[61]=m,e[62]=h,e[63]=z,e[64]=a,e[65]=k):k=e[65],k}export{oe as V};
@@ -1 +1 @@
1
- import{u as w,g as K,m as Q,r as $,j as t,O as B,c as k,aQ as q,z as G,K as W,t as A}from"./index-CRl9fUjY.js";import{a as J,u as V,e as Y}from"./constants-CXH7KAl4.js";import{C as X}from"./collection-tab-ClVoT0O5.js";import{g as Z,h as ee}from"./use-connection-n814nrzh.js";import{B as I}from"./button-B7ka7-3W.js";import{E as R}from"./empty-state-CEeOlVKW.js";import{E as te,i as ne}from"./error-boundary-DayL6xNm.js";import{P as x}from"./index-Cysv0hvW.js";import{B as F,a as z,b as M,c as T}from"./breadcrumb-BRZG3zMf.js";import{a as se,b as ie}from"./use-binding-DmAl273h.js";import{i as oe}from"./Loading01-DfNZTeXG.js";import{s as le}from"./RefreshCcw01-D_4ed9nd.js";import{a as re}from"./Settings02-CagrIiKm.js";import{u as ce}from"./useMutation-DtsbJrnw.js";import{e as ae}from"./Dataflow03-gt5EZJRf.js";import"./generate-id-Dyweu44Y.js";import"./collection-table-wrapper-DXkNnzzP.js";import"./dropdown-menu-Dhj3xslt.js";import"./ChevronRight-BRhPcZSa.js";import"./ArrowUp-DRp6vASi.js";import"./Check-BbDyAKwk.js";import"./Grid01-C32o_3u_.js";import"./List-CjbzYeJ6.js";import"./tooltip-B4-DKV0g.js";import"./index-ChKp8e7_.js";import"./view-mode-toggle-BNnz7Syv.js";import"./table-DrFZAy2x.js";import"./collection-search-Dc3u5WCg.js";import"./SearchMd-C7x5Yx1g.js";import"./input-tQaB1EGD.js";import"./card-IslZUJjv.js";import"./integration-icon-DkG5JLEv.js";import"./Copy01-D25IcVik.js";import"./DotsVertical-CNF9s03z.js";import"./Edit01-CGEDBBX4.js";import"./Eye-BRxUETF7.js";import"./Trash01-r6tGqIUl.js";import"./empty-state-xLrHbv5w.js";import"./Inbox01-CbmffRtl.js";import"./use-list-state-CWWwD8lE.js";import"./avatar-CsyEZ4U0.js";import"./useQuery-oplh-7P6.js";import"./use-mobile-lAw7TpzD.js";import"./constants-CZ-PBNMO.js";import"./alert-dialog-C_MhPBjV.js";import"./Plus-Dvi8ykdU.js";import"./layout-CC7_lOr2.js";import"./binder-D8X0PSpx.js";function me({title:n,description:e,wellKnownMcp:o,imageSrc:c,onConnected:i}){const a=Z(),{org:{slug:s}}=w(),{data:r}=K.useSession(),m=Q(),[d,p]=$.useState(!1),l=async()=>{if(!(!o||!r?.user?.id)){p(!0);try{const f=await a.create.mutateAsync(o);i?.(f.id),m({to:"/$org/$project/mcps/$connectionId",params:{org:s,project:B,connectionId:f.id}})}finally{p(!1)}}},u=()=>{m({to:"/$org/$project/mcps",params:{org:s,project:B},search:{action:"create"}})};return t.jsx(R,{image:c?t.jsx("img",{src:c,alt:n,width:336,height:320,className:"max-w-full h-auto"}):null,title:n,description:e,actions:t.jsxs(t.Fragment,{children:[t.jsxs(I,{variant:"outline",onClick:l,disabled:d||!o,children:[o?.icon&&t.jsx("img",{src:o.icon,alt:"",className:"size-4"}),d?"Installing...":`Install ${o?.title||"MCP"}`]}),t.jsx(I,{variant:"outline",onClick:u,children:"Custom Connection"})]})})}function de(n){const e=k.c(35),{bindingName:o,collectionName:c,title:i,emptyState:a,wellKnownMcp:s}=n,{org:r}=w(),m=ee();let d;e[0]!==m||e[1]!==o?(d={connections:m,binding:o},e[0]=m,e[1]=o,e[2]=d):d=e[2];const l=se(d)[0],u=ie(l);let f;if(e[3]!==c||e[4]!==u){let g;e[6]!==c?(g=L=>L.name.toLowerCase()===c.toLowerCase(),e[6]=c,e[7]=g):g=e[7],f=u.find(g),e[3]=c,e[4]=u,e[5]=f}else f=e[5];const E=f,[U,D]=$.useState(null),_=l&&E&&(l.id||U);let j;e[8]!==i?(j=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(z,{children:t.jsx(M,{children:t.jsx(T,{children:i})})})})})}),e[8]=i,e[9]=j):j=e[9];let h;e[10]!==l||e[11]!==r||e[12]!==i?(h=g=>{const{error:L,resetError:H}=g;return 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(ne,{className:"h-6 w-6 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsxs("h3",{className:"text-lg font-medium",children:["Failed to load ",i.toLowerCase()]}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:L?.message||"Unable to connect to the server. Please check that it is running and accessible."})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsxs(I,{variant:"outline",onClick:H,children:[t.jsx(le,{className:"size-4"}),"Try again"]}),l&&t.jsx(I,{variant:"outline",asChild:!0,children:t.jsxs(q,{to:"/$org/$project/mcps/$connectionId",params:{org:r.slug,project:B,connectionId:l.id},search:{tab:"settings"},children:[t.jsx(re,{className:"size-4"}),"Connection Settings"]})})]})]})},e[10]=l,e[11]=r,e[12]=i,e[13]=h):h=e[13];let S;e[14]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(oe,{size:32,className:"animate-spin text-muted-foreground mb-4"}),e[14]=S):S=e[14];let b;e[15]!==i?(b=i.toLowerCase(),e[15]=i,e[16]=b):b=e[16];let C;e[17]!==b?(C=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[S,t.jsxs("p",{className:"text-sm text-muted-foreground",children:["Loading ",b,"..."]})]}),e[17]=b,e[18]=C):C=e[18];let y;e[19]!==E||e[20]!==l||e[21]!==a||e[22]!==r||e[23]!==_||e[24]!==s?(y=_?t.jsx(X,{connectionId:l.id,org:r.slug,activeCollection:E}):t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(me,{title:a.title,description:a.description,wellKnownMcp:s,imageSrc:a.imageSrc,onConnected:g=>{D(g)}})}),e[19]=E,e[20]=l,e[21]=a,e[22]=r,e[23]=_,e[24]=s,e[25]=y):y=e[25];let P;e[26]!==C||e[27]!==y?(P=t.jsx($.Suspense,{fallback:C,children:y}),e[26]=C,e[27]=y,e[28]=P):P=e[28];let N;e[29]!==h||e[30]!==P?(N=t.jsx(x.Content,{children:t.jsx(te,{fallback:h,children:P})}),e[29]=h,e[30]=P,e[31]=N):N=e[31];let v;return e[32]!==N||e[33]!==j?(v=t.jsxs(x,{children:[j,N]}),e[32]=N,e[33]=j,e[34]=v):v=e[34],v}function ue(){const n=k.c(12),{org:e,project:o}=w(),c=G();let i;n[0]!==e.id?(i={connectionId:J,orgId:e.id},n[0]=e.id,n[1]=i):i=n[1];const a=V(i);let s;n[2]!==a||n[3]!==o?(s=async p=>{const l=o.enabledPlugins??[];if(l.includes(p))return;const u=[...l,p],f=await a.callTool({name:"PROJECT_UPDATE",arguments:{projectId:o.id,enabledPlugins:u}});return f.structuredContent??f},n[2]=a,n[3]=o,n[4]=s):s=n[4];let r;n[5]!==e.id||n[6]!==o||n[7]!==c?(r=()=>{c.invalidateQueries({queryKey:W.project(e.id,o.slug)}),c.invalidateQueries({queryKey:W.projects(e.id)})},n[5]=e.id,n[6]=o,n[7]=c,n[8]=r):r=n[8];let m;return n[9]!==s||n[10]!==r?(m={mutationFn:s,onSuccess:r,onError:pe},n[9]=s,n[10]=r,n[11]=m):m=n[11],ce(m)}function pe(n){A.error("Failed to enable plugin: "+(n instanceof Error?n.message:"Unknown error"))}function fe(n){const e=k.c(12),{pluginId:o,title:c,description:i,icon:a}=n,s=ue();let r;e[0]!==s||e[1]!==o?(r=async()=>{try{await s.mutateAsync(o),A.success("Plugin enabled!")}catch{}},e[0]=s,e[1]=o,e[2]=r):r=e[2];const m=r,d=a??null,p=s.isPending?"Enabling…":"Enable plugin";let l;e[3]!==s.isPending||e[4]!==m||e[5]!==p?(l=t.jsx(I,{onClick:m,disabled:s.isPending,children:p}),e[3]=s.isPending,e[4]=m,e[5]=p,e[6]=l):l=e[6];let u;return e[7]!==i||e[8]!==d||e[9]!==l||e[10]!==c?(u=t.jsx(R,{image:d,title:c,description:i,actions:l}),e[7]=i,e[8]=d,e[9]=l,e[10]=c,e[11]=u):u=e[11],u}const O="workflows";function at(){const n=k.c(3),{project:e}=w();if(!(e.enabledPlugins??[]).includes(O)){let a;n[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(z,{children:t.jsx(M,{children:t.jsx(T,{children:"Workflows"})})})})})}),n[0]=a):a=n[0];let s;return n[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsxs(x,{children:[a,t.jsx(x.Content,{children:t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(fe,{pluginId:O,title:"Enable Workflows",description:"Automate multi-step processes by enabling the Workflows plugin. Once enabled you can create, run, and monitor workflows.",icon:t.jsx("div",{className:"bg-muted p-4 rounded-full",children:t.jsx(ae,{className:"size-8 text-muted-foreground"})})})})})]}),n[1]=s):s=n[1],s}let i;return n[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(de,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Run durable MCP tool calls in background."},wellKnownMcp:Y()}),n[2]=i):i=n[2],i}export{at as default};
1
+ import{u as w,g as K,m as Q,r as $,j as t,O as B,c as k,aQ as q,z as G,K as W,t as A}from"./index-BHw6ELR5.js";import{a as J,u as V,e as Y}from"./constants-CIhuTv50.js";import{C as X}from"./collection-tab-CL4PGzJi.js";import{g as Z,h as ee}from"./use-connection-BWwxbNp9.js";import{B as I}from"./button-uGDTfTKe.js";import{E as R}from"./empty-state-D0gJavvT.js";import{E as te,i as ne}from"./error-boundary-C-Q55BuJ.js";import{P as x}from"./index-CD4iOgE7.js";import{B as F,a as z,b as M,c as T}from"./breadcrumb-C3FvNwVA.js";import{a as se,b as ie}from"./use-binding-BaVHLV4F.js";import{i as oe}from"./Loading01-5hc3T6Gd.js";import{s as le}from"./RefreshCcw01-CtqWKAvv.js";import{a as re}from"./Settings02-CaNoLwfL.js";import{u as ce}from"./useMutation-6eAmA_sQ.js";import{e as ae}from"./Dataflow03-C_xLhNUT.js";import"./generate-id-Dyweu44Y.js";import"./collection-table-wrapper-Dfa5iGyr.js";import"./dropdown-menu-DAtjzZqM.js";import"./ChevronRight-DnWxHWge.js";import"./ArrowUp-C1DJqgoZ.js";import"./Check-C5QtWx2D.js";import"./Grid01-D_3V4UIT.js";import"./List-BzgZveoS.js";import"./tooltip-Cw3XU4NX.js";import"./index-B4DGyuZW.js";import"./view-mode-toggle-Cynyu4xY.js";import"./table-CjEYCP4J.js";import"./collection-search-DJnwTt8_.js";import"./SearchMd-Czj8XGUX.js";import"./input-Bb_Is7TQ.js";import"./card-iB3dEEBq.js";import"./integration-icon-BDbW1I_P.js";import"./Copy01-B0_tEmE3.js";import"./DotsVertical-G8ImM-fa.js";import"./Edit01-Lq8UOkVd.js";import"./Eye-ByHE2GJe.js";import"./Trash01-OGm6m6Nc.js";import"./empty-state-B4Xs8BbY.js";import"./Inbox01-CU36sLHT.js";import"./use-list-state-D2v6Hz5J.js";import"./avatar-Cmlnx_C9.js";import"./useQuery-Dke1OZg8.js";import"./use-mobile-XORtk01Y.js";import"./constants-C4qr_kek.js";import"./alert-dialog-DbDLG2bb.js";import"./Plus-Dn73MiSM.js";import"./layout-fK9zuUWE.js";import"./binder-Uir9nDQX.js";function me({title:n,description:e,wellKnownMcp:o,imageSrc:c,onConnected:i}){const a=Z(),{org:{slug:s}}=w(),{data:r}=K.useSession(),m=Q(),[d,p]=$.useState(!1),l=async()=>{if(!(!o||!r?.user?.id)){p(!0);try{const f=await a.create.mutateAsync(o);i?.(f.id),m({to:"/$org/$project/mcps/$connectionId",params:{org:s,project:B,connectionId:f.id}})}finally{p(!1)}}},u=()=>{m({to:"/$org/$project/mcps",params:{org:s,project:B},search:{action:"create"}})};return t.jsx(R,{image:c?t.jsx("img",{src:c,alt:n,width:336,height:320,className:"max-w-full h-auto"}):null,title:n,description:e,actions:t.jsxs(t.Fragment,{children:[t.jsxs(I,{variant:"outline",onClick:l,disabled:d||!o,children:[o?.icon&&t.jsx("img",{src:o.icon,alt:"",className:"size-4"}),d?"Installing...":`Install ${o?.title||"MCP"}`]}),t.jsx(I,{variant:"outline",onClick:u,children:"Custom Connection"})]})})}function de(n){const e=k.c(35),{bindingName:o,collectionName:c,title:i,emptyState:a,wellKnownMcp:s}=n,{org:r}=w(),m=ee();let d;e[0]!==m||e[1]!==o?(d={connections:m,binding:o},e[0]=m,e[1]=o,e[2]=d):d=e[2];const l=se(d)[0],u=ie(l);let f;if(e[3]!==c||e[4]!==u){let g;e[6]!==c?(g=L=>L.name.toLowerCase()===c.toLowerCase(),e[6]=c,e[7]=g):g=e[7],f=u.find(g),e[3]=c,e[4]=u,e[5]=f}else f=e[5];const E=f,[U,D]=$.useState(null),_=l&&E&&(l.id||U);let j;e[8]!==i?(j=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(z,{children:t.jsx(M,{children:t.jsx(T,{children:i})})})})})}),e[8]=i,e[9]=j):j=e[9];let h;e[10]!==l||e[11]!==r||e[12]!==i?(h=g=>{const{error:L,resetError:H}=g;return 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(ne,{className:"h-6 w-6 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsxs("h3",{className:"text-lg font-medium",children:["Failed to load ",i.toLowerCase()]}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:L?.message||"Unable to connect to the server. Please check that it is running and accessible."})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsxs(I,{variant:"outline",onClick:H,children:[t.jsx(le,{className:"size-4"}),"Try again"]}),l&&t.jsx(I,{variant:"outline",asChild:!0,children:t.jsxs(q,{to:"/$org/$project/mcps/$connectionId",params:{org:r.slug,project:B,connectionId:l.id},search:{tab:"settings"},children:[t.jsx(re,{className:"size-4"}),"Connection Settings"]})})]})]})},e[10]=l,e[11]=r,e[12]=i,e[13]=h):h=e[13];let S;e[14]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(oe,{size:32,className:"animate-spin text-muted-foreground mb-4"}),e[14]=S):S=e[14];let b;e[15]!==i?(b=i.toLowerCase(),e[15]=i,e[16]=b):b=e[16];let C;e[17]!==b?(C=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[S,t.jsxs("p",{className:"text-sm text-muted-foreground",children:["Loading ",b,"..."]})]}),e[17]=b,e[18]=C):C=e[18];let y;e[19]!==E||e[20]!==l||e[21]!==a||e[22]!==r||e[23]!==_||e[24]!==s?(y=_?t.jsx(X,{connectionId:l.id,org:r.slug,activeCollection:E}):t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(me,{title:a.title,description:a.description,wellKnownMcp:s,imageSrc:a.imageSrc,onConnected:g=>{D(g)}})}),e[19]=E,e[20]=l,e[21]=a,e[22]=r,e[23]=_,e[24]=s,e[25]=y):y=e[25];let P;e[26]!==C||e[27]!==y?(P=t.jsx($.Suspense,{fallback:C,children:y}),e[26]=C,e[27]=y,e[28]=P):P=e[28];let N;e[29]!==h||e[30]!==P?(N=t.jsx(x.Content,{children:t.jsx(te,{fallback:h,children:P})}),e[29]=h,e[30]=P,e[31]=N):N=e[31];let v;return e[32]!==N||e[33]!==j?(v=t.jsxs(x,{children:[j,N]}),e[32]=N,e[33]=j,e[34]=v):v=e[34],v}function ue(){const n=k.c(12),{org:e,project:o}=w(),c=G();let i;n[0]!==e.id?(i={connectionId:J,orgId:e.id},n[0]=e.id,n[1]=i):i=n[1];const a=V(i);let s;n[2]!==a||n[3]!==o?(s=async p=>{const l=o.enabledPlugins??[];if(l.includes(p))return;const u=[...l,p],f=await a.callTool({name:"PROJECT_UPDATE",arguments:{projectId:o.id,enabledPlugins:u}});return f.structuredContent??f},n[2]=a,n[3]=o,n[4]=s):s=n[4];let r;n[5]!==e.id||n[6]!==o||n[7]!==c?(r=()=>{c.invalidateQueries({queryKey:W.project(e.id,o.slug)}),c.invalidateQueries({queryKey:W.projects(e.id)})},n[5]=e.id,n[6]=o,n[7]=c,n[8]=r):r=n[8];let m;return n[9]!==s||n[10]!==r?(m={mutationFn:s,onSuccess:r,onError:pe},n[9]=s,n[10]=r,n[11]=m):m=n[11],ce(m)}function pe(n){A.error("Failed to enable plugin: "+(n instanceof Error?n.message:"Unknown error"))}function fe(n){const e=k.c(12),{pluginId:o,title:c,description:i,icon:a}=n,s=ue();let r;e[0]!==s||e[1]!==o?(r=async()=>{try{await s.mutateAsync(o),A.success("Plugin enabled!")}catch{}},e[0]=s,e[1]=o,e[2]=r):r=e[2];const m=r,d=a??null,p=s.isPending?"Enabling…":"Enable plugin";let l;e[3]!==s.isPending||e[4]!==m||e[5]!==p?(l=t.jsx(I,{onClick:m,disabled:s.isPending,children:p}),e[3]=s.isPending,e[4]=m,e[5]=p,e[6]=l):l=e[6];let u;return e[7]!==i||e[8]!==d||e[9]!==l||e[10]!==c?(u=t.jsx(R,{image:d,title:c,description:i,actions:l}),e[7]=i,e[8]=d,e[9]=l,e[10]=c,e[11]=u):u=e[11],u}const O="workflows";function at(){const n=k.c(3),{project:e}=w();if(!(e.enabledPlugins??[]).includes(O)){let a;n[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(z,{children:t.jsx(M,{children:t.jsx(T,{children:"Workflows"})})})})})}),n[0]=a):a=n[0];let s;return n[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsxs(x,{children:[a,t.jsx(x.Content,{children:t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(fe,{pluginId:O,title:"Enable Workflows",description:"Automate multi-step processes by enabling the Workflows plugin. Once enabled you can create, run, and monitor workflows.",icon:t.jsx("div",{className:"bg-muted p-4 rounded-full",children:t.jsx(ae,{className:"size-8 text-muted-foreground"})})})})})]}),n[1]=s):s=n[1],s}let i;return n[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(de,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Run durable MCP tool calls in background."},wellKnownMcp:Y()}),n[2]=i):i=n[2],i}export{at as default};
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <title>MCP Mesh</title>
5
5
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6
- <script type="module" crossorigin src="/assets/index-CRl9fUjY.js"></script>
6
+ <script type="module" crossorigin src="/assets/index-BHw6ELR5.js"></script>
7
7
  <link rel="stylesheet" crossorigin href="/assets/index-Dtd3eJDL.css">
8
8
  </head>
9
9
  <body>