@decocms/mesh 2.35.0 → 2.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/dist/client/assets/{AlertCircle-BRWDZx_r.js → AlertCircle-lJsd1WSR.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-hhVT4Kgt.js → ArrowLeft-NyGN8FtU.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-07dwm1MA.js → ArrowUp-Cfl4EAcS.js} +1 -1
  4. package/dist/client/assets/{Check-n_KiNdp_.js → Check-DmxydjBL.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-BDe2LrLc.js → ChevronDown-C6ZdTyfO.js} +1 -1
  6. package/dist/client/assets/{Code01-DPGq6TT6.js → Code01-CtKfiTDD.js} +1 -1
  7. package/dist/client/assets/{Copy01-dSgWMnr9.js → Copy01-BMcgKhFM.js} +1 -1
  8. package/dist/client/assets/{CpuChip02-D4-bIMj_.js → CpuChip02-CJ6MB_gs.js} +1 -1
  9. package/dist/client/assets/{DotsHorizontal-C5FFxgpO.js → DotsHorizontal-BUtSXkqI.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-_ZO_fNF7.js → DotsVertical-Dz9n-5F-.js} +1 -1
  11. package/dist/client/assets/{Download01-H-0ecpIj.js → Download01-xZY3OR1j.js} +1 -1
  12. package/dist/client/assets/{Edit01-nGCAvXPD.js → Edit01-BT4G_YIy.js} +1 -1
  13. package/dist/client/assets/{File06-CbLEGD6l.js → File06-uEDwGa2p.js} +1 -1
  14. package/dist/client/assets/{FilterLines-CRZrobVY.js → FilterLines-CAbmAqd-.js} +1 -1
  15. package/dist/client/assets/{FlipBackward-DEk7agK1.js → FlipBackward-CGc38rD2.js} +1 -1
  16. package/dist/client/assets/{GitBranch01-8cUKFct3.js → GitBranch01-Ca-8ywjS.js} +1 -1
  17. package/dist/client/assets/{Grid01-D_y10H_F.js → Grid01-D-48LkYB.js} +1 -1
  18. package/dist/client/assets/{Home02-CcZBoBXH.js → Home02-D4_hiRAj.js} +1 -1
  19. package/dist/client/assets/{Image01-DAeUMBHm.js → Image01-9m5NEF--.js} +1 -1
  20. package/dist/client/assets/{Inbox01-DYU61nmV.js → Inbox01-C3nQFXch.js} +1 -1
  21. package/dist/client/assets/{InfoCircle-B5w8XDv3.js → InfoCircle-nF74NMP8.js} +1 -1
  22. package/dist/client/assets/{Key01-BMvQCi5l.js → Key01-xCvKojzf.js} +1 -1
  23. package/dist/client/assets/{LinkExternal01-Bi1B9G37.js → LinkExternal01-DyfF0hfT.js} +1 -1
  24. package/dist/client/assets/{List-AGMu6Jg9.js → List-CbDyi-_I.js} +1 -1
  25. package/dist/client/assets/{Loading01-mNUVI85L.js → Loading01-CN4PjLYm.js} +1 -1
  26. package/dist/client/assets/{Lock01-B3WHG0KG.js → Lock01-WemfJe2M.js} +1 -1
  27. package/dist/client/assets/{Play-Cf7Any1j.js → Play-_NYO0aZO.js} +1 -1
  28. package/dist/client/assets/{Plus-BBofXpHO.js → Plus-D1XC-LWM.js} +1 -1
  29. package/dist/client/assets/{SearchMd-BCAxnQkD.js → SearchMd-BgsYwh_0.js} +1 -1
  30. package/dist/client/assets/{Terminal-rmcOb2qR.js → Terminal-DNQvnGyj.js} +1 -1
  31. package/dist/client/assets/{Trash01-r91jWYrx.js → Trash01-XWQVxRUg.js} +1 -1
  32. package/dist/client/assets/{Upload01-CHkKcKN6.js → Upload01-Bx3FQ-WR.js} +1 -1
  33. package/dist/client/assets/{X-C-LXD8Fs.js → X-BHMn15uu.js} +1 -1
  34. package/dist/client/assets/{XClose-Cuyiwbqc.js → XClose-DrrGYZAf.js} +1 -1
  35. package/dist/client/assets/agent-detail-BSaqEYBm.js +1 -0
  36. package/dist/client/assets/{agents-fnv41ET7.js → agents-Cax61kmw.js} +1 -1
  37. package/dist/client/assets/{alert-dialog-b2qaVWQf.js → alert-dialog-BXDbbD3T.js} +1 -1
  38. package/dist/client/assets/{auth-catchall-CT8C3FiC.js → auth-catchall-BzJ9XgEE.js} +1 -1
  39. package/dist/client/assets/{avatar-CJ18d1Yr.js → avatar-DszQRzwK.js} +1 -1
  40. package/dist/client/assets/{badge-BLC7Dsve.js → badge-ZMieXKPf.js} +1 -1
  41. package/dist/client/assets/{binder-BG1MkJXb.js → binder-sRiH1ogE.js} +1 -1
  42. package/dist/client/assets/{button-CWaK1hUN.js → button-Bu5b3WTW.js} +1 -1
  43. package/dist/client/assets/{card-7SgaoQef.js → card-huVl9i-i.js} +1 -1
  44. package/dist/client/assets/{checkbox-BWBpAWkB.js → checkbox-DLuP_uee.js} +1 -1
  45. package/dist/client/assets/{collection-detail-DUhOfUr0.js → collection-detail-Bq6ZFqnT.js} +2 -2
  46. package/dist/client/assets/{collection-display-button-DKWP6xRi.js → collection-display-button-Cb5uS-rc.js} +1 -1
  47. package/dist/client/assets/{collection-header-I0z7H0ZC.js → collection-header-CemM_w2D.js} +1 -1
  48. package/dist/client/assets/{collection-page-EuoaVB95.js → collection-page-VnMc_pGz.js} +1 -1
  49. package/dist/client/assets/{collection-search-CP09UmnI.js → collection-search-BVQF86eY.js} +1 -1
  50. package/dist/client/assets/{collection-tab-Cyh1pe9u.js → collection-tab-ClpFqQOx.js} +1 -1
  51. package/dist/client/assets/{collection-table-wrapper--qQDqi3a.js → collection-table-wrapper-HRrsYLN0.js} +1 -1
  52. package/dist/client/assets/{connection-card-dyAZPnBc.js → connection-card-DiYaoNe1.js} +1 -1
  53. package/dist/client/assets/connection-detail-c39fzg2m.js +1 -0
  54. package/dist/client/assets/{connections-DBGBr_4l.js → connections-CixvFZTx.js} +1 -1
  55. package/dist/client/assets/{constants-D7TSocv6.js → constants-C9jqRuDQ.js} +1 -1
  56. package/dist/client/assets/constants-Gfu8WPug.js +1 -0
  57. package/dist/client/assets/{create-organization-dialog-DrmGwR9J.js → create-organization-dialog-CeY4ItWb.js} +1 -1
  58. package/dist/client/assets/{dialog-CkzeDWMv.js → dialog-CZLL2sHo.js} +1 -1
  59. package/dist/client/assets/{dropdown-menu-eADXqdeC.js → dropdown-menu-BI7MuzMw.js} +1 -1
  60. package/dist/client/assets/{dynamic-plugin-layout-ObC7Ud51.js → dynamic-plugin-layout-D1oi470P.js} +1 -1
  61. package/dist/client/assets/{empty-state-zP-KbGlv.js → empty-state-BQfx1mwp.js} +1 -1
  62. package/dist/client/assets/{empty-state-CfCSwnz1.js → empty-state-CgeXBI1W.js} +1 -1
  63. package/dist/client/assets/{env-vars-editor-BI1TwkmM.js → env-vars-editor-4EC6mCOl.js} +1 -1
  64. package/dist/client/assets/{error-boundary-CG0YZ4B8.js → error-boundary-BaL_ffEC.js} +1 -1
  65. package/dist/client/assets/{extract-connection-data-DjJgYZHM.js → extract-connection-data-DHRsnn5P.js} +1 -1
  66. package/dist/client/assets/{file-browser-FetvDlId.js → file-browser-_UBJPTIe.js} +2 -2
  67. package/dist/client/assets/{form-BJcgMy55.js → form-CoBL4_XN.js} +1 -1
  68. package/dist/client/assets/{grid-view-DAtPq1rk.js → grid-view-D2Vn-CMC.js} +1 -1
  69. package/dist/client/assets/{home-563KzJx_.js → home-D2LI09X7.js} +1 -1
  70. package/dist/client/assets/{index-BipFUdjC.js → index-B84yJOSG.js} +2 -2
  71. package/dist/client/assets/{index-CJvrv3U6.js → index-BMTlZmWp.js} +1 -1
  72. package/dist/client/assets/{index--CSmLs4y.js → index-CbebK-uV.js} +1 -1
  73. package/dist/client/assets/{index-q_aACm4R.js → index-DJl8OcA5.js} +1 -1
  74. package/dist/client/assets/{index-BMtR19Aw.js → index-DtkdBBYP.js} +67 -68
  75. package/dist/client/assets/{index-D8uhOq5u.js → index-xK97rkRU.js} +1 -1
  76. package/dist/client/assets/{infiniteQueryObserver-FEDpWaxK.js → infiniteQueryObserver-BPcOZkH7.js} +1 -1
  77. package/dist/client/assets/{input-CJlzp_V5.js → input-CHbrtiSE.js} +1 -1
  78. package/dist/client/assets/{layout-BHCzoCFv.js → layout-BZs9w_M3.js} +1 -1
  79. package/dist/client/assets/localstorage-keys-Dzdim8m6.js +1 -0
  80. package/dist/client/assets/{login-DdZmNh4a.js → login-L-IHcABm.js} +1 -1
  81. package/dist/client/assets/{mcp-oauth-Da5yE9aW.js → mcp-oauth-BxZXA3Xr.js} +1 -1
  82. package/dist/client/assets/{mcp-server-card-CYYL-dXF.js → mcp-server-card-MC8v04QK.js} +1 -1
  83. package/dist/client/assets/{mcp-server-detail-C2G-xpe0.js → mcp-server-detail-zNAPbUAw.js} +2 -2
  84. package/dist/client/assets/{members-FKAvc6la.js → members-DJdUGw0D.js} +1 -1
  85. package/dist/client/assets/{monaco-editor-DkDnm6Tx.js → monaco-editor-C3ascXjJ.js} +1 -1
  86. package/dist/client/assets/{monitoring-6KAEGPPJ.js → monitoring-JAuBbZfp.js} +1 -1
  87. package/dist/client/assets/{oauth-callback-IuYTWMST.js → oauth-callback-BcGogxXg.js} +1 -1
  88. package/dist/client/assets/page-BxPZxw8o.js +21 -0
  89. package/dist/client/assets/{page-C36S8a5W.js → page-CUrPd-rM.js} +1 -1
  90. package/dist/client/assets/{pin-to-sidebar-button-WVVRk2lw.js → pin-to-sidebar-button-DSKZ2Fdq.js} +1 -1
  91. package/dist/client/assets/{plugin-empty-state-ByA0OkEn.js → plugin-empty-state-Cuv_BgUO.js} +1 -1
  92. package/dist/client/assets/{plugin-header-D5yHZtXf.js → plugin-header-DPgrCf4u.js} +1 -1
  93. package/dist/client/assets/{plugins-OwUnN1ka.js → plugins-CJ0UbjgM.js} +1 -1
  94. package/dist/client/assets/{popover-CshCl6w-.js → popover-BxnPal23.js} +1 -1
  95. package/dist/client/assets/{registry-utils-D7Dqr6wv.js → registry-utils-aIrZuCgt.js} +1 -1
  96. package/dist/client/assets/{resizable-B1zLCIJb.js → resizable-CaoQeLjg.js} +1 -1
  97. package/dist/client/assets/{resource-tabs-CRbf__IW.js → resource-tabs-CPGMnxBP.js} +1 -1
  98. package/dist/client/assets/{select-4bCSDmWU.js → select-B908g1mB.js} +1 -1
  99. package/dist/client/assets/{settings-CR5PvLr2.js → settings-LRlnP2Lc.js} +1 -1
  100. package/dist/client/assets/shell-layout-DRozOWy1.js +3 -0
  101. package/dist/client/assets/{spinner-BipWRp7l.js → spinner-CsK38Tsy.js} +1 -1
  102. package/dist/client/assets/{switch-C_F_zeuN.js → switch-CUTLvBMT.js} +1 -1
  103. package/dist/client/assets/{textarea-BZmzcANs.js → textarea-CbUKoeLq.js} +1 -1
  104. package/dist/client/assets/{tool-set-selector-DMyguAVM.js → tool-set-selector-fEQOYxCL.js} +1 -1
  105. package/dist/client/assets/{tools-list-CM9pIRwn.js → tools-list-CX7oXeq_.js} +1 -1
  106. package/dist/client/assets/{tooltip-D3Kw0HUb.js → tooltip-Dk0Jzfvj.js} +1 -1
  107. package/dist/client/assets/{typewriter-title-zajICLfm.js → typewriter-title-DPdfdL2f.js} +1 -1
  108. package/dist/client/assets/{use-binding-Ba3v4zMi.js → use-binding-D-hqNLrQ.js} +1 -1
  109. package/dist/client/assets/{use-collections-BQHGs5iU.js → use-collections-A_XW_jU_.js} +1 -1
  110. package/dist/client/assets/{use-connection-D03dTvtG.js → use-connection-BIIOhc_X.js} +1 -1
  111. package/dist/client/assets/{use-create-virtual-mcp-Cpzz-1zf.js → use-create-virtual-mcp-DWkiDqVu.js} +1 -1
  112. package/dist/client/assets/{use-list-state-B0KtA_q9.js → use-list-state-C8RoL1ci.js} +1 -1
  113. package/dist/client/assets/{use-members-CHh5MLEe.js → use-members-C93PMRIh.js} +1 -1
  114. package/dist/client/assets/{use-mobile-Q27OeJ4I.js → use-mobile-DIF2qUK5.js} +1 -1
  115. package/dist/client/assets/{use-organization-settings-CRV4VKdj.js → use-organization-settings-BGsA2C0p.js} +1 -1
  116. package/dist/client/assets/{use-virtual-mcp-CJ7FNu85.js → use-virtual-mcp-ygO0Mzk-.js} +1 -1
  117. package/dist/client/assets/useInfiniteQuery-BHxWaPEq.js +1 -0
  118. package/dist/client/assets/{useMutation-BJoWTtTW.js → useMutation-BW_aGPem.js} +1 -1
  119. package/dist/client/assets/useQuery-CgyESPOI.js +1 -0
  120. package/dist/client/assets/{value-C0VGfi9E.js → value-BL9_bCwS.js} +1 -1
  121. package/dist/client/assets/{view-mode-toggle-BkNnvYv5.js → view-mode-toggle-ByWv0ljG.js} +1 -1
  122. package/dist/client/assets/{virtual-mcp-BBuKM0Zd.js → virtual-mcp-vOZXwxjs.js} +1 -1
  123. package/dist/client/assets/{workflow-CxGNxRFo.js → workflow-CpI2biho.js} +1 -1
  124. package/dist/client/index.html +1 -1
  125. package/dist/server/cli.js +153 -119
  126. package/dist/server/migrate.js +2 -2
  127. package/dist/server/server.js +118 -84
  128. package/package.json +1 -1
  129. package/dist/client/assets/agent-detail-Cgt9QWk4.js +0 -1
  130. package/dist/client/assets/connection-detail-BmS-s06n.js +0 -1
  131. package/dist/client/assets/constants-DSSgefWZ.js +0 -1
  132. package/dist/client/assets/localstorage-keys-CqdQQHDa.js +0 -1
  133. package/dist/client/assets/page-C9G8C61g.js +0 -21
  134. package/dist/client/assets/shell-layout-FpAzDkjt.js +0 -3
  135. package/dist/client/assets/use-virtual-mcp-system-prompt-BfXjv37Y.js +0 -1
  136. package/dist/client/assets/useInfiniteQuery-shmHdaex.js +0 -1
  137. package/dist/client/assets/useQuery-CcFgJIAV.js +0 -1
