decocms 4.504.1 → 4.504.3
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-Cx07-cYR.js → ActiveShapeUtils-RZxJo9yZ.js} +1 -1
- package/dist/client/assets/{AlertCircle-Bec1dxaS.js → AlertCircle-Bd_c5lvx.js} +1 -1
- package/dist/client/assets/{AreaChart-AYJHOtjZ.js → AreaChart-B4uhU_-I.js} +1 -1
- package/dist/client/assets/{ArrowLeft-B66-ad90.js → ArrowLeft-BEDsoU4s.js} +1 -1
- package/dist/client/assets/{ArrowUp-CSeqbspv.js → ArrowUp-BlmIqgms.js} +1 -1
- package/dist/client/assets/{BarChart-CDSH2Akh.js → BarChart-CyJo_rQ-.js} +1 -1
- package/dist/client/assets/{Building02-Bu4UAsgO.js → Building02-egDXvjGT.js} +1 -1
- package/dist/client/assets/{CategoricalChart-iujTK0KL.js → CategoricalChart-DESa7bJ2.js} +1 -1
- package/dist/client/assets/{CheckCircle-BSvXc66Q.js → CheckCircle-DwYX4v4z.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-n7b_5Q6B.js → ChevronSelectorVertical-yrgeHjmf.js} +1 -1
- package/dist/client/assets/{ChevronUp-bmzgw7dV.js → ChevronUp-BWLwOWUB.js} +1 -1
- package/dist/client/assets/{Copy01-BISq6vrL.js → Copy01-D9EWjRj_.js} +1 -1
- package/dist/client/assets/{CreditCard01-CbXaQViz.js → CreditCard01-D-2H38IE.js} +1 -1
- package/dist/client/assets/{DotsVertical-M1fm8bjv.js → DotsVertical-Czz64uuc.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-RuQNhaXV.js → ErrorBarContext-P_EddvG-.js} +1 -1
- package/dist/client/assets/{Globe04-BRIK-LcF.js → Globe04-Cq9w75Dt.js} +1 -1
- package/dist/client/assets/{Image01-C8Z3a6q4.js → Image01-Dis3SEGR.js} +1 -1
- package/dist/client/assets/{Key01-CAPfBcFM.js → Key01-Dpml-zEF.js} +1 -1
- package/dist/client/assets/{Link01-DJt14Rj5.js → Link01-CH9KeNiW.js} +1 -1
- package/dist/client/assets/{LinkBroken01-B6cSnLw2.js → LinkBroken01-XywQ_V_L.js} +1 -1
- package/dist/client/assets/{Monitor01-BNRWrf3F.js → Monitor01-Cgbhw-lc.js} +1 -1
- package/dist/client/assets/{Play-CB3VpTFO.js → Play-l_x93PVH.js} +1 -1
- package/dist/client/assets/{Plus-DmY-I-W1.js → Plus-B78UgIQj.js} +1 -1
- package/dist/client/assets/{SearchMd-Dqev4UbC.js → SearchMd-Dqn_93IA.js} +1 -1
- package/dist/client/assets/{Sector-NYaG1AEA.js → Sector-Di1ZTW0S.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-Crf2xSz3.js → ShoppingBag01-DFlLGvQA.js} +1 -1
- package/dist/client/assets/{Sun-DJ4L7xwP.js → Sun-DIgdvn0A.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BspP-O9B.js → SwitchHorizontal01-C2oPVYY7.js} +1 -1
- package/dist/client/assets/{Tool01-CbGwYE-2.js → Tool01-CgbvcQme.js} +1 -1
- package/dist/client/assets/{Trash01-DArHDncW.js → Trash01-DgiFlWKM.js} +1 -1
- package/dist/client/assets/{Upload01-DlUMQy0J.js → Upload01-CHvq8vCH.js} +1 -1
- package/dist/client/assets/{User01-B-tTyVsO.js → User01-B5touKPl.js} +1 -1
- package/dist/client/assets/{UserSquare-zw-tgJGh.js → UserSquare-BbO_BuU-.js} +1 -1
- package/dist/client/assets/{Users01-BI0nawB5.js → Users01-zLwSSr3g.js} +1 -1
- package/dist/client/assets/{XAxis-D40NyhoU.js → XAxis-DDx6ChY_.js} +1 -1
- package/dist/client/assets/{XClose-DxE71MU7.js → XClose-DDA2dBHO.js} +1 -1
- package/dist/client/assets/{ZoomOut-Cyw3AXuM.js → ZoomOut-WxvethXT.js} +1 -1
- package/dist/client/assets/{access-gate-BE8SqF7m.js → access-gate-4xSYYx4U.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-D59AnSQs.js → add-connection-dialog-7GPeDba3.js} +1 -1
- package/dist/client/assets/{agent-analytics-CullbrRF.js → agent-analytics-XCL_VNP9.js} +1 -1
- package/dist/client/assets/agent-app-Cj9pvNzU.js +1 -0
- package/dist/client/assets/{agent-assets-D6KY0tjV.js → agent-assets-CM5amxXd.js} +1 -1
- package/dist/client/assets/{agent-automation-BPYqK28y.js → agent-automation-D9JOPD82.js} +1 -1
- package/dist/client/assets/{agent-automations--Qo-l1fi.js → agent-automations-ChIU3McM.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DGgWflBR.js → agent-connect-sources-BPYqcqql.js} +1 -1
- package/dist/client/assets/agent-deck-R12yitrT.js +1 -0
- package/dist/client/assets/{agent-e2e-COewOX58.js → agent-e2e-CjtLVSXK.js} +1 -1
- package/dist/client/assets/{agent-experiments-MT61jDl1.js → agent-experiments-BMdpGEs9.js} +1 -1
- package/dist/client/assets/{agent-file-DecvJxa1.js → agent-file-DuM0L2Hq.js} +1 -1
- package/dist/client/assets/{agent-hosting-DW-JvZV7.js → agent-hosting-8UkWsAzU.js} +1 -1
- package/dist/client/assets/{agent-icon-Czh6MNam.js → agent-icon-BbVfkRpF.js} +1 -1
- package/dist/client/assets/agent-library-_gmvdC7i.js +1 -0
- package/dist/client/assets/agent-library-file-CfdnKs5b.js +1 -0
- package/dist/client/assets/{agent-monitor-BEgctWY1.js → agent-monitor-BeKqXuC8.js} +1 -1
- package/dist/client/assets/{agent-overview-CP1VKdfr.js → agent-overview-DmybxXjD.js} +1 -1
- package/dist/client/assets/{agent-releases-BqBTam8W.js → agent-releases-CkbjtasY.js} +1 -1
- package/dist/client/assets/agent-settings-DUDJVIpC.js +1 -0
- package/dist/client/assets/{agent-site-editor-CuYMD6kh.js → agent-site-editor-CL5B6c8U.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-D33VbdRo.js +2 -0
- package/dist/client/assets/agent-site-editor-content-DLfhU1Mc.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-Cn2_zMbD.js +1 -0
- package/dist/client/assets/agent-view-D-m8H7w5.js +1 -0
- package/dist/client/assets/{agent-view-guard-D0QGa17N.js → agent-view-guard-DUKf6IhH.js} +1 -1
- package/dist/client/assets/{agents-list-BT9TpMpA.js → agents-list-DbB_LLEt.js} +1 -1
- package/dist/client/assets/{ai-providers-DykxIfM3.js → ai-providers-BaWDS2ay.js} +1 -1
- package/dist/client/assets/{alert-D-kHUOW5.js → alert-CKvl4oEg.js} +1 -1
- package/dist/client/assets/{alert-dialog-D1kkgyaQ.js → alert-dialog-BUOq5Ccz.js} +1 -1
- package/dist/client/assets/{analytics-sections-CFj-EITt.js → analytics-sections-CPuiYHls.js} +1 -1
- package/dist/client/assets/api-keys-CmDCt2I3.js +1 -0
- package/dist/client/assets/{api-keys-CQSDswwH.js → api-keys-DgmBxzOS.js} +1 -1
- package/dist/client/assets/{app-editor-Dr8QE24J.js → app-editor-vmbuUyTA.js} +1 -1
- package/dist/client/assets/{asset-utils-DyAwxctJ.js → asset-utils-DUui8ODR.js} +1 -1
- package/dist/client/assets/{auth-eKkR4KqF.js → auth-Dvjx-0pF.js} +1 -1
- package/dist/client/assets/{auth-catchall-DcEJgoW5.js → auth-catchall-DOX1kvcj.js} +1 -1
- package/dist/client/assets/{auth-entry-DN1yBH_X.js → auth-entry-DCkFZRcX.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DQptZiat.js → auth-split-layout-TKe_keEh.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CFzJEYoH.js → authenticate-and-persist-oauth-ESA9MWa7.js} +1 -1
- package/dist/client/assets/{automation-list-row-Cz8Wl6TZ.js → automation-list-row-md1xazcM.js} +1 -1
- package/dist/client/assets/{automation-runs-ZQZ-ZfdL.js → automation-runs-CErImxH6.js} +1 -1
- package/dist/client/assets/{automations-Bi5MrN34.js → automations-Ceb5VwTT.js} +1 -1
- package/dist/client/assets/{autosend-Cp8JwTOk.js → autosend-D2AjmwKk.js} +1 -1
- package/dist/client/assets/{avatar-DdSak0Sb.js → avatar-Bkg-M2--.js} +1 -1
- package/dist/client/assets/{badge-Dmtt-CEm.js → badge-BHSeIY_1.js} +1 -1
- package/dist/client/assets/{block-document-D6HEkp1z.js → block-document-DBTvACJU.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-BAqnuZhZ.js → blocks-preview-workspace-context-C_CMlPGv.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-BNV3yj99.js → blocks-tab-states-DFZ8hczy.js} +3 -3
- package/dist/client/assets/{blog-schema-C2E88VA3.js → blog-schema-SBli8lb-.js} +1 -1
- package/dist/client/assets/{board-analytics-LuwxUF7A.js → board-analytics-C8-bFRsB.js} +1 -1
- package/dist/client/assets/{buckets-D4C_xVrZ.js → buckets-CfX0kwD-.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-D9tpl3BX.js → build-improve-prompt-doc-BDsxrmiR.js} +1 -1
- package/dist/client/assets/{calendar-BMATLdVs.js → calendar-BGwUIW_v.js} +1 -1
- package/dist/client/assets/{capability-load-error-DiGMeo-2.js → capability-load-error-B5_k1Nfi.js} +1 -1
- package/dist/client/assets/{category-editor-Bu6l5zLZ.js → category-editor-Rc-G1Y5c.js} +1 -1
- package/dist/client/assets/{chart-CjhNJQDa.js → chart-Bl8bk0Xu.js} +1 -1
- package/dist/client/assets/{chat-context-7iPEBonn.js → chat-context-B8ZyAt_m.js} +1 -1
- package/dist/client/assets/{chat-draft-g8x2IwR8.js → chat-draft-DwejBqhn.js} +1 -1
- package/dist/client/assets/{checkbox-xsx9w-sP.js → checkbox-DXc9jE-k.js} +1 -1
- package/dist/client/assets/{choose-editor-r9EQMwQK.js → choose-editor-CceUsAKb.js} +1 -1
- package/dist/client/assets/{cli-auth-success-mhWAQy14.js → cli-auth-success-Cn4pvmR8.js} +1 -1
- package/dist/client/assets/{client-icons-B4guPQZd.js → client-icons-DICBBMpW.js} +1 -1
- package/dist/client/assets/cms-settings-editor-DNNaHBfM.js +1 -0
- package/dist/client/assets/{collapsible-zZncAZBc.js → collapsible-TduD25aU.js} +1 -1
- package/dist/client/assets/{collection-detail-ClMsO2zA.js → collection-detail-BupnQedi.js} +1 -1
- package/dist/client/assets/{collection-display-button-Dcv9cmSy.js → collection-display-button-DUJ-pR_e.js} +1 -1
- package/dist/client/assets/{collection-search-C0fvUi6S.js → collection-search-Ch8MLIzL.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Cn4jrf8s.js → collection-table-wrapper-DMN2paJ9.js} +1 -1
- package/dist/client/assets/{collection-tabs-CtpJB22o.js → collection-tabs-Brdd-yO-.js} +1 -1
- package/dist/client/assets/{column-rules-CbXpTJRV.js → column-rules-DATIWaDS.js} +1 -1
- package/dist/client/assets/{combobox-nBsbDngO.js → combobox-B2Zg5E1b.js} +1 -1
- package/dist/client/assets/{command-Dz8D1H9z.js → command-mzLX0leD.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-D22vLHNd.js → companion-mcps-section-Dxsj478B.js} +1 -1
- package/dist/client/assets/{config-CFzYPymH.js → config-CLB7Eu2B.js} +1 -1
- package/dist/client/assets/{connect-DGmViujb.js → connect-Bi9-kPT4.js} +1 -1
- package/dist/client/assets/{connect-layout-C1_jUYFW.js → connect-layout-CO5j3vN8.js} +1 -1
- package/dist/client/assets/{connection-D2EgMJ9G.js → connection-Ddwz98Wi.js} +1 -1
- package/dist/client/assets/{connection-card-CI5YjmPA.js → connection-card-BpuIPJGU.js} +1 -1
- package/dist/client/assets/{connection-detail-3sVF5dQt.js → connection-detail-DViKai1a.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CY2wGEex.js → connection-form-helpers-ZBgy6PeQ.js} +1 -1
- package/dist/client/assets/{connections-Twa_JYzc.js → connections-BvTwZovV.js} +1 -1
- package/dist/client/assets/{content-tab-BhYfvgHJ.js → content-tab-CLR-MGXY.js} +3 -3
- package/dist/client/assets/{context-CE7HH71W.js → context-CeH3hlDj.js} +1 -1
- package/dist/client/assets/{context-menu-CPfLEqbb.js → context-menu-CMwMIurQ.js} +1 -1
- package/dist/client/assets/{core.esm-DajKxe8q.js → core.esm-Ds5IbpoU.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CK2tPr-0.js → create-organization-dialog-NG0GCrGy.js} +1 -1
- package/dist/client/assets/{daily-pulse-DyH5JpV6.js → daily-pulse-1acscsdN.js} +1 -1
- package/dist/client/assets/{discover-is1IWBp5.js → discover-DVDo0-Ht.js} +1 -1
- package/dist/client/assets/{domain-settings-BVhs7QfA.js → domain-settings-Cc9IPPJ6.js} +1 -1
- package/dist/client/assets/{drawer-Cc1xeysa.js → drawer-Chy2me2L.js} +1 -1
- package/dist/client/assets/{editor-C6KJlQxQ.js → editor-CRxBZblF.js} +1 -1
- package/dist/client/assets/{editor-classes-D4Aoqmls.js → editor-classes-AuNx3EIr.js} +1 -1
- package/dist/client/assets/{empty-state-Dwaj7cbq.js → empty-state-B1Y2gxG7.js} +1 -1
- package/dist/client/assets/{empty-state-D6Tozrpr.js → empty-state-D0AZxsnv.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CVZ9OfNz.js → extract-connection-data-BbpwU49P.js} +1 -1
- package/dist/client/assets/{feature-gate-BS2HgDV3.js → feature-gate-D-4f3TsZ.js} +1 -1
- package/dist/client/assets/{feature-paywall-RTg-o893.js → feature-paywall-BEw3yHFI.js} +1 -1
- package/dist/client/assets/{file-explorer-BnGtvEoY.js → file-explorer-s77RHPos.js} +1 -1
- package/dist/client/assets/{file-preview-Dmc96YwA.js → file-preview-6o30dW7Y.js} +1 -1
- package/dist/client/assets/{file-share-button-UHs8Nomv.js → file-share-button-DTgAu18M.js} +1 -1
- package/dist/client/assets/{file-type-icon-CNWOnF7H.js → file-type-icon-Cyq-HL5W.js} +1 -1
- package/dist/client/assets/flat-project-BXwH4GAK.js +1 -0
- package/dist/client/assets/{folder-icon-DrCMgncu.js → folder-icon-DpYogxDZ.js} +1 -1
- package/dist/client/assets/{form-Rtl3vzMe.js → form-CZY9mi95.js} +1 -1
- package/dist/client/assets/{general-DmQRdBrG.js → general-DzCshSSA.js} +1 -1
- package/dist/client/assets/{home-CljKZLNm.js → home-ht5PN0Tb.js} +1 -1
- package/dist/client/assets/{hosted-publish-feedback-gLFMJ1nL.js → hosted-publish-feedback-EDLfdhex.js} +1 -1
- package/dist/client/assets/{icon-button-B0hKyHBr.js → icon-button-CmcBnS_y.js} +1 -1
- package/dist/client/assets/{index-C2fABs9c.js → index-BGx-exM5.js} +1 -1
- package/dist/client/assets/{index-DLcIWoL2.js → index-B_HBT41_.js} +1 -1
- package/dist/client/assets/{index-DHO4wqtP.js → index-Bg_0Q5M6.js} +1 -1
- package/dist/client/assets/{index-DtKQdTUE.js → index-BuJ2pXru.js} +1 -1
- package/dist/client/assets/{index-PeCPnjbD.js → index-BzmkEEt4.js} +1 -1
- package/dist/client/assets/{index-DxY3oFXt.js → index-BzvS-M3k.js} +3 -3
- package/dist/client/assets/{index-BuWS6DRb.js → index-CKJ8aY_D.js} +1 -1
- package/dist/client/assets/{index-SOl_d7Ed.js → index-Cqtntghk.js} +1 -1
- package/dist/client/assets/{index-DhgK6U3I.js → index-D-oDxCEJ.js} +1 -1
- package/dist/client/assets/{index-BuzdQEje.js → index-D9G7gFOg.js} +1 -1
- package/dist/client/assets/{index-CpaXiO1D.js → index-DGSzSnUx.js} +1 -1
- package/dist/client/assets/{index-zmOiuX4C.js → index-EDDvnpYE.js} +1 -1
- package/dist/client/assets/{index-D_e1FjwV.js → index-Gu6p_bn6.js} +6 -6
- package/dist/client/assets/{index-CmBG44Dg.js → index-XtHbGpIO.js} +1 -1
- package/dist/client/assets/{index-Dq0Ol_2W.js → index-qOwXDL8B.js} +1 -1
- package/dist/client/assets/{index-redirect-Zv_6_d3i.js → index-redirect-3W3Boplu.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Cj4qEdRl.js → infiniteQueryObserver-DAJAo4Js.js} +1 -1
- package/dist/client/assets/{infra-billing-XmfyQcIH.js → infra-billing-BRzrEIN4.js} +1 -1
- package/dist/client/assets/{input-BoJbhypv.js → input-CPWSoAxx.js} +3 -3
- package/dist/client/assets/{input-8F-iHbM0.js → input-fPWoCV4A.js} +1 -1
- package/dist/client/assets/{integration-icon-XTPBo75P.js → integration-icon-BRP_biyX.js} +1 -1
- package/dist/client/assets/{jira-icon-XNoWqDpB.js → jira-icon-CrPsQXpC.js} +1 -1
- package/dist/client/assets/{label-BpvNCEnb.js → label-80aEOuD4.js} +1 -1
- package/dist/client/assets/{layout-ChpQshpT.js → layout-CKaa1aKY.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-ByS-MUYE.js → legacy-agents-deep-CxRGbcGA.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-Ccy3USd6.js → legacy-main-redirect-BfJFkjfw.js} +1 -1
- package/dist/client/assets/library-D1IB8KAD.js +1 -0
- package/dist/client/assets/{library-tab-BhoaLjah.js → library-tab--NwxRoRN.js} +1 -1
- package/dist/client/assets/{login-BxrSgy89.js → login-C673ln17.js} +1 -1
- package/dist/client/assets/{markdown-CeBYrFC5.js → markdown-C9G0qsr0.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-NvRGXYxY.js → mcp-app-renderer-Tv8WHGRN.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Bzq_QRWa.js → mcp-oauth-cPcwwC9B.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DkhydAIA.js → mcp-oauth-lfv0IiGQ.js} +1 -1
- package/dist/client/assets/{members-CNJowEzx.js → members-CJHCdYT1.js} +1 -1
- package/dist/client/assets/{memory-BsfWf-3x.js → memory-Cut11GGj.js} +1 -1
- package/dist/client/assets/{mini-report-page-DYL62IF4.js → mini-report-page-D0Qglns2.js} +1 -1
- package/dist/client/assets/{mock-board-B1usHoAz.js → mock-board-B-sXcLwv.js} +1 -1
- package/dist/client/assets/{monaco-editor-CW4KzWG5.js → monaco-editor-wT_kW1MH.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DJLs7kug.js → monitoring-stats-row-CWY5qSLA.js} +1 -1
- package/dist/client/assets/{multi-select-lHaavCdi.js → multi-select-CgnO4_qI.js} +1 -1
- package/dist/client/assets/{mustache-CLtZ-aXC.js → mustache-D2PL_any.js} +1 -1
- package/dist/client/assets/{new-project-dialog-C3L9bSPP.js → new-project-dialog-C_tU1gg8.js} +1 -1
- package/dist/client/assets/{oauth-callback-Do75xVB6.js → oauth-callback-BwKg2Y1n.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CpsuEWpa.js → oauth-callback-ai-provider-h6jiGDeG.js} +1 -1
- package/dist/client/assets/{onboarding-sPfgk87n.js → onboarding-CYtySDiE.js} +1 -1
- package/dist/client/assets/{openai-conversation-CuZL6fUQ.js → openai-conversation-IEZAYnVN.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-DW_dnUjn.js → optimistic-project-sidebar-views-DWI1xxua.js} +1 -1
- package/dist/client/assets/{order-monitor-day-Bb9K11tz.js → order-monitor-day-Dj23NRiN.js} +1 -1
- package/dist/client/assets/{organization-choice-BMAzua6G.js → organization-choice-FY-icP-U.js} +1 -1
- package/dist/client/assets/{orgs-scelK5uZ.js → orgs-Ba_XBvJ-.js} +1 -1
- package/dist/client/assets/{page-seo-form-OSL5OFoV.js → page-seo-form-2yHL1i6r.js} +1 -1
- package/dist/client/assets/{pair-8ShsH0Qr.js → pair-vo2mLhaP.js} +1 -1
- package/dist/client/assets/{plan-ladder-DNwkxUp1.js → plan-ladder-Dw4VwLn_.js} +1 -1
- package/dist/client/assets/{popover-CEeE7dqd.js → popover-D9c0rC9X.js} +1 -1
- package/dist/client/assets/{post-calendar-DnCFSuZ4.js → post-calendar-O4UipQ-T.js} +1 -1
- package/dist/client/assets/{post-editor-mXZG4iNT.js → post-editor-Boi3pOTO.js} +1 -1
- package/dist/client/assets/{preview-content-BuceHm_H.js → preview-content-N-UYFzFz.js} +1 -1
- package/dist/client/assets/{preview-dialog-BNy1YFe2.js → preview-dialog-DNWbq9ld.js} +1 -1
- package/dist/client/assets/{preview-panel-C8vnMQIp.js → preview-panel-B1ym7lfh.js} +1 -1
- package/dist/client/assets/{preview-tab-DiG38Ij2.js → preview-tab-DiXEBkZL.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-B1zUb2w5.js → product-picker-dialog-BEhiI2vs.js} +1 -1
- package/dist/client/assets/{profile-BuPfp227.js → profile-KR6jXf6G.js} +1 -1
- package/dist/client/assets/{project-app-view-CvRL57OS.js → project-app-view-DXzpgLYA.js} +1 -1
- package/dist/client/assets/{project-feed-fL5vvnmG.js → project-feed-BNILatbq.js} +1 -1
- package/dist/client/assets/{project-icon-BE0w-kOZ.js → project-icon-jOYdFGx5.js} +1 -1
- package/dist/client/assets/project-reports-DjjRqdfD.js +1 -0
- package/dist/client/assets/project-tasks-IcoHMtIx.js +1 -0
- package/dist/client/assets/{projects-k3ePWrM8.js → projects-Cuc0vsCf.js} +1 -1
- package/dist/client/assets/{projects-empty-state-DtbadfhN.js → projects-empty-state-COf0m1Km.js} +1 -1
- package/dist/client/assets/{prompts-CJZlFPbL.js → prompts-FHCOf5Ek.js} +1 -1
- package/dist/client/assets/record-editor-DCgztUBP.js +1 -0
- package/dist/client/assets/{redirect-editor-COF5GTOq.js → redirect-editor-BnendtGT.js} +1 -1
- package/dist/client/assets/reports-DVrJp7iY.js +1 -0
- package/dist/client/assets/{reports-DH-0HmmT.js → reports-FW-99lgO.js} +1 -1
- package/dist/client/assets/{reports-onboarding-5FMXCy6G.js → reports-onboarding-D-gXApRE.js} +1 -1
- package/dist/client/assets/{reports-tab-SMeFV_jI.js → reports-tab-D4cs8E0G.js} +2 -2
- package/dist/client/assets/{repositories-CbdeVce3.js → repositories-D0naweGG.js} +1 -1
- package/dist/client/assets/{repository-binding-Ck0_Tx8R.js → repository-binding-C6bmiEYF.js} +1 -1
- package/dist/client/assets/{repository-import-picker-VJIbkDWe.js → repository-import-picker-DQ-cjLn_.js} +1 -1
- package/dist/client/assets/{repository-picker-BZ1KCv_T.js → repository-picker-CT4Afe6w.js} +1 -1
- package/dist/client/assets/{require-capability-BZ_ajaXn.js → require-capability-p2N_SBPn.js} +1 -1
- package/dist/client/assets/{required-auth-layout--gIjKGIN.js → required-auth-layout-C1JjNc-h.js} +1 -1
- package/dist/client/assets/{reset-password-DpZaypJp.js → reset-password-C4YZBsGi.js} +1 -1
- package/dist/client/assets/{resizable-h5h9Y5oq.js → resizable-DmlLOO_L.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-D5sQsZKt.js → resolve-tab-icon-CjjffpxB.js} +1 -1
- package/dist/client/assets/{review-settings-BKbSdDuH.js → review-settings-CayzwR4f.js} +1 -1
- package/dist/client/assets/roles-BP0nkR8v.js +1 -0
- package/dist/client/assets/route-C_6q331h.js +1 -0
- package/dist/client/assets/{route-DeZoxv-n.js → route-D4l4dcWi.js} +1 -1
- package/dist/client/assets/{route-BxYltIIL.js → route-DP7j1gUi.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-B8nV6BWB.js → sandbox-lifecycle-context-BJVYk9VT.js} +1 -1
- package/dist/client/assets/{schema-Bwgawxt5.js → schema-CicY9CFd.js} +1 -1
- package/dist/client/assets/{schema-Cg0_pwUT.js → schema-oXjGSciT.js} +1 -1
- package/dist/client/assets/{scroll-area-C_lb7Jje.js → scroll-area-WqWnjNup.js} +1 -1
- package/dist/client/assets/{search-input-TJxcwdFg.js → search-input-BYbTdcO4.js} +1 -1
- package/dist/client/assets/{search-toggle-C7I5-G7C.js → search-toggle-DW4GMHrH.js} +1 -1
- package/dist/client/assets/{secret-ciphertext-C6okMcC_.js → secret-ciphertext-Css0ozTg.js} +1 -1
- package/dist/client/assets/{secret-picker-DCWsgdxf.js → secret-picker-BUbHbuWb.js} +1 -1
- package/dist/client/assets/{secrets-B58GVNd7.js → secrets-UmXQpwNV.js} +1 -1
- package/dist/client/assets/{sections-editor-BJ2SmDL2.js → sections-editor-B0kLUduk.js} +1 -1
- package/dist/client/assets/{select-DEQANoyw.js → select-C5ZUHdTe.js} +1 -1
- package/dist/client/assets/{select-model-KVl-kNMM.js → select-model-DTVIxZ-_.js} +1 -1
- package/dist/client/assets/{seo-editor-B_E5uosh.js → seo-editor-LRJehf_C.js} +1 -1
- package/dist/client/assets/{separator-CKc1h60H.js → separator-BgDhQ_qp.js} +1 -1
- package/dist/client/assets/{settings-tab-FrEyMoMV.js → settings-tab-DturEIQx.js} +1 -1
- package/dist/client/assets/{sheet-CjAkecww.js → sheet-C4t4w4AW.js} +1 -1
- package/dist/client/assets/{shell-layout-CvexXVVk.js → shell-layout-DxHQCpTn.js} +1 -1
- package/dist/client/assets/site-editor-CyJ9J3z5.js +1 -0
- package/dist/client/assets/{site-editor-toast-C-uD6zRF.js → site-editor-toast-B3bEZdNT.js} +1 -1
- package/dist/client/assets/{skills-DhUBc3J8.js → skills-DGMzaCZd.js} +1 -1
- package/dist/client/assets/{slider-l3C2nqf3.js → slider-DhmtcYyh.js} +1 -1
- package/dist/client/assets/{sortable.esm-CEz1t63K.js → sortable.esm-DZ_g7VsY.js} +1 -1
- package/dist/client/assets/{sso-CCNbtfyT.js → sso-DEmjyfij.js} +1 -1
- package/dist/client/assets/{suggestion-BA2-bTFu.js → suggestion-rFC9uhKm.js} +1 -1
- package/dist/client/assets/{switch-BB4BMta4.js → switch-DI_TR6_o.js} +1 -1
- package/dist/client/assets/{symbol-46mbKQic.js → symbol-RiI5_0oO.js} +1 -1
- package/dist/client/assets/{synced-repos-CUWDki9D.js → synced-repos-D9a-JENV.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-r9KIUo9C.js → tab-icon-glyph-l-U7BqyO.js} +1 -1
- package/dist/client/assets/{table-4bjRQyHR.js → table-BN-zsOZX.js} +1 -1
- package/dist/client/assets/{tabs-DKbHk2Gg.js → tabs-Db8UWqyQ.js} +1 -1
- package/dist/client/assets/{task-board-BUaSu7tb.js → task-board-aXTBpoFu.js} +1 -1
- package/dist/client/assets/{task-route-BGG7sh2_.js → task-route-sEmSKH-o.js} +1 -1
- package/dist/client/assets/{task-status-Ds5uxdx_.js → task-status-ziwl5_bZ.js} +1 -1
- package/dist/client/assets/taskboard-analytics-DpeLLeUb.js +1 -0
- package/dist/client/assets/tasks-Bh-bab_E.js +1 -0
- package/dist/client/assets/{tasks-DQ28yWoo.js → tasks-BsSe1bhp.js} +1 -1
- package/dist/client/assets/{textarea-CE7MtUgX.js → textarea-CyaF3dQs.js} +1 -1
- package/dist/client/assets/{thread-analytics-CXQy9ASJ.js → thread-analytics-CmeR6JA3.js} +1 -1
- package/dist/client/assets/{thread-intent-C7y-mNi3.js → thread-intent-BZ0YY6QE.js} +1 -1
- package/dist/client/assets/{thread-route-BWDDQkT0.js → thread-route-CAmVpV7e.js} +1 -1
- package/dist/client/assets/{thread-route-CDdp5O6O.js → thread-route-DcOV3JY7.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-1zwREK0R.js → thread-sheet-body-DWFk33ML.js} +1 -1
- package/dist/client/assets/{time-range-picker-Bn8GwnfG.js → time-range-picker-HHnhDEqe.js} +1 -1
- package/dist/client/assets/{toggle-group-B1hqsL49.js → toggle-group-tTNOH3L7.js} +1 -1
- package/dist/client/assets/{tool-namespace-D-DKxP1V.js → tool-namespace-B_Fkbcgh.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-QlJA74MF.js → toolbar-icon-button-B77_OlWf.js} +1 -1
- package/dist/client/assets/{tooltip-Co4Z1kVi.js → tooltip-PBE4vcNO.js} +1 -1
- package/dist/client/assets/{tooltipContext-DMOc99qE.js → tooltipContext-DfV9vJ97.js} +1 -1
- package/dist/client/assets/{track-DMvXnx4V.js → track-CQzX2nHd.js} +1 -1
- package/dist/client/assets/{types-B2yiAKQY.js → types-Cd4vJNfK.js} +1 -1
- package/dist/client/assets/{url-slug-DF80tWtk.js → url-slug-B0r7Le3c.js} +1 -1
- package/dist/client/assets/{usage-stats-D_UoN7cn.js → usage-stats-BXBqqbOk.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BUCZRHcb.js → use-ai-providers-B1IEQ8TI.js} +1 -1
- package/dist/client/assets/{use-app-takeover-zvHtuBka.js → use-app-takeover-C-kDM-_S.js} +1 -1
- package/dist/client/assets/{use-automations-8zdg7l-n.js → use-automations-BEZeFVgH.js} +1 -1
- package/dist/client/assets/{use-autosave-DR8EweDn.js → use-autosave-D_EhH98O.js} +1 -1
- package/dist/client/assets/{use-chat-navigation-W8PH0UW2.js → use-chat-navigation-Dl1MW8jd.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BsIDA-Cf.js → use-clock-tick-DqoBjZmM.js} +1 -1
- package/dist/client/assets/{use-connect-companion-BQ9821ac.js → use-connect-companion-BPgrOpJ-.js} +1 -1
- package/dist/client/assets/{use-connection-DO0-79cg.js → use-connection-D6vlEjek.js} +1 -1
- package/dist/client/assets/{use-copy-OgMUCz7y.js → use-copy-BaP-Mfq6.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-D5jpP5gm.js → use-create-virtual-mcp-DVGTyIvt.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-D0QCtxiN.js → use-date-fns-locale-CGkeTp2f.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DOOn5Tkv.js → use-debounced-autosave-Bw1iL5an.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CBiGkTw1.js → use-debounced-value-CGyFMjzg.js} +1 -1
- package/dist/client/assets/{use-deco-credits-rXC7k5gk.js → use-deco-credits-CLdYd8om.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-c99VQCYk.js → use-decopilot-events-Bzuucvme.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Bgit0egW.js → use-delete-connection-DSAfwmQa.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-C1exj-sx.js → use-deployment-admin-Cs4gP7kc.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-BSBM_pCV.js → use-ensure-project-folder-Bzh9iyz1.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BAQhnabN.js → use-fast-preview-draft-url-iwQUUX2T.js} +1 -1
- package/dist/client/assets/{use-file-configs-DUPfNney.js → use-file-configs-zh5akF0n.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-pMxa0Zn4.js → use-infinite-scroll-D5ShLRuK.js} +1 -1
- package/dist/client/assets/{use-join-requests-gg3cOI-B.js → use-join-requests-RBBggqWT.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-CsBwc9G6.js → use-main-panel-tabs-BJzQTLll.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-Cpx5wFs6.js → use-mcp-auth-status-MYJuNTGH.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CfQ2861m.js → use-mcp-client-rvPKbELE.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CmJ6-k3W.js → use-mcp-prompts-Cxif3O1P.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-D9QrmiTi.js → use-mcp-tools-BtC8QkRI.js} +1 -1
- package/dist/client/assets/{use-members-DCpyBD9E.js → use-members-B9jY-Afg.js} +1 -1
- package/dist/client/assets/{use-mobile-DAFwKM65.js → use-mobile-Di0MPt3q.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DX_GuI9O.js → use-navigate-to-agent-Dba95vVq.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-D8kQwZuK.js → use-open-billing-url-D5pKa81c.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DlfdiRta.js → use-org-auth-client-ZcrC4T6K.js} +1 -1
- package/dist/client/assets/{use-org-fs-DUumxOLe.js → use-org-fs-BxRaxb9L.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CSC6XXGX.js → use-org-repo-syncs-C-ZIE6wP.js} +1 -1
- package/dist/client/assets/{use-org-sso-a6wytjjs.js → use-org-sso-O0zps6r1.js} +1 -1
- package/dist/client/assets/{use-organization-roles-5s2YK1bp.js → use-organization-roles-DKZzNKA8.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BRX6WalP.js → use-organization-settings-CLDZrVD2.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-CwT4H5Ol.js → use-panel-navigate-UVOahKnd.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-C_S3HChZ.js → use-project-native-view-presence-Dmn-wieO.js} +1 -1
- package/dist/client/assets/{use-project-scope-CaxkCPVW.js → use-project-scope-B75Fu6p9.js} +1 -1
- package/dist/client/assets/{use-recent-apps-ByQEPEB4.js → use-recent-apps-Ce6cnaSn.js} +1 -1
- package/dist/client/assets/{use-releases-BUCOTm_R.js → use-releases-Cca_D8Ze.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-Dbl7LVl2.js → use-reports-diagnostic-Dj93vOfq.js} +1 -1
- package/dist/client/assets/{use-secrets-BYpVBz5m.js → use-secrets-B4XvFF9p.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BdA5oDe6.js → use-section-preview-base-DSjG3_lZ.js} +1 -1
- package/dist/client/assets/{use-tags-uU7Lu-ly.js → use-tags-D3ecYacm.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-ZCbpEWlZ.js → use-task-board-analytics-BAyZ8b3w.js} +1 -1
- package/dist/client/assets/{use-task-board-events-B4NRIZnD.js → use-task-board-events-bt8pGNQu.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-B24H-YiX.js → use-task-board-item-prs-D7k6MaFR.js} +1 -1
- package/dist/client/assets/{use-task-board-items-BrTvq28_.js → use-task-board-items-CmRMhTmV.js} +1 -1
- package/dist/client/assets/{use-task-metadata-DNmLWRKy.js → use-task-metadata-UJXKmJmc.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-kgocd4t_.js → use-thread-analytics-BXB-BjGM.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BnYz2rDr.js → use-thread-outputs-CxIvWEwp.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DlArWAqw.js +1 -0
- package/dist/client/assets/{useQueries-CjOre9_n.js → useQueries-0ll-wpq1.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Cl1hoey9.js +1 -0
- package/dist/client/assets/{users-CabPjBXN.js → users-DDxhntvX.js} +1 -1
- package/dist/client/assets/{utils-CA46iRUR.js → utils-C39F0dWb.js} +1 -1
- package/dist/client/assets/{variant-calendar-zo0Qm_85.js → variant-calendar-VpVcT3ku.js} +1 -1
- package/dist/client/assets/{variant-draft-pointer-CE2lhiPh.js → variant-draft-pointer-jfx2jVt-.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CGFj4l63.js → view-mode-toggle-BkicTk8J.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BjHRjwkd.js → virtual-mcp-CfewSGd6.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-BmJipakz.js → watch-sse-pool-CkxkGv7P.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +545 -545
- package/package.json +1 -1
- package/dist/client/assets/agent-app-Btba9qrn.js +0 -1
- package/dist/client/assets/agent-deck-BRFz34C5.js +0 -1
- package/dist/client/assets/agent-library-D5NccfWU.js +0 -1
- package/dist/client/assets/agent-library-file-CEh3yNi1.js +0 -1
- package/dist/client/assets/agent-settings-D0vOcbo4.js +0 -1
- package/dist/client/assets/agent-site-editor-code-CjBhJz3a.js +0 -2
- package/dist/client/assets/agent-site-editor-content-CGwPwTYo.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-D1rLRPRY.js +0 -1
- package/dist/client/assets/agent-view-FlUwvnPb.js +0 -1
- package/dist/client/assets/api-keys-BgnbvEMg.js +0 -1
- package/dist/client/assets/cms-settings-editor-BeilhGPn.js +0 -1
- package/dist/client/assets/flat-project-C8GOOCEy.js +0 -1
- package/dist/client/assets/library-B_bfBK5V.js +0 -1
- package/dist/client/assets/project-reports-BztuNJ7u.js +0 -1
- package/dist/client/assets/project-tasks-Dawdfx-2.js +0 -1
- package/dist/client/assets/record-editor-rGrL5tBb.js +0 -1
- package/dist/client/assets/reports-PVKR-t5Z.js +0 -1
- package/dist/client/assets/roles-Bc-Hepcl.js +0 -1
- package/dist/client/assets/route-Dcad-yYp.js +0 -1
- package/dist/client/assets/site-editor-DIC96wDj.js +0 -1
- package/dist/client/assets/taskboard-analytics-BMTrT5Ho.js +0 -1
- package/dist/client/assets/tasks-q2yo5cXh.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DwBftn5D.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B3xhj5gS.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,l as b,j as a,h as w}from"./index-
|
|
1
|
+
import{c as v,l as b,j as a,h as w}from"./index-Gu6p_bn6.js";import{i as C}from"./SearchMd-Dqn_93IA.js";function y(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,h=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const p=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==p?(s=b("flex items-center gap-2.5 h-12 px-4",p),e[2]=p,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?a.jsx(w,{className:"size-4 text-muted-foreground shrink-0"}):a.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==m?(r=N=>m(N.target.value),e[6]=m,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==h||e[11]!==r||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:r,onKeyDown:x,placeholder:h,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=h,e[11]=r,e[12]=d,e[13]=o):o=e[13];let n;e[14]!==s||e[15]!==l||e[16]!==o?(n=a.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=n):n=e[17];let c;return e[18]!==t||e[19]!==n?(c=a.jsx("div",{className:t,children:n}),e[18]=t,e[19]=n,e[20]=c):c=e[20],c}export{y as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as S,j as n,l as y,b as D}from"./index-
|
|
1
|
+
import{c as S,j as n,l as y,b as D}from"./index-Gu6p_bn6.js";import{T as I,a as R,b as T,c as E,d as H,e as K}from"./table-BN-zsOZX.js";import{i as W,n as z}from"./ArrowUp-BlmIqgms.js";function L(C){const e=S.c(31),{columns:o,data:u,sortKey:x,sortDirection:i,onSort:c,onRowClick:l,rowClassName:m}=C;let p;e[0]!==i?(p=function(t,b){return n.jsx("div",{className:"w-4 flex items-center justify-center",children:b&&i&&(i==="asc"?n.jsx(W,{size:16,className:"text-muted-foreground transition-colors"}):n.jsx(z,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=i,e[1]=p):p=e[1];const h=p;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=function(t,b){let g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return t===b-1&&(g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider w-8"),g},e[2]=d):d=e[2];const v=d;let s;if(e[3]!==o||e[4]!==c||e[5]!==h||e[6]!==i||e[7]!==x){let f;e[9]!==o.length||e[10]!==c||e[11]!==h||e[12]!==i||e[13]!==x?(f=(t,b)=>{const g=x===t.id,r=t.sortable&&c;return n.jsx(I,{className:y(v(b,o.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),"aria-sort":g&&i?i==="asc"?"ascending":"descending":t.sortable?"none":void 0,role:r?"button":void 0,tabIndex:r?0:void 0,onClick:r?()=>c(t.id):void 0,onKeyDown:r?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),c(t.id))}:void 0,children:n.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&h(t.id,g)]})},t.id)},e[9]=o.length,e[10]=c,e[11]=h,e[12]=i,e[13]=x,e[14]=f):f=e[14],s=o.map(f),e[3]=o,e[4]=c,e[5]=h,e[6]=i,e[7]=x,e[8]=s}else s=e[8];let a;e[15]!==s?(a=n.jsx(R,{className:"border-b-0",children:n.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:s})}),e[15]=s,e[16]=a):a=e[16];let j;if(e[17]!==o||e[18]!==u||e[19]!==l||e[20]!==m){let f;e[22]!==o||e[23]!==l||e[24]!==m?(f=(t,b)=>{const g=m?.(t);return n.jsx(T,{"data-row-index":b,className:y("group/data-row transition-colors border-b-0 hover:bg-accent/50",l?"cursor-pointer":"",g),role:l?"button":void 0,tabIndex:l?0:void 0,onClick:l?()=>l(t):void 0,onKeyDown:l?r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),l(t))}:void 0,children:o.map(r=>n.jsx(E,{className:y("px-5 py-4 h-16 align-middle text-sm text-foreground",r.cellClassName,r.wrap?"whitespace-normal wrap-break-word":""),children:n.jsx("div",{className:y(r.wrap?"w-full":"min-w-0 w-full",!r.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:r.render?r.render(t):r.accessor?r.accessor(t):null})},r.id))},b)},e[22]=o,e[23]=l,e[24]=m,e[25]=f):f=e[25],j=u.map(f),e[17]=o,e[18]=u,e[19]=l,e[20]=m,e[21]=j}else j=e[21];let w;e[26]!==j?(w=n.jsx(H,{children:j}),e[26]=j,e[27]=w):w=e[27];let N;return e[28]!==a||e[29]!==w?(N=n.jsxs(K,{className:"w-full border-collapse",children:[a,w]}),e[28]=a,e[29]=w,e[30]=N):N=e[30],N}function F(C){const e=S.c(16),{columns:o,data:u,isLoading:x,sortKey:i,sortDirection:c,onSort:l,onRowClick:m,emptyState:p}=C,h=x===void 0?!1:x,d=D();if(h){let s;e[0]!==d?(s=d("collections.collectionTableWrapper.loading"),e[0]=d,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsx("div",{className:"text-muted-foreground",children:s})}),e[2]=s,e[3]=a):a=e[3],a}if(u.length===0){let s;e[4]!==p||e[5]!==d?(s=p||n.jsx("div",{className:"text-center py-12 text-muted-foreground",children:d("collections.collectionTableWrapper.noItemsFound")}),e[4]=p,e[5]=d,e[6]=s):s=e[6];let a;return e[7]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:s}),e[7]=s,e[8]=a):a=e[8],a}let v;return e[9]!==o||e[10]!==u||e[11]!==m||e[12]!==l||e[13]!==c||e[14]!==i?(v=n.jsx("div",{className:"flex-1",children:n.jsx(L,{columns:o,data:u,sortKey:i,sortDirection:c,onSort:l,onRowClick:m})}),e[9]=o,e[10]=u,e[11]=m,e[12]=l,e[13]=c,e[14]=i,e[15]=v):v=e[15],v}export{F as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,j as r,n as p,P as j,l as h}from"./index-
|
|
1
|
+
import{c as b,j as r,n as p,P as j,l as h}from"./index-Gu6p_bn6.js";import{B as v}from"./badge-BHSeIY_1.js";function P(g){const e=b.c(13),{tabs:d,activeTab:o,onTabChange:s,className:m,placement:u}=g,f=u===void 0?"inline":u;let t;if(e[0]!==o||e[1]!==s||e[2]!==d){let c;e[4]!==o||e[5]!==s?(c=n=>{const x=o===n.id;return r.jsxs(p.Tab,{active:x,onClick:()=>s(n.id),children:[n.label,n.count!==void 0&&r.jsx(v,{variant:"secondary",className:h("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",x?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:n.count})]},n.id)},e[4]=o,e[5]=s,e[6]=c):c=e[6],t=d.map(c),e[0]=o,e[1]=s,e[2]=d,e[3]=t}else t=e[3];let l;e[7]!==m||e[8]!==t?(l=r.jsx(p.Tabs,{className:m,children:t}),e[7]=m,e[8]=t,e[9]=l):l=e[9];const i=l;let a;return e[10]!==i||e[11]!==f?(a=f==="page"?r.jsx(j.Toolbar.Left.Portal,{fallback:i,children:i}):i,e[10]=i,e[11]=f,e[12]=a):a=e[12],a}export{P as C};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{c as E,a2 as F,o as X,r as D,a9 as J,K as z,m as te,e as se,b as H,l as q,j as o,t as V,B as Y,fq as le,L as U}from"./index-
|
|
1
|
+
import{c as E,a2 as F,o as X,r as D,a9 as J,K as z,m as te,e as se,b as H,l as q,j as o,t as V,B as Y,fq as le,L as U}from"./index-Gu6p_bn6.js";import{s as ae}from"./Plus-B78UgIQj.js";import{s as ne}from"./XClose-DDA2dBHO.js";import{B as K}from"./badge-BHSeIY_1.js";import{d as ie,e as oe,c as re,C as ce,a as de,b as me}from"./command-mzLX0leD.js";import{I as ue}from"./icon-button-CmcBnS_y.js";import{c as fe,S as pe,a as xe,b as he,e as ge}from"./sheet-C4t4w4AW.js";import{S as je}from"./switch-DI_TR6_o.js";import{T as ke}from"./textarea-CyaF3dQs.js";import{h as Se}from"./task-board-aXTBpoFu.js";import{p as be}from"./use-org-fs-BxRaxb9L.js";import{c as Re}from"./watch-sse-pool-CkxkGv7P.js";import{u as Z,a as ve}from"./use-automations-BEZeFVgH.js";function Be(){const s=E.c(7),{org:e}=F(),a=J();let t;s[0]!==e.id?(t=z.taskBoardPrompts(e.id),s[0]=e.id,s[1]=t):t=s[1];let n;s[2]!==a?(n=async()=>(await a.call("TASK_BOARD_PROMPT_LIST",{})).prompts,s[2]=a,s[3]=n):n=s[3];let i;return s[4]!==t||s[5]!==n?(i={queryKey:t,staleTime:6e4,queryFn:n},s[4]=t,s[5]=n,s[6]=i):i=s[6],te(i)}function Ce(){const s=E.c(8),{org:e}=F(),a=J(),t=X();let n;s[0]!==a?(n=async c=>{const{columnKey:r,rules:p}=c;if(p){const d=p.prompt.trim();await(d||p.skills.length?a.call("TASK_BOARD_PROMPT_UPSERT",{columnKey:r,prompt:d,skills:p.skills}):a.call("TASK_BOARD_PROMPT_DELETE",{columnKey:r}))}},s[0]=a,s[1]=n):n=s[1];let i;s[2]!==e||s[3]!==t?(i=()=>t.invalidateQueries({queryKey:z.taskBoardPrompts(e.id)}),s[2]=e,s[3]=t,s[4]=i):i=s[4];let l;return s[5]!==n||s[6]!==i?(l={mutationFn:n,onSettled:i},s[5]=n,s[6]=i,s[7]=l):l=s[7],se(l)}const W=()=>0;function Ge(){const s=E.c(6),{org:e}=F(),a=X();let t;s[0]!==e.id||s[1]!==a?(t=()=>a.invalidateQueries({queryKey:z.taskBoardPrompts(e.id)}),s[0]=e.id,s[1]=a,s[2]=t):t=s[2];const n=t;let i;s[3]!==e.slug||s[4]!==n?(i=()=>Re.subscribe(e.slug,n,n),s[3]=e.slug,s[4]=n,s[5]=i):i=s[5];const l=i;D.useSyncExternalStore(l,W,W)}function Ne(s){const e=E.c(8),a=Be();let t;e[0]!==s||e[1]!==a.data?(t=a.data?.find(l=>l.columnKey===s),e[0]=s,e[1]=a.data,e[2]=t):t=e[2];let n;e[3]!==a.data?(n=a.data?.find(Te)?.skills??[],e[3]=a.data,e[4]=n):n=e[4];let i;return e[5]!==t||e[6]!==n?(i={scope:t,boardSkills:n},e[5]=t,e[6]=n,e[7]=i):i=e[7],i}function Te(s){return s.columnKey===null}function Ve(s){const e=E.c(7),{data:a}=Z();let t;e[0]!==a?(t=a??[],e[0]=a,e[1]=t):t=e[1];let n;if(e[2]!==s||e[3]!==t){let i;e[5]!==s?(i=l=>l.board_triggers.some(c=>c.type==="board_column_transition"&&c.column_key===s),e[5]=s,e[6]=i):i=e[6],n=t.filter(i),e[2]=s,e[3]=t,e[4]=n}else n=e[4];return n}function ye(s){const e=E.c(7),{data:a}=Z();let t;e[0]!==a?(t=a??[],e[0]=a,e[1]=t):t=e[1];let n;if(e[2]!==s||e[3]!==t){let i;e[5]!==s?(i=l=>l.board_triggers.some(c=>c.column_key===s),e[5]=s,e[6]=i):i=e[6],n=t.filter(i),e[2]=s,e[3]=t,e[4]=n}else n=e[4];return n}function Pe(s){const e=E.c(33),{columnKey:a}=s,t=H(),{org:n}=F(),i=ye(a),{update:l}=ve();let c;e[0]!==t?(c=t("taskBoard.columnRules.automationsLabel"),e[0]=t,e[1]=c):c=e[1];let r;e[2]!==c?(r=o.jsx(Q,{children:c}),e[2]=c,e[3]=r):r=e[3];let p;if(e[4]!==i||e[5]!==n.slug||e[6]!==t||e[7]!==l){let S;e[9]!==n.slug||e[10]!==t||e[11]!==l?(S=h=>o.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border px-3 py-2",children:[o.jsxs(U,{to:"/$org/projects/$agentId/automations/$automationId",params:{org:n.slug,agentId:h.virtual_mcp_id,automationId:h.id},className:"flex min-w-0 flex-1 items-center gap-2 text-sm text-foreground hover:underline",children:[o.jsx("span",{className:"truncate",children:h.name}),h.system_key&&o.jsx(K,{variant:"muted",children:t("automations.builtin.badge")})]}),o.jsx(je,{checked:h.active,disabled:l.isPending,onCheckedChange:R=>l.mutate({id:h.id,active:R}),"aria-label":t("taskBoard.columnRules.toggleAutomation",{name:h.name})})]},h.id),e[9]=n.slug,e[10]=t,e[11]=l,e[12]=S):S=e[12],p=i.map(S),e[4]=i,e[5]=n.slug,e[6]=t,e[7]=l,e[8]=p}else p=e[8];let d;e[13]!==i.length||e[14]!==t?(d=i.length===0&&o.jsxs(o.Fragment,{children:[t("taskBoard.columnRules.noAutomations")," "]}),e[13]=i.length,e[14]=t,e[15]=d):d=e[15];const j=n.slug;let f;e[16]!==n.id?(f=le(n.id),e[16]=n.id,e[17]=f):f=e[17];let x;e[18]!==n.slug||e[19]!==f?(x={org:j,agentId:f},e[18]=n.slug,e[19]=f,e[20]=x):x=e[20];let m;e[21]!==t?(m=t("taskBoard.columnRules.addAutomation"),e[21]=t,e[22]=m):m=e[22];let u;e[23]!==x||e[24]!==m?(u=o.jsx(U,{to:"/$org/projects/$agentId/automations",params:x,className:"text-foreground underline underline-offset-2",children:m}),e[23]=x,e[24]=m,e[25]=u):u=e[25];let k;e[26]!==d||e[27]!==u?(k=o.jsxs("p",{className:"text-meta",children:[d,u]}),e[26]=d,e[27]=u,e[28]=k):k=e[28];let b;return e[29]!==k||e[30]!==r||e[31]!==p?(b=o.jsxs("section",{className:"flex flex-col gap-2",children:[r,p,k]}),e[29]=k,e[30]=r,e[31]=p,e[32]=b):b=e[32],b}function Ye(s){const e=E.c(21),{columnKey:a,label:t,open:n,onOpenChange:i}=s,{scope:l,boardSkills:c}=Ne(a);let r;e[0]!==t?(r=o.jsx(fe,{className:"border-b",children:o.jsx(pe,{children:t})}),e[0]=t,e[1]=r):r=e[1];const p=l?.prompt??"";let d;e[2]!==l?.skills?(d=l?.skills??[],e[2]=l?.skills,e[3]=d):d=e[3];let j;e[4]!==p||e[5]!==d?(j={prompt:p,skills:d},e[4]=p,e[5]=d,e[6]=j):j=e[6];let f;e[7]!==i?(f=()=>i(!1),e[7]=i,e[8]=f):f=e[8];let x;e[9]!==c||e[10]!==a||e[11]!==j||e[12]!==f?(x=o.jsx($e,{columnKey:a,initial:j,boardSkills:c,onDone:f}),e[9]=c,e[10]=a,e[11]=j,e[12]=f,e[13]=x):x=e[13];let m;e[14]!==r||e[15]!==x?(m=o.jsxs(xe,{className:"w-full gap-0 sm:max-w-md","aria-describedby":void 0,children:[r,x]}),e[14]=r,e[15]=x,e[16]=m):m=e[16];let u;return e[17]!==n||e[18]!==i||e[19]!==m?(u=o.jsx(o.Fragment,{children:o.jsx(he,{open:n,onOpenChange:i,children:m})}),e[17]=n,e[18]=i,e[19]=m,e[20]=u):u=e[20],u}function $e(s){const e=E.c(58),{columnKey:a,initial:t,boardSkills:n,onDone:i}=s,l=H(),c=Ce(),[r,p]=D.useState(t.prompt),[d,j]=D.useState(t.skills);let f;e[0]!==a||e[1]!==t.prompt||e[2]!==t.skills||e[3]!==i||e[4]!==r||e[5]!==c||e[6]!==d||e[7]!==l?(f=()=>c.mutate({columnKey:a,...r!==t.prompt||d.join(`
|
|
2
2
|
`)!==t.skills.join(`
|
|
3
3
|
`)?{rules:{prompt:r,skills:d}}:{}},{onSuccess:()=>{V.success(l("taskBoard.columnRules.saved")),i()},onError:g=>V.error(g instanceof Error?g.message:l("taskBoard.columnRules.failed"))}),e[0]=a,e[1]=t.prompt,e[2]=t.skills,e[3]=i,e[4]=r,e[5]=c,e[6]=d,e[7]=l,e[8]=f):f=e[8];const x=f;let m;e[9]!==a?(m=o.jsx(Pe,{columnKey:a}),e[9]=a,e[10]=m):m=e[10];let u;e[11]!==l?(u=l("taskBoard.columnRules.promptLabel"),e[11]=l,e[12]=u):u=e[12];let k;e[13]!==u?(k=o.jsx(Q,{children:u}),e[13]=u,e[14]=k):k=e[14];let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=g=>p(g.target.value),e[15]=b):b=e[15];let S;e[16]!==l?(S=l("taskBoard.columnRules.promptPlaceholder"),e[16]=l,e[17]=S):S=e[17];let h;e[18]!==l?(h=l("taskBoard.columnRules.promptLabel"),e[18]=l,e[19]=h):h=e[19];let R;e[20]!==r||e[21]!==S||e[22]!==h?(R=o.jsx(ke,{value:r,rows:5,maxLength:Se,onChange:b,placeholder:S,"aria-label":h}),e[20]=r,e[21]=S,e[22]=h,e[23]=R):R=e[23];let v;e[24]!==k||e[25]!==R?(v=o.jsxs("section",{className:"flex flex-col gap-2",children:[k,R]}),e[24]=k,e[25]=R,e[26]=v):v=e[26];let C;e[27]!==l?(C=l("taskBoard.columnRules.skillsLabel"),e[27]=l,e[28]=C):C=e[28];let N;e[29]!==C?(N=o.jsx(Q,{children:C}),e[29]=C,e[30]=N):N=e[30];let T;e[31]!==n||e[32]!==d?(T=o.jsx(Ee,{fill:!0,value:d,onChange:j,inherited:n}),e[31]=n,e[32]=d,e[33]=T):T=e[33];let y;e[34]!==N||e[35]!==T?(y=o.jsxs("section",{className:"flex min-h-64 flex-1 flex-col gap-2",children:[N,T]}),e[34]=N,e[35]=T,e[36]=y):y=e[36];let A;e[37]!==y||e[38]!==m||e[39]!==v?(A=o.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6 overflow-y-auto p-4",children:[m,v,y]}),e[37]=y,e[38]=m,e[39]=v,e[40]=A):A=e[40];let B;e[41]!==l?(B=l("taskBoard.columnRules.cancel"),e[41]=l,e[42]=B):B=e[42];let w;e[43]!==i||e[44]!==B?(w=o.jsx(Y,{variant:"outline",onClick:i,children:B}),e[43]=i,e[44]=B,e[45]=w):w=e[45];const O=c.isPending;let P;e[46]!==l?(P=l("taskBoard.columnRules.save"),e[46]=l,e[47]=P):P=e[47];let I;e[48]!==c.isPending||e[49]!==x||e[50]!==P?(I=o.jsx(Y,{disabled:O,onClick:x,children:P}),e[48]=c.isPending,e[49]=x,e[50]=P,e[51]=I):I=e[51];let $;e[52]!==w||e[53]!==I?($=o.jsxs(ge,{className:"flex-row justify-end border-t",children:[w,I]}),e[52]=w,e[53]=I,e[54]=$):$=e[54];let L;return e[55]!==A||e[56]!==$?(L=o.jsxs(o.Fragment,{children:[A,$]}),e[55]=A,e[56]=$,e[57]=L):L=e[57],L}function Q(s){const e=E.c(2),{children:a}=s;let t;return e[0]!==a?(t=o.jsx("h3",{className:"text-sm font-medium text-foreground",children:a}),e[0]=a,e[1]=t):t=e[1],t}const Ae=[];function Ee(s){const e=E.c(71),{value:a,onChange:t,inherited:n,fill:i}=s,l=n===void 0?Ae:n,c=i===void 0?!1:i,r=H(),p=be();let d;e[0]!==p.data?(d=B=>p.data?.find(w=>w.id===B)?.name??B,e[0]=p.data,e[1]=d):d=e[1];const j=d;let f,x,m,u,k,b,S,h,R,v;if(e[2]!==p.data||e[3]!==c||e[4]!==l||e[5]!==j||e[6]!==t||e[7]!==r||e[8]!==a){let B;e[19]!==l||e[20]!==a?(B=g=>!g.disableModelInvocation&&!a.includes(g.id)&&!l.includes(g.id),e[19]=l,e[20]=a,e[21]=B):B=e[21];const w=(p.data??[]).filter(B);if(e[22]!==c||e[23]!==l||e[24]!==j||e[25]!==t||e[26]!==r||e[27]!==a){let g;e[30]!==l?(g=_=>!l.includes(_),e[30]=l,e[31]=g):g=e[31];const G=a.filter(g),M=c&&"min-h-0 flex-1";e[32]!==M?(v=q("flex flex-col gap-2",M),e[32]=M,e[33]=v):v=e[33],u=G.length>0&&o.jsx("div",{className:"flex flex-wrap gap-1.5",children:G.map(_=>o.jsxs(K,{variant:"outline",className:"py-0 pr-0 pl-2",children:[j(_),o.jsx(ue,{label:r("taskBoard.columnRules.removeSkill",{skill:j(_)}),onClick:()=>t(a.filter(ee=>ee!==_)),className:"size-5 text-muted-foreground",children:o.jsx(ne,{size:12})})]},_))}),e[22]=c,e[23]=l,e[24]=j,e[25]=t,e[26]=r,e[27]=a,e[28]=u,e[29]=v}else u=e[28],v=e[29];m=ie;const O=c&&"min-h-0 flex-1";e[34]!==O?(h=q("h-auto border",O),e[34]=O,e[35]=h):h=e[35];let P;e[36]!==r?(P=r("taskBoard.columnRules.searchSkills"),e[36]=r,e[37]=P):P=e[37],e[38]!==P?(R=o.jsx(oe,{placeholder:P,className:"h-9"}),e[38]=P,e[39]=R):R=e[39],x=re;const I=c?"max-h-none flex-1":"max-h-56";e[40]!==I?(b=q(I),e[40]=I,e[41]=b):b=e[41];let $;e[42]!==r?($=r("taskBoard.columnRules.noSkills"),e[42]=r,e[43]=$):$=e[43],e[44]!==$?(S=o.jsx(ce,{children:$}),e[44]=$,e[45]=S):S=e[45],f=de;let L;e[46]!==t||e[47]!==a?(L=g=>o.jsxs(me,{value:`${g.name} ${g.id}`,onSelect:()=>t([...a,g.id]),children:[o.jsx(ae,{size:14,className:"shrink-0 text-muted-foreground"}),o.jsxs("span",{className:"flex min-w-0 flex-col",children:[o.jsx("span",{className:"truncate text-sm",children:g.name}),g.description&&o.jsx("span",{className:"text-meta line-clamp-1",children:g.description})]})]},g.id),e[46]=t,e[47]=a,e[48]=L):L=e[48],k=w.map(L),e[2]=p.data,e[3]=c,e[4]=l,e[5]=j,e[6]=t,e[7]=r,e[8]=a,e[9]=f,e[10]=x,e[11]=m,e[12]=u,e[13]=k,e[14]=b,e[15]=S,e[16]=h,e[17]=R,e[18]=v}else f=e[9],x=e[10],m=e[11],u=e[12],k=e[13],b=e[14],S=e[15],h=e[16],R=e[17],v=e[18];let C;e[49]!==f||e[50]!==k?(C=o.jsx(f,{children:k}),e[49]=f,e[50]=k,e[51]=C):C=e[51];let N;e[52]!==x||e[53]!==C||e[54]!==b||e[55]!==S?(N=o.jsxs(x,{className:b,children:[S,C]}),e[52]=x,e[53]=C,e[54]=b,e[55]=S,e[56]=N):N=e[56];let T;e[57]!==m||e[58]!==N||e[59]!==h||e[60]!==R?(T=o.jsxs(m,{className:h,children:[R,N]}),e[57]=m,e[58]=N,e[59]=h,e[60]=R,e[61]=T):T=e[61];let y;e[62]!==l||e[63]!==j||e[64]!==r?(y=l.length>0&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-meta",children:r("taskBoard.columnRules.inheritedHint")}),o.jsx("div",{className:"flex flex-wrap gap-1.5",children:l.map(B=>o.jsx(K,{variant:"muted",children:j(B)},B))})]}),e[62]=l,e[63]=j,e[64]=r,e[65]=y):y=e[65];let A;return e[66]!==u||e[67]!==T||e[68]!==y||e[69]!==v?(A=o.jsxs("div",{className:v,children:[u,T,y]}),e[66]=u,e[67]=T,e[68]=y,e[69]=v,e[70]=A):A=e[70],A}export{Ye as C,Ee as S,Ve as a,Be as b,Ce as c,Ge as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Q,r as U,j as s,l as S,B as W,ah as X}from"./index-
|
|
1
|
+
import{c as Q,r as U,j as s,l as S,B as W,ah as X}from"./index-Gu6p_bn6.js";import{i as Y}from"./ChevronSelectorVertical-yrgeHjmf.js";import{e as Z,C as _,b as ee,a as se,c as te,d as le}from"./command-mzLX0leD.js";import{a as ae,P as oe,b as re}from"./popover-D9c0rC9X.js";function de(z){const e=Q.c(48),{options:C,value:l,onChange:j,placeholder:A,triggerClassName:F,contentClassName:w,width:G,renderTrigger:L,renderItem:r,emptyMessage:V,searchPlaceholder:k,filter:P,renderSearchAction:E,onSearchChange:n}=z,D=A===void 0?"Select...":A,H=G===void 0?"w-[200px]":G,O=V===void 0?"No results found.":V,T=k===void 0?"Search...":k;let g;e[0]!==l?(g=a=>a.value===l,e[0]=l,e[1]=g):g=e[1];const I=C.find(g),[B,J]=U.useState(!1);let b;e[2]!==n?(b=a=>{J(a),a||n?.("")},e[2]=n,e[3]=b):b=e[3];const t=b,M=oe,R=ae,K=!0,$=L?s.jsx("div",{className:S("cursor-pointer",F),children:L(I)}):s.jsxs(W,{variant:"outline",role:"combobox",className:S("justify-between",H,F),children:[I?I.label:D,s.jsx(Y,{className:"opacity-50"})]});let c;e[4]!==R||e[5]!==$?(c=s.jsx(R,{asChild:K,children:$}),e[4]=R,e[5]=$,e[6]=c):c=e[6];let i;e[7]!==w?(i=S("p-0",w),e[7]=w,e[8]=i):i=e[8];let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y={width:"var(--radix-popover-trigger-width)"},e[9]=y):y=e[9];let m;e[10]!==E||e[11]!==t?(m=E?.(()=>t(!1)),e[10]=E,e[11]=t,e[12]=m):m=e[12];let d;e[13]!==n||e[14]!==T||e[15]!==m?(d=s.jsx(Z,{placeholder:T,className:"h-9",onValueChange:n,action:m}),e[13]=n,e[14]=T,e[15]=m,e[16]=d):d=e[16];let h;e[17]!==O?(h=s.jsx(_,{children:O}),e[17]=O,e[18]=h):h=e[18];let f;if(e[19]!==j||e[20]!==C||e[21]!==r||e[22]!==t||e[23]!==l){let a;e[25]!==j||e[26]!==r||e[27]!==t||e[28]!==l?(a=o=>{const q=l===o.value;return s.jsx(ee,{value:o.label,onSelect:()=>{j(o.value===l?"":o.value),t(!1)},children:r?r(o,q):s.jsxs(s.Fragment,{children:[o.label,s.jsx(X,{className:S("ml-auto",q?"opacity-100":"opacity-0")})]})},o.value)},e[25]=j,e[26]=r,e[27]=t,e[28]=l,e[29]=a):a=e[29],f=C.map(a),e[19]=j,e[20]=C,e[21]=r,e[22]=t,e[23]=l,e[24]=f}else f=e[24];let p;e[30]!==f?(p=s.jsx(se,{children:f}),e[30]=f,e[31]=p):p=e[31];let u;e[32]!==h||e[33]!==p?(u=s.jsxs(te,{children:[h,p]}),e[32]=h,e[33]=p,e[34]=u):u=e[34];let x;e[35]!==P||e[36]!==d||e[37]!==u?(x=s.jsxs(le,{filter:P,children:[d,u]}),e[35]=P,e[36]=d,e[37]=u,e[38]=x):x=e[38];let v;e[39]!==i||e[40]!==x?(v=s.jsx(re,{className:i,style:y,children:x}),e[39]=i,e[40]=x,e[41]=v):v=e[41];let N;return e[42]!==M||e[43]!==B||e[44]!==t||e[45]!==v||e[46]!==c?(N=s.jsxs(M,{open:B,onOpenChange:t,children:[c,v]}),e[42]=M,e[43]=B,e[44]=t,e[45]=v,e[46]=c,e[47]=N):N=e[47],N}export{de as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,l as h,j as r,aU as b,D as j,v as w,aM as y,s as C,q as z}from"./index-
|
|
1
|
+
import{c as v,l as h,j as r,aU as b,D as j,v as w,aM as y,s as C,q as z}from"./index-Gu6p_bn6.js";import{_ as k}from"./index-D-oDxCEJ.js";import{i as D}from"./SearchMd-Dqn_93IA.js";function $(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k,{"data-slot":"command",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function L(a){const e=v.c(28);let t,s,o,l,n,_,u;e[0]!==a?({title:_,description:u,children:t,className:s,filter:o,shouldFilter:n,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=n,e[6]=_,e[7]=u):(t=e[1],s=e[2],o=e[3],l=e[4],n=e[5],_=e[6],u=e[7]);const f=_===void 0?"Command Palette":_,x=u===void 0?"Search for a command to run...":u;let g;e[8]!==f?(g=r.jsx(w,{children:f}),e[8]=f,e[9]=g):g=e[9];let i;e[10]!==x?(i=r.jsx(y,{children:x}),e[10]=x,e[11]=i):i=e[11];let d;e[12]!==g||e[13]!==i?(d=r.jsxs(C,{className:"sr-only",children:[g,i]}),e[12]=g,e[13]=i,e[14]=d):d=e[14];let c;e[15]!==s?(c=h("overflow-hidden p-0",s),e[15]=s,e[16]=c):c=e[16];let m;e[17]!==t||e[18]!==o||e[19]!==n?(m=r.jsx($,{filter:o,shouldFilter:n,className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg:not([class*='size-'])]:h-5 [&_[cmdk-item]_svg:not([class*='size-'])]:w-5",children:t}),e[17]=t,e[18]=o,e[19]=n,e[20]=m):m=e[20];let p;e[21]!==c||e[22]!==m?(p=r.jsx(z,{className:c,closeButtonClassName:"hidden",children:m}),e[21]=c,e[22]=m,e[23]=p):p=e[23];let N;return e[24]!==l||e[25]!==d||e[26]!==p?(N=r.jsxs(j,{...l,children:[d,p]}),e[24]=l,e[25]=d,e[26]=p,e[27]=N):N=e[27],N}function R(a){const e=v.c(23);let t,s,o,l,n;e[0]!==a?({className:s,size:l,variant:n,action:t,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=n):(t=e[1],s=e[2],o=e[3],l=e[4],n=e[5]);const _=l===void 0?"default":l,u=n===void 0?"underline":n,f=_==="sm"?"h-9":"h-10",x=u==="boxed",g=x?"rounded-xl border border-input bg-transparent focus-within:border-ring":"border-b";let i;e[6]!==f||e[7]!==g?(i=h("flex items-center gap-2 px-3",f,g),e[6]=f,e[7]=g,e[8]=i):i=e[8];let d;e[9]!==x?(d=!x&&r.jsx(D,{className:"size-4 shrink-0 text-muted-foreground"}),e[9]=x,e[10]=d):d=e[10];let c;e[11]!==s||e[12]!==f?(c=h("placeholder:text-muted-foreground flex w-full rounded-md bg-transparent text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",f,s),e[11]=s,e[12]=f,e[13]=c):c=e[13];let m;e[14]!==o||e[15]!==c?(m=r.jsx(k.Input,{"data-slot":"command-input",className:c,...o}),e[14]=o,e[15]=c,e[16]=m):m=e[16];let p;return e[17]!==t||e[18]!==i||e[19]!==d||e[20]!==m||e[21]!==u?(p=r.jsxs("div",{"data-slot":"command-input-wrapper","data-variant":u,className:i,children:[d,m,t]}),e[17]=t,e[18]=i,e[19]=d,e[20]=m,e[21]=u,e[22]=p):p=e[22],p}function V(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.List,{"data-slot":"command-list",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function q(a){const e=v.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let s;return e[2]!==t?(s=r.jsx(k.Empty,{"data-slot":"command-empty",className:"text-muted-foreground px-4 py-4 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function B(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function F(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("bg-border -mx-1 h-px",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}const I=b("[&_svg:not([class*='text-'])]:text-muted-foreground relative flex min-h-8 cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{highlight:{selected:"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground",hover:"w-full hover:bg-accent hover:text-accent-foreground"},size:{default:"",lg:"min-h-11 gap-3 rounded-lg px-2.5 py-2"}},defaultVariants:{highlight:"selected",size:"default"}});function H(a){const e=v.c(10);let t,s,o;e[0]!==a?({className:t,size:o,...s}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o):(t=e[1],s=e[2],o=e[3]);let l;e[4]!==t||e[5]!==o?(l=h(I({size:o}),t),e[4]=t,e[5]=o,e[6]=l):l=e[6];let n;return e[7]!==s||e[8]!==l?(n=r.jsx(k.Item,{"data-slot":"command-item",className:l,...s}),e[7]=s,e[8]=l,e[9]=n):n=e[9],n}export{q as C,B as a,H as b,V as c,$ as d,R as e,L as f,I as g,F as h};
|
package/dist/client/assets/{companion-mcps-section-D22vLHNd.js → companion-mcps-section-Dxsj478B.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as _,r as T,l as Q,j as s,Q as Y,H as Z,b as U,a as ee,J as te,B as ne}from"./index-
|
|
1
|
+
import{c as _,r as T,l as Q,j as s,Q as Y,H as Z,b as U,a as ee,J as te,B as ne}from"./index-Gu6p_bn6.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-rvPKbELE.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-BPgrOpJ-.js";function ce(t){const e=_.c(14),{children:n,className:o,wrapperClassName:r}=t,[d,c]=T.useState(!0);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=u=>{if(!u)return;const y=()=>{const j=u.scrollHeight-u.scrollTop-u.clientHeight<8;c(j)};y(),u.addEventListener("scroll",y,{passive:!0});const b=new ResizeObserver(y);b.observe(u);for(const j of Array.from(u.children))b.observe(j);return()=>{u.removeEventListener("scroll",y),b.disconnect()}},e[0]=f):f=e[0];const p=f;let l;e[1]!==r?(l=Q("relative",r),e[1]=r,e[2]=l):l=e[2];let i;e[3]!==n||e[4]!==o?(i=s.jsx("div",{ref:p,className:o,children:n}),e[3]=n,e[4]=o,e[5]=i):i=e[5];const a=d?"opacity-0":"opacity-100";let x;e[6]!==a?(x=Q("pointer-events-none absolute inset-x-0 -bottom-px h-[72px]","bg-gradient-to-t from-sidebar from-[6px] to-transparent","backdrop-blur-[1px] [mask-image:linear-gradient(to_top,black_6px,transparent)]","transition-opacity duration-200",a),e[6]=a,e[7]=x):x=e[7];let m;e[8]!==x?(m=s.jsx("div",{"aria-hidden":!0,className:x}),e[8]=x,e[9]=m):m=e[9];let g;return e[10]!==l||e[11]!==i||e[12]!==m?(g=s.jsxs("div",{className:l,children:[i,m]}),e[10]=l,e[11]=i,e[12]=m,e[13]=g):g=e[13],g}const z="flex min-h-0 flex-1 flex-col gap-6 md:grid md:flex-none md:gap-6";function q(){const t=_.c(4),e=U();let n;t[0]!==e?(n=e("routes.reportsOnboarding.companionSection.title"),t[0]=e,t[1]=n):n=t[1];let o;return t[2]!==n?(o=s.jsx("h1",{className:"text-lg font-medium leading-6 text-foreground lg:text-xl lg:leading-7",children:n}),t[2]=n,t[3]=o):o=t[3],o}function de(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex flex-col gap-4",children:[0,1,2,3].map(me)}),t[0]=e):e=t[0],e}function me(t){return s.jsx(ae,{},t)}function fe(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:z,children:[s.jsx(q,{}),s.jsx(de,{})]}),t[0]=e):e=t[0],e}function ue(t){const e=_.c(18),{onRetry:n}=t,o=U();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(q,{}),e[0]=r):r=e[0];let d;e[1]!==o?(d=o("routes.reportsOnboarding.companionSection.loadError"),e[1]=o,e[2]=d):d=e[2];let c;e[3]!==d?(c=s.jsx("p",{className:"text-sm text-foreground",children:d}),e[3]=d,e[4]=c):c=e[4];let f;e[5]!==o?(f=o("routes.reportsOnboarding.companionSection.loadErrorDescription"),e[5]=o,e[6]=f):f=e[6];let p;e[7]!==f?(p=s.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:f}),e[7]=f,e[8]=p):p=e[8];let l;e[9]!==o?(l=o("routes.reportsOnboarding.companionSection.retry"),e[9]=o,e[10]=l):l=e[10];let i;e[11]!==n||e[12]!==l?(i=s.jsx(ne,{type:"button",variant:"outline",size:"sm",className:"mt-3",onClick:n,children:l}),e[11]=n,e[12]=l,e[13]=i):i=e[13];let a;return e[14]!==c||e[15]!==p||e[16]!==i?(a=s.jsxs("div",{className:z,children:[r,s.jsxs("div",{role:"alert",className:"rounded-2xl border border-border bg-card p-4",children:[c,p,i]})]}),e[14]=c,e[15]=p,e[16]=i,e[17]=a):a=e[17],a}function ve(t){const e=_.c(2);let n;return e[0]!==t?(n=s.jsx(Y,{children:o=>{const{reset:r}=o;return s.jsx(Z,{fallback:d=>{const{resetError:c}=d;return s.jsx(ue,{onRetry:()=>{r(),c()}})},children:s.jsx(T.Suspense,{fallback:s.jsx(fe,{}),children:s.jsx(pe,{...t})})})}}),e[0]=t,e[1]=n):n=e[1],n}function pe(t){const e=_.c(60),{org:n,cdConnectionId:o,siteUrl:r,onReadinessChange:d}=t,c=U(),{data:f}=ee.useSession(),p=f?.user?.id??"";let l;if(e[0]!==r){const $=r?se(r):null;if($?.ok)try{l=new URL($.value).hostname}catch{l=void 0}e[0]=r,e[1]=l}else l=e[1];let i;e[2]!==n.id||e[3]!==n.slug?(i={connectionId:te,orgId:n.id,orgSlug:n.slug},e[2]=n.id,e[3]=n.slug,e[4]=i):i=e[4];const a=oe(i);let x;e[5]!==o||e[6]!==n||e[7]!==a||e[8]!==r?(x={selfClient:a,org:n,cdConnectionId:o,siteUrl:r},e[5]=o,e[6]=n,e[7]=a,e[8]=r,e[9]=x):x=e[9];const{cards:m,saStatusUnavailable:g}=re(x);let u;e[10]!==o||e[11]!==n||e[12]!==a||e[13]!==l||e[14]!==r||e[15]!==p?(u={selfClient:a,org:n,userId:p,cdConnectionId:o,domain:l,siteUrl:r},e[10]=o,e[11]=n,e[12]=a,e[13]=l,e[14]=r,e[15]=p,e[16]=u):u=e[16];const{connect:y,connectingFieldKey:b,disconnect:j,disconnectingFieldKey:L,error:N}=le(u),[F,D]=T.useState(null),P=he;let E,R,C,k,K,O,I,w,S,v;if(e[17]!==F||e[18]!==m||e[19]!==y||e[20]!==N||e[21]!==b||e[22]!==j||e[23]!==L||e[24]!==d||e[25]!==n||e[26]!==g||e[27]!==a||e[28]!==r||e[29]!==c){k=Symbol.for("react.early_return_sentinel");e:{const $=m.filter(ge),J=m.filter(xe),G=g||($.length>0?$.every(P):m.length===0||m.some(P));if(d?.(G),m.length===0){k=null;break e}const V=b!==null||L!==null,W=h=>{const X=async()=>{await y(h)&&D(h.fieldKey)};return s.jsx(ie,{card:h,connecting:b===h.fieldKey,disconnecting:L===h.fieldKey,disabled:V&&b!==h.fieldKey&&L!==h.fieldKey,org:n,selfClient:a,siteUrl:r,autoOpenConfigFieldKey:F,onAutoOpenConfigHandled:()=>D(H=>H===h.fieldKey?null:H),onConnect:()=>{X()},onDisconnect:()=>{j(h)}},h.fieldKey)};R=z,e[40]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(q,{}),e[40]=C):C=e[40],E=ce,I="flex min-h-0 flex-1 flex-col md:block",w="-mx-1 min-h-0 flex-1 overflow-y-auto px-1 md:max-h-[min(60vh,calc(100dvh-330px))] md:flex-none",e[41]!==N?(S=N&&s.jsx("p",{role:"alert",className:"mb-3 text-sm text-destructive",children:N}),e[41]=N,e[42]=S):S=e[42],e[43]!==g||e[44]!==c?(v=g&&s.jsx("p",{role:"status",className:"mb-3 rounded-lg border border-warning/40 bg-warning/10 p-3 text-sm text-foreground",children:c("routes.reportsOnboarding.companionSection.statusUnavailable")}),e[43]=g,e[44]=c,e[45]=v):v=e[45],K="flex flex-col gap-4 pt-3",O=[...$,...J].map(W)}e[17]=F,e[18]=m,e[19]=y,e[20]=N,e[21]=b,e[22]=j,e[23]=L,e[24]=d,e[25]=n,e[26]=g,e[27]=a,e[28]=r,e[29]=c,e[30]=E,e[31]=R,e[32]=C,e[33]=k,e[34]=K,e[35]=O,e[36]=I,e[37]=w,e[38]=S,e[39]=v}else E=e[30],R=e[31],C=e[32],k=e[33],K=e[34],O=e[35],I=e[36],w=e[37],S=e[38],v=e[39];if(k!==Symbol.for("react.early_return_sentinel"))return k;let A;e[46]!==K||e[47]!==O?(A=s.jsx("div",{className:K,children:O}),e[46]=K,e[47]=O,e[48]=A):A=e[48];let B;e[49]!==E||e[50]!==A||e[51]!==I||e[52]!==w||e[53]!==S||e[54]!==v?(B=s.jsxs(E,{wrapperClassName:I,className:w,children:[S,v,A]}),e[49]=E,e[50]=A,e[51]=I,e[52]=w,e[53]=S,e[54]=v,e[55]=B):B=e[55];let M;return e[56]!==R||e[57]!==C||e[58]!==B?(M=s.jsxs("div",{className:R,children:[C,B]}),e[56]=R,e[57]=C,e[58]=B,e[59]=M):M=e[59],M}function xe(t){return!t.required}function ge(t){return t.required}function he(t){return t.satisfied&&t.configured}export{fe as C,ce as S,ve as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as C,m as b}from"./core.esm-
|
|
1
|
+
import{p as C,m as b}from"./core.esm-Ds5IbpoU.js";import{i as h}from"./AlertCircle-Bd_c5lvx.js";import{aX as x,aY as k,aZ as f,a_ as _,t as K,a$ as v,b0 as B,aJ as S,a7 as A,x as w,B as O,b1 as I}from"./agent-icon-BbVfkRpF.js";import{b0 as L,aN as T,d8 as g,a6 as D}from"./index-Gu6p_bn6.js";import{i as E}from"./CheckCircle-DwYX4v4z.js";import{s as R}from"./Image01-Dis3SEGR.js";import{e as $,C as l}from"./task-board-aXTBpoFu.js";const M=L("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]),P=["ended_after_delivery","superseded"];function U(e){return!!e&&P.includes(e)}function ee(e){return!(e.action==="status_changed"&&typeof e.data?.retry=="number")}function te(e){return e.failureKind!=="superseded"}function p(e){return e.threads.some(t=>t.status==="requires_action")}function ae(e){return e.status==="in_review"&&!e.assigneeId}function se(e){return p(e)}function ne(e){return e.status==="in_progress"&&p(e)?"text-warning animate-pulse":N(e.status).iconClassName}function oe(e){return e.threads.some(a=>a.status==="in_progress")?"running":e.threads.some(a=>a.status==="failed"&&!U(a.failureKind))?"failed":null}function re(e,t,a){const s=e.findIndex(n=>n.id===a),o=t===a?e[s+1]?.id??null:t,r=e.filter(n=>n.id!==a),u=o?r.findIndex(n=>n.id===o):-1,d=u===-1?r.length:u,i=r[d-1],c=r[d];return i&&c?(i.sortOrder+c.sortOrder)/2:i?i.sortOrder+1:c?c.sortOrder-1:0}function ie(e,t){return Array.from({length:t},(a,s)=>e-(t-1-s)*1e-4)}const F=["archived"],y={triage:{labelKey:"taskBoard.config.statusBacklog",icon:h,iconClassName:"text-muted-foreground"},todo:{labelKey:"taskBoard.config.statusTodo",icon:g,iconClassName:"text-muted-foreground"},in_progress:{labelKey:"taskBoard.config.statusInProgress",icon:A,iconClassName:"text-primary"},in_review:{labelKey:"taskBoard.config.statusInReview",icon:R,iconClassName:"text-warning"},qa:{labelKey:"taskBoard.config.statusQa",icon:S,iconClassName:"text-warning"},customer_approval:{labelKey:"taskBoard.config.statusCustomerApproval",icon:B,iconClassName:"text-warning"},ready_for_deployment:{labelKey:"taskBoard.config.statusReadyForDeployment",icon:v,iconClassName:"text-success"},post_deploy_validation:{labelKey:"taskBoard.config.statusPostDeployValidation",icon:K,iconClassName:"text-warning"},done:{labelKey:"taskBoard.config.statusDone",icon:E,iconClassName:"text-success"},archived:{labelKey:"taskBoard.config.statusArchived",icon:T,iconClassName:"text-muted-foreground"}},H={icon:g,iconClassName:"text-muted-foreground"},Y=y;function N(e){return Y[e]??H}function ce(e,t){const a=y[e];return{label:a?t(a.labelKey):e,visual:N(e)}}const le=["bug","feature","chore","spike","security"],ue={bug:{labelKey:"taskBoard.config.typeBug",icon:M,iconClassName:"text-destructive"},feature:{labelKey:"taskBoard.config.typeFeature",icon:I,iconClassName:"text-success"},chore:{labelKey:"taskBoard.config.typeChore",icon:O,iconClassName:"text-muted-foreground"},spike:{labelKey:"taskBoard.config.typeSpike",icon:w,iconClassName:"text-yellow-500"},security:{labelKey:"taskBoard.config.typeSecurity",icon:D,iconClassName:"text-purple-500"}};function de({shownLanes:e}){const t=l.filter(s=>F.includes(s)),a=t.filter(s=>!e.includes(s));return{lanes:l.filter(s=>!a.includes(s)),hidden:a,hideable:t}}const q=44;function fe({lanes:e,collapsed:t,hasHiddenTail:a}){const s=e.map(o=>t.includes(o)?`${q}px`:"minmax(280px, 1fr)");return a&&s.push("280px"),s.join(" ")}const m="lane:",me=e=>{const t=C(e);return t.length>0?t:b(e)};function G(e){return l.includes(e)}function ge({overId:e,statusOf:t}){if(e===void 0)return null;const a=String(e),s=a.startsWith(m)?a.slice(m.length):t(a);return s!==void 0&&G(s)?s:null}function pe(e,t){return Math.max(0,Math.floor((t-Date.parse(e))/864e5))}const ye=["none","low","medium","high","urgent"],Ne={none:{labelKey:"taskBoard.config.priorityNone",flagClassName:"text-muted-foreground",dotClassName:"border border-muted-foreground/50",icon:f,iconClassName:"text-muted-foreground/40"},low:{labelKey:"taskBoard.config.priorityLow",flagClassName:"text-muted-foreground",dotClassName:"bg-muted-foreground/40",icon:_,iconClassName:"text-muted-foreground"},medium:{labelKey:"taskBoard.config.priorityMedium",flagClassName:"text-blue-500",dotClassName:"bg-blue-500",icon:f,iconClassName:"text-blue-500"},high:{labelKey:"taskBoard.config.priorityHigh",flagClassName:"text-warning",dotClassName:"bg-warning",icon:k,iconClassName:"text-warning"},urgent:{labelKey:"taskBoard.config.priorityUrgent",flagClassName:"text-destructive",dotClassName:"bg-destructive",icon:x,iconClassName:"text-destructive"}};function Ce(e,t=Date.now()){const a=new Date(e).getTime();return Number.isNaN(a)?null:a<t?"overdue":a-t<=V*864e5?"soon":null}const V=3;function be(e){return`color-mix(in oklab, ${e??$} var(--user-color-strength), transparent)`}export{F as H,m as L,ye as P,y as S,le as T,ae as a,Ne as b,ue as c,N as d,te as e,ee as f,U as g,oe as h,p as i,de as j,me as k,ce as l,fe as m,se as n,re as o,ge as p,Ce as q,ie as r,ne as s,be as t,pe as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as k,j as s,b as _,r as J,l as Ce,ah as fe,f_ as be,a2 as ve,am as Ne,a3 as ke,B as ie,t as me,eU as pe,en as we,au as Se}from"./index-
|
|
1
|
+
import{c as k,j as s,b as _,r as J,l as Ce,ah as fe,f_ as be,a2 as ve,am as Ne,a3 as ke,B as ie,t as me,eU as pe,en as we,au as Se}from"./index-Gu6p_bn6.js";import{A as $e,b as _e}from"./alert-CKvl4oEg.js";import{B as Ke}from"./badge-BHSeIY_1.js";import{a as Ae,b as Ie,c as de,d as ze,S as Te}from"./select-C5ZUHdTe.js";import{c as se,T as oe,a as xe,b as ae}from"./tabs-Db8UWqyQ.js";import{u as ge}from"./use-copy-BaP-Mfq6.js";import{a as he}from"./Copy01-D9EWjRj_.js";import{i as Le}from"./Key01-Dpml-zEF.js";import{i as Oe}from"./Link01-CH9KeNiW.js";import{C as De,a as Me,b as Ee}from"./client-icons-DICBBMpW.js";import{u as Be,a as He,A as Pe}from"./api-keys-DgmBxzOS.js";import{R as Ge}from"./require-capability-p2N_SBPn.js";import"./index-BdQq_4o_.js";import"./index-XtHbGpIO.js";import"./ChevronUp-BWLwOWUB.js";import"./AlertCircle-Bd_c5lvx.js";import"./Plus-B78UgIQj.js";import"./Trash01-DgiFlWKM.js";import"./alert-dialog-BUOq5Ccz.js";import"./label-80aEOuD4.js";import"./use-mcp-client-rvPKbELE.js";import"./auth-Dvjx-0pF.js";import"./access-gate-4xSYYx4U.js";import"./capability-load-error-B5_k1Nfi.js";function Re(){return(typeof window>"u"?"":window.location.hostname||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"studio"}function Ue(t){return`${typeof window>"u"?"http://localhost:3000":window.location.origin}/api/${t}/mcp/self`}function Ve({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
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,b as N,j as s,af as w,aX as k,au as y,B as z}from"./index-
|
|
1
|
+
import{c as v,b as N,j as s,af as w,aX as k,au as y,B as z}from"./index-Gu6p_bn6.js";import{b2 as _,aC as C}from"./agent-icon-BbVfkRpF.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-[13px] 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-[15px] 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 p}from"./url-slug-
|
|
1
|
+
import{U as p}from"./url-slug-B0r7Le3c.js";import{aF as o,bV as a,bW as t,aG as e,cY as i,cW as r,d0 as b,dQ as m,cX as h}from"./index-Gu6p_bn6.js";const _=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:b("object"),properties:i(e(),r()).optional(),required:t(e()).optional()}).catchall(r()),g=m.extend({inputSchema:s,outputSchema:s.optional()}),f=o({headers:i(e(),e()).optional()}),S=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)")}),d=256*1024;function l(n){return i(e(),r()).nullable().refine(c=>c===null||JSON.stringify(c).length<=d,{message:`${n} must serialize to at most ${d} bytes`})}const u=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:h([S,f]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:_.nullable().describe("OAuth configuration"),configuration_state:l("configuration_state").describe("Configuration state (decrypted)"),configuration_scopes:t(e()).nullable().optional().describe("Configuration scopes"),metadata:l("metadata").describe("Additional metadata (includes repository info)"),tools:t(g).nullable().describe("Discovered tools from MCP"),bindings:t(e()).nullable().describe("Detected bindings"),status:a(["active","inactive","error"]).describe("Current status")});u.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()});u.partial().extend({url_slug:p.nullish()});function U(n){return n!=null&&"command"in n}function D(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}export{_ as O,U as i,D as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as M,a2 as S,a9 as $,K as F,ag as R,b as K,l as A,j as c,eU as q}from"./index-
|
|
1
|
+
import{c as M,a2 as S,a9 as $,K as F,ag as R,b as K,l as A,j as c,eU as q}from"./index-Gu6p_bn6.js";import{u as O}from"./useInfiniteQuery-DlArWAqw.js";import{g as D}from"./connection-slug-CITJ0kGN.js";import{I as V}from"./integration-icon-BRP_biyX.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:z,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(Y)??[],e[11]=i.data?.pages,e[12]=p):p=e[12];const m=p;let f;e[13]!==i?(f=()=>{i.hasNextPage&&!i.isFetchingNextPage&&i.fetchNextPage()},e[13]=i,e[14]=f):f=e[14];let d;return e[15]!==m||e[16]!==i.hasNextPage||e[17]!==i.isFetchingNextPage||e[18]!==i.isLoading||e[19]!==f?(d={items:m,hasMore:i.hasNextPage,isLoadingMore:i.isFetchingNextPage,isInitialLoading:i.isLoading,loadMore:f},e[15]=m,e[16]=i.hasNextPage,e[17]=i.isFetchingNextPage,e[18]=i.isLoading,e[19]=f,e[20]=d):d=e[20],d}function Y(t){return t.items}function z(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(),f=o&&"cursor-pointer hover:bg-muted/50";let d;e[0]!==a||e[1]!==f?(d=A("transition-colors group overflow-hidden flex flex-col h-full",f,a),e[0]=a,e[1]=f,e[2]=d):d=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(V,{icon:s.icon,name:s.title,size:"sm",className:"shrink-0 shadow-sm",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]!==d||e[38]!==I||e[39]!==_||e[40]!==T||e[41]!==g?(E=c.jsx(q,{className:d,onClick:o,role:I,tabIndex:_,"aria-pressed":T,onKeyDown:g,children:w}),e[35]=o,e[36]=w,e[37]=d,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 ve,cY as Oe,cW as Me,aG as de,bW as ze,c as U,b as V,j as t,h as Ne,B,r as X,l as Se,a2 as te,a9 as Ee,R as me,K as ee,d as se,x as ye,au as _e,eU as Re,b1 as Ue,n as Fe,fF as ue,a1 as Ve,I as J,X as Le,T as Be,V as qe,U as xe,H as Ge,f as He,fO as Ke,o as We,aE as Xe,aD as Qe,t as Y}from"./index-D_e1FjwV.js";import{g as Ye}from"./extract-connection-data-CVZ9OfNz.js";import{E as Ce}from"./empty-state-Dwaj7cbq.js";import{E as Je,r as Ze,b as et,c as tt}from"./connection-form-helpers-CY2wGEex.js";import{c as st,S as nt,D as it}from"./index-BuWS6DRb.js";import{u as we,T as ot}from"./use-mcp-auth-status-Cpx5wFs6.js";import{a as at}from"./use-members-DCpyBD9E.js";import{A as lt}from"./avatar-DdSak0Sb.js";import{a as rt}from"./mcp-oauth-DkhydAIA.js";import{I as ae}from"./integration-icon-XTPBo75P.js";import{s as ct}from"./Plus-DmY-I-W1.js";import{bh as dt,aC as mt,ay as ut,q as ne}from"./agent-icon-Czh6MNam.js";import{a as ke,e as xt,s as pt}from"./Tool01-CbGwYE-2.js";import{s as re}from"./Trash01-DArHDncW.js";import{b as ft,a as ht,c as gt,S as jt,d as bt}from"./sheet-CjAkecww.js";import{F as G,b as H,c as K,d as L,f as W,e as vt,a as Nt}from"./form-Rtl3vzMe.js";import{a as Ie,b as Te,u as St}from"./use-connection-DO0-79cg.js";import{u as Ae}from"./use-mcp-client-CfQ2861m.js";import{u as yt}from"./use-mcp-tools-D9QrmiTi.js";import{a as _t}from"./use-mcp-prompts-CmJ6-k3W.js";import{i as Ct}from"./mcp-oauth-Bzq_QRWa.js";import{u as wt,D as kt}from"./use-delete-connection-Bgit0egW.js";import{c as It}from"./monitoring-stats-row-DJLs7kug.js";import{d as Tt,C as At,a as Pt}from"./chart-CjhNJQDa.js";import{B as Dt,a as $t}from"./BarChart-CDSH2Akh.js";import{C as Ot}from"./tooltipContext-DMOc99qE.js";import{b as Mt}from"./repository-binding-Ck0_Tx8R.js";import{T as ie,a as zt,c as oe,b as Et}from"./tabs-DKbHk2Gg.js";import{g as Pe}from"./connection-slug-CITJ0kGN.js";import{n as Rt}from"./ShoppingBag01-Crf2xSz3.js";import{g as ce}from"./types-B2yiAKQY.js";import{M as Ut}from"./mcp-app-renderer-NvRGXYxY.js";import{C as Ft}from"./collection-search-C0fvUi6S.js";import{B as Vt}from"./badge-Dmtt-CEm.js";import{S as pe,b as fe,a as he,d as ge,c as q}from"./select-DEQANoyw.js";import{i as Lt}from"./CheckCircle-BSvXc66Q.js";import{t as Bt}from"./ChevronUp-bmzgw7dV.js";import{n as qt}from"./LinkBroken01-B6cSnLw2.js";import{c as Gt}from"./UserSquare-zw-tgJGh.js";import{s as Ht}from"./XClose-DxE71MU7.js";import{p as Kt,i as Wt}from"./connection-D2EgMJ9G.js";import{c as Xt}from"./schema-Cg0_pwUT.js";import"./metadata-D72DunRR.js";import"./Key01-CAPfBcFM.js";import"./auth-eKkR4KqF.js";import"./index-zmOiuX4C.js";import"./index-Dq0Ol_2W.js";import"./index-BdQq_4o_.js";import"./index-DhgK6U3I.js";import"./popover-CEeE7dqd.js";import"./tooltip-Co4Z1kVi.js";import"./index-CmBG44Dg.js";import"./SearchMd-Dqev4UbC.js";import"./use-mobile-DAFwKM65.js";import"./use-create-virtual-mcp-D5jpP5gm.js";import"./use-navigate-to-agent-DX_GuI9O.js";import"./thread-intent-C7y-mNi3.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BmJipakz.js";import"./task-board-BUaSu7tb.js";import"./schema-Bwgawxt5.js";import"./slugify-CEUa2lfQ.js";import"./Image01-C8Z3a6q4.js";import"./use-org-auth-client-DlfdiRta.js";import"./User01-B-tTyVsO.js";import"./AlertCircle-Bec1dxaS.js";import"./ArrowUp-CSeqbspv.js";import"./ArrowLeft-B66-ad90.js";import"./ZoomOut-Cyw3AXuM.js";import"./Building02-Bu4UAsgO.js";import"./ChevronSelectorVertical-n7b_5Q6B.js";import"./Copy01-BISq6vrL.js";import"./CreditCard01-CbXaQViz.js";import"./DotsVertical-M1fm8bjv.js";import"./Globe04-BRIK-LcF.js";import"./SwitchHorizontal01-BspP-O9B.js";import"./Link01-DJt14Rj5.js";import"./Monitor01-BNRWrf3F.js";import"./Sun-DJ4L7xwP.js";import"./Play-CB3VpTFO.js";import"./Upload01-DlUMQy0J.js";import"./Users01-BI0nawB5.js";import"./label-BpvNCEnb.js";import"./alert-dialog-D1kkgyaQ.js";import"./AreaChart-AYJHOtjZ.js";import"./CategoricalChart-iujTK0KL.js";import"./XAxis-D40NyhoU.js";import"./symbol-46mbKQic.js";import"./ActiveShapeUtils-Cx07-cYR.js";import"./Sector-NYaG1AEA.js";import"./ErrorBarContext-RuQNhaXV.js";import"./url-slug-DF80tWtk.js";const Qt=ve({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:ve({}),outputSchema:Qt}];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",className:"h-7 text-xs",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:"h-7 text-xs gap-1.5",onClick:()=>l(n,"active"),children:[t.jsx(dt,{size:13}),a("details.connectionInstancesPanel.enable")]}):t.jsx(B,{variant:"ghost",size:"icon",className:"h-7 w-7 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(ke,{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",className:"h-7 w-7",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 b;e[44]!==a?(b=a("details.connectionInstancesPanel.delete"),e[44]=a,e[45]=b):b=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]!==b?(E=t.jsx(B,{variant:"ghost",size:"icon",className:"h-7 w-7 text-muted-foreground hover:text-destructive",onClick:T,title:S,"aria-label":b,children:z}),e[47]=T,e[48]=S,e[49]=b,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(ke,{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",className:"h-7 w-7",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:"h-7 gap-1.5 text-xs",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(X.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:"rounded-xl border border-border bg-card 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=It(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-[10px] text-muted-foreground",children:x[0]?.label}),t.jsx("span",{className:"text-[10px] 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]=X.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-background text-foreground shadow-sm":"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(X.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:"rounded-xl border border-border bg-card overflow-hidden",children:[f,h]}),e[19]=f,e[20]=h,e[21]=g):g=e[21],g}function 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-muted/50 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:"rounded-xl border border-border bg-card 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=Ie(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]=X.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(b=>b.name.toLowerCase().includes(w)||b.description&&b.description.toLowerCase().includes(w)):D;let O;e[18]!==f||e[19]!==l||e[20]!==o?(O=b=>{l({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:o,appSlug:f,collectionName:"tools",itemId:encodeURIComponent(b.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=b=>{b.key==="Escape"&&(h(""),b.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(b=>{const z=ce(b._meta);return t.jsxs(Re,{className:"cursor-pointer transition-colors overflow-hidden gap-0",onClick:()=>P(b),children:[t.jsx("div",{className:"h-[200px] overflow-hidden border-b border-border",children:t.jsx(X.Suspense,{fallback:t.jsx(Ue,{className:"h-full w-full"}),children:t.jsx(Ut,{resourceURI:z,toolInfo:{tool:b},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:b.annotations?.title??b.name}),t.jsx(ot,{annotations:b.annotations,_meta:b._meta})]}),b.description&&t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:b.description})]})]},b.name)})}),e[7]=f,e[8]=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=Ie(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(k){!i||!l||u({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:m,collectionName:"tools",itemId:encodeURIComponent(k)}})},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(bs),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 v;e[12]!==d?(v=d("details.connectionCapabilities.capabilities"),e[12]=d,e[13]=v):v=e[13];let k;e[14]!==v?(k=t.jsx("h3",{className:"text-sm font-semibold text-foreground mb-1",children:v}),e[14]=v,e[15]=k):k=e[15];let I;e[16]!==d?(I=d("details.connectionCapabilities.noCapabilitiesDiscovered"),e[16]=d,e[17]=I):I=e[17];let F;e[18]!==I?(F=t.jsx("p",{className:"text-sm text-muted-foreground",children:I}),e[18]=I,e[19]=F):F=e[19];let Q;return e[20]!==k||e[21]!==F?(Q=t.jsxs("div",{className:"rounded-xl border border-border bg-card p-5",children:[k,F]}),e[20]=k,e[21]=F,e[22]=Q):Q=e[22],Q}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(v=>t.jsxs("button",{type:"button",className:"w-full flex items-start gap-3 px-5 py-3 text-left hover:bg-muted/40 transition-colors cursor-pointer",onClick:()=>g(v.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(v.name)}),v.description&&t.jsx("div",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed line-clamp-2",children:v.description})]}),t.jsx(_e,{size:16,className:"text-muted-foreground shrink-0 mt-0.5"})]},v.name)):t.jsx(le,{label:"tools"}),e[44]=g,e[45]=n,e[46]=S):S=e[46];let b;e[47]!==S?(b=t.jsx(oe,{value:"tools",className:"h-auto",children:t.jsx("div",{className:"divide-y divide-border",children:S})}),e[47]=S,e[48]=b):b=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]!==b||e[64]!==z||e[65]!==M||e[66]!==R?(p=t.jsx("div",{className:"rounded-xl border border-border bg-card overflow-hidden",children:t.jsxs(Et,{defaultValue:"tools",variant:"underline",children:[T,b,z,M,R]})}),e[62]=T,e[63]=b,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 bs(s){return ce(s._meta)}function vs(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(G,{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(q,{value:"HTTP",children:i("details.connectionSidebar.http")}),t.jsx(q,{value:"SSE",children:i("details.connectionSidebar.sse")}),t.jsx(q,{value:"Websocket",children:i("details.connectionSidebar.websocket")}),u&&t.jsxs(t.Fragment,{children:[t.jsx(q,{value:"NPX",children:i("details.connectionSidebar.npxPackage")}),t.jsx(q,{value:"STDIO",children:i("details.connectionSidebar.customCommand")})]})]})]}),t.jsx("div",{className:"w-px bg-border"}),t.jsx(G,{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(q,{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(q,{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(q,{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(q,{value:"NPX",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(qt,{className:"w-4 h-4"}),i("details.connectionSidebar.npxPackage")]})}),t.jsx(q,{value:"STDIO",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Gt,{className:"w-4 h-4"}),i("details.connectionSidebar.customCommand")]})})]})]})]}),t.jsx(W,{})]})}),l==="NPX"&&t.jsx(G,{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 rounded-lg"})}),t.jsx(W,{})]})}),l==="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsx(G,{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 rounded-lg"})}),t.jsx(W,{})]})}),t.jsx(G,{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 rounded-lg"})}),t.jsx("p",{className:"text-xs text-muted-foreground",children:i("details.connectionSidebar.spaceSeparatedArguments")}),t.jsx(W,{})]})})]}),t.jsx(G,{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 rounded-lg"})}),t.jsx(W,{})]})})]}),(l==="NPX"||l==="STDIO")&&t.jsx(G,{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(W,{})]})}),l!=="NPX"&&l!=="STDIO"&&t.jsx(G,{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(qe,{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-muted 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 rounded-lg"})}),d&&t.jsxs(vt,{children:[i("details.connectionSidebar.createAPatAt")," ",t.jsx("a",{href:"https://github.com/settings/personal-access-tokens",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"github.com/settings/personal-access-tokens"})]})]}),t.jsx(W,{})]})})]})}function 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 be(s,e){const n={title:s.title,description:s.description??"",icon:s.icon??null,configuration_state:s.configuration_state??{},configuration_scopes:s.configuration_scopes||[]};if(s.connection_type==="STDIO"&&Wt(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=We(),x=Te(),{org:f}=te(),m=wt({onSuccess:()=>{a.length<=1&&d({to:"/$org/settings/connections",params:{org:n}})}}),[h,g]=X.useState(null),[j,N]=X.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=Xe({resolver:Qe(Xt),values:be(h??s)}),b=S.formState.isDirty,z=async()=>{if(!await S.trigger())return;const v=S.getValues(),k=Cs(v),I=h?.id??e;await x.update.mutateAsync({id:I,data:k}),S.reset(v)},E=()=>{S.reset(be(h??s))},M=async p=>{const v=s.configuration_scopes?.length?s.configuration_scopes.join(" "):void 0,{token:k,tokenInfo:I,error:F}=await rt({connectionId:p,orgSlug:f.slug,...v?{scope:v}:{}});if(F||!k){Y.error(r("details.connection.authFailed",{error:F??""}));return}if(I)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:I.accessToken,refreshToken:I.refreshToken,expiresIn:I.expiresIn,scope:I.scope,clientId:I.clientId,clientSecret:I.clientSecret,tokenEndpoint:I.tokenEndpoint})});if(!Z.ok)console.error("Failed to save OAuth token:",await Z.text()),await x.update.mutateAsync({id:p,data:{connection_token:k}});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:k}})}else await x.update.mutateAsync({id:p,data:{connection_token:k}});const Q=new URL(`/api/${f.slug}/mcp/${p}`,window.location.origin);await u.invalidateQueries({queryKey:ee.isMCPAuthenticated(Q.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 k=await p.text();Y.error(r("details.connection.failedRemoveOAuth",{error:k}));return}const v=new URL(`/api/${f.slug}/mcp/${s.id}`,window.location.origin);await u.invalidateQueries({queryKey:ee.isMCPAuthenticated(v.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(kt,{...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(bt,{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(G,{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(W,{})]})}),t.jsx(G,{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(W,{})]})})]}),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:!b||c,className:"flex-1",children:r(c?"details.connection.savingButton":"details.connection.saveButton")}),b&&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 hover:border-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(vs,{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,v)=>{try{await x.update.mutateAsync({id:p.id,data:{status:v}}),Y.success(r(v==="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,v=p.title.replace(/\s*\(\d+\)\s*$/,""),k=a.length+1,I=`${v} (${k})`,F=Ye("conn");await x.create.mutateAsync({id:F,title:I,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 Q=new URL(`/api/${f.slug}/mcp/${F}`,window.location.origin),Z=await Ct({url:Q.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 ks(){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]=X.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 v of u){const k=v.id===h?_:p(v.tools);for(const I of k)A.has(I.name)||(A.add(I.name),R.push(I))}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 b;s[14]!==O?.resources?(b=O?.resources??[],s[14]=O?.resources,s[15]=b):b=s[15];let z;s[16]!==b?(z=b.map(Is),s[16]=b,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 v;s[25]!==e?(v=e("details.connection.backButton"),s[25]=e,s[26]=v):v=s[26];let k;s[27]!==p||s[28]!==v?(k=t.jsx(B,{variant:"outline",onClick:p,children:v}),s[27]=p,s[28]=v,s[29]=k):k=s[29];let I;return s[30]!==A||s[31]!==R||s[32]!==k?(I=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ce,{title:A,description:R,actions:k})}),s[30]=A,s[31]=R,s[32]=k,s[33]=I):I=s[33],I}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 Is(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(Ge,{children:t.jsx(X.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(ks,{})})}),s[0]=e):e=s[0],e}function Ni(){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{Ni as default};
|
|
1
|
+
import{aF as ve,cY as Oe,cW as Me,aG as de,bW as ze,c as U,b as V,j as t,h as Ne,B,r as X,l as Se,a2 as te,a9 as Ee,R as me,K as ee,d as se,x as ye,au as _e,eU as Re,b1 as Ue,n as Fe,fF as ue,a1 as Ve,I as J,X as Le,T as Be,V as qe,U as xe,H as Ge,f as He,fO as Ke,o as We,aE as Xe,aD as Qe,t as Y}from"./index-Gu6p_bn6.js";import{g as Ye}from"./extract-connection-data-BbpwU49P.js";import{E as Ce}from"./empty-state-B1Y2gxG7.js";import{E as Je,r as Ze,b as et,c as tt}from"./connection-form-helpers-ZBgy6PeQ.js";import{c as st,S as nt,D as it}from"./index-CKJ8aY_D.js";import{u as we,T as ot}from"./use-mcp-auth-status-MYJuNTGH.js";import{a as at}from"./use-members-B9jY-Afg.js";import{A as lt}from"./avatar-Bkg-M2--.js";import{a as rt}from"./mcp-oauth-lfv0IiGQ.js";import{I as ae}from"./integration-icon-BRP_biyX.js";import{s as ct}from"./Plus-B78UgIQj.js";import{bh as dt,aC as mt,ay as ut,q as ne}from"./agent-icon-BbVfkRpF.js";import{a as ke,e as xt,s as pt}from"./Tool01-CgbvcQme.js";import{s as re}from"./Trash01-DgiFlWKM.js";import{b as ft,a as ht,c as gt,S as jt,d as bt}from"./sheet-C4t4w4AW.js";import{F as G,b as H,c as K,d as L,f as W,e as vt,a as Nt}from"./form-CZY9mi95.js";import{a as Ie,b as Te,u as St}from"./use-connection-D6vlEjek.js";import{u as Ae}from"./use-mcp-client-rvPKbELE.js";import{u as yt}from"./use-mcp-tools-BtC8QkRI.js";import{a as _t}from"./use-mcp-prompts-Cxif3O1P.js";import{i as Ct}from"./mcp-oauth-cPcwwC9B.js";import{u as wt,D as kt}from"./use-delete-connection-DSAfwmQa.js";import{c as It}from"./monitoring-stats-row-CWY5qSLA.js";import{d as Tt,C as At,a as Pt}from"./chart-Bl8bk0Xu.js";import{B as Dt,a as $t}from"./BarChart-CyJo_rQ-.js";import{C as Ot}from"./tooltipContext-DfV9vJ97.js";import{b as Mt}from"./repository-binding-C6bmiEYF.js";import{T as ie,a as zt,c as oe,b as Et}from"./tabs-Db8UWqyQ.js";import{g as Pe}from"./connection-slug-CITJ0kGN.js";import{n as Rt}from"./ShoppingBag01-DFlLGvQA.js";import{g as ce}from"./types-Cd4vJNfK.js";import{M as Ut}from"./mcp-app-renderer-Tv8WHGRN.js";import{C as Ft}from"./collection-search-Ch8MLIzL.js";import{B as Vt}from"./badge-BHSeIY_1.js";import{S as pe,b as fe,a as he,d as ge,c as q}from"./select-C5ZUHdTe.js";import{i as Lt}from"./CheckCircle-DwYX4v4z.js";import{t as Bt}from"./ChevronUp-BWLwOWUB.js";import{n as qt}from"./LinkBroken01-XywQ_V_L.js";import{c as Gt}from"./UserSquare-BbO_BuU-.js";import{s as Ht}from"./XClose-DDA2dBHO.js";import{p as Kt,i as Wt}from"./connection-Ddwz98Wi.js";import{c as Xt}from"./schema-oXjGSciT.js";import"./metadata-D72DunRR.js";import"./Key01-Dpml-zEF.js";import"./auth-Dvjx-0pF.js";import"./index-EDDvnpYE.js";import"./index-qOwXDL8B.js";import"./index-BdQq_4o_.js";import"./index-D-oDxCEJ.js";import"./popover-D9c0rC9X.js";import"./tooltip-PBE4vcNO.js";import"./index-XtHbGpIO.js";import"./SearchMd-Dqn_93IA.js";import"./use-mobile-Di0MPt3q.js";import"./use-create-virtual-mcp-DVGTyIvt.js";import"./use-navigate-to-agent-Dba95vVq.js";import"./thread-intent-BZ0YY6QE.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CkxkGv7P.js";import"./task-board-aXTBpoFu.js";import"./schema-CicY9CFd.js";import"./slugify-CEUa2lfQ.js";import"./Image01-Dis3SEGR.js";import"./use-org-auth-client-ZcrC4T6K.js";import"./User01-B5touKPl.js";import"./AlertCircle-Bd_c5lvx.js";import"./ArrowUp-BlmIqgms.js";import"./ArrowLeft-BEDsoU4s.js";import"./ZoomOut-WxvethXT.js";import"./Building02-egDXvjGT.js";import"./ChevronSelectorVertical-yrgeHjmf.js";import"./Copy01-D9EWjRj_.js";import"./CreditCard01-D-2H38IE.js";import"./DotsVertical-Czz64uuc.js";import"./Globe04-Cq9w75Dt.js";import"./SwitchHorizontal01-C2oPVYY7.js";import"./Link01-CH9KeNiW.js";import"./Monitor01-Cgbhw-lc.js";import"./Sun-DIgdvn0A.js";import"./Play-l_x93PVH.js";import"./Upload01-CHvq8vCH.js";import"./Users01-zLwSSr3g.js";import"./label-80aEOuD4.js";import"./alert-dialog-BUOq5Ccz.js";import"./AreaChart-B4uhU_-I.js";import"./CategoricalChart-DESa7bJ2.js";import"./XAxis-DDx6ChY_.js";import"./symbol-RiI5_0oO.js";import"./ActiveShapeUtils-RZxJo9yZ.js";import"./Sector-Di1ZTW0S.js";import"./ErrorBarContext-P_EddvG-.js";import"./url-slug-B0r7Le3c.js";const Qt=ve({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:ve({}),outputSchema:Qt}];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",className:"h-7 text-xs",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:"h-7 text-xs gap-1.5",onClick:()=>l(n,"active"),children:[t.jsx(dt,{size:13}),a("details.connectionInstancesPanel.enable")]}):t.jsx(B,{variant:"ghost",size:"icon",className:"h-7 w-7 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(ke,{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",className:"h-7 w-7",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 b;e[44]!==a?(b=a("details.connectionInstancesPanel.delete"),e[44]=a,e[45]=b):b=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]!==b?(E=t.jsx(B,{variant:"ghost",size:"icon",className:"h-7 w-7 text-muted-foreground hover:text-destructive",onClick:T,title:S,"aria-label":b,children:z}),e[47]=T,e[48]=S,e[49]=b,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(ke,{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",className:"h-7 w-7",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:"h-7 gap-1.5 text-xs",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(X.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:"rounded-xl border border-border bg-card 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=It(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-[10px] text-muted-foreground",children:x[0]?.label}),t.jsx("span",{className:"text-[10px] 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]=X.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-background text-foreground shadow-sm":"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(X.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:"rounded-xl border border-border bg-card overflow-hidden",children:[f,h]}),e[19]=f,e[20]=h,e[21]=g):g=e[21],g}function 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-muted/50 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:"rounded-xl border border-border bg-card 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=Ie(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]=X.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(b=>b.name.toLowerCase().includes(w)||b.description&&b.description.toLowerCase().includes(w)):D;let O;e[18]!==f||e[19]!==l||e[20]!==o?(O=b=>{l({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:o,appSlug:f,collectionName:"tools",itemId:encodeURIComponent(b.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=b=>{b.key==="Escape"&&(h(""),b.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(b=>{const z=ce(b._meta);return t.jsxs(Re,{className:"cursor-pointer transition-colors overflow-hidden gap-0",onClick:()=>P(b),children:[t.jsx("div",{className:"h-[200px] overflow-hidden border-b border-border",children:t.jsx(X.Suspense,{fallback:t.jsx(Ue,{className:"h-full w-full"}),children:t.jsx(Ut,{resourceURI:z,toolInfo:{tool:b},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:b.annotations?.title??b.name}),t.jsx(ot,{annotations:b.annotations,_meta:b._meta})]}),b.description&&t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:b.description})]})]},b.name)})}),e[7]=f,e[8]=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=Ie(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(k){!i||!l||u({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:m,collectionName:"tools",itemId:encodeURIComponent(k)}})},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(bs),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 v;e[12]!==d?(v=d("details.connectionCapabilities.capabilities"),e[12]=d,e[13]=v):v=e[13];let k;e[14]!==v?(k=t.jsx("h3",{className:"text-sm font-semibold text-foreground mb-1",children:v}),e[14]=v,e[15]=k):k=e[15];let I;e[16]!==d?(I=d("details.connectionCapabilities.noCapabilitiesDiscovered"),e[16]=d,e[17]=I):I=e[17];let F;e[18]!==I?(F=t.jsx("p",{className:"text-sm text-muted-foreground",children:I}),e[18]=I,e[19]=F):F=e[19];let Q;return e[20]!==k||e[21]!==F?(Q=t.jsxs("div",{className:"rounded-xl border border-border bg-card p-5",children:[k,F]}),e[20]=k,e[21]=F,e[22]=Q):Q=e[22],Q}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(v=>t.jsxs("button",{type:"button",className:"w-full flex items-start gap-3 px-5 py-3 text-left hover:bg-muted/40 transition-colors cursor-pointer",onClick:()=>g(v.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(v.name)}),v.description&&t.jsx("div",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed line-clamp-2",children:v.description})]}),t.jsx(_e,{size:16,className:"text-muted-foreground shrink-0 mt-0.5"})]},v.name)):t.jsx(le,{label:"tools"}),e[44]=g,e[45]=n,e[46]=S):S=e[46];let b;e[47]!==S?(b=t.jsx(oe,{value:"tools",className:"h-auto",children:t.jsx("div",{className:"divide-y divide-border",children:S})}),e[47]=S,e[48]=b):b=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]!==b||e[64]!==z||e[65]!==M||e[66]!==R?(p=t.jsx("div",{className:"rounded-xl border border-border bg-card overflow-hidden",children:t.jsxs(Et,{defaultValue:"tools",variant:"underline",children:[T,b,z,M,R]})}),e[62]=T,e[63]=b,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 bs(s){return ce(s._meta)}function vs(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(G,{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(q,{value:"HTTP",children:i("details.connectionSidebar.http")}),t.jsx(q,{value:"SSE",children:i("details.connectionSidebar.sse")}),t.jsx(q,{value:"Websocket",children:i("details.connectionSidebar.websocket")}),u&&t.jsxs(t.Fragment,{children:[t.jsx(q,{value:"NPX",children:i("details.connectionSidebar.npxPackage")}),t.jsx(q,{value:"STDIO",children:i("details.connectionSidebar.customCommand")})]})]})]}),t.jsx("div",{className:"w-px bg-border"}),t.jsx(G,{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(q,{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(q,{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(q,{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(q,{value:"NPX",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(qt,{className:"w-4 h-4"}),i("details.connectionSidebar.npxPackage")]})}),t.jsx(q,{value:"STDIO",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Gt,{className:"w-4 h-4"}),i("details.connectionSidebar.customCommand")]})})]})]})]}),t.jsx(W,{})]})}),l==="NPX"&&t.jsx(G,{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 rounded-lg"})}),t.jsx(W,{})]})}),l==="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsx(G,{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 rounded-lg"})}),t.jsx(W,{})]})}),t.jsx(G,{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 rounded-lg"})}),t.jsx("p",{className:"text-xs text-muted-foreground",children:i("details.connectionSidebar.spaceSeparatedArguments")}),t.jsx(W,{})]})})]}),t.jsx(G,{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 rounded-lg"})}),t.jsx(W,{})]})})]}),(l==="NPX"||l==="STDIO")&&t.jsx(G,{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(W,{})]})}),l!=="NPX"&&l!=="STDIO"&&t.jsx(G,{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(qe,{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-muted 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 rounded-lg"})}),d&&t.jsxs(vt,{children:[i("details.connectionSidebar.createAPatAt")," ",t.jsx("a",{href:"https://github.com/settings/personal-access-tokens",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"github.com/settings/personal-access-tokens"})]})]}),t.jsx(W,{})]})})]})}function 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 be(s,e){const n={title:s.title,description:s.description??"",icon:s.icon??null,configuration_state:s.configuration_state??{},configuration_scopes:s.configuration_scopes||[]};if(s.connection_type==="STDIO"&&Wt(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=We(),x=Te(),{org:f}=te(),m=wt({onSuccess:()=>{a.length<=1&&d({to:"/$org/settings/connections",params:{org:n}})}}),[h,g]=X.useState(null),[j,N]=X.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=Xe({resolver:Qe(Xt),values:be(h??s)}),b=S.formState.isDirty,z=async()=>{if(!await S.trigger())return;const v=S.getValues(),k=Cs(v),I=h?.id??e;await x.update.mutateAsync({id:I,data:k}),S.reset(v)},E=()=>{S.reset(be(h??s))},M=async p=>{const v=s.configuration_scopes?.length?s.configuration_scopes.join(" "):void 0,{token:k,tokenInfo:I,error:F}=await rt({connectionId:p,orgSlug:f.slug,...v?{scope:v}:{}});if(F||!k){Y.error(r("details.connection.authFailed",{error:F??""}));return}if(I)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:I.accessToken,refreshToken:I.refreshToken,expiresIn:I.expiresIn,scope:I.scope,clientId:I.clientId,clientSecret:I.clientSecret,tokenEndpoint:I.tokenEndpoint})});if(!Z.ok)console.error("Failed to save OAuth token:",await Z.text()),await x.update.mutateAsync({id:p,data:{connection_token:k}});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:k}})}else await x.update.mutateAsync({id:p,data:{connection_token:k}});const Q=new URL(`/api/${f.slug}/mcp/${p}`,window.location.origin);await u.invalidateQueries({queryKey:ee.isMCPAuthenticated(Q.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 k=await p.text();Y.error(r("details.connection.failedRemoveOAuth",{error:k}));return}const v=new URL(`/api/${f.slug}/mcp/${s.id}`,window.location.origin);await u.invalidateQueries({queryKey:ee.isMCPAuthenticated(v.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(kt,{...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(bt,{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(G,{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(W,{})]})}),t.jsx(G,{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(W,{})]})})]}),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:!b||c,className:"flex-1",children:r(c?"details.connection.savingButton":"details.connection.saveButton")}),b&&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 hover:border-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(vs,{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,v)=>{try{await x.update.mutateAsync({id:p.id,data:{status:v}}),Y.success(r(v==="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,v=p.title.replace(/\s*\(\d+\)\s*$/,""),k=a.length+1,I=`${v} (${k})`,F=Ye("conn");await x.create.mutateAsync({id:F,title:I,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 Q=new URL(`/api/${f.slug}/mcp/${F}`,window.location.origin),Z=await Ct({url:Q.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 ks(){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]=X.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 v of u){const k=v.id===h?_:p(v.tools);for(const I of k)A.has(I.name)||(A.add(I.name),R.push(I))}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 b;s[14]!==O?.resources?(b=O?.resources??[],s[14]=O?.resources,s[15]=b):b=s[15];let z;s[16]!==b?(z=b.map(Is),s[16]=b,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 v;s[25]!==e?(v=e("details.connection.backButton"),s[25]=e,s[26]=v):v=s[26];let k;s[27]!==p||s[28]!==v?(k=t.jsx(B,{variant:"outline",onClick:p,children:v}),s[27]=p,s[28]=v,s[29]=k):k=s[29];let I;return s[30]!==A||s[31]!==R||s[32]!==k?(I=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ce,{title:A,description:R,actions:k})}),s[30]=A,s[31]=R,s[32]=k,s[33]=I):I=s[33],I}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 Is(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(Ge,{children:t.jsx(X.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(ks,{})})}),s[0]=e):e=s[0],e}function Ni(){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{Ni as default};
|