@decocms/mesh 2.4.1 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/dist/client/assets/{AlertCircle-TGmdMHIF.js → AlertCircle-CZPV4eTQ.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-BINtoZZZ.js → ArrowLeft-DQOG1GuJ.js} +1 -1
  3. package/dist/client/assets/{ChevronDown-BK3AVOT-.js → ChevronDown-Cdy__m-8.js} +1 -1
  4. package/dist/client/assets/{ChevronRight-DtsM7p2S.js → ChevronRight-SzPzGSNO.js} +1 -1
  5. package/dist/client/assets/{Copy01-DR7F87HJ.js → Copy01-DS49wIzW.js} +1 -1
  6. package/dist/client/assets/{DotsHorizontal-DzPdLBgT.js → DotsHorizontal-BSoB0mo2.js} +1 -1
  7. package/dist/client/assets/{DotsVertical-CAgcl9Nx.js → DotsVertical-eZBspOrA.js} +1 -1
  8. package/dist/client/assets/{File06-BBkB2xcW.js → File06-CUqAuIUq.js} +1 -1
  9. package/dist/client/assets/{FilterLines-BJ1Mzzk8.js → FilterLines-BTBF9JAn.js} +1 -1
  10. package/dist/client/assets/{FlipBackward-k94gcKB-.js → FlipBackward-BRcPqCms.js} +1 -1
  11. package/dist/client/assets/{GitBranch01-DpZrs5Tm.js → GitBranch01-DovnqKJf.js} +1 -1
  12. package/dist/client/assets/{Grid01-CjG1MhCn.js → Grid01-R-k411L-.js} +1 -1
  13. package/dist/client/assets/{Inbox01-Upf-zaTh.js → Inbox01-bvdCozgs.js} +1 -1
  14. package/dist/client/assets/{InfoCircle-D0ub9sBN.js → InfoCircle-r2yyYHHv.js} +1 -1
  15. package/dist/client/assets/{Key01-DxPiILFd.js → Key01-BWe_1dg2.js} +1 -1
  16. package/dist/client/assets/{LinkExternal01-CHOKjLK7.js → LinkExternal01-BklnopGx.js} +1 -1
  17. package/dist/client/assets/{Loading01-SsObGWAz.js → Loading01-C0_l8AxO.js} +1 -1
  18. package/dist/client/assets/{Lock01-BNeMpTym.js → Lock01-C7_8eECJ.js} +1 -1
  19. package/dist/client/assets/{Play-BhrWuuol.js → Play-CWJY4nY_.js} +1 -1
  20. package/dist/client/assets/{Plus-8y1IlIPd.js → Plus-KTlOMNSY.js} +1 -1
  21. package/dist/client/assets/{Terminal-C1_jmxYZ.js → Terminal-DDfP4x2i.js} +1 -1
  22. package/dist/client/assets/{Trash01-zvVvKDK-.js → Trash01-BMJLKtdF.js} +1 -1
  23. package/dist/client/assets/{X-CLmMmD4k.js → X-BFdZnqth.js} +1 -1
  24. package/dist/client/assets/{XClose-Crj2jcf3.js → XClose-DTyQuBBY.js} +1 -1
  25. package/dist/client/assets/{alert-dialog-CGM0OszQ.js → alert-dialog-Dz8Vs8_m.js} +1 -1
  26. package/dist/client/assets/{auth-aI2y92hJ.js → auth-CJNQiaii.js} +1 -1
  27. package/dist/client/assets/{auth-catchall-DaVUr_EC.js → auth-catchall-qU76xBKm.js} +1 -1
  28. package/dist/client/assets/{avatar-Bq9ks0Pl.js → avatar-D4SXwEgs.js} +1 -1
  29. package/dist/client/assets/{badge-Dj8dfrNj.js → badge-99kEJDtp.js} +1 -1
  30. package/dist/client/assets/{card-vC4mNiDf.js → card-DZuxbKf1.js} +1 -1
  31. package/dist/client/assets/{checkbox-Dt08AWK8.js → checkbox-Bp9oZUjM.js} +1 -1
  32. package/dist/client/assets/{collection-detail-DadWsPlX.js → collection-detail-BB7cjHq1.js} +1 -1
  33. package/dist/client/assets/{collection-display-button-e9twft84.js → collection-display-button-CqzsQ6A1.js} +1 -1
  34. package/dist/client/assets/{collection-header-BiaWIP7C.js → collection-header-BQqQNO9q.js} +1 -1
  35. package/dist/client/assets/{collection-page-Bz9mmpcE.js → collection-page-DlOERJnr.js} +1 -1
  36. package/dist/client/assets/{collection-search-CPMmySot.js → collection-search-CIs95Rnw.js} +1 -1
  37. package/dist/client/assets/{collection-tab-CVAyIlOS.js → collection-tab-BPPicFWO.js} +1 -1
  38. package/dist/client/assets/{collection-table-wrapper-BADFN6Hp.js → collection-table-wrapper-D1OlmFUL.js} +1 -1
  39. package/dist/client/assets/{connection-card-Cjreiq7B.js → connection-card-Dm43-Wul.js} +1 -1
  40. package/dist/client/assets/{connection-detail-CJp1XMbW.js → connection-detail-DXNZMYLL.js} +1 -1
  41. package/dist/client/assets/{connections-DMhjwA8t.js → connections-BB4IEP_5.js} +1 -1
  42. package/dist/client/assets/constants-BSLIcG1u.js +1 -0
  43. package/dist/client/assets/{create-organization-dialog-oss2fm4n.js → create-organization-dialog-miyo8zQR.js} +1 -1
  44. package/dist/client/assets/{dialog-C-ka-Xj8.js → dialog-DK6VaggX.js} +1 -1
  45. package/dist/client/assets/{dropdown-menu-DzZqc1t6.js → dropdown-menu-DTGJCwi0.js} +1 -1
  46. package/dist/client/assets/{empty-state-BSBQdkCj.js → empty-state-DVGQ1BWZ.js} +1 -1
  47. package/dist/client/assets/{env-vars-editor-BVQ1A8_4.js → env-vars-editor-BG99RDNZ.js} +1 -1
  48. package/dist/client/assets/{error-boundary-DGXqcVf6.js → error-boundary-9rVpFVah.js} +1 -1
  49. package/dist/client/assets/{extract-connection-data-HIXRNNXB.js → extract-connection-data-E0zDRO9-.js} +1 -1
  50. package/dist/client/assets/{form-9qUOZbwn.js → form-BGufVhpJ.js} +1 -1
  51. package/dist/client/assets/{gateway-detail-CNPoyMXT.js → gateway-detail-IUdVxLB4.js} +1 -1
  52. package/dist/client/assets/{gateway-selector-JYNwjZsa.js → gateway-selector-CuwGVcxw.js} +1 -1
  53. package/dist/client/assets/{gateways-CpU1KhRZ.js → gateways-BA7lpBES.js} +1 -1
  54. package/dist/client/assets/{home-Dqf1G9-q.js → home-B5o9i0BD.js} +1 -1
  55. package/dist/client/assets/{index-CBpvbNSd.js → index-CaBiIG-r.js} +1 -1
  56. package/dist/client/assets/{index-DCfQDS4n.js → index-DHr9tFb0.js} +26 -26
  57. package/dist/client/assets/{index-CSlqqeJk.js → index-Rcp5vvtf.js} +1 -1
  58. package/dist/client/assets/{input-WVV54eVk.js → input-C4WvdKkR.js} +1 -1
  59. package/dist/client/assets/{layout-ZZ4G2_c5.js → layout-9R3rtCy3.js} +1 -1
  60. package/dist/client/assets/{lazy-highlighter-DKvVX1gV.js → lazy-highlighter-rNRrmjMV.js} +1 -1
  61. package/dist/client/assets/{localstorage-keys-Dor7joil.js → localstorage-keys-DrIZl-Oa.js} +1 -1
  62. package/dist/client/assets/{login-Dd0hj-db.js → login-CaUUYoaL.js} +1 -1
  63. package/dist/client/assets/{mcp-oauth-D0theXrg.js → mcp-oauth-BPterAhB.js} +1 -1
  64. package/dist/client/assets/{mcp-server-detail-CxHUmj_A.js → mcp-server-detail-BmtUegeN.js} +1 -1
  65. package/dist/client/assets/{members-BgFvubI6.js → members-Dha-TTi3.js} +1 -1
  66. package/dist/client/assets/{monaco-editor-Bm5BVoZ7.js → monaco-editor-fWj67pSD.js} +1 -1
  67. package/dist/client/assets/{monitoring-BVmdbhMk.js → monitoring-BHqKCRpc.js} +1 -1
  68. package/dist/client/assets/{oauth-callback-Ch27pAVh.js → oauth-callback-C8SrcUYM.js} +1 -1
  69. package/dist/client/assets/{page-DYsofuQq.js → page-CB2Kbqif.js} +1 -1
  70. package/dist/client/assets/{page-rReiZmpW.js → page-D_pWRusE.js} +1 -1
  71. package/dist/client/assets/{pin-to-sidebar-button-DdtbRgQM.js → pin-to-sidebar-button-Bau5uIKK.js} +1 -1
  72. package/dist/client/assets/{popover-FpmWXRwH.js → popover-B1hj_ypq.js} +1 -1
  73. package/dist/client/assets/{project-context-provider-D985fJeG.js → project-context-provider-SYQQWwHt.js} +1 -1
  74. package/dist/client/assets/{resizable-D5wbpnZ3.js → resizable-oOXY1Kb2.js} +1 -1
  75. package/dist/client/assets/{resource-tabs-DVaYCSdX.js → resource-tabs-DXcOsIua.js} +1 -1
  76. package/dist/client/assets/{select-C9QeOQVg.js → select-58kzPmSH.js} +1 -1
  77. package/dist/client/assets/{settings-DPNe8EJ-.js → settings-C8uZUL9P.js} +1 -1
  78. package/dist/client/assets/{shell-layout-tK0BgVnF.js → shell-layout-BXan9A9l.js} +1 -1
  79. package/dist/client/assets/{spinner-eOV3EISI.js → spinner-BmiYLJkt.js} +1 -1
  80. package/dist/client/assets/{switch-FZ_AielF.js → switch-D3qS-cJT.js} +1 -1
  81. package/dist/client/assets/{textarea-D4FkZQZk.js → textarea-KpHZNzGY.js} +1 -1
  82. package/dist/client/assets/{thread-history-popover-CWsU58g9.js → thread-history-popover-DrZ24omE.js} +4 -4
  83. package/dist/client/assets/{tools-list-Dw7qSVbL.js → tools-list-BQ6I_zS0.js} +1 -1
  84. package/dist/client/assets/{use-binding-C_Hb3eVh.js → use-binding-DxCldqD_.js} +9 -9
  85. package/dist/client/assets/{use-connection-BlDO8HcL.js → use-connection-gZqQ1FAI.js} +1 -1
  86. package/dist/client/assets/{use-connection-resources-BpjjJYpx.js → use-connection-resources-CBnleHDw.js} +1 -1
  87. package/dist/client/assets/{use-gateway-BFk8cz_B.js → use-gateway-BAeublLm.js} +1 -1
  88. package/dist/client/assets/{use-gateway-system-prompt-BJCW0Yy7.js → use-gateway-system-prompt-DcPNvMKK.js} +1 -1
  89. package/dist/client/assets/{use-list-state-CW9K7-cx.js → use-list-state-_DXZxdCV.js} +1 -1
  90. package/dist/client/assets/{use-mcp-DBNMFBqm.js → use-mcp-DVQixgJB.js} +1 -1
  91. package/dist/client/assets/{use-members-leu0emGt.js → use-members-Ba-WS8jO.js} +1 -1
  92. package/dist/client/assets/{use-mobile-CGm_Humj.js → use-mobile-CXfyAVoY.js} +1 -1
  93. package/dist/client/assets/{use-organization-settings-CxjRcV6F.js → use-organization-settings-g1OUF8Uc.js} +1 -1
  94. package/dist/client/assets/{use-tool-call-ulH9NkwN.js → use-tool-call-DYbV_cs9.js} +1 -1
  95. package/dist/client/assets/{useQueries-LRzp8Ajc.js → useQueries-DAJGlQiv.js} +1 -1
  96. package/dist/client/assets/useQuery--jXLy0yb.js +1 -0
  97. package/dist/client/assets/{value-D-53VvaP.js → value-DqDh9HyF.js} +1 -1
  98. package/dist/client/assets/{view-mode-toggle-CUuKZKt7.js → view-mode-toggle-DAKbBF5Z.js} +1 -1
  99. package/dist/client/assets/{workflow-CQa8c1dS.js → workflow-BO9cHs1L.js} +1 -1
  100. package/dist/client/index.html +1 -1
  101. package/dist/server/cli.js +122 -122
  102. package/dist/server/migrate.js +2 -2
  103. package/dist/server/server.js +126 -126
  104. package/package.json +1 -1
  105. package/dist/client/assets/constants-5M5y3_yy.js +0 -1
  106. package/dist/client/assets/useQuery-DMJqaseW.js +0 -1