@@ -1 +1 @@
1
- import{r as z,a6 as A,j as c,aa as M,ab as ge,br as h,b0 as he,b1 as X,ai as pe,a_ as be,a$ as me,k as ve,c as Y}from"./index-BipFUdjC.js";import{c as Z}from"./button-CWaK1hUN.js";var ee="Toggle",te=z.forwardRef((t,e)=>{const{pressed:r,defaultPressed:n,onPressedChange:a,...o}=t,[i,s]=A({prop:r,onChange:a,defaultProp:n??!1,caller:ee});return c.jsx(M.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":t.disabled?"":void 0,...o,ref:e,onClick:ge(t.onClick,()=>{t.disabled||s(!i)})})});te.displayName=ee;var b="ToggleGroup",[re]=pe(b,[X]),ne=X(),S=h.forwardRef((t,e)=>{const{type:r,...n}=t;if(r==="single"){const a=n;return c.jsx(we,{...a,ref:e})}if(r==="multiple"){const a=n;return c.jsx(ye,{...a,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${b}\``)});S.displayName=b;var[ae,ie]=re(b),we=h.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},...o}=t,[i,s]=A({prop:r,defaultProp:n??"",onChange:a,caller:b});return c.jsx(ae,{scope:t.__scopeToggleGroup,type:"single",value:h.useMemo(()=>i?[i]:[],[i]),onItemActivate:s,onItemDeactivate:h.useCallback(()=>s(""),[s]),children:c.jsx(oe,{...o,ref:e})})}),ye=h.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},...o}=t,[i,s]=A({prop:r,defaultProp:n??[],onChange:a,caller:b}),f=h.useCallback(l=>s((d=[])=>[...d,l]),[s]),u=h.useCallback(l=>s((d=[])=>d.filter(xe=>xe!==l)),[s]);return c.jsx(ae,{scope:t.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:f,onItemDeactivate:u,children:c.jsx(oe,{...o,ref:e})})});S.displayName=b;var[$e,Ne]=re(b),oe=h.forwardRef((t,e)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:a=!0,orientation:o,dir:i,loop:s=!0,...f}=t,u=ne(r),l=be(i),d={role:"group",dir:l,...f};return c.jsx($e,{scope:r,rovingFocus:a,disabled:n,children:a?c.jsx(me,{asChild:!0,...u,orientation:o,dir:l,loop:s,children:c.jsx(M.div,{...d,ref:e})}):c.jsx(M.div,{...d,ref:e})})}),R="ToggleGroupItem",se=h.forwardRef((t,e)=>{const r=ie(R,t.__scopeToggleGroup),n=Ne(R,t.__scopeToggleGroup),a=ne(t.__scopeToggleGroup),o=r.value.includes(t.value),i=n.disabled||t.disabled,s={...t,pressed:o,disabled:i},f=h.useRef(null);return n.rovingFocus?c.jsx(he,{asChild:!0,...a,focusable:!i,active:o,ref:f,children:c.jsx(D,{...s,ref:e})}):c.jsx(D,{...s,ref:e})});se.displayName=R;var D=h.forwardRef((t,e)=>{const{__scopeToggleGroup:r,value:n,...a}=t,o=ie(R,r),i={role:"radio","aria-checked":t.pressed,"aria-pressed":void 0},s=o.type==="single"?i:void 0;return c.jsx(te,{...s,...a,ref:e,onPressedChange:f=>{f?o.onItemActivate(n):o.onItemDeactivate(n)}})}),Ge=S,Pe=se;const ke=ve("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),fe=z.createContext({size:"default",variant:"default"});function Ye(t){const e=Y.c(20);let r,n,a,o,i;e[0]!==t?({className:n,variant:i,size:o,children:r,...a}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=a,e[4]=o,e[5]=i):(r=e[1],n=e[2],a=e[3],o=e[4],i=e[5]);let s;e[6]!==n?(s=Z("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",n),e[6]=n,e[7]=s):s=e[7];let f;e[8]!==o||e[9]!==i?(f={variant:i,size:o},e[8]=o,e[9]=i,e[10]=f):f=e[10];let u;e[11]!==r||e[12]!==f?(u=c.jsx(fe.Provider,{value:f,children:r}),e[11]=r,e[12]=f,e[13]=u):u=e[13];let l;return e[14]!==a||e[15]!==o||e[16]!==s||e[17]!==u||e[18]!==i?(l=c.jsx(Ge,{"data-slot":"toggle-group","data-variant":i,"data-size":o,className:s,...a,children:u}),e[14]=a,e[15]=o,e[16]=s,e[17]=u,e[18]=i,e[19]=l):l=e[19],l}function Ze(t){const e=Y.c(18);let r,n,a,o,i;e[0]!==t?({className:n,children:r,variant:i,size:o,...a}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=a,e[4]=o,e[5]=i):(r=e[1],n=e[2],a=e[3],o=e[4],i=e[5]);const s=z.useContext(fe),f=s.variant||i,u=s.size||o;let l;e[6]!==n||e[7]!==s.size||e[8]!==s.variant||e[9]!==o||e[10]!==i?(l=Z(ke({variant:s.variant||i,size:s.size||o}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",n),e[6]=n,e[7]=s.size,e[8]=s.variant,e[9]=o,e[10]=i,e[11]=l):l=e[11];let d;return e[12]!==r||e[13]!==a||e[14]!==f||e[15]!==u||e[16]!==l?(d=c.jsx(Pe,{"data-slot":"toggle-group-item","data-variant":f,"data-size":u,className:l,...a,children:r}),e[12]=r,e[13]=a,e[14]=f,e[15]=u,e[16]=l,e[17]=d):d=e[17],d}function V(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function le(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function G(){}var y=.7,C=1/y,w="\\s*([+-]?\\d+)\\s*",$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",p="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Re=/^#([0-9a-f]{3,8})$/,Ce=new RegExp(`^rgb\\(${w},${w},${w}\\)$`),Te=new RegExp(`^rgb\\(${p},${p},${p}\\)$`),je=new RegExp(`^rgba\\(${w},${w},${w},${$}\\)$`),_e=new RegExp(`^rgba\\(${p},${p},${p},${$}\\)$`),Me=new RegExp(`^hsl\\(${$},${p},${p}\\)$`),Ie=new RegExp(`^hsla\\(${$},${p},${p},${$}\\)$`),F={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};V(G,N,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:O,formatHex:O,formatHex8:Ee,formatHsl:He,formatRgb:B,toString:B});function O(){return this.rgb().formatHex()}function Ee(){return this.rgb().formatHex8()}function He(){return ue(this).formatHsl()}function B(){return this.rgb().formatRgb()}function N(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Re.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?L(e):r===3?new x(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?P(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?P(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Ce.exec(t))?new x(e[1],e[2],e[3],1):(e=Te.exec(t))?new x(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=je.exec(t))?P(e[1],e[2],e[3],e[4]):(e=_e.exec(t))?P(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Me.exec(t))?K(e[1],e[2]/100,e[3]/100,1):(e=Ie.exec(t))?K(e[1],e[2]/100,e[3]/100,e[4]):F.hasOwnProperty(t)?L(F[t]):t==="transparent"?new x(NaN,NaN,NaN,0):null}function L(t){return new x(t>>16&255,t>>8&255,t&255,1)}function P(t,e,r,n){return n<=0&&(t=e=r=NaN),new x(t,e,r,n)}function ze(t){return t instanceof G||(t=N(t)),t?(t=t.rgb(),new x(t.r,t.g,t.b,t.opacity)):new x}function I(t,e,r,n){return arguments.length===1?ze(t):new x(t,e,r,n??1)}function x(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}V(x,I,le(G,{brighter(t){return t=t==null?C:Math.pow(C,t),new x(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?y:Math.pow(y,t),new x(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new x(v(this.r),v(this.g),v(this.b),T(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:U,formatHex:U,formatHex8:Ae,formatRgb:J,toString:J}));function U(){return`#${m(this.r)}${m(this.g)}${m(this.b)}`}function Ae(){return`#${m(this.r)}${m(this.g)}${m(this.b)}${m((isNaN(this.opacity)?1:this.opacity)*255)}`}function J(){const t=T(this.opacity);return`${t===1?"rgb(":"rgba("}${v(this.r)}, ${v(this.g)}, ${v(this.b)}${t===1?")":`, ${t})`}`}function T(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function v(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function m(t){return t=v(t),(t<16?"0":"")+t.toString(16)}function K(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new g(t,e,r,n)}function ue(t){if(t instanceof g)return new g(t.h,t.s,t.l,t.opacity);if(t instanceof G||(t=N(t)),!t)return new g;if(t instanceof g)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,a=Math.min(e,r,n),o=Math.max(e,r,n),i=NaN,s=o-a,f=(o+a)/2;return s?(e===o?i=(r-n)/s+(r<n)*6:r===o?i=(n-e)/s+2:i=(e-r)/s+4,s/=f<.5?o+a:2-o-a,i*=60):s=f>0&&f<1?0:i,new g(i,s,f,t.opacity)}function Se(t,e,r,n){return arguments.length===1?ue(t):new g(t,e,r,n??1)}function g(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}V(g,Se,le(G,{brighter(t){return t=t==null?C:Math.pow(C,t),new g(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?y:Math.pow(y,t),new g(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,a=2*r-n;return new x(j(t>=240?t-240:t+120,a,n),j(t,a,n),j(t<120?t+240:t-120,a,n),this.opacity)},clamp(){return new g(Q(this.h),k(this.s),k(this.l),T(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=T(this.opacity);return`${t===1?"hsl(":"hsla("}${Q(this.h)}, ${k(this.s)*100}%, ${k(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Q(t){return t=(t||0)%360,t<0?t+360:t}function k(t){return Math.max(0,Math.min(1,t||0))}function j(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const q=t=>()=>t;function Ve(t,e){return function(r){return t+r*e}}function qe(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function De(t){return(t=+t)==1?ce:function(e,r){return r-e?qe(e,r,t):q(isNaN(e)?r:e)}}function ce(t,e){var r=e-t;return r?Ve(t,r):q(isNaN(t)?e:t)}const W=(function t(e){var r=De(e);function n(a,o){var i=r((a=I(a)).r,(o=I(o)).r),s=r(a.g,o.g),f=r(a.b,o.b),u=ce(a.opacity,o.opacity);return function(l){return a.r=i(l),a.g=s(l),a.b=f(l),a.opacity=u(l),a+""}}return n.gamma=t,n})(1);function Fe(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),a;return function(o){for(a=0;a<r;++a)n[a]=t[a]*(1-o)+e[a]*o;return n}}function Oe(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Be(t,e){var r=e?e.length:0,n=t?Math.min(r,t.length):0,a=new Array(n),o=new Array(r),i;for(i=0;i<n;++i)a[i]=de(t[i],e[i]);for(;i<r;++i)o[i]=e[i];return function(s){for(i=0;i<n;++i)o[i]=a[i](s);return o}}function Le(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function E(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Ue(t,e){var r={},n={},a;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(a in e)a in t?r[a]=de(t[a],e[a]):n[a]=e[a];return function(o){for(a in r)n[a]=r[a](o);return n}}var H=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(H.source,"g");function Je(t){return function(){return t}}function Ke(t){return function(e){return t(e)+""}}function Qe(t,e){var r=H.lastIndex=_.lastIndex=0,n,a,o,i=-1,s=[],f=[];for(t=t+"",e=e+"";(n=H.exec(t))&&(a=_.exec(e));)(o=a.index)>r&&(o=e.slice(r,o),s[i]?s[i]+=o:s[++i]=o),(n=n[0])===(a=a[0])?s[i]?s[i]+=a:s[++i]=a:(s[++i]=null,f.push({i,x:E(n,a)})),r=_.lastIndex;return r<e.length&&(o=e.slice(r),s[i]?s[i]+=o:s[++i]=o),s.length<2?f[0]?Ke(f[0].x):Je(e):(e=f.length,function(u){for(var l=0,d;l<e;++l)s[(d=f[l]).i]=d.x(u);return s.join("")})}function de(t,e){var r=typeof e,n;return e==null||r==="boolean"?q(e):(r==="number"?E:r==="string"?(n=N(e))?(e=n,W):Qe:e instanceof N?W:e instanceof Date?Le:Oe(e)?Fe:Array.isArray(e)?Be:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Ue:E)(t,e)}export{Ze as T,W as a,Qe as b,N as c,de as d,Ye as e,E as i};
1
+ import{r as z,a6 as A,j as c,aa as M,ab as ge,br as h,b0 as he,b1 as X,ai as pe,a_ as be,a$ as me,k as ve,c as Y}from"./index-B84yJOSG.js";import{c as Z}from"./button-Bu5b3WTW.js";var ee="Toggle",te=z.forwardRef((t,e)=>{const{pressed:r,defaultPressed:n,onPressedChange:a,...o}=t,[i,s]=A({prop:r,onChange:a,defaultProp:n??!1,caller:ee});return c.jsx(M.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":t.disabled?"":void 0,...o,ref:e,onClick:ge(t.onClick,()=>{t.disabled||s(!i)})})});te.displayName=ee;var b="ToggleGroup",[re]=pe(b,[X]),ne=X(),S=h.forwardRef((t,e)=>{const{type:r,...n}=t;if(r==="single"){const a=n;return c.jsx(we,{...a,ref:e})}if(r==="multiple"){const a=n;return c.jsx(ye,{...a,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${b}\``)});S.displayName=b;var[ae,ie]=re(b),we=h.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},...o}=t,[i,s]=A({prop:r,defaultProp:n??"",onChange:a,caller:b});return c.jsx(ae,{scope:t.__scopeToggleGroup,type:"single",value:h.useMemo(()=>i?[i]:[],[i]),onItemActivate:s,onItemDeactivate:h.useCallback(()=>s(""),[s]),children:c.jsx(oe,{...o,ref:e})})}),ye=h.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},...o}=t,[i,s]=A({prop:r,defaultProp:n??[],onChange:a,caller:b}),f=h.useCallback(l=>s((d=[])=>[...d,l]),[s]),u=h.useCallback(l=>s((d=[])=>d.filter(xe=>xe!==l)),[s]);return c.jsx(ae,{scope:t.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:f,onItemDeactivate:u,children:c.jsx(oe,{...o,ref:e})})});S.displayName=b;var[$e,Ne]=re(b),oe=h.forwardRef((t,e)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:a=!0,orientation:o,dir:i,loop:s=!0,...f}=t,u=ne(r),l=be(i),d={role:"group",dir:l,...f};return c.jsx($e,{scope:r,rovingFocus:a,disabled:n,children:a?c.jsx(me,{asChild:!0,...u,orientation:o,dir:l,loop:s,children:c.jsx(M.div,{...d,ref:e})}):c.jsx(M.div,{...d,ref:e})})}),R="ToggleGroupItem",se=h.forwardRef((t,e)=>{const r=ie(R,t.__scopeToggleGroup),n=Ne(R,t.__scopeToggleGroup),a=ne(t.__scopeToggleGroup),o=r.value.includes(t.value),i=n.disabled||t.disabled,s={...t,pressed:o,disabled:i},f=h.useRef(null);return n.rovingFocus?c.jsx(he,{asChild:!0,...a,focusable:!i,active:o,ref:f,children:c.jsx(D,{...s,ref:e})}):c.jsx(D,{...s,ref:e})});se.displayName=R;var D=h.forwardRef((t,e)=>{const{__scopeToggleGroup:r,value:n,...a}=t,o=ie(R,r),i={role:"radio","aria-checked":t.pressed,"aria-pressed":void 0},s=o.type==="single"?i:void 0;return c.jsx(te,{...s,...a,ref:e,onPressedChange:f=>{f?o.onItemActivate(n):o.onItemDeactivate(n)}})}),Ge=S,Pe=se;const ke=ve("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),fe=z.createContext({size:"default",variant:"default"});function Ye(t){const e=Y.c(20);let r,n,a,o,i;e[0]!==t?({className:n,variant:i,size:o,children:r,...a}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=a,e[4]=o,e[5]=i):(r=e[1],n=e[2],a=e[3],o=e[4],i=e[5]);let s;e[6]!==n?(s=Z("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",n),e[6]=n,e[7]=s):s=e[7];let f;e[8]!==o||e[9]!==i?(f={variant:i,size:o},e[8]=o,e[9]=i,e[10]=f):f=e[10];let u;e[11]!==r||e[12]!==f?(u=c.jsx(fe.Provider,{value:f,children:r}),e[11]=r,e[12]=f,e[13]=u):u=e[13];let l;return e[14]!==a||e[15]!==o||e[16]!==s||e[17]!==u||e[18]!==i?(l=c.jsx(Ge,{"data-slot":"toggle-group","data-variant":i,"data-size":o,className:s,...a,children:u}),e[14]=a,e[15]=o,e[16]=s,e[17]=u,e[18]=i,e[19]=l):l=e[19],l}function Ze(t){const e=Y.c(18);let r,n,a,o,i;e[0]!==t?({className:n,children:r,variant:i,size:o,...a}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=a,e[4]=o,e[5]=i):(r=e[1],n=e[2],a=e[3],o=e[4],i=e[5]);const s=z.useContext(fe),f=s.variant||i,u=s.size||o;let l;e[6]!==n||e[7]!==s.size||e[8]!==s.variant||e[9]!==o||e[10]!==i?(l=Z(ke({variant:s.variant||i,size:s.size||o}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",n),e[6]=n,e[7]=s.size,e[8]=s.variant,e[9]=o,e[10]=i,e[11]=l):l=e[11];let d;return e[12]!==r||e[13]!==a||e[14]!==f||e[15]!==u||e[16]!==l?(d=c.jsx(Pe,{"data-slot":"toggle-group-item","data-variant":f,"data-size":u,className:l,...a,children:r}),e[12]=r,e[13]=a,e[14]=f,e[15]=u,e[16]=l,e[17]=d):d=e[17],d}function V(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function le(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function G(){}var y=.7,C=1/y,w="\\s*([+-]?\\d+)\\s*",$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",p="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Re=/^#([0-9a-f]{3,8})$/,Ce=new RegExp(`^rgb\\(${w},${w},${w}\\)$`),Te=new RegExp(`^rgb\\(${p},${p},${p}\\)$`),je=new RegExp(`^rgba\\(${w},${w},${w},${$}\\)$`),_e=new RegExp(`^rgba\\(${p},${p},${p},${$}\\)$`),Me=new RegExp(`^hsl\\(${$},${p},${p}\\)$`),Ie=new RegExp(`^hsla\\(${$},${p},${p},${$}\\)$`),F={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};V(G,N,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:O,formatHex:O,formatHex8:Ee,formatHsl:He,formatRgb:B,toString:B});function O(){return this.rgb().formatHex()}function Ee(){return this.rgb().formatHex8()}function He(){return ue(this).formatHsl()}function B(){return this.rgb().formatRgb()}function N(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Re.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?L(e):r===3?new x(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?P(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?P(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Ce.exec(t))?new x(e[1],e[2],e[3],1):(e=Te.exec(t))?new x(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=je.exec(t))?P(e[1],e[2],e[3],e[4]):(e=_e.exec(t))?P(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Me.exec(t))?K(e[1],e[2]/100,e[3]/100,1):(e=Ie.exec(t))?K(e[1],e[2]/100,e[3]/100,e[4]):F.hasOwnProperty(t)?L(F[t]):t==="transparent"?new x(NaN,NaN,NaN,0):null}function L(t){return new x(t>>16&255,t>>8&255,t&255,1)}function P(t,e,r,n){return n<=0&&(t=e=r=NaN),new x(t,e,r,n)}function ze(t){return t instanceof G||(t=N(t)),t?(t=t.rgb(),new x(t.r,t.g,t.b,t.opacity)):new x}function I(t,e,r,n){return arguments.length===1?ze(t):new x(t,e,r,n??1)}function x(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}V(x,I,le(G,{brighter(t){return t=t==null?C:Math.pow(C,t),new x(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?y:Math.pow(y,t),new x(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new x(v(this.r),v(this.g),v(this.b),T(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:U,formatHex:U,formatHex8:Ae,formatRgb:J,toString:J}));function U(){return`#${m(this.r)}${m(this.g)}${m(this.b)}`}function Ae(){return`#${m(this.r)}${m(this.g)}${m(this.b)}${m((isNaN(this.opacity)?1:this.opacity)*255)}`}function J(){const t=T(this.opacity);return`${t===1?"rgb(":"rgba("}${v(this.r)}, ${v(this.g)}, ${v(this.b)}${t===1?")":`, ${t})`}`}function T(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function v(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function m(t){return t=v(t),(t<16?"0":"")+t.toString(16)}function K(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new g(t,e,r,n)}function ue(t){if(t instanceof g)return new g(t.h,t.s,t.l,t.opacity);if(t instanceof G||(t=N(t)),!t)return new g;if(t instanceof g)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,a=Math.min(e,r,n),o=Math.max(e,r,n),i=NaN,s=o-a,f=(o+a)/2;return s?(e===o?i=(r-n)/s+(r<n)*6:r===o?i=(n-e)/s+2:i=(e-r)/s+4,s/=f<.5?o+a:2-o-a,i*=60):s=f>0&&f<1?0:i,new g(i,s,f,t.opacity)}function Se(t,e,r,n){return arguments.length===1?ue(t):new g(t,e,r,n??1)}function g(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}V(g,Se,le(G,{brighter(t){return t=t==null?C:Math.pow(C,t),new g(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?y:Math.pow(y,t),new g(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,a=2*r-n;return new x(j(t>=240?t-240:t+120,a,n),j(t,a,n),j(t<120?t+240:t-120,a,n),this.opacity)},clamp(){return new g(Q(this.h),k(this.s),k(this.l),T(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=T(this.opacity);return`${t===1?"hsl(":"hsla("}${Q(this.h)}, ${k(this.s)*100}%, ${k(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Q(t){return t=(t||0)%360,t<0?t+360:t}function k(t){return Math.max(0,Math.min(1,t||0))}function j(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const q=t=>()=>t;function Ve(t,e){return function(r){return t+r*e}}function qe(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function De(t){return(t=+t)==1?ce:function(e,r){return r-e?qe(e,r,t):q(isNaN(e)?r:e)}}function ce(t,e){var r=e-t;return r?Ve(t,r):q(isNaN(t)?e:t)}const W=(function t(e){var r=De(e);function n(a,o){var i=r((a=I(a)).r,(o=I(o)).r),s=r(a.g,o.g),f=r(a.b,o.b),u=ce(a.opacity,o.opacity);return function(l){return a.r=i(l),a.g=s(l),a.b=f(l),a.opacity=u(l),a+""}}return n.gamma=t,n})(1);function Fe(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),a;return function(o){for(a=0;a<r;++a)n[a]=t[a]*(1-o)+e[a]*o;return n}}function Oe(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Be(t,e){var r=e?e.length:0,n=t?Math.min(r,t.length):0,a=new Array(n),o=new Array(r),i;for(i=0;i<n;++i)a[i]=de(t[i],e[i]);for(;i<r;++i)o[i]=e[i];return function(s){for(i=0;i<n;++i)o[i]=a[i](s);return o}}function Le(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function E(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Ue(t,e){var r={},n={},a;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(a in e)a in t?r[a]=de(t[a],e[a]):n[a]=e[a];return function(o){for(a in r)n[a]=r[a](o);return n}}var H=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(H.source,"g");function Je(t){return function(){return t}}function Ke(t){return function(e){return t(e)+""}}function Qe(t,e){var r=H.lastIndex=_.lastIndex=0,n,a,o,i=-1,s=[],f=[];for(t=t+"",e=e+"";(n=H.exec(t))&&(a=_.exec(e));)(o=a.index)>r&&(o=e.slice(r,o),s[i]?s[i]+=o:s[++i]=o),(n=n[0])===(a=a[0])?s[i]?s[i]+=a:s[++i]=a:(s[++i]=null,f.push({i,x:E(n,a)})),r=_.lastIndex;return r<e.length&&(o=e.slice(r),s[i]?s[i]+=o:s[++i]=o),s.length<2?f[0]?Ke(f[0].x):Je(e):(e=f.length,function(u){for(var l=0,d;l<e;++l)s[(d=f[l]).i]=d.x(u);return s.join("")})}function de(t,e){var r=typeof e,n;return e==null||r==="boolean"?q(e):(r==="number"?E:r==="string"?(n=N(e))?(e=n,W):Qe:e instanceof N?W:e instanceof Date?Le:Oe(e)?Fe:Array.isArray(e)?Be:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Ue:E)(t,e)}export{Ze as T,W as a,Qe as b,N as c,de as d,Ye as e,E as i};
@@ -1 +1 @@
1
- import{c as Y,r as V,j as i}from"./index-BipFUdjC.js";import{c as n}from"./button-CWaK1hUN.js";const Z={sm:{button:"size-7",icon:"size-4"},md:{button:"size-9",icon:"size-5"},lg:{button:"size-12",icon:"size-6"}};function oe(J){const e=Y.c(66),{value:o,onValueChange:l,options:t,size:D,fullWidth:F,className:W}=J,K=D===void 0?"sm":D,w=F===void 0?!1:F,G=V.useRef(null),H=V.useRef(null);let R;e[0]===Symbol.for("react.memo_cache_sentinel")?(R={left:0,width:0,opacity:0},e[0]=R):R=e[0];const[N,O]=V.useState(R);let _;e[1]===Symbol.for("react.memo_cache_sentinel")?(_=S=>{if(!S.current)return;const{offsetLeft:U,offsetWidth:X}=S.current;O({left:U,width:X,opacity:1})},e[1]=_):_=e[1];const Q=_;let C;e[2]!==t[0].value||e[3]!==o?(C=()=>{const S=o===t[0].value?G:H;Q(S)},e[2]=t[0].value,e[3]=o,e[4]=C):C=e[4];let E;e[5]!==t||e[6]!==o?(E=[o,t],e[5]=t,e[6]=o,e[7]=E):E=e[7],V.useEffect(C,E);const s=Z[K];let a;e[8]!==W?(a=n("relative flex gap-0 bg-muted rounded-lg",W),e[8]=W,e[9]=a):a=e[9];let c;e[10]!==l||e[11]!==t[0].value?(c=()=>l(t[0].value),e[10]=l,e[11]=t[0].value,e[12]=c):c=e[12];const $=w?"flex-1 h-12 px-4":s.button,I=!w&&t[0].label?"px-3":"";let r;e[13]!==I||e[14]!==$?(r=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",$,I),e[13]=I,e[14]=$,e[15]=r):r=e[15];const P=o===t[0].value?"text-foreground":"text-muted-foreground";let u;e[16]!==s.icon||e[17]!==P?(u=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,P),e[16]=s.icon,e[17]=P,e[18]=u):u=e[18];let f;e[19]!==t[0].icon||e[20]!==u?(f=i.jsx("span",{className:u,children:t[0].icon}),e[19]=t[0].icon,e[20]=u,e[21]=f):f=e[21];let d;e[22]!==t[0].label||e[23]!==t[0].value||e[24]!==o?(d=t[0].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[0].value?"text-foreground":"text-muted-foreground"),children:t[0].label}),e[22]=t[0].label,e[23]=t[0].value,e[24]=o,e[25]=d):d=e[25];let m;e[26]!==r||e[27]!==f||e[28]!==d||e[29]!==c?(m=i.jsxs("button",{ref:G,type:"button",onClick:c,className:r,children:[f,d]}),e[26]=r,e[27]=f,e[28]=d,e[29]=c,e[30]=m):m=e[30];let x;e[31]!==l||e[32]!==t[1].value?(x=()=>l(t[1].value),e[31]=l,e[32]=t[1].value,e[33]=x):x=e[33];const L=w?"flex-1 h-12 px-4":s.button,M=!w&&t[1].label?"px-3":"";let p;e[34]!==L||e[35]!==M?(p=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",L,M),e[34]=L,e[35]=M,e[36]=p):p=e[36];const T=o===t[1].value?"text-foreground":"text-muted-foreground";let b;e[37]!==s.icon||e[38]!==T?(b=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,T),e[37]=s.icon,e[38]=T,e[39]=b):b=e[39];let v;e[40]!==t[1].icon||e[41]!==b?(v=i.jsx("span",{className:b,children:t[1].icon}),e[40]=t[1].icon,e[41]=b,e[42]=v):v=e[42];let g;e[43]!==t[1].label||e[44]!==t[1].value||e[45]!==o?(g=t[1].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[1].value?"text-foreground":"text-muted-foreground"),children:t[1].label}),e[43]=t[1].label,e[44]=t[1].value,e[45]=o,e[46]=g):g=e[46];let h;e[47]!==x||e[48]!==p||e[49]!==v||e[50]!==g?(h=i.jsxs("button",{ref:H,type:"button",onClick:x,className:p,children:[v,g]}),e[47]=x,e[48]=p,e[49]=v,e[50]=g,e[51]=h):h=e[51];const q=w?"h-12":s.button;let y;e[52]!==q?(y=n("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",q),e[52]=q,e[53]=y):y=e[53];const A=`${N.left}px`,B=`${N.width}px`;let j;e[54]!==N.opacity||e[55]!==A||e[56]!==B?(j={left:A,width:B,opacity:N.opacity},e[54]=N.opacity,e[55]=A,e[56]=B,e[57]=j):j=e[57];let z;e[58]!==y||e[59]!==j?(z=i.jsx("div",{className:y,style:j}),e[58]=y,e[59]=j,e[60]=z):z=e[60];let k;return e[61]!==m||e[62]!==h||e[63]!==z||e[64]!==a?(k=i.jsxs("div",{className:a,children:[m,h,z]}),e[61]=m,e[62]=h,e[63]=z,e[64]=a,e[65]=k):k=e[65],k}export{oe as V};
1
+ import{c as Y,r as V,j as i}from"./index-B84yJOSG.js";import{c as n}from"./button-Bu5b3WTW.js";const Z={sm:{button:"size-7",icon:"size-4"},md:{button:"size-9",icon:"size-5"},lg:{button:"size-12",icon:"size-6"}};function oe(J){const e=Y.c(66),{value:o,onValueChange:l,options:t,size:D,fullWidth:F,className:W}=J,K=D===void 0?"sm":D,w=F===void 0?!1:F,G=V.useRef(null),H=V.useRef(null);let R;e[0]===Symbol.for("react.memo_cache_sentinel")?(R={left:0,width:0,opacity:0},e[0]=R):R=e[0];const[N,O]=V.useState(R);let _;e[1]===Symbol.for("react.memo_cache_sentinel")?(_=S=>{if(!S.current)return;const{offsetLeft:U,offsetWidth:X}=S.current;O({left:U,width:X,opacity:1})},e[1]=_):_=e[1];const Q=_;let C;e[2]!==t[0].value||e[3]!==o?(C=()=>{const S=o===t[0].value?G:H;Q(S)},e[2]=t[0].value,e[3]=o,e[4]=C):C=e[4];let E;e[5]!==t||e[6]!==o?(E=[o,t],e[5]=t,e[6]=o,e[7]=E):E=e[7],V.useEffect(C,E);const s=Z[K];let a;e[8]!==W?(a=n("relative flex gap-0 bg-muted rounded-lg",W),e[8]=W,e[9]=a):a=e[9];let c;e[10]!==l||e[11]!==t[0].value?(c=()=>l(t[0].value),e[10]=l,e[11]=t[0].value,e[12]=c):c=e[12];const $=w?"flex-1 h-12 px-4":s.button,I=!w&&t[0].label?"px-3":"";let r;e[13]!==I||e[14]!==$?(r=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",$,I),e[13]=I,e[14]=$,e[15]=r):r=e[15];const P=o===t[0].value?"text-foreground":"text-muted-foreground";let u;e[16]!==s.icon||e[17]!==P?(u=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,P),e[16]=s.icon,e[17]=P,e[18]=u):u=e[18];let f;e[19]!==t[0].icon||e[20]!==u?(f=i.jsx("span",{className:u,children:t[0].icon}),e[19]=t[0].icon,e[20]=u,e[21]=f):f=e[21];let d;e[22]!==t[0].label||e[23]!==t[0].value||e[24]!==o?(d=t[0].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[0].value?"text-foreground":"text-muted-foreground"),children:t[0].label}),e[22]=t[0].label,e[23]=t[0].value,e[24]=o,e[25]=d):d=e[25];let m;e[26]!==r||e[27]!==f||e[28]!==d||e[29]!==c?(m=i.jsxs("button",{ref:G,type:"button",onClick:c,className:r,children:[f,d]}),e[26]=r,e[27]=f,e[28]=d,e[29]=c,e[30]=m):m=e[30];let x;e[31]!==l||e[32]!==t[1].value?(x=()=>l(t[1].value),e[31]=l,e[32]=t[1].value,e[33]=x):x=e[33];const L=w?"flex-1 h-12 px-4":s.button,M=!w&&t[1].label?"px-3":"";let p;e[34]!==L||e[35]!==M?(p=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",L,M),e[34]=L,e[35]=M,e[36]=p):p=e[36];const T=o===t[1].value?"text-foreground":"text-muted-foreground";let b;e[37]!==s.icon||e[38]!==T?(b=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,T),e[37]=s.icon,e[38]=T,e[39]=b):b=e[39];let v;e[40]!==t[1].icon||e[41]!==b?(v=i.jsx("span",{className:b,children:t[1].icon}),e[40]=t[1].icon,e[41]=b,e[42]=v):v=e[42];let g;e[43]!==t[1].label||e[44]!==t[1].value||e[45]!==o?(g=t[1].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[1].value?"text-foreground":"text-muted-foreground"),children:t[1].label}),e[43]=t[1].label,e[44]=t[1].value,e[45]=o,e[46]=g):g=e[46];let h;e[47]!==x||e[48]!==p||e[49]!==v||e[50]!==g?(h=i.jsxs("button",{ref:H,type:"button",onClick:x,className:p,children:[v,g]}),e[47]=x,e[48]=p,e[49]=v,e[50]=g,e[51]=h):h=e[51];const q=w?"h-12":s.button;let y;e[52]!==q?(y=n("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",q),e[52]=q,e[53]=y):y=e[53];const A=`${N.left}px`,B=`${N.width}px`;let j;e[54]!==N.opacity||e[55]!==A||e[56]!==B?(j={left:A,width:B,opacity:N.opacity},e[54]=N.opacity,e[55]=A,e[56]=B,e[57]=j):j=e[57];let z;e[58]!==y||e[59]!==j?(z=i.jsx("div",{className:y,style:j}),e[58]=y,e[59]=j,e[60]=z):z=e[60];let k;return e[61]!==m||e[62]!==h||e[63]!==z||e[64]!==a?(k=i.jsxs("div",{className:a,children:[m,h,z]}),e[61]=m,e[62]=h,e[63]=z,e[64]=a,e[65]=k):k=e[65],k}export{oe as V};
@@ -1 +1 @@
1
- import{r as g,c as x,j as S,o as i,_ as c,h as o,s as e,a3 as a,a4 as b,a5 as P}from"./index-BipFUdjC.js";const f="org-admin",w={from({org:n,project:t}){if(n?.includes("/")||t.includes("/"))throw new Error("Org or project cannot contain slashes");return`${n}/${t}`},parse(n){n.startsWith("/")&&(n=n.slice(1));const[t,l]=n.split("/");if(!t||!l)throw new Error("Invalid locator");return{org:t,project:l}},isOrgAdminProject(n){return n.split("/")[1]===f},adminProject(n){return`${n}/${f}`}},C=g.createContext(void 0),M=()=>{const n=g.useContext(C);if(!n)throw new Error("useProjectContext must be used within a ProjectContextProvider");return n},j=n=>{const t=x.c(10),{children:l,org:r,project:s}=n;let d;t[0]!==r.slug||t[1]!==s.slug?(d=w.from({org:r.slug,project:s.slug}),t[0]=r.slug,t[1]=s.slug,t[2]=d):d=t[2];const m=d;let u;t[3]!==m||t[4]!==r||t[5]!==s?(u={org:r,project:s,locator:m},t[3]=m,t[4]=r,t[5]=s,t[6]=u):u=t[6];const h=u;let p;return t[7]!==l||t[8]!==h?(p=S.jsx(C.Provider,{value:h,children:l}),t[7]=l,t[8]=h,t[9]=p):p=t[9],p},I=i({authorizationEndpoint:e().url(),tokenEndpoint:e().url(),introspectionEndpoint:e().url().optional(),clientId:e(),clientSecret:e().optional(),scopes:o(e()),grantType:c(["authorization_code","client_credentials"])}),T=i({name:e(),description:e().optional(),inputSchema:a(e(),b()),outputSchema:a(e(),b()).optional()}),D=i({headers:a(e(),e()).optional()}),U=i({command:e().describe("Command to run (e.g., 'npx', 'node')"),args:o(e()).optional().describe("Command arguments"),cwd:e().optional().describe("Working directory"),envVars:a(e(),e()).optional().describe("Environment variables (encrypted in storage)")}),v=i({id:e().describe("Unique identifier for the connection"),title:e().describe("Human-readable name for the connection"),created_at:e().describe("When the connection was created"),updated_at:e().describe("When the connection was last updated"),created_by:e().describe("User ID who created the connection"),updated_by:e().optional().describe("User ID who last updated the connection"),organization_id:e().describe("Organization ID this connection belongs to"),description:e().nullable().describe("Description of the connection"),icon:e().nullable().describe("Icon URL for the connection"),app_name:e().nullable().describe("Associated app name"),app_id:e().nullable().describe("Associated app ID"),connection_type:c(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:e().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:e().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:P([U,D]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:I.nullable().describe("OAuth configuration"),configuration_state:a(e(),b()).nullable().describe("Configuration state (decrypted)"),configuration_scopes:o(e()).nullable().optional().describe("Configuration scopes"),metadata:a(e(),b()).nullable().describe("Additional metadata (includes repository info)"),tools:o(T).nullable().describe("Discovered tools from MCP"),bindings:o(e()).nullable().describe("Detected bindings"),status:c(["active","inactive","error"]).describe("Current status")});v.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0});v.partial();function O(n){return n!=null&&"command"in n}function R(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}const _=c(["inclusion","exclusion"]).describe("Tool selection mode: 'inclusion' = include selected (default), 'exclusion' = exclude selected"),y=i({connection_id:e().describe("Connection ID"),selected_tools:o(e()).nullable().describe("Selected tool names. With 'inclusion' mode: null = all tools included. With 'exclusion' mode: null = entire connection excluded"),selected_resources:o(e()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. With 'inclusion' mode: null = all resources included."),selected_prompts:o(e()).nullable().describe("Selected prompt names. With 'inclusion' mode: null = all prompts included. With 'exclusion' mode: null = entire connection excluded.")}),W=i({id:e().describe("Unique identifier for the virtual MCP"),title:e().describe("Human-readable name for the virtual MCP"),description:e().nullable().describe("Description of the virtual MCP"),icon:e().nullable().optional().describe("Icon URL for the virtual MCP"),created_at:e().describe("When the virtual MCP was created"),updated_at:e().describe("When the virtual MCP was last updated"),created_by:e().describe("User ID who created the virtual MCP"),updated_by:e().optional().describe("User ID who last updated the virtual MCP"),organization_id:e().describe("Organization ID this virtual MCP belongs to"),tool_selection_mode:_.describe("Tool selection mode: 'inclusion' = include selected, 'exclusion' = exclude selected"),status:c(["active","inactive"]).describe("Current status"),connections:o(y).describe("Connections with their selected tools (behavior depends on tool_selection_mode)")});i({title:e().min(1).max(255).describe("Name for the virtual MCP"),description:e().nullable().optional().describe("Optional description"),tool_selection_mode:_.optional().default("inclusion").describe("Tool selection mode (defaults to 'inclusion')"),icon:e().nullable().optional().describe("Optional icon URL"),status:c(["active","inactive"]).optional().default("active").describe("Initial status"),connections:o(i({connection_id:e().describe("Connection ID"),selected_tools:o(e()).nullable().optional().describe("Selected tool names (null/undefined = all tools or full exclusion)"),selected_resources:o(e()).nullable().optional().describe("Selected resource URIs or patterns with * and ** wildcards (null/undefined = all resources)"),selected_prompts:o(e()).nullable().optional().describe("Selected prompt names (null/undefined = all prompts or full exclusion)")})).describe("Connections to include/exclude (can be empty for exclusion mode)")});i({title:e().min(1).max(255).optional().describe("New name"),description:e().nullable().optional().describe("New description (null to clear)"),tool_selection_mode:_.optional().describe("New tool selection mode"),icon:e().nullable().optional().describe("New icon URL (null to clear)"),status:c(["active","inactive"]).optional().describe("New status"),connections:o(i({connection_id:e().describe("Connection ID"),selected_tools:o(e()).nullable().optional().describe("Selected tool names (null/undefined = all tools or full exclusion)"),selected_resources:o(e()).nullable().optional().describe("Selected resource URIs or patterns with * and ** wildcards (null/undefined = all resources)"),selected_prompts:o(e()).nullable().optional().describe("Selected prompt names (null/undefined = all prompts or full exclusion)")})).optional().describe("New connections (replaces existing)")});export{v as C,w as L,f as O,j as P,W as V,O as i,R as p,M as u};
1
+ import{r as C,c as P,j as x,o as i,_ as c,h as o,s as e,a3 as a,a4 as b,a5 as S}from"./index-B84yJOSG.js";const f="org-admin",w={from({org:n,project:t}){if(n?.includes("/")||t.includes("/"))throw new Error("Org or project cannot contain slashes");return`${n}/${t}`},parse(n){n.startsWith("/")&&(n=n.slice(1));const[t,l]=n.split("/");if(!t||!l)throw new Error("Invalid locator");return{org:t,project:l}},isOrgAdminProject(n){return n.split("/")[1]===f},adminProject(n){return`${n}/${f}`}},g=C.createContext(void 0),E=()=>{const n=C.useContext(g);if(!n)throw new Error("useProjectContext must be used within a ProjectContextProvider");return n},j=n=>{const t=P.c(10),{children:l,org:r,project:s}=n;let d;t[0]!==r.slug||t[1]!==s.slug?(d=w.from({org:r.slug,project:s.slug}),t[0]=r.slug,t[1]=s.slug,t[2]=d):d=t[2];const m=d;let u;t[3]!==m||t[4]!==r||t[5]!==s?(u={org:r,project:s,locator:m},t[3]=m,t[4]=r,t[5]=s,t[6]=u):u=t[6];const h=u;let p;return t[7]!==l||t[8]!==h?(p=x.jsx(g.Provider,{value:h,children:l}),t[7]=l,t[8]=h,t[9]=p):p=t[9],p},I=i({authorizationEndpoint:e().url(),tokenEndpoint:e().url(),introspectionEndpoint:e().url().optional(),clientId:e(),clientSecret:e().optional(),scopes:o(e()),grantType:c(["authorization_code","client_credentials"])}),M=i({name:e(),description:e().optional(),inputSchema:a(e(),b()),outputSchema:a(e(),b()).optional()}),T=i({headers:a(e(),e()).optional()}),D=i({command:e().describe("Command to run (e.g., 'npx', 'node')"),args:o(e()).optional().describe("Command arguments"),cwd:e().optional().describe("Working directory"),envVars:a(e(),e()).optional().describe("Environment variables (encrypted in storage)")}),v=i({id:e().describe("Unique identifier for the connection"),title:e().describe("Human-readable name for the connection"),created_at:e().describe("When the connection was created"),updated_at:e().describe("When the connection was last updated"),created_by:e().describe("User ID who created the connection"),updated_by:e().optional().describe("User ID who last updated the connection"),organization_id:e().describe("Organization ID this connection belongs to"),description:e().nullable().describe("Description of the connection"),icon:e().nullable().describe("Icon URL for the connection"),app_name:e().nullable().describe("Associated app name"),app_id:e().nullable().describe("Associated app ID"),connection_type:c(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:e().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:e().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:S([D,T]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:I.nullable().describe("OAuth configuration"),configuration_state:a(e(),b()).nullable().describe("Configuration state (decrypted)"),configuration_scopes:o(e()).nullable().optional().describe("Configuration scopes"),metadata:a(e(),b()).nullable().describe("Additional metadata (includes repository info)"),tools:o(M).nullable().describe("Discovered tools from MCP"),bindings:o(e()).nullable().describe("Detected bindings"),status:c(["active","inactive","error"]).describe("Current status")});v.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0});v.partial();function O(n){return n!=null&&"command"in n}function R(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}const _=c(["inclusion","exclusion"]).describe("Tool selection mode: 'inclusion' = include selected (default), 'exclusion' = exclude selected"),U=i({connection_id:e().describe("Connection ID"),selected_tools:o(e()).nullable().describe("Selected tool names. With 'inclusion' mode: null = all tools included. With 'exclusion' mode: null = entire connection excluded"),selected_resources:o(e()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. With 'inclusion' mode: null = all resources included."),selected_prompts:o(e()).nullable().describe("Selected prompt names. With 'inclusion' mode: null = all prompts included. With 'exclusion' mode: null = entire connection excluded.")}),W=i({id:e().describe("Unique identifier for the virtual MCP"),title:e().describe("Human-readable name for the virtual MCP"),description:e().nullable().describe("Description of the virtual MCP"),icon:e().nullable().optional().describe("Icon URL for the virtual MCP"),created_at:e().describe("When the virtual MCP was created"),updated_at:e().describe("When the virtual MCP was last updated"),created_by:e().describe("User ID who created the virtual MCP"),updated_by:e().optional().describe("User ID who last updated the virtual MCP"),organization_id:e().describe("Organization ID this virtual MCP belongs to"),tool_selection_mode:_.describe("Tool selection mode: 'inclusion' = include selected, 'exclusion' = exclude selected"),status:c(["active","inactive"]).describe("Current status"),metadata:i({instructions:e().optional().describe("MCP server instructions")}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:o(U).describe("Connections with their selected tools (behavior depends on tool_selection_mode)")});i({title:e().min(1).max(255).describe("Name for the virtual MCP"),description:e().nullable().optional().describe("Optional description"),tool_selection_mode:_.optional().default("inclusion").describe("Tool selection mode (defaults to 'inclusion')"),icon:e().nullable().optional().describe("Optional icon URL"),status:c(["active","inactive"]).optional().default("active").describe("Initial status"),metadata:i({instructions:e().optional().describe("MCP server instructions")}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:o(i({connection_id:e().describe("Connection ID"),selected_tools:o(e()).nullable().optional().describe("Selected tool names (null/undefined = all tools or full exclusion)"),selected_resources:o(e()).nullable().optional().describe("Selected resource URIs or patterns with * and ** wildcards (null/undefined = all resources)"),selected_prompts:o(e()).nullable().optional().describe("Selected prompt names (null/undefined = all prompts or full exclusion)")})).describe("Connections to include/exclude (can be empty for exclusion mode)")});i({title:e().min(1).max(255).optional().describe("New name"),description:e().nullable().optional().describe("New description (null to clear)"),tool_selection_mode:_.optional().describe("New tool selection mode"),icon:e().nullable().optional().describe("New icon URL (null to clear)"),status:c(["active","inactive"]).optional().describe("New status"),metadata:i({instructions:e().optional().describe("MCP server instructions")}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:o(i({connection_id:e().describe("Connection ID"),selected_tools:o(e()).nullable().optional().describe("Selected tool names (null/undefined = all tools or full exclusion)"),selected_resources:o(e()).nullable().optional().describe("Selected resource URIs or patterns with * and ** wildcards (null/undefined = all resources)"),selected_prompts:o(e()).nullable().optional().describe("Selected prompt names (null/undefined = all prompts or full exclusion)")})).optional().describe("New connections (replaces existing)")});export{v as C,w as L,f as O,j as P,W as V,O as i,R as p,E as u};
@@ -1 +1 @@
1
- import{d as L,e as P,r as v,j as e,c as k}from"./index-BipFUdjC.js";import{u as B}from"./virtual-mcp-BBuKM0Zd.js";import{g as _}from"./constants-D7TSocv6.js";import{C as R}from"./collection-tab-Cyh1pe9u.js";import{u as z,a as A}from"./use-connection-D03dTvtG.js";import{B as y}from"./button-CWaK1hUN.js";import{E as F}from"./empty-state-CfCSwnz1.js";import{C as M}from"./collection-header-I0z7H0ZC.js";import{a as O,b as H}from"./use-binding-Ba3v4zMi.js";import{i as T}from"./Loading01-mNUVI85L.js";import"./generate-id-Dyweu44Y.js";import"./collection-display-button-DKWP6xRi.js";import"./dropdown-menu-eADXqdeC.js";import"./Grid01-D_y10H_F.js";import"./ArrowUp-07dwm1MA.js";import"./Check-n_KiNdp_.js";import"./List-AGMu6Jg9.js";import"./tooltip-D3Kw0HUb.js";import"./view-mode-toggle-BkNnvYv5.js";import"./collection-search-CP09UmnI.js";import"./SearchMd-BCAxnQkD.js";import"./input-CJlzp_V5.js";import"./card-7SgaoQef.js";import"./Copy01-dSgWMnr9.js";import"./DotsVertical-_ZO_fNF7.js";import"./Edit01-nGCAvXPD.js";import"./use-list-state-B0KtA_q9.js";import"./use-mobile-Q27OeJ4I.js";import"./Trash01-r91jWYrx.js";import"./collection-table-wrapper--qQDqi3a.js";import"./empty-state-zP-KbGlv.js";import"./Inbox01-DYU61nmV.js";import"./avatar-CJ18d1Yr.js";import"./useQuery-CcFgJIAV.js";import"./pin-to-sidebar-button-WVVRk2lw.js";import"./use-organization-settings-CRV4VKdj.js";import"./useMutation-BJoWTtTW.js";import"./use-collections-BQHGs5iU.js";import"./constants-DSSgefWZ.js";import"./alert-dialog-b2qaVWQf.js";import"./Plus-BBofXpHO.js";import"./layout-BHCzoCFv.js";import"./ArrowLeft-hhVT4Kgt.js";import"./binder-BG1MkJXb.js";function V({title:i,description:t,wellKnownMcp:o,imageSrc:n,onConnected:s}){const r=z(),{org:{slug:m}}=B(),{data:h}=L.useSession(),p=P(),[a,N]=v.useState(!1),l=async()=>{if(!(!o||!h?.user?.id)){N(!0);try{const c=await r.create.mutateAsync(o);s?.(c.id),p({to:"/$org/mcps/$connectionId",params:{org:m,connectionId:c.id}})}finally{N(!1)}}},j=()=>{p({to:"/$org/mcps",params:{org:m},search:{action:"create"}})};return e.jsx(F,{image:n?e.jsx("img",{src:n,alt:i,width:336,height:320,className:"max-w-full h-auto"}):null,title:i,description:t,actions:e.jsxs(e.Fragment,{children:[e.jsxs(y,{variant:"outline",onClick:l,disabled:a||!o,children:[o?.icon&&e.jsx("img",{src:o.icon,alt:"",className:"size-4"}),a?"Installing...":`Install ${o?.title||"MCP"}`]}),e.jsx(y,{variant:"outline",onClick:j,children:"Custom Connection"})]})})}function q(i){const t=k.c(28),{bindingName:o,collectionName:n,title:s,emptyState:r,wellKnownMcp:m}=i,{org:h}=B(),p=A();let a;t[0]!==p||t[1]!==o?(a={connections:p,binding:o},t[0]=p,t[1]=o,t[2]=a):a=t[2];const l=O(a)[0],j=H(l);let c;if(t[3]!==n||t[4]!==j){let C;t[6]!==n?(C=$=>$.name.toLowerCase()===n.toLowerCase(),t[6]=n,t[7]=C):C=t[7],c=j.find(C),t[3]=n,t[4]=j,t[5]=c}else c=t[5];const S=c,[E,W]=v.useState(null),b=l&&S&&(l.id||E);let d;t[8]!==s?(d=e.jsx(M,{title:s}),t[8]=s,t[9]=d):d=t[9];let I;t[10]===Symbol.for("react.memo_cache_sentinel")?(I=e.jsx(T,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t[10]=I):I=t[10];let f;t[11]!==s?(f=s.toLowerCase(),t[11]=s,t[12]=f):f=t[12];let u;t[13]!==f?(u=e.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[I,e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Loading ",f,"..."]})]}),t[13]=f,t[14]=u):u=t[14];let g;t[15]!==S||t[16]!==l||t[17]!==r||t[18]!==h||t[19]!==b||t[20]!==m?(g=b?e.jsx(R,{connectionId:l.id,org:h.slug,activeCollection:S}):e.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:e.jsx(V,{title:r.title,description:r.description,wellKnownMcp:m,imageSrc:r.imageSrc,onConnected:C=>{W(C)}})}),t[15]=S,t[16]=l,t[17]=r,t[18]=h,t[19]=b,t[20]=m,t[21]=g):g=t[21];let x;t[22]!==u||t[23]!==g?(x=e.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:e.jsx(v.Suspense,{fallback:u,children:g})}),t[22]=u,t[23]=g,t[24]=x):x=t[24];let w;return t[25]!==d||t[26]!==x?(w=e.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[d,x]}),t[25]=d,t[26]=x,t[27]=w):w=t[27],w}function Rt(){const i=k.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(q,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Install MCP Studio to create and manage automated workflows with multiple steps and integrations."},wellKnownMcp:_()}),i[0]=t):t=i[0],t}export{Rt as default};
1
+ import{d as L,e as P,r as v,j as e,c as k}from"./index-B84yJOSG.js";import{u as B}from"./virtual-mcp-vOZXwxjs.js";import{g as _}from"./constants-C9jqRuDQ.js";import{C as R}from"./collection-tab-ClpFqQOx.js";import{u as z,a as A}from"./use-connection-BIIOhc_X.js";import{B as y}from"./button-Bu5b3WTW.js";import{E as F}from"./empty-state-CgeXBI1W.js";import{C as M}from"./collection-header-CemM_w2D.js";import{a as O,b as H}from"./use-binding-D-hqNLrQ.js";import{i as T}from"./Loading01-CN4PjLYm.js";import"./generate-id-Dyweu44Y.js";import"./collection-display-button-Cb5uS-rc.js";import"./dropdown-menu-BI7MuzMw.js";import"./Grid01-D-48LkYB.js";import"./ArrowUp-Cfl4EAcS.js";import"./Check-DmxydjBL.js";import"./List-CbDyi-_I.js";import"./tooltip-Dk0Jzfvj.js";import"./view-mode-toggle-ByWv0ljG.js";import"./collection-search-BVQF86eY.js";import"./SearchMd-BgsYwh_0.js";import"./input-CHbrtiSE.js";import"./card-huVl9i-i.js";import"./Copy01-BMcgKhFM.js";import"./DotsVertical-Dz9n-5F-.js";import"./Edit01-BT4G_YIy.js";import"./use-list-state-C8RoL1ci.js";import"./use-mobile-DIF2qUK5.js";import"./Trash01-XWQVxRUg.js";import"./collection-table-wrapper-HRrsYLN0.js";import"./empty-state-BQfx1mwp.js";import"./Inbox01-C3nQFXch.js";import"./avatar-DszQRzwK.js";import"./useQuery-CgyESPOI.js";import"./pin-to-sidebar-button-DSKZ2Fdq.js";import"./use-organization-settings-BGsA2C0p.js";import"./useMutation-BW_aGPem.js";import"./use-collections-A_XW_jU_.js";import"./constants-Gfu8WPug.js";import"./alert-dialog-BXDbbD3T.js";import"./Plus-D1XC-LWM.js";import"./layout-BZs9w_M3.js";import"./ArrowLeft-NyGN8FtU.js";import"./binder-sRiH1ogE.js";function V({title:i,description:t,wellKnownMcp:o,imageSrc:n,onConnected:s}){const r=z(),{org:{slug:m}}=B(),{data:h}=L.useSession(),p=P(),[a,N]=v.useState(!1),l=async()=>{if(!(!o||!h?.user?.id)){N(!0);try{const c=await r.create.mutateAsync(o);s?.(c.id),p({to:"/$org/mcps/$connectionId",params:{org:m,connectionId:c.id}})}finally{N(!1)}}},j=()=>{p({to:"/$org/mcps",params:{org:m},search:{action:"create"}})};return e.jsx(F,{image:n?e.jsx("img",{src:n,alt:i,width:336,height:320,className:"max-w-full h-auto"}):null,title:i,description:t,actions:e.jsxs(e.Fragment,{children:[e.jsxs(y,{variant:"outline",onClick:l,disabled:a||!o,children:[o?.icon&&e.jsx("img",{src:o.icon,alt:"",className:"size-4"}),a?"Installing...":`Install ${o?.title||"MCP"}`]}),e.jsx(y,{variant:"outline",onClick:j,children:"Custom Connection"})]})})}function q(i){const t=k.c(28),{bindingName:o,collectionName:n,title:s,emptyState:r,wellKnownMcp:m}=i,{org:h}=B(),p=A();let a;t[0]!==p||t[1]!==o?(a={connections:p,binding:o},t[0]=p,t[1]=o,t[2]=a):a=t[2];const l=O(a)[0],j=H(l);let c;if(t[3]!==n||t[4]!==j){let C;t[6]!==n?(C=$=>$.name.toLowerCase()===n.toLowerCase(),t[6]=n,t[7]=C):C=t[7],c=j.find(C),t[3]=n,t[4]=j,t[5]=c}else c=t[5];const S=c,[E,W]=v.useState(null),b=l&&S&&(l.id||E);let d;t[8]!==s?(d=e.jsx(M,{title:s}),t[8]=s,t[9]=d):d=t[9];let I;t[10]===Symbol.for("react.memo_cache_sentinel")?(I=e.jsx(T,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t[10]=I):I=t[10];let f;t[11]!==s?(f=s.toLowerCase(),t[11]=s,t[12]=f):f=t[12];let u;t[13]!==f?(u=e.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[I,e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Loading ",f,"..."]})]}),t[13]=f,t[14]=u):u=t[14];let g;t[15]!==S||t[16]!==l||t[17]!==r||t[18]!==h||t[19]!==b||t[20]!==m?(g=b?e.jsx(R,{connectionId:l.id,org:h.slug,activeCollection:S}):e.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:e.jsx(V,{title:r.title,description:r.description,wellKnownMcp:m,imageSrc:r.imageSrc,onConnected:C=>{W(C)}})}),t[15]=S,t[16]=l,t[17]=r,t[18]=h,t[19]=b,t[20]=m,t[21]=g):g=t[21];let x;t[22]!==u||t[23]!==g?(x=e.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:e.jsx(v.Suspense,{fallback:u,children:g})}),t[22]=u,t[23]=g,t[24]=x):x=t[24];let w;return t[25]!==d||t[26]!==x?(w=e.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[d,x]}),t[25]=d,t[26]=x,t[27]=w):w=t[27],w}function Rt(){const i=k.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(q,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Install MCP Studio to create and manage automated workflows with multiple steps and integrations."},wellKnownMcp:_()}),i[0]=t):t=i[0],t}export{Rt as default};
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <title>MCP Mesh</title>
5
5
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6
- <script type="module" crossorigin src="/assets/index-BipFUdjC.js"></script>
6
+ <script type="module" crossorigin src="/assets/index-B84yJOSG.js"></script>
7
7
  <link rel="stylesheet" crossorigin href="/assets/index-B0qsrDFa.css">
8
8
  </head>
9
9
  <body>