decocms 4.584.3 → 4.584.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-CskIH_fW.js → AlertCircle-mj0sz0gj.js} +1 -1
- package/dist/client/assets/{AreaChart-TNwx8Yro.js → AreaChart-DSUaBnyJ.js} +1 -1
- package/dist/client/assets/{ArrowLeft-C5BB_E0S.js → ArrowLeft--TSM2Ux3.js} +1 -1
- package/dist/client/assets/{ArrowRight-DIxkFfbJ.js → ArrowRight-BVFSrvKf.js} +1 -1
- package/dist/client/assets/{ArrowUp-C6CxODIg.js → ArrowUp-D2bbOB2w.js} +1 -1
- package/dist/client/assets/{BookOpen01-DsqzJN02.js → BookOpen01-CTUEdBiB.js} +1 -1
- package/dist/client/assets/{CartesianChart-D4yzutPM.js → CartesianChart-DynFqoj3.js} +1 -1
- package/dist/client/assets/{CategoricalChart-CU64V2HR.js → CategoricalChart-_BlSk5IS.js} +1 -1
- package/dist/client/assets/{CheckCircle-Qojp4H9f.js → CheckCircle-BsBF4S8u.js} +1 -1
- package/dist/client/assets/{ChevronDown-izQyrZHF.js → ChevronDown-CNlehUMA.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-CQi5paCV.js → ChevronSelectorVertical-BdBrg7yc.js} +1 -1
- package/dist/client/assets/{ChevronUp-B-5-9hXJ.js → ChevronUp-BIaMfxq-.js} +1 -1
- package/dist/client/assets/{CreditCard01-B2dONSLn.js → CreditCard01-gHUc2u28.js} +1 -1
- package/dist/client/assets/{Eye-wZ1k-Snw.js → Eye-Xo5rS9iJ.js} +1 -1
- package/dist/client/assets/{File02-DbXQkzJR.js → File02-uZRQiPOp.js} +1 -1
- package/dist/client/assets/{Globe04-we1am6C9.js → Globe04-DhsnPBDD.js} +1 -1
- package/dist/client/assets/{Image01-DLFC70j_.js → Image01-C5Xqhwp5.js} +1 -1
- package/dist/client/assets/{Key01-DR1WEokD.js → Key01-h9Y3uaT_.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CotbVucz.js → LayoutLeft-CPMSR00X.js} +1 -1
- package/dist/client/assets/{LinkBroken01-D3Zxp-Rk.js → LinkBroken01-CxV1rDqL.js} +1 -1
- package/dist/client/assets/{Minimize01-BlpbOmPN.js → Minimize01-BIynG3Ze.js} +1 -1
- package/dist/client/assets/{Minus-DeaTdWpF.js → Minus-D55MDhYc.js} +1 -1
- package/dist/client/assets/{Monitor01-W3mg9TWb.js → Monitor01-CBUOgSaC.js} +1 -1
- package/dist/client/assets/{Play-BIK7xiGY.js → Play-zsnTCnBK.js} +1 -1
- package/dist/client/assets/{Plus-D393VgSW.js → Plus-DAYIm6ow.js} +1 -1
- package/dist/client/assets/{ReferenceLine-CW0plYOb.js → ReferenceLine-Ccilwreq.js} +1 -1
- package/dist/client/assets/{SearchMd-BrITMGt7.js → SearchMd-CTSUPag9.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BzFnFHva.js → ShoppingBag01-CF4EYiC_.js} +1 -1
- package/dist/client/assets/{Sun-DensIvnG.js → Sun-B-xu6eHR.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-Kti3AXOg.js → SwitchHorizontal01-qTGCOGX6.js} +1 -1
- package/dist/client/assets/{Tool01-BvaBONyM.js → Tool01-Bscrvuft.js} +1 -1
- package/dist/client/assets/{Tooltip-D0fKs0aB.js → Tooltip-EHWPdrLL.js} +1 -1
- package/dist/client/assets/{Trash01-BytHt_aS.js → Trash01-CevYpZEM.js} +1 -1
- package/dist/client/assets/{TrendUp01-Clw0UTvC.js → TrendUp01-DMf7H3tv.js} +1 -1
- package/dist/client/assets/{Upload01-Lx08Zck6.js → Upload01-C_8HEOMT.js} +1 -1
- package/dist/client/assets/{UserCheck01-CNvIr_Bs.js → UserCheck01-4mEtfdkD.js} +1 -1
- package/dist/client/assets/{UserSquare-Bt9swQBx.js → UserSquare-oo1b4ulW.js} +1 -1
- package/dist/client/assets/{Users01-B9wah-LU.js → Users01-av_p4B03.js} +1 -1
- package/dist/client/assets/{XClose-GLz4aiio.js → XClose-WYCPZpkD.js} +1 -1
- package/dist/client/assets/{Zap-0CAagMpp.js → Zap-C-VVHO-P.js} +1 -1
- package/dist/client/assets/{access-gate-BtTxXcQp.js → access-gate-CBj6VxJ7.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BY8lCHnH.js → add-connection-dialog-CVC64Gmd.js} +1 -1
- package/dist/client/assets/agent-app-Ba7JDwY6.js +1 -0
- package/dist/client/assets/{agent-assets-D8Py45Uz.js → agent-assets-DlGJDJr0.js} +1 -1
- package/dist/client/assets/{agent-automation-DljhJDBg.js → agent-automation-e9KFVJPg.js} +1 -1
- package/dist/client/assets/{agent-automations-DOS8FoiU.js → agent-automations-DHP9-Rvp.js} +1 -1
- package/dist/client/assets/{agent-blog-99wHBLkt.js → agent-blog-MchyO8b5.js} +2 -2
- package/dist/client/assets/{agent-blog-post-OytTPVN1.js → agent-blog-post-DUN7iPWt.js} +2 -2
- package/dist/client/assets/{agent-calendar-Cl55AuTg.js → agent-calendar-De-Im46e.js} +1 -1
- package/dist/client/assets/{agent-capabilities-C3VQ3u0A.js → agent-capabilities-DEMFK1PG.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DdhP4OAl.js → agent-connect-sources-DkfqQk5b.js} +1 -1
- package/dist/client/assets/agent-deck-Cx2e4txV.js +1 -0
- package/dist/client/assets/{agent-e2e-CG35I5uK.js → agent-e2e-cuAg7vvT.js} +1 -1
- package/dist/client/assets/agent-experiments-CKleoVAf.js +1 -0
- package/dist/client/assets/agent-file-BrkmoibI.js +1 -0
- package/dist/client/assets/{agent-hosting-sbqKLsvS.js → agent-hosting-D__8hPs9.js} +1 -1
- package/dist/client/assets/{agent-icon-D5QYtdVU.js → agent-icon-Bq_Z7esB.js} +1 -1
- package/dist/client/assets/agent-library-BfblIp1v.js +1 -0
- package/dist/client/assets/agent-library-file-C7p2ZAks.js +1 -0
- package/dist/client/assets/agent-overview-NZBYrRRV.js +1 -0
- package/dist/client/assets/{agent-releases-CeKkBGv0.js → agent-releases-D4ESN3iT.js} +1 -1
- package/dist/client/assets/agent-settings-iY554avh.js +1 -0
- package/dist/client/assets/{agent-site-editor-Cu4ODQP2.js → agent-site-editor-DBCTlamd.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-CaQ191md.js +2 -0
- package/dist/client/assets/agent-site-editor-content-4-gXvHBG.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-BE075svj.js +1 -0
- package/dist/client/assets/agent-view-D12VaGvy.js +1 -0
- package/dist/client/assets/{agent-view-guard-D1lO2vW8.js → agent-view-guard-BZTSZPH3.js} +1 -1
- package/dist/client/assets/{ai-providers-DQOj4mTY.js → ai-providers-Bd027SSh.js} +1 -1
- package/dist/client/assets/{alert-B1ykk3Se.js → alert-fpttYoSQ.js} +1 -1
- package/dist/client/assets/{analytics-sections-Cz6R4Sr8.js → analytics-sections-BqryzJvo.js} +1 -1
- package/dist/client/assets/api-keys-CQkJKCWp.js +1 -0
- package/dist/client/assets/{api-keys-DIQICz5g.js → api-keys-DLlJejJF.js} +1 -1
- package/dist/client/assets/{app-editor-y0i4PDuA.js → app-editor-CPq25Dfa.js} +1 -1
- package/dist/client/assets/{asset-utils-BVsfeHMT.js → asset-utils-C_CFQkKi.js} +1 -1
- package/dist/client/assets/{auth-DqmRg67b.js → auth-BOZ5swZI.js} +1 -1
- package/dist/client/assets/{auth-catchall-BWS6j8qC.js → auth-catchall-DXChUDcZ.js} +1 -1
- package/dist/client/assets/{auth-entry-DeuS0hmo.js → auth-entry-DMbaj7KI.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Bv8njBJj.js → auth-split-layout-DNd6b-pH.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-3ervNAid.js → authenticate-and-persist-oauth-Cj46Ik0_.js} +1 -1
- package/dist/client/assets/{automation-list-row-BmmU1BRl.js → automation-list-row-Cpitkm-C.js} +1 -1
- package/dist/client/assets/{automation-runs-DB872-04.js → automation-runs-BxBjhLC7.js} +1 -1
- package/dist/client/assets/{automations-CFVFCrV7.js → automations-DhtUKYcW.js} +1 -1
- package/dist/client/assets/{badge-DtQ2otcX.js → badge-CEYLDtOG.js} +1 -1
- package/dist/client/assets/{block-document-DaqfuEJg.js → block-document-DJdZyw2U.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-BxrrDSR_.js → blocks-preview-workspace-context-LI4fVaaR.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-Nf9dYIUl.js → blocks-tab-states-Bx0tgd5u.js} +1 -1
- package/dist/client/assets/{blog-preview-url-DYOtOfTF.js → blog-preview-url-6gNfi5Cv.js} +1 -1
- package/dist/client/assets/{blog-schema-CgT3z9DE.js → blog-schema-BKDvfgHw.js} +1 -1
- package/dist/client/assets/{blog-source-gate-fssHKEYj.js → blog-source-gate-BClmYTyo.js} +1 -1
- package/dist/client/assets/{blog-view-gate-V1kFVdot.js → blog-view-gate-eJ0uCj97.js} +1 -1
- package/dist/client/assets/{buckets-BZzsOzuI.js → buckets-DWNc5IQi.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CUu0NcYy.js → build-improve-prompt-doc-CncoFUT6.js} +1 -1
- package/dist/client/assets/{calendar-BrtfWwHR.js → calendar-B0VrIuVV.js} +1 -1
- package/dist/client/assets/{capability-load-error-Bg2ZZtwq.js → capability-load-error-D7_TKHDu.js} +1 -1
- package/dist/client/assets/{category-editor-GmBXzipw.js → category-editor-Jfh1FEbD.js} +1 -1
- package/dist/client/assets/{category-tree-DjteOax2.js → category-tree-T_JTuIiu.js} +1 -1
- package/dist/client/assets/{chart-CMRahf48.js → chart-Ef5OJL7Y.js} +1 -1
- package/dist/client/assets/{chat-context-CBri2v4z.js → chat-context-BUMEnIPW.js} +1 -1
- package/dist/client/assets/{chat-draft-CZrPo5ex.js → chat-draft-B7hvjq7e.js} +1 -1
- package/dist/client/assets/{checkbox-CPQZwsIU.js → checkbox-BUvWR-iD.js} +1 -1
- package/dist/client/assets/{choose-editor-DDWOzMsI.js → choose-editor-C_rrZDqX.js} +1 -1
- package/dist/client/assets/{cli-auth-success-C9GGJpAj.js → cli-auth-success-CIy6cPVO.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-CzEwCO_d.js → cms-settings-editor-agl-pdfk.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-C0xGLMK-.js → cms-store-drafts-BNAdDXxB.js} +1 -1
- package/dist/client/assets/{collapsible-BTBIoLOv.js → collapsible-DYCInqz3.js} +1 -1
- package/dist/client/assets/{collection-detail-C8TRCzbT.js → collection-detail-BX7pAFmI.js} +1 -1
- package/dist/client/assets/{collection-display-button-UrysGpFG.js → collection-display-button-C3xi0T_X.js} +1 -1
- package/dist/client/assets/{collection-search-DwSA3tBi.js → collection-search-CMlKHTQ0.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DNGSYrfT.js → collection-table-wrapper-DbIa5pBT.js} +1 -1
- package/dist/client/assets/{collection-tabs-D2T_5cZI.js → collection-tabs-ZW6Qb_Ul.js} +1 -1
- package/dist/client/assets/{combobox-D1SOJ26i.js → combobox-CMR7JQ5s.js} +1 -1
- package/dist/client/assets/{command-BQx6PdJK.js → command-DAachgGl.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-sWdiKDdE.js → companion-mcps-section-DFAviA9V.js} +1 -1
- package/dist/client/assets/{config-C1xp8gjV.js → config-CVrGKu1z.js} +1 -1
- package/dist/client/assets/{connect-Ci_x2fw3.js → connect-Dv780Ao_.js} +1 -1
- package/dist/client/assets/{connect-key-DkiQW8kq.js → connect-key-BcTw1Dit.js} +1 -1
- package/dist/client/assets/{connect-layout-D7MWpc_a.js → connect-layout-DVKIDoAk.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-C1INP371.js → connect-source-dialog-DmvQjMo_.js} +1 -1
- package/dist/client/assets/{connection-Dmlr1I48.js → connection-CqG6Tj46.js} +1 -1
- package/dist/client/assets/{connection-card-Cc0PqyDQ.js → connection-card-CMRGPAUW.js} +1 -1
- package/dist/client/assets/{connection-detail-CQ8U0Y2y.js → connection-detail-B2bDZqoS.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DpLrG14n.js → connection-form-helpers-BliOgdtt.js} +1 -1
- package/dist/client/assets/{connection-slug-vfKrdCoS.js → connection-slug-BMyTAhb7.js} +1 -1
- package/dist/client/assets/{connections-CxLh8vBe.js → connections-osURCVgm.js} +1 -1
- package/dist/client/assets/{content-tab-BDfMY2gO.js → content-tab-B1BKIfBg.js} +3 -3
- package/dist/client/assets/{context-B2oAsWON.js → context-SebnQ-fG.js} +1 -1
- package/dist/client/assets/{context-menu-CB2myfv0.js → context-menu-dPQDOknl.js} +1 -1
- package/dist/client/assets/{context-shell-CP2ITMNQ.js → context-shell-CU-clPo7.js} +3 -3
- package/dist/client/assets/{create-organization-dialog-Dt_BzSOX.js → create-organization-dialog-BMVp8RKI.js} +1 -1
- package/dist/client/assets/{daily-pulse-BDqTGNoL.js → daily-pulse-BIfjhIvm.js} +1 -1
- package/dist/client/assets/{delete-copy-DFx9_UPp.js → delete-copy-Dyr7i9lK.js} +1 -1
- package/dist/client/assets/{device-hint-CJUpMQMI.js → device-hint-DBfDHhL1.js} +1 -1
- package/dist/client/assets/{discover-CrPGz4AP.js → discover-4UiUWkTa.js} +1 -1
- package/dist/client/assets/{domain-settings-sBZEQLx0.js → domain-settings-l_JDVQfq.js} +1 -1
- package/dist/client/assets/{drawer-C2xp86Ob.js → drawer-BtNmmbgW.js} +1 -1
- package/dist/client/assets/{editor-CGJt_r4E.js → editor-DJNkhCaU.js} +1 -1
- package/dist/client/assets/{editor-classes-DT54mSVa.js → editor-classes-D6VscvFm.js} +1 -1
- package/dist/client/assets/{empty-message-CqlhlFCE.js → empty-message-BFHsH7_h.js} +1 -1
- package/dist/client/assets/{empty-state-BbWCdL3a.js → empty-state-FI4NppsL.js} +1 -1
- package/dist/client/assets/{empty-state-CD32p6hk.js → empty-state-Y9RPHES1.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-vqlSDWa2.js → experiments-tab-choice-Bp3jeDLT.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CC3YJHpF.js → extract-connection-data-jaNfclWY.js} +1 -1
- package/dist/client/assets/{feature-gate-D-opfS1O.js → feature-gate-32y7GiUu.js} +1 -1
- package/dist/client/assets/{feature-paywall-BY5puKwA.js → feature-paywall-nyy14OlO.js} +1 -1
- package/dist/client/assets/{file-explorer-CF1_K8FK.js → file-explorer-Berv-DjA.js} +1 -1
- package/dist/client/assets/{file-preview-B0ERgC1p.js → file-preview-DOlPWZsT.js} +1 -1
- package/dist/client/assets/{file-share-button-CWnV8AKp.js → file-share-button-fnsd2V0Q.js} +1 -1
- package/dist/client/assets/{file-type-icon-BIW0hyKt.js → file-type-icon-Bw6tHUJI.js} +1 -1
- package/dist/client/assets/{folder-icon-87oARTj6.js → folder-icon-A6dxvF3y.js} +1 -1
- package/dist/client/assets/{form-jLka6XRk.js → form-CE_i7Gc_.js} +1 -1
- package/dist/client/assets/{frame-navigation-CKH88YcA.js → frame-navigation-D0o7MHwc.js} +1 -1
- package/dist/client/assets/{gateway-client-_i1HQU44.js → gateway-client-CuVQGtSK.js} +1 -1
- package/dist/client/assets/{general-CO62cXdH.js → general-CF4LBOhX.js} +1 -1
- package/dist/client/assets/{github-icon-7pXUwZ9H.js → github-icon-BBtraw32.js} +1 -1
- package/dist/client/assets/{held-block-view-C5dw_cIK.js → held-block-view-BCDffeao.js} +1 -1
- package/dist/client/assets/{home-CYvbKlsL.js → home-D5e51VDk.js} +1 -1
- package/dist/client/assets/{home-overview-DGJhRoD_.js → home-overview-CvjbBnOC.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-ytMUrHmd.js → hosted-reconcile-BV7FtBoJ.js} +1 -1
- package/dist/client/assets/{icon-button-C0zGF0XG.js → icon-button-vJpGdaXv.js} +1 -1
- package/dist/client/assets/{index-l98H0pqO.js → index-BBKDsc5X.js} +1 -1
- package/dist/client/assets/{index-BrIGv0lM.js → index-BDN2Il8W.js} +1 -1
- package/dist/client/assets/{index-DAJb2qp5.js → index-BFZAeRbT.js} +1 -1
- package/dist/client/assets/{index-DfBfkfSx.js → index-BO5G51Y2.js} +1 -1
- package/dist/client/assets/{index-DPOIY_Am.js → index-BfWp2Wnw.js} +3 -3
- package/dist/client/assets/{index-BzPwt0eH.js → index-Bq8aKp2l.js} +1 -1
- package/dist/client/assets/{index-DRv6EPiE.js → index-C-SbeINf.js} +1 -1
- package/dist/client/assets/{index-Bj5swkEO.js → index-CJvXv5nj.js} +1 -1
- package/dist/client/assets/{index-oI_u2kBo.js → index-C_tC1dxx.js} +1 -1
- package/dist/client/assets/{index-DLgMTWWc.js → index-CcEK8GbM.js} +1 -1
- package/dist/client/assets/{index-Hxzn04FB.js → index-Cu5PtngA.js} +1 -1
- package/dist/client/assets/{index-QeA7kseb.js → index-CvQo8gKP.js} +1 -1
- package/dist/client/assets/{index-28TTOZoW.js → index-DN6wMhlh.js} +1 -1
- package/dist/client/assets/{index-CogLvxvp.js → index-DVC5Xh86.js} +1 -1
- package/dist/client/assets/{index-BAv1oGjp.js → index-DqFWx3BB.js} +1 -1
- package/dist/client/assets/{index-BkW6CZ0q.js → index-DvdlZugw.js} +1 -1
- package/dist/client/assets/{index-B3gUNYbE.js → index-FE1RDBz7.js} +1 -1
- package/dist/client/assets/{index-redirect-C8V2b59q.js → index-redirect-Bl5G9WWk.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DJGFKTxU.js → infiniteQueryObserver-1nr0P0K0.js} +1 -1
- package/dist/client/assets/{infra-billing-NTUbCctn.js → infra-billing-ho67U0rR.js} +1 -1
- package/dist/client/assets/{input-0zme4RkK.js → input-BJ5cUSYm.js} +3 -3
- package/dist/client/assets/{input-CsHX4qLN.js → input-BNlFS4tL.js} +1 -1
- package/dist/client/assets/{integration-icon-0IRz-_BB.js → integration-icon-C4zzzxaS.js} +1 -1
- package/dist/client/assets/{item-actions-Conwh7gT.js → item-actions-B-wWhBMR.js} +1 -1
- package/dist/client/assets/{jira-icon-OeOgPje5.js → jira-icon-geKtCB2v.js} +1 -1
- package/dist/client/assets/{label-BdMRZwGH.js → label-CWaQ3ANC.js} +1 -1
- package/dist/client/assets/{layout-Dl8uG_dr.js → layout-D8a54-AV.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-D89y9ynC.js → legacy-admin-welcome-dialog-BnEG9TvC.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BXEBG0CI.js → legacy-agents-deep-D40bR2el.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-C1RiG4K9.js → legacy-main-redirect-Fa4p1NoA.js} +1 -1
- package/dist/client/assets/library-OBxcrPA6.js +1 -0
- package/dist/client/assets/{library-tab-Br-uF_Hm.js → library-tab-Bxyd3n6f.js} +1 -1
- package/dist/client/assets/{login-Rizq57SZ.js → login-Cdi7iEkU.js} +1 -1
- package/dist/client/assets/{markdown-CUtNphAW.js → markdown-NetMLX1B.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DLdEcCTg.js → mcp-app-renderer-OOnse3pT.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CbFCmvqW.js → mcp-oauth-C138KPCE.js} +1 -1
- package/dist/client/assets/{mcp-oauth-B_j2wUbc.js → mcp-oauth-DOaDVyhA.js} +1 -1
- package/dist/client/assets/{members-BAwhZD_m.js → members-r0zAY-Qq.js} +1 -1
- package/dist/client/assets/{memory-iwCqu4BE.js → memory-aLB_WhbI.js} +1 -1
- package/dist/client/assets/{mock-board-eIJajpTE.js → mock-board-Dl0qBjh7.js} +3 -3
- package/dist/client/assets/{monaco-editor-DXM9A4pG.js → monaco-editor-BJmxWrxj.js} +1 -1
- package/dist/client/assets/{monitoring-DVvJc9ir.js → monitoring-Cd-32_wp.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CXoFBfjI.js → monitoring-stats-row-C4l9QgAZ.js} +1 -1
- package/dist/client/assets/{multi-select-Cs9XWnUI.js → multi-select-B_L-qOo_.js} +1 -1
- package/dist/client/assets/{mustache-DPWycY9y.js → mustache-DsBc8nE5.js} +1 -1
- package/dist/client/assets/{named-rule-step-DkPkMD9a.js → named-rule-step-C6gSKxIZ.js} +1 -1
- package/dist/client/assets/{named-rule-view-Mm4igRMb.js → named-rule-view-D6a00Kd0.js} +1 -1
- package/dist/client/assets/{new-project-dialog-DEn-QBff.js → new-project-dialog-B6Lwo0Gj.js} +1 -1
- package/dist/client/assets/{new-project-store-DCJGQtnb.js → new-project-store-DQsI7Up8.js} +1 -1
- package/dist/client/assets/{oauth-callback-qqItb-3_.js → oauth-callback-ZiXhFHTL.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-iGz6D9uv.js → oauth-callback-ai-provider-G3iL8oeJ.js} +1 -1
- package/dist/client/assets/{oauth-consent-DAmvNoUu.js → oauth-consent-BXyh0gna.js} +1 -1
- package/dist/client/assets/{onboarding-DC2-kgmu.js → onboarding-DAsPAll8.js} +1 -1
- package/dist/client/assets/{openai-conversation-B2CSBZOi.js → openai-conversation-BAjqwRPV.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-CkgA6jNz.js → optimistic-project-sidebar-views-DFcCZ-o3.js} +1 -1
- package/dist/client/assets/{order-monitor-day-pAn5f12v.js → order-monitor-day-C70gELqf.js} +1 -1
- package/dist/client/assets/{organization-choice-BnFDGIwf.js → organization-choice-DU0Iu2sl.js} +1 -1
- package/dist/client/assets/{orgs-CTr2DmZn.js → orgs-BX0lk0zT.js} +1 -1
- package/dist/client/assets/{own-accounts-section-DMizx5il.js → own-accounts-section-F5Hyapdn.js} +1 -1
- package/dist/client/assets/{pair-DBiqK3oA.js → pair-B9IOPXjq.js} +1 -1
- package/dist/client/assets/{parse-sections-CCSnY5DZ.js → parse-sections--l6s_VwH.js} +2 -2
- package/dist/client/assets/{plan-ladder-BmWod578.js → plan-ladder-NC686t6f.js} +1 -1
- package/dist/client/assets/{plan-usage-card-CzSwSuMg.js → plan-usage-card-WBfanqrN.js} +1 -1
- package/dist/client/assets/{plan-C_4OssgN.js → plan-vHZHG0_E.js} +1 -1
- package/dist/client/assets/{popover-DlkpRzCF.js → popover-oFcDtUvN.js} +1 -1
- package/dist/client/assets/{post-calendar-zQCpyE5h.js → post-calendar-DzBDM3b2.js} +1 -1
- package/dist/client/assets/{post-editor-DPJOSAuw.js → post-editor-CcQmW5GV.js} +1 -1
- package/dist/client/assets/{preview-content-PWBpYYtT.js → preview-content-MbQf8RGA.js} +1 -1
- package/dist/client/assets/{preview-dialog-CGJjJMVz.js → preview-dialog-Cded3kAU.js} +1 -1
- package/dist/client/assets/{preview-panel-CoPKvTvM.js → preview-panel-rChZiu-N.js} +1 -1
- package/dist/client/assets/{preview-tab-_tfQ-S2y.js → preview-tab-zxzhDMiQ.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-BGaSpLBM.js → product-picker-dialog-CX9KvtZh.js} +1 -1
- package/dist/client/assets/{profile-Cr5i6qGO.js → profile-NWB9QWdA.js} +1 -1
- package/dist/client/assets/{project-app-view-BQzokVS3.js → project-app-view-gJDZKZ8F.js} +1 -1
- package/dist/client/assets/{project-apps-WVs7TAih.js → project-apps-D28U2fPi.js} +1 -1
- package/dist/client/assets/{project-icon-CXJHY_ba.js → project-icon-WyFXKdgN.js} +1 -1
- package/dist/client/assets/{project-index-CJ35rtAt.js → project-index-COi5kduS.js} +1 -1
- package/dist/client/assets/project-reports-DFICoZ3P.js +1 -0
- package/dist/client/assets/project-tasks-DHsoMFaC.js +1 -0
- package/dist/client/assets/{projects-DvnUTZ0j.js → projects-Cm9td8_E.js} +1 -1
- package/dist/client/assets/{projects-empty-state-C8AdRKAE.js → projects-empty-state-Dvqp2Zzy.js} +1 -1
- package/dist/client/assets/{prompts-Bk21ISW_.js → prompts-DhLlttmt.js} +1 -1
- package/dist/client/assets/record-editor-BaN-J3uT.js +1 -0
- package/dist/client/assets/{redirect-editor-D8wP49VM.js → redirect-editor-Dk4GjAcP.js} +1 -1
- package/dist/client/assets/reports-BjhUDxT0.js +1 -0
- package/dist/client/assets/{reports-D47eS2QU.js → reports-CREVrO7v.js} +1 -1
- package/dist/client/assets/{reports-onboarding-CojRleC3.js → reports-onboarding-DlCteX2-.js} +1 -1
- package/dist/client/assets/{reports-tab-N2lgxCzG.js → reports-tab-C197xYdE.js} +2 -2
- package/dist/client/assets/{repositories-BCpcKEQp.js → repositories-CWMzkWDA.js} +1 -1
- package/dist/client/assets/repositories-CpGjSRVu.js +1 -0
- package/dist/client/assets/{repository-binding-BKMgK4Io.js → repository-binding-BDu0tU0n.js} +1 -1
- package/dist/client/assets/{repository-picker-CVrSd_t5.js → repository-picker-DKoD0HVQ.js} +1 -1
- package/dist/client/assets/{require-capability-DbuSTrZt.js → require-capability-DXiZ0OON.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BUmwoOyO.js → required-auth-layout-ZTLOobSH.js} +1 -1
- package/dist/client/assets/{reset-password-BNMFFUYV.js → reset-password-DiEnHrUJ.js} +1 -1
- package/dist/client/assets/{resizable-D1QL_pk1.js → resizable-BArMfXUk.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-Dc9fL1_q.js → resolve-tab-icon-C99S9oDL.js} +1 -1
- package/dist/client/assets/{review-settings-DpYcre3r.js → review-settings-Brit3pLv.js} +1 -1
- package/dist/client/assets/{role-color-nf2sxe8V.js → role-color-Ddqyp0w6.js} +1 -1
- package/dist/client/assets/roles-C9wYF2gv.js +1 -0
- package/dist/client/assets/route-Bhee4AVm.js +1 -0
- package/dist/client/assets/{route-D-F54mDA.js → route-C0X_ekZH.js} +1 -1
- package/dist/client/assets/{route-eJrZbPdb.js → route-cMh_8Xc3.js} +1 -1
- package/dist/client/assets/{route-page-header-DrwKWE7S.js → route-page-header-BeG7kyQP.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-AGfLcW5t.js → sandbox-git-api-Bwhb8cKq.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-BDviy_OO.js → sandbox-lifecycle-context-Dq2ETPAf.js} +1 -1
- package/dist/client/assets/{save-status-Djka_Qyj.js → save-status-BXxefOdA.js} +1 -1
- package/dist/client/assets/{schema-DiGDa5-A.js → schema-BJIhJXy6.js} +1 -1
- package/dist/client/assets/{schema-C89b6vEO.js → schema-CI1Jg9rW.js} +1 -1
- package/dist/client/assets/{scroll-area-C25d35EM.js → scroll-area-Dt-NcLdT.js} +1 -1
- package/dist/client/assets/{search-input-CDHAHj2Z.js → search-input-BjRiuWL9.js} +1 -1
- package/dist/client/assets/{search-toggle-DrjJg-yN.js → search-toggle-BOD5VZ7W.js} +1 -1
- package/dist/client/assets/{secret-picker-B2t0d6pu.js → secret-picker-CHt8ZrjG.js} +1 -1
- package/dist/client/assets/{secrets-Ck_pxO8-.js → secrets-DGZeS_5r.js} +1 -1
- package/dist/client/assets/{section-array-field-mJNGevl7.js → section-array-field-CYFq6Yfv.js} +1 -1
- package/dist/client/assets/{sections-DYjDfzd8.js → sections-DBJ1YFK4.js} +1 -1
- package/dist/client/assets/{sections-editor-Dt8FPmGd.js → sections-editor--Z8msN1o.js} +1 -1
- package/dist/client/assets/{select-43sB6t-n.js → select-BXZoshA8.js} +1 -1
- package/dist/client/assets/{select-model-D3b3NgsN.js → select-model-Corsllp1.js} +1 -1
- package/dist/client/assets/{seo-editor-Dh01mkLc.js → seo-editor-CG0nowoP.js} +1 -1
- package/dist/client/assets/{separator-DlKhPrzR.js → separator-Jij0j-j1.js} +1 -1
- package/dist/client/assets/{session-runtime-Cds1bHwk.js → session-runtime-DFmRKpVg.js} +1 -1
- package/dist/client/assets/settings-tab-PpyKi5jL.js +1 -0
- package/dist/client/assets/{sheet-DRbCBFle.js → sheet-DT44IVE2.js} +1 -1
- package/dist/client/assets/{shell-layout-B7ir0OH3.js → shell-layout-CQs-sSUy.js} +1 -1
- package/dist/client/assets/{site-draft-actions-CAAm6S7o.js → site-draft-actions-ChPsoqte.js} +1 -1
- package/dist/client/assets/{site-draft-view-CV5xEwuh.js → site-draft-view-CIc7HrWU.js} +1 -1
- package/dist/client/assets/site-editor-89VkH7GW.js +1 -0
- package/dist/client/assets/{site-editor-toast-BVSUbQbL.js → site-editor-toast-D2nHZREM.js} +1 -1
- package/dist/client/assets/{skills-BfMBw663.js → skills-CgUWJjrb.js} +1 -1
- package/dist/client/assets/{slider-DHaMIxXo.js → slider-DCaB9Ine.js} +1 -1
- package/dist/client/assets/{sortable.esm-LPMzYASJ.js → sortable.esm-CfU7eu9S.js} +1 -1
- package/dist/client/assets/{sso-B-tNyxWZ.js → sso-BEMT6JJw.js} +1 -1
- package/dist/client/assets/{suggestion-BahdAltZ.js → suggestion-BO6GNdWk.js} +1 -1
- package/dist/client/assets/{super-agent-icon-BiI_N592.js → super-agent-icon-Cu5ZQ2qC.js} +1 -1
- package/dist/client/assets/{switch-C3NgdaQ-.js → switch-CfCCzQdg.js} +1 -1
- package/dist/client/assets/{synced-repos-DYCGgRTS.js → synced-repos-gHf8sPwV.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-obsxNvyr.js → tab-icon-glyph-hPo-Gg9t.js} +1 -1
- package/dist/client/assets/{table-DYppV64B.js → table-BG-lRGNn.js} +1 -1
- package/dist/client/assets/{tabs-CUynC-MP.js → tabs-DQRKyhjY.js} +1 -1
- package/dist/client/assets/{task-board-Cfset9MO.js → task-board-B-hxKp5U.js} +1 -1
- package/dist/client/assets/{task-key-_tZm34Ts.js → task-key-DjK7Kw8s.js} +1 -1
- package/dist/client/assets/{task-route-Ba35C-o6.js → task-route-BwC6Um2K.js} +1 -1
- package/dist/client/assets/{task-status-CSrjjj4d.js → task-status-BiZeTmx1.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-DVDfROrr.js → taskboard-analytics-C1hsIKyF.js} +1 -1
- package/dist/client/assets/tasks-Cvrxb3RD.js +1 -0
- package/dist/client/assets/{tasks-DXmgQxQZ.js → tasks-Dac_YLSj.js} +1 -1
- package/dist/client/assets/{textarea-CxaeNM2g.js → textarea-DAZ3avm9.js} +1 -1
- package/dist/client/assets/{thread-analytics-WaOf3IfR.js → thread-analytics-DGVyUEMu.js} +1 -1
- package/dist/client/assets/{thread-button-B3WqZBtr.js → thread-button-Dy4pRky4.js} +1 -1
- package/dist/client/assets/{thread-intent-Chcb1cgt.js → thread-intent-BtcwbxTJ.js} +1 -1
- package/dist/client/assets/{thread-route-CD4mZI96.js → thread-route-BKnIUDl3.js} +1 -1
- package/dist/client/assets/{thread-route-2gqMIzEM.js → thread-route-Ds6Wombz.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-wqAKax-M.js → thread-sheet-body-Kjk5YJ_A.js} +1 -1
- package/dist/client/assets/{time-range-picker-DkO27CRA.js → time-range-picker-y-R1DMgB.js} +1 -1
- package/dist/client/assets/{toggle-group-BlHT_eQJ.js → toggle-group-BgBCZLaa.js} +1 -1
- package/dist/client/assets/{tool-set-selector-H0JOuDt5.js → tool-set-selector-tZKV1bCv.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-qHG6EBvv.js → toolbar-icon-button-CaY1wsmY.js} +1 -1
- package/dist/client/assets/{tooltip-t1fF0XB_.js → tooltip-CqV-qcYU.js} +1 -1
- package/dist/client/assets/{tooltipContext-DYrIxh_J.js → tooltipContext-5-7GWaNH.js} +1 -1
- package/dist/client/assets/{track-C4aeoFlr.js → track-qijzY7O9.js} +1 -1
- package/dist/client/assets/{types-C8Pq2I-Q.js → types-DRaoZ_4I.js} +1 -1
- package/dist/client/assets/{url-slug-DCym6L1-.js → url-slug-CTOX8lQF.js} +1 -1
- package/dist/client/assets/{usage-stats-BP3RFx-W.js → usage-stats-BXxRbW0f.js} +1 -1
- package/dist/client/assets/{use-ai-providers-hjjdwt3a.js → use-ai-providers-DgsrHLV3.js} +1 -1
- package/dist/client/assets/{use-api-keys-CGI18dQ5.js → use-api-keys-1S0yfr-w.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-DQcQcY2Z.js → use-apply-named-rule-DK9k5f8X.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-CC9ew9W1.js +1 -0
- package/dist/client/assets/{use-automations-4FRwc0q0.js → use-automations-lWDVj-CU.js} +1 -1
- package/dist/client/assets/{use-autosave-C6MauLtM.js → use-autosave-CQIToQsM.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-DwTQhXO1.js +1 -0
- package/dist/client/assets/use-blog-view-9w6CHFwT.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-p7r6M8ce.js → use-chat-layout-state-CS1wv5hl.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-BuFGWO_V.js → use-cms-publish-actions-BoXieLUR.js} +1 -1
- package/dist/client/assets/{use-connect-companion-CUSxmmG_.js → use-connect-companion-C2Xf2qzV.js} +1 -1
- package/dist/client/assets/{use-connection-dG9YSsjP.js → use-connection-Df8_gpBB.js} +1 -1
- package/dist/client/assets/{use-content-sync-Cdkdq_40.js → use-content-sync-DzzCDnXY.js} +1 -1
- package/dist/client/assets/{use-copy-CyYzB7m6.js → use-copy-CCrC_M79.js} +1 -1
- package/dist/client/assets/{use-current-view-CxN5GETM.js → use-current-view-B5rf1h54.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-D-rfu-GG.js → use-date-fns-locale-Csnyj6_G.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C0szJ-Sw.js → use-debounced-autosave-BNJwBoKC.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CHQeG59Z.js → use-debounced-value-DFWDa0qH.js} +1 -1
- package/dist/client/assets/{use-deco-credits-C96HUaam.js → use-deco-credits-CuB-vVK3.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CPHiiMGY.js → use-decopilot-events-B7ke0MhO.js} +1 -1
- package/dist/client/assets/{use-delete-block-BW5kKKWR.js → use-delete-block-ZPB3I9Ns.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CGAQKLnY.js → use-delete-connection-Zvzh2eht.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DDqd8B9e.js → use-deployment-admin-B4GqO2uv.js} +1 -1
- package/dist/client/assets/{use-entitlements-BbdsTwSB.js → use-entitlements-CQZj5lkl.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BUnyzFnZ.js → use-fast-preview-draft-url-DYyM21UT.js} +1 -1
- package/dist/client/assets/{use-file-configs-vR7bDtOC.js → use-file-configs-CyAC1Jn2.js} +1 -1
- package/dist/client/assets/{use-id-selection-CTKSjiEu.js → use-id-selection-CE2G3E6f.js} +1 -1
- package/dist/client/assets/{use-in-settings-CbO5uykc.js → use-in-settings-CRUM5hPE.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-BoL8mZCx.js → use-inbox-feed-uWC2MWJH.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-VPnxSLfm.js → use-infinite-scroll-Cz_t92ww.js} +1 -1
- package/dist/client/assets/{use-join-requests-Xe2if9yQ.js → use-join-requests-CS1fqgjk.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-CfTK_QgS.js → use-main-panel-tabs-DwCoiX2k.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-DGn4OAED.js → use-mcp-auth-status-CyjIfVIk.js} +1 -1
- package/dist/client/assets/{use-mcp-client-B-wVa8u0.js → use-mcp-client-HASDr5yn.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BsO-eiOc.js → use-mcp-prompts-CEtDj9VE.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-B1VggSwJ.js → use-mcp-tools-CLfN0BYV.js} +1 -1
- package/dist/client/assets/{use-mobile-D-TLPrvO.js → use-mobile-UoyYEGbQ.js} +1 -1
- package/dist/client/assets/{use-move-blocks-Crapk8CO.js → use-move-blocks-CFb10aGP.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DuNN_hGy.js → use-navigate-to-agent-C4y9eC4A.js} +1 -1
- package/dist/client/assets/{use-never-published-CX5FVn_l.js → use-never-published-D71BtZNY.js} +1 -1
- package/dist/client/assets/{use-org-fs-BGORZXRY.js → use-org-fs-BAgR3Jkh.js} +1 -1
- package/dist/client/assets/{use-org-notice-DieWFUit.js → use-org-notice-DQ7N3XWA.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DF9fGaS3.js → use-org-repo-syncs-C556S9To.js} +1 -1
- package/dist/client/assets/{use-org-sso-C40URVuD.js → use-org-sso-DrDj5K7f.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Cc32ci7B.js → use-organization-settings-BliP9B1t.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-C9YlWWPn.js → use-panel-navigate-db4k7dl4.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-c5h_yjC-.js → use-project-native-view-presence-DPg5UqE1.js} +1 -1
- package/dist/client/assets/{use-project-scope-aZyY3ntO.js → use-project-scope-CFftAYVY.js} +1 -1
- package/dist/client/assets/{use-recent-apps-CSsKMKwu.js → use-recent-apps-CS-hhWwQ.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-DbMoz7IJ.js → use-reports-diagnostic-CYymDS51.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-CBh8sLnm.js → use-sandbox-events-rgvK0R-0.js} +1 -1
- package/dist/client/assets/{use-secrets-B7iVfZoB.js → use-secrets-Y_pjIaUL.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BIu_tEmB.js → use-section-preview-base-Bkq2jdsn.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-Dfwqn3HW.js → use-sidebar-collapsed-BtrwP1AE.js} +1 -1
- package/dist/client/assets/{use-tags-DBDQfu0t.js → use-tags-CFlTqeDj.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-ByLlXOj2.js → use-task-board-analytics-Bm2Eiqvn.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-Cbcql5d4.js → use-task-board-item-prs-BCP6vVwh.js} +1 -1
- package/dist/client/assets/{use-task-board-items-BZZLKLjF.js → use-task-board-items-CQPrgy8Z.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-DwLszR98.js → use-task-board-prompts-CywAfsLX.js} +1 -1
- package/dist/client/assets/{use-task-metadata-CiW_7IWN.js → use-task-metadata-BIpPNwtn.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-B8BJcksR.js → use-thread-outputs-BMHx59-u.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-hWydH0Wf.js → use-view-draft-kind-DkapSxnZ.js} +1 -1
- package/dist/client/assets/{use-voice-input-CN2HjttA.js → use-voice-input-DyQL3diM.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-D5Avp4ip.js +1 -0
- package/dist/client/assets/{useQueries-CepN8xQB.js → useQueries-Bay3GQsV.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BlIdZ7Pt.js +1 -0
- package/dist/client/assets/{users-CdFy5Ycf.js → users-DTrW9ZIm.js} +1 -1
- package/dist/client/assets/{utils-Dvb--LrS.js → utils-D1ABa-c2.js} +1 -1
- package/dist/client/assets/{variant-calendar-Dy-9A9oL.js → variant-calendar-CK1882s5.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-sIys-Vqh.js → variant-matcher-override-y-sjVy0V.js} +1 -1
- package/dist/client/assets/{view-header-BXeo64AZ.js → view-header-CJ8vxIod.js} +1 -1
- package/dist/client/assets/{virtual-mcp-DHABb4z4.js → virtual-mcp-m1o-7tiO.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-YDiUBcwq.js → watch-sse-pool-gEMXX-QL.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +626 -626
- package/package.json +1 -1
- package/dist/client/assets/agent-app-CVMxZ008.js +0 -1
- package/dist/client/assets/agent-deck-Dh63bgjz.js +0 -1
- package/dist/client/assets/agent-experiments-CaLTl0ur.js +0 -1
- package/dist/client/assets/agent-file-DOGPw2nD.js +0 -1
- package/dist/client/assets/agent-library-CVPbskzR.js +0 -1
- package/dist/client/assets/agent-library-file-DJTwSDvs.js +0 -1
- package/dist/client/assets/agent-overview-ANIUNLov.js +0 -1
- package/dist/client/assets/agent-settings-BgOaL-TW.js +0 -1
- package/dist/client/assets/agent-site-editor-code-B5gKlKPe.js +0 -2
- package/dist/client/assets/agent-site-editor-content-CDSv2ulU.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-m4V2tU0p.js +0 -1
- package/dist/client/assets/agent-view-C1V_rp1q.js +0 -1
- package/dist/client/assets/api-keys-CZEK4y85.js +0 -1
- package/dist/client/assets/library-C79MtZgu.js +0 -1
- package/dist/client/assets/project-reports-ymRgHixA.js +0 -1
- package/dist/client/assets/project-tasks-jSnT12UO.js +0 -1
- package/dist/client/assets/record-editor-Cnm6o3WY.js +0 -1
- package/dist/client/assets/reports-06qM3bu1.js +0 -1
- package/dist/client/assets/repositories-D4LpfLqR.js +0 -1
- package/dist/client/assets/roles-ht1A484v.js +0 -1
- package/dist/client/assets/route-BF4FB0rC.js +0 -1
- package/dist/client/assets/settings-tab-B6UxteFe.js +0 -1
- package/dist/client/assets/site-editor-CxjaC6e_.js +0 -1
- package/dist/client/assets/tasks-CChceK1N.js +0 -1
- package/dist/client/assets/use-ask-in-chat-CZ898xy-.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-oaHZ3IYa.js +0 -1
- package/dist/client/assets/use-blog-view-CLeYZBHD.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DiZrq1wi.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BpBpPIuX.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as F,a4 as w,K as y,i as $,q as k,e as P}from"./index-DPOIY_Am.js";import{u as x}from"./useInfiniteQuery-DiZrq1wi.js";function G(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function p(n,e,t,s){const i=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${i?`?${i}`:""}`}async function h(n,e,t){const s=await fetch(n,e);if(s.ok||t?.allow404&&s.status===404)return s;let i="";try{i=(await s.json()).error??""}catch{}throw new Error(i||`HTTP ${s.status}`)}async function E(n,e,t){return(await(await h(p(n,e,"list",{path:t}))).json()).entries.toSorted((r,a)=>r.kind!==a.kind?r.kind==="dir"?-1:1:r.path.localeCompare(a.path))}function Z(n,e,t){const s=F.c(16),{org:i}=w(),r=t?.enabled??!0;let a;s[0]!==i.id||s[1]!==e||s[2]!==n?(a=y.orgFsList(i.id,n,e),s[0]=i.id,s[1]=e,s[2]=n,s[3]=a):a=s[3];let o;s[4]!==i.id||s[5]!==n?(o=(f,u)=>u?.queryKey[1]===i.id&&u.queryKey[2]===n?f:void 0,s[4]=i.id,s[5]=n,s[6]=o):o=s[6];let c;s[7]!==i.slug||s[8]!==e||s[9]!==n?(c=()=>E(i.slug,n,e),s[7]=i.slug,s[8]=e,s[9]=n,s[10]=c):c=s[10];let l;return s[11]!==r||s[12]!==a||s[13]!==o||s[14]!==c?(l={enabled:r,queryKey:a,placeholderData:o,queryFn:c},s[11]=r,s[12]=a,s[13]=o,s[14]=c,s[15]=l):l=s[15],$(l)}async function _(n,e,t){const s=await h(p(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=F.c(16),{org:i}=w();let r;s[0]!==i.id||s[1]!==e||s[2]!==n?(r=y.orgFsStat(i.id,n??"",e),s[0]=i.id,s[1]=e,s[2]=n,s[3]=r):r=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]!==i.slug||s[7]!==e||s[8]!==n?(l=()=>_(i.slug,n??"",e),s[6]=i.slug,s[7]=e,s[8]=n,s[9]=l):l=s[9];let f;return s[10]!==r||s[11]!==a||s[12]!==o||s[13]!==c||s[14]!==l?(f={queryKey:r,enabled:a,staleTime:o,refetchInterval:c,queryFn:l},s[10]=r,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=F.c(9),s=n===void 0?60:n,{org:i}=w();let r;t[0]!==i.id?(r=y.orgFsRecent(i.id),t[0]=i.id,t[1]=r):r=t[1];const a=e?.enabled;let o;t[2]!==s||t[3]!==i.slug?(o=async()=>(await(await h(`/api/${encodeURIComponent(i.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=i.slug,t[4]=o):o=t[4];let c;return t[5]!==r||t[6]!==a||t[7]!==o?(c={queryKey:r,enabled:a,queryFn:o},t[5]=r,t[6]=a,t[7]=o,t[8]=c):c=t[8],$(c)}const R=200;function te(n){const e=F.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 i;e[3]!==t.slug||e[4]!==n?(i=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]=i):i=e[5];let r;return e[6]!==s||e[7]!==i?(r={queryKey:s,initialPageParam:null,queryFn:i,getNextPageParam:C},e[6]=s,e[7]=i,e[8]=r):r=e[8],x(r)}function C(n){return n.next??void 0}const U=50;function se(n,e){const t=F.c(16),{org:s}=w();let i;t[0]!==s.id||t[1]!==n||t[2]!==e?.prefix||t[3]!==e?.volume?(i=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]=i):i=t[4];const r=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]!==i||t[12]!==r||t[13]!==a||t[14]!==o?(c={queryKey:i,enabled:r,placeholderData:a,queryFn:o},t[11]=i,t[12]=r,t[13]=a,t[14]=o,t[15]=c):c=t[15],$(c)}function ne(n){const e=F.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 i=n?.enabled;let r;e[2]!==t.slug?(r=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]=r):r=e[3];let a;return e[4]!==s||e[5]!==i||e[6]!==r?(a={queryKey:s,enabled:i,queryFn:r},e[4]=s,e[5]=i,e[6]=r,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 ie(){const n=F.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 i;return n[4]!==t||n[5]!==s?(i={queryKey:t,queryFn:s,staleTime:6e4},n[4]=t,n[5]=s,n[6]=i):i=n[6],$(i)}async function M(n,e,t){return(await h(p(n,e,"read",{path:t}))).text()}function re(n,e){const t=F.c(8);let s;t[0]!==n?(s=y.fileText(n),t[0]=n,t[1]=s):s=t[1];const i=e?.enabled!==!1&&n!=="";let r;t[2]!==n?(r=async()=>{const o=await fetch(n,{credentials:"include"});return o.ok?await o.text():null},t[2]=n,t[3]=r):r=t[3];let a;return t[4]!==s||t[5]!==i||t[6]!==r?(a={queryKey:s,enabled:i,staleTime:6e4,retry:!1,queryFn:r},t[4]=s,t[5]=i,t[6]=r,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}/`:"",i=u=>u.startsWith(s)?u.slice(s.length):u,r=[],a=[],o=[{path:t,depth:0}];for(;o.length>0;){const u=o.shift();if(!u)break;let g;try{g=(await(await h(p(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&&r.length<D?r.push(d.path):a.push(i(d.path))}}const c=await Promise.all(r.map(u=>M(n,e,u).catch(()=>null))),l=[];let f=0;return r.forEach((u,g)=>{const d=c[g];if(d==null||f+d.length>H){a.push(i(u));return}f+=d.length,l.push({relPath:i(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=F.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 i;return n[4]!==t||n[5]!==s?(i={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=i):i=n[6],$(i)}function le(n){const e=F.c(3),{org:t}=w();let s;return e[0]!==t.slug||e[1]!==n?(s=i=>p(t.slug,n,"read",{path:i}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function ce(){const n=F.c(2),{org:e}=w();let t;return n[0]!==e.slug?(t=(s,i)=>p(e.slug,s,"read",{path:i}),n[0]=e.slug,n[1]=t):t=n[1],t}function ue(n){const e=F.c(3),{org:t}=w();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async i=>(await(await h(p(t.slug,n,"file",{path:i.path}),{method:"PUT",headers:{"content-type":i.contentType??"text/html; charset=utf-8"},body:i.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],P(s)}async function fe(n,e,t,s,i,r="text/markdown; charset=utf-8"){const a={"content-type":r};i&&"absent"in i?a["if-none-match"]="*":i&&(a["if-match"]=`"${i.contentHash}"`);const o=await fetch(p(n,e,"file",{path:t}),{method:"PUT",headers:a,body:s});if(o.status===412)return{ok:!1,reason:"conflict"};if(o.status===403)return{ok:!1,reason:"forbidden"};if(!o.ok)throw new Error(`HTTP ${o.status}`);return{ok:!0,entry:(await o.json()).entry}}function de(n){const e=F.c(18),{org:t}=w(),s=k();let i;e[0]!==t||e[1]!==n?(i=async l=>(await(await h(p(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]=i):i=e[2];let r;e[3]!==t||e[4]!==s||e[5]!==n?(r=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]=r):r=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]!==i||e[14]!==r||e[15]!==a||e[16]!==o?(c={mutationFn:i,onMutate:r,onError:a,onSettled:o},e[13]=i,e[14]=r,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=F.c(33),{org:t}=w(),s=k();let i;e[0]!==t||e[1]!==s||e[2]!==n?(i=()=>X(s,t.id,n),e[0]=t,e[1]=s,e[2]=n,e[3]=i):i=e[3];const r=i;let a;e[4]!==t||e[5]!==n?(a=async S=>{const T=(await Promise.allSettled(S.files.map(L=>{const q=S.dir?`${S.dir}/${L.name}`:L.name;return h(p(t.slug,n,"file",{path:q}),{method:"PUT",headers:{"content-type":L.type||"application/octet-stream"},body:L})}))).find(Y);if(T)throw T.reason},e[4]=t,e[5]=n,e[6]=a):a=e[6];let o;e[7]!==r||e[8]!==a?(o={mutationFn:a,onSettled:r},e[7]=r,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(p(t.slug,n,"dir",{path:S}),{method:"POST"})},e[10]=t,e[11]=n,e[12]=l):l=e[12];let f;e[13]!==r||e[14]!==l?(f={mutationFn:l,onSuccess:r},e[13]=r,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(p(t.slug,n,"file",{path:S}),{method:"DELETE"})},e[16]=t,e[17]=n,e[18]=g):g=e[18];let d;e[19]!==r||e[20]!==g?(d={mutationFn:g,onSuccess:r},e[19]=r,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(p(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]!==r||e[26]!==m?(I={mutationFn:m,onSuccess:r},e[25]=r,e[26]=m,e[27]=I):I=e[27];const O=P(I);let K;return e[28]!==u||e[29]!==O||e[30]!==b||e[31]!==c?(K={upload:c,mkdir:u,remove:b,move:O},e[28]=u,e[29]=O,e[30]=b,e[31]=c,e[32]=K):K=e[32],K}function Y(n){return n.status==="rejected"}export{le as a,Q as b,v as c,ue as d,G as e,ae as f,de as g,re as h,E as i,ie as j,ge as k,ce as l,X as m,_ as n,M as o,ee as p,ne as q,oe as r,se as s,te as t,Z as u,fe as w};
|
|
1
|
+
import{c as F,a4 as w,K as y,i as $,q as k,e as P}from"./index-BfWp2Wnw.js";import{u as x}from"./useInfiniteQuery-D5Avp4ip.js";function G(n){return n.contentHash??`${n.size}-${n.updatedAt}`}function p(n,e,t,s){const i=new URLSearchParams(s).toString();return`/api/${encodeURIComponent(n)}/fs/${encodeURIComponent(e)}/${t}${i?`?${i}`:""}`}async function h(n,e,t){const s=await fetch(n,e);if(s.ok||t?.allow404&&s.status===404)return s;let i="";try{i=(await s.json()).error??""}catch{}throw new Error(i||`HTTP ${s.status}`)}async function E(n,e,t){return(await(await h(p(n,e,"list",{path:t}))).json()).entries.toSorted((r,a)=>r.kind!==a.kind?r.kind==="dir"?-1:1:r.path.localeCompare(a.path))}function Z(n,e,t){const s=F.c(16),{org:i}=w(),r=t?.enabled??!0;let a;s[0]!==i.id||s[1]!==e||s[2]!==n?(a=y.orgFsList(i.id,n,e),s[0]=i.id,s[1]=e,s[2]=n,s[3]=a):a=s[3];let o;s[4]!==i.id||s[5]!==n?(o=(f,u)=>u?.queryKey[1]===i.id&&u.queryKey[2]===n?f:void 0,s[4]=i.id,s[5]=n,s[6]=o):o=s[6];let c;s[7]!==i.slug||s[8]!==e||s[9]!==n?(c=()=>E(i.slug,n,e),s[7]=i.slug,s[8]=e,s[9]=n,s[10]=c):c=s[10];let l;return s[11]!==r||s[12]!==a||s[13]!==o||s[14]!==c?(l={enabled:r,queryKey:a,placeholderData:o,queryFn:c},s[11]=r,s[12]=a,s[13]=o,s[14]=c,s[15]=l):l=s[15],$(l)}async function _(n,e,t){const s=await h(p(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=F.c(16),{org:i}=w();let r;s[0]!==i.id||s[1]!==e||s[2]!==n?(r=y.orgFsStat(i.id,n??"",e),s[0]=i.id,s[1]=e,s[2]=n,s[3]=r):r=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]!==i.slug||s[7]!==e||s[8]!==n?(l=()=>_(i.slug,n??"",e),s[6]=i.slug,s[7]=e,s[8]=n,s[9]=l):l=s[9];let f;return s[10]!==r||s[11]!==a||s[12]!==o||s[13]!==c||s[14]!==l?(f={queryKey:r,enabled:a,staleTime:o,refetchInterval:c,queryFn:l},s[10]=r,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=F.c(9),s=n===void 0?60:n,{org:i}=w();let r;t[0]!==i.id?(r=y.orgFsRecent(i.id),t[0]=i.id,t[1]=r):r=t[1];const a=e?.enabled;let o;t[2]!==s||t[3]!==i.slug?(o=async()=>(await(await h(`/api/${encodeURIComponent(i.slug)}/fs/recent?limit=${s}`)).json()).entries,t[2]=s,t[3]=i.slug,t[4]=o):o=t[4];let c;return t[5]!==r||t[6]!==a||t[7]!==o?(c={queryKey:r,enabled:a,queryFn:o},t[5]=r,t[6]=a,t[7]=o,t[8]=c):c=t[8],$(c)}const R=200;function te(n){const e=F.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 i;e[3]!==t.slug||e[4]!==n?(i=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]=i):i=e[5];let r;return e[6]!==s||e[7]!==i?(r={queryKey:s,initialPageParam:null,queryFn:i,getNextPageParam:C},e[6]=s,e[7]=i,e[8]=r):r=e[8],x(r)}function C(n){return n.next??void 0}const U=50;function se(n,e){const t=F.c(16),{org:s}=w();let i;t[0]!==s.id||t[1]!==n||t[2]!==e?.prefix||t[3]!==e?.volume?(i=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]=i):i=t[4];const r=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]!==i||t[12]!==r||t[13]!==a||t[14]!==o?(c={queryKey:i,enabled:r,placeholderData:a,queryFn:o},t[11]=i,t[12]=r,t[13]=a,t[14]=o,t[15]=c):c=t[15],$(c)}function ne(n){const e=F.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 i=n?.enabled;let r;e[2]!==t.slug?(r=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]=r):r=e[3];let a;return e[4]!==s||e[5]!==i||e[6]!==r?(a={queryKey:s,enabled:i,queryFn:r},e[4]=s,e[5]=i,e[6]=r,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 ie(){const n=F.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 i;return n[4]!==t||n[5]!==s?(i={queryKey:t,queryFn:s,staleTime:6e4},n[4]=t,n[5]=s,n[6]=i):i=n[6],$(i)}async function M(n,e,t){return(await h(p(n,e,"read",{path:t}))).text()}function re(n,e){const t=F.c(8);let s;t[0]!==n?(s=y.fileText(n),t[0]=n,t[1]=s):s=t[1];const i=e?.enabled!==!1&&n!=="";let r;t[2]!==n?(r=async()=>{const o=await fetch(n,{credentials:"include"});return o.ok?await o.text():null},t[2]=n,t[3]=r):r=t[3];let a;return t[4]!==s||t[5]!==i||t[6]!==r?(a={queryKey:s,enabled:i,staleTime:6e4,retry:!1,queryFn:r},t[4]=s,t[5]=i,t[6]=r,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}/`:"",i=u=>u.startsWith(s)?u.slice(s.length):u,r=[],a=[],o=[{path:t,depth:0}];for(;o.length>0;){const u=o.shift();if(!u)break;let g;try{g=(await(await h(p(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&&r.length<D?r.push(d.path):a.push(i(d.path))}}const c=await Promise.all(r.map(u=>M(n,e,u).catch(()=>null))),l=[];let f=0;return r.forEach((u,g)=>{const d=c[g];if(d==null||f+d.length>H){a.push(i(u));return}f+=d.length,l.push({relPath:i(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=F.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 i;return n[4]!==t||n[5]!==s?(i={queryKey:t,staleTime:3e5,queryFn:s},n[4]=t,n[5]=s,n[6]=i):i=n[6],$(i)}function le(n){const e=F.c(3),{org:t}=w();let s;return e[0]!==t.slug||e[1]!==n?(s=i=>p(t.slug,n,"read",{path:i}),e[0]=t.slug,e[1]=n,e[2]=s):s=e[2],s}function ce(){const n=F.c(2),{org:e}=w();let t;return n[0]!==e.slug?(t=(s,i)=>p(e.slug,s,"read",{path:i}),n[0]=e.slug,n[1]=t):t=n[1],t}function ue(n){const e=F.c(3),{org:t}=w();let s;return e[0]!==t||e[1]!==n?(s={mutationFn:async i=>(await(await h(p(t.slug,n,"file",{path:i.path}),{method:"PUT",headers:{"content-type":i.contentType??"text/html; charset=utf-8"},body:i.body})).json()).entry},e[0]=t,e[1]=n,e[2]=s):s=e[2],P(s)}async function fe(n,e,t,s,i,r="text/markdown; charset=utf-8"){const a={"content-type":r};i&&"absent"in i?a["if-none-match"]="*":i&&(a["if-match"]=`"${i.contentHash}"`);const o=await fetch(p(n,e,"file",{path:t}),{method:"PUT",headers:a,body:s});if(o.status===412)return{ok:!1,reason:"conflict"};if(o.status===403)return{ok:!1,reason:"forbidden"};if(!o.ok)throw new Error(`HTTP ${o.status}`);return{ok:!0,entry:(await o.json()).entry}}function de(n){const e=F.c(18),{org:t}=w(),s=k();let i;e[0]!==t||e[1]!==n?(i=async l=>(await(await h(p(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]=i):i=e[2];let r;e[3]!==t||e[4]!==s||e[5]!==n?(r=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]=r):r=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]!==i||e[14]!==r||e[15]!==a||e[16]!==o?(c={mutationFn:i,onMutate:r,onError:a,onSettled:o},e[13]=i,e[14]=r,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=F.c(33),{org:t}=w(),s=k();let i;e[0]!==t||e[1]!==s||e[2]!==n?(i=()=>X(s,t.id,n),e[0]=t,e[1]=s,e[2]=n,e[3]=i):i=e[3];const r=i;let a;e[4]!==t||e[5]!==n?(a=async S=>{const T=(await Promise.allSettled(S.files.map(L=>{const q=S.dir?`${S.dir}/${L.name}`:L.name;return h(p(t.slug,n,"file",{path:q}),{method:"PUT",headers:{"content-type":L.type||"application/octet-stream"},body:L})}))).find(Y);if(T)throw T.reason},e[4]=t,e[5]=n,e[6]=a):a=e[6];let o;e[7]!==r||e[8]!==a?(o={mutationFn:a,onSettled:r},e[7]=r,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(p(t.slug,n,"dir",{path:S}),{method:"POST"})},e[10]=t,e[11]=n,e[12]=l):l=e[12];let f;e[13]!==r||e[14]!==l?(f={mutationFn:l,onSuccess:r},e[13]=r,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(p(t.slug,n,"file",{path:S}),{method:"DELETE"})},e[16]=t,e[17]=n,e[18]=g):g=e[18];let d;e[19]!==r||e[20]!==g?(d={mutationFn:g,onSuccess:r},e[19]=r,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(p(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]!==r||e[26]!==m?(I={mutationFn:m,onSuccess:r},e[25]=r,e[26]=m,e[27]=I):I=e[27];const O=P(I);let K;return e[28]!==u||e[29]!==O||e[30]!==b||e[31]!==c?(K={upload:c,mkdir:u,remove:b,move:O},e[28]=u,e[29]=O,e[30]=b,e[31]=c,e[32]=K):K=e[32],K}function Y(n){return n.status==="rejected"}export{le as a,Q as b,v as c,ue as d,G as e,ae as f,de as g,re as h,E as i,ie as j,ge as k,ce as l,X as m,_ as n,M as o,ee as p,ne as q,oe as r,se as s,te as t,Z as u,fe as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h,j as u,o as C,b as $,r as A,B as S,a as p,t as f,M,i as _,K as z,cH as D,ar as E,at as I,d as G}from"./index-
|
|
1
|
+
import{c as h,j as u,o as C,b as $,r as A,B as S,a as p,t as f,M,i as _,K as z,cH as D,ar as E,at as I,d as G}from"./index-BfWp2Wnw.js";import{s as q}from"./XClose-WYCPZpkD.js";import{S as F}from"./thread-intent-BtcwbxTJ.js";const K={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function oe(e){return`[data-tour="${K[e]}"]`}function Y(e){return e!=="off"}function ie(e){if(!e.hasSource)return[];const t=["site-editor"];return Y(e.cmsMode)&&t.push("content"),e.runtime==="sandbox"&&t.push("code"),t}function X(e){return e==="site-editor"||e==="content"||e==="code"||e.startsWith("code:")}function ae(e){return e.reportsOnly&&!e.onReportAgent&&X(e.tabId)}const B={xs:"xs",sm:"xs",lg:"md"};function U(e){const t=h.c(4),{org:n,size:o}=e,s=o===void 0?"sm":o,r=n.logo??void 0,i=B[s];let a;return t[0]!==n.name||t[1]!==r||t[2]!==i?(a=u.jsx(C,{url:r,fallback:n.name,size:i,tone:"solid"}),t[0]=n.name,t[1]=r,t[2]=i,t[3]=a):a=t[3],a}function ce({invitation:e,onChanged:t}){const n=$(),[o,s]=A.useState(!1),r=e.organizationName??n("header.orgSwitcher.unknownOrganization"),i=async()=>{s(!0);try{const d=await p.organization.acceptInvitation({invitationId:e.id});if(d.error){f.error(d.error.message),s(!1);return}}catch{f.error(n("header.orgSwitcher.failedToAcceptInvitation")),s(!1);return}f.success(n("header.orgSwitcher.joined",{name:r})),M();let c;try{c=(await p.organization.getFullOrganization({query:{organizationId:e.organizationId}}))?.data?.slug}catch{}window.location.href=c?`/${c}`:"/"},a=async()=>{s(!0);try{const c=await p.organization.rejectInvitation({invitationId:e.id});if(c.error){f.error(c.error.message),s(!1);return}f.success(n("header.orgSwitcher.invitationDeclined")),s(!1),t()}catch{f.error(n("header.orgSwitcher.failedToDeclineInvitation")),s(!1)}};return u.jsxs("div",{className:"flex items-center gap-3 rounded-md border border-dashed border-border px-3 py-2.5",children:[u.jsx(U,{org:{name:r},size:"sm"}),u.jsxs("div",{className:"min-w-0 flex-1",children:[u.jsx("p",{className:"truncate text-sm font-medium",children:r}),u.jsx("p",{className:"truncate text-xs text-muted-foreground",children:n("header.orgSwitcher.invitedToJoin")})]}),u.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[u.jsx(S,{size:"sm",variant:"default",onClick:i,disabled:o,children:n("header.orgSwitcher.accept")}),u.jsx(S,{size:"icon-sm",variant:"ghost",className:"text-muted-foreground",onClick:a,disabled:o,"aria-label":n("header.orgSwitcher.declineInvitationTo",{name:r}),children:u.jsx(q,{size:14})})]})]})}function H(e){return typeof e=="object"&&e!==null&&Array.isArray(e.items)}function de(e){const t=h.c(13),n=e.trim(),{data:o}=p.useSession(),s=o?.user?.id??"",r=n.length>0&&!!s,i=z.organizationSearch(s,n);let a;t[0]!==n?(a=async P=>{const{signal:L}=P,w=await fetch(`/api/_me/organizations/search?q=${encodeURIComponent(n)}`,{signal:L});if(!w.ok)throw new Error(`Organization search failed: ${w.status}`);const R=await w.json();if(!H(R))throw new Error("Invalid organization search response");return R},t[0]=n,t[1]=a):a=t[1];let c;t[2]!==r||t[3]!==i||t[4]!==a?(c={queryKey:i,queryFn:a,enabled:r,placeholderData:D,staleTime:3e4,retry:!1},t[2]=r,t[3]=i,t[4]=a,t[5]=c):c=t[5];const{data:d,isFetching:k,isPlaceholderData:N,isError:O}=_(c);let l;t[6]!==d?.items?(l=d?.items??[],t[6]=d?.items,t[7]=l):l=t[7];const b=r&&k,x=r&&N;let y;return t[8]!==O||t[9]!==l||t[10]!==b||t[11]!==x?(y={hits:l,isSearching:b,isStale:x,isError:O},t[8]=O,t[9]=l,t[10]=b,t[11]=x,t[12]=y):y=t[12],y}const J=3,T=10,Q=440,V=55;function ue(e){const t=Math.floor((e-Q)/V);return Math.min(T,Math.max(J,t))}function W(e,t,n=T*3,o=[]){return[...new Set([t,...o,...e])].slice(0,n)}function le(e,t){return!t.id||e.some(n=>n.slug===t.slug)?[...e]:[...e,t]}function fe(e,t,n,o,s=[]){if(e.length<=o)return{shown:[...e],hidden:[]};const r=new Map(e.map(a=>[a.slug,a])),i=new Set;n&&r.has(n)&&i.add(n);for(const a of s)r.has(a)&&i.add(a);for(const a of t){if(i.size>=o)break;r.has(a)&&i.add(a)}for(const a of e){if(i.size>=o)break;i.add(a.slug)}return{shown:e.filter(a=>i.has(a.slug)),hidden:e.filter(a=>!i.has(a.slug))}}const v=[];function Z(){const e=h.c(6);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=I.recentOrgs(),e[0]=t):t=e[0];const[n,o]=E(t,v),s=Array.isArray(n)?n:v;let r;e[1]!==o?(r=(a,c)=>o(d=>W(Array.isArray(d)?d:[],a,void 0,c)),e[1]=o,e[2]=r):r=e[2];let i;return e[3]!==s||e[4]!==r?(i={recent:s,remember:r},e[3]=s,e[4]=r,e[5]=i):i=e[5],i}const j={hidden:[],pinned:[],order:[]},g=(e,t)=>e.filter(n=>n!==t);function ee(e){if(typeof e!="object"||e===null)return j;const t=o=>Array.isArray(o)?o.filter(s=>typeof s=="string"):[],n=e;return{hidden:t(n.hidden),pinned:t(n.pinned),order:t(n.order)}}function he(e,t){return{...e,hidden:[...g(e.hidden,t),t],pinned:g(e.pinned,t)}}function te(e,t){return{...e,hidden:g(e.hidden,t)}}function me(e,t){return e.pinned.includes(t)?{...e,pinned:g(e.pinned,t)}:{...e,hidden:g(e.hidden,t),pinned:[...e.pinned,t]}}function ge(e,t,n){const o=s=>{const r=t.order.indexOf(s);return r===-1?Number.MAX_SAFE_INTEGER:r};return e.filter(s=>s.slug===n||!t.hidden.includes(s.slug)).map((s,r)=>({org:s,index:r})).sort((s,r)=>Number(t.pinned.includes(r.org.slug))-Number(t.pinned.includes(s.org.slug))||o(s.org.slug)-o(r.org.slug)||s.index-r.index).map(({org:s})=>s)}function ye(e,t,n,o){const s=t.indexOf(n),r=t.indexOf(o);if(s===-1||r===-1||s===r||e.pinned.includes(n)!==e.pinned.includes(o))return e;const i=[...t];return i.splice(s,1),i.splice(r,0,n),{...e,order:[...i,...e.order.filter(a=>!i.includes(a))]}}function pe(){const e=h.c(5),t=G(),{remember:n}=Z();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=I.railOrgPrefs(),e[0]=o):o=e[0];const[,s]=E(o,j);let r;return e[1]!==t||e[2]!==n||e[3]!==s?(r=(i,a)=>{const c=a?.includes(i)??!1;s(d=>te(ee(d),i)),n(i,c?a:void 0),t({to:"/$org/home",params:{org:i},search:{thread:void 0},viewTransition:!0})},e[1]=t,e[2]=n,e[3]=s,e[4]=r):r=e[4],r}const m=new F(!1);function Oe(){m.set(!0)}function be(){m.set(!1)}function xe(){const e=h.c(2),t=A.useSyncExternalStore(m.subscribe,m.get);let n;return e[0]!==t?(n=[t,m.set],e[0]=t,e[1]=n):n=e[1],n}function we(e){const t=h.c(8);let n;t[0]!==e?(n=z.orgNotice(e??""),t[0]=e,t[1]=n):n=t[1];let o;t[2]!==e?(o=async()=>{const i=await fetch(`/api/${e}/notice`,{credentials:"include"});return i.ok?(await i.json()).notice??null:null},t[2]=e,t[3]=o):o=t[3];const s=!!e;let r;return t[4]!==n||t[5]!==o||t[6]!==s?(r={queryKey:n,queryFn:o,enabled:s,staleTime:6e4},t[4]=n,t[5]=o,t[6]=s,t[7]=r):r=t[7],_(r)}export{j as E,ce as I,K as L,U as O,de as a,Z as b,pe as c,fe as d,ge as e,ue as f,Y as g,he as h,X as i,xe as j,be as k,oe as l,ye as m,ie as n,Oe as o,ee as r,ae as s,me as t,we as u,le as w};
|
package/dist/client/assets/{use-org-repo-syncs-DF9fGaS3.js → use-org-repo-syncs-C556S9To.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,a4 as f,ak as y,K as S,i as _,q as d,e as R}from"./index-
|
|
1
|
+
import{c as r,a4 as f,ak as y,K as S,i as _,q as d,e as R}from"./index-BfWp2Wnw.js";const p=5e3;function m(e){return(e??[]).some(n=>!n.lastSyncedAt&&!n.lastSyncError)}function g(){const e=r.c(7),{org:n}=f(),t=y();let i;e[0]!==n.id?(i=S.orgRepoSyncs(n.id),e[0]=n.id,e[1]=i):i=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]!==i||e[5]!==s?(o={queryKey:i,staleTime:6e4,refetchInterval:E,queryFn:s},e[4]=i,e[5]=s,e[6]=o):o=e[6],_(o)}function E(e){return m(e.state.data)?p:!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(),i=d();let s;e[0]!==n||e[1]!==i?(s=()=>i.invalidateQueries({queryKey:S.orgRepoSyncs(n.id)}),e[0]=n,e[1]=i,e[2]=s):s=e[2];const o=s;let c;e[3]!==t?(c=async u=>(await t.call("ORG_REPO_SYNC_CREATE",u)).config,e[3]=t,e[4]=c):c=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]!==c||e[10]!==a?(l={mutationFn:c,onSuccess:a,onSettled:o},e[8]=o,e[9]=c,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(),i=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]!==i?(o=()=>i.invalidateQueries({queryKey:S.orgRepoSyncs(n.id)}),e[2]=n,e[3]=i,e[4]=o):o=e[4];let c;return e[5]!==s||e[6]!==o?(c={mutationFn:s,onSettled:o},e[5]=s,e[6]=o,e[7]=c):c=e[7],R(c)}export{P as a,q as b,T as c,g as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,i as S,q as r,e as y,K as c}from"./index-
|
|
1
|
+
import{c as u,i as S,q as r,e as y,K as c}from"./index-BfWp2Wnw.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 q(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 C(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 O(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 m(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{C as a,O as b,m as c,h as d,q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,a as w,dU as b,a4 as E,i as F,al as M,K as y,ak as T,q as A,e as O}from"./index-
|
|
1
|
+
import{c as u,a as w,dU as b,a4 as E,i as F,al as M,K as y,ak as T,q as A,e as O}from"./index-BfWp2Wnw.js";import{D as C,o as G,a as $}from"./schema-BJIhJXy6.js";import{r as z}from"./task-board-B-hxKp5U.js";const I={organizationId:"",sidebar_items:null,coding_agent_mcp_excluded:null,simple_mode:null,default_home_agents:null,flags:null,submodule_credentials:null},x={tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}};function P(t,e){return{queryKey:y.organizationSettings(e),queryFn:async()=>{try{return await M(t,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...I,organizationId:e}}},staleTime:6e4}}function c(t){const e=u.c(7),{org:n}=E();let s;e[0]!==n.id||e[1]!==n.slug?(s=P(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],F(i)}function _(){const t=u.c(9),{org:e}=E(),n=T(),s=A();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(y.organizationSettings(e.id),r=>({...r??I,...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],O(i)}function R(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}}:x}function Y(){const{data:t}=c(D);return t??x}function D(t){return R(t.simple_mode)}function j(){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 B(){return d("reports_only")}function d(t){const e=u.c(5);let n;e[0]!==t?(n=a=>G(a.flags,t),e[0]=t,e[1]=n):n=e[1];const{data:s}=c(n);let o;return e[2]!==s||e[3]!==t?(o=s??C.has(t),e[2]=s,e[3]=t,e[4]=o):o=e[4],o}function V(t){const e=u.c(6);let n;e[0]!==t?(n=i=>G(i.flags,t),e[0]=t,e[1]=n):n=e[1];const{data:s,isError:o}=c(n);let a;return e[2]!==s||e[3]!==t||e[4]!==o?(a=s??(o?C.has(t):void 0),e[2]=s,e[3]=t,e[4]=o,e[5]=a):a=e[5],a}function W(){const t=d("chat_harness_sandbox_only");return b().runtime.agentSandbox&&t}function H(){const t=u.c(8),{org:e}=E(),n=T(),s=A();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(y.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],O(i)}function k(t){return!!t&&t.trim().toLowerCase().endsWith("@deco.cx")}function J(){const t=u.c(8),{data:e}=w.useSession(),n=b();let s;t[0]!==n.auth.localMode||t[1]!==e?.user?.email?(s=n.auth.localMode===!0||k(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=d("hosting_enabled"),r=d("e2e_enabled"),m=d("monitor_enabled"),N=d("experiments_enabled"),g=o||a||l,S=o||a||r,p=o||i||m,h=o||a||N;let f;return t[3]!==g||t[4]!==S||t[5]!==p||t[6]!==h?(f={hosting:g,e2e:S,monitor:p,experiments:h},t[3]=g,t[4]=S,t[5]=p,t[6]=h,t[7]=f):f=t[7],f}function X(){const{data:t}=c(L);return t??!1}function L(t){return $(t.flags)}function tt(){const{data:t}=c(U);return t??!0}function U(t){return z(t.flags)}function et(){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 nt(){const t=u.c(2),{data:e}=c(q);let n;return t[0]!==e?(n=e??[],t[0]=e,t[1]=n):n=t[1],n}function q(t){return t.coding_agent_mcp_excluded}function st(){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 ot(){const t=u.c(2),{data:e}=c(Q);let n;return t[0]!==e?(n=e??[],t[0]=e,t[1]=n):n=t[1],n}function Q(t){return t.submodule_credentials}function at(){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{d as a,W as b,V as c,Y as d,J as e,tt as f,H as g,X as h,et as i,nt as j,st as k,j as l,ot as m,at as n,B as u};
|
package/dist/client/assets/{use-panel-navigate-C9YlWWPn.js → use-panel-navigate-db4k7dl4.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,f as g,u as S,dH as _,d as k,l as I,cI as b,dI as P}from"./index-
|
|
1
|
+
import{c as p,f as g,u as S,dH as _,d as k,l as I,cI as b,dI as P}from"./index-BfWp2Wnw.js";import{c as E}from"./thread-route-Ds6Wombz.js";import{u as R}from"./use-project-scope-CFftAYVY.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],I(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=E(),s=R(),r=o.org??"";let n;e[1]!==t||e[2]!==r||e[3]!==i||e[4]!==s?(n=(d,c)=>{const h=b(d),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});P(t,{org:r,agentId:c?.virtualmcpid??i,tabId:d,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=d=>t({to:".",search:z,replace:d?.replace??!0}),e[6]=t,e[7]=l):l=e[7];const f=l;let u;return e[8]!==f||e[9]!==m?(u={openPanel:m,closePanel:f},e[8]=f,e[9]=m,e[10]=u):u=e[10],u}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 O,a4 as W,dU as y,bs as B,i as N,K as F}from"./index-
|
|
1
|
+
import{c as O,a4 as W,dU as y,bs as B,i as N,K as F}from"./index-BfWp2Wnw.js";import{m as J}from"./match-site-slug-config-B47_xZCi.js";import{u as U}from"./use-file-configs-CyAC1Jn2.js";import{a as K}from"./use-blog-view-9w6CHFwT.js";import{e as $}from"./use-organization-settings-BliP9B1t.js";import{b as k}from"./use-blocks-v8-project-DwTQhXO1.js";const u=["overview","context","monitor","plan","reports","board","site-editor","calendar","experiments","blog","assets","releases","hosting","e2e","automations"],q=["overview","reports","board","site-editor","blog"],T=1,D=["overview","context","monitor","plan","board"],L=["blog"],Q=["calendar","experiments"],H=["hosting"],Y={calendar:!1,hosting:!1,"site-editor":!1,blog:!1};function C(t){return[...D,...t.calendar?Q:[],...t.hosting&&t["site-editor"]?H:[],...t.blog?L:[]]}function z(t,e){const n=new Set(t??[]);return C(e).filter(s=>!n.has(s))}function le(t,e,n){const s=new Set([...t??[],...C({...e,"site-editor":e["site-editor"]&&n.includes("site-editor")})]);return u.filter(r=>s.has(r))}function fe(t,e){if(!t&&e===void 0)return new Set(D);const n=new Set(e!==void 0?V(e,T):V(X(t),t?.sidebarViewsVersion,z(t?.sidebarViewsSeen,Y)));return new Set(D.filter(s=>n.has(s)))}const G=["calendar","experiments","assets","releases","hosting","e2e"];function ue(t,e,n){if(!t)return{project:n??null,resolvedScopeId:null};const s=e?.id===t?e:n?.id===t?n:null;return{project:s,resolvedScopeId:s?t:null}}function X(t){return t?.sidebarViews!==void 0?t.sidebarViews:t?.ui?.layout?.sidebarViews}function V(t,e,n=[]){const s=new Set(t??[]);if(e!==T)for(const r of q)s.add(r);for(const r of n)r==="hosting"&&!s.has("site-editor")||s.add(r);return u.filter(r=>s.has(r))}function Z(t){return u.some(e=>e===t)}function M(t){return G.some(e=>e===t)}function ee(t,e){return{overview:t,context:!0,monitor:!0,plan:!0,reports:t,board:t,"site-editor":t,blog:t&&e.blog===!0,assets:e.assets,releases:t&&e.releases,hosting:e.hosting,e2e:e.e2e,calendar:t&&e.calendar,experiments:t&&e.experiments,automations:!0}}function de(t,e,n){const s=ee(e,n);return t?s:{...s,overview:!0,reports:!0,board:!0}}function Se(t,e,n,s=[]){const r=new Set(V(t,n,s));return u.filter(o=>e[o]&&r.has(o))}function be(t,e,n){return n||!t?t:(t.type==="preview"||t.type==="content"||t.type==="code"?"site-editor":t.type)===e?{type:"settings"}:t}function ge(t){return u.filter(e=>t[e])}function te(t,e,n){return!Z(t)||e[t]?!1:t==="blog"?n.blog!==!0:!M(t)||t==="releases"||t==="calendar"||t==="experiments"?!0:!(t==="assets"?n.assets:n.siteAccess)}function Ve(t,e,n,s,r){return te(t==="preview"||t==="content"||t==="code"?"site-editor":t,e,n)||t==="content"&&!s.includes("content")||t==="code"&&r&&!s.includes("code")}function we(t,e,n,s){const r=new Set(V(t,s));return n?r.add(e):r.delete(e),u.filter(o=>r.has(o))}function Pe(t){const e=O.c(22),{org:n}=W(),s=y(),r=$(),o=K(),i=U();let c;e[0]!==t?(c=k(t),e[0]=t,e[1]=c):c=e[1];const d=c;let S;e[2]!==t?(S=B(t),e[2]=t,e[3]=S):S=e[3];const a=S,w=s.hostingEnabled===!0,R=w&&!!a,j=se(n.slug,a,R),v=j.data?.owned===!0;let l;e[4]!==i.data?.configs?(l=i.data?.configs??[],e[4]=i.data?.configs,e[5]=l):l=e[5];const P=t?.metadata?.assetStorageConfigId;let b;e[6]!==a||e[7]!==l||e[8]!==P?(b=J(l,a,P),e[6]=a,e[7]=l,e[8]=P,e[9]=b):b=e[9];const E=!!b,m=d&&!!t?.metadata?.siteSlug,_=w&&v&&r.hosting,p=w&&v&&r.e2e,I=o===!0;let f;e[10]!==E||e[11]!==m||e[12]!==_||e[13]!==p||e[14]!==I||e[15]!==d?(f={assets:E,releases:m,hosting:_,e2e:p,calendar:d,experiments:d,blog:I},e[10]=E,e[11]=m,e[12]=_,e[13]=p,e[14]=I,e[15]=d,e[16]=f):f=e[16];const A=!!(a||t?.metadata?.assetStorageConfigId)&&i.isPending,h=R&&j.isPending,x=o===void 0;let g;return e[17]!==f||e[18]!==A||e[19]!==h||e[20]!==x?(g={presence:f,assetsPending:A,siteAccessPending:h,blogPending:x},e[17]=f,e[18]=A,e[19]=h,e[20]=x,e[21]=g):g=e[21],g}function se(t,e,n){const s=O.c(10);let r;s[0]!==t||s[1]!==e?(r=F.hostingAccess(t,e??""),s[0]=t,s[1]=e,s[2]=r):r=s[2];let o;s[3]!==t||s[4]!==e?(o=async()=>{const c=await fetch(`/api/${t}/hosting/${encodeURIComponent(e??"")}/access`);return c.ok?await c.json():{owned:!1,canWrite:!1}},s[3]=t,s[4]=e,s[5]=o):o=s[5];let i;return s[6]!==n||s[7]!==r||s[8]!==o?(i={queryKey:r,queryFn:o,enabled:n,staleTime:6e4},s[6]=n,s[7]=r,s[8]=o,s[9]=i):i=s[9],N(i)}export{u as P,Se as a,T as b,ue as c,de as d,Ve as e,te as f,V as g,ge as h,M as i,D as j,le as k,be as l,z as o,ee as p,X as r,fe as s,we as t,Pe as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,f as P,u as T,d as N,cJ as R,dJ as E,dI as k,ae as l}from"./index-
|
|
1
|
+
import{c as b,f as P,u as T,d as N,cJ as R,dJ as E,dI as k,ae as l}from"./index-BfWp2Wnw.js";import{d as C,a as O,p as w}from"./repository-binding-BDu0tU0n.js";const x=1;function _(e){return(e??[]).filter(E)}function J(){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 r=P(o);let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[1]=n):n=e[1];const t=T(n);if(r.agentId)return r.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=N();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const n=P(r),t=R(),a=C(),c=_(a),s=J(),y=c.find(i=>i.id===s)??null;let p;e[1]!==a||e[2]!==s?(p=s&&a.length>0&&!a.some(i=>i.id===s)?s:null,e[1]=a,e[2]=s,e[3]=p):p=e[3];const I=O(p),u=y??_(I?[I]:[])[0]??null;let m;e[4]!==t||e[5]!==o||e[6]!==n||e[7]!==s?(m=i=>{if(i===s&&t!==void 0)return;const h=n.org??"",S=M;if(i){k(o,{org:h,agentId:i,tabId:t==="board"||t==="reports"?t:"overview",search:S,replace:!1});return}if(t==="board"){o({to:l.tasks,params:{org:h,taskKey:void 0},search:S});return}const j=t==="files"?l.library:t==="monitoring"?l.monitoring:t==="plan"?l.plan:l.home;o({to:j,params:{org:h},search:S})},e[4]=t,e[5]=o,e[6]=n,e[7]=s,e[8]=m):m=e[8];const f=m,v=w(u),g=c.length>=x;let d;return e[9]!==u||e[10]!==c||e[11]!==s||e[12]!==f||e[13]!==v||e[14]!==g?(d={scopeId:s,project:u,repo:v,projects:c,hasProjects:g,setScope:f},e[9]=u,e[10]=c,e[11]=s,e[12]=f,e[13]=v,e[14]=g,e[15]=d):d=e[15],d}function M(e){return{...e,virtualmcpid:void 0,thread:void 0,mainpanel:void 0,path:void 0,preview:void 0,expanded:void 0}}export{B as a,_ as s,J as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as A,c as m,l as j,ar as y,at as b,ag as N}from"./index-
|
|
1
|
+
import{r as A,c as m,l as j,ar as y,at as b,ag as N}from"./index-BfWp2Wnw.js";import{u as w}from"./use-blog-view-9w6CHFwT.js";import{P as E}from"./project-apps-D28U2fPi.js";import{a as P}from"./repository-binding-BDu0tU0n.js";function D(n,e){const t=new Set(e);return t.size===0?n:n.filter(c=>t.has(c.connectionId))}function R(n){const e=n.metadata?.ui;return Array.isArray(e?.pinnedViews)?e.pinnedViews.filter(t=>!!t&&typeof t=="object"&&typeof t.connectionId=="string"&&typeof t.toolName=="string"&&["undefined","string"].includes(typeof t.label)&&(t.icon==null||typeof t.icon=="string")):[]}const V=4;function I(n,e){return n.app===e.app&&n.projectId===e.projectId}function h(n,e,t=V){return[e,...n.filter(c=>!I(c,e))].slice(0,t)}function _(n,e){return n.filter(t=>!I(t,e))}function g(n,e,t){const c=n.findLast(l=>l.staticData.mainView);if(!c)return null;const{mainView:r,siteEditorView:p,local:i}=c.staticData;if(!r)return null;const o=c.params,a=o?.agentId;if(a&&r==="app"&&o.connectionId&&o.toolName)return{app:t(o.connectionId,o.toolName),projectId:a,connection:{id:o.connectionId,toolName:o.toolName}};const s=p?"site-editor":r;return e(s)?a?{app:s,projectId:a}:i?{app:s,projectId:null}:null:null}const d=[];function O(n){const e=m.c(12);let t;e[0]!==n?(t=b.recentApps(n),e[0]=n,e[1]=t):t=e[1];const[c,r]=y(t,d),p=w(),i=Array.isArray(c)?c:d;let o;e[2]!==p||e[3]!==i?(o=p?i:i.filter(S),e[2]=p,e[3]=i,e[4]=o):o=e[4];let a,s;e[5]!==r?(a=f=>r(u=>h(Array.isArray(u)?u:[],f)),s=f=>r(u=>_(Array.isArray(u)?u:[],f)),e[5]=r,e[6]=a,e[7]=s):(a=e[6],s=e[7]);let l;return e[8]!==o||e[9]!==a||e[10]!==s?(l={recent:o,remember:a,forget:s},e[8]=o,e[9]=a,e[10]=s,e[11]=l):l=e[11],l}function S(n){return n.app!=="blog"}function T(){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],j(e)}function L(n){return g(n.matches,C,N)}function C(n){return n in E}function Y(n){const{remember:e}=O(n),t=T(),c=P(t?.projectId),r=t?.projectId&&c?.id===t.projectId?c.title:null,p=t?.connection&&c?R(c).find(o=>o.connectionId===t.connection?.id&&o.toolName===t.connection.toolName):void 0,i=t?.connection&&{id:t.connection.id,toolName:t.connection.toolName,label:p?.label||t.connection.toolName,icon:p?.icon};A.useEffect(()=>{!t?.projectId||!r||e({app:t.app,projectId:t.projectId,projectTitle:r,...i&&{connection:i}})},[n,t?.app,t?.projectId,r,i?.label,i?.icon])}export{T as a,O as b,D as k,R as p,Y as u};
|
package/dist/client/assets/{use-reports-diagnostic-DbMoz7IJ.js → use-reports-diagnostic-CYymDS51.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as N,a4 as Q,W as F,T as A,i as f,K as R,g_ as L,$ as K,U}from"./index-
|
|
1
|
+
import{c as N,a4 as Q,W as F,T as A,i as f,K as R,g_ as L,$ as K,U}from"./index-BfWp2Wnw.js";import{m as O}from"./use-mcp-client-HASDr5yn.js";import{u as h}from"./companions-core-DhUD88pR.js";function D(n){return n?n.scanned_at?"ready":n.run_in_progress?"generating":"none":"none"}function M(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 j(){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:R.reportsConnection(e.id,t),enabled:!!p,retry:!1,staleTime:6e4,queryFn:async()=>{if(!p)throw new Error("selfClient not ready");const T=await p.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:t}});return h(T)}}),m=u.data?.item??null,{data:s,isError:y}=f({...O({connectionId:t,orgId:e.id,orgSlug:e.slug}),enabled:!!m}),C=R.reportsDiagnostic(e.id,t),E=!!s;let i;n[3]!==s?(i=async()=>{if(!s)throw new Error("cdClient not ready");const T=await s.callTool({name:L,arguments:{}});return h(T).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,_=!!m;let a;n[9]!==y||n[10]!==u.isPending||n[11]!==r.isPending||n[12]!==_?(a=M({connectionQueryPending:u.isPending,hasConnection:_,cdClientFailed:y,diagnosticQueryPending:r.isPending}),n[9]=y,n[10]=u.isPending,n[11]=r.isPending,n[12]=_,n[13]=a):a=n[13];const I=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=s??null;let g;return n[16]!==t||n[17]!==r.isSuccess||n[18]!==c||n[19]!==S||n[20]!==P||n[21]!==a||n[22]!==I?(g={diagnostic:P,isSuccess:w,isLoading:a,siteUrl:I,host:c,connectionId:t,cdClient:S},n[16]=t,n[17]=r.isSuccess,n[18]=c,n[19]=S,n[20]=P,n[21]=a,n[22]=I,n[23]=g):g=n[23],g}function v(n){return n.state.status!=="error"&&D(n.state.data)==="generating"?b:!1}function B(n,e){return{to:K.app,params:{org:n.slug,agentId:U(n.id),connectionId:e,toolName:L},search:{}}}export{D as d,B as r,j as u};
|
package/dist/client/assets/{use-sandbox-events-CBh8sLnm.js → use-sandbox-events-rgvK0R-0.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as B,q as be,i as X,K as T,eI as Z,cH as je,r as m,j as ce,a4 as xe,cG as ue}from"./index-DPOIY_Am.js";import{h as Pe,u as Ae}from"./chat-context-CBri2v4z.js";import{b as Ie}from"./sandbox-url-D3mC8qhT.js";import{b as Ue}from"./repository-binding-BKMgK4Io.js";import{e as Me}from"./backoff-CrEUbyZT.js";const w={MethodNotFound:-32601,InvalidParams:-32602,InternalError:-32603,NotFound:-32001,Conflict:-32002,InvalidBlock:-32003,ReadOnly:-32005,Unsupported:-32006,LimitExceeded:-32007,Unavailable:-32008,Unauthorized:-32010};class y extends Error{code;data;constructor(n,s,e){super(s),this.name="ContentProtocolError",this.code=n,this.data=e}toJSON(){return this.data===void 0?{code:this.code,message:this.message}:{code:this.code,message:this.message,data:this.data}}static from(n){return new y(n.code,n.message,n.data)}}const $="deco-content",z={major:1},ye=1;async function $e(t){let n=new Uint8Array(await t.arrayBuffer());if(n[0]===31&&n[1]===139){const s=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip"));n=new Uint8Array(await new Response(s).arrayBuffer())}return JSON.parse(new TextDecoder().decode(n))}const K={major:z.major,minor:ye},Se=`the endpoint speaks an older ${$} than this client needs (${K.major}.${K.minor} or newer): update @decocms/blocks in the site (8.2.0 or newer) and start deco serve again`;function F(t,n,s){const e={reason:n,required:{...K}};if(s){e.actual={protocol:s.protocol,major:s.version?.major,minor:s.version?.minor};const o=s.server;typeof o?.name=="string"&&typeof o.version=="string"&&(e.server={name:o.name,version:o.version})}return new y(w.Unsupported,t,e)}function Fe(t){const n=t??{},{protocol:s,version:e}=n;if(s!==$)throw F(`the endpoint speaks ${JSON.stringify(s)}, not ${$}`,"protocol",n);if(e?.major!==z.major)throw F(`the endpoint speaks ${$} ${String(e?.major)}.x; this client speaks ${z.major}.x`,"major",n);if(typeof e.minor!="number"||e.minor<ye)throw F(Se,"outdated",n);return t}function le(t,n){return n.code===w.MethodNotFound&&t.startsWith("changes.")?F(Se,"outdated"):y.from(n)}function Be(t){const n=t.fetch??(r=>fetch(r));let s=1;async function e(r){const a={"content-type":"application/json",accept:"application/json",...t.headers},c=await n(new Request(t.endpoint,{method:"POST",headers:a,body:JSON.stringify(r)}));let i;try{i=await $e(c)}catch{throw new y(w.Unavailable,`the endpoint answered HTTP ${c.status} without a JSON-RPC body`)}if(!c.ok||!Array.isArray(i)&&i?.id===null){const l=i?.error;throw l?y.from(l):new y(w.Unavailable,`the endpoint answered HTTP ${c.status}`)}return i}const o=async(r,a)=>{const c=s++,i=await e({jsonrpc:"2.0",id:c,method:r,params:a??{}});if(i.error)throw le(r,i.error);return i.result};return{call:o,describe:async()=>Fe(await o("describe")),schemaGet:r=>o("schema.get",r),blocksList:r=>o("blocks.list",r),blocksApply:r=>o("blocks.apply",r),changesList:r=>o("changes.list",r),changesGet:r=>o("changes.get",r),changesDiscard:r=>o("changes.discard",r),async batch(r){const a=r.map(()=>s++),c=await e(r.map((l,d)=>({jsonrpc:"2.0",id:a[d],method:l.method,params:l.params??{}}))),i=new Map(c.map(l=>[l.id,l]));return a.map((l,d)=>{const f=i.get(l);return f?f.error?{ok:!1,error:le(r[d].method,f.error)}:{ok:!0,result:f.result}:{ok:!1,error:new y(w.InternalError,"no response for this call")}})}}}function Qe(t){return t&&!t.edited?{ifNoneMatch:t.revision}:{}}const de=20,fe=5,pe=500;function pt(t){return t instanceof y?t.code===w.MethodNotFound?!0:t.code===w.Unsupported&&t.data?.reason==="outdated":!1}function he(t,n,s=t){return s&&s!==t?s:n.notModified?t?{...t,base:n.base}:null:{revision:n.revision,base:n.base,changes:n.changes}}async function qe(t,n,s){const e=T.contentChanges(s),o=t.getQueryData(e),r=await n.changesList(Qe(o)),a=he(o,r,t.getQueryData(e));if(a)return a;const c=await n.changesList({}),i=he(void 0,c,t.getQueryData(e));if(!i)throw new y(w.InternalError,"changes.list returned notModified without a cached list");return i}async function ht(t,n,s){const o=await Be({endpoint:new URL(`/api/${t}/decofile/${encodeURIComponent(n)}/${encodeURIComponent(s)}/rpc`,window.location.origin).href}).changesList();return o.notModified?0:Object.keys(o.changes).length}async function we(t,n){const s=[];for(let r=0;r<n.length;r+=de)s.push(n.slice(r,r+de));const e=Object.create(null),o=[];for(let r=0;r<s.length;r+=fe){const a=await t.batch(s.slice(r,r+fe).map(c=>({method:"changes.get",params:{names:c}})));for(const c of a){if(!c.ok)throw c.error;const i=c.result;Object.assign(e,i.entries),o.push(...i.diagnostics)}}return{entries:e,diagnostics:o}}async function mt(t,n){let s={revision:"",versions:{}};for(let e=0;e<n.length;e+=pe){const o=n.slice(e,e+pe),r=await t.changesDiscard({names:o.map(a=>a.name),ifMatch:Object.fromEntries(o.map(a=>[a.name,a.version]))});s={revision:r.revision,versions:{...s.versions,...r.versions}}}return s}function gt(t){return t instanceof y&&t.code===w.Conflict}function ee(t){return t?.kind==="protocol"?t:null}function Et(t,n,s){const e=B.c(14);let o;e[0]!==s?(o={},e[0]=s,e[1]=o):o=e[1];const r=o,a=be();let c;e[2]!==t?(c=ee(t),e[2]=t,e[3]=c):c=e[3];const i=c,l=!!i&&!!n&&r.enabled!==!1;let d;e[4]!==n?(d=T.contentChanges(n??""),e[4]=n,e[5]=d):d=e[5];let f;e[6]!==n||e[7]!==l||e[8]!==i||e[9]!==a?(f=l?()=>qe(a,i.client,n):Z,e[6]=n,e[7]=l,e[8]=i,e[9]=a,e[10]=f):f=e[10];let v;return e[11]!==d||e[12]!==f?(v={queryKey:d,queryFn:f,staleTime:0},e[11]=d,e[12]=f,e[13]=v):v=e[13],X(v)}function Ge(t){if(!t)return"";const n=Object.entries(t.changes).sort(([s],[e])=>s<e?-1:s>e?1:0).map(([s,e])=>[s,e.kind,e.version,e.baseVersion]);return JSON.stringify([t.revision,t.base.revision,t.base.resolvedRef,n])}function vt(t,n,s){const e=B.c(14);let o;e[0]!==t?(o=ee(t),e[0]=t,e[1]=o):o=e[1];const r=o;let a;e[2]!==s?(a=s?Object.keys(s.changes):[],e[2]=s,e[3]=a):a=e[3];const c=a,i=!!r&&!!n&&!!s&&c.length>0;let l;e[4]!==n||e[5]!==s?(l=T.contentChangeSides(n??"",Ge(s)),e[4]=n,e[5]=s,e[6]=l):l=e[6];let d;e[7]!==i||e[8]!==c||e[9]!==r?(d=i?()=>we(r.client,c):Z,e[7]=i,e[8]=c,e[9]=r,e[10]=d):d=e[10];let f;return e[11]!==l||e[12]!==d?(f={queryKey:l,queryFn:d,staleTime:Number.POSITIVE_INFINITY},e[11]=l,e[12]=d,e[13]=f):f=e[13],X(f)}function bt(t,n,s){const e=B.c(16);let o;e[0]!==t?(o=ee(t),e[0]=t,e[1]=o):o=e[1];const r=o;let a,c,i,l;if(e[2]!==n||e[3]!==s?.changes||e[4]!==r){const v=Object.entries(s?.changes??{}).filter(We).map(Ye).sort(He);c=v.map(Je);const R=JSON.stringify(v.map(Ve));a=!!r&&!!n&&c.length>0,l=X,i=T.contentDeletedCopies(n??"",R),e[2]=n,e[3]=s?.changes,e[4]=r,e[5]=a,e[6]=c,e[7]=i,e[8]=l}else a=e[5],c=e[6],i=e[7],l=e[8];let d;e[9]!==a||e[10]!==c||e[11]!==r?(d=a?async()=>{const v=await we(r.client,c),R=Object.create(null);for(const[x,P]of Object.entries(v.entries))R[x]=P.before&&typeof P.before=="object"?P.before:null;return R}:Z,e[9]=a,e[10]=c,e[11]=r,e[12]=d):d=e[12];let f;return e[13]!==i||e[14]!==d?(f={queryKey:i,queryFn:d,staleTime:Number.POSITIVE_INFINITY,placeholderData:je},e[13]=i,e[14]=d,e[15]=f):f=e[15],l(f)}function Ve(t){return[t.name,t.base]}function Je(t){return t.name}function He(t,n){return t.name<n.name?-1:t.name>n.name?1:0}function Ye(t){const[n,s]=t;return{name:n,base:s.baseVersion??""}}function We(t){const[,n]=t;return n.kind==="delete"}function me(t){return t==="installing"||t==="install-failed"||t==="starting"||t==="start-failed"||t==="running"||t==="crashed"}const ze={phase:null,lifecycle:{phase:"idle"},status:{state:"running"},branch:{kind:"unknown"},notFound:!1,scripts:[],activeProcesses:[],getBuffer:()=>"",hasData:()=>!1,subscribeChunks:()=>()=>{},subscribeReload:()=>()=>{}},Ce=m.createContext(ze),ge=16384;class Ke{data="";append(n){this.data+=n,this.data.length>ge&&(this.data=this.data.slice(this.data.length-ge))}get(){return this.data}clear(){this.data=""}}const Xe=1e3,Ze=3e4,et=3e3,Ee=["lifecycle","status","tasks","scripts","branch","reload","file-changed"],ve="log";function tt(t){if(!t)return null;try{return new URL("/_sandbox/events",t).href}catch{return null}}function nt(t){return t===404}function st(t){return/(?:^|[\s;&|(])deno\s+task\b/.test(t)}async function rt(t){try{const n=await fetch(t,{headers:{Accept:"text/event-stream"},cache:"no-store",signal:AbortSignal.timeout(et)});return await n.body?.cancel().catch(()=>{}),nt(n.status)}catch{return!1}}const Oe=Pe(Ce);function yt(t){const n=B.c(10);let s,e,o;n[0]!==t?({resetKey:o,children:s,...e}=t,n[0]=t,n[1]=s,n[2]=e,n[3]=o):(s=n[1],e=n[2],o=n[3]);let r;n[4]!==e||n[5]!==o?(r=ce.jsx(ot,{...e},o),n[4]=e,n[5]=o,n[6]=r):r=n[6];let a;return n[7]!==s||n[8]!==r?(a=ce.jsx(Oe.Host,{source:r,children:s}),n[7]=s,n[8]=r,n[9]=a):a=n[9],a}function ot(t){return Oe.usePublish(at(t)),null}function at({virtualMcpId:t,branch:n,previewUrl:s=null,enabled:e=!0}){const{org:o}=xe(),r=be(),a=Ae()?.taskId??null,[c,i]=m.useState(null),[l,d]=m.useState({phase:"idle"}),[f,v]=m.useState({state:"running"}),[R,x]=m.useState({kind:"unknown"}),[P,Q]=m.useState(!1),[Re,q]=m.useState([]),[De,G]=m.useState([]),[,ke]=m.useState(0),D=m.useRef(new Map),V=m.useRef(new Set),A=m.useRef(new Set),J=m.useRef(null),I=tt(s),te=Ue(t)?.metadata?.runtime?.selected==="deno",Ne=E=>{let b=D.current.get(E);return b||(b=new Ke,D.current.set(E,b)),b};return m.useEffect(()=>{if(i(null),d({phase:"idle"}),v({state:"running"}),x({kind:"unknown"}),J.current=null,Q(!1),q([]),G([]),D.current.clear(),!t||!n||!e)return;const E=Ie({orgSlug:o.slug,virtualMcpId:t,branch:n,threadId:a??null},"events");let b=!1,k=0,U=null,N=null,_=null,C=null,S=null,M=null,ne=!1;const H=()=>{N&&clearTimeout(N),N=setTimeout(()=>{N=null,r.invalidateQueries({queryKey:T.liveMeta(o.slug,t,n)})},1e3)},_e=u=>{try{const p=JSON.parse(u.data);i(p),p.kind!=="failed"&&(Q(!1),k=0),p.kind==="ready"&&ae()}catch(p){console.warn("[vm-events] bad phase payload",p)}},se=()=>{Q(!0),i(null),d({phase:"idle"}),v({state:"running"}),x({kind:"unknown"}),q([]),G([]),D.current.clear()},re=u=>{try{const p=JSON.parse(u.data);if(typeof p.data!="string")return;k=0;const g=p.data.replace(/\r?\n/g,`\r
|
|
1
|
+
import{c as B,q as be,i as X,K as T,eI as Z,cH as je,r as m,j as ce,a4 as xe,cG as ue}from"./index-BfWp2Wnw.js";import{h as Pe,u as Ae}from"./chat-context-BUMEnIPW.js";import{b as Ie}from"./sandbox-url-D3mC8qhT.js";import{b as Ue}from"./repository-binding-BDu0tU0n.js";import{e as Me}from"./backoff-CrEUbyZT.js";const w={MethodNotFound:-32601,InvalidParams:-32602,InternalError:-32603,NotFound:-32001,Conflict:-32002,InvalidBlock:-32003,ReadOnly:-32005,Unsupported:-32006,LimitExceeded:-32007,Unavailable:-32008,Unauthorized:-32010};class y extends Error{code;data;constructor(n,s,e){super(s),this.name="ContentProtocolError",this.code=n,this.data=e}toJSON(){return this.data===void 0?{code:this.code,message:this.message}:{code:this.code,message:this.message,data:this.data}}static from(n){return new y(n.code,n.message,n.data)}}const $="deco-content",z={major:1},ye=1;async function $e(t){let n=new Uint8Array(await t.arrayBuffer());if(n[0]===31&&n[1]===139){const s=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip"));n=new Uint8Array(await new Response(s).arrayBuffer())}return JSON.parse(new TextDecoder().decode(n))}const K={major:z.major,minor:ye},Se=`the endpoint speaks an older ${$} than this client needs (${K.major}.${K.minor} or newer): update @decocms/blocks in the site (8.2.0 or newer) and start deco serve again`;function F(t,n,s){const e={reason:n,required:{...K}};if(s){e.actual={protocol:s.protocol,major:s.version?.major,minor:s.version?.minor};const o=s.server;typeof o?.name=="string"&&typeof o.version=="string"&&(e.server={name:o.name,version:o.version})}return new y(w.Unsupported,t,e)}function Fe(t){const n=t??{},{protocol:s,version:e}=n;if(s!==$)throw F(`the endpoint speaks ${JSON.stringify(s)}, not ${$}`,"protocol",n);if(e?.major!==z.major)throw F(`the endpoint speaks ${$} ${String(e?.major)}.x; this client speaks ${z.major}.x`,"major",n);if(typeof e.minor!="number"||e.minor<ye)throw F(Se,"outdated",n);return t}function le(t,n){return n.code===w.MethodNotFound&&t.startsWith("changes.")?F(Se,"outdated"):y.from(n)}function Be(t){const n=t.fetch??(r=>fetch(r));let s=1;async function e(r){const a={"content-type":"application/json",accept:"application/json",...t.headers},c=await n(new Request(t.endpoint,{method:"POST",headers:a,body:JSON.stringify(r)}));let i;try{i=await $e(c)}catch{throw new y(w.Unavailable,`the endpoint answered HTTP ${c.status} without a JSON-RPC body`)}if(!c.ok||!Array.isArray(i)&&i?.id===null){const l=i?.error;throw l?y.from(l):new y(w.Unavailable,`the endpoint answered HTTP ${c.status}`)}return i}const o=async(r,a)=>{const c=s++,i=await e({jsonrpc:"2.0",id:c,method:r,params:a??{}});if(i.error)throw le(r,i.error);return i.result};return{call:o,describe:async()=>Fe(await o("describe")),schemaGet:r=>o("schema.get",r),blocksList:r=>o("blocks.list",r),blocksApply:r=>o("blocks.apply",r),changesList:r=>o("changes.list",r),changesGet:r=>o("changes.get",r),changesDiscard:r=>o("changes.discard",r),async batch(r){const a=r.map(()=>s++),c=await e(r.map((l,d)=>({jsonrpc:"2.0",id:a[d],method:l.method,params:l.params??{}}))),i=new Map(c.map(l=>[l.id,l]));return a.map((l,d)=>{const f=i.get(l);return f?f.error?{ok:!1,error:le(r[d].method,f.error)}:{ok:!0,result:f.result}:{ok:!1,error:new y(w.InternalError,"no response for this call")}})}}}function Qe(t){return t&&!t.edited?{ifNoneMatch:t.revision}:{}}const de=20,fe=5,pe=500;function pt(t){return t instanceof y?t.code===w.MethodNotFound?!0:t.code===w.Unsupported&&t.data?.reason==="outdated":!1}function he(t,n,s=t){return s&&s!==t?s:n.notModified?t?{...t,base:n.base}:null:{revision:n.revision,base:n.base,changes:n.changes}}async function qe(t,n,s){const e=T.contentChanges(s),o=t.getQueryData(e),r=await n.changesList(Qe(o)),a=he(o,r,t.getQueryData(e));if(a)return a;const c=await n.changesList({}),i=he(void 0,c,t.getQueryData(e));if(!i)throw new y(w.InternalError,"changes.list returned notModified without a cached list");return i}async function ht(t,n,s){const o=await Be({endpoint:new URL(`/api/${t}/decofile/${encodeURIComponent(n)}/${encodeURIComponent(s)}/rpc`,window.location.origin).href}).changesList();return o.notModified?0:Object.keys(o.changes).length}async function we(t,n){const s=[];for(let r=0;r<n.length;r+=de)s.push(n.slice(r,r+de));const e=Object.create(null),o=[];for(let r=0;r<s.length;r+=fe){const a=await t.batch(s.slice(r,r+fe).map(c=>({method:"changes.get",params:{names:c}})));for(const c of a){if(!c.ok)throw c.error;const i=c.result;Object.assign(e,i.entries),o.push(...i.diagnostics)}}return{entries:e,diagnostics:o}}async function mt(t,n){let s={revision:"",versions:{}};for(let e=0;e<n.length;e+=pe){const o=n.slice(e,e+pe),r=await t.changesDiscard({names:o.map(a=>a.name),ifMatch:Object.fromEntries(o.map(a=>[a.name,a.version]))});s={revision:r.revision,versions:{...s.versions,...r.versions}}}return s}function gt(t){return t instanceof y&&t.code===w.Conflict}function ee(t){return t?.kind==="protocol"?t:null}function Et(t,n,s){const e=B.c(14);let o;e[0]!==s?(o={},e[0]=s,e[1]=o):o=e[1];const r=o,a=be();let c;e[2]!==t?(c=ee(t),e[2]=t,e[3]=c):c=e[3];const i=c,l=!!i&&!!n&&r.enabled!==!1;let d;e[4]!==n?(d=T.contentChanges(n??""),e[4]=n,e[5]=d):d=e[5];let f;e[6]!==n||e[7]!==l||e[8]!==i||e[9]!==a?(f=l?()=>qe(a,i.client,n):Z,e[6]=n,e[7]=l,e[8]=i,e[9]=a,e[10]=f):f=e[10];let v;return e[11]!==d||e[12]!==f?(v={queryKey:d,queryFn:f,staleTime:0},e[11]=d,e[12]=f,e[13]=v):v=e[13],X(v)}function Ge(t){if(!t)return"";const n=Object.entries(t.changes).sort(([s],[e])=>s<e?-1:s>e?1:0).map(([s,e])=>[s,e.kind,e.version,e.baseVersion]);return JSON.stringify([t.revision,t.base.revision,t.base.resolvedRef,n])}function vt(t,n,s){const e=B.c(14);let o;e[0]!==t?(o=ee(t),e[0]=t,e[1]=o):o=e[1];const r=o;let a;e[2]!==s?(a=s?Object.keys(s.changes):[],e[2]=s,e[3]=a):a=e[3];const c=a,i=!!r&&!!n&&!!s&&c.length>0;let l;e[4]!==n||e[5]!==s?(l=T.contentChangeSides(n??"",Ge(s)),e[4]=n,e[5]=s,e[6]=l):l=e[6];let d;e[7]!==i||e[8]!==c||e[9]!==r?(d=i?()=>we(r.client,c):Z,e[7]=i,e[8]=c,e[9]=r,e[10]=d):d=e[10];let f;return e[11]!==l||e[12]!==d?(f={queryKey:l,queryFn:d,staleTime:Number.POSITIVE_INFINITY},e[11]=l,e[12]=d,e[13]=f):f=e[13],X(f)}function bt(t,n,s){const e=B.c(16);let o;e[0]!==t?(o=ee(t),e[0]=t,e[1]=o):o=e[1];const r=o;let a,c,i,l;if(e[2]!==n||e[3]!==s?.changes||e[4]!==r){const v=Object.entries(s?.changes??{}).filter(We).map(Ye).sort(He);c=v.map(Je);const R=JSON.stringify(v.map(Ve));a=!!r&&!!n&&c.length>0,l=X,i=T.contentDeletedCopies(n??"",R),e[2]=n,e[3]=s?.changes,e[4]=r,e[5]=a,e[6]=c,e[7]=i,e[8]=l}else a=e[5],c=e[6],i=e[7],l=e[8];let d;e[9]!==a||e[10]!==c||e[11]!==r?(d=a?async()=>{const v=await we(r.client,c),R=Object.create(null);for(const[x,P]of Object.entries(v.entries))R[x]=P.before&&typeof P.before=="object"?P.before:null;return R}:Z,e[9]=a,e[10]=c,e[11]=r,e[12]=d):d=e[12];let f;return e[13]!==i||e[14]!==d?(f={queryKey:i,queryFn:d,staleTime:Number.POSITIVE_INFINITY,placeholderData:je},e[13]=i,e[14]=d,e[15]=f):f=e[15],l(f)}function Ve(t){return[t.name,t.base]}function Je(t){return t.name}function He(t,n){return t.name<n.name?-1:t.name>n.name?1:0}function Ye(t){const[n,s]=t;return{name:n,base:s.baseVersion??""}}function We(t){const[,n]=t;return n.kind==="delete"}function me(t){return t==="installing"||t==="install-failed"||t==="starting"||t==="start-failed"||t==="running"||t==="crashed"}const ze={phase:null,lifecycle:{phase:"idle"},status:{state:"running"},branch:{kind:"unknown"},notFound:!1,scripts:[],activeProcesses:[],getBuffer:()=>"",hasData:()=>!1,subscribeChunks:()=>()=>{},subscribeReload:()=>()=>{}},Ce=m.createContext(ze),ge=16384;class Ke{data="";append(n){this.data+=n,this.data.length>ge&&(this.data=this.data.slice(this.data.length-ge))}get(){return this.data}clear(){this.data=""}}const Xe=1e3,Ze=3e4,et=3e3,Ee=["lifecycle","status","tasks","scripts","branch","reload","file-changed"],ve="log";function tt(t){if(!t)return null;try{return new URL("/_sandbox/events",t).href}catch{return null}}function nt(t){return t===404}function st(t){return/(?:^|[\s;&|(])deno\s+task\b/.test(t)}async function rt(t){try{const n=await fetch(t,{headers:{Accept:"text/event-stream"},cache:"no-store",signal:AbortSignal.timeout(et)});return await n.body?.cancel().catch(()=>{}),nt(n.status)}catch{return!1}}const Oe=Pe(Ce);function yt(t){const n=B.c(10);let s,e,o;n[0]!==t?({resetKey:o,children:s,...e}=t,n[0]=t,n[1]=s,n[2]=e,n[3]=o):(s=n[1],e=n[2],o=n[3]);let r;n[4]!==e||n[5]!==o?(r=ce.jsx(ot,{...e},o),n[4]=e,n[5]=o,n[6]=r):r=n[6];let a;return n[7]!==s||n[8]!==r?(a=ce.jsx(Oe.Host,{source:r,children:s}),n[7]=s,n[8]=r,n[9]=a):a=n[9],a}function ot(t){return Oe.usePublish(at(t)),null}function at({virtualMcpId:t,branch:n,previewUrl:s=null,enabled:e=!0}){const{org:o}=xe(),r=be(),a=Ae()?.taskId??null,[c,i]=m.useState(null),[l,d]=m.useState({phase:"idle"}),[f,v]=m.useState({state:"running"}),[R,x]=m.useState({kind:"unknown"}),[P,Q]=m.useState(!1),[Re,q]=m.useState([]),[De,G]=m.useState([]),[,ke]=m.useState(0),D=m.useRef(new Map),V=m.useRef(new Set),A=m.useRef(new Set),J=m.useRef(null),I=tt(s),te=Ue(t)?.metadata?.runtime?.selected==="deno",Ne=E=>{let b=D.current.get(E);return b||(b=new Ke,D.current.set(E,b)),b};return m.useEffect(()=>{if(i(null),d({phase:"idle"}),v({state:"running"}),x({kind:"unknown"}),J.current=null,Q(!1),q([]),G([]),D.current.clear(),!t||!n||!e)return;const E=Ie({orgSlug:o.slug,virtualMcpId:t,branch:n,threadId:a??null},"events");let b=!1,k=0,U=null,N=null,_=null,C=null,S=null,M=null,ne=!1;const H=()=>{N&&clearTimeout(N),N=setTimeout(()=>{N=null,r.invalidateQueries({queryKey:T.liveMeta(o.slug,t,n)})},1e3)},_e=u=>{try{const p=JSON.parse(u.data);i(p),p.kind!=="failed"&&(Q(!1),k=0),p.kind==="ready"&&ae()}catch(p){console.warn("[vm-events] bad phase payload",p)}},se=()=>{Q(!0),i(null),d({phase:"idle"}),v({state:"running"}),x({kind:"unknown"}),q([]),G([]),D.current.clear()},re=u=>{try{const p=JSON.parse(u.data);if(typeof p.data!="string")return;k=0;const g=p.data.replace(/\r?\n/g,`\r
|
|
2
2
|
`);Ne(p.source).append(g);for(const h of V.current)try{h(p.source,g)}catch{}ke(h=>h+1)}catch{}},oe=u=>{const p=u.type;try{const g=JSON.parse(u.data);switch(k=0,p){case"lifecycle":{const h=g;d(h.state);const L=`${o.slug}/${t}/${n}`;if(me(h.state.phase)&&!(M&&me(M))){ue(r,o.id);const j=T.decofile(L);r.getQueryData(j)===void 0&&r.invalidateQueries({queryKey:j})}h.state.phase==="running"&&M!=="running"&&(ue(r,o.id),r.invalidateQueries({queryKey:T.decofile(L)}),H()),M=h.state.phase;const O=h.state.phase==="running"?h.state.port:null,W=J.current;if(J.current=O,W!==null&&O!==null&&W!==O)for(const j of A.current)try{j()}catch{}return}case"status":v(g);return;case"tasks":{const h=g;ne=h.active.some(O=>st(O.command));const L=h.active.map(O=>O.logName??"").filter(Boolean);G(L);return}case"scripts":q(g.scripts);return;case"branch":{const h=g.meta;x(h);return}case"reload":for(const h of A.current)try{h()}catch{}return;case"file-changed":{const{path:h}=g,L=`${o.slug}/${t}/${n}`;if(h.startsWith(".deco/")||h.includes("/.deco/")){if(!(M==="running"))return;h.endsWith(".deco/meta.gen.json")&&H(),_&&clearTimeout(_),_=setTimeout(()=>{if(_=null,r.invalidateQueries({queryKey:T.decofile(L)}),te||ne)for(const j of A.current)try{j()}catch{}},500)}else H();return}}}catch{}};function Y(){if(b)return;const u=new EventSource(E);C=u,u.onopen=()=>{},u.onerror=()=>{C===u&&u.readyState===EventSource.CLOSED&&ie("studio")},u.addEventListener("phase",_e),u.addEventListener("gone",se),u.addEventListener(ve,re);for(const p of Ee)u.addEventListener(p,oe)}function ae(){if(b||!I||S)return;const u=new EventSource(I);S=u;let p=!1;u.onopen=()=>{if(b||S!==u)return;p=!0,k=0;const g=C;C=null,g?.close()},u.onerror=()=>{S===u&&u.readyState===EventSource.CLOSED&&Le(u,p)},u.addEventListener(ve,re);for(const g of Ee)u.addEventListener(g,oe)}async function Le(u,p){const g=I?await rt(I):!1;if(!(b||S!==u)){if(u.close(),S=null,g){se(),C||Y();return}p&&ie("direct")}}function ie(u){if(b||U)return;const p=Me(Ze,Xe,k,2,0);k++,U=setTimeout(()=>{if(U=null,!b){if(u==="direct"){S?.close(),S=null,ae();return}C?.close(),C=null,Y()}},p)}return Y(),()=>{b=!0,C?.close(),S?.close(),U&&clearTimeout(U),N&&clearTimeout(N),_&&clearTimeout(_)}},[t,n,o.slug,o.id,e,a,I,r,te]),{phase:c,lifecycle:l,status:f,branch:R,notFound:P,scripts:Re,activeProcesses:De,getBuffer:E=>D.current.get(E)?.get()??"",hasData:E=>(D.current.get(E)?.get().length??0)>0,subscribeChunks:E=>(V.current.add(E),()=>{V.current.delete(E)}),subscribeReload:E=>(A.current.add(E),()=>{A.current.delete(E)})}}function Te(){return m.use(Ce)}function St(t){const{subscribeChunks:n}=Te(),s=m.useRef(t);s.current=t,m.useEffect(()=>n((r,a)=>{s.current?.(r,a)}),[n])}function wt(t){const{subscribeReload:n}=Te(),s=m.useRef(t);s.current=t,m.useEffect(()=>n(()=>{s.current?.()}),[n])}export{y as C,w as E,$ as P,yt as S,St as a,wt as b,Et as c,bt as d,me as e,Fe as f,Be as g,Qe as h,pt as i,he as j,vt as k,mt as l,gt as m,ht as n,qe as r,Te as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,a4 as c,ak as r,K as l,V as d,q as f,e as S}from"./index-
|
|
1
|
+
import{c as u,a4 as c,ak as r,K as l,V as d,q as f,e as S}from"./index-BfWp2Wnw.js";function C(){const e=u.c(7),{org:i}=c(),n=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]!==n?(t=async()=>await n.call("SECRET_LIST",{}),e[2]=n,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:o}=d(s);return o.secrets}function m(){const e=u.c(8),{org:i}=c(),n=r(),a=f();let t;e[0]!==n?(t=async y=>await n.call("SECRET_CREATE",{...y}),e[0]=n,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 o;return e[5]!==t||e[6]!==s?(o={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=o):o=e[7],S(o)}export{m as a,C as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i8 as ee,bp as te,c as M,b as re,r as b,j as i,m as se,bo as oe,D as ie,v as le,x as ne,I as ce,w as ae}from"./index-
|
|
1
|
+
import{i8 as ee,bp as te,c as M,b as re,r as b,j as i,m as se,bo as oe,D as ie,v as le,x as ne,I as ce,w as ae}from"./index-BfWp2Wnw.js";import{a as G,e as V}from"./UserSquare-oo1b4ulW.js";import{b as fe}from"./agent-icon-Bq_Z7esB.js";import{i as ue}from"./SearchMd-CTSUPag9.js";import{a as _}from"./save-status-BXxefOdA.js";import{ac as de,k as me,an as ve}from"./blocks-tab-states-Bx0tgd5u.js";import{aS as K,c as pe,u as xe,i as he,E as ge}from"./site-editor-toast-D2nHZREM.js";import{d as Y,r as we}from"./held-block-view-BCDffeao.js";import{u as Se}from"./use-voice-input-DyQL3diM.js";function be(r){return r.schema?.definitions??r.schema?.$defs??{}}function Z(r,e){const t=be(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 je(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 We(r,e){if(!e)return;const t=ee(r,te(e));if(!t)return;const s=je(t.resolveType,e);if(!s)return;const o=we(s,t.data);if(o)return Y(o)}function ye(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 Ne=12,z=new Set,F=new Set;function Re(){for(const r of F)r()}function Pe(r){return z.has(r)?!0:z.size>=Ne?!1:(z.add(r),!0)}function Q(r){z.delete(r)&&Re()}function Ie(r){return F.add(r),()=>{F.delete(r)}}function Te(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:Pe(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&&(Q(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=Ie(()=>{l.current===a&&d()}));return}u(),t.current&&(Q(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 Ce(r){const e=M.c(9),{previewUrl:t,title:s,scrollRootRef:o,slotId:n}=r,{ref:l,iframeActive:f}=Te(o,n),[c,p]=b.useState(!1),u=_()?V: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 Ue(r){const e=M.c(3),{image:t}=r,s=_()?V: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 ke(r){const e=M.c(28),{entry:t,previewUrl:s,image:o,scrollRootRef:n,onSelect:l}=r,c=_()?t.isSavedBlock?fe:V:G,p=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let u;e[0]!==p?(u=se("group flex flex-col overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-lg))] border bg-card text-left transition-colors shadow-edge","hover:border-primary/40 hover:bg-accent",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(Ce,{previewUrl:s,title:t.title,scrollRootRef:n,slotId:t.resolveType}):i.jsx(Ue,{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:oe}: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=re(),[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 W=t&&o&&n?de(o,n):[],q=o?me(o):"",H=n?ve(n):void 0,X=new Map;if(t&&q&&l)for(const v of W)X.set(v.resolveType,K(l,q,v.previewBlock,H));const O=p.trim().toLowerCase(),J=O?W.filter(v=>v.title.toLowerCase().includes(O)||v.resolveType.toLowerCase().includes(O)||v.description?.toLowerCase().includes(O)):W;x=ie,P=t,I=s,m=le,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 k;e[19]!==c?(k=c("sectionsEditor.addSectionModal.title"),e[19]=c,e[20]=k):k=e[20];let B;e[21]!==k?(B=i.jsx(ne,{children:k}),e[21]=k,e[22]=B):B=e[22];let $;e[23]===Symbol.for("react.memo_cache_sentinel")?($=i.jsx(ue,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[23]=$):$=e[23];let D;e[24]===Symbol.for("react.memo_cache_sentinel")?(D=v=>u(v.target.value),e[24]=D):D=e[24];let A;e[25]!==c?(A=c("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=c,e[26]=A):A=e[26];let L;e[27]!==p||e[28]!==A?(L=i.jsxs("div",{className:"relative pt-2",children:[$,i.jsx(ce,{value:p,onChange:D,placeholder:A,className:"h-9 pl-8"})]}),e[27]=p,e[28]=A,e[29]=L):L=e[29],e[30]!==B||e[31]!==L?(j=i.jsxs(ae,{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=J.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:J.map(v=>i.jsx(ke,{entry:v,scrollRootRef:w,previewUrl:l?X.get(v.resolveType)??K(l,q,v.previewBlock,H):null,image:l||!o?void 0:ye(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 E;return e[46]!==x||e[47]!==U||e[48]!==P||e[49]!==I?(E=i.jsx(x,{open:P,onOpenChange:I,children:U}),e[46]=x,e[47]=U,e[48]=P,e[49]=I,e[50]=E):E=e[50],E}function Fe(r){const e=M.c(4),{previewServerUrl:t,runtime:s}=Se(r.virtualMcpId),{url:o}=pe(r.virtualMcpId),n=xe(r.virtualMcpId,r.branch),l=s==="cms";if(he(n))return null;if(o)return o;let f;return e[0]!==l||e[1]!==r.sandboxUrl||e[2]!==t?(f=ge({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,We as g,Z as s,Fe as u};
|
package/dist/client/assets/{use-sidebar-collapsed-Dfwqn3HW.js → use-sidebar-collapsed-BtrwP1AE.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as T,c as y,j as o,m as C,bX as $,bY as z}from"./index-
|
|
1
|
+
import{r as T,c as y,j as o,m as C,bX as $,bY as z}from"./index-BfWp2Wnw.js";import{u as B}from"./use-mobile-UoyYEGbQ.js";import{b as A,c as P,S as R,d as k,a as H}from"./sheet-DT44IVE2.js";import{b as V,a as W,T as L,c as F}from"./tooltip-CqV-qcYU.js";const X="15rem",Y="18rem",q="4.5rem",E=T.createContext(null);function D(){const l=T.useContext(E);if(!l)throw new Error("useSidebar must be used within a SidebarProvider.");return l}function ee(l){const e=y.c(19),{children:t,defaultOpen:s,open:a,onOpenChange:i}=l,c=s===void 0?!1:s,r=B(),[n,S]=T.useState(c),[v,j]=T.useState(!1),p=a!==void 0,m=p?a:n;let g;e[0]!==p||e[1]!==i?(g=M=>{p||S(M),i?.(M)},e[0]=p,e[1]=i,e[2]=g):g=e[2];const d=g;let h;e[3]!==r||e[4]!==m||e[5]!==d?(h=()=>{r?j(G):d(!m)},e[3]=r,e[4]=m,e[5]=d,e[6]=h):h=e[6];const w=h,f=m?"expanded":"collapsed";let u;e[7]!==r||e[8]!==m||e[9]!==v||e[10]!==d||e[11]!==f||e[12]!==w?(u={state:f,open:m,setOpen:d,isMobile:r,openMobile:v,setOpenMobile:j,toggleSidebar:w},e[7]=r,e[8]=m,e[9]=v,e[10]=d,e[11]=f,e[12]=w,e[13]=u):u=e[13];const x=u;let b;e[14]!==t?(b=o.jsx(V,{delayDuration:0,children:t}),e[14]=t,e[15]=b):b=e[15];let N;return e[16]!==x||e[17]!==b?(N=o.jsx(E.Provider,{value:x,children:b}),e[16]=x,e[17]=b,e[18]=N):N=e[18],N}function G(l){return!l}function te(l){const e=y.c(14);let t,s,a,i;e[0]!==l?({className:s,style:i,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i):(t=e[1],s=e[2],a=e[3],i=e[4]);let c;e[5]!==i?(c={"--sidebar-width":X,"--sidebar-width-icon":q,...i},e[5]=i,e[6]=c):c=e[6];const r=c;let n;e[7]!==s?(n=C("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=n):n=e[8];let S;return e[9]!==t||e[10]!==a||e[11]!==r||e[12]!==n?(S=o.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:n,...a,children:t}),e[9]=t,e[10]=a,e[11]=r,e[12]=n,e[13]=S):S=e[13],S}function ae(l){const e=y.c(36);let t,s,a,i,c;e[0]!==l?({side:i,variant:c,className:s,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=c):(t=e[1],s=e[2],a=e[3],i=e[4],c=e[5]);const r=i===void 0?"left":i,n=c===void 0?"sidebar":c,{isMobile:S,state:v,openMobile:j,setOpenMobile:p}=D();if(S){let N;e[6]===Symbol.for("react.memo_cache_sentinel")?(N={"--sidebar-width":Y},e[6]=N):N=e[6];let M;e[7]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsxs(P,{className:"sr-only",children:[o.jsx(R,{children:"Sidebar"}),o.jsx(k,{children:"Displays the mobile sidebar."})]}),e[7]=M):M=e[7];let I;e[8]!==t?(I=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=I):I=e[9];let _;e[10]!==r||e[11]!==I?(_=o.jsxs(H,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:N,side:r,children:[M,I]}),e[10]=r,e[11]=I,e[12]=_):_=e[12];let O;return e[13]!==j||e[14]!==a||e[15]!==p||e[16]!==_?(O=o.jsx(A,{open:j,onOpenChange:p,...a,children:_}),e[13]=j,e[14]=a,e[15]=p,e[16]=_,e[17]=O):O=e[17],O}const m=v==="expanded",g=m?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let d;e[18]!==g?(d=C("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",g),e[18]=g,e[19]=d):d=e[19];const h=m?void 0:"icon",w=m?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let f;e[20]!==s||e[21]!==w?(f=C("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",w,s),e[20]=s,e[21]=w,e[22]=f):f=e[22];let u;e[23]!==t?(u=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=u):u=e[24];let x;e[25]!==a||e[26]!==f||e[27]!==u?(x=o.jsx("div",{"data-slot":"sidebar-container",className:f,...a,children:u}),e[25]=a,e[26]=f,e[27]=u,e[28]=x):x=e[28];let b;return e[29]!==r||e[30]!==v||e[31]!==d||e[32]!==h||e[33]!==x||e[34]!==n?(b=o.jsx("div",{className:d,"data-state":v,"data-collapsible":h,"data-variant":n,"data-side":r,"data-slot":"sidebar",children:x}),e[29]=r,e[30]=v,e[31]=d,e[32]=h,e[33]=x,e[34]=n,e[35]=b):b=e[35],b}function se(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=C("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ie(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=C("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function le(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=C("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ne(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=C("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function re(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=C("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}const J=z("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm focus-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg:not([class*='text-'])]:text-muted-foreground hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm group-data-[state=collapsed]/sidebar:size-8! group-data-[state=collapsed]/sidebar:rounded-full",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function oe(l){const e=y.c(28);let t,s,a,i,c,r,n;e[0]!==l?({asChild:a,isActive:i,variant:c,size:r,tooltip:n,className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=c,e[6]=r,e[7]=n):(t=e[1],s=e[2],a=e[3],i=e[4],c=e[5],r=e[6],n=e[7]);const S=a===void 0?!1:a,v=i===void 0?!1:i,j=c===void 0?"default":c,p=r===void 0?"default":r,m=S?$:"button",{isMobile:g}=D();let d;e[8]!==t||e[9]!==p||e[10]!==j?(d=C(J({variant:j,size:p}),t),e[8]=t,e[9]=p,e[10]=j,e[11]=d):d=e[11];let h;e[12]!==m||e[13]!==v||e[14]!==s||e[15]!==p||e[16]!==d?(h=o.jsx(m,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":p,"data-active":v,className:d,...s}),e[12]=m,e[13]=v,e[14]=s,e[15]=p,e[16]=d,e[17]=h):h=e[17];const w=h;if(!n)return w;if(typeof n=="string"){let b;e[18]!==n?(b={children:n},e[18]=n,e[19]=b):b=e[19],n=b}let f;e[20]!==w?(f=o.jsx(L,{asChild:!0,children:w}),e[20]=w,e[21]=f):f=e[21];let u;e[22]!==g||e[23]!==n?(u=o.jsx(W,{side:"right",align:"center",hidden:g,...n}),e[22]=g,e[23]=n,e[24]=u):u=e[24];let x;return e[25]!==f||e[26]!==u?(x=o.jsxs(F,{children:[f,u]}),e[25]=f,e[26]=u,e[27]=x):x=e[27],x}function de(){const{state:l,isMobile:e}=D();return l==="collapsed"&&!e}export{oe as S,ne as a,re as b,D as c,ie as d,le as e,ae as f,ee as g,te as h,se as i,de as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,a4 as f,ak as y,i as m,q as g,e as T,K as l,t as E}from"./index-
|
|
1
|
+
import{c as u,a4 as f,ak as y,i as m,q as g,e as T,K as l,t as E}from"./index-BfWp2Wnw.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,i as S,K as _,al as R,a4 as i,ak as l}from"./index-
|
|
1
|
+
import{c as O,f,i as S,K as _,al as R,a4 as i,ak as l}from"./index-BfWp2Wnw.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as y,at as w,c as h,a4 as R,ak as k,q as T,i as O,K as A}from"./index-
|
|
1
|
+
import{r as y,at as w,c as h,a4 as R,ak as k,q as T,i as O,K as A}from"./index-BfWp2Wnw.js";import{c as B}from"./watch-sse-pool-gEMXX-QL.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 L(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 b(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(L(r)))}catch{}}const v=6e4,K=2e3,N=e=>e.state===null;function j(e){const t=h.c(25),{org:s,locator:r}=R(),o=k(),l=T();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 b(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:v}export{j as u};
|
package/dist/client/assets/{use-task-board-items-BZZLKLjF.js → use-task-board-items-CQPrgy8Z.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as k,c as $,a4 as V,ak as W,i as G,q as Y,K as R,b as H,e as O,E as X,t as N}from"./index-
|
|
1
|
+
import{r as k,c as $,a4 as V,ak as W,i as G,q as Y,K as R,b as H,e as O,E as X,t as N}from"./index-BfWp2Wnw.js";import{a as Z}from"./task-board-B-hxKp5U.js";import{t as ee}from"./watch-sse-pool-gEMXX-QL.js";import{u as te}from"./use-decopilot-events-B7ke0MhO.js";const J=()=>0;function se(e){const{orgSlug:u,enabled:o=!0,onUpdate:t,onDelete:s,onResync:a}=e,c=k.useRef(t);c.current=t;const i=k.useRef(s);i.current=s;const g=k.useRef(a);g.current=a;const r=k.useRef(null),m=k.useRef(o),I=k.useRef(u);(!r.current||m.current!==o||I.current!==u)&&(m.current=o,I.current=u,r.current=l=>{if(!o||!u)return()=>{};const d=T=>{let f;try{f=JSON.parse(T.data)}catch{return}f.data&&(T.type===Z?i.current?.(f.data.id):c.current(f.data)),l()};return ee.subscribe(u,d,()=>g.current?.())}),k.useSyncExternalStore(r.current,J,J)}function ae(e,u){return{queryKey:R.taskBoardItems(e),refetchInterval:6e4,queryFn:async()=>{const{items:o,demoFrozenItemIds:t}=await u.call("TASK_BOARD_ITEM_LIST",{});return{items:o,demoFrozenItemIds:t}}}}function re(){const e=$.c(21),{org:u,locator:o}=V(),t=Y();let s;e[0]!==o?(s=R.taskBoardItems(o),e[0]=o,e[1]=s):s=e[1];const a=s;let c;e[2]!==o||e[3]!==t||e[4]!==a?(c=y=>{t.cancelQueries({queryKey:a}),t.setQueryData(a,l=>l&&{...l,items:l.items.some(d=>d.id===y.id)?l.items.map(d=>d.id===y.id?y:d):[y,...l.items]}),t.invalidateQueries({queryKey:R.taskBoardActivity(o,y.id)}),t.invalidateQueries({queryKey:R.taskBoardComments(o,y.id)})},e[2]=o,e[3]=t,e[4]=a,e[5]=c):c=e[5];let i,g;e[6]!==t||e[7]!==a?(i=()=>{t.invalidateQueries({queryKey:a})},g=y=>{t.cancelQueries({queryKey:a}),t.setQueryData(a,l=>l&&{...l,items:l.items.filter(d=>d.id!==y)})},e[6]=t,e[7]=a,e[8]=i,e[9]=g):(i=e[8],g=e[9]);let r;e[10]!==u.slug||e[11]!==c||e[12]!==i||e[13]!==g?(r={orgSlug:u.slug,onUpdate:c,onResync:i,onDelete:g},e[10]=u.slug,e[11]=c,e[12]=i,e[13]=g,e[14]=r):r=e[14],se(r);let m;e[15]!==t||e[16]!==a?(m=y=>{const l=y.subject,d=y.data.status;t.cancelQueries({queryKey:a}),t.setQueryData(a,f=>f&&{...f,items:f.items.map(S=>S.threads.some(_=>_.threadId===l)?{...S,threads:S.threads.map(_=>_.threadId===l?{..._,status:d}:_)}:S)});const T=t.getQueryData(a)?.items.some(f=>f.threads.some(S=>S.threadId===l));d==="failed"&&T&&t.invalidateQueries({queryKey:a})},e[15]=t,e[16]=a,e[17]=m):m=e[17];let I;e[18]!==u.slug||e[19]!==m?(I={orgSlug:u.slug,onTaskStatus:m},e[18]=u.slug,e[19]=m,e[20]=I):I=e[20],te(I)}function ce(){const e=$.c(13),{locator:u}=V(),o=W();let t;e[0]!==u||e[1]!==o?(t=ae(u,o),e[0]=u,e[1]=o,e[2]=t):t=e[2];const s=G(t);re();let a;e[3]!==s.data?.items?(a=s.data?.items??[],e[3]=s.data?.items,e[4]=a):a=e[4];let c;e[5]!==s.data?.demoFrozenItemIds?(c=s.data?.demoFrozenItemIds??[],e[5]=s.data?.demoFrozenItemIds,e[6]=c):c=e[6];let i;return e[7]!==s.error||e[8]!==s.isFetching||e[9]!==s.isLoading||e[10]!==a||e[11]!==c?(i={items:a,demoFrozenItemIds:c,isLoading:s.isLoading,isFetching:s.isFetching,error:s.error},e[7]=s.error,e[8]=s.isFetching,e[9]=s.isLoading,e[10]=a,e[11]=c,e[12]=i):i=e[12],i}function de(){const e=$.c(70),{org:u,locator:o}=V(),t=W(),s=Y(),a=H();let c;e[0]!==o?(c=R.taskBoardItems(o),e[0]=o,e[1]=c):c=e[1];const i=c;let g;e[2]!==s||e[3]!==i?(g=()=>s.invalidateQueries({queryKey:i}),e[2]=s,e[3]=i,e[4]=g):g=e[4];const r=g;let m;e[5]!==t?(m=n=>t.call("TASK_BOARD_ITEM_CREATE",n),e[5]=t,e[6]=m):m=e[6];let I;e[7]!==r||e[8]!==m?(I={mutationFn:m,onSuccess:r},e[7]=r,e[8]=m,e[9]=I):I=e[9];const y=O(I);let l;e[10]!==t?(l=n=>t.call("TASK_BOARD_ITEM_UPDATE",n),e[10]=t,e[11]=l):l=e[11];let d;e[12]!==s||e[13]!==i?(d=async n=>{await s.cancelQueries({queryKey:i});const B=s.getQueryData(i);return s.setQueryData(i,E=>E&&{...E,items:E.items.map(z=>z.id===n.id?{...z,...n,...n.status!==void 0&&n.status!==z.status&&{statusSince:new Date().toISOString()}}:z)}),{previous:B}},e[12]=s,e[13]=i,e[14]=d):d=e[14];let T;e[15]!==u?(T=(n,B)=>{B.status==="done"&&X("task_marked_done",{organization_id:u.id,task_board_item_id:B.id})},e[15]=u,e[16]=T):T=e[16];let f;e[17]!==s||e[18]!==i?(f=(n,B,E)=>{E?.previous&&s.setQueryData(i,E.previous)},e[17]=s,e[18]=i,e[19]=f):f=e[19];let S;e[20]!==r||e[21]!==o||e[22]!==s?(S=(n,B,E)=>{r(),s.invalidateQueries({queryKey:R.taskBoardActivity(o,E.id)})},e[20]=r,e[21]=o,e[22]=s,e[23]=S):S=e[23];let _;e[24]!==l||e[25]!==d||e[26]!==T||e[27]!==f||e[28]!==S?(_={mutationFn:l,onMutate:d,onSuccess:T,onError:f,onSettled:S},e[24]=l,e[25]=d,e[26]=T,e[27]=f,e[28]=S,e[29]=_):_=e[29];const U=O(_);let D;e[30]!==t?(D=n=>t.call("TASK_BOARD_ITEM_DELETE",{id:n}),e[30]=t,e[31]=D):D=e[31];let A;e[32]!==r||e[33]!==a?(A=n=>{N.error(n instanceof Error&&n.message?n.message:a("taskBoard.taskBoard.deleteError")),r()},e[32]=r,e[33]=a,e[34]=A):A=e[34];let p;e[35]!==r||e[36]!==D||e[37]!==A?(p={mutationFn:D,onSuccess:r,onError:A},e[35]=r,e[36]=D,e[37]=A,e[38]=p):p=e[38];const w=O(p);let Q;e[39]!==t?(Q=async n=>{const B=await Promise.allSettled(n.map(E=>t.call("TASK_BOARD_ITEM_DELETE",{id:E})));return{total:n.length,failed:B.filter(oe).length}},e[39]=t,e[40]=Q):Q=e[40];let h,K;e[41]!==a?(h=n=>{const{total:B,failed:E}=n;E!==0&&N.error(a("taskBoard.taskBoard.deleteBulkError",{failed:String(E),total:String(B)}))},K=()=>N.error(a("taskBoard.taskBoard.deleteError")),e[41]=a,e[42]=h,e[43]=K):(h=e[42],K=e[43]);let M;e[44]!==r||e[45]!==Q||e[46]!==h||e[47]!==K?(M={mutationFn:Q,onSuccess:h,onError:K,onSettled:r},e[44]=r,e[45]=Q,e[46]=h,e[47]=K,e[48]=M):M=e[48];const x=O(M);let F;e[49]!==t?(F=n=>t.call("TASK_BOARD_ITEM_UPDATE",n),e[49]=t,e[50]=F):F=e[50];let v;e[51]!==r||e[52]!==F?(v={mutationFn:F,onSuccess:r},e[51]=r,e[52]=F,e[53]=v):v=e[53];const P=O(v);let b;e[54]!==t?(b=n=>t.call("TASK_BOARD_ITEM_RERUN",n),e[54]=t,e[55]=b):b=e[55];let q;e[56]!==r||e[57]!==o||e[58]!==s?(q=(n,B,E)=>{r(),s.invalidateQueries({queryKey:R.taskBoardActivity(o,E.id)})},e[56]=r,e[57]=o,e[58]=s,e[59]=q):q=e[59];let L;e[60]!==b||e[61]!==q?(L={mutationFn:b,onSettled:q},e[60]=b,e[61]=q,e[62]=L):L=e[62];const j=O(L);let C;return e[63]!==y||e[64]!==P||e[65]!==w||e[66]!==x||e[67]!==j||e[68]!==U?(C={create:y,update:U,remove:w,removeMany:x,link:P,rerun:j},e[63]=y,e[64]=P,e[65]=w,e[66]=x,e[67]=j,e[68]=U,e[69]=C):C=e[69],C}function oe(e){return e.status==="rejected"}export{ce as a,se as b,de as c,ae as t,re as u};
|
package/dist/client/assets/{use-task-board-prompts-DwLszR98.js → use-task-board-prompts-CywAfsLX.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as $,b as D,m as z,j as o,a4 as q,L as Z,as as ee,d as te,r as U,hg as se,B as ae,t as oe,ak as V,K as F,i as ne,q as Y,e as le}from"./index-DPOIY_Am.js";import{s as W}from"./Plus-D393VgSW.js";import{s as re}from"./XClose-GLz4aiio.js";import{i as ie}from"./Zap-0CAagMpp.js";import{B as K}from"./badge-DtQ2otcX.js";import{f as ce,a as ue,c as de,C as me,e as fe,b as pe}from"./command-BQx6PdJK.js";import{I as xe}from"./icon-button-C0zGF0XG.js";import{c as ge,a as he,b as je,S as ke}from"./sheet-DRbCBFle.js";import{j as ve}from"./use-org-fs-BGORZXRY.js";import{a as Ne}from"./use-project-scope-aZyY3ntO.js";import{u as J,a as _e}from"./use-automations-4FRwc0q0.js";import{C as ye}from"./task-board-Cfset9MO.js";import{b as be}from"./watch-sse-pool-YDiUBcwq.js";const Be={triage:"taskBoard.columnGuide.triage",todo:"taskBoard.columnGuide.todo",in_progress:"taskBoard.columnGuide.inProgress",in_review:"taskBoard.columnGuide.inReview",qa:"taskBoard.columnGuide.qa",customer_approval:"taskBoard.columnGuide.customerApproval",ready_for_deployment:"taskBoard.columnGuide.readyForDeployment",post_deploy_validation:"taskBoard.columnGuide.postDeployValidation",done:null,archived:null};function Se(t){const e=ye.find(a=>a===t);return e?Be[e]:null}function He(t){const e=$.c(7),{data:a}=J();let s;e[0]!==a?(s=a??[],e[0]=a,e[1]=s):s=e[1];let n;if(e[2]!==t||e[3]!==s){let l;e[5]!==t?(l=r=>r.board_triggers.some(c=>c.type==="board_column_transition"&&c.column_key===t),e[5]=t,e[6]=l):l=e[6],n=s.filter(l),e[2]=t,e[3]=s,e[4]=n}else n=e[4];return n}function Q(t){switch(t){case"board_column_transition":return 0;case"board_pr_ready":return 1;case"board_pr_merged":return 2;default:return t}}function Ce(t){switch(t){case"board_column_transition":return"taskBoard.columnRules.starter.board_column_transition";case"board_pr_ready":return"taskBoard.columnRules.starter.board_pr_ready";case"board_pr_merged":return"taskBoard.columnRules.starter.board_pr_merged";default:return t}}function Re(t){const e=$.c(5),{data:a}=J();let s;if(e[0]!==t||e[1]!==a){let n;e[3]!==t?(n=l=>{const r=l.board_triggers.find(c=>c.column_key===t);return r?[{automation:l,starter:r.type}]:[]},e[3]=t,e[4]=n):n=e[4],s=(a??[]).flatMap(n).sort(Ae),e[0]=t,e[1]=a,e[2]=s}else s=e[2];return s}function Ae(t,e){return Number(e.automation.active)-Number(t.automation.active)||Q(t.starter)-Q(e.starter)}function Ue(t){const e=$.c(37),{columnKey:a,label:s,icon:n,iconClassName:l,open:r,onOpenChange:c}=t,i=D(),{org:u}=q(),g=Se(a),d=Re(a);let h;e[0]!==c?(h=()=>c(!1),e[0]=c,e[1]=h):h=e[1];const x=h,R=je,_=he,O="w-full gap-0 sm:max-w-md",y=void 0,b=Te,B=ge,A="gap-1 pb-0";let m;e[2]!==n||e[3]!==l?(m=n&&o.jsx(n,{size:16,className:l}),e[2]=n,e[3]=l,e[4]=m):m=e[4];let j;e[5]!==s||e[6]!==m?(j=o.jsxs(ke,{className:"flex items-center gap-2",children:[m,s]}),e[5]=s,e[6]=m,e[7]=j):j=e[7];const T=g&&o.jsx("p",{className:"surface-inset mt-2 rounded-xl px-3.5 py-3 text-sm leading-relaxed text-foreground",children:i(g)});let k;e[8]!==B||e[9]!==j||e[10]!==T?(k=o.jsxs(B,{className:A,children:[j,T]}),e[8]=B,e[9]=j,e[10]=T,e[11]=k):k=e[11];let v;e[12]!==i?(v=i("taskBoard.columnRules.runsHere"),e[12]=i,e[13]=v):v=e[13];let S;e[14]!==v?(S=o.jsx("h3",{className:"text-meta",children:v}),e[14]=v,e[15]=S):S=e[15];let f;e[16]!==d||e[17]!==a||e[18]!==s||e[19]!==x||e[20]!==u||e[21]!==i?(f=d.length===0?o.jsx(we,{columnKey:a,label:s,onLeave:x}):o.jsx("div",{className:"surface divide-y divide-border",children:d.map(L=>{const{automation:N,starter:E}=L;return o.jsxs(Z,{to:"/$org/projects/$agentId/automations/$automationId",params:{org:u.slug,agentId:N.virtual_mcp_id,automationId:N.id},onClick:x,className:"group flex items-center gap-3 px-3 py-2.5 transition-colors hover:bg-accent/50",children:[o.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[o.jsx("span",{className:z("truncate text-sm",N.active?"text-foreground":"text-muted-foreground"),children:N.name}),o.jsx("span",{className:"text-meta",children:N.active?i(Ce(E)):i("taskBoard.columnRules.off")})]}),o.jsx(ee,{size:14,className:"shrink-0 text-muted-foreground transition-colors group-hover:text-foreground"})]},N.id)})}),e[16]=d,e[17]=a,e[18]=s,e[19]=x,e[20]=u,e[21]=i,e[22]=f):f=e[22];let w;e[23]!==S||e[24]!==f?(w=o.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto px-4 pt-6 pb-6",children:[S,f]}),e[23]=S,e[24]=f,e[25]=w):w=e[25];let I;e[26]!==_||e[27]!==w||e[28]!==y||e[29]!==b||e[30]!==k?(I=o.jsxs(_,{className:O,"aria-describedby":y,onOpenAutoFocus:b,children:[k,w]}),e[26]=_,e[27]=w,e[28]=y,e[29]=b,e[30]=k,e[31]=I):I=e[31];let C;return e[32]!==R||e[33]!==r||e[34]!==c||e[35]!==I?(C=o.jsx(R,{open:r,onOpenChange:c,children:I}),e[32]=R,e[33]=r,e[34]=c,e[35]=I,e[36]=C):C=e[36],C}function Te(t){return t.preventDefault()}function we({columnKey:t,label:e,onLeave:a}){const s=D(),{org:n}=q(),{project:l}=Ne(),r=te(),{create:c,triggerAdd:i}=_e(),[u,g]=U.useState(!1),d=l?.id??se(n.id),h=async()=>{g(!0);try{const x=await c.mutateAsync({name:s("taskBoard.columnRules.newAutomationName",{column:e}),messages:[],models:{tier:"smart"},active:!1,virtual_mcp_id:d});await i.mutateAsync({automation_id:x.id,type:"board_column_transition",column_key:t}),a(),r({to:"/$org/projects/$agentId/automations/$automationId",params:{org:n.slug,agentId:d,automationId:x.id}})}catch{oe.error(s("taskBoard.columnRules.newAutomationFailed"))}finally{g(!1)}};return o.jsxs("div",{className:"surface flex flex-col items-center gap-3 px-6 py-8 text-center",children:[o.jsx("span",{className:"flex size-9 items-center justify-center rounded-full bg-muted text-muted-foreground",children:o.jsx(ie,{size:16})}),o.jsx("p",{className:"text-sm font-medium text-foreground",children:s("taskBoard.columnRules.noAutomations")}),o.jsxs(ae,{variant:"outline",size:"sm",className:"gap-1.5",disabled:u,onClick:h,children:[o.jsx(W,{size:14}),s("taskBoard.columnRules.newAutomation")]})]})}const Ie=[];function Ve(t){const e=$.c(71),{value:a,onChange:s,inherited:n,fill:l}=t,r=n===void 0?Ie:n,c=l===void 0?!1:l,i=D(),u=ve();let g;e[0]!==u.data?(g=f=>u.data?.find(w=>w.id===f)?.name??f,e[0]=u.data,e[1]=g):g=e[1];const d=g;let h,x,R,_,O,y,b,B,A,m;if(e[2]!==u.data||e[3]!==c||e[4]!==r||e[5]!==d||e[6]!==s||e[7]!==i||e[8]!==a){let f;e[19]!==r||e[20]!==a?(f=p=>!p.disableModelInvocation&&!a.includes(p.id)&&!r.includes(p.id),e[19]=r,e[20]=a,e[21]=f):f=e[21];const w=(u.data??[]).filter(f);if(e[22]!==c||e[23]!==r||e[24]!==d||e[25]!==s||e[26]!==i||e[27]!==a){let p;e[30]!==r?(p=P=>!r.includes(P),e[30]=r,e[31]=p):p=e[31];const M=a.filter(p),G=c&&"min-h-0 flex-1";e[32]!==G?(m=z("flex flex-col gap-2",G),e[32]=G,e[33]=m):m=e[33],_=M.length>0&&o.jsx("div",{className:"flex flex-wrap gap-1.5",children:M.map(P=>o.jsxs(K,{variant:"outline",className:"py-0 pr-0 pl-2",children:[d(P),o.jsx(xe,{label:i("taskBoard.columnRules.removeSkill",{skill:d(P)}),onClick:()=>s(a.filter(X=>X!==P)),className:"size-5 text-muted-foreground",children:o.jsx(re,{size:12})})]},P))}),e[22]=c,e[23]=r,e[24]=d,e[25]=s,e[26]=i,e[27]=a,e[28]=_,e[29]=m}else _=e[28],m=e[29];R=ce;const I=c&&"min-h-0 flex-1";e[34]!==I?(B=z("h-auto border",I),e[34]=I,e[35]=B):B=e[35];let C;e[36]!==i?(C=i("taskBoard.columnRules.searchSkills"),e[36]=i,e[37]=C):C=e[37],e[38]!==C?(A=o.jsx(ue,{placeholder:C,className:"h-9"}),e[38]=C,e[39]=A):A=e[39],x=de;const L=c?"max-h-none flex-1":"max-h-56";e[40]!==L?(y=z(L),e[40]=L,e[41]=y):y=e[41];let N;e[42]!==i?(N=i("taskBoard.columnRules.noSkills"),e[42]=i,e[43]=N):N=e[43],e[44]!==N?(b=o.jsx(me,{children:N}),e[44]=N,e[45]=b):b=e[45],h=fe;let E;e[46]!==s||e[47]!==a?(E=p=>o.jsxs(pe,{value:`${p.name} ${p.id}`,onSelect:()=>s([...a,p.id]),children:[o.jsx(W,{size:14,className:"shrink-0 text-muted-foreground"}),o.jsxs("span",{className:"flex min-w-0 flex-col",children:[o.jsx("span",{className:"truncate text-sm",children:p.name}),p.description&&o.jsx("span",{className:"text-meta line-clamp-1",children:p.description})]})]},p.id),e[46]=s,e[47]=a,e[48]=E):E=e[48],O=w.map(E),e[2]=u.data,e[3]=c,e[4]=r,e[5]=d,e[6]=s,e[7]=i,e[8]=a,e[9]=h,e[10]=x,e[11]=R,e[12]=_,e[13]=O,e[14]=y,e[15]=b,e[16]=B,e[17]=A,e[18]=m}else h=e[9],x=e[10],R=e[11],_=e[12],O=e[13],y=e[14],b=e[15],B=e[16],A=e[17],m=e[18];let j;e[49]!==h||e[50]!==O?(j=o.jsx(h,{children:O}),e[49]=h,e[50]=O,e[51]=j):j=e[51];let T;e[52]!==x||e[53]!==j||e[54]!==y||e[55]!==b?(T=o.jsxs(x,{className:y,children:[b,j]}),e[52]=x,e[53]=j,e[54]=y,e[55]=b,e[56]=T):T=e[56];let k;e[57]!==R||e[58]!==T||e[59]!==B||e[60]!==A?(k=o.jsxs(R,{className:B,children:[A,T]}),e[57]=R,e[58]=T,e[59]=B,e[60]=A,e[61]=k):k=e[61];let v;e[62]!==r||e[63]!==d||e[64]!==i?(v=r.length>0&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-meta",children:i("taskBoard.columnRules.inheritedHint")}),o.jsx("div",{className:"flex flex-wrap gap-1.5",children:r.map(f=>o.jsx(K,{variant:"muted",children:d(f)},f))})]}),e[62]=r,e[63]=d,e[64]=i,e[65]=v):v=e[65];let S;return e[66]!==_||e[67]!==k||e[68]!==v||e[69]!==m?(S=o.jsxs("div",{className:m,children:[_,k,v]}),e[66]=_,e[67]=k,e[68]=v,e[69]=m,e[70]=S):S=e[70],S}function Ye(){const t=$.c(7),{org:e}=q(),a=V();let s;t[0]!==e.id?(s=F.taskBoardPrompts(e.id),t[0]=e.id,t[1]=s):s=t[1];let n;t[2]!==a?(n=async()=>(await a.call("TASK_BOARD_PROMPT_LIST",{})).prompts,t[2]=a,t[3]=n):n=t[3];let l;return t[4]!==s||t[5]!==n?(l={queryKey:s,staleTime:6e4,queryFn:n},t[4]=s,t[5]=n,t[6]=l):l=t[6],ne(l)}function We(){const t=$.c(8),{org:e}=q(),a=V(),s=Y();let n;t[0]!==a?(n=async c=>{const{columnKey:i,rules:u}=c;if(u){const g=u.prompt.trim();await(g||u.skills.length?a.call("TASK_BOARD_PROMPT_UPSERT",{columnKey:i,prompt:g,skills:u.skills}):a.call("TASK_BOARD_PROMPT_DELETE",{columnKey:i}))}},t[0]=a,t[1]=n):n=t[1];let l;t[2]!==e||t[3]!==s?(l=()=>s.invalidateQueries({queryKey:F.taskBoardPrompts(e.id)}),t[2]=e,t[3]=s,t[4]=l):l=t[4];let r;return t[5]!==n||t[6]!==l?(r={mutationFn:n,onSettled:l},t[5]=n,t[6]=l,t[7]=r):r=t[7],le(r)}const H=()=>0;function Je(){const t=$.c(6),{org:e}=q(),a=Y();let s;t[0]!==e.id||t[1]!==a?(s=()=>a.invalidateQueries({queryKey:F.taskBoardPrompts(e.id)}),t[0]=e.id,t[1]=a,t[2]=s):s=t[2];const n=s;let l;t[3]!==e.slug||t[4]!==n?(l=()=>be.subscribe(e.slug,n,n),t[3]=e.slug,t[4]=n,t[5]=l):l=t[5];const r=l;U.useSyncExternalStore(r,H,H)}export{Ue as C,Ve as S,He as a,Ye as b,Se as c,We as d,Je as u};
|
|
1
|
+
import{c as $,b as D,m as z,j as o,a4 as q,L as Z,as as ee,d as te,r as U,hg as se,B as ae,t as oe,ak as V,K as F,i as ne,q as Y,e as le}from"./index-BfWp2Wnw.js";import{s as W}from"./Plus-DAYIm6ow.js";import{s as re}from"./XClose-WYCPZpkD.js";import{i as ie}from"./Zap-C-VVHO-P.js";import{B as K}from"./badge-CEYLDtOG.js";import{f as ce,a as ue,c as de,C as me,e as fe,b as pe}from"./command-DAachgGl.js";import{I as xe}from"./icon-button-vJpGdaXv.js";import{c as ge,a as he,b as je,S as ke}from"./sheet-DT44IVE2.js";import{j as ve}from"./use-org-fs-BAgR3Jkh.js";import{a as Ne}from"./use-project-scope-CFftAYVY.js";import{u as J,a as _e}from"./use-automations-lWDVj-CU.js";import{C as ye}from"./task-board-B-hxKp5U.js";import{b as be}from"./watch-sse-pool-gEMXX-QL.js";const Be={triage:"taskBoard.columnGuide.triage",todo:"taskBoard.columnGuide.todo",in_progress:"taskBoard.columnGuide.inProgress",in_review:"taskBoard.columnGuide.inReview",qa:"taskBoard.columnGuide.qa",customer_approval:"taskBoard.columnGuide.customerApproval",ready_for_deployment:"taskBoard.columnGuide.readyForDeployment",post_deploy_validation:"taskBoard.columnGuide.postDeployValidation",done:null,archived:null};function Se(t){const e=ye.find(a=>a===t);return e?Be[e]:null}function He(t){const e=$.c(7),{data:a}=J();let s;e[0]!==a?(s=a??[],e[0]=a,e[1]=s):s=e[1];let n;if(e[2]!==t||e[3]!==s){let l;e[5]!==t?(l=r=>r.board_triggers.some(c=>c.type==="board_column_transition"&&c.column_key===t),e[5]=t,e[6]=l):l=e[6],n=s.filter(l),e[2]=t,e[3]=s,e[4]=n}else n=e[4];return n}function Q(t){switch(t){case"board_column_transition":return 0;case"board_pr_ready":return 1;case"board_pr_merged":return 2;default:return t}}function Ce(t){switch(t){case"board_column_transition":return"taskBoard.columnRules.starter.board_column_transition";case"board_pr_ready":return"taskBoard.columnRules.starter.board_pr_ready";case"board_pr_merged":return"taskBoard.columnRules.starter.board_pr_merged";default:return t}}function Re(t){const e=$.c(5),{data:a}=J();let s;if(e[0]!==t||e[1]!==a){let n;e[3]!==t?(n=l=>{const r=l.board_triggers.find(c=>c.column_key===t);return r?[{automation:l,starter:r.type}]:[]},e[3]=t,e[4]=n):n=e[4],s=(a??[]).flatMap(n).sort(Ae),e[0]=t,e[1]=a,e[2]=s}else s=e[2];return s}function Ae(t,e){return Number(e.automation.active)-Number(t.automation.active)||Q(t.starter)-Q(e.starter)}function Ue(t){const e=$.c(37),{columnKey:a,label:s,icon:n,iconClassName:l,open:r,onOpenChange:c}=t,i=D(),{org:u}=q(),g=Se(a),d=Re(a);let h;e[0]!==c?(h=()=>c(!1),e[0]=c,e[1]=h):h=e[1];const x=h,R=je,_=he,O="w-full gap-0 sm:max-w-md",y=void 0,b=Te,B=ge,A="gap-1 pb-0";let m;e[2]!==n||e[3]!==l?(m=n&&o.jsx(n,{size:16,className:l}),e[2]=n,e[3]=l,e[4]=m):m=e[4];let j;e[5]!==s||e[6]!==m?(j=o.jsxs(ke,{className:"flex items-center gap-2",children:[m,s]}),e[5]=s,e[6]=m,e[7]=j):j=e[7];const T=g&&o.jsx("p",{className:"surface-inset mt-2 rounded-xl px-3.5 py-3 text-sm leading-relaxed text-foreground",children:i(g)});let k;e[8]!==B||e[9]!==j||e[10]!==T?(k=o.jsxs(B,{className:A,children:[j,T]}),e[8]=B,e[9]=j,e[10]=T,e[11]=k):k=e[11];let v;e[12]!==i?(v=i("taskBoard.columnRules.runsHere"),e[12]=i,e[13]=v):v=e[13];let S;e[14]!==v?(S=o.jsx("h3",{className:"text-meta",children:v}),e[14]=v,e[15]=S):S=e[15];let f;e[16]!==d||e[17]!==a||e[18]!==s||e[19]!==x||e[20]!==u||e[21]!==i?(f=d.length===0?o.jsx(we,{columnKey:a,label:s,onLeave:x}):o.jsx("div",{className:"surface divide-y divide-border",children:d.map(L=>{const{automation:N,starter:E}=L;return o.jsxs(Z,{to:"/$org/projects/$agentId/automations/$automationId",params:{org:u.slug,agentId:N.virtual_mcp_id,automationId:N.id},onClick:x,className:"group flex items-center gap-3 px-3 py-2.5 transition-colors hover:bg-accent/50",children:[o.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[o.jsx("span",{className:z("truncate text-sm",N.active?"text-foreground":"text-muted-foreground"),children:N.name}),o.jsx("span",{className:"text-meta",children:N.active?i(Ce(E)):i("taskBoard.columnRules.off")})]}),o.jsx(ee,{size:14,className:"shrink-0 text-muted-foreground transition-colors group-hover:text-foreground"})]},N.id)})}),e[16]=d,e[17]=a,e[18]=s,e[19]=x,e[20]=u,e[21]=i,e[22]=f):f=e[22];let w;e[23]!==S||e[24]!==f?(w=o.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto px-4 pt-6 pb-6",children:[S,f]}),e[23]=S,e[24]=f,e[25]=w):w=e[25];let I;e[26]!==_||e[27]!==w||e[28]!==y||e[29]!==b||e[30]!==k?(I=o.jsxs(_,{className:O,"aria-describedby":y,onOpenAutoFocus:b,children:[k,w]}),e[26]=_,e[27]=w,e[28]=y,e[29]=b,e[30]=k,e[31]=I):I=e[31];let C;return e[32]!==R||e[33]!==r||e[34]!==c||e[35]!==I?(C=o.jsx(R,{open:r,onOpenChange:c,children:I}),e[32]=R,e[33]=r,e[34]=c,e[35]=I,e[36]=C):C=e[36],C}function Te(t){return t.preventDefault()}function we({columnKey:t,label:e,onLeave:a}){const s=D(),{org:n}=q(),{project:l}=Ne(),r=te(),{create:c,triggerAdd:i}=_e(),[u,g]=U.useState(!1),d=l?.id??se(n.id),h=async()=>{g(!0);try{const x=await c.mutateAsync({name:s("taskBoard.columnRules.newAutomationName",{column:e}),messages:[],models:{tier:"smart"},active:!1,virtual_mcp_id:d});await i.mutateAsync({automation_id:x.id,type:"board_column_transition",column_key:t}),a(),r({to:"/$org/projects/$agentId/automations/$automationId",params:{org:n.slug,agentId:d,automationId:x.id}})}catch{oe.error(s("taskBoard.columnRules.newAutomationFailed"))}finally{g(!1)}};return o.jsxs("div",{className:"surface flex flex-col items-center gap-3 px-6 py-8 text-center",children:[o.jsx("span",{className:"flex size-9 items-center justify-center rounded-full bg-muted text-muted-foreground",children:o.jsx(ie,{size:16})}),o.jsx("p",{className:"text-sm font-medium text-foreground",children:s("taskBoard.columnRules.noAutomations")}),o.jsxs(ae,{variant:"outline",size:"sm",className:"gap-1.5",disabled:u,onClick:h,children:[o.jsx(W,{size:14}),s("taskBoard.columnRules.newAutomation")]})]})}const Ie=[];function Ve(t){const e=$.c(71),{value:a,onChange:s,inherited:n,fill:l}=t,r=n===void 0?Ie:n,c=l===void 0?!1:l,i=D(),u=ve();let g;e[0]!==u.data?(g=f=>u.data?.find(w=>w.id===f)?.name??f,e[0]=u.data,e[1]=g):g=e[1];const d=g;let h,x,R,_,O,y,b,B,A,m;if(e[2]!==u.data||e[3]!==c||e[4]!==r||e[5]!==d||e[6]!==s||e[7]!==i||e[8]!==a){let f;e[19]!==r||e[20]!==a?(f=p=>!p.disableModelInvocation&&!a.includes(p.id)&&!r.includes(p.id),e[19]=r,e[20]=a,e[21]=f):f=e[21];const w=(u.data??[]).filter(f);if(e[22]!==c||e[23]!==r||e[24]!==d||e[25]!==s||e[26]!==i||e[27]!==a){let p;e[30]!==r?(p=P=>!r.includes(P),e[30]=r,e[31]=p):p=e[31];const M=a.filter(p),G=c&&"min-h-0 flex-1";e[32]!==G?(m=z("flex flex-col gap-2",G),e[32]=G,e[33]=m):m=e[33],_=M.length>0&&o.jsx("div",{className:"flex flex-wrap gap-1.5",children:M.map(P=>o.jsxs(K,{variant:"outline",className:"py-0 pr-0 pl-2",children:[d(P),o.jsx(xe,{label:i("taskBoard.columnRules.removeSkill",{skill:d(P)}),onClick:()=>s(a.filter(X=>X!==P)),className:"size-5 text-muted-foreground",children:o.jsx(re,{size:12})})]},P))}),e[22]=c,e[23]=r,e[24]=d,e[25]=s,e[26]=i,e[27]=a,e[28]=_,e[29]=m}else _=e[28],m=e[29];R=ce;const I=c&&"min-h-0 flex-1";e[34]!==I?(B=z("h-auto border",I),e[34]=I,e[35]=B):B=e[35];let C;e[36]!==i?(C=i("taskBoard.columnRules.searchSkills"),e[36]=i,e[37]=C):C=e[37],e[38]!==C?(A=o.jsx(ue,{placeholder:C,className:"h-9"}),e[38]=C,e[39]=A):A=e[39],x=de;const L=c?"max-h-none flex-1":"max-h-56";e[40]!==L?(y=z(L),e[40]=L,e[41]=y):y=e[41];let N;e[42]!==i?(N=i("taskBoard.columnRules.noSkills"),e[42]=i,e[43]=N):N=e[43],e[44]!==N?(b=o.jsx(me,{children:N}),e[44]=N,e[45]=b):b=e[45],h=fe;let E;e[46]!==s||e[47]!==a?(E=p=>o.jsxs(pe,{value:`${p.name} ${p.id}`,onSelect:()=>s([...a,p.id]),children:[o.jsx(W,{size:14,className:"shrink-0 text-muted-foreground"}),o.jsxs("span",{className:"flex min-w-0 flex-col",children:[o.jsx("span",{className:"truncate text-sm",children:p.name}),p.description&&o.jsx("span",{className:"text-meta line-clamp-1",children:p.description})]})]},p.id),e[46]=s,e[47]=a,e[48]=E):E=e[48],O=w.map(E),e[2]=u.data,e[3]=c,e[4]=r,e[5]=d,e[6]=s,e[7]=i,e[8]=a,e[9]=h,e[10]=x,e[11]=R,e[12]=_,e[13]=O,e[14]=y,e[15]=b,e[16]=B,e[17]=A,e[18]=m}else h=e[9],x=e[10],R=e[11],_=e[12],O=e[13],y=e[14],b=e[15],B=e[16],A=e[17],m=e[18];let j;e[49]!==h||e[50]!==O?(j=o.jsx(h,{children:O}),e[49]=h,e[50]=O,e[51]=j):j=e[51];let T;e[52]!==x||e[53]!==j||e[54]!==y||e[55]!==b?(T=o.jsxs(x,{className:y,children:[b,j]}),e[52]=x,e[53]=j,e[54]=y,e[55]=b,e[56]=T):T=e[56];let k;e[57]!==R||e[58]!==T||e[59]!==B||e[60]!==A?(k=o.jsxs(R,{className:B,children:[A,T]}),e[57]=R,e[58]=T,e[59]=B,e[60]=A,e[61]=k):k=e[61];let v;e[62]!==r||e[63]!==d||e[64]!==i?(v=r.length>0&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-meta",children:i("taskBoard.columnRules.inheritedHint")}),o.jsx("div",{className:"flex flex-wrap gap-1.5",children:r.map(f=>o.jsx(K,{variant:"muted",children:d(f)},f))})]}),e[62]=r,e[63]=d,e[64]=i,e[65]=v):v=e[65];let S;return e[66]!==_||e[67]!==k||e[68]!==v||e[69]!==m?(S=o.jsxs("div",{className:m,children:[_,k,v]}),e[66]=_,e[67]=k,e[68]=v,e[69]=m,e[70]=S):S=e[70],S}function Ye(){const t=$.c(7),{org:e}=q(),a=V();let s;t[0]!==e.id?(s=F.taskBoardPrompts(e.id),t[0]=e.id,t[1]=s):s=t[1];let n;t[2]!==a?(n=async()=>(await a.call("TASK_BOARD_PROMPT_LIST",{})).prompts,t[2]=a,t[3]=n):n=t[3];let l;return t[4]!==s||t[5]!==n?(l={queryKey:s,staleTime:6e4,queryFn:n},t[4]=s,t[5]=n,t[6]=l):l=t[6],ne(l)}function We(){const t=$.c(8),{org:e}=q(),a=V(),s=Y();let n;t[0]!==a?(n=async c=>{const{columnKey:i,rules:u}=c;if(u){const g=u.prompt.trim();await(g||u.skills.length?a.call("TASK_BOARD_PROMPT_UPSERT",{columnKey:i,prompt:g,skills:u.skills}):a.call("TASK_BOARD_PROMPT_DELETE",{columnKey:i}))}},t[0]=a,t[1]=n):n=t[1];let l;t[2]!==e||t[3]!==s?(l=()=>s.invalidateQueries({queryKey:F.taskBoardPrompts(e.id)}),t[2]=e,t[3]=s,t[4]=l):l=t[4];let r;return t[5]!==n||t[6]!==l?(r={mutationFn:n,onSettled:l},t[5]=n,t[6]=l,t[7]=r):r=t[7],le(r)}const H=()=>0;function Je(){const t=$.c(6),{org:e}=q(),a=Y();let s;t[0]!==e.id||t[1]!==a?(s=()=>a.invalidateQueries({queryKey:F.taskBoardPrompts(e.id)}),t[0]=e.id,t[1]=a,t[2]=s):s=t[2];const n=s;let l;t[3]!==e.slug||t[4]!==n?(l=()=>be.subscribe(e.slug,n,n),t[3]=e.slug,t[4]=n,t[5]=l):l=t[5];const r=l;U.useSyncExternalStore(r,H,H)}export{Ue as C,Ve as S,He as a,Ye as b,Se as c,We as d,Je as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a4 as l,ak as c,r as i,V as d,K as T}from"./index-
|
|
1
|
+
import{a4 as l,ak as c,r as i,V as d,K as T}from"./index-BfWp2Wnw.js";import{c as m}from"./thread-intent-BtcwbxTJ.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-outputs-B8BJcksR.js → use-thread-outputs-BMHx59-u.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,a4 as i,i as l,K as p}from"./index-
|
|
1
|
+
import{c,a4 as i,i as l,K as p}from"./index-BfWp2Wnw.js";import{f}from"./chat-context-BUMEnIPW.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};
|
package/dist/client/assets/{use-view-draft-kind-hWydH0Wf.js → use-view-draft-kind-DkapSxnZ.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{at as b,cI as g,c as p,cJ as h,u as A}from"./index-
|
|
1
|
+
import{at as b,cI as g,c as p,cJ as h,u as A}from"./index-BfWp2Wnw.js";import{u as y}from"./use-blog-view-9w6CHFwT.js";import{e as f,i as o,g as d,t as S}from"./thread-intent-BtcwbxTJ.js";import{a as v,d as w}from"./session-runtime-DFmRKpVg.js";const D=1e4,P="true",l=2;function c(t,e){return b.chatAutosend(t,e)}function T(t){return t==="pending"||t==="sending"}function E(t){if(!t)return null;let e;try{e=JSON.parse(t)}catch{return null}if(!e||typeof e!="object")return null;const n=e;let a=0;n.status==="sending"?a=n.retryAt===void 0?1:l:n.retryAt!==void 0&&(a=1);const r=n.attempt===void 0?a:n.attempt;return typeof n.createdAt!="number"||typeof n.message!="object"||!T(n.status)||n.retryAt!==void 0&&typeof n.retryAt!="number"||typeof r!="number"||!Number.isInteger(r)||r<0||r>l?null:{...e,attempt:r}}function U(t,e,n,a,r=Date.now()){const i={message:a,createdAt:r,status:"pending",attempt:0};return t.setItem(c(e,n),JSON.stringify(i)),i}function N(t,e,n){const a=c(e,n),r=E(t.getItem(a));return r||(t.removeItem(a),null)}function k(t,e,n,a=Date.now()){const r=c(e,n),i=N(t,e,n);if(!i||i.status!=="pending")return null;if(i.attempt>=l)return t.removeItem(r),null;const s=i.retryAt??i.createdAt;if(a-s>=D)return t.removeItem(r),null;const u={...i,status:"sending",attempt:i.attempt+1};return t.setItem(r,JSON.stringify(u)),{message:u.message,createdAt:u.createdAt,attempt:u.attempt}}function J(t,e,n){t.removeItem(c(e,n))}const x=new Set(["site-editor","content","code","calendar","experiments"]);function _(t,e,n){return n?t==="blog"||t==="blog-post"?"blog":t==="monitoring"?e==="experiments"?"site":null:t&&x.has(t)?"site":null:null}function m(t){return o(t)?"blog":"site"}function M(t,e,n){return e===null?[...t]:t.filter(a=>m(a.branch)===e||a.branch===n)}function j(t,e,n,a){const r=t.filter(i=>i.branch!==e&&(n===null||m(i.branch)===n));return r.find(i=>(i.runtime??a)!=="sandbox")??r[0]}function F(t){return o(t)?"thread.branchPicker.blogDraftName":"thread.branchPicker.defaultVersionName"}function K(t,e,n){return t==="blog"?o(e.branch)||v(e.metadata,n)==="sandbox":t==="site"?!o(e.branch):!0}function C(t,e,n){return!e.partial&&t==="blog"===o(e.branch)&&S(e,w(n))}function Y(t,e){const n=t||f(e);return o(n)?{branch:n}:{branch:n,runtime:"sandbox"}}function O(t,e,n){return K(t,e,n)?null:t==="blog"?"site-editor":"blog"}function G(t,e,n){return n&&o(t)?f(e):d(e)}function Q(t){const e=t.viewKind==="blog"||t.blogView&&o(t.branch)?f(t.userLabel):d(t.userLabel);return t.projectDefault==="cms"?{kind:"new-thread",runtime:"cms",branch:e}:{kind:"repoint",branch:e}}function R(t){if(!t)return null;const e=g(t);return e.kind==="blog"?"blog":e.kind==="site-editor"||e.kind==="agent-section"&&(e.section==="calendar"||e.section==="experiments")?"site":null}function W(t,e,n){return!t||!e||!n?t:O(R(t),e,void 0)??t}function X(){const t=p.c(5),e=h(),n=y();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},t[0]=a):a=t[0];const r=A(a),i="view"in r&&typeof r.view=="string"?r.view:void 0;let s;return t[1]!==n||t[2]!==e||t[3]!==i?(s=_(e,i,n),t[1]=n,t[2]=e,t[3]=i,t[4]=s):s=t[4],s}export{P as A,J as a,Y as b,k as c,F as d,M as e,m as f,Q as g,C as i,G as n,j as s,W as t,X as u,K as v,U as w};
|