decocms 4.367.0 → 4.367.2
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-lddbBWh0.js → AlertCircle-rRQrnsQT.js} +1 -1
- package/dist/client/assets/{AreaChart-DKAyw_K7.js → AreaChart-CfdWNyEQ.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DDPJQXhG.js → ArrowLeft-BZ_V0Q9t.js} +1 -1
- package/dist/client/assets/{ArrowRight-Cm4rUCam.js → ArrowRight-DLmMx1GH.js} +1 -1
- package/dist/client/assets/{ArrowUp-BlHEAyyd.js → ArrowUp-DhMsgJkj.js} +1 -1
- package/dist/client/assets/{Check-B2FZLF1O.js → Check-jwHdO8X-.js} +1 -1
- package/dist/client/assets/{CheckCircle-2GspG_XT.js → CheckCircle-BXhLNUG6.js} +1 -1
- package/dist/client/assets/{ChevronRight-byX-3L9r.js → ChevronRight-qjdwy3ht.js} +1 -1
- package/dist/client/assets/{ChevronUp-DgIot4i7.js → ChevronUp-DUyCnbNx.js} +1 -1
- package/dist/client/assets/{Copy01-DN3tqM8L.js → Copy01-Ba_DXyYG.js} +1 -1
- package/dist/client/assets/{CreditCard01-wo9mx3CN.js → CreditCard01-D8ve3i2_.js} +1 -1
- package/dist/client/assets/{Database01-BsiMLwmb.js → Database01-CKtQnfwM.js} +1 -1
- package/dist/client/assets/{DotsVertical-BFzwtdUn.js → DotsVertical-2ZMqd-18.js} +1 -1
- package/dist/client/assets/{Download01-DzANKKkw.js → Download01-CoH-UuQa.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-CFHTziNp.js → ErrorBarContext-B_FyGPF3.js} +1 -1
- package/dist/client/assets/{Eye-DFJEK6aw.js → Eye-BpslXSuU.js} +1 -1
- package/dist/client/assets/{File02-BE1-Eszh.js → File02-aDup41Qr.js} +1 -1
- package/dist/client/assets/{GitBranch01-CI-WDVa2.js → GitBranch01-DzU0sPJc.js} +1 -1
- package/dist/client/assets/{Globe01-BkG0TYp3.js → Globe01-CDkkg2Cy.js} +1 -1
- package/dist/client/assets/{HardDrive-DuIbEWGl.js → HardDrive-DNp6sr7j.js} +1 -1
- package/dist/client/assets/{Image01-CUco8f4C.js → Image01-DZX0wWyU.js} +1 -1
- package/dist/client/assets/{Key01-Ctr214Q3.js → Key01-D2uCgYpN.js} +1 -1
- package/dist/client/assets/{Link01-CyA36bfv.js → Link01-B6QrVU3H.js} +1 -1
- package/dist/client/assets/{LinkExternal01-EKFZjMJY.js → LinkExternal01-CKgmWkkp.js} +1 -1
- package/dist/client/assets/{MessageCircle01-BMp3tiX2.js → MessageCircle01-DOh30ucD.js} +1 -1
- package/dist/client/assets/{Monitor01-C8W3wbFB.js → Monitor01-DT1NSOaN.js} +1 -1
- package/dist/client/assets/{Package-CpB6vYlT.js → Package-DZFJNJtq.js} +1 -1
- package/dist/client/assets/{Palette-CBU77GJ1.js → Palette-D9x-keux.js} +1 -1
- package/dist/client/assets/{Play-Uhe4ebTG.js → Play-nvjmkgl9.js} +1 -1
- package/dist/client/assets/{Plus-BiYlKLxl.js → Plus-p771xfxl.js} +1 -1
- package/dist/client/assets/{Printer-CSBhu2Re.js → Printer-CEzVuZMa.js} +1 -1
- package/dist/client/assets/{SearchLg-CN4JJES9.js → SearchLg-C5H_nx3W.js} +1 -1
- package/dist/client/assets/{SearchMd-C6NFUW36.js → SearchMd-BnbGkmUb.js} +1 -1
- package/dist/client/assets/{Sector-UzdbcO_5.js → Sector-B0EhClQm.js} +1 -1
- package/dist/client/assets/{Settings02-CqMjj8Oq.js → Settings02-CFq2ETVr.js} +1 -1
- package/dist/client/assets/{Share07-DH92YWbU.js → Share07-hoEgdikb.js} +1 -1
- package/dist/client/assets/{Shield01-Cm4rFm8N.js → Shield01-C_kVJsrZ.js} +1 -1
- package/dist/client/assets/{Stars01-BxBiTUsk.js → Stars01-jOH0yCKk.js} +1 -1
- package/dist/client/assets/{Sun-sJn8WeT-.js → Sun-BvckUZh0.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BT-naaH0.js → SwitchHorizontal01-DVbyXy1C.js} +1 -1
- package/dist/client/assets/{Tool01-0YKAjW__.js → Tool01-Co_K8urR.js} +1 -1
- package/dist/client/assets/{Tool02-Bco71KeO.js → Tool02-BHzOpk5z.js} +1 -1
- package/dist/client/assets/{Trash01-Dp2yrMxt.js → Trash01-B1H2nTDv.js} +1 -1
- package/dist/client/assets/{TrendUp01-D1K9L0xP.js → TrendUp01-Cxcr4-0l.js} +1 -1
- package/dist/client/assets/{Upload01-BUf7qRrI.js → Upload01-CiNRxnSv.js} +1 -1
- package/dist/client/assets/{User01-Da1WckIS.js → User01-_uMnR0k7.js} +1 -1
- package/dist/client/assets/{UserSquare-XPgiOUWe.js → UserSquare-SK2C9JwY.js} +1 -1
- package/dist/client/assets/{Users01-BsVs6-8w.js → Users01-C8QAjTFh.js} +1 -1
- package/dist/client/assets/{Users03-DL_upBh-.js → Users03-BsQdFF8i.js} +1 -1
- package/dist/client/assets/{X-D6lVPJzO.js → X-MotBpvxg.js} +1 -1
- package/dist/client/assets/{XCircle-DReUcNBS.js → XCircle-mKrW5aBV.js} +1 -1
- package/dist/client/assets/{XClose-DYRx__Hg.js → XClose-nT83baSx.js} +1 -1
- package/dist/client/assets/{Zap-CCglgveU.js → Zap-DlMFCTS-.js} +1 -1
- package/dist/client/assets/{ZoomOut-BlidBzgG.js → ZoomOut-DbeadNC9.js} +1 -1
- package/dist/client/assets/{access-gate-BYH1blGF.js → access-gate-DB08KYAT.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BBa9lb3g.js → add-connection-dialog-COIUcaiE.js} +1 -1
- package/dist/client/assets/{agent-analytics-CBzZ6fW4.js → agent-analytics-ByqAUaQE.js} +1 -1
- package/dist/client/assets/agent-app-BKrsF-WP.js +1 -0
- package/dist/client/assets/{agent-assets-1uSvOIMs.js → agent-assets-DnGvnA0Q.js} +1 -1
- package/dist/client/assets/{agent-automation-DlziYH2t.js → agent-automation-iBayfasb.js} +1 -1
- package/dist/client/assets/{agent-automations-qFcyvr7g.js → agent-automations-DHGdzWCZ.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-BT8vowWZ.js → agent-connect-sources-bgjFIcuF.js} +1 -1
- package/dist/client/assets/agent-deck-UyiKhWO_.js +1 -0
- package/dist/client/assets/{agent-e2e-W6x_fKn9.js → agent-e2e-AC5zIMUC.js} +1 -1
- package/dist/client/assets/agent-file-B4OnBR_y.js +1 -0
- package/dist/client/assets/{agent-git-CMGleuHk.js → agent-git-DAYDiQ9u.js} +1 -1
- package/dist/client/assets/{agent-hosting-Bs-VQ5Tn.js → agent-hosting-Cf3SmUBN.js} +1 -1
- package/dist/client/assets/{agent-icon-ByB43Wsk.js → agent-icon-DEBX0Uac.js} +1 -1
- package/dist/client/assets/agent-library-file-DdleqgF9.js +1 -0
- package/dist/client/assets/{agent-monitor-BU7G1axZ.js → agent-monitor-d85zzawa.js} +1 -1
- package/dist/client/assets/{agent-overview-7sMywsGa.js → agent-overview-Csd64fRN.js} +1 -1
- package/dist/client/assets/agent-settings-CplZAGJ4.js +1 -0
- package/dist/client/assets/{agent-site-editor-Dl6mOkZF.js → agent-site-editor-BcVdz-Ob.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-7lKpRg2_.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-rdCLpJuB.js → agent-site-editor-content-B5eM-F4q.js} +2 -2
- package/dist/client/assets/{agent-site-editor-preview-D--whZiK.js → agent-site-editor-preview-CMLkSP5C.js} +20 -6
- package/dist/client/assets/agent-view-_FqH7P3W.js +1 -0
- package/dist/client/assets/{agent-view-guard-D33PMiXB.js → agent-view-guard-DFIgCPk2.js} +1 -1
- package/dist/client/assets/{agents-list-DIdvmd8H.js → agents-list-z4xSfcE9.js} +1 -1
- package/dist/client/assets/{ai-providers-CA1xaqJ_.js → ai-providers-DcQSO7lc.js} +1 -1
- package/dist/client/assets/{alert-DU6nnBIl.js → alert-CpXgpduJ.js} +1 -1
- package/dist/client/assets/{alert-dialog-OWb4AclI.js → alert-dialog-jSpWtFPv.js} +1 -1
- package/dist/client/assets/{api-keys-BriZrFLd.js → api-keys-DYNE9_r9.js} +1 -1
- package/dist/client/assets/api-keys-DqcXXCDi.js +1 -0
- package/dist/client/assets/app-editor-IwdF7Nlj.js +1 -0
- package/dist/client/assets/{asset-utils-C0vjSwsk.js → asset-utils-CvLbIoHR.js} +1 -1
- package/dist/client/assets/{auth-CJPyBAbS.js → auth-DekSX5bd.js} +1 -1
- package/dist/client/assets/{auth-catchall-BILSMXXP.js → auth-catchall-BsRxFmiX.js} +1 -1
- package/dist/client/assets/{auth-entry-7DJ--D3o.js → auth-entry-C-RAgds2.js} +1 -1
- package/dist/client/assets/{auth-split-layout-fmBItRen.js → auth-split-layout-CuV5bVjY.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-B8kXJK6h.js → authenticate-and-persist-oauth-3J_jvNQZ.js} +1 -1
- package/dist/client/assets/{automation-list-row-BUB2WmQy.js → automation-list-row-BDwOWXYr.js} +1 -1
- package/dist/client/assets/{automation-runs-CQxYoSpJ.js → automation-runs-BXCUbDGI.js} +1 -1
- package/dist/client/assets/{automations-DxWDAERW.js → automations-BAHyqM26.js} +1 -1
- package/dist/client/assets/{autosend-CB-A5Oif.js → autosend-Cp5vfPIB.js} +1 -1
- package/dist/client/assets/{avatar-Dr6RkrBb.js → avatar-Db6Ad7E2.js} +1 -1
- package/dist/client/assets/{badge-o8ORXLbv.js → badge-cq278MQI.js} +1 -1
- package/dist/client/assets/{block-document-CWUKuN2J.js → block-document-C2UBIqOL.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-yyXFM1pu.js → blocks-preview-workspace-context-E_vt1Y-f.js} +1 -1
- package/dist/client/assets/{breadcrumb-DjBKZboG.js → breadcrumb-CHaXT_pT.js} +1 -1
- package/dist/client/assets/{buckets-D3fP10lQ.js → buckets-D5G_Ai7S.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-D6CNE90Q.js → build-improve-prompt-doc-sYHKN5HP.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-DlUo9-SK.js → bulk-category-panel-D_9ku8X6.js} +1 -1
- package/dist/client/assets/{calendar-jFNLP3nP.js → calendar-DnxVN00Q.js} +1 -1
- package/dist/client/assets/{capability-load-error-3FwAUk2n.js → capability-load-error-DIrZadSW.js} +1 -1
- package/dist/client/assets/{cards-Lh-AxhUg.js → cards-BHWXUZZV.js} +1 -1
- package/dist/client/assets/category-editor-DwuLsa5M.js +1 -0
- package/dist/client/assets/{chart-C3EhY9Id.js → chart-C4HFqNub.js} +1 -1
- package/dist/client/assets/{chat-context-BmwCoPvA.js → chat-context-g3Ysek-D.js} +1 -1
- package/dist/client/assets/{chat-draft-Bpg7GYsG.js → chat-draft-DZWcf9MH.js} +1 -1
- package/dist/client/assets/{checkbox-rssR-x4C.js → checkbox-CtSIa9d0.js} +1 -1
- package/dist/client/assets/{choose-editor-BoaRUynl.js → choose-editor-DSx37Ddq.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DoXjcGUB.js → cli-auth-success-CLpiF4Ff.js} +1 -1
- package/dist/client/assets/{client-icons-CsD5fxts.js → client-icons-CQ0ZvrpV.js} +1 -1
- package/dist/client/assets/{collapsible-MEYp44rr.js → collapsible-S74ix7rA.js} +1 -1
- package/dist/client/assets/{collection-detail-BTrYASGj.js → collection-detail-W3NJKwhu.js} +1 -1
- package/dist/client/assets/{collection-display-button-B9zzr0DV.js → collection-display-button-saVrgyWc.js} +1 -1
- package/dist/client/assets/{collection-search-Cp-PQjLX.js → collection-search-Cw88RONI.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BX-5C3VA.js → collection-table-wrapper-syS0MeUq.js} +1 -1
- package/dist/client/assets/{collection-tabs-Bhq66UPx.js → collection-tabs-DjIYbOQ5.js} +1 -1
- package/dist/client/assets/{command-CuPZrFd2.js → command-Cnr_FK8b.js} +1 -1
- package/dist/client/assets/{command-palette-store-CQCOE6E9.js → command-palette-store-DQWkqX24.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-ChtNCiV-.js → commerce-onboarding-BKBw1cRC.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-JuBB0H1F.js → companion-mcps-section-QuNNjI2b.js} +1 -1
- package/dist/client/assets/{connect-AnJHgcIC.js → connect-CBV8hDBb.js} +1 -1
- package/dist/client/assets/{connect-layout-uMSVoZmd.js → connect-layout-Cj9Ty8o6.js} +1 -1
- package/dist/client/assets/{connection-_wLcpevb.js → connection-Cl0tFuDE.js} +1 -1
- package/dist/client/assets/{connection-card-BD4O904L.js → connection-card-CtC01b_S.js} +1 -1
- package/dist/client/assets/{connection-detail-Dq9rhx2O.js → connection-detail-COtd6Ff1.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CHUbN92C.js → connection-form-helpers-BGax9Typ.js} +1 -1
- package/dist/client/assets/{connections-C-e6hoJv.js → connections-Cxr9eDlU.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-AyZ1qfrO.js → create-organization-dialog-B4v62Y0V.js} +1 -1
- package/dist/client/assets/{decofile-api-f5Z3Fh46.js → decofile-api-epQGqIXQ.js} +1 -1
- package/dist/client/assets/{decopilot-DmAS8lky.js → decopilot-D-EmElSn.js} +1 -1
- package/dist/client/assets/{dialog-CDr-V9u8.js → dialog-BbF8R0Rt.js} +1 -1
- package/dist/client/assets/{discover-CRB51pJ_.js → discover-CkgfHo2F.js} +1 -1
- package/dist/client/assets/{domain-settings-gVa1mMOx.js → domain-settings-D5auGtqN.js} +1 -1
- package/dist/client/assets/{download-app-dialog-rP5j-4Hl.js → download-app-dialog-CTBm_E5V.js} +1 -1
- package/dist/client/assets/{drawer-DCRH2Qpg.js → drawer-BBk33oYJ.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CvTP8MXO.js → dropdown-menu-BS01WOe-.js} +1 -1
- package/dist/client/assets/{editor-BXo85dw5.js → editor-DS43SgZS.js} +1 -1
- package/dist/client/assets/{empty-state-0Ti4PZnG.js → empty-state-BFgGw8Jd.js} +1 -1
- package/dist/client/assets/{empty-state-3JGStYdL.js → empty-state-CNNGduB2.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DfDSW6rF.js → extract-connection-data-CulqgUEu.js} +1 -1
- package/dist/client/assets/{feature-gate-_qHluhhA.js → feature-gate-Bjx-4ie7.js} +1 -1
- package/dist/client/assets/{feature-paywall-C0IUXXGE.js → feature-paywall-BFqNEmgI.js} +1 -1
- package/dist/client/assets/{file-explorer-DIqSzJnZ.js → file-explorer-DKmwRzTp.js} +1 -1
- package/dist/client/assets/{file-preview-4BjNg9D7.js → file-preview-ivFLf1WP.js} +1 -1
- package/dist/client/assets/{file-share-button-CKeISPD2.js → file-share-button-DvzGz33j.js} +1 -1
- package/dist/client/assets/{file-type-icon-B5ajUaH0.js → file-type-icon-B-E6HvV1.js} +1 -1
- package/dist/client/assets/{folder-icon-DhN6dyAf.js → folder-icon-Bjly98Qc.js} +1 -1
- package/dist/client/assets/{form-DxDjuvl5.js → form-Cq6wKFPC.js} +1 -1
- package/dist/client/assets/{gateway-client-DboI1W5S.js → gateway-client-BrWtEU1u.js} +1 -1
- package/dist/client/assets/{general-CJYuoUO5.js → general-CbF61Hyu.js} +1 -1
- package/dist/client/assets/{github-icon-D8EPSRUD.js → github-icon--lTAh1jj.js} +1 -1
- package/dist/client/assets/{home-EmaTOsm4.js → home-uOOuFeme.js} +1 -1
- package/dist/client/assets/{hooks-DWxJwjQc.js → hooks-BECLyGBb.js} +1 -1
- package/dist/client/assets/{hooks-Rl0qRFjy.js → hooks-BU6oBSHV.js} +1 -1
- package/dist/client/assets/{index-BoL7Aq4U.js → index-8f5lsphO.js} +1 -1
- package/dist/client/assets/{index-C2k5rbY0.js → index-BOZLd_mz.js} +1 -1
- package/dist/client/assets/{index-Bt0u5D-K.js → index-BSRzECMD.js} +1 -1
- package/dist/client/assets/{index-CLlne17T.js → index-C6mMoKV9.js} +2 -2
- package/dist/client/assets/{index-CGenpwLF.js → index-CAThN-6U.js} +1 -1
- package/dist/client/assets/{index-Cir1rvR_.js → index-CbsAifRT.js} +1 -1
- package/dist/client/assets/{index-BYBuvEpZ.js → index-CexxzinB.js} +1 -1
- package/dist/client/assets/{index-TJxYXD6j.js → index-D-LZ1OFU.js} +1 -1
- package/dist/client/assets/{index-Dy8qHvsj.js → index-D05N9gl5.js} +1 -1
- package/dist/client/assets/{index-Bo7i1ufS.js → index-D7nIUPsf.js} +1 -1
- package/dist/client/assets/{index-1nNyw18J.js → index-DQY7PyCl.js} +1 -1
- package/dist/client/assets/{index-Ccua9zYy.js → index-DWaEFd6i.js} +1 -1
- package/dist/client/assets/{index-Do5lCsEj.js → index-Dnovg-Ty.js} +1 -1
- package/dist/client/assets/{index-DTkDXM1A.js → index-Dq-6H-UD.js} +1 -1
- package/dist/client/assets/{index-Biw-u0ne.js → index-eO9HPkdF.js} +1 -1
- package/dist/client/assets/{index-redirect-C-LJ2IxB.js → index-redirect-BJFYUP0H.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Q0vfsI8m.js → infiniteQueryObserver-8SjYC_ek.js} +1 -1
- package/dist/client/assets/{infra-billing-C3BRkhFd.js → infra-billing-DfO1Oemo.js} +1 -1
- package/dist/client/assets/{input-CP_e0ZMg.js → input-CZquufhh.js} +1 -1
- package/dist/client/assets/{input-DaHZvHYb.js → input-Dm5tdFv-.js} +1 -1
- package/dist/client/assets/{input-dbYO6Ois.js → input-LjvMOQDt.js} +1 -1
- package/dist/client/assets/{integration-icon-Bd7DOoer.js → integration-icon-Xt_LxCp3.js} +1 -1
- package/dist/client/assets/{label-Lvgg69zF.js → label-BdNnPzHo.js} +1 -1
- package/dist/client/assets/{last-preview-page-Dmtdjb2d.js → last-preview-page-BZLtgGkm.js} +1 -1
- package/dist/client/assets/{layout-C0CNJ4xY.js → layout-B1u4t30k.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-CfMH707B.js → legacy-agents-deep-H0Rp20sO.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-BsB8qBiK.js → legacy-main-redirect-DIKp0kQl.js} +1 -1
- package/dist/client/assets/{library-CMXpCscl.js → library-Dh6WH95I.js} +1 -1
- package/dist/client/assets/{login-BGgwQ8Ty.js → login-hW6Rr0Lp.js} +1 -1
- package/dist/client/assets/{markdown-B0HtiDwM.js → markdown-COVWapDi.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-qnfatYvU.js → mcp-app-renderer-CI5q52w8.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BKPj-D9q.js → mcp-oauth-DZAKWi1a.js} +1 -1
- package/dist/client/assets/{members-DEVgt_I_.js → members-BgKBsFZn.js} +1 -1
- package/dist/client/assets/{message-templates-Db9KMnea.js → message-templates-DniWMJBm.js} +1 -1
- package/dist/client/assets/{mini-report-page-BiDLml8V.js → mini-report-page-DsuczQQS.js} +1 -1
- package/dist/client/assets/{mock-board-DE899Anf.js → mock-board-C8czbdf7.js} +3 -3
- package/dist/client/assets/{monaco-editor-DI4bGJ1L.js → monaco-editor-BoDXf1bj.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-C-A-ogsB.js → monitoring-stats-row-ChtEPHtm.js} +1 -1
- package/dist/client/assets/{multi-select-D7KHOgJh.js → multi-select-D7hN0Qm5.js} +1 -1
- package/dist/client/assets/{mustache-D0PR-jG1.js → mustache-DX19G3kt.js} +1 -1
- package/dist/client/assets/{oauth-callback-BU4_oSma.js → oauth-callback-BZE2EwPT.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DTD6AsuQ.js → oauth-callback-ai-provider-sipE83AE.js} +1 -1
- package/dist/client/assets/{onboarding-hmcqGfvZ.js → onboarding-CiPKh68r.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-CwCqyNNZ.js → optimistic-project-sidebar-views-ZTcPooMv.js} +1 -1
- package/dist/client/assets/{organization-choice-Dmu0-74y.js → organization-choice-D-oi84RO.js} +1 -1
- package/dist/client/assets/{orgs-DrLboKbj.js → orgs-DRAiPJB7.js} +1 -1
- package/dist/client/assets/{page-seo-form-CPacwdAv.js → page-seo-form-BuUhQyS6.js} +1 -1
- package/dist/client/assets/{pair-CEyOVwXU.js → pair-BSoDGPcF.js} +1 -1
- package/dist/client/assets/{plan-ladder-D0ghMEom.js → plan-ladder-BasR5sqC.js} +1 -1
- package/dist/client/assets/{popover-CvNYvXj5.js → popover-DsPp8JNb.js} +1 -1
- package/dist/client/assets/{post-calendar-12hOW48s.js → post-calendar-DYJg8aHS.js} +1 -1
- package/dist/client/assets/{post-editor-Bx6vNsJq.js → post-editor-uz9JDFPY.js} +1 -1
- package/dist/client/assets/{preview-content-DSrgT3Dg.js → preview-content-WSVxEL_f.js} +1 -1
- package/dist/client/assets/{preview-dialog-BigpJ-wP.js → preview-dialog-C7MVz9-R.js} +1 -1
- package/dist/client/assets/{primitives-CYYl5pry.js → primitives-7kD9L60b.js} +1 -1
- package/dist/client/assets/{profile-DSIrGgr7.js → profile-BXsHvHMb.js} +1 -1
- package/dist/client/assets/{project-app-view-CxnHBgZr.js → project-app-view-CjrslCgD.js} +1 -1
- package/dist/client/assets/{project-feed-DYdRscqS.js → project-feed-C4HxbzNr.js} +1 -1
- package/dist/client/assets/{project-icon-W8WrTXup.js → project-icon-DZXi7sAH.js} +1 -1
- package/dist/client/assets/project-reports-CNKYAaup.js +1 -0
- package/dist/client/assets/project-tasks-CMDg0YDK.js +1 -0
- package/dist/client/assets/{prompts-Dxmn6DzV.js → prompts-BoViURa3.js} +1 -1
- package/dist/client/assets/record-editor-D8q1_FVg.js +1 -0
- package/dist/client/assets/{redirect-editor-BicSD98z.js → redirect-editor-urSJYZih.js} +1 -1
- package/dist/client/assets/registry-CfKndDp8.js +2 -0
- package/dist/client/assets/{registry-layout-SAOVarb5.js → registry-layout-DnAQGV3j.js} +1 -1
- package/dist/client/assets/reports-BQYFQSFf.js +1 -0
- package/dist/client/assets/{reports-vY0C9O6P.js → reports-ILQ519eV.js} +1 -1
- package/dist/client/assets/{reports-tab-L9i_aDYL.js → reports-tab-BHiPO-Yt.js} +2 -2
- package/dist/client/assets/{repositories-CfMNwm6d.js → repositories-BQcksodE.js} +1 -1
- package/dist/client/assets/{repository-import-picker-Dj8ScZou.js → repository-import-picker-DysBPsrE.js} +1 -1
- package/dist/client/assets/{repository-picker-Bu500wwQ.js → repository-picker-DJL8W4-t.js} +1 -1
- package/dist/client/assets/{require-capability-w06E-xRt.js → require-capability-B2v3wdWj.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CClBZN5w.js → required-auth-layout-CIegJY7n.js} +1 -1
- package/dist/client/assets/{reset-password-D5reLCMr.js → reset-password-Cv_pw9qG.js} +1 -1
- package/dist/client/assets/{resizable-BEe23Qjj.js → resizable-DrI2TVoh.js} +1 -1
- package/dist/client/assets/{review-settings-Bzb1wEUt.js → review-settings-DsMk5rhJ.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-D9zHtwKH.js → rich-text-link-control-Bh8SMhbX.js} +1 -1
- package/dist/client/assets/{roles-BYxRS6nZ.js → roles-BaQnKFl-.js} +1 -1
- package/dist/client/assets/{route-Fz81W799.js → route-B51TExGQ.js} +1 -1
- package/dist/client/assets/{route-C0b8KT9l.js → route-CDvOzABP.js} +1 -1
- package/dist/client/assets/{route-Bli9iRli.js → route-CV4jYjd5.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-Cf0uletx.js → runnable-block-editor-Bd1lE8Yl.js} +3 -3
- package/dist/client/assets/{sandbox-lifecycle-context-D2W8d_qX.js → sandbox-lifecycle-context-D0cxi8em.js} +1 -1
- package/dist/client/assets/{schema-Brgh1n5m.js → schema-WP2X1X1Z.js} +1 -1
- package/dist/client/assets/{scroll-area-zDkh0OU8.js → scroll-area-B5uAtJE9.js} +1 -1
- package/dist/client/assets/{search-input-CLI3bW2v.js → search-input-vrIAmgoh.js} +1 -1
- package/dist/client/assets/{secrets-BhfHpWkv.js → secrets-CDE7HDDb.js} +1 -1
- package/dist/client/assets/{sections-editor-BwtdYc1z.js → sections-editor-rEdLlc_u.js} +1 -1
- package/dist/client/assets/{select-dS1ZvUUC.js → select-DPtaqnbY.js} +1 -1
- package/dist/client/assets/{select-model-B-XEXZYZ.js → select-model-GkNjuCgL.js} +1 -1
- package/dist/client/assets/{seo-editor-BOejkPTg.js → seo-editor-BySdX6vM.js} +1 -1
- package/dist/client/assets/{settings-tab-0wITPKID.js → settings-tab-DWyBmp9C.js} +1 -1
- package/dist/client/assets/{sheet-D8oc8gwN.js → sheet-7dqWERZ-.js} +1 -1
- package/dist/client/assets/{shell-layout-ZE4ZeZq_.js → shell-layout-DlWVwnY3.js} +1 -1
- package/dist/client/assets/{sidebar-DulDmOuQ.js → sidebar-CSLIo5wG.js} +1 -1
- package/dist/client/assets/{skill-preview-C43g2jxT.js → skill-preview-CLQ6hpRU.js} +1 -1
- package/dist/client/assets/{skills-Du2wIHgh.js → skills-B0DlqgoY.js} +1 -1
- package/dist/client/assets/{sso-Cw7-rQ6R.js → sso-Dv7aOBLL.js} +1 -1
- package/dist/client/assets/{store-D_25PptJ.js → store-Sh4jPZ0Y.js} +1 -1
- package/dist/client/assets/store-registry-pejOBHcx.js +2 -0
- package/dist/client/assets/{switch-BJDpH17-.js → switch-CEhYE68G.js} +1 -1
- package/dist/client/assets/{synced-repos-f5wwGE-G.js → synced-repos-_Nkfv1T8.js} +1 -1
- package/dist/client/assets/{table-CzYba_wo.js → table-D5pPenOV.js} +1 -1
- package/dist/client/assets/{tabs-BH0t-Qit.js → tabs-C7ptBuB8.js} +1 -1
- package/dist/client/assets/{task-board-DlaQdjME.js → task-board-D_f-LuAE.js} +1 -1
- package/dist/client/assets/{task-route-BLgjDNsc.js → task-route-DyX9s2aH.js} +1 -1
- package/dist/client/assets/{task-status-B6cn6__r.js → task-status-DAaJYuJC.js} +1 -1
- package/dist/client/assets/{tasks-DyFKgkmx.js → tasks-BYBzCFtN.js} +1 -1
- package/dist/client/assets/tasks-Dsb1PXv5.js +1 -0
- package/dist/client/assets/{textarea-BztNtiTQ.js → textarea-BPcKOU7a.js} +1 -1
- package/dist/client/assets/{thread-intent-DzYbKhDO.js → thread-intent-CqreAI8n.js} +1 -1
- package/dist/client/assets/{thread-route-CTWLcToH.js → thread-route-DNVTuSKD.js} +1 -1
- package/dist/client/assets/{thread-route-CHuHE7Ay.js → thread-route-DxXQ46K1.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-HNIw97fV.js → thread-sheet-body-B21HbiTN.js} +1 -1
- package/dist/client/assets/{toggle-group-DHEZ824d.js → toggle-group-_I41ei63.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-SyfxXpxQ.js → toolbar-icon-button-BhlTbEE9.js} +1 -1
- package/dist/client/assets/{tooltip-Cg0iEw6_.js → tooltip-CYhjJgVA.js} +1 -1
- package/dist/client/assets/{track-CiOLlkxc.js → track-CWiVykNy.js} +1 -1
- package/dist/client/assets/{types-BQ0XHiBr.js → types-Bgn578U0.js} +1 -1
- package/dist/client/assets/{usage-stats-BHRSI5Ar.js → usage-stats-lU60GCl7.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DXXr4ex9.js → use-ai-providers-Cotfg7SS.js} +1 -1
- package/dist/client/assets/{use-automations-CtSWH9Gm.js → use-automations-BWbEauvr.js} +1 -1
- package/dist/client/assets/{use-autosave-CLkEbl1C.js → use-autosave-DWTyxx6Q.js} +1 -1
- package/dist/client/assets/{use-commerce-diagnostic-DSqBK8vF.js → use-commerce-diagnostic-ByTG1aVP.js} +1 -1
- package/dist/client/assets/{use-connect-companion-D42lIu9-.js → use-connect-companion-C5E889gV.js} +1 -1
- package/dist/client/assets/{use-connection-DnMnsTE-.js → use-connection-TGwBsBZ6.js} +1 -1
- package/dist/client/assets/{use-copy-ya7aFfBC.js → use-copy-D7Iw1LrJ.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DEQ3sE6r.js → use-create-virtual-mcp-DmXpf3QG.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-m9kXRT36.js → use-date-fns-locale-rgfXEg1T.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BWXcEqzZ.js → use-debounced-autosave-BZKMq5sx.js} +1 -1
- package/dist/client/assets/{use-debounced-value-FVaTkLaF.js → use-debounced-value-DGsEitJX.js} +1 -1
- package/dist/client/assets/{use-deco-credits-DWdd9zLS.js → use-deco-credits-zGfUt8ra.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BCNV6ibO.js → use-decopilot-events-QHgLexrJ.js} +1 -1
- package/dist/client/assets/{use-delete-connection-YAR5H2YF.js → use-delete-connection-D4tGHNgD.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-B_U4o3d8.js → use-deployment-admin-C8IvUlh8.js} +1 -1
- package/dist/client/assets/{use-entitlements-CVFQAC4Y.js → use-entitlements-B4c1c87k.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BNr78t_k.js → use-fast-preview-draft-url-eUMqGqhz.js} +1 -1
- package/dist/client/assets/{use-file-configs-CL8MhWZX.js → use-file-configs-5YZVd1Le.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BE00Qe2y.js → use-infinite-scroll-BcvDIGP6.js} +1 -1
- package/dist/client/assets/{use-join-requests-BfYhVugX.js → use-join-requests-BkX600q-.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-jGwhFlPh.js → use-main-panel-tabs-BHJmXQos.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-dGV2RcmM.js → use-mcp-auth-status-CDs5_VuQ.js} +1 -1
- package/dist/client/assets/{use-mcp-client-B-bmV-eU.js → use-mcp-client-B8avk6p1.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DwCio0Xs.js → use-mcp-prompts-C35IeKKU.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CaJdkF9p.js → use-mcp-tools-BX_9PtQS.js} +1 -1
- package/dist/client/assets/{use-members-Dy9zZpXX.js → use-members-DpENbm_3.js} +1 -1
- package/dist/client/assets/{use-mobile-DmHecFjh.js → use-mobile-RHIQOVil.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DE31VYsQ.js → use-navigate-to-agent-BsGybLOl.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-BHFODZxq.js → use-open-billing-url-V4LAVsZZ.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DuCptBd8.js → use-org-auth-client-WNBip5me.js} +1 -1
- package/dist/client/assets/{use-org-fs-aqzk40Pl.js → use-org-fs-Dvfg7DBA.js} +1 -1
- package/dist/client/assets/{use-org-notice-CPsPmLRD.js → use-org-notice-BDJtNsoi.js} +1 -1
- package/dist/client/assets/{use-org-sso-D8APIoa8.js → use-org-sso-B_DIN1FR.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CNPGuhUA.js → use-organization-roles-C44BiWk2.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CKJ6hB3u.js → use-organization-settings-D0M2z89A.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-D0KroJxZ.js → use-panel-navigate-VJU3jAVP.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-SUH-E6N_.js → use-project-native-view-presence-DsW3Hqqc.js} +1 -1
- package/dist/client/assets/{use-project-scope-BzLiG5Sw.js → use-project-scope-BCYsjRUp.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Byi4BCrC.js → use-registry-connections-C1VQdjvR.js} +1 -1
- package/dist/client/assets/{use-releases-DZzTh-C4.js → use-releases-BRVhx5jV.js} +1 -1
- package/dist/client/assets/{use-route-default-main-L5fisYjs.js → use-route-default-main-D5obmIIM.js} +1 -1
- package/dist/client/assets/{use-secrets-BAMuePEI.js → use-secrets-CmMeSYxT.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BOQVHncG.js → use-section-preview-base-DxAPy40-.js} +1 -1
- package/dist/client/assets/{use-session-runtime-DXY6Lube.js → use-session-runtime-Dl206Bga.js} +1 -1
- package/dist/client/assets/{use-tags-B7zGz5EU.js → use-tags-Bx2BF4Ke.js} +1 -1
- package/dist/client/assets/{use-task-metadata-CVUabh4r.js → use-task-metadata-2SHzp2HZ.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-3ycn6tX8.js → use-thread-outputs-TjNPQ11p.js} +1 -1
- package/dist/client/assets/{use-view-mode-CcO0vm3d.js → use-view-mode-CxLDv3cx.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-oRiYDLbO.js → use-virtual-mcp-2feYNqBo.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Br9KmFLf.js +1 -0
- package/dist/client/assets/{useQueries-DETG9PJR.js → useQueries-Bq52TmOw.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-zJ2PG_QY.js +1 -0
- package/dist/client/assets/{users-CMAbB3Qz.js → users-Cmnw5TH5.js} +1 -1
- package/dist/client/assets/{utils-DuFbetE2.js → utils-DUD_ZrVn.js} +1 -1
- package/dist/client/assets/{variant-calendar-CknIseH6.js → variant-calendar-BcGUj9x1.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-JFVRJ7oL.js → variant-matcher-override-CMpCnI5C.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-B2YdDaMp.js → view-mode-toggle-C5wJufOT.js} +1 -1
- package/dist/client/assets/{virtual-mcp-C4_P0xXR.js → virtual-mcp-DCGU1nRB.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-DGCD93Vx.js +0 -1
- package/dist/client/assets/agent-deck-CyvSbus-.js +0 -1
- package/dist/client/assets/agent-file-CXkQKVDt.js +0 -1
- package/dist/client/assets/agent-library-file-DW8DzCgD.js +0 -1
- package/dist/client/assets/agent-settings-mefV_YtU.js +0 -1
- package/dist/client/assets/agent-site-editor-code-DD5tKDCm.js +0 -2
- package/dist/client/assets/agent-view-ebzx1vyF.js +0 -1
- package/dist/client/assets/api-keys-DhuHR0tx.js +0 -1
- package/dist/client/assets/app-editor-CaGUmHu7.js +0 -1
- package/dist/client/assets/category-editor-DJs_8pc1.js +0 -1
- package/dist/client/assets/project-reports-CVNdDbXr.js +0 -1
- package/dist/client/assets/project-tasks-De-26kaC.js +0 -1
- package/dist/client/assets/record-editor-b-fde42v.js +0 -1
- package/dist/client/assets/registry-BN9FgxEJ.js +0 -2
- package/dist/client/assets/reports-CI88jReb.js +0 -1
- package/dist/client/assets/store-registry-DTZL5u8o.js +0 -2
- package/dist/client/assets/tasks-wsieNYYy.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BquFrdik.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-430FeaXt.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as z,r as Z,j as i,b as ae,h as ge,B as xe,l as je,ah as ye,t as ce}from"./index-CLlne17T.js";import{C as Pe}from"./index-Bo7i1ufS.js";import{A as De}from"./agent-view-guard-D33PMiXB.js";import{i as Ne}from"./Check-B2FZLF1O.js";import{a as ve}from"./Copy01-DN3tqM8L.js";import{i as Se}from"./DotsVertical-BFzwtdUn.js";import{i as Ce}from"./File02-BE1-Eszh.js";import{a as we}from"./Image01-CUco8f4C.js";import{n as _e}from"./LinkExternal01-EKFZjMJY.js";import{a as Ae}from"./Package-CpB6vYlT.js";import{s as ze}from"./Trash01-Dp2yrMxt.js";import{i as he}from"./Upload01-BUf7qRrI.js";import{A as Fe,a as Ue,b as $e,c as Ie,g as Me,d as Te,e as Ee,f as Oe}from"./alert-dialog-OWb4AclI.js";import{D as Re,a as ue,b as Be,c as Le}from"./dropdown-menu-CvTP8MXO.js";import{S as Ve}from"./search-input-CLI3bW2v.js";import{a as We}from"./use-virtual-mcp-oRiYDLbO.js";import{u as qe}from"./use-debounced-value-FVaTkLaF.js";import{u as Ge}from"./use-file-configs-CL8MhWZX.js";import{u as He,a as Ke,e as Qe,i as Ye,b as ke,f as Je,c as Xe}from"./asset-utils-C0vjSwsk.js";import{m as Ze}from"./match-site-slug-config-D3fUJ6vX.js";import{r as et}from"./site-slug-uya6Wp4-.js";import{b as tt}from"./thread-route-CTWLcToH.js";import"./use-mobile-DmHecFjh.js";import"./index-BoL7Aq4U.js";import"./resizable-BEe23Qjj.js";import"./MessageCircle01-BMp3tiX2.js";import"./use-panel-navigate-D0KroJxZ.js";import"./use-project-scope-BzLiG5Sw.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-L5fisYjs.js";import"./hooks-Rl0qRFjy.js";import"./use-mcp-client-B-bmV-eU.js";import"./auth-CJPyBAbS.js";import"./backoff-8mStPHYB.js";import"./task-board-DlaQdjME.js";import"./schema-Brgh1n5m.js";import"./tooltip-Cg0iEw6_.js";import"./index-CGenpwLF.js";import"./toolbar-icon-button-SyfxXpxQ.js";import"./use-main-panel-tabs-jGwhFlPh.js";import"./Globe01-BkG0TYp3.js";import"./Monitor01-C8W3wbFB.js";import"./use-connection-DnMnsTE-.js";import"./use-mcp-tools-CaJdkF9p.js";import"./types-BQ0XHiBr.js";import"./utils-CVEq3hMx.js";import"./index-DTkDXM1A.js";import"./ArrowUp-BlHEAyyd.js";import"./chat-context-BmwCoPvA.js";import"./autosend-CB-A5Oif.js";import"./thread-intent-DzYbKhDO.js";import"./slugify-CEUa2lfQ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-CVFQAC4Y.js";import"./use-ai-providers-DXXr4ex9.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BCNV6ibO.js";import"./use-organization-settings-CKJ6hB3u.js";import"./gateway-client-DboI1W5S.js";import"./dialog-CDr-V9u8.js";import"./X-D6lVPJzO.js";import"./drawer-DCRH2Qpg.js";import"./collection-search-Cp-PQjLX.js";import"./SearchMd-C6NFUW36.js";import"./use-mcp-prompts-DwCio0Xs.js";import"./index-Do5lCsEj.js";import"./form-DxDjuvl5.js";import"./label-Lvgg69zF.js";import"./input-CP_e0ZMg.js";import"./input-DaHZvHYb.js";import"./command-palette-store-CQCOE6E9.js";import"./chat-draft-Bpg7GYsG.js";import"./use-session-runtime-DXY6Lube.js";import"./ArrowRight-Cm4rUCam.js";import"./agent-icon-ByB43Wsk.js";import"./AlertCircle-lddbBWh0.js";import"./Tool01-0YKAjW__.js";import"./ArrowLeft-DDPJQXhG.js";import"./Tool02-Bco71KeO.js";import"./TrendUp01-D1K9L0xP.js";import"./ZoomOut-BlidBzgG.js";import"./Users03-DL_upBh-.js";import"./CheckCircle-2GspG_XT.js";import"./ChevronUp-DgIot4i7.js";import"./ChevronRight-byX-3L9r.js";import"./UserSquare-XPgiOUWe.js";import"./CreditCard01-wo9mx3CN.js";import"./Database01-BsiMLwmb.js";import"./Download01-DzANKKkw.js";import"./Printer-CSBhu2Re.js";import"./Settings02-CqMjj8Oq.js";import"./Eye-DFJEK6aw.js";import"./Share07-DH92YWbU.js";import"./GitBranch01-CI-WDVa2.js";import"./SwitchHorizontal01-BT-naaH0.js";import"./HardDrive-DuIbEWGl.js";import"./Key01-Ctr214Q3.js";import"./Link01-CyA36bfv.js";import"./Sun-sJn8WeT-.js";import"./Palette-CBU77GJ1.js";import"./Play-Uhe4ebTG.js";import"./Plus-BiYlKLxl.js";import"./SearchLg-CN4JJES9.js";import"./Shield01-Cm4rFm8N.js";import"./Stars01-BxBiTUsk.js";import"./User01-Da1WckIS.js";import"./Users01-BsVs6-8w.js";import"./XCircle-DReUcNBS.js";import"./XClose-DYRx__Hg.js";import"./Zap-CCglgveU.js";import"./select-dS1ZvUUC.js";import"./usage-stats-BHRSI5Ar.js";import"./use-copy-ya7aFfBC.js";import"./markdown-B0HtiDwM.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./tabs-BH0t-Qit.js";import"./use-deco-credits-DWdd9zLS.js";import"./toggle-group-DHEZ824d.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-BHFODZxq.js";import"./decopilot-DmAS8lky.js";import"./checkbox-rssR-x4C.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-Dr6RkrBb.js";import"./download-app-dialog-rP5j-4Hl.js";import"./popover-CvNYvXj5.js";import"./index-BYBuvEpZ.js";import"./input-dbYO6Ois.js";import"./hooks-DWxJwjQc.js";import"./use-org-fs-aqzk40Pl.js";import"./question-004-sINsf4GQ.js";import"./use-members-Dy9zZpXX.js";import"./use-org-auth-client-DuCptBd8.js";import"./feature-paywall-C0IUXXGE.js";import"./plan-ladder-D0ghMEom.js";import"./add-connection-dialog-BBa9lb3g.js";import"./extract-connection-data-DfDSW6rF.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-_wLcpevb.js";import"./connection-card-BD4O904L.js";import"./use-registry-connections-Byi4BCrC.js";import"./useInfiniteQuery-BquFrdik.js";import"./infiniteQueryObserver-Q0vfsI8m.js";import"./retry-i8LvYSZg.js";import"./connection-slug-CITJ0kGN.js";import"./integration-icon-Bd7DOoer.js";import"./textarea-BztNtiTQ.js";import"./connection-form-helpers-CHUbN92C.js";import"./authenticate-and-persist-oauth-B8kXJK6h.js";import"./mcp-oauth-BKPj-D9q.js";import"./collection-tabs-Bhq66UPx.js";import"./badge-o8ORXLbv.js";import"./use-infinite-scroll-BE00Qe2y.js";import"./useSuspenseInfiniteQuery-430FeaXt.js";import"./pair-CEyOVwXU.js";import"./collapsible-MEYp44rr.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-qnfatYvU.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./shell-layout-ZE4ZeZq_.js";import"./anchors-yqDzZN4K.js";import"./use-org-notice-CPsPmLRD.js";import"./command-CuPZrFd2.js";import"./index-C2k5rbY0.js";import"./project-icon-W8WrTXup.js";import"./required-auth-layout-CClBZN5w.js";import"./use-org-sso-D8APIoa8.js";import"./sheet-D8oc8gwN.js";import"./use-navigate-to-agent-DE31VYsQ.js";import"./use-thread-outputs-3ycn6tX8.js";import"./file-type-icon-B5ajUaH0.js";import"./sandbox-lifecycle-context-D2W8d_qX.js";import"./sandbox-url-D3mC8qhT.js";import"./use-task-metadata-CVUabh4r.js";import"./use-project-native-view-presence-SUH-E6N_.js";import"./virtual-mcp-C4_P0xXR.js";function it(){const s=z.c(3),[e,t]=Z.useState(-1);let r;s[0]===Symbol.for("react.memo_cache_sentinel")?(r=n=>{if(!n)return;const a=()=>t(n.clientWidth);a();const c=new ResizeObserver(a);return c.observe(n),()=>c.disconnect()},s[0]=r):r=s[0];const l=r;let o;return s[1]!==e?(o=[e,l],s[1]=e,s[2]=o):o=s[2],o}function rt(s){const e=z.c(6),{virtualMcpId:t}=s,r=We(t),l=Ge();let o;e[0]!==l||e[1]!==r?(o=Ze(l,et(r)),e[0]=l,e[1]=r,e[2]=o):o=e[2];const n=o;if(!n){let c;return e[3]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(st,{}),e[3]=c):c=e[3],c}let a;return e[4]!==n?(a=i.jsx(nt,{config:n}),e[4]=n,e[5]=a):a=e[5],a}function st(){const s=z.c(12),e=ae();let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx("div",{className:"flex size-12 items-center justify-center rounded-full bg-muted",children:i.jsx(Ae,{size:20,className:"text-muted-foreground"})}),s[0]=t):t=s[0];let r;s[1]!==e?(r=e("assets.browser.noBucketTitle"),s[1]=e,s[2]=r):r=s[2];let l;s[3]!==r?(l=i.jsx("p",{className:"text-sm font-medium",children:r}),s[3]=r,s[4]=l):l=s[4];let o;s[5]!==e?(o=e("assets.browser.noBucketDescription"),s[5]=e,s[6]=o):o=s[6];let n;s[7]!==o?(n=i.jsx("p",{className:"mt-1 max-w-sm text-xs text-muted-foreground",children:o}),s[7]=o,s[8]=n):n=s[8];let a;return s[9]!==l||s[10]!==n?(a=i.jsxs("div",{className:"flex h-full min-h-0 flex-col items-center justify-center gap-3 p-10 text-center",children:[t,i.jsxs("div",{children:[l,n]})]}),s[9]=l,s[10]=n,s[11]=a):a=s[11],a}function lt(s){return s<0||s<640?2:s<768?3:s<1024?4:5}function ot(s,e){const t=Array.from({length:e},()=>[]);return s.forEach((r,l)=>t[l%e].push(r)),t}function nt(s){const e=z.c(99),{config:t}=s,r=ae(),[l,o]=Z.useState(""),n=qe(l,300);let a;e[0]!==t.id||e[1]!==n?(a={configId:t.id,search:n},e[0]=t.id,e[1]=n,e[2]=a):a=e[2];const c=He(a),m=Ke(),[y,p]=Z.useState(!1),[d,g]=Z.useState(null),u=Z.useRef(null);let h;e[3]!==t.id||e[4]!==c||e[5]!==r||e[6]!==m?(h=async function(_){if(!_)return;const ee=Array.from(_);if(ee.length===0)return;const $=[];for(const R of ee)try{await m.mutateAsync({configId:t.id,file:R})}catch(I){const F=I;$.push(`${R.name} (${F instanceof Error?F.message:"upload failed"})`)}await c.refetch(),$.length>0&&ce.error($.length===ee.length?r("filePicker.filePickerDialog.uploadFailedAll",{errors:$.join("; ")}):r("filePicker.filePickerDialog.uploadFailedSome",{errors:$.join("; ")}))},e[3]=t.id,e[4]=c,e[5]=r,e[6]=m,e[7]=h):h=e[7];const x=h;let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=function(_){_.preventDefault(),p(!0)},e[8]=f):f=e[8];const b=f;let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=function(){p(!1)},e[9]=v):v=e[9];const A=v;let k;e[10]!==x?(k=function(_){_.preventDefault(),_.stopPropagation(),p(!1),x(_.dataTransfer.files)},e[10]=x,e[11]=k):k=e[11];const j=k,[P,S]=it();let D,N,C,w,M,U;if(e[12]!==t.name||e[13]!==n||e[14]!==S||e[15]!==P||e[16]!==x||e[17]!==y||e[18]!==c.data?.pages||e[19]!==c.isFetching||e[20]!==c.isFetchingNextPage||e[21]!==j||e[22]!==l||e[23]!==r||e[24]!==m.isPending){const _=(c.data?.pages??[]).flatMap(ct),ee=ot(_,lt(P)),$=n.trim(),R=l!==n||c.isFetching&&!c.isFetchingNextPage;M="flex h-full min-h-0 flex-col gap-3 p-4";let I;e[31]!==r?(I=r("assets.browser.title"),e[31]=r,e[32]=I):I=e[32];let F;e[33]!==I?(F=i.jsx("h2",{className:"text-sm font-semibold",children:I}),e[33]=I,e[34]=F):F=e[34];let B;e[35]!==t.name||e[36]!==r?(B=r("assets.browser.bucketLabel",{name:t.name}),e[35]=t.name,e[36]=r,e[37]=B):B=e[37];let L;e[38]!==B?(L=i.jsx("p",{className:"truncate text-xs text-muted-foreground",children:B}),e[38]=B,e[39]=L):L=e[39];let V;e[40]!==F||e[41]!==L?(V=i.jsxs("div",{className:"min-w-0",children:[F,L]}),e[40]=F,e[41]=L,e[42]=V):V=e[42];let se;e[43]===Symbol.for("react.memo_cache_sentinel")?(se=()=>u.current?.click(),e[43]=se):se=e[43];let W;e[44]!==m.isPending?(W=m.isPending?i.jsx(ge,{className:"size-3.5"}):i.jsx(he,{size:14}),e[44]=m.isPending,e[45]=W):W=e[45];let q;e[46]!==r||e[47]!==m.isPending?(q=m.isPending?r("filePicker.filePickerDialog.uploading"):r("filePicker.filePickerDialog.dropFilesOrClick"),e[46]=r,e[47]=m.isPending,e[48]=q):q=e[48];let G;e[49]!==W||e[50]!==q||e[51]!==m.isPending?(G=i.jsxs(xe,{type:"button",size:"sm",disabled:m.isPending,onClick:se,children:[W,q]}),e[49]=W,e[50]=q,e[51]=m.isPending,e[52]=G):G=e[52];let H;e[53]!==x?(H=i.jsx("input",{ref:u,type:"file",multiple:!0,className:"hidden",onChange:ne=>{const pe=Array.from(ne.target.files??[]);ne.target.value="",x(pe)}}),e[53]=x,e[54]=H):H=e[54],e[55]!==V||e[56]!==G||e[57]!==H?(U=i.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-3",children:[V,G,H]}),e[55]=V,e[56]=G,e[57]=H,e[58]=U):U=e[58];let K;e[59]!==r?(K=r("filePicker.filePickerDialog.searchFilesPlaceholder"),e[59]=r,e[60]=K):K=e[60],e[61]!==R||e[62]!==l||e[63]!==K?(D=i.jsx(Ve,{value:l,onChange:o,isSearching:R,placeholder:K,className:"shrink-0"}),e[61]=R,e[62]=l,e[63]=K,e[64]=D):D=e[64];let le;e[65]===Symbol.for("react.memo_cache_sentinel")?(le=()=>u.current?.click(),e[65]=le):le=e[65];const me=y&&"border-primary bg-primary/5",fe=m.isPending&&"pointer-events-none opacity-60";let Q;e[66]!==me||e[67]!==fe?(Q=je("flex shrink-0 flex-col items-center justify-center gap-1 rounded-xl border border-dashed border-border/60 p-4 text-center transition-colors",me,fe),e[66]=me,e[67]=fe,e[68]=Q):Q=e[68];let oe;e[69]===Symbol.for("react.memo_cache_sentinel")?(oe=i.jsx(he,{size:16,className:"text-muted-foreground"}),e[69]=oe):oe=e[69];let Y;e[70]!==r?(Y=r("filePicker.filePickerDialog.dropFilesOrClick"),e[70]=r,e[71]=Y):Y=e[71];let J;e[72]!==r?(J=r("filePicker.filePickerDialog.uploadSizeLimit"),e[72]=r,e[73]=J):J=e[73];let X;e[74]!==Y||e[75]!==J?(X=i.jsxs("p",{className:"text-xs text-muted-foreground",children:[Y," ",J]}),e[74]=Y,e[75]=J,e[76]=X):X=e[76],e[77]!==j||e[78]!==Q||e[79]!==X?(N=i.jsxs("button",{type:"button",onClick:le,onDragOver:b,onDragLeave:A,onDrop:j,className:Q,children:[oe,X]}),e[77]=j,e[78]=Q,e[79]=X,e[80]=N):N=e[80],C="min-h-0 flex-1 overflow-y-auto pr-1",w=_.length===0?$?i.jsx(be,{title:r("filePicker.filePickerDialog.noMatches",{query:$}),description:r("filePicker.filePickerDialog.tryDifferentSearchOrLoadMore")}):i.jsx(be,{title:r("filePicker.filePickerDialog.noFilesYet"),description:r("filePicker.filePickerDialog.dropFileToGetStarted")}):i.jsx("div",{ref:S,className:"flex items-start gap-3",children:ee.map((ne,pe)=>i.jsx("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:ne.map(de=>i.jsx(at,{item:de,onDelete:()=>g(de)},de.key))},pe))}),e[12]=t.name,e[13]=n,e[14]=S,e[15]=P,e[16]=x,e[17]=y,e[18]=c.data?.pages,e[19]=c.isFetching,e[20]=c.isFetchingNextPage,e[21]=j,e[22]=l,e[23]=r,e[24]=m.isPending,e[25]=D,e[26]=N,e[27]=C,e[28]=w,e[29]=M,e[30]=U}else D=e[25],N=e[26],C=e[27],w=e[28],M=e[29],U=e[30];let T;e[81]!==c||e[82]!==r?(T=c.hasNextPage&&i.jsx("div",{className:"flex justify-center py-4",children:i.jsx(xe,{type:"button",variant:"outline",size:"sm",disabled:c.isFetchingNextPage,onClick:()=>c.fetchNextPage(),children:c.isFetchingNextPage?i.jsxs(i.Fragment,{children:[i.jsx(ge,{className:"size-3.5"}),r("filePicker.filePickerDialog.loading")]}):r("filePicker.filePickerDialog.loadMore")})}),e[81]=c,e[82]=r,e[83]=T):T=e[83];let E;e[84]!==T||e[85]!==C||e[86]!==w?(E=i.jsxs("div",{className:C,children:[w,T]}),e[84]=T,e[85]=C,e[86]=w,e[87]=E):E=e[87];let te;e[88]===Symbol.for("react.memo_cache_sentinel")?(te=()=>g(null),e[88]=te):te=e[88];let O;e[89]!==t.id||e[90]!==d?(O=i.jsx(pt,{configId:t.id,item:d,onClose:te}),e[89]=t.id,e[90]=d,e[91]=O):O=e[91];let ie;return e[92]!==D||e[93]!==N||e[94]!==E||e[95]!==O||e[96]!==M||e[97]!==U?(ie=i.jsxs("div",{className:M,children:[U,D,N,E,O]}),e[92]=D,e[93]=N,e[94]=E,e[95]=O,e[96]=M,e[97]=U,e[98]=ie):ie=e[98],ie}function ct(s){return s.items}function be(s){const e=z.c(8),{title:t,description:r}=s;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsx("div",{className:"flex size-10 items-center justify-center rounded-full bg-muted",children:i.jsx(we,{size:18,className:"text-muted-foreground"})}),e[0]=l):l=e[0];let o;e[1]!==t?(o=i.jsx("p",{className:"text-sm font-medium",children:t}),e[1]=t,e[2]=o):o=e[2];let n;e[3]!==r?(n=i.jsx("p",{className:"text-xs text-muted-foreground",children:r}),e[3]=r,e[4]=n):n=e[4];let a;return e[5]!==o||e[6]!==n?(a=i.jsxs("div",{className:"flex h-full min-h-40 flex-col items-center justify-center gap-2 py-8 text-center",children:[l,o,n]}),e[5]=o,e[6]=n,e[7]=a):a=e[7],a}function at(s){const e=z.c(34),{item:t,onDelete:r}=s;let l;e[0]!==t.key?(l=Qe(t.key),e[0]=t.key,e[1]=l):l=e[1];const o=l;let n;e[2]!==t.key?(n=Ye(t.key),e[2]=t.key,e[3]=n):n=e[3];const a=n;let c;e[4]!==a||e[5]!==t.key||e[6]!==t.publicUrl?(c=a?i.jsx("img",{src:t.publicUrl,alt:t.key,loading:"lazy",className:"block h-auto w-full",onError:mt}):i.jsx("div",{className:"flex aspect-square items-center justify-center",children:i.jsx(Ce,{size:28,className:"text-muted-foreground"})}),e[4]=a,e[5]=t.key,e[6]=t.publicUrl,e[7]=c):c=e[7];let m;e[8]!==t.key||e[9]!==t.publicUrl||e[10]!==c?(m=i.jsx("a",{href:t.publicUrl,target:"_blank",rel:"noreferrer",title:t.key,className:"block transition hover:ring-2 hover:ring-inset hover:ring-primary",children:c}),e[8]=t.key,e[9]=t.publicUrl,e[10]=c,e[11]=m):m=e[11];const y=t.key;let p;e[12]!==t.key?(p=ke(t.key),e[12]=t.key,e[13]=p):p=e[13];let d;e[14]!==t.key||e[15]!==p?(d=i.jsx("p",{className:"truncate text-xs font-medium",title:y,children:p}),e[14]=t.key,e[15]=p,e[16]=d):d=e[16];let g;e[17]!==t.size?(g=Je(t.size),e[17]=t.size,e[18]=g):g=e[18];let u;e[19]!==o||e[20]!==g?(u=i.jsxs("p",{className:"text-[10px] uppercase text-muted-foreground",children:[o," · ",g]}),e[19]=o,e[20]=g,e[21]=u):u=e[21];let h;e[22]!==d||e[23]!==u?(h=i.jsxs("div",{className:"min-w-0 flex-1",children:[d,u]}),e[22]=d,e[23]=u,e[24]=h):h=e[24];let x;e[25]!==t||e[26]!==r?(x=i.jsx(ft,{item:t,onDelete:r}),e[25]=t,e[26]=r,e[27]=x):x=e[27];let f;e[28]!==h||e[29]!==x?(f=i.jsxs("div",{className:"flex items-center gap-1 border-t border-border/60 bg-background px-2 py-1.5",children:[h,x]}),e[28]=h,e[29]=x,e[30]=f):f=e[30];let b;return e[31]!==f||e[32]!==m?(b=i.jsxs("div",{className:"group relative flex flex-col overflow-hidden rounded-lg border border-border/60 bg-muted",children:[m,f]}),e[31]=f,e[32]=m,e[33]=b):b=e[33],b}function mt(s){s.target.style.display="none"}function ft(s){const e=z.c(36),{item:t,onDelete:r}=s,l=ae(),[o,n]=Z.useState(!1);let a;e[0]!==t.publicUrl||e[1]!==l?(a=async function(){try{await navigator.clipboard.writeText(t.publicUrl),n(!0),window.setTimeout(()=>n(!1),1500)}catch{ce.error(l("filePicker.filePickerDialog.failedToCopyUrl"))}},e[0]=t.publicUrl,e[1]=l,e[2]=a):a=e[2];const c=a;let m;e[3]!==l?(m=l("filePicker.filePickerDialog.assetActions"),e[3]=l,e[4]=m):m=e[4];let y;e[5]===Symbol.for("react.memo_cache_sentinel")?(y=i.jsx(Se,{size:14}),e[5]=y):y=e[5];let p;e[6]!==m?(p=i.jsx(Re,{asChild:!0,children:i.jsx(xe,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0 rounded-md","aria-label":m,children:y})}),e[6]=m,e[7]=p):p=e[7];let d;e[8]!==o?(d=o?i.jsx(Ne,{size:14}):i.jsx(ve,{size:14}),e[8]=o,e[9]=d):d=e[9];let g;e[10]!==o||e[11]!==l?(g=l(o?"filePicker.filePickerDialog.copied":"filePicker.filePickerDialog.copyUrl"),e[10]=o,e[11]=l,e[12]=g):g=e[12];let u;e[13]!==c||e[14]!==d||e[15]!==g?(u=i.jsxs(ue,{onClick:c,children:[d,g]}),e[13]=c,e[14]=d,e[15]=g,e[16]=u):u=e[16];const h=t.publicUrl;let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x=i.jsx(_e,{size:14}),e[17]=x):x=e[17];let f;e[18]!==l?(f=l("filePicker.filePickerDialog.openInNewTab"),e[18]=l,e[19]=f):f=e[19];let b;e[20]!==t.publicUrl||e[21]!==f?(b=i.jsx(ue,{asChild:!0,children:i.jsxs("a",{href:h,target:"_blank",rel:"noreferrer",children:[x,f]})}),e[20]=t.publicUrl,e[21]=f,e[22]=b):b=e[22];let v;e[23]===Symbol.for("react.memo_cache_sentinel")?(v=i.jsx(ze,{size:14}),e[23]=v):v=e[23];let A;e[24]!==l?(A=l("assets.browser.deleteAction"),e[24]=l,e[25]=A):A=e[25];let k;e[26]!==r||e[27]!==A?(k=i.jsxs(ue,{variant:"destructive",onClick:r,children:[v,A]}),e[26]=r,e[27]=A,e[28]=k):k=e[28];let j;e[29]!==b||e[30]!==k||e[31]!==u?(j=i.jsxs(Be,{align:"end",children:[u,b,k]}),e[29]=b,e[30]=k,e[31]=u,e[32]=j):j=e[32];let P;return e[33]!==j||e[34]!==p?(P=i.jsxs(Le,{children:[p,j]}),e[33]=j,e[34]=p,e[35]=P):P=e[35],P}function pt(s){const e=z.c(47),{configId:t,item:r,onClose:l}=s,o=ae(),n=Xe();let a;e[0]!==t||e[1]!==n||e[2]!==r||e[3]!==l||e[4]!==o?(a=async function(){if(r)try{await n.mutateAsync({configId:t,key:r.key}),ce.success(o("assets.browser.deleted")),l()}catch{ce.error(o("assets.browser.deleteFailed"))}},e[0]=t,e[1]=n,e[2]=r,e[3]=l,e[4]=o,e[5]=a):a=e[5];const c=a,m=!!r;let y;e[6]!==l?(y=w=>!w&&l(),e[6]=l,e[7]=y):y=e[7];let p;e[8]!==o?(p=o("assets.browser.deleteConfirmTitle"),e[8]=o,e[9]=p):p=e[9];let d;e[10]!==p?(d=i.jsx(Fe,{children:p}),e[10]=p,e[11]=d):d=e[11];let g;e[12]!==r||e[13]!==o?(g=o("assets.browser.deleteConfirmDescription",{name:r?ke(r.key):""}),e[12]=r,e[13]=o,e[14]=g):g=e[14];let u;e[15]!==g?(u=i.jsx(Ue,{children:g}),e[15]=g,e[16]=u):u=e[16];let h;e[17]!==d||e[18]!==u?(h=i.jsxs($e,{children:[d,u]}),e[17]=d,e[18]=u,e[19]=h):h=e[19];const x=n.isPending;let f;e[20]!==o?(f=o("assets.browser.deleteCancel"),e[20]=o,e[21]=f):f=e[21];let b;e[22]!==n.isPending||e[23]!==f?(b=i.jsx(Ie,{disabled:x,children:f}),e[22]=n.isPending,e[23]=f,e[24]=b):b=e[24];let v;e[25]===Symbol.for("react.memo_cache_sentinel")?(v=je(ye({variant:"destructive"})),e[25]=v):v=e[25];const A=n.isPending;let k;e[26]!==c?(k=w=>{w.preventDefault(),c()},e[26]=c,e[27]=k):k=e[27];let j;e[28]!==n.isPending?(j=n.isPending?i.jsx(ge,{className:"size-3.5"}):null,e[28]=n.isPending,e[29]=j):j=e[29];let P;e[30]!==o?(P=o("assets.browser.deleteConfirm"),e[30]=o,e[31]=P):P=e[31];let S;e[32]!==n.isPending||e[33]!==k||e[34]!==j||e[35]!==P?(S=i.jsxs(Me,{className:v,disabled:A,onClick:k,children:[j,P]}),e[32]=n.isPending,e[33]=k,e[34]=j,e[35]=P,e[36]=S):S=e[36];let D;e[37]!==b||e[38]!==S?(D=i.jsxs(Te,{children:[b,S]}),e[37]=b,e[38]=S,e[39]=D):D=e[39];let N;e[40]!==D||e[41]!==h?(N=i.jsxs(Ee,{children:[h,D]}),e[40]=D,e[41]=h,e[42]=N):N=e[42];let C;return e[43]!==N||e[44]!==m||e[45]!==y?(C=i.jsx(Oe,{open:m,onOpenChange:y,children:N}),e[43]=N,e[44]=m,e[45]=y,e[46]=C):C=e[46],C}function dt(){const s=z.c(2),e=tt();let t;return s[0]!==e?(t=i.jsx(De,{tabId:"assets",children:i.jsx(rt,{virtualMcpId:e})}),s[0]=e,s[1]=t):t=s[1],t}function As(){const s=z.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Pe.Content,{children:i.jsx(dt,{})}),s[0]=e):e=s[0],e}export{As as default};
|
|
1
|
+
import{c as z,r as Z,j as i,b as ae,h as ge,B as xe,l as je,ah as ye,t as ce}from"./index-C6mMoKV9.js";import{C as Pe}from"./index-D7nIUPsf.js";import{A as De}from"./agent-view-guard-DFIgCPk2.js";import{i as Ne}from"./Check-jwHdO8X-.js";import{a as ve}from"./Copy01-Ba_DXyYG.js";import{i as Se}from"./DotsVertical-2ZMqd-18.js";import{i as Ce}from"./File02-aDup41Qr.js";import{a as we}from"./Image01-DZX0wWyU.js";import{n as _e}from"./LinkExternal01-CKgmWkkp.js";import{a as Ae}from"./Package-DZFJNJtq.js";import{s as ze}from"./Trash01-B1H2nTDv.js";import{i as he}from"./Upload01-CiNRxnSv.js";import{A as Fe,a as Ue,b as $e,c as Ie,g as Me,d as Te,e as Ee,f as Oe}from"./alert-dialog-jSpWtFPv.js";import{D as Re,a as ue,b as Be,c as Le}from"./dropdown-menu-BS01WOe-.js";import{S as Ve}from"./search-input-vrIAmgoh.js";import{a as We}from"./use-virtual-mcp-2feYNqBo.js";import{u as qe}from"./use-debounced-value-DGsEitJX.js";import{u as Ge}from"./use-file-configs-5YZVd1Le.js";import{u as He,a as Ke,e as Qe,i as Ye,b as ke,f as Je,c as Xe}from"./asset-utils-CvLbIoHR.js";import{m as Ze}from"./match-site-slug-config-D3fUJ6vX.js";import{r as et}from"./site-slug-uya6Wp4-.js";import{b as tt}from"./thread-route-DNVTuSKD.js";import"./use-mobile-RHIQOVil.js";import"./index-8f5lsphO.js";import"./resizable-DrI2TVoh.js";import"./MessageCircle01-DOh30ucD.js";import"./use-panel-navigate-VJU3jAVP.js";import"./use-project-scope-BCYsjRUp.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-D5obmIIM.js";import"./hooks-BU6oBSHV.js";import"./use-mcp-client-B8avk6p1.js";import"./auth-DekSX5bd.js";import"./backoff-8mStPHYB.js";import"./task-board-D_f-LuAE.js";import"./schema-WP2X1X1Z.js";import"./tooltip-CYhjJgVA.js";import"./index-CAThN-6U.js";import"./toolbar-icon-button-BhlTbEE9.js";import"./use-main-panel-tabs-BHJmXQos.js";import"./Globe01-CDkkg2Cy.js";import"./Monitor01-DT1NSOaN.js";import"./use-connection-TGwBsBZ6.js";import"./use-mcp-tools-BX_9PtQS.js";import"./types-Bgn578U0.js";import"./utils-CVEq3hMx.js";import"./index-Dq-6H-UD.js";import"./ArrowUp-DhMsgJkj.js";import"./chat-context-g3Ysek-D.js";import"./autosend-Cp5vfPIB.js";import"./thread-intent-CqreAI8n.js";import"./slugify-CEUa2lfQ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-B4c1c87k.js";import"./use-ai-providers-Cotfg7SS.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-QHgLexrJ.js";import"./use-organization-settings-D0M2z89A.js";import"./gateway-client-BrWtEU1u.js";import"./dialog-BbF8R0Rt.js";import"./X-MotBpvxg.js";import"./drawer-BBk33oYJ.js";import"./collection-search-Cw88RONI.js";import"./SearchMd-BnbGkmUb.js";import"./use-mcp-prompts-C35IeKKU.js";import"./index-Dnovg-Ty.js";import"./form-Cq6wKFPC.js";import"./label-BdNnPzHo.js";import"./input-CZquufhh.js";import"./input-Dm5tdFv-.js";import"./command-palette-store-DQWkqX24.js";import"./chat-draft-DZWcf9MH.js";import"./use-session-runtime-Dl206Bga.js";import"./ArrowRight-DLmMx1GH.js";import"./agent-icon-DEBX0Uac.js";import"./AlertCircle-rRQrnsQT.js";import"./Tool01-Co_K8urR.js";import"./ArrowLeft-BZ_V0Q9t.js";import"./Tool02-BHzOpk5z.js";import"./TrendUp01-Cxcr4-0l.js";import"./ZoomOut-DbeadNC9.js";import"./Users03-BsQdFF8i.js";import"./CheckCircle-BXhLNUG6.js";import"./ChevronUp-DUyCnbNx.js";import"./ChevronRight-qjdwy3ht.js";import"./UserSquare-SK2C9JwY.js";import"./CreditCard01-D8ve3i2_.js";import"./Database01-CKtQnfwM.js";import"./Download01-CoH-UuQa.js";import"./Printer-CEzVuZMa.js";import"./Settings02-CFq2ETVr.js";import"./Eye-BpslXSuU.js";import"./Share07-hoEgdikb.js";import"./GitBranch01-DzU0sPJc.js";import"./SwitchHorizontal01-DVbyXy1C.js";import"./HardDrive-DNp6sr7j.js";import"./Key01-D2uCgYpN.js";import"./Link01-B6QrVU3H.js";import"./Sun-BvckUZh0.js";import"./Palette-D9x-keux.js";import"./Play-nvjmkgl9.js";import"./Plus-p771xfxl.js";import"./SearchLg-C5H_nx3W.js";import"./Shield01-C_kVJsrZ.js";import"./Stars01-jOH0yCKk.js";import"./User01-_uMnR0k7.js";import"./Users01-C8QAjTFh.js";import"./XCircle-mKrW5aBV.js";import"./XClose-nT83baSx.js";import"./Zap-DlMFCTS-.js";import"./select-DPtaqnbY.js";import"./usage-stats-lU60GCl7.js";import"./use-copy-D7Iw1LrJ.js";import"./markdown-COVWapDi.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./tabs-C7ptBuB8.js";import"./use-deco-credits-zGfUt8ra.js";import"./toggle-group-_I41ei63.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-V4LAVsZZ.js";import"./decopilot-D-EmElSn.js";import"./checkbox-CtSIa9d0.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-Db6Ad7E2.js";import"./download-app-dialog-CTBm_E5V.js";import"./popover-DsPp8JNb.js";import"./index-CexxzinB.js";import"./input-LjvMOQDt.js";import"./hooks-BECLyGBb.js";import"./use-org-fs-Dvfg7DBA.js";import"./question-004-sINsf4GQ.js";import"./use-members-DpENbm_3.js";import"./use-org-auth-client-WNBip5me.js";import"./feature-paywall-BFqNEmgI.js";import"./plan-ladder-BasR5sqC.js";import"./add-connection-dialog-COIUcaiE.js";import"./extract-connection-data-CulqgUEu.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-Cl0tFuDE.js";import"./connection-card-CtC01b_S.js";import"./use-registry-connections-C1VQdjvR.js";import"./useInfiniteQuery-Br9KmFLf.js";import"./infiniteQueryObserver-8SjYC_ek.js";import"./retry-i8LvYSZg.js";import"./connection-slug-CITJ0kGN.js";import"./integration-icon-Xt_LxCp3.js";import"./textarea-BPcKOU7a.js";import"./connection-form-helpers-BGax9Typ.js";import"./authenticate-and-persist-oauth-3J_jvNQZ.js";import"./mcp-oauth-DZAKWi1a.js";import"./collection-tabs-DjIYbOQ5.js";import"./badge-cq278MQI.js";import"./use-infinite-scroll-BcvDIGP6.js";import"./useSuspenseInfiniteQuery-zJ2PG_QY.js";import"./pair-BSoDGPcF.js";import"./collapsible-S74ix7rA.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CI5q52w8.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./shell-layout-DlWVwnY3.js";import"./anchors-yqDzZN4K.js";import"./use-org-notice-BDJtNsoi.js";import"./command-Cnr_FK8b.js";import"./index-BOZLd_mz.js";import"./project-icon-DZXi7sAH.js";import"./required-auth-layout-CIegJY7n.js";import"./use-org-sso-B_DIN1FR.js";import"./sheet-7dqWERZ-.js";import"./use-navigate-to-agent-BsGybLOl.js";import"./use-thread-outputs-TjNPQ11p.js";import"./file-type-icon-B-E6HvV1.js";import"./sandbox-lifecycle-context-D0cxi8em.js";import"./sandbox-url-D3mC8qhT.js";import"./use-task-metadata-2SHzp2HZ.js";import"./use-project-native-view-presence-DsW3Hqqc.js";import"./virtual-mcp-DCGU1nRB.js";function it(){const s=z.c(3),[e,t]=Z.useState(-1);let r;s[0]===Symbol.for("react.memo_cache_sentinel")?(r=n=>{if(!n)return;const a=()=>t(n.clientWidth);a();const c=new ResizeObserver(a);return c.observe(n),()=>c.disconnect()},s[0]=r):r=s[0];const l=r;let o;return s[1]!==e?(o=[e,l],s[1]=e,s[2]=o):o=s[2],o}function rt(s){const e=z.c(6),{virtualMcpId:t}=s,r=We(t),l=Ge();let o;e[0]!==l||e[1]!==r?(o=Ze(l,et(r)),e[0]=l,e[1]=r,e[2]=o):o=e[2];const n=o;if(!n){let c;return e[3]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(st,{}),e[3]=c):c=e[3],c}let a;return e[4]!==n?(a=i.jsx(nt,{config:n}),e[4]=n,e[5]=a):a=e[5],a}function st(){const s=z.c(12),e=ae();let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx("div",{className:"flex size-12 items-center justify-center rounded-full bg-muted",children:i.jsx(Ae,{size:20,className:"text-muted-foreground"})}),s[0]=t):t=s[0];let r;s[1]!==e?(r=e("assets.browser.noBucketTitle"),s[1]=e,s[2]=r):r=s[2];let l;s[3]!==r?(l=i.jsx("p",{className:"text-sm font-medium",children:r}),s[3]=r,s[4]=l):l=s[4];let o;s[5]!==e?(o=e("assets.browser.noBucketDescription"),s[5]=e,s[6]=o):o=s[6];let n;s[7]!==o?(n=i.jsx("p",{className:"mt-1 max-w-sm text-xs text-muted-foreground",children:o}),s[7]=o,s[8]=n):n=s[8];let a;return s[9]!==l||s[10]!==n?(a=i.jsxs("div",{className:"flex h-full min-h-0 flex-col items-center justify-center gap-3 p-10 text-center",children:[t,i.jsxs("div",{children:[l,n]})]}),s[9]=l,s[10]=n,s[11]=a):a=s[11],a}function lt(s){return s<0||s<640?2:s<768?3:s<1024?4:5}function ot(s,e){const t=Array.from({length:e},()=>[]);return s.forEach((r,l)=>t[l%e].push(r)),t}function nt(s){const e=z.c(99),{config:t}=s,r=ae(),[l,o]=Z.useState(""),n=qe(l,300);let a;e[0]!==t.id||e[1]!==n?(a={configId:t.id,search:n},e[0]=t.id,e[1]=n,e[2]=a):a=e[2];const c=He(a),m=Ke(),[y,p]=Z.useState(!1),[d,g]=Z.useState(null),u=Z.useRef(null);let h;e[3]!==t.id||e[4]!==c||e[5]!==r||e[6]!==m?(h=async function(_){if(!_)return;const ee=Array.from(_);if(ee.length===0)return;const $=[];for(const R of ee)try{await m.mutateAsync({configId:t.id,file:R})}catch(I){const F=I;$.push(`${R.name} (${F instanceof Error?F.message:"upload failed"})`)}await c.refetch(),$.length>0&&ce.error($.length===ee.length?r("filePicker.filePickerDialog.uploadFailedAll",{errors:$.join("; ")}):r("filePicker.filePickerDialog.uploadFailedSome",{errors:$.join("; ")}))},e[3]=t.id,e[4]=c,e[5]=r,e[6]=m,e[7]=h):h=e[7];const x=h;let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=function(_){_.preventDefault(),p(!0)},e[8]=f):f=e[8];const b=f;let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=function(){p(!1)},e[9]=v):v=e[9];const A=v;let k;e[10]!==x?(k=function(_){_.preventDefault(),_.stopPropagation(),p(!1),x(_.dataTransfer.files)},e[10]=x,e[11]=k):k=e[11];const j=k,[P,S]=it();let D,N,C,w,M,U;if(e[12]!==t.name||e[13]!==n||e[14]!==S||e[15]!==P||e[16]!==x||e[17]!==y||e[18]!==c.data?.pages||e[19]!==c.isFetching||e[20]!==c.isFetchingNextPage||e[21]!==j||e[22]!==l||e[23]!==r||e[24]!==m.isPending){const _=(c.data?.pages??[]).flatMap(ct),ee=ot(_,lt(P)),$=n.trim(),R=l!==n||c.isFetching&&!c.isFetchingNextPage;M="flex h-full min-h-0 flex-col gap-3 p-4";let I;e[31]!==r?(I=r("assets.browser.title"),e[31]=r,e[32]=I):I=e[32];let F;e[33]!==I?(F=i.jsx("h2",{className:"text-sm font-semibold",children:I}),e[33]=I,e[34]=F):F=e[34];let B;e[35]!==t.name||e[36]!==r?(B=r("assets.browser.bucketLabel",{name:t.name}),e[35]=t.name,e[36]=r,e[37]=B):B=e[37];let L;e[38]!==B?(L=i.jsx("p",{className:"truncate text-xs text-muted-foreground",children:B}),e[38]=B,e[39]=L):L=e[39];let V;e[40]!==F||e[41]!==L?(V=i.jsxs("div",{className:"min-w-0",children:[F,L]}),e[40]=F,e[41]=L,e[42]=V):V=e[42];let se;e[43]===Symbol.for("react.memo_cache_sentinel")?(se=()=>u.current?.click(),e[43]=se):se=e[43];let W;e[44]!==m.isPending?(W=m.isPending?i.jsx(ge,{className:"size-3.5"}):i.jsx(he,{size:14}),e[44]=m.isPending,e[45]=W):W=e[45];let q;e[46]!==r||e[47]!==m.isPending?(q=m.isPending?r("filePicker.filePickerDialog.uploading"):r("filePicker.filePickerDialog.dropFilesOrClick"),e[46]=r,e[47]=m.isPending,e[48]=q):q=e[48];let G;e[49]!==W||e[50]!==q||e[51]!==m.isPending?(G=i.jsxs(xe,{type:"button",size:"sm",disabled:m.isPending,onClick:se,children:[W,q]}),e[49]=W,e[50]=q,e[51]=m.isPending,e[52]=G):G=e[52];let H;e[53]!==x?(H=i.jsx("input",{ref:u,type:"file",multiple:!0,className:"hidden",onChange:ne=>{const pe=Array.from(ne.target.files??[]);ne.target.value="",x(pe)}}),e[53]=x,e[54]=H):H=e[54],e[55]!==V||e[56]!==G||e[57]!==H?(U=i.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-3",children:[V,G,H]}),e[55]=V,e[56]=G,e[57]=H,e[58]=U):U=e[58];let K;e[59]!==r?(K=r("filePicker.filePickerDialog.searchFilesPlaceholder"),e[59]=r,e[60]=K):K=e[60],e[61]!==R||e[62]!==l||e[63]!==K?(D=i.jsx(Ve,{value:l,onChange:o,isSearching:R,placeholder:K,className:"shrink-0"}),e[61]=R,e[62]=l,e[63]=K,e[64]=D):D=e[64];let le;e[65]===Symbol.for("react.memo_cache_sentinel")?(le=()=>u.current?.click(),e[65]=le):le=e[65];const me=y&&"border-primary bg-primary/5",fe=m.isPending&&"pointer-events-none opacity-60";let Q;e[66]!==me||e[67]!==fe?(Q=je("flex shrink-0 flex-col items-center justify-center gap-1 rounded-xl border border-dashed border-border/60 p-4 text-center transition-colors",me,fe),e[66]=me,e[67]=fe,e[68]=Q):Q=e[68];let oe;e[69]===Symbol.for("react.memo_cache_sentinel")?(oe=i.jsx(he,{size:16,className:"text-muted-foreground"}),e[69]=oe):oe=e[69];let Y;e[70]!==r?(Y=r("filePicker.filePickerDialog.dropFilesOrClick"),e[70]=r,e[71]=Y):Y=e[71];let J;e[72]!==r?(J=r("filePicker.filePickerDialog.uploadSizeLimit"),e[72]=r,e[73]=J):J=e[73];let X;e[74]!==Y||e[75]!==J?(X=i.jsxs("p",{className:"text-xs text-muted-foreground",children:[Y," ",J]}),e[74]=Y,e[75]=J,e[76]=X):X=e[76],e[77]!==j||e[78]!==Q||e[79]!==X?(N=i.jsxs("button",{type:"button",onClick:le,onDragOver:b,onDragLeave:A,onDrop:j,className:Q,children:[oe,X]}),e[77]=j,e[78]=Q,e[79]=X,e[80]=N):N=e[80],C="min-h-0 flex-1 overflow-y-auto pr-1",w=_.length===0?$?i.jsx(be,{title:r("filePicker.filePickerDialog.noMatches",{query:$}),description:r("filePicker.filePickerDialog.tryDifferentSearchOrLoadMore")}):i.jsx(be,{title:r("filePicker.filePickerDialog.noFilesYet"),description:r("filePicker.filePickerDialog.dropFileToGetStarted")}):i.jsx("div",{ref:S,className:"flex items-start gap-3",children:ee.map((ne,pe)=>i.jsx("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:ne.map(de=>i.jsx(at,{item:de,onDelete:()=>g(de)},de.key))},pe))}),e[12]=t.name,e[13]=n,e[14]=S,e[15]=P,e[16]=x,e[17]=y,e[18]=c.data?.pages,e[19]=c.isFetching,e[20]=c.isFetchingNextPage,e[21]=j,e[22]=l,e[23]=r,e[24]=m.isPending,e[25]=D,e[26]=N,e[27]=C,e[28]=w,e[29]=M,e[30]=U}else D=e[25],N=e[26],C=e[27],w=e[28],M=e[29],U=e[30];let T;e[81]!==c||e[82]!==r?(T=c.hasNextPage&&i.jsx("div",{className:"flex justify-center py-4",children:i.jsx(xe,{type:"button",variant:"outline",size:"sm",disabled:c.isFetchingNextPage,onClick:()=>c.fetchNextPage(),children:c.isFetchingNextPage?i.jsxs(i.Fragment,{children:[i.jsx(ge,{className:"size-3.5"}),r("filePicker.filePickerDialog.loading")]}):r("filePicker.filePickerDialog.loadMore")})}),e[81]=c,e[82]=r,e[83]=T):T=e[83];let E;e[84]!==T||e[85]!==C||e[86]!==w?(E=i.jsxs("div",{className:C,children:[w,T]}),e[84]=T,e[85]=C,e[86]=w,e[87]=E):E=e[87];let te;e[88]===Symbol.for("react.memo_cache_sentinel")?(te=()=>g(null),e[88]=te):te=e[88];let O;e[89]!==t.id||e[90]!==d?(O=i.jsx(pt,{configId:t.id,item:d,onClose:te}),e[89]=t.id,e[90]=d,e[91]=O):O=e[91];let ie;return e[92]!==D||e[93]!==N||e[94]!==E||e[95]!==O||e[96]!==M||e[97]!==U?(ie=i.jsxs("div",{className:M,children:[U,D,N,E,O]}),e[92]=D,e[93]=N,e[94]=E,e[95]=O,e[96]=M,e[97]=U,e[98]=ie):ie=e[98],ie}function ct(s){return s.items}function be(s){const e=z.c(8),{title:t,description:r}=s;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsx("div",{className:"flex size-10 items-center justify-center rounded-full bg-muted",children:i.jsx(we,{size:18,className:"text-muted-foreground"})}),e[0]=l):l=e[0];let o;e[1]!==t?(o=i.jsx("p",{className:"text-sm font-medium",children:t}),e[1]=t,e[2]=o):o=e[2];let n;e[3]!==r?(n=i.jsx("p",{className:"text-xs text-muted-foreground",children:r}),e[3]=r,e[4]=n):n=e[4];let a;return e[5]!==o||e[6]!==n?(a=i.jsxs("div",{className:"flex h-full min-h-40 flex-col items-center justify-center gap-2 py-8 text-center",children:[l,o,n]}),e[5]=o,e[6]=n,e[7]=a):a=e[7],a}function at(s){const e=z.c(34),{item:t,onDelete:r}=s;let l;e[0]!==t.key?(l=Qe(t.key),e[0]=t.key,e[1]=l):l=e[1];const o=l;let n;e[2]!==t.key?(n=Ye(t.key),e[2]=t.key,e[3]=n):n=e[3];const a=n;let c;e[4]!==a||e[5]!==t.key||e[6]!==t.publicUrl?(c=a?i.jsx("img",{src:t.publicUrl,alt:t.key,loading:"lazy",className:"block h-auto w-full",onError:mt}):i.jsx("div",{className:"flex aspect-square items-center justify-center",children:i.jsx(Ce,{size:28,className:"text-muted-foreground"})}),e[4]=a,e[5]=t.key,e[6]=t.publicUrl,e[7]=c):c=e[7];let m;e[8]!==t.key||e[9]!==t.publicUrl||e[10]!==c?(m=i.jsx("a",{href:t.publicUrl,target:"_blank",rel:"noreferrer",title:t.key,className:"block transition hover:ring-2 hover:ring-inset hover:ring-primary",children:c}),e[8]=t.key,e[9]=t.publicUrl,e[10]=c,e[11]=m):m=e[11];const y=t.key;let p;e[12]!==t.key?(p=ke(t.key),e[12]=t.key,e[13]=p):p=e[13];let d;e[14]!==t.key||e[15]!==p?(d=i.jsx("p",{className:"truncate text-xs font-medium",title:y,children:p}),e[14]=t.key,e[15]=p,e[16]=d):d=e[16];let g;e[17]!==t.size?(g=Je(t.size),e[17]=t.size,e[18]=g):g=e[18];let u;e[19]!==o||e[20]!==g?(u=i.jsxs("p",{className:"text-[10px] uppercase text-muted-foreground",children:[o," · ",g]}),e[19]=o,e[20]=g,e[21]=u):u=e[21];let h;e[22]!==d||e[23]!==u?(h=i.jsxs("div",{className:"min-w-0 flex-1",children:[d,u]}),e[22]=d,e[23]=u,e[24]=h):h=e[24];let x;e[25]!==t||e[26]!==r?(x=i.jsx(ft,{item:t,onDelete:r}),e[25]=t,e[26]=r,e[27]=x):x=e[27];let f;e[28]!==h||e[29]!==x?(f=i.jsxs("div",{className:"flex items-center gap-1 border-t border-border/60 bg-background px-2 py-1.5",children:[h,x]}),e[28]=h,e[29]=x,e[30]=f):f=e[30];let b;return e[31]!==f||e[32]!==m?(b=i.jsxs("div",{className:"group relative flex flex-col overflow-hidden rounded-lg border border-border/60 bg-muted",children:[m,f]}),e[31]=f,e[32]=m,e[33]=b):b=e[33],b}function mt(s){s.target.style.display="none"}function ft(s){const e=z.c(36),{item:t,onDelete:r}=s,l=ae(),[o,n]=Z.useState(!1);let a;e[0]!==t.publicUrl||e[1]!==l?(a=async function(){try{await navigator.clipboard.writeText(t.publicUrl),n(!0),window.setTimeout(()=>n(!1),1500)}catch{ce.error(l("filePicker.filePickerDialog.failedToCopyUrl"))}},e[0]=t.publicUrl,e[1]=l,e[2]=a):a=e[2];const c=a;let m;e[3]!==l?(m=l("filePicker.filePickerDialog.assetActions"),e[3]=l,e[4]=m):m=e[4];let y;e[5]===Symbol.for("react.memo_cache_sentinel")?(y=i.jsx(Se,{size:14}),e[5]=y):y=e[5];let p;e[6]!==m?(p=i.jsx(Re,{asChild:!0,children:i.jsx(xe,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0 rounded-md","aria-label":m,children:y})}),e[6]=m,e[7]=p):p=e[7];let d;e[8]!==o?(d=o?i.jsx(Ne,{size:14}):i.jsx(ve,{size:14}),e[8]=o,e[9]=d):d=e[9];let g;e[10]!==o||e[11]!==l?(g=l(o?"filePicker.filePickerDialog.copied":"filePicker.filePickerDialog.copyUrl"),e[10]=o,e[11]=l,e[12]=g):g=e[12];let u;e[13]!==c||e[14]!==d||e[15]!==g?(u=i.jsxs(ue,{onClick:c,children:[d,g]}),e[13]=c,e[14]=d,e[15]=g,e[16]=u):u=e[16];const h=t.publicUrl;let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x=i.jsx(_e,{size:14}),e[17]=x):x=e[17];let f;e[18]!==l?(f=l("filePicker.filePickerDialog.openInNewTab"),e[18]=l,e[19]=f):f=e[19];let b;e[20]!==t.publicUrl||e[21]!==f?(b=i.jsx(ue,{asChild:!0,children:i.jsxs("a",{href:h,target:"_blank",rel:"noreferrer",children:[x,f]})}),e[20]=t.publicUrl,e[21]=f,e[22]=b):b=e[22];let v;e[23]===Symbol.for("react.memo_cache_sentinel")?(v=i.jsx(ze,{size:14}),e[23]=v):v=e[23];let A;e[24]!==l?(A=l("assets.browser.deleteAction"),e[24]=l,e[25]=A):A=e[25];let k;e[26]!==r||e[27]!==A?(k=i.jsxs(ue,{variant:"destructive",onClick:r,children:[v,A]}),e[26]=r,e[27]=A,e[28]=k):k=e[28];let j;e[29]!==b||e[30]!==k||e[31]!==u?(j=i.jsxs(Be,{align:"end",children:[u,b,k]}),e[29]=b,e[30]=k,e[31]=u,e[32]=j):j=e[32];let P;return e[33]!==j||e[34]!==p?(P=i.jsxs(Le,{children:[p,j]}),e[33]=j,e[34]=p,e[35]=P):P=e[35],P}function pt(s){const e=z.c(47),{configId:t,item:r,onClose:l}=s,o=ae(),n=Xe();let a;e[0]!==t||e[1]!==n||e[2]!==r||e[3]!==l||e[4]!==o?(a=async function(){if(r)try{await n.mutateAsync({configId:t,key:r.key}),ce.success(o("assets.browser.deleted")),l()}catch{ce.error(o("assets.browser.deleteFailed"))}},e[0]=t,e[1]=n,e[2]=r,e[3]=l,e[4]=o,e[5]=a):a=e[5];const c=a,m=!!r;let y;e[6]!==l?(y=w=>!w&&l(),e[6]=l,e[7]=y):y=e[7];let p;e[8]!==o?(p=o("assets.browser.deleteConfirmTitle"),e[8]=o,e[9]=p):p=e[9];let d;e[10]!==p?(d=i.jsx(Fe,{children:p}),e[10]=p,e[11]=d):d=e[11];let g;e[12]!==r||e[13]!==o?(g=o("assets.browser.deleteConfirmDescription",{name:r?ke(r.key):""}),e[12]=r,e[13]=o,e[14]=g):g=e[14];let u;e[15]!==g?(u=i.jsx(Ue,{children:g}),e[15]=g,e[16]=u):u=e[16];let h;e[17]!==d||e[18]!==u?(h=i.jsxs($e,{children:[d,u]}),e[17]=d,e[18]=u,e[19]=h):h=e[19];const x=n.isPending;let f;e[20]!==o?(f=o("assets.browser.deleteCancel"),e[20]=o,e[21]=f):f=e[21];let b;e[22]!==n.isPending||e[23]!==f?(b=i.jsx(Ie,{disabled:x,children:f}),e[22]=n.isPending,e[23]=f,e[24]=b):b=e[24];let v;e[25]===Symbol.for("react.memo_cache_sentinel")?(v=je(ye({variant:"destructive"})),e[25]=v):v=e[25];const A=n.isPending;let k;e[26]!==c?(k=w=>{w.preventDefault(),c()},e[26]=c,e[27]=k):k=e[27];let j;e[28]!==n.isPending?(j=n.isPending?i.jsx(ge,{className:"size-3.5"}):null,e[28]=n.isPending,e[29]=j):j=e[29];let P;e[30]!==o?(P=o("assets.browser.deleteConfirm"),e[30]=o,e[31]=P):P=e[31];let S;e[32]!==n.isPending||e[33]!==k||e[34]!==j||e[35]!==P?(S=i.jsxs(Me,{className:v,disabled:A,onClick:k,children:[j,P]}),e[32]=n.isPending,e[33]=k,e[34]=j,e[35]=P,e[36]=S):S=e[36];let D;e[37]!==b||e[38]!==S?(D=i.jsxs(Te,{children:[b,S]}),e[37]=b,e[38]=S,e[39]=D):D=e[39];let N;e[40]!==D||e[41]!==h?(N=i.jsxs(Ee,{children:[h,D]}),e[40]=D,e[41]=h,e[42]=N):N=e[42];let C;return e[43]!==N||e[44]!==m||e[45]!==y?(C=i.jsx(Oe,{open:m,onOpenChange:y,children:N}),e[43]=N,e[44]=m,e[45]=y,e[46]=C):C=e[46],C}function dt(){const s=z.c(2),e=tt();let t;return s[0]!==e?(t=i.jsx(De,{tabId:"assets",children:i.jsx(rt,{virtualMcpId:e})}),s[0]=e,s[1]=t):t=s[1],t}function As(){const s=z.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Pe.Content,{children:i.jsx(dt,{})}),s[0]=e):e=s[0],e}export{As as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as ce,b as me,r as D,j as t,B as q,l as It,M as gt,t as oe,as as $t,h as _e,o as Se,ad as At,az as Ye,aA as Pt,a4 as zt,P as Ue,av as ht,f as Et}from"./index-CLlne17T.js";import{C as Kt}from"./index-Bo7i1ufS.js";import{a4 as Ft,a5 as Ot,a6 as Mt,I as Ze,a7 as Rt,c as Lt,a8 as Te}from"./agent-icon-ByB43Wsk.js";import{i as Ut}from"./Check-B2FZLF1O.js";import{t as Be}from"./ChevronUp-DgIot4i7.js";import{c as Wt}from"./UserSquare-XPgiOUWe.js";import{s as et}from"./Database01-BsiMLwmb.js";import{d as Ge,a as jt}from"./Tool01-0YKAjW__.js";import{a as Vt}from"./Printer-CSBhu2Re.js";import{i as tt}from"./Share07-DH92YWbU.js";import{i as Bt}from"./GitBranch01-CI-WDVa2.js";import{i as He}from"./Globe01-BkG0TYp3.js";import{a as Gt}from"./Image01-CUco8f4C.js";import{i as Ht}from"./SearchMd-C6NFUW36.js";import{t as yt}from"./Stars01-BxBiTUsk.js";import{B as Xt}from"./badge-o8ORXLbv.js";import{C as bt}from"./checkbox-rssR-x4C.js";import{S as vt}from"./switch-BJDpH17-.js";import{a as Ct,b as Nt,P as St}from"./popover-CvNYvXj5.js";import{C as Jt,a as st,b as Qt,d as qt,e as Yt,c as Zt}from"./command-CuPZrFd2.js";import{g as es,s as ts}from"./gateway-client-DboI1W5S.js";import{u as Xe}from"./use-connection-DnMnsTE-.js";import{u as ss}from"./use-mcp-client-B-bmV-eU.js";import{u as os}from"./use-mcp-tools-CaJdkF9p.js";import{I as ns}from"./integration-icon-Bd7DOoer.js";import{M as as}from"./select-model-B-XEXZYZ.js";import{u as is}from"./use-ai-providers-DXXr4ex9.js";import{U as rs,b as ls}from"./build-improve-prompt-doc-D6CNE90Q.js";import{a as Fe,c as cs,d as ds}from"./use-automations-CtSWH9Gm.js";import{b as ms,a as us,t as ps,g as fs}from"./chat-context-BmwCoPvA.js";import{b as xs,C as gs,a as hs}from"./collapsible-MEYp44rr.js";import{I as ot}from"./input-CP_e0ZMg.js";import{c as js,T as ys,a as bs}from"./tooltip-Cg0iEw6_.js";import{u as vs}from"./shell-layout-ZE4ZeZq_.js";import{i as kt}from"./ArrowLeft-DDPJQXhG.js";import{i as Cs}from"./ArrowUp-BlHEAyyd.js";import{s as Ns}from"./Trash01-Dp2yrMxt.js";import{s as Je}from"./XClose-DYRx__Hg.js";import{u as nt}from"./use-debounced-autosave-BWXcEqzZ.js";import{T as Ss,a as ks}from"./input-dbYO6Ois.js";import{c as Ts,D as ws,b as _s,h as Ds,i as Is,j as $s,a as Ae}from"./dropdown-menu-CvTP8MXO.js";import{s as As}from"./Plus-BiYlKLxl.js";import{i as Qe}from"./Zap-CCglgveU.js";import{d as Ps,h as zs,c as Es,e as Ks,b as Fs,D as Os}from"./dialog-CDr-V9u8.js";import{b as Ms,a as Rs,T as at}from"./tabs-BH0t-Qit.js";import{a as We}from"./Copy01-DN3tqM8L.js";import{M as Ls}from"./monaco-editor-DI4bGJ1L.js";import{A as it,a as rt,b as lt,c as ct,g as dt,d as mt,e as ut,f as pt}from"./alert-dialog-OWb4AclI.js";import{S as Pe,b as ze,a as Ee,d as Ke,c as Oe}from"./select-dS1ZvUUC.js";import{A as Us}from"./automation-runs-CQxYoSpJ.js";import{C as Ws}from"./collection-tabs-Bhq66UPx.js";import{a as Vs}from"./use-panel-navigate-D0KroJxZ.js";import"./use-mobile-DmHecFjh.js";import"./index-BoL7Aq4U.js";import"./resizable-BEe23Qjj.js";import"./MessageCircle01-BMp3tiX2.js";import"./thread-route-CTWLcToH.js";import"./use-route-default-main-L5fisYjs.js";import"./hooks-Rl0qRFjy.js";import"./backoff-8mStPHYB.js";import"./task-board-DlaQdjME.js";import"./schema-Brgh1n5m.js";import"./toolbar-icon-button-SyfxXpxQ.js";import"./AlertCircle-lddbBWh0.js";import"./Tool02-Bco71KeO.js";import"./ArrowRight-Cm4rUCam.js";import"./TrendUp01-D1K9L0xP.js";import"./ZoomOut-BlidBzgG.js";import"./Users03-DL_upBh-.js";import"./CheckCircle-2GspG_XT.js";import"./ChevronRight-byX-3L9r.js";import"./DotsVertical-BFzwtdUn.js";import"./CreditCard01-wo9mx3CN.js";import"./Download01-DzANKKkw.js";import"./Settings02-CqMjj8Oq.js";import"./Eye-DFJEK6aw.js";import"./File02-BE1-Eszh.js";import"./SwitchHorizontal01-BT-naaH0.js";import"./HardDrive-DuIbEWGl.js";import"./Key01-Ctr214Q3.js";import"./Link01-CyA36bfv.js";import"./LinkExternal01-EKFZjMJY.js";import"./Monitor01-C8W3wbFB.js";import"./Sun-sJn8WeT-.js";import"./Package-CpB6vYlT.js";import"./Palette-CBU77GJ1.js";import"./Play-Uhe4ebTG.js";import"./SearchLg-CN4JJES9.js";import"./Shield01-Cm4rFm8N.js";import"./Upload01-BUf7qRrI.js";import"./User01-Da1WckIS.js";import"./Users01-BsVs6-8w.js";import"./XCircle-DReUcNBS.js";import"./X-D6lVPJzO.js";import"./index-C2k5rbY0.js";import"./auth-CJPyBAbS.js";import"./drawer-DCRH2Qpg.js";import"./decopilot-DmAS8lky.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-Dr6RkrBb.js";import"./download-app-dialog-rP5j-4Hl.js";import"./use-is-desktop-app-BNujXJc_.js";import"./index-BYBuvEpZ.js";import"./autosend-CB-A5Oif.js";import"./thread-intent-DzYbKhDO.js";import"./slugify-CEUa2lfQ.js";import"./use-virtual-mcp-oRiYDLbO.js";import"./use-entitlements-CVFQAC4Y.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BCNV6ibO.js";import"./use-organization-settings-CKJ6hB3u.js";import"./index-CGenpwLF.js";import"./anchors-yqDzZN4K.js";import"./use-project-scope-BzLiG5Sw.js";import"./github-repo-BknN0SVI.js";import"./use-org-notice-CPsPmLRD.js";import"./command-palette-store-CQCOE6E9.js";import"./project-icon-W8WrTXup.js";import"./required-auth-layout-CClBZN5w.js";import"./use-org-sso-D8APIoa8.js";import"./hooks-DWxJwjQc.js";import"./index-Do5lCsEj.js";import"./form-DxDjuvl5.js";import"./label-Lvgg69zF.js";import"./utils-CVEq3hMx.js";import"./use-mcp-prompts-DwCio0Xs.js";import"./use-org-fs-aqzk40Pl.js";import"./editor-BXo85dw5.js";import"./useInfiniteQuery-BquFrdik.js";import"./infiniteQueryObserver-Q0vfsI8m.js";import"./sheet-D8oc8gwN.js";import"./table-CzYba_wo.js";import"./empty-state-3JGStYdL.js";import"./use-infinite-scroll-BE00Qe2y.js";import"./use-members-Dy9zZpXX.js";import"./use-org-auth-client-DuCptBd8.js";import"./task-status-B6cn6__r.js";import"./thread-sheet-body-HNIw97fV.js";import"./useSuspenseInfiniteQuery-430FeaXt.js";import"./pair-CEyOVwXU.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-ya7aFfBC.js";import"./usage-stats-BHRSI5Ar.js";import"./markdown-B0HtiDwM.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-qnfatYvU.js";import"./types-BQ0XHiBr.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./use-navigate-to-agent-DE31VYsQ.js";import"./use-thread-outputs-3ycn6tX8.js";import"./file-type-icon-B5ajUaH0.js";const Ve={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:Lt},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:yt},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:Rt}},Bs=["fast","smart","thinking"];function Gs(a){const e=ce.c(19),{tier:o,onSelect:i}=a,n=me(),[s,l]=D.useState(!1),r=Ve[o].icon;let j;e[0]!==r?(j=t.jsx(r,{size:14,className:"text-muted-foreground"}),e[0]=r,e[1]=j):j=e[1];const u=Ve[o];let c;e[2]!==n||e[3]!==u.labelKey?(c=n(u.labelKey),e[2]=n,e[3]=u.labelKey,e[4]=c):c=e[4];let p;e[5]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(Be,{size:14,className:"text-muted-foreground"}),e[5]=p):p=e[5];let g;e[6]!==j||e[7]!==c?(g=t.jsx(Ct,{asChild:!0,children:t.jsxs(q,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[j,c,p]})}),e[6]=j,e[7]=c,e[8]=g):g=e[8];let h;e[9]!==i||e[10]!==n||e[11]!==o?(h=Bs.map(m=>{const x=Ve[m],b=x.icon;return t.jsxs("button",{type:"button",onClick:()=>{i(m),l(!1)},className:It("flex items-start gap-2 px-2 py-1.5 rounded-md text-left hover:bg-muted"),children:[t.jsx(b,{size:16,className:"shrink-0 text-muted-foreground mt-0.5"}),t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"text-sm",children:n(x.labelKey)}),t.jsx("div",{className:"text-xs text-muted-foreground",children:n(x.subtitleKey)})]}),m===o&&t.jsx(Ut,{size:14,className:"text-foreground mt-0.5"})]},m)}),e[9]=i,e[10]=n,e[11]=o,e[12]=h):h=e[12];let d;e[13]!==h?(d=t.jsx(Nt,{align:"start",className:"p-1 w-64",children:t.jsx("div",{className:"flex flex-col",children:h})}),e[13]=h,e[14]=d):d=e[14];let f;return e[15]!==s||e[16]!==g||e[17]!==d?(f=t.jsxs(St,{open:s,onOpenChange:l,children:[g,d]}),e[15]=s,e[16]=g,e[17]=d,e[18]=f):f=e[18],f}function Hs(a){const e=ce.c(27),{tier:o,onTierChange:i,override:n,onOverrideChange:s}=a,l=me(),[r,j]=D.useState(n!==null);let u;e[0]!==l?(u=l("automations.automationConfig.modelLabel"),e[0]=l,e[1]=u):u=e[1];let c;e[2]!==u?(c=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:u}),e[2]=u,e[3]=c):c=e[3];let p;e[4]!==s||e[5]!==i||e[6]!==n||e[7]!==l||e[8]!==o||e[9]!==r?(p=r?t.jsx(D.Suspense,{fallback:t.jsx(q,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:l("automations.automationConfig.loadingModels")}),children:t.jsx(Xs,{override:n,onOverrideChange:s})}):t.jsx(Gs,{tier:o,onSelect:i}),e[4]=s,e[5]=i,e[6]=n,e[7]=l,e[8]=o,e[9]=r,e[10]=p):p=e[10];let g;e[11]!==s?(g=b=>{j(b),b||s(null)},e[11]=s,e[12]=g):g=e[12];let h;e[13]!==g||e[14]!==r?(h=t.jsx(vt,{checked:r,onCheckedChange:g,className:"cursor-pointer"}),e[13]=g,e[14]=r,e[15]=h):h=e[15];let d;e[16]!==l?(d=l("automations.automationConfig.specificModel"),e[16]=l,e[17]=d):d=e[17];let f;e[18]!==h||e[19]!==d?(f=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[h,d]}),e[18]=h,e[19]=d,e[20]=f):f=e[20];let m;e[21]!==p||e[22]!==f?(m=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[p,f]}),e[21]=p,e[22]=f,e[23]=m):m=e[23];let x;return e[24]!==c||e[25]!==m?(x=t.jsxs("div",{className:"flex flex-col gap-2",children:[c,m]}),e[24]=c,e[25]=m,e[26]=x):x=e[26],x}function Xs(a){const e=ce.c(25),{override:o,onOverrideChange:i}=a,n=me(),s=is(),l=s[0]?.id??null;let r;e[0]!==l||e[1]!==s||e[2]!==o?.credentialId?(r=s.some(x=>x.id===o?.credentialId)?o?.credentialId??null:l,e[0]=l,e[1]=s,e[2]=o?.credentialId,e[3]=r):r=e[3];const[j,u]=D.useState(r);let c;e[4]!==j||e[5]!==l||e[6]!==s?(c=s.some(x=>x.id===j)?j:l,e[4]=j,e[5]=l,e[6]=s,e[7]=c):c=e[7];const p=c;let g;e[8]!==s||e[9]!==o?(g=o&&s.some(x=>x.id===o.credentialId)?{modelId:o.modelId,title:o.title||o.modelId,keyId:o.credentialId,providerId:"deco",description:null,logo:null,capabilities:[],limits:null,costs:null}:null,e[8]=s,e[9]=o,e[10]=g):g=e[10];const h=g;if(s.length===0){let x;e[11]!==n?(x=n("automations.automationConfig.connectAiProviderHint"),e[11]=n,e[12]=x):x=e[12];let b;return e[13]!==x?(b=t.jsx("span",{className:"text-xs text-muted-foreground italic",children:x}),e[13]=x,e[14]=b):b=e[14],b}let d;e[15]!==n?(d=n("automations.automationConfig.pickModelPlaceholder"),e[15]=n,e[16]=d):d=e[16];let f;e[17]!==p||e[18]!==i?(f=x=>{const b=x.keyId??p??"";u(b),i({modelId:x.modelId,credentialId:b,title:x.title??x.modelId})},e[17]=p,e[18]=i,e[19]=f):f=e[19];let m;return e[20]!==p||e[21]!==h||e[22]!==d||e[23]!==f?(m=t.jsx("div",{className:"w-fit max-w-full [&_button]:rounded-md",children:t.jsx(as,{variant:"bordered",placeholder:d,model:h,credentialId:p,onCredentialChange:u,onModelChange:f})}),e[20]=p,e[21]=h,e[22]=d,e[23]=f,e[24]=m):m=e[24],m}const Tt=[{key:"capabilities",headingKey:"automations.automationConfig.builtinCapabilities",icon:Ge,tools:[{name:"web_search",titleKey:"automations.automationConfig.toolWebSearch",descriptionKey:"automations.automationConfig.toolWebSearchDesc",icon:He},{name:"generate_image",titleKey:"automations.automationConfig.toolGenerateImage",descriptionKey:"automations.automationConfig.toolGenerateImageDesc",icon:Gt},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:Bt},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:Ft}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:tt,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:Vt},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:jt},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:Ot},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:Ht},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:tt},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:Mt}]},{key:"context",headingKey:"automations.automationConfig.context",icon:et,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:et},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:Ze},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:Ze}]}],Js=Tt.flatMap(a=>a.tools.map(e=>e.name));function Qs(a){const e=a.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,o=>o.toUpperCase()):a}function qs(a){const e=ce.c(12),{agentId:o,value:i,onChange:n}=a,s=me();let l;e[0]!==s?(l=s("automations.automationConfig.toolsLabel"),e[0]=s,e[1]=l):l=e[1];let r;e[2]!==l?(r=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:l}),e[2]=l,e[3]=r):r=e[3];let j;e[4]!==o||e[5]!==n||e[6]!==s||e[7]!==i?(j=o?t.jsx(D.Suspense,{fallback:t.jsxs(q,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:[t.jsx(Ge,{size:14}),s("automations.automationConfig.loadingTools")]}),children:t.jsx(Ys,{agentId:o,value:i,onChange:n})}):t.jsx("span",{className:"text-xs text-muted-foreground italic",children:s("automations.automationConfig.pickAgentFirst")}),e[4]=o,e[5]=n,e[6]=s,e[7]=i,e[8]=j):j=e[8];let u;return e[9]!==r||e[10]!==j?(u=t.jsxs("div",{className:"flex flex-col gap-2",children:[r,j]}),e[9]=r,e[10]=j,e[11]=u):u=e[11],u}function ft(a){const e=ce.c(17),{value:o,checked:i,onToggle:n,title:s,description:l,leading:r}=a;let j;e[0]!==i?(j=t.jsx(bt,{checked:i,className:"pointer-events-none mt-0.5"}),e[0]=i,e[1]=j):j=e[1];let u;e[2]!==r?(u=r&&t.jsx("span",{className:"mt-px shrink-0",children:r}),e[2]=r,e[3]=u):u=e[3];let c;e[4]!==s?(c=t.jsx("span",{className:"truncate text-sm leading-tight",children:s}),e[4]=s,e[5]=c):c=e[5];let p;e[6]!==l?(p=l&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:l}),e[6]=l,e[7]=p):p=e[7];let g;e[8]!==c||e[9]!==p?(g=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[c,p]}),e[8]=c,e[9]=p,e[10]=g):g=e[10];let h;return e[11]!==n||e[12]!==j||e[13]!==u||e[14]!==g||e[15]!==o?(h=t.jsxs(Qt,{value:o,onSelect:n,className:"items-start gap-2.5 py-2",children:[j,u,g]}),e[11]=n,e[12]=j,e[13]=u,e[14]=g,e[15]=o,e[16]=h):h=e[16],h}function xt(a){const e=ce.c(27),{conn:o,label:i,icon:n,on:s,total:l,onToggle:r}=a,j=me(),u=s===l;let c;e[0]!==n||e[1]!==o?(c=o?t.jsx(ns,{icon:o.icon,name:o.title,size:"2xs"}):n?t.jsx(n,{size:14,className:"text-muted-foreground"}):t.jsx(Wt,{size:14,className:"text-muted-foreground"}),e[0]=n,e[1]=o,e[2]=c):c=e[2];let p;e[3]!==o?.title||e[4]!==i||e[5]!==j?(p=o?.title??i??j("automations.automationConfig.otherTools"),e[3]=o?.title,e[4]=i,e[5]=j,e[6]=p):p=e[6];let g;e[7]!==p?(g=t.jsx("span",{className:"truncate",children:p}),e[7]=p,e[8]=g):g=e[8];let h;e[9]!==s||e[10]!==l?(h=t.jsxs("span",{className:"text-[11px] font-normal tabular-nums text-muted-foreground/70",children:[s,"/",l]}),e[9]=s,e[10]=l,e[11]=h):h=e[11];let d;e[12]!==r?(d=C=>{C.stopPropagation(),r()},e[12]=r,e[13]=d):d=e[13];let f;e[14]!==u||e[15]!==j?(f=j(u?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=u,e[15]=j,e[16]=f):f=e[16];let m;e[17]!==d||e[18]!==f?(m=t.jsx("button",{type:"button",onClick:d,className:"text-[11px] font-medium text-primary hover:underline",children:f}),e[17]=d,e[18]=f,e[19]=m):m=e[19];let x;e[20]!==h||e[21]!==m?(x=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[h,m]}),e[20]=h,e[21]=m,e[22]=x):x=e[22];let b;return e[23]!==c||e[24]!==g||e[25]!==x?(b=t.jsxs("div",{className:"flex items-center gap-2",children:[c,g,x]}),e[23]=c,e[24]=g,e[25]=x,e[26]=b):b=e[26],b}function Ys(a){const e=ce.c(83),{agentId:o,value:i,onChange:n}=a,s=me(),{org:l}=gt(),[r,j]=D.useState(!1);let u;e[0]!==o||e[1]!==l.id||e[2]!==l.slug?(u={connectionId:o,orgId:l.id,orgSlug:l.slug},e[0]=o,e[1]=l.id,e[2]=l.slug,e[3]=u):u=e[3];const c=ss(u);let p;e[4]!==c?(p={client:c},e[4]=c,e[5]=p):p=e[5];const{data:g,isLoading:h}=os(p),d=Xe();let f,m,x,b,C,w,N,z,_,v,S,k,E;if(e[6]!==d||e[7]!==g?.tools||e[8]!==h||e[9]!==n||e[10]!==r||e[11]!==s||e[12]!==i){const H=new Map(d.map(oo)),G=new Map;for(const T of g?.tools??[]){const A=es(T._meta)??"__other__",Q=ts(T.name,A==="__other__"?void 0:A),$=T.title,xe=$&&$!==T.name?$:Qs(Q);G.has(A)||G.set(A,{clientId:A,conn:H.get(A),tools:[]}),G.get(A).tools.push({name:T.name,display:xe,description:T.description})}const V=[...G.values()].sort(so),X=(g?.tools??[]).map(to),B=[...Js,...X],L=i===null?new Set(B):new Set(i),W=B.every(T=>L.has(T)),I=T=>n(B.every(A=>T.has(A))?null:[...T]),Y=T=>{const A=new Set(L);A.has(T)?A.delete(T):A.add(T),I(A)},Z=(T,A)=>{const Q=new Set(L);for(const $ of T)A?Q.add($):Q.delete($);I(Q)};b=St,E=r,C=j;let J;e[26]===Symbol.for("react.memo_cache_sentinel")?(J=t.jsx(Ge,{size:14,className:"text-muted-foreground"}),e[26]=J):J=e[26];let ne;e[27]!==W||e[28]!==s?(ne=s(W?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=W,e[28]=s,e[29]=ne):ne=e[29];const ue=!W&&t.jsxs(Xt,{variant:"secondary",className:"ml-0.5 h-5 px-1.5 text-[11px] tabular-nums",children:[L.size,"/",B.length]});let de;e[30]===Symbol.for("react.memo_cache_sentinel")?(de=t.jsx(Be,{size:14,className:"text-muted-foreground"}),e[30]=de):de=e[30],e[31]!==ne||e[32]!==ue?(w=t.jsx(Ct,{asChild:!0,children:t.jsxs(q,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[J,ne,ue,de]})}),e[31]=ne,e[32]=ue,e[33]=w):w=e[33],x=Nt,S="p-0 w-80",k="start",m=qt;let ee;e[34]!==s?(ee=s("automations.automationConfig.searchToolsPlaceholder"),e[34]=s,e[35]=ee):ee=e[35],e[36]!==ee?(_=t.jsx(Yt,{placeholder:ee}),e[36]=ee,e[37]=_):_=e[37];const pe=W?s("automations.automationConfig.allToolsEnabled",{count:B.length}):s("automations.automationConfig.toolsEnabledCount",{enabled:L.size,total:B.length});let te;e[38]!==pe?(te=t.jsx("span",{className:"text-xs text-muted-foreground",children:pe}),e[38]=pe,e[39]=te):te=e[39];let ae;e[40]!==n?(ae=()=>n(null),e[40]=n,e[41]=ae):ae=e[41];let ie;e[42]!==s?(ie=s("automations.automationConfig.selectAll"),e[42]=s,e[43]=ie):ie=e[43];let y;e[44]!==W||e[45]!==ae||e[46]!==ie?(y=t.jsx("button",{type:"button",onClick:ae,disabled:W,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:ie}),e[44]=W,e[45]=ae,e[46]=ie,e[47]=y):y=e[47];let O;e[48]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx("span",{className:"text-muted-foreground/30",children:"·"}),e[48]=O):O=e[48];let P;e[49]!==n?(P=()=>n([]),e[49]=n,e[50]=P):P=e[50];const fe=L.size===0;let se;e[51]!==s?(se=s("automations.automationConfig.clear"),e[51]=s,e[52]=se):se=e[52];let re;e[53]!==P||e[54]!==fe||e[55]!==se?(re=t.jsx("button",{type:"button",onClick:P,disabled:fe,className:"text-xs font-medium text-muted-foreground hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:se}),e[53]=P,e[54]=fe,e[55]=se,e[56]=re):re=e[56];let le;e[57]!==y||e[58]!==re?(le=t.jsxs("div",{className:"flex items-center gap-2",children:[y,O,re]}),e[57]=y,e[58]=re,e[59]=le):le=e[59],e[60]!==te||e[61]!==le?(v=t.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[te,le]}),e[60]=te,e[61]=le,e[62]=v):v=e[62],f=Zt,N="max-h-80",z=h?t.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:s("automations.automationConfig.loadingTools")}):t.jsxs(t.Fragment,{children:[t.jsx(Jt,{children:s("automations.automationConfig.noToolsFound")}),Tt.map(T=>{const A=T.tools.map(eo),Q=A.filter($=>L.has($)).length;return t.jsx(st,{heading:t.jsx(xt,{label:s(T.headingKey),icon:T.icon,on:Q,total:A.length,onToggle:()=>Z(A,Q!==A.length)}),children:T.tools.map($=>t.jsx(ft,{value:`${s($.titleKey)} ${$.name}`,checked:L.has($.name),onToggle:()=>Y($.name),title:s($.titleKey),description:s($.descriptionKey),leading:t.jsx($.icon,{size:16,className:"text-muted-foreground"})},$.name))},T.key)}),V.map(T=>{const A=T.tools.map(Zs),Q=A.filter($=>L.has($)).length;return t.jsx(st,{heading:t.jsx(xt,{conn:T.conn,on:Q,total:A.length,onToggle:()=>Z(A,Q!==A.length)}),children:T.tools.map($=>t.jsx(ft,{value:`${$.display} ${$.name} ${T.conn?.title??""}`,checked:L.has($.name),onToggle:()=>Y($.name),title:$.display,description:$.description},$.name))},T.clientId)})]}),e[6]=d,e[7]=g?.tools,e[8]=h,e[9]=n,e[10]=r,e[11]=s,e[12]=i,e[13]=f,e[14]=m,e[15]=x,e[16]=b,e[17]=C,e[18]=w,e[19]=N,e[20]=z,e[21]=_,e[22]=v,e[23]=S,e[24]=k,e[25]=E}else f=e[13],m=e[14],x=e[15],b=e[16],C=e[17],w=e[18],N=e[19],z=e[20],_=e[21],v=e[22],S=e[23],k=e[24],E=e[25];let F;e[63]!==f||e[64]!==N||e[65]!==z?(F=t.jsx(f,{className:N,children:z}),e[63]=f,e[64]=N,e[65]=z,e[66]=F):F=e[66];let K;e[67]!==m||e[68]!==F||e[69]!==_||e[70]!==v?(K=t.jsxs(m,{children:[_,v,F]}),e[67]=m,e[68]=F,e[69]=_,e[70]=v,e[71]=K):K=e[71];let R;e[72]!==x||e[73]!==K||e[74]!==S||e[75]!==k?(R=t.jsx(x,{className:S,align:k,children:K}),e[72]=x,e[73]=K,e[74]=S,e[75]=k,e[76]=R):R=e[76];let U;return e[77]!==b||e[78]!==C||e[79]!==w||e[80]!==R||e[81]!==E?(U=t.jsxs(b,{open:E,onOpenChange:C,children:[w,R]}),e[77]=b,e[78]=C,e[79]=w,e[80]=R,e[81]=E,e[82]=U):U=e[82],U}function Zs(a){return a.name}function eo(a){return a.name}function to(a){return a.name}function so(a,e){return(a.conn?.title??a.clientId).localeCompare(e.conn?.title??e.clientId)}function oo(a){return[a.id,a]}function we(a){const e=a.trim().split(/\s+/);return e.length!==5?!1:e.every(o=>/^[\d*/,-]+$/.test(o))}function no(a){if(!a)return"Unknown schedule";const e=a.trim();if(e==="* * * * *")return"Every minute";if(e==="0 * * * *")return"Every hour";if(e==="0 0 * * *")return"Every day";if(e==="0 0 * * 1")return"Every week";const o=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(o)return`Every ${o[1]} minutes`;const i=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(i)return`Every ${i[1]} hours`;const n=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(n){const r=parseInt(n[1]??"1");return r%7===0?`Every ${r/7} weeks`:`Every ${r} days`}const s=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(s){const r=(s[2]??"0").padStart(2,"0"),j=(s[1]??"0").padStart(2,"0");return`Every day at ${r}:${j} UTC`}const l=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(l){const j=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(l[3]??"0")]??"day",u=(l[2]??"0").padStart(2,"0"),c=(l[1]??"0").padStart(2,"0");return`Every ${j} at ${u}:${c} UTC`}return a}function ao(a,e){const o=Math.max(1,a);switch(e){case"minutes":return o===1?"* * * * *":`*/${o} * * * *`;case"hours":return o===1?"0 * * * *":`0 */${o} * * *`;case"days":return o===1?"0 0 * * *":`0 0 */${o} * *`;case"weeks":return o===1?"0 0 * * 1":`0 0 */${o*7} * *`}}function io(a){const e=a.trim();if(e==="* * * * *")return{count:1,unit:"minutes"};if(e==="0 * * * *")return{count:1,unit:"hours"};if(e==="0 0 * * *")return{count:1,unit:"days"};if(e==="0 0 * * 1")return{count:1,unit:"weeks"};const o=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(o)return{count:parseInt(o[1]),unit:"minutes"};const i=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(i)return{count:parseInt(i[1]),unit:"hours"};const n=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);return n?{count:parseInt(n[1]),unit:"days"}:null}function ro(a,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[a]??a:a}const lo=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}];function co({automationId:a,open:e,onOpenChange:o,onCustomSelect:i,onEventSelect:n,onWebhookCreated:s}){const l=me(),{triggerAdd:r}=Fe(),[j,u]=D.useState(!1),c=e??j,p=d=>{o?o(d):u(d)},g=async d=>{try{await r.mutateAsync({automation_id:a,type:"cron",cron_expression:d}),oe.success(l("automations.addStarterPopover.starterAdded")),p(!1)}catch(f){const m=f instanceof Error?f.message:l("automations.addStarterPopover.failedAddStarter");oe.error(m)}},h=async()=>{try{const d=await r.mutateAsync({automation_id:a,type:"webhook"});p(!1),d.webhook?s?.(d.webhook):oe.success(l("automations.addStarterPopover.webhookStarterAdded"))}catch(d){const f=d instanceof Error?d.message:l("automations.addStarterPopover.failedAddWebhookStarter");oe.error(f)}};return t.jsxs(Ts,{open:c,onOpenChange:p,children:[t.jsx(ws,{asChild:!0,children:t.jsxs(q,{variant:"outline",size:"sm",children:[t.jsx(As,{size:14}),l("automations.addStarterPopover.addStarter")]})}),t.jsxs(_s,{align:"end",className:"w-[200px]",children:[t.jsxs(Ds,{children:[t.jsxs(Is,{className:"gap-2.5",children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.every")]}),t.jsx($s,{className:"w-[160px]",children:lo.map(d=>t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>g(d.cron),disabled:r.isPending,children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.everyUnit",{unit:d.label})]},d.cron))})]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{p(!1),i?.()},children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.customCron")]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{p(!1),n?.()},children:[t.jsx(Qe,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.event")]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{h()},disabled:r.isPending,children:[t.jsx(He,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.webhook")]})]})]})}function wt(a){const e=ce.c(39),{open:o,onOpenChange:i,url:n,token:s,title:l,description:r}=a,j=l===void 0?"Webhook ready":l,u=r===void 0?"Send a POST to this URL with the bearer token to fire the automation. The token is shown once — copy it now.":r,c=me(),[p,g]=D.useState(null),[h,d]=D.useState("curl"),[f,m]=D.useState("header"),x=D.useId();let b;e[0]!==c?(b=async(V,X)=>{try{await navigator.clipboard.writeText(V),g(X),oe.success(c("automations.webhookSecretDialog.copied")),setTimeout(()=>g(null),1500)}catch{oe.error(c("automations.webhookSecretDialog.failedCopy"))}},e[0]=c,e[1]=b):b=e[1];const C=b;let w;e[2]!==f||e[3]!==s||e[4]!==n?(w=n&&s&&f==="url"?`${n.replace(/\/$/,"")}/${s}`:n??"",e[2]=f,e[3]=s,e[4]=n,e[5]=w):w=e[5];const N=w,z=n&&s?f==="header"?`curl -X POST "${N}" \\
|
|
1
|
+
import{c as ce,b as me,r as D,j as t,B as q,l as It,M as gt,t as oe,as as $t,h as _e,o as Se,ad as At,az as Ye,aA as Pt,a4 as zt,P as Ue,av as ht,f as Et}from"./index-C6mMoKV9.js";import{C as Kt}from"./index-D7nIUPsf.js";import{a4 as Ft,a5 as Ot,a6 as Mt,I as Ze,a7 as Rt,c as Lt,a8 as Te}from"./agent-icon-DEBX0Uac.js";import{i as Ut}from"./Check-jwHdO8X-.js";import{t as Be}from"./ChevronUp-DUyCnbNx.js";import{c as Wt}from"./UserSquare-SK2C9JwY.js";import{s as et}from"./Database01-CKtQnfwM.js";import{d as Ge,a as jt}from"./Tool01-Co_K8urR.js";import{a as Vt}from"./Printer-CEzVuZMa.js";import{i as tt}from"./Share07-hoEgdikb.js";import{i as Bt}from"./GitBranch01-DzU0sPJc.js";import{i as He}from"./Globe01-CDkkg2Cy.js";import{a as Gt}from"./Image01-DZX0wWyU.js";import{i as Ht}from"./SearchMd-BnbGkmUb.js";import{t as yt}from"./Stars01-jOH0yCKk.js";import{B as Xt}from"./badge-cq278MQI.js";import{C as bt}from"./checkbox-CtSIa9d0.js";import{S as vt}from"./switch-CEhYE68G.js";import{a as Ct,b as Nt,P as St}from"./popover-DsPp8JNb.js";import{C as Jt,a as st,b as Qt,d as qt,e as Yt,c as Zt}from"./command-Cnr_FK8b.js";import{g as es,s as ts}from"./gateway-client-BrWtEU1u.js";import{u as Xe}from"./use-connection-TGwBsBZ6.js";import{u as ss}from"./use-mcp-client-B8avk6p1.js";import{u as os}from"./use-mcp-tools-BX_9PtQS.js";import{I as ns}from"./integration-icon-Xt_LxCp3.js";import{M as as}from"./select-model-GkNjuCgL.js";import{u as is}from"./use-ai-providers-Cotfg7SS.js";import{U as rs,b as ls}from"./build-improve-prompt-doc-sYHKN5HP.js";import{a as Fe,c as cs,d as ds}from"./use-automations-BWbEauvr.js";import{b as ms,a as us,t as ps,g as fs}from"./chat-context-g3Ysek-D.js";import{b as xs,C as gs,a as hs}from"./collapsible-S74ix7rA.js";import{I as ot}from"./input-CZquufhh.js";import{c as js,T as ys,a as bs}from"./tooltip-CYhjJgVA.js";import{u as vs}from"./shell-layout-DlWVwnY3.js";import{i as kt}from"./ArrowLeft-BZ_V0Q9t.js";import{i as Cs}from"./ArrowUp-DhMsgJkj.js";import{s as Ns}from"./Trash01-B1H2nTDv.js";import{s as Je}from"./XClose-nT83baSx.js";import{u as nt}from"./use-debounced-autosave-BZKMq5sx.js";import{T as Ss,a as ks}from"./input-LjvMOQDt.js";import{c as Ts,D as ws,b as _s,h as Ds,i as Is,j as $s,a as Ae}from"./dropdown-menu-BS01WOe-.js";import{s as As}from"./Plus-p771xfxl.js";import{i as Qe}from"./Zap-DlMFCTS-.js";import{d as Ps,h as zs,c as Es,e as Ks,b as Fs,D as Os}from"./dialog-BbF8R0Rt.js";import{b as Ms,a as Rs,T as at}from"./tabs-C7ptBuB8.js";import{a as We}from"./Copy01-Ba_DXyYG.js";import{M as Ls}from"./monaco-editor-BoDXf1bj.js";import{A as it,a as rt,b as lt,c as ct,g as dt,d as mt,e as ut,f as pt}from"./alert-dialog-jSpWtFPv.js";import{S as Pe,b as ze,a as Ee,d as Ke,c as Oe}from"./select-DPtaqnbY.js";import{A as Us}from"./automation-runs-BXCUbDGI.js";import{C as Ws}from"./collection-tabs-DjIYbOQ5.js";import{a as Vs}from"./use-panel-navigate-VJU3jAVP.js";import"./use-mobile-RHIQOVil.js";import"./index-8f5lsphO.js";import"./resizable-DrI2TVoh.js";import"./MessageCircle01-DOh30ucD.js";import"./thread-route-DNVTuSKD.js";import"./use-route-default-main-D5obmIIM.js";import"./hooks-BU6oBSHV.js";import"./backoff-8mStPHYB.js";import"./task-board-D_f-LuAE.js";import"./schema-WP2X1X1Z.js";import"./toolbar-icon-button-BhlTbEE9.js";import"./AlertCircle-rRQrnsQT.js";import"./Tool02-BHzOpk5z.js";import"./ArrowRight-DLmMx1GH.js";import"./TrendUp01-Cxcr4-0l.js";import"./ZoomOut-DbeadNC9.js";import"./Users03-BsQdFF8i.js";import"./CheckCircle-BXhLNUG6.js";import"./ChevronRight-qjdwy3ht.js";import"./DotsVertical-2ZMqd-18.js";import"./CreditCard01-D8ve3i2_.js";import"./Download01-CoH-UuQa.js";import"./Settings02-CFq2ETVr.js";import"./Eye-BpslXSuU.js";import"./File02-aDup41Qr.js";import"./SwitchHorizontal01-DVbyXy1C.js";import"./HardDrive-DNp6sr7j.js";import"./Key01-D2uCgYpN.js";import"./Link01-B6QrVU3H.js";import"./LinkExternal01-CKgmWkkp.js";import"./Monitor01-DT1NSOaN.js";import"./Sun-BvckUZh0.js";import"./Package-DZFJNJtq.js";import"./Palette-D9x-keux.js";import"./Play-nvjmkgl9.js";import"./SearchLg-C5H_nx3W.js";import"./Shield01-C_kVJsrZ.js";import"./Upload01-CiNRxnSv.js";import"./User01-_uMnR0k7.js";import"./Users01-C8QAjTFh.js";import"./XCircle-mKrW5aBV.js";import"./X-MotBpvxg.js";import"./index-BOZLd_mz.js";import"./auth-DekSX5bd.js";import"./drawer-BBk33oYJ.js";import"./decopilot-D-EmElSn.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-Db6Ad7E2.js";import"./download-app-dialog-CTBm_E5V.js";import"./use-is-desktop-app-BNujXJc_.js";import"./index-CexxzinB.js";import"./autosend-Cp5vfPIB.js";import"./thread-intent-CqreAI8n.js";import"./slugify-CEUa2lfQ.js";import"./use-virtual-mcp-2feYNqBo.js";import"./use-entitlements-B4c1c87k.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-QHgLexrJ.js";import"./use-organization-settings-D0M2z89A.js";import"./index-CAThN-6U.js";import"./anchors-yqDzZN4K.js";import"./use-project-scope-BCYsjRUp.js";import"./github-repo-BknN0SVI.js";import"./use-org-notice-BDJtNsoi.js";import"./command-palette-store-DQWkqX24.js";import"./project-icon-DZXi7sAH.js";import"./required-auth-layout-CIegJY7n.js";import"./use-org-sso-B_DIN1FR.js";import"./hooks-BECLyGBb.js";import"./index-Dnovg-Ty.js";import"./form-Cq6wKFPC.js";import"./label-BdNnPzHo.js";import"./utils-CVEq3hMx.js";import"./use-mcp-prompts-C35IeKKU.js";import"./use-org-fs-Dvfg7DBA.js";import"./editor-DS43SgZS.js";import"./useInfiniteQuery-Br9KmFLf.js";import"./infiniteQueryObserver-8SjYC_ek.js";import"./sheet-7dqWERZ-.js";import"./table-D5pPenOV.js";import"./empty-state-CNNGduB2.js";import"./use-infinite-scroll-BcvDIGP6.js";import"./use-members-DpENbm_3.js";import"./use-org-auth-client-WNBip5me.js";import"./task-status-DAaJYuJC.js";import"./thread-sheet-body-B21HbiTN.js";import"./useSuspenseInfiniteQuery-zJ2PG_QY.js";import"./pair-BSoDGPcF.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-D7Iw1LrJ.js";import"./usage-stats-lU60GCl7.js";import"./markdown-COVWapDi.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CI5q52w8.js";import"./types-Bgn578U0.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./use-navigate-to-agent-BsGybLOl.js";import"./use-thread-outputs-TjNPQ11p.js";import"./file-type-icon-B-E6HvV1.js";const Ve={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:Lt},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:yt},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:Rt}},Bs=["fast","smart","thinking"];function Gs(a){const e=ce.c(19),{tier:o,onSelect:i}=a,n=me(),[s,l]=D.useState(!1),r=Ve[o].icon;let j;e[0]!==r?(j=t.jsx(r,{size:14,className:"text-muted-foreground"}),e[0]=r,e[1]=j):j=e[1];const u=Ve[o];let c;e[2]!==n||e[3]!==u.labelKey?(c=n(u.labelKey),e[2]=n,e[3]=u.labelKey,e[4]=c):c=e[4];let p;e[5]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(Be,{size:14,className:"text-muted-foreground"}),e[5]=p):p=e[5];let g;e[6]!==j||e[7]!==c?(g=t.jsx(Ct,{asChild:!0,children:t.jsxs(q,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[j,c,p]})}),e[6]=j,e[7]=c,e[8]=g):g=e[8];let h;e[9]!==i||e[10]!==n||e[11]!==o?(h=Bs.map(m=>{const x=Ve[m],b=x.icon;return t.jsxs("button",{type:"button",onClick:()=>{i(m),l(!1)},className:It("flex items-start gap-2 px-2 py-1.5 rounded-md text-left hover:bg-muted"),children:[t.jsx(b,{size:16,className:"shrink-0 text-muted-foreground mt-0.5"}),t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"text-sm",children:n(x.labelKey)}),t.jsx("div",{className:"text-xs text-muted-foreground",children:n(x.subtitleKey)})]}),m===o&&t.jsx(Ut,{size:14,className:"text-foreground mt-0.5"})]},m)}),e[9]=i,e[10]=n,e[11]=o,e[12]=h):h=e[12];let d;e[13]!==h?(d=t.jsx(Nt,{align:"start",className:"p-1 w-64",children:t.jsx("div",{className:"flex flex-col",children:h})}),e[13]=h,e[14]=d):d=e[14];let f;return e[15]!==s||e[16]!==g||e[17]!==d?(f=t.jsxs(St,{open:s,onOpenChange:l,children:[g,d]}),e[15]=s,e[16]=g,e[17]=d,e[18]=f):f=e[18],f}function Hs(a){const e=ce.c(27),{tier:o,onTierChange:i,override:n,onOverrideChange:s}=a,l=me(),[r,j]=D.useState(n!==null);let u;e[0]!==l?(u=l("automations.automationConfig.modelLabel"),e[0]=l,e[1]=u):u=e[1];let c;e[2]!==u?(c=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:u}),e[2]=u,e[3]=c):c=e[3];let p;e[4]!==s||e[5]!==i||e[6]!==n||e[7]!==l||e[8]!==o||e[9]!==r?(p=r?t.jsx(D.Suspense,{fallback:t.jsx(q,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:l("automations.automationConfig.loadingModels")}),children:t.jsx(Xs,{override:n,onOverrideChange:s})}):t.jsx(Gs,{tier:o,onSelect:i}),e[4]=s,e[5]=i,e[6]=n,e[7]=l,e[8]=o,e[9]=r,e[10]=p):p=e[10];let g;e[11]!==s?(g=b=>{j(b),b||s(null)},e[11]=s,e[12]=g):g=e[12];let h;e[13]!==g||e[14]!==r?(h=t.jsx(vt,{checked:r,onCheckedChange:g,className:"cursor-pointer"}),e[13]=g,e[14]=r,e[15]=h):h=e[15];let d;e[16]!==l?(d=l("automations.automationConfig.specificModel"),e[16]=l,e[17]=d):d=e[17];let f;e[18]!==h||e[19]!==d?(f=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[h,d]}),e[18]=h,e[19]=d,e[20]=f):f=e[20];let m;e[21]!==p||e[22]!==f?(m=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[p,f]}),e[21]=p,e[22]=f,e[23]=m):m=e[23];let x;return e[24]!==c||e[25]!==m?(x=t.jsxs("div",{className:"flex flex-col gap-2",children:[c,m]}),e[24]=c,e[25]=m,e[26]=x):x=e[26],x}function Xs(a){const e=ce.c(25),{override:o,onOverrideChange:i}=a,n=me(),s=is(),l=s[0]?.id??null;let r;e[0]!==l||e[1]!==s||e[2]!==o?.credentialId?(r=s.some(x=>x.id===o?.credentialId)?o?.credentialId??null:l,e[0]=l,e[1]=s,e[2]=o?.credentialId,e[3]=r):r=e[3];const[j,u]=D.useState(r);let c;e[4]!==j||e[5]!==l||e[6]!==s?(c=s.some(x=>x.id===j)?j:l,e[4]=j,e[5]=l,e[6]=s,e[7]=c):c=e[7];const p=c;let g;e[8]!==s||e[9]!==o?(g=o&&s.some(x=>x.id===o.credentialId)?{modelId:o.modelId,title:o.title||o.modelId,keyId:o.credentialId,providerId:"deco",description:null,logo:null,capabilities:[],limits:null,costs:null}:null,e[8]=s,e[9]=o,e[10]=g):g=e[10];const h=g;if(s.length===0){let x;e[11]!==n?(x=n("automations.automationConfig.connectAiProviderHint"),e[11]=n,e[12]=x):x=e[12];let b;return e[13]!==x?(b=t.jsx("span",{className:"text-xs text-muted-foreground italic",children:x}),e[13]=x,e[14]=b):b=e[14],b}let d;e[15]!==n?(d=n("automations.automationConfig.pickModelPlaceholder"),e[15]=n,e[16]=d):d=e[16];let f;e[17]!==p||e[18]!==i?(f=x=>{const b=x.keyId??p??"";u(b),i({modelId:x.modelId,credentialId:b,title:x.title??x.modelId})},e[17]=p,e[18]=i,e[19]=f):f=e[19];let m;return e[20]!==p||e[21]!==h||e[22]!==d||e[23]!==f?(m=t.jsx("div",{className:"w-fit max-w-full [&_button]:rounded-md",children:t.jsx(as,{variant:"bordered",placeholder:d,model:h,credentialId:p,onCredentialChange:u,onModelChange:f})}),e[20]=p,e[21]=h,e[22]=d,e[23]=f,e[24]=m):m=e[24],m}const Tt=[{key:"capabilities",headingKey:"automations.automationConfig.builtinCapabilities",icon:Ge,tools:[{name:"web_search",titleKey:"automations.automationConfig.toolWebSearch",descriptionKey:"automations.automationConfig.toolWebSearchDesc",icon:He},{name:"generate_image",titleKey:"automations.automationConfig.toolGenerateImage",descriptionKey:"automations.automationConfig.toolGenerateImageDesc",icon:Gt},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:Bt},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:Ft}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:tt,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:Vt},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:jt},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:Ot},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:Ht},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:tt},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:Mt}]},{key:"context",headingKey:"automations.automationConfig.context",icon:et,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:et},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:Ze},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:Ze}]}],Js=Tt.flatMap(a=>a.tools.map(e=>e.name));function Qs(a){const e=a.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,o=>o.toUpperCase()):a}function qs(a){const e=ce.c(12),{agentId:o,value:i,onChange:n}=a,s=me();let l;e[0]!==s?(l=s("automations.automationConfig.toolsLabel"),e[0]=s,e[1]=l):l=e[1];let r;e[2]!==l?(r=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:l}),e[2]=l,e[3]=r):r=e[3];let j;e[4]!==o||e[5]!==n||e[6]!==s||e[7]!==i?(j=o?t.jsx(D.Suspense,{fallback:t.jsxs(q,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:[t.jsx(Ge,{size:14}),s("automations.automationConfig.loadingTools")]}),children:t.jsx(Ys,{agentId:o,value:i,onChange:n})}):t.jsx("span",{className:"text-xs text-muted-foreground italic",children:s("automations.automationConfig.pickAgentFirst")}),e[4]=o,e[5]=n,e[6]=s,e[7]=i,e[8]=j):j=e[8];let u;return e[9]!==r||e[10]!==j?(u=t.jsxs("div",{className:"flex flex-col gap-2",children:[r,j]}),e[9]=r,e[10]=j,e[11]=u):u=e[11],u}function ft(a){const e=ce.c(17),{value:o,checked:i,onToggle:n,title:s,description:l,leading:r}=a;let j;e[0]!==i?(j=t.jsx(bt,{checked:i,className:"pointer-events-none mt-0.5"}),e[0]=i,e[1]=j):j=e[1];let u;e[2]!==r?(u=r&&t.jsx("span",{className:"mt-px shrink-0",children:r}),e[2]=r,e[3]=u):u=e[3];let c;e[4]!==s?(c=t.jsx("span",{className:"truncate text-sm leading-tight",children:s}),e[4]=s,e[5]=c):c=e[5];let p;e[6]!==l?(p=l&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:l}),e[6]=l,e[7]=p):p=e[7];let g;e[8]!==c||e[9]!==p?(g=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[c,p]}),e[8]=c,e[9]=p,e[10]=g):g=e[10];let h;return e[11]!==n||e[12]!==j||e[13]!==u||e[14]!==g||e[15]!==o?(h=t.jsxs(Qt,{value:o,onSelect:n,className:"items-start gap-2.5 py-2",children:[j,u,g]}),e[11]=n,e[12]=j,e[13]=u,e[14]=g,e[15]=o,e[16]=h):h=e[16],h}function xt(a){const e=ce.c(27),{conn:o,label:i,icon:n,on:s,total:l,onToggle:r}=a,j=me(),u=s===l;let c;e[0]!==n||e[1]!==o?(c=o?t.jsx(ns,{icon:o.icon,name:o.title,size:"2xs"}):n?t.jsx(n,{size:14,className:"text-muted-foreground"}):t.jsx(Wt,{size:14,className:"text-muted-foreground"}),e[0]=n,e[1]=o,e[2]=c):c=e[2];let p;e[3]!==o?.title||e[4]!==i||e[5]!==j?(p=o?.title??i??j("automations.automationConfig.otherTools"),e[3]=o?.title,e[4]=i,e[5]=j,e[6]=p):p=e[6];let g;e[7]!==p?(g=t.jsx("span",{className:"truncate",children:p}),e[7]=p,e[8]=g):g=e[8];let h;e[9]!==s||e[10]!==l?(h=t.jsxs("span",{className:"text-[11px] font-normal tabular-nums text-muted-foreground/70",children:[s,"/",l]}),e[9]=s,e[10]=l,e[11]=h):h=e[11];let d;e[12]!==r?(d=C=>{C.stopPropagation(),r()},e[12]=r,e[13]=d):d=e[13];let f;e[14]!==u||e[15]!==j?(f=j(u?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=u,e[15]=j,e[16]=f):f=e[16];let m;e[17]!==d||e[18]!==f?(m=t.jsx("button",{type:"button",onClick:d,className:"text-[11px] font-medium text-primary hover:underline",children:f}),e[17]=d,e[18]=f,e[19]=m):m=e[19];let x;e[20]!==h||e[21]!==m?(x=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[h,m]}),e[20]=h,e[21]=m,e[22]=x):x=e[22];let b;return e[23]!==c||e[24]!==g||e[25]!==x?(b=t.jsxs("div",{className:"flex items-center gap-2",children:[c,g,x]}),e[23]=c,e[24]=g,e[25]=x,e[26]=b):b=e[26],b}function Ys(a){const e=ce.c(83),{agentId:o,value:i,onChange:n}=a,s=me(),{org:l}=gt(),[r,j]=D.useState(!1);let u;e[0]!==o||e[1]!==l.id||e[2]!==l.slug?(u={connectionId:o,orgId:l.id,orgSlug:l.slug},e[0]=o,e[1]=l.id,e[2]=l.slug,e[3]=u):u=e[3];const c=ss(u);let p;e[4]!==c?(p={client:c},e[4]=c,e[5]=p):p=e[5];const{data:g,isLoading:h}=os(p),d=Xe();let f,m,x,b,C,w,N,z,_,v,S,k,E;if(e[6]!==d||e[7]!==g?.tools||e[8]!==h||e[9]!==n||e[10]!==r||e[11]!==s||e[12]!==i){const H=new Map(d.map(oo)),G=new Map;for(const T of g?.tools??[]){const A=es(T._meta)??"__other__",Q=ts(T.name,A==="__other__"?void 0:A),$=T.title,xe=$&&$!==T.name?$:Qs(Q);G.has(A)||G.set(A,{clientId:A,conn:H.get(A),tools:[]}),G.get(A).tools.push({name:T.name,display:xe,description:T.description})}const V=[...G.values()].sort(so),X=(g?.tools??[]).map(to),B=[...Js,...X],L=i===null?new Set(B):new Set(i),W=B.every(T=>L.has(T)),I=T=>n(B.every(A=>T.has(A))?null:[...T]),Y=T=>{const A=new Set(L);A.has(T)?A.delete(T):A.add(T),I(A)},Z=(T,A)=>{const Q=new Set(L);for(const $ of T)A?Q.add($):Q.delete($);I(Q)};b=St,E=r,C=j;let J;e[26]===Symbol.for("react.memo_cache_sentinel")?(J=t.jsx(Ge,{size:14,className:"text-muted-foreground"}),e[26]=J):J=e[26];let ne;e[27]!==W||e[28]!==s?(ne=s(W?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=W,e[28]=s,e[29]=ne):ne=e[29];const ue=!W&&t.jsxs(Xt,{variant:"secondary",className:"ml-0.5 h-5 px-1.5 text-[11px] tabular-nums",children:[L.size,"/",B.length]});let de;e[30]===Symbol.for("react.memo_cache_sentinel")?(de=t.jsx(Be,{size:14,className:"text-muted-foreground"}),e[30]=de):de=e[30],e[31]!==ne||e[32]!==ue?(w=t.jsx(Ct,{asChild:!0,children:t.jsxs(q,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[J,ne,ue,de]})}),e[31]=ne,e[32]=ue,e[33]=w):w=e[33],x=Nt,S="p-0 w-80",k="start",m=qt;let ee;e[34]!==s?(ee=s("automations.automationConfig.searchToolsPlaceholder"),e[34]=s,e[35]=ee):ee=e[35],e[36]!==ee?(_=t.jsx(Yt,{placeholder:ee}),e[36]=ee,e[37]=_):_=e[37];const pe=W?s("automations.automationConfig.allToolsEnabled",{count:B.length}):s("automations.automationConfig.toolsEnabledCount",{enabled:L.size,total:B.length});let te;e[38]!==pe?(te=t.jsx("span",{className:"text-xs text-muted-foreground",children:pe}),e[38]=pe,e[39]=te):te=e[39];let ae;e[40]!==n?(ae=()=>n(null),e[40]=n,e[41]=ae):ae=e[41];let ie;e[42]!==s?(ie=s("automations.automationConfig.selectAll"),e[42]=s,e[43]=ie):ie=e[43];let y;e[44]!==W||e[45]!==ae||e[46]!==ie?(y=t.jsx("button",{type:"button",onClick:ae,disabled:W,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:ie}),e[44]=W,e[45]=ae,e[46]=ie,e[47]=y):y=e[47];let O;e[48]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx("span",{className:"text-muted-foreground/30",children:"·"}),e[48]=O):O=e[48];let P;e[49]!==n?(P=()=>n([]),e[49]=n,e[50]=P):P=e[50];const fe=L.size===0;let se;e[51]!==s?(se=s("automations.automationConfig.clear"),e[51]=s,e[52]=se):se=e[52];let re;e[53]!==P||e[54]!==fe||e[55]!==se?(re=t.jsx("button",{type:"button",onClick:P,disabled:fe,className:"text-xs font-medium text-muted-foreground hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:se}),e[53]=P,e[54]=fe,e[55]=se,e[56]=re):re=e[56];let le;e[57]!==y||e[58]!==re?(le=t.jsxs("div",{className:"flex items-center gap-2",children:[y,O,re]}),e[57]=y,e[58]=re,e[59]=le):le=e[59],e[60]!==te||e[61]!==le?(v=t.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[te,le]}),e[60]=te,e[61]=le,e[62]=v):v=e[62],f=Zt,N="max-h-80",z=h?t.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:s("automations.automationConfig.loadingTools")}):t.jsxs(t.Fragment,{children:[t.jsx(Jt,{children:s("automations.automationConfig.noToolsFound")}),Tt.map(T=>{const A=T.tools.map(eo),Q=A.filter($=>L.has($)).length;return t.jsx(st,{heading:t.jsx(xt,{label:s(T.headingKey),icon:T.icon,on:Q,total:A.length,onToggle:()=>Z(A,Q!==A.length)}),children:T.tools.map($=>t.jsx(ft,{value:`${s($.titleKey)} ${$.name}`,checked:L.has($.name),onToggle:()=>Y($.name),title:s($.titleKey),description:s($.descriptionKey),leading:t.jsx($.icon,{size:16,className:"text-muted-foreground"})},$.name))},T.key)}),V.map(T=>{const A=T.tools.map(Zs),Q=A.filter($=>L.has($)).length;return t.jsx(st,{heading:t.jsx(xt,{conn:T.conn,on:Q,total:A.length,onToggle:()=>Z(A,Q!==A.length)}),children:T.tools.map($=>t.jsx(ft,{value:`${$.display} ${$.name} ${T.conn?.title??""}`,checked:L.has($.name),onToggle:()=>Y($.name),title:$.display,description:$.description},$.name))},T.clientId)})]}),e[6]=d,e[7]=g?.tools,e[8]=h,e[9]=n,e[10]=r,e[11]=s,e[12]=i,e[13]=f,e[14]=m,e[15]=x,e[16]=b,e[17]=C,e[18]=w,e[19]=N,e[20]=z,e[21]=_,e[22]=v,e[23]=S,e[24]=k,e[25]=E}else f=e[13],m=e[14],x=e[15],b=e[16],C=e[17],w=e[18],N=e[19],z=e[20],_=e[21],v=e[22],S=e[23],k=e[24],E=e[25];let F;e[63]!==f||e[64]!==N||e[65]!==z?(F=t.jsx(f,{className:N,children:z}),e[63]=f,e[64]=N,e[65]=z,e[66]=F):F=e[66];let K;e[67]!==m||e[68]!==F||e[69]!==_||e[70]!==v?(K=t.jsxs(m,{children:[_,v,F]}),e[67]=m,e[68]=F,e[69]=_,e[70]=v,e[71]=K):K=e[71];let R;e[72]!==x||e[73]!==K||e[74]!==S||e[75]!==k?(R=t.jsx(x,{className:S,align:k,children:K}),e[72]=x,e[73]=K,e[74]=S,e[75]=k,e[76]=R):R=e[76];let U;return e[77]!==b||e[78]!==C||e[79]!==w||e[80]!==R||e[81]!==E?(U=t.jsxs(b,{open:E,onOpenChange:C,children:[w,R]}),e[77]=b,e[78]=C,e[79]=w,e[80]=R,e[81]=E,e[82]=U):U=e[82],U}function Zs(a){return a.name}function eo(a){return a.name}function to(a){return a.name}function so(a,e){return(a.conn?.title??a.clientId).localeCompare(e.conn?.title??e.clientId)}function oo(a){return[a.id,a]}function we(a){const e=a.trim().split(/\s+/);return e.length!==5?!1:e.every(o=>/^[\d*/,-]+$/.test(o))}function no(a){if(!a)return"Unknown schedule";const e=a.trim();if(e==="* * * * *")return"Every minute";if(e==="0 * * * *")return"Every hour";if(e==="0 0 * * *")return"Every day";if(e==="0 0 * * 1")return"Every week";const o=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(o)return`Every ${o[1]} minutes`;const i=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(i)return`Every ${i[1]} hours`;const n=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(n){const r=parseInt(n[1]??"1");return r%7===0?`Every ${r/7} weeks`:`Every ${r} days`}const s=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(s){const r=(s[2]??"0").padStart(2,"0"),j=(s[1]??"0").padStart(2,"0");return`Every day at ${r}:${j} UTC`}const l=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(l){const j=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(l[3]??"0")]??"day",u=(l[2]??"0").padStart(2,"0"),c=(l[1]??"0").padStart(2,"0");return`Every ${j} at ${u}:${c} UTC`}return a}function ao(a,e){const o=Math.max(1,a);switch(e){case"minutes":return o===1?"* * * * *":`*/${o} * * * *`;case"hours":return o===1?"0 * * * *":`0 */${o} * * *`;case"days":return o===1?"0 0 * * *":`0 0 */${o} * *`;case"weeks":return o===1?"0 0 * * 1":`0 0 */${o*7} * *`}}function io(a){const e=a.trim();if(e==="* * * * *")return{count:1,unit:"minutes"};if(e==="0 * * * *")return{count:1,unit:"hours"};if(e==="0 0 * * *")return{count:1,unit:"days"};if(e==="0 0 * * 1")return{count:1,unit:"weeks"};const o=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(o)return{count:parseInt(o[1]),unit:"minutes"};const i=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(i)return{count:parseInt(i[1]),unit:"hours"};const n=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);return n?{count:parseInt(n[1]),unit:"days"}:null}function ro(a,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[a]??a:a}const lo=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}];function co({automationId:a,open:e,onOpenChange:o,onCustomSelect:i,onEventSelect:n,onWebhookCreated:s}){const l=me(),{triggerAdd:r}=Fe(),[j,u]=D.useState(!1),c=e??j,p=d=>{o?o(d):u(d)},g=async d=>{try{await r.mutateAsync({automation_id:a,type:"cron",cron_expression:d}),oe.success(l("automations.addStarterPopover.starterAdded")),p(!1)}catch(f){const m=f instanceof Error?f.message:l("automations.addStarterPopover.failedAddStarter");oe.error(m)}},h=async()=>{try{const d=await r.mutateAsync({automation_id:a,type:"webhook"});p(!1),d.webhook?s?.(d.webhook):oe.success(l("automations.addStarterPopover.webhookStarterAdded"))}catch(d){const f=d instanceof Error?d.message:l("automations.addStarterPopover.failedAddWebhookStarter");oe.error(f)}};return t.jsxs(Ts,{open:c,onOpenChange:p,children:[t.jsx(ws,{asChild:!0,children:t.jsxs(q,{variant:"outline",size:"sm",children:[t.jsx(As,{size:14}),l("automations.addStarterPopover.addStarter")]})}),t.jsxs(_s,{align:"end",className:"w-[200px]",children:[t.jsxs(Ds,{children:[t.jsxs(Is,{className:"gap-2.5",children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.every")]}),t.jsx($s,{className:"w-[160px]",children:lo.map(d=>t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>g(d.cron),disabled:r.isPending,children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.everyUnit",{unit:d.label})]},d.cron))})]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{p(!1),i?.()},children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.customCron")]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{p(!1),n?.()},children:[t.jsx(Qe,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.event")]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{h()},disabled:r.isPending,children:[t.jsx(He,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.webhook")]})]})]})}function wt(a){const e=ce.c(39),{open:o,onOpenChange:i,url:n,token:s,title:l,description:r}=a,j=l===void 0?"Webhook ready":l,u=r===void 0?"Send a POST to this URL with the bearer token to fire the automation. The token is shown once — copy it now.":r,c=me(),[p,g]=D.useState(null),[h,d]=D.useState("curl"),[f,m]=D.useState("header"),x=D.useId();let b;e[0]!==c?(b=async(V,X)=>{try{await navigator.clipboard.writeText(V),g(X),oe.success(c("automations.webhookSecretDialog.copied")),setTimeout(()=>g(null),1500)}catch{oe.error(c("automations.webhookSecretDialog.failedCopy"))}},e[0]=c,e[1]=b):b=e[1];const C=b;let w;e[2]!==f||e[3]!==s||e[4]!==n?(w=n&&s&&f==="url"?`${n.replace(/\/$/,"")}/${s}`:n??"",e[2]=f,e[3]=s,e[4]=n,e[5]=w):w=e[5];const N=w,z=n&&s?f==="header"?`curl -X POST "${N}" \\
|
|
2
2
|
-H "Authorization: Bearer ${s}" \\
|
|
3
3
|
-H "Content-Type: application/json" \\
|
|
4
4
|
-d '{"hello":"world"}'`:`curl -X POST "${N}" \\
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as _,b as O,r as G,j as e,P as m,o as Q,B as V,av as U}from"./index-
|
|
1
|
+
import{c as _,b as O,r as G,j as e,P as m,o as Q,B as V,av as U}from"./index-C6mMoKV9.js";import{C as W}from"./index-D7nIUPsf.js";import{s as X}from"./Plus-p771xfxl.js";import{L as Y}from"./agent-icon-DEBX0Uac.js";import{i as F}from"./Zap-DlMFCTS-.js";import{S as Z}from"./search-input-vrIAmgoh.js";import{E as $}from"./empty-state-CNNGduB2.js";import{u as tt,a as et,b as it}from"./use-automations-BWbEauvr.js";import{a as ot}from"./use-panel-navigate-VJU3jAVP.js";import{A as st}from"./automation-list-row-BDwOWXYr.js";import{b as rt}from"./thread-route-DNVTuSKD.js";import"./use-mobile-RHIQOVil.js";import"./index-8f5lsphO.js";import"./resizable-DrI2TVoh.js";import"./MessageCircle01-DOh30ucD.js";import"./use-route-default-main-D5obmIIM.js";import"./hooks-BU6oBSHV.js";import"./use-mcp-client-B8avk6p1.js";import"./auth-DekSX5bd.js";import"./backoff-8mStPHYB.js";import"./task-board-D_f-LuAE.js";import"./schema-WP2X1X1Z.js";import"./tooltip-CYhjJgVA.js";import"./index-CAThN-6U.js";import"./toolbar-icon-button-BhlTbEE9.js";import"./AlertCircle-rRQrnsQT.js";import"./Tool01-Co_K8urR.js";import"./ArrowUp-DhMsgJkj.js";import"./ArrowLeft-BZ_V0Q9t.js";import"./Tool02-BHzOpk5z.js";import"./ArrowRight-DLmMx1GH.js";import"./TrendUp01-Cxcr4-0l.js";import"./ZoomOut-DbeadNC9.js";import"./Users03-BsQdFF8i.js";import"./CheckCircle-BXhLNUG6.js";import"./Check-jwHdO8X-.js";import"./ChevronUp-DUyCnbNx.js";import"./ChevronRight-qjdwy3ht.js";import"./DotsVertical-2ZMqd-18.js";import"./UserSquare-SK2C9JwY.js";import"./Copy01-Ba_DXyYG.js";import"./CreditCard01-D8ve3i2_.js";import"./Database01-CKtQnfwM.js";import"./Download01-CoH-UuQa.js";import"./Printer-CEzVuZMa.js";import"./Settings02-CFq2ETVr.js";import"./Eye-BpslXSuU.js";import"./File02-aDup41Qr.js";import"./Share07-hoEgdikb.js";import"./GitBranch01-DzU0sPJc.js";import"./Globe01-CDkkg2Cy.js";import"./SwitchHorizontal01-DVbyXy1C.js";import"./HardDrive-DNp6sr7j.js";import"./Image01-DZX0wWyU.js";import"./Key01-D2uCgYpN.js";import"./Link01-B6QrVU3H.js";import"./LinkExternal01-CKgmWkkp.js";import"./Monitor01-DT1NSOaN.js";import"./Sun-BvckUZh0.js";import"./Package-DZFJNJtq.js";import"./Palette-D9x-keux.js";import"./Play-nvjmkgl9.js";import"./SearchLg-C5H_nx3W.js";import"./SearchMd-BnbGkmUb.js";import"./Shield01-C_kVJsrZ.js";import"./Stars01-jOH0yCKk.js";import"./Trash01-B1H2nTDv.js";import"./Upload01-CiNRxnSv.js";import"./User01-_uMnR0k7.js";import"./Users01-C8QAjTFh.js";import"./XCircle-mKrW5aBV.js";import"./XClose-nT83baSx.js";import"./X-MotBpvxg.js";import"./use-project-scope-BCYsjRUp.js";import"./use-virtual-mcp-2feYNqBo.js";import"./github-repo-BknN0SVI.js";import"./alert-dialog-jSpWtFPv.js";import"./dropdown-menu-BS01WOe-.js";function nt(o){if(!(o instanceof Error))return!1;const t=o.message.toLowerCase();return t.includes("relation")&&t.includes("does not exist")}function mt(o){const t=_.c(45),{virtualMcpId:r}=o,i=O(),{openPanel:n}=ot(),{data:D,error:M}=tt(r),L=D===void 0?[]:D,{create:y}=et(),[P,H]=G.useState("");if(M&&nt(M)){let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=e.jsx(Y,{size:48,className:"text-muted-foreground"}),t[0]=s):s=t[0];let x;t[1]!==i?(x=i("automations.setupRequired.title"),t[1]=i,t[2]=x):x=t[2];let h;t[3]!==i?(h=i("automations.setupRequired.description"),t[3]=i,t[4]=h):h=t[4];let j;t[5]!==n?(j=()=>n("settings"),t[5]=n,t[6]=j):j=t[6];let g;t[7]!==i?(g=i("automations.setupRequired.goToSetup"),t[7]=i,t[8]=g):g=t[8];let C;t[9]!==j||t[10]!==g?(C=e.jsx(V,{size:"sm",onClick:j,children:g}),t[9]=j,t[10]=g,t[11]=C):C=t[11];let S;return t[12]!==x||t[13]!==h||t[14]!==C?(S=e.jsx(m,{children:e.jsx(m.Content,{children:e.jsx(m.Container,{children:e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:s,title:x,description:h,actions:C})})})})}),t[12]=x,t[13]=h,t[14]=C,t[15]=S):S=t[15],S}const J=P.toLowerCase(),q=L.filter(s=>s.name.toLowerCase().includes(J));let b;t[16]!==n?(b=s=>n(`automation:${s}`),t[16]=n,t[17]=b):b=t[17];const B=b,R=async()=>{if(y.isPending)return;Q("automation_new_clicked",{virtual_mcp_id:r,existing_count:L.length});const s=await y.mutateAsync(it(r));B(s.id)},K=y.isPending;let v;t[18]===Symbol.for("react.memo_cache_sentinel")?(v=e.jsx(X,{size:14}),t[18]=v):v=t[18];let a;t[19]!==i?(a=i("automations.automationsList.newAutomation"),t[19]=i,t[20]=a):a=t[20];let w;t[21]!==y.isPending||t[22]!==R||t[23]!==a?(w=e.jsxs(V,{size:"sm",onClick:R,disabled:K,children:[v,a]}),t[21]=y.isPending,t[22]=R,t[23]=a,t[24]=w):w=t[24];const A=w,T=m,E=m,k=m;let l;t[25]!==i?(l=i("automations.automationsList.title"),t[25]=i,t[26]=l):l=t[26];let c;t[27]!==l?(c=e.jsx(m.Title,{children:l}),t[27]=l,t[28]=c):c=t[28];const z=L.length>0&&e.jsx(Z,{value:P,onChange:H,placeholder:i("automations.automationsList.searchPlaceholder"),className:"w-full md:w-[375px]"});let p;t[29]!==A||t[30]!==z?(p=e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[z,A]}),t[29]=A,t[30]=z,t[31]=p):p=t[31];let u;t[32]!==c||t[33]!==p?(u=e.jsxs("div",{className:"flex flex-col gap-6",children:[c,p]}),t[32]=c,t[33]=p,t[34]=u):u=t[34];const I=L.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.emptyTitle"),description:i("automations.automationsList.emptyDescription"),actions:A})}):q.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.noResultsTitle"),description:i("automations.automationsList.noResultsDescription",{search:P})})}):e.jsx("div",{className:"mt-6 rounded-xl border border-border overflow-hidden",children:q.map(s=>e.jsx(st,{automation:s,onClick:()=>B(s.id)},s.id))});let d;t[35]!==u||t[36]!==I||t[37]!==k.Container?(d=e.jsxs(k.Container,{children:[u,I]}),t[35]=u,t[36]=I,t[37]=k.Container,t[38]=d):d=t[38];let f;t[39]!==d||t[40]!==E.Content?(f=e.jsx(E.Content,{children:d}),t[39]=d,t[40]=E.Content,t[41]=f):f=t[41];let N;return t[42]!==T||t[43]!==f?(N=e.jsx(T,{children:f}),t[42]=T,t[43]=f,t[44]=N):N=t[44],N}function at(o){const t=_.c(3),{virtualMcpId:r}=o;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=e.jsx(U,{}),t[0]=i):i=t[0];let n;return t[1]!==r?(n=e.jsx(G.Suspense,{fallback:i,children:e.jsx(mt,{virtualMcpId:r})}),t[1]=r,t[2]=n):n=t[2],n}function lt(){const o=_.c(2),t=rt();let r;return o[0]!==t?(r=e.jsx(at,{virtualMcpId:t}),o[0]=t,o[1]=r):r=o[1],r}function ze(){const o=_.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(W.Content,{children:e.jsx(lt,{})}),o[0]=t):t=o[0],t}export{ze as default};
|
package/dist/client/assets/{agent-connect-sources-BT8vowWZ.js → agent-connect-sources-bgjFIcuF.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as I,j as i,r as T,E as A,b as D,M as F,W as L,x as U,e as W}from"./index-
|
|
1
|
+
import{c as I,j as i,r as T,E as A,b as D,M as F,W as L,x as U,e as W}from"./index-C6mMoKV9.js";import{C as $}from"./index-D7nIUPsf.js";import{u as B}from"./use-mcp-client-B8avk6p1.js";import{C as V,a as Y}from"./companion-mcps-section-QuNNjI2b.js";import{c as H}from"./use-connect-companion-C5E889gV.js";import{C as v,a as K}from"./connect-layout-Cj9Ty8o6.js";import{p as q}from"./self-tool-result-8OxPN9Nm.js";import{a as z}from"./use-panel-navigate-VJU3jAVP.js";import"./use-mobile-RHIQOVil.js";import"./index-8f5lsphO.js";import"./resizable-DrI2TVoh.js";import"./MessageCircle01-DOh30ucD.js";import"./thread-route-DNVTuSKD.js";import"./use-route-default-main-D5obmIIM.js";import"./hooks-BU6oBSHV.js";import"./backoff-8mStPHYB.js";import"./task-board-D_f-LuAE.js";import"./schema-WP2X1X1Z.js";import"./tooltip-CYhjJgVA.js";import"./index-CAThN-6U.js";import"./toolbar-icon-button-BhlTbEE9.js";import"./auth-DekSX5bd.js";import"./site-url-en5df9c-.js";import"./integration-icon-Xt_LxCp3.js";import"./Tool02-BHzOpk5z.js";import"./agent-icon-DEBX0Uac.js";import"./AlertCircle-rRQrnsQT.js";import"./Tool01-Co_K8urR.js";import"./ArrowUp-DhMsgJkj.js";import"./ArrowLeft-BZ_V0Q9t.js";import"./ArrowRight-DLmMx1GH.js";import"./TrendUp01-Cxcr4-0l.js";import"./ZoomOut-DbeadNC9.js";import"./Users03-BsQdFF8i.js";import"./CheckCircle-BXhLNUG6.js";import"./Check-jwHdO8X-.js";import"./ChevronUp-DUyCnbNx.js";import"./ChevronRight-qjdwy3ht.js";import"./DotsVertical-2ZMqd-18.js";import"./UserSquare-SK2C9JwY.js";import"./Copy01-Ba_DXyYG.js";import"./CreditCard01-D8ve3i2_.js";import"./Database01-CKtQnfwM.js";import"./Download01-CoH-UuQa.js";import"./Printer-CEzVuZMa.js";import"./Settings02-CFq2ETVr.js";import"./Eye-BpslXSuU.js";import"./File02-aDup41Qr.js";import"./Share07-hoEgdikb.js";import"./GitBranch01-DzU0sPJc.js";import"./Globe01-CDkkg2Cy.js";import"./SwitchHorizontal01-DVbyXy1C.js";import"./HardDrive-DNp6sr7j.js";import"./Image01-DZX0wWyU.js";import"./Key01-D2uCgYpN.js";import"./Link01-B6QrVU3H.js";import"./LinkExternal01-CKgmWkkp.js";import"./Monitor01-DT1NSOaN.js";import"./Sun-BvckUZh0.js";import"./Package-DZFJNJtq.js";import"./Palette-D9x-keux.js";import"./Play-nvjmkgl9.js";import"./Plus-p771xfxl.js";import"./SearchLg-C5H_nx3W.js";import"./SearchMd-BnbGkmUb.js";import"./Shield01-C_kVJsrZ.js";import"./Stars01-jOH0yCKk.js";import"./Trash01-B1H2nTDv.js";import"./Upload01-CiNRxnSv.js";import"./User01-_uMnR0k7.js";import"./Users01-C8QAjTFh.js";import"./XCircle-mKrW5aBV.js";import"./XClose-nT83baSx.js";import"./X-MotBpvxg.js";import"./Zap-DlMFCTS-.js";import"./dialog-BbF8R0Rt.js";import"./companions-core-CZwGf1b1.js";import"./github-D4UJ99TO.js";import"./github-repo-scope-C8GSbvaz.js";import"./metadata-dUsYcpuu.js";import"./form-Cq6wKFPC.js";import"./label-BdNnPzHo.js";import"./input-CZquufhh.js";import"./use-debounced-value-DGsEitJX.js";import"./provision-repo-scoped-github-connection-B6zdkC6p.js";import"./extract-connection-data-CulqgUEu.js";import"./connection-Cl0tFuDE.js";import"./useQueries-Bq52TmOw.js";import"./authenticate-and-persist-oauth-3J_jvNQZ.js";import"./mcp-oauth-DZAKWi1a.js";import"./track-CWiVykNy.js";import"./use-project-scope-BCYsjRUp.js";import"./use-virtual-mcp-2feYNqBo.js";import"./github-repo-BknN0SVI.js";function G(e){const t=I.c(7),{onClose:m}=e,n=D();let r;t[0]!==n?(r=n("routes.commerceOnboarding.connectModal.loadError"),t[0]=n,t[1]=r):r=t[1];let o;t[2]!==r?(o=i.jsx("p",{className:"text-sm text-muted-foreground",children:r}),t[2]=r,t[3]=o):o=t[3];let s;return t[4]!==m||t[5]!==o?(s=i.jsx(v,{onClose:m,footer:null,children:o}),t[4]=m,t[5]=o,t[6]=s):s=t[6],s}function J(){const e=I.c(10),{closePanel:t}=z();let m;e[0]!==t?(m=()=>t(),e[0]=t,e[1]=m):m=e[1];const n=m;let r;e[2]!==n?(r=()=>i.jsx(G,{onClose:n}),e[2]=n,e[3]=r):r=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx(V,{}),e[4]=o):o=e[4];let s;e[5]!==n?(s=i.jsx(T.Suspense,{fallback:i.jsx(v,{onClose:n,footer:null,children:o}),children:i.jsx(Q,{onDone:n,onClose:n})}),e[5]=n,e[6]=s):s=e[6];let l;return e[7]!==r||e[8]!==s?(l=i.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:i.jsx(A,{fallback:r,children:s})}),e[7]=r,e[8]=s,e[9]=l):l=e[9],l}function Q(e){const t=I.c(46),{onDone:m,onClose:n}=e,r=D(),{org:o}=F();let s;t[0]!==o.id?(s=L.COMMERCE_DISCOVERY(o.id),t[0]=o.id,t[1]=s):s=t[1];const l=s;let b;t[2]!==o.id||t[3]!==o.slug?(b={connectionId:U,orgId:o.id,orgSlug:o.slug},t[2]=o.id,t[3]=o.slug,t[4]=b):b=t[4];const a=B(b);let E;t[5]!==l||t[6]!==o||t[7]!==a?(E={selfClient:a,org:o,cdConnectionId:l},t[5]=l,t[6]=o,t[7]=a,t[8]=E):E=t[8];const p=H(E),[O,w]=T.useState(!1),[M,N]=T.useState(null);let y;t[9]!==a?(y={mutationFn:async k=>q(await a.callTool({name:"COMMERCE_DISCOVERY_RUN",arguments:{siteUrl:k}})),retry:!1},t[9]=a,t[10]=y):y=t[10];const c=W(y);let P;t[11]!==m||t[12]!==c||t[13]!==p||t[14]!==r?(P=async()=>{if(N(null),p)try{await c.mutateAsync(p)}catch{N(r("routes.commerceOnboarding.connectModal.somethingWentWrong"));return}m()},t[11]=m,t[12]=c,t[13]=p,t[14]=r,t[15]=P):P=t[15];const _=P;let u;t[16]!==M?(u=M?i.jsx("p",{className:"text-sm leading-5 text-destructive",role:"alert",children:M}):null,t[16]=M,t[17]=u):u=t[17];let f;t[18]!==c.isPending||t[19]!==r?(f=c.isPending?r("routes.commerceOnboarding.connectSourcesTab.refreshing"):r("routes.commerceOnboarding.connectSourcesTab.refresh"),t[18]=c.isPending,t[19]=r,t[20]=f):f=t[20];let d;t[21]!==_?(d=()=>{_()},t[21]=_,t[22]=d):d=t[22];let C;t[23]!==O||t[24]!==c.isPending||t[25]!==f||t[26]!==d?(C=i.jsx(K,{ready:O,pending:c.isPending,label:f,onClick:d}),t[23]=O,t[24]=c.isPending,t[25]=f,t[26]=d,t[27]=C):C=t[27];let x;t[28]!==u||t[29]!==C?(x=i.jsxs(i.Fragment,{children:[u,C]}),t[28]=u,t[29]=C,t[30]=x):x=t[30];let g;t[31]!==r?(g=r("routes.commerceOnboarding.connectSourcesTab.title"),t[31]=r,t[32]=g):g=t[32];let h;t[33]!==g?(h=i.jsx("h2",{className:"text-xl font-medium leading-tight text-foreground",children:g}),t[33]=g,t[34]=h):h=t[34];let S;t[35]!==l||t[36]!==o||t[37]!==p?(S=i.jsx(Y,{org:o,cdConnectionId:l,siteUrl:p,onReadinessChange:w}),t[35]=l,t[36]=o,t[37]=p,t[38]=S):S=t[38];let j;t[39]!==h||t[40]!==S?(j=i.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 overflow-y-auto",children:[h,S]}),t[39]=h,t[40]=S,t[41]=j):j=t[41];let R;return t[42]!==n||t[43]!==x||t[44]!==j?(R=i.jsx(v,{onClose:n,footer:x,children:j}),t[42]=n,t[43]=x,t[44]=j,t[45]=R):R=t[45],R}function Le(){const e=I.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx($.Content,{children:i.jsx(J,{})}),e[0]=t):t=e[0],t}export{Le as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c,j as e,ax as b,u as g}from"./index-C6mMoKV9.js";import{C as j}from"./index-D7nIUPsf.js";import{F as v,H as S}from"./file-share-button-DvzGz33j.js";import{u as k,b as y,e as _}from"./use-org-fs-Dvfg7DBA.js";import{S as w}from"./settings-tab-DWyBmp9C.js";import{b as M}from"./thread-route-DNVTuSKD.js";import"./use-mobile-RHIQOVil.js";import"./index-8f5lsphO.js";import"./resizable-DrI2TVoh.js";import"./MessageCircle01-DOh30ucD.js";import"./use-panel-navigate-VJU3jAVP.js";import"./use-project-scope-BCYsjRUp.js";import"./use-virtual-mcp-2feYNqBo.js";import"./use-mcp-client-B8avk6p1.js";import"./auth-DekSX5bd.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-D5obmIIM.js";import"./hooks-BU6oBSHV.js";import"./backoff-8mStPHYB.js";import"./task-board-D_f-LuAE.js";import"./schema-WP2X1X1Z.js";import"./tooltip-CYhjJgVA.js";import"./index-CAThN-6U.js";import"./toolbar-icon-button-BhlTbEE9.js";import"./dropdown-menu-BS01WOe-.js";import"./Check-jwHdO8X-.js";import"./ChevronRight-qjdwy3ht.js";import"./DotsVertical-2ZMqd-18.js";import"./Download01-CoH-UuQa.js";import"./Printer-CEzVuZMa.js";import"./LinkExternal01-CKgmWkkp.js";import"./dialog-BbF8R0Rt.js";import"./X-MotBpvxg.js";import"./input-CZquufhh.js";import"./popover-DsPp8JNb.js";import"./Copy01-Ba_DXyYG.js";import"./Globe01-CDkkg2Cy.js";import"./Key01-D2uCgYpN.js";import"./Share07-hoEgdikb.js";import"./extract-connection-data-CulqgUEu.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-Cl0tFuDE.js";import"./chat-context-g3Ysek-D.js";import"./autosend-Cp5vfPIB.js";import"./thread-intent-CqreAI8n.js";import"./slugify-CEUa2lfQ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-B4c1c87k.js";import"./use-ai-providers-Cotfg7SS.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-QHgLexrJ.js";import"./use-organization-settings-D0M2z89A.js";import"./build-improve-prompt-doc-sYHKN5HP.js";import"./avatar-Db6Ad7E2.js";import"./User01-_uMnR0k7.js";import"./empty-state-CNNGduB2.js";import"./shell-layout-DlWVwnY3.js";import"./Users03-BsQdFF8i.js";import"./SearchLg-C5H_nx3W.js";import"./agent-icon-DEBX0Uac.js";import"./AlertCircle-rRQrnsQT.js";import"./Tool01-Co_K8urR.js";import"./ArrowUp-DhMsgJkj.js";import"./ArrowLeft-BZ_V0Q9t.js";import"./Tool02-BHzOpk5z.js";import"./ArrowRight-DLmMx1GH.js";import"./TrendUp01-Cxcr4-0l.js";import"./ZoomOut-DbeadNC9.js";import"./CheckCircle-BXhLNUG6.js";import"./ChevronUp-DUyCnbNx.js";import"./UserSquare-SK2C9JwY.js";import"./CreditCard01-D8ve3i2_.js";import"./Database01-CKtQnfwM.js";import"./Settings02-CFq2ETVr.js";import"./Eye-BpslXSuU.js";import"./File02-aDup41Qr.js";import"./GitBranch01-DzU0sPJc.js";import"./SwitchHorizontal01-DVbyXy1C.js";import"./HardDrive-DNp6sr7j.js";import"./Image01-DZX0wWyU.js";import"./Link01-B6QrVU3H.js";import"./Monitor01-DT1NSOaN.js";import"./Sun-BvckUZh0.js";import"./Package-DZFJNJtq.js";import"./Palette-D9x-keux.js";import"./Play-nvjmkgl9.js";import"./Plus-p771xfxl.js";import"./SearchMd-BnbGkmUb.js";import"./Shield01-C_kVJsrZ.js";import"./Stars01-jOH0yCKk.js";import"./Trash01-B1H2nTDv.js";import"./Upload01-CiNRxnSv.js";import"./Users01-C8QAjTFh.js";import"./XCircle-mKrW5aBV.js";import"./XClose-nT83baSx.js";import"./Zap-DlMFCTS-.js";import"./download-app-dialog-CTBm_E5V.js";import"./anchors-yqDzZN4K.js";import"./use-org-notice-BDJtNsoi.js";import"./command-palette-store-DQWkqX24.js";import"./command-Cnr_FK8b.js";import"./index-BOZLd_mz.js";import"./integration-icon-Xt_LxCp3.js";import"./project-icon-DZXi7sAH.js";import"./required-auth-layout-CIegJY7n.js";import"./use-org-sso-B_DIN1FR.js";import"./use-date-fns-locale-rgfXEg1T.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-connection-TGwBsBZ6.js";import"./mcp-oauth-DZAKWi1a.js";import"./alert-dialog-jSpWtFPv.js";import"./textarea-BPcKOU7a.js";import"./use-debounced-autosave-BZKMq5sx.js";import"./scroll-area-B5uAtJE9.js";import"./select-DPtaqnbY.js";import"./add-connection-dialog-COIUcaiE.js";import"./collection-search-Cw88RONI.js";import"./connection-card-CtC01b_S.js";import"./use-registry-connections-C1VQdjvR.js";import"./useInfiniteQuery-Br9KmFLf.js";import"./infiniteQueryObserver-8SjYC_ek.js";import"./retry-i8LvYSZg.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-BBk33oYJ.js";import"./form-Cq6wKFPC.js";import"./label-BdNnPzHo.js";import"./connection-form-helpers-BGax9Typ.js";import"./authenticate-and-persist-oauth-3J_jvNQZ.js";import"./collection-tabs-DjIYbOQ5.js";import"./badge-cq278MQI.js";import"./use-infinite-scroll-BcvDIGP6.js";import"./useSuspenseInfiniteQuery-zJ2PG_QY.js";import"./file-type-icon-B-E6HvV1.js";import"./checkbox-CtSIa9d0.js";import"./search-input-vrIAmgoh.js";import"./use-mcp-auth-status-CDs5_VuQ.js";import"./types-Bgn578U0.js";import"./use-mcp-tools-BX_9PtQS.js";import"./use-mcp-prompts-C35IeKKU.js";import"./utils-CVEq3hMx.js";import"./switch-CEhYE68G.js";import"./use-project-native-view-presence-DsW3Hqqc.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-5YZVd1Le.js";import"./site-slug-uya6Wp4-.js";import"./optimistic-project-sidebar-views-ZTcPooMv.js";import"./breadcrumb-CHaXT_pT.js";import"./virtual-mcp-DCGU1nRB.js";import"./repository-import-picker-DysBPsrE.js";import"./use-navigate-to-agent-BsGybLOl.js";import"./repository-picker-DJL8W4-t.js";import"./github-icon--lTAh1jj.js";import"./use-debounced-value-DGsEitJX.js";import"./sandbox-url-D3mC8qhT.js";import"./use-secrets-CmMeSYxT.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./serial-task-queue-CGOeQgpr.js";const x="home";function P(i){const t=c.c(5),{label:r}=i;let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p=e.jsx(b,{className:"aspect-video w-2/3 max-w-xl"}),t[0]=p):p=t[0];let o;t[1]!==r?(o=r&&e.jsx("p",{className:"text-xs text-muted-foreground",children:r}),t[1]=r,t[2]=o):o=t[2];let m;return t[3]!==o?(m=e.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-3 bg-background",children:[p,o]}),t[3]=o,t[4]=m):m=t[4],m}function D(i){const t=c.c(15),{path:r}=i;let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p={refetchIntervalWhenAbsent:2e3},t[0]=p):p=t[0];const o=k(x,r,p),m=y(x)(r);if(o.isPending||!o.data){const h=!o.isPending&&!o.data?"Waiting for the deck to sync…":void 0;let l;return t[1]!==h?(l=e.jsx(P,{label:h}),t[1]=h,t[2]=l):l=t[2],l}let s;t[3]!==o.data?(s=_(o.data),t[3]=o.data,t[4]=s):s=t[4];const f=o.data.shareMode??"private",u=o.data.effectivePublic??!1,d=window.location.origin+m;let a;t[5]!==r||t[6]!==f||t[7]!==u||t[8]!==d?(a=e.jsx(v,{volume:x,path:r,shareMode:f,effectivePublic:u,url:d}),t[5]=r,t[6]=f,t[7]=u,t[8]=d,t[9]=a):a=t[9];let n;return t[10]!==r||t[11]!==m||t[12]!==s||t[13]!==a?(n=e.jsx(S,{readUrl:m,marker:s,title:r,savePath:r,trailing:a}),t[10]=r,t[11]=m,t[12]=s,t[13]=a,t[14]=n):n=t[14],n}function C(){const i=c.c(4);let t;i[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},i[0]=t):t=i[0];const r=g(t),p=M(),o="path"in r&&typeof r.path=="string"?r.path:void 0;let m;return i[1]!==o||i[2]!==p?(m=o?e.jsx(D,{path:o},o):e.jsx(w,{virtualMcpId:p}),i[1]=o,i[2]=p,i[3]=m):m=i[3],m}function Pr(){const i=c.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(j.Content,{children:e.jsx(C,{})}),i[0]=t):t=i[0],t}export{Pr as default};
|