decocms 4.507.3 → 4.507.4
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-xnsSL3sx.js → ActiveShapeUtils-BAL0Xqny.js} +1 -1
- package/dist/client/assets/{AlertCircle-CEZZLz38.js → AlertCircle-T1ZkrR0m.js} +1 -1
- package/dist/client/assets/{AreaChart-HN0fRlrS.js → AreaChart-Dvv3jub6.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DYDkRAue.js → ArrowLeft-CYKCt2D_.js} +1 -1
- package/dist/client/assets/{ArrowUp-BoSjhzDf.js → ArrowUp-CrfIcCHY.js} +1 -1
- package/dist/client/assets/{BarChart-48xiRldD.js → BarChart-Z1_46Epq.js} +1 -1
- package/dist/client/assets/{Building02-gxUxeRsd.js → Building02-BzqtLsiR.js} +1 -1
- package/dist/client/assets/{CategoricalChart-DmP7gVQc.js → CategoricalChart-DSzs6PbU.js} +1 -1
- package/dist/client/assets/{CheckCircle-B20x4ndI.js → CheckCircle-Cyp8J2-O.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-9PUa7L-N.js → ChevronSelectorVertical-bMnA4IfS.js} +1 -1
- package/dist/client/assets/{ChevronUp-BvKleEa1.js → ChevronUp-DWP9CKrv.js} +1 -1
- package/dist/client/assets/{Copy01-DsiTYYU6.js → Copy01-4Op2Jutz.js} +1 -1
- package/dist/client/assets/{CreditCard01-kVpDY_m5.js → CreditCard01-8ijEtUnj.js} +1 -1
- package/dist/client/assets/{DotsVertical-C9QJiHpJ.js → DotsVertical-Ik04gU0Z.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-2zxIz6ZK.js → ErrorBarContext-1QYVhNWP.js} +1 -1
- package/dist/client/assets/{Globe04-OCDS2DtM.js → Globe04-DTYU91Z7.js} +1 -1
- package/dist/client/assets/{Image01-DQWVAHE7.js → Image01-BoNtuy7T.js} +1 -1
- package/dist/client/assets/{Key01-X1DrP0l3.js → Key01-DVtNzjvm.js} +1 -1
- package/dist/client/assets/{Link01-ByHkgEJr.js → Link01-COgU4X0d.js} +1 -1
- package/dist/client/assets/{LinkBroken01-C1K12OTL.js → LinkBroken01-1s3iBfyN.js} +1 -1
- package/dist/client/assets/{Monitor01-DRY8tI7i.js → Monitor01-BMmwz8er.js} +1 -1
- package/dist/client/assets/{Play-DgswSwWx.js → Play-C_Kc3qTH.js} +1 -1
- package/dist/client/assets/{Plus-CBBIyP6s.js → Plus-bl3Do1ab.js} +1 -1
- package/dist/client/assets/{SearchMd-cZPkobS8.js → SearchMd-CuIII2sM.js} +1 -1
- package/dist/client/assets/{Sector-EzyKalFj.js → Sector-Ca7XNqZx.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-Dne3aRqF.js → ShoppingBag01-CQamAcPv.js} +1 -1
- package/dist/client/assets/{Sun-CHpluZV5.js → Sun-CT-ZvHiv.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BxVAqSEt.js → SwitchHorizontal01-BMvJE9CE.js} +1 -1
- package/dist/client/assets/{Tool01-BpE6Ocu5.js → Tool01-eRpAM_xP.js} +1 -1
- package/dist/client/assets/{Trash01-CWyW8AJH.js → Trash01-DtrweZMg.js} +1 -1
- package/dist/client/assets/{Upload01-Cx8wHc7w.js → Upload01-dCDZcDY3.js} +1 -1
- package/dist/client/assets/{User01-COA-WNQV.js → User01-N2rUxuZL.js} +1 -1
- package/dist/client/assets/{UserSquare-CySOTy0y.js → UserSquare-BPqJsNeY.js} +1 -1
- package/dist/client/assets/{Users01-Czgnm_XI.js → Users01--Pjgrl_5.js} +1 -1
- package/dist/client/assets/{XAxis-CGzEXMaM.js → XAxis-Bcjro0Ob.js} +1 -1
- package/dist/client/assets/{XClose-Qxrq0G_x.js → XClose-DBK6xbU_.js} +1 -1
- package/dist/client/assets/{ZoomOut-NpBIqZ1k.js → ZoomOut-BSgJ_qOu.js} +1 -1
- package/dist/client/assets/{access-gate-BKWaGhuR.js → access-gate-DSd_cW3Q.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BNedSJ6Y.js → add-connection-dialog-B2yW98GA.js} +1 -1
- package/dist/client/assets/{agent-analytics-EgytGSYW.js → agent-analytics-DAcM92Eu.js} +1 -1
- package/dist/client/assets/agent-app-DMpGNnPR.js +1 -0
- package/dist/client/assets/{agent-assets-Boz0X5Ki.js → agent-assets-CpU6grt8.js} +1 -1
- package/dist/client/assets/{agent-automation-Cjz3FKC_.js → agent-automation-B-gVk0Iu.js} +1 -1
- package/dist/client/assets/{agent-automations-Dn0LzzG7.js → agent-automations-Un1oiGTh.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-a_Oe6pMW.js → agent-connect-sources-D2iZNBca.js} +1 -1
- package/dist/client/assets/agent-deck-CZNDv1mI.js +1 -0
- package/dist/client/assets/{agent-e2e-ge69NZq7.js → agent-e2e-BU3R6DRe.js} +1 -1
- package/dist/client/assets/{agent-experiments-Cg0irecg.js → agent-experiments-De5Xjb8U.js} +1 -1
- package/dist/client/assets/{agent-file-DNlgdYja.js → agent-file-BUbOjh-I.js} +1 -1
- package/dist/client/assets/{agent-hosting--5LLQHqh.js → agent-hosting-DUYz3ME7.js} +1 -1
- package/dist/client/assets/{agent-icon-RCyVT7wo.js → agent-icon-u2ivNkJK.js} +1 -1
- package/dist/client/assets/agent-library-CRicVjHe.js +1 -0
- package/dist/client/assets/agent-library-file-5bEyOzlc.js +1 -0
- package/dist/client/assets/{agent-monitor-x7nRbONI.js → agent-monitor-6ujZcZJe.js} +1 -1
- package/dist/client/assets/{agent-overview-h2sT0vHf.js → agent-overview-Bxaa87a8.js} +1 -1
- package/dist/client/assets/{agent-releases-CCY6x1Zv.js → agent-releases-Bf8Vhnqt.js} +1 -1
- package/dist/client/assets/agent-settings-DoaEiYch.js +1 -0
- package/dist/client/assets/{agent-site-editor-InBJeC6D.js → agent-site-editor-B8Gy3O3j.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-nxeUtWd2.js +2 -0
- package/dist/client/assets/agent-site-editor-content-MjcMIMIi.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-BgfVqf-n.js +1 -0
- package/dist/client/assets/agent-view-B1-PgHLK.js +1 -0
- package/dist/client/assets/{agent-view-guard-CQbpMBLl.js → agent-view-guard-D7Efz7aP.js} +1 -1
- package/dist/client/assets/{agents-list-CWBXnTS3.js → agents-list-CjgsD106.js} +1 -1
- package/dist/client/assets/{ai-providers-CqVdQTJJ.js → ai-providers-DYVp9dmp.js} +1 -1
- package/dist/client/assets/{alert-DtmiRNCs.js → alert-C4LKzrU_.js} +1 -1
- package/dist/client/assets/{alert-dialog-eYX_HG6w.js → alert-dialog-DiDDn4Bn.js} +1 -1
- package/dist/client/assets/{analytics-sections-D83BItUG.js → analytics-sections-BTuh0sxQ.js} +1 -1
- package/dist/client/assets/api-keys-CAj6rmix.js +1 -0
- package/dist/client/assets/{api-keys-CfeV-_9h.js → api-keys-DT2jF2YV.js} +1 -1
- package/dist/client/assets/{app-editor-CLUKjiV1.js → app-editor-2Z9PUdLT.js} +1 -1
- package/dist/client/assets/{asset-utils-BfYqMmJj.js → asset-utils-D_uCIG2N.js} +1 -1
- package/dist/client/assets/{auth-CAugv3bc.js → auth-CExazRf5.js} +1 -1
- package/dist/client/assets/{auth-catchall-BXWISMfs.js → auth-catchall-Bg4s733G.js} +1 -1
- package/dist/client/assets/{auth-entry-D3dpURJr.js → auth-entry-DklrAmyd.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DLWrmJg2.js → auth-split-layout-yWRpLXbZ.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-B4sOdDrI.js → authenticate-and-persist-oauth-B43eE55s.js} +1 -1
- package/dist/client/assets/{automation-list-row-C3iwYbyI.js → automation-list-row-rr5_wiXj.js} +1 -1
- package/dist/client/assets/{automation-runs-BbzFBQok.js → automation-runs-Dzy5TJhL.js} +1 -1
- package/dist/client/assets/{automations-DPaT9sIN.js → automations-D7-lperE.js} +1 -1
- package/dist/client/assets/{autosend-DSEyOhE7.js → autosend-CUxwH8aa.js} +1 -1
- package/dist/client/assets/{avatar-Vuppyn0R.js → avatar-k7zVZ1nb.js} +1 -1
- package/dist/client/assets/{badge-DCJU38ab.js → badge-BE7xUmDV.js} +1 -1
- package/dist/client/assets/{block-document-DdDh5C7y.js → block-document-BISmqkMT.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-Zw7X8ZvT.js → blocks-preview-workspace-context-9rYmJjdK.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-Z8p2MUXW.js → blocks-tab-states-B0RpWAaK.js} +3 -3
- package/dist/client/assets/{blog-schema-kNeCn8hc.js → blog-schema-CYYjVJrx.js} +1 -1
- package/dist/client/assets/{board-analytics-IgbW7H8y.js → board-analytics-BPcQpX0a.js} +1 -1
- package/dist/client/assets/{buckets-BJDs6pQ7.js → buckets-7sZ822gQ.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DuUSRBYw.js → build-improve-prompt-doc-4hqh7aGt.js} +1 -1
- package/dist/client/assets/{calendar-BqBNvALs.js → calendar-C_cq2tGg.js} +1 -1
- package/dist/client/assets/{capability-load-error-Ct7gTlUl.js → capability-load-error-Dm_yuCkZ.js} +1 -1
- package/dist/client/assets/{category-editor-BcDXgxmT.js → category-editor-CQjH2oSA.js} +1 -1
- package/dist/client/assets/{chart-D7WURHEc.js → chart-B2lVx6UJ.js} +1 -1
- package/dist/client/assets/{chat-context-qaPvBrDR.js → chat-context-DL44ik-l.js} +1 -1
- package/dist/client/assets/{chat-draft-zaNEWXzo.js → chat-draft-BGj508pV.js} +1 -1
- package/dist/client/assets/{checkbox-Cu7Sq496.js → checkbox-CTOJeQYr.js} +1 -1
- package/dist/client/assets/{choose-editor-IaO1rmYe.js → choose-editor-BoM3oSha.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Bat4qyJj.js → cli-auth-success-CmIjetif.js} +1 -1
- package/dist/client/assets/{client-icons-BrKH2PNf.js → client-icons-C4GjI8VB.js} +1 -1
- package/dist/client/assets/cms-settings-editor-bq02-RQH.js +1 -0
- package/dist/client/assets/{collapsible-7FtcEuA2.js → collapsible-DM3c5ETU.js} +1 -1
- package/dist/client/assets/{collection-detail-ALnK7pxW.js → collection-detail-D94lQ1Zc.js} +1 -1
- package/dist/client/assets/{collection-display-button-CCVpzOGT.js → collection-display-button-Dz_a8Rja.js} +1 -1
- package/dist/client/assets/{collection-search-DvXfIbCw.js → collection-search-BgZ6ncMc.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-B4V_gZlC.js → collection-table-wrapper-DYmuLoSL.js} +1 -1
- package/dist/client/assets/{collection-tabs-D3G56cwm.js → collection-tabs-C9sF3Ij7.js} +1 -1
- package/dist/client/assets/{column-rules-CmG06P_7.js → column-rules-DVJwf6Ig.js} +1 -1
- package/dist/client/assets/{combobox-DSlBd4Uo.js → combobox-CWvfr2Bd.js} +1 -1
- package/dist/client/assets/{command-DtJnVLn9.js → command-kL2BpXNu.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CiG0ujv0.js → companion-mcps-section-BWwhuQv7.js} +1 -1
- package/dist/client/assets/{config-BpRBB-kH.js → config-CmZDuh3u.js} +1 -1
- package/dist/client/assets/{connect-B-rLA-PL.js → connect-Cxk1UNDF.js} +1 -1
- package/dist/client/assets/{connect-layout-DnZ_SKor.js → connect-layout-CuQDm86w.js} +1 -1
- package/dist/client/assets/{connection-BiAy_e5E.js → connection-ClykfAAS.js} +1 -1
- package/dist/client/assets/{connection-card-BPU1-L2q.js → connection-card-CKRGS9aW.js} +1 -1
- package/dist/client/assets/{connection-detail-re-PCDvu.js → connection-detail-CIN8FXIj.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BX34BrYY.js → connection-form-helpers-DaJ65Rex.js} +1 -1
- package/dist/client/assets/{connections-CpI1FEJb.js → connections-q1djGcEd.js} +1 -1
- package/dist/client/assets/{content-tab-DcKfctGm.js → content-tab-Dvm-MV4U.js} +3 -3
- package/dist/client/assets/{context-9Kg2kcpD.js → context-BXY_cB7z.js} +1 -1
- package/dist/client/assets/{context-menu-evHCp9FV.js → context-menu-CJERsJPE.js} +1 -1
- package/dist/client/assets/{core.esm-1eSJsXtC.js → core.esm-BG0jKDkq.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Cimilr21.js → create-organization-dialog-qyMaxypW.js} +1 -1
- package/dist/client/assets/{daily-pulse-CoLeZob0.js → daily-pulse-DeWjd8Jy.js} +1 -1
- package/dist/client/assets/{discover-C547kJMw.js → discover-0qam8o_r.js} +1 -1
- package/dist/client/assets/{domain-settings-P5qccMb4.js → domain-settings-Ci1klqCY.js} +1 -1
- package/dist/client/assets/{drawer-CRbqujkT.js → drawer-NCwSL4IN.js} +1 -1
- package/dist/client/assets/{editor-RFaQaHms.js → editor-BAFV_HOz.js} +1 -1
- package/dist/client/assets/{editor-classes-DzSdR8sO.js → editor-classes-Bf1cMZ5c.js} +1 -1
- package/dist/client/assets/{empty-state-BkMrlKiw.js → empty-state-CazxAouP.js} +1 -1
- package/dist/client/assets/{empty-state-C4pckIIk.js → empty-state-CyvDawXM.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CC8UKBjD.js → extract-connection-data-Df_4NBNm.js} +1 -1
- package/dist/client/assets/{feature-gate-B-pMn93y.js → feature-gate-DKISz7u2.js} +1 -1
- package/dist/client/assets/{feature-paywall-DlBo4LL2.js → feature-paywall-BfJ3JcG2.js} +1 -1
- package/dist/client/assets/{file-explorer-DKN9shzl.js → file-explorer-DBf-vGM2.js} +1 -1
- package/dist/client/assets/{file-preview-BXp5QURM.js → file-preview-DG6sL6GL.js} +1 -1
- package/dist/client/assets/{file-share-button-02yJpkjE.js → file-share-button-v2uCK60u.js} +1 -1
- package/dist/client/assets/{file-type-icon-BEKg8VDa.js → file-type-icon-CnGkqsAH.js} +1 -1
- package/dist/client/assets/flat-project-DW1zMPL_.js +1 -0
- package/dist/client/assets/{folder-icon-unq375RQ.js → folder-icon-OnROrjIS.js} +1 -1
- package/dist/client/assets/{form-Cpn1fS0w.js → form-B0S4gwZl.js} +1 -1
- package/dist/client/assets/{general-BmnN3W6h.js → general-Bwo2AG61.js} +1 -1
- package/dist/client/assets/{home-CcAf30Bi.js → home-Pp3nSwfE.js} +1 -1
- package/dist/client/assets/{hosted-publish-feedback-DkXb3WIe.js → hosted-publish-feedback-jZYaiFNy.js} +1 -1
- package/dist/client/assets/{icon-button-CFK3NQ6z.js → icon-button-BDgagVz4.js} +1 -1
- package/dist/client/assets/{index-gn-kXq4N.js → index-AXw2yr4_.js} +1 -1
- package/dist/client/assets/{index-BHRumIhC.js → index-B9UR2St-.js} +1 -1
- package/dist/client/assets/{index-D05mvej1.js → index-BUcAISa8.js} +2 -2
- package/dist/client/assets/{index-DNnzAgp6.js → index-Bfspj4xO.js} +1 -1
- package/dist/client/assets/{index-Wv6TNaI1.js → index-CvWx2Izz.js} +1 -1
- package/dist/client/assets/{index-C4JqPt-P.js → index-Dd00K3eL.js} +1 -1
- package/dist/client/assets/{index-BXnPeal1.js → index-JOJ7PVEg.js} +1 -1
- package/dist/client/assets/{index-DyNtXlZs.js → index-VMpHqTms.js} +1 -1
- package/dist/client/assets/{index-BstXDWDk.js → index-_4HSlqk7.js} +1 -1
- package/dist/client/assets/{index-B5P6mJ_-.js → index-awJH-yt2.js} +3 -3
- package/dist/client/assets/{index-DkiNTs6p.js → index-c-E5TfxF.js} +1 -1
- package/dist/client/assets/{index-BMxoxuSr.js → index-jyhHzpR3.js} +1 -1
- package/dist/client/assets/{index-BY_Bygen.js → index-qMd-hqZw.js} +1 -1
- package/dist/client/assets/{index-redirect-DWgCkH3j.js → index-redirect-BxHx01ue.js} +1 -1
- package/dist/client/assets/{index-BtcNxrFQ.js → index-rxNSDZLc.js} +1 -1
- package/dist/client/assets/{index-DdfVrq0H.js → index-xJOQw_q2.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Dqqye4fA.js → infiniteQueryObserver-DOzqu3CQ.js} +1 -1
- package/dist/client/assets/{infra-billing-C6VLY__1.js → infra-billing-D938gqE_.js} +1 -1
- package/dist/client/assets/{input-f3VIcDXD.js → input-B74-qJgM.js} +3 -3
- package/dist/client/assets/{input-BvNGJpgE.js → input-BZCpPpnc.js} +1 -1
- package/dist/client/assets/{integration-icon-CHEBfkGE.js → integration-icon-ChciBY2o.js} +1 -1
- package/dist/client/assets/{jira-icon-DN-RVD9t.js → jira-icon-B6QeGFuc.js} +1 -1
- package/dist/client/assets/{label-Byc0yEyf.js → label-eEmb1iBr.js} +1 -1
- package/dist/client/assets/{layout-B1lqiDjR.js → layout-0OB0eIys.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BtrtyYyj.js → legacy-agents-deep-1rcXPVaq.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-cEbXG2LF.js → legacy-main-redirect-C4cHO-CO.js} +1 -1
- package/dist/client/assets/library-4m0WPS60.js +1 -0
- package/dist/client/assets/{library-tab-BtmMRnLQ.js → library-tab-1vjc8QRq.js} +1 -1
- package/dist/client/assets/{login-B3nYLEGw.js → login-Cr9q8XjG.js} +1 -1
- package/dist/client/assets/{markdown-CzotQpcK.js → markdown-B_belhjs.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-D1par7Q1.js → mcp-app-renderer-BTEXkB1o.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BvaFMPww.js → mcp-oauth-BjnYnOAT.js} +1 -1
- package/dist/client/assets/{mcp-oauth-AbAsLX7c.js → mcp-oauth-Df_GM2_g.js} +1 -1
- package/dist/client/assets/{members-0EWINC3M.js → members-CQVWPaLO.js} +1 -1
- package/dist/client/assets/{memory-DeBKfL7w.js → memory-tRje6nGV.js} +1 -1
- package/dist/client/assets/{mini-report-page-Dq7zNRd2.js → mini-report-page-PBpsjjW-.js} +1 -1
- package/dist/client/assets/{mock-board-BZAoQJtk.js → mock-board-BMnnvW9l.js} +1 -1
- package/dist/client/assets/{monaco-editor-DGXE9Zzq.js → monaco-editor-D7Wz-MKW.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B43DV0_4.js → monitoring-stats-row-DsjQfEly.js} +1 -1
- package/dist/client/assets/{multi-select-CxesYEMo.js → multi-select-VdJ2yUcb.js} +1 -1
- package/dist/client/assets/{mustache-DrDpouee.js → mustache-BzIipqEK.js} +1 -1
- package/dist/client/assets/{new-project-dialog-DSNw0Myy.js → new-project-dialog-4pgTOLZa.js} +1 -1
- package/dist/client/assets/{oauth-callback-BTWmNREt.js → oauth-callback-Cgt1SkEU.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CiVltBb1.js → oauth-callback-ai-provider-CJw6k__Q.js} +1 -1
- package/dist/client/assets/{onboarding-bZ8kU41t.js → onboarding-HsEzs1cx.js} +1 -1
- package/dist/client/assets/{openai-conversation-CuaaGonx.js → openai-conversation-C9xs6L0k.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-B1zKAGen.js → optimistic-project-sidebar-views-Dp6MX9Wo.js} +1 -1
- package/dist/client/assets/{order-monitor-day-DezLRXC3.js → order-monitor-day-kvoSv5Oy.js} +1 -1
- package/dist/client/assets/{organization-choice-Db-HDg5l.js → organization-choice-Dx3Q-TEp.js} +1 -1
- package/dist/client/assets/{orgs-B-W3rGw3.js → orgs-BvIpo_CC.js} +1 -1
- package/dist/client/assets/{page-seo-form-6DuLnecK.js → page-seo-form-BRGFtgzV.js} +1 -1
- package/dist/client/assets/{pair-BLRClNAO.js → pair-DTCbqEJJ.js} +1 -1
- package/dist/client/assets/{plan-ladder-YN2QGUeX.js → plan-ladder-BosseGj-.js} +1 -1
- package/dist/client/assets/{popover-BRP0dGOy.js → popover-2LCOzLqM.js} +1 -1
- package/dist/client/assets/{post-calendar-DOJqkrJo.js → post-calendar-B-KeJmLM.js} +1 -1
- package/dist/client/assets/{post-editor-Bh9kQF0s.js → post-editor-BBwuotw_.js} +1 -1
- package/dist/client/assets/{preview-content-Ca7hetMx.js → preview-content-BrSgIQdx.js} +1 -1
- package/dist/client/assets/{preview-dialog-DAkeNZ-D.js → preview-dialog-DxCc_83x.js} +1 -1
- package/dist/client/assets/{preview-panel-CH-U1JQP.js → preview-panel-CEvLrF57.js} +1 -1
- package/dist/client/assets/{preview-tab-wUz9gFMu.js → preview-tab-EDXeaUjq.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-BnlEUa12.js → product-picker-dialog-CJY03R9-.js} +1 -1
- package/dist/client/assets/{profile--86fFY_-.js → profile-ocYhDdf-.js} +1 -1
- package/dist/client/assets/{project-app-view-C4BR6Mmp.js → project-app-view-BIPtsxJX.js} +1 -1
- package/dist/client/assets/{project-feed-UeMqowpl.js → project-feed-2x8KDo1u.js} +1 -1
- package/dist/client/assets/{project-icon-CoMTGFyt.js → project-icon-BVi6jykh.js} +1 -1
- package/dist/client/assets/project-reports-CCEjXGH-.js +1 -0
- package/dist/client/assets/project-tasks-B_cB8jUa.js +1 -0
- package/dist/client/assets/{projects-DVDcAAbz.js → projects-B1gqzvaP.js} +1 -1
- package/dist/client/assets/{projects-empty-state-BPJ64wXe.js → projects-empty-state-msmXPtF9.js} +1 -1
- package/dist/client/assets/{prompts-vZQv-E0a.js → prompts-DPI0Lbhi.js} +1 -1
- package/dist/client/assets/record-editor-C0cJzt3s.js +1 -0
- package/dist/client/assets/{redirect-editor-CWOGGd9X.js → redirect-editor-ClyrjULu.js} +1 -1
- package/dist/client/assets/reports-7MVtogQn.js +1 -0
- package/dist/client/assets/{reports-Ber8U8S_.js → reports-D0-3BDN9.js} +1 -1
- package/dist/client/assets/{reports-onboarding-DWd9qnNo.js → reports-onboarding-D5Ohh65U.js} +1 -1
- package/dist/client/assets/{reports-tab-BjvOLVL2.js → reports-tab-CGM4OgZ-.js} +2 -2
- package/dist/client/assets/{repositories-Cdtpc8vK.js → repositories-BX0zzV9H.js} +1 -1
- package/dist/client/assets/{repository-binding-EXwhhepG.js → repository-binding-C4OsSA6m.js} +1 -1
- package/dist/client/assets/{repository-import-picker-BJHLuYxy.js → repository-import-picker-B0pfCyxB.js} +1 -1
- package/dist/client/assets/{repository-picker-BVEKwcgd.js → repository-picker-BjLyF0UU.js} +1 -1
- package/dist/client/assets/{require-capability-CxYZgREN.js → require-capability-Sr5QmqkV.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DZ3djgK0.js → required-auth-layout-BcWyX0tN.js} +1 -1
- package/dist/client/assets/{reset-password-7FkpzK0V.js → reset-password-Dv7DePXr.js} +1 -1
- package/dist/client/assets/{resizable-DFRjhuA3.js → resizable-rQgJB4MP.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-CIbcu6wD.js → resolve-tab-icon-CcwQIqdW.js} +1 -1
- package/dist/client/assets/{review-settings-DHsLGNnN.js → review-settings-DaCbRDPV.js} +1 -1
- package/dist/client/assets/{roles-Ce-B_VAm.js → roles-CMWEHao_.js} +1 -1
- package/dist/client/assets/{route-BMO8eHq2.js → route-BRpVGRtq.js} +1 -1
- package/dist/client/assets/route-Ch1P1tF0.js +1 -0
- package/dist/client/assets/{route-BSFeNlw2.js → route-CowAxBHf.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-IFQ1Yk5o.js → sandbox-lifecycle-context-Cai1YOLP.js} +1 -1
- package/dist/client/assets/{schema-BfUoakNz.js → schema-Ctps-XT5.js} +1 -1
- package/dist/client/assets/{schema-CeF-A6L_.js → schema-DFwdEHXk.js} +1 -1
- package/dist/client/assets/{scroll-area-BuGk0_hc.js → scroll-area-BquREfD9.js} +1 -1
- package/dist/client/assets/{search-input-Cvascs0V.js → search-input-B3OlXYBk.js} +1 -1
- package/dist/client/assets/{search-toggle-8XoSHYon.js → search-toggle-DlbC-qm6.js} +1 -1
- package/dist/client/assets/{secret-ciphertext-CL3ZJB5S.js → secret-ciphertext-DspRdh2f.js} +1 -1
- package/dist/client/assets/{secret-picker-Dytvhmin.js → secret-picker-QpjTt9i4.js} +1 -1
- package/dist/client/assets/{secrets-2XF20fZX.js → secrets-CweZX_-G.js} +1 -1
- package/dist/client/assets/{sections-editor-BGbg0MVG.js → sections-editor-tLPCjatE.js} +1 -1
- package/dist/client/assets/{select-BcxRUsT5.js → select-BZtkY-6Q.js} +1 -1
- package/dist/client/assets/{select-model-Cf5wadBJ.js → select-model-ypXtXaeM.js} +1 -1
- package/dist/client/assets/{seo-editor-BAc3X0rC.js → seo-editor-BThkwHKz.js} +1 -1
- package/dist/client/assets/{separator-CDdukvQ8.js → separator-WCuRepY7.js} +1 -1
- package/dist/client/assets/{settings-tab-CEr__nVA.js → settings-tab-B_OtBvtL.js} +1 -1
- package/dist/client/assets/{sheet-MLYvpvbU.js → sheet-wIGY1BhL.js} +1 -1
- package/dist/client/assets/{shell-layout-724i__Wv.js → shell-layout-C6in_tdZ.js} +1 -1
- package/dist/client/assets/site-editor-DN_jWyDx.js +1 -0
- package/dist/client/assets/{site-editor-toast-D5dcnvPF.js → site-editor-toast-DzpqzRIN.js} +1 -1
- package/dist/client/assets/{skills-DjYBgyTk.js → skills-CfpoVQzd.js} +1 -1
- package/dist/client/assets/{slider-DPrJ3-c2.js → slider-DlGWUSHl.js} +1 -1
- package/dist/client/assets/{sortable.esm-CB3TqmDh.js → sortable.esm-CX1GpTrE.js} +1 -1
- package/dist/client/assets/{sso-CHTZTnHu.js → sso-YsEFJ35H.js} +1 -1
- package/dist/client/assets/{suggestion-wjyEiM3d.js → suggestion-BDDkx8wt.js} +1 -1
- package/dist/client/assets/{switch-Bml_T3Qz.js → switch-ByNrRBdU.js} +1 -1
- package/dist/client/assets/{symbol-BI8lYa6g.js → symbol-BMdRj-zf.js} +1 -1
- package/dist/client/assets/{synced-repos-DPqC2Jws.js → synced-repos-CTcDXXZs.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-0QOKkYa2.js → tab-icon-glyph-DqaNYjGu.js} +1 -1
- package/dist/client/assets/{table-gj14KciX.js → table-BnEG4fsZ.js} +1 -1
- package/dist/client/assets/{tabs-BhOBQud_.js → tabs-CwSp61cB.js} +1 -1
- package/dist/client/assets/{task-board-BVpRfyhG.js → task-board-hdrVwFVS.js} +1 -1
- package/dist/client/assets/{task-route-BG6GqN_V.js → task-route-CxU8BSZk.js} +1 -1
- package/dist/client/assets/{task-status-45w0gLpN.js → task-status-DpKiRcZA.js} +1 -1
- package/dist/client/assets/taskboard-analytics-9U6nRSeM.js +1 -0
- package/dist/client/assets/tasks-9qvqdnze.js +1 -0
- package/dist/client/assets/{tasks-CLwTmsJ6.js → tasks-Ckh-cnxw.js} +1 -1
- package/dist/client/assets/{textarea-0AY2HDgW.js → textarea-CRyjwEqe.js} +1 -1
- package/dist/client/assets/{thread-analytics-DJsGipjG.js → thread-analytics-BFx9-ViN.js} +1 -1
- package/dist/client/assets/{thread-intent-oqwOpeN9.js → thread-intent-DhkLy13k.js} +1 -1
- package/dist/client/assets/{thread-route-l3Qo5S-E.js → thread-route-BzAkvXZO.js} +1 -1
- package/dist/client/assets/{thread-route-DHova7iz.js → thread-route-iBVNlpET.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-BevXM8QK.js → thread-sheet-body-CCi8emNA.js} +1 -1
- package/dist/client/assets/{time-range-picker-DGZ1k38N.js → time-range-picker-BrfdBzqI.js} +1 -1
- package/dist/client/assets/{toggle-group-Dq44TMds.js → toggle-group-Cke1wKDH.js} +1 -1
- package/dist/client/assets/{tool-namespace-BrVPsXeX.js → tool-namespace-BXFHxu5_.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DL4Lx8lo.js → toolbar-icon-button-WOmWcuPV.js} +1 -1
- package/dist/client/assets/{tooltip-bUQOQa7V.js → tooltip-Npd1IBFB.js} +1 -1
- package/dist/client/assets/{tooltipContext-qP0WSM-N.js → tooltipContext-C_RxKwqR.js} +1 -1
- package/dist/client/assets/{track-fGt0oqX1.js → track-DWiQitlP.js} +1 -1
- package/dist/client/assets/{types-aDeKLUKc.js → types-JYftUHor.js} +1 -1
- package/dist/client/assets/{url-slug-BxPt7IKX.js → url-slug-psmAhJiF.js} +1 -1
- package/dist/client/assets/{usage-stats-DyepwXzI.js → usage-stats-DeKdK9SW.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BWS-kzjG.js → use-ai-providers-CBBzjFhl.js} +1 -1
- package/dist/client/assets/{use-app-takeover-BeifZEUu.js → use-app-takeover-zY0NJ0sD.js} +1 -1
- package/dist/client/assets/{use-automations-CpqZoOF8.js → use-automations-CjaoEOVQ.js} +1 -1
- package/dist/client/assets/{use-autosave-Ch4IhRzV.js → use-autosave-C0hpkW37.js} +1 -1
- package/dist/client/assets/{use-chat-navigation-BxUcSwDs.js → use-chat-navigation-Cxan89R8.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DBHdRcgc.js → use-clock-tick-DDv64CjX.js} +1 -1
- package/dist/client/assets/{use-connect-companion-xpkpChp6.js → use-connect-companion-Cq1d8llk.js} +1 -1
- package/dist/client/assets/{use-connection-BThCD02o.js → use-connection-DD-60zit.js} +1 -1
- package/dist/client/assets/{use-content-sync-1a74Mfy8.js → use-content-sync-B6jQ4Cv-.js} +1 -1
- package/dist/client/assets/{use-copy-CIKivmGg.js → use-copy-D8rIRHRy.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BSg6bI1H.js → use-create-virtual-mcp-C6rhnZK4.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CpOIvaKP.js → use-date-fns-locale-BHSKPU1I.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-iZ-ciKPa.js → use-debounced-autosave-DlgW8h0y.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CBaPWhkT.js → use-debounced-value-DAimUErS.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CeMi8OEE.js → use-deco-credits-g8JxcvuQ.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BRhYtpoz.js → use-decopilot-events-1Ue6t9uD.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Cjxx4sX7.js → use-delete-connection-aWCoQCSI.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-B-HAzjo2.js → use-deployment-admin-C_cAoqcz.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-CaRRA2I7.js → use-ensure-project-folder-COMVsdzC.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-Dh7O6LMl.js → use-fast-preview-draft-url-CnqLh_PK.js} +1 -1
- package/dist/client/assets/{use-file-configs-BQC6XyYZ.js → use-file-configs-Yj2yOnDl.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BFH6ALbG.js → use-infinite-scroll-Dzt1HFZA.js} +1 -1
- package/dist/client/assets/{use-join-requests-CP2xJ3Ri.js → use-join-requests-Ca0-ZmOx.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-CIP4ocar.js → use-main-panel-tabs-Dw0WqVQl.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CYey3yvS.js → use-mcp-auth-status-Bkm1SdFb.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BBXqVg_9.js → use-mcp-client-CXzIAVI_.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Cj-ktde6.js → use-mcp-prompts-B04lynbc.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-kJXySVJI.js → use-mcp-tools-DOnkoD66.js} +1 -1
- package/dist/client/assets/{use-members-CiZWIC0d.js → use-members-DOrbNcAJ.js} +1 -1
- package/dist/client/assets/{use-mobile-DJpnvK3z.js → use-mobile-DszEwU_T.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Bl8cogEE.js → use-navigate-to-agent-BE6ZEPUi.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-XnMbaK0a.js → use-open-billing-url-DUKZxYlJ.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CTNehkS3.js → use-org-auth-client-CpM0RfU1.js} +1 -1
- package/dist/client/assets/{use-org-fs-Dq13jVHU.js → use-org-fs-D7bxmks4.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CvLH4wbE.js → use-org-repo-syncs-DYJrqXto.js} +1 -1
- package/dist/client/assets/{use-org-sso-ChQNO61D.js → use-org-sso-Cmy5SNH_.js} +1 -1
- package/dist/client/assets/{use-organization-roles-RGMgKsJZ.js → use-organization-roles-Ch4iCVoq.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BPwGtPPE.js → use-organization-settings-DjWvQexi.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-qwoVIGbd.js → use-panel-navigate-CeDVVCkS.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-DjwhxozD.js → use-project-native-view-presence-YWMyr72T.js} +1 -1
- package/dist/client/assets/{use-project-scope-BJnBJfVB.js → use-project-scope-5YpNgUL6.js} +1 -1
- package/dist/client/assets/{use-recent-apps-B9OM3iYn.js → use-recent-apps-BY5qGNsG.js} +1 -1
- package/dist/client/assets/{use-releases-DLIUGm3k.js → use-releases-DNcZGEW5.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CYeJxpI-.js → use-reports-diagnostic-CkT6fJ7D.js} +1 -1
- package/dist/client/assets/{use-secrets-9ixMQP9c.js → use-secrets-uk71zh7-.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-Cmtd6ng9.js → use-section-preview-base-BYZiHlaA.js} +1 -1
- package/dist/client/assets/{use-tags-B0ggclX3.js → use-tags-CKSnijO-.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-B6E6Fkfq.js → use-task-board-analytics-q-mfDhSM.js} +1 -1
- package/dist/client/assets/{use-task-board-events-CiIHX-ua.js → use-task-board-events-D29THDyx.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-Cb0mLe68.js → use-task-board-item-prs-C32PmmQm.js} +1 -1
- package/dist/client/assets/{use-task-board-items-Ic-4hEeS.js → use-task-board-items-Cj9ZgoVC.js} +1 -1
- package/dist/client/assets/{use-task-metadata-BjhVnC7Q.js → use-task-metadata-DnDtZNKw.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-CHKh8wgx.js → use-thread-analytics-DqFvOcsE.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-V5U3Y6kh.js → use-thread-outputs-C6dqZco1.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DRIZEKZQ.js +1 -0
- package/dist/client/assets/{useQueries-Cfhj2y2h.js → useQueries-Ds44Skcl.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DLwZomQy.js +1 -0
- package/dist/client/assets/{users-DSABHHiq.js → users-CuQ1a_93.js} +1 -1
- package/dist/client/assets/{utils-DX56o_OV.js → utils-B4VCCAxN.js} +1 -1
- package/dist/client/assets/{variant-calendar-CYqJUjai.js → variant-calendar-i6jj6ehs.js} +1 -1
- package/dist/client/assets/{variant-draft-pointer-lxnOTSSh.js → variant-draft-pointer-DOXokiAV.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DgWgfxpg.js → view-mode-toggle-7-N5f6LY.js} +1 -1
- package/dist/client/assets/{virtual-mcp-QJZm8dxv.js → virtual-mcp-BT4ljKsC.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-CYJqfo52.js → watch-sse-pool-CBn5OZ_Z.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +588 -588
- package/package.json +1 -1
- package/dist/client/assets/agent-app-D9eg50A5.js +0 -1
- package/dist/client/assets/agent-deck-1gupRcJZ.js +0 -1
- package/dist/client/assets/agent-library-CZsORtzd.js +0 -1
- package/dist/client/assets/agent-library-file-CqqayOGV.js +0 -1
- package/dist/client/assets/agent-settings-XcvMA_9D.js +0 -1
- package/dist/client/assets/agent-site-editor-code-Bh5sCFsy.js +0 -2
- package/dist/client/assets/agent-site-editor-content-BtuYGgjS.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-Cdx_zMGc.js +0 -1
- package/dist/client/assets/agent-view-UKvSEWLk.js +0 -1
- package/dist/client/assets/api-keys-eHR4JGKj.js +0 -1
- package/dist/client/assets/cms-settings-editor-CXWd5Zp3.js +0 -1
- package/dist/client/assets/flat-project-COP0FJZl.js +0 -1
- package/dist/client/assets/library-Dbl7_fbA.js +0 -1
- package/dist/client/assets/project-reports-Bqaec69c.js +0 -1
- package/dist/client/assets/project-tasks-89FCuOFj.js +0 -1
- package/dist/client/assets/record-editor-BO4FTIEZ.js +0 -1
- package/dist/client/assets/reports-CZIAXvrm.js +0 -1
- package/dist/client/assets/route-CFEus4jk.js +0 -1
- package/dist/client/assets/site-editor-E4EuEJwx.js +0 -1
- package/dist/client/assets/taskboard-analytics-DjdlsG9e.js +0 -1
- package/dist/client/assets/tasks-5Sm7zKel.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BzJxgycA.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-dyLsyxo4.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-D05mvej1.js";import{u as _}from"./useInfiniteQuery-BzJxgycA.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-BUcAISa8.js";import{u as _}from"./useInfiniteQuery-DRIZEKZQ.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-CvLH4wbE.js → use-org-repo-syncs-DYJrqXto.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-BUcAISa8.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-BUcAISa8.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-RGMgKsJZ.js → use-organization-roles-Ch4iCVoq.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as E}from"./use-org-auth-client-
|
|
1
|
+
import{u as E}from"./use-org-auth-client-CpM0RfU1.js";import{a2 as I,m as N,K as b}from"./index-BUcAISa8.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-BUcAISa8.js";import{D as G,o as x,a as P}from"./schema-Ctps-XT5.js";import{r as R}from"./task-board-hdrVwFVS.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-qwoVIGbd.js → use-panel-navigate-CeDVVCkS.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-BUcAISa8.js";import{b as I}from"./thread-route-iBVNlpET.js";import{a as R}from"./use-project-scope-5YpNgUL6.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-BUcAISa8.js";import{a as z}from"./thread-route-iBVNlpET.js";import{u as G}from"./use-panel-navigate-CeDVVCkS.js";import{b as X,n as U,l as Z,H as ee}from"./thread-intent-DhkLy13k.js";import{u as te}from"./use-file-configs-Yj2yOnDl.js";import{e as ne}from"./use-organization-settings-DjWvQexi.js";import{e as x,a as F}from"./repository-binding-C4OsSA6m.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-BUcAISa8.js";import{i as k,c as C,p as O}from"./repository-binding-C4OsSA6m.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-BUcAISa8.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-zY0NJ0sD.js";import{c as h}from"./repository-binding-C4OsSA6m.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-BUcAISa8.js";import{a as E,f as P}from"./repository-binding-C4OsSA6m.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-CYeJxpI-.js → use-reports-diagnostic-CkT6fJ7D.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as N,a2 as Q,W as F,J as A,m as f,K as T,f9 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,f9 as L,Y as K,M}from"./index-BUcAISa8.js";import{m as O}from"./use-mcp-client-CXzIAVI_.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-BUcAISa8.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-BUcAISa8.js";import{a as G,e as H}from"./UserSquare-BPqJsNeY.js";import{b as ne}from"./agent-icon-u2ivNkJK.js";import{i as ce}from"./SearchMd-CuIII2sM.js";import{O as Y,Q as ae,T as _}from"./blocks-tab-states-B0RpWAaK.js";import{az as fe,ad as ue,w as de,aA as me,H as ve}from"./secret-ciphertext-DspRdh2f.js";import{d as X,r as pe}from"./section-preview-url-7zfngvgW.js";import{a as xe}from"./input-B74-qJgM.js";import{c as he,u as ge,K as we}from"./site-editor-toast-DzpqzRIN.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-BUcAISa8.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-BUcAISa8.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-CiIHX-ua.js → use-task-board-events-D29THDyx.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"./task-board-
|
|
1
|
+
import{a as m}from"./task-board-hdrVwFVS.js";import{r as e}from"./index-BUcAISa8.js";import{t as g}from"./watch-sse-pool-CBn5OZ_Z.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-BUcAISa8.js";import{e as B}from"./watch-sse-pool-CBn5OZ_Z.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-Ic-4hEeS.js → use-task-board-items-Cj9ZgoVC.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,l as H,j as J,f8 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,f8 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-BUcAISa8.js";import{u as ee}from"./use-task-board-events-D29THDyx.js";import{b as te}from"./use-decopilot-events-1Ue6t9uD.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-BUcAISa8.js";import{u as m}from"./thread-intent-DhkLy13k.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-CHKh8wgx.js → use-thread-analytics-DqFvOcsE.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-BUcAISa8.js";import{a as O}from"./watch-sse-pool-CBn5OZ_Z.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-V5U3Y6kh.js → use-thread-outputs-C6dqZco1.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-BUcAISa8.js";import{f}from"./chat-context-DL44ik-l.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-DOzqu3CQ.js";import{dq as i}from"./index-BUcAISa8.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-BUcAISa8.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-DOzqu3CQ.js";import{dq as u,dE as n}from"./index-BUcAISa8.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-BUcAISa8.js";import{C as G}from"./collection-table-wrapper-DYmuLoSL.js";import{E as L}from"./empty-state-CazxAouP.js";import{S as H}from"./search-input-B3OlXYBk.js";import{A as X}from"./avatar-k7zVZ1nb.js";import{B as D}from"./badge-BE7xUmDV.js";import{u as Z}from"./use-debounced-value-DAimUErS.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-BnEG4fsZ.js";import"./ArrowUp-CrfIcCHY.js";import"./SearchMd-CuIII2sM.js";import"./User01-N2rUxuZL.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-BSgJ_qOu.js";import{a as j}from"./Image01-BoNtuy7T.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};
|