decocms 4.443.1 → 4.443.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/README.md +7 -1
- package/dist/client/assets/{AlertCircle-nGDYftVI.js → AlertCircle-DXLs2YfX.js} +1 -1
- package/dist/client/assets/{AreaChart-ZSNWajPN.js → AreaChart-DLFvYTn8.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DYsLCA2v.js → ArrowLeft--pkS1YcK.js} +1 -1
- package/dist/client/assets/{ArrowUp-DWz6jCWP.js → ArrowUp-DQxu9lq3.js} +1 -1
- package/dist/client/assets/{Building02-dkZL73Aq.js → Building02-CKLKiQ3U.js} +1 -1
- package/dist/client/assets/{CartesianChart-DhLgFSnL.js → CartesianChart-C6kBEFCy.js} +1 -1
- package/dist/client/assets/{Check-DdiNmh3G.js → Check-BbEloZu1.js} +1 -1
- package/dist/client/assets/{CheckCircle-DSYpSZ7G.js → CheckCircle-BDzQ_ECv.js} +1 -1
- package/dist/client/assets/{ChevronUp-RZ9D15nf.js → ChevronUp-D3ChNhrQ.js} +1 -1
- package/dist/client/assets/{Copy01-gcdR5IZX.js → Copy01-a63gH2RE.js} +1 -1
- package/dist/client/assets/{CreditCard01-Bl6sSiay.js → CreditCard01-BS5sPNh6.js} +1 -1
- package/dist/client/assets/{DotsVertical-DhpXY6GD.js → DotsVertical-vt_3gkoG.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-DpIYs0cR.js → ErrorBarContext-CSPYPFXx.js} +1 -1
- package/dist/client/assets/{Image01-CR8VGKVo.js → Image01-BR5I_9pG.js} +1 -1
- package/dist/client/assets/{Key01-D0sQpTkE.js → Key01-C0k-gtwc.js} +1 -1
- package/dist/client/assets/{Line-u5ZQ6mA8.js → Line-C6bWuRZM.js} +1 -1
- package/dist/client/assets/{Link01-8ip-fr29.js → Link01-DM36157y.js} +1 -1
- package/dist/client/assets/{LinkBroken01-BkhUs9rq.js → LinkBroken01-DHksKx7R.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DrJX7aC0.js → LinkExternal01-DZNYicBT.js} +1 -1
- package/dist/client/assets/{Monitor01-D7z7RGzV.js → Monitor01-BQxvNkHa.js} +1 -1
- package/dist/client/assets/{Palette-DnGo9yVI.js → Palette-D-JYBilo.js} +1 -1
- package/dist/client/assets/{Plus-DB4FI3R3.js → Plus-kevaXo9o.js} +1 -1
- package/dist/client/assets/{SearchMd-kP-wMwgH.js → SearchMd-CKY0v7Vy.js} +1 -1
- package/dist/client/assets/{Sector-LnIMaEQL.js → Sector-DTAQxGMo.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-_DEXID55.js → ShoppingBag01-Dfpwkcdn.js} +1 -1
- package/dist/client/assets/{Sun-FPWNj6PU.js → Sun-DxmQEZP4.js} +1 -1
- package/dist/client/assets/{Tool01-BLZm9DPk.js → Tool01-D4pGeBop.js} +1 -1
- package/dist/client/assets/{Trash01-BvHf5UWo.js → Trash01-DFbco4Cc.js} +1 -1
- package/dist/client/assets/{Upload01-DKe2IKKC.js → Upload01-BZbq-HqK.js} +1 -1
- package/dist/client/assets/{User01-jJA28_tq.js → User01-d9Z_uT9d.js} +1 -1
- package/dist/client/assets/{UserSquare-QnfD_CaR.js → UserSquare-DRII3oW9.js} +1 -1
- package/dist/client/assets/{Users01-eyKYd8Cn.js → Users01-CNmS3Xkr.js} +1 -1
- package/dist/client/assets/{X-BuNT_jX4.js → X-Cul5rSgm.js} +1 -1
- package/dist/client/assets/{XAxis-C-LxgUvH.js → XAxis-Dkkejosu.js} +1 -1
- package/dist/client/assets/{XClose-4hmzGRgA.js → XClose-Cs8QbZ4B.js} +1 -1
- package/dist/client/assets/{ZoomOut-CAM_UTRK.js → ZoomOut-D59vA8XW.js} +1 -1
- package/dist/client/assets/{access-gate-BiuCzoWU.js → access-gate-Cxb2F7oE.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-iTzdOqFh.js → add-connection-dialog-DplB0y07.js} +1 -1
- package/dist/client/assets/{agent-analytics-D9aMLNVy.js → agent-analytics-BS1b9iO0.js} +1 -1
- package/dist/client/assets/agent-app-CeqjVahj.js +1 -0
- package/dist/client/assets/{agent-assets-DoSUflp2.js → agent-assets-vaZlOnFb.js} +1 -1
- package/dist/client/assets/{agent-automation-uQB8fdi5.js → agent-automation-DjX3m9HB.js} +1 -1
- package/dist/client/assets/{agent-automations-F0sOGxBj.js → agent-automations-Bs5h0eCg.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DVTBcRKn.js → agent-connect-sources-CKd-sxH0.js} +1 -1
- package/dist/client/assets/agent-deck-DNb1Gyse.js +1 -0
- package/dist/client/assets/{agent-e2e-9hHGAsd3.js → agent-e2e-CJ8T7gRz.js} +1 -1
- package/dist/client/assets/{agent-experiments-Cj0u6Uac.js → agent-experiments-B8CMED50.js} +1 -1
- package/dist/client/assets/{agent-file-B3GYfKsE.js → agent-file-BwjSnTWU.js} +1 -1
- package/dist/client/assets/{agent-git-B_xWAjW4.js → agent-git-C5yb5yRL.js} +1 -1
- package/dist/client/assets/{agent-hosting-VZ4aUX1j.js → agent-hosting-pLomroMj.js} +1 -1
- package/dist/client/assets/{agent-icon-CJvQ4Zav.js → agent-icon-CR4t5Gu3.js} +1 -1
- package/dist/client/assets/agent-library-BfIYcZpQ.js +1 -0
- package/dist/client/assets/agent-library-file-p5s_MaTP.js +1 -0
- package/dist/client/assets/{agent-monitor-C-O9rh5l.js → agent-monitor-CSJ_ZPtI.js} +1 -1
- package/dist/client/assets/{agent-overview-Cui2wX4M.js → agent-overview-Cm-7P1_4.js} +1 -1
- package/dist/client/assets/agent-settings-Jhu1Dols.js +1 -0
- package/dist/client/assets/{agent-site-editor-DWYBh7yq.js → agent-site-editor-C8Vp2mSD.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-CuDYYt6-.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-55H-EEp_.js → agent-site-editor-content-DU89Xm1v.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-BaYUgL0o.js → agent-site-editor-preview-DIGidFF-.js} +3 -3
- package/dist/client/assets/agent-view-DvDhKdxG.js +1 -0
- package/dist/client/assets/{agent-view-guard-DeQKdcs0.js → agent-view-guard-DI59nzL2.js} +1 -1
- package/dist/client/assets/{agents-list-WTk3WoPq.js → agents-list-h2QLMpr7.js} +1 -1
- package/dist/client/assets/{ai-providers-Dfnb3l7z.js → ai-providers-Cuo2aX4J.js} +1 -1
- package/dist/client/assets/{alert-5BSEJ36W.js → alert-DrqXlaB2.js} +1 -1
- package/dist/client/assets/{alert-dialog-BFv9kLvz.js → alert-dialog-SIUpU6uq.js} +1 -1
- package/dist/client/assets/{analytics-sections-CkfTQyP4.js → analytics-sections-BN5-cQxB.js} +1 -1
- package/dist/client/assets/{api-keys-BlUFkZIa.js → api-keys-9O3tzLbV.js} +1 -1
- package/dist/client/assets/api-keys-yPb18LqK.js +1 -0
- package/dist/client/assets/app-editor-DXvmafQO.js +1 -0
- package/dist/client/assets/{asset-utils-DOn8JWcy.js → asset-utils-DXGjR1jG.js} +1 -1
- package/dist/client/assets/{auth-catchall-BG6U1S1e.js → auth-catchall-Bba1CJfl.js} +1 -1
- package/dist/client/assets/{auth-entry-CFuD3npw.js → auth-entry-Ch8TvE5s.js} +1 -1
- package/dist/client/assets/{auth-_XhpWlCD.js → auth-gmg7d_GH.js} +1 -1
- package/dist/client/assets/{auth-split-layout-NaLq5k6q.js → auth-split-layout-DTU8WroU.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CRtno7NA.js → authenticate-and-persist-oauth-jhfDVcJv.js} +1 -1
- package/dist/client/assets/{automation-list-row-BNT7qQVd.js → automation-list-row-BUEOdqlU.js} +1 -1
- package/dist/client/assets/{automation-runs-B-g9tmZQ.js → automation-runs-puDKBIgS.js} +1 -1
- package/dist/client/assets/{automations-DZWy3G0S.js → automations-QUisz5WY.js} +1 -1
- package/dist/client/assets/{autosend-C3AW9-Kc.js → autosend-pVPWEmgH.js} +1 -1
- package/dist/client/assets/{avatar-DFe8T8wv.js → avatar-BqlNIDCE.js} +1 -1
- package/dist/client/assets/{badge-HCDrWNgI.js → badge-DtU2WkJu.js} +1 -1
- package/dist/client/assets/{block-document-BjCJT_hj.js → block-document-C277Lv3R.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-ygQViva-.js → blocks-preview-workspace-context-C3gS27DC.js} +1 -1
- package/dist/client/assets/{buckets-QfMGnFIM.js → buckets-i93if4PX.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BmxeF3A8.js → build-improve-prompt-doc-DJwI2xSl.js} +1 -1
- package/dist/client/assets/{calendar-DfnovksK.js → calendar-FovdVD0Q.js} +1 -1
- package/dist/client/assets/{capability-load-error-BXP4fPem.js → capability-load-error-Ss9c_27I.js} +1 -1
- package/dist/client/assets/{category-editor-D0pwqTY2.js → category-editor-bw3NaN_p.js} +1 -1
- package/dist/client/assets/{chart-CgCcwj9R.js → chart-CgCPJzFe.js} +1 -1
- package/dist/client/assets/{chat-context-57WZg7Dj.js → chat-context-CXmGJCh6.js} +1 -1
- package/dist/client/assets/{chat-draft-BfNI0JT9.js → chat-draft-Cf6M_rqU.js} +1 -1
- package/dist/client/assets/{checkbox-DYTYP-sp.js → checkbox-TXsgr3EH.js} +1 -1
- package/dist/client/assets/{choose-editor-ConbAn_j.js → choose-editor-CthxYzyJ.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-CxQ6pqyC.js → claim-phase-copy-ZnN8pI8I.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BMJArkja.js → cli-auth-success-C_mfySiY.js} +1 -1
- package/dist/client/assets/{client-icons-B2e9fI9Z.js → client-icons-cFdIknOt.js} +1 -1
- package/dist/client/assets/{collapsible-DsWNr7eG.js → collapsible-DvCkKWwe.js} +1 -1
- package/dist/client/assets/{collection-detail-R8OxmdGe.js → collection-detail-CytBSKx7.js} +1 -1
- package/dist/client/assets/{collection-display-button-Djjcjybw.js → collection-display-button-D_YQnWY2.js} +1 -1
- package/dist/client/assets/{collection-search-HMFzfPbk.js → collection-search-CBqaYcDh.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BHZQdR59.js → collection-table-wrapper-DdmsDfw6.js} +1 -1
- package/dist/client/assets/{collection-tabs-BAecEYSD.js → collection-tabs-CqkPnR43.js} +1 -1
- package/dist/client/assets/{column-rules-Dn8Oiij3.js → column-rules-DmIVY5oh.js} +1 -1
- package/dist/client/assets/{combobox-CoP6GrDz.js → combobox-CEvYMvN3.js} +1 -1
- package/dist/client/assets/{command-CYO6wqHE.js → command-BfeIom6N.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-BQmDsmLP.js → companion-mcps-section-Ck8UUBzj.js} +1 -1
- package/dist/client/assets/{config-B-T5G-Sm.js → config-2E3xR2_y.js} +1 -1
- package/dist/client/assets/{connect-C6mMzkpn.js → connect-BAMAJEoE.js} +1 -1
- package/dist/client/assets/{connect-layout-Bcsicf_i.js → connect-layout-h3BrSWqp.js} +1 -1
- package/dist/client/assets/{connection-XKeDufat.js → connection-VweOjV2O.js} +1 -1
- package/dist/client/assets/{connection-card-CyPdimh-.js → connection-card-64g-eY4r.js} +1 -1
- package/dist/client/assets/{connection-detail-BuBsAR66.js → connection-detail-CfoyWU2W.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-D5a67gIJ.js → connection-form-helpers-Dyv9IKEP.js} +1 -1
- package/dist/client/assets/{connections-DaLdX42y.js → connections-2-CXQYIi.js} +1 -1
- package/dist/client/assets/{context-CKropqbM.js → context-DWFfHXBw.js} +1 -1
- package/dist/client/assets/{context-menu-B8KQvqPz.js → context-menu-De4tqQQE.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CC3bfG-a.js → create-organization-dialog-B1RRLsDf.js} +1 -1
- package/dist/client/assets/{daily-pulse--izT7vL3.js → daily-pulse-CCBkb-iX.js} +1 -1
- package/dist/client/assets/{decopilot-C0YgIJ6X.js → decopilot-lSZL3pEK.js} +1 -1
- package/dist/client/assets/{device-hint-BInEqiyb.js → device-hint-CYJEDP6x.js} +1 -1
- package/dist/client/assets/{dialog-DJN6MVgM.js → dialog-BSl2AX4W.js} +1 -1
- package/dist/client/assets/{discover-C9MDCBi0.js → discover-XwZddFEz.js} +1 -1
- package/dist/client/assets/{domain-settings-DE44PRLU.js → domain-settings-DUDo0z8q.js} +1 -1
- package/dist/client/assets/{download-app-dialog-CCGZxufS.js → download-app-dialog-C2P7W8iK.js} +1 -1
- package/dist/client/assets/{drawer-BltlXHm_.js → drawer-DqBseAyM.js} +1 -1
- package/dist/client/assets/{editor-CVrodmvC.js → editor-BRstAcuG.js} +1 -1
- package/dist/client/assets/{empty-state-d5T0jvmw.js → empty-state-B_1GXkEg.js} +1 -1
- package/dist/client/assets/{empty-state-CMomFSLr.js → empty-state-CZ4GlZ32.js} +1 -1
- package/dist/client/assets/{extract-connection-data-oeQMV1x5.js → extract-connection-data-Dv6mCSuT.js} +1 -1
- package/dist/client/assets/{feature-gate-txxC8V7V.js → feature-gate-Kap3Vwes.js} +1 -1
- package/dist/client/assets/{feature-paywall-CCAdf3Sa.js → feature-paywall-BMjJberI.js} +1 -1
- package/dist/client/assets/{file-explorer-DvHTYZ00.js → file-explorer-sxnHpGtO.js} +1 -1
- package/dist/client/assets/{file-preview-CrbKDhEs.js → file-preview-qKX0Hj06.js} +1 -1
- package/dist/client/assets/{file-share-button-wrCnaVy5.js → file-share-button-DsEdF9_e.js} +1 -1
- package/dist/client/assets/{file-type-icon-bXE_k5sz.js → file-type-icon-q3jT_2Y8.js} +1 -1
- package/dist/client/assets/flat-project-DaiL6_Yc.js +1 -0
- package/dist/client/assets/{folder-icon-cKcXEBJn.js → folder-icon-VggWvkeC.js} +1 -1
- package/dist/client/assets/{form-BjXXuh2_.js → form-CbtSzwk4.js} +1 -1
- package/dist/client/assets/{gateway-client-BaqReu6H.js → gateway-client-CswynSYR.js} +1 -1
- package/dist/client/assets/{general-P324czHx.js → general-D16HtoNP.js} +1 -1
- package/dist/client/assets/{home-DQqHEr_I.js → home-C1DBRJdH.js} +1 -1
- package/dist/client/assets/{icon-button-DSeFHn8f.js → icon-button-D7NextCX.js} +1 -1
- package/dist/client/assets/{index-YUcuY-u2.js → index-6HS_Fth-.js} +1 -1
- package/dist/client/assets/{index-D2XyhTnn.js → index-B-ajDQ7x.js} +3 -3
- package/dist/client/assets/{index-kJRaT2AO.js → index-B05BvO6S.js} +1 -1
- package/dist/client/assets/{index-BKE4AJl4.js → index-BPJC_Lsm.js} +1 -1
- package/dist/client/assets/{index-DGnFk0_c.js → index-C7eGj3Yr.js} +1 -1
- package/dist/client/assets/{index-CdxHQZta.js → index-D2dTzz5J.js} +2 -2
- package/dist/client/assets/{index-eQ3HZ0eK.js → index-DBRaqXh3.js} +1 -1
- package/dist/client/assets/{index-8LgexCXT.js → index-DJmJwzWv.js} +1 -1
- package/dist/client/assets/{index-D5aMdsbk.js → index-DYekkvsC.js} +1 -1
- package/dist/client/assets/{index-BtUSf8NF.js → index-DnL0WJSy.js} +1 -1
- package/dist/client/assets/{index-CnKrz3BN.js → index-Dyu-dh6U.js} +1 -1
- package/dist/client/assets/{index-SCvLZwwK.js → index-I7SWL7Bn.js} +1 -1
- package/dist/client/assets/{index-CvxuRZwT.js → index-Q0xGMFy6.js} +1 -1
- package/dist/client/assets/{index-BzngvahP.js → index-k3WFemWm.js} +1 -1
- package/dist/client/assets/{index-redirect-D1pX-yVM.js → index-redirect-BIG2i9sg.js} +1 -1
- package/dist/client/assets/{index-M9qIKTGe.js → index-xXBxH1Ml.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CDMBojy0.js → infiniteQueryObserver-d9AVE-54.js} +1 -1
- package/dist/client/assets/{infra-billing-BdY0GEto.js → infra-billing-DeQI7Gu0.js} +1 -1
- package/dist/client/assets/{input-BKVvaN4k.js → input-BPxTfIlR.js} +3 -3
- package/dist/client/assets/{input-DYp-O8Zf.js → input-CcOKxxNa.js} +1 -1
- package/dist/client/assets/{input-CEyC_PjH.js → input-QVDvJxJt.js} +1 -1
- package/dist/client/assets/{integration-icon-CW837guT.js → integration-icon-LuLuvYpS.js} +1 -1
- package/dist/client/assets/{label-CyxA9Tlc.js → label-Vx4RXl56.js} +1 -1
- package/dist/client/assets/{layout-88zBftER.js → layout-DsjTg2tO.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-CH-IrvKb.js → legacy-agents-deep-0qlgcFpR.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-BdCKFNea.js → legacy-main-redirect-DJSSnCFn.js} +1 -1
- package/dist/client/assets/library-BT8MDbGE.js +1 -0
- package/dist/client/assets/{library-tab-Bce9HVRy.js → library-tab-D9vHUslE.js} +1 -1
- package/dist/client/assets/{login-FL-FWaUd.js → login-CXb7XfpW.js} +1 -1
- package/dist/client/assets/{markdown-npeX6Dvn.js → markdown-CbS8bzQj.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-BEYyNxBF.js → mcp-app-renderer-BtTj1I1A.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DNfjV_-l.js → mcp-oauth-ClbbuLRW.js} +1 -1
- package/dist/client/assets/{members-BrVLMdZe.js → members-CDgN8Dmx.js} +1 -1
- package/dist/client/assets/{memory-Cu-GI3KY.js → memory-z1AwNIL_.js} +1 -1
- package/dist/client/assets/{message-templates-C9Ae73D3.js → message-templates-BEgMVTC5.js} +1 -1
- package/dist/client/assets/{mini-report-page-CTSRrcPg.js → mini-report-page-BD35Q2tB.js} +1 -1
- package/dist/client/assets/{mock-board-DVx1bLDB.js → mock-board-n9VluIvN.js} +1 -1
- package/dist/client/assets/{monaco-editor-DTjt4Gvf.js → monaco-editor-CWEy2Wmz.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-IPvge-Ql.js → monitoring-stats-row-CgOhkmn3.js} +1 -1
- package/dist/client/assets/{multi-select-C0pIDv4l.js → multi-select-C7Irc4wP.js} +1 -1
- package/dist/client/assets/{mustache-B86FuZTo.js → mustache-CEPRFGIa.js} +1 -1
- package/dist/client/assets/{new-project-dialog-Cf4og9hp.js → new-project-dialog-Bmu4ROdM.js} +1 -1
- package/dist/client/assets/{oauth-callback-DsxCT0Rg.js → oauth-callback-8Vm2F8OH.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-B0Qj3jqd.js → oauth-callback-ai-provider-CzLoL-4K.js} +1 -1
- package/dist/client/assets/{onboarding-CaL1NynW.js → onboarding-Cs5e4xpz.js} +1 -1
- package/dist/client/assets/{openai-conversation-8bTGXza9.js → openai-conversation-DTYW8Nmt.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-CdcnoHMx.js → optimistic-project-sidebar-views-BUiqS2uK.js} +1 -1
- package/dist/client/assets/{org-file-open-context-CbfDthkV.js → org-file-open-context-Crp_VOcp.js} +1 -1
- package/dist/client/assets/{organization-choice-Bpd56bKF.js → organization-choice-CVTsLYoj.js} +1 -1
- package/dist/client/assets/{orgs-CaUdOCVi.js → orgs-CMBD-Ecp.js} +1 -1
- package/dist/client/assets/{page-seo-form-BFvo8crB.js → page-seo-form-DZ-tFdem.js} +1 -1
- package/dist/client/assets/{pair-qTA6WdF2.js → pair-C5MP6tmI.js} +1 -1
- package/dist/client/assets/{plan-ladder-B5Jixr7W.js → plan-ladder-BS_j29A8.js} +1 -1
- package/dist/client/assets/{popover-BzkBJGwj.js → popover-DiGkaZQG.js} +1 -1
- package/dist/client/assets/{post-calendar-BHQVcnMM.js → post-calendar-Bh1a7pzf.js} +1 -1
- package/dist/client/assets/{post-editor-C3uCwQ-d.js → post-editor-BK7Sv69A.js} +1 -1
- package/dist/client/assets/{preview-content-bTvDgjfl.js → preview-content-D26Qem-Y.js} +1 -1
- package/dist/client/assets/{preview-dialog-CLFTRCuY.js → preview-dialog-BF1ke6DE.js} +1 -1
- package/dist/client/assets/{profile-Dw0WQchl.js → profile-CNd7A2Gx.js} +1 -1
- package/dist/client/assets/{project-app-view-CfVgbcC9.js → project-app-view-CVyo8em-.js} +1 -1
- package/dist/client/assets/{project-feed-D1BIbHU5.js → project-feed-RRFZCFHK.js} +1 -1
- package/dist/client/assets/{project-icon-CFM_cw8o.js → project-icon-CXi3E4T2.js} +1 -1
- package/dist/client/assets/project-reports-C3bvGgip.js +1 -0
- package/dist/client/assets/project-tasks-DQ-t9ZQ0.js +1 -0
- package/dist/client/assets/{projects-DGayh67M.js → projects-DhDrpc2w.js} +1 -1
- package/dist/client/assets/{projects-empty-state-DjN6gjQD.js → projects-empty-state-uTdhn7up.js} +1 -1
- package/dist/client/assets/{prompts-BnFQvE8i.js → prompts-DbghR4VL.js} +1 -1
- package/dist/client/assets/record-editor-fQo5Y3o_.js +1 -0
- package/dist/client/assets/{redirect-editor-Du01ASpa.js → redirect-editor-Cyu7m0VD.js} +1 -1
- package/dist/client/assets/{reports-DC_p6jvC.js → reports-BilzDLyr.js} +1 -1
- package/dist/client/assets/reports-DGyFA0YC.js +1 -0
- package/dist/client/assets/{reports-onboarding-C3KYMwju.js → reports-onboarding-x2N1hyxW.js} +1 -1
- package/dist/client/assets/{reports-tab-Ctc7ePZA.js → reports-tab-Y4dGdrCw.js} +2 -2
- package/dist/client/assets/{repositories-CbVwqqBr.js → repositories-Byiu79Lf.js} +1 -1
- package/dist/client/assets/{repository-binding-JChFqkvS.js → repository-binding-rygwFtUU.js} +1 -1
- package/dist/client/assets/{repository-import-picker-NG5IIZpH.js → repository-import-picker-CMch2yXk.js} +1 -1
- package/dist/client/assets/{repository-picker-DZKt8b9q.js → repository-picker-DmMyT9uL.js} +1 -1
- package/dist/client/assets/{require-capability-jw-5LosR.js → require-capability-BOLN4wlq.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DNnKhVnU.js → required-auth-layout-BaGMTRsq.js} +1 -1
- package/dist/client/assets/{reset-password-ZXs-mNLl.js → reset-password-VpKsYnOO.js} +1 -1
- package/dist/client/assets/{resizable-DxIrekeJ.js → resizable-B8UplbG9.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-BVcp3jJe.js → resolve-tab-icon-BBNKRvUX.js} +1 -1
- package/dist/client/assets/{review-settings-BBodJBzm.js → review-settings-Bg3gl59w.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-CXkIRZhg.js → rich-text-link-control-Dtfq7e19.js} +1 -1
- package/dist/client/assets/{roles-zeY4MMAw.js → roles-DUiIBEus.js} +1 -1
- package/dist/client/assets/{route-B0c_8Y-t.js → route-BT7O0_Ir.js} +1 -1
- package/dist/client/assets/{route-BuqKjWBF.js → route-DBoucnX-.js} +1 -1
- package/dist/client/assets/route-P9yHnvom.js +1 -0
- package/dist/client/assets/{runnable-block-editor-CtVc7nrS.js → runnable-block-editor-BoFLRoxE.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-COX6jko8.js → sandbox-lifecycle-context-CwQvVUN0.js} +1 -1
- package/dist/client/assets/{schema-C5rDsgZa.js → schema-D38GSwTR.js} +1 -1
- package/dist/client/assets/{scroll-area-CD247Puy.js → scroll-area-CMu3xzBy.js} +1 -1
- package/dist/client/assets/{search-input-B0oqfDX0.js → search-input-nZG5K7zX.js} +1 -1
- package/dist/client/assets/{search-toggle-CUD4gUyI.js → search-toggle-C5lsyKed.js} +1 -1
- package/dist/client/assets/{secret-picker-CI5SFXlz.js → secret-picker-DcIMyJMq.js} +1 -1
- package/dist/client/assets/{secrets-DMHBZ5b-.js → secrets-k9ofAEIC.js} +1 -1
- package/dist/client/assets/{sections-editor-DX78q9L5.js → sections-editor-ClENwd-n.js} +1 -1
- package/dist/client/assets/{select-BgBtUQbR.js → select-DNyFjSYg.js} +1 -1
- package/dist/client/assets/{select-model-BuabH7uX.js → select-model-Ob1Ytd6l.js} +1 -1
- package/dist/client/assets/{seo-editor-Bi2Y_Hq4.js → seo-editor-M7JSsuZE.js} +1 -1
- package/dist/client/assets/{separator-CfAX-CZE.js → separator-BFCJgJ_0.js} +1 -1
- package/dist/client/assets/{settings-tab-LAvWxx2s.js → settings-tab-CIXZsK00.js} +1 -1
- package/dist/client/assets/{sheet-D6pV4Eay.js → sheet-DYd28Fb7.js} +1 -1
- package/dist/client/assets/{shell-layout-DZwsj6tm.js → shell-layout-Dix32M24.js} +1 -1
- package/dist/client/assets/{skills-Bu1-kQnU.js → skills-DlWHM8Lq.js} +1 -1
- package/dist/client/assets/{sso-D2qJfsnQ.js → sso-CND-Sq4S.js} +1 -1
- package/dist/client/assets/{suggestion-CxAnGtnm.js → suggestion-CPJmHCe_.js} +1 -1
- package/dist/client/assets/{switch-F41L6dpN.js → switch-ZiO5P7k4.js} +1 -1
- package/dist/client/assets/{synced-repos-BPSH3MWj.js → synced-repos-BCPBok84.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-DzWhA8K9.js → tab-icon-glyph-DLiZkLIB.js} +1 -1
- package/dist/client/assets/{table-9HMGEyIJ.js → table-e3ZyDjwe.js} +1 -1
- package/dist/client/assets/{tabs-28356LbY.js → tabs-D81IF5HZ.js} +1 -1
- package/dist/client/assets/{task-board-Bwhtxe11.js → task-board-CWJgeu7Z.js} +1 -1
- package/dist/client/assets/{task-route-CQZICp4O.js → task-route-Bv6rVEq1.js} +1 -1
- package/dist/client/assets/{task-status-BKUG0suF.js → task-status-q2zy99n1.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-Cijn2VAb.js → taskboard-analytics-BJyL2NNQ.js} +1 -1
- package/dist/client/assets/{tasks-SVHYdAQ9.js → tasks-CCkNOU1r.js} +1 -1
- package/dist/client/assets/tasks-DfgJkdfJ.js +1 -0
- package/dist/client/assets/{textarea-BgjIoA0a.js → textarea-PVngK0Di.js} +1 -1
- package/dist/client/assets/{thread-analytics-CJAwkwEl.js → thread-analytics-B1EKfHoB.js} +1 -1
- package/dist/client/assets/{thread-button-BFNgAW02.js → thread-button-jRtWzslL.js} +1 -1
- package/dist/client/assets/{thread-intent-CfYVTTpH.js → thread-intent-DkMl3Clw.js} +1 -1
- package/dist/client/assets/{thread-route-w0ePUXK3.js → thread-route-BRzPZsPr.js} +1 -1
- package/dist/client/assets/{thread-route-CSYBLpD5.js → thread-route-C9fk2CbW.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-BzJujnLG.js → thread-sheet-body-Ceh-gQcv.js} +1 -1
- package/dist/client/assets/{toggle-group-f3cK2guz.js → toggle-group-Dc2uUHWD.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-VgyXKzQb.js → toolbar-icon-button-BVZ6tXmv.js} +1 -1
- package/dist/client/assets/{tooltip-DRbwF15X.js → tooltip-jK__fCo4.js} +1 -1
- package/dist/client/assets/{track-CpccMuBV.js → track-CbkWmrSD.js} +1 -1
- package/dist/client/assets/{types-xvRKIUh5.js → types-D3Y6TAqK.js} +1 -1
- package/dist/client/assets/{usage-stats-4-mJM_Ny.js → usage-stats-C7VDzGYl.js} +1 -1
- package/dist/client/assets/{use-ai-providers-C6jAJjpy.js → use-ai-providers-DfehKmIZ.js} +1 -1
- package/dist/client/assets/{use-automations-DW9RBnQP.js → use-automations-Dhxqirb4.js} +1 -1
- package/dist/client/assets/{use-autosave-CXmVaIbs.js → use-autosave-OyP0ttSE.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-YLz0zkkr.js → use-chat-layout-state-CqvKxYcd.js} +1 -1
- package/dist/client/assets/{use-clock-tick-wePDDvbf.js → use-clock-tick-bRYO-Rnq.js} +1 -1
- package/dist/client/assets/{use-connect-companion-CHb1DnmY.js → use-connect-companion-BWZLgFxk.js} +1 -1
- package/dist/client/assets/{use-connection-DPn99Ne3.js → use-connection-CNR2pmSM.js} +1 -1
- package/dist/client/assets/{use-copy-BQq90EWC.js → use-copy-DTgTF3rB.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CMvC1FaJ.js → use-create-virtual-mcp-DE06yanc.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-Dw9npfv_.js → use-date-fns-locale-XYU3tVXv.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Bp7ZbYT_.js → use-debounced-autosave-BZFchJN4.js} +1 -1
- package/dist/client/assets/{use-debounced-value-ABLDNwmN.js → use-debounced-value-CVxm5Do1.js} +1 -1
- package/dist/client/assets/{use-deco-credits-B7tO3-nF.js → use-deco-credits-DiEJ9aQR.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-12vOrgcO.js → use-decopilot-events-0kg2dbb1.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Qy8Crcvm.js → use-delete-connection-DkMNwEdI.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CeqkmFsj.js → use-deployment-admin-ywArJLll.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-DzyQ0ge6.js → use-fast-preview-draft-url-qZiFROwq.js} +1 -1
- package/dist/client/assets/{use-file-configs-DOgSoqwq.js → use-file-configs-C194rQrE.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BwyMk9UX.js → use-infinite-scroll-fz45Cy3c.js} +1 -1
- package/dist/client/assets/{use-join-requests-rPLnsPn6.js → use-join-requests-CroNt5uC.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-D42qBZW9.js → use-main-panel-tabs-Crf-H9Ck.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BgZ-LE-_.js → use-mcp-auth-status-8ysc0TdM.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CmW-CbmL.js → use-mcp-client-BGBcJfvU.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DmPn5bN4.js → use-mcp-prompts-Bl7YpvT7.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-JEz2u8-E.js → use-mcp-tools-fghoMnAo.js} +1 -1
- package/dist/client/assets/{use-members-zd75VUjT.js → use-members-BFzPg9DY.js} +1 -1
- package/dist/client/assets/{use-mobile-CdJjslx1.js → use-mobile-aquWF07B.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BoqkOdWC.js → use-navigate-to-agent-nkJg8O6N.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-D7CDsp29.js +1 -0
- package/dist/client/assets/{use-open-billing-url-B2MlLvJS.js → use-open-billing-url-CfSIGf8I.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DJFH34Mt.js → use-org-auth-client-BS1yNddv.js} +1 -1
- package/dist/client/assets/{use-org-fs-39Wz8rpU.js → use-org-fs-Xkb3iQn6.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Be91hjO3.js → use-org-repo-syncs-BuNTUtHD.js} +1 -1
- package/dist/client/assets/{use-org-sso-C-JMGiGS.js → use-org-sso-AI0KysNs.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BKbuiSkF.js → use-organization-roles-D5TQuPKT.js} +1 -1
- package/dist/client/assets/{use-organization-settings-PXdLuNB9.js → use-organization-settings-BjL-KIcf.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-D8_cxPJw.js → use-panel-navigate-vUjkTeRK.js} +1 -1
- package/dist/client/assets/{use-project-scope-Cv9ae9Ib.js → use-project-scope-EPuSPnhc.js} +1 -1
- package/dist/client/assets/{use-releases-C4vordN8.js → use-releases-CdRENGAZ.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-B0fQh9dS.js → use-reports-diagnostic-DTL4fmvJ.js} +1 -1
- package/dist/client/assets/{use-secrets-Dh7U4HYj.js → use-secrets-CFvn68u4.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CR8mR1xB.js → use-section-preview-base-CjzKsAiD.js} +1 -1
- package/dist/client/assets/{use-session-runtime-D08Kep-m.js → use-session-runtime-CjMZc55F.js} +1 -1
- package/dist/client/assets/{use-tags-Dx_EaUo4.js → use-tags-nAtiuLhp.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DfLR40s2.js → use-task-board-analytics-DGRYiUDJ.js} +1 -1
- package/dist/client/assets/{use-task-board-events-LvNi14dX.js → use-task-board-events-DYNk8AbJ.js} +1 -1
- package/dist/client/assets/{use-task-metadata-BEkBKOHv.js → use-task-metadata-SNGtaGxh.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-CMsFZWvm.js → use-thread-analytics-BWj-iEGz.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BESubVM6.js → use-thread-outputs-BmJ_6OMW.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-YfMLN54l.js +1 -0
- package/dist/client/assets/{useQueries-BVMdi_8j.js → useQueries-BP6syEbP.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-D12YW3Fz.js +1 -0
- package/dist/client/assets/{users-B5m9h87F.js → users-DNA_PGfC.js} +1 -1
- package/dist/client/assets/{utils-COR5sFjS.js → utils-BfD_oePk.js} +1 -1
- package/dist/client/assets/{variant-calendar-BsdnBVEZ.js → variant-calendar-DVUzd2f4.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-b_ipBYkQ.js → variant-matcher-override-2G_9KQMP.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CQXn8Fs1.js → view-mode-toggle-ChV__WZh.js} +1 -1
- package/dist/client/assets/{virtual-mcp-LWC4V-2f.js → virtual-mcp-Dlg1yt61.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/agent-app-Dyz8djHw.js +0 -1
- package/dist/client/assets/agent-deck-C5gRcDS2.js +0 -1
- package/dist/client/assets/agent-library-BhP6I_uS.js +0 -1
- package/dist/client/assets/agent-library-file-7ZIb4WIP.js +0 -1
- package/dist/client/assets/agent-settings-B5agphmp.js +0 -1
- package/dist/client/assets/agent-site-editor-code-BgLLWnwl.js +0 -2
- package/dist/client/assets/agent-view-B0bKIQvA.js +0 -1
- package/dist/client/assets/api-keys-CeG0QqxF.js +0 -1
- package/dist/client/assets/app-editor-R-Fk_pH9.js +0 -1
- package/dist/client/assets/flat-project-DRIXZZ_f.js +0 -1
- package/dist/client/assets/library-Cx7QZ5Pb.js +0 -1
- package/dist/client/assets/project-reports-G2lJWAZT.js +0 -1
- package/dist/client/assets/project-tasks-D4cxeI9B.js +0 -1
- package/dist/client/assets/record-editor-C9YZwrKG.js +0 -1
- package/dist/client/assets/reports-HUnDHvKz.js +0 -1
- package/dist/client/assets/route-CyP5dpSv.js +0 -1
- package/dist/client/assets/tasks-BdpOoIPv.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-DAABxnGt.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BlfFwct6.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-C1pF6UJx.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aX as $,aY as v,aZ as W,a_ as H,a$ as D,b0 as y,b1 as V,b2 as x,b3 as L,b4 as q,b5 as j,b6 as N,b7 as B,b8 as Z,b9 as F}from"./index-CdxHQZta.js";function G(e){const t=typeof e=="string"?new URL(e):new URL(e.href);return t.hash="",t}function J({requestedResource:e,configuredResource:t}){const n=typeof e=="string"?new URL(e):new URL(e.href),r=typeof t=="string"?new URL(t):new URL(t.href);if(n.origin!==r.origin||n.pathname.length<r.pathname.length)return!1;const a=n.pathname.endsWith("/")?n.pathname:n.pathname+"/",i=r.pathname.endsWith("/")?r.pathname:r.pathname+"/";return a.startsWith(i)}class pe extends Error{constructor(t){super(t??"Unauthorized")}}function Y(e){return["client_secret_basic","client_secret_post","none"].includes(e)}const p="code",_="S256";function X(e,t){const n=e.client_secret!==void 0;return"token_endpoint_auth_method"in e&&e.token_endpoint_auth_method&&Y(e.token_endpoint_auth_method)&&(t.length===0||t.includes(e.token_endpoint_auth_method))?e.token_endpoint_auth_method:t.length===0?n?"client_secret_basic":"none":n&&t.includes("client_secret_basic")?"client_secret_basic":n&&t.includes("client_secret_post")?"client_secret_post":t.includes("none")?"none":n?"client_secret_post":"none"}function K(e,t,n,r){const{client_id:a,client_secret:i}=t;switch(e){case"client_secret_basic":Q(a,i,n);return;case"client_secret_post":ee(a,i,r);return;case"none":te(a,r);return;default:throw new Error(`Unsupported client authentication method: ${e}`)}}function Q(e,t,n){if(!t)throw new Error("client_secret_basic authentication requires a client_secret");const r=btoa(`${e}:${t}`);n.set("Authorization",`Basic ${r}`)}function ee(e,t,n){n.set("client_id",e),t&&n.set("client_secret",t)}function te(e,t){t.set("client_id",e)}async function M(e){const t=e instanceof Response?e.status:void 0,n=e instanceof Response?await e.text():e;try{const r=B.parse(JSON.parse(n)),{error:a,error_description:i,error_uri:s}=r,o=Z[a]||y;return new o(i||"",s)}catch(r){const a=`${t?`HTTP ${t}: `:""}Invalid OAuth error response: ${r}. Raw body: ${n}`;return new y(a)}}async function _e(e,t){try{return await U(e,t)}catch(n){if(n instanceof $||n instanceof v)return await e.invalidateCredentials?.("all"),await U(e,t);if(n instanceof W)return await e.invalidateCredentials?.("tokens"),await U(e,t);throw n}}async function U(e,{serverUrl:t,authorizationCode:n,scope:r,resourceMetadataUrl:a,fetchFn:i}){const s=await e.discoveryState?.();let o,c,u,h=a;if(!h&&s?.resourceMetadataUrl&&(h=new URL(s.resourceMetadataUrl)),s?.authorizationServerUrl){if(c=s.authorizationServerUrl,o=s.resourceMetadata,u=s.authorizationServerMetadata??await P(c,{fetchFn:i}),!o)try{o=await T(t,{resourceMetadataUrl:h},i)}catch{}(u!==s.authorizationServerMetadata||o!==s.resourceMetadata)&&await e.saveDiscoveryState?.({authorizationServerUrl:String(c),resourceMetadataUrl:h?.toString(),resourceMetadata:o,authorizationServerMetadata:u})}else{const l=await ce(t,{resourceMetadataUrl:h,fetchFn:i});c=l.authorizationServerUrl,u=l.authorizationServerMetadata,o=l.resourceMetadata,await e.saveDiscoveryState?.({authorizationServerUrl:String(c),resourceMetadataUrl:h?.toString(),resourceMetadata:o,authorizationServerMetadata:u})}const f=await re(t,e,o),A=r||o?.scopes_supported?.join(" ")||e.clientMetadata.scope;let d=await Promise.resolve(e.clientInformation());if(!d){if(n!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");const l=u?.client_id_metadata_document_supported===!0,w=e.clientMetadataUrl;if(w&&!ne(w))throw new H(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${w}`);if(l&&w)d={client_id:w},await e.saveClientInformation?.(d);else{if(!e.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");const S=await de(c,{metadata:u,clientMetadata:e.clientMetadata,scope:A,fetchFn:i});await e.saveClientInformation(S),d=S}}const O=!e.redirectUrl;if(n!==void 0||O){const l=await he(e,c,{metadata:u,resource:f,authorizationCode:n,fetchFn:i});return await e.saveTokens(l),"AUTHORIZED"}const k=await e.tokens();if(k?.refresh_token)try{const l=await le(c,{metadata:u,clientInformation:d,refreshToken:k.refresh_token,resource:f,addClientAuthentication:e.addClientAuthentication,fetchFn:i});return await e.saveTokens(l),"AUTHORIZED"}catch(l){if(!(!(l instanceof D)||l instanceof y))throw l}const C=e.state?await e.state():void 0,{authorizationUrl:z,codeVerifier:I}=await ue(c,{metadata:u,clientInformation:d,state:C,redirectUrl:e.redirectUrl,scope:A,resource:f});return await e.saveCodeVerifier(I),await e.redirectToAuthorization(z),"REDIRECT"}function ne(e){if(!e)return!1;try{const t=new URL(e);return t.protocol==="https:"&&t.pathname!=="/"}catch{return!1}}async function re(e,t,n){const r=G(e);if(t.validateResourceURL)return await t.validateResourceURL(r,n?.resource);if(n){if(!J({requestedResource:r,configuredResource:n.resource}))throw new Error(`Protected resource ${n.resource} does not match expected ${r} (or origin)`);return new URL(n.resource)}}function Ue(e){const t=e.headers.get("WWW-Authenticate");if(!t)return{};const[n,r]=t.split(" ");if(n.toLowerCase()!=="bearer"||!r)return{};const a=m(e,"resource_metadata")||void 0;let i;if(a)try{i=new URL(a)}catch{}const s=m(e,"scope")||void 0,o=m(e,"error")||void 0;return{resourceMetadataUrl:i,scope:s,error:o}}function m(e,t){const n=e.headers.get("WWW-Authenticate");if(!n)return null;const r=new RegExp(`${t}=(?:"([^"]+)"|([^\\s,]+))`),a=n.match(r);return a?a[1]||a[2]:null}async function T(e,t,n=fetch){const r=await ie(e,"oauth-protected-resource",n,{protocolVersion:t?.protocolVersion,metadataUrl:t?.resourceMetadataUrl});if(!r||r.status===404)throw await r?.body?.cancel(),new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!r.ok)throw await r.body?.cancel(),new Error(`HTTP ${r.status} trying to load well-known OAuth protected resource metadata.`);return q.parse(await r.json())}async function R(e,t,n=fetch){try{return await n(e,{headers:t})}catch(r){if(r instanceof TypeError)return t?R(e,void 0,n):void 0;throw r}}function ae(e,t="",n={}){return t.endsWith("/")&&(t=t.slice(0,-1)),n.prependPathname?`${t}/.well-known/${e}`:`/.well-known/${e}${t}`}async function E(e,t,n=fetch){return await R(e,{"MCP-Protocol-Version":t},n)}function oe(e,t){return!e||e.status>=400&&e.status<500&&t!=="/"}async function ie(e,t,n,r){const a=new URL(e),i=r?.protocolVersion??L;let s;if(r?.metadataUrl)s=new URL(r.metadataUrl);else{const c=ae(t,a.pathname);s=new URL(c,r?.metadataServerUrl??a),s.search=a.search}let o=await E(s,i,n);if(!r?.metadataUrl&&oe(o,a.pathname)){const c=new URL(`/.well-known/${t}`,a);o=await E(c,i,n)}return o}function se(e){const t=typeof e=="string"?new URL(e):e,n=t.pathname!=="/",r=[];if(!n)return r.push({url:new URL("/.well-known/oauth-authorization-server",t.origin),type:"oauth"}),r.push({url:new URL("/.well-known/openid-configuration",t.origin),type:"oidc"}),r;let a=t.pathname;return a.endsWith("/")&&(a=a.slice(0,-1)),r.push({url:new URL(`/.well-known/oauth-authorization-server${a}`,t.origin),type:"oauth"}),r.push({url:new URL(`/.well-known/openid-configuration${a}`,t.origin),type:"oidc"}),r.push({url:new URL(`${a}/.well-known/openid-configuration`,t.origin),type:"oidc"}),r}async function P(e,{fetchFn:t=fetch,protocolVersion:n=L}={}){const r={"MCP-Protocol-Version":n,Accept:"application/json"},a=se(e);for(const{url:i,type:s}of a){const o=await R(i,r,t);if(o){if(!o.ok){if(await o.body?.cancel(),o.status>=400&&o.status<500)continue;throw new Error(`HTTP ${o.status} trying to load ${s==="oauth"?"OAuth":"OpenID provider"} metadata from ${i}`)}return s==="oauth"?V.parse(await o.json()):x.parse(await o.json())}}}async function ce(e,t){let n,r;try{n=await T(e,{resourceMetadataUrl:t?.resourceMetadataUrl},t?.fetchFn),n.authorization_servers&&n.authorization_servers.length>0&&(r=n.authorization_servers[0])}catch{}r||(r=String(new URL("/",e)));const a=await P(r,{fetchFn:t?.fetchFn});return{authorizationServerUrl:r,authorizationServerMetadata:a,resourceMetadata:n}}async function ue(e,{metadata:t,clientInformation:n,redirectUrl:r,scope:a,state:i,resource:s}){let o;if(t){if(o=new URL(t.authorization_endpoint),!t.response_types_supported.includes(p))throw new Error(`Incompatible auth server: does not support response type ${p}`);if(t.code_challenge_methods_supported&&!t.code_challenge_methods_supported.includes(_))throw new Error(`Incompatible auth server: does not support code challenge method ${_}`)}else o=new URL("/authorize",e);const c=await N(),u=c.code_verifier,h=c.code_challenge;return o.searchParams.set("response_type",p),o.searchParams.set("client_id",n.client_id),o.searchParams.set("code_challenge",h),o.searchParams.set("code_challenge_method",_),o.searchParams.set("redirect_uri",String(r)),i&&o.searchParams.set("state",i),a&&o.searchParams.set("scope",a),a?.includes("offline_access")&&o.searchParams.append("prompt","consent"),s&&o.searchParams.set("resource",s.href),{authorizationUrl:o,codeVerifier:u}}function b(e,t,n){return new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:t,redirect_uri:String(n)})}async function g(e,{metadata:t,tokenRequestParams:n,clientInformation:r,addClientAuthentication:a,resource:i,fetchFn:s}){const o=t?.token_endpoint?new URL(t.token_endpoint):new URL("/token",e),c=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(i&&n.set("resource",i.href),a)await a(c,n,o,t);else if(r){const h=t?.token_endpoint_auth_methods_supported??[],f=X(r,h);K(f,r,c,n)}const u=await(s??fetch)(o,{method:"POST",headers:c,body:n});if(!u.ok)throw await M(u);return F.parse(await u.json())}async function me(e,{metadata:t,clientInformation:n,authorizationCode:r,codeVerifier:a,redirectUri:i,resource:s,addClientAuthentication:o,fetchFn:c}){const u=b(r,a,i);return g(e,{metadata:t,tokenRequestParams:u,clientInformation:n,addClientAuthentication:o,resource:s,fetchFn:c})}async function le(e,{metadata:t,clientInformation:n,refreshToken:r,resource:a,addClientAuthentication:i,fetchFn:s}){const o=new URLSearchParams({grant_type:"refresh_token",refresh_token:r}),c=await g(e,{metadata:t,tokenRequestParams:o,clientInformation:n,addClientAuthentication:i,resource:a,fetchFn:s});return{refresh_token:r,...c}}async function he(e,t,{metadata:n,resource:r,authorizationCode:a,fetchFn:i}={}){const s=e.clientMetadata.scope;let o;if(e.prepareTokenRequest&&(o=await e.prepareTokenRequest(s)),!o){if(!a)throw new Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!e.redirectUrl)throw new Error("redirectUrl is required for authorization_code flow");const u=await e.codeVerifier();o=b(a,u,e.redirectUrl)}const c=await e.clientInformation();return g(t,{metadata:n,tokenRequestParams:o,clientInformation:c??void 0,addClientAuthentication:e.addClientAuthentication,resource:r,fetchFn:i})}async function de(e,{metadata:t,clientMetadata:n,scope:r,fetchFn:a}){let i;if(t){if(!t.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");i=new URL(t.registration_endpoint)}else i=new URL("/register",e);const s=await(a??fetch)(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,...r!==void 0?{scope:r}:{}})});if(!s.ok)throw await M(s);return j.parse(await s.json())}export{pe as U,P as a,_e as b,Ue as c,T as d,me as e};
|
|
1
|
+
import{aX as $,aY as v,aZ as W,a_ as H,a$ as D,b0 as y,b1 as V,b2 as x,b3 as L,b4 as q,b5 as j,b6 as N,b7 as B,b8 as Z,b9 as F}from"./index-D2dTzz5J.js";function G(e){const t=typeof e=="string"?new URL(e):new URL(e.href);return t.hash="",t}function J({requestedResource:e,configuredResource:t}){const n=typeof e=="string"?new URL(e):new URL(e.href),r=typeof t=="string"?new URL(t):new URL(t.href);if(n.origin!==r.origin||n.pathname.length<r.pathname.length)return!1;const a=n.pathname.endsWith("/")?n.pathname:n.pathname+"/",i=r.pathname.endsWith("/")?r.pathname:r.pathname+"/";return a.startsWith(i)}class pe extends Error{constructor(t){super(t??"Unauthorized")}}function Y(e){return["client_secret_basic","client_secret_post","none"].includes(e)}const p="code",_="S256";function X(e,t){const n=e.client_secret!==void 0;return"token_endpoint_auth_method"in e&&e.token_endpoint_auth_method&&Y(e.token_endpoint_auth_method)&&(t.length===0||t.includes(e.token_endpoint_auth_method))?e.token_endpoint_auth_method:t.length===0?n?"client_secret_basic":"none":n&&t.includes("client_secret_basic")?"client_secret_basic":n&&t.includes("client_secret_post")?"client_secret_post":t.includes("none")?"none":n?"client_secret_post":"none"}function K(e,t,n,r){const{client_id:a,client_secret:i}=t;switch(e){case"client_secret_basic":Q(a,i,n);return;case"client_secret_post":ee(a,i,r);return;case"none":te(a,r);return;default:throw new Error(`Unsupported client authentication method: ${e}`)}}function Q(e,t,n){if(!t)throw new Error("client_secret_basic authentication requires a client_secret");const r=btoa(`${e}:${t}`);n.set("Authorization",`Basic ${r}`)}function ee(e,t,n){n.set("client_id",e),t&&n.set("client_secret",t)}function te(e,t){t.set("client_id",e)}async function M(e){const t=e instanceof Response?e.status:void 0,n=e instanceof Response?await e.text():e;try{const r=B.parse(JSON.parse(n)),{error:a,error_description:i,error_uri:s}=r,o=Z[a]||y;return new o(i||"",s)}catch(r){const a=`${t?`HTTP ${t}: `:""}Invalid OAuth error response: ${r}. Raw body: ${n}`;return new y(a)}}async function _e(e,t){try{return await U(e,t)}catch(n){if(n instanceof $||n instanceof v)return await e.invalidateCredentials?.("all"),await U(e,t);if(n instanceof W)return await e.invalidateCredentials?.("tokens"),await U(e,t);throw n}}async function U(e,{serverUrl:t,authorizationCode:n,scope:r,resourceMetadataUrl:a,fetchFn:i}){const s=await e.discoveryState?.();let o,c,u,h=a;if(!h&&s?.resourceMetadataUrl&&(h=new URL(s.resourceMetadataUrl)),s?.authorizationServerUrl){if(c=s.authorizationServerUrl,o=s.resourceMetadata,u=s.authorizationServerMetadata??await P(c,{fetchFn:i}),!o)try{o=await T(t,{resourceMetadataUrl:h},i)}catch{}(u!==s.authorizationServerMetadata||o!==s.resourceMetadata)&&await e.saveDiscoveryState?.({authorizationServerUrl:String(c),resourceMetadataUrl:h?.toString(),resourceMetadata:o,authorizationServerMetadata:u})}else{const l=await ce(t,{resourceMetadataUrl:h,fetchFn:i});c=l.authorizationServerUrl,u=l.authorizationServerMetadata,o=l.resourceMetadata,await e.saveDiscoveryState?.({authorizationServerUrl:String(c),resourceMetadataUrl:h?.toString(),resourceMetadata:o,authorizationServerMetadata:u})}const f=await re(t,e,o),A=r||o?.scopes_supported?.join(" ")||e.clientMetadata.scope;let d=await Promise.resolve(e.clientInformation());if(!d){if(n!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");const l=u?.client_id_metadata_document_supported===!0,w=e.clientMetadataUrl;if(w&&!ne(w))throw new H(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${w}`);if(l&&w)d={client_id:w},await e.saveClientInformation?.(d);else{if(!e.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");const S=await de(c,{metadata:u,clientMetadata:e.clientMetadata,scope:A,fetchFn:i});await e.saveClientInformation(S),d=S}}const O=!e.redirectUrl;if(n!==void 0||O){const l=await he(e,c,{metadata:u,resource:f,authorizationCode:n,fetchFn:i});return await e.saveTokens(l),"AUTHORIZED"}const k=await e.tokens();if(k?.refresh_token)try{const l=await le(c,{metadata:u,clientInformation:d,refreshToken:k.refresh_token,resource:f,addClientAuthentication:e.addClientAuthentication,fetchFn:i});return await e.saveTokens(l),"AUTHORIZED"}catch(l){if(!(!(l instanceof D)||l instanceof y))throw l}const C=e.state?await e.state():void 0,{authorizationUrl:z,codeVerifier:I}=await ue(c,{metadata:u,clientInformation:d,state:C,redirectUrl:e.redirectUrl,scope:A,resource:f});return await e.saveCodeVerifier(I),await e.redirectToAuthorization(z),"REDIRECT"}function ne(e){if(!e)return!1;try{const t=new URL(e);return t.protocol==="https:"&&t.pathname!=="/"}catch{return!1}}async function re(e,t,n){const r=G(e);if(t.validateResourceURL)return await t.validateResourceURL(r,n?.resource);if(n){if(!J({requestedResource:r,configuredResource:n.resource}))throw new Error(`Protected resource ${n.resource} does not match expected ${r} (or origin)`);return new URL(n.resource)}}function Ue(e){const t=e.headers.get("WWW-Authenticate");if(!t)return{};const[n,r]=t.split(" ");if(n.toLowerCase()!=="bearer"||!r)return{};const a=m(e,"resource_metadata")||void 0;let i;if(a)try{i=new URL(a)}catch{}const s=m(e,"scope")||void 0,o=m(e,"error")||void 0;return{resourceMetadataUrl:i,scope:s,error:o}}function m(e,t){const n=e.headers.get("WWW-Authenticate");if(!n)return null;const r=new RegExp(`${t}=(?:"([^"]+)"|([^\\s,]+))`),a=n.match(r);return a?a[1]||a[2]:null}async function T(e,t,n=fetch){const r=await ie(e,"oauth-protected-resource",n,{protocolVersion:t?.protocolVersion,metadataUrl:t?.resourceMetadataUrl});if(!r||r.status===404)throw await r?.body?.cancel(),new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!r.ok)throw await r.body?.cancel(),new Error(`HTTP ${r.status} trying to load well-known OAuth protected resource metadata.`);return q.parse(await r.json())}async function R(e,t,n=fetch){try{return await n(e,{headers:t})}catch(r){if(r instanceof TypeError)return t?R(e,void 0,n):void 0;throw r}}function ae(e,t="",n={}){return t.endsWith("/")&&(t=t.slice(0,-1)),n.prependPathname?`${t}/.well-known/${e}`:`/.well-known/${e}${t}`}async function E(e,t,n=fetch){return await R(e,{"MCP-Protocol-Version":t},n)}function oe(e,t){return!e||e.status>=400&&e.status<500&&t!=="/"}async function ie(e,t,n,r){const a=new URL(e),i=r?.protocolVersion??L;let s;if(r?.metadataUrl)s=new URL(r.metadataUrl);else{const c=ae(t,a.pathname);s=new URL(c,r?.metadataServerUrl??a),s.search=a.search}let o=await E(s,i,n);if(!r?.metadataUrl&&oe(o,a.pathname)){const c=new URL(`/.well-known/${t}`,a);o=await E(c,i,n)}return o}function se(e){const t=typeof e=="string"?new URL(e):e,n=t.pathname!=="/",r=[];if(!n)return r.push({url:new URL("/.well-known/oauth-authorization-server",t.origin),type:"oauth"}),r.push({url:new URL("/.well-known/openid-configuration",t.origin),type:"oidc"}),r;let a=t.pathname;return a.endsWith("/")&&(a=a.slice(0,-1)),r.push({url:new URL(`/.well-known/oauth-authorization-server${a}`,t.origin),type:"oauth"}),r.push({url:new URL(`/.well-known/openid-configuration${a}`,t.origin),type:"oidc"}),r.push({url:new URL(`${a}/.well-known/openid-configuration`,t.origin),type:"oidc"}),r}async function P(e,{fetchFn:t=fetch,protocolVersion:n=L}={}){const r={"MCP-Protocol-Version":n,Accept:"application/json"},a=se(e);for(const{url:i,type:s}of a){const o=await R(i,r,t);if(o){if(!o.ok){if(await o.body?.cancel(),o.status>=400&&o.status<500)continue;throw new Error(`HTTP ${o.status} trying to load ${s==="oauth"?"OAuth":"OpenID provider"} metadata from ${i}`)}return s==="oauth"?V.parse(await o.json()):x.parse(await o.json())}}}async function ce(e,t){let n,r;try{n=await T(e,{resourceMetadataUrl:t?.resourceMetadataUrl},t?.fetchFn),n.authorization_servers&&n.authorization_servers.length>0&&(r=n.authorization_servers[0])}catch{}r||(r=String(new URL("/",e)));const a=await P(r,{fetchFn:t?.fetchFn});return{authorizationServerUrl:r,authorizationServerMetadata:a,resourceMetadata:n}}async function ue(e,{metadata:t,clientInformation:n,redirectUrl:r,scope:a,state:i,resource:s}){let o;if(t){if(o=new URL(t.authorization_endpoint),!t.response_types_supported.includes(p))throw new Error(`Incompatible auth server: does not support response type ${p}`);if(t.code_challenge_methods_supported&&!t.code_challenge_methods_supported.includes(_))throw new Error(`Incompatible auth server: does not support code challenge method ${_}`)}else o=new URL("/authorize",e);const c=await N(),u=c.code_verifier,h=c.code_challenge;return o.searchParams.set("response_type",p),o.searchParams.set("client_id",n.client_id),o.searchParams.set("code_challenge",h),o.searchParams.set("code_challenge_method",_),o.searchParams.set("redirect_uri",String(r)),i&&o.searchParams.set("state",i),a&&o.searchParams.set("scope",a),a?.includes("offline_access")&&o.searchParams.append("prompt","consent"),s&&o.searchParams.set("resource",s.href),{authorizationUrl:o,codeVerifier:u}}function b(e,t,n){return new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:t,redirect_uri:String(n)})}async function g(e,{metadata:t,tokenRequestParams:n,clientInformation:r,addClientAuthentication:a,resource:i,fetchFn:s}){const o=t?.token_endpoint?new URL(t.token_endpoint):new URL("/token",e),c=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(i&&n.set("resource",i.href),a)await a(c,n,o,t);else if(r){const h=t?.token_endpoint_auth_methods_supported??[],f=X(r,h);K(f,r,c,n)}const u=await(s??fetch)(o,{method:"POST",headers:c,body:n});if(!u.ok)throw await M(u);return F.parse(await u.json())}async function me(e,{metadata:t,clientInformation:n,authorizationCode:r,codeVerifier:a,redirectUri:i,resource:s,addClientAuthentication:o,fetchFn:c}){const u=b(r,a,i);return g(e,{metadata:t,tokenRequestParams:u,clientInformation:n,addClientAuthentication:o,resource:s,fetchFn:c})}async function le(e,{metadata:t,clientInformation:n,refreshToken:r,resource:a,addClientAuthentication:i,fetchFn:s}){const o=new URLSearchParams({grant_type:"refresh_token",refresh_token:r}),c=await g(e,{metadata:t,tokenRequestParams:o,clientInformation:n,addClientAuthentication:i,resource:a,fetchFn:s});return{refresh_token:r,...c}}async function he(e,t,{metadata:n,resource:r,authorizationCode:a,fetchFn:i}={}){const s=e.clientMetadata.scope;let o;if(e.prepareTokenRequest&&(o=await e.prepareTokenRequest(s)),!o){if(!a)throw new Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!e.redirectUrl)throw new Error("redirectUrl is required for authorization_code flow");const u=await e.codeVerifier();o=b(a,u,e.redirectUrl)}const c=await e.clientInformation();return g(t,{metadata:n,tokenRequestParams:o,clientInformation:c??void 0,addClientAuthentication:e.addClientAuthentication,resource:r,fetchFn:i})}async function de(e,{metadata:t,clientMetadata:n,scope:r,fetchFn:a}){let i;if(t){if(!t.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");i=new URL(t.registration_endpoint)}else i=new URL("/register",e);const s=await(a??fetch)(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,...r!==void 0?{scope:r}:{}})});if(!s.ok)throw await M(s);return j.parse(await s.json())}export{pe as U,P as a,_e as b,Ue as c,T as d,me as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as g,l as p,j as f}from"./index-
|
|
1
|
+
import{c as g,l as p,j as f}from"./index-D2dTzz5J.js";function w(b){const e=g.c(20),{children:m,visual:r,align:j}=b,d=(j===void 0?"center":j)==="fill",x=d?"min-h-[100dvh] md:min-h-screen":"min-h-screen";let l;e[0]!==x?(l=p("flex w-full",x),e[0]=x,e[1]=l):l=e[1];const h=d?"h-[100dvh] justify-start pt-4 pb-8 md:h-auto":"justify-center py-6";let t;e[2]!==h?(t=p("flex flex-1 flex-col items-center bg-sidebar px-6 md:justify-center md:px-10 md:py-10",h),e[2]=h,e[3]=t):t=e[3];const u=d&&"flex min-h-0 flex-1 flex-col md:block md:flex-none";let s;e[4]!==u?(s=p("w-full max-w-[440px]",u),e[4]=u,e[5]=s):s=e[5];let i;e[6]!==m||e[7]!==s?(i=f.jsx("div",{className:s,children:m}),e[6]=m,e[7]=s,e[8]=i):i=e[8];let n;e[9]!==t||e[10]!==i?(n=f.jsx("section",{className:t,children:i}),e[9]=t,e[10]=i,e[11]=n):n=e[11];let c;e[12]!==r?(c=r??f.jsx("img",{src:"/onboarding-placeholder.png",alt:"",className:"absolute inset-0 h-full w-full object-cover"}),e[12]=r,e[13]=c):c=e[13];let a;e[14]!==c?(a=f.jsx("aside",{className:"relative hidden flex-1 overflow-hidden bg-muted md:flex",children:c}),e[14]=c,e[15]=a):a=e[15];let o;return e[16]!==a||e[17]!==l||e[18]!==n?(o=f.jsxs("main",{className:l,children:[n,a]}),e[16]=a,e[17]=l,e[18]=n,e[19]=o):o=e[19],o}export{w as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./index-
|
|
1
|
+
import"./index-D2dTzz5J.js";import{i as u,a as p}from"./mcp-oauth-ClbbuLRW.js";async function k({connectionId:n,orgId:s,orgSlug:o,persistFallback:r}){const c=new URL(`/api/${o}/mcp/${n}`,window.location.origin),i=await u({url:c.href,token:null,orgId:s});if(!i.supportsOAuth||i.isAuthenticated)return{ran:!1,ok:!0,error:null};const{token:t,tokenInfo:e,error:a}=await p({connectionId:n,orgSlug:o,scope:"offline_access"});if(a||!t)return{ran:!0,ok:!1,error:a??"no token received"};if(e)try{(await fetch(`/api/${o}/connections/${n}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:e.accessToken,refreshToken:e.refreshToken,expiresIn:e.expiresIn,scope:e.scope,clientId:e.clientId,clientSecret:e.clientSecret,tokenEndpoint:e.tokenEndpoint})})).ok||await r(t)}catch{await r(t)}else await r(t);return{ran:!0,ok:!0,error:null}}export{k as a};
|
package/dist/client/assets/{automation-list-row-BNT7qQVd.js → automation-list-row-BUEOdqlU.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as V,b as q,r as U,l as W,j as t,F as X,B as Y,I as Z,H as ee,G as te}from"./index-
|
|
1
|
+
import{c as V,b as q,r as U,l as W,j as t,F as X,B as Y,I as Z,H as ee,G as te}from"./index-D2dTzz5J.js";import{A as se,a as ie,b as ne,c as oe,g as ae,d as re,e as le,f as ce}from"./alert-dialog-SIUpU6uq.js";import{A as me,J as ue}from"./agent-icon-CR4t5Gu3.js";import{i as de}from"./DotsVertical-vt_3gkoG.js";import{s as fe}from"./Trash01-DFbco4Cc.js";import{i as ge}from"./ZoomOut-D59vA8XW.js";import{a as xe}from"./repository-binding-rygwFtUU.js";import{a as pe}from"./use-automations-Dhxqirb4.js";function Ce(c){const e=V.c(80),{automation:s,showAgent:a,onClick:n}=c,i=q(),{remove:o}=pe(),[l,K]=U.useState(!1),r=xe(a?s.virtual_mcp_id:void 0);let M;e[0]!==s.id||e[1]!==o?(M=()=>{o.mutate(s.id),K(!1)},e[0]=s.id,e[1]=o,e[2]=M):M=e[2];const O=M;let S;e[3]!==n?(S=m=>{m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),n())},e[3]=n,e[4]=S):S=e[4];const H=S,G=s.active&&s.trigger_count>0?"bg-success":"bg-muted-foreground/40";let u;e[5]!==G?(u=W("inline-block size-2 rounded-full shrink-0",G),e[5]=G,e[6]=u):u=e[6];const J=s.active&&s.trigger_count>0?"automations.automationListRow.ariaActive":s.active?"automations.automationListRow.ariaNoTriggers":"automations.automationListRow.ariaPaused";let d;e[7]!==i||e[8]!==J?(d=i(J),e[7]=i,e[8]=J,e[9]=d):d=e[9];let f;e[10]!==u||e[11]!==d?(f=t.jsx("span",{className:u,"aria-label":d}),e[10]=u,e[11]=d,e[12]=f):f=e[12];let g;e[13]!==r?.icon||e[14]!==r?.title||e[15]!==s.name||e[16]!==a?(g=a&&t.jsx(me,{icon:r?.icon??null,name:r?.title??s.name,size:"xs",className:"shrink-0"}),e[13]=r?.icon,e[14]=r?.title,e[15]=s.name,e[16]=a,e[17]=g):g=e[17];let x;e[18]!==s.name?(x=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:s.name}),e[18]=s.name,e[19]=x):x=e[19];let p;e[20]!==r||e[21]!==a?(p=a&&r&&t.jsxs("span",{className:"text-xs text-muted-foreground truncate",children:["· ",r.title]}),e[20]=r,e[21]=a,e[22]=p):p=e[22];let h;e[23]!==p||e[24]!==x?(h=t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[x,p]}),e[23]=p,e[24]=x,e[25]=h):h=e[25];let j;e[26]!==s.nearest_next_run_at||e[27]!==s.trigger_count?(j=t.jsx(we,{triggerCount:s.trigger_count,nextRunAt:s.nearest_next_run_at}),e[26]=s.nearest_next_run_at,e[27]=s.trigger_count,e[28]=j):j=e[28];let w;e[29]!==h||e[30]!==j?(w=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-0.5",children:[h,j]}),e[29]=h,e[30]=j,e[31]=w):w=e[31];let E;e[32]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(X,{asChild:!0,children:t.jsx(Y,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 opacity-0 group-hover:opacity-100 data-[state=open]:opacity-100 transition-opacity",children:t.jsx(de,{size:16})})}),e[32]=E):E=e[32];let $,B;e[33]===Symbol.for("react.memo_cache_sentinel")?($=m=>{m.stopPropagation(),K(!0)},B=t.jsx(fe,{size:16}),e[33]=$,e[34]=B):($=e[33],B=e[34]);let v;e[35]!==i?(v=i("automations.automationListRow.delete"),e[35]=i,e[36]=v):v=e[36];let _;e[37]!==v?(_=t.jsx("div",{onClick:je,onKeyDown:he,role:"presentation",className:"shrink-0",children:t.jsxs(Z,{children:[E,t.jsx(ee,{align:"end",children:t.jsxs(te,{variant:"destructive",onClick:$,children:[B,v]})})]})}),e[37]=v,e[38]=_):_=e[38];let A;e[39]!==H||e[40]!==n||e[41]!==w||e[42]!==_||e[43]!==f||e[44]!==g?(A=t.jsxs("div",{role:"button",tabIndex:0,onClick:n,onKeyDown:H,className:"group w-full flex items-center gap-3 px-4 py-3 border-b border-border text-left hover:bg-muted/50 transition-colors cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[f,g,w,_]}),e[39]=H,e[40]=n,e[41]=w,e[42]=_,e[43]=f,e[44]=g,e[45]=A):A=e[45];let b;e[46]!==i?(b=i("automations.automationListRow.deleteTitle"),e[46]=i,e[47]=b):b=e[47];let D;e[48]!==b?(D=t.jsx(se,{children:b}),e[48]=b,e[49]=D):D=e[49];let N;e[50]!==s.name||e[51]!==i?(N=i("automations.automationListRow.deleteDescription",{name:s.name}),e[50]=s.name,e[51]=i,e[52]=N):N=e[52];let R;e[53]!==N?(R=t.jsx(ie,{children:N}),e[53]=N,e[54]=R):R=e[54];let y;e[55]!==D||e[56]!==R?(y=t.jsxs(ne,{children:[D,R]}),e[55]=D,e[56]=R,e[57]=y):y=e[57];let C;e[58]!==i?(C=i("automations.automationListRow.cancel"),e[58]=i,e[59]=C):C=e[59];let L;e[60]!==C?(L=t.jsx(oe,{children:C}),e[60]=C,e[61]=L):L=e[61];const Q=o.isPending;let k;e[62]!==i?(k=i("automations.automationListRow.deleteButton"),e[62]=i,e[63]=k):k=e[63];let P;e[64]!==O||e[65]!==o.isPending||e[66]!==k?(P=t.jsx(ae,{onClick:O,disabled:Q,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:k}),e[64]=O,e[65]=o.isPending,e[66]=k,e[67]=P):P=e[67];let T;e[68]!==L||e[69]!==P?(T=t.jsxs(re,{children:[L,P]}),e[68]=L,e[69]=P,e[70]=T):T=e[70];let z;e[71]!==y||e[72]!==T?(z=t.jsxs(le,{children:[y,T]}),e[71]=y,e[72]=T,e[73]=z):z=e[73];let F;e[74]!==l||e[75]!==z?(F=t.jsx(ce,{open:l,onOpenChange:K,children:z}),e[74]=l,e[75]=z,e[76]=F):F=e[76];let I;return e[77]!==A||e[78]!==F?(I=t.jsxs(t.Fragment,{children:[A,F]}),e[77]=A,e[78]=F,e[79]=I):I=e[79],I}function he(c){return c.stopPropagation()}function je(c){return c.stopPropagation()}function we(c){const e=V.c(8),{triggerCount:s,nextRunAt:a}=c,n=q();if(s===0){let o;e[0]!==n?(o=n("automations.automationListRow.noTriggers"),e[0]=n,e[1]=o):o=e[1];let l;return e[2]!==o?(l=t.jsx("span",{className:"text-xs text-muted-foreground",children:o}),e[2]=o,e[3]=l):l=e[3],l}let i;return e[4]!==a||e[5]!==n||e[6]!==s?(i=t.jsx("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground min-w-0",children:a?t.jsxs(t.Fragment,{children:[t.jsx(ue,{size:12,className:"shrink-0"}),t.jsx("span",{className:"truncate",children:n("automations.automationListRow.nextRun",{date:new Date(a).toLocaleString()})})]}):t.jsxs(t.Fragment,{children:[t.jsx(ge,{size:12,className:"shrink-0"}),t.jsx("span",{className:"truncate",children:n("automations.automationListRow.triggers",{count:s})})]})}),e[4]=a,e[5]=n,e[6]=s,e[7]=i):i=e[7],i}export{Ce as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as z,r as lt,b as W,X as it,z as rt,a2 as ct,K as tt,j as s,l as ut,m as dt,e_ as mt}from"./index-CdxHQZta.js";import{u as ft}from"./useInfiniteQuery-BlfFwct6.js";import{u as xt}from"./use-connection-DPn99Ne3.js";import{u as pt}from"./use-mcp-client-CmW-CbmL.js";import{b as gt}from"./repository-binding-JChFqkvS.js";import{b as ht,a as Rt}from"./sheet-D6pV4Eay.js";import{e as jt,a as Nt,b as st,T as G,d as bt,c as V}from"./table-9HMGEyIJ.js";import{E as et}from"./empty-state-d5T0jvmw.js";import{u as Tt}from"./use-infinite-scroll-BwyMk9UX.js";import{a as St}from"./use-members-zd75VUjT.js";import{g as vt}from"./task-status-BKUG0suF.js";import{e as wt}from"./use-automations-DW9RBnQP.js";import{T as Ct,f as at,a as nt}from"./thread-sheet-body-BzJujnLG.js";function It(c){const t=z.c(15),[i,r]=lt.useState(null);let e;t[0]!==c||t[1]!==i?(e=i!==null?c.findIndex(u=>u.id===i):-1,t[0]=c,t[1]=i,t[2]=e):e=t[2];const a=e,o=a!==-1?c[a]:null,n=o!==null;let l,w;t[3]===Symbol.for("react.memo_cache_sentinel")?(l=u=>r(u),w=()=>r(null),t[3]=l,t[4]=w):(l=t[3],w=t[4]);let f,x;t[5]!==a||t[6]!==c?(f=()=>{const u=c[a-1];a>0&&u&&r(u.id)},x=()=>{const u=c[a+1];a!==-1&&u&&r(u.id)},t[5]=a,t[6]=c,t[7]=f,t[8]=x):(f=t[7],x=t[8]);let m;return t[9]!==a||t[10]!==o||t[11]!==n||t[12]!==f||t[13]!==x?(m={selected:o,index:a,isOpen:n,select:l,close:w,prev:f,next:x},t[9]=a,t[10]=o,t[11]=n,t[12]=f,t[13]=x,t[14]=m):m=t[14],m}const Z=50;function X(c){const t=z.c(10),{title:i,value:r,subtitle:e}=c;let a;t[0]!==i?(a=s.jsx("span",{className:"text-sm text-foreground/70",children:i}),t[0]=i,t[1]=a):a=t[1];let o;t[2]!==r?(o=s.jsx("span",{className:"text-3xl font-normal tabular-nums",children:r}),t[2]=r,t[3]=o):o=t[3];let n;t[4]!==e?(n=e&&s.jsx("span",{className:"text-xs text-muted-foreground",children:e}),t[4]=e,t[5]=n):n=t[5];let l;return t[6]!==a||t[7]!==o||t[8]!==n?(l=s.jsxs(mt,{className:"pt-4 px-4 pb-5 gap-1",children:[a,o,n]}),t[6]=a,t[7]=o,t[8]=n,t[9]=l):l=t[9],l}function kt(c){const t=z.c(45),{automationId:i,range:r}=c,e=W(),{data:a,isLoading:o}=wt(i,r),n=a?.runs,l=a?.usage;let w;t[0]!==n?(w=n&&n.total>0?`${Math.round(n.completed/n.total*100)}%`:"—",t[0]=n,t[1]=w):w=t[1];const f=w;let x;t[2]!==e||t[3]!==l?(x=l&&l.truncated?e("automations.automationRuns.lastRunsSubtitle",{count:l.sampledRuns}):void 0,t[2]=e,t[3]=l,t[4]=x):x=t[4];const m=x;let u;t[5]!==e?(u=e("automations.automationRuns.runsTitle"),t[5]=e,t[6]=u):u=t[6];let g;t[7]!==o||t[8]!==n?.total?(g=o?"…":n?.total.toLocaleString()??"0",t[7]=o,t[8]=n?.total,t[9]=g):g=t[9];let h;t[10]!==n||t[11]!==e?(h=n?`${n.completed} ${e("automations.automationRuns.ok")} · ${n.failed} ${e("automations.automationRuns.failed")}${n.inProgress>0?` · ${n.inProgress} ${e("automations.automationRuns.running")}`:""}`:void 0,t[10]=n,t[11]=e,t[12]=h):h=t[12];let R;t[13]!==u||t[14]!==g||t[15]!==h?(R=s.jsx(X,{title:u,value:g,subtitle:h}),t[13]=u,t[14]=g,t[15]=h,t[16]=R):R=t[16];let T;t[17]!==e?(T=e("automations.automationRuns.successRateTitle"),t[17]=e,t[18]=T):T=t[18];const k=o?"…":f;let C;t[19]!==T||t[20]!==k?(C=s.jsx(X,{title:T,value:k}),t[19]=T,t[20]=k,t[21]=C):C=t[21];let S;t[22]!==e?(S=e("automations.automationRuns.tokensTitle"),t[22]=e,t[23]=S):S=t[23];let p;t[24]!==o||t[25]!==l?.totalTokens?(p=o?"…":at(l?.totalTokens??0),t[24]=o,t[25]=l?.totalTokens,t[26]=p):p=t[26];let I;t[27]!==S||t[28]!==p||t[29]!==m?(I=s.jsx(X,{title:S,value:p,subtitle:m}),t[27]=S,t[28]=p,t[29]=m,t[30]=I):I=t[30];let d;t[31]!==e?(d=e("automations.automationRuns.costTitle"),t[31]=e,t[32]=d):d=t[32];let j;t[33]!==o||t[34]!==l?(j=o?"…":l&&l.costUsd>0?nt(l.costUsd):"—",t[33]=o,t[34]=l,t[35]=j):j=t[35];let v;t[36]!==d||t[37]!==j||t[38]!==m?(v=s.jsx(X,{title:d,value:j,subtitle:m}),t[36]=d,t[37]=j,t[38]=m,t[39]=v):v=t[39];let N;return t[40]!==I||t[41]!==v||t[42]!==R||t[43]!==C?(N=s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[R,C,I,v]}),t[40]=I,t[41]=v,t[42]=R,t[43]=C,t[44]=N):N=t[44],N}function yt(c){const t=z.c(57),{run:i,usage:r,onClick:e,lastRowRef:a}=c,o=W();let n,l;if(t[0]!==i.created_at){const P=new Date(i.created_at);n=P.toLocaleDateString("en-US",{month:"short",day:"numeric"}),l=P.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),t[0]=i.created_at,t[1]=n,t[2]=l}else n=t[1],l=t[2];const w=l;let f,x,m,u,g,h,R,T,k,C,S;if(t[3]!==a||t[4]!==e||t[5]!==i.status||t[6]!==i.title||t[7]!==o){const P=vt(i.status),U=P.icon;x=st,k=a,C="h-14 cursor-pointer hover:bg-muted/40 transition-colors border-b-0",S=e,t[19]!==i.title?(m=s.jsx(V,{className:"min-w-0 pr-2 pl-4 md:pr-4",children:s.jsx("div",{className:"font-medium text-foreground truncate",children:i.title})}),t[19]=i.title,t[20]=m):m=t[20],f=V,T="w-28 px-3",h="flex items-center gap-1.5",R=s.jsx(U,{size:14,className:P.iconClassName}),u=ut("text-sm",P.labelColor),g=o(P.labelKey),t[3]=a,t[4]=e,t[5]=i.status,t[6]=i.title,t[7]=o,t[8]=f,t[9]=x,t[10]=m,t[11]=u,t[12]=g,t[13]=h,t[14]=R,t[15]=T,t[16]=k,t[17]=C,t[18]=S}else f=t[8],x=t[9],m=t[10],u=t[11],g=t[12],h=t[13],R=t[14],T=t[15],k=t[16],C=t[17],S=t[18];let p;t[21]!==u||t[22]!==g?(p=s.jsx("span",{className:u,children:g}),t[21]=u,t[22]=g,t[23]=p):p=t[23];let I;t[24]!==p||t[25]!==h||t[26]!==R?(I=s.jsxs("div",{className:h,children:[R,p]}),t[24]=p,t[25]=h,t[26]=R,t[27]=I):I=t[27];let d;t[28]!==f||t[29]!==I||t[30]!==T?(d=s.jsx(f,{className:T,children:I}),t[28]=f,t[29]=I,t[30]=T,t[31]=d):d=t[31];let j;t[32]!==r?(j=r?at(r.totalTokens):"—",t[32]=r,t[33]=j):j=t[33];let v;t[34]!==j?(v=s.jsx(V,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:j}),t[34]=j,t[35]=v):v=t[35];let N;t[36]!==r?(N=r&&r.costUsd>0?nt(r.costUsd):"—",t[36]=r,t[37]=N):N=t[37];let y;t[38]!==N?(y=s.jsx(V,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:N}),t[38]=N,t[39]=y):y=t[39];let D;t[40]!==n?(D=s.jsx("div",{children:n}),t[40]=n,t[41]=D):D=t[41];let _;t[42]!==w?(_=s.jsx("div",{className:"text-xs text-muted-foreground/60",children:w}),t[42]=w,t[43]=_):_=t[43];let E;t[44]!==D||t[45]!==_?(E=s.jsxs(V,{className:"w-32 px-3 pr-5 text-muted-foreground",children:[D,_]}),t[44]=D,t[45]=_,t[46]=E):E=t[46];let $;return t[47]!==x||t[48]!==m||t[49]!==d||t[50]!==v||t[51]!==y||t[52]!==E||t[53]!==k||t[54]!==C||t[55]!==S?($=s.jsxs(x,{ref:k,className:C,onClick:S,children:[m,d,v,y,E]}),t[47]=x,t[48]=m,t[49]=d,t[50]=v,t[51]=y,t[52]=E,t[53]=k,t[54]=C,t[55]=S,t[56]=$):$=t[56],$}function Bt(c){const t=z.c(73),{automationId:i,triggerIds:r,range:e}=c,a=W(),{org:o,locator:n}=it();let l;t[0]!==o.id||t[1]!==o.slug?(l={connectionId:rt,orgId:o.id,orgSlug:o.slug},t[0]=o.id,t[1]=o.slug,t[2]=l):l=t[2];const w=pt(l),f=ct(),x=xt(),m=gt(),{data:u}=St(),g=r.length>0;let h;t[3]!==i||t[4]!==o.id||t[5]!==r?(h=tt.automationRuns(o.id,i,r),t[3]=i,t[4]=o.id,t[5]=r,t[6]=h):h=t[6];let R;t[7]!==f||t[8]!==r?(R=async M=>{const{pageParam:J}=M,ot=J===void 0?0:J;return await f.call("COLLECTION_THREADS_LIST",{limit:Z,offset:ot,where:{trigger_ids:r}})},t[7]=f,t[8]=r,t[9]=R):R=t[9];let T;t[10]!==g||t[11]!==h||t[12]!==R?(T={queryKey:h,queryFn:R,initialPageParam:0,getNextPageParam:Et,enabled:g,staleTime:3e4},t[10]=g,t[11]=h,t[12]=R,t[13]=T):T=t[13];const{data:k,fetchNextPage:C,hasNextPage:S,isFetchingNextPage:p,isLoading:I}=ft(T);let d,j,v,N;t[14]!==k?.pages||t[15]!==n||t[16]!==e?(d=(k?.pages??[]).flatMap(Dt),N=d.map(Pt),v=dt,j=tt.monitoringThreadUsage(n,JSON.stringify({ids:N,...e})),t[14]=k?.pages,t[15]=n,t[16]=e,t[17]=d,t[18]=j,t[19]=v,t[20]=N):(d=t[17],j=t[18],v=t[19],N=t[20]);let y;t[21]!==e||t[22]!==f||t[23]!==N?(y=async()=>await f.call("MONITORING_THREAD_USAGE",{threadIds:N,...e.startDate?{startDate:e.startDate}:{},...e.endDate?{endDate:e.endDate}:{}}),t[21]=e,t[22]=f,t[23]=N,t[24]=y):y=t[24];const D=N.length>0;let _;t[25]!==j||t[26]!==y||t[27]!==D?(_={queryKey:j,queryFn:y,enabled:D,staleTime:3e4},t[25]=j,t[26]=y,t[27]=D,t[28]=_):_=t[28];const{data:E}=v(_);let $;t[29]!==E?.items?($=new Map((E?.items??[]).map(_t)),t[29]=E?.items,t[30]=$):$=t[30];const P=$;let U;t[31]!==C||t[32]!==S||t[33]!==p?(U=()=>{S&&!p&&C()},t[31]=C,t[32]=S,t[33]=p,t[34]=U):U=t[34];const Y=Tt(U,S??!1,p),b=It(d),B=b.selected;let L;t[35]!==i||t[36]!==e?(L=s.jsx(kt,{automationId:i,range:e}),t[35]=i,t[36]=e,t[37]=L):L=t[37];let O;t[38]!==g||t[39]!==I||t[40]!==Y||t[41]!==d||t[42]!==b||t[43]!==a||t[44]!==P?(O=g?I?s.jsx("div",{className:"py-16 text-center text-sm text-muted-foreground",children:a("automations.automationRuns.loadingRuns")}):d.length===0?s.jsx("div",{className:"py-16",children:s.jsx(et,{title:a("automations.automationRuns.noRunsTitle"),description:a("automations.automationRuns.noRunsDescription")})}):s.jsxs(jt,{className:"w-full border-collapse",children:[s.jsx(Nt,{className:"border-b-0",children:s.jsxs(st,{className:"h-9 hover:bg-transparent border-b border-border",children:[s.jsx(G,{className:"pl-4 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:a("automations.automationRuns.runHeader")}),s.jsx(G,{className:"w-28 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:a("automations.automationRuns.statusHeader")}),s.jsx(G,{className:"w-24 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide text-right",children:a("automations.automationRuns.tokensHeader")}),s.jsx(G,{className:"w-24 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide text-right",children:a("automations.automationRuns.costHeader")}),s.jsx(G,{className:"w-32 px-3 pr-5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:a("automations.automationRuns.startedHeader")})]})}),s.jsx(bt,{children:d.map((M,J)=>s.jsx(yt,{run:M,usage:P.get(M.id),onClick:()=>b.select(M.id),lastRowRef:J===d.length-1?Y:void 0},M.id))})]}):s.jsx("div",{className:"py-16",children:s.jsx(et,{title:a("automations.automationRuns.noStartersTitle"),description:a("automations.automationRuns.noStartersDescription")})}),t[38]=g,t[39]=I,t[40]=Y,t[41]=d,t[42]=b,t[43]=a,t[44]=P,t[45]=O):O=t[45];let A;t[46]!==p||t[47]!==a?(A=p&&s.jsx("div",{className:"py-4 text-center text-sm text-muted-foreground",children:a("automations.automationRuns.loadingMore")}),t[46]=p,t[47]=a,t[48]=A):A=t[48];let H;t[49]!==b?(H=M=>{M||b.close()},t[49]=b,t[50]=H):H=t[50];let K;t[51]!==x||t[52]!==m||t[53]!==w||t[54]!==n||t[55]!==u||t[56]!==d||t[57]!==B||t[58]!==b.index||t[59]!==b.next||t[60]!==b.prev?(K=B&&s.jsx(Ct,{thread:B,client:w,locator:n,connections:x,virtualMcps:m,members:u,nav:{index:b.index,total:d.length,onPrev:b.prev,onNext:b.next}}),t[51]=x,t[52]=m,t[53]=w,t[54]=n,t[55]=u,t[56]=d,t[57]=B,t[58]=b.index,t[59]=b.next,t[60]=b.prev,t[61]=K):K=t[61];let q;t[62]!==K?(q=s.jsx(Rt,{className:"sm:max-w-2xl flex flex-col p-0 gap-0",children:K}),t[62]=K,t[63]=q):q=t[63];let F;t[64]!==b.isOpen||t[65]!==H||t[66]!==q?(F=s.jsx(ht,{open:b.isOpen,onOpenChange:H,children:q}),t[64]=b.isOpen,t[65]=H,t[66]=q,t[67]=F):F=t[67];let Q;return t[68]!==L||t[69]!==O||t[70]!==A||t[71]!==F?(Q=s.jsxs("div",{className:"flex flex-col gap-5",children:[L,O,A,F]}),t[68]=L,t[69]=O,t[70]=A,t[71]=F,t[72]=Q):Q=t[72],Q}function _t(c){return[c.threadId,{calls:c.calls,inputTokens:c.inputTokens,outputTokens:c.outputTokens,totalTokens:c.totalTokens,costUsd:c.costUsd}]}function Pt(c){return c.id}function Dt(c){return c.items??[]}function Et(c,t){const i=c,r=t;if(!((i?.items?.length??0)<Z))return r.length*Z}export{Bt as A,It as u};
|
|
1
|
+
import{c as z,r as lt,b as W,X as it,z as rt,a2 as ct,K as tt,j as s,l as ut,m as dt,e_ as mt}from"./index-D2dTzz5J.js";import{u as ft}from"./useInfiniteQuery-YfMLN54l.js";import{u as xt}from"./use-connection-CNR2pmSM.js";import{u as pt}from"./use-mcp-client-BGBcJfvU.js";import{b as gt}from"./repository-binding-rygwFtUU.js";import{b as ht,a as Rt}from"./sheet-DYd28Fb7.js";import{e as jt,a as Nt,b as st,T as G,d as bt,c as V}from"./table-e3ZyDjwe.js";import{E as et}from"./empty-state-B_1GXkEg.js";import{u as Tt}from"./use-infinite-scroll-fz45Cy3c.js";import{a as St}from"./use-members-BFzPg9DY.js";import{g as vt}from"./task-status-q2zy99n1.js";import{e as wt}from"./use-automations-Dhxqirb4.js";import{T as Ct,f as at,a as nt}from"./thread-sheet-body-Ceh-gQcv.js";function It(c){const t=z.c(15),[i,r]=lt.useState(null);let e;t[0]!==c||t[1]!==i?(e=i!==null?c.findIndex(u=>u.id===i):-1,t[0]=c,t[1]=i,t[2]=e):e=t[2];const a=e,o=a!==-1?c[a]:null,n=o!==null;let l,w;t[3]===Symbol.for("react.memo_cache_sentinel")?(l=u=>r(u),w=()=>r(null),t[3]=l,t[4]=w):(l=t[3],w=t[4]);let f,x;t[5]!==a||t[6]!==c?(f=()=>{const u=c[a-1];a>0&&u&&r(u.id)},x=()=>{const u=c[a+1];a!==-1&&u&&r(u.id)},t[5]=a,t[6]=c,t[7]=f,t[8]=x):(f=t[7],x=t[8]);let m;return t[9]!==a||t[10]!==o||t[11]!==n||t[12]!==f||t[13]!==x?(m={selected:o,index:a,isOpen:n,select:l,close:w,prev:f,next:x},t[9]=a,t[10]=o,t[11]=n,t[12]=f,t[13]=x,t[14]=m):m=t[14],m}const Z=50;function X(c){const t=z.c(10),{title:i,value:r,subtitle:e}=c;let a;t[0]!==i?(a=s.jsx("span",{className:"text-sm text-foreground/70",children:i}),t[0]=i,t[1]=a):a=t[1];let o;t[2]!==r?(o=s.jsx("span",{className:"text-3xl font-normal tabular-nums",children:r}),t[2]=r,t[3]=o):o=t[3];let n;t[4]!==e?(n=e&&s.jsx("span",{className:"text-xs text-muted-foreground",children:e}),t[4]=e,t[5]=n):n=t[5];let l;return t[6]!==a||t[7]!==o||t[8]!==n?(l=s.jsxs(mt,{className:"pt-4 px-4 pb-5 gap-1",children:[a,o,n]}),t[6]=a,t[7]=o,t[8]=n,t[9]=l):l=t[9],l}function kt(c){const t=z.c(45),{automationId:i,range:r}=c,e=W(),{data:a,isLoading:o}=wt(i,r),n=a?.runs,l=a?.usage;let w;t[0]!==n?(w=n&&n.total>0?`${Math.round(n.completed/n.total*100)}%`:"—",t[0]=n,t[1]=w):w=t[1];const f=w;let x;t[2]!==e||t[3]!==l?(x=l&&l.truncated?e("automations.automationRuns.lastRunsSubtitle",{count:l.sampledRuns}):void 0,t[2]=e,t[3]=l,t[4]=x):x=t[4];const m=x;let u;t[5]!==e?(u=e("automations.automationRuns.runsTitle"),t[5]=e,t[6]=u):u=t[6];let g;t[7]!==o||t[8]!==n?.total?(g=o?"…":n?.total.toLocaleString()??"0",t[7]=o,t[8]=n?.total,t[9]=g):g=t[9];let h;t[10]!==n||t[11]!==e?(h=n?`${n.completed} ${e("automations.automationRuns.ok")} · ${n.failed} ${e("automations.automationRuns.failed")}${n.inProgress>0?` · ${n.inProgress} ${e("automations.automationRuns.running")}`:""}`:void 0,t[10]=n,t[11]=e,t[12]=h):h=t[12];let R;t[13]!==u||t[14]!==g||t[15]!==h?(R=s.jsx(X,{title:u,value:g,subtitle:h}),t[13]=u,t[14]=g,t[15]=h,t[16]=R):R=t[16];let T;t[17]!==e?(T=e("automations.automationRuns.successRateTitle"),t[17]=e,t[18]=T):T=t[18];const k=o?"…":f;let C;t[19]!==T||t[20]!==k?(C=s.jsx(X,{title:T,value:k}),t[19]=T,t[20]=k,t[21]=C):C=t[21];let S;t[22]!==e?(S=e("automations.automationRuns.tokensTitle"),t[22]=e,t[23]=S):S=t[23];let p;t[24]!==o||t[25]!==l?.totalTokens?(p=o?"…":at(l?.totalTokens??0),t[24]=o,t[25]=l?.totalTokens,t[26]=p):p=t[26];let I;t[27]!==S||t[28]!==p||t[29]!==m?(I=s.jsx(X,{title:S,value:p,subtitle:m}),t[27]=S,t[28]=p,t[29]=m,t[30]=I):I=t[30];let d;t[31]!==e?(d=e("automations.automationRuns.costTitle"),t[31]=e,t[32]=d):d=t[32];let j;t[33]!==o||t[34]!==l?(j=o?"…":l&&l.costUsd>0?nt(l.costUsd):"—",t[33]=o,t[34]=l,t[35]=j):j=t[35];let v;t[36]!==d||t[37]!==j||t[38]!==m?(v=s.jsx(X,{title:d,value:j,subtitle:m}),t[36]=d,t[37]=j,t[38]=m,t[39]=v):v=t[39];let N;return t[40]!==I||t[41]!==v||t[42]!==R||t[43]!==C?(N=s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[R,C,I,v]}),t[40]=I,t[41]=v,t[42]=R,t[43]=C,t[44]=N):N=t[44],N}function yt(c){const t=z.c(57),{run:i,usage:r,onClick:e,lastRowRef:a}=c,o=W();let n,l;if(t[0]!==i.created_at){const P=new Date(i.created_at);n=P.toLocaleDateString("en-US",{month:"short",day:"numeric"}),l=P.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),t[0]=i.created_at,t[1]=n,t[2]=l}else n=t[1],l=t[2];const w=l;let f,x,m,u,g,h,R,T,k,C,S;if(t[3]!==a||t[4]!==e||t[5]!==i.status||t[6]!==i.title||t[7]!==o){const P=vt(i.status),U=P.icon;x=st,k=a,C="h-14 cursor-pointer hover:bg-muted/40 transition-colors border-b-0",S=e,t[19]!==i.title?(m=s.jsx(V,{className:"min-w-0 pr-2 pl-4 md:pr-4",children:s.jsx("div",{className:"font-medium text-foreground truncate",children:i.title})}),t[19]=i.title,t[20]=m):m=t[20],f=V,T="w-28 px-3",h="flex items-center gap-1.5",R=s.jsx(U,{size:14,className:P.iconClassName}),u=ut("text-sm",P.labelColor),g=o(P.labelKey),t[3]=a,t[4]=e,t[5]=i.status,t[6]=i.title,t[7]=o,t[8]=f,t[9]=x,t[10]=m,t[11]=u,t[12]=g,t[13]=h,t[14]=R,t[15]=T,t[16]=k,t[17]=C,t[18]=S}else f=t[8],x=t[9],m=t[10],u=t[11],g=t[12],h=t[13],R=t[14],T=t[15],k=t[16],C=t[17],S=t[18];let p;t[21]!==u||t[22]!==g?(p=s.jsx("span",{className:u,children:g}),t[21]=u,t[22]=g,t[23]=p):p=t[23];let I;t[24]!==p||t[25]!==h||t[26]!==R?(I=s.jsxs("div",{className:h,children:[R,p]}),t[24]=p,t[25]=h,t[26]=R,t[27]=I):I=t[27];let d;t[28]!==f||t[29]!==I||t[30]!==T?(d=s.jsx(f,{className:T,children:I}),t[28]=f,t[29]=I,t[30]=T,t[31]=d):d=t[31];let j;t[32]!==r?(j=r?at(r.totalTokens):"—",t[32]=r,t[33]=j):j=t[33];let v;t[34]!==j?(v=s.jsx(V,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:j}),t[34]=j,t[35]=v):v=t[35];let N;t[36]!==r?(N=r&&r.costUsd>0?nt(r.costUsd):"—",t[36]=r,t[37]=N):N=t[37];let y;t[38]!==N?(y=s.jsx(V,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:N}),t[38]=N,t[39]=y):y=t[39];let D;t[40]!==n?(D=s.jsx("div",{children:n}),t[40]=n,t[41]=D):D=t[41];let _;t[42]!==w?(_=s.jsx("div",{className:"text-xs text-muted-foreground/60",children:w}),t[42]=w,t[43]=_):_=t[43];let E;t[44]!==D||t[45]!==_?(E=s.jsxs(V,{className:"w-32 px-3 pr-5 text-muted-foreground",children:[D,_]}),t[44]=D,t[45]=_,t[46]=E):E=t[46];let $;return t[47]!==x||t[48]!==m||t[49]!==d||t[50]!==v||t[51]!==y||t[52]!==E||t[53]!==k||t[54]!==C||t[55]!==S?($=s.jsxs(x,{ref:k,className:C,onClick:S,children:[m,d,v,y,E]}),t[47]=x,t[48]=m,t[49]=d,t[50]=v,t[51]=y,t[52]=E,t[53]=k,t[54]=C,t[55]=S,t[56]=$):$=t[56],$}function Bt(c){const t=z.c(73),{automationId:i,triggerIds:r,range:e}=c,a=W(),{org:o,locator:n}=it();let l;t[0]!==o.id||t[1]!==o.slug?(l={connectionId:rt,orgId:o.id,orgSlug:o.slug},t[0]=o.id,t[1]=o.slug,t[2]=l):l=t[2];const w=pt(l),f=ct(),x=xt(),m=gt(),{data:u}=St(),g=r.length>0;let h;t[3]!==i||t[4]!==o.id||t[5]!==r?(h=tt.automationRuns(o.id,i,r),t[3]=i,t[4]=o.id,t[5]=r,t[6]=h):h=t[6];let R;t[7]!==f||t[8]!==r?(R=async M=>{const{pageParam:J}=M,ot=J===void 0?0:J;return await f.call("COLLECTION_THREADS_LIST",{limit:Z,offset:ot,where:{trigger_ids:r}})},t[7]=f,t[8]=r,t[9]=R):R=t[9];let T;t[10]!==g||t[11]!==h||t[12]!==R?(T={queryKey:h,queryFn:R,initialPageParam:0,getNextPageParam:Et,enabled:g,staleTime:3e4},t[10]=g,t[11]=h,t[12]=R,t[13]=T):T=t[13];const{data:k,fetchNextPage:C,hasNextPage:S,isFetchingNextPage:p,isLoading:I}=ft(T);let d,j,v,N;t[14]!==k?.pages||t[15]!==n||t[16]!==e?(d=(k?.pages??[]).flatMap(Dt),N=d.map(Pt),v=dt,j=tt.monitoringThreadUsage(n,JSON.stringify({ids:N,...e})),t[14]=k?.pages,t[15]=n,t[16]=e,t[17]=d,t[18]=j,t[19]=v,t[20]=N):(d=t[17],j=t[18],v=t[19],N=t[20]);let y;t[21]!==e||t[22]!==f||t[23]!==N?(y=async()=>await f.call("MONITORING_THREAD_USAGE",{threadIds:N,...e.startDate?{startDate:e.startDate}:{},...e.endDate?{endDate:e.endDate}:{}}),t[21]=e,t[22]=f,t[23]=N,t[24]=y):y=t[24];const D=N.length>0;let _;t[25]!==j||t[26]!==y||t[27]!==D?(_={queryKey:j,queryFn:y,enabled:D,staleTime:3e4},t[25]=j,t[26]=y,t[27]=D,t[28]=_):_=t[28];const{data:E}=v(_);let $;t[29]!==E?.items?($=new Map((E?.items??[]).map(_t)),t[29]=E?.items,t[30]=$):$=t[30];const P=$;let U;t[31]!==C||t[32]!==S||t[33]!==p?(U=()=>{S&&!p&&C()},t[31]=C,t[32]=S,t[33]=p,t[34]=U):U=t[34];const Y=Tt(U,S??!1,p),b=It(d),B=b.selected;let L;t[35]!==i||t[36]!==e?(L=s.jsx(kt,{automationId:i,range:e}),t[35]=i,t[36]=e,t[37]=L):L=t[37];let O;t[38]!==g||t[39]!==I||t[40]!==Y||t[41]!==d||t[42]!==b||t[43]!==a||t[44]!==P?(O=g?I?s.jsx("div",{className:"py-16 text-center text-sm text-muted-foreground",children:a("automations.automationRuns.loadingRuns")}):d.length===0?s.jsx("div",{className:"py-16",children:s.jsx(et,{title:a("automations.automationRuns.noRunsTitle"),description:a("automations.automationRuns.noRunsDescription")})}):s.jsxs(jt,{className:"w-full border-collapse",children:[s.jsx(Nt,{className:"border-b-0",children:s.jsxs(st,{className:"h-9 hover:bg-transparent border-b border-border",children:[s.jsx(G,{className:"pl-4 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:a("automations.automationRuns.runHeader")}),s.jsx(G,{className:"w-28 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:a("automations.automationRuns.statusHeader")}),s.jsx(G,{className:"w-24 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide text-right",children:a("automations.automationRuns.tokensHeader")}),s.jsx(G,{className:"w-24 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide text-right",children:a("automations.automationRuns.costHeader")}),s.jsx(G,{className:"w-32 px-3 pr-5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:a("automations.automationRuns.startedHeader")})]})}),s.jsx(bt,{children:d.map((M,J)=>s.jsx(yt,{run:M,usage:P.get(M.id),onClick:()=>b.select(M.id),lastRowRef:J===d.length-1?Y:void 0},M.id))})]}):s.jsx("div",{className:"py-16",children:s.jsx(et,{title:a("automations.automationRuns.noStartersTitle"),description:a("automations.automationRuns.noStartersDescription")})}),t[38]=g,t[39]=I,t[40]=Y,t[41]=d,t[42]=b,t[43]=a,t[44]=P,t[45]=O):O=t[45];let A;t[46]!==p||t[47]!==a?(A=p&&s.jsx("div",{className:"py-4 text-center text-sm text-muted-foreground",children:a("automations.automationRuns.loadingMore")}),t[46]=p,t[47]=a,t[48]=A):A=t[48];let H;t[49]!==b?(H=M=>{M||b.close()},t[49]=b,t[50]=H):H=t[50];let K;t[51]!==x||t[52]!==m||t[53]!==w||t[54]!==n||t[55]!==u||t[56]!==d||t[57]!==B||t[58]!==b.index||t[59]!==b.next||t[60]!==b.prev?(K=B&&s.jsx(Ct,{thread:B,client:w,locator:n,connections:x,virtualMcps:m,members:u,nav:{index:b.index,total:d.length,onPrev:b.prev,onNext:b.next}}),t[51]=x,t[52]=m,t[53]=w,t[54]=n,t[55]=u,t[56]=d,t[57]=B,t[58]=b.index,t[59]=b.next,t[60]=b.prev,t[61]=K):K=t[61];let q;t[62]!==K?(q=s.jsx(Rt,{className:"sm:max-w-2xl flex flex-col p-0 gap-0",children:K}),t[62]=K,t[63]=q):q=t[63];let F;t[64]!==b.isOpen||t[65]!==H||t[66]!==q?(F=s.jsx(ht,{open:b.isOpen,onOpenChange:H,children:q}),t[64]=b.isOpen,t[65]=H,t[66]=q,t[67]=F):F=t[67];let Q;return t[68]!==L||t[69]!==O||t[70]!==A||t[71]!==F?(Q=s.jsxs("div",{className:"flex flex-col gap-5",children:[L,O,A,F]}),t[68]=L,t[69]=O,t[70]=A,t[71]=F,t[72]=Q):Q=t[72],Q}function _t(c){return[c.threadId,{calls:c.calls,inputTokens:c.inputTokens,outputTokens:c.outputTokens,totalTokens:c.totalTokens,costUsd:c.costUsd}]}function Pt(c){return c.id}function Dt(c){return c.items??[]}function Et(c,t){const i=c,r=t;if(!((i?.items?.length??0)<Z))return r.length*Z}export{Bt as A,It as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k,j as e,b as $,X as D,d as M,r as q,n as d,B as O,fO as V,q as R}from"./index-
|
|
1
|
+
import{c as k,j as e,b as $,X as D,d as M,r as q,n as d,B as O,fO as V,q as R}from"./index-D2dTzz5J.js";import{s as X}from"./Plus-kevaXo9o.js";import{i as S}from"./ZoomOut-D59vA8XW.js";import{S as F}from"./search-input-nZG5K7zX.js";import{E as T}from"./empty-state-B_1GXkEg.js";import{u as G}from"./use-automations-Dhxqirb4.js";import{u as H}from"./use-navigate-to-agent-nkJg8O6N.js";import{A as J}from"./automation-list-row-BUEOdqlU.js";import{b as K}from"./repository-binding-rygwFtUU.js";import{R as Q}from"./require-capability-BOLN4wlq.js";import"./SearchMd-CKY0v7Vy.js";import"./use-mcp-client-BGBcJfvU.js";import"./auth-gmg7d_GH.js";import"./thread-intent-DkMl3Clw.js";import"./backoff-8mStPHYB.js";import"./task-board-CWJgeu7Z.js";import"./schema-D38GSwTR.js";import"./slugify-CEUa2lfQ.js";import"./alert-dialog-SIUpU6uq.js";import"./agent-icon-CR4t5Gu3.js";import"./AlertCircle-DXLs2YfX.js";import"./Tool01-D4pGeBop.js";import"./ArrowUp-DQxu9lq3.js";import"./ArrowLeft--pkS1YcK.js";import"./LinkBroken01-DHksKx7R.js";import"./ShoppingBag01-Dfpwkcdn.js";import"./Building02-CKLKiQ3U.js";import"./CheckCircle-BDzQ_ECv.js";import"./Check-BbEloZu1.js";import"./ChevronUp-D3ChNhrQ.js";import"./UserSquare-DRII3oW9.js";import"./Copy01-a63gH2RE.js";import"./CreditCard01-BS5sPNh6.js";import"./DotsVertical-vt_3gkoG.js";import"./Image01-BR5I_9pG.js";import"./Palette-D-JYBilo.js";import"./XClose-Cs8QbZ4B.js";import"./Key01-C0k-gtwc.js";import"./Link01-DM36157y.js";import"./LinkExternal01-DZNYicBT.js";import"./Monitor01-BQxvNkHa.js";import"./Sun-DxmQEZP4.js";import"./Trash01-DFbco4Cc.js";import"./Upload01-BZbq-HqK.js";import"./User01-d9Z_uT9d.js";import"./Users01-CNmS3Xkr.js";import"./X-Cul5rSgm.js";import"./access-gate-Cxb2F7oE.js";import"./capability-load-error-Ss9c_27I.js";function U(){const t=k.c(20),o=$(),{org:c}=D(),{data:y}=G(void 0),g=y===void 0?[]:y,E=K(),P=H(),f=M(),[x,z]=q.useState(""),h=x.toLowerCase(),b=new Map(E.map(W)),A=g.filter(i=>{if(!h||i.name.toLowerCase().includes(h))return!0;if(i.virtual_mcp_id){const l=b.get(i.virtual_mcp_id);if(l&&l.title.toLowerCase().includes(h))return!0}return!1}),B=(i,l)=>{const N=l&&b.has(l)?l:V(c.id);R("automations_list_row_clicked",{automation_id:i,agent_id:N,source:"settings_automations"}),P(N,{panel:`automation:${i}`})};let p;t[0]!==f||t[1]!==c.slug?(p=()=>{R("automations_empty_state_browse_agents_clicked"),f({to:"/$org/settings/projects",params:{org:c.slug}})},t[0]=f,t[1]=c.slug,t[2]=p):p=t[2];const L=p,j=d,C=d,v=d;let s;t[3]!==o?(s=o("settings.automations.pageTitle"),t[3]=o,t[4]=s):s=t[4];let r;t[5]!==s?(r=e.jsx(d.Title,{children:s}),t[5]=s,t[6]=r):r=t[6];const w=g.length>0&&e.jsx(F,{value:x,onChange:z,placeholder:o("settings.automations.searchPlaceholder"),className:"w-full md:w-[375px]"});let n;t[7]!==r||t[8]!==w?(n=e.jsxs("div",{className:"flex flex-col gap-6",children:[r,w]}),t[7]=r,t[8]=w,t[9]=n):n=t[9];const _=g.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(T,{image:e.jsx(S,{size:48,className:"text-muted-foreground"}),title:o("settings.automations.emptyTitle"),description:o("settings.automations.emptyDescription"),actions:e.jsxs(O,{size:"sm",onClick:L,children:[e.jsx(X,{size:14}),o("settings.automations.browseAgentsButton")]})})}):A.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(T,{image:e.jsx(S,{size:48,className:"text-muted-foreground"}),title:o("settings.automations.noResultsTitle"),description:o("settings.automations.noResultsDescription",{search:x})})}):e.jsx("div",{className:"mt-6 rounded-xl border border-border overflow-hidden",children:A.map(i=>e.jsx(J,{automation:i,showAgent:!0,onClick:()=>B(i.id,i.virtual_mcp_id)},i.id))});let a;t[10]!==v.Container||t[11]!==n||t[12]!==_?(a=e.jsxs(v.Container,{children:[n,_]}),t[10]=v.Container,t[11]=n,t[12]=_,t[13]=a):a=t[13];let m;t[14]!==C.Content||t[15]!==a?(m=e.jsx(C.Content,{children:a}),t[14]=C.Content,t[15]=a,t[16]=m):m=t[16];let u;return t[17]!==j||t[18]!==m?(u=e.jsx(j,{children:m}),t[17]=j,t[18]=m,t[19]=u):u=t[19],u}function W(t){return[t.id,t]}function Jt(){const t=k.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(Q,{capability:"automations:manage",area:"automations",children:e.jsx(U,{})}),t[0]=o):o=t[0],o}export{Jt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as d}from"./index-
|
|
1
|
+
import{V as d}from"./index-D2dTzz5J.js";const m=1e4,y="true",i=2;function a(t,n){return d.chatAutosend(t,n)}function l(t){return t==="pending"||t==="sending"}function f(t){if(!t)return null;let n;try{n=JSON.parse(t)}catch{return null}if(!n||typeof n!="object")return null;const e=n;let o=0;e.status==="sending"?o=e.retryAt===void 0?1:i:e.retryAt!==void 0&&(o=1);const r=e.attempt===void 0?o:e.attempt;return typeof e.createdAt!="number"||typeof e.message!="object"||!l(e.status)||e.retryAt!==void 0&&typeof e.retryAt!="number"||typeof r!="number"||!Number.isInteger(r)||r<0||r>i?null:{...n,attempt:r}}function S(t,n,e,o,r=Date.now()){const s={message:o,createdAt:r,status:"pending",attempt:0};return t.setItem(a(n,e),JSON.stringify(s)),s}function p(t,n,e){const o=a(n,e),r=f(t.getItem(o));return r||(t.removeItem(o),null)}function g(t,n,e,o=Date.now()){const r=a(n,e),s=p(t,n,e);if(!s||s.status!=="pending")return null;if(s.attempt>=i)return t.removeItem(r),null;const c=s.retryAt??s.createdAt;if(o-c>=m)return t.removeItem(r),null;const u={...s,status:"sending",attempt:s.attempt+1};return t.setItem(r,JSON.stringify(u)),{message:u.message,createdAt:u.createdAt,attempt:u.attempt}}function T(t,n,e){t.removeItem(a(n,e))}export{y as A,T as a,g as c,S as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k,j as i,l as f,aH as R,ba as V,bb as I,bc as $}from"./index-
|
|
1
|
+
import{c as k,j as i,l as f,aH as R,ba as V,bb as I,bc as $}from"./index-D2dTzz5J.js";import{s as O}from"./User01-d9Z_uT9d.js";function U(r){const e=k.c(8);let s,t;e[0]!==r?({className:s,...t}=r,e[0]=r,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=f("relative flex size-8 shrink-0 overflow-hidden rounded-full",s),e[3]=s,e[4]=o):o=e[4];let a;return e[5]!==t||e[6]!==o?(a=i.jsx($,{"data-slot":"avatar",className:o,...t}),e[5]=t,e[6]=o,e[7]=a):a=e[7],a}function E(r){const e=k.c(8);let s,t;e[0]!==r?({className:s,...t}=r,e[0]=r,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=f("aspect-square size-full",s),e[3]=s,e[4]=o):o=e[4];let a;return e[5]!==t||e[6]!==o?(a=i.jsx(V,{"data-slot":"avatar-image",className:o,...t}),e[5]=t,e[6]=o,e[7]=a):a=e[7],a}function M(r){const e=k.c(8);let s,t;e[0]!==r?({className:s,...t}=r,e[0]=r,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=f("bg-muted flex size-full items-center justify-center rounded-full",s),e[3]=s,e[4]=o):o=e[4];let a;return e[5]!==t||e[6]!==o?(a=i.jsx(I,{"data-slot":"avatar-fallback",className:o,...t}),e[5]=t,e[6]=o,e[7]=a):a=e[7],a}const C=["drop-shadow-lg bg-gradient-to-br from-red-100 to-red-300 text-red-800 shadow-lg shadow-red-300/40 ring-1 ring-red-300/30","drop-shadow-lg bg-gradient-to-br from-lime-100 to-lime-300 text-lime-800 shadow-lg shadow-lime-300/40 ring-1 ring-lime-300/30","drop-shadow-lg bg-gradient-to-br from-emerald-100 to-emerald-300 text-emerald-800 shadow-lg shadow-emerald-300/40 ring-1 ring-emerald-300/30","drop-shadow-lg bg-gradient-to-br from-orange-100 to-orange-300 text-orange-800 shadow-lg shadow-orange-300/40 ring-1 ring-orange-300/30","drop-shadow-lg bg-gradient-to-br from-amber-100 to-amber-300 text-amber-800 shadow-lg shadow-amber-300/40 ring-1 ring-amber-300/30","drop-shadow-lg bg-gradient-to-br from-yellow-100 to-yellow-300 text-yellow-800 shadow-lg shadow-yellow-300/40 ring-1 ring-yellow-300/30","drop-shadow-lg bg-gradient-to-br from-green-100 to-green-300 text-green-800 shadow-lg shadow-green-300/40 ring-1 ring-green-300/30","drop-shadow-lg bg-gradient-to-br from-teal-100 to-teal-300 text-teal-800 shadow-lg shadow-teal-300/40 ring-1 ring-teal-300/30","drop-shadow-lg bg-gradient-to-br from-cyan-100 to-cyan-300 text-cyan-800 shadow-lg shadow-cyan-300/40 ring-1 ring-cyan-300/30","drop-shadow-lg bg-gradient-to-br from-sky-100 to-sky-300 text-sky-800 shadow-lg shadow-sky-300/40 ring-1 ring-sky-300/30","drop-shadow-lg bg-gradient-to-br from-blue-100 to-blue-300 text-blue-800 shadow-lg shadow-blue-300/40 ring-1 ring-blue-300/30","drop-shadow-lg bg-gradient-to-br from-indigo-100 to-indigo-300 text-indigo-800 shadow-lg shadow-indigo-300/40 ring-1 ring-indigo-300/30","drop-shadow-lg bg-gradient-to-br from-violet-100 to-violet-300 text-violet-800 shadow-lg shadow-violet-300/40 ring-1 ring-violet-300/30","drop-shadow-lg bg-gradient-to-br from-purple-100 to-purple-300 text-purple-800 shadow-lg shadow-purple-300/40 ring-1 ring-purple-300/30","drop-shadow-lg bg-gradient-to-br from-fuchsia-100 to-fuchsia-300 text-fuchsia-800 shadow-lg shadow-fuchsia-300/40 ring-1 ring-fuchsia-300/30","drop-shadow-lg bg-gradient-to-br from-pink-100 to-pink-300 text-pink-800 shadow-lg shadow-pink-300/40 ring-1 ring-pink-300/30","drop-shadow-lg bg-gradient-to-br from-rose-100 to-rose-300 text-rose-800 shadow-lg shadow-rose-300/40 ring-1 ring-rose-300/30"],L="drop-shadow-lg text-muted-foreground bg-muted shadow-lg";function T(r){let e=0;for(let t=0;t<r.length;t++)e=r.charCodeAt(t)+((e<<5)-e);const s=Math.abs(e)%C.length;return C[s]}const S=R("border border-border",{variants:{shape:{circle:"rounded-full",square:""},size:{"3xs":"w-3 h-3 text-[7px] font-semibold","2xs":"w-4 h-4 text-[9px] font-semibold",xs:"w-6 h-6 text-sm font-semibold",sm:"w-8 h-8 text-lg font-semibold",base:"w-10 h-10 text-2xl font-semibold",lg:"w-12 h-12 text-3xl font-semibold",xl:"w-16 h-16 text-4xl font-semibold","2xl":"w-20 h-20 text-5xl font-semibold","3xl":"w-32 h-32 text-7xl font-semibold"}},compoundVariants:[{shape:"square",size:"xs",class:"rounded-lg"},{shape:"square",size:"sm",class:"rounded-xl"},{shape:"square",size:"base",class:"rounded-xl"},{shape:"square",size:"lg",class:"rounded-xl"},{shape:"square",size:"xl",class:"rounded-2xl"},{shape:"square",size:"2xl",class:"rounded-3xl"},{shape:"square",size:"3xl",class:"rounded-[40px]"}],defaultVariants:{shape:"square",size:"base"}}),_=R("",{variants:{objectFit:{contain:"object-contain",cover:"object-cover"}},defaultVariants:{objectFit:"cover"}}),D=r=>{const e={"3xs":8,"2xs":8,xs:12,sm:16,base:24,lg:28,xl:36,"2xl":48,"3xl":80};return e[r]||e.base};function H(r){const e=k.c(34);let s,t,o,a,n,d,g,l;e[0]!==r?({url:l,fallback:t,shape:a,size:n,objectFit:d,className:s,muted:g,...o}=r,e[0]=r,e[1]=s,e[2]=t,e[3]=o,e[4]=a,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],a=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const m=a===void 0?"square":a,h=n===void 0?"base":n,u=d===void 0?"cover":d,j=g===void 0?!1:g;let x;e:{if(typeof t=="string"){let c;e[9]!==t?(c=t.trim().slice(0,2).toUpperCase(),e[9]=t,e[10]=c):c=e[10],x=c;break e}x=t}const b=x;let y;e:{if(j){y=L;break e}if(typeof t=="string"){let c;e[11]!==t?(c=T(t),e[11]=t,e[12]=c):c=e[12],y=c;break e}y=C[0]}const z=y;let N;e[13]!==l?(N=l?.startsWith("icon://"),e[13]=l,e[14]=N):N=e[14];const p=N;let q;e[15]!==p||e[16]!==l?(q=p?l?.replace("icon://",""):void 0,e[15]=p,e[16]=l,e[17]=q):q=e[17];const F=q;let w;e[18]!==s||e[19]!==m||e[20]!==h?(w=f(S({shape:m,size:h}),s),e[18]=s,e[19]=m,e[20]=h,e[21]=w):w=e[21];let v;e[22]!==z||e[23]!==b||e[24]!==F||e[25]!==p||e[26]!==u||e[27]!==h||e[28]!==l?(v=p&&F?i.jsx("div",{className:f("flex items-center justify-center w-full h-full",z),children:i.jsx(O,{size:D(h)})}):i.jsxs(i.Fragment,{children:[l&&i.jsx(E,{src:l,loading:"lazy",alt:"Avatar",className:f(_({objectFit:u}))}),i.jsx(M,{className:f(z,"rounded-none"),delayMs:l?600:0,children:b})]}),e[22]=z,e[23]=b,e[24]=F,e[25]=p,e[26]=u,e[27]=h,e[28]=l,e[29]=v):v=e[29];let A;return e[30]!==o||e[31]!==v||e[32]!==w?(A=i.jsx(U,{className:w,...o,children:v}),e[30]=o,e[31]=v,e[32]=w,e[33]=A):A=e[33],A}function W(r){const e=k.c(18);let s,t,o,a,n,d,g,l;e[0]!==r?({shape:a,size:n,url:l,fallback:t,objectFit:d,className:s,muted:g,...o}=r,e[0]=r,e[1]=s,e[2]=t,e[3]=o,e[4]=a,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],a=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const m=a===void 0?"square":a,h=n===void 0?"base":n,u=d===void 0?"cover":d,j=g===void 0?!1:g,x=h??"base";let b;return e[9]!==s||e[10]!==t||e[11]!==j||e[12]!==u||e[13]!==o||e[14]!==m||e[15]!==x||e[16]!==l?(b=i.jsx(H,{shape:m,url:l,fallback:t,size:x,objectFit:u,className:s,muted:j,...o}),e[9]=s,e[10]=t,e[11]=j,e[12]=u,e[13]=o,e[14]=m,e[15]=x,e[16]=l,e[17]=b):b=e[17],b}W.Skeleton=function({shape:e="square",size:s="base",className:t}){return i.jsx("div",{className:f(S({shape:e,size:s}),"bg-muted animate-pulse",t)})};export{W as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,l as g,j as l,bd as v,aH as b}from"./index-
|
|
1
|
+
import{c as u,l as g,j as l,bd as v,aH as b}from"./index-D2dTzz5J.js";const f=b("inline-flex items-center justify-center rounded-full border text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",success:"border-transparent bg-success text-success-foreground [a&]:hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",warning:"border-transparent bg-warning text-warning-foreground [a&]:hover:bg-warning/90 focus-visible:ring-warning/20 dark:focus-visible:ring-warning/40",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",muted:"border-transparent bg-muted text-muted-foreground [a&]:hover:bg-muted/80"},size:{default:"px-2 py-0.5",icon:"size-5",segmented:"h-7 gap-0 rounded-lg border-transparent bg-card p-0 card-shadow"}},defaultVariants:{variant:"default",size:"default"}});function x(d){const e=u.c(14);let r,s,t,n,a;e[0]!==d?({className:r,variant:a,size:t,asChild:n,...s}=d,e[0]=d,e[1]=r,e[2]=s,e[3]=t,e[4]=n,e[5]=a):(r=e[1],s=e[2],t=e[3],n=e[4],a=e[5]);const c=(n===void 0?!1:n)?v:"span";let i;e[6]!==r||e[7]!==t||e[8]!==a?(i=g(f({variant:a,size:t}),r),e[6]=r,e[7]=t,e[8]=a,e[9]=i):i=e[9];let o;return e[10]!==c||e[11]!==s||e[12]!==i?(o=l.jsx(c,{"data-slot":"badge",className:i,...s}),e[10]=c,e[11]=s,e[12]=i,e[13]=o):o=e[13],o}export{x as B};
|