decocms 4.446.2 → 4.447.1
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-DjoFdKqn.js → AlertCircle-Dsxcywwk.js} +1 -1
- package/dist/client/assets/{AreaChart-B4-QNIT5.js → AreaChart-BzkZYIYf.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DCPdaQBd.js → ArrowLeft-CUAoXnBl.js} +1 -1
- package/dist/client/assets/{ArrowUp-CxGCH_mE.js → ArrowUp-DvEWAQS1.js} +1 -1
- package/dist/client/assets/{Building02-DQhkI7KU.js → Building02-DQSa0aPk.js} +1 -1
- package/dist/client/assets/{CartesianChart-B1qOpm8T.js → CartesianChart-C_rbOUc_.js} +1 -1
- package/dist/client/assets/{Check-aE-8J-dx.js → Check-CzhgdtoZ.js} +1 -1
- package/dist/client/assets/{CheckCircle-Yu1WDdmS.js → CheckCircle-48zzWb5o.js} +1 -1
- package/dist/client/assets/{ChevronUp-Br5R9lTH.js → ChevronUp-bPHHer4a.js} +1 -1
- package/dist/client/assets/{Copy01-CtLn8eQC.js → Copy01-DK-rveWk.js} +1 -1
- package/dist/client/assets/{CreditCard01-DARYnajC.js → CreditCard01-Bv4apDUd.js} +1 -1
- package/dist/client/assets/{DotsVertical-BkKYV-uH.js → DotsVertical-Cz9DnVkj.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-C1OQDTFH.js → ErrorBarContext-CAdF3KX1.js} +1 -1
- package/dist/client/assets/{Image01-CUJhdG59.js → Image01-DkSAzjSu.js} +1 -1
- package/dist/client/assets/{Key01-DA8aX6Mo.js → Key01-2_VP-ymA.js} +1 -1
- package/dist/client/assets/{Line-rn1mQt36.js → Line-BEPKdvRr.js} +1 -1
- package/dist/client/assets/{Link01-PgFxgiYI.js → Link01-CBIFqZsw.js} +1 -1
- package/dist/client/assets/{LinkBroken01-_oPW_2dj.js → LinkBroken01-CyPIuvAF.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Bzb2WBKu.js → LinkExternal01-D20IL3CN.js} +1 -1
- package/dist/client/assets/{Monitor01-evoIPilr.js → Monitor01-WwJ1rHPk.js} +1 -1
- package/dist/client/assets/{Palette-CI5-z0zm.js → Palette-jHJa2pFE.js} +1 -1
- package/dist/client/assets/{Plus-MXLtMY7l.js → Plus-BvxsRY-0.js} +1 -1
- package/dist/client/assets/{SearchMd-D2iMNQwW.js → SearchMd-CHmk5GD6.js} +1 -1
- package/dist/client/assets/{Sector-C_r2Ffen.js → Sector-BZGQzXCu.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BUSIbN12.js → ShoppingBag01-D0N-Vb4c.js} +1 -1
- package/dist/client/assets/{Sun-DaF8KN8m.js → Sun-7ajd25ZV.js} +1 -1
- package/dist/client/assets/{Tool01-BgPGiYBJ.js → Tool01-DetpIMtk.js} +1 -1
- package/dist/client/assets/{Trash01-DEfHm1-C.js → Trash01-DKbCrUTj.js} +1 -1
- package/dist/client/assets/{Upload01-AiwUaS84.js → Upload01-BBKhvCnt.js} +1 -1
- package/dist/client/assets/{User01-BJjdpbkY.js → User01-D2Lmw0ef.js} +1 -1
- package/dist/client/assets/{UserSquare-DkdLf214.js → UserSquare-CuUPyuma.js} +1 -1
- package/dist/client/assets/{Users01-DB-isk4t.js → Users01-DsJzDkrr.js} +1 -1
- package/dist/client/assets/{X-BHK_66ka.js → X-ateu7dRb.js} +1 -1
- package/dist/client/assets/{XAxis-alrFH4LG.js → XAxis-o5Dc22O9.js} +1 -1
- package/dist/client/assets/{XClose-oHtKIul6.js → XClose-Chbrrnow.js} +1 -1
- package/dist/client/assets/{ZoomOut-tzNSNsYS.js → ZoomOut-Bt3p5CRf.js} +1 -1
- package/dist/client/assets/{access-gate-DCBw1mxT.js → access-gate-Uqlikjgu.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-CxePJyfV.js → add-connection-dialog-B0L-P2sh.js} +1 -1
- package/dist/client/assets/{agent-analytics-CmDIgmaf.js → agent-analytics-BFb91OPU.js} +1 -1
- package/dist/client/assets/agent-app-Dz4q7M33.js +1 -0
- package/dist/client/assets/{agent-assets-BKN8mrH9.js → agent-assets-CLxww7C0.js} +1 -1
- package/dist/client/assets/{agent-automation-D2_4jFte.js → agent-automation-CIS8quGB.js} +1 -1
- package/dist/client/assets/{agent-automations-BdO5Otm-.js → agent-automations-BFirWNhs.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-C_Vz66Hn.js → agent-connect-sources-BwAWjblO.js} +1 -1
- package/dist/client/assets/agent-deck-WsR4Kn9L.js +1 -0
- package/dist/client/assets/{agent-e2e-BtxZGTPP.js → agent-e2e-BaIs1jb9.js} +1 -1
- package/dist/client/assets/{agent-experiments-jrY0lkQL.js → agent-experiments-1jqEeSlQ.js} +1 -1
- package/dist/client/assets/{agent-file-DW7h_l0N.js → agent-file-53hFn7yw.js} +1 -1
- package/dist/client/assets/{agent-git-CNZofsuU.js → agent-git-CTTGxwmS.js} +1 -1
- package/dist/client/assets/{agent-hosting-Do0x_Cui.js → agent-hosting--ETESSTx.js} +1 -1
- package/dist/client/assets/{agent-icon-B_yyO4wu.js → agent-icon-BRxvZRmN.js} +1 -1
- package/dist/client/assets/agent-library-BKKs17DG.js +1 -0
- package/dist/client/assets/agent-library-file-os4HTtuL.js +1 -0
- package/dist/client/assets/{agent-monitor-qUYNqgR7.js → agent-monitor-BILhL5_y.js} +1 -1
- package/dist/client/assets/{agent-overview-CIJcl1y9.js → agent-overview-DZ3BLKKZ.js} +1 -1
- package/dist/client/assets/agent-settings-DkVBAYdv.js +1 -0
- package/dist/client/assets/{agent-site-editor-CGcJkBvQ.js → agent-site-editor-BL5gelUr.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-BhSQKIbt.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-C3un--7d.js → agent-site-editor-content-BopCmF1V.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-CzW3y0aF.js → agent-site-editor-preview-CvTzIzXq.js} +3 -3
- package/dist/client/assets/agent-view-DHNwmHuh.js +1 -0
- package/dist/client/assets/{agent-view-guard-COpIrMD5.js → agent-view-guard-C9ItTzPi.js} +1 -1
- package/dist/client/assets/{agents-list-DbnK_TS0.js → agents-list-COSLVvDS.js} +1 -1
- package/dist/client/assets/{ai-providers-BWZH15D3.js → ai-providers-BCvug74N.js} +1 -1
- package/dist/client/assets/{alert-B1_hjg8d.js → alert-DsodQpgY.js} +1 -1
- package/dist/client/assets/{alert-dialog-D39kK11B.js → alert-dialog-Dr37XaeA.js} +1 -1
- package/dist/client/assets/{analytics-sections-DioPGL-G.js → analytics-sections-DbtkycCZ.js} +1 -1
- package/dist/client/assets/api-keys-Cz0CzGuc.js +1 -0
- package/dist/client/assets/{api-keys-DRbDIYDv.js → api-keys-DAccLTlD.js} +1 -1
- package/dist/client/assets/app-editor-JPlYmOB_.js +1 -0
- package/dist/client/assets/{asset-utils-BO8plCL6.js → asset-utils-CEMW7jjJ.js} +1 -1
- package/dist/client/assets/{auth-catchall-DRT8MYeJ.js → auth-catchall--nnHYbyR.js} +1 -1
- package/dist/client/assets/{auth-entry-0e7KL3PN.js → auth-entry-Dc4OnWLn.js} +1 -1
- package/dist/client/assets/{auth-BII1ityf.js → auth-qAvZ1LNt.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Bg4lwkz7.js → auth-split-layout-Co7x06Lg.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-D4OxRuRh.js → authenticate-and-persist-oauth-Bm9fWsOa.js} +1 -1
- package/dist/client/assets/{automation-list-row-cmz2A1Mm.js → automation-list-row-CqDXRJhE.js} +1 -1
- package/dist/client/assets/{automation-runs-By1RUmSp.js → automation-runs-bvqul2ks.js} +1 -1
- package/dist/client/assets/{automations-Dxsyy-_P.js → automations-Jd1l1G4G.js} +1 -1
- package/dist/client/assets/{autosend-B3t52XX_.js → autosend-BrczLssG.js} +1 -1
- package/dist/client/assets/{avatar-BTitfgsj.js → avatar-Be2YP03d.js} +1 -1
- package/dist/client/assets/{badge-E2auaQms.js → badge-BbkeIMgp.js} +1 -1
- package/dist/client/assets/{block-document-C0DAZm8i.js → block-document-Df24gcAz.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-Pq5_mqQ_.js → blocks-preview-workspace-context-CeDfLC0U.js} +1 -1
- package/dist/client/assets/{buckets-BJvCDpwG.js → buckets-9WzbA5Lg.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DbrN2I_U.js → build-improve-prompt-doc-Cp9ERAt-.js} +1 -1
- package/dist/client/assets/{calendar-1uM2n-Jw.js → calendar-B6jARNSc.js} +1 -1
- package/dist/client/assets/{capability-load-error--JlNKsUV.js → capability-load-error-DPnEcJx5.js} +1 -1
- package/dist/client/assets/{category-editor-BRLR25s7.js → category-editor-By3O-w3E.js} +1 -1
- package/dist/client/assets/{chart-BWgcHAUx.js → chart-DQLuV_FI.js} +1 -1
- package/dist/client/assets/{chat-context-rrrEGdS4.js → chat-context-Bf1EEUa_.js} +1 -1
- package/dist/client/assets/{chat-draft-dKpt_1aH.js → chat-draft-D0DwqSRP.js} +1 -1
- package/dist/client/assets/{checkbox-Dzt92tI8.js → checkbox-GjKetutN.js} +1 -1
- package/dist/client/assets/{choose-editor-CuReZRwP.js → choose-editor-CCuyU2RH.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-BIkHWTfz.js → claim-phase-copy-qcCOlkIz.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Cgszpcpc.js → cli-auth-success-B9a1R8wa.js} +1 -1
- package/dist/client/assets/{client-icons-7ySP-Erv.js → client-icons-C4EJJI6g.js} +1 -1
- package/dist/client/assets/{collapsible-wtqcAzkF.js → collapsible-C3DyD3IY.js} +1 -1
- package/dist/client/assets/{collection-detail-DFQ_Ozgb.js → collection-detail-4z7JbQw1.js} +1 -1
- package/dist/client/assets/{collection-display-button-C5weD_DC.js → collection-display-button-C0cLpFRb.js} +1 -1
- package/dist/client/assets/{collection-search-B7qdcCbg.js → collection-search-qakQR89K.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Ca4ZKWBI.js → collection-table-wrapper-4oDVKFGl.js} +1 -1
- package/dist/client/assets/{collection-tabs-B4z9WtuV.js → collection-tabs-CJy8rHXV.js} +1 -1
- package/dist/client/assets/{column-rules-D1hu0gi4.js → column-rules-DMmszLDK.js} +1 -1
- package/dist/client/assets/{combobox-pwfK5e2Y.js → combobox-CKdv5r-2.js} +1 -1
- package/dist/client/assets/{command-DTs9ObR-.js → command-CNDsxgwl.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-BRquAdAG.js → companion-mcps-section-bUkIE-gG.js} +1 -1
- package/dist/client/assets/{config-C96MdU2Q.js → config-BFtdxgOC.js} +1 -1
- package/dist/client/assets/{connect-JpHHEq0g.js → connect-C_Bx49BR.js} +1 -1
- package/dist/client/assets/{connect-layout-C6hpYb9u.js → connect-layout-clJE61fN.js} +1 -1
- package/dist/client/assets/{connection-B2m_fkQ_.js → connection-KyEHQxp9.js} +1 -1
- package/dist/client/assets/{connection-card-DBWNFKql.js → connection-card-XVRQmb88.js} +1 -1
- package/dist/client/assets/{connection-detail-C0vRZ2H6.js → connection-detail-qTgpDNX7.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BwQZA_xH.js → connection-form-helpers-Bz949-9G.js} +1 -1
- package/dist/client/assets/{connections-CDnUvJCF.js → connections-R5S4BIDs.js} +1 -1
- package/dist/client/assets/{context-Dkg4joGs.js → context-BA5tBJat.js} +1 -1
- package/dist/client/assets/{context-menu-CEwcq9KD.js → context-menu-BElFzhuX.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-B_uh2TuL.js → create-organization-dialog-DKdoNuXz.js} +1 -1
- package/dist/client/assets/daily-pulse-CKz-O4VD.js +1 -0
- package/dist/client/assets/{decopilot-DNRWEod6.js → decopilot-D0L_iZDN.js} +1 -1
- package/dist/client/assets/{device-hint-CPjfUQMP.js → device-hint-BHJC54cI.js} +1 -1
- package/dist/client/assets/{dialog-BDXg80r_.js → dialog-CSMrPqBB.js} +1 -1
- package/dist/client/assets/{discover-C1wwFXVd.js → discover-DDLMC3cx.js} +1 -1
- package/dist/client/assets/{domain-settings-DbZZ4hAo.js → domain-settings-Cr2aZAf_.js} +1 -1
- package/dist/client/assets/{download-app-dialog-CgdOlOsO.js → download-app-dialog-DegRrl-D.js} +1 -1
- package/dist/client/assets/{drawer-DAp1D7F-.js → drawer-DamNEeFr.js} +1 -1
- package/dist/client/assets/{editor-D6ylwlDD.js → editor-D-2XKeKJ.js} +1 -1
- package/dist/client/assets/{empty-state-BWACKPTq.js → empty-state-DfF0wZnW.js} +1 -1
- package/dist/client/assets/{empty-state-DXW-Qm8C.js → empty-state-e8q1K35w.js} +1 -1
- package/dist/client/assets/{extract-connection-data-C3og9nET.js → extract-connection-data-Yv51Ip2F.js} +1 -1
- package/dist/client/assets/{feature-gate-DvnLrc-B.js → feature-gate-Dj2ZsmzR.js} +1 -1
- package/dist/client/assets/{feature-paywall-C__T43mL.js → feature-paywall-DK7jIYwT.js} +1 -1
- package/dist/client/assets/{file-explorer-BlJGBAuC.js → file-explorer-CfxW2_sL.js} +1 -1
- package/dist/client/assets/{file-preview-BQqXnMWa.js → file-preview-ODrawZXt.js} +1 -1
- package/dist/client/assets/{file-share-button-B0H2-78i.js → file-share-button-DT9bUw3x.js} +1 -1
- package/dist/client/assets/{file-type-icon-DzrUMDgr.js → file-type-icon-Bv7OJA49.js} +1 -1
- package/dist/client/assets/flat-project-C-eO96A2.js +1 -0
- package/dist/client/assets/{folder-icon-CnNcFzK_.js → folder-icon-DGqv3QUB.js} +1 -1
- package/dist/client/assets/{form-BQW41VGV.js → form-BJXkrxaF.js} +1 -1
- package/dist/client/assets/{gateway-client-DeH7kjYP.js → gateway-client-9xfivYUp.js} +1 -1
- package/dist/client/assets/{general-DpC2Xqx-.js → general-BP_QzpXy.js} +1 -1
- package/dist/client/assets/{home-BGumdQEa.js → home-VShFyYWB.js} +1 -1
- package/dist/client/assets/{icon-button-DexH_d8x.js → icon-button-C4oA9vAv.js} +1 -1
- package/dist/client/assets/{index-BaM-tpLs.js → index-4hz_47mP.js} +3 -3
- package/dist/client/assets/{index-DXEiFGhx.js → index-Bj6rDen7.js} +1 -1
- package/dist/client/assets/{index-N3y65NSG.js → index-C46RwiKZ.js} +1 -1
- package/dist/client/assets/{index-yQ2CKmbB.js → index-CDt6WI9m.js} +1 -1
- package/dist/client/assets/{index-BYU2fptV.js → index-CEGt2PRu.js} +1 -1
- package/dist/client/assets/{index-B5AhRWPJ.js → index-CTYuweYZ.js} +1 -1
- package/dist/client/assets/{index-DKop9cOd.js → index-CXm3YShm.js} +1 -1
- package/dist/client/assets/{index-Cy_i_3Zg.js → index-CecxwC7F.js} +1 -1
- package/dist/client/assets/{index-Ce0CI_HW.js → index-DK0Dq4zJ.js} +1 -1
- package/dist/client/assets/{index-Dsl1ukJt.js → index-DNU42V4k.js} +1 -1
- package/dist/client/assets/{index-DD17LdOo.js → index-DbabGxy6.js} +5 -5
- package/dist/client/assets/{index-Dq_1-8A2.js → index-DbpjHDZh.js} +1 -1
- package/dist/client/assets/index-DoNIk522.css +1 -0
- package/dist/client/assets/{index-DCe0TA20.js → index-Dy0RWBgm.js} +1 -1
- package/dist/client/assets/{index-Cf73Fziv.js → index-Il2w9u7T.js} +1 -1
- package/dist/client/assets/{index-bQA4cKD0.js → index-rVMtfSUP.js} +1 -1
- package/dist/client/assets/{index-redirect-6LEJgFFV.js → index-redirect-CsG08aDH.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DjN6qwGN.js → infiniteQueryObserver-yDX2PlMf.js} +1 -1
- package/dist/client/assets/{infra-billing-ByEqMCug.js → infra-billing-CsnOWCZW.js} +1 -1
- package/dist/client/assets/{input-VO0irtoo.js → input-DGumA8Me.js} +3 -3
- package/dist/client/assets/{input-BbeG6cTt.js → input-DV9TXIhc.js} +1 -1
- package/dist/client/assets/{input-fqK_PA15.js → input-fdBI3UiD.js} +1 -1
- package/dist/client/assets/{integration-icon-DNr48VB-.js → integration-icon-CFV7KR9Q.js} +1 -1
- package/dist/client/assets/{label-DeoZl-yW.js → label-CaVwbUwP.js} +1 -1
- package/dist/client/assets/{layout-CssYzEFi.js → layout-Cn4gYBB0.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-Di8U03Ks.js → legacy-agents-deep-CImQMpuD.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-aXZ00Ch4.js → legacy-main-redirect-pPc22tCf.js} +1 -1
- package/dist/client/assets/library-VxiqdGt5.js +1 -0
- package/dist/client/assets/{library-tab-DO-vL1Sp.js → library-tab-DzLJVAy7.js} +1 -1
- package/dist/client/assets/{login-CIyCTb3_.js → login-9E08_289.js} +1 -1
- package/dist/client/assets/{markdown-CDhnofjs.js → markdown-BFRBcVyc.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-2ABF18H4.js → mcp-app-renderer-2vEnBSMK.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DRu55AOe.js → mcp-oauth-DPBTzzM-.js} +1 -1
- package/dist/client/assets/{members-DJvZO0Gs.js → members-4taneDvj.js} +1 -1
- package/dist/client/assets/{memory-CHY8Nsh9.js → memory-ihVMY_AG.js} +1 -1
- package/dist/client/assets/{message-templates-CAOd2UKb.js → message-templates-DZjeVSbL.js} +1 -1
- package/dist/client/assets/{mini-report-page-BAjp42Eo.js → mini-report-page-DtLYvRQ1.js} +1 -1
- package/dist/client/assets/{mock-board-Ci0rJP9S.js → mock-board-CwpnFESF.js} +1 -1
- package/dist/client/assets/{monaco-editor-B9-EbuZp.js → monaco-editor-CTBaCfme.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-C4IvvKh8.js → monitoring-stats-row-BkHIbumL.js} +1 -1
- package/dist/client/assets/{multi-select-DWjLi79A.js → multi-select-Z8b5GDV-.js} +1 -1
- package/dist/client/assets/{mustache-CGqpmqnY.js → mustache-B8Ea1V5C.js} +1 -1
- package/dist/client/assets/{new-project-dialog-aJ5dJ1rh.js → new-project-dialog-B-Knb9QQ.js} +1 -1
- package/dist/client/assets/{oauth-callback-CTZ5IMCe.js → oauth-callback-C8PRuTdi.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DQXOWeoZ.js → oauth-callback-ai-provider-aQAEhewW.js} +1 -1
- package/dist/client/assets/{onboarding-BY2hI8B5.js → onboarding-CQwAJGam.js} +1 -1
- package/dist/client/assets/{openai-conversation-oO5Jtxhx.js → openai-conversation-BieePbjd.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-DCkPfpOs.js → optimistic-project-sidebar-views-BjQNVvvG.js} +1 -1
- package/dist/client/assets/{org-file-open-context-BkQsHsKZ.js → org-file-open-context-DOjVu33M.js} +1 -1
- package/dist/client/assets/{organization-choice-Cv2hkzvH.js → organization-choice-DGHtNB__.js} +1 -1
- package/dist/client/assets/{orgs-Cy2r07rI.js → orgs-CrnZIBKQ.js} +1 -1
- package/dist/client/assets/{page-seo-form-Mk2av7Sl.js → page-seo-form-Cz3um724.js} +1 -1
- package/dist/client/assets/{pair-DdTx6Iw4.js → pair-28ek-gGQ.js} +1 -1
- package/dist/client/assets/{plan-ladder-wwhl4s-D.js → plan-ladder-CyI_9DNH.js} +1 -1
- package/dist/client/assets/{popover-WjvvubuZ.js → popover-DpWUGKUo.js} +1 -1
- package/dist/client/assets/{post-calendar-BNR4t9ZN.js → post-calendar-DeYBTRsx.js} +1 -1
- package/dist/client/assets/{post-editor-DOklsxV3.js → post-editor-Vuu8KboN.js} +1 -1
- package/dist/client/assets/{preview-content-DPf79jXA.js → preview-content-CnVo4-8-.js} +1 -1
- package/dist/client/assets/{preview-dialog-xi299w6D.js → preview-dialog-DIfOL8lf.js} +1 -1
- package/dist/client/assets/{profile-BEB3wVnr.js → profile-BHIo5II1.js} +1 -1
- package/dist/client/assets/{project-app-view-CPv6WSxO.js → project-app-view-DSWQ2xlW.js} +1 -1
- package/dist/client/assets/{project-feed-BIBH3UPz.js → project-feed-BuwrAz5D.js} +1 -1
- package/dist/client/assets/{project-icon-D1c3GFHZ.js → project-icon-B2QkPtkD.js} +1 -1
- package/dist/client/assets/project-reports-C2fGvQWV.js +1 -0
- package/dist/client/assets/project-tasks-CIHsh5h6.js +1 -0
- package/dist/client/assets/{projects-rXHz0BaU.js → projects-CeBBjzLS.js} +1 -1
- package/dist/client/assets/{projects-empty-state-B79AOVTQ.js → projects-empty-state-DqQWmR8c.js} +1 -1
- package/dist/client/assets/{prompts-BCxnWdIU.js → prompts-DMHqwjaa.js} +1 -1
- package/dist/client/assets/record-editor-tpiSv1vv.js +1 -0
- package/dist/client/assets/{redirect-editor-DeKPZWhP.js → redirect-editor-VS53IAor.js} +1 -1
- package/dist/client/assets/{reports-DGvj55Ah.js → reports-CRnJns1V.js} +1 -1
- package/dist/client/assets/reports-Cjp1W3ep.js +1 -0
- package/dist/client/assets/{reports-onboarding-B7ECOmwM.js → reports-onboarding-iY5NlXnv.js} +1 -1
- package/dist/client/assets/{reports-tab-DToyyT3v.js → reports-tab-CjdgNBIh.js} +2 -2
- package/dist/client/assets/{repositories-DQB7QntA.js → repositories-By85nJ-O.js} +1 -1
- package/dist/client/assets/{repository-binding-CJ_pw95F.js → repository-binding-DST5BjAq.js} +1 -1
- package/dist/client/assets/{repository-import-picker-Dr1vQH8s.js → repository-import-picker-Cefyzn5z.js} +1 -1
- package/dist/client/assets/{repository-picker-C5h4QyUX.js → repository-picker-DIYtkoGR.js} +1 -1
- package/dist/client/assets/{require-capability-CdLM5-q0.js → require-capability-Cgz4k3Fi.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DErGL9Rh.js → required-auth-layout-Sm_LEIrf.js} +1 -1
- package/dist/client/assets/{reset-password-D81cB6v9.js → reset-password-BwpS-xL5.js} +1 -1
- package/dist/client/assets/{resizable-CkV4haoj.js → resizable-Dd8Oiyrn.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-2k8oZvTh.js → resolve-tab-icon-BHe-FJLH.js} +1 -1
- package/dist/client/assets/{review-settings-CcqxaPA7.js → review-settings-3T-TH-W9.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-C94WsSn4.js → rich-text-link-control-CO6qXsgG.js} +1 -1
- package/dist/client/assets/{roles-CwOlJtAT.js → roles-BxZ_96io.js} +1 -1
- package/dist/client/assets/route-BWoA72Ha.js +1 -0
- package/dist/client/assets/route-Cc-MOYOr.js +1 -0
- package/dist/client/assets/{route-DFtzuP8H.js → route-MgE6XCPe.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-DJs4CTRJ.js → runnable-block-editor-0DsB0lC3.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-xQTXGx64.js → sandbox-lifecycle-context-ZoWZCIt3.js} +1 -1
- package/dist/client/assets/{schema-BPz-DoxV.js → schema-BD3Ue3jK.js} +1 -1
- package/dist/client/assets/{scroll-area-BYX63UJI.js → scroll-area-C1UEqWPg.js} +1 -1
- package/dist/client/assets/{search-input-BML3Kenk.js → search-input-uE9X4-9v.js} +1 -1
- package/dist/client/assets/{search-toggle-CvhVGWw1.js → search-toggle-BgK-oFXG.js} +1 -1
- package/dist/client/assets/{secret-picker-B9rV98rP.js → secret-picker-DpiORdM4.js} +1 -1
- package/dist/client/assets/{secrets-CXLj5c-L.js → secrets-CG0o7p-Z.js} +1 -1
- package/dist/client/assets/{sections-editor-CnNLFRme.js → sections-editor-mB_t7BGu.js} +1 -1
- package/dist/client/assets/{select-CvaUVwrC.js → select-DOq28vkW.js} +1 -1
- package/dist/client/assets/{select-model-C1nF3qen.js → select-model-BvwOHBLi.js} +1 -1
- package/dist/client/assets/{seo-editor-GB3MOC4z.js → seo-editor-te_rCW-y.js} +1 -1
- package/dist/client/assets/{separator-CR_-CVBp.js → separator-BQGbPFWO.js} +1 -1
- package/dist/client/assets/{settings-tab-CLxqNPs8.js → settings-tab-h8YLdZG4.js} +1 -1
- package/dist/client/assets/{sheet-BID6Bcl4.js → sheet-CAPBfpxY.js} +1 -1
- package/dist/client/assets/{shell-layout-B48Lo5Zk.js → shell-layout-D3hbXuJp.js} +1 -1
- package/dist/client/assets/{skills-CckAVRfc.js → skills-bn8hfZhY.js} +1 -1
- package/dist/client/assets/{sso-ILTug89T.js → sso-B2mfdHDN.js} +1 -1
- package/dist/client/assets/{suggestion-BriuVru4.js → suggestion-CxpxmxhU.js} +1 -1
- package/dist/client/assets/{switch-CDzEt_Yx.js → switch-DobgoLr7.js} +1 -1
- package/dist/client/assets/{synced-repos-xqnoVQ3o.js → synced-repos-BkubYLAQ.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-DfT7jmRq.js → tab-icon-glyph-DTu4Vb5u.js} +1 -1
- package/dist/client/assets/{table-8bUT8seV.js → table-B3glu4jC.js} +1 -1
- package/dist/client/assets/{tabs-BaxVRsCI.js → tabs-tpTL3qIk.js} +1 -1
- package/dist/client/assets/{task-board-D2BE2LPw.js → task-board-DD4Wj2ht.js} +1 -1
- package/dist/client/assets/{task-route-BlXoLKUv.js → task-route-DkYY7Jf8.js} +1 -1
- package/dist/client/assets/{task-status-BMtNEPmq.js → task-status-DQDKjMn6.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-BfH8uJBw.js → taskboard-analytics-BqZn-lMy.js} +1 -1
- package/dist/client/assets/tasks-DARVJAgH.js +1 -0
- package/dist/client/assets/{tasks-BOz1Ws1V.js → tasks-DoHgB8D-.js} +1 -1
- package/dist/client/assets/{textarea-C7A4jkvL.js → textarea-B-0phPFl.js} +1 -1
- package/dist/client/assets/{thread-analytics-Jd9FTruE.js → thread-analytics-BqmJENFM.js} +1 -1
- package/dist/client/assets/thread-button-B6AnS30f.js +1 -0
- package/dist/client/assets/{thread-intent-wfAGHI9k.js → thread-intent-CgGr7s14.js} +1 -1
- package/dist/client/assets/{thread-route-BWW9Xj2f.js → thread-route-CYYizTAL.js} +1 -1
- package/dist/client/assets/{thread-route-DsI5gcIr.js → thread-route-DIGJI8Dr.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-Bd1XBkek.js → thread-sheet-body-Ywa9zjyd.js} +1 -1
- package/dist/client/assets/{toggle-group-C85PVL3X.js → toggle-group-CHFxR7n1.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DKjVMod_.js → toolbar-icon-button-CLiPKHlm.js} +1 -1
- package/dist/client/assets/{tooltip-Cyc9NKXJ.js → tooltip-wkfHPLLP.js} +1 -1
- package/dist/client/assets/{track-p_LAuNvK.js → track-DHiW7Kzl.js} +1 -1
- package/dist/client/assets/{types-l4l1-swZ.js → types-D821jmOY.js} +1 -1
- package/dist/client/assets/{usage-stats-EK6mC9s2.js → usage-stats-dtNozGHE.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BKLzJh1_.js → use-ai-providers-DAPxuNGR.js} +1 -1
- package/dist/client/assets/{use-automations-D3x6QSEG.js → use-automations-BSdsdElw.js} +1 -1
- package/dist/client/assets/{use-autosave-oFSjwwUF.js → use-autosave-Bb3SyJ6X.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-0qWIlbnk.js → use-chat-layout-state-DMEvvTdU.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BYTJfFPJ.js → use-clock-tick-CcZLWvhU.js} +1 -1
- package/dist/client/assets/{use-connect-companion-DZDzQd28.js → use-connect-companion-bZE9oz5D.js} +1 -1
- package/dist/client/assets/{use-connection-BDIMmEql.js → use-connection-CbaLhExN.js} +1 -1
- package/dist/client/assets/{use-copy-DNk3vyQa.js → use-copy-ClIijIuF.js} +1 -1
- package/dist/client/assets/use-create-virtual-mcp-Ct8X79Tz.js +1 -0
- package/dist/client/assets/{use-date-fns-locale-CatCLOAz.js → use-date-fns-locale-Casbf2a3.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BqsvUMpV.js → use-debounced-autosave-BWu_uxAJ.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CMs08Lup.js → use-debounced-value-B8wDF2XE.js} +1 -1
- package/dist/client/assets/{use-deco-credits-DO_Mi4f2.js → use-deco-credits-CV7jBFos.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BY_hixqd.js → use-decopilot-events-Ch1NmAx8.js} +1 -1
- package/dist/client/assets/{use-delete-connection-JYdb3g8I.js → use-delete-connection-UsR0uNx4.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-lMjJ-tOg.js → use-deployment-admin-BF_f54Es.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-D8bUARFA.js → use-fast-preview-draft-url-B2gvR8WR.js} +1 -1
- package/dist/client/assets/{use-file-configs-BYFcKLTt.js → use-file-configs-DI1Gb-A6.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-D_h1bU_O.js → use-infinite-scroll-Cq0eGH_b.js} +1 -1
- package/dist/client/assets/{use-join-requests-CuheCnou.js → use-join-requests-CuAsvnrr.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-CT7NVKmX.js → use-main-panel-tabs-DpHhPbO5.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-C0JasP2w.js → use-mcp-auth-status-DL6cA7oB.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BwmV3MW8.js → use-mcp-client-CfAhFfUQ.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DfL0DKop.js → use-mcp-prompts-DUcMyHUY.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DaY04Cnx.js → use-mcp-tools-CzCYSnw_.js} +1 -1
- package/dist/client/assets/{use-members-CeSqgIx5.js → use-members-DgL3Nti4.js} +1 -1
- package/dist/client/assets/{use-mobile-dxqjeB9C.js → use-mobile-CRrGxASl.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Co4saf9i.js → use-navigate-to-agent-BvvbqcqU.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-DMxJSTvk.js +1 -0
- package/dist/client/assets/{use-open-billing-url-DNH1wvY9.js → use-open-billing-url-CeVw8-rB.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-D4bGY1I4.js → use-org-auth-client-BdIkgk3C.js} +1 -1
- package/dist/client/assets/{use-org-fs-DTUSNHuq.js → use-org-fs-DnXImEGt.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CDggK2v-.js → use-org-repo-syncs-CR1cxPeJ.js} +1 -1
- package/dist/client/assets/{use-org-sso-Bbo5tHOp.js → use-org-sso-BWqpxNPp.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DJHkyVq7.js → use-organization-roles-DeZ0GmYu.js} +1 -1
- package/dist/client/assets/{use-organization-settings-4sBPGImH.js → use-organization-settings-CAg22Y85.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-C-oGXzox.js → use-panel-navigate-1U3BGwp7.js} +1 -1
- package/dist/client/assets/{use-project-scope-BYZ6yY5x.js → use-project-scope-CAwN_j8n.js} +1 -1
- package/dist/client/assets/{use-releases-D6w9Gx21.js → use-releases-oNY9aclO.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-BO4L5i9s.js → use-reports-diagnostic-BERenbrG.js} +1 -1
- package/dist/client/assets/{use-secrets-B3wy2yaT.js → use-secrets-DVp8iDqR.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-D_QxAs1Z.js → use-section-preview-base-0SFqRDNJ.js} +1 -1
- package/dist/client/assets/{use-session-runtime-CEr5Osm3.js → use-session-runtime-CYBHR_jn.js} +1 -1
- package/dist/client/assets/{use-tags-BIcLkILs.js → use-tags-BhYfCjoP.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-CXzmZIDx.js → use-task-board-analytics-g2dJA7k7.js} +1 -1
- package/dist/client/assets/{use-task-board-events-xJ2Gil4b.js → use-task-board-events-g4QVOfjw.js} +1 -1
- package/dist/client/assets/{use-task-metadata-CCng6xu_.js → use-task-metadata-DyoW40DT.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-tp8G0WjA.js → use-thread-analytics-CqH2wFAc.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-8410oJSY.js → use-thread-outputs-Dlae_WuT.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CCCPgG_d.js +1 -0
- package/dist/client/assets/{useQueries-ChX2pN0S.js → useQueries-BrUezESb.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-VJgBO4F9.js +1 -0
- package/dist/client/assets/{users-CQgXffaI.js → users-DLL0mxIn.js} +1 -1
- package/dist/client/assets/{utils-Bcg0LMFt.js → utils-CRUIllS1.js} +1 -1
- package/dist/client/assets/{variant-calendar-CjE-C9R-.js → variant-calendar-B-KiE4--.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-Dr2AK1Ld.js → variant-matcher-override-QKsigM8f.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-C4wafyT7.js → view-mode-toggle-BP4sJ9Zb.js} +1 -1
- package/dist/client/assets/{virtual-mcp-3VgUzbRs.js → virtual-mcp-CU6lFPKs.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-BFLhnOBw.js +0 -1
- package/dist/client/assets/agent-deck-SJNcwym0.js +0 -1
- package/dist/client/assets/agent-library-CZwkAyEb.js +0 -1
- package/dist/client/assets/agent-library-file-BNnVRc85.js +0 -1
- package/dist/client/assets/agent-settings-DRae4Kkc.js +0 -1
- package/dist/client/assets/agent-site-editor-code-DZBVrZ49.js +0 -2
- package/dist/client/assets/agent-view-D4okXxIR.js +0 -1
- package/dist/client/assets/api-keys-Js_fbclL.js +0 -1
- package/dist/client/assets/app-editor-Cm4YSTQy.js +0 -1
- package/dist/client/assets/daily-pulse-Dj713Lim.js +0 -1
- package/dist/client/assets/flat-project-nMTKhWNR.js +0 -1
- package/dist/client/assets/index-6WjGaIcE.css +0 -1
- package/dist/client/assets/library-BsFI4hAN.js +0 -1
- package/dist/client/assets/project-reports-DgCdGEvu.js +0 -1
- package/dist/client/assets/project-tasks-CM7ap7PD.js +0 -1
- package/dist/client/assets/record-editor-y816y4Ir.js +0 -1
- package/dist/client/assets/reports-D8CHApNA.js +0 -1
- package/dist/client/assets/route-Bk-qMy-9.js +0 -1
- package/dist/client/assets/route-Ct8T-J8s.js +0 -1
- package/dist/client/assets/tasks-Dsw3egox.js +0 -1
- package/dist/client/assets/thread-button-DNHhXrfO.js +0 -1
- package/dist/client/assets/use-create-virtual-mcp-BpxFtCSO.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-CyUK_4wA.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CTTKOBfu.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-3AX2bQF7.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aX as $,aY as v,aZ as W,a_ as H,a$ as D,b0 as y,b1 as V,b2 as x,b3 as L,b4 as q,b5 as j,b6 as N,b7 as B,b8 as Z,b9 as F}from"./index-DD17LdOo.js";function G(e){const t=typeof e=="string"?new URL(e):new URL(e.href);return t.hash="",t}function J({requestedResource:e,configuredResource:t}){const n=typeof e=="string"?new URL(e):new URL(e.href),r=typeof t=="string"?new URL(t):new URL(t.href);if(n.origin!==r.origin||n.pathname.length<r.pathname.length)return!1;const a=n.pathname.endsWith("/")?n.pathname:n.pathname+"/",i=r.pathname.endsWith("/")?r.pathname:r.pathname+"/";return a.startsWith(i)}class pe extends Error{constructor(t){super(t??"Unauthorized")}}function Y(e){return["client_secret_basic","client_secret_post","none"].includes(e)}const p="code",_="S256";function X(e,t){const n=e.client_secret!==void 0;return"token_endpoint_auth_method"in e&&e.token_endpoint_auth_method&&Y(e.token_endpoint_auth_method)&&(t.length===0||t.includes(e.token_endpoint_auth_method))?e.token_endpoint_auth_method:t.length===0?n?"client_secret_basic":"none":n&&t.includes("client_secret_basic")?"client_secret_basic":n&&t.includes("client_secret_post")?"client_secret_post":t.includes("none")?"none":n?"client_secret_post":"none"}function K(e,t,n,r){const{client_id:a,client_secret:i}=t;switch(e){case"client_secret_basic":Q(a,i,n);return;case"client_secret_post":ee(a,i,r);return;case"none":te(a,r);return;default:throw new Error(`Unsupported client authentication method: ${e}`)}}function Q(e,t,n){if(!t)throw new Error("client_secret_basic authentication requires a client_secret");const r=btoa(`${e}:${t}`);n.set("Authorization",`Basic ${r}`)}function ee(e,t,n){n.set("client_id",e),t&&n.set("client_secret",t)}function te(e,t){t.set("client_id",e)}async function M(e){const t=e instanceof Response?e.status:void 0,n=e instanceof Response?await e.text():e;try{const r=B.parse(JSON.parse(n)),{error:a,error_description:i,error_uri:s}=r,o=Z[a]||y;return new o(i||"",s)}catch(r){const a=`${t?`HTTP ${t}: `:""}Invalid OAuth error response: ${r}. Raw body: ${n}`;return new y(a)}}async function _e(e,t){try{return await U(e,t)}catch(n){if(n instanceof $||n instanceof v)return await e.invalidateCredentials?.("all"),await U(e,t);if(n instanceof W)return await e.invalidateCredentials?.("tokens"),await U(e,t);throw n}}async function U(e,{serverUrl:t,authorizationCode:n,scope:r,resourceMetadataUrl:a,fetchFn:i}){const s=await e.discoveryState?.();let o,c,u,h=a;if(!h&&s?.resourceMetadataUrl&&(h=new URL(s.resourceMetadataUrl)),s?.authorizationServerUrl){if(c=s.authorizationServerUrl,o=s.resourceMetadata,u=s.authorizationServerMetadata??await P(c,{fetchFn:i}),!o)try{o=await T(t,{resourceMetadataUrl:h},i)}catch{}(u!==s.authorizationServerMetadata||o!==s.resourceMetadata)&&await e.saveDiscoveryState?.({authorizationServerUrl:String(c),resourceMetadataUrl:h?.toString(),resourceMetadata:o,authorizationServerMetadata:u})}else{const l=await ce(t,{resourceMetadataUrl:h,fetchFn:i});c=l.authorizationServerUrl,u=l.authorizationServerMetadata,o=l.resourceMetadata,await e.saveDiscoveryState?.({authorizationServerUrl:String(c),resourceMetadataUrl:h?.toString(),resourceMetadata:o,authorizationServerMetadata:u})}const f=await re(t,e,o),A=r||o?.scopes_supported?.join(" ")||e.clientMetadata.scope;let d=await Promise.resolve(e.clientInformation());if(!d){if(n!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");const l=u?.client_id_metadata_document_supported===!0,w=e.clientMetadataUrl;if(w&&!ne(w))throw new H(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${w}`);if(l&&w)d={client_id:w},await e.saveClientInformation?.(d);else{if(!e.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");const S=await de(c,{metadata:u,clientMetadata:e.clientMetadata,scope:A,fetchFn:i});await e.saveClientInformation(S),d=S}}const O=!e.redirectUrl;if(n!==void 0||O){const l=await he(e,c,{metadata:u,resource:f,authorizationCode:n,fetchFn:i});return await e.saveTokens(l),"AUTHORIZED"}const k=await e.tokens();if(k?.refresh_token)try{const l=await le(c,{metadata:u,clientInformation:d,refreshToken:k.refresh_token,resource:f,addClientAuthentication:e.addClientAuthentication,fetchFn:i});return await e.saveTokens(l),"AUTHORIZED"}catch(l){if(!(!(l instanceof D)||l instanceof y))throw l}const C=e.state?await e.state():void 0,{authorizationUrl:z,codeVerifier:I}=await ue(c,{metadata:u,clientInformation:d,state:C,redirectUrl:e.redirectUrl,scope:A,resource:f});return await e.saveCodeVerifier(I),await e.redirectToAuthorization(z),"REDIRECT"}function ne(e){if(!e)return!1;try{const t=new URL(e);return t.protocol==="https:"&&t.pathname!=="/"}catch{return!1}}async function re(e,t,n){const r=G(e);if(t.validateResourceURL)return await t.validateResourceURL(r,n?.resource);if(n){if(!J({requestedResource:r,configuredResource:n.resource}))throw new Error(`Protected resource ${n.resource} does not match expected ${r} (or origin)`);return new URL(n.resource)}}function Ue(e){const t=e.headers.get("WWW-Authenticate");if(!t)return{};const[n,r]=t.split(" ");if(n.toLowerCase()!=="bearer"||!r)return{};const a=m(e,"resource_metadata")||void 0;let i;if(a)try{i=new URL(a)}catch{}const s=m(e,"scope")||void 0,o=m(e,"error")||void 0;return{resourceMetadataUrl:i,scope:s,error:o}}function m(e,t){const n=e.headers.get("WWW-Authenticate");if(!n)return null;const r=new RegExp(`${t}=(?:"([^"]+)"|([^\\s,]+))`),a=n.match(r);return a?a[1]||a[2]:null}async function T(e,t,n=fetch){const r=await ie(e,"oauth-protected-resource",n,{protocolVersion:t?.protocolVersion,metadataUrl:t?.resourceMetadataUrl});if(!r||r.status===404)throw await r?.body?.cancel(),new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!r.ok)throw await r.body?.cancel(),new Error(`HTTP ${r.status} trying to load well-known OAuth protected resource metadata.`);return q.parse(await r.json())}async function R(e,t,n=fetch){try{return await n(e,{headers:t})}catch(r){if(r instanceof TypeError)return t?R(e,void 0,n):void 0;throw r}}function ae(e,t="",n={}){return t.endsWith("/")&&(t=t.slice(0,-1)),n.prependPathname?`${t}/.well-known/${e}`:`/.well-known/${e}${t}`}async function E(e,t,n=fetch){return await R(e,{"MCP-Protocol-Version":t},n)}function oe(e,t){return!e||e.status>=400&&e.status<500&&t!=="/"}async function ie(e,t,n,r){const a=new URL(e),i=r?.protocolVersion??L;let s;if(r?.metadataUrl)s=new URL(r.metadataUrl);else{const c=ae(t,a.pathname);s=new URL(c,r?.metadataServerUrl??a),s.search=a.search}let o=await E(s,i,n);if(!r?.metadataUrl&&oe(o,a.pathname)){const c=new URL(`/.well-known/${t}`,a);o=await E(c,i,n)}return o}function se(e){const t=typeof e=="string"?new URL(e):e,n=t.pathname!=="/",r=[];if(!n)return r.push({url:new URL("/.well-known/oauth-authorization-server",t.origin),type:"oauth"}),r.push({url:new URL("/.well-known/openid-configuration",t.origin),type:"oidc"}),r;let a=t.pathname;return a.endsWith("/")&&(a=a.slice(0,-1)),r.push({url:new URL(`/.well-known/oauth-authorization-server${a}`,t.origin),type:"oauth"}),r.push({url:new URL(`/.well-known/openid-configuration${a}`,t.origin),type:"oidc"}),r.push({url:new URL(`${a}/.well-known/openid-configuration`,t.origin),type:"oidc"}),r}async function P(e,{fetchFn:t=fetch,protocolVersion:n=L}={}){const r={"MCP-Protocol-Version":n,Accept:"application/json"},a=se(e);for(const{url:i,type:s}of a){const o=await R(i,r,t);if(o){if(!o.ok){if(await o.body?.cancel(),o.status>=400&&o.status<500)continue;throw new Error(`HTTP ${o.status} trying to load ${s==="oauth"?"OAuth":"OpenID provider"} metadata from ${i}`)}return s==="oauth"?V.parse(await o.json()):x.parse(await o.json())}}}async function ce(e,t){let n,r;try{n=await T(e,{resourceMetadataUrl:t?.resourceMetadataUrl},t?.fetchFn),n.authorization_servers&&n.authorization_servers.length>0&&(r=n.authorization_servers[0])}catch{}r||(r=String(new URL("/",e)));const a=await P(r,{fetchFn:t?.fetchFn});return{authorizationServerUrl:r,authorizationServerMetadata:a,resourceMetadata:n}}async function ue(e,{metadata:t,clientInformation:n,redirectUrl:r,scope:a,state:i,resource:s}){let o;if(t){if(o=new URL(t.authorization_endpoint),!t.response_types_supported.includes(p))throw new Error(`Incompatible auth server: does not support response type ${p}`);if(t.code_challenge_methods_supported&&!t.code_challenge_methods_supported.includes(_))throw new Error(`Incompatible auth server: does not support code challenge method ${_}`)}else o=new URL("/authorize",e);const c=await N(),u=c.code_verifier,h=c.code_challenge;return o.searchParams.set("response_type",p),o.searchParams.set("client_id",n.client_id),o.searchParams.set("code_challenge",h),o.searchParams.set("code_challenge_method",_),o.searchParams.set("redirect_uri",String(r)),i&&o.searchParams.set("state",i),a&&o.searchParams.set("scope",a),a?.includes("offline_access")&&o.searchParams.append("prompt","consent"),s&&o.searchParams.set("resource",s.href),{authorizationUrl:o,codeVerifier:u}}function b(e,t,n){return new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:t,redirect_uri:String(n)})}async function g(e,{metadata:t,tokenRequestParams:n,clientInformation:r,addClientAuthentication:a,resource:i,fetchFn:s}){const o=t?.token_endpoint?new URL(t.token_endpoint):new URL("/token",e),c=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(i&&n.set("resource",i.href),a)await a(c,n,o,t);else if(r){const h=t?.token_endpoint_auth_methods_supported??[],f=X(r,h);K(f,r,c,n)}const u=await(s??fetch)(o,{method:"POST",headers:c,body:n});if(!u.ok)throw await M(u);return F.parse(await u.json())}async function me(e,{metadata:t,clientInformation:n,authorizationCode:r,codeVerifier:a,redirectUri:i,resource:s,addClientAuthentication:o,fetchFn:c}){const u=b(r,a,i);return g(e,{metadata:t,tokenRequestParams:u,clientInformation:n,addClientAuthentication:o,resource:s,fetchFn:c})}async function le(e,{metadata:t,clientInformation:n,refreshToken:r,resource:a,addClientAuthentication:i,fetchFn:s}){const o=new URLSearchParams({grant_type:"refresh_token",refresh_token:r}),c=await g(e,{metadata:t,tokenRequestParams:o,clientInformation:n,addClientAuthentication:i,resource:a,fetchFn:s});return{refresh_token:r,...c}}async function he(e,t,{metadata:n,resource:r,authorizationCode:a,fetchFn:i}={}){const s=e.clientMetadata.scope;let o;if(e.prepareTokenRequest&&(o=await e.prepareTokenRequest(s)),!o){if(!a)throw new Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!e.redirectUrl)throw new Error("redirectUrl is required for authorization_code flow");const u=await e.codeVerifier();o=b(a,u,e.redirectUrl)}const c=await e.clientInformation();return g(t,{metadata:n,tokenRequestParams:o,clientInformation:c??void 0,addClientAuthentication:e.addClientAuthentication,resource:r,fetchFn:i})}async function de(e,{metadata:t,clientMetadata:n,scope:r,fetchFn:a}){let i;if(t){if(!t.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");i=new URL(t.registration_endpoint)}else i=new URL("/register",e);const s=await(a??fetch)(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,...r!==void 0?{scope:r}:{}})});if(!s.ok)throw await M(s);return j.parse(await s.json())}export{pe as U,P as a,_e as b,Ue as c,T as d,me as e};
|
|
1
|
+
import{aX as $,aY as v,aZ as W,a_ as H,a$ as D,b0 as y,b1 as V,b2 as x,b3 as L,b4 as q,b5 as j,b6 as N,b7 as B,b8 as Z,b9 as F}from"./index-DbabGxy6.js";function G(e){const t=typeof e=="string"?new URL(e):new URL(e.href);return t.hash="",t}function J({requestedResource:e,configuredResource:t}){const n=typeof e=="string"?new URL(e):new URL(e.href),r=typeof t=="string"?new URL(t):new URL(t.href);if(n.origin!==r.origin||n.pathname.length<r.pathname.length)return!1;const a=n.pathname.endsWith("/")?n.pathname:n.pathname+"/",i=r.pathname.endsWith("/")?r.pathname:r.pathname+"/";return a.startsWith(i)}class pe extends Error{constructor(t){super(t??"Unauthorized")}}function Y(e){return["client_secret_basic","client_secret_post","none"].includes(e)}const p="code",_="S256";function X(e,t){const n=e.client_secret!==void 0;return"token_endpoint_auth_method"in e&&e.token_endpoint_auth_method&&Y(e.token_endpoint_auth_method)&&(t.length===0||t.includes(e.token_endpoint_auth_method))?e.token_endpoint_auth_method:t.length===0?n?"client_secret_basic":"none":n&&t.includes("client_secret_basic")?"client_secret_basic":n&&t.includes("client_secret_post")?"client_secret_post":t.includes("none")?"none":n?"client_secret_post":"none"}function K(e,t,n,r){const{client_id:a,client_secret:i}=t;switch(e){case"client_secret_basic":Q(a,i,n);return;case"client_secret_post":ee(a,i,r);return;case"none":te(a,r);return;default:throw new Error(`Unsupported client authentication method: ${e}`)}}function Q(e,t,n){if(!t)throw new Error("client_secret_basic authentication requires a client_secret");const r=btoa(`${e}:${t}`);n.set("Authorization",`Basic ${r}`)}function ee(e,t,n){n.set("client_id",e),t&&n.set("client_secret",t)}function te(e,t){t.set("client_id",e)}async function M(e){const t=e instanceof Response?e.status:void 0,n=e instanceof Response?await e.text():e;try{const r=B.parse(JSON.parse(n)),{error:a,error_description:i,error_uri:s}=r,o=Z[a]||y;return new o(i||"",s)}catch(r){const a=`${t?`HTTP ${t}: `:""}Invalid OAuth error response: ${r}. Raw body: ${n}`;return new y(a)}}async function _e(e,t){try{return await U(e,t)}catch(n){if(n instanceof $||n instanceof v)return await e.invalidateCredentials?.("all"),await U(e,t);if(n instanceof W)return await e.invalidateCredentials?.("tokens"),await U(e,t);throw n}}async function U(e,{serverUrl:t,authorizationCode:n,scope:r,resourceMetadataUrl:a,fetchFn:i}){const s=await e.discoveryState?.();let o,c,u,h=a;if(!h&&s?.resourceMetadataUrl&&(h=new URL(s.resourceMetadataUrl)),s?.authorizationServerUrl){if(c=s.authorizationServerUrl,o=s.resourceMetadata,u=s.authorizationServerMetadata??await P(c,{fetchFn:i}),!o)try{o=await T(t,{resourceMetadataUrl:h},i)}catch{}(u!==s.authorizationServerMetadata||o!==s.resourceMetadata)&&await e.saveDiscoveryState?.({authorizationServerUrl:String(c),resourceMetadataUrl:h?.toString(),resourceMetadata:o,authorizationServerMetadata:u})}else{const l=await ce(t,{resourceMetadataUrl:h,fetchFn:i});c=l.authorizationServerUrl,u=l.authorizationServerMetadata,o=l.resourceMetadata,await e.saveDiscoveryState?.({authorizationServerUrl:String(c),resourceMetadataUrl:h?.toString(),resourceMetadata:o,authorizationServerMetadata:u})}const f=await re(t,e,o),A=r||o?.scopes_supported?.join(" ")||e.clientMetadata.scope;let d=await Promise.resolve(e.clientInformation());if(!d){if(n!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");const l=u?.client_id_metadata_document_supported===!0,w=e.clientMetadataUrl;if(w&&!ne(w))throw new H(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${w}`);if(l&&w)d={client_id:w},await e.saveClientInformation?.(d);else{if(!e.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");const S=await de(c,{metadata:u,clientMetadata:e.clientMetadata,scope:A,fetchFn:i});await e.saveClientInformation(S),d=S}}const O=!e.redirectUrl;if(n!==void 0||O){const l=await he(e,c,{metadata:u,resource:f,authorizationCode:n,fetchFn:i});return await e.saveTokens(l),"AUTHORIZED"}const k=await e.tokens();if(k?.refresh_token)try{const l=await le(c,{metadata:u,clientInformation:d,refreshToken:k.refresh_token,resource:f,addClientAuthentication:e.addClientAuthentication,fetchFn:i});return await e.saveTokens(l),"AUTHORIZED"}catch(l){if(!(!(l instanceof D)||l instanceof y))throw l}const C=e.state?await e.state():void 0,{authorizationUrl:z,codeVerifier:I}=await ue(c,{metadata:u,clientInformation:d,state:C,redirectUrl:e.redirectUrl,scope:A,resource:f});return await e.saveCodeVerifier(I),await e.redirectToAuthorization(z),"REDIRECT"}function ne(e){if(!e)return!1;try{const t=new URL(e);return t.protocol==="https:"&&t.pathname!=="/"}catch{return!1}}async function re(e,t,n){const r=G(e);if(t.validateResourceURL)return await t.validateResourceURL(r,n?.resource);if(n){if(!J({requestedResource:r,configuredResource:n.resource}))throw new Error(`Protected resource ${n.resource} does not match expected ${r} (or origin)`);return new URL(n.resource)}}function Ue(e){const t=e.headers.get("WWW-Authenticate");if(!t)return{};const[n,r]=t.split(" ");if(n.toLowerCase()!=="bearer"||!r)return{};const a=m(e,"resource_metadata")||void 0;let i;if(a)try{i=new URL(a)}catch{}const s=m(e,"scope")||void 0,o=m(e,"error")||void 0;return{resourceMetadataUrl:i,scope:s,error:o}}function m(e,t){const n=e.headers.get("WWW-Authenticate");if(!n)return null;const r=new RegExp(`${t}=(?:"([^"]+)"|([^\\s,]+))`),a=n.match(r);return a?a[1]||a[2]:null}async function T(e,t,n=fetch){const r=await ie(e,"oauth-protected-resource",n,{protocolVersion:t?.protocolVersion,metadataUrl:t?.resourceMetadataUrl});if(!r||r.status===404)throw await r?.body?.cancel(),new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!r.ok)throw await r.body?.cancel(),new Error(`HTTP ${r.status} trying to load well-known OAuth protected resource metadata.`);return q.parse(await r.json())}async function R(e,t,n=fetch){try{return await n(e,{headers:t})}catch(r){if(r instanceof TypeError)return t?R(e,void 0,n):void 0;throw r}}function ae(e,t="",n={}){return t.endsWith("/")&&(t=t.slice(0,-1)),n.prependPathname?`${t}/.well-known/${e}`:`/.well-known/${e}${t}`}async function E(e,t,n=fetch){return await R(e,{"MCP-Protocol-Version":t},n)}function oe(e,t){return!e||e.status>=400&&e.status<500&&t!=="/"}async function ie(e,t,n,r){const a=new URL(e),i=r?.protocolVersion??L;let s;if(r?.metadataUrl)s=new URL(r.metadataUrl);else{const c=ae(t,a.pathname);s=new URL(c,r?.metadataServerUrl??a),s.search=a.search}let o=await E(s,i,n);if(!r?.metadataUrl&&oe(o,a.pathname)){const c=new URL(`/.well-known/${t}`,a);o=await E(c,i,n)}return o}function se(e){const t=typeof e=="string"?new URL(e):e,n=t.pathname!=="/",r=[];if(!n)return r.push({url:new URL("/.well-known/oauth-authorization-server",t.origin),type:"oauth"}),r.push({url:new URL("/.well-known/openid-configuration",t.origin),type:"oidc"}),r;let a=t.pathname;return a.endsWith("/")&&(a=a.slice(0,-1)),r.push({url:new URL(`/.well-known/oauth-authorization-server${a}`,t.origin),type:"oauth"}),r.push({url:new URL(`/.well-known/openid-configuration${a}`,t.origin),type:"oidc"}),r.push({url:new URL(`${a}/.well-known/openid-configuration`,t.origin),type:"oidc"}),r}async function P(e,{fetchFn:t=fetch,protocolVersion:n=L}={}){const r={"MCP-Protocol-Version":n,Accept:"application/json"},a=se(e);for(const{url:i,type:s}of a){const o=await R(i,r,t);if(o){if(!o.ok){if(await o.body?.cancel(),o.status>=400&&o.status<500)continue;throw new Error(`HTTP ${o.status} trying to load ${s==="oauth"?"OAuth":"OpenID provider"} metadata from ${i}`)}return s==="oauth"?V.parse(await o.json()):x.parse(await o.json())}}}async function ce(e,t){let n,r;try{n=await T(e,{resourceMetadataUrl:t?.resourceMetadataUrl},t?.fetchFn),n.authorization_servers&&n.authorization_servers.length>0&&(r=n.authorization_servers[0])}catch{}r||(r=String(new URL("/",e)));const a=await P(r,{fetchFn:t?.fetchFn});return{authorizationServerUrl:r,authorizationServerMetadata:a,resourceMetadata:n}}async function ue(e,{metadata:t,clientInformation:n,redirectUrl:r,scope:a,state:i,resource:s}){let o;if(t){if(o=new URL(t.authorization_endpoint),!t.response_types_supported.includes(p))throw new Error(`Incompatible auth server: does not support response type ${p}`);if(t.code_challenge_methods_supported&&!t.code_challenge_methods_supported.includes(_))throw new Error(`Incompatible auth server: does not support code challenge method ${_}`)}else o=new URL("/authorize",e);const c=await N(),u=c.code_verifier,h=c.code_challenge;return o.searchParams.set("response_type",p),o.searchParams.set("client_id",n.client_id),o.searchParams.set("code_challenge",h),o.searchParams.set("code_challenge_method",_),o.searchParams.set("redirect_uri",String(r)),i&&o.searchParams.set("state",i),a&&o.searchParams.set("scope",a),a?.includes("offline_access")&&o.searchParams.append("prompt","consent"),s&&o.searchParams.set("resource",s.href),{authorizationUrl:o,codeVerifier:u}}function b(e,t,n){return new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:t,redirect_uri:String(n)})}async function g(e,{metadata:t,tokenRequestParams:n,clientInformation:r,addClientAuthentication:a,resource:i,fetchFn:s}){const o=t?.token_endpoint?new URL(t.token_endpoint):new URL("/token",e),c=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(i&&n.set("resource",i.href),a)await a(c,n,o,t);else if(r){const h=t?.token_endpoint_auth_methods_supported??[],f=X(r,h);K(f,r,c,n)}const u=await(s??fetch)(o,{method:"POST",headers:c,body:n});if(!u.ok)throw await M(u);return F.parse(await u.json())}async function me(e,{metadata:t,clientInformation:n,authorizationCode:r,codeVerifier:a,redirectUri:i,resource:s,addClientAuthentication:o,fetchFn:c}){const u=b(r,a,i);return g(e,{metadata:t,tokenRequestParams:u,clientInformation:n,addClientAuthentication:o,resource:s,fetchFn:c})}async function le(e,{metadata:t,clientInformation:n,refreshToken:r,resource:a,addClientAuthentication:i,fetchFn:s}){const o=new URLSearchParams({grant_type:"refresh_token",refresh_token:r}),c=await g(e,{metadata:t,tokenRequestParams:o,clientInformation:n,addClientAuthentication:i,resource:a,fetchFn:s});return{refresh_token:r,...c}}async function he(e,t,{metadata:n,resource:r,authorizationCode:a,fetchFn:i}={}){const s=e.clientMetadata.scope;let o;if(e.prepareTokenRequest&&(o=await e.prepareTokenRequest(s)),!o){if(!a)throw new Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!e.redirectUrl)throw new Error("redirectUrl is required for authorization_code flow");const u=await e.codeVerifier();o=b(a,u,e.redirectUrl)}const c=await e.clientInformation();return g(t,{metadata:n,tokenRequestParams:o,clientInformation:c??void 0,addClientAuthentication:e.addClientAuthentication,resource:r,fetchFn:i})}async function de(e,{metadata:t,clientMetadata:n,scope:r,fetchFn:a}){let i;if(t){if(!t.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");i=new URL(t.registration_endpoint)}else i=new URL("/register",e);const s=await(a??fetch)(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,...r!==void 0?{scope:r}:{}})});if(!s.ok)throw await M(s);return j.parse(await s.json())}export{pe as U,P as a,_e as b,Ue as c,T as d,me as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as g,l as p,j as f}from"./index-
|
|
1
|
+
import{c as g,l as p,j as f}from"./index-DbabGxy6.js";function w(b){const e=g.c(20),{children:m,visual:r,align:j}=b,d=(j===void 0?"center":j)==="fill",x=d?"min-h-[100dvh] md:min-h-screen":"min-h-screen";let l;e[0]!==x?(l=p("flex w-full",x),e[0]=x,e[1]=l):l=e[1];const h=d?"h-[100dvh] justify-start pt-4 pb-8 md:h-auto":"justify-center py-6";let t;e[2]!==h?(t=p("flex flex-1 flex-col items-center bg-sidebar px-6 md:justify-center md:px-10 md:py-10",h),e[2]=h,e[3]=t):t=e[3];const u=d&&"flex min-h-0 flex-1 flex-col md:block md:flex-none";let s;e[4]!==u?(s=p("w-full max-w-[440px]",u),e[4]=u,e[5]=s):s=e[5];let i;e[6]!==m||e[7]!==s?(i=f.jsx("div",{className:s,children:m}),e[6]=m,e[7]=s,e[8]=i):i=e[8];let n;e[9]!==t||e[10]!==i?(n=f.jsx("section",{className:t,children:i}),e[9]=t,e[10]=i,e[11]=n):n=e[11];let c;e[12]!==r?(c=r??f.jsx("img",{src:"/onboarding-placeholder.png",alt:"",className:"absolute inset-0 h-full w-full object-cover"}),e[12]=r,e[13]=c):c=e[13];let a;e[14]!==c?(a=f.jsx("aside",{className:"relative hidden flex-1 overflow-hidden bg-muted md:flex",children:c}),e[14]=c,e[15]=a):a=e[15];let o;return e[16]!==a||e[17]!==l||e[18]!==n?(o=f.jsxs("main",{className:l,children:[n,a]}),e[16]=a,e[17]=l,e[18]=n,e[19]=o):o=e[19],o}export{w as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./index-
|
|
1
|
+
import"./index-DbabGxy6.js";import{i as u,a as p}from"./mcp-oauth-DPBTzzM-.js";async function k({connectionId:n,orgId:s,orgSlug:o,persistFallback:r}){const c=new URL(`/api/${o}/mcp/${n}`,window.location.origin),i=await u({url:c.href,token:null,orgId:s});if(!i.supportsOAuth||i.isAuthenticated)return{ran:!1,ok:!0,error:null};const{token:t,tokenInfo:e,error:a}=await p({connectionId:n,orgSlug:o,scope:"offline_access"});if(a||!t)return{ran:!0,ok:!1,error:a??"no token received"};if(e)try{(await fetch(`/api/${o}/connections/${n}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:e.accessToken,refreshToken:e.refreshToken,expiresIn:e.expiresIn,scope:e.scope,clientId:e.clientId,clientSecret:e.clientSecret,tokenEndpoint:e.tokenEndpoint})})).ok||await r(t)}catch{await r(t)}else await r(t);return{ran:!0,ok:!0,error:null}}export{k as a};
|
package/dist/client/assets/{automation-list-row-cmz2A1Mm.js → automation-list-row-CqDXRJhE.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as V,b as q,r as U,l as W,j as t,F as X,B as Y,I as Z,H as ee,G as te}from"./index-
|
|
1
|
+
import{c as V,b as q,r as U,l as W,j as t,F as X,B as Y,I as Z,H as ee,G as te}from"./index-DbabGxy6.js";import{A as se,a as ie,b as ne,c as oe,g as ae,d as re,e as le,f as ce}from"./alert-dialog-Dr37XaeA.js";import{A as me,J as ue}from"./agent-icon-BRxvZRmN.js";import{i as de}from"./DotsVertical-Cz9DnVkj.js";import{s as fe}from"./Trash01-DKbCrUTj.js";import{i as ge}from"./ZoomOut-Bt3p5CRf.js";import{a as xe}from"./repository-binding-DST5BjAq.js";import{a as pe}from"./use-automations-BSdsdElw.js";function Ce(c){const e=V.c(80),{automation:s,showAgent:a,onClick:n}=c,i=q(),{remove:o}=pe(),[l,K]=U.useState(!1),r=xe(a?s.virtual_mcp_id:void 0);let M;e[0]!==s.id||e[1]!==o?(M=()=>{o.mutate(s.id),K(!1)},e[0]=s.id,e[1]=o,e[2]=M):M=e[2];const O=M;let S;e[3]!==n?(S=m=>{m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),n())},e[3]=n,e[4]=S):S=e[4];const H=S,G=s.active&&s.trigger_count>0?"bg-success":"bg-muted-foreground/40";let u;e[5]!==G?(u=W("inline-block size-2 rounded-full shrink-0",G),e[5]=G,e[6]=u):u=e[6];const J=s.active&&s.trigger_count>0?"automations.automationListRow.ariaActive":s.active?"automations.automationListRow.ariaNoTriggers":"automations.automationListRow.ariaPaused";let d;e[7]!==i||e[8]!==J?(d=i(J),e[7]=i,e[8]=J,e[9]=d):d=e[9];let f;e[10]!==u||e[11]!==d?(f=t.jsx("span",{className:u,"aria-label":d}),e[10]=u,e[11]=d,e[12]=f):f=e[12];let g;e[13]!==r?.icon||e[14]!==r?.title||e[15]!==s.name||e[16]!==a?(g=a&&t.jsx(me,{icon:r?.icon??null,name:r?.title??s.name,size:"xs",className:"shrink-0"}),e[13]=r?.icon,e[14]=r?.title,e[15]=s.name,e[16]=a,e[17]=g):g=e[17];let x;e[18]!==s.name?(x=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:s.name}),e[18]=s.name,e[19]=x):x=e[19];let p;e[20]!==r||e[21]!==a?(p=a&&r&&t.jsxs("span",{className:"text-xs text-muted-foreground truncate",children:["· ",r.title]}),e[20]=r,e[21]=a,e[22]=p):p=e[22];let h;e[23]!==p||e[24]!==x?(h=t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[x,p]}),e[23]=p,e[24]=x,e[25]=h):h=e[25];let j;e[26]!==s.nearest_next_run_at||e[27]!==s.trigger_count?(j=t.jsx(we,{triggerCount:s.trigger_count,nextRunAt:s.nearest_next_run_at}),e[26]=s.nearest_next_run_at,e[27]=s.trigger_count,e[28]=j):j=e[28];let w;e[29]!==h||e[30]!==j?(w=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-0.5",children:[h,j]}),e[29]=h,e[30]=j,e[31]=w):w=e[31];let E;e[32]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(X,{asChild:!0,children:t.jsx(Y,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 opacity-0 group-hover:opacity-100 data-[state=open]:opacity-100 transition-opacity",children:t.jsx(de,{size:16})})}),e[32]=E):E=e[32];let $,B;e[33]===Symbol.for("react.memo_cache_sentinel")?($=m=>{m.stopPropagation(),K(!0)},B=t.jsx(fe,{size:16}),e[33]=$,e[34]=B):($=e[33],B=e[34]);let v;e[35]!==i?(v=i("automations.automationListRow.delete"),e[35]=i,e[36]=v):v=e[36];let _;e[37]!==v?(_=t.jsx("div",{onClick:je,onKeyDown:he,role:"presentation",className:"shrink-0",children:t.jsxs(Z,{children:[E,t.jsx(ee,{align:"end",children:t.jsxs(te,{variant:"destructive",onClick:$,children:[B,v]})})]})}),e[37]=v,e[38]=_):_=e[38];let A;e[39]!==H||e[40]!==n||e[41]!==w||e[42]!==_||e[43]!==f||e[44]!==g?(A=t.jsxs("div",{role:"button",tabIndex:0,onClick:n,onKeyDown:H,className:"group w-full flex items-center gap-3 px-4 py-3 border-b border-border text-left hover:bg-muted/50 transition-colors cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[f,g,w,_]}),e[39]=H,e[40]=n,e[41]=w,e[42]=_,e[43]=f,e[44]=g,e[45]=A):A=e[45];let b;e[46]!==i?(b=i("automations.automationListRow.deleteTitle"),e[46]=i,e[47]=b):b=e[47];let D;e[48]!==b?(D=t.jsx(se,{children:b}),e[48]=b,e[49]=D):D=e[49];let N;e[50]!==s.name||e[51]!==i?(N=i("automations.automationListRow.deleteDescription",{name:s.name}),e[50]=s.name,e[51]=i,e[52]=N):N=e[52];let R;e[53]!==N?(R=t.jsx(ie,{children:N}),e[53]=N,e[54]=R):R=e[54];let y;e[55]!==D||e[56]!==R?(y=t.jsxs(ne,{children:[D,R]}),e[55]=D,e[56]=R,e[57]=y):y=e[57];let C;e[58]!==i?(C=i("automations.automationListRow.cancel"),e[58]=i,e[59]=C):C=e[59];let L;e[60]!==C?(L=t.jsx(oe,{children:C}),e[60]=C,e[61]=L):L=e[61];const Q=o.isPending;let k;e[62]!==i?(k=i("automations.automationListRow.deleteButton"),e[62]=i,e[63]=k):k=e[63];let P;e[64]!==O||e[65]!==o.isPending||e[66]!==k?(P=t.jsx(ae,{onClick:O,disabled:Q,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:k}),e[64]=O,e[65]=o.isPending,e[66]=k,e[67]=P):P=e[67];let T;e[68]!==L||e[69]!==P?(T=t.jsxs(re,{children:[L,P]}),e[68]=L,e[69]=P,e[70]=T):T=e[70];let z;e[71]!==y||e[72]!==T?(z=t.jsxs(le,{children:[y,T]}),e[71]=y,e[72]=T,e[73]=z):z=e[73];let F;e[74]!==l||e[75]!==z?(F=t.jsx(ce,{open:l,onOpenChange:K,children:z}),e[74]=l,e[75]=z,e[76]=F):F=e[76];let I;return e[77]!==A||e[78]!==F?(I=t.jsxs(t.Fragment,{children:[A,F]}),e[77]=A,e[78]=F,e[79]=I):I=e[79],I}function he(c){return c.stopPropagation()}function je(c){return c.stopPropagation()}function we(c){const e=V.c(8),{triggerCount:s,nextRunAt:a}=c,n=q();if(s===0){let o;e[0]!==n?(o=n("automations.automationListRow.noTriggers"),e[0]=n,e[1]=o):o=e[1];let l;return e[2]!==o?(l=t.jsx("span",{className:"text-xs text-muted-foreground",children:o}),e[2]=o,e[3]=l):l=e[3],l}let i;return e[4]!==a||e[5]!==n||e[6]!==s?(i=t.jsx("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground min-w-0",children:a?t.jsxs(t.Fragment,{children:[t.jsx(ue,{size:12,className:"shrink-0"}),t.jsx("span",{className:"truncate",children:n("automations.automationListRow.nextRun",{date:new Date(a).toLocaleString()})})]}):t.jsxs(t.Fragment,{children:[t.jsx(ge,{size:12,className:"shrink-0"}),t.jsx("span",{className:"truncate",children:n("automations.automationListRow.triggers",{count:s})})]})}),e[4]=a,e[5]=n,e[6]=s,e[7]=i):i=e[7],i}export{Ce as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as z,r as lt,b as W,X as it,z as rt,a2 as ct,K as tt,j as s,l as ut,m as dt,e_ as mt}from"./index-DD17LdOo.js";import{u as ft}from"./useInfiniteQuery-CTTKOBfu.js";import{u as xt}from"./use-connection-BDIMmEql.js";import{u as pt}from"./use-mcp-client-BwmV3MW8.js";import{b as gt}from"./repository-binding-CJ_pw95F.js";import{b as ht,a as Rt}from"./sheet-BID6Bcl4.js";import{e as jt,a as Nt,b as st,T as G,d as bt,c as V}from"./table-8bUT8seV.js";import{E as et}from"./empty-state-BWACKPTq.js";import{u as Tt}from"./use-infinite-scroll-D_h1bU_O.js";import{a as St}from"./use-members-CeSqgIx5.js";import{g as vt}from"./task-status-BMtNEPmq.js";import{e as wt}from"./use-automations-D3x6QSEG.js";import{T as Ct,f as at,a as nt}from"./thread-sheet-body-Bd1XBkek.js";function It(c){const t=z.c(15),[i,r]=lt.useState(null);let e;t[0]!==c||t[1]!==i?(e=i!==null?c.findIndex(u=>u.id===i):-1,t[0]=c,t[1]=i,t[2]=e):e=t[2];const a=e,o=a!==-1?c[a]:null,n=o!==null;let l,w;t[3]===Symbol.for("react.memo_cache_sentinel")?(l=u=>r(u),w=()=>r(null),t[3]=l,t[4]=w):(l=t[3],w=t[4]);let f,x;t[5]!==a||t[6]!==c?(f=()=>{const u=c[a-1];a>0&&u&&r(u.id)},x=()=>{const u=c[a+1];a!==-1&&u&&r(u.id)},t[5]=a,t[6]=c,t[7]=f,t[8]=x):(f=t[7],x=t[8]);let m;return t[9]!==a||t[10]!==o||t[11]!==n||t[12]!==f||t[13]!==x?(m={selected:o,index:a,isOpen:n,select:l,close:w,prev:f,next:x},t[9]=a,t[10]=o,t[11]=n,t[12]=f,t[13]=x,t[14]=m):m=t[14],m}const Z=50;function X(c){const t=z.c(10),{title:i,value:r,subtitle:e}=c;let a;t[0]!==i?(a=s.jsx("span",{className:"text-sm text-foreground/70",children:i}),t[0]=i,t[1]=a):a=t[1];let o;t[2]!==r?(o=s.jsx("span",{className:"text-3xl font-normal tabular-nums",children:r}),t[2]=r,t[3]=o):o=t[3];let n;t[4]!==e?(n=e&&s.jsx("span",{className:"text-xs text-muted-foreground",children:e}),t[4]=e,t[5]=n):n=t[5];let l;return t[6]!==a||t[7]!==o||t[8]!==n?(l=s.jsxs(mt,{className:"pt-4 px-4 pb-5 gap-1",children:[a,o,n]}),t[6]=a,t[7]=o,t[8]=n,t[9]=l):l=t[9],l}function kt(c){const t=z.c(45),{automationId:i,range:r}=c,e=W(),{data:a,isLoading:o}=wt(i,r),n=a?.runs,l=a?.usage;let w;t[0]!==n?(w=n&&n.total>0?`${Math.round(n.completed/n.total*100)}%`:"—",t[0]=n,t[1]=w):w=t[1];const f=w;let x;t[2]!==e||t[3]!==l?(x=l&&l.truncated?e("automations.automationRuns.lastRunsSubtitle",{count:l.sampledRuns}):void 0,t[2]=e,t[3]=l,t[4]=x):x=t[4];const m=x;let u;t[5]!==e?(u=e("automations.automationRuns.runsTitle"),t[5]=e,t[6]=u):u=t[6];let g;t[7]!==o||t[8]!==n?.total?(g=o?"…":n?.total.toLocaleString()??"0",t[7]=o,t[8]=n?.total,t[9]=g):g=t[9];let h;t[10]!==n||t[11]!==e?(h=n?`${n.completed} ${e("automations.automationRuns.ok")} · ${n.failed} ${e("automations.automationRuns.failed")}${n.inProgress>0?` · ${n.inProgress} ${e("automations.automationRuns.running")}`:""}`:void 0,t[10]=n,t[11]=e,t[12]=h):h=t[12];let R;t[13]!==u||t[14]!==g||t[15]!==h?(R=s.jsx(X,{title:u,value:g,subtitle:h}),t[13]=u,t[14]=g,t[15]=h,t[16]=R):R=t[16];let T;t[17]!==e?(T=e("automations.automationRuns.successRateTitle"),t[17]=e,t[18]=T):T=t[18];const k=o?"…":f;let C;t[19]!==T||t[20]!==k?(C=s.jsx(X,{title:T,value:k}),t[19]=T,t[20]=k,t[21]=C):C=t[21];let S;t[22]!==e?(S=e("automations.automationRuns.tokensTitle"),t[22]=e,t[23]=S):S=t[23];let p;t[24]!==o||t[25]!==l?.totalTokens?(p=o?"…":at(l?.totalTokens??0),t[24]=o,t[25]=l?.totalTokens,t[26]=p):p=t[26];let I;t[27]!==S||t[28]!==p||t[29]!==m?(I=s.jsx(X,{title:S,value:p,subtitle:m}),t[27]=S,t[28]=p,t[29]=m,t[30]=I):I=t[30];let d;t[31]!==e?(d=e("automations.automationRuns.costTitle"),t[31]=e,t[32]=d):d=t[32];let j;t[33]!==o||t[34]!==l?(j=o?"…":l&&l.costUsd>0?nt(l.costUsd):"—",t[33]=o,t[34]=l,t[35]=j):j=t[35];let v;t[36]!==d||t[37]!==j||t[38]!==m?(v=s.jsx(X,{title:d,value:j,subtitle:m}),t[36]=d,t[37]=j,t[38]=m,t[39]=v):v=t[39];let N;return t[40]!==I||t[41]!==v||t[42]!==R||t[43]!==C?(N=s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[R,C,I,v]}),t[40]=I,t[41]=v,t[42]=R,t[43]=C,t[44]=N):N=t[44],N}function yt(c){const t=z.c(57),{run:i,usage:r,onClick:e,lastRowRef:a}=c,o=W();let n,l;if(t[0]!==i.created_at){const P=new Date(i.created_at);n=P.toLocaleDateString("en-US",{month:"short",day:"numeric"}),l=P.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),t[0]=i.created_at,t[1]=n,t[2]=l}else n=t[1],l=t[2];const w=l;let f,x,m,u,g,h,R,T,k,C,S;if(t[3]!==a||t[4]!==e||t[5]!==i.status||t[6]!==i.title||t[7]!==o){const P=vt(i.status),U=P.icon;x=st,k=a,C="h-14 cursor-pointer hover:bg-muted/40 transition-colors border-b-0",S=e,t[19]!==i.title?(m=s.jsx(V,{className:"min-w-0 pr-2 pl-4 md:pr-4",children:s.jsx("div",{className:"font-medium text-foreground truncate",children:i.title})}),t[19]=i.title,t[20]=m):m=t[20],f=V,T="w-28 px-3",h="flex items-center gap-1.5",R=s.jsx(U,{size:14,className:P.iconClassName}),u=ut("text-sm",P.labelColor),g=o(P.labelKey),t[3]=a,t[4]=e,t[5]=i.status,t[6]=i.title,t[7]=o,t[8]=f,t[9]=x,t[10]=m,t[11]=u,t[12]=g,t[13]=h,t[14]=R,t[15]=T,t[16]=k,t[17]=C,t[18]=S}else f=t[8],x=t[9],m=t[10],u=t[11],g=t[12],h=t[13],R=t[14],T=t[15],k=t[16],C=t[17],S=t[18];let p;t[21]!==u||t[22]!==g?(p=s.jsx("span",{className:u,children:g}),t[21]=u,t[22]=g,t[23]=p):p=t[23];let I;t[24]!==p||t[25]!==h||t[26]!==R?(I=s.jsxs("div",{className:h,children:[R,p]}),t[24]=p,t[25]=h,t[26]=R,t[27]=I):I=t[27];let d;t[28]!==f||t[29]!==I||t[30]!==T?(d=s.jsx(f,{className:T,children:I}),t[28]=f,t[29]=I,t[30]=T,t[31]=d):d=t[31];let j;t[32]!==r?(j=r?at(r.totalTokens):"—",t[32]=r,t[33]=j):j=t[33];let v;t[34]!==j?(v=s.jsx(V,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:j}),t[34]=j,t[35]=v):v=t[35];let N;t[36]!==r?(N=r&&r.costUsd>0?nt(r.costUsd):"—",t[36]=r,t[37]=N):N=t[37];let y;t[38]!==N?(y=s.jsx(V,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:N}),t[38]=N,t[39]=y):y=t[39];let D;t[40]!==n?(D=s.jsx("div",{children:n}),t[40]=n,t[41]=D):D=t[41];let _;t[42]!==w?(_=s.jsx("div",{className:"text-xs text-muted-foreground/60",children:w}),t[42]=w,t[43]=_):_=t[43];let E;t[44]!==D||t[45]!==_?(E=s.jsxs(V,{className:"w-32 px-3 pr-5 text-muted-foreground",children:[D,_]}),t[44]=D,t[45]=_,t[46]=E):E=t[46];let $;return t[47]!==x||t[48]!==m||t[49]!==d||t[50]!==v||t[51]!==y||t[52]!==E||t[53]!==k||t[54]!==C||t[55]!==S?($=s.jsxs(x,{ref:k,className:C,onClick:S,children:[m,d,v,y,E]}),t[47]=x,t[48]=m,t[49]=d,t[50]=v,t[51]=y,t[52]=E,t[53]=k,t[54]=C,t[55]=S,t[56]=$):$=t[56],$}function Bt(c){const t=z.c(73),{automationId:i,triggerIds:r,range:e}=c,a=W(),{org:o,locator:n}=it();let l;t[0]!==o.id||t[1]!==o.slug?(l={connectionId:rt,orgId:o.id,orgSlug:o.slug},t[0]=o.id,t[1]=o.slug,t[2]=l):l=t[2];const w=pt(l),f=ct(),x=xt(),m=gt(),{data:u}=St(),g=r.length>0;let h;t[3]!==i||t[4]!==o.id||t[5]!==r?(h=tt.automationRuns(o.id,i,r),t[3]=i,t[4]=o.id,t[5]=r,t[6]=h):h=t[6];let R;t[7]!==f||t[8]!==r?(R=async M=>{const{pageParam:J}=M,ot=J===void 0?0:J;return await f.call("COLLECTION_THREADS_LIST",{limit:Z,offset:ot,where:{trigger_ids:r}})},t[7]=f,t[8]=r,t[9]=R):R=t[9];let T;t[10]!==g||t[11]!==h||t[12]!==R?(T={queryKey:h,queryFn:R,initialPageParam:0,getNextPageParam:Et,enabled:g,staleTime:3e4},t[10]=g,t[11]=h,t[12]=R,t[13]=T):T=t[13];const{data:k,fetchNextPage:C,hasNextPage:S,isFetchingNextPage:p,isLoading:I}=ft(T);let d,j,v,N;t[14]!==k?.pages||t[15]!==n||t[16]!==e?(d=(k?.pages??[]).flatMap(Dt),N=d.map(Pt),v=dt,j=tt.monitoringThreadUsage(n,JSON.stringify({ids:N,...e})),t[14]=k?.pages,t[15]=n,t[16]=e,t[17]=d,t[18]=j,t[19]=v,t[20]=N):(d=t[17],j=t[18],v=t[19],N=t[20]);let y;t[21]!==e||t[22]!==f||t[23]!==N?(y=async()=>await f.call("MONITORING_THREAD_USAGE",{threadIds:N,...e.startDate?{startDate:e.startDate}:{},...e.endDate?{endDate:e.endDate}:{}}),t[21]=e,t[22]=f,t[23]=N,t[24]=y):y=t[24];const D=N.length>0;let _;t[25]!==j||t[26]!==y||t[27]!==D?(_={queryKey:j,queryFn:y,enabled:D,staleTime:3e4},t[25]=j,t[26]=y,t[27]=D,t[28]=_):_=t[28];const{data:E}=v(_);let $;t[29]!==E?.items?($=new Map((E?.items??[]).map(_t)),t[29]=E?.items,t[30]=$):$=t[30];const P=$;let U;t[31]!==C||t[32]!==S||t[33]!==p?(U=()=>{S&&!p&&C()},t[31]=C,t[32]=S,t[33]=p,t[34]=U):U=t[34];const Y=Tt(U,S??!1,p),b=It(d),B=b.selected;let L;t[35]!==i||t[36]!==e?(L=s.jsx(kt,{automationId:i,range:e}),t[35]=i,t[36]=e,t[37]=L):L=t[37];let O;t[38]!==g||t[39]!==I||t[40]!==Y||t[41]!==d||t[42]!==b||t[43]!==a||t[44]!==P?(O=g?I?s.jsx("div",{className:"py-16 text-center text-sm text-muted-foreground",children:a("automations.automationRuns.loadingRuns")}):d.length===0?s.jsx("div",{className:"py-16",children:s.jsx(et,{title:a("automations.automationRuns.noRunsTitle"),description:a("automations.automationRuns.noRunsDescription")})}):s.jsxs(jt,{className:"w-full border-collapse",children:[s.jsx(Nt,{className:"border-b-0",children:s.jsxs(st,{className:"h-9 hover:bg-transparent border-b border-border",children:[s.jsx(G,{className:"pl-4 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:a("automations.automationRuns.runHeader")}),s.jsx(G,{className:"w-28 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:a("automations.automationRuns.statusHeader")}),s.jsx(G,{className:"w-24 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide text-right",children:a("automations.automationRuns.tokensHeader")}),s.jsx(G,{className:"w-24 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide text-right",children:a("automations.automationRuns.costHeader")}),s.jsx(G,{className:"w-32 px-3 pr-5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:a("automations.automationRuns.startedHeader")})]})}),s.jsx(bt,{children:d.map((M,J)=>s.jsx(yt,{run:M,usage:P.get(M.id),onClick:()=>b.select(M.id),lastRowRef:J===d.length-1?Y:void 0},M.id))})]}):s.jsx("div",{className:"py-16",children:s.jsx(et,{title:a("automations.automationRuns.noStartersTitle"),description:a("automations.automationRuns.noStartersDescription")})}),t[38]=g,t[39]=I,t[40]=Y,t[41]=d,t[42]=b,t[43]=a,t[44]=P,t[45]=O):O=t[45];let A;t[46]!==p||t[47]!==a?(A=p&&s.jsx("div",{className:"py-4 text-center text-sm text-muted-foreground",children:a("automations.automationRuns.loadingMore")}),t[46]=p,t[47]=a,t[48]=A):A=t[48];let H;t[49]!==b?(H=M=>{M||b.close()},t[49]=b,t[50]=H):H=t[50];let K;t[51]!==x||t[52]!==m||t[53]!==w||t[54]!==n||t[55]!==u||t[56]!==d||t[57]!==B||t[58]!==b.index||t[59]!==b.next||t[60]!==b.prev?(K=B&&s.jsx(Ct,{thread:B,client:w,locator:n,connections:x,virtualMcps:m,members:u,nav:{index:b.index,total:d.length,onPrev:b.prev,onNext:b.next}}),t[51]=x,t[52]=m,t[53]=w,t[54]=n,t[55]=u,t[56]=d,t[57]=B,t[58]=b.index,t[59]=b.next,t[60]=b.prev,t[61]=K):K=t[61];let q;t[62]!==K?(q=s.jsx(Rt,{className:"sm:max-w-2xl flex flex-col p-0 gap-0",children:K}),t[62]=K,t[63]=q):q=t[63];let F;t[64]!==b.isOpen||t[65]!==H||t[66]!==q?(F=s.jsx(ht,{open:b.isOpen,onOpenChange:H,children:q}),t[64]=b.isOpen,t[65]=H,t[66]=q,t[67]=F):F=t[67];let Q;return t[68]!==L||t[69]!==O||t[70]!==A||t[71]!==F?(Q=s.jsxs("div",{className:"flex flex-col gap-5",children:[L,O,A,F]}),t[68]=L,t[69]=O,t[70]=A,t[71]=F,t[72]=Q):Q=t[72],Q}function _t(c){return[c.threadId,{calls:c.calls,inputTokens:c.inputTokens,outputTokens:c.outputTokens,totalTokens:c.totalTokens,costUsd:c.costUsd}]}function Pt(c){return c.id}function Dt(c){return c.items??[]}function Et(c,t){const i=c,r=t;if(!((i?.items?.length??0)<Z))return r.length*Z}export{Bt as A,It as u};
|
|
1
|
+
import{c as z,r as lt,b as W,X as it,z as rt,a2 as ct,K as tt,j as s,l as ut,m as dt,e_ as mt}from"./index-DbabGxy6.js";import{u as ft}from"./useInfiniteQuery-CCCPgG_d.js";import{u as xt}from"./use-connection-CbaLhExN.js";import{u as pt}from"./use-mcp-client-CfAhFfUQ.js";import{b as gt}from"./repository-binding-DST5BjAq.js";import{b as ht,a as Rt}from"./sheet-CAPBfpxY.js";import{e as jt,a as Nt,b as st,T as G,d as bt,c as V}from"./table-B3glu4jC.js";import{E as et}from"./empty-state-DfF0wZnW.js";import{u as Tt}from"./use-infinite-scroll-Cq0eGH_b.js";import{a as St}from"./use-members-DgL3Nti4.js";import{g as vt}from"./task-status-DQDKjMn6.js";import{e as wt}from"./use-automations-BSdsdElw.js";import{T as Ct,f as at,a as nt}from"./thread-sheet-body-Ywa9zjyd.js";function It(c){const t=z.c(15),[i,r]=lt.useState(null);let e;t[0]!==c||t[1]!==i?(e=i!==null?c.findIndex(u=>u.id===i):-1,t[0]=c,t[1]=i,t[2]=e):e=t[2];const a=e,o=a!==-1?c[a]:null,n=o!==null;let l,w;t[3]===Symbol.for("react.memo_cache_sentinel")?(l=u=>r(u),w=()=>r(null),t[3]=l,t[4]=w):(l=t[3],w=t[4]);let f,x;t[5]!==a||t[6]!==c?(f=()=>{const u=c[a-1];a>0&&u&&r(u.id)},x=()=>{const u=c[a+1];a!==-1&&u&&r(u.id)},t[5]=a,t[6]=c,t[7]=f,t[8]=x):(f=t[7],x=t[8]);let m;return t[9]!==a||t[10]!==o||t[11]!==n||t[12]!==f||t[13]!==x?(m={selected:o,index:a,isOpen:n,select:l,close:w,prev:f,next:x},t[9]=a,t[10]=o,t[11]=n,t[12]=f,t[13]=x,t[14]=m):m=t[14],m}const Z=50;function X(c){const t=z.c(10),{title:i,value:r,subtitle:e}=c;let a;t[0]!==i?(a=s.jsx("span",{className:"text-sm text-foreground/70",children:i}),t[0]=i,t[1]=a):a=t[1];let o;t[2]!==r?(o=s.jsx("span",{className:"text-3xl font-normal tabular-nums",children:r}),t[2]=r,t[3]=o):o=t[3];let n;t[4]!==e?(n=e&&s.jsx("span",{className:"text-xs text-muted-foreground",children:e}),t[4]=e,t[5]=n):n=t[5];let l;return t[6]!==a||t[7]!==o||t[8]!==n?(l=s.jsxs(mt,{className:"pt-4 px-4 pb-5 gap-1",children:[a,o,n]}),t[6]=a,t[7]=o,t[8]=n,t[9]=l):l=t[9],l}function kt(c){const t=z.c(45),{automationId:i,range:r}=c,e=W(),{data:a,isLoading:o}=wt(i,r),n=a?.runs,l=a?.usage;let w;t[0]!==n?(w=n&&n.total>0?`${Math.round(n.completed/n.total*100)}%`:"—",t[0]=n,t[1]=w):w=t[1];const f=w;let x;t[2]!==e||t[3]!==l?(x=l&&l.truncated?e("automations.automationRuns.lastRunsSubtitle",{count:l.sampledRuns}):void 0,t[2]=e,t[3]=l,t[4]=x):x=t[4];const m=x;let u;t[5]!==e?(u=e("automations.automationRuns.runsTitle"),t[5]=e,t[6]=u):u=t[6];let g;t[7]!==o||t[8]!==n?.total?(g=o?"…":n?.total.toLocaleString()??"0",t[7]=o,t[8]=n?.total,t[9]=g):g=t[9];let h;t[10]!==n||t[11]!==e?(h=n?`${n.completed} ${e("automations.automationRuns.ok")} · ${n.failed} ${e("automations.automationRuns.failed")}${n.inProgress>0?` · ${n.inProgress} ${e("automations.automationRuns.running")}`:""}`:void 0,t[10]=n,t[11]=e,t[12]=h):h=t[12];let R;t[13]!==u||t[14]!==g||t[15]!==h?(R=s.jsx(X,{title:u,value:g,subtitle:h}),t[13]=u,t[14]=g,t[15]=h,t[16]=R):R=t[16];let T;t[17]!==e?(T=e("automations.automationRuns.successRateTitle"),t[17]=e,t[18]=T):T=t[18];const k=o?"…":f;let C;t[19]!==T||t[20]!==k?(C=s.jsx(X,{title:T,value:k}),t[19]=T,t[20]=k,t[21]=C):C=t[21];let S;t[22]!==e?(S=e("automations.automationRuns.tokensTitle"),t[22]=e,t[23]=S):S=t[23];let p;t[24]!==o||t[25]!==l?.totalTokens?(p=o?"…":at(l?.totalTokens??0),t[24]=o,t[25]=l?.totalTokens,t[26]=p):p=t[26];let I;t[27]!==S||t[28]!==p||t[29]!==m?(I=s.jsx(X,{title:S,value:p,subtitle:m}),t[27]=S,t[28]=p,t[29]=m,t[30]=I):I=t[30];let d;t[31]!==e?(d=e("automations.automationRuns.costTitle"),t[31]=e,t[32]=d):d=t[32];let j;t[33]!==o||t[34]!==l?(j=o?"…":l&&l.costUsd>0?nt(l.costUsd):"—",t[33]=o,t[34]=l,t[35]=j):j=t[35];let v;t[36]!==d||t[37]!==j||t[38]!==m?(v=s.jsx(X,{title:d,value:j,subtitle:m}),t[36]=d,t[37]=j,t[38]=m,t[39]=v):v=t[39];let N;return t[40]!==I||t[41]!==v||t[42]!==R||t[43]!==C?(N=s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[R,C,I,v]}),t[40]=I,t[41]=v,t[42]=R,t[43]=C,t[44]=N):N=t[44],N}function yt(c){const t=z.c(57),{run:i,usage:r,onClick:e,lastRowRef:a}=c,o=W();let n,l;if(t[0]!==i.created_at){const P=new Date(i.created_at);n=P.toLocaleDateString("en-US",{month:"short",day:"numeric"}),l=P.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),t[0]=i.created_at,t[1]=n,t[2]=l}else n=t[1],l=t[2];const w=l;let f,x,m,u,g,h,R,T,k,C,S;if(t[3]!==a||t[4]!==e||t[5]!==i.status||t[6]!==i.title||t[7]!==o){const P=vt(i.status),U=P.icon;x=st,k=a,C="h-14 cursor-pointer hover:bg-muted/40 transition-colors border-b-0",S=e,t[19]!==i.title?(m=s.jsx(V,{className:"min-w-0 pr-2 pl-4 md:pr-4",children:s.jsx("div",{className:"font-medium text-foreground truncate",children:i.title})}),t[19]=i.title,t[20]=m):m=t[20],f=V,T="w-28 px-3",h="flex items-center gap-1.5",R=s.jsx(U,{size:14,className:P.iconClassName}),u=ut("text-sm",P.labelColor),g=o(P.labelKey),t[3]=a,t[4]=e,t[5]=i.status,t[6]=i.title,t[7]=o,t[8]=f,t[9]=x,t[10]=m,t[11]=u,t[12]=g,t[13]=h,t[14]=R,t[15]=T,t[16]=k,t[17]=C,t[18]=S}else f=t[8],x=t[9],m=t[10],u=t[11],g=t[12],h=t[13],R=t[14],T=t[15],k=t[16],C=t[17],S=t[18];let p;t[21]!==u||t[22]!==g?(p=s.jsx("span",{className:u,children:g}),t[21]=u,t[22]=g,t[23]=p):p=t[23];let I;t[24]!==p||t[25]!==h||t[26]!==R?(I=s.jsxs("div",{className:h,children:[R,p]}),t[24]=p,t[25]=h,t[26]=R,t[27]=I):I=t[27];let d;t[28]!==f||t[29]!==I||t[30]!==T?(d=s.jsx(f,{className:T,children:I}),t[28]=f,t[29]=I,t[30]=T,t[31]=d):d=t[31];let j;t[32]!==r?(j=r?at(r.totalTokens):"—",t[32]=r,t[33]=j):j=t[33];let v;t[34]!==j?(v=s.jsx(V,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:j}),t[34]=j,t[35]=v):v=t[35];let N;t[36]!==r?(N=r&&r.costUsd>0?nt(r.costUsd):"—",t[36]=r,t[37]=N):N=t[37];let y;t[38]!==N?(y=s.jsx(V,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:N}),t[38]=N,t[39]=y):y=t[39];let D;t[40]!==n?(D=s.jsx("div",{children:n}),t[40]=n,t[41]=D):D=t[41];let _;t[42]!==w?(_=s.jsx("div",{className:"text-xs text-muted-foreground/60",children:w}),t[42]=w,t[43]=_):_=t[43];let E;t[44]!==D||t[45]!==_?(E=s.jsxs(V,{className:"w-32 px-3 pr-5 text-muted-foreground",children:[D,_]}),t[44]=D,t[45]=_,t[46]=E):E=t[46];let $;return t[47]!==x||t[48]!==m||t[49]!==d||t[50]!==v||t[51]!==y||t[52]!==E||t[53]!==k||t[54]!==C||t[55]!==S?($=s.jsxs(x,{ref:k,className:C,onClick:S,children:[m,d,v,y,E]}),t[47]=x,t[48]=m,t[49]=d,t[50]=v,t[51]=y,t[52]=E,t[53]=k,t[54]=C,t[55]=S,t[56]=$):$=t[56],$}function Bt(c){const t=z.c(73),{automationId:i,triggerIds:r,range:e}=c,a=W(),{org:o,locator:n}=it();let l;t[0]!==o.id||t[1]!==o.slug?(l={connectionId:rt,orgId:o.id,orgSlug:o.slug},t[0]=o.id,t[1]=o.slug,t[2]=l):l=t[2];const w=pt(l),f=ct(),x=xt(),m=gt(),{data:u}=St(),g=r.length>0;let h;t[3]!==i||t[4]!==o.id||t[5]!==r?(h=tt.automationRuns(o.id,i,r),t[3]=i,t[4]=o.id,t[5]=r,t[6]=h):h=t[6];let R;t[7]!==f||t[8]!==r?(R=async M=>{const{pageParam:J}=M,ot=J===void 0?0:J;return await f.call("COLLECTION_THREADS_LIST",{limit:Z,offset:ot,where:{trigger_ids:r}})},t[7]=f,t[8]=r,t[9]=R):R=t[9];let T;t[10]!==g||t[11]!==h||t[12]!==R?(T={queryKey:h,queryFn:R,initialPageParam:0,getNextPageParam:Et,enabled:g,staleTime:3e4},t[10]=g,t[11]=h,t[12]=R,t[13]=T):T=t[13];const{data:k,fetchNextPage:C,hasNextPage:S,isFetchingNextPage:p,isLoading:I}=ft(T);let d,j,v,N;t[14]!==k?.pages||t[15]!==n||t[16]!==e?(d=(k?.pages??[]).flatMap(Dt),N=d.map(Pt),v=dt,j=tt.monitoringThreadUsage(n,JSON.stringify({ids:N,...e})),t[14]=k?.pages,t[15]=n,t[16]=e,t[17]=d,t[18]=j,t[19]=v,t[20]=N):(d=t[17],j=t[18],v=t[19],N=t[20]);let y;t[21]!==e||t[22]!==f||t[23]!==N?(y=async()=>await f.call("MONITORING_THREAD_USAGE",{threadIds:N,...e.startDate?{startDate:e.startDate}:{},...e.endDate?{endDate:e.endDate}:{}}),t[21]=e,t[22]=f,t[23]=N,t[24]=y):y=t[24];const D=N.length>0;let _;t[25]!==j||t[26]!==y||t[27]!==D?(_={queryKey:j,queryFn:y,enabled:D,staleTime:3e4},t[25]=j,t[26]=y,t[27]=D,t[28]=_):_=t[28];const{data:E}=v(_);let $;t[29]!==E?.items?($=new Map((E?.items??[]).map(_t)),t[29]=E?.items,t[30]=$):$=t[30];const P=$;let U;t[31]!==C||t[32]!==S||t[33]!==p?(U=()=>{S&&!p&&C()},t[31]=C,t[32]=S,t[33]=p,t[34]=U):U=t[34];const Y=Tt(U,S??!1,p),b=It(d),B=b.selected;let L;t[35]!==i||t[36]!==e?(L=s.jsx(kt,{automationId:i,range:e}),t[35]=i,t[36]=e,t[37]=L):L=t[37];let O;t[38]!==g||t[39]!==I||t[40]!==Y||t[41]!==d||t[42]!==b||t[43]!==a||t[44]!==P?(O=g?I?s.jsx("div",{className:"py-16 text-center text-sm text-muted-foreground",children:a("automations.automationRuns.loadingRuns")}):d.length===0?s.jsx("div",{className:"py-16",children:s.jsx(et,{title:a("automations.automationRuns.noRunsTitle"),description:a("automations.automationRuns.noRunsDescription")})}):s.jsxs(jt,{className:"w-full border-collapse",children:[s.jsx(Nt,{className:"border-b-0",children:s.jsxs(st,{className:"h-9 hover:bg-transparent border-b border-border",children:[s.jsx(G,{className:"pl-4 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:a("automations.automationRuns.runHeader")}),s.jsx(G,{className:"w-28 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:a("automations.automationRuns.statusHeader")}),s.jsx(G,{className:"w-24 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide text-right",children:a("automations.automationRuns.tokensHeader")}),s.jsx(G,{className:"w-24 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide text-right",children:a("automations.automationRuns.costHeader")}),s.jsx(G,{className:"w-32 px-3 pr-5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:a("automations.automationRuns.startedHeader")})]})}),s.jsx(bt,{children:d.map((M,J)=>s.jsx(yt,{run:M,usage:P.get(M.id),onClick:()=>b.select(M.id),lastRowRef:J===d.length-1?Y:void 0},M.id))})]}):s.jsx("div",{className:"py-16",children:s.jsx(et,{title:a("automations.automationRuns.noStartersTitle"),description:a("automations.automationRuns.noStartersDescription")})}),t[38]=g,t[39]=I,t[40]=Y,t[41]=d,t[42]=b,t[43]=a,t[44]=P,t[45]=O):O=t[45];let A;t[46]!==p||t[47]!==a?(A=p&&s.jsx("div",{className:"py-4 text-center text-sm text-muted-foreground",children:a("automations.automationRuns.loadingMore")}),t[46]=p,t[47]=a,t[48]=A):A=t[48];let H;t[49]!==b?(H=M=>{M||b.close()},t[49]=b,t[50]=H):H=t[50];let K;t[51]!==x||t[52]!==m||t[53]!==w||t[54]!==n||t[55]!==u||t[56]!==d||t[57]!==B||t[58]!==b.index||t[59]!==b.next||t[60]!==b.prev?(K=B&&s.jsx(Ct,{thread:B,client:w,locator:n,connections:x,virtualMcps:m,members:u,nav:{index:b.index,total:d.length,onPrev:b.prev,onNext:b.next}}),t[51]=x,t[52]=m,t[53]=w,t[54]=n,t[55]=u,t[56]=d,t[57]=B,t[58]=b.index,t[59]=b.next,t[60]=b.prev,t[61]=K):K=t[61];let q;t[62]!==K?(q=s.jsx(Rt,{className:"sm:max-w-2xl flex flex-col p-0 gap-0",children:K}),t[62]=K,t[63]=q):q=t[63];let F;t[64]!==b.isOpen||t[65]!==H||t[66]!==q?(F=s.jsx(ht,{open:b.isOpen,onOpenChange:H,children:q}),t[64]=b.isOpen,t[65]=H,t[66]=q,t[67]=F):F=t[67];let Q;return t[68]!==L||t[69]!==O||t[70]!==A||t[71]!==F?(Q=s.jsxs("div",{className:"flex flex-col gap-5",children:[L,O,A,F]}),t[68]=L,t[69]=O,t[70]=A,t[71]=F,t[72]=Q):Q=t[72],Q}function _t(c){return[c.threadId,{calls:c.calls,inputTokens:c.inputTokens,outputTokens:c.outputTokens,totalTokens:c.totalTokens,costUsd:c.costUsd}]}function Pt(c){return c.id}function Dt(c){return c.items??[]}function Et(c,t){const i=c,r=t;if(!((i?.items?.length??0)<Z))return r.length*Z}export{Bt as A,It as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k,j as e,b as $,X as D,d as M,r as q,n as d,B as O,fO as V,q as R}from"./index-
|
|
1
|
+
import{c as k,j as e,b as $,X as D,d as M,r as q,n as d,B as O,fO as V,q as R}from"./index-DbabGxy6.js";import{s as X}from"./Plus-BvxsRY-0.js";import{i as S}from"./ZoomOut-Bt3p5CRf.js";import{S as F}from"./search-input-uE9X4-9v.js";import{E as T}from"./empty-state-DfF0wZnW.js";import{u as G}from"./use-automations-BSdsdElw.js";import{u as H}from"./use-navigate-to-agent-BvvbqcqU.js";import{A as J}from"./automation-list-row-CqDXRJhE.js";import{b as K}from"./repository-binding-DST5BjAq.js";import{R as Q}from"./require-capability-Cgz4k3Fi.js";import"./SearchMd-CHmk5GD6.js";import"./use-mcp-client-CfAhFfUQ.js";import"./auth-qAvZ1LNt.js";import"./thread-intent-CgGr7s14.js";import"./backoff-8mStPHYB.js";import"./task-board-DD4Wj2ht.js";import"./schema-BD3Ue3jK.js";import"./slugify-CEUa2lfQ.js";import"./alert-dialog-Dr37XaeA.js";import"./agent-icon-BRxvZRmN.js";import"./AlertCircle-Dsxcywwk.js";import"./Tool01-DetpIMtk.js";import"./ArrowUp-DvEWAQS1.js";import"./ArrowLeft-CUAoXnBl.js";import"./LinkBroken01-CyPIuvAF.js";import"./ShoppingBag01-D0N-Vb4c.js";import"./Building02-DQSa0aPk.js";import"./CheckCircle-48zzWb5o.js";import"./Check-CzhgdtoZ.js";import"./ChevronUp-bPHHer4a.js";import"./UserSquare-CuUPyuma.js";import"./Copy01-DK-rveWk.js";import"./CreditCard01-Bv4apDUd.js";import"./DotsVertical-Cz9DnVkj.js";import"./Image01-DkSAzjSu.js";import"./Palette-jHJa2pFE.js";import"./XClose-Chbrrnow.js";import"./Key01-2_VP-ymA.js";import"./Link01-CBIFqZsw.js";import"./LinkExternal01-D20IL3CN.js";import"./Monitor01-WwJ1rHPk.js";import"./Sun-7ajd25ZV.js";import"./Trash01-DKbCrUTj.js";import"./Upload01-BBKhvCnt.js";import"./User01-D2Lmw0ef.js";import"./Users01-DsJzDkrr.js";import"./X-ateu7dRb.js";import"./access-gate-Uqlikjgu.js";import"./capability-load-error-DPnEcJx5.js";function U(){const t=k.c(20),o=$(),{org:c}=D(),{data:y}=G(void 0),g=y===void 0?[]:y,E=K(),P=H(),f=M(),[x,z]=q.useState(""),h=x.toLowerCase(),b=new Map(E.map(W)),A=g.filter(i=>{if(!h||i.name.toLowerCase().includes(h))return!0;if(i.virtual_mcp_id){const l=b.get(i.virtual_mcp_id);if(l&&l.title.toLowerCase().includes(h))return!0}return!1}),B=(i,l)=>{const N=l&&b.has(l)?l:V(c.id);R("automations_list_row_clicked",{automation_id:i,agent_id:N,source:"settings_automations"}),P(N,{panel:`automation:${i}`})};let p;t[0]!==f||t[1]!==c.slug?(p=()=>{R("automations_empty_state_browse_agents_clicked"),f({to:"/$org/settings/projects",params:{org:c.slug}})},t[0]=f,t[1]=c.slug,t[2]=p):p=t[2];const L=p,j=d,C=d,v=d;let s;t[3]!==o?(s=o("settings.automations.pageTitle"),t[3]=o,t[4]=s):s=t[4];let r;t[5]!==s?(r=e.jsx(d.Title,{children:s}),t[5]=s,t[6]=r):r=t[6];const w=g.length>0&&e.jsx(F,{value:x,onChange:z,placeholder:o("settings.automations.searchPlaceholder"),className:"w-full md:w-[375px]"});let n;t[7]!==r||t[8]!==w?(n=e.jsxs("div",{className:"flex flex-col gap-6",children:[r,w]}),t[7]=r,t[8]=w,t[9]=n):n=t[9];const _=g.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(T,{image:e.jsx(S,{size:48,className:"text-muted-foreground"}),title:o("settings.automations.emptyTitle"),description:o("settings.automations.emptyDescription"),actions:e.jsxs(O,{size:"sm",onClick:L,children:[e.jsx(X,{size:14}),o("settings.automations.browseAgentsButton")]})})}):A.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(T,{image:e.jsx(S,{size:48,className:"text-muted-foreground"}),title:o("settings.automations.noResultsTitle"),description:o("settings.automations.noResultsDescription",{search:x})})}):e.jsx("div",{className:"mt-6 rounded-xl border border-border overflow-hidden",children:A.map(i=>e.jsx(J,{automation:i,showAgent:!0,onClick:()=>B(i.id,i.virtual_mcp_id)},i.id))});let a;t[10]!==v.Container||t[11]!==n||t[12]!==_?(a=e.jsxs(v.Container,{children:[n,_]}),t[10]=v.Container,t[11]=n,t[12]=_,t[13]=a):a=t[13];let m;t[14]!==C.Content||t[15]!==a?(m=e.jsx(C.Content,{children:a}),t[14]=C.Content,t[15]=a,t[16]=m):m=t[16];let u;return t[17]!==j||t[18]!==m?(u=e.jsx(j,{children:m}),t[17]=j,t[18]=m,t[19]=u):u=t[19],u}function W(t){return[t.id,t]}function Jt(){const t=k.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(Q,{capability:"automations:manage",area:"automations",children:e.jsx(U,{})}),t[0]=o):o=t[0],o}export{Jt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as d}from"./index-
|
|
1
|
+
import{V as d}from"./index-DbabGxy6.js";const m=1e4,y="true",i=2;function a(t,n){return d.chatAutosend(t,n)}function l(t){return t==="pending"||t==="sending"}function f(t){if(!t)return null;let n;try{n=JSON.parse(t)}catch{return null}if(!n||typeof n!="object")return null;const e=n;let o=0;e.status==="sending"?o=e.retryAt===void 0?1:i:e.retryAt!==void 0&&(o=1);const r=e.attempt===void 0?o:e.attempt;return typeof e.createdAt!="number"||typeof e.message!="object"||!l(e.status)||e.retryAt!==void 0&&typeof e.retryAt!="number"||typeof r!="number"||!Number.isInteger(r)||r<0||r>i?null:{...n,attempt:r}}function S(t,n,e,o,r=Date.now()){const s={message:o,createdAt:r,status:"pending",attempt:0};return t.setItem(a(n,e),JSON.stringify(s)),s}function p(t,n,e){const o=a(n,e),r=f(t.getItem(o));return r||(t.removeItem(o),null)}function g(t,n,e,o=Date.now()){const r=a(n,e),s=p(t,n,e);if(!s||s.status!=="pending")return null;if(s.attempt>=i)return t.removeItem(r),null;const c=s.retryAt??s.createdAt;if(o-c>=m)return t.removeItem(r),null;const u={...s,status:"sending",attempt:s.attempt+1};return t.setItem(r,JSON.stringify(u)),{message:u.message,createdAt:u.createdAt,attempt:u.attempt}}function T(t,n,e){t.removeItem(a(n,e))}export{y as A,T as a,g as c,S as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k,j as i,l as f,aH as R,ba as V,bb as I,bc as $}from"./index-
|
|
1
|
+
import{c as k,j as i,l as f,aH as R,ba as V,bb as I,bc as $}from"./index-DbabGxy6.js";import{s as O}from"./User01-D2Lmw0ef.js";function U(r){const e=k.c(8);let s,t;e[0]!==r?({className:s,...t}=r,e[0]=r,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=f("relative flex size-8 shrink-0 overflow-hidden rounded-full",s),e[3]=s,e[4]=o):o=e[4];let a;return e[5]!==t||e[6]!==o?(a=i.jsx($,{"data-slot":"avatar",className:o,...t}),e[5]=t,e[6]=o,e[7]=a):a=e[7],a}function E(r){const e=k.c(8);let s,t;e[0]!==r?({className:s,...t}=r,e[0]=r,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=f("aspect-square size-full",s),e[3]=s,e[4]=o):o=e[4];let a;return e[5]!==t||e[6]!==o?(a=i.jsx(V,{"data-slot":"avatar-image",className:o,...t}),e[5]=t,e[6]=o,e[7]=a):a=e[7],a}function M(r){const e=k.c(8);let s,t;e[0]!==r?({className:s,...t}=r,e[0]=r,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=f("bg-muted flex size-full items-center justify-center rounded-full",s),e[3]=s,e[4]=o):o=e[4];let a;return e[5]!==t||e[6]!==o?(a=i.jsx(I,{"data-slot":"avatar-fallback",className:o,...t}),e[5]=t,e[6]=o,e[7]=a):a=e[7],a}const C=["drop-shadow-lg bg-gradient-to-br from-red-100 to-red-300 text-red-800 shadow-lg shadow-red-300/40 ring-1 ring-red-300/30","drop-shadow-lg bg-gradient-to-br from-lime-100 to-lime-300 text-lime-800 shadow-lg shadow-lime-300/40 ring-1 ring-lime-300/30","drop-shadow-lg bg-gradient-to-br from-emerald-100 to-emerald-300 text-emerald-800 shadow-lg shadow-emerald-300/40 ring-1 ring-emerald-300/30","drop-shadow-lg bg-gradient-to-br from-orange-100 to-orange-300 text-orange-800 shadow-lg shadow-orange-300/40 ring-1 ring-orange-300/30","drop-shadow-lg bg-gradient-to-br from-amber-100 to-amber-300 text-amber-800 shadow-lg shadow-amber-300/40 ring-1 ring-amber-300/30","drop-shadow-lg bg-gradient-to-br from-yellow-100 to-yellow-300 text-yellow-800 shadow-lg shadow-yellow-300/40 ring-1 ring-yellow-300/30","drop-shadow-lg bg-gradient-to-br from-green-100 to-green-300 text-green-800 shadow-lg shadow-green-300/40 ring-1 ring-green-300/30","drop-shadow-lg bg-gradient-to-br from-teal-100 to-teal-300 text-teal-800 shadow-lg shadow-teal-300/40 ring-1 ring-teal-300/30","drop-shadow-lg bg-gradient-to-br from-cyan-100 to-cyan-300 text-cyan-800 shadow-lg shadow-cyan-300/40 ring-1 ring-cyan-300/30","drop-shadow-lg bg-gradient-to-br from-sky-100 to-sky-300 text-sky-800 shadow-lg shadow-sky-300/40 ring-1 ring-sky-300/30","drop-shadow-lg bg-gradient-to-br from-blue-100 to-blue-300 text-blue-800 shadow-lg shadow-blue-300/40 ring-1 ring-blue-300/30","drop-shadow-lg bg-gradient-to-br from-indigo-100 to-indigo-300 text-indigo-800 shadow-lg shadow-indigo-300/40 ring-1 ring-indigo-300/30","drop-shadow-lg bg-gradient-to-br from-violet-100 to-violet-300 text-violet-800 shadow-lg shadow-violet-300/40 ring-1 ring-violet-300/30","drop-shadow-lg bg-gradient-to-br from-purple-100 to-purple-300 text-purple-800 shadow-lg shadow-purple-300/40 ring-1 ring-purple-300/30","drop-shadow-lg bg-gradient-to-br from-fuchsia-100 to-fuchsia-300 text-fuchsia-800 shadow-lg shadow-fuchsia-300/40 ring-1 ring-fuchsia-300/30","drop-shadow-lg bg-gradient-to-br from-pink-100 to-pink-300 text-pink-800 shadow-lg shadow-pink-300/40 ring-1 ring-pink-300/30","drop-shadow-lg bg-gradient-to-br from-rose-100 to-rose-300 text-rose-800 shadow-lg shadow-rose-300/40 ring-1 ring-rose-300/30"],L="drop-shadow-lg text-muted-foreground bg-muted shadow-lg";function T(r){let e=0;for(let t=0;t<r.length;t++)e=r.charCodeAt(t)+((e<<5)-e);const s=Math.abs(e)%C.length;return C[s]}const S=R("border border-border",{variants:{shape:{circle:"rounded-full",square:""},size:{"3xs":"w-3 h-3 text-[7px] font-semibold","2xs":"w-4 h-4 text-[9px] font-semibold",xs:"w-6 h-6 text-sm font-semibold",sm:"w-8 h-8 text-lg font-semibold",base:"w-10 h-10 text-2xl font-semibold",lg:"w-12 h-12 text-3xl font-semibold",xl:"w-16 h-16 text-4xl font-semibold","2xl":"w-20 h-20 text-5xl font-semibold","3xl":"w-32 h-32 text-7xl font-semibold"}},compoundVariants:[{shape:"square",size:"xs",class:"rounded-lg"},{shape:"square",size:"sm",class:"rounded-xl"},{shape:"square",size:"base",class:"rounded-xl"},{shape:"square",size:"lg",class:"rounded-xl"},{shape:"square",size:"xl",class:"rounded-2xl"},{shape:"square",size:"2xl",class:"rounded-3xl"},{shape:"square",size:"3xl",class:"rounded-[40px]"}],defaultVariants:{shape:"square",size:"base"}}),_=R("",{variants:{objectFit:{contain:"object-contain",cover:"object-cover"}},defaultVariants:{objectFit:"cover"}}),D=r=>{const e={"3xs":8,"2xs":8,xs:12,sm:16,base:24,lg:28,xl:36,"2xl":48,"3xl":80};return e[r]||e.base};function H(r){const e=k.c(34);let s,t,o,a,n,d,g,l;e[0]!==r?({url:l,fallback:t,shape:a,size:n,objectFit:d,className:s,muted:g,...o}=r,e[0]=r,e[1]=s,e[2]=t,e[3]=o,e[4]=a,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],a=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const m=a===void 0?"square":a,h=n===void 0?"base":n,u=d===void 0?"cover":d,j=g===void 0?!1:g;let x;e:{if(typeof t=="string"){let c;e[9]!==t?(c=t.trim().slice(0,2).toUpperCase(),e[9]=t,e[10]=c):c=e[10],x=c;break e}x=t}const b=x;let y;e:{if(j){y=L;break e}if(typeof t=="string"){let c;e[11]!==t?(c=T(t),e[11]=t,e[12]=c):c=e[12],y=c;break e}y=C[0]}const z=y;let N;e[13]!==l?(N=l?.startsWith("icon://"),e[13]=l,e[14]=N):N=e[14];const p=N;let q;e[15]!==p||e[16]!==l?(q=p?l?.replace("icon://",""):void 0,e[15]=p,e[16]=l,e[17]=q):q=e[17];const F=q;let w;e[18]!==s||e[19]!==m||e[20]!==h?(w=f(S({shape:m,size:h}),s),e[18]=s,e[19]=m,e[20]=h,e[21]=w):w=e[21];let v;e[22]!==z||e[23]!==b||e[24]!==F||e[25]!==p||e[26]!==u||e[27]!==h||e[28]!==l?(v=p&&F?i.jsx("div",{className:f("flex items-center justify-center w-full h-full",z),children:i.jsx(O,{size:D(h)})}):i.jsxs(i.Fragment,{children:[l&&i.jsx(E,{src:l,loading:"lazy",alt:"Avatar",className:f(_({objectFit:u}))}),i.jsx(M,{className:f(z,"rounded-none"),delayMs:l?600:0,children:b})]}),e[22]=z,e[23]=b,e[24]=F,e[25]=p,e[26]=u,e[27]=h,e[28]=l,e[29]=v):v=e[29];let A;return e[30]!==o||e[31]!==v||e[32]!==w?(A=i.jsx(U,{className:w,...o,children:v}),e[30]=o,e[31]=v,e[32]=w,e[33]=A):A=e[33],A}function W(r){const e=k.c(18);let s,t,o,a,n,d,g,l;e[0]!==r?({shape:a,size:n,url:l,fallback:t,objectFit:d,className:s,muted:g,...o}=r,e[0]=r,e[1]=s,e[2]=t,e[3]=o,e[4]=a,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],a=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const m=a===void 0?"square":a,h=n===void 0?"base":n,u=d===void 0?"cover":d,j=g===void 0?!1:g,x=h??"base";let b;return e[9]!==s||e[10]!==t||e[11]!==j||e[12]!==u||e[13]!==o||e[14]!==m||e[15]!==x||e[16]!==l?(b=i.jsx(H,{shape:m,url:l,fallback:t,size:x,objectFit:u,className:s,muted:j,...o}),e[9]=s,e[10]=t,e[11]=j,e[12]=u,e[13]=o,e[14]=m,e[15]=x,e[16]=l,e[17]=b):b=e[17],b}W.Skeleton=function({shape:e="square",size:s="base",className:t}){return i.jsx("div",{className:f(S({shape:e,size:s}),"bg-muted animate-pulse",t)})};export{W as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,l as g,j as l,bd as v,aH as b}from"./index-
|
|
1
|
+
import{c as u,l as g,j as l,bd as v,aH as b}from"./index-DbabGxy6.js";const f=b("inline-flex items-center justify-center rounded-full border text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",success:"border-transparent bg-success text-success-foreground [a&]:hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",warning:"border-transparent bg-warning text-warning-foreground [a&]:hover:bg-warning/90 focus-visible:ring-warning/20 dark:focus-visible:ring-warning/40",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",muted:"border-transparent bg-muted text-muted-foreground [a&]:hover:bg-muted/80"},size:{default:"px-2 py-0.5",icon:"size-5",segmented:"h-7 gap-0 rounded-lg border-transparent bg-card p-0 card-shadow"}},defaultVariants:{variant:"default",size:"default"}});function x(d){const e=u.c(14);let r,s,t,n,a;e[0]!==d?({className:r,variant:a,size:t,asChild:n,...s}=d,e[0]=d,e[1]=r,e[2]=s,e[3]=t,e[4]=n,e[5]=a):(r=e[1],s=e[2],t=e[3],n=e[4],a=e[5]);const c=(n===void 0?!1:n)?v:"span";let i;e[6]!==r||e[7]!==t||e[8]!==a?(i=g(f({variant:a,size:t}),r),e[6]=r,e[7]=t,e[8]=a,e[9]=i):i=e[9];let o;return e[10]!==c||e[11]!==s||e[12]!==i?(o=l.jsx(c,{"data-slot":"badge",className:i,...s}),e[10]=c,e[11]=s,e[12]=i,e[13]=o):o=e[13],o}export{x as B};
|