@decocms/mesh 2.4.0 → 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 (108) hide show
  1. package/dist/client/assets/{AlertCircle-BZ4bvRfi.js → AlertCircle-CZPV4eTQ.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-CoE0Hi8I.js → ArrowLeft-DQOG1GuJ.js} +1 -1
  3. package/dist/client/assets/{ChevronDown-Bd6n8txO.js → ChevronDown-Cdy__m-8.js} +1 -1
  4. package/dist/client/assets/{ChevronRight-Bc43l_p6.js → ChevronRight-SzPzGSNO.js} +1 -1
  5. package/dist/client/assets/{Copy01-BTTTCefb.js → Copy01-DS49wIzW.js} +1 -1
  6. package/dist/client/assets/{DotsHorizontal-Dh410BM1.js → DotsHorizontal-BSoB0mo2.js} +1 -1
  7. package/dist/client/assets/{DotsVertical-C-Nfqo18.js → DotsVertical-eZBspOrA.js} +1 -1
  8. package/dist/client/assets/{File06-td5gmARz.js → File06-CUqAuIUq.js} +1 -1
  9. package/dist/client/assets/{FilterLines-nczF4lnr.js → FilterLines-BTBF9JAn.js} +1 -1
  10. package/dist/client/assets/{FlipBackward-BLl0wh4k.js → FlipBackward-BRcPqCms.js} +1 -1
  11. package/dist/client/assets/{GitBranch01-38L6KUpt.js → GitBranch01-DovnqKJf.js} +1 -1
  12. package/dist/client/assets/{Grid01-Dl_1kAd5.js → Grid01-R-k411L-.js} +1 -1
  13. package/dist/client/assets/{Inbox01-CDma1les.js → Inbox01-bvdCozgs.js} +1 -1
  14. package/dist/client/assets/{InfoCircle-D8z5_ZlN.js → InfoCircle-r2yyYHHv.js} +1 -1
  15. package/dist/client/assets/{Key01-Cn9byqjY.js → Key01-BWe_1dg2.js} +1 -1
  16. package/dist/client/assets/{LinkExternal01-BP_6WzCI.js → LinkExternal01-BklnopGx.js} +1 -1
  17. package/dist/client/assets/{Loading01-5lHx4rM1.js → Loading01-C0_l8AxO.js} +1 -1
  18. package/dist/client/assets/{Lock01-S5DjMaRE.js → Lock01-C7_8eECJ.js} +1 -1
  19. package/dist/client/assets/{Play-DIUg73qU.js → Play-CWJY4nY_.js} +1 -1
  20. package/dist/client/assets/{Plus-wptRVGuY.js → Plus-KTlOMNSY.js} +1 -1
  21. package/dist/client/assets/{Terminal-BC7AwEkQ.js → Terminal-DDfP4x2i.js} +1 -1
  22. package/dist/client/assets/{Trash01-DMq1QD3Y.js → Trash01-BMJLKtdF.js} +1 -1
  23. package/dist/client/assets/{X-C6XvUpZP.js → X-BFdZnqth.js} +1 -1
  24. package/dist/client/assets/{XClose-Cb-zeLTZ.js → XClose-DTyQuBBY.js} +1 -1
  25. package/dist/client/assets/{alert-dialog-BJHrUd_j.js → alert-dialog-Dz8Vs8_m.js} +1 -1
  26. package/dist/client/assets/{auth-BIu7r9Ac.js → auth-CJNQiaii.js} +1 -1
  27. package/dist/client/assets/{auth-catchall-DC241-OB.js → auth-catchall-qU76xBKm.js} +1 -1
  28. package/dist/client/assets/{avatar-CLQivMfK.js → avatar-D4SXwEgs.js} +1 -1
  29. package/dist/client/assets/{badge-DQeqBGBY.js → badge-99kEJDtp.js} +1 -1
  30. package/dist/client/assets/{card-DCkJD1G_.js → card-DZuxbKf1.js} +1 -1
  31. package/dist/client/assets/{checkbox-BPcJKnx2.js → checkbox-Bp9oZUjM.js} +1 -1
  32. package/dist/client/assets/{collection-detail-BUFgqbfO.js → collection-detail-BB7cjHq1.js} +1 -1
  33. package/dist/client/assets/{collection-display-button-BT-sOTV4.js → collection-display-button-CqzsQ6A1.js} +1 -1
  34. package/dist/client/assets/{collection-header-Bf2EdT32.js → collection-header-BQqQNO9q.js} +1 -1
  35. package/dist/client/assets/{collection-page-C8XZ4WVW.js → collection-page-DlOERJnr.js} +1 -1
  36. package/dist/client/assets/{collection-search-UsqkgDWW.js → collection-search-CIs95Rnw.js} +1 -1
  37. package/dist/client/assets/{collection-tab-BOGtz91v.js → collection-tab-BPPicFWO.js} +1 -1
  38. package/dist/client/assets/{collection-table-wrapper-DXxcxGiG.js → collection-table-wrapper-D1OlmFUL.js} +1 -1
  39. package/dist/client/assets/{connection-card-uFFVVLla.js → connection-card-Dm43-Wul.js} +1 -1
  40. package/dist/client/assets/{connection-detail-C1_qwCFU.js → connection-detail-DXNZMYLL.js} +1 -1
  41. package/dist/client/assets/{connections-DK3N1G3E.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-D5-XNsnx.js → create-organization-dialog-miyo8zQR.js} +1 -1
  44. package/dist/client/assets/{dialog-Ib7U8pHy.js → dialog-DK6VaggX.js} +1 -1
  45. package/dist/client/assets/{dropdown-menu-BiS4AW--.js → dropdown-menu-DTGJCwi0.js} +1 -1
  46. package/dist/client/assets/{empty-state-DClJbSUV.js → empty-state-DVGQ1BWZ.js} +1 -1
  47. package/dist/client/assets/{env-vars-editor-BoJcH29X.js → env-vars-editor-BG99RDNZ.js} +1 -1
  48. package/dist/client/assets/error-boundary-9rVpFVah.js +1 -0
  49. package/dist/client/assets/{extract-connection-data-jQgimjIZ.js → extract-connection-data-E0zDRO9-.js} +1 -1
  50. package/dist/client/assets/{form-BuxbGg5N.js → form-BGufVhpJ.js} +1 -1
  51. package/dist/client/assets/{gateway-detail-Dc2FefpC.js → gateway-detail-IUdVxLB4.js} +1 -1
  52. package/dist/client/assets/{gateway-selector-D3Qx1Iib.js → gateway-selector-CuwGVcxw.js} +1 -1
  53. package/dist/client/assets/{gateways-DpUjszQm.js → gateways-BA7lpBES.js} +1 -1
  54. package/dist/client/assets/{home-DNXIjorG.js → home-B5o9i0BD.js} +1 -1
  55. package/dist/client/assets/{index-B8j3yBaa.js → index-CaBiIG-r.js} +1 -1
  56. package/dist/client/assets/{index-DZBFXaT_.js → index-DHr9tFb0.js} +26 -26
  57. package/dist/client/assets/{index-Ci11bImk.js → index-Rcp5vvtf.js} +1 -1
  58. package/dist/client/assets/{input-KWjuSjzn.js → input-C4WvdKkR.js} +1 -1
  59. package/dist/client/assets/{layout-B02TxUA9.js → layout-9R3rtCy3.js} +1 -1
  60. package/dist/client/assets/{lazy-highlighter-BVbwM6hf.js → lazy-highlighter-rNRrmjMV.js} +1 -1
  61. package/dist/client/assets/{localstorage-keys-ziXXhpvN.js → localstorage-keys-DrIZl-Oa.js} +1 -1
  62. package/dist/client/assets/{login-B5NkbJv_.js → login-CaUUYoaL.js} +1 -1
  63. package/dist/client/assets/{mcp-oauth-C-LpRTvB.js → mcp-oauth-BPterAhB.js} +1 -1
  64. package/dist/client/assets/{mcp-server-detail-CFf8gW0D.js → mcp-server-detail-BmtUegeN.js} +1 -1
  65. package/dist/client/assets/{members-ZCeYH7ZZ.js → members-Dha-TTi3.js} +1 -1
  66. package/dist/client/assets/{monaco-editor-BmgaGs_i.js → monaco-editor-fWj67pSD.js} +1 -1
  67. package/dist/client/assets/{monitoring-Ct3-0i82.js → monitoring-BHqKCRpc.js} +1 -1
  68. package/dist/client/assets/{oauth-callback-BvCvOyK1.js → oauth-callback-C8SrcUYM.js} +1 -1
  69. package/dist/client/assets/page-CB2Kbqif.js +35 -0
  70. package/dist/client/assets/{page-CLwNDLuV.js → page-D_pWRusE.js} +1 -1
  71. package/dist/client/assets/{pin-to-sidebar-button-CeunWdra.js → pin-to-sidebar-button-Bau5uIKK.js} +1 -1
  72. package/dist/client/assets/{popover-CYHZWxlr.js → popover-B1hj_ypq.js} +1 -1
  73. package/dist/client/assets/{project-context-provider-6vMfUBpq.js → project-context-provider-SYQQWwHt.js} +1 -1
  74. package/dist/client/assets/{resizable-DSb7rXgM.js → resizable-oOXY1Kb2.js} +1 -1
  75. package/dist/client/assets/{resource-tabs-ChCUbmUR.js → resource-tabs-DXcOsIua.js} +1 -1
  76. package/dist/client/assets/{select-bHRpmvzh.js → select-58kzPmSH.js} +1 -1
  77. package/dist/client/assets/{settings-Czh6I7v0.js → settings-C8uZUL9P.js} +1 -1
  78. package/dist/client/assets/{shell-layout-DYtHZc0q.js → shell-layout-BXan9A9l.js} +1 -1
  79. package/dist/client/assets/{spinner-A1jsF1CN.js → spinner-BmiYLJkt.js} +1 -1
  80. package/dist/client/assets/{switch-RYFLASzA.js → switch-D3qS-cJT.js} +1 -1
  81. package/dist/client/assets/{textarea-_Mx18lUV.js → textarea-KpHZNzGY.js} +1 -1
  82. package/dist/client/assets/{thread-history-popover-CbjIrBTu.js → thread-history-popover-DrZ24omE.js} +4 -4
  83. package/dist/client/assets/{tools-list-DqY4kR2l.js → tools-list-BQ6I_zS0.js} +1 -1
  84. package/dist/client/assets/{use-binding-Dh7eSguQ.js → use-binding-DxCldqD_.js} +9 -9
  85. package/dist/client/assets/{use-connection-BVMsW9fR.js → use-connection-gZqQ1FAI.js} +1 -1
  86. package/dist/client/assets/{use-connection-resources-Cp6HGagD.js → use-connection-resources-CBnleHDw.js} +1 -1
  87. package/dist/client/assets/{use-gateway-DJ2wz6GD.js → use-gateway-BAeublLm.js} +1 -1
  88. package/dist/client/assets/{use-gateway-system-prompt-FrFSJufL.js → use-gateway-system-prompt-DcPNvMKK.js} +1 -1
  89. package/dist/client/assets/{use-list-state-2Noltein.js → use-list-state-_DXZxdCV.js} +1 -1
  90. package/dist/client/assets/{use-mcp-DbxIdwzm.js → use-mcp-DVQixgJB.js} +1 -1
  91. package/dist/client/assets/{use-members-CvEmo-Qp.js → use-members-Ba-WS8jO.js} +1 -1
  92. package/dist/client/assets/{use-mobile-Cj5IONVM.js → use-mobile-CXfyAVoY.js} +1 -1
  93. package/dist/client/assets/{use-organization-settings-Bz3g4Zpi.js → use-organization-settings-g1OUF8Uc.js} +1 -1
  94. package/dist/client/assets/{use-tool-call-VY44CqK6.js → use-tool-call-DYbV_cs9.js} +1 -1
  95. package/dist/client/assets/{useQueries-BiKtsYpJ.js → useQueries-DAJGlQiv.js} +1 -1
  96. package/dist/client/assets/useQuery--jXLy0yb.js +1 -0
  97. package/dist/client/assets/{value-BXXW8rnd.js → value-DqDh9HyF.js} +1 -1
  98. package/dist/client/assets/{view-mode-toggle-CYuFxr7p.js → view-mode-toggle-DAKbBF5Z.js} +1 -1
  99. package/dist/client/assets/{workflow-RTyKsxRT.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-Bx_FLkPa.js +0 -1
  106. package/dist/client/assets/error-boundary-C3biDnWK.js +0 -1
  107. package/dist/client/assets/page-C9ZDngiM.js +0 -35
  108. package/dist/client/assets/useQuery-DW8RlKsd.js +0 -1
@@ -1 +1 @@
1
- import{K as B,j as t,c as O,h as Q,r as k}from"./index-DZBFXaT_.js";import{u as U}from"./useQuery-DW8RlKsd.js";import{i as W}from"./File06-td5gmARz.js";import{i as Y}from"./Loading01-5lHx4rM1.js";import{e as J}from"./github-icon-Dp3wHhYE.js";import{C as P}from"./collection-display-button-BT-sOTV4.js";import{C as X}from"./collection-search-UsqkgDWW.js";import{C as Z}from"./collection-table-wrapper-DXxcxGiG.js";import{E as z,I as ee}from"./use-connection-BVMsW9fR.js";import{C as te}from"./card-DCkJD1G_.js";import{V as se}from"./layout-B02TxUA9.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};