decocms 2.306.0 → 2.306.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-ri2xuBKe.js → AlertCircle--wiBhyBy.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-yxFeL5-Q.js → ArrowNarrowLeft-DUEFTkCU.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Bxgj2IVp.js → ArrowUpRight-ByDFdIYO.js} +1 -1
- package/dist/client/assets/{Check-C6Fa8-x7.js → Check-C936sYYN.js} +1 -1
- package/dist/client/assets/{CheckCircle-D7N7MOmw.js → CheckCircle-CIhRIzNe.js} +1 -1
- package/dist/client/assets/{ChevronDown-DmrzaACF.js → ChevronDown-D9-4IfgQ.js} +1 -1
- package/dist/client/assets/{ChevronRight-CZ_XAq5W.js → ChevronRight-DYzYB9o2.js} +1 -1
- package/dist/client/assets/{ChevronUp-Ds9ufeJd.js → ChevronUp-DjhQ54oJ.js} +1 -1
- package/dist/client/assets/{Container-BXYDPrF5.js → Container-W30Qs4TE.js} +1 -1
- package/dist/client/assets/{DotsVertical-CYFsY1AY.js → DotsVertical-BTQcMhn-.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Dvpxn-Ig.js → LinkExternal01-BWQuO7gD.js} +1 -1
- package/dist/client/assets/{Lock01-63SpB195.js → Lock01-CzswZlFM.js} +1 -1
- package/dist/client/assets/{Palette-D0iAFXNq.js → Palette-BkIcRAuI.js} +1 -1
- package/dist/client/assets/{Play-D4xI5B_i.js → Play-CX-s0F5M.js} +1 -1
- package/dist/client/assets/{Plus-CDEOyPu8.js → Plus-CxH8Dky0.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-B2ZHRQzo.js → RefreshCcw01-DUZtukjI.js} +1 -1
- package/dist/client/assets/{SearchMd-6IRfjRcX.js → SearchMd-DJcqe9YA.js} +1 -1
- package/dist/client/assets/{Settings02-3HEuuiVe.js → Settings02-19U6Pasa.js} +1 -1
- package/dist/client/assets/{Shield01-BGj8uiOU.js → Shield01-C1y1P7P6.js} +1 -1
- package/dist/client/assets/{Star01-BSZxz5Wn.js → Star01-Dl0-D7bS.js} +1 -1
- package/dist/client/assets/{Sun-DdqVKeEA.js → Sun-DZgB_ONP.js} +1 -1
- package/dist/client/assets/{Tool01-DMFP0Svb.js → Tool01-zaCqe86u.js} +1 -1
- package/dist/client/assets/{Trash01-Dj5mVOWm.js → Trash01-DKdnsDmj.js} +1 -1
- package/dist/client/assets/{User01-CDDY3fE9.js → User01-kuDW4DKu.js} +1 -1
- package/dist/client/assets/{Users03-BbIOB2XC.js → Users03-DEpz3kvM.js} +1 -1
- package/dist/client/assets/{X-yKx8T0mV.js → X-CXRgDFum.js} +1 -1
- package/dist/client/assets/{XCircle-BLtaN_6O.js → XCircle-CGvUuorr.js} +1 -1
- package/dist/client/assets/{XClose-Bk1D4OG4.js → XClose-C4DzyMov.js} +1 -1
- package/dist/client/assets/{Zap-Ctp20y2W.js → Zap-Cl0ETvvt.js} +1 -1
- package/dist/client/assets/{ZapSquare-BOPwjpzz.js → ZapSquare-DKEusvEW.js} +1 -1
- package/dist/client/assets/{accordion-Cp5pOFIt.js → accordion-fFsu-8K2.js} +1 -1
- package/dist/client/assets/{agent-icon-6IsHLhhx.js → agent-icon-D59FxHod.js} +1 -1
- package/dist/client/assets/{agents-list-2IMNAAmL.js → agents-list-C9eV3yHD.js} +1 -1
- package/dist/client/assets/ai-providers-Dw3vAL7u.js +1 -0
- package/dist/client/assets/{alert-dialog-D-vKhXAM.js → alert-dialog-Bs4oM5xq.js} +1 -1
- package/dist/client/assets/{auth-catchall-DSDUVS7V.js → auth-catchall-D7pOW-4H.js} +1 -1
- package/dist/client/assets/{automation-list-row-DXQ1xbHt.js → automation-list-row-DBnJAyuL.js} +1 -1
- package/dist/client/assets/{automations-BKGLmUCl.js → automations-CASAuVDl.js} +1 -1
- package/dist/client/assets/{avatar-DiYo_VFp.js → avatar-ChukgIuT.js} +1 -1
- package/dist/client/assets/{badge-v1Fnh_-2.js → badge-CYxiHq4p.js} +1 -1
- package/dist/client/assets/{brand-context-DWyvnvIk.js → brand-context-BUYExxZ2.js} +1 -1
- package/dist/client/assets/{card-CMatfPs6.js → card-CuKTvJk_.js} +1 -1
- package/dist/client/assets/{chat-context-BOGVHhEC.js → chat-context-Cmw2lxUK.js} +1 -1
- package/dist/client/assets/{checkbox-DgRshC0u.js → checkbox-B5zXb2Jo.js} +1 -1
- package/dist/client/assets/{collection-detail-D8ViAcbL.js → collection-detail-D12l8837.js} +1 -1
- package/dist/client/assets/{collection-display-button-BEIthj-o.js → collection-display-button-DUUEITxu.js} +1 -1
- package/dist/client/assets/{collection-search-Dsu0rnLF.js → collection-search-Clt8DXHN.js} +1 -1
- package/dist/client/assets/{collection-search-CLwC-feE.js → collection-search-JYX4AEcX.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Df3XEjUz.js → collection-table-wrapper-ClYve0R8.js} +1 -1
- package/dist/client/assets/{collection-tabs-3zydPpJg.js → collection-tabs-lx0xcUeS.js} +1 -1
- package/dist/client/assets/{collections-DIZVbUQW.js → collections-BNOKPh2o.js} +1 -1
- package/dist/client/assets/{command-Cb8AzRR0.js → command-Dl-gUn28.js} +1 -1
- package/dist/client/assets/{connection-card-CN5pQMAi.js → connection-card-DpO7z97O.js} +1 -1
- package/dist/client/assets/{connection-detail-DMf-fgcD.js → connection-detail-AvrFqpFh.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-0uGtdPq8.js → connection-form-helpers-YsDtNQ7E.js} +1 -1
- package/dist/client/assets/{connections-oG85p-mQ.js → connections-BCRN-YI1.js} +1 -1
- package/dist/client/assets/{constants-hjtpWhr_.js → constants-BGzIm0WX.js} +1 -1
- package/dist/client/assets/{constants-BBSLGS7p.js → constants-DfKy425l.js} +1 -1
- package/dist/client/assets/{dialog-CICi1bFC.js → dialog-De2L-Mm9.js} +1 -1
- package/dist/client/assets/{domain-settings-CjSKJW17.js → domain-settings-Dpd1_jlw.js} +1 -1
- package/dist/client/assets/{drawer-CAsvHZha.js → drawer-14Rn9Zur.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DVFKsYz3.js → dropdown-menu-B7VqWYeT.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-BTYFB5Vl.js → dynamic-plugin-layout-DiwAyewI.js} +1 -1
- package/dist/client/assets/{empty-state-Dk0gx8oo.js → empty-state-BAo1HEab.js} +1 -1
- package/dist/client/assets/{empty-state-CwHUFi5m.js → empty-state-DH5ZYu9E.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CvD7TUFj.js → extract-connection-data-Dn80NCk3.js} +1 -1
- package/dist/client/assets/{features-vcFr7_NO.js → features-n_p9V38c.js} +1 -1
- package/dist/client/assets/{form-bUi5oN1u.js → form-BpjQQfrk.js} +1 -1
- package/dist/client/assets/{general-iD0oGniS.js → general-Dq8oAlWK.js} +1 -1
- package/dist/client/assets/{index-DWSuPJ_b.js → index-BGGN2eK9.js} +1 -1
- package/dist/client/assets/{index-BOCF3HeX.js → index-C3WwEpEf.js} +1 -1
- package/dist/client/assets/{index-CMnREwkX.js → index-Cnr3iyKb.js} +1 -1
- package/dist/client/assets/{index-CBeau-VE.js → index-CsGGI0Nu.js} +3 -3
- package/dist/client/assets/{index-BxSEc3iB.js → index-CzYFXCYm.js} +1 -1
- package/dist/client/assets/{index-B7e3gTna.js → index-DZ2mE-ID.js} +1 -1
- package/dist/client/assets/{index-D9n-W_rO.js → index-DeZ4lzZS.js} +2 -2
- package/dist/client/assets/{index-Dg6zk4z0.js → index-DuYWPwRk.js} +1 -1
- package/dist/client/assets/{index-DM4aujMZ.js → index-Lha-Dz-p.js} +1 -1
- package/dist/client/assets/{index-C_78kpYQ.js → index-PaARzNIj.js} +1 -1
- package/dist/client/assets/{index-PFIdYUp0.js → index-YoMTmLrM.js} +1 -1
- package/dist/client/assets/{index-BCI_OHNR.js → index-aqFN5mzK.js} +1 -1
- package/dist/client/assets/{index-k1BGw4YF.js → index-f--UpzBV.js} +1 -1
- package/dist/client/assets/{index-CKbPmli4.js → index-x86r1Bar.js} +1 -1
- package/dist/client/assets/index-xIOMtHnW.js +1 -0
- package/dist/client/assets/{index-BczjQy3M.js → index-xj-daVDj.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DnwZzogs.js → infiniteQueryObserver-B8wlRxFU.js} +1 -1
- package/dist/client/assets/{input-Aj2AxbJX.js → input-BbtZTtIz.js} +1 -1
- package/dist/client/assets/{integration-icon-CNrz8Wxa.js → integration-icon-CX-4HHYz.js} +1 -1
- package/dist/client/assets/{label-CuWuUZ3O.js → label-B56NHqZu.js} +1 -1
- package/dist/client/assets/{layout-zn0Mql8j.js → layout-DJRPSgl8.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-mlOx896G.js → lean-canvas-recruit-modal-jh6XZJ5m.js} +1 -1
- package/dist/client/assets/{login-BAIGAZLg.js → login-MOfMmqEE.js} +1 -1
- package/dist/client/assets/{members--FDE6tuk.js → members-Bb0t0cOy.js} +1 -1
- package/dist/client/assets/{monaco-editor-PZYP8jhf.js → monaco-editor-B3eeVSHt.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BbRUPAD5.js → monitoring-stats-row-BOj9NNqP.js} +1 -1
- package/dist/client/assets/{oauth-callback-BaQ7B2Rx.js → oauth-callback-Bpfn3wkA.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DcbaUyEX.js → oauth-callback-ai-provider-BzHKlMUG.js} +1 -1
- package/dist/client/assets/{onboarding-h88h3klM.js → onboarding-BHY99bnn.js} +1 -1
- package/dist/client/assets/{org-layout-BBR4isCp.js → org-layout-BA9WvOcB.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-Dl6QtWDy.js → org-plugin-layout-D8vjiGLz.js} +1 -1
- package/dist/client/assets/{pair-DST-dVfc.js → pair-CqzVS7FB.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-CAfBOmv9.js → plugin-empty-state-peVJXJ6R.js} +1 -1
- package/dist/client/assets/{plugin-header-RtXpJdkF.js → plugin-header-BzceyGQx.js} +1 -1
- package/dist/client/assets/{plugin-layout-DLTDP8qX.js → plugin-layout-gRiAtkqj.js} +1 -1
- package/dist/client/assets/{popover-DFJMwPZz.js → popover-BWJBmR0W.js} +1 -1
- package/dist/client/assets/{profile-Bc72ys1m.js → profile-3DZrk3WT.js} +1 -1
- package/dist/client/assets/{project-app-view-k_Cpcixt.js → project-app-view-DKEPlP9n.js} +1 -1
- package/dist/client/assets/registry-4PJ4DDSp.js +2 -0
- package/dist/client/assets/{registry-layout-Cg78aXMt.js → registry-layout-6idZqCIF.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BRdLiCQS.js → required-auth-layout-C4TIYyDi.js} +1 -1
- package/dist/client/assets/{reset-password-B6r9t9Oh.js → reset-password-CKXtWBt4.js} +1 -1
- package/dist/client/assets/{roles-Ee_Uhan9.js → roles-CR6ZAjq-.js} +1 -1
- package/dist/client/assets/{scroll-area-D7xTqtD-.js → scroll-area-CpFD8S3R.js} +1 -1
- package/dist/client/assets/{search-input-BYHjVlDa.js → search-input-D2W6-i9v.js} +1 -1
- package/dist/client/assets/{select-DWMsyC47.js → select-CACnwoTF.js} +1 -1
- package/dist/client/assets/{select-model-p3PkjF3m.js → select-model-Cajziskt.js} +1 -1
- package/dist/client/assets/{settings-layout-B5lxdePw.js → settings-layout-BNHNlQuI.js} +1 -1
- package/dist/client/assets/{settings-section-DLmXqm7P.js → settings-section-B79eSyxk.js} +1 -1
- package/dist/client/assets/{shell-layout-DDd0qO09.js → shell-layout-D-2Zmpp8.js} +1 -1
- package/dist/client/assets/{skeleton-fTv1xeu9.js → skeleton-j1f8Y-yp.js} +1 -1
- package/dist/client/assets/{sso-DPaJITTm.js → sso-B3TyJ2uc.js} +1 -1
- package/dist/client/assets/{store-CAA-krPV.js → store-CIHVOnJ4.js} +1 -1
- package/dist/client/assets/store-registry-DKNEpxY8.js +2 -0
- package/dist/client/assets/{switch-D664sdCn.js → switch-Cym1wsqe.js} +1 -1
- package/dist/client/assets/{table-mlNAjytE.js → table-DjvJngLq.js} +1 -1
- package/dist/client/assets/{tabs-Bakk2hgc.js → tabs-CcbG9N2e.js} +1 -1
- package/dist/client/assets/{task-status-B1waCh_f.js → task-status-BhHFrQR1.js} +1 -1
- package/dist/client/assets/{textarea-B5ocquNh.js → textarea-CxPy3ZTN.js} +1 -1
- package/dist/client/assets/{toggle-group-CdL7Wi0S.js → toggle-group-CUoQjxXD.js} +1 -1
- package/dist/client/assets/{tools-list-C9TFhRWw.js → tools-list-Cb8a_Lef.js} +1 -1
- package/dist/client/assets/{tooltip-D3G-75TX.js → tooltip-CzbSAgXQ.js} +1 -1
- package/dist/client/assets/{types-iEh-ujpY.js → types-DxewxD-a.js} +1 -1
- package/dist/client/assets/{use-ai-providers-B5bMFCmc.js → use-ai-providers-CHzON1wD.js} +1 -1
- package/dist/client/assets/{use-collections-D6rFCbFs.js → use-collections-DSBDbO1N.js} +1 -1
- package/dist/client/assets/{use-connection-ChcOtrff.js → use-connection-DbYn3h0U.js} +1 -1
- package/dist/client/assets/{use-copy-m0n_RO3C.js → use-copy-B8mhVwfc.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-YEubcOB4.js → use-create-virtual-mcp-zuSOC404.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-B2P6o2k5.js → use-debounced-autosave-B3LX33uh.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-2TQ7wYAd.js → use-decopilot-events-C1f4EaaO.js} +1 -1
- package/dist/client/assets/{use-delete-connection-D5bnzRUU.js → use-delete-connection-B7VdYPcM.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-3bbSny2Z.js → use-infinite-scroll-61_2Ymdd.js} +1 -1
- package/dist/client/assets/{use-list-state-wMdeexdh.js → use-list-state-BX0wxNad.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BcOc7oDE.js → use-mcp-tools-LXbg-7b0.js} +1 -1
- package/dist/client/assets/{use-members-BNZ3ZVzn.js → use-members-B7wVCVZJ.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BpE3mIlu.js → use-navigate-to-agent-mAuF_Olj.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-C94Cx1kj.js → use-org-auth-client-CZ46-R8H.js} +1 -1
- package/dist/client/assets/{use-org-sso-V0U-retN.js → use-org-sso-iwRxmcvL.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Byz74Exs.js → use-organization-roles-BiL7w6Rf.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Crj_HvGT.js → use-organization-settings-CgpGj7yV.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BLE97Xkr.js → use-registry-connections-v6H0url5.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BFxmOR4f.js → use-status-sounds-DWE_lKOw.js} +1 -1
- package/dist/client/assets/{use-tasks-B1IA46S1.js → use-tasks-DYLdIMjk.js} +1 -1
- package/dist/client/assets/{use-view-mode-DmgZ_4mP.js → use-view-mode-Dj9H2B4i.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DbNBWdfU.js → use-virtual-mcp-DNHpowZu.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DsFcYHS7.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-B4Xtg3B8.js +1 -0
- package/dist/client/assets/{user-BnqvTrf4.js → user-B6HmPP4N.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CwkAkApt.js → view-mode-toggle-CWWQpnSB.js} +1 -1
- package/dist/client/assets/workflow-detail-BkYNroDK.js +1 -0
- package/dist/client/assets/{workflow-R3hZyuyQ.js → workflow-zflBzFOe.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
- package/dist/server/node_modules/postgres-array/index.js +97 -0
- package/dist/server/node_modules/{xtend/LICENSE → postgres-array/license} +2 -1
- package/dist/server/node_modules/postgres-array/package.json +35 -0
- package/dist/server/node_modules/postgres-array/readme.md +43 -0
- package/dist/server/node_modules/postgres-bytea/index.js +33 -0
- package/dist/server/node_modules/postgres-bytea/license +21 -0
- package/dist/server/node_modules/postgres-bytea/package.json +34 -0
- package/dist/server/node_modules/postgres-bytea/readme.md +34 -0
- package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
- package/dist/server/node_modules/postgres-interval/index.js +125 -0
- package/dist/server/node_modules/postgres-interval/license +21 -0
- package/dist/server/node_modules/postgres-interval/package.json +36 -0
- package/dist/server/node_modules/postgres-interval/readme.md +48 -0
- package/dist/server/node_modules/split2/LICENSE +13 -0
- package/dist/server/node_modules/split2/README.md +85 -0
- package/dist/server/node_modules/split2/bench.js +27 -0
- package/dist/server/node_modules/split2/index.js +141 -0
- package/dist/server/node_modules/split2/package.json +39 -0
- package/dist/server/node_modules/split2/test.js +409 -0
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-DJCkxeza.js +0 -1
- package/dist/client/assets/index-C3jp8V-r.js +0 -1
- package/dist/client/assets/registry-BsIc5aMc.js +0 -2
- package/dist/client/assets/store-registry-ofreyRMo.js +0 -2
- package/dist/client/assets/useInfiniteQuery-CkLPMOdO.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-3g8exEkj.js +0 -1
- package/dist/client/assets/workflow-detail-BJ1tXzcM.js +0 -1
- package/dist/server/node_modules/xtend/.jshintrc +0 -30
- package/dist/server/node_modules/xtend/README.md +0 -32
- package/dist/server/node_modules/xtend/immutable.js +0 -19
- package/dist/server/node_modules/xtend/mutable.js +0 -17
- package/dist/server/node_modules/xtend/package.json +0 -55
- package/dist/server/node_modules/xtend/test.js +0 -103
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as ue,b as Bt,u as ui,z as kn,C as Nn,j as n,B as J,x as ne,r as w,o as qt,f as ct,l as He,G as rn,F as on,t as $,K as ve,e as L,Q as Vi,R as mi,c as z,a as _n,g as fi,d as pi,H as dt,J as Dt,E as hi,P as Cn,ap as gi,n as In,y as ps,aq as xi,ar as hs,as as bi,at as De,au as an,ao as yi,av as vi,aw as ln,ax as wi,ay as ji,az as Ai,aA as Si,w as ki,aB as Ni,aC as _i,aD as Ci,aE as Ii,aF as zn}from"./index-D9n-W_rO.js";import{b as Me,a as Le,c as Fe,d as Ue,e as Kt,D as gs}from"./dialog-CICi1bFC.js";import{S as Ri}from"./switch-D664sdCn.js";import{I as _e}from"./input-Aj2AxbJX.js";import{b as Rn,u as Ti}from"./use-connection-ChcOtrff.js";import{S as kt,u as qe,W as xs,g as Tn,i as Bn,c as Pi}from"./constants-BBSLGS7p.js";import{a as Ei,c as Di}from"./lean-canvas-recruit-modal-mlOx896G.js";import{a as Pn}from"./use-navigate-to-agent-BpE3mIlu.js";import{a as Mi,A as En,L as Li,M as bs,N as ys,o as Fi,O as Ui,P as Oi,b as $i,Q as zi,H as vs}from"./agent-icon-6IsHLhhx.js";import{t as Bi,b as Yt,u as Dn,a as qi,g as Ki,h as Yi,w as Wi,A as Gi,i as Qi,j as Hi}from"./chat-context-BOGVHhEC.js";import{b as Wt,a as Gt,c as Qt,D as Ht,d as Ji,e as Xi,f as Zi}from"./drawer-CAsvHZha.js";import{u as Jt,T as xt,a as bt,b as yt,c as xn}from"./tooltip-D3G-75TX.js";import{I as ws}from"./integration-icon-CNrz8Wxa.js";import{a as js,b as er,u as tr}from"./use-virtual-mcp-DbNBWdfU.js";import{u as nr}from"./use-tasks-B1IA46S1.js";import{r as sr,i as ir}from"./shell-layout-DDd0qO09.js";import{j as Xt,k as Ge,l as rr,s as Mn,t as or,m as ar,n as lr,o as cr,q as wt,u as dr,v as ur,c as Vr,S as mr,w as fr,x as qn}from"./pair-DST-dVfc.js";import{S as Mt,u as Zt,P as bn,a as pr,b as hr,c as gr,E as xr,i as br,d as yr}from"./index-C_78kpYQ.js";import{C as As}from"./collection-search-CLwC-feE.js";import{u as vr,g as Ln,a as wr,c as jr,l as Lt}from"./tabs-Bakk2hgc.js";import{F as me,b as fe,c as Ne,d as pe,f as he,a as jt}from"./form-bUi5oN1u.js";import{c as Ee,e as cn,f as dn,D as Ss,a as ks,b as Ns,d as Ar}from"./dropdown-menu-DVFKsYz3.js";import{s as Sr,i as kr}from"./XClose-Bk1D4OG4.js";import{c as _s}from"./ZapSquare-BOPwjpzz.js";import{i as Xe}from"./Check-C6Fa8-x7.js";import{s as lt}from"./Star01-BSZxz5Wn.js";import{a as yn,t as Nr}from"./Tool01-DMFP0Svb.js";import{i as Cs}from"./Lock01-63SpB195.js";import{s as Is}from"./Plus-CDEOyPu8.js";import{f as un,d as Rs,t as _r,g as Cr,b as Ir}from"./XCircle-BLtaN_6O.js";import{i as pt}from"./X-yKx8T0mV.js";import{i as Ts}from"./AlertCircle-ri2xuBKe.js";import{S as Ps,a as Es,b as Ds,c as Ms,d as ot}from"./select-DWMsyC47.js";import{i as Rr}from"./RefreshCcw01-B2ZHRQzo.js";import{T as Ls,a as Ft}from"./toggle-group-CdL7Wi0S.js";import{u as Tr,a as Pr}from"./use-ai-providers-B5bMFCmc.js";import{m as en,g as Er,i as Dr,a as Fs,M as Mr,N as Lr}from"./select-model-p3PkjF3m.js";import{S as Fr}from"./index-PFIdYUp0.js";import{r as Us,l as vt}from"./types-iEh-ujpY.js";import{t as Kn}from"./ChevronDown-DmrzaACF.js";import{p as Ur,q as Yn}from"./question-004-sINsf4GQ.js";import{g as Wn}from"./ai-providers-logos-DD3qZ33J.js";import{g as Or}from"./connection-slug-eyAPH6o3.js";import{u as Os,a as $s,g as $r,C as Vn}from"./connection-card-CN5pQMAi.js";import{C as zr}from"./collection-tabs-3zydPpJg.js";import{g as Br}from"./constants-hjtpWhr_.js";import{T as qr}from"./textarea-B5ocquNh.js";import{n as Pt}from"./Container-BXYDPrF5.js";import{c as Kr,i as It,a as Gn,E as Yr,p as Wr,b as Gr,d as Qr}from"./connection-form-helpers-0uGtdPq8.js";import{u as Qn}from"./use-infinite-scroll-3bbSny2Z.js";import{u as Hr}from"./useSuspenseInfiniteQuery-3g8exEkj.js";import{g as Jr,e as Xr,a as Zr}from"./extract-connection-data-CvD7TUFj.js";import{B as Rt}from"./badge-v1Fnh_-2.js";import{i as eo}from"./ChevronRight-CZ_XAq5W.js";function to({open:t,onOpenChange:e,onCreated:s}){const{org:i}=ue(),{data:r}=Bt.useSession(),{stdioEnabled:o}=ui(),a=Jt(),d=Rn(),l=Os(),V=$s(l,"").items,c=kn({resolver:Nn(Kr),defaultValues:{title:"",description:null,icon:null,ui_type:"HTTP",connection_url:"",connection_token:null,npx_package:"",stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:[]}}),m=c.watch("ui_type"),p=c.watch("connection_url"),x=c.watch("npx_package"),g=It({uiType:m,connectionUrl:p??"",npxPackage:x??""})??Gn({uiType:m,connectionUrl:p??"",registryItems:V}),f=S=>{const v=S.trim();if(!v)return;const j=!!c.formState.dirtyFields.title,E=!!c.formState.dirtyFields.description,D=!!c.formState.dirtyFields.env_vars,I=k=>{if(k&&(!j&&!c.getValues("title").trim()&&k.title&&c.setValue("title",k.title,{shouldDirty:!1}),!E&&!(c.getValues("description")??"").trim()&&k.description&&c.setValue("description",k.description,{shouldDirty:!1}),!D&&k.envVarKeys?.length)){const N=c.getValues("env_vars")??[],R=new Set(N.map(T=>T.key)),M=k.envVarKeys.filter(T=>!R.has(T));M.length>0&&c.setValue("env_vars",[...N,...M.map(T=>({key:T,value:""}))],{shouldDirty:!0})}},P=Wr(v);if(P&&o){c.setValue("ui_type","NPX",{shouldDirty:!0}),c.setValue("npx_package",P.packageName,{shouldDirty:!0}),c.setValue("connection_url","",{shouldDirty:!0}),c.setValue("connection_token",null,{shouldDirty:!0}),I(It({uiType:"NPX",npxPackage:P.packageName}));return}if(v.startsWith("http://")||v.startsWith("https://")){const k=m==="HTTP"||m==="SSE"||m==="Websocket"?m:"HTTP";c.setValue("ui_type",k,{shouldDirty:!0}),c.setValue("connection_url",v,{shouldDirty:!0}),I(It({uiType:k,connectionUrl:v})??Gn({uiType:k,connectionUrl:v,registryItems:V}));return}m==="NPX"&&I(It({uiType:"NPX",npxPackage:v}))},b=S=>{S||c.reset(),e(S)},h=async S=>{let v,j=null,E=null,D=null;S.ui_type==="NPX"?(v="STDIO",j="",D=Gr(S.npx_package||"",S.env_vars||[])):S.ui_type==="STDIO"?(v="STDIO",j="",D=Qr(S.stdio_command||"",S.stdio_args||"",S.stdio_cwd,S.env_vars||[])):(v=S.ui_type,j=S.connection_url||"",E=S.connection_token||null);const I=Br("conn");try{await d.create.mutateAsync({id:I,title:S.title,description:S.description||null,connection_type:v,connection_url:j,connection_token:E,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),created_by:r?.user?.id||"system",organization_id:i.id,icon:S.icon??null,app_name:null,app_id:null,connection_headers:D,oauth_config:null,configuration_state:null,metadata:null,tools:null,bindings:null,status:"inactive"}),c.reset(),e(!1),s?.(I)}catch{ne.error("Failed to create connection")}},y="Create Connection",A="Create a custom connection in your organization. Fill in the details below.",_=c.formState.isSubmitting?"Saving...":"Create Connection",C=n.jsxs("div",{className:"grid gap-4",children:[n.jsx(me,{control:c.control,name:"ui_type",render:({field:S})=>n.jsxs(fe,{children:[n.jsx(Ne,{children:"Type *"}),n.jsxs(Ps,{value:S.value,onValueChange:S.onChange,children:[n.jsx(pe,{children:n.jsx(Es,{children:n.jsx(Ds,{})})}),n.jsxs(Ms,{children:[n.jsx(ot,{value:"HTTP",children:n.jsxs("span",{className:"flex items-center gap-2",children:[n.jsx(lt,{className:"w-4 h-4"}),"HTTP"]})}),n.jsx(ot,{value:"SSE",children:n.jsxs("span",{className:"flex items-center gap-2",children:[n.jsx(lt,{className:"w-4 h-4"}),"SSE"]})}),n.jsx(ot,{value:"Websocket",children:n.jsxs("span",{className:"flex items-center gap-2",children:[n.jsx(lt,{className:"w-4 h-4"}),"Websocket"]})}),o&&n.jsxs(n.Fragment,{children:[n.jsx(ot,{value:"NPX",children:n.jsxs("span",{className:"flex items-center gap-2",children:[n.jsx(Pt,{className:"w-4 h-4"}),"NPX Package"]})}),n.jsx(ot,{value:"STDIO",children:n.jsxs("span",{className:"flex items-center gap-2",children:[n.jsx(Mi,{className:"w-4 h-4"}),"Custom Command"]})})]})]})]}),n.jsx(he,{})]})}),m==="NPX"&&n.jsx(me,{control:c.control,name:"npx_package",render:({field:S})=>n.jsxs(fe,{children:[n.jsx(Ne,{children:"NPM Package *"}),n.jsx(pe,{children:n.jsx(_e,{placeholder:"@perplexity-ai/mcp-server",...S,value:S.value??"",onPaste:v=>{const j=v.clipboardData.getData("text");j&&(v.preventDefault(),c.setValue("npx_package",j.trim(),{shouldDirty:!0}),f(j))},onBlur:v=>{f(v.target.value),S.onBlur()}})}),n.jsx(he,{})]})}),m==="STDIO"&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"grid grid-cols-2 gap-4 items-start",children:[n.jsx(me,{control:c.control,name:"stdio_command",render:({field:S})=>n.jsxs(fe,{children:[n.jsx(Ne,{children:"Command *"}),n.jsx(pe,{children:n.jsx(_e,{placeholder:"node, bun, python...",...S,value:S.value??""})}),n.jsx(he,{})]})}),n.jsx(me,{control:c.control,name:"stdio_args",render:({field:S})=>n.jsxs(fe,{children:[n.jsx(Ne,{children:"Arguments"}),n.jsx(pe,{children:n.jsx(_e,{placeholder:"arg1 arg2 --flag value",...S,value:S.value??""})}),n.jsx(he,{})]})})]}),n.jsx(me,{control:c.control,name:"stdio_cwd",render:({field:S})=>n.jsxs(fe,{children:[n.jsx(Ne,{children:"Working Directory"}),n.jsx(pe,{children:n.jsx(_e,{placeholder:"/path/to/project (optional)",...S,value:S.value??""})}),n.jsx("p",{className:"text-xs text-muted-foreground",children:"Directory where the command will be executed"}),n.jsx(he,{})]})})]}),(m==="NPX"||m==="STDIO")&&n.jsx(me,{control:c.control,name:"env_vars",render:({field:S})=>n.jsxs(fe,{children:[n.jsx(Ne,{children:"Environment Variables"}),n.jsx(pe,{children:n.jsx(Yr,{value:S.value??[],onChange:S.onChange})}),n.jsx(he,{})]})}),m!=="NPX"&&m!=="STDIO"&&n.jsxs(n.Fragment,{children:[n.jsx(me,{control:c.control,name:"connection_url",render:({field:S})=>n.jsxs(fe,{children:[n.jsx(Ne,{children:"URL *"}),n.jsx(pe,{children:n.jsx(_e,{placeholder:"https://example.com/mcp",...S,value:S.value??"",onPaste:v=>{const j=v.clipboardData.getData("text");j&&(v.preventDefault(),c.setValue("connection_url",j.trim(),{shouldDirty:!0}),f(j))},onBlur:v=>{f(v.target.value),S.onBlur()}})}),n.jsx(he,{})]})}),n.jsx(me,{control:c.control,name:"connection_token",render:({field:S})=>n.jsxs(fe,{children:[n.jsx(Ne,{children:g?.token?.label??"Token (optional)"}),n.jsx(pe,{children:n.jsx(_e,{type:"password",placeholder:g?.token?.placeholder??"Bearer token or API key",className:"ph-no-capture",...S,value:S.value??""})}),g?.token?.helperText&&n.jsxs("p",{className:"text-xs text-muted-foreground",children:[g.token.helperText,g.id==="github"&&n.jsxs(n.Fragment,{children:[" ","·"," ",n.jsx("a",{className:"text-foreground underline underline-offset-4 hover:text-foreground/80",href:"https://github.com/settings/personal-access-tokens",target:"_blank",rel:"noreferrer",children:"Open GitHub PAT settings"})]})]}),n.jsx(he,{})]})})]}),n.jsx(me,{control:c.control,name:"title",render:({field:S})=>n.jsxs(fe,{children:[n.jsx(Ne,{children:"Name *"}),n.jsx(pe,{children:n.jsx(_e,{placeholder:"My Connection",...S})}),n.jsx(he,{})]})}),n.jsx(me,{control:c.control,name:"description",render:({field:S})=>n.jsxs(fe,{children:[n.jsx(Ne,{children:"Description"}),n.jsx(pe,{children:n.jsx(qr,{placeholder:"A brief description of this connection",rows:3,...S,value:S.value??""})}),n.jsx(he,{})]})})]});return a?n.jsx(Wt,{open:t,onOpenChange:b,children:n.jsxs(Gt,{className:"max-h-[90vh]",children:[n.jsx(Qt,{className:"pb-2",children:n.jsxs("div",{className:"flex items-start justify-between gap-4",children:[n.jsxs("div",{className:"flex-1 text-left",children:[n.jsx(Ht,{children:y}),n.jsx(Ji,{className:"mt-1",children:A})]}),n.jsx(Xi,{asChild:!0,children:n.jsx(J,{variant:"ghost",size:"icon",className:"shrink-0 -mt-1",children:n.jsx(Sr,{size:16})})})]})}),n.jsx(jt,{...c,children:n.jsxs("form",{onSubmit:c.handleSubmit(h),children:[n.jsx("div",{className:"overflow-y-auto px-4 pb-4",children:C}),n.jsx(Zi,{children:n.jsx(J,{type:"submit",disabled:c.formState.isSubmitting,className:"w-full",children:_})})]})})]})}):n.jsx(Me,{open:t,onOpenChange:b,children:n.jsxs(Le,{className:"sm:max-w-[525px]",children:[n.jsxs(Fe,{children:[n.jsx(Ue,{children:y}),n.jsx(Kt,{children:A})]}),n.jsx(jt,{...c,children:n.jsxs("form",{onSubmit:c.handleSubmit(h),children:[n.jsx("div",{className:"py-4",children:C}),n.jsxs(gs,{children:[n.jsx(J,{type:"button",variant:"outline",onClick:()=>b(!1),children:"Cancel"}),n.jsx(J,{type:"submit",disabled:c.formState.isSubmitting,className:"min-w-40",children:_})]})]})})]})})}function no(t){const e=L.c(73),{mode:s,agentId:i,addedConnectionIds:r,onAdd:o,onCloneAndAdd:a,onConnectAndAdd:d,connectingItemId:l,search:u,onCreateConnection:V,onBrowseNavigate:c,defaultTab:m}=t,p=s===void 0?"add":s,x=m===void 0?"connected":m,{org:g}=ue(),f=w.useDeferredValue(u),b=u!==f,h=f.trim().toLowerCase();let y;e[0]!==x?(y=U=>U??x,e[0]=x,e[1]=y):y=e[1];const[A,_]=Vi(mi.connectionsTab(g.slug)+(x==="all"?":home-modal":":agent-modal"),y);let C;e[2]!==A||e[3]!==_?(C=U=>{U!==A&&$("connections_dialog_tab_changed",{to_tab:U}),_(U)},e[2]=A,e[3]=_,e[4]=C):C=e[4];const S=C;let v;e[5]!==g.id||e[6]!==g.slug?(v={connectionId:kt,orgId:g.id,orgSlug:g.slug},e[5]=g.id,e[6]=g.slug,e[7]=v):v=e[7];const j=qe(v);let E,D,I;if(e[8]!==j||e[9]!==f||e[10]!==g.id){I=f?.trim()?{operator:"or",conditions:[{field:["title"],operator:"contains",value:f.trim()},{field:["description"],operator:"contains",value:f.trim()}]}:void 0;const U={...I&&{where:I},orderBy:[{field:["updated_at"],direction:"asc"}],limit:100,offset:0},X=JSON.stringify(U);D=Hr,E=ve.collectionListInfinite(j,g.id,"","CONNECTIONS",X),e[8]=j,e[9]=f,e[10]=g.id,e[11]=E,e[12]=D,e[13]=I}else E=e[11],D=e[12],I=e[13];let P;e[14]!==j||e[15]!==I?(P=async U=>{const{pageParam:X}=U,Se=X===void 0?0:X;return(await j.callTool({name:"COLLECTION_CONNECTIONS_LIST",arguments:{...I&&{where:I},orderBy:[{field:["updated_at"],direction:"asc"}],limit:100,offset:Se}})).structuredContent},e[14]=j,e[15]=I,e[16]=P):P=e[16];let k;e[17]!==E||e[18]!==P?(k={queryKey:E,queryFn:P,initialPageParam:0,getNextPageParam:lo,staleTime:3e4},e[17]=E,e[18]=P,e[19]=k):k=e[19];const{data:N,fetchNextPage:R,hasNextPage:M,isFetchingNextPage:T}=D(k),F=N?.pages.flatMap(ao)??[],O=$r(F),q=new Set(F.filter(oo).map(ro)),K=Os(),H=$s(K,f),Z=Qn(H.loadMore,H.hasMore,H.isLoadingMore),Q=Qn(R,M??!1,T),W=A==="all"||!!h,ie=W?H.items.filter(U=>{const X=Jr(U);if(X&&q.has(X))return!1;if(!h)return!0;const Se=U._meta?.["mcp.mesh"];return[U.title,U.description,U.name,U.server?.title,U.server?.description,U.server?.name,Se?.friendly_name,Se?.friendlyName].filter(Boolean).join(" ").toLowerCase().includes(h)}):[],Y=ie.filter(io),ee=ie.filter(so);let te;e[20]!==r?(te=U=>U.some(X=>r.has(X.id)),e[20]=r,e[21]=te):te=e[21];const se=te;let ae;e[22]!==r||e[23]!==i||e[24]!==l||e[25]!==se||e[26]!==p||e[27]!==o||e[28]!==c||e[29]!==a?(ae=(U,X,Se,ke,Te)=>{const ze=se(Te),Be=Te.find(Pe=>!r.has(Pe.id)),le=Te[0];if(p==="browse"){const Pe=Or(le);return n.jsx(Vn,{connection:{title:X,icon:Se,description:Te.length>1?`${Te.length} instances`:ke??void 0},fallbackIcon:n.jsx(Pt,{}),headerActionsAlwaysVisible:!0,headerActions:n.jsxs(Rt,{variant:"secondary",className:"text-xs gap-1 font-normal",children:[n.jsx(Xe,{size:11})," Connected"]}),onClick:()=>{$("connection_browse_clicked",{app_name:le.app_name??null,connection_id:le.id,instances_count:Te.length}),c?.(Pe)}},U)}return n.jsx(Vn,{connection:{title:X,icon:Se,description:ke},fallbackIcon:n.jsx(Pt,{}),headerActionsAlwaysVisible:!0,headerActions:n.jsxs("div",{className:"flex items-center gap-1.5",children:[ze&&n.jsxs(Rt,{variant:"secondary",className:"text-xs gap-1 font-normal",children:[n.jsx(Xe,{size:11})," Added"]}),n.jsx(J,{variant:"outline",size:"sm",className:"h-7 px-3 text-xs font-medium",disabled:l!==null,onClick:Pe=>{Pe.stopPropagation(),Be?($("connection_add_clicked",{action:"use_existing",app_name:le.app_name??null,connection_id:Be.id}),i&&$("agent_connection_attached",{agent_id:i,connection_id:Be.id,app_name:le.app_name??null,mode:"existing"}),o(Be.id)):($("connection_add_clicked",{action:"clone",app_name:le.app_name??null,base_connection_id:le.id}),a(le))},children:"Add"})]})},U)},e[22]=r,e[23]=i,e[24]=l,e[25]=se,e[26]=p,e[27]=o,e[28]=c,e[29]=a,e[30]=ae):ae=e[30];const re=ae;let oe;e[31]!==l||e[32]!==p||e[33]!==d?(oe=U=>{const X=U._meta?.["mcp.mesh"],Se=X?.friendlyName||X?.friendly_name||U.server?.title||U.title||U.server?.name||U.name||U.id||"",ke=U.server?.description||U.description||null,Te=U.server?.icons?.[0]?.src||Zr(U.server?.repository)||null,ze=X?.official===!0,Be=X?.verified===!0,le=X?.owner==="deco";return n.jsx(Vn,{connection:{title:Se,description:ke,icon:Te},fallbackIcon:n.jsx(Pt,{}),headerActionsAlwaysVisible:!0,headerActions:n.jsxs("div",{className:"flex items-center gap-1.5",children:[le&&n.jsxs(xt,{children:[n.jsx(bt,{asChild:!0,children:n.jsx("span",{className:"inline-flex items-center justify-center size-5 rounded-md bg-muted shrink-0",children:n.jsx("img",{src:"/logos/deco logo.svg",alt:"Made by Deco",className:"size-3"})})}),n.jsx(yt,{children:"Built and maintained by Deco"})]}),!le&&ze&&n.jsxs(xt,{children:[n.jsx(bt,{asChild:!0,children:n.jsx(Rt,{variant:"outline",size:"icon",children:n.jsx(un,{})})}),n.jsx(yt,{children:"Built and maintained by the official vendor"})]}),!le&&!ze&&Be&&n.jsxs(xt,{children:[n.jsx(bt,{asChild:!0,children:n.jsx(Rt,{variant:"outline",size:"icon",children:n.jsx(un,{})})}),n.jsx(yt,{children:"Verified by the Deco team"})]}),n.jsx(J,{variant:"outline",size:"sm",className:"h-7 px-3 text-xs font-medium",disabled:l!==null,onClick:Pe=>{Pe.stopPropagation(),$("connection_add_clicked",{action:"connect_new",registry_item_id:U.id,app_name:X?.friendlyName||U.server?.name||U.name||null}),d(U)},children:l===U.id?n.jsx(He,{size:14,className:"animate-spin"}):p==="browse"?"Connect":"Add"})]})},`catalog-${U.id}`)},e[31]=l,e[32]=p,e[33]=d,e[34]=oe):oe=e[34];const ce=oe,ge=!h&&n.jsxs("div",{className:"flex items-center justify-between px-5 py-3 border-b border-border shrink-0",children:[n.jsx(zr,{tabs:[{id:"all",label:"All"},{id:"connected",label:"Connected"}],activeTab:A,onTabChange:U=>S(U)}),n.jsxs(J,{variant:"outline",size:"sm",className:"h-7 px-2 text-sm",onClick:()=>{$("connections_dialog_custom_clicked"),V()},children:[n.jsx(Is,{size:12}),"Custom Connection"]})]}),G=b&&"opacity-50 pointer-events-none";let de;e[35]!==G?(de=z("flex-1 overflow-auto p-5 transition-opacity duration-150",G),e[35]=G,e[36]=de):de=e[36];const Ze="grid grid-cols-[repeat(auto-fill,minmax(260px,1fr))] gap-4";let Oe;e[37]!==re?(Oe=U=>{if(U.type==="group")return re(U.key,U.title,U.icon,null,U.connections);const X=U.connection;return re(X.id,X.title,X.icon,X.description??null,[X])},e[37]=re,e[38]=Oe):Oe=e[38];const Ce=O.map(Oe);let xe;e[39]!==Q?(xe=n.jsx("div",{ref:Q,className:"col-span-full h-1"}),e[39]=Q,e[40]=xe):xe=e[40];let be;e[41]!==T?(be=T&&n.jsx("div",{className:"col-span-full flex justify-center py-6",children:n.jsx(He,{size:24,className:"animate-spin text-muted-foreground"})}),e[41]=T,e[42]=be):be=e[42];const Ie=W&&Y.length>0&&n.jsxs("div",{className:"col-span-full flex items-center gap-2 mt-2",children:[n.jsx(un,{size:13,className:"text-muted-foreground shrink-0"}),n.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Verified"}),n.jsx("div",{className:"flex-1 h-px bg-border"})]}),Ke=W&&Y.map(ce),Ve=W&&ee.length>0&&n.jsxs("div",{className:"col-span-full flex items-center gap-2 mt-2",children:[n.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"All connections"}),n.jsx("div",{className:"flex-1 h-px bg-border"})]}),ut=W&&ee.map(ce);let we;e[43]!==Z||e[44]!==K||e[45]!==W?(we=W&&K.length>0&&n.jsx("div",{ref:Z,className:"col-span-full h-1"}),e[43]=Z,e[44]=K,e[45]=W,e[46]=we):we=e[46];let Re;e[47]!==H.isLoadingMore||e[48]!==W?(Re=W&&H.isLoadingMore&&n.jsx("div",{className:"col-span-full flex justify-center py-6",children:n.jsx(He,{size:24,className:"animate-spin text-muted-foreground"})}),e[47]=H.isLoadingMore,e[48]=W,e[49]=Re):Re=e[49];let je;e[50]!==Ce||e[51]!==xe||e[52]!==be||e[53]!==Ie||e[54]!==Ke||e[55]!==Ve||e[56]!==ut||e[57]!==we||e[58]!==Re?(je=n.jsxs("div",{className:Ze,children:[Ce,xe,be,Ie,Ke,Ve,ut,we,Re]}),e[50]=Ce,e[51]=xe,e[52]=be,e[53]=Ie,e[54]=Ke,e[55]=Ve,e[56]=ut,e[57]=we,e[58]=Re,e[59]=je):je=e[59];let Ae;e[60]!==A||e[61]!==O.length||e[62]!==ee||e[63]!==u||e[64]!==Y?(Ae=O.length===0&&Y.length===0&&ee.length===0&&n.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:u?`No connections match "${u}"`:A==="connected"?"No connections yet":"No connections available"}),e[60]=A,e[61]=O.length,e[62]=ee,e[63]=u,e[64]=Y,e[65]=Ae):Ae=e[65];let ye;e[66]!==de||e[67]!==je||e[68]!==Ae?(ye=n.jsxs("div",{className:de,children:[je,Ae]}),e[66]=de,e[67]=je,e[68]=Ae,e[69]=ye):ye=e[69];let $e;return e[70]!==ge||e[71]!==ye?($e=n.jsxs(n.Fragment,{children:[ge,ye]}),e[70]=ge,e[71]=ye,e[72]=$e):$e=e[72],$e}function so(t){return!t.verified&&!t._meta?.["mcp.mesh"]?.verified&&!t.meta?.verified}function io(t){return t.verified||t._meta?.["mcp.mesh"]?.verified||t.meta?.verified}function ro(t){return t.app_name}function oo(t){return t.app_name}function ao(t){return t?.items??[]}function lo(t,e){if(t?.hasMore)return e.reduce(co,0)}function co(t,e){return t+(e?.items?.length??0)}function uo({open:t,onOpenChange:e,defaultTab:s,initialSearch:i="",...r}){const o=r.mode??"add",a="agentId"in r?r.agentId:void 0,d="addedConnectionIds"in r?r.addedConnectionIds??new Set:new Set,l="onAdd"in r&&r.onAdd?r.onAdd:v=>{},u=(v,j,E)=>{a&&$("agent_connection_attached",{agent_id:a,connection_id:v,app_name:j,mode:E})},[V,c]=w.useState(null),[m,p]=w.useState(i),[x,g]=w.useState(!1),{org:f}=ue(),{data:b}=Bt.useSession(),h=Rn(),y=qt(),A=ct(),_=v=>{e(!1),A({to:"/$org/settings/connections/$appSlug",params:{org:f.slug,appSlug:v}})},C=async v=>{c(v.app_name??v.id);try{const E=`${v.title.replace(/\s*\(\d+\)\s*$/,"")} (${Date.now().toString(36).slice(-4)})`,I=(await h.create.mutateAsync({title:E,description:v.description??null,connection_type:v.connection_type,connection_url:v.connection_url??null,connection_token:null,icon:v.icon??null,app_name:v.app_name??null,app_id:v.app_id??null,connection_headers:v.connection_headers??null})).id,P=new URL(`/api/${f.slug}/mcp/${I}`,window.location.origin),k=await rn({url:P.href,token:null,orgId:f.id});if(k.supportsOAuth&&!k.isAuthenticated){const{token:N,tokenInfo:R,error:M}=await on({connectionId:I,orgSlug:f.slug,scope:"offline_access"});if(M||!N){$("connection_oauth_failed",{connection_id:I,flow:"clone",error:M??"no_token"}),ne.error(`Authentication failed: ${M??"no token received"}`),await h.delete.mutateAsync(I);return}if($("connection_oauth_succeeded",{connection_id:I,flow:"clone"}),R)try{(await fetch(`/api/${f.slug}/connections/${I}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:R.accessToken,refreshToken:R.refreshToken,expiresIn:R.expiresIn,scope:R.scope,clientId:R.clientId,clientSecret:R.clientSecret,tokenEndpoint:R.tokenEndpoint})})).ok?await h.update.mutateAsync({id:I,data:{}}):await h.update.mutateAsync({id:I,data:{connection_token:N}})}catch{await h.update.mutateAsync({id:I,data:{connection_token:N}})}else await h.update.mutateAsync({id:I,data:{connection_token:N}});await y.invalidateQueries({queryKey:ve.isMCPAuthenticated(P.href,null)})}u(I,v.app_name??null,"clone"),l(I)}catch(j){console.error("Failed to add connection:",j),ne.error("Failed to add connection")}finally{c(null)}},S=async v=>{if(!(!f||!b?.user?.id)){c(v.id);try{const j=Xr(v,f.id,b.user.id,{remoteIndex:0}),E=j.connection_type==="STDIO",D=!!j.connection_url,I=E&&j.connection_headers&&typeof j.connection_headers=="object"&&"command"in j.connection_headers;if(!D&&!I){ne.error("This MCP Server cannot be connected: no connection method available"),c(null);return}const{id:P}=await h.create.mutateAsync(j),k=new URL(`/api/${f.slug}/mcp/${P}`,window.location.origin),N=await rn({url:k.href,token:null,orgId:f.id});if(N.supportsOAuth&&!N.isAuthenticated){const{token:R,tokenInfo:M,error:T}=await on({connectionId:P,orgSlug:f.slug,scope:"offline_access"});if(T||!R){$("connection_oauth_failed",{connection_id:P,flow:"connect_new",error:T??"no_token"}),ne.error(`Authentication failed: ${T??"no token received"}`),u(P,j.app_name??null,"new"),l(P);return}if($("connection_oauth_succeeded",{connection_id:P,flow:"connect_new"}),M)try{(await fetch(`/api/${f.slug}/connections/${P}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:M.accessToken,refreshToken:M.refreshToken,expiresIn:M.expiresIn,scope:M.scope,clientId:M.clientId,clientSecret:M.clientSecret,tokenEndpoint:M.tokenEndpoint})})).ok?await h.update.mutateAsync({id:P,data:{}}):await h.update.mutateAsync({id:P,data:{connection_token:R}})}catch{await h.update.mutateAsync({id:P,data:{connection_token:R}})}else await h.update.mutateAsync({id:P,data:{connection_token:R}});await y.invalidateQueries({queryKey:ve.isMCPAuthenticated(k.href,null)}),ne.success("Connected and authenticated")}else ne.success("Connected");u(P,j.app_name??null,"new"),l(P)}catch(j){console.error("Failed to connect:",j),ne.error("Failed to connect")}finally{c(null)}}};return n.jsxs(Me,{open:t,onOpenChange:e,children:[n.jsxs(Le,{className:"sm:max-w-5xl h-[85vh] max-h-[85vh] flex flex-col p-0 gap-0 overflow-hidden w-[95vw]",children:[n.jsx(Fe,{className:"px-6 pt-5 pb-0 shrink-0",children:n.jsx(Ue,{className:"text-base font-semibold",children:o==="browse"?"Connections":"Add Connection"})}),n.jsx("div",{className:"pt-3 shrink-0",children:n.jsx(As,{value:m,onChange:p,placeholder:"Search connections..."})}),n.jsx(w.Suspense,{fallback:n.jsx("div",{className:"flex-1 flex items-center justify-center",children:n.jsx(He,{size:24,className:"animate-spin text-muted-foreground"})}),children:n.jsx(no,{mode:o,agentId:a,addedConnectionIds:d,onAdd:l,onCloneAndAdd:C,onConnectAndAdd:S,connectingItemId:V,search:m,onCreateConnection:()=>g(!0),onBrowseNavigate:_,defaultTab:s})})]}),n.jsx(to,{open:x,onOpenChange:g,onCreated:async v=>{g(!1);const j=new URL(`/api/${f.slug}/mcp/${v}`,window.location.origin),E=await rn({url:j.href,token:null,orgId:f.id});if(E.supportsOAuth&&!E.isAuthenticated){const{token:D,tokenInfo:I,error:P}=await on({connectionId:v,orgSlug:f.slug,scope:"offline_access"});if(P||!D){$("connection_oauth_failed",{connection_id:v,flow:"custom_create",error:P??"no_token"}),ne.error(`Authentication failed: ${P??"no token received"}`),await h.delete.mutateAsync(v);return}if($("connection_oauth_succeeded",{connection_id:v,flow:"custom_create"}),I)try{(await fetch(`/api/${f.slug}/connections/${v}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:I.accessToken,refreshToken:I.refreshToken,expiresIn:I.expiresIn,scope:I.scope,clientId:I.clientId,clientSecret:I.clientSecret,tokenEndpoint:I.tokenEndpoint})})).ok?await h.update.mutateAsync({id:v,data:{}}):await h.update.mutateAsync({id:v,data:{connection_token:D}})}catch{await h.update.mutateAsync({id:v,data:{connection_token:D}})}else await h.update.mutateAsync({id:v,data:{connection_token:D}});await y.invalidateQueries({queryKey:ve.isMCPAuthenticated(j.href,null)})}u(v,null,"custom"),l(v),e(!1)}})]})}const Vo='# Broken Link Finder\n\nYou are the **Broken Link Finder**, a specialist agent focused on the health of the site\'s link structure.\n\n## Your mission\n\nDiscover and track broken links and long redirect chains. You are invoked as a sub-task by an orchestrator agent — your job is to detect link health and return a structured findings report. The orchestrator decides what to do with your findings (file issues, dedup, etc.).\n\nYou are **mechanical**: collect → check → classify → emit findings. Leave subjective judgment to other agents.\n\n## Input (expect this in the prompt)\n\nThe orchestrator will pass per-site configuration. Expected fields:\n\n```yaml\nsite_root_url: <https://example.com>\nmax_pages: <optional integer, default 100, max 200>\ncheck_external: <optional bool, default false>\n```\n\nIf required fields are missing (`site_root_url`), return an error summary and stop — do not proceed with defaults or guess.\n\n## Available tools\n\n- **site-diagnostics MCP**:\n - `collect_site_links` — discovers all unique outbound link targets across the site and returns them with source-page attribution. Does NOT check status.\n - `check_urls` — takes a batch of URLs (max 100 per call) and returns their HTTP status, error kind, and redirect chains.\n\n---\n\n## Step 1 — Collect link targets (one call)\n\nCall `collect_site_links` once to get the full deduplicated list of outbound link targets and their source pages:\n\n```\ncollect_site_links({\n url: <site_root_url from input>,\n maxPages: <max_pages from input, default 100>,\n checkExternal: <check_external from input, default false>\n})\n```\n\nThis returns:\n- `links`: array of `{ targetUrl, scope: "internal"|"external", sourcePages, sourcePagesTotal }` — **each target appears exactly once**\n- Metadata: `pagesCrawled`, `pagesFetched`, `linksSkipped`, optional `error`\n\n**If `result.error` is set**, the scan failed at the root (e.g. site unreachable). Return a single finding with `kind: site-unreachable` and the error in `evidence`. Then stop.\n\nKeep the `links` array in memory — you\'ll need it in Step 3 for classification and source attribution.\n\n## Step 2 — Check the targets (batched calls)\n\nExtract `targetUrl` from each entry in `links`. Slice the resulting URL list into **disjoint batches of up to 100 URLs** and call `check_urls` on each batch:\n\n```\ncheck_urls({ urls: batch_of_100_urls })\n```\n\nCollect every batch\'s `results` entries into a single flat array. Order doesn\'t matter — you\'ll join back by `targetUrl`.\n\n**Rules for this step:**\n- Slice deterministically (e.g. consecutive slices of 100) so batches are disjoint. Do not pass the same URL in two batches.\n- Call `check_urls` sequentially or in parallel — your choice. The tool is idempotent.\n- If a single `check_urls` call errors entirely, skip that batch and continue with the others. Note the skipped count in the wrap-up summary.\n\n## Step 3 — Classify each finding\n\nFor every target with a check result, join the `collect_site_links` entry (for `scope`, `sourcePages`, `sourcePagesTotal`) with the `check_urls` entry (for `status`, `errorKind`, `chain`, `hops`).\n\nA finding is emitted for:\n- **Broken**: `status >= 400` OR `status === 0`\n- **Long redirect chain**: `hops > 3` (even if the final status is 2xx)\n\nOther targets (2xx, short-chain redirects) produce no finding.\n\nMap check result → `kind`:\n\n| Check result | `kind` |\n|---|---|\n| `status: 404` | `link-404` |\n| `status: 4xx` (not 404) | `link-4xx-other` |\n| `status: 5xx` | `link-5xx` |\n| `status: 0`, `errorKind: "dns"` | `link-dns-failure` |\n| `status: 0`, `errorKind: "redirect-loop"` | `redirect-loop` |\n| `hops > 3` (success final status) | `redirect-chain-long` |\n| `status: 0`, `errorKind: "timeout"` or `"connection"` | **skip — no finding** |\n\n**Important**: timeouts and connection errors are **not** broken links — they just mean the server didn\'t respond in our time window. Could be a slow server, an overloaded CDN, rate-limiting against our bot, or a transient network blip. Flagging these as broken produces false positives. If a URL is genuinely dead, it\'ll usually surface as `dns`, a 4xx/5xx, or a redirect loop. Skip timeout/connection entries silently.\n\n## Catalog of severity rules\n\n**High severity:**\n- `link-404` when `scope: "internal"`\n- `link-5xx` when `scope: "internal"`\n- `redirect-loop` (either scope)\n\n**Medium severity:**\n- `link-4xx-other` (internal)\n- `redirect-chain-long` (internal)\n- `link-404` (external) when `sourcePagesTotal >= 5`\n\n**Low severity:**\n- `link-404` (external) when `sourcePagesTotal < 5`\n- `link-dns-failure` (external)\n- `redirect-chain-long` (external)\n- `link-4xx-other` on external scope\n\n## Step 4 — Return a structured findings report\n\nReturn a single response with this shape (YAML preferred):\n\n```yaml\nspecialist: links\nsummary:\n pages_crawled: <pagesCrawled>\n pages_fetched: <pagesFetched>\n unique_link_targets: <links.length>\n targets_dropped_by_collect_cap: <linksSkipped>\n batches_checked: <n>\n batches_skipped_due_to_errors: <n>\n broken_links: <n> # internal + external\n long_redirect_chains: <n>\nfindings:\n - kind: <kind slug>\n severity: <low|medium|high>\n target:\n url: <full broken URL>\n route: <path if internal; otherwise the external host>\n scope: <internal | external>\n evidence: |\n - Status code / error: <e.g. `404 Not Found`, `DNS failure`, `redirect-loop`>\n - Redirect chain (if applicable): A → B → C → D → E\n - Found on pages (at time of detection):\n - /page-1\n - /page-2\n - (... up to 20 from `sourcePages`)\n - Total pages linking to this target: <sourcePagesTotal>\n impact: <1 sentence tailored to scope + kind>\n suggested_fix: |\n <actionable:>\n - If internal 404: update link to correct destination OR create 301 redirect\n - If internal 5xx: investigate server-side handler for the route (may be app bug)\n - If redirect chain: shorten to single-hop direct redirect in routing config\n - If external: update link to equivalent resource OR remove the mention\n - List likely files/components if you can infer (e.g. "appears on many pages — likely in a shared component like `app/components/Nav.tsx` or menu config")\n - ...\n```\n\nIf `collect_site_links` returned `error`, return a single `kind: site-unreachable` finding with the error in `evidence`.\n\nIf there are zero findings, return `findings: []` — that is the correct output for a healthy link graph.\n\n---\n\n## General rules\n\n- **Trust the scanner.** If `check_urls` reports a URL as broken or long-chain, emit a finding. Do not re-verify with other tools.\n- **Accept some flakiness.** A transient network blip may cause a false positive once. Downstream dedup across runs resolves it.\n- **Group by destination, not by origin.** One broken URL = one finding, even if linked on 50 pages. `collect_site_links` already returns it grouped this way.\n- **Prioritize internals.** Broken external links are the other site\'s responsibility; report but with lower severity.\n- **Never invent status codes.** Report what the scanner returned.\n',mo='# SEO Auditor\n\nYou are the **SEO Auditor**, a specialist agent focused on technical SEO hygiene.\n\n## Your mission\n\nAudit the on-page SEO health of target URLs and return a structured findings report. You focus on **technical SEO** (meta tags, structured data, canonicals, sitemap/robots, heading structure, indexability) — not editorial content or keyword strategy (those are the scope of other agents).\n\nYou are invoked as a sub-task by an orchestrator agent. Your job is to analyze and report. The orchestrator decides what to do with your findings (file issues, dedup against history, etc.).\n\n## Input (expect this in the prompt)\n\nThe orchestrator will pass per-site configuration. Expected fields:\n\n```yaml\nurls:\n - <url to audit>\n - <... one or more>\n```\n\nIf required fields are missing, return an error summary and stop — do not proceed with defaults or guess.\n\n## Available tools\n\n- **site-diagnostics MCP**: `audit_seo`, `fetch_page`, `render_page`, `crawl_site`\n\n---\n\n## Step 1 — Diagnostic\n\nFor each target URL:\n\n1. **Structured audit**: call `audit_seo({ url })`. It returns a structured report — use it as your primary source.\n2. **Raw HTML check**: use `fetch_page({ url })` to see the HTML served (important for crawlers that don\'t execute JS). Confirm critical meta tags are in the initial HTML, not only after hydration.\n3. **Post-render check**: use `render_page({ url })` to see the final DOM. Problems like canonical being overwritten by JS show up here.\n4. **Site structure checks** (only if you have permission for broad crawling, or via sampling): use `crawl_site` to identify orphan pages, canonical loops, or excessive navigation depth.\n5. **Always check**: `/robots.txt` and `/sitemap.xml` via `fetch_page`. These two are root-level and affect the whole site.\n\nOrganize findings into a list. Each finding must have:\n- `kind` (kebab-case slug, see catalog below)\n- `severity` (high | medium | low, see criteria below)\n- `target.url` and `target.route` (normalize: lowercase host, no query, no trailing slash except for `/`)\n- `evidence` (raw data: CSS selector, HTML snippet, observed value)\n- `impact` (1-2 sentences connecting to real metrics)\n- `suggested_fix` (actionable; include file/line if you can infer from framework patterns)\n\n## Step 1.5 — Validate page intent (critical; runs before classification)\n\nBefore you emit *any* finding about a page\'s title, meta description, headings, or indexability, you must answer one question: **did the site owner intend this URL to be a public, indexable page?**\n\nIf the answer is no, the observed "problems" are intentional configuration, not bugs. Reporting them wastes maintainer time and erodes this agent\'s credibility.\n\n### Three signals that the URL is NOT a real public page\n\nCheck these in order. Hitting any one of them means **skip all SEO findings for this URL** except legitimately site-wide problems (e.g. broken sitemap, broken robots.txt).\n\n**Signal 1 — Not in sitemap.** Fetch `/sitemap.xml` (and its child sitemaps, if it\'s a sitemap index). If the URL doesn\'t appear in any sitemap, the owner didn\'t declare it as public. Common on e-commerce platforms where routes like `/p`, `/c`, `/blog` are catchall or routing prefixes, not real pages.\n\n**Signal 2 — Explicit `noindex` + not in sitemap.** If the page serves `<meta name="robots" content="noindex*">` **and** isn\'t in the sitemap, this is a deliberate double-lock by the owner. Respect it. Do **not** flag `noindex-on-important-page` in this case.\n\n**Signal 3 — Title is the URL slug (template fallback).** If `<title>` equals the last path segment (e.g. `<title>blog</title>` for `/blog`, `<title>p</title>` for `/p`), the page is being rendered by a fallback template — nobody configured real content for this route. Skip.\n\n### Platform-specific catchalls (especially Brazilian e-commerce / VTEX / deco-cx)\n\nThese paths are routing prefixes, **not pages**. They may return HTTP 200 but are not meant to be indexable:\n\n- `/p`, `/c`, `/b` — VTEX product / category / brand route prefixes. Real pages live at `/<slug>/p`, `/<slug>/c`, etc. The bare prefixes are catchalls.\n- `/blog`, `/blogs`, `/editorial`, `/revista`, `/conteudo`, `/magazine`, `/noticias`, `/artigos` — common editorial prefixes. If the site doesn\'t have an editorial section, these hit a fallback.\n- `/search`, `/busca`, `/s` — search endpoints, not indexable pages.\n- `/departamento`, `/categoria` — category prefixes.\n- `/checkout`, `/cart`, `/carrinho`, `/login`, `/account`, `/minha-conta` — transactional/private routes. Intentionally `noindex`.\n\n### The "is this page actually important?" checklist\n\nBefore emitting a finding that calls a page "important" (like `noindex-on-important-page` or `title-missing` on anything critical):\n\n1. Is the URL in `/sitemap.xml`? → If no, skip.\n2. Does the page have substantive, unique content (not a fallback with title = URL slug)? → If no, skip.\n3. Is the path a known platform catchall (see list above)? → If yes, skip.\n\nOnly flag if all three pass.\n\n### What still counts as a finding even on non-indexable pages\n\nSite-wide SEO issues affect the whole domain and are worth reporting regardless of individual page intent:\n- `sitemap-missing` (the sitemap itself is broken)\n- `robots-blocking-important-path` (robots.txt blocks something that IS in the sitemap)\n- `structured-data-invalid` on pages that ARE in the sitemap\n- Duplicate titles / meta descriptions across pages that ARE in the sitemap\n\n## Catalog of `kind`\n\nTwo flavors of finding:\n\n- **Per-page** kinds — emitted when auditing a specific URL (e.g. `audit_seo` of a single page OR when your targeted inspection of one of the input URLs finds the issue). Marked **[intent-gated]** — must pass Step 1.5 before being emitted. Target is the specific URL.\n- **Aggregate** kinds — emitted once per site-wide pattern detected by `audit_seo`. Marked **[aggregate]**. Target is the site root (`/`). Evidence MUST include the affected URL sample from `audit_seo.issues[].sampleUrls`. One finding per aggregate kind per site.\n\n**High severity (per-page):**\n- `noindex-on-important-page` **[intent-gated]** — meta robots `noindex` on a page that IS in the sitemap and should be indexed\n- `canonical-pointing-to-wrong-url` **[intent-gated]** — canonical points to a different URL that isn\'t the canonical equivalent\n- `canonical-missing-on-paginated-or-faceted` **[intent-gated]** — pagination/filters without canonical\n- `title-missing` **[intent-gated]** — no `<title>` or empty on a page that IS in the sitemap\n- `structured-data-invalid` **[intent-gated]** — JSON-LD with syntax error or invalid schema.org\n\n**High severity (site-wide):**\n- `sitemap-missing` — `/sitemap.xml` returns 404 or 5xx\n- `robots-blocking-important-path` — `/robots.txt` disallows a path that IS in the sitemap\n- `broken-links-site-wide` **[aggregate]** — `audit_seo` reports broken outbound links across the site\n- `non-indexable-pages-site-wide` **[aggregate]** — `audit_seo` reports many non-indexable pages (note: some non-indexable pages are intentional catchalls — only high severity if the absolute count is large relative to `totalPagesCrawled`, e.g. > 30%)\n\n**Medium severity (per-page):**\n- `meta-description-missing` **[intent-gated]** — no `<meta name="description">` on a sitemap page the agent audited directly\n- `h1-missing` **[intent-gated]** — no `<h1>` on a sitemap page the agent audited directly\n- `h1-duplicate` **[intent-gated]** — multiple `<h1>` on a single page\n- `og-tags-missing` **[intent-gated]** — `og:title` and/or `og:description` missing\n- `structured-data-missing` **[intent-gated]** — page-type (product, article, etc.) without relevant JSON-LD\n- `title-too-long` **[intent-gated]** — `<title>` > 60 characters (truncation in SERP)\n- `title-too-short` **[intent-gated]** — `<title>` < 10 characters (rare; usually means template fallback — double-check page intent)\n- `meta-description-too-long` **[intent-gated]** — description > 160 characters\n\n**Medium severity (site-wide):**\n- `pages-missing-h1` **[aggregate]** — `audit_seo` reports N pages without an H1 tag\n- `pages-missing-meta-description` **[aggregate]** — `audit_seo` reports N pages without a meta description\n- `duplicate-titles` **[aggregate]** — multiple pages share the same `<title>`\n- `duplicate-meta-descriptions` **[aggregate]** — multiple pages share the same meta description\n- `duplicate-content` **[aggregate]** — multiple pages share substantially identical content\n- `broken-resources-site-wide` **[aggregate]** — broken images / scripts across the site\n- `hreflang-broken` — `hreflang` attribute with invalid value or broken reciprocity\n\n**Low severity (per-page):**\n- `meta-description-too-short` **[intent-gated]** — description < 50 characters\n- `og-image-missing` **[intent-gated]** — `og:image` missing\n- `heading-hierarchy-skipped` **[intent-gated]** — jumps from H1 to H3, etc.\n\n**Low severity (site-wide):**\n- `internal-link-using-absolute-url` — internal links with absolute URLs\n\n### Evidence requirements for aggregate kinds\n\nWhen emitting an `[aggregate]` kind, the `evidence` of the finding MUST include:\n\n1. **Total count** — from `audit_seo.issues[].count`\n2. **Sample URLs** — from `audit_seo.issues[].sampleUrls`. Render up to all 20 entries as a bulleted list. If `count > sampleUrls.length`, add a line like `(and <count - sampleUrls.length> more)`.\n3. **If `sampleUrls` is empty** (the tool didn\'t expose per-URL detail — happens for `broken-links-site-wide`, `duplicate-content`, `broken-resources-site-wide`), note it explicitly: `Note: audit_seo did not return per-URL detail for this issue type. A human will need to inspect the full audit_seo report or re-run with deeper crawling.`\n\nAn aggregate finding without either sample URLs or the note is **not actionable** and must not be emitted.\n\nTarget for aggregate kinds stays `target.url: https://<host>/` and `target.route: /`.\n\n## Step 2 — Return a structured findings report\n\nReturn a single response with this shape (YAML or JSON; YAML preferred for readability):\n\n```yaml\nspecialist: seo\nsummary:\n urls_audited: <n>\n findings: <n>\n diagnostic_failures: <n> # urls where audit tooling errored\nfindings:\n - kind: <kind slug>\n severity: <low|medium|high>\n target:\n url: <full URL>\n route: <normalized path>\n evidence: |\n <multi-line raw data: observed value, selector, HTML snippet, audit_seo output>\n impact: <1-2 sentences connecting to ranking/indexation/CTR>\n suggested_fix: <actionable; likely file/component, pseudo-code, correct value>\n - ...\n```\n\nIf a URL\'s diagnostic tooling errored entirely, emit a single `kind: diagnostic-failed` finding for that URL with the error in `evidence` instead of inventing data.\n\nIf there are zero findings, return `findings: []` — that is the correct output for healthy targets.\n\n---\n\n## General rules\n\n- **Never invent data in `evidence`.** If a tool failed, report it via `kind: diagnostic-failed` and skip the finding.\n- Always normalize `route`: lowercase host, no trailing slash (except for `/`), no query string, no fragment.\n- Your credibility is your currency. False positives erode trust — if you\'re 50% sure, don\'t emit a finding; investigate further or mark as `severity:low`.\n- **Never report a page as broken when it\'s a known catchall.** URLs like `/p`, `/c`, `/blog`, `/search`, `/busca` on e-commerce sites are routing prefixes, not pages. If the title is the URL slug and the page carries `noindex`, the owner is deliberately hiding it. That\'s correct behavior, not a bug.\n- **Sitemap is the ground truth for "is this page public?"**. When in doubt about whether to emit a finding on a URL, fall back to: "Is this URL in /sitemap.xml?" If not, default to silence.\n',fo=`# Performance Watchdog
|
|
1
|
+
import{s as ue,b as Bt,u as ui,z as kn,C as Nn,j as n,B as J,x as ne,r as w,o as qt,f as ct,l as He,G as rn,F as on,t as $,K as ve,e as L,Q as Vi,R as mi,c as z,a as _n,g as fi,d as pi,H as dt,J as Dt,E as hi,P as Cn,ap as gi,n as In,y as ps,aq as xi,ar as hs,as as bi,at as De,au as an,ao as yi,av as vi,aw as ln,ax as wi,ay as ji,az as Ai,aA as Si,w as ki,aB as Ni,aC as _i,aD as Ci,aE as Ii,aF as zn}from"./index-DeZ4lzZS.js";import{b as Me,a as Le,c as Fe,d as Ue,e as Kt,D as gs}from"./dialog-De2L-Mm9.js";import{S as Ri}from"./switch-Cym1wsqe.js";import{I as _e}from"./input-BbtZTtIz.js";import{b as Rn,u as Ti}from"./use-connection-DbYn3h0U.js";import{S as kt,u as qe,W as xs,g as Tn,i as Bn,c as Pi}from"./constants-DfKy425l.js";import{a as Ei,c as Di}from"./lean-canvas-recruit-modal-jh6XZJ5m.js";import{a as Pn}from"./use-navigate-to-agent-mAuF_Olj.js";import{a as Mi,A as En,L as Li,M as bs,N as ys,o as Fi,O as Ui,P as Oi,b as $i,Q as zi,H as vs}from"./agent-icon-D59FxHod.js";import{t as Bi,b as Yt,u as Dn,a as qi,g as Ki,h as Yi,w as Wi,A as Gi,i as Qi,j as Hi}from"./chat-context-Cmw2lxUK.js";import{b as Wt,a as Gt,c as Qt,D as Ht,d as Ji,e as Xi,f as Zi}from"./drawer-14Rn9Zur.js";import{u as Jt,T as xt,a as bt,b as yt,c as xn}from"./tooltip-CzbSAgXQ.js";import{I as ws}from"./integration-icon-CX-4HHYz.js";import{a as js,b as er,u as tr}from"./use-virtual-mcp-DNHpowZu.js";import{u as nr}from"./use-tasks-DYLdIMjk.js";import{r as sr,i as ir}from"./shell-layout-D-2Zmpp8.js";import{j as Xt,k as Ge,l as rr,s as Mn,t as or,m as ar,n as lr,o as cr,q as wt,u as dr,v as ur,c as Vr,S as mr,w as fr,x as qn}from"./pair-CqzVS7FB.js";import{S as Mt,u as Zt,P as bn,a as pr,b as hr,c as gr,E as xr,i as br,d as yr}from"./index-PaARzNIj.js";import{C as As}from"./collection-search-JYX4AEcX.js";import{u as vr,g as Ln,a as wr,c as jr,l as Lt}from"./tabs-CcbG9N2e.js";import{F as me,b as fe,c as Ne,d as pe,f as he,a as jt}from"./form-BpjQQfrk.js";import{c as Ee,e as cn,f as dn,D as Ss,a as ks,b as Ns,d as Ar}from"./dropdown-menu-B7VqWYeT.js";import{s as Sr,i as kr}from"./XClose-C4DzyMov.js";import{c as _s}from"./ZapSquare-DKEusvEW.js";import{i as Xe}from"./Check-C936sYYN.js";import{s as lt}from"./Star01-Dl0-D7bS.js";import{a as yn,t as Nr}from"./Tool01-zaCqe86u.js";import{i as Cs}from"./Lock01-CzswZlFM.js";import{s as Is}from"./Plus-CxH8Dky0.js";import{f as un,d as Rs,t as _r,g as Cr,b as Ir}from"./XCircle-CGvUuorr.js";import{i as pt}from"./X-CXRgDFum.js";import{i as Ts}from"./AlertCircle--wiBhyBy.js";import{S as Ps,a as Es,b as Ds,c as Ms,d as ot}from"./select-CACnwoTF.js";import{i as Rr}from"./RefreshCcw01-DUZtukjI.js";import{T as Ls,a as Ft}from"./toggle-group-CUoQjxXD.js";import{u as Tr,a as Pr}from"./use-ai-providers-CHzON1wD.js";import{m as en,g as Er,i as Dr,a as Fs,M as Mr,N as Lr}from"./select-model-Cajziskt.js";import{S as Fr}from"./index-YoMTmLrM.js";import{r as Us,l as vt}from"./types-DxewxD-a.js";import{t as Kn}from"./ChevronDown-D9-4IfgQ.js";import{p as Ur,q as Yn}from"./question-004-sINsf4GQ.js";import{g as Wn}from"./ai-providers-logos-DD3qZ33J.js";import{g as Or}from"./connection-slug-eyAPH6o3.js";import{u as Os,a as $s,g as $r,C as Vn}from"./connection-card-DpO7z97O.js";import{C as zr}from"./collection-tabs-lx0xcUeS.js";import{g as Br}from"./constants-BGzIm0WX.js";import{T as qr}from"./textarea-CxPy3ZTN.js";import{n as Pt}from"./Container-W30Qs4TE.js";import{c as Kr,i as It,a as Gn,E as Yr,p as Wr,b as Gr,d as Qr}from"./connection-form-helpers-YsDtNQ7E.js";import{u as Qn}from"./use-infinite-scroll-61_2Ymdd.js";import{u as Hr}from"./useSuspenseInfiniteQuery-B4Xtg3B8.js";import{g as Jr,e as Xr,a as Zr}from"./extract-connection-data-Dn80NCk3.js";import{B as Rt}from"./badge-CYxiHq4p.js";import{i as eo}from"./ChevronRight-DYzYB9o2.js";function to({open:t,onOpenChange:e,onCreated:s}){const{org:i}=ue(),{data:r}=Bt.useSession(),{stdioEnabled:o}=ui(),a=Jt(),d=Rn(),l=Os(),V=$s(l,"").items,c=kn({resolver:Nn(Kr),defaultValues:{title:"",description:null,icon:null,ui_type:"HTTP",connection_url:"",connection_token:null,npx_package:"",stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:[]}}),m=c.watch("ui_type"),p=c.watch("connection_url"),x=c.watch("npx_package"),g=It({uiType:m,connectionUrl:p??"",npxPackage:x??""})??Gn({uiType:m,connectionUrl:p??"",registryItems:V}),f=S=>{const v=S.trim();if(!v)return;const j=!!c.formState.dirtyFields.title,E=!!c.formState.dirtyFields.description,D=!!c.formState.dirtyFields.env_vars,I=k=>{if(k&&(!j&&!c.getValues("title").trim()&&k.title&&c.setValue("title",k.title,{shouldDirty:!1}),!E&&!(c.getValues("description")??"").trim()&&k.description&&c.setValue("description",k.description,{shouldDirty:!1}),!D&&k.envVarKeys?.length)){const N=c.getValues("env_vars")??[],R=new Set(N.map(T=>T.key)),M=k.envVarKeys.filter(T=>!R.has(T));M.length>0&&c.setValue("env_vars",[...N,...M.map(T=>({key:T,value:""}))],{shouldDirty:!0})}},P=Wr(v);if(P&&o){c.setValue("ui_type","NPX",{shouldDirty:!0}),c.setValue("npx_package",P.packageName,{shouldDirty:!0}),c.setValue("connection_url","",{shouldDirty:!0}),c.setValue("connection_token",null,{shouldDirty:!0}),I(It({uiType:"NPX",npxPackage:P.packageName}));return}if(v.startsWith("http://")||v.startsWith("https://")){const k=m==="HTTP"||m==="SSE"||m==="Websocket"?m:"HTTP";c.setValue("ui_type",k,{shouldDirty:!0}),c.setValue("connection_url",v,{shouldDirty:!0}),I(It({uiType:k,connectionUrl:v})??Gn({uiType:k,connectionUrl:v,registryItems:V}));return}m==="NPX"&&I(It({uiType:"NPX",npxPackage:v}))},b=S=>{S||c.reset(),e(S)},h=async S=>{let v,j=null,E=null,D=null;S.ui_type==="NPX"?(v="STDIO",j="",D=Gr(S.npx_package||"",S.env_vars||[])):S.ui_type==="STDIO"?(v="STDIO",j="",D=Qr(S.stdio_command||"",S.stdio_args||"",S.stdio_cwd,S.env_vars||[])):(v=S.ui_type,j=S.connection_url||"",E=S.connection_token||null);const I=Br("conn");try{await d.create.mutateAsync({id:I,title:S.title,description:S.description||null,connection_type:v,connection_url:j,connection_token:E,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),created_by:r?.user?.id||"system",organization_id:i.id,icon:S.icon??null,app_name:null,app_id:null,connection_headers:D,oauth_config:null,configuration_state:null,metadata:null,tools:null,bindings:null,status:"inactive"}),c.reset(),e(!1),s?.(I)}catch{ne.error("Failed to create connection")}},y="Create Connection",A="Create a custom connection in your organization. Fill in the details below.",_=c.formState.isSubmitting?"Saving...":"Create Connection",C=n.jsxs("div",{className:"grid gap-4",children:[n.jsx(me,{control:c.control,name:"ui_type",render:({field:S})=>n.jsxs(fe,{children:[n.jsx(Ne,{children:"Type *"}),n.jsxs(Ps,{value:S.value,onValueChange:S.onChange,children:[n.jsx(pe,{children:n.jsx(Es,{children:n.jsx(Ds,{})})}),n.jsxs(Ms,{children:[n.jsx(ot,{value:"HTTP",children:n.jsxs("span",{className:"flex items-center gap-2",children:[n.jsx(lt,{className:"w-4 h-4"}),"HTTP"]})}),n.jsx(ot,{value:"SSE",children:n.jsxs("span",{className:"flex items-center gap-2",children:[n.jsx(lt,{className:"w-4 h-4"}),"SSE"]})}),n.jsx(ot,{value:"Websocket",children:n.jsxs("span",{className:"flex items-center gap-2",children:[n.jsx(lt,{className:"w-4 h-4"}),"Websocket"]})}),o&&n.jsxs(n.Fragment,{children:[n.jsx(ot,{value:"NPX",children:n.jsxs("span",{className:"flex items-center gap-2",children:[n.jsx(Pt,{className:"w-4 h-4"}),"NPX Package"]})}),n.jsx(ot,{value:"STDIO",children:n.jsxs("span",{className:"flex items-center gap-2",children:[n.jsx(Mi,{className:"w-4 h-4"}),"Custom Command"]})})]})]})]}),n.jsx(he,{})]})}),m==="NPX"&&n.jsx(me,{control:c.control,name:"npx_package",render:({field:S})=>n.jsxs(fe,{children:[n.jsx(Ne,{children:"NPM Package *"}),n.jsx(pe,{children:n.jsx(_e,{placeholder:"@perplexity-ai/mcp-server",...S,value:S.value??"",onPaste:v=>{const j=v.clipboardData.getData("text");j&&(v.preventDefault(),c.setValue("npx_package",j.trim(),{shouldDirty:!0}),f(j))},onBlur:v=>{f(v.target.value),S.onBlur()}})}),n.jsx(he,{})]})}),m==="STDIO"&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"grid grid-cols-2 gap-4 items-start",children:[n.jsx(me,{control:c.control,name:"stdio_command",render:({field:S})=>n.jsxs(fe,{children:[n.jsx(Ne,{children:"Command *"}),n.jsx(pe,{children:n.jsx(_e,{placeholder:"node, bun, python...",...S,value:S.value??""})}),n.jsx(he,{})]})}),n.jsx(me,{control:c.control,name:"stdio_args",render:({field:S})=>n.jsxs(fe,{children:[n.jsx(Ne,{children:"Arguments"}),n.jsx(pe,{children:n.jsx(_e,{placeholder:"arg1 arg2 --flag value",...S,value:S.value??""})}),n.jsx(he,{})]})})]}),n.jsx(me,{control:c.control,name:"stdio_cwd",render:({field:S})=>n.jsxs(fe,{children:[n.jsx(Ne,{children:"Working Directory"}),n.jsx(pe,{children:n.jsx(_e,{placeholder:"/path/to/project (optional)",...S,value:S.value??""})}),n.jsx("p",{className:"text-xs text-muted-foreground",children:"Directory where the command will be executed"}),n.jsx(he,{})]})})]}),(m==="NPX"||m==="STDIO")&&n.jsx(me,{control:c.control,name:"env_vars",render:({field:S})=>n.jsxs(fe,{children:[n.jsx(Ne,{children:"Environment Variables"}),n.jsx(pe,{children:n.jsx(Yr,{value:S.value??[],onChange:S.onChange})}),n.jsx(he,{})]})}),m!=="NPX"&&m!=="STDIO"&&n.jsxs(n.Fragment,{children:[n.jsx(me,{control:c.control,name:"connection_url",render:({field:S})=>n.jsxs(fe,{children:[n.jsx(Ne,{children:"URL *"}),n.jsx(pe,{children:n.jsx(_e,{placeholder:"https://example.com/mcp",...S,value:S.value??"",onPaste:v=>{const j=v.clipboardData.getData("text");j&&(v.preventDefault(),c.setValue("connection_url",j.trim(),{shouldDirty:!0}),f(j))},onBlur:v=>{f(v.target.value),S.onBlur()}})}),n.jsx(he,{})]})}),n.jsx(me,{control:c.control,name:"connection_token",render:({field:S})=>n.jsxs(fe,{children:[n.jsx(Ne,{children:g?.token?.label??"Token (optional)"}),n.jsx(pe,{children:n.jsx(_e,{type:"password",placeholder:g?.token?.placeholder??"Bearer token or API key",className:"ph-no-capture",...S,value:S.value??""})}),g?.token?.helperText&&n.jsxs("p",{className:"text-xs text-muted-foreground",children:[g.token.helperText,g.id==="github"&&n.jsxs(n.Fragment,{children:[" ","·"," ",n.jsx("a",{className:"text-foreground underline underline-offset-4 hover:text-foreground/80",href:"https://github.com/settings/personal-access-tokens",target:"_blank",rel:"noreferrer",children:"Open GitHub PAT settings"})]})]}),n.jsx(he,{})]})})]}),n.jsx(me,{control:c.control,name:"title",render:({field:S})=>n.jsxs(fe,{children:[n.jsx(Ne,{children:"Name *"}),n.jsx(pe,{children:n.jsx(_e,{placeholder:"My Connection",...S})}),n.jsx(he,{})]})}),n.jsx(me,{control:c.control,name:"description",render:({field:S})=>n.jsxs(fe,{children:[n.jsx(Ne,{children:"Description"}),n.jsx(pe,{children:n.jsx(qr,{placeholder:"A brief description of this connection",rows:3,...S,value:S.value??""})}),n.jsx(he,{})]})})]});return a?n.jsx(Wt,{open:t,onOpenChange:b,children:n.jsxs(Gt,{className:"max-h-[90vh]",children:[n.jsx(Qt,{className:"pb-2",children:n.jsxs("div",{className:"flex items-start justify-between gap-4",children:[n.jsxs("div",{className:"flex-1 text-left",children:[n.jsx(Ht,{children:y}),n.jsx(Ji,{className:"mt-1",children:A})]}),n.jsx(Xi,{asChild:!0,children:n.jsx(J,{variant:"ghost",size:"icon",className:"shrink-0 -mt-1",children:n.jsx(Sr,{size:16})})})]})}),n.jsx(jt,{...c,children:n.jsxs("form",{onSubmit:c.handleSubmit(h),children:[n.jsx("div",{className:"overflow-y-auto px-4 pb-4",children:C}),n.jsx(Zi,{children:n.jsx(J,{type:"submit",disabled:c.formState.isSubmitting,className:"w-full",children:_})})]})})]})}):n.jsx(Me,{open:t,onOpenChange:b,children:n.jsxs(Le,{className:"sm:max-w-[525px]",children:[n.jsxs(Fe,{children:[n.jsx(Ue,{children:y}),n.jsx(Kt,{children:A})]}),n.jsx(jt,{...c,children:n.jsxs("form",{onSubmit:c.handleSubmit(h),children:[n.jsx("div",{className:"py-4",children:C}),n.jsxs(gs,{children:[n.jsx(J,{type:"button",variant:"outline",onClick:()=>b(!1),children:"Cancel"}),n.jsx(J,{type:"submit",disabled:c.formState.isSubmitting,className:"min-w-40",children:_})]})]})})]})})}function no(t){const e=L.c(73),{mode:s,agentId:i,addedConnectionIds:r,onAdd:o,onCloneAndAdd:a,onConnectAndAdd:d,connectingItemId:l,search:u,onCreateConnection:V,onBrowseNavigate:c,defaultTab:m}=t,p=s===void 0?"add":s,x=m===void 0?"connected":m,{org:g}=ue(),f=w.useDeferredValue(u),b=u!==f,h=f.trim().toLowerCase();let y;e[0]!==x?(y=U=>U??x,e[0]=x,e[1]=y):y=e[1];const[A,_]=Vi(mi.connectionsTab(g.slug)+(x==="all"?":home-modal":":agent-modal"),y);let C;e[2]!==A||e[3]!==_?(C=U=>{U!==A&&$("connections_dialog_tab_changed",{to_tab:U}),_(U)},e[2]=A,e[3]=_,e[4]=C):C=e[4];const S=C;let v;e[5]!==g.id||e[6]!==g.slug?(v={connectionId:kt,orgId:g.id,orgSlug:g.slug},e[5]=g.id,e[6]=g.slug,e[7]=v):v=e[7];const j=qe(v);let E,D,I;if(e[8]!==j||e[9]!==f||e[10]!==g.id){I=f?.trim()?{operator:"or",conditions:[{field:["title"],operator:"contains",value:f.trim()},{field:["description"],operator:"contains",value:f.trim()}]}:void 0;const U={...I&&{where:I},orderBy:[{field:["updated_at"],direction:"asc"}],limit:100,offset:0},X=JSON.stringify(U);D=Hr,E=ve.collectionListInfinite(j,g.id,"","CONNECTIONS",X),e[8]=j,e[9]=f,e[10]=g.id,e[11]=E,e[12]=D,e[13]=I}else E=e[11],D=e[12],I=e[13];let P;e[14]!==j||e[15]!==I?(P=async U=>{const{pageParam:X}=U,Se=X===void 0?0:X;return(await j.callTool({name:"COLLECTION_CONNECTIONS_LIST",arguments:{...I&&{where:I},orderBy:[{field:["updated_at"],direction:"asc"}],limit:100,offset:Se}})).structuredContent},e[14]=j,e[15]=I,e[16]=P):P=e[16];let k;e[17]!==E||e[18]!==P?(k={queryKey:E,queryFn:P,initialPageParam:0,getNextPageParam:lo,staleTime:3e4},e[17]=E,e[18]=P,e[19]=k):k=e[19];const{data:N,fetchNextPage:R,hasNextPage:M,isFetchingNextPage:T}=D(k),F=N?.pages.flatMap(ao)??[],O=$r(F),q=new Set(F.filter(oo).map(ro)),K=Os(),H=$s(K,f),Z=Qn(H.loadMore,H.hasMore,H.isLoadingMore),Q=Qn(R,M??!1,T),W=A==="all"||!!h,ie=W?H.items.filter(U=>{const X=Jr(U);if(X&&q.has(X))return!1;if(!h)return!0;const Se=U._meta?.["mcp.mesh"];return[U.title,U.description,U.name,U.server?.title,U.server?.description,U.server?.name,Se?.friendly_name,Se?.friendlyName].filter(Boolean).join(" ").toLowerCase().includes(h)}):[],Y=ie.filter(io),ee=ie.filter(so);let te;e[20]!==r?(te=U=>U.some(X=>r.has(X.id)),e[20]=r,e[21]=te):te=e[21];const se=te;let ae;e[22]!==r||e[23]!==i||e[24]!==l||e[25]!==se||e[26]!==p||e[27]!==o||e[28]!==c||e[29]!==a?(ae=(U,X,Se,ke,Te)=>{const ze=se(Te),Be=Te.find(Pe=>!r.has(Pe.id)),le=Te[0];if(p==="browse"){const Pe=Or(le);return n.jsx(Vn,{connection:{title:X,icon:Se,description:Te.length>1?`${Te.length} instances`:ke??void 0},fallbackIcon:n.jsx(Pt,{}),headerActionsAlwaysVisible:!0,headerActions:n.jsxs(Rt,{variant:"secondary",className:"text-xs gap-1 font-normal",children:[n.jsx(Xe,{size:11})," Connected"]}),onClick:()=>{$("connection_browse_clicked",{app_name:le.app_name??null,connection_id:le.id,instances_count:Te.length}),c?.(Pe)}},U)}return n.jsx(Vn,{connection:{title:X,icon:Se,description:ke},fallbackIcon:n.jsx(Pt,{}),headerActionsAlwaysVisible:!0,headerActions:n.jsxs("div",{className:"flex items-center gap-1.5",children:[ze&&n.jsxs(Rt,{variant:"secondary",className:"text-xs gap-1 font-normal",children:[n.jsx(Xe,{size:11})," Added"]}),n.jsx(J,{variant:"outline",size:"sm",className:"h-7 px-3 text-xs font-medium",disabled:l!==null,onClick:Pe=>{Pe.stopPropagation(),Be?($("connection_add_clicked",{action:"use_existing",app_name:le.app_name??null,connection_id:Be.id}),i&&$("agent_connection_attached",{agent_id:i,connection_id:Be.id,app_name:le.app_name??null,mode:"existing"}),o(Be.id)):($("connection_add_clicked",{action:"clone",app_name:le.app_name??null,base_connection_id:le.id}),a(le))},children:"Add"})]})},U)},e[22]=r,e[23]=i,e[24]=l,e[25]=se,e[26]=p,e[27]=o,e[28]=c,e[29]=a,e[30]=ae):ae=e[30];const re=ae;let oe;e[31]!==l||e[32]!==p||e[33]!==d?(oe=U=>{const X=U._meta?.["mcp.mesh"],Se=X?.friendlyName||X?.friendly_name||U.server?.title||U.title||U.server?.name||U.name||U.id||"",ke=U.server?.description||U.description||null,Te=U.server?.icons?.[0]?.src||Zr(U.server?.repository)||null,ze=X?.official===!0,Be=X?.verified===!0,le=X?.owner==="deco";return n.jsx(Vn,{connection:{title:Se,description:ke,icon:Te},fallbackIcon:n.jsx(Pt,{}),headerActionsAlwaysVisible:!0,headerActions:n.jsxs("div",{className:"flex items-center gap-1.5",children:[le&&n.jsxs(xt,{children:[n.jsx(bt,{asChild:!0,children:n.jsx("span",{className:"inline-flex items-center justify-center size-5 rounded-md bg-muted shrink-0",children:n.jsx("img",{src:"/logos/deco logo.svg",alt:"Made by Deco",className:"size-3"})})}),n.jsx(yt,{children:"Built and maintained by Deco"})]}),!le&&ze&&n.jsxs(xt,{children:[n.jsx(bt,{asChild:!0,children:n.jsx(Rt,{variant:"outline",size:"icon",children:n.jsx(un,{})})}),n.jsx(yt,{children:"Built and maintained by the official vendor"})]}),!le&&!ze&&Be&&n.jsxs(xt,{children:[n.jsx(bt,{asChild:!0,children:n.jsx(Rt,{variant:"outline",size:"icon",children:n.jsx(un,{})})}),n.jsx(yt,{children:"Verified by the Deco team"})]}),n.jsx(J,{variant:"outline",size:"sm",className:"h-7 px-3 text-xs font-medium",disabled:l!==null,onClick:Pe=>{Pe.stopPropagation(),$("connection_add_clicked",{action:"connect_new",registry_item_id:U.id,app_name:X?.friendlyName||U.server?.name||U.name||null}),d(U)},children:l===U.id?n.jsx(He,{size:14,className:"animate-spin"}):p==="browse"?"Connect":"Add"})]})},`catalog-${U.id}`)},e[31]=l,e[32]=p,e[33]=d,e[34]=oe):oe=e[34];const ce=oe,ge=!h&&n.jsxs("div",{className:"flex items-center justify-between px-5 py-3 border-b border-border shrink-0",children:[n.jsx(zr,{tabs:[{id:"all",label:"All"},{id:"connected",label:"Connected"}],activeTab:A,onTabChange:U=>S(U)}),n.jsxs(J,{variant:"outline",size:"sm",className:"h-7 px-2 text-sm",onClick:()=>{$("connections_dialog_custom_clicked"),V()},children:[n.jsx(Is,{size:12}),"Custom Connection"]})]}),G=b&&"opacity-50 pointer-events-none";let de;e[35]!==G?(de=z("flex-1 overflow-auto p-5 transition-opacity duration-150",G),e[35]=G,e[36]=de):de=e[36];const Ze="grid grid-cols-[repeat(auto-fill,minmax(260px,1fr))] gap-4";let Oe;e[37]!==re?(Oe=U=>{if(U.type==="group")return re(U.key,U.title,U.icon,null,U.connections);const X=U.connection;return re(X.id,X.title,X.icon,X.description??null,[X])},e[37]=re,e[38]=Oe):Oe=e[38];const Ce=O.map(Oe);let xe;e[39]!==Q?(xe=n.jsx("div",{ref:Q,className:"col-span-full h-1"}),e[39]=Q,e[40]=xe):xe=e[40];let be;e[41]!==T?(be=T&&n.jsx("div",{className:"col-span-full flex justify-center py-6",children:n.jsx(He,{size:24,className:"animate-spin text-muted-foreground"})}),e[41]=T,e[42]=be):be=e[42];const Ie=W&&Y.length>0&&n.jsxs("div",{className:"col-span-full flex items-center gap-2 mt-2",children:[n.jsx(un,{size:13,className:"text-muted-foreground shrink-0"}),n.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Verified"}),n.jsx("div",{className:"flex-1 h-px bg-border"})]}),Ke=W&&Y.map(ce),Ve=W&&ee.length>0&&n.jsxs("div",{className:"col-span-full flex items-center gap-2 mt-2",children:[n.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"All connections"}),n.jsx("div",{className:"flex-1 h-px bg-border"})]}),ut=W&&ee.map(ce);let we;e[43]!==Z||e[44]!==K||e[45]!==W?(we=W&&K.length>0&&n.jsx("div",{ref:Z,className:"col-span-full h-1"}),e[43]=Z,e[44]=K,e[45]=W,e[46]=we):we=e[46];let Re;e[47]!==H.isLoadingMore||e[48]!==W?(Re=W&&H.isLoadingMore&&n.jsx("div",{className:"col-span-full flex justify-center py-6",children:n.jsx(He,{size:24,className:"animate-spin text-muted-foreground"})}),e[47]=H.isLoadingMore,e[48]=W,e[49]=Re):Re=e[49];let je;e[50]!==Ce||e[51]!==xe||e[52]!==be||e[53]!==Ie||e[54]!==Ke||e[55]!==Ve||e[56]!==ut||e[57]!==we||e[58]!==Re?(je=n.jsxs("div",{className:Ze,children:[Ce,xe,be,Ie,Ke,Ve,ut,we,Re]}),e[50]=Ce,e[51]=xe,e[52]=be,e[53]=Ie,e[54]=Ke,e[55]=Ve,e[56]=ut,e[57]=we,e[58]=Re,e[59]=je):je=e[59];let Ae;e[60]!==A||e[61]!==O.length||e[62]!==ee||e[63]!==u||e[64]!==Y?(Ae=O.length===0&&Y.length===0&&ee.length===0&&n.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:u?`No connections match "${u}"`:A==="connected"?"No connections yet":"No connections available"}),e[60]=A,e[61]=O.length,e[62]=ee,e[63]=u,e[64]=Y,e[65]=Ae):Ae=e[65];let ye;e[66]!==de||e[67]!==je||e[68]!==Ae?(ye=n.jsxs("div",{className:de,children:[je,Ae]}),e[66]=de,e[67]=je,e[68]=Ae,e[69]=ye):ye=e[69];let $e;return e[70]!==ge||e[71]!==ye?($e=n.jsxs(n.Fragment,{children:[ge,ye]}),e[70]=ge,e[71]=ye,e[72]=$e):$e=e[72],$e}function so(t){return!t.verified&&!t._meta?.["mcp.mesh"]?.verified&&!t.meta?.verified}function io(t){return t.verified||t._meta?.["mcp.mesh"]?.verified||t.meta?.verified}function ro(t){return t.app_name}function oo(t){return t.app_name}function ao(t){return t?.items??[]}function lo(t,e){if(t?.hasMore)return e.reduce(co,0)}function co(t,e){return t+(e?.items?.length??0)}function uo({open:t,onOpenChange:e,defaultTab:s,initialSearch:i="",...r}){const o=r.mode??"add",a="agentId"in r?r.agentId:void 0,d="addedConnectionIds"in r?r.addedConnectionIds??new Set:new Set,l="onAdd"in r&&r.onAdd?r.onAdd:v=>{},u=(v,j,E)=>{a&&$("agent_connection_attached",{agent_id:a,connection_id:v,app_name:j,mode:E})},[V,c]=w.useState(null),[m,p]=w.useState(i),[x,g]=w.useState(!1),{org:f}=ue(),{data:b}=Bt.useSession(),h=Rn(),y=qt(),A=ct(),_=v=>{e(!1),A({to:"/$org/settings/connections/$appSlug",params:{org:f.slug,appSlug:v}})},C=async v=>{c(v.app_name??v.id);try{const E=`${v.title.replace(/\s*\(\d+\)\s*$/,"")} (${Date.now().toString(36).slice(-4)})`,I=(await h.create.mutateAsync({title:E,description:v.description??null,connection_type:v.connection_type,connection_url:v.connection_url??null,connection_token:null,icon:v.icon??null,app_name:v.app_name??null,app_id:v.app_id??null,connection_headers:v.connection_headers??null})).id,P=new URL(`/api/${f.slug}/mcp/${I}`,window.location.origin),k=await rn({url:P.href,token:null,orgId:f.id});if(k.supportsOAuth&&!k.isAuthenticated){const{token:N,tokenInfo:R,error:M}=await on({connectionId:I,orgSlug:f.slug,scope:"offline_access"});if(M||!N){$("connection_oauth_failed",{connection_id:I,flow:"clone",error:M??"no_token"}),ne.error(`Authentication failed: ${M??"no token received"}`),await h.delete.mutateAsync(I);return}if($("connection_oauth_succeeded",{connection_id:I,flow:"clone"}),R)try{(await fetch(`/api/${f.slug}/connections/${I}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:R.accessToken,refreshToken:R.refreshToken,expiresIn:R.expiresIn,scope:R.scope,clientId:R.clientId,clientSecret:R.clientSecret,tokenEndpoint:R.tokenEndpoint})})).ok?await h.update.mutateAsync({id:I,data:{}}):await h.update.mutateAsync({id:I,data:{connection_token:N}})}catch{await h.update.mutateAsync({id:I,data:{connection_token:N}})}else await h.update.mutateAsync({id:I,data:{connection_token:N}});await y.invalidateQueries({queryKey:ve.isMCPAuthenticated(P.href,null)})}u(I,v.app_name??null,"clone"),l(I)}catch(j){console.error("Failed to add connection:",j),ne.error("Failed to add connection")}finally{c(null)}},S=async v=>{if(!(!f||!b?.user?.id)){c(v.id);try{const j=Xr(v,f.id,b.user.id,{remoteIndex:0}),E=j.connection_type==="STDIO",D=!!j.connection_url,I=E&&j.connection_headers&&typeof j.connection_headers=="object"&&"command"in j.connection_headers;if(!D&&!I){ne.error("This MCP Server cannot be connected: no connection method available"),c(null);return}const{id:P}=await h.create.mutateAsync(j),k=new URL(`/api/${f.slug}/mcp/${P}`,window.location.origin),N=await rn({url:k.href,token:null,orgId:f.id});if(N.supportsOAuth&&!N.isAuthenticated){const{token:R,tokenInfo:M,error:T}=await on({connectionId:P,orgSlug:f.slug,scope:"offline_access"});if(T||!R){$("connection_oauth_failed",{connection_id:P,flow:"connect_new",error:T??"no_token"}),ne.error(`Authentication failed: ${T??"no token received"}`),u(P,j.app_name??null,"new"),l(P);return}if($("connection_oauth_succeeded",{connection_id:P,flow:"connect_new"}),M)try{(await fetch(`/api/${f.slug}/connections/${P}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:M.accessToken,refreshToken:M.refreshToken,expiresIn:M.expiresIn,scope:M.scope,clientId:M.clientId,clientSecret:M.clientSecret,tokenEndpoint:M.tokenEndpoint})})).ok?await h.update.mutateAsync({id:P,data:{}}):await h.update.mutateAsync({id:P,data:{connection_token:R}})}catch{await h.update.mutateAsync({id:P,data:{connection_token:R}})}else await h.update.mutateAsync({id:P,data:{connection_token:R}});await y.invalidateQueries({queryKey:ve.isMCPAuthenticated(k.href,null)}),ne.success("Connected and authenticated")}else ne.success("Connected");u(P,j.app_name??null,"new"),l(P)}catch(j){console.error("Failed to connect:",j),ne.error("Failed to connect")}finally{c(null)}}};return n.jsxs(Me,{open:t,onOpenChange:e,children:[n.jsxs(Le,{className:"sm:max-w-5xl h-[85vh] max-h-[85vh] flex flex-col p-0 gap-0 overflow-hidden w-[95vw]",children:[n.jsx(Fe,{className:"px-6 pt-5 pb-0 shrink-0",children:n.jsx(Ue,{className:"text-base font-semibold",children:o==="browse"?"Connections":"Add Connection"})}),n.jsx("div",{className:"pt-3 shrink-0",children:n.jsx(As,{value:m,onChange:p,placeholder:"Search connections..."})}),n.jsx(w.Suspense,{fallback:n.jsx("div",{className:"flex-1 flex items-center justify-center",children:n.jsx(He,{size:24,className:"animate-spin text-muted-foreground"})}),children:n.jsx(no,{mode:o,agentId:a,addedConnectionIds:d,onAdd:l,onCloneAndAdd:C,onConnectAndAdd:S,connectingItemId:V,search:m,onCreateConnection:()=>g(!0),onBrowseNavigate:_,defaultTab:s})})]}),n.jsx(to,{open:x,onOpenChange:g,onCreated:async v=>{g(!1);const j=new URL(`/api/${f.slug}/mcp/${v}`,window.location.origin),E=await rn({url:j.href,token:null,orgId:f.id});if(E.supportsOAuth&&!E.isAuthenticated){const{token:D,tokenInfo:I,error:P}=await on({connectionId:v,orgSlug:f.slug,scope:"offline_access"});if(P||!D){$("connection_oauth_failed",{connection_id:v,flow:"custom_create",error:P??"no_token"}),ne.error(`Authentication failed: ${P??"no token received"}`),await h.delete.mutateAsync(v);return}if($("connection_oauth_succeeded",{connection_id:v,flow:"custom_create"}),I)try{(await fetch(`/api/${f.slug}/connections/${v}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:I.accessToken,refreshToken:I.refreshToken,expiresIn:I.expiresIn,scope:I.scope,clientId:I.clientId,clientSecret:I.clientSecret,tokenEndpoint:I.tokenEndpoint})})).ok?await h.update.mutateAsync({id:v,data:{}}):await h.update.mutateAsync({id:v,data:{connection_token:D}})}catch{await h.update.mutateAsync({id:v,data:{connection_token:D}})}else await h.update.mutateAsync({id:v,data:{connection_token:D}});await y.invalidateQueries({queryKey:ve.isMCPAuthenticated(j.href,null)})}u(v,null,"custom"),l(v),e(!1)}})]})}const Vo='# Broken Link Finder\n\nYou are the **Broken Link Finder**, a specialist agent focused on the health of the site\'s link structure.\n\n## Your mission\n\nDiscover and track broken links and long redirect chains. You are invoked as a sub-task by an orchestrator agent — your job is to detect link health and return a structured findings report. The orchestrator decides what to do with your findings (file issues, dedup, etc.).\n\nYou are **mechanical**: collect → check → classify → emit findings. Leave subjective judgment to other agents.\n\n## Input (expect this in the prompt)\n\nThe orchestrator will pass per-site configuration. Expected fields:\n\n```yaml\nsite_root_url: <https://example.com>\nmax_pages: <optional integer, default 100, max 200>\ncheck_external: <optional bool, default false>\n```\n\nIf required fields are missing (`site_root_url`), return an error summary and stop — do not proceed with defaults or guess.\n\n## Available tools\n\n- **site-diagnostics MCP**:\n - `collect_site_links` — discovers all unique outbound link targets across the site and returns them with source-page attribution. Does NOT check status.\n - `check_urls` — takes a batch of URLs (max 100 per call) and returns their HTTP status, error kind, and redirect chains.\n\n---\n\n## Step 1 — Collect link targets (one call)\n\nCall `collect_site_links` once to get the full deduplicated list of outbound link targets and their source pages:\n\n```\ncollect_site_links({\n url: <site_root_url from input>,\n maxPages: <max_pages from input, default 100>,\n checkExternal: <check_external from input, default false>\n})\n```\n\nThis returns:\n- `links`: array of `{ targetUrl, scope: "internal"|"external", sourcePages, sourcePagesTotal }` — **each target appears exactly once**\n- Metadata: `pagesCrawled`, `pagesFetched`, `linksSkipped`, optional `error`\n\n**If `result.error` is set**, the scan failed at the root (e.g. site unreachable). Return a single finding with `kind: site-unreachable` and the error in `evidence`. Then stop.\n\nKeep the `links` array in memory — you\'ll need it in Step 3 for classification and source attribution.\n\n## Step 2 — Check the targets (batched calls)\n\nExtract `targetUrl` from each entry in `links`. Slice the resulting URL list into **disjoint batches of up to 100 URLs** and call `check_urls` on each batch:\n\n```\ncheck_urls({ urls: batch_of_100_urls })\n```\n\nCollect every batch\'s `results` entries into a single flat array. Order doesn\'t matter — you\'ll join back by `targetUrl`.\n\n**Rules for this step:**\n- Slice deterministically (e.g. consecutive slices of 100) so batches are disjoint. Do not pass the same URL in two batches.\n- Call `check_urls` sequentially or in parallel — your choice. The tool is idempotent.\n- If a single `check_urls` call errors entirely, skip that batch and continue with the others. Note the skipped count in the wrap-up summary.\n\n## Step 3 — Classify each finding\n\nFor every target with a check result, join the `collect_site_links` entry (for `scope`, `sourcePages`, `sourcePagesTotal`) with the `check_urls` entry (for `status`, `errorKind`, `chain`, `hops`).\n\nA finding is emitted for:\n- **Broken**: `status >= 400` OR `status === 0`\n- **Long redirect chain**: `hops > 3` (even if the final status is 2xx)\n\nOther targets (2xx, short-chain redirects) produce no finding.\n\nMap check result → `kind`:\n\n| Check result | `kind` |\n|---|---|\n| `status: 404` | `link-404` |\n| `status: 4xx` (not 404) | `link-4xx-other` |\n| `status: 5xx` | `link-5xx` |\n| `status: 0`, `errorKind: "dns"` | `link-dns-failure` |\n| `status: 0`, `errorKind: "redirect-loop"` | `redirect-loop` |\n| `hops > 3` (success final status) | `redirect-chain-long` |\n| `status: 0`, `errorKind: "timeout"` or `"connection"` | **skip — no finding** |\n\n**Important**: timeouts and connection errors are **not** broken links — they just mean the server didn\'t respond in our time window. Could be a slow server, an overloaded CDN, rate-limiting against our bot, or a transient network blip. Flagging these as broken produces false positives. If a URL is genuinely dead, it\'ll usually surface as `dns`, a 4xx/5xx, or a redirect loop. Skip timeout/connection entries silently.\n\n## Catalog of severity rules\n\n**High severity:**\n- `link-404` when `scope: "internal"`\n- `link-5xx` when `scope: "internal"`\n- `redirect-loop` (either scope)\n\n**Medium severity:**\n- `link-4xx-other` (internal)\n- `redirect-chain-long` (internal)\n- `link-404` (external) when `sourcePagesTotal >= 5`\n\n**Low severity:**\n- `link-404` (external) when `sourcePagesTotal < 5`\n- `link-dns-failure` (external)\n- `redirect-chain-long` (external)\n- `link-4xx-other` on external scope\n\n## Step 4 — Return a structured findings report\n\nReturn a single response with this shape (YAML preferred):\n\n```yaml\nspecialist: links\nsummary:\n pages_crawled: <pagesCrawled>\n pages_fetched: <pagesFetched>\n unique_link_targets: <links.length>\n targets_dropped_by_collect_cap: <linksSkipped>\n batches_checked: <n>\n batches_skipped_due_to_errors: <n>\n broken_links: <n> # internal + external\n long_redirect_chains: <n>\nfindings:\n - kind: <kind slug>\n severity: <low|medium|high>\n target:\n url: <full broken URL>\n route: <path if internal; otherwise the external host>\n scope: <internal | external>\n evidence: |\n - Status code / error: <e.g. `404 Not Found`, `DNS failure`, `redirect-loop`>\n - Redirect chain (if applicable): A → B → C → D → E\n - Found on pages (at time of detection):\n - /page-1\n - /page-2\n - (... up to 20 from `sourcePages`)\n - Total pages linking to this target: <sourcePagesTotal>\n impact: <1 sentence tailored to scope + kind>\n suggested_fix: |\n <actionable:>\n - If internal 404: update link to correct destination OR create 301 redirect\n - If internal 5xx: investigate server-side handler for the route (may be app bug)\n - If redirect chain: shorten to single-hop direct redirect in routing config\n - If external: update link to equivalent resource OR remove the mention\n - List likely files/components if you can infer (e.g. "appears on many pages — likely in a shared component like `app/components/Nav.tsx` or menu config")\n - ...\n```\n\nIf `collect_site_links` returned `error`, return a single `kind: site-unreachable` finding with the error in `evidence`.\n\nIf there are zero findings, return `findings: []` — that is the correct output for a healthy link graph.\n\n---\n\n## General rules\n\n- **Trust the scanner.** If `check_urls` reports a URL as broken or long-chain, emit a finding. Do not re-verify with other tools.\n- **Accept some flakiness.** A transient network blip may cause a false positive once. Downstream dedup across runs resolves it.\n- **Group by destination, not by origin.** One broken URL = one finding, even if linked on 50 pages. `collect_site_links` already returns it grouped this way.\n- **Prioritize internals.** Broken external links are the other site\'s responsibility; report but with lower severity.\n- **Never invent status codes.** Report what the scanner returned.\n',mo='# SEO Auditor\n\nYou are the **SEO Auditor**, a specialist agent focused on technical SEO hygiene.\n\n## Your mission\n\nAudit the on-page SEO health of target URLs and return a structured findings report. You focus on **technical SEO** (meta tags, structured data, canonicals, sitemap/robots, heading structure, indexability) — not editorial content or keyword strategy (those are the scope of other agents).\n\nYou are invoked as a sub-task by an orchestrator agent. Your job is to analyze and report. The orchestrator decides what to do with your findings (file issues, dedup against history, etc.).\n\n## Input (expect this in the prompt)\n\nThe orchestrator will pass per-site configuration. Expected fields:\n\n```yaml\nurls:\n - <url to audit>\n - <... one or more>\n```\n\nIf required fields are missing, return an error summary and stop — do not proceed with defaults or guess.\n\n## Available tools\n\n- **site-diagnostics MCP**: `audit_seo`, `fetch_page`, `render_page`, `crawl_site`\n\n---\n\n## Step 1 — Diagnostic\n\nFor each target URL:\n\n1. **Structured audit**: call `audit_seo({ url })`. It returns a structured report — use it as your primary source.\n2. **Raw HTML check**: use `fetch_page({ url })` to see the HTML served (important for crawlers that don\'t execute JS). Confirm critical meta tags are in the initial HTML, not only after hydration.\n3. **Post-render check**: use `render_page({ url })` to see the final DOM. Problems like canonical being overwritten by JS show up here.\n4. **Site structure checks** (only if you have permission for broad crawling, or via sampling): use `crawl_site` to identify orphan pages, canonical loops, or excessive navigation depth.\n5. **Always check**: `/robots.txt` and `/sitemap.xml` via `fetch_page`. These two are root-level and affect the whole site.\n\nOrganize findings into a list. Each finding must have:\n- `kind` (kebab-case slug, see catalog below)\n- `severity` (high | medium | low, see criteria below)\n- `target.url` and `target.route` (normalize: lowercase host, no query, no trailing slash except for `/`)\n- `evidence` (raw data: CSS selector, HTML snippet, observed value)\n- `impact` (1-2 sentences connecting to real metrics)\n- `suggested_fix` (actionable; include file/line if you can infer from framework patterns)\n\n## Step 1.5 — Validate page intent (critical; runs before classification)\n\nBefore you emit *any* finding about a page\'s title, meta description, headings, or indexability, you must answer one question: **did the site owner intend this URL to be a public, indexable page?**\n\nIf the answer is no, the observed "problems" are intentional configuration, not bugs. Reporting them wastes maintainer time and erodes this agent\'s credibility.\n\n### Three signals that the URL is NOT a real public page\n\nCheck these in order. Hitting any one of them means **skip all SEO findings for this URL** except legitimately site-wide problems (e.g. broken sitemap, broken robots.txt).\n\n**Signal 1 — Not in sitemap.** Fetch `/sitemap.xml` (and its child sitemaps, if it\'s a sitemap index). If the URL doesn\'t appear in any sitemap, the owner didn\'t declare it as public. Common on e-commerce platforms where routes like `/p`, `/c`, `/blog` are catchall or routing prefixes, not real pages.\n\n**Signal 2 — Explicit `noindex` + not in sitemap.** If the page serves `<meta name="robots" content="noindex*">` **and** isn\'t in the sitemap, this is a deliberate double-lock by the owner. Respect it. Do **not** flag `noindex-on-important-page` in this case.\n\n**Signal 3 — Title is the URL slug (template fallback).** If `<title>` equals the last path segment (e.g. `<title>blog</title>` for `/blog`, `<title>p</title>` for `/p`), the page is being rendered by a fallback template — nobody configured real content for this route. Skip.\n\n### Platform-specific catchalls (especially Brazilian e-commerce / VTEX / deco-cx)\n\nThese paths are routing prefixes, **not pages**. They may return HTTP 200 but are not meant to be indexable:\n\n- `/p`, `/c`, `/b` — VTEX product / category / brand route prefixes. Real pages live at `/<slug>/p`, `/<slug>/c`, etc. The bare prefixes are catchalls.\n- `/blog`, `/blogs`, `/editorial`, `/revista`, `/conteudo`, `/magazine`, `/noticias`, `/artigos` — common editorial prefixes. If the site doesn\'t have an editorial section, these hit a fallback.\n- `/search`, `/busca`, `/s` — search endpoints, not indexable pages.\n- `/departamento`, `/categoria` — category prefixes.\n- `/checkout`, `/cart`, `/carrinho`, `/login`, `/account`, `/minha-conta` — transactional/private routes. Intentionally `noindex`.\n\n### The "is this page actually important?" checklist\n\nBefore emitting a finding that calls a page "important" (like `noindex-on-important-page` or `title-missing` on anything critical):\n\n1. Is the URL in `/sitemap.xml`? → If no, skip.\n2. Does the page have substantive, unique content (not a fallback with title = URL slug)? → If no, skip.\n3. Is the path a known platform catchall (see list above)? → If yes, skip.\n\nOnly flag if all three pass.\n\n### What still counts as a finding even on non-indexable pages\n\nSite-wide SEO issues affect the whole domain and are worth reporting regardless of individual page intent:\n- `sitemap-missing` (the sitemap itself is broken)\n- `robots-blocking-important-path` (robots.txt blocks something that IS in the sitemap)\n- `structured-data-invalid` on pages that ARE in the sitemap\n- Duplicate titles / meta descriptions across pages that ARE in the sitemap\n\n## Catalog of `kind`\n\nTwo flavors of finding:\n\n- **Per-page** kinds — emitted when auditing a specific URL (e.g. `audit_seo` of a single page OR when your targeted inspection of one of the input URLs finds the issue). Marked **[intent-gated]** — must pass Step 1.5 before being emitted. Target is the specific URL.\n- **Aggregate** kinds — emitted once per site-wide pattern detected by `audit_seo`. Marked **[aggregate]**. Target is the site root (`/`). Evidence MUST include the affected URL sample from `audit_seo.issues[].sampleUrls`. One finding per aggregate kind per site.\n\n**High severity (per-page):**\n- `noindex-on-important-page` **[intent-gated]** — meta robots `noindex` on a page that IS in the sitemap and should be indexed\n- `canonical-pointing-to-wrong-url` **[intent-gated]** — canonical points to a different URL that isn\'t the canonical equivalent\n- `canonical-missing-on-paginated-or-faceted` **[intent-gated]** — pagination/filters without canonical\n- `title-missing` **[intent-gated]** — no `<title>` or empty on a page that IS in the sitemap\n- `structured-data-invalid` **[intent-gated]** — JSON-LD with syntax error or invalid schema.org\n\n**High severity (site-wide):**\n- `sitemap-missing` — `/sitemap.xml` returns 404 or 5xx\n- `robots-blocking-important-path` — `/robots.txt` disallows a path that IS in the sitemap\n- `broken-links-site-wide` **[aggregate]** — `audit_seo` reports broken outbound links across the site\n- `non-indexable-pages-site-wide` **[aggregate]** — `audit_seo` reports many non-indexable pages (note: some non-indexable pages are intentional catchalls — only high severity if the absolute count is large relative to `totalPagesCrawled`, e.g. > 30%)\n\n**Medium severity (per-page):**\n- `meta-description-missing` **[intent-gated]** — no `<meta name="description">` on a sitemap page the agent audited directly\n- `h1-missing` **[intent-gated]** — no `<h1>` on a sitemap page the agent audited directly\n- `h1-duplicate` **[intent-gated]** — multiple `<h1>` on a single page\n- `og-tags-missing` **[intent-gated]** — `og:title` and/or `og:description` missing\n- `structured-data-missing` **[intent-gated]** — page-type (product, article, etc.) without relevant JSON-LD\n- `title-too-long` **[intent-gated]** — `<title>` > 60 characters (truncation in SERP)\n- `title-too-short` **[intent-gated]** — `<title>` < 10 characters (rare; usually means template fallback — double-check page intent)\n- `meta-description-too-long` **[intent-gated]** — description > 160 characters\n\n**Medium severity (site-wide):**\n- `pages-missing-h1` **[aggregate]** — `audit_seo` reports N pages without an H1 tag\n- `pages-missing-meta-description` **[aggregate]** — `audit_seo` reports N pages without a meta description\n- `duplicate-titles` **[aggregate]** — multiple pages share the same `<title>`\n- `duplicate-meta-descriptions` **[aggregate]** — multiple pages share the same meta description\n- `duplicate-content` **[aggregate]** — multiple pages share substantially identical content\n- `broken-resources-site-wide` **[aggregate]** — broken images / scripts across the site\n- `hreflang-broken` — `hreflang` attribute with invalid value or broken reciprocity\n\n**Low severity (per-page):**\n- `meta-description-too-short` **[intent-gated]** — description < 50 characters\n- `og-image-missing` **[intent-gated]** — `og:image` missing\n- `heading-hierarchy-skipped` **[intent-gated]** — jumps from H1 to H3, etc.\n\n**Low severity (site-wide):**\n- `internal-link-using-absolute-url` — internal links with absolute URLs\n\n### Evidence requirements for aggregate kinds\n\nWhen emitting an `[aggregate]` kind, the `evidence` of the finding MUST include:\n\n1. **Total count** — from `audit_seo.issues[].count`\n2. **Sample URLs** — from `audit_seo.issues[].sampleUrls`. Render up to all 20 entries as a bulleted list. If `count > sampleUrls.length`, add a line like `(and <count - sampleUrls.length> more)`.\n3. **If `sampleUrls` is empty** (the tool didn\'t expose per-URL detail — happens for `broken-links-site-wide`, `duplicate-content`, `broken-resources-site-wide`), note it explicitly: `Note: audit_seo did not return per-URL detail for this issue type. A human will need to inspect the full audit_seo report or re-run with deeper crawling.`\n\nAn aggregate finding without either sample URLs or the note is **not actionable** and must not be emitted.\n\nTarget for aggregate kinds stays `target.url: https://<host>/` and `target.route: /`.\n\n## Step 2 — Return a structured findings report\n\nReturn a single response with this shape (YAML or JSON; YAML preferred for readability):\n\n```yaml\nspecialist: seo\nsummary:\n urls_audited: <n>\n findings: <n>\n diagnostic_failures: <n> # urls where audit tooling errored\nfindings:\n - kind: <kind slug>\n severity: <low|medium|high>\n target:\n url: <full URL>\n route: <normalized path>\n evidence: |\n <multi-line raw data: observed value, selector, HTML snippet, audit_seo output>\n impact: <1-2 sentences connecting to ranking/indexation/CTR>\n suggested_fix: <actionable; likely file/component, pseudo-code, correct value>\n - ...\n```\n\nIf a URL\'s diagnostic tooling errored entirely, emit a single `kind: diagnostic-failed` finding for that URL with the error in `evidence` instead of inventing data.\n\nIf there are zero findings, return `findings: []` — that is the correct output for healthy targets.\n\n---\n\n## General rules\n\n- **Never invent data in `evidence`.** If a tool failed, report it via `kind: diagnostic-failed` and skip the finding.\n- Always normalize `route`: lowercase host, no trailing slash (except for `/`), no query string, no fragment.\n- Your credibility is your currency. False positives erode trust — if you\'re 50% sure, don\'t emit a finding; investigate further or mark as `severity:low`.\n- **Never report a page as broken when it\'s a known catchall.** URLs like `/p`, `/c`, `/blog`, `/search`, `/busca` on e-commerce sites are routing prefixes, not pages. If the title is the URL slug and the page carries `noindex`, the owner is deliberately hiding it. That\'s correct behavior, not a bug.\n- **Sitemap is the ground truth for "is this page public?"**. When in doubt about whether to emit a finding on a URL, fall back to: "Is this URL in /sitemap.xml?" If not, default to silence.\n',fo=`# Performance Watchdog
|
|
2
2
|
|
|
3
3
|
You are the **Performance Watchdog**, a specialist agent focused on web performance.
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as h}from"./index-
|
|
1
|
+
import{r as h}from"./index-DeZ4lzZS.js";var w=(o,i,l,s,c,t,m,d)=>{let r=document.documentElement,u=["light","dark"];function n(e){(Array.isArray(o)?o:[o]).forEach(a=>{let p=a==="class",S=p&&t?c.map(f=>t[f]||f):c;p?(r.classList.remove(...S),r.classList.add(t&&t[e]?t[e]:e)):r.setAttribute(a,e)}),y(e)}function y(e){d&&u.includes(e)&&(r.style.colorScheme=e)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)n(s);else try{let e=localStorage.getItem(i)||l,a=m&&e==="system"?g():e;n(a)}catch{}};h.createContext(void 0);h.memo(({forcedTheme:o,storageKey:i,attribute:l,enableSystem:s,enableColorScheme:c,defaultTheme:t,value:m,themes:d,nonce:r,scriptProps:u})=>{let n=JSON.stringify([l,i,t,o,d,m,s,c]).slice(1,-1);return h.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?r:"",dangerouslySetInnerHTML:{__html:`(${w.toString()})(${n})`}})});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-BzceyGQx.js","assets/Check-C936sYYN.js","assets/ChevronDown-D9-4IfgQ.js","assets/login-MOfMmqEE.js","assets/input-BbtZTtIz.js","assets/reset-password-CKXtWBt4.js","assets/shell-layout-D-2Zmpp8.js","assets/dialog-De2L-Mm9.js","assets/X-CXRgDFum.js","assets/required-auth-layout-C4TIYyDi.js","assets/use-tasks-DYLdIMjk.js","assets/use-collections-DSBDbO1N.js","assets/constants-DfKy425l.js","assets/use-organization-settings-CgpGj7yV.js","assets/use-org-sso-iwRxmcvL.js","assets/Lock01-CzswZlFM.js","assets/onboarding-BHY99bnn.js","assets/label-B56NHqZu.js","assets/Users03-DEpz3kvM.js","assets/CheckCircle-CIhRIzNe.js","assets/Palette-BkIcRAuI.js","assets/index-xIOMtHnW.js","assets/index-Cnr3iyKb.js","assets/tooltip-CzbSAgXQ.js","assets/index-f--UpzBV.js","assets/agent-icon-D59FxHod.js","assets/AlertCircle--wiBhyBy.js","assets/Tool01-zaCqe86u.js","assets/XClose-C4DzyMov.js","assets/RefreshCcw01-DUZtukjI.js","assets/ArrowNarrowLeft-DUEFTkCU.js","assets/XCircle-CGvUuorr.js","assets/ArrowUpRight-ByDFdIYO.js","assets/ZapSquare-DKEusvEW.js","assets/ChevronRight-DYzYB9o2.js","assets/ChevronUp-DjhQ54oJ.js","assets/DotsVertical-BTQcMhn-.js","assets/Container-W30Qs4TE.js","assets/Star01-Dl0-D7bS.js","assets/SearchMd-DJcqe9YA.js","assets/LinkExternal01-BWQuO7gD.js","assets/Sun-DZgB_ONP.js","assets/Play-CX-s0F5M.js","assets/Plus-CxH8Dky0.js","assets/Settings02-19U6Pasa.js","assets/Shield01-C1y1P7P6.js","assets/Trash01-DKdnsDmj.js","assets/User01-kuDW4DKu.js","assets/Zap-Cl0ETvvt.js","assets/pair-CqzVS7FB.js","assets/index-PaARzNIj.js","assets/use-copy-B8mhVwfc.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/content-blocks-o63cs2vh.js","assets/types-DxewxD-a.js","assets/chat-context-Cmw2lxUK.js","assets/use-virtual-mcp-DNHpowZu.js","assets/use-ai-providers-CHzON1wD.js","assets/use-decopilot-events-C1f4EaaO.js","assets/create-sse-subscription-CxkOgzKf.js","assets/integration-icon-CX-4HHYz.js","assets/skeleton-j1f8Y-yp.js","assets/popover-BWJBmR0W.js","assets/drawer-14Rn9Zur.js","assets/avatar-ChukgIuT.js","assets/alert-dialog-Bs4oM5xq.js","assets/form-BpjQQfrk.js","assets/index-DZ2mE-ID.js","assets/use-mcp-tools-LXbg-7b0.js","assets/index-CzYFXCYm.js","assets/switch-Cym1wsqe.js","assets/use-connection-DbYn3h0U.js","assets/lean-canvas-recruit-modal-jh6XZJ5m.js","assets/use-navigate-to-agent-mAuF_Olj.js","assets/collection-search-JYX4AEcX.js","assets/checkbox-B5zXb2Jo.js","assets/extract-connection-data-Dn80NCk3.js","assets/constants-BGzIm0WX.js","assets/collections-BNOKPh2o.js","assets/tabs-CcbG9N2e.js","assets/dropdown-menu-B7VqWYeT.js","assets/select-CACnwoTF.js","assets/toggle-group-CUoQjxXD.js","assets/select-model-Cajziskt.js","assets/ai-providers-logos-DD3qZ33J.js","assets/use-debounced-autosave-B3LX33uh.js","assets/settings-section-B79eSyxk.js","assets/card-CuKTvJk_.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/unwrap-tool-result-BYXdCQMg.js","assets/index-YoMTmLrM.js","assets/question-004-sINsf4GQ.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-DpO7z97O.js","assets/use-registry-connections-v6H0url5.js","assets/useInfiniteQuery-DsFcYHS7.js","assets/infiniteQueryObserver-B8wlRxFU.js","assets/collection-tabs-lx0xcUeS.js","assets/badge-CYxiHq4p.js","assets/textarea-CxPy3ZTN.js","assets/connection-form-helpers-YsDtNQ7E.js","assets/use-infinite-scroll-61_2Ymdd.js","assets/useSuspenseInfiniteQuery-B4Xtg3B8.js","assets/collection-search-Clt8DXHN.js","assets/use-create-virtual-mcp-zuSOC404.js","assets/empty-state-BAo1HEab.js","assets/task-status-BhHFrQR1.js","assets/index-CsGGI0Nu.js","assets/command-Dl-gUn28.js","assets/index-x86r1Bar.js","assets/use-status-sounds-DWE_lKOw.js","assets/accordion-fFsu-8K2.js","assets/user-B6HmPP4N.js","assets/tools-list-Cb8a_Lef.js","assets/scroll-area-CpFD8S3R.js","assets/view-mode-toggle-CWWQpnSB.js","assets/automation-list-row-DBnJAyuL.js","assets/search-input-D2W6-i9v.js","assets/index-DDGTF8rc.css","assets/index-xj-daVDj.js","assets/settings-layout-BNHNlQuI.js","assets/connections-BCRN-YI1.js","assets/collection-display-button-DUUEITxu.js","assets/use-delete-connection-B7VdYPcM.js","assets/use-list-state-BX0wxNad.js","assets/use-view-mode-Dj9H2B4i.js","assets/connection-detail-AvrFqpFh.js","assets/index-C3WwEpEf.js","assets/index-Lha-Dz-p.js","assets/index-aqFN5mzK.js","assets/use-members-B7wVCVZJ.js","assets/use-org-auth-client-CZ46-R8H.js","assets/layout-DJRPSgl8.js","assets/monitoring-stats-row-BOj9NNqP.js","assets/collection-detail-D12l8837.js","assets/index-BGGN2eK9.js","assets/monaco-editor-B3eeVSHt.js","assets/empty-state-DH5ZYu9E.js","assets/index-DuYWPwRk.js","assets/table-DjvJngLq.js","assets/general-Dq8oAlWK.js","assets/domain-settings-Dpd1_jlw.js","assets/features-n_p9V38c.js","assets/brand-context-BUYExxZ2.js","assets/ai-providers-Dw3vAL7u.js","assets/members-Bb0t0cOy.js","assets/collection-table-wrapper-ClYve0R8.js","assets/use-organization-roles-BiL7w6Rf.js","assets/roles-CR6ZAjq-.js","assets/sso-B3TyJ2uc.js","assets/profile-3DZrk3WT.js","assets/store-CIHVOnJ4.js","assets/workflow-zflBzFOe.js","assets/workflow-detail-BkYNroDK.js","assets/org-plugin-layout-D8vjiGLz.js","assets/plugin-layout-gRiAtkqj.js","assets/agents-list-C9eV3yHD.js","assets/automations-CASAuVDl.js","assets/dynamic-plugin-layout-DiwAyewI.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function z$(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();const F$="modulepreload",B$=function(e){return"/"+e},X2={},At=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(f){return Promise.all(f.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");i=l(n.map(f=>{if(f=B$(f),f in X2)return;X2[f]=!0;const m=f.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${p}`))return;const g=document.createElement("link");if(g.rel=m?"stylesheet":F$,m||(g.as="script"),g.crossOrigin="",g.href=f,d&&g.setAttribute("nonce",d),document.head.appendChild(g),m)return new Promise((v,y)=>{g.addEventListener("load",v),g.addEventListener("error",()=>y(Error(`Unable to preload CSS for ${f}`)))})}))}function s(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return i.then(l=>{for(const c of l||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};var ele=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function la(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var __={exports:{}},Bu={};var J2;function V$(){if(J2)return Bu;J2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var l=null;if(s!==void 0&&(l=""+s),i.key!==void 0&&(l=""+i.key),"key"in i){s={};for(var c in i)c!=="key"&&(s[c]=i[c])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:s}}return Bu.Fragment=t,Bu.jsx=n,Bu.jsxs=n,Bu}var eO;function q$(){return eO||(eO=1,__.exports=V$()),__.exports}var T=q$(),y_={exports:{}},Vu={},b_={exports:{}},w_={};var tO;function H$(){return tO||(tO=1,(function(e){function t(q,W){var ee=q.length;q.push(W);e:for(;0<ee;){var ae=ee-1>>>1,Q=q[ae];if(0<i(Q,W))q[ae]=W,q[ee]=Q,ee=ae;else break e}}function n(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var W=q[0],ee=q.pop();if(ee!==W){q[0]=ee;e:for(var ae=0,Q=q.length,k=Q>>>1;ae<k;){var K=2*(ae+1)-1,V=q[K],D=K+1,F=q[D];if(0>i(V,ee))D<Q&&0>i(F,V)?(q[ae]=F,q[D]=ee,ae=D):(q[ae]=V,q[K]=ee,ae=K);else if(D<Q&&0>i(F,ee))q[ae]=F,q[D]=ee,ae=D;else break e}}return W}function i(q,W){var ee=q.sortIndex-W.sortIndex;return ee!==0?ee:q.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],m=1,p=null,g=3,v=!1,y=!1,b=!1,x=!1,S=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function C(q){for(var W=n(f);W!==null;){if(W.callback===null)r(f);else if(W.startTime<=q)r(f),W.sortIndex=W.expirationTime,t(d,W);else break;W=n(f)}}function O(q){if(b=!1,C(q),!y)if(n(d)!==null)y=!0,A||(A=!0,B());else{var W=n(f);W!==null&&re(O,W.startTime-q)}}var A=!1,M=-1,P=5,L=-1;function H(){return x?!0:!(e.unstable_now()-L<P)}function j(){if(x=!1,A){var q=e.unstable_now();L=q;var W=!0;try{e:{y=!1,b&&(b=!1,E(M),M=-1),v=!0;var ee=g;try{t:{for(C(q),p=n(d);p!==null&&!(p.expirationTime>q&&H());){var ae=p.callback;if(typeof ae=="function"){p.callback=null,g=p.priorityLevel;var Q=ae(p.expirationTime<=q);if(q=e.unstable_now(),typeof Q=="function"){p.callback=Q,C(q),W=!0;break t}p===n(d)&&r(d),C(q)}else r(d);p=n(d)}if(p!==null)W=!0;else{var k=n(f);k!==null&&re(O,k.startTime-q),W=!1}}break e}finally{p=null,g=ee,v=!1}W=void 0}}finally{W?B():A=!1}}}var B;if(typeof R=="function")B=function(){R(j)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,Z=U.port2;U.port1.onmessage=j,B=function(){Z.postMessage(null)}}else B=function(){S(j,0)};function re(q,W){M=S(function(){q(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(q){switch(g){case 1:case 2:case 3:var W=3;break;default:W=g}var ee=g;g=W;try{return q()}finally{g=ee}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(q,W){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ee=g;g=q;try{return W()}finally{g=ee}},e.unstable_scheduleCallback=function(q,W,ee){var ae=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ae+ee:ae):ee=ae,q){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=ee+Q,q={id:m++,callback:W,priorityLevel:q,startTime:ee,expirationTime:Q,sortIndex:-1},ee>ae?(q.sortIndex=ee,t(f,q),n(d)===null&&q===n(f)&&(b?(E(M),M=-1):b=!0,re(O,ee-ae))):(q.sortIndex=Q,t(d,q),y||v||(y=!0,A||(A=!0,B()))),q},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(q){var W=g;return function(){var ee=g;g=W;try{return q.apply(this,arguments)}finally{g=ee}}}})(w_)),w_}var nO;function G$(){return nO||(nO=1,b_.exports=H$()),b_.exports}var S_={exports:{}},rt={};var rO;function K$(){if(rO)return rt;rO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),g=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=g&&k[g]||k["@@iterator"],typeof k=="function"?k:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function S(k,K,V){this.props=k,this.context=K,this.refs=x,this.updater=V||y}S.prototype.isReactComponent={},S.prototype.setState=function(k,K){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,K,"setState")},S.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function E(){}E.prototype=S.prototype;function R(k,K,V){this.props=k,this.context=K,this.refs=x,this.updater=V||y}var C=R.prototype=new E;C.constructor=R,b(C,S.prototype),C.isPureReactComponent=!0;var O=Array.isArray;function A(){}var M={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function L(k,K,V){var D=V.ref;return{$$typeof:e,type:k,key:K,ref:D!==void 0?D:null,props:V}}function H(k,K){return L(k.type,K,k.props)}function j(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function B(k){var K={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(V){return K[V]})}var U=/\/+/g;function Z(k,K){return typeof k=="object"&&k!==null&&k.key!=null?B(""+k.key):K.toString(36)}function re(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(A,A):(k.status="pending",k.then(function(K){k.status==="pending"&&(k.status="fulfilled",k.value=K)},function(K){k.status==="pending"&&(k.status="rejected",k.reason=K)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function q(k,K,V,D,F){var X=typeof k;(X==="undefined"||X==="boolean")&&(k=null);var fe=!1;if(k===null)fe=!0;else switch(X){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(k.$$typeof){case e:case t:fe=!0;break;case m:return fe=k._init,q(fe(k._payload),K,V,D,F)}}if(fe)return F=F(k),fe=D===""?"."+Z(k,0):D,O(F)?(V="",fe!=null&&(V=fe.replace(U,"$&/")+"/"),q(F,K,V,"",function(Ue){return Ue})):F!=null&&(j(F)&&(F=H(F,V+(F.key==null||k&&k.key===F.key?"":(""+F.key).replace(U,"$&/")+"/")+fe)),K.push(F)),1;fe=0;var pe=D===""?".":D+":";if(O(k))for(var xe=0;xe<k.length;xe++)D=k[xe],X=pe+Z(D,xe),fe+=q(D,K,V,X,F);else if(xe=v(k),typeof xe=="function")for(k=xe.call(k),xe=0;!(D=k.next()).done;)D=D.value,X=pe+Z(D,xe++),fe+=q(D,K,V,X,F);else if(X==="object"){if(typeof k.then=="function")return q(re(k),K,V,D,F);throw K=String(k),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return fe}function W(k,K,V){if(k==null)return k;var D=[],F=0;return q(k,D,"","",function(X){return K.call(V,X,F++)}),D}function ee(k){if(k._status===-1){var K=k._result;K=K(),K.then(function(V){(k._status===0||k._status===-1)&&(k._status=1,k._result=V)},function(V){(k._status===0||k._status===-1)&&(k._status=2,k._result=V)}),k._status===-1&&(k._status=0,k._result=K)}if(k._status===1)return k._result.default;throw k._result}var ae=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},Q={map:W,forEach:function(k,K,V){W(k,function(){K.apply(this,arguments)},V)},count:function(k){var K=0;return W(k,function(){K++}),K},toArray:function(k){return W(k,function(K){return K})||[]},only:function(k){if(!j(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return rt.Activity=p,rt.Children=Q,rt.Component=S,rt.Fragment=n,rt.Profiler=i,rt.PureComponent=R,rt.StrictMode=r,rt.Suspense=d,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,rt.__COMPILER_RUNTIME={__proto__:null,c:function(k){return M.H.useMemoCache(k)}},rt.cache=function(k){return function(){return k.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(k,K,V){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var D=b({},k.props),F=k.key;if(K!=null)for(X in K.key!==void 0&&(F=""+K.key),K)!P.call(K,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&K.ref===void 0||(D[X]=K[X]);var X=arguments.length-2;if(X===1)D.children=V;else if(1<X){for(var fe=Array(X),pe=0;pe<X;pe++)fe[pe]=arguments[pe+2];D.children=fe}return L(k.type,F,D)},rt.createContext=function(k){return k={$$typeof:l,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},rt.createElement=function(k,K,V){var D,F={},X=null;if(K!=null)for(D in K.key!==void 0&&(X=""+K.key),K)P.call(K,D)&&D!=="key"&&D!=="__self"&&D!=="__source"&&(F[D]=K[D]);var fe=arguments.length-2;if(fe===1)F.children=V;else if(1<fe){for(var pe=Array(fe),xe=0;xe<fe;xe++)pe[xe]=arguments[xe+2];F.children=pe}if(k&&k.defaultProps)for(D in fe=k.defaultProps,fe)F[D]===void 0&&(F[D]=fe[D]);return L(k,X,F)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(k){return{$$typeof:c,render:k}},rt.isValidElement=j,rt.lazy=function(k){return{$$typeof:m,_payload:{_status:-1,_result:k},_init:ee}},rt.memo=function(k,K){return{$$typeof:f,type:k,compare:K===void 0?null:K}},rt.startTransition=function(k){var K=M.T,V={};M.T=V;try{var D=k(),F=M.S;F!==null&&F(V,D),typeof D=="object"&&D!==null&&typeof D.then=="function"&&D.then(A,ae)}catch(X){ae(X)}finally{K!==null&&V.types!==null&&(K.types=V.types),M.T=K}},rt.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},rt.use=function(k){return M.H.use(k)},rt.useActionState=function(k,K,V){return M.H.useActionState(k,K,V)},rt.useCallback=function(k,K){return M.H.useCallback(k,K)},rt.useContext=function(k){return M.H.useContext(k)},rt.useDebugValue=function(){},rt.useDeferredValue=function(k,K){return M.H.useDeferredValue(k,K)},rt.useEffect=function(k,K){return M.H.useEffect(k,K)},rt.useEffectEvent=function(k){return M.H.useEffectEvent(k)},rt.useId=function(){return M.H.useId()},rt.useImperativeHandle=function(k,K,V){return M.H.useImperativeHandle(k,K,V)},rt.useInsertionEffect=function(k,K){return M.H.useInsertionEffect(k,K)},rt.useLayoutEffect=function(k,K){return M.H.useLayoutEffect(k,K)},rt.useMemo=function(k,K){return M.H.useMemo(k,K)},rt.useOptimistic=function(k,K){return M.H.useOptimistic(k,K)},rt.useReducer=function(k,K,V){return M.H.useReducer(k,K,V)},rt.useRef=function(k){return M.H.useRef(k)},rt.useState=function(k){return M.H.useState(k)},rt.useSyncExternalStore=function(k,K,V){return M.H.useSyncExternalStore(k,K,V)},rt.useTransition=function(){return M.H.useTransition()},rt.version="19.2.5",rt}var iO;function ca(){return iO||(iO=1,S_.exports=K$()),S_.exports}var E_={exports:{}},yr={};var oO;function Z$(){if(oO)return yr;oO=1;var e=ca();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(d,f,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:d,containerInfo:f,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return yr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,yr.createPortal=function(d,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(d,f,null,m)},yr.flushSync=function(d){var f=l.T,m=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=m,r.d.f()}},yr.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},yr.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},yr.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,v=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:v}):m==="script"&&r.d.X(d,{crossOrigin:p,integrity:g,fetchPriority:v,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},yr.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=c(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},yr.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin);r.d.L(d,m,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},yr.preloadModule=function(d,f){if(typeof d=="string")if(f){var m=c(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},yr.requestFormReset=function(d){r.d.r(d)},yr.unstable_batchedUpdates=function(d,f){return d(f)},yr.useFormState=function(d,f,m){return l.H.useFormState(d,f,m)},yr.useFormStatus=function(){return l.H.useHostTransitionStatus()},yr.version="19.2.5",yr}var sO;function IM(){if(sO)return E_.exports;sO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),E_.exports=Z$(),E_.exports}var aO;function Y$(){if(aO)return Vu;aO=1;var e=G$(),t=ca(),n=IM();function r(o){var a="https://react.dev/errors/"+o;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+o+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var a=o,u=o;if(o.alternate)for(;a.return;)a=a.return;else{o=a;do a=o,(a.flags&4098)!==0&&(u=a.return),o=a.return;while(o)}return a.tag===3?u:null}function l(o){if(o.tag===13){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function c(o){if(o.tag===31){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function d(o){if(s(o)!==o)throw Error(r(188))}function f(o){var a=o.alternate;if(!a){if(a=s(o),a===null)throw Error(r(188));return a!==o?null:o}for(var u=o,h=a;;){var _=u.return;if(_===null)break;var w=_.alternate;if(w===null){if(h=_.return,h!==null){u=h;continue}break}if(_.child===w.child){for(w=_.child;w;){if(w===u)return d(_),o;if(w===h)return d(_),a;w=w.sibling}throw Error(r(188))}if(u.return!==h.return)u=_,h=w;else{for(var N=!1,$=_.child;$;){if($===u){N=!0,u=_,h=w;break}if($===h){N=!0,h=_,u=w;break}$=$.sibling}if(!N){for($=w.child;$;){if($===u){N=!0,u=w,h=_;break}if($===h){N=!0,h=w,u=_;break}$=$.sibling}if(!N)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?o:a}function m(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o;for(o=o.child;o!==null;){if(a=m(o),a!==null)return a;o=o.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),R=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function B(o){return o===null||typeof o!="object"?null:(o=j&&o[j]||o["@@iterator"],typeof o=="function"?o:null)}var U=Symbol.for("react.client.reference");function Z(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===U?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case b:return"Fragment";case S:return"Profiler";case x:return"StrictMode";case O:return"Suspense";case A:return"SuspenseList";case L:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case y:return"Portal";case R:return o.displayName||"Context";case E:return(o._context.displayName||"Context")+".Consumer";case C:var a=o.render;return o=o.displayName,o||(o=a.displayName||a.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case M:return a=o.displayName||null,a!==null?a:Z(o.type)||"Memo";case P:a=o._payload,o=o._init;try{return Z(o(a))}catch{}}return null}var re=Array.isArray,q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ae=[],Q=-1;function k(o){return{current:o}}function K(o){0>Q||(o.current=ae[Q],ae[Q]=null,Q--)}function V(o,a){Q++,ae[Q]=o.current,o.current=a}var D=k(null),F=k(null),X=k(null),fe=k(null);function pe(o,a){switch(V(X,a),V(F,o),V(D,null),a.nodeType){case 9:case 11:o=(o=a.documentElement)&&(o=o.namespaceURI)?w2(o):0;break;default:if(o=a.tagName,a=a.namespaceURI)a=w2(a),o=S2(a,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}K(D),V(D,o)}function xe(){K(D),K(F),K(X)}function Ue(o){o.memoizedState!==null&&V(fe,o);var a=D.current,u=S2(a,o.type);a!==u&&(V(F,o),V(D,u))}function Y(o){F.current===o&&(K(D),K(F)),fe.current===o&&(K(fe),ju._currentValue=ee)}var te,ve;function se(o){if(te===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);te=a&&a[1]||"",ve=-1<u.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+te+o+ve}var we=!1;function Oe(o,a){if(!o||we)return"";we=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(a){var Se=function(){throw Error()};if(Object.defineProperty(Se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Se,[])}catch(ge){var he=ge}Reflect.construct(o,[],Se)}else{try{Se.call()}catch(ge){he=ge}o.call(Se.prototype)}}else{try{throw Error()}catch(ge){he=ge}(Se=o())&&typeof Se.catch=="function"&&Se.catch(function(){})}}catch(ge){if(ge&&he&&typeof ge.stack=="string")return[ge.stack,he.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var _=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");_&&_.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=h.DetermineComponentFrameRoot(),N=w[0],$=w[1];if(N&&$){var J=N.split(`
|
|
@@ -168,4 +168,4 @@ ${r}
|
|
|
168
168
|
${r}
|
|
169
169
|
}`)}if(n.length>0){const r=document.createElement("style");r.id="mesh-theme-overrides",r.textContent=n.join(`
|
|
170
170
|
|
|
171
|
-
`),document.head.appendChild(r)}}function Jse(e){const t=Ro.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:GM.publicConfig(),queryFn:Qse,staleTime:1/0},t[0]=r):r=t[0];const{data:i}=HM(r),[s]=Yse();i.internalUrl&&Use(i.internalUrl);let l,c;t[1]!==i.theme?(l=()=>{Xse(i.theme)},c=[i.theme],t[1]=i.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),I.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const p=document.documentElement;if(s.theme==="dark"){p.classList.add("dark");return}if(s.theme==="light"){p.classList.remove("dark");return}const g=window.matchMedia("(prefers-color-scheme: dark)"),v=b=>p.classList.toggle("dark",b);v(g.matches);const y=b=>v(b.matches);return g.addEventListener("change",y),()=>g.removeEventListener("change",y)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),I.useLayoutEffect(d,f);let m;return t[7]!==n?(m=T.jsx(T.Fragment,{children:n}),t[7]=n,t[8]=m):m=t[8],m}const eae=new bj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function tae(e){const t=Ro.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=T.jsx(hH,{}),t[0]=r):r=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx(jD,{}),t[1]=i):i=t[1];let s;return t[2]!==n?(s=T.jsxs(wj,{client:eae,children:[r,T.jsx(I.Suspense,{fallback:i,children:T.jsx(Jse,{children:T.jsx(Lj,{children:T.jsx(Fee,{children:T.jsx(Wne,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function nae(...e){return BP(pw(e))}const rae=y4("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function W1(e){const t=Ro.c(14);let n,r,i,s,l;t[0]!==e?({className:n,variant:l,size:i,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=l):(n=t[1],r=t[2],i=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?jw:"button";let f;t[6]!==n||t[7]!==i||t[8]!==l?(f=nae(rae({variant:l,size:i,className:n})),t[6]=n,t[7]=i,t[8]=l,t[9]=f):f=t[9];let m;return t[10]!==d||t[11]!==r||t[12]!==f?(m=T.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=m):m=t[13],m}const CM="__mesh_chunk_reload_ts";function AM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class ice extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),kD(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:T.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class iae extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=AM(t);if(kD(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const i=sessionStorage.getItem(CM),s=Date.now();(!i||s-Number(i)>1e4)&&(sessionStorage.setItem(CM,String(s)),window.location.reload())}render(){return this.state.hasError&&AM(this.state.error)?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:T.jsx($D,{className:"h-6 w-6 text-primary"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),T.jsx(W1,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}const oae="MCP Workflows",sae="Create workflows using your MCP tools",aae=I.lazy(()=>At(()=>import("./plugin-header-RtXpJdkF.js"),__vite__mapDeps([0,1,2]))),lae=I.lazy(()=>At(()=>import("./plugin-empty-state-CAfBOmv9.js"),[])),cae={id:oae,description:sae,bindingName:"WORKFLOW",renderHeader:e=>T.jsx(aae,{...e}),renderEmptyState:()=>T.jsx(lae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:T.jsx(DD,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},uae=[cae],ma=t7({component:()=>T.jsx(iae,{children:T.jsx(tae,{children:T.jsx(I.Suspense,{fallback:T.jsx(jD,{}),children:T.jsx(mP,{})})})})}),dae=mt({getParentRoute:()=>ma,path:"/login",component:It(()=>At(()=>import("./login-BAIGAZLg.js"),__vite__mapDeps([3,4]))),validateSearch:ul(()=>Ee({next:z().optional(),client_id:z().optional(),redirect_uri:z().optional(),response_type:z().optional(),state:z().optional(),scope:z().optional(),code_challenge:z().optional(),code_challenge_method:z().optional()}))}),fae=mt({getParentRoute:()=>ma,path:"/reset-password",component:It(()=>At(()=>import("./reset-password-B6r9t9Oh.js"),__vite__mapDeps([5,4]))),validateSearch:ul(()=>Ee({token:z().optional(),error:z().optional()}))}),hae=mt({getParentRoute:()=>ma,path:"/auth/$pathname",component:It(()=>At(()=>import("./auth-catchall-DSDUVS7V.js"),[]))}),pae=mt({getParentRoute:()=>ma,path:"/oauth/callback",component:It(()=>At(()=>import("./oauth-callback-BaQ7B2Rx.js"),[]))}),mae=mt({getParentRoute:()=>ma,path:"/oauth/callback/ai-provider",component:It(()=>At(()=>import("./oauth-callback-ai-provider-DcbaUyEX.js"),[]))}),rE=mt({getParentRoute:()=>ma,id:"shell",component:It(()=>At(()=>import("./shell-layout-DDd0qO09.js").then(e=>e.s),__vite__mapDeps([6,7,8,9,10,11,12,13,14,15])))}),gae=mt({getParentRoute:()=>rE,path:"/",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(!e)return;const t=localStorage.getItem(Rg.lastOrgSlug());if(t){if(e.some(i=>i.slug===t))throw Oc({to:"/$org",params:{org:t}});localStorage.removeItem(Rg.lastOrgSlug())}const n=e[0];throw Oc(n?{to:"/$org",params:{org:n.slug}}:{to:"/onboarding"})}}),vae=mt({getParentRoute:()=>ma,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(e&&e.length>0)throw Oc({to:"/"})},component:It(()=>At(()=>import("./onboarding-h88h3klM.js"),__vite__mapDeps([16,9,4,17,18,19,20])))}),iE=mt({getParentRoute:()=>rE,path:"/$org",component:It(()=>At(()=>import("./org-layout-BBR4isCp.js"),[]))}),oE=mt({getParentRoute:()=>iE,id:"org-shell",component:It(()=>At(()=>import("./index-C3jp8V-r.js"),__vite__mapDeps([21,22,23,8,24,25,26,27,28,29,30,31,32,33,18,19,1,2,34,35,36,37,38,20,39,40,15,41,42,43,44,45,46,47,48,6,7,9,10,11,12,13,14,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,17,4,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106])))}),sE=mt({getParentRoute:()=>oE,id:"agent-shell",component:It(()=>At(()=>import("./index-CBeau-VE.js"),__vite__mapDeps([107,69,7,8,70,4,71,11,12,72,73,56,29,74,39,75,1,15,25,26,27,28,30,31,32,33,18,19,2,34,35,36,37,38,20,22,23,40,41,42,43,44,45,46,47,48,76,77,78,63,60,68,55,57,58,59,10,13,6,9,14,49,50,51,52,53,54,79,66,17,80,81,82,83,61,84,85,86,87,64,65,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,108,109,62,24,67,103,104,105,106,110,111,112,113,114,115,116,117,118])))}),_ae=Ee({virtualmcpid:z().optional(),tab:z().optional(),main:z().optional(),id:z().optional(),toolName:z().optional(),tasks:St().optional(),mainOpen:St().optional(),chat:St().optional(),autosend:z().optional()}),O6=mt({getParentRoute:()=>sE,path:"/$taskId",validateSearch:_ae,component:()=>null}),yae=mt({getParentRoute:()=>oE,path:"/",component:It(()=>At(()=>import("./index-BczjQy3M.js"),__vite__mapDeps([119,60,37,25,26,27,28,29,30,31,32,33,18,19,1,2,34,35,36,38,20,39,22,23,8,40,15,41,42,43,44,45,46,47,48,61,12,56,11,13,72,73,7,74,75,71,76,77,78,63,68,69,70,4,55,57,58,59,10,6,9,14,49,50,51,52,53,54,79,66,17,80,81,82,83,84,85,86,87,64,65,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,104])))}),Pn=mt({getParentRoute:()=>iE,path:"/settings",component:It(()=>At(()=>import("./settings-layout-B5lxdePw.js"),__vite__mapDeps([120,22,23,8,30,33,18,34,15,45,47,48,110,91,58,59])))}),bae=mt({getParentRoute:()=>Pn,path:"/",beforeLoad:({params:e})=>{throw Oc({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),wae=mt({getParentRoute:()=>Pn,path:"/connections",component:It(()=>At(()=>import("./connections-oG85p-mQ.js"),__vite__mapDeps([121,77,78,122,80,1,34,36,28,23,115,98,117,39,97,93,92,94,71,11,12,13,95,96,76,87,60,37,25,26,27,29,30,31,32,33,18,19,2,35,38,20,22,8,40,15,41,42,43,44,45,46,47,48,105,123,65,101,124,125,75,7,63,66,17,4,81,99,56,100]))),validateSearch:ul(()=>Ee({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),Sae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug",component:It(()=>At(()=>import("./connection-detail-DMf-fgcD.js"),__vite__mapDeps([126,77,78,105,100,4,43,46,127,12,68,25,26,27,28,29,30,31,32,33,18,19,1,2,34,35,36,37,38,20,39,22,23,8,40,15,41,42,44,45,47,48,71,11,128,129,76,94,13,81,109,62,56,104,73,113,98,54,130,131,64,79,60,66,17,123,65,132,133,92,74,87,80]))),validateSearch:ul(()=>Ee({tab:z().optional()}))}),Eae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug/$collectionName/$itemId",component:It(()=>At(()=>import("./collection-detail-D8ViAcbL.js"),__vite__mapDeps([134,105,11,12,66,17,4,99,132,22,23,8,135,128,78,129,56,136,50,111,25,26,27,28,29,30,31,32,33,18,19,1,2,34,35,36,37,38,20,39,40,15,41,42,43,44,45,46,47,48,98,81,115,71,68,7,90,80,60,114,67,137,59,54,127,76,77,94,13,109,62,104,73,92,113,53,55,57,58,10,6,9,14]))),validateSearch:ul(()=>Ee({replayId:z().optional()}))}),xae=mt({getParentRoute:()=>Pn,path:"/monitor",component:It(()=>At(()=>import("./index-Dg6zk4z0.js"),__vite__mapDeps([138,117,39,22,23,8,105,98,62,1,31,42,25,26,27,28,29,30,32,33,18,19,2,34,35,36,37,38,20,40,15,41,43,44,45,46,47,48,136,50,130,131,71,11,12,56,4,75,108,109,81,114,99,97,70,17,60,64,87,133,129,68,92,102,96,139,101,95,49,51,52,7,53,54,55,57,58,59,10,13,6,9,14,106]))),validateSearch:ul(()=>Ee({tab:dn(["overview","audit","threads"]).default("overview"),from:z().default("now-30m"),to:z().default("now"),connectionId:Ie(z()).optional().default([]),virtualMcpId:Ie(z()).optional().default([]),tool:z().default(""),status:dn(["all","success","errors"]).default("all"),search:z().default(""),page:St().optional(),streaming:Pt().default(!0),propertyFilters:z().default(""),hideSystem:Pt().default(!1)}))}),Rae=mt({getParentRoute:()=>Pn,path:"/general",component:It(()=>At(()=>import("./general-iD0oGniS.js"),__vite__mapDeps([140,22,23,8,131,85,64,47,4,86,87,32,141,89,12,70,103,39,56,11,62,61,25,26,27,28,29,30,31,33,18,19,1,2,34,35,36,37,38,20,40,15,41,42,43,44,45,46,48,60,13])))}),Oae=mt({getParentRoute:()=>Pn,path:"/features",component:It(()=>At(()=>import("./features-vcFr7_NO.js"),__vite__mapDeps([142,22,23,8,13,12,70,37,86,87,32])))}),Tae=mt({getParentRoute:()=>Pn,path:"/brand-context",component:It(()=>At(()=>import("./brand-context-DWyvnvIk.js"),__vite__mapDeps([143,12,2,34,38,40,43,46,48,65,4,99,22,23,8,89,85])))}),Cae=mt({getParentRoute:()=>Pn,path:"/ai-providers",component:It(()=>At(()=>import("./ai-providers-DJCkxeza.js"),__vite__mapDeps([144,83,75,1,4,7,8,63,23,81,2,35,61,27,29,39,44,57,12,55,56,11,58,59,10,13,84,48,85,26,19,46,22,86,87,32,70,82,64,47,65,88,52,89])))}),Aae=mt({getParentRoute:()=>Pn,path:"/members",component:It(()=>At(()=>import("./members--FDE6tuk.js"),__vite__mapDeps([145,122,80,1,34,36,28,23,115,98,117,39,22,8,146,139,105,7,66,17,81,2,35,99,131,147,130,12,65,64,47,87,45,46,75,108,109,62,43])))}),Iae=mt({getParentRoute:()=>Pn,path:"/roles",component:It(()=>At(()=>import("./roles-Ee_Uhan9.js"),__vite__mapDeps([148,147,131,98,65,80,1,34,36,15,43,46,146,139,28,22,23,8,105,117,39,84,60,37,25,26,27,29,30,31,32,33,18,19,2,35,38,20,40,41,42,44,45,47,48,101,75,102,96,12,74,130,71,11,57,64,70,86,87]))),validateSearch:ul(()=>Ee({role:z().optional()}))}),Mae=mt({getParentRoute:()=>Pn,path:"/sso",component:It(()=>At(()=>import("./sso-DPaJITTm.js"),__vite__mapDeps([149,141,89,12,70,86,87,32,22,23,8,4,14,46])))}),Pae=mt({getParentRoute:()=>Pn,path:"/profile",component:It(()=>At(()=>import("./profile-Bc72ys1m.js"),__vite__mapDeps([150,22,23,8,64,47,70,81,1,2,35,82,4,41,42,85,91,67,86,87,32])))}),Nae=mt({getParentRoute:()=>Pn,path:"/store",component:It(()=>At(()=>import("./store-CAA-krPV.js"),__vite__mapDeps([151,26,34,43,46,4,70,61,64,47,62,71,11,12,22,23,8,94,13,86,87,32])))}),kae=mt({getParentRoute:()=>Pn,path:"/registry",component:It(()=>At(()=>import("./registry-BsIc5aMc.js"),[]))}),Dae=mt({getParentRoute:()=>Pn,path:"/store/registry",component:It(()=>At(()=>import("./store-registry-ofreyRMo.js"),[]))}),Lae=mt({getParentRoute:()=>Pn,path:"/workflows",component:It(()=>At(()=>import("./workflow-R3hZyuyQ.js"),__vite__mapDeps([152,12,77,78,122,80,1,34,36,28,23,115,98,74,39,87,60,37,25,26,27,29,30,31,32,33,18,19,2,35,38,20,22,8,40,15,41,42,43,44,45,46,47,48,146,139,137,112,64,105,124,125,92,65,11,71,132])))}),$ae=mt({getParentRoute:()=>Pn,path:"/workflows/$itemId",component:It(()=>At(()=>import("./workflow-detail-BJ1tXzcM.js"),__vite__mapDeps([153,135,128,12,78,129,56,11,136,50,111,25,26,27,28,29,30,31,32,33,18,19,1,2,34,35,36,37,38,20,39,22,23,8,40,15,41,42,43,44,45,46,47,48,98,81,115,132,71,68,7,90,80,60,114,67,137,59,4])))}),jae=mt({getParentRoute:()=>sE,path:"/plugins/$pluginId",component:It(()=>At(()=>import("./org-plugin-layout-Dl6QtWDy.js"),__vite__mapDeps([154,155,71,11,12,44,22,23,8])))}),Uae=mt({getParentRoute:()=>Pn,path:"/agents",component:It(()=>At(()=>import("./agents-list-2IMNAAmL.js"),__vite__mapDeps([156,80,1,34,36,18,72,12,73,56,11,7,8,29,74,39,75,71,15,25,26,27,28,30,31,32,33,19,2,35,37,38,20,22,23,40,41,42,43,44,45,46,47,48,76,77,78,63,60,68,87,88,52,105,104,65,117])))}),zae=mt({getParentRoute:()=>Pn,path:"/automations",component:It(()=>At(()=>import("./automations-BKGLmUCl.js"),__vite__mapDeps([157,43,48,117,39,22,23,8,105,116,65,80,1,34,36,25,26,27,28,29,30,31,32,33,18,19,2,35,37,38,20,40,15,41,42,44,45,46,47,56,11,12,73])))}),T6=mt({getParentRoute:()=>O6,path:"/$pluginId",component:It(()=>At(()=>import("./dynamic-plugin-layout-BTYFB5Vl.js"),__vite__mapDeps([158,155,71,11,12,44,22,23,8])))}),Fae=[],Bae=[],Vae=[],C6=[];uae.forEach(e=>{if(!e.setup)return;const t={parentRoute:T6,routing:{createRoute:mt,lazyRouteComponent:It},registerRootSidebarItem:n=>Fae.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Bae.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>Vae.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{C6.push(...n)}};e.setup(t)});const qae=T6.addChildren(C6),Hae=Pn.addChildren([bae,wae,Sae,Eae,Uae,zae,xae,Rae,Oae,Tae,Cae,Aae,Iae,Mae,Pae,Nae,Dae,kae,Lae,$ae]),Gae=O6.addChildren([qae]),Kae=sE.addChildren([Gae,jae]),Zae=oE.addChildren([yae,Kae]),Yae=iE.addChildren([Zae,Hae]),Wae=rE.addChildren([gae,Yae]),Qae=ma.addChildren([Wae,vae,dae,fae,hae,pae,mae]),Xae=u7({routeTree:Qae,defaultNotFoundComponent:()=>T.jsx("div",{className:"flex h-full items-center justify-center",children:T.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[T.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),T.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),T.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})}),Jae=document.getElementById("root");Q$.createRoot(Jae).render(T.jsx(I.StrictMode,{children:T.jsx(h7,{router:Xae})}));export{KM as $,Mle as A,W1 as B,To as C,tG as D,ice as E,ece as F,nce as G,Ee as H,St as I,z as J,GM as K,fw as L,$D as M,cle as N,mP as O,Yse as P,Gse as Q,Rg as R,jD as S,LJ as T,Yr as U,Jle as V,Fae as W,Bae as X,oae as Y,DD as Z,At as _,kj as a,Ye as a$,sle as a0,xo as a1,eee as a2,ht as a3,no as a4,cW as a5,uW as a6,yn as a7,lt as a8,dW as a9,t3 as aA,sY as aB,cY as aC,aY as aD,ZZ as aE,Ole as aF,Vae as aG,tle as aH,Ut as aI,Xt as aJ,Ie as aK,JH as aL,Xle as aM,Qle as aN,HS as aO,vg as aP,DY as aQ,x3 as aR,X4 as aS,lf as aT,ta as aU,kY as aV,ds as aW,y4 as aX,jw as aY,Wr as aZ,Pt as a_,fW as aa,mW as ab,bW as ac,I3 as ad,fl as ae,hW as af,pW as ag,gW as ah,vW as ai,_W as aj,yW as ak,wW as al,EW as am,xW as an,Ig as ao,dn as ap,fC as aq,Q1 as ar,iY as as,ro as at,Kd as au,Ww as av,jc as aw,aa as ax,fs as ay,io as az,Mg as b,nZ as b$,RV as b0,BP as b1,pw as b2,Rk as b3,Tk as b4,YW as b5,Wn as b6,wQ as b7,d3 as b8,Q4 as b9,wre as bA,xre as bB,Dre as bC,Zre as bD,Qre as bE,bre as bF,Sre as bG,Rre as bH,Ore as bI,Lre as bJ,qre as bK,qle as bL,uae as bM,pV as bN,ule as bO,mle as bP,gq as bQ,ul as bR,VN as bS,GN as bT,fle as bU,rce as bV,rG as bW,nG as bX,u4 as bY,pf as bZ,eZ as b_,rae as ba,la as bb,ne as bc,ele as bd,iZ as be,Lle as bf,uP as bg,ca as bh,as as bi,Dle as bj,$le as bk,rn as bl,dle as bm,qN as bn,zre as bo,Fre as bp,VS as bq,l6 as br,qS as bs,nv as bt,GD as bu,tie as bv,ZD as bw,Wre as bx,cie as by,yre as bz,nae as c,n6 as c$,rZ as c0,af as c1,qM as c2,Aj as c3,S3 as c4,wY as c5,Fw as c6,h3 as c7,k4 as c8,Bw as c9,Wle as cA,eoe as cB,pt as cC,Hoe as cD,to as cE,XW as cF,fP as cG,Ale as cH,oZ as cI,sZ as cJ,tZ as cK,aZ as cL,Bz as cM,HD as cN,YD as cO,XD as cP,e6 as cQ,t6 as cR,r6 as cS,Ble as cT,Vle as cU,zle as cV,Fle as cW,Jne as cX,Ule as cY,WD as cZ,JD as c_,Gd as ca,R4 as cb,zw as cc,Uw as cd,SY as ce,EY as cf,oQ as cg,sQ as ch,iQ as ci,Or as cj,lle as ck,QH as cl,YH as cm,HH as cn,n4 as co,HV as cp,Sw as cq,EV as cr,hle as cs,ZV as ct,xw as cu,Ew as cv,XV as cw,ple as cx,Yle as cy,_se as cz,dw as d,Gle as d0,QD as d1,Zle as d2,kS as d3,fre as d4,jle as d5,qD as d6,Die as d7,Vre as d8,Kle as d9,Tie as da,Iie as db,die as dc,uie as dd,Hle as de,gle as df,BW as dg,VW as dh,GW as di,qW as dj,HW as dk,yle as dl,ble as dm,xle as dn,Rle as dp,Tle as dq,Ele as dr,Sle as ds,wle as dt,_le as du,vle as dv,UM as dw,yO as dx,rle as dy,nle as dz,Ro as e,rf as f,uw as g,Ple as h,Ile as i,T as j,Nle as k,LD as l,tce as m,Nj as n,nw as o,PM as p,Zn as q,I as r,Xne as s,kle as t,ale as u,ole as v,HM as w,RT as x,NS as y,Oo as z};
|
|
171
|
+
`),document.head.appendChild(r)}}function Jse(e){const t=Ro.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:GM.publicConfig(),queryFn:Qse,staleTime:1/0},t[0]=r):r=t[0];const{data:i}=HM(r),[s]=Yse();i.internalUrl&&Use(i.internalUrl);let l,c;t[1]!==i.theme?(l=()=>{Xse(i.theme)},c=[i.theme],t[1]=i.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),I.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const p=document.documentElement;if(s.theme==="dark"){p.classList.add("dark");return}if(s.theme==="light"){p.classList.remove("dark");return}const g=window.matchMedia("(prefers-color-scheme: dark)"),v=b=>p.classList.toggle("dark",b);v(g.matches);const y=b=>v(b.matches);return g.addEventListener("change",y),()=>g.removeEventListener("change",y)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),I.useLayoutEffect(d,f);let m;return t[7]!==n?(m=T.jsx(T.Fragment,{children:n}),t[7]=n,t[8]=m):m=t[8],m}const eae=new bj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function tae(e){const t=Ro.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=T.jsx(hH,{}),t[0]=r):r=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx(jD,{}),t[1]=i):i=t[1];let s;return t[2]!==n?(s=T.jsxs(wj,{client:eae,children:[r,T.jsx(I.Suspense,{fallback:i,children:T.jsx(Jse,{children:T.jsx(Lj,{children:T.jsx(Fee,{children:T.jsx(Wne,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function nae(...e){return BP(pw(e))}const rae=y4("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function W1(e){const t=Ro.c(14);let n,r,i,s,l;t[0]!==e?({className:n,variant:l,size:i,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=l):(n=t[1],r=t[2],i=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?jw:"button";let f;t[6]!==n||t[7]!==i||t[8]!==l?(f=nae(rae({variant:l,size:i,className:n})),t[6]=n,t[7]=i,t[8]=l,t[9]=f):f=t[9];let m;return t[10]!==d||t[11]!==r||t[12]!==f?(m=T.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=m):m=t[13],m}const CM="__mesh_chunk_reload_ts";function AM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class ice extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),kD(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:T.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class iae extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=AM(t);if(kD(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const i=sessionStorage.getItem(CM),s=Date.now();(!i||s-Number(i)>1e4)&&(sessionStorage.setItem(CM,String(s)),window.location.reload())}render(){return this.state.hasError&&AM(this.state.error)?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:T.jsx($D,{className:"h-6 w-6 text-primary"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),T.jsx(W1,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}const oae="MCP Workflows",sae="Create workflows using your MCP tools",aae=I.lazy(()=>At(()=>import("./plugin-header-BzceyGQx.js"),__vite__mapDeps([0,1,2]))),lae=I.lazy(()=>At(()=>import("./plugin-empty-state-peVJXJ6R.js"),[])),cae={id:oae,description:sae,bindingName:"WORKFLOW",renderHeader:e=>T.jsx(aae,{...e}),renderEmptyState:()=>T.jsx(lae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:T.jsx(DD,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},uae=[cae],ma=t7({component:()=>T.jsx(iae,{children:T.jsx(tae,{children:T.jsx(I.Suspense,{fallback:T.jsx(jD,{}),children:T.jsx(mP,{})})})})}),dae=mt({getParentRoute:()=>ma,path:"/login",component:It(()=>At(()=>import("./login-MOfMmqEE.js"),__vite__mapDeps([3,4]))),validateSearch:ul(()=>Ee({next:z().optional(),client_id:z().optional(),redirect_uri:z().optional(),response_type:z().optional(),state:z().optional(),scope:z().optional(),code_challenge:z().optional(),code_challenge_method:z().optional()}))}),fae=mt({getParentRoute:()=>ma,path:"/reset-password",component:It(()=>At(()=>import("./reset-password-CKXtWBt4.js"),__vite__mapDeps([5,4]))),validateSearch:ul(()=>Ee({token:z().optional(),error:z().optional()}))}),hae=mt({getParentRoute:()=>ma,path:"/auth/$pathname",component:It(()=>At(()=>import("./auth-catchall-D7pOW-4H.js"),[]))}),pae=mt({getParentRoute:()=>ma,path:"/oauth/callback",component:It(()=>At(()=>import("./oauth-callback-Bpfn3wkA.js"),[]))}),mae=mt({getParentRoute:()=>ma,path:"/oauth/callback/ai-provider",component:It(()=>At(()=>import("./oauth-callback-ai-provider-BzHKlMUG.js"),[]))}),rE=mt({getParentRoute:()=>ma,id:"shell",component:It(()=>At(()=>import("./shell-layout-D-2Zmpp8.js").then(e=>e.s),__vite__mapDeps([6,7,8,9,10,11,12,13,14,15])))}),gae=mt({getParentRoute:()=>rE,path:"/",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(!e)return;const t=localStorage.getItem(Rg.lastOrgSlug());if(t){if(e.some(i=>i.slug===t))throw Oc({to:"/$org",params:{org:t}});localStorage.removeItem(Rg.lastOrgSlug())}const n=e[0];throw Oc(n?{to:"/$org",params:{org:n.slug}}:{to:"/onboarding"})}}),vae=mt({getParentRoute:()=>ma,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(e&&e.length>0)throw Oc({to:"/"})},component:It(()=>At(()=>import("./onboarding-BHY99bnn.js"),__vite__mapDeps([16,9,4,17,18,19,20])))}),iE=mt({getParentRoute:()=>rE,path:"/$org",component:It(()=>At(()=>import("./org-layout-BA9WvOcB.js"),[]))}),oE=mt({getParentRoute:()=>iE,id:"org-shell",component:It(()=>At(()=>import("./index-xIOMtHnW.js"),__vite__mapDeps([21,22,23,8,24,25,26,27,28,29,30,31,32,33,18,19,1,2,34,35,36,37,38,20,39,40,15,41,42,43,44,45,46,47,48,6,7,9,10,11,12,13,14,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,17,4,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106])))}),sE=mt({getParentRoute:()=>oE,id:"agent-shell",component:It(()=>At(()=>import("./index-CsGGI0Nu.js"),__vite__mapDeps([107,69,7,8,70,4,71,11,12,72,73,56,29,74,39,75,1,15,25,26,27,28,30,31,32,33,18,19,2,34,35,36,37,38,20,22,23,40,41,42,43,44,45,46,47,48,76,77,78,63,60,68,55,57,58,59,10,13,6,9,14,49,50,51,52,53,54,79,66,17,80,81,82,83,61,84,85,86,87,64,65,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,108,109,62,24,67,103,104,105,106,110,111,112,113,114,115,116,117,118])))}),_ae=Ee({virtualmcpid:z().optional(),tab:z().optional(),main:z().optional(),id:z().optional(),toolName:z().optional(),tasks:St().optional(),mainOpen:St().optional(),chat:St().optional(),autosend:z().optional()}),O6=mt({getParentRoute:()=>sE,path:"/$taskId",validateSearch:_ae,component:()=>null}),yae=mt({getParentRoute:()=>oE,path:"/",component:It(()=>At(()=>import("./index-xj-daVDj.js"),__vite__mapDeps([119,60,37,25,26,27,28,29,30,31,32,33,18,19,1,2,34,35,36,38,20,39,22,23,8,40,15,41,42,43,44,45,46,47,48,61,12,56,11,13,72,73,7,74,75,71,76,77,78,63,68,69,70,4,55,57,58,59,10,6,9,14,49,50,51,52,53,54,79,66,17,80,81,82,83,84,85,86,87,64,65,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,104])))}),Pn=mt({getParentRoute:()=>iE,path:"/settings",component:It(()=>At(()=>import("./settings-layout-BNHNlQuI.js"),__vite__mapDeps([120,22,23,8,30,33,18,34,15,45,47,48,110,91,58,59])))}),bae=mt({getParentRoute:()=>Pn,path:"/",beforeLoad:({params:e})=>{throw Oc({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),wae=mt({getParentRoute:()=>Pn,path:"/connections",component:It(()=>At(()=>import("./connections-BCRN-YI1.js"),__vite__mapDeps([121,77,78,122,80,1,34,36,28,23,115,98,117,39,97,93,92,94,71,11,12,13,95,96,76,87,60,37,25,26,27,29,30,31,32,33,18,19,2,35,38,20,22,8,40,15,41,42,43,44,45,46,47,48,105,123,65,101,124,125,75,7,63,66,17,4,81,99,56,100]))),validateSearch:ul(()=>Ee({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),Sae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug",component:It(()=>At(()=>import("./connection-detail-AvrFqpFh.js"),__vite__mapDeps([126,77,78,105,100,4,43,46,127,12,68,25,26,27,28,29,30,31,32,33,18,19,1,2,34,35,36,37,38,20,39,22,23,8,40,15,41,42,44,45,47,48,71,11,128,129,76,94,13,81,109,62,56,104,73,113,98,54,130,131,64,79,60,66,17,123,65,132,133,92,74,87,80]))),validateSearch:ul(()=>Ee({tab:z().optional()}))}),Eae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug/$collectionName/$itemId",component:It(()=>At(()=>import("./collection-detail-D12l8837.js"),__vite__mapDeps([134,105,11,12,66,17,4,99,132,22,23,8,135,128,78,129,56,136,50,111,25,26,27,28,29,30,31,32,33,18,19,1,2,34,35,36,37,38,20,39,40,15,41,42,43,44,45,46,47,48,98,81,115,71,68,7,90,80,60,114,67,137,59,54,127,76,77,94,13,109,62,104,73,92,113,53,55,57,58,10,6,9,14]))),validateSearch:ul(()=>Ee({replayId:z().optional()}))}),xae=mt({getParentRoute:()=>Pn,path:"/monitor",component:It(()=>At(()=>import("./index-DuYWPwRk.js"),__vite__mapDeps([138,117,39,22,23,8,105,98,62,1,31,42,25,26,27,28,29,30,32,33,18,19,2,34,35,36,37,38,20,40,15,41,43,44,45,46,47,48,136,50,130,131,71,11,12,56,4,75,108,109,81,114,99,97,70,17,60,64,87,133,129,68,92,102,96,139,101,95,49,51,52,7,53,54,55,57,58,59,10,13,6,9,14,106]))),validateSearch:ul(()=>Ee({tab:dn(["overview","audit","threads"]).default("overview"),from:z().default("now-30m"),to:z().default("now"),connectionId:Ie(z()).optional().default([]),virtualMcpId:Ie(z()).optional().default([]),tool:z().default(""),status:dn(["all","success","errors"]).default("all"),search:z().default(""),page:St().optional(),streaming:Pt().default(!0),propertyFilters:z().default(""),hideSystem:Pt().default(!1)}))}),Rae=mt({getParentRoute:()=>Pn,path:"/general",component:It(()=>At(()=>import("./general-Dq8oAlWK.js"),__vite__mapDeps([140,22,23,8,131,85,64,47,4,86,87,32,141,89,12,70,103,39,56,11,62,61,25,26,27,28,29,30,31,33,18,19,1,2,34,35,36,37,38,20,40,15,41,42,43,44,45,46,48,60,13])))}),Oae=mt({getParentRoute:()=>Pn,path:"/features",component:It(()=>At(()=>import("./features-n_p9V38c.js"),__vite__mapDeps([142,22,23,8,13,12,70,37,86,87,32])))}),Tae=mt({getParentRoute:()=>Pn,path:"/brand-context",component:It(()=>At(()=>import("./brand-context-BUYExxZ2.js"),__vite__mapDeps([143,12,2,34,38,40,43,46,48,65,4,99,22,23,8,89,85])))}),Cae=mt({getParentRoute:()=>Pn,path:"/ai-providers",component:It(()=>At(()=>import("./ai-providers-Dw3vAL7u.js"),__vite__mapDeps([144,83,75,1,4,7,8,63,23,81,2,35,61,27,29,39,44,57,12,55,56,11,58,59,10,13,84,48,85,26,19,46,22,86,87,32,70,82,64,47,65,88,52,89])))}),Aae=mt({getParentRoute:()=>Pn,path:"/members",component:It(()=>At(()=>import("./members-Bb0t0cOy.js"),__vite__mapDeps([145,122,80,1,34,36,28,23,115,98,117,39,22,8,146,139,105,7,66,17,81,2,35,99,131,147,130,12,65,64,47,87,45,46,75,108,109,62,43])))}),Iae=mt({getParentRoute:()=>Pn,path:"/roles",component:It(()=>At(()=>import("./roles-CR6ZAjq-.js"),__vite__mapDeps([148,147,131,98,65,80,1,34,36,15,43,46,146,139,28,22,23,8,105,117,39,84,60,37,25,26,27,29,30,31,32,33,18,19,2,35,38,20,40,41,42,44,45,47,48,101,75,102,96,12,74,130,71,11,57,64,70,86,87]))),validateSearch:ul(()=>Ee({role:z().optional()}))}),Mae=mt({getParentRoute:()=>Pn,path:"/sso",component:It(()=>At(()=>import("./sso-B3TyJ2uc.js"),__vite__mapDeps([149,141,89,12,70,86,87,32,22,23,8,4,14,46])))}),Pae=mt({getParentRoute:()=>Pn,path:"/profile",component:It(()=>At(()=>import("./profile-3DZrk3WT.js"),__vite__mapDeps([150,22,23,8,64,47,70,81,1,2,35,82,4,41,42,85,91,67,86,87,32])))}),Nae=mt({getParentRoute:()=>Pn,path:"/store",component:It(()=>At(()=>import("./store-CIHVOnJ4.js"),__vite__mapDeps([151,26,34,43,46,4,70,61,64,47,62,71,11,12,22,23,8,94,13,86,87,32])))}),kae=mt({getParentRoute:()=>Pn,path:"/registry",component:It(()=>At(()=>import("./registry-4PJ4DDSp.js"),[]))}),Dae=mt({getParentRoute:()=>Pn,path:"/store/registry",component:It(()=>At(()=>import("./store-registry-DKNEpxY8.js"),[]))}),Lae=mt({getParentRoute:()=>Pn,path:"/workflows",component:It(()=>At(()=>import("./workflow-zflBzFOe.js"),__vite__mapDeps([152,12,77,78,122,80,1,34,36,28,23,115,98,74,39,87,60,37,25,26,27,29,30,31,32,33,18,19,2,35,38,20,22,8,40,15,41,42,43,44,45,46,47,48,146,139,137,112,64,105,124,125,92,65,11,71,132])))}),$ae=mt({getParentRoute:()=>Pn,path:"/workflows/$itemId",component:It(()=>At(()=>import("./workflow-detail-BkYNroDK.js"),__vite__mapDeps([153,135,128,12,78,129,56,11,136,50,111,25,26,27,28,29,30,31,32,33,18,19,1,2,34,35,36,37,38,20,39,22,23,8,40,15,41,42,43,44,45,46,47,48,98,81,115,132,71,68,7,90,80,60,114,67,137,59,4])))}),jae=mt({getParentRoute:()=>sE,path:"/plugins/$pluginId",component:It(()=>At(()=>import("./org-plugin-layout-D8vjiGLz.js"),__vite__mapDeps([154,155,71,11,12,44,22,23,8])))}),Uae=mt({getParentRoute:()=>Pn,path:"/agents",component:It(()=>At(()=>import("./agents-list-C9eV3yHD.js"),__vite__mapDeps([156,80,1,34,36,18,72,12,73,56,11,7,8,29,74,39,75,71,15,25,26,27,28,30,31,32,33,19,2,35,37,38,20,22,23,40,41,42,43,44,45,46,47,48,76,77,78,63,60,68,87,88,52,105,104,65,117])))}),zae=mt({getParentRoute:()=>Pn,path:"/automations",component:It(()=>At(()=>import("./automations-CASAuVDl.js"),__vite__mapDeps([157,43,48,117,39,22,23,8,105,116,65,80,1,34,36,25,26,27,28,29,30,31,32,33,18,19,2,35,37,38,20,40,15,41,42,44,45,46,47,56,11,12,73])))}),T6=mt({getParentRoute:()=>O6,path:"/$pluginId",component:It(()=>At(()=>import("./dynamic-plugin-layout-DiwAyewI.js"),__vite__mapDeps([158,155,71,11,12,44,22,23,8])))}),Fae=[],Bae=[],Vae=[],C6=[];uae.forEach(e=>{if(!e.setup)return;const t={parentRoute:T6,routing:{createRoute:mt,lazyRouteComponent:It},registerRootSidebarItem:n=>Fae.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Bae.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>Vae.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{C6.push(...n)}};e.setup(t)});const qae=T6.addChildren(C6),Hae=Pn.addChildren([bae,wae,Sae,Eae,Uae,zae,xae,Rae,Oae,Tae,Cae,Aae,Iae,Mae,Pae,Nae,Dae,kae,Lae,$ae]),Gae=O6.addChildren([qae]),Kae=sE.addChildren([Gae,jae]),Zae=oE.addChildren([yae,Kae]),Yae=iE.addChildren([Zae,Hae]),Wae=rE.addChildren([gae,Yae]),Qae=ma.addChildren([Wae,vae,dae,fae,hae,pae,mae]),Xae=u7({routeTree:Qae,defaultNotFoundComponent:()=>T.jsx("div",{className:"flex h-full items-center justify-center",children:T.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[T.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),T.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),T.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})}),Jae=document.getElementById("root");Q$.createRoot(Jae).render(T.jsx(I.StrictMode,{children:T.jsx(h7,{router:Xae})}));export{KM as $,Mle as A,W1 as B,To as C,tG as D,ice as E,ece as F,nce as G,Ee as H,St as I,z as J,GM as K,fw as L,$D as M,cle as N,mP as O,Yse as P,Gse as Q,Rg as R,jD as S,LJ as T,Yr as U,Jle as V,Fae as W,Bae as X,oae as Y,DD as Z,At as _,kj as a,Ye as a$,sle as a0,xo as a1,eee as a2,ht as a3,no as a4,cW as a5,uW as a6,yn as a7,lt as a8,dW as a9,t3 as aA,sY as aB,cY as aC,aY as aD,ZZ as aE,Ole as aF,Vae as aG,tle as aH,Ut as aI,Xt as aJ,Ie as aK,JH as aL,Xle as aM,Qle as aN,HS as aO,vg as aP,DY as aQ,x3 as aR,X4 as aS,lf as aT,ta as aU,kY as aV,ds as aW,y4 as aX,jw as aY,Wr as aZ,Pt as a_,fW as aa,mW as ab,bW as ac,I3 as ad,fl as ae,hW as af,pW as ag,gW as ah,vW as ai,_W as aj,yW as ak,wW as al,EW as am,xW as an,Ig as ao,dn as ap,fC as aq,Q1 as ar,iY as as,ro as at,Kd as au,Ww as av,jc as aw,aa as ax,fs as ay,io as az,Mg as b,nZ as b$,RV as b0,BP as b1,pw as b2,Rk as b3,Tk as b4,YW as b5,Wn as b6,wQ as b7,d3 as b8,Q4 as b9,wre as bA,xre as bB,Dre as bC,Zre as bD,Qre as bE,bre as bF,Sre as bG,Rre as bH,Ore as bI,Lre as bJ,qre as bK,qle as bL,uae as bM,pV as bN,ule as bO,mle as bP,gq as bQ,ul as bR,VN as bS,GN as bT,fle as bU,rce as bV,rG as bW,nG as bX,u4 as bY,pf as bZ,eZ as b_,rae as ba,la as bb,ne as bc,ele as bd,iZ as be,Lle as bf,uP as bg,ca as bh,as as bi,Dle as bj,$le as bk,rn as bl,dle as bm,qN as bn,zre as bo,Fre as bp,VS as bq,l6 as br,qS as bs,nv as bt,GD as bu,tie as bv,ZD as bw,Wre as bx,cie as by,yre as bz,nae as c,n6 as c$,rZ as c0,af as c1,qM as c2,Aj as c3,S3 as c4,wY as c5,Fw as c6,h3 as c7,k4 as c8,Bw as c9,Wle as cA,eoe as cB,pt as cC,Hoe as cD,to as cE,XW as cF,fP as cG,Ale as cH,oZ as cI,sZ as cJ,tZ as cK,aZ as cL,Bz as cM,HD as cN,YD as cO,XD as cP,e6 as cQ,t6 as cR,r6 as cS,Ble as cT,Vle as cU,zle as cV,Fle as cW,Jne as cX,Ule as cY,WD as cZ,JD as c_,Gd as ca,R4 as cb,zw as cc,Uw as cd,SY as ce,EY as cf,oQ as cg,sQ as ch,iQ as ci,Or as cj,lle as ck,QH as cl,YH as cm,HH as cn,n4 as co,HV as cp,Sw as cq,EV as cr,hle as cs,ZV as ct,xw as cu,Ew as cv,XV as cw,ple as cx,Yle as cy,_se as cz,dw as d,Gle as d0,QD as d1,Zle as d2,kS as d3,fre as d4,jle as d5,qD as d6,Die as d7,Vre as d8,Kle as d9,Tie as da,Iie as db,die as dc,uie as dd,Hle as de,gle as df,BW as dg,VW as dh,GW as di,qW as dj,HW as dk,yle as dl,ble as dm,xle as dn,Rle as dp,Tle as dq,Ele as dr,Sle as ds,wle as dt,_le as du,vle as dv,UM as dw,yO as dx,rle as dy,nle as dz,Ro as e,rf as f,uw as g,Ple as h,Ile as i,T as j,Nle as k,LD as l,tce as m,Nj as n,nw as o,PM as p,Zn as q,I as r,Xne as s,kle as t,ale as u,ole as v,HM as w,RT as x,NS as y,Oo as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as ae,r as R,f as cn,s as lt,j as s,B as ne,x as qe,c as le,ba as Rn,n as Ys,K as At,E as os,d as zs,t as Bt}from"./index-
|
|
1
|
+
import{e as ae,r as R,f as cn,s as lt,j as s,B as ne,x as qe,c as le,ba as Rn,n as Ys,K as At,E as os,d as zs,t as Bt}from"./index-DeZ4lzZS.js";import{S as Bs}from"./search-input-D2W6-i9v.js";import{r as is,c as ls,d as cs,e as ds,P as Ue}from"./index-Cnr3iyKb.js";import{E as dn}from"./empty-state-BAo1HEab.js";import{B as Ke}from"./badge-CYxiHq4p.js";import{b as ct,P as dt,a as ut}from"./popover-BWJBmR0W.js";import{T as Mt,a as kt,b as Ct}from"./tooltip-CzbSAgXQ.js";import{i as Ht}from"./Check-C936sYYN.js";import{e as un,c as _t,n as Wn}from"./XCircle-CGvUuorr.js";import{a as Hs}from"./SearchMd-DJcqe9YA.js";import{i as qs}from"./Play-CX-s0F5M.js";import{X as Vs,Y as Us,x as Ks,W as Gs}from"./agent-icon-D59FxHod.js";import{M as An}from"./monaco-editor-B3eeVSHt.js";import{u as Qs}from"./use-members-B7wVCVZJ.js";import{u as $n}from"./use-connection-DbYn3h0U.js";import{S as mn,u as fn,i as Js,g as Xs,d as Zs}from"./constants-DfKy425l.js";import{b as ea}from"./use-virtual-mcp-DNHpowZu.js";import{n as Ge}from"./Container-W30Qs4TE.js";import{c as ta}from"./XClose-C4DzyMov.js";import{s as na}from"./Plus-CxH8Dky0.js";import{s as sa}from"./Trash01-DKdnsDmj.js";import{I as pt}from"./input-BbtZTtIz.js";import{C as Yn}from"./checkbox-B5zXb2Jo.js";import{t as gt}from"./ChevronDown-D9-4IfgQ.js";import{d as aa,C as ra,b as zn,e as oa,a as ia,f as la}from"./command-Dl-gUn28.js";import{a as Pt,b as Tt,c as Ot,d as Re,S as Ft}from"./select-CACnwoTF.js";import{S as ca}from"./scroll-area-CpFD8S3R.js";import{n as da}from"./ZapSquare-DKEusvEW.js";import{i as ua}from"./ChevronRight-DYzYB9o2.js";import{T as ma}from"./textarea-CxPy3ZTN.js";import{C as us}from"./collection-tabs-lx0xcUeS.js";import{S as fa}from"./switch-Cym1wsqe.js";import{L as ha}from"./label-B56NHqZu.js";import{I as ze}from"./integration-icon-CX-4HHYz.js";import{A as $t}from"./avatar-ChukgIuT.js";import{C as ms}from"./card-CuKTvJk_.js";import{K as st}from"./monitoring-stats-row-BOj9NNqP.js";import{c as fs}from"./use-mcp-tools-LXbg-7b0.js";import{g as xa}from"./connection-slug-eyAPH6o3.js";import{u as hs}from"./useSuspenseInfiniteQuery-B4Xtg3B8.js";import{T as ke,a as mt,b as hn,c as xn,d as pn,e as ce}from"./table-DjvJngLq.js";import{n as xs}from"./ChevronUp-DjhQ54oJ.js";import{u as gn}from"./use-infinite-scroll-61_2Ymdd.js";import{u as pa}from"./useInfiniteQuery-DsFcYHS7.js";import{w as ga,x as va}from"./pair-CqzVS7FB.js";import{S as Lt}from"./task-status-BhHFrQR1.js";import"./X-CXRgDFum.js";import"./AlertCircle--wiBhyBy.js";import"./Tool01-zaCqe86u.js";import"./RefreshCcw01-DUZtukjI.js";import"./ArrowNarrowLeft-DUEFTkCU.js";import"./ArrowUpRight-ByDFdIYO.js";import"./Users03-DEpz3kvM.js";import"./CheckCircle-CIhRIzNe.js";import"./DotsVertical-BTQcMhn-.js";import"./Star01-Dl0-D7bS.js";import"./Palette-BkIcRAuI.js";import"./LinkExternal01-BWQuO7gD.js";import"./Lock01-CzswZlFM.js";import"./Sun-DZgB_ONP.js";import"./Settings02-19U6Pasa.js";import"./Shield01-C1y1P7P6.js";import"./User01-kuDW4DKu.js";import"./Zap-Cl0ETvvt.js";import"./index-PaARzNIj.js";import"./use-org-auth-client-CZ46-R8H.js";import"./use-collections-DSBDbO1N.js";import"./index-x86r1Bar.js";import"./index-aqFN5mzK.js";import"./infiniteQueryObserver-B8wlRxFU.js";import"./use-copy-B8mhVwfc.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./dialog-De2L-Mm9.js";import"./content-blocks-o63cs2vh.js";import"./types-DxewxD-a.js";import"./chat-context-Cmw2lxUK.js";import"./use-ai-providers-CHzON1wD.js";import"./use-decopilot-events-C1f4EaaO.js";import"./create-sse-subscription-CxkOgzKf.js";import"./use-tasks-DYLdIMjk.js";import"./use-organization-settings-CgpGj7yV.js";import"./shell-layout-D-2Zmpp8.js";import"./required-auth-layout-C4TIYyDi.js";import"./use-org-sso-iwRxmcvL.js";const tn={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function Qe(t){return t.filter(e=>e.key.trim()).map(e=>{const n=encodeURIComponent(e.key.trim()),a=encodeURIComponent(e.value||"");return`${n}:${e.operator}:${a}`}).join(",")}function ba(t){return t?t.split(",").map(e=>{const[n,a,...r]=e.split(":");return{key:decodeURIComponent(n||""),operator:a||"eq",value:decodeURIComponent(r.join(":")||"")}}):[]}function St(t){return t.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
|
|
2
2
|
`)}function Bn(t){return t.trim()?t.split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[n,...a]=e.split("=");return{key:n||"",operator:"eq",value:a.join("=")}}if(e.includes("~")){const[n,...a]=e.split("~");return{key:n||"",operator:"contains",value:a.join("~")}}if(e.includes("@")){const[n,...a]=e.split("@");return{key:n||"",operator:"in",value:a.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function ya(t){const e={},n={},a=[],r={};for(const o of t)if(o.key.trim())switch(o.operator){case"eq":o.value&&(e[o.key]=o.value);break;case"contains":o.value&&(n[o.key]=`%${o.value}%`);break;case"exists":a.push(o.key);break;case"in":o.value&&(r[o.key]=o.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(n).length>0?n:void 0,propertyKeys:a.length>0?a:void 0,propertyInValues:Object.keys(r).length>0?r:void 0}}function Hn(t){if(!t)return{content:"null",isTruncated:!1,originalSize:4};if(typeof t._decocms_truncated=="string")return{content:t._decocms_truncated,isTruncated:!0,originalSize:t._decocms_truncated.length};const e=JSON.stringify(t,null,2),n=e.length;return n<=tn.maxJsonRenderSize?{content:e,isTruncated:!1,originalSize:n}:{content:e.slice(0,tn.maxJsonRenderSize)+`
|
|
4
4
|
|