@decocms/mesh 2.59.2 → 2.59.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle--GzH2vta.js → AlertCircle-DcHEglIM.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DzpTEYvO.js → ArrowLeft-Dlm4CF9d.js} +1 -1
- package/dist/client/assets/{ArrowUp-BfBrilbk.js → ArrowUp-CC-2uYGu.js} +1 -1
- package/dist/client/assets/Calendar-PdB3o_9d.js +1 -0
- package/dist/client/assets/{Check-CXkamnnr.js → Check-BzMGOxMB.js} +1 -1
- package/dist/client/assets/{ChevronDown-DaqG_J6Z.js → ChevronDown-BV0rwdFr.js} +1 -1
- package/dist/client/assets/{Code01-BNQVP8-g.js → Code01-KWN4ist8.js} +1 -1
- package/dist/client/assets/{Copy01-CpBgXJFP.js → Copy01-DH_iV9-n.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-BDAFctKq.js → DotsHorizontal-CFL9xkGv.js} +1 -1
- package/dist/client/assets/{DotsVertical-D5MnD2QZ.js → DotsVertical-DOgWrY6o.js} +1 -1
- package/dist/client/assets/{Download01-4Tu3o0-K.js → Download01-npnn9kWB.js} +1 -1
- package/dist/client/assets/{Edit01-7Ak8JL9W.js → Edit01-CH6U7DHj.js} +1 -1
- package/dist/client/assets/File02-Cuc-ZPtg.js +1 -0
- package/dist/client/assets/{File06-C7QVLRp6.js → File06-BUwGdOjl.js} +1 -1
- package/dist/client/assets/{FilterLines-UNZ5Kk_X.js → FilterLines-ia0H5bBk.js} +1 -1
- package/dist/client/assets/{Grid01-C_dMOr-7.js → Grid01-DmaR0g3f.js} +1 -1
- package/dist/client/assets/{Home02-Cfg1gm8U.js → Home02-Cagj2miO.js} +1 -1
- package/dist/client/assets/{Image01-C6IcS9Ip.js → Image01-BCcbzsoK.js} +1 -1
- package/dist/client/assets/{Inbox01-D1IW7Je7.js → Inbox01-DoVQ3gCk.js} +1 -1
- package/dist/client/assets/{InfoCircle-Dwuc2RiH.js → InfoCircle-qTETvFXb.js} +1 -1
- package/dist/client/assets/{Key01-CrwOIsjX.js → Key01-CHZQ8Cf-.js} +1 -1
- package/dist/client/assets/{LinkExternal01-yVEf-2cT.js → LinkExternal01-Cq8yx7fP.js} +1 -1
- package/dist/client/assets/{List-d88_8fTd.js → List-DZ53jWcW.js} +1 -1
- package/dist/client/assets/{Loading01-Bf56vlFv.js → Loading01-Bo9vDQAp.js} +1 -1
- package/dist/client/assets/{Lock01-CQ0bp8OP.js → Lock01-C1QZkjy0.js} +1 -1
- package/dist/client/assets/{Pin01-DBKe5RmK.js → Pin01-NWg5BL2M.js} +1 -1
- package/dist/client/assets/Play-D2yqwct8.js +1 -0
- package/dist/client/assets/{Plus-CcqPpwU0.js → Plus-DAW17Fqf.js} +1 -1
- package/dist/client/assets/{SearchMd-Ns-pswyj.js → SearchMd-D9E7kgub.js} +1 -1
- package/dist/client/assets/{Share07-B5yrbjwk.js → Share07-CN4FUsWW.js} +1 -1
- package/dist/client/assets/{Terminal-qZhwvVsv.js → Terminal-1HZulC_H.js} +1 -1
- package/dist/client/assets/Tool01-Ir04gLyn.js +1 -0
- package/dist/client/assets/{Trash01-DVYV3BJw.js → Trash01-BUkAP1vf.js} +1 -1
- package/dist/client/assets/{Upload01-CCAaxnrW.js → Upload01-DPPzM8Sw.js} +1 -1
- package/dist/client/assets/{Users03-CSRHEIl2.js → Users03-DscKVk_U.js} +1 -1
- package/dist/client/assets/{X-Dz8JZ2ZX.js → X-DyyqPnhR.js} +1 -1
- package/dist/client/assets/{XClose-BhgPfyG3.js → XClose-nvPI0OtD.js} +1 -1
- package/dist/client/assets/agent-detail-pV-lC3Zh.js +1 -0
- package/dist/client/assets/{agents-4MJAHJGV.js → agents-DepniFRU.js} +1 -1
- package/dist/client/assets/{alert-dialog-5t1wq8Xl.js → alert-dialog-QzYPe_ae.js} +3 -3
- package/dist/client/assets/{auth-catchall-CTOFzXVU.js → auth-catchall-COlMpx6Y.js} +1 -1
- package/dist/client/assets/{avatar-Cx4ORVtq.js → avatar-KkS1NpLz.js} +1 -1
- package/dist/client/assets/{badge-DfeUgg96.js → badge-CfH2vrIM.js} +1 -1
- package/dist/client/assets/{binder-Dh-m11Sm.js → binder-Cyeq_Zec.js} +1 -1
- package/dist/client/assets/{button-C83AQWC1.js → button-D_0RTXDt.js} +1 -1
- package/dist/client/assets/{card-CbXWWn3M.js → card-BmOa96dk.js} +1 -1
- package/dist/client/assets/{checkbox-DcPieRc5.js → checkbox-CUtYbeQD.js} +1 -1
- package/dist/client/assets/{circle-alert-ChrxIBwd.js → circle-alert-BnmazpCh.js} +1 -1
- package/dist/client/assets/collapsible-0N2BB6Bm.js +23 -0
- package/dist/client/assets/{collection-detail-B_qs3xwg.js → collection-detail-CeAvZaUS.js} +4 -4
- package/dist/client/assets/{collection-display-button-DlAEKbje.js → collection-display-button-Cm0zQnM_.js} +1 -1
- package/dist/client/assets/{collection-header-Fc9BtUxQ.js → collection-header-CbT_At3k.js} +1 -1
- package/dist/client/assets/{collection-page-DvzZtNQd.js → collection-page-CpAhF9Tg.js} +1 -1
- package/dist/client/assets/collection-search-DRZ8ScZP.js +1 -0
- package/dist/client/assets/{collection-tab-BB_A78nH.js → collection-tab-CyuO9CaU.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Ch8oh2UW.js → collection-table-wrapper-CspbeKNx.js} +1 -1
- package/dist/client/assets/connect-Dx3Myol5.js +1 -0
- package/dist/client/assets/{connection-card-BZU7F7-m.js → connection-card-C6VYrDSx.js} +1 -1
- package/dist/client/assets/connection-detail-BAO1w9SL.js +1 -0
- package/dist/client/assets/{connections-dluTnyJM.js → connections-xwpD87cp.js} +1 -1
- package/dist/client/assets/{constants-ytntCGH9.js → constants-D8fdcBr8.js} +1 -1
- package/dist/client/assets/constants-rfrR0uMr.js +1 -0
- package/dist/client/assets/{create-organization-dialog-GjXRxTaj.js → create-organization-dialog-D96wehG4.js} +1 -1
- package/dist/client/assets/{dialog-D_ebnPDF.js → dialog-B-A0vnh-.js} +1 -1
- package/dist/client/assets/dropdown-menu-CMmh8IDN.js +1 -0
- package/dist/client/assets/{dynamic-plugin-layout-DrCIvG61.js → dynamic-plugin-layout-D5OcFZH0.js} +1 -1
- package/dist/client/assets/{empty-state-CxA9hap0.js → empty-state-BS0aVQHO.js} +1 -1
- package/dist/client/assets/{empty-state-Cr5g6Vh9.js → empty-state-DKQ_J1zp.js} +1 -1
- package/dist/client/assets/{env-vars-editor-DXJo5cdV.js → env-vars-editor-BFfuzqB5.js} +1 -1
- package/dist/client/assets/{error-boundary-Dg0Af8BA.js → error-boundary-ynZ9rF8y.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BYPMZtVW.js → extract-connection-data-5Dbbyfmc.js} +1 -1
- package/dist/client/assets/file-browser-DWYmbjoP.js +2 -0
- package/dist/client/assets/{form-BISYEAnP.js → form-DngqlMy0.js} +1 -1
- package/dist/client/assets/grid-view-DBdpM4tG.js +1 -0
- package/dist/client/assets/home-Dh3O7N9x.js +1 -0
- package/dist/client/assets/index-B8BaCPuX.js +25 -0
- package/dist/client/assets/index-BWcrkV98.js +1 -0
- package/dist/client/assets/index-BtGsFE3_.js +233 -0
- package/dist/client/assets/{index-B-pYSGnK.js → index-C_CYTppS.js} +1 -1
- package/dist/client/assets/index-CqeIU8-o.css +1 -0
- package/dist/client/assets/index-DaiP89U7.js +1 -0
- package/dist/client/assets/{index-C8OOnmm1.js → index-Dho9MRVw.js} +2 -2
- package/dist/client/assets/{infiniteQueryObserver-B1N6PF-z.js → infiniteQueryObserver-DDmbfPGP.js} +1 -1
- package/dist/client/assets/{input-CrR0FEof.js → input-trZWilTG.js} +1 -1
- package/dist/client/assets/layout-BZ8_9wgI.js +1 -0
- package/dist/client/assets/localstorage-keys-B7V7cQcH.js +1 -0
- package/dist/client/assets/{login-BFXWEB6t.js → login-D61ut3BQ.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BkqLXiLL.js → mcp-oauth-kjSe-9sd.js} +1 -1
- package/dist/client/assets/{mcp-server-card-CkDDvd5o.js → mcp-server-card-DkR0AaJs.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-CuItqIIY.js → mcp-server-detail-Bq0lDMH3.js} +2 -2
- package/dist/client/assets/members-DqAGtLhZ.js +3 -0
- package/dist/client/assets/{monaco-editor-gim9RLZ3.js → monaco-editor-KzPiR_VS.js} +4 -4
- package/dist/client/assets/{monitoring-AmN2oTrM.js → monitoring-DkEahA8B.js} +5 -5
- package/dist/client/assets/{oauth-callback-BO8hRY4t.js → oauth-callback-C_OPSpWp.js} +1 -1
- package/dist/client/assets/page-BQkgsSw9.js +1 -0
- package/dist/client/assets/{page-BcZkyr2a.js → page-DWOf0lbq.js} +1 -1
- package/dist/client/assets/{pin-to-sidebar-button-DbV8w54G.js → pin-to-sidebar-button-Cdnz6iok.js} +1 -1
- package/dist/client/assets/plugin-empty-state-Dr-6CK5g.js +1 -0
- package/dist/client/assets/plugin-header-CAC6QLaV.js +1 -0
- package/dist/client/assets/plugins-57qT4Dil.js +1 -0
- package/dist/client/assets/popover-Bkt9Kfhi.js +1 -0
- package/dist/client/assets/{registry-utils-DekIcM3F.js → registry-utils-tiv71gSA.js} +1 -1
- package/dist/client/assets/{resizable-V4jINWPU.js → resizable-BdOXbYHL.js} +1 -1
- package/dist/client/assets/{resource-tabs-BsRvwnyx.js → resource-tabs-G-U5EIhm.js} +1 -1
- package/dist/client/assets/select-reGYS0Ly.js +1 -0
- package/dist/client/assets/settings-zvu2qyde.js +1 -0
- package/dist/client/assets/shell-layout-C-8OlUFV.js +3 -0
- package/dist/client/assets/{spinner-CwfYynNt.js → spinner-E8mBz_Z6.js} +1 -1
- package/dist/client/assets/{store-invite-BErtY6PV.js → store-invite-DnYGNBjx.js} +1 -1
- package/dist/client/assets/switch-t5mcsF2Z.js +1 -0
- package/dist/client/assets/{textarea-DRMuRqUv.js → textarea-x7X_L353.js} +1 -1
- package/dist/client/assets/{tools-list-DesNUyav.js → tools-list-DQZuaE9M.js} +1 -1
- package/dist/client/assets/tooltip-Cw2xVvTD.js +1 -0
- package/dist/client/assets/typewriter-title-BK26jx8M.js +16 -0
- package/dist/client/assets/use-binding-BVBmgj67.js +23 -0
- package/dist/client/assets/use-collections-CVO4vm4G.js +1 -0
- package/dist/client/assets/{use-connection-TLrid9RM.js → use-connection-BU-nKbTz.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Bi6QQFl1.js → use-create-virtual-mcp-Cr2fOp7g.js} +1 -1
- package/dist/client/assets/use-deco-chat-open-D-b5da72.js +1 -0
- package/dist/client/assets/{use-list-state-DuKw_MMV.js → use-list-state-ClsnlmlI.js} +1 -1
- package/dist/client/assets/use-mcp-prompts-B5zcyY9X.js +1 -0
- package/dist/client/assets/{use-members-g_5Yt7ve.js → use-members-CVUMGKct.js} +1 -1
- package/dist/client/assets/{use-mobile-DQ806XzQ.js → use-mobile-VoJXvE1W.js} +1 -1
- package/dist/client/assets/use-organization-settings-CeE0FyqT.js +1 -0
- package/dist/client/assets/{use-virtual-mcp-C8lLKpyG.js → use-virtual-mcp-DbjvrtSR.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CVAyTLiO.js +1 -0
- package/dist/client/assets/useMutation-Lj_Cbq0P.js +1 -0
- package/dist/client/assets/useQuery-C2zqJzGD.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-BS0TxHG_.js +1 -0
- package/dist/client/assets/{view-mode-toggle-jPeow5hv.js → view-mode-toggle-BagEO4CJ.js} +1 -1
- package/dist/client/assets/{workflow-pPSpZECL.js → workflow-BuhbYm_s.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +169 -169
- package/dist/server/migrate.js +176 -176
- package/dist/server/server.js +160 -160
- package/package.json +1 -1
- package/dist/client/assets/FlipBackward-Cc_OirbM.js +0 -1
- package/dist/client/assets/Play-l95VP5u9.js +0 -1
- package/dist/client/assets/agent-detail-nBBUtMd0.js +0 -1
- package/dist/client/assets/collection-search-bOTNZP0b.js +0 -1
- package/dist/client/assets/connect-DYIKCRWy.js +0 -1
- package/dist/client/assets/connection-detail-D3-I_W38.js +0 -1
- package/dist/client/assets/constants-CnfPGmdA.js +0 -1
- package/dist/client/assets/dropdown-menu-CzQCi3DZ.js +0 -1
- package/dist/client/assets/file-browser-2RP-n1Xp.js +0 -2
- package/dist/client/assets/grid-view-BzgHSliB.js +0 -1
- package/dist/client/assets/home-CZ1MSx2E.js +0 -1
- package/dist/client/assets/index-CIvJ2wFV.js +0 -255
- package/dist/client/assets/index-CmUKmcyS.js +0 -1
- package/dist/client/assets/index-HgNYu27A.js +0 -1
- package/dist/client/assets/index-c6ju_hIh.js +0 -25
- package/dist/client/assets/index-cFLiAqt_.css +0 -1
- package/dist/client/assets/layout-BGZtLEwK.js +0 -1
- package/dist/client/assets/localstorage-keys-N4jrVxvr.js +0 -1
- package/dist/client/assets/members-C3Nvqq2t.js +0 -3
- package/dist/client/assets/page-D-IBJ4SW.js +0 -1
- package/dist/client/assets/plugin-empty-state-Df2LAyPv.js +0 -1
- package/dist/client/assets/plugin-header-e5FObvvx.js +0 -1
- package/dist/client/assets/plugins-BOsIh96E.js +0 -1
- package/dist/client/assets/popover-B2yKs5LA.js +0 -1
- package/dist/client/assets/select-BlFReF6r.js +0 -1
- package/dist/client/assets/settings-cRTESMAX.js +0 -1
- package/dist/client/assets/shell-layout-BfC0vVyw.js +0 -3
- package/dist/client/assets/switch-DjW_2nBx.js +0 -1
- package/dist/client/assets/tool-set-selector-Btgo2YwH.js +0 -1
- package/dist/client/assets/tooltip-aHeHMhKh.js +0 -1
- package/dist/client/assets/typewriter-title-DRU6uRKP.js +0 -16
- package/dist/client/assets/use-binding-C2mDgpbB.js +0 -23
- package/dist/client/assets/use-collections-CkAaybvR.js +0 -1
- package/dist/client/assets/use-mcp-prompts-D5tApqEs.js +0 -1
- package/dist/client/assets/use-organization-settings-C-IzAdi1.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BUOCgX3w.js +0 -1
- package/dist/client/assets/useMutation-C4aXMLv3.js +0 -1
- package/dist/client/assets/useQuery-DNOH3p7p.js +0 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{r as w,c as h,j as n,u as me,b3 as dt,g as J,l as fe,an as Y,Z as mt,t as ft,b9 as xe,L as we,b1 as ut,bA as pt,a as ze,b6 as $e,bB as ae,bC as ht,b as xt,S as Te,d as gt,e as bt,N as jt,q as vt,P as wt,aS as Oe,K as St,O as Nt}from"./index-Dho9MRVw.js";import{C as R,u as yt}from"./index-BtGsFE3_.js";import{I as pe,n as Ct}from"./empty-state-DKQ_J1zp.js";import{u as ge}from"./use-deco-chat-open-D-b5da72.js";import{c as $,B as Z}from"./button-D_0RTXDt.js";import{d as _t}from"./constants-D8fdcBr8.js";import{T as kt,i as It,b as zt,S as $t,c as Tt,d as Ot,e as Mt,f as At,t as Et}from"./typewriter-title-BK26jx8M.js";import{s as Rt}from"./Plus-DAW17Fqf.js";import{t as Me}from"./Users03-DscKVk_U.js";import{i as ce}from"./X-DyyqPnhR.js";import{E as Ae}from"./error-boundary-ynZ9rF8y.js";import{u as Dt,S as Ee,i as Pt}from"./collapsible-0N2BB6Bm.js";import{b as Re,P as De,a as Pe}from"./popover-Bkt9Kfhi.js";import{B as Se}from"./badge-CfH2vrIM.js";import{i as de}from"./Check-BzMGOxMB.js";import{n as Ne}from"./Inbox01-DoVQ3gCk.js";import{s as ye}from"./XClose-nvPI0OtD.js";import{i as Lt}from"./File06-BUwGdOjl.js";import{u as ie}from"./use-mobile-VoJXvE1W.js";import{a as Le,b as He,T as Ue,c as Be}from"./tooltip-Cw2xVvTD.js";import{u as be,a as Ht}from"./use-organization-settings-CeE0FyqT.js";import{a as Ut}from"./Home02-Cagj2miO.js";import{C as Bt}from"./create-organization-dialog-D96wehG4.js";import{I as Wt}from"./input-trZWilTG.js";import{A as ne}from"./avatar-KkS1NpLz.js";import{c as Vt}from"./Grid01-DmaR0g3f.js";import{a as Ft,b as Kt,D as Gt,c as Zt,g as Ce}from"./dropdown-menu-CMmh8IDN.js";import{a as We}from"./Copy01-DH_iV9-n.js";import{n as _e}from"./LinkExternal01-Cq8yx7fP.js";import{c as qt,b as Yt,g as Jt,a as Xt,D as Qt}from"./dialog-B-A0vnh-.js";import{L as es}from"./form-DngqlMy0.js";import{S as ts}from"./switch-t5mcsF2Z.js";import{i as ss}from"./Code01-KWN4ist8.js";import{u as Ve,L as Fe}from"./localstorage-keys-B7V7cQcH.js";import{R as ns,a as Ke,b as as}from"./resizable-BdOXbYHL.js";import"./spinner-E8mBz_Z6.js";import"./use-mcp-prompts-B5zcyY9X.js";import"./useQuery-C2zqJzGD.js";import"./AlertCircle-DcHEglIM.js";import"./ArrowUp-CC-2uYGu.js";import"./ChevronDown-BV0rwdFr.js";import"./Edit01-CH6U7DHj.js";import"./Terminal-1HZulC_H.js";import"./monaco-editor-KzPiR_VS.js";import"./use-connection-BU-nKbTz.js";import"./use-collections-CVO4vm4G.js";import"./useMutation-Lj_Cbq0P.js";import"./generate-id-Dyweu44Y.js";import"./SearchMd-D9E7kgub.js";import"./Trash01-BUkAP1vf.js";import"./use-virtual-mcp-DbjvrtSR.js";import"./use-create-virtual-mcp-Cr2fOp7g.js";import"./use-binding-BVBmgj67.js";import"./binder-Cyeq_Zec.js";import"./useSuspenseInfiniteQuery-BS0TxHG_.js";import"./infiniteQueryObserver-DDmbfPGP.js";import"./select-reGYS0Ly.js";import"./Image01-BCcbzsoK.js";import"./alert-dialog-QzYPe_ae.js";const Ge=({size:t=24,color:e="currentColor",...s})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},w.createElement("path",{d:"M9 7H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 7.76 3 8.04 3 8.6v10.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H9m0 0h6m-6 0V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 3 10.04 3 10.6 3h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 3.76 15 4.04 15 4.6V21m0-10h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C21 11.76 21 12.04 21 12.6v6.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C20.24 21 19.96 21 19.4 21H15"}));Ge.displayName="BarChart10";const Ze=({size:t=24,color:e="currentColor",...s})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},w.createElement("path",{d:"M15 21v-5.4c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C14.24 14 13.96 14 13.4 14h-2.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C9 14.76 9 15.04 9 15.6V21M3 7a3 3 0 0 0 6 0 3 3 0 1 0 6 0 3 3 0 1 0 6 0M6.2 21h11.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C19.48 3 18.92 3 17.8 3H6.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C3 4.52 3 5.08 3 6.2v11.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21Z"}));Ze.displayName="Building02";const qe=({size:t=24,color:e="currentColor",...s})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},w.createElement("path",{d:"M2 12h20M2 12c0 5.523 4.477 10 10 10M2 12C2 6.477 6.477 2 12 2m10 10c0 5.523-4.477 10-10 10m10-10c0-5.523-4.477-10-10-10m0 0a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10m0-20a15.3 15.3 0 0 0-4 10 15.3 15.3 0 0 0 4 10"}));qe.displayName="Globe01";const Ye=({size:t=24,color:e="currentColor",...s})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},w.createElement("path",{d:"M15 3v18M7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3Z"}));Ye.displayName="LayoutRight";const Je=({size:t=24,color:e="currentColor",...s})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},w.createElement("path",{d:"m16 17 5-5m0 0-5-5m5 5H9m0-9H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21H9"}));Je.displayName="LogOut01";const Xe=({size:t=24,color:e="currentColor",...s})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},w.createElement("path",{d:"m2 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20Z"}));Xe.displayName="Mail01";const je=({size:t=24,color:e="currentColor",...s})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},w.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}),w.createElement("path",{d:"M18.727 14.727a1.5 1.5 0 0 0 .3 1.655l.055.054a1.816 1.816 0 0 1 0 2.573 1.818 1.818 0 0 1-2.573 0l-.055-.055a1.5 1.5 0 0 0-1.654-.3 1.5 1.5 0 0 0-.91 1.373v.155a1.818 1.818 0 1 1-3.636 0V20.1a1.5 1.5 0 0 0-.981-1.373 1.5 1.5 0 0 0-1.655.3l-.054.055a1.818 1.818 0 0 1-3.106-1.287 1.818 1.818 0 0 1 .533-1.286l.054-.055a1.5 1.5 0 0 0 .3-1.654 1.5 1.5 0 0 0-1.372-.91h-.155a1.818 1.818 0 1 1 0-3.636H3.9a1.5 1.5 0 0 0 1.373-.981 1.5 1.5 0 0 0-.3-1.655l-.055-.054A1.818 1.818 0 1 1 7.491 4.99l.054.054a1.5 1.5 0 0 0 1.655.3h.073a1.5 1.5 0 0 0 .909-1.372v-.155a1.818 1.818 0 0 1 3.636 0V3.9a1.499 1.499 0 0 0 .91 1.373 1.5 1.5 0 0 0 1.654-.3l.054-.055a1.817 1.817 0 0 1 2.573 0 1.819 1.819 0 0 1 0 2.573l-.055.054a1.5 1.5 0 0 0-.3 1.655v.073a1.5 1.5 0 0 0 1.373.909h.155a1.818 1.818 0 0 1 0 3.636H20.1a1.499 1.499 0 0 0-1.373.91Z"}));je.displayName="Settings01";const Qe=({size:t=24,color:e="currentColor",...s})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},w.createElement("path",{d:"M4 21.817C4.603 22 5.416 22 6.8 22h10.4c1.384 0 2.197 0 2.8-.183m-16 0a2.18 2.18 0 0 1-.362-.144 3 3 0 0 1-1.311-1.311C2 19.72 2 18.88 2 17.2V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h10.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C22 4.28 22 5.12 22 6.8v10.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311 2.18 2.18 0 0 1-.362.144m-16 0c0-.809.005-1.237.077-1.597a4 4 0 0 1 3.143-3.143C7.606 17 8.07 17 9 17h6c.93 0 1.394 0 1.78.077a4 4 0 0 1 3.143 3.143c.072.36.077.788.077 1.597M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"}));Qe.displayName="UserSquare";const et=({size:t=24,color:e="currentColor",...s})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},w.createElement("path",{d:"M13 2 4.093 12.688c-.348.418-.523.628-.525.804a.5.5 0 0 0 .185.397c.138.111.41.111.955.111H12l-1 8 8.907-10.688c.348-.418.523-.628.525-.804a.5.5 0 0 0-.185-.397c-.138-.111-.41-.111-.955-.111H12l1-8Z"}));et.displayName="Zap";function is(){const t=h.c(81),{org:e}=me(),[,s]=ge(),{selectedVirtualMcp:a,modelsConnections:i,isChatEmpty:r,activeThreadId:o,setActiveThreadId:l,threads:c}=Dt();let d;if(t[0]!==o||t[1]!==c){let B;t[3]!==o?(B=q=>q.id===o,t[3]=o,t[4]=B):B=t[4],d=c.find(B),t[0]=o,t[1]=c,t[2]=d}else d=t[2];const m=d,[u,p]=w.useState(!1);let b;t[5]!==e.id?(b=_t(e.id),t[5]=e.id,t[6]=b):b=t[6];const f=a??b;if(i.length===0){let B;t[7]!==f.icon||t[8]!==f.title?(B=n.jsx(pe,{icon:f.icon,name:f.title,size:"xs",className:"size-5 rounded-md aspect-square shrink-0"}),t[7]=f.icon,t[8]=f.title,t[9]=B):B=t[9];let q;t[10]!==f.title?(q=n.jsx("span",{className:"text-sm font-medium",children:f.title}),t[10]=f.title,t[11]=q):q=t[11];let X;t[12]!==B||t[13]!==q?(X=n.jsxs(R.Header.Left,{children:[B,q]}),t[12]=B,t[13]=q,t[14]=X):X=t[14];let Q;t[15]!==s?(Q=()=>s(!1),t[15]=s,t[16]=Q):Q=t[16];let re;t[17]===Symbol.for("react.memo_cache_sentinel")?(re=n.jsx(ce,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[17]=re):re=t[17];let ee;t[18]!==Q?(ee=n.jsx(R.Header.Right,{children:n.jsx("button",{type:"button",onClick:Q,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:re})}),t[18]=Q,t[19]=ee):ee=t[19];let te;t[20]!==X||t[21]!==ee?(te=n.jsxs(R.Header,{children:[X,ee]}),t[20]=X,t[21]=ee,t[22]=te):te=t[22];let se;t[23]!==e?(se=n.jsx(R.Main,{className:"flex flex-col items-center",children:n.jsx(R.EmptyState,{children:n.jsx(R.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features.",org:e})})}),t[23]=e,t[24]=se):se=t[24];let oe;return t[25]!==te||t[26]!==se?(oe=n.jsxs(R,{children:[te,se]}),t[25]=te,t[26]=se,t[27]=oe):oe=t[27],oe}const g=u?"opacity-0 -translate-x-4 pointer-events-none":"opacity-100 translate-x-0";let x;t[28]!==g?(x=$("absolute inset-0 flex flex-col transition-all duration-300 ease-in-out",g),t[28]=g,t[29]=x):x=t[29];let v;t[30]!==f.icon||t[31]!==f.title?(v=n.jsx(pe,{icon:f.icon,name:f.title,size:"xs",className:"size-5 rounded-md aspect-square shrink-0"}),t[30]=f.icon,t[31]=f.title,t[32]=v):v=t[32];let S;t[33]!==m||t[34]!==f.title||t[35]!==r?(S=!r&&m?.title?n.jsx(kt,{text:m.title,className:"text-sm font-medium text-foreground"}):n.jsx("span",{className:"text-sm font-medium text-foreground",children:f.title}),t[33]=m,t[34]=f.title,t[35]=r,t[36]=S):S=t[36];let _;t[37]!==v||t[38]!==S?(_=n.jsxs(R.Header.Left,{children:[v,S]}),t[37]=v,t[38]=S,t[39]=_):_=t[39];let N;t[40]!==l?(N=()=>l(crypto.randomUUID()),t[40]=l,t[41]=N):N=t[41];let k;t[42]===Symbol.for("react.memo_cache_sentinel")?(k=n.jsx(Rt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[42]=k):k=t[42];let y;t[43]!==N?(y=n.jsx("button",{type:"button",onClick:N,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"New chat",children:k}),t[43]=N,t[44]=y):y=t[44];let z;t[45]===Symbol.for("react.memo_cache_sentinel")?(z=()=>p(!0),t[45]=z):z=t[45];let C;t[46]===Symbol.for("react.memo_cache_sentinel")?(C=n.jsx("button",{type:"button",onClick:z,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Chat history",children:n.jsx(It,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[46]=C):C=t[46];let I;t[47]!==s?(I=()=>s(!1),t[47]=s,t[48]=I):I=t[48];let O;t[49]===Symbol.for("react.memo_cache_sentinel")?(O=n.jsx(ce,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[49]=O):O=t[49];let T;t[50]!==I?(T=n.jsx("button",{type:"button",onClick:I,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:O}),t[50]=I,t[51]=T):T=t[51];let M;t[52]!==T||t[53]!==y?(M=n.jsxs(R.Header.Right,{children:[y,C,T]}),t[52]=T,t[53]=y,t[54]=M):M=t[54];let A;t[55]!==M||t[56]!==_?(A=n.jsxs(R.Header,{children:[_,M]}),t[55]=M,t[56]=_,t[57]=A):A=t[57];let E;t[58]!==f.description||t[59]!==f.icon||t[60]!==f.title||t[61]!==r?(E=n.jsx(R.Main,{children:r?n.jsx(R.EmptyState,{children:n.jsxs("div",{className:"flex flex-col items-center gap-6 w-full px-4",children:[n.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-0 text-center",children:[n.jsx(pe,{icon:f.icon,name:f.title,size:"lg",fallbackIcon:n.jsx(Me,{size:32}),className:"size-[60px]! rounded-[18px]!"}),n.jsx("h3",{className:"text-xl font-medium text-foreground",children:f.title}),n.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:f.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),n.jsx(R.IceBreakers,{})]})}):n.jsx(R.Messages,{minHeightOffset:280})}),t[58]=f.description,t[59]=f.icon,t[60]=f.title,t[61]=r,t[62]=E):E=t[62];let D;t[63]===Symbol.for("react.memo_cache_sentinel")?(D=n.jsx(R.Footer,{children:n.jsx(R.Input,{})}),t[63]=D):D=t[63];let W;t[64]!==A||t[65]!==E||t[66]!==x?(W=n.jsxs("div",{className:x,children:[A,E,D]}),t[64]=A,t[65]=E,t[66]=x,t[67]=W):W=t[67];const V=u?"opacity-100 translate-x-0":"opacity-0 translate-x-4 pointer-events-none";let U;t[68]!==V?(U=$("absolute inset-0 flex flex-col transition-all duration-300 ease-in-out",V),t[68]=V,t[69]=U):U=t[69];let F;t[70]===Symbol.for("react.memo_cache_sentinel")?(F=()=>p(!1),t[70]=F):F=t[70];let P;t[71]!==o||t[72]!==l||t[73]!==c?(P=n.jsx(zt,{threads:c,activeThreadId:o,onThreadSelect:l,onClose:F}),t[71]=o,t[72]=l,t[73]=c,t[74]=P):P=t[74];let L;t[75]!==U||t[76]!==P?(L=n.jsx("div",{className:U,children:P}),t[75]=U,t[76]=P,t[77]=L):L=t[77];let K;return t[78]!==W||t[79]!==L?(K=n.jsxs(R,{className:"relative overflow-hidden",children:[W,L]}),t[78]=W,t[79]=L,t[80]=K):K=t[80],K}function rs(){const t=h.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(R.Skeleton,{}),t[0]=e):e=t[0];let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(Ae,{fallback:e,children:n.jsx(w.Suspense,{fallback:n.jsx(R.Skeleton,{}),children:n.jsx(is,{})})}),t[1]=s):s=t[1],s}function os({invitation:t,onStatusChange:e}){const[s,a]=w.useState(!1),[i,r]=w.useState(!1),o=fe(),l=async()=>{a(!0);try{const b=await J.organization.acceptInvitation({invitationId:t.id});if(b.error)Y.error(b.error.message),a(!1);else{e(t.id,"accepted");const j=await J.organization.setActive({organizationId:t.organizationId});j?.data?.slug?(Y.success("Invitation accepted!"),o({to:"/$org",params:{org:j.data.slug}})):(Y.success("Invitation accepted! Redirecting..."),o({to:"/"}))}}catch{Y.error("Failed to accept invitation"),a(!1)}},c=async()=>{r(!0);try{const b=await J.organization.rejectInvitation({invitationId:t.id});b.error?(Y.error(b.error.message),r(!1)):(Y.success("Invitation rejected"),e(t.id,"rejected"),r(!1))}catch{Y.error("Failed to reject invitation"),r(!1)}},d=t.organizationName||t.organizationId,m=t.status==="pending",u=t.status==="accepted",p=t.status==="rejected";return n.jsxs("div",{className:$("flex items-center gap-3 px-3 py-2 h-12 border-b border-border/50 last:border-b-0",!m&&"opacity-50"),children:[n.jsx("div",{className:"shrink-0 size-5 flex items-center justify-center",children:n.jsx(Xe,{size:16,className:"text-muted-foreground"})}),n.jsxs("p",{className:"flex-1 text-sm text-foreground min-w-0 whitespace-nowrap overflow-hidden",children:["You have been invited to ",n.jsx("span",{className:"font-semibold inline-block max-w-[200px] truncate align-bottom",children:d})]}),n.jsx("div",{className:"flex items-center gap-1 shrink-0",children:m?n.jsxs(n.Fragment,{children:[n.jsx(Z,{variant:"ghost",size:"icon",onClick:c,disabled:s||i,className:"h-8 w-8",children:n.jsx(ye,{size:14})}),n.jsx(Z,{variant:"outline",size:"icon",onClick:l,disabled:s||i,className:"h-8 w-8",children:n.jsx(de,{size:14})})]}):u?n.jsxs(Se,{variant:"outline",className:"h-6 px-2 text-xs",children:[n.jsx(de,{size:12}),"Accepted"]}):p?n.jsxs(Se,{variant:"outline",className:"h-6 px-2 text-xs",children:[n.jsx(ye,{size:12}),"Declined"]}):null})]})}function ls(){const[t,e]=w.useState(!1),s=w.useContext(dt),{data:a}=s.hooks.useListUserInvitations(),{data:i}=J.useListOrganizations(),[r,o]=w.useState({}),m=(a??[]).filter(f=>new Date(f.expiresAt)>new Date).map(f=>{const g=(i??[]).find(x=>x.id===f.organizationId);return{...f,organizationSlug:g?.slug||f.organizationSlug,organizationName:g?.name||f.organizationName}}).map(f=>({...f,status:r[f.id]||f.status})),u=[...m].sort((f,g)=>{const x={pending:0,accepted:1,rejected:2};return(x[f.status]??999)-(x[g.status]??999)}),b=m.filter(f=>f.status==="pending").length>0,j=(f,g)=>{o(x=>({...x,[f]:g}))};return n.jsxs(Re,{open:t,onOpenChange:e,children:[n.jsx(De,{asChild:!0,children:n.jsxs(Z,{variant:"ghost",size:"sm",className:"relative h-7 w-7 p-0","aria-label":"Inbox",children:[n.jsx(Ne,{size:18,className:"text-muted-foreground"}),b&&n.jsx("span",{className:"absolute bottom-1 right-0.5 h-2 w-2 rounded-full bg-destructive ring-2 ring-background"})]})}),n.jsxs(Pe,{align:"end",className:"w-[480px] p-0 overflow-hidden",children:[n.jsx("div",{className:"px-4 py-3 border-b border-border",children:n.jsx("h3",{className:"text-sm font-semibold text-foreground",children:"Inbox"})}),n.jsx("div",{className:"max-h-96 overflow-auto",children:u.length>0?u.map(f=>n.jsx(os,{invitation:f,onStatusChange:j},f.id)):n.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[n.jsx(Ne,{size:32,className:"text-muted-foreground/40 mb-2"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"No invitations at the moment"})]})})]})]})}const cs="sidebar_state",ds=3600*24*7,ms="16rem",fs="18rem",us="3rem",ps="b",tt=w.createContext(null);function ve(){const t=w.useContext(tt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function hs(t){const e=h.c(21),{defaultOpen:s,open:a,onOpenChange:i,children:r}=t,o=s===void 0?!0:s,l=ie(),[c,d]=w.useState(!1),[m,u]=w.useState(o),p=a??m;let b;e[0]!==p||e[1]!==i?(b=z=>{const C=typeof z=="function"?z(p):z;i?i(C):u(C),document.cookie=`${cs}=${C}; path=/; max-age=${ds}`},e[0]=p,e[1]=i,e[2]=b):b=e[2];const j=b;let f;e[3]!==l||e[4]!==j?(f=()=>l?d(gs):j(xs),e[3]=l,e[4]=j,e[5]=f):f=e[5];const g=f;let x,v;e[6]!==g?(x=()=>{const z=C=>{if(C.key===ps&&(C.metaKey||C.ctrlKey)){const I=C.target;if(I.tagName==="INPUT"||I.tagName==="TEXTAREA"||I.isContentEditable)return;C.preventDefault(),g()}};return globalThis.addEventListener("keydown",z),()=>globalThis.removeEventListener("keydown",z)},v=[g],e[6]=g,e[7]=x,e[8]=v):(x=e[7],v=e[8]),w.useEffect(x,v);const S=p?"expanded":"collapsed";let _;e[9]!==l||e[10]!==p||e[11]!==c||e[12]!==j||e[13]!==S||e[14]!==g?(_={state:S,open:p,setOpen:j,isMobile:l,openMobile:c,setOpenMobile:d,toggleSidebar:g},e[9]=l,e[10]=p,e[11]=c,e[12]=j,e[13]=S,e[14]=g,e[15]=_):_=e[15];const N=_;let k;e[16]!==r?(k=n.jsx(He,{delayDuration:0,children:r}),e[16]=r,e[17]=k):k=e[17];let y;return e[18]!==N||e[19]!==k?(y=n.jsx(tt.Provider,{value:N,children:k}),e[18]=N,e[19]=k,e[20]=y):y=e[20],y}function xs(t){return!t}function gs(t){return!t}function bs(t){const e=h.c(14);let s,a,i,r;e[0]!==t?({className:a,style:r,children:s,...i}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=i,e[4]=r):(s=e[1],a=e[2],i=e[3],r=e[4]);let o;e[5]!==r?(o={"--sidebar-width":ms,"--sidebar-width-icon":us,...r},e[5]=r,e[6]=o):o=e[6];const l=o;let c;e[7]!==a?(c=$("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",a),e[7]=a,e[8]=c):c=e[8];let d;return e[9]!==s||e[10]!==i||e[11]!==l||e[12]!==c?(d=n.jsx("div",{"data-slot":"sidebar-wrapper",style:l,className:c,...i,children:s}),e[9]=s,e[10]=i,e[11]=l,e[12]=c,e[13]=d):d=e[13],d}function js(t){const e=h.c(46);let s,a,i,r,o,l;e[0]!==t?({side:r,variant:o,collapsible:l,className:a,children:s,...i}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=i,e[4]=r,e[5]=o,e[6]=l):(s=e[1],a=e[2],i=e[3],r=e[4],o=e[5],l=e[6]);const c=r===void 0?"left":r,d=o===void 0?"sidebar":o,m=l===void 0?"offcanvas":l,{isMobile:u,state:p,openMobile:b,setOpenMobile:j}=ve();if(m==="none"){let C;e[7]!==a?(C=$("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",a),e[7]=a,e[8]=C):C=e[8];let I;return e[9]!==s||e[10]!==i||e[11]!==C?(I=n.jsx("div",{"data-slot":"sidebar",className:C,...i,children:s}),e[9]=s,e[10]=i,e[11]=C,e[12]=I):I=e[12],I}if(u){let C;e[13]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":fs},e[13]=C):C=e[13];let I;e[14]===Symbol.for("react.memo_cache_sentinel")?(I=n.jsxs(Tt,{className:"sr-only",children:[n.jsx(Ot,{children:"Sidebar"}),n.jsx(Mt,{children:"Displays the mobile sidebar."})]}),e[14]=I):I=e[14];let O;e[15]!==s?(O=n.jsx("div",{className:"flex h-full w-full flex-col",children:s}),e[15]=s,e[16]=O):O=e[16];let T;e[17]!==c||e[18]!==O?(T=n.jsxs(At,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:c,children:[I,O]}),e[17]=c,e[18]=O,e[19]=T):T=e[19];let M;return e[20]!==b||e[21]!==i||e[22]!==j||e[23]!==T?(M=n.jsx($t,{open:b,onOpenChange:j,...i,children:T}),e[20]=b,e[21]=i,e[22]=j,e[23]=T,e[24]=M):M=e[24],M}const f=p==="collapsed"?m:"",g=d==="floating"||d==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let x;e[25]!==g?(x=$("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",g),e[25]=g,e[26]=x):x=e[26];let v;e[27]!==x?(v=n.jsx("div",{"data-slot":"sidebar-gap",className:x}),e[27]=x,e[28]=v):v=e[28];const S=c==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",_=d==="floating"||d==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let N;e[29]!==a||e[30]!==S||e[31]!==_?(N=$("fixed top-12 bottom-0 z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",S,_,a),e[29]=a,e[30]=S,e[31]=_,e[32]=N):N=e[32];let k;e[33]!==s?(k=n.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border py-2 flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:s}),e[33]=s,e[34]=k):k=e[34];let y;e[35]!==i||e[36]!==N||e[37]!==k?(y=n.jsx("div",{"data-slot":"sidebar-container",className:N,...i,children:k}),e[35]=i,e[36]=N,e[37]=k,e[38]=y):y=e[38];let z;return e[39]!==c||e[40]!==p||e[41]!==y||e[42]!==f||e[43]!==v||e[44]!==d?(z=n.jsxs("div",{className:"group peer text-foreground hidden md:block border-r","data-state":p,"data-collapsible":f,"data-variant":d,"data-side":c,"data-slot":"sidebar",children:[v,y]}),e[39]=c,e[40]=p,e[41]=y,e[42]=f,e[43]=v,e[44]=d,e[45]=z):z=e[45],z}function vs(t){const e=h.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=$("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",s),e[3]=s,e[4]=i):i=e[4];let r;return e[5]!==a||e[6]!==i?(r=n.jsx("main",{"data-slot":"sidebar-inset",className:i,...a}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}function ws(t){const e=h.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=$("h-4 m-0! w-full",s),e[3]=s,e[4]=i):i=e[4];let r;return e[5]!==a||e[6]!==i?(r=n.jsx("div",{"data-sidebar":"separator",className:i,...a}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}function Ss(t){const e=h.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=$("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",s),e[3]=s,e[4]=i):i=e[4];let r;return e[5]!==a||e[6]!==i?(r=n.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:i,...a}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}function Ns(t){const e=h.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=$("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",s),e[3]=s,e[4]=i):i=e[4];let r;return e[5]!==a||e[6]!==i?(r=n.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:i,...a}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}function ys(t){const e=h.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=$("w-full text-sm",s),e[3]=s,e[4]=i):i=e[4];let r;return e[5]!==a||e[6]!==i?(r=n.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:i,...a}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}function Cs(t){const e=h.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=$("flex w-full min-w-0 flex-col gap-1",s),e[3]=s,e[4]=i):i=e[4];let r;return e[5]!==a||e[6]!==i?(r=n.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:i,...a}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}function ue(t){const e=h.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=$("group/menu-item relative",s),e[3]=s,e[4]=i):i=e[4];let r;return e[5]!==a||e[6]!==i?(r=n.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:i,...a}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}const _s=ft("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg px-2 py-1.5 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding,colors] transition-colors duration-150 ease-out hover:transition-none focus-visible:ring-2 active:bg-sidebar-accent/75 disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent/75 [&>span:last-child]:truncate [&>svg]:size-[18px] [&>svg]:shrink-0 [&>svg]:text-muted-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent text-sidebar-foreground/80 active:text-sidebar-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-7 text-sm font-[450]",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function st(t){const e=h.c(28);let s,a,i,r,o,l,c;e[0]!==t?({asChild:i,isActive:r,variant:o,size:l,tooltip:c,className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=i,e[4]=r,e[5]=o,e[6]=l,e[7]=c):(s=e[1],a=e[2],i=e[3],r=e[4],o=e[5],l=e[6],c=e[7]);const d=i===void 0?!1:i,m=r===void 0?!1:r,u=o===void 0?"default":o,p=l===void 0?"default":l,b=d?mt:"button",{isMobile:j,state:f}=ve();let g;e[8]!==s||e[9]!==p||e[10]!==u?(g=$(_s({variant:u,size:p}),s),e[8]=s,e[9]=p,e[10]=u,e[11]=g):g=e[11];let x;e[12]!==b||e[13]!==m||e[14]!==a||e[15]!==p||e[16]!==g?(x=n.jsx(b,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":p,"data-active":m,className:g,...a}),e[12]=b,e[13]=m,e[14]=a,e[15]=p,e[16]=g,e[17]=x):x=e[17];const v=x;if(!c)return v;if(typeof c=="string"){let y;e[18]!==c?(y={children:c},e[18]=c,e[19]=y):y=e[19],c=y}let S;e[20]!==v?(S=n.jsx(Ue,{asChild:!0,children:v}),e[20]=v,e[21]=S):S=e[21];const _=f!=="collapsed"||j;let N;e[22]!==_||e[23]!==c?(N=n.jsx(Le,{side:"right",align:"center",hidden:_,...c}),e[22]=_,e[23]=c,e[24]=N):N=e[24];let k;return e[25]!==S||e[26]!==N?(k=n.jsxs(Be,{children:[S,N]}),e[25]=S,e[26]=N,e[27]=k):k=e[27],k}function ks(t){const e=h.c(26),{item:s}=t,a=fe(),{org:i}=me(),r=be(i.id),o=Ht(i.id);let l;e[0]!==o.update||e[1]!==s.url||e[2]!==r?.sidebar_items?(l=async()=>{const _=(r?.sidebar_items||[]).filter(N=>N.url!==s.url);await o.update.mutateAsync({sidebar_items:_})},e[0]=o.update,e[1]=s.url,e[2]=r?.sidebar_items,e[3]=l):l=e[3];const c=l;let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=/^https?:\/\/.+/,e[4]=d):d=e[4];let m;e[5]!==s.icon?(m=d.test(s.icon),e[5]=s.icon,e[6]=m):m=e[6];const u=m;let p;e[7]!==s.url||e[8]!==a?(p=()=>{a({to:s.url})},e[7]=s.url,e[8]=a,e[9]=p):p=e[9];const b=s.title;let j;e[10]!==u||e[11]!==s.icon||e[12]!==s.title?(j=n.jsx("div",{className:"flex items-center justify-center shrink-0",children:u?n.jsx("img",{src:s.icon,alt:s.title,className:"h-4 w-4 rounded object-cover"}):n.jsx(Lt,{size:16,className:"text-muted-foreground group-hover/item:text-foreground transition-colors"})}),e[10]=u,e[11]=s.icon,e[12]=s.title,e[13]=j):j=e[13];let f;e[14]!==s.title?(f=s.title.toLocaleLowerCase(),e[14]=s.title,e[15]=f):f=e[15];let g;e[16]!==f?(g=n.jsx("div",{className:"flex-1 min-w-0 flex flex-col items-start",children:n.jsx("span",{className:"truncate text-sm w-full capitalize",children:f})}),e[16]=f,e[17]=g):g=e[17];let x;e[18]!==c?(x=n.jsx(ce,{size:16,className:"text-muted-foreground opacity-0 group-hover/item:opacity-50 hover:opacity-100 cursor-pointer",onClick:S=>{S.preventDefault(),S.stopPropagation(),c()}}),e[18]=c,e[19]=x):x=e[19];let v;return e[20]!==s.title||e[21]!==p||e[22]!==j||e[23]!==g||e[24]!==x?(v=n.jsx(ue,{children:n.jsxs(st,{className:"w-full pr-2 group/item relative cursor-pointer text-foreground/90 hover:text-foreground",onClick:p,tooltip:b,children:[j,g,x]})}),e[20]=s.title,e[21]=p,e[22]=j,e[23]=g,e[24]=x,e[25]=v):v=e[25],v}function Is(){const t=h.c(4),{org:e}=me(),a=be(e.id)?.sidebar_items;if(!a?.length)return null;let i;t[0]!==a?(i=a.map(zs),t[0]=a,t[1]=i):i=t[1];let r;return t[2]!==i?(r=n.jsx(nt,{children:i}),t[2]=i,t[3]=r):r=t[3],r}function zs(t){return n.jsx(ks,{item:t},t.url)}function ke(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(ue,{children:n.jsx("div",{className:"flex items-center gap-2 px-4 py-2",children:n.jsx(Ee,{className:"h-4 flex-1"})})}),t[0]=e):e=t[0],e}function nt(t){const e=h.c(4),{children:s}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(ws,{className:"my-2 -ml-1"}),e[0]=a):a=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(ue,{children:n.jsx("div",{className:"group-data-[collapsible=icon]:hidden px-2 py-0 text-xs font-medium h-6 text-muted-foreground flex items-center justify-between",children:n.jsx("span",{className:"whitespace-nowrap",children:"Pinned Views"})})}),e[1]=i):i=e[1];let r;return e[2]!==s?(r=n.jsxs(n.Fragment,{children:[a,i,s]}),e[2]=s,e[3]=r):r=e[3],r}function $s(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(w.Suspense,{fallback:n.jsxs(nt,{children:[n.jsx(ke,{}),n.jsx(ke,{})]}),children:n.jsx(Is,{})}),t[0]=e):e=t[0],e}function Ts(){const t=h.c(14),{locator:e,org:s}=me(),a=fe(),i=xe(),{org:r}=we.parse(e);let o;t[0]!==e?(o=we.isOrgAdminProject(e),t[0]=e,t[1]=o):o=t[1];const l=o,c=be(s.id);let d;t[2]!==c?.enabled_plugins?(d=c?.enabled_plugins??[],t[2]=c?.enabled_plugins,t[3]=d):d=t[3];const m=d;let u;t[4]!==m?(u=y=>m.includes(y.pluginId),t[4]=m,t[5]=u):u=t[5];const p=ut.filter(u),b=i.location.pathname===`/${r}`||i.location.pathname===`/${r}/`;let j;t[6]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx(Ut,{}),t[6]=j):j=t[6];let f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(Ze,{}),t[7]=f):f=t[7];let g;t[8]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(Ct,{}),t[8]=g):g=t[8];let x;t[9]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(Me,{}),t[9]=x):x=t[9];let v;t[10]===Symbol.for("react.memo_cache_sentinel")?(v=n.jsx(et,{}),t[10]=v):v=t[10];let S;t[11]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsx(Ge,{}),t[11]=S):S=t[11];let _;t[12]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(Qe,{}),t[12]=_):_=t[12];let N;t[13]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx(je,{}),t[13]=N):N=t[13];const k=[{key:"home",label:"Home",icon:j,onClick:()=>{b?window.dispatchEvent(new CustomEvent("reset-home-view")):a({to:"/$org",params:{org:r}})}},{key:"store",label:"Store",icon:f,onClick:()=>a({to:"/$org/store",params:{org:r}})},...p.map(y=>({key:y.pluginId,label:y.label,icon:y.icon,onClick:()=>a({to:"/$org/$pluginId",params:{org:r,pluginId:y.pluginId}})})),{key:"mcps",label:"Connections",icon:g,onClick:()=>a({to:"/$org/mcps",params:{org:r}})},{key:"agents",label:"Agents",icon:x,onClick:()=>a({to:"/$org/agents",params:{org:r}})},{key:"workflow",label:"Workflows",icon:v,onClick:()=>a({to:"/$org/workflows",params:{org:r}})},{key:"monitoring",label:"Monitoring",icon:S,onClick:()=>a({to:"/$org/monitoring",params:{org:r}})},{key:"members",label:"Members",icon:_,onClick:()=>a({to:"/$org/members",params:{org:r}})},{key:"settings",label:"Settings",icon:N,onClick:()=>a({to:"/$org/settings",params:{org:r}})}];return l?k:[]}function at(t){const e=h.c(10),{navigationItems:s,footer:a,additionalContent:i,variant:r,collapsible:o}=t,l=r===void 0?"sidebar":r,c=o===void 0?"icon":o;let d;e[0]!==s?(d=s.map(Os),e[0]=s,e[1]=d):d=e[1];let m;e[2]!==i||e[3]!==d?(m=n.jsx(Ss,{className:"flex-1 overflow-x-hidden",children:n.jsx(Ns,{className:"font-medium",children:n.jsx(ys,{children:n.jsxs(Cs,{className:"gap-0.5",children:[d,i]})})})}),e[2]=i,e[3]=d,e[4]=m):m=e[4];let u;return e[5]!==c||e[6]!==a||e[7]!==m||e[8]!==l?(u=n.jsxs(js,{variant:l,collapsible:c,children:[m,a]}),e[5]=c,e[6]=a,e[7]=m,e[8]=l,e[9]=u):u=e[9],u}function Os(t){return n.jsx(ue,{children:n.jsxs(st,{className:"group/nav-item cursor-pointer text-foreground/90 hover:text-foreground",onClick:t.onClick,isActive:t.isActive,tooltip:t.label,children:[n.jsx("span",{className:"text-muted-foreground group-hover/nav-item:text-foreground transition-colors [&>svg]:size-4",children:t.icon}),n.jsx("span",{className:"truncate",children:t.label})]})},t.key)}at.Skeleton=function(){return n.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,s)=>n.jsx("div",{className:"w-full h-8",children:n.jsx(Ee,{className:"h-full bg-sidebar-accent rounded-md"})},s))})};function Ms(){const t=h.c(3),e=Ts();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(Ae,{children:n.jsx(w.Suspense,{fallback:null,children:n.jsx($s,{})})}),t[0]=s):s=t[0];let a;return t[1]!==e?(a=n.jsx(at,{navigationItems:e,additionalContent:s}),t[1]=e,t[2]=a):a=t[2],a}function As(t){const e=h.c(12);let s,a,i,r;e[0]!==t?({className:s,orientation:i,decorative:r,...a}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=i,e[4]=r):(s=e[1],a=e[2],i=e[3],r=e[4]);const o=i===void 0?"horizontal":i,l=r===void 0?!0:r;let c;e[5]!==s?(c=$("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",s),e[5]=s,e[6]=c):c=e[6];let d;return e[7]!==l||e[8]!==o||e[9]!==a||e[10]!==c?(d=n.jsx(pt,{"data-slot":"separator-root",decorative:l,orientation:o,className:c,...a}),e[7]=l,e[8]=o,e[9]=a,e[10]=c,e[11]=d):d=e[11],d}const it=w.createContext(null);function Es(){const t=w.useContext(it);if(!t)throw new Error("TopbarSwitcher compound components must be used within TopbarSwitcher.Root");return t}function Rs(t){const e=h.c(10),{children:s,onItemHover:a}=t,[i,r]=w.useState(null);let o;e[0]!==a?(o=u=>{r(u),a?.(u)},e[0]=a,e[1]=o):o=e[1];const l=o;let c;e[2]!==i||e[3]!==l?(c={hoveredItem:i,setHoveredItem:l},e[2]=i,e[3]=l,e[4]=c):c=e[4];let d;e[5]!==s?(d=n.jsx(Re,{children:s}),e[5]=s,e[6]=d):d=e[6];let m;return e[7]!==c||e[8]!==d?(m=n.jsx(it.Provider,{value:c,children:d}),e[7]=c,e[8]=d,e[9]=m):m=e[9],m}function Ds(t){const e=h.c(6),{children:s,onClick:a}=t;let i;e[0]!==s||e[1]!==a?(i=n.jsx(Z,{variant:"link",className:"p-0.5 h-auto",onClick:a,type:"button",children:s}),e[0]=s,e[1]=a,e[2]=i):i=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(De,{asChild:!0,children:n.jsx(Z,{size:"icon",variant:"ghost",className:"w-6 h-6 p-0",children:n.jsx(Pt,{size:16,className:"opacity-50"})})}),e[3]=r):r=e[3];let o;return e[4]!==i?(o=n.jsxs("div",{className:"flex items-center gap-1",children:[i,r]}),e[4]=i,e[5]=o):o=e[5],o}function Ps(t){const e=h.c(8),{item:s,fallback:a}=t,i=a===void 0?"":a,r=s?.avatarUrl??"",o=s?.name??i;let l;e[0]!==r||e[1]!==o?(l=n.jsx(ne,{url:r,fallback:o,size:"xs",objectFit:"contain"}),e[0]=r,e[1]=o,e[2]=l):l=e[2];const c=s?.name??i;let d;e[3]!==c?(d=n.jsx("span",{children:c}),e[3]=c,e[4]=d):d=e[4];let m;return e[5]!==l||e[6]!==d?(m=n.jsxs("div",{className:"flex items-center gap-2",children:[l,d]}),e[5]=l,e[6]=d,e[7]=m):m=e[7],m}function Ls(t){const e=h.c(6),{children:s,align:a}=t,i=a===void 0?"start":a,o=w.Children.toArray(s).filter(Hs).length===1?"280px":"480px";let l;e[0]!==o?(l={width:o},e[0]=o,e[1]=l):l=e[1];let c;return e[2]!==i||e[3]!==s||e[4]!==l?(c=n.jsx(Pe,{align:i,className:"p-0 flex items-start",style:l,children:s}),e[2]=i,e[3]=s,e[4]=l,e[5]=c):c=e[5],c}function Hs(t){return w.isValidElement(t)&&(t.type===ot||t.type===rt)}function rt(t){const e=h.c(5),{children:s,className:a}=t;let i;e[0]!==a?(i=$("flex flex-col border-border w-[240px] border-r last:border-r-0 last:w-full",a),e[0]=a,e[1]=i):i=e[1];let r;return e[2]!==s||e[3]!==i?(r=n.jsx("div",{className:i,children:s}),e[2]=s,e[3]=i,e[4]=r):r=e[4],r}const ot=rt;function Us(t){const e=h.c(6),{placeholder:s,value:a,onChange:i}=t,r=s===void 0?"Search...":s;let o;e[0]!==i?(o=c=>i(c.target.value),e[0]=i,e[1]=o):o=e[1];let l;return e[2]!==r||e[3]!==o||e[4]!==a?(l=n.jsx(Wt,{placeholder:r,value:a,onChange:o,className:"rounded-none border-t-0 border-x-0 focus-visible:border-border focus-visible:ring-0"}),e[2]=r,e[3]=o,e[4]=a,e[5]=l):l=e[5],l}function Bs(t){const e=h.c(6),{children:s,emptyMessage:a}=t,i=a===void 0?"No items found.":a,r=w.Children.count(s)>0;let o;e[0]!==i||e[1]!==r?(o=!r&&n.jsx("div",{className:"text-muted-foreground text-sm px-1 py-8 text-center",children:i}),e[0]=i,e[1]=r,e[2]=o):o=e[2];let l;return e[3]!==s||e[4]!==o?(l=n.jsxs("div",{className:"flex flex-col gap-0.5 p-1 max-h-44 overflow-y-auto",children:[o,s]}),e[3]=s,e[4]=o,e[5]=l):l=e[5],l}function Ws(t){const e=h.c(15),{item:s,onClick:a,onHover:i,children:r}=t,o=Es();let l;e[0]!==o||e[1]!==s||e[2]!==i?(l=()=>{o.setHoveredItem(s.slug),i?.(s)},e[0]=o,e[1]=s,e[2]=i,e[3]=l):l=e[3];const c=l;let d;e[4]!==s||e[5]!==a?(d=()=>a(s),e[4]=s,e[5]=a,e[6]=d):d=e[6];let m;e[7]!==r||e[8]!==s.avatarUrl||e[9]!==s.name?(m=r||n.jsxs(n.Fragment,{children:[n.jsx(ne,{url:s.avatarUrl??"",fallback:s.name,size:"xs",className:"w-[22px]! h-[22px]!",objectFit:"contain"}),n.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:s.name})]}),e[7]=r,e[8]=s.avatarUrl,e[9]=s.name,e[10]=m):m=e[10];let u;return e[11]!==c||e[12]!==d||e[13]!==m?(u=n.jsx(Z,{onClick:d,onMouseEnter:c,variant:"ghost",size:"sm",className:"w-full justify-start font-normal",children:m}),e[11]=c,e[12]=d,e[13]=m,e[14]=u):u=e[14],u}function Vs(t){const e=h.c(2),{children:s}=t;let a;return e[0]!==s?(a=n.jsx("div",{className:"px-1 pb-1 pt-0.5",children:s}),e[0]=s,e[1]=a):a=e[1],a}function Fs(t){const e=h.c(11),{onClick:s,icon:a,children:i,variant:r}=t,l=(r===void 0?"default":r)==="muted"&&"text-muted-foreground";let c;e[0]!==l?(c=$("w-full justify-start font-normal",l),e[0]=l,e[1]=c):c=e[1];let d;e[2]!==a?(d=a&&n.jsx("span",{className:"[&>svg]:size-4",children:a}),e[2]=a,e[3]=d):d=e[3];let m;e[4]!==i?(m=n.jsx("span",{children:i}),e[4]=i,e[5]=m):m=e[5];let u;return e[6]!==s||e[7]!==c||e[8]!==d||e[9]!==m?(u=n.jsxs(Z,{variant:"ghost",size:"sm",className:c,onClick:s,children:[d,m]}),e[6]=s,e[7]=c,e[8]=d,e[9]=m,e[10]=u):u=e[10],u}function Ks(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(As,{}),t[0]=e):e=t[0],e}function Gs(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx("div",{className:"h-4 w-16 bg-accent rounded-full animate-pulse"}),t[0]=e):e=t[0],e}const H=Object.assign(Rs,{Trigger:Ds,CurrentItem:Ps,Content:Ls,Panel:ot,Search:Us,Items:Bs,Item:Ws,Actions:Vs,Action:Fs,Separator:Ks,Skeleton:Gs});function he(){const t=h.c(59);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0];const{org:s}=ze(e),{data:a}=J.useListOrganizations(),i=fe();let r;t[1]!==s||t[2]!==a?(r=a?.find(A=>A.slug===s),t[1]=s,t[2]=a,t[3]=r):r=t[3];const o=r,[l,c]=w.useState(""),[d,m]=w.useState(!1);let u,p,b,j,f,g,x,v;if(t[4]!==o||t[5]!==i||t[6]!==s||t[7]!==l||t[8]!==a){const E=(a?(()=>{const P=a.filter(L=>L.name.toLowerCase().includes(l.toLowerCase()));if(s){const L=P.findIndex(K=>K.slug===s);if(L>0){const K=P[L];K&&(P.splice(L,1),P.unshift(K))}}return P})():[]).map(Zs);let D;t[17]!==o?(D=o?{slug:o.slug,name:o.name,avatarUrl:o.logo}:void 0,t[17]=o,t[18]=D):D=t[18];const W=D;j=H;let V;t[19]!==i||t[20]!==s?(V=()=>i({to:"/$org",params:{org:s??""}}),t[19]=i,t[20]=s,t[21]=V):V=t[21];let U;t[22]!==W?(U=n.jsx(H.CurrentItem,{item:W}),t[22]=W,t[23]=U):U=t[23],t[24]!==V||t[25]!==U?(v=n.jsx(H.Trigger,{onClick:V,children:U}),t[24]=V,t[25]=U,t[26]=v):v=t[26],b=H.Content,p=H.Panel,t[27]!==l?(x=n.jsx(H.Search,{placeholder:"Search organizations...",value:l,onChange:c}),t[27]=l,t[28]=x):x=t[28],u=H.Items,f="No organizations found.";let F;t[29]!==i?(F=P=>n.jsx(H.Item,{item:P,onClick:L=>i({to:"/$org",params:{org:L.slug}})},P.slug),t[29]=i,t[30]=F):F=t[30],g=E.map(F),t[4]=o,t[5]=i,t[6]=s,t[7]=l,t[8]=a,t[9]=u,t[10]=p,t[11]=b,t[12]=j,t[13]=f,t[14]=g,t[15]=x,t[16]=v}else u=t[9],p=t[10],b=t[11],j=t[12],f=t[13],g=t[14],x=t[15],v=t[16];let S;t[31]!==u||t[32]!==f||t[33]!==g?(S=n.jsx(u,{emptyMessage:f,children:g}),t[31]=u,t[32]=f,t[33]=g,t[34]=S):S=t[34];let _,N;t[35]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(H.Actions,{children:n.jsx(H.Action,{onClick:()=>m(!0),variant:"muted",children:"+ Create organization"})}),N=n.jsx(H.Separator,{}),t[35]=_,t[36]=N):(_=t[35],N=t[36]);let k;t[37]!==i?(k=()=>i({to:"/"}),t[37]=i,t[38]=k):k=t[38];let y;t[39]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsx(Vt,{}),t[39]=y):y=t[39];let z;t[40]!==k?(z=n.jsx(H.Actions,{children:n.jsx(H.Action,{onClick:k,icon:y,children:"See all organizations"})}),t[40]=k,t[41]=z):z=t[41];let C;t[42]!==p||t[43]!==z||t[44]!==x||t[45]!==S?(C=n.jsxs(p,{children:[x,S,_,N,z]}),t[42]=p,t[43]=z,t[44]=x,t[45]=S,t[46]=C):C=t[46];let I;t[47]!==b||t[48]!==C?(I=n.jsx(b,{children:C}),t[47]=b,t[48]=C,t[49]=I):I=t[49];let O;t[50]!==j||t[51]!==I||t[52]!==v?(O=n.jsxs(j,{children:[v,I]}),t[50]=j,t[51]=I,t[52]=v,t[53]=O):O=t[53];let T;t[54]!==d?(T=n.jsx(Bt,{open:d,onOpenChange:m}),t[54]=d,t[55]=T):T=t[55];let M;return t[56]!==O||t[57]!==T?(M=n.jsxs(n.Fragment,{children:[O,T]}),t[56]=O,t[57]=T,t[58]=M):M=t[58],M}function Zs(t){return{slug:t.slug,name:t.name,avatarUrl:t.logo}}he.Skeleton=H.Skeleton;function qs({prop:t,defaultProp:e,onChange:s=()=>{}}){const[a,i]=Ys({defaultProp:e,onChange:s}),r=t!==void 0,o=r?t:a,l=$e(s),c=w.useCallback(d=>{if(r){const u=typeof d=="function"?d(t):d;u!==t&&l(u)}else i(d)},[r,t,i,l]);return[o,c]}function Ys({defaultProp:t,onChange:e}){const s=w.useState(t),[a]=s,i=w.useRef(a),r=$e(e);return w.useEffect(()=>{i.current!==a&&(r(a),i.current=a)},[a,i,r]),s}function Js(t){const e=h.c(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n.jsx(ae.Root,{"data-slot":"drawer",...s}),e[2]=s,e[3]=a):a=e[3],a}function Xs(t){const e=h.c(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n.jsx(ae.Trigger,{"data-slot":"drawer-trigger",...s}),e[2]=s,e[3]=a):a=e[3],a}function Qs(t){const e=h.c(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n.jsx(ae.Portal,{"data-slot":"drawer-portal",...s}),e[2]=s,e[3]=a):a=e[3],a}function en(t){const e=h.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=$("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",s),e[3]=s,e[4]=i):i=e[4];let r;return e[5]!==a||e[6]!==i?(r=n.jsx(ae.Overlay,{"data-slot":"drawer-overlay",className:i,...a}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}function tn(t){const e=h.c(12);let s,a,i;e[0]!==t?({className:a,children:s,...i}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=i):(s=e[1],a=e[2],i=e[3]);let r;e[4]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(en,{}),e[4]=r):r=e[4];let o;e[5]!==a?(o=$("group/drawer-content bg-background fixed z-50 flex h-auto flex-col","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",a),e[5]=a,e[6]=o):o=e[6];let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),e[7]=l):l=e[7];let c;return e[8]!==s||e[9]!==i||e[10]!==o?(c=n.jsxs(Qs,{"data-slot":"drawer-portal",children:[r,n.jsxs(ae.Content,{"data-slot":"drawer-content",className:o,...i,children:[l,s]})]}),e[8]=s,e[9]=i,e[10]=o,e[11]=c):c=e[11],c}function sn(t){const e=h.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=$("flex flex-col gap-1.5 px-4 py-2",s),e[3]=s,e[4]=i):i=e[4];let r;return e[5]!==a||e[6]!==i?(r=n.jsx("div",{"data-slot":"drawer-header",className:i,...a}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}function nn(t){const e=h.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let i;e[3]!==s?(i=$("text-foreground font-semibold",s),e[3]=s,e[4]=i):i=e[4];let r;return e[5]!==a||e[6]!==i?(r=n.jsx(ae.Title,{"data-slot":"drawer-title",className:i,...a}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}const lt=w.createContext({setOpen:()=>{}}),an=()=>w.useContext(lt),rn=t=>{const e=h.c(25);let s,a,i,r,o;e[0]!==t?({children:s,defaultOpen:a,open:r,onOpenChange:i,...o}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=i,e[4]=r,e[5]=o):(s=e[1],a=e[2],i=e[3],r=e[4],o=e[5]);const l=a??!1;let c;e[6]!==i||e[7]!==r||e[8]!==l?(c={prop:r,defaultProp:l,onChange:i},e[6]=i,e[7]=r,e[8]=l,e[9]=c):c=e[9];const[d,m]=qs(c);let u;e[10]!==m?(u={setOpen:m},e[10]=m,e[11]=u):u=e[11];let p;e[12]!==s||e[13]!==d||e[14]!==o||e[15]!==m?(p=n.jsx(Js,{open:d,onOpenChange:m,...o,children:s}),e[12]=s,e[13]=d,e[14]=o,e[15]=m,e[16]=p):p=e[16];let b;e[17]!==d||e[18]!==o||e[19]!==m||e[20]!==p?(b=n.jsx(Gt,{open:d,onOpenChange:m,...o,children:p}),e[17]=d,e[18]=o,e[19]=m,e[20]=p,e[21]=b):b=e[21];let j;return e[22]!==u||e[23]!==b?(j=n.jsx(lt.Provider,{value:u,children:b}),e[22]=u,e[23]=b,e[24]=j):j=e[24],j},on=t=>{const{children:e,title:s,...a}=t,i=ie(),{className:r,...o}=a;return i?n.jsxs(tn,{...o,children:[n.jsx(sn,{className:"hidden",children:n.jsx(nn,{children:s})}),n.jsx("div",{className:$("flex flex-col gap-2 p-2 py-4",r),children:e})]}):n.jsx(Kt,{...a,children:e})},ln=t=>{const{children:e,...s}=t,{setOpen:a}=an(),i=ie(),{className:r,...o}=s;return i?n.jsx("div",{...o,onClick:l=>{a(!1);const{onClick:c}=o;c?.(l)},className:$("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-lg px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",r),children:e}):n.jsx(Zt,{...s,children:e})},cn=t=>{const e=h.c(7);let s,a;e[0]!==t?({children:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);const i=ie();let r;return e[3]!==s||e[4]!==i||e[5]!==a?(r=i?n.jsx(Xs,{asChild:!0,children:s}):n.jsx(Ft,{...a,children:s}),e[3]=s,e[4]=i,e[5]=a,e[6]=r):r=e[6],r},dn=t=>{const e=h.c(7);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);const i=ie();let r;return e[3]!==s||e[4]!==i||e[5]!==a?(r=i?n.jsx(Ce,{className:$(s),...a}):n.jsx(Ce,{className:$(s),...a}),e[3]=s,e[4]=i,e[5]=a,e[6]=r):r=e[6],r};function mn(t){const e=h.c(11),{user:s,trigger:a,align:i,children:r}=t,o=i===void 0?"start":i;let l;e[0]!==a||e[1]!==s?(l=a(s),e[0]=a,e[1]=s,e[2]=l):l=e[2];let c;e[3]!==l?(c=n.jsx(cn,{asChild:!0,children:n.jsx("div",{children:l})}),e[3]=l,e[4]=c):c=e[4];let d;e[5]!==o||e[6]!==r?(d=n.jsx(on,{side:"top",align:o,className:"md:w-[240px]",children:r}),e[5]=o,e[6]=r,e[7]=d):d=e[7];let m;return e[8]!==c||e[9]!==d?(m=n.jsxs(rn,{children:[c,d]}),e[8]=c,e[9]=d,e[10]=m):m=e[10],m}function fn(t){const e=h.c(8),{children:s,onClick:a,className:i,asChild:r}=t;let o;e[0]!==r||e[1]!==s||e[2]!==a?(o=r?s:n.jsx("button",{type:"button",className:"flex items-center gap-2 text-sm w-full cursor-pointer",onClick:a,children:s}),e[0]=r,e[1]=s,e[2]=a,e[3]=o):o=e[3];let l;return e[4]!==r||e[5]!==i||e[6]!==o?(l=n.jsx(ln,{asChild:r,className:i,children:o}),e[4]=r,e[5]=i,e[6]=o,e[7]=l):l=e[7],l}function un(t){const e=h.c(2),{className:s}=t;let a;return e[0]!==s?(a=n.jsx(dn,{className:s}),e[0]=s,e[1]=a):a=e[1],a}function pn(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx("div",{className:"w-8 h-8 bg-muted rounded-full animate-pulse"}),t[0]=e):e=t[0],e}const G=Object.assign(mn,{Item:fn,Separator:un,Skeleton:pn});function hn(t){const e=h.c(48),{open:s,onOpenChange:a,user:i,userImage:r}=t,[o,l]=yt(),[c,d]=w.useState(!1);let m;e[0]!==i.id?(m=()=>{navigator.clipboard.writeText(i.id),d(!0),setTimeout(()=>d(!1),2e3)},e[0]=i.id,e[1]=m):m=e[1];const u=m;let p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(qt,{className:"text-base",children:"Profile Settings"}),e[2]=p):p=e[2];let b;e[3]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsxs(Yt,{className:"px-6 pt-6 pb-4 border-b border-border shrink-0 relative",children:[p,n.jsxs(Jt,{className:"absolute top-1/2 right-4 -translate-y-1/2 cursor-pointer rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",children:[n.jsx(ce,{size:16}),n.jsx("span",{className:"sr-only",children:"Close"})]})]}),e[3]=b):b=e[3];const j=i.name||"U";let f;e[4]!==j||e[5]!==r?(f=n.jsx(ne,{url:r,fallback:j,shape:"circle",size:"xl",className:"h-16 w-16"}),e[4]=j,e[5]=r,e[6]=f):f=e[6];const g=i.name||"User";let x;e[7]!==g?(x=n.jsx("span",{className:"text-base font-medium text-foreground",children:g}),e[7]=g,e[8]=x):x=e[8];let v;e[9]!==i.email?(v=n.jsx("span",{className:"text-sm text-muted-foreground",children:i.email}),e[9]=i.email,e[10]=v):v=e[10];let S;e[11]!==x||e[12]!==v?(S=n.jsxs("div",{className:"flex flex-col gap-1",children:[x,v]}),e[11]=x,e[12]=v,e[13]=S):S=e[13];let _;e[14]!==f||e[15]!==S?(_=n.jsxs("div",{className:"flex items-center gap-4",children:[f,S]}),e[14]=f,e[15]=S,e[16]=_):_=e[16];let N;e[17]!==o||e[18]!==l?(N=()=>l(!o),e[17]=o,e[18]=l,e[19]=N):N=e[19];let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=n.jsxs("div",{className:"flex flex-col gap-1 flex-1 min-w-0",children:[n.jsxs(es,{className:"text-sm font-medium text-foreground flex items-center gap-2 pointer-events-none",children:[n.jsx(ss,{size:16,className:"text-muted-foreground"}),"Developer Mode"]}),n.jsx("p",{className:"text-xs text-muted-foreground pointer-events-none",children:"Show technical details like JSON input/output for tool calls"})]}),e[20]=k):k=e[20];let y;e[21]!==o||e[22]!==l?(y=n.jsx("div",{onClick:xn,children:n.jsx(ts,{checked:o,onCheckedChange:l})}),e[21]=o,e[22]=l,e[23]=y):y=e[23];let z;e[24]!==N||e[25]!==y?(z=n.jsxs("button",{type:"button",onClick:N,className:"flex items-center justify-between gap-4 p-4 rounded-lg border border-border hover:bg-accent/50 transition-colors text-left w-full cursor-pointer",children:[k,y]}),e[24]=N,e[25]=y,e[26]=z):z=e[26];let C;e[27]!==_||e[28]!==z?(C=n.jsxs("div",{className:"p-5 space-y-6 min-h-[225px]",children:[_,z]}),e[27]=_,e[28]=z,e[29]=C):C=e[29];let I;e[30]!==i.id?(I=n.jsx("span",{className:"font-mono text-xs",children:i.id}),e[30]=i.id,e[31]=I):I=e[31];let O;e[32]!==c?(O=c?n.jsx(de,{size:14,className:"text-green-600"}):n.jsx(We,{size:14,className:"opacity-0 group-hover:opacity-100 transition-opacity"}),e[32]=c,e[33]=O):O=e[33];let T;e[34]!==u||e[35]!==I||e[36]!==O?(T=n.jsx(Ue,{asChild:!0,children:n.jsxs("button",{type:"button",onClick:u,className:"group flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[I,O]})}),e[34]=u,e[35]=I,e[36]=O,e[37]=T):T=e[37];let M;e[38]===Symbol.for("react.memo_cache_sentinel")?(M=n.jsx(Le,{side:"top",children:n.jsx("p",{className:"text-xs",children:"Copy user ID"})}),e[38]=M):M=e[38];let A;e[39]!==T?(A=n.jsx("div",{className:"border-t border-border px-5 py-4 flex items-center shrink-0",children:n.jsx(He,{children:n.jsxs(Be,{children:[T,M]})})}),e[39]=T,e[40]=A):A=e[40];let E;e[41]!==C||e[42]!==A?(E=n.jsxs(Xt,{className:"sm:max-w-lg sm:max-h-[85vh] p-0 flex flex-col",closeButtonClassName:"hidden",children:[b,n.jsxs("div",{className:"flex flex-col",children:[C,A]})]}),e[41]=C,e[42]=A,e[43]=E):E=e[43];let D;return e[44]!==a||e[45]!==s||e[46]!==E?(D=n.jsx(Qt,{open:s,onOpenChange:a,children:E}),e[44]=a,e[45]=s,e[46]=E,e[47]=D):D=e[47],D}function xn(t){return t.stopPropagation()}function gn(t){const e=h.c(47),{user:s,userImage:a}=t,[i,r]=w.useState(!1),[o,l]=w.useState(!1);let c;e[0]!==s.email||e[1]!==s.id||e[2]!==s.name?(c=()=>{const D=`ID: ${s.id}
|
|
2
|
+
Name: ${s.name||"N/A"}
|
|
3
|
+
Email: ${s.email}`;navigator.clipboard.writeText(D),l(!0),Y.success("User info copied to clipboard"),setTimeout(()=>l(!1),2e3)},e[0]=s.email,e[1]=s.id,e[2]=s.name,e[3]=c):c=e[3];const d=c;let m;e[4]!==s.email||e[5]!==s.name||e[6]!==a?(m=()=>n.jsx(ne,{url:a,fallback:s.name||s.email||"U",shape:"circle",size:"sm",className:"cursor-pointer hover:ring-2 ring-muted-foreground transition-all h-7 w-7"}),e[4]=s.email,e[5]=s.name,e[6]=a,e[7]=m):m=e[7];const u=s.name||s.email||"U";let p;e[8]!==u||e[9]!==a?(p=n.jsx(ne,{url:a,fallback:u,shape:"circle",size:"sm"}),e[8]=u,e[9]=a,e[10]=p):p=e[10];const b=s.name||"User";let j;e[11]!==b?(j=n.jsx("div",{className:"text-sm font-medium truncate",children:b}),e[11]=b,e[12]=j):j=e[12];let f;e[13]!==s.email?(f=n.jsx("div",{className:"text-xs text-muted-foreground truncate",children:s.email}),e[13]=s.email,e[14]=f):f=e[14];let g;e[15]!==j||e[16]!==f?(g=n.jsxs("div",{className:"flex-1 min-w-0 text-left",children:[j,f]}),e[15]=j,e[16]=f,e[17]=g):g=e[17];let x;e[18]!==o?(x=n.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:o?n.jsx(de,{size:16,className:"text-green-600"}):n.jsx(We,{size:16,className:"text-muted-foreground"})}),e[18]=o,e[19]=x):x=e[19];let v;e[20]!==p||e[21]!==g||e[22]!==x?(v=n.jsxs("div",{className:"group flex items-center gap-3 w-full py-1",children:[p,g,x]}),e[20]=p,e[21]=g,e[22]=x,e[23]=v):v=e[23];let S;e[24]!==d||e[25]!==v?(S=n.jsx(G.Item,{onClick:d,children:v}),e[24]=d,e[25]=v,e[26]=S):S=e[26];let _;e[27]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(G.Separator,{}),e[27]=_):_=e[27];let N,k;e[28]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsxs(G.Item,{onClick:()=>r(!0),children:[n.jsx(je,{className:"text-muted-foreground",size:18}),"Profile Settings"]}),k=n.jsx(G.Separator,{}),e[28]=N,e[29]=k):(N=e[28],k=e[29]);let y;e[30]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsx(ht,{className:"w-4 h-4 text-muted-foreground"}),e[30]=y):y=e[30];let z;e[31]===Symbol.for("react.memo_cache_sentinel")?(z=n.jsx(G.Item,{asChild:!0,children:n.jsxs("a",{href:"https://github.com/decocms/admin",target:"_blank",rel:"noopener noreferrer",className:"flex w-full items-center gap-2 text-sm cursor-pointer",children:[y,"decocms/admin",n.jsx(_e,{size:18,className:"text-muted-foreground ml-auto"})]})}),e[31]=z):z=e[31];let C;e[32]===Symbol.for("react.memo_cache_sentinel")?(C=n.jsx(qe,{className:"text-muted-foreground",size:18}),e[32]=C):C=e[32];let I,O;e[33]===Symbol.for("react.memo_cache_sentinel")?(I=n.jsx(G.Item,{asChild:!0,children:n.jsxs("a",{href:"https://decocms.com",target:"_blank",rel:"noopener noreferrer",className:"flex w-full items-center gap-2 text-sm cursor-pointer",children:[C,"Homepage",n.jsx(_e,{size:18,className:"ml-auto text-muted-foreground"})]})}),O=n.jsx(G.Separator,{}),e[33]=I,e[34]=O):(I=e[33],O=e[34]);let T;e[35]===Symbol.for("react.memo_cache_sentinel")?(T=n.jsxs(G.Item,{onClick:bn,children:[n.jsx(Je,{size:18,className:"text-muted-foreground"}),"Log out"]}),e[35]=T):T=e[35];let M;e[36]!==S||e[37]!==m||e[38]!==s?(M=n.jsxs(G,{user:s,trigger:m,align:"end",children:[S,_,N,k,z,I,O,T]}),e[36]=S,e[37]=m,e[38]=s,e[39]=M):M=e[39];let A;e[40]!==i||e[41]!==s||e[42]!==a?(A=i&&n.jsx(hn,{open:i,onOpenChange:r,user:s,userImage:a}),e[40]=i,e[41]=s,e[42]=a,e[43]=A):A=e[43];let E;return e[44]!==M||e[45]!==A?(E=n.jsxs(n.Fragment,{children:[M,A]}),e[44]=M,e[45]=A,e[46]=E):E=e[46],E}function bn(){return J.signOut()}function jn(){const t=h.c(7),{data:e}=J.useSession();if(!e?.user){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(ne,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=c):c=t[0],c}const s=e.user,a=s.name??void 0;let i;t[1]!==a||t[2]!==s?(i={...s,name:a},t[1]=a,t[2]=s,t[3]=i):i=t[3];const r=i,o=s.image;let l;return t[4]!==o||t[5]!==r?(l=n.jsx(gn,{user:r,userImage:o}),t[4]=o,t[5]=r,t[6]=l):l=t[6],l}function vn(){const t=h.c(2),s=xe().location.href;let a;return t[0]!==s?(a=n.jsx(jt,{to:"/login",search:{next:s},replace:!0}),t[0]=s,t[1]=a):a=t[1],a}function wn(t){const e=h.c(6),{children:s}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(xt,{children:n.jsx(Te,{})}),e[0]=a):a=e[0];let i;e[1]!==s?(i=n.jsx(gt,{children:s}),e[1]=s,e[2]=i):i=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(bt,{children:n.jsx(vn,{})}),e[3]=r):r=e[3];let o;return e[4]!==i?(o=n.jsxs(n.Fragment,{children:[a,i,r]}),e[4]=i,e[5]=o):o=e[5],o}function Sn(t){const e=h.c(5),{children:s,className:a}=t;let i;e[0]!==a?(i=$("fixed top-0 left-0 right-0 z-20 bg-sidebar flex items-center w-full h-12 border-b border-border",a),e[0]=a,e[1]=i):i=e[1];let r;return e[2]!==s||e[3]!==i?(r=n.jsx("div",{className:i,children:s}),e[2]=s,e[3]=i,e[4]=r):r=e[4],r}function Nn(t){const e=h.c(5),{children:s,className:a}=t;let i;e[0]!==a?(i=$("flex items-center justify-center px-2.5 h-full border-r border-border",a),e[0]=a,e[1]=i):i=e[1];let r;return e[2]!==s||e[3]!==i?(r=n.jsx("div",{className:i,children:s}),e[2]=s,e[3]=i,e[4]=r):r=e[4],r}function yn(t){const e=h.c(5),{children:s,className:a}=t;let i;e[0]!==a?(i=$("flex items-center gap-2 px-2 h-full",a),e[0]=a,e[1]=i):i=e[1];let r;return e[2]!==s||e[3]!==i?(r=n.jsx("div",{className:i,children:s}),e[2]=s,e[3]=i,e[4]=r):r=e[4],r}function Cn(t){const e=h.c(5),{children:s,className:a}=t;let i;e[0]!==a?(i=$("flex items-center gap-2 px-2 h-full flex-1",a),e[0]=a,e[1]=i):i=e[1];let r;return e[2]!==s||e[3]!==i?(r=n.jsx("div",{className:i,children:s}),e[2]=s,e[3]=i,e[4]=r):r=e[4],r}function _n(t){const e=h.c(5),{children:s,className:a}=t;let i;e[0]!==a?(i=$("flex items-center gap-2 px-2 h-full ml-auto",a),e[0]=a,e[1]=i):i=e[1];let r;return e[2]!==s||e[3]!==i?(r=n.jsx("div",{className:i,children:s}),e[2]=s,e[3]=i,e[4]=r):r=e[4],r}function kn(){const t=h.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx("div",{className:"flex items-center justify-center px-2 h-full border-r border-border",children:n.jsx("div",{className:"w-8 h-8 bg-muted rounded-md animate-pulse"})}),t[0]=e):e=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx("div",{className:"flex items-center gap-2 px-2 h-full",children:n.jsx("div",{className:"w-32 h-6 bg-muted rounded-md animate-pulse"})}),t[1]=s):s=t[1];let a;return t[2]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsxs("div",{className:"fixed top-0 left-0 right-0 z-20 bg-sidebar flex items-center w-full h-12 border-b border-border",children:[e,s,n.jsx("div",{className:"flex items-center gap-2 px-2 h-full ml-auto",children:n.jsx("div",{className:"w-8 h-8 bg-muted rounded-full animate-pulse"})})]}),t[2]=a):a=t[2],a}const le=Object.assign(Sn,{Sidebar:Nn,Left:yn,Center:Cn,Right:_n,Skeleton:kn});function ct(){const t=h.c(3),{toggleSidebar:e}=ve();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(Ye,{className:"text-muted-foreground/85 group-hover:text-foreground transition-colors",size:18}),t[0]=s):s=t[0];let a;return t[1]!==e?(a=n.jsx(n.Fragment,{children:n.jsx(Z,{onClick:e,size:"icon",variant:"ghost",className:"w-7 h-7 rounded-md",children:s})}),t[1]=e,t[2]=a):a=t[2],a}ct.Skeleton=function(){return n.jsx("div",{className:"w-7 h-7 bg-muted rounded-md animate-pulse"})};function Ie({showSidebarToggle:t=!1,showOrgSwitcher:e=!1,showDecoChat:s=!1,disableDecoChat:a=!1}){const[i,r]=ge(),o=w.useRef(a);a&&i&&o.current!==a&&r(!1),o.current=a;const l=()=>{a||r(c=>!c)};return n.jsxs(le,{children:[t&&n.jsx(le.Sidebar,{children:n.jsx(ct,{})}),n.jsx(le.Left,{children:e&&n.jsx(w.Suspense,{fallback:n.jsx(he.Skeleton,{}),children:n.jsx(he,{})})}),n.jsxs(le.Right,{className:"gap-2",children:[n.jsx(ls,{}),s&&!a&&n.jsxs(Z,{size:"sm",variant:"default",onClick:l,className:"h-7 gap-2",children:[n.jsx(Et,{size:16}),"Chat"]}),n.jsx(jn,{})]})]})}function In(t){const e=h.c(10),{children:s,className:a}=t,[,i]=w.useTransition();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=Fe.decoChatPanelWidth(),e[0]=r):r=e[0];const[o,l]=Ve(r,30);let c;e[1]!==l?(c=p=>i(()=>l(p)),e[1]=l,e[2]=c):c=e[2];const d=c;let m;e[3]!==a?(m=$("min-w-0",a),e[3]=a,e[4]=m):m=e[4];let u;return e[5]!==o||e[6]!==s||e[7]!==d||e[8]!==m?(u=n.jsx(Ke,{defaultSize:o,minSize:20,className:m,onResize:d,children:s}),e[5]=o,e[6]=s,e[7]=d,e[8]=m,e[9]=u):u=e[9],u}function zn(t){const e=h.c(5),{children:s}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=Fe.sidebarOpen(),e[0]=a):a=e[0];const[i,r]=Ve(a,!0);let o;return e[1]!==s||e[2]!==r||e[3]!==i?(o=n.jsx(hs,{open:i,onOpenChange:r,children:s}),e[1]=s,e[2]=r,e[3]=i,e[4]=o):o=e[4],o}function $n(t){const e=h.c(6),{disableChat:s}=t,a=s===void 0?!1:s,[i]=ge();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(Ke,{className:"bg-background",children:n.jsx(Oe,{})}),e[0]=r):r=e[0];let o;e[1]!==i||e[2]!==a?(o=!a&&n.jsxs(n.Fragment,{children:[n.jsx(ns,{withHandle:i}),n.jsx(In,{className:$(i?"max-w-none":"max-w-0"),children:n.jsx(rs,{})})]}),e[1]=i,e[2]=a,e[3]=o):o=e[3];let l;return e[4]!==o?(l=n.jsxs(as,{direction:"horizontal",children:[r,o]}),e[4]=o,e[5]=l):l=e[5],l}function Tn(){const t=h.c(22);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0];const{org:s}=ze(e),a=xe(),i=a.location.pathname===`/${s}`||a.location.pathname===`/${s}/`;let r;t[1]!==s?(r=St.activeOrganization(s),t[1]=s,t[2]=r):r=t[2];let o;t[3]!==s?(o=async()=>{if(!s)return null;const{data:f}=await J.organization.setActive({organizationSlug:s});return{org:f,project:{slug:Nt}}},t[3]=s,t[4]=o):o=t[4];let l;t[5]!==r||t[6]!==o?(l={queryKey:r,queryFn:o,gcTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1},t[5]=r,t[6]=o,t[7]=l):l=t[7];const{data:c}=vt(l);if(!c){let f;t[8]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(Ie,{}),t[8]=f):f=t[8];let g;return t[9]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsxs("div",{className:"min-h-screen bg-background",children:[f,n.jsx("div",{className:"pt-12",children:n.jsx(Oe,{})})]}),t[9]=g):g=t[9],g}let d;t[10]!==i?(d=n.jsx(Ie,{showSidebarToggle:!0,showOrgSwitcher:!0,showDecoChat:!0,disableDecoChat:i}),t[10]=i,t[11]=d):d=t[11];let m;t[12]===Symbol.for("react.memo_cache_sentinel")?(m={"--sidebar-width":"13rem","--sidebar-width-mobile":"11rem"},t[12]=m):m=t[12];let u;t[13]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(Ms,{}),t[13]=u):u=t[13];let p;t[14]!==i?(p=n.jsx(R.Provider,{children:n.jsxs(bs,{className:"flex-1 bg-sidebar",style:m,children:[u,n.jsx(vs,{className:"pt-12",children:n.jsx($n,{disableChat:i})})]})}),t[14]=i,t[15]=p):p=t[15];let b;t[16]!==d||t[17]!==p?(b=n.jsx(zn,{children:n.jsxs("div",{className:"flex flex-col h-screen",children:[d,p]})}),t[16]=d,t[17]=p,t[18]=b):b=t[18];let j;return t[19]!==c||t[20]!==b?(j=n.jsx(wt,{...c,children:b}),t[19]=c,t[20]=b,t[21]=j):j=t[21],j}function Da(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(wn,{children:n.jsx(w.Suspense,{fallback:n.jsx(Te,{}),children:n.jsx(Tn,{})})}),t[0]=e):e=t[0],e}export{Da as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,t as d,j as a}from"./index-
|
|
1
|
+
import{c as C,t as d,j as a}from"./index-Dho9MRVw.js";import{c as m}from"./button-D_0RTXDt.js";const u=d("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",special:"fill-special text-backround"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=m(u({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let l,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=a.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=l,e[4]=i):(l=e[3],i=e[4]);let s;e[5]!==t?(s=a.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=a.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h,a as g,j as o,b as _,S,d as j,e as b,f as d,g as y,N as p}from"./index-
|
|
1
|
+
import{c as h,a as g,j as o,b as _,S,d as j,e as b,f as d,g as y,N as p}from"./index-Dho9MRVw.js";function N(e){const t=h.c(5),{appName:l}=e;let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},t[0]=s):s=t[0];const n=d(s);let a;if(t[1]!==n){const r=new URLSearchParams;for(const[x,u]of Object.entries(n))u!=null&&r.set(x,String(u));a=r.toString(),t[1]=n,t[2]=a}else a=t[2];const f=a,c=`/store/${encodeURIComponent(l)}${f?`?${f}`:""}`;let i;return t[3]!==c?(i=o.jsx(p,{to:"/login",search:{next:c},replace:!0}),t[3]=c,t[4]=i):i=t[4],i}function $(){const e=h.c(10);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=g(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[1]=s):s=e[1];const n=d(s),{data:a,isPending:f}=y.useListOrganizations();if(f){let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(S,{}),e[2]=r):r=e[2],r}const m=a?.[0];if(!m){let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(p,{to:"/",replace:!0}),e[3]=r):r=e[3],r}let c;e[4]!==l||e[5]!==m.slug?(c={org:m.slug,appName:l},e[4]=l,e[5]=m.slug,e[6]=c):c=e[6];let i;return e[7]!==n||e[8]!==c?(i=o.jsx(p,{to:"/$org/store/$appName",params:c,search:n,replace:!0}),e[7]=n,e[8]=c,e[9]=i):i=e[9],i}function v(){const e=h.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=g(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx(_,{children:o.jsx(S,{})}),e[1]=s):s=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(j,{children:o.jsx($,{})}),e[2]=n):n=e[2];let a;return e[3]!==l?(a=o.jsxs(o.Fragment,{children:[s,n,o.jsx(b,{children:o.jsx(N,{appName:l})})]}),e[3]=l,e[4]=a):a=e[4],a}export{v as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as c,j as i,x as C,y,w as T,z as I,F as M,G as z,E as H,c as A}from"./index-Dho9MRVw.js";import{c as g}from"./button-D_0RTXDt.js";var b="Switch",[U]=H(b),[q,F]=U(b),E=c.forwardRef((a,e)=>{const{__scopeSwitch:t,name:s,checked:r,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:w,form:l,...k}=a,[p,h]=c.useState(null),v=y(e,m=>h(m)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:r,defaultProp:n??!1,onChange:w,caller:b});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...k,ref:v,onClick:I(a.onClick,m=>{N(B=>!B),S&&(x.current=m.isPropagationStopped(),x.current||m.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:s,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=b;var P="SwitchThumb",R=c.forwardRef((a,e)=>{const{__scopeSwitch:t,...s}=a,r=F(P,t);return i.jsx(C.span,{"data-state":j(r.checked),"data-disabled":r.disabled?"":void 0,...s,ref:e})});R.displayName=P;var L="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:a,control:e,checked:t,bubbles:s=!0,...r},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),w=z(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const k=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(k,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:s});h.call(l,t),l.dispatchEvent(v)}},[u,t,s]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...r,tabIndex:-1,ref:d,style:{...r.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=L;function j(a){return a?"checked":"unchecked"}var O=E,$=R;function W(a){const e=A.c(9);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),e[3]=t,e[4]=r):r=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx($,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==s||e[7]!==r?(o=i.jsx(O,{"data-slot":"switch",className:r,...s,children:n}),e[6]=s,e[7]=r,e[8]=o):o=e[8],o}export{W as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as o,j as n}from"./index-
|
|
1
|
+
import{c as o,j as n}from"./index-Dho9MRVw.js";import{c as l}from"./button-D_0RTXDt.js";function u(s){const e=o.c(8);let r,i;e[0]!==s?({className:r,...i}=s,e[0]=s,e[1]=r,e[2]=i):(r=e[1],i=e[2]);let t;e[3]!==r?(t=l("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-xl border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),e[3]=r,e[4]=t):t=e[4];let a;return e[5]!==i||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...i}),e[5]=i,e[6]=t,e[7]=a):a=e[7],a}export{u as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{K as Q,j as t,c as U,l as W,r as k}from"./index-
|
|
1
|
+
import{K as Q,j as t,c as U,l as W,r as k}from"./index-Dho9MRVw.js";import{u as Y}from"./useQuery-C2zqJzGD.js";import{i as J}from"./File06-BUwGdOjl.js";import{i as P}from"./Loading01-Bo9vDQAp.js";import{e as X}from"./github-icon-Dp3wHhYE.js";import{C as Z}from"./collection-display-button-Cm0zQnM_.js";import{C as ee}from"./collection-search-DRZ8ScZP.js";import{C as te}from"./collection-table-wrapper-CspbeKNx.js";import{E as F,I as se}from"./empty-state-DKQ_J1zp.js";import{C as oe}from"./card-BmOa96dk.js";import{V as re}from"./layout-BZ8_9wgI.js";function ne(s){return s.replace(/<a[^>]*class="[^"]*anchor[^"]*"[^>]*>.*?<\/a>/gi,"")}function ae(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 ie(s){let e=ne(s);return e=ae(e),e}function Ce({repository:s}){const e=s?X(s):null,{data:i,isLoading:c}=Y({queryKey:Q.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 ie(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(P,{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(J,{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 Se(s){const e=U.c(40),{tools:i,connectionId:c,org:l,onToolClick:m,showToolbar:M,emptyMessage:$,isLoading:A}=s,L=M===void 0?!0:M,j=$===void 0?"This connection doesn't have any tools yet.":$,D=A===void 0?!1:A,I=W(),[n,_]=k.useState(""),[d,q]=k.useState("table"),[r,V]=k.useState("name"),[a,K]=k.useState("asc");let y;e[0]!==a||e[1]!==r?(y=o=>{r===o?(K(ue),a==="desc"&&V(void 0)):(V(o),K("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 B=R[r]||"",O=b[r]||"",H=String(B).localeCompare(String(O));return a==="asc"?H:-H}),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:de,sortable:!0},{id:"description",header:"Description",render:me,cellClassName:"flex-1",sortable:!0}],e[13]=C):C=e[13];const z=C;let S;e[14]===Symbol.for("react.memo_cache_sentinel")?(S=z.filter(ce).map(le),e[14]=S):S=e[14];const G=S;let f;e[15]!==u||e[16]!==L||e[17]!==a||e[18]!==r||e[19]!==d?(f=L&&t.jsx(re,{children:t.jsx(Z,{viewMode:d,onViewModeChange:q,sortKey:r,sortDirection:a,onSort:u,sortOptions:G})}),e[15]=u,e[16]=L,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(ee,{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]!==D||e[28]!==n||e[29]!==a||e[30]!==r||e[31]!==g||e[32]!==d?(h=d==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:g.length===0?t.jsx(F,{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(oe,{className:"cursor-pointer transition-colors",onClick:()=>w(o),children:t.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[t.jsx(se,{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(te,{columns:z,data:g,isLoading:D,sortKey:r,sortDirection:a,onSort:u,onRowClick:o=>w(o),emptyState:t.jsx(F,{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]=D,e[28]=n,e[29]=a,e[30]=r,e[31]=g,e[32]=d,e[33]=h):h=e[33];let x;e[34]!==p||e[35]!==h?(x=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[p,h]}),e[34]=p,e[35]=h,e[36]=x):x=e[36];let T;return e[37]!==x||e[38]!==f?(T=t.jsxs(t.Fragment,{children:[f,x]}),e[37]=x,e[38]=f,e[39]=T):T=e[39],T}function le(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function ce(s){return s.sortable}function me(s){return t.jsx("span",{className:"text-sm text-foreground",children:s.description||"—"})}function de(s){return t.jsx("span",{className:"text-sm font-medium font-mono text-foreground",children:s.name})}function ue(s){return s==="asc"?"desc":s==="desc"?null:"asc"}export{Ce as R,Se as T};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,j as c,x as S,az as J,w as Q,ay as Z,y as H,aA as ee,z as C,D as $,aB as te,aC as z,aI as oe,aJ as re,E as ne,aQ as se,aK as ae,c as j}from"./index-Dho9MRVw.js";import{c as ie}from"./button-D_0RTXDt.js";var le=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ce="VisuallyHidden",G=a.forwardRef((o,e)=>c.jsx(S.span,{...o,ref:e,style:{...le,...o.style}}));G.displayName=ce;var ue=G,[D]=ne("Tooltip",[z]),O=z(),V="TooltipProvider",de=700,A="tooltip.open",[pe,k]=D(V),F=o=>{const{__scopeTooltip:e,delayDuration:t=de,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=a.useRef(!0),d=a.useRef(!1),i=a.useRef(0);return a.useEffect(()=>{const p=i.current;return()=>window.clearTimeout(p)},[]),c.jsx(pe,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:a.useCallback(()=>{window.clearTimeout(i.current),l.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:a.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};F.displayName=V;var R="Tooltip",[fe,_]=D(R),B=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=o,i=k(R,o.__scopeTooltip),p=O(e),[u,v]=a.useState(null),x=J(),f=a.useRef(0),h=l??i.disableHoverableContent,m=d??i.delayDuration,g=a.useRef(!1),[T,y]=Q({prop:r,defaultProp:n??!1,onChange:M=>{M?(i.onOpen(),document.dispatchEvent(new CustomEvent(A))):i.onClose(),s?.(M)},caller:R}),w=a.useMemo(()=>T?g.current?"delayed-open":"instant-open":"closed",[T]),E=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,y(!0)},[y]),P=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,y(!1)},[y]),I=a.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,y(!0),f.current=0},m)},[m,y]);return a.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(Z,{...p,children:c.jsx(fe,{scope:e,contentId:x,open:T,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:a.useCallback(()=>{i.isOpenDelayedRef.current?I():E()},[i.isOpenDelayedRef,I,E]),onTriggerLeave:a.useCallback(()=>{h?P():(window.clearTimeout(f.current),f.current=0)},[P,h]),onOpen:E,onClose:P,disableHoverableContent:h,children:t})})};B.displayName=R;var L="TooltipTrigger",Y=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(L,t),s=k(L,t),l=O(t),d=a.useRef(null),i=H(e,d,n.onTriggerChange),p=a.useRef(!1),u=a.useRef(!1),v=a.useCallback(()=>p.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(ee,{asChild:!0,...l,children:c.jsx(S.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:i,onPointerMove:C(o.onPointerMove,x=>{x.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:C(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:C(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:C(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:C(o.onBlur,n.onClose),onClick:C(o.onClick,n.onClose)})})});Y.displayName=L;var N="TooltipPortal",[ve,xe]=D(N,{forceMount:void 0}),U=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(N,e);return c.jsx(ve,{scope:e,forceMount:t,children:c.jsx($,{present:t||s.open,children:c.jsx(te,{asChild:!0,container:n,children:r})})})};U.displayName=N;var b="TooltipContent",q=a.forwardRef((o,e)=>{const t=xe(b,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(b,o.__scopeTooltip);return c.jsx($,{present:r||l.open,children:l.disableHoverableContent?c.jsx(K,{side:n,...s,ref:e}):c.jsx(he,{side:n,...s,ref:e})})}),he=a.forwardRef((o,e)=>{const t=_(b,o.__scopeTooltip),r=k(b,o.__scopeTooltip),n=a.useRef(null),s=H(e,n),[l,d]=a.useState(null),{trigger:i,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,x=a.useCallback(()=>{d(null),v(!1)},[v]),f=a.useCallback((h,m)=>{const g=h.currentTarget,T={x:h.clientX,y:h.clientY},y=Te(T,g.getBoundingClientRect()),w=Ce(T,y),E=be(m.getBoundingClientRect()),P=Ee([...w,...E]);d(P),v(!0)},[v]);return a.useEffect(()=>()=>x(),[x]),a.useEffect(()=>{if(i&&u){const h=g=>f(g,u),m=g=>f(g,i);return i.addEventListener("pointerleave",h),u.addEventListener("pointerleave",m),()=>{i.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",m)}}},[i,u,f,x]),a.useEffect(()=>{if(l){const h=m=>{const g=m.target,T={x:m.clientX,y:m.clientY},y=i?.contains(g)||u?.contains(g),w=!we(T,l);y?x():w&&(x(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[i,u,l,p,x]),c.jsx(K,{...o,ref:s})}),[ge,me]=D(R,{isInside:!1}),ye=se("TooltipContent"),K=a.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=o,i=_(b,t),p=O(t),{onClose:u}=i;return a.useEffect(()=>(document.addEventListener(A,u),()=>document.removeEventListener(A,u)),[u]),a.useEffect(()=>{if(i.trigger){const v=x=>{x.target?.contains(i.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[i.trigger,u]),c.jsx(oe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(re,{"data-state":i.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(ye,{children:r}),c.jsx(ge,{scope:t,isInside:!0,children:c.jsx(ue,{id:i.contentId,role:"tooltip",children:n||r})})]})})});q.displayName=b;var W="TooltipArrow",X=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=O(t);return me(W,t).isInside?null:c.jsx(ae,{...n,...r,ref:e})});X.displayName=W;function Te(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ce(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function be(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function we(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,l=e.length-1;s<e.length;l=s++){const d=e[s],i=e[l],p=d.x,u=d.y,v=i.x,x=i.y;u>r!=x>r&&t<(v-p)*(r-u)/(x-u)+p&&(n=!n)}return n}function Ee(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),Pe(e)}function Pe(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var Re=F,_e=B,je=Y,De=U,Oe=q,Ae=X;function Le(o){const e=j.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(Re,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Ie(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Le,{children:c.jsx(_e,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function Me(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(je,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function Se(o){const e=j.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const l=s===void 0?0:s;let d;e[5]!==r?(d=ie("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let i;e[7]===Symbol.for("react.memo_cache_sentinel")?(i=c.jsx(Ae,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=i):i=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==l||e[11]!==d?(p=c.jsx(De,{children:c.jsxs(Oe,{"data-slot":"tooltip-content",sideOffset:l,className:d,...n,children:[t,i]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=d,e[12]=p):p=e[12],p}export{Me as T,le as V,Se as a,Le as b,Ie as c};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{r as T,c as j,j as l,T as z,J as E,H,Q as L,W as V,U as D,M as I}from"./index-Dho9MRVw.js";import{I as M}from"./input-trZWilTG.js";import{i as R}from"./X-DyyqPnhR.js";import{c as b}from"./button-D_0RTXDt.js";import{i as W}from"./SearchMd-D9E7kgub.js";const A=({size:n=24,color:e="currentColor",...t})=>T.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},T.createElement("path",{d:"m22.7 13.5-2-2-2 2M21 12a9 9 0 1 1-1.245-4.57M12 7v5l3 2"}));A.displayName="ClockRewind";const _=({size:n=24,color:e="currentColor",...t})=>T.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},T.createElement("path",{d:"m10 15-3.075 3.114c-.43.434-.644.651-.828.666a.5.5 0 0 1-.421-.172c-.12-.14-.12-.446-.12-1.056v-1.56c0-.548-.449-.944-.99-1.024v0a3 3 0 0 1-2.534-2.533C2 12.219 2 11.96 2 11.445V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h7.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C19 4.28 19 5.12 19 6.8V11m0 11-2.176-1.513c-.306-.213-.46-.32-.626-.395a2.002 2.002 0 0 0-.462-.145c-.18-.033-.367-.033-.74-.033H13.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C10 18.394 10 17.834 10 16.714V14.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C11.52 11 12.08 11 13.2 11h5.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 12.52 22 13.08 22 14.2v2.714c0 .932 0 1.398-.152 1.766a2 2 0 0 1-1.083 1.082c-.367.152-.833.152-1.765.152V22Z"}));_.displayName="MessageChatSquare";function O(n){const e=j.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let s;return e[2]!==t?(s=l.jsx(H,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function Q(n){const e=j.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let s;return e[2]!==t?(s=l.jsx(L,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function P(n){const e=j.c(8);let t,s;e[0]!==n?({className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=l.jsx(D,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}function q(n){const e=j.c(17);let t,s,a,o;e[0]!==n?({className:s,children:t,side:o,...a}=n,e[0]=n,e[1]=t,e[2]=s,e[3]=a,e[4]=o):(t=e[1],s=e[2],a=e[3],o=e[4]);const c=o===void 0?"right":o;let h;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=l.jsx(P,{}),e[5]=h):h=e[5];const d=c==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",i=c==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",r=c==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",v=c==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let m;e[6]!==s||e[7]!==d||e[8]!==i||e[9]!==r||e[10]!==v?(m=b("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",d,i,r,v,s),e[6]=s,e[7]=d,e[8]=i,e[9]=r,e[10]=v,e[11]=m):m=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsxs(V,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[l.jsx(R,{className:"size-4"}),l.jsx("span",{className:"sr-only",children:"Close"})]}),e[12]=u):u=e[12];let f;return e[13]!==t||e[14]!==a||e[15]!==m?(f=l.jsxs(Q,{children:[h,l.jsxs(E,{"data-slot":"sheet-content",className:m,...a,children:[t,u]})]}),e[13]=t,e[14]=a,e[15]=m,e[16]=f):f=e[16],f}function F(n){const e=j.c(8);let t,s;e[0]!==n?({className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=l.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}function J(n){const e=j.c(8);let t,s;e[0]!==n?({className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=l.jsx(z,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}function Y(n){const e=j.c(8);let t,s;e[0]!==n?({className:t,...s}=n,e[0]=n,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=b("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=l.jsx(I,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}function B(n){const e=j.c(24),{threads:t,activeThreadId:s,onThreadSelect:a,onClose:o,showHeader:c,showBackButton:h}=n,d=c===void 0?!0:c,i=h===void 0?!1:h,[r,v]=T.useState("");let m;e[0]!==r||e[1]!==t?(m=r.trim()?t.filter(p=>(p.title||"New chat").toLowerCase().includes(r.toLowerCase())):t,e[0]=r,e[1]=t,e[2]=m):m=e[2];const u=m;let f;e[3]!==o||e[4]!==a?(f=p=>{a(p),o&&o()},e[3]=o,e[4]=a,e[5]=f):f=e[5];const k=f;let y;e[6]!==o||e[7]!==i||e[8]!==d?(y=d&&l.jsxs("div",{className:"h-12 px-4 flex items-center justify-between border-b shrink-0",children:[l.jsx("span",{className:"text-sm font-medium",children:"Chat History"}),i&&l.jsx("button",{type:"button",onClick:o,className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Back to chat"})]}),e[6]=o,e[7]=i,e[8]=d,e[9]=y):y=e[9];let C;e[10]===Symbol.for("react.memo_cache_sentinel")?(C=b("px-3 py-3 border-b","shrink-0"),e[10]=C):C=e[10];let S;e[11]===Symbol.for("react.memo_cache_sentinel")?(S=l.jsx(W,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[11]=S):S=e[11];let g;e[12]===Symbol.for("react.memo_cache_sentinel")?(g=p=>v(p.target.value),e[12]=g):g=e[12];let x;e[13]!==r?(x=l.jsx("div",{className:C,children:l.jsxs("div",{className:"relative",children:[S,l.jsx(M,{type:"text",placeholder:"Search conversations...",value:r,onChange:g,className:"pl-9 h-9 text-sm"})]})}),e[13]=r,e[14]=x):x=e[14];let w;e[15]!==s||e[16]!==u||e[17]!==k||e[18]!==r?(w=l.jsx("div",{className:"flex-1 overflow-y-auto",children:u.length===0?l.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-12 px-4 text-center",children:[l.jsx("div",{className:"size-12 rounded-full bg-muted/50 flex items-center justify-center",children:l.jsx(_,{size:24,className:"text-muted-foreground"})}),l.jsxs("div",{className:"space-y-1",children:[l.jsx("p",{className:"text-sm font-medium text-foreground",children:r?"No results found":"No conversations yet"}),l.jsx("p",{className:"text-xs text-muted-foreground",children:r?"Try a different search term":"Start a new chat to see your history here"})]})]}):l.jsx("div",{className:"flex flex-col py-2",children:u.map(p=>{const $=p.id===s;return l.jsx("button",{type:"button",onClick:()=>k(p.id),className:b("flex items-center gap-3 px-4 py-3 text-left transition-colors hover:bg-accent/50",$&&"bg-accent/50"),children:l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("p",{className:b("text-sm truncate",$?"font-medium text-foreground":"text-muted-foreground"),children:p.title||"New chat"}),l.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:new Date(p.updatedAt).toLocaleDateString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})})]})},p.id)})})}),e[15]=s,e[16]=u,e[17]=k,e[18]=r,e[19]=w):w=e[19];let N;return e[20]!==w||e[21]!==y||e[22]!==x?(N=l.jsxs(l.Fragment,{children:[y,x,w]}),e[20]=w,e[21]=y,e[22]=x,e[23]=N):N=e[23],N}function ee(n){const e=j.c(9),{open:t,onOpenChange:s,threads:a,activeThreadId:o,onThreadSelect:c}=n;let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=l.jsx(F,{className:"h-12 px-4 flex flex-row items-center justify-between border-b shrink-0",children:l.jsx(J,{className:"text-sm font-medium",children:"Chat History"})}),e[0]=h):h=e[0];let d;e[1]!==o||e[2]!==c||e[3]!==a?(d=l.jsxs(q,{side:"right",className:"w-[320px] sm:w-[380px] p-0 flex flex-col",children:[h,l.jsx(B,{threads:a,activeThreadId:o,onThreadSelect:c,showHeader:!1})]}),e[1]=o,e[2]=c,e[3]=a,e[4]=d):d=e[4];let i;return e[5]!==s||e[6]!==t||e[7]!==d?(i=l.jsx(O,{open:t,onOpenChange:s,children:d}),e[5]=s,e[6]=t,e[7]=d,e[8]=i):i=e[8],i}function te(n){const e=j.c(5),{threads:t,activeThreadId:s,onThreadSelect:a,onClose:o}=n;let c;return e[0]!==s||e[1]!==o||e[2]!==a||e[3]!==t?(c=l.jsx("div",{className:"flex flex-col h-full w-full bg-background",children:l.jsx(B,{threads:t,activeThreadId:s,onThreadSelect:a,onClose:o,showBackButton:!0})}),e[0]=s,e[1]=o,e[2]=a,e[3]=t,e[4]=c):c=e[4],c}function se(n){const e=j.c(22),{text:t,className:s,speed:a}=n,o=s===void 0?"":s,c=a===void 0?30:a,[h,d]=T.useState(!1),i=t.length/c*1e3,r=t.length,v=`${t.length}ch`;let m;e[0]!==i?(m=()=>{d(!1);const p=setTimeout(()=>{d(!0)},i);return()=>clearTimeout(p)},e[0]=i,e[1]=m):m=e[1];let u;e[2]!==i||e[3]!==t?(u=[t,i],e[2]=i,e[3]=t,e[4]=u):u=e[4],T.useEffect(m,u);let f;e[5]!==o?(f=b(o,"block overflow-hidden inline-flex"),e[5]=o,e[6]=f):f=e[6];const k=`${i}ms`;let y;e[7]!==v||e[8]!==r||e[9]!==k?(y={"--typewriter-duration":k,"--typewriter-steps":r,"--typewriter-max-width":v},e[7]=v,e[8]=r,e[9]=k,e[10]=y):y=e[10];const C=y,S=h&&"truncate";let g;e[11]!==S?(g=b("typewriter-text",S),e[11]=S,e[12]=g):g=e[12];let x;e[13]!==g||e[14]!==t?(x=l.jsx("span",{className:g,children:t}),e[13]=g,e[14]=t,e[15]=x):x=e[15];let w;e[16]===Symbol.for("react.memo_cache_sentinel")?(w=l.jsx("style",{children:`
|
|
2
|
+
.typewriter-text {
|
|
3
|
+
display: inline-block;
|
|
4
|
+
width: 0;
|
|
5
|
+
max-width: 100%;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
white-space: nowrap;
|
|
8
|
+
animation: typewriter var(--typewriter-duration) steps(var(--typewriter-steps)) forwards;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@keyframes typewriter {
|
|
12
|
+
to {
|
|
13
|
+
width: min(var(--typewriter-max-width), 100%);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
`}),e[16]=w):w=e[16];let N;return e[17]!==x||e[18]!==f||e[19]!==C||e[20]!==t?(N=l.jsxs("span",{className:f,style:C,children:[x,w]},t),e[17]=x,e[18]=f,e[19]=C,e[20]=t,e[21]=N):N=e[21],N}export{O as S,se as T,ee as a,te as b,F as c,J as d,Y as e,q as f,A as i,_ as t};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import{a as v}from"./binder-Cyeq_Zec.js";import{ba as T,a0 as O,o as t,s as e,aq as p,n as l,bb as c,bc as R,bd as U,be as i,_ as x,as as u,ap as g,bf as n,ar as b,bg as L,bh as B,bi as C}from"./index-Dho9MRVw.js";const W=O.extend({avatar:e().describe("URL or data URI to the assistant's avatar image"),system_prompt:e().describe("System prompt that defines the assistant's behavior"),virtual_mcp_id:e().describe("Virtual MCP ID to use for this assistant"),model:t({id:e().describe("Model ID"),connectionId:e().describe("Connection ID that provides the model")}).describe("Selected model reference for this assistant")}),F=T("assistant",W),G=[...F],w=L(()=>u([B(),e(),i(),g(),p(e(),w),l(w)])),f=p(e(),p(e(),w)).optional().describe("Additional provider-specific options. Outer record keyed by provider name, inner by option key"),E=t({type:n("text"),text:e().describe("The text content"),providerOptions:f}),q=t({type:n("text"),text:e().describe("The text content"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),j=e().describe("File data as URL string"),k=t({type:n("file"),filename:e().optional().describe("Optional filename of the file"),data:j,mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),providerOptions:f}),$=t({type:n("file"),mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),data:e().describe("Generated file data as base64 encoded string")}),J=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerOptions:f}),K=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),V=t({type:n("tool-call"),toolCallId:e().describe("ID of the tool call, used to match with tool result"),toolName:e().describe("Name of the tool being called"),input:e().describe("Arguments of the tool call (JSON-serializable object matching tool input schema)"),providerExecuted:g().optional().describe("Whether the tool call will be executed by the provider"),providerOptions:f}),z=t({type:n("tool-call"),toolCallId:e().describe("ID of the tool call"),toolName:e().describe("Name of the tool being called"),input:e().describe("Stringified JSON object with the tool call arguments"),providerExecuted:g().optional().describe("Whether the tool call will be executed by the provider"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),H=u([t({type:n("text"),value:e()}),t({type:n("json"),value:w}),t({type:n("error-text"),value:e()}),t({type:n("error-json"),value:w}),t({type:n("content"),value:l(u([t({type:n("text"),text:e().describe("Text content")}),t({type:n("media"),data:e().describe("Base-64 encoded media data"),mediaType:e().describe("IANA media type")})]))})]),A=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),output:H.describe("Result of the tool call"),result:b().describe("Unknown result of the tool call"),providerOptions:f}),X=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),result:c().describe("Result of the tool call (JSON-serializable)"),isError:g().optional().describe("Whether the result is an error or error message"),providerExecuted:g().optional().describe("Whether the tool result was generated by the provider"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),Y=u([t({type:n("source"),sourceType:n("url"),id:e().describe("The ID of the source"),url:e().describe("The URL of the source"),title:e().optional().describe("The title of the source"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),t({type:n("source"),sourceType:n("document"),id:e().describe("The ID of the source"),mediaType:e().describe("IANA media type of the document (e.g., application/pdf)"),title:e().describe("The title of the document"),filename:e().optional().describe("Optional filename of the document"),providerMetadata:c().optional().describe("Additional provider-specific metadata")})]),Z=t({role:n("system"),content:e().describe("System message content"),providerOptions:f}),Q=t({role:n("user"),content:l(u([E,k])).describe("User message content parts (text or file)"),providerOptions:f}),ee=t({role:n("assistant"),content:l(u([E,k,J,V,A])).describe("Assistant message content parts (text, file, reasoning, tool-call, or tool-result)"),providerOptions:f}),te=t({role:n("tool"),content:l(A).describe("Tool message content (tool results)"),providerOptions:f}),oe=u([Z,Q,ee,te]),ae=l(oe).describe("A list of messages forming the prompt"),ie=t({prompt:ae.describe("A language model prompt is a standardized prompt type (array of messages with roles: system, user, assistant, tool)"),maxOutputTokens:i().optional().describe("Maximum number of tokens to generate"),temperature:i().optional().describe("Temperature setting. The range depends on the provider and model"),topP:i().optional().describe("Nucleus sampling parameter"),topK:i().optional().describe("Only sample from the top K options for each subsequent token. Used to remove long tail low probability responses"),presencePenalty:i().optional().describe("Presence penalty setting. It affects the likelihood of the model to repeat information that is already in the prompt"),frequencyPenalty:i().optional().describe("Frequency penalty setting. It affects the likelihood of the model to repeatedly use the same words or phrases"),seed:i().optional().describe("The seed (integer) to use for random sampling. If set and supported by the model, calls will generate deterministic results"),stopSequences:l(e()).optional().describe("Stop sequences. If set, the model will stop generating text when one of the stop sequences is generated"),responseFormat:u([t({type:n("text")}),t({type:n("json"),schema:c().optional().describe("JSON schema that the generated output should conform to"),name:e().optional().describe("Name of output that should be generated"),description:e().optional().describe("Description of the output that should be generated")})]).optional().describe("Response format. The output can either be text or JSON. Default is text"),tools:l(c()).optional().describe("The tools that are available for the model"),toolChoice:c().optional().describe("Specifies how the tool should be selected. Defaults to 'auto'"),includeRawChunks:g().optional().describe("Include raw chunks in the stream. Only applicable for streaming calls"),abortSignal:c().optional().describe("Abort signal for cancelling the operation"),providerOptions:c().optional().describe("Additional provider-specific options")}),ne=t({content:l(u([q,$,K,z,X,Y])).describe("Ordered content that the model has generated (text, tool-calls, reasoning, files, sources)"),finishReason:x(["stop","length","content-filter","tool-calls","error","other","unknown"]).describe("Reason why generation stopped"),usage:U({inputTokens:i().optional(),outputTokens:i().optional(),totalTokens:i().optional(),reasoningTokens:i().optional()}).describe("Usage information for the language model call"),providerMetadata:c().optional().describe("Additional provider-specific metadata"),request:t({body:c().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({id:e().optional().describe("ID for the generated response"),timestamp:R().optional().describe("Timestamp for the start of the generated response"),modelId:e().optional().describe("The ID of the response model that was used"),headers:p(e(),e()).optional().describe("Response headers"),body:c().optional().describe("Response HTTP body")}).optional().describe("Optional response information for telemetry and debugging"),warnings:l(c()).describe("Warnings for the call, e.g. unsupported settings")});t({stream:c().describe("ReadableStream of LanguageModelV2StreamPart"),request:t({body:c().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({headers:p(e(),e()).optional().describe("Response headers")}).optional().describe("Optional response data")});const se=t({supportedUrls:p(e(),l(e())).describe("Supported URL patterns by media type for the provider")});t({modelId:e().describe("The ID of the model"),logo:e().nullable(),description:e().nullable(),capabilities:l(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:x(["openai","anthropic","google","x-ai","deepseek","openai-compatible","openrouter"]).nullable()});const N=t({modelId:e().describe("The ID of the model"),callOptions:ie}),re=O.extend({logo:e().nullable(),description:e().nullable(),capabilities:l(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:x(["openai","anthropic","google","xai","deepseek","openai-compatible","openrouter"]).nullable()}),le=T("llm",re,{readOnly:!0}),ce=[{name:"LLM_METADATA",inputSchema:t({modelId:e().describe("The ID of the model")}),outputSchema:se},{name:"LLM_DO_STREAM",inputSchema:N,streamable:!0},{name:"LLM_DO_GENERATE",inputSchema:N,outputSchema:ne},...le],de=t({scopes:l(e()).describe("List of scopes available"),stateSchema:p(e(),b()).describe("JSON Schema (draft-07) defining the state structure")}),pe=[{name:"MCP_CONFIGURATION",inputSchema:t({}),outputSchema:de}],ue=t({toolName:e().describe("Name of the tool to invoke on that connection"),transformCode:e().optional().describe("Pure TypeScript function for data transformation of the tool call result. Must be a TypeScript file that declares the Output interface and exports a default function: `interface Output { ... } export default async function(input): Output { ... }`\n The input will match with the tool call outputSchema. If transformCode is not provided, the tool call result will be used as the step output. \n Providing an transformCode is recommended because it both allows you to transform the data and validate it against a JSON Schema - tools are ephemeral and may return unexpected data.")}),me=t({code:e().describe(`Pure TypeScript function for data transformation. Useful to merge data from multiple steps and transform it. Must be a TypeScript file that declares the Output interface and exports a default function: \`interface Output { ... } export default async function(input): Output { ... }\`
|
|
2
|
+
The input is the resolved value of the references in the input field. Example:
|
|
3
|
+
{
|
|
4
|
+
"input": {
|
|
5
|
+
"name": "@Step_1.name",
|
|
6
|
+
"age": "@Step_2.age"
|
|
7
|
+
},
|
|
8
|
+
"code": "export default function(input): Output { return { result: \`\${input.name} is \${input.age} years old.\` } }"
|
|
9
|
+
}
|
|
10
|
+
`)});t({signalName:e().describe("Signal name to wait for (e.g., 'approval'). Execution pauses until SEND_SIGNAL is called with this name.")});const he=u([ue.describe("Call an external tool via MCP connection. "),me.describe("Run pure TypeScript code for data transformation. Useful to merge data from multiple steps and transform it.")]),fe=t({maxAttempts:i().optional().describe("Max retry attempts on failure (default: 1, no retries)"),backoffMs:i().optional().describe("Initial delay between retries in ms (doubles each attempt)"),timeoutMs:i().optional().describe("Max execution time in ms before step fails (default: 30000)")}),D=L(()=>t({type:e().optional(),properties:p(e(),b()).optional(),required:l(e()).optional(),description:e().optional(),additionalProperties:g().optional(),additionalItems:g().optional(),items:D.optional()}).passthrough()),be=t({name:e().min(1).describe("Unique identifier for this step. Other steps reference its output as @name.field"),description:e().optional().describe("What this step does"),action:he,input:p(e(),b()).optional().describe("Data passed to the action. Use @ref for dynamic values: @input.field (workflow input), @stepName.field (previous step output), @item/@index (loop context). Example: { 'userId': '@input.user_id', 'data': '@fetch.result' }"),outputSchema:D.optional().describe("Optional JSON Schema describing the expected output of the step."),config:fe.optional().describe("Retry and timeout settings"),forEach:t({ref:e().describe("@ ref to the step to iterate over"),concurrency:i().optional().default(1).describe("max parallel iterations. default is 1 (sequential)")}).optional()}),ge=x(["enqueued","running","success","error","failed","cancelled"]).default("enqueued"),M=O.extend({virtual_mcp_id:e().describe("ID of the virtual MCP (agent) that will be used to execute the workflow"),status:ge.describe("Current status of the workflow execution"),input:p(e(),b()).optional().describe("Input data for the workflow execution"),output:b().optional().describe("Output data for the workflow execution"),completed_at_epoch_ms:i().nullish().describe("Timestamp of when the workflow execution completed"),start_at_epoch_ms:i().nullish().describe("Timestamp of when the workflow execution started or will start"),timeout_ms:i().nullish().describe("Timeout in milliseconds for the workflow execution"),deadline_at_epoch_ms:i().nullish().describe("Deadline for the workflow execution - when the workflow execution will be cancelled if it is not completed. This is read-only and is set by the workflow engine when an execution is created."),error:b().nullish().describe("Error that occurred during the workflow execution"),completed_steps:t({success:l(t({name:e(),completed_at_epoch_ms:i()})).describe("Names of the steps that were completed successfully"),error:l(e()).describe("Names of the steps that errored")}).optional().describe("Names of the steps that were completed and their status"),running_steps:l(e()).optional().describe("Names of the steps that are currently running")}),Se=x(["signal","timer","message","output","step_started","step_completed","workflow_started","workflow_completed"]);O.extend({execution_id:e(),type:Se,name:e().nullish(),payload:b().optional(),visible_at:i().nullish(),consumed_at:i().nullish(),source_execution_id:e().nullish()});const ye=O.extend({description:e().optional().describe("Human-readable summary of what this workflow does"),steps:l(be).describe("Ordered list of steps. Execution order is auto-determined by @ref dependencies: steps with no @ref dependencies run in parallel; steps referencing @stepName wait for that step to complete.")}),Te=T("workflow",ye),Oe={maxAttempts:1,timeoutMs:3e4},Me={name:"Initial Step",action:{code:`
|
|
11
|
+
interface Input {
|
|
12
|
+
example: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface Output {
|
|
16
|
+
result: unknown;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default async function(input: Input): Promise<Output> {
|
|
20
|
+
return {
|
|
21
|
+
result: input.example
|
|
22
|
+
}
|
|
23
|
+
}`},config:Oe,outputSchema:{type:"object",properties:{result:{type:"string",description:"The result of the step"}},required:["result"],description:"The output of the step. This is a JSON Schema describing the expected output of the step."}},Ie=T("workflow_execution",M),we=[...Te,...Ie],xe=[...we],Ce=T("workflow_execution",M),_={LLMS:ce,WORKFLOW:xe,WORKFLOW_EXECUTION:Ce,ASSISTANTS:G,MCP:pe};function Ne(o){return o.map(a=>({name:a.name,inputSchema:a.inputSchema?(()=>{try{return C(a.inputSchema)}catch(r){return console.error(`Failed to convert input schema for ${a.name}:`,r),t({})}})():t({}),outputSchema:a.outputSchema?(()=>{try{return C(a.outputSchema)}catch(r){return console.error(`Failed to convert output schema for ${a.name}:`,r),t({})}})():t({})}))}function _e(o,a){const r=o.tools;if(!r||r.length===0)return!1;const s=r.map(m=>({name:m.name,inputSchema:m.inputSchema})),d=a.map(m=>({name:m.name,inputSchema:m.inputSchema,opt:m.opt}));return v(d).isImplementedBy(s)}function Pe({connections:o,binding:a}){const r=(()=>{if(a){if(typeof a=="string"){const s=a.toUpperCase(),d=_[s];if(!d){console.warn(`[useBindingConnections] Unknown binding "${a}". Available bindings: ${Object.keys(_).join(", ")}. Returning all connections without filtering.`);return}return d}if(a.length===0){console.warn("[useBindingConnections] Empty binding array provided. Returning all connections without filtering.");return}return Ne(a)}})();return o?r?o.filter(s=>_e(s,r)):o:[]}function ve(o){return o.toLowerCase().split("_").map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}function P(o){if(!o||o.length===0)return[];const a=/^COLLECTION_(.+)_LIST$/,r=[];for(const s of o){const d=s.name.match(a);d?.[1]&&r.push(d[1])}return r}function Le(o,a){const s=o.find(h=>h.name===`COLLECTION_${a}_CREATE`)?.inputSchema?.properties;if(s&&typeof s=="object"&&"data"in s)return s.data;const S=o.find(h=>h.name===`COLLECTION_${a}_UPDATE`)?.inputSchema?.properties;if(S&&typeof S=="object"&&"data"in S)return S.data;const I=o.find(h=>h.name===`COLLECTION_${a}_LIST`)?.outputSchema?.properties;if(I&&typeof I=="object"&&"items"in I){const h=I.items;if(h.items)return h.items}}function Ee(o,a){const r=a.toUpperCase();return{hasCreateTool:o.some(s=>s.name===`COLLECTION_${r}_CREATE`),hasUpdateTool:o.some(s=>s.name===`COLLECTION_${r}_UPDATE`),hasDeleteTool:o.some(s=>s.name===`COLLECTION_${r}_DELETE`)}}function ke(o){if(!o||o.length===0)return[];const a=P(o);if(a.length===0)return[];const r=[];for(const s of a)try{const d=T(s.toLowerCase(),O,{readOnly:!0}),S=o.map(y=>({name:y.name,inputSchema:y.inputSchema})),m=d.map(y=>({name:y.name,inputSchema:y.inputSchema}));if(v(m).isImplementedBy(S)){const y=Ee(o,s);r.push({name:s,displayName:ve(s),schema:Le(o,s),...y})}}catch{}return r}function Re(o){return ke(o?.tools??null)}function Ue(o){return o?o.filter(a=>P(a.tools).find(r=>r==="REGISTRY_APP")):[]}export{Me as D,Pe as a,Re as b,Ue as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as $,q as x,aa as b,an as K}from"./index-Dho9MRVw.js";import{u as P}from"./useMutation-Lj_Cbq0P.js";import{u as Q}from"./useQuery-C2zqJzGD.js";import{K as A}from"./constants-D8fdcBr8.js";function H(n){const e=$.c(12);let o,s;e[0]!==n?({client:o,...s}=n,e[0]=n,e[1]=o,e[2]=s):(o=e[1],s=e[2]);let t;e[3]!==o?(t=A.mcpToolsList(o),e[3]=o,e[4]=t):t=e[4];let l;e[5]!==o?(l=async()=>await o.listTools(),e[5]=o,e[6]=l):l=e[6];const a=s.staleTime??3e4;let r;return e[7]!==s||e[8]!==t||e[9]!==l||e[10]!==a?(r={...s,queryKey:t,queryFn:l,staleTime:a,retry:!1},e[7]=s,e[8]=t,e[9]=l,e[10]=a,e[11]=r):r=e[11],x(r)}function V(n){const e=$.c(12);let o,s;e[0]!==n?({client:o,...s}=n,e[0]=n,e[1]=o,e[2]=s):(o=e[1],s=e[2]);let t;e[3]!==o?(t=A.mcpToolsList(o),e[3]=o,e[4]=t):t=e[4];let l;e[5]!==o?(l=async()=>await o.listTools(),e[5]=o,e[6]=l):l=e[6];const a=s.staleTime??3e4;let r;return e[7]!==s||e[8]!==t||e[9]!==l||e[10]!==a?(r={...s,queryKey:t,queryFn:l,staleTime:a,retry:!1},e[7]=s,e[8]=t,e[9]=l,e[10]=a,e[11]=r):r=e[11],Q(r)}function U(n){const e=$.c(21);let o,s,t,l;e[0]!==n?({client:o,toolName:l,toolArguments:t,...s}=n,e[0]=n,e[1]=o,e[2]=s,e[3]=t,e[4]=l):(o=e[1],s=e[2],t=e[3],l=e[4]);let a,r,u;if(e[5]!==o||e[6]!==s||e[7]!==t||e[8]!==l){const p=JSON.stringify(t??{});u=x,a=s,r=A.mcpToolCall(o,l,p),e[5]=o,e[6]=s,e[7]=t,e[8]=l,e[9]=a,e[10]=r,e[11]=u}else a=e[9],r=e[10],u=e[11];let i;e[12]!==o||e[13]!==t||e[14]!==l?(i=async()=>await o.callTool({name:l,arguments:t}),e[12]=o,e[13]=t,e[14]=l,e[15]=i):i=e[15];const f=s.staleTime??3e4;let c;return e[16]!==a||e[17]!==r||e[18]!==i||e[19]!==f?(c={...a,queryKey:r,queryFn:i,staleTime:f,retry:!1},e[16]=a,e[17]=r,e[18]=i,e[19]=f,e[20]=c):c=e[20],u(c)}function X(n){const e=$.c(21);let o,s,t,l;e[0]!==n?({client:o,toolName:l,toolArguments:t,...s}=n,e[0]=n,e[1]=o,e[2]=s,e[3]=t,e[4]=l):(o=e[1],s=e[2],t=e[3],l=e[4]);let a,r,u;if(e[5]!==o||e[6]!==s||e[7]!==t||e[8]!==l){const p=JSON.stringify(t??{});u=Q,a=s,r=A.mcpToolCall(o,l,p),e[5]=o,e[6]=s,e[7]=t,e[8]=l,e[9]=a,e[10]=r,e[11]=u}else a=e[9],r=e[10],u=e[11];let i;e[12]!==o||e[13]!==t||e[14]!==l?(i=async()=>await o.callTool({name:l,arguments:t}),e[12]=o,e[13]=t,e[14]=l,e[15]=i):i=e[15];const f=s.staleTime??3e4;let c;return e[16]!==a||e[17]!==r||e[18]!==i||e[19]!==f?(c={...a,queryKey:r,queryFn:i,staleTime:f,retry:!1},e[16]=a,e[17]=r,e[18]=i,e[19]=f,e[20]=c):c=e[20],u(c)}function Z(n){const e=$.c(8);let o,s;e[0]!==n?({client:o,...s}=n,e[0]=n,e[1]=o,e[2]=s):(o=e[1],s=e[2]);let t;e[3]!==o?(t=async a=>await o.callTool(a),e[3]=o,e[4]=t):t=e[4];let l;return e[5]!==s||e[6]!==t?(l={...s,mutationFn:t},e[5]=s,e[6]=t,e[7]=l):l=e[7],P(l)}function D(n,e,o){const s=[];if(n?.trim()){const t=n.trim(),l=o.map(a=>({field:[String(a)],operator:"contains",value:t}));l.length===1&&l[0]?s.push(l[0]):l.length>1&&s.push({operator:"or",conditions:l})}if(e&&e.length>0)for(const t of e)s.push({field:[t.column],operator:"eq",value:t.value});if(s.length!==0)return s.length===1?s[0]:{operator:"and",conditions:s}}function k(n,e,o){const s=n??o,t=e??"asc";return[{field:[String(s)],direction:t}]}function v(n){const e=n;return e&&typeof e=="object"&&"structuredContent"in e?e.structuredContent:e}function ee(n,e,o,s){const t=$.c(13);let l;t[0]!==e?(l=e.toUpperCase(),t[0]=e,t[1]=l):l=t[1];const r=`COLLECTION_${l}_GET`;let u;t[2]!==s||t[3]!==r||t[4]!==o?(u=A.mcpToolCall(s,r,o??""),t[2]=s,t[3]=r,t[4]=o,t[5]=u):u=t[5];let i;t[6]!==s||t[7]!==r||t[8]!==o?(i=async()=>{if(!o)return{item:null};const p=await s.callTool({name:r,arguments:{id:o}});return v(p)},t[6]=s,t[7]=r,t[8]=o,t[9]=i):i=t[9];let f;t[10]!==u||t[11]!==i?(f={queryKey:u,queryFn:i,staleTime:6e4},t[10]=u,t[11]=i,t[12]=f):f=t[12];const{data:c}=x(f);return c?.item??null}function te(n,e,o,s){const t=$.c(26);let l;t[0]!==s?(l=s===void 0?{}:s,t[0]=s,t[1]=l):l=t[1];const a=l,{searchTerm:r,filters:u,sortKey:i,sortDirection:f,searchFields:c,defaultSortKey:p,pageSize:E}=a;let _;t[2]!==c?(_=c===void 0?["title","description"]:c,t[2]=c,t[3]=_):_=t[3];const h=_,T=p===void 0?"updated_at":p,C=E===void 0?100:E;let O;t[4]!==e?(O=e.toUpperCase(),t[4]=e,t[5]=O):O=t[5];const g=`COLLECTION_${O}_LIST`;let d;t[6]!==u||t[7]!==h||t[8]!==r?(d=D(r,u,h),t[6]=u,t[7]=h,t[8]=r,t[9]=d):d=t[9];const L=d;let N;t[10]!==T||t[11]!==f||t[12]!==i?(N=k(i,f,T),t[10]=T,t[11]=f,t[12]=i,t[13]=N):N=t[13];const S=N;let y;t[14]!==L?(y=L&&{where:L},t[14]=L,t[15]=y):y=t[15];let m;t[16]!==S?(m=S&&{orderBy:S},t[16]=S,t[17]=m):m=t[17];let q;t[18]!==C||t[19]!==m||t[20]!==y?(q={...y,...m,limit:C,offset:0},t[18]=C,t[19]=m,t[20]=y,t[21]=q):q=t[21];const F=q;let w;t[22]!==o||t[23]!==g||t[24]!==F?(w={client:o,toolName:g,toolArguments:F,select:z},t[22]=o,t[23]=g,t[24]=F,t[25]=w):w=t[25];const{data:I}=U(w);return I}function z(n){return v(n)?.items??[]}function se(n,e,o){const s=$.c(33),t=b();let l;s[0]!==e?(l=e.toUpperCase(),s[0]=e,s[1]=l):l=s[1];const a=l,r=`COLLECTION_${a}_CREATE`,u=`COLLECTION_${a}_UPDATE`,i=`COLLECTION_${a}_DELETE`;let f;s[2]!==t||s[3]!==a?(f=()=>{t.invalidateQueries({predicate:y=>{const m=y.queryKey;return m[0]!=="mcp"||m[1]!=="client"||m[3]!=="tool-call"?!1:m[4]?.startsWith(`COLLECTION_${a}_`)}})},s[2]=t,s[3]=a,s[4]=f):f=s[4];const c=f;let p;s[5]!==o||s[6]!==r?(p=async y=>{const m=await o.callTool({name:r,arguments:{data:y}});if(m.isError)throw new Error(Array.isArray(m.content)?m.content[0]?.text:String(m.content));return v(m).item},s[5]=o,s[6]=r,s[7]=p):p=s[7];let E;s[8]!==c?(E=()=>{c(),K.success("Item created successfully")},s[8]=c,s[9]=E):E=s[9];let _;s[10]!==p||s[11]!==E?(_={mutationFn:p,onSuccess:E,onError:R},s[10]=p,s[11]=E,s[12]=_):_=s[12];const h=P(_);let T;s[13]!==o||s[14]!==u?(T=async y=>{const{id:m,data:q}=y,F=await o.callTool({name:u,arguments:{id:m,data:q}});return v(F).item},s[13]=o,s[14]=u,s[15]=T):T=s[15];let C;s[16]!==c?(C=()=>{c(),K.success("Item updated successfully")},s[16]=c,s[17]=C):C=s[17];let O;s[18]!==T||s[19]!==C?(O={mutationFn:T,onSuccess:C,onError:J},s[18]=T,s[19]=C,s[20]=O):O=s[20];const M=P(O);let g;s[21]!==o||s[22]!==i?(g=async y=>{const m=await o.callTool({name:i,arguments:{id:y}});return v(m).item.id},s[21]=o,s[22]=i,s[23]=g):g=s[23];let d;s[24]!==c?(d=()=>{c(),K.success("Item deleted successfully")},s[24]=c,s[25]=d):d=s[25];let L;s[26]!==g||s[27]!==d?(L={mutationFn:g,onSuccess:d,onError:B},s[26]=g,s[27]=d,s[28]=L):L=s[28];const N=P(L);let S;return s[29]!==h||s[30]!==N||s[31]!==M?(S={create:h,update:M,delete:N},s[29]=h,s[30]=N,s[31]=M,s[32]=S):S=s[32],S}function B(n){const e=n instanceof Error?n.message:String(n);K.error(`Failed to delete item: ${e}`)}function J(n){const e=n instanceof Error?n.message:String(n);K.error(`Failed to update item: ${e}`)}function R(n){const e=n instanceof Error?n.message:String(n);K.error(`Failed to create item: ${e}`)}export{ee as a,te as b,U as c,Z as d,X as e,H as f,V as g,se as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,u as r}from"./index-
|
|
1
|
+
import{c,u as r}from"./index-Dho9MRVw.js";import{b as C,u as a,a as I}from"./use-collections-CVO4vm4G.js";import{a as d,u as l}from"./constants-D8fdcBr8.js";function p(t){const o=c.c(4);let n;o[0]!==t?(n=t===void 0?{}:t,o[0]=t,o[1]=n):n=o[1];const e=n,{org:i}=r();let s;o[2]!==i.id?(s={connectionId:d,orgId:i.id},o[2]=i.id,o[3]=s):s=o[3];const u=l(s);return C(i.id,"CONNECTIONS",u,e)}function g(t){const o=c.c(2),{org:n}=r();let e;o[0]!==n.id?(e={connectionId:d,orgId:n.id},o[0]=n.id,o[1]=e):e=o[1];const i=l(e);return I(n.id,"CONNECTIONS",t,i)}function O(){const t=c.c(2),{org:o}=r();let n;t[0]!==o.id?(n={connectionId:d,orgId:o.id},t[0]=o.id,t[1]=n):n=t[1];const e=l(n);return a(o.id,"CONNECTIONS",e)}export{O as a,p as b,g as u};
|
package/dist/client/assets/{use-create-virtual-mcp-Bi6QQFl1.js → use-create-virtual-mcp-Cr2fOp7g.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,u as f,l as m}from"./index-
|
|
1
|
+
import{c as p,u as f,l as m}from"./index-Dho9MRVw.js";import{a as v}from"./use-virtual-mcp-DbjvrtSR.js";function x(s){const e=p.c(10);let a;e[0]!==s?(a=s===void 0?{}:s,e[0]=s,e[1]=a):a=e[1];const d=a,{navigateOnCreate:g}=d,o=g===void 0?!1:g,{org:r}=f(),c=m(),t=v();let n;e[2]!==t.create||e[3]!==c||e[4]!==o||e[5]!==r?(n=async()=>{const l=await t.create.mutateAsync({title:"New Agent",description:"Agents let you securely expose integrated tools to the outside world.",status:"active",connections:[]});return o&&c({to:"/$org/agents/$agentId",params:{org:r.slug,agentId:l.id}}),{id:l.id,virtualMcp:l}},e[2]=t.create,e[3]=c,e[4]=o,e[5]=r,e[6]=n):n=e[6];const u=n;let i;return e[7]!==t.create.isPending||e[8]!==u?(i={createVirtualMCP:u,isCreating:t.create.isPending},e[7]=t.create.isPending,e[8]=u,e[9]=i):i=e[9],i}export{x as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as s}from"./index-Dho9MRVw.js";import{u as a,L as c}from"./localstorage-keys-B7V7cQcH.js";function i(){const e=s.c(4);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=c.decoChatOpen(),e[0]=t):t=e[0];const[n,r]=a(t,l);let o;return e[1]!==n||e[2]!==r?(o=[n,r],e[1]=n,e[2]=r,e[3]=o):o=e[3],o}function l(e){return!!(e??!1)}export{i as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,c as T}from"./index-
|
|
1
|
+
import{r as a,c as T}from"./index-Dho9MRVw.js";import{u as D}from"./use-mobile-VoJXvE1W.js";const W=({size:l=24,color:e="currentColor",...t})=>a.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},a.createElement("path",{d:"M2.42 12.713c-.136-.215-.204-.323-.242-.49a1.173 1.173 0 0 1 0-.446c.038-.167.106-.274.242-.49C3.546 9.505 6.895 5 12 5s8.455 4.505 9.58 6.287c.137.215.205.323.243.49.029.125.029.322 0 .446-.038.167-.106.274-.242.49C20.455 14.495 17.105 19 12 19c-5.106 0-8.455-4.505-9.58-6.287Z"}),a.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}));W.displayName="Eye";function k(l){const e=`deco-filters-${l}`,[t,c]=a.useState(()=>{try{const o=globalThis.localStorage?.getItem(e);if(o)return JSON.parse(o)}catch(o){console.error("Failed to parse stored filters:",o)}return[]});return[t,o=>{c(o);try{globalThis.localStorage?.setItem(e,JSON.stringify(o))}catch(i){console.error("Failed to save filters:",i)}}]}function C(l){const e=T.c(7),[t,c]=a.useState(l),[s,o]=a.useState(l?"desc":null);let i;e[0]!==s||e[1]!==t?(i=h=>{t!==h?(c(h),o("asc")):s==="asc"?o("desc"):s==="desc"&&(c(void 0),o(null))},e[0]=s,e[1]=t,e[2]=i):i=e[2];const u=i;let r;return e[3]!==u||e[4]!==s||e[5]!==t?(r={sortKey:t,sortDirection:s,handleSort:u},e[3]=u,e[4]=s,e[5]=t,e[6]=r):r=e[6],r}function L(l,e){const t=T.c(12),c=e===void 0?"cards":e,s=D(),o=a.useRef(s),i=l?`deco-view-mode-${l}`:"deco-view-mode";let u;t[0]!==c||t[1]!==i?(u=()=>{const d=globalThis.localStorage?.getItem(i);return d==="cards"||d==="table"?d:c},t[0]=c,t[1]=i,t[2]=u):u=t[2];const[r,h]=a.useState(u);let f;t[3]!==i?(f=d=>{h(d),globalThis.localStorage?.setItem(i,d)},t[3]=i,t[4]=f):f=t[4];const p=f;let S,g;t[5]!==s||t[6]!==r?(S=()=>{!o.current&&s&&r==="table"&&h("cards"),o.current=s},g=[s,r],t[5]=s,t[6]=r,t[7]=S,t[8]=g):(S=t[7],g=t[8]),a.useEffect(S,g);let n;return t[9]!==p||t[10]!==r?(n=[r,p],t[9]=p,t[10]=r,t[11]=n):n=t[11],n}function O(l){const e=T.c(20),{namespace:t,resource:c,defaultSortKey:s,defaultViewMode:o}=l,i=s===void 0?"title":s,u=o===void 0?"table":o,[r,h]=a.useState(""),f=a.useDeferredValue(r),p=`${t}-${c}`,[S,g]=k(p),n=`mesh-${c}-filter-visible-${t}`;let d;e[0]!==n?(d=()=>globalThis.localStorage?.getItem(n)==="true",e[0]=n,e[1]=d):d=e[1];const[m,B]=a.useState(d);let y;e[2]!==n?(y=I=>{B(I),globalThis.localStorage?.setItem(n,String(I))},e[2]=n,e[3]=y):y=e[3];const b=y;let M;e[4]!==m||e[5]!==b?(M=()=>{b(!m)},e[4]=m,e[5]=b,e[6]=M):M=e[6];const w=M,[V,$]=L(`mesh-${c}-${t}`,u),{sortKey:x,sortDirection:F,handleSort:K}=C(i),E=x;let v;return e[7]!==m||e[8]!==S||e[9]!==K||e[10]!==r||e[11]!==f||e[12]!==b||e[13]!==g||e[14]!==$||e[15]!==F||e[16]!==E||e[17]!==w||e[18]!==V?(v={search:r,searchTerm:f,setSearch:h,filters:S,setFilters:g,filterBarVisible:m,setFilterBarVisible:b,toggleFilterBar:w,viewMode:V,setViewMode:$,sortKey:E,sortDirection:F,handleSort:K},e[7]=m,e[8]=S,e[9]=K,e[10]=r,e[11]=f,e[12]=b,e[13]=g,e[14]=$,e[15]=F,e[16]=E,e[17]=w,e[18]=V,e[19]=v):v=e[19],v}export{W as s,O as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as u,q as c}from"./index-Dho9MRVw.js";import{u as p}from"./useQuery-C2zqJzGD.js";import{K as n}from"./constants-D8fdcBr8.js";async function f(l){return l.getServerCapabilities()?.resources?await l.listResources():{resources:[]}}async function b(l,e){return await l.readResource({uri:e})}function R(l){const e=u.c(12);let t,s;e[0]!==l?({client:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=n.mcpResourcesList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>f(t),e[5]=t,e[6]=i):i=e[6];const o=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==o?(a={...s,queryKey:r,queryFn:i,staleTime:o,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=o,e[11]=a):a=e[11],c(a)}function L(l){const e=u.c(12);let t,s;e[0]!==l?({client:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=n.mcpResourcesList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>f(t),e[5]=t,e[6]=i):i=e[6];const o=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==o?(a={...s,queryKey:r,queryFn:i,staleTime:o,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=o,e[11]=a):a=e[11],p(a)}async function m(l){return l.getServerCapabilities()?.prompts?await l.listPrompts():{prompts:[]}}async function T(l,e,t){if(!l.getServerCapabilities()?.prompts)throw new Error("Prompts capability not supported");return await l.getPrompt({name:e,arguments:t??{}})}function g(l){const e=u.c(12);let t,s;e[0]!==l?({client:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=n.mcpPromptsList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>m(t),e[5]=t,e[6]=i):i=e[6];const o=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==o?(a={...s,queryKey:r,queryFn:i,staleTime:o,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=o,e[11]=a):a=e[11],c(a)}function C(l){const e=u.c(12);let t,s;e[0]!==l?({client:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=n.mcpPromptsList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>m(t),e[5]=t,e[6]=i):i=e[6];const o=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==o?(a={...s,queryKey:r,queryFn:i,staleTime:o,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=o,e[11]=a):a=e[11],p(a)}export{f as a,C as b,R as c,L as d,T as g,m as l,b as r,g as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,u as o,q as u,K as i,g as a}from"./index-
|
|
1
|
+
import{c as n,u as o,q as u,K as i,g as a}from"./index-Dho9MRVw.js";function l(){const e=n.c(4),{locator:r}=o();let t;e[0]!==r?(t=i.members(r),e[0]=r,e[1]=t):t=e[1];let s;return e[2]!==t?(s={queryKey:t,queryFn:c},e[2]=t,e[3]=s):s=e[3],u(s)}function c(){return a.organization.listMembers()}export{l as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as m,r}from"./index-
|
|
1
|
+
import{c as m,r}from"./index-Dho9MRVw.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as m,u as T,q as d,aa as y,K as g}from"./index-Dho9MRVw.js";import{u as _}from"./useMutation-Lj_Cbq0P.js";import{a as p,u as A}from"./constants-D8fdcBr8.js";function D(e){const t=m.c(10),{org:i}=T();let l;t[0]!==i.id?(l={connectionId:p,orgId:i.id},t[0]=i.id,t[1]=l):l=t[1];const c=A(l);let u;t[2]!==e?(u=g.organizationSettings(e),t[2]=e,t[3]=u):u=t[3];let s;t[4]!==c||t[5]!==e?(s=async()=>{const a=await c.callTool({name:"ORGANIZATION_SETTINGS_GET",arguments:{}}),r=a.structuredContent??a;return r||{organizationId:e,sidebar_items:null,enabled_plugins:null,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}},t[4]=c,t[5]=e,t[6]=s):s=t[6];let n;t[7]!==u||t[8]!==s?(n={queryKey:u,queryFn:s,staleTime:6e4},t[7]=u,t[8]=s,t[9]=n):n=t[9];const{data:o}=d(n);return o}function G(e){const t=m.c(13),i=y(),{org:l}=T();let c;t[0]!==l.id?(c={connectionId:p,orgId:l.id},t[0]=l.id,t[1]=c):c=t[1];const u=A(c);let s;t[2]!==u||t[3]!==e?(s=async S=>{const f=await u.callTool({name:"ORGANIZATION_SETTINGS_UPDATE",arguments:{organizationId:e,...S}});return f.structuredContent??f},t[2]=u,t[3]=e,t[4]=s):s=t[4];let n;t[5]!==e||t[6]!==i?(n=S=>{i.setQueryData(g.organizationSettings(e),S)},t[5]=e,t[6]=i,t[7]=n):n=t[7];let o;t[8]!==s||t[9]!==n?(o={mutationFn:s,onSuccess:n},t[8]=s,t[9]=n,t[10]=o):o=t[10];const a=_(o);let r;return t[11]!==a?(r={update:a},t[11]=a,t[12]=r):r=t[12],r}export{G as a,D as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,u as r}from"./index-
|
|
1
|
+
import{c,u as r}from"./index-Dho9MRVw.js";import{b as a,u as C,a as I}from"./use-collections-CVO4vm4G.js";import{a as l,u}from"./constants-D8fdcBr8.js";function m(i){const t=c.c(4);let o;t[0]!==i?(o=i===void 0?{}:i,t[0]=i,t[1]=o):o=t[1];const n=o,{org:e}=r();let s;t[2]!==e.id?(s={connectionId:l,orgId:e.id},t[2]=e.id,t[3]=s):s=t[3];const d=u(s);return a(e.id,"VIRTUAL_MCP",d,n)}function V(i){const t=c.c(2),{org:o}=r();let n;t[0]!==o.id?(n={connectionId:l,orgId:o.id},t[0]=o.id,t[1]=n):n=t[1];const e=u(n);return I(o.id,"VIRTUAL_MCP",i??void 0,e)}function p(){const i=c.c(2),{org:t}=r();let o;i[0]!==t.id?(o={connectionId:l,orgId:t.id},i[0]=t.id,i[1]=o):o=i[1];const n=u(o);return C(t.id,"VIRTUAL_MCP",n)}export{p as a,m as b,V as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u}from"./infiniteQueryObserver-DDmbfPGP.js";import{X as i}from"./index-Dho9MRVw.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aW as l,aX as p,aY as n,aZ as b,a_ as h,aa as d,r as o,a$ as m,b0 as f}from"./index-Dho9MRVw.js";var v=class extends l{#s;#i=void 0;#t;#e;constructor(t,s){super(),this.#s=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#s.defaultMutationOptions(t),p(this.options,s)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),s?.mutationKey&&this.options.mutationKey&&n(s.mutationKey)!==n(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(t,s){return this.#e=s,this.#t?.removeObserver(this),this.#t=this.#s.getMutationCache().build(this.#s,this.options),this.#t.addObserver(this),this.#t.execute(t)}#r(){const t=this.#t?.state??b();this.#i={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){h.batch(()=>{if(this.#e&&this.hasListeners()){const s=this.#i.variables,i=this.#i.context,e={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#e.onSuccess?.(t.data,s,i,e),this.#e.onSettled?.(t.data,null,s,i,e)):t?.type==="error"&&(this.#e.onError?.(t.error,s,i,e),this.#e.onSettled?.(void 0,t.error,s,i,e))}this.listeners.forEach(s=>{s(this.#i)})})}};function O(t,s){const i=d(s),[e]=o.useState(()=>new v(i,t));o.useEffect(()=>{e.setOptions(t)},[e,t]);const r=o.useSyncExternalStore(o.useCallback(a=>e.subscribe(h.batchCalls(a)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),u=o.useCallback((a,c)=>{e.mutate(a,c).catch(m)},[e]);if(r.error&&f(e.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:u,mutateAsync:r.mutate}}export{O as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{X as u,af as s}from"./index-Dho9MRVw.js";function o(e,r){return u(e,s,r)}export{o as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as s}from"./infiniteQueryObserver-DDmbfPGP.js";import{X as u,Y as n}from"./index-Dho9MRVw.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Y,r as V,j as i}from"./index-
|
|
1
|
+
import{c as Y,r as V,j as i}from"./index-Dho9MRVw.js";import{c as n}from"./button-D_0RTXDt.js";const Z={sm:{button:"size-7",icon:"size-4"},md:{button:"size-9",icon:"size-5"},lg:{button:"size-12",icon:"size-6"}};function oe(J){const e=Y.c(66),{value:o,onValueChange:l,options:t,size:D,fullWidth:F,className:W}=J,K=D===void 0?"sm":D,w=F===void 0?!1:F,G=V.useRef(null),H=V.useRef(null);let R;e[0]===Symbol.for("react.memo_cache_sentinel")?(R={left:0,width:0,opacity:0},e[0]=R):R=e[0];const[N,O]=V.useState(R);let _;e[1]===Symbol.for("react.memo_cache_sentinel")?(_=S=>{if(!S.current)return;const{offsetLeft:U,offsetWidth:X}=S.current;O({left:U,width:X,opacity:1})},e[1]=_):_=e[1];const Q=_;let C;e[2]!==t[0].value||e[3]!==o?(C=()=>{const S=o===t[0].value?G:H;Q(S)},e[2]=t[0].value,e[3]=o,e[4]=C):C=e[4];let E;e[5]!==t||e[6]!==o?(E=[o,t],e[5]=t,e[6]=o,e[7]=E):E=e[7],V.useEffect(C,E);const s=Z[K];let a;e[8]!==W?(a=n("relative flex gap-0 bg-muted rounded-lg",W),e[8]=W,e[9]=a):a=e[9];let c;e[10]!==l||e[11]!==t[0].value?(c=()=>l(t[0].value),e[10]=l,e[11]=t[0].value,e[12]=c):c=e[12];const $=w?"flex-1 h-12 px-4":s.button,I=!w&&t[0].label?"px-3":"";let r;e[13]!==I||e[14]!==$?(r=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",$,I),e[13]=I,e[14]=$,e[15]=r):r=e[15];const P=o===t[0].value?"text-foreground":"text-muted-foreground";let u;e[16]!==s.icon||e[17]!==P?(u=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,P),e[16]=s.icon,e[17]=P,e[18]=u):u=e[18];let f;e[19]!==t[0].icon||e[20]!==u?(f=i.jsx("span",{className:u,children:t[0].icon}),e[19]=t[0].icon,e[20]=u,e[21]=f):f=e[21];let d;e[22]!==t[0].label||e[23]!==t[0].value||e[24]!==o?(d=t[0].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[0].value?"text-foreground":"text-muted-foreground"),children:t[0].label}),e[22]=t[0].label,e[23]=t[0].value,e[24]=o,e[25]=d):d=e[25];let m;e[26]!==r||e[27]!==f||e[28]!==d||e[29]!==c?(m=i.jsxs("button",{ref:G,type:"button",onClick:c,className:r,children:[f,d]}),e[26]=r,e[27]=f,e[28]=d,e[29]=c,e[30]=m):m=e[30];let x;e[31]!==l||e[32]!==t[1].value?(x=()=>l(t[1].value),e[31]=l,e[32]=t[1].value,e[33]=x):x=e[33];const L=w?"flex-1 h-12 px-4":s.button,M=!w&&t[1].label?"px-3":"";let p;e[34]!==L||e[35]!==M?(p=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",L,M),e[34]=L,e[35]=M,e[36]=p):p=e[36];const T=o===t[1].value?"text-foreground":"text-muted-foreground";let b;e[37]!==s.icon||e[38]!==T?(b=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,T),e[37]=s.icon,e[38]=T,e[39]=b):b=e[39];let v;e[40]!==t[1].icon||e[41]!==b?(v=i.jsx("span",{className:b,children:t[1].icon}),e[40]=t[1].icon,e[41]=b,e[42]=v):v=e[42];let g;e[43]!==t[1].label||e[44]!==t[1].value||e[45]!==o?(g=t[1].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[1].value?"text-foreground":"text-muted-foreground"),children:t[1].label}),e[43]=t[1].label,e[44]=t[1].value,e[45]=o,e[46]=g):g=e[46];let h;e[47]!==x||e[48]!==p||e[49]!==v||e[50]!==g?(h=i.jsxs("button",{ref:H,type:"button",onClick:x,className:p,children:[v,g]}),e[47]=x,e[48]=p,e[49]=v,e[50]=g,e[51]=h):h=e[51];const q=w?"h-12":s.button;let y;e[52]!==q?(y=n("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",q),e[52]=q,e[53]=y):y=e[53];const A=`${N.left}px`,B=`${N.width}px`;let j;e[54]!==N.opacity||e[55]!==A||e[56]!==B?(j={left:A,width:B,opacity:N.opacity},e[54]=N.opacity,e[55]=A,e[56]=B,e[57]=j):j=e[57];let z;e[58]!==y||e[59]!==j?(z=i.jsx("div",{className:y,style:j}),e[58]=y,e[59]=j,e[60]=z):z=e[60];let k;return e[61]!==m||e[62]!==h||e[63]!==z||e[64]!==a?(k=i.jsxs("div",{className:a,children:[m,h,z]}),e[61]=m,e[62]=h,e[63]=z,e[64]=a,e[65]=k):k=e[65],k}export{oe as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as k,g as L,l as P,r as v,j as e,c as B}from"./index-
|
|
1
|
+
import{u as k,g as L,l as P,r as v,j as e,c as B}from"./index-Dho9MRVw.js";import{e as _}from"./constants-D8fdcBr8.js";import{C as R}from"./collection-tab-CyuO9CaU.js";import{a as z,b as A}from"./use-connection-BU-nKbTz.js";import{B as y}from"./button-D_0RTXDt.js";import{E as F}from"./empty-state-DKQ_J1zp.js";import{C as M}from"./collection-header-CbT_At3k.js";import{a as O,b as H}from"./use-binding-BVBmgj67.js";import{i as T}from"./Loading01-Bo9vDQAp.js";import"./generate-id-Dyweu44Y.js";import"./collection-display-button-Cm0zQnM_.js";import"./dropdown-menu-CMmh8IDN.js";import"./Grid01-DmaR0g3f.js";import"./ArrowUp-CC-2uYGu.js";import"./Check-BzMGOxMB.js";import"./List-DZ53jWcW.js";import"./tooltip-Cw2xVvTD.js";import"./view-mode-toggle-BagEO4CJ.js";import"./collection-search-DRZ8ScZP.js";import"./SearchMd-D9E7kgub.js";import"./input-trZWilTG.js";import"./card-BmOa96dk.js";import"./Copy01-DH_iV9-n.js";import"./DotsVertical-DOgWrY6o.js";import"./Edit01-CH6U7DHj.js";import"./use-list-state-ClsnlmlI.js";import"./use-mobile-VoJXvE1W.js";import"./Trash01-BUkAP1vf.js";import"./collection-table-wrapper-CspbeKNx.js";import"./empty-state-BS0aVQHO.js";import"./Inbox01-DoVQ3gCk.js";import"./avatar-KkS1NpLz.js";import"./useQuery-C2zqJzGD.js";import"./pin-to-sidebar-button-Cdnz6iok.js";import"./Pin01-NWg5BL2M.js";import"./use-organization-settings-CeE0FyqT.js";import"./useMutation-Lj_Cbq0P.js";import"./use-collections-CVO4vm4G.js";import"./constants-rfrR0uMr.js";import"./alert-dialog-QzYPe_ae.js";import"./Plus-DAW17Fqf.js";import"./layout-BZ8_9wgI.js";import"./ArrowLeft-Dlm4CF9d.js";import"./binder-Cyeq_Zec.js";function V({title:i,description:t,wellKnownMcp:o,imageSrc:n,onConnected:s}){const r=z(),{org:{slug:m}}=k(),{data:h}=L.useSession(),p=P(),[a,w]=v.useState(!1),l=async()=>{if(!(!o||!h?.user?.id)){w(!0);try{const c=await r.create.mutateAsync(o);s?.(c.id),p({to:"/$org/mcps/$connectionId",params:{org:m,connectionId:c.id}})}finally{w(!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=B.c(28),{bindingName:o,collectionName:n,title:s,emptyState:r,wellKnownMcp:m}=i,{org:h}=k(),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),N=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]!==N||t[20]!==m?(g=N?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]=N,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 b;return t[25]!==d||t[26]!==x?(b=e.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[d,x]}),t[25]=d,t[26]=x,t[27]=b):b=t[27],b}function Rt(){const i=B.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};
|
package/dist/client/index.html
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<title>MCP Mesh</title>
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
6
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
6
|
+
<script type="module" crossorigin src="/assets/index-Dho9MRVw.js"></script>
|
|
7
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CqeIU8-o.css">
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
<div id="root"></div>
|