@@ -1 +1 @@
1
- import{K as B,j as t,c as O,h as Q,r as k}from"./index-DCfQDS4n.js";import{u as U}from"./useQuery-DMJqaseW.js";import{i as W}from"./File06-BBkB2xcW.js";import{i as Y}from"./Loading01-SsObGWAz.js";import{e as J}from"./github-icon-Dp3wHhYE.js";import{C as P}from"./collection-display-button-e9twft84.js";import{C as X}from"./collection-search-CPMmySot.js";import{C as Z}from"./collection-table-wrapper-BADFN6Hp.js";import{E as z,I as ee}from"./use-connection-BlDO8HcL.js";import{C as te}from"./card-vC4mNiDf.js";import{V as se}from"./layout-ZZ4G2_c5.js";function oe(s){return s.replace(/<a[^>]*class="[^"]*anchor[^"]*"[^>]*>.*?<\/a>/gi,"")}function re(s){return s.replace(/<a\s+([^>]*href="[^"]*"[^>]*)>/gi,(e,i)=>i.includes("target=")?e.replace(/target="[^"]*"/gi,'target="_blank"'):`<a ${i} target="_blank" rel="noopener noreferrer">`)}function ne(s){let e=oe(s);return e=re(e),e}function we({repository:s}){const e=s?J(s):null,{data:i,isLoading:c}=U({queryKey:B.githubReadme(e?.owner,e?.repo),queryFn:async()=>{if(!e)return null;try{const l=await fetch(`https://api.github.com/repos/${e.owner}/${e.repo}/readme`,{headers:{Accept:"application/vnd.github.v3.html"}});if(!l.ok){if(l.status===404)return null;throw new Error(`Failed to fetch README: ${l.statusText}`)}const m=await l.text();return ne(m)}catch(l){return console.error("Error fetching README:",l),null}},enabled:!!e&&!!s,staleTime:3600*1e3,gcTime:1440*60*1e3});return c?t.jsx("div",{className:"flex items-center justify-center h-full",children:t.jsx(Y,{size:32,className:"animate-spin text-muted-foreground"})}):i?t.jsx("div",{className:"p-5 markdown-body",style:{backgroundColor:"transparent"},dangerouslySetInnerHTML:{__html:i}}):t.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center p-6",children:[t.jsx(W,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"README not found"}),t.jsx("p",{className:"text-muted-foreground max-w-md",children:"This repository doesn't have a README file, or it's not publicly accessible."})]})}function ve(s){const e=O.c(39),{tools:i,connectionId:c,org:l,onToolClick:m,showToolbar:L,emptyMessage:M}=s,D=L===void 0?!0:L,j=M===void 0?"This connection doesn't have any tools yet.":M,I=Q(),[n,$]=k.useState(""),[d,H]=k.useState("table"),[r,A]=k.useState("name"),[a,_]=k.useState("asc");let y;e[0]!==a||e[1]!==r?(y=o=>{r===o?(_(me),a==="desc"&&A(void 0)):(A(o),_("asc"))},e[0]=a,e[1]=r,e[2]=y):y=e[2];const u=y;let N;e[3]!==c||e[4]!==I||e[5]!==m||e[6]!==l?(N=o=>{m?m(o):c&&l&&I({to:"/$org/mcps/$connectionId/$collectionName/$itemId",params:{org:l,connectionId:c,collectionName:"tools",itemId:encodeURIComponent(o.name)}})},e[3]=c,e[4]=I,e[5]=m,e[6]=l,e[7]=N):N=e[7];const w=N;let v;if(e[8]!==n||e[9]!==a||e[10]!==r||e[11]!==i){const o=!i||i.length===0?[]:n.trim()?(()=>{const R=n.toLowerCase();return i.filter(b=>b.name.toLowerCase().includes(R)||b.description&&b.description.toLowerCase().includes(R))})():i;v=!r||!a?o:[...o].sort((R,b)=>{const q=R[r]||"",G=b[r]||"",K=String(q).localeCompare(String(G));return a==="asc"?K:-K}),e[8]=n,e[9]=a,e[10]=r,e[11]=i,e[12]=v}else v=e[12];const g=v;let C;e[13]===Symbol.for("react.memo_cache_sentinel")?(C=[{id:"name",header:"Name",render:ce,sortable:!0},{id:"description",header:"Description",render:le,cellClassName:"flex-1",sortable:!0}],e[13]=C):C=e[13];const V=C;let S;e[14]===Symbol.for("react.memo_cache_sentinel")?(S=V.filter(ie).map(ae),e[14]=S):S=e[14];const F=S;let f;e[15]!==u||e[16]!==D||e[17]!==a||e[18]!==r||e[19]!==d?(f=D&&t.jsx(se,{children:t.jsx(P,{viewMode:d,onViewModeChange:H,sortKey:r,sortDirection:a,onSort:u,sortOptions:F})}),e[15]=u,e[16]=D,e[17]=a,e[18]=r,e[19]=d,e[20]=f):f=e[20];let E;e[21]===Symbol.for("react.memo_cache_sentinel")?(E=o=>{o.key==="Escape"&&($(""),o.target.blur())},e[21]=E):E=e[21];let p;e[22]!==n?(p=t.jsx(X,{value:n,onChange:$,placeholder:"Search tools...",onKeyDown:E}),e[22]=n,e[23]=p):p=e[23];let h;e[24]!==j||e[25]!==u||e[26]!==w||e[27]!==n||e[28]!==a||e[29]!==r||e[30]!==g||e[31]!==d?(h=d==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:g.length===0?t.jsx(z,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":j}):t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:g.map(o=>t.jsx(te,{className:"cursor-pointer transition-colors",onClick:()=>w(o),children:t.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[t.jsx(ee,{icon:null,name:o.name,size:"md",className:"shrink-0 shadow-sm"}),t.jsxs("div",{className:"flex flex-col gap-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:o.name}),t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:o.description||"No description"})]})]})},o.name))})}):t.jsx(Z,{columns:V,data:g,isLoading:!1,sortKey:r,sortDirection:a,onSort:u,onRowClick:o=>w(o),emptyState:t.jsx(z,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":j})}),e[24]=j,e[25]=u,e[26]=w,e[27]=n,e[28]=a,e[29]=r,e[30]=g,e[31]=d,e[32]=h):h=e[32];let x;e[33]!==p||e[34]!==h?(x=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[p,h]}),e[33]=p,e[34]=h,e[35]=x):x=e[35];let T;return e[36]!==x||e[37]!==f?(T=t.jsxs(t.Fragment,{children:[f,x]}),e[36]=x,e[37]=f,e[38]=T):T=e[38],T}function ae(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function ie(s){return s.sortable}function le(s){return t.jsx("span",{className:"text-sm text-foreground",children:s.description||"—"})}function ce(s){return t.jsx("span",{className:"text-sm font-medium font-mono text-foreground",children:s.name})}function me(s){return s==="asc"?"desc":s==="desc"?null:"asc"}export{we as R,ve as T};
1
+ import{K as B,j as t,c as O,h as Q,r as k}from"./index-DHr9tFb0.js";import{u as U}from"./useQuery--jXLy0yb.js";import{i as W}from"./File06-CUqAuIUq.js";import{i as Y}from"./Loading01-C0_l8AxO.js";import{e as J}from"./github-icon-Dp3wHhYE.js";import{C as P}from"./collection-display-button-CqzsQ6A1.js";import{C as X}from"./collection-search-CIs95Rnw.js";import{C as Z}from"./collection-table-wrapper-D1OlmFUL.js";import{E as z,I as ee}from"./use-connection-gZqQ1FAI.js";import{C as te}from"./card-DZuxbKf1.js";import{V as se}from"./layout-9R3rtCy3.js";function oe(s){return s.replace(/<a[^>]*class="[^"]*anchor[^"]*"[^>]*>.*?<\/a>/gi,"")}function re(s){return s.replace(/<a\s+([^>]*href="[^"]*"[^>]*)>/gi,(e,i)=>i.includes("target=")?e.replace(/target="[^"]*"/gi,'target="_blank"'):`<a ${i} target="_blank" rel="noopener noreferrer">`)}function ne(s){let e=oe(s);return e=re(e),e}function we({repository:s}){const e=s?J(s):null,{data:i,isLoading:c}=U({queryKey:B.githubReadme(e?.owner,e?.repo),queryFn:async()=>{if(!e)return null;try{const l=await fetch(`https://api.github.com/repos/${e.owner}/${e.repo}/readme`,{headers:{Accept:"application/vnd.github.v3.html"}});if(!l.ok){if(l.status===404)return null;throw new Error(`Failed to fetch README: ${l.statusText}`)}const m=await l.text();return ne(m)}catch(l){return console.error("Error fetching README:",l),null}},enabled:!!e&&!!s,staleTime:3600*1e3,gcTime:1440*60*1e3});return c?t.jsx("div",{className:"flex items-center justify-center h-full",children:t.jsx(Y,{size:32,className:"animate-spin text-muted-foreground"})}):i?t.jsx("div",{className:"p-5 markdown-body",style:{backgroundColor:"transparent"},dangerouslySetInnerHTML:{__html:i}}):t.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center p-6",children:[t.jsx(W,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"README not found"}),t.jsx("p",{className:"text-muted-foreground max-w-md",children:"This repository doesn't have a README file, or it's not publicly accessible."})]})}function ve(s){const e=O.c(39),{tools:i,connectionId:c,org:l,onToolClick:m,showToolbar:L,emptyMessage:M}=s,D=L===void 0?!0:L,j=M===void 0?"This connection doesn't have any tools yet.":M,I=Q(),[n,$]=k.useState(""),[d,H]=k.useState("table"),[r,A]=k.useState("name"),[a,_]=k.useState("asc");let y;e[0]!==a||e[1]!==r?(y=o=>{r===o?(_(me),a==="desc"&&A(void 0)):(A(o),_("asc"))},e[0]=a,e[1]=r,e[2]=y):y=e[2];const u=y;let N;e[3]!==c||e[4]!==I||e[5]!==m||e[6]!==l?(N=o=>{m?m(o):c&&l&&I({to:"/$org/mcps/$connectionId/$collectionName/$itemId",params:{org:l,connectionId:c,collectionName:"tools",itemId:encodeURIComponent(o.name)}})},e[3]=c,e[4]=I,e[5]=m,e[6]=l,e[7]=N):N=e[7];const w=N;let v;if(e[8]!==n||e[9]!==a||e[10]!==r||e[11]!==i){const o=!i||i.length===0?[]:n.trim()?(()=>{const R=n.toLowerCase();return i.filter(b=>b.name.toLowerCase().includes(R)||b.description&&b.description.toLowerCase().includes(R))})():i;v=!r||!a?o:[...o].sort((R,b)=>{const q=R[r]||"",G=b[r]||"",K=String(q).localeCompare(String(G));return a==="asc"?K:-K}),e[8]=n,e[9]=a,e[10]=r,e[11]=i,e[12]=v}else v=e[12];const g=v;let C;e[13]===Symbol.for("react.memo_cache_sentinel")?(C=[{id:"name",header:"Name",render:ce,sortable:!0},{id:"description",header:"Description",render:le,cellClassName:"flex-1",sortable:!0}],e[13]=C):C=e[13];const V=C;let S;e[14]===Symbol.for("react.memo_cache_sentinel")?(S=V.filter(ie).map(ae),e[14]=S):S=e[14];const F=S;let f;e[15]!==u||e[16]!==D||e[17]!==a||e[18]!==r||e[19]!==d?(f=D&&t.jsx(se,{children:t.jsx(P,{viewMode:d,onViewModeChange:H,sortKey:r,sortDirection:a,onSort:u,sortOptions:F})}),e[15]=u,e[16]=D,e[17]=a,e[18]=r,e[19]=d,e[20]=f):f=e[20];let E;e[21]===Symbol.for("react.memo_cache_sentinel")?(E=o=>{o.key==="Escape"&&($(""),o.target.blur())},e[21]=E):E=e[21];let p;e[22]!==n?(p=t.jsx(X,{value:n,onChange:$,placeholder:"Search tools...",onKeyDown:E}),e[22]=n,e[23]=p):p=e[23];let h;e[24]!==j||e[25]!==u||e[26]!==w||e[27]!==n||e[28]!==a||e[29]!==r||e[30]!==g||e[31]!==d?(h=d==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:g.length===0?t.jsx(z,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":j}):t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:g.map(o=>t.jsx(te,{className:"cursor-pointer transition-colors",onClick:()=>w(o),children:t.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[t.jsx(ee,{icon:null,name:o.name,size:"md",className:"shrink-0 shadow-sm"}),t.jsxs("div",{className:"flex flex-col gap-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:o.name}),t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:o.description||"No description"})]})]})},o.name))})}):t.jsx(Z,{columns:V,data:g,isLoading:!1,sortKey:r,sortDirection:a,onSort:u,onRowClick:o=>w(o),emptyState:t.jsx(z,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":j})}),e[24]=j,e[25]=u,e[26]=w,e[27]=n,e[28]=a,e[29]=r,e[30]=g,e[31]=d,e[32]=h):h=e[32];let x;e[33]!==p||e[34]!==h?(x=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[p,h]}),e[33]=p,e[34]=h,e[35]=x):x=e[35];let T;return e[36]!==x||e[37]!==f?(T=t.jsxs(t.Fragment,{children:[f,x]}),e[36]=x,e[37]=f,e[38]=T):T=e[38],T}function ae(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function ie(s){return s.sortable}function le(s){return t.jsx("span",{className:"text-sm text-foreground",children:s.description||"—"})}function ce(s){return t.jsx("span",{className:"text-sm font-medium font-mono text-foreground",children:s.name})}function me(s){return s==="asc"?"desc":s==="desc"?null:"asc"}export{we as R,ve as T};