decocms 4.400.2 → 4.400.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/{AlertCircle-CjR0jbo6.js → AlertCircle-Du4pSpAv.js} +1 -1
- package/dist/client/assets/{AreaChart-BpfOJteO.js → AreaChart-CiSqbcrG.js} +1 -1
- package/dist/client/assets/{ArrowLeft-C4QBkomm.js → ArrowLeft-DcYtirf0.js} +1 -1
- package/dist/client/assets/{ArrowRight-CO-QujUS.js → ArrowRight-pEyu9bR7.js} +1 -1
- package/dist/client/assets/{ArrowUp-C9wr8Ytd.js → ArrowUp-Blhz95Gn.js} +1 -1
- package/dist/client/assets/{CartesianChart-CJ8doy_0.js → CartesianChart-dXKJjRS4.js} +1 -1
- package/dist/client/assets/{Check-DFrsPmld.js → Check-Ba60y41Y.js} +1 -1
- package/dist/client/assets/{CheckCircle-DkaKMSaV.js → CheckCircle-C7_LF2ru.js} +1 -1
- package/dist/client/assets/{ChevronUp-C9udc4Rh.js → ChevronUp-BKTM5kuE.js} +1 -1
- package/dist/client/assets/{Copy01-M-Qbz3gf.js → Copy01-ps1GrLwt.js} +1 -1
- package/dist/client/assets/{CreditCard01-CET8MOTL.js → CreditCard01-w7TsTZTh.js} +1 -1
- package/dist/client/assets/{DotsVertical-CZz-Lgk0.js → DotsVertical-CIifNiXH.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-D7-uOZDe.js → ErrorBarContext-Ca7MYjqG.js} +1 -1
- package/dist/client/assets/{Eye-CmvlR53w.js → Eye-BYwRB-B7.js} +1 -1
- package/dist/client/assets/{Globe04-Bc5TMhQV.js → Globe04-DUA_rKwg.js} +1 -1
- package/dist/client/assets/{Image01-wp07hfou.js → Image01-4eEp4rFk.js} +1 -1
- package/dist/client/assets/{Key01-hC0wHiG0.js → Key01-DFcPORPA.js} +1 -1
- package/dist/client/assets/{LayoutLeft-B4wEmr_x.js → LayoutLeft-DTet0kcn.js} +1 -1
- package/dist/client/assets/{Line-BSb7Wgn6.js → Line-B9GJKKk8.js} +1 -1
- package/dist/client/assets/{Link01-Ba4lmYHC.js → Link01-Bk8fUFT0.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BVl3Qea8.js → LinkExternal01-Sd40C2OB.js} +1 -1
- package/dist/client/assets/{Monitor01-d780LsKL.js → Monitor01-D7UgaQLg.js} +1 -1
- package/dist/client/assets/{Palette-C0NdvAWe.js → Palette-BH_QIJDy.js} +1 -1
- package/dist/client/assets/{Plus-CPtri1YM.js → Plus-C1bAoYy_.js} +1 -1
- package/dist/client/assets/{SearchMd-DoMlo04D.js → SearchMd-Bo9C0lON.js} +1 -1
- package/dist/client/assets/{Sector-Cvf-vWo6.js → Sector-DEbCB-Fv.js} +1 -1
- package/dist/client/assets/{Share07-ChCo_3pm.js → Share07-BB--BXeq.js} +1 -1
- package/dist/client/assets/{Sun-BsNGpGdi.js → Sun-Bs_C-u75.js} +1 -1
- package/dist/client/assets/{Tool01-BWmyIYi9.js → Tool01-rptoyApF.js} +1 -1
- package/dist/client/assets/{Trash01-D0sFCEiI.js → Trash01-8P2mehkt.js} +1 -1
- package/dist/client/assets/{Upload01-CQkdN0Jy.js → Upload01-Do_51Ot8.js} +1 -1
- package/dist/client/assets/{User01-DFmvr7oB.js → User01-CI_nGvGi.js} +1 -1
- package/dist/client/assets/{UserSquare-DFFgBLK6.js → UserSquare-C3h8vlGA.js} +1 -1
- package/dist/client/assets/{Users01-aZvr1NAJ.js → Users01-C8Fu7mYo.js} +1 -1
- package/dist/client/assets/{X-B3oYr7cv.js → X-Bcv3LM3l.js} +1 -1
- package/dist/client/assets/{XClose-DNumy7PJ.js → XClose-CtU5_ALA.js} +1 -1
- package/dist/client/assets/{Zap-BrtBHXca.js → Zap-qz4zBbkB.js} +1 -1
- package/dist/client/assets/{ZoomOut-6YH0qddF.js → ZoomOut-zpocZpUK.js} +1 -1
- package/dist/client/assets/{access-gate-CYUJEAks.js → access-gate-CiVrL403.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-De7olvO-.js → add-connection-dialog-BzI23RxL.js} +1 -1
- package/dist/client/assets/{agent-analytics-D7Zc1x5W.js → agent-analytics-B1tZQzMk.js} +1 -1
- package/dist/client/assets/agent-app-B3MxCldN.js +1 -0
- package/dist/client/assets/{agent-assets-DHjCRHxb.js → agent-assets-CZouYsdD.js} +1 -1
- package/dist/client/assets/{agent-automation-CLSKICib.js → agent-automation-BLN1e9Ev.js} +1 -1
- package/dist/client/assets/{agent-automations--KFfqpWc.js → agent-automations-bCgj1j-q.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-BGMEzb-f.js → agent-connect-sources-C7Po5wAa.js} +1 -1
- package/dist/client/assets/agent-deck-Cy04ayNG.js +1 -0
- package/dist/client/assets/{agent-e2e-CCHklzrp.js → agent-e2e-CmbIB2x8.js} +1 -1
- package/dist/client/assets/{agent-experiments-BotZZr4y.js → agent-experiments-OLYKC4u_.js} +1 -1
- package/dist/client/assets/{agent-file-CMP_vdw7.js → agent-file-B38Wl098.js} +1 -1
- package/dist/client/assets/{agent-git-DnfvB7FV.js → agent-git-CaQBqGlA.js} +1 -1
- package/dist/client/assets/{agent-hosting-dgU5s3Ec.js → agent-hosting-6MngD0LX.js} +1 -1
- package/dist/client/assets/{agent-icon-Cp4E_xly.js → agent-icon-DGZEAm9H.js} +1 -1
- package/dist/client/assets/agent-library-file-9QARO-bV.js +1 -0
- package/dist/client/assets/{agent-monitor-C4YirXew.js → agent-monitor-72mCRKTW.js} +1 -1
- package/dist/client/assets/{agent-overview-DnRfrqp_.js → agent-overview-BRrvELfN.js} +1 -1
- package/dist/client/assets/agent-settings-B45Tva6q.js +1 -0
- package/dist/client/assets/{agent-site-editor-BdbcwfRG.js → agent-site-editor-DW5XUZBR.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-Dc0KTnfl.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-DYLP578B.js → agent-site-editor-content-Bfjh9jEP.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-S2scoPmE.js → agent-site-editor-preview-ClmKTXWP.js} +3 -3
- package/dist/client/assets/agent-view-E9Z6tVHT.js +1 -0
- package/dist/client/assets/{agent-view-guard-B9Saq62j.js → agent-view-guard-DNMt6hB9.js} +1 -1
- package/dist/client/assets/{agents-list-DiFE-lZH.js → agents-list-BiiHiUIX.js} +1 -1
- package/dist/client/assets/{ai-providers-GgLnqqlt.js → ai-providers-BbDwb4RC.js} +1 -1
- package/dist/client/assets/{alert-DdmTPGDH.js → alert-BT3DZGcd.js} +1 -1
- package/dist/client/assets/{alert-dialog-DoyFdZHN.js → alert-dialog-DdszU1Q8.js} +1 -1
- package/dist/client/assets/{analytics-sections-DCg5oZNj.js → analytics-sections-CP__jLKC.js} +1 -1
- package/dist/client/assets/{api-keys-BKMKOatf.js → api-keys-Bi20vSIr.js} +1 -1
- package/dist/client/assets/api-keys-CBbsEXT6.js +1 -0
- package/dist/client/assets/app-editor-DFT4OeOU.js +1 -0
- package/dist/client/assets/{asset-utils-BCU6QgjZ.js → asset-utils-V9a2iXcl.js} +1 -1
- package/dist/client/assets/{auth-Dt4n2Wsi.js → auth-D02289MQ.js} +1 -1
- package/dist/client/assets/{auth-catchall-7L9jbPi8.js → auth-catchall-CnUCowRF.js} +1 -1
- package/dist/client/assets/{auth-entry-CLqY4ktY.js → auth-entry-B6Imt7RP.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DLrakCFf.js → auth-split-layout-BM39R-ss.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CSMVo-ia.js → authenticate-and-persist-oauth-CUaGScsy.js} +1 -1
- package/dist/client/assets/{automation-list-row-6XDX4ayX.js → automation-list-row-C_wU39bN.js} +1 -1
- package/dist/client/assets/{automation-runs-DL5rnjPF.js → automation-runs-gGzA_gij.js} +1 -1
- package/dist/client/assets/{automations-CSUbh53r.js → automations-Ds2o11v2.js} +1 -1
- package/dist/client/assets/{autosend-ByHAtC6V.js → autosend-CK9dEzFq.js} +1 -1
- package/dist/client/assets/{avatar-C3Tu_Zj6.js → avatar-uHIhSuBR.js} +1 -1
- package/dist/client/assets/{badge-XWwRFC3r.js → badge-Dje3gf1p.js} +1 -1
- package/dist/client/assets/{block-document-BKWBdSF6.js → block-document-nl0VK8k6.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-Ce9beMIi.js → blocks-preview-workspace-context-ByxZatd9.js} +1 -1
- package/dist/client/assets/{breadcrumb-DOba6LNd.js → breadcrumb-CW_U1f5l.js} +1 -1
- package/dist/client/assets/{buckets-BnZszphk.js → buckets-K7ac08Io.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-ibi7y-L4.js → build-improve-prompt-doc-Be3oxc4K.js} +1 -1
- package/dist/client/assets/{calendar-oa3LVYaP.js → calendar-zfi9eY9-.js} +1 -1
- package/dist/client/assets/{capability-load-error-BQ6dL73y.js → capability-load-error-1O-8RPcj.js} +1 -1
- package/dist/client/assets/{category-editor-Bb9Ea3r2.js → category-editor-JZXHaZAD.js} +1 -1
- package/dist/client/assets/{chart-D_-n_mOy.js → chart-PoDZhw9M.js} +1 -1
- package/dist/client/assets/{chat-context-L1MRASS9.js → chat-context-DotjjaCp.js} +1 -1
- package/dist/client/assets/{chat-draft-KwQvcsg2.js → chat-draft-CBzBURYR.js} +1 -1
- package/dist/client/assets/{checkbox-BVJhs11j.js → checkbox-CfvRuAMT.js} +1 -1
- package/dist/client/assets/{choose-editor-Roightxs.js → choose-editor-B4cDrRN8.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-pHFRpav0.js → claim-phase-copy-CZOX9v-1.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BOhgxLXY.js → cli-auth-success-YJrrGRHq.js} +1 -1
- package/dist/client/assets/{client-icons-BSjpPHN5.js → client-icons-1o_GEzRa.js} +1 -1
- package/dist/client/assets/{collapsible-8SEpFSOn.js → collapsible-CWaDNcN7.js} +1 -1
- package/dist/client/assets/{collection-detail-CzK6vJzc.js → collection-detail-Y9XGw5uk.js} +1 -1
- package/dist/client/assets/{collection-display-button-D-1w-XGy.js → collection-display-button-CtP91jf_.js} +1 -1
- package/dist/client/assets/{collection-search-x5NjBCrj.js → collection-search-D4nNuGDB.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DVjXvmub.js → collection-table-wrapper-CpQI6KWA.js} +1 -1
- package/dist/client/assets/{collection-tabs-CZCjpmbY.js → collection-tabs-N5ZrSPpp.js} +1 -1
- package/dist/client/assets/{combobox-Dlk94eZR.js → combobox-CF1no6bs.js} +1 -1
- package/dist/client/assets/{command-B8JP2G8U.js → command-BiVTlFnj.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-QvAZIDGQ.js → companion-mcps-section-EeMQUH2t.js} +1 -1
- package/dist/client/assets/{connect-W_AV3Sjh.js → connect-CEfqFAa-.js} +1 -1
- package/dist/client/assets/{connect-layout-B7OpAPNE.js → connect-layout-bSD8-p4f.js} +1 -1
- package/dist/client/assets/{connection-D-mDjvm_.js → connection-DlXjaPva.js} +1 -1
- package/dist/client/assets/{connection-card-CaitKKPZ.js → connection-card-Bg2a8uYW.js} +1 -1
- package/dist/client/assets/{connection-detail-yXga0v5N.js → connection-detail-DYZF6SN6.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CmvLYSpO.js → connection-form-helpers-DxRjtFnW.js} +1 -1
- package/dist/client/assets/{connections-D66DvRYj.js → connections-d31mWpT0.js} +1 -1
- package/dist/client/assets/{context-Dmc79Bjt.js → context-pHGTWx-O.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DbTqX-AI.js → create-organization-dialog-DI50Lc6L.js} +1 -1
- package/dist/client/assets/{decofile-api-PWtXzbuE.js → decofile-api-DaDwlojk.js} +1 -1
- package/dist/client/assets/{decopilot-CifemqUY.js → decopilot-DTvNz-At.js} +1 -1
- package/dist/client/assets/{dialog-BqioEhMl.js → dialog-BH40cz5f.js} +1 -1
- package/dist/client/assets/{discover-Bogkif5H.js → discover-HHkbjmau.js} +1 -1
- package/dist/client/assets/{domain-settings-BSsQ-9XO.js → domain-settings-DSQl9_lZ.js} +1 -1
- package/dist/client/assets/{download-app-dialog-aA1UuFYE.js → download-app-dialog-CEaOvDw5.js} +1 -1
- package/dist/client/assets/{drawer-BZaHn3bO.js → drawer-ComjVvmu.js} +1 -1
- package/dist/client/assets/{editor-gYjyR8eY.js → editor-CDU1j3_v.js} +1 -1
- package/dist/client/assets/{empty-state-CR81vKzY.js → empty-state-CzIH_JfN.js} +1 -1
- package/dist/client/assets/{empty-state-FjX1LyDk.js → empty-state-DhesR7qU.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DvBFazbY.js → extract-connection-data-DcoB8kAN.js} +1 -1
- package/dist/client/assets/{feature-gate-BAKGOuXY.js → feature-gate-FDK7xSej.js} +1 -1
- package/dist/client/assets/{feature-paywall-B1a-HOxV.js → feature-paywall-C6d9OZKd.js} +1 -1
- package/dist/client/assets/{file-explorer-7KzmGVjW.js → file-explorer-BXabmYF9.js} +1 -1
- package/dist/client/assets/{file-preview-CXoo8BfO.js → file-preview-BqqyeGvl.js} +1 -1
- package/dist/client/assets/{file-share-button-BMoSgmCC.js → file-share-button-2fKS6cBb.js} +1 -1
- package/dist/client/assets/{file-type-icon-DMY2pV4u.js → file-type-icon-DmiRAgFN.js} +1 -1
- package/dist/client/assets/{folder-icon-CI4H2hRS.js → folder-icon-DV0QIqJi.js} +1 -1
- package/dist/client/assets/{form-Ck4HW1Sy.js → form-CjY4wPH4.js} +1 -1
- package/dist/client/assets/{gateway-client-DywCtAlN.js → gateway-client-BWWNYsvl.js} +1 -1
- package/dist/client/assets/{general-V198Ry8r.js → general-D8PFzFNL.js} +1 -1
- package/dist/client/assets/{github-icon-CGDk98ok.js → github-icon-gx8ml2Xw.js} +1 -1
- package/dist/client/assets/{home-COeYIIf9.js → home-C2ul5WwD.js} +1 -1
- package/dist/client/assets/{hooks-Cv8CIM3K.js → hooks-CKSmikgd.js} +1 -1
- package/dist/client/assets/{icon-button-oNpj712J.js → icon-button-DFsCDguQ.js} +1 -1
- package/dist/client/assets/{index-CtfYS4f5.js → index-6J38YLa6.js} +1 -1
- package/dist/client/assets/{index-DPUxWM-C.js → index-B4AAYpyy.js} +1 -1
- package/dist/client/assets/{index-_w4ZQAxQ.js → index-BLFJ3rNx.js} +1 -1
- package/dist/client/assets/{index-CyWkcQet.js → index-CENDMkD1.js} +1 -1
- package/dist/client/assets/{index-CAIstwHo.js → index-Chk6p6cb.js} +1 -1
- package/dist/client/assets/{index-BeWJyIso.js → index-D-Qb9EKo.js} +2 -2
- package/dist/client/assets/{index-CW-IFB5_.js → index-D1EGc2WB.js} +1 -1
- package/dist/client/assets/{index-41O0UWEj.js → index-D1bV74hn.js} +1 -1
- package/dist/client/assets/{index-TgWeXQUf.js → index-D4HiLeJ8.js} +1 -1
- package/dist/client/assets/{index-TSwFhtcK.js → index-DLkfdbgp.js} +1 -1
- package/dist/client/assets/{index-USkWpFB7.js → index-DS_YYP9T.js} +1 -1
- package/dist/client/assets/{index-00RLjR1H.js → index-UD8UKuoc.js} +1 -1
- package/dist/client/assets/{index-Drb5uyEG.js → index-o2BIgZ-C.js} +1 -1
- package/dist/client/assets/{index-CaaYe61j.js → index-otD7ZsOh.js} +1 -1
- package/dist/client/assets/{index-redirect-DgA5tbhV.js → index-redirect-CoYPdvGw.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BRgJRcdJ.js → infiniteQueryObserver-C_cLYrX6.js} +1 -1
- package/dist/client/assets/{infra-billing-DpGvy5Hy.js → infra-billing-EceXg4r1.js} +1 -1
- package/dist/client/assets/{input-DxJ9jgLK.js → input-C4BmyTe6.js} +1 -1
- package/dist/client/assets/{input-BBzVpV_5.js → input-CFISiTk-.js} +1 -1
- package/dist/client/assets/{input-Dg01qG2F.js → input-CuAG4MMc.js} +1 -1
- package/dist/client/assets/{integration-icon-CwQ6RDOp.js → integration-icon-jMu9bsqq.js} +1 -1
- package/dist/client/assets/{label-BXpXMxJB.js → label-BBoHKfq-.js} +1 -1
- package/dist/client/assets/{last-preview-page-BvPOyoPv.js → last-preview-page-DO0ob5Q_.js} +1 -1
- package/dist/client/assets/{layout-DiHZAWbl.js → layout-BB3neLR9.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-Dn8Ei_HV.js → legacy-agents-deep-CtrxJEM5.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-Dp0w_7LR.js → legacy-main-redirect-DgzblCSy.js} +1 -1
- package/dist/client/assets/{library-C1MpvfWs.js → library-BDDeIFEx.js} +1 -1
- package/dist/client/assets/{login-BBUbyFZ7.js → login-CwckFuPZ.js} +1 -1
- package/dist/client/assets/{markdown-Bz_ONyie.js → markdown-TE6rwhrV.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-D-ZRsE2Y.js → mcp-app-renderer-BL5tgHAn.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CXM1ag2W.js → mcp-oauth-BjLtq_iZ.js} +1 -1
- package/dist/client/assets/{members-DwlCHu1a.js → members-B9zrrep3.js} +1 -1
- package/dist/client/assets/{message-templates-BarxAP0-.js → message-templates-DNSCI9No.js} +1 -1
- package/dist/client/assets/{mini-report-page-B0ttL80P.js → mini-report-page-CqYhI4by.js} +1 -1
- package/dist/client/assets/{mock-board-CaefLHvv.js → mock-board-KINhSCpc.js} +3 -3
- package/dist/client/assets/{monaco-editor-BGx93JF5.js → monaco-editor-pYjftJUI.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CQGtwdQJ.js → monitoring-stats-row-Bp76HqjM.js} +1 -1
- package/dist/client/assets/{multi-select-C8veeU3o.js → multi-select-BxnJ1IMn.js} +1 -1
- package/dist/client/assets/{mustache-CuDsYYUT.js → mustache-DkJq4mxv.js} +1 -1
- package/dist/client/assets/{oauth-callback-Cf5Jnd0L.js → oauth-callback-BrBP8wfe.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-C-iHfomj.js → oauth-callback-ai-provider-B-WWn0vF.js} +1 -1
- package/dist/client/assets/{onboarding-DaJJ0W_1.js → onboarding-DTMqbSHw.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-B8FyXpUR.js → optimistic-project-sidebar-views-B-iOyRUg.js} +1 -1
- package/dist/client/assets/{org-file-open-context-CxsG50dO.js → org-file-open-context-cViad2Uw.js} +1 -1
- package/dist/client/assets/{organization-choice-Chign59B.js → organization-choice-GKSImNmp.js} +1 -1
- package/dist/client/assets/{orgs-vrMUSLZM.js → orgs-BiF24oJQ.js} +1 -1
- package/dist/client/assets/{page-seo-form-P9zm1bDA.js → page-seo-form-CvLra2DO.js} +1 -1
- package/dist/client/assets/{pair-y0f1J-pj.js → pair-D96S0AT6.js} +1 -1
- package/dist/client/assets/{plan-ladder-C4UfGxPz.js → plan-ladder-Ca9VX4PN.js} +1 -1
- package/dist/client/assets/{popover-DkF53k7G.js → popover-C2l1C5I5.js} +1 -1
- package/dist/client/assets/{post-calendar-BA-wTS-M.js → post-calendar-B4RnbunB.js} +1 -1
- package/dist/client/assets/{post-editor-DhbsZODL.js → post-editor-9CCoScNo.js} +1 -1
- package/dist/client/assets/{preview-content-B7L6Fj-s.js → preview-content-Dq_AmbiQ.js} +1 -1
- package/dist/client/assets/{preview-dialog-D38BQII7.js → preview-dialog-BwBmkxNv.js} +1 -1
- package/dist/client/assets/{profile-CLgow2YI.js → profile-Ds3Fl49i.js} +1 -1
- package/dist/client/assets/{project-app-view-CzUm2pqR.js → project-app-view-BwuusJ-D.js} +1 -1
- package/dist/client/assets/{project-feed-DjNu3B6b.js → project-feed-Cvx1Upbv.js} +1 -1
- package/dist/client/assets/{project-icon-Drq3GVLp.js → project-icon-BedkzeeS.js} +1 -1
- package/dist/client/assets/project-reports-BnPglocf.js +1 -0
- package/dist/client/assets/project-tasks-BTlF_sNw.js +1 -0
- package/dist/client/assets/{prompts-Ca8xOTaA.js → prompts-DNu6GrA_.js} +1 -1
- package/dist/client/assets/record-editor-WYyBcNfd.js +1 -0
- package/dist/client/assets/{redirect-editor-U0NABoiN.js → redirect-editor-DV8otTVR.js} +1 -1
- package/dist/client/assets/reports-CTN7dqon.js +1 -0
- package/dist/client/assets/{reports-BvdLBmBt.js → reports-nFTtsiXH.js} +1 -1
- package/dist/client/assets/{reports-onboarding-CppwirEo.js → reports-onboarding--ImDAD_0.js} +1 -1
- package/dist/client/assets/{reports-tab-BRNidfyC.js → reports-tab-ZjAkL-Bt.js} +2 -2
- package/dist/client/assets/{repositories-CrSwMElw.js → repositories-D3MwQMCL.js} +1 -1
- package/dist/client/assets/{repository-import-picker-DijQtAE9.js → repository-import-picker-DISfHZZr.js} +1 -1
- package/dist/client/assets/{repository-picker-BnD1OkxH.js → repository-picker-Cc76xalS.js} +1 -1
- package/dist/client/assets/{require-capability-CnsAPr8W.js → require-capability-BylXqMPr.js} +1 -1
- package/dist/client/assets/{required-auth-layout-C2QknIQr.js → required-auth-layout-KMpl6oHR.js} +1 -1
- package/dist/client/assets/{reset-password-CPN9fnHw.js → reset-password-DaCJf9WD.js} +1 -1
- package/dist/client/assets/{resizable-DkRLH_BJ.js → resizable-DJ3A_HF3.js} +1 -1
- package/dist/client/assets/{review-settings-BMKCc_q9.js → review-settings-BJxG6Gf8.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-CdbNqZXn.js → rich-text-link-control-IiyxWT4r.js} +1 -1
- package/dist/client/assets/roles-CVbskK2U.js +1 -0
- package/dist/client/assets/{route-PWljwGyn.js → route-CVO-5yGx.js} +1 -1
- package/dist/client/assets/{route-Dwf7NO4C.js → route-ComOEk_J.js} +1 -1
- package/dist/client/assets/{route-B-5k1wdd.js → route-DOzq4ViO.js} +1 -1
- package/dist/client/assets/{route-page-header-DduGqWQv.js → route-page-header-Cs2VmTNy.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-DV9qS9r8.js → runnable-block-editor-BCjb3LCv.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-D5qsaMaM.js → sandbox-lifecycle-context-C8jwTRYz.js} +1 -1
- package/dist/client/assets/{schema-CPltpPH2.js → schema-DSDdcZr4.js} +1 -1
- package/dist/client/assets/{scroll-area-CnLiVBZG.js → scroll-area-CmIKtSED.js} +1 -1
- package/dist/client/assets/{search-input-DImB3K7A.js → search-input-BLe6KTwz.js} +1 -1
- package/dist/client/assets/{search-toggle-B-eKJxk4.js → search-toggle-DA8eq__c.js} +1 -1
- package/dist/client/assets/{secret-picker-BgSmgZby.js → secret-picker-CCs4k_B3.js} +1 -1
- package/dist/client/assets/{secrets-D-A9Jm3y.js → secrets-CshFSp9Y.js} +1 -1
- package/dist/client/assets/{sections-editor-B0qRGi7T.js → sections-editor-BJATVujT.js} +1 -1
- package/dist/client/assets/{select-Dfh2pwaV.js → select-BByR5Z_4.js} +1 -1
- package/dist/client/assets/{select-model-DLS5Rueq.js → select-model-Bq-YVhmM.js} +1 -1
- package/dist/client/assets/{seo-editor-2w6dwmUx.js → seo-editor-2i_Ec3Mm.js} +1 -1
- package/dist/client/assets/{separator-50l0lTw9.js → separator-BhbH2T84.js} +1 -1
- package/dist/client/assets/{settings-tab-n5sKUKDO.js → settings-tab-C3zOOa3n.js} +1 -1
- package/dist/client/assets/{sheet-Bf-A6APE.js → sheet-DUs41Hsj.js} +1 -1
- package/dist/client/assets/{shell-layout-D6K65ArQ.js → shell-layout-DJ3g9P4L.js} +1 -1
- package/dist/client/assets/{sidebar-B5n-YfyT.js → sidebar-9WzrDLIj.js} +1 -1
- package/dist/client/assets/{skill-preview-CymkOf3y.js → skill-preview-DbZwgabM.js} +1 -1
- package/dist/client/assets/{skills-B6baRMZo.js → skills-BPa_0P0o.js} +1 -1
- package/dist/client/assets/{sso-_QWtBnbA.js → sso-B3ub6Efg.js} +1 -1
- package/dist/client/assets/{suggestion-BC6mKrsS.js → suggestion-C-gq0hlY.js} +1 -1
- package/dist/client/assets/{switch-Bj1aWJVh.js → switch-CAJrkKRA.js} +1 -1
- package/dist/client/assets/{synced-repos-C0II5wAG.js → synced-repos-SANr_KgT.js} +1 -1
- package/dist/client/assets/{table-DjU9sM5B.js → table-BEkilohE.js} +1 -1
- package/dist/client/assets/{tabs-CQ8Y8Un1.js → tabs-Dd2tckYN.js} +1 -1
- package/dist/client/assets/{task-board-Bs0pcuKB.js → task-board-4WdRpL9H.js} +1 -1
- package/dist/client/assets/{task-route-krtI2mxq.js → task-route-Q0d48Cue.js} +1 -1
- package/dist/client/assets/{task-status-CRLzyMo_.js → task-status-BTEzjbnY.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-iKN9HPDX.js → taskboard-analytics-DswMHYcd.js} +1 -1
- package/dist/client/assets/{tasks-CShjP9JJ.js → tasks-Cbn_8mSf.js} +1 -1
- package/dist/client/assets/tasks-DAz-SSGl.js +1 -0
- package/dist/client/assets/{textarea-DqxiQTrt.js → textarea-DCGCgxQP.js} +1 -1
- package/dist/client/assets/{thread-analytics-DZ2Sq5Zw.js → thread-analytics-Ab2z6URA.js} +1 -1
- package/dist/client/assets/{thread-button-Meh_YfKm.js → thread-button-CxKu1XHV.js} +1 -1
- package/dist/client/assets/{thread-intent-UaqT-IH6.js → thread-intent-B-RLNYw1.js} +1 -1
- package/dist/client/assets/{thread-route-BAQ5E6W2.js → thread-route-Cb0OYd6k.js} +1 -1
- package/dist/client/assets/{thread-route-BPEHRb4I.js → thread-route-TLv3Q6zM.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-DC_yrPc3.js → thread-sheet-body-YLcfMih9.js} +1 -1
- package/dist/client/assets/{toggle-group-Bp5PhcNe.js → toggle-group-gyOC273T.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-XXzMOIRu.js → toolbar-icon-button-BAS1RN7w.js} +1 -1
- package/dist/client/assets/{tooltip-C6IXJ6f6.js → tooltip-TamJ0pBA.js} +1 -1
- package/dist/client/assets/{track-CIubNGVA.js → track-DKrZe8IO.js} +1 -1
- package/dist/client/assets/{types-CO-VtMYa.js → types-BEpeZDST.js} +1 -1
- package/dist/client/assets/{usage-stats-DnvjXYsH.js → usage-stats-qoZRRrPK.js} +1 -1
- package/dist/client/assets/{use-ai-providers-MuCxLEzc.js → use-ai-providers-CyGPGR57.js} +1 -1
- package/dist/client/assets/{use-automations-BbMTXD3j.js → use-automations-D0etkVQ4.js} +1 -1
- package/dist/client/assets/{use-autosave-DcYP1Kp_.js → use-autosave-BZrR4EpB.js} +1 -1
- package/dist/client/assets/{use-connect-companion-BgC9J5Gc.js → use-connect-companion-DOaPRfBo.js} +1 -1
- package/dist/client/assets/{use-connection-Ku7rB1--.js → use-connection-8slpfTIQ.js} +1 -1
- package/dist/client/assets/{use-copy-Rsdl2T2v.js → use-copy--dgNfA-q.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Bz_mu6OH.js → use-create-virtual-mcp-hxRIA5D7.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-5ABdtJOj.js → use-date-fns-locale-eJfgCCNv.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CG9JQtE1.js → use-debounced-autosave-uB2QsLPm.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BRrcicua.js → use-debounced-value-DcI4zwXq.js} +1 -1
- package/dist/client/assets/{use-deco-credits-DiduL4Jx.js → use-deco-credits-hngMSRAS.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CYyKL-jy.js → use-decopilot-events-BuKXkEX5.js} +1 -1
- package/dist/client/assets/{use-delete-connection-B6nzsWog.js → use-delete-connection-CqqyAD1U.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CreerjnY.js → use-deployment-admin-uTGGxxOm.js} +1 -1
- package/dist/client/assets/{use-entitlements-CXZXMVT5.js → use-entitlements-C3f6niws.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BQQyr8UB.js → use-fast-preview-draft-url-DteSqVl0.js} +1 -1
- package/dist/client/assets/{use-file-configs-BtjJqeV5.js → use-file-configs-CueJwFUZ.js} +1 -1
- package/dist/client/assets/{use-in-settings-DiOYXD7R.js → use-in-settings-DvuMwVVv.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Dvh-VmRf.js → use-infinite-scroll-aao4CFrl.js} +1 -1
- package/dist/client/assets/{use-join-requests-CvWz9_Si.js → use-join-requests-BmYzsYtS.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-vmbbGKrO.js → use-main-panel-tabs-DGDjAK_a.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-C9w6MKri.js → use-mcp-auth-status-n70YyfJn.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BiCqEGFb.js → use-mcp-client-D5ISNy1u.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Ei_kZDY5.js → use-mcp-prompts-CpMkSs6e.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BrWSnDus.js → use-mcp-tools-DObKdEcu.js} +1 -1
- package/dist/client/assets/{use-members-DRus7xZg.js → use-members-DM2aWpGm.js} +1 -1
- package/dist/client/assets/{use-mobile-CFrwwiLD.js → use-mobile-7NdLMHiB.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DM7tn18T.js → use-navigate-to-agent-DBWvyW0p.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-BeaYFvYA.js → use-open-billing-url-DsPkGF4p.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-21d3s5Ii.js → use-org-auth-client-DN7STl4A.js} +1 -1
- package/dist/client/assets/{use-org-fs-CFCSN00v.js → use-org-fs-DKnM3E4S.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BkXCg6n2.js → use-org-repo-syncs-CDkTEriJ.js} +1 -1
- package/dist/client/assets/{use-org-sso-DMbJNrsy.js → use-org-sso-Dj24dF4x.js} +1 -1
- package/dist/client/assets/{use-organization-roles-4sGeeC2G.js → use-organization-roles-BhoInROm.js} +1 -1
- package/dist/client/assets/{use-organization-settings-dnq1S6Fx.js → use-organization-settings-Bh1MgWMz.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-FbolIt1t.js → use-panel-navigate-CbwiVPwL.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-CXU1utGD.js → use-project-native-view-presence-DXYMkBrd.js} +1 -1
- package/dist/client/assets/{use-project-scope-BmQykMfV.js → use-project-scope-DPGZwkTE.js} +1 -1
- package/dist/client/assets/{use-releases-DDAFj1EC.js → use-releases-CnQn1QD4.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-BqOZHxBH.js → use-reports-diagnostic-D2YSYnR9.js} +1 -1
- package/dist/client/assets/{use-route-default-main-CkhnWI6M.js → use-route-default-main-BP7z3SAs.js} +1 -1
- package/dist/client/assets/{use-secrets-Jcx5hRkJ.js → use-secrets-Dq6fpQZD.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-lFbrJV5g.js → use-section-preview-base-CFgLG-CI.js} +1 -1
- package/dist/client/assets/{use-session-runtime-qqhqfMVL.js → use-session-runtime-O6hilKHL.js} +1 -1
- package/dist/client/assets/{use-tags-lcGs1CDY.js → use-tags-DimWZDr4.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DwVwElaD.js → use-task-board-analytics-ldiUXB7i.js} +1 -1
- package/dist/client/assets/{use-task-metadata-B_r4urCM.js → use-task-metadata-un4TVL9m.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-Bb3UI7mQ.js → use-thread-analytics-dT_aVduX.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-CHKnkCZM.js → use-thread-outputs-DLBwIBdA.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CZe9TmcS.js → use-virtual-mcp-DLYR2teL.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-aO3Bnwb-.js +1 -0
- package/dist/client/assets/{useQueries-C2__QN_1.js → useQueries-DMxSKiQM.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CERMCpsZ.js +1 -0
- package/dist/client/assets/{users-BuSKLZ0k.js → users-Ci6P-NuA.js} +1 -1
- package/dist/client/assets/{utils-CvdqcWPw.js → utils-BcU7ok0u.js} +1 -1
- package/dist/client/assets/{variant-calendar-CQMfZ_wr.js → variant-calendar-Bg3H3F2r.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-e5NO-HEV.js → variant-matcher-override-CW9C0jan.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CWc5z3tA.js → view-mode-toggle-BIT4-lg7.js} +1 -1
- package/dist/client/assets/{virtual-mcp-o68MNg_z.js → virtual-mcp-DdvSafC6.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +429 -429
- package/dist/server/server.js +306 -306
- package/package.json +1 -1
- package/dist/client/assets/agent-app-DFZO_7Wp.js +0 -1
- package/dist/client/assets/agent-deck-Dnrc81oQ.js +0 -1
- package/dist/client/assets/agent-library-file-DW-153Ql.js +0 -1
- package/dist/client/assets/agent-settings-BNBsui4i.js +0 -1
- package/dist/client/assets/agent-site-editor-code-P1DuWSLQ.js +0 -2
- package/dist/client/assets/agent-view-DC_gjqv2.js +0 -1
- package/dist/client/assets/api-keys-a3S8wpcX.js +0 -1
- package/dist/client/assets/app-editor-CxQtPqbw.js +0 -1
- package/dist/client/assets/project-reports-Bmmgk7iU.js +0 -1
- package/dist/client/assets/project-tasks-5PTUxIrM.js +0 -1
- package/dist/client/assets/record-editor-byAQmfCC.js +0 -1
- package/dist/client/assets/reports-KxoXeWeK.js +0 -1
- package/dist/client/assets/roles-D2qYUYrd.js +0 -1
- package/dist/client/assets/tasks-B-WFytkO.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CQBOZphA.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DYo8R2JU.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as z,j as t,B as K,h as X,ao as tt,ap as ie,b as W,E as Re,r as D,U as Fe,Y as xe,d8 as st,d7 as Me,an as ot,n as ze,P as ye,u as nt,L as te,t as lt,f as fe,b$ as Be}from"./index-BeWJyIso.js";import{E as Le}from"./empty-state-CR81vKzY.js";import{u as he}from"./use-mcp-client-BiCqEGFb.js";import{F as re,a as it,b as ae,d as ce}from"./form-Ck4HW1Sy.js";import{I as ue}from"./input-Dg01qG2F.js";import{T as pe}from"./textarea-DqxiQTrt.js";import{D as ge,O as rt,M as at}from"./index-00RLjR1H.js";import{bj as ct,a5 as dt,bt as mt,O as ut,I as pt,J as xt,aN as ft,C as we,as as ht}from"./agent-icon-Cp4E_xly.js";import{M as gt}from"./mcp-app-renderer-D-ZRsE2Y.js";import{g as jt,M as Ce}from"./types-CO-VtMYa.js";import{a as bt,b as Nt,A as vt}from"./alert-DdmTPGDH.js";import{S as Ie,b as Te,a as $e,d as Pe,c as de}from"./select-Dfh2pwaV.js";import{b as St,c as De,T as ke,a as Ae}from"./tooltip-C6IXJ6f6.js";import{B as Ue,a as _e,b as Y,c as se,d as oe,e as Je}from"./breadcrumb-DOba6LNd.js";import{i as yt}from"./AlertCircle-CjR0jbo6.js";import{a as wt}from"./Copy01-M-Qbz3gf.js";import{i as Ct}from"./Sun-BsNGpGdi.js";import{g as It}from"./connection-slug-CITJ0kGN.js";import{u as Tt,T as $t}from"./use-mcp-auth-status-C9w6MKri.js";import{a as Ve,u as qe}from"./use-connection-Ku7rB1--.js";import{u as Pt}from"./use-mcp-tools-BrWSnDus.js";import{c as Dt}from"./content-blocks-o63cs2vh.js";import{I as Ee}from"./integration-icon-CwQ6RDOp.js";import{f as kt,r as At}from"./chat-context-L1MRASS9.js";import{a as Et}from"./shell-layout-D6K65ArQ.js";import{M as Ot}from"./monaco-editor-BGx93JF5.js";import{E as Rt}from"./empty-state-FjX1LyDk.js";import"./auth-Dt4n2Wsi.js";import"./label-BXpXMxJB.js";import"./sidebar-B5n-YfyT.js";import"./LayoutLeft-B4wEmr_x.js";import"./use-mobile-CFrwwiLD.js";import"./sheet-Bf-A6APE.js";import"./X-B3oYr7cv.js";import"./Key01-hC0wHiG0.js";import"./extract-connection-data-DvBFazbY.js";import"./metadata-D72DunRR.js";import"./connection-D-mDjvm_.js";import"./Plus-CPtri1YM.js";import"./index-Drb5uyEG.js";import"./index-CaaYe61j.js";import"./index-CyWkcQet.js";import"./popover-DkF53k7G.js";import"./use-virtual-mcp-CZe9TmcS.js";import"./Check-DFrsPmld.js";import"./SearchMd-DoMlo04D.js";import"./use-create-virtual-mcp-Bz_mu6OH.js";import"./use-navigate-to-agent-DM7tn18T.js";import"./hooks-Cv8CIM3K.js";import"./backoff-8mStPHYB.js";import"./task-board-Bs0pcuKB.js";import"./schema-CPltpPH2.js";import"./thread-intent-UaqT-IH6.js";import"./slugify-CEUa2lfQ.js";import"./github-repo-BknN0SVI.js";import"./Tool01-BWmyIYi9.js";import"./ArrowUp-C9wr8Ytd.js";import"./ArrowLeft-C4QBkomm.js";import"./ArrowRight-CO-QujUS.js";import"./ZoomOut-6YH0qddF.js";import"./Globe04-Bc5TMhQV.js";import"./CheckCircle-DkaKMSaV.js";import"./ChevronUp-C9udc4Rh.js";import"./UserSquare-DFFgBLK6.js";import"./CreditCard01-CET8MOTL.js";import"./DotsVertical-CZz-Lgk0.js";import"./Eye-CmvlR53w.js";import"./Share07-ChCo_3pm.js";import"./XClose-DNumy7PJ.js";import"./Image01-wp07hfou.js";import"./Link01-Ba4lmYHC.js";import"./LinkExternal01-BVl3Qea8.js";import"./Monitor01-d780LsKL.js";import"./Palette-C0NdvAWe.js";import"./Trash01-D0sFCEiI.js";import"./Upload01-CQkdN0Jy.js";import"./User01-DFmvr7oB.js";import"./Users01-aZvr1NAJ.js";import"./Zap-BrtBHXca.js";import"./index-CtfYS4f5.js";import"./badge-XWwRFC3r.js";import"./mcp-oauth-CXM1ag2W.js";import"./use-panel-navigate-FbolIt1t.js";import"./thread-route-BPEHRb4I.js";import"./use-project-scope-BmQykMfV.js";import"./autosend-ByHAtC6V.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-CXZXMVT5.js";import"./use-ai-providers-MuCxLEzc.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-CYyKL-jy.js";import"./use-organization-settings-dnq1S6Fx.js";import"./avatar-C3Tu_Zj6.js";import"./download-app-dialog-aA1UuFYE.js";import"./dialog-BqioEhMl.js";import"./command-B8JP2G8U.js";import"./project-icon-Drq3GVLp.js";import"./required-auth-layout-C2QknIQr.js";import"./use-org-sso-DMbJNrsy.js";import"./editor-gYjyR8eY.js";function Oe(s){const e=z.c(15),{onSave:l,onUndo:n,isDirty:m,isSaving:o,saveLabel:a,undoLabel:u}=s,d=a===void 0?"Save":a,r=u===void 0?"Undo":u;if(!m)return null;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(ct,{size:14}),e[0]=i):i=e[0];let h;e[1]!==o||e[2]!==n||e[3]!==r?(h=t.jsxs(K,{variant:"outline",size:"sm",onClick:n,disabled:o,"aria-label":r,children:[i,r]}),e[1]=o,e[2]=n,e[3]=r,e[4]=h):h=e[4];let p;e[5]!==o?(p=o?t.jsx(X,{className:"size-3.5"}):t.jsx(dt,{size:14}),e[5]=o,e[6]=p):p=e[6];let x;e[7]!==o||e[8]!==l||e[9]!==d||e[10]!==p?(x=t.jsxs(K,{variant:"default",size:"sm",onClick:l,disabled:o,"aria-label":d,children:[p,d]}),e[7]=o,e[8]=l,e[9]=d,e[10]=p,e[11]=x):x=e[11];let j;return e[12]!==h||e[13]!==x?(j=t.jsxs(t.Fragment,{children:[h,x]}),e[12]=h,e[13]=x,e[14]=j):j=e[14],j}tt({title:ie().min(1),description:ie().nullable(),body:ie()});function me(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Ft(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(n=>n==="mcps"),l=e>=0?s[e+1]:void 0;return l?decodeURIComponent(l):void 0}function Mt(s){const e=z.c(43),{form:l}=s,n=W();let m;e[0]!==n?(m=n("details.prompt.details"),e[0]=n,e[1]=m):m=e[1];let o;e[2]!==m?(o=t.jsx("div",{className:"text-sm font-medium text-foreground",children:m}),e[2]=m,e[3]=o):o=e[3];let a;e[4]!==n?(a=T=>{const{field:$}=T;return t.jsxs(ae,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:n("details.prompt.title")}),t.jsx(ce,{children:t.jsx(ue,{...$,placeholder:n("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=n,e[5]=a):a=e[5];let u;e[6]!==l.control||e[7]!==a?(u=t.jsx(re,{control:l.control,name:"title",render:a}),e[6]=l.control,e[7]=a,e[8]=u):u=e[8];let d;e[9]!==n?(d=T=>{const{field:$}=T;return t.jsxs(ae,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:n("details.prompt.description")}),t.jsx(ce,{children:t.jsx(ue,{...$,value:$.value??"",placeholder:n("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=n,e[10]=d):d=e[10];let r;e[11]!==l.control||e[12]!==d?(r=t.jsx(re,{control:l.control,name:"description",render:d}),e[11]=l.control,e[12]=d,e[13]=r):r=e[13];let i;e[14]!==u||e[15]!==r?(i=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[u,r]}),e[14]=u,e[15]=r,e[16]=i):i=e[16];let h;e[17]!==o||e[18]!==i?(h=t.jsxs("div",{className:"flex flex-col gap-4",children:[o,i]}),e[17]=o,e[18]=i,e[19]=h):h=e[19];let p;e[20]!==n?(p=n("details.prompt.message"),e[20]=n,e[21]=p):p=e[21];let x;e[22]!==p?(x=t.jsx("div",{className:"text-sm font-medium text-foreground",children:p}),e[22]=p,e[23]=x):x=e[23];let j;e[24]!==n?(j=n("details.prompt.messageDescription"),e[24]=n,e[25]=j):j=e[25];let f;e[26]!==j?(f=t.jsx("div",{className:"text-xs text-muted-foreground",children:j}),e[26]=j,e[27]=f):f=e[27];let b;e[28]!==n?(b=T=>{const{field:$}=T;return t.jsx(ae,{children:t.jsx(ce,{children:t.jsx(pe,{...$,value:$.value??"",placeholder:n("details.prompt.bodyPlaceholder"),className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})},e[28]=n,e[29]=b):b=e[29];let S;e[30]!==l.control||e[31]!==b?(S=t.jsx(re,{control:l.control,name:"body",render:b}),e[30]=l.control,e[31]=b,e[32]=S):S=e[32];let w;e[33]!==x||e[34]!==f||e[35]!==S?(w=t.jsxs("div",{className:"flex flex-col gap-2",children:[x,f,S]}),e[33]=x,e[34]=f,e[35]=S,e[36]=w):w=e[36];let C;e[37]!==w||e[38]!==h?(C=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[h,w]}),e[37]=w,e[38]=h,e[39]=C):C=e[39];let I;return e[40]!==l||e[41]!==C?(I=t.jsx(it,{...l,children:C}),e[40]=l,e[41]=C,e[42]=I):I=e[42],I}function zt(s){const e=z.c(35),{providerId:l,promptId:n}=s,m=Fe(),o=W(),{org:a}=xe(),u=l||null;let d;e[0]!==a.id||e[1]!==a.slug||e[2]!==u?(d={connectionId:u,orgId:a.id,orgSlug:a.slug},e[0]=a.id,e[1]=a.slug,e[2]=u,e[3]=d):d=e[3];const r=he(d),i=st(l,"PROMPT",n,r),h=Me(l,"PROMPT",r),p=h.update.isPending;let x;e[4]!==i?(x=i?{title:i.title,description:i.description??null,body:me(i)}:void 0,e[4]=i,e[5]=x):x=e[5];let j;e[6]!==x?(j={values:x},e[6]=x,e[7]=j):j=e[7];const f=ot(j);let b;e[8]!==f||e[9]!==i?(b=()=>{i&&f.reset({title:i.title,description:i.description??null,body:me(i)})},e[8]=f,e[9]=i,e[10]=b):b=e[10];const S=b;let w;e[11]!==h.update||e[12]!==f||e[13]!==n?(w=f.handleSubmit(async v=>{const y=await h.update.mutateAsync({id:n,data:{title:v.title,description:v.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:v.body}}]}});f.reset({title:y.title,description:y.description??null,body:me(y)})}),e[11]=h.update,e[12]=f,e[13]=n,e[14]=w):w=e[14];const C=w;if(!i){let v;e[15]!==o?(v=o("details.prompt.notFoundTitle"),e[15]=o,e[16]=v):v=e[16];let y;e[17]!==o?(y=o("details.prompt.notFoundDescription"),e[17]=o,e[18]=y):y=e[18];let k;return e[19]!==v||e[20]!==y?(k=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Le,{title:v,description:y})}),e[19]=v,e[20]=y,e[21]=k):k=e[21],k}let I;e[22]!==m||e[23]!==f.formState.isDirty||e[24]!==p||e[25]!==i.description||e[26]!==i.title||e[27]!==S||e[28]!==C?(I=m?t.jsxs(t.Fragment,{children:[t.jsx(ze.Title,{actions:t.jsx(Oe,{onSave:()=>{C()},onUndo:S,isDirty:f.formState.isDirty,isSaving:p}),children:i.title}),i.description&&t.jsx("p",{className:"px-4 py-3 text-sm text-muted-foreground",children:i.description})]}):t.jsxs(t.Fragment,{children:[t.jsx(ye.Topbar.Center.Portal,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:i.title}),i.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:i.description})]}):null]})}),t.jsx(ye.Topbar.Right.Portal,{children:t.jsx(Oe,{onSave:()=>{C()},onUndo:S,isDirty:f.formState.isDirty,isSaving:p})})]}),e[22]=m,e[23]=f.formState.isDirty,e[24]=p,e[25]=i.description,e[26]=i.title,e[27]=S,e[28]=C,e[29]=I):I=e[29];let T;e[30]!==f?(T=t.jsx("div",{className:"h-full",children:t.jsx(Mt,{form:f})}),e[30]=f,e[31]=T):T=e[31];let $;return e[32]!==I||e[33]!==T?($=t.jsxs(ge,{children:[I,T]}),e[32]=I,e[33]=T,e[34]=$):$=e[34],$}function Bt(s){const e=z.c(10),{itemId:l}=s,n=W();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=Ft(),e[0]=m):m=e[0];const o=m;if(!o){let u;e[1]!==n?(u=n("details.prompt.notFoundTitle"),e[1]=n,e[2]=u):u=e[2];let d;e[3]!==n?(d=n("details.prompt.missingConnectionDescription"),e[3]=n,e[4]=d):d=e[4];let r;return e[5]!==u||e[6]!==d?(r=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Le,{title:u,description:d})}),e[5]=u,e[6]=d,e[7]=r):r=e[7],r}let a;return e[8]!==l?(a=t.jsx(Re,{children:t.jsx(D.Suspense,{fallback:null,children:t.jsx(zt,{providerId:o,promptId:l})})}),e[8]=l,e[9]=a):a=e[9],a}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=z.c(12),{toolName:l,connectionId:n,siblings:m,onSelectInstance:o,onBack:a}=s,u=W();let d;e[0]!==n?(d={connectionId:n},e[0]=n,e[1]=d):d=e[1];const r=Tt(d);if(!r.isAuthenticated){let p;return e[2]!==r.supportsOAuth||e[3]!==a||e[4]!==u?(p=t.jsx("div",{className:"flex h-full items-center justify-center",children:r.supportsOAuth?t.jsx(rt,{onAuthenticate:()=>a(),buttonText:u("details.tool.goBackToAuthenticate")}):t.jsx(at,{hasReadme:!1})}),e[2]=r.supportsOAuth,e[3]=a,e[4]=u,e[5]=p):p=e[5],p}const i=`${n}:${l}`;let h;return e[6]!==n||e[7]!==o||e[8]!==m||e[9]!==i||e[10]!==l?(h=t.jsx(_t,{toolName:l,connectionId:n,siblings:m,onSelectInstance:o},i),e[6]=n,e[7]=o,e[8]=m,e[9]=i,e[10]=l,e[11]=h):h=e[11],h}function _t({toolName:s,connectionId:e,siblings:l,onSelectInstance:n}){const m=Fe(),o=W(),{replayId:a}=nt({strict:!1}),u=(()=>{if(!a)return null;const c=`replay-${a}`,g=sessionStorage.getItem(c);if(!g)return null;sessionStorage.removeItem(c);try{return JSON.parse(g)}catch{return null}})(),d=(()=>{if(!u)return null;const c={};for(const[g,P]of Object.entries(u))P!==null&&typeof P=="object"?c[g]=JSON.stringify(P,null,2):c[g]=P;return c})(),[r,i]=D.useState(d??{}),[h,p]=D.useState(u?JSON.stringify(u,null,2):"{}"),[x,j]=D.useState(null),[f,b]=D.useState(null),[S,w]=D.useState(null),[C,I]=D.useState(null),[T,$]=D.useState(!1),[v,y]=D.useState(null),{org:k}=xe(),A=Ve(e),q=kt(),B=At(),{openSidePanel:U}=Et(),H=`${e}:${s}`,L=he({connectionId:e,orgId:k.id,orgSlug:k.slug}),O=Pt({client:L}),N=O.data?.tools?.find(c=>c.name===s),E=jt(N?._meta),_=c=>{if(!q)return;const g=Dt(c.content);g.content.length>0&&(U(),q.sendMessage({tiptapDoc:g}))},[R,F]=D.useState("json"),[Q,J]=D.useState(!1);E&&!Q&&(F("ui"),J(!0));const je=N?.inputSchema?.properties,be=je?Object.keys(je):[],G=be.length>0,Z={};if(G&&N?.inputSchema?.properties)for(const c of be)Z[c]=N.inputSchema.required?.includes(c)?"":void 0;const ne=c=>Object.prototype.hasOwnProperty.call(r,c),He=async()=>{$(!0),I(null),j(null),b(null),w(null),y(null);const c=performance.now();try{if(!L)throw new Error("MCP client is not available");const g=G?{...Z,...r}:(()=>{const M=h.trim();if(!M)return{};const V=JSON.parse(M);if(V&&typeof V=="object")return V;throw new Error("Raw JSON input must be an object.")})();G&&N?.inputSchema?.properties&&Object.entries(N.inputSchema.properties).forEach(([M,V])=>{if((V.type==="object"||V.type==="array")&&typeof g[M]=="string")try{g[M]=JSON.parse(g[M])}catch{}else if((V.type==="number"||V.type==="integer")&&typeof g[M]=="string"&&g[M]!==""){const Se=Number(g[M]);Number.isNaN(Se)||(g[M]=Se)}});const P=await L.callTool({name:s,arguments:g}),ee=P.structuredContent??P,Xe=performance.now(),Ze=Math.round(Xe-c);j(ee),b(P),w(g);const et=JSON.stringify(ee),ve=new TextEncoder().encode(et).length;y({duration:`${Ze}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(g){const P=g instanceof Error?g.message:String(g);I(P||"Unknown error occurred");const ee=performance.now();y({duration:`${Math.round(ee-c)}ms`})}finally{$(!1)}},le=(c,g)=>{i(P=>({...P,[c]:g}))},Ke=()=>{j(null),b(null),w(null),I(null),y(null)},We=N?.name??Lt(s),Qe=t.jsx(Ue,{children:t.jsxs(_e,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:k.slug},children:o("details.tool.connections")})})}),t.jsx(oe,{}),A&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:k.slug,appSlug:It(A)},search:{tab:"tools"},children:A.title})})}),t.jsx(oe,{})]}),t.jsx(Y,{children:t.jsx(Je,{children:We})})]})}),Ne=l.length>1&&t.jsxs(Ie,{value:e,onValueChange:n,children:[t.jsx(Te,{className:"h-8 w-auto min-w-[200px]",children:t.jsx($e,{})}),t.jsx(Pe,{children:l.map(c=>t.jsx(de,{value:c.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ee,{icon:c.icon,name:c.title,size:"xs",className:"shrink-0"}),c.title]})},c.id))})]}),Ye=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:o("details.tool.parameters")}),N?.inputSchema?.required&&N.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-destructive",children:"*"})," ",o("details.tool.required")]})]}),t.jsx("div",{className:"space-y-4",children:G&&N?.inputSchema?.properties?Object.entries(N.inputSchema.properties).map(([c,g])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[c,N.inputSchema?.required?.includes(c)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:g.type})]}),g.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:g.description}),g.type==="object"||g.type==="array"?t.jsx(pe,{className:"font-mono text-xs",value:ne(c)?r[c]??"":Z[c]??"",onChange:P=>le(c,P.target.value),placeholder:o("details.tool.enterAsJson",{key:c}),rows:3}):g.type==="boolean"?t.jsxs(Ie,{value:ne(c)?String(r[c]??""):"",onValueChange:P=>le(c,P==="true"),children:[t.jsx(Te,{children:t.jsx($e,{placeholder:o("details.tool.selectTrueOrFalse")})}),t.jsxs(Pe,{children:[t.jsx(de,{value:"true",children:"true"}),t.jsx(de,{value:"false",children:"false"})]})]}):t.jsx(ue,{value:ne(c)?r[c]??"":Z[c]??"",onChange:P=>le(c,P.target.value),placeholder:o("details.tool.enter",{key:c})})]},c)):N?.inputSchema&&!G?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:o("details.tool.rawJsonInput")}),t.jsx(pe,{className:"font-mono text-xs min-h-[120px]",value:h,onChange:c=>p(c.target.value),placeholder:o("details.tool.rawJsonExample")})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:o("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:T?t.jsxs(K,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Ke,children:[t.jsx(mt,{className:"h-3.5 w-3.5"}),o("details.tool.cancel")]}):t.jsxs(K,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:He,children:[t.jsx(Ct,{className:"h-3.5 w-3.5 fill-current"}),o("details.tool.executeTool")]})})]}),Ge=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:o("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[v&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ut,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.duration})]}),v.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(pt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.tokens})]}),v.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(xt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.bytes})]}),v.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:v.cost})})]}),E&&t.jsx(St,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(De,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:R==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>F("ui"),children:t.jsx(ft,{size:14})})}),t.jsx(Ae,{children:o("details.tool.interactiveView")})]}),t.jsxs(De,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:R==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>F("json"),children:t.jsx(we,{size:14})})}),t.jsx(Ae,{children:o("details.tool.jsonView")})]})]})})]})]}),C&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(bt,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(yt,{className:"h-4 w-4"}),t.jsx(Nt,{className:"mb-0",children:o("details.tool.executionFailed")})]}),t.jsx(vt,{className:"text-xs text-destructive",children:C})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:E&&R==="ui"&&L?t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx(X,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:o("details.tool.loadingApp")})]})}),children:t.jsx(gt,{resourceURI:E,toolInfo:N?{tool:N}:void 0,toolInput:S??void 0,toolResult:f??void 0,displayMode:"fullscreen",minHeight:Ce.view.minHeight,maxHeight:Ce.view.maxHeight,client:L,onMessage:_,onUpdateModelContext:c=>B?.setAppContext(H,c),onTeardown:()=>B?.clearAppContext(H),className:"h-full"})}):x?t.jsxs(t.Fragment,{children:[t.jsx(Ot,{code:JSON.stringify(x,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(K,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(x,null,2)),lt.success(o("details.tool.copiedToClipboard"))},children:t.jsx(wt,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(we,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:o("details.tool.runToolToSeeResults")})]})})]});return t.jsx(ge,{leading:Qe,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Ee,{icon:A?.icon||null,name:A?.title||s,size:"xl",className:"shrink-0"}),m?t.jsx(ze.Title,{children:s}):t.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground leading-none truncate",children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[O.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):O.isLoading?t.jsx(X,{className:"size-[10px] text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:O.isSuccess?"ready":O.isLoading?"connecting":"error"})]}),t.jsx($t,{annotations:N?.annotations,_meta:N?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:Ne})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:N?.description||"No description available"})]}),l.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:o("details.tool.instance")}),Ne]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Ye}),Ge]})})]})})}function Jt(s){const e=z.c(20),{itemId:l,siblings:n,onBack:m}=s,o=W(),[a,u]=D.useState(n[0]?.id??"");let d;e[0]!==a||e[1]!==n?(d=n.find(x=>x.id===a)?.id??n[0]?.id??"",e[0]=a,e[1]=n,e[2]=d):d=e[2];const r=d;if(!Ve(r||void 0)||!r){let x;e[3]!==o?(x=o("details.tool.connectionNotFound"),e[3]=o,e[4]=x):x=e[4];let j;e[5]!==x?(j=t.jsx("h3",{className:"text-lg font-semibold",children:x}),e[5]=x,e[6]=j):j=e[6];let f;e[7]!==o?(f=o("details.tool.connectionNotFoundMessage"),e[7]=o,e[8]=f):f=e[8];let b;e[9]!==f?(b=t.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[9]=f,e[10]=b):b=e[10];let S;return e[11]!==j||e[12]!==b?(S=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[j,b]})}),e[11]=j,e[12]=b,e[13]=S):S=e[13],S}let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(X,{className:"size-8 text-muted-foreground"})}),e[14]=h):h=e[14];let p;return e[15]!==r||e[16]!==m||e[17]!==n||e[18]!==l?(p=t.jsx(D.Suspense,{fallback:h,children:t.jsx(Ut,{toolName:l,connectionId:r,siblings:n,onSelectInstance:u,onBack:m})}),e[15]=r,e[16]=m,e[17]=n,e[18]=l,e[19]=p):p=e[19],p}const Vt={prompt:Bt};function qt(){const s=z.c(9),e=Be();let l;s[0]===Symbol.for("react.memo_cache_sentinel")?(l={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=l):l=s[0];const n=fe(l),m=decodeURIComponent(n.itemId);let o;s[1]!==n.appSlug?(o={slug:n.appSlug},s[1]=n.appSlug,s[2]=o):o=s[2];const a=qe(o);let u;s[3]!==e.history?(u=()=>{e.history.back()},s[3]=e.history,s[4]=u):u=s[4];const d=u,r=Ht;let i;return s[5]!==d||s[6]!==m||s[7]!==a?(i=t.jsx(Jt,{itemId:m,siblings:a,onBack:d,onUpdate:r}),s[5]=d,s[6]=m,s[7]=a,s[8]=i):i=s[8],i}async function Ht(s){return Promise.resolve()}function Kt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Wt(){const s=z.c(52),e=Be();let l;s[0]===Symbol.for("react.memo_cache_sentinel")?(l={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=l):l=s[0];const n=fe(l),m=W(),o=decodeURIComponent(n.collectionName),a=decodeURIComponent(n.itemId);let u;s[1]!==e.history?(u=()=>{e.history.back()},s[1]=e.history,s[2]=u):u=s[2];const d=u,{org:r}=xe();let i;s[3]!==n.appSlug?(i={slug:n.appSlug},s[3]=n.appSlug,s[4]=i):i=s[4];const p=qe(i)[0]??null,x=p?.id??"",j=x||"no-connection",f=x??null;let b;s[5]!==r.id||s[6]!==r.slug||s[7]!==f?(b={connectionId:f,orgId:r.id,orgSlug:r.slug},s[5]=r.id,s[6]=r.slug,s[7]=f,s[8]=b):b=s[8];const S=he(b),w=Me(j,o,S);let C;s[9]!==w||s[10]!==a?(C=async J=>{a&&await w.update.mutateAsync({id:a,data:J})},s[9]=w,s[10]=a,s[11]=C):C=s[11];const I=C;let T;s[12]!==o?(T=o?.toLowerCase(),s[12]=o,s[13]=T):T=s[13];const $=T,v=$&&Vt[$];let y;s[14]!==o?(y=Kt(o),s[14]=o,s[15]=y):y=s[15];const k=y;let A;s[16]!==r.slug?(A=t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:r.slug},children:"Connections"})})}),s[16]=r.slug,s[17]=A):A=s[17];let q;s[18]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx(oe,{}),s[18]=q):q=s[18];let B;s[19]!==o||s[20]!==p||s[21]!==r.slug||s[22]!==n.appSlug?(B=p&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:r.slug,appSlug:n.appSlug},search:{tab:o},children:p.title})})}),t.jsx(oe,{})]}),s[19]=o,s[20]=p,s[21]=r.slug,s[22]=n.appSlug,s[23]=B):B=s[23];let U;s[24]!==k?(U=t.jsx(Y,{children:t.jsx(Je,{children:k})}),s[24]=k,s[25]=U):U=s[25];let H;s[26]!==B||s[27]!==U||s[28]!==A?(H=t.jsx(Ue,{children:t.jsxs(_e,{children:[A,q,B,U]})}),s[26]=B,s[27]=U,s[28]=A,s[29]=H):H=s[29];const L=H;if(v){let J;return s[30]!==v||s[31]!==d||s[32]!==I||s[33]!==a?(J=t.jsx(v,{itemId:a,onBack:d,onUpdate:I}),s[30]=v,s[31]=d,s[32]=I,s[33]=a,s[34]=J):J=s[34],J}let O;s[35]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(ht,{size:36,className:"text-muted-foreground"}),s[35]=O):O=s[35];let N;s[36]!==m?(N=m("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=m,s[37]=N):N=s[37];let E;s[38]!==m?(E=m("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=m,s[39]=E):E=s[39];let _;s[40]!==m?(_=m("orgs.collectionDetail.goBackButton"),s[40]=m,s[41]=_):_=s[41];let R;s[42]!==d||s[43]!==_?(R={onClick:d,children:_},s[42]=d,s[43]=_,s[44]=R):R=s[44];let F;s[45]!==N||s[46]!==E||s[47]!==R?(F=t.jsx(Rt,{icon:O,title:N,description:E,buttonProps:R}),s[45]=N,s[46]=E,s[47]=R,s[48]=F):F=s[48];let Q;return s[49]!==L||s[50]!==F?(Q=t.jsx(ge,{leading:L,children:F}),s[49]=L,s[50]=F,s[51]=Q):Q=s[51],Q}function Qt(){const s=z.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const l=fe(e);if(decodeURIComponent(l.collectionName)==="tools"){let a;return s[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(qt,{}),s[1]=a):a=s[1],a}let o;return s[2]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(Wt,{}),s[2]=o):o=s[2],o}function Jo(){const s=z.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Re,{children:t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(X,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Qt,{})})}),s[0]=e):e=s[0],e}export{Jo as default};
|
|
1
|
+
import{c as z,j as t,B as K,h as X,ao as tt,ap as ie,b as W,E as Re,r as D,U as Fe,Y as xe,d8 as st,d7 as Me,an as ot,n as ze,P as ye,u as nt,L as te,t as lt,f as fe,b$ as Be}from"./index-D-Qb9EKo.js";import{E as Le}from"./empty-state-CzIH_JfN.js";import{u as he}from"./use-mcp-client-D5ISNy1u.js";import{F as re,a as it,b as ae,d as ce}from"./form-CjY4wPH4.js";import{I as ue}from"./input-CuAG4MMc.js";import{T as pe}from"./textarea-DCGCgxQP.js";import{D as ge,O as rt,M as at}from"./index-UD8UKuoc.js";import{bj as ct,a5 as dt,bt as mt,O as ut,I as pt,J as xt,aN as ft,C as we,as as ht}from"./agent-icon-DGZEAm9H.js";import{M as gt}from"./mcp-app-renderer-BL5tgHAn.js";import{g as jt,M as Ce}from"./types-BEpeZDST.js";import{a as bt,b as Nt,A as vt}from"./alert-BT3DZGcd.js";import{S as Ie,b as Te,a as $e,d as Pe,c as de}from"./select-BByR5Z_4.js";import{b as St,c as De,T as ke,a as Ae}from"./tooltip-TamJ0pBA.js";import{B as Ue,a as _e,b as Y,c as se,d as oe,e as Je}from"./breadcrumb-CW_U1f5l.js";import{i as yt}from"./AlertCircle-Du4pSpAv.js";import{a as wt}from"./Copy01-ps1GrLwt.js";import{i as Ct}from"./Sun-Bs_C-u75.js";import{g as It}from"./connection-slug-CITJ0kGN.js";import{u as Tt,T as $t}from"./use-mcp-auth-status-n70YyfJn.js";import{a as Ve,u as qe}from"./use-connection-8slpfTIQ.js";import{u as Pt}from"./use-mcp-tools-DObKdEcu.js";import{c as Dt}from"./content-blocks-o63cs2vh.js";import{I as Ee}from"./integration-icon-jMu9bsqq.js";import{f as kt,r as At}from"./chat-context-DotjjaCp.js";import{a as Et}from"./shell-layout-DJ3g9P4L.js";import{M as Ot}from"./monaco-editor-pYjftJUI.js";import{E as Rt}from"./empty-state-DhesR7qU.js";import"./auth-D02289MQ.js";import"./label-BBoHKfq-.js";import"./sidebar-9WzrDLIj.js";import"./LayoutLeft-DTet0kcn.js";import"./use-mobile-7NdLMHiB.js";import"./sheet-DUs41Hsj.js";import"./X-Bcv3LM3l.js";import"./Key01-DFcPORPA.js";import"./extract-connection-data-DcoB8kAN.js";import"./metadata-D72DunRR.js";import"./connection-DlXjaPva.js";import"./Plus-C1bAoYy_.js";import"./index-o2BIgZ-C.js";import"./index-otD7ZsOh.js";import"./index-CENDMkD1.js";import"./popover-C2l1C5I5.js";import"./use-virtual-mcp-DLYR2teL.js";import"./Check-Ba60y41Y.js";import"./SearchMd-Bo9C0lON.js";import"./use-create-virtual-mcp-hxRIA5D7.js";import"./use-navigate-to-agent-DBWvyW0p.js";import"./hooks-CKSmikgd.js";import"./backoff-8mStPHYB.js";import"./task-board-4WdRpL9H.js";import"./schema-DSDdcZr4.js";import"./thread-intent-B-RLNYw1.js";import"./slugify-CEUa2lfQ.js";import"./github-repo-BknN0SVI.js";import"./Tool01-rptoyApF.js";import"./ArrowUp-Blhz95Gn.js";import"./ArrowLeft-DcYtirf0.js";import"./ArrowRight-pEyu9bR7.js";import"./ZoomOut-zpocZpUK.js";import"./Globe04-DUA_rKwg.js";import"./CheckCircle-C7_LF2ru.js";import"./ChevronUp-BKTM5kuE.js";import"./UserSquare-C3h8vlGA.js";import"./CreditCard01-w7TsTZTh.js";import"./DotsVertical-CIifNiXH.js";import"./Eye-BYwRB-B7.js";import"./Share07-BB--BXeq.js";import"./XClose-CtU5_ALA.js";import"./Image01-4eEp4rFk.js";import"./Link01-Bk8fUFT0.js";import"./LinkExternal01-Sd40C2OB.js";import"./Monitor01-D7UgaQLg.js";import"./Palette-BH_QIJDy.js";import"./Trash01-8P2mehkt.js";import"./Upload01-Do_51Ot8.js";import"./User01-CI_nGvGi.js";import"./Users01-C8Fu7mYo.js";import"./Zap-qz4zBbkB.js";import"./index-6J38YLa6.js";import"./badge-Dje3gf1p.js";import"./mcp-oauth-BjLtq_iZ.js";import"./use-panel-navigate-CbwiVPwL.js";import"./thread-route-TLv3Q6zM.js";import"./use-project-scope-DPGZwkTE.js";import"./autosend-CK9dEzFq.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-C3f6niws.js";import"./use-ai-providers-CyGPGR57.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BuKXkEX5.js";import"./use-organization-settings-Bh1MgWMz.js";import"./avatar-uHIhSuBR.js";import"./download-app-dialog-CEaOvDw5.js";import"./dialog-BH40cz5f.js";import"./command-BiVTlFnj.js";import"./project-icon-BedkzeeS.js";import"./required-auth-layout-KMpl6oHR.js";import"./use-org-sso-Dj24dF4x.js";import"./editor-CDU1j3_v.js";function Oe(s){const e=z.c(15),{onSave:l,onUndo:n,isDirty:m,isSaving:o,saveLabel:a,undoLabel:u}=s,d=a===void 0?"Save":a,r=u===void 0?"Undo":u;if(!m)return null;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(ct,{size:14}),e[0]=i):i=e[0];let h;e[1]!==o||e[2]!==n||e[3]!==r?(h=t.jsxs(K,{variant:"outline",size:"sm",onClick:n,disabled:o,"aria-label":r,children:[i,r]}),e[1]=o,e[2]=n,e[3]=r,e[4]=h):h=e[4];let p;e[5]!==o?(p=o?t.jsx(X,{className:"size-3.5"}):t.jsx(dt,{size:14}),e[5]=o,e[6]=p):p=e[6];let x;e[7]!==o||e[8]!==l||e[9]!==d||e[10]!==p?(x=t.jsxs(K,{variant:"default",size:"sm",onClick:l,disabled:o,"aria-label":d,children:[p,d]}),e[7]=o,e[8]=l,e[9]=d,e[10]=p,e[11]=x):x=e[11];let j;return e[12]!==h||e[13]!==x?(j=t.jsxs(t.Fragment,{children:[h,x]}),e[12]=h,e[13]=x,e[14]=j):j=e[14],j}tt({title:ie().min(1),description:ie().nullable(),body:ie()});function me(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Ft(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(n=>n==="mcps"),l=e>=0?s[e+1]:void 0;return l?decodeURIComponent(l):void 0}function Mt(s){const e=z.c(43),{form:l}=s,n=W();let m;e[0]!==n?(m=n("details.prompt.details"),e[0]=n,e[1]=m):m=e[1];let o;e[2]!==m?(o=t.jsx("div",{className:"text-sm font-medium text-foreground",children:m}),e[2]=m,e[3]=o):o=e[3];let a;e[4]!==n?(a=T=>{const{field:$}=T;return t.jsxs(ae,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:n("details.prompt.title")}),t.jsx(ce,{children:t.jsx(ue,{...$,placeholder:n("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=n,e[5]=a):a=e[5];let u;e[6]!==l.control||e[7]!==a?(u=t.jsx(re,{control:l.control,name:"title",render:a}),e[6]=l.control,e[7]=a,e[8]=u):u=e[8];let d;e[9]!==n?(d=T=>{const{field:$}=T;return t.jsxs(ae,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:n("details.prompt.description")}),t.jsx(ce,{children:t.jsx(ue,{...$,value:$.value??"",placeholder:n("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=n,e[10]=d):d=e[10];let r;e[11]!==l.control||e[12]!==d?(r=t.jsx(re,{control:l.control,name:"description",render:d}),e[11]=l.control,e[12]=d,e[13]=r):r=e[13];let i;e[14]!==u||e[15]!==r?(i=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[u,r]}),e[14]=u,e[15]=r,e[16]=i):i=e[16];let h;e[17]!==o||e[18]!==i?(h=t.jsxs("div",{className:"flex flex-col gap-4",children:[o,i]}),e[17]=o,e[18]=i,e[19]=h):h=e[19];let p;e[20]!==n?(p=n("details.prompt.message"),e[20]=n,e[21]=p):p=e[21];let x;e[22]!==p?(x=t.jsx("div",{className:"text-sm font-medium text-foreground",children:p}),e[22]=p,e[23]=x):x=e[23];let j;e[24]!==n?(j=n("details.prompt.messageDescription"),e[24]=n,e[25]=j):j=e[25];let f;e[26]!==j?(f=t.jsx("div",{className:"text-xs text-muted-foreground",children:j}),e[26]=j,e[27]=f):f=e[27];let b;e[28]!==n?(b=T=>{const{field:$}=T;return t.jsx(ae,{children:t.jsx(ce,{children:t.jsx(pe,{...$,value:$.value??"",placeholder:n("details.prompt.bodyPlaceholder"),className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})},e[28]=n,e[29]=b):b=e[29];let S;e[30]!==l.control||e[31]!==b?(S=t.jsx(re,{control:l.control,name:"body",render:b}),e[30]=l.control,e[31]=b,e[32]=S):S=e[32];let w;e[33]!==x||e[34]!==f||e[35]!==S?(w=t.jsxs("div",{className:"flex flex-col gap-2",children:[x,f,S]}),e[33]=x,e[34]=f,e[35]=S,e[36]=w):w=e[36];let C;e[37]!==w||e[38]!==h?(C=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[h,w]}),e[37]=w,e[38]=h,e[39]=C):C=e[39];let I;return e[40]!==l||e[41]!==C?(I=t.jsx(it,{...l,children:C}),e[40]=l,e[41]=C,e[42]=I):I=e[42],I}function zt(s){const e=z.c(35),{providerId:l,promptId:n}=s,m=Fe(),o=W(),{org:a}=xe(),u=l||null;let d;e[0]!==a.id||e[1]!==a.slug||e[2]!==u?(d={connectionId:u,orgId:a.id,orgSlug:a.slug},e[0]=a.id,e[1]=a.slug,e[2]=u,e[3]=d):d=e[3];const r=he(d),i=st(l,"PROMPT",n,r),h=Me(l,"PROMPT",r),p=h.update.isPending;let x;e[4]!==i?(x=i?{title:i.title,description:i.description??null,body:me(i)}:void 0,e[4]=i,e[5]=x):x=e[5];let j;e[6]!==x?(j={values:x},e[6]=x,e[7]=j):j=e[7];const f=ot(j);let b;e[8]!==f||e[9]!==i?(b=()=>{i&&f.reset({title:i.title,description:i.description??null,body:me(i)})},e[8]=f,e[9]=i,e[10]=b):b=e[10];const S=b;let w;e[11]!==h.update||e[12]!==f||e[13]!==n?(w=f.handleSubmit(async v=>{const y=await h.update.mutateAsync({id:n,data:{title:v.title,description:v.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:v.body}}]}});f.reset({title:y.title,description:y.description??null,body:me(y)})}),e[11]=h.update,e[12]=f,e[13]=n,e[14]=w):w=e[14];const C=w;if(!i){let v;e[15]!==o?(v=o("details.prompt.notFoundTitle"),e[15]=o,e[16]=v):v=e[16];let y;e[17]!==o?(y=o("details.prompt.notFoundDescription"),e[17]=o,e[18]=y):y=e[18];let k;return e[19]!==v||e[20]!==y?(k=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Le,{title:v,description:y})}),e[19]=v,e[20]=y,e[21]=k):k=e[21],k}let I;e[22]!==m||e[23]!==f.formState.isDirty||e[24]!==p||e[25]!==i.description||e[26]!==i.title||e[27]!==S||e[28]!==C?(I=m?t.jsxs(t.Fragment,{children:[t.jsx(ze.Title,{actions:t.jsx(Oe,{onSave:()=>{C()},onUndo:S,isDirty:f.formState.isDirty,isSaving:p}),children:i.title}),i.description&&t.jsx("p",{className:"px-4 py-3 text-sm text-muted-foreground",children:i.description})]}):t.jsxs(t.Fragment,{children:[t.jsx(ye.Topbar.Center.Portal,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:i.title}),i.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:i.description})]}):null]})}),t.jsx(ye.Topbar.Right.Portal,{children:t.jsx(Oe,{onSave:()=>{C()},onUndo:S,isDirty:f.formState.isDirty,isSaving:p})})]}),e[22]=m,e[23]=f.formState.isDirty,e[24]=p,e[25]=i.description,e[26]=i.title,e[27]=S,e[28]=C,e[29]=I):I=e[29];let T;e[30]!==f?(T=t.jsx("div",{className:"h-full",children:t.jsx(Mt,{form:f})}),e[30]=f,e[31]=T):T=e[31];let $;return e[32]!==I||e[33]!==T?($=t.jsxs(ge,{children:[I,T]}),e[32]=I,e[33]=T,e[34]=$):$=e[34],$}function Bt(s){const e=z.c(10),{itemId:l}=s,n=W();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=Ft(),e[0]=m):m=e[0];const o=m;if(!o){let u;e[1]!==n?(u=n("details.prompt.notFoundTitle"),e[1]=n,e[2]=u):u=e[2];let d;e[3]!==n?(d=n("details.prompt.missingConnectionDescription"),e[3]=n,e[4]=d):d=e[4];let r;return e[5]!==u||e[6]!==d?(r=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Le,{title:u,description:d})}),e[5]=u,e[6]=d,e[7]=r):r=e[7],r}let a;return e[8]!==l?(a=t.jsx(Re,{children:t.jsx(D.Suspense,{fallback:null,children:t.jsx(zt,{providerId:o,promptId:l})})}),e[8]=l,e[9]=a):a=e[9],a}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=z.c(12),{toolName:l,connectionId:n,siblings:m,onSelectInstance:o,onBack:a}=s,u=W();let d;e[0]!==n?(d={connectionId:n},e[0]=n,e[1]=d):d=e[1];const r=Tt(d);if(!r.isAuthenticated){let p;return e[2]!==r.supportsOAuth||e[3]!==a||e[4]!==u?(p=t.jsx("div",{className:"flex h-full items-center justify-center",children:r.supportsOAuth?t.jsx(rt,{onAuthenticate:()=>a(),buttonText:u("details.tool.goBackToAuthenticate")}):t.jsx(at,{hasReadme:!1})}),e[2]=r.supportsOAuth,e[3]=a,e[4]=u,e[5]=p):p=e[5],p}const i=`${n}:${l}`;let h;return e[6]!==n||e[7]!==o||e[8]!==m||e[9]!==i||e[10]!==l?(h=t.jsx(_t,{toolName:l,connectionId:n,siblings:m,onSelectInstance:o},i),e[6]=n,e[7]=o,e[8]=m,e[9]=i,e[10]=l,e[11]=h):h=e[11],h}function _t({toolName:s,connectionId:e,siblings:l,onSelectInstance:n}){const m=Fe(),o=W(),{replayId:a}=nt({strict:!1}),u=(()=>{if(!a)return null;const c=`replay-${a}`,g=sessionStorage.getItem(c);if(!g)return null;sessionStorage.removeItem(c);try{return JSON.parse(g)}catch{return null}})(),d=(()=>{if(!u)return null;const c={};for(const[g,P]of Object.entries(u))P!==null&&typeof P=="object"?c[g]=JSON.stringify(P,null,2):c[g]=P;return c})(),[r,i]=D.useState(d??{}),[h,p]=D.useState(u?JSON.stringify(u,null,2):"{}"),[x,j]=D.useState(null),[f,b]=D.useState(null),[S,w]=D.useState(null),[C,I]=D.useState(null),[T,$]=D.useState(!1),[v,y]=D.useState(null),{org:k}=xe(),A=Ve(e),q=kt(),B=At(),{openSidePanel:U}=Et(),H=`${e}:${s}`,L=he({connectionId:e,orgId:k.id,orgSlug:k.slug}),O=Pt({client:L}),N=O.data?.tools?.find(c=>c.name===s),E=jt(N?._meta),_=c=>{if(!q)return;const g=Dt(c.content);g.content.length>0&&(U(),q.sendMessage({tiptapDoc:g}))},[R,F]=D.useState("json"),[Q,J]=D.useState(!1);E&&!Q&&(F("ui"),J(!0));const je=N?.inputSchema?.properties,be=je?Object.keys(je):[],G=be.length>0,Z={};if(G&&N?.inputSchema?.properties)for(const c of be)Z[c]=N.inputSchema.required?.includes(c)?"":void 0;const ne=c=>Object.prototype.hasOwnProperty.call(r,c),He=async()=>{$(!0),I(null),j(null),b(null),w(null),y(null);const c=performance.now();try{if(!L)throw new Error("MCP client is not available");const g=G?{...Z,...r}:(()=>{const M=h.trim();if(!M)return{};const V=JSON.parse(M);if(V&&typeof V=="object")return V;throw new Error("Raw JSON input must be an object.")})();G&&N?.inputSchema?.properties&&Object.entries(N.inputSchema.properties).forEach(([M,V])=>{if((V.type==="object"||V.type==="array")&&typeof g[M]=="string")try{g[M]=JSON.parse(g[M])}catch{}else if((V.type==="number"||V.type==="integer")&&typeof g[M]=="string"&&g[M]!==""){const Se=Number(g[M]);Number.isNaN(Se)||(g[M]=Se)}});const P=await L.callTool({name:s,arguments:g}),ee=P.structuredContent??P,Xe=performance.now(),Ze=Math.round(Xe-c);j(ee),b(P),w(g);const et=JSON.stringify(ee),ve=new TextEncoder().encode(et).length;y({duration:`${Ze}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(g){const P=g instanceof Error?g.message:String(g);I(P||"Unknown error occurred");const ee=performance.now();y({duration:`${Math.round(ee-c)}ms`})}finally{$(!1)}},le=(c,g)=>{i(P=>({...P,[c]:g}))},Ke=()=>{j(null),b(null),w(null),I(null),y(null)},We=N?.name??Lt(s),Qe=t.jsx(Ue,{children:t.jsxs(_e,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:k.slug},children:o("details.tool.connections")})})}),t.jsx(oe,{}),A&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:k.slug,appSlug:It(A)},search:{tab:"tools"},children:A.title})})}),t.jsx(oe,{})]}),t.jsx(Y,{children:t.jsx(Je,{children:We})})]})}),Ne=l.length>1&&t.jsxs(Ie,{value:e,onValueChange:n,children:[t.jsx(Te,{className:"h-8 w-auto min-w-[200px]",children:t.jsx($e,{})}),t.jsx(Pe,{children:l.map(c=>t.jsx(de,{value:c.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ee,{icon:c.icon,name:c.title,size:"xs",className:"shrink-0"}),c.title]})},c.id))})]}),Ye=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:o("details.tool.parameters")}),N?.inputSchema?.required&&N.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-destructive",children:"*"})," ",o("details.tool.required")]})]}),t.jsx("div",{className:"space-y-4",children:G&&N?.inputSchema?.properties?Object.entries(N.inputSchema.properties).map(([c,g])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[c,N.inputSchema?.required?.includes(c)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:g.type})]}),g.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:g.description}),g.type==="object"||g.type==="array"?t.jsx(pe,{className:"font-mono text-xs",value:ne(c)?r[c]??"":Z[c]??"",onChange:P=>le(c,P.target.value),placeholder:o("details.tool.enterAsJson",{key:c}),rows:3}):g.type==="boolean"?t.jsxs(Ie,{value:ne(c)?String(r[c]??""):"",onValueChange:P=>le(c,P==="true"),children:[t.jsx(Te,{children:t.jsx($e,{placeholder:o("details.tool.selectTrueOrFalse")})}),t.jsxs(Pe,{children:[t.jsx(de,{value:"true",children:"true"}),t.jsx(de,{value:"false",children:"false"})]})]}):t.jsx(ue,{value:ne(c)?r[c]??"":Z[c]??"",onChange:P=>le(c,P.target.value),placeholder:o("details.tool.enter",{key:c})})]},c)):N?.inputSchema&&!G?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:o("details.tool.rawJsonInput")}),t.jsx(pe,{className:"font-mono text-xs min-h-[120px]",value:h,onChange:c=>p(c.target.value),placeholder:o("details.tool.rawJsonExample")})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:o("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:T?t.jsxs(K,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Ke,children:[t.jsx(mt,{className:"h-3.5 w-3.5"}),o("details.tool.cancel")]}):t.jsxs(K,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:He,children:[t.jsx(Ct,{className:"h-3.5 w-3.5 fill-current"}),o("details.tool.executeTool")]})})]}),Ge=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:o("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[v&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ut,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.duration})]}),v.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(pt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.tokens})]}),v.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(xt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:v.bytes})]}),v.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:v.cost})})]}),E&&t.jsx(St,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(De,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:R==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>F("ui"),children:t.jsx(ft,{size:14})})}),t.jsx(Ae,{children:o("details.tool.interactiveView")})]}),t.jsxs(De,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:R==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>F("json"),children:t.jsx(we,{size:14})})}),t.jsx(Ae,{children:o("details.tool.jsonView")})]})]})})]})]}),C&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(bt,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(yt,{className:"h-4 w-4"}),t.jsx(Nt,{className:"mb-0",children:o("details.tool.executionFailed")})]}),t.jsx(vt,{className:"text-xs text-destructive",children:C})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:E&&R==="ui"&&L?t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx(X,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:o("details.tool.loadingApp")})]})}),children:t.jsx(gt,{resourceURI:E,toolInfo:N?{tool:N}:void 0,toolInput:S??void 0,toolResult:f??void 0,displayMode:"fullscreen",minHeight:Ce.view.minHeight,maxHeight:Ce.view.maxHeight,client:L,onMessage:_,onUpdateModelContext:c=>B?.setAppContext(H,c),onTeardown:()=>B?.clearAppContext(H),className:"h-full"})}):x?t.jsxs(t.Fragment,{children:[t.jsx(Ot,{code:JSON.stringify(x,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(K,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(x,null,2)),lt.success(o("details.tool.copiedToClipboard"))},children:t.jsx(wt,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(we,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:o("details.tool.runToolToSeeResults")})]})})]});return t.jsx(ge,{leading:Qe,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Ee,{icon:A?.icon||null,name:A?.title||s,size:"xl",className:"shrink-0"}),m?t.jsx(ze.Title,{children:s}):t.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground leading-none truncate",children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[O.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):O.isLoading?t.jsx(X,{className:"size-[10px] text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:O.isSuccess?"ready":O.isLoading?"connecting":"error"})]}),t.jsx($t,{annotations:N?.annotations,_meta:N?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:Ne})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:N?.description||"No description available"})]}),l.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:o("details.tool.instance")}),Ne]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Ye}),Ge]})})]})})}function Jt(s){const e=z.c(20),{itemId:l,siblings:n,onBack:m}=s,o=W(),[a,u]=D.useState(n[0]?.id??"");let d;e[0]!==a||e[1]!==n?(d=n.find(x=>x.id===a)?.id??n[0]?.id??"",e[0]=a,e[1]=n,e[2]=d):d=e[2];const r=d;if(!Ve(r||void 0)||!r){let x;e[3]!==o?(x=o("details.tool.connectionNotFound"),e[3]=o,e[4]=x):x=e[4];let j;e[5]!==x?(j=t.jsx("h3",{className:"text-lg font-semibold",children:x}),e[5]=x,e[6]=j):j=e[6];let f;e[7]!==o?(f=o("details.tool.connectionNotFoundMessage"),e[7]=o,e[8]=f):f=e[8];let b;e[9]!==f?(b=t.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[9]=f,e[10]=b):b=e[10];let S;return e[11]!==j||e[12]!==b?(S=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[j,b]})}),e[11]=j,e[12]=b,e[13]=S):S=e[13],S}let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(X,{className:"size-8 text-muted-foreground"})}),e[14]=h):h=e[14];let p;return e[15]!==r||e[16]!==m||e[17]!==n||e[18]!==l?(p=t.jsx(D.Suspense,{fallback:h,children:t.jsx(Ut,{toolName:l,connectionId:r,siblings:n,onSelectInstance:u,onBack:m})}),e[15]=r,e[16]=m,e[17]=n,e[18]=l,e[19]=p):p=e[19],p}const Vt={prompt:Bt};function qt(){const s=z.c(9),e=Be();let l;s[0]===Symbol.for("react.memo_cache_sentinel")?(l={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=l):l=s[0];const n=fe(l),m=decodeURIComponent(n.itemId);let o;s[1]!==n.appSlug?(o={slug:n.appSlug},s[1]=n.appSlug,s[2]=o):o=s[2];const a=qe(o);let u;s[3]!==e.history?(u=()=>{e.history.back()},s[3]=e.history,s[4]=u):u=s[4];const d=u,r=Ht;let i;return s[5]!==d||s[6]!==m||s[7]!==a?(i=t.jsx(Jt,{itemId:m,siblings:a,onBack:d,onUpdate:r}),s[5]=d,s[6]=m,s[7]=a,s[8]=i):i=s[8],i}async function Ht(s){return Promise.resolve()}function Kt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Wt(){const s=z.c(52),e=Be();let l;s[0]===Symbol.for("react.memo_cache_sentinel")?(l={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=l):l=s[0];const n=fe(l),m=W(),o=decodeURIComponent(n.collectionName),a=decodeURIComponent(n.itemId);let u;s[1]!==e.history?(u=()=>{e.history.back()},s[1]=e.history,s[2]=u):u=s[2];const d=u,{org:r}=xe();let i;s[3]!==n.appSlug?(i={slug:n.appSlug},s[3]=n.appSlug,s[4]=i):i=s[4];const p=qe(i)[0]??null,x=p?.id??"",j=x||"no-connection",f=x??null;let b;s[5]!==r.id||s[6]!==r.slug||s[7]!==f?(b={connectionId:f,orgId:r.id,orgSlug:r.slug},s[5]=r.id,s[6]=r.slug,s[7]=f,s[8]=b):b=s[8];const S=he(b),w=Me(j,o,S);let C;s[9]!==w||s[10]!==a?(C=async J=>{a&&await w.update.mutateAsync({id:a,data:J})},s[9]=w,s[10]=a,s[11]=C):C=s[11];const I=C;let T;s[12]!==o?(T=o?.toLowerCase(),s[12]=o,s[13]=T):T=s[13];const $=T,v=$&&Vt[$];let y;s[14]!==o?(y=Kt(o),s[14]=o,s[15]=y):y=s[15];const k=y;let A;s[16]!==r.slug?(A=t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:r.slug},children:"Connections"})})}),s[16]=r.slug,s[17]=A):A=s[17];let q;s[18]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx(oe,{}),s[18]=q):q=s[18];let B;s[19]!==o||s[20]!==p||s[21]!==r.slug||s[22]!==n.appSlug?(B=p&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:r.slug,appSlug:n.appSlug},search:{tab:o},children:p.title})})}),t.jsx(oe,{})]}),s[19]=o,s[20]=p,s[21]=r.slug,s[22]=n.appSlug,s[23]=B):B=s[23];let U;s[24]!==k?(U=t.jsx(Y,{children:t.jsx(Je,{children:k})}),s[24]=k,s[25]=U):U=s[25];let H;s[26]!==B||s[27]!==U||s[28]!==A?(H=t.jsx(Ue,{children:t.jsxs(_e,{children:[A,q,B,U]})}),s[26]=B,s[27]=U,s[28]=A,s[29]=H):H=s[29];const L=H;if(v){let J;return s[30]!==v||s[31]!==d||s[32]!==I||s[33]!==a?(J=t.jsx(v,{itemId:a,onBack:d,onUpdate:I}),s[30]=v,s[31]=d,s[32]=I,s[33]=a,s[34]=J):J=s[34],J}let O;s[35]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(ht,{size:36,className:"text-muted-foreground"}),s[35]=O):O=s[35];let N;s[36]!==m?(N=m("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=m,s[37]=N):N=s[37];let E;s[38]!==m?(E=m("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=m,s[39]=E):E=s[39];let _;s[40]!==m?(_=m("orgs.collectionDetail.goBackButton"),s[40]=m,s[41]=_):_=s[41];let R;s[42]!==d||s[43]!==_?(R={onClick:d,children:_},s[42]=d,s[43]=_,s[44]=R):R=s[44];let F;s[45]!==N||s[46]!==E||s[47]!==R?(F=t.jsx(Rt,{icon:O,title:N,description:E,buttonProps:R}),s[45]=N,s[46]=E,s[47]=R,s[48]=F):F=s[48];let Q;return s[49]!==L||s[50]!==F?(Q=t.jsx(ge,{leading:L,children:F}),s[49]=L,s[50]=F,s[51]=Q):Q=s[51],Q}function Qt(){const s=z.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const l=fe(e);if(decodeURIComponent(l.collectionName)==="tools"){let a;return s[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(qt,{}),s[1]=a):a=s[1],a}let o;return s[2]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(Wt,{}),s[2]=o):o=s[2],o}function Jo(){const s=z.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Re,{children:t.jsx(D.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(X,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Qt,{})})}),s[0]=e):e=s[0],e}export{Jo as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as R,b as S,j as s,G as z,l as A,F as V,B as $,H as E,I as _}from"./index-
|
|
1
|
+
import{c as R,b as S,j as s,G as z,l as A,F as V,B as $,H as E,I as _}from"./index-D-Qb9EKo.js";import{i as I,n as L}from"./ArrowUp-Blhz95Gn.js";import{i as F}from"./Check-Ba60y41Y.js";import{a as O,i as P,c as Y}from"./XClose-CtU5_ALA.js";import{T as G,a as H,b as K,c as W}from"./tooltip-TamJ0pBA.js";import{V as q}from"./view-mode-toggle-BIT4-lg7.js";import{B as J}from"./badge-Dje3gf1p.js";const M=[];function oe(t){const e=R.c(35),{viewMode:i,onViewModeChange:h,sortKey:T,sortDirection:g,onSort:j,sortOptions:B,filters:D}=t,b=B===void 0?M:B,o=D===void 0?M:D,l=S();let v;e[0]!==o?(v=o.filter(U),e[0]=o,e[1]=v):v=e[1];const N=v.length;let r;e[2]!==l?(r=l("collections.collectionDisplayButton.displayAndFilters"),e[2]=l,e[3]=r):r=e[3];let w;e[4]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(O,{size:16}),e[4]=w):w=e[4];let n;e[5]!==N?(n=N>0&&s.jsx(J,{variant:"default",className:"absolute -top-1.5 -right-1.5 h-4 min-w-4 px-1 text-[10px] leading-none",children:N}),e[5]=N,e[6]=n):n=e[6];let a;e[7]!==r||e[8]!==n?(a=s.jsx(G,{asChild:!0,children:s.jsx(V,{asChild:!0,children:s.jsxs($,{variant:"outline",size:"icon",className:"relative","aria-label":r,children:[w,n]})})}),e[7]=r,e[8]=n,e[9]=a):a=e[9];let c;e[10]!==l?(c=l("collections.collectionDisplayButton.displayAndFilters"),e[10]=l,e[11]=c):c=e[11];let d;e[12]!==c?(d=s.jsx(H,{children:c}),e[12]=c,e[13]=d):d=e[13];let x;e[14]!==a||e[15]!==d?(x=s.jsx(K,{children:s.jsxs(W,{children:[a,d]})}),e[14]=a,e[15]=d,e[16]=x):x=e[16];let m;e[17]!==h||e[18]!==i?(m=h&&i&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsx(q,{value:i,onValueChange:h,fullWidth:!0,options:[{value:"table",icon:s.jsx(P,{})},{value:"cards",icon:s.jsx(Y,{})}]})}),e[17]=h,e[18]=i,e[19]=m):m=e[19];let p;e[20]!==j||e[21]!==g||e[22]!==T||e[23]!==b||e[24]!==l?(p=b.length>0&&j&&s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:l("collections.collectionDisplayButton.sortBy")}),b.map(C=>{const k=T===C.id;return s.jsx(z,{onClick:()=>j(C.id),className:A("h-8 px-2 py-0 cursor-pointer",k&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[k&&s.jsx(F,{size:16,className:"text-foreground shrink-0"}),!k&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:C.label}),k&&g&&(g==="asc"?s.jsx(I,{size:16,className:"text-foreground shrink-0"}):s.jsx(L,{size:16,className:"text-foreground shrink-0"}))]})},C.id)})]}),e[20]=j,e[21]=g,e[22]=T,e[23]=b,e[24]=l,e[25]=p):p=e[25];let u;e[26]!==o?(u=o.map(Q),e[26]=o,e[27]=u):u=e[27];let f;e[28]!==m||e[29]!==p||e[30]!==u?(f=s.jsxs(E,{align:"end",className:"w-[200px] p-0 gap-0",children:[m,p,u]}),e[28]=m,e[29]=p,e[30]=u,e[31]=f):f=e[31];let y;return e[32]!==x||e[33]!==f?(y=s.jsxs(_,{children:[x,f]}),e[32]=x,e[33]=f,e[34]=y):y=e[34],y}function Q(t){return s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border last:border-b-0",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:t.label}),t.options.map(e=>{const i=t.value===e.id;return s.jsx(z,{onClick:()=>t.onChange(e.id),className:A("h-8 px-2 py-0 cursor-pointer",i&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[i&&s.jsx(F,{size:16,className:"text-foreground shrink-0"}),!i&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:e.label})]})},e.id)})]},t.label)}function U(t){return t.value!=="ALL"}export{oe as C};
|
|
@@ -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-D-Qb9EKo.js";import{i as C}from"./SearchMd-Bo9C0lON.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-D-Qb9EKo.js";import{T as I,a as R,b as T,c as E,d as H,e as K}from"./table-BEkilohE.js";import{i as W,n as z}from"./ArrowUp-Blhz95Gn.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 g,U as j,j as u,n as h,P as T,b as C,l as b}from"./index-
|
|
1
|
+
import{c as g,U as j,j as u,n as h,P as T,b as C,l as b}from"./index-D-Qb9EKo.js";import{B as v}from"./badge-Dje3gf1p.js";function y(f){const e=g.c(13),{tabs:o,activeTab:t,onTabChange:s,className:m,placement:x}=f,i=x===void 0?"inline":x;let n;if(e[0]!==t||e[1]!==s||e[2]!==o){let l;e[4]!==t||e[5]!==s?(l=c=>{const p=t===c.id;return u.jsxs(h.Tab,{active:p,onClick:()=>s(c.id),children:[c.label,c.count!==void 0&&u.jsx(v,{variant:"secondary",className:b("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",p?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:c.count})]},c.id)},e[4]=t,e[5]=s,e[6]=l):l=e[6],n=o.map(l),e[0]=t,e[1]=s,e[2]=o,e[3]=n}else n=e[3];let r;e[7]!==m||e[8]!==n?(r=u.jsx(h.Tabs,{className:m,children:n}),e[7]=m,e[8]=n,e[9]=r):r=e[9];const a=r;let d;return e[10]!==a||e[11]!==i?(d=i==="page"?u.jsx(T.Toolbar.Left.Portal,{fallback:a,children:a}):a,e[10]=a,e[11]=i,e[12]=d):d=e[12],d}function N(f){const e=g.c(15),{tabs:o,activeTab:t,onTabChange:s,className:m}=f,x=C();let i;e[0]!==x?(i=x("collections.collectionTabs.tabList"),e[0]=x,e[1]=i):i=e[1];let n;e[2]!==m?(n=b("flex items-center gap-2 overflow-x-auto no-scrollbar",m),e[2]=m,e[3]=n):n=e[3];let r;if(e[4]!==t||e[5]!==s||e[6]!==o){let d;e[8]!==t||e[9]!==s?(d=l=>{const c=t===l.id;return u.jsxs("button",{type:"button","aria-pressed":c,onClick:()=>s(l.id),className:b("h-7 px-2 text-sm rounded-lg border border-input transition-colors inline-flex gap-1.5 items-center",c&&"bg-accent border-border text-foreground",!c&&"bg-transparent text-muted-foreground hover:border-border hover:bg-accent/50 hover:text-foreground"),children:[l.label,l.count!==void 0&&u.jsx(v,{variant:"secondary",className:b("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",c?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:l.count})]},l.id)},e[8]=t,e[9]=s,e[10]=d):d=e[10],r=o.map(d),e[4]=t,e[5]=s,e[6]=o,e[7]=r}else r=e[7];let a;return e[11]!==i||e[12]!==n||e[13]!==r?(a=u.jsx("nav",{"aria-label":i,className:n,children:r}),e[11]=i,e[12]=n,e[13]=r,e[14]=a):a=e[14],a}function w(f){const e=g.c(3),o=j();let t;return e[0]!==o||e[1]!==f?(t=o?u.jsx(y,{...f}):u.jsx(N,{...f}),e[0]=o,e[1]=f,e[2]=t):t=e[2],t}export{w as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as J,r as K,j as s,l as y,B as Q}from"./index-
|
|
1
|
+
import{c as J,r as K,j as s,l as y,B as Q}from"./index-D-Qb9EKo.js";import{i as U}from"./Check-Ba60y41Y.js";import{i as V}from"./Tool01-rptoyApF.js";import{e as W,C as X,b as Y,a as Z,c as _,d as ee}from"./command-BiVTlFnj.js";import{a as se,P as te,b as le}from"./popover-C2l1C5I5.js";function ne(q){const e=J.c(45),{options:j,value:l,onChange:v,placeholder:R,triggerClassName:$,contentClassName:N,width:A,renderTrigger:F,renderItem:r,emptyMessage:G,searchPlaceholder:L,filter:S,renderSearchAction:w}=q,z=R===void 0?"Select...":R,D=A===void 0?"w-[200px]":A,P=G===void 0?"No results found.":G,E=L===void 0?"Search...":L;let C;e[0]!==l?(C=x=>x.value===l,e[0]=l,e[1]=C):C=e[1];const T=j.find(C),[I,t]=K.useState(!1),O=te,B=se,H=!0,M=F?s.jsx("div",{className:y("cursor-pointer",$),children:F(T)}):s.jsxs(Q,{variant:"outline",role:"combobox",className:y("justify-between",D,$),children:[T?T.label:z,s.jsx(V,{className:"opacity-50"})]});let o;e[2]!==B||e[3]!==M?(o=s.jsx(B,{asChild:H,children:M}),e[2]=B,e[3]=M,e[4]=o):o=e[4];let i;e[5]!==N?(i=y("p-0",N),e[5]=N,e[6]=i):i=e[6];let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g={width:"var(--radix-popover-trigger-width)"},e[7]=g):g=e[7];let c;e[8]!==w||e[9]!==t?(c=w?.(()=>t(!1)),e[8]=w,e[9]=t,e[10]=c):c=e[10];let n;e[11]!==E||e[12]!==c?(n=s.jsx(W,{placeholder:E,className:"h-9",action:c}),e[11]=E,e[12]=c,e[13]=n):n=e[13];let m;e[14]!==P?(m=s.jsx(X,{children:P}),e[14]=P,e[15]=m):m=e[15];let d;if(e[16]!==v||e[17]!==j||e[18]!==r||e[19]!==t||e[20]!==l){let x;e[22]!==v||e[23]!==r||e[24]!==t||e[25]!==l?(x=a=>{const k=l===a.value;return s.jsx(Y,{value:a.label,onSelect:()=>{v(a.value===l?"":a.value),t(!1)},children:r?r(a,k):s.jsxs(s.Fragment,{children:[a.label,s.jsx(U,{className:y("ml-auto",k?"opacity-100":"opacity-0")})]})},a.value)},e[22]=v,e[23]=r,e[24]=t,e[25]=l,e[26]=x):x=e[26],d=j.map(x),e[16]=v,e[17]=j,e[18]=r,e[19]=t,e[20]=l,e[21]=d}else d=e[21];let h;e[27]!==d?(h=s.jsx(Z,{children:d}),e[27]=d,e[28]=h):h=e[28];let p;e[29]!==m||e[30]!==h?(p=s.jsxs(_,{children:[m,h]}),e[29]=m,e[30]=h,e[31]=p):p=e[31];let f;e[32]!==S||e[33]!==n||e[34]!==p?(f=s.jsxs(ee,{filter:S,children:[n,p]}),e[32]=S,e[33]=n,e[34]=p,e[35]=f):f=e[35];let u;e[36]!==f||e[37]!==i?(u=s.jsx(le,{className:i,style:g,children:f}),e[36]=f,e[37]=i,e[38]=u):u=e[38];let b;return e[39]!==O||e[40]!==I||e[41]!==t||e[42]!==u||e[43]!==o?(b=s.jsxs(O,{open:I,onOpenChange:t,children:[o,u]}),e[39]=O,e[40]=I,e[41]=t,e[42]=u,e[43]=o,e[44]=b):b=e[44],b}export{ne as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,l as u,j as n,aD as j}from"./index-
|
|
1
|
+
import{c as f,l as u,j as n,aD as j}from"./index-D-Qb9EKo.js";import{_ as x}from"./index-CENDMkD1.js";import{D as b,d as w,h as y,c as C,b as D}from"./dialog-BH40cz5f.js";import{i as z}from"./SearchMd-Bo9C0lON.js";function $(a){const e=f.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 l;e[3]!==t?(l=u("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(x,{"data-slot":"command",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function R(a){const e=f.c(28);let t,s,l,o,g,i,d;e[0]!==a?({title:i,description:d,children:t,className:s,filter:l,shouldFilter:g,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=g,e[6]=i,e[7]=d):(t=e[1],s=e[2],l=e[3],o=e[4],g=e[5],i=e[6],d=e[7]);const p=i===void 0?"Command Palette":i,m=d===void 0?"Search for a command to run...":d;let r;e[8]!==p?(r=n.jsx(w,{children:p}),e[8]=p,e[9]=r):r=e[9];let c;e[10]!==m?(c=n.jsx(y,{children:m}),e[10]=m,e[11]=c):c=e[11];let h;e[12]!==r||e[13]!==c?(h=n.jsxs(C,{className:"sr-only",children:[r,c]}),e[12]=r,e[13]=c,e[14]=h):h=e[14];let _;e[15]!==s?(_=u("overflow-hidden p-0",s),e[15]=s,e[16]=_):_=e[16];let v;e[17]!==t||e[18]!==l||e[19]!==g?(v=n.jsx($,{filter:l,shouldFilter:g,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]=l,e[19]=g,e[20]=v):v=e[20];let k;e[21]!==_||e[22]!==v?(k=n.jsx(D,{className:_,closeButtonClassName:"hidden",children:v}),e[21]=_,e[22]=v,e[23]=k):k=e[23];let N;return e[24]!==o||e[25]!==h||e[26]!==k?(N=n.jsxs(b,{...o,children:[h,k]}),e[24]=o,e[25]=h,e[26]=k,e[27]=N):N=e[27],N}function V(a){const e=f.c(18);let t,s,l,o;e[0]!==a?({className:s,size:o,action:t,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);const i=(o===void 0?"default":o)==="sm"?"h-9":"h-10";let d;e[5]!==i?(d=u("flex items-center gap-2 border-b px-3",i),e[5]=i,e[6]=d):d=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(z,{className:"size-4 shrink-0 text-muted-foreground"}),e[7]=p):p=e[7];let m;e[8]!==s||e[9]!==i?(m=u("placeholder:text-muted-foreground flex w-full rounded-md bg-transparent classic:py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",i,s),e[8]=s,e[9]=i,e[10]=m):m=e[10];let r;e[11]!==l||e[12]!==m?(r=n.jsx(x.Input,{"data-slot":"command-input",className:m,...l}),e[11]=l,e[12]=m,e[13]=r):r=e[13];let c;return e[14]!==t||e[15]!==d||e[16]!==r?(c=n.jsxs("div",{"data-slot":"command-input-wrapper",className:d,children:[p,r,t]}),e[14]=t,e[15]=d,e[16]=r,e[17]=c):c=e[17],c}function B(a){const e=f.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 l;e[3]!==t?(l=u("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(x.List,{"data-slot":"command-list",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function F(a){const e=f.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=n.jsx(x.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 H(a){const e=f.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 l;e[3]!==t?(l=u("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]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(x.Group,{"data-slot":"command-group",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}function P(a){const e=f.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 l;e[3]!==t?(l=u("bg-border -mx-1 h-px",t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(x.Separator,{"data-slot":"command-separator",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}const I=j("[&_svg:not([class*='text-'])]:text-muted-foreground relative flex compact: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"}},defaultVariants:{highlight:"selected"}});function T(a){const e=f.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 l;e[3]!==t?(l=u(I(),t),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o=n.jsx(x.Item,{"data-slot":"command-item",className:l,...s}),e[5]=s,e[6]=l,e[7]=o):o=e[7],o}export{F as C,H as a,T as b,B as c,$ as d,V as e,R as f,I as g,P as h};
|
package/dist/client/assets/{companion-mcps-section-QvAZIDGQ.js → companion-mcps-section-EeMQUH2t.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as _,r as T,l as Q,j as s,Q as Y,E as Z,b as U,a as ee,z as te,B as ne}from"./index-
|
|
1
|
+
import{c as _,r as T,l as Q,j as s,Q as Y,E as Z,b as U,a as ee,z as te,B as ne}from"./index-D-Qb9EKo.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-D5ISNy1u.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-DOaPRfBo.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 H="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:H,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:H,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),[z,D]=T.useState(null),P=he;let E,R,C,k,K,O,I,w,S,v;if(e[17]!==z||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),G=m.filter(xe),J=g||($.length>0?$.every(P):m.length===0||m.some(P));if(d?.(J),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:z,onAutoOpenConfigHandled:()=>D(F=>F===h.fieldKey?null:F),onConnect:()=>{X()},onDisconnect:()=>{j(h)}},h.fieldKey)};R=H,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=[...$,...G].map(W)}e[17]=z,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,4 +1,4 @@
|
|
|
1
|
-
import{c as _,b as B,r as D,l as ee,j as s,fr as te,Y as se,ad as ne,Z as ie,B as F,t as Y,eL as oe,dX as le,al as ae}from"./index-
|
|
1
|
+
import{c as _,b as B,r as D,l as ee,j as s,fr as te,Y as se,ad as ne,Z as ie,B as F,t as Y,eL as oe,dX as le,al as ae}from"./index-D-Qb9EKo.js";import{a as re,A as ce}from"./alert-BT3DZGcd.js";import{a as de,b as ue,c as V,d as me,S as pe}from"./select-BByR5Z_4.js";import{T as fe,c as xe,a as ge,b as he}from"./tabs-Dd2tckYN.js";import{u as q}from"./use-copy--dgNfA-q.js";import{i as J}from"./Check-Ba60y41Y.js";import{a as Z}from"./Copy01-ps1GrLwt.js";import{i as ye}from"./Key01-DFcPORPA.js";import{i as Ce}from"./Link01-Bk8fUFT0.js";import{C as je,a as be,b as ve}from"./client-icons-1o_GEzRa.js";import{u as we,a as Ne,A as $e}from"./api-keys-Bi20vSIr.js";import{R as ke}from"./require-capability-BylXqMPr.js";import"./index-6J38YLa6.js";import"./ChevronUp-BKTM5kuE.js";import"./AlertCircle-Du4pSpAv.js";import"./Plus-C1bAoYy_.js";import"./Trash01-8P2mehkt.js";import"./alert-dialog-DdszU1Q8.js";import"./dialog-BH40cz5f.js";import"./X-Bcv3LM3l.js";import"./input-CuAG4MMc.js";import"./label-BBoHKfq-.js";import"./use-mcp-client-D5ISNy1u.js";import"./auth-D02289MQ.js";import"./access-gate-CiVrL403.js";import"./capability-load-error-1O-8RPcj.js";function Se(){return(typeof window>"u"?"":window.location.hostname||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"studio"}function Ke(t){return`${typeof window>"u"?"http://localhost:3000":window.location.origin}/api/${t}/mcp/self`}function _e({client:t,mode:e,url:r,apiKey:c}){const i=c??"<paste-your-api-key>",a=Se();if(t==="claude-code")return e==="oauth"?{language:"bash",code:`claude mcp add --transport http --scope user ${a} ${r}`}:{language:"bash",code:`claude mcp add --transport http --scope user ${a} ${r} \\
|
|
2
2
|
--header "Authorization: Bearer ${i}"`};if(t==="cursor"){const n={url:r};return e==="api-key"&&(n.headers={Authorization:`Bearer ${i}`}),{language:"json",pathHint:"~/.cursor/mcp.json",code:JSON.stringify({mcpServers:{[a]:n}},null,2)}}if(t==="codex"){const n=[`[mcp_servers.${a}]`,`url = "${r}"`];return e==="api-key"&&n.push(`http_headers = { "Authorization" = "Bearer ${i}" }`),{language:"toml",pathHint:"~/.codex/config.toml",code:n.join(`
|
|
3
3
|
`)}}return e==="oauth"?{language:"text",code:`${r}
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,b as N,j as s,a8 as w,al as k,B as y}from"./index-
|
|
1
|
+
import{c as v,b as N,j as s,a8 as w,al as k,B as y}from"./index-D-Qb9EKo.js";import{i as z}from"./X-Bcv3LM3l.js";import{aB as _,at as C}from"./agent-icon-DGZEAm9H.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 A(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(z,{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(k,{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 B(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(y,{type:"button",size:"lg",className:"h-auto min-h-12 w-full whitespace-normal classic:rounded-lg 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{A as C,B as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ao as o,bN as a,bO as t,ap as e,bP as i,bQ as r,cW as p,dB as b,cS as m}from"./index-
|
|
1
|
+
import{ao as o,bN as a,bO as t,ap as e,bP as i,bQ as r,cW as p,dB as b,cS as m}from"./index-D-Qb9EKo.js";const h=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:p("object"),properties:i(e(),r()).optional(),required:t(e()).optional()}).catchall(r()),_=b.extend({inputSchema:s,outputSchema:s.optional()}),f=o({headers:i(e(),e()).optional()}),g=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"),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:m([g,f]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:h.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(_).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();function T(n){return n!=null&&"command"in n}function y(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}export{h as O,T as i,y as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as M,Y as S,a4 as $,K as F,a6 as R,b as K,l as A,j as c,eL as q}from"./index-
|
|
1
|
+
import{c as M,Y as S,a4 as $,K as F,a6 as R,b as K,l as A,j as c,eL as q}from"./index-D-Qb9EKo.js";import{u as O}from"./useInfiniteQuery-aO3Bnwb-.js";import{g as D}from"./connection-slug-CITJ0kGN.js";import{I as Y}from"./integration-icon-jMu9bsqq.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:L}=I;return o.call("COLLECTION_REGISTRY_APP_LIST",{limit:24,cursor:L,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(V)??[],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 V(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,L=o?0:void 0,T=o&&i!==void 0?i:void 0;let g;e[3]!==o?(g=o?_=>{_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.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(Y,{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]!==L||e[40]!==T||e[41]!==g?(E=c.jsx(q,{className:d,onClick:o,role:I,tabIndex:L,"aria-pressed":T,onKeyDown:g,children:w}),e[35]=o,e[36]=w,e[37]=d,e[38]=I,e[39]=L,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};
|