decocms 4.514.6 → 4.515.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/ActiveShapeUtils-CHmxGMIj.js +1 -0
- package/dist/client/assets/{AlertCircle-Ctbquk5a.js → AlertCircle-CUAx3A4b.js} +1 -1
- package/dist/client/assets/AreaChart-CW0Iiw9b.js +1 -0
- package/dist/client/assets/{ArrowLeft-DZ0mAFgb.js → ArrowLeft-BWCsylYe.js} +1 -1
- package/dist/client/assets/{ArrowUp-bYg1aEOe.js → ArrowUp-EL0FBv9C.js} +1 -1
- package/dist/client/assets/BarChart-7G_lP-bc.js +1 -0
- package/dist/client/assets/{Building02-BHIVlbfK.js → Building02-PifDTlhb.js} +1 -1
- package/dist/client/assets/CartesianChart-CQlacwEw.js +1 -0
- package/dist/client/assets/{CategoricalChart-CRSSpo7X.js → CategoricalChart-QwBn7EzX.js} +2 -2
- package/dist/client/assets/{CheckCircle-C2ndOEUO.js → CheckCircle-CMGqXocs.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-DaUdbCWk.js → ChevronSelectorVertical-BSRBjpBn.js} +1 -1
- package/dist/client/assets/{ChevronUp-C8mqlnDX.js → ChevronUp-x46FJEcD.js} +1 -1
- package/dist/client/assets/{Copy01-DC8f0fwU.js → Copy01-OBSYmimV.js} +1 -1
- package/dist/client/assets/{CreditCard01-P7j8oDkg.js → CreditCard01-DWsSThAm.js} +1 -1
- package/dist/client/assets/{DotsVertical-BvwGTDkC.js → DotsVertical-jkvtcdek.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-KwnilJkg.js → ErrorBarContext-MNRbBKZp.js} +1 -1
- package/dist/client/assets/{Globe04-D6C-ihBU.js → Globe04-blkS_Kfg.js} +1 -1
- package/dist/client/assets/{Image01-D7F4wuKx.js → Image01-BCnLFq1D.js} +1 -1
- package/dist/client/assets/{Key01-u4HXXUPa.js → Key01-CG7Kua6O.js} +1 -1
- package/dist/client/assets/{Link01-BoUupQbW.js → Link01-8aKNfNRw.js} +1 -1
- package/dist/client/assets/{LinkBroken01-BJx0R97x.js → LinkBroken01-DcsqjBuj.js} +1 -1
- package/dist/client/assets/{Minus-C1PMcNV0.js → Minus-B38cW2ZC.js} +1 -1
- package/dist/client/assets/{Monitor01-D3VwU2ni.js → Monitor01-DQEkUL3d.js} +1 -1
- package/dist/client/assets/{Play-DxsFk4r2.js → Play-Ns9aRVTY.js} +1 -1
- package/dist/client/assets/{Plus-BDveVGJf.js → Plus-vkM1FxVr.js} +1 -1
- package/dist/client/assets/ReferenceLine-CJq91vhq.js +1 -0
- package/dist/client/assets/{SearchMd-Cuf45jFP.js → SearchMd-Cp6J-1Iu.js} +1 -1
- package/dist/client/assets/Sector-BeXkYaJv.js +28 -0
- package/dist/client/assets/{ShoppingBag01-BMRnsG58.js → ShoppingBag01-aJuRSlBz.js} +1 -1
- package/dist/client/assets/{Sun-sKGpeIhM.js → Sun-k4hypx5Q.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CshMTQzi.js → SwitchHorizontal01-B5WFt7_0.js} +1 -1
- package/dist/client/assets/{Tool01-BM29_KWq.js → Tool01-BsK9c3-e.js} +1 -1
- package/dist/client/assets/{Trash01-D92WhXf2.js → Trash01-Z1ezoy3S.js} +1 -1
- package/dist/client/assets/{Upload01-BSDy4f7m.js → Upload01-B3-nlnKa.js} +1 -1
- package/dist/client/assets/{User01-Cn3JqTjv.js → User01-C2Sw39bs.js} +1 -1
- package/dist/client/assets/{UserSquare-Drp4z0v0.js → UserSquare-BBEl_BxL.js} +1 -1
- package/dist/client/assets/{Users01-Cxbx87gg.js → Users01-DMFeioyM.js} +1 -1
- package/dist/client/assets/{XClose-dOW_RI9u.js → XClose-BdwIxxCT.js} +1 -1
- package/dist/client/assets/{ZoomOut-BfQx-fBr.js → ZoomOut-DytgoG2i.js} +1 -1
- package/dist/client/assets/{access-gate-BjUA5Gw_.js → access-gate-BUnHIPK_.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-B0vtW1sl.js → add-connection-dialog-F6QQAEZv.js} +1 -1
- package/dist/client/assets/agent-analytics-2BuaXhJ4.js +2 -0
- package/dist/client/assets/agent-app-DW_869sy.js +1 -0
- package/dist/client/assets/agent-assets-CPVwuId5.js +1 -0
- package/dist/client/assets/{agent-automation-Cc45Az0m.js → agent-automation-CKRFKK95.js} +1 -1
- package/dist/client/assets/agent-automations-CoXmwt9k.js +1 -0
- package/dist/client/assets/agent-calendar-CV9Ef0wP.js +1 -0
- package/dist/client/assets/{agent-connect-sources-mK6fw0FS.js → agent-connect-sources-B_bS144d.js} +1 -1
- package/dist/client/assets/agent-deck-OUciFfON.js +1 -0
- package/dist/client/assets/agent-e2e-DC8ADnZZ.js +1 -0
- package/dist/client/assets/agent-experiments-BwjYQ0V4.js +1 -0
- package/dist/client/assets/agent-file-CStNgNPQ.js +1 -0
- package/dist/client/assets/agent-hosting-Tr8uV5DY.js +1 -0
- package/dist/client/assets/{agent-icon-U4gZaLOQ.js → agent-icon--EtIPqub.js} +1 -1
- package/dist/client/assets/agent-library-Bf2YaEvb.js +1 -0
- package/dist/client/assets/agent-library-file-DAttgEac.js +1 -0
- package/dist/client/assets/agent-monitor-DIe6BVqe.js +1 -0
- package/dist/client/assets/{agent-overview-NPCMkyDB.js → agent-overview-popLuSBk.js} +1 -1
- package/dist/client/assets/agent-releases-CZVpd2dN.js +2 -0
- package/dist/client/assets/agent-settings-C6L22aS3.js +1 -0
- package/dist/client/assets/agent-site-editor-BML41A1E.js +16 -0
- package/dist/client/assets/agent-site-editor-code-Dnn-bhoB.js +2 -0
- package/dist/client/assets/agent-site-editor-content-Bt6vrV5b.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-q3wCu8-N.js +1 -0
- package/dist/client/assets/agent-view-B1o861lr.js +1 -0
- package/dist/client/assets/{agent-view-guard-Bk4OTT2f.js → agent-view-guard-BuPewEB-.js} +1 -1
- package/dist/client/assets/{agents-list-B_j46cpj.js → agents-list-BxOpJ6GX.js} +1 -1
- package/dist/client/assets/{ai-providers-Cb4AWs2D.js → ai-providers-BgJW78yt.js} +2 -2
- package/dist/client/assets/alert-BDbwlXZm.js +1 -0
- package/dist/client/assets/{alert-dialog-CKDHmJ-l.js → alert-dialog-C-DaggA1.js} +3 -3
- package/dist/client/assets/analytics-sections-i9-JccxC.js +1 -0
- package/dist/client/assets/{api-keys-Xjw7lgqR.js → api-keys-CsGvnzMj.js} +1 -1
- package/dist/client/assets/api-keys-DfU9uedt.js +1 -0
- package/dist/client/assets/app-editor-Cq-B0QFL.js +1 -0
- package/dist/client/assets/{asset-utils-DrTFUoo_.js → asset-utils-Cb8p2lKk.js} +1 -1
- package/dist/client/assets/{auth-hgpoCSIS.js → auth-C_nDagDA.js} +1 -1
- package/dist/client/assets/{auth-catchall-CIV9IiTJ.js → auth-catchall-DLKOtnms.js} +1 -1
- package/dist/client/assets/{auth-entry-ctrK7teX.js → auth-entry-CGuqEb3C.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DkyooQGo.js → auth-split-layout-CA_lMCib.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-jn1R1qId.js → authenticate-and-persist-oauth-CpcQdSQ-.js} +1 -1
- package/dist/client/assets/automation-list-row-B0U8Omed.js +1 -0
- package/dist/client/assets/{automation-runs-C367-v6a.js → automation-runs-CHS-S7AU.js} +1 -1
- package/dist/client/assets/{automations-8JKgpNEK.js → automations-BMiuIrti.js} +1 -1
- package/dist/client/assets/{autosend-BZOm698U.js → autosend-xoWUmECR.js} +1 -1
- package/dist/client/assets/{avatar-RpIBVCkY.js → avatar-DHKJiyOX.js} +1 -1
- package/dist/client/assets/badge-ux-RK1YK.js +1 -0
- package/dist/client/assets/{block-document-baEM6UJG.js → block-document-C53UA67Y.js} +3 -3
- package/dist/client/assets/{blocks-preview-workspace-context-Ca46yWEV.js → blocks-preview-workspace-context-CCLLqfhM.js} +1 -1
- package/dist/client/assets/blocks-tab-states-Chq5j0oT.js +1 -0
- package/dist/client/assets/blog-schema-CUXWCb3x.js +1 -0
- package/dist/client/assets/{buckets-p2Fiyc0f.js → buckets-KXy-OHx-.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-ClmcYJRa.js → build-improve-prompt-doc-7EW1ZAui.js} +1 -1
- package/dist/client/assets/{calendar-DqVFnL9A.js → calendar-qN6CeKGa.js} +1 -1
- package/dist/client/assets/campaigns-view-CwEmfYeP.js +1 -0
- package/dist/client/assets/{capability-load-error-DdN4o47w.js → capability-load-error-CoMXa4ni.js} +1 -1
- package/dist/client/assets/category-editor-C-13e8GC.js +1 -0
- package/dist/client/assets/{chart-B5vy2nis.js → chart-86pPxb3F.js} +1 -1
- package/dist/client/assets/{chat-context-_d3c57p1.js → chat-context-DXm8btNS.js} +6 -6
- package/dist/client/assets/{chat-draft-CKcHhXuF.js → chat-draft-WGnppXw7.js} +1 -1
- package/dist/client/assets/{checkbox-CUzk21sc.js → checkbox-vFQy8MvV.js} +1 -1
- package/dist/client/assets/{choose-editor-BFcNvSv4.js → choose-editor-Bry8-aop.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BolfyrKO.js → cli-auth-success-BM0cUkz3.js} +1 -1
- package/dist/client/assets/{client-icons-50FpZDWK.js → client-icons-M2pakr5u.js} +1 -1
- package/dist/client/assets/cms-settings-editor-CHoKFct5.js +1 -0
- package/dist/client/assets/{collapsible-CeBZpglT.js → collapsible-CnlVGt-G.js} +1 -1
- package/dist/client/assets/collection-detail-B_r2Oxl1.js +1 -0
- package/dist/client/assets/{collection-display-button-El-xnsaW.js → collection-display-button-ALXFDy_R.js} +1 -1
- package/dist/client/assets/{collection-search-gW4FCqmq.js → collection-search--9d0M5sc.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CB0t7kAl.js → collection-table-wrapper-DyQ4WIpY.js} +1 -1
- package/dist/client/assets/{collection-tabs-DIFXv7hR.js → collection-tabs-BfpnVdlQ.js} +1 -1
- package/dist/client/assets/{column-rules-o-DlIK_-.js → column-rules-DgVqSNU2.js} +1 -1
- package/dist/client/assets/{combobox-DlpsfK7m.js → combobox-BMxhMbUn.js} +1 -1
- package/dist/client/assets/{coming-soon-page-ZTZUbFgV.js → coming-soon-page-6F4aAL8E.js} +1 -1
- package/dist/client/assets/{command-C7n5qLsN.js → command-BlBQgQPI.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-C2rDEgkL.js → companion-mcps-section-B3EkkVtL.js} +1 -1
- package/dist/client/assets/{config-BCpfsSBB.js → config-CE3I8pu5.js} +1 -1
- package/dist/client/assets/{connect-Du_rXIM1.js → connect-C4NhmEFJ.js} +3 -3
- package/dist/client/assets/{connect-layout-DyGwITyt.js → connect-layout-DZGJCEON.js} +1 -1
- package/dist/client/assets/{connection-Dik4epzq.js → connection-Bo3v2rj5.js} +1 -1
- package/dist/client/assets/{connection-card-DCnmTKpJ.js → connection-card-DMfcnulT.js} +1 -1
- package/dist/client/assets/{connection-detail-CaTyUBlA.js → connection-detail-DxSeFIwH.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-ta2yIvIb.js → connection-form-helpers-A3QfJozi.js} +1 -1
- package/dist/client/assets/{connections-Dy2qa1bG.js → connections-DzbvhEpV.js} +1 -1
- package/dist/client/assets/content-tab-CaoAhPSw.js +22 -0
- package/dist/client/assets/context-0XuHSild.js +1 -0
- package/dist/client/assets/{context-menu-BUZj1ZG7.js → context-menu-BD833dh0.js} +1 -1
- package/dist/client/assets/{context-shell-CWF9i3Vt.js → context-shell-D1uT0vY1.js} +3 -3
- package/dist/client/assets/{core.esm-DNra8pgf.js → core.esm-DJ5llHMe.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-BkJvAp86.js → create-organization-dialog-nhhaUNZK.js} +1 -1
- package/dist/client/assets/{daily-pulse-DYjhyf3I.js → daily-pulse-Cry9rVi8.js} +1 -1
- package/dist/client/assets/date-utils-CrvIKg-s.js +1 -0
- package/dist/client/assets/{discover-nnC5Qnas.js → discover-C4Up8V0-.js} +1 -1
- package/dist/client/assets/{domain-settings-CpxFWOzU.js → domain-settings-Bec9kB9d.js} +1 -1
- package/dist/client/assets/{drawer-ZlYTI3Z6.js → drawer-0sYDH2mt.js} +1 -1
- package/dist/client/assets/{editor-BFHySd1K.js → editor-BctLuJLS.js} +1 -1
- package/dist/client/assets/{editor-classes-DPi5BWR5.js → editor-classes-BnPaf--r.js} +1 -1
- package/dist/client/assets/{empty-state-Bok1L2hc.js → empty-state-D6RWdvUz.js} +1 -1
- package/dist/client/assets/{empty-state-Cu20Qj3-.js → empty-state-DeArX05X.js} +1 -1
- package/dist/client/assets/experiments-tab-choice-CMHPX5ZC.js +1 -0
- package/dist/client/assets/{extract-connection-data-CNLani4P.js → extract-connection-data-CBAyhzk-.js} +1 -1
- package/dist/client/assets/{feature-gate-dfnyrtcC.js → feature-gate-DQ0ZaDj1.js} +1 -1
- package/dist/client/assets/{feature-paywall-D-GfxA1X.js → feature-paywall-hsFyGLR_.js} +1 -1
- package/dist/client/assets/{file-explorer-DOlx1A5r.js → file-explorer-GrzeifA-.js} +1 -1
- package/dist/client/assets/{file-preview-DSIiiWjA.js → file-preview-Bcawxb03.js} +1 -1
- package/dist/client/assets/{file-share-button-CB7fcIJI.js → file-share-button-LmGmSS33.js} +2 -2
- package/dist/client/assets/{file-type-icon-DPqHd815.js → file-type-icon-DHFVwXjA.js} +1 -1
- package/dist/client/assets/{folder-icon-qexQSaYN.js → folder-icon-BwmfzM1C.js} +2 -2
- package/dist/client/assets/{form-Dpwt-9St.js → form-D4PspedZ.js} +1 -1
- package/dist/client/assets/{general-DJuGMWNv.js → general-CXfgWejD.js} +1 -1
- package/dist/client/assets/{home-D9ErGwHG.js → home-DkYJf0RN.js} +1 -1
- package/dist/client/assets/hosted-publish-api-CK3ZnEoi.js +1 -0
- package/dist/client/assets/hosted-publish-feedback-BG4t8HgW.js +1 -0
- package/dist/client/assets/{icon-button-CwrVRVUS.js → icon-button-HZwQKD3a.js} +1 -1
- package/dist/client/assets/{index-BpRXpcv4.js → index-B32YFtAw.js} +1 -1
- package/dist/client/assets/{index-DK4LlU65.js → index-BCHFFeZZ.js} +1 -1
- package/dist/client/assets/{index-DzppA2EQ.js → index-BeV3dEoK.js} +3 -3
- package/dist/client/assets/{index-DUXVtfV1.js → index-BjrJaWD9.js} +1 -1
- package/dist/client/assets/{index-DPulqOQn.js → index-Bxkd37dZ.js} +1 -1
- package/dist/client/assets/{index-2uBqLA9S.js → index-CafY8AgN.js} +6 -6
- package/dist/client/assets/{index-DJM5MV7l.js → index-CgVQmSg0.js} +1 -1
- package/dist/client/assets/{index-TNsA6rsO.js → index-CvMuyNgv.js} +1 -1
- package/dist/client/assets/{index-C9OgV5Vt.js → index-DNa7Epd0.js} +1 -1
- package/dist/client/assets/{index-BWUABroT.js → index-D_6gfRTQ.js} +1 -1
- package/dist/client/assets/{index-DLuP-oy3.js → index-DgfcOEet.js} +1 -1
- package/dist/client/assets/index-EoMx4WDO.css +1 -0
- package/dist/client/assets/index-XzZeDzj0.js +4 -0
- package/dist/client/assets/{index-Cd_jqW-G.js → index-gqp4B5qj.js} +1 -1
- package/dist/client/assets/{index-CaH7O3hJ.js → index-ifZGovK1.js} +54 -54
- package/dist/client/assets/{index-CJu3ft8V.js → index-j4NUsiRT.js} +1 -1
- package/dist/client/assets/{index-redirect-CLzDU0fe.js → index-redirect-BKvfBlvA.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-u-Zd7Oxq.js → infiniteQueryObserver-DvmMaiCa.js} +1 -1
- package/dist/client/assets/infra-billing-WLIR9CQb.js +1 -0
- package/dist/client/assets/{input-DN6U5jAj.js → input-BeDIlaby.js} +1 -1
- package/dist/client/assets/{input-D2sd1bar.js → input-DIcILgWd.js} +7 -7
- package/dist/client/assets/{integration-icon-DCiBepJw.js → integration-icon-D1aQLe0v.js} +1 -1
- package/dist/client/assets/{jira-icon-DoiJbCfx.js → jira-icon-Bs7EGbwb.js} +1 -1
- package/dist/client/assets/{label-Cnc4HQwP.js → label-Dhoh3DcI.js} +1 -1
- package/dist/client/assets/{layout-BVW5q62A.js → layout-dz9-bhT2.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-DMfsC9-u.js → legacy-agents-deep-DO-8kywe.js} +1 -1
- package/dist/client/assets/legacy-main-redirect-BMyuR4az.js +1 -0
- package/dist/client/assets/library-BQ9URfiH.js +1 -0
- package/dist/client/assets/{login-CN9ueiIT.js → login-DwOQDvQC.js} +1 -1
- package/dist/client/assets/{markdown-CA3yd3L6.js → markdown-prFeEkT4.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-Xaw0krD3.js → mcp-app-renderer-fHjuxWIZ.js} +1 -1
- package/dist/client/assets/{mcp-oauth-3Gakbc_U.js → mcp-oauth-CNKUkWMd.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CxgfM8zh.js → mcp-oauth-CTJ5Iw4i.js} +1 -1
- package/dist/client/assets/{members-54kLIghY.js → members-B9Wn7yAF.js} +1 -1
- package/dist/client/assets/{memory-CQX6dqQP.js → memory-BDb7_tyh.js} +2 -2
- package/dist/client/assets/{mini-report-page-DCq4FNu-.js → mini-report-page-Bsjfan82.js} +1 -1
- package/dist/client/assets/{mock-board-CrlDKQvj.js → mock-board-BWfjyR2S.js} +3 -3
- package/dist/client/assets/{monaco-editor-C7rmyhBT.js → monaco-editor-Wx_2qGOP.js} +2 -2
- package/dist/client/assets/monitoring-BmpcQtwP.js +1 -0
- package/dist/client/assets/{monitoring-stats-row-Bhxzz0Gz.js → monitoring-stats-row-THiAXYTp.js} +1 -1
- package/dist/client/assets/{multi-select-DtSzZ5RJ.js → multi-select-DOxlfIKk.js} +1 -1
- package/dist/client/assets/mustache-BzHjgnm5.js +4 -0
- package/dist/client/assets/named-rule-uses-Mu_Msc9v.js +1 -0
- package/dist/client/assets/named-rule-view-CN2yeHp5.js +1 -0
- package/dist/client/assets/{new-project-dialog-DpHJ0D5s.js → new-project-dialog-DFsG79bb.js} +1 -1
- package/dist/client/assets/{oauth-callback-ChXsONZm.js → oauth-callback-BekJkoCF.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BnJfOlsF.js → oauth-callback-ai-provider-FtcHAH0j.js} +1 -1
- package/dist/client/assets/{onboarding-CuSBfoiA.js → onboarding-DNskGrdg.js} +1 -1
- package/dist/client/assets/{openai-conversation-B0QRsRtq.js → openai-conversation-_LIGb37e.js} +2 -2
- package/dist/client/assets/{optimistic-project-sidebar-views-Cgq6MsN2.js → optimistic-project-sidebar-views-CrYamEqL.js} +1 -1
- package/dist/client/assets/order-monitor-day-DLFR-weA.js +1 -0
- package/dist/client/assets/{organization-choice-hoXHHizl.js → organization-choice-zGI39_sg.js} +1 -1
- package/dist/client/assets/{orgs-CsgsGgsX.js → orgs-BjIQy8J3.js} +1 -1
- package/dist/client/assets/page-seo-form-CrgZFHtq.js +1 -0
- package/dist/client/assets/{pair-5gOZrfkD.js → pair-Ck7rgrik.js} +7 -7
- package/dist/client/assets/parse-sections-YhOUxu7l.js +1 -0
- package/dist/client/assets/plan-Iixr6Ywe.js +1 -0
- package/dist/client/assets/{plan-ladder-BydnH1hR.js → plan-ladder-BKLU8eo8.js} +1 -1
- package/dist/client/assets/{popover-DSRFfUdL.js → popover-DaReiQzV.js} +1 -1
- package/dist/client/assets/post-calendar--v0MjZPE.js +1 -0
- package/dist/client/assets/post-editor-CRy0VAcT.js +2 -0
- package/dist/client/assets/{preview-content-hWNiqB3L.js → preview-content-DJOuEciL.js} +1 -1
- package/dist/client/assets/{preview-dialog-HJF1l34b.js → preview-dialog-CnlKftcv.js} +1 -1
- package/dist/client/assets/{preview-panel-PigPEt4W.js → preview-panel-C2Athpf5.js} +1 -1
- package/dist/client/assets/preview-tab-CzS9kIxI.js +551 -0
- package/dist/client/assets/product-picker-dialog-oD9OPZfl.js +1 -0
- package/dist/client/assets/{profile-D-LHzn9e.js → profile-DAF3l5cg.js} +1 -1
- package/dist/client/assets/{project-app-view-CGbP48WX.js → project-app-view-CZXBsQ0a.js} +1 -1
- package/dist/client/assets/project-apps-CG2eY1ZZ.js +1 -0
- package/dist/client/assets/{project-feed-uKBIzmIi.js → project-feed-K24c6-Xx.js} +1 -1
- package/dist/client/assets/{project-icon-njec1yh1.js → project-icon-ZadU5ZjL.js} +1 -1
- package/dist/client/assets/project-reports-Crv9B-vM.js +1 -0
- package/dist/client/assets/project-tasks-Cz-57jQh.js +1 -0
- package/dist/client/assets/{projects-OJnagyMB.js → projects-BWrIdbSy.js} +1 -1
- package/dist/client/assets/{projects-empty-state-C9IhB7We.js → projects-empty-state-BWAilN1f.js} +1 -1
- package/dist/client/assets/{prompts-B590L6x_.js → prompts-DKnoRB34.js} +1 -1
- package/dist/client/assets/record-editor-d52mwz1n.js +1 -0
- package/dist/client/assets/redirect-editor-C-WKtN9s.js +1 -0
- package/dist/client/assets/releases-api-q3AffL1J.js +1 -0
- package/dist/client/assets/reports-B3miutne.js +1 -0
- package/dist/client/assets/{reports-DBL7SnEu.js → reports-Bg1fi6kR.js} +1 -1
- package/dist/client/assets/{reports-onboarding-Be9p494r.js → reports-onboarding-acV5ZZpQ.js} +1 -1
- package/dist/client/assets/reports-tab-Clf7FxSU.js +2 -0
- package/dist/client/assets/{repositories-BEFfDE3p.js → repositories-CxdgYwWQ.js} +1 -1
- package/dist/client/assets/repositories-D42Ai47E.js +1 -0
- package/dist/client/assets/{repository-binding-BLgLcT4o.js → repository-binding-DtIeSvDY.js} +1 -1
- package/dist/client/assets/{repository-import-picker-lphgZTGu.js → repository-import-picker-C2sQ94O1.js} +1 -1
- package/dist/client/assets/{repository-picker-Dadd-3sc.js → repository-picker-BXaWFfDW.js} +1 -1
- package/dist/client/assets/{require-capability-D4hkdMxt.js → require-capability-DAfCGgHW.js} +1 -1
- package/dist/client/assets/{required-auth-layout-e3_y0Tns.js → required-auth-layout-4jyUcmCy.js} +1 -1
- package/dist/client/assets/{reset-password-DPAO5WIu.js → reset-password-BGjvzv1z.js} +1 -1
- package/dist/client/assets/{resizable-D4wP3vt7.js → resizable-CQyxQjcn.js} +1 -1
- package/dist/client/assets/resolve-tab-icon-56O81FJc.js +1 -0
- package/dist/client/assets/{review-settings-BJK_0aY-.js → review-settings-CWih3HF4.js} +1 -1
- package/dist/client/assets/{roles-CJ569tPn.js → roles-BRkp9ar3.js} +1 -1
- package/dist/client/assets/route-4SgoFvu0.js +1 -0
- package/dist/client/assets/route-BEESJELS.js +1 -0
- package/dist/client/assets/route-D6eBZFy3.js +1 -0
- package/dist/client/assets/runnable-block-editor-CqYgijVY.js +20 -0
- package/dist/client/assets/{sandbox-git-api-CRxdlhrN.js → sandbox-git-api-CH_-QFpD.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-v9W7lV1M.js → sandbox-lifecycle-context-DdMgF1Lv.js} +1 -1
- package/dist/client/assets/schema-Cn4x5iT-.js +1 -0
- package/dist/client/assets/{schema-Cx9ZLa-H.js → schema-Dvc5tPTN.js} +1 -1
- package/dist/client/assets/{scroll-area-Bnrys5oj.js → scroll-area-9wUBmncr.js} +1 -1
- package/dist/client/assets/{search-input-CXQLMhKZ.js → search-input-1DLvCYgl.js} +1 -1
- package/dist/client/assets/{search-toggle-DxUZFRWy.js → search-toggle-BnK2KHqJ.js} +1 -1
- package/dist/client/assets/{secret-picker-HHgZv9y6.js → secret-picker-B4zI9e3W.js} +1 -1
- package/dist/client/assets/{secrets-Cm2ZaKef.js → secrets-C2PS9_a9.js} +1 -1
- package/dist/client/assets/{sections-DT5ozPKC.js → sections-DX6pY_bs.js} +1 -1
- package/dist/client/assets/sections-editor-DD9uWqQ8.js +4 -0
- package/dist/client/assets/{select-CSQbGY9x.js → select-DUEGSJco.js} +1 -1
- package/dist/client/assets/{select-model-NUb0C_oX.js → select-model-mFyCcf-O.js} +1 -1
- package/dist/client/assets/seo-editor-Bf-sfYSP.js +1 -0
- package/dist/client/assets/{separator-CjiQChVR.js → separator-Bk_a4cod.js} +1 -1
- package/dist/client/assets/settings-tab-DpQMA4J6.js +1 -0
- package/dist/client/assets/{sheet-C-yunzji.js → sheet-Dhe0uPV2.js} +1 -1
- package/dist/client/assets/shell-layout-U7D4A6nk.js +1 -0
- package/dist/client/assets/site-draft-actions-Dpnw67Ug.js +12 -0
- package/dist/client/assets/site-draft-view-Cho80MC6.js +2 -0
- package/dist/client/assets/site-editor-34XlqmyW.js +1 -0
- package/dist/client/assets/{skills-9HRxIPqn.js → skills-DghKPwKw.js} +1 -1
- package/dist/client/assets/slider-CLUaEqdg.js +1 -0
- package/dist/client/assets/{sortable.esm-C1zl1f3P.js → sortable.esm-CkqHW6-y.js} +1 -1
- package/dist/client/assets/{sso-PqsQn3xP.js → sso-DGFWPeza.js} +1 -1
- package/dist/client/assets/{suggestion-Wgq7DDQo.js → suggestion-BNEVVm5c.js} +2 -2
- package/dist/client/assets/{switch-DYA2xfHU.js → switch-ByCU93P4.js} +1 -1
- package/dist/client/assets/{symbol-B8wQ7lKk.js → symbol-BQLM2_V8.js} +1 -1
- package/dist/client/assets/{synced-repos-mXhCt1sQ.js → synced-repos-CjPrTUpI.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-BpaLtZlY.js → tab-icon-glyph-Cz_BoFAU.js} +1 -1
- package/dist/client/assets/{table-BQLxO2Sb.js → table-Tw2gCVXe.js} +1 -1
- package/dist/client/assets/{tabs-2NCCfhSA.js → tabs-C7f3nqQx.js} +1 -1
- package/dist/client/assets/{task-assignee-avatar-FdiZZP36.js → task-assignee-avatar-BiPanmNM.js} +1 -1
- package/dist/client/assets/{task-board-DRNr9Dsj.js → task-board-BrTYr-oE.js} +1 -1
- package/dist/client/assets/{task-route-BaANwBST.js → task-route-BLP-DBaS.js} +1 -1
- package/dist/client/assets/{task-status-VcYcBtq_.js → task-status-CVpsP3bD.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-RJkelUr8.js → taskboard-analytics-CQMw4wzL.js} +1 -1
- package/dist/client/assets/tasks-C_346UtB.js +1 -0
- package/dist/client/assets/{tasks-COZY0QCJ.js → tasks-CtPgnGlW.js} +3 -3
- package/dist/client/assets/{textarea-CxhXyMKI.js → textarea-Bbbnnl4r.js} +1 -1
- package/dist/client/assets/{thread-analytics-BGQNbVS2.js → thread-analytics-CtQHMk9N.js} +1 -1
- package/dist/client/assets/{thread-intent-DKuqiaG7.js → thread-intent-7GmQH5mt.js} +4 -4
- package/dist/client/assets/{thread-route-CQ0phZyI.js → thread-route-C7RSGMhP.js} +1 -1
- package/dist/client/assets/{thread-route-jNELZX1N.js → thread-route-DpLeB4i0.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-Cdv_wHnA.js → thread-sheet-body-dWggSd-b.js} +1 -1
- package/dist/client/assets/time-range-picker-BVXe-Owx.js +1 -0
- package/dist/client/assets/toggle-group-CXUKmPFr.js +1 -0
- package/dist/client/assets/{tool-namespace-DTl3so75.js → tool-namespace-DIE_8J9o.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BPY5dUh9.js → toolbar-icon-button-DzJeqLa2.js} +1 -1
- package/dist/client/assets/{tooltip-B5RmO6BW.js → tooltip-gMeEuHtO.js} +1 -1
- package/dist/client/assets/tooltipContext-BQS7kWxi.js +1 -0
- package/dist/client/assets/{track-BBpplM-4.js → track-DdeuRUoM.js} +1 -1
- package/dist/client/assets/{types-Bt5yyj-z.js → types-CHFSNT7a.js} +6 -6
- package/dist/client/assets/{url-slug-B41xLFy_.js → url-slug-D37s8EDd.js} +1 -1
- package/dist/client/assets/{usage-stats-BkcKNXzu.js → usage-stats-BecGIkLk.js} +1 -1
- package/dist/client/assets/{use-ai-providers-D1TJRnIR.js → use-ai-providers-CAt_9H4n.js} +1 -1
- package/dist/client/assets/use-apply-named-rule-B_CXDUdG.js +1 -0
- package/dist/client/assets/{use-automations-B9eI7BBQ.js → use-automations-C6LbyvJD.js} +1 -1
- package/dist/client/assets/{use-autosave-D3uy94Wi.js → use-autosave-e9CI9oFB.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-BNudmQ0u.js → use-chat-layout-state-24wCHq_-.js} +1 -1
- package/dist/client/assets/{use-clock-tick-D3FoyBXt.js → use-clock-tick-DflKMAWl.js} +1 -1
- package/dist/client/assets/{use-connect-companion-BLomLbPK.js → use-connect-companion-3OWtftC8.js} +1 -1
- package/dist/client/assets/{use-connection-BwU_KLSF.js → use-connection-CBKH8IwL.js} +1 -1
- package/dist/client/assets/use-content-sync-D_qyLHCv.js +1 -0
- package/dist/client/assets/{use-copy-d7X6hrKI.js → use-copy-Cn8Org7G.js} +1 -1
- package/dist/client/assets/use-create-virtual-mcp-jW1iVRi_.js +1 -0
- package/dist/client/assets/{use-date-fns-locale-BuGEMgXR.js → use-date-fns-locale-DTRxIyi4.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-KHVF-MyQ.js → use-debounced-autosave-DDaoW-uw.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DJkh4QSx.js → use-debounced-value-c5JdkW89.js} +1 -1
- package/dist/client/assets/{use-deco-credits-Dx8wT8P5.js → use-deco-credits-D8w-JIDW.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-AlKmmETJ.js → use-decopilot-events-Cp8NaBPU.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BQjQHz64.js → use-delete-connection-BJIObh7l.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BIA7CHLS.js → use-deployment-admin-D7XKR1Dx.js} +1 -1
- package/dist/client/assets/use-fast-preview-draft-url-CSz1rYUo.js +1 -0
- package/dist/client/assets/{use-file-configs-tsH4be9V.js → use-file-configs-DW0hmZjE.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-bGge9UaE.js → use-inbox-feed-DOpe-XBh.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BO0n6TVn.js → use-infinite-scroll-Cuyf7850.js} +1 -1
- package/dist/client/assets/{use-join-requests-DqhkfI-R.js → use-join-requests-CBahVlKF.js} +1 -1
- package/dist/client/assets/use-main-panel-tabs-CVsgtXg7.js +1 -0
- package/dist/client/assets/{use-mcp-auth-status-DmZSbEuf.js → use-mcp-auth-status-Cs8ZHHaN.js} +1 -1
- package/dist/client/assets/use-mcp-client-D1kFCZ4v.js +10 -0
- package/dist/client/assets/{use-mcp-prompts-DHm-ZTib.js → use-mcp-prompts-wKDmQlGB.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DiCKzhUm.js → use-mcp-tools-I-kpM305.js} +1 -1
- package/dist/client/assets/{use-members-h3MYd8gX.js → use-members-0ZBHc0S5.js} +1 -1
- package/dist/client/assets/{use-mobile-DCpa1RnA.js → use-mobile-CKoO3XSk.js} +1 -1
- package/dist/client/assets/use-move-blocks-Dm4etxGk.js +1 -0
- package/dist/client/assets/{use-navigate-to-agent-Bt0oZ-ou.js → use-navigate-to-agent-DLX1nkvn.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-B2NuYLXS.js → use-open-billing-url-C5lEsbaH.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CL0a2tPL.js → use-org-auth-client-t4l-TKT1.js} +1 -1
- package/dist/client/assets/{use-org-fs-D_4Q985K.js → use-org-fs-49a1bhbu.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CC0BNhdO.js → use-org-repo-syncs-BunA5GFg.js} +1 -1
- package/dist/client/assets/{use-org-sso-LC63-uuA.js → use-org-sso-B_zXOLDA.js} +1 -1
- package/dist/client/assets/{use-organization-roles-D1Q7317o.js → use-organization-roles-Bc45ILhm.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DhvN44pQ.js → use-organization-settings-laAOR3Cm.js} +1 -1
- package/dist/client/assets/use-panel-navigate-Bghh8kV3.js +1 -0
- package/dist/client/assets/use-project-native-view-presence-C3Vtd78t.js +1 -0
- package/dist/client/assets/{use-project-scope-Cq4vb2Sy.js → use-project-scope-DH5nL_oD.js} +1 -1
- package/dist/client/assets/{use-recent-apps-CeIVmzp8.js → use-recent-apps-D6yVH6-8.js} +1 -1
- package/dist/client/assets/{use-releases-DQ--CsAF.js → use-releases-G0pirYfu.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CWir9L_Y.js → use-reports-diagnostic-BKJYEIJX.js} +1 -1
- package/dist/client/assets/{use-secrets-D6tUoaJC.js → use-secrets-DszBqpzD.js} +1 -1
- package/dist/client/assets/use-section-preview-base-BASvFHv_.js +1 -0
- package/dist/client/assets/{use-sidebar-collapsed-DPHQfMII.js → use-sidebar-collapsed-CuPY8XXm.js} +1 -1
- package/dist/client/assets/{use-tags-DE48pnzl.js → use-tags-BsXvHuTC.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DlTk43Uu.js → use-task-board-analytics-BtNGPBbp.js} +1 -1
- package/dist/client/assets/{use-task-board-events-CSRq29Tm.js → use-task-board-events-BARWSwfj.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-BsxjjcBf.js → use-task-board-item-prs-BhAhDKGd.js} +1 -1
- package/dist/client/assets/{use-task-metadata-ToXrxOCT.js → use-task-metadata-Dd-9Qkoq.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-Bu_i1v9r.js → use-thread-analytics-B9Rm3t_E.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-jyAHyZHI.js → use-thread-outputs-CoFWg3_v.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-wCORGPw3.js +1 -0
- package/dist/client/assets/{useQueries-CddGJ3VE.js → useQueries-_Urb_S-y.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-JvpRoEFG.js +1 -0
- package/dist/client/assets/{users-2guAvf9G.js → users-BXTFPRVd.js} +1 -1
- package/dist/client/assets/{utils-DzhKsxx8.js → utils-CduIoZ0d.js} +2 -2
- package/dist/client/assets/variant-calendar-D0iLcmjF.js +1 -0
- package/dist/client/assets/variant-draft-pointer-HWAlFj6Z.js +1 -0
- package/dist/client/assets/virtual-mcp-Xd6PvE5_.js +1 -0
- package/dist/client/assets/{watch-sse-pool-DwBbAQ97.js → watch-sse-pool-BoG6Bqps.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/server.js +684 -684
- package/package.json +1 -1
- package/dist/client/assets/ActiveShapeUtils-DV40gvcg.js +0 -1
- package/dist/client/assets/AreaChart-C_4ebEom.js +0 -1
- package/dist/client/assets/BarChart-DfTtCBDv.js +0 -1
- package/dist/client/assets/CartesianChart-uNdbRuTj.js +0 -1
- package/dist/client/assets/ReferenceLine-ILm1GG8J.js +0 -1
- package/dist/client/assets/Sector-D2xOkxuc.js +0 -28
- package/dist/client/assets/agent-analytics-D74l8HWB.js +0 -2
- package/dist/client/assets/agent-app-CEBVAZwO.js +0 -1
- package/dist/client/assets/agent-assets-Bwo-LFkg.js +0 -1
- package/dist/client/assets/agent-automations-Du82D3qr.js +0 -1
- package/dist/client/assets/agent-deck-BZZHzjdZ.js +0 -1
- package/dist/client/assets/agent-e2e-D6ovLSkg.js +0 -1
- package/dist/client/assets/agent-experiments-Bf1OqB1m.js +0 -1
- package/dist/client/assets/agent-file-CzvpBEaK.js +0 -1
- package/dist/client/assets/agent-hosting-6te_9jdz.js +0 -1
- package/dist/client/assets/agent-library-BOSIxUYz.js +0 -1
- package/dist/client/assets/agent-library-file-C0RqJ45T.js +0 -1
- package/dist/client/assets/agent-monitor-C3Fta9kk.js +0 -1
- package/dist/client/assets/agent-releases-COSsnWfe.js +0 -2
- package/dist/client/assets/agent-settings-DDIl5jyz.js +0 -1
- package/dist/client/assets/agent-site-editor-DlN_1OE1.js +0 -27
- package/dist/client/assets/agent-site-editor-code-ByOIwjcy.js +0 -2
- package/dist/client/assets/agent-site-editor-content-DSEuxkJh.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-pw2RBbYs.js +0 -1
- package/dist/client/assets/agent-view-IbmF6KBh.js +0 -1
- package/dist/client/assets/alert-B29bfkXd.js +0 -1
- package/dist/client/assets/analytics-sections-wgH0NLyS.js +0 -1
- package/dist/client/assets/api-keys-CiMyiLjo.js +0 -1
- package/dist/client/assets/app-editor-DgdEdwhZ.js +0 -1
- package/dist/client/assets/automation-list-row-qFFhCtZo.js +0 -1
- package/dist/client/assets/badge-Cnnepvq1.js +0 -1
- package/dist/client/assets/blocks-tab-states-jGeS9iVz.js +0 -20
- package/dist/client/assets/blog-schema-CUOOV4a2.js +0 -1
- package/dist/client/assets/category-editor-Gr46SDP4.js +0 -1
- package/dist/client/assets/cms-settings-editor-CxJ3W3GB.js +0 -1
- package/dist/client/assets/collection-detail-BXVqh2XU.js +0 -1
- package/dist/client/assets/content-tab-YH7YYY48.js +0 -22
- package/dist/client/assets/context-3twD8BEv.js +0 -1
- package/dist/client/assets/hosted-publish-feedback-9IsLIhi6.js +0 -1
- package/dist/client/assets/index-BRzGXE32.js +0 -4
- package/dist/client/assets/index-BqS2UmN9.css +0 -1
- package/dist/client/assets/infra-billing-DkMlIjvS.js +0 -1
- package/dist/client/assets/legacy-main-redirect-mSx9JMxj.js +0 -1
- package/dist/client/assets/library-BNARKbpY.js +0 -1
- package/dist/client/assets/monitoring-DX0mWeP-.js +0 -1
- package/dist/client/assets/mustache-BxPGtFxk.js +0 -4
- package/dist/client/assets/order-monitor-day-BHpHKh9K.js +0 -1
- package/dist/client/assets/page-seo-form-PX_1VQkb.js +0 -1
- package/dist/client/assets/plan-BnqYpKp5.js +0 -1
- package/dist/client/assets/post-calendar-D_8Ms9Cq.js +0 -1
- package/dist/client/assets/post-editor-lU8h7ku9.js +0 -2
- package/dist/client/assets/preview-tab-B-uX9H3E.js +0 -551
- package/dist/client/assets/product-picker-dialog-BUcziHgK.js +0 -1
- package/dist/client/assets/project-apps-CajNRGrz.js +0 -1
- package/dist/client/assets/project-reports-BwZ6fxIs.js +0 -1
- package/dist/client/assets/project-tasks-zYigtiRn.js +0 -1
- package/dist/client/assets/record-editor-BxllIkC_.js +0 -1
- package/dist/client/assets/redirect-editor-CTLxiYxe.js +0 -1
- package/dist/client/assets/reports-CJqSx9sD.js +0 -1
- package/dist/client/assets/reports-tab-B0M7UKAQ.js +0 -2
- package/dist/client/assets/repositories-DceuH_GA.js +0 -1
- package/dist/client/assets/resolve-tab-icon-CE5OwNrK.js +0 -1
- package/dist/client/assets/route-Bzf1UEGL.js +0 -1
- package/dist/client/assets/route-CG_vDQP9.js +0 -1
- package/dist/client/assets/route-Dfqmjwjm.js +0 -1
- package/dist/client/assets/schema-BdFq22Hl.js +0 -1
- package/dist/client/assets/secret-ciphertext-DZr2qcb4.js +0 -1
- package/dist/client/assets/sections-editor-CkId24Js.js +0 -4
- package/dist/client/assets/seo-editor-D886xssW.js +0 -1
- package/dist/client/assets/settings-tab-BmEKDSFe.js +0 -1
- package/dist/client/assets/shell-layout-vQvYndIW.js +0 -1
- package/dist/client/assets/site-editor-1ZGqBXbh.js +0 -1
- package/dist/client/assets/site-editor-toast-BtFL0E4q.js +0 -1
- package/dist/client/assets/slider-DB0IY-tO.js +0 -1
- package/dist/client/assets/tasks-CYZeHeAX.js +0 -1
- package/dist/client/assets/time-range-picker-DEciYFPf.js +0 -1
- package/dist/client/assets/toggle-group-CtdhsZGp.js +0 -1
- package/dist/client/assets/tooltipContext-C93Q6WFf.js +0 -1
- package/dist/client/assets/use-content-sync-BgOMBs5q.js +0 -1
- package/dist/client/assets/use-create-virtual-mcp-OUIvni0u.js +0 -1
- package/dist/client/assets/use-fast-preview-draft-url-5oeXM-kY.js +0 -1
- package/dist/client/assets/use-main-panel-tabs-BrJK-bL3.js +0 -1
- package/dist/client/assets/use-main-schema-v8-CZLsOlEV.js +0 -1
- package/dist/client/assets/use-mcp-client-MRThuZpK.js +0 -10
- package/dist/client/assets/use-panel-navigate-DoD4Atgz.js +0 -1
- package/dist/client/assets/use-project-native-view-presence-DF_1PP5b.js +0 -1
- package/dist/client/assets/use-section-preview-base-Ca45yoz9.js +0 -1
- package/dist/client/assets/useInfiniteQuery-ZoWXsJcj.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-D2W70ffp.js +0 -1
- package/dist/client/assets/variant-calendar-Bdj0O-mA.js +0 -1
- package/dist/client/assets/variant-draft-pointer-_apEPqxm.js +0 -1
- package/dist/client/assets/virtual-mcp-CMZ8dHEU.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{c as
|
|
1
|
+
import{c as w,j as s,b as _,r as J,l as Ce,af as me,g4 as be,a2 as ve,am as Ne,a3 as we,B as ie,t as fe,f0 as pe,ew as ke,av as Se}from"./index-ifZGovK1.js";import{A as $e,b as _e}from"./alert-BDbwlXZm.js";import{B as Ke}from"./badge-ux-RK1YK.js";import{a as Ae,b as Ie,c as de,d as ze,S as Te}from"./select-DUEGSJco.js";import{b as se,T as oe,a as xe,c as ae}from"./tabs-C7f3nqQx.js";import{u as ge}from"./use-copy-Cn8Org7G.js";import{a as he}from"./Copy01-OBSYmimV.js";import{i as Le}from"./Key01-CG7Kua6O.js";import{i as Oe}from"./Link01-8aKNfNRw.js";import{C as De,a as Me,b as Ee}from"./client-icons-M2pakr5u.js";import{u as Be,a as He,A as Pe}from"./api-keys-CsGvnzMj.js";import{R as Ge}from"./require-capability-DAfCGgHW.js";import"./index-BdQq_4o_.js";import"./index-DNa7Epd0.js";import"./ChevronUp-x46FJEcD.js";import"./active-indicator-CCMhAsc_.js";import"./AlertCircle-CUAx3A4b.js";import"./Plus-vkM1FxVr.js";import"./Trash01-Z1ezoy3S.js";import"./empty-state-DeArX05X.js";import"./alert-dialog-C-DaggA1.js";import"./label-Dhoh3DcI.js";import"./use-mcp-client-D1kFCZ4v.js";import"./auth-C_nDagDA.js";import"./access-gate-BUnHIPK_.js";import"./capability-load-error-CoMXa4ni.js";function Re(){return(typeof window>"u"?"":window.location.hostname||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"studio"}function Ve(t){return`${typeof window>"u"?"http://localhost:3000":window.location.origin}/api/${t}/mcp/self`}function Ue({client:t,mode:e,url:i,apiKey:o}){const n=o??"<paste-your-api-key>",r=Re();if(t==="claude-code")return e==="oauth"?{language:"bash",code:`claude mcp add --transport http --scope user ${r} ${i}`}:{language:"bash",code:`claude mcp add --transport http --scope user ${r} ${i} \\
|
|
2
2
|
--header "Authorization: Bearer ${n}"`};if(t==="cursor"){const l={url:i};return e==="api-key"&&(l.headers={Authorization:`Bearer ${n}`}),{language:"json",pathHint:"~/.cursor/mcp.json",code:JSON.stringify({mcpServers:{[r]:l}},null,2)}}if(t==="codex"){const l=[`[mcp_servers.${r}]`,`url = "${i}"`];return e==="api-key"&&l.push(`http_headers = { "Authorization" = "Bearer ${n}" }`),{language:"toml",pathHint:"~/.codex/config.toml",code:l.join(`
|
|
3
3
|
`)}}return e==="oauth"?{language:"text",code:`${i}
|
|
4
4
|
|
|
5
5
|
# OAuth: clients that support MCP OAuth 2.1 will discover
|
|
6
6
|
# the auth flow via the WWW-Authenticate header on 401.`}:{language:"text",code:`${i}
|
|
7
7
|
|
|
8
|
-
Authorization: Bearer ${n}`}}function We(t){const e=
|
|
9
|
-
`);case"cursor":return`${le} -a cursor`;case"codex":return`${le} -a codex`;case"raw":return le}}function Je(t){return t===Fe?"bunx decocms@latest auth login":`bunx decocms@latest auth login --target ${t}`}const ue="Connect: ",X=[{id:"claude-code",label:"Claude",Icon:De},{id:"cursor",label:"Cursor",Icon:Me},{id:"codex",label:"Codex",Icon:Ee},{id:"raw",label:"Other client",labelKey:"settings.connectClients.otherClient",Icon:Oe}];function je(t){return X.find(e=>e.id===t)?.label??t}function Xe(){return typeof window>"u"?"unknown":window.location.hostname}function Ye(t){const e=k.c(11),{text:i}=t,o=_(),{handleCopy:n,copied:r}=ge();let l;e[0]!==n||e[1]!==i?(l=()=>n(i),e[0]=n,e[1]=i,e[2]=l):l=e[2];let a;e[3]!==o?(a=o("settings.connectClients.copy"),e[3]=o,e[4]=a):a=e[4];let c;e[5]!==r?(c=r?s.jsx(me,{size:14}):s.jsx(he,{size:14}),e[5]=r,e[6]=c):c=e[6];let d;return e[7]!==l||e[8]!==a||e[9]!==c?(d=s.jsx(ie,{variant:"ghost",size:"icon-sm",className:"shrink-0",onClick:l,"aria-label":a,children:c}),e[7]=l,e[8]=a,e[9]=c,e[10]=d):d=e[10],d}function Ze(t){const e=k.c(17),{url:i}=t,o=_(),n=`${i}/.well-known/oauth-protected-resource`;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Se,{size:12,className:"shrink-0 transition-transform group-open:rotate-90"}),e[0]=r):r=e[0];let l;e[1]!==o?(l=o("settings.connectClients.oauthDiscoveryDetails"),e[1]=o,e[2]=l):l=e[2];let a;e[3]!==l?(a=s.jsxs("summary",{className:"flex cursor-pointer list-none items-center gap-1.5 transition-colors hover:text-foreground [&::-webkit-details-marker]:hidden",children:[r,l]}),e[3]=l,e[4]=a):a=e[4];let c;e[5]!==o?(c=o("settings.connectClients.oauthMetadataHint"),e[5]=o,e[6]=c):c=e[6];let d;e[7]!==c?(d=s.jsx("p",{children:c}),e[7]=c,e[8]=d):d=e[8];let u;e[9]!==n?(u=s.jsxs("div",{className:"flex items-center gap-2 rounded-lg border border-border bg-background px-3 py-1.5",children:[s.jsx("code",{className:"flex-1 truncate font-mono text-2xs",children:n}),s.jsx(Ye,{text:n})]}),e[9]=n,e[10]=u):u=e[10];let m;e[11]!==d||e[12]!==u?(m=s.jsxs("div",{className:"mt-2 space-y-1 pl-[18px]",children:[d,u]}),e[11]=d,e[12]=u,e[13]=m):m=e[13];let f;return e[14]!==a||e[15]!==m?(f=s.jsxs("details",{className:"group text-xs text-muted-foreground",children:[a,m]}),e[14]=a,e[15]=m,e[16]=f):f=e[16],f}function Qe(t){const e=k.c(23),{mode:i,onModeChange:o}=t,n=_();let r;e[0]!==o?(r=x=>{(x==="oauth"||x==="api-key")&&o(x)},e[0]=o,e[1]=r):r=e[1];let l;e[2]!==n?(l=n("settings.connectClients.installMethod"),e[2]=n,e[3]=l):l=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Ae,{}),e[4]=a):a=e[4];let c;e[5]!==l?(c=s.jsx(Ie,{size:"sm","aria-label":l,children:a}),e[5]=l,e[6]=c):c=e[6];let d;e[7]!==n?(d=n("settings.connectClients.oauthOption"),e[7]=n,e[8]=d):d=e[8];let u;e[9]!==d?(u=s.jsx(de,{value:"oauth",className:"text-xs",children:d}),e[9]=d,e[10]=u):u=e[10];let m;e[11]!==n?(m=n("settings.connectClients.apiKeyOption"),e[11]=n,e[12]=m):m=e[12];let f;e[13]!==m?(f=s.jsx(de,{value:"api-key",className:"text-xs",children:m}),e[13]=m,e[14]=f):f=e[14];let p;e[15]!==u||e[16]!==f?(p=s.jsxs(ze,{children:[u,f]}),e[15]=u,e[16]=f,e[17]=p):p=e[17];let j;return e[18]!==i||e[19]!==r||e[20]!==c||e[21]!==p?(j=s.jsxs(Te,{value:i,onValueChange:r,children:[c,p]}),e[18]=i,e[19]=r,e[20]=c,e[21]=p,e[22]=j):j=e[22],j}function et(t){const e=k.c(26),{client:i,url:o,mode:n,newKey:r,canManageKeys:l,onGenerate:a,isGenerating:c,onClearNewKey:d}=t,u=_(),m=n==="api-key"&&r!==null,f=i==="raw";let p;e[0]!==m||e[1]!==u?(p=m&&s.jsxs($e,{variant:"warning",className:"text-xs",children:[s.jsx(ke,{}),s.jsx(_e,{children:u("settings.connectClients.snippetOneTimeWarning")})]}),e[0]=m,e[1]=u,e[2]=p):p=e[2];const j=m&&r?r:void 0;let x;e[3]!==i||e[4]!==n||e[5]!==j||e[6]!==o?(x=s.jsx(We,{client:i,mode:n,url:o,apiKey:j}),e[3]=i,e[4]=n,e[5]=j,e[6]=o,e[7]=x):x=e[7];let g;e[8]!==f||e[9]!==o?(g=f&&s.jsx(Ze,{url:o}),e[8]=f,e[9]=o,e[10]=g):g=e[10];let h;e[11]!==l||e[12]!==i||e[13]!==c||e[14]!==f||e[15]!==n||e[16]!==d||e[17]!==a||e[18]!==m||e[19]!==u?(h=n==="api-key"&&l&&s.jsx("div",{children:m?s.jsx(ie,{variant:"ghost",size:"sm",onClick:d,children:u("settings.connectClients.doneHideKey")}):s.jsxs(ie,{size:"sm",onClick:a,disabled:c,className:"gap-1.5",children:[s.jsx(Le,{size:14}),c?u("settings.connectClients.generatingKey"):f?u("settings.connectClients.generateKey"):u("settings.connectClients.generateKeyFor",{client:je(i)})]})}),e[11]=l,e[12]=i,e[13]=c,e[14]=f,e[15]=n,e[16]=d,e[17]=a,e[18]=m,e[19]=u,e[20]=h):h=e[20];let C;return e[21]!==p||e[22]!==x||e[23]!==g||e[24]!==h?(C=s.jsxs("div",{className:"flex flex-col gap-3",children:[p,x,g,h]}),e[21]=p,e[22]=x,e[23]=g,e[24]=h,e[25]=C):C=e[25],C}function ye(){const t=k.c(4),e=_();let i;t[0]!==e?(i=X.map(n=>{const{id:r,label:l,labelKey:a,Icon:c}=n;return s.jsxs(oe,{value:r,variant:"underline",className:"gap-2",children:[s.jsx(c,{size:16}),a?e(a):l]},r)}),t[0]=e,t[1]=i):i=t[1];let o;return t[2]!==i?(o=s.jsx(xe,{variant:"underline",className:"h-10 min-w-0 flex-1 gap-1 overflow-x-auto border-b-0",children:i}),t[2]=i,t[3]=o):o=t[3],o}function tt(t){const e=k.c(39),{client:i,onClientChange:o}=t,n=_(),r=typeof window>"u"?"":window.location.origin;let l;e[0]!==n?(l=n("settings.connectClients.skillDescription"),e[0]=n,e[1]=l):l=e[1];let a;e[2]!==l?(a=s.jsx("p",{className:"px-4 text-sm leading-snug text-muted-foreground",children:l}),e[2]=l,e[3]=a):a=e[3];let c;e[4]!==n?(c=n("settings.connectClients.skillInstallStep"),e[4]=n,e[5]=c):c=e[5];let d;e[6]!==c?(d=s.jsx("h3",{className:"px-5 pt-4 text-sm font-medium",children:c}),e[6]=c,e[7]=d):d=e[7];let u;e[8]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("div",{className:"flex px-3 py-1",children:s.jsx(ye,{})}),e[8]=u):u=e[8];let m;e[9]!==n?(m=X.map(A=>{const{id:S}=A;return s.jsxs(se,{value:S,className:"flex flex-col p-2",children:[s.jsx(ce,{label:"bash",code:qe(S)}),S==="raw"&&s.jsx("p",{className:"px-3 pb-2 text-xs leading-snug text-muted-foreground",children:n("settings.connectClients.skillOtherAgentsHint")})]},S)}),e[9]=n,e[10]=m):m=e[10];let f;e[11]!==i||e[12]!==o||e[13]!==d||e[14]!==m?(f=s.jsxs(ae,{value:i,onValueChange:o,variant:"underline",className:"gap-0",children:[d,u,m]}),e[11]=i,e[12]=o,e[13]=d,e[14]=m,e[15]=f):f=e[15];let p;e[16]!==n?(p=n("settings.connectClients.skillLoginStep"),e[16]=n,e[17]=p):p=e[17];let j;e[18]!==p?(j=s.jsx("h3",{className:"px-3 pt-2 text-sm font-medium",children:p}),e[18]=p,e[19]=j):j=e[19];let x;e[20]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(ce,{label:"bash",code:Je(r)}),e[20]=x):x=e[20];let g;e[21]!==j?(g=s.jsxs("div",{className:"flex flex-col gap-1 p-2",children:[j,x]}),e[21]=j,e[22]=g):g=e[22];let h;e[23]!==g||e[24]!==f?(h=s.jsxs(pe,{className:"gap-0 divide-y divide-border overflow-hidden p-0",children:[f,g]}),e[23]=g,e[24]=f,e[25]=h):h=e[25];let C;e[26]!==n?(C=n("settings.connectClients.skillNeedsBun"),e[26]=n,e[27]=C):C=e[27];let y;e[28]!==C?(y=s.jsx("a",{href:"https://bun.com",target:"_blank",rel:"noreferrer",className:"text-foreground underline underline-offset-2 hover:no-underline",children:C}),e[28]=C,e[29]=y):y=e[29];let w;e[30]!==n?(w=n("settings.connectClients.skillLoginHint"),e[30]=n,e[31]=w):w=e[31];let N;e[32]!==y||e[33]!==w?(N=s.jsxs("p",{className:"px-4 text-xs leading-snug text-muted-foreground",children:[y," ",w]}),e[32]=y,e[33]=w,e[34]=N):N=e[34];let K;return e[35]!==h||e[36]!==N||e[37]!==a?(K=s.jsxs("div",{className:"flex flex-col gap-3",children:[a,h,N]}),e[35]=h,e[36]=N,e[37]=a,e[38]=K):K=e[38],K}function st(){const t=k.c(74),e=_(),{org:i}=ve();let o;t[0]!==i.slug?(o=Ve(i.slug),t[0]=i.slug,t[1]=o):o=t[1];const n=o,r=Be(),{granted:l}=Ne("api-keys:manage");let a;t[2]!==l?(a={enabled:l},t[2]=l,t[3]=a):a=t[3];const{data:c,dataUpdatedAt:d}=He(a),[u,m]=J.useState("oauth");let f;t[4]===Symbol.for("react.memo_cache_sentinel")?(f={},t[4]=f):f=t[4];const[p,j]=J.useState(f);let x;t[5]!==d||t[6]!==p||t[7]!==i.id||t[8]!==c?(x=v=>{const b=p[v];return!b||b.orgId!==i.id?null:!c||d<b.at||c.some($=>$.id===b.id)?b.key:null},t[5]=d,t[6]=p,t[7]=i.id,t[8]=c,t[9]=x):x=t[9];const g=x,[h,C]=J.useState("skill"),[y,w]=J.useState("claude-code");let N;t[10]===Symbol.for("react.memo_cache_sentinel")?(N=v=>{const b=X.find($=>$.id===v);b&&w(b.id)},t[10]=N):N=t[10];const K=N;let A;t[11]!==r||t[12]!==i.id||t[13]!==e?(A=v=>{const b=`${ue}${je(v)} on ${Xe()}`;r.mutate({name:b,permissions:{"*":["*"]}},{onSuccess:$=>{j(ne=>({...ne,[v]:{id:$.id,key:$.key,at:Date.now(),orgId:i.id}})),fe.success(e("settings.connectClients.keyCreated"))},onError:nt})},t[11]=r,t[12]=i.id,t[13]=e,t[14]=A):A=t[14];const S=A;let I;t[15]!==e?(I=e("settings.connectClients.skillTitle"),t[15]=e,t[16]=I):I=t[16];let Y;t[17]===Symbol.for("react.memo_cache_sentinel")?(Y=v=>{(v==="skill"||v==="mcp")&&C(v)},t[17]=Y):Y=t[17];let z;t[18]!==e?(z=e("settings.connectClients.skillTab"),t[18]=e,t[19]=z):z=t[19];let T;t[20]!==e?(T=e("settings.connectClients.recommended"),t[20]=e,t[21]=T):T=t[21];let L;t[22]!==T?(L=s.jsx(Ke,{variant:"muted",children:T}),t[22]=T,t[23]=L):L=t[23];let O;t[24]!==L||t[25]!==z?(O=s.jsxs(oe,{value:"skill",className:"gap-2",children:[z,L]}),t[24]=L,t[25]=z,t[26]=O):O=t[26];let Z;t[27]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsx(oe,{value:"mcp",children:"MCP"}),t[27]=Z):Z=t[27];let D;t[28]!==O?(D=s.jsx("div",{className:"px-4",children:s.jsxs(xe,{children:[O,Z]})}),t[28]=O,t[29]=D):D=t[29];let M;t[30]!==y?(M=s.jsx(se,{value:"skill",children:s.jsx(tt,{client:y,onClientChange:K})}),t[30]=y,t[31]=M):M=t[31];let E;t[32]!==e?(E=e("settings.connectClients.mcpDescription"),t[32]=e,t[33]=E):E=t[33];let B;t[34]!==E?(B=s.jsx("p",{className:"px-4 text-sm leading-snug text-muted-foreground",children:E}),t[34]=E,t[35]=B):B=t[35];let Q;t[36]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(ye,{}),t[36]=Q):Q=t[36];let H;t[37]!==u?(H=s.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 px-3 py-1",children:[Q,s.jsx(Qe,{mode:u,onModeChange:m})]}),t[37]=u,t[38]=H):H=t[38];let P;t[39]!==l||t[40]!==r||t[41]!==S||t[42]!==g||t[43]!==u||t[44]!==n?(P=X.map(v=>{const{id:b,label:$}=v;return s.jsx(se,{value:b,className:"p-2",children:s.jsx(et,{client:b,url:n,mode:u,newKey:g(b),canManageKeys:l,onGenerate:()=>S(b),isGenerating:r.isPending&&r.variables?.name?.startsWith(`${ue}${$}`)===!0,onClearNewKey:()=>j(ne=>{const re={...ne};return delete re[b],re})})},b)}),t[39]=l,t[40]=r,t[41]=S,t[42]=g,t[43]=u,t[44]=n,t[45]=P):P=t[45];let G;t[46]!==y||t[47]!==H||t[48]!==P?(G=s.jsx(pe,{className:"gap-0 overflow-hidden p-0",children:s.jsxs(ae,{value:y,onValueChange:K,variant:"underline",className:"gap-0",children:[H,P]})}),t[46]=y,t[47]=H,t[48]=P,t[49]=G):G=t[49];let R;t[50]!==u||t[51]!==e?(R=e(u==="oauth"?"settings.connectClients.oauthKeyHint":"settings.connectClients.headlessKeyHint"),t[50]=u,t[51]=e,t[52]=R):R=t[52];let V;t[53]!==R?(V=s.jsx("p",{className:"text-xs leading-snug text-muted-foreground",children:R}),t[53]=R,t[54]=V):V=t[54];let U;t[55]!==y||t[56]!==e?(U=y==="raw"&&s.jsx("p",{className:"text-xs leading-snug text-muted-foreground",children:e("settings.connectClients.anyOtherClientDescription")}),t[55]=y,t[56]=e,t[57]=U):U=t[57];let W;t[58]!==B||t[59]!==G||t[60]!==V||t[61]!==U?(W=s.jsxs(se,{value:"mcp",className:"flex flex-col gap-3",children:[B,G,V,U]}),t[58]=B,t[59]=G,t[60]=V,t[61]=U,t[62]=W):W=t[62];let F;t[63]!==D||t[64]!==M||t[65]!==W||t[66]!==h?(F=s.jsxs(ae,{value:h,onValueChange:Y,className:"gap-3",children:[D,M,W]}),t[63]=D,t[64]=M,t[65]=W,t[66]=h,t[67]=F):F=t[67];let q;t[68]!==F||t[69]!==I?(q=s.jsx(we,{title:I,children:F}),t[68]=F,t[69]=I,t[70]=q):q=t[70];let ee;t[71]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(Ge,{capability:"api-keys:manage",area:"api-keys",children:s.jsx(Pe,{})}),t[71]=ee):ee=t[71];let te;return t[72]!==q?(te=s.jsxs(s.Fragment,{children:[q,ee]}),t[72]=q,t[73]=te):te=t[73],te}function nt(t){return fe.error(t.message)}function lt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(be,{group:"connect",children:s.jsx(st,{})}),t[0]=e):e=t[0],e}function It(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(lt,{}),t[0]=e):e=t[0],e}export{It as default};
|
|
8
|
+
Authorization: Bearer ${n}`}}function We(t){const e=w.c(8),{client:i,mode:o,url:n,apiKey:r}=t;let l;e[0]!==r||e[1]!==i||e[2]!==o||e[3]!==n?(l=Ue({client:i,mode:o,url:n,apiKey:r}),e[0]=r,e[1]=i,e[2]=o,e[3]=n,e[4]=l):l=e[4];const a=l,c=a.pathHint??a.language;let d;return e[5]!==a.code||e[6]!==c?(d=s.jsx(ce,{label:c,code:a.code}),e[5]=a.code,e[6]=c,e[7]=d):d=e[7],d}function ce(t){const e=w.c(27),{label:i,code:o}=t,n=_(),{handleCopy:r,copied:l}=ge(),a=J.useId(),c=J.useId();let d;e[0]!==o||e[1]!==r?(d=()=>r(o),e[0]=o,e[1]=r,e[2]=d):d=e[2];const u=`${a} ${c}`;let m;e[3]!==n?(m=n("settings.connectClients.copy"),e[3]=n,e[4]=m):m=e[4];let f;e[5]!==a||e[6]!==m?(f=s.jsx("span",{id:a,className:"sr-only",children:m}),e[5]=a,e[6]=m,e[7]=f):f=e[7];let p;e[8]!==i?(p=s.jsx("span",{className:"min-w-0 truncate font-mono text-2xs leading-none text-muted-foreground",children:i}),e[8]=i,e[9]=p):p=e[9];const j=l?"text-success":"group-hover:border-foreground/30 group-hover:text-foreground";let x;e[10]!==j?(x=Ce("flex size-6 shrink-0 items-center justify-center self-start rounded-md border border-border text-muted-foreground transition-colors",j),e[10]=j,e[11]=x):x=e[11];let g;e[12]!==l?(g=l?s.jsx(me,{size:13}):s.jsx(he,{size:13}),e[12]=l,e[13]=g):g=e[13];let h;e[14]!==x||e[15]!==g?(h=s.jsx("span",{"aria-hidden":"true",className:x,children:g}),e[14]=x,e[15]=g,e[16]=h):h=e[16];let C;e[17]!==o||e[18]!==c?(C=s.jsx("pre",{className:"overflow-x-auto pt-2 font-mono text-xs leading-relaxed",children:s.jsx("code",{id:c,children:o})}),e[17]=o,e[18]=c,e[19]=C):C=e[19];let y;return e[20]!==d||e[21]!==C||e[22]!==u||e[23]!==f||e[24]!==p||e[25]!==h?(y=s.jsxs("button",{type:"button",onClick:d,"aria-labelledby":u,className:"group relative grid w-full cursor-pointer grid-cols-[minmax(0,1fr)_auto] items-start gap-x-3 rounded-lg p-3 text-left transition-colors hover:bg-accent focus-ring",children:[f,p,h,C]}),e[20]=d,e[21]=C,e[22]=u,e[23]=f,e[24]=p,e[25]=h,e[26]=y):y=e[26],y}const Fe="https://studio.decocms.com",le="npx skills add decocms/studio --skill decocms-studio -g";function qe(t){switch(t){case"claude-code":return["claude plugin marketplace add decocms/studio","claude plugin install decocms-studio@decocms"].join(`
|
|
9
|
+
`);case"cursor":return`${le} -a cursor`;case"codex":return`${le} -a codex`;case"raw":return le}}function Je(t){return t===Fe?"bunx decocms@latest auth login":`bunx decocms@latest auth login --target ${t}`}const ue="Connect: ",X=[{id:"claude-code",label:"Claude",Icon:De},{id:"cursor",label:"Cursor",Icon:Me},{id:"codex",label:"Codex",Icon:Ee},{id:"raw",label:"Other client",labelKey:"settings.connectClients.otherClient",Icon:Oe}];function je(t){return X.find(e=>e.id===t)?.label??t}function Xe(){return typeof window>"u"?"unknown":window.location.hostname}function Ye(t){const e=w.c(11),{text:i}=t,o=_(),{handleCopy:n,copied:r}=ge();let l;e[0]!==n||e[1]!==i?(l=()=>n(i),e[0]=n,e[1]=i,e[2]=l):l=e[2];let a;e[3]!==o?(a=o("settings.connectClients.copy"),e[3]=o,e[4]=a):a=e[4];let c;e[5]!==r?(c=r?s.jsx(me,{size:14}):s.jsx(he,{size:14}),e[5]=r,e[6]=c):c=e[6];let d;return e[7]!==l||e[8]!==a||e[9]!==c?(d=s.jsx(ie,{variant:"ghost",size:"icon-sm",className:"shrink-0",onClick:l,"aria-label":a,children:c}),e[7]=l,e[8]=a,e[9]=c,e[10]=d):d=e[10],d}function Qe(t){const e=w.c(17),{url:i}=t,o=_(),n=`${i}/.well-known/oauth-protected-resource`;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Se,{size:12,className:"shrink-0 transition-transform group-open:rotate-90"}),e[0]=r):r=e[0];let l;e[1]!==o?(l=o("settings.connectClients.oauthDiscoveryDetails"),e[1]=o,e[2]=l):l=e[2];let a;e[3]!==l?(a=s.jsxs("summary",{className:"flex cursor-pointer list-none items-center gap-1.5 transition-colors hover:text-foreground [&::-webkit-details-marker]:hidden",children:[r,l]}),e[3]=l,e[4]=a):a=e[4];let c;e[5]!==o?(c=o("settings.connectClients.oauthMetadataHint"),e[5]=o,e[6]=c):c=e[6];let d;e[7]!==c?(d=s.jsx("p",{children:c}),e[7]=c,e[8]=d):d=e[8];let u;e[9]!==n?(u=s.jsxs("div",{className:"flex items-center gap-2 rounded-lg border border-border bg-background px-3 py-1.5",children:[s.jsx("code",{className:"flex-1 truncate font-mono text-2xs",children:n}),s.jsx(Ye,{text:n})]}),e[9]=n,e[10]=u):u=e[10];let m;e[11]!==d||e[12]!==u?(m=s.jsxs("div",{className:"mt-2 space-y-1 pl-[18px]",children:[d,u]}),e[11]=d,e[12]=u,e[13]=m):m=e[13];let f;return e[14]!==a||e[15]!==m?(f=s.jsxs("details",{className:"group text-xs text-muted-foreground",children:[a,m]}),e[14]=a,e[15]=m,e[16]=f):f=e[16],f}function Ze(t){const e=w.c(23),{mode:i,onModeChange:o}=t,n=_();let r;e[0]!==o?(r=x=>{(x==="oauth"||x==="api-key")&&o(x)},e[0]=o,e[1]=r):r=e[1];let l;e[2]!==n?(l=n("settings.connectClients.installMethod"),e[2]=n,e[3]=l):l=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Ae,{}),e[4]=a):a=e[4];let c;e[5]!==l?(c=s.jsx(Ie,{size:"sm","aria-label":l,children:a}),e[5]=l,e[6]=c):c=e[6];let d;e[7]!==n?(d=n("settings.connectClients.oauthOption"),e[7]=n,e[8]=d):d=e[8];let u;e[9]!==d?(u=s.jsx(de,{value:"oauth",className:"text-xs",children:d}),e[9]=d,e[10]=u):u=e[10];let m;e[11]!==n?(m=n("settings.connectClients.apiKeyOption"),e[11]=n,e[12]=m):m=e[12];let f;e[13]!==m?(f=s.jsx(de,{value:"api-key",className:"text-xs",children:m}),e[13]=m,e[14]=f):f=e[14];let p;e[15]!==u||e[16]!==f?(p=s.jsxs(ze,{children:[u,f]}),e[15]=u,e[16]=f,e[17]=p):p=e[17];let j;return e[18]!==i||e[19]!==r||e[20]!==c||e[21]!==p?(j=s.jsxs(Te,{value:i,onValueChange:r,children:[c,p]}),e[18]=i,e[19]=r,e[20]=c,e[21]=p,e[22]=j):j=e[22],j}function et(t){const e=w.c(26),{client:i,url:o,mode:n,newKey:r,canManageKeys:l,onGenerate:a,isGenerating:c,onClearNewKey:d}=t,u=_(),m=n==="api-key"&&r!==null,f=i==="raw";let p;e[0]!==m||e[1]!==u?(p=m&&s.jsxs($e,{variant:"warning",className:"text-xs",children:[s.jsx(we,{}),s.jsx(_e,{children:u("settings.connectClients.snippetOneTimeWarning")})]}),e[0]=m,e[1]=u,e[2]=p):p=e[2];const j=m&&r?r:void 0;let x;e[3]!==i||e[4]!==n||e[5]!==j||e[6]!==o?(x=s.jsx(We,{client:i,mode:n,url:o,apiKey:j}),e[3]=i,e[4]=n,e[5]=j,e[6]=o,e[7]=x):x=e[7];let g;e[8]!==f||e[9]!==o?(g=f&&s.jsx(Qe,{url:o}),e[8]=f,e[9]=o,e[10]=g):g=e[10];let h;e[11]!==l||e[12]!==i||e[13]!==c||e[14]!==f||e[15]!==n||e[16]!==d||e[17]!==a||e[18]!==m||e[19]!==u?(h=n==="api-key"&&l&&s.jsx("div",{children:m?s.jsx(ie,{variant:"ghost",size:"sm",onClick:d,children:u("settings.connectClients.doneHideKey")}):s.jsxs(ie,{size:"sm",onClick:a,disabled:c,className:"gap-1.5",children:[s.jsx(Le,{size:14}),c?u("settings.connectClients.generatingKey"):f?u("settings.connectClients.generateKey"):u("settings.connectClients.generateKeyFor",{client:je(i)})]})}),e[11]=l,e[12]=i,e[13]=c,e[14]=f,e[15]=n,e[16]=d,e[17]=a,e[18]=m,e[19]=u,e[20]=h):h=e[20];let C;return e[21]!==p||e[22]!==x||e[23]!==g||e[24]!==h?(C=s.jsxs("div",{className:"flex flex-col gap-3",children:[p,x,g,h]}),e[21]=p,e[22]=x,e[23]=g,e[24]=h,e[25]=C):C=e[25],C}function ye(){const t=w.c(4),e=_();let i;t[0]!==e?(i=X.map(n=>{const{id:r,label:l,labelKey:a,Icon:c}=n;return s.jsxs(oe,{value:r,variant:"underline",className:"gap-2",children:[s.jsx(c,{size:16}),a?e(a):l]},r)}),t[0]=e,t[1]=i):i=t[1];let o;return t[2]!==i?(o=s.jsx(xe,{variant:"underline",className:"h-10 min-w-0 flex-1 gap-1 overflow-x-auto border-b-0",children:i}),t[2]=i,t[3]=o):o=t[3],o}function tt(t){const e=w.c(39),{client:i,onClientChange:o}=t,n=_(),r=typeof window>"u"?"":window.location.origin;let l;e[0]!==n?(l=n("settings.connectClients.skillDescription"),e[0]=n,e[1]=l):l=e[1];let a;e[2]!==l?(a=s.jsx("p",{className:"px-4 text-sm leading-snug text-muted-foreground",children:l}),e[2]=l,e[3]=a):a=e[3];let c;e[4]!==n?(c=n("settings.connectClients.skillInstallStep"),e[4]=n,e[5]=c):c=e[5];let d;e[6]!==c?(d=s.jsx("h3",{className:"px-5 pt-4 text-sm font-medium",children:c}),e[6]=c,e[7]=d):d=e[7];let u;e[8]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("div",{className:"flex px-3 py-1",children:s.jsx(ye,{})}),e[8]=u):u=e[8];let m;e[9]!==n?(m=X.map(A=>{const{id:S}=A;return s.jsxs(se,{value:S,className:"flex flex-col p-2",children:[s.jsx(ce,{label:"bash",code:qe(S)}),S==="raw"&&s.jsx("p",{className:"px-3 pb-2 text-xs leading-snug text-muted-foreground",children:n("settings.connectClients.skillOtherAgentsHint")})]},S)}),e[9]=n,e[10]=m):m=e[10];let f;e[11]!==i||e[12]!==o||e[13]!==d||e[14]!==m?(f=s.jsxs(ae,{value:i,onValueChange:o,variant:"underline",className:"gap-0",children:[d,u,m]}),e[11]=i,e[12]=o,e[13]=d,e[14]=m,e[15]=f):f=e[15];let p;e[16]!==n?(p=n("settings.connectClients.skillLoginStep"),e[16]=n,e[17]=p):p=e[17];let j;e[18]!==p?(j=s.jsx("h3",{className:"px-3 pt-2 text-sm font-medium",children:p}),e[18]=p,e[19]=j):j=e[19];let x;e[20]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(ce,{label:"bash",code:Je(r)}),e[20]=x):x=e[20];let g;e[21]!==j?(g=s.jsxs("div",{className:"flex flex-col gap-1 p-2",children:[j,x]}),e[21]=j,e[22]=g):g=e[22];let h;e[23]!==g||e[24]!==f?(h=s.jsxs(pe,{className:"gap-0 divide-y divide-border overflow-hidden p-0",children:[f,g]}),e[23]=g,e[24]=f,e[25]=h):h=e[25];let C;e[26]!==n?(C=n("settings.connectClients.skillNeedsBun"),e[26]=n,e[27]=C):C=e[27];let y;e[28]!==C?(y=s.jsx("a",{href:"https://bun.com",target:"_blank",rel:"noreferrer",className:"text-foreground underline underline-offset-2 hover:no-underline",children:C}),e[28]=C,e[29]=y):y=e[29];let k;e[30]!==n?(k=n("settings.connectClients.skillLoginHint"),e[30]=n,e[31]=k):k=e[31];let N;e[32]!==y||e[33]!==k?(N=s.jsxs("p",{className:"px-4 text-xs leading-snug text-muted-foreground",children:[y," ",k]}),e[32]=y,e[33]=k,e[34]=N):N=e[34];let K;return e[35]!==h||e[36]!==N||e[37]!==a?(K=s.jsxs("div",{className:"flex flex-col gap-3",children:[a,h,N]}),e[35]=h,e[36]=N,e[37]=a,e[38]=K):K=e[38],K}function st(){const t=w.c(74),e=_(),{org:i}=ve();let o;t[0]!==i.slug?(o=Ve(i.slug),t[0]=i.slug,t[1]=o):o=t[1];const n=o,r=Be(),{granted:l}=Ne("api-keys:manage");let a;t[2]!==l?(a={enabled:l},t[2]=l,t[3]=a):a=t[3];const{data:c,dataUpdatedAt:d}=He(a),[u,m]=J.useState("oauth");let f;t[4]===Symbol.for("react.memo_cache_sentinel")?(f={},t[4]=f):f=t[4];const[p,j]=J.useState(f);let x;t[5]!==d||t[6]!==p||t[7]!==i.id||t[8]!==c?(x=v=>{const b=p[v];return!b||b.orgId!==i.id?null:!c||d<b.at||c.some($=>$.id===b.id)?b.key:null},t[5]=d,t[6]=p,t[7]=i.id,t[8]=c,t[9]=x):x=t[9];const g=x,[h,C]=J.useState("skill"),[y,k]=J.useState("claude-code");let N;t[10]===Symbol.for("react.memo_cache_sentinel")?(N=v=>{const b=X.find($=>$.id===v);b&&k(b.id)},t[10]=N):N=t[10];const K=N;let A;t[11]!==r||t[12]!==i.id||t[13]!==e?(A=v=>{const b=`${ue}${je(v)} on ${Xe()}`;r.mutate({name:b,permissions:{"*":["*"]}},{onSuccess:$=>{j(ne=>({...ne,[v]:{id:$.id,key:$.key,at:Date.now(),orgId:i.id}})),fe.success(e("settings.connectClients.keyCreated"))},onError:nt})},t[11]=r,t[12]=i.id,t[13]=e,t[14]=A):A=t[14];const S=A;let I;t[15]!==e?(I=e("settings.connectClients.skillTitle"),t[15]=e,t[16]=I):I=t[16];let Y;t[17]===Symbol.for("react.memo_cache_sentinel")?(Y=v=>{(v==="skill"||v==="mcp")&&C(v)},t[17]=Y):Y=t[17];let z;t[18]!==e?(z=e("settings.connectClients.skillTab"),t[18]=e,t[19]=z):z=t[19];let T;t[20]!==e?(T=e("settings.connectClients.recommended"),t[20]=e,t[21]=T):T=t[21];let L;t[22]!==T?(L=s.jsx(Ke,{variant:"muted",children:T}),t[22]=T,t[23]=L):L=t[23];let O;t[24]!==L||t[25]!==z?(O=s.jsxs(oe,{value:"skill",className:"gap-2",children:[z,L]}),t[24]=L,t[25]=z,t[26]=O):O=t[26];let Q;t[27]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(oe,{value:"mcp",children:"MCP"}),t[27]=Q):Q=t[27];let D;t[28]!==O?(D=s.jsx("div",{className:"px-4",children:s.jsxs(xe,{children:[O,Q]})}),t[28]=O,t[29]=D):D=t[29];let M;t[30]!==y?(M=s.jsx(se,{value:"skill",children:s.jsx(tt,{client:y,onClientChange:K})}),t[30]=y,t[31]=M):M=t[31];let E;t[32]!==e?(E=e("settings.connectClients.mcpDescription"),t[32]=e,t[33]=E):E=t[33];let B;t[34]!==E?(B=s.jsx("p",{className:"px-4 text-sm leading-snug text-muted-foreground",children:E}),t[34]=E,t[35]=B):B=t[35];let Z;t[36]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsx(ye,{}),t[36]=Z):Z=t[36];let H;t[37]!==u?(H=s.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 px-3 py-1",children:[Z,s.jsx(Ze,{mode:u,onModeChange:m})]}),t[37]=u,t[38]=H):H=t[38];let P;t[39]!==l||t[40]!==r||t[41]!==S||t[42]!==g||t[43]!==u||t[44]!==n?(P=X.map(v=>{const{id:b,label:$}=v;return s.jsx(se,{value:b,className:"p-2",children:s.jsx(et,{client:b,url:n,mode:u,newKey:g(b),canManageKeys:l,onGenerate:()=>S(b),isGenerating:r.isPending&&r.variables?.name?.startsWith(`${ue}${$}`)===!0,onClearNewKey:()=>j(ne=>{const re={...ne};return delete re[b],re})})},b)}),t[39]=l,t[40]=r,t[41]=S,t[42]=g,t[43]=u,t[44]=n,t[45]=P):P=t[45];let G;t[46]!==y||t[47]!==H||t[48]!==P?(G=s.jsx(pe,{className:"gap-0 overflow-hidden p-0",children:s.jsxs(ae,{value:y,onValueChange:K,variant:"underline",className:"gap-0",children:[H,P]})}),t[46]=y,t[47]=H,t[48]=P,t[49]=G):G=t[49];let R;t[50]!==u||t[51]!==e?(R=e(u==="oauth"?"settings.connectClients.oauthKeyHint":"settings.connectClients.headlessKeyHint"),t[50]=u,t[51]=e,t[52]=R):R=t[52];let V;t[53]!==R?(V=s.jsx("p",{className:"text-xs leading-snug text-muted-foreground",children:R}),t[53]=R,t[54]=V):V=t[54];let U;t[55]!==y||t[56]!==e?(U=y==="raw"&&s.jsx("p",{className:"text-xs leading-snug text-muted-foreground",children:e("settings.connectClients.anyOtherClientDescription")}),t[55]=y,t[56]=e,t[57]=U):U=t[57];let W;t[58]!==B||t[59]!==G||t[60]!==V||t[61]!==U?(W=s.jsxs(se,{value:"mcp",className:"flex flex-col gap-3",children:[B,G,V,U]}),t[58]=B,t[59]=G,t[60]=V,t[61]=U,t[62]=W):W=t[62];let F;t[63]!==D||t[64]!==M||t[65]!==W||t[66]!==h?(F=s.jsxs(ae,{value:h,onValueChange:Y,className:"gap-3",children:[D,M,W]}),t[63]=D,t[64]=M,t[65]=W,t[66]=h,t[67]=F):F=t[67];let q;t[68]!==F||t[69]!==I?(q=s.jsx(ke,{title:I,children:F}),t[68]=F,t[69]=I,t[70]=q):q=t[70];let ee;t[71]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(Ge,{capability:"api-keys:manage",area:"api-keys",children:s.jsx(Pe,{})}),t[71]=ee):ee=t[71];let te;return t[72]!==q?(te=s.jsxs(s.Fragment,{children:[q,ee]}),t[72]=q,t[73]=te):te=t[73],te}function nt(t){return fe.error(t.message)}function lt(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(be,{group:"connect",children:s.jsx(st,{})}),t[0]=e):e=t[0],e}function It(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(lt,{}),t[0]=e):e=t[0],e}export{It as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,b as N,j as s,ad as w,
|
|
1
|
+
import{c as v,b as N,j as s,ad as w,aU as k,av as y,B as z}from"./index-ifZGovK1.js";import{b3 as _,aD as C}from"./agent-icon--EtIPqub.js";const S="https://decoims.com/image?src=decocms%2F06b54678-5335-4671-b63a-e13d9e541155%2Fagataesteves.png&quality=original&fit=cover&width=160&height=160";function $(){const t=v.c(13),e=N();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("img",{src:"/logos/summit/monte-carlo.svg",alt:"Monte Carlo",className:"h-14 w-[112px] shrink-0 self-start object-contain object-left brightness-0 invert"}),t[0]=l):l=t[0];let n;t[1]!==e?(n=e("routes.reportsOnboarding.connectModal.quote"),t[1]=e,t[2]=n):n=t[2];let o;t[3]!==n?(o=s.jsxs("blockquote",{className:"text-lg font-medium leading-[1.45] lg:text-xl",children:["“",n,"”"]}),t[3]=n,t[4]=o):o=t[4];let c;t[5]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("img",{src:S,alt:"",className:"size-10 shrink-0 rounded-full object-cover",loading:"lazy"}),t[5]=c):c=t[5];let r;t[6]!==e?(r=e("routes.reportsOnboarding.connectModal.quoteAuthor"),t[6]=e,t[7]=r):r=t[7];let i;t[8]!==r?(i=s.jsxs("figcaption",{className:"flex items-center gap-2.5",children:[c,s.jsx("span",{className:"text-base font-medium",children:r})]}),t[8]=r,t[9]=i):i=t[9];let a;return t[10]!==o||t[11]!==i?(a=s.jsxs("div",{className:"relative flex flex-col gap-8 text-white",children:[l,o,i]}),t[10]=o,t[11]=i,t[12]=a):a=t[12],a}function M(){const t=v.c(19),e=N();let l;t[0]!==e?(l=e("routes.reportsOnboarding.connectModal.trustRevoke"),t[0]=e,t[1]=l):l=t[1];let n;t[2]!==l?(n={Icon:_,label:l},t[2]=l,t[3]=n):n=t[3];let o;t[4]!==e?(o=e("routes.reportsOnboarding.connectModal.trustEncrypted"),t[4]=e,t[5]=o):o=t[5];let c;t[6]!==o?(c={Icon:w,label:o},t[6]=o,t[7]=c):c=t[7];let r;t[8]!==e?(r=e("routes.reportsOnboarding.connectModal.trustNeverSold"),t[8]=e,t[9]=r):r=t[9];let i;t[10]!==r?(i={Icon:C,label:r},t[10]=r,t[11]=i):i=t[11];let a;t[12]!==n||t[13]!==c||t[14]!==i?(a=[n,c,i],t[12]=n,t[13]=c,t[14]=i,t[15]=a):a=t[15];const m=a;let f;t[16]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"h-px w-full bg-white/15"}),t[16]=f):f=t[16];let d;return t[17]!==m?(d=s.jsxs("div",{className:"relative flex flex-col gap-2.5 text-white",children:[f,s.jsx("ul",{className:"mt-1 flex flex-col gap-2.5",children:m.map(q)})]}),t[17]=m,t[18]=d):d=t[18],d}function q(t){const{Icon:e,label:l}=t;return s.jsxs("li",{className:"flex items-center gap-2.5 text-sm leading-tight text-white/70",children:[s.jsx(e,{className:"size-4 shrink-0 opacity-85"}),l]},l)}function R(t){const e=v.c(22),{siteHost:l,footer:n,onClose:o,children:c}=t,r=N(),i=l?`https://www.google.com/s2/favicons?domain=${l}&sz=128`:null;let a;e[0]!==o||e[1]!==r?(a=o&&s.jsx("button",{type:"button",onClick:o,"aria-label":r("routes.reportsOnboarding.connectModal.close"),className:"absolute right-3 top-3 z-10 flex size-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-black/10 hover:text-foreground lg:text-white/80 lg:hover:bg-white/15 lg:hover:text-white",children:s.jsx(k,{size:18})}),e[0]=o,e[1]=r,e[2]=a):a=e[2];let m,f;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"size-7 shrink-0 dark:hidden"}),f=s.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"hidden size-7 shrink-0 dark:block"}),e[3]=m,e[4]=f):(m=e[3],f=e[4]);let d;e[5]!==i||e[6]!==l?(d=l&&s.jsxs(s.Fragment,{children:[s.jsx(y,{size:16,className:"shrink-0 text-foreground/25"}),i&&s.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center overflow-hidden rounded bg-white",children:s.jsx("img",{src:i,alt:"",className:"size-full"})}),s.jsx("span",{className:"truncate text-base leading-tight text-muted-foreground",children:l})]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let x;e[8]!==d?(x=s.jsxs("div",{className:"flex items-center gap-2",children:[m,f,d]}),e[8]=d,e[9]=x):x=e[9];let g;e[10]!==n?(g=s.jsx("div",{className:"flex shrink-0 flex-col gap-3",children:n}),e[10]=n,e[11]=g):g=e[11];let h;e[12]!==c||e[13]!==x||e[14]!==g?(h=s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 bg-background p-6 lg:p-8",children:[x,c,g]}),e[12]=c,e[13]=x,e[14]=g,e[15]=h):h=e[15];let u,b;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("img",{src:"https://decoims.com/image?src=decocms%2F8191643a-1947-4c30-afb4-36b8073c90fb%2Fbg-quote.png&quality=original&fit=cover&width=880",alt:"",className:"absolute inset-0 size-full object-cover"}),b=s.jsx("div",{className:"absolute inset-0 bg-black/20"}),e[16]=u,e[17]=b):(u=e[16],b=e[17]);let p;e[18]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("aside",{className:"relative hidden shrink-0 overflow-hidden lg:flex lg:w-[440px] lg:flex-col lg:p-14",children:[u,b,s.jsxs("div",{className:"relative z-10 flex h-full flex-col",children:[s.jsx("div",{className:"flex-1"}),s.jsx($,{}),s.jsx("div",{className:"flex-1"}),s.jsx(M,{})]})]}),e[18]=p):p=e[18];let j;return e[19]!==a||e[20]!==h?(j=s.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col lg:flex-row",children:[a,h,p]}),e[19]=a,e[20]=h,e[21]=j):j=e[21],j}function A(t){const e=v.c(5),{ready:l,pending:n,label:o,onClick:c,children:r}=t,i=n||!l,a=l&&!n?r:null;let m;return e[0]!==o||e[1]!==c||e[2]!==i||e[3]!==a?(m=s.jsxs(z,{type:"button",size:"lg",className:"h-auto min-h-12 w-full whitespace-normal py-3 text-center text-base font-medium leading-tight",onClick:c,disabled:i,children:[o,a]}),e[0]=o,e[1]=c,e[2]=i,e[3]=a,e[4]=m):m=e[4],m}export{R as C,A as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{U as b}from"./url-slug-
|
|
1
|
+
import{U as b}from"./url-slug-D37s8EDd.js";import{aF as o,bV as a,bW as t,aG as e,cZ as i,cX as r,d1 as m,dT as h,cY as _}from"./index-ifZGovK1.js";const g=o({authorizationEndpoint:e().url(),tokenEndpoint:e().url(),introspectionEndpoint:e().url().optional(),clientId:e(),clientSecret:e().optional(),scopes:t(e()),grantType:a(["authorization_code","client_credentials"])}),s=o({type:m("object"),properties:i(e(),r()).optional(),required:t(e()).optional()}).catchall(r()),f=h.extend({inputSchema:s,outputSchema:s.optional()}),S=o({headers:i(e(),e()).optional()}),T=o({command:e().describe("Command to run (e.g., 'npx', 'node')"),args:t(e()).optional().describe("Command arguments"),cwd:e().optional().describe("Working directory"),envVars:i(e(),e()).optional().describe("Environment variables (encrypted in storage)")}),l=256*1024;function d(n){return i(e(),r()).nullable().refine(c=>c===null||JSON.stringify(c).length<=l,{message:`${n} must serialize to at most ${l} bytes`})}const u=4096,p=o({id:e().describe("Unique identifier for the connection"),title:e().describe("Human-readable name for the connection"),created_at:e().describe("When the connection was created"),updated_at:e().describe("When the connection was last updated"),created_by:e().describe("User ID who created the connection"),updated_by:e().optional().describe("User ID who last updated the connection"),organization_id:e().describe("Organization ID this connection belongs to"),description:e().nullable().describe("Description of the connection"),icon:e().nullable().describe("Icon URL for the connection"),app_name:e().nullable().describe("Associated app name"),app_id:e().nullable().describe("Associated app ID"),slug:e().nullable().optional().describe("URL-safe slug derived from app_name, connection_url, or title"),url_slug:e().nullable().optional().describe("Name of the connection in Studio URLs, unique in the organization. Set it to rename the URL; the old one keeps redirecting."),connection_type:a(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:e().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:e().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:_([T,S]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:g.nullable().describe("OAuth configuration"),configuration_state:d("configuration_state").describe("Configuration state (decrypted)"),configuration_scopes:t(e()).nullable().optional().describe("Configuration scopes"),metadata:d("metadata").describe("Additional metadata (includes repository info)"),tools:t(f).nullable().describe("Discovered tools from MCP"),bindings:t(e()).nullable().describe("Detected bindings"),status:a(["active","inactive","error"]).describe("Current status")});p.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:e().nullish(),connection_token:e().max(u).nullish()});p.partial().extend({url_slug:b.nullish(),connection_token:e().max(u).nullish()});function I(n){return n!=null&&"command"in n}function O(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}export{g as O,I as i,O as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as M,a2 as S,an as $,K as F,ae as R,b as K,l as A,j as c,
|
|
1
|
+
import{c as M,a2 as S,an as $,K as F,ae as R,b as K,l as A,j as c,f0 as q}from"./index-ifZGovK1.js";import{u as O}from"./useInfiniteQuery-wCORGPw3.js";import{g as D}from"./connection-slug-CITJ0kGN.js";import{I as z}from"./integration-icon-D1aQLe0v.js";function X(t){const e=M.c(21),{org:s}=S(),o=$();let l;e[0]!==t?(l=t?.trim().split(/\s+/).filter(Boolean)??[],e[0]=t,e[1]=l):l=e[1];const r=l;let n;e[2]!==s.id||e[3]!==t?(n=F.storeDiscovery(s.id,`deco-json:${t??""}`),e[2]=s.id,e[3]=t,e[4]=n):n=e[4];let a;e[5]!==o||e[6]!==r?(a=I=>{const{pageParam:_}=I;return o.call("COLLECTION_REGISTRY_APP_LIST",{limit:24,cursor:_,where:r.length?{operator:"or",conditions:r.flatMap(B)}:void 0})},e[5]=o,e[6]=r,e[7]=a):a=e[7];let u;e[8]!==n||e[9]!==a?(u={queryKey:n,queryFn:a,initialPageParam:void 0,getNextPageParam:Y,staleTime:3e5,placeholderData:R,throwOnError:!0},e[8]=n,e[9]=a,e[10]=u):u=e[10];const i=O(u);let p;e[11]!==i.data?.pages?(p=i.data?.pages.flatMap(V)??[],e[11]=i.data?.pages,e[12]=p):p=e[12];const m=p;let d;e[13]!==i?(d=()=>{i.hasNextPage&&!i.isFetchingNextPage&&i.fetchNextPage()},e[13]=i,e[14]=d):d=e[14];let f;return e[15]!==m||e[16]!==i.hasNextPage||e[17]!==i.isFetchingNextPage||e[18]!==i.isLoading||e[19]!==d?(f={items:m,hasMore:i.hasNextPage,isLoadingMore:i.isFetchingNextPage,isInitialLoading:i.isLoading,loadMore:d},e[15]=m,e[16]=i.hasNextPage,e[17]=i.isFetchingNextPage,e[18]=i.isLoading,e[19]=d,e[20]=f):f=e[20],f}function V(t){return t.items}function Y(t){return t.nextCursor}function B(t){return[["title"],["description"],["id"],["server","name"]].map(e=>({field:e,operator:"contains",value:t}))}function Z(t){const e=new Map;for(const l of t){const r=D(l),n=e.get(r);n?n.push(l):e.set(r,[l])}const s=[],o=new Set;for(const l of t){const r=D(l);if(o.has(r))continue;o.add(r);const n=e.get(r),a=n[0];n.length===1?s.push({type:"single",connection:a}):s.push({type:"group",key:r,icon:a.icon,title:a.app_name?a.title.replace(/\s*\(\d+\)\s*$/,""):a.title,connections:n})}return s}function ee(t){const e=M.c(43),{connection:s,onClick:o,headerActions:l,headerActionsAlwaysVisible:r,footer:n,className:a,fallbackIcon:u,selected:i}=t,p=r===void 0?!1:r,m=K(),d=o&&"cursor-pointer hover:bg-accent";let f;e[0]!==a||e[1]!==d?(f=A("transition-colors group overflow-hidden flex flex-col h-full",d,a),e[0]=a,e[1]=d,e[2]=f):f=e[2];const I=o?"button":void 0,_=o?0:void 0,T=o&&i!==void 0?i:void 0;let g;e[3]!==o?(g=o?L=>{L.target===L.currentTarget&&(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),o())}:void 0,e[3]=o,e[4]=g):g=e[4];let x;e[5]!==s.icon||e[6]!==s.title||e[7]!==u?(x=c.jsx(z,{icon:s.icon,name:s.title,size:"sm",className:"shrink-0 shadow-edge",fallbackIcon:u}),e[5]=s.icon,e[6]=s.title,e[7]=u,e[8]=x):x=e[8];let h;e[9]!==l||e[10]!==p?(h=l&&c.jsx("div",{className:A("transition-opacity",!p&&"sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100"),onClick:Q,children:l}),e[9]=l,e[10]=p,e[11]=h):h=e[11];let v;e[12]!==h?(v=c.jsx("div",{className:"relative",children:h}),e[12]=h,e[13]=v):v=e[13];let N;e[14]!==v||e[15]!==x?(N=c.jsxs("div",{className:"flex items-start justify-between",children:[x,v]}),e[14]=v,e[15]=x,e[16]=N):N=e[16];let y;e[17]!==s.title?(y=c.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[17]=s.title,e[18]=y):y=e[18];let P;e[19]!==s.description||e[20]!==m?(P=s.description||m("connections.connectionCard.noDescription"),e[19]=s.description,e[20]=m,e[21]=P):P=e[21];let j;e[22]!==P?(j=c.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:P}),e[22]=P,e[23]=j):j=e[23];let C;e[24]!==y||e[25]!==j?(C=c.jsxs("div",{className:"flex flex-col gap-1",children:[y,j]}),e[24]=y,e[25]=j,e[26]=C):C=e[26];let b;e[27]!==N||e[28]!==C?(b=c.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[N,C]}),e[27]=N,e[28]=C,e[29]=b):b=e[29];let k;e[30]!==n?(k=n&&c.jsx("div",{className:"border-t border-border mt-auto",children:c.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:G,children:n})}),e[30]=n,e[31]=k):k=e[31];let w;e[32]!==b||e[33]!==k?(w=c.jsxs("div",{className:"flex flex-col flex-1",children:[b,k]}),e[32]=b,e[33]=k,e[34]=w):w=e[34];let E;return e[35]!==o||e[36]!==w||e[37]!==f||e[38]!==I||e[39]!==_||e[40]!==T||e[41]!==g?(E=c.jsx(q,{size:"flush",className:f,onClick:o,role:I,tabIndex:_,"aria-pressed":T,onKeyDown:g,children:w}),e[35]=o,e[36]=w,e[37]=f,e[38]=I,e[39]=_,e[40]=T,e[41]=g,e[42]=E):E=e[42],E}function G(t){return t.stopPropagation()}function Q(t){return t.stopPropagation()}export{ee as C,Z as g,X as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aF as be,d1 as Oe,c$ as Me,aG as de,b_ as ze,c as U,b as V,j as t,h as Ne,B,r as Q,l as Se,a2 as te,an as Ee,R as me,K as ee,d as se,x as ye,av as _e,eZ as Re,b2 as Ue,n as Fe,fJ as ue,a1 as Ve,I as J,X as Le,T as Be,V as Ge,U as xe,H as He,f as qe,fT as Ke,o as Xe,aE as Qe,aD as We,t as Y}from"./index-CaH7O3hJ.js";import{g as Ye}from"./extract-connection-data-CNLani4P.js";import{E as Ce}from"./empty-state-Bok1L2hc.js";import{E as Je,r as Ze,b as et,c as tt}from"./connection-form-helpers-ta2yIvIb.js";import{c as st,S as nt,D as it}from"./index-BWUABroT.js";import{u as we,T as ot}from"./use-mcp-auth-status-DmZSbEuf.js";import{a as at}from"./use-members-h3MYd8gX.js";import{A as lt}from"./avatar-RpIBVCkY.js";import{a as rt}from"./mcp-oauth-3Gakbc_U.js";import{I as ae}from"./integration-icon-DCiBepJw.js";import{s as ct}from"./Plus-BDveVGJf.js";import{bi as dt,aH as mt,aD as ut,u as ne}from"./agent-icon-U4gZaLOQ.js";import{a as Ie,d as xt,s as pt}from"./Tool01-BM29_KWq.js";import{s as re}from"./Trash01-D92WhXf2.js";import{b as ft,a as ht,c as gt,S as jt,d as vt}from"./sheet-C-yunzji.js";import{F as H,b as q,c as K,d as L,f as X,e as bt,a as Nt}from"./form-Dpwt-9St.js";import{a as ke,b as Te,u as St}from"./use-connection-BwU_KLSF.js";import{u as Ae}from"./use-mcp-client-MRThuZpK.js";import{u as yt}from"./use-mcp-tools-DiCKzhUm.js";import{a as _t}from"./use-mcp-prompts-DHm-ZTib.js";import{i as Ct}from"./mcp-oauth-CxgfM8zh.js";import{u as wt,D as It}from"./use-delete-connection-BQjQHz64.js";import{c as kt}from"./monitoring-stats-row-Bhxzz0Gz.js";import{b as Tt,C as At,a as Pt}from"./chart-B5vy2nis.js";import{a as Dt,B as $t}from"./BarChart-DfTtCBDv.js";import{C as Ot}from"./tooltipContext-C93Q6WFf.js";import{b as Mt}from"./repository-binding-BLgLcT4o.js";import{T as ie,a as zt,c as oe,b as Et}from"./tabs-2NCCfhSA.js";import{g as Pe}from"./connection-slug-CITJ0kGN.js";import{n as Rt}from"./ShoppingBag01-BMRnsG58.js";import{g as ce}from"./types-Bt5yyj-z.js";import{M as Ut}from"./mcp-app-renderer-Xaw0krD3.js";import{C as Ft}from"./collection-search-gW4FCqmq.js";import{B as Vt}from"./badge-Cnnepvq1.js";import{S as pe,b as fe,a as he,d as ge,c as G}from"./select-CSQbGY9x.js";import{i as Lt}from"./CheckCircle-C2ndOEUO.js";import{t as Bt}from"./ChevronUp-C8mqlnDX.js";import{n as Gt}from"./LinkBroken01-BJx0R97x.js";import{d as Ht}from"./UserSquare-Drp4z0v0.js";import{s as qt}from"./XClose-dOW_RI9u.js";import{p as Kt,i as Xt}from"./connection-Dik4epzq.js";import{c as Qt}from"./schema-Cx9ZLa-H.js";import"./metadata-D72DunRR.js";import"./Key01-u4HXXUPa.js";import"./auth-hgpoCSIS.js";import"./index-Cd_jqW-G.js";import"./index-DPulqOQn.js";import"./index-BdQq_4o_.js";import"./index-DK4LlU65.js";import"./popover-DSRFfUdL.js";import"./tooltip-B5RmO6BW.js";import"./index-C9OgV5Vt.js";import"./SearchMd-Cuf45jFP.js";import"./use-mobile-DCpa1RnA.js";import"./use-create-virtual-mcp-OUIvni0u.js";import"./use-navigate-to-agent-Bt0oZ-ou.js";import"./thread-intent-DKuqiaG7.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DwBbAQ97.js";import"./task-board-DRNr9Dsj.js";import"./schema-BdFq22Hl.js";import"./slugify-CEUa2lfQ.js";import"./Image01-D7F4wuKx.js";import"./use-org-auth-client-CL0a2tPL.js";import"./User01-Cn3JqTjv.js";import"./AlertCircle-Ctbquk5a.js";import"./ArrowUp-bYg1aEOe.js";import"./ArrowLeft-DZ0mAFgb.js";import"./ZoomOut-BfQx-fBr.js";import"./Building02-BHIVlbfK.js";import"./ChevronSelectorVertical-DaUdbCWk.js";import"./Copy01-DC8f0fwU.js";import"./CreditCard01-P7j8oDkg.js";import"./DotsVertical-BvwGTDkC.js";import"./Globe04-D6C-ihBU.js";import"./SwitchHorizontal01-CshMTQzi.js";import"./Link01-BoUupQbW.js";import"./Minus-C1PMcNV0.js";import"./Monitor01-D3VwU2ni.js";import"./Sun-sKGpeIhM.js";import"./Play-DxsFk4r2.js";import"./Upload01-BSDy4f7m.js";import"./Users01-Cxbx87gg.js";import"./label-Cnc4HQwP.js";import"./alert-dialog-CKDHmJ-l.js";import"./CartesianChart-uNdbRuTj.js";import"./CategoricalChart-CRSSpo7X.js";import"./AreaChart-C_4ebEom.js";import"./symbol-B8wQ7lKk.js";import"./ActiveShapeUtils-DV40gvcg.js";import"./Sector-D2xOkxuc.js";import"./ErrorBarContext-KwnilJkg.js";import"./active-indicator-CCMhAsc_.js";import"./url-slug-B41xLFy_.js";const Wt=be({scopes:ze(de()).describe("List of scopes available"),stateSchema:Oe(de(),Me()).describe("JSON Schema (draft-07) defining the state structure")}),Yt=[{name:"MCP_CONFIGURATION",inputSchema:be({}),outputSchema:Wt}];function Jt(s){const e=U.c(61),{instance:n,onConfigure:c,onAuthenticate:o,onDelete:i,onToggleStatus:l}=s,a=V();let r;e[0]!==n.id?(r={connectionId:n.id},e[0]=n.id,e[1]=r):r=e[1];const d=we(r),x=!(n.connection_type==="VIRTUAL")&&d.supportsOAuth&&!d.isAuthenticated,f=n.status!=="active",m=x||f?"border-destructive/50 bg-destructive/5":"border-transparent";let h;e[2]!==m?(h=Se("flex items-center gap-3 rounded-lg border px-4 py-2.5 transition-colors",m),e[2]=m,e[3]=h):h=e[3];let g;e[4]!==n.icon||e[5]!==n.title?(g=t.jsx(ae,{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 N;e[9]!==n.status||e[10]!==f||e[11]!==x||e[12]!==a?(N=x?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]=x,e[12]=a,e[13]=N):N=e[13];let _;e[14]!==j||e[15]!==N?(_=t.jsxs("div",{className:"flex-1 min-w-0",children:[j,N]}),e[14]=j,e[15]=N,e[16]=_):_=e[16];let y;e[17]!==n||e[18]!==x||e[19]!==o||e[20]!==a?(y=x&&t.jsx(B,{variant:"outline",size:"sm",onClick:()=>o(n),children:a("details.connectionInstancesPanel.authorize")}),e[17]=n,e[18]=x,e[19]=o,e[20]=a,e[21]=y):y=e[21];let C;e[22]!==n||e[23]!==f||e[24]!==l||e[25]!==a?(C=f?t.jsxs(B,{variant:"outline",size:"sm",className:"gap-1.5",onClick:()=>l(n,"active"),children:[t.jsx(dt,{size:13}),a("details.connectionInstancesPanel.enable")]}):t.jsx(B,{variant:"ghost",size:"icon-sm",className:"text-muted-foreground",onClick:()=>l(n,"inactive"),title:a("details.connectionInstancesPanel.disable"),"aria-label":a("details.connectionInstancesPanel.disable"),children:t.jsx(mt,{size:13})}),e[22]=n,e[23]=f,e[24]=l,e[25]=a,e[26]=C):C=e[26];let D;e[27]!==n||e[28]!==c?(D=()=>c(n),e[27]=n,e[28]=c,e[29]=D):D=e[29];let w;e[30]!==a?(w=a("details.connectionInstancesPanel.configure"),e[30]=a,e[31]=w):w=e[31];let $;e[32]!==a?($=a("details.connectionInstancesPanel.configure"),e[32]=a,e[33]=$):$=e[33];let O;e[34]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(Ie,{size:13}),e[34]=O):O=e[34];let P;e[35]!==D||e[36]!==w||e[37]!==$?(P=t.jsx(B,{variant:"ghost",size:"icon-sm",onClick:D,title:w,"aria-label":$,children:O}),e[35]=D,e[36]=w,e[37]=$,e[38]=P):P=e[38];let T;e[39]!==n||e[40]!==i?(T=()=>i(n),e[39]=n,e[40]=i,e[41]=T):T=e[41];let S;e[42]!==a?(S=a("details.connectionInstancesPanel.delete"),e[42]=a,e[43]=S):S=e[43];let v;e[44]!==a?(v=a("details.connectionInstancesPanel.delete"),e[44]=a,e[45]=v):v=e[45];let z;e[46]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx(re,{size:13}),e[46]=z):z=e[46];let E;e[47]!==T||e[48]!==S||e[49]!==v?(E=t.jsx(B,{variant:"ghost-destructive",size:"icon-sm",onClick:T,title:S,"aria-label":v,children:z}),e[47]=T,e[48]=S,e[49]=v,e[50]=E):E=e[50];let M;e[51]!==P||e[52]!==E||e[53]!==y||e[54]!==C?(M=t.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[y,C,P,E]}),e[51]=P,e[52]=E,e[53]=y,e[54]=C,e[55]=M):M=e[55];let A;return e[56]!==M||e[57]!==h||e[58]!==g||e[59]!==_?(A=t.jsxs("div",{className:h,children:[g,_,M]}),e[56]=M,e[57]=h,e[58]=g,e[59]=_,e[60]=A):A=e[60],A}function Zt(s){const e=U.c(21),{instance:n,onConfigure:c}=s,o=V();let i;e[0]!==n.icon||e[1]!==n.title?(i=t.jsx(ae,{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 l;e[3]!==n.title?(l=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]=l):l=e[4];let a;e[5]!==n||e[6]!==c?(a=()=>c(n),e[5]=n,e[6]=c,e[7]=a):a=e[7];let r;e[8]!==o?(r=o("details.connectionInstancesPanel.configure"),e[8]=o,e[9]=r):r=e[9];let d;e[10]!==o?(d=o("details.connectionInstancesPanel.configure"),e[10]=o,e[11]=d):d=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(Ie,{size:13}),e[12]=u):u=e[12];let x;e[13]!==a||e[14]!==r||e[15]!==d?(x=t.jsx("div",{className:"flex items-center gap-1 shrink-0",children:t.jsx(B,{variant:"ghost",size:"icon-sm",onClick:a,title:r,"aria-label":d,children:u})}),e[13]=a,e[14]=r,e[15]=d,e[16]=x):x=e[16];let f;return e[17]!==i||e[18]!==l||e[19]!==x?(f=t.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-transparent px-4 py-2.5 transition-colors",children:[i,l,x]}),e[17]=i,e[18]=l,e[19]=x,e[20]=f):f=e[20],f}function es(s){const e=U.c(33),{instances:n,onConfigure:c,onAuthenticate:o,onDelete:i,onToggleStatus:l,onAdd:a,isAdding:r}=s,d=V();if(n.length===0)return null;let u;e[0]!==n.length||e[1]!==d?(u=n.length===1?d("details.connectionInstancesPanel.instance"):d("details.connectionInstancesPanel.instances"),e[0]=n.length,e[1]=d,e[2]=u):u=e[2];let x;e[3]!==u?(x=t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:u}),e[3]=u,e[4]=x):x=e[4];let f;e[5]!==r?(f=r?t.jsx(Ne,{className:"size-[13px]"}):t.jsx(ct,{size:13}),e[5]=r,e[6]=f):f=e[6];let m;e[7]!==d?(m=d("details.connectionInstancesPanel.addInstance"),e[7]=d,e[8]=m):m=e[8];let h;e[9]!==r||e[10]!==a||e[11]!==f||e[12]!==m?(h=t.jsxs(B,{variant:"default",size:"sm",className:"gap-1.5",onClick:a,disabled:r,children:[f,m]}),e[9]=r,e[10]=a,e[11]=f,e[12]=m,e[13]=h):h=e[13];let g;e[14]!==x||e[15]!==h?(g=t.jsxs("div",{className:"px-5 py-4 border-b border-border flex items-center justify-between",children:[x,h]}),e[14]=x,e[15]=h,e[16]=g):g=e[16];let j;if(e[17]!==n||e[18]!==o||e[19]!==c||e[20]!==i||e[21]!==l){let y;e[23]!==o||e[24]!==c||e[25]!==i||e[26]!==l?(y=C=>t.jsx(Q.Suspense,{fallback:t.jsx(Zt,{instance:C,onConfigure:c}),children:t.jsx(Jt,{instance:C,onConfigure:c,onAuthenticate:o,onDelete:i,onToggleStatus:l})},C.id),e[23]=o,e[24]=c,e[25]=i,e[26]=l,e[27]=y):y=e[27],j=n.map(y),e[17]=n,e[18]=o,e[19]=c,e[20]=i,e[21]=l,e[22]=j}else j=e[22];let N;e[28]!==j?(N=t.jsx("div",{className:"p-2 flex flex-col gap-1",children:j}),e[28]=j,e[29]=N):N=e[29];let _;return e[30]!==g||e[31]!==N?(_=t.jsxs("div",{className:"surface overflow-hidden",children:[g,N]}),e[30]=g,e[31]=N,e[32]=_):_=e[32],_}function ts(s,e=3){const n=new Map;for(const c of s){if(!c.isError)continue;const o=(c.errorMessage??"").trim()||"Unknown error";n.set(o,(n.get(o)??0)+1)}return[...n.entries()].map(([c,o])=>({message:c,count:o})).sort((c,o)=>o.count-c.count).slice(0,e)}const ss=[{value:"7d",label:"7d"},{value:"14d",label:"14d"},{value:"30d",label:"30d"}];function ns(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 is={calls:{label:"Tool calls"},errors:{label:"Errors"}};function os(s){const e=U.c(4),{connectionId:n,orgId:c,timeframe:o}=s,i=V(),l=Ee(),a=ns(o),{data:r}=me({queryKey:ee.connectionActivity(n,o,c),queryFn:async()=>await l.call("MONITORING_LOGS_LIST",{startDate:a.startDate.toISOString(),endDate:a.endDate.toISOString(),connectionId:n,limit:2e3,offset:0}),staleTime:3e5}),{data:d}=me({queryKey:ee.connectionActivityErrors(n,o,c),queryFn:async()=>await l.call("MONITORING_LOGS_LIST",{startDate:a.startDate.toISOString(),endDate:a.endDate.toISOString(),connectionId:n,isError:!0,limit:1,offset:0}),staleTime:3e5}),u=kt(r?.logs??[],a,void 0,r?.total,d?.total),x=u.data,f=u.totalCalls>0,m=ts(r?.logs??[]),h=u.totalCalls>0?Math.round(u.totalErrors/u.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:u.totalCalls.toLocaleString()}),j]}),u.totalErrors>0&&t.jsxs("div",{children:[t.jsx("p",{className:"text-2xl font-semibold text-destructive tabular-nums",children:u.totalErrors.toLocaleString()}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("details.connectionActivity.errors")})]}),u.avgDurationMs>0&&t.jsxs("div",{children:[t.jsxs("p",{className:"text-2xl font-semibold text-foreground tabular-nums",children:[Math.round(u.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(Tt,{config:is,className:"h-16 w-full",children:t.jsxs(Dt,{data:x,barCategoryGap:"4%",children:[t.jsx(At,{content:t.jsx(Pt,{labelFormatter:rs}),cursor:{fill:"var(--muted)"}}),t.jsx($t,{dataKey:"calls",radius:[2,2,0,0],minPointSize:1,children:x.map(ls)})]})}),t.jsxs("div",{className:"flex justify-between px-3 mt-1 pb-3",children:[t.jsx("span",{className:"text-2xs text-muted-foreground",children:x[0]?.label}),t.jsx("span",{className:"text-2xs text-muted-foreground",children:x[x.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")})}),m.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:m.map(as)})]})]})}function as(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 ls(s,e){return t.jsx(Ot,{fill:s.errorRate>50?"var(--destructive)":"var(--chart-1)",fillOpacity:s.calls===0?.2:s.errorRate>50?.7:.85},`cell-${e}`)}function rs(s,e){const n=Array.isArray(e)?e[0]:void 0;return n&&typeof n=="object"&&"payload"in n?n.payload?.label??"":""}function cs(){const s=U.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 ds(s){const e=U.c(22),{connectionId:n}=s,c=V(),[o,i]=Q.useState("14d"),{org:l}=te();let a;e[0]!==c?(a=c("details.connectionActivity.activity"),e[0]=c,e[1]=a):a=e[1];let r;e[2]!==a?(r=t.jsx("div",{children:t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:a})}),e[2]=a,e[3]=r):r=e[3];let d;e[4]!==c?(d=c("details.connectionActivity.timeframe"),e[4]=c,e[5]=d):d=e[5];let u;e[6]!==o?(u=ss.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 rounded-lg transition-colors",o===j.value?"bg-card text-foreground shadow-edge":"text-muted-foreground hover:text-foreground"),children:j.label},j.value)),e[6]=o,e[7]=u):u=e[7];let x;e[8]!==d||e[9]!==u?(x=t.jsx("div",{role:"group","aria-label":d,className:"flex items-center gap-0.5 bg-muted rounded-lg p-0.5",children:u}),e[8]=d,e[9]=u,e[10]=x):x=e[10];let f;e[11]!==r||e[12]!==x?(f=t.jsxs("div",{className:"px-5 py-4 flex items-center justify-between",children:[r,x]}),e[11]=r,e[12]=x,e[13]=f):f=e[13];let m;e[14]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(cs,{}),e[14]=m):m=e[14];let h;e[15]!==n||e[16]!==l.id||e[17]!==o?(h=t.jsx(Q.Suspense,{fallback:m,children:t.jsx(os,{connectionId:n,orgId:l.id,timeframe:o})}),e[15]=n,e[16]=l.id,e[17]=o,e[18]=h):h=e[18];let g;return e[19]!==f||e[20]!==h?(g=t.jsxs("div",{className:"surface overflow-hidden",children:[f,h]}),e[19]=f,e[20]=h,e[21]=g):g=e[21],g}function ms(s){const e=U.c(15),{virtualMcp:n,org:c}=s,o=se();let i;e[0]!==o||e[1]!==c||e[2]!==n.id?(i=()=>{const x=crypto.randomUUID();o({to:"/$org/projects/$agentId",params:{org:c,agentId:n.id},search:{thread:x}})},e[0]=o,e[1]=c,e[2]=n.id,e[3]=i):i=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(ye,{size:16}),e[4]=l):l=e[4];let a;e[5]!==n.icon||e[6]!==n.title?(a=t.jsx(ae,{icon:n.icon,name:n.title,size:"xs",fallbackIcon:l}),e[5]=n.icon,e[6]=n.title,e[7]=a):a=e[7];let r;e[8]!==n.title?(r=t.jsx("span",{className:"flex-1 text-sm font-medium text-foreground truncate",children:n.title}),e[8]=n.title,e[9]=r):r=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(_e,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors shrink-0"}),e[10]=d):d=e[10];let u;return e[11]!==i||e[12]!==a||e[13]!==r?(u=t.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-3 rounded-lg hover:bg-accent transition-colors group text-left w-full",children:[a,r,d]}),e[11]=i,e[12]=a,e[13]=r,e[14]=u):u=e[14],u}function us(s){const e=U.c(7),{virtualMcps:n,org:c}=s;let o;if(e[0]!==c||e[1]!==n){let l;e[3]!==c?(l=a=>t.jsx(ms,{virtualMcp:a,org:c},a.id),e[3]=c,e[4]=l):l=e[4],o=n.map(l),e[0]=c,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 xs(s){const e=U.c(13),{connection:n}=s,c=V(),{org:o}=te();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 l=Mt(i);if(!(l.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 r;e[3]!==c?(r=c("details.connectionAgentsPanel.usedByAgents"),e[3]=c,e[4]=r):r=e[4];let d;e[5]!==r?(d=t.jsx("div",{className:"px-5 py-4 border-b border-border",children:t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:r})}),e[5]=r,e[6]=d):d=e[6];let u;e[7]!==o.slug||e[8]!==l?(u=t.jsx("div",{className:"px-5 py-4",children:t.jsx(us,{virtualMcps:l,org:o.slug})}),e[7]=o.slug,e[8]=l,e[9]=u):u=e[9];let x;return e[10]!==d||e[11]!==u?(x=t.jsxs("div",{className:"surface overflow-hidden",children:[d,u]}),e[10]=d,e[11]=u,e[12]=x):x=e[12],x}function ps(s){const e=U.c(35),{tools:n,connectionId:c,org:o}=s,i=V(),l=se(),{org:a}=te();let r;e[0]!==c||e[1]!==a.id||e[2]!==a.slug?(r={connectionId:c,orgId:a.id,orgSlug:a.slug},e[0]=c,e[1]=a.id,e[2]=a.slug,e[3]=r):r=e[3];const d=Ae(r),u=ke(c);let x;e[4]!==u||e[5]!==c?(x=u?Pe(u):c,e[4]=u,e[5]=c,e[6]=x):x=e[6];const f=x,[m,h]=Q.useState("");let g,j,N,_;if(e[7]!==f||e[8]!==d||e[9]!==l||e[10]!==o||e[11]!==m||e[12]!==i||e[13]!==n){const D=(n??[]).filter(fs),w=m.toLowerCase().trim(),$=w?D.filter(v=>v.name.toLowerCase().includes(w)||v.description&&v.description.toLowerCase().includes(w)):D;let O;e[18]!==f||e[19]!==l||e[20]!==o?(O=v=>{l({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:o,appSlug:f,collectionName:"tools",itemId:encodeURIComponent(v.name)}})},e[18]=f,e[19]=l,e[20]=o,e[21]=O):O=e[21];const P=O;N="flex flex-col h-full overflow-hidden";let T;e[22]!==i?(T=i("details.connectionUiTab.searchAppsPlaceholder"),e[22]=i,e[23]=T):T=e[23];let S;e[24]===Symbol.for("react.memo_cache_sentinel")?(S=v=>{v.key==="Escape"&&(h(""),v.target.blur())},e[24]=S):S=e[24],e[25]!==m||e[26]!==T?(_=t.jsx(Ft,{value:m,onChange:h,placeholder:T,onKeyDown:S}),e[25]=m,e[26]=T,e[27]=_):_=e[27],g="flex-1 overflow-auto p-5",j=$.length===0?t.jsx(Ce,{image:null,title:i(m?"details.connectionUiTab.noAppsFound":"details.connectionUiTab.noAppsAvailable"),description:i(m?"details.connectionUiTab.adjustSearchTerms":"details.connectionUiTab.noInteractiveUis")}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(320px,1fr))] gap-4",children:$.map(v=>{const z=ce(v._meta);return t.jsxs(Re,{size:"flush",className:"cursor-pointer transition-colors overflow-hidden gap-0",onClick:()=>P(v),children:[t.jsx("div",{className:"h-[200px] overflow-hidden border-b border-border",children:t.jsx(Q.Suspense,{fallback:t.jsx(Ue,{className:"h-full w-full"}),children:t.jsx(Ut,{resourceURI:z,toolInfo:{tool:v},displayMode:"inline",minHeight:200,maxHeight:200,client:d})})}),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:v.annotations?.title??v.name}),t.jsx(ot,{annotations:v.annotations,_meta:v._meta})]}),v.description&&t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:v.description})]})]},v.name)})}),e[7]=f,e[8]=d,e[9]=l,e[10]=o,e[11]=m,e[12]=i,e[13]=n,e[14]=g,e[15]=j,e[16]=N,e[17]=_}else g=e[14],j=e[15],N=e[16],_=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 C;return e[31]!==N||e[32]!==_||e[33]!==y?(C=t.jsxs("div",{className:N,children:[_,y]}),e[31]=N,e[32]=_,e[33]=y,e[34]=C):C=e[34],C}function fs(s){return!!ce(s._meta)}const je=[];function De(s){const e=s.replace(/[._]/g," ").trim().split(/\s+/),n=l=>l.charAt(0).toUpperCase()+l.slice(1),c=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&&c.has(i)?[o.pop(),...o].join(" "):o.join(" ")}function le(s){const e=U.c(5),{label:n}=s,c=V();let o;e[0]!==n||e[1]!==c?(o=c("details.connectionCapabilities.noItemsAvailable",{item:n}),e[0]=n,e[1]=c,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 hs(s){const e=U.c(68),{tools:n,prompts:c,resources:o,connectionId:i,org:l}=s,a=c===void 0?je:c,r=o===void 0?je:o,d=V(),u=se(),x=ke(i??"");let f;e[0]!==x||e[1]!==i?(f=x?Pe(x):i,e[0]=x,e[1]=i,e[2]=f):f=e[2];const m=f;let h;e[3]!==m||e[4]!==i||e[5]!==u||e[6]!==l?(h=function(I){!i||!l||u({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:m,collectionName:"tools",itemId:encodeURIComponent(I)}})},e[3]=m,e[4]=i,e[5]=u,e[6]=l,e[7]=h):h=e[7];const g=h;let j;e[8]!==i||e[9]!==l||e[10]!==n?(j=i&&l&&n.some(vs),e[8]=i,e[9]=l,e[10]=n,e[11]=j):j=e[11];const N=j;if(n.length+a.length+r.length===0){let b;e[12]!==d?(b=d("details.connectionCapabilities.capabilities"),e[12]=d,e[13]=b):b=e[13];let I;e[14]!==b?(I=t.jsx("h3",{className:"text-sm font-semibold text-foreground mb-1",children:b}),e[14]=b,e[15]=I):I=e[15];let k;e[16]!==d?(k=d("details.connectionCapabilities.noCapabilitiesDiscovered"),e[16]=d,e[17]=k):k=e[17];let F;e[18]!==k?(F=t.jsx("p",{className:"text-sm text-muted-foreground",children:k}),e[18]=k,e[19]=F):F=e[19];let W;return e[20]!==I||e[21]!==F?(W=t.jsxs("div",{className:"surface p-5",children:[I,F]}),e[20]=I,e[21]=F,e[22]=W):W=e[22],W}let y;e[23]!==d||e[24]!==n.length?(y=d("details.connectionCapabilities.toolsTab",{count:n.length}),e[23]=d,e[24]=n.length,e[25]=y):y=e[25];let C;e[26]!==y?(C=t.jsx(ie,{value:"tools",variant:"underline",children:y}),e[26]=y,e[27]=C):C=e[27];let D;e[28]!==N||e[29]!==d?(D=N&&t.jsx(ie,{value:"apps",variant:"underline",children:d("details.connectionCapabilities.uiTab")}),e[28]=N,e[29]=d,e[30]=D):D=e[30];let w;e[31]!==d?(w=d("details.connectionCapabilities.promptsTab"),e[31]=d,e[32]=w):w=e[32];let $;e[33]!==w?($=t.jsx(ie,{value:"prompts",variant:"underline",children:w}),e[33]=w,e[34]=$):$=e[34];let O;e[35]!==d?(O=d("details.connectionCapabilities.resourcesTab"),e[35]=d,e[36]=O):O=e[36];let P;e[37]!==O?(P=t.jsx(ie,{value:"resources",variant:"underline",children:O}),e[37]=O,e[38]=P):P=e[38];let T;e[39]!==$||e[40]!==P||e[41]!==C||e[42]!==D?(T=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:[C,D,$,P]})}),e[39]=$,e[40]=P,e[41]=C,e[42]=D,e[43]=T):T=e[43];let S;e[44]!==g||e[45]!==n?(S=n.length>0?n.map(b=>t.jsxs("button",{type:"button",className:"w-full flex items-start gap-3 px-5 py-3 text-left hover:bg-accent transition-colors cursor-pointer",onClick:()=>g(b.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(xt,{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(b.name)}),b.description&&t.jsx("div",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed line-clamp-2",children:b.description})]}),t.jsx(_e,{size:16,className:"text-muted-foreground shrink-0 mt-0.5"})]},b.name)):t.jsx(le,{label:"tools"}),e[44]=g,e[45]=n,e[46]=S):S=e[46];let v;e[47]!==S?(v=t.jsx(oe,{value:"tools",className:"h-auto",children:t.jsx("div",{className:"divide-y divide-border",children:S})}),e[47]=S,e[48]=v):v=e[48];let z;e[49]!==i||e[50]!==N||e[51]!==l||e[52]!==n?(z=N&&t.jsx(oe,{value:"apps",className:"h-auto min-h-[200px]",children:t.jsx(ps,{tools:n,connectionId:i,org:l})}),e[49]=i,e[50]=N,e[51]=l,e[52]=n,e[53]=z):z=e[53];let E;e[54]!==a?(E=a.length>0?a.map(js):t.jsx(le,{label:"prompts"}),e[54]=a,e[55]=E):E=e[55];let M;e[56]!==E?(M=t.jsx(oe,{value:"prompts",className:"h-auto",children:t.jsx("div",{className:"divide-y divide-border",children:E})}),e[56]=E,e[57]=M):M=e[57];let A;e[58]!==r?(A=r.length>0?r.map(gs):t.jsx(le,{label:"resources"}),e[58]=r,e[59]=A):A=e[59];let R;e[60]!==A?(R=t.jsx(oe,{value:"resources",className:"h-auto",children:t.jsx("div",{className:"divide-y divide-border",children:A})}),e[60]=A,e[61]=R):R=e[61];let p;return e[62]!==T||e[63]!==v||e[64]!==z||e[65]!==M||e[66]!==R?(p=t.jsx("div",{className:"surface overflow-hidden",children:t.jsxs(Et,{defaultValue:"tools",variant:"underline",children:[T,v,z,M,R]})}),e[62]=T,e[63]=v,e[64]=z,e[65]=M,e[66]=R,e[67]=p):p=e[67],p}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(ut,{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 js(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(Rt,{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 vs(s){return ce(s._meta)}function bs(s){const e=U.c(13),{connection:n,displayTitle:c}=s,o=c??n.title;let i;e[0]!==n.icon||e[1]!==o?(i=t.jsx(ae,{icon:n.icon,name:o,size:"md",className:"shrink-0"}),e[0]=n.icon,e[1]=o,e[2]=i):i=e[2];let l;e[3]!==o?(l=t.jsx(Fe.Title,{children:o}),e[3]=o,e[4]=l):l=e[4];let a;e[5]!==n.description?(a=n.description&&t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed line-clamp-2",children:n.description}),e[5]=n.description,e[6]=a):a=e[6];let r;e[7]!==l||e[8]!==a?(r=t.jsxs("div",{className:"flex-1 min-w-0",children:[l,a]}),e[7]=l,e[8]=a,e[9]=r):r=e[9];let d;return e[10]!==i||e[11]!==r?(d=t.jsxs("div",{className:"flex items-center px-4 md:px-8 bg-background border-b border-border shrink-0 gap-3 py-4",children:[i,r]}),e[10]=i,e[11]=r,e[12]=d):d=e[12],d}function Ns({form:s,connection:e,hasOAuthToken:n,onReauthenticate:c,onRemoveOAuth:o}){const i=V(),l=ue({control:s.control,name:"ui_type"}),a=ue({control:s.control,name:"connection_url"}),{stdioEnabled:r}=Ve(),d=(()=>{if(typeof a!="string"||!a)return!1;try{const m=new URL(a);return m.hostname==="api.githubcopilot.com"&&m.pathname.replace(/\/+$/,"")==="/mcp"}catch{return!1}})(),u=r||e.connection_type==="STDIO",x=e.connection_type==="VIRTUAL",f=x?Kt(e.connection_url):null;return x?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(H,{control:s.control,name:"ui_type",render:({field:m})=>t.jsxs(q,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.connection")}),l!=="NPX"&&l!=="STDIO"?t.jsxs("div",{className:"flex items-stretch rounded-lg border border-border overflow-hidden",children:[t.jsxs(pe,{value:m.value,onValueChange:m.onChange,children:[t.jsx(L,{children:t.jsxs(fe,{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(ne,{className:"w-4 h-4 text-muted-foreground shrink-0"}),t.jsx(he,{})]})}),t.jsxs(ge,{children:[t.jsx(G,{value:"HTTP",children:i("details.connectionSidebar.http")}),t.jsx(G,{value:"SSE",children:i("details.connectionSidebar.sse")}),t.jsx(G,{value:"Websocket",children:i("details.connectionSidebar.websocket")}),u&&t.jsxs(t.Fragment,{children:[t.jsx(G,{value:"NPX",children:i("details.connectionSidebar.npxPackage")}),t.jsx(G,{value:"STDIO",children:i("details.connectionSidebar.customCommand")})]})]})]}),t.jsx("div",{className:"w-px bg-border"}),t.jsx(H,{control:s.control,name:"connection_url",render:({field:h})=>t.jsx(q,{className:"flex-1 min-w-0",children:t.jsx(L,{children:t.jsx(J,{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(pe,{value:m.value,onValueChange:m.onChange,children:[t.jsx(L,{children:t.jsx(fe,{className:"h-10",children:t.jsx(he,{})})}),t.jsxs(ge,{children:[t.jsx(G,{value:"HTTP",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ne,{className:"w-4 h-4"}),i("details.connectionSidebar.http")]})}),t.jsx(G,{value:"SSE",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ne,{className:"w-4 h-4"}),i("details.connectionSidebar.sse")]})}),t.jsx(G,{value:"Websocket",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ne,{className:"w-4 h-4"}),i("details.connectionSidebar.websocket")]})}),u&&t.jsxs(t.Fragment,{children:[t.jsx(G,{value:"NPX",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Gt,{className:"w-4 h-4"}),i("details.connectionSidebar.npxPackage")]})}),t.jsx(G,{value:"STDIO",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Ht,{className:"w-4 h-4"}),i("details.connectionSidebar.customCommand")]})})]})]})]}),t.jsx(X,{})]})}),l==="NPX"&&t.jsx(H,{control:s.control,name:"npx_package",render:({field:m})=>t.jsxs(q,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.npmPackage")}),t.jsx(L,{children:t.jsx(J,{placeholder:i("details.connectionSidebar.npmPackagePlaceholder"),...m,value:m.value||"",className:"h-10"})}),t.jsx(X,{})]})}),l==="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsx(H,{control:s.control,name:"stdio_command",render:({field:m})=>t.jsxs(q,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.command")}),t.jsx(L,{children:t.jsx(J,{placeholder:i("details.connectionSidebar.commandPlaceholder"),...m,value:m.value||"",className:"h-10"})}),t.jsx(X,{})]})}),t.jsx(H,{control:s.control,name:"stdio_args",render:({field:m})=>t.jsxs(q,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.arguments")}),t.jsx(L,{children:t.jsx(J,{placeholder:i("details.connectionSidebar.argumentsPlaceholder"),...m,value:m.value||"",className:"h-10"})}),t.jsx("p",{className:"text-xs text-muted-foreground",children:i("details.connectionSidebar.spaceSeparatedArguments")}),t.jsx(X,{})]})})]}),t.jsx(H,{control:s.control,name:"stdio_cwd",render:({field:m})=>t.jsxs(q,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.workingDirectory")}),t.jsx(L,{children:t.jsx(J,{placeholder:i("details.connectionSidebar.workingDirectoryPlaceholder"),...m,value:m.value||"",className:"h-10"})}),t.jsx(X,{})]})})]}),(l==="NPX"||l==="STDIO")&&t.jsx(H,{control:s.control,name:"env_vars",render:({field:m})=>t.jsxs(q,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.environmentVariables")}),t.jsx(L,{children:t.jsx(Je,{value:m.value??[],onChange:m.onChange})}),t.jsx(X,{})]})}),l!=="NPX"&&l!=="STDIO"&&t.jsx(H,{control:s.control,name:"connection_token",render:({field:m})=>t.jsxs(q,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i(d?"details.connectionSidebar.githubPersonalAccessToken":"details.connectionSidebar.token")}),n?t.jsx("div",{className:"flex items-center gap-2",children:t.jsxs(Le,{children:[t.jsx(Be,{asChild:!0,children:t.jsx("button",{type:"button",className:"inline-flex items-center gap-1.5 cursor-pointer",children:t.jsxs(Vt,{variant:"success",className:"gap-1.5",children:[t.jsx(Lt,{size:12}),i("details.connectionSidebar.authenticatedViaOAuth"),t.jsx(Bt,{size:12})]})})}),t.jsxs(Ge,{align:"start",children:[t.jsxs(xe,{onClick:c,children:[t.jsx(pt,{size:16}),i("details.connectionSidebar.reauthenticate")]}),t.jsxs(xe,{variant:"destructive",onClick:o,children:[t.jsx(re,{size:16}),i("details.connectionSidebar.removeOAuth")]})]})]})}):e.connection_token&&m.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:()=>m.onChange(""),className:"absolute right-2 top-1/2 -translate-y-1/2 p-1 hover:bg-accent opacity-0 group-hover:opacity-100 transition-opacity rounded-lg",title:i("details.connectionSidebar.clearAndReplaceToken"),"aria-label":i("details.connectionSidebar.clearAndReplaceToken"),children:t.jsx(qt,{size:14,className:"text-muted-foreground"})})]}):t.jsxs(t.Fragment,{children:[t.jsx(L,{children:t.jsx(J,{type:"password",placeholder:i(d?"details.connectionSidebar.pasteYourGitHubPat":"details.connectionSidebar.enterAccessToken"),...m,value:m.value||"",className:"h-10"})}),d&&t.jsxs(bt,{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(X,{})]})})]})}function Ss(s){return s.command==="npx"}function ys(s){return s.args?.find(e=>!e.startsWith("-"))??""}function _s(s){return{command:s.command,args:s.args?.join(" ")??"",cwd:s.cwd??""}}function ve(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"&&Xt(s.connection_headers)){const c=s.connection_headers,o=Ze(c.envVars);if(Ss(c)){const l=ys(c);return{...n,ui_type:"NPX",connection_url:"",connection_token:null,npx_package:l,stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:o}}const i=_s(c);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,c=!1,o=null,i=null;return s.ui_type==="NPX"?(e="STDIO",n="",i=et(s.npx_package||"",s.env_vars||[])):s.ui_type==="STDIO"?(e="STDIO",n="",i=tt(s.stdio_command||"",s.stdio_args||"",s.stdio_cwd,s.env_vars||[])):(e=s.ui_type,n=s.connection_url||"",c=s.connection_token!==null&&s.connection_token!==void 0,o=s.connection_token||null),{title:s.title,description:s.description||null,icon:s.icon??null,connection_type:e,connection_url:n,...c&&{connection_token:o},...i&&{connection_headers:i},configuration_state:s.configuration_state??null,configuration_scopes:s.configuration_scopes??null}}function ws({connection:s,connectionId:e,org:n,isUpdating:c,tools:o,prompts:i,resources:l,siblings:a}){const r=V(),d=se({from:"/$org/settings/connections/$appSlug"}),u=Xe(),x=Te(),{org:f}=te(),m=wt({onSuccess:()=>{a.length<=1&&d({to:"/$org/settings/connections",params:{org:n}})}}),[h,g]=Q.useState(null),[j,N]=Q.useState(!1),_=we({connectionId:e}),{data:y}=at(),C=y?.data?.members??[],D=h??s,w=C.find(p=>p.userId===D.created_by),O=s?.connection_type==="VIRTUAL"||_.isAuthenticated,P={...s,tools:o},T=st(P,Yt),S=Qe({resolver:We(Qt),values:ve(h??s)}),v=S.formState.isDirty,z=async()=>{if(!await S.trigger())return;const b=S.getValues(),I=Cs(b),k=h?.id??e;await x.update.mutateAsync({id:k,data:I}),S.reset(b)},E=()=>{S.reset(ve(h??s))},M=async p=>{const b=s.configuration_scopes?.length?s.configuration_scopes.join(" "):void 0,{token:I,tokenInfo:k,error:F}=await rt({connectionId:p,orgSlug:f.slug,...b?{scope:b}:{}});if(F||!I){Y.error(r("details.connection.authFailed",{error:F??""}));return}if(k)try{const Z=await fetch(`/api/${f.slug}/connections/${p}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:k.accessToken,refreshToken:k.refreshToken,expiresIn:k.expiresIn,scope:k.scope,clientId:k.clientId,clientSecret:k.clientSecret,tokenEndpoint:k.tokenEndpoint})});if(!Z.ok)console.error("Failed to save OAuth token:",await Z.text()),await x.update.mutateAsync({id:p,data:{connection_token:I}});else try{await x.update.mutateAsync({id:p,data:{}})}catch($e){console.warn("Failed to refresh connection tools after OAuth:",$e)}}catch(Z){console.error("Error saving OAuth token:",Z),await x.update.mutateAsync({id:p,data:{connection_token:I}})}else await x.update.mutateAsync({id:p,data:{connection_token:I}});const W=new URL(`/api/${f.slug}/mcp/${p}`,window.location.origin);await u.invalidateQueries({queryKey:ee.isMCPAuthenticated(W.href,null)}),await u.invalidateQueries({queryKey:ee.mcpClientPrefix()}),Y.success(r("details.connection.authSuccess"))},A=()=>M(s.id),R=async()=>{try{const p=await fetch(`/api/${f.slug}/connections/${s.id}/oauth-token`,{method:"DELETE",credentials:"include"});if(!p.ok){const I=await p.text();Y.error(r("details.connection.failedRemoveOAuth",{error:I}));return}const b=new URL(`/api/${f.slug}/mcp/${s.id}`,window.location.origin);await u.invalidateQueries({queryKey:ee.isMCPAuthenticated(b.href,null)}),Y.success(r("details.connection.oauthRemoved"))}catch(p){console.error("Error removing OAuth token:",p),Y.error(r("details.connection.failedRemoveOAuthError"))}};return t.jsxs(t.Fragment,{children:[t.jsx(It,{...m}),t.jsx(ft,{open:h!==null,onOpenChange:p=>{p||g(null)},children:t.jsxs(ht,{side:"right",className:"sm:max-w-[520px] p-0 flex flex-col gap-0 overflow-hidden",children:[t.jsxs(gt,{className:"px-4 py-3 md:px-6 md:py-4 border-b border-border shrink-0",children:[t.jsx(jt,{className:"text-base",children:h?.title??s.title}),t.jsx(vt,{className:"text-xs",children:r("details.connection.settingsDescription")}),w&&t.jsxs("div",{className:"flex items-center gap-1.5 pt-1",children:[t.jsx("span",{className:"text-xs text-muted-foreground",children:r("details.connection.connectedBy")}),t.jsx(lt,{url:w.user?.image??void 0,fallback:w.user?.name??w.user?.email??"?",size:"3xs",shape:"circle"}),t.jsx("span",{className:"text-xs font-medium text-foreground",children:w.user?.name||w.user?.email})]})]}),t.jsxs(Nt,{...S,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(H,{control:S.control,name:"title",render:({field:p})=>t.jsxs(q,{children:[t.jsx(K,{children:r("details.connection.nameLabel")}),t.jsx(L,{children:t.jsx(J,{...p})}),t.jsx(X,{})]})}),t.jsx(H,{control:S.control,name:"description",render:({field:p})=>t.jsxs(q,{children:[t.jsx(K,{children:r("details.connection.descriptionLabel")}),t.jsx(L,{children:t.jsx(J,{...p,value:p.value||""})}),t.jsx(X,{})]})})]}),t.jsx(Ns,{form:S,connection:h??s,hasOAuthToken:_.hasOAuthToken,onReauthenticate:A,onRemoveOAuth:R}),t.jsx(nt,{connection:h??s,form:S,hasMcpBinding:T,isMCPAuthenticated:O,supportsOAuth:_.supportsOAuth,isServerError:_.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(B,{onClick:z,disabled:!v||c,className:"flex-1",children:r(c?"details.connection.savingButton":"details.connection.saveButton")}),v&&t.jsx(B,{variant:"outline",onClick:E,children:r("details.connection.undoButton")}),t.jsxs(B,{variant:"outline",className:"gap-2 text-muted-foreground hover:text-destructive",onClick:()=>{const p=h??s;g(null),m.requestDelete(p)},children:[t.jsx(re,{size:15}),r("details.connection.deleteButton")]})]})]},h?.id??s.id)]})}),t.jsx(it,{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(ds,{connectionId:e}),t.jsxs("div",{className:"flex flex-col gap-5",children:[t.jsx(es,{instances:a,onConfigure:p=>g(p),onAuthenticate:p=>M(p.id),onDelete:p=>m.requestDelete(p),onToggleStatus:async(p,b)=>{try{await x.update.mutateAsync({id:p.id,data:{status:b}}),Y.success(r(b==="active"?"details.connection.connectionEnabled":"details.connection.connectionDisabled"))}catch{Y.error(r("details.connection.failedUpdateConnection"))}},isAdding:j,onAdd:async()=>{N(!0);try{const p=a[0]??s,b=p.title.replace(/\s*\(\d+\)\s*$/,""),I=a.length+1,k=`${b} (${I})`,F=Ye("conn");await x.create.mutateAsync({id:F,title:k,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});const W=new URL(`/api/${f.slug}/mcp/${F}`,window.location.origin),Z=await Ct({url:W.href,token:null,orgId:f.id});Z.supportsOAuth&&!Z.isAuthenticated&&await M(F)}catch(p){console.error("Failed to add connection instance:",p),Y.error(r("details.connection.failedAddInstance"))}finally{N(!1)}}}),t.jsx(xs,{connection:s})]}),t.jsx("div",{className:"@3xl:col-span-2",children:t.jsx(hs,{tools:o,prompts:i,resources:l,connectionId:e,org:n})})]})})]})})]})}function Is(){const s=U.c(43),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 c=se(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:l}=qe(o),{org:a}=te(),r=Te();let d;s[2]!==i?(d={slug:i},s[2]=i,s[3]=d):d=s[3];const u=St(d),[x,f]=Q.useState(null),m=u.find(A=>A.id===x)??u[0]??null;m&&m.id!==x&&f(m.id);const h=m?.id??"",g=Ae({connectionId:h||null,orgId:a.id,orgSlug:a.slug});let j;s[4]!==g?(j={client:g},s[4]=g,s[5]=j):j=s[5];const{data:N}=yt(j),_=N?N.tools.map($s):(m?.tools??[]).map(Ds);let y;e:{if(u.length<=1){y=_;break e}const A=new Set,R=[],p=As;for(const b of u){const I=b.id===h?_:p(b.tools);for(const k of I)A.has(k.name)||(A.add(k.name),R.push(k))}y=R.length>0?R:_}const C=y;let D;s[6]!==g?(D={client:g},s[6]=g,s[7]=D):D=s[7];const{data:w}=_t(D);let $;s[8]!==g?($={client:g},s[8]=g,s[9]=$):$=s[9];const{data:O}=Ke($);let P;s[10]!==w?.prompts?(P=w?.prompts??[],s[10]=w?.prompts,s[11]=P):P=s[11];let T;s[12]!==P?(T=P.map(Ts),s[12]=P,s[13]=T):T=s[13];const S=T;let v;s[14]!==O?.resources?(v=O?.resources??[],s[14]=O?.resources,s[15]=v):v=s[15];let z;s[16]!==v?(z=v.map(ks),s[16]=v,s[17]=z):z=s[17];const E=z;if(!m){let A;s[18]!==e?(A=e("details.connection.notFoundTitle"),s[18]=e,s[19]=A):A=s[19];let R;s[20]!==e?(R=e("details.connection.notFoundDescription"),s[20]=e,s[21]=R):R=s[21];let p;s[22]!==c||s[23]!==l?(p=()=>c({to:"/$org/settings/connections",params:{org:l}}),s[22]=c,s[23]=l,s[24]=p):p=s[24];let b;s[25]!==e?(b=e("details.connection.backButton"),s[25]=e,s[26]=b):b=s[26];let I;s[27]!==p||s[28]!==b?(I=t.jsx(B,{variant:"outline",onClick:p,children:b}),s[27]=p,s[28]=b,s[29]=I):I=s[29];let k;return s[30]!==A||s[31]!==R||s[32]!==I?(k=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ce,{title:A,description:R,actions:I})}),s[30]=A,s[31]=R,s[32]=I,s[33]=k):k=s[33],k}let M;return s[34]!==r.update.isPending||s[35]!==C||s[36]!==m||s[37]!==h||s[38]!==l||s[39]!==S||s[40]!==E||s[41]!==u?(M=t.jsx(ws,{org:l,connection:m,connectionId:h,isUpdating:r.update.isPending,tools:C,prompts:S,resources:E,siblings:u}),s[34]=r.update.isPending,s[35]=C,s[36]=m,s[37]=h,s[38]=l,s[39]=S,s[40]=E,s[41]=u,s[42]=M):M=s[42],M}function ks(s){return{name:s.name,description:s.description,uri:s.uri}}function Ts(s){return{name:s.name,description:s.description}}function As(s){return(s??[]).map(Ps)}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(s){return{name:s.name,description:s.description,inputSchema:s.inputSchema,outputSchema:s.outputSchema,annotations:s.annotations,_meta:s._meta}}function Os(){const s=U.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(He,{children:t.jsx(Q.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(Is,{})})}),s[0]=e):e=s[0],e}function yi(){const s=U.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Os,{}),s[0]=e):e=s[0],e}export{yi as default};
|
|
1
|
+
import{aF as be,cZ as Oe,cX as Me,aG as de,bW as ze,c as U,b as V,j as t,h as Ne,B,r as Q,l as Se,a2 as te,an as Ee,R as me,K as ee,d as se,x as ye,av as _e,f0 as Re,b1 as Ue,n as Fe,fK as ue,a1 as Ve,I as J,X as Le,T as Be,V as Ge,U as xe,H as qe,f as He,fU as Ke,o as Xe,aE as Qe,aD as We,t as Y}from"./index-ifZGovK1.js";import{g as Ye}from"./extract-connection-data-CBAyhzk-.js";import{E as Ce}from"./empty-state-D6RWdvUz.js";import{E as Je,r as Ze,b as et,c as tt}from"./connection-form-helpers-A3QfJozi.js";import{c as st,S as nt,D as it}from"./index-D_6gfRTQ.js";import{u as we,T as ot}from"./use-mcp-auth-status-Cs8ZHHaN.js";import{a as at}from"./use-members-0ZBHc0S5.js";import{A as lt}from"./avatar-DHKJiyOX.js";import{a as rt}from"./mcp-oauth-CNKUkWMd.js";import{I as ae}from"./integration-icon-D1aQLe0v.js";import{s as ct}from"./Plus-vkM1FxVr.js";import{bi as dt,aD as mt,az as ut,v as ne}from"./agent-icon--EtIPqub.js";import{a as Ie,d as xt,s as pt}from"./Tool01-BsK9c3-e.js";import{s as re}from"./Trash01-Z1ezoy3S.js";import{b as ft,a as ht,c as gt,S as jt,d as vt}from"./sheet-Dhe0uPV2.js";import{F as q,b as H,c as K,d as L,f as X,e as bt,a as Nt}from"./form-D4PspedZ.js";import{a as ke,b as Te,u as St}from"./use-connection-CBKH8IwL.js";import{u as Ae}from"./use-mcp-client-D1kFCZ4v.js";import{u as yt}from"./use-mcp-tools-I-kpM305.js";import{a as _t}from"./use-mcp-prompts-wKDmQlGB.js";import{i as Ct}from"./mcp-oauth-CTJ5Iw4i.js";import{u as wt,D as It}from"./use-delete-connection-BJIObh7l.js";import{c as kt}from"./monitoring-stats-row-THiAXYTp.js";import{b as Tt,C as At,a as Pt}from"./chart-86pPxb3F.js";import{a as Dt,B as $t}from"./BarChart-7G_lP-bc.js";import{C as Ot}from"./tooltipContext-BQS7kWxi.js";import{b as Mt}from"./repository-binding-DtIeSvDY.js";import{T as ie,a as zt,b as oe,c as Et}from"./tabs-C7f3nqQx.js";import{g as Pe}from"./connection-slug-CITJ0kGN.js";import{n as Rt}from"./ShoppingBag01-aJuRSlBz.js";import{g as ce}from"./types-CHFSNT7a.js";import{M as Ut}from"./mcp-app-renderer-fHjuxWIZ.js";import{C as Ft}from"./collection-search--9d0M5sc.js";import{B as Vt}from"./badge-ux-RK1YK.js";import{S as pe,b as fe,a as he,d as ge,c as G}from"./select-DUEGSJco.js";import{i as Lt}from"./CheckCircle-CMGqXocs.js";import{t as Bt}from"./ChevronUp-x46FJEcD.js";import{n as Gt}from"./LinkBroken01-DcsqjBuj.js";import{c as qt}from"./UserSquare-BBEl_BxL.js";import{s as Ht}from"./XClose-BdwIxxCT.js";import{p as Kt,i as Xt}from"./connection-Bo3v2rj5.js";import{c as Qt}from"./schema-Dvc5tPTN.js";import"./metadata-D72DunRR.js";import"./Key01-CG7Kua6O.js";import"./auth-C_nDagDA.js";import"./index-gqp4B5qj.js";import"./index-Bxkd37dZ.js";import"./index-BdQq_4o_.js";import"./index-BCHFFeZZ.js";import"./popover-DaReiQzV.js";import"./tooltip-gMeEuHtO.js";import"./index-DNa7Epd0.js";import"./SearchMd-Cp6J-1Iu.js";import"./use-mobile-CKoO3XSk.js";import"./use-create-virtual-mcp-jW1iVRi_.js";import"./use-navigate-to-agent-DLX1nkvn.js";import"./thread-intent-7GmQH5mt.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BoG6Bqps.js";import"./task-board-BrTYr-oE.js";import"./schema-Cn4x5iT-.js";import"./slugify-CEUa2lfQ.js";import"./Image01-BCnLFq1D.js";import"./use-org-auth-client-t4l-TKT1.js";import"./User01-C2Sw39bs.js";import"./AlertCircle-CUAx3A4b.js";import"./ArrowUp-EL0FBv9C.js";import"./ArrowLeft-BWCsylYe.js";import"./ZoomOut-DytgoG2i.js";import"./Building02-PifDTlhb.js";import"./ChevronSelectorVertical-BSRBjpBn.js";import"./Copy01-OBSYmimV.js";import"./CreditCard01-DWsSThAm.js";import"./DotsVertical-jkvtcdek.js";import"./Globe04-blkS_Kfg.js";import"./SwitchHorizontal01-B5WFt7_0.js";import"./Link01-8aKNfNRw.js";import"./Minus-B38cW2ZC.js";import"./Monitor01-DQEkUL3d.js";import"./Sun-k4hypx5Q.js";import"./Play-Ns9aRVTY.js";import"./Upload01-B3-nlnKa.js";import"./Users01-DMFeioyM.js";import"./label-Dhoh3DcI.js";import"./alert-dialog-C-DaggA1.js";import"./CartesianChart-CQlacwEw.js";import"./CategoricalChart-QwBn7EzX.js";import"./AreaChart-CW0Iiw9b.js";import"./symbol-BQLM2_V8.js";import"./ActiveShapeUtils-CHmxGMIj.js";import"./Sector-BeXkYaJv.js";import"./ErrorBarContext-MNRbBKZp.js";import"./active-indicator-CCMhAsc_.js";import"./url-slug-D37s8EDd.js";const Wt=be({scopes:ze(de()).describe("List of scopes available"),stateSchema:Oe(de(),Me()).describe("JSON Schema (draft-07) defining the state structure")}),Yt=[{name:"MCP_CONFIGURATION",inputSchema:be({}),outputSchema:Wt}];function Jt(s){const e=U.c(61),{instance:n,onConfigure:c,onAuthenticate:o,onDelete:i,onToggleStatus:l}=s,a=V();let r;e[0]!==n.id?(r={connectionId:n.id},e[0]=n.id,e[1]=r):r=e[1];const d=we(r),x=!(n.connection_type==="VIRTUAL")&&d.supportsOAuth&&!d.isAuthenticated,f=n.status!=="active",m=x||f?"border-destructive/50 bg-destructive/5":"border-transparent";let h;e[2]!==m?(h=Se("flex items-center gap-3 rounded-lg border px-4 py-2.5 transition-colors",m),e[2]=m,e[3]=h):h=e[3];let g;e[4]!==n.icon||e[5]!==n.title?(g=t.jsx(ae,{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 N;e[9]!==n.status||e[10]!==f||e[11]!==x||e[12]!==a?(N=x?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]=x,e[12]=a,e[13]=N):N=e[13];let _;e[14]!==j||e[15]!==N?(_=t.jsxs("div",{className:"flex-1 min-w-0",children:[j,N]}),e[14]=j,e[15]=N,e[16]=_):_=e[16];let y;e[17]!==n||e[18]!==x||e[19]!==o||e[20]!==a?(y=x&&t.jsx(B,{variant:"outline",size:"sm",onClick:()=>o(n),children:a("details.connectionInstancesPanel.authorize")}),e[17]=n,e[18]=x,e[19]=o,e[20]=a,e[21]=y):y=e[21];let C;e[22]!==n||e[23]!==f||e[24]!==l||e[25]!==a?(C=f?t.jsxs(B,{variant:"outline",size:"sm",className:"gap-1.5",onClick:()=>l(n,"active"),children:[t.jsx(dt,{size:13}),a("details.connectionInstancesPanel.enable")]}):t.jsx(B,{variant:"ghost",size:"icon-sm",className:"text-muted-foreground",onClick:()=>l(n,"inactive"),title:a("details.connectionInstancesPanel.disable"),"aria-label":a("details.connectionInstancesPanel.disable"),children:t.jsx(mt,{size:13})}),e[22]=n,e[23]=f,e[24]=l,e[25]=a,e[26]=C):C=e[26];let D;e[27]!==n||e[28]!==c?(D=()=>c(n),e[27]=n,e[28]=c,e[29]=D):D=e[29];let w;e[30]!==a?(w=a("details.connectionInstancesPanel.configure"),e[30]=a,e[31]=w):w=e[31];let $;e[32]!==a?($=a("details.connectionInstancesPanel.configure"),e[32]=a,e[33]=$):$=e[33];let O;e[34]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(Ie,{size:13}),e[34]=O):O=e[34];let P;e[35]!==D||e[36]!==w||e[37]!==$?(P=t.jsx(B,{variant:"ghost",size:"icon-sm",onClick:D,title:w,"aria-label":$,children:O}),e[35]=D,e[36]=w,e[37]=$,e[38]=P):P=e[38];let T;e[39]!==n||e[40]!==i?(T=()=>i(n),e[39]=n,e[40]=i,e[41]=T):T=e[41];let S;e[42]!==a?(S=a("details.connectionInstancesPanel.delete"),e[42]=a,e[43]=S):S=e[43];let v;e[44]!==a?(v=a("details.connectionInstancesPanel.delete"),e[44]=a,e[45]=v):v=e[45];let z;e[46]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx(re,{size:13}),e[46]=z):z=e[46];let E;e[47]!==T||e[48]!==S||e[49]!==v?(E=t.jsx(B,{variant:"ghost-destructive",size:"icon-sm",onClick:T,title:S,"aria-label":v,children:z}),e[47]=T,e[48]=S,e[49]=v,e[50]=E):E=e[50];let M;e[51]!==P||e[52]!==E||e[53]!==y||e[54]!==C?(M=t.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[y,C,P,E]}),e[51]=P,e[52]=E,e[53]=y,e[54]=C,e[55]=M):M=e[55];let A;return e[56]!==M||e[57]!==h||e[58]!==g||e[59]!==_?(A=t.jsxs("div",{className:h,children:[g,_,M]}),e[56]=M,e[57]=h,e[58]=g,e[59]=_,e[60]=A):A=e[60],A}function Zt(s){const e=U.c(21),{instance:n,onConfigure:c}=s,o=V();let i;e[0]!==n.icon||e[1]!==n.title?(i=t.jsx(ae,{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 l;e[3]!==n.title?(l=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]=l):l=e[4];let a;e[5]!==n||e[6]!==c?(a=()=>c(n),e[5]=n,e[6]=c,e[7]=a):a=e[7];let r;e[8]!==o?(r=o("details.connectionInstancesPanel.configure"),e[8]=o,e[9]=r):r=e[9];let d;e[10]!==o?(d=o("details.connectionInstancesPanel.configure"),e[10]=o,e[11]=d):d=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(Ie,{size:13}),e[12]=u):u=e[12];let x;e[13]!==a||e[14]!==r||e[15]!==d?(x=t.jsx("div",{className:"flex items-center gap-1 shrink-0",children:t.jsx(B,{variant:"ghost",size:"icon-sm",onClick:a,title:r,"aria-label":d,children:u})}),e[13]=a,e[14]=r,e[15]=d,e[16]=x):x=e[16];let f;return e[17]!==i||e[18]!==l||e[19]!==x?(f=t.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-transparent px-4 py-2.5 transition-colors",children:[i,l,x]}),e[17]=i,e[18]=l,e[19]=x,e[20]=f):f=e[20],f}function es(s){const e=U.c(33),{instances:n,onConfigure:c,onAuthenticate:o,onDelete:i,onToggleStatus:l,onAdd:a,isAdding:r}=s,d=V();if(n.length===0)return null;let u;e[0]!==n.length||e[1]!==d?(u=n.length===1?d("details.connectionInstancesPanel.instance"):d("details.connectionInstancesPanel.instances"),e[0]=n.length,e[1]=d,e[2]=u):u=e[2];let x;e[3]!==u?(x=t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:u}),e[3]=u,e[4]=x):x=e[4];let f;e[5]!==r?(f=r?t.jsx(Ne,{className:"size-[13px]"}):t.jsx(ct,{size:13}),e[5]=r,e[6]=f):f=e[6];let m;e[7]!==d?(m=d("details.connectionInstancesPanel.addInstance"),e[7]=d,e[8]=m):m=e[8];let h;e[9]!==r||e[10]!==a||e[11]!==f||e[12]!==m?(h=t.jsxs(B,{variant:"default",size:"sm",className:"gap-1.5",onClick:a,disabled:r,children:[f,m]}),e[9]=r,e[10]=a,e[11]=f,e[12]=m,e[13]=h):h=e[13];let g;e[14]!==x||e[15]!==h?(g=t.jsxs("div",{className:"px-5 py-4 border-b border-border flex items-center justify-between",children:[x,h]}),e[14]=x,e[15]=h,e[16]=g):g=e[16];let j;if(e[17]!==n||e[18]!==o||e[19]!==c||e[20]!==i||e[21]!==l){let y;e[23]!==o||e[24]!==c||e[25]!==i||e[26]!==l?(y=C=>t.jsx(Q.Suspense,{fallback:t.jsx(Zt,{instance:C,onConfigure:c}),children:t.jsx(Jt,{instance:C,onConfigure:c,onAuthenticate:o,onDelete:i,onToggleStatus:l})},C.id),e[23]=o,e[24]=c,e[25]=i,e[26]=l,e[27]=y):y=e[27],j=n.map(y),e[17]=n,e[18]=o,e[19]=c,e[20]=i,e[21]=l,e[22]=j}else j=e[22];let N;e[28]!==j?(N=t.jsx("div",{className:"p-2 flex flex-col gap-1",children:j}),e[28]=j,e[29]=N):N=e[29];let _;return e[30]!==g||e[31]!==N?(_=t.jsxs("div",{className:"surface overflow-hidden",children:[g,N]}),e[30]=g,e[31]=N,e[32]=_):_=e[32],_}function ts(s,e=3){const n=new Map;for(const c of s){if(!c.isError)continue;const o=(c.errorMessage??"").trim()||"Unknown error";n.set(o,(n.get(o)??0)+1)}return[...n.entries()].map(([c,o])=>({message:c,count:o})).sort((c,o)=>o.count-c.count).slice(0,e)}const ss=[{value:"7d",label:"7d"},{value:"14d",label:"14d"},{value:"30d",label:"30d"}];function ns(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 is={calls:{label:"Tool calls"},errors:{label:"Errors"}};function os(s){const e=U.c(4),{connectionId:n,orgId:c,timeframe:o}=s,i=V(),l=Ee(),a=ns(o),{data:r}=me({queryKey:ee.connectionActivity(n,o,c),queryFn:async()=>await l.call("MONITORING_LOGS_LIST",{startDate:a.startDate.toISOString(),endDate:a.endDate.toISOString(),connectionId:n,limit:2e3,offset:0}),staleTime:3e5}),{data:d}=me({queryKey:ee.connectionActivityErrors(n,o,c),queryFn:async()=>await l.call("MONITORING_LOGS_LIST",{startDate:a.startDate.toISOString(),endDate:a.endDate.toISOString(),connectionId:n,isError:!0,limit:1,offset:0}),staleTime:3e5}),u=kt(r?.logs??[],a,void 0,r?.total,d?.total),x=u.data,f=u.totalCalls>0,m=ts(r?.logs??[]),h=u.totalCalls>0?Math.round(u.totalErrors/u.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:u.totalCalls.toLocaleString()}),j]}),u.totalErrors>0&&t.jsxs("div",{children:[t.jsx("p",{className:"text-2xl font-semibold text-destructive tabular-nums",children:u.totalErrors.toLocaleString()}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("details.connectionActivity.errors")})]}),u.avgDurationMs>0&&t.jsxs("div",{children:[t.jsxs("p",{className:"text-2xl font-semibold text-foreground tabular-nums",children:[Math.round(u.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(Tt,{config:is,className:"h-16 w-full",children:t.jsxs(Dt,{data:x,barCategoryGap:"4%",children:[t.jsx(At,{content:t.jsx(Pt,{labelFormatter:rs}),cursor:{fill:"var(--muted)"}}),t.jsx($t,{dataKey:"calls",radius:[2,2,0,0],minPointSize:1,children:x.map(ls)})]})}),t.jsxs("div",{className:"flex justify-between px-3 mt-1 pb-3",children:[t.jsx("span",{className:"text-2xs text-muted-foreground",children:x[0]?.label}),t.jsx("span",{className:"text-2xs text-muted-foreground",children:x[x.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")})}),m.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:m.map(as)})]})]})}function as(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 ls(s,e){return t.jsx(Ot,{fill:s.errorRate>50?"var(--destructive)":"var(--chart-1)",fillOpacity:s.calls===0?.2:s.errorRate>50?.7:.85},`cell-${e}`)}function rs(s,e){const n=Array.isArray(e)?e[0]:void 0;return n&&typeof n=="object"&&"payload"in n?n.payload?.label??"":""}function cs(){const s=U.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 ds(s){const e=U.c(22),{connectionId:n}=s,c=V(),[o,i]=Q.useState("14d"),{org:l}=te();let a;e[0]!==c?(a=c("details.connectionActivity.activity"),e[0]=c,e[1]=a):a=e[1];let r;e[2]!==a?(r=t.jsx("div",{children:t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:a})}),e[2]=a,e[3]=r):r=e[3];let d;e[4]!==c?(d=c("details.connectionActivity.timeframe"),e[4]=c,e[5]=d):d=e[5];let u;e[6]!==o?(u=ss.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 rounded-lg transition-colors",o===j.value?"bg-card text-foreground shadow-edge":"text-muted-foreground hover:text-foreground"),children:j.label},j.value)),e[6]=o,e[7]=u):u=e[7];let x;e[8]!==d||e[9]!==u?(x=t.jsx("div",{role:"group","aria-label":d,className:"flex items-center gap-0.5 bg-muted rounded-lg p-0.5",children:u}),e[8]=d,e[9]=u,e[10]=x):x=e[10];let f;e[11]!==r||e[12]!==x?(f=t.jsxs("div",{className:"px-5 py-4 flex items-center justify-between",children:[r,x]}),e[11]=r,e[12]=x,e[13]=f):f=e[13];let m;e[14]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(cs,{}),e[14]=m):m=e[14];let h;e[15]!==n||e[16]!==l.id||e[17]!==o?(h=t.jsx(Q.Suspense,{fallback:m,children:t.jsx(os,{connectionId:n,orgId:l.id,timeframe:o})}),e[15]=n,e[16]=l.id,e[17]=o,e[18]=h):h=e[18];let g;return e[19]!==f||e[20]!==h?(g=t.jsxs("div",{className:"surface overflow-hidden",children:[f,h]}),e[19]=f,e[20]=h,e[21]=g):g=e[21],g}function ms(s){const e=U.c(15),{virtualMcp:n,org:c}=s,o=se();let i;e[0]!==o||e[1]!==c||e[2]!==n.id?(i=()=>{const x=crypto.randomUUID();o({to:"/$org/projects/$agentId",params:{org:c,agentId:n.id},search:{thread:x}})},e[0]=o,e[1]=c,e[2]=n.id,e[3]=i):i=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(ye,{size:16}),e[4]=l):l=e[4];let a;e[5]!==n.icon||e[6]!==n.title?(a=t.jsx(ae,{icon:n.icon,name:n.title,size:"xs",fallbackIcon:l}),e[5]=n.icon,e[6]=n.title,e[7]=a):a=e[7];let r;e[8]!==n.title?(r=t.jsx("span",{className:"flex-1 text-sm font-medium text-foreground truncate",children:n.title}),e[8]=n.title,e[9]=r):r=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(_e,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors shrink-0"}),e[10]=d):d=e[10];let u;return e[11]!==i||e[12]!==a||e[13]!==r?(u=t.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-3 rounded-lg hover:bg-accent transition-colors group text-left w-full",children:[a,r,d]}),e[11]=i,e[12]=a,e[13]=r,e[14]=u):u=e[14],u}function us(s){const e=U.c(7),{virtualMcps:n,org:c}=s;let o;if(e[0]!==c||e[1]!==n){let l;e[3]!==c?(l=a=>t.jsx(ms,{virtualMcp:a,org:c},a.id),e[3]=c,e[4]=l):l=e[4],o=n.map(l),e[0]=c,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 xs(s){const e=U.c(13),{connection:n}=s,c=V(),{org:o}=te();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 l=Mt(i);if(!(l.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 r;e[3]!==c?(r=c("details.connectionAgentsPanel.usedByAgents"),e[3]=c,e[4]=r):r=e[4];let d;e[5]!==r?(d=t.jsx("div",{className:"px-5 py-4 border-b border-border",children:t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:r})}),e[5]=r,e[6]=d):d=e[6];let u;e[7]!==o.slug||e[8]!==l?(u=t.jsx("div",{className:"px-5 py-4",children:t.jsx(us,{virtualMcps:l,org:o.slug})}),e[7]=o.slug,e[8]=l,e[9]=u):u=e[9];let x;return e[10]!==d||e[11]!==u?(x=t.jsxs("div",{className:"surface overflow-hidden",children:[d,u]}),e[10]=d,e[11]=u,e[12]=x):x=e[12],x}function ps(s){const e=U.c(35),{tools:n,connectionId:c,org:o}=s,i=V(),l=se(),{org:a}=te();let r;e[0]!==c||e[1]!==a.id||e[2]!==a.slug?(r={connectionId:c,orgId:a.id,orgSlug:a.slug},e[0]=c,e[1]=a.id,e[2]=a.slug,e[3]=r):r=e[3];const d=Ae(r),u=ke(c);let x;e[4]!==u||e[5]!==c?(x=u?Pe(u):c,e[4]=u,e[5]=c,e[6]=x):x=e[6];const f=x,[m,h]=Q.useState("");let g,j,N,_;if(e[7]!==f||e[8]!==d||e[9]!==l||e[10]!==o||e[11]!==m||e[12]!==i||e[13]!==n){const D=(n??[]).filter(fs),w=m.toLowerCase().trim(),$=w?D.filter(v=>v.name.toLowerCase().includes(w)||v.description&&v.description.toLowerCase().includes(w)):D;let O;e[18]!==f||e[19]!==l||e[20]!==o?(O=v=>{l({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:o,appSlug:f,collectionName:"tools",itemId:encodeURIComponent(v.name)}})},e[18]=f,e[19]=l,e[20]=o,e[21]=O):O=e[21];const P=O;N="flex flex-col h-full overflow-hidden";let T;e[22]!==i?(T=i("details.connectionUiTab.searchAppsPlaceholder"),e[22]=i,e[23]=T):T=e[23];let S;e[24]===Symbol.for("react.memo_cache_sentinel")?(S=v=>{v.key==="Escape"&&(h(""),v.target.blur())},e[24]=S):S=e[24],e[25]!==m||e[26]!==T?(_=t.jsx(Ft,{value:m,onChange:h,placeholder:T,onKeyDown:S}),e[25]=m,e[26]=T,e[27]=_):_=e[27],g="flex-1 overflow-auto p-5",j=$.length===0?t.jsx(Ce,{image:null,title:i(m?"details.connectionUiTab.noAppsFound":"details.connectionUiTab.noAppsAvailable"),description:i(m?"details.connectionUiTab.adjustSearchTerms":"details.connectionUiTab.noInteractiveUis")}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(320px,1fr))] gap-4",children:$.map(v=>{const z=ce(v._meta);return t.jsxs(Re,{size:"flush",className:"cursor-pointer transition-colors overflow-hidden gap-0",onClick:()=>P(v),children:[t.jsx("div",{className:"h-[200px] overflow-hidden border-b border-border",children:t.jsx(Q.Suspense,{fallback:t.jsx(Ue,{className:"h-full w-full"}),children:t.jsx(Ut,{resourceURI:z,toolInfo:{tool:v},displayMode:"inline",minHeight:200,maxHeight:200,client:d})})}),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:v.annotations?.title??v.name}),t.jsx(ot,{annotations:v.annotations,_meta:v._meta})]}),v.description&&t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:v.description})]})]},v.name)})}),e[7]=f,e[8]=d,e[9]=l,e[10]=o,e[11]=m,e[12]=i,e[13]=n,e[14]=g,e[15]=j,e[16]=N,e[17]=_}else g=e[14],j=e[15],N=e[16],_=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 C;return e[31]!==N||e[32]!==_||e[33]!==y?(C=t.jsxs("div",{className:N,children:[_,y]}),e[31]=N,e[32]=_,e[33]=y,e[34]=C):C=e[34],C}function fs(s){return!!ce(s._meta)}const je=[];function De(s){const e=s.replace(/[._]/g," ").trim().split(/\s+/),n=l=>l.charAt(0).toUpperCase()+l.slice(1),c=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&&c.has(i)?[o.pop(),...o].join(" "):o.join(" ")}function le(s){const e=U.c(5),{label:n}=s,c=V();let o;e[0]!==n||e[1]!==c?(o=c("details.connectionCapabilities.noItemsAvailable",{item:n}),e[0]=n,e[1]=c,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 hs(s){const e=U.c(68),{tools:n,prompts:c,resources:o,connectionId:i,org:l}=s,a=c===void 0?je:c,r=o===void 0?je:o,d=V(),u=se(),x=ke(i??"");let f;e[0]!==x||e[1]!==i?(f=x?Pe(x):i,e[0]=x,e[1]=i,e[2]=f):f=e[2];const m=f;let h;e[3]!==m||e[4]!==i||e[5]!==u||e[6]!==l?(h=function(I){!i||!l||u({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:m,collectionName:"tools",itemId:encodeURIComponent(I)}})},e[3]=m,e[4]=i,e[5]=u,e[6]=l,e[7]=h):h=e[7];const g=h;let j;e[8]!==i||e[9]!==l||e[10]!==n?(j=i&&l&&n.some(vs),e[8]=i,e[9]=l,e[10]=n,e[11]=j):j=e[11];const N=j;if(n.length+a.length+r.length===0){let b;e[12]!==d?(b=d("details.connectionCapabilities.capabilities"),e[12]=d,e[13]=b):b=e[13];let I;e[14]!==b?(I=t.jsx("h3",{className:"text-sm font-semibold text-foreground mb-1",children:b}),e[14]=b,e[15]=I):I=e[15];let k;e[16]!==d?(k=d("details.connectionCapabilities.noCapabilitiesDiscovered"),e[16]=d,e[17]=k):k=e[17];let F;e[18]!==k?(F=t.jsx("p",{className:"text-sm text-muted-foreground",children:k}),e[18]=k,e[19]=F):F=e[19];let W;return e[20]!==I||e[21]!==F?(W=t.jsxs("div",{className:"surface p-5",children:[I,F]}),e[20]=I,e[21]=F,e[22]=W):W=e[22],W}let y;e[23]!==d||e[24]!==n.length?(y=d("details.connectionCapabilities.toolsTab",{count:n.length}),e[23]=d,e[24]=n.length,e[25]=y):y=e[25];let C;e[26]!==y?(C=t.jsx(ie,{value:"tools",variant:"underline",children:y}),e[26]=y,e[27]=C):C=e[27];let D;e[28]!==N||e[29]!==d?(D=N&&t.jsx(ie,{value:"apps",variant:"underline",children:d("details.connectionCapabilities.uiTab")}),e[28]=N,e[29]=d,e[30]=D):D=e[30];let w;e[31]!==d?(w=d("details.connectionCapabilities.promptsTab"),e[31]=d,e[32]=w):w=e[32];let $;e[33]!==w?($=t.jsx(ie,{value:"prompts",variant:"underline",children:w}),e[33]=w,e[34]=$):$=e[34];let O;e[35]!==d?(O=d("details.connectionCapabilities.resourcesTab"),e[35]=d,e[36]=O):O=e[36];let P;e[37]!==O?(P=t.jsx(ie,{value:"resources",variant:"underline",children:O}),e[37]=O,e[38]=P):P=e[38];let T;e[39]!==$||e[40]!==P||e[41]!==C||e[42]!==D?(T=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:[C,D,$,P]})}),e[39]=$,e[40]=P,e[41]=C,e[42]=D,e[43]=T):T=e[43];let S;e[44]!==g||e[45]!==n?(S=n.length>0?n.map(b=>t.jsxs("button",{type:"button",className:"w-full flex items-start gap-3 px-5 py-3 text-left hover:bg-accent transition-colors cursor-pointer",onClick:()=>g(b.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(xt,{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(b.name)}),b.description&&t.jsx("div",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed line-clamp-2",children:b.description})]}),t.jsx(_e,{size:16,className:"text-muted-foreground shrink-0 mt-0.5"})]},b.name)):t.jsx(le,{label:"tools"}),e[44]=g,e[45]=n,e[46]=S):S=e[46];let v;e[47]!==S?(v=t.jsx(oe,{value:"tools",className:"h-auto",children:t.jsx("div",{className:"divide-y divide-border",children:S})}),e[47]=S,e[48]=v):v=e[48];let z;e[49]!==i||e[50]!==N||e[51]!==l||e[52]!==n?(z=N&&t.jsx(oe,{value:"apps",className:"h-auto min-h-[200px]",children:t.jsx(ps,{tools:n,connectionId:i,org:l})}),e[49]=i,e[50]=N,e[51]=l,e[52]=n,e[53]=z):z=e[53];let E;e[54]!==a?(E=a.length>0?a.map(js):t.jsx(le,{label:"prompts"}),e[54]=a,e[55]=E):E=e[55];let M;e[56]!==E?(M=t.jsx(oe,{value:"prompts",className:"h-auto",children:t.jsx("div",{className:"divide-y divide-border",children:E})}),e[56]=E,e[57]=M):M=e[57];let A;e[58]!==r?(A=r.length>0?r.map(gs):t.jsx(le,{label:"resources"}),e[58]=r,e[59]=A):A=e[59];let R;e[60]!==A?(R=t.jsx(oe,{value:"resources",className:"h-auto",children:t.jsx("div",{className:"divide-y divide-border",children:A})}),e[60]=A,e[61]=R):R=e[61];let p;return e[62]!==T||e[63]!==v||e[64]!==z||e[65]!==M||e[66]!==R?(p=t.jsx("div",{className:"surface overflow-hidden",children:t.jsxs(Et,{defaultValue:"tools",variant:"underline",children:[T,v,z,M,R]})}),e[62]=T,e[63]=v,e[64]=z,e[65]=M,e[66]=R,e[67]=p):p=e[67],p}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(ut,{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 js(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(Rt,{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 vs(s){return ce(s._meta)}function bs(s){const e=U.c(13),{connection:n,displayTitle:c}=s,o=c??n.title;let i;e[0]!==n.icon||e[1]!==o?(i=t.jsx(ae,{icon:n.icon,name:o,size:"md",className:"shrink-0"}),e[0]=n.icon,e[1]=o,e[2]=i):i=e[2];let l;e[3]!==o?(l=t.jsx(Fe.Title,{children:o}),e[3]=o,e[4]=l):l=e[4];let a;e[5]!==n.description?(a=n.description&&t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed line-clamp-2",children:n.description}),e[5]=n.description,e[6]=a):a=e[6];let r;e[7]!==l||e[8]!==a?(r=t.jsxs("div",{className:"flex-1 min-w-0",children:[l,a]}),e[7]=l,e[8]=a,e[9]=r):r=e[9];let d;return e[10]!==i||e[11]!==r?(d=t.jsxs("div",{className:"flex items-center px-4 md:px-8 bg-background border-b border-border shrink-0 gap-3 py-4",children:[i,r]}),e[10]=i,e[11]=r,e[12]=d):d=e[12],d}function Ns({form:s,connection:e,hasOAuthToken:n,onReauthenticate:c,onRemoveOAuth:o}){const i=V(),l=ue({control:s.control,name:"ui_type"}),a=ue({control:s.control,name:"connection_url"}),{stdioEnabled:r}=Ve(),d=(()=>{if(typeof a!="string"||!a)return!1;try{const m=new URL(a);return m.hostname==="api.githubcopilot.com"&&m.pathname.replace(/\/+$/,"")==="/mcp"}catch{return!1}})(),u=r||e.connection_type==="STDIO",x=e.connection_type==="VIRTUAL",f=x?Kt(e.connection_url):null;return x?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(q,{control:s.control,name:"ui_type",render:({field:m})=>t.jsxs(H,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.connection")}),l!=="NPX"&&l!=="STDIO"?t.jsxs("div",{className:"flex items-stretch rounded-lg border border-border overflow-hidden",children:[t.jsxs(pe,{value:m.value,onValueChange:m.onChange,children:[t.jsx(L,{children:t.jsxs(fe,{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(ne,{className:"w-4 h-4 text-muted-foreground shrink-0"}),t.jsx(he,{})]})}),t.jsxs(ge,{children:[t.jsx(G,{value:"HTTP",children:i("details.connectionSidebar.http")}),t.jsx(G,{value:"SSE",children:i("details.connectionSidebar.sse")}),t.jsx(G,{value:"Websocket",children:i("details.connectionSidebar.websocket")}),u&&t.jsxs(t.Fragment,{children:[t.jsx(G,{value:"NPX",children:i("details.connectionSidebar.npxPackage")}),t.jsx(G,{value:"STDIO",children:i("details.connectionSidebar.customCommand")})]})]})]}),t.jsx("div",{className:"w-px bg-border"}),t.jsx(q,{control:s.control,name:"connection_url",render:({field:h})=>t.jsx(H,{className:"flex-1 min-w-0",children:t.jsx(L,{children:t.jsx(J,{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(pe,{value:m.value,onValueChange:m.onChange,children:[t.jsx(L,{children:t.jsx(fe,{className:"h-10",children:t.jsx(he,{})})}),t.jsxs(ge,{children:[t.jsx(G,{value:"HTTP",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ne,{className:"w-4 h-4"}),i("details.connectionSidebar.http")]})}),t.jsx(G,{value:"SSE",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ne,{className:"w-4 h-4"}),i("details.connectionSidebar.sse")]})}),t.jsx(G,{value:"Websocket",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ne,{className:"w-4 h-4"}),i("details.connectionSidebar.websocket")]})}),u&&t.jsxs(t.Fragment,{children:[t.jsx(G,{value:"NPX",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Gt,{className:"w-4 h-4"}),i("details.connectionSidebar.npxPackage")]})}),t.jsx(G,{value:"STDIO",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(qt,{className:"w-4 h-4"}),i("details.connectionSidebar.customCommand")]})})]})]})]}),t.jsx(X,{})]})}),l==="NPX"&&t.jsx(q,{control:s.control,name:"npx_package",render:({field:m})=>t.jsxs(H,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.npmPackage")}),t.jsx(L,{children:t.jsx(J,{placeholder:i("details.connectionSidebar.npmPackagePlaceholder"),...m,value:m.value||"",className:"h-10"})}),t.jsx(X,{})]})}),l==="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsx(q,{control:s.control,name:"stdio_command",render:({field:m})=>t.jsxs(H,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.command")}),t.jsx(L,{children:t.jsx(J,{placeholder:i("details.connectionSidebar.commandPlaceholder"),...m,value:m.value||"",className:"h-10"})}),t.jsx(X,{})]})}),t.jsx(q,{control:s.control,name:"stdio_args",render:({field:m})=>t.jsxs(H,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.arguments")}),t.jsx(L,{children:t.jsx(J,{placeholder:i("details.connectionSidebar.argumentsPlaceholder"),...m,value:m.value||"",className:"h-10"})}),t.jsx("p",{className:"text-xs text-muted-foreground",children:i("details.connectionSidebar.spaceSeparatedArguments")}),t.jsx(X,{})]})})]}),t.jsx(q,{control:s.control,name:"stdio_cwd",render:({field:m})=>t.jsxs(H,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.workingDirectory")}),t.jsx(L,{children:t.jsx(J,{placeholder:i("details.connectionSidebar.workingDirectoryPlaceholder"),...m,value:m.value||"",className:"h-10"})}),t.jsx(X,{})]})})]}),(l==="NPX"||l==="STDIO")&&t.jsx(q,{control:s.control,name:"env_vars",render:({field:m})=>t.jsxs(H,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.environmentVariables")}),t.jsx(L,{children:t.jsx(Je,{value:m.value??[],onChange:m.onChange})}),t.jsx(X,{})]})}),l!=="NPX"&&l!=="STDIO"&&t.jsx(q,{control:s.control,name:"connection_token",render:({field:m})=>t.jsxs(H,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i(d?"details.connectionSidebar.githubPersonalAccessToken":"details.connectionSidebar.token")}),n?t.jsx("div",{className:"flex items-center gap-2",children:t.jsxs(Le,{children:[t.jsx(Be,{asChild:!0,children:t.jsx("button",{type:"button",className:"inline-flex items-center gap-1.5 cursor-pointer",children:t.jsxs(Vt,{variant:"success",className:"gap-1.5",children:[t.jsx(Lt,{size:12}),i("details.connectionSidebar.authenticatedViaOAuth"),t.jsx(Bt,{size:12})]})})}),t.jsxs(Ge,{align:"start",children:[t.jsxs(xe,{onClick:c,children:[t.jsx(pt,{size:16}),i("details.connectionSidebar.reauthenticate")]}),t.jsxs(xe,{variant:"destructive",onClick:o,children:[t.jsx(re,{size:16}),i("details.connectionSidebar.removeOAuth")]})]})]})}):e.connection_token&&m.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:()=>m.onChange(""),className:"absolute right-2 top-1/2 -translate-y-1/2 p-1 hover:bg-accent opacity-0 group-hover:opacity-100 transition-opacity 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(L,{children:t.jsx(J,{type:"password",placeholder:i(d?"details.connectionSidebar.pasteYourGitHubPat":"details.connectionSidebar.enterAccessToken"),...m,value:m.value||"",className:"h-10"})}),d&&t.jsxs(bt,{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(X,{})]})})]})}function Ss(s){return s.command==="npx"}function ys(s){return s.args?.find(e=>!e.startsWith("-"))??""}function _s(s){return{command:s.command,args:s.args?.join(" ")??"",cwd:s.cwd??""}}function ve(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"&&Xt(s.connection_headers)){const c=s.connection_headers,o=Ze(c.envVars);if(Ss(c)){const l=ys(c);return{...n,ui_type:"NPX",connection_url:"",connection_token:null,npx_package:l,stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:o}}const i=_s(c);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,c=!1,o=null,i=null;return s.ui_type==="NPX"?(e="STDIO",n="",i=et(s.npx_package||"",s.env_vars||[])):s.ui_type==="STDIO"?(e="STDIO",n="",i=tt(s.stdio_command||"",s.stdio_args||"",s.stdio_cwd,s.env_vars||[])):(e=s.ui_type,n=s.connection_url||"",c=s.connection_token!==null&&s.connection_token!==void 0,o=s.connection_token||null),{title:s.title,description:s.description||null,icon:s.icon??null,connection_type:e,connection_url:n,...c&&{connection_token:o},...i&&{connection_headers:i},configuration_state:s.configuration_state??null,configuration_scopes:s.configuration_scopes??null}}function ws({connection:s,connectionId:e,org:n,isUpdating:c,tools:o,prompts:i,resources:l,siblings:a}){const r=V(),d=se({from:"/$org/settings/connections/$appSlug"}),u=Xe(),x=Te(),{org:f}=te(),m=wt({onSuccess:()=>{a.length<=1&&d({to:"/$org/settings/connections",params:{org:n}})}}),[h,g]=Q.useState(null),[j,N]=Q.useState(!1),_=we({connectionId:e}),{data:y}=at(),C=y?.data?.members??[],D=h??s,w=C.find(p=>p.userId===D.created_by),O=s?.connection_type==="VIRTUAL"||_.isAuthenticated,P={...s,tools:o},T=st(P,Yt),S=Qe({resolver:We(Qt),values:ve(h??s)}),v=S.formState.isDirty,z=async()=>{if(!await S.trigger())return;const b=S.getValues(),I=Cs(b),k=h?.id??e;await x.update.mutateAsync({id:k,data:I}),S.reset(b)},E=()=>{S.reset(ve(h??s))},M=async p=>{const b=s.configuration_scopes?.length?s.configuration_scopes.join(" "):void 0,{token:I,tokenInfo:k,error:F}=await rt({connectionId:p,orgSlug:f.slug,...b?{scope:b}:{}});if(F||!I){Y.error(r("details.connection.authFailed",{error:F??""}));return}if(k)try{const Z=await fetch(`/api/${f.slug}/connections/${p}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:k.accessToken,refreshToken:k.refreshToken,expiresIn:k.expiresIn,scope:k.scope,clientId:k.clientId,clientSecret:k.clientSecret,tokenEndpoint:k.tokenEndpoint})});if(!Z.ok)console.error("Failed to save OAuth token:",await Z.text()),await x.update.mutateAsync({id:p,data:{connection_token:I}});else try{await x.update.mutateAsync({id:p,data:{}})}catch($e){console.warn("Failed to refresh connection tools after OAuth:",$e)}}catch(Z){console.error("Error saving OAuth token:",Z),await x.update.mutateAsync({id:p,data:{connection_token:I}})}else await x.update.mutateAsync({id:p,data:{connection_token:I}});const W=new URL(`/api/${f.slug}/mcp/${p}`,window.location.origin);await u.invalidateQueries({queryKey:ee.isMCPAuthenticated(W.href,null)}),await u.invalidateQueries({queryKey:ee.mcpClientPrefix()}),Y.success(r("details.connection.authSuccess"))},A=()=>M(s.id),R=async()=>{try{const p=await fetch(`/api/${f.slug}/connections/${s.id}/oauth-token`,{method:"DELETE",credentials:"include"});if(!p.ok){const I=await p.text();Y.error(r("details.connection.failedRemoveOAuth",{error:I}));return}const b=new URL(`/api/${f.slug}/mcp/${s.id}`,window.location.origin);await u.invalidateQueries({queryKey:ee.isMCPAuthenticated(b.href,null)}),Y.success(r("details.connection.oauthRemoved"))}catch(p){console.error("Error removing OAuth token:",p),Y.error(r("details.connection.failedRemoveOAuthError"))}};return t.jsxs(t.Fragment,{children:[t.jsx(It,{...m}),t.jsx(ft,{open:h!==null,onOpenChange:p=>{p||g(null)},children:t.jsxs(ht,{side:"right",className:"sm:max-w-[520px] p-0 flex flex-col gap-0 overflow-hidden",children:[t.jsxs(gt,{className:"px-4 py-3 md:px-6 md:py-4 border-b border-border shrink-0",children:[t.jsx(jt,{className:"text-base",children:h?.title??s.title}),t.jsx(vt,{className:"text-xs",children:r("details.connection.settingsDescription")}),w&&t.jsxs("div",{className:"flex items-center gap-1.5 pt-1",children:[t.jsx("span",{className:"text-xs text-muted-foreground",children:r("details.connection.connectedBy")}),t.jsx(lt,{url:w.user?.image??void 0,fallback:w.user?.name??w.user?.email??"?",size:"3xs",shape:"circle"}),t.jsx("span",{className:"text-xs font-medium text-foreground",children:w.user?.name||w.user?.email})]})]}),t.jsxs(Nt,{...S,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(q,{control:S.control,name:"title",render:({field:p})=>t.jsxs(H,{children:[t.jsx(K,{children:r("details.connection.nameLabel")}),t.jsx(L,{children:t.jsx(J,{...p})}),t.jsx(X,{})]})}),t.jsx(q,{control:S.control,name:"description",render:({field:p})=>t.jsxs(H,{children:[t.jsx(K,{children:r("details.connection.descriptionLabel")}),t.jsx(L,{children:t.jsx(J,{...p,value:p.value||""})}),t.jsx(X,{})]})})]}),t.jsx(Ns,{form:S,connection:h??s,hasOAuthToken:_.hasOAuthToken,onReauthenticate:A,onRemoveOAuth:R}),t.jsx(nt,{connection:h??s,form:S,hasMcpBinding:T,isMCPAuthenticated:O,supportsOAuth:_.supportsOAuth,isServerError:_.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(B,{onClick:z,disabled:!v||c,className:"flex-1",children:r(c?"details.connection.savingButton":"details.connection.saveButton")}),v&&t.jsx(B,{variant:"outline",onClick:E,children:r("details.connection.undoButton")}),t.jsxs(B,{variant:"outline",className:"gap-2 text-muted-foreground hover:text-destructive",onClick:()=>{const p=h??s;g(null),m.requestDelete(p)},children:[t.jsx(re,{size:15}),r("details.connection.deleteButton")]})]})]},h?.id??s.id)]})}),t.jsx(it,{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(ds,{connectionId:e}),t.jsxs("div",{className:"flex flex-col gap-5",children:[t.jsx(es,{instances:a,onConfigure:p=>g(p),onAuthenticate:p=>M(p.id),onDelete:p=>m.requestDelete(p),onToggleStatus:async(p,b)=>{try{await x.update.mutateAsync({id:p.id,data:{status:b}}),Y.success(r(b==="active"?"details.connection.connectionEnabled":"details.connection.connectionDisabled"))}catch{Y.error(r("details.connection.failedUpdateConnection"))}},isAdding:j,onAdd:async()=>{N(!0);try{const p=a[0]??s,b=p.title.replace(/\s*\(\d+\)\s*$/,""),I=a.length+1,k=`${b} (${I})`,F=Ye("conn");await x.create.mutateAsync({id:F,title:k,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});const W=new URL(`/api/${f.slug}/mcp/${F}`,window.location.origin),Z=await Ct({url:W.href,token:null,orgId:f.id});Z.supportsOAuth&&!Z.isAuthenticated&&await M(F)}catch(p){console.error("Failed to add connection instance:",p),Y.error(r("details.connection.failedAddInstance"))}finally{N(!1)}}}),t.jsx(xs,{connection:s})]}),t.jsx("div",{className:"@3xl:col-span-2",children:t.jsx(hs,{tools:o,prompts:i,resources:l,connectionId:e,org:n})})]})})]})})]})}function Is(){const s=U.c(43),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 c=se(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:l}=He(o),{org:a}=te(),r=Te();let d;s[2]!==i?(d={slug:i},s[2]=i,s[3]=d):d=s[3];const u=St(d),[x,f]=Q.useState(null),m=u.find(A=>A.id===x)??u[0]??null;m&&m.id!==x&&f(m.id);const h=m?.id??"",g=Ae({connectionId:h||null,orgId:a.id,orgSlug:a.slug});let j;s[4]!==g?(j={client:g},s[4]=g,s[5]=j):j=s[5];const{data:N}=yt(j),_=N?N.tools.map($s):(m?.tools??[]).map(Ds);let y;e:{if(u.length<=1){y=_;break e}const A=new Set,R=[],p=As;for(const b of u){const I=b.id===h?_:p(b.tools);for(const k of I)A.has(k.name)||(A.add(k.name),R.push(k))}y=R.length>0?R:_}const C=y;let D;s[6]!==g?(D={client:g},s[6]=g,s[7]=D):D=s[7];const{data:w}=_t(D);let $;s[8]!==g?($={client:g},s[8]=g,s[9]=$):$=s[9];const{data:O}=Ke($);let P;s[10]!==w?.prompts?(P=w?.prompts??[],s[10]=w?.prompts,s[11]=P):P=s[11];let T;s[12]!==P?(T=P.map(Ts),s[12]=P,s[13]=T):T=s[13];const S=T;let v;s[14]!==O?.resources?(v=O?.resources??[],s[14]=O?.resources,s[15]=v):v=s[15];let z;s[16]!==v?(z=v.map(ks),s[16]=v,s[17]=z):z=s[17];const E=z;if(!m){let A;s[18]!==e?(A=e("details.connection.notFoundTitle"),s[18]=e,s[19]=A):A=s[19];let R;s[20]!==e?(R=e("details.connection.notFoundDescription"),s[20]=e,s[21]=R):R=s[21];let p;s[22]!==c||s[23]!==l?(p=()=>c({to:"/$org/settings/connections",params:{org:l}}),s[22]=c,s[23]=l,s[24]=p):p=s[24];let b;s[25]!==e?(b=e("details.connection.backButton"),s[25]=e,s[26]=b):b=s[26];let I;s[27]!==p||s[28]!==b?(I=t.jsx(B,{variant:"outline",onClick:p,children:b}),s[27]=p,s[28]=b,s[29]=I):I=s[29];let k;return s[30]!==A||s[31]!==R||s[32]!==I?(k=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ce,{title:A,description:R,actions:I})}),s[30]=A,s[31]=R,s[32]=I,s[33]=k):k=s[33],k}let M;return s[34]!==r.update.isPending||s[35]!==C||s[36]!==m||s[37]!==h||s[38]!==l||s[39]!==S||s[40]!==E||s[41]!==u?(M=t.jsx(ws,{org:l,connection:m,connectionId:h,isUpdating:r.update.isPending,tools:C,prompts:S,resources:E,siblings:u}),s[34]=r.update.isPending,s[35]=C,s[36]=m,s[37]=h,s[38]=l,s[39]=S,s[40]=E,s[41]=u,s[42]=M):M=s[42],M}function ks(s){return{name:s.name,description:s.description,uri:s.uri}}function Ts(s){return{name:s.name,description:s.description}}function As(s){return(s??[]).map(Ps)}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(s){return{name:s.name,description:s.description,inputSchema:s.inputSchema,outputSchema:s.outputSchema,annotations:s.annotations,_meta:s._meta}}function Os(){const s=U.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(qe,{children:t.jsx(Q.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(Is,{})})}),s[0]=e):e=s[0],e}function yi(){const s=U.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Os,{}),s[0]=e):e=s[0],e}export{yi as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as z,j as c,I as T,B as N}from"./index-
|
|
1
|
+
import{c as z,j as c,I as T,B as N}from"./index-ifZGovK1.js";import{s as A}from"./Plus-vkM1FxVr.js";import{s as H}from"./Trash01-Z1ezoy3S.js";function S(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(s=>e.includes(s))||["sk_","rk_","whsec_","pk_live","sk_live"].some(s=>e.startsWith(s))||["_key","_secret","_token","_password","_auth","_pat"].some(s=>e.endsWith(s)))}function $(n){const e=z.c(34),{value:t,onChange:r,keyPlaceholder:o,valuePlaceholder:s,className:k}=n,p=o===void 0?"VARIABLE_NAME":o,h=s===void 0?"value...":s;let _;e[0]!==r||e[1]!==t?(_=()=>{r([...t,{key:"",value:""}])},e[0]=r,e[1]=t,e[2]=_):_=e[2];const C=_;let x;e[3]!==r||e[4]!==t?(x=l=>{r(t.filter((u,i)=>i!==l))},e[3]=r,e[4]=t,e[5]=x):x=e[5];const y=x;let b;e[6]!==r||e[7]!==t?(b=(l,u)=>{const i=[...t],a=i[l];a&&(i[l]={key:u,value:a.value},r(i))},e[6]=r,e[7]=t,e[8]=b):b=e[8];const v=b;let P;e[9]!==r||e[10]!==t?(P=(l,u)=>{const i=[...t],a=i[l];a&&(i[l]={key:a.key,value:u},r(i))},e[9]=r,e[10]=t,e[11]=P):P=e[11];const g=P;let f;if(e[12]!==v||e[13]!==y||e[14]!==g||e[15]!==p||e[16]!==t||e[17]!==h){let l;e[19]!==v||e[20]!==y||e[21]!==g||e[22]!==p||e[23]!==h?(l=(u,i)=>c.jsxs("div",{className:"flex gap-2 items-center",children:[c.jsx(T,{placeholder:p,value:u.key,onChange:a=>v(i,a.target.value),className:"h-10 flex-1 font-mono"}),c.jsx(T,{type:S(u.key)?"password":"text",placeholder:h,value:u.value,onChange:a=>g(i,a.target.value),className:"h-10 flex-1"}),c.jsx(N,{type:"button",variant:"ghost-destructive",size:"icon",className:"size-10 shrink-0",onClick:()=>y(i),children:c.jsx(H,{size:16})})]},i),e[19]=v,e[20]=y,e[21]=g,e[22]=p,e[23]=h,e[24]=l):l=e[24],f=t.map(l),e[12]=v,e[13]=y,e[14]=g,e[15]=p,e[16]=t,e[17]=h,e[18]=f}else f=e[18];let w;e[25]===Symbol.for("react.memo_cache_sentinel")?(w=c.jsx(A,{size:16,className:"mr-1"}),e[25]=w):w=e[25];let m;e[26]!==C?(m=c.jsxs(N,{type:"button",variant:"outline",size:"sm",className:"w-full h-9 text-muted-foreground",onClick:C,children:[w,"Add Environment Variable"]}),e[26]=C,e[27]=m):m=e[27];let d;e[28]!==f||e[29]!==m?(d=c.jsxs("div",{className:"flex flex-col gap-2",children:[f,m]}),e[28]=f,e[29]=m,e[30]=d):d=e[30];let E;return e[31]!==k||e[32]!==d?(E=c.jsx("div",{className:k,children:d}),e[31]=k,e[32]=d,e[33]=E):E=e[33],E}function R(n){const e={};for(const{key:t,value:r}of n)t.trim()&&(e[t.trim()]=r);return e}function K(n){return n?Object.entries(n).map(([e,t])=>({key:e,value:t})):[]}function j(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 W(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 o=e.slice(1).find(s=>!s.startsWith("-"));return o?{packageName:o}:null}function B(n){const{uiType:e}=n,t=j(n.connectionUrl??"");if((e==="HTTP"||e==="SSE"||e==="Websocket")&&t===j("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 G(n){if(n.registryItems.length===0||n.uiType!=="HTTP"&&n.uiType!=="SSE"&&n.uiType!=="Websocket")return null;const e=j(n.connectionUrl??"");if(!e)return null;const t=n.registryItems.find(s=>(s.server?.remotes??[]).some(p=>j(p.url??"")===e));if(!t)return null;const r=t.title||t.name||t.server?.title||t.server?.name||"",o=t.server?.description||t.description||t.summary||null;return r?{id:"registry",title:r,description:o}:null}function U(n,e){const t={command:"npx",args:["-y",n]},r=R(e);return Object.keys(r).length>0&&(t.envVars=r),t}function M(n,e,t,r){const o={command:n};e.trim()&&(o.args=e.trim().split(/\s+/)),t?.trim()&&(o.cwd=t.trim());const s=R(r);return Object.keys(s).length>0&&(o.envVars=s),o}export{$ as E,G as a,U as b,M as c,B as i,W as p,K as r};
|