decocms 4.454.1 → 4.455.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-3t4CitpU.js → AlertCircle-BOPAUEgU.js} +1 -1
- package/dist/client/assets/{AreaChart-B9ltWb3N.js → AreaChart-CJHdSsRl.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BbJmgkdx.js → ArrowLeft-DGlO1CKr.js} +1 -1
- package/dist/client/assets/{ArrowUp-DQk9lIXC.js → ArrowUp-Duh-8Vv0.js} +1 -1
- package/dist/client/assets/{Building02-FDWlk2dX.js → Building02-D_rXBsfQ.js} +1 -1
- package/dist/client/assets/{CartesianChart-BJJpA_Vw.js → CartesianChart-DIS9sPOp.js} +1 -1
- package/dist/client/assets/{Check-BhlN5Gfa.js → Check-CcPSzxsY.js} +1 -1
- package/dist/client/assets/{CheckCircle-DP_Yeb-b.js → CheckCircle-CxJ9MBI3.js} +1 -1
- package/dist/client/assets/{ChevronUp-BUjD5px7.js → ChevronUp-C9klasvw.js} +1 -1
- package/dist/client/assets/{Copy01-B7ecNUq1.js → Copy01-ByHdq7k3.js} +1 -1
- package/dist/client/assets/{CreditCard01-DylNWQDW.js → CreditCard01-D7Ll8vXp.js} +1 -1
- package/dist/client/assets/{DotsVertical-CMBMcjBX.js → DotsVertical-CXVrXTYw.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-DYl-NvRS.js → ErrorBarContext-D4SFBJLe.js} +1 -1
- package/dist/client/assets/{Image01-jyAhhinO.js → Image01-DAe5wd3u.js} +1 -1
- package/dist/client/assets/{Key01-DwEPbnXb.js → Key01-Dje7twgn.js} +1 -1
- package/dist/client/assets/{Line-98LUvvSk.js → Line-p8cNw9wz.js} +1 -1
- package/dist/client/assets/{Link01-D8H87QlU.js → Link01-BFa5_pnw.js} +1 -1
- package/dist/client/assets/{LinkBroken01-FGx4hlpz.js → LinkBroken01-BQ3rvf4O.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Chk3wQjH.js → LinkExternal01-ChFFafWR.js} +1 -1
- package/dist/client/assets/{Monitor01-C4DfOzWo.js → Monitor01-tvCvi4o_.js} +1 -1
- package/dist/client/assets/{Palette-92eAR3c0.js → Palette-BFtTwWPg.js} +1 -1
- package/dist/client/assets/{Plus-CLQei2e6.js → Plus-Dk5G0eGJ.js} +1 -1
- package/dist/client/assets/{SearchMd-B4g7zoIg.js → SearchMd-DJptVqPP.js} +1 -1
- package/dist/client/assets/{Sector-D4jvfeB8.js → Sector-CoYmht1l.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-DJPwdB_I.js → ShoppingBag01-mUPmqGRd.js} +1 -1
- package/dist/client/assets/{Sun-D28dVpFO.js → Sun-Bl8Ky_if.js} +1 -1
- package/dist/client/assets/{Tool01-DyzplouF.js → Tool01-CGCC9pfF.js} +1 -1
- package/dist/client/assets/{Trash01-B2AvA9FK.js → Trash01-BA-bFjuS.js} +1 -1
- package/dist/client/assets/{Upload01-_iBVm55R.js → Upload01-C13aB89v.js} +1 -1
- package/dist/client/assets/{User01-DuKYzVz8.js → User01-B42bcRzQ.js} +1 -1
- package/dist/client/assets/{UserSquare-CI-KdVX2.js → UserSquare-B6-k4uk5.js} +1 -1
- package/dist/client/assets/{Users01-utuHNJ9R.js → Users01-BmXeKAri.js} +1 -1
- package/dist/client/assets/{X-BQXAAYgl.js → X-BdtW9stL.js} +1 -1
- package/dist/client/assets/{XAxis-OsjV83Ou.js → XAxis-G213xRid.js} +1 -1
- package/dist/client/assets/{XClose-KUaLXy6Q.js → XClose-Bsj_jKUE.js} +1 -1
- package/dist/client/assets/{ZoomOut-B0FMI__D.js → ZoomOut-BQf_lYpX.js} +1 -1
- package/dist/client/assets/{access-gate-DHNHQ9zE.js → access-gate-BtTwTt-9.js} +1 -1
- package/dist/client/assets/{add-connection-dialog--aaGSX_P.js → add-connection-dialog-CwnC8yt-.js} +1 -1
- package/dist/client/assets/{agent-analytics-HWaoA2oR.js → agent-analytics-CPj4bxgs.js} +1 -1
- package/dist/client/assets/agent-app-CjNO2lXq.js +1 -0
- package/dist/client/assets/{agent-assets-Cr-W811X.js → agent-assets-D5PkhLx3.js} +1 -1
- package/dist/client/assets/{agent-automation-l2cgkKU7.js → agent-automation-Cd6QYcZt.js} +1 -1
- package/dist/client/assets/{agent-automations-CHAZrKqa.js → agent-automations-WUChl97S.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-CWEmNdK2.js → agent-connect-sources-BTKe88uu.js} +1 -1
- package/dist/client/assets/agent-deck-BBsYONOP.js +1 -0
- package/dist/client/assets/{agent-e2e-NYmfDbZa.js → agent-e2e-D92Tz-G3.js} +1 -1
- package/dist/client/assets/{agent-experiments-CLCcfrbN.js → agent-experiments-B5NLiDa9.js} +1 -1
- package/dist/client/assets/{agent-file-BIEk1dmU.js → agent-file-BlaR5see.js} +1 -1
- package/dist/client/assets/{agent-hosting-CO_rhibd.js → agent-hosting-CoW01d6P.js} +1 -1
- package/dist/client/assets/{agent-icon-1OqzsUAE.js → agent-icon-QobcC4y1.js} +1 -1
- package/dist/client/assets/agent-library-DJDlIAqS.js +1 -0
- package/dist/client/assets/agent-library-file-CZjl7KSc.js +1 -0
- package/dist/client/assets/{agent-monitor-BmsHZAPv.js → agent-monitor-B-qOXS0c.js} +1 -1
- package/dist/client/assets/{agent-overview-Ct3DWuXE.js → agent-overview-CLWCQeaZ.js} +1 -1
- package/dist/client/assets/agent-settings-DhGEY9it.js +1 -0
- package/dist/client/assets/{agent-site-editor-CRZzqyQE.js → agent-site-editor-DFNItXi0.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-D1HLX1NJ.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-DSBHbBbR.js → agent-site-editor-content-DeSoO3Vu.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-BxrT5UM7.js → agent-site-editor-preview-BQKa6vcQ.js} +3 -3
- package/dist/client/assets/agent-view-YbbJ0c-k.js +1 -0
- package/dist/client/assets/{agent-view-guard-mRjTZUSW.js → agent-view-guard-BggSlJ4I.js} +1 -1
- package/dist/client/assets/{agents-list-BK_MtQHd.js → agents-list-Ckh7S6i4.js} +1 -1
- package/dist/client/assets/{ai-providers-wWFphB_9.js → ai-providers-KNbVRi9R.js} +2 -2
- package/dist/client/assets/{alert-BDcbHG2K.js → alert-BZ6uRdL8.js} +1 -1
- package/dist/client/assets/{alert-dialog-BfxfbeRo.js → alert-dialog-13GPwGkk.js} +1 -1
- package/dist/client/assets/{analytics-sections-CCrJWAzF.js → analytics-sections-C4iGKBOV.js} +1 -1
- package/dist/client/assets/{api-keys-44_etvo0.js → api-keys-Btl9HmTY.js} +1 -1
- package/dist/client/assets/api-keys-C1C00ELj.js +1 -0
- package/dist/client/assets/app-editor-Cr-wsjho.js +1 -0
- package/dist/client/assets/{asset-utils-zoNZYT_Y.js → asset-utils-B4wnf4gp.js} +1 -1
- package/dist/client/assets/{auth-Be85fS22.js → auth-BMIwdKU8.js} +1 -1
- package/dist/client/assets/{auth-catchall-CTdxuzGz.js → auth-catchall-CsvXshlN.js} +1 -1
- package/dist/client/assets/{auth-entry-9WVbDTgn.js → auth-entry-BuNH69Nv.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Bd3Wv1Ul.js → auth-split-layout-rkoJUdAV.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DZ9TfDha.js → authenticate-and-persist-oauth-DWogyy0B.js} +1 -1
- package/dist/client/assets/{automation-list-row-BbKXgF-R.js → automation-list-row-db5LJ5pV.js} +1 -1
- package/dist/client/assets/{automation-runs-YorECl9g.js → automation-runs-_74LLZTB.js} +1 -1
- package/dist/client/assets/automations-qyXzvoeZ.js +1 -0
- package/dist/client/assets/{autosend-CRAaDm47.js → autosend-B5Obavo-.js} +1 -1
- package/dist/client/assets/{avatar-DPiZM9JI.js → avatar-Bpp_lL_f.js} +1 -1
- package/dist/client/assets/{badge-C70X12A9.js → badge-DTNkOzY0.js} +1 -1
- package/dist/client/assets/{block-document-Bb13K9Xx.js → block-document-BLOu51_T.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-tiBiDTnV.js → blocks-preview-workspace-context-BmjkHogK.js} +1 -1
- package/dist/client/assets/{blog-schema-CrmLbu-L.js → blog-schema-B4_qQgjF.js} +1 -1
- package/dist/client/assets/{buckets-BakoSY5F.js → buckets-CCNSYAgt.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BdY8sMUa.js → build-improve-prompt-doc-oJt1CVIT.js} +1 -1
- package/dist/client/assets/{calendar-Xr0_X-dJ.js → calendar-BRUBvVES.js} +1 -1
- package/dist/client/assets/{capability-load-error-DEOoZYRD.js → capability-load-error-th8zEGOp.js} +1 -1
- package/dist/client/assets/{category-editor-CUD3lDBR.js → category-editor-CRqB5ots.js} +1 -1
- package/dist/client/assets/{chart-CdkOOcwe.js → chart-DBFqaeAD.js} +1 -1
- package/dist/client/assets/{chat-context-SQR_HnrV.js → chat-context-BHWxNMFT.js} +6 -6
- package/dist/client/assets/{chat-draft-ClSxrs12.js → chat-draft-SnGEiSWm.js} +1 -1
- package/dist/client/assets/{checkbox-dRd9g2H5.js → checkbox-DuccoC4e.js} +1 -1
- package/dist/client/assets/{choose-editor-YVWzNcML.js → choose-editor-Blu_E7S8.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-CiHmryra.js → claim-phase-copy-J9IiJiw_.js} +1 -1
- package/dist/client/assets/{cli-auth-success-zKCh9sGG.js → cli-auth-success-g5vIj6jD.js} +1 -1
- package/dist/client/assets/{client-icons-wzblqipX.js → client-icons-ByIvBqps.js} +1 -1
- package/dist/client/assets/{collapsible-CgYSDpXy.js → collapsible-qdaAxaaw.js} +1 -1
- package/dist/client/assets/{collection-detail-DImjCLH0.js → collection-detail-CRpVPceB.js} +1 -1
- package/dist/client/assets/{collection-display-button-ySPfNWKF.js → collection-display-button-CAE4H1Z5.js} +1 -1
- package/dist/client/assets/{collection-search-Daq9kKuN.js → collection-search-BG7vK4NS.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CP9uIvN_.js → collection-table-wrapper-C-F_T5Eb.js} +1 -1
- package/dist/client/assets/{collection-tabs-DtjUs1A5.js → collection-tabs-DrZNeSEC.js} +1 -1
- package/dist/client/assets/{column-rules-Bo9Qbi1T.js → column-rules-C1VVvSzv.js} +1 -1
- package/dist/client/assets/{combobox-Ccd0xh39.js → combobox-B0tRCuGZ.js} +1 -1
- package/dist/client/assets/{command-a4IN63yc.js → command-D4xFqyr9.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-BS-i6Wh4.js → companion-mcps-section-Cz5vCHft.js} +1 -1
- package/dist/client/assets/{config-BQQbHVQ7.js → config-DPczwNxh.js} +1 -1
- package/dist/client/assets/{connect-layout-BOuFTHKB.js → connect-layout-B5AnMnce.js} +1 -1
- package/dist/client/assets/{connect-vvgWKwgp.js → connect-pk9RQf7E.js} +1 -1
- package/dist/client/assets/{connection-CAG14zGZ.js → connection-BBVDOaSM.js} +1 -1
- package/dist/client/assets/{connection-card-ACWoimrM.js → connection-card-D1TMmLIT.js} +1 -1
- package/dist/client/assets/{connection-detail-B8Xtv2Ww.js → connection-detail-DQ776dHS.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BxVe0XvV.js → connection-form-helpers-CFQwZ1sv.js} +1 -1
- package/dist/client/assets/{connections-BX7Kd5-m.js → connections-D5_-1i7h.js} +1 -1
- package/dist/client/assets/{context-DuwSYB-v.js → context-BzZmRn5A.js} +1 -1
- package/dist/client/assets/{context-menu-Db5SVKVy.js → context-menu-Dt0_Wi5C.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-zyq81keC.js → create-organization-dialog-SVvYPMqI.js} +1 -1
- package/dist/client/assets/{daily-pulse-BLOj9QcX.js → daily-pulse-Dy2ScJNC.js} +1 -1
- package/dist/client/assets/{decopilot-DboBD55M.js → decopilot-Bh5nOuj8.js} +1 -1
- package/dist/client/assets/{device-hint-Czp4quXE.js → device-hint-BWrI1ZAV.js} +1 -1
- package/dist/client/assets/{dialog--2DE59f4.js → dialog-CwJ0Tacd.js} +1 -1
- package/dist/client/assets/{discover-Bh29hObV.js → discover-BN5fZmxX.js} +1 -1
- package/dist/client/assets/{domain-settings-ComV0r-h.js → domain-settings-C0ggYD-b.js} +1 -1
- package/dist/client/assets/{download-app-dialog-C3Ji56be.js → download-app-dialog-BlTQi4L1.js} +1 -1
- package/dist/client/assets/{drawer-CmCYRv71.js → drawer-LGekY388.js} +1 -1
- package/dist/client/assets/{editor-Q8fTwJVK.js → editor-DIJFF-Rn.js} +3 -3
- package/dist/client/assets/{empty-state-iV41QFUB.js → empty-state-Db66egMr.js} +1 -1
- package/dist/client/assets/{empty-state-Ba4Lmj53.js → empty-state-DdDKihxt.js} +1 -1
- package/dist/client/assets/{extract-connection-data-zlkqkzoy.js → extract-connection-data-BZKTCWVm.js} +1 -1
- package/dist/client/assets/{feature-gate-Bc3gv9R6.js → feature-gate-DIpT85T7.js} +1 -1
- package/dist/client/assets/{feature-paywall-COlGAU5V.js → feature-paywall--RganMza.js} +1 -1
- package/dist/client/assets/{file-explorer-D0NYENQh.js → file-explorer-B0caqImY.js} +1 -1
- package/dist/client/assets/{file-preview-BK6HWgQz.js → file-preview-BVUwkvqy.js} +1 -1
- package/dist/client/assets/{file-share-button-BSE3y3HH.js → file-share-button-Dfx-yCi-.js} +1 -1
- package/dist/client/assets/{file-type-icon-Hh_qpvql.js → file-type-icon-CYHSeMg9.js} +1 -1
- package/dist/client/assets/flat-project-CXofx1Tp.js +1 -0
- package/dist/client/assets/{folder-icon-CKdtOEi8.js → folder-icon-Bz05bjxQ.js} +1 -1
- package/dist/client/assets/{form-es3qsNvx.js → form-DXEENu_8.js} +1 -1
- package/dist/client/assets/{gateway-client-BI4FJ_tT.js → gateway-client-DafKkh5Q.js} +1 -1
- package/dist/client/assets/{general-B-jSci0b.js → general-P5nYRAWt.js} +1 -1
- package/dist/client/assets/{home-DQoJZrnn.js → home-C9qFKdi5.js} +1 -1
- package/dist/client/assets/{icon-button-BRiA9kiV.js → icon-button-c-SlONOU.js} +1 -1
- package/dist/client/assets/{index-0zdxHEgU.js → index-0glLJTM3.js} +1 -1
- package/dist/client/assets/{index-D7hYEfbN.js → index-BOGZM7Pw.js} +3 -3
- package/dist/client/assets/{index-DtMNfpk7.js → index-CaP5SDB2.js} +1 -1
- package/dist/client/assets/{index-CYlLocPz.js → index-Ccz5AaI_.js} +1 -1
- package/dist/client/assets/{index-DjtXLy0g.js → index-D9bgHbh-.js} +1 -1
- package/dist/client/assets/{index-CFDmgtf-.js → index-DGWe6sla.js} +1 -1
- package/dist/client/assets/{index-BabIEbYv.js → index-DK7oXPIL.js} +1 -1
- package/dist/client/assets/{index-BsC6xORW.js → index-Dl3JXElC.js} +1 -1
- package/dist/client/assets/{index-BX4WRpMk.js → index-DlDzsxeJ.js} +1 -1
- package/dist/client/assets/{index-C69CS_86.js → index-DuKSozhT.js} +1 -1
- package/dist/client/assets/{index-DsvD9a73.js → index-KD5FDUeP.js} +1 -1
- package/dist/client/assets/{index-DC6klush.js → index-ZDbB-PVr.js} +1 -1
- package/dist/client/assets/{index-B8VGzyyA.js → index-ehY3MQSN.js} +3 -3
- package/dist/client/assets/{index-nwj1WYdQ.js → index-mRG9os_M.js} +1 -1
- package/dist/client/assets/{index-redirect-DsGrdHfc.js → index-redirect-zukIYzlP.js} +1 -1
- package/dist/client/assets/{index-Bie3Yt7i.js → index-txkdKzZ6.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-rN5E5eR_.js → infiniteQueryObserver-CHVbl4Al.js} +1 -1
- package/dist/client/assets/{infra-billing-STGTbKqw.js → infra-billing-D94tvu0v.js} +1 -1
- package/dist/client/assets/{input-B5SM5NFH.js → input-C0ZWiiGy.js} +1 -1
- package/dist/client/assets/{input-BhyogJV0.js → input-Cbyu0LGy.js} +1 -1
- package/dist/client/assets/{input-C3UtPyeS.js → input-qBVmxar0.js} +3 -3
- package/dist/client/assets/{integration-icon-51EB-LjE.js → integration-icon-DUuPtqFs.js} +1 -1
- package/dist/client/assets/{label-BkKmAPrZ.js → label-CKukDnnz.js} +1 -1
- package/dist/client/assets/{layout-DIdrXHfY.js → layout-DZr1Z4Vi.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-CuL-w8Ck.js → legacy-agents-deep-O_a0ihqp.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-CIckQwOA.js → legacy-main-redirect-B6sO18wU.js} +1 -1
- package/dist/client/assets/library-DOnOZswk.js +1 -0
- package/dist/client/assets/{library-tab-ayplxw28.js → library-tab-CGsiOX6E.js} +1 -1
- package/dist/client/assets/{login-Dh7dGGrt.js → login-hdkcuXfq.js} +1 -1
- package/dist/client/assets/{markdown-DI9weIuO.js → markdown-DNk_PyOf.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-B-h9M4vf.js → mcp-app-renderer-CJ5u3TPG.js} +1 -1
- package/dist/client/assets/{mcp-oauth-q_WDhaFd.js → mcp-oauth-cSH4PfZY.js} +1 -1
- package/dist/client/assets/{members-Duvbhxmd.js → members-C-_zRkLX.js} +1 -1
- package/dist/client/assets/{memory-B3Yr64no.js → memory-DLRzHb1w.js} +2 -2
- package/dist/client/assets/{mini-report-page-BYBUcf9i.js → mini-report-page-CFzUUmyT.js} +1 -1
- package/dist/client/assets/{mock-board-DkM9WLsL.js → mock-board-Si0mPE9y.js} +1 -1
- package/dist/client/assets/{monaco-editor-BlkFUb0T.js → monaco-editor-C4uDUO_q.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-D91cPMXx.js → monitoring-stats-row-CllZiW9E.js} +1 -1
- package/dist/client/assets/{multi-select-CljFfUTQ.js → multi-select-DiHVOPXR.js} +1 -1
- package/dist/client/assets/{mustache-Bit9MGJY.js → mustache-C7f92o5k.js} +1 -1
- package/dist/client/assets/{new-project-dialog-i2AjdXpL.js → new-project-dialog-CiCMTA1C.js} +1 -1
- package/dist/client/assets/{oauth-callback-Manl7zcf.js → oauth-callback-Cb4S9fwE.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BuFa1JC9.js → oauth-callback-ai-provider-CD_A5mvP.js} +1 -1
- package/dist/client/assets/{onboarding-Cw4aLFQT.js → onboarding-B2wyTbOl.js} +1 -1
- package/dist/client/assets/{openai-conversation-BiyOmfLa.js → openai-conversation-WSjKAhvH.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-C5dOi8KI.js → optimistic-project-sidebar-views-BBFtzDV4.js} +1 -1
- package/dist/client/assets/{org-file-open-context-CjL3Ry7C.js → org-file-open-context--_UQSpdl.js} +1 -1
- package/dist/client/assets/{organization-choice-CcPvavKF.js → organization-choice-Bs4XFXgS.js} +1 -1
- package/dist/client/assets/{orgs-5BU6BjBI.js → orgs-DzdQslwf.js} +1 -1
- package/dist/client/assets/{page-seo-form-BImxCgsk.js → page-seo-form-vON-l1GZ.js} +1 -1
- package/dist/client/assets/{pair-DULI5So-.js → pair-IorbWgZn.js} +1 -1
- package/dist/client/assets/{plan-ladder-Ct95x7_d.js → plan-ladder-DSodyL3Q.js} +1 -1
- package/dist/client/assets/{popover-Ddsbw8vr.js → popover-DvKxqM1r.js} +1 -1
- package/dist/client/assets/{post-calendar-Gh6FGDL8.js → post-calendar-DiEfiKrj.js} +1 -1
- package/dist/client/assets/{post-editor-CcE1K4mb.js → post-editor-HV3DNHNH.js} +1 -1
- package/dist/client/assets/{preview-content-CsmLbvef.js → preview-content-Bd42BahA.js} +1 -1
- package/dist/client/assets/{preview-dialog-Db2IsUqO.js → preview-dialog-DBXVi9mo.js} +1 -1
- package/dist/client/assets/{profile-gQCg01Pg.js → profile-C62VIFSL.js} +1 -1
- package/dist/client/assets/{project-app-view-D5z0m56j.js → project-app-view-DYaaNrnC.js} +1 -1
- package/dist/client/assets/{project-feed-CectffXQ.js → project-feed-DDiBGrsP.js} +1 -1
- package/dist/client/assets/{project-icon-zUFSPGzx.js → project-icon-DQrOXeEW.js} +1 -1
- package/dist/client/assets/project-reports-HuiRnlkO.js +1 -0
- package/dist/client/assets/project-tasks-Ck5F7vye.js +1 -0
- package/dist/client/assets/{projects-09qVLtvI.js → projects-C-62vsjh.js} +1 -1
- package/dist/client/assets/{projects-empty-state-DSuG10IT.js → projects-empty-state-DllkKglW.js} +1 -1
- package/dist/client/assets/{prompts-BlWGK9gm.js → prompts-53mGvQlZ.js} +1 -1
- package/dist/client/assets/record-editor-BAdOwM42.js +1 -0
- package/dist/client/assets/{redirect-editor-Dy4B9zEa.js → redirect-editor-C2CflIXw.js} +1 -1
- package/dist/client/assets/{reports-DwZ09kdh.js → reports-DQcmX2XK.js} +1 -1
- package/dist/client/assets/reports-Dyr-R6yJ.js +1 -0
- package/dist/client/assets/{reports-onboarding-BbuiybIk.js → reports-onboarding-DRfSptAM.js} +1 -1
- package/dist/client/assets/{reports-tab-CSSCOCZm.js → reports-tab-BGRnmmWF.js} +2 -2
- package/dist/client/assets/{repositories-DsV9QIrS.js → repositories-ltvP9f3v.js} +1 -1
- package/dist/client/assets/{repository-binding-BPtbugRj.js → repository-binding-CEDkA6og.js} +1 -1
- package/dist/client/assets/{repository-import-picker-DY8NkFcl.js → repository-import-picker-BT060hhl.js} +1 -1
- package/dist/client/assets/{repository-picker-Bu_60yv3.js → repository-picker-Bowb7b9f.js} +1 -1
- package/dist/client/assets/{require-capability-BO2WrDZB.js → require-capability-DN9BJlNM.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BgvVX7TS.js → required-auth-layout-CKgEUo-z.js} +1 -1
- package/dist/client/assets/{reset-password-BoH3BEyI.js → reset-password-B6iTpX4u.js} +1 -1
- package/dist/client/assets/{resizable-DMRcTvG9.js → resizable-Cd8jDRB7.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-CXAXH1c6.js → resolve-tab-icon-X0M-w-vv.js} +1 -1
- package/dist/client/assets/{review-settings-p3dyFLfh.js → review-settings-CsnvQ-Qq.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-CKnN__KM.js → rich-text-link-control-ClsuTwdo.js} +1 -1
- package/dist/client/assets/{roles-DO1mdKqZ.js → roles-CU8q7gVb.js} +1 -1
- package/dist/client/assets/{route-ChNMAp77.js → route-CIn0WnXQ.js} +1 -1
- package/dist/client/assets/route-NLnkR9WP.js +1 -0
- package/dist/client/assets/route-qm6cYbsf.js +1 -0
- package/dist/client/assets/{runnable-block-editor-BT8tgJo5.js → runnable-block-editor-2ItVAsl7.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-BJunzywm.js → sandbox-lifecycle-context-C0vkuH66.js} +1 -1
- package/dist/client/assets/{schema-gvXoFVGC.js → schema-W3hqtN1B.js} +1 -1
- package/dist/client/assets/{scroll-area-BGXFjpgk.js → scroll-area-BN7R6f0c.js} +1 -1
- package/dist/client/assets/{search-input-C9kf2QzG.js → search-input-dP8TWy_f.js} +1 -1
- package/dist/client/assets/{search-toggle-DxL1CEhR.js → search-toggle-BY33vUyT.js} +1 -1
- package/dist/client/assets/{secret-picker-CXDBfcj0.js → secret-picker-Bw0HhGwk.js} +1 -1
- package/dist/client/assets/{secrets-Bcm3gb-7.js → secrets-D3WU-wHx.js} +1 -1
- package/dist/client/assets/{sections-editor-7SLVjemW.js → sections-editor-Bnb_Ii_2.js} +1 -1
- package/dist/client/assets/{select-Bo385QnQ.js → select-CGC5E9nf.js} +1 -1
- package/dist/client/assets/{select-model-BtUoVLeN.js → select-model-B24PK9T9.js} +1 -1
- package/dist/client/assets/{seo-editor-Bws3I75q.js → seo-editor-C0eExFGM.js} +1 -1
- package/dist/client/assets/{separator-Bpa9Zb6K.js → separator-CJCi7EK2.js} +1 -1
- package/dist/client/assets/settings-tab-6YGWJaPP.js +5 -0
- package/dist/client/assets/{sheet-Bp0OaYM9.js → sheet-DOIzAtMq.js} +1 -1
- package/dist/client/assets/{shell-layout-DMqLVaPa.js → shell-layout-B9OaioSj.js} +1 -1
- package/dist/client/assets/{skills-CHvIydZj.js → skills-DdHXbE4c.js} +1 -1
- package/dist/client/assets/{sso-DzY1sSiB.js → sso-WAQdj9Pk.js} +1 -1
- package/dist/client/assets/{suggestion-jBsEBvox.js → suggestion-CotdwSyy.js} +2 -2
- package/dist/client/assets/{switch-O2yDEU3w.js → switch-Ctdc8it1.js} +1 -1
- package/dist/client/assets/{synced-repos-5PjWHzPH.js → synced-repos-DFq2CK-H.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph--RZwkrwS.js → tab-icon-glyph-CXhMb9aF.js} +1 -1
- package/dist/client/assets/{table-cs-obaRn.js → table-BCWfTyhH.js} +1 -1
- package/dist/client/assets/{tabs-PK9QS4Is.js → tabs-BCc9oqWy.js} +1 -1
- package/dist/client/assets/{task-board-B1uWZU9K.js → task-board-Dh6sWb9t.js} +1 -1
- package/dist/client/assets/{task-route-DRf0NxDf.js → task-route-BGcHuycG.js} +1 -1
- package/dist/client/assets/{task-status-UjMHpR3_.js → task-status-CjAgmdGY.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-DG49CdbS.js → taskboard-analytics-CgboMqfv.js} +1 -1
- package/dist/client/assets/{tasks-B5AEZlSg.js → tasks-CQrn-rBP.js} +1 -1
- package/dist/client/assets/tasks-L9jj-kWQ.js +1 -0
- package/dist/client/assets/{textarea-C8e48cUD.js → textarea-e3h0PKfc.js} +1 -1
- package/dist/client/assets/{thread-analytics-CfDkMr69.js → thread-analytics-u-mhBpUO.js} +1 -1
- package/dist/client/assets/{thread-button-RXmpO_s6.js → thread-button-D5H005fQ.js} +1 -1
- package/dist/client/assets/{thread-intent-DD3seycr.js → thread-intent-CNOpHUCE.js} +1 -1
- package/dist/client/assets/{thread-route-D5UsJN7V.js → thread-route-DU2TTrlu.js} +1 -1
- package/dist/client/assets/{thread-route-BurLlqRF.js → thread-route-esGiDSRu.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-CYr9C8k-.js → thread-sheet-body-Bn55RhIb.js} +1 -1
- package/dist/client/assets/{toggle-group-CWajsWIH.js → toggle-group-BUS82Kqf.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-ClIJFPkR.js → toolbar-icon-button-B8tRovqj.js} +1 -1
- package/dist/client/assets/{tooltip-Ch7JwSjZ.js → tooltip-DoWVDYxv.js} +1 -1
- package/dist/client/assets/{track-yFV_-KUI.js → track-slrdEZ2N.js} +1 -1
- package/dist/client/assets/{types-DCK-IvKM.js → types-BlCCVKMl.js} +3 -3
- package/dist/client/assets/{usage-stats-DHCINwxo.js → usage-stats-ELYwp3GN.js} +1 -1
- package/dist/client/assets/{use-ai-providers-shWbOxLc.js → use-ai-providers-BuwFLwdC.js} +1 -1
- package/dist/client/assets/{use-automations-BuTfAhMt.js → use-automations-B8HKsWEy.js} +1 -1
- package/dist/client/assets/{use-autosave-BPE7QfwG.js → use-autosave-77sC71ka.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-CNWV4oOZ.js → use-chat-layout-state-Cd1SDWUO.js} +1 -1
- package/dist/client/assets/{use-clock-tick-CBfGh-8T.js → use-clock-tick-DkYE6iX2.js} +1 -1
- package/dist/client/assets/{use-connect-companion-DBuhvmdP.js → use-connect-companion-sjR8VGIZ.js} +1 -1
- package/dist/client/assets/{use-connection-Roi-SyxA.js → use-connection-C4j2pJbz.js} +1 -1
- package/dist/client/assets/{use-copy-DNeNHO02.js → use-copy-BiyQhtNG.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-ylON-lmG.js → use-create-virtual-mcp-C0a_KTOz.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale--kApxv3j.js → use-date-fns-locale-dFt0Hwsj.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BGrGYaC5.js → use-debounced-autosave-D58XDw_5.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DtOEJwy7.js → use-debounced-value-C1TKx6na.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CxB_Tg6p.js → use-deco-credits--by3KJXE.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Dz93drkG.js → use-decopilot-events-DL6Ppxgb.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BHS_Ab_3.js → use-delete-connection-Cc8dNIWp.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-xqgTl_RK.js → use-deployment-admin-D0_O_QSr.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-D8zoxDMW.js → use-fast-preview-draft-url-KJgu2gHZ.js} +1 -1
- package/dist/client/assets/{use-file-configs-BHKDkTjC.js → use-file-configs-j21JL3yE.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CIbeXSaG.js → use-infinite-scroll-BAQqTty_.js} +1 -1
- package/dist/client/assets/{use-join-requests-Cs8YUxtJ.js → use-join-requests-B2449AYt.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-B2ztRrej.js → use-main-panel-tabs-NhZJRbOq.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BtDthgG6.js → use-mcp-auth-status-CG-b2BD1.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Dv0wmo61.js → use-mcp-client-9jF2B0Tz.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DaqWVfi5.js → use-mcp-prompts-DNAsQeJA.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DjBYc1XK.js → use-mcp-tools-Dbm0kb0W.js} +1 -1
- package/dist/client/assets/{use-members-CBbGro39.js → use-members-CmQfPBAn.js} +1 -1
- package/dist/client/assets/{use-mobile-DrPHToxA.js → use-mobile-9GiVme_1.js} +1 -1
- package/dist/client/assets/use-navigate-to-agent-CSgL519X.js +1 -0
- package/dist/client/assets/use-new-blocks-editor-CQ_89Cdt.js +1 -0
- package/dist/client/assets/{use-open-billing-url-Bk3SlqL_.js → use-open-billing-url-CIF0WByS.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CwT9KERJ.js → use-org-auth-client-BBAyh5Tz.js} +1 -1
- package/dist/client/assets/{use-org-fs-BONY9uyR.js → use-org-fs-DF_BlZtj.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-W4ado92l.js → use-org-repo-syncs-kX31P2gW.js} +1 -1
- package/dist/client/assets/{use-org-sso-B7-QiCKC.js → use-org-sso-BmivjhbI.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DGag2mZt.js → use-organization-roles-DEPf_2N_.js} +1 -1
- package/dist/client/assets/{use-organization-settings-C3-_kI_g.js → use-organization-settings-BgEtBsl7.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-Ck4N-ZB8.js → use-panel-navigate-4MoLzTpw.js} +1 -1
- package/dist/client/assets/{use-project-scope-Dy6ai4MQ.js → use-project-scope-CUYDg9gO.js} +1 -1
- package/dist/client/assets/{use-releases-_59HzI08.js → use-releases-Dgq67fk3.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-BMuHEtbE.js → use-reports-diagnostic-D9eBWCCe.js} +1 -1
- package/dist/client/assets/{use-secrets-B6JGnS88.js → use-secrets-D-qkpxrJ.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DJojO_0E.js → use-section-preview-base-LT3afhUQ.js} +1 -1
- package/dist/client/assets/{use-session-runtime-DdeuwCmv.js → use-session-runtime-C1jT9-WF.js} +1 -1
- package/dist/client/assets/{use-tags-WETmD8h-.js → use-tags-D0iZ2cgD.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BjPzwnMF.js → use-task-board-analytics-B0Mv4i0Z.js} +1 -1
- package/dist/client/assets/{use-task-board-events-UvXF0OvU.js → use-task-board-events-Q5BqAnUD.js} +1 -1
- package/dist/client/assets/{use-task-metadata-DQimkwOj.js → use-task-metadata-B9tqJ9GP.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-DdFSZ4lk.js → use-thread-analytics-D5tK9O4P.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-ByokR1-M.js → use-thread-outputs-CDQWo15F.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-pxyjNhep.js +1 -0
- package/dist/client/assets/{useQueries-B78AFarR.js → useQueries-DvMDA4qD.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Cf0qcKEf.js +1 -0
- package/dist/client/assets/{users-DBjWYDrd.js → users-BE1CJVdF.js} +1 -1
- package/dist/client/assets/{utils-rWt92hWs.js → utils-CZW3O45l.js} +1 -1
- package/dist/client/assets/{variant-calendar-7i4pMUsf.js → variant-calendar-C_oSHjpD.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-BPuvqb9t.js → variant-matcher-override-B9Dx0Ujt.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Chs9e6xz.js → view-mode-toggle-BjrOeE_u.js} +1 -1
- package/dist/client/assets/{virtual-mcp-Dd7G1yTs.js → virtual-mcp-DkCjKqhT.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-CFW3XJJ3.js +0 -1
- package/dist/client/assets/agent-deck-DIqTNfuK.js +0 -1
- package/dist/client/assets/agent-library-CmW5qoRR.js +0 -1
- package/dist/client/assets/agent-library-file-BQ1asGOw.js +0 -1
- package/dist/client/assets/agent-settings-5O8PNLg6.js +0 -1
- package/dist/client/assets/agent-site-editor-code-DuPdAn6O.js +0 -2
- package/dist/client/assets/agent-view-DmLqbwZt.js +0 -1
- package/dist/client/assets/api-keys-UL1ho-y-.js +0 -1
- package/dist/client/assets/app-editor-BzUJsQbn.js +0 -1
- package/dist/client/assets/automations-CT6RAEzt.js +0 -1
- package/dist/client/assets/flat-project-BHnqWyb1.js +0 -1
- package/dist/client/assets/library-omm_OeKO.js +0 -1
- package/dist/client/assets/project-reports-DHC_HSC0.js +0 -1
- package/dist/client/assets/project-tasks-DzL0VTL5.js +0 -1
- package/dist/client/assets/record-editor-kiS_ZZYd.js +0 -1
- package/dist/client/assets/reports-DqySdKN5.js +0 -1
- package/dist/client/assets/route-6cBqBEib.js +0 -1
- package/dist/client/assets/route-CkWpASRI.js +0 -1
- package/dist/client/assets/settings-tab-CrMl0HQX.js +0 -5
- package/dist/client/assets/tasks-B8F8Dqa0.js +0 -1
- package/dist/client/assets/use-navigate-to-agent-B6Jnpp7k.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-BQYMR1qS.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CApTsxJ0.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery--aIXJiP3.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cQ as l,cU as e,bN as h,av as r,
|
|
1
|
+
import{cQ as l,cU as e,bN as h,av as r,ex as b,au as t,bK as p,bM as d,aK as c,bO as m,cS as v,ey as E,ez as I,eA as w,cr as x,dD as T,eB as z,eC as C,eD as A,c6 as B,eE as O,cI as V,eF as W,eG as $,eH as K,eI as F,cE as J,cs as Z,cB as j,cC as Q,cD as Y,cu as G,cA as X,ct as ee,cM as te}from"./index-BOGZM7Pw.js";import{P as oe}from"./use-mcp-client-9jF2B0Tz.js";(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(o,s)=>(typeof require<"u"?require:o)[s]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});class se extends oe{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(o,s){}_ensureEventSlot(o){let s=this._eventSlots.get(o);if(!s){let i=this.eventSchemas[o];if(!i)throw Error(`Unknown event: ${String(o)}`);s={listeners:[]},this._eventSlots.set(o,s);let a=i.shape.method.value;this._registeredMethods.add(a);let u=s;super.setNotificationHandler(i,g=>{let R=g.params;this.onEventDispatch(o,R),u.onHandler?.(R);for(let D of[...u.listeners])D(R)})}return s}setEventHandler(o,s){let i=this._ensureEventSlot(o);i.onHandler&&s&&console.warn(`[MCP Apps] on${String(o)} handler replaced. Use addEventListener("${String(o)}", …) to add multiple listeners without replacing.`),i.onHandler=s}getEventHandler(o){return this._eventSlots.get(o)?.onHandler}addEventListener(o,s){this._ensureEventSlot(o).listeners.push(s)}removeEventListener(o,s){let i=this._eventSlots.get(o);if(!i)return;let a=i.listeners.indexOf(s);a!==-1&&i.listeners.splice(a,1)}setRequestHandler=(o,s)=>{this._assertMethodNotRegistered(o,"setRequestHandler"),super.setRequestHandler(o,s)};setNotificationHandler=(o,s)=>{this._assertMethodNotRegistered(o,"setNotificationHandler"),super.setNotificationHandler(o,s)};warnIfRequestHandlerReplaced(o,s,i){s&&i&&console.warn(`[MCP Apps] ${o} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(o,s)=>{let i=o.shape.method.value;this._registeredMethods.add(i),super.setRequestHandler(o,s)};_assertMethodNotRegistered(o,s){let i=o.shape.method.value;if(this._registeredMethods.has(i))throw Error(`Handler for "${i}" already registered (via ${s}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(i)}}var L="2026-01-26",ie="ui/notifications/tool-input-partial",re=l([e("light"),e("dark")]).describe("Color theme preference for the host environment."),f=l([e("inline"),e("fullscreen"),e("pip")]).describe("Display mode for UI presentation."),ae=l([e("--color-background-primary"),e("--color-background-secondary"),e("--color-background-tertiary"),e("--color-background-inverse"),e("--color-background-ghost"),e("--color-background-info"),e("--color-background-danger"),e("--color-background-success"),e("--color-background-warning"),e("--color-background-disabled"),e("--color-text-primary"),e("--color-text-secondary"),e("--color-text-tertiary"),e("--color-text-inverse"),e("--color-text-ghost"),e("--color-text-info"),e("--color-text-danger"),e("--color-text-success"),e("--color-text-warning"),e("--color-text-disabled"),e("--color-border-primary"),e("--color-border-secondary"),e("--color-border-tertiary"),e("--color-border-inverse"),e("--color-border-ghost"),e("--color-border-info"),e("--color-border-danger"),e("--color-border-success"),e("--color-border-warning"),e("--color-border-disabled"),e("--color-ring-primary"),e("--color-ring-secondary"),e("--color-ring-inverse"),e("--color-ring-info"),e("--color-ring-danger"),e("--color-ring-success"),e("--color-ring-warning"),e("--font-sans"),e("--font-mono"),e("--font-weight-normal"),e("--font-weight-medium"),e("--font-weight-semibold"),e("--font-weight-bold"),e("--font-text-xs-size"),e("--font-text-sm-size"),e("--font-text-md-size"),e("--font-text-lg-size"),e("--font-heading-xs-size"),e("--font-heading-sm-size"),e("--font-heading-md-size"),e("--font-heading-lg-size"),e("--font-heading-xl-size"),e("--font-heading-2xl-size"),e("--font-heading-3xl-size"),e("--font-text-xs-line-height"),e("--font-text-sm-line-height"),e("--font-text-md-line-height"),e("--font-text-lg-line-height"),e("--font-heading-xs-line-height"),e("--font-heading-sm-line-height"),e("--font-heading-md-line-height"),e("--font-heading-lg-line-height"),e("--font-heading-xl-line-height"),e("--font-heading-2xl-line-height"),e("--font-heading-3xl-line-height"),e("--border-radius-xs"),e("--border-radius-sm"),e("--border-radius-md"),e("--border-radius-lg"),e("--border-radius-xl"),e("--border-radius-full"),e("--border-width-regular"),e("--shadow-hairline"),e("--shadow-sm"),e("--shadow-md"),e("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),ne=h(ae.describe(`Style variables for theming MCP apps.
|
|
2
2
|
|
|
3
3
|
Individual style keys are optional - hosts may provide any subset of these values.
|
|
4
4
|
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
@@ -36,7 +36,7 @@ Boolean requesting whether a visible border and background is provided by the ho
|
|
|
36
36
|
- omitted: host decides border`)});var P=t({method:e("ui/request-display-mode"),params:t({mode:f.describe("The display mode being requested.")})});t({mode:f.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough();var ye=l([e("model"),e("app")]).describe("Tool visibility scope - who can access the tool.");t({resourceUri:r().optional(),visibility:d(ye).optional().describe(`Who can access this tool. Default: ["model", "app"]
|
|
37
37
|
- "model": Tool visible to and callable by the agent
|
|
38
38
|
- "app": Tool callable by the app from this server only`),csp:v().optional(),permissions:v().optional()});t({mimeTypes:d(r()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')});var ve=t({method:e("ui/download-file"),params:t({contents:d(l([E,I])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})}),xe=t({method:e("ui/message"),params:t({role:e("user").describe('Message role, currently only "user" is supported.'),content:d(w).describe("Message content blocks (text, image, etc.).")})});t({method:e("ui/notifications/sandbox-resource-ready"),params:t({html:r().describe("HTML content to load into the inner iframe."),sandbox:r().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:_.optional().describe("CSP configuration from resource metadata."),permissions:S.optional().describe("Sandbox permissions from resource metadata.")})});t({method:e("ui/notifications/tool-result"),params:x.describe("Standard MCP tool execution result.")});var N=t({toolInfo:t({id:z.optional().describe("JSON-RPC id of the tools/call request."),tool:T.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:re.optional().describe("Current color theme preference."),styles:he.optional().describe("Style configuration for theming the app."),displayMode:f.optional().describe("How the UI is currently displayed."),availableDisplayModes:d(f).optional().describe("Display modes the host supports."),containerDimensions:l([t({height:c().describe("Fixed container height in pixels.")}),t({maxHeight:l([c(),b()]).optional().describe("Maximum container height in pixels.")})]).and(l([t({width:c().describe("Fixed container width in pixels.")}),t({maxWidth:l([c(),b()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
|
|
39
|
-
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:r().optional().describe("User's language and region preference in BCP 47 format."),timeZone:r().optional().describe("User's timezone in IANA format."),userAgent:r().optional().describe("Host application identifier."),platform:l([e("web"),e("desktop"),e("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:t({touch:p().optional().describe("Whether the device supports touch input."),hover:p().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:t({top:c().describe("Top safe area inset in pixels."),right:c().describe("Right safe area inset in pixels."),bottom:c().describe("Bottom safe area inset in pixels."),left:c().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough();t({method:e("ui/notifications/host-context-changed"),params:N.describe("Partial context update containing only changed fields.")});var we=t({method:e("ui/update-model-context"),params:t({content:d(w).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:h(r(),m().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})}),Ce=t({method:e("ui/initialize"),params:t({appInfo:C.describe("App identification (name and version)."),appCapabilities:be.describe("Features and capabilities this app provides."),protocolVersion:r().describe("Protocol version this app supports.")})});t({protocolVersion:r().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:C.describe("Host application identification and version."),hostCapabilities:ge.describe("Features and capabilities provided by the host."),hostContext:N.describe("Rich context about the host environment.")}).passthrough();class Ue{eventTarget;eventSource;messageListener;constructor(o=window.parent,s){this.eventTarget=o,this.eventSource=s,this.messageListener=i=>{if(s&&i.source!==this.eventSource){console.debug("Ignoring message from unknown source",i);return}let a=te.safeParse(i.data);a.success?(console.debug("Parsed message",a.data),this.onmessage?.(a.data)):i.data?.jsonrpc!=="2.0"?console.debug("Ignoring non-JSON-RPC message",a.error.message,i):(console.error("Failed to parse message",a.error.message,i),this.onerror?.(Error("Invalid JSON-RPC message received: "+a.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(o,s){o.method!==ie&&console.debug("Sending message",o),this.eventTarget.postMessage(o,"*")}async close(){window.removeEventListener("message",this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion}var Re="ui/resourceUri";function _e(n){let o=n._meta?.ui?.resourceUri;if(o===void 0&&(o=n._meta?.[Re]),typeof o=="string"&&o.startsWith("ui://"))return o;if(o!==void 0)throw Error(`Invalid UI resource URI: ${JSON.stringify(o)}`)}var Se=[L];class Ae extends se{_client;_hostInfo;_capabilities;_appCapabilities;_hostContext={};_appInfo;_initializedReceived=!1;_baseReplaceRequestHandler=this.replaceRequestHandler;replaceRequestHandler=(o,s)=>{this._baseReplaceRequestHandler(o,(i,a)=>(this._initializedReceived||console.warn(`[ext-apps] AppBridge received '${i.method}' before ui/notifications/initialized. The View is calling host methods before completing the handshake; it should await app.connect() first.`),s(i,a)))};eventSchemas={sizechange:ce,sandboxready:de,initialized:fe,requestteardown:me,loggingmessage:D};constructor(o,s,i,a){super(a),this._client=o,this._hostInfo=s,this._capabilities=i,this.addEventListener("initialized",()=>{this._initializedReceived=!0}),this._hostContext=a?.hostContext||{},this.setRequestHandler(Ce,u=>this._oninitialize(u)),this.setRequestHandler(B,(u,g)=>(this.onping?.(u.params,g),{})),this.replaceRequestHandler(P,u=>({mode:this._hostContext.displayMode??"inline"}))}getAppCapabilities(){return this._appCapabilities}getAppVersion(){return this._appInfo}onping;get onsizechange(){return this.getEventHandler("sizechange")}set onsizechange(o){this.setEventHandler("sizechange",o)}get onsandboxready(){return this.getEventHandler("sandboxready")}set onsandboxready(o){this.setEventHandler("sandboxready",o)}get oninitialized(){return this.getEventHandler("initialized")}set oninitialized(o){this.setEventHandler("initialized",o)}_onmessage;get onmessage(){return this._onmessage}set onmessage(o){this.warnIfRequestHandlerReplaced("onmessage",this._onmessage,o),this._onmessage=o,this.replaceRequestHandler(xe,async(s,i)=>{if(!this._onmessage)throw Error("No onmessage handler set");return this._onmessage(s.params,i)})}_onopenlink;get onopenlink(){return this._onopenlink}set onopenlink(o){this.warnIfRequestHandlerReplaced("onopenlink",this._onopenlink,o),this._onopenlink=o,this.replaceRequestHandler(le,async(s,i)=>{if(!this._onopenlink)throw Error("No onopenlink handler set");return this._onopenlink(s.params,i)})}_ondownloadfile;get ondownloadfile(){return this._ondownloadfile}set ondownloadfile(o){this.warnIfRequestHandlerReplaced("ondownloadfile",this._ondownloadfile,o),this._ondownloadfile=o,this.replaceRequestHandler(ve,async(s,i)=>{if(!this._ondownloadfile)throw Error("No ondownloadfile handler set");return this._ondownloadfile(s.params,i)})}get onrequestteardown(){return this.getEventHandler("requestteardown")}set onrequestteardown(o){this.setEventHandler("requestteardown",o)}_onrequestdisplaymode;get onrequestdisplaymode(){return this._onrequestdisplaymode}set onrequestdisplaymode(o){this.warnIfRequestHandlerReplaced("onrequestdisplaymode",this._onrequestdisplaymode,o),this._onrequestdisplaymode=o,this.replaceRequestHandler(P,async(s,i)=>{if(!this._onrequestdisplaymode)throw Error("No onrequestdisplaymode handler set");return this._onrequestdisplaymode(s.params,i)})}get onloggingmessage(){return this.getEventHandler("loggingmessage")}set onloggingmessage(o){this.setEventHandler("loggingmessage",o)}_onupdatemodelcontext;get onupdatemodelcontext(){return this._onupdatemodelcontext}set onupdatemodelcontext(o){this.warnIfRequestHandlerReplaced("onupdatemodelcontext",this._onupdatemodelcontext,o),this._onupdatemodelcontext=o,this.replaceRequestHandler(we,async(s,i)=>{if(!this._onupdatemodelcontext)throw Error("No onupdatemodelcontext handler set");return this._onupdatemodelcontext(s.params,i)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(o){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,o),this._oncalltool=o,this.replaceRequestHandler(O,async(s,i)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(s.params,i)})}set oncreatesamplingmessage(o){this.setRequestHandler(V,async(s,i)=>o(s.params,i))}sendToolListChanged(o={}){return this.notification({method:"notifications/tools/list_changed",params:o})}_onlistresources;get onlistresources(){return this._onlistresources}set onlistresources(o){this.warnIfRequestHandlerReplaced("onlistresources",this._onlistresources,o),this._onlistresources=o,this.replaceRequestHandler(W,async(s,i)=>{if(!this._onlistresources)throw Error("No onlistresources handler set");return this._onlistresources(s.params,i)})}_onlistresourcetemplates;get onlistresourcetemplates(){return this._onlistresourcetemplates}set onlistresourcetemplates(o){this.warnIfRequestHandlerReplaced("onlistresourcetemplates",this._onlistresourcetemplates,o),this._onlistresourcetemplates=o,this.replaceRequestHandler($,async(s,i)=>{if(!this._onlistresourcetemplates)throw Error("No onlistresourcetemplates handler set");return this._onlistresourcetemplates(s.params,i)})}_onreadresource;get onreadresource(){return this._onreadresource}set onreadresource(o){this.warnIfRequestHandlerReplaced("onreadresource",this._onreadresource,o),this._onreadresource=o,this.replaceRequestHandler(K,async(s,i)=>{if(!this._onreadresource)throw Error("No onreadresource handler set");return this._onreadresource(s.params,i)})}sendResourceListChanged(o={}){return this.notification({method:"notifications/resources/list_changed",params:o})}_onlistprompts;get onlistprompts(){return this._onlistprompts}set onlistprompts(o){this.warnIfRequestHandlerReplaced("onlistprompts",this._onlistprompts,o),this._onlistprompts=o,this.replaceRequestHandler(F,async(s,i)=>{if(!this._onlistprompts)throw Error("No onlistprompts handler set");return this._onlistprompts(s.params,i)})}sendPromptListChanged(o={}){return this.notification({method:"notifications/prompts/list_changed",params:o})}assertCapabilityForMethod(o){}assertRequestHandlerCapability(o){}assertNotificationCapability(o){}assertTaskCapability(o){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(o){throw Error("Task handlers are not supported in MCP Apps")}getCapabilities(){return this._capabilities}async _oninitialize(o){let s=o.params.protocolVersion;return this._appInfo!==void 0&&console.warn("[ext-apps] AppBridge received a second ui/initialize. The View may be double-mounting (e.g. React StrictMode in dev) without closing the previous App instance. Responding normally; the latest appInfo/appCapabilities replace the previous values."),this._appCapabilities=o.params.appCapabilities,this._appInfo=o.params.appInfo,{protocolVersion:Se.includes(s)?s:L,hostCapabilities:this.getCapabilities(),hostInfo:this._hostInfo,hostContext:this._hostContext}}setHostContext(o){let s={},i=!1;for(let a of Object.keys(o)){let u=this._hostContext[a],g=o[a];He(u,g)||(s[a]=g,i=!0)}i&&(this._hostContext=o,this.sendHostContextChange(s))}sendHostContextChange(o){return this.notification({method:"ui/notifications/host-context-changed",params:o})}sendToolInput(o){return this.notification({method:"ui/notifications/tool-input",params:o})}sendToolInputPartial(o){return this.notification({method:"ui/notifications/tool-input-partial",params:o})}sendToolResult(o){return this.notification({method:"ui/notifications/tool-result",params:o})}sendToolCancelled(o){return this.notification({method:"ui/notifications/tool-cancelled",params:o})}sendSandboxResourceReady(o){return this.notification({method:"ui/notifications/sandbox-resource-ready",params:o})}teardownResource(o,s){return this.request({method:"ui/resource-teardown",params:o},ue,s)}sendResourceTeardown=this.teardownResource;callTool(o,s){return this.request({method:"tools/call",params:o},x,s)}listTools(o,s){return this.request({method:"tools/list",params:o},J,s)}async connect(o){if(this.transport)throw Error("AppBridge is already connected. Call close() before connecting again.");if(this._initializedReceived=!1,this._client){let s=this._client.getServerCapabilities();if(!s)throw Error("Client server capabilities not available");s.tools&&(this.oncalltool=async(i,a)=>this._client.request({method:"tools/call",params:i},x,{signal:a.signal}),s.tools.listChanged&&this._client.setNotificationHandler(Z,i=>this.sendToolListChanged(i.params))),s.resources&&(this.onlistresources=async(i,a)=>this._client.request({method:"resources/list",params:i},j,{signal:a.signal}),this.onlistresourcetemplates=async(i,a)=>this._client.request({method:"resources/templates/list",params:i},Q,{signal:a.signal}),this.onreadresource=async(i,a)=>this._client.request({method:"resources/read",params:i},Y,{signal:a.signal}),s.resources.listChanged&&this._client.setNotificationHandler(G,i=>this.sendResourceListChanged(i.params))),s.prompts&&(this.onlistprompts=async(i,a)=>this._client.request({method:"prompts/list",params:i},X,{signal:a.signal}),s.prompts.listChanged&&this._client.setNotificationHandler(ee,i=>this.sendPromptListChanged(i.params)))}return super.connect(o)}}function He(n,o){return JSON.stringify(n)===JSON.stringify(o)}(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(o,s)=>(typeof require<"u"?require:o)[s]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var qe=l([e("light"),e("dark")]).describe("Color theme preference for the host environment."),y=l([e("inline"),e("fullscreen"),e("pip")]).describe("Display mode for UI presentation."),ke=l([e("--color-background-primary"),e("--color-background-secondary"),e("--color-background-tertiary"),e("--color-background-inverse"),e("--color-background-ghost"),e("--color-background-info"),e("--color-background-danger"),e("--color-background-success"),e("--color-background-warning"),e("--color-background-disabled"),e("--color-text-primary"),e("--color-text-secondary"),e("--color-text-tertiary"),e("--color-text-inverse"),e("--color-text-ghost"),e("--color-text-info"),e("--color-text-danger"),e("--color-text-success"),e("--color-text-warning"),e("--color-text-disabled"),e("--color-border-primary"),e("--color-border-secondary"),e("--color-border-tertiary"),e("--color-border-inverse"),e("--color-border-ghost"),e("--color-border-info"),e("--color-border-danger"),e("--color-border-success"),e("--color-border-warning"),e("--color-border-disabled"),e("--color-ring-primary"),e("--color-ring-secondary"),e("--color-ring-inverse"),e("--color-ring-info"),e("--color-ring-danger"),e("--color-ring-success"),e("--color-ring-warning"),e("--font-sans"),e("--font-mono"),e("--font-weight-normal"),e("--font-weight-medium"),e("--font-weight-semibold"),e("--font-weight-bold"),e("--font-text-xs-size"),e("--font-text-sm-size"),e("--font-text-md-size"),e("--font-text-lg-size"),e("--font-heading-xs-size"),e("--font-heading-sm-size"),e("--font-heading-md-size"),e("--font-heading-lg-size"),e("--font-heading-xl-size"),e("--font-heading-2xl-size"),e("--font-heading-3xl-size"),e("--font-text-xs-line-height"),e("--font-text-sm-line-height"),e("--font-text-md-line-height"),e("--font-text-lg-line-height"),e("--font-heading-xs-line-height"),e("--font-heading-sm-line-height"),e("--font-heading-md-line-height"),e("--font-heading-lg-line-height"),e("--font-heading-xl-line-height"),e("--font-heading-2xl-line-height"),e("--font-heading-3xl-line-height"),e("--border-radius-xs"),e("--border-radius-sm"),e("--border-radius-md"),e("--border-radius-lg"),e("--border-radius-xl"),e("--border-radius-full"),e("--border-width-regular"),e("--shadow-hairline"),e("--shadow-sm"),e("--shadow-md"),e("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),Pe=h(ke.describe(`Style variables for theming MCP apps.
|
|
39
|
+
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:r().optional().describe("User's language and region preference in BCP 47 format."),timeZone:r().optional().describe("User's timezone in IANA format."),userAgent:r().optional().describe("Host application identifier."),platform:l([e("web"),e("desktop"),e("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:t({touch:p().optional().describe("Whether the device supports touch input."),hover:p().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:t({top:c().describe("Top safe area inset in pixels."),right:c().describe("Right safe area inset in pixels."),bottom:c().describe("Bottom safe area inset in pixels."),left:c().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough();t({method:e("ui/notifications/host-context-changed"),params:N.describe("Partial context update containing only changed fields.")});var we=t({method:e("ui/update-model-context"),params:t({content:d(w).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:h(r(),m().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})}),Ce=t({method:e("ui/initialize"),params:t({appInfo:C.describe("App identification (name and version)."),appCapabilities:be.describe("Features and capabilities this app provides."),protocolVersion:r().describe("Protocol version this app supports.")})});t({protocolVersion:r().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:C.describe("Host application identification and version."),hostCapabilities:ge.describe("Features and capabilities provided by the host."),hostContext:N.describe("Rich context about the host environment.")}).passthrough();class Ue{eventTarget;eventSource;messageListener;constructor(o=window.parent,s){this.eventTarget=o,this.eventSource=s,this.messageListener=i=>{if(s&&i.source!==this.eventSource){console.debug("Ignoring message from unknown source",i);return}let a=te.safeParse(i.data);a.success?(console.debug("Parsed message",a.data),this.onmessage?.(a.data)):i.data?.jsonrpc!=="2.0"?console.debug("Ignoring non-JSON-RPC message",a.error.message,i):(console.error("Failed to parse message",a.error.message,i),this.onerror?.(Error("Invalid JSON-RPC message received: "+a.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(o,s){o.method!==ie&&console.debug("Sending message",o),this.eventTarget.postMessage(o,"*")}async close(){window.removeEventListener("message",this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion}var Re="ui/resourceUri";function _e(n){let o=n._meta?.ui?.resourceUri;if(o===void 0&&(o=n._meta?.[Re]),typeof o=="string"&&o.startsWith("ui://"))return o;if(o!==void 0)throw Error(`Invalid UI resource URI: ${JSON.stringify(o)}`)}var Se=[L];class De extends se{_client;_hostInfo;_capabilities;_appCapabilities;_hostContext={};_appInfo;_initializedReceived=!1;_baseReplaceRequestHandler=this.replaceRequestHandler;replaceRequestHandler=(o,s)=>{this._baseReplaceRequestHandler(o,(i,a)=>(this._initializedReceived||console.warn(`[ext-apps] AppBridge received '${i.method}' before ui/notifications/initialized. The View is calling host methods before completing the handshake; it should await app.connect() first.`),s(i,a)))};eventSchemas={sizechange:ce,sandboxready:de,initialized:fe,requestteardown:me,loggingmessage:A};constructor(o,s,i,a){super(a),this._client=o,this._hostInfo=s,this._capabilities=i,this.addEventListener("initialized",()=>{this._initializedReceived=!0}),this._hostContext=a?.hostContext||{},this.setRequestHandler(Ce,u=>this._oninitialize(u)),this.setRequestHandler(B,(u,g)=>(this.onping?.(u.params,g),{})),this.replaceRequestHandler(P,u=>({mode:this._hostContext.displayMode??"inline"}))}getAppCapabilities(){return this._appCapabilities}getAppVersion(){return this._appInfo}onping;get onsizechange(){return this.getEventHandler("sizechange")}set onsizechange(o){this.setEventHandler("sizechange",o)}get onsandboxready(){return this.getEventHandler("sandboxready")}set onsandboxready(o){this.setEventHandler("sandboxready",o)}get oninitialized(){return this.getEventHandler("initialized")}set oninitialized(o){this.setEventHandler("initialized",o)}_onmessage;get onmessage(){return this._onmessage}set onmessage(o){this.warnIfRequestHandlerReplaced("onmessage",this._onmessage,o),this._onmessage=o,this.replaceRequestHandler(xe,async(s,i)=>{if(!this._onmessage)throw Error("No onmessage handler set");return this._onmessage(s.params,i)})}_onopenlink;get onopenlink(){return this._onopenlink}set onopenlink(o){this.warnIfRequestHandlerReplaced("onopenlink",this._onopenlink,o),this._onopenlink=o,this.replaceRequestHandler(le,async(s,i)=>{if(!this._onopenlink)throw Error("No onopenlink handler set");return this._onopenlink(s.params,i)})}_ondownloadfile;get ondownloadfile(){return this._ondownloadfile}set ondownloadfile(o){this.warnIfRequestHandlerReplaced("ondownloadfile",this._ondownloadfile,o),this._ondownloadfile=o,this.replaceRequestHandler(ve,async(s,i)=>{if(!this._ondownloadfile)throw Error("No ondownloadfile handler set");return this._ondownloadfile(s.params,i)})}get onrequestteardown(){return this.getEventHandler("requestteardown")}set onrequestteardown(o){this.setEventHandler("requestteardown",o)}_onrequestdisplaymode;get onrequestdisplaymode(){return this._onrequestdisplaymode}set onrequestdisplaymode(o){this.warnIfRequestHandlerReplaced("onrequestdisplaymode",this._onrequestdisplaymode,o),this._onrequestdisplaymode=o,this.replaceRequestHandler(P,async(s,i)=>{if(!this._onrequestdisplaymode)throw Error("No onrequestdisplaymode handler set");return this._onrequestdisplaymode(s.params,i)})}get onloggingmessage(){return this.getEventHandler("loggingmessage")}set onloggingmessage(o){this.setEventHandler("loggingmessage",o)}_onupdatemodelcontext;get onupdatemodelcontext(){return this._onupdatemodelcontext}set onupdatemodelcontext(o){this.warnIfRequestHandlerReplaced("onupdatemodelcontext",this._onupdatemodelcontext,o),this._onupdatemodelcontext=o,this.replaceRequestHandler(we,async(s,i)=>{if(!this._onupdatemodelcontext)throw Error("No onupdatemodelcontext handler set");return this._onupdatemodelcontext(s.params,i)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(o){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,o),this._oncalltool=o,this.replaceRequestHandler(O,async(s,i)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(s.params,i)})}set oncreatesamplingmessage(o){this.setRequestHandler(V,async(s,i)=>o(s.params,i))}sendToolListChanged(o={}){return this.notification({method:"notifications/tools/list_changed",params:o})}_onlistresources;get onlistresources(){return this._onlistresources}set onlistresources(o){this.warnIfRequestHandlerReplaced("onlistresources",this._onlistresources,o),this._onlistresources=o,this.replaceRequestHandler(W,async(s,i)=>{if(!this._onlistresources)throw Error("No onlistresources handler set");return this._onlistresources(s.params,i)})}_onlistresourcetemplates;get onlistresourcetemplates(){return this._onlistresourcetemplates}set onlistresourcetemplates(o){this.warnIfRequestHandlerReplaced("onlistresourcetemplates",this._onlistresourcetemplates,o),this._onlistresourcetemplates=o,this.replaceRequestHandler($,async(s,i)=>{if(!this._onlistresourcetemplates)throw Error("No onlistresourcetemplates handler set");return this._onlistresourcetemplates(s.params,i)})}_onreadresource;get onreadresource(){return this._onreadresource}set onreadresource(o){this.warnIfRequestHandlerReplaced("onreadresource",this._onreadresource,o),this._onreadresource=o,this.replaceRequestHandler(K,async(s,i)=>{if(!this._onreadresource)throw Error("No onreadresource handler set");return this._onreadresource(s.params,i)})}sendResourceListChanged(o={}){return this.notification({method:"notifications/resources/list_changed",params:o})}_onlistprompts;get onlistprompts(){return this._onlistprompts}set onlistprompts(o){this.warnIfRequestHandlerReplaced("onlistprompts",this._onlistprompts,o),this._onlistprompts=o,this.replaceRequestHandler(F,async(s,i)=>{if(!this._onlistprompts)throw Error("No onlistprompts handler set");return this._onlistprompts(s.params,i)})}sendPromptListChanged(o={}){return this.notification({method:"notifications/prompts/list_changed",params:o})}assertCapabilityForMethod(o){}assertRequestHandlerCapability(o){}assertNotificationCapability(o){}assertTaskCapability(o){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(o){throw Error("Task handlers are not supported in MCP Apps")}getCapabilities(){return this._capabilities}async _oninitialize(o){let s=o.params.protocolVersion;return this._appInfo!==void 0&&console.warn("[ext-apps] AppBridge received a second ui/initialize. The View may be double-mounting (e.g. React StrictMode in dev) without closing the previous App instance. Responding normally; the latest appInfo/appCapabilities replace the previous values."),this._appCapabilities=o.params.appCapabilities,this._appInfo=o.params.appInfo,{protocolVersion:Se.includes(s)?s:L,hostCapabilities:this.getCapabilities(),hostInfo:this._hostInfo,hostContext:this._hostContext}}setHostContext(o){let s={},i=!1;for(let a of Object.keys(o)){let u=this._hostContext[a],g=o[a];He(u,g)||(s[a]=g,i=!0)}i&&(this._hostContext=o,this.sendHostContextChange(s))}sendHostContextChange(o){return this.notification({method:"ui/notifications/host-context-changed",params:o})}sendToolInput(o){return this.notification({method:"ui/notifications/tool-input",params:o})}sendToolInputPartial(o){return this.notification({method:"ui/notifications/tool-input-partial",params:o})}sendToolResult(o){return this.notification({method:"ui/notifications/tool-result",params:o})}sendToolCancelled(o){return this.notification({method:"ui/notifications/tool-cancelled",params:o})}sendSandboxResourceReady(o){return this.notification({method:"ui/notifications/sandbox-resource-ready",params:o})}teardownResource(o,s){return this.request({method:"ui/resource-teardown",params:o},ue,s)}sendResourceTeardown=this.teardownResource;callTool(o,s){return this.request({method:"tools/call",params:o},x,s)}listTools(o,s){return this.request({method:"tools/list",params:o},J,s)}async connect(o){if(this.transport)throw Error("AppBridge is already connected. Call close() before connecting again.");if(this._initializedReceived=!1,this._client){let s=this._client.getServerCapabilities();if(!s)throw Error("Client server capabilities not available");s.tools&&(this.oncalltool=async(i,a)=>this._client.request({method:"tools/call",params:i},x,{signal:a.signal}),s.tools.listChanged&&this._client.setNotificationHandler(Z,i=>this.sendToolListChanged(i.params))),s.resources&&(this.onlistresources=async(i,a)=>this._client.request({method:"resources/list",params:i},j,{signal:a.signal}),this.onlistresourcetemplates=async(i,a)=>this._client.request({method:"resources/templates/list",params:i},Q,{signal:a.signal}),this.onreadresource=async(i,a)=>this._client.request({method:"resources/read",params:i},Y,{signal:a.signal}),s.resources.listChanged&&this._client.setNotificationHandler(G,i=>this.sendResourceListChanged(i.params))),s.prompts&&(this.onlistprompts=async(i,a)=>this._client.request({method:"prompts/list",params:i},X,{signal:a.signal}),s.prompts.listChanged&&this._client.setNotificationHandler(ee,i=>this.sendPromptListChanged(i.params)))}return super.connect(o)}}function He(n,o){return JSON.stringify(n)===JSON.stringify(o)}(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(o,s)=>(typeof require<"u"?require:o)[s]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var qe=l([e("light"),e("dark")]).describe("Color theme preference for the host environment."),y=l([e("inline"),e("fullscreen"),e("pip")]).describe("Display mode for UI presentation."),ke=l([e("--color-background-primary"),e("--color-background-secondary"),e("--color-background-tertiary"),e("--color-background-inverse"),e("--color-background-ghost"),e("--color-background-info"),e("--color-background-danger"),e("--color-background-success"),e("--color-background-warning"),e("--color-background-disabled"),e("--color-text-primary"),e("--color-text-secondary"),e("--color-text-tertiary"),e("--color-text-inverse"),e("--color-text-ghost"),e("--color-text-info"),e("--color-text-danger"),e("--color-text-success"),e("--color-text-warning"),e("--color-text-disabled"),e("--color-border-primary"),e("--color-border-secondary"),e("--color-border-tertiary"),e("--color-border-inverse"),e("--color-border-ghost"),e("--color-border-info"),e("--color-border-danger"),e("--color-border-success"),e("--color-border-warning"),e("--color-border-disabled"),e("--color-ring-primary"),e("--color-ring-secondary"),e("--color-ring-inverse"),e("--color-ring-info"),e("--color-ring-danger"),e("--color-ring-success"),e("--color-ring-warning"),e("--font-sans"),e("--font-mono"),e("--font-weight-normal"),e("--font-weight-medium"),e("--font-weight-semibold"),e("--font-weight-bold"),e("--font-text-xs-size"),e("--font-text-sm-size"),e("--font-text-md-size"),e("--font-text-lg-size"),e("--font-heading-xs-size"),e("--font-heading-sm-size"),e("--font-heading-md-size"),e("--font-heading-lg-size"),e("--font-heading-xl-size"),e("--font-heading-2xl-size"),e("--font-heading-3xl-size"),e("--font-text-xs-line-height"),e("--font-text-sm-line-height"),e("--font-text-md-line-height"),e("--font-text-lg-line-height"),e("--font-heading-xs-line-height"),e("--font-heading-sm-line-height"),e("--font-heading-md-line-height"),e("--font-heading-lg-line-height"),e("--font-heading-xl-line-height"),e("--font-heading-2xl-line-height"),e("--font-heading-3xl-line-height"),e("--border-radius-xs"),e("--border-radius-sm"),e("--border-radius-md"),e("--border-radius-lg"),e("--border-radius-xl"),e("--border-radius-full"),e("--border-width-regular"),e("--shadow-hairline"),e("--shadow-sm"),e("--shadow-md"),e("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),Pe=h(ke.describe(`Style variables for theming MCP apps.
|
|
40
40
|
|
|
41
41
|
Individual style keys are optional - hosts may provide any subset of these values.
|
|
42
42
|
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
@@ -74,4 +74,4 @@ Boolean requesting whether a visible border and background is provided by the ho
|
|
|
74
74
|
- omitted: host decides border`)});t({method:e("ui/request-display-mode"),params:t({mode:y.describe("The display mode being requested.")})});t({mode:y.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough();var ze=l([e("model"),e("app")]).describe("Tool visibility scope - who can access the tool.");t({resourceUri:r().optional(),visibility:d(ze).optional().describe(`Who can access this tool. Default: ["model", "app"]
|
|
75
75
|
- "model": Tool visible to and callable by the agent
|
|
76
76
|
- "app": Tool callable by the app from this server only`),csp:v().optional(),permissions:v().optional()});t({mimeTypes:d(r()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')});t({method:e("ui/download-file"),params:t({contents:d(l([E,I])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})});t({method:e("ui/message"),params:t({role:e("user").describe('Message role, currently only "user" is supported.'),content:d(w).describe("Message content blocks (text, image, etc.).")})});t({method:e("ui/notifications/sandbox-resource-ready"),params:t({html:r().describe("HTML content to load into the inner iframe."),sandbox:r().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:H.optional().describe("CSP configuration from resource metadata."),permissions:q.optional().describe("Sandbox permissions from resource metadata.")})});t({method:e("ui/notifications/tool-result"),params:x.describe("Standard MCP tool execution result.")});var U=t({toolInfo:t({id:z.optional().describe("JSON-RPC id of the tools/call request."),tool:T.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:qe.optional().describe("Current color theme preference."),styles:Ee.optional().describe("Style configuration for theming the app."),displayMode:y.optional().describe("How the UI is currently displayed."),availableDisplayModes:d(y).optional().describe("Display modes the host supports."),containerDimensions:l([t({height:c().describe("Fixed container height in pixels.")}),t({maxHeight:l([c(),b()]).optional().describe("Maximum container height in pixels.")})]).and(l([t({width:c().describe("Fixed container width in pixels.")}),t({maxWidth:l([c(),b()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
|
|
77
|
-
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:r().optional().describe("User's language and region preference in BCP 47 format."),timeZone:r().optional().describe("User's timezone in IANA format."),userAgent:r().optional().describe("Host application identifier."),platform:l([e("web"),e("desktop"),e("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:t({touch:p().optional().describe("Whether the device supports touch input."),hover:p().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:t({top:c().describe("Top safe area inset in pixels."),right:c().describe("Right safe area inset in pixels."),bottom:c().describe("Bottom safe area inset in pixels."),left:c().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough();t({method:e("ui/notifications/host-context-changed"),params:U.describe("Partial context update containing only changed fields.")});t({method:e("ui/update-model-context"),params:t({content:d(w).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:h(r(),m().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})});t({method:e("ui/initialize"),params:t({appInfo:C.describe("App identification (name and version)."),appCapabilities:Te.describe("Features and capabilities this app provides."),protocolVersion:r().describe("Protocol version this app supports.")})});t({protocolVersion:r().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:C.describe("Host application identification and version."),hostCapabilities:Ie.describe("Features and capabilities provided by the host."),hostContext:U.describe("Rich context about the host environment.")}).passthrough();function
|
|
77
|
+
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:r().optional().describe("User's language and region preference in BCP 47 format."),timeZone:r().optional().describe("User's timezone in IANA format."),userAgent:r().optional().describe("Host application identifier."),platform:l([e("web"),e("desktop"),e("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:t({touch:p().optional().describe("Whether the device supports touch input."),hover:p().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:t({top:c().describe("Top safe area inset in pixels."),right:c().describe("Right safe area inset in pixels."),bottom:c().describe("Bottom safe area inset in pixels."),left:c().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough();t({method:e("ui/notifications/host-context-changed"),params:U.describe("Partial context update containing only changed fields.")});t({method:e("ui/update-model-context"),params:t({content:d(w).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:h(r(),m().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})});t({method:e("ui/initialize"),params:t({appInfo:C.describe("App identification (name and version)."),appCapabilities:Te.describe("Features and capabilities this app provides."),protocolVersion:r().describe("Protocol version this app supports.")})});t({protocolVersion:r().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:C.describe("Host application identification and version."),hostCapabilities:Ie.describe("Features and capabilities provided by the host."),hostContext:U.describe("Rich context about the host environment.")}).passthrough();function Ae(){let n=document.documentElement.getAttribute("data-theme");return n==="dark"||n==="light"?n:document.documentElement.classList.contains("dark")?"dark":"light"}const Be={view:{minHeight:400,maxHeight:800},fullscreen:{minHeight:600,maxHeight:1200}};function Oe(n){if(!(n==null||typeof n!="object"))try{return _e({_meta:n})}catch{return}}export{Ae as C,De as D,Ue as E,Be as M,Oe as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as P,b as J,r as Q,j as t,l as B,q as V}from"./index-D7hYEfbN.js";import{u as X}from"./use-copy-DNeNHO02.js";import{M as Y}from"./markdown-DI9weIuO.js";import{i as ee}from"./Check-BhlN5Gfa.js";import{a as te}from"./Copy01-B7ecNUq1.js";import{b as A,T as z,a as G}from"./tooltip-Ch7JwSjZ.js";import{D as se}from"./agent-icon-1OqzsUAE.js";import{b as Z}from"./format-time-CjIPQhCN.js";import{c as H}from"./use-decopilot-events-Dz93drkG.js";import{y as K}from"./chat-context-SQR_HnrV.js";function he(T){const e=P.c(19),{id:s,part:l,copyable:j,extraActions:n,alwaysShowActions:p,animate:a}=T,f=j===void 0?!1:j,o=p===void 0?!1:p,i=a===void 0?!1:a,{handleCopy:m}=X(),x=J(),[r,N]=Q.useState(!1);let k;e[0]!==m||e[1]!==s||e[2]!==l.text?(k=async()=>{V("chat_message_copied",{message_id:s,chars:l.text.length}),await m(l.text),N(!0),setTimeout(()=>N(!1),2e3)},e[0]=m,e[1]=s,e[2]=l.text,e[3]=k):k=e[3];const b=k,d=f&&n,g=d||n;let u;e[4]!==i||e[5]!==s||e[6]!==l.text?(u=t.jsx(Y,{id:s,text:l.text,animate:i}),e[4]=i,e[5]=s,e[6]=l.text,e[7]=u):u=e[7];let c;e[8]!==o||e[9]!==n||e[10]!==b||e[11]!==r||e[12]!==g||e[13]!==d||e[14]!==x?(c=g&&t.jsxs("div",{className:B("flex w-full items-center gap-2 text-sm text-muted-foreground transition-all duration-200 mt-1 py-1",o?"opacity-100":"opacity-0 pointer-events-none group-hover/part:opacity-100 group-hover/part:pointer-events-auto"),children:[n,d&&n&&t.jsx("span",{className:"text-muted-foreground/40 select-none",children:"·"}),d&&t.jsx("button",{type:"button",onClick:b,className:"text-muted-foreground [@media(hover:hover)]:hover:text-foreground transition-colors active:scale-[0.97]","aria-label":x("chat.textPart.copyMessage"),children:r?t.jsx(ee,{className:"size-4"}):t.jsx(te,{className:"size-4"})})]}),e[8]=o,e[9]=n,e[10]=b,e[11]=r,e[12]=g,e[13]=d,e[14]=x,e[15]=c):c=e[15];let h;return e[16]!==u||e[17]!==c?(h=t.jsxs("div",{className:"group/part relative",children:[u,c]}),e[16]=u,e[17]=c,e[18]=h):h=e[18],h}const v=16,O=2.5,q=(v-O)/2,U=2*Math.PI*q;function ue(T){const e=P.c(29),{usage:s}=T,l=H();if(!s)return null;const{totalTokens:j,inputTokens:n,outputTokens:p}=s,a=l?s.cost:0;if(!j&&!n&&!p)return null;let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(se,{size:12}),e[0]=f):f=e[0];let o;e[1]!==a||e[2]!==j?(o=a>0?`$${a.toFixed(4)}`:j.toLocaleString(),e[1]=a,e[2]=j,e[3]=o):o=e[3];let i;e[4]!==o?(i=t.jsx(z,{asChild:!0,children:t.jsxs("span",{className:"inline-flex items-center text-muted-foreground [@media(hover:hover)]:hover:text-foreground pl-1 h-6 gap-1 whitespace-nowrap shrink-0 cursor-default",children:[f,t.jsx("span",{className:"text-sm font-mono tabular-nums",children:o})]})}),e[4]=o,e[5]=i):i=e[5];let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("p",{className:"text-muted text-[10px] mb-1",children:"tokens"}),e[6]=m):m=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("span",{className:"text-muted",children:"in"}),e[7]=x):x=e[7];let r;e[8]!==n?(r=n.toLocaleString(),e[8]=n,e[9]=r):r=e[9];let N;e[10]!==r?(N=t.jsx("span",{className:"text-right tabular-nums",children:r}),e[10]=r,e[11]=N):N=e[11];let k;e[12]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("span",{className:"text-muted",children:"out"}),e[12]=k):k=e[12];const b=p-(s.reasoningTokens??0);let d;e[13]!==b?(d=b.toLocaleString(),e[13]=b,e[14]=d):d=e[14];let g;e[15]!==d?(g=t.jsx("span",{className:"text-right tabular-nums",children:d}),e[15]=d,e[16]=g):g=e[16];let u;e[17]!==s?(u=(s.cacheReadTokens>0||s.cacheWriteTokens>0)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cache hit"}),t.jsx("span",{className:"text-right tabular-nums",children:`${(K(s)*100).toFixed(0)}%`})]}),e[17]=s,e[18]=u):u=e[18];let c;e[19]!==a?(c=a>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cost"}),t.jsxs("span",{className:"text-right tabular-nums",children:["$",a.toFixed(4)]})]}),e[19]=a,e[20]=c):c=e[20];let h;e[21]!==g||e[22]!==u||e[23]!==c||e[24]!==N?(h=t.jsxs(G,{side:"top",className:"font-mono text-[11px]",children:[m,t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[x,N,k,g,u,c]})]}),e[21]=g,e[22]=u,e[23]=c,e[24]=N,e[25]=h):h=e[25];let y;return e[26]!==h||e[27]!==i?(y=t.jsxs(A,{children:[i,h]}),e[26]=h,e[27]=i,e[28]=y):y=e[28],y}function pe(T){const e=P.c(19),{usage:s,duration:l}=T,j=H(),n=l!=null&&l>0,p=j&&s!=null&&(s.cost??0)>0,a=s!=null&&(s.totalTokens??0)>0;if(!n&&!p&&!a)return null;let f;e[0]!==l||e[1]!==n?(f=n?Z(l/1e3):null,e[0]=l,e[1]=n,e[2]=f):f=e[2];const o=f;let i;e[3]!==l||e[4]!==o||e[5]!==s?(i=o&&t.jsxs(A,{children:[t.jsx(z,{asChild:!0,children:t.jsx("span",{className:"tabular-nums text-sm font-mono text-muted-foreground cursor-default [@media(hover:hover)]:hover:text-foreground transition-colors select-none",children:o})}),t.jsxs(G,{side:"top",className:"font-mono text-[11px]",children:[t.jsx("p",{className:"opacity-60 text-[10px] mb-1",children:"thinking"}),t.jsx("span",{className:"tabular-nums",children:Z(l/1e3)}),(s?.reasoningTokens??0)>0&&t.jsxs("span",{className:"ml-2 opacity-50",children:[s.reasoningTokens.toLocaleString()," tok"]})]})]}),e[3]=l,e[4]=o,e[5]=s,e[6]=i):i=e[6];let m;e[7]!==p||e[8]!==n||e[9]!==a?(m=n&&(p||a)&&t.jsx("span",{className:"text-muted-foreground/40 select-none",children:"·"}),e[7]=p,e[8]=n,e[9]=a,e[10]=m):m=e[10];let x;e[11]!==p||e[12]!==a||e[13]!==s?(x=(p||a)&&t.jsxs(A,{children:[t.jsx(z,{asChild:!0,children:t.jsx("span",{className:"tabular-nums text-sm font-mono text-muted-foreground cursor-default [@media(hover:hover)]:hover:text-foreground transition-colors select-none",children:p?`$${s.cost.toFixed(4)}`:`${s.totalTokens.toLocaleString()} tok`})}),t.jsxs(G,{side:"top",className:"font-mono text-[11px]",children:[t.jsx("p",{className:"opacity-60 text-[10px] mb-1",children:"tokens"}),t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[t.jsx("span",{className:"opacity-60",children:"in"}),t.jsx("span",{className:"text-right tabular-nums",children:(s.inputTokens??0).toLocaleString()}),t.jsx("span",{className:"opacity-60",children:"out"}),t.jsx("span",{className:"text-right tabular-nums",children:((s.outputTokens??0)-(s?.reasoningTokens??0)).toLocaleString()}),(s?.reasoningTokens??0)>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"opacity-60",children:"think"}),t.jsx("span",{className:"text-right tabular-nums",children:s.reasoningTokens.toLocaleString()})]}),((s?.cacheReadTokens??0)>0||(s?.cacheWriteTokens??0)>0)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"opacity-60",children:"cache hit"}),t.jsx("span",{className:"text-right tabular-nums",children:`${(K(s)*100).toFixed(0)}%`})]})]})]})]}),e[11]=p,e[12]=a,e[13]=s,e[14]=x):x=e[14];let r;return e[15]!==i||e[16]!==m||e[17]!==x?(r=t.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[i,m,x]}),e[15]=i,e[16]=m,e[17]=x,e[18]=r):r=e[18],r}function fe(T){const e=P.c(52),{usage:s,totalTokens:l,contextWindow:j,onOpenContextPanel:n}=T,p=H(),a=Math.min(l/j*100,100),f=U-a/100*U,o=p?s?.cost??0:0,i=(s?.cost??0)>0,m=s?.inputTokens??0,x=s?.outputTokens??0;let r;e[0]!==a?(r=a.toFixed(0),e[0]=a,e[1]=r):r=e[1];let N;e[2]!==o?(N=o>0?`, $${o.toFixed(2)}`:"",e[2]=o,e[3]=N):N=e[3];const k=`Context usage: ${r}%${N}`,b=n?"cursor-pointer":"cursor-default";let d;e[4]!==b?(d=B("flex items-center gap-1.5 text-muted-foreground hover:text-foreground h-6 px-1 shrink-0",b),e[4]=b,e[5]=d):d=e[5];let g;e[6]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("circle",{cx:v/2,cy:v/2,r:q,fill:"none",stroke:"currentColor",strokeWidth:O,className:"opacity-15"}),e[6]=g):g=e[6];const u=a>90?"text-destructive":a>70?"text-warning":"text-muted-foreground";let c;e[7]!==u?(c=B(u),e[7]=u,e[8]=c):c=e[8];let h;e[9]!==f||e[10]!==c?(h=t.jsxs("svg",{width:v,height:v,className:"-rotate-90","aria-hidden":"true",children:[g,t.jsx("circle",{cx:v/2,cy:v/2,r:q,fill:"none",stroke:"currentColor",strokeWidth:O,strokeDasharray:U,strokeDashoffset:f,strokeLinecap:"round",className:c})]}),e[9]=f,e[10]=c,e[11]=h):h=e[11];let y;e[12]!==a?(y=a.toFixed(0),e[12]=a,e[13]=y):y=e[13];let S;e[14]!==o?(S=o>0?` · $${o.toFixed(2)}`:"",e[14]=o,e[15]=S):S=e[15];let C;e[16]!==y||e[17]!==S?(C=t.jsxs("span",{className:"inline-block overflow-hidden whitespace-nowrap max-w-0 opacity-0 transition-[max-width,opacity] duration-200 ease-out @[320px]/chat-bottom:max-w-32 @[320px]/chat-bottom:opacity-100 text-[11px] font-mono tabular-nums",children:[y,"%",S]}),e[16]=y,e[17]=S,e[18]=C):C=e[18];let w;e[19]!==n||e[20]!==C||e[21]!==k||e[22]!==d||e[23]!==h?(w=t.jsx(z,{asChild:!0,children:t.jsxs("button",{type:"button",onClick:n,"aria-label":k,className:d,children:[h,C]})}),e[19]=n,e[20]=C,e[21]=k,e[22]=d,e[23]=h,e[24]=w):w=e[24];let D;e[25]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx("span",{className:"text-muted",children:"context"}),e[25]=D):D=e[25];let _;e[26]!==l?(_=l.toLocaleString(),e[26]=l,e[27]=_):_=e[27];let $;e[28]!==j?($=j.toLocaleString(),e[28]=j,e[29]=$):$=e[29];let F;e[30]!==a?(F=a.toFixed(1),e[30]=a,e[31]=F):F=e[31];let L;e[32]!==_||e[33]!==$||e[34]!==F?(L=t.jsxs("span",{className:"text-right tabular-nums",children:[_," / ",$," (",F,"%)"]}),e[32]=_,e[33]=$,e[34]=F,e[35]=L):L=e[35];let R;e[36]!==o?(R=o>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cost"}),t.jsxs("span",{className:"text-right tabular-nums",children:["$",o.toFixed(4)]})]}),e[36]=o,e[37]=R):R=e[37];let M;e[38]!==i||e[39]!==m||e[40]!==x?(M=i&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"in"}),t.jsx("span",{className:"text-right tabular-nums",children:m.toLocaleString()}),t.jsx("span",{className:"text-muted",children:"out"}),t.jsx("span",{className:"text-right tabular-nums",children:x.toLocaleString()})]}),e[38]=i,e[39]=m,e[40]=x,e[41]=M):M=e[41];let I;e[42]!==s?(I=((s?.cacheReadTokens??0)>0||(s?.cacheWriteTokens??0)>0)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cache hit"}),t.jsx("span",{className:"text-right tabular-nums",children:`${(K(s)*100).toFixed(0)}%`})]}),e[42]=s,e[43]=I):I=e[43];let E;e[44]!==L||e[45]!==R||e[46]!==M||e[47]!==I?(E=t.jsx(G,{side:"top",className:"font-mono text-[11px]",children:t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[D,L,R,M,I]})}),e[44]=L,e[45]=R,e[46]=M,e[47]=I,e[48]=E):E=e[48];let W;return e[49]!==w||e[50]!==E?(W=t.jsxs(A,{children:[w,E]}),e[49]=w,e[50]=E,e[51]=W):W=e[51],W}export{he as M,fe as S,ue as a,pe as b};
|
|
1
|
+
import{c as P,b as J,r as Q,j as t,l as B,q as V}from"./index-BOGZM7Pw.js";import{u as X}from"./use-copy-BiyQhtNG.js";import{M as Y}from"./markdown-DNk_PyOf.js";import{i as ee}from"./Check-CcPSzxsY.js";import{a as te}from"./Copy01-ByHdq7k3.js";import{b as A,T as z,a as G}from"./tooltip-DoWVDYxv.js";import{D as se}from"./agent-icon-QobcC4y1.js";import{b as Z}from"./format-time-CjIPQhCN.js";import{c as H}from"./use-decopilot-events-DL6Ppxgb.js";import{y as K}from"./chat-context-BHWxNMFT.js";function he(T){const e=P.c(19),{id:s,part:l,copyable:j,extraActions:n,alwaysShowActions:p,animate:a}=T,f=j===void 0?!1:j,o=p===void 0?!1:p,i=a===void 0?!1:a,{handleCopy:m}=X(),x=J(),[r,N]=Q.useState(!1);let k;e[0]!==m||e[1]!==s||e[2]!==l.text?(k=async()=>{V("chat_message_copied",{message_id:s,chars:l.text.length}),await m(l.text),N(!0),setTimeout(()=>N(!1),2e3)},e[0]=m,e[1]=s,e[2]=l.text,e[3]=k):k=e[3];const b=k,d=f&&n,g=d||n;let u;e[4]!==i||e[5]!==s||e[6]!==l.text?(u=t.jsx(Y,{id:s,text:l.text,animate:i}),e[4]=i,e[5]=s,e[6]=l.text,e[7]=u):u=e[7];let c;e[8]!==o||e[9]!==n||e[10]!==b||e[11]!==r||e[12]!==g||e[13]!==d||e[14]!==x?(c=g&&t.jsxs("div",{className:B("flex w-full items-center gap-2 text-sm text-muted-foreground transition-all duration-200 mt-1 py-1",o?"opacity-100":"opacity-0 pointer-events-none group-hover/part:opacity-100 group-hover/part:pointer-events-auto"),children:[n,d&&n&&t.jsx("span",{className:"text-muted-foreground/40 select-none",children:"·"}),d&&t.jsx("button",{type:"button",onClick:b,className:"text-muted-foreground [@media(hover:hover)]:hover:text-foreground transition-colors active:scale-[0.97]","aria-label":x("chat.textPart.copyMessage"),children:r?t.jsx(ee,{className:"size-4"}):t.jsx(te,{className:"size-4"})})]}),e[8]=o,e[9]=n,e[10]=b,e[11]=r,e[12]=g,e[13]=d,e[14]=x,e[15]=c):c=e[15];let h;return e[16]!==u||e[17]!==c?(h=t.jsxs("div",{className:"group/part relative",children:[u,c]}),e[16]=u,e[17]=c,e[18]=h):h=e[18],h}const v=16,O=2.5,q=(v-O)/2,U=2*Math.PI*q;function ue(T){const e=P.c(29),{usage:s}=T,l=H();if(!s)return null;const{totalTokens:j,inputTokens:n,outputTokens:p}=s,a=l?s.cost:0;if(!j&&!n&&!p)return null;let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(se,{size:12}),e[0]=f):f=e[0];let o;e[1]!==a||e[2]!==j?(o=a>0?`$${a.toFixed(4)}`:j.toLocaleString(),e[1]=a,e[2]=j,e[3]=o):o=e[3];let i;e[4]!==o?(i=t.jsx(z,{asChild:!0,children:t.jsxs("span",{className:"inline-flex items-center text-muted-foreground [@media(hover:hover)]:hover:text-foreground pl-1 h-6 gap-1 whitespace-nowrap shrink-0 cursor-default",children:[f,t.jsx("span",{className:"text-sm font-mono tabular-nums",children:o})]})}),e[4]=o,e[5]=i):i=e[5];let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("p",{className:"text-muted text-[10px] mb-1",children:"tokens"}),e[6]=m):m=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("span",{className:"text-muted",children:"in"}),e[7]=x):x=e[7];let r;e[8]!==n?(r=n.toLocaleString(),e[8]=n,e[9]=r):r=e[9];let N;e[10]!==r?(N=t.jsx("span",{className:"text-right tabular-nums",children:r}),e[10]=r,e[11]=N):N=e[11];let k;e[12]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("span",{className:"text-muted",children:"out"}),e[12]=k):k=e[12];const b=p-(s.reasoningTokens??0);let d;e[13]!==b?(d=b.toLocaleString(),e[13]=b,e[14]=d):d=e[14];let g;e[15]!==d?(g=t.jsx("span",{className:"text-right tabular-nums",children:d}),e[15]=d,e[16]=g):g=e[16];let u;e[17]!==s?(u=(s.cacheReadTokens>0||s.cacheWriteTokens>0)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cache hit"}),t.jsx("span",{className:"text-right tabular-nums",children:`${(K(s)*100).toFixed(0)}%`})]}),e[17]=s,e[18]=u):u=e[18];let c;e[19]!==a?(c=a>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cost"}),t.jsxs("span",{className:"text-right tabular-nums",children:["$",a.toFixed(4)]})]}),e[19]=a,e[20]=c):c=e[20];let h;e[21]!==g||e[22]!==u||e[23]!==c||e[24]!==N?(h=t.jsxs(G,{side:"top",className:"font-mono text-[11px]",children:[m,t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[x,N,k,g,u,c]})]}),e[21]=g,e[22]=u,e[23]=c,e[24]=N,e[25]=h):h=e[25];let y;return e[26]!==h||e[27]!==i?(y=t.jsxs(A,{children:[i,h]}),e[26]=h,e[27]=i,e[28]=y):y=e[28],y}function pe(T){const e=P.c(19),{usage:s,duration:l}=T,j=H(),n=l!=null&&l>0,p=j&&s!=null&&(s.cost??0)>0,a=s!=null&&(s.totalTokens??0)>0;if(!n&&!p&&!a)return null;let f;e[0]!==l||e[1]!==n?(f=n?Z(l/1e3):null,e[0]=l,e[1]=n,e[2]=f):f=e[2];const o=f;let i;e[3]!==l||e[4]!==o||e[5]!==s?(i=o&&t.jsxs(A,{children:[t.jsx(z,{asChild:!0,children:t.jsx("span",{className:"tabular-nums text-sm font-mono text-muted-foreground cursor-default [@media(hover:hover)]:hover:text-foreground transition-colors select-none",children:o})}),t.jsxs(G,{side:"top",className:"font-mono text-[11px]",children:[t.jsx("p",{className:"opacity-60 text-[10px] mb-1",children:"thinking"}),t.jsx("span",{className:"tabular-nums",children:Z(l/1e3)}),(s?.reasoningTokens??0)>0&&t.jsxs("span",{className:"ml-2 opacity-50",children:[s.reasoningTokens.toLocaleString()," tok"]})]})]}),e[3]=l,e[4]=o,e[5]=s,e[6]=i):i=e[6];let m;e[7]!==p||e[8]!==n||e[9]!==a?(m=n&&(p||a)&&t.jsx("span",{className:"text-muted-foreground/40 select-none",children:"·"}),e[7]=p,e[8]=n,e[9]=a,e[10]=m):m=e[10];let x;e[11]!==p||e[12]!==a||e[13]!==s?(x=(p||a)&&t.jsxs(A,{children:[t.jsx(z,{asChild:!0,children:t.jsx("span",{className:"tabular-nums text-sm font-mono text-muted-foreground cursor-default [@media(hover:hover)]:hover:text-foreground transition-colors select-none",children:p?`$${s.cost.toFixed(4)}`:`${s.totalTokens.toLocaleString()} tok`})}),t.jsxs(G,{side:"top",className:"font-mono text-[11px]",children:[t.jsx("p",{className:"opacity-60 text-[10px] mb-1",children:"tokens"}),t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[t.jsx("span",{className:"opacity-60",children:"in"}),t.jsx("span",{className:"text-right tabular-nums",children:(s.inputTokens??0).toLocaleString()}),t.jsx("span",{className:"opacity-60",children:"out"}),t.jsx("span",{className:"text-right tabular-nums",children:((s.outputTokens??0)-(s?.reasoningTokens??0)).toLocaleString()}),(s?.reasoningTokens??0)>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"opacity-60",children:"think"}),t.jsx("span",{className:"text-right tabular-nums",children:s.reasoningTokens.toLocaleString()})]}),((s?.cacheReadTokens??0)>0||(s?.cacheWriteTokens??0)>0)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"opacity-60",children:"cache hit"}),t.jsx("span",{className:"text-right tabular-nums",children:`${(K(s)*100).toFixed(0)}%`})]})]})]})]}),e[11]=p,e[12]=a,e[13]=s,e[14]=x):x=e[14];let r;return e[15]!==i||e[16]!==m||e[17]!==x?(r=t.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[i,m,x]}),e[15]=i,e[16]=m,e[17]=x,e[18]=r):r=e[18],r}function fe(T){const e=P.c(52),{usage:s,totalTokens:l,contextWindow:j,onOpenContextPanel:n}=T,p=H(),a=Math.min(l/j*100,100),f=U-a/100*U,o=p?s?.cost??0:0,i=(s?.cost??0)>0,m=s?.inputTokens??0,x=s?.outputTokens??0;let r;e[0]!==a?(r=a.toFixed(0),e[0]=a,e[1]=r):r=e[1];let N;e[2]!==o?(N=o>0?`, $${o.toFixed(2)}`:"",e[2]=o,e[3]=N):N=e[3];const k=`Context usage: ${r}%${N}`,b=n?"cursor-pointer":"cursor-default";let d;e[4]!==b?(d=B("flex items-center gap-1.5 text-muted-foreground hover:text-foreground h-6 px-1 shrink-0",b),e[4]=b,e[5]=d):d=e[5];let g;e[6]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("circle",{cx:v/2,cy:v/2,r:q,fill:"none",stroke:"currentColor",strokeWidth:O,className:"opacity-15"}),e[6]=g):g=e[6];const u=a>90?"text-destructive":a>70?"text-warning":"text-muted-foreground";let c;e[7]!==u?(c=B(u),e[7]=u,e[8]=c):c=e[8];let h;e[9]!==f||e[10]!==c?(h=t.jsxs("svg",{width:v,height:v,className:"-rotate-90","aria-hidden":"true",children:[g,t.jsx("circle",{cx:v/2,cy:v/2,r:q,fill:"none",stroke:"currentColor",strokeWidth:O,strokeDasharray:U,strokeDashoffset:f,strokeLinecap:"round",className:c})]}),e[9]=f,e[10]=c,e[11]=h):h=e[11];let y;e[12]!==a?(y=a.toFixed(0),e[12]=a,e[13]=y):y=e[13];let S;e[14]!==o?(S=o>0?` · $${o.toFixed(2)}`:"",e[14]=o,e[15]=S):S=e[15];let C;e[16]!==y||e[17]!==S?(C=t.jsxs("span",{className:"inline-block overflow-hidden whitespace-nowrap max-w-0 opacity-0 transition-[max-width,opacity] duration-200 ease-out @[320px]/chat-bottom:max-w-32 @[320px]/chat-bottom:opacity-100 text-[11px] font-mono tabular-nums",children:[y,"%",S]}),e[16]=y,e[17]=S,e[18]=C):C=e[18];let w;e[19]!==n||e[20]!==C||e[21]!==k||e[22]!==d||e[23]!==h?(w=t.jsx(z,{asChild:!0,children:t.jsxs("button",{type:"button",onClick:n,"aria-label":k,className:d,children:[h,C]})}),e[19]=n,e[20]=C,e[21]=k,e[22]=d,e[23]=h,e[24]=w):w=e[24];let D;e[25]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx("span",{className:"text-muted",children:"context"}),e[25]=D):D=e[25];let _;e[26]!==l?(_=l.toLocaleString(),e[26]=l,e[27]=_):_=e[27];let $;e[28]!==j?($=j.toLocaleString(),e[28]=j,e[29]=$):$=e[29];let F;e[30]!==a?(F=a.toFixed(1),e[30]=a,e[31]=F):F=e[31];let L;e[32]!==_||e[33]!==$||e[34]!==F?(L=t.jsxs("span",{className:"text-right tabular-nums",children:[_," / ",$," (",F,"%)"]}),e[32]=_,e[33]=$,e[34]=F,e[35]=L):L=e[35];let R;e[36]!==o?(R=o>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cost"}),t.jsxs("span",{className:"text-right tabular-nums",children:["$",o.toFixed(4)]})]}),e[36]=o,e[37]=R):R=e[37];let M;e[38]!==i||e[39]!==m||e[40]!==x?(M=i&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"in"}),t.jsx("span",{className:"text-right tabular-nums",children:m.toLocaleString()}),t.jsx("span",{className:"text-muted",children:"out"}),t.jsx("span",{className:"text-right tabular-nums",children:x.toLocaleString()})]}),e[38]=i,e[39]=m,e[40]=x,e[41]=M):M=e[41];let I;e[42]!==s?(I=((s?.cacheReadTokens??0)>0||(s?.cacheWriteTokens??0)>0)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cache hit"}),t.jsx("span",{className:"text-right tabular-nums",children:`${(K(s)*100).toFixed(0)}%`})]}),e[42]=s,e[43]=I):I=e[43];let E;e[44]!==L||e[45]!==R||e[46]!==M||e[47]!==I?(E=t.jsx(G,{side:"top",className:"font-mono text-[11px]",children:t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[D,L,R,M,I]})}),e[44]=L,e[45]=R,e[46]=M,e[47]=I,e[48]=E):E=e[48];let W;return e[49]!==w||e[50]!==E?(W=t.jsxs(A,{children:[w,E]}),e[49]=w,e[50]=E,e[51]=W):W=e[51],W}export{he as M,fe as S,ue as a,pe as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,X as h,a2 as R,K as m,m as y,D as S,af as M}from"./index-
|
|
1
|
+
import{c as p,X as h,a2 as R,K as m,m as y,D as S,af as M}from"./index-BOGZM7Pw.js";const P=["deco","anthropic","openrouter","llmapi","google","openai-compatible"],O=new Set(P);function A(o){return O.has(o)}function _(o){return o.capabilities?.includes("decisions")===!0}function z(o){return!_(o)&&o.asyncResearch!==!0}const v={anthropic:["claude-haiku-4-5","claude-haiku"],openrouter:["qwen/qwen3.5-flash","anthropic/claude-haiku-4.5","anthropic/claude-haiku","google/gemini-3-flash"],deco:["qwen/qwen3.5-flash","anthropic/claude-haiku"],llmapi:["claude-haiku-4-5","claude-haiku","gpt-4o-mini"],google:["gemini-2.5-flash","gemini-3-flash"]},L={anthropic:["claude-sonnet-5","claude-sonnet"],openrouter:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude-opus-4.8","google/gemini-3-pro"],deco:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude"],llmapi:["claude-sonnet-4-6","claude-sonnet"],google:["gemini-3-pro","gemini-3-flash"]},T={anthropic:["claude-opus-4-8","claude-sonnet-5","claude-sonnet","claude-fable-5"],openrouter:["anthropic/claude-opus-4.8:extended","anthropic/claude-opus-4.8","anthropic/claude-sonnet-5:extended","anthropic/claude-sonnet-5","google/gemini-3-pro","anthropic/claude-fable-5"],deco:["anthropic/claude-opus","anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude-fable"],llmapi:["claude-opus-4-8","claude-opus","claude-sonnet-4-6"],google:["gemini-3-pro"]},K={openrouter:["google/gemini-3-pro-image","openai/gpt-5-image","google/gemini-2.5-flash-image"],deco:["google/gemini-3-pro-image","openai/gpt-5-image","google/gemini-2.5-flash-image"],llmapi:["gemini-2.5-flash-image","gpt-image-1"],google:["gemini-2.0-flash-image"]},w={openrouter:["perplexity/sonar","perplexity/sonar-pro"],deco:["perplexity/sonar","perplexity/sonar-pro"]},x={openrouter:["perplexity/deep-research","perplexity/sonar-pro"],deco:["perplexity/deep-research","perplexity/sonar-pro"]};function I(o){return o.toLowerCase().replace(/[^a-z0-9]/g,"")}function C(o){return I(o).includes("deepresearch")}const q=["sonar","searchpreview","online"];function D(o){const e=I(o);return e.includes("deepresearch")?!1:q.some(i=>e.includes(i))}function F(o){return o.asyncResearch!==!0&&D(o.modelId)}function b(o){return o.asyncResearch===!0||C(o.modelId)||D(o.modelId)}function u(o,e,i,n){for(const t of i){const s=o.find(a=>a.modelId===t);if(s)return{keyId:e,modelId:s.modelId,title:s.title}}for(const t of i){const s=o.find(a=>a.modelId.includes(t));if(s)return{keyId:e,modelId:s.modelId,title:s.title}}if(n){const t=o.find(n);if(t)return{keyId:e,modelId:t.modelId,title:t.title}}return null}function H(o,e){const i={chat:{fast:null,smart:null,thinking:null},image:null,webSearch:null,deepResearch:null};for(const n of o){const t=(e[n.id]??[]).filter(a=>!_(a)),s=n.providerId;i.chat.fast||(i.chat.fast=u(t,n.id,v[s]??[])),i.chat.smart||(i.chat.smart=u(t,n.id,L[s]??[])),i.chat.thinking||(i.chat.thinking=u(t,n.id,T[s]??[])),i.image||(i.image=u(t,n.id,K[s]??[],a=>a.capabilities?.includes("image")===!0&&!a.modelId.startsWith("openrouter/auto"))),i.webSearch||(i.webSearch=u(t,n.id,w[s]??[],F)),i.deepResearch||(i.deepResearch=u(t,n.id,x[s]??[],b))}return i}function N(o,e){return{queryKey:m.aiProviderKeys(e),staleTime:6e4,queryFn:async()=>await M(o,"AI_PROVIDER_KEY_LIST",{})}}function B(){const o=p.c(7),{org:e}=h(),i=R();let n;o[0]!==e.id?(n=m.aiProviders(e.id),o[0]=e.id,o[1]=n):n=o[1];let t;o[2]!==i?(t=async()=>await i.call("AI_PROVIDERS_LIST",{}),o[2]=i,o[3]=t):t=o[3];let s;o[4]!==n||o[5]!==t?(s={queryKey:n,staleTime:1/0,queryFn:t},o[4]=n,o[5]=t,o[6]=s):s=o[6];const{data:a}=S(s);return a}function Q(){const o=p.c(5),{org:e}=h();let i;o[0]!==e.id||o[1]!==e.slug?(i=N(e.slug,e.id),o[0]=e.id,o[1]=e.slug,o[2]=i):i=o[2];const{data:n}=S(i);let t;return o[3]!==n?.keys?(t=n?.keys??[],o[3]=n?.keys,o[4]=t):t=o[4],t}function G(){const o=p.c(2),e=Q();let i;return o[0]!==e?(i=e.filter(V),o[0]=e,o[1]=i):i=o[1],i}function V(o){return A(o.providerId)}function E(o){const e=p.c(15),{org:i}=h(),n=R();let t;e[0]!==o||e[1]!==i.id?(t=m.aiProviderModels(i.id,o??""),e[0]=o,e[1]=i.id,e[2]=t):t=e[2];const s=!!o;let a;e[3]!==o||e[4]!==n?(a=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o??""}),e[3]=o,e[4]=n,e[5]=a):a=e[5];let r;e[6]!==t||e[7]!==s||e[8]!==a?(r={queryKey:t,enabled:s,staleTime:6e4,queryFn:a},e[6]=t,e[7]=s,e[8]=a,e[9]=r):r=e[9];const{data:l,isLoading:c}=y(r);let d;e[10]!==l?.models?(d=l?.models??[],e[10]=l?.models,e[11]=d):d=e[11];const g=!!o&&c;let f;return e[12]!==d||e[13]!==g?(f={models:d,isLoading:g},e[12]=d,e[13]=g,e[14]=f):f=e[14],f}function W(o){const e=p.c(8),i=o[0],n=o[1],t=o[2],{models:s}=E(i?.id),{models:a}=E(n?.id),{models:r}=E(t?.id);let l;if(e[0]!==i||e[1]!==n||e[2]!==t||e[3]!==o||e[4]!==s||e[5]!==a||e[6]!==r){const c={};i?.id&&(c[i.id]=s),n?.id&&(c[n.id]=a),t?.id&&(c[t.id]=r),l=H(o,c),e[0]=i,e[1]=n,e[2]=t,e[3]=o,e[4]=s,e[5]=a,e[6]=r,e[7]=l}else l=e[7];return l}function Y(o){const e=p.c(11),{org:i}=h(),n=R();let t;e[0]!==o||e[1]!==i.id?(t=m.aiProviderModels(i.id,o),e[0]=o,e[1]=i.id,e[2]=t):t=e[2];let s;e[3]!==o||e[4]!==n?(s=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o}),e[3]=o,e[4]=n,e[5]=s):s=e[5];let a;e[6]!==t||e[7]!==s?(a={queryKey:t,staleTime:6e4,queryFn:s},e[6]=t,e[7]=s,e[8]=a):a=e[8];const{data:r}=S(a);let l;return e[9]!==r?.models?(l=r?.models??[],e[9]=r?.models,e[10]=l):l=e[10],l}export{E as a,b,W as c,B as d,z as e,Q as f,A as g,Y as h,F as i,H as p,G as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as U,X as q,a2 as I,K as T,m as Q,o as x,e as y,t as m,z}from"./index-
|
|
1
|
+
import{c as U,X as q,a2 as I,K as T,m as Q,o as x,e as y,t as m,z}from"./index-BOGZM7Pw.js";import{u as J}from"./use-mcp-client-9jF2B0Tz.js";function V(t){if(t.paramsSchema&&typeof t.paramsSchema=="object")return t;const e={};if(Array.isArray(t.params))for(const s of t.params)e[s.name]={type:s.type,description:s.description,enum:s.enum};else t.params&&typeof t.params=="object"&&Object.assign(e,t.params);return{type:t.type,description:t.description,paramsSchema:e}}function et(t){const e=U.c(12),{org:s}=q(),l=t??z;let a;e[0]!==s.id||e[1]!==s.slug||e[2]!==l?(a={connectionId:l,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=l,e[3]=a):a=e[3];const i=J(a);let n;e[4]!==t?(n=T.toolCall(t??"","TRIGGER_LIST",""),e[4]=t,e[5]=n):n=e[5];let o;e[6]!==i?(o=async()=>{const d=await i.callTool({name:"TRIGGER_LIST",arguments:{}});return(d.structuredContent??d).triggers.map(V)},e[6]=i,e[7]=o):o=e[7];const c=!!t;let r;return e[8]!==n||e[9]!==o||e[10]!==c?(r={queryKey:n,queryFn:o,enabled:c,staleTime:3e4},e[8]=n,e[9]=o,e[10]=c,e[11]=r):r=e[11],Q(r)}function st(t){const e=U.c(9),{org:s}=q(),l=I();let a;e[0]!==s.id||e[1]!==t?(a=T.automations(s.id,t),e[0]=s.id,e[1]=t,e[2]=a):a=e[2];let i;e[3]!==l||e[4]!==t?(i=async()=>(await l.call("AUTOMATION_LIST",t!=null?{virtual_mcp_id:t}:{})).automations,e[3]=l,e[4]=t,e[5]=i):i=e[5];let n;return e[6]!==a||e[7]!==i?(n={queryKey:a,queryFn:i,staleTime:1e4},e[6]=a,e[7]=i,e[8]=n):n=e[8],Q(n)}function it(t){const e=U.c(10),{org:s}=q(),l=I();let a;e[0]!==t||e[1]!==s.id?(a=T.automation(s.id,t),e[0]=t,e[1]=s.id,e[2]=a):a=e[2];let i;e[3]!==t||e[4]!==l?(i=async()=>(await l.call("AUTOMATION_GET",{id:t})).automation,e[3]=t,e[4]=l,e[5]=i):i=e[5];const n=!!t;let o;return e[6]!==a||e[7]!==i||e[8]!==n?(o={queryKey:a,queryFn:i,enabled:n,staleTime:1e4},e[6]=a,e[7]=i,e[8]=n,e[9]=o):o=e[9],Q(o)}function ot(t,e){const s=U.c(12),{org:l}=q(),a=I();let i;s[0]!==t||s[1]!==l.id||s[2]!==e?(i=T.automationRunStats(l.id,t,JSON.stringify(e??{})),s[0]=t,s[1]=l.id,s[2]=e,s[3]=i):i=s[3];let n;s[4]!==t||s[5]!==e||s[6]!==a?(n=async()=>await a.call("AUTOMATION_RUN_STATS",{automation_id:t,...e?.startDate?{startDate:e.startDate}:{},...e?.endDate?{endDate:e.endDate}:{}}),s[4]=t,s[5]=e,s[6]=a,s[7]=n):n=s[7];const o=!!t;let c;return s[8]!==i||s[9]!==n||s[10]!==o?(c={queryKey:i,queryFn:n,enabled:o,staleTime:3e4},s[8]=i,s[9]=n,s[10]=o,s[11]=c):c=s[11],Q(c)}function at(t){return{name:"New Automation",messages:[],models:{tier:"smart"},temperature:.5,active:!0,virtual_mcp_id:t}}function nt(){const t=U.c(64),{org:e}=q(),s=I(),l=x();let a;t[0]!==e||t[1]!==l?(a=()=>l.invalidateQueries({queryKey:T.automationsAll(e.id)}),t[0]=e,t[1]=l,t[2]=a):a=t[2];const i=a;let n;t[3]!==e||t[4]!==l?(n=u=>l.invalidateQueries({queryKey:T.automation(e.id,u)}),t[3]=e,t[4]=l,t[5]=n):n=t[5];const o=n;let c;t[6]!==s?(c=async u=>await s.call("AUTOMATION_CREATE",u),t[6]=s,t[7]=c):c=t[7];let r;t[8]!==i?(r=()=>{i(),m.success("Automation created successfully")},t[8]=i,t[9]=r):r=t[9];let d;t[10]!==c||t[11]!==r?(d={mutationFn:c,onSuccess:r,onError:W},t[10]=c,t[11]=r,t[12]=d):d=t[12];const D=y(d);let A;t[13]!==s?(A=async u=>await s.call("AUTOMATION_UPDATE",u),t[13]=s,t[14]=A):A=t[14];let p;t[15]!==i||t[16]!==o?(p=(u,f)=>{i(),typeof f.id=="string"&&o(f.id),m.success("Automation updated successfully")},t[15]=i,t[16]=o,t[17]=p):p=t[17];let G;t[18]!==A||t[19]!==p?(G={mutationFn:A,onSuccess:p,onError:H},t[18]=A,t[19]=p,t[20]=G):G=t[20];const j=y(G);let g;t[21]!==s?(g=async u=>await s.call("AUTOMATION_DELETE",{id:u}),t[21]=s,t[22]=g):g=t[22];let _;t[23]!==i||t[24]!==e||t[25]!==l?(_=(u,f)=>{l.removeQueries({queryKey:T.automation(e.id,f)}),i(),m.success("Automation deleted successfully")},t[23]=i,t[24]=e,t[25]=l,t[26]=_):_=t[26];let $;t[27]!==g||t[28]!==_?($={mutationFn:g,onSuccess:_,onError:B},t[27]=g,t[28]=_,t[29]=$):$=t[29];const k=y($);let E;t[30]!==s?(E=async u=>await s.call("AUTOMATION_TRIGGER_ADD",u),t[30]=s,t[31]=E):E=t[31];let S;t[32]!==i||t[33]!==o?(S=u=>{i(),o(u.automation_id)},t[32]=i,t[33]=o,t[34]=S):S=t[34];let K;t[35]!==E||t[36]!==S?(K={mutationFn:E,onSuccess:S},t[35]=E,t[36]=S,t[37]=K):K=t[37];const P=y(K);let O;t[38]!==s?(O=async u=>await s.call("AUTOMATION_TRIGGER_ROTATE_TOKEN",{trigger_id:u.trigger_id}),t[38]=s,t[39]=O):O=t[39];let R;t[40]!==i||t[41]!==o?(R=(u,f)=>{i(),o(f.automation_id)},t[40]=i,t[41]=o,t[42]=R):R=t[42];let C;t[43]!==O||t[44]!==R?(C={mutationFn:O,onSuccess:R},t[43]=O,t[44]=R,t[45]=C):C=t[45];const h=y(C);let F;t[46]!==s?(F=async u=>await s.call("AUTOMATION_TRIGGER_REMOVE",{trigger_id:u.trigger_id}),t[46]=s,t[47]=F):F=t[47];let N;t[48]!==i||t[49]!==o?(N=(u,f)=>{i(),o(f.automation_id)},t[48]=i,t[49]=o,t[50]=N):N=t[50];let b;t[51]!==F||t[52]!==N?(b={mutationFn:F,onSuccess:N},t[51]=F,t[52]=N,t[53]=b):b=t[53];const v=y(b);let L;t[54]!==s?(L={mutationFn:async u=>await s.call("AUTOMATION_RUN",{id:u}),onSuccess:Y,onError:X},t[54]=s,t[55]=L):L=t[55];const w=y(L);let M;return t[56]!==D||t[57]!==k||t[58]!==w||t[59]!==P||t[60]!==v||t[61]!==h||t[62]!==j?(M={create:D,update:j,remove:k,triggerAdd:P,triggerRemove:v,triggerRotateToken:h,run:w},t[56]=D,t[57]=k,t[58]=w,t[59]=P,t[60]=v,t[61]=h,t[62]=j,t[63]=M):M=t[63],M}function X(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to run automation: ${e}`)}function Y(t){t.skipped?m.info(`Automation skipped: ${t.skipped}`):t.error?m.error(`Automation failed: ${t.error}`):m.success("Automation triggered")}function B(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to delete automation: ${e}`)}function H(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to update automation: ${e}`)}function W(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to create automation: ${e}`)}export{nt as a,at as b,et as c,it as d,ot as e,st as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as T,r as l}from"./index-
|
|
1
|
+
import{c as T,r as l}from"./index-BOGZM7Pw.js";const _=700;function D(s,a,p){const e=T.c(8),f=p?.delay??_,g=p?.isSaving??!1,[m,d]=l.useState(s),[y,A]=l.useState(s),[r,i]=l.useState(!1),t=l.useRef(null);s!==y&&(A(s),!r&&!g&&d(s));let c;e[0]!==f||e[1]!==a?(c=o=>{d(o),i(!0),t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{t.current=null,i(!1),a(o)},f)},e[0]=f,e[1]=a,e[2]=c):c=e[2];const S=c;let n;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=o=>{d(o),t.current&&clearTimeout(t.current),t.current=null,i(!1)},e[3]=n):n=e[3];const E=n;let u;return e[4]!==m||e[5]!==r||e[6]!==S?(u=[m,S,E,r],e[4]=m,e[5]=r,e[6]=S,e[7]=u):u=e[7],u}export{D as u};
|
package/dist/client/assets/{use-chat-layout-state-CNWV4oOZ.js → use-chat-layout-state-Cd1SDWUO.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as I,X as M,aT as L,m as N,K as x,k as $,d as k,u as W}from"./index-
|
|
1
|
+
import{c as I,X as M,aT as L,m as N,K as x,k as $,d as k,u as W}from"./index-BOGZM7Pw.js";import{a as B}from"./use-file-configs-j21JL3yE.js";import{b as F}from"./use-organization-settings-BgEtBsl7.js";import{r as J,a as U}from"./site-slug-DebpOoQq.js";import{a as q}from"./thread-route-esGiDSRu.js";import{u as H}from"./use-panel-navigate-4MoLzTpw.js";import{b as K}from"./thread-intent-CNOpHUCE.js";const _=["overview","reports","board","site-editor","assets","hosting","e2e","analytics","cdn","automations","experiments"],Q=["overview","reports","board","site-editor"],z=1,X=["assets","hosting","e2e","analytics","cdn","experiments"];function me(t,e,s){if(!t)return{project:s??null,resolvedScopeId:null};const n=e?.id===t?e:s?.id===t?s:null;return{project:n,resolvedScopeId:n?t:null}}function he(t){return t?.sidebarViews!==void 0?t.sidebarViews:t?.ui?.layout?.sidebarViews}function j(t,e){const s=new Set(t??[]);if(e!==z)for(const n of Q)s.add(n);return _.filter(n=>s.has(n))}function Y(t){return _.some(e=>e===t)}function G(t){return X.some(e=>e===t)}function Z(t,e){return{overview:t,reports:t,board:t,"site-editor":t,assets:e.assets,hosting:e.hosting,e2e:e.e2e,analytics:e.analytics,cdn:e.cdn,experiments:t&&e.experiments,automations:!0}}function ge(t,e,s){const n=Z(e,s);return t?n:{...n,overview:!0,reports:!0,board:!0}}function Pe(t,e,s){const n=new Set(j(t,s));return _.filter(a=>e[a]&&n.has(a))}function Se(t,e,s){return s||!t?t:(t.type==="preview"||t.type==="content"||t.type==="code"?"site-editor":t.type)===e?{type:"settings"}:t}function be(t){return _.filter(e=>t[e])}function ee(t,e,s){return!Y(t)||e[t]?!1:G(t)?!(t==="assets"?s.assets:s.siteAccess):!0}function we(t,e,s,n,a){return ee(t==="preview"||t==="content"||t==="code"?"site-editor":t,e,s)||t==="content"&&!n.includes("content")||t==="code"&&a&&!n.includes("code")}function Ve(t,e,s,n){const a=new Set(j(t,n));return s?a.add(e):a.delete(e),_.filter(r=>a.has(r))}function te(t,e){if(!e)return null;const s=e.toLowerCase();return t.find(n=>{const a=n.bucket.toLowerCase();return n.siteSlug?.toLowerCase()===s||a===s||a===`deco-assets-${s}`})??null}function ye(t){const e=I.c(20),{org:s}=M(),n=L(),a=F(),r=B();let c;e[0]!==t?(c=J(t),e[0]=t,e[1]=c):c=e[1];const o=c,d=n.hostingEnabled===!0,P=n.monitorEnabled===!0||n.auth.localMode===!0,f=(d||P)&&!!o,p=v(s.slug,o,f);let m;e[2]!==t?(m=U(t),e[2]=t,e[3]=m):m=e[3];const u=m,S=P&&!!u&&u!==o,h=v(s.slug,u,S),g=p.data?.owned===!0,O=S?h.data?.owned===!0:g;let l;e[4]!==r.data?.configs?(l=r.data?.configs??[],e[4]=r.data?.configs,e[5]=l):l=e[5];let b;e[6]!==o||e[7]!==l?(b=te(l,o),e[6]=o,e[7]=l,e[8]=b):b=e[8];const V=!!b,w=d&&g&&a.hosting,i=d&&g&&a.e2e,y=d&&g&&a.analytics,C=P&&O&&a.monitor;let E;e[9]!==a.experiments||e[10]!==V||e[11]!==w||e[12]!==i||e[13]!==y||e[14]!==C?(E={assets:V,hosting:w,e2e:i,analytics:y,cdn:C,experiments:a.experiments},e[9]=a.experiments,e[10]=V,e[11]=w,e[12]=i,e[13]=y,e[14]=C,e[15]=E):E=e[15];const T=!!o&&r.isPending,D=f&&p.isPending||S&&h.isPending;let A;return e[16]!==T||e[17]!==D||e[18]!==E?(A={presence:E,assetsPending:T,siteAccessPending:D},e[16]=T,e[17]=D,e[18]=E,e[19]=A):A=e[19],A}function v(t,e,s){const n=I.c(10);let a;n[0]!==t||n[1]!==e?(a=x.hostingAccess(t,e??""),n[0]=t,n[1]=e,n[2]=a):a=n[2];let r;n[3]!==t||n[4]!==e?(r=async()=>{const o=await fetch(`/api/${t}/hosting/${encodeURIComponent(e??"")}/access`);return o.ok?await o.json():{owned:!1,canWrite:!1}},n[3]=t,n[4]=e,n[5]=r):r=n[5];let c;return n[6]!==s||n[7]!==a||n[8]!==r?(c={queryKey:a,queryFn:r,enabled:s,staleTime:6e4},n[6]=s,n[7]=a,n[8]=r,n[9]=c):c=n[9],N(c)}function ne(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:se},t[0]=e):e=t[0],$(e)}function se(t){for(let e=t.matches.length-1;e>=0;e--){const s=t.matches[e]?.staticData.defaultMain;if(s)return s}return null}function ae(t){return!!t.harness_id||!!t.title&&t.title!=="New chat"}function re(t){return t.threadOpen||t.contentOpen?t:{...t,threadOpen:!0}}function oe(t){const e=t.entityMetadata?.defaultMainView??null,s=e==null||e.type==="chat",n=t.mainPanelParam??(t.panelNamed||!!t.routeDefaultMain||!s),a=t.routeDefaultMain?!1:s||t.entityMetadata?.chatDefaultOpen===!0||t.threadHasMessages===!0,r=t.threadVisibilityExplicit?t.sidePanelParamValue===!0:a;return re({threadOpen:r,contentOpen:n})}function R(t,e){switch(t.type){case"toggleThread":return e.threadOpen?e.contentOpen?{sidepanel:!1}:null:{sidepanel:!0};case"toggleContent":return e.contentOpen?{mainpanel:!1,sidepanel:!0}:{mainpanel:!0};case"openThread":return e.threadOpen?null:{sidepanel:!0}}}function Ee(t){return t.threadOpen&&t.contentOpen?{side:33,main:67}:t.threadOpen?{side:100,main:0}:t.contentOpen?{side:0,main:100}:{side:0,main:0}}function Oe(t){const{threadOpen:e,contentOpen:s}=t.visibility;return e&&(t.threadVisibilityExplicit||!s)?"chat":s?"main":"chat"}function Ce(t){return t==="main"?{sidepanel:!1,mainpanel:!0}:{sidepanel:!0,mainpanel:!1}}function _e(t){const e=I.c(26),s=k();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const a=W(n),{threads:r}=K(),c=ne(),o=H(),d=q();let P;if(e[1]!==t||e[2]!==o||e[3]!==c||e[4]!==a.mainpanel||e[5]!==a.sidepanel||e[6]!==d||e[7]!==r){const i=d!=null?r.find(y=>y.id===d):void 0;P=oe({entityMetadata:t,mainPanelParam:a.mainpanel,panelNamed:o!==void 0,threadVisibilityExplicit:a.sidepanel!==void 0,sidePanelParamValue:a.sidepanel,routeDefaultMain:c,threadHasMessages:i?ae(i):!1}),e[1]=t,e[2]=o,e[3]=c,e[4]=a.mainpanel,e[5]=a.sidepanel,e[6]=d,e[7]=r,e[8]=P}else P=e[8];const{threadOpen:f,contentOpen:p}=P;let m;e[9]!==p||e[10]!==f?(m={threadOpen:f,contentOpen:p},e[9]=p,e[10]=f,e[11]=m):m=e[11];const u=m;let S;e[12]!==s?(S=(i,y)=>{s({to:".",search:C=>({...C,...i}),replace:y?.replace??!1})},e[12]=s,e[13]=S):S=e[13];const h=S;let g;e[14]!==h||e[15]!==u?(g=()=>{const i=R({type:"toggleContent"},u);i&&h(i,{replace:!0})},e[14]=h,e[15]=u,e[16]=g):g=e[16];const O=g;let l;e[17]!==h||e[18]!==u?(l=()=>{const i=R({type:"toggleThread"},u);i&&h(i,{replace:!0})},e[17]=h,e[18]=u,e[19]=l):l=e[19];const b=l,V=a.sidepanel!==void 0;let w;return e[20]!==p||e[21]!==V||e[22]!==f||e[23]!==O||e[24]!==b?(w={threadOpen:f,contentOpen:p,threadVisibilityExplicit:V,toggleContent:O,toggleThread:b},e[20]=p,e[21]=V,e[22]=f,e[23]=O,e[24]=b,e[25]=w):w=e[25],w}export{X as P,_e as a,te as b,z as c,Oe as d,j as e,Ee as f,ne as g,me as h,G as i,ge as j,we as k,ee as l,Ce as m,be as n,Ve as o,Z as p,Se as q,he as r,Pe as s,ae as t,ye as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,r as a}from"./index-
|
|
1
|
+
import{c as u,r as a}from"./index-BOGZM7Pw.js";const i=new Map;function l(r){let t=i.get(r);return t||(t={now:Date.now(),subscribers:new Set,intervalId:null},i.set(r,t)),t}function b(r,t){const e=l(r);return e.subscribers.add(t),e.intervalId===null&&(e.intervalId=setInterval(()=>{e.now=Date.now();for(const s of e.subscribers)s()},r)),()=>{e.subscribers.delete(t),e.subscribers.size===0&&e.intervalId!==null&&(clearInterval(e.intervalId),e.intervalId=null)}}function f(r){const t=u.c(4),e=r===void 0?6e4:r;let s;t[0]!==e?(s=()=>l(e).now,t[0]=e,t[1]=s):s=t[1];const o=s;let n;return t[2]!==e?(n=c=>b(e,c),t[2]=e,t[3]=n):n=t[3],a.useSyncExternalStore(n,o,o)}export{f as u};
|