decocms 4.509.0 → 4.509.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{ActiveShapeUtils-BXDRD_Kb.js → ActiveShapeUtils-DiW0_mPP.js} +1 -1
- package/dist/client/assets/{AlertCircle-DahXyAVP.js → AlertCircle-B_HiUL3V.js} +1 -1
- package/dist/client/assets/{AreaChart-Ck3zIQtR.js → AreaChart-DVIHlYx5.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DhEv8Brb.js → ArrowLeft-CGlVoxui.js} +1 -1
- package/dist/client/assets/{ArrowUp-BtwUXzUq.js → ArrowUp-gZglv5wp.js} +1 -1
- package/dist/client/assets/{BarChart-DABQXmtk.js → BarChart-RAlZhcVu.js} +1 -1
- package/dist/client/assets/{Building02-BXXzFFFu.js → Building02-DMZnZO99.js} +1 -1
- package/dist/client/assets/{CategoricalChart-IWO4IrBB.js → CategoricalChart-D5pvUnb4.js} +1 -1
- package/dist/client/assets/{CheckCircle-DQWHbSdB.js → CheckCircle-DEEJUOvq.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-fr0U0iWC.js → ChevronSelectorVertical-butN_Pnw.js} +1 -1
- package/dist/client/assets/{ChevronUp-BDGWe90X.js → ChevronUp-Cb-JYgJS.js} +1 -1
- package/dist/client/assets/{Copy01--nUw7Bkt.js → Copy01-CRR-EuFi.js} +1 -1
- package/dist/client/assets/{CreditCard01-DucLeUqU.js → CreditCard01-B1XIHK7B.js} +1 -1
- package/dist/client/assets/{DotsVertical-CbSs5p_8.js → DotsVertical-D1bAYhly.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-WH7XJfon.js → ErrorBarContext-37xA6mJ_.js} +1 -1
- package/dist/client/assets/{Globe04-D97qZmfR.js → Globe04-DSOOTZNm.js} +1 -1
- package/dist/client/assets/{Image01-CnYFBoF2.js → Image01-DCu3b5kU.js} +1 -1
- package/dist/client/assets/{Key01-De3w1Z8c.js → Key01-BWZX0ddW.js} +1 -1
- package/dist/client/assets/{Link01-D8741jKt.js → Link01-DyUd5OlZ.js} +1 -1
- package/dist/client/assets/{LinkBroken01-Td7XUgIR.js → LinkBroken01-CXNh4eyP.js} +1 -1
- package/dist/client/assets/{Monitor01-iXRq_BRo.js → Monitor01-BakIeQUF.js} +1 -1
- package/dist/client/assets/{Play-D33JURoh.js → Play-Cow0cNbD.js} +1 -1
- package/dist/client/assets/{Plus-DGYbX9gS.js → Plus-BymkC_GC.js} +1 -1
- package/dist/client/assets/{SearchMd-COO_vo_G.js → SearchMd-O4PYnwLm.js} +1 -1
- package/dist/client/assets/{Sector-DyJZXvkl.js → Sector-DWIGj-50.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-77wosjDB.js → ShoppingBag01-BZRikaTk.js} +1 -1
- package/dist/client/assets/{Sun-DeoRX0vn.js → Sun-DrrCSWyx.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BkM0p0t8.js → SwitchHorizontal01-QJ8HpWxv.js} +1 -1
- package/dist/client/assets/{Tool01-DDJCqOS5.js → Tool01-C_CKkVec.js} +1 -1
- package/dist/client/assets/{Trash01-mIeseU4c.js → Trash01-CyUDLdm2.js} +1 -1
- package/dist/client/assets/{Upload01-Qu0NG2Hb.js → Upload01-DndYeCIj.js} +1 -1
- package/dist/client/assets/{User01-CaKkJjqE.js → User01-Bk3qtSGw.js} +1 -1
- package/dist/client/assets/{UserSquare-BnEG1vAj.js → UserSquare-BSP-qc9x.js} +1 -1
- package/dist/client/assets/{Users01-D_oPvcgd.js → Users01-CTggT7zQ.js} +1 -1
- package/dist/client/assets/{XAxis-dPLaQ_s-.js → XAxis-D1MK0252.js} +1 -1
- package/dist/client/assets/{XClose-Cwc6SpBI.js → XClose-D3hBIxOe.js} +1 -1
- package/dist/client/assets/{ZoomOut-D9qcy1LI.js → ZoomOut-Dg3QgYnY.js} +1 -1
- package/dist/client/assets/{access-gate-CPPlMbo5.js → access-gate-CwefArvr.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DRWjeuc5.js → add-connection-dialog-m56a3mnH.js} +1 -1
- package/dist/client/assets/{agent-analytics-Nb0HrH5Z.js → agent-analytics-Db8TFrYP.js} +1 -1
- package/dist/client/assets/agent-app--XQ7yxAe.js +1 -0
- package/dist/client/assets/{agent-assets-C6w2i-hY.js → agent-assets-WlJij-ig.js} +1 -1
- package/dist/client/assets/{agent-automation-bHzv4XqG.js → agent-automation-DMFv2amS.js} +1 -1
- package/dist/client/assets/{agent-automations-D9UDzD1A.js → agent-automations-BJuifIPT.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-D7aP2elw.js → agent-connect-sources-PhME43D1.js} +1 -1
- package/dist/client/assets/agent-deck-CPju1YjA.js +1 -0
- package/dist/client/assets/{agent-e2e-DtqeqzHL.js → agent-e2e-IjTbnMuW.js} +1 -1
- package/dist/client/assets/{agent-experiments-BR5nrOOp.js → agent-experiments-ytOilEGx.js} +1 -1
- package/dist/client/assets/{agent-file-_7o0XBSa.js → agent-file-DZpK6ASx.js} +1 -1
- package/dist/client/assets/{agent-hosting-0ei8QAsk.js → agent-hosting-CMw8ghEQ.js} +1 -1
- package/dist/client/assets/{agent-icon-BoeBuKNE.js → agent-icon-BBR2iDYh.js} +1 -1
- package/dist/client/assets/agent-library-00tKaXxe.js +1 -0
- package/dist/client/assets/agent-library-file-DMDab69U.js +1 -0
- package/dist/client/assets/{agent-monitor-BuJjWZ4Q.js → agent-monitor-CNzYwzZv.js} +1 -1
- package/dist/client/assets/{agent-overview-Cv7ZnB3O.js → agent-overview-BwNhS-78.js} +1 -1
- package/dist/client/assets/{agent-releases-D7f8eR_p.js → agent-releases-BnMtShKH.js} +1 -1
- package/dist/client/assets/agent-settings-BssEI35S.js +1 -0
- package/dist/client/assets/{agent-site-editor-CM-uyUVN.js → agent-site-editor-DdqMOZ74.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-CysRsVKl.js +2 -0
- package/dist/client/assets/agent-site-editor-content-BDP9pOnW.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-DcLutf0Z.js +1 -0
- package/dist/client/assets/agent-view-9BfAaky_.js +1 -0
- package/dist/client/assets/{agent-view-guard-mT_xWeY_.js → agent-view-guard-B9q4njeN.js} +1 -1
- package/dist/client/assets/{agents-list-CWC6MInt.js → agents-list-Cn16uYPx.js} +1 -1
- package/dist/client/assets/{ai-providers-C19LEVID.js → ai-providers-BQy_O3GP.js} +1 -1
- package/dist/client/assets/{alert-CDan7S6Z.js → alert-DrUtYDkJ.js} +1 -1
- package/dist/client/assets/{alert-dialog-DYJD4QnY.js → alert-dialog-CsMnazlX.js} +1 -1
- package/dist/client/assets/{analytics-sections-BfRzRbCg.js → analytics-sections-CfsaP32W.js} +1 -1
- package/dist/client/assets/api-keys-BCiaHfJA.js +1 -0
- package/dist/client/assets/{api-keys-D2UISU63.js → api-keys-BprNuZz2.js} +1 -1
- package/dist/client/assets/{app-editor-DIZmBZpP.js → app-editor-Dc3XTSht.js} +1 -1
- package/dist/client/assets/{asset-utils-DS09SEqB.js → asset-utils-fB0ipt1O.js} +1 -1
- package/dist/client/assets/{auth-BmkbjTIT.js → auth-BLd_oaZA.js} +1 -1
- package/dist/client/assets/{auth-catchall-Bzvb9awD.js → auth-catchall-CL_pk-to.js} +1 -1
- package/dist/client/assets/{auth-entry-BwdGUEFH.js → auth-entry-C_nh3VE5.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DAgFhymt.js → auth-split-layout-CVjJMSaz.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Ze4JtB7Z.js → authenticate-and-persist-oauth-BHPSufEQ.js} +1 -1
- package/dist/client/assets/{automation-list-row-Bg4MdgHM.js → automation-list-row-CK3Td7-_.js} +1 -1
- package/dist/client/assets/{automation-runs-svq9BzA3.js → automation-runs-CqfPM2gn.js} +1 -1
- package/dist/client/assets/{automations-jZo-B4sp.js → automations-BFr_umFL.js} +1 -1
- package/dist/client/assets/{autosend-CnbTsArw.js → autosend-CMH8Nd3q.js} +1 -1
- package/dist/client/assets/{avatar-Dmj5HWBE.js → avatar-DaqDyQT2.js} +1 -1
- package/dist/client/assets/{badge-immHUAWH.js → badge-Cs8ttYS4.js} +1 -1
- package/dist/client/assets/{block-document-D6gKano6.js → block-document-SMDTJId-.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-Cezj7GYR.js → blocks-preview-workspace-context-BqrfTf1v.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-DCHA2WOp.js → blocks-tab-states-MymqMfo8.js} +3 -3
- package/dist/client/assets/{blog-schema-BIiCcoze.js → blog-schema-BOKkm5h2.js} +1 -1
- package/dist/client/assets/{board-analytics-B8p782R5.js → board-analytics-1IHYJ_OM.js} +1 -1
- package/dist/client/assets/{buckets-BI0ldLX0.js → buckets-DJOlYK3e.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BoaUmUhj.js → build-improve-prompt-doc-IMnqNYLL.js} +1 -1
- package/dist/client/assets/{calendar-CRF7p67d.js → calendar-B734mlre.js} +1 -1
- package/dist/client/assets/{capability-load-error-DO7kCx-s.js → capability-load-error-h2aqxH-J.js} +1 -1
- package/dist/client/assets/{category-editor-C6bBb5Vn.js → category-editor-B2alT0tp.js} +1 -1
- package/dist/client/assets/{chart-K4c5R1FG.js → chart-QJBBiY0u.js} +1 -1
- package/dist/client/assets/{chat-context-rrAFSxTj.js → chat-context-CsSueqYK.js} +1 -1
- package/dist/client/assets/{chat-draft-Bwa3MWgo.js → chat-draft-5aNYHG8g.js} +1 -1
- package/dist/client/assets/{checkbox-uF4YjfhT.js → checkbox-D1RvSoCC.js} +1 -1
- package/dist/client/assets/{choose-editor-DYw4ub5x.js → choose-editor-CyEQ8Q-S.js} +1 -1
- package/dist/client/assets/{cli-auth-success-V1WPEpuO.js → cli-auth-success-BCsO4A9r.js} +1 -1
- package/dist/client/assets/{client-icons-DNIlaWXl.js → client-icons-BaP-T1v6.js} +1 -1
- package/dist/client/assets/cms-settings-editor-inOq0gRk.js +1 -0
- package/dist/client/assets/{collapsible--AfpE5go.js → collapsible-DmX-ngKI.js} +1 -1
- package/dist/client/assets/{collection-detail-9UHByug3.js → collection-detail-BZ0u6mlt.js} +1 -1
- package/dist/client/assets/{collection-display-button-LMAfjLFG.js → collection-display-button-C01k_lwT.js} +1 -1
- package/dist/client/assets/{collection-search-CPxmcakk.js → collection-search-DBI1dP1G.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-o2xqaLhj.js → collection-table-wrapper-H9NaWjzQ.js} +1 -1
- package/dist/client/assets/{collection-tabs-DegnmUnF.js → collection-tabs-DOWtwIA2.js} +1 -1
- package/dist/client/assets/{column-rules-CKnNbyhE.js → column-rules-zfwf7Mwg.js} +1 -1
- package/dist/client/assets/{combobox-BpeKD1mn.js → combobox-CZYl1SW8.js} +1 -1
- package/dist/client/assets/{command-Chzo6Cke.js → command-DHGvWDa5.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-Bddc-iNh.js → companion-mcps-section-C60JYhxi.js} +1 -1
- package/dist/client/assets/{config-CRQVbMEt.js → config-CTQocw0M.js} +1 -1
- package/dist/client/assets/{connect-D9lRnIuC.js → connect-DaLc511O.js} +1 -1
- package/dist/client/assets/{connect-layout-BVB4H_8u.js → connect-layout-D__87xSa.js} +1 -1
- package/dist/client/assets/{connection-DTZxpsQt.js → connection-CyGwGe0c.js} +1 -1
- package/dist/client/assets/{connection-card-0mJkScEF.js → connection-card-C5Hd83Lq.js} +1 -1
- package/dist/client/assets/{connection-detail-D7-yp5Ev.js → connection-detail-CiOsCWZG.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-i14UVHFH.js → connection-form-helpers-DWTE_E_W.js} +1 -1
- package/dist/client/assets/{connections-DdTsKfHq.js → connections-BGPU_XQO.js} +1 -1
- package/dist/client/assets/{content-tab-7vnFy3YT.js → content-tab-UEob6yi0.js} +3 -3
- package/dist/client/assets/{context-D6nhNoNB.js → context-BPz6yFBa.js} +1 -1
- package/dist/client/assets/{context-menu-4j4tHFq_.js → context-menu-BQv9Yg_3.js} +1 -1
- package/dist/client/assets/{core.esm-DRhkSXSs.js → core.esm-g5_mpFZB.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CYelX0XL.js → create-organization-dialog-B_arDF7k.js} +1 -1
- package/dist/client/assets/{daily-pulse-YX7XoVIO.js → daily-pulse-DBK9-DUX.js} +1 -1
- package/dist/client/assets/{discover-BEidOuNM.js → discover-BqXowkZh.js} +1 -1
- package/dist/client/assets/{domain-settings-CFX7bt8N.js → domain-settings-D0g7ONpv.js} +1 -1
- package/dist/client/assets/{drawer-E-YtUU5Z.js → drawer-CbCdchWH.js} +1 -1
- package/dist/client/assets/{editor-classes-yn_rxE9_.js → editor-classes-CbwoD1vF.js} +1 -1
- package/dist/client/assets/{editor-RC0haEQH.js → editor-sIXknvpq.js} +1 -1
- package/dist/client/assets/{empty-state-KyjcIuIc.js → empty-state-BCUme0Ms.js} +1 -1
- package/dist/client/assets/{empty-state-DuFAzlGV.js → empty-state-CPp6Z3BQ.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BTyrbYGa.js → extract-connection-data-B5vLAPIK.js} +1 -1
- package/dist/client/assets/{feature-gate-B_1YF4S7.js → feature-gate-DiP6HaTH.js} +1 -1
- package/dist/client/assets/{feature-paywall-Dt-F60U6.js → feature-paywall-DAnZt43s.js} +1 -1
- package/dist/client/assets/{file-explorer-DncbYvHY.js → file-explorer-J-Ren9bv.js} +1 -1
- package/dist/client/assets/{file-preview-C4f2If4C.js → file-preview-Ci3jlzfL.js} +1 -1
- package/dist/client/assets/{file-share-button-BfwFwrIq.js → file-share-button-DbVp0fLm.js} +1 -1
- package/dist/client/assets/{file-type-icon-BLPYW-jR.js → file-type-icon-FwTaRFNS.js} +1 -1
- package/dist/client/assets/flat-project-DvxdpIWe.js +1 -0
- package/dist/client/assets/{folder-icon-Owh7PMLU.js → folder-icon-C0blADE0.js} +1 -1
- package/dist/client/assets/{form-CGraaEAE.js → form-DME968hC.js} +1 -1
- package/dist/client/assets/{general-B8kjKLNB.js → general-BGY19JOX.js} +1 -1
- package/dist/client/assets/{home-Dx1t2Khy.js → home-DGvRLGSh.js} +1 -1
- package/dist/client/assets/{hosted-publish-feedback-Cwu2Dq_h.js → hosted-publish-feedback-RQvX0uVW.js} +1 -1
- package/dist/client/assets/{icon-button-DzQcGwuH.js → icon-button-GVvv_TGw.js} +1 -1
- package/dist/client/assets/{index-C0hkRsN1.js → index-1TA39jIZ.js} +1 -1
- package/dist/client/assets/{index-JzMEORR7.js → index-BTOWNqi1.js} +1 -1
- package/dist/client/assets/{index-D1wK1rEb.js → index-BtOEdX6x.js} +1 -1
- package/dist/client/assets/{index-Cm1qyBQK.js → index-C8v36X2j.js} +1 -1
- package/dist/client/assets/{index-pzoXR2-o.js → index-CFXQHfl1.js} +1 -1
- package/dist/client/assets/{index-DjeyX30Y.js → index-CTjWv7p_.js} +2 -2
- package/dist/client/assets/{index-g2Ln0Y-8.js → index-DEfxB_BX.js} +1 -1
- package/dist/client/assets/{index-DzRPrtcp.js → index-Ddu_rSLm.js} +1 -1
- package/dist/client/assets/{index-B0kSzh8i.js → index-DuouRhoR.js} +1 -1
- package/dist/client/assets/{index-kYoyh7tP.js → index-GWPEHtx5.js} +1 -1
- package/dist/client/assets/{index-Dq2Ct6xz.js → index-K8d-kObh.js} +1 -1
- package/dist/client/assets/{index-OKHpYAkN.js → index-Mj5Dlp7-.js} +1 -1
- package/dist/client/assets/{index-Cyt4kGm3.js → index-aq6Oc2bx.js} +3 -3
- package/dist/client/assets/{index-B8bjocUj.js → index-h1iuYBxr.js} +1 -1
- package/dist/client/assets/{index-6ugH9LLC.js → index-it1G5uen.js} +1 -1
- package/dist/client/assets/{index-redirect-qrvoNgUJ.js → index-redirect-B81WZTDn.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-xRaoCF8T.js → infiniteQueryObserver-CYFeTV4A.js} +1 -1
- package/dist/client/assets/{infra-billing-OlN7szns.js → infra-billing-C4d5ZCzo.js} +1 -1
- package/dist/client/assets/{input-bijwqhpk.js → input-D4vnZBvQ.js} +1 -1
- package/dist/client/assets/{input-Cy31fgjy.js → input-lzFp2uRd.js} +3 -3
- package/dist/client/assets/{integration-icon-D_TcwvU-.js → integration-icon-4vqLdvgx.js} +1 -1
- package/dist/client/assets/{jira-icon-BGjUPAaC.js → jira-icon-Cp75OvG2.js} +1 -1
- package/dist/client/assets/{label-CYvkczUc.js → label-BBFj7oje.js} +1 -1
- package/dist/client/assets/{layout-DFmoYAPP.js → layout-Hr0ljnsI.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-B1uAmBP6.js → legacy-agents-deep-CVl-Ax69.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-BJIaLbHQ.js → legacy-main-redirect-DyWbHT7y.js} +1 -1
- package/dist/client/assets/library-CKsdovQ_.js +1 -0
- package/dist/client/assets/{library-tab-BOLOjdKv.js → library-tab-CR7Dg6gz.js} +1 -1
- package/dist/client/assets/{login-aAtYURyn.js → login-CPIzj5NK.js} +1 -1
- package/dist/client/assets/{markdown-c54w-PBR.js → markdown-3pW1-LsL.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DzUa0fqQ.js → mcp-app-renderer-B6D8q_ye.js} +1 -1
- package/dist/client/assets/{mcp-oauth-l-3wO0u2.js → mcp-oauth-Cu679GrT.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BJIzp1EQ.js → mcp-oauth-DpgBvC0Y.js} +1 -1
- package/dist/client/assets/{members-Bm_dXN3q.js → members-CmNQ_ouB.js} +1 -1
- package/dist/client/assets/{memory-CTLW_5ha.js → memory-B9agWmFf.js} +1 -1
- package/dist/client/assets/{mini-report-page-DgZoblky.js → mini-report-page-CUhNSn7g.js} +1 -1
- package/dist/client/assets/{mock-board-wZ9eyEn0.js → mock-board-DonPs6jb.js} +1 -1
- package/dist/client/assets/{monaco-editor-AjJjPJFH.js → monaco-editor-CXsl4AAs.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-C1FgUwoY.js → monitoring-stats-row-CLjBYZbH.js} +1 -1
- package/dist/client/assets/{multi-select-CeQsu_AX.js → multi-select-DvK1FnJz.js} +1 -1
- package/dist/client/assets/{mustache-C3q0PlLG.js → mustache-CJkQZMoK.js} +1 -1
- package/dist/client/assets/{new-project-dialog-CzCoTy3M.js → new-project-dialog-BmQvk0AN.js} +1 -1
- package/dist/client/assets/{oauth-callback-faM6kHoM.js → oauth-callback-CPHBPDQq.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CavLmaDk.js → oauth-callback-ai-provider-3QEfhvZs.js} +1 -1
- package/dist/client/assets/{onboarding--HTHFBjf.js → onboarding-CWf-6NbS.js} +1 -1
- package/dist/client/assets/{openai-conversation-IjaByevn.js → openai-conversation-ByV4ghuu.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-BLXripGn.js → optimistic-project-sidebar-views-Bz-512-j.js} +1 -1
- package/dist/client/assets/{order-monitor-day-0QgbwowT.js → order-monitor-day-DzHY7Cn_.js} +1 -1
- package/dist/client/assets/{organization-choice-BH8z7D14.js → organization-choice-v4TuGYHb.js} +1 -1
- package/dist/client/assets/{orgs-Cd8IzfNg.js → orgs-DGKj6_LT.js} +1 -1
- package/dist/client/assets/{page-seo-form-Blbhh5CI.js → page-seo-form-CFpyiiXA.js} +1 -1
- package/dist/client/assets/{pair-B6zSQFD4.js → pair-BXmEezUH.js} +1 -1
- package/dist/client/assets/{plan-ladder-CJm-5l4g.js → plan-ladder-B_i6laf_.js} +1 -1
- package/dist/client/assets/{popover-DkAu8oBQ.js → popover-BmmpRE-t.js} +1 -1
- package/dist/client/assets/{post-calendar-DtI-lv3J.js → post-calendar-DlBNZ17J.js} +1 -1
- package/dist/client/assets/{post-editor-DsYvI5UU.js → post-editor-BvLtCAu7.js} +1 -1
- package/dist/client/assets/{preview-content-D72q-FTE.js → preview-content-fQPpQUgh.js} +1 -1
- package/dist/client/assets/{preview-dialog-DvZXsyEM.js → preview-dialog-BCRc3vmH.js} +1 -1
- package/dist/client/assets/{preview-panel-Ds2TdctL.js → preview-panel-SLsWXX4e.js} +1 -1
- package/dist/client/assets/{preview-tab-C5lDvsj-.js → preview-tab-SU67nT3n.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-Cq4kY83j.js → product-picker-dialog-DTQdQKpc.js} +1 -1
- package/dist/client/assets/{profile-Cd1NVkWe.js → profile-b9cN0vAR.js} +1 -1
- package/dist/client/assets/{project-app-view-C0FjKFlG.js → project-app-view-TZcg1ec8.js} +1 -1
- package/dist/client/assets/{project-feed-DyssmNVT.js → project-feed-BUya4JEL.js} +1 -1
- package/dist/client/assets/{project-icon-BTJptOhj.js → project-icon-D91bSjz0.js} +1 -1
- package/dist/client/assets/project-reports-Cy5Gt48i.js +1 -0
- package/dist/client/assets/project-tasks-CIVtQnZP.js +1 -0
- package/dist/client/assets/{projects-23Pc0s1a.js → projects-D8i01mKz.js} +1 -1
- package/dist/client/assets/{projects-empty-state-V728nY_w.js → projects-empty-state-CRHzdUYP.js} +1 -1
- package/dist/client/assets/{prompts-nWEdazrj.js → prompts-BeyEOvjI.js} +1 -1
- package/dist/client/assets/record-editor-lYUQFNrv.js +1 -0
- package/dist/client/assets/{redirect-editor-Bkhc0Rz5.js → redirect-editor-JgjnkYFM.js} +1 -1
- package/dist/client/assets/reports-D4-jijW-.js +1 -0
- package/dist/client/assets/{reports-BXtM5enn.js → reports-DT1J-Acd.js} +1 -1
- package/dist/client/assets/{reports-onboarding-CX0lDqiN.js → reports-onboarding-BoXkEzRl.js} +1 -1
- package/dist/client/assets/{reports-tab-DXqCM1YP.js → reports-tab-DgIfkBe4.js} +2 -2
- package/dist/client/assets/{repositories-C7pC7wW7.js → repositories-ar0T7V-k.js} +1 -1
- package/dist/client/assets/{repository-binding-CxxK4zqI.js → repository-binding-CUKMFYlr.js} +1 -1
- package/dist/client/assets/{repository-import-picker-B9K3XzJv.js → repository-import-picker-B0XPae0i.js} +1 -1
- package/dist/client/assets/{repository-picker-6S2RKx3o.js → repository-picker-tkfqc0HP.js} +1 -1
- package/dist/client/assets/{require-capability-Zm5W4hin.js → require-capability-BzqXI72X.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CpqRIzPD.js → required-auth-layout-DzBlEUGS.js} +1 -1
- package/dist/client/assets/{reset-password-CTeQx-lW.js → reset-password-C1mSW7Y4.js} +1 -1
- package/dist/client/assets/{resizable-xAkYm4i8.js → resizable-BzRss8B3.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-C9wuMh4a.js → resolve-tab-icon-Cb6tb2UW.js} +1 -1
- package/dist/client/assets/{review-settings-BWiN3Jk9.js → review-settings-BZJdFSel.js} +1 -1
- package/dist/client/assets/{roles-Znh7kobn.js → roles-D3ZJTNkW.js} +1 -1
- package/dist/client/assets/route-B2ge1BSh.js +1 -0
- package/dist/client/assets/{route-DtXNF5Gy.js → route-CG_Pe0_v.js} +1 -1
- package/dist/client/assets/{route-BRm2VDLI.js → route-jAx8SxCp.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-CfQP3IMz.js → sandbox-lifecycle-context-DLDe72ju.js} +1 -1
- package/dist/client/assets/{schema-C33Vhfks.js → schema-DUmP7mXK.js} +1 -1
- package/dist/client/assets/{schema-B__wWe94.js → schema-ipxqGklP.js} +1 -1
- package/dist/client/assets/{scroll-area-D_8jILgS.js → scroll-area-DHYVnI-I.js} +1 -1
- package/dist/client/assets/{search-input-R3ZKEGlG.js → search-input-CvsfrEx_.js} +1 -1
- package/dist/client/assets/{search-toggle-K246naLM.js → search-toggle-DnQksH6F.js} +1 -1
- package/dist/client/assets/{secret-ciphertext-PmXQgPBi.js → secret-ciphertext-Co44n0dG.js} +1 -1
- package/dist/client/assets/{secret-picker-BuxCGGBU.js → secret-picker-eVGbRH7c.js} +1 -1
- package/dist/client/assets/{secrets-B2fnexCs.js → secrets-CjwpYTND.js} +1 -1
- package/dist/client/assets/{sections-editor-B0hoUxCL.js → sections-editor-BWve_EdV.js} +1 -1
- package/dist/client/assets/{select-DB9aGezp.js → select-JsVR4bkR.js} +1 -1
- package/dist/client/assets/{select-model-BJFqJs1C.js → select-model-C0lXdjww.js} +1 -1
- package/dist/client/assets/{seo-editor-CP-xh6fI.js → seo-editor-CFP0UHWx.js} +1 -1
- package/dist/client/assets/{separator-YjrrgHOt.js → separator-CcSlUA8B.js} +1 -1
- package/dist/client/assets/{settings-tab-CksnDewe.js → settings-tab-DstxhXJl.js} +1 -1
- package/dist/client/assets/{sheet-CZLBR4F9.js → sheet-CcsrBrXF.js} +1 -1
- package/dist/client/assets/{shell-layout-D1m8Ud7v.js → shell-layout-CaDbhp-Y.js} +1 -1
- package/dist/client/assets/site-editor-DGOWjiEA.js +1 -0
- package/dist/client/assets/{site-editor-toast-BQ9NvsaW.js → site-editor-toast-JA1oO0--.js} +1 -1
- package/dist/client/assets/{skills-DyZsyfj2.js → skills-DK6qYuy5.js} +1 -1
- package/dist/client/assets/{slider-DdPswVEW.js → slider-D6WP7zVz.js} +1 -1
- package/dist/client/assets/{sortable.esm-Isyn3z-p.js → sortable.esm-_RsAHU55.js} +1 -1
- package/dist/client/assets/{sso-Cvd6woaA.js → sso-CHakNb6a.js} +1 -1
- package/dist/client/assets/{suggestion-DE6bI3IJ.js → suggestion-COCn65DM.js} +1 -1
- package/dist/client/assets/{switch-D2ouDY9l.js → switch-BdySpUUX.js} +1 -1
- package/dist/client/assets/{symbol-B2Jv7pNm.js → symbol-IuOv85-4.js} +1 -1
- package/dist/client/assets/{synced-repos-KFK4TBEs.js → synced-repos-hurKmQtt.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-DOxVWCXX.js → tab-icon-glyph-DPJDzl6i.js} +1 -1
- package/dist/client/assets/{table-Bz_X_DZW.js → table-DDi3Cf_t.js} +1 -1
- package/dist/client/assets/{tabs-B1JWlBeb.js → tabs-y2ekO2bu.js} +1 -1
- package/dist/client/assets/{task-board-By-HtbvB.js → task-board-zMTndQaY.js} +1 -1
- package/dist/client/assets/{task-route-DzEedpiF.js → task-route-Da2kAtHB.js} +1 -1
- package/dist/client/assets/{task-status-Br0QwLu4.js → task-status-Bms2bUVK.js} +1 -1
- package/dist/client/assets/taskboard-analytics-08asB0YJ.js +1 -0
- package/dist/client/assets/{tasks-Cg5BZBqa.js → tasks-Cue0PIs1.js} +1 -1
- package/dist/client/assets/tasks-DTa8QbvB.js +1 -0
- package/dist/client/assets/{textarea-Bi1WfesL.js → textarea-DjEn7s--.js} +1 -1
- package/dist/client/assets/{thread-analytics-CFe--CHd.js → thread-analytics-C0dP1bD-.js} +1 -1
- package/dist/client/assets/{thread-intent-BOV3kZsu.js → thread-intent-CeVBLvFY.js} +1 -1
- package/dist/client/assets/{thread-route-sK6jRpGi.js → thread-route-D3q_rVP7.js} +1 -1
- package/dist/client/assets/{thread-route-JnLnAmDR.js → thread-route-DFNs7FnK.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-CeK8x29F.js → thread-sheet-body-Dd9ZM-zN.js} +1 -1
- package/dist/client/assets/{time-range-picker-DyaWyYvU.js → time-range-picker-xfO0EX4l.js} +1 -1
- package/dist/client/assets/{toggle-group-BJrK4ohL.js → toggle-group-AfU8RYJj.js} +1 -1
- package/dist/client/assets/{tool-namespace-WGvCHGNT.js → tool-namespace-CGmm1XsL.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-B-Am6G4N.js → toolbar-icon-button-Bjp-WCB6.js} +1 -1
- package/dist/client/assets/{tooltip-BjOKp_yY.js → tooltip-DqmGcdDJ.js} +1 -1
- package/dist/client/assets/{tooltipContext-ECoG_0bD.js → tooltipContext-bYw7jO6q.js} +1 -1
- package/dist/client/assets/{track-DMHTeO-g.js → track-ZwUxBtRx.js} +1 -1
- package/dist/client/assets/{types-B38bkUuB.js → types-Bn1OkBUZ.js} +1 -1
- package/dist/client/assets/{url-slug-B9BgQNZP.js → url-slug-DTtfghpx.js} +1 -1
- package/dist/client/assets/{usage-stats-Moh6ZFcL.js → usage-stats-BQf3WnUV.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BvJFsA-n.js → use-ai-providers-CghFth1V.js} +1 -1
- package/dist/client/assets/{use-app-takeover-B8WKIuje.js → use-app-takeover-DSm0hM-q.js} +1 -1
- package/dist/client/assets/{use-automations-BubilfJF.js → use-automations-CA7c0rVa.js} +1 -1
- package/dist/client/assets/{use-autosave-DQrtP9Mp.js → use-autosave-BnJRqW8T.js} +1 -1
- package/dist/client/assets/{use-chat-navigation-CiTJZYhQ.js → use-chat-navigation-DTChKwGZ.js} +1 -1
- package/dist/client/assets/{use-clock-tick-B9hlRyLN.js → use-clock-tick-L_13B5gz.js} +1 -1
- package/dist/client/assets/{use-connect-companion-CXJy1zaK.js → use-connect-companion-ChMBUAJw.js} +1 -1
- package/dist/client/assets/{use-connection-UjMngEYa.js → use-connection-CEirJr2M.js} +1 -1
- package/dist/client/assets/{use-content-sync-BUixoW2Z.js → use-content-sync-tVIUxZEE.js} +1 -1
- package/dist/client/assets/{use-copy-CiztYm1v.js → use-copy-BRcd4PJW.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-VpFuCKnd.js → use-create-virtual-mcp-CYacSk2v.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CylZqXHz.js → use-date-fns-locale-AV4SnLxg.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-m7eQVRqS.js → use-debounced-autosave-Y-Qh1_Yq.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Bhl_Rv5_.js → use-debounced-value-DSvxzSzu.js} +1 -1
- package/dist/client/assets/{use-deco-credits-FY205R6D.js → use-deco-credits-B1V9qoME.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CPfnofl0.js → use-decopilot-events-D9D6ni5J.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DvVJpeEf.js → use-delete-connection-B2im9KG6.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BzV2yqA3.js → use-deployment-admin-C5Jc74eV.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-BgUOAmYE.js → use-ensure-project-folder-D5O9v9JH.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-CrL4FQJ6.js → use-fast-preview-draft-url-B4AGZbiI.js} +1 -1
- package/dist/client/assets/{use-file-configs-jGTNrkK9.js → use-file-configs-DfP4tBEs.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DlTIfPFo.js → use-infinite-scroll-CLIMYjnC.js} +1 -1
- package/dist/client/assets/{use-join-requests-C4TcA439.js → use-join-requests-CLPw9kSA.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-CN3dklj2.js → use-main-panel-tabs-DXonldTT.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-DM-ErC_Q.js → use-mcp-auth-status-BHCb596Q.js} +1 -1
- package/dist/client/assets/{use-mcp-client-mxUa3Lsm.js → use-mcp-client-CGKK63Kz.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CX-ziSXI.js → use-mcp-prompts-Q6y3VcI9.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-D1zqQRh2.js → use-mcp-tools-CXE77GDs.js} +1 -1
- package/dist/client/assets/{use-members-C1a4SbHs.js → use-members-CG-2RwJv.js} +1 -1
- package/dist/client/assets/{use-mobile-BIczRvEw.js → use-mobile-BHIxo6gN.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-B9ba7keg.js → use-navigate-to-agent-DYlzYuXR.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-BVUCpaHN.js → use-open-billing-url-Bjw_RPxL.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DLu7wwJ8.js → use-org-auth-client-BcOSmGyk.js} +1 -1
- package/dist/client/assets/{use-org-fs-BPZLK6VF.js → use-org-fs-B0bRoLwB.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DmycgZxS.js → use-org-repo-syncs-CwdFEzac.js} +1 -1
- package/dist/client/assets/{use-org-sso-B42vh3r9.js → use-org-sso-g2a2pIE8.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DbvmpvPK.js → use-organization-roles-uMK8pAbP.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BzX4Hzqv.js → use-organization-settings-CtFTrm2u.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-BfsxK4kz.js → use-panel-navigate-QANI2F_X.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-CR46zKPn.js → use-project-native-view-presence-BL9-bchu.js} +1 -1
- package/dist/client/assets/{use-project-scope-DgHI5Sbx.js → use-project-scope-GW2bAOd3.js} +1 -1
- package/dist/client/assets/{use-recent-apps-n8Amcz5l.js → use-recent-apps-B8Spkimt.js} +1 -1
- package/dist/client/assets/{use-releases-BVZsPPMC.js → use-releases-CENL9LRv.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CevaUKdb.js → use-reports-diagnostic-Dv4wwCLW.js} +1 -1
- package/dist/client/assets/{use-secrets-BDWaWfBZ.js → use-secrets-Cd2WLNIt.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-L5lcG5Wr.js → use-section-preview-base-Du3AZ2Vl.js} +1 -1
- package/dist/client/assets/{use-tags-CswC4qUA.js → use-tags-C1sxDyEj.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-C545b4DS.js → use-task-board-analytics-G-CQmnL2.js} +1 -1
- package/dist/client/assets/{use-task-board-events-BX2b5wi0.js → use-task-board-events-De9AddjW.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-BLXk8Qod.js → use-task-board-item-prs-CeT5Mp1U.js} +1 -1
- package/dist/client/assets/{use-task-board-items-l56DZZX-.js → use-task-board-items-COK4ecSa.js} +1 -1
- package/dist/client/assets/{use-task-metadata-DIMUC10R.js → use-task-metadata-CPknFXQ5.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-Dtf6wTh1.js → use-thread-analytics-BGHxEouh.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-Dcvv4FKQ.js → use-thread-outputs-YPzOMCqa.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DkDVK9bu.js +1 -0
- package/dist/client/assets/{useQueries-2wm2Ardx.js → useQueries-h3ila7j5.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-k5nRBGbr.js +1 -0
- package/dist/client/assets/{users-CwwQJETL.js → users-Ba42mTc_.js} +1 -1
- package/dist/client/assets/{utils-BnDAp2xW.js → utils-BgpN3-4K.js} +1 -1
- package/dist/client/assets/{variant-calendar-NVbPJ00u.js → variant-calendar-CxqDsq2C.js} +1 -1
- package/dist/client/assets/{variant-draft-pointer-CDHruVa9.js → variant-draft-pointer-ACyN5ek2.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-S2UksSN5.js → view-mode-toggle-D94mGT5R.js} +1 -1
- package/dist/client/assets/{virtual-mcp-DugkGZOU.js → virtual-mcp-Cb6kVn2b.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-DuKj9dUB.js → watch-sse-pool-BOhZFR5D.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +560 -560
- package/package.json +1 -1
- package/dist/client/assets/agent-app-B2qSL9oc.js +0 -1
- package/dist/client/assets/agent-deck-DDotN0AT.js +0 -1
- package/dist/client/assets/agent-library-C27Vz_hh.js +0 -1
- package/dist/client/assets/agent-library-file-CYLUWoyo.js +0 -1
- package/dist/client/assets/agent-settings-mQZHtZBC.js +0 -1
- package/dist/client/assets/agent-site-editor-code-5LnggK5j.js +0 -2
- package/dist/client/assets/agent-site-editor-content-Bii6lvtx.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-D3Z1UwWS.js +0 -1
- package/dist/client/assets/agent-view-CwhdhHZO.js +0 -1
- package/dist/client/assets/api-keys-Di5U5myY.js +0 -1
- package/dist/client/assets/cms-settings-editor-Bz3KyZn7.js +0 -1
- package/dist/client/assets/flat-project--v2Mbmfa.js +0 -1
- package/dist/client/assets/library-D4ZRZPVd.js +0 -1
- package/dist/client/assets/project-reports-PoqU8cmr.js +0 -1
- package/dist/client/assets/project-tasks--h66ZBfo.js +0 -1
- package/dist/client/assets/record-editor-tRleK8Fx.js +0 -1
- package/dist/client/assets/reports-B0yI1lG7.js +0 -1
- package/dist/client/assets/route-DW1jw329.js +0 -1
- package/dist/client/assets/site-editor-CL_bu0T5.js +0 -1
- package/dist/client/assets/taskboard-analytics-CzdeI0TB.js +0 -1
- package/dist/client/assets/tasks-q6DdylR5.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DtOl_zc5.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CgXIqx6r.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,a2 as w,K as y,m as $,o as O,e as P}from"./index-DjeyX30Y.js";import{u as _}from"./useInfiniteQuery-DtOl_zc5.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-CTjWv7p_.js";import{u as _}from"./useInfiniteQuery-DkDVK9bu.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-DmycgZxS.js → use-org-repo-syncs-CwdFEzac.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,a2 as f,a9 as y,K as S,m as _,o as d,e as R}from"./index-
|
|
1
|
+
import{c as r,a2 as f,a9 as y,K as S,m as _,o as d,e as R}from"./index-CTjWv7p_.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-CTjWv7p_.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-DbvmpvPK.js → use-organization-roles-uMK8pAbP.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as E}from"./use-org-auth-client-
|
|
1
|
+
import{u as E}from"./use-org-auth-client-BcOSmGyk.js";import{a2 as I,m as N,K as b}from"./index-CTjWv7p_.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};
|
|
@@ -1 +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-
|
|
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-CTjWv7p_.js";import{D as G,o as x,a as P}from"./schema-ipxqGklP.js";import{r as R}from"./task-board-zMTndQaY.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-BfsxK4kz.js → use-panel-navigate-QANI2F_X.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,f as g,u as S,d5 as _,d as k,k as b,d6 as P,d7 as E}from"./index-
|
|
1
|
+
import{c as p,f as g,u as S,d5 as _,d as k,k as b,d6 as P,d7 as E}from"./index-CTjWv7p_.js";import{b as I}from"./thread-route-D3q_rVP7.js";import{a as R}from"./use-project-scope-GW2bAOd3.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,k as B,d as W,u as Y,a2 as k,o as J,m as H,dX as K,K as L,b5 as Q}from"./index-
|
|
1
|
+
import{c as C,k as B,d as W,u as Y,a2 as k,o as J,m as H,dX as K,K as L,b5 as Q}from"./index-CTjWv7p_.js";import{a as z}from"./thread-route-D3q_rVP7.js";import{u as G}from"./use-panel-navigate-QANI2F_X.js";import{b as X,n as U,l as Z,H as ee}from"./thread-intent-CeVBLvFY.js";import{u as te}from"./use-file-configs-DfP4tBEs.js";import{e as ne}from"./use-organization-settings-CtFTrm2u.js";import{e as x,a as F}from"./repository-binding-CUKMFYlr.js";import{r as se,a as ae}from"./site-slug-DebpOoQq.js";function re(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:oe},t[0]=e):e=t[0],B(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 D(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 Me(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 De(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=C.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 g=V;let S;e[12]!==s?(S=(c,w)=>{s({to:".",search:I=>({...I,...c}),replace:w?.replace??!1})},e[12]=s,e[13]=S):S=e[13];const m=S;let y;e[14]!==m||e[15]!==g?(y=()=>{const c=D({type:"toggleContent"},g);c&&m(c,{replace:!0})},e[14]=m,e[15]=g,e[16]=y):y=e[16];const E=y;let p;e[17]!==m||e[18]!==g?(p=()=>{const c=D({type:"toggleThread"},g);c&&m(c,{replace:!0})},e[17]=m,e[18]=g,e[19]=p):p=e[19];const b=p,h=a.sidepanel!==void 0;let P;return e[20]!==f||e[21]!==h||e[22]!==d||e[23]!==E||e[24]!==b?(P={threadOpen:d,contentOpen:f,threadVisibilityExplicit:h,toggleContent:E,toggleThread:b},e[20]=f,e[21]=h,e[22]=d,e[23]=E,e[24]=b,e[25]=P):P=e[25],P}const O=["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 q(t,e){const s=new Set(t??[]);if(e!==de)for(const n of ue)s.add(n);return O.filter(n=>s.has(n))}function me(t){return O.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(q(t,s));return O.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 qe(t){return O.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 Be(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(q(t,n));return s?a.add(e):a.delete(e),O.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"}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 Ee(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 _e(t){return!t.hasProject||!t.asks?"v7":t.data!==void 0?t.data?"v8":"v7":t.isError?t.marked?"error":"v7":"loading"}function be(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 Ee(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:Ie});return _e({asks:o,hasProject:!!n,data:i.data?.isV8,isError:i.isError||i.errorUpdateCount>0,marked:r})}function Ie(t){return t.state.status==="error"?ye:!1}function Ke(t){const e=C.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 Qe(t){const e=C.c(22),{org:s}=k(),n=Q(),a=ne(),r=te(),o=be(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,g=$(s.slug,u,V);let S;e[2]!==t?(S=ae(t),e[2]=t,e[3]=S):S=e[3];const m=S,y=f&&!!m&&m!==u,E=$(s.slug,m,y),p=g.data?.owned===!0,b=y?E.data?.owned===!0:p;let h;e[4]!==r.data?.configs?(h=r.data?.configs??[],e[4]=r.data?.configs,e[5]=h):h=e[5];let P;e[6]!==u||e[7]!==h?(P=Se(h,u),e[6]=u,e[7]=h,e[8]=P):P=e[8];const c=!!P,w=i&&!!t?.metadata?.siteSlug,I=d&&p&&a.hosting,T=d&&p&&a.e2e,v=d&&p&&a.analytics,R=f&&(o==="v8"||o==="error"?p:b)&&a.monitor;let _;e[9]!==a.experiments||e[10]!==c||e[11]!==w||e[12]!==I||e[13]!==T||e[14]!==v||e[15]!==R?(_={assets:c,releases:w,hosting:I,e2e:T,analytics:v,cdn:R,experiments:a.experiments},e[9]=a.experiments,e[10]=c,e[11]=w,e[12]=I,e[13]=T,e[14]=v,e[15]=R,e[16]=_):_=e[16];const N=!!u&&r.isPending,j=!!t?.metadata?.siteSlug&&(o==="loading"||o==="error"),M=V&&g.isPending||y&&E.isPending;let A;return e[17]!==_||e[18]!==N||e[19]!==j||e[20]!==M?(A={presence:_,assetsPending:N,releasesPending:j,siteAccessPending:M},e[17]=_,e[18]=N,e[19]=j,e[20]=M,e[21]=A):A=e[21],A}function $(t,e,s){const n=C.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 P,Pe as a,ke as b,be as c,Je as d,q as e,Se as f,Me as g,De as h,Ke as i,pe as j,de as k,re as l,$e as m,He as n,Ue as o,he as p,Be as q,Le as r,xe as s,ie as t,Qe as u,ge as v,qe as w,We as x,Fe as y,Ye as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,f as P,u as y,d as T,ai as N,d8 as R,d7 as E,ae as _}from"./index-
|
|
1
|
+
import{c as b,f as P,u as y,d as T,ai as N,d8 as R,d7 as E,ae as _}from"./index-CTjWv7p_.js";import{i as k,c as C,p as O}from"./repository-binding-CUKMFYlr.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as O,c as m,at as A,k as y,av as d,aj as b}from"./index-
|
|
1
|
+
import{r as O,c as m,at as A,k as y,av as d,aj as b}from"./index-CTjWv7p_.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-DSm0hM-q.js";import{c as h}from"./repository-binding-CUKMFYlr.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Q,a2 as _,o as k}from"./index-
|
|
1
|
+
import{c as Q,a2 as _,o as k}from"./index-CTjWv7p_.js";import{a as E,f as P}from"./repository-binding-CUKMFYlr.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-CevaUKdb.js → use-reports-diagnostic-Dv4wwCLW.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as N,a2 as Q,W as F,J as A,m as f,K as T,fa as L,Y as K,M}from"./index-
|
|
1
|
+
import{c as N,a2 as Q,W as F,J as A,m as f,K as T,fa as L,Y as K,M}from"./index-CTjWv7p_.js";import{m as O}from"./use-mcp-client-CGKK63Kz.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,a9 as r,K as l,R as d,o as f,e as S}from"./index-
|
|
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-CTjWv7p_.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};
|
|
@@ -1 +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-
|
|
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-CTjWv7p_.js";import{a as G,e as H}from"./UserSquare-BSP-qc9x.js";import{b as ne}from"./agent-icon-BBR2iDYh.js";import{i as ce}from"./SearchMd-O4PYnwLm.js";import{O as Y,Q as ae,T as _}from"./blocks-tab-states-MymqMfo8.js";import{az as fe,ad as ue,w as de,aA as me,H as ve}from"./secret-ciphertext-Co44n0dG.js";import{d as X,r as pe}from"./section-preview-url-7zfngvgW.js";import{a as xe}from"./input-lzFp2uRd.js";import{c as he,u as ge,K as we}from"./site-editor-toast-JA1oO0--.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 ze(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,z=new Set,F=new Set;function Ne(){for(const r of F)r()}function Re(r){return z.has(r)?!0:z.size>=ye?!1:(z.add(r),!0)}function J(r){z.delete(r)&&Ne()}function Pe(r){return F.add(r),()=>{F.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:G;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:G;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=_()?t.isSavedBlock?ne:H:G,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 qe(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 q=t&&o&&n?ue(o,n):[],W=o?de(o):"",V=n?me(n):void 0,K=new Map;if(t&&W&&l)for(const v of q)K.set(v.resolveType,X(l,W,v.previewBlock,V));const E=p.trim().toLowerCase(),Q=E?q.filter(v=>v.title.toLowerCase().includes(E)||v.resolveType.toLowerCase().includes(E)||v.description?.toLowerCase().includes(E)):q;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 A;e[19]!==c?(A=c("sectionsEditor.addSectionModal.title"),e[19]=c,e[20]=A):A=e[20];let B;e[21]!==A?(B=i.jsx(oe,{children:A}),e[21]=A,e[22]=B):B=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 k;e[25]!==c?(k=c("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=c,e[26]=k):k=e[26];let L;e[27]!==p||e[28]!==k?(L=i.jsxs("div",{className:"relative pt-2",children:[$,i.jsx(ie,{value:p,onChange:D,placeholder:k,className:"h-9 pl-8"})]}),e[27]=p,e[28]=k,e[29]=L):L=e[29],e[30]!==B||e[31]!==L?(j=i.jsxs(le,{className:"shrink-0 border-b px-4 py-3 text-left",children:[B,L]}),e[30]=B,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,W,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 We(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{qe as A,ze as g,Z as s,We as u};
|
|
@@ -1 +1 @@
|
|
|
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-
|
|
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-CTjWv7p_.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,a9 as l}from"./index-
|
|
1
|
+
import{c as O,f,m as S,K as _,ao as R,a2 as i,a9 as l}from"./index-CTjWv7p_.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-BX2b5wi0.js → use-task-board-events-De9AddjW.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"./task-board-
|
|
1
|
+
import{a as m}from"./task-board-zMTndQaY.js";import{r as e}from"./index-CTjWv7p_.js";import{t as g}from"./watch-sse-pool-BOhZFR5D.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,av as w,c as h,a2 as R,a9 as T,o as k,m as O,K as A}from"./index-
|
|
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-CTjWv7p_.js";import{e as B}from"./watch-sse-pool-BOhZFR5D.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-l56DZZX-.js → use-task-board-items-COK4ecSa.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,l as H,j as J,f9 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-
|
|
1
|
+
import{c as C,l as H,j as J,f9 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-CTjWv7p_.js";import{u as ee}from"./use-task-board-events-De9AddjW.js";import{b as te}from"./use-decopilot-events-D9D6ni5J.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a2 as l,a9 as c,r as i,R as d,K as T}from"./index-
|
|
1
|
+
import{a2 as l,a9 as c,r as i,R as d,K as T}from"./index-CTjWv7p_.js";import{u as m}from"./thread-intent-CeVBLvFY.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-Dtf6wTh1.js → use-thread-analytics-BGHxEouh.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-CTjWv7p_.js";import{a as O}from"./watch-sse-pool-BOhZFR5D.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};
|
package/dist/client/assets/{use-thread-outputs-Dcvv4FKQ.js → use-thread-outputs-YPzOMCqa.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,a2 as i,m as l,K as p}from"./index-
|
|
1
|
+
import{c,a2 as i,m as l,K as p}from"./index-CTjWv7p_.js";import{f}from"./chat-context-CsSueqYK.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-CYFeTV4A.js";import{dq as i}from"./index-CTjWv7p_.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dF as Q,b7 as y,dG as S,b6 as w,dr as C,o as k,dH as M,dI as x,r as p,dJ as q,dK as H,dL as L,dM as P,dN as v,dO as B,dP as A}from"./index-
|
|
1
|
+
import{dF as Q,b7 as y,dG as S,b6 as w,dr as C,o as k,dH as M,dI as x,r as p,dJ as q,dK as H,dL as L,dM as P,dN as v,dO as B,dP as A}from"./index-CTjWv7p_.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 C(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=x(),u=p.useMemo(()=>r.map(h=>{const a=t.defaultQueryOptions(h);return a._optimisticResults=i?"isRestoring":"optimistic",a}),[r,t,i]);u.forEach(h=>{q(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 E=new C(t,l);return B(l,E,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-CYFeTV4A.js";import{dq as u,dE as n}from"./index-CTjWv7p_.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-CTjWv7p_.js";import{C as G}from"./collection-table-wrapper-H9NaWjzQ.js";import{E as L}from"./empty-state-CPp6Z3BQ.js";import{S as H}from"./search-input-CvsfrEx_.js";import{A as X}from"./avatar-DaqDyQT2.js";import{B as D}from"./badge-Cs8ttYS4.js";import{u as Z}from"./use-debounced-value-DSvxzSzu.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-DDi3Cf_t.js";import"./ArrowUp-gZglv5wp.js";import"./SearchMd-O4PYnwLm.js";import"./User01-Bk3qtSGw.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-Dg3QgYnY.js";import{a as j}from"./Image01-DCu3b5kU.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};
|