@decocms/mesh 2.63.0 → 2.63.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.
- package/dist/client/assets/{AlertCircle-ByS2S7QG.js → AlertCircle-iINAEFa4.js} +1 -1
- package/dist/client/assets/{ArrowUp-Pc2qwI_3.js → ArrowUp-DIH4YIj4.js} +1 -1
- package/dist/client/assets/{Calendar-MP2K9xOR.js → Calendar-zCs6oFWo.js} +1 -1
- package/dist/client/assets/{Check-kOHUYBJY.js → Check-DEmp3zPa.js} +1 -1
- package/dist/client/assets/{ChevronDown-J2iKAqyZ.js → ChevronDown-zqPsa4kD.js} +1 -1
- package/dist/client/assets/{ChevronRight-Cua3_Oqd.js → ChevronRight-CSlFIXoC.js} +1 -1
- package/dist/client/assets/{Code01-DORFegNP.js → Code01-Kmb97rSu.js} +1 -1
- package/dist/client/assets/{Copy01-U5Mrbyn4.js → Copy01-C-IOEXCR.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-nhuBUuxR.js → DotsHorizontal-BIorFFO8.js} +1 -1
- package/dist/client/assets/{DotsVertical-CDOXEsr8.js → DotsVertical-O5UGr--g.js} +1 -1
- package/dist/client/assets/{Download01-jn6ziu2W.js → Download01-CJWmhD5K.js} +1 -1
- package/dist/client/assets/{Edit01-C_cfLeJc.js → Edit01-DDAETsCp.js} +1 -1
- package/dist/client/assets/{File02-Gea-raGb.js → File02-CPLJ966g.js} +1 -1
- package/dist/client/assets/{File06-DE5HPnG3.js → File06-DsMnzy7g.js} +1 -1
- package/dist/client/assets/{FilterLines-CeL96HHO.js → FilterLines-BGVU_l7e.js} +1 -1
- package/dist/client/assets/{Grid01-CkZU0tWV.js → Grid01-DkopJaqC.js} +1 -1
- package/dist/client/assets/{Home02-BLvW9ZzY.js → Home02-D7CbT7GG.js} +1 -1
- package/dist/client/assets/{Image01-CIkj8y0a.js → Image01-CrPuVZdU.js} +1 -1
- package/dist/client/assets/{Inbox01-8S74uH1Z.js → Inbox01-Bca1Hh38.js} +1 -1
- package/dist/client/assets/{InfoCircle-BfJTzk81.js → InfoCircle-BaAgLfHd.js} +1 -1
- package/dist/client/assets/{Key01-BFw74njR.js → Key01-a2agbm7y.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BRD6ViRl.js → LinkExternal01-CXcmWGIB.js} +1 -1
- package/dist/client/assets/{List-4IPwuAX9.js → List-WphprgYo.js} +1 -1
- package/dist/client/assets/{Loading01-CCSRv8tX.js → Loading01-CR1SBu2C.js} +1 -1
- package/dist/client/assets/{Lock01-B367KJK-.js → Lock01-CBN0JpGw.js} +1 -1
- package/dist/client/assets/{Pin01-dHyXwRhr.js → Pin01-DNFRSKdF.js} +1 -1
- package/dist/client/assets/{Play-DiP4pY8r.js → Play-n1TWEywX.js} +1 -1
- package/dist/client/assets/{Plus-B5QrRvCn.js → Plus-C1IQFq-X.js} +1 -1
- package/dist/client/assets/{SearchMd-D2POsGFy.js → SearchMd-BfeHnYp2.js} +1 -1
- package/dist/client/assets/{Share07-CQptN91g.js → Share07-KtEhPSLK.js} +1 -1
- package/dist/client/assets/{Terminal-CsAynI3M.js → Terminal-lEFObr73.js} +1 -1
- package/dist/client/assets/{Tool01-DdjIy29J.js → Tool01-DPV3_3VU.js} +1 -1
- package/dist/client/assets/{Trash01-BdLDRPDl.js → Trash01-CrpuFo4N.js} +1 -1
- package/dist/client/assets/{Upload01-BB9AN-C_.js → Upload01-DKGwFY1S.js} +1 -1
- package/dist/client/assets/{Users03-DPYHJvoT.js → Users03-WPwWJkxW.js} +1 -1
- package/dist/client/assets/{X-CVoqpcAx.js → X-IaA51nti.js} +1 -1
- package/dist/client/assets/{XClose-CqNB1Ju1.js → XClose-6R1Vz3Sg.js} +1 -1
- package/dist/client/assets/{agent-detail-BA2oH52J.js → agent-detail-g-bDXNja.js} +1 -1
- package/dist/client/assets/{agents-CexpEqf3.js → agents-CxUQbmUz.js} +1 -1
- package/dist/client/assets/{alert-dialog-9PxNij5-.js → alert-dialog-CHkOTGol.js} +1 -1
- package/dist/client/assets/{auth-catchall-UkCMdvlG.js → auth-catchall-CYbI4Z-w.js} +1 -1
- package/dist/client/assets/{avatar-Cr99ARr3.js → avatar-CNskH7yJ.js} +1 -1
- package/dist/client/assets/{badge-a9rJdKKG.js → badge-0btvjZy9.js} +1 -1
- package/dist/client/assets/{binder-BHtkW0UD.js → binder-BIOI6WTI.js} +1 -1
- package/dist/client/assets/{breadcrumb-DBCyZqWb.js → breadcrumb-IZno0prj.js} +1 -1
- package/dist/client/assets/{button-BB_m2E67.js → button-D4S1kDGV.js} +1 -1
- package/dist/client/assets/{card-DQu0Qiy4.js → card-DHV-JrYd.js} +1 -1
- package/dist/client/assets/{checkbox-BYeejX3s.js → checkbox-5yA14qiU.js} +1 -1
- package/dist/client/assets/{circle-alert-W5iOrtbw.js → circle-alert-Bu-Bm-K-.js} +1 -1
- package/dist/client/assets/{collapsible-Ce6mH95q.js → collapsible-8SLD3RRw.js} +1 -1
- package/dist/client/assets/{collection-detail-Wj5M0Fmc.js → collection-detail-BvZ2FxAF.js} +1 -1
- package/dist/client/assets/{collection-search-DozvRnxE.js → collection-search-D8jNZ0l9.js} +1 -1
- package/dist/client/assets/{collection-tab-BRIJmTl-.js → collection-tab-B0hNNeOL.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CTuXfFv4.js → collection-table-wrapper-zEhV7puK.js} +1 -1
- package/dist/client/assets/{connect-DKTGUww4.js → connect-D9F_6t_w.js} +1 -1
- package/dist/client/assets/{connection-card-Bp0BNZom.js → connection-card-HnwRtp9D.js} +1 -1
- package/dist/client/assets/{connection-detail-DdEzYohs.js → connection-detail-C1dhrN6i.js} +1 -1
- package/dist/client/assets/{connections-C2ef7EGE.js → connections-L1WV1euw.js} +1 -1
- package/dist/client/assets/{constants-nQTTOIWL.js → constants-DrPL4Ica.js} +1 -1
- package/dist/client/assets/constants-DxdIATjw.js +1 -0
- package/dist/client/assets/{create-organization-dialog-CgJo2N7J.js → create-organization-dialog-DKBMD-HX.js} +1 -1
- package/dist/client/assets/{dialog-BPGYkE6E.js → dialog-DmTkIFW7.js} +1 -1
- package/dist/client/assets/{dropdown-menu-w3xNt286.js → dropdown-menu-BWsPebfz.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-DB7JIoTi.js → dynamic-plugin-layout-CI8aDTVb.js} +1 -1
- package/dist/client/assets/{empty-state-DI837doR.js → empty-state-Coadi_3P.js} +1 -1
- package/dist/client/assets/{empty-state-Cuxzpiqy.js → empty-state-DbsuWKK0.js} +1 -1
- package/dist/client/assets/{env-vars-editor-dEtMntyA.js → env-vars-editor-C2L8ARxi.js} +1 -1
- package/dist/client/assets/{error-boundary-UVoBd-EX.js → error-boundary-_mh2gjIO.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BkwH9UE5.js → extract-connection-data-BZSHdzkE.js} +1 -1
- package/dist/client/assets/{file-browser-DBtEgqmA.js → file-browser-BFQXY1mW.js} +2 -2
- package/dist/client/assets/{form-CFGJ-U5C.js → form-593Cxi68.js} +1 -1
- package/dist/client/assets/{grid-view-BNbopqbx.js → grid-view-cW_ENPFB.js} +1 -1
- package/dist/client/assets/{home-DzPPiX6r.js → home-BRGNVCSs.js} +1 -1
- package/dist/client/assets/{index-DrbTAGPY.js → index-BbUPxJrs.js} +1 -1
- package/dist/client/assets/{index-DVqIQLTS.js → index-Bbl4-DhO.js} +2 -2
- package/dist/client/assets/{index-Cr1-k0ke.js → index-CmLozgyx.js} +1 -1
- package/dist/client/assets/{index-BxQtX61C.js → index-D5N-kvbB.js} +1 -1
- package/dist/client/assets/{index-CERcQBYB.js → index-DjtsCmxf.js} +1 -1
- package/dist/client/assets/{index-Cw0Cq7G5.js → index-Dp2qh4TE.js} +1 -1
- package/dist/client/assets/{index-CRFYi63w.js → index-DwOSjyth.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-qdoAkrLg.js → infiniteQueryObserver-Zs4TvAjm.js} +1 -1
- package/dist/client/assets/{input-D53urYud.js → input-Cl_krHCL.js} +1 -1
- package/dist/client/assets/{layout-CvATyvqE.js → layout-B0xqCu-J.js} +1 -1
- package/dist/client/assets/{localstorage-keys-Dt0DQ7_M.js → localstorage-keys-BKdqO3Zg.js} +1 -1
- package/dist/client/assets/{login-C_lPzYbi.js → login-D8dlDv1A.js} +1 -1
- package/dist/client/assets/{mcp-oauth-ALBEJIVW.js → mcp-oauth-BLzAVK4c.js} +1 -1
- package/dist/client/assets/{mcp-server-card-BSDiwyMq.js → mcp-server-card-MNr7-b8v.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-hoJFp--l.js → mcp-server-detail-DYWTGROw.js} +2 -2
- package/dist/client/assets/{members-DhIxxmb-.js → members-FUZZrOa9.js} +1 -1
- package/dist/client/assets/{monaco-editor-Dv5Uv_CH.js → monaco-editor-Bm_OACu4.js} +1 -1
- package/dist/client/assets/{monitoring-CesgjcG6.js → monitoring-DAwL7vzU.js} +1 -1
- package/dist/client/assets/{oauth-callback-D881LTdt.js → oauth-callback-Dhxgjcjs.js} +1 -1
- package/dist/client/assets/{page-Bz36h7wn.js → page-761CuZZb.js} +1 -1
- package/dist/client/assets/{page-BINds3__.js → page-Deq5Bepp.js} +1 -1
- package/dist/client/assets/{pin-to-sidebar-button-VWxGEpa7.js → pin-to-sidebar-button-B8jKeHcQ.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BKQ3hXbm.js → plugin-empty-state-DN80mbK_.js} +1 -1
- package/dist/client/assets/{plugin-header-D2pQH9wJ.js → plugin-header-CQvVQM8S.js} +1 -1
- package/dist/client/assets/{plugins-BaoheFvZ.js → plugins-s84yZD53.js} +1 -1
- package/dist/client/assets/{popover-C9gpO_P1.js → popover-LqMcnJDX.js} +1 -1
- package/dist/client/assets/{registry-utils-COHLTguy.js → registry-utils-Bynyn62T.js} +1 -1
- package/dist/client/assets/{resizable-Dl3VUWr8.js → resizable-D-jJIQY5.js} +1 -1
- package/dist/client/assets/{resource-tabs-Ddi84XBD.js → resource-tabs-DytP3F3-.js} +1 -1
- package/dist/client/assets/{select-DsmrYLOe.js → select-IQWml7nC.js} +1 -1
- package/dist/client/assets/{settings-Z2r51vE-.js → settings-C3ws7XcV.js} +1 -1
- package/dist/client/assets/shell-layout-Dq7R-ZeI.js +12 -0
- package/dist/client/assets/{spinner-CaiollDD.js → spinner-C4BWkScj.js} +1 -1
- package/dist/client/assets/{store-invite-E7IkGyCx.js → store-invite-BJN-rUHK.js} +1 -1
- package/dist/client/assets/{switch-BRyOsD9X.js → switch-DhOK3fA2.js} +1 -1
- package/dist/client/assets/{table-By59ASmK.js → table-4IWCwAaE.js} +1 -1
- package/dist/client/assets/{textarea-BB8VII1W.js → textarea-D8tpYW31.js} +1 -1
- package/dist/client/assets/{tools-list-DURWgp8a.js → tools-list-CspifwD8.js} +1 -1
- package/dist/client/assets/{typewriter-title-BTENJbqy.js → typewriter-title-D9hbsL2y.js} +1 -1
- package/dist/client/assets/{use-binding-BKAkfTQP.js → use-binding-DIcfXiT9.js} +1 -1
- package/dist/client/assets/{use-collections-CidxL5e8.js → use-collections-CSaPMdJP.js} +1 -1
- package/dist/client/assets/{use-connection-nBbiimhv.js → use-connection-B_VLq56Y.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CPQ3EWAe.js → use-create-virtual-mcp-D7gmSMxi.js} +1 -1
- package/dist/client/assets/{use-deco-chat-open-CxrySluI.js → use-deco-chat-open-fC7t8o11.js} +1 -1
- package/dist/client/assets/{use-list-state-DDhTHJ9V.js → use-list-state-0RqeCkxi.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-0zuoUwAA.js → use-mcp-prompts-BFuZEiT7.js} +1 -1
- package/dist/client/assets/{use-members-CVCClaOw.js → use-members-BBIVybey.js} +1 -1
- package/dist/client/assets/{use-mobile-D3kiHSC9.js → use-mobile-BxQtMwo5.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Bnh92zjq.js → use-organization-settings--n0ZOb9s.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BzFn2znu.js → use-virtual-mcp-DLD76sn-.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CQV7HjuH.js +1 -0
- package/dist/client/assets/{useMutation-DYyKBkRY.js → useMutation-Dmj4iizp.js} +1 -1
- package/dist/client/assets/useQuery-DVQ_JpN1.js +1 -0
- package/dist/client/assets/{view-mode-toggle-C2aKUr7i.js → view-mode-toggle-D0CQMdAY.js} +1 -1
- package/dist/client/assets/{workflow-DrGi1tqo.js → workflow-FY6mjZ90.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +82 -82
- package/dist/server/migrate.js +169 -169
- package/dist/server/server.js +62 -62
- package/package.json +1 -1
- package/dist/client/assets/constants-DuCds5dq.js +0 -1
- package/dist/client/assets/shell-layout-LyCgzjUJ.js +0 -12
- package/dist/client/assets/useInfiniteQuery-Cg3dUfja.js +0 -1
- package/dist/client/assets/useQuery-CC03be4X.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as se,j as t,r as oe,u as re,l as ne}from"./index-
|
|
1
|
+
import{c as se,j as t,r as oe,u as re,l as ne}from"./index-Bbl4-DhO.js";import{C as ie,a as ae}from"./collection-table-wrapper-zEhV7puK.js";import{C as le}from"./collection-search-D8jNZ0l9.js";import{P as j}from"./index-D5N-kvbB.js";import{B as ce,a as de,b as me,c as ge}from"./breadcrumb-IZno0prj.js";import{C as ue}from"./connection-card-HnwRtp9D.js";import{E as J,I as pe}from"./empty-state-DbsuWKK0.js";import{E as he}from"./error-boundary-_mh2gjIO.js";import{u as fe,s as U}from"./use-list-state-0RqeCkxi.js";import{u as xe}from"./use-create-virtual-mcp-D7gmSMxi.js";import{i as je}from"./constants-DrPL4Ica.js";import{b as Ce,a as ye}from"./use-virtual-mcp-DLD76sn-.js";import{c as we,b as Ne,d as be,A as De,e as Se,g as ve,a as ke,f as Ae}from"./alert-dialog-CHkOTGol.js";import{B as Pe}from"./badge-0btvjZy9.js";import{B as Q}from"./button-D4S1kDGV.js";import{D as X,a as Y,b as Z,c as O}from"./dropdown-menu-BWsPebfz.js";import{i as ee}from"./DotsVertical-O5UGr--g.js";import{i as _e}from"./Loading01-CR1SBu2C.js";import{s as te}from"./Trash01-CrpuFo4N.js";import{t as C}from"./Users03-WPwWJkxW.js";import"./ArrowUp-DIH4YIj4.js";import"./Check-DEmp3zPa.js";import"./Grid01-DkopJaqC.js";import"./List-WphprgYo.js";import"./view-mode-toggle-D0CQMdAY.js";import"./table-4IWCwAaE.js";import"./SearchMd-BfeHnYp2.js";import"./input-Cl_krHCL.js";import"./ChevronRight-CSlFIXoC.js";import"./card-DHV-JrYd.js";import"./use-mobile-BxQtMwo5.js";import"./use-collections-CSaPMdJP.js";import"./useMutation-Dmj4iizp.js";import"./useQuery-DVQ_JpN1.js";function ze(e,r){switch(r.type){case"delete":return{mode:"deleting",virtualMcp:r.virtualMcp};case"close":return{mode:"idle"}}}function Ie(){const e=se.c(65),{org:r}=re(),i=ne();let y;e[0]!==r.slug?(y={namespace:r.slug,resource:"agents"},e[0]=r.slug,e[1]=y):y=e[1];const s=fe(y),x=Ce(s);let w;e[2]===Symbol.for("react.memo_cache_sentinel")?(w={navigateOnCreate:!0},e[2]=w):w=e[2];const{createVirtualMCP:R,isCreating:N}=xe(w),T=ye();let b;e[3]===Symbol.for("react.memo_cache_sentinel")?(b={mode:"idle"},e[3]=b):b=e[3];const[n,D]=oe.useReducer(ze,b);let S;e[4]!==T||e[5]!==n.mode||e[6]!==n.virtualMcp?(S=async()=>{if(n.mode!=="deleting")return;const o=n.virtualMcp.id;if(D({type:"close"}),!(!o||je(o)))try{await T.delete.mutateAsync(o)}catch{}},e[4]=T,e[5]=n.mode,e[6]=n.virtualMcp,e[7]=S):S=e[7];const H=S;let v,k,A,P,_;e[8]===Symbol.for("react.memo_cache_sentinel")?(v={id:"icon",header:"",render:Te,cellClassName:"w-16 shrink-0",wrap:!0},k={id:"title",header:"Name",render:Re,cellClassName:"w-48 min-w-0 shrink-0",sortable:!0},A={id:"description",header:"Description",render:Oe,cellClassName:"flex-1 min-w-0",wrap:!0,sortable:!0},P={id:"connections",header:"Connections",render:Ve,cellClassName:"w-24 shrink-0"},_={id:"status",header:"Status",render:Ee,cellClassName:"w-24 shrink-0",sortable:!0},e[8]=v,e[9]=k,e[10]=A,e[11]=P,e[12]=_):(v=e[8],k=e[9],A=e[10],P=e[11],_=e[12]);let z;e[13]!==i||e[14]!==r.slug?(z=[v,k,A,P,_,{id:"actions",header:"",render:o=>t.jsxs(X,{children:[t.jsx(Y,{asChild:!0,children:t.jsx(Q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:Ke,children:t.jsx(ee,{size:20})})}),t.jsxs(Z,{align:"end",onClick:Be,children:[t.jsxs(O,{onClick:a=>{a.stopPropagation(),i({to:"/$org/agents/$agentId",params:{org:r.slug,agentId:o.id}})},children:[t.jsx(U,{size:16}),"Open"]}),t.jsxs(O,{variant:"destructive",onClick:a=>{a.stopPropagation(),D({type:"delete",virtualMcp:o})},children:[t.jsx(te,{size:16}),"Delete"]})]})]}),cellClassName:"w-12 shrink-0"}],e[13]=i,e[14]=r.slug,e[15]=z):z=e[15];const L=z,F=N?"Creating...":"Create Agent";let I;e[16]!==R||e[17]!==N||e[18]!==F?(I=t.jsx(Q,{onClick:R,size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",disabled:N,children:F}),e[16]=R,e[17]=N,e[18]=F,e[19]=I):I=e[19];const W=I,q=n.mode==="deleting";let M;e[20]===Symbol.for("react.memo_cache_sentinel")?(M=o=>!o&&D({type:"close"}),e[20]=M):M=e[20];let $;e[21]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(we,{children:"Delete Agent?"}),e[21]=$):$=e[21];const G=n.mode==="deleting"&&n.virtualMcp.title;let l;e[22]!==G?(l=t.jsxs(Ne,{children:[$,t.jsxs(be,{children:["This action cannot be undone. This will permanently delete"," ",t.jsx("span",{className:"font-medium text-foreground",children:G}),"."]})]}),e[22]=G,e[23]=l):l=e[23];let B;e[24]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx(De,{children:"Cancel"}),e[24]=B):B=e[24];let c;e[25]!==H?(c=t.jsxs(Se,{children:[B,t.jsx(ve,{onClick:H,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),e[25]=H,e[26]=c):c=e[26];let d;e[27]!==l||e[28]!==c?(d=t.jsxs(ke,{children:[l,c]}),e[27]=l,e[28]=c,e[29]=d):d=e[29];let m;e[30]!==q||e[31]!==d?(m=t.jsx(Ae,{open:q,onOpenChange:M,children:d}),e[30]=q,e[31]=d,e[32]=m):m=e[32];let K;e[33]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsx(j.Header.Left,{children:t.jsx(ce,{children:t.jsx(de,{children:t.jsx(me,{children:t.jsx(ge,{children:"Agents"})})})})}),e[33]=K):K=e[33];let E;e[34]===Symbol.for("react.memo_cache_sentinel")?(E=[{id:"title",label:"Name"},{id:"description",label:"Description"},{id:"status",label:"Status"}],e[34]=E):E=e[34];let g;e[35]!==s.handleSort||e[36]!==s.setViewMode||e[37]!==s.sortDirection||e[38]!==s.sortKey||e[39]!==s.viewMode?(g=t.jsx(ie,{viewMode:s.viewMode,onViewModeChange:s.setViewMode,sortKey:s.sortKey,sortDirection:s.sortDirection,onSort:s.handleSort,sortOptions:E}),e[35]=s.handleSort,e[36]=s.setViewMode,e[37]=s.sortDirection,e[38]=s.sortKey,e[39]=s.viewMode,e[40]=g):g=e[40];let u;e[41]!==W||e[42]!==g?(u=t.jsxs(j.Header,{children:[K,t.jsxs(j.Header.Right,{children:[g,W]})]}),e[41]=W,e[42]=g,e[43]=u):u=e[43];let p;e[44]!==s?(p=o=>{o.key==="Escape"&&(s.setSearch(""),o.target.blur())},e[44]=s,e[45]=p):p=e[45];let h;e[46]!==s.search||e[47]!==s.setSearch||e[48]!==p?(h=t.jsx(le,{value:s.search,onChange:s.setSearch,placeholder:"Search for an agent...",onKeyDown:p}),e[46]=s.search,e[47]=s.setSearch,e[48]=p,e[49]=h):h=e[49];let f;e[50]!==L||e[51]!==s.handleSort||e[52]!==s.search||e[53]!==s.sortDirection||e[54]!==s.sortKey||e[55]!==s.viewMode||e[56]!==i||e[57]!==r.slug||e[58]!==x?(f=t.jsx(j.Content,{children:s.viewMode==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:x.length===0?t.jsx(J,{image:t.jsx(C,{size:36,className:"text-muted-foreground"}),title:s.search?"No agents found":"No agents yet",description:s.search?`No agents match "${s.search}"`:"Create an agent to aggregate tools from multiple Connections."}):t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:x.map(o=>t.jsx(ue,{connection:{id:o.id??"",title:o.title,description:o.description,icon:o.icon,status:o.status},fallbackIcon:t.jsx(C,{}),onClick:()=>i({to:"/$org/agents/$agentId",params:{org:r.slug,agentId:o.id}}),footer:t.jsx("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:t.jsxs("span",{children:[o.connections.length," connection",o.connections.length!==1?"s":""]})}),headerActions:t.jsxs(X,{children:[t.jsx(Y,{asChild:!0,children:t.jsx(Q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:$e,children:t.jsx(ee,{size:20})})}),t.jsxs(Z,{align:"end",onClick:Me,children:[t.jsxs(O,{onClick:a=>{a.stopPropagation(),i({to:"/$org/agents/$agentId",params:{org:r.slug,agentId:o.id}})},children:[t.jsx(U,{size:16}),"Open"]}),t.jsxs(O,{variant:"destructive",onClick:a=>{a.stopPropagation(),D({type:"delete",virtualMcp:o})},children:[t.jsx(te,{size:16}),"Delete"]})]})]})},o.id??"default"))})}):t.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:t.jsx(ae,{columns:L,data:x,isLoading:!1,sortKey:s.sortKey,sortDirection:s.sortDirection,onSort:s.handleSort,onRowClick:o=>i({to:"/$org/agents/$agentId",params:{org:r.slug,agentId:o.id}}),emptyState:s.search?t.jsx(J,{image:t.jsx(C,{size:36,className:"text-muted-foreground"}),title:"No agents found",description:`No agents match "${s.search}"`}):t.jsx(J,{image:t.jsx(C,{size:36,className:"text-muted-foreground"}),title:"No agents yet",description:"Create an agent to aggregate tools from multiple Connections."})})})}),e[50]=L,e[51]=s.handleSort,e[52]=s.search,e[53]=s.sortDirection,e[54]=s.sortKey,e[55]=s.viewMode,e[56]=i,e[57]=r.slug,e[58]=x,e[59]=f):f=e[59];let V;return e[60]!==m||e[61]!==u||e[62]!==h||e[63]!==f?(V=t.jsxs(j,{children:[m,u,h,f]}),e[60]=m,e[61]=u,e[62]=h,e[63]=f,e[64]=V):V=e[64],V}function Me(e){return e.stopPropagation()}function $e(e){return e.stopPropagation()}function Be(e){return e.stopPropagation()}function Ke(e){return e.stopPropagation()}function Ee(e){return t.jsx(Pe,{variant:e.status==="active"?"default":"outline",children:e.status})}function Ve(e){return t.jsx("span",{className:"text-sm text-muted-foreground",children:e.connections.length})}function Oe(e){return t.jsx("span",{className:"text-sm text-foreground line-clamp-2",children:e.description||"—"})}function Re(e){return t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:e.title})}function Te(e){return t.jsx(pe,{icon:e.icon,name:e.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:t.jsx(C,{size:16})})}function Nt(){const e=se.c(1);let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(he,{children:t.jsx(oe.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(_e,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Ie,{})})}),e[0]=r):r=e[0],r}export{Nt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as i,al as m,j as r,aJ as T,z as w,an as O,G as A,R as M,T as I,D as z,B as F,aK as D,aL as L,aq as G,F as k,E as q,c as n}from"./index-
|
|
1
|
+
import{r as i,al as m,j as r,aJ as T,z as w,an as O,G as A,R as M,T as I,D as z,B as F,aK as D,aL as L,aq as G,F as k,E as q,c as n}from"./index-Bbl4-DhO.js";import{c as p,b as v}from"./button-D4S1kDGV.js";var x="AlertDialog",[B]=G(x,[D]),d=D(),N=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(M,{...a,...t,modal:!0})};N.displayName=x;var H="AlertDialogTrigger",V=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(k,{...o,...a,ref:e})});V.displayName=H;var W="AlertDialogPortal",y=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(F,{...a,...t})};y.displayName=W;var Y="AlertDialogOverlay",_=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(q,{...o,...a,ref:e})});_.displayName=Y;var f="AlertDialogContent",[J,K]=B(f),Q=L("AlertDialogContent"),j=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,children:a,...o}=l,s=d(t),c=i.useRef(null),P=m(e,c),u=i.useRef(null);return r.jsx(T,{contentName:f,titleName:b,docsSlug:"alert-dialog",children:r.jsx(J,{scope:t,cancelRef:u,children:r.jsxs(w,{role:"alertdialog",...s,...o,ref:P,onOpenAutoFocus:O(o.onOpenAutoFocus,g=>{g.preventDefault(),u.current?.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[r.jsx(Q,{children:a}),r.jsx(X,{contentRef:c})]})})})});j.displayName=f;var b="AlertDialogTitle",h=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(I,{...o,...a,ref:e})});h.displayName=b;var E="AlertDialogDescription",R=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(z,{...o,...a,ref:e})});R.displayName=E;var U="AlertDialogAction",C=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(A,{...o,...a,ref:e})});C.displayName=U;var $="AlertDialogCancel",S=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,{cancelRef:o}=K($,t),s=d(t),c=m(e,o);return r.jsx(A,{...s,...a,ref:c})});S.displayName=$;var X=({contentRef:l})=>{const e=`\`${f}\` requires a description for the component to be accessible for screen reader users.
|
|
2
2
|
|
|
3
3
|
You can add a description to the \`${f}\` by passing a \`${E}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,a as m,j as n,A as o}from"./index-
|
|
1
|
+
import{c as r,a as m,j as n,A as o}from"./index-Bbl4-DhO.js";function i(){const e=r.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/auth/$pathname"},e[0]=t):t=e[0];const{pathname:s}=m(t);let a;return e[1]!==s?(a=n.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:n.jsx(o,{pathname:s})}),e[1]=s,e[2]=a):a=e[2],a}export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as I,c as j,j as i,y as S,aG as $,aH as L,aI as M}from"./index-
|
|
1
|
+
import{r as I,c as j,j as i,y as S,aG as $,aH as L,aI as M}from"./index-Bbl4-DhO.js";import{c as f}from"./button-D4S1kDGV.js";const V=({size:a=24,color:e="currentColor",...s})=>I.createElement("svg",{viewBox:"0 0 24 24",width:a,height:a,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},I.createElement("path",{d:"M20 21c0-1.396 0-2.093-.172-2.661a4 4 0 0 0-2.667-2.667c-.568-.172-1.265-.172-2.661-.172h-5c-1.396 0-2.093 0-2.661.172a4 4 0 0 0-2.667 2.667C4 18.907 4 19.604 4 21M16.5 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"}));V.displayName="User01";function O(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=f("relative flex size-8 shrink-0 overflow-hidden rounded-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx(M,{"data-slot":"avatar",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}function T(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=f("aspect-square size-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx($,{"data-slot":"avatar-image",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}function W(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=f("bg-muted flex size-full items-center justify-center rounded-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx(L,{"data-slot":"avatar-fallback",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}const R=["drop-shadow-lg bg-gradient-to-br from-red-100 to-red-300 text-red-800 shadow-lg shadow-red-300/40 ring-1 ring-red-300/30","drop-shadow-lg bg-gradient-to-br from-lime-100 to-lime-300 text-lime-800 shadow-lg shadow-lime-300/40 ring-1 ring-lime-300/30","drop-shadow-lg bg-gradient-to-br from-emerald-100 to-emerald-300 text-emerald-800 shadow-lg shadow-emerald-300/40 ring-1 ring-emerald-300/30","drop-shadow-lg bg-gradient-to-br from-orange-100 to-orange-300 text-orange-800 shadow-lg shadow-orange-300/40 ring-1 ring-orange-300/30","drop-shadow-lg bg-gradient-to-br from-amber-100 to-amber-300 text-amber-800 shadow-lg shadow-amber-300/40 ring-1 ring-amber-300/30","drop-shadow-lg bg-gradient-to-br from-yellow-100 to-yellow-300 text-yellow-800 shadow-lg shadow-yellow-300/40 ring-1 ring-yellow-300/30","drop-shadow-lg bg-gradient-to-br from-green-100 to-green-300 text-green-800 shadow-lg shadow-green-300/40 ring-1 ring-green-300/30","drop-shadow-lg bg-gradient-to-br from-teal-100 to-teal-300 text-teal-800 shadow-lg shadow-teal-300/40 ring-1 ring-teal-300/30","drop-shadow-lg bg-gradient-to-br from-cyan-100 to-cyan-300 text-cyan-800 shadow-lg shadow-cyan-300/40 ring-1 ring-cyan-300/30","drop-shadow-lg bg-gradient-to-br from-sky-100 to-sky-300 text-sky-800 shadow-lg shadow-sky-300/40 ring-1 ring-sky-300/30","drop-shadow-lg bg-gradient-to-br from-blue-100 to-blue-300 text-blue-800 shadow-lg shadow-blue-300/40 ring-1 ring-blue-300/30","drop-shadow-lg bg-gradient-to-br from-indigo-100 to-indigo-300 text-indigo-800 shadow-lg shadow-indigo-300/40 ring-1 ring-indigo-300/30","drop-shadow-lg bg-gradient-to-br from-violet-100 to-violet-300 text-violet-800 shadow-lg shadow-violet-300/40 ring-1 ring-violet-300/30","drop-shadow-lg bg-gradient-to-br from-purple-100 to-purple-300 text-purple-800 shadow-lg shadow-purple-300/40 ring-1 ring-purple-300/30","drop-shadow-lg bg-gradient-to-br from-fuchsia-100 to-fuchsia-300 text-fuchsia-800 shadow-lg shadow-fuchsia-300/40 ring-1 ring-fuchsia-300/30","drop-shadow-lg bg-gradient-to-br from-pink-100 to-pink-300 text-pink-800 shadow-lg shadow-pink-300/40 ring-1 ring-pink-300/30","drop-shadow-lg bg-gradient-to-br from-rose-100 to-rose-300 text-rose-800 shadow-lg shadow-rose-300/40 ring-1 ring-rose-300/30"],_="drop-shadow-lg text-muted-foreground bg-muted shadow-lg";function B(a){let e=0;for(let t=0;t<a.length;t++)e=a.charCodeAt(t)+((e<<5)-e);const s=Math.abs(e)%R.length;return R[s]}const U=S("border border-border",{variants:{shape:{circle:"rounded-full",square:""},size:{"3xs":"w-3 h-3 text-xs font-semibold","2xs":"w-4 h-4 text-xs font-semibold",xs:"w-6 h-6 text-sm font-semibold",sm:"w-8 h-8 text-lg font-semibold",base:"w-10 h-10 text-2xl font-semibold",lg:"w-12 h-12 text-3xl font-semibold",xl:"w-16 h-16 text-4xl font-semibold","2xl":"w-20 h-20 text-5xl font-semibold","3xl":"w-32 h-32 text-7xl font-semibold"}},compoundVariants:[{shape:"square",size:"xs",class:"rounded-lg"},{shape:"square",size:"sm",class:"rounded-xl"},{shape:"square",size:"base",class:"rounded-xl"},{shape:"square",size:"lg",class:"rounded-xl"},{shape:"square",size:"xl",class:"rounded-2xl"},{shape:"square",size:"2xl",class:"rounded-3xl"},{shape:"square",size:"3xl",class:"rounded-[40px]"}],defaultVariants:{shape:"square",size:"base"}}),D=S("",{variants:{objectFit:{contain:"object-contain",cover:"object-cover"}},defaultVariants:{objectFit:"cover"}}),G=a=>{const e={"3xs":8,"2xs":8,xs:12,sm:16,base:24,lg:28,xl:36,"2xl":48,"3xl":80};return e[a]||e.base};function H(a){const e=j.c(35);let s,t,o,r,n,d,g,l;e[0]!==a?({url:l,fallback:t,shape:r,size:n,objectFit:d,className:s,muted:g,...o}=a,e[0]=a,e[1]=s,e[2]=t,e[3]=o,e[4]=r,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],r=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=r===void 0?"square":r,h=n===void 0?"base":n,u=d===void 0?"cover":d,k=g===void 0?!1:g,[m,x]=I.useState(!1);let F;e:{if(typeof t=="string"){let c;e[9]!==t?(c=t.trim().slice(0,2).toUpperCase(),e[9]=t,e[10]=c):c=e[10],F=c;break e}F=t}const C=F;let y;e:{if(k){y=_;break e}if(typeof t=="string"){let c;e[11]!==t?(c=B(t),e[11]=t,e[12]=c):c=e[12],y=c;break e}y=R[0]}const z=y;let N;e[13]!==l?(N=l?.startsWith("icon://"),e[13]=l,e[14]=N):N=e[14];const p=N;let q;e[15]!==p||e[16]!==l?(q=p?l?.replace("icon://",""):void 0,e[15]=p,e[16]=l,e[17]=q):q=e[17];const E=q;let w;e[18]!==s||e[19]!==b||e[20]!==h?(w=f(U({shape:b,size:h}),s),e[18]=s,e[19]=b,e[20]=h,e[21]=w):w=e[21];let v;e[22]!==z||e[23]!==C||e[24]!==E||e[25]!==m||e[26]!==p||e[27]!==u||e[28]!==h||e[29]!==l?(v=p&&E?i.jsx("div",{className:f("flex items-center justify-center w-full h-full",z),children:i.jsx(V,{size:G(h)})}):i.jsxs(i.Fragment,{children:[l&&!m&&i.jsx(T,{src:l,loading:"lazy",alt:"Avatar",className:f(D({objectFit:u})),onError:()=>x(!0)}),(!l||m)&&i.jsx(W,{className:f(z,"rounded-none"),children:C})]}),e[22]=z,e[23]=C,e[24]=E,e[25]=m,e[26]=p,e[27]=u,e[28]=h,e[29]=l,e[30]=v):v=e[30];let A;return e[31]!==o||e[32]!==v||e[33]!==w?(A=i.jsx(O,{className:w,...o,children:v}),e[31]=o,e[32]=v,e[33]=w,e[34]=A):A=e[34],A}function Z(a){const e=j.c(18);let s,t,o,r,n,d,g,l;e[0]!==a?({shape:r,size:n,url:l,fallback:t,objectFit:d,className:s,muted:g,...o}=a,e[0]=a,e[1]=s,e[2]=t,e[3]=o,e[4]=r,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],r=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=r===void 0?"square":r,h=n===void 0?"base":n,u=d===void 0?"cover":d,k=g===void 0?!1:g,m=h??"base";let x;return e[9]!==s||e[10]!==t||e[11]!==k||e[12]!==u||e[13]!==o||e[14]!==b||e[15]!==m||e[16]!==l?(x=i.jsx(H,{shape:b,url:l,fallback:t,size:m,objectFit:u,className:s,muted:k,...o}),e[9]=s,e[10]=t,e[11]=k,e[12]=u,e[13]=o,e[14]=b,e[15]=m,e[16]=l,e[17]=x):x=e[17],x}Z.Skeleton=function({shape:e="square",size:s="base",className:t}){return i.jsx("div",{className:f(U({shape:e,size:s}),"bg-muted animate-pulse",t)})};export{Z as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,j as u,H as l,y as v}from"./index-
|
|
1
|
+
import{c as d,j as u,H as l,y as v}from"./index-Bbl4-DhO.js";import{c as g}from"./button-D4S1kDGV.js";const f=v("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",success:"border-transparent bg-success text-success-foreground [a&]:hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function m(o){const e=d.c(12);let r,s,a,t;e[0]!==o?({className:r,variant:t,asChild:a,...s}=o,e[0]=o,e[1]=r,e[2]=s,e[3]=a,e[4]=t):(r=e[1],s=e[2],a=e[3],t=e[4]);const c=(a===void 0?!1:a)?l:"span";let i;e[5]!==r||e[6]!==t?(i=g(f({variant:t}),r),e[5]=r,e[6]=t,e[7]=i):i=e[7];let n;return e[8]!==c||e[9]!==s||e[10]!==i?(n=u.jsx(c,{"data-slot":"badge",className:i,...s}),e[8]=c,e[9]=s,e[10]=i,e[11]=n):n=e[11],n}export{m as B};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./index-
|
|
1
|
+
import"./index-Bbl4-DhO.js";function a(o){return{isImplementedBy:c=>{for(const e of o){const r=typeof e.name=="string"?new RegExp(`^${e.name}$`):e.name,t=c.find(i=>r.test(i.name));if(!(!t&&e.opt)&&!t)return!1}return!0}}}function s(o,c){const e=o.tools;if(!e||e.length===0)return!1;const r=e.map(n=>({name:n.name,inputSchema:n.inputSchema})),t=c.map(n=>({name:n.name,inputSchema:n.inputSchema,opt:n.opt}));return a(t).isImplementedBy(r)}export{a,s as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,j as n,H as f}from"./index-
|
|
1
|
+
import{c,j as n,H as f}from"./index-Bbl4-DhO.js";import{i as u}from"./ChevronRight-CSlFIXoC.js";import{c as m}from"./button-D4S1kDGV.js";function x(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("min-w-0 overflow-hidden",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=n.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function N(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=n.jsx("ol",{"data-slot":"breadcrumb-list",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function g(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("inline-flex items-center gap-1.5 min-w-0",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=n.jsx("li",{"data-slot":"breadcrumb-item",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function j(r){const e=c.c(10);let a,t,s;e[0]!==r?({asChild:a,className:t,...s}=r,e[0]=r,e[1]=a,e[2]=t,e[3]=s):(a=e[1],t=e[2],s=e[3]);const l=a?f:"a";let i;e[4]!==t?(i=m("hover:text-foreground transition-colors truncate",t),e[4]=t,e[5]=i):i=e[5];let o;return e[6]!==l||e[7]!==s||e[8]!==i?(o=n.jsx(l,{"data-slot":"breadcrumb-link",className:i,...s}),e[6]=l,e[7]=s,e[8]=i,e[9]=o):o=e[9],o}function h(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("text-foreground font-normal truncate",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=n.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function B(r){const e=c.c(12);let a,t,s;e[0]!==r?({children:a,className:t,...s}=r,e[0]=r,e[1]=a,e[2]=t,e[3]=s):(a=e[1],t=e[2],s=e[3]);let l;e[4]!==t?(l=m("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",t),e[4]=t,e[5]=l):l=e[5];let i;e[6]!==a?(i=a??n.jsx(u,{}),e[6]=a,e[7]=i):i=e[7];let o;return e[8]!==s||e[9]!==l||e[10]!==i?(o=n.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:l,...s,children:i}),e[8]=s,e[9]=l,e[10]=i,e[11]=o):o=e[11],o}export{x as B,N as a,g as b,h as c,j as d,B as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aO as g,aP as u,c as l,j as v,H as b,y as p}from"./index-
|
|
1
|
+
import{aO as g,aP as u,c as l,j as v,H as b,y as p}from"./index-Bbl4-DhO.js";function x(...a){return g(u(a))}const f=p("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground",brand:"bg-brand-green-light text-brand-green-dark hover:bg-brand-green-light/90"},size:{default:"h-10 px-4 py-2 has-[>svg]:px-3",sm:"h-7 gap-1.5 px-3 has-[>svg]:px-2.5",xs:"h-6 gap-1 px-2 text-xs has-[>svg]:px-1.5",lg:"h-10 px-6 has-[>svg]:px-4",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}});function k(a){const e=l.c(14);let t,r,s,o,i;e[0]!==a?({className:t,variant:i,size:s,asChild:o,...r}=a,e[0]=a,e[1]=t,e[2]=r,e[3]=s,e[4]=o,e[5]=i):(t=e[1],r=e[2],s=e[3],o=e[4],i=e[5]);const c=(o===void 0?!1:o)?b:"button";let n;e[6]!==t||e[7]!==s||e[8]!==i?(n=x(f({variant:i,size:s,className:t})),e[6]=t,e[7]=s,e[8]=i,e[9]=n):n=e[9];let d;return e[10]!==c||e[11]!==r||e[12]!==n?(d=v.jsx(c,{"data-slot":"button",className:n,...r}),e[10]=c,e[11]=r,e[12]=n,e[13]=d):d=e[13],d}export{k as B,f as b,x as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,j as l}from"./index-
|
|
1
|
+
import{c,j as l}from"./index-Bbl4-DhO.js";import{c as n}from"./button-D4S1kDGV.js";function f(o){const e=c.c(8);let r,t;e[0]!==o?({className:r,...t}=o,e[0]=o,e[1]=r,e[2]=t):(r=e[1],t=e[2]);let s;e[3]!==r?(s=n("bg-card text-card-foreground hover:bg-accent/50 flex flex-col gap-6 rounded-xl border border-border/75",r),e[3]=r,e[4]=s):s=e[4];let a;return e[5]!==t||e[6]!==s?(a=l.jsx("div",{"data-slot":"card",className:s,...t}),e[5]=t,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=c.c(4);let r;e[0]!==o?({...r}=o,e[0]=o,e[1]=r):r=e[1];let t;return e[2]!==r?(t=l.jsx("div",{"data-slot":"card-content",...r}),e[2]=r,e[3]=t):t=e[3],t}export{f as C,p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,j as c,a5 as n,a6 as l}from"./index-
|
|
1
|
+
import{c as d,j as c,a5 as n,a6 as l}from"./index-Bbl4-DhO.js";import{i as m}from"./Check-DEmp3zPa.js";import{c as b}from"./button-D4S1kDGV.js";function f(o){const e=d.c(9);let r,a;e[0]!==o?({className:r,...a}=o,e[0]=o,e[1]=r,e[2]=a):(r=e[1],a=e[2]);let i;e[3]!==r?(i=b("peer border-foreground dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",r),e[3]=r,e[4]=i):i=e[4];let t;e[5]===Symbol.for("react.memo_cache_sentinel")?(t=c.jsx(l,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-primary-foreground transition-none",children:c.jsx(m,{className:"size-3.5"})}),e[5]=t):t=e[5];let s;return e[6]!==a||e[7]!==i?(s=c.jsx(n,{"data-slot":"checkbox",className:i,...a,children:t}),e[6]=a,e[7]=i,e[8]=s):s=e[8],s}export{f as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c}from"./index-
|
|
1
|
+
import{r as c}from"./index-Bbl4-DhO.js";const h=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),y=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,o)=>o?o.toUpperCase():r.toLowerCase()),i=t=>{const e=y(t);return e.charAt(0).toUpperCase()+e.slice(1)},l=(...t)=>t.filter((e,r,o)=>!!e&&e.trim()!==""&&o.indexOf(e)===r).join(" ").trim(),f=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};var k={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const w=c.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:s="",children:a,iconNode:p,...n},d)=>c.createElement("svg",{ref:d,...k,width:e,height:e,stroke:t,strokeWidth:o?Number(r)*24/Number(e):r,className:l("lucide",s),...!a&&!f(n)&&{"aria-hidden":"true"},...n},[...p.map(([m,C])=>c.createElement(m,C)),...Array.isArray(a)?a:[a]]));const u=(t,e)=>{const r=c.forwardRef(({className:o,...s},a)=>c.createElement(w,{ref:a,iconNode:e,className:l(`lucide-${h(i(t))}`,`lucide-${t}`,o),...s}));return r.displayName=i(t),r};const g=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],b=u("check",g);const x=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],L=u("circle-alert",x);export{L as C,b as a,u as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as S,bu as Ta,bv as Ma,I as Aa,bd as V,s as h,bw as Oe,bx as kt,bh as Ra,bi as ja,bc as Oa,be as U,b8 as Ie,n as Ne,o as R,bf as I,bg as se,by as ka,bz as j,_ as Pa,bp as Da,c as D,u as Ce,a as Pt,K as Dt,a1 as $a,v as Be,j as d,g as La,am as Za,ak as Ke,at as Fa,an as Ua,aq as za,av as Ba,al as Va,b1 as qa}from"./index-
|
|
1
|
+
import{r as S,bu as Ta,bv as Ma,I as Aa,bd as V,s as h,bw as Oe,bx as kt,bh as Ra,bi as ja,bc as Oa,be as U,b8 as Ie,n as Ne,o as R,bf as I,bg as se,by as ka,bz as j,_ as Pa,bp as Da,c as D,u as Ce,a as Pt,K as Dt,a1 as $a,v as Be,j as d,g as La,am as Za,ak as Ke,at as Fa,an as Ua,aq as za,av as Ba,al as Va,b1 as qa}from"./index-Bbl4-DhO.js";import{u as Pe,a as et,d as Wa}from"./constants-DrPL4Ica.js";import{b as Ja}from"./use-virtual-mcp-DLD76sn-.js";import{b as $t}from"./use-collections-CSaPMdJP.js";import{b as Ha}from"./use-connection-B_VLq56Y.js";import{a as Ya}from"./use-binding-DIcfXiT9.js";import{u as Ga}from"./Code01-Kmb97rSu.js";import{u as Ae,L as Ve}from"./localstorage-keys-BKdqO3Zg.js";import{c as tt,B as Qa}from"./button-D4S1kDGV.js";import{I as Xa}from"./input-Cl_krHCL.js";import{P as Ka,a as es,b as ts}from"./popover-LqMcnJDX.js";import{S as as,a as ss,b as rs,c as os,d as ns}from"./select-IQWml7nC.js";import{t as dt}from"./ChevronDown-zqPsa4kD.js";import{i as is}from"./File06-DsMnzy7g.js";import{c as ls}from"./Grid01-DkopJaqC.js";import{a as cs}from"./Image01-CrPuVZdU.js";import{i as Lt}from"./SearchMd-BfeHnYp2.js";var Ee;(function(t){t.assertEqual=r=>{};function e(r){}t.assertIs=e;function a(r){throw new Error}t.assertNever=a,t.arrayToEnum=r=>{const o={};for(const i of r)o[i]=i;return o},t.getValidEnumValues=r=>{const o=t.objectKeys(r).filter(n=>typeof r[r[n]]!="number"),i={};for(const n of o)i[n]=r[n];return t.objectValues(i)},t.objectValues=r=>t.objectKeys(r).map(function(o){return r[o]}),t.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const o=[];for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&o.push(i);return o},t.find=(r,o)=>{for(const i of r)if(o(i))return i},t.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function s(r,o=" | "){return r.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}t.joinValues=s,t.jsonStringifyReplacer=(r,o)=>typeof o=="bigint"?o.toString():o})(Ee||(Ee={}));var pt;(function(t){t.mergeShapes=(e,a)=>({...e,...a})})(pt||(pt={}));Ee.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);Ee.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ke extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=e}format(e){const a=e||function(o){return o.message},s={_errors:[]},r=o=>{for(const i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(r);else if(i.code==="invalid_return_type")r(i.returnTypeError);else if(i.code==="invalid_arguments")r(i.argumentsError);else if(i.path.length===0)s._errors.push(a(i));else{let n=s,c=0;for(;c<i.path.length;){const l=i.path[c];c===i.path.length-1?(n[l]=n[l]||{_errors:[]},n[l]._errors.push(a(i))):n[l]=n[l]||{_errors:[]},n=n[l],c++}}};return r(this),s}static assert(e){if(!(e instanceof ke))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ee.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=a=>a.message){const a=Object.create(null),s=[];for(const r of this.issues)if(r.path.length>0){const o=r.path[0];a[o]=a[o]||[],a[o].push(e(r))}else s.push(e(r));return{formErrors:s,fieldErrors:a}}get formErrors(){return this.flatten()}}ke.create=t=>new ke(t);var mt;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(mt||(mt={}));var w;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(w||(w={}));const us=({size:t=24,color:e="currentColor",...a})=>S.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},S.createElement("path",{d:"M4 7h11m0 0-4 4m4-4-4-4M4 17h16m0 0-4 4m4-4-4-4"}));us.displayName="ArrowsRight";const Zt=({size:t=24,color:e="currentColor",...a})=>S.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},S.createElement("path",{d:"m7 15 5 5 5-5M7 9l5-5 5 5"}));Zt.displayName="ChevronSelectorVertical";const Ft=({size:t=24,color:e="currentColor",...a})=>S.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},S.createElement("path",{d:"M6 16a4 4 0 0 0 4 4h4a4 4 0 0 0 0-8h-4a4 4 0 0 1 0-8h4a4 4 0 0 1 4 4m-6-6v20"}));Ft.displayName="CurrencyDollar";const ds=({size:t=24,color:e="currentColor",...a})=>S.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},S.createElement("path",{d:"M10 17.659V20a2 2 0 1 0 4 0v-2.341M12 2v1m-9 9H2m3.5-6.5-.6-.6m13.6.6.6-.6M22 12h-1m-3 0a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"}));ds.displayName="Lightbulb02";const Ut=({size:t=24,color:e="currentColor",...a})=>S.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},S.createElement("path",{d:"m18 8 4 4m0 0-4 4m4-4H9m6-7.796A8.383 8.383 0 0 0 10.667 3C5.88 3 2 7.03 2 12s3.88 9 8.667 9A8.384 8.384 0 0 0 15 19.796"}));Ut.displayName="LogOut04";const zt=({size:t=24,color:e="currentColor",...a})=>S.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},S.createElement("path",{d:"m6.5 13 .784 1.569c.266.53.399.796.576 1.026a3 3 0 0 0 .545.545c.23.177.495.31 1.026.575L11 17.5l-1.569.785c-.53.265-.796.398-1.026.575a3 3 0 0 0-.545.545c-.177.23-.31.495-.576 1.026L6.5 22l-.784-1.569c-.266-.53-.399-.796-.576-1.026a3 3 0 0 0-.545-.545c-.23-.177-.495-.31-1.026-.575L2 17.5l1.569-.785c.53-.265.796-.398 1.026-.575a3 3 0 0 0 .545-.545c.177-.23.31-.495.576-1.026L6.5 13ZM15 2l1.179 3.064c.282.734.423 1.1.642 1.409a3 3 0 0 0 .706.706c.309.22.675.36 1.409.642L22 9l-3.064 1.179c-.734.282-1.1.423-1.409.642a3 3 0 0 0-.706.706c-.22.309-.36.675-.642 1.409L15 16l-1.179-3.064c-.282-.734-.423-1.1-.642-1.409a3 3 0 0 0-.706-.706c-.309-.22-.675-.36-1.409-.642L8 9l3.064-1.179c.734-.282 1.1-.423 1.409-.642a3 3 0 0 0 .706-.706c.22-.309.36-.675.642-1.409L15 2Z"}));zt.displayName="Stars01";var Bt="vercel.ai.error",ps=Symbol.for(Bt),ft,ht,X=class Vt extends(ht=Error,ft=ps,ht){constructor({name:e,message:a,cause:s}){super(a),this[ft]=!0,this.name=e,this.cause=s}static isInstance(e){return Vt.hasMarker(e,Bt)}static hasMarker(e,a){const s=Symbol.for(a);return e!=null&&typeof e=="object"&&s in e&&typeof e[s]=="boolean"&&e[s]===!0}};function qt(t){return t==null?"unknown error":typeof t=="string"?t:t instanceof Error?t.message:JSON.stringify(t)}var Wt="AI_InvalidArgumentError",Jt=`vercel.ai.error.${Wt}`,ms=Symbol.for(Jt),gt,vt,fs=class extends(vt=X,gt=ms,vt){constructor({message:t,cause:e,argument:a}){super({name:Wt,message:t,cause:e}),this[gt]=!0,this.argument=a}static isInstance(t){return X.hasMarker(t,Jt)}},Ht="AI_JSONParseError",Yt=`vercel.ai.error.${Ht}`,hs=Symbol.for(Yt),yt,bt,xt=class extends(bt=X,yt=hs,bt){constructor({text:t,cause:e}){super({name:Ht,message:`JSON parsing failed: Text: ${t}.
|
|
2
2
|
Error message: ${qt(e)}`,cause:e}),this[yt]=!0,this.text=t}static isInstance(t){return X.hasMarker(t,Yt)}},Gt="AI_TypeValidationError",Qt=`vercel.ai.error.${Gt}`,gs=Symbol.for(Qt),_t,It,ve=class qe extends(It=X,_t=gs,It){constructor({value:e,cause:a,context:s}){let r="Type validation failed";if(s?.field&&(r+=` for ${s.field}`),s?.entityName||s?.entityId){r+=" (";const o=[];s.entityName&&o.push(s.entityName),s.entityId&&o.push(`id: "${s.entityId}"`),r+=o.join(", "),r+=")"}super({name:Gt,message:`${r}: Value: ${JSON.stringify(e)}.
|
|
3
3
|
Error message: ${qt(a)}`,cause:a}),this[_t]=!0,this.value=e,this.context=s}static isInstance(e){return X.hasMarker(e,Qt)}static wrap({value:e,cause:a,context:s}){var r,o,i;return qe.isInstance(a)&&a.value===e&&((r=a.context)==null?void 0:r.field)===s?.field&&((o=a.context)==null?void 0:o.entityName)===s?.entityName&&((i=a.context)==null?void 0:i.entityId)===s?.entityId?a:new qe({value:e,cause:a,context:s})}},Te=({prefix:t,size:e=16,alphabet:a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:s="-"}={})=>{const r=()=>{const o=a.length,i=new Array(e);for(let n=0;n<e;n++)i[n]=a[Math.random()*o|0];return i.join("")};if(t==null)return r;if(a.includes(s))throw new fs({argument:"separator",message:`The separator "${s}" must not be part of the alphabet "${a}".`});return()=>`${t}${s}${r()}`},vs=Te();function Et(t=globalThis){var e,a,s;return t.window?"runtime/browser":(e=t.navigator)!=null&&e.userAgent?`runtime/${t.navigator.userAgent.toLowerCase()}`:(s=(a=t.process)==null?void 0:a.versions)!=null&&s.node?`runtime/node.js/${t.process.version.substring(0)}`:t.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function de(t){if(t==null)return{};const e={};if(t instanceof Headers)t.forEach((a,s)=>{e[s.toLowerCase()]=a});else{Array.isArray(t)||(t=Object.entries(t));for(const[a,s]of t)s!=null&&(e[a.toLowerCase()]=s)}return e}function wt(t,...e){const a=new Headers(de(t)),s=a.get("user-agent")||"";return a.set("user-agent",[s,...e].filter(Boolean).join(" ")),Object.fromEntries(a.entries())}var ys=/"__proto__"\s*:/,bs=/"constructor"\s*:/;function St(t){const e=JSON.parse(t);return e===null||typeof e!="object"||ys.test(t)===!1&&bs.test(t)===!1?e:xs(e)}function xs(t){let e=[t];for(;e.length;){const a=e;e=[];for(const s of a){if(Object.prototype.hasOwnProperty.call(s,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(s,"constructor")&&Object.prototype.hasOwnProperty.call(s.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const r in s){const o=s[r];o&&typeof o=="object"&&e.push(o)}}}return t}function _s(t){const{stackTraceLimit:e}=Error;try{Error.stackTraceLimit=0}catch{return St(t)}try{return St(t)}finally{Error.stackTraceLimit=e}}function at(t){if(t.type==="object"||Array.isArray(t.type)&&t.type.includes("object")){t.additionalProperties=!1;const{properties:a}=t;if(a!=null)for(const s of Object.keys(a))a[s]=ue(a[s])}t.items!=null&&(t.items=Array.isArray(t.items)?t.items.map(ue):ue(t.items)),t.anyOf!=null&&(t.anyOf=t.anyOf.map(ue)),t.allOf!=null&&(t.allOf=t.allOf.map(ue)),t.oneOf!=null&&(t.oneOf=t.oneOf.map(ue));const{definitions:e}=t;if(e!=null)for(const a of Object.keys(e))e[a]=ue(e[a]);return t}function ue(t){return typeof t=="boolean"?t:at(t)}var Is=Symbol("Let zodToJsonSchema decide on which parser to use"),Nt={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},Es=t=>typeof t=="string"?{...Nt,name:t}:{...Nt,...t};function q(){return{}}function ws(t,e){var a,s,r;const o={type:"array"};return(a=t.type)!=null&&a._def&&((r=(s=t.type)==null?void 0:s._def)==null?void 0:r.typeName)!==w.ZodAny&&(o.items=A(t.type._def,{...e,currentPath:[...e.currentPath,"items"]})),t.minLength&&(o.minItems=t.minLength.value),t.maxLength&&(o.maxItems=t.maxLength.value),t.exactLength&&(o.minItems=t.exactLength.value,o.maxItems=t.exactLength.value),o}function Ss(t){const e={type:"integer",format:"int64"};if(!t.checks)return e;for(const a of t.checks)switch(a.kind){case"min":a.inclusive?e.minimum=a.value:e.exclusiveMinimum=a.value;break;case"max":a.inclusive?e.maximum=a.value:e.exclusiveMaximum=a.value;break;case"multipleOf":e.multipleOf=a.value;break}return e}function Ns(){return{type:"boolean"}}function Xt(t,e){return A(t.type._def,e)}var Cs=(t,e)=>A(t.innerType._def,e);function Kt(t,e,a){const s=a??e.dateStrategy;if(Array.isArray(s))return{anyOf:s.map((r,o)=>Kt(t,e,r))};switch(s){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return Ts(t)}}var Ts=t=>{const e={type:"integer",format:"unix-time"};for(const a of t.checks)switch(a.kind){case"min":e.minimum=a.value;break;case"max":e.maximum=a.value;break}return e};function Ms(t,e){return{...A(t.innerType._def,e),default:t.defaultValue()}}function As(t,e){return e.effectStrategy==="input"?A(t.schema._def,e):q()}function Rs(t){return{type:"string",enum:Array.from(t.values)}}var js=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function Os(t,e){const a=[A(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),A(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(r=>!!r),s=[];return a.forEach(r=>{if(js(r))s.push(...r.allOf);else{let o=r;if("additionalProperties"in r&&r.additionalProperties===!1){const{additionalProperties:i,...n}=r;o=n}s.push(o)}}),s.length?{allOf:s}:void 0}function ks(t){const e=typeof t.value;return e!=="bigint"&&e!=="number"&&e!=="boolean"&&e!=="string"?{type:Array.isArray(t.value)?"array":"object"}:{type:e==="bigint"?"integer":e,const:t.value}}var Fe=void 0,H={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(Fe===void 0&&(Fe=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Fe),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function ea(t,e){const a={type:"string"};if(t.checks)for(const s of t.checks)switch(s.kind){case"min":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,s.value):s.value;break;case"max":a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,s.value):s.value;break;case"email":switch(e.emailStrategy){case"format:email":Y(a,"email",s.message,e);break;case"format:idn-email":Y(a,"idn-email",s.message,e);break;case"pattern:zod":F(a,H.email,s.message,e);break}break;case"url":Y(a,"uri",s.message,e);break;case"uuid":Y(a,"uuid",s.message,e);break;case"regex":F(a,s.regex,s.message,e);break;case"cuid":F(a,H.cuid,s.message,e);break;case"cuid2":F(a,H.cuid2,s.message,e);break;case"startsWith":F(a,RegExp(`^${Ue(s.value,e)}`),s.message,e);break;case"endsWith":F(a,RegExp(`${Ue(s.value,e)}$`),s.message,e);break;case"datetime":Y(a,"date-time",s.message,e);break;case"date":Y(a,"date",s.message,e);break;case"time":Y(a,"time",s.message,e);break;case"duration":Y(a,"duration",s.message,e);break;case"length":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,s.value):s.value,a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,s.value):s.value;break;case"includes":{F(a,RegExp(Ue(s.value,e)),s.message,e);break}case"ip":{s.version!=="v6"&&Y(a,"ipv4",s.message,e),s.version!=="v4"&&Y(a,"ipv6",s.message,e);break}case"base64url":F(a,H.base64url,s.message,e);break;case"jwt":F(a,H.jwt,s.message,e);break;case"cidr":{s.version!=="v6"&&F(a,H.ipv4Cidr,s.message,e),s.version!=="v4"&&F(a,H.ipv6Cidr,s.message,e);break}case"emoji":F(a,H.emoji(),s.message,e);break;case"ulid":{F(a,H.ulid,s.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{Y(a,"binary",s.message,e);break}case"contentEncoding:base64":{a.contentEncoding="base64";break}case"pattern:zod":{F(a,H.base64,s.message,e);break}}break}case"nanoid":F(a,H.nanoid,s.message,e)}return a}function Ue(t,e){return e.patternStrategy==="escape"?Ds(t):t}var Ps=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function Ds(t){let e="";for(let a=0;a<t.length;a++)Ps.has(t[a])||(e+="\\"),e+=t[a];return e}function Y(t,e,a,s){var r;t.format||(r=t.anyOf)!=null&&r.some(o=>o.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format}),delete t.format),t.anyOf.push({format:e,...a&&s.errorMessages&&{errorMessage:{format:a}}})):t.format=e}function F(t,e,a,s){var r;t.pattern||(r=t.allOf)!=null&&r.some(o=>o.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern}),delete t.pattern),t.allOf.push({pattern:Ct(e,s),...a&&s.errorMessages&&{errorMessage:{pattern:a}}})):t.pattern=Ct(e,s)}function Ct(t,e){var a;if(!e.applyRegexFlags||!t.flags)return t.source;const s={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},r=s.i?t.source.toLowerCase():t.source;let o="",i=!1,n=!1,c=!1;for(let l=0;l<r.length;l++){if(i){o+=r[l],i=!1;continue}if(s.i){if(n){if(r[l].match(/[a-z]/)){c?(o+=r[l],o+=`${r[l-2]}-${r[l]}`.toUpperCase(),c=!1):r[l+1]==="-"&&((a=r[l+2])!=null&&a.match(/[a-z]/))?(o+=r[l],c=!0):o+=`${r[l]}${r[l].toUpperCase()}`;continue}}else if(r[l].match(/[a-z]/)){o+=`[${r[l]}${r[l].toUpperCase()}]`;continue}}if(s.m){if(r[l]==="^"){o+=`(^|(?<=[\r
|
|
4
4
|
]))`;continue}else if(r[l]==="$"){o+=`($|(?=[\r
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bD as G,r as k,o as Fs,s as pt,c as C,j as o,b6 as _t,u as X,k as Hs,y as Vs,a as re,f as Bs,q as qe,v as yn,bt as W,bE as Us,au as qs,ak as Tt,an as te,av as Sn,aw as Ks,am as $t,as as Js,ax as wn,al as Nn,aD as Gs,aE as Xs,aq as Cn,aF as Zs,bF as Et,bG as Qs,at as Ys,b2 as eo,aZ as to,bH as no,bI as kn}from"./index-DVqIQLTS.js";import{E as In,I as Qe,b as Ot,c as Rt,T as At,a as Mt,n as so}from"./empty-state-Cuxzpiqy.js";import{E as _n}from"./error-boundary-UVoBd-EX.js";import{a as Pt,u as Lt,g as Dt,e as zt,d as Wt}from"./use-collections-CidxL5e8.js";import{u as Z,i as oo}from"./constants-nQTTOIWL.js";import{P as Ft}from"./pin-to-sidebar-button-VWxGEpa7.js";import{F as xt,a as ro,b as Ht,d as Vt}from"./form-CFGJ-U5C.js";import{I as Bt}from"./input-D53urYud.js";import{T as St}from"./textarea-BB8VII1W.js";import{a as Tn,V as Ut,b as ce}from"./layout-CvATyvqE.js";import{S as $n}from"./index-CRFYi63w.js";import{c as O,B as U}from"./button-BB_m2E67.js";import{S as En,a as On,b as Rn,c as An,d as wt}from"./select-DsmrYLOe.js";import{i as io}from"./AlertCircle-ByS2S7QG.js";import{s as lo,M as $e}from"./monaco-editor-Dv5Uv_CH.js";import{i as co}from"./Code01-DORFegNP.js";import{a as ao}from"./Copy01-U5Mrbyn4.js";import{i as Me}from"./Loading01-CCSRv8tX.js";import{i as qt}from"./Play-DiP4pY8r.js";import{s as Kt}from"./XClose-CqNB1Ju1.js";import{B as Mn,a as Pn,b as Te,d as Ke,e as Je,c as Ln}from"./breadcrumb-DBCyZqWb.js";import{u as uo,O as fo,M as mo,F as po,v as xo}from"./index-Cr1-k0ke.js";import{u as Ye,b as ho}from"./use-connection-nBbiimhv.js";import{E as Jt}from"./empty-state-DI837doR.js";import{D as go,a as bo}from"./use-binding-BKAkfTQP.js";import{b as Dn}from"./use-virtual-mcp-BzFn2znu.js";import{b as jo,a as an,R as vo}from"./resizable-Dl3VUWr8.js";import{S as et}from"./spinner-CaiollDD.js";import{V as yo}from"./view-mode-toggle-C2aKUr7i.js";import{N as So,S as wo,a as No,c as Co,m as Ve,P as ko,i as Io,R as _o,b as To,d as $o,e as dn,E as Eo,f as Oo}from"./index-Cw0Cq7G5.js";import{b as Ro,c as Ao,d as Mo,e as Po,a as Lo,D as Do}from"./dialog-BPGYkE6E.js";import"./index-CERcQBYB.js";import{s as zn}from"./Plus-B5QrRvCn.js";import{n as zo}from"./Calendar-MP2K9xOR.js";import{i as Gt}from"./Check-kOHUYBJY.js";import{i as Wo}from"./DotsHorizontal-nhuBUuxR.js";import{a as Fo}from"./Tool01-DdjIy29J.js";import{D as Ho,a as Vo,b as Bo,c as un}from"./dropdown-menu-w3xNt286.js";import{T as Uo,R as qo,d as Ko,e as Wn}from"./collapsible-Ce6mH95q.js";import{i as Jo}from"./ChevronRight-Cua3_Oqd.js";import{B as _e}from"./badge-a9rJdKKG.js";import{i as Fn}from"./X-CVoqpcAx.js";import"./useMutation-DYyKBkRY.js";import"./useQuery-CC03be4X.js";import"./Pin01-dHyXwRhr.js";import"./use-organization-settings-Bnh92zjq.js";import"./index-BxQtX61C.js";import"./ChevronDown-J2iKAqyZ.js";import"./infiniteQueryObserver-qdoAkrLg.js";import"./mcp-oauth-ALBEJIVW.js";import"./env-vars-editor-dEtMntyA.js";import"./Trash01-BdLDRPDl.js";import"./File06-DE5HPnG3.js";import"./Key01-BFw74njR.js";import"./extract-connection-data-BkwH9UE5.js";import"./constants-DuCds5dq.js";import"./github-icon-Dp3wHhYE.js";import"./registry-utils-COHLTguy.js";import"./generate-id-Dyweu44Y.js";import"./Terminal-CsAynI3M.js";import"./Users03-DPYHJvoT.js";import"./circle-alert-W5iOrtbw.js";import"./binder-BHtkW0UD.js";import"./popover-C9gpO_P1.js";import"./use-mcp-prompts-0zuoUwAA.js";import"./ArrowUp-Pc2qwI_3.js";import"./Edit01-C_cfLeJc.js";import"./localstorage-keys-Dt0DQ7_M.js";import"./SearchMd-D2POsGFy.js";import"./use-create-virtual-mcp-CPQ3EWAe.js";import"./Grid01-CkZU0tWV.js";import"./Image01-CIkj8y0a.js";const Hn=G("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);const Vn=G("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);const Xt=G("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Zt=G("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const Go=G("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);const Xo=G("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);const Zo=G("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);const Bn=G("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const Un=G("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);const qn=G("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);const Kn=G("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);const Jn=G("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]),Qt=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M12 8v4m0 4h.01M2 8.523v6.954c0 .245 0 .367.028.482a1 1 0 0 0 .12.29c.061.1.148.187.32.36l4.923 4.922c.173.173.26.26.36.322.09.054.188.095.29.12.115.027.237.027.482.027h6.954c.245 0 .367 0 .482-.028a.998.998 0 0 0 .29-.12c.1-.061.187-.148.36-.32l4.922-4.923c.173-.173.26-.26.322-.36a.998.998 0 0 0 .12-.29c.027-.115.027-.237.027-.482V8.523c0-.245 0-.367-.028-.482a.998.998 0 0 0-.12-.29c-.061-.1-.148-.187-.32-.36L16.608 2.47c-.173-.173-.26-.26-.36-.322a1 1 0 0 0-.29-.12C15.844 2 15.722 2 15.477 2H8.523c-.245 0-.367 0-.482.028a1 1 0 0 0-.29.12c-.1.061-.187.148-.36.32L2.47 7.392c-.173.173-.26.26-.322.36a1 1 0 0 0-.12.29C2 8.156 2 8.278 2 8.523Z"}));Qt.displayName="AlertOctagon";const Gn=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M20.5 8v8.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.22 21 17.38 21 15.7 21H8.3c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3.5 18.72 3.5 17.88 3.5 16.2V8m.1-5h16.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C22 3.76 22 4.04 22 4.6v1.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C21.24 8 20.96 8 20.4 8H3.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C2 7.24 2 6.96 2 6.4V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C2.76 3 3.04 3 3.6 3Zm6 8.5h4.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C16 12.26 16 12.54 16 13.1v.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437c-.214.109-.494.109-1.054.109H9.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C8 14.74 8 14.46 8 13.9v-.8c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C8.76 11.5 9.04 11.5 9.6 11.5Z"}));Gn.displayName="Box";const Xn=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"m22.7 11.5-2 2-2-2m2.245 1.5A9 9 0 1 0 19 17.657M12 7v5l3 2"}));Xn.displayName="ClockFastForward";const Zn=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"m17 17 5-5-5-5M7 7l-5 5 5 5m7-14-4 18"}));Zn.displayName="Code02";const Be=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M6.8 3h-.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C3 4.52 3 5.08 3 6.2v11.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21h.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C10 19.48 10 18.92 10 17.8V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C8.48 3 7.92 3 6.8 3Zm11 0h-.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C14 4.52 14 5.08 14 6.2v11.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C15.52 21 16.08 21 17.2 21h.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C19.48 3 18.92 3 17.8 3Z"}));Be.displayName="Columns01";const Qn=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M4 4v1.4c0 3.36 0 5.04.654 6.324a6 6 0 0 0 2.622 2.622C8.56 15 10.24 15 13.6 15H20m0 0-5-5m5 5-5 5"}));Qn.displayName="CornerDownRight";const Yn=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M21 5c0 1.657-4.03 3-9 3S3 6.657 3 5m18 0c0-1.657-4.03-3-9-3S3 3.343 3 5m18 0v14c0 1.66-4 3-9 3s-9-1.34-9-3V5m18 7c0 1.66-4 3-9 3s-9-1.34-9-3"}));Yn.displayName="Database01";const es=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M3 3v10.2c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 18 6.12 18 7.8 18H15m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0ZM3 8h12m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0Z"}));es.displayName="GitBranch01";const ts=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"m13 22-3-3m0 0 3-3m-3 3h5a7 7 0 0 0 3-13.326M6 18.326A7 7 0 0 1 9 5h5m0 0-3-3m3 3-3 3"}));ts.displayName="Repeat03";Fs({title:pt().min(1),description:pt().nullable(),body:pt()});function ht(t){for(const e of t.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Qo(){const t=window.location.pathname.split("/").filter(Boolean),e=t.findIndex(s=>s==="mcps"),n=e>=0?t[e+1]:void 0;return n?decodeURIComponent(n):void 0}function Yo(t){const e=C.c(13),{form:n}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("div",{className:"text-sm font-medium text-foreground",children:"Details"}),e[0]=s):s=e[0];let i;e[1]!==n.control?(i=o.jsxs("div",{className:"flex flex-col gap-4",children:[s,o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[o.jsx(xt,{control:n.control,name:"title",render:nr}),o.jsx(xt,{control:n.control,name:"description",render:tr})]})]}),e[1]=n.control,e[2]=i):i=e[2];let r,l;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("div",{className:"text-sm font-medium text-foreground",children:"Message"}),l=o.jsx("div",{className:"text-xs text-muted-foreground",children:"This becomes the user message in the prompt."}),e[3]=r,e[4]=l):(r=e[3],l=e[4]);let c;e[5]!==n.control?(c=o.jsxs("div",{className:"flex flex-col gap-2",children:[r,l,o.jsx(xt,{control:n.control,name:"body",render:er})]}),e[5]=n.control,e[6]=c):c=e[6];let a;e[7]!==i||e[8]!==c?(a=o.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[i,c]}),e[7]=i,e[8]=c,e[9]=a):a=e[9];let u;return e[10]!==n||e[11]!==a?(u=o.jsx(ro,{...n,children:a}),e[10]=n,e[11]=a,e[12]=u):u=e[12],u}function er(t){const{field:e}=t;return o.jsx(Ht,{children:o.jsx(Vt,{children:o.jsx(St,{...e,value:e.value??"",placeholder:"Write the prompt message…",className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})}function tr(t){const{field:e}=t;return o.jsxs(Ht,{children:[o.jsx("div",{className:"text-xs text-muted-foreground",children:"Description"}),o.jsx(Vt,{children:o.jsx(Bt,{...e,value:e.value??"",placeholder:"Add a description…",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function nr(t){const{field:e}=t;return o.jsxs(Ht,{children:[o.jsx("div",{className:"text-xs text-muted-foreground",children:"Title"}),o.jsx(Vt,{children:o.jsx(Bt,{...e,placeholder:"Untitled prompt",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function sr(t){const e=C.c(41),{providerId:n,promptId:s}=t,r=_t().location.href,{org:l}=X(),c=n||null;let a;e[0]!==l.id||e[1]!==c?(a={connectionId:c,orgId:l.id},e[0]=l.id,e[1]=c,e[2]=a):a=e[2];const u=Z(a),d=Pt(n,"PROMPT",s,u),f=Lt(n,"PROMPT",u),m=f.update.isPending;let x;e[3]!==d?(x=d?{title:d.title,description:d.description??null,body:ht(d)}:void 0,e[3]=d,e[4]=x):x=e[4];let p;e[5]!==x?(p={values:x},e[5]=x,e[6]=p):p=e[6];const h=Hs(p);let g;e[7]!==h||e[8]!==d?(g=()=>{d&&h.reset({title:d.title,description:d.description??null,body:ht(d)})},e[7]=h,e[8]=d,e[9]=g):g=e[9];const b=g;let j;e[10]!==f.update||e[11]!==h||e[12]!==s?(j=h.handleSubmit(async M=>{const L=await f.update.mutateAsync({id:s,data:{title:M.title,description:M.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:M.body}}]}});h.reset({title:L.title,description:L.description??null,body:ht(L)})}),e[10]=f.update,e[11]=h,e[12]=s,e[13]=j):j=e[13];const y=j;if(!d){let M;return e[14]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsx("div",{className:"flex h-full w-full bg-background",children:o.jsx(In,{title:"Prompt not found",description:"This prompt may have been deleted or you may not have access to it."})}),e[14]=M):M=e[14],M}let S;e[15]!==d.title?(S=o.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:d.title}),e[15]=d.title,e[16]=S):S=e[16];let v;e[17]!==d.description?(v=d.description?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),o.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:d.description})]}):null,e[17]=d.description,e[18]=v):v=e[18];let w;e[19]!==S||e[20]!==v?(w=o.jsx(Tn,{children:o.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[S,v]})}),e[19]=S,e[20]=v,e[21]=w):w=e[21];let N;e[22]!==y?(N=()=>{y()},e[22]=y,e[23]=N):N=e[23];let _;e[24]!==h.formState.isDirty||e[25]!==m||e[26]!==b||e[27]!==N?(_=o.jsx($n,{onSave:N,onUndo:b,isDirty:h.formState.isDirty,isSaving:m}),e[24]=h.formState.isDirty,e[25]=m,e[26]=b,e[27]=N,e[28]=_):_=e[28];let I;e[29]!==d.title||e[30]!==r?(I=o.jsx(Ft,{title:d.title,url:r,icon:"description"}),e[29]=d.title,e[30]=r,e[31]=I):I=e[31];let E;e[32]!==_||e[33]!==I?(E=o.jsxs(Ut,{children:[_,I]}),e[32]=_,e[33]=I,e[34]=E):E=e[34];let R;e[35]!==h?(R=o.jsx("div",{className:"h-full",children:o.jsx(Yo,{form:h})}),e[35]=h,e[36]=R):R=e[36];let P;return e[37]!==E||e[38]!==R||e[39]!==w?(P=o.jsxs(ce,{children:[w,E,R]}),e[37]=E,e[38]=R,e[39]=w,e[40]=P):P=e[40],P}function or(t){const e=C.c(4),{itemId:n}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=Qo(),e[0]=s):s=e[0];const i=s;if(!i){let l;return e[1]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx("div",{className:"flex h-full w-full bg-background",children:o.jsx(In,{title:"Prompt not found",description:"Missing connection information in the current route."})}),e[1]=l):l=e[1],l}let r;return e[2]!==n?(r=o.jsx(_n,{children:o.jsx(k.Suspense,{fallback:null,children:o.jsx(sr,{providerId:i,promptId:n})})}),e[2]=n,e[3]=r):r=e[3],r}const rr=Vs("relative w-full rounded-lg border px-4 py-3 text-sm flex items-start gap-3 [&>svg]:size-4 [&>svg]:flex-shrink-0 [&>svg]:mt-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-destructive/5 text-destructive border-destructive/25 [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",warning:"bg-warning/10 text-warning-foreground border-warning [&>svg]:text-current *:data-[slot=alert-description]:text-warning-foreground/90",success:"bg-success/10 text-success-foreground border-success [&>svg]:text-current *:data-[slot=alert-description]:text-success-foreground/90",info:"bg-card text-card-foreground border-border [&>svg]:text-current *:data-[slot=alert-description]:text-muted-foreground/90"}},defaultVariants:{variant:"default"}});function ir(t){const e=C.c(10);let n,s,i;e[0]!==t?({className:n,variant:i,...s}=t,e[0]=t,e[1]=n,e[2]=s,e[3]=i):(n=e[1],s=e[2],i=e[3]);let r;e[4]!==n||e[5]!==i?(r=O(rr({variant:i}),n),e[4]=n,e[5]=i,e[6]=r):r=e[6];let l;return e[7]!==s||e[8]!==r?(l=o.jsx("div",{"data-slot":"alert",role:"alert",className:r,...s}),e[7]=s,e[8]=r,e[9]=l):l=e[9],l}function lr(t){const e=C.c(8);let n,s;e[0]!==t?({className:n,...s}=t,e[0]=t,e[1]=n,e[2]=s):(n=e[1],s=e[2]);let i;e[3]!==n?(i=O("line-clamp-1 min-h-4 font-medium tracking-tight",n),e[3]=n,e[4]=i):i=e[4];let r;return e[5]!==s||e[6]!==i?(r=o.jsx("div",{"data-slot":"alert-title",className:i,...s}),e[5]=s,e[6]=i,e[7]=r):r=e[7],r}function cr(t){const e=C.c(8);let n,s;e[0]!==t?({className:n,...s}=t,e[0]=t,e[1]=n,e[2]=s):(n=e[1],s=e[2]);let i;e[3]!==n?(i=O("text-muted-foreground leading-relaxed",n),e[3]=n,e[4]=i):i=e[4];let r;return e[5]!==s||e[6]!==i?(r=o.jsx("div",{"data-slot":"alert-description",className:i,...s}),e[5]=s,e[6]=i,e[7]=r):r=e[7],r}const fn=t=>t.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function ar(t){const e=C.c(9),{toolName:n,connectionId:s,onBack:i}=t;let r;e[0]!==s?(r={connectionId:s},e[0]=s,e[1]=r):r=e[1];const l=uo(r);if(!l.isAuthenticated){let u;return e[2]!==l.supportsOAuth||e[3]!==i?(u=o.jsx("div",{className:"flex h-full items-center justify-center",children:l.supportsOAuth?o.jsx(fo,{onAuthenticate:()=>i(),buttonText:"Go back to authenticate"}):o.jsx(mo,{hasReadme:!1})}),e[2]=l.supportsOAuth,e[3]=i,e[4]=u):u=e[4],u}const c=`${s}:${n}`;let a;return e[5]!==s||e[6]!==c||e[7]!==n?(a=o.jsx(dr,{toolName:n,connectionId:s},c),e[5]=s,e[6]=c,e[7]=n,e[8]=a):a=e[8],a}function dr({toolName:t,connectionId:e}){const s=_t().location.href,{replayId:i}=Bs({strict:!1}),r=(()=>{if(!i)return null;const T=`replay-${i}`,$=sessionStorage.getItem(T);if(!$)return null;sessionStorage.removeItem(T);try{return JSON.parse($)}catch{return null}})(),l=(()=>{if(!r)return null;const T={};for(const[$,A]of Object.entries(r))A!==null&&typeof A=="object"?T[$]=JSON.stringify(A,null,2):T[$]=A;return T})(),[c,a]=k.useState(l??{}),[u,d]=k.useState(r?JSON.stringify(r,null,2):"{}"),[f,m]=k.useState(null),[x,p]=k.useState(null),[h,g]=k.useState(!1),[b,j]=k.useState(null),{org:y}=X(),S=Ye(e),v=Z({connectionId:e,orgId:y.id}),w=Dt({client:v}),N=w.data?.tools?.find(T=>T.name===t),_=N?.inputSchema?.properties,I=_?Object.keys(_):[],E=I.length>0,R={};if(E&&N?.inputSchema?.properties)for(const T of I)R[T]=N.inputSchema.required?.includes(T)?"":void 0;const P=T=>Object.prototype.hasOwnProperty.call(c,T),M=async()=>{g(!0),p(null),m(null),j(null);const T=performance.now();try{if(!v)throw new Error("MCP client is not available");const $=E?{...R,...c}:(()=>{const V=u.trim();if(!V)return{};const J=JSON.parse(V);if(J&&typeof J=="object")return J;throw new Error("Raw JSON input must be an object.")})();E&&N?.inputSchema?.properties&&Object.entries(N.inputSchema.properties).forEach(([V,J])=>{if((J.type==="object"||J.type==="array")&&typeof $[V]=="string")try{$[V]=JSON.parse($[V])}catch{}});const A=await v.callTool({name:t,arguments:$}),B=A.structuredContent??A,oe=performance.now(),Q=Math.round(oe-T);m(B);const se=JSON.stringify(B),K=new TextEncoder().encode(se).length;j({duration:`${Q}ms`,bytes:`${K} bytes`,tokens:`~${Math.ceil(K/4)} tokens`,cost:"$0.0000"})}catch($){const A=$ instanceof Error?$.message:String($);p(A||"Unknown error occurred");const B=performance.now();j({duration:`${Math.round(B-T)}ms`})}finally{g(!1)}},L=(T,$)=>{a(A=>({...A,[T]:$}))},D=()=>{m(null),p(null),j(null)},F=N?.name??fn(t),ee=o.jsx(Mn,{children:o.jsxs(Pn,{children:[o.jsx(Te,{children:o.jsx(Ke,{asChild:!0,children:o.jsx(qe,{to:"/$org/mcps",params:{org:y.slug},children:"Connections"})})}),o.jsx(Je,{}),S&&o.jsxs(o.Fragment,{children:[o.jsx(Te,{children:o.jsx(Ke,{asChild:!0,children:o.jsx(qe,{to:"/$org/mcps/$connectionId",params:{org:y.slug,connectionId:e},search:{tab:"tools"},children:S.title})})}),o.jsx(Je,{})]}),o.jsx(Te,{children:o.jsx(Ln,{children:F})})]})});return o.jsxs(ce,{breadcrumb:ee,children:[o.jsx(Ut,{children:o.jsx(Ft,{title:N?.name??fn(t),url:s,icon:"build"})}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 h-full",children:[o.jsx("div",{className:"flex flex-col border-r border-border overflow-hidden",children:o.jsxs("div",{className:"flex-1 overflow-auto",children:[o.jsx("div",{className:"flex flex-col gap-4 p-6 border-b border-border min-h-28",children:o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx(Qe,{icon:S?.icon||null,name:S?.title||t,size:"sm",className:"shadow-sm shrink-0"}),o.jsx("h1",{className:"text-lg font-medium text-foreground leading-none",children:t}),o.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit",children:[w.isSuccess?o.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500 animate-pulse shrink-0"}):w.isLoading?o.jsx(Me,{size:10,className:"animate-spin text-yellow-500 shrink-0"}):o.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-red-500 shrink-0"}),o.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:w.isSuccess?"ready":w.isLoading?"connecting":"error"})]})]}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:N?.description||"No description available"})]})}),o.jsxs("div",{className:"flex flex-col p-6 gap-4",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Parameters"}),N?.inputSchema?.required&&N.inputSchema.required.length>0&&o.jsxs("span",{className:"text-xs text-muted-foreground",children:[o.jsx("span",{className:"text-red-500",children:"*"})," Required"]})]}),o.jsx("div",{className:"space-y-4",children:E&&N?.inputSchema?.properties?Object.entries(N.inputSchema.properties).map(([T,$])=>o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[T,N.inputSchema?.required?.includes(T)&&o.jsx("span",{className:"text-red-500 text-xs",children:"*"})]}),o.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:$.type})]}),$.description&&o.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:$.description}),$.type==="object"||$.type==="array"?o.jsx(St,{className:"font-mono text-xs",value:P(T)?c[T]??"":R[T]??"",onChange:A=>L(T,A.target.value),placeholder:`Enter ${T} as JSON...`,rows:3}):$.type==="boolean"?o.jsxs(En,{value:P(T)?String(c[T]??""):"",onValueChange:A=>L(T,A==="true"),children:[o.jsx(On,{children:o.jsx(Rn,{placeholder:"Select true or false..."})}),o.jsxs(An,{children:[o.jsx(wt,{value:"true",children:"true"}),o.jsx(wt,{value:"false",children:"false"})]})]}):o.jsx(Bt,{value:P(T)?c[T]??"":R[T]??"",onChange:A=>L(T,A.target.value),placeholder:`Enter ${T}...`})]},T)):N?.inputSchema&&!E?o.jsxs("div",{className:"space-y-2",children:[o.jsx("label",{className:"text-sm font-medium",children:"Raw JSON Input"}),o.jsx(St,{className:"font-mono text-xs min-h-[120px]",value:u,onChange:T=>d(T.target.value),placeholder:'e.g. { "foo": "bar" }'})]}):o.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:o.jsx("p",{className:"text-sm text-muted-foreground",children:"No parameters required"})})})]})]})}),o.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[o.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-t lg:border-t-0 border-b border-border bg-background",children:[o.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:"Result"}),b&&o.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx(lo,{className:"h-3 w-3 text-muted-foreground"}),o.jsx("span",{className:"font-mono text-foreground",children:b.duration})]}),b.tokens&&o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx(Gn,{className:"h-3 w-3 text-muted-foreground"}),o.jsx("span",{className:"font-mono text-foreground",children:b.tokens})]}),b.bytes&&o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx(Yn,{className:"h-3 w-3 text-muted-foreground"}),o.jsx("span",{className:"font-mono text-foreground",children:b.bytes})]}),b.cost&&o.jsx("div",{className:"flex items-center gap-1.5",children:o.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]})]}),o.jsx("div",{className:"flex items-center justify-end lg:justify-between px-4 h-14 border-b border-border bg-background",children:o.jsxs("div",{className:"flex items-center gap-2 w-full lg:w-auto",children:[o.jsx(U,{size:"sm",variant:"default",className:"h-8 gap-2 flex-1 lg:flex-none",onClick:M,disabled:h,children:h?o.jsxs(o.Fragment,{children:[o.jsx(Me,{size:14,className:"animate-spin"}),"Executing..."]}):o.jsxs(o.Fragment,{children:[o.jsx(qt,{className:"h-3.5 w-3.5 fill-current"}),"Execute Tool"]})}),o.jsx(Ot,{children:o.jsxs(Rt,{children:[o.jsx(At,{asChild:!0,children:o.jsx(U,{size:"icon",variant:"outline",className:"h-8 w-8 shrink-0",onClick:D,disabled:!f&&!x,children:o.jsx(Kt,{size:14})})}),o.jsx(Mt,{children:o.jsx("p",{children:"Clear results"})})]})})]})}),x&&o.jsx("div",{className:"px-6 py-4 bg-background",children:o.jsx(ir,{variant:"destructive",children:o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(io,{className:"h-4 w-4"}),o.jsx(lr,{className:"mb-0",children:"Execution Failed"})]}),o.jsx(cr,{className:"text-xs text-destructive",children:x})]})})}),o.jsx("div",{className:"relative flex-1 overflow-auto bg-muted/50",children:f?o.jsxs(o.Fragment,{children:[o.jsx($e,{code:JSON.stringify(f,null,2),language:"json",height:"100%",readOnly:!0}),o.jsx(U,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(f,null,2)),yn.success("Copied to clipboard")},children:o.jsx(ao,{className:"h-3.5 w-3.5"})})]}):o.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[o.jsx(co,{className:"h-12 w-12 mb-3 opacity-40"}),o.jsx("p",{className:"text-sm",children:"Run the tool to see results"})]})})]})]})]})}function ur(t){const e=C.c(7),{itemId:n,onBack:s}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},e[0]=i):i=e[0];const l=re(i).connectionId;if(!Ye(l)||!l){let d;return e[1]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[o.jsx("h3",{className:"text-lg font-semibold",children:"Connection not found"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"This connection may have been deleted or you may not have access."})]})}),e[1]=d):d=e[1],d}let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsx(Me,{size:32,className:"animate-spin text-muted-foreground"})}),e[2]=a):a=e[2];let u;return e[3]!==l||e[4]!==s||e[5]!==n?(u=o.jsx(k.Suspense,{fallback:a,children:o.jsx(ar,{toolName:n,connectionId:l,onBack:s})}),e[3]=l,e[4]=s,e[5]=n,e[6]=u):u=e[6],u}const mn=t=>{let e;const n=new Set,s=(u,d)=>{const f=typeof u=="function"?u(e):u;if(!Object.is(f,e)){const m=e;e=d??(typeof f!="object"||f===null)?f:Object.assign({},e,f),n.forEach(x=>x(e,m))}},i=()=>e,c={setState:s,getState:i,getInitialState:()=>a,subscribe:u=>(n.add(u),()=>n.delete(u))},a=e=t(s,i,c);return c},Yt=(t=>t?mn(t):mn),fr=t=>t;function Nt(t,e=fr){const n=W.useSyncExternalStore(t.subscribe,W.useCallback(()=>e(t.getState()),[t,e]),W.useCallback(()=>e(t.getInitialState()),[t,e]));return W.useDebugValue(n),n}const mr=t=>{const e=Yt(t),n=s=>Nt(e,s);return Object.assign(n,e),n},pr=(t=>mr);function ns(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var r;const l=a=>a===null?null:JSON.parse(a,void 0),c=(r=n.getItem(i))!=null?r:null;return c instanceof Promise?c.then(l):l(c)},setItem:(i,r)=>n.setItem(i,JSON.stringify(r,void 0)),removeItem:i=>n.removeItem(i)}}const Ct=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(s){return Ct(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return Ct(s)(n)}}}},xr=(t,e)=>(n,s,i)=>{let r={storage:ns(()=>localStorage),partialize:g=>g,version:0,merge:(g,b)=>({...b,...g}),...e},l=!1,c=0;const a=new Set,u=new Set;let d=r.storage;if(!d)return t((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${r.name}', the given storage is currently unavailable.`),n(...g)},s,i);const f=()=>{const g=r.partialize({...s()});return d.setItem(r.name,{state:g,version:r.version})},m=i.setState;i.setState=(g,b)=>(m(g,b),f());const x=t((...g)=>(n(...g),f()),s,i);i.getInitialState=()=>x;let p;const h=()=>{var g,b;if(!d)return;const j=++c;l=!1,a.forEach(S=>{var v;return S((v=s())!=null?v:x)});const y=((b=r.onRehydrateStorage)==null?void 0:b.call(r,(g=s())!=null?g:x))||void 0;return Ct(d.getItem.bind(d))(r.name).then(S=>{if(S)if(typeof S.version=="number"&&S.version!==r.version){if(r.migrate){const v=r.migrate(S.state,S.version);return v instanceof Promise?v.then(w=>[!0,w]):[!0,v]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,S.state];return[!1,void 0]}).then(S=>{var v;if(j!==c)return;const[w,N]=S;if(p=r.merge(N,(v=s())!=null?v:x),n(p,!0),w)return f()}).then(()=>{j===c&&(y?.(p,void 0),p=s(),l=!0,u.forEach(S=>S(p)))}).catch(S=>{j===c&&y?.(void 0,S)})};return i.persist={setOptions:g=>{r={...r,...g},g.storage&&(d=g.storage)},clearStorage:()=>{d?.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>h(),hasHydrated:()=>l,onHydrate:g=>(a.add(g),()=>{a.delete(g)}),onFinishHydration:g=>(u.add(g),()=>{u.delete(g)})},r.skipHydration||h(),p||x},ss=xr,{useSyncExternalStoreWithSelector:hr}=Us,gr=t=>t;function br(t,e=gr,n){const s=hr(t.subscribe,t.getState,t.getInitialState,e,n);return W.useDebugValue(s),s}const pn=t=>Symbol.iterator in t,xn=t=>"entries"in t,hn=(t,e)=>{const n=t instanceof Map?t:new Map(t.entries()),s=e instanceof Map?e:new Map(e.entries());if(n.size!==s.size)return!1;for(const[i,r]of n)if(!s.has(i)||!Object.is(r,s.get(i)))return!1;return!0},jr=(t,e)=>{const n=t[Symbol.iterator](),s=e[Symbol.iterator]();let i=n.next(),r=s.next();for(;!i.done&&!r.done;){if(!Object.is(i.value,r.value))return!1;i=n.next(),r=s.next()}return!!i.done&&!!r.done};function vr(t,e){return Object.is(t,e)?!0:typeof t!="object"||t===null||typeof e!="object"||e===null||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e)?!1:pn(t)&&pn(e)?xn(t)&&xn(e)?hn(t,e):jr(t,e):hn({entries:()=>Object.entries(t)},{entries:()=>Object.entries(e)})}function yr(t,e="Output"){if(!t)return`interface ${e} {}`;function n(r){if(!r||typeof r!="object")return"unknown";const l=r.type;if(Array.isArray(l))return l.map(c=>s(c)).join(" | ");switch(l){case"string":return r.enum?r.enum.map(c=>`"${c}"`).join(" | "):"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";case"array":{const c=r.items;return c?`${n(c)}[]`:"unknown[]"}case"object":return i(r);default:return r.anyOf?r.anyOf.map(n).join(" | "):r.oneOf?r.oneOf.map(n).join(" | "):r.allOf?r.allOf.map(n).join(" & "):"unknown"}}function s(r){switch(r){case"string":return"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";default:return"unknown"}}function i(r){const l=r.properties;if(!l)return"Record<string, unknown>";const c=new Set(r.required||[]);return`{
|
|
1
|
+
import{bD as G,r as k,o as Fs,s as pt,c as C,j as o,b6 as _t,u as X,k as Hs,y as Vs,a as re,f as Bs,q as qe,v as yn,bt as W,bE as Us,au as qs,ak as Tt,an as te,av as Sn,aw as Ks,am as $t,as as Js,ax as wn,al as Nn,aD as Gs,aE as Xs,aq as Cn,aF as Zs,bF as Et,bG as Qs,at as Ys,b2 as eo,aZ as to,bH as no,bI as kn}from"./index-Bbl4-DhO.js";import{E as In,I as Qe,b as Ot,c as Rt,T as At,a as Mt,n as so}from"./empty-state-DbsuWKK0.js";import{E as _n}from"./error-boundary-_mh2gjIO.js";import{a as Pt,u as Lt,g as Dt,e as zt,d as Wt}from"./use-collections-CSaPMdJP.js";import{u as Z,i as oo}from"./constants-DrPL4Ica.js";import{P as Ft}from"./pin-to-sidebar-button-B8jKeHcQ.js";import{F as xt,a as ro,b as Ht,d as Vt}from"./form-593Cxi68.js";import{I as Bt}from"./input-Cl_krHCL.js";import{T as St}from"./textarea-D8tpYW31.js";import{a as Tn,V as Ut,b as ce}from"./layout-B0xqCu-J.js";import{S as $n}from"./index-DwOSjyth.js";import{c as O,B as U}from"./button-D4S1kDGV.js";import{S as En,a as On,b as Rn,c as An,d as wt}from"./select-IQWml7nC.js";import{i as io}from"./AlertCircle-iINAEFa4.js";import{s as lo,M as $e}from"./monaco-editor-Bm_OACu4.js";import{i as co}from"./Code01-Kmb97rSu.js";import{a as ao}from"./Copy01-C-IOEXCR.js";import{i as Me}from"./Loading01-CR1SBu2C.js";import{i as qt}from"./Play-n1TWEywX.js";import{s as Kt}from"./XClose-6R1Vz3Sg.js";import{B as Mn,a as Pn,b as Te,d as Ke,e as Je,c as Ln}from"./breadcrumb-IZno0prj.js";import{u as uo,O as fo,M as mo,F as po,v as xo}from"./index-CmLozgyx.js";import{u as Ye,b as ho}from"./use-connection-B_VLq56Y.js";import{E as Jt}from"./empty-state-Coadi_3P.js";import{D as go,a as bo}from"./use-binding-DIcfXiT9.js";import{b as Dn}from"./use-virtual-mcp-DLD76sn-.js";import{b as jo,a as an,R as vo}from"./resizable-D-jJIQY5.js";import{S as et}from"./spinner-C4BWkScj.js";import{V as yo}from"./view-mode-toggle-D0CQMdAY.js";import{N as So,S as wo,a as No,c as Co,m as Ve,P as ko,i as Io,R as _o,b as To,d as $o,e as dn,E as Eo,f as Oo}from"./index-Dp2qh4TE.js";import{b as Ro,c as Ao,d as Mo,e as Po,a as Lo,D as Do}from"./dialog-DmTkIFW7.js";import"./index-DjtsCmxf.js";import{s as zn}from"./Plus-C1IQFq-X.js";import{n as zo}from"./Calendar-zCs6oFWo.js";import{i as Gt}from"./Check-DEmp3zPa.js";import{i as Wo}from"./DotsHorizontal-BIorFFO8.js";import{a as Fo}from"./Tool01-DPV3_3VU.js";import{D as Ho,a as Vo,b as Bo,c as un}from"./dropdown-menu-BWsPebfz.js";import{T as Uo,R as qo,d as Ko,e as Wn}from"./collapsible-8SLD3RRw.js";import{i as Jo}from"./ChevronRight-CSlFIXoC.js";import{B as _e}from"./badge-0btvjZy9.js";import{i as Fn}from"./X-IaA51nti.js";import"./useMutation-Dmj4iizp.js";import"./useQuery-DVQ_JpN1.js";import"./Pin01-DNFRSKdF.js";import"./use-organization-settings--n0ZOb9s.js";import"./index-D5N-kvbB.js";import"./ChevronDown-zqPsa4kD.js";import"./infiniteQueryObserver-Zs4TvAjm.js";import"./mcp-oauth-BLzAVK4c.js";import"./env-vars-editor-C2L8ARxi.js";import"./Trash01-CrpuFo4N.js";import"./File06-DsMnzy7g.js";import"./Key01-a2agbm7y.js";import"./extract-connection-data-BZSHdzkE.js";import"./constants-DxdIATjw.js";import"./github-icon-Dp3wHhYE.js";import"./registry-utils-Bynyn62T.js";import"./generate-id-Dyweu44Y.js";import"./Terminal-lEFObr73.js";import"./Users03-WPwWJkxW.js";import"./circle-alert-Bu-Bm-K-.js";import"./binder-BIOI6WTI.js";import"./popover-LqMcnJDX.js";import"./use-mcp-prompts-BFuZEiT7.js";import"./ArrowUp-DIH4YIj4.js";import"./Edit01-DDAETsCp.js";import"./localstorage-keys-BKdqO3Zg.js";import"./SearchMd-BfeHnYp2.js";import"./use-create-virtual-mcp-D7gmSMxi.js";import"./Grid01-DkopJaqC.js";import"./Image01-CrPuVZdU.js";const Hn=G("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);const Vn=G("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);const Xt=G("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Zt=G("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const Go=G("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);const Xo=G("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);const Zo=G("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);const Bn=G("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const Un=G("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);const qn=G("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);const Kn=G("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);const Jn=G("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]),Qt=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M12 8v4m0 4h.01M2 8.523v6.954c0 .245 0 .367.028.482a1 1 0 0 0 .12.29c.061.1.148.187.32.36l4.923 4.922c.173.173.26.26.36.322.09.054.188.095.29.12.115.027.237.027.482.027h6.954c.245 0 .367 0 .482-.028a.998.998 0 0 0 .29-.12c.1-.061.187-.148.36-.32l4.922-4.923c.173-.173.26-.26.322-.36a.998.998 0 0 0 .12-.29c.027-.115.027-.237.027-.482V8.523c0-.245 0-.367-.028-.482a.998.998 0 0 0-.12-.29c-.061-.1-.148-.187-.32-.36L16.608 2.47c-.173-.173-.26-.26-.36-.322a1 1 0 0 0-.29-.12C15.844 2 15.722 2 15.477 2H8.523c-.245 0-.367 0-.482.028a1 1 0 0 0-.29.12c-.1.061-.187.148-.36.32L2.47 7.392c-.173.173-.26.26-.322.36a1 1 0 0 0-.12.29C2 8.156 2 8.278 2 8.523Z"}));Qt.displayName="AlertOctagon";const Gn=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M20.5 8v8.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.22 21 17.38 21 15.7 21H8.3c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3.5 18.72 3.5 17.88 3.5 16.2V8m.1-5h16.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C22 3.76 22 4.04 22 4.6v1.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C21.24 8 20.96 8 20.4 8H3.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C2 7.24 2 6.96 2 6.4V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C2.76 3 3.04 3 3.6 3Zm6 8.5h4.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C16 12.26 16 12.54 16 13.1v.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437c-.214.109-.494.109-1.054.109H9.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C8 14.74 8 14.46 8 13.9v-.8c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C8.76 11.5 9.04 11.5 9.6 11.5Z"}));Gn.displayName="Box";const Xn=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"m22.7 11.5-2 2-2-2m2.245 1.5A9 9 0 1 0 19 17.657M12 7v5l3 2"}));Xn.displayName="ClockFastForward";const Zn=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"m17 17 5-5-5-5M7 7l-5 5 5 5m7-14-4 18"}));Zn.displayName="Code02";const Be=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M6.8 3h-.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C3 4.52 3 5.08 3 6.2v11.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21h.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C10 19.48 10 18.92 10 17.8V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C8.48 3 7.92 3 6.8 3Zm11 0h-.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C14 4.52 14 5.08 14 6.2v11.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C15.52 21 16.08 21 17.2 21h.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C19.48 3 18.92 3 17.8 3Z"}));Be.displayName="Columns01";const Qn=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M4 4v1.4c0 3.36 0 5.04.654 6.324a6 6 0 0 0 2.622 2.622C8.56 15 10.24 15 13.6 15H20m0 0-5-5m5 5-5 5"}));Qn.displayName="CornerDownRight";const Yn=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M21 5c0 1.657-4.03 3-9 3S3 6.657 3 5m18 0c0-1.657-4.03-3-9-3S3 3.343 3 5m18 0v14c0 1.66-4 3-9 3s-9-1.34-9-3V5m18 7c0 1.66-4 3-9 3s-9-1.34-9-3"}));Yn.displayName="Database01";const es=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M3 3v10.2c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 18 6.12 18 7.8 18H15m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0ZM3 8h12m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0Z"}));es.displayName="GitBranch01";const ts=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"m13 22-3-3m0 0 3-3m-3 3h5a7 7 0 0 0 3-13.326M6 18.326A7 7 0 0 1 9 5h5m0 0-3-3m3 3-3 3"}));ts.displayName="Repeat03";Fs({title:pt().min(1),description:pt().nullable(),body:pt()});function ht(t){for(const e of t.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Qo(){const t=window.location.pathname.split("/").filter(Boolean),e=t.findIndex(s=>s==="mcps"),n=e>=0?t[e+1]:void 0;return n?decodeURIComponent(n):void 0}function Yo(t){const e=C.c(13),{form:n}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("div",{className:"text-sm font-medium text-foreground",children:"Details"}),e[0]=s):s=e[0];let i;e[1]!==n.control?(i=o.jsxs("div",{className:"flex flex-col gap-4",children:[s,o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[o.jsx(xt,{control:n.control,name:"title",render:nr}),o.jsx(xt,{control:n.control,name:"description",render:tr})]})]}),e[1]=n.control,e[2]=i):i=e[2];let r,l;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("div",{className:"text-sm font-medium text-foreground",children:"Message"}),l=o.jsx("div",{className:"text-xs text-muted-foreground",children:"This becomes the user message in the prompt."}),e[3]=r,e[4]=l):(r=e[3],l=e[4]);let c;e[5]!==n.control?(c=o.jsxs("div",{className:"flex flex-col gap-2",children:[r,l,o.jsx(xt,{control:n.control,name:"body",render:er})]}),e[5]=n.control,e[6]=c):c=e[6];let a;e[7]!==i||e[8]!==c?(a=o.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[i,c]}),e[7]=i,e[8]=c,e[9]=a):a=e[9];let u;return e[10]!==n||e[11]!==a?(u=o.jsx(ro,{...n,children:a}),e[10]=n,e[11]=a,e[12]=u):u=e[12],u}function er(t){const{field:e}=t;return o.jsx(Ht,{children:o.jsx(Vt,{children:o.jsx(St,{...e,value:e.value??"",placeholder:"Write the prompt message…",className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})}function tr(t){const{field:e}=t;return o.jsxs(Ht,{children:[o.jsx("div",{className:"text-xs text-muted-foreground",children:"Description"}),o.jsx(Vt,{children:o.jsx(Bt,{...e,value:e.value??"",placeholder:"Add a description…",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function nr(t){const{field:e}=t;return o.jsxs(Ht,{children:[o.jsx("div",{className:"text-xs text-muted-foreground",children:"Title"}),o.jsx(Vt,{children:o.jsx(Bt,{...e,placeholder:"Untitled prompt",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function sr(t){const e=C.c(41),{providerId:n,promptId:s}=t,r=_t().location.href,{org:l}=X(),c=n||null;let a;e[0]!==l.id||e[1]!==c?(a={connectionId:c,orgId:l.id},e[0]=l.id,e[1]=c,e[2]=a):a=e[2];const u=Z(a),d=Pt(n,"PROMPT",s,u),f=Lt(n,"PROMPT",u),m=f.update.isPending;let x;e[3]!==d?(x=d?{title:d.title,description:d.description??null,body:ht(d)}:void 0,e[3]=d,e[4]=x):x=e[4];let p;e[5]!==x?(p={values:x},e[5]=x,e[6]=p):p=e[6];const h=Hs(p);let g;e[7]!==h||e[8]!==d?(g=()=>{d&&h.reset({title:d.title,description:d.description??null,body:ht(d)})},e[7]=h,e[8]=d,e[9]=g):g=e[9];const b=g;let j;e[10]!==f.update||e[11]!==h||e[12]!==s?(j=h.handleSubmit(async M=>{const L=await f.update.mutateAsync({id:s,data:{title:M.title,description:M.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:M.body}}]}});h.reset({title:L.title,description:L.description??null,body:ht(L)})}),e[10]=f.update,e[11]=h,e[12]=s,e[13]=j):j=e[13];const y=j;if(!d){let M;return e[14]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsx("div",{className:"flex h-full w-full bg-background",children:o.jsx(In,{title:"Prompt not found",description:"This prompt may have been deleted or you may not have access to it."})}),e[14]=M):M=e[14],M}let S;e[15]!==d.title?(S=o.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:d.title}),e[15]=d.title,e[16]=S):S=e[16];let v;e[17]!==d.description?(v=d.description?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),o.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:d.description})]}):null,e[17]=d.description,e[18]=v):v=e[18];let w;e[19]!==S||e[20]!==v?(w=o.jsx(Tn,{children:o.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[S,v]})}),e[19]=S,e[20]=v,e[21]=w):w=e[21];let N;e[22]!==y?(N=()=>{y()},e[22]=y,e[23]=N):N=e[23];let _;e[24]!==h.formState.isDirty||e[25]!==m||e[26]!==b||e[27]!==N?(_=o.jsx($n,{onSave:N,onUndo:b,isDirty:h.formState.isDirty,isSaving:m}),e[24]=h.formState.isDirty,e[25]=m,e[26]=b,e[27]=N,e[28]=_):_=e[28];let I;e[29]!==d.title||e[30]!==r?(I=o.jsx(Ft,{title:d.title,url:r,icon:"description"}),e[29]=d.title,e[30]=r,e[31]=I):I=e[31];let E;e[32]!==_||e[33]!==I?(E=o.jsxs(Ut,{children:[_,I]}),e[32]=_,e[33]=I,e[34]=E):E=e[34];let R;e[35]!==h?(R=o.jsx("div",{className:"h-full",children:o.jsx(Yo,{form:h})}),e[35]=h,e[36]=R):R=e[36];let P;return e[37]!==E||e[38]!==R||e[39]!==w?(P=o.jsxs(ce,{children:[w,E,R]}),e[37]=E,e[38]=R,e[39]=w,e[40]=P):P=e[40],P}function or(t){const e=C.c(4),{itemId:n}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=Qo(),e[0]=s):s=e[0];const i=s;if(!i){let l;return e[1]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx("div",{className:"flex h-full w-full bg-background",children:o.jsx(In,{title:"Prompt not found",description:"Missing connection information in the current route."})}),e[1]=l):l=e[1],l}let r;return e[2]!==n?(r=o.jsx(_n,{children:o.jsx(k.Suspense,{fallback:null,children:o.jsx(sr,{providerId:i,promptId:n})})}),e[2]=n,e[3]=r):r=e[3],r}const rr=Vs("relative w-full rounded-lg border px-4 py-3 text-sm flex items-start gap-3 [&>svg]:size-4 [&>svg]:flex-shrink-0 [&>svg]:mt-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-destructive/5 text-destructive border-destructive/25 [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",warning:"bg-warning/10 text-warning-foreground border-warning [&>svg]:text-current *:data-[slot=alert-description]:text-warning-foreground/90",success:"bg-success/10 text-success-foreground border-success [&>svg]:text-current *:data-[slot=alert-description]:text-success-foreground/90",info:"bg-card text-card-foreground border-border [&>svg]:text-current *:data-[slot=alert-description]:text-muted-foreground/90"}},defaultVariants:{variant:"default"}});function ir(t){const e=C.c(10);let n,s,i;e[0]!==t?({className:n,variant:i,...s}=t,e[0]=t,e[1]=n,e[2]=s,e[3]=i):(n=e[1],s=e[2],i=e[3]);let r;e[4]!==n||e[5]!==i?(r=O(rr({variant:i}),n),e[4]=n,e[5]=i,e[6]=r):r=e[6];let l;return e[7]!==s||e[8]!==r?(l=o.jsx("div",{"data-slot":"alert",role:"alert",className:r,...s}),e[7]=s,e[8]=r,e[9]=l):l=e[9],l}function lr(t){const e=C.c(8);let n,s;e[0]!==t?({className:n,...s}=t,e[0]=t,e[1]=n,e[2]=s):(n=e[1],s=e[2]);let i;e[3]!==n?(i=O("line-clamp-1 min-h-4 font-medium tracking-tight",n),e[3]=n,e[4]=i):i=e[4];let r;return e[5]!==s||e[6]!==i?(r=o.jsx("div",{"data-slot":"alert-title",className:i,...s}),e[5]=s,e[6]=i,e[7]=r):r=e[7],r}function cr(t){const e=C.c(8);let n,s;e[0]!==t?({className:n,...s}=t,e[0]=t,e[1]=n,e[2]=s):(n=e[1],s=e[2]);let i;e[3]!==n?(i=O("text-muted-foreground leading-relaxed",n),e[3]=n,e[4]=i):i=e[4];let r;return e[5]!==s||e[6]!==i?(r=o.jsx("div",{"data-slot":"alert-description",className:i,...s}),e[5]=s,e[6]=i,e[7]=r):r=e[7],r}const fn=t=>t.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function ar(t){const e=C.c(9),{toolName:n,connectionId:s,onBack:i}=t;let r;e[0]!==s?(r={connectionId:s},e[0]=s,e[1]=r):r=e[1];const l=uo(r);if(!l.isAuthenticated){let u;return e[2]!==l.supportsOAuth||e[3]!==i?(u=o.jsx("div",{className:"flex h-full items-center justify-center",children:l.supportsOAuth?o.jsx(fo,{onAuthenticate:()=>i(),buttonText:"Go back to authenticate"}):o.jsx(mo,{hasReadme:!1})}),e[2]=l.supportsOAuth,e[3]=i,e[4]=u):u=e[4],u}const c=`${s}:${n}`;let a;return e[5]!==s||e[6]!==c||e[7]!==n?(a=o.jsx(dr,{toolName:n,connectionId:s},c),e[5]=s,e[6]=c,e[7]=n,e[8]=a):a=e[8],a}function dr({toolName:t,connectionId:e}){const s=_t().location.href,{replayId:i}=Bs({strict:!1}),r=(()=>{if(!i)return null;const T=`replay-${i}`,$=sessionStorage.getItem(T);if(!$)return null;sessionStorage.removeItem(T);try{return JSON.parse($)}catch{return null}})(),l=(()=>{if(!r)return null;const T={};for(const[$,A]of Object.entries(r))A!==null&&typeof A=="object"?T[$]=JSON.stringify(A,null,2):T[$]=A;return T})(),[c,a]=k.useState(l??{}),[u,d]=k.useState(r?JSON.stringify(r,null,2):"{}"),[f,m]=k.useState(null),[x,p]=k.useState(null),[h,g]=k.useState(!1),[b,j]=k.useState(null),{org:y}=X(),S=Ye(e),v=Z({connectionId:e,orgId:y.id}),w=Dt({client:v}),N=w.data?.tools?.find(T=>T.name===t),_=N?.inputSchema?.properties,I=_?Object.keys(_):[],E=I.length>0,R={};if(E&&N?.inputSchema?.properties)for(const T of I)R[T]=N.inputSchema.required?.includes(T)?"":void 0;const P=T=>Object.prototype.hasOwnProperty.call(c,T),M=async()=>{g(!0),p(null),m(null),j(null);const T=performance.now();try{if(!v)throw new Error("MCP client is not available");const $=E?{...R,...c}:(()=>{const V=u.trim();if(!V)return{};const J=JSON.parse(V);if(J&&typeof J=="object")return J;throw new Error("Raw JSON input must be an object.")})();E&&N?.inputSchema?.properties&&Object.entries(N.inputSchema.properties).forEach(([V,J])=>{if((J.type==="object"||J.type==="array")&&typeof $[V]=="string")try{$[V]=JSON.parse($[V])}catch{}});const A=await v.callTool({name:t,arguments:$}),B=A.structuredContent??A,oe=performance.now(),Q=Math.round(oe-T);m(B);const se=JSON.stringify(B),K=new TextEncoder().encode(se).length;j({duration:`${Q}ms`,bytes:`${K} bytes`,tokens:`~${Math.ceil(K/4)} tokens`,cost:"$0.0000"})}catch($){const A=$ instanceof Error?$.message:String($);p(A||"Unknown error occurred");const B=performance.now();j({duration:`${Math.round(B-T)}ms`})}finally{g(!1)}},L=(T,$)=>{a(A=>({...A,[T]:$}))},D=()=>{m(null),p(null),j(null)},F=N?.name??fn(t),ee=o.jsx(Mn,{children:o.jsxs(Pn,{children:[o.jsx(Te,{children:o.jsx(Ke,{asChild:!0,children:o.jsx(qe,{to:"/$org/mcps",params:{org:y.slug},children:"Connections"})})}),o.jsx(Je,{}),S&&o.jsxs(o.Fragment,{children:[o.jsx(Te,{children:o.jsx(Ke,{asChild:!0,children:o.jsx(qe,{to:"/$org/mcps/$connectionId",params:{org:y.slug,connectionId:e},search:{tab:"tools"},children:S.title})})}),o.jsx(Je,{})]}),o.jsx(Te,{children:o.jsx(Ln,{children:F})})]})});return o.jsxs(ce,{breadcrumb:ee,children:[o.jsx(Ut,{children:o.jsx(Ft,{title:N?.name??fn(t),url:s,icon:"build"})}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 h-full",children:[o.jsx("div",{className:"flex flex-col border-r border-border overflow-hidden",children:o.jsxs("div",{className:"flex-1 overflow-auto",children:[o.jsx("div",{className:"flex flex-col gap-4 p-6 border-b border-border min-h-28",children:o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx(Qe,{icon:S?.icon||null,name:S?.title||t,size:"sm",className:"shadow-sm shrink-0"}),o.jsx("h1",{className:"text-lg font-medium text-foreground leading-none",children:t}),o.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit",children:[w.isSuccess?o.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500 animate-pulse shrink-0"}):w.isLoading?o.jsx(Me,{size:10,className:"animate-spin text-yellow-500 shrink-0"}):o.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-red-500 shrink-0"}),o.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:w.isSuccess?"ready":w.isLoading?"connecting":"error"})]})]}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:N?.description||"No description available"})]})}),o.jsxs("div",{className:"flex flex-col p-6 gap-4",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Parameters"}),N?.inputSchema?.required&&N.inputSchema.required.length>0&&o.jsxs("span",{className:"text-xs text-muted-foreground",children:[o.jsx("span",{className:"text-red-500",children:"*"})," Required"]})]}),o.jsx("div",{className:"space-y-4",children:E&&N?.inputSchema?.properties?Object.entries(N.inputSchema.properties).map(([T,$])=>o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[T,N.inputSchema?.required?.includes(T)&&o.jsx("span",{className:"text-red-500 text-xs",children:"*"})]}),o.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:$.type})]}),$.description&&o.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:$.description}),$.type==="object"||$.type==="array"?o.jsx(St,{className:"font-mono text-xs",value:P(T)?c[T]??"":R[T]??"",onChange:A=>L(T,A.target.value),placeholder:`Enter ${T} as JSON...`,rows:3}):$.type==="boolean"?o.jsxs(En,{value:P(T)?String(c[T]??""):"",onValueChange:A=>L(T,A==="true"),children:[o.jsx(On,{children:o.jsx(Rn,{placeholder:"Select true or false..."})}),o.jsxs(An,{children:[o.jsx(wt,{value:"true",children:"true"}),o.jsx(wt,{value:"false",children:"false"})]})]}):o.jsx(Bt,{value:P(T)?c[T]??"":R[T]??"",onChange:A=>L(T,A.target.value),placeholder:`Enter ${T}...`})]},T)):N?.inputSchema&&!E?o.jsxs("div",{className:"space-y-2",children:[o.jsx("label",{className:"text-sm font-medium",children:"Raw JSON Input"}),o.jsx(St,{className:"font-mono text-xs min-h-[120px]",value:u,onChange:T=>d(T.target.value),placeholder:'e.g. { "foo": "bar" }'})]}):o.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:o.jsx("p",{className:"text-sm text-muted-foreground",children:"No parameters required"})})})]})]})}),o.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[o.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-t lg:border-t-0 border-b border-border bg-background",children:[o.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:"Result"}),b&&o.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx(lo,{className:"h-3 w-3 text-muted-foreground"}),o.jsx("span",{className:"font-mono text-foreground",children:b.duration})]}),b.tokens&&o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx(Gn,{className:"h-3 w-3 text-muted-foreground"}),o.jsx("span",{className:"font-mono text-foreground",children:b.tokens})]}),b.bytes&&o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx(Yn,{className:"h-3 w-3 text-muted-foreground"}),o.jsx("span",{className:"font-mono text-foreground",children:b.bytes})]}),b.cost&&o.jsx("div",{className:"flex items-center gap-1.5",children:o.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]})]}),o.jsx("div",{className:"flex items-center justify-end lg:justify-between px-4 h-14 border-b border-border bg-background",children:o.jsxs("div",{className:"flex items-center gap-2 w-full lg:w-auto",children:[o.jsx(U,{size:"sm",variant:"default",className:"h-8 gap-2 flex-1 lg:flex-none",onClick:M,disabled:h,children:h?o.jsxs(o.Fragment,{children:[o.jsx(Me,{size:14,className:"animate-spin"}),"Executing..."]}):o.jsxs(o.Fragment,{children:[o.jsx(qt,{className:"h-3.5 w-3.5 fill-current"}),"Execute Tool"]})}),o.jsx(Ot,{children:o.jsxs(Rt,{children:[o.jsx(At,{asChild:!0,children:o.jsx(U,{size:"icon",variant:"outline",className:"h-8 w-8 shrink-0",onClick:D,disabled:!f&&!x,children:o.jsx(Kt,{size:14})})}),o.jsx(Mt,{children:o.jsx("p",{children:"Clear results"})})]})})]})}),x&&o.jsx("div",{className:"px-6 py-4 bg-background",children:o.jsx(ir,{variant:"destructive",children:o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(io,{className:"h-4 w-4"}),o.jsx(lr,{className:"mb-0",children:"Execution Failed"})]}),o.jsx(cr,{className:"text-xs text-destructive",children:x})]})})}),o.jsx("div",{className:"relative flex-1 overflow-auto bg-muted/50",children:f?o.jsxs(o.Fragment,{children:[o.jsx($e,{code:JSON.stringify(f,null,2),language:"json",height:"100%",readOnly:!0}),o.jsx(U,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(f,null,2)),yn.success("Copied to clipboard")},children:o.jsx(ao,{className:"h-3.5 w-3.5"})})]}):o.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[o.jsx(co,{className:"h-12 w-12 mb-3 opacity-40"}),o.jsx("p",{className:"text-sm",children:"Run the tool to see results"})]})})]})]})]})}function ur(t){const e=C.c(7),{itemId:n,onBack:s}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},e[0]=i):i=e[0];const l=re(i).connectionId;if(!Ye(l)||!l){let d;return e[1]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[o.jsx("h3",{className:"text-lg font-semibold",children:"Connection not found"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"This connection may have been deleted or you may not have access."})]})}),e[1]=d):d=e[1],d}let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsx(Me,{size:32,className:"animate-spin text-muted-foreground"})}),e[2]=a):a=e[2];let u;return e[3]!==l||e[4]!==s||e[5]!==n?(u=o.jsx(k.Suspense,{fallback:a,children:o.jsx(ar,{toolName:n,connectionId:l,onBack:s})}),e[3]=l,e[4]=s,e[5]=n,e[6]=u):u=e[6],u}const mn=t=>{let e;const n=new Set,s=(u,d)=>{const f=typeof u=="function"?u(e):u;if(!Object.is(f,e)){const m=e;e=d??(typeof f!="object"||f===null)?f:Object.assign({},e,f),n.forEach(x=>x(e,m))}},i=()=>e,c={setState:s,getState:i,getInitialState:()=>a,subscribe:u=>(n.add(u),()=>n.delete(u))},a=e=t(s,i,c);return c},Yt=(t=>t?mn(t):mn),fr=t=>t;function Nt(t,e=fr){const n=W.useSyncExternalStore(t.subscribe,W.useCallback(()=>e(t.getState()),[t,e]),W.useCallback(()=>e(t.getInitialState()),[t,e]));return W.useDebugValue(n),n}const mr=t=>{const e=Yt(t),n=s=>Nt(e,s);return Object.assign(n,e),n},pr=(t=>mr);function ns(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var r;const l=a=>a===null?null:JSON.parse(a,void 0),c=(r=n.getItem(i))!=null?r:null;return c instanceof Promise?c.then(l):l(c)},setItem:(i,r)=>n.setItem(i,JSON.stringify(r,void 0)),removeItem:i=>n.removeItem(i)}}const Ct=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(s){return Ct(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return Ct(s)(n)}}}},xr=(t,e)=>(n,s,i)=>{let r={storage:ns(()=>localStorage),partialize:g=>g,version:0,merge:(g,b)=>({...b,...g}),...e},l=!1,c=0;const a=new Set,u=new Set;let d=r.storage;if(!d)return t((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${r.name}', the given storage is currently unavailable.`),n(...g)},s,i);const f=()=>{const g=r.partialize({...s()});return d.setItem(r.name,{state:g,version:r.version})},m=i.setState;i.setState=(g,b)=>(m(g,b),f());const x=t((...g)=>(n(...g),f()),s,i);i.getInitialState=()=>x;let p;const h=()=>{var g,b;if(!d)return;const j=++c;l=!1,a.forEach(S=>{var v;return S((v=s())!=null?v:x)});const y=((b=r.onRehydrateStorage)==null?void 0:b.call(r,(g=s())!=null?g:x))||void 0;return Ct(d.getItem.bind(d))(r.name).then(S=>{if(S)if(typeof S.version=="number"&&S.version!==r.version){if(r.migrate){const v=r.migrate(S.state,S.version);return v instanceof Promise?v.then(w=>[!0,w]):[!0,v]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,S.state];return[!1,void 0]}).then(S=>{var v;if(j!==c)return;const[w,N]=S;if(p=r.merge(N,(v=s())!=null?v:x),n(p,!0),w)return f()}).then(()=>{j===c&&(y?.(p,void 0),p=s(),l=!0,u.forEach(S=>S(p)))}).catch(S=>{j===c&&y?.(void 0,S)})};return i.persist={setOptions:g=>{r={...r,...g},g.storage&&(d=g.storage)},clearStorage:()=>{d?.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>h(),hasHydrated:()=>l,onHydrate:g=>(a.add(g),()=>{a.delete(g)}),onFinishHydration:g=>(u.add(g),()=>{u.delete(g)})},r.skipHydration||h(),p||x},ss=xr,{useSyncExternalStoreWithSelector:hr}=Us,gr=t=>t;function br(t,e=gr,n){const s=hr(t.subscribe,t.getState,t.getInitialState,e,n);return W.useDebugValue(s),s}const pn=t=>Symbol.iterator in t,xn=t=>"entries"in t,hn=(t,e)=>{const n=t instanceof Map?t:new Map(t.entries()),s=e instanceof Map?e:new Map(e.entries());if(n.size!==s.size)return!1;for(const[i,r]of n)if(!s.has(i)||!Object.is(r,s.get(i)))return!1;return!0},jr=(t,e)=>{const n=t[Symbol.iterator](),s=e[Symbol.iterator]();let i=n.next(),r=s.next();for(;!i.done&&!r.done;){if(!Object.is(i.value,r.value))return!1;i=n.next(),r=s.next()}return!!i.done&&!!r.done};function vr(t,e){return Object.is(t,e)?!0:typeof t!="object"||t===null||typeof e!="object"||e===null||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e)?!1:pn(t)&&pn(e)?xn(t)&&xn(e)?hn(t,e):jr(t,e):hn({entries:()=>Object.entries(t)},{entries:()=>Object.entries(e)})}function yr(t,e="Output"){if(!t)return`interface ${e} {}`;function n(r){if(!r||typeof r!="object")return"unknown";const l=r.type;if(Array.isArray(l))return l.map(c=>s(c)).join(" | ");switch(l){case"string":return r.enum?r.enum.map(c=>`"${c}"`).join(" | "):"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";case"array":{const c=r.items;return c?`${n(c)}[]`:"unknown[]"}case"object":return i(r);default:return r.anyOf?r.anyOf.map(n).join(" | "):r.oneOf?r.oneOf.map(n).join(" | "):r.allOf?r.allOf.map(n).join(" & "):"unknown"}}function s(r){switch(r){case"string":return"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";default:return"unknown"}}function i(r){const l=r.properties;if(!l)return"Record<string, unknown>";const c=new Set(r.required||[]);return`{
|
|
2
2
|
${Object.entries(l).map(([u,d])=>{const f=c.has(u)?"":"?";return`${d.description?` /** ${d.description} */
|
|
3
3
|
`:""} ${u}${f}: ${n(d)};`}).join(`
|
|
4
4
|
`)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,j as i}from"./index-
|
|
1
|
+
import{c as v,j as i}from"./index-Bbl4-DhO.js";import{i as w}from"./Loading01-CR1SBu2C.js";import{i as C}from"./SearchMd-BfeHnYp2.js";import{I as k}from"./input-Cl_krHCL.js";import{c as b}from"./button-D4S1kDGV.js";function R(j){const e=v.c(21),{value:m,onChange:d,placeholder:g,onKeyDown:f,className:p,isSearching:u,disabled:n}=j,x=g===void 0?"Search...":g;let t;e[0]!==p?(t=b("shrink-0 w-full border-b border-border h-12",p),e[0]=p,e[1]=t):t=e[1];const h=n?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==h?(s=b("flex items-center gap-2.5 h-12 px-4",h),e[2]=h,e[3]=s):s=e[3];let r;e[4]!==u?(r=u?i.jsx(w,{size:16,className:"animate-spin text-muted-foreground shrink-0"}):i.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=u,e[5]=r):r=e[5];let o;e[6]!==d?(o=N=>d(N.target.value),e[6]=d,e[7]=o):o=e[7];let l;e[8]!==n||e[9]!==f||e[10]!==x||e[11]!==o||e[12]!==m?(l=i.jsx(k,{value:m,onChange:o,onKeyDown:f,placeholder:x,disabled:n,className:"flex-1 border-0 shadow-none focus-visible:ring-0 px-0 h-full text-sm placeholder:text-muted-foreground/50 bg-transparent"}),e[8]=n,e[9]=f,e[10]=x,e[11]=o,e[12]=m,e[13]=l):l=e[13];let a;e[14]!==s||e[15]!==r||e[16]!==l?(a=i.jsxs("label",{className:s,children:[r,l]}),e[14]=s,e[15]=r,e[16]=l,e[17]=a):a=e[17];let c;return e[18]!==t||e[19]!==a?(c=i.jsx("div",{className:t,children:a}),e[18]=t,e[19]=a,e[20]=c):c=e[20],c}export{R as C};
|