decocms 4.586.0 → 4.587.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-CGZfuvxJ.js → AlertCircle-D_6mZhd3.js} +1 -1
- package/dist/client/assets/{AreaChart-DXqVsicd.js → AreaChart-DQSuG1yE.js} +1 -1
- package/dist/client/assets/{ArrowLeft-XURGfwpG.js → ArrowLeft-DjgSByoQ.js} +1 -1
- package/dist/client/assets/{ArrowRight-ZoKxZa45.js → ArrowRight-Du-vqw_x.js} +1 -1
- package/dist/client/assets/{ArrowUp-DJZ55cl-.js → ArrowUp-Hd6A0uf9.js} +1 -1
- package/dist/client/assets/{BookOpen01-gO5hgFUK.js → BookOpen01-gL1m_4-g.js} +1 -1
- package/dist/client/assets/{CartesianChart-B0LNjIyx.js → CartesianChart-ghS8jWki.js} +1 -1
- package/dist/client/assets/{CategoricalChart-CmAKQrAh.js → CategoricalChart-FLgBKuSu.js} +1 -1
- package/dist/client/assets/{CheckCircle-CmN8U1V5.js → CheckCircle-12UwMq4H.js} +1 -1
- package/dist/client/assets/{ChevronDown-ClblfTVV.js → ChevronDown-DeUpalBN.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-YxAp9GGa.js → ChevronSelectorVertical-DO-HHLr6.js} +1 -1
- package/dist/client/assets/{ChevronUp-0ZCAxpBW.js → ChevronUp-BzeZGyJH.js} +1 -1
- package/dist/client/assets/{CreditCard01-CcTQ1h3_.js → CreditCard01-C7IRKQGq.js} +1 -1
- package/dist/client/assets/{Eye-D5j_svLn.js → Eye-C1-H4NKN.js} +1 -1
- package/dist/client/assets/{File02-Cs751Kds.js → File02-CFyU1pAb.js} +1 -1
- package/dist/client/assets/Fingerprint04-BmN62_tt.js +1 -0
- package/dist/client/assets/{Globe04-DO1uUwfE.js → Globe04-DEUqOfwK.js} +1 -1
- package/dist/client/assets/{Image01-CJL4B_rR.js → Image01-D1EDWKnx.js} +1 -1
- package/dist/client/assets/{Key01-fuHivqLl.js → Key01-tELScC1h.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CCeum9wV.js → LayoutLeft-551J-MO9.js} +1 -1
- package/dist/client/assets/{LinkBroken01-cq4srxHs.js → LinkBroken01-BdgK-qQO.js} +1 -1
- package/dist/client/assets/{MessageCircle01-Bf6dD94_.js → MessageCircle01-DVvYPWC-.js} +1 -1
- package/dist/client/assets/{Minus-Cc21R1KY.js → Minus-CwITAxnt.js} +1 -1
- package/dist/client/assets/{Monitor01-DGdgEYxG.js → Monitor01-Cj8V3TAw.js} +1 -1
- package/dist/client/assets/{Play-zYFs_vGL.js → Play-R1uGwJ-1.js} +1 -1
- package/dist/client/assets/{Plus--DcN-eh1.js → Plus-B-S-SZ1j.js} +1 -1
- package/dist/client/assets/{ReferenceLine-D6M1JZR1.js → ReferenceLine-DFNcBn1Q.js} +1 -1
- package/dist/client/assets/{SearchMd-BwYuN52e.js → SearchMd-BIZLsFUb.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-D-gmqcz7.js → ShoppingBag01-bCe9ug4u.js} +1 -1
- package/dist/client/assets/{Sun-D9ql5ZlI.js → Sun-DJ9HokSi.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BQF84Li3.js → SwitchHorizontal01-DFAhxuil.js} +1 -1
- package/dist/client/assets/{Tool01-BeDQSGiN.js → Tool01-DSm8VUO0.js} +1 -1
- package/dist/client/assets/{Tooltip-C_RHysFo.js → Tooltip-DKAhw1l_.js} +1 -1
- package/dist/client/assets/{Trash01-BmQrADz0.js → Trash01-DmArjRF_.js} +1 -1
- package/dist/client/assets/{TrendUp01-_SFSHjzO.js → TrendUp01-Cb0Ss3qG.js} +1 -1
- package/dist/client/assets/{Upload01-DOfZqxci.js → Upload01-C0hxLVoS.js} +1 -1
- package/dist/client/assets/{UserCheck01-BMoOFYIZ.js → UserCheck01-DoVM7Q3H.js} +1 -1
- package/dist/client/assets/{UserSquare-Dn1UPzSD.js → UserSquare-CeU_BqyG.js} +1 -1
- package/dist/client/assets/{Users01-B_yoWxPn.js → Users01-CxZDOmOJ.js} +1 -1
- package/dist/client/assets/{XClose-C4MsAn9v.js → XClose-lVRJTaql.js} +1 -1
- package/dist/client/assets/{Zap-DoxB0q6B.js → Zap-Cnh7YlUV.js} +1 -1
- package/dist/client/assets/{access-gate-DQ55JjgP.js → access-gate-wCyQtv5A.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-D0PlxcOk.js → add-connection-dialog-sOS8LW6V.js} +1 -1
- package/dist/client/assets/agent-app-Ddt_i3hs.js +1 -0
- package/dist/client/assets/agent-assets-4Dn6_LPJ.js +1 -0
- package/dist/client/assets/{agent-automation-DRfIHgf4.js → agent-automation-DxylbM6B.js} +2 -2
- package/dist/client/assets/agent-automations-DTCsvg04.js +1 -0
- package/dist/client/assets/agent-blog-YN3-KN-3.js +2 -0
- package/dist/client/assets/agent-blog-post-CM6piUKk.js +2 -0
- package/dist/client/assets/agent-calendar-BJOF6wGS.js +1 -0
- package/dist/client/assets/{agent-capabilities-Dh06TMfs.js → agent-capabilities-DFVJwxaH.js} +1 -1
- package/dist/client/assets/agent-connect-sources-DyiJgP9L.js +1 -0
- package/dist/client/assets/agent-deck-BJbp-kJP.js +1 -0
- package/dist/client/assets/agent-e2e-BPbuZrSW.js +1 -0
- package/dist/client/assets/agent-experiments-CdtDrGBl.js +1 -0
- package/dist/client/assets/agent-file-TtINmaDO.js +1 -0
- package/dist/client/assets/agent-hosting-C1oXMGvH.js +1 -0
- package/dist/client/assets/agent-icon-DA-Fg7pF.js +1 -0
- package/dist/client/assets/agent-library-DiFYtmp3.js +1 -0
- package/dist/client/assets/agent-library-file-B8tZpffC.js +1 -0
- package/dist/client/assets/agent-overview-BItm6Vlt.js +1 -0
- package/dist/client/assets/{agent-releases-CQDLHf-9.js → agent-releases-JJOjPP8D.js} +2 -2
- package/dist/client/assets/agent-settings-BMZl-puv.js +1 -0
- package/dist/client/assets/{agent-site-editor-Bn_zysVp.js → agent-site-editor-B1-p5Hbd.js} +2 -2
- package/dist/client/assets/agent-site-editor-code-GUBPAYOc.js +2 -0
- package/dist/client/assets/agent-site-editor-content-C0ANuka1.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-BSvKajfu.js +1 -0
- package/dist/client/assets/agent-view-CuMB-zdu.js +1 -0
- package/dist/client/assets/{agent-view-guard-_UB25wdA.js → agent-view-guard-Dp1jnrh9.js} +1 -1
- package/dist/client/assets/{ai-providers-BZmTFJ6J.js → ai-providers-DhIAtcli.js} +1 -1
- package/dist/client/assets/{alert-Dl9RecsO.js → alert-D8-tLSOF.js} +1 -1
- package/dist/client/assets/{analytics-sections-ChR-yKgZ.js → analytics-sections-CMaRh5vg.js} +1 -1
- package/dist/client/assets/{api-keys-BAKKjcCM.js → api-keys-BYyk36lL.js} +1 -1
- package/dist/client/assets/api-keys-CZghJUH5.js +1 -0
- package/dist/client/assets/app-editor-D0csBY-b.js +1 -0
- package/dist/client/assets/{asset-utils-C40qdOgS.js → asset-utils-DZv-FEec.js} +1 -1
- package/dist/client/assets/{auth-DuSLyK-k.js → auth-CTQZGBnP.js} +1 -1
- package/dist/client/assets/{auth-catchall-CwzGmsez.js → auth-catchall-kXXiTe4J.js} +1 -1
- package/dist/client/assets/auth-entry-CmrAwa9A.js +1 -0
- package/dist/client/assets/{auth-split-layout-D0SngsR5.js → auth-split-layout-CHsrc83a.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BrPxKw11.js → authenticate-and-persist-oauth-D44eIeUD.js} +1 -1
- package/dist/client/assets/{automation-list-row-C_0woHJW.js → automation-list-row-PeCAvjmp.js} +1 -1
- package/dist/client/assets/{automation-runs-DwwK7nJ3.js → automation-runs-BUHEghGv.js} +1 -1
- package/dist/client/assets/automations-DWMaGnJ_.js +1 -0
- package/dist/client/assets/{badge-BvHOfdxU.js → badge-CXWhQd3j.js} +1 -1
- package/dist/client/assets/{block-document-CGK32I9G.js → block-document-CGeTYWv-.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CN-ldvuU.js → blocks-preview-workspace-context-Dpk4HnW-.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-DxLq1BL5.js → blocks-tab-states-CFYo4clt.js} +1 -1
- package/dist/client/assets/{blog-preview-url-cX5z_9aO.js → blog-preview-url-Dnn3CdoH.js} +1 -1
- package/dist/client/assets/{blog-schema-CTE9utzf.js → blog-schema-DciG3sv2.js} +1 -1
- package/dist/client/assets/{blog-source-gate-DWHD3Df5.js → blog-source-gate-DxXfL9t9.js} +1 -1
- package/dist/client/assets/{blog-view-gate-DT-8hHxE.js → blog-view-gate-DwmbI_7t.js} +1 -1
- package/dist/client/assets/{buckets-DMt9Xchk.js → buckets-Dn5vUsy9.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-D0Nbi1s7.js → build-improve-prompt-doc-CCMSIskc.js} +1 -1
- package/dist/client/assets/{calendar-BUgmhSfk.js → calendar-C8iDoCnd.js} +1 -1
- package/dist/client/assets/{capability-load-error-DCoklIp8.js → capability-load-error-DGMDILUu.js} +1 -1
- package/dist/client/assets/category-editor-CvyZlhDa.js +1 -0
- package/dist/client/assets/{category-tree-BeXLYa5S.js → category-tree-CoKnKzyW.js} +1 -1
- package/dist/client/assets/{chart-DfTUTOGH.js → chart-CxNNAoSv.js} +1 -1
- package/dist/client/assets/{chat-context-DG5tQFfU.js → chat-context-Bo7uj7QO.js} +1 -1
- package/dist/client/assets/{chat-draft-Bv2iw9Fr.js → chat-draft-1n081f6C.js} +1 -1
- package/dist/client/assets/{checkbox-DAnVkT6Q.js → checkbox-CouJku1L.js} +1 -1
- package/dist/client/assets/choose-editor-BudS68fU.js +1 -0
- package/dist/client/assets/{cli-auth-success-CY4cK7Ok.js → cli-auth-success-XgEBlx4y.js} +1 -1
- package/dist/client/assets/cms-settings-editor-BihAt8mo.js +1 -0
- package/dist/client/assets/{cms-store-drafts-BDhAH5vV.js → cms-store-drafts-aK3C7NIN.js} +1 -1
- package/dist/client/assets/{collapsible-DifRD2Ww.js → collapsible-BQXIF7yl.js} +1 -1
- package/dist/client/assets/collection-detail-kNjKSTlB.js +1 -0
- package/dist/client/assets/{collection-display-button-nfEDIRuH.js → collection-display-button-rcoJHzLM.js} +1 -1
- package/dist/client/assets/{collection-search-RWM-9f07.js → collection-search-DHGaqJoX.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DVjGjn7R.js → collection-table-wrapper-nEvFtZNu.js} +1 -1
- package/dist/client/assets/{collection-tabs-BkmY1xp_.js → collection-tabs-DyPYpvut.js} +1 -1
- package/dist/client/assets/{combobox-D7DiHBHL.js → combobox-5tUoYNvN.js} +1 -1
- package/dist/client/assets/{command-DHGFzOhP.js → command-XtwrY353.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-D7d32LFm.js → companion-mcps-section-BIxpu0CV.js} +1 -1
- package/dist/client/assets/{config-dB-x76iz.js → config-B-dLgcud.js} +1 -1
- package/dist/client/assets/{connect-D-G-5Mck.js → connect-IzhjVKIX.js} +3 -3
- package/dist/client/assets/{connect-key-DYxzA5cq.js → connect-key-Djf6OdTt.js} +1 -1
- package/dist/client/assets/{connect-layout-vX9TenPs.js → connect-layout-BLFE1r8J.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-hJXgVRU-.js → connect-source-dialog-K-oLzdRz.js} +1 -1
- package/dist/client/assets/{connection-CeuJqjaI.js → connection-CVYLa59l.js} +1 -1
- package/dist/client/assets/{connection-card-bC9jkQR3.js → connection-card-DrE2nEQK.js} +1 -1
- package/dist/client/assets/connection-detail-BzNp4KYO.js +1 -0
- package/dist/client/assets/{connection-form-helpers-BVK3iXej.js → connection-form-helpers-ws_4888d.js} +1 -1
- package/dist/client/assets/{connection-slug-BofuMVWL.js → connection-slug-BnP-Wula.js} +1 -1
- package/dist/client/assets/connections-DYD0GVv1.js +1 -0
- package/dist/client/assets/{content-tab-B2YwxmJz.js → content-tab-DLB2Uvie.js} +3 -3
- package/dist/client/assets/context-E7CmO04l.js +1 -0
- package/dist/client/assets/{context-menu-BgKzmvfA.js → context-menu-OGQDG2f-.js} +1 -1
- package/dist/client/assets/{context-shell-Bnnp_FlP.js → context-shell-B2TiiX4o.js} +3 -3
- package/dist/client/assets/{create-organization-dialog-BeGGdtfc.js → create-organization-dialog-C58t7dGd.js} +1 -1
- package/dist/client/assets/{daily-pulse-D8S4f077.js → daily-pulse-C-8Ge7Gb.js} +1 -1
- package/dist/client/assets/{delete-copy-C7-0DCkQ.js → delete-copy-DsDE5E3R.js} +1 -1
- package/dist/client/assets/{device-hint-B6fw2qhI.js → device-hint-Cw9A4RTs.js} +1 -1
- package/dist/client/assets/{discover-BhyJuEKB.js → discover-Dt0njfXu.js} +1 -1
- package/dist/client/assets/{domain-settings-DWaq5CPi.js → domain-settings-DcqOrcxN.js} +1 -1
- package/dist/client/assets/{drawer-BXd80xtd.js → drawer-DDCMGagW.js} +1 -1
- package/dist/client/assets/{editor-DNZ-WgCS.js → editor-CIB3F1gV.js} +1 -1
- package/dist/client/assets/{editor-classes-CzejjvgI.js → editor-classes-CLvZguOr.js} +1 -1
- package/dist/client/assets/{empty-message-DVICFi26.js → empty-message-C5kN-FsM.js} +1 -1
- package/dist/client/assets/{empty-state-BK8GboWz.js → empty-state-BwwrJHKq.js} +1 -1
- package/dist/client/assets/{empty-state-LbEOn0Mj.js → empty-state-CiMt55-l.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-DYGF6IS1.js → experiments-tab-choice-HOP6qrjW.js} +1 -1
- package/dist/client/assets/{extract-connection-data-B1FMXoXK.js → extract-connection-data-BB3HY3pL.js} +1 -1
- package/dist/client/assets/{feature-gate-XyzkzO9l.js → feature-gate-DzJ2Wgrv.js} +1 -1
- package/dist/client/assets/{feature-paywall-DQF2iJDP.js → feature-paywall-D3CjJHet.js} +1 -1
- package/dist/client/assets/file-explorer-BUDGmFj3.js +2 -0
- package/dist/client/assets/{file-preview-A0GfMNED.js → file-preview-DrQhYw7q.js} +1 -1
- package/dist/client/assets/{file-share-button-pVEpOvSY.js → file-share-button-2PZ7snDO.js} +1 -1
- package/dist/client/assets/{file-type-icon-CSrE_noX.js → file-type-icon-CfPI0k5H.js} +1 -1
- package/dist/client/assets/{folder-icon-CA298KqN.js → folder-icon-Cc4PI_dN.js} +1 -1
- package/dist/client/assets/{form-Cxhh0mxt.js → form-DTFwvxGa.js} +1 -1
- package/dist/client/assets/{frame-navigation--4kFXAAS.js → frame-navigation-C2MkzXfc.js} +1 -1
- package/dist/client/assets/{gateway-client-PdaGLWBA.js → gateway-client-BWWNWG13.js} +1 -1
- package/dist/client/assets/{general-CuKnI3HJ.js → general-B4k9oqH9.js} +1 -1
- package/dist/client/assets/{github-icon-h_xg-qFR.js → github-icon-CAEaNNXe.js} +1 -1
- package/dist/client/assets/{held-block-view-zi4CM-KX.js → held-block-view-BoX35XB_.js} +1 -1
- package/dist/client/assets/home-CS3KzMJa.js +1 -0
- package/dist/client/assets/{home-overview-DrWyW-2I.js → home-overview-4hB9-fzq.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-uX15ZUhb.js → hosted-reconcile-DD1fLsOV.js} +1 -1
- package/dist/client/assets/{icon-button-DzpdeaSs.js → icon-button-C7j9rC9Y.js} +1 -1
- package/dist/client/assets/{index-BK93qS26.js → index-6wJ9auoQ.js} +1 -1
- package/dist/client/assets/{index-DsWqYG3w.js → index-96oa6z-q.js} +1 -1
- package/dist/client/assets/{index-SPj0mL-J.js → index-BBzaKaTx.js} +1 -1
- package/dist/client/assets/{index-BpNyzjaQ.js → index-BOuugOzr.js} +1 -1
- package/dist/client/assets/{index-DNuvhcDO.js → index-BesTIQjb.js} +1 -1
- package/dist/client/assets/{index-BYaF8G7R.js → index-Bnvwu25R.js} +1 -1
- package/dist/client/assets/{index-5KkkYmJi.js → index-BuF029H4.js} +1 -1
- package/dist/client/assets/{index-CZTrNcsP.js → index-C1rZOaeR.js} +1 -1
- package/dist/client/assets/{index-BwBEUlXI.js → index-C3kpYdOE.js} +1 -1
- package/dist/client/assets/{index-C_n-5x2E.js → index-C3qV_QcY.js} +1 -1
- package/dist/client/assets/{index-3e8V4Do_.js → index-Cg9MjN_F.js} +1 -1
- package/dist/client/assets/{index-ba5Vf9vt.js → index-D6K919s-.js} +1 -1
- package/dist/client/assets/{index-DUn-LHzT.js → index-DFLWf492.js} +2 -2
- package/dist/client/assets/{index-Bld02Tnb.js → index-DdVVtGb-.js} +1 -1
- package/dist/client/assets/{index-BuZqAz74.js → index-DokE5sNF.js} +57 -56
- package/dist/client/assets/{index-SIZschZt.js → index-SNBsd1n5.js} +1 -1
- package/dist/client/assets/{index-redirect-DlIbuGOg.js → index-redirect-B0kETsWy.js} +1 -1
- package/dist/client/assets/{index-rt88hTRg.js → index-x-5-P0v0.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CHN_AvWa.js → infiniteQueryObserver-BXbGEZ4N.js} +1 -1
- package/dist/client/assets/{infra-billing-DHY4EnRE.js → infra-billing-DV-AbPt9.js} +1 -1
- package/dist/client/assets/{input-c6Cx2liY.js → input-BVDv3LEp.js} +3 -3
- package/dist/client/assets/{input--XeG2v6T.js → input-CfItTA2l.js} +1 -1
- package/dist/client/assets/{integration-icon-D7fga3kk.js → integration-icon-CimWL0HB.js} +1 -1
- package/dist/client/assets/{item-actions-Dld5lBtQ.js → item-actions-Be-0vSN9.js} +1 -1
- package/dist/client/assets/{jira-icon-_W0tffOR.js → jira-icon-zbkTgTO3.js} +1 -1
- package/dist/client/assets/{label-Dm_T3WyF.js → label-CELn1y0I.js} +1 -1
- package/dist/client/assets/{layout-DhN3YXX3.js → layout-D8GnCK_t.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-C0w-pw6s.js → legacy-admin-welcome-dialog-Xn47ClHz.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-ab_jOs-e.js → legacy-agents-deep-CfDZP79N.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-ByIcJoSw.js → legacy-main-redirect-CXEG-wJ7.js} +1 -1
- package/dist/client/assets/library-OZMSR-Ss.js +1 -0
- package/dist/client/assets/{library-tab-Cui4e0pM.js → library-tab-B9UPnHBX.js} +1 -1
- package/dist/client/assets/login-lSvN3N4Q.js +1 -0
- package/dist/client/assets/{markdown-CwYBGb1B.js → markdown-CDaD-85D.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-CLuYD3rD.js → mcp-app-renderer-BS-4Ud35.js} +1 -1
- package/dist/client/assets/{mcp-oauth-i1ZYjV6U.js → mcp-oauth-Celefz8j.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DZ8B5A_7.js → mcp-oauth-Cfk6BMjf.js} +1 -1
- package/dist/client/assets/{members-CvbIQPwh.js → members-CO93VCFa.js} +1 -1
- package/dist/client/assets/{memory-BhMXHewc.js → memory-BsFUXROk.js} +2 -2
- package/dist/client/assets/{mock-board-DN7OLcTA.js → mock-board-BhdBHUpK.js} +3 -3
- package/dist/client/assets/{monaco-editor-CTONBla7.js → monaco-editor-CnKR4oUp.js} +1 -1
- package/dist/client/assets/{monitoring-DPSQDGbL.js → monitoring-CQmjoD8Y.js} +2 -2
- package/dist/client/assets/{monitoring-stats-row-BUZplGDl.js → monitoring-stats-row-D45dscQU.js} +1 -1
- package/dist/client/assets/{multi-select-BSuPEET4.js → multi-select-D0i-_SFY.js} +1 -1
- package/dist/client/assets/{mustache-C50JF2sQ.js → mustache-9EZH88YQ.js} +1 -1
- package/dist/client/assets/{named-rule-step-D8j_NuRK.js → named-rule-step-yZefk1L5.js} +1 -1
- package/dist/client/assets/{named-rule-view-D9U19iHq.js → named-rule-view-BhK3WMdx.js} +1 -1
- package/dist/client/assets/{new-project-dialog-Bq2YhVDS.js → new-project-dialog-B-GOkKGZ.js} +1 -1
- package/dist/client/assets/{new-project-store-C82itd6a.js → new-project-store-BPGzwGDe.js} +1 -1
- package/dist/client/assets/{oauth-callback-xH1_0Q9p.js → oauth-callback-CPdQzJA-.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Dph1UX9E.js → oauth-callback-ai-provider-BYHZVJQa.js} +1 -1
- package/dist/client/assets/oauth-consent-R7d-lFg9.js +1 -0
- package/dist/client/assets/{onboarding-tM_LYdg0.js → onboarding-BQ661qWy.js} +1 -1
- package/dist/client/assets/openai-conversation-N65nOtwY.js +3 -0
- package/dist/client/assets/{optimistic-project-sidebar-views-TOzwQjCp.js → optimistic-project-sidebar-views-D5Qm8FhS.js} +1 -1
- package/dist/client/assets/{order-monitor-day-BqegE0N0.js → order-monitor-day-DqX4nMyS.js} +1 -1
- package/dist/client/assets/{organization-choice-BzjQ0aL1.js → organization-choice-DJgWzk8W.js} +1 -1
- package/dist/client/assets/{orgs-WruSV9A-.js → orgs-CEuotPd0.js} +1 -1
- package/dist/client/assets/{own-accounts-section-TMVLN8mQ.js → own-accounts-section-BUJ0fKWR.js} +1 -1
- package/dist/client/assets/{pair-BYbJa99U.js → pair-COq-ZPQq.js} +1 -1
- package/dist/client/assets/{parse-sections-CVDx-uBN.js → parse-sections-x0Kx4hiT.js} +2 -2
- package/dist/client/assets/{plan-DDx2VxJ0.js → plan-DKc8rH1K.js} +1 -1
- package/dist/client/assets/{plan-ladder-Ce2vSjaL.js → plan-ladder-pqZJNBpW.js} +1 -1
- package/dist/client/assets/{plan-usage-card-CvxOK5ad.js → plan-usage-card-BWKv5Sja.js} +1 -1
- package/dist/client/assets/{popover-D6EIL5sL.js → popover-BNjsYhzT.js} +1 -1
- package/dist/client/assets/post-calendar-D2IwNEqN.js +1 -0
- package/dist/client/assets/{post-editor-v1jKXm9-.js → post-editor-CCfke5Rf.js} +2 -2
- package/dist/client/assets/{preview-content-9gQGJiFY.js → preview-content-DvWQfE3X.js} +1 -1
- package/dist/client/assets/{preview-dialog-J4DJmy9P.js → preview-dialog-07cwMrWN.js} +1 -1
- package/dist/client/assets/{preview-panel-DLe0RaXg.js → preview-panel-C9bhKF_2.js} +1 -1
- package/dist/client/assets/preview-tab-COGaRa7u.js +557 -0
- package/dist/client/assets/{product-picker-dialog-DCC_2JmD.js → product-picker-dialog-ChT9yEE7.js} +1 -1
- package/dist/client/assets/profile-CAs6IhMO.js +1 -0
- package/dist/client/assets/project-app-view-DviUlYP5.js +1 -0
- package/dist/client/assets/{project-apps-Dezyz6_N.js → project-apps-BilxhqpE.js} +1 -1
- package/dist/client/assets/{project-icon-BHn6Xq54.js → project-icon-DzSzNLot.js} +1 -1
- package/dist/client/assets/{project-index-5c8GGatg.js → project-index-CR5OwtEu.js} +1 -1
- package/dist/client/assets/project-reports-BbMJz4mc.js +1 -0
- package/dist/client/assets/project-tasks-BrJzU4LM.js +1 -0
- package/dist/client/assets/projects-CEBGkLTr.js +1 -0
- package/dist/client/assets/{projects-empty-state-Dh0sHuPd.js → projects-empty-state-BfmuFuvO.js} +1 -1
- package/dist/client/assets/{prompts-CYFmsiS6.js → prompts-NPG6oRsv.js} +1 -1
- package/dist/client/assets/record-editor-BwlyH5jZ.js +1 -0
- package/dist/client/assets/redirect-editor-DtY_MKxf.js +1 -0
- package/dist/client/assets/{reports-Cj91Mylc.js → reports-CYPX_k6p.js} +2 -2
- package/dist/client/assets/reports-DAi0HbOS.js +1 -0
- package/dist/client/assets/reports-onboarding-DKaCbtdm.js +1 -0
- package/dist/client/assets/reports-tab-_GtIHZiT.js +2 -0
- package/dist/client/assets/repositories-DsojF3_X.js +1 -0
- package/dist/client/assets/{repositories-C_7l-hzO.js → repositories-uWeQw1G7.js} +1 -1
- package/dist/client/assets/{repository-binding-VVfcdUiy.js → repository-binding-CBLNaLcn.js} +1 -1
- package/dist/client/assets/{repository-picker-By75IHJa.js → repository-picker-CXy0gwnT.js} +1 -1
- package/dist/client/assets/{require-capability-DEShAaY8.js → require-capability-_6vPPsFH.js} +1 -1
- package/dist/client/assets/{required-auth-layout-GSSn-bTA.js → required-auth-layout-Da-vkWUX.js} +1 -1
- package/dist/client/assets/{reset-password-eGGPXuZQ.js → reset-password-BMooX7J1.js} +1 -1
- package/dist/client/assets/{resizable-XeFzd9pk.js → resizable-CFBuzfqY.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-DQMxOocF.js → resolve-tab-icon-DYcddXtb.js} +1 -1
- package/dist/client/assets/{review-settings-BOoUlwEx.js → review-settings-lJuLTN9Z.js} +1 -1
- package/dist/client/assets/{role-color-D-S7Ra1A.js → role-color-C2OQmHte.js} +1 -1
- package/dist/client/assets/roles-KUKC8vim.js +1 -0
- package/dist/client/assets/route-BLThcLzr.js +1 -0
- package/dist/client/assets/route-C9UFcNus.js +1 -0
- package/dist/client/assets/route-CC0eCWn4.js +1 -0
- package/dist/client/assets/{route-page-header-BqA32d57.js → route-page-header-9cHtL5F_.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-CkSQDoxX.js → sandbox-git-api-C63hYsFx.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-BBz4IKVo.js → sandbox-lifecycle-context-BBxxjkfA.js} +1 -1
- package/dist/client/assets/{save-status-CmYiPWXE.js → save-status-DSROJg37.js} +1 -1
- package/dist/client/assets/{schema-CCpL_LVZ.js → schema-BsNip7cg.js} +1 -1
- package/dist/client/assets/{schema-B0biNpls.js → schema-DFozZ1Hz.js} +1 -1
- package/dist/client/assets/{scroll-area-bkCFS0v8.js → scroll-area-pLrQCixi.js} +1 -1
- package/dist/client/assets/{search-input-C4sd-kKh.js → search-input-C2u6aF8T.js} +1 -1
- package/dist/client/assets/{search-toggle-rjC0c-Iy.js → search-toggle-CrQFK2VP.js} +1 -1
- package/dist/client/assets/{secret-picker-ujhqmuU6.js → secret-picker-Dv9xQHYk.js} +1 -1
- package/dist/client/assets/{secrets-CUx_W408.js → secrets-DB4lMKjl.js} +1 -1
- package/dist/client/assets/{section-array-field-DOngDm8U.js → section-array-field-DeyNfEV2.js} +1 -1
- package/dist/client/assets/{sections-DmtYqnPM.js → sections-DOqOQtJh.js} +1 -1
- package/dist/client/assets/sections-editor-Cw3wqkPx.js +1 -0
- package/dist/client/assets/{select-BkYZ4NYA.js → select-CKROachj.js} +1 -1
- package/dist/client/assets/{select-model-BNVZsPuq.js → select-model-BWtBiL3W.js} +1 -1
- package/dist/client/assets/{seo-editor-D-DOTzeP.js → seo-editor-DIdnRSzC.js} +1 -1
- package/dist/client/assets/{separator-DTKXzVmt.js → separator-DfXZNxTX.js} +1 -1
- package/dist/client/assets/{session-runtime-HHtypsTM.js → session-runtime-gzzgn7Pj.js} +1 -1
- package/dist/client/assets/settings-tab-BHrFLzvD.js +1 -0
- package/dist/client/assets/{sheet-Lq2qXLx8.js → sheet-DUgkYIwI.js} +1 -1
- package/dist/client/assets/{shell-layout-rYoN4RTk.js → shell-layout-4H95PNNw.js} +1 -1
- package/dist/client/assets/{site-draft-actions-D72ZWrGI.js → site-draft-actions-k_cj-bS_.js} +1 -1
- package/dist/client/assets/{site-draft-view-DdS4HrBp.js → site-draft-view-LE30E0qM.js} +1 -1
- package/dist/client/assets/site-editor-e8Hx_Aj4.js +1 -0
- package/dist/client/assets/{site-editor-toast-aupfR4Aq.js → site-editor-toast-Ynfp7Kjt.js} +1 -1
- package/dist/client/assets/skills-CDREZcnF.js +1 -0
- package/dist/client/assets/{slider-B4bXP1H_.js → slider-Bw577vCx.js} +1 -1
- package/dist/client/assets/{sortable.esm-n9zdQXyB.js → sortable.esm-CykrOV-3.js} +1 -1
- package/dist/client/assets/{sso-DIU8j1zk.js → sso-Cj24TaPV.js} +1 -1
- package/dist/client/assets/{suggestion-Nntdxi5T.js → suggestion-B9R_Jc1V.js} +1 -1
- package/dist/client/assets/{super-agent-icon-DHSnZQuw.js → super-agent-icon-DPyVQnGV.js} +1 -1
- package/dist/client/assets/{switch-COjzxQ39.js → switch-B_2aZNJw.js} +1 -1
- package/dist/client/assets/{synced-repos-s5ovH7Qr.js → synced-repos-CXSZMJ0F.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-CvvfUXQl.js → tab-icon-glyph-B4eeZpT6.js} +1 -1
- package/dist/client/assets/{table-DQIAY6r-.js → table-DsirtjTQ.js} +1 -1
- package/dist/client/assets/{tabs-CbfCGlFS.js → tabs-YBRFhTvN.js} +1 -1
- package/dist/client/assets/{task-board-DEUSGytR.js → task-board-DK1K-Mbd.js} +1 -1
- package/dist/client/assets/{task-key-DaPOId6s.js → task-key-DZxJr9g6.js} +1 -1
- package/dist/client/assets/{task-route-BJj40Yza.js → task-route-Cqr8SKPq.js} +1 -1
- package/dist/client/assets/{task-status-B6WfZxUN.js → task-status-bozQW5wT.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-UnAzvxoh.js → taskboard-analytics-CBkUVAdj.js} +1 -1
- package/dist/client/assets/{tasks-vny6IFm0.js → tasks-ALHYjofA.js} +1 -1
- package/dist/client/assets/tasks-DtEwdEBz.js +1 -0
- package/dist/client/assets/{textarea-CcO-rfag.js → textarea-BJdJh9he.js} +1 -1
- package/dist/client/assets/thread-analytics-D1D-pLk-.js +1 -0
- package/dist/client/assets/{thread-button-DbVaWztE.js → thread-button-DZPQxeV0.js} +1 -1
- package/dist/client/assets/{thread-intent-CyH0Z8_7.js → thread-intent-GDKuN4r8.js} +1 -1
- package/dist/client/assets/{thread-route-Dw1cQjON.js → thread-route-9-m2-1gn.js} +1 -1
- package/dist/client/assets/thread-route-pIQL1n8l.js +1 -0
- package/dist/client/assets/{thread-sheet-body-C6XCaB8H.js → thread-sheet-body-j2UKM_n_.js} +1 -1
- package/dist/client/assets/{time-range-picker-C45MZ0gR.js → time-range-picker-BUjru-02.js} +1 -1
- package/dist/client/assets/{toggle-group-DFyE84bx.js → toggle-group-C134tdMJ.js} +1 -1
- package/dist/client/assets/{tool-set-selector-BgHdncVU.js → tool-set-selector-CxmO1N2o.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BroRQfDx.js → toolbar-icon-button-dQBEwFVn.js} +1 -1
- package/dist/client/assets/{tooltip-DnGqcvtu.js → tooltip-CqEoC-F2.js} +1 -1
- package/dist/client/assets/{tooltipContext-BVc6eTu_.js → tooltipContext-BdzlPUCu.js} +1 -1
- package/dist/client/assets/{track-ENeykFhY.js → track-Drgb4ZQ6.js} +1 -1
- package/dist/client/assets/{types-B4ln4I1a.js → types-DF2iMJoX.js} +1 -1
- package/dist/client/assets/{url-slug-BCxEu7m_.js → url-slug-pPnhQQlO.js} +1 -1
- package/dist/client/assets/{usage-stats-C5Wj6kIy.js → usage-stats-BHc1sfxR.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BG5EDM0R.js → use-ai-providers-Khsm6etv.js} +1 -1
- package/dist/client/assets/{use-api-keys-CjwRm6n8.js → use-api-keys-CktIN6Ip.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-BH9tV1RN.js → use-apply-named-rule-BH_mAqzD.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-SQXk6mVC.js +1 -0
- package/dist/client/assets/{use-automations-D4bJmUmE.js → use-automations-it-dxpVL.js} +1 -1
- package/dist/client/assets/{use-autosave-Dq8gUNzN.js → use-autosave-DFZMnBbI.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-GUlVOp3p.js +1 -0
- package/dist/client/assets/use-blog-view-Bm6F2c8c.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-D38zRykR.js → use-chat-layout-state-CyAMAqyg.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-Bf5Y1rJL.js → use-cms-publish-actions-DGbVdkLh.js} +1 -1
- package/dist/client/assets/{use-connect-companion-leNqQRzW.js → use-connect-companion-C-Jq7bdY.js} +1 -1
- package/dist/client/assets/{use-connection-C4G0ZMoe.js → use-connection-BJP9eCiw.js} +1 -1
- package/dist/client/assets/{use-content-sync-CeYI53r8.js → use-content-sync-hirvqHbx.js} +1 -1
- package/dist/client/assets/{use-copy-BFeXylk9.js → use-copy-Bh0jH9rH.js} +1 -1
- package/dist/client/assets/{use-current-view-swKX6Bc6.js → use-current-view-xnQlJLn5.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DX45EO9I.js → use-date-fns-locale-D_OgIl71.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BVXsg1Of.js → use-debounced-autosave-BCqW4nkA.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CPl0Wyl6.js → use-debounced-value-q_QhUSeI.js} +1 -1
- package/dist/client/assets/{use-deco-credits-C4mVYU5r.js → use-deco-credits-DrzaNgs_.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-SRdggwTs.js → use-decopilot-events-TX8jybTQ.js} +1 -1
- package/dist/client/assets/{use-delete-block-CRyG6Do-.js → use-delete-block-BINjsTY1.js} +1 -1
- package/dist/client/assets/{use-delete-connection-C-kXdkQA.js → use-delete-connection-Ch7Fpvpo.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-Dwt-RYsg.js → use-deployment-admin-h6uBbZPp.js} +1 -1
- package/dist/client/assets/{use-entitlements-DgXhk8I6.js → use-entitlements-B_976V5P.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-DtikvUh-.js → use-fast-preview-draft-url-CQuFD5Lq.js} +1 -1
- package/dist/client/assets/{use-file-configs-BlRaUlfc.js → use-file-configs-iPUyCrpd.js} +1 -1
- package/dist/client/assets/{use-id-selection-CJdNm4ZY.js → use-id-selection-DnYJXQwW.js} +1 -1
- package/dist/client/assets/{use-in-settings-cNZb_oio.js → use-in-settings-DvVa8LTW.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-BKl_0o2v.js → use-inbox-feed-C2oj6HbE.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DgSz0aNh.js → use-infinite-scroll-BcBSkfyb.js} +1 -1
- package/dist/client/assets/{use-join-requests-pUhubFwu.js → use-join-requests-D2xu_Ec9.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-B0lMlgyK.js → use-main-panel-tabs-PrqkAqrJ.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BLLNsVrE.js → use-mcp-auth-status-CVLoS2DG.js} +1 -1
- package/dist/client/assets/{use-mcp-client-UWOU8UbZ.js → use-mcp-client-DVaNUeKZ.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CjwiiUTx.js → use-mcp-prompts-mR07NyXv.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-C7Kg2Nto.js → use-mcp-tools-DAzNJiwR.js} +1 -1
- package/dist/client/assets/{use-mobile-Cq1k3-Gk.js → use-mobile-YQVdSq9V.js} +1 -1
- package/dist/client/assets/{use-move-blocks-DH3gSdil.js → use-move-blocks-B5nRM-da.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-vJOwimSb.js → use-navigate-to-agent-O2aekGtL.js} +1 -1
- package/dist/client/assets/{use-never-published-BB5kYeS3.js → use-never-published-WdNVjWmr.js} +1 -1
- package/dist/client/assets/{use-org-fs-CAHuTLc_.js → use-org-fs-DcqFgCaV.js} +1 -1
- package/dist/client/assets/{use-org-notice-D_lLzWXp.js → use-org-notice-D_lzrT1v.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BxGs1Gi_.js → use-org-repo-syncs-CXR8xOyz.js} +1 -1
- package/dist/client/assets/{use-org-sso-fZ2uDAIp.js → use-org-sso-Fbk8Wwq4.js} +1 -1
- package/dist/client/assets/{use-organization-settings-D8JbZGlQ.js → use-organization-settings-DYnwG033.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-B3thngCs.js → use-panel-navigate-DYNTPDzL.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-BKZJ0lpX.js → use-project-native-view-presence-BWo3tL86.js} +1 -1
- package/dist/client/assets/{use-project-scope-CD-cb4-V.js → use-project-scope-Zk4IP7B6.js} +1 -1
- package/dist/client/assets/{use-recent-apps-Co5DoIGT.js → use-recent-apps-CGvNAmsp.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-lGxrsSfr.js → use-reports-diagnostic-DYiqS51Q.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-BcrE-YTF.js → use-sandbox-events--EgmreWQ.js} +1 -1
- package/dist/client/assets/{use-secrets-yIZbpwIn.js → use-secrets-BcD5BTqH.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-C2vE3o4z.js → use-section-preview-base-QYSyjVux.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-Bo3tE9bK.js → use-sidebar-collapsed-DIdfXbOr.js} +1 -1
- package/dist/client/assets/{use-tags-BQcMuDty.js → use-tags-a6kkz9Aj.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-CIahrWuX.js → use-task-board-analytics-CXDDOLeW.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-W9kboyPg.js → use-task-board-item-prs-CmeNcFe2.js} +1 -1
- package/dist/client/assets/{use-task-board-items-DP6ZFnrN.js → use-task-board-items-TENQt5cS.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-qQB1KZ8p.js → use-task-board-prompts-Dq_lA2pC.js} +1 -1
- package/dist/client/assets/{use-task-metadata-C2UpEUk-.js → use-task-metadata-C75UjZAF.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-A3ms5KEO.js → use-thread-outputs-he6CbGJb.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-CXMOqIBD.js → use-view-draft-kind-DfBSo4Ua.js} +1 -1
- package/dist/client/assets/{use-voice-input-poVZeRVs.js → use-voice-input-B9tq3K2A.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BVFlK8XX.js +1 -0
- package/dist/client/assets/{useQueries-DhONZGBj.js → useQueries-UpDYaK89.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CGXfA9jP.js +1 -0
- package/dist/client/assets/{users-B_cNHXhu.js → users-D5ojYrnY.js} +1 -1
- package/dist/client/assets/{utils-BdAsQahL.js → utils-Bsr3pAeq.js} +1 -1
- package/dist/client/assets/variant-calendar-CiQ54mcG.js +1 -0
- package/dist/client/assets/{variant-matcher-override-CxSxAvsY.js → variant-matcher-override-CylJ7vNA.js} +1 -1
- package/dist/client/assets/{view-header-CZchRX7c.js → view-header-BwRsIWg-.js} +1 -1
- package/dist/client/assets/{virtual-mcp-4VHtoaO4.js → virtual-mcp-BULA9FxB.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-C7kLS2GY.js → watch-sse-pool-BlWzBx5R.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/migrate.js +694 -389
- package/dist/server/server.js +1210 -905
- package/package.json +2 -1
- package/dist/client/assets/agent-app-Ch0m8w-u.js +0 -1
- package/dist/client/assets/agent-assets-COp9WevM.js +0 -1
- package/dist/client/assets/agent-automations-C02SU72h.js +0 -1
- package/dist/client/assets/agent-blog-post-BOz0k9l4.js +0 -2
- package/dist/client/assets/agent-blog-yxvdX-jE.js +0 -2
- package/dist/client/assets/agent-calendar-BrjcVSaH.js +0 -1
- package/dist/client/assets/agent-connect-sources-DhRc2-S_.js +0 -1
- package/dist/client/assets/agent-deck-BEYLEOzY.js +0 -1
- package/dist/client/assets/agent-e2e-w331hEXE.js +0 -1
- package/dist/client/assets/agent-experiments-CIRveYjB.js +0 -1
- package/dist/client/assets/agent-file-CRD-Yf8v.js +0 -1
- package/dist/client/assets/agent-hosting-Cf_5DVCs.js +0 -1
- package/dist/client/assets/agent-icon-DwJHakBB.js +0 -1
- package/dist/client/assets/agent-library-BDbVLVqf.js +0 -1
- package/dist/client/assets/agent-library-file-FdEtCyvQ.js +0 -1
- package/dist/client/assets/agent-overview-90jCAnhT.js +0 -1
- package/dist/client/assets/agent-settings-DazJIQdd.js +0 -1
- package/dist/client/assets/agent-site-editor-code-AxRnYsCW.js +0 -2
- package/dist/client/assets/agent-site-editor-content-Css28lBT.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-rUOwwi2z.js +0 -1
- package/dist/client/assets/agent-view-BwA2SWmb.js +0 -1
- package/dist/client/assets/api-keys-7ijHuhZV.js +0 -1
- package/dist/client/assets/app-editor-aGjbireC.js +0 -1
- package/dist/client/assets/auth-entry-QpiCG8Kt.js +0 -1
- package/dist/client/assets/automations-Dc36NZHt.js +0 -1
- package/dist/client/assets/category-editor-B7D8BVkO.js +0 -1
- package/dist/client/assets/choose-editor-DX9vd71s.js +0 -1
- package/dist/client/assets/cms-settings-editor-Cj7WfazE.js +0 -1
- package/dist/client/assets/collection-detail-Bq38QGfT.js +0 -1
- package/dist/client/assets/connection-detail-BZxu1Il4.js +0 -1
- package/dist/client/assets/connections-_2oGT26C.js +0 -1
- package/dist/client/assets/context-RVZVsnak.js +0 -1
- package/dist/client/assets/file-explorer-DbKxpql5.js +0 -2
- package/dist/client/assets/home-w1KhoL46.js +0 -1
- package/dist/client/assets/library-LpeL-fNK.js +0 -1
- package/dist/client/assets/login-COwI3GAk.js +0 -1
- package/dist/client/assets/oauth-consent-BJ9Jn7G7.js +0 -1
- package/dist/client/assets/openai-conversation-DoQ_2Seq.js +0 -3
- package/dist/client/assets/post-calendar-J6Cs6vQ8.js +0 -1
- package/dist/client/assets/preview-tab-BxZksZBr.js +0 -557
- package/dist/client/assets/profile-CU5pOHcx.js +0 -1
- package/dist/client/assets/project-app-view-Chii7rIX.js +0 -1
- package/dist/client/assets/project-reports-BhJG82JT.js +0 -1
- package/dist/client/assets/project-tasks-AXDig_Zb.js +0 -1
- package/dist/client/assets/projects-C19Wu8MK.js +0 -1
- package/dist/client/assets/record-editor-D2NFDCNZ.js +0 -1
- package/dist/client/assets/redirect-editor-D9WJKRVv.js +0 -1
- package/dist/client/assets/reports-C-kEainI.js +0 -1
- package/dist/client/assets/reports-onboarding-gB4My80z.js +0 -1
- package/dist/client/assets/reports-tab-CsHbv07d.js +0 -2
- package/dist/client/assets/repositories-L_Jm13il.js +0 -1
- package/dist/client/assets/roles-C8YQ1Aw2.js +0 -1
- package/dist/client/assets/route-DjlZ9cbf.js +0 -1
- package/dist/client/assets/route-lr7i-nM3.js +0 -1
- package/dist/client/assets/route-ojZJTNbW.js +0 -1
- package/dist/client/assets/sections-editor-DsX6y72K.js +0 -1
- package/dist/client/assets/settings-tab-B50Sia1R.js +0 -1
- package/dist/client/assets/site-editor-B6Bvzk4_.js +0 -1
- package/dist/client/assets/skills-Cyx-LBzb.js +0 -1
- package/dist/client/assets/tasks-BtIOVSMQ.js +0 -1
- package/dist/client/assets/thread-analytics-BUAtXNjP.js +0 -1
- package/dist/client/assets/thread-route-BjDCYf6b.js +0 -1
- package/dist/client/assets/use-ask-in-chat-C6eCNqgR.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-Dh0QtV4J.js +0 -1
- package/dist/client/assets/use-blog-view-w4rEUATy.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CNxlkxws.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-FHN2hj19.js +0 -1
- package/dist/client/assets/variant-calendar-DkWaMyhm.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as Et,j as s,b as Tt,r as _,au as It,m as Ot,h as Ft,t as wt}from"./index-DokE5sNF.js";import{u as Mt}from"./chat-context-Bo7uj7QO.js";import{u as Pt}from"./use-voice-input-B9tq3K2A.js";import{S as $t}from"./scroll-area-pLrQCixi.js";import{u as Ut,A as Vt}from"./use-section-preview-base-QYSyjVux.js";import{y as zt,l as Lt,t as qt}from"./blocks-tab-states-CFYo4clt.js";import{H as Ht,u as Dt,c as Gt,b as Wt,S as Zt}from"./held-block-view-BoX35XB_.js";import{b as Jt,u as Qt,k as Xt}from"./use-never-published-WdNVjWmr.js";import{n as Yt}from"./content-tab-DLB2Uvie.js";import{S as te}from"./save-status-DSROJg37.js";import"./use-panel-navigate-DYNTPDzL.js";import"./thread-route-9-m2-1gn.js";import"./use-project-scope-Zk4IP7B6.js";import"./repository-binding-CBLNaLcn.js";import"./use-mcp-client-DVaNUeKZ.js";import"./auth-CTQZGBnP.js";import"./use-view-draft-kind-DfBSo4Ua.js";import"./use-blog-view-Bm6F2c8c.js";import"./use-organization-settings-DYnwG033.js";import"./schema-BsNip7cg.js";import"./task-board-DK1K-Mbd.js";import"./thread-intent-GDKuN4r8.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BlWzBx5R.js";import"./session-runtime-gzzgn7Pj.js";import"./use-entitlements-B_976V5P.js";import"./use-ai-providers-Khsm6etv.js";import"./use-current-view-xnQlJLn5.js";import"./use-in-settings-DvVa8LTW.js";import"./use-decopilot-events-TX8jybTQ.js";import"./popover-BNjsYhzT.js";import"./drawer-DDCMGagW.js";import"./tooltip-CqEoC-F2.js";import"./index-BesTIQjb.js";import"./use-mobile-YQVdSq9V.js";import"./agent-icon-DA-Fg7pF.js";import"./AlertCircle-D_6mZhd3.js";import"./UserCheck01-DoVM7Q3H.js";import"./Tool01-DSm8VUO0.js";import"./ArrowUp-Hd6A0uf9.js";import"./ArrowLeft-DjgSByoQ.js";import"./ArrowRight-Du-vqw_x.js";import"./BookOpen01-gL1m_4-g.js";import"./Globe04-DEUqOfwK.js";import"./CheckCircle-12UwMq4H.js";import"./TrendUp01-Cb0Ss3qG.js";import"./ChevronDown-DeUpalBN.js";import"./ChevronSelectorVertical-DO-HHLr6.js";import"./ChevronUp-BzeZGyJH.js";import"./UserSquare-CeU_BqyG.js";import"./LinkBroken01-BdgK-qQO.js";import"./CreditCard01-C7IRKQGq.js";import"./File02-CFyU1pAb.js";import"./MessageCircle01-DVvYPWC-.js";import"./SwitchHorizontal01-DFAhxuil.js";import"./Eye-C1-H4NKN.js";import"./Fingerprint04-BmN62_tt.js";import"./Image01-D1EDWKnx.js";import"./Key01-tELScC1h.js";import"./LayoutLeft-551J-MO9.js";import"./Minus-CwITAxnt.js";import"./Monitor01-Cj8V3TAw.js";import"./Sun-DJ9HokSi.js";import"./Play-R1uGwJ-1.js";import"./Plus-B-S-SZ1j.js";import"./SearchMd-BIZLsFUb.js";import"./ShoppingBag01-bCe9ug4u.js";import"./Trash01-DmArjRF_.js";import"./Upload01-C0hxLVoS.js";import"./Users01-CxZDOmOJ.js";import"./XClose-lVRJTaql.js";import"./Zap-Cnh7YlUV.js";import"./index-DdVVtGb-.js";import"./checkbox-CouJku1L.js";import"./select-CKROachj.js";import"./index-BdQq_4o_.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./site-editor-toast-Ynfp7Kjt.js";import"./use-sandbox-events--EgmreWQ.js";import"./sandbox-url-D3mC8qhT.js";import"./use-blocks-v8-project-GUlVOp3p.js";import"./utils-Bsr3pAeq.js";import"./sandbox-git-api-C63hYsFx.js";import"./empty-state-BwwrJHKq.js";import"./calendar-C8iDoCnd.js";import"./textarea-BJdJh9he.js";import"./usage-stats-BHc1sfxR.js";import"./utils-CVEq3hMx.js";import"./markdown-CDaD-85D.js";import"./use-copy-Bh0jH9rH.js";import"./gateway-client-BWWNWG13.js";import"./form-DTFwvxGa.js";import"./label-CELn1y0I.js";import"./editor-classes-CLvZguOr.js";import"./switch-B_2aZNJw.js";import"./task-key-DZxJr9g6.js";import"./sortable.esm-CykrOV-3.js";import"./toggle-group-C134tdMJ.js";import"./active-indicator-CCMhAsc_.js";import"./empty-message-C5kN-FsM.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-COq-ZPQq.js";import"./collapsible-BQXIF7yl.js";import"./use-task-board-items-TENQt5cS.js";import"./config-B-dLgcud.js";import"./task-route-Cqr8SKPq.js";import"./project-index-CR5OwtEu.js";import"./shell-layout-4H95PNNw.js";import"./use-deployment-admin-h6uBbZPp.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-D_lzrT1v.js";import"./command-XtwrY353.js";import"./index-96oa6z-q.js";import"./integration-icon-CimWL0HB.js";import"./project-icon-DzSzNLot.js";import"./use-navigate-to-agent-O2aekGtL.js";import"./use-debounced-value-q_QhUSeI.js";import"./new-project-dialog-B-GOkKGZ.js";import"./repository-picker-CXy0gwnT.js";import"./github-icon-CAEaNNXe.js";import"./useInfiniteQuery-BVFlK8XX.js";import"./infiniteQueryObserver-BXbGEZ4N.js";import"./collection-search-DHGaqJoX.js";import"./new-project-store-BPGzwGDe.js";import"./legacy-admin-welcome-dialog-Xn47ClHz.js";import"./required-auth-layout-Da-vkWUX.js";import"./use-org-sso-Fbk8Wwq4.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BS-4Ud35.js";import"./types-DF2iMJoX.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./sheet-DUgkYIwI.js";import"./use-connection-BJP9eCiw.js";import"./use-mcp-prompts-mR07NyXv.js";import"./use-thread-outputs-he6CbGJb.js";import"./file-type-icon-CfPI0k5H.js";import"./section-array-field-DeyNfEV2.js";import"./named-rule-step-yZefk1L5.js";import"./slider-Bw577vCx.js";import"./index-x-5-P0v0.js";import"./tooltipContext-BdzlPUCu.js";import"./CategoricalChart-FLgBKuSu.js";import"./index-C3kpYdOE.js";import"./combobox-5tUoYNvN.js";import"./match-site-slug-config-B47_xZCi.js";import"./use-file-configs-iPUyCrpd.js";import"./asset-utils-DZv-FEec.js";import"./hosted-reconcile-DD1fLsOV.js";import"./search-input-C2u6aF8T.js";import"./tabs-YBRFhTvN.js";import"./delete-copy-DsDE5E3R.js";import"./category-tree-CoKnKzyW.js";import"./use-move-blocks-B5nRM-da.js";import"./index-C1rZOaeR.js";import"./view-header-BwRsIWg-.js";import"./use-cms-publish-actions-DGbVdkLh.js";import"./use-content-sync-hirvqHbx.js";import"./use-delete-block-BINjsTY1.js";import"./item-actions-Be-0vSN9.js";import"./date-utils-CrvIKg-s.js";import"./badge-CXWhQd3j.js";import"./empty-state-CiMt55-l.js";import"./monaco-editor-CnKR4oUp.js";import"./editor-CIB3F1gV.js";import"./sandbox-lifecycle-context-BBxxjkfA.js";import"./parse-sections-x0Kx4hiT.js";import"./mustache-9EZH88YQ.js";import"./collection-table-wrapper-nEvFtZNu.js";import"./table-DsirtjTQ.js";import"./agent-capabilities-DFVJwxaH.js";function ee(e,t){if(!e||!t?.length)return e;const o=Object.fromEntries(Object.entries(e.properties??{}).filter(([r])=>!t.includes(r)));return Object.keys(o).length>0?{...e,properties:o}:e}function _t(e,t,o){return typeof e!="string"?null:ee(zt(e,t),o)}function re(e,t,o){if(!t||typeof e!="string")return!1;const r=_t(e,t,o);return!!r&&Object.keys(r.properties??{}).length>0}function oe(e,t){const o=(e.title||e.resolveType.split("/").pop()||"").replace(/\.(tsx?|jsx?)$/,"").replace(/[^A-Za-z0-9_-]/g,""),r=/^[A-Za-z]/.test(o)&&o.length>0?o:"Section",i=Yt(t,r);return{blockKey:i,data:{__resolveType:e.resolveType,name:i}}}function vi(e){const t=Et.c(10),o=e.saveGuard?void 0:e.block!==void 0;let r;t[0]!==e?(r=s.jsx(ie,{...e}),t[0]=e,t[1]=r):r=t[1];let i;return t[2]!==e.blockKey||t[3]!==e.branch||t[4]!==e.decofile||t[5]!==e.orgSlug||t[6]!==e.virtualMcpId||t[7]!==o||t[8]!==r?(i=s.jsx(Ht,{listing:e.decofile,orgSlug:e.orgSlug,virtualMcpId:e.virtualMcpId,branch:e.branch,blockKey:e.blockKey,present:o,children:r}),t[2]=e.blockKey,t[3]=e.branch,t[4]=e.decofile,t[5]=e.orgSlug,t[6]=e.virtualMcpId,t[7]=o,t[8]=r,t[9]=i):i=t[9],i}function ie(e){const t=Et.c(95),{orgSlug:o,virtualMcpId:r,branch:i,blockKey:a,block:b,meta:m,decofile:c,title:At,excludeFields:v,previewBaseUrl:gt,notice:Z,saveGuard:J,persistDefaults:Q,schemaWaiting:St}=e,X=gt===void 0?null:gt,Y=St===void 0?!0:St,tt=Mt()?.taskId??null,h=Tt(),K=Pt(r);let R;t[0]!==i||t[1]!==X||t[2]!==r?(R={virtualMcpId:r,branch:i,sandboxUrl:X},t[0]=i,t[1]=X,t[2]=r,t[3]=R):R=t[3];const x=Ut(R),l=typeof b?.__resolveType=="string"?b.__resolveType:"";let N;t[4]!==v||t[5]!==m||t[6]!==l?(N=_t(l,m,v),t[4]=v,t[5]=m,t[6]=l,t[7]=N):N=t[7];const et=N;let C;t[8]!==v||t[9]!==m||t[10]!==l?(C=re(l,m,v),t[8]=v,t[9]=m,t[10]=l,t[11]=C):C=t[11];const rt=C;let T;t[12]!==m||t[13]!==l||t[14]!==Y||t[15]!==K?(T=Y&&l!==""&&!(K.resolved&&K.runtime==="cms")&&!Lt(l,m),t[12]=m,t[13]=l,t[14]=Y,t[15]=K,t[16]=T):T=t[16];const I=T,yt=At??(b?qt(a,b,m):a);let O;t[17]!==i||t[18]!==o||t[19]!==r?(O={orgSlug:o,virtualMcpId:r,branch:i},t[17]=i,t[18]=o,t[19]=r,t[20]=O):O=t[20];let F;t[21]!==J?(F={guard:J,holdsCopy:!0},t[21]=J,t[22]=F):F=t[22];const{save:ot,flush:it,isPending:st}=Jt(O,F);let M;t[23]!==i||t[24]!==o||t[25]!==r?(M={orgSlug:o,virtualMcpId:r,branch:i},t[23]=i,t[24]=o,t[25]=r,t[26]=M):M=t[26];const mt=Qt(M);let P;t[27]!==i||t[28]!==o||t[29]!==r?(P={orgSlug:o,virtualMcpId:r,branch:i},t[27]=i,t[28]=o,t[29]=r,t[30]=P):P=t[30];const nt=Dt(P,c).save,[Kt,Rt]=_.useState(a),[lt,kt]=_.useState(null),[pt,jt]=_.useState(0);let $;t[31]===Symbol.for("react.memo_cache_sentinel")?($=[],t[31]=$):$=t[31];const[g,Bt]=_.useState($),[at,d]=_.useState(!1),U=_.useRef(null);Kt!==a&&(Rt(a),kt(null),jt(me),Bt([]));let V;t[32]!==b?(V=b??{},t[32]=b,t[33]=V):V=t[33];const ct=V;let S;t[34]!==lt?(S=lt??{},t[34]=lt,t[35]=S):S=t[35];let z;t[36]!==ct||t[37]!==S?(z={...ct,...S},t[36]=ct,t[37]=S,t[38]=z):z=t[38];const dt=z;let L;t[39]!==a||t[40]!==l||t[41]!==ot?(L=n=>{const p=n;kt(p),ot(a,{...p,__resolveType:l})},t[39]=a,t[40]=l,t[41]=ot,t[42]=L):L=t[42];const ut=L;let q;t[43]===Symbol.for("react.memo_cache_sentinel")?(q=n=>{Bt(n)},t[43]=q):q=t[43];const A=q;let H;t[44]!==c||t[45]!==it||t[46]!==mt||t[47]!==h?(H=async(n,p)=>{try{const{blockKey:u,data:f}=oe(n,c),vt=await mt.mutateAsync({blockKey:u,data:f});Xt(vt)||wt.success(h("sandbox.appEditor.createdSection",{name:u})),p({__resolveType:u}),it()}catch(u){const f=u,vt=f instanceof Error?f.message:h("sandbox.appEditor.failedAddSection");throw wt.error(vt),f}},t[44]=c,t[45]=it,t[46]=mt,t[47]=h,t[48]=H):H=t[48];const y=H;let D;t[49]!==d?(D=n=>{U.current=n.append,d(!0)},t[49]=d,t[50]=D):D=t[50];const ft=D;let G;t[51]!==y||t[52]!==d?(G=async n=>{const p=U.current;if(p)try{await y(n,u=>{p(u),d(!1),U.current=null})}catch{}},t[51]=y,t[52]=d,t[53]=G):G=t[53];const ht=G,bt=g.length>0?[yt,...g]:[],Nt="flex h-full flex-col",Ct="flex h-12 shrink-0 items-center justify-between border-b px-6",xt=bt.length>0?s.jsx("nav",{"aria-label":h("sandbox.appEditor.editingBreadcrumb"),className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:bt.map((n,p)=>{const u=p===bt.length-1,f=Gt(n);return s.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[p>0&&s.jsx(It,{className:"size-3 shrink-0 text-muted-foreground/60"}),s.jsx("button",{type:"button",onClick:()=>{A(p===0?[]:Wt(g,p)),jt(se)},title:f,className:Ot("min-w-0 truncate rounded-lg px-1 py-0.5 text-left transition-colors",u?"font-medium text-foreground":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:f})]},`${f}-${p}`)})}):s.jsx("span",{className:"text-sm font-medium",children:yt});let k;t[54]!==st?(k=s.jsx(te,{isPending:st,isError:!1}),t[54]=st,t[55]=k):k=t[55];let j;t[56]!==xt||t[57]!==k?(j=s.jsxs("div",{className:Ct,children:[xt,k]}),t[56]=xt,t[57]=k,t[58]=j):j=t[58];let B;t[59]!==I||t[60]!==a||t[61]!==i||t[62]!==g||t[63]!==c||t[64]!==dt||t[65]!==pt||t[66]!==y||t[67]!==A||t[68]!==ut||t[69]!==ft||t[70]!==rt||t[71]!==m||t[72]!==o||t[73]!==Q||t[74]!==nt||t[75]!==et||t[76]!==x||t[77]!==h||t[78]!==tt||t[79]!==r?(B=rt?s.jsx(Zt,{schema:et,value:dt,onChange:ut,persistDefaults:Q,basePath:"",breadcrumbPath:g,onBreadcrumbChange:A,decofile:c,meta:m,onSaveReferencedBlock:nt,previewBaseUrl:x,onAddSectionItem:y,onRequestAddSection:ft,sandbox:{orgSlug:o,virtualMcpId:r,branch:i,threadId:tt}},`${a}:${pt}`):s.jsxs("div",{className:"flex flex-col items-center gap-3 py-6 text-center text-xs text-muted-foreground",children:[I&&s.jsx(Ft,{className:"size-4"}),s.jsx("p",{children:h(I?"sandbox.appEditor.schemaAwaitsBuild":"sandbox.appEditor.noEditableSchema")})]}),t[59]=I,t[60]=a,t[61]=i,t[62]=g,t[63]=c,t[64]=dt,t[65]=pt,t[66]=y,t[67]=A,t[68]=ut,t[69]=ft,t[70]=rt,t[71]=m,t[72]=o,t[73]=Q,t[74]=nt,t[75]=et,t[76]=x,t[77]=h,t[78]=tt,t[79]=r,t[80]=B):B=t[80];let w;t[81]!==Z||t[82]!==B?(w=s.jsx($t,{className:"min-h-0 min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:s.jsx("div",{className:"px-6 py-6",children:s.jsxs("div",{className:"mx-auto max-w-xl",children:[Z,B]})})}),t[81]=Z,t[82]=B,t[83]=w):w=t[83];let E;t[84]!==at||t[85]!==c||t[86]!==ht||t[87]!==m||t[88]!==x||t[89]!==d?(E=x&&s.jsx(Vt,{open:at,onOpenChange:n=>{d(n),n||(U.current=null)},meta:m,decofile:c,previewBaseUrl:x,onSelect:n=>{ht(n)}}),t[84]=at,t[85]=c,t[86]=ht,t[87]=m,t[88]=x,t[89]=d,t[90]=E):E=t[90];let W;return t[91]!==j||t[92]!==w||t[93]!==E?(W=s.jsxs("div",{className:Nt,children:[j,w,E]}),t[91]=j,t[92]=w,t[93]=E,t[94]=W):W=t[94],W}function se(e){return e+1}function me(e){return e+1}export{vi as AppEditor};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,a6 as m,e as p,am as y,K as I,q as P,b as $,j as g,B as v}from"./index-
|
|
1
|
+
import{c as d,a6 as m,e as p,am as y,K as I,q as P,b as $,j as g,B as v}from"./index-DokE5sNF.js";import{u as C}from"./useInfiniteQuery-BVFlK8XX.js";function k(t){const e=d.c(17),{org:r}=m(),i=y();let s,n,o,c;e[0]!==r.id||e[1]!==t.configId||e[2]!==t.imageOnly||e[3]!==t.search?(n=t.search?.trim()||void 0,s=t.imageOnly??!1,c=C,o=I.filePickerObjects(r.id,t.configId,n,s),e[0]=r.id,e[1]=t.configId,e[2]=t.imageOnly,e[3]=t.search,e[4]=s,e[5]=n,e[6]=o,e[7]=c):(s=e[4],n=e[5],o=e[6],c=e[7]);const a=t.enabled!==!1&&!!t.configId;let l;e[8]!==s||e[9]!==t.configId||e[10]!==n||e[11]!==i?(l=async u=>{const{pageParam:x}=u;return await i.call("FILE_OBJECTS_LIST",{configId:t.configId,cursor:x??void 0,search:n,imageOnly:s||void 0})},e[8]=s,e[9]=t.configId,e[10]=n,e[11]=i,e[12]=l):l=e[12];let f;return e[13]!==o||e[14]!==a||e[15]!==l?(f={queryKey:o,enabled:a,staleTime:3e4,initialPageParam:null,queryFn:l,getNextPageParam:E},e[13]=o,e[14]=a,e[15]=l,e[16]=f):f=e[16],c(f)}function E(t){return t.nextCursor??void 0}function D(){const t=d.c(2),{org:e}=m();let r;return t[0]!==e?(r={mutationFn:async i=>{const s=i.file.type||"application/octet-stream",n=i.replaceKey?`replace=${encodeURIComponent(i.replaceKey)}`:`filename=${encodeURIComponent(i.file.name)}`,o=await fetch(`/api/${encodeURIComponent(e.slug)}/file-configs/${encodeURIComponent(i.configId)}/upload?${n}`,{method:"POST",headers:{"Content-Type":s},body:i.file});if(!o.ok){const c=await o.text().catch(O);let a=`${o.status} ${o.statusText}`;try{const l=JSON.parse(c);l.message&&(a=l.message)}catch{c&&(a=c.slice(0,200))}throw new Error(`Upload failed: ${a}`)}return await o.json()}},t[0]=e,t[1]=r):r=t[1],p(r)}function O(){return""}function K(){const t=d.c(8),{org:e}=m(),r=y(),i=P();let s;t[0]!==r?(s=c=>r.call("FILE_OBJECT_DELETE",c),t[0]=r,t[1]=s):s=t[1];let n;t[2]!==e||t[3]!==i?(n=(c,a)=>{i.invalidateQueries({queryKey:I.filePickerObjectsByConfig(e.id,a.configId)})},t[2]=e,t[3]=i,t[4]=n):n=t[4];let o;return t[5]!==s||t[6]!==n?(o={mutationFn:s,onSuccess:n},t[5]=s,t[6]=n,t[7]=o):o=t[7],p(o)}function R(t){const e=d.c(14),{denied:r,retrying:i,onRetry:s}=t,n=$(),o=r?"filePicker.filePickerDialog.listingDenied":"filePicker.filePickerDialog.listingFailed";let c;e[0]!==n||e[1]!==o?(c=n(o),e[0]=n,e[1]=o,e[2]=c):c=e[2];let a;e[3]!==c?(a=g.jsx("p",{className:"text-sm text-muted-foreground",children:c}),e[3]=c,e[4]=a):a=e[4];let l;e[5]!==n?(l=n("filePicker.filePickerDialog.retryListing"),e[5]=n,e[6]=l):l=e[6];let f;e[7]!==s||e[8]!==i||e[9]!==l?(f=g.jsx(v,{type:"button",variant:"outline",size:"sm",disabled:i,onClick:s,children:l}),e[7]=s,e[8]=i,e[9]=l,e[10]=f):f=e[10];let u;return e[11]!==a||e[12]!==f?(u=g.jsxs("div",{role:"alert",className:"rounded-lg border border-border p-4 space-y-3",children:[a,f]}),e[11]=a,e[12]=f,e[13]=u):u=e[13],u}function j(t){return/\.(png|jpe?g|gif|webp|svg|avif|bmp)$/i.test(t)}function F(t){return/\.(mp4|webm|mov|m4v|ogv)$/i.test(t)}function _(t){return j(t)?"image":F(t)?"video":"document"}function b(t){const e=t.lastIndexOf(".");return e<0||e===t.length-1?"file":t.slice(e+1).toLowerCase()}function w(t){const e=t.split("/");return e[e.length-1]??t}const T=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}-(?=.)/i;function L(t){return w(t).replace(T,"")}function h(t){const e=b(t);return e==="jpeg"?"jpg":e}function S(t,e){return h(t)===h(e)}function U(t,e){const r=e?Date.parse(e):Number.NaN;return Number.isNaN(r)?t:`${t}${t.includes("?")?"&":"?"}v=${r}`}function q(t,e){if(t.height<=0||e.height<=0)return!1;const r=t.width/t.height,i=e.width/e.height;return Math.abs(r-i)/i>.01}function J(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}export{R as B,k as a,w as b,_ as c,L as d,b as e,J as f,q as g,K as h,j as i,U as p,S as s,D as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bH as v,bI as $,bJ as W,bK as H,bL as V,bM as y,bN as D,bO as x,bP as E,bQ as q,bR as j,bS as N,bT as B,bU as Z,bV as F}from"./index-BuZqAz74.js";function J(e){const t=typeof e=="string"?new URL(e):new URL(e.href);return t.hash="",t}function G({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 K(e){return["client_secret_basic","client_secret_post","none"].includes(e)}const p="code",_="S256";function Q(e,t){const n=e.client_secret!==void 0;return"token_endpoint_auth_method"in e&&e.token_endpoint_auth_method&&K(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 Y(e,t,n,r){const{client_id:a,client_secret:i}=t;switch(e){case"client_secret_basic":X(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 X(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 L(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 v||n instanceof $)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 T(c,{fetchFn:i}),!o)try{o=await M(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 k=await de(c,{metadata:u,clientMetadata:e.clientMetadata,scope:A,fetchFn:i});await e.saveClientInformation(k),d=k}}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 S=await e.tokens();if(S?.refresh_token)try{const l=await le(c,{metadata:u,clientInformation:d,refreshToken:S.refresh_token,resource:f,addClientAuthentication:e.addClientAuthentication,fetchFn:i});return await e.saveTokens(l),"AUTHORIZED"}catch(l){if(!(!(l instanceof V)||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=J(e);if(t.validateResourceURL)return await t.validateResourceURL(r,n?.resource);if(n){if(!G({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 M(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 b(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??E;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 b(s,i,n);if(!r?.metadataUrl&&oe(o,a.pathname)){const c=new URL(`/.well-known/${t}`,a);o=await b(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 T(e,{fetchFn:t=fetch,protocolVersion:n=E}={}){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"?D.parse(await o.json()):x.parse(await o.json())}}}async function ce(e,t){let n,r;try{n=await M(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 T(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 P(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=Q(r,h);Y(f,r,c,n)}const u=await(s??fetch)(o,{method:"POST",headers:c,body:n});if(!u.ok)throw await L(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=P(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=P(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 L(s);return j.parse(await s.json())}export{pe as U,T as a,_e as b,Ue as c,M as d,me as e};
|
|
1
|
+
import{bH as v,bI as $,bJ as W,bK as H,bL as V,bM as y,bN as D,bO as x,bP as E,bQ as q,bR as j,bS as N,bT as B,bU as Z,bV as F}from"./index-DokE5sNF.js";function J(e){const t=typeof e=="string"?new URL(e):new URL(e.href);return t.hash="",t}function G({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 K(e){return["client_secret_basic","client_secret_post","none"].includes(e)}const p="code",_="S256";function Q(e,t){const n=e.client_secret!==void 0;return"token_endpoint_auth_method"in e&&e.token_endpoint_auth_method&&K(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 Y(e,t,n,r){const{client_id:a,client_secret:i}=t;switch(e){case"client_secret_basic":X(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 X(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 L(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 v||n instanceof $)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 T(c,{fetchFn:i}),!o)try{o=await M(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 k=await de(c,{metadata:u,clientMetadata:e.clientMetadata,scope:A,fetchFn:i});await e.saveClientInformation(k),d=k}}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 S=await e.tokens();if(S?.refresh_token)try{const l=await le(c,{metadata:u,clientInformation:d,refreshToken:S.refresh_token,resource:f,addClientAuthentication:e.addClientAuthentication,fetchFn:i});return await e.saveTokens(l),"AUTHORIZED"}catch(l){if(!(!(l instanceof V)||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=J(e);if(t.validateResourceURL)return await t.validateResourceURL(r,n?.resource);if(n){if(!G({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 M(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 b(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??E;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 b(s,i,n);if(!r?.metadataUrl&&oe(o,a.pathname)){const c=new URL(`/.well-known/${t}`,a);o=await b(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 T(e,{fetchFn:t=fetch,protocolVersion:n=E}={}){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"?D.parse(await o.json()):x.parse(await o.json())}}}async function ce(e,t){let n,r;try{n=await M(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 T(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 P(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=Q(r,h);Y(f,r,c,n)}const u=await(s??fetch)(o,{method:"POST",headers:c,body:n});if(!u.ok)throw await L(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=P(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=P(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 L(s);return j.parse(await s.json())}export{pe as U,T as a,_e as b,Ue as c,M as d,me as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,f as l,j as t,S as m,A as o,g as f,N as x}from"./index-
|
|
1
|
+
import{c as r,f as l,j as t,S as m,A as o,g as f,N as x}from"./index-DokE5sNF.js";function h(){const e=r.c(1),a=window.location.pathname+window.location.search;let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(x,{to:"/login",search:{next:a},replace:!0}),e[0]=n):n=e[0],n}function u(){const e=r.c(5);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={from:"/auth/$pathname"},e[0]=a):a=e[0];const{pathname:n}=l(a);if(n==="accept-invitation"){let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(m,{children:t.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:t.jsx(o,{pathname:"accept-invitation"})})}),e[1]=s):s=e[1];let i;return e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsxs(t.Fragment,{children:[s,t.jsx(f,{children:t.jsx(h,{})})]}),e[2]=i):i=e[2],i}let c;return e[3]!==n?(c=t.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:t.jsx(o,{pathname:n})}),e[3]=n,e[4]=c):c=e[4],c}export{u as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as $,c as ce,m as S,j as t,a3 as Ke,a4 as Ge,a5 as ke,r as N,e as te,E as M,B as se,I as ae,b as Fe,h as Ye}from"./index-DokE5sNF.js";import{i as Je}from"./Fingerprint04-BmN62_tt.js";import{e as Qe}from"./backoff-CrEUbyZT.js";import{d as Xe}from"./delay-CnY5UFtP.js";class Le extends Error{constructor(e,r){super(`Retrying exceeded the maxAttempts (${r}).`),this.name="RetryError",this.cause=e}}async function Ze(n,e){const{multiplier:r=2,maxTimeout:l=6e4,maxAttempts:g=5,minTimeout:m=1e3,jitter:i=1,isRetriable:u=()=>!0,signal:d}=e??{};if(!Number.isInteger(g)||g<1)throw new RangeError(`Cannot retry as 'maxAttempts' must be a positive integer: current value is ${g}`);if(!Number.isFinite(r)||r<1)throw new RangeError(`Cannot retry as 'multiplier' must be a finite number >= 1: current value is ${r}`);if(Number.isNaN(l)||l<=0)throw new RangeError(`Cannot retry as 'maxTimeout' must be a positive number: current value is ${l}`);if(Number.isNaN(m)||m<0)throw new RangeError(`Cannot retry as 'minTimeout' must be >= 0: current value is ${m}`);if(m>l)throw new RangeError(`Cannot retry as 'minTimeout' must be <= 'maxTimeout': current values 'minTimeout=${m}', 'maxTimeout=${l}'`);if(Number.isNaN(i)||i<0||i>1)throw new RangeError(`Cannot retry as 'jitter' must be between 0 and 1: current value is ${i}`);let b=0;for(;;){d?.throwIfAborted();try{return await n()}catch(f){if(!u(f))throw f;if(b+1>=g)throw new Le(f,g);const v=Qe(l,m,b,r,i);await Xe(v,d?{signal:d}:void 0)}b++}}const Oe={submitEmailPassword:({mode:n,email:e,password:r,name:l})=>n==="sign_up"?$.signUp.email({email:e,password:r,name:l||""}):$.signIn.email({email:e,password:r}),requestPasswordReset:({email:n,redirectTo:e})=>$.requestPasswordReset({email:n,redirectTo:e}),sendOtp:({email:n})=>$.emailOtp.sendVerificationOtp({email:n,type:"sign-in"}),submitOtp:({email:n,otp:e})=>$.signIn.emailOtp({email:n,otp:e}),socialSignIn:({provider:n,callbackURL:e})=>$.signIn.social({provider:n,callbackURL:e}),ssoSignIn:({providerId:n,callbackURL:e})=>$.signIn.sso({providerId:n,callbackURL:e}),passkeySignIn:()=>$.signIn.passkey(),onAuthenticated:n=>{window.location.href=n}};function et(n){const e=ce.c(25);let r,l,g,m,i,u,d,b;e[0]!==n?({length:g,className:r,containerClassName:l,slotClassName:i,pattern:u,inputMode:d,autoComplete:b,...m}=n,e[0]=n,e[1]=r,e[2]=l,e[3]=g,e[4]=m,e[5]=i,e[6]=u,e[7]=d,e[8]=b):(r=e[1],l=e[2],g=e[3],m=e[4],i=e[5],u=e[6],d=e[7],b=e[8]);const f=u===void 0?Ge:u,v=d===void 0?"numeric":d,p=b===void 0?"one-time-code":b;let h;e[9]!==l?(h=S("flex items-center gap-2 has-[:disabled]:opacity-50",l),e[9]=l,e[10]=h):h=e[10];let A;e[11]!==r?(A=S("disabled:cursor-not-allowed",r),e[11]=r,e[12]=A):A=e[12];let y;e[13]!==m||e[14]!==i?(y=x=>{const{slots:j}=x;return t.jsx(t.Fragment,{children:j.map((D,q)=>t.jsx(tt,{...D,invalid:m["aria-invalid"]===!0,className:i},q))})},e[13]=m,e[14]=i,e[15]=y):y=e[15];let w;return e[16]!==p||e[17]!==v||e[18]!==g||e[19]!==f||e[20]!==m||e[21]!==h||e[22]!==A||e[23]!==y?(w=t.jsx(Ke,{"data-slot":"input-otp",maxLength:g,pattern:f,inputMode:v,autoComplete:p,containerClassName:h,className:A,render:y,...m}),e[16]=p,e[17]=v,e[18]=g,e[19]=f,e[20]=m,e[21]=h,e[22]=A,e[23]=y,e[24]=w):w=e[24],w}function tt(n){const e=ce.c(13),{char:r,placeholderChar:l,hasFakeCaret:g,isActive:m,invalid:i,className:u}=n,d=m||void 0,b=i&&"bg-destructive/10 shadow-[inset_0_0_0_1px_var(--destructive)]";let f;e[0]!==u||e[1]!==b?(f=S("relative flex h-12 w-10 flex-1 items-center justify-center text-xl font-medium tabular-nums text-foreground transition-[background-color,box-shadow]","rounded-[var(--studio-control-radius,var(--radius-lg))] bg-[var(--studio-input-background)] shadow-edge","data-active:shadow-[inset_0_0_0_2px_var(--ring)]",b,u),e[0]=u,e[1]=b,e[2]=f):f=e[2];let v;e[3]!==r||e[4]!==l?(v=r??t.jsx("span",{className:"text-subtle-foreground",children:l}),e[3]=r,e[4]=l,e[5]=v):v=e[5];let p;e[6]!==g?(p=g&&t.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:t.jsx("div",{className:"h-5 w-px animate-pulse bg-foreground"})}),e[6]=g,e[7]=p):p=e[7];let h;return e[8]!==d||e[9]!==f||e[10]!==v||e[11]!==p?(h=t.jsxs("div",{"data-slot":"input-otp-slot","data-active":d,className:f,children:[v,p]}),e[8]=d,e[9]=f,e[10]=v,e[11]=p,e[12]=h):h=e[12],h}const de="font-medium text-[#8CAA25] hover:underline disabled:opacity-50",st={signUpFailed:"Sign up failed",signInFailed:"Sign in failed",authenticationFailed:"Authentication failed",resetEmailFailed:"Failed to send reset email",otpSendFailed:"Failed to send code",invalidCode:"Invalid code",invalidEmail:"Invalid email address",invalidEmailOrPassword:"Invalid email or password. Please try again.",accountExists:"An account with this email already exists. Try signing in instead.",networkError:"Network error. Please check your connection and try again.",tooManyAttempts:"Too many attempts. Please wait a moment and try again.",invalidOrExpiredCode:"Invalid or expired code. Please try again.",genericError:"An error occurred. Please try again.",resetPasswordTitle:"Reset your password",verificationCodeTitle:"Enter verification code",welcomeTitle:"Welcome to deco",resetPasswordSubtitle:"We'll send you a reset link",codeSentTo:n=>`Code sent to ${n}`,defaultSubtitle:"Sign in or create a new account",resetEmailSent:"Check your email for a password reset link.",continueWith:n=>`Continue with ${n}`,divider:"or",emailLabel:"Email",emailPlaceholder:"Email address",sending:"Sending...",sendCode:"Send code",verificationCodeLabel:"Verification code",verifying:"Verifying...",useDifferentEmail:"Use a different email",sendResetLink:"Send reset link",nameLabel:"Name",namePlaceholder:"Your name",passwordLabel:"Password",forgotPassword:"Forgot password?",creatingAccount:"Creating account...",signingIn:"Signing in...",continue:"Continue",backToSignIn:"Back to sign in",signInWithPassword:"Sign in with password instead",alreadyHaveAccount:"Already have an account? ",dontHaveAccount:"Don't have an account? ",signIn:"Sign in",signUp:"Sign up",signInWithEmailCode:"Sign in with email code",signInWithPasskey:"Sign in with a passkey"};function at({redirectUrl:n,callbackUrl:e="/",title:r,subtitle:l,brand:g,copy:m,variant:i="default",allowedSocialProviders:u,allowPassword:d=!0,onAuthEvent:b,actions:f}){const{emailAndPassword:v,resetPassword:p,emailOtp:h,passkey:A,socialProviders:y}=ke(),w={...Oe,...f},x=s=>{try{b?.(s)}catch{}},j=i==="compact",D=u?y.providers.filter(s=>u.includes(s.name)):y.providers,q=y.enabled&&D.length>0,me=v.enabled&&(d||!h.enabled&&!q),_=y.enabled&&y.providers.length>0&&!q&&!h.enabled&&!me?y.providers:D,T=y.enabled&&_.length>0,k=v.enabled&&(d||!h.enabled&&!T),F=A.enabled&&d&&typeof globalThis.PublicKeyCredential<"u",W=T||F,[c,ne]=N.useState(""),[ie,Re]=N.useState(""),[ue,be]=N.useState(""),[ge,re]=N.useState(""),[Y,he]=N.useState(!1),[pe,$e]=N.useState(()=>h.enabled?"emailOtp":globalThis.localStorage?.getItem("hasLoggedIn")!=="true"?"signUp":"signIn"),[C,B]=N.useState(""),[ve,we]=N.useState(!1),[Me,oe]=N.useState(null),a={...st,...m},z=N.useId(),V=`${z}-email`,H=`${z}-email-error`,ye=`${z}-name`,Ee=`${z}-password`,Se=`${z}-otp`,je=`${z}-otp-status`,I=pe==="signUp",R=pe==="forgotPassword",L=pe==="emailOtp",J=te({mutationFn:async({email:s,password:o,name:O})=>{try{const G=await w.submitEmailPassword({mode:I?"sign_up":"sign_in",email:s,password:o,name:O});if(G.error)throw new Error(G.error.message||(I?a.signUpFailed:a.signInFailed));return G}catch(G){throw G instanceof Error?G:new Error(a.authenticationFailed)}},onMutate:()=>{x({type:"started",method:"email_password",mode:I?"sign_up":"sign_in"})},onSuccess:()=>{x({type:"succeeded",method:"email_password",mode:I?"sign_up":"sign_in"}),globalThis.localStorage?.setItem("hasLoggedIn","true"),w.onAuthenticated(n??e)},onError:s=>{x({type:"failed",method:"email_password",mode:I?"sign_up":"sign_in",stage:"authenticate",error:s instanceof Error?s.message:String(s)}),M(I?"user_signup_failed":"user_signin_failed",{error:s instanceof Error?s.message:String(s)})}}),Q=te({mutationFn:async({email:s})=>{const o=await w.requestPasswordReset({email:s,redirectTo:"/reset-password"});if(o.error)throw new Error(o.error.message||a.resetEmailFailed);return o},onSuccess:()=>{M("password_reset_requested"),we(!0)},onError:s=>{M("password_reset_request_failed",{error:s instanceof Error?s.message:String(s)})}}),U=te({mutationFn:async({email:s})=>{const o=await w.sendOtp({email:s});if(o.error)throw new Error(o.error.message||a.otpSendFailed);return o},onMutate:()=>{x({type:"started",method:"email_otp"})},onSuccess:()=>{x({type:"otp_sent",method:"email_otp"}),M("email_otp_sent"),he(!0)},onError:s=>{x({type:"failed",method:"email_otp",stage:"send_otp",error:s instanceof Error?s.message:String(s)}),M("email_otp_send_failed",{error:s instanceof Error?s.message:String(s)})}}),P=te({mutationFn:async({email:s,otp:o})=>{const O=await w.submitOtp({email:s,otp:o});if(O.error)throw new Error(O.error.message||a.invalidCode);return O},onMutate:()=>{x({type:"otp_submitted",method:"email_otp"})},onSuccess:()=>{x({type:"succeeded",method:"email_otp"}),globalThis.localStorage?.setItem("hasLoggedIn","true"),w.onAuthenticated(n??e)},onError:s=>{re(""),x({type:"failed",method:"email_otp",stage:"verify_otp",error:s instanceof Error?s.message:String(s)}),M("email_otp_verify_failed",{error:s instanceof Error?s.message:String(s)})}}),X=te({mutationFn:async()=>{const s=await w.passkeySignIn();if(s.error){if(s.error.code==="AUTH_CANCELLED")return{cancelled:!0};throw new Error(s.error.message||a.authenticationFailed)}return{cancelled:!1}},onMutate:()=>{x({type:"started",method:"passkey"})},onSuccess:({cancelled:s})=>{s||(x({type:"succeeded",method:"passkey"}),globalThis.localStorage?.setItem("hasLoggedIn","true"),w.onAuthenticated(n??e))},onError:s=>{x({type:"failed",method:"passkey",stage:"authenticate",error:s.message}),M("passkey_signin_failed",{error:s.message})}}),le=s=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s),fe=()=>{c.trim()&&!le(c)&&B(a.invalidEmail)},We=s=>{if(s.preventDefault(),!le(c)){B(a.invalidEmail),x({type:"failed",method:"email_password",mode:I?"sign_up":"sign_in",stage:"validation",error:"invalid_email"});return}J.mutate({email:c,password:ie,name:ue})},Ue=s=>{if(s.preventDefault(),!le(c)){B(a.invalidEmail);return}Q.mutate({email:c})},De=s=>{if(s.preventDefault(),!le(c)){B(a.invalidEmail),x({type:"failed",method:"email_otp",stage:"validation",error:"invalid_email"});return}U.mutate({email:c})},Ne=s=>{P.isPending||P.mutate({email:c,otp:s})},qe=s=>{s.preventDefault(),ge.length===h.length&&Ne(ge)},Be=s=>{re(s),xe&&(U.reset(),P.reset())},Z=s=>o=>{s(o.target.value),Ie&&J.reset(),Ce&&Q.reset(),xe&&(U.reset(),P.reset()),s===ne&&C&&B("")},ee=s=>{$e(s),be(""),re(""),he(!1),B(""),we(!1),oe(null),J.reset(),Q.reset(),U.reset(),P.reset(),X.reset()},E=J.isPending||Q.isPending||U.isPending||P.isPending||X.isPending,Ie=J.error,Ce=Q.error,xe=U.error||P.error,K=I?c.trim()&&ie.trim()&&ue.trim():R||L?c.trim():c.trim()&&ie.trim(),ze=s=>{if(!s)return null;const o=s.message.toLowerCase();return o.includes("unauthorized")||o.includes("401")?a.invalidEmailOrPassword:o.includes("already exists")||o.includes("409")?a.accountExists:o.includes("network")||o.includes("fetch")?a.networkError:o.includes("rate limit")||o.includes("429")?a.tooManyAttempts:o.includes("invalid")&&o.includes("otp")?a.invalidOrExpiredCode:s.message||a.genericError},Pe=Ie||Ce||xe||Me||X.error,Ve=async s=>{x({type:"started",method:"social",provider:s}),oe(null),X.reset();try{const o=await w.socialSignIn({provider:s,callbackURL:n??e});if(o.error)throw new Error(o.error.message||a.authenticationFailed)}catch(o){const O=o instanceof Error?o.message:String(o);x({type:"failed",method:"social",provider:s,stage:"redirect",error:O}),M("social_signin_failed",{provider:s,error:O}),oe(o instanceof Error?o:new Error(O))}},He=R?a.resetPasswordTitle:L&&Y?a.verificationCodeTitle:r??a.welcomeTitle,Ae=R?a.resetPasswordSubtitle:L&&Y?a.codeSentTo(c):l===void 0?a.defaultSubtitle:l;return t.jsxs("div",{className:S("grid w-full",j?"gap-5":"gap-10"),children:[g??t.jsxs("div",{children:[t.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12 dark:hidden"}),t.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"h-12 w-12 hidden dark:block"})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h1",{className:S("font-medium",j?"text-xl leading-7":"text-2xl leading-8"),children:He}),Ae&&t.jsx("p",{className:S("text-muted-foreground",j?"text-sm leading-5":"text-base leading-6"),children:Ae})]}),Pe&&t.jsx("div",{role:"alert",className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:ze(Pe)}),ve&&t.jsx("div",{role:"status",className:"rounded-xl bg-success/10 p-3 text-sm text-success text-center",children:a.resetEmailSent}),!R&&!(L&&Y)&&W&&t.jsxs("div",{className:"grid gap-2",children:[T&&_.map(s=>t.jsxs(se,{type:"button",variant:"outline",size:j?"lg":"xl",disabled:E,onClick:()=>{Ve(s.name)},className:"w-full gap-3",children:[s.icon&&t.jsx("img",{src:s.icon,alt:"",className:S("h-5 w-5",s.name==="github"&&"dark:invert"),"aria-hidden":"true"}),a.continueWith(s.name.charAt(0).toUpperCase()+s.name.slice(1))]},s.name)),F&&t.jsxs(se,{type:"button",variant:"outline",size:j?"lg":"xl",disabled:E,onClick:()=>{oe(null),X.mutate()},className:"w-full gap-3",children:[t.jsx(Je,{className:"h-5 w-5","aria-hidden":"true"}),a.signInWithPasskey]})]}),!R&&!(L&&Y)&&W&&(k||h.enabled)&&t.jsxs("div",{className:S("flex items-center gap-2.5",j?"my-0":"-my-4"),children:[t.jsx("div",{className:"h-px flex-1 bg-border"}),t.jsx("span",{className:S("text-muted-foreground",j?"text-sm":"text-base"),children:a.divider}),t.jsx("div",{className:"h-px flex-1 bg-border"})]}),L&&h.enabled&&t.jsx(t.Fragment,{children:Y?t.jsxs("form",{onSubmit:qe,className:"grid gap-2",children:[t.jsxs("div",{className:"grid gap-2",children:[t.jsx("label",{htmlFor:Se,className:S("text-sm font-medium text-foreground",j&&"sr-only"),children:a.verificationCodeLabel}),t.jsx(et,{id:Se,length:h.length,value:ge,onChange:Be,onComplete:Ne,autoFocus:!0,"aria-invalid":!!P.error,"aria-describedby":P.isPending?je:void 0}),t.jsx("p",{id:je,role:"status",className:S("text-sm text-muted-foreground",!P.isPending&&"sr-only"),children:P.isPending?a.verifying:""})]}),t.jsx("button",{type:"button",onClick:()=>{he(!1),re(""),U.reset(),P.reset()},disabled:E,className:"mt-1 text-sm text-muted-foreground transition-colors hover:text-foreground",children:a.useDifferentEmail})]}):t.jsxs("form",{onSubmit:De,className:S("grid gap-2",j&&"sm:grid-cols-[minmax(0,1fr)_auto] sm:items-start"),children:[t.jsxs("div",{className:"grid gap-2",children:[t.jsx("label",{htmlFor:V,className:S("text-sm font-medium text-foreground",j&&"sr-only"),children:a.emailLabel}),t.jsx(ae,{id:V,type:"email",placeholder:a.emailPlaceholder,value:c,onChange:Z(ne),onBlur:fe,required:!0,disabled:E,autoComplete:"email","aria-invalid":!!C,"aria-describedby":C?H:void 0,className:"h-11"}),C&&t.jsx("p",{id:H,role:"alert",className:"text-xs text-destructive",children:C})]}),t.jsx(se,{type:"submit",size:j?"lg":"xl",disabled:E||!K,className:S(j?"sm:w-auto":"w-full"),children:E?a.sending:a.sendCode})]})}),R&&k&&!ve&&t.jsxs("form",{onSubmit:Ue,className:"grid gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{htmlFor:V,className:"block text-sm font-medium text-foreground mb-2",children:a.emailLabel}),t.jsx(ae,{id:V,type:"email",placeholder:"you@example.com",value:c,onChange:Z(ne),onBlur:fe,required:!0,disabled:E,autoComplete:"email","aria-invalid":!!C,"aria-describedby":C?H:void 0,className:"h-11"}),C&&t.jsx("p",{id:H,role:"alert",className:"text-xs text-destructive mt-1.5",children:C})]}),t.jsx(se,{type:"submit",disabled:E||!K,className:"w-full font-semibold",size:"xl",children:E?a.sending:a.sendResetLink})]}),!R&&!L&&k&&t.jsxs("form",{onSubmit:We,className:"grid gap-5",children:[I&&t.jsxs("div",{children:[t.jsx("label",{htmlFor:ye,className:"block text-sm font-medium text-foreground mb-2",children:a.nameLabel}),t.jsx(ae,{id:ye,type:"text",placeholder:a.namePlaceholder,value:ue,onChange:Z(be),required:!0,disabled:E,autoComplete:"name",className:"h-11"})]}),t.jsxs("div",{children:[t.jsx("label",{htmlFor:V,className:"block text-sm font-medium text-foreground mb-2",children:a.emailLabel}),t.jsx(ae,{id:V,type:"email",placeholder:"you@example.com",value:c,onChange:Z(ne),onBlur:fe,required:!0,disabled:E,autoComplete:"email","aria-invalid":!!C,"aria-describedby":C?H:void 0,className:"h-11"}),C&&t.jsx("p",{id:H,role:"alert",className:"text-xs text-destructive mt-1.5",children:C})]}),t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center justify-between mb-2",children:[t.jsx("label",{htmlFor:Ee,className:"block text-sm font-medium text-foreground",children:a.passwordLabel}),!I&&p.enabled&&t.jsx("button",{type:"button",onClick:()=>ee("forgotPassword"),className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:a.forgotPassword})]}),t.jsx(ae,{id:Ee,type:"password",placeholder:"••••••••",value:ie,onChange:Z(Re),required:!0,disabled:E,autoComplete:I?"new-password":"current-password",className:"h-11"})]}),t.jsx("div",{className:S("overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.075,0.82,0.165,1)]",K?"max-h-[100px] opacity-100 translate-y-0":"max-h-0 opacity-0 -translate-y-2"),children:t.jsx("div",{className:S("p-1",!K&&"pointer-events-none"),children:t.jsx(se,{type:"submit",disabled:E||!K,className:S("w-full font-semibold"),size:"xl","aria-hidden":!K,children:E?I?a.creatingAccount:a.signingIn:a.continue})})})]}),t.jsx("div",{className:"text-sm text-muted-foreground",children:R?t.jsx("button",{type:"button",onClick:()=>ee("signIn"),disabled:E,className:de,children:a.backToSignIn}):L&&k?t.jsx("button",{type:"button",onClick:()=>ee("signIn"),disabled:E,className:de,children:a.signInWithPassword}):!L&&k?t.jsxs(t.Fragment,{children:[I?a.alreadyHaveAccount:a.dontHaveAccount,t.jsx("button",{type:"button",onClick:()=>ee(I?"signIn":"signUp"),disabled:E,className:de,children:I?a.signIn:a.signUp}),h.enabled&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"mx-2",children:"·"}),t.jsx("button",{type:"button",onClick:()=>ee("emailOtp"),disabled:E,className:de,children:a.signInWithEmailCode})]})]}):null})]})}class _e{constructor(e){this.response=e}response}function nt(n){return n.startsWith("/")&&!n.startsWith("//")&&!n.startsWith("/\\")?n:"/"}function it({redirectTo:n,onAuthEvent:e}){const r=Fe(),[l,g]=N.useState(null),m=N.useEffectEvent(i=>{try{e?.(i)}catch{}});return N.useEffect(()=>{let i=!1;return(async()=>{m({type:"started",method:"local"});try{let u;try{u=await Ze(async()=>{const d=await fetch("/api/auth/custom/local-session",{method:"POST",credentials:"include"});if(d.status>=500)throw new _e(d);return d},{maxAttempts:5,minTimeout:1e3,maxTimeout:1e4,multiplier:2,jitter:0})}catch(d){if(d instanceof Le&&d.cause instanceof _e)u=d.cause.response;else throw d}if(!u.ok){const d=await u.json().catch(()=>({}));throw new Error(d?.error||r("common.authEntry.autoLoginFailed"))}i||(m({type:"succeeded",method:"local"}),window.location.href=nt(n))}catch(u){i||(m({type:"failed",method:"local",stage:"authenticate",error:u instanceof Error?u.message:String(u)}),g(u instanceof Error?u.message:r("common.authEntry.autoLoginFailed")))}})(),()=>{i=!0}},[n]),l?t.jsx("div",{className:"flex min-h-screen items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx("p",{className:"text-destructive mb-2",children:r("common.authEntry.autoLoginFailedWithError",{error:l})}),t.jsx("p",{className:"text-muted-foreground text-sm",children:r("common.authEntry.tryRestartingServer")})]})}):t.jsx(Te,{})}function Te(){const n=ce.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex min-h-screen items-center justify-center",children:t.jsx(Ye,{size:"lg",label:"Signing in"})}),n[0]=e):e=n[0],e}function rt({callbackURL:n,providerId:e,ssoSignIn:r,onAuthEvent:l}){const g=N.useEffectEvent(i=>{try{l?.(i)}catch{}}),m=N.useEffectEvent(r);return N.useEffect(()=>{(async()=>{g({type:"started",method:"sso",provider:e});try{const i=await m({providerId:e,callbackURL:n});if(i.error)throw new Error(i.error.message||"SSO redirect failed")}catch(i){g({type:"failed",method:"sso",provider:e,stage:"redirect",error:i instanceof Error?i.message:String(i)})}})()},[e,n]),t.jsx(Te,{})}function mt(n){const e=ce.c(25),{callbackUrl:r,redirectUrl:l,allowAutoLogin:g,title:m,subtitle:i,brand:u,copy:d,variant:b,allowedSocialProviders:f,allowPassword:v,onAuthEvent:p,onAuthenticated:h}=n,A=g===void 0?!0:g,y=Fe(),{sso:w,emailAndPassword:x,magicLink:j,emailOtp:D,socialProviders:q,localMode:me}=ke(),_=l||r;let T;e[0]!==h?(T=h?{onAuthenticated:h}:void 0,e[0]=h,e[1]=T):T=e[1];const k=T;if(me&&A){let c;return e[2]!==p||e[3]!==_?(c=t.jsx(it,{redirectTo:_,onAuthEvent:p}),e[2]=p,e[3]=_,e[4]=c):c=e[4],c}if(w.enabled){let c;return e[5]!==p||e[6]!==_||e[7]!==w.providerId?(c=t.jsx(rt,{callbackURL:_,providerId:w.providerId,ssoSignIn:Oe.ssoSignIn,onAuthEvent:p}),e[5]=p,e[6]=_,e[7]=w.providerId,e[8]=c):c=e[8],c}if(x.enabled||j.enabled||D.enabled||q.enabled){let c;return e[9]!==v||e[10]!==f||e[11]!==u||e[12]!==r||e[13]!==k||e[14]!==d||e[15]!==p||e[16]!==l||e[17]!==i||e[18]!==m||e[19]!==b?(c=t.jsx(at,{redirectUrl:l,callbackUrl:r,title:m,subtitle:i,brand:u,copy:d,variant:b,allowedSocialProviders:f,allowPassword:v,onAuthEvent:p,actions:k}),e[9]=v,e[10]=f,e[11]=u,e[12]=r,e[13]=k,e[14]=d,e[15]=p,e[16]=l,e[17]=i,e[18]=m,e[19]=b,e[20]=c):c=e[20],c}let F;e[21]!==y?(F=y("common.authEntry.noLoginOptions"),e[21]=y,e[22]=F):F=e[22];let W;return e[23]!==F?(W=t.jsx("div",{children:F}),e[23]=F,e[24]=W):W=e[24],W}export{Te as A,mt as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as g,m as p,j as f}from"./index-
|
|
1
|
+
import{c as g,m as p,j as f}from"./index-DokE5sNF.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{a as u}from"./mcp-oauth-
|
|
1
|
+
import{a as u}from"./mcp-oauth-Celefz8j.js";import{i as p}from"./mcp-oauth-Cfk6BMjf.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 p({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 u({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-C_0woHJW.js → automation-list-row-PeCAvjmp.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Q,b as U,r as ee,m as G,j as t,X as te,B as se,_ as ie,Z as ne,Y as ae,aJ as oe,aK as le,aL as re,aM as ce,b9 as me,aN as ue,aO as de,aP as fe}from"./index-
|
|
1
|
+
import{c as Q,b as U,r as ee,m as G,j as t,X as te,B as se,_ as ie,Z as ne,Y as ae,aJ as oe,aK as le,aL as re,aM as ce,b9 as me,aN as ue,aO as de,aP as fe}from"./index-DokE5sNF.js";import{B as ge}from"./badge-CXWhQd3j.js";import{s as xe}from"./UserCheck01-DoVM7Q3H.js";import{a as pe}from"./SwitchHorizontal01-DFAhxuil.js";import{s as he}from"./Trash01-DmArjRF_.js";import{i as je}from"./Zap-Cnh7YlUV.js";import{a as _e}from"./repository-binding-CBLNaLcn.js";import{A as we}from"./agent-icon-DA-Fg7pF.js";import{a as ve}from"./use-automations-it-dxpVL.js";function Be(c){const e=Q.c(89),{automation:s,showAgent:o,onClick:n}=c,i=U(),{remove:a}=ve(),[r,J]=ee.useState(!1),l=_e(o?s.virtual_mcp_id:void 0);let E;e[0]!==s.id||e[1]!==a?(E=()=>{a.mutate(s.id),J(!1)},e[0]=s.id,e[1]=a,e[2]=E):E=e[2];const V=E;let F;e[3]!==n?(F=m=>{m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),n())},e[3]=n,e[4]=F):F=e[4];const X=F,Y=s.active&&s.trigger_count>0?"bg-success":"bg-muted-foreground/40";let u;e[5]!==Y?(u=G("inline-block size-2 rounded-full shrink-0",Y),e[5]=Y,e[6]=u):u=e[6];const Z=s.active&&s.trigger_count>0?"automations.automationListRow.ariaActive":s.active?"automations.automationListRow.ariaNoTriggers":"automations.automationListRow.ariaPaused";let d;e[7]!==i||e[8]!==Z?(d=i(Z),e[7]=i,e[8]=Z,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]!==l?.icon||e[14]!==l?.title||e[15]!==s.name||e[16]!==o?(g=o&&t.jsx(we,{icon:l?.icon??null,name:l?.title??s.name,size:"xs",className:"shrink-0"}),e[13]=l?.icon,e[14]=l?.title,e[15]=s.name,e[16]=o,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]!==s.system_key||e[21]!==i?(p=s.system_key&&t.jsx(ge,{variant:"muted",children:i("automations.builtin.badge")}),e[20]=s.system_key,e[21]=i,e[22]=p):p=e[22];let h;e[23]!==l||e[24]!==o?(h=o&&l&&t.jsxs("span",{className:"text-xs text-muted-foreground truncate",children:["· ",l.title]}),e[23]=l,e[24]=o,e[25]=h):h=e[25];let j;e[26]!==p||e[27]!==h||e[28]!==x?(j=t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[x,p,h]}),e[26]=p,e[27]=h,e[28]=x,e[29]=j):j=e[29];let _;e[30]!==s.nearest_next_run_at||e[31]!==s.trigger_count?(_=t.jsx(De,{triggerCount:s.trigger_count,nextRunAt:s.nearest_next_run_at}),e[30]=s.nearest_next_run_at,e[31]=s.trigger_count,e[32]=_):_=e[32];let w;e[33]!==j||e[34]!==_?(w=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-0.5",children:[j,_]}),e[33]=j,e[34]=_,e[35]=w):w=e[35];const q=s.system_key&&"invisible";let v;e[36]!==q?(v=G("shrink-0",q),e[36]=q,e[37]=v):v=e[37];let K;e[38]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsx(te,{asChild:!0,children:t.jsx(se,{variant:"ghost",size:"icon",className:"opacity-0 group-hover:opacity-100 data-[state=open]:opacity-100 transition-opacity",children:t.jsx(pe,{size:16})})}),e[38]=K):K=e[38];let $,I;e[39]===Symbol.for("react.memo_cache_sentinel")?($=m=>{m.stopPropagation(),J(!0)},I=t.jsx(he,{size:16}),e[39]=$,e[40]=I):($=e[39],I=e[40]);let y;e[41]!==i?(y=i("automations.automationListRow.delete"),e[41]=i,e[42]=y):y=e[42];let A;e[43]!==y?(A=t.jsxs(ie,{children:[K,t.jsx(ne,{align:"end",children:t.jsxs(ae,{variant:"destructive",onClick:$,children:[I,y]})})]}),e[43]=y,e[44]=A):A=e[44];let D;e[45]!==v||e[46]!==A?(D=t.jsx("div",{onClick:Ae,onKeyDown:ye,role:"presentation",className:v,children:A}),e[45]=v,e[46]=A,e[47]=D):D=e[47];let N;e[48]!==X||e[49]!==n||e[50]!==w||e[51]!==D||e[52]!==f||e[53]!==g?(N=t.jsxs("div",{role:"button",tabIndex:0,onClick:n,onKeyDown:X,className:"group w-full flex items-center gap-3 px-4 py-3 text-left hover:bg-accent transition-colors cursor-pointer focus-ring",children:[f,g,w,D]}),e[48]=X,e[49]=n,e[50]=w,e[51]=D,e[52]=f,e[53]=g,e[54]=N):N=e[54];let R;e[55]!==i?(R=i("automations.automationListRow.deleteTitle"),e[55]=i,e[56]=R):R=e[56];let k;e[57]!==R?(k=t.jsx(oe,{children:R}),e[57]=R,e[58]=k):k=e[58];let b;e[59]!==s.name||e[60]!==i?(b=i("automations.automationListRow.deleteDescription",{name:s.name}),e[59]=s.name,e[60]=i,e[61]=b):b=e[61];let L;e[62]!==b?(L=t.jsx(le,{children:b}),e[62]=b,e[63]=L):L=e[63];let C;e[64]!==k||e[65]!==L?(C=t.jsxs(re,{children:[k,L]}),e[64]=k,e[65]=L,e[66]=C):C=e[66];let P;e[67]!==i?(P=i("automations.automationListRow.cancel"),e[67]=i,e[68]=P):P=e[68];let T;e[69]!==P?(T=t.jsx(ce,{children:P}),e[69]=P,e[70]=T):T=e[70];const W=a.isPending;let z;e[71]!==i?(z=i("automations.automationListRow.deleteButton"),e[71]=i,e[72]=z):z=e[72];let B;e[73]!==V||e[74]!==a.isPending||e[75]!==z?(B=t.jsx(me,{onClick:V,disabled:W,variant:"destructive",children:z}),e[73]=V,e[74]=a.isPending,e[75]=z,e[76]=B):B=e[76];let M;e[77]!==T||e[78]!==B?(M=t.jsxs(ue,{children:[T,B]}),e[77]=T,e[78]=B,e[79]=M):M=e[79];let O;e[80]!==C||e[81]!==M?(O=t.jsxs(de,{children:[C,M]}),e[80]=C,e[81]=M,e[82]=O):O=e[82];let S;e[83]!==r||e[84]!==O?(S=t.jsx(fe,{open:r,onOpenChange:J,children:O}),e[83]=r,e[84]=O,e[85]=S):S=e[85];let H;return e[86]!==N||e[87]!==S?(H=t.jsxs(t.Fragment,{children:[N,S]}),e[86]=N,e[87]=S,e[88]=H):H=e[88],H}function ye(c){return c.stopPropagation()}function Ae(c){return c.stopPropagation()}function De(c){const e=Q.c(8),{triggerCount:s,nextRunAt:o}=c,n=U();if(s===0){let a;e[0]!==n?(a=n("automations.automationListRow.noTriggers"),e[0]=n,e[1]=a):a=e[1];let r;return e[2]!==a?(r=t.jsx("span",{className:"text-xs text-muted-foreground",children:a}),e[2]=a,e[3]=r):r=e[3],r}let i;return e[4]!==o||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:o?t.jsxs(t.Fragment,{children:[t.jsx(xe,{size:12,className:"shrink-0"}),t.jsx("span",{className:"truncate",children:n("automations.automationListRow.nextRun",{date:new Date(o).toLocaleString()})})]}):t.jsxs(t.Fragment,{children:[t.jsx(je,{size:12,className:"shrink-0"}),t.jsx("span",{className:"truncate",children:s===1?n("automations.automationListRow.triggersOne"):n("automations.automationListRow.triggers",{count:s})})]})}),e[4]=o,e[5]=n,e[6]=s,e[7]=i):i=e[7],i}export{Be as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Y,b as X,a6 as lt,T as it,am as rt,eN as ct,K as tt,j as s,m as ut,i as mt,gG as dt}from"./index-BuZqAz74.js";import{u as ft}from"./useInfiniteQuery-CNxlkxws.js";import{b as xt}from"./use-connection-C4G0ZMoe.js";import{u as pt}from"./use-mcp-client-UWOU8UbZ.js";import{u as gt}from"./repository-binding-VVfcdUiy.js";import{b as ht,a as Rt}from"./sheet-Lq2qXLx8.js";import{e as jt,a as Nt,b as st,T as G,d as Tt,c as Q}from"./table-DQIAY6r-.js";import{E as et}from"./empty-state-BK8GboWz.js";import{u as bt}from"./use-id-selection-CJdNm4ZY.js";import{u as St}from"./use-infinite-scroll-DgSz0aNh.js";import{g as vt}from"./task-status-B6WfZxUN.js";import{e as Ct}from"./use-automations-D4bJmUmE.js";import{T as wt,f as at,a as nt}from"./thread-sheet-body-C6XCaB8H.js";const W=50;function J(m){const t=Y.c(10),{title:r,value:c,subtitle:e}=m;let o;t[0]!==r?(o=s.jsx("span",{className:"text-sm text-foreground/70",children:r}),t[0]=r,t[1]=o):o=t[1];let n;t[2]!==c?(n=s.jsx("span",{className:"text-3xl font-normal tabular-nums",children:c}),t[2]=c,t[3]=n):n=t[3];let a;t[4]!==e?(a=e&&s.jsx("span",{className:"text-xs text-muted-foreground",children:e}),t[4]=e,t[5]=a):a=t[5];let l;return t[6]!==o||t[7]!==n||t[8]!==a?(l=s.jsxs(dt,{className:"pt-4 px-4 pb-5 gap-1",children:[o,n,a]}),t[6]=o,t[7]=n,t[8]=a,t[9]=l):l=t[9],l}function yt(m){const t=Y.c(45),{automationId:r,range:c}=m,e=X(),{data:o,isLoading:n}=Ct(r,c),a=o?.runs,l=o?.usage;let P;t[0]!==a?(P=a&&a.total>0?`${Math.round(a.completed/a.total*100)}%`:"—",t[0]=a,t[1]=P):P=t[1];const C=P;let w;t[2]!==e||t[3]!==l?(w=l&&l.truncated?e("automations.automationRuns.lastRunsSubtitle",{count:l.sampledRuns}):void 0,t[2]=e,t[3]=l,t[4]=w):w=t[4];const h=w;let b;t[5]!==e?(b=e("automations.automationRuns.runsTitle"),t[5]=e,t[6]=b):b=t[6];let d;t[7]!==n||t[8]!==a?.total?(d=n?"…":a?.total.toLocaleString()??"0",t[7]=n,t[8]=a?.total,t[9]=d):d=t[9];let f;t[10]!==a||t[11]!==e?(f=a?`${a.completed} ${e("automations.automationRuns.ok")} · ${a.failed} ${e("automations.automationRuns.failed")}${a.inProgress>0?` · ${a.inProgress} ${e("automations.automationRuns.running")}`:""}`:void 0,t[10]=a,t[11]=e,t[12]=f):f=t[12];let x;t[13]!==b||t[14]!==d||t[15]!==f?(x=s.jsx(J,{title:b,value:d,subtitle:f}),t[13]=b,t[14]=d,t[15]=f,t[16]=x):x=t[16];let j;t[17]!==e?(j=e("automations.automationRuns.successRateTitle"),t[17]=e,t[18]=j):j=t[18];const y=n?"…":C;let S;t[19]!==j||t[20]!==y?(S=s.jsx(J,{title:j,value:y}),t[19]=j,t[20]=y,t[21]=S):S=t[21];let N;t[22]!==e?(N=e("automations.automationRuns.tokensTitle"),t[22]=e,t[23]=N):N=t[23];let u;t[24]!==n||t[25]!==l?.totalTokens?(u=n?"…":at(l?.totalTokens??0),t[24]=n,t[25]=l?.totalTokens,t[26]=u):u=t[26];let v;t[27]!==N||t[28]!==u||t[29]!==h?(v=s.jsx(J,{title:N,value:u,subtitle:h}),t[27]=N,t[28]=u,t[29]=h,t[30]=v):v=t[30];let i;t[31]!==e?(i=e("automations.automationRuns.costTitle"),t[31]=e,t[32]=i):i=t[32];let p;t[33]!==n||t[34]!==l?(p=n?"…":l&&l.costUsd>0?nt(l.costUsd):"—",t[33]=n,t[34]=l,t[35]=p):p=t[35];let T;t[36]!==i||t[37]!==p||t[38]!==h?(T=s.jsx(J,{title:i,value:p,subtitle:h}),t[36]=i,t[37]=p,t[38]=h,t[39]=T):T=t[39];let g;return t[40]!==v||t[41]!==T||t[42]!==x||t[43]!==S?(g=s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[x,S,v,T]}),t[40]=v,t[41]=T,t[42]=x,t[43]=S,t[44]=g):g=t[44],g}function It(m){const t=Y.c(57),{run:r,usage:c,onClick:e,lastRowRef:o}=m,n=X();let a,l;if(t[0]!==r.created_at){const k=new Date(r.created_at);a=k.toLocaleDateString("en-US",{month:"short",day:"numeric"}),l=k.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),t[0]=r.created_at,t[1]=a,t[2]=l}else a=t[1],l=t[2];const P=l;let C,w,h,b,d,f,x,j,y,S,N;if(t[3]!==o||t[4]!==e||t[5]!==r.status||t[6]!==r.title||t[7]!==n){const k=vt(r.status),$=k.icon;w=st,y=o,S="h-14 cursor-pointer hover:bg-accent transition-colors border-b-0",N=e,t[19]!==r.title?(h=s.jsx(Q,{className:"min-w-0 pr-2 pl-4 md:pr-4",children:s.jsx("div",{className:"font-medium text-foreground truncate",children:r.title})}),t[19]=r.title,t[20]=h):h=t[20],C=Q,j="w-28 px-3",f="flex items-center gap-1.5",x=s.jsx($,{size:14,className:k.iconClassName}),b=ut("text-sm",k.labelColor),d=n(k.labelKey),t[3]=o,t[4]=e,t[5]=r.status,t[6]=r.title,t[7]=n,t[8]=C,t[9]=w,t[10]=h,t[11]=b,t[12]=d,t[13]=f,t[14]=x,t[15]=j,t[16]=y,t[17]=S,t[18]=N}else C=t[8],w=t[9],h=t[10],b=t[11],d=t[12],f=t[13],x=t[14],j=t[15],y=t[16],S=t[17],N=t[18];let u;t[21]!==b||t[22]!==d?(u=s.jsx("span",{className:b,children:d}),t[21]=b,t[22]=d,t[23]=u):u=t[23];let v;t[24]!==u||t[25]!==f||t[26]!==x?(v=s.jsxs("div",{className:f,children:[x,u]}),t[24]=u,t[25]=f,t[26]=x,t[27]=v):v=t[27];let i;t[28]!==C||t[29]!==v||t[30]!==j?(i=s.jsx(C,{className:j,children:v}),t[28]=C,t[29]=v,t[30]=j,t[31]=i):i=t[31];let p;t[32]!==c?(p=c?at(c.totalTokens):"—",t[32]=c,t[33]=p):p=t[33];let T;t[34]!==p?(T=s.jsx(Q,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:p}),t[34]=p,t[35]=T):T=t[35];let g;t[36]!==c?(g=c&&c.costUsd>0?nt(c.costUsd):"—",t[36]=c,t[37]=g):g=t[37];let I;t[38]!==g?(I=s.jsx(Q,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:g}),t[38]=g,t[39]=I):I=t[39];let D;t[40]!==a?(D=s.jsx("div",{children:a}),t[40]=a,t[41]=D):D=t[41];let _;t[42]!==P?(_=s.jsx("div",{className:"text-xs text-muted-foreground/60",children:P}),t[42]=P,t[43]=_):_=t[43];let E;t[44]!==D||t[45]!==_?(E=s.jsxs(Q,{className:"w-32 px-3 pr-5 text-muted-foreground",children:[D,_]}),t[44]=D,t[45]=_,t[46]=E):E=t[46];let M;return t[47]!==w||t[48]!==h||t[49]!==i||t[50]!==T||t[51]!==I||t[52]!==E||t[53]!==y||t[54]!==S||t[55]!==N?(M=s.jsxs(w,{ref:y,className:S,onClick:N,children:[h,i,T,I,E]}),t[47]=w,t[48]=h,t[49]=i,t[50]=T,t[51]=I,t[52]=E,t[53]=y,t[54]=S,t[55]=N,t[56]=M):M=t[56],M}function Vt(m){const t=Y.c(73),{automationId:r,triggerIds:c,range:e}=m,o=X(),{org:n,locator:a}=lt();let l;t[0]!==n.id||t[1]!==n.slug?(l={connectionId:it,orgId:n.id,orgSlug:n.slug},t[0]=n.id,t[1]=n.slug,t[2]=l):l=t[2];const P=pt(l),C=rt(),w=xt(),h=gt(),{data:b}=ct(),d=c.length>0;let f;t[3]!==r||t[4]!==n.id||t[5]!==c?(f=tt.automationRuns(n.id,r,c),t[3]=r,t[4]=n.id,t[5]=c,t[6]=f):f=t[6];let x;t[7]!==C||t[8]!==c?(x=async U=>{const{pageParam:z}=U,ot=z===void 0?0:z;return await C.call("COLLECTION_THREADS_LIST",{limit:W,offset:ot,where:{trigger_ids:c}})},t[7]=C,t[8]=c,t[9]=x):x=t[9];let j;t[10]!==d||t[11]!==f||t[12]!==x?(j={queryKey:f,queryFn:x,initialPageParam:0,getNextPageParam:Dt,enabled:d,staleTime:3e4},t[10]=d,t[11]=f,t[12]=x,t[13]=j):j=t[13];const{data:y,fetchNextPage:S,hasNextPage:N,isFetchingNextPage:u,isLoading:v}=ft(j);let i,p,T,g;t[14]!==y?.pages||t[15]!==a||t[16]!==e?(i=(y?.pages??[]).flatMap(kt),g=i.map(_t),T=mt,p=tt.monitoringThreadUsage(a,JSON.stringify({ids:g,...e})),t[14]=y?.pages,t[15]=a,t[16]=e,t[17]=i,t[18]=p,t[19]=T,t[20]=g):(i=t[17],p=t[18],T=t[19],g=t[20]);let I;t[21]!==e||t[22]!==C||t[23]!==g?(I=async()=>await C.call("MONITORING_THREAD_USAGE",{threadIds:g,...e.startDate?{startDate:e.startDate}:{},...e.endDate?{endDate:e.endDate}:{}}),t[21]=e,t[22]=C,t[23]=g,t[24]=I):I=t[24];const D=g.length>0;let _;t[25]!==p||t[26]!==I||t[27]!==D?(_={queryKey:p,queryFn:I,enabled:D,staleTime:3e4},t[25]=p,t[26]=I,t[27]=D,t[28]=_):_=t[28];const{data:E}=T(_);let M;t[29]!==E?.items?(M=new Map((E?.items??[]).map(Pt)),t[29]=E?.items,t[30]=M):M=t[30];const k=M;let $;t[31]!==S||t[32]!==N||t[33]!==u?($=()=>{N&&!u&&S()},t[31]=S,t[32]=N,t[33]=u,t[34]=$):$=t[34];const Z=St($,N??!1,u),R=bt(i),V=R.selected;let L;t[35]!==r||t[36]!==e?(L=s.jsx(yt,{automationId:r,range:e}),t[35]=r,t[36]=e,t[37]=L):L=t[37];let A;t[38]!==d||t[39]!==v||t[40]!==Z||t[41]!==i||t[42]!==R||t[43]!==o||t[44]!==k?(A=d?v?s.jsx("div",{className:"py-16 text-center text-sm text-muted-foreground",children:o("automations.automationRuns.loadingRuns")}):i.length===0?s.jsx("div",{className:"py-16",children:s.jsx(et,{title:o("automations.automationRuns.noRunsTitle"),description:o("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 font-normal text-meta",children:o("automations.automationRuns.runHeader")}),s.jsx(G,{className:"w-28 px-3 font-normal text-meta",children:o("automations.automationRuns.statusHeader")}),s.jsx(G,{className:"w-24 px-3 font-normal text-meta text-right",children:o("automations.automationRuns.tokensHeader")}),s.jsx(G,{className:"w-24 px-3 font-normal text-meta text-right",children:o("automations.automationRuns.costHeader")}),s.jsx(G,{className:"w-32 px-3 pr-5 font-normal text-meta",children:o("automations.automationRuns.startedHeader")})]})}),s.jsx(Tt,{children:i.map((U,z)=>s.jsx(It,{run:U,usage:k.get(U.id),onClick:()=>R.select(U.id),lastRowRef:z===i.length-1?Z:void 0},U.id))})]}):s.jsx("div",{className:"py-16",children:s.jsx(et,{title:o("automations.automationRuns.noStartersTitle"),description:o("automations.automationRuns.noStartersDescription")})}),t[38]=d,t[39]=v,t[40]=Z,t[41]=i,t[42]=R,t[43]=o,t[44]=k,t[45]=A):A=t[45];let H;t[46]!==u||t[47]!==o?(H=u&&s.jsx("div",{className:"py-4 text-center text-sm text-muted-foreground",children:o("automations.automationRuns.loadingMore")}),t[46]=u,t[47]=o,t[48]=H):H=t[48];let O;t[49]!==R?(O=U=>{U||R.close()},t[49]=R,t[50]=O):O=t[50];let K;t[51]!==w||t[52]!==h||t[53]!==P||t[54]!==a||t[55]!==b||t[56]!==i||t[57]!==V||t[58]!==R.index||t[59]!==R.next||t[60]!==R.prev?(K=V&&s.jsx(wt,{thread:V,client:P,locator:a,connections:w,virtualMcps:h,members:b,nav:{index:R.index,total:i.length,onPrev:R.prev,onNext:R.next}}),t[51]=w,t[52]=h,t[53]=P,t[54]=a,t[55]=b,t[56]=i,t[57]=V,t[58]=R.index,t[59]=R.next,t[60]=R.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]!==R.isOpen||t[65]!==O||t[66]!==q?(F=s.jsx(ht,{open:R.isOpen,onOpenChange:O,children:q}),t[64]=R.isOpen,t[65]=O,t[66]=q,t[67]=F):F=t[67];let B;return t[68]!==L||t[69]!==A||t[70]!==H||t[71]!==F?(B=s.jsxs("div",{className:"flex flex-col gap-5",children:[L,A,H,F]}),t[68]=L,t[69]=A,t[70]=H,t[71]=F,t[72]=B):B=t[72],B}function Pt(m){return[m.threadId,{calls:m.calls,inputTokens:m.inputTokens,outputTokens:m.outputTokens,totalTokens:m.totalTokens,costUsd:m.costUsd}]}function _t(m){return m.id}function kt(m){return m.items??[]}function Dt(m,t){const r=m,c=t;if(!((r?.items?.length??0)<W))return c.length*W}export{Vt as A};
|
|
1
|
+
import{c as Y,b as X,a6 as lt,T as it,am as rt,eN as ct,K as tt,j as s,m as ut,i as mt,gG as dt}from"./index-DokE5sNF.js";import{u as ft}from"./useInfiniteQuery-BVFlK8XX.js";import{b as xt}from"./use-connection-BJP9eCiw.js";import{u as pt}from"./use-mcp-client-DVaNUeKZ.js";import{u as gt}from"./repository-binding-CBLNaLcn.js";import{b as ht,a as Rt}from"./sheet-DUgkYIwI.js";import{e as jt,a as Nt,b as st,T as G,d as Tt,c as Q}from"./table-DsirtjTQ.js";import{E as et}from"./empty-state-BwwrJHKq.js";import{u as bt}from"./use-id-selection-DnYJXQwW.js";import{u as St}from"./use-infinite-scroll-BcBSkfyb.js";import{g as vt}from"./task-status-bozQW5wT.js";import{e as Ct}from"./use-automations-it-dxpVL.js";import{T as wt,f as at,a as nt}from"./thread-sheet-body-j2UKM_n_.js";const W=50;function J(m){const t=Y.c(10),{title:r,value:c,subtitle:e}=m;let o;t[0]!==r?(o=s.jsx("span",{className:"text-sm text-foreground/70",children:r}),t[0]=r,t[1]=o):o=t[1];let n;t[2]!==c?(n=s.jsx("span",{className:"text-3xl font-normal tabular-nums",children:c}),t[2]=c,t[3]=n):n=t[3];let a;t[4]!==e?(a=e&&s.jsx("span",{className:"text-xs text-muted-foreground",children:e}),t[4]=e,t[5]=a):a=t[5];let l;return t[6]!==o||t[7]!==n||t[8]!==a?(l=s.jsxs(dt,{className:"pt-4 px-4 pb-5 gap-1",children:[o,n,a]}),t[6]=o,t[7]=n,t[8]=a,t[9]=l):l=t[9],l}function yt(m){const t=Y.c(45),{automationId:r,range:c}=m,e=X(),{data:o,isLoading:n}=Ct(r,c),a=o?.runs,l=o?.usage;let P;t[0]!==a?(P=a&&a.total>0?`${Math.round(a.completed/a.total*100)}%`:"—",t[0]=a,t[1]=P):P=t[1];const C=P;let w;t[2]!==e||t[3]!==l?(w=l&&l.truncated?e("automations.automationRuns.lastRunsSubtitle",{count:l.sampledRuns}):void 0,t[2]=e,t[3]=l,t[4]=w):w=t[4];const h=w;let b;t[5]!==e?(b=e("automations.automationRuns.runsTitle"),t[5]=e,t[6]=b):b=t[6];let d;t[7]!==n||t[8]!==a?.total?(d=n?"…":a?.total.toLocaleString()??"0",t[7]=n,t[8]=a?.total,t[9]=d):d=t[9];let f;t[10]!==a||t[11]!==e?(f=a?`${a.completed} ${e("automations.automationRuns.ok")} · ${a.failed} ${e("automations.automationRuns.failed")}${a.inProgress>0?` · ${a.inProgress} ${e("automations.automationRuns.running")}`:""}`:void 0,t[10]=a,t[11]=e,t[12]=f):f=t[12];let x;t[13]!==b||t[14]!==d||t[15]!==f?(x=s.jsx(J,{title:b,value:d,subtitle:f}),t[13]=b,t[14]=d,t[15]=f,t[16]=x):x=t[16];let j;t[17]!==e?(j=e("automations.automationRuns.successRateTitle"),t[17]=e,t[18]=j):j=t[18];const y=n?"…":C;let S;t[19]!==j||t[20]!==y?(S=s.jsx(J,{title:j,value:y}),t[19]=j,t[20]=y,t[21]=S):S=t[21];let N;t[22]!==e?(N=e("automations.automationRuns.tokensTitle"),t[22]=e,t[23]=N):N=t[23];let u;t[24]!==n||t[25]!==l?.totalTokens?(u=n?"…":at(l?.totalTokens??0),t[24]=n,t[25]=l?.totalTokens,t[26]=u):u=t[26];let v;t[27]!==N||t[28]!==u||t[29]!==h?(v=s.jsx(J,{title:N,value:u,subtitle:h}),t[27]=N,t[28]=u,t[29]=h,t[30]=v):v=t[30];let i;t[31]!==e?(i=e("automations.automationRuns.costTitle"),t[31]=e,t[32]=i):i=t[32];let p;t[33]!==n||t[34]!==l?(p=n?"…":l&&l.costUsd>0?nt(l.costUsd):"—",t[33]=n,t[34]=l,t[35]=p):p=t[35];let T;t[36]!==i||t[37]!==p||t[38]!==h?(T=s.jsx(J,{title:i,value:p,subtitle:h}),t[36]=i,t[37]=p,t[38]=h,t[39]=T):T=t[39];let g;return t[40]!==v||t[41]!==T||t[42]!==x||t[43]!==S?(g=s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[x,S,v,T]}),t[40]=v,t[41]=T,t[42]=x,t[43]=S,t[44]=g):g=t[44],g}function It(m){const t=Y.c(57),{run:r,usage:c,onClick:e,lastRowRef:o}=m,n=X();let a,l;if(t[0]!==r.created_at){const k=new Date(r.created_at);a=k.toLocaleDateString("en-US",{month:"short",day:"numeric"}),l=k.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),t[0]=r.created_at,t[1]=a,t[2]=l}else a=t[1],l=t[2];const P=l;let C,w,h,b,d,f,x,j,y,S,N;if(t[3]!==o||t[4]!==e||t[5]!==r.status||t[6]!==r.title||t[7]!==n){const k=vt(r.status),$=k.icon;w=st,y=o,S="h-14 cursor-pointer hover:bg-accent transition-colors border-b-0",N=e,t[19]!==r.title?(h=s.jsx(Q,{className:"min-w-0 pr-2 pl-4 md:pr-4",children:s.jsx("div",{className:"font-medium text-foreground truncate",children:r.title})}),t[19]=r.title,t[20]=h):h=t[20],C=Q,j="w-28 px-3",f="flex items-center gap-1.5",x=s.jsx($,{size:14,className:k.iconClassName}),b=ut("text-sm",k.labelColor),d=n(k.labelKey),t[3]=o,t[4]=e,t[5]=r.status,t[6]=r.title,t[7]=n,t[8]=C,t[9]=w,t[10]=h,t[11]=b,t[12]=d,t[13]=f,t[14]=x,t[15]=j,t[16]=y,t[17]=S,t[18]=N}else C=t[8],w=t[9],h=t[10],b=t[11],d=t[12],f=t[13],x=t[14],j=t[15],y=t[16],S=t[17],N=t[18];let u;t[21]!==b||t[22]!==d?(u=s.jsx("span",{className:b,children:d}),t[21]=b,t[22]=d,t[23]=u):u=t[23];let v;t[24]!==u||t[25]!==f||t[26]!==x?(v=s.jsxs("div",{className:f,children:[x,u]}),t[24]=u,t[25]=f,t[26]=x,t[27]=v):v=t[27];let i;t[28]!==C||t[29]!==v||t[30]!==j?(i=s.jsx(C,{className:j,children:v}),t[28]=C,t[29]=v,t[30]=j,t[31]=i):i=t[31];let p;t[32]!==c?(p=c?at(c.totalTokens):"—",t[32]=c,t[33]=p):p=t[33];let T;t[34]!==p?(T=s.jsx(Q,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:p}),t[34]=p,t[35]=T):T=t[35];let g;t[36]!==c?(g=c&&c.costUsd>0?nt(c.costUsd):"—",t[36]=c,t[37]=g):g=t[37];let I;t[38]!==g?(I=s.jsx(Q,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:g}),t[38]=g,t[39]=I):I=t[39];let D;t[40]!==a?(D=s.jsx("div",{children:a}),t[40]=a,t[41]=D):D=t[41];let _;t[42]!==P?(_=s.jsx("div",{className:"text-xs text-muted-foreground/60",children:P}),t[42]=P,t[43]=_):_=t[43];let E;t[44]!==D||t[45]!==_?(E=s.jsxs(Q,{className:"w-32 px-3 pr-5 text-muted-foreground",children:[D,_]}),t[44]=D,t[45]=_,t[46]=E):E=t[46];let M;return t[47]!==w||t[48]!==h||t[49]!==i||t[50]!==T||t[51]!==I||t[52]!==E||t[53]!==y||t[54]!==S||t[55]!==N?(M=s.jsxs(w,{ref:y,className:S,onClick:N,children:[h,i,T,I,E]}),t[47]=w,t[48]=h,t[49]=i,t[50]=T,t[51]=I,t[52]=E,t[53]=y,t[54]=S,t[55]=N,t[56]=M):M=t[56],M}function Vt(m){const t=Y.c(73),{automationId:r,triggerIds:c,range:e}=m,o=X(),{org:n,locator:a}=lt();let l;t[0]!==n.id||t[1]!==n.slug?(l={connectionId:it,orgId:n.id,orgSlug:n.slug},t[0]=n.id,t[1]=n.slug,t[2]=l):l=t[2];const P=pt(l),C=rt(),w=xt(),h=gt(),{data:b}=ct(),d=c.length>0;let f;t[3]!==r||t[4]!==n.id||t[5]!==c?(f=tt.automationRuns(n.id,r,c),t[3]=r,t[4]=n.id,t[5]=c,t[6]=f):f=t[6];let x;t[7]!==C||t[8]!==c?(x=async U=>{const{pageParam:z}=U,ot=z===void 0?0:z;return await C.call("COLLECTION_THREADS_LIST",{limit:W,offset:ot,where:{trigger_ids:c}})},t[7]=C,t[8]=c,t[9]=x):x=t[9];let j;t[10]!==d||t[11]!==f||t[12]!==x?(j={queryKey:f,queryFn:x,initialPageParam:0,getNextPageParam:Dt,enabled:d,staleTime:3e4},t[10]=d,t[11]=f,t[12]=x,t[13]=j):j=t[13];const{data:y,fetchNextPage:S,hasNextPage:N,isFetchingNextPage:u,isLoading:v}=ft(j);let i,p,T,g;t[14]!==y?.pages||t[15]!==a||t[16]!==e?(i=(y?.pages??[]).flatMap(kt),g=i.map(_t),T=mt,p=tt.monitoringThreadUsage(a,JSON.stringify({ids:g,...e})),t[14]=y?.pages,t[15]=a,t[16]=e,t[17]=i,t[18]=p,t[19]=T,t[20]=g):(i=t[17],p=t[18],T=t[19],g=t[20]);let I;t[21]!==e||t[22]!==C||t[23]!==g?(I=async()=>await C.call("MONITORING_THREAD_USAGE",{threadIds:g,...e.startDate?{startDate:e.startDate}:{},...e.endDate?{endDate:e.endDate}:{}}),t[21]=e,t[22]=C,t[23]=g,t[24]=I):I=t[24];const D=g.length>0;let _;t[25]!==p||t[26]!==I||t[27]!==D?(_={queryKey:p,queryFn:I,enabled:D,staleTime:3e4},t[25]=p,t[26]=I,t[27]=D,t[28]=_):_=t[28];const{data:E}=T(_);let M;t[29]!==E?.items?(M=new Map((E?.items??[]).map(Pt)),t[29]=E?.items,t[30]=M):M=t[30];const k=M;let $;t[31]!==S||t[32]!==N||t[33]!==u?($=()=>{N&&!u&&S()},t[31]=S,t[32]=N,t[33]=u,t[34]=$):$=t[34];const Z=St($,N??!1,u),R=bt(i),V=R.selected;let L;t[35]!==r||t[36]!==e?(L=s.jsx(yt,{automationId:r,range:e}),t[35]=r,t[36]=e,t[37]=L):L=t[37];let A;t[38]!==d||t[39]!==v||t[40]!==Z||t[41]!==i||t[42]!==R||t[43]!==o||t[44]!==k?(A=d?v?s.jsx("div",{className:"py-16 text-center text-sm text-muted-foreground",children:o("automations.automationRuns.loadingRuns")}):i.length===0?s.jsx("div",{className:"py-16",children:s.jsx(et,{title:o("automations.automationRuns.noRunsTitle"),description:o("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 font-normal text-meta",children:o("automations.automationRuns.runHeader")}),s.jsx(G,{className:"w-28 px-3 font-normal text-meta",children:o("automations.automationRuns.statusHeader")}),s.jsx(G,{className:"w-24 px-3 font-normal text-meta text-right",children:o("automations.automationRuns.tokensHeader")}),s.jsx(G,{className:"w-24 px-3 font-normal text-meta text-right",children:o("automations.automationRuns.costHeader")}),s.jsx(G,{className:"w-32 px-3 pr-5 font-normal text-meta",children:o("automations.automationRuns.startedHeader")})]})}),s.jsx(Tt,{children:i.map((U,z)=>s.jsx(It,{run:U,usage:k.get(U.id),onClick:()=>R.select(U.id),lastRowRef:z===i.length-1?Z:void 0},U.id))})]}):s.jsx("div",{className:"py-16",children:s.jsx(et,{title:o("automations.automationRuns.noStartersTitle"),description:o("automations.automationRuns.noStartersDescription")})}),t[38]=d,t[39]=v,t[40]=Z,t[41]=i,t[42]=R,t[43]=o,t[44]=k,t[45]=A):A=t[45];let H;t[46]!==u||t[47]!==o?(H=u&&s.jsx("div",{className:"py-4 text-center text-sm text-muted-foreground",children:o("automations.automationRuns.loadingMore")}),t[46]=u,t[47]=o,t[48]=H):H=t[48];let O;t[49]!==R?(O=U=>{U||R.close()},t[49]=R,t[50]=O):O=t[50];let K;t[51]!==w||t[52]!==h||t[53]!==P||t[54]!==a||t[55]!==b||t[56]!==i||t[57]!==V||t[58]!==R.index||t[59]!==R.next||t[60]!==R.prev?(K=V&&s.jsx(wt,{thread:V,client:P,locator:a,connections:w,virtualMcps:h,members:b,nav:{index:R.index,total:i.length,onPrev:R.prev,onNext:R.next}}),t[51]=w,t[52]=h,t[53]=P,t[54]=a,t[55]=b,t[56]=i,t[57]=V,t[58]=R.index,t[59]=R.next,t[60]=R.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]!==R.isOpen||t[65]!==O||t[66]!==q?(F=s.jsx(ht,{open:R.isOpen,onOpenChange:O,children:q}),t[64]=R.isOpen,t[65]=O,t[66]=q,t[67]=F):F=t[67];let B;return t[68]!==L||t[69]!==A||t[70]!==H||t[71]!==F?(B=s.jsxs("div",{className:"flex flex-col gap-5",children:[L,A,H,F]}),t[68]=L,t[69]=A,t[70]=H,t[71]=F,t[72]=B):B=t[72],B}function Pt(m){return[m.threadId,{calls:m.calls,inputTokens:m.inputTokens,outputTokens:m.outputTokens,totalTokens:m.totalTokens,costUsd:m.costUsd}]}function _t(m){return m.id}function kt(m){return m.items??[]}function Dt(m,t){const r=m,c=t;if(!((r?.items?.length??0)<W))return c.length*W}export{Vt as A};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as k,j as e,b as $,a6 as D,d as M,r as q,n as d,B as V,hi as F,E as S}from"./index-DokE5sNF.js";import{s as G}from"./Plus-B-S-SZ1j.js";import{i as b}from"./Zap-Cnh7YlUV.js";import{S as H}from"./search-input-C2u6aF8T.js";import{E as T}from"./empty-state-BwwrJHKq.js";import{u as J}from"./use-automations-it-dxpVL.js";import{u as K}from"./use-navigate-to-agent-O2aekGtL.js";import{A as O}from"./automation-list-row-PeCAvjmp.js";import{u as Q}from"./repository-binding-CBLNaLcn.js";import{R as U}from"./require-capability-_6vPPsFH.js";import"./SearchMd-BIZLsFUb.js";import"./use-mcp-client-DVaNUeKZ.js";import"./auth-CTQZGBnP.js";import"./thread-intent-GDKuN4r8.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BlWzBx5R.js";import"./task-board-DK1K-Mbd.js";import"./schema-BsNip7cg.js";import"./session-runtime-gzzgn7Pj.js";import"./badge-CXWhQd3j.js";import"./UserCheck01-DoVM7Q3H.js";import"./SwitchHorizontal01-DFAhxuil.js";import"./Trash01-DmArjRF_.js";import"./agent-icon-DA-Fg7pF.js";import"./AlertCircle-D_6mZhd3.js";import"./Tool01-DSm8VUO0.js";import"./ArrowUp-Hd6A0uf9.js";import"./ArrowLeft-DjgSByoQ.js";import"./ArrowRight-Du-vqw_x.js";import"./BookOpen01-gL1m_4-g.js";import"./Globe04-DEUqOfwK.js";import"./CheckCircle-12UwMq4H.js";import"./TrendUp01-Cb0Ss3qG.js";import"./ChevronDown-DeUpalBN.js";import"./ChevronSelectorVertical-DO-HHLr6.js";import"./ChevronUp-BzeZGyJH.js";import"./UserSquare-CeU_BqyG.js";import"./LinkBroken01-BdgK-qQO.js";import"./CreditCard01-C7IRKQGq.js";import"./File02-CFyU1pAb.js";import"./MessageCircle01-DVvYPWC-.js";import"./Eye-C1-H4NKN.js";import"./Fingerprint04-BmN62_tt.js";import"./Image01-D1EDWKnx.js";import"./Key01-tELScC1h.js";import"./LayoutLeft-551J-MO9.js";import"./Minus-CwITAxnt.js";import"./Monitor01-Cj8V3TAw.js";import"./Sun-DJ9HokSi.js";import"./Play-R1uGwJ-1.js";import"./ShoppingBag01-bCe9ug4u.js";import"./Upload01-C0hxLVoS.js";import"./Users01-CxZDOmOJ.js";import"./XClose-lVRJTaql.js";import"./access-gate-wCyQtv5A.js";import"./capability-load-error-DGMDILUu.js";function W(){const t=k.c(20),o=$(),{org:p}=D(),{data:y}=J(void 0),g=y===void 0?[]:y,E=Q(),P=K(),f=M(),[x,z]=q.useState(""),h=x.toLowerCase(),A=new Map(E.map(X)),N=g.filter(i=>{if(!h||i.name.toLowerCase().includes(h))return!0;if(i.virtual_mcp_id){const l=A.get(i.virtual_mcp_id);if(l&&l.title.toLowerCase().includes(h))return!0}return!1}),B=(i,l)=>{const R=l&&A.has(l)?l:F(p.id);S("automations_list_row_clicked",{automation_id:i,agent_id:R,source:"settings_automations"}),P(R,{panel:`automation:${i}`})};let c;t[0]!==f||t[1]!==p.slug?(c=()=>{S("automations_empty_state_browse_agents_clicked"),f({to:"/$org/settings/projects",params:{org:p.slug}})},t[0]=f,t[1]=p.slug,t[2]=c):c=t[2];const L=c,j=d,v=d,w=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 C=g.length>0&&e.jsx(H,{value:x,onChange:z,placeholder:o("settings.automations.searchPlaceholder"),className:"w-full md:w-[375px]"});let n;t[7]!==r||t[8]!==C?(n=e.jsxs("div",{className:"flex flex-col gap-6",children:[r,C]}),t[7]=r,t[8]=C,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(b,{size:48,className:"text-muted-foreground"}),title:o("settings.automations.emptyTitle"),description:o("settings.automations.emptyDescription"),actions:e.jsxs(V,{size:"sm",onClick:L,children:[e.jsx(G,{size:14}),o("settings.automations.browseAgentsButton")]})})}):N.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(T,{image:e.jsx(b,{size:48,className:"text-muted-foreground"}),title:o("settings.automations.noResultsTitle"),description:o("settings.automations.noResultsDescription",{search:x})})}):e.jsx("div",{className:"mt-6 flex flex-col divide-y divide-border overflow-hidden rounded-xl bg-card shadow-edge",children:N.map(i=>e.jsx(O,{automation:i,showAgent:!0,onClick:()=>B(i.id,i.virtual_mcp_id)},i.id))});let a;t[10]!==w.Container||t[11]!==n||t[12]!==_?(a=e.jsxs(w.Container,{children:[n,_]}),t[10]=w.Container,t[11]=n,t[12]=_,t[13]=a):a=t[13];let m;t[14]!==v.Content||t[15]!==a?(m=e.jsx(v.Content,{children:a}),t[14]=v.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 X(t){return[t.id,t]}function te(){const t=k.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(U,{capability:"automations:manage",area:"automations",children:e.jsx(W,{})}),t[0]=o):o=t[0],o}export{te as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,m as u,j as l,bZ as c,b_ as p}from"./index-
|
|
1
|
+
import{c as b,m as u,j as l,bZ as c,b_ as p}from"./index-DokE5sNF.js";const v=p("inline-flex items-center justify-center rounded-full text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1.5 [&>svg]:pointer-events-none focus-ring transition-[color,background-color] overflow-hidden",{variants:{variant:{default:"bg-muted text-foreground [a&]:hover:bg-secondary-hover",neutral:"bg-muted text-foreground [a&]:hover:bg-secondary-hover",secondary:"bg-muted text-foreground [a&]:hover:bg-secondary-hover",success:"bg-success/10 text-success [a&]:hover:bg-success/15",warning:"bg-warning/10 text-warning [a&]:hover:bg-warning/15",destructive:"bg-destructive/10 text-destructive [a&]:hover:bg-destructive/15",agent:"bg-brand-purple-tint text-brand-purple-dark dark:bg-brand-purple/20 dark:text-brand-purple",lime:"bg-brand-lime-tint text-brand-green-dark dark:bg-brand/20 dark:text-brand",info:"bg-brand-blue-tint text-brand-blue-dark dark:bg-brand-blue/20 dark:text-brand-blue",outline:"bg-card shadow-edge text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",muted:"bg-muted text-muted-foreground [a&]:hover:bg-secondary-hover",brand:"bg-brand/30 text-foreground [a&]:hover:bg-brand/40 [button&]:hover:bg-brand/40"},size:{sm:"h-4 gap-1 px-1.5 text-[0.6875rem]",default:"h-5 px-2",lg:"h-6 px-2.5 text-sm [&>svg]:size-3.5",control:"h-7 gap-1.5 pr-3 pl-1.5",icon:"size-5",segmented:"h-7 gap-0 rounded-lg bg-card p-0 shadow-edge"}},defaultVariants:{variant:"default",size:"default"}});function f(g){const e=b.c(14);let t,r,a,s,n;e[0]!==g?({className:t,variant:n,size:a,asChild:s,...r}=g,e[0]=g,e[1]=t,e[2]=r,e[3]=a,e[4]=s,e[5]=n):(t=e[1],r=e[2],a=e[3],s=e[4],n=e[5]);const i=(s===void 0?!1:s)?c:"span";let d;e[6]!==t||e[7]!==a||e[8]!==n?(d=u(v({variant:n,size:a}),t),e[6]=t,e[7]=a,e[8]=n,e[9]=d):d=e[9];let o;return e[10]!==i||e[11]!==r||e[12]!==d?(o=l.jsx(i,{"data-slot":"badge",className:d,...r}),e[10]=i,e[11]=r,e[12]=d,e[13]=o):o=e[13],o}export{f as B};
|