decocms 4.500.8 → 4.502.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{ActiveShapeUtils-QhekdQES.js → ActiveShapeUtils-DlOtwjEF.js} +1 -1
- package/dist/client/assets/{AlertCircle-DVHl2wob.js → AlertCircle-BYpi54SP.js} +1 -1
- package/dist/client/assets/{AreaChart-CzXYdxfM.js → AreaChart-kTgagvS-.js} +1 -1
- package/dist/client/assets/{ArrowLeft-5wXFDAmZ.js → ArrowLeft-B3Mf4oiE.js} +1 -1
- package/dist/client/assets/{ArrowUp-DESKNNlf.js → ArrowUp-Dm1tTcjd.js} +1 -1
- package/dist/client/assets/{BarChart-CrZ82YV4.js → BarChart-DwQypsuH.js} +1 -1
- package/dist/client/assets/{Building02-CFiq1p9R.js → Building02-BHmYKmWU.js} +1 -1
- package/dist/client/assets/{CategoricalChart-Wv_V3Cf8.js → CategoricalChart-CeTDsFRk.js} +1 -1
- package/dist/client/assets/{CheckCircle-DAvSmLHO.js → CheckCircle-4P58PW4U.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-KK06uLTv.js → ChevronSelectorVertical-Cojq1UR5.js} +1 -1
- package/dist/client/assets/{ChevronUp-Di-YfZWV.js → ChevronUp-DVssCggl.js} +1 -1
- package/dist/client/assets/{Copy01-CvnGuZZ3.js → Copy01-DBnXKsvD.js} +1 -1
- package/dist/client/assets/{CreditCard01-CpFAcFMU.js → CreditCard01-Ku1gLnux.js} +1 -1
- package/dist/client/assets/{DotsVertical-B8mqV8lL.js → DotsVertical-DUEyJX4K.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-CZTgevMW.js → ErrorBarContext-CsU8-ggF.js} +1 -1
- package/dist/client/assets/{Globe04-CCXvQu2N.js → Globe04-BCy_UIpz.js} +1 -1
- package/dist/client/assets/{Image01-WncLby5J.js → Image01-C9QzuJaK.js} +1 -1
- package/dist/client/assets/{Key01-Bhf2mFGP.js → Key01-CV3Kr-e4.js} +1 -1
- package/dist/client/assets/{Link01-vjT_tIt-.js → Link01-CnwGlGLA.js} +1 -1
- package/dist/client/assets/{LinkBroken01-SQZX7UHe.js → LinkBroken01-Dt2Tn6rT.js} +1 -1
- package/dist/client/assets/{Monitor01-CZgg0RSg.js → Monitor01-CtZrNe_q.js} +1 -1
- package/dist/client/assets/{Play-CSVNLFwP.js → Play-Bi58F4_E.js} +1 -1
- package/dist/client/assets/{Plus-C7i72Ui0.js → Plus-jTILaZAS.js} +1 -1
- package/dist/client/assets/{SearchMd--I1GEx-C.js → SearchMd-DIriOluN.js} +1 -1
- package/dist/client/assets/{Sector-CBgTYwFd.js → Sector-e1E9Tkoe.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-E-rUyhpG.js → ShoppingBag01-DPhSrshS.js} +1 -1
- package/dist/client/assets/{Sun-D612nlCs.js → Sun-Bhq3Un93.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DCGuISL6.js → SwitchHorizontal01-CZeYSoIE.js} +1 -1
- package/dist/client/assets/{Tool01-DqVqi_FU.js → Tool01-DSx5JxKN.js} +1 -1
- package/dist/client/assets/{Trash01-BdVvG1w5.js → Trash01-BcDxgAC3.js} +1 -1
- package/dist/client/assets/{Upload01-CEQBjXAP.js → Upload01-DRNp2B9A.js} +1 -1
- package/dist/client/assets/{User01-DzMieRdG.js → User01-DmuhzlMa.js} +1 -1
- package/dist/client/assets/{UserSquare-CEGUDYl2.js → UserSquare-pQAburWh.js} +1 -1
- package/dist/client/assets/{Users01-CW8HA66N.js → Users01-DXRV-L-2.js} +1 -1
- package/dist/client/assets/{XAxis-B4lxSeIN.js → XAxis-BpuR06LI.js} +1 -1
- package/dist/client/assets/{XClose-ByJq3z1t.js → XClose-B3D-rkas.js} +1 -1
- package/dist/client/assets/{ZoomOut-CePPHC89.js → ZoomOut-BfTCLHO9.js} +1 -1
- package/dist/client/assets/{access-gate-1kOXhtpA.js → access-gate-Dvk_zKis.js} +1 -1
- package/dist/client/assets/add-connection-dialog-eAWC7UBo.js +1 -0
- package/dist/client/assets/agent-analytics-BRzAe8IU.js +2 -0
- package/dist/client/assets/agent-app-BP2SkO_l.js +1 -0
- package/dist/client/assets/agent-assets-Cx-MRIu9.js +1 -0
- package/dist/client/assets/agent-automation-B2wvqOTH.js +20 -0
- package/dist/client/assets/agent-automations-DjKZAWU3.js +1 -0
- package/dist/client/assets/agent-connect-sources-DKjnLshK.js +1 -0
- package/dist/client/assets/agent-deck-BelO6wIS.js +1 -0
- package/dist/client/assets/agent-e2e-U1F_m9II.js +1 -0
- package/dist/client/assets/agent-experiments-DxRsWkSH.js +1 -0
- package/dist/client/assets/agent-file-DZx5Nuux.js +1 -0
- package/dist/client/assets/agent-hosting-qjQUC-UB.js +1 -0
- package/dist/client/assets/{agent-icon-BVzFWL_k.js → agent-icon-DEc9IKAh.js} +1 -1
- package/dist/client/assets/agent-library-DUzFXJHg.js +1 -0
- package/dist/client/assets/agent-library-file-4G0ZOr1s.js +1 -0
- package/dist/client/assets/agent-monitor-BkFStz1l.js +1 -0
- package/dist/client/assets/agent-overview-ByhU8NOU.js +1 -0
- package/dist/client/assets/agent-releases-B-ko0Nvk.js +2 -0
- package/dist/client/assets/agent-settings-B8L7H8CP.js +1 -0
- package/dist/client/assets/agent-site-editor-D9PPo_EX.js +27 -0
- package/dist/client/assets/agent-site-editor-code-B3p3URSd.js +2 -0
- package/dist/client/assets/agent-site-editor-content-AFppcDyU.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-BFOEKEAQ.js +1 -0
- package/dist/client/assets/agent-view-B2h35tj1.js +1 -0
- package/dist/client/assets/agent-view-guard-BOJlnRyE.js +1 -0
- package/dist/client/assets/{agents-list-ZBnW_d9y.js → agents-list-BGrLBpdy.js} +1 -1
- package/dist/client/assets/{ai-providers-CPmQ2-wf.js → ai-providers-BqDb2FvJ.js} +1 -1
- package/dist/client/assets/{alert-CUPV9wwi.js → alert-B48lGwya.js} +1 -1
- package/dist/client/assets/{alert-dialog-DTOyag1c.js → alert-dialog-RwCjHRuJ.js} +2 -2
- package/dist/client/assets/{analytics-sections-Cz6ahzfq.js → analytics-sections-BRfIYYnq.js} +1 -1
- package/dist/client/assets/{api-keys-CHntF__V.js → api-keys-DXmpQOqA.js} +1 -1
- package/dist/client/assets/api-keys-UTO_EG2B.js +1 -0
- package/dist/client/assets/app-editor-D3DBnTc6.js +1 -0
- package/dist/client/assets/{asset-utils-CDOZckz4.js → asset-utils-Bh07kRZG.js} +1 -1
- package/dist/client/assets/{auth-BM0B-cGs.js → auth-D_LAZR_h.js} +1 -1
- package/dist/client/assets/{auth-catchall-D1kP6GLS.js → auth-catchall-BGEsffT3.js} +1 -1
- package/dist/client/assets/auth-entry-ClVx4xRq.js +1 -0
- package/dist/client/assets/{auth-split-layout-DAOQnS6B.js → auth-split-layout-ClyU5qbZ.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BRn95Iqc.js → authenticate-and-persist-oauth-BNqERXi0.js} +1 -1
- package/dist/client/assets/{automation-list-row-lOitm-O0.js → automation-list-row-GdOWNpc6.js} +1 -1
- package/dist/client/assets/{automation-runs-hkYLmevl.js → automation-runs-BSFUiqcj.js} +1 -1
- package/dist/client/assets/{automations-D0AFDtKD.js → automations-6AzDTyLN.js} +1 -1
- package/dist/client/assets/{autosend-ACmUx5MO.js → autosend-BrkIZMg2.js} +1 -1
- package/dist/client/assets/{avatar-Du8JG5EY.js → avatar-jtTGOflQ.js} +1 -1
- package/dist/client/assets/{badge-BEq8f8Nc.js → badge-BPJdS_zE.js} +1 -1
- package/dist/client/assets/{block-document-CCx23LIp.js → block-document-D3moBjLJ.js} +3 -3
- package/dist/client/assets/{blocks-preview-workspace-context-Cy0jJ985.js → blocks-preview-workspace-context-BJF4y2_I.js} +1 -1
- package/dist/client/assets/blocks-tab-states-Lfh7PvBk.js +20 -0
- package/dist/client/assets/blog-schema-Bhl0EC0x.js +1 -0
- package/dist/client/assets/{board-analytics-X4J6IlHK.js → board-analytics-v6GjK5j7.js} +1 -1
- package/dist/client/assets/{buckets-Dq2wvP9B.js → buckets-BIZMjhec.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-vPJYIntG.js → build-improve-prompt-doc-H9GaTf8V.js} +1 -1
- package/dist/client/assets/{calendar-DpEcLQ6J.js → calendar-C3D37oJb.js} +1 -1
- package/dist/client/assets/{capability-load-error-Bm4gFcel.js → capability-load-error-DeivFmvd.js} +1 -1
- package/dist/client/assets/category-editor-Cp2l4Ien.js +1 -0
- package/dist/client/assets/{chart-CkvrWwO-.js → chart-CEsCnWQW.js} +1 -1
- package/dist/client/assets/chat-context-Ek-8IxEX.js +39 -0
- package/dist/client/assets/{chat-draft-_hxvCJKw.js → chat-draft-CZGFUdc4.js} +1 -1
- package/dist/client/assets/{checkbox-DvQZTmm6.js → checkbox-BjVWCI8i.js} +1 -1
- package/dist/client/assets/{choose-editor-BRTmXclR.js → choose-editor-DVpPw8Dk.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DGrUaNM7.js → cli-auth-success-Dhq78KDh.js} +1 -1
- package/dist/client/assets/{client-icons-5kuaT98X.js → client-icons-Bat5IWU-.js} +1 -1
- package/dist/client/assets/cms-settings-editor-ozxOescf.js +1 -0
- package/dist/client/assets/{collapsible-CRuF_99G.js → collapsible-CCU11SRh.js} +1 -1
- package/dist/client/assets/collection-detail-BKRzsUUf.js +1 -0
- package/dist/client/assets/{collection-display-button-Blt_OAPx.js → collection-display-button-BPa0Hjel.js} +1 -1
- package/dist/client/assets/{collection-search-Bo7KXUbF.js → collection-search-B3CigRnD.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-YguS6Yzf.js → collection-table-wrapper-BjP-CvVc.js} +1 -1
- package/dist/client/assets/{collection-tabs-DCHbr1Vt.js → collection-tabs-CoyfUlqO.js} +1 -1
- package/dist/client/assets/{column-rules-C35w8JUr.js → column-rules-NvgDnt2S.js} +2 -2
- package/dist/client/assets/{combobox-DocJ2-jK.js → combobox-CrQDuIN4.js} +1 -1
- package/dist/client/assets/{command-BSyD71wq.js → command-qX8D3Lb4.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DL8GkhO5.js → companion-mcps-section-CFLiTWod.js} +1 -1
- package/dist/client/assets/{config-BTwIN8U2.js → config-BNYxxHSE.js} +1 -1
- package/dist/client/assets/{connect-pYGu8tEC.js → connect-CtT1H68E.js} +3 -3
- package/dist/client/assets/{connect-layout-ayCcohdl.js → connect-layout-ffkt2Ns9.js} +1 -1
- package/dist/client/assets/{connection-BV0Ji7-y.js → connection-B23WvhUe.js} +1 -1
- package/dist/client/assets/{connection-card-BGBC1Vy2.js → connection-card-BBtu2Up1.js} +1 -1
- package/dist/client/assets/connection-detail-m7BHtws6.js +1 -0
- package/dist/client/assets/{connection-form-helpers-DgicL3qY.js → connection-form-helpers-DdClVTZn.js} +1 -1
- package/dist/client/assets/connections-CiS8isT9.js +1 -0
- package/dist/client/assets/content-tab-Dbn7dHL_.js +8 -0
- package/dist/client/assets/context-Nrq6BYeV.js +1 -0
- package/dist/client/assets/{context-menu-BfMN3bc-.js → context-menu-CXHPom5V.js} +1 -1
- package/dist/client/assets/{core.esm-Dilbpce_.js → core.esm-DaFx0nps.js} +2 -2
- package/dist/client/assets/{create-organization-dialog-C1SjjvU5.js → create-organization-dialog-CxI99S6f.js} +1 -1
- package/dist/client/assets/daily-pulse-VFqkAbiP.js +1 -0
- package/dist/client/assets/device-hint-SeLRi17j.js +1 -0
- package/dist/client/assets/discover-BM7hRKue.js +1 -0
- package/dist/client/assets/{domain-settings-Chk6V0ER.js → domain-settings-DfqKqfG1.js} +1 -1
- package/dist/client/assets/{drawer-BXTiY6dg.js → drawer-CI9x8oi9.js} +1 -1
- package/dist/client/assets/{editor-BO3RLENr.js → editor-HwnFKTc1.js} +1 -1
- package/dist/client/assets/editor-classes-10XEtqAC.js +1 -0
- package/dist/client/assets/{empty-state-DzqjIExe.js → empty-state-BxgUQvsY.js} +1 -1
- package/dist/client/assets/{empty-state-MnAK8EeW.js → empty-state-Dd0b73U2.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DykkXLPs.js → extract-connection-data-CbabpvQM.js} +1 -1
- package/dist/client/assets/{feature-gate-CWfa-r5C.js → feature-gate-CpZYoyZ3.js} +1 -1
- package/dist/client/assets/{feature-paywall-CqkVt_-T.js → feature-paywall-CWg9LcNZ.js} +1 -1
- package/dist/client/assets/{file-explorer-AcHh43mk.js → file-explorer-BiZ29Vvs.js} +2 -2
- package/dist/client/assets/{file-preview-BqIq4rHb.js → file-preview-CX-aag8f.js} +1 -1
- package/dist/client/assets/{file-share-button-DuHzh-x9.js → file-share-button-Do0yFYDl.js} +2 -2
- package/dist/client/assets/{file-type-icon-BRADjmum.js → file-type-icon-Cp93tNz3.js} +1 -1
- package/dist/client/assets/flat-project-C_90Ow-C.js +1 -0
- package/dist/client/assets/{folder-icon-t6qoYUX-.js → folder-icon-DzMf4BF9.js} +2 -2
- package/dist/client/assets/{form-qApBoH9w.js → form-C5lLpfxV.js} +1 -1
- package/dist/client/assets/format-time-CAj8AQXM.js +1 -0
- package/dist/client/assets/general-Ddy1VvME.js +1 -0
- package/dist/client/assets/home-BCnTxZyF.js +1 -0
- package/dist/client/assets/hosted-publish-feedback-hkJangOF.js +1 -0
- package/dist/client/assets/{icon-button-CTsUwdOO.js → icon-button-BnCc2mV5.js} +1 -1
- package/dist/client/assets/{index-CqcefCZu.js → index-5z0cgady.js} +2 -2
- package/dist/client/assets/{index-DU_EN75b.js → index-BC7XYozu.js} +1 -1
- package/dist/client/assets/index-BbqhjhNr.js +1 -0
- package/dist/client/assets/index-Bdcb7KFh.js +1 -0
- package/dist/client/assets/index-Bh2O5PEv.js +2 -0
- package/dist/client/assets/index-CmhfcT17.js +243 -0
- package/dist/client/assets/{index-w9yV707t.js → index-CnTaM5_w.js} +14 -14
- package/dist/client/assets/{index-BONgNC04.js → index-CpYsIAO7.js} +1 -1
- package/dist/client/assets/{index-CqlAEV0m.js → index-Cq7eResI.js} +1 -1
- package/dist/client/assets/{index-unq9ZTJD.js → index-Cx38FQ3N.js} +5 -5
- package/dist/client/assets/{index-B5YiUV4I.js → index-DMVF6sM5.js} +1 -1
- package/dist/client/assets/{index-BeBh88bO.js → index-DMjmBf92.js} +1 -1
- package/dist/client/assets/index-DfOROPCW.js +1 -0
- package/dist/client/assets/{index-IBL9WNsl.js → index-DkW_Ruuk.js} +2 -2
- package/dist/client/assets/index-m9hX09uY.css +1 -0
- package/dist/client/assets/{index-DJa5VNJ9.js → index-o0uzmEcY.js} +1 -1
- package/dist/client/assets/{index-redirect-mQgNeOUi.js → index-redirect-lAkX0zfM.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DzxIYVHF.js → infiniteQueryObserver-DPyz6bSI.js} +1 -1
- package/dist/client/assets/{infra-billing-BKFmTcoI.js → infra-billing-Bn7qwXfY.js} +1 -1
- package/dist/client/assets/input-C5uMiH8T.js +17 -0
- package/dist/client/assets/input-DC-8DfMd.js +1 -0
- package/dist/client/assets/{integration-icon-DcBDH52f.js → integration-icon-DfWASVi0.js} +1 -1
- package/dist/client/assets/{jira-icon-j32fJ669.js → jira-icon-DzQdm_-x.js} +1 -1
- package/dist/client/assets/{label-D0foYPWf.js → label-BIjDuic6.js} +1 -1
- package/dist/client/assets/{layout-Bj7xhNKz.js → layout-DqgRMTH3.js} +1 -1
- package/dist/client/assets/legacy-agents-deep-DV0_5V89.js +1 -0
- package/dist/client/assets/legacy-main-redirect-Djl3Gt7m.js +1 -0
- package/dist/client/assets/library-CeUtWN8B.js +1 -0
- package/dist/client/assets/{library-tab-CqP8QMPw.js → library-tab-Bs0wzK29.js} +4 -4
- package/dist/client/assets/{login-DDOgddgu.js → login-3Otd9Wlo.js} +1 -1
- package/dist/client/assets/{markdown-mBxXiRvM.js → markdown-BCZ7Si7p.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DMqJU_ff.js → mcp-app-renderer-DECw4bL7.js} +2 -2
- package/dist/client/assets/{mcp-oauth-CS16PRCo.js → mcp-oauth-DK0EZ7_R.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Dg0thBi5.js → mcp-oauth-DPp6A0NQ.js} +1 -1
- package/dist/client/assets/{members-C8Uoyb9d.js → members-CtZngT65.js} +1 -1
- package/dist/client/assets/{memory-DFNhRaxm.js → memory-CYiv9NJT.js} +2 -2
- package/dist/client/assets/{mini-report-page-CvqJBueU.js → mini-report-page-DOW-8ACI.js} +1 -1
- package/dist/client/assets/{mock-board-DXq3mL_y.js → mock-board-CgfiA9cZ.js} +1 -1
- package/dist/client/assets/{monaco-editor-CPeZZpu3.js → monaco-editor-BBw2sDH2.js} +2 -2
- package/dist/client/assets/{monitoring-stats-row-CuuaoKtt.js → monitoring-stats-row-D4k9Gkic.js} +1 -1
- package/dist/client/assets/{multi-select-DH4C4azS.js → multi-select-CUZbVevW.js} +1 -1
- package/dist/client/assets/mustache-Ca--Xhvx.js +4 -0
- package/dist/client/assets/{new-project-dialog-Cqt9GN_i.js → new-project-dialog-MyUIikPS.js} +1 -1
- package/dist/client/assets/{oauth-callback-DRRwxtOq.js → oauth-callback-B8K9Pe1n.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-0n-RoExG.js → oauth-callback-ai-provider-BWL5p0R4.js} +1 -1
- package/dist/client/assets/{onboarding-BKVLpJKr.js → onboarding-DV2onL6W.js} +1 -1
- package/dist/client/assets/openai-conversation-D_cdhmrX.js +3 -0
- package/dist/client/assets/optimistic-project-sidebar-views-J9vXb1-5.js +1 -0
- package/dist/client/assets/{organization-choice-BzhWXbFm.js → organization-choice-dn5-Ng0u.js} +1 -1
- package/dist/client/assets/{orgs-BaIwjZFJ.js → orgs-CwC34Qrv.js} +1 -1
- package/dist/client/assets/page-seo-form-BoOu9GbW.js +1 -0
- package/dist/client/assets/{pair-xBw_CC4U.js → pair-DC9cMyfj.js} +8 -8
- package/dist/client/assets/{plan-ladder-CuhqhssD.js → plan-ladder-DhN7mzVE.js} +1 -1
- package/dist/client/assets/{popover-DeebArTG.js → popover-D2V0GZfj.js} +1 -1
- package/dist/client/assets/post-calendar-DXzf3Yut.js +1 -0
- package/dist/client/assets/post-editor-NG32mys6.js +2 -0
- package/dist/client/assets/{preview-content-C5X6_KWi.js → preview-content-DUbzeS7I.js} +1 -1
- package/dist/client/assets/{preview-dialog-CP9b5pOj.js → preview-dialog-2P1PJxEF.js} +1 -1
- package/dist/client/assets/{preview-panel-SuK698dS.js → preview-panel-D3qbeO5A.js} +1 -1
- package/dist/client/assets/preview-source-BsRLGWUP.js +1 -0
- package/dist/client/assets/preview-tab-faQ50twa.js +551 -0
- package/dist/client/assets/product-picker-dialog-D24ruXmx.js +1 -0
- package/dist/client/assets/{profile-CNcB1e0i.js → profile-B_J_CZKE.js} +1 -1
- package/dist/client/assets/{project-app-view-BPxNtoZa.js → project-app-view-BlRpizu5.js} +1 -1
- package/dist/client/assets/{project-feed-BwN9nKdh.js → project-feed-Beh_V-oC.js} +1 -1
- package/dist/client/assets/{project-icon-B64BT2qc.js → project-icon-3uE6pYf-.js} +1 -1
- package/dist/client/assets/project-reports-ClNthL44.js +1 -0
- package/dist/client/assets/project-tasks-CI9jMkDu.js +1 -0
- package/dist/client/assets/{projects-1NLUJAKv.js → projects-CzV6A7h3.js} +1 -1
- package/dist/client/assets/{projects-empty-state-hsfXEaTK.js → projects-empty-state-DnKeX8eY.js} +1 -1
- package/dist/client/assets/{prompts-DtIJm1-q.js → prompts-NBvK8C7O.js} +1 -1
- package/dist/client/assets/record-editor-CZMJvJ37.js +1 -0
- package/dist/client/assets/redirect-editor-CBD5SXg0.js +1 -0
- package/dist/client/assets/{reports-ACS-Nba_.js → reports-CMexiDYO.js} +1 -1
- package/dist/client/assets/reports-S61PwEoP.js +1 -0
- package/dist/client/assets/{reports-onboarding-TpGsieg8.js → reports-onboarding-D6lseVrR.js} +1 -1
- package/dist/client/assets/{reports-tab-BY0hxMVO.js → reports-tab-CkPkAd2_.js} +2 -2
- package/dist/client/assets/{repositories-CKLepZhj.js → repositories-DtyuRQ8E.js} +1 -1
- package/dist/client/assets/repository-binding-DMbjGWw3.js +1 -0
- package/dist/client/assets/{repository-import-picker-BKAJgfVd.js → repository-import-picker-GIgpyQ8V.js} +1 -1
- package/dist/client/assets/{repository-picker-F2WyjZCv.js → repository-picker-CGWfbl3i.js} +1 -1
- package/dist/client/assets/{require-capability-BgNMdquK.js → require-capability-C7Dxrm_C.js} +1 -1
- package/dist/client/assets/{required-auth-layout-C7-28_EU.js → required-auth-layout-DgGjxHOD.js} +1 -1
- package/dist/client/assets/{reset-password-CKnTOzi4.js → reset-password-B8StDavS.js} +1 -1
- package/dist/client/assets/{resizable-CTrq392s.js → resizable-DjAVX_KV.js} +1 -1
- package/dist/client/assets/resolve-tab-icon-ChFmZL6X.js +1 -0
- package/dist/client/assets/review-settings-BGTWCvjH.js +1 -0
- package/dist/client/assets/roles-qa60Znm-.js +1 -0
- package/dist/client/assets/route-BUCd6xE1.js +1 -0
- package/dist/client/assets/route-BbjzfRwc.js +1 -0
- package/dist/client/assets/route-rs6-PjAV.js +1 -0
- package/dist/client/assets/sandbox-git-api-CRxdlhrN.js +1 -0
- package/dist/client/assets/sandbox-lifecycle-context-BPryhCAI.js +1 -0
- package/dist/client/assets/{schema-Cwz0xn-Q.js → schema-BCaSsjn6.js} +1 -1
- package/dist/client/assets/{schema-BPpEaREa.js → schema-BrJvJRY5.js} +1 -1
- package/dist/client/assets/{scroll-area-ClXMKXdj.js → scroll-area-CyRrjPr-.js} +1 -1
- package/dist/client/assets/{search-input-BPlE2YGC.js → search-input-CflNU9yi.js} +1 -1
- package/dist/client/assets/{search-toggle-BJ6kk5fK.js → search-toggle-B30h-Mtc.js} +1 -1
- package/dist/client/assets/secret-ciphertext-CZ1toUgb.js +1 -0
- package/dist/client/assets/{secret-picker-vqj_Z_Kc.js → secret-picker-HaRgmqbR.js} +1 -1
- package/dist/client/assets/{secrets-DNo6UMoB.js → secrets-KUrWlAXl.js} +1 -1
- package/dist/client/assets/sections-editor-CQ9DIV9u.js +4 -0
- package/dist/client/assets/{select-4dFEgKOb.js → select-D56vy0cS.js} +1 -1
- package/dist/client/assets/{select-model-C6MqONr4.js → select-model-BQeGMdXQ.js} +1 -1
- package/dist/client/assets/seo-editor-DIXGLI4z.js +1 -0
- package/dist/client/assets/{separator-rAnSnPbj.js → separator-Kf2aUq3g.js} +1 -1
- package/dist/client/assets/settings-tab-DS_aRKZh.js +4 -0
- package/dist/client/assets/{sheet-CV4TQLcF.js → sheet-CKDqk2Xi.js} +1 -1
- package/dist/client/assets/shell-layout-BdBSZR6C.js +1 -0
- package/dist/client/assets/site-editor-CRE5wbgy.js +1 -0
- package/dist/client/assets/site-editor-toast-CaZH_Uob.js +1 -0
- package/dist/client/assets/{skills-Cdtjp8Cm.js → skills-BfSIFsq0.js} +1 -1
- package/dist/client/assets/{slider-C-yLU3nZ.js → slider-Dxef6Thk.js} +1 -1
- package/dist/client/assets/{sortable.esm-Di32jx09.js → sortable.esm-wzYNtVNS.js} +1 -1
- package/dist/client/assets/{sso-DgQQiYUH.js → sso-Xjbva5ag.js} +1 -1
- package/dist/client/assets/{suggestion-DZ2maKDk.js → suggestion-rl-OY42q.js} +2 -2
- package/dist/client/assets/{switch-Dl_eh6Nb.js → switch-C8MNBXcu.js} +1 -1
- package/dist/client/assets/{symbol-CobSncd2.js → symbol-wL8hZJTI.js} +1 -1
- package/dist/client/assets/{synced-repos-OnaK9DdK.js → synced-repos-B_VSvpp7.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-MSjQA0K5.js → tab-icon-glyph-DlPGivr6.js} +1 -1
- package/dist/client/assets/{table-CDMv2RNX.js → table-C_1aW9HL.js} +1 -1
- package/dist/client/assets/{tabs-Bm8-oaP0.js → tabs-C0kKyybj.js} +1 -1
- package/dist/client/assets/{task-board-l22wFLNQ.js → task-board-BvUZ8lZX.js} +1 -1
- package/dist/client/assets/{task-route-D_QgJz9B.js → task-route-ChX2gHyG.js} +1 -1
- package/dist/client/assets/{task-status-CmkAheNu.js → task-status-5Qj_YIVL.js} +1 -1
- package/dist/client/assets/taskboard-analytics-v6jV-I8l.js +1 -0
- package/dist/client/assets/{tasks-CyUEJ-zk.js → tasks-B1ovkqRE.js} +3 -3
- package/dist/client/assets/tasks-BvmGOWZ2.js +1 -0
- package/dist/client/assets/{textarea-DoDVPYV2.js → textarea-BOwupY9k.js} +1 -1
- package/dist/client/assets/thread-analytics-BBdAY352.js +1 -0
- package/dist/client/assets/{thread-intent-CXunryww.js → thread-intent-BxpIEOHD.js} +6 -6
- package/dist/client/assets/{thread-route-BPs4zslo.js → thread-route-YTx0gXdE.js} +1 -1
- package/dist/client/assets/{thread-route-BtywJWO6.js → thread-route-zNwiBPHs.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-DATcetgP.js → thread-sheet-body-BSfQhy8y.js} +1 -1
- package/dist/client/assets/{time-range-picker-BDkyREOJ.js → time-range-picker-DhCebJsY.js} +1 -1
- package/dist/client/assets/{toggle-group-D6lQXGki.js → toggle-group-BJNg7a6_.js} +1 -1
- package/dist/client/assets/{tool-namespace-BCIJDBpU.js → tool-namespace-hcrPHByv.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-yglM36kK.js → toolbar-icon-button-BRrBVu2U.js} +1 -1
- package/dist/client/assets/{tooltip-D58qe9VW.js → tooltip-4UW874b4.js} +1 -1
- package/dist/client/assets/{tooltipContext-DmjVpXSV.js → tooltipContext-ph0B5aEk.js} +1 -1
- package/dist/client/assets/{track-R2_XgeZf.js → track-Bs37Vb-v.js} +1 -1
- package/dist/client/assets/{types-BPkPu0Zu.js → types-scp_0M_s.js} +10 -10
- package/dist/client/assets/{url-slug-BeoES-bn.js → url-slug-BOI9R_Hf.js} +1 -1
- package/dist/client/assets/{usage-stats-BL57yImZ.js → usage-stats-DGAEuGyH.js} +34 -34
- package/dist/client/assets/{use-ai-providers-Fk-ioKuC.js → use-ai-providers-Bujn21Dz.js} +1 -1
- package/dist/client/assets/use-app-takeover-BBfqeF1-.js +1 -0
- package/dist/client/assets/{use-automations-CWCytpPL.js → use-automations-Z_kBCKLA.js} +1 -1
- package/dist/client/assets/{use-autosave-6dz-PwTx.js → use-autosave-ndhVJCpx.js} +1 -1
- package/dist/client/assets/use-chat-navigation-PVB9XYCZ.js +1 -0
- package/dist/client/assets/{use-clock-tick-Dz0tKfh3.js → use-clock-tick-CCLGBtLn.js} +1 -1
- package/dist/client/assets/{use-connect-companion-CYsjOss7.js → use-connect-companion-DimWqtFp.js} +1 -1
- package/dist/client/assets/{use-connection-CWYEcZtk.js → use-connection-Dwi0oczT.js} +1 -1
- package/dist/client/assets/{use-copy-DKdPALi_.js → use-copy-_JqQfoTc.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CRO0toUl.js → use-create-virtual-mcp-ZOhkyNoT.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-Bv2awPzh.js → use-date-fns-locale-CYNRVF1I.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BXZmHqy0.js → use-debounced-autosave-3qWJs1sA.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Bkmt--Vh.js → use-debounced-value-CvHHa5zM.js} +1 -1
- package/dist/client/assets/{use-deco-credits-D9reDEA1.js → use-deco-credits-iWDhmKz8.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DAjIYzO8.js → use-decopilot-events-BFFoNVdS.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CmABKTTR.js → use-delete-connection-BIID_AaA.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DSd4dZS8.js → use-deployment-admin-DeUv9b4N.js} +1 -1
- package/dist/client/assets/use-ensure-project-folder-B_MNPQsb.js +1 -0
- package/dist/client/assets/use-fast-preview-draft-url-CNiIoQU_.js +1 -0
- package/dist/client/assets/use-file-configs-DN9_HbK7.js +1 -0
- package/dist/client/assets/{use-infinite-scroll-IKS1f5vo.js → use-infinite-scroll-CP5MaPJA.js} +1 -1
- package/dist/client/assets/{use-join-requests-7cPvmdKM.js → use-join-requests-DmyW8n9L.js} +1 -1
- package/dist/client/assets/use-main-panel-tabs-DpP9vHof.js +1 -0
- package/dist/client/assets/{use-mcp-auth-status-VoQ-JrKz.js → use-mcp-auth-status-C5UkoCc-.js} +1 -1
- package/dist/client/assets/{use-mcp-client-F8qIxKEF.js → use-mcp-client-Ck2YNhED.js} +2 -2
- package/dist/client/assets/{use-mcp-prompts-BOuduomf.js → use-mcp-prompts-DG1X-Jua.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DJdMQuye.js → use-mcp-tools-DpjJofSD.js} +1 -1
- package/dist/client/assets/{use-members-CbU4crhI.js → use-members-B1T5bMJ8.js} +1 -1
- package/dist/client/assets/{use-mobile-BKee5QTm.js → use-mobile-C_h5-Lrd.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-LQKyEvv0.js → use-navigate-to-agent-B5O37hfl.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-B8yYvcNp.js → use-open-billing-url-B_ppok7s.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DUhvuYX9.js → use-org-auth-client-CeU98DnY.js} +1 -1
- package/dist/client/assets/{use-org-fs-CfbJ-qpv.js → use-org-fs-BTgLNJoN.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CzPhz0CF.js → use-org-repo-syncs-Bnf4MUmf.js} +1 -1
- package/dist/client/assets/{use-org-sso-7gybTWnn.js → use-org-sso-CiSoCbsi.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CdaGJMnK.js → use-organization-roles-ENGApVEO.js} +1 -1
- package/dist/client/assets/use-organization-settings-DsiL1E35.js +1 -0
- package/dist/client/assets/{use-panel-navigate-DAoDF43u.js → use-panel-navigate-DSEJRbyH.js} +1 -1
- package/dist/client/assets/use-project-native-view-presence-CHwdqgjD.js +1 -0
- package/dist/client/assets/{use-project-scope-C3zEyt8p.js → use-project-scope-DGWdW_3w.js} +1 -1
- package/dist/client/assets/use-recent-apps-MWmnEI3B.js +1 -0
- package/dist/client/assets/use-releases-BPZ1Sql5.js +1 -0
- package/dist/client/assets/{use-reports-diagnostic-Bs8mcbPZ.js → use-reports-diagnostic-tpNRt1KV.js} +1 -1
- package/dist/client/assets/{use-secrets-fCiG4Asp.js → use-secrets-CPf3c3Lp.js} +1 -1
- package/dist/client/assets/use-section-preview-base-J4BHoe5i.js +1 -0
- package/dist/client/assets/{use-tags-CXa_QGQ7.js → use-tags-Cpi6wwHR.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BmiYUVWm.js → use-task-board-analytics-CqArCe2L.js} +1 -1
- package/dist/client/assets/{use-task-board-events-BMlQSCd3.js → use-task-board-events-B7HlzAAo.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-CGXvUCxe.js → use-task-board-item-prs-DjDyyhsG.js} +1 -1
- package/dist/client/assets/{use-task-board-items-DFKc2jHy.js → use-task-board-items-CwavMUzx.js} +1 -1
- package/dist/client/assets/use-task-metadata-B3kpFQ2d.js +1 -0
- package/dist/client/assets/{use-thread-analytics-C37ZXdud.js → use-thread-analytics-W6uH9m6t.js} +1 -1
- package/dist/client/assets/use-thread-outputs-DMthmyl4.js +1 -0
- package/dist/client/assets/useInfiniteQuery-CNEF6i6u.js +1 -0
- package/dist/client/assets/{useQueries-BHfkbp1a.js → useQueries-C0TyeWIY.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DQhsrGc-.js +1 -0
- package/dist/client/assets/{users-CdGgVfVK.js → users-KocJqAUG.js} +1 -1
- package/dist/client/assets/{utils-DkhoCm_9.js → utils-cJIltehY.js} +1 -1
- package/dist/client/assets/variant-calendar-BHrspRPP.js +1 -0
- package/dist/client/assets/variant-draft-pointer-CTpYDfJi.js +1 -0
- package/dist/client/assets/{view-mode-toggle-Oj88POra.js → view-mode-toggle-C2xIjQMc.js} +1 -1
- package/dist/client/assets/virtual-mcp-B3puFk7u.js +1 -0
- package/dist/client/assets/{watch-sse-pool-BpjjRSV_.js → watch-sse-pool-zJ3qp_pj.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/migrate-dbos.js +1 -1
- package/dist/server/migrate.js +42 -42
- package/dist/server/server.js +784 -737
- package/package.json +2 -1
- package/dist/client/assets/add-connection-dialog-Cd8-TxBb.js +0 -1
- package/dist/client/assets/agent-analytics-CgOyzHtX.js +0 -2
- package/dist/client/assets/agent-app-DWW7Imub.js +0 -1
- package/dist/client/assets/agent-assets-BcISoUVX.js +0 -1
- package/dist/client/assets/agent-automation-hFGAVqfl.js +0 -20
- package/dist/client/assets/agent-automations-Ba-x7Ucu.js +0 -1
- package/dist/client/assets/agent-connect-sources-BIS9GVvp.js +0 -1
- package/dist/client/assets/agent-deck-DPEVXLN-.js +0 -1
- package/dist/client/assets/agent-e2e-s6kTYT1M.js +0 -1
- package/dist/client/assets/agent-experiments-Dxl1C9iM.js +0 -1
- package/dist/client/assets/agent-file-pfVCGOAk.js +0 -1
- package/dist/client/assets/agent-hosting-BTX9u40j.js +0 -1
- package/dist/client/assets/agent-library-DXQXsht4.js +0 -1
- package/dist/client/assets/agent-library-file-D6Vi3vOs.js +0 -1
- package/dist/client/assets/agent-monitor-CooIUBTW.js +0 -1
- package/dist/client/assets/agent-overview-B2THCwmT.js +0 -1
- package/dist/client/assets/agent-settings-Cr6Ua7-i.js +0 -1
- package/dist/client/assets/agent-site-editor-Jv_-LWOu.js +0 -25
- package/dist/client/assets/agent-site-editor-code-BwIPkqrc.js +0 -2
- package/dist/client/assets/agent-site-editor-content-Dz3-PHZu.js +0 -8
- package/dist/client/assets/agent-site-editor-preview-CgJHEW_f.js +0 -551
- package/dist/client/assets/agent-view-DnTdo1a1.js +0 -1
- package/dist/client/assets/agent-view-guard-Bp3FWE2P.js +0 -1
- package/dist/client/assets/api-keys-A7GHzfae.js +0 -1
- package/dist/client/assets/app-editor-Bt0fzZ_2.js +0 -1
- package/dist/client/assets/auth-entry-Cmk5Wmvz.js +0 -1
- package/dist/client/assets/blog-schema-CQg-jBGk.js +0 -1
- package/dist/client/assets/category-editor-DAWKWbpV.js +0 -1
- package/dist/client/assets/chat-context-BMIrv5uH.js +0 -39
- package/dist/client/assets/claim-phase-copy-CukA7Dwd.js +0 -1
- package/dist/client/assets/collection-detail-CbaGmCRX.js +0 -1
- package/dist/client/assets/connection-detail-D_ocZmwm.js +0 -1
- package/dist/client/assets/connections-CniO7wM-.js +0 -1
- package/dist/client/assets/context-BSQXU5RQ.js +0 -1
- package/dist/client/assets/daily-pulse-DevsdiuS.js +0 -1
- package/dist/client/assets/device-hint-Di9sQxnE.js +0 -1
- package/dist/client/assets/discover-BLt_q0rw.js +0 -1
- package/dist/client/assets/flat-project-DYnMR914.js +0 -1
- package/dist/client/assets/format-time-CjIPQhCN.js +0 -1
- package/dist/client/assets/general-1xmPf-mm.js +0 -1
- package/dist/client/assets/home-IMnM6qUa.js +0 -1
- package/dist/client/assets/index-B-OFv0CL.js +0 -1
- package/dist/client/assets/index-BnoCrGwV.js +0 -243
- package/dist/client/assets/index-DQO0lnZr.css +0 -1
- package/dist/client/assets/index-DyoR2ZG0.js +0 -1
- package/dist/client/assets/input-D4UgTJ69.js +0 -17
- package/dist/client/assets/input-Dwwabqbj.js +0 -1
- package/dist/client/assets/legacy-agents-deep-BVp2GTsJ.js +0 -1
- package/dist/client/assets/legacy-main-redirect-BjFRDgFy.js +0 -1
- package/dist/client/assets/library-BBQI7-xd.js +0 -1
- package/dist/client/assets/mustache-Dnm8KPo2.js +0 -4
- package/dist/client/assets/openai-conversation-MHgeBif6.js +0 -3
- package/dist/client/assets/optimistic-project-sidebar-views-nhoEQPGj.js +0 -1
- package/dist/client/assets/page-seo-form-DPSCL9_1.js +0 -1
- package/dist/client/assets/post-calendar-C2y7NNwt.js +0 -1
- package/dist/client/assets/post-editor-BRGQM4sy.js +0 -2
- package/dist/client/assets/product-picker-dialog-BI1D6XcE.js +0 -1
- package/dist/client/assets/project-reports-UeFimlBu.js +0 -1
- package/dist/client/assets/project-tasks-C_MGzrBm.js +0 -1
- package/dist/client/assets/record-editor-BZBgjIzu.js +0 -1
- package/dist/client/assets/redirect-editor-C6x-CduV.js +0 -1
- package/dist/client/assets/reports-C8vsf2am.js +0 -1
- package/dist/client/assets/repository-binding-C8cI0_BR.js +0 -1
- package/dist/client/assets/resolve-tab-icon-BlUXvZF3.js +0 -1
- package/dist/client/assets/review-settings-DqiJkLo7.js +0 -1
- package/dist/client/assets/rich-text-link-control-BJZoQZZi.js +0 -1
- package/dist/client/assets/roles-BHrtuvIr.js +0 -1
- package/dist/client/assets/route-BscI37la.js +0 -1
- package/dist/client/assets/route-CH91bGcP.js +0 -1
- package/dist/client/assets/route-saa6yPXu.js +0 -1
- package/dist/client/assets/runnable-block-editor-gl-EMkKx.js +0 -17
- package/dist/client/assets/sandbox-git-api-C7JbVL7R.js +0 -1
- package/dist/client/assets/sandbox-lifecycle-context-D-v0LKtL.js +0 -1
- package/dist/client/assets/sections-editor-BkwXm1xr.js +0 -4
- package/dist/client/assets/seo-editor-B6SwqtaH.js +0 -1
- package/dist/client/assets/settings-tab-Bv9C4ymg.js +0 -4
- package/dist/client/assets/shell-layout-CEs2Lzv8.js +0 -1
- package/dist/client/assets/taskboard-analytics-D1RzGECH.js +0 -1
- package/dist/client/assets/tasks-ybPiOXw5.js +0 -1
- package/dist/client/assets/thread-analytics-Cdk2jcnI.js +0 -1
- package/dist/client/assets/thread-button-iNSq397a.js +0 -1
- package/dist/client/assets/use-chat-layout-state-DXfMGuIM.js +0 -1
- package/dist/client/assets/use-chat-navigation-zHRcYkWa.js +0 -1
- package/dist/client/assets/use-ensure-project-folder-BL_22sUH.js +0 -1
- package/dist/client/assets/use-fast-preview-draft-url-B5iYwDtB.js +0 -1
- package/dist/client/assets/use-file-configs-vHZ4c2kM.js +0 -1
- package/dist/client/assets/use-main-panel-tabs-B1NvXUoP.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-CHx1p4ni.js +0 -1
- package/dist/client/assets/use-organization-settings-DE6EFzZl.js +0 -1
- package/dist/client/assets/use-releases-BgJG-aAA.js +0 -1
- package/dist/client/assets/use-sandbox-events-J3pRq7Wv.js +0 -2
- package/dist/client/assets/use-section-preview-base-f9n8yDn_.js +0 -1
- package/dist/client/assets/use-task-metadata-0bCOd_zi.js +0 -1
- package/dist/client/assets/use-thread-outputs-v6xfPIih.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CrNtEvb5.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Ag6TKbPs.js +0 -1
- package/dist/client/assets/variant-calendar-TCxR4Rbi.js +0 -1
- package/dist/client/assets/variant-matcher-override-CxhYuii7.js +0 -1
- package/dist/client/assets/virtual-mcp-BiznFoUx.js +0 -1
package/dist/client/assets/{use-org-auth-client-DUhvuYX9.js → use-org-auth-client-CeU98DnY.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,a2 as j,a as i}from"./index-
|
|
1
|
+
import{c as x,a2 as j,a as i}from"./index-CmhfcT17.js";function A(){const e=x.c(32),{org:O}=j(),o=O.id;let z;e[0]!==o?(z=R=>(f=>i.organization[R]({...f??{},organizationId:o})),e[0]=o,e[1]=z):z=e[1];const t=z;let M;e[2]!==o?(M=R=>(f=>{const y={...f??{}},h=y.query??{};return y.query={...h,organizationId:o},i.organization[R](y)}),e[2]=o,e[3]=M):M=e[3];const n=M;let a,r;e[4]!==n?(a=n("listMembers"),r=n("listRoles"),e[4]=n,e[5]=a,e[6]=r):(a=e[5],r=e[6]);let l,s,c,g,u,m,d,v,b;e[7]!==t?(g=t("inviteMember"),u=t("removeMember"),m=t("updateMemberRole"),d=t("addMember"),v=t("createRole"),b=t("updateRole"),l=t("deleteRole"),s=t("cancelInvitation"),c=t("update"),e[7]=t,e[8]=l,e[9]=s,e[10]=c,e[11]=g,e[12]=u,e[13]=m,e[14]=d,e[15]=v,e[16]=b):(l=e[8],s=e[9],c=e[10],g=e[11],u=e[12],m=e[13],d=e[14],v=e[15],b=e[16]);let p;e[17]!==n?(p=n("getActiveMember"),e[17]=n,e[18]=p):p=e[18];let I;return e[19]!==l||e[20]!==s||e[21]!==c||e[22]!==p||e[23]!==a||e[24]!==r||e[25]!==g||e[26]!==u||e[27]!==m||e[28]!==d||e[29]!==v||e[30]!==b?(I={organization:{listMembers:a,listRoles:r,inviteMember:g,removeMember:u,updateMemberRole:m,addMember:d,createRole:v,updateRole:b,deleteRole:l,cancelInvitation:s,update:c,getActiveMember:p,acceptInvitation:i.organization.acceptInvitation,rejectInvitation:i.organization.rejectInvitation,getInvitation:i.organization.getInvitation,list:i.organization.list,create:i.organization.create,getFullOrganization:i.organization.getFullOrganization}},e[19]=l,e[20]=s,e[21]=c,e[22]=p,e[23]=a,e[24]=r,e[25]=g,e[26]=u,e[27]=m,e[28]=d,e[29]=v,e[30]=b,e[31]=I):I=e[31],I}export{A as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,a2 as w,K as y,m as $,o as O,e as P}from"./index-BnoCrGwV.js";import{u as _}from"./useInfiniteQuery-CrNtEvb5.js";function G(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function F(n,e,t,s){const r=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${r?`?${r}`:""}`}async function h(n,e,t){const s=await fetch(n,e);if(s.ok||t?.allow404&&s.status===404)return s;let r="";try{r=(await s.json()).error??""}catch{}throw new Error(r||`HTTP ${s.status}`)}function Z(n,e,t){const s=p.c(16),{org:r}=w(),i=t?.enabled??!0;let a;s[0]!==r.id||s[1]!==e||s[2]!==n?(a=y.orgFsList(r.id,n,e),s[0]=r.id,s[1]=e,s[2]=n,s[3]=a):a=s[3];let o;s[4]!==r.id||s[5]!==n?(o=(f,u)=>u?.queryKey[1]===r.id&&u.queryKey[2]===n?f:void 0,s[4]=r.id,s[5]=n,s[6]=o):o=s[6];let c;s[7]!==r.slug||s[8]!==e||s[9]!==n?(c=async()=>(await(await h(F(r.slug,n,"list",{path:e}))).json()).entries.toSorted(x),s[7]=r.slug,s[8]=e,s[9]=n,s[10]=c):c=s[10];let l;return s[11]!==i||s[12]!==a||s[13]!==o||s[14]!==c?(l={enabled:i,queryKey:a,placeholderData:o,queryFn:c},s[11]=i,s[12]=a,s[13]=o,s[14]=c,s[15]=l):l=s[15],$(l)}function x(n,e){return n.kind!==e.kind?n.kind==="dir"?-1:1:n.path.localeCompare(e.path)}async function E(n,e,t){const s=await h(F(n,e,"stat",{path:t}),void 0,{allow404:!0});return s.status===404?null:(await s.json()).entry}function v(n,e,t){const s=p.c(16),{org:r}=w();let i;s[0]!==r.id||s[1]!==e||s[2]!==n?(i=y.orgFsStat(r.id,n??"",e),s[0]=r.id,s[1]=e,s[2]=n,s[3]=i):i=s[3];const a=n!==null,o=t?.staleTime;let c;s[4]!==t?(c=t?.refetchIntervalWhenAbsent?u=>u.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=c):c=s[5];let l;s[6]!==r.slug||s[7]!==e||s[8]!==n?(l=()=>E(r.slug,n??"",e),s[6]=r.slug,s[7]=e,s[8]=n,s[9]=l):l=s[9];let f;return s[10]!==i||s[11]!==a||s[12]!==o||s[13]!==c||s[14]!==l?(f={queryKey:i,enabled:a,staleTime:o,refetchInterval:c,queryFn:l},s[10]=i,s[11]=a,s[12]=o,s[13]=c,s[14]=l,s[15]=f):f=s[15],$(f)}function ee(n,e){const t=p.c(9),s=n===void 0?60:n,{org:r}=w();let i;t[0]!==r.id?(i=y.orgFsRecent(r.id),t[0]=r.id,t[1]=i):i=t[1];const a=e?.enabled;let o;t[2]!==s||t[3]!==r.slug?(o=async()=>(await(await h(`/api/${encodeURIComponent(r.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=r.slug,t[4]=o):o=t[4];let c;return t[5]!==i||t[6]!==a||t[7]!==o?(c={queryKey:i,enabled:a,queryFn:o},t[5]=i,t[6]=a,t[7]=o,t[8]=c):c=t[8],$(c)}const R=200;function te(n){const e=p.c(9),{org:t}=w();let s;e[0]!==t.id||e[1]!==n?(s=y.orgFsVolumeFiles(t.id,n),e[0]=t.id,e[1]=n,e[2]=s):s=e[2];let r;e[3]!==t.slug||e[4]!==n?(r=async a=>{const{pageParam:o}=a,c=new URLSearchParams({limit:String(R)});return o&&c.set("before",o),await(await h(`/api/${encodeURIComponent(t.slug)}/fs/${encodeURIComponent(n)}/files?${c}`)).json()},e[3]=t.slug,e[4]=n,e[5]=r):r=e[5];let i;return e[6]!==s||e[7]!==r?(i={queryKey:s,initialPageParam:null,queryFn:r,getNextPageParam:C},e[6]=s,e[7]=r,e[8]=i):i=e[8],_(i)}function C(n){return n.next??void 0}const U=50;function se(n,e){const t=p.c(16),{org:s}=w();let r;t[0]!==s.id||t[1]!==n||t[2]!==e?.prefix||t[3]!==e?.volume?(r=y.orgFsSearch(s.id,n,e?.volume??"",e?.prefix??""),t[0]=s.id,t[1]=n,t[2]=e?.prefix,t[3]=e?.volume,t[4]=r):r=t[4];const i=n.length>0;let a;t[5]!==s.id?(a=(l,f)=>f?.queryKey[1]===s.id?l:void 0,t[5]=s.id,t[6]=a):a=t[6];let o;t[7]!==s.slug||t[8]!==n||t[9]!==e?(o=async()=>{const l=new URLSearchParams({q:n,limit:String(U)});return e&&(l.set("volume",e.volume),e.prefix&&l.set("prefix",e.prefix)),(await(await h(`/api/${encodeURIComponent(s.slug)}/fs/search?${l}`)).json()).entries},t[7]=s.slug,t[8]=n,t[9]=e,t[10]=o):o=t[10];let c;return t[11]!==r||t[12]!==i||t[13]!==a||t[14]!==o?(c={queryKey:r,enabled:i,placeholderData:a,queryFn:o},t[11]=r,t[12]=i,t[13]=a,t[14]=o,t[15]=c):c=t[15],$(c)}function ne(n){const e=p.c(8),{org:t}=w();let s;e[0]!==t.id?(s=y.orgFsSkills(t.id),e[0]=t.id,e[1]=s):s=e[1];const r=n?.enabled;let i;e[2]!==t.slug?(i=async()=>{const o=await h(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:c}=await o.json();return c.map(j)},e[2]=t.slug,e[3]=i):i=e[3];let a;return e[4]!==s||e[5]!==r||e[6]!==i?(a={queryKey:s,enabled:r,queryFn:i},e[4]=s,e[5]=r,e[6]=i,e[7]=a):a=e[7],$(a)}function j(n){return{volume:n.volume,path:n.path}}async function Q(n){const e=await h(`/api/${encodeURIComponent(n)}/fs/skills`),{skills:t}=await e.json();return t}function re(){const n=p.c(7),{org:e}=w();let t;n[0]!==e.id?(t=y.slashSkills(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=()=>Q(e.slug),n[2]=e.slug,n[3]=s):s=n[3];let r;return n[4]!==t||n[5]!==s?(r={queryKey:t,queryFn:s,staleTime:6e4},n[4]=t,n[5]=s,n[6]=r):r=n[6],$(r)}async function M(n,e,t){return(await h(F(n,e,"read",{path:t}))).text()}function ie(n,e){const t=p.c(8);let s;t[0]!==n?(s=y.fileText(n),t[0]=n,t[1]=s):s=t[1];const r=e?.enabled!==!1&&n!=="";let i;t[2]!==n?(i=async()=>{const o=await fetch(n,{credentials:"include"});return o.ok?await o.text():null},t[2]=n,t[3]=i):i=t[3];let a;return t[4]!==s||t[5]!==r||t[6]!==i?(a={queryKey:s,enabled:r,staleTime:6e4,retry:!1,queryFn:i},t[4]=s,t[5]=r,t[6]=i,t[7]=a):a=t[7],$(a)}const A=new Set(["md","mdx","markdown","txt","text"]),D=25,N=64*1024,H=256*1024,V=4;function W(n){const e=n.lastIndexOf(".");return e===-1?!1:A.has(n.slice(e+1).toLowerCase())}async function ae(n,e,t){const s=t?`${t}/`:"",r=u=>u.startsWith(s)?u.slice(s.length):u,i=[],a=[],o=[{path:t,depth:0}];for(;o.length>0;){const u=o.shift();if(!u)break;let g;try{g=(await(await h(F(n,e,"list",{path:u.path}))).json()).entries}catch{continue}for(const d of[...g].sort((b,m)=>b.path.localeCompare(m.path))){if(d.kind==="dir"){u.depth<V&&o.push({path:d.path,depth:u.depth+1});continue}W(d.path)&&d.size<=N&&i.length<D?i.push(d.path):a.push(r(d.path))}}const c=await Promise.all(i.map(u=>M(n,e,u).catch(()=>null))),l=[];let f=0;return i.forEach((u,g)=>{const d=c[g];if(d==null||f+d.length>H){a.push(r(u));return}f+=d.length,l.push({relPath:r(u),content:d})}),l.sort((u,g)=>u.relPath==="SKILL.md"?-1:g.relPath==="SKILL.md"?1:u.relPath.localeCompare(g.relPath)),a.sort(),{files:l,omittedPaths:a}}function oe(){const n=p.c(7),{org:e}=w();let t;n[0]!==e.id?(t=y.orgFsPublicSets(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=async()=>(await(await h(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,n[2]=e.slug,n[3]=s):s=n[3];let r;return n[4]!==t||n[5]!==s?(r={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=r):r=n[6],$(r)}function le(n){const e=p.c(3),{org:t}=w();let s;return e[0]!==t.slug||e[1]!==n?(s=r=>F(t.slug,n,"read",{path:r}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function ce(){const n=p.c(2),{org:e}=w();let t;return n[0]!==e.slug?(t=(s,r)=>F(e.slug,s,"read",{path:r}),n[0]=e.slug,n[1]=t):t=n[1],t}function ue(n){const e=p.c(3),{org:t}=w();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async r=>(await(await h(F(t.slug,n,"file",{path:r.path}),{method:"PUT",headers:{"content-type":r.contentType??"text/html; charset=utf-8"},body:r.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],P(s)}async function fe(n,e,t,s,r){const i={"content-type":"text/markdown; charset=utf-8"};r&&"absent"in r?i["if-none-match"]="*":r&&(i["if-match"]=`"${r.contentHash}"`);const a=await fetch(F(n,e,"file",{path:t}),{method:"PUT",headers:i,body:s});if(a.status===412)return{ok:!1,reason:"conflict"};if(a.status===403)return{ok:!1,reason:"forbidden"};if(!a.ok)throw new Error(`HTTP ${a.status}`);return{ok:!0,entry:(await a.json()).entry}}function de(n){const e=p.c(18),{org:t}=w(),s=O();let r;e[0]!==t||e[1]!==n?(r=async l=>(await(await h(F(t.slug,n,"public",{path:l.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:l.mode,password:l.password})})).json()).entry,e[0]=t,e[1]=n,e[2]=r):r=e[2];let i;e[3]!==t||e[4]!==s||e[5]!==n?(i=async l=>{const f=y.orgFsStat(t.id,n,l.path);await s.cancelQueries({queryKey:f});const u=s.getQueryData(f),g=l.mode!=="private";return s.setQueryData(f,d=>d&&{...d,readPublic:g,effectivePublic:g,shareMode:l.mode}),{key:f,previous:u}},e[3]=t,e[4]=s,e[5]=n,e[6]=i):i=e[6];let a;e[7]!==s?(a=(l,f,u)=>{u&&s.setQueryData(u.key,u.previous)},e[7]=s,e[8]=a):a=e[8];let o;e[9]!==t||e[10]!==s||e[11]!==n?(o=(l,f,u)=>{s.invalidateQueries({queryKey:y.orgFsStat(t.id,n,u.path)}),s.invalidateQueries({queryKey:y.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:y.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:y.orgFsSearchRoot(t.id)})},e[9]=t,e[10]=s,e[11]=n,e[12]=o):o=e[12];let c;return e[13]!==r||e[14]!==i||e[15]!==a||e[16]!==o?(c={mutationFn:r,onMutate:i,onError:a,onSettled:o},e[13]=r,e[14]=i,e[15]=a,e[16]=o,e[17]=c):c=e[17],P(c)}function X(n,e,t){n.invalidateQueries({queryKey:y.orgFsVolume(e,t)}),n.invalidateQueries({queryKey:y.orgFsRecent(e)}),n.invalidateQueries({queryKey:y.orgFsSearchRoot(e)})}function ge(n){const e=p.c(33),{org:t}=w(),s=O();let r;e[0]!==t||e[1]!==s||e[2]!==n?(r=()=>X(s,t.id,n),e[0]=t,e[1]=s,e[2]=n,e[3]=r):r=e[3];const i=r;let a;e[4]!==t||e[5]!==n?(a=async S=>{const L=(await Promise.allSettled(S.files.map(T=>{const q=S.dir?`${S.dir}/${T.name}`:T.name;return h(F(t.slug,n,"file",{path:q}),{method:"PUT",headers:{"content-type":T.type||"application/octet-stream"},body:T})}))).find(Y);if(L)throw L.reason},e[4]=t,e[5]=n,e[6]=a):a=e[6];let o;e[7]!==i||e[8]!==a?(o={mutationFn:a,onSettled:i},e[7]=i,e[8]=a,e[9]=o):o=e[9];const c=P(o);let l;e[10]!==t||e[11]!==n?(l=async S=>{await h(F(t.slug,n,"dir",{path:S}),{method:"POST"})},e[10]=t,e[11]=n,e[12]=l):l=e[12];let f;e[13]!==i||e[14]!==l?(f={mutationFn:l,onSuccess:i},e[13]=i,e[14]=l,e[15]=f):f=e[15];const u=P(f);let g;e[16]!==t||e[17]!==n?(g=async S=>{await h(F(t.slug,n,"file",{path:S}),{method:"DELETE"})},e[16]=t,e[17]=n,e[18]=g):g=e[18];let d;e[19]!==i||e[20]!==g?(d={mutationFn:g,onSuccess:i},e[19]=i,e[20]=g,e[21]=d):d=e[21];const b=P(d);let m;e[22]!==t||e[23]!==n?(m=async S=>{await h(F(t.slug,n,"move"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(S)})},e[22]=t,e[23]=n,e[24]=m):m=e[24];let I;e[25]!==i||e[26]!==m?(I={mutationFn:m,onSuccess:i},e[25]=i,e[26]=m,e[27]=I):I=e[27];const k=P(I);let K;return e[28]!==u||e[29]!==k||e[30]!==b||e[31]!==c?(K={upload:c,mkdir:u,remove:b,move:k},e[28]=u,e[29]=k,e[30]=b,e[31]=c,e[32]=K):K=e[32],K}function Y(n){return n.status==="rejected"}export{Q as a,le as b,ue as c,de as d,G as e,ae as f,ie as g,ce as h,ge as i,Z as j,se as k,oe as l,te as m,ee as n,X as o,re as p,ne as q,E as r,M as s,v as u,fe as w};
|
|
1
|
+
import{c as p,a2 as w,K as y,m as $,o as O,e as P}from"./index-CmhfcT17.js";import{u as _}from"./useInfiniteQuery-CNEF6i6u.js";function G(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function F(n,e,t,s){const r=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${r?`?${r}`:""}`}async function h(n,e,t){const s=await fetch(n,e);if(s.ok||t?.allow404&&s.status===404)return s;let r="";try{r=(await s.json()).error??""}catch{}throw new Error(r||`HTTP ${s.status}`)}function Z(n,e,t){const s=p.c(16),{org:r}=w(),i=t?.enabled??!0;let a;s[0]!==r.id||s[1]!==e||s[2]!==n?(a=y.orgFsList(r.id,n,e),s[0]=r.id,s[1]=e,s[2]=n,s[3]=a):a=s[3];let o;s[4]!==r.id||s[5]!==n?(o=(f,u)=>u?.queryKey[1]===r.id&&u.queryKey[2]===n?f:void 0,s[4]=r.id,s[5]=n,s[6]=o):o=s[6];let c;s[7]!==r.slug||s[8]!==e||s[9]!==n?(c=async()=>(await(await h(F(r.slug,n,"list",{path:e}))).json()).entries.toSorted(x),s[7]=r.slug,s[8]=e,s[9]=n,s[10]=c):c=s[10];let l;return s[11]!==i||s[12]!==a||s[13]!==o||s[14]!==c?(l={enabled:i,queryKey:a,placeholderData:o,queryFn:c},s[11]=i,s[12]=a,s[13]=o,s[14]=c,s[15]=l):l=s[15],$(l)}function x(n,e){return n.kind!==e.kind?n.kind==="dir"?-1:1:n.path.localeCompare(e.path)}async function E(n,e,t){const s=await h(F(n,e,"stat",{path:t}),void 0,{allow404:!0});return s.status===404?null:(await s.json()).entry}function v(n,e,t){const s=p.c(16),{org:r}=w();let i;s[0]!==r.id||s[1]!==e||s[2]!==n?(i=y.orgFsStat(r.id,n??"",e),s[0]=r.id,s[1]=e,s[2]=n,s[3]=i):i=s[3];const a=n!==null,o=t?.staleTime;let c;s[4]!==t?(c=t?.refetchIntervalWhenAbsent?u=>u.state.data?!1:t.refetchIntervalWhenAbsent??!1:void 0,s[4]=t,s[5]=c):c=s[5];let l;s[6]!==r.slug||s[7]!==e||s[8]!==n?(l=()=>E(r.slug,n??"",e),s[6]=r.slug,s[7]=e,s[8]=n,s[9]=l):l=s[9];let f;return s[10]!==i||s[11]!==a||s[12]!==o||s[13]!==c||s[14]!==l?(f={queryKey:i,enabled:a,staleTime:o,refetchInterval:c,queryFn:l},s[10]=i,s[11]=a,s[12]=o,s[13]=c,s[14]=l,s[15]=f):f=s[15],$(f)}function ee(n,e){const t=p.c(9),s=n===void 0?60:n,{org:r}=w();let i;t[0]!==r.id?(i=y.orgFsRecent(r.id),t[0]=r.id,t[1]=i):i=t[1];const a=e?.enabled;let o;t[2]!==s||t[3]!==r.slug?(o=async()=>(await(await h(`/api/${encodeURIComponent(r.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=r.slug,t[4]=o):o=t[4];let c;return t[5]!==i||t[6]!==a||t[7]!==o?(c={queryKey:i,enabled:a,queryFn:o},t[5]=i,t[6]=a,t[7]=o,t[8]=c):c=t[8],$(c)}const R=200;function te(n){const e=p.c(9),{org:t}=w();let s;e[0]!==t.id||e[1]!==n?(s=y.orgFsVolumeFiles(t.id,n),e[0]=t.id,e[1]=n,e[2]=s):s=e[2];let r;e[3]!==t.slug||e[4]!==n?(r=async a=>{const{pageParam:o}=a,c=new URLSearchParams({limit:String(R)});return o&&c.set("before",o),await(await h(`/api/${encodeURIComponent(t.slug)}/fs/${encodeURIComponent(n)}/files?${c}`)).json()},e[3]=t.slug,e[4]=n,e[5]=r):r=e[5];let i;return e[6]!==s||e[7]!==r?(i={queryKey:s,initialPageParam:null,queryFn:r,getNextPageParam:C},e[6]=s,e[7]=r,e[8]=i):i=e[8],_(i)}function C(n){return n.next??void 0}const U=50;function se(n,e){const t=p.c(16),{org:s}=w();let r;t[0]!==s.id||t[1]!==n||t[2]!==e?.prefix||t[3]!==e?.volume?(r=y.orgFsSearch(s.id,n,e?.volume??"",e?.prefix??""),t[0]=s.id,t[1]=n,t[2]=e?.prefix,t[3]=e?.volume,t[4]=r):r=t[4];const i=n.length>0;let a;t[5]!==s.id?(a=(l,f)=>f?.queryKey[1]===s.id?l:void 0,t[5]=s.id,t[6]=a):a=t[6];let o;t[7]!==s.slug||t[8]!==n||t[9]!==e?(o=async()=>{const l=new URLSearchParams({q:n,limit:String(U)});return e&&(l.set("volume",e.volume),e.prefix&&l.set("prefix",e.prefix)),(await(await h(`/api/${encodeURIComponent(s.slug)}/fs/search?${l}`)).json()).entries},t[7]=s.slug,t[8]=n,t[9]=e,t[10]=o):o=t[10];let c;return t[11]!==r||t[12]!==i||t[13]!==a||t[14]!==o?(c={queryKey:r,enabled:i,placeholderData:a,queryFn:o},t[11]=r,t[12]=i,t[13]=a,t[14]=o,t[15]=c):c=t[15],$(c)}function ne(n){const e=p.c(8),{org:t}=w();let s;e[0]!==t.id?(s=y.orgFsSkills(t.id),e[0]=t.id,e[1]=s):s=e[1];const r=n?.enabled;let i;e[2]!==t.slug?(i=async()=>{const o=await h(`/api/${encodeURIComponent(t.slug)}/fs/skills`),{skills:c}=await o.json();return c.map(j)},e[2]=t.slug,e[3]=i):i=e[3];let a;return e[4]!==s||e[5]!==r||e[6]!==i?(a={queryKey:s,enabled:r,queryFn:i},e[4]=s,e[5]=r,e[6]=i,e[7]=a):a=e[7],$(a)}function j(n){return{volume:n.volume,path:n.path}}async function Q(n){const e=await h(`/api/${encodeURIComponent(n)}/fs/skills`),{skills:t}=await e.json();return t}function re(){const n=p.c(7),{org:e}=w();let t;n[0]!==e.id?(t=y.slashSkills(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=()=>Q(e.slug),n[2]=e.slug,n[3]=s):s=n[3];let r;return n[4]!==t||n[5]!==s?(r={queryKey:t,queryFn:s,staleTime:6e4},n[4]=t,n[5]=s,n[6]=r):r=n[6],$(r)}async function M(n,e,t){return(await h(F(n,e,"read",{path:t}))).text()}function ie(n,e){const t=p.c(8);let s;t[0]!==n?(s=y.fileText(n),t[0]=n,t[1]=s):s=t[1];const r=e?.enabled!==!1&&n!=="";let i;t[2]!==n?(i=async()=>{const o=await fetch(n,{credentials:"include"});return o.ok?await o.text():null},t[2]=n,t[3]=i):i=t[3];let a;return t[4]!==s||t[5]!==r||t[6]!==i?(a={queryKey:s,enabled:r,staleTime:6e4,retry:!1,queryFn:i},t[4]=s,t[5]=r,t[6]=i,t[7]=a):a=t[7],$(a)}const A=new Set(["md","mdx","markdown","txt","text"]),D=25,N=64*1024,H=256*1024,V=4;function W(n){const e=n.lastIndexOf(".");return e===-1?!1:A.has(n.slice(e+1).toLowerCase())}async function ae(n,e,t){const s=t?`${t}/`:"",r=u=>u.startsWith(s)?u.slice(s.length):u,i=[],a=[],o=[{path:t,depth:0}];for(;o.length>0;){const u=o.shift();if(!u)break;let g;try{g=(await(await h(F(n,e,"list",{path:u.path}))).json()).entries}catch{continue}for(const d of[...g].sort((b,m)=>b.path.localeCompare(m.path))){if(d.kind==="dir"){u.depth<V&&o.push({path:d.path,depth:u.depth+1});continue}W(d.path)&&d.size<=N&&i.length<D?i.push(d.path):a.push(r(d.path))}}const c=await Promise.all(i.map(u=>M(n,e,u).catch(()=>null))),l=[];let f=0;return i.forEach((u,g)=>{const d=c[g];if(d==null||f+d.length>H){a.push(r(u));return}f+=d.length,l.push({relPath:r(u),content:d})}),l.sort((u,g)=>u.relPath==="SKILL.md"?-1:g.relPath==="SKILL.md"?1:u.relPath.localeCompare(g.relPath)),a.sort(),{files:l,omittedPaths:a}}function oe(){const n=p.c(7),{org:e}=w();let t;n[0]!==e.id?(t=y.orgFsPublicSets(e.id),n[0]=e.id,n[1]=t):t=n[1];let s;n[2]!==e.slug?(s=async()=>(await(await h(`/api/${encodeURIComponent(e.slug)}/fs/public-sets`)).json()).sets,n[2]=e.slug,n[3]=s):s=n[3];let r;return n[4]!==t||n[5]!==s?(r={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=r):r=n[6],$(r)}function le(n){const e=p.c(3),{org:t}=w();let s;return e[0]!==t.slug||e[1]!==n?(s=r=>F(t.slug,n,"read",{path:r}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function ce(){const n=p.c(2),{org:e}=w();let t;return n[0]!==e.slug?(t=(s,r)=>F(e.slug,s,"read",{path:r}),n[0]=e.slug,n[1]=t):t=n[1],t}function ue(n){const e=p.c(3),{org:t}=w();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async r=>(await(await h(F(t.slug,n,"file",{path:r.path}),{method:"PUT",headers:{"content-type":r.contentType??"text/html; charset=utf-8"},body:r.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],P(s)}async function fe(n,e,t,s,r){const i={"content-type":"text/markdown; charset=utf-8"};r&&"absent"in r?i["if-none-match"]="*":r&&(i["if-match"]=`"${r.contentHash}"`);const a=await fetch(F(n,e,"file",{path:t}),{method:"PUT",headers:i,body:s});if(a.status===412)return{ok:!1,reason:"conflict"};if(a.status===403)return{ok:!1,reason:"forbidden"};if(!a.ok)throw new Error(`HTTP ${a.status}`);return{ok:!0,entry:(await a.json()).entry}}function de(n){const e=p.c(18),{org:t}=w(),s=O();let r;e[0]!==t||e[1]!==n?(r=async l=>(await(await h(F(t.slug,n,"public",{path:l.path}),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({mode:l.mode,password:l.password})})).json()).entry,e[0]=t,e[1]=n,e[2]=r):r=e[2];let i;e[3]!==t||e[4]!==s||e[5]!==n?(i=async l=>{const f=y.orgFsStat(t.id,n,l.path);await s.cancelQueries({queryKey:f});const u=s.getQueryData(f),g=l.mode!=="private";return s.setQueryData(f,d=>d&&{...d,readPublic:g,effectivePublic:g,shareMode:l.mode}),{key:f,previous:u}},e[3]=t,e[4]=s,e[5]=n,e[6]=i):i=e[6];let a;e[7]!==s?(a=(l,f,u)=>{u&&s.setQueryData(u.key,u.previous)},e[7]=s,e[8]=a):a=e[8];let o;e[9]!==t||e[10]!==s||e[11]!==n?(o=(l,f,u)=>{s.invalidateQueries({queryKey:y.orgFsStat(t.id,n,u.path)}),s.invalidateQueries({queryKey:y.orgFsVolume(t.id,n)}),s.invalidateQueries({queryKey:y.orgFsRecent(t.id)}),s.invalidateQueries({queryKey:y.orgFsSearchRoot(t.id)})},e[9]=t,e[10]=s,e[11]=n,e[12]=o):o=e[12];let c;return e[13]!==r||e[14]!==i||e[15]!==a||e[16]!==o?(c={mutationFn:r,onMutate:i,onError:a,onSettled:o},e[13]=r,e[14]=i,e[15]=a,e[16]=o,e[17]=c):c=e[17],P(c)}function X(n,e,t){n.invalidateQueries({queryKey:y.orgFsVolume(e,t)}),n.invalidateQueries({queryKey:y.orgFsRecent(e)}),n.invalidateQueries({queryKey:y.orgFsSearchRoot(e)})}function ge(n){const e=p.c(33),{org:t}=w(),s=O();let r;e[0]!==t||e[1]!==s||e[2]!==n?(r=()=>X(s,t.id,n),e[0]=t,e[1]=s,e[2]=n,e[3]=r):r=e[3];const i=r;let a;e[4]!==t||e[5]!==n?(a=async S=>{const L=(await Promise.allSettled(S.files.map(T=>{const q=S.dir?`${S.dir}/${T.name}`:T.name;return h(F(t.slug,n,"file",{path:q}),{method:"PUT",headers:{"content-type":T.type||"application/octet-stream"},body:T})}))).find(Y);if(L)throw L.reason},e[4]=t,e[5]=n,e[6]=a):a=e[6];let o;e[7]!==i||e[8]!==a?(o={mutationFn:a,onSettled:i},e[7]=i,e[8]=a,e[9]=o):o=e[9];const c=P(o);let l;e[10]!==t||e[11]!==n?(l=async S=>{await h(F(t.slug,n,"dir",{path:S}),{method:"POST"})},e[10]=t,e[11]=n,e[12]=l):l=e[12];let f;e[13]!==i||e[14]!==l?(f={mutationFn:l,onSuccess:i},e[13]=i,e[14]=l,e[15]=f):f=e[15];const u=P(f);let g;e[16]!==t||e[17]!==n?(g=async S=>{await h(F(t.slug,n,"file",{path:S}),{method:"DELETE"})},e[16]=t,e[17]=n,e[18]=g):g=e[18];let d;e[19]!==i||e[20]!==g?(d={mutationFn:g,onSuccess:i},e[19]=i,e[20]=g,e[21]=d):d=e[21];const b=P(d);let m;e[22]!==t||e[23]!==n?(m=async S=>{await h(F(t.slug,n,"move"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(S)})},e[22]=t,e[23]=n,e[24]=m):m=e[24];let I;e[25]!==i||e[26]!==m?(I={mutationFn:m,onSuccess:i},e[25]=i,e[26]=m,e[27]=I):I=e[27];const k=P(I);let K;return e[28]!==u||e[29]!==k||e[30]!==b||e[31]!==c?(K={upload:c,mkdir:u,remove:b,move:k},e[28]=u,e[29]=k,e[30]=b,e[31]=c,e[32]=K):K=e[32],K}function Y(n){return n.status==="rejected"}export{Q as a,le as b,ue as c,de as d,G as e,ae as f,ie as g,ce as h,ge as i,Z as j,se as k,oe as l,te as m,ee as n,X as o,re as p,ne as q,E as r,M as s,v as u,fe as w};
|
package/dist/client/assets/{use-org-repo-syncs-CzPhz0CF.js → use-org-repo-syncs-Bnf4MUmf.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,a2 as f,
|
|
1
|
+
import{c as r,a2 as f,a9 as y,K as S,m as _,o as d,e as R}from"./index-CmhfcT17.js";const m=5e3;function p(e){return(e??[]).some(n=>!n.lastSyncedAt&&!n.lastSyncError)}function g(){const e=r.c(7),{org:n}=f(),t=y();let c;e[0]!==n.id?(c=S.orgRepoSyncs(n.id),e[0]=n.id,e[1]=c):c=e[1];let s;e[2]!==t?(s=async()=>(await t.call("ORG_REPO_SYNC_LIST",{})).configs,e[2]=t,e[3]=s):s=e[3];let o;return e[4]!==c||e[5]!==s?(o={queryKey:c,staleTime:6e4,refetchInterval:E,queryFn:s},e[4]=c,e[5]=s,e[6]=o):o=e[6],_(o)}function E(e){return p(e.state.data)?m:!1}function P(){const e=r.c(2),n=g();let t;return e[0]!==n.data?(t=new Set((n.data??[]).map(O)),e[0]=n.data,e[1]=t):t=e[1],t}function O(e){return e.volume}function q(){const e=r.c(12),{org:n}=f(),t=y(),c=d();let s;e[0]!==n||e[1]!==c?(s=()=>c.invalidateQueries({queryKey:S.orgRepoSyncs(n.id)}),e[0]=n,e[1]=c,e[2]=s):s=e[2];const o=s;let i;e[3]!==t?(i=async u=>(await t.call("ORG_REPO_SYNC_CREATE",u)).config,e[3]=t,e[4]=i):i=e[4];let a;e[5]!==o||e[6]!==t?(a=u=>{t.call("ORG_REPO_SYNC_RUN",{id:u.id}).catch(C).then(o)},e[5]=o,e[6]=t,e[7]=a):a=e[7];let l;return e[8]!==o||e[9]!==i||e[10]!==a?(l={mutationFn:i,onSuccess:a,onSettled:o},e[8]=o,e[9]=i,e[10]=a,e[11]=l):l=e[11],R(l)}function C(){return null}function T(){const e=r.c(8),{org:n}=f(),t=y(),c=d();let s;e[0]!==t?(s=a=>t.call("ORG_REPO_SYNC_DELETE",{id:a}),e[0]=t,e[1]=s):s=e[1];let o;e[2]!==n||e[3]!==c?(o=()=>c.invalidateQueries({queryKey:S.orgRepoSyncs(n.id)}),e[2]=n,e[3]=c,e[4]=o):o=e[4];let i;return e[5]!==s||e[6]!==o?(i={mutationFn:s,onSettled:o},e[5]=s,e[6]=o,e[7]=i):i=e[7],R(i)}export{g as a,q as b,T as c,P as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,m as S,o as r,e as y,K as c}from"./index-
|
|
1
|
+
import{c as u,m as S,o as r,e as y,K as c}from"./index-CmhfcT17.js";async function f(i,a,e){const s=await fetch(i,a);if(!s.ok){const t=await s.json().catch(()=>null);throw new Error(t?.error||e)}return s.json()}function m(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoStatus(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/status`,void 0,"Failed to check SSO status"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function q(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoConfig(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/config`,void 0,"Failed to fetch SSO config"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function C(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)},"Failed to save SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function O(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=()=>f(`/api/${a}/sso/config`,{method:"DELETE"},"Failed to delete SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function h(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config/enforce`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enforced:l})},"Failed to toggle SSO enforcement"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}export{q as a,C as b,O as c,h as d,m as u};
|
package/dist/client/assets/{use-organization-roles-CdaGJMnK.js → use-organization-roles-ENGApVEO.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as E}from"./use-org-auth-client-
|
|
1
|
+
import{u as E}from"./use-org-auth-client-CeU98DnY.js";import{a2 as I,m as N,K as b}from"./index-CmhfcT17.js";const B="connections",d="*",m="!";function g(e){return`${m}${e}`}function _(e){return e.startsWith(m)?e.slice(m.length):null}function P(e){if(e.includes(g(d)))return{kind:"only",names:[]};const n=new Set,i=new Set;for(const t of e){const a=_(t);a!==null?n.add(a):t!==d&&i.add(t)}return e.includes(d)?n.size===0?{kind:"all"}:{kind:"except",names:[...n]}:{kind:"only",names:[...i].filter(t=>!n.has(t))}}function z(e){return[d,...e.names.map(g)]}const R="projects";function L(e){if(!e)return null;const n=e[R];return Array.isArray(n)?n:null}function j(e){return e===null?{kind:"all"}:P(e)}const w=[{value:"owner",label:"Owner",isBuiltin:!0},{value:"admin",label:"Admin",isBuiltin:!0},{value:"user",label:"User",isBuiltin:!0}];function F(e){return e.replace(/-/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function T(e){if(!e)return{staticPermissions:[],allowsAllStaticPermissions:!1,connectionIds:[],allowsAllConnections:!1,toolNames:[],allowsAllTools:!1,modelCount:0,allowsAllModels:!1};const n=[];let i=!1;const t=[];let a=!1;const c=new Set;let r=!1,f=0,o=!1;for(const[l,s]of Object.entries(e)){if(l==="self"){s.includes("*")?i=!0:n.push(...s);continue}if(l==="models"){s.includes("*:*")?o=!0:f=s.length;continue}if(l!==R){if(l===B){P(s).kind!=="only"&&(a=!0,r=!0);continue}if(l==="*"){if(a=!0,s.includes("*"))r=!0;else for(const u of s)c.add(u);continue}if(t.push(l),s.includes("*"))r=!0;else for(const u of s)c.add(u)}}return{staticPermissions:n,allowsAllStaticPermissions:i,connectionIds:t,allowsAllConnections:a,toolNames:Array.from(c),allowsAllTools:r,modelCount:f,allowsAllModels:o}}function K(){const{locator:e}=I(),n=E(),{data:i,isLoading:t,error:a,refetch:c}=N({queryKey:b.organizationRoles(e),queryFn:async()=>{try{const o=await n.organization.listRoles();return o?.error?(console.error("[useOrganizationRoles] API error:",o.error),[]):o?.data??[]}catch(o){return console.error("[useOrganizationRoles] Fetch error:",o),[]}},staleTime:3e4}),r=w.map(o=>({role:o.value,label:o.label,isBuiltin:o.isBuiltin}));if(i&&Array.isArray(i))for(const o of i){const l=o.role;if(!l||w.some(O=>O.value===l))continue;const{staticPermissions:s,allowsAllStaticPermissions:u,connectionIds:S,allowsAllConnections:A,toolNames:y,allowsAllTools:p,modelCount:h,allowsAllModels:C}=T(o.permission);r.push({id:o.id,role:l,label:F(l),isBuiltin:!1,permission:o.permission??void 0,staticPermissionCount:u?-1:s.length,allowsAllStaticPermissions:u,connectionCount:A?-1:S.length,allowsAllConnections:A,toolCount:p?-1:y.length,allowsAllTools:p,modelCount:C?-1:h,allowsAllModels:C})}const f=r.filter(o=>!o.isBuiltin);return{roles:r,customRoles:f,builtinRoles:r.filter(o=>o.isBuiltin),isLoading:t,error:a,refetch:c}}export{B as C,R as P,d as a,P as b,g as d,L as g,z as l,j as p,K as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as T,c as u,b5 as A,a2 as b,m as z,ao as D,K as E,a9 as O,o as C,e as I}from"./index-CmhfcT17.js";import{D as G,o as x,a as P}from"./schema-BCaSsjn6.js";import{r as R}from"./task-board-BvUZ8lZX.js";const F={organizationId:"",sidebar_items:null,coding_agent_mcp_excluded:null,simple_mode:null,default_home_agents:null,flags:null,submodule_credentials:null},N={tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}};function k(t,e){return{queryKey:E.organizationSettings(e),queryFn:async()=>{try{return await D(t,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...F,organizationId:e}}},staleTime:6e4}}function d(t){const e=u.c(7),{org:n}=b();let s;e[0]!==n.id||e[1]!==n.slug?(s=k(n.slug,n.id),e[0]=n.id,e[1]=n.slug,e[2]=s):s=e[2];const o=t,a=!!n.id;let i;return e[3]!==s||e[4]!==o||e[5]!==a?(i={...s,select:o,enabled:a},e[3]=s,e[4]=o,e[5]=a,e[6]=i):i=e[6],z(i)}function _(){const t=u.c(9),{org:e}=b(),n=O(),s=C();let o;t[0]!==e||t[1]!==n?(o=async l=>{const r=await n.call("ORGANIZATION_SETTINGS_UPDATE",{organizationId:e.id,...l});if(!r)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return r},t[0]=e,t[1]=n,t[2]=o):o=t[2];let a;t[3]!==e||t[4]!==s?(a=l=>{s.setQueryData(E.organizationSettings(e.id),r=>({...r??F,...l}))},t[3]=e,t[4]=s,t[5]=a):a=t[5];let i;return t[6]!==o||t[7]!==a?(i={mutationFn:o,onSuccess:a},t[6]=o,t[7]=a,t[8]=i):i=t[8],I(i)}function L(t){return t?.tiers?{tiers:{fast:t.tiers.fast??null,smart:t.tiers.smart??null,thinking:t.tiers.thinking??null,image:t.tiers.image??null,web_search:t.tiers.web_search??null,deep_research:t.tiers.deep_research??null}}:N}function B(){const{data:t}=d(Q);return t??N}function Q(t){return L(t.simple_mode)}function V(){const t=u.c(7),e=_();let n,s;t[0]!==e?(n=(a,i)=>e.mutate({simple_mode:a},i),s=(a,i)=>e.mutateAsync({simple_mode:a},i),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function W(){return c("reports_only")}function c(t){const e=u.c(5);let n;e[0]!==t?(n=a=>x(a.flags,t),e[0]=t,e[1]=n):n=e[1];const{data:s}=d(n);let o;return e[2]!==s||e[3]!==t?(o=s??G.has(t),e[2]=s,e[3]=t,e[4]=o):o=e[4],o}function H(t){const e=u.c(6);let n;e[0]!==t?(n=i=>x(i.flags,t),e[0]=t,e[1]=n):n=e[1];const{data:s,isError:o}=d(n);let a;return e[2]!==s||e[3]!==t||e[4]!==o?(a=s??(o?G.has(t):void 0),e[2]=s,e[3]=t,e[4]=o,e[5]=a):a=e[5],a}function J(){const t=c("chat_harness_sandbox_only");return A().runtime.agentSandbox&&t}function X(){const t=u.c(8),{org:e}=b(),n=O(),s=C();let o;t[0]!==n?(o=l=>n.call("ORGANIZATION_BLOCKS_EDITOR_SET",{enabled:l}),t[0]=n,t[1]=o):o=t[1];let a;t[2]!==e||t[3]!==s?(a=l=>{const{enabled:r}=l;s.setQueryData(E.organizationSettings(e.id),m=>m&&{...m,flags:{...m.flags,new_blocks_editor:r}})},t[2]=e,t[3]=s,t[4]=a):a=t[4];let i;return t[5]!==o||t[6]!==a?(i={mutationFn:o,onSuccess:a},t[5]=o,t[6]=a,t[7]=i):i=t[7],I(i)}function w(t){return!!t&&t.trim().toLowerCase().endsWith("@deco.cx")}function tt(){const{data:t}=T.useSession();return w(t?.user?.email)}function et(){const t=u.c(9),{data:e}=T.useSession(),n=A();let s;t[0]!==n.auth.localMode||t[1]!==e?.user?.email?(s=n.auth.localMode===!0||w(e?.user?.email),t[0]=n.auth.localMode,t[1]=e?.user?.email,t[2]=s):s=t[2];const o=s,a=n.hostingControlPlaneGa===!0,i=n.monitorGa===!0,l=c("hosting_enabled"),r=c("deco_analytics_enabled"),m=c("e2e_enabled"),M=c("monitor_enabled"),$=c("experiments_enabled"),g=o||a||l,S=o||a||r,p=o||a||m,y=o||i||M,h=o||a||$;let f;return t[3]!==g||t[4]!==S||t[5]!==p||t[6]!==y||t[7]!==h?(f={hosting:g,analytics:S,e2e:p,monitor:y,experiments:h},t[3]=g,t[4]=S,t[5]=p,t[6]=y,t[7]=h,t[8]=f):f=t[8],f}function nt(){const{data:t}=d(U);return t??!1}function U(t){return P(t.flags)}function st(){const{data:t}=d(q);return t??!0}function q(t){return R(t.flags)}function ot(){const t=u.c(7),e=_();let n,s;t[0]!==e?(n=(a,i,l)=>e.mutate({flags:{[a]:i}},l),s=(a,i,l)=>e.mutateAsync({flags:{[a]:i}},l),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function at(){const t=u.c(2),{data:e}=d(K);let n;return t[0]!==e?(n=e??[],t[0]=e,t[1]=n):n=t[1],n}function K(t){return t.coding_agent_mcp_excluded}function it(){const t=u.c(5),e=_();let n;t[0]!==e?(n=(o,a)=>e.mutate({coding_agent_mcp_excluded:o},a),t[0]=e,t[1]=n):n=t[1];let s;return t[2]!==e||t[3]!==n?(s={...e,mutate:n},t[2]=e,t[3]=n,t[4]=s):s=t[4],s}function lt(){const t=u.c(2),{data:e}=d(Z);let n;return t[0]!==e?(n=e??[],t[0]=e,t[1]=n):n=t[1],n}function Z(t){return t.submodule_credentials}function ut(){const t=u.c(5),e=_();let n;t[0]!==e?(n=(o,a)=>e.mutateAsync({submodule_credentials:o},a),t[0]=e,t[1]=n):n=t[1];let s;return t[2]!==e||t[3]!==n?(s={...e,mutateAsync:n},t[2]=e,t[3]=n,t[4]=s):s=t[4],s}export{c as a,J as b,H as c,B as d,et as e,st as f,X as g,nt as h,ot as i,at as j,it as k,V as l,lt as m,ut as n,tt as o,W as u};
|
package/dist/client/assets/{use-panel-navigate-DAoDF43u.js → use-panel-navigate-DSEJRbyH.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,f as g,u as S,
|
|
1
|
+
import{c as p,f as g,u as S,d4 as _,d as k,k as b,d5 as P,d6 as E}from"./index-CmhfcT17.js";import{b as I}from"./thread-route-YTx0gXdE.js";import{a as R}from"./use-project-scope-DGWdW_3w.js";function x(e){const t=e.destination==="agent",a={thread:t?e.previous.thread:void 0,sidepanel:e.previous.sidepanel,autosend:t?e.previous.autosend:void 0};return{...e.update?e.update(a):a,mainpanel:void 0}}function T(){const e=p.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={structuralSharing:!0,select:j},e[0]=t):t=e[0],b(t)}function j(e){for(let t=e.matches.length-1;t>=0;t--){const a=e.matches[t]?.staticData;if(a?.mainView||a?.siteEditorView)return{mainView:a.mainView,siteEditorView:a.siteEditorView}}return{mainView:void 0,siteEditorView:void 0}}function A(){const e=p.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const a=g(t);let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[1]=o):o=e[1];const i=S(o),s={file:"file"in i&&typeof i.file=="string"?i.file:void 0,key:"key"in i&&typeof i.key=="string"?i.key:void 0,path:"path"in i&&typeof i.path=="string"?i.path:void 0},{mainView:r,siteEditorView:n}=T();return _({mainView:r,siteEditorView:n,params:a,search:s})}function D(){const e=p.c(11),t=k();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const o=g(a),i=I(),s=R(),r=o.org??"";let n;e[1]!==t||e[2]!==r||e[3]!==i||e[4]!==s?(n=(u,c)=>{const h=P(u),v=c?.virtualmcpid!==void 0||s!==null?"project":"organization",y=h.kind==="org-destination"||h.kind==="project-destination"&&v==="organization",V=w=>x({previous:w,destination:y?"organization":"agent",update:c?.search});E(t,{org:r,agentId:c?.virtualmcpid??i,tabId:u,destinationScope:v,taskKey:c?.taskKey,search:V,replace:c?.replace??!0})},e[1]=t,e[2]=r,e[3]=i,e[4]=s,e[5]=n):n=e[5];const m=n;let l;e[6]!==t?(l=u=>t({to:".",search:z,replace:u?.replace??!0}),e[6]=t,e[7]=l):l=e[7];const f=l;let d;return e[8]!==f||e[9]!==m?(d={openPanel:m,closePanel:f},e[8]=f,e[9]=m,e[10]=d):d=e[10],d}function z(e){return{...e,mainpanel:!1,sidepanel:!0}}export{D as a,x as r,A as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as v,k as q,d as W,u as Y,a2 as k,o as J,m as H,dW as K,K as L,b5 as Q}from"./index-CmhfcT17.js";import{a as z}from"./thread-route-YTx0gXdE.js";import{u as G}from"./use-panel-navigate-DSEJRbyH.js";import{b as X,n as U,l as Z,H as ee}from"./thread-intent-BxpIEOHD.js";import{u as te}from"./use-file-configs-DN9_HbK7.js";import{e as ne}from"./use-organization-settings-DsiL1E35.js";import{e as x,a as F}from"./repository-binding-DMbjGWw3.js";import{r as se,a as ae}from"./site-slug-DebpOoQq.js";function re(){const t=v.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:oe},t[0]=e):e=t[0],q(e)}function oe(t){for(let e=t.matches.length-1;e>=0;e--){const s=t.matches[e]?.staticData.defaultMain;if(s)return s}return null}function ie(t){return!!t.harness_id||!!t.title&&t.title!=="New chat"}function ce(t){return t.threadOpen||t.contentOpen?t:{...t,threadOpen:!0}}function le(t){const e=t.entityMetadata?.defaultMainView??null,s=e==null||e.type==="chat",n=t.mainPanelParam??(t.panelNamed||!!t.routeDefaultMain||!s),a=t.routeDefaultMain?!1:s||t.entityMetadata?.chatDefaultOpen===!0||t.threadHasMessages===!0,r=t.threadVisibilityExplicit?t.sidePanelParamValue===!0:a;return ce({threadOpen:r,contentOpen:n})}function M(t,e){switch(t.type){case"toggleThread":return e.threadOpen?e.contentOpen?{sidepanel:!1}:null:{sidepanel:!0};case"toggleContent":return e.contentOpen?{mainpanel:!1,sidepanel:!0}:{mainpanel:!0};case"openThread":return e.threadOpen?null:{sidepanel:!0}}}function je(t){return t.threadOpen&&t.contentOpen?{side:33,main:67}:t.threadOpen?{side:100,main:0}:t.contentOpen?{side:0,main:100}:{side:0,main:0}}function Me(t){const{threadOpen:e,contentOpen:s}=t.visibility;return e&&(t.threadVisibilityExplicit||!s)?"chat":s?"main":"chat"}function $e(t){return t==="main"?{sidepanel:!1,mainpanel:!0}:{sidepanel:!0,mainpanel:!1}}function ke(t){const e=v.c(26),s=W();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const a=Y(n),{threads:r}=X(),o=re(),i=G(),l=z();let u;if(e[1]!==t||e[2]!==i||e[3]!==o||e[4]!==a.mainpanel||e[5]!==a.sidepanel||e[6]!==l||e[7]!==r){const c=l!=null?r.find(w=>w.id===l):void 0;u=le({entityMetadata:t,mainPanelParam:a.mainpanel,panelNamed:i!==void 0,threadVisibilityExplicit:a.sidepanel!==void 0,sidePanelParamValue:a.sidepanel,routeDefaultMain:o,threadHasMessages:c?ie(c):!1}),e[1]=t,e[2]=i,e[3]=o,e[4]=a.mainpanel,e[5]=a.sidepanel,e[6]=l,e[7]=r,e[8]=u}else u=e[8];const{threadOpen:d,contentOpen:f}=u;let V;e[9]!==f||e[10]!==d?(V={threadOpen:d,contentOpen:f},e[9]=f,e[10]=d,e[11]=V):V=e[11];const h=V;let g;e[12]!==s?(g=(c,w)=>{s({to:".",search:b=>({...b,...c}),replace:w?.replace??!1})},e[12]=s,e[13]=g):g=e[13];const m=g;let y;e[14]!==m||e[15]!==h?(y=()=>{const c=M({type:"toggleContent"},h);c&&m(c,{replace:!0})},e[14]=m,e[15]=h,e[16]=y):y=e[16];const I=y;let S;e[17]!==m||e[18]!==h?(S=()=>{const c=M({type:"toggleThread"},h);c&&m(c,{replace:!0})},e[17]=m,e[18]=h,e[19]=S):S=e[19];const _=S,p=a.sidepanel!==void 0;let P;return e[20]!==f||e[21]!==p||e[22]!==d||e[23]!==I||e[24]!==_?(P={threadOpen:d,contentOpen:f,threadVisibilityExplicit:p,toggleContent:I,toggleThread:_},e[20]=f,e[21]=p,e[22]=d,e[23]=I,e[24]=_,e[25]=P):P=e[25],P}const A=["overview","reports","board","site-editor","assets","releases","hosting","e2e","analytics","cdn","automations","experiments"],ue=["overview","reports","board","site-editor"],de=1,fe=["assets","releases","hosting","e2e","analytics","cdn","experiments"];function He(t,e,s){if(!t)return{project:s??null,resolvedScopeId:null};const n=e?.id===t?e:s?.id===t?s:null;return{project:n,resolvedScopeId:n?t:null}}function Le(t){return t?.sidebarViews!==void 0?t.sidebarViews:t?.ui?.layout?.sidebarViews}function B(t,e){const s=new Set(t??[]);if(e!==de)for(const n of ue)s.add(n);return A.filter(n=>s.has(n))}function me(t){return A.some(e=>e===t)}function pe(t){return fe.some(e=>e===t)}function he(t,e){return{overview:t,reports:t,board:t,"site-editor":t,assets:e.assets,releases:t&&e.releases,hosting:e.hosting,e2e:e.e2e,analytics:e.analytics,cdn:e.cdn,experiments:t&&e.experiments,automations:!0}}function Ue(t,e,s){const n=he(e,s);return t?n:{...n,overview:!0,reports:!0,board:!0}}function xe(t,e,s){const n=new Set(B(t,s));return A.filter(a=>e[a]&&n.has(a))}function Fe(t,e,s){return s||!t?t:(t.type==="preview"||t.type==="content"||t.type==="code"?"site-editor":t.type)===e?{type:"settings"}:t}function Be(t){return A.filter(e=>t[e])}function ge(t,e,s){return!me(t)||e[t]?!1:pe(t)?t==="releases"?!s.releases:!(t==="assets"?s.assets:s.siteAccess):!0}function qe(t,e,s,n,a){return ge(t==="preview"||t==="content"||t==="code"?"site-editor":t,e,s)||t==="content"&&!n.includes("content")||t==="code"&&a&&!n.includes("code")}function We(t,e,s,n){const a=new Set(B(t,n));return s?a.add(e):a.delete(e),A.filter(r=>a.has(r))}function Se(t,e){if(!e)return null;const s=e.toLowerCase();return t.find(n=>{const a=n.bucket.toLowerCase();return n.siteSlug?.toLowerCase()===s||a===s||a===`deco-assets-${s}`})??null}function Pe(t){if(typeof t!="object"||t===null)return!1;const s=t.repository?.url;return typeof s=="string"&&s.length>0}function Ye(t){return x(t).status==="attached"}function Je(t){const e=x(t).status;return e==="attached"||e==="detached"}function Ke(t){const e=new Set;for(const s of t??[]){const n=s.metadata?.liveAgentId;typeof n=="string"&&n&&e.add(s.id)}return e}function Qe(t,e){if(!t)return null;const s=t.metadata?.liveAgentId;if(typeof s=="string"&&s)return(e??[]).find(r=>r.id===s)?{mode:"dev",targetId:s}:null;const n=(e??[]).find(a=>a.metadata?.liveAgentId===t.id);return n?{mode:"live",targetId:n.id}:null}const ye=5e3,Ve="main",we={"404 no_repository":!1,"403 feature_not_in_plan":!1,"409 site_not_owned":!0,[`503 ${ee}`]:!0};async function Ie(t,e,s=(n,a)=>fetch(n,a)){const n=await s(`/api/${t}/decofile/${encodeURIComponent(e)}/${Ve}/rpc`,{method:"POST",cache:"no-store",headers:{"content-type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:"schema.get"})}),a=await n.json().catch(()=>null);if(!n.ok){const i=we[`${n.status} ${a?.code}`];if(i!==void 0)return{isV8:i,schema:null,version:null};throw new Error(`main's schema: HTTP ${n.status}`)}if(!a?.result||!("schema"in a.result))throw new Error("main's schema: unexpected answer");const{schema:r,version:o}=a.result;return{isV8:Z(r),schema:r??null,version:typeof o=="string"?o:null}}function Ee(t){return!t.hasProject||!t.asks?"v7":t.data!==void 0?t.data?"v8":"v7":t.isError?t.marked?"error":"v7":"loading"}function _e(t){const{org:e}=k(),s=J(),n=F(t),a=n?.id??"",r=U(n?.metadata),o=!!e.id&&!!e.slug&&!!a&&Pe(n?.metadata),i=H({queryKey:L.mainSchemaV8(e.slug,a),queryFn:async()=>{const l=await Ie(e.slug,a);return l.isV8!==r&&K(s,e.id,"VIRTUAL_MCP"),l},enabled:o,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY,retry:2,refetchInterval:be});return Ee({asks:o,hasProject:!!n,data:i.data?.isV8,isError:i.isError||i.errorUpdateCount>0,marked:r})}function be(t){return t.state.status==="error"?ye:!1}function ze(t){const e=v.c(2),s=F(t)?.metadata;let n;return e[0]!==s?(n=U(s),e[0]=s,e[1]=n):n=e[1],n}function Ge(t){const e=v.c(22),{org:s}=k(),n=Q(),a=ne(),r=te(),o=_e(t?.id),i=o==="v8";let l;e[0]!==t?(l=se(t),e[0]=t,e[1]=l):l=e[1];const u=l,d=n.hostingEnabled===!0,f=n.monitorEnabled===!0||n.auth.localMode===!0,V=(d||f)&&!!u,h=$(s.slug,u,V);let g;e[2]!==t?(g=ae(t),e[2]=t,e[3]=g):g=e[3];const m=g,y=f&&!!m&&m!==u,I=$(s.slug,m,y),S=h.data?.owned===!0,_=y?I.data?.owned===!0:S;let p;e[4]!==r.data?.configs?(p=r.data?.configs??[],e[4]=r.data?.configs,e[5]=p):p=e[5];let P;e[6]!==u||e[7]!==p?(P=Se(p,u),e[6]=u,e[7]=p,e[8]=P):P=e[8];const c=!!P,w=i&&!!t?.metadata?.siteSlug,b=d&&S&&a.hosting,O=d&&S&&a.e2e,T=d&&S&&a.analytics,R=f&&_&&a.monitor;let E;e[9]!==a.experiments||e[10]!==c||e[11]!==w||e[12]!==b||e[13]!==O||e[14]!==T||e[15]!==R?(E={assets:c,releases:w,hosting:b,e2e:O,analytics:T,cdn:R,experiments:a.experiments},e[9]=a.experiments,e[10]=c,e[11]=w,e[12]=b,e[13]=O,e[14]=T,e[15]=R,e[16]=E):E=e[16];const N=!!u&&r.isPending,D=!!t?.metadata?.siteSlug&&(o==="loading"||o==="error"),j=V&&h.isPending||y&&I.isPending;let C;return e[17]!==E||e[18]!==N||e[19]!==D||e[20]!==j?(C={presence:E,assetsPending:N,releasesPending:D,siteAccessPending:j},e[17]=E,e[18]=N,e[19]=D,e[20]=j,e[21]=C):C=e[21],C}function $(t,e,s){const n=v.c(10);let a;n[0]!==t||n[1]!==e?(a=L.hostingAccess(t,e??""),n[0]=t,n[1]=e,n[2]=a):a=n[2];let r;n[3]!==t||n[4]!==e?(r=async()=>{const i=await fetch(`/api/${t}/hosting/${encodeURIComponent(e??"")}/access`);return i.ok?await i.json():{owned:!1,canWrite:!1}},n[3]=t,n[4]=e,n[5]=r):r=n[5];let o;return n[6]!==s||n[7]!==a||n[8]!==r?(o={queryKey:a,queryFn:r,enabled:s,staleTime:6e4},n[6]=s,n[7]=a,n[8]=r,n[9]=o):o=n[9],H(o)}export{Fe as A,Ye as B,fe as P,Pe as a,ke as b,_e as c,Je as d,B as e,Qe as f,Se as g,je as h,Me as i,ze as j,pe as k,Ke as l,$e as m,de as n,re as o,he as p,He as q,Le as r,xe as s,ie as t,Ge as u,Ue as v,qe as w,ge as x,Be as y,We as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,f as P,u as y,d as T,ai as N,
|
|
1
|
+
import{c as b,f as P,u as y,d as T,ai as N,d7 as R,d6 as E,ae as _}from"./index-CmhfcT17.js";import{i as k,c as C,j as O}from"./repository-binding-DMbjGWw3.js";const M=1;function I(e){return(e??[]).filter(R)}function V(){const e=b.c(4);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const n=P(o);let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c={strict:!1},e[1]=c):c=e[1];const t=y(c);if(n.agentId)return n.agentId;let a;return e[2]!==t?(a="virtualmcpid"in t&&typeof t.virtualmcpid=="string"?t.virtualmcpid.trim():void 0,e[2]=t,e[3]=a):a=e[3],a||null}function B(){const e=b.c(16),o=T();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const c=P(n),t=N(),a=k(),i=I(a),s=V(),j=i.find(r=>r.id===s)??null;let l;e[1]!==a||e[2]!==s?(l=s&&a.length>0&&!a.some(r=>r.id===s)?s:null,e[1]=a,e[2]=s,e[3]=l):l=e[3];const h=C(l),u=j??I(h?[h]:[])[0]??null;let m;e[4]!==t||e[5]!==o||e[6]!==c||e[7]!==s?(m=r=>{if(r===s&&t!==void 0)return;const v=c.org??"",S=w;if(r){E(o,{org:v,agentId:r,tabId:t==="board"||t==="reports"?t:"overview",search:S,replace:!1});return}if(t==="board"){o({to:_.tasks,params:{org:v,taskKey:void 0},search:S});return}o({to:_.home,params:{org:v},search:S})},e[4]=t,e[5]=o,e[6]=c,e[7]=s,e[8]=m):m=e[8];const f=m,d=O(u),g=i.length>=M;let p;return e[9]!==u||e[10]!==i||e[11]!==s||e[12]!==f||e[13]!==d||e[14]!==g?(p={scopeId:s,project:u,repo:d,projects:i,hasProjects:g,setScope:f},e[9]=u,e[10]=i,e[11]=s,e[12]=f,e[13]=d,e[14]=g,e[15]=p):p=e[15],p}function w(e){return{...e,virtualmcpid:void 0,thread:void 0,mainpanel:void 0}}export{V as a,I as s,B as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as O,c as m,at as A,k as y,av as d,aj as b}from"./index-CmhfcT17.js";import{p as j,n as I,o as R,q as E,r as N,s as P,P as _}from"./use-app-takeover-BBfqeF1-.js";import{c as h}from"./repository-binding-DMbjGWw3.js";const f=[],u=[];function T(n){const e=m.c(7);let t;e[0]!==n?(t=d.appOpens(n),e[0]=n,e[1]=t):t=e[1];const[a,s]=A(t,u),r=Array.isArray(a)?a:u;let o;e[2]!==s?(o=p=>s(i=>R(Array.isArray(i)?i:[],p)),e[2]=s,e[3]=o):o=e[3];let c;return e[4]!==r||e[5]!==o?(c={opens:r,remember:o},e[4]=r,e[5]=o,e[6]=c):c=e[6],c}function x(n){const e=m.c(9);let t;e[0]!==n?(t=d.recentApps(n),e[0]=n,e[1]=t):t=e[1];const[a,s]=A(t,f),r=Array.isArray(a)?a:f;let o,c;e[2]!==s?(o=i=>s(l=>E(Array.isArray(l)?l:[],i)),c=i=>s(l=>N(Array.isArray(l)?l:[],i)),e[2]=s,e[3]=o,e[4]=c):(o=e[3],c=e[4]);let p;return e[5]!==r||e[6]!==o||e[7]!==c?(p={recent:r,remember:o,forget:c},e[5]=r,e[6]=o,e[7]=c,e[8]=p):p=e[8],p}function C(){const n=m.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:L,structuralSharing:!0},n[0]=e):e=n[0],y(e)}function L(n){return P(n.matches,V,b)}function V(n){return n in _}function K(n){const{remember:e}=x(n),t=C(),a=T(n),s=h(t?.projectId),r=t?.projectId&&s?.id===t.projectId?s.title:null,o=t?.connection&&s?j(s).find(p=>p.connectionId===t.connection?.id&&p.toolName===t.connection.toolName):void 0,c=t?.connection&&{id:t.connection.id,toolName:t.connection.toolName,label:o?.label||t.connection.toolName,icon:o?.icon};O.useEffect(()=>{t?.projectId&&(a.remember(I(t.projectId,t.app)),r&&e({app:t.app,projectId:t.projectId,projectTitle:r,...c&&{connection:c}}))},[n,t?.app,t?.projectId,r,c?.label,c?.icon])}export{x as a,C as b,T as c,K as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as Q,a2 as _,o as k}from"./index-CmhfcT17.js";import{a as E,f as P}from"./repository-binding-DMbjGWw3.js";import{r as z}from"./serial-task-queue-CGOeQgpr.js";function O(t){return(t??"").normalize("NFKD").replace(/[̀-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"user"}function F(t){return t?.name||t?.email?.split("@")[0]||void 0}function K(t){const e=O(t),s=Date.now().toString(36).split("").reverse().join("");return`${e}-${s}`}function T(t,e){return t.some(s=>s.branch===e.branch)?t:[...t,e]}function V(t,e){return t.filter(s=>s.branch!==e)}function j(t,e,s){return t.map(r=>r.branch===e?{...r,name:s}:r)}const w=["orange","violet","blue","pink","amber","teal"];function W(t){return w[t%w.length]}function G(t,e){const s=`${e} `,r=t.reduce((c,m)=>{if(!m.name.startsWith(s))return c;const n=Number(m.name.slice(s.length));return Number.isInteger(n)&&n>c?n:c},0);return`${e} ${r+1}`}const v={orange:"bg-orange-500",violet:"bg-violet-500",blue:"bg-blue-500",pink:"bg-pink-500",amber:"bg-amber-500",teal:"bg-teal-500"};function H(t){return t&&v[t]||"bg-muted-foreground"}function J(t){const e=Q.c(27),s=E(t);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={silent:!0},e[0]=r):r=e[0];const c=P(r),{org:m}=_(),n=k();let b;e[1]!==s?.metadata?.releases?(b=s?.metadata?.releases??[],e[1]=s?.metadata?.releases,e[2]=b):b=e[2];const f=b;let d;e[3]!==m||e[4]!==t?(d=a=>a[1]===m.id&&a[3]==="collection"&&a[4]==="VIRTUAL_MCP"&&a[5]===t,e[3]=m,e[4]=t,e[5]=d):d=e[5];const u=d;let p;e[6]!==u||e[7]!==n||e[8]!==f?(p=()=>{for(const[,a]of n.getQueriesData({predicate:o=>u(o.queryKey)}))if(a?.item)return a.item.metadata?.releases??[];return f},e[6]=u,e[7]=n,e[8]=f,e[9]=p):p=e[9];const $=p;let h;e[10]!==c||e[11]!==u||e[12]!==n||e[13]!==$||e[14]!==t?(h=a=>z(`vm-releases:${t}`,async()=>{const o=$(),g=a(o);if(g!==o){n.setQueriesData({predicate:l=>u(l.queryKey)},l=>l?.item?{item:{...l.item,metadata:{...l.item.metadata,releases:g}}}:l);try{await c.update.mutateAsync({id:t,data:{metadata:{releases:g}}})}catch(l){const A=l;throw n.invalidateQueries({predicate:N=>u(N.queryKey)}),A}}}),e[10]=c,e[11]=u,e[12]=n,e[13]=$,e[14]=t,e[15]=h):h=e[15];const i=h;let R;e[16]!==i?(R=a=>i(o=>T(o,a)),e[16]=i,e[17]=R):R=e[17];const D=R;let C;e[18]!==i?(C=(a,o)=>i(g=>j(g,a,o)),e[18]=i,e[19]=C):C=e[19];const S=C;let x;e[20]!==i?(x=a=>i(o=>V(o,a)),e[20]=i,e[21]=x):x=e[21];const L=x;let y;return e[22]!==D||e[23]!==L||e[24]!==f||e[25]!==S?(y={releases:f,createRelease:D,renameRelease:S,deleteRelease:L},e[22]=D,e[23]=L,e[24]=f,e[25]=S,e[26]=y):y=e[26],y}export{G as a,F as b,K as g,W as n,H as r,J as u};
|
package/dist/client/assets/{use-reports-diagnostic-Bs8mcbPZ.js → use-reports-diagnostic-tpNRt1KV.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as N,a2 as Q,W as F,J as A,m as f,K as T,
|
|
1
|
+
import{c as N,a2 as Q,W as F,J as A,m as f,K as T,f8 as L,Y as K,M}from"./index-CmhfcT17.js";import{m as O}from"./use-mcp-client-Ck2YNhED.js";import{u as h}from"./companions-core-DzyeM-yJ.js";function D(n){return n?n.scanned_at?"ready":n.run_in_progress?"generating":"none":"none"}function U(n){return n.connectionQueryPending?!0:!n.hasConnection||n.cdClientFailed?!1:n.diagnosticQueryPending}const b=2e4;function q(n){if(typeof n!="string"||!n)return null;try{return new URL(n).hostname||null}catch{return null}}function Y(){const n=N.c(24),{org:e}=Q(),t=F.REPORTS(e.id);let l;n[0]!==e.id||n[1]!==e.slug?(l=O({connectionId:A,orgId:e.id,orgSlug:e.slug}),n[0]=e.id,n[1]=e.slug,n[2]=l):l=n[2];const{data:p}=f(l),u=f({queryKey:T.reportsConnection(e.id,t),enabled:!!p,retry:!1,staleTime:6e4,queryFn:async()=>{if(!p)throw new Error("selfClient not ready");const R=await p.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:t}});return h(R)}}),m=u.data?.item??null,{data:s,isError:y}=f({...O({connectionId:t,orgId:e.id,orgSlug:e.slug}),enabled:!!m}),C=T.reportsDiagnostic(e.id,t),E=!!s;let i;n[3]!==s?(i=async()=>{if(!s)throw new Error("cdClient not ready");const R=await s.callTool({name:L,arguments:{}});return h(R).diagnostic??null},n[3]=s,n[4]=i):i=n[4];let d;n[5]!==C||n[6]!==E||n[7]!==i?(d={queryKey:C,enabled:E,retry:1,refetchInterval:v,queryFn:i},n[5]=C,n[6]=E,n[7]=i,n[8]=d):d=n[8];const r=f(d),o=m?.metadata?.siteUrl,P=r.data??null,w=r.isSuccess,I=!!m;let a;n[9]!==y||n[10]!==u.isPending||n[11]!==r.isPending||n[12]!==I?(a=U({connectionQueryPending:u.isPending,hasConnection:I,cdClientFailed:y,diagnosticQueryPending:r.isPending}),n[9]=y,n[10]=u.isPending,n[11]=r.isPending,n[12]=I,n[13]=a):a=n[13];const S=typeof o=="string"&&o?o:null;let c;n[14]!==o?(c=q(o),n[14]=o,n[15]=c):c=n[15];const _=s??null;let g;return n[16]!==t||n[17]!==r.isSuccess||n[18]!==c||n[19]!==_||n[20]!==P||n[21]!==a||n[22]!==S?(g={diagnostic:P,isSuccess:w,isLoading:a,siteUrl:S,host:c,connectionId:t,cdClient:_},n[16]=t,n[17]=r.isSuccess,n[18]=c,n[19]=_,n[20]=P,n[21]=a,n[22]=S,n[23]=g):g=n[23],g}function v(n){return n.state.status!=="error"&&D(n.state.data)==="generating"?b:!1}function j(n,e){return{to:K.app,params:{org:n.slug,agentId:M(n.id),connectionId:e,toolName:L},search:{}}}export{D as d,j as r,Y as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,a2 as c,
|
|
1
|
+
import{c as u,a2 as c,a9 as r,K as l,R as d,o as f,e as S}from"./index-CmhfcT17.js";function C(){const e=u.c(7),{org:i}=c(),o=r();let a;e[0]!==i.id?(a=l.secrets(i.id),e[0]=i.id,e[1]=a):a=e[1];let t;e[2]!==o?(t=async()=>await o.call("SECRET_LIST",{}),e[2]=o,e[3]=t):t=e[3];let s;e[4]!==a||e[5]!==t?(s={queryKey:a,staleTime:6e4,queryFn:t},e[4]=a,e[5]=t,e[6]=s):s=e[6];const{data:n}=d(s);return n.secrets}function m(){const e=u.c(8),{org:i}=c(),o=r(),a=f();let t;e[0]!==o?(t=async y=>await o.call("SECRET_CREATE",{...y}),e[0]=o,e[1]=t):t=e[1];let s;e[2]!==i||e[3]!==a?(s=()=>{a.invalidateQueries({queryKey:l.secrets(i.id)})},e[2]=i,e[3]=a,e[4]=s):s=e[4];let n;return e[5]!==t||e[6]!==s?(n={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=n):n=e[7],S(n)}export{m as a,C as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as M,b as ee,r as b,j as i,l as te,D as re,q as se,v as oe,I as ie,s as le}from"./index-CmhfcT17.js";import{a as F,e as _}from"./UserSquare-pQAburWh.js";import{b as ne}from"./agent-icon-DEc9IKAh.js";import{i as ce}from"./SearchMd-DIriOluN.js";import{O as Y,Q as ae,T as H}from"./blocks-tab-states-Lfh7PvBk.js";import{ax as fe,ac as ue,u as de,ay as me,G as ve}from"./secret-ciphertext-CZ1toUgb.js";import{d as X,r as pe}from"./section-preview-url-7zfngvgW.js";import{a as xe}from"./input-C5uMiH8T.js";import{c as he,u as ge,K as we}from"./site-editor-toast-CaZH_Uob.js";function Se(r){return r.schema?.definitions??r.schema?.$defs??{}}function Z(r,e){const t=Se(e),s=t[btoa(r)];if(!s)return[];const o=[s];if(Array.isArray(s.allOf)){const n=s.allOf.find(l=>typeof l.$ref=="string")?.$ref;if(typeof n=="string"){const l=t[n.replace("#/definitions/","")];l&&o.push(l)}}return o}function be(r,e){for(const t of Z(r,e)){const s=typeof t.image=="string"?t.image:void 0;if(s?.includes("{{{"))return s}}function qe(r,e){if(!e)return;const t=fe(r);if(!t)return;const s=be(t.resolveType,e);if(!s)return;const o=ae(s,t.data);if(o)return Y(o)}function je(r,e){for(const t of Z(r,e)){const s=typeof t.image=="string"?t.image:void 0;if(s&&!s.includes("{{"))return Y(s)}}const ye=12,q=new Set,W=new Set;function Ne(){for(const r of W)r()}function Re(r){return q.has(r)?!0:q.size>=ye?!1:(q.add(r),!0)}function J(r){q.delete(r)&&Ne()}function Pe(r){return W.add(r),()=>{W.delete(r)}}function Ie(r,e){const t=b.useRef(!1),[s,o]=b.useState(!1),n=b.useRef(null),l=b.useRef(null),f=b.useRef(null),c=b.useRef(r);c.current=r;const[p]=b.useState(()=>{const u=()=>{f.current?.(),f.current=null},d=()=>t.current?!0:Re(e)?(t.current=!0,o(!0),u(),!0):!1;return a=>{if(l.current=a,n.current&&(n.current.disconnect(),n.current=null),u(),!a){t.current&&(J(e),t.current=!1,o(!1));return}queueMicrotask(()=>{if(l.current!==a)return;const w=new IntersectionObserver(m=>{if(m[0]?.isIntersecting??!1){!d()&&!f.current&&(f.current=Pe(()=>{l.current===a&&d()}));return}u(),t.current&&(J(e),t.current=!1,o(!1))},{root:c.current.current,rootMargin:"160px 0px"});w.observe(a),n.current=w})}});return{ref:p,iframeActive:s}}function Te(r){const e=M.c(9),{previewUrl:t,title:s,scrollRootRef:o,slotId:n}=r,{ref:l,iframeActive:f}=Ie(o,n),[c,p]=b.useState(!1),u=H()?_:F;let d;e[0]!==u||e[1]!==f||e[2]!==c||e[3]!==t||e[4]!==s?(d=f?i.jsxs(i.Fragment,{children:[!c&&i.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:i.jsx(u,{className:"h-8 w-8 animate-pulse text-muted-foreground/40"})}),i.jsx("iframe",{src:t,title:`Preview ${s}`,sandbox:"allow-scripts allow-same-origin",referrerPolicy:"no-referrer",className:"pointer-events-none h-[200%] w-[200%] origin-top-left scale-50 border-0 bg-white",tabIndex:-1,onLoad:()=>p(!0)})]}):i.jsx("div",{className:"flex h-full items-center justify-center",children:i.jsx(u,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=u,e[1]=f,e[2]=c,e[3]=t,e[4]=s,e[5]=d):d=e[5];let a;return e[6]!==l||e[7]!==d?(a=i.jsx("div",{ref:l,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:d}),e[6]=l,e[7]=d,e[8]=a):a=e[8],a}function Ce(r){const e=M.c(3),{image:t}=r,s=H()?_:F;let o;return e[0]!==s||e[1]!==t?(o=i.jsx("div",{className:"relative flex aspect-[16/10] w-full items-center justify-center overflow-hidden bg-muted/40",children:t?i.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:"h-full w-full object-cover"}):i.jsx(s,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=s,e[1]=t,e[2]=o):o=e[2],o}function Ue(r){const e=M.c(28),{entry:t,previewUrl:s,image:o,scrollRootRef:n,onSelect:l}=r,c=H()?t.isSavedBlock?ne:_:F,p=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let u;e[0]!==p?(u=te("group flex flex-col overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-lg))] border bg-card text-left transition-colors card-shadow","hover:border-primary/40 hover:bg-accent/30",p),e[0]=p,e[1]=u):u=e[1];let d;e[2]!==t.resolveType||e[3]!==t.title||e[4]!==o||e[5]!==s||e[6]!==n?(d=s?i.jsx(Te,{previewUrl:s,title:t.title,scrollRootRef:n,slotId:t.resolveType}):i.jsx(Ce,{image:o}),e[2]=t.resolveType,e[3]=t.title,e[4]=o,e[5]=s,e[6]=n,e[7]=d):d=e[7];let a;e[8]!==t.isSavedBlock?(a=t.isSavedBlock?{color:ve}:void 0,e[8]=t.isSavedBlock,e[9]=a):a=e[9];let w;e[10]!==c||e[11]!==a?(w=i.jsx(c,{className:"h-4 w-4 shrink-0",style:a}),e[10]=c,e[11]=a,e[12]=w):w=e[12];let m;e[13]!==t.title?(m=i.jsx("p",{className:"truncate text-sm font-medium",children:t.title}),e[13]=t.title,e[14]=m):m=e[14];let x;e[15]!==t.description?(x=t.description&&i.jsx("p",{className:"truncate text-xs text-muted-foreground",children:t.description}),e[15]=t.description,e[16]=x):x=e[16];let h;e[17]!==m||e[18]!==x?(h=i.jsxs("div",{className:"min-w-0 flex-1",children:[m,x]}),e[17]=m,e[18]=x,e[19]=h):h=e[19];let g;e[20]!==w||e[21]!==h?(g=i.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[w,h]}),e[20]=w,e[21]=h,e[22]=g):g=e[22];let S;return e[23]!==l||e[24]!==u||e[25]!==d||e[26]!==g?(S=i.jsxs("button",{type:"button",onClick:l,className:u,children:[d,g]}),e[23]=l,e[24]=u,e[25]=d,e[26]=g,e[27]=S):S=e[27],S}function ze(r){const e=M.c(51),{open:t,onOpenChange:s,meta:o,decofile:n,previewBaseUrl:l,onSelect:f}=r,c=ee(),[p,u]=b.useState(""),[d,a]=b.useState(t),w=b.useRef(null);t!==d&&(a(t),t&&u(""));let m,x,h,g,S,y,N,R,j,P,I;if(e[0]!==n||e[1]!==o||e[2]!==s||e[3]!==f||e[4]!==t||e[5]!==l||e[6]!==p||e[7]!==c){const z=t&&o&&n?ue(o,n):[],G=o?de(o):"",V=n?me(n):void 0,K=new Map;if(t&&G&&l)for(const v of z)K.set(v.resolveType,X(l,G,v.previewBlock,V));const E=p.trim().toLowerCase(),Q=E?z.filter(v=>v.title.toLowerCase().includes(E)||v.resolveType.toLowerCase().includes(E)||v.description?.toLowerCase().includes(E)):z;x=re,P=t,I=s,m=se,N="top-3 right-3",R="flex h-[90vh] max-h-[90vh] w-[96vw] max-w-[96vw] sm:max-w-[96vw] flex-col gap-0 overflow-hidden p-0";let B;e[19]!==c?(B=c("sectionsEditor.addSectionModal.title"),e[19]=c,e[20]=B):B=e[20];let k;e[21]!==B?(k=i.jsx(oe,{children:B}),e[21]=B,e[22]=k):k=e[22];let $;e[23]===Symbol.for("react.memo_cache_sentinel")?($=i.jsx(ce,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[23]=$):$=e[23];let D;e[24]===Symbol.for("react.memo_cache_sentinel")?(D=v=>u(v.target.value),e[24]=D):D=e[24];let A;e[25]!==c?(A=c("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=c,e[26]=A):A=e[26];let L;e[27]!==p||e[28]!==A?(L=i.jsxs("div",{className:"relative pt-2",children:[$,i.jsx(ie,{value:p,onChange:D,placeholder:A,className:"h-9 pl-8"})]}),e[27]=p,e[28]=A,e[29]=L):L=e[29],e[30]!==k||e[31]!==L?(j=i.jsxs(le,{className:"shrink-0 border-b px-4 py-3 text-left",children:[k,L]}),e[30]=k,e[31]=L,e[32]=j):j=e[32],S=w,y="min-h-0 flex-1 overflow-y-auto",h="p-4",g=Q.length===0?i.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:c("sectionsEditor.addSectionModal.noSectionsFound")}):i.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:Q.map(v=>i.jsx(Ue,{entry:v,scrollRootRef:w,previewUrl:l?K.get(v.resolveType)??X(l,G,v.previewBlock,V):null,image:l||!o?void 0:je(v.resolveType,o),onSelect:()=>f(v)},v.resolveType))}),e[0]=n,e[1]=o,e[2]=s,e[3]=f,e[4]=t,e[5]=l,e[6]=p,e[7]=c,e[8]=m,e[9]=x,e[10]=h,e[11]=g,e[12]=S,e[13]=y,e[14]=N,e[15]=R,e[16]=j,e[17]=P,e[18]=I}else m=e[8],x=e[9],h=e[10],g=e[11],S=e[12],y=e[13],N=e[14],R=e[15],j=e[16],P=e[17],I=e[18];let T;e[33]!==h||e[34]!==g?(T=i.jsx("div",{className:h,children:g}),e[33]=h,e[34]=g,e[35]=T):T=e[35];let C;e[36]!==T||e[37]!==S||e[38]!==y?(C=i.jsx("div",{ref:S,className:y,children:T}),e[36]=T,e[37]=S,e[38]=y,e[39]=C):C=e[39];let U;e[40]!==m||e[41]!==C||e[42]!==N||e[43]!==R||e[44]!==j?(U=i.jsxs(m,{closeButtonClassName:N,className:R,children:[j,C]}),e[40]=m,e[41]=C,e[42]=N,e[43]=R,e[44]=j,e[45]=U):U=e[45];let O;return e[46]!==x||e[47]!==U||e[48]!==P||e[49]!==I?(O=i.jsx(x,{open:P,onOpenChange:I,children:U}),e[46]=x,e[47]=U,e[48]=P,e[49]=I,e[50]=O):O=e[50],O}function Ge(r){const e=M.c(4),{previewServerUrl:t,runtime:s}=xe(r.virtualMcpId),{url:o}=he(r.virtualMcpId),n=ge(r.virtualMcpId,r.branch),l=s==="cms";if(we(n))return null;if(o)return o;let f;return e[0]!==l||e[1]!==r.sandboxUrl||e[2]!==t?(f=pe({sandboxUrl:r.sandboxUrl,previewServerUrl:t,fastPreviewActive:l}),e[0]=l,e[1]=r.sandboxUrl,e[2]=t,e[3]=f):f=e[3],f}export{ze as A,qe as g,Z as s,Ge as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,a2 as f,
|
|
1
|
+
import{c as u,a2 as f,a9 as y,m,o as g,e as T,K as l,t as E}from"./index-CmhfcT17.js";function K(){const e=u.c(7),{locator:t}=f(),o=y();let n;e[0]!==t?(n=l.tags(t),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==o?(s=async()=>{const{tags:r}=await o.call("TAGS_LIST",{});return r},e[2]=o,e[3]=s):s=e[3];let a;return e[4]!==n||e[5]!==s?(a={queryKey:n,queryFn:s,staleTime:3e4},e[4]=n,e[5]=s,e[6]=a):a=e[6],m(a)}function p(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{tag:i}=await n.call("TAGS_CREATE",typeof c=="string"?{name:c}:c);return i},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:S},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function S(e){E.error(e instanceof Error?e.message:"Failed to create tag")}function C(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{await n.call("TAGS_DELETE",{tagId:c})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)}),t.invalidateQueries({queryKey:l.taskBoardItems(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:q},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function q(e){E.error(e instanceof Error?e.message:"Failed to delete tag")}function M(e){const t=u.c(10),{locator:o}=f(),n=y();let s;t[0]!==o||t[1]!==e?(s=l.memberTags(o,e),t[0]=o,t[1]=e,t[2]=s):s=t[2];let a;t[3]!==e||t[4]!==n?(a=async()=>{const{tags:i}=await n.call("MEMBER_TAGS_GET",{memberId:e});return i},t[3]=e,t[4]=n,t[5]=a):a=t[5];const r=!!e;let c;return t[6]!==s||t[7]!==a||t[8]!==r?(c={queryKey:s,queryFn:a,staleTime:3e4,enabled:r},t[6]=s,t[7]=a,t[8]=r,t[9]=c):c=t[9],m(c)}function A(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{memberId:i,tagIds:d}=c;return await n.call("MEMBER_TAGS_SET",{memberId:i,tagIds:d})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=(c,i)=>{t.invalidateQueries({queryKey:l.memberTags(o,i.memberId)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:_},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function _(e){E.error(e instanceof Error?e.message:"Failed to update member tags")}export{p as a,C as b,M as c,A as d,K as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as O,f,m as S,K as _,ao as R,a2 as i,
|
|
1
|
+
import{c as O,f,m as S,K as _,ao as R,a2 as i,a9 as l}from"./index-CmhfcT17.js";const K=["TASK_BOARD_OPERATION","TASK_BOARD_REWORK","TASK_BOARD_DELIVERY","TASK_BOARD_SPRINTS","TASK_BOARD_STUCK","TASK_BOARD_COST","TASK_BOARD_ERRORS","TASK_BOARD_TENANTS"];function B(){const t=O.c(8),o=f({strict:!1}).org??"";let e;t[0]!==o?(e=_.taskBoardAdminOrgs(o),t[0]=o,t[1]=e):e=t[1];const s=!!o;let n;t[2]!==o?(n=()=>R(o,"TASK_BOARD_ADMIN_ORG_LIST",{}),t[2]=o,t[3]=n):n=t[3];let c;return t[4]!==e||t[5]!==s||t[6]!==n?(c={queryKey:e,enabled:s,queryFn:n,staleTime:3e5},t[4]=e,t[5]=s,t[6]=n,t[7]=c):c=t[7],S(c)}function y(t,o){const e=O.c(14),{locator:s}=i(),n=l();let c;e[0]!==s||e[1]!==o.from||e[2]!==o.org||e[3]!==o.project||e[4]!==o.to||e[5]!==t?(c=_.taskBoardAnalytics(s,t,o.org??"",o.project??"",o.from,o.to),e[0]=s,e[1]=o.from,e[2]=o.org,e[3]=o.project,e[4]=o.to,e[5]=t,e[6]=c):c=e[6];let T;e[7]!==o||e[8]!==n||e[9]!==t?(T=()=>n.call(t,o),e[7]=o,e[8]=n,e[9]=t,e[10]=T):T=e[10];let A;return e[11]!==c||e[12]!==T?(A={queryKey:c,queryFn:T},e[11]=c,e[12]=T,e[13]=A):A=e[13],S(A)}function D(t,o){const e=O.c(15),{locator:s}=i(),n=l();let c;e[0]!==o||e[1]!==s||e[2]!==t.from||e[3]!==t.org||e[4]!==t.project||e[5]!==t.to?(c=_.taskBoardOperationTasks(s,t.org??"",t.project??"",t.from,t.to,o??""),e[0]=o,e[1]=s,e[2]=t.from,e[3]=t.org,e[4]=t.project,e[5]=t.to,e[6]=c):c=e[6];const T=o!==null;let A;e[7]!==o||e[8]!==t||e[9]!==n?(A=()=>n.call("TASK_BOARD_OPERATION_TASKS",{...t,drill:o??""}),e[7]=o,e[8]=t,e[9]=n,e[10]=A):A=e[10];let u;return e[11]!==c||e[12]!==T||e[13]!==A?(u={queryKey:c,enabled:T,queryFn:A},e[11]=c,e[12]=T,e[13]=A,e[14]=u):u=e[14],S(u)}export{K as A,y as a,D as b,B as u};
|
package/dist/client/assets/{use-task-board-events-BMlQSCd3.js → use-task-board-events-B7HlzAAo.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"./task-board-
|
|
1
|
+
import{a as m}from"./task-board-BvUZ8lZX.js";import{r as e}from"./index-CmhfcT17.js";import{t as g}from"./watch-sse-pool-zJ3qp_pj.js";const p=()=>0;function v(E){const{orgSlug:r,enabled:t=!0,onUpdate:u,onDelete:c,onResync:o}=E,a=e.useRef(u);a.current=u;const f=e.useRef(c);f.current=c;const d=e.useRef(o);d.current=o;const s=e.useRef(null),R=e.useRef(t),i=e.useRef(r);(!s.current||R.current!==t||i.current!==r)&&(R.current=t,i.current=r,s.current=b=>{if(!t||!r)return()=>{};const S=l=>{let n;try{n=JSON.parse(l.data)}catch{return}n.data&&(l.type===m?f.current?.(n.data.id):a.current(n.data)),b()};return g.subscribe(r,S,()=>d.current?.())}),e.useSyncExternalStore(s.current,p,p)}export{v as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as y,
|
|
1
|
+
import{r as y,av as w,c as h,a2 as R,a9 as T,o as k,m as O,K as A}from"./index-CmhfcT17.js";import{e as B}from"./watch-sse-pool-zJ3qp_pj.js";const P=()=>0;function C(e){const{orgSlug:t,itemId:s,onPrs:r}=e,o=y.useRef(r);o.current=r;const l=y.useRef(null),a=y.useRef(""),i=`${t}:${s??""}`;(!l.current||a.current!==i)&&(a.current=i,l.current=u=>{if(!t||!s)return()=>{};const d=c=>{let n;try{n=JSON.parse(c.data)}catch{return}n.data?.id!==s||!Array.isArray(n.data.prs)||(o.current(n.data.prs),u())};return B.subscribe(t,d)}),y.useSyncExternalStore(l.current,P,P)}const E=1440*60*1e3,D=40;function g(e){try{const t=window.localStorage.getItem(w.taskBoardPrs(e));return t?JSON.parse(t):{}}catch{return{}}}function v(e){const t=Date.now(),s=Object.entries(e).filter(([,r])=>t-r.updatedAt<=E);for(s.sort(([,r],[,o])=>r.updatedAt-o.updatedAt);s.length>D;)s.shift();return Object.fromEntries(s)}function _(e,t){if(typeof window>"u")return null;const s=g(e)[t];return!s||Date.now()-s.updatedAt>E?null:s}function L(e,t,s){if(!(typeof window>"u"))try{const r=g(e);r[t]={data:s,updatedAt:Date.now()},window.localStorage.setItem(w.taskBoardPrs(e),JSON.stringify(v(r)))}catch{}}const b=6e4,K=2e3,N=e=>e.state===null;function q(e){const t=h.c(25),{org:s,locator:r}=R(),o=T(),l=k();let a;t[0]!==e||t[1]!==r||t[2]!==l?(a=S=>{l.setQueryData(A.taskBoardItemPrs(r,e??""),S)},t[0]=e,t[1]=r,t[2]=l,t[3]=a):a=t[3];let i;t[4]!==e||t[5]!==s.slug||t[6]!==a?(i={orgSlug:s.slug,itemId:e,onPrs:a},t[4]=e,t[5]=s.slug,t[6]=a,t[7]=i):i=t[7],C(i);let u;t[8]!==e||t[9]!==r?(u=A.taskBoardItemPrs(r,e??""),t[8]=e,t[9]=r,t[10]=u):u=t[10];const d=!!e;let c,n;t[11]!==e||t[12]!==r?(c=()=>e?_(r,e)?.data??void 0:void 0,n=()=>e?_(r,e)?.updatedAt:void 0,t[11]=e,t[12]=r,t[13]=c,t[14]=n):(c=t[13],n=t[14]);let f;t[15]!==e||t[16]!==r||t[17]!==o?(f=async()=>{const{prs:S}=await o.call("TASK_BOARD_ITEM_PRS_GET",{taskBoardItemId:e});return L(r,e,S),S},t[15]=e,t[16]=r,t[17]=o,t[18]=f):f=t[18];let p;return t[19]!==u||t[20]!==d||t[21]!==c||t[22]!==n||t[23]!==f?(p={queryKey:u,enabled:d,refetchInterval:M,initialData:c,initialDataUpdatedAt:n,queryFn:f},t[19]=u,t[20]=d,t[21]=c,t[22]=n,t[23]=f,t[24]=p):p=t[24],O(p)}function M(e){return e.state.data?.some(N)?K:b}export{q as u};
|
package/dist/client/assets/{use-task-board-items-DFKc2jHy.js → use-task-board-items-CwavMUzx.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,l as H,j as J,
|
|
1
|
+
import{c as C,l as H,j as J,f7 as V,a2 as z,o as G,K as M,a9 as Y,m as W,b as X,e as q,y as Z,t as $}from"./index-CmhfcT17.js";import{u as ee}from"./use-task-board-events-B7HlzAAo.js";import{b as te}from"./use-decopilot-events-BFFoNVdS.js";function ne(e){const o=C.c(8),{size:l,className:t}=e,s=l===void 0?16:l;let a;o[0]!==s?(a={width:s,height:s},o[0]=s,o[1]=a):a=o[1];let n;o[2]!==t?(n=H("shrink-0 rounded-full object-cover",t),o[2]=t,o[3]=n):n=o[3];let u;return o[4]!==s||o[5]!==a||o[6]!==n?(u=J.jsx("img",{src:V,alt:"Super Agent",width:s,height:s,style:a,className:n}),o[4]=s,o[5]=a,o[6]=n,o[7]=u):u=o[7],u}function se(e,o){return{queryKey:M.taskBoardItems(e),refetchInterval:6e4,queryFn:async()=>{const{items:l}=await o.call("TASK_BOARD_ITEM_LIST",{});return{items:l}}}}function ae(){const e=C.c(21),{org:o,locator:l}=z(),t=G();let s;e[0]!==l?(s=M.taskBoardItems(l),e[0]=l,e[1]=s):s=e[1];const a=s;let n;e[2]!==l||e[3]!==t||e[4]!==a?(n=m=>{t.cancelQueries({queryKey:a}),t.setQueryData(a,c=>c&&{...c,items:c.items.some(f=>f.id===m.id)?c.items.map(f=>f.id===m.id?m:f):[m,...c.items]}),t.invalidateQueries({queryKey:M.taskBoardActivity(l,m.id)})},e[2]=l,e[3]=t,e[4]=a,e[5]=n):n=e[5];let u,S;e[6]!==t||e[7]!==a?(u=()=>{t.invalidateQueries({queryKey:a})},S=m=>{t.cancelQueries({queryKey:a}),t.setQueryData(a,c=>c&&{...c,items:c.items.filter(f=>f.id!==m)})},e[6]=t,e[7]=a,e[8]=u,e[9]=S):(u=e[8],S=e[9]);let r;e[10]!==o.slug||e[11]!==n||e[12]!==u||e[13]!==S?(r={orgSlug:o.slug,onUpdate:n,onResync:u,onDelete:S},e[10]=o.slug,e[11]=n,e[12]=u,e[13]=S,e[14]=r):r=e[14],ee(r);let y;e[15]!==t||e[16]!==a?(y=m=>{const c=m.subject,f=m.data.status;t.cancelQueries({queryKey:a}),t.setQueryData(a,g=>g&&{...g,items:g.items.map(T=>T.threads.some(E=>E.threadId===c)?{...T,threads:T.threads.map(E=>E.threadId===c?{...E,status:f}:E)}:T)})},e[15]=t,e[16]=a,e[17]=y):y=e[17];let k;e[18]!==o.slug||e[19]!==y?(k={orgSlug:o.slug,onTaskStatus:y},e[18]=o.slug,e[19]=y,e[20]=k):k=e[20],te(k)}function ue(){const e=C.c(9),{locator:o}=z(),l=Y();let t;e[0]!==o||e[1]!==l?(t=se(o,l),e[0]=o,e[1]=l,e[2]=t):t=e[2];const s=W(t);ae();let a;e[3]!==s.data?.items?(a=s.data?.items??[],e[3]=s.data?.items,e[4]=a):a=e[4];let n;return e[5]!==s.error||e[6]!==s.isLoading||e[7]!==a?(n={items:a,isLoading:s.isLoading,error:s.error},e[5]=s.error,e[6]=s.isLoading,e[7]=a,e[8]=n):n=e[8],n}function ce(){const e=C.c(70),{org:o,locator:l}=z(),t=Y(),s=G(),a=X();let n;e[0]!==l?(n=M.taskBoardItems(l),e[0]=l,e[1]=n):n=e[1];const u=n;let S;e[2]!==s||e[3]!==u?(S=()=>s.invalidateQueries({queryKey:u}),e[2]=s,e[3]=u,e[4]=S):S=e[4];const r=S;let y;e[5]!==t?(y=i=>t.call("TASK_BOARD_ITEM_CREATE",i),e[5]=t,e[6]=y):y=e[6];let k;e[7]!==r||e[8]!==y?(k={mutationFn:y,onSuccess:r},e[7]=r,e[8]=y,e[9]=k):k=e[9];const m=q(k);let c;e[10]!==t?(c=i=>t.call("TASK_BOARD_ITEM_UPDATE",i),e[10]=t,e[11]=c):c=e[11];let f;e[12]!==s||e[13]!==u?(f=async i=>{await s.cancelQueries({queryKey:u});const _=s.getQueryData(u);return s.setQueryData(u,d=>d&&{...d,items:d.items.map(w=>w.id===i.id?{...w,...i,...i.status!==void 0&&i.status!==w.status&&{statusSince:new Date().toISOString()}}:w)}),{previous:_}},e[12]=s,e[13]=u,e[14]=f):f=e[14];let g;e[15]!==o?(g=(i,_)=>{_.status==="done"&&Z("task_marked_done",{organization_id:o.id,task_board_item_id:_.id})},e[15]=o,e[16]=g):g=e[16];let T;e[17]!==s||e[18]!==u?(T=(i,_,d)=>{d?.previous&&s.setQueryData(u,d.previous)},e[17]=s,e[18]=u,e[19]=T):T=e[19];let E;e[20]!==r||e[21]!==l||e[22]!==s?(E=(i,_,d)=>{r(),s.invalidateQueries({queryKey:M.taskBoardActivity(l,d.id)})},e[20]=r,e[21]=l,e[22]=s,e[23]=E):E=e[23];let O;e[24]!==c||e[25]!==f||e[26]!==g||e[27]!==T||e[28]!==E?(O={mutationFn:c,onMutate:f,onSuccess:g,onError:T,onSettled:E},e[24]=c,e[25]=f,e[26]=g,e[27]=T,e[28]=E,e[29]=O):O=e[29];const U=q(O);let B;e[30]!==t?(B=i=>t.call("TASK_BOARD_ITEM_DELETE",{id:i}),e[30]=t,e[31]=B):B=e[31];let A;e[32]!==r||e[33]!==a?(A=i=>{$.error(i instanceof Error&&i.message?i.message:a("taskBoard.taskBoard.deleteError")),r()},e[32]=r,e[33]=a,e[34]=A):A=e[34];let L;e[35]!==r||e[36]!==B||e[37]!==A?(L={mutationFn:B,onSuccess:r,onError:A},e[35]=r,e[36]=B,e[37]=A,e[38]=L):L=e[38];const p=q(L);let I;e[39]!==t?(I=async i=>{const _=await Promise.allSettled(i.map(d=>t.call("TASK_BOARD_ITEM_DELETE",{id:d})));return{total:i.length,failed:_.filter(oe).length}},e[39]=t,e[40]=I):I=e[40];let D,Q;e[41]!==a?(D=i=>{const{total:_,failed:d}=i;d!==0&&$.error(a("taskBoard.taskBoard.deleteBulkError",{failed:String(d),total:String(_)}))},Q=()=>$.error(a("taskBoard.taskBoard.deleteError")),e[41]=a,e[42]=D,e[43]=Q):(D=e[42],Q=e[43]);let j;e[44]!==r||e[45]!==I||e[46]!==D||e[47]!==Q?(j={mutationFn:I,onSuccess:D,onError:Q,onSettled:r},e[44]=r,e[45]=I,e[46]=D,e[47]=Q,e[48]=j):j=e[48];const x=q(j);let h;e[49]!==t?(h=i=>t.call("TASK_BOARD_ITEM_UPDATE",i),e[49]=t,e[50]=h):h=e[50];let F;e[51]!==r||e[52]!==h?(F={mutationFn:h,onSuccess:r},e[51]=r,e[52]=h,e[53]=F):F=e[53];const N=q(F);let K;e[54]!==t?(K=i=>t.call("TASK_BOARD_ITEM_RERUN",i),e[54]=t,e[55]=K):K=e[55];let R;e[56]!==r||e[57]!==l||e[58]!==s?(R=(i,_,d)=>{r(),s.invalidateQueries({queryKey:M.taskBoardActivity(l,d.id)})},e[56]=r,e[57]=l,e[58]=s,e[59]=R):R=e[59];let b;e[60]!==K||e[61]!==R?(b={mutationFn:K,onSettled:R},e[60]=K,e[61]=R,e[62]=b):b=e[62];const P=q(b);let v;return e[63]!==m||e[64]!==N||e[65]!==p||e[66]!==x||e[67]!==P||e[68]!==U?(v={create:m,update:U,remove:p,removeMany:x,link:N,rerun:P},e[63]=m,e[64]=N,e[65]=p,e[66]=x,e[67]=P,e[68]=U,e[69]=v):v=e[69],v}function oe(e){return e.status==="rejected"}export{ne as S,ce as a,ue as b,se as t,ae as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a2 as l,a9 as c,r as i,R as d,K as T}from"./index-CmhfcT17.js";import{u as m}from"./thread-intent-BxpIEOHD.js";const p=[],S=()=>()=>{},h=()=>p;function f(t){const{org:s}=l(),r=c(),n=m(),o=i.useSyncExternalStore(n?.threads.subscribe??S,n?.threads.get??h),e=t===null?null:o.find(a=>a.id===t)??null,{data:u}=d({queryKey:T.ensureTask(s.id,t),queryFn:async()=>{if(t===null)return null;try{const{item:a}=await r.call("COLLECTION_THREADS_GET",{id:t});return a??null}catch{return null}},initialData:e&&!e.partial?e:void 0,select:a=>a?.metadata??null,staleTime:3e4});return e?.metadata??u??null}export{f as u};
|
package/dist/client/assets/{use-thread-analytics-C37ZXdud.js → use-thread-analytics-W6uH9m6t.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,m as o,f as d,r as A,K as T,ao as y,ag as E}from"./index-
|
|
1
|
+
import{c as u,m as o,f as d,r as A,K as T,ao as y,ag as E}from"./index-CmhfcT17.js";import{a as O}from"./watch-sse-pool-zJ3qp_pj.js";function b(){return d({strict:!1}).org??""}function F(){const t=u.c(8),r=b();let e;t[0]!==r?(e=T.threadAnalyticsOrgs(r),t[0]=r,t[1]=e):e=t[1];const s=!!r;let n;t[2]!==r?(n=()=>y(r,"THREAD_ANALYTICS_ORG_LIST",{}),t[2]=r,t[3]=n):n=t[3];let c;return t[4]!==e||t[5]!==s||t[6]!==n?(c={queryKey:e,enabled:s,queryFn:n,staleTime:3e5},t[4]=e,t[5]=s,t[6]=n,t[7]=c):c=t[7],o(c)}const m=3e3,f=new Map,h=new Map;function _(t){let r=h.get(t);return r||(r=e=>{let s=null;const n=()=>{s||(s=setTimeout(()=>{s=null,f.set(t,(f.get(t)??0)+1),e()},m))},c=O.subscribe(t,n,n);return()=>{s&&clearTimeout(s),c()}},h.set(t,r)),r}function q(t,r){const e=u.c(5);let s;e[0]!==r||e[1]!==t?(s=_(t),e[0]=r,e[1]=t,e[2]=s):s=e[2];let n;return e[3]!==t?(n=()=>f.get(t)??0,e[3]=t,e[4]=n):n=e[4],A.useSyncExternalStore(s,n)}function K(t,r){const e=u.c(11),s=b(),n=q(s,r);let c;e[0]!==t||e[1]!==s||e[2]!==n?(c=T.threadAnalytics(s,"live",t,n),e[0]=t,e[1]=s,e[2]=n,e[3]=c):c=e[3];const i=!!s;let a;e[4]!==t||e[5]!==s?(a=()=>y(s,"THREAD_ANALYTICS_LIVE",t),e[4]=t,e[5]=s,e[6]=a):a=e[6];let l;return e[7]!==c||e[8]!==i||e[9]!==a?(l={queryKey:c,enabled:i,queryFn:a,placeholderData:E},e[7]=c,e[8]=i,e[9]=a,e[10]=l):l=e[10],o(l)}function k(t,r){const e=u.c(12),s=b();let n;e[0]!==r||e[1]!==s||e[2]!==t?(n=T.threadAnalytics(s,t,r,0),e[0]=r,e[1]=s,e[2]=t,e[3]=n):n=e[3];const c=!!s;let i;e[4]!==r||e[5]!==s||e[6]!==t?(i=()=>y(s,t,r),e[4]=r,e[5]=s,e[6]=t,e[7]=i):i=e[7];let a;return e[8]!==n||e[9]!==c||e[10]!==i?(a={queryKey:n,enabled:c,queryFn:i},e[8]=n,e[9]=c,e[10]=i,e[11]=a):a=e[11],o(a)}export{K as a,k as b,F as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c,a2 as i,m as l,K as p}from"./index-CmhfcT17.js";import{f}from"./chat-context-Ek-8IxEX.js";async function m(e,s){const t=await fetch(`/api/${s}/threads/${encodeURIComponent(e)}/outputs`,{credentials:"include"});if(!t.ok)throw new Error(`Failed to fetch thread outputs: ${t.status}`);return(await t.json()).objects??[]}function $(){const e=c.c(2),s=f()?.messages??[];let t;return e[0]!==s?(t=s.some(y),e[0]=s,e[1]=t):t=e[1],t}function y(e){return e.parts?.some(b)}function b(e){const s=e;return(s.type==="tool-bash"||s.type==="tool-write")&&s.state==="output-available"}function g(e,s){const t=c.c(9),{org:u}=i();let o;t[0]!==e?(o=p.threadOutputs(e??""),t[0]=e,t[1]=o):o=t[1];let n;t[2]!==u||t[3]!==e?(n=()=>m(e??"",u.slug),t[2]=u,t[3]=e,t[4]=n):n=t[4];const r=!!e&&(s?.enabled??!0);let a;return t[5]!==o||t[6]!==n||t[7]!==r?(a={queryKey:o,queryFn:n,enabled:r,staleTime:0},t[5]=o,t[6]=n,t[7]=r,t[8]=a):a=t[8],l(a)}export{g as a,$ as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u}from"./infiniteQueryObserver-DPyz6bSI.js";import{dp as i}from"./index-CmhfcT17.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{dE as Q,b7 as y,dF as S,b6 as w,dq as E,o as k,dG as M,dH as q,r as p,dI as x,dJ as H,dK as L,dL as P,dM as v,dN as B,dO as A}from"./index-CmhfcT17.js";function R(r,s){const e=new Set(s);return r.filter(t=>!e.has(t))}function I(r,s,e){const t=r.slice(0);return t[s]=e,t}var T=class extends Q{#i;#s;#n;#r;#e;#t;#o;#u;#h;#a=[];constructor(r,s,e){super(),this.#i=r,this.#r=e,this.#n=[],this.#e=[],this.#s=[],this.setQueries(s)}onSubscribe(){this.listeners.size===1&&this.#e.forEach(r=>{r.subscribe(s=>{this.#f(r,s)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#e.forEach(r=>{r.destroy()})}setQueries(r,s){this.#n=r,this.#r=s,y.batch(()=>{const e=this.#e,t=this.#d(this.#n);t.forEach(o=>o.observer.setOptions(o.defaultedQueryOptions));const i=t.map(o=>o.observer),n=i.map(o=>o.getCurrentResult()),u=e.length!==i.length,c=i.some((o,f)=>o!==e[f]),d=u||c,b=d?!0:n.some((o,f)=>{const g=this.#s[f];return!g||!S(o,g)});!d&&!b||(d&&(this.#a=t,this.#e=i),this.#s=n,this.hasListeners()&&(d&&(R(e,i).forEach(o=>{o.destroy()}),R(i,e).forEach(o=>{o.subscribe(f=>{this.#f(o,f)})})),this.#p()))})}getCurrentResult(){return this.#s}getQueries(){return this.#e.map(r=>r.getCurrentQuery())}getObservers(){return this.#e}getOptimisticResult(r,s){const e=this.#d(r),t=e.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=e.map(n=>n.defaultedQueryOptions.queryHash);return[t,n=>this.#l(n??t,s,i),()=>this.#c(t,e)]}#c(r,s){return s.map((e,t)=>{const i=r[t];return e.defaultedQueryOptions.notifyOnChangeProps?i:e.observer.trackResult(i,n=>{s.forEach(u=>{u.observer.trackProp(n)})})})}#l(r,s,e){if(s){const t=this.#h,i=e!==void 0&&t!==void 0&&(t.length!==e.length||e.some((n,u)=>n!==t[u]));return(!this.#t||this.#s!==this.#u||i||s!==this.#o)&&(this.#o=s,this.#u=this.#s,e!==void 0&&(this.#h=e),this.#t=w(this.#t,s(r))),this.#t}return r}#b(){return this.#r?.combine!==void 0&&this.#e.some((r,s)=>r.options.suspense&&this.#s[s]?.data===void 0)}#d(r){const s=new Map;this.#e.forEach(t=>{const i=t.options.queryHash;if(!i)return;const n=s.get(i);n?n.push(t):s.set(i,[t])});const e=[];return r.forEach(t=>{const i=this.#i.defaultQueryOptions(t),u=s.get(i.queryHash)?.shift()??new E(this.#i,i);e.push({defaultedQueryOptions:i,observer:u})}),e}#f(r,s){const e=this.#e.indexOf(r);e!==-1&&(this.#s=I(this.#s,e,s),this.#p())}#p(){if(this.hasListeners()){const r=this.#c(this.#s,this.#a),s=this.#b(),e=this.#t,t=s?e:this.#l(r,this.#r?.combine);(s||e!==t)&&y.batch(()=>{this.listeners.forEach(i=>{i(this.#s)})})}}};function U({queries:r,...s},e){const t=k(e),i=M(),n=q(),u=p.useMemo(()=>r.map(h=>{const a=t.defaultQueryOptions(h);return a._optimisticResults=i?"isRestoring":"optimistic",a}),[r,t,i]);u.forEach(h=>{x(h);const a=t.getQueryCache().get(h.queryHash);H(h,n,a)}),L(n);const[c]=p.useState(()=>new T(t,u,s)),[d,b,o]=c.getOptimisticResult(u,s.combine),f=!i&&s.subscribed!==!1;p.useSyncExternalStore(p.useCallback(h=>f?c.subscribe(y.batchCalls(h)):P,[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setQueries(u,s)},[u,s,c]);const m=d.some((h,a)=>v(u[a],h))?d.flatMap((h,a)=>{const l=u[a];if(l&&v(l,h)){const C=new E(t,l);return B(l,C,n)}return[]}):[];if(m.length>0)throw Promise.all(m);const O=d.find((h,a)=>{const l=u[a];return l&&A({result:h,errorResetBoundary:n,throwOnError:l.throwOnError,query:t.getQueryCache().get(l.queryHash),suspense:l.suspense})});if(O?.error)throw O.error;return b(o())}export{U as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as s}from"./infiniteQueryObserver-DPyz6bSI.js";import{dp as u,dD as n}from"./index-CmhfcT17.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as V,b as q,r as z,a as O,m as Y,e as $,j as t,n as I,K as J,t as Q,B as W}from"./index-
|
|
1
|
+
import{c as V,b as q,r as z,a as O,m as Y,e as $,j as t,n as I,K as J,t as Q,B as W}from"./index-CmhfcT17.js";import{C as G}from"./collection-table-wrapper-BjP-CvVc.js";import{E as L}from"./empty-state-Dd0b73U2.js";import{S as H}from"./search-input-CflNU9yi.js";import{A as X}from"./avatar-jtTGOflQ.js";import{B as D}from"./badge-BPJdS_zE.js";import{u as Z}from"./use-debounced-value-CvHHa5zM.js";import{a as K}from"./admin-fetch-BhTJlAsX.js";import{f as ee}from"./format-time-CAj8AQXM.js";import{g as se}from"./get-initials-D-f_fDFw.js";import"./table-C_1aW9HL.js";import"./ArrowUp-Dm1tTcjd.js";import"./SearchMd-DIriOluN.js";import"./User01-DmuhzlMa.js";import"./differenceInSeconds-C3x8sHUj.js";function ve(){const e=V.c(58),s=q(),[r,M]=z.useState("");let N;e[0]!==r?(N=r.trim(),e[0]=r,e[1]=N):N=e[1];const a=Z(N,300),{data:R}=O.useSession(),k=R?.user?.id;let n;e[2]!==a?(n=J.deploymentAdminUsers(a),e[2]=a,e[3]=n):n=e[3];let l;e[4]!==a?(l=()=>{const i=new URLSearchParams({limit:"100"});return a&&i.set("searchValue",a),K(`/api/_admin/users?${i}`)},e[4]=a,e[5]=l):l=e[5];let C;e[6]!==n||e[7]!==l?(C={queryKey:n,queryFn:l},e[6]=n,e[7]=l,e[8]=C):C=e[8];const{data:P,isLoading:_,isError:A}=Y(C);let w;e[9]===Symbol.for("react.memo_cache_sentinel")?(w=ie,e[9]=w):w=e[9];let y;e[10]!==s?(y={mutationFn:ae,onSuccess:w,onError:i=>{Q.error(i instanceof Error?i.message:s("admin.users.failedToImpersonate"))}},e[10]=s,e[11]=y):y=e[11];const E=$(y);let b;e[12]!==P?.users?(b=P?.users??[],e[12]=P?.users,e[13]=b):b=e[13];const B=b;let o;e[14]!==s?(o=s("admin.users.columnUser"),e[14]=s,e[15]=o):o=e[15];let m;e[16]!==s?(m=i=>t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(X,{url:i.image??void 0,fallback:se(i.name),shape:"circle",size:"sm"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:i.name||s("admin.users.unknown")}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:i.email})]})]}),e[16]=s,e[17]=m):m=e[17];let d;e[18]!==o||e[19]!==m?(d={id:"user",header:o,render:m,cellClassName:"flex-1 min-w-0"},e[18]=o,e[19]=m,e[20]=d):d=e[20];let c;e[21]!==s?(c=s("admin.users.columnEmail"),e[21]=s,e[22]=c):c=e[22];let u;e[23]!==s?(u=i=>i.emailVerified?t.jsx(D,{variant:"outline",className:"text-success border-success/20",children:s("admin.users.verified")}):t.jsx(D,{variant:"outline",className:"text-muted-foreground",children:s("admin.users.unverified")}),e[23]=s,e[24]=u):u=e[24];let f;e[25]!==c||e[26]!==u?(f={id:"verified",header:c,render:u,cellClassName:"w-28 shrink-0"},e[25]=c,e[26]=u,e[27]=f):f=e[27];let p;e[28]!==s?(p=s("admin.users.columnCreated"),e[28]=s,e[29]=p):p=e[29];let h;e[30]!==p?(h={id:"created",header:p,render:te,cellClassName:"w-48 shrink-0"},e[30]=p,e[31]=h):h=e[31];let x;e[32]!==k||e[33]!==E||e[34]!==s?(x={id:"actions",header:"",render:i=>t.jsx(W,{variant:"outline",size:"sm",disabled:i.id===k||E.isPending,onClick:()=>E.mutate(i.id),children:s("admin.users.impersonate")}),cellClassName:"w-32 shrink-0"},e[32]=k,e[33]=E,e[34]=s,e[35]=x):x=e[35];let T;e[36]!==f||e[37]!==h||e[38]!==x||e[39]!==d?(T=[d,f,h,x],e[36]=f,e[37]=h,e[38]=x,e[39]=d,e[40]=T):T=e[40];const F=T;let j;e[41]!==s?(j=s("admin.users.searchPlaceholder"),e[41]=s,e[42]=j):j=e[42];let g;e[43]!==r||e[44]!==j?(g=t.jsx(H,{value:r,onChange:M,placeholder:j,className:"w-full md:w-[375px]"}),e[43]=r,e[44]=j,e[45]=g):g=e[45];let S;e[46]!==a||e[47]!==A||e[48]!==s?(S=A?t.jsx(L,{title:s("admin.users.failedToLoadTitle"),description:s("admin.users.failedToLoadDescription")}):t.jsx(L,{title:s("admin.users.noUsersFoundTitle"),description:a?s("admin.users.noUsersMatchSearch",{search:a}):s("admin.users.noUsersYet")}),e[46]=a,e[47]=A,e[48]=s,e[49]=S):S=e[49];let v;e[50]!==F||e[51]!==_||e[52]!==S||e[53]!==B?(v=t.jsx(G,{columns:F,data:B,isLoading:_,emptyState:S}),e[50]=F,e[51]=_,e[52]=S,e[53]=B,e[54]=v):v=e[54];let U;return e[55]!==g||e[56]!==v?(U=t.jsx(I,{children:t.jsx(I.Content,{children:t.jsx(I.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[g,v]})})})}),e[55]=g,e[56]=v,e[57]=U):U=e[57],U}function te(e){return t.jsx("span",{className:"text-sm text-foreground",children:ee(e.createdAt)})}function ie(){window.location.href="/"}function ae(e){return K("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{ve as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as W,s as E,b as k}from"./ZoomOut-
|
|
1
|
+
import{c as W,s as E,b as k}from"./ZoomOut-BfTCLHO9.js";import{a as j}from"./Image01-C9QzuJaK.js";function I(e){if(!e||e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;try{const t=decodeURIComponent(e);return!!(t.includes("\\")||t.includes("..")||t.includes("\0"))}catch{return!0}}function L(e){if(I(e))throw new Error(`Invalid block key: ${e||"(empty)"}`)}function C(e){try{return decodeURIComponent(e)}catch{return e}}function P(e){return L(e),encodeURIComponent(e)}function G(e){return`.deco/blocks/${P(e)}.json`}const v=1e4,F=3;function y(e){return e.trim()?(e.startsWith("/")?e:`/${e}`).replace(/\/+/g,"/"):"/"}function x(e){return e.startsWith("/")?e.slice(1):e}function z(e){const t=x(e);return!t||t.includes("..")||t.includes("\\")?!1:t.startsWith(".deco/blocks/")||!t.startsWith("/")&&!t.includes("://")}function h(e){return e.trim()?e.startsWith("/")?e:`/${e}`:"/"}function $(e){const t=h(e);if(t==="/")return"/";const n=t.split("/").filter(Boolean);return n.pop(),n.length===0?"/":`/${n.join("/")}`}function D(e,t){const n=t.replace(/^\/+|\/+$/g,"");return h(n?`${e==="/"?"":e}/${n}`:e)}function _(e,t){return t==="directory"?e:$(e)}function M(e){const t=e.trim();return t?t.includes("/")||t.includes("\\")||t.includes("..")||t.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function B(e){const t=x(e);return t?t.split("/").filter(Boolean).length:0}function S(e,t,n,r=!1){return{files:[...new Set([...e,...n.files])],directories:[...new Set([...t,...n.directories??[]])],truncated:r||!!n.truncated}}function H(e,t){return B(e)>=F&&!t.has(e)}function q(e,t,n=[]){const r=x(e);if(t.includes(r)||n.includes(r))return!0;if(!r)return!1;const s=`${r}/`;return t.some(o=>o.startsWith(s))||n.some(o=>o.startsWith(s))}function U(e){const t=x(e),n=".deco/blocks/";if(!t.startsWith(n)||!t.endsWith(".json"))return null;const r=t.slice(n.length,-5);return C(r)}function A(e){if(!e)return"plaintext";const t=e.toLowerCase();return t.endsWith(".tsx")||t.endsWith(".ts")?"typescript":t.endsWith(".jsx")||t.endsWith(".js")||t.endsWith(".mjs")||t.endsWith(".cjs")?"javascript":t.endsWith(".json")?"json":t.endsWith(".md")||t.endsWith(".mdx")?"markdown":t.endsWith(".css")?"css":t.endsWith(".scss")?"scss":t.endsWith(".html")?"html":t.endsWith(".yaml")||t.endsWith(".yml")?"yaml":t.endsWith(".xml")||t.endsWith(".svg")?"xml":t.endsWith(".py")?"python":t.endsWith(".sql")?"sql":t.endsWith(".sh")?"shell":"plaintext"}const T="#94a3b8";function X(e){const t=e.toLowerCase();return t.endsWith(".tsx")||t.endsWith(".ts")?{Icon:W,color:"#3b82f6"}:t.endsWith(".jsx")||t.endsWith(".js")||t.endsWith(".mjs")||t.endsWith(".cjs")?{Icon:W,color:"#d9a441"}:t.endsWith(".json")?{Icon:E,color:"#cb9b3f"}:t.endsWith(".css")||t.endsWith(".scss")?{Icon:W,color:"#06b6d4"}:t.endsWith(".html")||t.endsWith(".xml")?{Icon:W,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(t)?{Icon:j,color:"#a855f7"}:t.endsWith(".md")||t.endsWith(".mdx")?{Icon:k,color:"#64748b"}:{Icon:k,color:T}}function K(e){const t=y(e).split("/").filter(Boolean),n=["/"];let r="";for(const s of t.slice(0,-1))r+=`/${s}`,n.push(r);return n}function V(e,t=[]){const n={path:"/",children:[]},r=new Map,s=a=>{let i=r.get(a.path);return i||(i=new Map,r.set(a.path,i)),i},o=a=>{const c=y(a).split("/").filter(Boolean);let l=n,m="";for(const f of c){m+=`/${f}`;const g=s(l);let d=g.get(f);d?d.kind==="file"&&(d.kind="directory"):(d={name:f,path:m,kind:"directory",children:[]},l.children.push(d),g.set(f,d)),l=d}};for(const a of e){const c=y(a).split("/").filter(Boolean);let l=n,m="";c.forEach((f,g)=>{m+=`/${f}`;const d=g===c.length-1,b=s(l);let p=b.get(f);p||(p={name:f,path:m,kind:d?"file":"directory",children:[]},l.children.push(p),b.set(f,p)),l=p})}for(const a of t)o(h(a));const u=a=>{a.sort((i,c)=>i.kind!==c.kind?i.kind==="directory"?-1:1:i.name.localeCompare(c.name));for(const i of a)i.children.length>0&&u(i.children)};return u(n.children),n.children}function N(e,t,n=0){const r=[];for(const s of e)if(s.name!==".gitkeep"&&(r.push({node:s,depth:n}),s.kind==="directory"&&s.children.length>0&&t.has(s.path)))for(const o of N(s.children,t,n+1))r.push(o);return r}function J(e){const t=[];for(const n of e.split(`
|
|
2
2
|
`)){if(!n)continue;const r=n.indexOf(":");if(r<0)continue;const s=n.indexOf(":",r+1);if(s<0)continue;const o=Number.parseInt(n.slice(r+1,s),10);Number.isFinite(o)&&t.push({path:h(n.slice(0,r)),line:o,text:n.slice(s+1)})}return t}function Q(e,t,n){const r=t.trim().toLowerCase();if(!r)return[];const s=[];for(const o of e)if((o.split("/").pop()??o).toLowerCase().includes(r)&&(s.push(h(o)),s.length>=n))break;return s}const w=24;function Y(e,t){const n=e.replace(/^\s+/,""),r=t.trim().toLowerCase();if(!r)return{leadingEllipsis:!1,segments:[{text:n,match:!1}]};const s=n.toLowerCase().indexOf(r);if(s<0)return{leadingEllipsis:!1,segments:[{text:n,match:!1}]};const o=s>w,u=o?n.slice(s-w):n,a=u.toLowerCase(),i=[];let c=0;for(;;){const l=a.indexOf(r,c);if(l<0){c<u.length&&i.push({text:u.slice(c),match:!1});break}l>c&&i.push({text:u.slice(c,l),match:!1}),i.push({text:u.slice(l,l+r.length),match:!0}),c=l+r.length}return{leadingEllipsis:o,segments:i}}function Z(e){const t=[],n=new Map;for(const r of e){let s=n.get(r.path);s||(s={path:r.path,matches:[]},n.set(r.path,s),t.push(s)),s.matches.push(r)}return t}function tt(e){return e.split(`
|
|
3
3
|
`).map(t=>t.replace(/^\d+\t/,"")).join(`
|
|
4
4
|
`)}export{F as E,G as a,L as b,v as c,C as d,V as e,N as f,A as g,Z as h,z as i,_ as j,h as k,X as l,$ as m,K as n,Y as o,H as p,D as q,q as r,tt as s,x as t,Q as u,M as v,J as w,U as x,S as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as K,b as X,r as Z,j as n,l as rt,B as tt,au as ut}from"./index-CmhfcT17.js";import{D as ht,a2 as at,G as xt}from"./agent-icon-DEc9IKAh.js";import{L as gt}from"./label-BIjDuic6.js";import{S as lt}from"./scroll-area-CyRrjPr-.js";import{S as bt}from"./switch-C8MNBXcu.js";import{T as vt,c as yt,a as jt}from"./tooltip-4UW874b4.js";import{V as Tt}from"./view-mode-toggle-C2xIjQMc.js";import{aC as ct,aD as mt,aE as Nt,aF as _t,aG as kt,aH as U,aI as wt}from"./content-tab-Dbn7dHL_.js";import"./AlertCircle-BYpi54SP.js";import"./Tool01-DSx5JxKN.js";import"./ArrowUp-Dm1tTcjd.js";import"./ArrowLeft-B3Mf4oiE.js";import"./LinkBroken01-Dt2Tn6rT.js";import"./ShoppingBag01-DPhSrshS.js";import"./ZoomOut-BfTCLHO9.js";import"./Building02-BHmYKmWU.js";import"./CheckCircle-4P58PW4U.js";import"./ChevronUp-DVssCggl.js";import"./ChevronSelectorVertical-Cojq1UR5.js";import"./UserSquare-pQAburWh.js";import"./Copy01-DBnXKsvD.js";import"./CreditCard01-Ku1gLnux.js";import"./DotsVertical-DUEyJX4K.js";import"./Image01-C9QzuJaK.js";import"./Globe04-BCy_UIpz.js";import"./SwitchHorizontal01-CZeYSoIE.js";import"./Key01-CV3Kr-e4.js";import"./Link01-CnwGlGLA.js";import"./Monitor01-CtZrNe_q.js";import"./Sun-Bhq3Un93.js";import"./Play-Bi58F4_E.js";import"./Plus-jTILaZAS.js";import"./SearchMd-DIriOluN.js";import"./Trash01-BcDxgAC3.js";import"./Upload01-DRNp2B9A.js";import"./User01-DmuhzlMa.js";import"./Users01-DXRV-L-2.js";import"./XClose-B3D-rkas.js";import"./index-BdQq_4o_.js";import"./index-DMVF6sM5.js";import"./use-organization-settings-DsiL1E35.js";import"./schema-BCaSsjn6.js";import"./task-board-BvUZ8lZX.js";import"./chat-context-Ek-8IxEX.js";import"./use-panel-navigate-DSEJRbyH.js";import"./thread-route-YTx0gXdE.js";import"./use-project-scope-DGWdW_3w.js";import"./repository-binding-DMbjGWw3.js";import"./use-mcp-client-Ck2YNhED.js";import"./auth-D_LAZR_h.js";import"./autosend-BrkIZMg2.js";import"./thread-intent-BxpIEOHD.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-zJ3qp_pj.js";import"./slugify-CEUa2lfQ.js";import"./use-decopilot-events-BFFoNVdS.js";import"./use-ai-providers-Bujn21Dz.js";import"./use-chat-navigation-PVB9XYCZ.js";import"./location-BjlyegC2.js";import"./alert-dialog-RwCjHRuJ.js";import"./site-editor-toast-CaZH_Uob.js";import"./input-C5uMiH8T.js";import"./usage-stats-DGAEuGyH.js";import"./tool-namespace-hcrPHByv.js";import"./form-C5lLpfxV.js";import"./utils-CVEq3hMx.js";import"./markdown-BCZ7Si7p.js";import"./use-copy-_JqQfoTc.js";import"./use-mobile-C_h5-Lrd.js";import"./format-time-CAj8AQXM.js";import"./differenceInSeconds-C3x8sHUj.js";import"./icon-button-BnCc2mV5.js";import"./file-type-icon-Cp93tNz3.js";import"./shell-layout-BdBSZR6C.js";import"./avatar-jtTGOflQ.js";import"./use-clock-tick-CCLGBtLn.js";import"./command-qX8D3Lb4.js";import"./index-o0uzmEcY.js";import"./integration-icon-DfWASVi0.js";import"./project-icon-3uE6pYf-.js";import"./new-project-dialog-MyUIikPS.js";import"./repository-import-picker-GIgpyQ8V.js";import"./use-navigate-to-agent-B5O37hfl.js";import"./repository-picker-CGWfbl3i.js";import"./useInfiniteQuery-CNEF6i6u.js";import"./infiniteQueryObserver-DPyz6bSI.js";import"./collection-search-B3CigRnD.js";import"./use-debounced-value-CvHHa5zM.js";import"./required-auth-layout-DgGjxHOD.js";import"./use-org-sso-CiSoCbsi.js";import"./chat-draft-CZGFUdc4.js";import"./select-D56vy0cS.js";import"./tabs-C0kKyybj.js";import"./use-deco-credits-iWDhmKz8.js";import"./toggle-group-BJNg7a6_.js";import"./use-open-billing-url-B_ppok7s.js";import"./index-DkW_Ruuk.js";import"./checkbox-BjVWCI8i.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-D2V0GZfj.js";import"./drawer-CI9x8oi9.js";import"./input-DC-8DfMd.js";import"./suggestion-rl-OY42q.js";import"./use-project-native-view-presence-CHwdqgjD.js";import"./use-file-configs-DN9_HbK7.js";import"./site-slug-DebpOoQq.js";import"./use-mcp-prompts-DG1X-Jua.js";import"./use-org-fs-BTgLNJoN.js";import"./question-004-sINsf4GQ.js";import"./use-members-B1T5bMJ8.js";import"./use-org-auth-client-CeU98DnY.js";import"./feature-paywall-CWg9LcNZ.js";import"./plan-ladder-DhN7mzVE.js";import"./add-connection-dialog-eAWC7UBo.js";import"./extract-connection-data-CbabpvQM.js";import"./metadata-D72DunRR.js";import"./connection-B23WvhUe.js";import"./url-slug-BOI9R_Hf.js";import"./connection-card-BBtu2Up1.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-BOwupY9k.js";import"./use-connection-Dwi0oczT.js";import"./schema-BrJvJRY5.js";import"./connection-form-helpers-DdClVTZn.js";import"./authenticate-and-persist-oauth-BNqERXi0.js";import"./mcp-oauth-DK0EZ7_R.js";import"./mcp-oauth-DPp6A0NQ.js";import"./collection-tabs-CoyfUlqO.js";import"./badge-BPJdS_zE.js";import"./use-infinite-scroll-CP5MaPJA.js";import"./useSuspenseInfiniteQuery-DQhsrGc-.js";import"./use-task-board-events-B7HlzAAo.js";import"./sandbox-url-D3mC8qhT.js";import"./utils-cJIltehY.js";import"./index-Bh2O5PEv.js";import"./pair-DC9cMyfj.js";import"./collapsible-CCU11SRh.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DECw4bL7.js";import"./types-scp_0M_s.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./sheet-CKDqk2Xi.js";import"./use-thread-outputs-DMthmyl4.js";import"./sandbox-git-api-CRxdlhrN.js";import"./blocks-tab-states-Lfh7PvBk.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./secret-ciphertext-CZ1toUgb.js";import"./alert-B48lGwya.js";import"./monaco-editor-BBw2sDH2.js";import"./editor-HwnFKTc1.js";import"./calendar-C3D37oJb.js";import"./editor-classes-10XEtqAC.js";import"./core.esm-DaFx0nps.js";import"./sortable.esm-wzYNtVNS.js";import"./combobox-CrQDuIN4.js";import"./search-input-CflNU9yi.js";import"./asset-utils-Bh07kRZG.js";import"./empty-state-Dd0b73U2.js";import"./mustache-Ca--Xhvx.js";import"./sandbox-lifecycle-context-BPryhCAI.js";import"./empty-state-BxgUQvsY.js";const Et=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),St=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Ct=new Date(-864e13),Mt=new Date(864e13),At=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,$t=/\/flags\/multivariate\.ts$/;function Dt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function Lt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e,o=typeof t=="string",s=typeof r=="string";if(!o&&!s)return null;const i=o?new Date(t):Ct,a=s?new Date(r):Mt;return Number.isNaN(i.getTime())||Number.isNaN(a.getTime())||o&&s&&a.getTime()<=i.getTime()?null:{start:i,end:a,openStart:!o,openEnd:!s}}function pt(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(Et.has(r)){const o=Lt(e);o&&t.push(o);return}if(St.has(r)){const o=e.matchers;if(Array.isArray(o))for(const s of o)pt(s,t)}}}function Rt(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!At.test(t))return!1;const r=e.variants;return Array.isArray(r)}function Ot(e){if(typeof e=="string"){const c=e.trim();if(c.length===0)return null;try{const m=new URL(c).pathname.split("/").filter(Boolean),p=m[m.length-1];if(p)return decodeURIComponent(p)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}if(!e||typeof e!="object")return null;const t=e,r=t.config,s=t.desktop?.media,i=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,s?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const c of i)if(typeof c=="string"&&c.trim().length>0)return c.trim();const a=t.__resolveType;if(typeof a=="string"){const l=(a.split("/").pop()??a).replace(/\.(tsx?|jsx?)$/i,"");if(l.length>0)return l}return null}function Pt(e){const t=[];for(let r=0;r<e.length;r++){const o=e[r];typeof o=="number"?t.length>0?t[t.length-1]+=`[${o}]`:t.push(`[${o}]`):t.push(o)}return t.join(" · ")}function Q(e,t,r,o,s){if(Rt(e)){const i=e.variants,a=e.__resolveType,c=$t.test(a)?"":Pt(o);i.forEach((l,m)=>{if(!l||typeof l!="object")return;const p=l,h=[];if(pt(p.rule,h),h.length===0)return;const g=Ot(p.value)??(c||r);for(const u of h)s.push({blockKey:t,blockLabel:r,innerPath:c,variantIndex:m,start:u.start,end:u.end,openStart:u.openStart,openEnd:u.openEnd,label:g,flagResolveType:a})});for(let l=0;l<i.length;l++){const m=i[l];m&&typeof m=="object"&&Q(m.value,t,r,[...o,"variants",l,"value"],s)}return}if(Array.isArray(e)){for(let i=0;i<e.length;i++)Q(e[i],t,r,[...o,i],s);return}if(e&&typeof e=="object")for(const[i,a]of Object.entries(e))i!=="__resolveType"&&Q(a,t,r,[...o,i],s)}function It(e){if(!e)return[];const t=[];for(const[r,o]of Object.entries(e))Q(o,r,Dt(r),[],t);return t.sort((r,o)=>r.start.getTime()-o.start.getTime())}function Vt(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((o,s)=>{const i=s*137.508%360;r.set(o,{bg:`oklch(0.62 0.14 ${i})`,text:"white",border:`oklch(0.50 0.14 ${i})`})}),r}const Ht={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function dt(e,t){return e.get(t)??Ht}const ot=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Bt(e,t){const r=e.openStart?t("sandbox.variantCalendar.always"):ot.format(e.start),o=e.openEnd?t("sandbox.variantCalendar.ongoing"):ot.format(e.end);return`${r} → ${o}`}function Ft(e){const t=K.c(18),{variant:r}=e,o=X();let s;t[0]!==r.blockLabel?(s=n.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=s):s=t[1];let i;t[2]!==r.innerPath?(i=r.innerPath&&n.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=i):i=t[3];let a;t[4]!==r.blockLabel||t[5]!==r.innerPath||t[6]!==r.label?(a=r.label!==r.blockLabel&&r.label!==r.innerPath&&n.jsx("div",{className:"text-muted-foreground",children:r.label}),t[4]=r.blockLabel,t[5]=r.innerPath,t[6]=r.label,t[7]=a):a=t[7];let c;t[8]!==o||t[9]!==r?(c=Bt(r,o),t[8]=o,t[9]=r,t[10]=c):c=t[10];let l;t[11]!==c?(l=n.jsx("div",{className:"mt-1",children:c}),t[11]=c,t[12]=l):l=t[12];let m;return t[13]!==s||t[14]!==i||t[15]!==a||t[16]!==l?(m=n.jsx(jt,{children:n.jsxs("div",{className:"text-xs",children:[s,i,a,l]})}),t[13]=s,t[14]=i,t[15]=a,t[16]=l,t[17]=m):m=t[17],m}const nt=16;function zt(e,t){const r=e?"transparent":"#000 0",o=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${r}, #000 ${nt}px, #000 calc(100% - ${nt}px), ${o})`}function ft(e){const t=K.c(26),{variant:r,color:o,style:s,children:i,fadeStart:a,fadeEnd:c}=e,l=a===void 0?!1:a,m=c===void 0?!1:c;let p;t[0]!==m||t[1]!==l?(p=zt(l,m),t[0]=m,t[1]=l,t[2]=p):p=t[2];const h=p;let f;t[3]!==l?(f=l&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=l,t[4]=f):f=t[4];let g;t[5]!==m?(g=m&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=m,t[6]=g):g=t[6];let u;t[7]!==h?(u=h&&{maskImage:h,WebkitMaskImage:h},t[7]=h,t[8]=u):u=t[8];let x;t[9]!==o.bg||t[10]!==o.text||t[11]!==s||t[12]!==f||t[13]!==g||t[14]!==u?(x={background:o.bg,color:o.text,borderRadius:4,...f,...g,...u,...s},t[9]=o.bg,t[10]=o.text,t[11]=s,t[12]=f,t[13]=g,t[14]=u,t[15]=x):x=t[15];let b;t[16]!==i?(b=n.jsx("span",{className:"truncate",children:i}),t[16]=i,t[17]=b):b=t[17];let E;t[18]!==x||t[19]!==b?(E=n.jsx(vt,{asChild:!0,children:n.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:x,children:b})}),t[18]=x,t[19]=b,t[20]=E):E=t[20];let T;t[21]!==r?(T=n.jsx(Ft,{variant:r}),t[21]=r,t[22]=T):T=t[22];let d;return t[23]!==T||t[24]!==E?(d=n.jsxs(yt,{children:[E,T]}),t[23]=T,t[24]=E,t[25]=d):d=t[25],d}function sn(e){const t=K.c(72),{decofile:r}=e,o=X(),[s,i]=Z.useState("calendar"),[a,c]=Z.useState(Kt),[l,m]=Z.useState(!1);let p,h,f;if(t[0]!==r||t[1]!==l){const I=It(r);p=I.filter(Ut).length,f=l?I:I.filter(Gt),h=Vt(f.map(Wt)),t[0]=r,t[1]=l,t[2]=p,t[3]=h,t[4]=f}else p=t[2],h=t[3],f=t[4];const g=h;let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=()=>c(mt(new Date)),t[5]=u):u=t[5];const x=u;let b;t[6]!==s?(b=()=>c(I=>s==="calendar"?U(I,-1):U(I,-3)),t[6]=s,t[7]=b):b=t[7];const E=b;let T;t[8]!==s?(T=()=>c(I=>s==="calendar"?U(I,1):U(I,3)),t[8]=s,t[9]=T):T=t[9];const d=T;let v;t[10]!==o?(v=o("sandbox.variantCalendar.today"),t[10]=o,t[11]=v):v=t[11];let y;t[12]!==v?(y=n.jsx(tt,{variant:"outline",size:"sm",onClick:x,children:v}),t[12]=v,t[13]=y):y=t[13];let N;t[14]!==o?(N=o("sandbox.variantCalendar.previous"),t[14]=o,t[15]=N):N=t[15];let A;t[16]===Symbol.for("react.memo_cache_sentinel")?(A=n.jsx(ht,{size:16}),t[16]=A):A=t[16];let _;t[17]!==E||t[18]!==N?(_=n.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:E,"aria-label":N,children:A}),t[17]=E,t[18]=N,t[19]=_):_=t[19];let k;t[20]!==o?(k=o("sandbox.variantCalendar.next"),t[20]=o,t[21]=k):k=t[21];let C;t[22]===Symbol.for("react.memo_cache_sentinel")?(C=n.jsx(ut,{size:16}),t[22]=C):C=t[22];let $;t[23]!==d||t[24]!==k?($=n.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:d,"aria-label":k,children:C}),t[23]=d,t[24]=k,t[25]=$):$=t[25];const D=ct[a.getMonth()];let M;t[26]!==a?(M=a.getFullYear(),t[26]=a,t[27]=M):M=t[27];let w;t[28]!==D||t[29]!==M?(w=n.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[D," ",M]}),t[28]=D,t[29]=M,t[30]=w):w=t[30];let j;t[31]!==$||t[32]!==w||t[33]!==y||t[34]!==_?(j=n.jsxs("div",{className:"flex items-center gap-2",children:[y,_,$,w]}),t[31]=$,t[32]=w,t[33]=y,t[34]=_,t[35]=j):j=t[35];let L;t[36]!==p||t[37]!==l||t[38]!==o?(L=p>0&&n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(bt,{id:"show-ongoing",checked:l,onCheckedChange:m}),n.jsx(gt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:o("sandbox.variantCalendar.showOngoing",{count:p})})]}),t[36]=p,t[37]=l,t[38]=o,t[39]=L):L=t[39];let B;t[40]===Symbol.for("react.memo_cache_sentinel")?(B=n.jsx(at,{}),t[40]=B):B=t[40];let V;t[41]!==o?(V=o("sandbox.variantCalendar.calendarMode"),t[41]=o,t[42]=V):V=t[42];let S;t[43]!==V?(S={value:"calendar",icon:B,label:V},t[43]=V,t[44]=S):S=t[44];let F;t[45]===Symbol.for("react.memo_cache_sentinel")?(F=n.jsx(xt,{}),t[45]=F):F=t[45];let R;t[46]!==o?(R=o("sandbox.variantCalendar.timelineMode"),t[46]=o,t[47]=R):R=t[47];let O;t[48]!==R?(O={value:"timeline",icon:F,label:R},t[48]=R,t[49]=O):O=t[49];let P;t[50]!==S||t[51]!==O?(P=[S,O],t[50]=S,t[51]=O,t[52]=P):P=t[52];let H;t[53]!==P||t[54]!==s?(H=n.jsx(Tt,{value:s,onValueChange:i,options:P}),t[53]=P,t[54]=s,t[55]=H):H=t[55];let z;t[56]!==L||t[57]!==H?(z=n.jsxs("div",{className:"flex items-center gap-4",children:[L,H]}),t[56]=L,t[57]=H,t[58]=z):z=t[58];let W;t[59]!==j||t[60]!==z?(W=n.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,z]}),t[59]=j,t[60]=z,t[61]=W):W=t[61];let G;t[62]!==g||t[63]!==a||t[64]!==p||t[65]!==l||t[66]!==f||t[67]!==s?(G=f.length===0?n.jsx(Yt,{hiddenOngoing:l?0:p}):s==="calendar"?n.jsx(Jt,{monthStart:a,variants:f,colorMap:g}):n.jsx(te,{monthStart:a,variants:f,colorMap:g}),t[62]=g,t[63]=a,t[64]=p,t[65]=l,t[66]=f,t[67]=s,t[68]=G):G=t[68];let q;return t[69]!==W||t[70]!==G?(q=n.jsxs("div",{className:"flex h-full w-full flex-col",children:[W,G]}),t[69]=W,t[70]=G,t[71]=q):q=t[71],q}function Wt(e){return e.blockKey}function Gt(e){return!e.openEnd}function Ut(e){return e.openEnd}function Kt(){return mt(new Date)}function Yt(e){const t=K.c(4),{hiddenOngoing:r}=e,o=r===void 0?0:r,s=X();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(at,{size:24,className:"text-muted-foreground/60"}),t[0]=i):i=t[0];let a;return t[1]!==o||t[2]!==s?(a=n.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[i,o>0?n.jsxs(n.Fragment,{children:[n.jsx("div",{children:s("sandbox.variantCalendar.noDatedVariants")}),n.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.hiddenOngoingVariants",{count:o})})]}):n.jsxs(n.Fragment,{children:[n.jsx("div",{children:s("sandbox.variantCalendar.noScheduledVariants")}),n.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.dateMatcherInfo")})]})]}),t[1]=o,t[2]=s,t[3]=a):a=t[3],a}const et=20,it=2,st=28,qt=6;function Jt(e){const t=K.c(17),{monthStart:r,variants:o,colorMap:s}=e;let i,a,c,l,m;if(t[0]!==s||t[1]!==r||t[2]!==o){const f=Nt(r),g=_t(new Date);i=lt,m="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:wt.map(Xt)}),t[8]=c):c=t[8],l=f.map((u,x)=>{const b=kt(u,o),E=b.reduce(Qt,0),T=st+E*(et+it)+8;return n.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[u.map((d,v)=>{const y=d.getMonth()===r.getMonth(),N=d.getTime()===g.getTime();return n.jsx("div",{className:rt("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:n.jsx("span",{className:rt("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:d.getDate()})},v)}),b.map((d,v)=>{const y=dt(s,d.variant.blockKey),N=st+d.lane*(et+it),A=d.leftUnits/7*100,_=d.widthUnits/7*100,k=d.variant.openStart&&x===0,C=d.variant.openEnd&&x===f.length-1;return n.jsxs(ft,{variant:d.variant,color:y,fadeStart:k,fadeEnd:C,style:{top:N,left:`calc(${A}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:qt,height:et},children:[d.variant.blockLabel,d.variant.label!==d.variant.blockLabel&&n.jsxs("span",{className:"opacity-70",children:[" · ",d.variant.label]})]},`${x}-${v}`)})]},x)}),t[0]=s,t[1]=r,t[2]=o,t[3]=i,t[4]=a,t[5]=c,t[6]=l,t[7]=m}else i=t[3],a=t[4],c=t[5],l=t[6],m=t[7];let p;t[9]!==a||t[10]!==c||t[11]!==l?(p=n.jsxs("div",{className:a,children:[c,l]}),t[9]=a,t[10]=c,t[11]=l,t[12]=p):p=t[12];let h;return t[13]!==i||t[14]!==m||t[15]!==p?(h=n.jsx(i,{className:m,children:p}),t[13]=i,t[14]=m,t[15]=p,t[16]=h):h=t[16],h}function Qt(e,t){return Math.max(e,t.lane+1)}function Xt(e){return n.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const J=4,Zt=32,Y=240;function te(e){const t=K.c(23),{monthStart:r,variants:o,colorMap:s}=e,i=r,a=U(r,J),c=new Date,l=new Map;for(const w of o){const j=l.get(w.blockKey)??[];j.push(w),l.set(w.blockKey,j)}const m=Array.from(l.entries()).sort(oe),p=a.getTime()-i.getTime(),h=w=>(Math.max(i.getTime(),Math.min(a.getTime(),w.getTime()))-i.getTime())/p*100;let f;t[0]!==i?(f=(w,j)=>U(i,j),t[0]=i,t[1]=f):f=t[1];const g=Array.from({length:J},f),u=c.getTime()>=i.getTime()&&c.getTime()<=a.getTime()?h(c):null,x=X(),b=lt,E="flex-1 min-h-0",T="min-w-[900px] relative";let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d={width:Y},t[2]=d):d=t[2];let v;t[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),t[3]=x,t[4]=v):v=t[4];let y;t[5]!==v?(y=n.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:d,children:v}),t[5]=v,t[6]=y):y=t[6];let N;t[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},t[7]=N):N=t[7];const A=g.map(re);let _;t[8]!==A?(_=n.jsx("div",{className:"flex-1 grid",style:N,children:A}),t[8]=A,t[9]=_):_=t[9];let k;t[10]!==y||t[11]!==_?(k=n.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),t[10]=y,t[11]=_,t[12]=k):k=t[12];let C;t[13]!==x||t[14]!==u?(C=u!==null&&n.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${Y}px + (100% - ${Y}px) * ${u} / 100)`},children:n.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),t[13]=x,t[14]=u,t[15]=C):C=t[15];const $=m.map(w=>{const[j,L]=w,B=dt(s,j),V=L[0]?.blockLabel??j;return n.jsxs("div",{children:[n.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:n.jsx("div",{className:"px-3 truncate",style:{width:Y},children:V})}),L.map((S,F)=>n.jsxs("div",{className:"flex border-b items-center",style:{height:Zt},children:[n.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[n.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:B.bg}}),n.jsx("span",{className:"truncate text-foreground/80",children:S.label})]}),n.jsxs("div",{className:"relative flex-1 h-full",children:[n.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},children:g.map(ee)}),(()=>{const R=Math.max(S.start.getTime(),i.getTime()),O=Math.min(S.end.getTime(),a.getTime());if(O<=R)return null;const P=h(new Date(R)),H=h(new Date(O))-P;return n.jsx(ft,{variant:S,color:B,fadeStart:S.openStart,fadeEnd:S.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${P}%`,width:`calc(${H}% - 2px)`,height:22},children:S.label})})()]})]},F))]},j)});let D;t[16]!==k||t[17]!==C||t[18]!==$?(D=n.jsxs("div",{className:T,children:[k,C,$]}),t[16]=k,t[17]=C,t[18]=$,t[19]=D):D=t[19];let M;return t[20]!==b||t[21]!==D?(M=n.jsx(b,{className:E,children:D}),t[20]=b,t[21]=D,t[22]=M):M=t[22],M}function ee(e,t){return n.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function re(e,t){return n.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ct[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function oe(e,t){return e[0].localeCompare(t[0])}export{sn as VariantCalendar};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ai as x,ag as p}from"./secret-ciphertext-CZ1toUgb.js";const d="x-deco-matchers-override";function h({pageKey:t,prefix:n,variants:e,selectedIndex:r,decofile:a,meta:c}){if(!t||r<0||r>=e.length)return[];const o=[];for(let i=0;i<=r;i++){const u=e[i];if(!u)continue;const s=u.rule,l=i===r?"1":"0",m=(x(s,a,c)?p(s,a,c):null)??`${t}@${n}.${i}.rule`;o.push(`${m}=${l}`)}return o}function R(t,n,e,r){return!n.multivariate||n.variants.length<=1?[]:h({pageKey:t,prefix:"sections.variants",variants:n.variants,selectedIndex:n.index,decofile:e,meta:r})}function b({pageKey:t,page:n,sectionIndex:e,sectionLazy:r,mvObj:a,selectedVariantIndex:c,decofile:o,meta:i}){if(e<0)return[];const s=`${n.multivariate?`sections.variants.${n.index}.value`:"sections"}.${e}${r?".section":""}.variants`,l=Array.isArray(a.variants)?a.variants:[];return h({pageKey:t,prefix:s,variants:l,selectedIndex:c,decofile:o,meta:i})}function A(t,n){const e=`${n}@`;return t.map(r=>r.startsWith(e)?`props.${r.slice(e.length)}`:r)}function _(t,n){if(n.length===0)return t;try{const e=new URL(t,"http://local");e.searchParams.delete(d);for(const r of n)e.searchParams.append(d,r);return t.startsWith("http")?e.toString():`${e.pathname}${e.search}${e.hash}`}catch{return t}}const f="__variant=";function v(t,n,e){return`${t}@${n}=${e}`}function O(t,n){return!t||!n.multivariate||n.variants.length<=1?[]:n.index<0||n.index>=n.variants.length?[]:[v(t,"sections",n.index)]}function S(t){const n=Array.isArray(t.mvObj.variants)?t.mvObj.variants:[];if(!t.pageKey||t.sectionIndex<0)return[];if(t.selectedVariantIndex<0||t.selectedVariantIndex>=n.length)return[];const r=`${t.page.multivariate?`sections.variants.${t.page.index}.value`:"sections"}.${t.sectionIndex}${t.sectionLazy?".section":""}`;return[v(t.pageKey,r,t.selectedVariantIndex)]}function V(t){return encodeURIComponent(t).replace(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`)}function $(t,n){const e=t.lastIndexOf("@");if(e<=0)return t;const r=t.slice(0,e),a=r.indexOf("?"),c=a===-1?r:r.slice(0,a),i=[...a===-1?[]:r.slice(a+1).split("&").filter(s=>s&&!s.startsWith(f)),...n.map(s=>f+V(s))],u=i.length>0?`?${i.join("&")}`:"";return`${c}${u}${t.slice(e)}`}function I(t,n){if(n.length===0)return null;try{const e=new URL(t),r=e.hostname==="[::1]"?`localhost${e.port?`:${e.port}`:""}`:e.host;return $(`${r}${e.pathname}@local`,n)}catch{return null}}function w(t,n){if(n.length===0)return t;try{const e=new URL(t),r=e.searchParams.get("__draft");return!r||r==="off"?t:(e.searchParams.set("__draft",$(r,n)),e.toString())}catch{return t}}export{w as a,I as b,O as c,R as d,S as e,b as f,A as i,_ as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as $,r as T,l as f,j as i}from"./index-
|
|
1
|
+
import{c as $,r as T,l as f,j as i}from"./index-CmhfcT17.js";import{c as k,T as I,a as P}from"./tooltip-4UW874b4.js";const M={sm:{button:"size-7",buttonWithLabel:"h-7",icon:"size-4"},md:{button:"size-9",buttonWithLabel:"h-9",icon:"size-5"},lg:{button:"size-12",buttonWithLabel:"h-12",icon:"size-6"}};function B(E){const t=$.c(27),{value:s,onValueChange:y,options:l,size:C,fullWidth:L,className:z}=E,_=C===void 0?"sm":C,m=L===void 0?!1:L;let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],t[0]=h):h=t[0];const R=T.useRef(h);let x;t[1]===Symbol.for("react.memo_cache_sentinel")?(x={left:0,width:0,opacity:0},t[1]=x):x=t[1];const[d,S]=T.useState(x);let g,p;t[2]!==l||t[3]!==s?(g=()=>{const e=l.findIndex(j=>j.value===s),b=R.current[e];b&&S({left:b.offsetLeft,width:b.offsetWidth,opacity:1})},p=[s,l],t[2]=l,t[3]=s,t[4]=g,t[5]=p):(g=t[4],p=t[5]),T.useEffect(g,p);const o=M[_];let n;t[6]!==z?(n=f("relative flex gap-0 bg-muted rounded-full",z),t[6]=z,t[7]=n):n=t[7];let a;t[8]!==o||t[9]!==m||t[10]!==y||t[11]!==l||t[12]!==s?(a=l.map((e,b)=>{const j=i.jsxs("button",{ref:V=>{R.current[b]=V},type:"button",onClick:()=>y(e.value),"aria-label":e.label??e.tooltip,className:f("relative z-10 flex items-center justify-center gap-2 rounded-full transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",m?"flex-1 h-12 px-4":e.label?f(o.buttonWithLabel,"px-3"):o.button),children:[e.icon&&i.jsx("span",{className:f("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",o.icon,s===e.value?"text-foreground":"text-muted-foreground"),children:e.icon}),e.label&&i.jsx("span",{className:f("text-xs transition-colors ease-out duration-200 whitespace-nowrap",s===e.value?"text-foreground":"text-muted-foreground"),children:e.label})]},e.value);return e.tooltip?i.jsxs(k,{children:[i.jsx(I,{asChild:!0,children:j}),i.jsx(P,{side:"bottom",children:e.tooltip})]},e.value):j}),t[8]=o,t[9]=m,t[10]=y,t[11]=l,t[12]=s,t[13]=a):a=t[13];const w=m?"h-12":o.button;let r;t[14]!==w?(r=f("absolute z-0 bg-background rounded-full border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),t[14]=w,t[15]=r):r=t[15];const W=`${d.left}px`,N=`${d.width}px`;let c;t[16]!==d.opacity||t[17]!==W||t[18]!==N?(c={left:W,width:N,opacity:d.opacity},t[16]=d.opacity,t[17]=W,t[18]=N,t[19]=c):c=t[19];let u;t[20]!==r||t[21]!==c?(u=i.jsx("div",{className:r,style:c}),t[20]=r,t[21]=c,t[22]=u):u=t[22];let v;return t[23]!==u||t[24]!==n||t[25]!==a?(v=i.jsxs("div",{className:n,children:[a,u]}),t[23]=u,t[24]=n,t[25]=a,t[26]=v):v=t[26],v}export{B as V};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{U as I}from"./url-slug-BOI9R_Hf.js";import{aF as t,aG as e,aY as l,bW as a,bU as s,bV as o,d0 as c,cY as d,eg as A,d2 as R,cW as g}from"./index-CmhfcT17.js";const w=t({connection_id:e().describe("Connection ID"),selected_tools:a(e()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:a(e()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:a(e()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),b=500,v=200,k=200,_=20,U=50,E=100,P=20,T=100,C=300,N=100,V=8192,y=w.extend({selected_tools:a(e()).max(b).nullable().optional().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:a(e()).max(b).nullable().optional().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:a(e()).max(b).nullable().optional().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),D=t({connectionId:e(),toolName:e(),label:e(),icon:e().nullable().optional()}),O=t({id:e().describe("Stable id; used as React key and ?tab= value"),title:e().describe("Tab label"),icon:e().optional().describe("Optional lucide icon name"),view:t({type:c("ext-app"),appId:e(),args:d(e(),g()).optional()})}),S=o(["overview","reports","board","site-editor","assets","releases","hosting","e2e","analytics","cdn","automations","experiments"]),le=o(["on","off"]),L=new Map([["manual","on"],["auto","on"]]),X=o(["on","off","manual","auto"]);function F(n){if(!n)return null;const i=L.get(n);return i||(n==="on"||n==="off"?n:null)}const B=t({defaultMainView:t({type:e(),id:e().optional(),toolName:e().optional()}).nullable().optional(),chatDefaultOpen:s().nullable().optional(),cmsDefaultOpen:s().nullable().optional(),cms:X.nullable().optional().describe("How this agent offers content editing. Absent means on; the retired `manual` / `auto` read as on too."),sidebarViews:a(S).max(10).nullable().optional().describe("Deprecated layout-scoped sidebar selections. Read only as a fallback when metadata.sidebarViews is absent."),tabs:a(O).max(P).optional()});function re(n){return F(n?.cms)??"on"}function ce(n,i){const r=i==="off"&&n?.defaultMainView?.type==="content";return{...n,cms:i,cmsDefaultOpen:null,...r?{defaultMainView:{type:"site-editor"}}:{}}}const m=t({tileId:e().optional(),connectionId:e().optional().describe("Connection that owns the resource — the host opens a direct MCP client to this connection so the iframe can call tools by their bare names."),resourceUri:e().describe("ui:// resource URI exposed by `connectionId`. Read on the home page and rendered via MCPAppRenderer."),toolName:e().optional().describe("Tool name — identifies which tool's inputSchema to display when editing tile props."),toolInput:d(e(),g()).optional().describe("User-configured input props passed to MCPAppRenderer when rendering the tile."),minHeight:l().int().positive().optional(),maxHeight:l().int().positive().optional()}),H=t({banner:e().nullable().optional(),bannerColor:e().nullable().optional(),icon:e().nullable().optional(),themeColor:e().nullable().optional(),pinnedViews:a(D).max(E).nullable().optional(),layout:B.nullable().optional(),homeTile:m.nullable().optional(),homeTiles:a(m).max(_).nullable().optional(),homePrompts:a(e()).max(U).nullable().optional()}),j=/^[A-Za-z_][A-Za-z0-9_]*$/,f=e().min(1).regex(j,{message:"Env var key must start with a letter or underscore and contain only letters, digits, and underscores."}),z=R("kind",[t({key:f,kind:c("literal"),value:e().max(V)}),t({key:f,kind:c("secret"),secretId:e().min(1)})]),q=t({selected:e().nullable().optional().describe("User-selected package manager (npm | pnpm | yarn | bun | deno). Null/absent means autodetect on next SANDBOX_START."),port:e().nullable().optional().describe("User-selected dev server port as a string (allows '' / null for unset). Null/absent means autodetect."),path:e().nullable().optional().describe("Optional path (relative to repo root) to the directory containing package.json. Null/absent means repo root. Forwarded as `application.packageManager.path` to the daemon config."),env:a(z).max(N).nullable().optional().describe("Env vars injected on every SANDBOX_START. Literal entries inline their value; secret entries store a secretId that Studio resolves via the credential vault before posting /_sandbox/config.")}),K=t({url:e().describe("Repository URL, including its provider host"),owner:e().describe("Repository owner"),name:e().describe("Repository name"),installationId:l().optional().describe("GitHub App installation ID. Absent when the repo was linked without a GitHub connection (public-clone mode)."),connectionId:e().optional().describe("ID of the mcp-github connection used for authentication. Absent for public repos cloned without credentials."),repositoryId:e().optional().describe("First-class repository (REPOSITORY_LINK) backing this binding. When set, credentials come from the repository's git provider account rather than connectionId.")}),G=o(["agent-sandbox","local-api"]),W={sandboxHandle:e().describe("Provider-specific handle"),previewUrl:e().nullable().describe("URL where the sandbox's iframe-proxied UI is served, or null when the sandbox has no dev server (blank / tool sandboxes)."),sandboxApiUrl:e().nullable().optional().describe("Direct sandbox API URL for runtimes that expose one. Equal to previewUrl for local-api; null/absent for AgentSandbox, which routes control traffic through hosted Studio."),createdAt:l().optional().describe("Epoch ms the entry was first written by SANDBOX_START. Used by the booting overlay to show a stable elapsed timer that survives browser reloads. Optional for backward compatibility with entries written before this field existed."),startedWith:t({packageManager:e().nullable().optional().describe("metadata.runtime.selected at the time of SANDBOX_START"),port:e().nullable().optional().describe("metadata.runtime.port at the time of SANDBOX_START"),path:e().nullable().optional().describe("metadata.runtime.path at the time of SANDBOX_START")}).optional().describe("Snapshot of metadata.runtime fields (selected/port/path) used at SANDBOX_START. The Preview tab compares the live metadata.runtime against this to decide if a restart is required to apply changes.")},x=t(W);function de(n){if(!n||typeof n!="object"||Array.isArray(n))return{};const i=n,r={};for(const[p,u]of Object.entries(i))if(!(!u||typeof u!="object")&&!(p!=="agent-sandbox"&&p!=="local-api"))try{r[p]=x.parse(u)}catch{}return r}const Y=d(e().describe("userId"),d(e().describe("branch"),A(G,x))),Z=t({id:e().describe("Stable identifier for this knowledge file"),name:e().describe("File name shown in the UI"),kind:o(["file","skill"]).optional().describe("'file' (a single document) or 'skill' (a Claude Code skill folder containing SKILL.md). Defaults to 'file'."),volume:e().describe("Org filesystem (Library) volume the file lives in"),path:e().describe("Path within the volume"),url:e().describe("Same-origin URL to read the file (display/download)"),contentType:e().nullable().optional().describe("MIME type, used to decide whether to inline the content"),size:l().nullable().optional().describe("File size in bytes"),addedAt:e().describe("ISO timestamp when the file was attached")}),$=a(Z).max(T).nullable().optional().describe("Files attached to the agent as reference knowledge. Surfaced in the system prompt: small text documents are inlined, others are listed as retrievable references."),J=o(["smart","code-review","open"]),Q=J.nullable().optional().describe("Controls when this code agent's changes may be published directly vs. requiring PR review. 'smart' (default) uses AI to judge per change; 'code-review' requires review for any code; 'open' allows direct publish always."),ee=s().nullable().optional().describe("Enable Fast Preview (sandbox-less): render the draft instantly on the preview server's own page via a ?__draft pointer, with reads/writes served by the decofile API against GitHub. Requires previewServerUrl (or legacy productionUrl) to be set to take effect."),te=s().nullable().optional().describe("EXPERIMENTAL: with Fast Preview on, refresh content edits via an in-place /live/previews render (no commit, no reload) instead of a commit + re-navigation. Deco-runtime preview targets only. Requires fastPreview."),ae=e().nullable().optional().describe("Preview server URL — the deployment the CMS preview renders against (often the live site, e.g. https://acme.com). Painted in the preview iframe, and the render target for Fast Preview drafts. Supersedes the legacy productionUrl key."),ne=t({branch:e().describe("Git branch backing this release"),name:e().describe('User-facing name, e.g. "Black Friday 2026"'),color:e().describe("Dot color token shown in the version switcher"),createdBy:e().optional().describe("User ID who created the release"),createdAt:e().optional().describe("ISO 8601 creation timestamp")}),ie=a(ne).max(C).nullable().optional().describe("Curated list of named, branch-backed releases shown in the version switcher. The base branch ('No ar') is derived, not stored here."),h={instructions:e().nullable().optional().describe("Instructions also used as system prompt"),subAgents:a(e()).max(k).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:e().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:H.nullable().optional().describe("UI customization settings"),sidebarViews:a(S).max(10).nullable().optional().describe("Project views selected for the sidebar. Interpret as an exact list when sidebarViewsVersion is 1; unversioned values use legacy native-only semantics. Runtime presence gates still apply."),sidebarViewsVersion:c(1).optional().describe("Version 1 marks metadata.sidebarViews as an exact list that can disable legacy default rows."),repository:K.nullable().optional().describe("Linked repository"),runtime:q.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),knowledge:$,siteSlug:e().nullable().optional().describe("The project's site id (asset tenancy, CDN paths, site tokens). Set once when the site is created or imported; any write that would change it is refused."),publishPolicy:Q,previewServerUrl:ae,productionUrl:e().nullable().optional().describe("Legacy key for previewServerUrl — still read as a fallback. New writes use previewServerUrl."),fieldDescriptionTooltips:s().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:ee,releases:ie,fastPreviewInPlace:te},pe=t({id:e().describe("Unique identifier"),title:e().describe("Human-readable name"),url_slug:e().nullable().optional().describe("Name of the project in Studio URLs, unique in the organization"),description:e().nullable().describe("Description"),icon:e().nullable().describe("Icon URL"),created_at:e().describe("Creation timestamp"),updated_at:e().describe("Last update timestamp"),created_by:e().describe("User ID who created this item"),updated_by:e().optional().describe("User ID who last updated this item"),organization_id:e().describe("Organization ID this item belongs to"),status:o(["active","inactive"]).describe("Current status"),pinned:s().describe("Whether this space is pinned to the sidebar"),metadata:t(h).extend({instructions:e().nullable().describe("Instructions also used as system prompt"),sandboxMap:Y.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }")}).loose().describe("Metadata"),connections:a(w).describe("Connections with their selected tools, resources, and prompts")}),M=t({title:e().min(1).max(120).describe("Short label shown on the chip"),description:e().max(280).optional().describe("One-line subtitle shown under the title"),text:e().min(1).max(4e3).describe("The message sent to the agent when the prompt is clicked")});t({title:e().min(1).max(255).describe("Name for the virtual MCP"),description:e().max(500).nullable().optional().describe("Optional description"),icon:e().nullish().describe("Optional icon URL"),status:o(["active","inactive"]).optional().default("active").describe("Initial status"),pinned:s().optional().default(!1).describe("Pin to sidebar"),metadata:t(h).loose().superRefine((n,i)=>{"sandboxMap"in n&&i.addIssue({code:"custom",path:["sandboxMap"],message:"sandboxMap is managed by the sandbox lifecycle"})}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:a(y).max(v).describe("Connections to include/exclude (can be empty for exclusion mode)"),prompts:a(M).max(20).optional().describe("Optional kickstart prompts to seed on the agent. Each becomes a clickable conversation starter (icebreaker) on the agent. Author them from the agent's role and the tools it will have so they're coherent and immediately useful.")});t({title:e().min(1).max(255).optional().describe("New name"),url_slug:I.nullish().describe("New URL slug. The old one keeps redirecting. Renaming does not change it. null keeps the current slug."),description:e().max(500).nullable().optional().describe("New description (null to clear)"),icon:e().nullish().describe("New icon URL"),status:o(["active","inactive"]).optional().describe("New status"),pinned:s().optional().describe("Pin/unpin from sidebar"),metadata:t(h).loose().superRefine((n,i)=>{"sandboxMap"in n&&i.addIssue({code:"custom",path:["sandboxMap"],message:"sandboxMap is managed by the sandbox lifecycle"})}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:a(y).max(v).optional().describe("New connections (replaces existing)"),prompts:a(M).max(20).optional().describe("Replace the agent's kickstart prompts with this full set. Omit to leave them unchanged; pass an empty array to remove all. Each becomes a clickable conversation starter (icebreaker).")});export{le as C,j as E,C as R,pe as V,de as p,re as r,ce as w};
|