decocms 4.384.1 → 4.384.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-DXrZ6SzB.js → AlertCircle-CL2g6hBv.js} +1 -1
- package/dist/client/assets/{AreaChart-CXORXrmM.js → AreaChart-DzyaUucV.js} +1 -1
- package/dist/client/assets/{ArrowLeft-D7adHwja.js → ArrowLeft-BqNlqHdb.js} +1 -1
- package/dist/client/assets/{ArrowRight-BveFFy2z.js → ArrowRight-yUmRMyFa.js} +1 -1
- package/dist/client/assets/{ArrowUp-CqB5FCTU.js → ArrowUp-doBsDpEd.js} +1 -1
- package/dist/client/assets/{CartesianChart-CIKBGRx6.js → CartesianChart-uXd0KXWF.js} +1 -1
- package/dist/client/assets/{CheckCircle-DMlFOadx.js → CheckCircle-DNXT9LQw.js} +1 -1
- package/dist/client/assets/{ChevronUp-k_EOf84B.js → ChevronUp-Dc2CzZ9J.js} +1 -1
- package/dist/client/assets/{Copy01-EMXGNAiO.js → Copy01-CALkaT8p.js} +1 -1
- package/dist/client/assets/{CreditCard01-CiyU0eR_.js → CreditCard01-BGb46j0w.js} +1 -1
- package/dist/client/assets/{DotsVertical-DhvTdpnP.js → DotsVertical-DDZN-DIr.js} +1 -1
- package/dist/client/assets/{Download01-CsHqAVNu.js → Download01-CFSTXr8x.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-Dj2GKSRV.js → ErrorBarContext-Bmb4OVsC.js} +1 -1
- package/dist/client/assets/{Eye-Bi64tP-D.js → Eye-B_-FUDkf.js} +1 -1
- package/dist/client/assets/{Globe01-BWRc6bbu.js → Globe01-DYZzNFRa.js} +1 -1
- package/dist/client/assets/{Globe04-BTVlItdV.js → Globe04-DE66YFpd.js} +1 -1
- package/dist/client/assets/{Image01-8PFZYS9P.js → Image01-D0SI0eJx.js} +1 -1
- package/dist/client/assets/{Key01-EHOZ3vmu.js → Key01-CGyx-jB1.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DuadrTfl.js → LayoutLeft-CduVrmTY.js} +1 -1
- package/dist/client/assets/{Line-CTNXXmhw.js → Line-Bpvsuvfl.js} +1 -1
- package/dist/client/assets/{Link01-KARtnBxY.js → Link01-b3QVbtfw.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DslZPBGz.js → LinkExternal01-PpT-VqQv.js} +1 -1
- package/dist/client/assets/{Monitor01-Crab2RRF.js → Monitor01-tps0G-eA.js} +1 -1
- package/dist/client/assets/{Package-jUQ-QNQ_.js → Package-DmJJ2zwx.js} +1 -1
- package/dist/client/assets/{Palette-DqyEATuR.js → Palette-H25arUUw.js} +1 -1
- package/dist/client/assets/{Play-DIcksfye.js → Play-CN9QsFKm.js} +1 -1
- package/dist/client/assets/{Plus-BHRPkby-.js → Plus-BB6-c5sU.js} +1 -1
- package/dist/client/assets/{SearchLg-C4rS8AcZ.js → SearchLg-CExd0K4D.js} +1 -1
- package/dist/client/assets/{SearchMd-DxK3_oZM.js → SearchMd-pcanFLxJ.js} +1 -1
- package/dist/client/assets/{Sector-5gq5keNL.js → Sector-DTbZ5GzK.js} +1 -1
- package/dist/client/assets/{Settings02-Bs5wKTy4.js → Settings02-Cql2YRRu.js} +1 -1
- package/dist/client/assets/{Share07-CUM6Dqvb.js → Share07-DZnJoaaB.js} +1 -1
- package/dist/client/assets/{Stars01-BvVFnZBk.js → Stars01-koEVpHBg.js} +1 -1
- package/dist/client/assets/{Sun-x_EXvKiQ.js → Sun-DHu0BtRe.js} +1 -1
- package/dist/client/assets/{Tool01-5X6uedg8.js → Tool01-BfvHlgMO.js} +1 -1
- package/dist/client/assets/{Tool02-CR95_N0f.js → Tool02-4AGlMp3_.js} +1 -1
- package/dist/client/assets/{Trash01-CsZj7add.js → Trash01-CoDSwhlk.js} +1 -1
- package/dist/client/assets/{TrendUp01-B7EaxChV.js → TrendUp01-CUQslKNc.js} +1 -1
- package/dist/client/assets/{Upload01-B0aywPN-.js → Upload01-eY69lxYq.js} +1 -1
- package/dist/client/assets/{User01-C_8SVY7B.js → User01-DClxObx9.js} +1 -1
- package/dist/client/assets/{UserSquare-zbEMpwdU.js → UserSquare-yxnFTjmA.js} +1 -1
- package/dist/client/assets/{Users01-CV_KxvLX.js → Users01-Z1l_JeRj.js} +1 -1
- package/dist/client/assets/{X-B9OR2y1D.js → X-DIdmvXi5.js} +1 -1
- package/dist/client/assets/{XCircle-DOFffLSN.js → XCircle-CrmJoBI1.js} +1 -1
- package/dist/client/assets/{XClose-CmbUUKkG.js → XClose-C9HE5_ie.js} +1 -1
- package/dist/client/assets/{Zap-0kUaigVh.js → Zap-gDYafaw-.js} +1 -1
- package/dist/client/assets/{ZoomOut-DalZqqCw.js → ZoomOut-CPqhC1BT.js} +1 -1
- package/dist/client/assets/{access-gate-Bb_ib-N1.js → access-gate-BKr55tJT.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DU2-q29K.js → add-connection-dialog-CVIbPpXW.js} +1 -1
- package/dist/client/assets/{agent-analytics-sscDITo7.js → agent-analytics-DQHSh_JX.js} +1 -1
- package/dist/client/assets/agent-app-CWPHz33P.js +1 -0
- package/dist/client/assets/{agent-assets-vEGmPVHw.js → agent-assets-DTLvLzK0.js} +1 -1
- package/dist/client/assets/{agent-automation-Dxq_18nl.js → agent-automation-BRgbXQGv.js} +1 -1
- package/dist/client/assets/{agent-automations-2L8oRO9W.js → agent-automations-DOMZzOzv.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-Do_JSp98.js → agent-connect-sources-CJ58x-7G.js} +1 -1
- package/dist/client/assets/agent-deck-KaJwQbTV.js +1 -0
- package/dist/client/assets/{agent-e2e-Clsl7KyJ.js → agent-e2e-CCdbL8Xu.js} +1 -1
- package/dist/client/assets/{agent-experiments-DJ2Hw8uJ.js → agent-experiments-KbprKLvH.js} +1 -1
- package/dist/client/assets/agent-file-52_nriI_.js +1 -0
- package/dist/client/assets/{agent-git-DleoItlD.js → agent-git-BLxhnCXQ.js} +1 -1
- package/dist/client/assets/{agent-hosting-DQvN7Fny.js → agent-hosting-B5naTGpH.js} +1 -1
- package/dist/client/assets/{agent-icon-DLq4L2Ao.js → agent-icon-Cd4WgvSY.js} +1 -1
- package/dist/client/assets/agent-library-file-DunOvps7.js +1 -0
- package/dist/client/assets/{agent-monitor-MAoNBZM4.js → agent-monitor-DGc5wRri.js} +1 -1
- package/dist/client/assets/{agent-overview-CGPEv6_t.js → agent-overview-BXX-t4TM.js} +1 -1
- package/dist/client/assets/agent-settings-CU_GXHrT.js +1 -0
- package/dist/client/assets/{agent-site-editor-Nplaug8n.js → agent-site-editor-U3bu2qCe.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-DPIv2TMg.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-Axgk8yq4.js → agent-site-editor-content-8bbTea8s.js} +2 -2
- package/dist/client/assets/{agent-site-editor-preview-Bxd28KmI.js → agent-site-editor-preview-ChJDQx5H.js} +3 -3
- package/dist/client/assets/agent-view-DkGJFLPi.js +1 -0
- package/dist/client/assets/{agent-view-guard-V5STCUzo.js → agent-view-guard-CrodJew9.js} +1 -1
- package/dist/client/assets/{agents-list-CUwg87E-.js → agents-list-BBn3YJAX.js} +1 -1
- package/dist/client/assets/{ai-providers-too2IXUV.js → ai-providers-B9hDsTr9.js} +1 -1
- package/dist/client/assets/{alert-DFx1_vq0.js → alert-Dnc1OwUt.js} +1 -1
- package/dist/client/assets/{alert-dialog--j98vjuD.js → alert-dialog-BV6BL0PL.js} +1 -1
- package/dist/client/assets/api-keys-BNmoLSmg.js +1 -0
- package/dist/client/assets/{api-keys-B7Zokrrd.js → api-keys-CCMpftJx.js} +1 -1
- package/dist/client/assets/app-editor-CXfMTTnb.js +1 -0
- package/dist/client/assets/{asset-utils-g7RXB14P.js → asset-utils-BAPGdhel.js} +1 -1
- package/dist/client/assets/{auth-Dz9mRaTv.js → auth-BOVcch8v.js} +1 -1
- package/dist/client/assets/{auth-catchall-Dg4mvru9.js → auth-catchall-DE9t2UFX.js} +1 -1
- package/dist/client/assets/{auth-entry-2wq3xm8h.js → auth-entry-CxQexJqU.js} +1 -1
- package/dist/client/assets/{auth-split-layout-6nyuJnor.js → auth-split-layout-eT5rEO4Y.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BNH6AGkF.js → authenticate-and-persist-oauth-Bq4Rx_LM.js} +1 -1
- package/dist/client/assets/{automation-list-row-DTelN69U.js → automation-list-row-CF-ugqN9.js} +1 -1
- package/dist/client/assets/{automation-runs-Dxt5rTNn.js → automation-runs-CXRY4ihl.js} +1 -1
- package/dist/client/assets/{automations-BKHsjXET.js → automations-BYnxukMx.js} +1 -1
- package/dist/client/assets/{autosend-BZKRqImC.js → autosend-aHWkl5NE.js} +1 -1
- package/dist/client/assets/{avatar-DevS79NO.js → avatar-ClWEwL-z.js} +1 -1
- package/dist/client/assets/{badge-B5sfAgyv.js → badge-V2_EYnYE.js} +1 -1
- package/dist/client/assets/{block-document-DQqSQfTf.js → block-document-Dh4KfQDb.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-3b3z48NA.js → blocks-preview-workspace-context-CObH2vdO.js} +1 -1
- package/dist/client/assets/{breadcrumb-CuxeEsiE.js → breadcrumb-DxvOAl4Z.js} +1 -1
- package/dist/client/assets/{buckets-DZL43_g7.js → buckets-Cm6RwHi7.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-Gsk0rQPh.js → build-improve-prompt-doc-C0HV3Evo.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BnqZgf6u.js → bulk-category-panel-CeqnWYWi.js} +1 -1
- package/dist/client/assets/{calendar-CSJbftl5.js → calendar-BonOrtU-.js} +1 -1
- package/dist/client/assets/{capability-load-error-sIxX77fM.js → capability-load-error-DCFFcPkL.js} +1 -1
- package/dist/client/assets/category-editor-DSayEs2q.js +1 -0
- package/dist/client/assets/{chart-CWB4d9zp.js → chart-BBn4HmQQ.js} +1 -1
- package/dist/client/assets/{chat-context-C_38Spkt.js → chat-context-CR299TDT.js} +1 -1
- package/dist/client/assets/{chat-draft-C2Y7ngNf.js → chat-draft-BKtRPZeV.js} +1 -1
- package/dist/client/assets/{checkbox-sg-ezzoL.js → checkbox-B3iDQT4l.js} +1 -1
- package/dist/client/assets/{choose-editor-Dkt9a9o0.js → choose-editor-C_tZTnvs.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CONkf9-a.js → cli-auth-success-B6-7X3Fl.js} +1 -1
- package/dist/client/assets/{client-icons-BEKK0TZn.js → client-icons-DFyDJFTT.js} +1 -1
- package/dist/client/assets/{collapsible-B9sp1MZx.js → collapsible-nit0_hco.js} +1 -1
- package/dist/client/assets/{collection-detail-DvzvKgEI.js → collection-detail-J5DYpKII.js} +1 -1
- package/dist/client/assets/{collection-display-button-yYYde6Q2.js → collection-display-button-BHDqX-DX.js} +1 -1
- package/dist/client/assets/{collection-search-CGwYR_uT.js → collection-search-CIXgPHQU.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CDfbSuzA.js → collection-table-wrapper-D2ZcQRAO.js} +1 -1
- package/dist/client/assets/{collection-tabs-BXzRHkNV.js → collection-tabs-Ced_1P3B.js} +1 -1
- package/dist/client/assets/{combobox-D5eH9To8.js → combobox-Dld3bajr.js} +1 -1
- package/dist/client/assets/{command-ZfYjtuAl.js → command-BFopaNrK.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CBIG-0X4.js → companion-mcps-section-TM5maZVd.js} +1 -1
- package/dist/client/assets/{connect-layout-D9s0C3mQ.js → connect-layout-ZdT0I12j.js} +1 -1
- package/dist/client/assets/{connect-Eu9GeM87.js → connect-tbqEH_6g.js} +1 -1
- package/dist/client/assets/{connection-CTYIl1P4.js → connection-BSw7pzRm.js} +1 -1
- package/dist/client/assets/{connection-card-BqtXbL-v.js → connection-card-CzEduBCC.js} +1 -1
- package/dist/client/assets/{connection-detail-DbawaBsp.js → connection-detail-BREk9-YG.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BPSWaVDO.js → connection-form-helpers-C80XYT0F.js} +1 -1
- package/dist/client/assets/{connections-DBMztUZj.js → connections-DWnzB5FP.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-KYpVbGvC.js → create-organization-dialog-CzRq_uST.js} +1 -1
- package/dist/client/assets/{decofile-api-DAALQSQE.js → decofile-api-DzQykCnT.js} +1 -1
- package/dist/client/assets/{decopilot-BYcz3jno.js → decopilot-CE5pqqZH.js} +1 -1
- package/dist/client/assets/{dialog-Ep7gkNp4.js → dialog-2G-cQw5c.js} +1 -1
- package/dist/client/assets/{discover-eok0FXgg.js → discover-C6HtYxY1.js} +1 -1
- package/dist/client/assets/{domain-settings-D3OWm26W.js → domain-settings-Q8HjSWM5.js} +1 -1
- package/dist/client/assets/{download-app-dialog-BJ8H_bRY.js → download-app-dialog-BkiFA22O.js} +1 -1
- package/dist/client/assets/{drawer-A7F0d8UD.js → drawer-DsN4VmdE.js} +1 -1
- package/dist/client/assets/{editor-B-GNLQkJ.js → editor-WAZQ2CEk.js} +1 -1
- package/dist/client/assets/{empty-state-9N9sPHXJ.js → empty-state-B1cRkX5K.js} +1 -1
- package/dist/client/assets/{empty-state-On4g7NCI.js → empty-state-Dcth7zyn.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BOFrfyRH.js → extract-connection-data-AxblE4p8.js} +1 -1
- package/dist/client/assets/{feature-gate-kEpIeNmF.js → feature-gate-BRZIAztK.js} +1 -1
- package/dist/client/assets/{feature-paywall-ha_EsZpy.js → feature-paywall-BZu2_xNC.js} +1 -1
- package/dist/client/assets/{file-explorer--pnN8QXG.js → file-explorer-Cm2GH7D7.js} +1 -1
- package/dist/client/assets/{file-preview-D5A5LDPC.js → file-preview-DNvM7uzn.js} +1 -1
- package/dist/client/assets/{file-share-button-Dk6xpTyI.js → file-share-button-CTwUh9-F.js} +1 -1
- package/dist/client/assets/{file-type-icon-D7QysGoM.js → file-type-icon-BN_9SI7i.js} +1 -1
- package/dist/client/assets/{folder-icon-D2rVMvvv.js → folder-icon-DC8lInlG.js} +1 -1
- package/dist/client/assets/{form-7Lo4SdD_.js → form-Djun1QNL.js} +1 -1
- package/dist/client/assets/{gateway-client-DCte15fa.js → gateway-client-DRvKrGBc.js} +1 -1
- package/dist/client/assets/{general-iiCYDK2R.js → general-Dp4Bvm4s.js} +1 -1
- package/dist/client/assets/{github-icon-CSU4ajb7.js → github-icon-CpjMcSs2.js} +1 -1
- package/dist/client/assets/{home-_v5jbftg.js → home-OXtowKOh.js} +1 -1
- package/dist/client/assets/{hooks-DuIBlPGY.js → hooks-BZYmjCXU.js} +1 -1
- package/dist/client/assets/{hooks-D8SGg3an.js → hooks-DaelEUem.js} +1 -1
- package/dist/client/assets/{icon-button-DPRpkV3w.js → icon-button-DwYlPzUN.js} +1 -1
- package/dist/client/assets/{index-g-FgjHbl.js → index-BYMxdXbD.js} +1 -1
- package/dist/client/assets/{index-Cfhbhqg_.js → index-BcslvKns.js} +1 -1
- package/dist/client/assets/{index-BW6_fYfA.js → index-Bls8HNRj.js} +1 -1
- package/dist/client/assets/{index-BJ7_v32m.js → index-BmcZIG6I.js} +1 -1
- package/dist/client/assets/{index-C8G6PQfC.js → index-C9Rn21KI.js} +1 -1
- package/dist/client/assets/{index-DyvRNjV-.js → index-CIqnRBIS.js} +1 -1
- package/dist/client/assets/{index-ZV5TChxh.js → index-CXqVfpeT.js} +1 -1
- package/dist/client/assets/{index-DRk64_SI.js → index-DDtg2oc-.js} +1 -1
- package/dist/client/assets/{index-D4jXemPT.js → index-DFrjEBpS.js} +1 -1
- package/dist/client/assets/{index-C0aUmM3M.js → index-DMzJoorZ.js} +1 -1
- package/dist/client/assets/{index-BbKImTIi.js → index-DUMyrrY9.js} +1 -1
- package/dist/client/assets/{index-C4TAWeDP.js → index-Ddsmjhat.js} +1 -1
- package/dist/client/assets/{index-CNdpljun.js → index-DvH-nwdq.js} +2 -2
- package/dist/client/assets/{index-DaXGCVlJ.js → index-DvPeuoo_.js} +1 -1
- package/dist/client/assets/{index-redirect-AKNIbkic.js → index-redirect-9OhvIhyq.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-WcINROE-.js → infiniteQueryObserver-BkwDlHKY.js} +1 -1
- package/dist/client/assets/{infra-billing-C31e-vsh.js → infra-billing-CFbvfA_a.js} +1 -1
- package/dist/client/assets/{input-DD2FqIJD.js → input-B2NibJzZ.js} +1 -1
- package/dist/client/assets/{input-MZs4bQHH.js → input-BWgQhoD8.js} +1 -1
- package/dist/client/assets/{input-Chg2c8hI.js → input-BYV3Mzlx.js} +1 -1
- package/dist/client/assets/{integration-icon-PR06095a.js → integration-icon-UwqkSKd2.js} +1 -1
- package/dist/client/assets/{label-CEgqvjTx.js → label-CanEOsWK.js} +1 -1
- package/dist/client/assets/{last-preview-page-CzfPid_Z.js → last-preview-page-Cay0iLXz.js} +1 -1
- package/dist/client/assets/{layout-B_jMrUBL.js → layout-C-kdcMst.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-CZ01u8b_.js → legacy-agents-deep-Bi8Z6x_x.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-CAcG7CBg.js → legacy-main-redirect-DG5RQTLE.js} +1 -1
- package/dist/client/assets/{library-Dl9f7iEL.js → library-DYux7h5b.js} +1 -1
- package/dist/client/assets/{login-DJOyMfR7.js → login-B7qB_8dS.js} +1 -1
- package/dist/client/assets/{markdown-5uzbD6VU.js → markdown-srbLLrsA.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-6lbnwbz8.js → mcp-app-renderer-CknJJO0m.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DRPFV8Ni.js → mcp-oauth-DErZFwl3.js} +1 -1
- package/dist/client/assets/{members-Dh2ZO9T9.js → members-BQ1jkAlh.js} +1 -1
- package/dist/client/assets/{message-templates-DdU2KHcl.js → message-templates-bROsR-67.js} +1 -1
- package/dist/client/assets/{mini-report-page-CNblffjw.js → mini-report-page-D9yoqiv-.js} +1 -1
- package/dist/client/assets/{mock-board-Cj42XBqR.js → mock-board-DFVKg8L9.js} +3 -3
- package/dist/client/assets/{monaco-editor-YcYvcmpi.js → monaco-editor-bMyr3tAL.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Do1fA3gX.js → monitoring-stats-row-Cw-hEMgD.js} +1 -1
- package/dist/client/assets/{multi-select-DThyFtje.js → multi-select-iudNVzNR.js} +1 -1
- package/dist/client/assets/{mustache-ezl5DDdw.js → mustache-Bz3Is7Ci.js} +1 -1
- package/dist/client/assets/{oauth-callback-C5t4p2B2.js → oauth-callback-BYZhHscl.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-B2_IL7YH.js → oauth-callback-ai-provider-D76Gzh5Y.js} +1 -1
- package/dist/client/assets/{onboarding-D4oOEPlK.js → onboarding-CYrrf9CY.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-CHR9jMoH.js → optimistic-project-sidebar-views-DLaBZPO6.js} +1 -1
- package/dist/client/assets/{org-file-open-context-BSOmZpBS.js → org-file-open-context-B-Fg35Om.js} +1 -1
- package/dist/client/assets/{organization-choice-CQ_oSf0h.js → organization-choice-BSxQXHhn.js} +1 -1
- package/dist/client/assets/{orgs-BDWGu_3-.js → orgs-CV4Sm6S8.js} +1 -1
- package/dist/client/assets/{page-seo-form-DNrGr10O.js → page-seo-form-Btga6Joj.js} +1 -1
- package/dist/client/assets/{pair-D8FENe5Z.js → pair-BX6SRtxr.js} +1 -1
- package/dist/client/assets/{plan-ladder-DETz2ThM.js → plan-ladder-C2EuN2q6.js} +1 -1
- package/dist/client/assets/{popover-D2Z7_Tvr.js → popover-DmyHt-2h.js} +1 -1
- package/dist/client/assets/{post-calendar-Cip8s3_Q.js → post-calendar-B-hDkmiN.js} +1 -1
- package/dist/client/assets/{post-editor-C-PRABIi.js → post-editor-DfFFUsxK.js} +1 -1
- package/dist/client/assets/{preview-content-DHtRFMEr.js → preview-content-CutowE5z.js} +1 -1
- package/dist/client/assets/{preview-dialog-Cf84Ckqp.js → preview-dialog-DvnYXL1m.js} +1 -1
- package/dist/client/assets/{primitives-8CKU53Tr.js → primitives-2gJROCES.js} +1 -1
- package/dist/client/assets/{profile-B0t4CTKh.js → profile-CmvJSfgO.js} +1 -1
- package/dist/client/assets/{project-app-view-VbpeQsTe.js → project-app-view-CS1p4tFe.js} +1 -1
- package/dist/client/assets/{project-feed-CN-Ezs6b.js → project-feed-DlnhI6NA.js} +1 -1
- package/dist/client/assets/{project-icon-H5FrSPJO.js → project-icon-DtWWc_Fg.js} +1 -1
- package/dist/client/assets/project-reports-CEhDAHEs.js +1 -0
- package/dist/client/assets/project-tasks-BIa4reml.js +1 -0
- package/dist/client/assets/{prompts-OTiuFTXY.js → prompts-Ck5ImUb9.js} +1 -1
- package/dist/client/assets/record-editor-DD047j9y.js +1 -0
- package/dist/client/assets/{redirect-editor-sBjSfk-Y.js → redirect-editor-D9ceU7cX.js} +1 -1
- package/dist/client/assets/registry-Bja-zxmj.js +2 -0
- package/dist/client/assets/{registry-layout-sUiWg3M0.js → registry-layout-CFM49iM3.js} +1 -1
- package/dist/client/assets/{reports-rqI9VF3E.js → reports-Dxk2lCOw.js} +1 -1
- package/dist/client/assets/reports-Vr68UJmX.js +1 -0
- package/dist/client/assets/{reports-onboarding-gUwLEqeu.js → reports-onboarding-BtWC_Tsc.js} +1 -1
- package/dist/client/assets/{reports-tab-BMsMjX6b.js → reports-tab-ayNCwhlc.js} +2 -2
- package/dist/client/assets/{repositories-RJZ_9Cd8.js → repositories-Dj08EpEg.js} +1 -1
- package/dist/client/assets/{repository-import-picker-BBP7KuOG.js → repository-import-picker-CWkH9CnD.js} +1 -1
- package/dist/client/assets/{repository-picker-C2_oqXTC.js → repository-picker-BgSLJeNo.js} +1 -1
- package/dist/client/assets/{require-capability-DjMvq0Kg.js → require-capability-CUlSdcqO.js} +1 -1
- package/dist/client/assets/{required-auth-layout-C5L42ZZt.js → required-auth-layout-i35y0evL.js} +1 -1
- package/dist/client/assets/{reset-password-SR1oN615.js → reset-password-Be3PNkDP.js} +1 -1
- package/dist/client/assets/{resizable-CdFoIU6A.js → resizable-DXC545x4.js} +1 -1
- package/dist/client/assets/{review-settings-r-y9evaj.js → review-settings-Bt1FfEOi.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-CGZpZOT-.js → rich-text-link-control-CqkMC3kO.js} +1 -1
- package/dist/client/assets/{roles-BxlGbIOP.js → roles-CFwRhdBZ.js} +1 -1
- package/dist/client/assets/{route-DlXqj7Kj.js → route-B7iJkjNW.js} +1 -1
- package/dist/client/assets/{route-DS5unWTs.js → route-BmVIGdu4.js} +1 -1
- package/dist/client/assets/{route-page-header-uHzDO22N.js → route-page-header-CjwQCjT6.js} +1 -1
- package/dist/client/assets/{route-Dv2VWgfK.js → route-vGcGBdl7.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-C5tq8_-0.js → runnable-block-editor-Cv64jlMo.js} +1 -1
- package/dist/client/assets/sandbox-git-api-B1R0585s.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-czmbXmtE.js → sandbox-lifecycle-context-r4oc1CgX.js} +1 -1
- package/dist/client/assets/{schema-B6UYFOiW.js → schema-xJ7U_asm.js} +1 -1
- package/dist/client/assets/{scroll-area-DycqXJW5.js → scroll-area-KLqiO1VQ.js} +1 -1
- package/dist/client/assets/{search-input-BoYU-WLk.js → search-input-BwVXUnNC.js} +1 -1
- package/dist/client/assets/{search-toggle-DWVvj0KE.js → search-toggle-COXJwtkQ.js} +1 -1
- package/dist/client/assets/{secrets-B8xxsSB_.js → secrets-CSym3jGA.js} +1 -1
- package/dist/client/assets/{sections-editor-DoCkeSuj.js → sections-editor-DexxIIq5.js} +1 -1
- package/dist/client/assets/{select-CzmZ0exo.js → select-CMaNbPPd.js} +1 -1
- package/dist/client/assets/{select-model-BMG95zD9.js → select-model-BnUKdsMx.js} +1 -1
- package/dist/client/assets/{seo-editor-CgA7R1AE.js → seo-editor-QO0Y9aap.js} +1 -1
- package/dist/client/assets/{separator-scIwJT-K.js → separator-DdNaSPpK.js} +1 -1
- package/dist/client/assets/{settings-tab-xOdCZ6hZ.js → settings-tab-Crb-CdN4.js} +1 -1
- package/dist/client/assets/{sheet-Big3YL-7.js → sheet-CCbrydch.js} +1 -1
- package/dist/client/assets/{shell-layout-BkECXLU7.js → shell-layout-C2j46sCx.js} +1 -1
- package/dist/client/assets/{sidebar-DSdLAxOi.js → sidebar-CbhdB9UQ.js} +1 -1
- package/dist/client/assets/{skill-preview-d7lD7NA7.js → skill-preview-fSUcbWaT.js} +1 -1
- package/dist/client/assets/{skills-DdHpDwHe.js → skills-llaWPEGB.js} +1 -1
- package/dist/client/assets/{sso-o7oNUwyx.js → sso-DIgjRkxz.js} +1 -1
- package/dist/client/assets/{store-DO9MBgG9.js → store-Cc_kjAsF.js} +1 -1
- package/dist/client/assets/store-registry-CcTXC5Jd.js +2 -0
- package/dist/client/assets/{switch-DNg8Qgce.js → switch-DgkvwxDL.js} +1 -1
- package/dist/client/assets/{synced-repos-CX7ANp8p.js → synced-repos-Bx5jASbd.js} +1 -1
- package/dist/client/assets/{table-N3sFzY9O.js → table-BBW479Qc.js} +1 -1
- package/dist/client/assets/{tabs-lbbUV-Fe.js → tabs-BfXcQInD.js} +1 -1
- package/dist/client/assets/{task-board-DmTmT7UC.js → task-board-DlYdtE3b.js} +1 -1
- package/dist/client/assets/{task-route-BAwBBnHg.js → task-route-Ca6BSRV2.js} +1 -1
- package/dist/client/assets/{task-status-DzeLZc0t.js → task-status-B4Q-ln7c.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-BQQ8tNKP.js → taskboard-analytics-xVEQQIMN.js} +1 -1
- package/dist/client/assets/tasks-CxwtCQe0.js +1 -0
- package/dist/client/assets/{tasks-lwemg4Wr.js → tasks-DrL8vC19.js} +1 -1
- package/dist/client/assets/{textarea-Bkx1K2qe.js → textarea-DA5akcl2.js} +1 -1
- package/dist/client/assets/{thread-button-D6HHWA2W.js → thread-button-C_zUFSq7.js} +1 -1
- package/dist/client/assets/{thread-intent-C_hq8Uw9.js → thread-intent-B84W3TB7.js} +1 -1
- package/dist/client/assets/{thread-route-nSJMdhiK.js → thread-route-C3XU0Psn.js} +1 -1
- package/dist/client/assets/{thread-route-DWx_JTBG.js → thread-route-DuM7Be1s.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-rqTYmTzR.js → thread-sheet-body-DTPa7uQ5.js} +1 -1
- package/dist/client/assets/{toggle-group-CXmezzq3.js → toggle-group-D6olnL6L.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-Cy6AvRzw.js → toolbar-icon-button-SL9rNc2I.js} +1 -1
- package/dist/client/assets/{tooltip-C6enOXyh.js → tooltip-DSdKYCbI.js} +1 -1
- package/dist/client/assets/{track-B7nt-saX.js → track-YGUtSvtW.js} +1 -1
- package/dist/client/assets/{types-DfG-WUi_.js → types-Bt92_6tp.js} +1 -1
- package/dist/client/assets/{usage-stats-CzGYHgmi.js → usage-stats-DXMB2Ogz.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Cvq_HjNr.js → use-ai-providers-BjYj7e51.js} +1 -1
- package/dist/client/assets/{use-automations-GgRcmlLb.js → use-automations-AZ1h_dVu.js} +1 -1
- package/dist/client/assets/{use-autosave-eGi1xNmE.js → use-autosave-Cp7NOJhz.js} +1 -1
- package/dist/client/assets/{use-connect-companion-BAwfX6On.js → use-connect-companion-NEmMLhzt.js} +1 -1
- package/dist/client/assets/{use-connection-D7t7y5-e.js → use-connection-Daw6Xhb2.js} +1 -1
- package/dist/client/assets/{use-copy-xo4iSDBQ.js → use-copy-7f7jLELO.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-TTkZy980.js → use-create-virtual-mcp-HAc5HQZL.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-BtRHZTo3.js → use-date-fns-locale-DRjy01i-.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-pxwwDVN-.js → use-debounced-autosave-BsIVeoqi.js} +1 -1
- package/dist/client/assets/{use-debounced-value-tumfDMYW.js → use-debounced-value-BHUjfc1k.js} +1 -1
- package/dist/client/assets/{use-deco-credits-Czcc02R-.js → use-deco-credits-D6PBQHrh.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DZnHJX4M.js → use-decopilot-events-DN9cn0m8.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DkrM9cr8.js → use-delete-connection-DhVyMfFv.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BO2gun9C.js → use-deployment-admin-Br3t4rfB.js} +1 -1
- package/dist/client/assets/{use-entitlements-Cg9aLuDX.js → use-entitlements-YUjw4iUa.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-7JbvyepR.js → use-fast-preview-draft-url-CL-K09WK.js} +1 -1
- package/dist/client/assets/{use-file-configs-CMr6wIKD.js → use-file-configs-CYQYBWb-.js} +1 -1
- package/dist/client/assets/{use-in-settings-CC_3sLol.js → use-in-settings-C-U1gBbP.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DlNj8Tv9.js → use-infinite-scroll-Cb4X67my.js} +1 -1
- package/dist/client/assets/{use-join-requests-C3i5G8XM.js → use-join-requests-VDy2Kg17.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-a6BYy7FD.js → use-main-panel-tabs-DU0ArEIW.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-_8ko1UO-.js → use-mcp-auth-status-DUrcGrM7.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DMWht7XE.js → use-mcp-client-BIX1SQBb.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-c1iKw71K.js → use-mcp-prompts-DKzGmPLS.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-C25Cm-zz.js → use-mcp-tools-CkvnbZRz.js} +1 -1
- package/dist/client/assets/{use-members-KvbK3wqJ.js → use-members-dL8owSbV.js} +1 -1
- package/dist/client/assets/{use-mobile-BKgmbAmN.js → use-mobile-BWQZ9Nov.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DjpZeoZT.js → use-navigate-to-agent-CWYMJtiR.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-Bvzx5Ye5.js → use-open-billing-url-DPt-2psD.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-C9f9NC5y.js → use-org-auth-client-CDLK3ArO.js} +1 -1
- package/dist/client/assets/{use-org-fs-D5gmoaqA.js → use-org-fs-6hP98hgh.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BbRWoTxu.js → use-org-repo-syncs-BmksYt9W.js} +1 -1
- package/dist/client/assets/{use-org-sso-BWvxNBYa.js → use-org-sso-EP1tdwpB.js} +1 -1
- package/dist/client/assets/{use-organization-roles-G2LQSxiQ.js → use-organization-roles-BCgVvV23.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BTBv23HT.js → use-organization-settings-Dsn6UluU.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-3QPnKCQs.js → use-panel-navigate-CtBFI8Fa.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-SX0Vw2gs.js → use-project-native-view-presence-Cm6tnbwT.js} +1 -1
- package/dist/client/assets/{use-project-scope-C0eA2U2p.js → use-project-scope-D2OaSlGh.js} +1 -1
- package/dist/client/assets/{use-registry-connections-vu7U4-eW.js → use-registry-connections-LjnGKNsQ.js} +1 -1
- package/dist/client/assets/{use-releases-sP1Q2XT7.js → use-releases-Dd36wWRs.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-C34AtNBN.js → use-reports-diagnostic-52lTTKw5.js} +1 -1
- package/dist/client/assets/{use-route-default-main-DTa5_Ucp.js → use-route-default-main-n--kXIcz.js} +1 -1
- package/dist/client/assets/{use-secrets-DFhlbKBp.js → use-secrets-CJFaH6t8.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-KaEtAag1.js → use-section-preview-base-CPNPI5v2.js} +1 -1
- package/dist/client/assets/{use-session-runtime-BrxkMe8P.js → use-session-runtime-UsUKYcrN.js} +1 -1
- package/dist/client/assets/{use-tags-B6YJY2Ng.js → use-tags-D1Cvf62b.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-CmUoOHHy.js → use-task-board-analytics-BvYcabLA.js} +1 -1
- package/dist/client/assets/{use-task-metadata-B7KPiGxC.js → use-task-metadata--G-29y7J.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-D2brweDC.js → use-thread-outputs-DeggN_DY.js} +1 -1
- package/dist/client/assets/{use-view-mode-DNVuSnub.js → use-view-mode-DAe4FouK.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CMKJwsUx.js → use-virtual-mcp-Db9im8eJ.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-h6ttw-AT.js +1 -0
- package/dist/client/assets/{useQueries-NSE55rK5.js → useQueries-C5BMFkFw.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BfJeKBg6.js +1 -0
- package/dist/client/assets/{users-CbH_Gfc3.js → users-ClLWsD2e.js} +1 -1
- package/dist/client/assets/{utils-C2C_XflP.js → utils-PCUp5118.js} +1 -1
- package/dist/client/assets/{variant-calendar-DIaq2FdX.js → variant-calendar-C92tYbri.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-CEitEQTV.js → variant-matcher-override-etDf_4I7.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Ib695qKF.js → view-mode-toggle-yTiIUXCA.js} +1 -1
- package/dist/client/assets/{virtual-mcp-CZmS87eX.js → virtual-mcp-CBkUrWeB.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-DUCG9jHV.js +0 -1
- package/dist/client/assets/agent-deck-DShfu7ZT.js +0 -1
- package/dist/client/assets/agent-file-CHH9Mgc8.js +0 -1
- package/dist/client/assets/agent-library-file-D2ia6GfT.js +0 -1
- package/dist/client/assets/agent-settings-vc6MlS3t.js +0 -1
- package/dist/client/assets/agent-site-editor-code-BlEfPPCG.js +0 -2
- package/dist/client/assets/agent-view-Q3G27DTH.js +0 -1
- package/dist/client/assets/api-keys-DKjA4BWP.js +0 -1
- package/dist/client/assets/app-editor-Bx4fdBDn.js +0 -1
- package/dist/client/assets/category-editor-CGUeaFVZ.js +0 -1
- package/dist/client/assets/project-reports-DXH1YN47.js +0 -1
- package/dist/client/assets/project-tasks-BkWryEy0.js +0 -1
- package/dist/client/assets/record-editor-B7qLBoAW.js +0 -1
- package/dist/client/assets/registry-7aCsq4-d.js +0 -2
- package/dist/client/assets/reports-bctE5arV.js +0 -1
- package/dist/client/assets/sandbox-git-api-CMdpE2TE.js +0 -1
- package/dist/client/assets/store-registry-DHQS2tT_.js +0 -2
- package/dist/client/assets/tasks-BDSkeIpT.js +0 -1
- package/dist/client/assets/useInfiniteQuery-D3_yfQKO.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BXmtRabr.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as F,j as i,b as ce,r as ee,aX as ye,h as ge,B as xe,l as je,av as Pe,t as ae,F as De,a9 as Ne,G as ue,H as ve,I as Ce}from"./index-CNdpljun.js";import{C as Se}from"./index-DyvRNjV-.js";import{A as we}from"./agent-view-guard-V5STCUzo.js";import{a as Ae}from"./Copy01-EMXGNAiO.js";import{i as _e}from"./DotsVertical-DhvTdpnP.js";import{i as ze}from"./ZoomOut-DalZqqCw.js";import{a as Fe}from"./Image01-8PFZYS9P.js";import{n as Ie}from"./LinkExternal01-DslZPBGz.js";import{a as Ue}from"./Package-jUQ-QNQ_.js";import{s as $e}from"./Trash01-CsZj7add.js";import{i as he}from"./Upload01-B0aywPN-.js";import{A as Me,a as Te,b as Ee,c as Oe,g as Re,d as Be,e as Le,f as Ve}from"./alert-dialog--j98vjuD.js";import{S as Ge}from"./search-input-BoYU-WLk.js";import{a as qe}from"./use-virtual-mcp-CMKJwsUx.js";import{u as He}from"./use-debounced-value-tumfDMYW.js";import{u as We}from"./use-file-configs-CMr6wIKD.js";import{u as Ke,a as Qe,e as Xe,i as Ye,b as ke,f as Je,c as Ze}from"./asset-utils-g7RXB14P.js";import{m as et}from"./match-site-slug-config-D3fUJ6vX.js";import{r as tt}from"./site-slug-uya6Wp4-.js";import{b as it}from"./thread-route-DWx_JTBG.js";import"./use-mobile-BKgmbAmN.js";import"./thread-button-D6HHWA2W.js";import"./sidebar-DSdLAxOi.js";import"./LayoutLeft-DuadrTfl.js";import"./sheet-Big3YL-7.js";import"./X-B9OR2y1D.js";import"./tooltip-C6enOXyh.js";import"./index-ZV5TChxh.js";import"./use-panel-navigate-3QPnKCQs.js";import"./use-project-scope-C0eA2U2p.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-DTa5_Ucp.js";import"./hooks-DuIBlPGY.js";import"./use-mcp-client-DMWht7XE.js";import"./auth-Dz9mRaTv.js";import"./backoff-8mStPHYB.js";import"./task-board-DmTmT7UC.js";import"./schema-B6UYFOiW.js";import"./agent-icon-DLq4L2Ao.js";import"./AlertCircle-DXrZ6SzB.js";import"./Tool01-5X6uedg8.js";import"./ArrowUp-CqB5FCTU.js";import"./ArrowLeft-D7adHwja.js";import"./Tool02-CR95_N0f.js";import"./ArrowRight-BveFFy2z.js";import"./TrendUp01-B7EaxChV.js";import"./Globe04-BTVlItdV.js";import"./CheckCircle-DMlFOadx.js";import"./ChevronUp-k_EOf84B.js";import"./UserSquare-zbEMpwdU.js";import"./CreditCard01-CiyU0eR_.js";import"./Download01-CsHqAVNu.js";import"./Settings02-Bs5wKTy4.js";import"./Eye-Bi64tP-D.js";import"./Share07-CUM6Dqvb.js";import"./Globe01-BWRc6bbu.js";import"./XClose-CmbUUKkG.js";import"./Key01-EHOZ3vmu.js";import"./Link01-KARtnBxY.js";import"./Monitor01-Crab2RRF.js";import"./Sun-x_EXvKiQ.js";import"./Palette-DqyEATuR.js";import"./Play-DIcksfye.js";import"./Plus-BHRPkby-.js";import"./SearchLg-C4rS8AcZ.js";import"./SearchMd-DxK3_oZM.js";import"./Stars01-BvVFnZBk.js";import"./User01-C_8SVY7B.js";import"./Users01-CV_KxvLX.js";import"./XCircle-DOFffLSN.js";import"./Zap-0kUaigVh.js";import"./toolbar-icon-button-Cy6AvRzw.js";import"./use-in-settings-CC_3sLol.js";import"./shell-layout-BkECXLU7.js";import"./avatar-DevS79NO.js";import"./download-app-dialog-BJ8H_bRY.js";import"./dialog-Ep7gkNp4.js";import"./command-ZfYjtuAl.js";import"./index-BJ7_v32m.js";import"./integration-icon-PR06095a.js";import"./project-icon-H5FrSPJO.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-C5L42ZZt.js";import"./autosend-BZKRqImC.js";import"./use-organization-settings-BTBv23HT.js";import"./use-org-sso-BWvxNBYa.js";import"./resizable-CdFoIU6A.js";import"./route-page-header-uHzDO22N.js";import"./use-main-panel-tabs-a6BYy7FD.js";import"./use-connection-D7t7y5-e.js";import"./use-mcp-tools-C25Cm-zz.js";import"./types-DfG-WUi_.js";import"./utils-CVEq3hMx.js";import"./index-DaXGCVlJ.js";import"./chat-context-C_38Spkt.js";import"./thread-intent-C_hq8Uw9.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-Cg9aLuDX.js";import"./use-ai-providers-Cvq_HjNr.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DZnHJX4M.js";import"./gateway-client-DCte15fa.js";import"./drawer-A7F0d8UD.js";import"./collection-search-CGwYR_uT.js";import"./use-mcp-prompts-c1iKw71K.js";import"./index-Cfhbhqg_.js";import"./form-7Lo4SdD_.js";import"./label-CEgqvjTx.js";import"./input-Chg2c8hI.js";import"./org-file-open-context-BSOmZpBS.js";import"./input-DD2FqIJD.js";import"./chat-draft-C2Y7ngNf.js";import"./use-session-runtime-BrxkMe8P.js";import"./select-CzmZ0exo.js";import"./usage-stats-CzGYHgmi.js";import"./use-copy-xo4iSDBQ.js";import"./markdown-5uzbD6VU.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./tabs-lbbUV-Fe.js";import"./use-deco-credits-Czcc02R-.js";import"./toggle-group-CXmezzq3.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-Bvzx5Ye5.js";import"./decopilot-BYcz3jno.js";import"./checkbox-sg-ezzoL.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-D2Z7_Tvr.js";import"./index-C0aUmM3M.js";import"./input-MZs4bQHH.js";import"./hooks-D8SGg3an.js";import"./use-org-fs-D5gmoaqA.js";import"./question-004-sINsf4GQ.js";import"./use-members-KvbK3wqJ.js";import"./use-org-auth-client-C9f9NC5y.js";import"./feature-paywall-ha_EsZpy.js";import"./plan-ladder-DETz2ThM.js";import"./add-connection-dialog-DU2-q29K.js";import"./extract-connection-data-BOFrfyRH.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-CTYIl1P4.js";import"./connection-card-BqtXbL-v.js";import"./use-registry-connections-vu7U4-eW.js";import"./useInfiniteQuery-D3_yfQKO.js";import"./infiniteQueryObserver-WcINROE-.js";import"./retry-i8LvYSZg.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-Bkx1K2qe.js";import"./connection-form-helpers-BPSWaVDO.js";import"./authenticate-and-persist-oauth-BNH6AGkF.js";import"./mcp-oauth-DRPFV8Ni.js";import"./collection-tabs-BXzRHkNV.js";import"./badge-B5sfAgyv.js";import"./use-infinite-scroll-DlNj8Tv9.js";import"./useSuspenseInfiniteQuery-BXmtRabr.js";import"./pair-D8FENe5Z.js";import"./collapsible-B9sp1MZx.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-6lbnwbz8.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-navigate-to-agent-DjpZeoZT.js";import"./use-thread-outputs-D2brweDC.js";import"./file-type-icon-D7QysGoM.js";import"./sandbox-lifecycle-context-czmbXmtE.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-metadata-B7KPiGxC.js";import"./use-project-native-view-presence-SX0Vw2gs.js";import"./virtual-mcp-CZmS87eX.js";function st(r){const e=F.c(6),{virtualMcpId:t}=r,s=qe(t),l=We();let o;e[0]!==l||e[1]!==s?(o=et(l,tt(s)),e[0]=l,e[1]=s,e[2]=o):o=e[2];const n=o;if(!n){let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(rt,{}),e[3]=a):a=e[3],a}let c;return e[4]!==n?(c=i.jsx(nt,{config:n}),e[4]=n,e[5]=c):c=e[5],c}function rt(){const r=F.c(12),e=ce();let t;r[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(Ue,{size:20,className:"text-muted-foreground"})}),r[0]=t):t=r[0];let s;r[1]!==e?(s=e("assets.browser.noBucketTitle"),r[1]=e,r[2]=s):s=r[2];let l;r[3]!==s?(l=i.jsx("p",{className:"text-sm font-medium",children:s}),r[3]=s,r[4]=l):l=r[4];let o;r[5]!==e?(o=e("assets.browser.noBucketDescription"),r[5]=e,r[6]=o):o=r[6];let n;r[7]!==o?(n=i.jsx("p",{className:"mt-1 max-w-sm text-xs text-muted-foreground",children:o}),r[7]=o,r[8]=n):n=r[8];let c;return r[9]!==l||r[10]!==n?(c=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]})]}),r[9]=l,r[10]=n,r[11]=c):c=r[11],c}function lt(r){return r<0||r<640?2:r<768?3:r<1024?4:5}function ot(r,e){const t=Array.from({length:e},()=>[]);return r.forEach((s,l)=>t[l%e].push(s)),t}function nt(r){const e=F.c(99),{config:t}=r,s=ce(),[l,o]=ee.useState(""),n=He(l,300);let c;e[0]!==t.id||e[1]!==n?(c={configId:t.id,search:n},e[0]=t.id,e[1]=n,e[2]=c):c=e[2];const a=Ke(c),m=Qe(),[y,p]=ee.useState(!1),[d,g]=ee.useState(null),u=ee.useRef(null);let h;e[3]!==t.id||e[4]!==a||e[5]!==s||e[6]!==m?(h=async function(A){if(!A)return;const Z=Array.from(A);if(Z.length===0)return;const U=[];for(const R of Z)try{await m.mutateAsync({configId:t.id,file:R})}catch($){const z=$;U.push(`${R.name} (${z instanceof Error?z.message:"upload failed"})`)}await a.refetch(),U.length>0&&ae.error(U.length===Z.length?s("filePicker.filePickerDialog.uploadFailedAll",{errors:U.join("; ")}):s("filePicker.filePickerDialog.uploadFailedSome",{errors:U.join("; ")}))},e[3]=t.id,e[4]=a,e[5]=s,e[6]=m,e[7]=h):h=e[7];const x=h;let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=function(A){A.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 _=v;let k;e[10]!==x?(k=function(A){A.preventDefault(),A.stopPropagation(),p(!1),x(A.dataTransfer.files)},e[10]=x,e[11]=k):k=e[11];const j=k,[P,C]=ye();let D,N,S,w,M,I;if(e[12]!==t.name||e[13]!==n||e[14]!==C||e[15]!==P||e[16]!==x||e[17]!==y||e[18]!==a.data?.pages||e[19]!==a.isFetching||e[20]!==a.isFetchingNextPage||e[21]!==j||e[22]!==l||e[23]!==s||e[24]!==m.isPending){const A=(a.data?.pages??[]).flatMap(at),Z=ot(A,lt(P)),U=n.trim(),R=l!==n||a.isFetching&&!a.isFetchingNextPage;M="flex h-full min-h-0 flex-col gap-3 p-4";let $;e[31]!==s?($=s("assets.browser.title"),e[31]=s,e[32]=$):$=e[32];let z;e[33]!==$?(z=i.jsx("h2",{className:"text-sm font-semibold",children:$}),e[33]=$,e[34]=z):z=e[34];let B;e[35]!==t.name||e[36]!==s?(B=s("assets.browser.bucketLabel",{name:t.name}),e[35]=t.name,e[36]=s,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]!==z||e[41]!==L?(V=i.jsxs("div",{className:"min-w-0",children:[z,L]}),e[40]=z,e[41]=L,e[42]=V):V=e[42];let re;e[43]===Symbol.for("react.memo_cache_sentinel")?(re=()=>u.current?.click(),e[43]=re):re=e[43];let G;e[44]!==m.isPending?(G=m.isPending?i.jsx(ge,{className:"size-3.5"}):i.jsx(he,{size:14}),e[44]=m.isPending,e[45]=G):G=e[45];let q;e[46]!==s||e[47]!==m.isPending?(q=m.isPending?s("filePicker.filePickerDialog.uploading"):s("filePicker.filePickerDialog.dropFilesOrClick"),e[46]=s,e[47]=m.isPending,e[48]=q):q=e[48];let H;e[49]!==G||e[50]!==q||e[51]!==m.isPending?(H=i.jsxs(xe,{type:"button",size:"sm",disabled:m.isPending,onClick:re,children:[G,q]}),e[49]=G,e[50]=q,e[51]=m.isPending,e[52]=H):H=e[52];let W;e[53]!==x?(W=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]=W):W=e[54],e[55]!==V||e[56]!==H||e[57]!==W?(I=i.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-3",children:[V,H,W]}),e[55]=V,e[56]=H,e[57]=W,e[58]=I):I=e[58];let K;e[59]!==s?(K=s("filePicker.filePickerDialog.searchFilesPlaceholder"),e[59]=s,e[60]=K):K=e[60],e[61]!==R||e[62]!==l||e[63]!==K?(D=i.jsx(Ge,{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 X;e[70]!==s?(X=s("filePicker.filePickerDialog.dropFilesOrClick"),e[70]=s,e[71]=X):X=e[71];let Y;e[72]!==s?(Y=s("filePicker.filePickerDialog.uploadSizeLimit"),e[72]=s,e[73]=Y):Y=e[73];let J;e[74]!==X||e[75]!==Y?(J=i.jsxs("p",{className:"text-xs text-muted-foreground",children:[X," ",Y]}),e[74]=X,e[75]=Y,e[76]=J):J=e[76],e[77]!==j||e[78]!==Q||e[79]!==J?(N=i.jsxs("button",{type:"button",onClick:le,onDragOver:b,onDragLeave:_,onDrop:j,className:Q,children:[oe,J]}),e[77]=j,e[78]=Q,e[79]=J,e[80]=N):N=e[80],S="min-h-0 flex-1 overflow-y-auto pr-1",w=A.length===0?U?i.jsx(be,{title:s("filePicker.filePickerDialog.noMatches",{query:U}),description:s("filePicker.filePickerDialog.tryDifferentSearchOrLoadMore")}):i.jsx(be,{title:s("filePicker.filePickerDialog.noFilesYet"),description:s("filePicker.filePickerDialog.dropFileToGetStarted")}):i.jsx("div",{ref:C,className:"flex items-start gap-3",children:Z.map((ne,pe)=>i.jsx("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:ne.map(de=>i.jsx(ct,{item:de,onDelete:()=>g(de)},de.key))},pe))}),e[12]=t.name,e[13]=n,e[14]=C,e[15]=P,e[16]=x,e[17]=y,e[18]=a.data?.pages,e[19]=a.isFetching,e[20]=a.isFetchingNextPage,e[21]=j,e[22]=l,e[23]=s,e[24]=m.isPending,e[25]=D,e[26]=N,e[27]=S,e[28]=w,e[29]=M,e[30]=I}else D=e[25],N=e[26],S=e[27],w=e[28],M=e[29],I=e[30];let T;e[81]!==a||e[82]!==s?(T=a.hasNextPage&&i.jsx("div",{className:"flex justify-center py-4",children:i.jsx(xe,{type:"button",variant:"outline",size:"sm",disabled:a.isFetchingNextPage,onClick:()=>a.fetchNextPage(),children:a.isFetchingNextPage?i.jsxs(i.Fragment,{children:[i.jsx(ge,{className:"size-3.5"}),s("filePicker.filePickerDialog.loading")]}):s("filePicker.filePickerDialog.loadMore")})}),e[81]=a,e[82]=s,e[83]=T):T=e[83];let E;e[84]!==T||e[85]!==S||e[86]!==w?(E=i.jsxs("div",{className:S,children:[w,T]}),e[84]=T,e[85]=S,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]!==I?(ie=i.jsxs("div",{className:M,children:[I,D,N,E,O]}),e[92]=D,e[93]=N,e[94]=E,e[95]=O,e[96]=M,e[97]=I,e[98]=ie):ie=e[98],ie}function at(r){return r.items}function be(r){const e=F.c(8),{title:t,description:s}=r;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(Fe,{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]!==s?(n=i.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[3]=s,e[4]=n):n=e[4];let c;return e[5]!==o||e[6]!==n?(c=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]=c):c=e[7],c}function ct(r){const e=F.c(34),{item:t,onDelete:s}=r;let l;e[0]!==t.key?(l=Xe(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 c=n;let a;e[4]!==c||e[5]!==t.key||e[6]!==t.publicUrl?(a=c?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(ze,{size:28,className:"text-muted-foreground"})}),e[4]=c,e[5]=t.key,e[6]=t.publicUrl,e[7]=a):a=e[7];let m;e[8]!==t.key||e[9]!==t.publicUrl||e[10]!==a?(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:a}),e[8]=t.key,e[9]=t.publicUrl,e[10]=a,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]!==s?(x=i.jsx(ft,{item:t,onDelete:s}),e[25]=t,e[26]=s,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(r){r.target.style.display="none"}function ft(r){const e=F.c(36),{item:t,onDelete:s}=r,l=ce(),[o,n]=ee.useState(!1);let c;e[0]!==t.publicUrl||e[1]!==l?(c=async function(){try{await navigator.clipboard.writeText(t.publicUrl),n(!0),window.setTimeout(()=>n(!1),1500)}catch{ae.error(l("filePicker.filePickerDialog.failedToCopyUrl"))}},e[0]=t.publicUrl,e[1]=l,e[2]=c):c=e[2];const a=c;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(_e,{size:14}),e[5]=y):y=e[5];let p;e[6]!==m?(p=i.jsx(De,{asChild:!0,children:i.jsx(xe,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0 classic: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(Ae,{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]!==a||e[14]!==d||e[15]!==g?(u=i.jsxs(ue,{onClick:a,children:[d,g]}),e[13]=a,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(Ie,{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($e,{size:14}),e[23]=v):v=e[23];let _;e[24]!==l?(_=l("assets.browser.deleteAction"),e[24]=l,e[25]=_):_=e[25];let k;e[26]!==s||e[27]!==_?(k=i.jsxs(ue,{variant:"destructive",onClick:s,children:[v,_]}),e[26]=s,e[27]=_,e[28]=k):k=e[28];let j;e[29]!==b||e[30]!==k||e[31]!==u?(j=i.jsxs(ve,{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(Ce,{children:[p,j]}),e[33]=j,e[34]=p,e[35]=P):P=e[35],P}function pt(r){const e=F.c(47),{configId:t,item:s,onClose:l}=r,o=ce(),n=Ze();let c;e[0]!==t||e[1]!==n||e[2]!==s||e[3]!==l||e[4]!==o?(c=async function(){if(s)try{await n.mutateAsync({configId:t,key:s.key}),ae.success(o("assets.browser.deleted")),l()}catch{ae.error(o("assets.browser.deleteFailed"))}},e[0]=t,e[1]=n,e[2]=s,e[3]=l,e[4]=o,e[5]=c):c=e[5];const a=c,m=!!s;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(Me,{children:p}),e[10]=p,e[11]=d):d=e[11];let g;e[12]!==s||e[13]!==o?(g=o("assets.browser.deleteConfirmDescription",{name:s?ke(s.key):""}),e[12]=s,e[13]=o,e[14]=g):g=e[14];let u;e[15]!==g?(u=i.jsx(Te,{children:g}),e[15]=g,e[16]=u):u=e[16];let h;e[17]!==d||e[18]!==u?(h=i.jsxs(Ee,{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(Oe,{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(Pe({variant:"destructive"})),e[25]=v):v=e[25];const _=n.isPending;let k;e[26]!==a?(k=w=>{w.preventDefault(),a()},e[26]=a,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 C;e[32]!==n.isPending||e[33]!==k||e[34]!==j||e[35]!==P?(C=i.jsxs(Re,{className:v,disabled:_,onClick:k,children:[j,P]}),e[32]=n.isPending,e[33]=k,e[34]=j,e[35]=P,e[36]=C):C=e[36];let D;e[37]!==b||e[38]!==C?(D=i.jsxs(Be,{children:[b,C]}),e[37]=b,e[38]=C,e[39]=D):D=e[39];let N;e[40]!==D||e[41]!==h?(N=i.jsxs(Le,{children:[h,D]}),e[40]=D,e[41]=h,e[42]=N):N=e[42];let S;return e[43]!==N||e[44]!==m||e[45]!==y?(S=i.jsx(Ve,{open:m,onOpenChange:y,children:N}),e[43]=N,e[44]=m,e[45]=y,e[46]=S):S=e[46],S}function dt(){const r=F.c(2),e=it();let t;return r[0]!==e?(t=i.jsx(we,{tabId:"assets",children:i.jsx(st,{virtualMcpId:e})}),r[0]=e,r[1]=t):t=r[1],t}function Pr(){const r=F.c(1);let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Se.Content,{children:i.jsx(dt,{})}),r[0]=e):e=r[0],e}export{Pr as default};
|
|
1
|
+
import{c as F,j as i,b as ce,r as ee,aX as ye,h as ge,B as xe,l as je,av as Pe,t as ae,F as De,a9 as Ne,G as ue,H as ve,I as Ce}from"./index-DvH-nwdq.js";import{C as Se}from"./index-CIqnRBIS.js";import{A as we}from"./agent-view-guard-CrodJew9.js";import{a as Ae}from"./Copy01-CALkaT8p.js";import{i as _e}from"./DotsVertical-DDZN-DIr.js";import{i as ze}from"./ZoomOut-CPqhC1BT.js";import{a as Fe}from"./Image01-D0SI0eJx.js";import{n as Ie}from"./LinkExternal01-PpT-VqQv.js";import{a as Ue}from"./Package-DmJJ2zwx.js";import{s as $e}from"./Trash01-CoDSwhlk.js";import{i as he}from"./Upload01-eY69lxYq.js";import{A as Me,a as Te,b as Ee,c as Oe,g as Re,d as Be,e as Le,f as Ve}from"./alert-dialog-BV6BL0PL.js";import{S as Ge}from"./search-input-BwVXUnNC.js";import{a as qe}from"./use-virtual-mcp-Db9im8eJ.js";import{u as He}from"./use-debounced-value-BHUjfc1k.js";import{u as We}from"./use-file-configs-CYQYBWb-.js";import{u as Ke,a as Qe,e as Xe,i as Ye,b as ke,f as Je,c as Ze}from"./asset-utils-BAPGdhel.js";import{m as et}from"./match-site-slug-config-D3fUJ6vX.js";import{r as tt}from"./site-slug-uya6Wp4-.js";import{b as it}from"./thread-route-DuM7Be1s.js";import"./use-mobile-BWQZ9Nov.js";import"./thread-button-C_zUFSq7.js";import"./sidebar-CbhdB9UQ.js";import"./LayoutLeft-CduVrmTY.js";import"./sheet-CCbrydch.js";import"./X-DIdmvXi5.js";import"./tooltip-DSdKYCbI.js";import"./index-CXqVfpeT.js";import"./use-panel-navigate-CtBFI8Fa.js";import"./use-project-scope-D2OaSlGh.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-n--kXIcz.js";import"./hooks-BZYmjCXU.js";import"./use-mcp-client-BIX1SQBb.js";import"./auth-BOVcch8v.js";import"./backoff-8mStPHYB.js";import"./task-board-DlYdtE3b.js";import"./schema-xJ7U_asm.js";import"./agent-icon-Cd4WgvSY.js";import"./AlertCircle-CL2g6hBv.js";import"./Tool01-BfvHlgMO.js";import"./ArrowUp-doBsDpEd.js";import"./ArrowLeft-BqNlqHdb.js";import"./Tool02-4AGlMp3_.js";import"./ArrowRight-yUmRMyFa.js";import"./TrendUp01-CUQslKNc.js";import"./Globe04-DE66YFpd.js";import"./CheckCircle-DNXT9LQw.js";import"./ChevronUp-Dc2CzZ9J.js";import"./UserSquare-yxnFTjmA.js";import"./CreditCard01-BGb46j0w.js";import"./Download01-CFSTXr8x.js";import"./Settings02-Cql2YRRu.js";import"./Eye-B_-FUDkf.js";import"./Share07-DZnJoaaB.js";import"./Globe01-DYZzNFRa.js";import"./XClose-C9HE5_ie.js";import"./Key01-CGyx-jB1.js";import"./Link01-b3QVbtfw.js";import"./Monitor01-tps0G-eA.js";import"./Sun-DHu0BtRe.js";import"./Palette-H25arUUw.js";import"./Play-CN9QsFKm.js";import"./Plus-BB6-c5sU.js";import"./SearchLg-CExd0K4D.js";import"./SearchMd-pcanFLxJ.js";import"./Stars01-koEVpHBg.js";import"./User01-DClxObx9.js";import"./Users01-Z1l_JeRj.js";import"./XCircle-CrmJoBI1.js";import"./Zap-gDYafaw-.js";import"./toolbar-icon-button-SL9rNc2I.js";import"./use-in-settings-C-U1gBbP.js";import"./shell-layout-C2j46sCx.js";import"./avatar-ClWEwL-z.js";import"./download-app-dialog-BkiFA22O.js";import"./dialog-2G-cQw5c.js";import"./command-BFopaNrK.js";import"./index-BmcZIG6I.js";import"./integration-icon-UwqkSKd2.js";import"./project-icon-DtWWc_Fg.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-i35y0evL.js";import"./autosend-aHWkl5NE.js";import"./use-organization-settings-Dsn6UluU.js";import"./use-org-sso-EP1tdwpB.js";import"./resizable-DXC545x4.js";import"./route-page-header-CjwQCjT6.js";import"./use-main-panel-tabs-DU0ArEIW.js";import"./use-connection-Daw6Xhb2.js";import"./use-mcp-tools-CkvnbZRz.js";import"./types-Bt92_6tp.js";import"./utils-CVEq3hMx.js";import"./index-DvPeuoo_.js";import"./chat-context-CR299TDT.js";import"./thread-intent-B84W3TB7.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-YUjw4iUa.js";import"./use-ai-providers-BjYj7e51.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DN9cn0m8.js";import"./gateway-client-DRvKrGBc.js";import"./drawer-DsN4VmdE.js";import"./collection-search-CIXgPHQU.js";import"./use-mcp-prompts-DKzGmPLS.js";import"./index-BcslvKns.js";import"./form-Djun1QNL.js";import"./label-CanEOsWK.js";import"./input-BYV3Mzlx.js";import"./org-file-open-context-B-Fg35Om.js";import"./input-B2NibJzZ.js";import"./chat-draft-BKtRPZeV.js";import"./use-session-runtime-UsUKYcrN.js";import"./select-CMaNbPPd.js";import"./usage-stats-DXMB2Ogz.js";import"./use-copy-7f7jLELO.js";import"./markdown-srbLLrsA.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./tabs-BfXcQInD.js";import"./use-deco-credits-D6PBQHrh.js";import"./toggle-group-D6olnL6L.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-DPt-2psD.js";import"./decopilot-CE5pqqZH.js";import"./checkbox-B3iDQT4l.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-DmyHt-2h.js";import"./index-DMzJoorZ.js";import"./input-BWgQhoD8.js";import"./hooks-DaelEUem.js";import"./use-org-fs-6hP98hgh.js";import"./question-004-sINsf4GQ.js";import"./use-members-dL8owSbV.js";import"./use-org-auth-client-CDLK3ArO.js";import"./feature-paywall-BZu2_xNC.js";import"./plan-ladder-C2EuN2q6.js";import"./add-connection-dialog-CVIbPpXW.js";import"./extract-connection-data-AxblE4p8.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-BSw7pzRm.js";import"./connection-card-CzEduBCC.js";import"./use-registry-connections-LjnGKNsQ.js";import"./useInfiniteQuery-h6ttw-AT.js";import"./infiniteQueryObserver-BkwDlHKY.js";import"./retry-i8LvYSZg.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-DA5akcl2.js";import"./connection-form-helpers-C80XYT0F.js";import"./authenticate-and-persist-oauth-Bq4Rx_LM.js";import"./mcp-oauth-DErZFwl3.js";import"./collection-tabs-Ced_1P3B.js";import"./badge-V2_EYnYE.js";import"./use-infinite-scroll-Cb4X67my.js";import"./useSuspenseInfiniteQuery-BfJeKBg6.js";import"./pair-BX6SRtxr.js";import"./collapsible-nit0_hco.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CknJJO0m.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-navigate-to-agent-CWYMJtiR.js";import"./use-thread-outputs-DeggN_DY.js";import"./file-type-icon-BN_9SI7i.js";import"./sandbox-lifecycle-context-r4oc1CgX.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-metadata--G-29y7J.js";import"./use-project-native-view-presence-Cm6tnbwT.js";import"./virtual-mcp-CBkUrWeB.js";function st(r){const e=F.c(6),{virtualMcpId:t}=r,s=qe(t),l=We();let o;e[0]!==l||e[1]!==s?(o=et(l,tt(s)),e[0]=l,e[1]=s,e[2]=o):o=e[2];const n=o;if(!n){let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(rt,{}),e[3]=a):a=e[3],a}let c;return e[4]!==n?(c=i.jsx(nt,{config:n}),e[4]=n,e[5]=c):c=e[5],c}function rt(){const r=F.c(12),e=ce();let t;r[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(Ue,{size:20,className:"text-muted-foreground"})}),r[0]=t):t=r[0];let s;r[1]!==e?(s=e("assets.browser.noBucketTitle"),r[1]=e,r[2]=s):s=r[2];let l;r[3]!==s?(l=i.jsx("p",{className:"text-sm font-medium",children:s}),r[3]=s,r[4]=l):l=r[4];let o;r[5]!==e?(o=e("assets.browser.noBucketDescription"),r[5]=e,r[6]=o):o=r[6];let n;r[7]!==o?(n=i.jsx("p",{className:"mt-1 max-w-sm text-xs text-muted-foreground",children:o}),r[7]=o,r[8]=n):n=r[8];let c;return r[9]!==l||r[10]!==n?(c=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]})]}),r[9]=l,r[10]=n,r[11]=c):c=r[11],c}function lt(r){return r<0||r<640?2:r<768?3:r<1024?4:5}function ot(r,e){const t=Array.from({length:e},()=>[]);return r.forEach((s,l)=>t[l%e].push(s)),t}function nt(r){const e=F.c(99),{config:t}=r,s=ce(),[l,o]=ee.useState(""),n=He(l,300);let c;e[0]!==t.id||e[1]!==n?(c={configId:t.id,search:n},e[0]=t.id,e[1]=n,e[2]=c):c=e[2];const a=Ke(c),m=Qe(),[y,p]=ee.useState(!1),[d,g]=ee.useState(null),u=ee.useRef(null);let h;e[3]!==t.id||e[4]!==a||e[5]!==s||e[6]!==m?(h=async function(A){if(!A)return;const Z=Array.from(A);if(Z.length===0)return;const U=[];for(const R of Z)try{await m.mutateAsync({configId:t.id,file:R})}catch($){const z=$;U.push(`${R.name} (${z instanceof Error?z.message:"upload failed"})`)}await a.refetch(),U.length>0&&ae.error(U.length===Z.length?s("filePicker.filePickerDialog.uploadFailedAll",{errors:U.join("; ")}):s("filePicker.filePickerDialog.uploadFailedSome",{errors:U.join("; ")}))},e[3]=t.id,e[4]=a,e[5]=s,e[6]=m,e[7]=h):h=e[7];const x=h;let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=function(A){A.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 _=v;let k;e[10]!==x?(k=function(A){A.preventDefault(),A.stopPropagation(),p(!1),x(A.dataTransfer.files)},e[10]=x,e[11]=k):k=e[11];const j=k,[P,C]=ye();let D,N,S,w,M,I;if(e[12]!==t.name||e[13]!==n||e[14]!==C||e[15]!==P||e[16]!==x||e[17]!==y||e[18]!==a.data?.pages||e[19]!==a.isFetching||e[20]!==a.isFetchingNextPage||e[21]!==j||e[22]!==l||e[23]!==s||e[24]!==m.isPending){const A=(a.data?.pages??[]).flatMap(at),Z=ot(A,lt(P)),U=n.trim(),R=l!==n||a.isFetching&&!a.isFetchingNextPage;M="flex h-full min-h-0 flex-col gap-3 p-4";let $;e[31]!==s?($=s("assets.browser.title"),e[31]=s,e[32]=$):$=e[32];let z;e[33]!==$?(z=i.jsx("h2",{className:"text-sm font-semibold",children:$}),e[33]=$,e[34]=z):z=e[34];let B;e[35]!==t.name||e[36]!==s?(B=s("assets.browser.bucketLabel",{name:t.name}),e[35]=t.name,e[36]=s,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]!==z||e[41]!==L?(V=i.jsxs("div",{className:"min-w-0",children:[z,L]}),e[40]=z,e[41]=L,e[42]=V):V=e[42];let re;e[43]===Symbol.for("react.memo_cache_sentinel")?(re=()=>u.current?.click(),e[43]=re):re=e[43];let G;e[44]!==m.isPending?(G=m.isPending?i.jsx(ge,{className:"size-3.5"}):i.jsx(he,{size:14}),e[44]=m.isPending,e[45]=G):G=e[45];let q;e[46]!==s||e[47]!==m.isPending?(q=m.isPending?s("filePicker.filePickerDialog.uploading"):s("filePicker.filePickerDialog.dropFilesOrClick"),e[46]=s,e[47]=m.isPending,e[48]=q):q=e[48];let H;e[49]!==G||e[50]!==q||e[51]!==m.isPending?(H=i.jsxs(xe,{type:"button",size:"sm",disabled:m.isPending,onClick:re,children:[G,q]}),e[49]=G,e[50]=q,e[51]=m.isPending,e[52]=H):H=e[52];let W;e[53]!==x?(W=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]=W):W=e[54],e[55]!==V||e[56]!==H||e[57]!==W?(I=i.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-3",children:[V,H,W]}),e[55]=V,e[56]=H,e[57]=W,e[58]=I):I=e[58];let K;e[59]!==s?(K=s("filePicker.filePickerDialog.searchFilesPlaceholder"),e[59]=s,e[60]=K):K=e[60],e[61]!==R||e[62]!==l||e[63]!==K?(D=i.jsx(Ge,{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 X;e[70]!==s?(X=s("filePicker.filePickerDialog.dropFilesOrClick"),e[70]=s,e[71]=X):X=e[71];let Y;e[72]!==s?(Y=s("filePicker.filePickerDialog.uploadSizeLimit"),e[72]=s,e[73]=Y):Y=e[73];let J;e[74]!==X||e[75]!==Y?(J=i.jsxs("p",{className:"text-xs text-muted-foreground",children:[X," ",Y]}),e[74]=X,e[75]=Y,e[76]=J):J=e[76],e[77]!==j||e[78]!==Q||e[79]!==J?(N=i.jsxs("button",{type:"button",onClick:le,onDragOver:b,onDragLeave:_,onDrop:j,className:Q,children:[oe,J]}),e[77]=j,e[78]=Q,e[79]=J,e[80]=N):N=e[80],S="min-h-0 flex-1 overflow-y-auto pr-1",w=A.length===0?U?i.jsx(be,{title:s("filePicker.filePickerDialog.noMatches",{query:U}),description:s("filePicker.filePickerDialog.tryDifferentSearchOrLoadMore")}):i.jsx(be,{title:s("filePicker.filePickerDialog.noFilesYet"),description:s("filePicker.filePickerDialog.dropFileToGetStarted")}):i.jsx("div",{ref:C,className:"flex items-start gap-3",children:Z.map((ne,pe)=>i.jsx("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:ne.map(de=>i.jsx(ct,{item:de,onDelete:()=>g(de)},de.key))},pe))}),e[12]=t.name,e[13]=n,e[14]=C,e[15]=P,e[16]=x,e[17]=y,e[18]=a.data?.pages,e[19]=a.isFetching,e[20]=a.isFetchingNextPage,e[21]=j,e[22]=l,e[23]=s,e[24]=m.isPending,e[25]=D,e[26]=N,e[27]=S,e[28]=w,e[29]=M,e[30]=I}else D=e[25],N=e[26],S=e[27],w=e[28],M=e[29],I=e[30];let T;e[81]!==a||e[82]!==s?(T=a.hasNextPage&&i.jsx("div",{className:"flex justify-center py-4",children:i.jsx(xe,{type:"button",variant:"outline",size:"sm",disabled:a.isFetchingNextPage,onClick:()=>a.fetchNextPage(),children:a.isFetchingNextPage?i.jsxs(i.Fragment,{children:[i.jsx(ge,{className:"size-3.5"}),s("filePicker.filePickerDialog.loading")]}):s("filePicker.filePickerDialog.loadMore")})}),e[81]=a,e[82]=s,e[83]=T):T=e[83];let E;e[84]!==T||e[85]!==S||e[86]!==w?(E=i.jsxs("div",{className:S,children:[w,T]}),e[84]=T,e[85]=S,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]!==I?(ie=i.jsxs("div",{className:M,children:[I,D,N,E,O]}),e[92]=D,e[93]=N,e[94]=E,e[95]=O,e[96]=M,e[97]=I,e[98]=ie):ie=e[98],ie}function at(r){return r.items}function be(r){const e=F.c(8),{title:t,description:s}=r;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(Fe,{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]!==s?(n=i.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[3]=s,e[4]=n):n=e[4];let c;return e[5]!==o||e[6]!==n?(c=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]=c):c=e[7],c}function ct(r){const e=F.c(34),{item:t,onDelete:s}=r;let l;e[0]!==t.key?(l=Xe(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 c=n;let a;e[4]!==c||e[5]!==t.key||e[6]!==t.publicUrl?(a=c?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(ze,{size:28,className:"text-muted-foreground"})}),e[4]=c,e[5]=t.key,e[6]=t.publicUrl,e[7]=a):a=e[7];let m;e[8]!==t.key||e[9]!==t.publicUrl||e[10]!==a?(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:a}),e[8]=t.key,e[9]=t.publicUrl,e[10]=a,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]!==s?(x=i.jsx(ft,{item:t,onDelete:s}),e[25]=t,e[26]=s,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(r){r.target.style.display="none"}function ft(r){const e=F.c(36),{item:t,onDelete:s}=r,l=ce(),[o,n]=ee.useState(!1);let c;e[0]!==t.publicUrl||e[1]!==l?(c=async function(){try{await navigator.clipboard.writeText(t.publicUrl),n(!0),window.setTimeout(()=>n(!1),1500)}catch{ae.error(l("filePicker.filePickerDialog.failedToCopyUrl"))}},e[0]=t.publicUrl,e[1]=l,e[2]=c):c=e[2];const a=c;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(_e,{size:14}),e[5]=y):y=e[5];let p;e[6]!==m?(p=i.jsx(De,{asChild:!0,children:i.jsx(xe,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0 classic: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(Ae,{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]!==a||e[14]!==d||e[15]!==g?(u=i.jsxs(ue,{onClick:a,children:[d,g]}),e[13]=a,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(Ie,{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($e,{size:14}),e[23]=v):v=e[23];let _;e[24]!==l?(_=l("assets.browser.deleteAction"),e[24]=l,e[25]=_):_=e[25];let k;e[26]!==s||e[27]!==_?(k=i.jsxs(ue,{variant:"destructive",onClick:s,children:[v,_]}),e[26]=s,e[27]=_,e[28]=k):k=e[28];let j;e[29]!==b||e[30]!==k||e[31]!==u?(j=i.jsxs(ve,{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(Ce,{children:[p,j]}),e[33]=j,e[34]=p,e[35]=P):P=e[35],P}function pt(r){const e=F.c(47),{configId:t,item:s,onClose:l}=r,o=ce(),n=Ze();let c;e[0]!==t||e[1]!==n||e[2]!==s||e[3]!==l||e[4]!==o?(c=async function(){if(s)try{await n.mutateAsync({configId:t,key:s.key}),ae.success(o("assets.browser.deleted")),l()}catch{ae.error(o("assets.browser.deleteFailed"))}},e[0]=t,e[1]=n,e[2]=s,e[3]=l,e[4]=o,e[5]=c):c=e[5];const a=c,m=!!s;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(Me,{children:p}),e[10]=p,e[11]=d):d=e[11];let g;e[12]!==s||e[13]!==o?(g=o("assets.browser.deleteConfirmDescription",{name:s?ke(s.key):""}),e[12]=s,e[13]=o,e[14]=g):g=e[14];let u;e[15]!==g?(u=i.jsx(Te,{children:g}),e[15]=g,e[16]=u):u=e[16];let h;e[17]!==d||e[18]!==u?(h=i.jsxs(Ee,{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(Oe,{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(Pe({variant:"destructive"})),e[25]=v):v=e[25];const _=n.isPending;let k;e[26]!==a?(k=w=>{w.preventDefault(),a()},e[26]=a,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 C;e[32]!==n.isPending||e[33]!==k||e[34]!==j||e[35]!==P?(C=i.jsxs(Re,{className:v,disabled:_,onClick:k,children:[j,P]}),e[32]=n.isPending,e[33]=k,e[34]=j,e[35]=P,e[36]=C):C=e[36];let D;e[37]!==b||e[38]!==C?(D=i.jsxs(Be,{children:[b,C]}),e[37]=b,e[38]=C,e[39]=D):D=e[39];let N;e[40]!==D||e[41]!==h?(N=i.jsxs(Le,{children:[h,D]}),e[40]=D,e[41]=h,e[42]=N):N=e[42];let S;return e[43]!==N||e[44]!==m||e[45]!==y?(S=i.jsx(Ve,{open:m,onOpenChange:y,children:N}),e[43]=N,e[44]=m,e[45]=y,e[46]=S):S=e[46],S}function dt(){const r=F.c(2),e=it();let t;return r[0]!==e?(t=i.jsx(we,{tabId:"assets",children:i.jsx(st,{virtualMcpId:e})}),r[0]=e,r[1]=t):t=r[1],t}function Pr(){const r=F.c(1);let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Se.Content,{children:i.jsx(dt,{})}),r[0]=e):e=r[0],e}export{Pr as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aj as It,c as ce,b as me,r as D,j as t,B as Q,a9 as $t,l as At,a0 as gt,I as Pt,F as zt,H as Et,aS as Kt,aT as Ft,aU as Ot,G as Ae,t as oe,aH as Mt,h as _e,q as Ne,ar as Rt,aV as Ye,aW as Lt,ae as Ut,n as Ue,aK as ht,f as Wt}from"./index-CNdpljun.js";import{C as Vt}from"./index-DyvRNjV-.js";import{a8 as Gt,i as Bt,a9 as Ht,aa as Xt,F as Ze,L as et,ab as Jt,d as qt,ac as Te}from"./agent-icon-DLq4L2Ao.js";import{t as Ge}from"./ChevronUp-k_EOf84B.js";import{c as Qt}from"./UserSquare-zbEMpwdU.js";import{d as Be,a as jt}from"./Tool01-5X6uedg8.js";import{i as tt}from"./Share07-CUM6Dqvb.js";import{i as He}from"./Globe01-BWRc6bbu.js";import{a as Yt}from"./Image01-8PFZYS9P.js";import{i as Zt}from"./SearchMd-DxK3_oZM.js";import{t as yt}from"./Stars01-BvVFnZBk.js";import{B as es}from"./badge-B5sfAgyv.js";import{C as bt}from"./checkbox-sg-ezzoL.js";import{S as vt}from"./switch-DNg8Qgce.js";import{a as Ct,b as St,P as Nt}from"./popover-D2Z7_Tvr.js";import{C as ts,a as st,b as ss,d as os,e as ns,c as as}from"./command-ZfYjtuAl.js";import{g as is,s as rs}from"./gateway-client-DCte15fa.js";import{u as Xe}from"./use-connection-D7t7y5-e.js";import{u as ls}from"./use-mcp-client-DMWht7XE.js";import{u as cs}from"./use-mcp-tools-C25Cm-zz.js";import{I as ds}from"./integration-icon-PR06095a.js";import{M as ms}from"./select-model-BMG95zD9.js";import{u as us}from"./use-ai-providers-Cvq_HjNr.js";import{U as ps,b as fs}from"./build-improve-prompt-doc-Gsk0rQPh.js";import{a as Fe,c as xs,d as gs}from"./use-automations-GgRcmlLb.js";import{b as hs,a as js,t as ys,g as bs}from"./chat-context-C_38Spkt.js";import{b as vs,C as Cs,a as Ss}from"./collapsible-B9sp1MZx.js";import{I as ot}from"./input-Chg2c8hI.js";import{c as Ns,T as ks,a as Ts}from"./tooltip-C6enOXyh.js";import{a as ws}from"./shell-layout-BkECXLU7.js";import{i as kt}from"./ArrowLeft-D7adHwja.js";import{i as _s}from"./ArrowUp-CqB5FCTU.js";import{s as Ds}from"./Trash01-CsZj7add.js";import{s as Je}from"./XClose-CmbUUKkG.js";import{u as nt}from"./use-debounced-autosave-pxwwDVN-.js";import{T as Is,a as $s}from"./input-MZs4bQHH.js";import{s as As}from"./Plus-BHRPkby-.js";import{i as qe}from"./Zap-0kUaigVh.js";import{d as Ps,h as zs,c as Es,e as Ks,b as Fs,D as Os}from"./dialog-Ep7gkNp4.js";import{b as Ms,a as Rs,T as at}from"./tabs-lbbUV-Fe.js";import{a as We}from"./Copy01-EMXGNAiO.js";import{M as Ls}from"./monaco-editor-YcYvcmpi.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--j98vjuD.js";import{S as Pe,b as ze,a as Ee,d as Ke,c as Oe}from"./select-CzmZ0exo.js";import{A as Us}from"./automation-runs-Dxt5rTNn.js";import{C as Ws}from"./collection-tabs-BXzRHkNV.js";import{a as Vs}from"./use-panel-navigate-3QPnKCQs.js";import"./use-mobile-BKgmbAmN.js";import"./thread-button-D6HHWA2W.js";import"./sidebar-DSdLAxOi.js";import"./LayoutLeft-DuadrTfl.js";import"./sheet-Big3YL-7.js";import"./X-B9OR2y1D.js";import"./thread-route-DWx_JTBG.js";import"./use-route-default-main-DTa5_Ucp.js";import"./hooks-DuIBlPGY.js";import"./backoff-8mStPHYB.js";import"./task-board-DmTmT7UC.js";import"./schema-B6UYFOiW.js";import"./toolbar-icon-button-Cy6AvRzw.js";import"./use-in-settings-CC_3sLol.js";import"./resizable-CdFoIU6A.js";import"./route-page-header-uHzDO22N.js";import"./use-project-scope-C0eA2U2p.js";import"./use-virtual-mcp-CMKJwsUx.js";import"./github-repo-BknN0SVI.js";import"./AlertCircle-DXrZ6SzB.js";import"./Tool02-CR95_N0f.js";import"./ArrowRight-BveFFy2z.js";import"./TrendUp01-B7EaxChV.js";import"./ZoomOut-DalZqqCw.js";import"./Globe04-BTVlItdV.js";import"./CheckCircle-DMlFOadx.js";import"./CreditCard01-CiyU0eR_.js";import"./DotsVertical-DhvTdpnP.js";import"./Download01-CsHqAVNu.js";import"./Settings02-Bs5wKTy4.js";import"./Eye-Bi64tP-D.js";import"./Key01-EHOZ3vmu.js";import"./Link01-KARtnBxY.js";import"./LinkExternal01-DslZPBGz.js";import"./Monitor01-Crab2RRF.js";import"./Sun-x_EXvKiQ.js";import"./Package-jUQ-QNQ_.js";import"./Palette-DqyEATuR.js";import"./Play-DIcksfye.js";import"./SearchLg-C4rS8AcZ.js";import"./Upload01-B0aywPN-.js";import"./User01-C_8SVY7B.js";import"./Users01-CV_KxvLX.js";import"./XCircle-DOFffLSN.js";import"./index-BJ7_v32m.js";import"./auth-Dz9mRaTv.js";import"./drawer-A7F0d8UD.js";import"./decopilot-BYcz3jno.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-DevS79NO.js";import"./download-app-dialog-BJ8H_bRY.js";import"./use-is-desktop-app-BNujXJc_.js";import"./index-C0aUmM3M.js";import"./autosend-BZKRqImC.js";import"./thread-intent-C_hq8Uw9.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-Cg9aLuDX.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DZnHJX4M.js";import"./use-organization-settings-BTBv23HT.js";import"./index-ZV5TChxh.js";import"./project-icon-H5FrSPJO.js";import"./required-auth-layout-C5L42ZZt.js";import"./use-org-sso-BWvxNBYa.js";import"./hooks-D8SGg3an.js";import"./index-Cfhbhqg_.js";import"./form-7Lo4SdD_.js";import"./label-CEgqvjTx.js";import"./utils-CVEq3hMx.js";import"./org-file-open-context-BSOmZpBS.js";import"./use-mcp-prompts-c1iKw71K.js";import"./use-org-fs-D5gmoaqA.js";import"./editor-B-GNLQkJ.js";import"./useInfiniteQuery-D3_yfQKO.js";import"./infiniteQueryObserver-WcINROE-.js";import"./table-N3sFzY9O.js";import"./empty-state-On4g7NCI.js";import"./use-infinite-scroll-DlNj8Tv9.js";import"./use-members-KvbK3wqJ.js";import"./use-org-auth-client-C9f9NC5y.js";import"./task-status-DzeLZc0t.js";import"./thread-sheet-body-rqTYmTzR.js";import"./useSuspenseInfiniteQuery-BXmtRabr.js";import"./pair-D8FENe5Z.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-xo4iSDBQ.js";import"./usage-stats-CzGYHgmi.js";import"./markdown-5uzbD6VU.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-6lbnwbz8.js";import"./types-DfG-WUi_.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./use-navigate-to-agent-DjpZeoZT.js";import"./use-thread-outputs-D2brweDC.js";import"./file-type-icon-D7QysGoM.js";const Ve={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:qt},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:yt},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:Jt}},Gs=["fast","smart","thinking"];function Bs(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(Ge,{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=Gs.map(m=>{const x=Ve[m],b=x.icon;return t.jsxs("button",{type:"button",onClick:()=>{i(m),l(!1)},className:At("flex items-start gap-2 px-2 py-1.5 classic:rounded-md compact:rounded-lg 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($t,{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(St,{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(Nt,{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(Bs,{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=us(),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",children:t.jsx(ms,{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:Be,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:Yt},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:It},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:Gt}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:tt,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:Bt},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:jt},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:Ht},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:Zt},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:tt},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:Xt}]},{key:"context",headingKey:"automations.automationConfig.context",icon:Ze,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:Ze},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:et},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:et}]}],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(Be,{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(ss,{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(ds,{icon:o.icon,name:o.title,size:"2xs"}):n?t.jsx(n,{size:14,className:"text-muted-foreground"}):t.jsx(Qt,{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=ls(u);let p;e[4]!==c?(p={client:c},e[4]=c,e[5]=p):p=e[5];const{data:g,isLoading:h}=cs(p),d=Xe();let f,m,x,b,C,w,S,z,_,v,N,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)),B=new Map;for(const T of g?.tools??[]){const A=is(T._meta)??"__other__",q=rs(T.name,A==="__other__"?void 0:A),$=T.title,xe=$&&$!==T.name?$:qs(q);B.has(A)||B.set(A,{clientId:A,conn:H.get(A),tools:[]}),B.get(A).tools.push({name:T.name,display:xe,description:T.description})}const V=[...B.values()].sort(so),X=(g?.tools??[]).map(to),G=[...Js,...X],L=i===null?new Set(G):new Set(i),W=G.every(T=>L.has(T)),I=T=>n(G.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=Nt,E=r,C=j;let J;e[26]===Symbol.for("react.memo_cache_sentinel")?(J=t.jsx(Be,{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(es,{variant:"secondary",className:"ml-0.5 h-5 px-1.5 text-[11px] tabular-nums",children:[L.size,"/",G.length]});let de;e[30]===Symbol.for("react.memo_cache_sentinel")?(de=t.jsx(Ge,{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=St,N="p-0 w-80",k="start",m=os;let ee;e[34]!==s?(ee=s("automations.automationConfig.searchToolsPlaceholder"),e[34]=s,e[35]=ee):ee=e[35],e[36]!==ee?(_=t.jsx(ns,{placeholder:ee}),e[36]=ee,e[37]=_):_=e[37];const pe=W?s("automations.automationConfig.allToolsEnabled",{count:G.length}):s("automations.automationConfig.toolsEnabledCount",{enabled:L.size,total:G.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=as,S="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(ts,{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]=S,e[20]=z,e[21]=_,e[22]=v,e[23]=N,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],S=e[19],z=e[20],_=e[21],v=e[22],N=e[23],k=e[24],E=e[25];let F;e[63]!==f||e[64]!==S||e[65]!==z?(F=t.jsx(f,{className:S,children:z}),e[63]=f,e[64]=S,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]!==N||e[75]!==k?(R=t.jsx(x,{className:N,align:k,children:K}),e[72]=x,e[73]=K,e[74]=N,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(Pt,{open:c,onOpenChange:p,children:[t.jsx(zt,{asChild:!0,children:t.jsxs(Q,{variant:"outline",size:"sm",children:[t.jsx(As,{size:14}),l("automations.addStarterPopover.addStarter")]})}),t.jsxs(Et,{align:"end",className:"w-[200px]",children:[t.jsxs(Kt,{children:[t.jsxs(Ft,{className:"gap-2.5",children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.every")]}),t.jsx(Ot,{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 S=w,z=n&&s?f==="header"?`curl -X POST "${S}" \\
|
|
1
|
+
import{aj as It,c as ce,b as me,r as D,j as t,B as Q,a9 as $t,l as At,a0 as gt,I as Pt,F as zt,H as Et,aS as Kt,aT as Ft,aU as Ot,G as Ae,t as oe,aH as Mt,h as _e,q as Ne,ar as Rt,aV as Ye,aW as Lt,ae as Ut,n as Ue,aK as ht,f as Wt}from"./index-DvH-nwdq.js";import{C as Vt}from"./index-CIqnRBIS.js";import{a8 as Gt,i as Bt,a9 as Ht,aa as Xt,F as Ze,L as et,ab as Jt,d as qt,ac as Te}from"./agent-icon-Cd4WgvSY.js";import{t as Ge}from"./ChevronUp-Dc2CzZ9J.js";import{c as Qt}from"./UserSquare-yxnFTjmA.js";import{d as Be,a as jt}from"./Tool01-BfvHlgMO.js";import{i as tt}from"./Share07-DZnJoaaB.js";import{i as He}from"./Globe01-DYZzNFRa.js";import{a as Yt}from"./Image01-D0SI0eJx.js";import{i as Zt}from"./SearchMd-pcanFLxJ.js";import{t as yt}from"./Stars01-koEVpHBg.js";import{B as es}from"./badge-V2_EYnYE.js";import{C as bt}from"./checkbox-B3iDQT4l.js";import{S as vt}from"./switch-DgkvwxDL.js";import{a as Ct,b as St,P as Nt}from"./popover-DmyHt-2h.js";import{C as ts,a as st,b as ss,d as os,e as ns,c as as}from"./command-BFopaNrK.js";import{g as is,s as rs}from"./gateway-client-DRvKrGBc.js";import{u as Xe}from"./use-connection-Daw6Xhb2.js";import{u as ls}from"./use-mcp-client-BIX1SQBb.js";import{u as cs}from"./use-mcp-tools-CkvnbZRz.js";import{I as ds}from"./integration-icon-UwqkSKd2.js";import{M as ms}from"./select-model-BnUKdsMx.js";import{u as us}from"./use-ai-providers-BjYj7e51.js";import{U as ps,b as fs}from"./build-improve-prompt-doc-C0HV3Evo.js";import{a as Fe,c as xs,d as gs}from"./use-automations-AZ1h_dVu.js";import{b as hs,a as js,t as ys,g as bs}from"./chat-context-CR299TDT.js";import{b as vs,C as Cs,a as Ss}from"./collapsible-nit0_hco.js";import{I as ot}from"./input-BYV3Mzlx.js";import{c as Ns,T as ks,a as Ts}from"./tooltip-DSdKYCbI.js";import{a as ws}from"./shell-layout-C2j46sCx.js";import{i as kt}from"./ArrowLeft-BqNlqHdb.js";import{i as _s}from"./ArrowUp-doBsDpEd.js";import{s as Ds}from"./Trash01-CoDSwhlk.js";import{s as Je}from"./XClose-C9HE5_ie.js";import{u as nt}from"./use-debounced-autosave-BsIVeoqi.js";import{T as Is,a as $s}from"./input-BWgQhoD8.js";import{s as As}from"./Plus-BB6-c5sU.js";import{i as qe}from"./Zap-gDYafaw-.js";import{d as Ps,h as zs,c as Es,e as Ks,b as Fs,D as Os}from"./dialog-2G-cQw5c.js";import{b as Ms,a as Rs,T as at}from"./tabs-BfXcQInD.js";import{a as We}from"./Copy01-CALkaT8p.js";import{M as Ls}from"./monaco-editor-bMyr3tAL.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-BV6BL0PL.js";import{S as Pe,b as ze,a as Ee,d as Ke,c as Oe}from"./select-CMaNbPPd.js";import{A as Us}from"./automation-runs-CXRY4ihl.js";import{C as Ws}from"./collection-tabs-Ced_1P3B.js";import{a as Vs}from"./use-panel-navigate-CtBFI8Fa.js";import"./use-mobile-BWQZ9Nov.js";import"./thread-button-C_zUFSq7.js";import"./sidebar-CbhdB9UQ.js";import"./LayoutLeft-CduVrmTY.js";import"./sheet-CCbrydch.js";import"./X-DIdmvXi5.js";import"./thread-route-DuM7Be1s.js";import"./use-route-default-main-n--kXIcz.js";import"./hooks-BZYmjCXU.js";import"./backoff-8mStPHYB.js";import"./task-board-DlYdtE3b.js";import"./schema-xJ7U_asm.js";import"./toolbar-icon-button-SL9rNc2I.js";import"./use-in-settings-C-U1gBbP.js";import"./resizable-DXC545x4.js";import"./route-page-header-CjwQCjT6.js";import"./use-project-scope-D2OaSlGh.js";import"./use-virtual-mcp-Db9im8eJ.js";import"./github-repo-BknN0SVI.js";import"./AlertCircle-CL2g6hBv.js";import"./Tool02-4AGlMp3_.js";import"./ArrowRight-yUmRMyFa.js";import"./TrendUp01-CUQslKNc.js";import"./ZoomOut-CPqhC1BT.js";import"./Globe04-DE66YFpd.js";import"./CheckCircle-DNXT9LQw.js";import"./CreditCard01-BGb46j0w.js";import"./DotsVertical-DDZN-DIr.js";import"./Download01-CFSTXr8x.js";import"./Settings02-Cql2YRRu.js";import"./Eye-B_-FUDkf.js";import"./Key01-CGyx-jB1.js";import"./Link01-b3QVbtfw.js";import"./LinkExternal01-PpT-VqQv.js";import"./Monitor01-tps0G-eA.js";import"./Sun-DHu0BtRe.js";import"./Package-DmJJ2zwx.js";import"./Palette-H25arUUw.js";import"./Play-CN9QsFKm.js";import"./SearchLg-CExd0K4D.js";import"./Upload01-eY69lxYq.js";import"./User01-DClxObx9.js";import"./Users01-Z1l_JeRj.js";import"./XCircle-CrmJoBI1.js";import"./index-BmcZIG6I.js";import"./auth-BOVcch8v.js";import"./drawer-DsN4VmdE.js";import"./decopilot-CE5pqqZH.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-ClWEwL-z.js";import"./download-app-dialog-BkiFA22O.js";import"./use-is-desktop-app-BNujXJc_.js";import"./index-DMzJoorZ.js";import"./autosend-aHWkl5NE.js";import"./thread-intent-B84W3TB7.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-YUjw4iUa.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DN9cn0m8.js";import"./use-organization-settings-Dsn6UluU.js";import"./index-CXqVfpeT.js";import"./project-icon-DtWWc_Fg.js";import"./required-auth-layout-i35y0evL.js";import"./use-org-sso-EP1tdwpB.js";import"./hooks-DaelEUem.js";import"./index-BcslvKns.js";import"./form-Djun1QNL.js";import"./label-CanEOsWK.js";import"./utils-CVEq3hMx.js";import"./org-file-open-context-B-Fg35Om.js";import"./use-mcp-prompts-DKzGmPLS.js";import"./use-org-fs-6hP98hgh.js";import"./editor-WAZQ2CEk.js";import"./useInfiniteQuery-h6ttw-AT.js";import"./infiniteQueryObserver-BkwDlHKY.js";import"./table-BBW479Qc.js";import"./empty-state-Dcth7zyn.js";import"./use-infinite-scroll-Cb4X67my.js";import"./use-members-dL8owSbV.js";import"./use-org-auth-client-CDLK3ArO.js";import"./task-status-B4Q-ln7c.js";import"./thread-sheet-body-DTPa7uQ5.js";import"./useSuspenseInfiniteQuery-BfJeKBg6.js";import"./pair-BX6SRtxr.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-7f7jLELO.js";import"./usage-stats-DXMB2Ogz.js";import"./markdown-srbLLrsA.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CknJJO0m.js";import"./types-Bt92_6tp.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./use-navigate-to-agent-CWYMJtiR.js";import"./use-thread-outputs-DeggN_DY.js";import"./file-type-icon-BN_9SI7i.js";const Ve={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:qt},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:yt},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:Jt}},Gs=["fast","smart","thinking"];function Bs(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(Ge,{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=Gs.map(m=>{const x=Ve[m],b=x.icon;return t.jsxs("button",{type:"button",onClick:()=>{i(m),l(!1)},className:At("flex items-start gap-2 px-2 py-1.5 classic:rounded-md compact:rounded-lg 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($t,{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(St,{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(Nt,{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(Bs,{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=us(),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",children:t.jsx(ms,{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:Be,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:Yt},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:It},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:Gt}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:tt,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:Bt},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:jt},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:Ht},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:Zt},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:tt},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:Xt}]},{key:"context",headingKey:"automations.automationConfig.context",icon:Ze,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:Ze},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:et},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:et}]}],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(Be,{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(ss,{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(ds,{icon:o.icon,name:o.title,size:"2xs"}):n?t.jsx(n,{size:14,className:"text-muted-foreground"}):t.jsx(Qt,{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=ls(u);let p;e[4]!==c?(p={client:c},e[4]=c,e[5]=p):p=e[5];const{data:g,isLoading:h}=cs(p),d=Xe();let f,m,x,b,C,w,S,z,_,v,N,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)),B=new Map;for(const T of g?.tools??[]){const A=is(T._meta)??"__other__",q=rs(T.name,A==="__other__"?void 0:A),$=T.title,xe=$&&$!==T.name?$:qs(q);B.has(A)||B.set(A,{clientId:A,conn:H.get(A),tools:[]}),B.get(A).tools.push({name:T.name,display:xe,description:T.description})}const V=[...B.values()].sort(so),X=(g?.tools??[]).map(to),G=[...Js,...X],L=i===null?new Set(G):new Set(i),W=G.every(T=>L.has(T)),I=T=>n(G.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=Nt,E=r,C=j;let J;e[26]===Symbol.for("react.memo_cache_sentinel")?(J=t.jsx(Be,{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(es,{variant:"secondary",className:"ml-0.5 h-5 px-1.5 text-[11px] tabular-nums",children:[L.size,"/",G.length]});let de;e[30]===Symbol.for("react.memo_cache_sentinel")?(de=t.jsx(Ge,{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=St,N="p-0 w-80",k="start",m=os;let ee;e[34]!==s?(ee=s("automations.automationConfig.searchToolsPlaceholder"),e[34]=s,e[35]=ee):ee=e[35],e[36]!==ee?(_=t.jsx(ns,{placeholder:ee}),e[36]=ee,e[37]=_):_=e[37];const pe=W?s("automations.automationConfig.allToolsEnabled",{count:G.length}):s("automations.automationConfig.toolsEnabledCount",{enabled:L.size,total:G.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=as,S="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(ts,{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]=S,e[20]=z,e[21]=_,e[22]=v,e[23]=N,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],S=e[19],z=e[20],_=e[21],v=e[22],N=e[23],k=e[24],E=e[25];let F;e[63]!==f||e[64]!==S||e[65]!==z?(F=t.jsx(f,{className:S,children:z}),e[63]=f,e[64]=S,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]!==N||e[75]!==k?(R=t.jsx(x,{className:N,align:k,children:K}),e[72]=x,e[73]=K,e[74]=N,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(Pt,{open:c,onOpenChange:p,children:[t.jsx(zt,{asChild:!0,children:t.jsxs(Q,{variant:"outline",size:"sm",children:[t.jsx(As,{size:14}),l("automations.addStarterPopover.addStarter")]})}),t.jsxs(Et,{align:"end",className:"w-[200px]",children:[t.jsxs(Kt,{children:[t.jsxs(Ft,{className:"gap-2.5",children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.every")]}),t.jsx(Ot,{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 S=w,z=n&&s?f==="header"?`curl -X POST "${S}" \\
|
|
2
2
|
-H "Authorization: Bearer ${s}" \\
|
|
3
3
|
-H "Content-Type: application/json" \\
|
|
4
4
|
-d '{"hello":"world"}'`:`curl -X POST "${S}" \\
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as _,Z as U,b as W,r as G,j as e,n as m,q as X,B as Z,aK as Y}from"./index-
|
|
1
|
+
import{c as _,Z as U,b as W,r as G,j as e,n as m,q as X,B as Z,aK as Y}from"./index-DvH-nwdq.js";import{C as tt}from"./index-CIqnRBIS.js";import{s as et}from"./Plus-BB6-c5sU.js";import{O as ot}from"./agent-icon-Cd4WgvSY.js";import{i as F}from"./Zap-gDYafaw-.js";import{S as it}from"./search-input-BwVXUnNC.js";import{E as M}from"./empty-state-Dcth7zyn.js";import{u as st,a as rt,b as nt}from"./use-automations-AZ1h_dVu.js";import{a as mt}from"./use-panel-navigate-CtBFI8Fa.js";import{A as at}from"./automation-list-row-CF-ugqN9.js";import{b as lt}from"./thread-route-DuM7Be1s.js";import"./use-mobile-BWQZ9Nov.js";import"./thread-button-C_zUFSq7.js";import"./sidebar-CbhdB9UQ.js";import"./LayoutLeft-CduVrmTY.js";import"./sheet-CCbrydch.js";import"./X-DIdmvXi5.js";import"./tooltip-DSdKYCbI.js";import"./index-CXqVfpeT.js";import"./use-route-default-main-n--kXIcz.js";import"./hooks-BZYmjCXU.js";import"./use-mcp-client-BIX1SQBb.js";import"./auth-BOVcch8v.js";import"./backoff-8mStPHYB.js";import"./task-board-DlYdtE3b.js";import"./schema-xJ7U_asm.js";import"./toolbar-icon-button-SL9rNc2I.js";import"./use-in-settings-C-U1gBbP.js";import"./shell-layout-C2j46sCx.js";import"./avatar-ClWEwL-z.js";import"./User01-DClxObx9.js";import"./Globe04-DE66YFpd.js";import"./SearchLg-CExd0K4D.js";import"./XClose-C9HE5_ie.js";import"./download-app-dialog-BkiFA22O.js";import"./dialog-2G-cQw5c.js";import"./Copy01-CALkaT8p.js";import"./Download01-CFSTXr8x.js";import"./use-project-scope-D2OaSlGh.js";import"./use-virtual-mcp-Db9im8eJ.js";import"./github-repo-BknN0SVI.js";import"./CheckCircle-DNXT9LQw.js";import"./Tool02-4AGlMp3_.js";import"./Monitor01-tps0G-eA.js";import"./Share07-DZnJoaaB.js";import"./Settings02-Cql2YRRu.js";import"./command-BFopaNrK.js";import"./index-BmcZIG6I.js";import"./SearchMd-pcanFLxJ.js";import"./integration-icon-UwqkSKd2.js";import"./project-icon-DtWWc_Fg.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-i35y0evL.js";import"./autosend-aHWkl5NE.js";import"./use-organization-settings-Dsn6UluU.js";import"./use-org-sso-EP1tdwpB.js";import"./resizable-DXC545x4.js";import"./route-page-header-CjwQCjT6.js";import"./AlertCircle-CL2g6hBv.js";import"./Tool01-BfvHlgMO.js";import"./ArrowUp-doBsDpEd.js";import"./ArrowLeft-BqNlqHdb.js";import"./ArrowRight-yUmRMyFa.js";import"./TrendUp01-CUQslKNc.js";import"./ZoomOut-CPqhC1BT.js";import"./ChevronUp-Dc2CzZ9J.js";import"./UserSquare-yxnFTjmA.js";import"./CreditCard01-BGb46j0w.js";import"./DotsVertical-DDZN-DIr.js";import"./Eye-B_-FUDkf.js";import"./Globe01-DYZzNFRa.js";import"./Image01-D0SI0eJx.js";import"./Key01-CGyx-jB1.js";import"./Link01-b3QVbtfw.js";import"./LinkExternal01-PpT-VqQv.js";import"./Sun-DHu0BtRe.js";import"./Package-DmJJ2zwx.js";import"./Palette-H25arUUw.js";import"./Play-CN9QsFKm.js";import"./Stars01-koEVpHBg.js";import"./Trash01-CoDSwhlk.js";import"./Upload01-eY69lxYq.js";import"./Users01-Z1l_JeRj.js";import"./XCircle-CrmJoBI1.js";import"./alert-dialog-BV6BL0PL.js";function ct(i){if(!(i instanceof Error))return!1;const t=i.message.toLowerCase();return t.includes("relation")&&t.includes("does not exist")}function pt(i){const t=_.c(46),{virtualMcpId:r}=i,n=U(),o=W(),{openPanel:a}=mt(),{data:B,error:K}=st(r),b=B===void 0?[]:B,{create:L}=rt(),[P,H]=G.useState("");if(K&&ct(K)){let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=e.jsx(ot,{size:48,className:"text-muted-foreground"}),t[0]=s):s=t[0];let h;t[1]!==o?(h=o("automations.setupRequired.title"),t[1]=o,t[2]=h):h=t[2];let j;t[3]!==o?(j=o("automations.setupRequired.description"),t[3]=o,t[4]=j):j=t[4];let g;t[5]!==a?(g=()=>a("settings"),t[5]=a,t[6]=g):g=t[6];let C;t[7]!==o?(C=o("automations.setupRequired.goToSetup"),t[7]=o,t[8]=C):C=t[8];let y;t[9]!==g||t[10]!==C?(y=e.jsx(Z,{size:"sm",onClick:g,children:C}),t[9]=g,t[10]=C,t[11]=y):y=t[11];let S;return t[12]!==h||t[13]!==j||t[14]!==y?(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(M,{image:s,title:h,description:j,actions:y})})})})}),t[12]=h,t[13]=j,t[14]=y,t[15]=S):S=t[15],S}const J=P.toLowerCase(),O=b.filter(s=>s.name.toLowerCase().includes(J));let w;t[16]!==a?(w=s=>a(`automation:${s}`),t[16]=a,t[17]=w):w=t[17];const V=w,R=async()=>{if(L.isPending)return;X("automation_new_clicked",{virtual_mcp_id:r,existing_count:b.length});const s=await L.mutateAsync(nt(r));V(s.id)},Q=L.isPending;let A;t[18]===Symbol.for("react.memo_cache_sentinel")?(A=e.jsx(et,{size:14}),t[18]=A):A=t[18];let l;t[19]!==o?(l=o("automations.automationsList.newAutomation"),t[19]=o,t[20]=l):l=t[20];let v;t[21]!==L.isPending||t[22]!==R||t[23]!==l?(v=e.jsxs(Z,{size:"sm",onClick:R,disabled:Q,children:[A,l]}),t[21]=L.isPending,t[22]=R,t[23]=l,t[24]=v):v=t[24];const T=v,E=m,k=m,z=m,I=n&&T;let c;t[25]!==o?(c=o("automations.automationsList.title"),t[25]=o,t[26]=c):c=t[26];let p;t[27]!==c||t[28]!==I?(p=e.jsx(m.Title,{actions:I,children:c}),t[27]=c,t[28]=I,t[29]=p):p=t[29];const $=b.length>0&&e.jsx(it,{value:P,onChange:H,placeholder:o("automations.automationsList.searchPlaceholder"),className:"w-full md:w-[375px]"}),q=!n&&T;let u;t[30]!==$||t[31]!==q?(u=e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[$,q]}),t[30]=$,t[31]=q,t[32]=u):u=t[32];let d;t[33]!==p||t[34]!==u?(d=e.jsxs("div",{className:"flex flex-col gap-6",children:[p,u]}),t[33]=p,t[34]=u,t[35]=d):d=t[35];const D=b.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(M,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:o("automations.automationsList.emptyTitle"),description:o("automations.automationsList.emptyDescription"),actions:!n&&T})}):O.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(M,{image:e.jsx(F,{size:48,className:"text-muted-foreground"}),title:o("automations.automationsList.noResultsTitle"),description:o("automations.automationsList.noResultsDescription",{search:P})})}):e.jsx("div",{className:"mt-6 rounded-xl border border-border overflow-hidden",children:O.map(s=>e.jsx(at,{automation:s,onClick:()=>V(s.id)},s.id))});let f;t[36]!==d||t[37]!==D||t[38]!==z.Container?(f=e.jsxs(z.Container,{children:[d,D]}),t[36]=d,t[37]=D,t[38]=z.Container,t[39]=f):f=t[39];let x;t[40]!==f||t[41]!==k.Content?(x=e.jsx(k.Content,{children:f}),t[40]=f,t[41]=k.Content,t[42]=x):x=t[42];let N;return t[43]!==E||t[44]!==x?(N=e.jsx(E,{children:x}),t[43]=E,t[44]=x,t[45]=N):N=t[45],N}function ut(i){const t=_.c(3),{virtualMcpId:r}=i;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=e.jsx(Y,{}),t[0]=n):n=t[0];let o;return t[1]!==r?(o=e.jsx(G.Suspense,{fallback:n,children:e.jsx(pt,{virtualMcpId:r})}),t[1]=r,t[2]=o):o=t[2],o}function dt(){const i=_.c(2),t=lt();let r;return i[0]!==t?(r=e.jsx(ut,{virtualMcpId:t}),i[0]=t,i[1]=r):r=i[1],r}function Fe(){const i=_.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(tt.Content,{children:e.jsx(dt,{})}),i[0]=t):t=i[0],t}export{Fe as default};
|
package/dist/client/assets/{agent-connect-sources-Do_JSp98.js → agent-connect-sources-CJ58x-7G.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as M,j as i,r as _,E as F,b as w,a0 as L,W as U,z as W,e as $}from"./index-
|
|
1
|
+
import{c as M,j as i,r as _,E as F,b as w,a0 as L,W as U,z as W,e as $}from"./index-DvH-nwdq.js";import{C as D}from"./index-CIqnRBIS.js";import{u as B}from"./use-mcp-client-BIX1SQBb.js";import{C as z,a as H}from"./companion-mcps-section-TM5maZVd.js";import{c as K}from"./use-connect-companion-NEmMLhzt.js";import{C as v,a as q}from"./connect-layout-ZdT0I12j.js";import{p as G}from"./self-tool-result-8OxPN9Nm.js";import{a as J}from"./use-panel-navigate-CtBFI8Fa.js";import"./use-mobile-BWQZ9Nov.js";import"./thread-button-C_zUFSq7.js";import"./sidebar-CbhdB9UQ.js";import"./LayoutLeft-CduVrmTY.js";import"./sheet-CCbrydch.js";import"./X-DIdmvXi5.js";import"./tooltip-DSdKYCbI.js";import"./index-CXqVfpeT.js";import"./thread-route-DuM7Be1s.js";import"./use-route-default-main-n--kXIcz.js";import"./hooks-BZYmjCXU.js";import"./backoff-8mStPHYB.js";import"./task-board-DlYdtE3b.js";import"./schema-xJ7U_asm.js";import"./agent-icon-Cd4WgvSY.js";import"./AlertCircle-CL2g6hBv.js";import"./Tool01-BfvHlgMO.js";import"./ArrowUp-doBsDpEd.js";import"./ArrowLeft-BqNlqHdb.js";import"./Tool02-4AGlMp3_.js";import"./ArrowRight-yUmRMyFa.js";import"./TrendUp01-CUQslKNc.js";import"./ZoomOut-CPqhC1BT.js";import"./Globe04-DE66YFpd.js";import"./CheckCircle-DNXT9LQw.js";import"./ChevronUp-Dc2CzZ9J.js";import"./UserSquare-yxnFTjmA.js";import"./Copy01-CALkaT8p.js";import"./CreditCard01-BGb46j0w.js";import"./DotsVertical-DDZN-DIr.js";import"./Download01-CFSTXr8x.js";import"./Settings02-Cql2YRRu.js";import"./Eye-B_-FUDkf.js";import"./Share07-DZnJoaaB.js";import"./Globe01-DYZzNFRa.js";import"./XClose-C9HE5_ie.js";import"./Image01-D0SI0eJx.js";import"./Key01-CGyx-jB1.js";import"./Link01-b3QVbtfw.js";import"./LinkExternal01-PpT-VqQv.js";import"./Monitor01-tps0G-eA.js";import"./Sun-DHu0BtRe.js";import"./Package-DmJJ2zwx.js";import"./Palette-H25arUUw.js";import"./Play-CN9QsFKm.js";import"./Plus-BB6-c5sU.js";import"./SearchLg-CExd0K4D.js";import"./SearchMd-pcanFLxJ.js";import"./Stars01-koEVpHBg.js";import"./Trash01-CoDSwhlk.js";import"./Upload01-eY69lxYq.js";import"./User01-DClxObx9.js";import"./Users01-Z1l_JeRj.js";import"./XCircle-CrmJoBI1.js";import"./Zap-gDYafaw-.js";import"./toolbar-icon-button-SL9rNc2I.js";import"./use-in-settings-C-U1gBbP.js";import"./shell-layout-C2j46sCx.js";import"./avatar-ClWEwL-z.js";import"./download-app-dialog-BkiFA22O.js";import"./dialog-2G-cQw5c.js";import"./use-project-scope-D2OaSlGh.js";import"./use-virtual-mcp-Db9im8eJ.js";import"./github-repo-BknN0SVI.js";import"./command-BFopaNrK.js";import"./index-BmcZIG6I.js";import"./integration-icon-UwqkSKd2.js";import"./project-icon-DtWWc_Fg.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-i35y0evL.js";import"./autosend-aHWkl5NE.js";import"./use-organization-settings-Dsn6UluU.js";import"./use-org-sso-EP1tdwpB.js";import"./resizable-DXC545x4.js";import"./route-page-header-CjwQCjT6.js";import"./auth-BOVcch8v.js";import"./site-url-en5df9c-.js";import"./companions-core-WMNDPuPs.js";import"./github-D4UJ99TO.js";import"./github-repo-scope-C8GSbvaz.js";import"./metadata-dUsYcpuu.js";import"./form-Djun1QNL.js";import"./label-CanEOsWK.js";import"./input-BYV3Mzlx.js";import"./use-debounced-value-BHUjfc1k.js";import"./provision-repo-scoped-github-connection-B6zdkC6p.js";import"./extract-connection-data-AxblE4p8.js";import"./connection-BSw7pzRm.js";import"./useQueries-C5BMFkFw.js";import"./authenticate-and-persist-oauth-Bq4Rx_LM.js";import"./mcp-oauth-DErZFwl3.js";import"./track-YGUtSvtW.js";function Q(o){const t=M.c(7),{onClose:l}=o,n=w();let r;t[0]!==n?(r=n("routes.reportsOnboarding.connectModal.loadError"),t[0]=n,t[1]=r):r=t[1];let e;t[2]!==r?(e=i.jsx("p",{className:"text-sm text-muted-foreground",children:r}),t[2]=r,t[3]=e):e=t[3];let s;return t[4]!==l||t[5]!==e?(s=i.jsx(v,{onClose:l,footer:null,children:e}),t[4]=l,t[5]=e,t[6]=s):s=t[6],s}function V(){const o=M.c(10),{closePanel:t}=J();let l;o[0]!==t?(l=()=>t(),o[0]=t,o[1]=l):l=o[1];const n=l;let r;o[2]!==n?(r=()=>i.jsx(Q,{onClose:n}),o[2]=n,o[3]=r):r=o[3];let e;o[4]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(z,{}),o[4]=e):e=o[4];let s;o[5]!==n?(s=i.jsx(_.Suspense,{fallback:i.jsx(v,{onClose:n,footer:null,children:e}),children:i.jsx(X,{onDone:n,onClose:n})}),o[5]=n,o[6]=s):s=o[6];let m;return o[7]!==r||o[8]!==s?(m=i.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:i.jsx(F,{fallback:r,children:s})}),o[7]=r,o[8]=s,o[9]=m):m=o[9],m}function X(o){const t=M.c(46),{onDone:l,onClose:n}=o,r=w(),{org:e}=L();let s;t[0]!==e.id?(s=U.REPORTS(e.id),t[0]=e.id,t[1]=s):s=t[1];const m=s;let b;t[2]!==e.id||t[3]!==e.slug?(b={connectionId:W,orgId:e.id,orgSlug:e.slug},t[2]=e.id,t[3]=e.slug,t[4]=b):b=t[4];const a=B(b);let P;t[5]!==m||t[6]!==e||t[7]!==a?(P={selfClient:a,org:e,cdConnectionId:m},t[5]=m,t[6]=e,t[7]=a,t[8]=P):P=t[8];const c=K(P),[I,k]=_.useState(!1),[R,N]=_.useState(null);let y;t[9]!==a?(y={mutationFn:async A=>G(await a.callTool({name:"REPORTS_RUN",arguments:{siteUrl:A}})),retry:!1},t[9]=a,t[10]=y):y=t[10];const p=$(y);let E;t[11]!==l||t[12]!==p||t[13]!==c||t[14]!==r?(E=async()=>{if(N(null),c)try{await p.mutateAsync(c)}catch{N(r("routes.reportsOnboarding.connectModal.somethingWentWrong"));return}l()},t[11]=l,t[12]=p,t[13]=c,t[14]=r,t[15]=E):E=t[15];const O=E;let u;t[16]!==R?(u=R?i.jsx("p",{className:"text-sm leading-5 text-destructive",role:"alert",children:R}):null,t[16]=R,t[17]=u):u=t[17];let f;t[18]!==p.isPending||t[19]!==r?(f=p.isPending?r("routes.reportsOnboarding.connectSourcesTab.refreshing"):r("routes.reportsOnboarding.connectSourcesTab.refresh"),t[18]=p.isPending,t[19]=r,t[20]=f):f=t[20];let d;t[21]!==O?(d=()=>{O()},t[21]=O,t[22]=d):d=t[22];let x;t[23]!==I||t[24]!==p.isPending||t[25]!==f||t[26]!==d?(x=i.jsx(q,{ready:I,pending:p.isPending,label:f,onClick:d}),t[23]=I,t[24]=p.isPending,t[25]=f,t[26]=d,t[27]=x):x=t[27];let g;t[28]!==u||t[29]!==x?(g=i.jsxs(i.Fragment,{children:[u,x]}),t[28]=u,t[29]=x,t[30]=g):g=t[30];let C;t[31]!==r?(C=r("routes.reportsOnboarding.connectSourcesTab.title"),t[31]=r,t[32]=C):C=t[32];let h;t[33]!==C?(h=i.jsx("h2",{className:"text-xl font-medium leading-tight text-foreground",children:C}),t[33]=C,t[34]=h):h=t[34];let S;t[35]!==m||t[36]!==e||t[37]!==c?(S=i.jsx(H,{org:e,cdConnectionId:m,siteUrl:c,onReadinessChange:k}),t[35]=m,t[36]=e,t[37]=c,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 T;return t[42]!==n||t[43]!==g||t[44]!==j?(T=i.jsx(v,{onClose:n,footer:g,children:j}),t[42]=n,t[43]=g,t[44]=j,t[45]=T):T=t[45],T}function Ko(){const o=M.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(D.Content,{children:i.jsx(V,{})}),o[0]=t):t=o[0],t}export{Ko as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c,j as e,aQ as b,u as g}from"./index-DvH-nwdq.js";import{C as j}from"./index-CIqnRBIS.js";import{F as v,H as S}from"./file-share-button-CTwUh9-F.js";import{u as k,b as y,e as _}from"./use-org-fs-6hP98hgh.js";import{S as w}from"./settings-tab-Crb-CdN4.js";import{b as M}from"./thread-route-DuM7Be1s.js";import"./use-mobile-BWQZ9Nov.js";import"./thread-button-C_zUFSq7.js";import"./sidebar-CbhdB9UQ.js";import"./LayoutLeft-CduVrmTY.js";import"./sheet-CCbrydch.js";import"./X-DIdmvXi5.js";import"./tooltip-DSdKYCbI.js";import"./index-CXqVfpeT.js";import"./use-panel-navigate-CtBFI8Fa.js";import"./use-project-scope-D2OaSlGh.js";import"./use-virtual-mcp-Db9im8eJ.js";import"./use-mcp-client-BIX1SQBb.js";import"./auth-BOVcch8v.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-n--kXIcz.js";import"./hooks-BZYmjCXU.js";import"./backoff-8mStPHYB.js";import"./task-board-DlYdtE3b.js";import"./schema-xJ7U_asm.js";import"./agent-icon-Cd4WgvSY.js";import"./AlertCircle-CL2g6hBv.js";import"./Tool01-BfvHlgMO.js";import"./ArrowUp-doBsDpEd.js";import"./ArrowLeft-BqNlqHdb.js";import"./Tool02-4AGlMp3_.js";import"./ArrowRight-yUmRMyFa.js";import"./TrendUp01-CUQslKNc.js";import"./ZoomOut-CPqhC1BT.js";import"./Globe04-DE66YFpd.js";import"./CheckCircle-DNXT9LQw.js";import"./ChevronUp-Dc2CzZ9J.js";import"./UserSquare-yxnFTjmA.js";import"./Copy01-CALkaT8p.js";import"./CreditCard01-BGb46j0w.js";import"./DotsVertical-DDZN-DIr.js";import"./Download01-CFSTXr8x.js";import"./Settings02-Cql2YRRu.js";import"./Eye-B_-FUDkf.js";import"./Share07-DZnJoaaB.js";import"./Globe01-DYZzNFRa.js";import"./XClose-C9HE5_ie.js";import"./Image01-D0SI0eJx.js";import"./Key01-CGyx-jB1.js";import"./Link01-b3QVbtfw.js";import"./LinkExternal01-PpT-VqQv.js";import"./Monitor01-tps0G-eA.js";import"./Sun-DHu0BtRe.js";import"./Package-DmJJ2zwx.js";import"./Palette-H25arUUw.js";import"./Play-CN9QsFKm.js";import"./Plus-BB6-c5sU.js";import"./SearchLg-CExd0K4D.js";import"./SearchMd-pcanFLxJ.js";import"./Stars01-koEVpHBg.js";import"./Trash01-CoDSwhlk.js";import"./Upload01-eY69lxYq.js";import"./User01-DClxObx9.js";import"./Users01-Z1l_JeRj.js";import"./XCircle-CrmJoBI1.js";import"./Zap-gDYafaw-.js";import"./toolbar-icon-button-SL9rNc2I.js";import"./use-in-settings-C-U1gBbP.js";import"./shell-layout-C2j46sCx.js";import"./avatar-ClWEwL-z.js";import"./download-app-dialog-BkiFA22O.js";import"./dialog-2G-cQw5c.js";import"./command-BFopaNrK.js";import"./index-BmcZIG6I.js";import"./integration-icon-UwqkSKd2.js";import"./project-icon-DtWWc_Fg.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-i35y0evL.js";import"./autosend-aHWkl5NE.js";import"./use-organization-settings-Dsn6UluU.js";import"./use-org-sso-EP1tdwpB.js";import"./resizable-DXC545x4.js";import"./route-page-header-CjwQCjT6.js";import"./input-BYV3Mzlx.js";import"./popover-DmyHt-2h.js";import"./scroll-area-KLqiO1VQ.js";import"./select-CMaNbPPd.js";import"./breadcrumb-DxvOAl4Z.js";import"./extract-connection-data-AxblE4p8.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-BSw7pzRm.js";import"./chat-context-CR299TDT.js";import"./thread-intent-B84W3TB7.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-YUjw4iUa.js";import"./use-ai-providers-BjYj7e51.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DN9cn0m8.js";import"./build-improve-prompt-doc-C0HV3Evo.js";import"./empty-state-Dcth7zyn.js";import"./use-date-fns-locale-DRjy01i-.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-connection-Daw6Xhb2.js";import"./mcp-oauth-DErZFwl3.js";import"./alert-dialog-BV6BL0PL.js";import"./textarea-DA5akcl2.js";import"./use-debounced-autosave-BsIVeoqi.js";import"./add-connection-dialog-CVIbPpXW.js";import"./collection-search-CIXgPHQU.js";import"./connection-card-CzEduBCC.js";import"./use-registry-connections-LjnGKNsQ.js";import"./useInfiniteQuery-h6ttw-AT.js";import"./infiniteQueryObserver-BkwDlHKY.js";import"./retry-i8LvYSZg.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-DsN4VmdE.js";import"./form-Djun1QNL.js";import"./label-CanEOsWK.js";import"./connection-form-helpers-C80XYT0F.js";import"./authenticate-and-persist-oauth-Bq4Rx_LM.js";import"./collection-tabs-Ced_1P3B.js";import"./badge-V2_EYnYE.js";import"./use-infinite-scroll-Cb4X67my.js";import"./useSuspenseInfiniteQuery-BfJeKBg6.js";import"./file-type-icon-BN_9SI7i.js";import"./checkbox-B3iDQT4l.js";import"./search-input-BwVXUnNC.js";import"./use-mcp-auth-status-DUrcGrM7.js";import"./types-Bt92_6tp.js";import"./use-mcp-tools-CkvnbZRz.js";import"./use-mcp-prompts-DKzGmPLS.js";import"./utils-CVEq3hMx.js";import"./switch-DgkvwxDL.js";import"./use-project-native-view-presence-Cm6tnbwT.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-CYQYBWb-.js";import"./site-slug-uya6Wp4-.js";import"./optimistic-project-sidebar-views-DLaBZPO6.js";import"./virtual-mcp-CBkUrWeB.js";import"./repository-import-picker-CWkH9CnD.js";import"./use-navigate-to-agent-CWYMJtiR.js";import"./repository-picker-BgSLJeNo.js";import"./github-icon-CpjMcSs2.js";import"./use-debounced-value-BHUjfc1k.js";import"./sandbox-url-D3mC8qhT.js";import"./use-secrets-CJFaH6t8.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 gr(){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{gr as default};
|