@decocms/mesh 2.72.0 → 2.72.1

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 (150) hide show
  1. package/dist/client/assets/{AlertCircle-CHm1uTvc.js → AlertCircle-BOIQEKjW.js} +1 -1
  2. package/dist/client/assets/{ArrowUp-CsvTcSKO.js → ArrowUp-BRclUYsx.js} +1 -1
  3. package/dist/client/assets/{Calendar-RaRlGUMn.js → Calendar-DydX5uRn.js} +1 -1
  4. package/dist/client/assets/{Check-CTaDpFbx.js → Check-Bkb61eVw.js} +1 -1
  5. package/dist/client/assets/{CheckCircle-BUL08lD-.js → CheckCircle-ZkjIkaWv.js} +1 -1
  6. package/dist/client/assets/{CheckDone01-C9iBTpWu.js → CheckDone01-BusS8ANA.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-BmbIYWgz.js → ChevronDown-DqJTvBdv.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-C7PRdwhN.js → ChevronRight-BBcOJkyP.js} +1 -1
  9. package/dist/client/assets/{Code01-BHb1dfFm.js → Code01-DEMYMNLO.js} +1 -1
  10. package/dist/client/assets/{Copy01-BHrubS15.js → Copy01-BvgMlJ5t.js} +1 -1
  11. package/dist/client/assets/{DotsHorizontal-BKEGXeRq.js → DotsHorizontal-C3Pu-YCA.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-6bV4Jb02.js → DotsVertical-DMOP2SMU.js} +1 -1
  13. package/dist/client/assets/{Download01-DCCcXkST.js → Download01-VwSgop8U.js} +1 -1
  14. package/dist/client/assets/{Edit01-Ck6L4sn5.js → Edit01-ByF-cYbh.js} +1 -1
  15. package/dist/client/assets/{File02-Bdk2SiT1.js → File02-D6OcKUS4.js} +1 -1
  16. package/dist/client/assets/{File06-g3-IRgq5.js → File06-CkTcogsG.js} +1 -1
  17. package/dist/client/assets/{FilterLines-CZJIfYWV.js → FilterLines-BL17m8OO.js} +1 -1
  18. package/dist/client/assets/{Globe02-nY9R9qg_.js → Globe02-CwdZK2H5.js} +1 -1
  19. package/dist/client/assets/{Grid01-CzUkHZSJ.js → Grid01-zbmmdox0.js} +1 -1
  20. package/dist/client/assets/{Home02-D9mVq7KP.js → Home02-DPzckV1r.js} +1 -1
  21. package/dist/client/assets/{Image01-C213KIPf.js → Image01-BuXlAy8i.js} +1 -1
  22. package/dist/client/assets/{Inbox01-CXr_wpYC.js → Inbox01-Czow08Bp.js} +1 -1
  23. package/dist/client/assets/{InfoCircle-DEUMb_Ke.js → InfoCircle-C8GtqndP.js} +1 -1
  24. package/dist/client/assets/{LinkExternal01-CmQ2HPM6.js → LinkExternal01-DJasjN8P.js} +1 -1
  25. package/dist/client/assets/{List-hntTIiNx.js → List-BvAv-Mbv.js} +1 -1
  26. package/dist/client/assets/{Loading01-B78uc8_j.js → Loading01-DOPFYU4m.js} +1 -1
  27. package/dist/client/assets/{Lock01-rY0GklCm.js → Lock01-BALKEl0l.js} +1 -1
  28. package/dist/client/assets/{Pin01-B6bFgA7L.js → Pin01-Dk_x7uai.js} +1 -1
  29. package/dist/client/assets/{Play-CMxteKat.js → Play-CjfPPVn_.js} +1 -1
  30. package/dist/client/assets/{Plus-B1DSIk_Y.js → Plus-WaQ7hmj5.js} +1 -1
  31. package/dist/client/assets/{SearchMd-rxhL9uWW.js → SearchMd-Ds-ERWzq.js} +1 -1
  32. package/dist/client/assets/{Settings01-BBpmfPia.js → Settings01-CMNXJNnf.js} +1 -1
  33. package/dist/client/assets/{Share07-DNr4Gv0F.js → Share07-w2-wABEW.js} +1 -1
  34. package/dist/client/assets/{Terminal-CvqFIFfF.js → Terminal-CrrxpXUI.js} +1 -1
  35. package/dist/client/assets/{Tool01-BWEJZQCA.js → Tool01-Cn8FHCpZ.js} +1 -1
  36. package/dist/client/assets/{Trash01-CNJdNb2Z.js → Trash01-C-euKa34.js} +1 -1
  37. package/dist/client/assets/{Upload01-CtypJgSZ.js → Upload01-Dc0hOrKX.js} +1 -1
  38. package/dist/client/assets/{Users03-B_SbeQBk.js → Users03-zsvZ9QWQ.js} +1 -1
  39. package/dist/client/assets/{X-mZzFkOTX.js → X-DUGfq2_H.js} +1 -1
  40. package/dist/client/assets/{XClose-BwAC8sFB.js → XClose-Cv_qbaYN.js} +1 -1
  41. package/dist/client/assets/{agent-connections-preview-DieWCUjN.js → agent-connections-preview-C15fpCN8.js} +1 -1
  42. package/dist/client/assets/{agent-detail-CViIjBwu.js → agent-detail-BQXrWX9M.js} +1 -1
  43. package/dist/client/assets/{agents-CyHP3pcb.js → agents-NgYS-NWl.js} +1 -1
  44. package/dist/client/assets/{alert-dialog-BN06wH-l.js → alert-dialog-B4H6MrIT.js} +1 -1
  45. package/dist/client/assets/{auth-catchall-DXrXBOXl.js → auth-catchall-GUc2KujY.js} +1 -1
  46. package/dist/client/assets/{avatar-2G5ouaDu.js → avatar-B-AS-16N.js} +1 -1
  47. package/dist/client/assets/{badge-tOUVTd9z.js → badge-BFm6jM0d.js} +1 -1
  48. package/dist/client/assets/{binder-CbgCr5Rm.js → binder-C4CQlgMb.js} +1 -1
  49. package/dist/client/assets/{breadcrumb-JfdGMaRd.js → breadcrumb-Cvo4WJJ5.js} +1 -1
  50. package/dist/client/assets/{button-BKtq_PYU.js → button-Cl3WMTWk.js} +1 -1
  51. package/dist/client/assets/{card-C0u1Pmkw.js → card-B-73zAje.js} +1 -1
  52. package/dist/client/assets/{checkbox-DmCTNQLX.js → checkbox-kN_xGJfO.js} +1 -1
  53. package/dist/client/assets/{circle-alert-BNmG-8Wh.js → circle-alert-BEtzK3t3.js} +1 -1
  54. package/dist/client/assets/{collection-detail-CGH1Knd0.js → collection-detail-C9AV2Fn9.js} +1 -1
  55. package/dist/client/assets/{collection-search-MQc1JOFA.js → collection-search-Aeh0FXZR.js} +1 -1
  56. package/dist/client/assets/{collection-tab-qHWWI3bH.js → collection-tab-CgMRLj1Y.js} +1 -1
  57. package/dist/client/assets/{collection-table-wrapper-L4Z0dyO1.js → collection-table-wrapper-CmBNNf0K.js} +1 -1
  58. package/dist/client/assets/{collection-tabs-CyRXUdkR.js → collection-tabs-2AUf3kZ2.js} +1 -1
  59. package/dist/client/assets/{command-Bqwb_7NQ.js → command-DICG2vo0.js} +1 -1
  60. package/dist/client/assets/{connect-D30M34Bx.js → connect-DoxLTvbh.js} +1 -1
  61. package/dist/client/assets/{connection-card-CMQL70VR.js → connection-card-ChzuU2dT.js} +1 -1
  62. package/dist/client/assets/connection-detail-CVNpoyUm.js +1 -0
  63. package/dist/client/assets/{connections-B7K4OdQw.js → connections-BHOwcUB0.js} +1 -1
  64. package/dist/client/assets/{constants-PBHJ4h9F.js → constants-1q3hobyw.js} +1 -1
  65. package/dist/client/assets/constants-DzWq-50V.js +1 -0
  66. package/dist/client/assets/{create-organization-dialog-BOgbyqMq.js → create-organization-dialog-DWV2eGAF.js} +1 -1
  67. package/dist/client/assets/{create-project-dialog-BxxiVX3V.js → create-project-dialog-49RtElmv.js} +1 -1
  68. package/dist/client/assets/{dialog-B8Jtq_Yp.js → dialog-BmGDp4UV.js} +1 -1
  69. package/dist/client/assets/{dropdown-menu-C6Z4raJE.js → dropdown-menu-6IaHSzwJ.js} +1 -1
  70. package/dist/client/assets/{dynamic-plugin-layout-CDgkhjuC.js → dynamic-plugin-layout-C_HHJRk0.js} +1 -1
  71. package/dist/client/assets/{empty-state-BXisfxVt.js → empty-state-DFIrBrC-.js} +1 -1
  72. package/dist/client/assets/{empty-state-B8XrD0Ub.js → empty-state-oU8PNga_.js} +1 -1
  73. package/dist/client/assets/{env-vars-editor-8a4L674b.js → env-vars-editor-Bmnp2cvo.js} +1 -1
  74. package/dist/client/assets/{error-boundary-D9qG4zZt.js → error-boundary-D7C5xzme.js} +1 -1
  75. package/dist/client/assets/{extract-connection-data-CCyj_Y1X.js → extract-connection-data-CQQ4ZZEG.js} +1 -1
  76. package/dist/client/assets/{file-browser-DInIgvl2.js → file-browser-CHtfSNHu.js} +2 -2
  77. package/dist/client/assets/{form-DQap4sDh.js → form-qYB4UriD.js} +1 -1
  78. package/dist/client/assets/{grid-view-BKnSWUuB.js → grid-view-B4Eut3Xi.js} +1 -1
  79. package/dist/client/assets/{home-DvvANWHB.js → home-BYm3DFU4.js} +1 -1
  80. package/dist/client/assets/index--g69ISoA.css +1 -0
  81. package/dist/client/assets/{index-sFvIWgLs.js → index-5T3tdhiA.js} +1 -1
  82. package/dist/client/assets/{index-D5w8F0R7.js → index-9vOB29ZB.js} +1 -1
  83. package/dist/client/assets/{index-UwBLOz8J.js → index-BA6gcyzW.js} +1 -1
  84. package/dist/client/assets/{index-CCcWAtA_.js → index-BV-rIyOx.js} +2 -2
  85. package/dist/client/assets/{index-BMXxQz0A.js → index-BYzsWn1B.js} +1 -1
  86. package/dist/client/assets/{index-D12lWWsR.js → index-CxyQJKsK.js} +1 -1
  87. package/dist/client/assets/{index--tmJoUux.js → index-Dolyg0HI.js} +1 -1
  88. package/dist/client/assets/{index-C76QOf8q.js → index-Vp0uDDij.js} +1 -1
  89. package/dist/client/assets/{index-DFZdUy6e.js → index-fCCl5Un_.js} +1 -1
  90. package/dist/client/assets/{infiniteQueryObserver-BdhSYRBe.js → infiniteQueryObserver-CrYps4St.js} +1 -1
  91. package/dist/client/assets/{input-Dh6Cjukb.js → input-Dv5qvD5N.js} +1 -1
  92. package/dist/client/assets/{integration-icon-Biu6JpM0.js → integration-icon-DKM9NBX1.js} +1 -1
  93. package/dist/client/assets/{layout-DWXfRazY.js → layout-B7afTuaN.js} +1 -1
  94. package/dist/client/assets/{localstorage-keys-BWsOCDUX.js → localstorage-keys-Ds2uOTRP.js} +1 -1
  95. package/dist/client/assets/{login-DoPkmmdP.js → login-BpnfmGBt.js} +1 -1
  96. package/dist/client/assets/{mcp-oauth-BQMyy4a5.js → mcp-oauth-C_XpjqFg.js} +1 -1
  97. package/dist/client/assets/{mcp-server-card-DxnHyWDy.js → mcp-server-card-CiGvO9aP.js} +1 -1
  98. package/dist/client/assets/{mcp-server-detail-BzBDrjZ5.js → mcp-server-detail-SQfpDpYc.js} +2 -2
  99. package/dist/client/assets/{members-pjR_l8r-.js → members-CQSBREQS.js} +1 -1
  100. package/dist/client/assets/{monaco-editor-XyXN2SEV.js → monaco-editor-q53ZLBJ5.js} +1 -1
  101. package/dist/client/assets/{monitoring-BiXkhP0l.js → monitoring-CK4xcQzM.js} +1 -1
  102. package/dist/client/assets/{oauth-callback-COK_3Woz.js → oauth-callback-CeLfnx5m.js} +1 -1
  103. package/dist/client/assets/{page-zhioOXqc.js → page-CrfNBuC7.js} +1 -1
  104. package/dist/client/assets/{page-Ca4TsO7U.js → page-jzi-88Nr.js} +1 -1
  105. package/dist/client/assets/{plugin-empty-state-BWDzgwMT.js → plugin-empty-state-Bnssy2Oj.js} +1 -1
  106. package/dist/client/assets/{plugin-header-Dm-T5OvY.js → plugin-header-DoQQAOys.js} +1 -1
  107. package/dist/client/assets/{popover-Bn1QrYWJ.js → popover-DuZ2ZN5J.js} +1 -1
  108. package/dist/client/assets/{project-layout-DQQxPJ7M.js → project-layout-CH4wXxX2.js} +1 -1
  109. package/dist/client/assets/{project-settings-Bq572DKS.js → project-settings-CKgnjrBp.js} +1 -1
  110. package/dist/client/assets/{projects-list-D2y67tOl.js → projects-list-D0sSao6e.js} +1 -1
  111. package/dist/client/assets/{registry-utils-eTnhYK1Z.js → registry-utils-CqOx6XXE.js} +1 -1
  112. package/dist/client/assets/{resizable-Cth4qfOJ.js → resizable-CZuYHBhW.js} +1 -1
  113. package/dist/client/assets/{select-CJ01X7RE.js → select-ODRW9YrY.js} +1 -1
  114. package/dist/client/assets/{shell-layout-Dmklwlc_.js → shell-layout-BxNK1bDI.js} +1 -1
  115. package/dist/client/assets/{spinner-CoIaSc2j.js → spinner-BPZfVVyD.js} +1 -1
  116. package/dist/client/assets/{store-invite-CM-bUgIj.js → store-invite-ICTVmn8_.js} +1 -1
  117. package/dist/client/assets/{switch-TZYuSAHJ.js → switch-B-1QAIh-.js} +1 -1
  118. package/dist/client/assets/{table-B7Ue2bk2.js → table-BBnlXDKe.js} +1 -1
  119. package/dist/client/assets/{tasks-DvdoE4Ok.js → tasks-CpdqRpYU.js} +1 -1
  120. package/dist/client/assets/{textarea-D6y1LKj_.js → textarea-DK_SwVx9.js} +1 -1
  121. package/dist/client/assets/{tools-list-fxJEZlSp.js → tools-list-B5iaOgKy.js} +1 -1
  122. package/dist/client/assets/{typewriter-title-DR6tdNBL.js → typewriter-title-C_OsyMAQ.js} +1 -1
  123. package/dist/client/assets/{use-binding-ucSDtQ56.js → use-binding-BVOuBiur.js} +1 -1
  124. package/dist/client/assets/{use-connection-BCPygOxC.js → use-connection-B8DnjeO8.js} +1 -1
  125. package/dist/client/assets/{use-create-virtual-mcp-u-AAtHmy.js → use-create-virtual-mcp-7fubOknm.js} +1 -1
  126. package/dist/client/assets/use-deco-chat-open-cMRvRYVG.js +23 -0
  127. package/dist/client/assets/{use-install-from-registry-f8JxKFFW.js → use-install-from-registry-ClVbT6BY.js} +1 -1
  128. package/dist/client/assets/{use-list-state-oNgAMbdK.js → use-list-state-DjV5kR97.js} +1 -1
  129. package/dist/client/assets/{use-llm-Lxpo1ior.js → use-llm-H-K3anTg.js} +1 -1
  130. package/dist/client/assets/{use-mcp-prompts-WwyO9-Nk.js → use-mcp-prompts-Chz_2-6S.js} +1 -1
  131. package/dist/client/assets/{use-mcp-tools-eSLltC3i.js → use-mcp-tools-CXMetymP.js} +1 -1
  132. package/dist/client/assets/{use-mobile-BUK8Wer1.js → use-mobile-B2CDnK8i.js} +1 -1
  133. package/dist/client/assets/{use-organization-settings-BR3GSp3x.js → use-organization-settings-Bu92wRjl.js} +1 -1
  134. package/dist/client/assets/{use-project-DLsFLh3O.js → use-project-CzroiUzj.js} +1 -1
  135. package/dist/client/assets/{use-virtual-mcp-ByfXJ3SB.js → use-virtual-mcp-ayu_K6US.js} +1 -1
  136. package/dist/client/assets/useInfiniteQuery-TqDHdib1.js +1 -0
  137. package/dist/client/assets/{useMutation-Cn2d2ilG.js → useMutation-BOrtlNTb.js} +1 -1
  138. package/dist/client/assets/useQuery-DDYln2BW.js +1 -0
  139. package/dist/client/assets/utils-CfR4kXxZ.js +1 -0
  140. package/dist/client/assets/{view-mode-toggle-BJkt6e92.js → view-mode-toggle-CHHKGadJ.js} +1 -1
  141. package/dist/client/assets/{workflow-BP45xRRH.js → workflow-BBKpGvON.js} +1 -1
  142. package/dist/client/index.html +2 -2
  143. package/package.json +1 -1
  144. package/dist/client/assets/connection-detail-CQNN_rRv.js +0 -1
  145. package/dist/client/assets/constants-DIAAKB_c.js +0 -1
  146. package/dist/client/assets/index-CP_rYaE5.css +0 -1
  147. package/dist/client/assets/use-deco-chat-open-DsNk3kZu.js +0 -23
  148. package/dist/client/assets/useInfiniteQuery-BcqgMbS1.js +0 -1
  149. package/dist/client/assets/useQuery-Dp4Sp9Q1.js +0 -1
  150. package/dist/client/assets/utils-CnoQZeDK.js +0 -1
