decocms 4.451.1 → 4.452.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-DDHQi3fm.js → AlertCircle-CQkRRGSg.js} +1 -1
- package/dist/client/assets/{AreaChart-xcCkJdeX.js → AreaChart-B-RuYs_G.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CIsJnvjF.js → ArrowLeft-DR8lCUOF.js} +1 -1
- package/dist/client/assets/{ArrowUp-CtvQk6Vg.js → ArrowUp-7FgpFlyY.js} +1 -1
- package/dist/client/assets/{Building02-BVSXudo-.js → Building02-7V26SUA6.js} +1 -1
- package/dist/client/assets/{CartesianChart-YXdY8HHd.js → CartesianChart-D2qv7oNB.js} +1 -1
- package/dist/client/assets/{Check-Cf-cMW3t.js → Check-CZYLh537.js} +1 -1
- package/dist/client/assets/{CheckCircle-BemNEpVg.js → CheckCircle-BcqKkSj5.js} +1 -1
- package/dist/client/assets/{ChevronUp-B79uJeZN.js → ChevronUp-riNbaljB.js} +1 -1
- package/dist/client/assets/{Copy01-DluK-JtU.js → Copy01-DFthUWqM.js} +1 -1
- package/dist/client/assets/{CreditCard01-BzBUMTax.js → CreditCard01-CyYVeRD3.js} +1 -1
- package/dist/client/assets/{DotsVertical-COzw8ydu.js → DotsVertical-rzfqPSdm.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-CICGscAV.js → ErrorBarContext-DQp6cg0w.js} +1 -1
- package/dist/client/assets/{Image01-DnRAAkhy.js → Image01-CmS6lPNM.js} +1 -1
- package/dist/client/assets/{Key01-DXvy1NNO.js → Key01-CkznrEPX.js} +1 -1
- package/dist/client/assets/{Line-DooN19Jn.js → Line-TP8KMdrq.js} +1 -1
- package/dist/client/assets/{Link01-iwXPIeVc.js → Link01-BK2WDfDE.js} +1 -1
- package/dist/client/assets/{LinkBroken01-ChSpe7Cq.js → LinkBroken01-DE5GGQ-P.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BVDnNs6j.js → LinkExternal01-YQUR5lT6.js} +1 -1
- package/dist/client/assets/{Monitor01-BLZH5esy.js → Monitor01-mscEQ6pB.js} +1 -1
- package/dist/client/assets/{Palette-CaKXG6S_.js → Palette-U32cX76w.js} +1 -1
- package/dist/client/assets/{Plus-DjsQQqpw.js → Plus-B1zA6p-4.js} +1 -1
- package/dist/client/assets/{SearchMd-oXON6Mge.js → SearchMd-nUFR-fun.js} +1 -1
- package/dist/client/assets/{Sector-Df4GIa0t.js → Sector-IJN93tJL.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-DktiI11o.js → ShoppingBag01-xjymcct3.js} +1 -1
- package/dist/client/assets/{Sun-BWosC3Su.js → Sun-CCW_4qiv.js} +1 -1
- package/dist/client/assets/{Tool01-BchdJG2X.js → Tool01-B62In8iq.js} +1 -1
- package/dist/client/assets/{Trash01-BfnCKCGB.js → Trash01-C2tQl3wO.js} +1 -1
- package/dist/client/assets/{Upload01-CNtxqXvb.js → Upload01-BWT4v0Wi.js} +1 -1
- package/dist/client/assets/{User01-DXNh3TnB.js → User01-CjZ2I7BX.js} +1 -1
- package/dist/client/assets/{UserSquare-DZJwwd71.js → UserSquare-CWUXupRN.js} +1 -1
- package/dist/client/assets/{Users01-DAfCqIN7.js → Users01-BCGnPOxS.js} +1 -1
- package/dist/client/assets/{X-C52mq3mn.js → X-CHFG7-mU.js} +1 -1
- package/dist/client/assets/{XAxis-DgLHWAdH.js → XAxis-DIIA1eR_.js} +1 -1
- package/dist/client/assets/{XClose-BqRoe3QG.js → XClose-DTOuD_e7.js} +1 -1
- package/dist/client/assets/{ZoomOut-BlDSjKri.js → ZoomOut-CTvv0VFv.js} +1 -1
- package/dist/client/assets/{access-gate-DbBQLMiF.js → access-gate-YoCC2cak.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-Bll7Vib1.js → add-connection-dialog-BJoFO4TU.js} +1 -1
- package/dist/client/assets/{agent-analytics-DRKGLO_x.js → agent-analytics-pKyZniYD.js} +1 -1
- package/dist/client/assets/agent-app-DwiMM2IP.js +1 -0
- package/dist/client/assets/{agent-assets-D9BHI5EW.js → agent-assets-BBuETSa3.js} +1 -1
- package/dist/client/assets/{agent-automation-ClR5yW20.js → agent-automation-Gf_403yV.js} +1 -1
- package/dist/client/assets/{agent-automations-CCiWhcgf.js → agent-automations-DHEWASaU.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DFTkcmVS.js → agent-connect-sources-BJfN-vfW.js} +1 -1
- package/dist/client/assets/agent-deck-E2P9m0dI.js +1 -0
- package/dist/client/assets/{agent-e2e-pbVC7Vx7.js → agent-e2e-BUPuBpdn.js} +1 -1
- package/dist/client/assets/{agent-experiments-_aODOZpq.js → agent-experiments-DvP2aKwk.js} +1 -1
- package/dist/client/assets/{agent-file-DtN8kaxY.js → agent-file-CDAQ3_2M.js} +1 -1
- package/dist/client/assets/{agent-git-BCddyL27.js → agent-git-B3crMGWs.js} +1 -1
- package/dist/client/assets/{agent-hosting-CgLWSfX9.js → agent-hosting-MCkMzhov.js} +1 -1
- package/dist/client/assets/{agent-icon-DEoEcQYL.js → agent-icon-BJAncODg.js} +1 -1
- package/dist/client/assets/agent-library-Be8pU2hW.js +1 -0
- package/dist/client/assets/agent-library-file-CY8i2CE4.js +1 -0
- package/dist/client/assets/{agent-monitor-YUBiIydT.js → agent-monitor-CAKsywMv.js} +1 -1
- package/dist/client/assets/{agent-overview-HCAO8obL.js → agent-overview-BeUwu-KG.js} +1 -1
- package/dist/client/assets/agent-settings-CuDtw36W.js +1 -0
- package/dist/client/assets/{agent-site-editor-DH5igdCT.js → agent-site-editor-CiGatYz3.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-DRE7bc_V.js +2 -0
- package/dist/client/assets/agent-site-editor-content-CStkXfya.js +9 -0
- package/dist/client/assets/{agent-site-editor-preview-BBSy8s7P.js → agent-site-editor-preview-D9pvz5fY.js} +3 -3
- package/dist/client/assets/agent-view-CI9PvOjo.js +1 -0
- package/dist/client/assets/{agent-view-guard-BYimT8Jz.js → agent-view-guard-H46J6I2J.js} +1 -1
- package/dist/client/assets/{agents-list-C434Mp2b.js → agents-list-CfV4zbeg.js} +1 -1
- package/dist/client/assets/{ai-providers-DINDBcoG.js → ai-providers-BN2hQMhH.js} +1 -1
- package/dist/client/assets/{alert-_Nu0OQ4m.js → alert-DAHFLojl.js} +1 -1
- package/dist/client/assets/{alert-dialog-D9wz_Poi.js → alert-dialog-DfTPgIPX.js} +1 -1
- package/dist/client/assets/{analytics-sections-_zTIyETq.js → analytics-sections-yoOoelxF.js} +1 -1
- package/dist/client/assets/api-keys-CKqJk5_6.js +1 -0
- package/dist/client/assets/{api-keys-tqQH4z9A.js → api-keys-NZUBfE--.js} +1 -1
- package/dist/client/assets/app-editor-DS_J4EUn.js +1 -0
- package/dist/client/assets/{asset-utils-WUpNFBXm.js → asset-utils-Dg_L4rgJ.js} +1 -1
- package/dist/client/assets/{auth-catchall-mR81Birw.js → auth-catchall-CQNM5IYs.js} +1 -1
- package/dist/client/assets/{auth-entry-DCUAgWIX.js → auth-entry-Bg2aCMAm.js} +1 -1
- package/dist/client/assets/{auth-DDdLUET9.js → auth-g-eeEO2I.js} +1 -1
- package/dist/client/assets/{auth-split-layout-FX4F99rm.js → auth-split-layout-BHWXJwAv.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Bb2l090x.js → authenticate-and-persist-oauth-D01FuEWu.js} +1 -1
- package/dist/client/assets/{automation-list-row-SxUdqZJz.js → automation-list-row-CyxwTlrF.js} +1 -1
- package/dist/client/assets/{automation-runs-Cw-2J5pa.js → automation-runs-xCwcCJC2.js} +1 -1
- package/dist/client/assets/{automations-DXUfchhU.js → automations-Ab2pgU9k.js} +1 -1
- package/dist/client/assets/{autosend-CeDtnxlk.js → autosend-5ui8IdtF.js} +1 -1
- package/dist/client/assets/{avatar-BeFEVdWT.js → avatar-CmjVNkwN.js} +1 -1
- package/dist/client/assets/{badge-Dw0XHZAq.js → badge-DRRTtn5O.js} +1 -1
- package/dist/client/assets/{block-document-HhERskFc.js → block-document-Cu1B3Znw.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-BqdqlnAP.js → blocks-preview-workspace-context-DKUHWFsF.js} +1 -1
- package/dist/client/assets/{blog-schema-Bzw5lTdw.js → blog-schema-DsqMhqVM.js} +1 -1
- package/dist/client/assets/{buckets-C_vclPuO.js → buckets-yskqiFUf.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DG46Mbz-.js → build-improve-prompt-doc-Czr7rpOn.js} +1 -1
- package/dist/client/assets/{calendar-BGvJ_APz.js → calendar-hQQyUCsj.js} +1 -1
- package/dist/client/assets/{capability-load-error-m8D5eiRW.js → capability-load-error-CbMIev40.js} +1 -1
- package/dist/client/assets/{category-editor-BoAaFme1.js → category-editor-CERa-ic1.js} +1 -1
- package/dist/client/assets/{chart-AQf5J0lZ.js → chart-V4xaiNPC.js} +1 -1
- package/dist/client/assets/{chat-context-DHGUafJ4.js → chat-context-oxL7wGnz.js} +1 -1
- package/dist/client/assets/{chat-draft-Du6X8nKJ.js → chat-draft-Djy3dkUg.js} +1 -1
- package/dist/client/assets/{checkbox-D-g_vU3W.js → checkbox-D7WjpuVv.js} +1 -1
- package/dist/client/assets/{choose-editor-DJMezn9k.js → choose-editor-BEgt8mUY.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-BTrkr4bY.js → claim-phase-copy-D-j3nn-u.js} +1 -1
- package/dist/client/assets/{cli-auth-success-M_9Lwmu5.js → cli-auth-success-CDTAwVf_.js} +1 -1
- package/dist/client/assets/{client-icons-Do1roBGh.js → client-icons-BRCUVaWX.js} +1 -1
- package/dist/client/assets/{collapsible-DUefED3P.js → collapsible-DIaN6Srf.js} +1 -1
- package/dist/client/assets/{collection-detail-CuQUNXH_.js → collection-detail-DJ79vvsb.js} +1 -1
- package/dist/client/assets/{collection-display-button-CMHxbURQ.js → collection-display-button-D_MeUzdg.js} +1 -1
- package/dist/client/assets/{collection-search-CKxipBbw.js → collection-search-CKIe33RH.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CN227TJm.js → collection-table-wrapper-BU7gTJT1.js} +1 -1
- package/dist/client/assets/{collection-tabs-z-VIWVMA.js → collection-tabs-Br7caoEY.js} +1 -1
- package/dist/client/assets/{column-rules-BOkclOCh.js → column-rules-C4SSRzGe.js} +1 -1
- package/dist/client/assets/{combobox-D_pkyBdU.js → combobox-ZWRPqCmz.js} +1 -1
- package/dist/client/assets/{command-B-LkMxT6.js → command-CBb61KwU.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-BPWHNlmG.js → companion-mcps-section-B4YWrazT.js} +1 -1
- package/dist/client/assets/{config-F8FEDZHV.js → config-e26AxbQy.js} +1 -1
- package/dist/client/assets/{connect-CSAnQalo.js → connect-Cis4Tapn.js} +1 -1
- package/dist/client/assets/{connect-layout-CSKeZ95g.js → connect-layout-Dcio3Lf-.js} +1 -1
- package/dist/client/assets/{connection-Da57b2wi.js → connection-BHqwT0eD.js} +1 -1
- package/dist/client/assets/{connection-card-UvAhqwBj.js → connection-card-C2EkxrBF.js} +1 -1
- package/dist/client/assets/{connection-detail-C-Hcx_Z9.js → connection-detail-jcDwf2ZX.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DyaTkO-i.js → connection-form-helpers-9n8ribSs.js} +1 -1
- package/dist/client/assets/{connections-B2s4aP98.js → connections-D7jA8LjW.js} +1 -1
- package/dist/client/assets/{context-BPEjFj2c.js → context-izLsg2u9.js} +1 -1
- package/dist/client/assets/{context-menu-D65fsibc.js → context-menu-DerEN04P.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-rmBJe-TK.js → create-organization-dialog-CYAsWdo6.js} +1 -1
- package/dist/client/assets/{daily-pulse-39bOcAjW.js → daily-pulse-CnVCBpq0.js} +1 -1
- package/dist/client/assets/{decopilot-CDg-MCtI.js → decopilot-BLnyHUyj.js} +1 -1
- package/dist/client/assets/{device-hint-BckoyQwI.js → device-hint-BELnE8gL.js} +1 -1
- package/dist/client/assets/{dialog-C9YQM7Rb.js → dialog-BrqxKGpn.js} +1 -1
- package/dist/client/assets/{discover-B4mPS-t0.js → discover-CkexzJr8.js} +1 -1
- package/dist/client/assets/{domain-settings-C5SxoG2E.js → domain-settings-BZKJb9dL.js} +1 -1
- package/dist/client/assets/{download-app-dialog-D3HwAGf1.js → download-app-dialog-D4fZwg6L.js} +1 -1
- package/dist/client/assets/{drawer-BbtvDSmI.js → drawer-DnzsJxQZ.js} +1 -1
- package/dist/client/assets/{editor-DiFPb_7W.js → editor-CTFiwz0O.js} +1 -1
- package/dist/client/assets/{empty-state-Jq3vDmCi.js → empty-state-CIlXqsAy.js} +1 -1
- package/dist/client/assets/{empty-state-ChIdoRAZ.js → empty-state-L-fapaGY.js} +1 -1
- package/dist/client/assets/{extract-connection-data-0OXYM8zm.js → extract-connection-data-BojttbHn.js} +1 -1
- package/dist/client/assets/{feature-gate-DyX-49Cz.js → feature-gate-n8g4g4zp.js} +1 -1
- package/dist/client/assets/{feature-paywall-CMm2o9Ho.js → feature-paywall-KXd0tDN_.js} +1 -1
- package/dist/client/assets/{file-explorer-BsD7GHt-.js → file-explorer-BKwSFv0S.js} +1 -1
- package/dist/client/assets/{file-preview-DG7_swxk.js → file-preview-DTF7cqq1.js} +1 -1
- package/dist/client/assets/{file-share-button-d423tG-P.js → file-share-button-YKzQ30pm.js} +1 -1
- package/dist/client/assets/{file-type-icon-Zo3jfkM-.js → file-type-icon-DH3SCrZf.js} +1 -1
- package/dist/client/assets/flat-project-zMUH6pEW.js +1 -0
- package/dist/client/assets/{folder-icon-DrGtPSK9.js → folder-icon-mDaDXy1F.js} +1 -1
- package/dist/client/assets/{form-CYA-1Wz9.js → form-CwmR-nDp.js} +1 -1
- package/dist/client/assets/{gateway-client-DE4QITdV.js → gateway-client-BUVeQ8TP.js} +1 -1
- package/dist/client/assets/{general-C_08074W.js → general-pHKX0mlj.js} +1 -1
- package/dist/client/assets/{home-HCpI5IEw.js → home-DpJ0l_4_.js} +1 -1
- package/dist/client/assets/{icon-button-Cag62vyF.js → icon-button-CLFo5Lxf.js} +1 -1
- package/dist/client/assets/{index-Dm3Ro6iT.js → index-5Z-O-IC_.js} +1 -1
- package/dist/client/assets/{index-BGzd8qMa.js → index-BOU4FVnf.js} +1 -1
- package/dist/client/assets/{index-LffHYdj2.js → index-BQrJviGi.js} +1 -1
- package/dist/client/assets/{index-BiuSAlzd.js → index-BTRkPuaE.js} +5 -5
- package/dist/client/assets/{index-cj3FPIlo.js → index-B_3n7z-z.js} +1 -1
- package/dist/client/assets/{index-DzWyHXO2.js → index-BwZnKcdF.js} +1 -1
- package/dist/client/assets/{index-qFmYqkwW.js → index-CYfmFyzv.js} +3 -3
- package/dist/client/assets/{index-DBg3Da4o.js → index-Cmukyu5i.js} +1 -1
- package/dist/client/assets/{index-UAWA_mBS.js → index-CskCkMle.js} +1 -1
- package/dist/client/assets/{index-BxwNVsQv.js → index-D7BAQWSU.js} +1 -1
- package/dist/client/assets/{index-C-HKqiI5.js → index-D7EpZIyR.js} +1 -1
- package/dist/client/assets/{index-DX971x0F.js → index-DktJOqdm.js} +1 -1
- package/dist/client/assets/{index-C9yvlucI.js → index-DxdM0E0B.js} +1 -1
- package/dist/client/assets/{index-CFxmc0DR.js → index-NRQboip2.js} +1 -1
- package/dist/client/assets/{index-D3bKcVsq.js → index-q1e9PWXS.js} +1 -1
- package/dist/client/assets/{index-redirect-Cms0d9Rf.js → index-redirect-ClcE1C-w.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-B7-m24Hr.js → infiniteQueryObserver-DDM1TL4D.js} +1 -1
- package/dist/client/assets/{infra-billing-BD4W3COQ.js → infra-billing-CNDnR1FE.js} +1 -1
- package/dist/client/assets/{input-CYlwvkm5.js → input-BkhtMOai.js} +3 -3
- package/dist/client/assets/{input-CpjWxr53.js → input-C7ggWsLT.js} +1 -1
- package/dist/client/assets/{input-B5d33h6X.js → input-_e15nvFZ.js} +1 -1
- package/dist/client/assets/{integration-icon-BcFb9WXn.js → integration-icon-C5Hxx8nt.js} +1 -1
- package/dist/client/assets/{label-BmSaj4OS.js → label-7CUu5Nng.js} +1 -1
- package/dist/client/assets/{layout-DKTnWTMe.js → layout-l5Dybhax.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-CbFqRQlc.js → legacy-agents-deep-CdAR76HP.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-1k1KX6mL.js → legacy-main-redirect-FsmMt53b.js} +1 -1
- package/dist/client/assets/library-8wHr6YwM.js +1 -0
- package/dist/client/assets/{library-tab-rskkU2DA.js → library-tab-D8YaxhRw.js} +1 -1
- package/dist/client/assets/{login-BUVWJTBG.js → login-C-bgG6Sh.js} +1 -1
- package/dist/client/assets/{markdown-D5RcIxaz.js → markdown-B6rsJl8D.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-4bTrB0jF.js → mcp-app-renderer-C1z0J9GI.js} +1 -1
- package/dist/client/assets/{mcp-oauth-C-EEuNZg.js → mcp-oauth-DiCqLrTx.js} +1 -1
- package/dist/client/assets/{members-CWz-dF_G.js → members-CP1FamHG.js} +1 -1
- package/dist/client/assets/{memory-BfINHUTl.js → memory-CFfQuPfj.js} +1 -1
- package/dist/client/assets/{message-templates-Cq847r4U.js → message-templates-BLkI2XAu.js} +1 -1
- package/dist/client/assets/{mini-report-page-BxFxCQ_x.js → mini-report-page-DoPdD9qO.js} +1 -1
- package/dist/client/assets/{mock-board-BFAIWkA7.js → mock-board-BTXd0sAw.js} +1 -1
- package/dist/client/assets/{monaco-editor-DrtzucP0.js → monaco-editor-DynJau-q.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DWbeH1RS.js → monitoring-stats-row-DEGIuizb.js} +1 -1
- package/dist/client/assets/{multi-select-BidbKgY6.js → multi-select-BSBfkzHR.js} +1 -1
- package/dist/client/assets/{mustache-Dy9IxQRw.js → mustache-C6B9oTBs.js} +1 -1
- package/dist/client/assets/{new-project-dialog-Dj5TFcCk.js → new-project-dialog-Ch4HsoZn.js} +1 -1
- package/dist/client/assets/{oauth-callback-Diqg-5tw.js → oauth-callback-KXWSibnc.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DdjEQJSy.js → oauth-callback-ai-provider-C9UxxVbB.js} +1 -1
- package/dist/client/assets/{onboarding-BiJRVogp.js → onboarding-NRECAyIG.js} +1 -1
- package/dist/client/assets/{openai-conversation-Cssz-znB.js → openai-conversation-CeIvqTTz.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-Bl6nsH4A.js → optimistic-project-sidebar-views-BSGhW_VM.js} +1 -1
- package/dist/client/assets/{org-file-open-context-CTyFwctz.js → org-file-open-context-BXXF2r_W.js} +1 -1
- package/dist/client/assets/{organization-choice-BtNQMYzV.js → organization-choice-B4UdP9Qv.js} +1 -1
- package/dist/client/assets/{orgs-BYnZJx1z.js → orgs-B1zsOJOt.js} +1 -1
- package/dist/client/assets/{page-seo-form-RJHH5jjR.js → page-seo-form-_-ijKB5k.js} +1 -1
- package/dist/client/assets/{pair-PmQIQCBI.js → pair-BCFdDbiP.js} +1 -1
- package/dist/client/assets/{plan-ladder-BbGn-NgZ.js → plan-ladder-CsmVoXQQ.js} +1 -1
- package/dist/client/assets/{popover-DwQhmYZx.js → popover-CrZxQ_WL.js} +1 -1
- package/dist/client/assets/{post-calendar-u9yIz1ap.js → post-calendar-D7geM2YK.js} +1 -1
- package/dist/client/assets/{post-editor-zwUoRB_d.js → post-editor-ChtR1Ltr.js} +1 -1
- package/dist/client/assets/{preview-content-YklxPrDD.js → preview-content-BvBDv3Fi.js} +1 -1
- package/dist/client/assets/{preview-dialog-B6-Ghng-.js → preview-dialog-COx6Lotq.js} +1 -1
- package/dist/client/assets/{profile-DZ3TYytY.js → profile-Bc9S2aAt.js} +1 -1
- package/dist/client/assets/{project-app-view-B13_tHdE.js → project-app-view-ObUx-R3J.js} +1 -1
- package/dist/client/assets/{project-feed-CuWJElvp.js → project-feed-27M9wFaD.js} +1 -1
- package/dist/client/assets/{project-icon-C1TVO88N.js → project-icon-DfxqT1AH.js} +1 -1
- package/dist/client/assets/project-reports-CYg2nuJI.js +1 -0
- package/dist/client/assets/project-tasks-C8uyyfmf.js +1 -0
- package/dist/client/assets/{projects-qlg8VwGy.js → projects-70vA9Ztg.js} +1 -1
- package/dist/client/assets/{projects-empty-state-BBcr5xLl.js → projects-empty-state-DXeCmI_E.js} +1 -1
- package/dist/client/assets/{prompts-IW4xrems.js → prompts-DEQvjN3W.js} +1 -1
- package/dist/client/assets/record-editor-_3tMo9Zr.js +1 -0
- package/dist/client/assets/{redirect-editor-Djr6TkEe.js → redirect-editor-nH8dYkmn.js} +1 -1
- package/dist/client/assets/{reports-DD_aD-uv.js → reports-BXOZrkbg.js} +1 -1
- package/dist/client/assets/reports-Bf-BvYhy.js +1 -0
- package/dist/client/assets/{reports-onboarding-Btv0f8sO.js → reports-onboarding-DL82A2cU.js} +1 -1
- package/dist/client/assets/{reports-tab-DoBMpRJD.js → reports-tab-DO_Lp8eH.js} +2 -2
- package/dist/client/assets/{repositories-ZgvcUEvA.js → repositories-CMKipbLK.js} +1 -1
- package/dist/client/assets/{repository-binding-CQsr_3Zk.js → repository-binding-Bbkm6nc1.js} +1 -1
- package/dist/client/assets/{repository-import-picker-D6vKdpbU.js → repository-import-picker-Cag3a6oY.js} +1 -1
- package/dist/client/assets/{repository-picker-DnfKLU2E.js → repository-picker-CfTYgBDn.js} +1 -1
- package/dist/client/assets/{require-capability-B1clucXi.js → require-capability-DwsTiirz.js} +1 -1
- package/dist/client/assets/{required-auth-layout-5x9XYN7k.js → required-auth-layout-yl3jbIxV.js} +1 -1
- package/dist/client/assets/{reset-password-JId6yrpe.js → reset-password-C5EXdCC7.js} +1 -1
- package/dist/client/assets/{resizable-00FuDjCF.js → resizable-CtYj4VXu.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-Bi-w5DjE.js → resolve-tab-icon-COPKEIag.js} +1 -1
- package/dist/client/assets/{review-settings-IzuHTtkG.js → review-settings-Dpq07FB5.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-B3wmUrSm.js → rich-text-link-control-CDJeP4n9.js} +1 -1
- package/dist/client/assets/{roles-6EAMaiCw.js → roles-BCA_WGIg.js} +1 -1
- package/dist/client/assets/{route-Bp7poLJJ.js → route-BIN7HFum.js} +1 -1
- package/dist/client/assets/{route-DcKDacvo.js → route-DR7xqOI0.js} +1 -1
- package/dist/client/assets/route-DTM6T9N4.js +1 -0
- package/dist/client/assets/{runnable-block-editor-BPu9lbHb.js → runnable-block-editor-BaDSgAAv.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-_l6ILxBR.js → sandbox-lifecycle-context-AU726rjo.js} +1 -1
- package/dist/client/assets/{schema-CepQKFSq.js → schema-CUw1risJ.js} +1 -1
- package/dist/client/assets/{scroll-area-BNMPUKzn.js → scroll-area-C2S3fcxE.js} +1 -1
- package/dist/client/assets/{search-input-DroJjkYC.js → search-input-Dd4B3qzf.js} +1 -1
- package/dist/client/assets/{search-toggle-Vpxqce5X.js → search-toggle-CsGviyR_.js} +1 -1
- package/dist/client/assets/{secret-picker-CIV9Pyxx.js → secret-picker-oakuwK6W.js} +1 -1
- package/dist/client/assets/{secrets-Ddw-OUj-.js → secrets-CXgB5-m9.js} +1 -1
- package/dist/client/assets/{sections-editor-B6DapFds.js → sections-editor-D8pxq_yu.js} +1 -1
- package/dist/client/assets/{select-QknS4jya.js → select-C350dwBx.js} +1 -1
- package/dist/client/assets/{select-model-MWiJU5BO.js → select-model-CRWgLGNx.js} +1 -1
- package/dist/client/assets/{seo-editor-BmySIXEZ.js → seo-editor-1V2gYAl_.js} +1 -1
- package/dist/client/assets/{separator-C5QeX-ze.js → separator-CDghQ8gc.js} +1 -1
- package/dist/client/assets/{settings-tab-pWdRgoZd.js → settings-tab-CAkBws58.js} +1 -1
- package/dist/client/assets/{sheet-CuQcjl8J.js → sheet-B2gAUp07.js} +1 -1
- package/dist/client/assets/{shell-layout-DgCL-aOA.js → shell-layout-DT24w4k_.js} +1 -1
- package/dist/client/assets/{skills-C9HRCrz7.js → skills-CyVOwqjn.js} +1 -1
- package/dist/client/assets/{sso-eRxfAwx6.js → sso-CfVGd8zI.js} +1 -1
- package/dist/client/assets/{suggestion-CUAhSpKi.js → suggestion-yycalltA.js} +1 -1
- package/dist/client/assets/{switch-WI6sluFx.js → switch-C4OygJ1j.js} +1 -1
- package/dist/client/assets/{synced-repos-B7M4g-ab.js → synced-repos-CRCUc2yM.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-BUy8eStz.js → tab-icon-glyph-CnzBc78s.js} +1 -1
- package/dist/client/assets/{table-DahiKrUr.js → table-BVqziFMU.js} +1 -1
- package/dist/client/assets/{tabs-mZ2AJpie.js → tabs-M4EGpP-K.js} +1 -1
- package/dist/client/assets/{task-board-Cg5OuTdd.js → task-board-Dy1oP9tV.js} +1 -1
- package/dist/client/assets/{task-route-CcdO9T8s.js → task-route-Dya6D_p7.js} +1 -1
- package/dist/client/assets/{task-status--I5ZFulR.js → task-status-uh1TpLCM.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-CwIKc_CA.js → taskboard-analytics-dQI3iomY.js} +1 -1
- package/dist/client/assets/{tasks-Cx199_rB.js → tasks-D70uWBSC.js} +1 -1
- package/dist/client/assets/tasks-W04QS25_.js +1 -0
- package/dist/client/assets/{textarea-IAy-ownU.js → textarea-NMcEOyOg.js} +1 -1
- package/dist/client/assets/{thread-analytics-DoucYhij.js → thread-analytics-B54AXYt6.js} +1 -1
- package/dist/client/assets/{thread-button-BS5hFLVf.js → thread-button-CgP5Z586.js} +1 -1
- package/dist/client/assets/{thread-intent-ags1XWir.js → thread-intent-Jf2tKMef.js} +1 -1
- package/dist/client/assets/{thread-route-Cbe9daAp.js → thread-route-DxzVtF_c.js} +1 -1
- package/dist/client/assets/{thread-route-SwwHxRrN.js → thread-route-IxUDda00.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-BzLo18UG.js → thread-sheet-body-B8X3wACw.js} +1 -1
- package/dist/client/assets/{toggle-group-C7J6hm1X.js → toggle-group-DpTIfIjE.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-MH5hFCTi.js → toolbar-icon-button-C_PK_Noh.js} +1 -1
- package/dist/client/assets/{tooltip-rVl8jzih.js → tooltip-BJNrweFg.js} +1 -1
- package/dist/client/assets/{track-D9Kj7slb.js → track-BtwjnpVQ.js} +1 -1
- package/dist/client/assets/{types-B77htmoi.js → types-Zvb_HNLy.js} +1 -1
- package/dist/client/assets/{usage-stats-B9NCjY7p.js → usage-stats-N89KL5SR.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BBj3hH0A.js → use-ai-providers-Bb-AtX2R.js} +1 -1
- package/dist/client/assets/{use-automations-BMeSuYUl.js → use-automations-CySFN-Fc.js} +1 -1
- package/dist/client/assets/{use-autosave-DddhIIlH.js → use-autosave-DG37V9_z.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-CcLE4xPO.js → use-chat-layout-state-CmdNghlG.js} +1 -1
- package/dist/client/assets/{use-clock-tick-WbPH8S5J.js → use-clock-tick-BPnWxYd_.js} +1 -1
- package/dist/client/assets/{use-connect-companion-ooa0I2Ht.js → use-connect-companion-ECuWJz0C.js} +1 -1
- package/dist/client/assets/{use-connection-BJVimXqv.js → use-connection-C0aQTMeC.js} +1 -1
- package/dist/client/assets/{use-copy-XLZP4Fnf.js → use-copy-BVWEkCC-.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-P_mw-sB2.js → use-create-virtual-mcp-DEMYuYyB.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-D1z6vY0T.js → use-date-fns-locale-Bd8PyfIy.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DM7h6lLt.js → use-debounced-autosave-DXb_Ac1O.js} +1 -1
- package/dist/client/assets/{use-debounced-value-PqnB6cMC.js → use-debounced-value-DBJBbNih.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CWMvx_aN.js → use-deco-credits-_QhU-dhT.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-B_Wj2FDs.js → use-decopilot-events-D3bXKKWM.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Ct_NbrFe.js → use-delete-connection-DSFkVlnh.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BrRZ5JXH.js → use-deployment-admin-BruYSdMh.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-Ckawo-Vn.js → use-fast-preview-draft-url-ZFU-P35J.js} +1 -1
- package/dist/client/assets/{use-file-configs-BCUJhrSS.js → use-file-configs-RTbLyPOX.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DOZLICG8.js → use-infinite-scroll-opYdDO9U.js} +1 -1
- package/dist/client/assets/{use-join-requests-LL4W5sq2.js → use-join-requests-c0wYTiAF.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-CUdUAhvy.js → use-main-panel-tabs-DLoT5JrG.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-D_jLHFPt.js → use-mcp-auth-status-Bc_ELMHW.js} +1 -1
- package/dist/client/assets/{use-mcp-client-5sJCC1_2.js → use-mcp-client-DAfDiXAH.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-5OccjpiV.js → use-mcp-prompts-CDl0wJU0.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-cj_8qKci.js → use-mcp-tools-C7pm9vnU.js} +1 -1
- package/dist/client/assets/{use-members-C5RWM84Q.js → use-members-CyU3kEXW.js} +1 -1
- package/dist/client/assets/{use-mobile-D06E6E9A.js → use-mobile-DgFuzdmq.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-2D1RSJEE.js → use-navigate-to-agent-DrZpt_-x.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-CD7nCSQB.js +1 -0
- package/dist/client/assets/{use-open-billing-url-CrzuSkfk.js → use-open-billing-url-C-if4cJf.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CXExidw4.js → use-org-auth-client-C7_w-QfK.js} +1 -1
- package/dist/client/assets/{use-org-fs-BI2aRf-g.js → use-org-fs-CKHreXlO.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DhxRO-sX.js → use-org-repo-syncs-CdOm1Gkh.js} +1 -1
- package/dist/client/assets/{use-org-sso-C8LeExfy.js → use-org-sso-CbL4kkEg.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Z4A7wlo_.js → use-organization-roles-DQ43ZVi5.js} +1 -1
- package/dist/client/assets/{use-organization-settings-0Ql08vCb.js → use-organization-settings-_CCzAfB0.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-DvFfVppm.js → use-panel-navigate-DJawwVTN.js} +1 -1
- package/dist/client/assets/{use-project-scope-DJC0Rmd2.js → use-project-scope-BTHyRdHp.js} +1 -1
- package/dist/client/assets/{use-releases-UqMY8RcZ.js → use-releases-BWJN6YTw.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-zVwryKCp.js → use-reports-diagnostic-CiKeDiTH.js} +1 -1
- package/dist/client/assets/{use-secrets-DGDpC9hp.js → use-secrets-CSjuIq4b.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DryOEAAN.js → use-section-preview-base-CeoNtR7i.js} +1 -1
- package/dist/client/assets/{use-session-runtime-Cosw4CCW.js → use-session-runtime-Wyvnx53o.js} +1 -1
- package/dist/client/assets/{use-tags-BCCzUzPa.js → use-tags-C3diByDZ.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-CCFQvvsk.js → use-task-board-analytics-Csh4rD2k.js} +1 -1
- package/dist/client/assets/{use-task-board-events-B2orELe0.js → use-task-board-events-BwC1dILR.js} +1 -1
- package/dist/client/assets/{use-task-metadata-8O-Ga8Wr.js → use-task-metadata-DzFvwyIV.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-BYmN2LQm.js → use-thread-analytics-DXqO4MwU.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-DqnIgfuG.js → use-thread-outputs-C05qBJbv.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DZS3Aawa.js +1 -0
- package/dist/client/assets/{useQueries-Cdt1TSyJ.js → useQueries-BcxNFZiu.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DGDEkzHG.js +1 -0
- package/dist/client/assets/{users-BLEnjq5F.js → users-Cc-KY6pD.js} +1 -1
- package/dist/client/assets/{utils-BiBoFq--.js → utils-DPdaJHGR.js} +1 -1
- package/dist/client/assets/{variant-calendar-Csv8MReF.js → variant-calendar-BJjVTz4W.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-CdOGya1b.js → variant-matcher-override-CwgRSkJP.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-D3nXTaNQ.js → view-mode-toggle-CQqizETf.js} +1 -1
- package/dist/client/assets/{virtual-mcp-DUyYKScq.js → virtual-mcp-BdXZSyI0.js} +1 -1
- package/dist/client/index.html +1 -1
- 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-DI84JCkP.js +0 -1
- package/dist/client/assets/agent-deck-CgsUwnay.js +0 -1
- package/dist/client/assets/agent-library-BMVOMtwg.js +0 -1
- package/dist/client/assets/agent-library-file-Bs_Ov692.js +0 -1
- package/dist/client/assets/agent-settings-JOvgc7kq.js +0 -1
- package/dist/client/assets/agent-site-editor-code-De-iSok_.js +0 -2
- package/dist/client/assets/agent-site-editor-content-Ch2WC4sl.js +0 -9
- package/dist/client/assets/agent-view-BtBtSuEv.js +0 -1
- package/dist/client/assets/api-keys-2hDzDTH9.js +0 -1
- package/dist/client/assets/app-editor-BqD9kpqg.js +0 -1
- package/dist/client/assets/flat-project-DUdVe5OD.js +0 -1
- package/dist/client/assets/library-D9RnFFGm.js +0 -1
- package/dist/client/assets/project-reports-hbeMiS7q.js +0 -1
- package/dist/client/assets/project-tasks-DcinQO1a.js +0 -1
- package/dist/client/assets/record-editor-DZiiw2X4.js +0 -1
- package/dist/client/assets/reports-RkncIczX.js +0 -1
- package/dist/client/assets/route-DLd5XMus.js +0 -1
- package/dist/client/assets/tasks-DQZjFSh-.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-DxwEKp1u.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BAMBgsXo.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B_8hQc1u.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-BiuSAlzd.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-BTRkPuaE.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-BTRkPuaE.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-BTRkPuaE.js";import{i as u,a as p}from"./mcp-oauth-DiCqLrTx.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-SxUdqZJz.js → automation-list-row-CyxwTlrF.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as q,b as J,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 q,b as J,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-BTRkPuaE.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-DfTPgIPX.js";import{A as me,K as ue}from"./agent-icon-BJAncODg.js";import{i as de}from"./DotsVertical-rzfqPSdm.js";import{s as fe}from"./Trash01-C2tQl3wO.js";import{i as ge}from"./ZoomOut-CTvv0VFv.js";import{a as xe}from"./repository-binding-Bbkm6nc1.js";import{a as pe}from"./use-automations-CySFN-Fc.js";function Ce(c){const e=q.c(80),{automation:s,showAgent:a,onClick:n}=c,i=J(),{remove:o}=pe(),[l,I]=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),I(!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 V=s.active&&s.trigger_count>0?"automations.automationListRow.ariaActive":s.active?"automations.automationListRow.ariaNoTriggers":"automations.automationListRow.ariaPaused";let d;e[7]!==i||e[8]!==V?(d=i(V),e[7]=i,e[8]=V,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 K,$;e[33]===Symbol.for("react.memo_cache_sentinel")?(K=m=>{m.stopPropagation(),I(!0)},$=t.jsx(fe,{size:16}),e[33]=K,e[34]=$):(K=e[33],$=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:K,children:[$,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:I,children:z}),e[74]=l,e[75]=z,e[76]=F):F=e[76];let B;return e[77]!==A||e[78]!==F?(B=t.jsxs(t.Fragment,{children:[A,F]}),e[77]=A,e[78]=F,e[79]=B):B=e[79],B}function he(c){return c.stopPropagation()}function je(c){return c.stopPropagation()}function we(c){const e=q.c(8),{triggerCount:s,nextRunAt:a}=c,n=J();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-BiuSAlzd.js";import{u as ft}from"./useInfiniteQuery-BAMBgsXo.js";import{u as xt}from"./use-connection-BJVimXqv.js";import{u as pt}from"./use-mcp-client-5sJCC1_2.js";import{b as gt}from"./repository-binding-CQsr_3Zk.js";import{b as ht,a as Rt}from"./sheet-CuQcjl8J.js";import{e as jt,a as Nt,b as st,T as G,d as bt,c as V}from"./table-DahiKrUr.js";import{E as et}from"./empty-state-Jq3vDmCi.js";import{u as Tt}from"./use-infinite-scroll-DOZLICG8.js";import{a as St}from"./use-members-C5RWM84Q.js";import{g as vt}from"./task-status--I5ZFulR.js";import{e as wt}from"./use-automations-BMeSuYUl.js";import{T as Ct,f as at,a as nt}from"./thread-sheet-body-BzLo18UG.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-BTRkPuaE.js";import{u as ft}from"./useInfiniteQuery-DZS3Aawa.js";import{u as xt}from"./use-connection-C0aQTMeC.js";import{u as pt}from"./use-mcp-client-DAfDiXAH.js";import{b as gt}from"./repository-binding-Bbkm6nc1.js";import{b as ht,a as Rt}from"./sheet-B2gAUp07.js";import{e as jt,a as Nt,b as st,T as G,d as bt,c as V}from"./table-BVqziFMU.js";import{E as et}from"./empty-state-CIlXqsAy.js";import{u as Tt}from"./use-infinite-scroll-opYdDO9U.js";import{a as St}from"./use-members-CyU3kEXW.js";import{g as vt}from"./task-status-uh1TpLCM.js";import{e as wt}from"./use-automations-CySFN-Fc.js";import{T as Ct,f as at,a as nt}from"./thread-sheet-body-B8X3wACw.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-BTRkPuaE.js";import{s as X}from"./Plus-B1zA6p-4.js";import{i as S}from"./ZoomOut-CTvv0VFv.js";import{S as F}from"./search-input-Dd4B3qzf.js";import{E as T}from"./empty-state-CIlXqsAy.js";import{u as G}from"./use-automations-CySFN-Fc.js";import{u as H}from"./use-navigate-to-agent-DrZpt_-x.js";import{A as J}from"./automation-list-row-CyxwTlrF.js";import{b as K}from"./repository-binding-Bbkm6nc1.js";import{R as Q}from"./require-capability-DwsTiirz.js";import"./SearchMd-nUFR-fun.js";import"./use-mcp-client-DAfDiXAH.js";import"./auth-g-eeEO2I.js";import"./thread-intent-Jf2tKMef.js";import"./backoff-8mStPHYB.js";import"./task-board-Dy1oP9tV.js";import"./schema-CUw1risJ.js";import"./slugify-CEUa2lfQ.js";import"./alert-dialog-DfTPgIPX.js";import"./agent-icon-BJAncODg.js";import"./AlertCircle-CQkRRGSg.js";import"./Tool01-B62In8iq.js";import"./ArrowUp-7FgpFlyY.js";import"./ArrowLeft-DR8lCUOF.js";import"./LinkBroken01-DE5GGQ-P.js";import"./ShoppingBag01-xjymcct3.js";import"./Building02-7V26SUA6.js";import"./CheckCircle-BcqKkSj5.js";import"./Check-CZYLh537.js";import"./ChevronUp-riNbaljB.js";import"./UserSquare-CWUXupRN.js";import"./Copy01-DFthUWqM.js";import"./CreditCard01-CyYVeRD3.js";import"./DotsVertical-rzfqPSdm.js";import"./Image01-CmS6lPNM.js";import"./Palette-U32cX76w.js";import"./XClose-DTOuD_e7.js";import"./Key01-CkznrEPX.js";import"./Link01-BK2WDfDE.js";import"./LinkExternal01-YQUR5lT6.js";import"./Monitor01-mscEQ6pB.js";import"./Sun-CCW_4qiv.js";import"./Trash01-C2tQl3wO.js";import"./Upload01-BWT4v0Wi.js";import"./User01-CjZ2I7BX.js";import"./Users01-BCGnPOxS.js";import"./X-CHFG7-mU.js";import"./access-gate-YoCC2cak.js";import"./capability-load-error-CbMIev40.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-BTRkPuaE.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-BTRkPuaE.js";import{s as O}from"./User01-CjZ2I7BX.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-BTRkPuaE.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};
|