decocms 4.372.3 → 4.373.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-CMjsP_Tk.js → AlertCircle-2L7lI8NL.js} +1 -1
- package/dist/client/assets/{AreaChart-Bh_grNQZ.js → AreaChart-BSJ08P7a.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CjYy5Nhj.js → ArrowLeft-8rouBEwC.js} +1 -1
- package/dist/client/assets/{ArrowRight-CLncCNat.js → ArrowRight-DCA5zjxW.js} +1 -1
- package/dist/client/assets/{ArrowUp-Cii1LHW7.js → ArrowUp-BtksDHBQ.js} +1 -1
- package/dist/client/assets/{CartesianChart-CD-5y_pX.js → CartesianChart-BbOaLmfq.js} +1 -1
- package/dist/client/assets/{CheckCircle-DHXQFnpK.js → CheckCircle-BmVuh1xp.js} +1 -1
- package/dist/client/assets/{ChevronUp-DiYhGG4T.js → ChevronUp-fg9sod-H.js} +1 -1
- package/dist/client/assets/{Copy01-nMxlBfeT.js → Copy01-BgwuTJFm.js} +1 -1
- package/dist/client/assets/{CreditCard01-CWXVH3ZM.js → CreditCard01-CIt471eG.js} +1 -1
- package/dist/client/assets/DotsVertical-CE2o6L6N.js +1 -0
- package/dist/client/assets/{Download01-BRrSA3Yx.js → Download01-DNhEQzg0.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-fXvhmekg.js → ErrorBarContext-DxNax47N.js} +1 -1
- package/dist/client/assets/{Eye-Dyg2WPG4.js → Eye-Dq6Vw6FI.js} +1 -1
- package/dist/client/assets/{Globe01-D6FaaFR2.js → Globe01-g_y8gAs1.js} +1 -1
- package/dist/client/assets/{Users03-Y0Jco4zL.js → Globe04-GFiRExL0.js} +1 -1
- package/dist/client/assets/{Image01-CxnjAzbb.js → Image01-QB6twEDu.js} +1 -1
- package/dist/client/assets/{Key01-CIXwHMRo.js → Key01-CO_i2QPb.js} +1 -1
- package/dist/client/assets/LayoutLeft-BfySK4h8.js +1 -0
- package/dist/client/assets/{Line-YO4Ozgbt.js → Line-Cr57fOtp.js} +1 -1
- package/dist/client/assets/{Link01-C0FvgZZB.js → Link01-BIFMl_M0.js} +1 -1
- package/dist/client/assets/{LinkExternal01-AWlhN5o7.js → LinkExternal01-DQD59o7F.js} +1 -1
- package/dist/client/assets/{Monitor01-Ccs1gh2Z.js → Monitor01-Ddm2yOG6.js} +1 -1
- package/dist/client/assets/{Package-nTbucmaQ.js → Package-CvzEol5_.js} +1 -1
- package/dist/client/assets/{Palette-DSdn1Xis.js → Palette-DT856bn6.js} +1 -1
- package/dist/client/assets/{Play-lMuWOObF.js → Play-wYDcJhBq.js} +1 -1
- package/dist/client/assets/{Plus-CVauOqLT.js → Plus-BSp00qOC.js} +1 -1
- package/dist/client/assets/{SearchLg-BrrPVuXr.js → SearchLg-DFD1t2UL.js} +1 -1
- package/dist/client/assets/{SearchMd-C45D2PMI.js → SearchMd-Bb5gjLcX.js} +1 -1
- package/dist/client/assets/{Sector-9mXbxJ9i.js → Sector-wViCnB96.js} +5 -5
- package/dist/client/assets/{Settings02-Cyf85ea0.js → Settings02-D9Qv7BDm.js} +1 -1
- package/dist/client/assets/{Share07-wC47qn2E.js → Share07-CZ7JzYs9.js} +1 -1
- package/dist/client/assets/{Stars01-oAh9h5b5.js → Stars01-D-wYuyik.js} +1 -1
- package/dist/client/assets/{Sun-0Ied-kyZ.js → Sun-DLRcOzSd.js} +1 -1
- package/dist/client/assets/Tool01-Dwy1nlT9.js +1 -0
- package/dist/client/assets/{Tool02-CATStXCy.js → Tool02-CvlAGFBM.js} +1 -1
- package/dist/client/assets/{Trash01-nl-t4IoV.js → Trash01-DtE0n00a.js} +1 -1
- package/dist/client/assets/{TrendUp01-BFAEMx9E.js → TrendUp01-BCriuXJd.js} +1 -1
- package/dist/client/assets/{Upload01-B4Fqdkae.js → Upload01-Ba-RLxE1.js} +1 -1
- package/dist/client/assets/{User01-ClMaVCaJ.js → User01-DHd46PZp.js} +1 -1
- package/dist/client/assets/{UserSquare-B2lKdt4w.js → UserSquare-CcF49LHs.js} +1 -1
- package/dist/client/assets/{Users01-BFhxJVhO.js → Users01-B8gdz27Y.js} +1 -1
- package/dist/client/assets/{X-CFCE4a-Q.js → X-BtMi8Qau.js} +1 -1
- package/dist/client/assets/{XCircle-CleKT0Id.js → XCircle-BLCHBIhx.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DpXsFGyJ.js → XClose-CvcHLHe2.js} +1 -1
- package/dist/client/assets/{Zap-B6zkqKWB.js → Zap-DZAIluO6.js} +1 -1
- package/dist/client/assets/ZoomOut-DUFJq3-K.js +1 -0
- package/dist/client/assets/{access-gate-Ds4n25mC.js → access-gate-C9Dl5e5c.js} +1 -1
- package/dist/client/assets/add-connection-dialog-DA05asFs.js +1 -0
- package/dist/client/assets/agent-analytics-CDo5Hugr.js +2 -0
- package/dist/client/assets/agent-app-lfl4wDqj.js +1 -0
- package/dist/client/assets/agent-assets-6UK-ev9d.js +1 -0
- package/dist/client/assets/agent-automation-BC-cMvrG.js +20 -0
- package/dist/client/assets/agent-automations-CnHTcvU7.js +1 -0
- package/dist/client/assets/agent-connect-sources-CJ8artss.js +1 -0
- package/dist/client/assets/agent-deck-BCZ0G4O2.js +1 -0
- package/dist/client/assets/agent-e2e-Cj1Q_JS0.js +1 -0
- package/dist/client/assets/agent-experiments-DJ13yAp9.js +1 -0
- package/dist/client/assets/agent-file-DbKP1r-4.js +1 -0
- package/dist/client/assets/{agent-git-D4IYczGa.js → agent-git-B8LMQ2zl.js} +2 -2
- package/dist/client/assets/agent-hosting-Bm-WxahY.js +1 -0
- package/dist/client/assets/agent-icon-CTsmTxHg.js +1 -0
- package/dist/client/assets/agent-library-file-DvybgEEZ.js +1 -0
- package/dist/client/assets/agent-monitor-DgVt0zbx.js +1 -0
- package/dist/client/assets/agent-overview-pOglhwpN.js +1 -0
- package/dist/client/assets/agent-settings-Bx-Ya3hQ.js +1 -0
- package/dist/client/assets/{agent-site-editor-DJSdtoNU.js → agent-site-editor-DVT-M9T0.js} +13 -13
- package/dist/client/assets/agent-site-editor-code-DpPWdLwT.js +2 -0
- package/dist/client/assets/agent-site-editor-content-eM0WchN0.js +2 -0
- package/dist/client/assets/agent-site-editor-preview-3VO_kTqr.js +518 -0
- package/dist/client/assets/{agent-view-guard-DHJpzCVR.js → agent-view-guard-BNYKK-x9.js} +1 -1
- package/dist/client/assets/agent-view-v-h5B6vN.js +1 -0
- package/dist/client/assets/agents-list-BXPjUzIN.js +1 -0
- package/dist/client/assets/{ai-providers-jxGd6MbV.js → ai-providers-BAmCFPvS.js} +2 -2
- package/dist/client/assets/{alert-U2IStW1f.js → alert-C8o4-kn8.js} +1 -1
- package/dist/client/assets/{alert-dialog-BI-B_8hq.js → alert-dialog-9n2p5SCQ.js} +2 -2
- package/dist/client/assets/api-keys-Cu1KdEtK.js +1 -0
- package/dist/client/assets/api-keys-DCurVLgh.js +1 -0
- package/dist/client/assets/app-editor-C3QSidsO.js +1 -0
- package/dist/client/assets/asset-utils-CK3Em4fb.js +1 -0
- package/dist/client/assets/{auth-DhzAq_9m.js → auth-BBW3DF0r.js} +1 -1
- package/dist/client/assets/{auth-catchall-Dar7OygY.js → auth-catchall-Bva2z4Gj.js} +1 -1
- package/dist/client/assets/auth-entry-BuHqwUIr.js +1 -0
- package/dist/client/assets/{auth-split-layout-DLFqjvPt.js → auth-split-layout-DMgxvbll.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DkJ4g-X5.js → authenticate-and-persist-oauth-Pk9b2m8R.js} +1 -1
- package/dist/client/assets/automation-list-row-D-zBLXA-.js +1 -0
- package/dist/client/assets/automation-runs-C8Wbje-n.js +1 -0
- package/dist/client/assets/automations-D69ikqKh.js +1 -0
- package/dist/client/assets/{autosend-BberXmli.js → autosend-CVNOmzPu.js} +1 -1
- package/dist/client/assets/{avatar-C9HiP4eS.js → avatar-BzRNaDEk.js} +1 -1
- package/dist/client/assets/badge-C5M6nZd4.js +1 -0
- package/dist/client/assets/block-document-UPtnFOJG.js +3 -0
- package/dist/client/assets/{blocks-preview-workspace-context-Bwmvvd4S.js → blocks-preview-workspace-context-DAFMxzU6.js} +1 -1
- package/dist/client/assets/breadcrumb-0yy48vm9.js +1 -0
- package/dist/client/assets/{buckets-BndbOAGO.js → buckets-CktpbsrB.js} +1 -1
- package/dist/client/assets/build-improve-prompt-doc-C-SX02eL.js +2 -0
- package/dist/client/assets/bulk-category-panel-MrIv4eD2.js +1 -0
- package/dist/client/assets/calendar-QcX36iLy.js +1 -0
- package/dist/client/assets/capability-load-error-BVb3VEU2.js +1 -0
- package/dist/client/assets/category-editor-DZThBJlF.js +1 -0
- package/dist/client/assets/{chart-8nXuVw9P.js → chart-BVjaATZw.js} +5 -5
- package/dist/client/assets/{chat-context-tZCX_cqt.js → chat-context-ELO8A2Ar.js} +6 -6
- package/dist/client/assets/{chat-draft-BCeqPSxA.js → chat-draft-tDfZTlxU.js} +1 -1
- package/dist/client/assets/checkbox-iGlb02v9.js +1 -0
- package/dist/client/assets/choose-editor-CWLAiGtz.js +1 -0
- package/dist/client/assets/{cli-auth-success-D39z_FO3.js → cli-auth-success-DyNW_Pmq.js} +1 -1
- package/dist/client/assets/{client-icons-DpcP1bht.js → client-icons-BuRYGGKe.js} +1 -1
- package/dist/client/assets/collapsible-PyJ2NOzW.js +1 -0
- package/dist/client/assets/collection-detail-DXmBNKMr.js +1 -0
- package/dist/client/assets/collection-display-button-Cz5AkuIg.js +1 -0
- package/dist/client/assets/{collection-search-J9Bt25gS.js → collection-search-DM8MkJfo.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DBeauaNS.js → collection-table-wrapper-cBr_X4Jo.js} +1 -1
- package/dist/client/assets/collection-tabs-aKKPIP9M.js +1 -0
- package/dist/client/assets/combobox-CQBdlQef.js +1 -0
- package/dist/client/assets/command-CZcxzTcw.js +1 -0
- package/dist/client/assets/{companion-mcps-section-xmRpNJBK.js → companion-mcps-section-B7qgbnOZ.js} +1 -1
- package/dist/client/assets/connect-D6Wz7x6C.js +8 -0
- package/dist/client/assets/connect-layout-DzSDvFP2.js +1 -0
- package/dist/client/assets/{connection-DD0omVHZ.js → connection-DStV2sLP.js} +1 -1
- package/dist/client/assets/connection-card-CpIJKLp3.js +1 -0
- package/dist/client/assets/connection-detail-junbbrHX.js +1 -0
- package/dist/client/assets/{connection-form-helpers-CHlcdgAK.js → connection-form-helpers-DM_wSOEJ.js} +1 -1
- package/dist/client/assets/connections-DvjnCZJT.js +1 -0
- package/dist/client/assets/{create-organization-dialog-1mI4Ad1B.js → create-organization-dialog-CvXOAbwA.js} +1 -1
- package/dist/client/assets/{decofile-api-BNWbEMR6.js → decofile-api-zRlIvvNL.js} +1 -1
- package/dist/client/assets/{decopilot-BvepxP_-.js → decopilot-BI8eOOPY.js} +2 -2
- package/dist/client/assets/dialog-AoC07APJ.js +1 -0
- package/dist/client/assets/discover-zo2iAYFW.js +1 -0
- package/dist/client/assets/domain-settings-C6kSznIr.js +1 -0
- package/dist/client/assets/download-app-dialog-CsiIuf7j.js +1 -0
- package/dist/client/assets/{drawer-BIjkXMV3.js → drawer-DGzquxJ8.js} +1 -1
- package/dist/client/assets/{editor-D4Ls62vg.js → editor-oL1B7LVJ.js} +1 -1
- package/dist/client/assets/{empty-state-BdiOfgle.js → empty-state-DxJQDjCw.js} +1 -1
- package/dist/client/assets/{empty-state-CyICQznD.js → empty-state-Y08kvU5o.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Dbm_cKaX.js → extract-connection-data-C7Wh9xkI.js} +1 -1
- package/dist/client/assets/{feature-gate-Bp7Cydio.js → feature-gate-C1d068b1.js} +1 -1
- package/dist/client/assets/feature-paywall-BoABVlUQ.js +1 -0
- package/dist/client/assets/file-explorer-DG5Gvb-w.js +2 -0
- package/dist/client/assets/{file-preview-CARebwHJ.js → file-preview-iaqpqUYi.js} +1 -1
- package/dist/client/assets/file-share-button-D0lT5ixf.js +3 -0
- package/dist/client/assets/{file-type-icon-C9Qn36v4.js → file-type-icon-lZW2ows7.js} +1 -1
- package/dist/client/assets/{folder-icon-BLBZBD_a.js → folder-icon-DVG7PK8X.js} +1 -1
- package/dist/client/assets/{form-CSXgIHLz.js → form-CYsJTpNM.js} +1 -1
- package/dist/client/assets/{gateway-client-BuiOykcN.js → gateway-client-CnYYocwu.js} +1 -1
- package/dist/client/assets/general-BiYLEv2o.js +1 -0
- package/dist/client/assets/{github-icon-huXDOAgf.js → github-icon-swNUSpAU.js} +1 -1
- package/dist/client/assets/home-BbjS-573.js +1 -0
- package/dist/client/assets/{hooks-BoX5BC-f.js → hooks-BlE0QZwR.js} +2 -2
- package/dist/client/assets/{hooks-DZOMRp7D.js → hooks-D0dDgrIf.js} +1 -1
- package/dist/client/assets/icon-button-7c--Wy5B.js +1 -0
- package/dist/client/assets/{index-BWpNlf6e.js → index-0-s9o3tr.js} +1 -1
- package/dist/client/assets/index-BDYXeKzz.js +1 -0
- package/dist/client/assets/index-BOHOyAF8.css +1 -0
- package/dist/client/assets/{index-tj4CWdxr.js → index-BUfoj27y.js} +1 -1
- package/dist/client/assets/index-BchRuDAc.js +26 -0
- package/dist/client/assets/{index-BD213WLU.js → index-C97O3ClY.js} +1 -1
- package/dist/client/assets/index-CutV0Ygc.js +1 -0
- package/dist/client/assets/{index-DqT4mG5l.js → index-DGY2nhhI.js} +1 -1
- package/dist/client/assets/index-DItj2r3e.js +5 -0
- package/dist/client/assets/index-DKXWNSdB.js +1 -0
- package/dist/client/assets/{index-Bb-Re5q8.js → index-DllcfiZL.js} +1 -1
- package/dist/client/assets/{index-DiULBiX9.js → index-DyCAAYSx.js} +1 -1
- package/dist/client/assets/index-EcuFIS2a.js +235 -0
- package/dist/client/assets/{index-DWw5wi2G.js → index-Exw_Yjch.js} +1 -1
- package/dist/client/assets/{index-2gtoysbs.js → index-fN6RkMSD.js} +1 -1
- package/dist/client/assets/{index-redirect-BQTLrDGT.js → index-redirect-Bm4zqVUy.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CjWlcBHD.js → infiniteQueryObserver-3RxH1tr-.js} +1 -1
- package/dist/client/assets/infra-billing-CmY2herT.js +1 -0
- package/dist/client/assets/input-BrPa4I3Z.js +8 -0
- package/dist/client/assets/input-Buz_7xoG.js +1 -0
- package/dist/client/assets/input-C5klQNJJ.js +1 -0
- package/dist/client/assets/{integration-icon-BeEdjsn9.js → integration-icon-D3FHJbYu.js} +1 -1
- package/dist/client/assets/{label-BMxIRiEr.js → label-BX1BwzZ4.js} +1 -1
- package/dist/client/assets/{last-preview-page-B_H0ubHa.js → last-preview-page-BSVfE6AT.js} +1 -1
- package/dist/client/assets/layout-030aDjqi.js +1 -0
- package/dist/client/assets/legacy-agents-deep-BblX_qPq.js +1 -0
- package/dist/client/assets/legacy-main-redirect-BDaODIKZ.js +1 -0
- package/dist/client/assets/library-CmkU9fCT.js +161 -0
- package/dist/client/assets/{login-C4Dx9xMO.js → login-BpUdj6Fq.js} +1 -1
- package/dist/client/assets/{markdown-DGWjAeXL.js → markdown-VKlC4_bJ.js} +3 -3
- package/dist/client/assets/{mcp-app-renderer-BTjC7Gse.js → mcp-app-renderer-wS7imsel.js} +2 -2
- package/dist/client/assets/{mcp-oauth-C4khbNJJ.js → mcp-oauth-B7YJNr4N.js} +1 -1
- package/dist/client/assets/members-2ZkimP3H.js +1 -0
- package/dist/client/assets/message-templates-DyGM313y.js +1 -0
- package/dist/client/assets/{mini-report-page-Ci4cxCz8.js → mini-report-page-CYdef8vQ.js} +1 -1
- package/dist/client/assets/mock-board-Dk2mRFCa.js +90 -0
- package/dist/client/assets/{monaco-editor-CMRYkmyb.js → monaco-editor-ChRh_qus.js} +2 -2
- package/dist/client/assets/{monitoring-stats-row-PncjnNwy.js → monitoring-stats-row-DirMMFq2.js} +1 -1
- package/dist/client/assets/multi-select-CYKeAXVo.js +1 -0
- package/dist/client/assets/{mustache-CPZS2ebG.js → mustache-BpzqsH6c.js} +1 -1
- package/dist/client/assets/{oauth-callback-CETK2WZB.js → oauth-callback-CLQttSb2.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DqbbngEF.js → oauth-callback-ai-provider-C5AqSldx.js} +1 -1
- package/dist/client/assets/{onboarding-B5zAGi2B.js → onboarding-BYeSkDcE.js} +1 -1
- package/dist/client/assets/optimistic-project-sidebar-views-hB0JGrCs.js +1 -0
- package/dist/client/assets/{org-file-open-context-BCUpiY_R.js → org-file-open-context-D26BTBiX.js} +1 -1
- package/dist/client/assets/{organization-choice-BNulT5zU.js → organization-choice-sm9k2ko4.js} +1 -1
- package/dist/client/assets/orgs-BT6gh3Sc.js +1 -0
- package/dist/client/assets/{page-seo-form-BrHgBXF1.js → page-seo-form-Bhk-2qvu.js} +1 -1
- package/dist/client/assets/{pair-B46EBBjF.js → pair-Bh73YYpe.js} +8 -8
- package/dist/client/assets/plan-ladder-B-hb17ya.js +1 -0
- package/dist/client/assets/{popover-yk_ePqAA.js → popover-Bff85VlI.js} +1 -1
- package/dist/client/assets/post-calendar-BUJnl75O.js +1 -0
- package/dist/client/assets/post-editor-B8ClYTJb.js +1 -0
- package/dist/client/assets/{preview-content-CfbsbElk.js → preview-content-C4FuOpTi.js} +1 -1
- package/dist/client/assets/{preview-dialog-CA2C3DS4.js → preview-dialog-DY1kQ4y_.js} +1 -1
- package/dist/client/assets/primitives-BCCkMTJb.js +1 -0
- package/dist/client/assets/profile-T7ySaz_t.js +1 -0
- package/dist/client/assets/project-app-view-D4HCSkue.js +1 -0
- package/dist/client/assets/project-feed-CRHprIgj.js +1 -0
- package/dist/client/assets/{project-icon-MWmzrrm8.js → project-icon-D_oHwik9.js} +1 -1
- package/dist/client/assets/project-reports-CzVFjEoR.js +1 -0
- package/dist/client/assets/project-tasks-c_cBe8VF.js +1 -0
- package/dist/client/assets/{prompts-4lILOzK9.js → prompts-BuPAnA4R.js} +1 -1
- package/dist/client/assets/record-editor-CHfqyrFA.js +1 -0
- package/dist/client/assets/redirect-editor-BrEMZWAU.js +1 -0
- package/dist/client/assets/registry-4kJYrulU.js +2 -0
- package/dist/client/assets/registry-layout-o90YrVKa.js +27 -0
- package/dist/client/assets/reports-COffkxyo.js +1 -0
- package/dist/client/assets/{reports-BpxYdv2_.js → reports-DEVutxJq.js} +2 -2
- package/dist/client/assets/reports-onboarding-Dt5mvf07.js +1 -0
- package/dist/client/assets/reports-tab-C6PZg0b6.js +2 -0
- package/dist/client/assets/repositories-DBFrDUwl.js +1 -0
- package/dist/client/assets/repository-import-picker-ftg0FRzY.js +1 -0
- package/dist/client/assets/repository-picker-BKj90hIS.js +1 -0
- package/dist/client/assets/{require-capability-CmtOZnXt.js → require-capability-gpVnF6U4.js} +1 -1
- package/dist/client/assets/{required-auth-layout-RoMNnMPO.js → required-auth-layout-BhdxJMdb.js} +1 -1
- package/dist/client/assets/{reset-password-BeUL8IgX.js → reset-password-DD2ixVIR.js} +1 -1
- package/dist/client/assets/resizable-wU1MiASn.js +1 -0
- package/dist/client/assets/review-settings-3uLiRV1J.js +1 -0
- package/dist/client/assets/{rich-text-link-control-CHsxXHIo.js → rich-text-link-control-Bn-QsIS6.js} +2 -2
- package/dist/client/assets/roles-DX_ap2B0.js +1 -0
- package/dist/client/assets/route-Bdqr734y.js +1 -0
- package/dist/client/assets/route-Cg6AOuOY.js +1 -0
- package/dist/client/assets/route-DGhKwFXa.js +1 -0
- package/dist/client/assets/route-page-header-DKm5kHtX.js +1 -0
- package/dist/client/assets/runnable-block-editor-9i5DpxOA.js +16 -0
- package/dist/client/assets/{sandbox-lifecycle-context-C7VKOJoV.js → sandbox-lifecycle-context-BHn9YFEW.js} +2 -2
- package/dist/client/assets/{schema-1zAO-l7e.js → schema-FDf70VFI.js} +1 -1
- package/dist/client/assets/{scroll-area-C-wtbVS1.js → scroll-area-DMmJ7JtI.js} +1 -1
- package/dist/client/assets/search-input-BHVk6m6A.js +1 -0
- package/dist/client/assets/search-toggle-CCC7TvwN.js +1 -0
- package/dist/client/assets/secrets-BNtrMaDs.js +1 -0
- package/dist/client/assets/sections-editor-HtflyYMM.js +2 -0
- package/dist/client/assets/select-DBfOOW9i.js +1 -0
- package/dist/client/assets/select-model-2C5Fdpra.js +1 -0
- package/dist/client/assets/seo-editor-CFULobkJ.js +1 -0
- package/dist/client/assets/separator-8fswVHAH.js +1 -0
- package/dist/client/assets/settings-tab-s3d5MtS-.js +5 -0
- package/dist/client/assets/{sheet-i72Qx7sL.js → sheet-DWSThpSZ.js} +1 -1
- package/dist/client/assets/shell-layout-BQnbNNla.js +1 -0
- package/dist/client/assets/{shell-layout-CuFt8bor.css → shell-layout-CE2Eihra.css} +1 -1
- package/dist/client/assets/sidebar-CoC2_Nad.js +1 -0
- package/dist/client/assets/{skill-preview-gfYVdSdM.js → skill-preview-QgrtYNqp.js} +1 -1
- package/dist/client/assets/skills-BVINvlqv.js +1 -0
- package/dist/client/assets/sso-CSqM_F3b.js +1 -0
- package/dist/client/assets/store-DBNpNTVQ.js +1 -0
- package/dist/client/assets/store-registry-DLmFNBij.js +2 -0
- package/dist/client/assets/{switch-BQFtt3BH.js → switch-BIfmgDHS.js} +1 -1
- package/dist/client/assets/synced-repos-CG_pm_Ch.js +1 -0
- package/dist/client/assets/{table-6I6YKvFY.js → table-CEVOOGGz.js} +1 -1
- package/dist/client/assets/{tabs-CLziM0Ww.js → tabs-Dd0IWElc.js} +1 -1
- package/dist/client/assets/{task-board-DrUf5p-Z.js → task-board-Dip4Wu9j.js} +1 -1
- package/dist/client/assets/task-route-SKFoAFiU.js +1 -0
- package/dist/client/assets/task-status-k7EGfTLN.js +1 -0
- package/dist/client/assets/taskboard-analytics-C3lk9wb7.js +1 -0
- package/dist/client/assets/tasks-Sl_c9zFF.js +1 -0
- package/dist/client/assets/{tasks-Drgd6az8.js → tasks-ebQIYdwz.js} +4 -4
- package/dist/client/assets/textarea-D5v3ol7T.js +1 -0
- package/dist/client/assets/thread-button-C3YUAV-G.js +1 -0
- package/dist/client/assets/{thread-intent-F-sZEflj.js → thread-intent-CTSjhfEo.js} +1 -1
- package/dist/client/assets/thread-route-B57JfaL5.js +1 -0
- package/dist/client/assets/thread-route-CHwqHPf_.js +1 -0
- package/dist/client/assets/thread-sheet-body-Hqh1hVbj.js +1 -0
- package/dist/client/assets/toggle-group-CwAn2mKr.js +1 -0
- package/dist/client/assets/toolbar-icon-button-ChZE-2zp.js +1 -0
- package/dist/client/assets/{tooltip-DV2xHesQ.js → tooltip-nr5oS_bm.js} +1 -1
- package/dist/client/assets/{track-ZuOMvhd2.js → track-BDYWN4z3.js} +1 -1
- package/dist/client/assets/{types-27TVsPN_.js → types-7UQ7SDxU.js} +3 -3
- package/dist/client/assets/usage-stats-YafP0g9G.js +1 -0
- package/dist/client/assets/use-ai-providers-D-abiIwe.js +1 -0
- package/dist/client/assets/use-automations-D_y1YNke.js +1 -0
- package/dist/client/assets/{use-autosave-DOzyZumC.js → use-autosave-z8cIzzdm.js} +1 -1
- package/dist/client/assets/use-connect-companion-jQzCS0Na.js +1 -0
- package/dist/client/assets/use-connection-BKZRi94S.js +1 -0
- package/dist/client/assets/{use-copy-C_ctOeuP.js → use-copy-Cp_DyXH6.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-D1w9d4ex.js → use-create-virtual-mcp-nvoTomrD.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-onM9TTf8.js → use-date-fns-locale-CNoKSvxx.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DqyNKPJM.js → use-debounced-autosave-B0HBbqeX.js} +1 -1
- package/dist/client/assets/{use-debounced-value-B9nG3bW5.js → use-debounced-value-BgYHDTDk.js} +1 -1
- package/dist/client/assets/use-deco-credits-CqbkXgA9.js +1 -0
- package/dist/client/assets/{use-decopilot-events-BpuQrfKN.js → use-decopilot-events-qaEKsixC.js} +1 -1
- package/dist/client/assets/use-delete-connection-CqvqqWgS.js +1 -0
- package/dist/client/assets/{use-deployment-admin-BVfgEagI.js → use-deployment-admin-DzkF6L4b.js} +1 -1
- package/dist/client/assets/{use-entitlements-Dl7pAsQ5.js → use-entitlements-kPr6KRf9.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-mcfOeAAq.js → use-fast-preview-draft-url-BBBDyhsD.js} +1 -1
- package/dist/client/assets/use-file-configs-6ygOocDG.js +1 -0
- package/dist/client/assets/use-in-settings-BCDqA2EC.js +1 -0
- package/dist/client/assets/{use-infinite-scroll-PhBGPm8H.js → use-infinite-scroll-D0T36z_V.js} +1 -1
- package/dist/client/assets/use-join-requests-BBovhUnp.js +1 -0
- package/dist/client/assets/use-main-panel-tabs-BghanH6r.js +1 -0
- package/dist/client/assets/use-mcp-auth-status-h4sAecTI.js +1 -0
- package/dist/client/assets/{use-mcp-client-e_hCatGm.js → use-mcp-client-B_gcvvCy.js} +6 -6
- package/dist/client/assets/{use-mcp-prompts-DJRXjL4_.js → use-mcp-prompts-DfSKL4Gu.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-g86k4oib.js → use-mcp-tools-DC47roTz.js} +1 -1
- package/dist/client/assets/use-members-C6brpkJ1.js +1 -0
- package/dist/client/assets/{use-mobile-hIijCK0k.js → use-mobile-BZ15DgEB.js} +1 -1
- package/dist/client/assets/use-navigate-to-agent-B8SXI0oO.js +1 -0
- package/dist/client/assets/use-open-billing-url-BAg3ZeFq.js +1 -0
- package/dist/client/assets/use-org-auth-client-8fDIgHEZ.js +1 -0
- package/dist/client/assets/use-org-fs-Bf6n51Xm.js +1 -0
- package/dist/client/assets/use-org-repo-syncs-CnBqiATM.js +8 -0
- package/dist/client/assets/{use-org-sso-BvfIL0yq.js → use-org-sso-QeqdMaIa.js} +1 -1
- package/dist/client/assets/use-organization-roles-tuKknI1K.js +1 -0
- package/dist/client/assets/use-organization-settings-DvtBymY3.js +1 -0
- package/dist/client/assets/{use-panel-navigate-WrD0KEYx.js → use-panel-navigate-IItrbgmN.js} +1 -1
- package/dist/client/assets/use-project-native-view-presence-WwnxvZuP.js +1 -0
- package/dist/client/assets/use-project-scope-CCxyXvEU.js +1 -0
- package/dist/client/assets/use-registry-connections-Bd4wJHbx.js +1 -0
- package/dist/client/assets/use-releases-DZvNer89.js +1 -0
- package/dist/client/assets/use-reports-diagnostic-BeTEI2FZ.js +1 -0
- package/dist/client/assets/{use-route-default-main-Djaj_cL9.js → use-route-default-main-BhbKsXCz.js} +1 -1
- package/dist/client/assets/use-secrets-Bq9yyXHE.js +1 -0
- package/dist/client/assets/{use-section-preview-base-BOFovHh4.js → use-section-preview-base--XbKHK2U.js} +1 -1
- package/dist/client/assets/{use-session-runtime-BR1aW1y5.js → use-session-runtime-B5wMaHtP.js} +1 -1
- package/dist/client/assets/use-tags-Do2tDPSO.js +1 -0
- package/dist/client/assets/use-task-board-analytics-MK_Z2cUq.js +1 -0
- package/dist/client/assets/use-task-metadata-CQjLXps1.js +1 -0
- package/dist/client/assets/use-thread-outputs-DYukUH5N.js +1 -0
- package/dist/client/assets/{use-view-mode-B0LeaJg7.js → use-view-mode-BEPkb8x0.js} +1 -1
- package/dist/client/assets/use-virtual-mcp-Ji9vcgUj.js +1 -0
- package/dist/client/assets/useInfiniteQuery-CzQJkRT9.js +1 -0
- package/dist/client/assets/{useQueries-C-SV8tD7.js → useQueries-D0xhxw7a.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-D9iG0Y5m.js +1 -0
- package/dist/client/assets/{users-BiOPZ43X.js → users-DzwkCv2F.js} +1 -1
- package/dist/client/assets/utils-y2q6u6PK.js +4 -0
- package/dist/client/assets/variant-calendar-D1R9xk7D.js +1 -0
- package/dist/client/assets/{variant-matcher-override-BFQoXu82.js → variant-matcher-override-qHzE4baz.js} +1 -1
- package/dist/client/assets/view-mode-toggle-Ca0bFull.js +1 -0
- package/dist/client/assets/{virtual-mcp-ldxphi5G.js → virtual-mcp-Dji-1ojO.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +3 -3
- package/dist/server/server.js +3 -3
- package/package.json +1 -1
- package/dist/client/assets/Check-B3RSsr_D.js +0 -1
- package/dist/client/assets/ChevronRight-USKkhEpL.js +0 -1
- package/dist/client/assets/ChevronSelectorVertical-DpRb2z1l.js +0 -1
- package/dist/client/assets/Database01-C0YJpjc3.js +0 -1
- package/dist/client/assets/DotsVertical-CsjwfYzf.js +0 -1
- package/dist/client/assets/File02-BvR-HYxK.js +0 -1
- package/dist/client/assets/GitBranch01-rWb2SJK9.js +0 -1
- package/dist/client/assets/HardDrive-DNTPLPT4.js +0 -1
- package/dist/client/assets/MessageCircle01-DBcg2aiD.js +0 -1
- package/dist/client/assets/Printer-CvyxF9Jo.js +0 -1
- package/dist/client/assets/Shield01-CqB4I7qm.js +0 -1
- package/dist/client/assets/Tool01-DouqPjim.js +0 -1
- package/dist/client/assets/XClose-BgzK-Dwz.js +0 -1
- package/dist/client/assets/ZoomOut-BPxprY2s.js +0 -1
- package/dist/client/assets/add-connection-dialog-DZjTm9W3.js +0 -1
- package/dist/client/assets/agent-analytics-DmvdLg8B.js +0 -2
- package/dist/client/assets/agent-app-BvmFdS4C.js +0 -1
- package/dist/client/assets/agent-assets-czUGY90q.js +0 -1
- package/dist/client/assets/agent-automation-C5Kr5Oj3.js +0 -20
- package/dist/client/assets/agent-automations-D-3-Opoc.js +0 -1
- package/dist/client/assets/agent-connect-sources-CjhmYssY.js +0 -1
- package/dist/client/assets/agent-deck-BC5MWVm-.js +0 -1
- package/dist/client/assets/agent-e2e-DkL4Ltr6.js +0 -1
- package/dist/client/assets/agent-experiments--rXT-2aB.js +0 -1
- package/dist/client/assets/agent-file-C3XkHLMm.js +0 -1
- package/dist/client/assets/agent-hosting-DaIfm8Hu.js +0 -1
- package/dist/client/assets/agent-icon-CczrFEe7.js +0 -1
- package/dist/client/assets/agent-library-file-Dji653pU.js +0 -1
- package/dist/client/assets/agent-monitor-C-HIyaF_.js +0 -1
- package/dist/client/assets/agent-overview-cm15sxNU.js +0 -1
- package/dist/client/assets/agent-settings-XmhY1FOi.js +0 -1
- package/dist/client/assets/agent-site-editor-code-_Tz57RqE.js +0 -2
- package/dist/client/assets/agent-site-editor-content-DOAcxz0t.js +0 -2
- package/dist/client/assets/agent-site-editor-preview-mg5Q6hoW.js +0 -518
- package/dist/client/assets/agent-view-ClMILC98.js +0 -1
- package/dist/client/assets/agents-list-rKFF5b3o.js +0 -1
- package/dist/client/assets/anchors-yqDzZN4K.js +0 -1
- package/dist/client/assets/api-keys-AIfL76r6.js +0 -1
- package/dist/client/assets/api-keys-B6ry5Bc6.js +0 -1
- package/dist/client/assets/app-editor-BZKFeBmU.js +0 -1
- package/dist/client/assets/asset-utils-DhbLEVKo.js +0 -1
- package/dist/client/assets/auth-entry-CwWjlqGu.js +0 -1
- package/dist/client/assets/automation-list-row-Btr-Kty6.js +0 -1
- package/dist/client/assets/automation-runs-CnOOOwZJ.js +0 -1
- package/dist/client/assets/automations-CtLmB1Eo.js +0 -1
- package/dist/client/assets/badge-Bu51Hlti.js +0 -1
- package/dist/client/assets/block-document-BLCekKXO.js +0 -3
- package/dist/client/assets/breadcrumb-Dhdru7Jh.js +0 -1
- package/dist/client/assets/build-improve-prompt-doc-Cedp3vV1.js +0 -2
- package/dist/client/assets/bulk-category-panel-D3c_qJDk.js +0 -1
- package/dist/client/assets/calendar-DIQx67oO.js +0 -1
- package/dist/client/assets/capability-load-error-CJMvYDf4.js +0 -1
- package/dist/client/assets/cards-BVw8sRdW.js +0 -8
- package/dist/client/assets/category-editor-C7sRrVfl.js +0 -1
- package/dist/client/assets/checkbox-jLf7fBuW.js +0 -1
- package/dist/client/assets/choose-editor-Cbu3-nVC.js +0 -1
- package/dist/client/assets/collapsible-CTgXdVQa.js +0 -1
- package/dist/client/assets/collection-detail-BF7WM7Gn.js +0 -1
- package/dist/client/assets/collection-display-button-C-4xB6xx.js +0 -1
- package/dist/client/assets/collection-tabs-CrXIJeNf.js +0 -1
- package/dist/client/assets/combobox-BHrqHmge.js +0 -1
- package/dist/client/assets/command-B-XD29Nx.js +0 -1
- package/dist/client/assets/command-palette-store-DK-56E2K.js +0 -1
- package/dist/client/assets/connect-D4qCE3TM.js +0 -8
- package/dist/client/assets/connect-layout-DGO84ImO.js +0 -1
- package/dist/client/assets/connection-card-fcMCwbTh.js +0 -1
- package/dist/client/assets/connection-detail-DS015J4e.js +0 -1
- package/dist/client/assets/connections-C98FMYyY.js +0 -1
- package/dist/client/assets/dialog-llvhXw2o.js +0 -1
- package/dist/client/assets/discover-DNPHmIfF.js +0 -1
- package/dist/client/assets/domain-settings-CXxEmIjB.js +0 -1
- package/dist/client/assets/download-app-dialog-D_4eQbbs.js +0 -1
- package/dist/client/assets/dropdown-menu-C5iafa8S.js +0 -1
- package/dist/client/assets/feature-paywall-DEy2mpV2.js +0 -1
- package/dist/client/assets/file-explorer-Bs7B2-rr.js +0 -2
- package/dist/client/assets/file-share-button-Dk1ugrdV.js +0 -3
- package/dist/client/assets/general-BYFfG0fF.js +0 -1
- package/dist/client/assets/home-DTaaCW3K.js +0 -1
- package/dist/client/assets/index-2eKztu7k.js +0 -5
- package/dist/client/assets/index-BH7uCYoT.js +0 -1
- package/dist/client/assets/index-CSd_k8Np.js +0 -1
- package/dist/client/assets/index-CiMUXLco.js +0 -26
- package/dist/client/assets/index-CpNTsElB.css +0 -1
- package/dist/client/assets/index-D4RUT3q0.js +0 -1
- package/dist/client/assets/index-D_X-LIyA.js +0 -1
- package/dist/client/assets/index-Dc7hzqoi.js +0 -235
- package/dist/client/assets/infra-billing-D6jrbNxA.js +0 -1
- package/dist/client/assets/input-DXlaTX4w.js +0 -1
- package/dist/client/assets/input-D_FfvHr0.js +0 -8
- package/dist/client/assets/input-uIV5S_EX.js +0 -1
- package/dist/client/assets/layout-Dli4i2a0.js +0 -1
- package/dist/client/assets/legacy-agents-deep-CoiLV3QJ.js +0 -1
- package/dist/client/assets/legacy-main-redirect-BZ4nzqkQ.js +0 -1
- package/dist/client/assets/library-Dste3SFA.js +0 -161
- package/dist/client/assets/members-CRtKrUle.js +0 -1
- package/dist/client/assets/message-templates-B8kOo0Kk.js +0 -1
- package/dist/client/assets/mock-board-DRa60E6i.js +0 -90
- package/dist/client/assets/multi-select-DzAZ8Rb8.js +0 -1
- package/dist/client/assets/optimistic-project-sidebar-views-CrZ9OeIk.js +0 -1
- package/dist/client/assets/orgs-B1TBklWZ.js +0 -1
- package/dist/client/assets/plan-ladder-B2pv9Y73.js +0 -1
- package/dist/client/assets/post-calendar-Bx8YiCbs.js +0 -1
- package/dist/client/assets/post-editor-B1fD7o8C.js +0 -1
- package/dist/client/assets/primitives-JiGRyPkw.js +0 -1
- package/dist/client/assets/profile-CDR0JVtv.js +0 -1
- package/dist/client/assets/project-app-view-8VWdrWMf.js +0 -1
- package/dist/client/assets/project-feed-ChJRKxhk.js +0 -1
- package/dist/client/assets/project-reports-D31utlHg.js +0 -1
- package/dist/client/assets/project-tasks-D2AAgqxo.js +0 -1
- package/dist/client/assets/record-editor-DPAL8Tq5.js +0 -1
- package/dist/client/assets/redirect-editor-EPs_GX-_.js +0 -1
- package/dist/client/assets/registry-Dw8UrRRZ.js +0 -2
- package/dist/client/assets/registry-layout-CC2lewiS.js +0 -27
- package/dist/client/assets/reports-Ch9UvBcS.js +0 -1
- package/dist/client/assets/reports-onboarding-Dhm8IBuD.js +0 -1
- package/dist/client/assets/reports-tab-BJWrZp37.js +0 -2
- package/dist/client/assets/repositories-CMIGVJwC.js +0 -1
- package/dist/client/assets/repository-import-picker-DhVniDI2.js +0 -1
- package/dist/client/assets/repository-picker-BkoSI-jm.js +0 -1
- package/dist/client/assets/resizable-Bt7dvMCc.js +0 -1
- package/dist/client/assets/review-settings-Cx_Yzx40.js +0 -1
- package/dist/client/assets/roles-BNleKwt9.js +0 -1
- package/dist/client/assets/route-CHqG9ihd.js +0 -1
- package/dist/client/assets/route-DqJoK5dW.js +0 -1
- package/dist/client/assets/route-x8jgkj5T.js +0 -1
- package/dist/client/assets/runnable-block-editor-xmOnaiFL.js +0 -16
- package/dist/client/assets/search-input-Pobww52G.js +0 -1
- package/dist/client/assets/secrets-BF5nuoR4.js +0 -1
- package/dist/client/assets/sections-editor-B1LpXw4X.js +0 -2
- package/dist/client/assets/select-BkKPcZFe.js +0 -1
- package/dist/client/assets/select-model-DPv-zVVj.js +0 -1
- package/dist/client/assets/seo-editor-9G7mQFJ5.js +0 -1
- package/dist/client/assets/settings-tab-D1V5Uszb.js +0 -5
- package/dist/client/assets/shell-layout-Ce0aCJuX.js +0 -1
- package/dist/client/assets/sidebar-C5KRz1Pj.js +0 -1
- package/dist/client/assets/skills-CgTiBPyO.js +0 -1
- package/dist/client/assets/sso-BK-aRT5P.js +0 -1
- package/dist/client/assets/store-Nm6KtwbD.js +0 -1
- package/dist/client/assets/store-registry-Cs6bPPkP.js +0 -2
- package/dist/client/assets/synced-repos-B1z4DDCt.js +0 -1
- package/dist/client/assets/task-route-BCTCy27Q.js +0 -1
- package/dist/client/assets/task-status-DhCT2ly_.js +0 -1
- package/dist/client/assets/taskboard-analytics-Cf1r1f7I.js +0 -1
- package/dist/client/assets/tasks-BNvHI7hJ.js +0 -1
- package/dist/client/assets/textarea-BU6xemAP.js +0 -1
- package/dist/client/assets/thread-route-BBf64Mwk.js +0 -1
- package/dist/client/assets/thread-route-BSYRqZDg.js +0 -1
- package/dist/client/assets/thread-sheet-body-B4OUWlMn.js +0 -1
- package/dist/client/assets/toggle-group-BiU_UDOq.js +0 -1
- package/dist/client/assets/toolbar-icon-button-PuQFE8Y9.js +0 -1
- package/dist/client/assets/usage-stats-vMRDbAUM.js +0 -1
- package/dist/client/assets/use-ai-providers-BnF5Rw_n.js +0 -1
- package/dist/client/assets/use-automations-Bo0S3g8m.js +0 -1
- package/dist/client/assets/use-connect-companion-CClQCUMS.js +0 -1
- package/dist/client/assets/use-connection-Ba04fHwa.js +0 -1
- package/dist/client/assets/use-deco-credits-BGBshlLi.js +0 -1
- package/dist/client/assets/use-delete-connection-Cns6x8UC.js +0 -1
- package/dist/client/assets/use-file-configs-DYGSdjth.js +0 -1
- package/dist/client/assets/use-join-requests-DjeVFQr9.js +0 -1
- package/dist/client/assets/use-main-panel-tabs-sSRGo66A.js +0 -1
- package/dist/client/assets/use-mcp-auth-status-I377R0Kg.js +0 -1
- package/dist/client/assets/use-members-DPYHJDe2.js +0 -1
- package/dist/client/assets/use-navigate-to-agent-C8pu0B4z.js +0 -1
- package/dist/client/assets/use-open-billing-url-Df7K1DCF.js +0 -1
- package/dist/client/assets/use-org-auth-client-DbPU3bA-.js +0 -1
- package/dist/client/assets/use-org-fs-Du-ErRPs.js +0 -1
- package/dist/client/assets/use-org-notice-CyiiFkRG.js +0 -1
- package/dist/client/assets/use-organization-roles-FAEtbpE5.js +0 -1
- package/dist/client/assets/use-organization-settings-CKbX2SdA.js +0 -1
- package/dist/client/assets/use-project-native-view-presence-DWzPH-Sc.js +0 -1
- package/dist/client/assets/use-project-scope-DU0-JxYr.js +0 -1
- package/dist/client/assets/use-registry-connections-SLFMHpqj.js +0 -1
- package/dist/client/assets/use-releases-CFNTwgY3.js +0 -1
- package/dist/client/assets/use-reports-diagnostic-8BvW2in8.js +0 -1
- package/dist/client/assets/use-secrets-DVry--sz.js +0 -1
- package/dist/client/assets/use-tags-CZXCbbwL.js +0 -1
- package/dist/client/assets/use-task-board-analytics-Ci1AhxvH.js +0 -1
- package/dist/client/assets/use-task-metadata-Dt9l5S_a.js +0 -1
- package/dist/client/assets/use-thread-outputs-Dq-RN0P_.js +0 -1
- package/dist/client/assets/use-virtual-mcp-DkK7ErtB.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CspLjV7h.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BiQYAhJn.js +0 -1
- package/dist/client/assets/utils-DsvmRe8M.js +0 -4
- package/dist/client/assets/variant-calendar-DImnsJnP.js +0 -1
- package/dist/client/assets/view-mode-toggle-DvGhnpsV.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ao as ve,bM as $e,bO as Oe,ap as me,bL as Me,c as R,b as V,j as t,h as Ne,B as q,r as Z,l as Se,a0 as se,a6 as ze,D as ue,K as te,d as ne,p as ye,an as Ce,eL as Ee,Z as Le,n as Re,f5 as xe,Y as Ue,I as Fe,F as Ve,H as Be,G as pe,E as qe,f as Ge,fe as He,o as Ke,ar as Qe,aq as Xe,t as J}from"./index-EcuFIS2a.js";import{g as We}from"./extract-connection-data-C7Wh9xkI.js";import{E as _e}from"./empty-state-Y08kvU5o.js";import{E as Ye,c as Je,r as Ze,b as et,d as tt}from"./connection-form-helpers-DM_wSOEJ.js";import{c as st,S as nt,D as it}from"./index-BchRuDAc.js";import{u as we,T as ot}from"./use-mcp-auth-status-h4sAecTI.js";import{a as at}from"./use-members-C6brpkJ1.js";import{A as lt}from"./avatar-BzRNaDEk.js";import{a as Ie,b as ke,u as rt}from"./use-connection-BKZRi94S.js";import{u as Te}from"./use-mcp-client-B_gcvvCy.js";import{u as ct}from"./use-mcp-tools-DC47roTz.js";import{a as dt}from"./use-mcp-prompts-DfSKL4Gu.js";import{i as mt,a as ut}from"./mcp-oauth-B7YJNr4N.js";import{I as le}from"./integration-icon-D3FHJbYu.js";import{s as xt}from"./Plus-BSp00qOC.js";import{b1 as pt,ah as ft,L as ht,bf as gt,j as ie}from"./agent-icon-CTsmTxHg.js";import{a as Ae,s as jt}from"./Settings02-D9Qv7BDm.js";import{s as ce}from"./Trash01-DtE0n00a.js";import{b as bt,a as vt,c as Nt,S as St,d as yt}from"./sheet-DWSThpSZ.js";import{F as K,b as Q,c as X,d as B,f as W,e as Ct,a as _t}from"./form-CYsJTpNM.js";import{I as Y}from"./input-Buz_7xoG.js";import{u as wt,D as It}from"./use-delete-connection-CqvqqWgS.js";import{c as kt,B as Tt,a as At,C as Pt}from"./monitoring-stats-row-DirMMFq2.js";import{b as Dt,c as $t,d as Ot}from"./chart-BVjaATZw.js";import{b as Mt}from"./use-virtual-mcp-Ji9vcgUj.js";import{T as oe,a as zt,c as ae,b as Et}from"./tabs-Dd0IWElc.js";import{g as Pe}from"./connection-slug-CITJ0kGN.js";import{d as Lt}from"./Tool01-Dwy1nlT9.js";import{g as de}from"./types-7UQ7SDxU.js";import{M as Rt}from"./mcp-app-renderer-wS7imsel.js";import{C as Ut}from"./collection-search-DM8MkJfo.js";import{B as Ft}from"./badge-C5M6nZd4.js";import{S as fe,b as he,a as ge,d as je,c as H}from"./select-DBfOOW9i.js";import{i as Vt}from"./CheckCircle-BmVuh1xp.js";import{t as Bt}from"./ChevronUp-fg9sod-H.js";import{n as qt}from"./Tool02-CvlAGFBM.js";import{a as Gt}from"./UserSquare-CcF49LHs.js";import{s as Ht}from"./XClose-CvcHLHe2.js";import{p as Kt,i as Qt}from"./connection-DStV2sLP.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./sidebar-CoC2_Nad.js";import"./LayoutLeft-BfySK4h8.js";import"./use-mobile-BZ15DgEB.js";import"./tooltip-nr5oS_bm.js";import"./index-Exw_Yjch.js";import"./Key01-CO_i2QPb.js";import"./auth-BBW3DF0r.js";import"./use-registry-connections-Bd4wJHbx.js";import"./use-organization-settings-DvtBymY3.js";import"./schema-FDf70VFI.js";import"./task-board-Dip4Wu9j.js";import"./index-0-s9o3tr.js";import"./index-fN6RkMSD.js";import"./index-BUfoj27y.js";import"./index-C97O3ClY.js";import"./popover-Bff85VlI.js";import"./SearchMd-Bb5gjLcX.js";import"./use-create-virtual-mcp-nvoTomrD.js";import"./use-navigate-to-agent-B8SXI0oO.js";import"./hooks-D0dDgrIf.js";import"./backoff-8mStPHYB.js";import"./thread-intent-CTSjhfEo.js";import"./slugify-CEUa2lfQ.js";import"./github-repo-BknN0SVI.js";import"./Eye-Dq6Vw6FI.js";import"./use-org-auth-client-8fDIgHEZ.js";import"./User01-DHd46PZp.js";import"./AlertCircle-2L7lI8NL.js";import"./ArrowUp-BtksDHBQ.js";import"./ArrowLeft-8rouBEwC.js";import"./ArrowRight-DCA5zjxW.js";import"./TrendUp01-BCriuXJd.js";import"./ZoomOut-DUFJq3-K.js";import"./Globe04-GFiRExL0.js";import"./Copy01-BgwuTJFm.js";import"./CreditCard01-CIt471eG.js";import"./DotsVertical-CE2o6L6N.js";import"./Download01-DNhEQzg0.js";import"./Share07-CZ7JzYs9.js";import"./Globe01-g_y8gAs1.js";import"./Image01-QB6twEDu.js";import"./Link01-BIFMl_M0.js";import"./LinkExternal01-DQD59o7F.js";import"./Monitor01-Ddm2yOG6.js";import"./Sun-DLRcOzSd.js";import"./Package-CvzEol5_.js";import"./Palette-DT856bn6.js";import"./Play-wYDcJhBq.js";import"./SearchLg-DFD1t2UL.js";import"./Stars01-D-wYuyik.js";import"./Upload01-Ba-RLxE1.js";import"./Users01-B8gdz27Y.js";import"./XCircle-BLCHBIhx.js";import"./X-BtMi8Qau.js";import"./Zap-DZAIluO6.js";import"./label-BX1BwzZ4.js";import"./alert-dialog-9n2p5SCQ.js";import"./CartesianChart-BbOaLmfq.js";import"./AreaChart-BSJ08P7a.js";import"./ErrorBarContext-DxNax47N.js";import"./Sector-wViCnB96.js";const Xt=ve({scopes:Me(me()).describe("List of scopes available"),stateSchema:$e(me(),Oe()).describe("JSON Schema (draft-07) defining the state structure")}),Wt=[{name:"MCP_CONFIGURATION",inputSchema:ve({}),outputSchema:Xt}];function Yt(s){const e=R.c(61),{instance:n,onConfigure:r,onAuthenticate:o,onDelete:i,onToggleStatus:c}=s,a=V();let d;e[0]!==n.id?(d={connectionId:n.id},e[0]=n.id,e[1]=d):d=e[1];const x=we(d),l=!(n.connection_type==="VIRTUAL")&&x.supportsOAuth&&!x.isAuthenticated,f=n.status!=="active",u=l||f?"border-destructive/50 bg-destructive/5":"border-transparent";let h;e[2]!==u?(h=Se("flex items-center gap-3 rounded-lg border px-4 py-2.5 transition-colors",u),e[2]=u,e[3]=h):h=e[3];let g;e[4]!==n.icon||e[5]!==n.title?(g=t.jsx(le,{icon:n.icon,name:n.title,size:"xs",className:"shrink-0"}),e[4]=n.icon,e[5]=n.title,e[6]=g):g=e[6];let j;e[7]!==n.title?(j=t.jsx("p",{className:"text-sm font-medium truncate",children:n.title}),e[7]=n.title,e[8]=j):j=e[8];let S;e[9]!==n.status||e[10]!==f||e[11]!==l||e[12]!==a?(S=l?t.jsx("span",{className:"text-xs text-destructive font-medium",children:a("details.connectionInstancesPanel.needsAuthorization")}):f?t.jsx("span",{className:"text-xs text-destructive font-medium",children:n.status==="error"?a("details.connectionInstancesPanel.disabledError"):a("details.connectionInstancesPanel.disabled")}):null,e[9]=n.status,e[10]=f,e[11]=l,e[12]=a,e[13]=S):S=e[13];let v;e[14]!==j||e[15]!==S?(v=t.jsxs("div",{className:"flex-1 min-w-0",children:[j,S]}),e[14]=j,e[15]=S,e[16]=v):v=e[16];let y;e[17]!==n||e[18]!==l||e[19]!==o||e[20]!==a?(y=l&&t.jsx(q,{variant:"outline",size:"sm",className:"h-7 text-xs",onClick:()=>o(n),children:a("details.connectionInstancesPanel.authorize")}),e[17]=n,e[18]=l,e[19]=o,e[20]=a,e[21]=y):y=e[21];let P;e[22]!==n||e[23]!==f||e[24]!==c||e[25]!==a?(P=f?t.jsxs(q,{variant:"outline",size:"sm",className:"h-7 text-xs gap-1.5",onClick:()=>c(n,"active"),children:[t.jsx(pt,{size:13}),a("details.connectionInstancesPanel.enable")]}):t.jsx(q,{variant:"ghost",size:"icon",className:"h-7 w-7 text-muted-foreground",onClick:()=>c(n,"inactive"),title:a("details.connectionInstancesPanel.disable"),"aria-label":a("details.connectionInstancesPanel.disable"),children:t.jsx(ft,{size:13})}),e[22]=n,e[23]=f,e[24]=c,e[25]=a,e[26]=P):P=e[26];let D;e[27]!==n||e[28]!==r?(D=()=>r(n),e[27]=n,e[28]=r,e[29]=D):D=e[29];let _;e[30]!==a?(_=a("details.connectionInstancesPanel.configure"),e[30]=a,e[31]=_):_=e[31];let M;e[32]!==a?(M=a("details.connectionInstancesPanel.configure"),e[32]=a,e[33]=M):M=e[33];let T;e[34]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(Ae,{size:13}),e[34]=T):T=e[34];let $;e[35]!==D||e[36]!==_||e[37]!==M?($=t.jsx(q,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:D,title:_,"aria-label":M,children:T}),e[35]=D,e[36]=_,e[37]=M,e[38]=$):$=e[38];let k;e[39]!==n||e[40]!==i?(k=()=>i(n),e[39]=n,e[40]=i,e[41]=k):k=e[41];let N;e[42]!==a?(N=a("details.connectionInstancesPanel.delete"),e[42]=a,e[43]=N):N=e[43];let b;e[44]!==a?(b=a("details.connectionInstancesPanel.delete"),e[44]=a,e[45]=b):b=e[45];let E;e[46]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(ce,{size:13}),e[46]=E):E=e[46];let z;e[47]!==k||e[48]!==N||e[49]!==b?(z=t.jsx(q,{variant:"ghost",size:"icon",className:"h-7 w-7 text-muted-foreground hover:text-destructive",onClick:k,title:N,"aria-label":b,children:E}),e[47]=k,e[48]=N,e[49]=b,e[50]=z):z=e[50];let I;e[51]!==$||e[52]!==z||e[53]!==y||e[54]!==P?(I=t.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[y,P,$,z]}),e[51]=$,e[52]=z,e[53]=y,e[54]=P,e[55]=I):I=e[55];let A;return e[56]!==I||e[57]!==h||e[58]!==g||e[59]!==v?(A=t.jsxs("div",{className:h,children:[g,v,I]}),e[56]=I,e[57]=h,e[58]=g,e[59]=v,e[60]=A):A=e[60],A}function Jt(s){const e=R.c(21),{instance:n,onConfigure:r}=s,o=V();let i;e[0]!==n.icon||e[1]!==n.title?(i=t.jsx(le,{icon:n.icon,name:n.title,size:"xs",className:"shrink-0"}),e[0]=n.icon,e[1]=n.title,e[2]=i):i=e[2];let c;e[3]!==n.title?(c=t.jsx("div",{className:"flex-1 min-w-0",children:t.jsx("p",{className:"text-sm font-medium truncate",children:n.title})}),e[3]=n.title,e[4]=c):c=e[4];let a;e[5]!==n||e[6]!==r?(a=()=>r(n),e[5]=n,e[6]=r,e[7]=a):a=e[7];let d;e[8]!==o?(d=o("details.connectionInstancesPanel.configure"),e[8]=o,e[9]=d):d=e[9];let x;e[10]!==o?(x=o("details.connectionInstancesPanel.configure"),e[10]=o,e[11]=x):x=e[11];let m;e[12]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(Ae,{size:13}),e[12]=m):m=e[12];let l;e[13]!==a||e[14]!==d||e[15]!==x?(l=t.jsx("div",{className:"flex items-center gap-1 shrink-0",children:t.jsx(q,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:a,title:d,"aria-label":x,children:m})}),e[13]=a,e[14]=d,e[15]=x,e[16]=l):l=e[16];let f;return e[17]!==i||e[18]!==c||e[19]!==l?(f=t.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-transparent px-4 py-2.5 transition-colors",children:[i,c,l]}),e[17]=i,e[18]=c,e[19]=l,e[20]=f):f=e[20],f}function Zt(s){const e=R.c(33),{instances:n,onConfigure:r,onAuthenticate:o,onDelete:i,onToggleStatus:c,onAdd:a,isAdding:d}=s,x=V();if(n.length===0)return null;let m;e[0]!==n.length||e[1]!==x?(m=n.length===1?x("details.connectionInstancesPanel.instance"):x("details.connectionInstancesPanel.instances"),e[0]=n.length,e[1]=x,e[2]=m):m=e[2];let l;e[3]!==m?(l=t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:m}),e[3]=m,e[4]=l):l=e[4];let f;e[5]!==d?(f=d?t.jsx(Ne,{className:"size-[13px]"}):t.jsx(xt,{size:13}),e[5]=d,e[6]=f):f=e[6];let u;e[7]!==x?(u=x("details.connectionInstancesPanel.addInstance"),e[7]=x,e[8]=u):u=e[8];let h;e[9]!==d||e[10]!==a||e[11]!==f||e[12]!==u?(h=t.jsxs(q,{variant:"default",size:"sm",className:"h-7 gap-1.5 text-xs",onClick:a,disabled:d,children:[f,u]}),e[9]=d,e[10]=a,e[11]=f,e[12]=u,e[13]=h):h=e[13];let g;e[14]!==l||e[15]!==h?(g=t.jsxs("div",{className:"px-5 py-4 border-b border-border flex items-center justify-between",children:[l,h]}),e[14]=l,e[15]=h,e[16]=g):g=e[16];let j;if(e[17]!==n||e[18]!==o||e[19]!==r||e[20]!==i||e[21]!==c){let y;e[23]!==o||e[24]!==r||e[25]!==i||e[26]!==c?(y=P=>t.jsx(Z.Suspense,{fallback:t.jsx(Jt,{instance:P,onConfigure:r}),children:t.jsx(Yt,{instance:P,onConfigure:r,onAuthenticate:o,onDelete:i,onToggleStatus:c})},P.id),e[23]=o,e[24]=r,e[25]=i,e[26]=c,e[27]=y):y=e[27],j=n.map(y),e[17]=n,e[18]=o,e[19]=r,e[20]=i,e[21]=c,e[22]=j}else j=e[22];let S;e[28]!==j?(S=t.jsx("div",{className:"p-2 flex flex-col gap-1",children:j}),e[28]=j,e[29]=S):S=e[29];let v;return e[30]!==g||e[31]!==S?(v=t.jsxs("div",{className:"rounded-xl border border-border bg-card overflow-hidden",children:[g,S]}),e[30]=g,e[31]=S,e[32]=v):v=e[32],v}function es(s,e=3){const n=new Map;for(const r of s){if(!r.isError)continue;const o=(r.errorMessage??"").trim()||"Unknown error";n.set(o,(n.get(o)??0)+1)}return[...n.entries()].map(([r,o])=>({message:r,count:o})).sort((r,o)=>o.count-r.count).slice(0,e)}const ts=[{value:"7d",label:"7d"},{value:"14d",label:"14d"},{value:"30d",label:"30d"}];function ss(s){const e=new Date,n=new Date(e);return s==="7d"?n.setDate(n.getDate()-7):s==="14d"?n.setDate(n.getDate()-14):n.setDate(n.getDate()-30),{startDate:n,endDate:e}}const ns={calls:{label:"Tool calls"},errors:{label:"Errors"}};function is(s){const e=R.c(4),{connectionId:n,orgId:r,timeframe:o}=s,i=V(),c=ze(),a=ss(o),{data:d}=ue({queryKey:te.connectionActivity(n,o,r),queryFn:async()=>await c.call("MONITORING_LOGS_LIST",{startDate:a.startDate.toISOString(),endDate:a.endDate.toISOString(),connectionId:n,limit:2e3,offset:0}),staleTime:3e5}),{data:x}=ue({queryKey:te.connectionActivityErrors(n,o,r),queryFn:async()=>await c.call("MONITORING_LOGS_LIST",{startDate:a.startDate.toISOString(),endDate:a.endDate.toISOString(),connectionId:n,isError:!0,limit:1,offset:0}),staleTime:3e5}),m=kt(d?.logs??[],a,void 0,d?.total,x?.total),l=m.data,f=m.totalCalls>0,u=es(d?.logs??[]),h=m.totalCalls>0?Math.round(m.totalErrors/m.totalCalls*100):0;let g;e[0]!==i?(g=i("details.connectionActivity.toolCalls"),e[0]=i,e[1]=g):g=e[1];let j;return e[2]!==g?(j=t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:g}),e[2]=g,e[3]=j):j=e[3],t.jsxs("div",{children:[t.jsxs("div",{className:"flex gap-6 px-5 pb-4",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-2xl font-semibold text-foreground tabular-nums",children:m.totalCalls.toLocaleString()}),j]}),m.totalErrors>0&&t.jsxs("div",{children:[t.jsx("p",{className:"text-2xl font-semibold text-destructive tabular-nums",children:m.totalErrors.toLocaleString()}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("details.connectionActivity.errors")})]}),m.avgDurationMs>0&&t.jsxs("div",{children:[t.jsxs("p",{className:"text-2xl font-semibold text-foreground tabular-nums",children:[Math.round(m.avgDurationMs),"ms"]}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("details.connectionActivity.avgLatency")})]})]}),f?t.jsxs("div",{children:[t.jsx(Dt,{config:ns,className:"h-16 w-full",children:t.jsxs(Tt,{data:l,barCategoryGap:"4%",children:[t.jsx($t,{content:t.jsx(Ot,{labelFormatter:ls}),cursor:{fill:"var(--muted)"}}),t.jsx(At,{dataKey:"calls",radius:[2,2,0,0],minPointSize:1,children:l.map(as)})]})}),t.jsxs("div",{className:"flex justify-between px-3 mt-1 pb-3",children:[t.jsx("span",{className:"text-[10px] text-muted-foreground",children:l[0]?.label}),t.jsx("span",{className:"text-[10px] text-muted-foreground",children:l[l.length-1]?.label})]})]}):t.jsx("div",{className:"h-20 flex items-center justify-center",children:t.jsx("p",{className:"text-sm text-muted-foreground/60",children:i("details.connectionActivity.noActivityInThisPeriod")})}),u.length>0&&t.jsxs("div",{className:"px-5 py-4 border-t border-border",children:[t.jsxs("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:[i("details.connectionActivity.topErrors"),h>0?` · ${i("details.connectionActivity.errorRatePercentage",{errorRate:h.toString()})}`:""]}),t.jsx("ul",{className:"space-y-1.5",children:u.map(os)})]})]})}function os(s){return t.jsxs("li",{className:"flex items-start gap-2 text-xs",children:[t.jsxs("span",{className:"tabular-nums text-destructive font-medium shrink-0",children:[s.count.toLocaleString(),"×"]}),t.jsx("span",{className:"text-muted-foreground truncate",title:s.message,children:s.message})]},s.message)}function as(s,e){return t.jsx(Pt,{fill:s.errorRate>50?"var(--destructive)":"var(--chart-1)",fillOpacity:s.calls===0?.2:s.errorRate>50?.7:.85},`cell-${e}`)}function ls(s,e){const n=Array.isArray(e)?e[0]:void 0;return n&&typeof n=="object"&&"payload"in n?n.payload?.label??"":""}function rs(){const s=R.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsxs("div",{children:[t.jsx("div",{className:"flex gap-6 px-5 pb-4",children:t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("div",{className:"h-7 w-16 rounded-md bg-muted animate-pulse"}),t.jsx("div",{className:"h-3 w-14 rounded bg-muted animate-pulse"})]})}),t.jsx("div",{className:"h-20 w-full rounded-md bg-muted animate-pulse"})]}),s[0]=e):e=s[0],e}function cs(s){const e=R.c(22),{connectionId:n}=s,r=V(),[o,i]=Z.useState("14d"),{org:c}=se();let a;e[0]!==r?(a=r("details.connectionActivity.activity"),e[0]=r,e[1]=a):a=e[1];let d;e[2]!==a?(d=t.jsx("div",{children:t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:a})}),e[2]=a,e[3]=d):d=e[3];let x;e[4]!==r?(x=r("details.connectionActivity.timeframe"),e[4]=r,e[5]=x):x=e[5];let m;e[6]!==o?(m=ts.map(j=>t.jsx("button",{type:"button","aria-pressed":o===j.value,onClick:()=>i(j.value),className:Se("px-2.5 py-1 text-xs font-medium classic:rounded-md compact:rounded-lg transition-colors",o===j.value?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:j.label},j.value)),e[6]=o,e[7]=m):m=e[7];let l;e[8]!==x||e[9]!==m?(l=t.jsx("div",{role:"group","aria-label":x,className:"flex items-center gap-0.5 bg-muted rounded-lg p-0.5",children:m}),e[8]=x,e[9]=m,e[10]=l):l=e[10];let f;e[11]!==d||e[12]!==l?(f=t.jsxs("div",{className:"px-5 py-4 flex items-center justify-between",children:[d,l]}),e[11]=d,e[12]=l,e[13]=f):f=e[13];let u;e[14]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(rs,{}),e[14]=u):u=e[14];let h;e[15]!==n||e[16]!==c.id||e[17]!==o?(h=t.jsx(Z.Suspense,{fallback:u,children:t.jsx(is,{connectionId:n,orgId:c.id,timeframe:o})}),e[15]=n,e[16]=c.id,e[17]=o,e[18]=h):h=e[18];let g;return e[19]!==f||e[20]!==h?(g=t.jsxs("div",{className:"rounded-xl border border-border bg-card overflow-hidden",children:[f,h]}),e[19]=f,e[20]=h,e[21]=g):g=e[21],g}function ds(s){const e=R.c(15),{virtualMcp:n,org:r}=s,o=ne();let i;e[0]!==o||e[1]!==r||e[2]!==n.id?(i=()=>{const l=crypto.randomUUID();o({to:"/$org/projects/$agentId",params:{org:r,agentId:n.id},search:{thread:l}})},e[0]=o,e[1]=r,e[2]=n.id,e[3]=i):i=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(ye,{size:16}),e[4]=c):c=e[4];let a;e[5]!==n.icon||e[6]!==n.title?(a=t.jsx(le,{icon:n.icon,name:n.title,size:"xs",fallbackIcon:c}),e[5]=n.icon,e[6]=n.title,e[7]=a):a=e[7];let d;e[8]!==n.title?(d=t.jsx("span",{className:"flex-1 text-sm font-medium text-foreground truncate",children:n.title}),e[8]=n.title,e[9]=d):d=e[9];let x;e[10]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(Ce,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors shrink-0"}),e[10]=x):x=e[10];let m;return e[11]!==i||e[12]!==a||e[13]!==d?(m=t.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-3 rounded-lg hover:bg-muted/50 transition-colors group text-left w-full",children:[a,d,x]}),e[11]=i,e[12]=a,e[13]=d,e[14]=m):m=e[14],m}function ms(s){const e=R.c(7),{virtualMcps:n,org:r}=s;let o;if(e[0]!==r||e[1]!==n){let c;e[3]!==r?(c=a=>t.jsx(ds,{virtualMcp:a,org:r},a.id),e[3]=r,e[4]=c):c=e[4],o=n.map(c),e[0]=r,e[1]=n,e[2]=o}else o=e[2];let i;return e[5]!==o?(i=t.jsx("div",{className:"flex flex-col gap-3",children:t.jsx("div",{className:"flex flex-col gap-2",children:o})}),e[5]=o,e[6]=i):i=e[6],i}function us(s){const e=R.c(13),{connection:n}=s,r=V(),{org:o}=se();let i;e[0]!==n.id?(i={filters:[{column:"connection_id",value:n.id}]},e[0]=n.id,e[1]=i):i=e[1];const c=Mt(i);if(!(c.length>0)){let f;return e[2]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(t.Fragment,{}),e[2]=f):f=e[2],f}let d;e[3]!==r?(d=r("details.connectionAgentsPanel.usedByAgents"),e[3]=r,e[4]=d):d=e[4];let x;e[5]!==d?(x=t.jsx("div",{className:"px-5 py-4 border-b border-border",children:t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:d})}),e[5]=d,e[6]=x):x=e[6];let m;e[7]!==o.slug||e[8]!==c?(m=t.jsx("div",{className:"px-5 py-4",children:t.jsx(ms,{virtualMcps:c,org:o.slug})}),e[7]=o.slug,e[8]=c,e[9]=m):m=e[9];let l;return e[10]!==x||e[11]!==m?(l=t.jsxs("div",{className:"rounded-xl border border-border bg-card overflow-hidden",children:[x,m]}),e[10]=x,e[11]=m,e[12]=l):l=e[12],l}function xs(s){const e=R.c(35),{tools:n,connectionId:r,org:o}=s,i=V(),c=ne(),{org:a}=se();let d;e[0]!==r||e[1]!==a.id||e[2]!==a.slug?(d={connectionId:r,orgId:a.id,orgSlug:a.slug},e[0]=r,e[1]=a.id,e[2]=a.slug,e[3]=d):d=e[3];const x=Te(d),m=Ie(r);let l;e[4]!==m||e[5]!==r?(l=m?Pe(m):r,e[4]=m,e[5]=r,e[6]=l):l=e[6];const f=l,[u,h]=Z.useState("");let g,j,S,v;if(e[7]!==f||e[8]!==x||e[9]!==c||e[10]!==o||e[11]!==u||e[12]!==i||e[13]!==n){const D=(n??[]).filter(ps),_=u.toLowerCase().trim(),M=_?D.filter(b=>b.name.toLowerCase().includes(_)||b.description&&b.description.toLowerCase().includes(_)):D;let T;e[18]!==f||e[19]!==c||e[20]!==o?(T=b=>{c({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:o,appSlug:f,collectionName:"tools",itemId:encodeURIComponent(b.name)}})},e[18]=f,e[19]=c,e[20]=o,e[21]=T):T=e[21];const $=T;S="flex flex-col h-full overflow-hidden";let k;e[22]!==i?(k=i("details.connectionUiTab.searchAppsPlaceholder"),e[22]=i,e[23]=k):k=e[23];let N;e[24]===Symbol.for("react.memo_cache_sentinel")?(N=b=>{b.key==="Escape"&&(h(""),b.target.blur())},e[24]=N):N=e[24],e[25]!==u||e[26]!==k?(v=t.jsx(Ut,{value:u,onChange:h,placeholder:k,onKeyDown:N}),e[25]=u,e[26]=k,e[27]=v):v=e[27],g="flex-1 overflow-auto p-5",j=M.length===0?t.jsx(_e,{image:null,title:i(u?"details.connectionUiTab.noAppsFound":"details.connectionUiTab.noAppsAvailable"),description:i(u?"details.connectionUiTab.adjustSearchTerms":"details.connectionUiTab.noInteractiveUis")}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(320px,1fr))] gap-4",children:M.map(b=>{const E=de(b._meta);return t.jsxs(Ee,{className:"cursor-pointer transition-colors overflow-hidden gap-0",onClick:()=>$(b),children:[t.jsx("div",{className:"h-[200px] overflow-hidden border-b border-border",children:t.jsx(Rt,{resourceURI:E,toolInfo:{tool:b},displayMode:"inline",minHeight:200,maxHeight:200,client:x})}),t.jsxs("div",{className:"flex flex-col gap-2 p-4",children:[t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:b.annotations?.title??b.name}),t.jsx(ot,{annotations:b.annotations,_meta:b._meta})]}),b.description&&t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:b.description})]})]},b.name)})}),e[7]=f,e[8]=x,e[9]=c,e[10]=o,e[11]=u,e[12]=i,e[13]=n,e[14]=g,e[15]=j,e[16]=S,e[17]=v}else g=e[14],j=e[15],S=e[16],v=e[17];let y;e[28]!==g||e[29]!==j?(y=t.jsx("div",{className:g,children:j}),e[28]=g,e[29]=j,e[30]=y):y=e[30];let P;return e[31]!==S||e[32]!==v||e[33]!==y?(P=t.jsxs("div",{className:S,children:[v,y]}),e[31]=S,e[32]=v,e[33]=y,e[34]=P):P=e[34],P}function ps(s){return!!de(s._meta)}function De(s){const e=s.replace(/[._]/g," ").trim().split(/\s+/),n=c=>c.charAt(0).toUpperCase()+c.slice(1),r=new Set(["list","create","get","update","delete","fetch","search","run","trigger","review","send","check"]),o=e.map(n),i=e[e.length-1];return o.length>=2&&i&&r.has(i)?[o.pop(),...o].join(" "):o.join(" ")}function re(s){const e=R.c(5),{label:n}=s,r=V();let o;e[0]!==n||e[1]!==r?(o=r("details.connectionCapabilities.noItemsAvailable",{item:n}),e[0]=n,e[1]=r,e[2]=o):o=e[2];let i;return e[3]!==o?(i=t.jsx("div",{className:"px-5 py-8 text-center",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:o})}),e[3]=o,e[4]=i):i=e[4],i}function fs(s){const e=R.c(72),{tools:n,prompts:r,resources:o,connectionId:i,org:c}=s;let a;e[0]!==r?(a=r===void 0?[]:r,e[0]=r,e[1]=a):a=e[1];const d=a;let x;e[2]!==o?(x=o===void 0?[]:o,e[2]=o,e[3]=x):x=e[3];const m=x,l=V(),f=ne(),u=Ie(i??"");let h;e[4]!==u||e[5]!==i?(h=u?Pe(u):i,e[4]=u,e[5]=i,e[6]=h):h=e[6];const g=h;let j;e[7]!==g||e[8]!==i||e[9]!==f||e[10]!==c?(j=function(U){!i||!c||f({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:c,appSlug:g,collectionName:"tools",itemId:encodeURIComponent(U)}})},e[7]=g,e[8]=i,e[9]=f,e[10]=c,e[11]=j):j=e[11];const S=j;let v;e[12]!==i||e[13]!==c||e[14]!==n?(v=i&&c&&n.some(js),e[12]=i,e[13]=c,e[14]=n,e[15]=v):v=e[15];const y=v;if(n.length+d.length+m.length===0){let C;e[16]!==l?(C=l("details.connectionCapabilities.capabilities"),e[16]=l,e[17]=C):C=e[17];let U;e[18]!==C?(U=t.jsx("h3",{className:"text-sm font-semibold text-foreground mb-1",children:C}),e[18]=C,e[19]=U):U=e[19];let G;e[20]!==l?(G=l("details.connectionCapabilities.noCapabilitiesDiscovered"),e[20]=l,e[21]=G):G=e[21];let F;e[22]!==G?(F=t.jsx("p",{className:"text-sm text-muted-foreground",children:G}),e[22]=G,e[23]=F):F=e[23];let ee;return e[24]!==F||e[25]!==U?(ee=t.jsxs("div",{className:"rounded-xl border border-border bg-card p-5",children:[U,F]}),e[24]=F,e[25]=U,e[26]=ee):ee=e[26],ee}let D;e[27]!==l||e[28]!==n.length?(D=l("details.connectionCapabilities.toolsTab",{count:n.length}),e[27]=l,e[28]=n.length,e[29]=D):D=e[29];let _;e[30]!==D?(_=t.jsx(oe,{value:"tools",variant:"underline",children:D}),e[30]=D,e[31]=_):_=e[31];let M;e[32]!==y||e[33]!==l?(M=y&&t.jsx(oe,{value:"apps",variant:"underline",children:l("details.connectionCapabilities.uiTab")}),e[32]=y,e[33]=l,e[34]=M):M=e[34];let T;e[35]!==l?(T=l("details.connectionCapabilities.promptsTab"),e[35]=l,e[36]=T):T=e[36];let $;e[37]!==T?($=t.jsx(oe,{value:"prompts",variant:"underline",children:T}),e[37]=T,e[38]=$):$=e[38];let k;e[39]!==l?(k=l("details.connectionCapabilities.resourcesTab"),e[39]=l,e[40]=k):k=e[40];let N;e[41]!==k?(N=t.jsx(oe,{value:"resources",variant:"underline",children:k}),e[41]=k,e[42]=N):N=e[42];let b;e[43]!==M||e[44]!==$||e[45]!==N||e[46]!==_?(b=t.jsx("div",{className:"px-5 flex items-center justify-between border-b border-border",children:t.jsxs(zt,{variant:"underline",className:"gap-1",children:[_,M,$,N]})}),e[43]=M,e[44]=$,e[45]=N,e[46]=_,e[47]=b):b=e[47];let E;e[48]!==S||e[49]!==n?(E=n.length>0?n.map(C=>t.jsxs("button",{type:"button",className:"w-full flex items-start gap-3 px-5 py-3 text-left hover:bg-muted/40 transition-colors cursor-pointer",onClick:()=>S(C.name),children:[t.jsx("div",{className:"mt-0.5 shrink-0 size-7 rounded-md bg-muted flex items-center justify-center",children:t.jsx(Lt,{size:13,className:"text-muted-foreground"})}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground",children:De(C.name)}),C.description&&t.jsx("div",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed line-clamp-2",children:C.description})]}),t.jsx(Ce,{size:16,className:"text-muted-foreground shrink-0 mt-0.5"})]},C.name)):t.jsx(re,{label:"tools"}),e[48]=S,e[49]=n,e[50]=E):E=e[50];let z;e[51]!==E?(z=t.jsx(ae,{value:"tools",className:"h-auto",children:t.jsx("div",{className:"divide-y divide-border",children:E})}),e[51]=E,e[52]=z):z=e[52];let I;e[53]!==i||e[54]!==y||e[55]!==c||e[56]!==n?(I=y&&t.jsx(ae,{value:"apps",className:"h-auto min-h-[200px]",children:t.jsx(xs,{tools:n,connectionId:i,org:c})}),e[53]=i,e[54]=y,e[55]=c,e[56]=n,e[57]=I):I=e[57];let A;e[58]!==d?(A=d.length>0?d.map(gs):t.jsx(re,{label:"prompts"}),e[58]=d,e[59]=A):A=e[59];let L;e[60]!==A?(L=t.jsx(ae,{value:"prompts",className:"h-auto",children:t.jsx("div",{className:"divide-y divide-border",children:A})}),e[60]=A,e[61]=L):L=e[61];let p;e[62]!==m?(p=m.length>0?m.map(hs):t.jsx(re,{label:"resources"}),e[62]=m,e[63]=p):p=e[63];let w;e[64]!==p?(w=t.jsx(ae,{value:"resources",className:"h-auto",children:t.jsx("div",{className:"divide-y divide-border",children:p})}),e[64]=p,e[65]=w):w=e[65];let O;return e[66]!==b||e[67]!==z||e[68]!==I||e[69]!==L||e[70]!==w?(O=t.jsx("div",{className:"rounded-xl border border-border bg-card overflow-hidden",children:t.jsxs(Et,{defaultValue:"tools",variant:"underline",children:[b,z,I,L,w]})}),e[66]=b,e[67]=z,e[68]=I,e[69]=L,e[70]=w,e[71]=O):O=e[71],O}function hs(s){return t.jsxs("div",{className:"flex items-start gap-3 px-5 py-3",children:[t.jsx("div",{className:"mt-0.5 shrink-0 size-7 rounded-md bg-muted flex items-center justify-center",children:t.jsx(gt,{size:13,className:"text-muted-foreground"})}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground",children:s.name}),s.description&&t.jsx("div",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed line-clamp-2",children:s.description}),s.uri&&t.jsx("div",{className:"text-xs text-muted-foreground/60 font-mono mt-0.5 truncate",children:s.uri})]})]},s.uri??s.name)}function gs(s){return t.jsxs("div",{className:"flex items-start gap-3 px-5 py-3",children:[t.jsx("div",{className:"mt-0.5 shrink-0 size-7 rounded-md bg-muted flex items-center justify-center",children:t.jsx(ht,{size:13,className:"text-muted-foreground"})}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground",children:De(s.name)}),s.description&&t.jsx("div",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed line-clamp-2",children:s.description})]})]},s.name)}function js(s){return de(s._meta)}function bs(s){const e=R.c(15),{connection:n,displayTitle:r}=s,o=Le(),i=r??n.title,c=o?"md":"xl";let a;e[0]!==n.icon||e[1]!==c||e[2]!==i?(a=t.jsx(le,{icon:n.icon,name:i,size:c,className:"shrink-0"}),e[0]=n.icon,e[1]=c,e[2]=i,e[3]=a):a=e[3];let d;e[4]!==o||e[5]!==i?(d=o?t.jsx(Re.Title,{children:i}):t.jsx("div",{className:"flex flex-wrap items-center gap-2 mb-2",children:t.jsx("h1",{className:"text-lg md:text-xl font-semibold tracking-tight text-foreground leading-none",children:i})}),e[4]=o,e[5]=i,e[6]=d):d=e[6];let x;e[7]!==n.description?(x=n.description&&t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed line-clamp-2",children:n.description}),e[7]=n.description,e[8]=x):x=e[8];let m;e[9]!==d||e[10]!==x?(m=t.jsxs("div",{className:"flex-1 min-w-0",children:[d,x]}),e[9]=d,e[10]=x,e[11]=m):m=e[11];let l;return e[12]!==a||e[13]!==m?(l=t.jsxs("div",{className:"flex items-center classic:gap-4 classic:md:gap-6 classic:py-5 classic:md:py-7 px-4 md:px-8 bg-background border-b border-border shrink-0 compact:gap-3 compact:py-4",children:[a,m]}),e[12]=a,e[13]=m,e[14]=l):l=e[14],l}function vs({form:s,connection:e,hasOAuthToken:n,onReauthenticate:r,onRemoveOAuth:o}){const i=V(),c=xe({control:s.control,name:"ui_type"}),a=xe({control:s.control,name:"connection_url"}),{stdioEnabled:d}=Ue(),x=(()=>{if(typeof a!="string"||!a)return!1;try{const u=new URL(a);return u.hostname==="api.githubcopilot.com"&&u.pathname.replace(/\/+$/,"")==="/mcp"}catch{return!1}})(),m=d||e.connection_type==="STDIO",l=e.connection_type==="VIRTUAL",f=l?Kt(e.connection_url):null;return l?t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.type")}),t.jsxs("div",{className:"flex items-center gap-2 h-10 px-3 border border-border rounded-lg bg-muted/50",children:[t.jsx(ye,{className:"w-4 h-4 text-muted-foreground"}),t.jsx("span",{className:"text-sm",children:i("details.connectionSidebar.virtualMcp")})]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:i("details.connectionSidebar.virtualMcpDescription")})]}),f&&t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.virtualMcpId")}),t.jsx("div",{className:"flex items-center gap-2 h-10 px-3 border border-border rounded-lg bg-muted/50",children:t.jsx("code",{className:"text-sm text-muted-foreground",children:f})})]})]}):t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsx(K,{control:s.control,name:"ui_type",render:({field:u})=>t.jsxs(Q,{className:"flex flex-col gap-3",children:[t.jsx(X,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.connection")}),c!=="NPX"&&c!=="STDIO"?t.jsxs("div",{className:"flex items-stretch rounded-lg border border-border overflow-hidden",children:[t.jsxs(fe,{value:u.value,onValueChange:u.onChange,children:[t.jsx(B,{children:t.jsxs(he,{className:"h-full! w-auto min-w-[90px] border-0 rounded-none bg-muted/50 focus:ring-0 focus:ring-offset-0",children:[t.jsx(ie,{className:"w-4 h-4 text-muted-foreground shrink-0"}),t.jsx(ge,{})]})}),t.jsxs(je,{children:[t.jsx(H,{value:"HTTP",children:i("details.connectionSidebar.http")}),t.jsx(H,{value:"SSE",children:i("details.connectionSidebar.sse")}),t.jsx(H,{value:"Websocket",children:i("details.connectionSidebar.websocket")}),m&&t.jsxs(t.Fragment,{children:[t.jsx(H,{value:"NPX",children:i("details.connectionSidebar.npxPackage")}),t.jsx(H,{value:"STDIO",children:i("details.connectionSidebar.customCommand")})]})]})]}),t.jsx("div",{className:"w-px bg-border"}),t.jsx(K,{control:s.control,name:"connection_url",render:({field:h})=>t.jsx(Q,{className:"flex-1 min-w-0",children:t.jsx(B,{children:t.jsx(Y,{placeholder:i("details.connectionSidebar.urlPlaceholder"),...h,value:h.value??"",className:"h-10 border-0 rounded-none focus-visible:ring-0 focus-visible:ring-offset-0 bg-transparent"})})})})]}):t.jsxs(fe,{value:u.value,onValueChange:u.onChange,children:[t.jsx(B,{children:t.jsx(he,{className:"h-10",children:t.jsx(ge,{})})}),t.jsxs(je,{children:[t.jsx(H,{value:"HTTP",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ie,{className:"w-4 h-4"}),i("details.connectionSidebar.http")]})}),t.jsx(H,{value:"SSE",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ie,{className:"w-4 h-4"}),i("details.connectionSidebar.sse")]})}),t.jsx(H,{value:"Websocket",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ie,{className:"w-4 h-4"}),i("details.connectionSidebar.websocket")]})}),m&&t.jsxs(t.Fragment,{children:[t.jsx(H,{value:"NPX",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(qt,{className:"w-4 h-4"}),i("details.connectionSidebar.npxPackage")]})}),t.jsx(H,{value:"STDIO",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Gt,{className:"w-4 h-4"}),i("details.connectionSidebar.customCommand")]})})]})]})]}),t.jsx(W,{})]})}),c==="NPX"&&t.jsx(K,{control:s.control,name:"npx_package",render:({field:u})=>t.jsxs(Q,{className:"flex flex-col gap-3",children:[t.jsx(X,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.npmPackage")}),t.jsx(B,{children:t.jsx(Y,{placeholder:i("details.connectionSidebar.npmPackagePlaceholder"),...u,value:u.value||"",className:"h-10 rounded-lg"})}),t.jsx(W,{})]})}),c==="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsx(K,{control:s.control,name:"stdio_command",render:({field:u})=>t.jsxs(Q,{className:"flex flex-col gap-3",children:[t.jsx(X,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.command")}),t.jsx(B,{children:t.jsx(Y,{placeholder:i("details.connectionSidebar.commandPlaceholder"),...u,value:u.value||"",className:"h-10 rounded-lg"})}),t.jsx(W,{})]})}),t.jsx(K,{control:s.control,name:"stdio_args",render:({field:u})=>t.jsxs(Q,{className:"flex flex-col gap-3",children:[t.jsx(X,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.arguments")}),t.jsx(B,{children:t.jsx(Y,{placeholder:i("details.connectionSidebar.argumentsPlaceholder"),...u,value:u.value||"",className:"h-10 rounded-lg"})}),t.jsx("p",{className:"text-xs text-muted-foreground",children:i("details.connectionSidebar.spaceSeparatedArguments")}),t.jsx(W,{})]})})]}),t.jsx(K,{control:s.control,name:"stdio_cwd",render:({field:u})=>t.jsxs(Q,{className:"flex flex-col gap-3",children:[t.jsx(X,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.workingDirectory")}),t.jsx(B,{children:t.jsx(Y,{placeholder:i("details.connectionSidebar.workingDirectoryPlaceholder"),...u,value:u.value||"",className:"h-10 rounded-lg"})}),t.jsx(W,{})]})})]}),(c==="NPX"||c==="STDIO")&&t.jsx(K,{control:s.control,name:"env_vars",render:({field:u})=>t.jsxs(Q,{className:"flex flex-col gap-3",children:[t.jsx(X,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.environmentVariables")}),t.jsx(B,{children:t.jsx(Ye,{value:u.value??[],onChange:u.onChange})}),t.jsx(W,{})]})}),c!=="NPX"&&c!=="STDIO"&&t.jsx(K,{control:s.control,name:"connection_token",render:({field:u})=>t.jsxs(Q,{className:"flex flex-col gap-3",children:[t.jsx(X,{className:"text-xs text-muted-foreground font-medium",children:i(x?"details.connectionSidebar.githubPersonalAccessToken":"details.connectionSidebar.token")}),n?t.jsx("div",{className:"flex items-center gap-2",children:t.jsxs(Fe,{children:[t.jsx(Ve,{asChild:!0,children:t.jsx("button",{type:"button",className:"inline-flex items-center gap-1.5 cursor-pointer",children:t.jsxs(Ft,{variant:"success",className:"gap-1.5",children:[t.jsx(Vt,{size:12}),i("details.connectionSidebar.authenticatedViaOAuth"),t.jsx(Bt,{size:12})]})})}),t.jsxs(Be,{align:"start",children:[t.jsxs(pe,{onClick:r,children:[t.jsx(jt,{size:16}),i("details.connectionSidebar.reauthenticate")]}),t.jsxs(pe,{variant:"destructive",onClick:o,children:[t.jsx(ce,{size:16}),i("details.connectionSidebar.removeOAuth")]})]})]})}):e.connection_token&&u.value===null?t.jsxs("div",{className:"relative group",children:[t.jsx("div",{className:"h-10 px-3 flex items-center rounded-lg border border-border bg-muted/50 text-muted-foreground font-mono text-sm",children:"••••••••••••••••"}),t.jsx("button",{type:"button",onClick:()=>u.onChange(""),className:"absolute right-2 top-1/2 -translate-y-1/2 p-1 classic:rounded hover:bg-muted opacity-0 group-hover:opacity-100 transition-opacity compact:rounded-lg",title:i("details.connectionSidebar.clearAndReplaceToken"),"aria-label":i("details.connectionSidebar.clearAndReplaceToken"),children:t.jsx(Ht,{size:14,className:"text-muted-foreground"})})]}):t.jsxs(t.Fragment,{children:[t.jsx(B,{children:t.jsx(Y,{type:"password",placeholder:i(x?"details.connectionSidebar.pasteYourGitHubPat":"details.connectionSidebar.enterAccessToken"),...u,value:u.value||"",className:"h-10 rounded-lg"})}),x&&t.jsxs(Ct,{children:[i("details.connectionSidebar.createAPatAt")," ",t.jsx("a",{href:"https://github.com/settings/personal-access-tokens",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"github.com/settings/personal-access-tokens"})]})]}),t.jsx(W,{})]})})]})}function Ns(s){return s.command==="npx"}function Ss(s){return s.args?.find(e=>!e.startsWith("-"))??""}function ys(s){return{command:s.command,args:s.args?.join(" ")??"",cwd:s.cwd??""}}function be(s,e){const n={title:s.title,description:s.description??"",icon:s.icon??null,configuration_state:s.configuration_state??{},configuration_scopes:s.configuration_scopes||[]};if(s.connection_type==="STDIO"&&Qt(s.connection_headers)){const r=s.connection_headers,o=Ze(r.envVars);if(Ns(r)){const c=Ss(r);return{...n,ui_type:"NPX",connection_url:"",connection_token:null,npx_package:c,stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:o}}const i=ys(r);return{...n,ui_type:"STDIO",connection_url:"",connection_token:null,npx_package:"",stdio_command:i.command,stdio_args:i.args,stdio_cwd:i.cwd,env_vars:o}}return{...n,ui_type:s.connection_type,connection_url:s.connection_url??"",connection_token:null,npx_package:"",stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:[]}}function Cs(s){let e,n=null,r=null,o=null;return s.ui_type==="NPX"?(e="STDIO",n="",o=et(s.npx_package||"",s.env_vars||[])):s.ui_type==="STDIO"?(e="STDIO",n="",o=tt(s.stdio_command||"",s.stdio_args||"",s.stdio_cwd,s.env_vars||[])):(e=s.ui_type,n=s.connection_url||"",r=s.connection_token||null),{title:s.title,description:s.description||null,icon:s.icon??null,connection_type:e,connection_url:n,...r&&{connection_token:r},...o&&{connection_headers:o},configuration_state:s.configuration_state??null,configuration_scopes:s.configuration_scopes??null}}function _s({connection:s,connectionId:e,org:n,isUpdating:r,tools:o,prompts:i,resources:c,siblings:a}){const d=V(),x=ne({from:"/$org/settings/connections/$appSlug"}),m=Ke(),l=ke(),{org:f}=se(),u=wt({onSuccess:()=>{a.length<=1&&x({to:"/$org/settings/connections",params:{org:n}})}}),[h,g]=Z.useState(null),[j,S]=Z.useState(!1),v=we({connectionId:e}),{data:y}=at(),P=y?.data?.members??[],D=h??s,_=P.find(p=>p.userId===D.created_by),T=s?.connection_type==="VIRTUAL"||v.isAuthenticated,$={...s,tools:o},k=st($,Wt),N=Qe({resolver:Xe(Je),values:be(h??s)}),b=N.formState.isDirty,E=async()=>{if(!await N.trigger())return;const w=N.getValues(),O=Cs(w),C=h?.id??e;await l.update.mutateAsync({id:C,data:O}),N.reset(w)},z=()=>{N.reset(be(h??s))},I=async p=>{const w=s.configuration_scopes?.length?s.configuration_scopes.join(" "):void 0,{token:O,tokenInfo:C,error:U}=await ut({connectionId:p,orgSlug:f.slug,...w?{scope:w}:{}});if(U||!O){J.error(d("details.connection.authFailed",{error:U??""}));return}if(C)try{const F=await fetch(`/api/${f.slug}/connections/${p}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:C.accessToken,refreshToken:C.refreshToken,expiresIn:C.expiresIn,scope:C.scope,clientId:C.clientId,clientSecret:C.clientSecret,tokenEndpoint:C.tokenEndpoint})});if(!F.ok)console.error("Failed to save OAuth token:",await F.text()),await l.update.mutateAsync({id:p,data:{connection_token:O}});else try{await l.update.mutateAsync({id:p,data:{}})}catch(ee){console.warn("Failed to refresh connection tools after OAuth:",ee)}}catch(F){console.error("Error saving OAuth token:",F),await l.update.mutateAsync({id:p,data:{connection_token:O}})}else await l.update.mutateAsync({id:p,data:{connection_token:O}});const G=new URL(`/api/${f.slug}/mcp/${p}`,window.location.origin);await m.invalidateQueries({queryKey:te.isMCPAuthenticated(G.href,null)}),await m.invalidateQueries({queryKey:te.mcpClientPrefix()}),J.success(d("details.connection.authSuccess"))},A=()=>I(s.id),L=async()=>{try{const p=await fetch(`/api/${f.slug}/connections/${s.id}/oauth-token`,{method:"DELETE",credentials:"include"});if(!p.ok){const O=await p.text();J.error(d("details.connection.failedRemoveOAuth",{error:O}));return}const w=new URL(`/api/${f.slug}/mcp/${s.id}`,window.location.origin);await m.invalidateQueries({queryKey:te.isMCPAuthenticated(w.href,null)}),J.success(d("details.connection.oauthRemoved"))}catch(p){console.error("Error removing OAuth token:",p),J.error(d("details.connection.failedRemoveOAuthError"))}};return t.jsxs(t.Fragment,{children:[t.jsx(It,{...u}),t.jsx(bt,{open:h!==null,onOpenChange:p=>{p||g(null)},children:t.jsxs(vt,{side:"right",className:"sm:max-w-[520px] p-0 flex flex-col gap-0 overflow-hidden",children:[t.jsxs(Nt,{className:"px-4 py-3 md:px-6 md:py-4 border-b border-border shrink-0",children:[t.jsx(St,{className:"text-base",children:h?.title??s.title}),t.jsx(yt,{className:"text-xs",children:d("details.connection.settingsDescription")}),_&&t.jsxs("div",{className:"flex items-center gap-1.5 pt-1",children:[t.jsx("span",{className:"text-xs text-muted-foreground",children:d("details.connection.connectedBy")}),t.jsx(lt,{url:_.user?.image??void 0,fallback:_.user?.name??_.user?.email??"?",size:"3xs",shape:"circle"}),t.jsx("span",{className:"text-xs font-medium text-foreground",children:_.user?.name||_.user?.email})]})]}),t.jsxs(_t,{...N,children:[t.jsxs("div",{className:"flex-1 overflow-y-auto px-4 py-3 md:px-6 md:py-5 flex flex-col gap-4 md:gap-6",children:[t.jsxs("div",{className:"flex flex-col gap-3 md:gap-4",children:[t.jsx(K,{control:N.control,name:"title",render:({field:p})=>t.jsxs(Q,{children:[t.jsx(X,{children:d("details.connection.nameLabel")}),t.jsx(B,{children:t.jsx(Y,{...p})}),t.jsx(W,{})]})}),t.jsx(K,{control:N.control,name:"description",render:({field:p})=>t.jsxs(Q,{children:[t.jsx(X,{children:d("details.connection.descriptionLabel")}),t.jsx(B,{children:t.jsx(Y,{...p,value:p.value||""})}),t.jsx(W,{})]})})]}),t.jsx(vs,{form:N,connection:h??s,hasOAuthToken:v.hasOAuthToken,onReauthenticate:A,onRemoveOAuth:L}),t.jsx(nt,{connection:h??s,form:N,hasMcpBinding:k,isMCPAuthenticated:T,supportsOAuth:v.supportsOAuth,isServerError:v.isServerError,onAuthenticate:A,onViewReadme:void 0})]}),t.jsxs("div",{className:"px-6 py-4 border-t border-border flex gap-2 shrink-0",children:[t.jsx(q,{onClick:E,disabled:!b||r,className:"flex-1",children:d(r?"details.connection.savingButton":"details.connection.saveButton")}),b&&t.jsx(q,{variant:"outline",onClick:z,children:d("details.connection.undoButton")}),t.jsxs(q,{variant:"outline",className:"gap-2 text-muted-foreground hover:text-destructive hover:border-destructive",onClick:()=>{const p=h??s;g(null),u.requestDelete(p)},children:[t.jsx(ce,{size:15}),d("details.connection.deleteButton")]})]})]},h?.id??s.id)]})}),t.jsx(it,{hideTopbar:!0,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[t.jsx(bs,{connection:s,displayTitle:(()=>{const p=a[0]??s;return p.app_name?p.title.replace(/\s*\(\d+\)\s*$/,""):p.title})()}),t.jsx("div",{className:"flex-1 overflow-auto @container",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-2 gap-5 p-6",children:[t.jsx(cs,{connectionId:e}),t.jsxs("div",{className:"flex flex-col gap-5",children:[t.jsx(Zt,{instances:a,onConfigure:p=>g(p),onAuthenticate:p=>I(p.id),onDelete:p=>u.requestDelete(p),onToggleStatus:async(p,w)=>{try{await l.update.mutateAsync({id:p.id,data:{status:w}}),J.success(d(w==="active"?"details.connection.connectionEnabled":"details.connection.connectionDisabled"))}catch{J.error(d("details.connection.failedUpdateConnection"))}},isAdding:j,onAdd:async()=>{S(!0);try{const p=a[0]??s,w=p.title.replace(/\s*\(\d+\)\s*$/,""),O=a.length+1,C=`${w} (${O})`,U=We("conn");await l.create.mutateAsync({id:U,title:C,description:p.description??null,connection_type:p.connection_type,connection_url:p.connection_url??null,connection_token:null,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),created_by:p.created_by,organization_id:p.organization_id,icon:p.icon??null,app_name:p.app_name??null,app_id:p.app_id??null,connection_headers:p.connection_headers??null,oauth_config:null,configuration_state:p.configuration_state??null,metadata:null,tools:null,bindings:null,status:"inactive"});const G=new URL(`/api/${f.slug}/mcp/${U}`,window.location.origin),F=await mt({url:G.href,token:null,orgId:f.id});F.supportsOAuth&&!F.isAuthenticated&&await I(U)}finally{S(!1)}}}),t.jsx(us,{connection:s})]}),t.jsx("div",{className:"@3xl:col-span-2",children:t.jsx(fs,{tools:o,prompts:i,resources:c,connectionId:e,org:n})})]})})]})})]})}function ws(){const s=R.c(52),e=V();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/$org/settings/connections/$appSlug"},s[0]=n):n=s[0];const r=ne(n);let o;s[1]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org/settings/connections/$appSlug"},s[1]=o):o=s[1];const{appSlug:i,org:c}=Ge(o),{org:a}=se(),d=ke();let x;s[2]!==i?(x={slug:i},s[2]=i,s[3]=x):x=s[3];const m=rt(x),l=m[0]??null,f=l?.id??"",u=f||null;let h;s[4]!==a.id||s[5]!==a.slug||s[6]!==u?(h={connectionId:u,orgId:a.id,orgSlug:a.slug},s[4]=a.id,s[5]=a.slug,s[6]=u,s[7]=h):h=s[7];const g=Te(h);let j;s[8]!==g?(j={client:g},s[8]=g,s[9]=j):j=s[9];const{data:S}=ct(j);let v;if(s[10]!==l?.tools||s[11]!==f||s[12]!==m||s[13]!==S){const I=S?S.tools.map(Ds):(l?.tools??[]).map(Ps);e:{if(m.length<=1){v=I;break e}const A=new Set,L=[],p=Ts;for(const w of m){const O=w.id===f?I:p(w.tools);for(const C of O)A.has(C.name)||(A.add(C.name),L.push(C))}v=L.length>0?L:I}s[10]=l?.tools,s[11]=f,s[12]=m,s[13]=S,s[14]=v}else v=s[14];const y=v;let P;s[15]!==g?(P={client:g},s[15]=g,s[16]=P):P=s[16];const{data:D}=dt(P);let _;s[17]!==g?(_={client:g},s[17]=g,s[18]=_):_=s[18];const{data:M}=He(_);let T;s[19]!==D?.prompts?(T=D?.prompts??[],s[19]=D?.prompts,s[20]=T):T=s[20];let $;s[21]!==T?($=T.map(ks),s[21]=T,s[22]=$):$=s[22];const k=$;let N;s[23]!==M?.resources?(N=M?.resources??[],s[23]=M?.resources,s[24]=N):N=s[24];let b;s[25]!==N?(b=N.map(Is),s[25]=N,s[26]=b):b=s[26];const E=b;if(!l){let I;s[27]!==e?(I=e("details.connection.notFoundTitle"),s[27]=e,s[28]=I):I=s[28];let A;s[29]!==e?(A=e("details.connection.notFoundDescription"),s[29]=e,s[30]=A):A=s[30];let L;s[31]!==r||s[32]!==c?(L=()=>r({to:"/$org/settings/connections",params:{org:c}}),s[31]=r,s[32]=c,s[33]=L):L=s[33];let p;s[34]!==e?(p=e("details.connection.backButton"),s[34]=e,s[35]=p):p=s[35];let w;s[36]!==L||s[37]!==p?(w=t.jsx(q,{variant:"outline",onClick:L,children:p}),s[36]=L,s[37]=p,s[38]=w):w=s[38];let O;return s[39]!==I||s[40]!==A||s[41]!==w?(O=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(_e,{title:I,description:A,actions:w})}),s[39]=I,s[40]=A,s[41]=w,s[42]=O):O=s[42],O}let z;return s[43]!==d.update.isPending||s[44]!==y||s[45]!==l||s[46]!==f||s[47]!==c||s[48]!==k||s[49]!==E||s[50]!==m?(z=t.jsx(_s,{org:c,connection:l,connectionId:f,isUpdating:d.update.isPending,tools:y,prompts:k,resources:E,siblings:m}),s[43]=d.update.isPending,s[44]=y,s[45]=l,s[46]=f,s[47]=c,s[48]=k,s[49]=E,s[50]=m,s[51]=z):z=s[51],z}function Is(s){return{name:s.name,description:s.description,uri:s.uri}}function ks(s){return{name:s.name,description:s.description}}function Ts(s){return(s??[]).map(As)}function As(s){return{name:s.name,description:s.description,inputSchema:s.inputSchema??{},outputSchema:s.outputSchema,annotations:s.annotations,_meta:s._meta}}function Ps(s){return{name:s.name,description:s.description,inputSchema:s.inputSchema,outputSchema:s.outputSchema,annotations:s.annotations,_meta:s._meta}}function Ds(s){return{name:s.name,description:s.description,inputSchema:s.inputSchema,outputSchema:s.outputSchema,annotations:s.annotations,_meta:s._meta}}function $s(){const s=R.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(qe,{children:t.jsx(Z.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx(Ne,{className:"size-8 text-muted-foreground"})}),children:t.jsx(ws,{})})}),s[0]=e):e=s[0],e}function Ti(){const s=R.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx($s,{}),s[0]=e):e=s[0],e}export{Ti as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ao as R,bM as A,bO as I,ap as o,bL as j,bN as L,c as z,j as u,B as C}from"./index-EcuFIS2a.js";import{I as H}from"./input-Buz_7xoG.js";import{s as W}from"./Plus-BSp00qOC.js";import{s as q}from"./Trash01-DtE0n00a.js";const K=R({key:o().min(1,"Key is required"),value:o()}),G=R({title:o().min(1,"Name is required"),description:o().nullable().optional(),icon:o().nullable().optional(),ui_type:L(["HTTP","SSE","Websocket","NPX","STDIO"]),connection_url:o().optional(),connection_token:o().nullable().optional(),npx_package:o().optional(),stdio_command:o().optional(),stdio_args:o().optional(),stdio_cwd:o().optional(),env_vars:j(K).optional(),configuration_scopes:j(o()).nullable().optional(),configuration_state:A(o(),I()).nullable().optional()}).refine(n=>n.ui_type==="NPX"?!!n.npx_package?.trim():!0,{message:"NPM package is required",path:["npx_package"]}).refine(n=>n.ui_type==="STDIO"?!!n.stdio_command?.trim():!0,{message:"Command is required",path:["stdio_command"]}).refine(n=>n.ui_type==="HTTP"||n.ui_type==="SSE"||n.ui_type==="Websocket"?!!n.connection_url?.trim():!0,{message:"URL is required",path:["connection_url"]}).refine(n=>(n.ui_type==="HTTP"||n.ui_type==="SSE"||n.ui_type==="Websocket")&&n.connection_url?.trim()?o().url().safeParse(n.connection_url.trim()).success:!0,{message:"Enter a valid URL",path:["connection_url"]});function O(n){const e=n.toLowerCase();return!!(["secret","password","passwd","credential","private","token","bearer","jwt","refresh","session","api_key","apikey","auth_key","access_key","secret_key","private_key","service_key","encryption_key","signing_key","license_key","auth","oauth","client_secret","app_secret","webhook","signing","signature","database_url","db_url","mongo_uri","redis_url","postgres_url","mysql_url","connection_string","dsn","service_role","anon_key","supabase_key","openai","anthropic","stripe","twilio","sendgrid","resend","firebase","sentry","datadog","newrelic","new_relic","pplx","replicate","pinecone","cohere","hugging","hf_token","gh_token","npm_token","certificate","cert","ssl","tls","encryption","salt","hash","hmac","personal_access","github_pat","gitlab_pat","bitbucket_pat"].some(i=>e.includes(i))||["sk_","rk_","whsec_","pk_live","sk_live"].some(i=>e.startsWith(i))||["_key","_secret","_token","_password","_auth","_pat"].some(i=>e.endsWith(i)))}function X(n){const e=z.c(34),{value:t,onChange:r,keyPlaceholder:a,valuePlaceholder:i,className:v}=n,m=a===void 0?"VARIABLE_NAME":a,h=i===void 0?"value...":i;let b;e[0]!==r||e[1]!==t?(b=()=>{r([...t,{key:"",value:""}])},e[0]=r,e[1]=t,e[2]=b):b=e[2];const S=b;let x;e[3]!==r||e[4]!==t?(x=l=>{r(t.filter((p,s)=>s!==l))},e[3]=r,e[4]=t,e[5]=x):x=e[5];const y=x;let P;e[6]!==r||e[7]!==t?(P=(l,p)=>{const s=[...t],c=s[l];c&&(s[l]={key:p,value:c.value},r(s))},e[6]=r,e[7]=t,e[8]=P):P=e[8];const g=P;let T;e[9]!==r||e[10]!==t?(T=(l,p)=>{const s=[...t],c=s[l];c&&(s[l]={key:c.key,value:p},r(s))},e[9]=r,e[10]=t,e[11]=T):T=e[11];const k=T;let f;if(e[12]!==g||e[13]!==y||e[14]!==k||e[15]!==m||e[16]!==t||e[17]!==h){let l;e[19]!==g||e[20]!==y||e[21]!==k||e[22]!==m||e[23]!==h?(l=(p,s)=>u.jsxs("div",{className:"flex gap-2 items-center",children:[u.jsx(H,{placeholder:m,value:p.key,onChange:c=>g(s,c.target.value),className:"h-10 rounded-lg flex-1 font-mono text-sm"}),u.jsx(H,{type:O(p.key)?"password":"text",placeholder:h,value:p.value,onChange:c=>k(s,c.target.value),className:"h-10 rounded-lg flex-1"}),u.jsx(C,{type:"button",variant:"ghost",size:"icon",className:"h-10 w-10 shrink-0 text-muted-foreground hover:text-destructive",onClick:()=>y(s),children:u.jsx(q,{size:16})})]},s),e[19]=g,e[20]=y,e[21]=k,e[22]=m,e[23]=h,e[24]=l):l=e[24],f=t.map(l),e[12]=g,e[13]=y,e[14]=k,e[15]=m,e[16]=t,e[17]=h,e[18]=f}else f=e[18];let w;e[25]===Symbol.for("react.memo_cache_sentinel")?(w=u.jsx(W,{size:16,className:"mr-1"}),e[25]=w):w=e[25];let d;e[26]!==S?(d=u.jsxs(C,{type:"button",variant:"outline",size:"sm",className:"w-full h-9 text-muted-foreground",onClick:S,children:[w,"Add Environment Variable"]}),e[26]=S,e[27]=d):d=e[27];let _;e[28]!==f||e[29]!==d?(_=u.jsxs("div",{className:"flex flex-col gap-2",children:[f,d]}),e[28]=f,e[29]=d,e[30]=_):_=e[30];let E;return e[31]!==v||e[32]!==_?(E=u.jsx("div",{className:v,children:_}),e[31]=v,e[32]=_,e[33]=E):E=e[33],E}function V(n){const e={};for(const{key:t,value:r}of n)t.trim()&&(e[t.trim()]=r);return e}function D(n){return n?Object.entries(n).map(([e,t])=>({key:e,value:t})):[]}function N(n){const e=n.trim();if(!e)return"";try{const t=new URL(e),r=t.pathname.length>1?t.pathname.replace(/\/+$/,""):t.pathname;return`${t.origin}${r}`}catch{return e.replace(/\/+$/,"")}}function F(n){const e=n.trim().split(/\s+/).filter(Boolean);if(e.length<2)return null;const t=e[0]?.toLowerCase();if(t!=="npx"&&t!=="bunx")return null;const a=e.slice(1).find(i=>!i.startsWith("-"));return a?{packageName:a}:null}function Y(n){const{uiType:e}=n,t=N(n.connectionUrl??"");if((e==="HTTP"||e==="SSE"||e==="Websocket")&&t===N("https://api.githubcopilot.com/mcp/"))return{id:"github",title:"GitHub",description:"GitHub Copilot MCP",token:{label:"GitHub PAT",placeholder:"github_pat_…",helperText:"Paste a GitHub Personal Access Token (PAT)"}};const r=(n.npxPackage??"").trim();return e==="NPX"&&r==="@perplexity-ai/mcp-server"?{id:"perplexity",title:"Perplexity",description:"Perplexity MCP Server",envVarKeys:["PERPLEXITY_API_KEY"]}:null}function J(n){if(n.registryItems.length===0||n.uiType!=="HTTP"&&n.uiType!=="SSE"&&n.uiType!=="Websocket")return null;const e=N(n.connectionUrl??"");if(!e)return null;const t=n.registryItems.find(i=>(i.server?.remotes??[]).some(m=>N(m.url??"")===e));if(!t)return null;const r=t.title||t.name||t.server?.title||t.server?.name||"",a=t.server?.description||t.description||t.summary||null;return r?{id:"registry",title:r,description:a}:null}function Q(n,e){const t={command:"npx",args:["-y",n]},r=V(e);return Object.keys(r).length>0&&(t.envVars=r),t}function Z(n,e,t,r){const a={command:n};e.trim()&&(a.args=e.trim().split(/\s+/)),t?.trim()&&(a.cwd=t.trim());const i=V(r);return Object.keys(i).length>0&&(a.envVars=i),a}export{X as E,J as a,Q as b,G as c,Z as d,Y as i,F as p,D as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as R,c as re,b as de,j as t,B as q,h as xe,q as le,l as ye,G as ge,F as tt,I as nt,H as st,E as ot,Z as it,a0 as Ae,d as Ie,u as ct,a as we,Y as lt,af as be,_ as rt,$ as at,ar as dt,aq as ut,n as je,o as mt,a6 as gt,t as J,K as pt}from"./index-EcuFIS2a.js";import{a as Pe,g as ft,e as ht}from"./extract-connection-data-C7Wh9xkI.js";import{C as xt}from"./collection-display-button-Cz5AkuIg.js";import{S as jt}from"./search-input-BHVk6m6A.js";import{C as St}from"./collection-tabs-aKKPIP9M.js";import{C as _e,u as yt,a as Le,g as Ct}from"./connection-card-CpIJKLp3.js";import{E as vt}from"./empty-state-Y08kvU5o.js";import{u as bt,D as _t}from"./use-delete-connection-CqvqqWgS.js";import{u as Dt}from"./use-infinite-scroll-D0T36z_V.js";import{u as Nt}from"./use-view-mode-BEPkb8x0.js";import{g as he}from"./connection-slug-CITJ0kGN.js";import{A as Oe,a as $e,b as Me,c as Fe,g as Ue,d as Ve,e as ze,f as Ee}from"./alert-dialog-9n2p5SCQ.js";import{n as Ce}from"./Tool02-CvlAGFBM.js";import{g as kt}from"./github-D4UJ99TO.js";import{g as Tt}from"./metadata-dUsYcpuu.js";import{d as Be,h as Ke,c as He,e as Re,b as We,D as Xe}from"./dialog-AoC07APJ.js";import{D as At,a as It,d as wt,b as Pt,e as Lt,f as Ot,g as $t}from"./drawer-DGzquxJ8.js";import{u as Mt}from"./use-mobile-BZ15DgEB.js";import{F as ne,b as se,c as oe,d as ie,f as ce,a as ke}from"./form-CYsJTpNM.js";import{I as me}from"./input-Buz_7xoG.js";import{S as Ft,b as Ut,a as Vt,d as zt,c as fe}from"./select-DBfOOW9i.js";import{T as Et}from"./textarea-D5v3ol7T.js";import{b as qe,u as Bt}from"./use-connection-BKZRi94S.js";import{m as Kt}from"./use-mcp-client-B_gcvvCy.js";import{b as Ht}from"./use-virtual-mcp-Ji9vcgUj.js";import{g as Rt}from"./types-7UQ7SDxU.js";import{be as Wt,ah as Xt,b1 as qt,j as ve}from"./agent-icon-CTsmTxHg.js";import{s as Ge}from"./Plus-BSp00qOC.js";import{a as Gt}from"./UserSquare-CcF49LHs.js";import{s as Qe}from"./XClose-CvcHLHe2.js";import{i as Se,a as Te,E as Qt,c as Yt,p as Jt,b as Zt,d as en}from"./connection-form-helpers-DM_wSOEJ.js";import{a as tn}from"./authenticate-and-persist-oauth-Pk9b2m8R.js";import{I as nn}from"./integration-icon-D3FHJbYu.js";import{C as Ye}from"./checkbox-iGlb02v9.js";import{i as sn}from"./DotsVertical-CE2o6L6N.js";import{s as Je}from"./Eye-Dq6Vw6FI.js";import{s as Ze}from"./Trash01-DtE0n00a.js";import"./connection-DStV2sLP.js";import"./ArrowUp-BtksDHBQ.js";import"./tooltip-nr5oS_bm.js";import"./index-Exw_Yjch.js";import"./view-mode-toggle-Ca0bFull.js";import"./badge-C5M6nZd4.js";import"./SearchMd-Bb5gjLcX.js";import"./use-registry-connections-Bd4wJHbx.js";import"./use-organization-settings-DvtBymY3.js";import"./schema-FDf70VFI.js";import"./task-board-Dip4Wu9j.js";import"./useInfiniteQuery-CzQJkRT9.js";import"./infiniteQueryObserver-3RxH1tr-.js";import"./retry-i8LvYSZg.js";import"./backoff-8mStPHYB.js";import"./slugify-CEUa2lfQ.js";import"./X-BtMi8Qau.js";import"./label-BX1BwzZ4.js";import"./ChevronUp-fg9sod-H.js";import"./auth-BBW3DF0r.js";import"./AlertCircle-2L7lI8NL.js";import"./Tool01-Dwy1nlT9.js";import"./ArrowLeft-8rouBEwC.js";import"./ArrowRight-DCA5zjxW.js";import"./TrendUp01-BCriuXJd.js";import"./ZoomOut-DUFJq3-K.js";import"./Globe04-GFiRExL0.js";import"./CheckCircle-BmVuh1xp.js";import"./Copy01-BgwuTJFm.js";import"./CreditCard01-CIt471eG.js";import"./Download01-DNhEQzg0.js";import"./Settings02-D9Qv7BDm.js";import"./Share07-CZ7JzYs9.js";import"./Globe01-g_y8gAs1.js";import"./Image01-QB6twEDu.js";import"./Key01-CO_i2QPb.js";import"./LayoutLeft-BfySK4h8.js";import"./Link01-BIFMl_M0.js";import"./LinkExternal01-DQD59o7F.js";import"./Monitor01-Ddm2yOG6.js";import"./Sun-DLRcOzSd.js";import"./Package-CvzEol5_.js";import"./Palette-DT856bn6.js";import"./Play-wYDcJhBq.js";import"./SearchLg-DFD1t2UL.js";import"./Stars01-D-wYuyik.js";import"./Upload01-Ba-RLxE1.js";import"./User01-DHd46PZp.js";import"./Users01-B8gdz27Y.js";import"./XCircle-BLCHBIhx.js";import"./Zap-DZAIluO6.js";import"./mcp-oauth-B7YJNr4N.js";function on(v){const e=`deco-filters-${v}`,[n,p]=R.useState(()=>{try{const i=globalThis.localStorage?.getItem(e);if(i)return JSON.parse(i)}catch(i){console.error("Failed to parse stored filters:",i)}return[]});return[n,i=>{p(i);try{globalThis.localStorage?.setItem(e,JSON.stringify(i))}catch(s){console.error("Failed to save filters:",s)}}]}function cn(v){const e=re.c(7),[n,p]=R.useState(v),[l,i]=R.useState(v?"desc":null);let s;e[0]!==l||e[1]!==n?(s=o=>{n!==o?(p(o),i("asc")):l==="asc"?i("desc"):l==="desc"&&(p(void 0),i(null))},e[0]=l,e[1]=n,e[2]=s):s=e[2];const c=s;let h;return e[3]!==c||e[4]!==l||e[5]!==n?(h={sortKey:n,sortDirection:l,handleSort:c},e[3]=c,e[4]=l,e[5]=n,e[6]=h):h=e[6],h}function ln(v){const e=re.c(20),{namespace:n,resource:p,defaultSortKey:l,defaultViewMode:i}=v,s=l===void 0?"title":l,c=i===void 0?"table":i,[h,o]=R.useState(""),N=R.useDeferredValue(h),m=`${n}-${p}`,[g,C]=on(m),x=`studio-${p}-filter-visible-${n}`;let _;e[0]!==x?(_=()=>globalThis.localStorage?.getItem(x)==="true",e[0]=x,e[1]=_):_=e[1];const[a,j]=R.useState(_);let y;e[2]!==x?(y=$=>{j($),globalThis.localStorage?.setItem(x,String($))},e[2]=x,e[3]=y):y=e[3];const b=y;let D;e[4]!==a||e[5]!==b?(D=()=>{b(!a)},e[4]=a,e[5]=b,e[6]=D):D=e[6];const k=D,[A,r]=Nt(`studio-${p}-${n}`,c),{sortKey:T,sortDirection:O,handleSort:I}=cn(s),B=T;let M;return e[7]!==a||e[8]!==g||e[9]!==I||e[10]!==h||e[11]!==N||e[12]!==b||e[13]!==C||e[14]!==r||e[15]!==O||e[16]!==B||e[17]!==k||e[18]!==A?(M={search:h,searchTerm:N,setSearch:o,filters:g,setFilters:C,filterBarVisible:a,setFilterBarVisible:b,toggleFilterBar:k,viewMode:A,setViewMode:r,sortKey:B,sortDirection:O,handleSort:I},e[7]=a,e[8]=g,e[9]=I,e[10]=h,e[11]=N,e[12]=b,e[13]=C,e[14]=r,e[15]=O,e[16]=B,e[17]=k,e[18]=A,e[19]=M):M=e[19],M}function rn(v){const e=re.c(35),{open:n,onOpenChange:p,count:l,onConfirm:i}=v,s=de(),c=l===1?"orgs.bulkDeleteDialog.deleteTitleSingular":"orgs.bulkDeleteDialog.deleteTitlePlural";let h;e[0]!==l||e[1]!==s||e[2]!==c?(h=s(c,{count:l}),e[0]=l,e[1]=s,e[2]=c,e[3]=h):h=e[3];let o;e[4]!==h?(o=t.jsx(Oe,{children:h}),e[4]=h,e[5]=o):o=e[5];const N=l===1?"orgs.bulkDeleteDialog.deleteDescriptionSingular":"orgs.bulkDeleteDialog.deleteDescriptionPlural";let m;e[6]!==s||e[7]!==N?(m=s(N),e[6]=s,e[7]=N,e[8]=m):m=e[8];let g;e[9]!==m?(g=t.jsx($e,{children:m}),e[9]=m,e[10]=g):g=e[10];let C;e[11]!==o||e[12]!==g?(C=t.jsxs(Me,{children:[o,g]}),e[11]=o,e[12]=g,e[13]=C):C=e[13];let x;e[14]!==s?(x=s("orgs.bulkDeleteDialog.cancelButton"),e[14]=s,e[15]=x):x=e[15];let _;e[16]!==x?(_=t.jsx(Fe,{children:x}),e[16]=x,e[17]=_):_=e[17];const a=l===1?"orgs.bulkDeleteDialog.deleteButtonSingular":"orgs.bulkDeleteDialog.deleteButtonPlural";let j;e[18]!==l||e[19]!==s||e[20]!==a?(j=s(a,{count:l}),e[18]=l,e[19]=s,e[20]=a,e[21]=j):j=e[21];let y;e[22]!==i||e[23]!==j?(y=t.jsx(Ue,{onClick:i,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:j}),e[22]=i,e[23]=j,e[24]=y):y=e[24];let b;e[25]!==y||e[26]!==_?(b=t.jsxs(Ve,{children:[_,y]}),e[25]=y,e[26]=_,e[27]=b):b=e[27];let D;e[28]!==b||e[29]!==C?(D=t.jsxs(ze,{children:[C,b]}),e[28]=b,e[29]=C,e[30]=D):D=e[30];let k;return e[31]!==p||e[32]!==n||e[33]!==D?(k=t.jsx(Ee,{open:n,onOpenChange:p,children:D}),e[31]=p,e[32]=n,e[33]=D,e[34]=k):k=e[34],k}function an(v){return v._registryId?.includes("community-registry")===!0}function dn(v){const e=re.c(82),{item:n,canManage:p,allConnections:l,connectedAppNames:i,connectingItemId:s,onNavigateConnected:c,onConnect:h}=v,o=de(),[N,m]=R.useState(!1),[g,C]=R.useState(null);let x,_;e[0]!==i||e[1]!==n?(x=Pe(n)??"",_=i.has(x),e[0]=i,e[1]=n,e[2]=x,e[3]=_):(x=e[2],_=e[3]);const a=_;let j;e[4]!==n._meta?(j=Tt(n._meta),e[4]=n._meta,e[5]=j):j=e[5];const y=j,b=y?.friendlyName||y?.friendly_name||n.server?.title||n.title||n.server?.name||n.name||n.id||"",D=n.server?.description||n.description||null;let k;e[6]!==n.server?.icons?.[0]?.src||e[7]!==n.server?.repository?(k=n.server?.icons?.[0]?.src||kt(n.server?.repository)||null,e[6]=n.server?.icons?.[0]?.src,e[7]=n.server?.repository,e[8]=k):k=e[8];const A=k;let r;if(e[9]!==l||e[10]!==x){let G;e[12]!==x?(G=ue=>ue.connection_type!=="VIRTUAL"&&ue.app_name===x,e[12]=x,e[13]=G):G=e[13],r=l.filter(G),e[9]=l,e[10]=x,e[11]=r}else r=e[11];const T=r;let O;e[14]!==n?(O=an(n),e[14]=n,e[15]=O):O=e[15];const I=O,B=a||p;let M,$;e[16]!==T||e[17]!==I||e[18]!==a||e[19]!==n||e[20]!==h||e[21]!==c?(M=()=>{if(a){const G=T[0];G&&c(G);return}$()},$=()=>{I?(C("connect"),m(!0)):h(n)},e[16]=T,e[17]=I,e[18]=a,e[19]=n,e[20]=h,e[21]=c,e[22]=M,e[23]=$):(M=e[22],$=e[23]);let z;e[24]!==n||e[25]!==h||e[26]!==g?(z=()=>{le("connections_community_warning_confirmed",{registry_item_id:n.id}),m(!1),g==="connect"&&h(n),C(null)},e[24]=n,e[25]=h,e[26]=g,e[27]=z):z=e[27];const Q=z;let P;e[28]!==D||e[29]!==A||e[30]!==b?(P={title:b,description:D,icon:A},e[28]=D,e[29]=A,e[30]=b,e[31]=P):P=e[31];let W;e[32]===Symbol.for("react.memo_cache_sentinel")?(W=t.jsx(Ce,{}),e[32]=W):W=e[32];const ae=B?M:void 0;let f;e[33]!==I||e[34]!==n._sourceIcon?(f=I&&n._sourceIcon&&t.jsx("img",{src:n._sourceIcon,alt:"Community",className:"size-4 rounded-sm object-contain"}),e[33]=I,e[34]=n._sourceIcon,e[35]=f):f=e[35];let w;e[36]!==p||e[37]!==s||e[38]!==$||e[39]!==a||e[40]!==n.id||e[41]!==o?(w=a?t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:o("orgs.catalogItemCard.connected")}):p&&t.jsx(q,{variant:"outline",size:"sm",className:"h-7 px-3 classic:rounded-lg text-sm font-medium",disabled:s!==null,onClick:G=>{G.stopPropagation(),$()},children:s===n.id?t.jsx(xe,{className:"size-3.5"}):o("orgs.catalogItemCard.connect")}),e[36]=p,e[37]=s,e[38]=$,e[39]=a,e[40]=n.id,e[41]=o,e[42]=w):w=e[42];let K;e[43]!==f||e[44]!==w?(K=t.jsxs("div",{className:"flex items-center gap-2",children:[f,w]}),e[43]=f,e[44]=w,e[45]=K):K=e[45];let X;e[46]!==K||e[47]!==P||e[48]!==ae?(X=t.jsx(_e,{connection:P,fallbackIcon:W,onClick:ae,headerActionsAlwaysVisible:!0,headerActions:K}),e[46]=K,e[47]=P,e[48]=ae,e[49]=X):X=e[49];let H;e[50]!==o?(H=o("orgs.catalogItemCard.communityMcpServerTitle"),e[50]=o,e[51]=H):H=e[51];let S;e[52]!==H?(S=t.jsx(Oe,{children:H}),e[52]=H,e[53]=S):S=e[53];let F;e[54]!==o?(F=o("orgs.catalogItemCard.communityMcpServerDescription"),e[54]=o,e[55]=F):F=e[55];let L;e[56]!==F?(L=t.jsx($e,{children:F}),e[56]=F,e[57]=L):L=e[57];let Z;e[58]!==S||e[59]!==L?(Z=t.jsxs(Me,{children:[S,L]}),e[58]=S,e[59]=L,e[60]=Z):Z=e[60];let te;e[61]!==o?(te=o("orgs.catalogItemCard.cancel"),e[61]=o,e[62]=te):te=e[62];let u;e[63]!==te?(u=t.jsx(Fe,{children:te}),e[63]=te,e[64]=u):u=e[64];let d;e[65]!==o?(d=o("orgs.catalogItemCard.continue"),e[65]=o,e[66]=d):d=e[66];let U;e[67]!==Q||e[68]!==d?(U=t.jsx(Ue,{onClick:Q,children:d}),e[67]=Q,e[68]=d,e[69]=U):U=e[69];let E;e[70]!==u||e[71]!==U?(E=t.jsxs(Ve,{children:[u,U]}),e[70]=u,e[71]=U,e[72]=E):E=e[72];let V;e[73]!==Z||e[74]!==E?(V=t.jsxs(ze,{children:[Z,E]}),e[73]=Z,e[74]=E,e[75]=V):V=e[75];let Y;e[76]!==N||e[77]!==V?(Y=t.jsx(Ee,{open:N,onOpenChange:m,children:V}),e[76]=N,e[77]=V,e[78]=Y):Y=e[78];let ee;return e[79]!==X||e[80]!==Y?(ee=t.jsxs(t.Fragment,{children:[X,Y]}),e[79]=X,e[80]=Y,e[81]=ee):ee=e[81],ee}function un(v){return v?.length?{appToolName:v.find(n=>!!Rt(n._meta))?.name??null}:null}function et(v){const e=re.c(8),{selectionMode:n,children:p}=v,l=n?"w-8 opacity-100":"w-0 opacity-0 group-hover:w-8 group-hover:opacity-100";let i;e[0]!==l?(i=ye("overflow-hidden transition-all duration-150 ease-out",l),e[0]=l,e[1]=i):i=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(tt,{asChild:!0,children:t.jsx(q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:gn,children:t.jsx(sn,{size:20})})}),e[2]=s):s=e[2];let c;e[3]!==p?(c=t.jsxs(nt,{children:[s,t.jsx(st,{align:"end",onClick:mn,children:p})]}),e[3]=p,e[4]=c):c=e[4];let h;return e[5]!==i||e[6]!==c?(h=t.jsx("div",{className:i,children:c}),e[5]=i,e[6]=c,e[7]=h):h=e[7],h}function mn(v){return v.stopPropagation()}function gn(v){return v.stopPropagation()}function pn(v){const e=re.c(57),{group:n,onOpen:p,selectionMode:l,selectedIds:i,onToggleSelect:s}=v,c=de();let h;if(e[0]!==n.connections||e[1]!==i){let P;e[3]!==i?(P=W=>i.has(W.id),e[3]=i,e[4]=P):P=e[4],h=n.connections.every(P),e[0]=n.connections,e[1]=i,e[2]=h}else h=e[2];const o=h;let N;if(e[5]!==n.connections||e[6]!==i){let P;e[8]!==i?(P=W=>i.has(W.id),e[8]=i,e[9]=P):P=e[9],N=n.connections.some(P),e[5]=n.connections,e[6]=i,e[7]=N}else N=e[7];const m=N;let g;e[10]!==o||e[11]!==n.connections||e[12]!==s||e[13]!==i?(g=()=>{for(const P of n.connections)o?i.has(P.id)&&s(P.id):i.has(P.id)||s(P.id)},e[10]=o,e[11]=n.connections,e[12]=s,e[13]=i,e[14]=g):g=e[14];const C=g,x=n.title,_=n.icon;let a;e[15]!==n.connections.length||e[16]!==c?(a=c("orgs.connectionSelectionUi.instancesCount",{count:n.connections.length}),e[15]=n.connections.length,e[16]=c,e[17]=a):a=e[17];let j;e[18]!==n.icon||e[19]!==n.title||e[20]!==a?(j={title:x,icon:_,description:a},e[18]=n.icon,e[19]=n.title,e[20]=a,e[21]=j):j=e[21];let y;e[22]!==p||e[23]!==l||e[24]!==C?(y=()=>l?C():p(),e[22]=p,e[23]=l,e[24]=C,e[25]=y):y=e[25];const b=l&&o&&"ring-2 ring-primary",D=l&&m&&!o&&"ring-1 ring-primary/50";let k;e[26]!==D||e[27]!==b?(k=ye(b,D),e[26]=D,e[27]=b,e[28]=k):k=e[28];const A=l?o?!0:m&&"mixed":void 0;let r;e[29]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Ce,{}),e[29]=r):r=e[29];let T;e[30]!==o||e[31]!==n.connections.length||e[32]!==l||e[33]!==m||e[34]!==c||e[35]!==C?(T=l?t.jsx(Ye,{checked:o?!0:m?"indeterminate":!1,onCheckedChange:C}):t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:c("orgs.connectionSelectionUi.connected")}),t.jsxs("span",{className:"text-xs text-muted-foreground font-normal tabular-nums",children:["x",n.connections.length]})]}),e[30]=o,e[31]=n.connections.length,e[32]=l,e[33]=m,e[34]=c,e[35]=C,e[36]=T):T=e[36];let O;e[37]!==p?(O=P=>{P.stopPropagation(),p()},e[37]=p,e[38]=O):O=e[38];let I;e[39]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(Je,{size:16}),e[39]=I):I=e[39];let B;e[40]!==c?(B=c("orgs.connectionSelectionUi.open"),e[40]=c,e[41]=B):B=e[41];let M;e[42]!==O||e[43]!==B?(M=t.jsxs(ge,{onClick:O,children:[I,B]}),e[42]=O,e[43]=B,e[44]=M):M=e[44];let $;e[45]!==l||e[46]!==M?($=t.jsx(et,{selectionMode:l,children:M}),e[45]=l,e[46]=M,e[47]=$):$=e[47];let z;e[48]!==T||e[49]!==$?(z=t.jsxs("div",{className:"flex items-center gap-1",children:[T,$]}),e[48]=T,e[49]=$,e[50]=z):z=e[50];let Q;return e[51]!==k||e[52]!==A||e[53]!==z||e[54]!==j||e[55]!==y?(Q=t.jsx(t.Fragment,{children:t.jsx(_e,{connection:j,onClick:y,className:k,selected:A,fallbackIcon:r,headerActionsAlwaysVisible:!0,headerActions:z})}),e[51]=k,e[52]=A,e[53]=z,e[54]=j,e[55]=y,e[56]=Q):Q=e[56],Q}function fn(v){const e=re.c(36),{connection:n,isSelected:p,selectionMode:l,canManage:i,canManageAgents:s,onToggleSelect:c,onOpen:h,onToggleStatus:o,onDelete:N}=v,m=de();let g;e[0]!==p||e[1]!==c||e[2]!==l||e[3]!==m?(g=l?t.jsx(Ye,{checked:p,onCheckedChange:c,onClick:hn}):t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:m("orgs.connectionSelectionUi.connected")}),e[0]=p,e[1]=c,e[2]=l,e[3]=m,e[4]=g):g=e[4];let C;e[5]!==h?(C=A=>{A.stopPropagation(),h()},e[5]=h,e[6]=C):C=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(Je,{size:16}),e[7]=x):x=e[7];let _;e[8]!==m?(_=m("orgs.connectionSelectionUi.open"),e[8]=m,e[9]=_):_=e[9];let a;e[10]!==C||e[11]!==_?(a=t.jsxs(ge,{onClick:C,children:[x,_]}),e[10]=C,e[11]=_,e[12]=a):a=e[12];let j;e[13]!==i||e[14]!==s||e[15]!==c||e[16]!==m?(j=(i||s)&&t.jsxs(ge,{onClick:A=>{A.stopPropagation(),c()},children:[t.jsx(Wt,{size:16}),m("orgs.connectionSelectionUi.select")]}),e[13]=i,e[14]=s,e[15]=c,e[16]=m,e[17]=j):j=e[17];let y;e[18]!==i||e[19]!==n||e[20]!==o||e[21]!==m?(y=i&&(n.status==="active"?t.jsxs(ge,{onClick:A=>{A.stopPropagation(),o("inactive")},children:[t.jsx(Xt,{size:16}),m("orgs.connectionSelectionUi.disable")]}):t.jsxs(ge,{onClick:A=>{A.stopPropagation(),o("active")},children:[t.jsx(qt,{size:16}),m("orgs.connectionSelectionUi.enable")]})),e[18]=i,e[19]=n,e[20]=o,e[21]=m,e[22]=y):y=e[22];let b;e[23]!==i||e[24]!==N||e[25]!==m?(b=i&&t.jsxs(ge,{variant:"destructive",onClick:A=>{A.stopPropagation(),N()},children:[t.jsx(Ze,{size:16}),m("orgs.connectionSelectionUi.delete")]}),e[23]=i,e[24]=N,e[25]=m,e[26]=b):b=e[26];let D;e[27]!==l||e[28]!==a||e[29]!==j||e[30]!==y||e[31]!==b?(D=t.jsxs(et,{selectionMode:l,children:[a,j,y,b]}),e[27]=l,e[28]=a,e[29]=j,e[30]=y,e[31]=b,e[32]=D):D=e[32];let k;return e[33]!==g||e[34]!==D?(k=t.jsxs("div",{className:"flex items-center gap-1",children:[g,D]}),e[33]=g,e[34]=D,e[35]=k):k=e[35],k}function hn(v){return v.stopPropagation()}function xn(v){const e=re.c(29),{count:n,total:p,canManage:l,canManageAgents:i,onSelectAll:s,onDeselectAll:c,onDelete:h,onAddToAgent:o,onToggleStatus:N,onCancel:m}=v,g=de();if(n===0)return null;let C;e[0]!==n||e[1]!==g?(C=g("orgs.connectionSelectionUi.selectedCount",{count:n}),e[0]=n,e[1]=g,e[2]=C):C=e[2];let x;e[3]!==C?(x=t.jsx("div",{className:"text-xs text-muted-foreground pr-1 tabular-nums",children:C}),e[3]=C,e[4]=x):x=e[4];let _;e[5]!==n||e[6]!==c||e[7]!==s||e[8]!==g||e[9]!==p?(_=n<p?t.jsx(q,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:s,children:g("orgs.connectionSelectionUi.selectAll",{total:p})}):t.jsx(q,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:c,children:g("orgs.connectionSelectionUi.clearSelection")}),e[5]=n,e[6]=c,e[7]=s,e[8]=g,e[9]=p,e[10]=_):_=e[10];let a;e[11]!==i||e[12]!==o||e[13]!==g?(a=i&&t.jsxs(q,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:o,children:[t.jsx(Ge,{size:13}),g("orgs.connectionSelectionUi.addToAgent")]}),e[11]=i,e[12]=o,e[13]=g,e[14]=a):a=e[14];let j;e[15]!==l||e[16]!==h||e[17]!==N||e[18]!==g?(j=l&&t.jsxs(t.Fragment,{children:[t.jsx(q,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:()=>N("active"),children:g("orgs.connectionSelectionUi.enable")}),t.jsx(q,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:()=>N("inactive"),children:g("orgs.connectionSelectionUi.disable")}),t.jsxs(q,{variant:"destructive",size:"sm",className:"h-7 text-xs px-2",onClick:h,children:[t.jsx(Ze,{size:13}),g("orgs.connectionSelectionUi.delete")]})]}),e[15]=l,e[16]=h,e[17]=N,e[18]=g,e[19]=j):j=e[19];let y;e[20]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(Qe,{size:13}),e[20]=y):y=e[20];let b;e[21]!==m?(b=t.jsx(q,{variant:"ghost",size:"sm",className:"h-7 text-xs px-2",onClick:m,children:y}),e[21]=m,e[22]=b):b=e[22];let D;return e[23]!==x||e[24]!==_||e[25]!==a||e[26]!==j||e[27]!==b?(D=t.jsx("div",{className:"fixed bottom-4 left-1/2 z-50 -translate-x-1/2",children:t.jsxs("div",{className:"rounded-xl border border-border bg-background/95 shadow-lg backdrop-blur px-3 py-2 flex items-center gap-2",children:[x,_,a,j,b]})}),e[23]=x,e[24]=_,e[25]=a,e[26]=j,e[27]=b,e[28]=D):D=e[28],D}function jn(v){const e=re.c(45),{open:n,onOpenChange:p,agents:l,onConfirm:i}=v,s=de(),[c,h]=R.useState(null);let o;e[0]!==s?(o=s("orgs.connectionSelectionUi.addToAgentTitle"),e[0]=s,e[1]=o):o=e[1];let N;e[2]!==o?(N=t.jsx(Be,{children:o}),e[2]=o,e[3]=N):N=e[3];let m;e[4]!==s?(m=s("orgs.connectionSelectionUi.addToAgentDescription"),e[4]=s,e[5]=m):m=e[5];let g;e[6]!==m?(g=t.jsx(Ke,{children:m}),e[6]=m,e[7]=g):g=e[7];let C;e[8]!==N||e[9]!==g?(C=t.jsxs(He,{children:[N,g]}),e[8]=N,e[9]=g,e[10]=C):C=e[10];let x;e[11]!==l||e[12]!==c||e[13]!==s?(x=l.length===0?t.jsx("p",{className:"text-sm text-muted-foreground text-center py-4",children:s("orgs.connectionSelectionUi.noAgentsFound")}):l.map(I=>t.jsxs("button",{type:"button",onClick:()=>h(I.id),className:ye("flex items-center gap-3 w-full classic:rounded-md compact:rounded-lg px-3 py-2 text-left transition-colors",c===I.id?"bg-primary/10 ring-1 ring-primary":"hover:bg-muted/50"),children:[t.jsx(nn,{icon:I.icon,name:I.title,size:"sm",className:"shrink-0"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:"text-sm font-medium truncate",children:I.title}),I.description&&t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:I.description})]})]},I.id)),e[11]=l,e[12]=c,e[13]=s,e[14]=x):x=e[14];let _;e[15]!==x?(_=t.jsx("div",{className:"max-h-60 overflow-auto py-2 space-y-1",children:x}),e[15]=x,e[16]=_):_=e[16];let a;e[17]!==p?(a=()=>p(!1),e[17]=p,e[18]=a):a=e[18];let j;e[19]!==s?(j=s("orgs.connectionSelectionUi.cancel"),e[19]=s,e[20]=j):j=e[20];let y;e[21]!==a||e[22]!==j?(y=t.jsx(q,{variant:"outline",onClick:a,children:j}),e[21]=a,e[22]=j,e[23]=y):y=e[23];const b=!c;let D;e[24]!==i||e[25]!==p||e[26]!==c?(D=()=>{c&&(i(c),p(!1),h(null))},e[24]=i,e[25]=p,e[26]=c,e[27]=D):D=e[27];let k;e[28]!==s?(k=s("orgs.connectionSelectionUi.add"),e[28]=s,e[29]=k):k=e[29];let A;e[30]!==b||e[31]!==D||e[32]!==k?(A=t.jsx(q,{disabled:b,onClick:D,children:k}),e[30]=b,e[31]=D,e[32]=k,e[33]=A):A=e[33];let r;e[34]!==y||e[35]!==A?(r=t.jsxs(Re,{children:[y,A]}),e[34]=y,e[35]=A,e[36]=r):r=e[36];let T;e[37]!==r||e[38]!==C||e[39]!==_?(T=t.jsxs(We,{className:"sm:max-w-[400px]",children:[C,_,r]}),e[37]=r,e[38]=C,e[39]=_,e[40]=T):T=e[40];let O;return e[41]!==p||e[42]!==n||e[43]!==T?(O=t.jsx(Xe,{open:n,onOpenChange:p,children:T}),e[41]=p,e[42]=n,e[43]=T,e[44]=O):O=e[44],O}function Sn({listState:v,activeTab:e,typeFilter:n,statusFilter:p,registryFilter:l,enabledRegistries:i}){const s=de(),{org:c}=Ae(),h=mt(),o=Ie(),{data:N}=we.useSession(),m=qe(),g=Bt(v),C=bt(),{granted:x}=be("connections:manage"),{granted:_}=be("agents:manage"),[a,j]=R.useState(new Set),y=a.size>0,[b,D]=R.useState(!1),[k,A]=R.useState(!1),[r,T]=R.useState(null),O=Ht(),I=g.filter(u=>!(n!=="ALL"&&u.connection_type!==n||p!=="ALL"&&u.status!==p)),B=Ct(I),M=u=>{j(d=>{const U=new Set(d);return U.has(u)?U.delete(u):U.add(u),U})},$=()=>{j(new Set)},z=Le(i,v.searchTerm),Q=z.items,P=Dt(z.loadMore,z.hasMore,z.isLoadingMore),W=new Set(g.filter(u=>u.app_name).map(u=>u.app_name)),ae=l==="ALL"||i.some(u=>u.id===l)?l:"ALL",f=v.search.length>0,w=e==="all"||f?Q.filter(u=>{if(ae!=="ALL"&&u._registryId!==ae)return!1;if(f){const d=Pe(u);if(d&&W.has(d))return!1}return!0}):[],K=e==="connected"||f?B:[],X=async u=>{if(!(!c||!N?.user?.id)){le("connection_add_clicked",{action:"connect_new",registry_item_id:u.id,source:"connections_page"}),T(u.id);try{const d=ht(u,c.id,N.user.id,{remoteIndex:0}),U=d.connection_type==="STDIO",E=!!d.connection_url,V=U&&d.connection_headers&&typeof d.connection_headers=="object"&&"command"in d.connection_headers;if(!E&&!V){J.error(s("orgs.connections.cannotConnectNoMethod")),T(null);return}const Y=await m.create.mutateAsync(d),{id:ee}=Y,G=await tn({connectionId:ee,orgId:c.id,orgSlug:c.slug,persistFallback:pe=>m.update.mutateAsync({id:ee,data:{connection_token:pe}}).then(()=>{})});if(G.ran&&!G.ok){le("connection_oauth_failed",{connection_id:ee,flow:"connections_page_connect",error:G.error??"no_token"}),J.error(s("orgs.connections.authenticationFailed",{error:G.error??"no token received"}));return}if(G.ran){le("connection_oauth_succeeded",{connection_id:ee,flow:"connections_page_connect"});const pe=new URL(`/api/${c.slug}/mcp/${ee}`,window.location.origin);await h.invalidateQueries({queryKey:pt.isMCPAuthenticated(pe.href,null)}),S(),J.success(s("orgs.connections.authenticationSuccessful"))}let ue=null;try{const pe=await h.fetchQuery(Kt({connectionId:ee,orgId:c.id,orgSlug:c.slug}));ue=un((await pe.listTools()).tools)}catch{}const De=he(Y),Ne=ue?ue.appToolName?{to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:c.slug,appSlug:De,collectionName:"tools",itemId:encodeURIComponent(ue.appToolName)}}:{to:"/$org/settings/connections/$appSlug",params:{org:c.slug,appSlug:De}}:null;J.success(s("orgs.connections.connectedSuccessfully"),Ne?{action:{label:s("orgs.connections.openConnection"),onClick:()=>o(Ne)}}:void 0)}catch(d){J.error(s("orgs.connections.failedToConnect",{error:d instanceof Error?d.message:String(d)}))}finally{T(null)}}},H=gt(),S=()=>{h.invalidateQueries({predicate:u=>{const d=u.queryKey;return d[1]===c.id&&d[3]==="collection"&&d[4]==="CONNECTIONS"}})},F=async()=>{D(!1);const u=[...a];le("connections_bulk_delete",{count:u.length});const U=(await Promise.allSettled(u.map(E=>H.call("COLLECTION_CONNECTIONS_DELETE",{id:E,force:!0})))).filter(E=>E.status==="fulfilled").length;S(),J.success(s("orgs.connections.deletedConnections",{count:U})),$()},L=async(u,d)=>{try{await m.update.mutateAsync({id:u,data:{status:d}}),S(),J.success(s(d==="active"?"orgs.connections.connectionEnabled":"orgs.connections.connectionDisabled"))}catch{J.error(s("orgs.connections.failedToUpdateConnection"))}},Z=async u=>{const d=[...a];le("connections_bulk_status_toggled",{count:d.length,to_status:u});const E=(await Promise.allSettled(d.map(V=>m.update.mutateAsync({id:V,data:{status:u}})))).filter(V=>V.status==="fulfilled").length;S(),J.success(u==="active"?s("orgs.connections.enabledConnections",{count:E}):s("orgs.connections.disabledConnections",{count:E})),$()},te=async u=>{const d=O.find(V=>V.id===u);if(!d)return;le("connections_bulk_add_to_agent",{agent_id:u,count:a.size});const U=new Set(d.connections.map(V=>V.connection_id)),E=[...a].filter(V=>!U.has(V)).map(V=>({connection_id:V,selected_tools:null,selected_resources:null,selected_prompts:null}));if(E.length===0){J.info(s("orgs.connections.allConnectionsAlreadyInAgent"));return}try{await H.call("COLLECTION_VIRTUAL_MCP_UPDATE",{id:u,data:{connections:[...d.connections,...E]}}),h.invalidateQueries({predicate:V=>{const Y=V.queryKey;return Y[1]===c.id&&Y[3]==="collection"&&Y[4]==="VIRTUAL_MCP"}}),J.success(s("orgs.connections.addedConnectionsToAgent",{count:E.length,agentTitle:d.title})),$()}catch{J.error(s("orgs.connections.failedToAddConnectionsToAgent"))}};return t.jsxs(t.Fragment,{children:[t.jsx(_t,{...C}),t.jsx(rn,{open:b,onOpenChange:D,count:a.size,onConfirm:F}),t.jsx(jn,{open:k,onOpenChange:A,agents:O,onConfirm:te}),z.isInitialLoading&&e==="all"?t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(xe,{className:"size-8 text-muted-foreground"})}):t.jsx("div",{children:(f?w.length===0&&I.length===0:e==="all"?w.length===0:I.length===0)?t.jsx(vt,{image:t.jsx("img",{src:"/emptystate-mcp.svg",alt:"",width:336,height:320,"aria-hidden":"true"}),title:s("orgs.connections.noConnectionsFound"),description:v.search?s("orgs.connections.noConnectionsMatchSearch",{search:v.search}):s(x?"orgs.connections.createConnectionToGetStarted":"orgs.connections.askAdminToAddConnection")}):t.jsxs("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:[K.map(u=>{if(u.type==="group")return t.jsx(pn,{group:u,onOpen:()=>{o({to:"/$org/settings/connections/$appSlug",params:{org:c.slug,appSlug:u.key}})},selectionMode:y,selectedIds:a,onToggleSelect:M},u.key);const d=u.connection,U=a.has(d.id);return t.jsx(_e,{connection:d,fallbackIcon:t.jsx(Ce,{}),onClick:()=>y?M(d.id):o({to:"/$org/settings/connections/$appSlug",params:{org:c.slug,appSlug:he(d)}}),className:ye(U&&"ring-2 ring-primary bg-primary/5"),selected:y?U:void 0,headerActionsAlwaysVisible:!0,headerActions:t.jsx(fn,{connection:d,isSelected:U,selectionMode:y,canManage:x,canManageAgents:_,onToggleSelect:()=>M(d.id),onOpen:()=>o({to:"/$org/settings/connections/$appSlug",params:{org:c.slug,appSlug:he(d)}}),onToggleStatus:E=>L(d.id,E),onDelete:()=>C.requestDelete(d)})},d.id)}),w.map(u=>t.jsx(dn,{item:u,canManage:x,allConnections:g,connectedAppNames:W,connectingItemId:r,onNavigateConnected:d=>o({to:"/$org/settings/connections/$appSlug",params:{org:c.slug,appSlug:he(d)}}),onConnect:X},`catalog-${u._registryId}:${u.id}`)),(e==="all"||f)&&i.length>0&&t.jsx("div",{ref:P,className:"col-span-full h-4"}),(e==="all"||f)&&z.isLoadingMore&&t.jsx("div",{className:"col-span-full flex justify-center py-6",children:t.jsx(xe,{className:"size-6 text-muted-foreground"})})]})}),y&&t.jsx(xn,{count:a.size,total:I.length,canManage:x,canManageAgents:_,onSelectAll:()=>{j(new Set(I.map(u=>u.id)))},onDeselectAll:()=>j(new Set),onDelete:()=>D(!0),onAddToAgent:()=>A(!0),onToggleStatus:Z,onCancel:$})]})}function yn(){const v=it(),e=de(),{org:n}=Ae(),p=Ie(),l=ct({strict:!1}),{data:i}=we.useSession(),{stdioEnabled:s}=lt(),c=Mt(),{granted:h}=be("connections:manage"),o=ln({namespace:n.slug,resource:"connections"}),N=qe(),[m,g]=rt(at.connectionsTab(n.slug),f=>l.tab==="all"||l.tab==="connected"?l.tab:f??"all"),[C,x]=R.useState("ALL"),[_,a]=R.useState("ALL"),[j,y]=R.useState("ALL"),b=yt(),k=Le(b,o.searchTerm).items,A=o.search!==o.searchTerm,r=dt({resolver:ut(Yt),defaultValues:{title:"",description:null,icon:null,ui_type:"HTTP",connection_url:"",connection_token:null,npx_package:"",stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:[]}}),T=r.watch("ui_type"),O=r.watch("connection_url"),I=r.watch("npx_package"),B=Se({uiType:T,connectionUrl:O??"",npxPackage:I??""})??Te({uiType:T,connectionUrl:O??"",registryItems:k}),M=h&&l.action==="create",$=()=>{le("connections_custom_dialog_opened",{source:"connections_page"}),p({to:"/$org/settings/connections",params:{org:n.slug},search:{action:"create"}})},z=()=>{p({to:"/$org/settings/connections",params:{org:n.slug},search:{}})},Q=async f=>{let w,K=null,X=null,H=null;f.ui_type==="NPX"?(w="STDIO",K="",H=Zt(f.npx_package||"",f.env_vars||[])):f.ui_type==="STDIO"?(w="STDIO",K="",H=en(f.stdio_command||"",f.stdio_args||"",f.stdio_cwd,f.env_vars||[])):(w=f.ui_type,K=f.connection_url||"",X=f.connection_token||null);const S=ft("conn");le("connection_custom_created",{connection_type:w,ui_type:f.ui_type}),await N.create.mutateAsync({id:S,title:f.title,description:f.description||null,connection_type:w,connection_url:K,connection_token:X,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),created_by:i?.user?.id||"system",organization_id:n.id,icon:f.icon??null,app_name:null,app_id:null,connection_headers:H,oauth_config:null,configuration_state:null,metadata:null,tools:null,bindings:null,status:"inactive"}),z(),r.reset(),p({to:"/$org/settings/connections/$appSlug",params:{org:n.slug,appSlug:he({app_name:null,connection_url:K,title:f.title,id:S})}})},P=f=>{f||(M&&z(),r.reset())},W=f=>{const w=f.trim();if(!w)return;const K=!!r.formState.dirtyFields.title,X=!!r.formState.dirtyFields.description,H=!!r.formState.dirtyFields.env_vars,S=L=>{if(L&&(!K&&!r.getValues("title").trim()&&L.title&&r.setValue("title",L.title,{shouldDirty:!1}),!X&&!(r.getValues("description")??"").trim()&&L.description&&r.setValue("description",L.description,{shouldDirty:!1}),!H&&L.envVarKeys?.length)){const Z=r.getValues("env_vars")??[],te=new Set(Z.map(d=>d.key)),u=L.envVarKeys.filter(d=>!te.has(d));u.length>0&&r.setValue("env_vars",[...Z,...u.map(d=>({key:d,value:""}))],{shouldDirty:!0})}},F=Jt(w);if(F&&s){r.setValue("ui_type","NPX",{shouldDirty:!0}),r.setValue("npx_package",F.packageName,{shouldDirty:!0}),r.setValue("connection_url","",{shouldDirty:!0}),r.setValue("connection_token",null,{shouldDirty:!0}),S(Se({uiType:"NPX",npxPackage:F.packageName}));return}if(w.startsWith("http://")||w.startsWith("https://")){const L=T==="HTTP"||T==="SSE"||T==="Websocket"?T:"HTTP";r.setValue("ui_type",L,{shouldDirty:!0}),r.setValue("connection_url",w,{shouldDirty:!0}),S(Se({uiType:L,connectionUrl:w})??Te({uiType:L,connectionUrl:w,registryItems:k}));return}T==="NPX"&&S(Se({uiType:"NPX",npxPackage:w}))},ae=h?t.jsx("div",{className:"flex items-center gap-2",children:t.jsxs(q,{size:v?"sm":"default",variant:v?"default":"outline",onClick:$,children:[t.jsx(Ge,{size:14,className:"sm:hidden"}),t.jsx("span",{className:"hidden sm:inline",children:e("orgs.connections.customConnection")})]})}):null;return t.jsx(t.Fragment,{children:t.jsxs(je,{children:[(()=>{const f=e("orgs.connections.createConnection"),w=e("orgs.connections.createConnectionDescription"),K=r.formState.isSubmitting?e("orgs.connections.saving"):e("orgs.connections.createConnection"),X=t.jsxs("div",{className:"grid gap-4",children:[t.jsx(ne,{control:r.control,name:"ui_type",render:({field:S})=>t.jsxs(se,{children:[t.jsx(oe,{children:e("orgs.connections.type")}),t.jsxs(Ft,{value:S.value,onValueChange:S.onChange,children:[t.jsx(ie,{children:t.jsx(Ut,{children:t.jsx(Vt,{})})}),t.jsxs(zt,{children:[t.jsx(fe,{value:"HTTP",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ve,{className:"w-4 h-4"}),"HTTP"]})}),t.jsx(fe,{value:"SSE",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ve,{className:"w-4 h-4"}),"SSE"]})}),t.jsx(fe,{value:"Websocket",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ve,{className:"w-4 h-4"}),"Websocket"]})}),s&&t.jsxs(t.Fragment,{children:[t.jsx(fe,{value:"NPX",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Ce,{className:"w-4 h-4"}),e("orgs.connections.npxPackage")]})}),t.jsx(fe,{value:"STDIO",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Gt,{className:"w-4 h-4"}),e("orgs.connections.customCommand")]})})]})]})]}),t.jsx(ce,{})]})}),T==="NPX"&&t.jsx(ne,{control:r.control,name:"npx_package",render:({field:S})=>t.jsxs(se,{children:[t.jsx(oe,{children:e("orgs.connections.npmPackage")}),t.jsx(ie,{children:t.jsx(me,{placeholder:e("orgs.connections.npmPackagePlaceholder"),...S,value:S.value??"",onPaste:F=>{const L=F.clipboardData.getData("text");L&&(F.preventDefault(),r.setValue("npx_package",L.trim(),{shouldDirty:!0}),W(L))},onBlur:F=>{W(F.target.value),S.onBlur()}})}),t.jsx(ce,{})]})}),T==="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid grid-cols-2 gap-4 items-start",children:[t.jsx(ne,{control:r.control,name:"stdio_command",render:({field:S})=>t.jsxs(se,{children:[t.jsx(oe,{children:e("orgs.connections.command")}),t.jsx(ie,{children:t.jsx(me,{placeholder:e("orgs.connections.commandPlaceholder"),...S,value:S.value??""})}),t.jsx(ce,{})]})}),t.jsx(ne,{control:r.control,name:"stdio_args",render:({field:S})=>t.jsxs(se,{children:[t.jsx(oe,{children:e("orgs.connections.arguments")}),t.jsx(ie,{children:t.jsx(me,{placeholder:e("orgs.connections.argumentsPlaceholder"),...S,value:S.value??""})}),t.jsx(ce,{})]})})]}),t.jsx(ne,{control:r.control,name:"stdio_cwd",render:({field:S})=>t.jsxs(se,{children:[t.jsx(oe,{children:e("orgs.connections.workingDirectory")}),t.jsx(ie,{children:t.jsx(me,{placeholder:e("orgs.connections.workingDirectoryPlaceholder"),...S,value:S.value??""})}),t.jsx("p",{className:"text-xs text-muted-foreground",children:e("orgs.connections.directoryExecutionNote")}),t.jsx(ce,{})]})})]}),(T==="NPX"||T==="STDIO")&&t.jsx(ne,{control:r.control,name:"env_vars",render:({field:S})=>t.jsxs(se,{children:[t.jsx(oe,{children:e("orgs.connections.environmentVariables")}),t.jsx(ie,{children:t.jsx(Qt,{value:S.value??[],onChange:S.onChange})}),t.jsx(ce,{})]})}),T!=="NPX"&&T!=="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsx(ne,{control:r.control,name:"connection_url",render:({field:S})=>t.jsxs(se,{children:[t.jsx(oe,{children:e("orgs.connections.url")}),t.jsx(ie,{children:t.jsx(me,{placeholder:e("orgs.connections.urlPlaceholder"),...S,value:S.value??"",onPaste:F=>{const L=F.clipboardData.getData("text");L&&(F.preventDefault(),r.setValue("connection_url",L.trim(),{shouldDirty:!0}),W(L))},onBlur:F=>{W(F.target.value),S.onBlur()}})}),t.jsx(ce,{})]})}),t.jsx(ne,{control:r.control,name:"connection_token",render:({field:S})=>t.jsxs(se,{children:[t.jsx(oe,{children:B?.token?.label??e("orgs.connections.tokenOptional")}),t.jsx(ie,{children:t.jsx(me,{type:"password",placeholder:B?.token?.placeholder??e("orgs.connections.tokenPlaceholder"),...S,value:S.value??""})}),B?.token?.helperText&&t.jsxs("p",{className:"text-xs text-muted-foreground",children:[B.token.helperText,B.id==="github"&&t.jsxs(t.Fragment,{children:[" ","·"," ",t.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:e("orgs.connections.openGitHubPatSettings")})]})]}),t.jsx(ce,{})]})})]}),t.jsx(ne,{control:r.control,name:"title",render:({field:S})=>t.jsxs(se,{children:[t.jsx(oe,{children:e("orgs.connections.name")}),t.jsx(ie,{children:t.jsx(me,{placeholder:e("orgs.connections.namePlaceholder"),...S})}),t.jsx(ce,{})]})}),t.jsx(ne,{control:r.control,name:"description",render:({field:S})=>t.jsxs(se,{children:[t.jsx(oe,{children:e("orgs.connections.description")}),t.jsx(ie,{children:t.jsx(Et,{placeholder:e("orgs.connections.descriptionPlaceholder"),rows:3,...S,value:S.value??""})}),t.jsx(ce,{})]})})]}),H=M;return c?t.jsx(At,{open:H,onOpenChange:P,children:t.jsxs(It,{className:"max-h-[90vh]",children:[t.jsx(wt,{className:"pb-2",children:t.jsxs("div",{className:"flex items-start justify-between gap-4",children:[t.jsxs("div",{className:"flex-1 text-left",children:[t.jsx(Pt,{children:f}),t.jsx(Lt,{className:"mt-1",children:w})]}),t.jsx(Ot,{asChild:!0,children:t.jsx(q,{variant:"ghost",size:"icon",className:"shrink-0 -mt-1","aria-label":e("orgs.connections.close"),children:t.jsx(Qe,{size:16})})})]})}),t.jsx(ke,{...r,children:t.jsxs("form",{onSubmit:r.handleSubmit(Q),children:[t.jsx("div",{className:"overflow-y-auto px-4 pb-4",children:X}),t.jsx($t,{children:t.jsx(q,{type:"submit",disabled:r.formState.isSubmitting,className:"w-full",children:K})})]})})]})}):t.jsx(Xe,{open:H,onOpenChange:P,children:t.jsxs(We,{className:"sm:max-w-[525px]",children:[t.jsxs(He,{children:[t.jsx(Be,{children:f}),t.jsx(Ke,{children:w})]}),t.jsx(ke,{...r,children:t.jsxs("form",{onSubmit:r.handleSubmit(Q),children:[t.jsx("div",{className:"py-4",children:X}),t.jsxs(Re,{children:[t.jsx(q,{type:"button",variant:"outline",onClick:()=>P(!1),children:e("orgs.connections.cancel")}),t.jsx(q,{type:"submit",disabled:r.formState.isSubmitting,className:"min-w-40",children:K})]})]})})]})})})(),t.jsx(je.Content,{children:t.jsx(je.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(je.Title,{actions:v&&ae,children:e("orgs.connections.pageTitle")}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(jt,{value:o.search,onChange:o.setSearch,placeholder:e("orgs.connections.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:f=>{f.key==="Escape"&&(o.setSearch(""),f.target.blur())}}),t.jsx(xt,{sortKey:o.sortKey,sortDirection:o.sortDirection,onSort:o.handleSort,sortOptions:[{id:"title",label:e("orgs.connections.sortName")},{id:"description",label:e("orgs.connections.sortDescription")},{id:"connection_type",label:e("orgs.connections.sortType")},{id:"updated_by",label:e("orgs.connections.sortUpdatedBy")},{id:"updated_at",label:e("orgs.connections.sortUpdated")}],filters:[{label:e("orgs.connections.filterType"),value:C,onChange:f=>x(f||"ALL"),options:[{id:"ALL",label:e("orgs.connections.filterAll")},{id:"HTTP",label:"HTTP"},{id:"SSE",label:"SSE"},{id:"Websocket",label:"WebSocket"},{id:"STDIO",label:"STDIO"}]},{label:e("orgs.connections.filterStatus"),value:_,onChange:f=>a(f||"ALL"),options:[{id:"ALL",label:e("orgs.connections.filterAll")},{id:"active",label:e("orgs.connections.filterActive")},{id:"inactive",label:e("orgs.connections.filterInactive")},{id:"error",label:e("orgs.connections.filterError")}]},...b.length>1?[{label:e("orgs.connections.filterRegistry"),value:j,onChange:f=>y(f||"ALL"),options:[{id:"ALL",label:e("orgs.connections.filterAllRegistries")},...b.map(f=>({id:f.id,label:f.id.includes("community-registry")?e("orgs.connections.communityMcpRegistry"):f.title}))]}]:[]]})]}),!v&&ae]}),t.jsx(St,{placement:"page",tabs:[{id:"all",label:e("orgs.connections.tabAll")},{id:"connected",label:e("orgs.connections.tabConnected")}],activeTab:m,onTabChange:f=>{const w=f;w!==m&&le("connections_page_tab_changed",{to_tab:w}),g(w)}}),t.jsx(R.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(xe,{className:"size-8 text-muted-foreground"})}),children:t.jsx("div",{style:{opacity:A?.5:1,transition:A?"opacity 0.2s 0.2s linear":"opacity 0s 0s linear",pointerEvents:A?"none":"auto"},children:t.jsx(Sn,{listState:o,activeTab:m,typeFilter:C,statusFilter:_,registryFilter:j,enabledRegistries:b})})})]})})})]})})}function no(){const v=re.c(1);let e;return v[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(ot,{children:t.jsx(R.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(xe,{className:"size-8 text-muted-foreground"})}),children:t.jsx(yn,{})})}),v[0]=e):e=v[0],e}export{no as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ao as V,ap as k,c as G,b as H,aq as P,ar as J,e as K,j as i,h as Q,a as U,B as W}from"./index-EcuFIS2a.js";import{A as X,a as Y,b as Z,c as ee,d as te,e as ae,f as ie}from"./alert-dialog-9n2p5SCQ.js";import{F as re,a as oe,b as ne,c as se,d as le,e as ce,f as me}from"./form-CYsJTpNM.js";import{I as ge}from"./input-Buz_7xoG.js";function q(_){return _.toLowerCase().trim().replace(/[^a-z0-9\s_-]+/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const fe=V({name:k().min(2,"Organization name is required")});function he(_){const e=G.c(68),{open:L,onOpenChange:M,onCreated:A}=_,t=H();let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v={resolver:P(fe),defaultValues:{name:""}},e[0]=v):v=e[0];const a=J(v);let s;e[1]!==t?(s=async n=>{const o=q(n.name);if(!o)throw new Error(t("common.createOrganizationDialog.invalidSlug"));const I=await U.organization.create({name:n.name,slug:o});if(I?.error)throw new Error(I.error.message||t("common.createOrganizationDialog.failedToCreate"));const $=I?.data?.slug??o;if(!$)throw new Error(t("common.createOrganizationDialog.failedToCreate"));return{orgSlug:$}},e[1]=t,e[2]=s):s=e[2];let l;e[3]!==A?(l=n=>{const{orgSlug:o}=n;if(A){A(o);return}window.location.href=`/${o}`},e[3]=A,e[4]=l):l=e[4];let y;e[5]!==s||e[6]!==l?(y={mutationFn:s,onSuccess:l},e[5]=s,e[6]=l,e[7]=y):y=e[7];const r=K(y);let E;e[8]!==r.error||e[9]!==t?(E=r.error instanceof Error?r.error.message:r.error?t("common.createOrganizationDialog.failedToCreateGeneric"):null,e[8]=r.error,e[9]=t,e[10]=E):E=e[10];const T=E;let c;e[11]!==t?(c=t("common.createOrganizationDialog.title"),e[11]=t,e[12]=c):c=e[12];let m;e[13]!==c?(m=i.jsx(X,{children:c}),e[13]=c,e[14]=m):m=e[14];let g;e[15]!==t?(g=t("common.createOrganizationDialog.description"),e[15]=t,e[16]=g):g=e[16];let f;e[17]!==g?(f=i.jsx(Y,{children:g}),e[17]=g,e[18]=f):f=e[18];let u;e[19]!==m||e[20]!==f?(u=i.jsxs(Z,{children:[m,f]}),e[19]=m,e[20]=f,e[21]=u):u=e[21];let d;if(e[22]!==r||e[23]!==a){let n;e[25]!==r?(n=o=>r.mutateAsync(o),e[25]=r,e[26]=n):n=e[26],d=a.handleSubmit(n),e[22]=r,e[23]=a,e[24]=d}else d=e[24];let x;e[27]!==a.formState.isSubmitting||e[28]!==t?(x=n=>{const{field:o}=n;return i.jsxs(ne,{children:[i.jsx(se,{children:t("common.createOrganizationDialog.nameLabel")}),i.jsx(le,{children:i.jsx(ge,{...o,placeholder:t("common.createOrganizationDialog.namePlaceholder"),disabled:a.formState.isSubmitting})}),i.jsx(ce,{children:t("common.createOrganizationDialog.nameDescription")}),o.value&&i.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:[t("common.createOrganizationDialog.urlLabel")," ",i.jsxs("span",{className:"font-mono",children:[typeof window<"u"?globalThis.location.origin:"","/",q(o.value)]})]}),i.jsx(me,{})]})},e[27]=a.formState.isSubmitting,e[28]=t,e[29]=x):x=e[29];let S;e[30]!==a.control||e[31]!==x?(S=i.jsx(re,{control:a.control,name:"name",render:x}),e[30]=a.control,e[31]=x,e[32]=S):S=e[32];let h;e[33]!==T?(h=T&&i.jsx("div",{className:"text-destructive text-sm mt-2",children:T}),e[33]=T,e[34]=h):h=e[34];const R=a.formState.isSubmitting;let p;e[35]!==r||e[36]!==a?(p=()=>{r.reset(),a.reset()},e[35]=r,e[36]=a,e[37]=p):p=e[37];let b;e[38]!==t?(b=t("common.createOrganizationDialog.cancel"),e[38]=t,e[39]=b):b=e[39];let j;e[40]!==a.formState.isSubmitting||e[41]!==p||e[42]!==b?(j=i.jsx(ee,{disabled:R,onClick:p,children:b}),e[40]=a.formState.isSubmitting,e[41]=p,e[42]=b,e[43]=j):j=e[43];const B=!a.formState.isValid||a.formState.isSubmitting;let D;e[44]!==a.formState.isSubmitting||e[45]!==t?(D=a.formState.isSubmitting?i.jsxs("span",{className:"flex items-center gap-2",children:[i.jsx(Q,{size:"xs"})," ",t("common.createOrganizationDialog.creating")]}):t("common.createOrganizationDialog.createButton"),e[44]=a.formState.isSubmitting,e[45]=t,e[46]=D):D=e[46];let z;e[47]!==B||e[48]!==D?(z=i.jsx(W,{type:"submit",variant:"default",disabled:B,children:D}),e[47]=B,e[48]=D,e[49]=z):z=e[49];let O;e[50]!==j||e[51]!==z?(O=i.jsxs(te,{children:[j,z]}),e[50]=j,e[51]=z,e[52]=O):O=e[52];let C;e[53]!==d||e[54]!==S||e[55]!==h||e[56]!==O?(C=i.jsxs("form",{className:"space-y-6",onSubmit:d,autoComplete:"off",children:[S,h,O]}),e[53]=d,e[54]=S,e[55]=h,e[56]=O,e[57]=C):C=e[57];let w;e[58]!==a||e[59]!==C?(w=i.jsx(oe,{...a,children:C}),e[58]=a,e[59]=C,e[60]=w):w=e[60];let F;e[61]!==u||e[62]!==w?(F=i.jsxs(ae,{children:[u,w]}),e[61]=u,e[62]=w,e[63]=F):F=e[63];let N;return e[64]!==M||e[65]!==L||e[66]!==F?(N=i.jsx(ie,{open:L,onOpenChange:M,children:F}),e[64]=M,e[65]=L,e[66]=F,e[67]=N):N=e[67],N}export{he as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{K as r,c as f,m as u}from"./index-
|
|
1
|
+
import{K as r,c as f,m as u}from"./index-EcuFIS2a.js";function c(e){return`${e.orgSlug}/${e.virtualMcpId}/${e.branch}`}function p(e,t,o){return["decofile-write",e,t,o]}function s(e){return`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}`}async function a(e,t){const o=await e.json().catch(()=>({}));throw new Error(o.error??`${t} failed (${e.status})`)}function l(e,t,o){e.setQueryData(r.decofileDraft(c(t)),o)}function S(e){const t=f.c(4);let o;t[0]!==e?(o=r.decofileDraft(e?c(e):""),t[0]=e,t[1]=o):o=t[1];let n;t[2]!==o?(n={queryKey:o,enabled:!1,queryFn:d,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY},t[2]=o,t[3]=n):n=t[3];const{data:i}=u(n);return i??null}async function d(){throw new Error("decofileDraft is populated by reads/writes, not fetched")}async function I(e,t){const o=await fetch(s(t),{cache:"no-store"});if(!o.ok){const i=new Error(`Failed to fetch decofile: ${o.status}`);throw i.status=o.status,i}const n=await o.json();return n.token&&l(e,t,{version:n.version,token:n.token,apiHost:n.apiHost??window.location.host}),n.decofile}const h=2880*60*1e3;function D(e,t,o=h){if(!e)return!1;const n=new Date(e).getTime();return Number.isNaN(n)?!1:t-n>o}async function y(e){const t=await fetch(`${s(e)}/status`,{cache:"no-store"});return t.ok?await t.json():a(t,"Status")}function b(e){return{queryKey:r.decofileStatus(c(e)),queryFn:()=>y(e),staleTime:3e4}}async function N(e,t){const o=await fetch(s(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(t)});if(!o.ok)return a(o,"Save");const n=await o.json();return{...n,apiHost:n.apiHost??window.location.host}}export{p as a,b as d,I as f,D as i,N as p,l as s,a as t,S as u};
|