@@ -1 +1 @@
1
- import{aP as l,aQ as p,aR as n,aS as d,aT as h,v as b,r as o,aU as m,aV as v}from"./index-CCcWAtA_.js";var f=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 f(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&&v(e.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:u,mutateAsync:r.mutate}}export{O as u};
1
+ import{aP as l,aQ as p,aR as n,aS as d,aT as h,v as b,r as o,aU as m,aV as v}from"./index-BV-rIyOx.js";var f=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 f(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&&v(e.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:u,mutateAsync:r.mutate}}export{O as u};
@@ -0,0 +1 @@
1
+ import{a0 as u,a3 as s}from"./index-BV-rIyOx.js";function o(e,r){return u(e,s,r)}export{o as u};
@@ -0,0 +1 @@
1
+ import{a7 as a,a8 as t}from"./index-BV-rIyOx.js";function e(...r){return a(t(r))}export{e as c};
@@ -1 +1 @@
1
- import{c as Y,r as V,j as i}from"./index-CCcWAtA_.js";import{c as n}from"./utils-CnoQZeDK.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-BV-rIyOx.js";import{c as n}from"./utils-CfR4kXxZ.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 L,g as W,m as O,r as B,j as e,O as k,c as P}from"./index-CCcWAtA_.js";import{e as R}from"./constants-PBHJ4h9F.js";import{C as A}from"./collection-tab-qHWWI3bH.js";import{g as M,h as z}from"./use-connection-BCPygOxC.js";import{B as v}from"./button-BKtq_PYU.js";import{E as F}from"./empty-state-B8XrD0Ub.js";import{P as y}from"./index-D5w8F0R7.js";import{B as G,a as H,b as T,c as D}from"./breadcrumb-JfdGMaRd.js";import{a as J,b as U}from"./use-binding-ucSDtQ56.js";import{i as V}from"./Loading01-B78uc8_j.js";import"./generate-id-Dyweu44Y.js";import"./collection-table-wrapper-L4Z0dyO1.js";import"./dropdown-menu-C6Z4raJE.js";import"./ChevronRight-C7PRdwhN.js";import"./utils-CnoQZeDK.js";import"./ArrowUp-CsvTcSKO.js";import"./Check-CTaDpFbx.js";import"./Grid01-CzUkHZSJ.js";import"./List-hntTIiNx.js";import"./integration-icon-Biu6JpM0.js";import"./index-BMXxQz0A.js";import"./view-mode-toggle-BJkt6e92.js";import"./table-B7Ue2bk2.js";import"./collection-search-MQc1JOFA.js";import"./SearchMd-rxhL9uWW.js";import"./input-Dh6Cjukb.js";import"./card-C0u1Pmkw.js";import"./Copy01-BHrubS15.js";import"./DotsVertical-6bV4Jb02.js";import"./Edit01-Ck6L4sn5.js";import"./use-list-state-oNgAMbdK.js";import"./avatar-2G5ouaDu.js";import"./useQuery-Dp4Sp9Q1.js";import"./use-mobile-BUK8Wer1.js";import"./Trash01-CNJdNb2Z.js";import"./empty-state-BXisfxVt.js";import"./Inbox01-CXr_wpYC.js";import"./constants-DIAAKB_c.js";import"./alert-dialog-BN06wH-l.js";import"./Plus-B1DSIk_Y.js";import"./layout-DWXfRazY.js";import"./useMutation-Cn2d2ilG.js";import"./binder-CbgCr5Rm.js";function q({title:i,description:t,wellKnownMcp:o,imageSrc:n,onConnected:s}){const l=M(),{org:{slug:m}}=L(),{data:j}=W.useSession(),d=O(),[a,N]=B.useState(!1),r=async()=>{if(!(!o||!j?.user?.id)){N(!0);try{const c=await l.create.mutateAsync(o);s?.(c.id),d({to:"/$org/$project/mcps/$connectionId",params:{org:m,project:k,connectionId:c.id}})}finally{N(!1)}}},C=()=>{d({to:"/$org/$project/mcps",params:{org:m,project:k},search:{action:"create"}})};return e.jsx(F,{image:n?e.jsx("img",{src:n,alt:i,width:336,height:320,className:"max-w-full h-auto"}):null,title:i,description:t,actions:e.jsxs(e.Fragment,{children:[e.jsxs(v,{variant:"outline",onClick:r,disabled:a||!o,children:[o?.icon&&e.jsx("img",{src:o.icon,alt:"",className:"size-4"}),a?"Installing...":`Install ${o?.title||"MCP"}`]}),e.jsx(v,{variant:"outline",onClick:C,children:"Custom Connection"})]})})}function Q(i){const t=P.c(28),{bindingName:o,collectionName:n,title:s,emptyState:l,wellKnownMcp:m}=i,{org:j}=L(),d=z();let a;t[0]!==d||t[1]!==o?(a={connections:d,binding:o},t[0]=d,t[1]=o,t[2]=a):a=t[2];const r=J(a)[0],C=U(r);let c;if(t[3]!==n||t[4]!==C){let h;t[6]!==n?(h=_=>_.name.toLowerCase()===n.toLowerCase(),t[6]=n,t[7]=h):h=t[7],c=C.find(h),t[3]=n,t[4]=C,t[5]=c}else c=t[5];const b=c,[$,E]=B.useState(null),w=r&&b&&(r.id||$);let p;t[8]!==s?(p=e.jsx(y.Header,{children:e.jsx(y.Header.Left,{children:e.jsx(G,{children:e.jsx(H,{children:e.jsx(T,{children:e.jsx(D,{children:s})})})})})}),t[8]=s,t[9]=p):p=t[9];let S;t[10]===Symbol.for("react.memo_cache_sentinel")?(S=e.jsx(V,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t[10]=S):S=t[10];let u;t[11]!==s?(u=s.toLowerCase(),t[11]=s,t[12]=u):u=t[12];let f;t[13]!==u?(f=e.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[S,e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Loading ",u,"..."]})]}),t[13]=u,t[14]=f):f=t[14];let g;t[15]!==b||t[16]!==r||t[17]!==l||t[18]!==j||t[19]!==w||t[20]!==m?(g=w?e.jsx(A,{connectionId:r.id,org:j.slug,activeCollection:b}):e.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:e.jsx(q,{title:l.title,description:l.description,wellKnownMcp:m,imageSrc:l.imageSrc,onConnected:h=>{E(h)}})}),t[15]=b,t[16]=r,t[17]=l,t[18]=j,t[19]=w,t[20]=m,t[21]=g):g=t[21];let x;t[22]!==f||t[23]!==g?(x=e.jsx(y.Content,{children:e.jsx(B.Suspense,{fallback:f,children:g})}),t[22]=f,t[23]=g,t[24]=x):x=t[24];let I;return t[25]!==p||t[26]!==x?(I=e.jsxs(y,{children:[p,x]}),t[25]=p,t[26]=x,t[27]=I):I=t[27],I}function zt(){const i=P.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(Q,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Install MCP Studio to create and manage automated workflows with multiple steps and integrations."},wellKnownMcp:R()}),i[0]=t):t=i[0],t}export{zt as default};
1
+ import{u as L,g as W,m as O,r as B,j as e,O as k,c as P}from"./index-BV-rIyOx.js";import{e as R}from"./constants-1q3hobyw.js";import{C as A}from"./collection-tab-CgMRLj1Y.js";import{g as M,h as z}from"./use-connection-B8DnjeO8.js";import{B as v}from"./button-Cl3WMTWk.js";import{E as F}from"./empty-state-oU8PNga_.js";import{P as y}from"./index-9vOB29ZB.js";import{B as G,a as H,b as T,c as D}from"./breadcrumb-Cvo4WJJ5.js";import{a as J,b as U}from"./use-binding-BVOuBiur.js";import{i as V}from"./Loading01-DOPFYU4m.js";import"./generate-id-Dyweu44Y.js";import"./collection-table-wrapper-CmBNNf0K.js";import"./dropdown-menu-6IaHSzwJ.js";import"./ChevronRight-BBcOJkyP.js";import"./utils-CfR4kXxZ.js";import"./ArrowUp-BRclUYsx.js";import"./Check-Bkb61eVw.js";import"./Grid01-zbmmdox0.js";import"./List-BvAv-Mbv.js";import"./integration-icon-DKM9NBX1.js";import"./index-BYzsWn1B.js";import"./view-mode-toggle-CHHKGadJ.js";import"./table-BBnlXDKe.js";import"./collection-search-Aeh0FXZR.js";import"./SearchMd-Ds-ERWzq.js";import"./input-Dv5qvD5N.js";import"./card-B-73zAje.js";import"./Copy01-BvgMlJ5t.js";import"./DotsVertical-DMOP2SMU.js";import"./Edit01-ByF-cYbh.js";import"./use-list-state-DjV5kR97.js";import"./avatar-B-AS-16N.js";import"./useQuery-DDYln2BW.js";import"./use-mobile-B2CDnK8i.js";import"./Trash01-C-euKa34.js";import"./empty-state-DFIrBrC-.js";import"./Inbox01-Czow08Bp.js";import"./constants-DzWq-50V.js";import"./alert-dialog-B4H6MrIT.js";import"./Plus-WaQ7hmj5.js";import"./layout-B7afTuaN.js";import"./useMutation-BOrtlNTb.js";import"./binder-C4CQlgMb.js";function q({title:i,description:t,wellKnownMcp:o,imageSrc:n,onConnected:s}){const l=M(),{org:{slug:m}}=L(),{data:j}=W.useSession(),d=O(),[a,N]=B.useState(!1),r=async()=>{if(!(!o||!j?.user?.id)){N(!0);try{const c=await l.create.mutateAsync(o);s?.(c.id),d({to:"/$org/$project/mcps/$connectionId",params:{org:m,project:k,connectionId:c.id}})}finally{N(!1)}}},C=()=>{d({to:"/$org/$project/mcps",params:{org:m,project:k},search:{action:"create"}})};return e.jsx(F,{image:n?e.jsx("img",{src:n,alt:i,width:336,height:320,className:"max-w-full h-auto"}):null,title:i,description:t,actions:e.jsxs(e.Fragment,{children:[e.jsxs(v,{variant:"outline",onClick:r,disabled:a||!o,children:[o?.icon&&e.jsx("img",{src:o.icon,alt:"",className:"size-4"}),a?"Installing...":`Install ${o?.title||"MCP"}`]}),e.jsx(v,{variant:"outline",onClick:C,children:"Custom Connection"})]})})}function Q(i){const t=P.c(28),{bindingName:o,collectionName:n,title:s,emptyState:l,wellKnownMcp:m}=i,{org:j}=L(),d=z();let a;t[0]!==d||t[1]!==o?(a={connections:d,binding:o},t[0]=d,t[1]=o,t[2]=a):a=t[2];const r=J(a)[0],C=U(r);let c;if(t[3]!==n||t[4]!==C){let h;t[6]!==n?(h=_=>_.name.toLowerCase()===n.toLowerCase(),t[6]=n,t[7]=h):h=t[7],c=C.find(h),t[3]=n,t[4]=C,t[5]=c}else c=t[5];const b=c,[$,E]=B.useState(null),w=r&&b&&(r.id||$);let p;t[8]!==s?(p=e.jsx(y.Header,{children:e.jsx(y.Header.Left,{children:e.jsx(G,{children:e.jsx(H,{children:e.jsx(T,{children:e.jsx(D,{children:s})})})})})}),t[8]=s,t[9]=p):p=t[9];let S;t[10]===Symbol.for("react.memo_cache_sentinel")?(S=e.jsx(V,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t[10]=S):S=t[10];let u;t[11]!==s?(u=s.toLowerCase(),t[11]=s,t[12]=u):u=t[12];let f;t[13]!==u?(f=e.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[S,e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Loading ",u,"..."]})]}),t[13]=u,t[14]=f):f=t[14];let g;t[15]!==b||t[16]!==r||t[17]!==l||t[18]!==j||t[19]!==w||t[20]!==m?(g=w?e.jsx(A,{connectionId:r.id,org:j.slug,activeCollection:b}):e.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:e.jsx(q,{title:l.title,description:l.description,wellKnownMcp:m,imageSrc:l.imageSrc,onConnected:h=>{E(h)}})}),t[15]=b,t[16]=r,t[17]=l,t[18]=j,t[19]=w,t[20]=m,t[21]=g):g=t[21];let x;t[22]!==f||t[23]!==g?(x=e.jsx(y.Content,{children:e.jsx(B.Suspense,{fallback:f,children:g})}),t[22]=f,t[23]=g,t[24]=x):x=t[24];let I;return t[25]!==p||t[26]!==x?(I=e.jsxs(y,{children:[p,x]}),t[25]=p,t[26]=x,t[27]=I):I=t[27],I}function zt(){const i=P.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(Q,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Install MCP Studio to create and manage automated workflows with multiple steps and integrations."},wellKnownMcp:R()}),i[0]=t):t=i[0],t}export{zt as default};
@@ -3,8 +3,8 @@
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-CCcWAtA_.js"></script>
7
- <link rel="stylesheet" crossorigin href="/assets/index-CP_rYaE5.css">
6
+ <script type="module" crossorigin src="/assets/index-BV-rIyOx.js"></script>
7
+ <link rel="stylesheet" crossorigin href="/assets/index--g69ISoA.css">
8
8
  </head>
9
9
  <body>
10
10
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/mesh",
3
- "version": "2.72.0",
3
+ "version": "2.72.1",
4
4
  "description": "MCP Mesh - Self-hostable MCP Gateway for managing AI connections and tools",
5
5
  "author": "Deco team",
6
6
  "license": "MIT",
@@ -1 +0,0 @@
1
- import{r as q,c as W,j as t,m as Re,O as Se,aN as ct,u as at,bu as Ge,ad as Nt,p as yt,bt as ze,o as lt,ba as _t,bi as Ct,s as K,ae as Je,af as St,a as wt,f as Tt,v as kt,h as Pt,k as It,i as $t,t as Ce,K as Ye}from"./index-CCcWAtA_.js";import{E as ye}from"./empty-state-B8XrD0Ub.js";import{E as dt}from"./error-boundary-D9qG4zZt.js";import{E as At,r as Vt,e as mt}from"./env-vars-editor-8a4L674b.js";import{P as We,S as Mt}from"./index-C76QOf8q.js";import{b as Dt,a as Ot}from"./use-binding-ucSDtQ56.js";import{u as Et,S as Rt}from"./index--tmJoUux.js";import{f as Xe,g as ut}from"./use-connection-BCPygOxC.js";import{u as Lt}from"./constants-PBHJ4h9F.js";import{d as Ut}from"./use-mcp-tools-eSLltC3i.js";import{b as Ft,d as Bt}from"./use-mcp-prompts-WwyO9-Nk.js";import{a as zt}from"./mcp-oauth-BQMyy4a5.js";import{b as Ze,c as Wt,d as Xt,e as Kt,B as qt,a as Ht}from"./breadcrumb-JfdGMaRd.js";import{B as Fe}from"./button-BKtq_PYU.js";import{C as Qt}from"./collection-tabs-CyRXUdkR.js";import{i as Ee}from"./Loading01-B78uc8_j.js";import{V as Ke,a as Gt}from"./layout-DWXfRazY.js";import{C as Jt}from"./collection-tab-qHWWI3bH.js";import{I as qe,n as Yt}from"./integration-icon-Biu6JpM0.js";import{B as Be}from"./badge-tOUVTd9z.js";import{D as Zt,a as es,b as ts,c as et}from"./dropdown-menu-C6Z4raJE.js";import{F as J,a as ss,b as Y,d as H,f as Z,c as te,e as ns}from"./form-DQap4sDh.js";import{I as ee}from"./input-Dh6Cjukb.js";import{S as tt,a as st,b as nt,c as ot,d as G}from"./select-CJ01X7RE.js";import{i as pt}from"./CheckCircle-BUL08lD-.js";import{t as os}from"./ChevronDown-BmbIYWgz.js";import{s as Oe}from"./Globe02-nY9R9qg_.js";import{i as rs}from"./Terminal-CvqFIFfF.js";import{s as is}from"./Trash01-CNJdNb2Z.js";import{t as He}from"./Users03-B_SbeQBk.js";import{s as cs}from"./XClose-BwAC8sFB.js";import{U as as}from"./use-list-state-oNgAMbdK.js";import{b as ls,a as ds}from"./use-virtual-mcp-ByfXJ3SB.js";import{i as ms}from"./ChevronRight-C7PRdwhN.js";import{s as us}from"./Plus-B1DSIk_Y.js";import{f as ps}from"./formatDistanceToNow-Cb2QZZJn.js";import{a as ft,C as xt}from"./collection-table-wrapper-L4Z0dyO1.js";import{C as ht}from"./collection-search-MQc1JOFA.js";import{C as gt}from"./card-C0u1Pmkw.js";import{R as fs,T as xs}from"./tools-list-fxJEZlSp.js";import"./utils-CnoQZeDK.js";import"./Pin01-B6bFgA7L.js";import"./use-organization-settings-BR3GSp3x.js";import"./useMutation-Cn2d2ilG.js";import"./binder-CbgCr5Rm.js";import"./File06-g3-IRgq5.js";import"./index-sFvIWgLs.js";import"./constants-DIAAKB_c.js";import"./registry-utils-eTnhYK1Z.js";import"./extract-connection-data-CCyj_Y1X.js";import"./github-icon-Dp3wHhYE.js";import"./generate-id-Dyweu44Y.js";import"./use-install-from-registry-f8JxKFFW.js";import"./index-D12lWWsR.js";import"./circle-alert-BNmG-8Wh.js";import"./index-UwBLOz8J.js";import"./X-mZzFkOTX.js";import"./use-deco-chat-open-DsNk3kZu.js";import"./use-llm-Lxpo1ior.js";import"./useQuery-Dp4Sp9Q1.js";import"./Code01-BHb1dfFm.js";import"./infiniteQueryObserver-BdhSYRBe.js";import"./localstorage-keys-BWsOCDUX.js";import"./popover-Bn1QrYWJ.js";import"./Grid01-CzUkHZSJ.js";import"./Image01-C213KIPf.js";import"./SearchMd-rxhL9uWW.js";import"./spinner-CoIaSc2j.js";import"./dialog-B8Jtq_Yp.js";import"./AlertCircle-CHm1uTvc.js";import"./ArrowUp-CsvTcSKO.js";import"./Edit01-Ck6L4sn5.js";import"./Check-CTaDpFbx.js";import"./Copy01-BHrubS15.js";import"./monaco-editor-XyXN2SEV.js";import"./use-create-virtual-mcp-u-AAtHmy.js";import"./index-D5w8F0R7.js";import"./DotsVertical-6bV4Jb02.js";import"./empty-state-BXisfxVt.js";import"./Inbox01-CXr_wpYC.js";import"./alert-dialog-BN06wH-l.js";import"./index-BMXxQz0A.js";import"./avatar-2G5ouaDu.js";import"./use-mobile-BUK8Wer1.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./List-hntTIiNx.js";import"./view-mode-toggle-BJkt6e92.js";import"./table-B7Ue2bk2.js";const jt=({size:s=24,color:e="currentColor",...n})=>q.createElement("svg",{viewBox:"0 0 24 24",width:s,height:s,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},q.createElement("path",{d:"M2 10s2.005-2.732 3.634-4.362A9 9 0 1 1 12 21a9.004 9.004 0 0 1-8.648-6.5M2 10V4m0 6h6"}));jt.displayName="RefreshCcw01";function hs(s){const e=W.c(13),{virtualMcp:n,org:o}=s;let r;e[0]!==o||e[1]!==n.id?(r={org:o,project:Se,agentId:n.id},e[0]=o,e[1]=n.id,e[2]=r):r=e[2];let c;e[3]!==n.icon||e[4]!==n.title?(c=n.icon?t.jsx("img",{src:n.icon,alt:n.title,className:"w-5 h-5 rounded-md object-cover shrink-0"}):t.jsx("div",{className:"w-8 h-8 rounded-md bg-primary/10 flex items-center justify-center shrink-0",children:t.jsx(He,{size:16,className:"text-primary"})}),e[3]=n.icon,e[4]=n.title,e[5]=c):c=e[5];let a;e[6]!==n.title?(a=t.jsx("span",{className:"flex-1 text-sm font-medium text-foreground truncate",children:n.title}),e[6]=n.title,e[7]=a):a=e[7];let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(ms,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors shrink-0"}),e[8]=f):f=e[8];let u;return e[9]!==r||e[10]!==c||e[11]!==a?(u=t.jsxs(ct,{to:"/$org/$project/agents/$agentId",params:r,className:"flex items-center gap-3 p-2 pr-1 rounded-lg hover:bg-muted/50 transition-colors group",children:[c,a,f]}),e[9]=r,e[10]=c,e[11]=a,e[12]=u):u=e[12],u}function rt(s){const e=W.c(20),{connectionId:n,connectionTitle:o,connectionDescription:r,connectionIcon:c,org:a,hasExistingVirtualMcps:f}=s,u=Re(),p=ds();let x;e[0]!==p.create||e[1]!==r||e[2]!==c||e[3]!==n||e[4]!==o||e[5]!==u||e[6]!==a?(x=async()=>{const d=await p.create.mutateAsync({title:`${o} Agent`,description:r??null,icon:c??null,status:"active",connections:[{connection_id:n,selected_tools:null,selected_resources:null,selected_prompts:null}]});u({to:"/$org/$project/agents/$agentId",params:{org:a,project:Se,agentId:d.id}})},e[0]=p.create,e[1]=r,e[2]=c,e[3]=n,e[4]=o,e[5]=u,e[6]=a,e[7]=x):x=e[7];const m=x;if(f){let d;e[8]!==p.create.isPending?(d=p.create.isPending?t.jsx(Ee,{size:16,className:"animate-spin"}):t.jsx(us,{size:16}),e[8]=p.create.isPending,e[9]=d):d=e[9];let l;return e[10]!==p.create.isPending||e[11]!==m||e[12]!==d?(l=t.jsx(Fe,{variant:"ghost",className:"size-6 p-0",onClick:m,disabled:p.create.isPending,children:d}),e[10]=p.create.isPending,e[11]=m,e[12]=d,e[13]=l):l=e[13],l}let i;e[14]!==p.create.isPending?(i=p.create.isPending?t.jsx(Ee,{className:"animate-spin text-muted-foreground"}):t.jsx(He,{className:"size-3 text-muted-foreground"}),e[14]=p.create.isPending,e[15]=i):i=e[15];let b;return e[16]!==p.create.isPending||e[17]!==m||e[18]!==i?(b=t.jsxs(Fe,{variant:"outline",size:"sm",onClick:m,disabled:p.create.isPending,children:[i,"Create an agent"]}),e[16]=p.create.isPending,e[17]=m,e[18]=i,e[19]=b):b=e[19],b}function gs(s){const e=W.c(26),{connectionId:n,connectionTitle:o,connectionDescription:r,connectionIcon:c,org:a}=s;let f;e[0]!==n?(f={filters:[{column:"connection_id",value:n}]},e[0]=n,e[1]=f):f=e[1];const u=ls(f);if(!(u.length>0)){let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("h4",{className:"text-xs text-muted-foreground font-medium",children:"Use in your IDE"}),e[2]=l):l=e[2];let j;return e[3]!==r||e[4]!==c||e[5]!==n||e[6]!==o||e[7]!==a?(j=t.jsxs("div",{className:"p-5 flex items-center justify-between gap-3",children:[l,t.jsx(rt,{connectionId:n,connectionTitle:o,connectionDescription:r,connectionIcon:c,org:a,hasExistingVirtualMcps:!1})]}),e[3]=r,e[4]=c,e[5]=n,e[6]=o,e[7]=a,e[8]=j):j=e[8],j}let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("h4",{className:"text-xs text-muted-foreground font-medium",children:"Agents"}),e[9]=x):x=e[9];let m;e[10]!==r||e[11]!==c||e[12]!==n||e[13]!==o||e[14]!==a?(m=t.jsx("div",{className:"flex flex-col gap-1",children:t.jsxs("div",{className:"flex items-center justify-between",children:[x,t.jsx(rt,{connectionId:n,connectionTitle:o,connectionDescription:r,connectionIcon:c,org:a,hasExistingVirtualMcps:!0})]})}),e[10]=r,e[11]=c,e[12]=n,e[13]=o,e[14]=a,e[15]=m):m=e[15];let i;if(e[16]!==a||e[17]!==u){let l;e[19]!==a?(l=j=>t.jsx(hs,{virtualMcp:j,org:a},j.id),e[19]=a,e[20]=l):l=e[20],i=u.map(l),e[16]=a,e[17]=u,e[18]=i}else i=e[18];let b;e[21]!==i?(b=t.jsx("div",{className:"flex flex-col gap-2",children:i}),e[21]=i,e[22]=b):b=e[22];let d;return e[23]!==m||e[24]!==b?(d=t.jsxs("div",{className:"p-5 flex flex-col gap-3",children:[m,b]}),e[23]=m,e[24]=b,e[25]=d):d=e[25],d}function js({form:s,connection:e,hasOAuthToken:n,onReauthenticate:o,onRemoveOAuth:r}){const c=Ge({control:s.control,name:"ui_type"}),a=Ge({control:s.control,name:"connection_url"}),{stdioEnabled:f}=Nt(),u=(()=>{if(typeof a!="string"||!a)return!1;try{const i=new URL(a);return i.hostname==="api.githubcopilot.com"&&i.pathname.replace(/\/+$/,"")==="/mcp"}catch{return!1}})(),p=f||e.connection_type==="STDIO",x=e.connection_type==="VIRTUAL",m=x?yt(e.connection_url):null;return x?t.jsxs("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:[t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:"Type"}),t.jsxs("div",{className:"flex items-center gap-2 h-10 px-3 border border-border rounded-lg bg-muted/50",children:[t.jsx(He,{className:"w-4 h-4 text-muted-foreground"}),t.jsx("span",{className:"text-sm",children:"Virtual MCP"})]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"This connection references a Virtual MCP. Tools and resources are aggregated dynamically from the Virtual MCP's underlying connections."})]}),m&&t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:"Virtual MCP ID"}),t.jsx("div",{className:"flex items-center gap-2 h-10 px-3 border border-border rounded-lg bg-muted/50",children:t.jsx("code",{className:"text-sm text-muted-foreground",children:m})})]})]}):t.jsxs("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:[t.jsx(J,{control:s.control,name:"ui_type",render:({field:i})=>t.jsxs(Y,{className:"flex flex-col gap-3",children:[t.jsx(te,{className:"text-xs text-muted-foreground font-medium",children:"Connection"}),c!=="NPX"&&c!=="STDIO"?t.jsxs("div",{className:"flex items-stretch rounded-lg border border-border overflow-hidden",children:[t.jsxs(tt,{value:i.value,onValueChange:i.onChange,children:[t.jsx(H,{children:t.jsxs(st,{className:"h-10 w-auto min-w-[90px] border-0 rounded-none bg-muted/50 focus:ring-0 focus:ring-offset-0",children:[t.jsx(Oe,{className:"w-4 h-4 text-muted-foreground shrink-0"}),t.jsx(nt,{})]})}),t.jsxs(ot,{children:[t.jsx(G,{value:"HTTP",children:"HTTP"}),t.jsx(G,{value:"SSE",children:"SSE"}),t.jsx(G,{value:"Websocket",children:"Websocket"}),p&&t.jsxs(t.Fragment,{children:[t.jsx(G,{value:"NPX",children:"NPX Package"}),t.jsx(G,{value:"STDIO",children:"Custom Command"})]})]})]}),t.jsx("div",{className:"w-px bg-border"}),t.jsx(J,{control:s.control,name:"connection_url",render:({field:b})=>t.jsx(Y,{className:"flex-1 min-w-0",children:t.jsx(H,{children:t.jsx(ee,{placeholder:"https://example.com/mcp",...b,value:b.value??"",className:"h-10 border-0 rounded-none focus-visible:ring-0 focus-visible:ring-offset-0 bg-transparent"})})})})]}):t.jsxs(tt,{value:i.value,onValueChange:i.onChange,children:[t.jsx(H,{children:t.jsx(st,{className:"h-10",children:t.jsx(nt,{})})}),t.jsxs(ot,{children:[t.jsx(G,{value:"HTTP",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Oe,{className:"w-4 h-4"}),"HTTP"]})}),t.jsx(G,{value:"SSE",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Oe,{className:"w-4 h-4"}),"SSE"]})}),t.jsx(G,{value:"Websocket",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Oe,{className:"w-4 h-4"}),"Websocket"]})}),p&&t.jsxs(t.Fragment,{children:[t.jsx(G,{value:"NPX",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Yt,{className:"w-4 h-4"}),"NPX Package"]})}),t.jsx(G,{value:"STDIO",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(rs,{className:"w-4 h-4"}),"Custom Command"]})})]})]})]}),t.jsx(Z,{})]})}),c==="NPX"&&t.jsx(J,{control:s.control,name:"npx_package",render:({field:i})=>t.jsxs(Y,{className:"flex flex-col gap-3",children:[t.jsx(te,{className:"text-xs text-muted-foreground font-medium",children:"NPM Package"}),t.jsx(H,{children:t.jsx(ee,{placeholder:"@perplexity-ai/mcp-server",...i,value:i.value||"",className:"h-10 rounded-lg"})}),t.jsx(Z,{})]})}),c==="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsx(J,{control:s.control,name:"stdio_command",render:({field:i})=>t.jsxs(Y,{className:"flex flex-col gap-3",children:[t.jsx(te,{className:"text-xs text-muted-foreground font-medium",children:"Command"}),t.jsx(H,{children:t.jsx(ee,{placeholder:"node, bun, python...",...i,value:i.value||"",className:"h-10 rounded-lg"})}),t.jsx(Z,{})]})}),t.jsx(J,{control:s.control,name:"stdio_args",render:({field:i})=>t.jsxs(Y,{className:"flex flex-col gap-3",children:[t.jsx(te,{className:"text-xs text-muted-foreground font-medium",children:"Arguments"}),t.jsx(H,{children:t.jsx(ee,{placeholder:"arg1 arg2 --flag value",...i,value:i.value||"",className:"h-10 rounded-lg"})}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Space-separated arguments"}),t.jsx(Z,{})]})})]}),t.jsx(J,{control:s.control,name:"stdio_cwd",render:({field:i})=>t.jsxs(Y,{className:"flex flex-col gap-3",children:[t.jsx(te,{className:"text-xs text-muted-foreground font-medium",children:"Working Directory"}),t.jsx(H,{children:t.jsx(ee,{placeholder:"/path/to/project (optional)",...i,value:i.value||"",className:"h-10 rounded-lg"})}),t.jsx(Z,{})]})})]}),(c==="NPX"||c==="STDIO")&&t.jsx(J,{control:s.control,name:"env_vars",render:({field:i})=>t.jsxs(Y,{className:"flex flex-col gap-3",children:[t.jsx(te,{className:"text-xs text-muted-foreground font-medium",children:"Environment Variables"}),t.jsx(H,{children:t.jsx(At,{value:i.value??[],onChange:i.onChange})}),t.jsx(Z,{})]})}),c!=="NPX"&&c!=="STDIO"&&t.jsx(J,{control:s.control,name:"connection_token",render:({field:i})=>t.jsxs(Y,{className:"flex flex-col gap-3",children:[t.jsx(te,{className:"text-xs text-muted-foreground font-medium",children:u?"GitHub Personal Access Token":"Token"}),n?t.jsx("div",{className:"flex items-center gap-2",children:t.jsxs(Zt,{children:[t.jsx(es,{asChild:!0,children:t.jsx("button",{type:"button",className:"inline-flex items-center gap-1.5 cursor-pointer",children:t.jsxs(Be,{variant:"success",className:"gap-1.5",children:[t.jsx(pt,{size:12}),"Authenticated via OAuth",t.jsx(os,{size:12})]})})}),t.jsxs(ts,{align:"start",children:[t.jsxs(et,{onClick:o,children:[t.jsx(jt,{size:16}),"Re-authenticate"]}),t.jsxs(et,{variant:"destructive",onClick:r,children:[t.jsx(is,{size:16}),"Remove OAuth"]})]})]})}):e.connection_token&&i.value===null?t.jsxs("div",{className:"relative group",children:[t.jsx("div",{className:"h-10 px-3 flex items-center rounded-lg border border-border bg-muted/50 text-muted-foreground font-mono text-sm",children:"••••••••••••••••"}),t.jsx("button",{type:"button",onClick:()=>i.onChange(""),className:"absolute right-2 top-1/2 -translate-y-1/2 p-1 rounded hover:bg-muted opacity-0 group-hover:opacity-100 transition-opacity",title:"Clear and replace token",children:t.jsx(cs,{size:14,className:"text-muted-foreground"})})]}):t.jsxs(t.Fragment,{children:[t.jsx(H,{children:t.jsx(ee,{type:"password",placeholder:u?"Paste your GitHub PAT":"Enter access token...",...i,value:i.value||"",className:"h-10 rounded-lg"})}),u&&t.jsxs(ns,{children:["Create a PAT at"," ",t.jsx("a",{href:"https://github.com/settings/personal-access-tokens",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"github.com/settings/personal-access-tokens"})]})]}),t.jsx(Z,{})]})})]})}function bs(s){const e=W.c(43),{form:n,connection:o,isMCPAuthenticated:r,hasOAuthToken:c,onReauthenticate:a,onRemoveOAuth:f}=s,{org:u}=at();let p;e[0]!==o.icon||e[1]!==o.title?(p=t.jsx(qe,{icon:o.icon,name:o.title,size:"lg",className:"shadow-sm"}),e[0]=o.icon,e[1]=o.title,e[2]=p):p=e[2];let x;e[3]!==n.control?(x=t.jsxs("div",{className:"flex flex-col",children:[t.jsx(J,{control:n.control,name:"title",render:Ns}),t.jsx(J,{control:n.control,name:"description",render:vs})]}),e[3]=n.control,e[4]=x):x=e[4];let m;e[5]!==p||e[6]!==x?(m=t.jsxs("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:[p,x]}),e[5]=p,e[6]=x,e[7]=m):m=e[7];let i;e[8]!==o||e[9]!==n||e[10]!==c||e[11]!==a||e[12]!==f?(i=t.jsx(js,{form:n,connection:o,hasOAuthToken:c,onReauthenticate:a,onRemoveOAuth:f}),e[8]=o,e[9]=n,e[10]=c,e[11]=a,e[12]=f,e[13]=i):i=e[13];let b;e[14]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:"Status"}),e[14]=b):b=e[14];let d;e[15]!==r?(d=t.jsxs("div",{className:"flex items-center justify-between py-1.5",children:[b,r?t.jsxs(Be,{variant:"success",className:"gap-1.5 bg-success-foreground text-success",children:[t.jsx(pt,{size:12}),"Connected"]}):t.jsx(Be,{variant:"outline",className:"text-muted-foreground",children:"Not connected"})]}),e[15]=r,e[16]=d):d=e[16];let l;e[17]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:"Created by"}),e[17]=l):l=e[17];let j;e[18]!==o.created_by?(j=t.jsxs("div",{className:"flex items-center justify-between py-1.5",children:[l,t.jsx(as,{id:o.created_by,size:"2xs"})]}),e[18]=o.created_by,e[19]=j):j=e[19];let T;e[20]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:"Updated"}),e[20]=T):T=e[20];let v;e[21]!==o.updated_at?(v=o.updated_at?ps(new Date(o.updated_at),{addSuffix:!0}):"Unknown",e[21]=o.updated_at,e[22]=v):v=e[22];let y;e[23]!==v?(y=t.jsxs("div",{className:"flex items-center justify-between py-1.5",children:[T,t.jsx("span",{className:"text-sm text-foreground",children:v})]}),e[23]=v,e[24]=y):y=e[24];let _;e[25]!==y||e[26]!==d||e[27]!==j?(_=t.jsxs("div",{className:"flex flex-col gap-2 p-5 border-b border-border",children:[d,j,y]}),e[25]=y,e[26]=d,e[27]=j,e[28]=_):_=e[28];let N;e[29]!==o.description||e[30]!==o.icon||e[31]!==o.id||e[32]!==o.title||e[33]!==u.slug?(N=t.jsx(gs,{connectionId:o.id,connectionTitle:o.title,connectionDescription:o.description,connectionIcon:o.icon,org:u.slug}),e[29]=o.description,e[30]=o.icon,e[31]=o.id,e[32]=o.title,e[33]=u.slug,e[34]=N):N=e[34];let h;e[35]!==_||e[36]!==N||e[37]!==m||e[38]!==i?(h=t.jsxs("div",{className:"flex flex-col h-full overflow-auto",children:[m,i,_,N]}),e[35]=_,e[36]=N,e[37]=m,e[38]=i,e[39]=h):h=e[39];let k;return e[40]!==n||e[41]!==h?(k=t.jsx(ss,{...n,children:h}),e[40]=n,e[41]=h,e[42]=k):k=e[42],k}function vs(s){const{field:e}=s;return t.jsxs(Y,{className:"w-full space-y-0",children:[t.jsx(H,{children:t.jsx(ee,{...e,value:e.value||"",className:"h-auto py-0.5 text-base text-muted-foreground leading-6 px-2 -mx-2 border-transparent hover:bg-input/25 focus:border-input bg-transparent transition-all",placeholder:"Add a description..."})}),t.jsx(Z,{})]})}function Ns(s){const{field:e}=s;return t.jsxs(Y,{className:"flex-1 space-y-0",children:[t.jsx(H,{children:t.jsx(ee,{...e,className:"h-auto py-0.5 text-lg! font-medium leading-7 px-2 -mx-2 border-transparent hover:bg-input/25 focus:border-input bg-transparent transition-all",placeholder:"Connection Name"})}),t.jsx(Z,{})]})}function ys(s){const e=W.c(42),{prompts:n,connectionId:o,org:r,connectionTitle:c,connectionIcon:a,onPromptClick:f,showToolbar:u,emptyMessage:p}=s,x=u===void 0?!0:u,m=p===void 0?"This connection doesn't have any prompts yet.":p,i=Re(),d=ze().location.href,[l,j]=q.useState(""),[T,v]=q.useState("table"),[y,_]=q.useState("name"),[N,h]=q.useState("asc");let k;e[0]!==N||e[1]!==y?(k=S=>{y===S?(h(Ts),N==="desc"&&_(void 0)):(_(S),h("asc"))},e[0]=N,e[1]=y,e[2]=k):k=e[2];const B=k;let $;e[3]!==o||e[4]!==i||e[5]!==f||e[6]!==r?($=S=>{f?f(S):o&&r&&i({to:"/$org/$project/mcps/$connectionId/$collectionName/$itemId",params:{org:r,project:Se,connectionId:o,collectionName:"prompts",itemId:encodeURIComponent(S.name)}})},e[3]=o,e[4]=i,e[5]=f,e[6]=r,e[7]=$):$=e[7];const M=$;let A;if(e[8]!==n||e[9]!==l||e[10]!==N||e[11]!==y){const S=!n||n.length===0?[]:l.trim()?(()=>{const Q=l.toLowerCase();return n.filter(X=>X.name.toLowerCase().includes(Q)||X.description&&X.description.toLowerCase().includes(Q))})():n;A=!y||!N?S:[...S].sort((Q,X)=>{const se=Q[y]||"",ne=X[y]||"",oe=String(se).localeCompare(String(ne));return N==="asc"?oe:-oe}),e[8]=n,e[9]=l,e[10]=N,e[11]=y,e[12]=A}else A=e[12];const I=A;let R;e[13]===Symbol.for("react.memo_cache_sentinel")?(R=[{id:"name",header:"Name",render:ws,sortable:!0},{id:"description",header:"Description",render:Ss,cellClassName:"flex-1",sortable:!0}],e[13]=R):R=e[13];const L=R;let C;e[14]===Symbol.for("react.memo_cache_sentinel")?(C=L.filter(Cs).map(_s),e[14]=C):C=e[14];const z=C;let P;e[15]!==a||e[16]!==c||e[17]!==B||e[18]!==x||e[19]!==N||e[20]!==y||e[21]!==d||e[22]!==T?(P=x&&t.jsxs(Ke,{children:[t.jsx(xt,{viewMode:T,onViewModeChange:v,sortKey:y,sortDirection:N,onSort:B,sortOptions:z}),t.jsx(We,{title:c?`${c}: Prompts`:"Prompts",url:d,icon:a??"description"})]}),e[15]=a,e[16]=c,e[17]=B,e[18]=x,e[19]=N,e[20]=y,e[21]=d,e[22]=T,e[23]=P):P=e[23];let D;e[24]===Symbol.for("react.memo_cache_sentinel")?(D=S=>{S.key==="Escape"&&(j(""),S.target.blur())},e[24]=D):D=e[24];let V;e[25]!==l?(V=t.jsx(ht,{value:l,onChange:j,placeholder:"Search prompts...",onKeyDown:D}),e[25]=l,e[26]=V):V=e[26];let g;e[27]!==m||e[28]!==M||e[29]!==B||e[30]!==l||e[31]!==N||e[32]!==y||e[33]!==I||e[34]!==T?(g=T==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:I.length===0?t.jsx(ye,{image:null,title:l?"No prompts found":"No prompts available",description:l?"Try adjusting your search terms":m}):t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:I.map(S=>t.jsx(gt,{className:"cursor-pointer transition-colors",onClick:()=>M(S),children:t.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[t.jsx(qe,{icon:null,name:S.name,size:"md",className:"shrink-0 shadow-sm"}),t.jsxs("div",{className:"flex flex-col gap-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:S.name}),t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:S.description||"No description"})]})]})},S.name))})}):t.jsx(ft,{columns:L,data:I,isLoading:!1,sortKey:y,sortDirection:N,onSort:B,onRowClick:S=>M(S),emptyState:t.jsx(ye,{image:null,title:l?"No prompts found":"No prompts available",description:l?"Try adjusting your search terms":m})}),e[27]=m,e[28]=M,e[29]=B,e[30]=l,e[31]=N,e[32]=y,e[33]=I,e[34]=T,e[35]=g):g=e[35];let F;e[36]!==V||e[37]!==g?(F=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[V,g]}),e[36]=V,e[37]=g,e[38]=F):F=e[38];let O;return e[39]!==F||e[40]!==P?(O=t.jsxs(t.Fragment,{children:[P,F]}),e[39]=F,e[40]=P,e[41]=O):O=e[41],O}function _s(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function Cs(s){return s.sortable}function Ss(s){return t.jsx("span",{className:"text-sm text-foreground",children:s.description||"—"})}function ws(s){return t.jsx("span",{className:"text-sm font-medium font-mono text-foreground",children:s.name})}function Ts(s){return s==="asc"?"desc":s==="desc"?null:"asc"}function ks(s){const e=W.c(6),{prompts:n,connectionId:o,org:r}=s,c=Xe(o),a=c?.title,f=c?.icon;let u;return e[0]!==o||e[1]!==r||e[2]!==n||e[3]!==a||e[4]!==f?(u=t.jsx(ys,{prompts:n,connectionId:o,org:r,connectionTitle:a,connectionIcon:f}),e[0]=o,e[1]=r,e[2]=n,e[3]=a,e[4]=f,e[5]=u):u=e[5],u}function Ps(s){const e=W.c(2),{repository:n}=s;let o;return e[0]!==n?(o=t.jsx("div",{className:"flex-1 overflow-y-auto bg-background",children:t.jsx(fs,{repository:n})}),e[0]=n,e[1]=o):o=e[1],o}function Is(s){const e=W.c(39),{resources:n,connectionTitle:o,connectionIcon:r,onResourceClick:c,showToolbar:a,emptyMessage:f}=s,u=a===void 0?!0:a,p=f===void 0?"This connection doesn't have any resources yet.":f,m=ze().location.href,[i,b]=q.useState(""),[d,l]=q.useState("table"),[j,T]=q.useState("name"),[v,y]=q.useState("asc");let _;e[0]!==v||e[1]!==j?(_=g=>{j===g?(y(Es),v==="desc"&&T(void 0)):(T(g),y("asc"))},e[0]=v,e[1]=j,e[2]=_):_=e[2];const N=_;let h;e[3]!==c?(h=g=>{c&&c(g)},e[3]=c,e[4]=h):h=e[4];const k=h;let B;if(e[5]!==n||e[6]!==i||e[7]!==v||e[8]!==j){const g=!n||n.length===0?[]:i.trim()?(()=>{const F=i.toLowerCase();return n.filter(O=>O.uri.toLowerCase().includes(F)||O.name&&O.name.toLowerCase().includes(F)||O.description&&O.description.toLowerCase().includes(F))})():n;B=!j||!v?g:[...g].sort((F,O)=>{const S=F[j]||"",Q=O[j]||"",X=String(S).localeCompare(String(Q));return v==="asc"?X:-X}),e[5]=n,e[6]=i,e[7]=v,e[8]=j,e[9]=B}else B=e[9];const $=B;let M;e[10]===Symbol.for("react.memo_cache_sentinel")?(M=[{id:"name",header:"Name",render:Os,sortable:!0},{id:"uri",header:"URI",render:Ds,sortable:!0},{id:"description",header:"Description",render:Ms,cellClassName:"flex-1",sortable:!0},{id:"mimeType",header:"Type",render:Vs,sortable:!0}],e[10]=M):M=e[10];const A=M;let I;e[11]===Symbol.for("react.memo_cache_sentinel")?(I=A.filter(As).map($s),e[11]=I):I=e[11];const R=I;let L;e[12]!==r||e[13]!==o||e[14]!==N||e[15]!==u||e[16]!==v||e[17]!==j||e[18]!==m||e[19]!==d?(L=u&&t.jsxs(Ke,{children:[t.jsx(xt,{viewMode:d,onViewModeChange:l,sortKey:j,sortDirection:v,onSort:N,sortOptions:R}),t.jsx(We,{title:o?`${o}: Resources`:"Resources",url:m,icon:r??"folder"})]}),e[12]=r,e[13]=o,e[14]=N,e[15]=u,e[16]=v,e[17]=j,e[18]=m,e[19]=d,e[20]=L):L=e[20];let C;e[21]===Symbol.for("react.memo_cache_sentinel")?(C=g=>{g.key==="Escape"&&(b(""),g.target.blur())},e[21]=C):C=e[21];let z;e[22]!==i?(z=t.jsx(ht,{value:i,onChange:b,placeholder:"Search resources...",onKeyDown:C}),e[22]=i,e[23]=z):z=e[23];let P;e[24]!==p||e[25]!==k||e[26]!==N||e[27]!==i||e[28]!==v||e[29]!==j||e[30]!==$||e[31]!==d?(P=d==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:$.length===0?t.jsx(ye,{image:null,title:i?"No resources found":"No resources available",description:i?"Try adjusting your search terms":p}):t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:$.map(g=>t.jsx(gt,{className:"cursor-pointer transition-colors",onClick:()=>k(g),children:t.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[t.jsx(qe,{icon:null,name:g.name||g.uri,size:"md",className:"shrink-0 shadow-sm"}),t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:g.name||g.uri}),t.jsx("p",{className:"text-xs font-mono text-muted-foreground truncate",children:g.uri}),g.description&&t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mt-1",children:g.description})]})]})},g.uri))})}):t.jsx(ft,{columns:A,data:$,isLoading:!1,sortKey:j,sortDirection:v,onSort:N,onRowClick:g=>k(g),emptyState:t.jsx(ye,{image:null,title:i?"No resources found":"No resources available",description:i?"Try adjusting your search terms":p})}),e[24]=p,e[25]=k,e[26]=N,e[27]=i,e[28]=v,e[29]=j,e[30]=$,e[31]=d,e[32]=P):P=e[32];let D;e[33]!==z||e[34]!==P?(D=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[z,P]}),e[33]=z,e[34]=P,e[35]=D):D=e[35];let V;return e[36]!==D||e[37]!==L?(V=t.jsxs(t.Fragment,{children:[L,D]}),e[36]=D,e[37]=L,e[38]=V):V=e[38],V}function $s(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function As(s){return s.sortable}function Vs(s){return t.jsx("span",{className:"text-sm text-muted-foreground",children:s.mimeType||"—"})}function Ms(s){return t.jsx("span",{className:"text-sm text-foreground",children:s.description||"—"})}function Ds(s){return t.jsx("span",{className:"text-sm font-mono text-muted-foreground",children:s.uri})}function Os(s){return t.jsx("span",{className:"text-sm font-medium text-foreground",children:s.name||s.uri})}function Es(s){return s==="asc"?"desc":s==="desc"?null:"asc"}function Rs(s){const e=W.c(6),{resources:n,connectionId:o,org:r}=s,c=Xe(o),a=c?.title,f=c?.icon;let u;return e[0]!==o||e[1]!==r||e[2]!==n||e[3]!==a||e[4]!==f?(u=t.jsx(Is,{resources:n,connectionId:o,org:r,connectionTitle:a,connectionIcon:f}),e[0]=o,e[1]=r,e[2]=n,e[3]=a,e[4]=f,e[5]=u):u=e[5],u}const Ls=lt({key:K().min(1,"Key is required"),value:K()}),Us=lt({title:K().min(1,"Name is required"),description:K().nullable().optional(),ui_type:St(["HTTP","SSE","Websocket","NPX","STDIO"]),connection_url:K().optional(),connection_token:K().nullable().optional(),npx_package:K().optional(),stdio_command:K().optional(),stdio_args:K().optional(),stdio_cwd:K().optional(),env_vars:Je(Ls).optional(),configuration_scopes:Je(K()).nullable().optional(),configuration_state:_t(K(),Ct()).nullable().optional()}).refine(s=>s.ui_type==="NPX"?!!s.npx_package?.trim():!0,{message:"NPM package is required",path:["npx_package"]}).refine(s=>s.ui_type==="STDIO"?!!s.stdio_command?.trim():!0,{message:"Command is required",path:["stdio_command"]}).refine(s=>s.ui_type==="HTTP"||s.ui_type==="SSE"||s.ui_type==="Websocket"?!!s.connection_url?.trim():!0,{message:"URL is required",path:["connection_url"]});function Fs(s){const e=W.c(5),{tools:n,connectionId:o,org:r,isLoading:c}=s;let a;return e[0]!==o||e[1]!==c||e[2]!==r||e[3]!==n?(a=t.jsx(xs,{tools:n,connectionId:o,org:r,isLoading:c}),e[0]=o,e[1]=c,e[2]=r,e[3]=n,e[4]=a):a=e[4],a}function Bs(s){return s.command==="npx"}function zs(s){return s.args?.find(e=>!e.startsWith("-"))??""}function Ws(s){return{command:s.command,args:s.args?.join(" ")??"",cwd:s.cwd??""}}function Xs(s,e){const n={command:"npx",args:["-y",s]},o=mt(e);return Object.keys(o).length>0&&(n.envVars=o),n}function Ks(s,e,n,o){const r={command:s};e.trim()&&(r.args=e.trim().split(/\s+/)),n?.trim()&&(r.cwd=n.trim());const c=mt(o);return Object.keys(c).length>0&&(r.envVars=c),r}function it(s,e){const n={title:s.title,description:s.description??"",configuration_state:s.configuration_state??{},configuration_scopes:s.configuration_scopes||[]};if(s.connection_type==="STDIO"&&$t(s.connection_headers)){const o=s.connection_headers,r=Vt(o.envVars);if(Bs(o)){const a=zs(o);return{...n,ui_type:"NPX",connection_url:"",connection_token:null,npx_package:a,stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:r}}const c=Ws(o);return{...n,ui_type:"STDIO",connection_url:"",connection_token:null,npx_package:"",stdio_command:c.command,stdio_args:c.args,stdio_cwd:c.cwd,env_vars:r}}return{...n,ui_type:s.connection_type,connection_url:s.connection_url??"",connection_token:null,npx_package:"",stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:[]}}function qs(s){let e,n=null,o=null,r=null;return s.ui_type==="NPX"?(e="STDIO",n="",r=Xs(s.npx_package||"",s.env_vars||[])):s.ui_type==="STDIO"?(e="STDIO",n="",r=Ks(s.stdio_command||"",s.stdio_args||"",s.stdio_cwd,s.env_vars||[])):(e=s.ui_type,n=s.connection_url||"",o=s.connection_token||null),{title:s.title,description:s.description||null,connection_type:e,connection_url:n,...o&&{connection_token:o},...r&&{connection_headers:r},configuration_state:s.configuration_state??null,configuration_scopes:s.configuration_scopes??null}}function Hs(s){const e=W.c(117),{connection:n,connectionId:o,org:r,requestedTabId:c,collections:a,onUpdate:f,isUpdating:u,prompts:p,resources:x,tools:m,isLoadingTools:i}=s;let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={from:"/$org/$project/mcps/$connectionId"},e[0]=b):b=e[0];const d=Re(b),l=kt(),T=ze().location.href,v=ut();let y;e[1]!==o?(y={connectionId:o},e[1]=o,e[2]=y):y=e[2];const _=Et(y),h=n?.connection_type==="VIRTUAL"||_.isAuthenticated;let k;e[3]!==n?(k={connections:[n],binding:"MCP"},e[3]=n,e[4]=k):k=e[4];const $=Ot(k).length>0,M=n?.metadata?.repository,A=!!M?.url;let I;e[5]===Symbol.for("react.memo_cache_sentinel")?(I=Pt(Us),e[5]=I):I=e[5];let R;e[6]!==n?(R=it(n),e[6]=n,e[7]=R):R=e[7];let L;e[8]!==R?(L={resolver:I,values:R},e[8]=R,e[9]=L):L=e[9];const C=It(L),z=C.formState.isDirty;let P;e[10]!==C||e[11]!==f?(P=async()=>{if(!await C.trigger())return;const U=C.getValues(),Ne=qs(U);await f(Ne),C.reset(U)},e[10]=C,e[11]=f,e[12]=P):P=e[12];const D=P;let V;e[13]!==n||e[14]!==C?(V=()=>{C.reset(it(n))},e[13]=n,e[14]=C,e[15]=V):V=e[15];const g=V;let F;e[16]!==n.id||e[17]!==v||e[18]!==l?(F=async()=>{const{token:w,tokenInfo:U,error:Ne}=await zt({connectionId:n.id});if(Ne||!w){Ce.error(`Authentication failed: ${Ne}`);return}if(U)try{const De=await fetch(`/api/connections/${n.id}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:U.accessToken,refreshToken:U.refreshToken,expiresIn:U.expiresIn,scope:U.scope,clientId:U.clientId,clientSecret:U.clientSecret,tokenEndpoint:U.tokenEndpoint})});if(!De.ok)console.error("Failed to save OAuth token:",await De.text()),await v.update.mutateAsync({id:n.id,data:{connection_token:w}});else try{await v.update.mutateAsync({id:n.id,data:{}})}catch(Qe){console.warn("Failed to refresh connection tools after OAuth:",Qe)}}catch(De){console.error("Error saving OAuth token:",De),await v.update.mutateAsync({id:n.id,data:{connection_token:w}})}else await v.update.mutateAsync({id:n.id,data:{connection_token:w}});const vt=new URL(`/mcp/${n.id}`,window.location.origin);await l.invalidateQueries({queryKey:Ye.isMCPAuthenticated(vt.href,null)}),Ce.success("Authentication successful")},e[16]=n.id,e[17]=v,e[18]=l,e[19]=F):F=e[19];const O=F;let S;e[20]!==n.id||e[21]!==l?(S=async()=>{try{const w=await fetch(`/api/connections/${n.id}/oauth-token`,{method:"DELETE",credentials:"include"});if(!w.ok){const Ne=await w.text();Ce.error(`Failed to remove OAuth: ${Ne}`);return}const U=new URL(`/mcp/${n.id}`,window.location.origin);await l.invalidateQueries({queryKey:Ye.isMCPAuthenticated(U.href,null)}),Ce.success("OAuth removed. You can now re-authenticate with a different account.")}catch(w){console.error("Error removing OAuth token:",w),Ce.error("Failed to remove OAuth")}},e[20]=n.id,e[21]=l,e[22]=S):S=e[22];const Q=S,X=m.length,se=p.length,ne=x.length,oe=X>0||i;let we;e[23]===Symbol.for("react.memo_cache_sentinel")?(we={id:"settings",label:"Settings"},e[23]=we):we=e[23];let re;e[24]!==i||e[25]!==h||e[26]!==oe||e[27]!==X?(re=h&&oe?[{id:"tools",label:"Tools",count:i?void 0:X}]:[],e[24]=i,e[25]=h,e[26]=oe,e[27]=X,e[28]=re):re=e[28];let ie;e[29]!==h||e[30]!==se?(ie=h&&se>0?[{id:"prompts",label:"Prompts",count:se}]:[],e[29]=h,e[30]=se,e[31]=ie):ie=e[31];let ce;e[32]!==h||e[33]!==ne?(ce=h&&ne>0?[{id:"resources",label:"Resources",count:ne}]:[],e[32]=h,e[33]=ne,e[34]=ce):ce=e[34];let Te;if(e[35]!==a||e[36]!==A||e[37]!==h||e[38]!==re||e[39]!==ie||e[40]!==ce){let w;e[42]!==A?(w=A?[{id:"readme",label:"README"}]:[],e[42]=A,e[43]=w):w=e[43],Te=[we,...re,...ie,...ce,...h?(a||[]).map(Gs):[],...w],e[35]=a,e[36]=A,e[37]=h,e[38]=re,e[39]=ie,e[40]=ce,e[41]=Te}else Te=e[41];const _e=Te,bt=h&&_e.some(Qs)?"tools":"settings",E=_e.some(w=>w.id===c)?c:bt;let ke;e[44]!==d?(ke=w=>{d({search:U=>({...U,tab:w}),replace:!0})},e[44]=d,e[45]=ke):ke=e[45];const ae=ke;let le;e[46]!==a?(le=a||[],e[46]=a,e[47]=le):le=e[47];let Pe;if(e[48]!==E||e[49]!==le){let w;e[51]!==E?(w=U=>U.name===E,e[51]=E,e[52]=w):w=e[52],Pe=le.find(w),e[48]=E,e[49]=le,e[50]=Pe}else Pe=e[50];const Ie=Pe;let de;e[53]!==r?(de=t.jsx(Ze,{children:t.jsx(Xt,{asChild:!0,children:t.jsx(ct,{to:"/$org/$project/mcps",params:{org:r,project:Se},children:"Connections"})})}),e[53]=r,e[54]=de):de=e[54];let $e;e[55]===Symbol.for("react.memo_cache_sentinel")?($e=t.jsx(Kt,{}),e[55]=$e):$e=e[55];let me;e[56]!==n.title?(me=t.jsx(Ze,{children:t.jsx(Wt,{children:n.title})}),e[56]=n.title,e[57]=me):me=e[57];let Ae;e[58]!==de||e[59]!==me?(Ae=t.jsx(qt,{children:t.jsxs(Ht,{children:[de,$e,me]})}),e[58]=de,e[59]=me,e[60]=Ae):Ae=e[60];const Le=Ae;let ue;e[61]!==D||e[62]!==g||e[63]!==z||e[64]!==u?(ue=t.jsx(Mt,{onSave:D,onUndo:g,isDirty:z,isSaving:u}),e[61]=D,e[62]=g,e[63]=z,e[64]=u,e[65]=ue):ue=e[65];const Ue=n.icon??"settings";let pe;e[66]!==n.title||e[67]!==Ue||e[68]!==T?(pe=t.jsx(We,{title:n.title,url:T,icon:Ue}),e[66]=n.title,e[67]=Ue,e[68]=T,e[69]=pe):pe=e[69];let fe;e[70]!==ue||e[71]!==pe?(fe=t.jsxs(Ke,{children:[ue,pe]}),e[70]=ue,e[71]=pe,e[72]=fe):fe=e[72];let xe;e[73]!==_.hasOAuthToken||e[74]!==n||e[75]!==C||e[76]!==O||e[77]!==Q||e[78]!==h?(xe=t.jsx("div",{className:"w-100 shrink-0 border-r border-border bg-background",children:t.jsx(bs,{form:C,connection:n,isMCPAuthenticated:h,hasOAuthToken:_.hasOAuthToken,onReauthenticate:O,onRemoveOAuth:Q})}),e[73]=_.hasOAuthToken,e[74]=n,e[75]=C,e[76]=O,e[77]=Q,e[78]=h,e[79]=xe):xe=e[79];let he;e[80]!==E||e[81]!==ae||e[82]!==_e?(he=t.jsx("div",{className:"shrink-0 flex items-center gap-4 px-5 py-3 border-b border-border",children:t.jsx(Qt,{tabs:_e,activeTab:E,onTabChange:ae,className:"flex-1"})}),e[80]=E,e[81]=ae,e[82]=_e,e[83]=he):he=e[83];let Ve;e[84]===Symbol.for("react.memo_cache_sentinel")?(Ve=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Ee,{size:32,className:"animate-spin text-muted-foreground"})}),e[84]=Ve):Ve=e[84];let ge;e[85]!==Ie||e[86]!==E||e[87]!==_.isServerError||e[88]!==_.supportsOAuth||e[89]!==n||e[90]!==o||e[91]!==C||e[92]!==O||e[93]!==ae||e[94]!==$||e[95]!==A||e[96]!==i||e[97]!==h||e[98]!==r||e[99]!==p||e[100]!==M||e[101]!==x||e[102]!==m?(ge=t.jsx(q.Suspense,{fallback:Ve,children:E==="tools"?t.jsx(Fs,{tools:m,connectionId:o,org:r,isLoading:i}):E==="prompts"?t.jsx(ks,{prompts:p,connectionId:o,org:r}):E==="resources"?t.jsx(Rs,{resources:x,connectionId:o,org:r}):E==="settings"?t.jsx(Rt,{connection:n,form:C,hasMcpBinding:$,isMCPAuthenticated:h,supportsOAuth:_.supportsOAuth,isServerError:_.isServerError,onAuthenticate:O,onViewReadme:A?()=>ae("readme"):void 0}):E==="readme"&&A?t.jsx(Ps,{repository:M}):Ie&&h?t.jsx(Jt,{connectionId:o,org:r,activeCollection:Ie},E):t.jsx(ye,{title:"Collection not found",description:"This collection may have been deleted or you may not have access."})}),e[85]=Ie,e[86]=E,e[87]=_.isServerError,e[88]=_.supportsOAuth,e[89]=n,e[90]=o,e[91]=C,e[92]=O,e[93]=ae,e[94]=$,e[95]=A,e[96]=i,e[97]=h,e[98]=r,e[99]=p,e[100]=M,e[101]=x,e[102]=m,e[103]=ge):ge=e[103];let je;e[104]!==E||e[105]!==ge?(je=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(dt,{children:ge},E)}),e[104]=E,e[105]=ge,e[106]=je):je=e[106];let be;e[107]!==he||e[108]!==je?(be=t.jsxs("div",{className:"flex-1 flex flex-col min-w-0 bg-background overflow-hidden",children:[he,je]}),e[107]=he,e[108]=je,e[109]=be):be=e[109];let ve;e[110]!==xe||e[111]!==be?(ve=t.jsxs("div",{className:"flex h-full w-full bg-background overflow-hidden",children:[xe,be]}),e[110]=xe,e[111]=be,e[112]=ve):ve=e[112];let Me;return e[113]!==Le||e[114]!==fe||e[115]!==ve?(Me=t.jsxs(Gt,{breadcrumb:Le,children:[fe,ve]}),e[113]=Le,e[114]=fe,e[115]=ve,e[116]=Me):Me=e[116],Me}function Qs(s){return s.id==="tools"}function Gs(s){return{id:s.name,label:s.displayName}}function Js(){const s=W.c(43);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/$org/$project/mcps/$connectionId"},s[0]=e):e=s[0];const n=Re(e);let o;s[1]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org/$project/mcps/$connectionId"},s[1]=o):o=s[1];const{connectionId:r,org:c}=wt(o),{org:a}=at();let f;s[2]===Symbol.for("react.memo_cache_sentinel")?(f={from:"/shell/$org/$project/mcps/$connectionId"},s[2]=f):f=s[2];const p=Tt(f).tab??"",x=Xe(r),m=ut(),i=Dt(x??void 0);let b;s[3]!==r||s[4]!==a.id?(b={connectionId:r,orgId:a.id},s[3]=r,s[4]=a.id,s[5]=b):b=s[5];const d=Lt(b);let l;s[6]!==d?(l={client:d},s[6]=d,s[7]=l):l=s[7];const{data:j}=Ft(l);let T;s[8]!==d?(T={client:d},s[8]=d,s[9]=T):T=s[9];const{data:v}=Bt(T),_=!(x?.connection_type==="VIRTUAL")&&x?.tools&&x.tools.length>0,N=!_;let h;s[10]!==d||s[11]!==N?(h={client:d,enabled:N},s[10]=d,s[11]=N,s[12]=h):h=s[12];const{data:k,isLoading:B}=Ut(h);let $;s[13]!==j?.prompts?($=j?.prompts??[],s[13]=j?.prompts,s[14]=$):$=s[14];let M;s[15]!==$?(M=$.map(en),s[15]=$,s[16]=M):M=s[16];const A=M;let I;s[17]!==v?.resources?(I=v?.resources??[],s[17]=v?.resources,s[18]=I):I=s[18];let R;s[19]!==I?(R=I.map(Zs),s[19]=I,s[20]=R):R=s[20];const L=R;let C;s[21]!==x||s[22]!==_||s[23]!==k?.tools?(C=_?x.tools??[]:(k?.tools??[]).map(Ys),s[21]=x,s[22]=_,s[23]=k?.tools,s[24]=C):C=s[24];const z=C;let P;s[25]!==m.update||s[26]!==r?(P=async g=>{await m.update.mutateAsync({id:r,data:g})},s[25]=m.update,s[26]=r,s[27]=P):P=s[27];const D=P;if(!x){let g;return s[28]!==n||s[29]!==c?(g=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(ye,{title:"Connection not found",description:"This connection may have been deleted or you may not have access.",actions:t.jsx(Fe,{variant:"outline",onClick:()=>n({to:"/$org/$project/mcps",params:{org:c,project:Se}}),children:"Back to connections"})})}),s[28]=n,s[29]=c,s[30]=g):g=s[30],g}let V;return s[31]!==m.update.isPending||s[32]!==i||s[33]!==x||s[34]!==r||s[35]!==D||s[36]!==B||s[37]!==c||s[38]!==A||s[39]!==p||s[40]!==L||s[41]!==z?(V=t.jsx(Hs,{org:c,connection:x,connectionId:r,requestedTabId:p,collections:i,onUpdate:D,isUpdating:m.update.isPending,prompts:A,resources:L,tools:z,isLoadingTools:B}),s[31]=m.update.isPending,s[32]=i,s[33]=x,s[34]=r,s[35]=D,s[36]=B,s[37]=c,s[38]=A,s[39]=p,s[40]=L,s[41]=z,s[42]=V):V=s[42],V}function Ys(s){return{name:s.name,description:s.description,inputSchema:s.inputSchema}}function Zs(s){return{uri:s.uri,name:s.name,description:s.description}}function en(s){return{name:s.name,description:s.description}}function tn(){const s=W.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(dt,{children:t.jsx(q.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx(Ee,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Js,{})})}),s[0]=e):e=s[0],e}function Lo(){const s=W.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(tn,{}),s[0]=e):e=s[0],e}export{Lo as default};
@@ -1 +0,0 @@
1
- import{F as t,G as a}from"./index-CCcWAtA_.js";const e=t(a,{target:"draft-7"});export{e as B};