@xopcai/xopc 0.0.486 → 0.0.487
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/browser-ext/manifest.json +1 -1
- package/dist/extensions/feishu/src/outbound/media-load.js +1 -1
- package/dist/extensions/feishu/src/transport/reliability/message-ingress.js +2 -2
- package/dist/extensions/telegram/src/inbound-processor.js +2 -2
- package/dist/extensions/telegram/src/outbound-sender.js +1 -1
- package/dist/extensions/telegram/src/plugin.js +3 -3
- package/dist/extensions/telegram/src/polling-session.js +1 -1
- package/dist/extensions/telegram/src/update-offset-store.js +2 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/extensions/weixin/src/api/api.js +2 -2
- package/dist/extensions/weixin/src/auth/accounts.js +12 -12
- package/dist/extensions/weixin/src/messaging/debug-mode.js +5 -5
- package/dist/extensions/weixin/src/messaging/inbound.js +11 -11
- package/dist/extensions/weixin/src/messaging/process-message.js +2 -2
- package/dist/extensions/weixin/src/messaging/quote-cache.js +3 -1
- package/dist/extensions/weixin/src/storage/sync-buf.js +2 -1
- package/dist/gateway/server/chunks.bin +1568 -1404
- package/dist/gateway/server/chunks.json +1 -1
- package/dist/gateway/server/dependency-records.json +42 -0
- package/dist/gateway/static/root/assets/{activity-store-hSe5Nbgk.js → activity-store-CWGtissf.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-BY2wRiwY.js → agent-avatar-dicebear-D4YSq8A9.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-display-D_UDgOr9.js → agent-avatar-display-DWv7biOS.js} +2 -2
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-BrcyLG9M.js → agent-defaults-settings-panel-3xdD9dR1.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-CSJC1yud.js → agent-plugin-dialog-BNvw2z1Y.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-DX-t3X7K.js → agents-DcENLHHW.js} +3 -3
- package/dist/gateway/static/root/assets/{agents-admin-api-DSr-PWuW.js → agents-admin-api-BzpxMKwk.js} +1 -1
- package/dist/gateway/static/root/assets/{api-CGrHK9ij.js → api-D70-LnNE.js} +1 -1
- package/dist/gateway/static/root/assets/{api-B3T06TLl.js → api-SIYalfjE.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-D6ZoYKaA.js → app-management-settings-panel-CEveRIMe.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-BRb6kZT8.js → appearance-settings-CT2NLLuY.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-6xeWvMpF.js → apps-page-pEqr4fAK.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-CQ5UXgZk.js → archive-plugin-xnggGfUN.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-api-D-gn6x5E.js → automation-api-CaBLskwk.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-result-state-B7hq0XOL.js → automation-result-state-CeGtOXK0.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-run-list-CM59-qm5.js → automation-run-list-DUpezxj4.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-task-card-C453Q-Wa.js → automation-task-card-CLayJo0S.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-BLFBqaPX.js → automations-page-BKfvaA41.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-DiO3Iyuj.js → automations-workspace-BRcJzgLA.js} +2 -2
- package/dist/gateway/static/root/assets/{binary-plugins-D_zw0TgG.js → binary-plugins-DtD3acS4.js} +1 -1
- package/dist/gateway/static/root/assets/block-editor-BFDeQtYs.css +1 -0
- package/dist/gateway/static/root/assets/{block-editor-Cesz2DqP.js → block-editor-DXjBAN8L.js} +46 -46
- package/dist/gateway/static/root/assets/{browser-settings-page-BHElJSFt.js → browser-settings-page-Cgxtr2eR.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-CW-vdkz6.js → capabilities-CpwoMqtm.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-DZrjA95P.js → capabilities-DcD15BrU.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-page-DQrfkrBA.js → capabilities-page-x_AS_XJ0.js} +2 -2
- package/dist/gateway/static/root/assets/{capabilities-settings-panel-DIT2dvtc.js → capabilities-settings-panel-DMgEXxkC.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-Dcr5dgqw.js → channels-565FQAGr.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-agents-api-CyvBfBbp.js → chat-agents-api-BfsNH-ht.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-chart-block-B83s8HE9.js → chat-chart-block-Dpolmx0-.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-page-DWZCzxY7.js → chat-page-Bn44NcvF.js} +6 -6
- package/dist/gateway/static/root/assets/{chat-terminal-dock-DCUuwiTt.js → chat-terminal-dock-D6fuI2tI.js} +1 -1
- package/dist/gateway/static/root/assets/{command-palette-api-UrqPvWR1.js → command-palette-api-H3lCPfK8.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-model-config-control-C2Bku39S.js → composer-model-config-control-BcWrGT5D.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-notifications-MGKffwC7.js → composer-notifications-0fMBrXZD.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-payload-handoff-a0quQ25p.js → composer-payload-handoff-DCGudJjU.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-DUzQe6Bz.js → computer-settings-page-kvYzJ_j2.js} +1 -1
- package/dist/gateway/static/root/assets/confirm-dialog-yhRKgG72.js +1 -0
- package/dist/gateway/static/root/assets/{connected-providers-grid-BJKEp0SE.js → connected-providers-grid-CApjiM_x.js} +1 -1
- package/dist/gateway/static/root/assets/{connection-usage-guide-B9hoSOnN.js → connection-usage-guide-C2qOP6Nx.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-e67KylnM.js → connector-service-page-DKihi3WL.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-api-CRGq-TSw.js → connectors-api-Dj9RbG9p.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-BteRI1XM.js → connectors-page-CR6a3Mne.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-DwITf4I2.js → date-picker-BX5tr0IG.js} +1 -1
- package/dist/gateway/static/root/assets/{date-time-picker-ChG1CqR1.js → date-time-picker-CdPsuK2A.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-BHoFymL4.js → desktop-pet-DRfOb9ZT.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-BYeBN4jj.js → desktop-pet-settings-D6qCAFLe.js} +1 -1
- package/dist/gateway/static/root/assets/{dev-view-store-DsjH8x76.js → dev-view-store-DrRxtile.js} +1 -1
- package/dist/gateway/static/root/assets/{device-connections-panel-DE01vyK_.js → device-connections-panel-Drbw9eRH.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-action-w1enAo76.js → device-pairing-action-Dd2YtIhH.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-Dt737tSq.js → device-pairing-wizard-wtsyHEO3.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-B-eUnbng.js → directory-picker-path-field-B3YBba3x.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-authoritative-grants-DYp2nNol.js → extension-authoritative-grants-WXYRv5nA.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-4jJ1uVQJ.js → extension-debug-page-CKeIq8S2.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-iframe-host-CJV5JETm.js → extension-iframe-host-Cv4PCSVv.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-marketplace-api-DGV5FC-v.js → extension-marketplace-api-e0e9OxOT.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-message-router-B4I-Y6qs.js → extension-message-router-GPlMiYyF.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-lc7a84nG.js → extension-page-DcP7IEMp.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-D8_mIBI0.js → extension-provider-DZ97b5uA.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-Uw2lfWRh.js → extension-settings-page-DIYoawnA.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-BD-ams0X.js → gateway-config-swr-aAsaoOK1.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-CoIFB3im.js → gateway-realtime-egUNyhxi.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-5YcWzAfG.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-restart-Dos1Pp84.js → gateway-restart-BY6zJgTe.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-DUC1iOVK.js → gateway-settings-4TvJ0_i0.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-DgmvR-hb.js → gateway-startup-retry-D0dDJJQ4.js} +1 -1
- package/dist/gateway/static/root/assets/{global-defaults-api-B7suATYU.js → global-defaults-api-9iooq81U.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-mSRCU81k.js → home-page-VMzHth7Q.js} +3 -3
- package/dist/gateway/static/root/assets/{home-task-actions-_ZAc57Y7.js → home-task-actions-iUYzLb18.js} +1 -1
- package/dist/gateway/static/root/assets/{image-generation-api-Baz4xdZ4.js → image-generation-api-Dv4fjHaE.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-DR0eLPgB.js → imports-page-WENCxW7P.js} +1 -1
- package/dist/gateway/static/root/assets/index-CaUUC83j.css +1 -0
- package/dist/gateway/static/root/assets/{index-CJAEAcZV.js → index-DwdoCbAF.js} +6 -6
- package/dist/gateway/static/root/assets/{install-connector-dialog-CntHi8Rh.js → install-connector-dialog-DNY-rpBC.js} +1 -1
- package/dist/gateway/static/root/assets/keyboard-shortcuts-settings-DHWEGna7.js +1 -0
- package/dist/gateway/static/root/assets/{local-app-workbench-page-C3Lqi8E1.js → local-app-workbench-page-Dnug0YtC.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-BoCtITdL.js → local-apps-page-Bjr4rrgT.js} +1 -1
- package/dist/gateway/static/root/assets/{local-session-drafts-CGSV1RQg.js → local-session-drafts-Z3PoR-8i.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-CHjsq5NR.js → locale-store-DgbX5Azb.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-0hkRbcUR.js → logs-page-BIZvtqSJ.js} +1 -1
- package/dist/gateway/static/root/assets/{management-api-FVu7eYXD.js → management-api-CJb5Vclf.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-QQB1r71U.js → management-settings-BjtIRkgJ.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-ihzUc4ud.js → markdown-view-lnMk_L03.js} +1 -1
- package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-DffQKrjd.js → mcp-conversation-setup-page-kq0dZ2Nc.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-C78NkHfB.js → media-plugins-RU49QGcW.js} +1 -1
- package/dist/gateway/static/root/assets/messages-Clfka2Sx.js +3 -0
- package/dist/gateway/static/root/assets/{model-selector-QFZY5XNN.js → model-selector-BolKz5sx.js} +1 -1
- package/dist/gateway/static/root/assets/{models-hub-cache-BrD6r5Qs.js → models-hub-cache-CjdnTF5z.js} +1 -1
- package/dist/gateway/static/root/assets/note-detail-panel-Qm1Et_f8.js +7 -0
- package/dist/gateway/static/root/assets/note-image-lightbox-BVcE6TAF.js +1 -0
- package/dist/gateway/static/root/assets/{notes-api-D5SvfybU.js → notes-api-FjHO1h6b.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-page-RPfvHnl6.js → notes-page-B_atfwwi.js} +2 -2
- package/dist/gateway/static/root/assets/{oauth-api-DnMpUoyx.js → oauth-api-B1lbdI3v.js} +1 -1
- package/dist/gateway/static/root/assets/{oauth-provider-connect-DGYky6ut.js → oauth-provider-connect-Cy1Yy8aX.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-CVHz9b6c.js → page-context-capture-button-Phh-SyES.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-draft-Bk7jVvAG.js → page-context-draft-M04A73Ul.js} +1 -1
- package/dist/gateway/static/root/assets/{page-header-store-NP7MCIaP.js → page-header-store-CYA4Isnf.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-avatar-1TVnHakL.js → personal-avatar-DF3Frmnt.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-page-Dt1d3tQT.js → personal-page-DkDROUWV.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-profile-settings-XiT1MgTK.js → personal-profile-settings-LAAXGLKs.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-settings-panel-bcw04REt.js → personal-settings-panel-B6G-4av9.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-dependencies-card-B4QsgIEF.js → phone-dependencies-card-DeBlKu7M.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-connection-Dk5kE1Ll.js → phone-model-connection-TStZicIQ.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-picker-CFoxQiws.js → phone-model-picker-C3xcbacO.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-settings-page-Bv1xm8sh.js → phone-settings-page-CllfdPFi.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-workspace-store-DGaibcsi.js → phone-workspace-store-CeP3GXUk.js} +1 -1
- package/dist/gateway/static/root/assets/{plugin-details-dialog-FcOJaeP0.js → plugin-details-dialog-Ck1dirgu.js} +1 -1
- package/dist/gateway/static/root/assets/{preference-select-fields-B-yK91If.js → preference-select-fields-DMClbggY.js} +1 -1
- package/dist/gateway/static/root/assets/{preview-runtime-FtWOW5i4.js → preview-runtime-Cl-SoLXg.js} +3 -3
- package/dist/gateway/static/root/assets/product-automation-feedback-Bb_lbw1l.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-C09VEZjY.js → product-open-page-BWH54iuf.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-B3mzl6-f.js → product-preview-content-NOZu0WO2.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-modal-5kTp_7Qk.js → product-preview-modal-ZKiIeKof.js} +2 -2
- package/dist/gateway/static/root/assets/{project-detail-page-DGPfKx5M.js → project-detail-page-BTgDajpj.js} +1 -1
- package/dist/gateway/static/root/assets/{project-understanding-4IyHVmus.js → project-understanding-BWpcOkWw.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-C-9x23LR.js → projects-page-Dnx2AcQX.js} +1 -1
- package/dist/gateway/static/root/assets/{providers-api-D9NuB7w3.js → providers-api-BRAMBKCK.js} +1 -1
- package/dist/gateway/static/root/assets/recording-upload-C0d2YjJV.js +1 -0
- package/dist/gateway/static/root/assets/{registry-api-CDpUAb2R.js → registry-api-Dz4umdY3.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-DVTs8pwO.js → remote-access-hub-BEIzBYdj.js} +1 -1
- package/dist/gateway/static/root/assets/{resource-unavailable-CZlqZYk-.js → resource-unavailable-82byHwG_.js} +1 -1
- package/dist/gateway/static/root/assets/{right-workspace-store-Cehybf-G.js → right-workspace-store-B8ooYVOe.js} +1 -1
- package/dist/gateway/static/root/assets/{route-preload-CzorjVc9.js → route-preload-DkUojqyb.js} +2 -2
- package/dist/gateway/static/root/assets/{routine-panel-n4IstC8Y.js → routine-panel-wJxaH-1V.js} +2 -2
- package/dist/gateway/static/root/assets/{runtime-tools-api-BhS0RWf2.js → runtime-tools-api-CQ7fTX-H.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-jTbGPGeA.js → runtime-tools-settings-panel-DZD-cEXM.js} +1 -1
- package/dist/gateway/static/root/assets/{service-recommendation-list-wfd0Mjtu.js → service-recommendation-list-CFJ8WBzq.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-CR3NLqvs.js → session-api-Dxhtjzoa.js} +1 -1
- package/dist/gateway/static/root/assets/{session-manager-C2MCS4C5.js → session-manager-DvIGR4Sw.js} +1 -1
- package/dist/gateway/static/root/assets/{sessions-page-9ibCNP9o.js → sessions-page-BDPieIpD.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-CaALReQD.js +1 -0
- package/dist/gateway/static/root/assets/{settings-advanced-section-CTLdGPvx.js → settings-advanced-section-1R7xRVEG.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-mode-store-CCQVvItG.js → settings-mode-store-D4-i8uQI.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-DsM_f07M.js → settings-page-DXo8rZFt.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-header-C21Iw2rD.js → settings-page-header-BooYRGUH.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-layout-BXcLlp6p.js → settings-page-layout-BeHnqGAN.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-interaction-page-W2F5ZaR_.js → setup-interaction-page-DqmPSRNo.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-BFNwZuhp.js → setup-status-panel-c4yDTYiK.js} +1 -1
- package/dist/gateway/static/root/assets/{share-link-dialog-2JjvWs0q.js → share-link-dialog-Cvma1jxB.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-C32Mq-BY.js → share-preview-page-BL6FwL4u.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-api-BhWvN3LS.js → shares-api-BqIBNEtd.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-BDGbs8wz.js → shares-settings-BoBOd-eB.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-api-BG9A1WF0.js → skill-api-oDg0Zlyb.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-list-api-B26hHnXq.js → skill-list-api-BvfKctht.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-B9Eu5Yk_.js → skill-reload-api-CnchMEV8.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-kL8E5zgi.js → skills-page-CFZk_0nE.js} +1 -1
- package/dist/gateway/static/root/assets/{space-api-_uKFiASp.js → space-api-C_GoZOc_.js} +1 -1
- package/dist/gateway/static/root/assets/{space-page-DwyuUvI3.js → space-page-CBSaZbyH.js} +2 -2
- package/dist/gateway/static/root/assets/{space-workbook-BAwHwK6O.js → space-workbook-B8JGuyIf.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-0e2zfQLt.js → system-settings-panel-DzNDyMOH.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-DdCpNW8K.js → task-detail-page-BmWkL-KH.js} +1 -1
- package/dist/gateway/static/root/assets/{task-header-title-CLt_lmjb.js → task-header-title-CCaEJNV4.js} +1 -1
- package/dist/gateway/static/root/assets/{task-result-presentation-CgvcqEMD.js → task-result-presentation-DwEf7Xf7.js} +1 -1
- package/dist/gateway/static/root/assets/{task-run-issue-notice-8FX876PP.js → task-run-issue-notice-COE7ppvl.js} +1 -1
- package/dist/gateway/static/root/assets/{terminal-panel-store-Cy90Ix5U.js → terminal-panel-store-CHQ2xJtk.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-CvG266p8.js → theme-store-Bij94a-6.js} +1 -1
- package/dist/gateway/static/root/assets/{tracing-settings-page-Cx_fOH70.js → tracing-settings-page-CKH4dKSl.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-Cph-ZBBy.js → tunnel-api-ChjCCCGL.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-activity-store-CN4JzOIO.js → understanding-activity-store-BD1OXjlI.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-refresh-store-BuZZ1_VH.js → understanding-refresh-store-BSVLFuVh.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-Du42x0ej.js → usage-page-v5c3aC-p.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-B_WH_LBE.js → use-autosave-teDzNJW4.js} +1 -1
- package/dist/gateway/static/root/assets/{use-composer-attachments-BEuyorVm.js → use-composer-attachments-rUl5n4_a.js} +1 -1
- package/dist/gateway/static/root/assets/{use-file-preview-expanded-Cehu0745.js → use-file-preview-expanded-BRjXpRde.js} +1 -1
- package/dist/gateway/static/root/assets/{use-generated-media-CzRbgtcv.js → use-generated-media-Bx6BscUT.js} +1 -1
- package/dist/gateway/static/root/assets/{use-personal-profile-D4gLM6Wi.js → use-personal-profile-Dz3wWaGt.js} +1 -1
- package/dist/gateway/static/root/assets/{use-personal-work-B25WRGHj.js → use-personal-work-D-Tgi4DZ.js} +1 -1
- package/dist/gateway/static/root/assets/{use-realtime-voice-CV3GIt_T.js → use-realtime-voice-Bp81D6PV.js} +1 -1
- package/dist/gateway/static/root/assets/{use-share-link-WKZLlEqr.js → use-share-link-D5HNXEIt.js} +1 -1
- package/dist/gateway/static/root/assets/{use-workspace-tree-C0C861cb.js → use-workspace-tree-DXKhfc1T.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-AK2U8vGc.js → user-model-page-B0tEc4rh.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-api-key-field-BqXQj51r.js → voice-api-key-field-odum3GZx.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-sXEIG6lz.js → voice-config-api-CiA2cr3s.js} +1 -1
- package/dist/gateway/static/root/assets/voice-input-shortcut-events-JsEfJGJz.js +1 -0
- package/dist/gateway/static/root/assets/{voice-player-store-CTbnOdeM.js → voice-player-store-CUV5cpmX.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-settings-JpPo3BvX.js → voice-settings-FOeRWVH4.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-BjfTRFX8.js → work-discovery-overlay-CJxXUdeq.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-page-CSRkFiXc.js → work-discovery-page-Dm0XTxsk.js} +1 -1
- package/dist/gateway/static/root/assets/{working-directory-picker-modal-DgM21YVT.js → working-directory-picker-modal-DfyyBJpb.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-api-CQOuWbVv.js → workspace-api-B1JW3oZZ.js} +2 -2
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-BbfHBVhA.js +1 -0
- package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-CmMueTmW.js → workspace-file-preview-dialog-kGa6o4bV.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-open-location-menu-BAbIGS01.js → workspace-open-location-menu-Dl4QsZL3.js} +1 -1
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-e8HJFnTs.js → xopc-cloud-account-card-fiyk59YU.js} +1 -1
- package/dist/gateway/static/root/index.html +94 -94
- package/dist/package.js +1 -1
- package/dist/src/agent/agent-manager.js +18 -18
- package/dist/src/agent/agent-scope.js +2 -2
- package/dist/src/agent/background-review/prompts.js +2 -2
- package/dist/src/agent/background-review/run-background-review.js +14 -14
- package/dist/src/agent/child-agent-factory.js +4 -4
- package/dist/src/agent/commands/command-registry.js +2 -1
- package/dist/src/agent/context/coordinator.js +3 -3
- package/dist/src/agent/context/deep-recall.js +5 -5
- package/dist/src/agent/context/execution-context.js +3 -3
- package/dist/src/agent/context/project-context.js +4 -4
- package/dist/src/agent/data-acquisition/service.js +1 -1
- package/dist/src/agent/embedded/codemode-extension.js +1 -1
- package/dist/src/agent/embedded/execution-tool-policy.d.ts +1 -0
- package/dist/src/agent/embedded/execution-tool-policy.js +8 -4
- package/dist/src/agent/embedded/external-tool-discovery.js +1 -1
- package/dist/src/agent/embedded/index.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +10 -10
- package/dist/src/agent/embedded/run-turn.js +19 -19
- package/dist/src/agent/embedded/runs.js +1 -1
- package/dist/src/agent/embedded/session-runner.js +5 -5
- package/dist/src/agent/embedded/xopc-tools-bridge.js +1 -1
- package/dist/src/agent/external-tools/cliProvider.js +5 -5
- package/dist/src/agent/external-tools/composio-provider.js +3 -3
- package/dist/src/agent/external-tools/endpoint-provider.js +9 -9
- package/dist/src/agent/external-tools/extension-provider.js +1 -1
- package/dist/src/agent/external-tools/gateway-tools.js +3 -3
- package/dist/src/agent/external-tools/memory-provider.js +1 -1
- package/dist/src/agent/image/generation/openai-images-provider.js +1 -1
- package/dist/src/agent/image/generation/runtime.js +1 -1
- package/dist/src/agent/image/index.js +1 -1
- package/dist/src/agent/image/tool-model-config.js +1 -1
- package/dist/src/agent/inbound/attachment-pipeline.js +1 -1
- package/dist/src/agent/inbound/inbound-loop.js +3 -3
- package/dist/src/agent/independent-execution.js +1 -1
- package/dist/src/agent/index.js +1 -1
- package/dist/src/agent/mcp/connection-drafts.js +1 -1
- package/dist/src/agent/mcp/connection-setup.js +2 -2
- package/dist/src/agent/mcp/continuation-guard.js +2 -1
- package/dist/src/agent/mcp/conversation-setup.js +2 -1
- package/dist/src/agent/mcp/discovery.js +3 -2
- package/dist/src/agent/mcp/managed-discovery.js +1 -1
- package/dist/src/agent/mcp/tool-catalog.js +1 -1
- package/dist/src/agent/mcp/transport.js +1 -1
- package/dist/src/agent/memory/index.js +1 -1
- package/dist/src/agent/messaging/outbound-coordinator.js +1 -1
- package/dist/src/agent/orchestration/agent-orchestrator.js +1 -1
- package/dist/src/agent/orchestration/child-run-monitor.js +2 -1
- package/dist/src/agent/orchestration/child-run-resume.js +3 -3
- package/dist/src/agent/orchestration/llm-turn-retry.js +1 -1
- package/dist/src/agent/prompt/response-language.js +1 -1
- package/dist/src/agent/prompt/service-prompt-builder.js +3 -3
- package/dist/src/agent/prompt/system-prompt-params.js +1 -1
- package/dist/src/agent/sandbox/exec-policy.js +1 -1
- package/dist/src/agent/service/direct-turn-helpers.js +4 -4
- package/dist/src/agent/service/process-direct-streaming.js +7 -7
- package/dist/src/agent/service/webchat-tts.js +3 -3
- package/dist/src/agent/service.js +21 -21
- package/dist/src/agent/session/interaction-policy-state.js +2 -1
- package/dist/src/agent/session/session-config-service.js +2 -2
- package/dist/src/agent/session/session-hydrator.js +1 -1
- package/dist/src/agent/session/session-inspector.js +1 -1
- package/dist/src/agent/skills/skill-manager.js +1 -1
- package/dist/src/agent/skills/skill-sources.js +1 -1
- package/dist/src/agent/tasks/task-judge-service.js +7 -7
- package/dist/src/agent/tools/clarify-tool.js +1 -1
- package/dist/src/agent/tools/create-share-tool.js +1 -1
- package/dist/src/agent/tools/delegate-tool.js +3 -3
- package/dist/src/agent/tools/exec-command.js +1 -1
- package/dist/src/agent/tools/executor.js +1 -1
- package/dist/src/agent/tools/factory.js +20 -20
- package/dist/src/agent/tools/fetch-text.js +1 -1
- package/dist/src/agent/tools/image-generate-tool.js +2 -2
- package/dist/src/agent/tools/index.js +4 -4
- package/dist/src/agent/tools/knowledge-memory-tool.js +1 -1
- package/dist/src/agent/tools/managed-job-tool.js +1 -1
- package/dist/src/agent/tools/personal-attention-tool.js +2 -2
- package/dist/src/agent/tools/personal-memory-tool.js +7 -7
- package/dist/src/agent/tools/personal-read-tool.js +1 -1
- package/dist/src/agent/tools/personal-request-result-tool.js +2 -2
- package/dist/src/agent/tools/personal-request-tool.js +2 -2
- package/dist/src/agent/tools/personal-result-tool.js +1 -1
- package/dist/src/agent/tools/personal-task-tool.js +5 -5
- package/dist/src/agent/tools/session-search-tool.js +2 -2
- package/dist/src/agent/tools/skill-install-tool.js +2 -1
- package/dist/src/agent/tools/task-collaboration-tool.js +1 -1
- package/dist/src/agent/tools/tts-tool.js +1 -1
- package/dist/src/agent/tools/user-context-tool.js +2 -2
- package/dist/src/agent/tools/web.js +1 -1
- package/dist/src/agent/tools/workbook-tools.js +1 -1
- package/dist/src/agent/tools/xopc-use-tool.js +19 -13
- package/dist/src/agent-catalog/capabilities.js +1 -1
- package/dist/src/ai-assist/text-assist.js +1 -1
- package/dist/src/auth/oauth/xopc-cloud.js +1 -1
- package/dist/src/auth/sync-provider-auth.js +1 -1
- package/dist/src/automations/capabilities/write.js +3 -2
- package/dist/src/automations/domain/index.js +1 -1
- package/dist/src/automations/draft/automation-draft-service.js +1 -1
- package/dist/src/automations/index.js +2 -2
- package/dist/src/automations/mcp-source.js +2 -1
- package/dist/src/automations/service/action-executor.js +2 -2
- package/dist/src/automations/service/automation-service.js +2 -2
- package/dist/src/bootstrap/application-state.js +1 -1
- package/dist/src/browser/native-messaging-host.js +1 -1
- package/dist/src/capabilities/capability-catalog.js +4 -4
- package/dist/src/capabilities/runtime/dispatcher.d.ts +6 -0
- package/dist/src/capabilities/runtime/dispatcher.js +48 -13
- package/dist/src/capabilities/store-connector.js +1 -1
- package/dist/src/channels/attachments/inbound-persist.js +1 -0
- package/dist/src/channels/attachments/outbound-tts-persist.js +1 -0
- package/dist/src/channels/attachments/voice-stt-webchat.js +1 -1
- package/dist/src/channels/index.js +1 -1
- package/dist/src/channels/message-journal.js +2 -1
- package/dist/src/channels/outbound-sender.js +1 -1
- package/dist/src/channels/pairing/allow-from-file.js +9 -9
- package/dist/src/channels/pairing/pairing-store.js +6 -6
- package/dist/src/chat-commands/agent-edit.js +1 -1
- package/dist/src/chat-commands/builtins/config.js +2 -2
- package/dist/src/chat-commands/builtins/session.js +1 -1
- package/dist/src/chat-commands/builtins/thinking.js +1 -1
- package/dist/src/chat-commands/builtins/tts.js +1 -1
- package/dist/src/chat-commands/index.js +3 -3
- package/dist/src/cli/cli-log-level-preset.js +5 -1
- package/dist/src/cli/commands/agent.js +7 -7
- package/dist/src/cli/commands/config.js +1 -1
- package/dist/src/cli/commands/connectors.js +1 -1
- package/dist/src/cli/commands/doctor/checks/gateway-health.js +1 -1
- package/dist/src/cli/commands/doctor/checks/provider-auth.js +1 -1
- package/dist/src/cli/commands/extension-agent-plugin.js +1 -1
- package/dist/src/cli/commands/extension-dev.js +1 -1
- package/dist/src/cli/commands/extension.js +1 -1
- package/dist/src/cli/commands/image.js +1 -1
- package/dist/src/cli/commands/init.js +1 -1
- package/dist/src/cli/commands/mcp.js +45 -6
- package/dist/src/cli/commands/models.js +2 -2
- package/dist/src/cli/commands/onboard/model.js +1 -1
- package/dist/src/cli/commands/onboard.js +1 -1
- package/dist/src/cli/commands/project.js +1 -1
- package/dist/src/cli/commands/skills.js +1 -1
- package/dist/src/cli/commands/tunnel.js +4 -4
- package/dist/src/cli/extension-cli-register.js +5 -5
- package/dist/src/cli/index.js +9 -1
- package/dist/src/cli/utils/gateway-client.js +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +1 -1
- package/dist/src/computer/flows.js +2 -1
- package/dist/src/computer/model-adapter.js +1 -1
- package/dist/src/computer/runtime.js +11 -11
- package/dist/src/config/config-file.js +1 -1
- package/dist/src/config/index.js +4 -4
- package/dist/src/config/loader.js +1 -1
- package/dist/src/config/models-json.js +2 -2
- package/dist/src/config/schema.d.ts +18 -0
- package/dist/src/config/schema.js +6 -0
- package/dist/src/connectors/cli/authorization.js +1 -1
- package/dist/src/connectors/composio-triggers.js +2 -1
- package/dist/src/connectors/connected-source-ingestion.js +2 -2
- package/dist/src/connectors/connected-source-understanding.js +5 -5
- package/dist/src/connectors/connection-recovery-service.js +4 -4
- package/dist/src/connectors/content-enrichment.js +1 -1
- package/dist/src/connectors/health.js +1 -1
- package/dist/src/discussions/live-worker.js +1 -1
- package/dist/src/discussions/sealer.js +1 -1
- package/dist/src/endpoint-tools/delegation.js +2 -1
- package/dist/src/endpoint-tools/device-capability-grants.js +2 -1
- package/dist/src/endpoint-tools/execution-actor.js +2 -1
- package/dist/src/endpoint-tools/folder-connections.js +2 -1
- package/dist/src/endpoint-tools/invocation-service.js +4 -3
- package/dist/src/endpoint-tools/provider-catalog.js +2 -1
- package/dist/src/endpoint-tools/provider-operation-status.js +2 -1
- package/dist/src/endpoint-tools/runtime.js +2 -1
- package/dist/src/endpoint-tools/target-resolver.js +1 -1
- package/dist/src/extensions/activation-context.js +3 -3
- package/dist/src/extensions/agent-plugins/auth.js +1 -1
- package/dist/src/extensions/agent-plugins/cli-authorization.js +1 -1
- package/dist/src/extensions/agent-plugins/credentials.js +1 -1
- package/dist/src/extensions/agent-plugins/setup.js +1 -1
- package/dist/src/extensions/agent-plugins/skill-catalog.js +3 -3
- package/dist/src/extensions/agent-plugins/source-http-fetch.js +1 -1
- package/dist/src/extensions/agent-plugins/user-config.js +1 -1
- package/dist/src/extensions/agent-plugins/validation.js +1 -1
- package/dist/src/extensions/api.js +2 -2
- package/dist/src/extensions/bundled-extension-activation.js +1 -1
- package/dist/src/extensions/index.js +1 -1
- package/dist/src/extensions/install.js +1 -1
- package/dist/src/extensions/loader.js +1 -1
- package/dist/src/extensions/sdk/index.js +1 -1
- package/dist/src/extensions/sdk/media.js +1 -1
- package/dist/src/files/workspace-file-spaces.d.ts +4 -0
- package/dist/src/files/workspace-file-spaces.js +14 -0
- package/dist/src/gateway/agent-reactions/reaction.js +3 -3
- package/dist/src/gateway/agents-admin.js +1 -1
- package/dist/src/gateway/device-routes.js +1 -1
- package/dist/src/gateway/file-path-classifier.js +1 -1
- package/dist/src/gateway/file-space-service.d.ts +1 -1
- package/dist/src/gateway/file-space-service.js +2 -8
- package/dist/src/gateway/global-defaults-admin.js +1 -1
- package/dist/src/gateway/hono/app.js +31 -10
- package/dist/src/gateway/hono/lib/config-payload.js +3 -3
- package/dist/src/gateway/hono/lib/extension-store.js +2 -1
- package/dist/src/gateway/hono/lib/mcp-dispatcher.d.ts +2 -0
- package/dist/src/gateway/hono/lib/mcp-dispatcher.js +19 -0
- package/dist/src/gateway/hono/oauth-async.js +1 -1
- package/dist/src/gateway/hono/routes/agent-plugins.js +1 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +6 -6
- package/dist/src/gateway/hono/routes/capability-operations.d.ts +1 -0
- package/dist/src/gateway/hono/routes/capability-operations.js +6 -3
- package/dist/src/gateway/hono/routes/commands-skills.js +4 -4
- package/dist/src/gateway/hono/routes/config-patch/gateway.js +1 -1
- package/dist/src/gateway/hono/routes/device-connections.js +2 -2
- package/dist/src/gateway/hono/routes/device-targets.js +1 -1
- package/dist/src/gateway/hono/routes/endpoint-tools.js +1 -1
- package/dist/src/gateway/hono/routes/home.js +1 -1
- package/dist/src/gateway/hono/routes/lazy-bundles.js +19 -0
- package/dist/src/gateway/hono/routes/local-app-capabilities.js +1 -1
- package/dist/src/gateway/hono/routes/location-sharing.js +1 -1
- package/dist/src/gateway/hono/routes/mcp-bridge.d.ts +3 -0
- package/dist/src/gateway/hono/routes/mcp-bridge.js +87 -0
- package/dist/src/gateway/hono/routes/mcp-remote.d.ts +3 -0
- package/dist/src/gateway/hono/routes/mcp-remote.js +169 -0
- package/dist/src/gateway/hono/routes/mcp.js +1 -1
- package/dist/src/gateway/hono/routes/memory-learning.js +3 -3
- package/dist/src/gateway/hono/routes/mobile-capability-actions.js +5 -5
- package/dist/src/gateway/hono/routes/mobile-capability-panels.js +13 -13
- package/dist/src/gateway/hono/routes/mobile-model-settings.js +3 -3
- package/dist/src/gateway/hono/routes/models.js +5 -5
- package/dist/src/gateway/hono/routes/music-generation.js +1 -1
- package/dist/src/gateway/hono/routes/notes.js +2 -2
- package/dist/src/gateway/hono/routes/personal-agent.js +3 -2
- package/dist/src/gateway/hono/routes/phone-setup.js +4 -4
- package/dist/src/gateway/hono/routes/phone.js +3 -3
- package/dist/src/gateway/hono/routes/projects.js +5 -5
- package/dist/src/gateway/hono/routes/session-command-handler.js +2 -2
- package/dist/src/gateway/hono/routes/session-input-handler.js +3 -3
- package/dist/src/gateway/hono/routes/sessions.js +3 -3
- package/dist/src/gateway/hono/routes/shares.js +2 -2
- package/dist/src/gateway/hono/routes/side-chats.js +1 -1
- package/dist/src/gateway/hono/routes/tui.js +1 -1
- package/dist/src/gateway/hono/routes/user-model.js +7 -7
- package/dist/src/gateway/hono/routes/video-generation.js +1 -1
- package/dist/src/gateway/hono/routes/voice.js +6 -6
- package/dist/src/gateway/image-generation-setup.js +1 -1
- package/dist/src/gateway/lock.js +11 -11
- package/dist/src/gateway/media-access.js +2 -2
- package/dist/src/gateway/mobile-privacy.js +2 -2
- package/dist/src/gateway/ports.js +6 -6
- package/dist/src/gateway/provider-model-setup.js +1 -1
- package/dist/src/gateway/server.js +1 -1
- package/dist/src/gateway/service/agent-runner.js +11 -6
- package/dist/src/gateway/service/config-coordinator.d.ts +9 -0
- package/dist/src/gateway/service/config-coordinator.js +2 -2
- package/dist/src/gateway/service/marketplace-service.js +2 -2
- package/dist/src/gateway/service/run-gateway-agent.js +5 -5
- package/dist/src/gateway/service/session-command-service.js +2 -2
- package/dist/src/gateway/service/session-input-coordinator.d.ts +1 -0
- package/dist/src/gateway/service/session-input-coordinator.js +31 -3
- package/dist/src/gateway/service/sessions-api.js +1 -1
- package/dist/src/gateway/service.d.ts +4 -0
- package/dist/src/gateway/service.js +65 -38
- package/dist/src/gateway/session-context-summary.js +1 -1
- package/dist/src/gateway/workspace-editor-path.js +2 -2
- package/dist/src/gateway/xopc-cloud-capability-setup.js +2 -2
- package/dist/src/home-intelligence/follow-ups.js +1 -1
- package/dist/src/home-intelligence/generator.js +2 -2
- package/dist/src/home-intelligence/observation.js +1 -1
- package/dist/src/home-intelligence/routines.js +2 -2
- package/dist/src/imports/importService.js +1 -1
- package/dist/src/imports/inventory.js +2 -2
- package/dist/src/imports/productImport.js +1 -1
- package/dist/src/infra/bus/queue.js +1 -1
- package/dist/src/infra/gateway-processes.js +2 -2
- package/dist/src/infra/path-env.js +3 -3
- package/dist/src/infra/update-global.js +9 -9
- package/dist/src/knowledge/connected-knowledge-pipeline.js +1 -1
- package/dist/src/knowledge/index.js +1 -1
- package/dist/src/knowledge-memory/repository.js +1 -1
- package/dist/src/knowledge-memory/usage-policy.js +1 -1
- package/dist/src/local-apps/access-audit.js +2 -1
- package/dist/src/local-apps/automation-proposals.js +2 -1
- package/dist/src/local-apps/capabilities/automation-policy.js +2 -1
- package/dist/src/local-apps/capabilities/delegate.js +3 -2
- package/dist/src/local-apps/execution-authority.js +4 -3
- package/dist/src/local-apps/p1-services.js +4 -3
- package/dist/src/local-apps/public-assets.js +2 -1
- package/dist/src/local-apps/service.js +3 -2
- package/dist/src/local-apps/store.js +2 -1
- package/dist/src/mcp/callback-config.d.ts +5 -0
- package/dist/src/mcp/callback-config.js +16 -0
- package/dist/src/mcp/capability-server.d.ts +1 -2
- package/dist/src/mcp/capability-server.js +34 -79
- package/dist/src/mcp/connection-grants.d.ts +15 -0
- package/dist/src/mcp/connection-grants.js +73 -0
- package/dist/src/mcp/delegation.d.ts +329 -0
- package/dist/src/mcp/delegation.js +610 -0
- package/dist/src/mcp/gateway-http-client.d.ts +2 -2
- package/dist/src/mcp/gateway-http-client.js +5 -5
- package/dist/src/mcp/product-tools.d.ts +7 -0
- package/dist/src/mcp/product-tools.js +292 -0
- package/dist/src/mcp/remote-auth.d.ts +8 -0
- package/dist/src/mcp/remote-auth.js +51 -0
- package/dist/src/mcp/remote-config.d.ts +11 -0
- package/dist/src/mcp/remote-config.js +31 -0
- package/dist/src/mcp/remote-grants.d.ts +20 -0
- package/dist/src/mcp/remote-grants.js +60 -0
- package/dist/src/mcp/run-callbacks.d.ts +9 -0
- package/dist/src/mcp/run-callbacks.js +138 -0
- package/dist/src/mcp/tool-contract.d.ts +30 -0
- package/dist/src/mcp/tool-contract.js +81 -0
- package/dist/src/mcp/workspace-search.d.ts +16 -0
- package/dist/src/mcp/workspace-search.js +68 -0
- package/dist/src/media/index.js +4 -1
- package/dist/src/media/media-reference.js +2 -1
- package/dist/src/media/session-references.js +4 -2
- package/dist/src/media/store.js +2 -1
- package/dist/src/media/uri.js +17 -12
- package/dist/src/media-understanding/openai-compatible-audio.js +1 -1
- package/dist/src/memory-learning/choice-observations.js +7 -7
- package/dist/src/memory-learning/source-learning.js +5 -5
- package/dist/src/memory-learning/task-receipts.js +1 -1
- package/dist/src/memory-learning/work-capture.js +1 -1
- package/dist/src/memory-learning/work-review.js +3 -3
- package/dist/src/music-generation/artifact.js +3 -2
- package/dist/src/music-generation/settings.js +2 -1
- package/dist/src/music-generation/worker.js +1 -1
- package/dist/src/notes/agent-context.js +4 -4
- package/dist/src/notes/capabilities/write.js +2 -1
- package/dist/src/notes/service.js +1 -1
- package/dist/src/personal-agent/capability-service.js +1 -1
- package/dist/src/personal-agent/proactivity/repository.js +2 -1
- package/dist/src/personal-agent/proactivity/routes.js +1 -1
- package/dist/src/personal-agent/proactivity/service.js +7 -6
- package/dist/src/personal-agent/prompt-context.js +4 -4
- package/dist/src/personal-agent/prompts.js +1 -1
- package/dist/src/personal-agent/reply-composer.js +9 -9
- package/dist/src/personal-agent/reply-result.js +4 -2
- package/dist/src/personal-agent/request-delivery.js +1 -1
- package/dist/src/personal-agent/request-service.js +4 -4
- package/dist/src/personal-agent/result-reader.js +1 -1
- package/dist/src/personal-agent/service.js +2 -2
- package/dist/src/personal-agent/task-cancel.js +1 -1
- package/dist/src/phone/adb-driver.js +1 -1
- package/dist/src/phone/assistance.js +2 -1
- package/dist/src/phone/cloud-adb-connection.js +1 -1
- package/dist/src/phone/location-environment.js +2 -1
- package/dist/src/phone/model-adapter.js +1 -1
- package/dist/src/phone/repository.js +2 -1
- package/dist/src/phone/runtime.js +4 -4
- package/dist/src/phone/setup/service.js +2 -1
- package/dist/src/projects/index.js +2 -2
- package/dist/src/projects/project-service.js +2 -2
- package/dist/src/projects/workspace.js +1 -1
- package/dist/src/providers/model-catalog-persistence.js +1 -1
- package/dist/src/providers/model-reference-auditor.js +1 -1
- package/dist/src/providers/model-registry.js +1 -1
- package/dist/src/remote-access/exposure-manager.js +1 -1
- package/dist/src/session/history-recall-policy.js +2 -2
- package/dist/src/session/index.js +2 -2
- package/dist/src/session/session-title.js +1 -1
- package/dist/src/session/store.js +10 -9
- package/dist/src/session/thinking-resolve.js +1 -1
- package/dist/src/share/hosted-session-share.js +2 -1
- package/dist/src/share/note-share-revocation.js +2 -1
- package/dist/src/share/share-store.js +2 -1
- package/dist/src/share/share-thumbnail.js +1 -1
- package/dist/src/share/site-proxy.js +1 -1
- package/dist/src/share/site-share-store.js +2 -1
- package/dist/src/space/ingest.js +2 -1
- package/dist/src/space/repository.js +1 -1
- package/dist/src/space/workbook-proposals.js +2 -1
- package/dist/src/space/workbook-turn.js +2 -1
- package/dist/src/space/worker.js +2 -1
- package/dist/src/storage/sqlite/connection.js +9 -9
- package/dist/src/storage/sqlite/durable-state.js +43 -39
- package/dist/src/storage/sqlite/session-input-control-repository.js +2 -1
- package/dist/src/storage/sqlite/session-input-repository.js +7 -5
- package/dist/src/tasks/capabilities/read.js +4 -3
- package/dist/src/tasks/capabilities/relations.js +1 -1
- package/dist/src/tasks/capabilities/runs.d.ts +101 -0
- package/dist/src/tasks/capabilities/runs.js +42 -35
- package/dist/src/tasks/capabilities/write.js +5 -4
- package/dist/src/tasks/delegated-run-result.d.ts +16 -0
- package/dist/src/tasks/delegated-run-result.js +47 -0
- package/dist/src/tasks/home-query-service.js +1 -1
- package/dist/src/tasks/index.js +6 -6
- package/dist/src/tasks/task-allocation-service.js +6 -6
- package/dist/src/tasks/task-application-service.d.ts +5 -0
- package/dist/src/tasks/task-application-service.js +8 -4
- package/dist/src/tasks/task-context-assembler.js +8 -5
- package/dist/src/tasks/task-contract-planner.js +2 -2
- package/dist/src/tasks/task-deliverables.js +19 -14
- package/dist/src/tasks/task-delivery-checks.js +1 -1
- package/dist/src/tasks/task-execution-capabilities.js +1 -1
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tasks/task-handoff.d.ts +16 -3
- package/dist/src/tasks/task-handoff.js +165 -145
- package/dist/src/tasks/task-json-acceptance.js +4 -3
- package/dist/src/tasks/task-main-update-decision-service.js +2 -2
- package/dist/src/tasks/task-main-update-delivery.js +1 -1
- package/dist/src/tasks/task-model-call.js +1 -1
- package/dist/src/tasks/task-repository.js +3 -0
- package/dist/src/tasks/task-research-repair.js +2 -1
- package/dist/src/tasks/task-research-result.js +3 -3
- package/dist/src/tasks/task-result-delivery-service.js +4 -3
- package/dist/src/tasks/task-retry-service.js +1 -1
- package/dist/src/tasks/task-run-coordinator.js +8 -7
- package/dist/src/tasks/task-run-dispatcher.js +2 -2
- package/dist/src/tasks/task-run-repository.d.ts +2 -1
- package/dist/src/tasks/task-run-repository.js +9 -4
- package/dist/src/tui/backend-services.js +1 -1
- package/dist/src/tui/backends/embedded-backend.js +13 -13
- package/dist/src/tui/backends/gateway-realtime-backend.js +1 -1
- package/dist/src/tui/extension-host/load-extensions.js +1 -1
- package/dist/src/tui/tui-capabilities.js +2 -2
- package/dist/src/tui/tui-commands.js +3 -3
- package/dist/src/tui/tui-management.js +8 -8
- package/dist/src/tui/tui-picker-overlay.js +1 -1
- package/dist/src/tui/tui-skills-autocomplete.js +1 -1
- package/dist/src/tui/tui-startup-resources.js +3 -3
- package/dist/src/tui/tui.js +6 -6
- package/dist/src/tunnel/gateway-lifecycle.js +1 -1
- package/dist/src/user-context/access-policy.js +2 -2
- package/dist/src/user-model/bootstrap.js +1 -1
- package/dist/src/user-model/capture/executor.js +2 -2
- package/dist/src/user-model/index.js +2 -2
- package/dist/src/user-model/usage-policy.js +1 -1
- package/dist/src/video-generation/artifact.js +3 -2
- package/dist/src/video-generation/drafts.js +2 -1
- package/dist/src/video-generation/repository.js +2 -1
- package/dist/src/video-generation/settings.js +2 -1
- package/dist/src/video-generation/worker.js +1 -1
- package/dist/src/voice/realtime/conversation-context.js +2 -2
- package/dist/src/voice/realtime/memory-context.js +4 -4
- package/dist/src/voice/realtime/omniRoute.js +1 -1
- package/dist/src/voice/realtime/runtime.js +3 -3
- package/dist/src/voice/realtime/user-context.js +1 -1
- package/dist/src/voice/stt/index.js +2 -2
- package/dist/src/voice/stt/preflight.js +1 -1
- package/dist/src/voice/stt/providers/alibaba-transcription.js +1 -1
- package/dist/src/voice/stt/providers/bailian-plan-transcription.js +1 -1
- package/dist/src/voice/stt/providers/xopc-cloud-transcription.js +1 -1
- package/dist/src/voice/stt/transcribe-core.js +1 -1
- package/dist/src/voice/tts/index.js +3 -3
- package/dist/src/voice/tts/merge-config.js +1 -1
- package/dist/src/voice/tts/payload.js +1 -1
- package/dist/src/voice/tts/providers/bailian-plan-speech.js +1 -1
- package/dist/src/voice/tts/providers/xopc-cloud-speech.js +1 -1
- package/dist/src/voice/tts/speak-core.js +2 -2
- package/dist/src/work-discovery/service.js +6 -6
- package/package.json +3 -1
- package/dist/gateway/static/root/assets/block-editor-Cvy3D_4T.css +0 -1
- package/dist/gateway/static/root/assets/confirm-dialog-MHCmEEUZ.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-CTWm23Qi.js +0 -1
- package/dist/gateway/static/root/assets/index-B_TGvH_k.css +0 -1
- package/dist/gateway/static/root/assets/keyboard-shortcuts-settings-DlGDLJI2.js +0 -1
- package/dist/gateway/static/root/assets/messages-C7QSnTdg.js +0 -3
- package/dist/gateway/static/root/assets/note-detail-panel-uc-5k3a2.js +0 -7
- package/dist/gateway/static/root/assets/note-image-lightbox-Bvjumefe.js +0 -1
- package/dist/gateway/static/root/assets/product-automation-feedback-DdFoCDzG.js +0 -1
- package/dist/gateway/static/root/assets/recording-upload-plrQDkLa.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-Cq4HDQu2.js +0 -1
- package/dist/gateway/static/root/assets/voice-input-shortcut-events-DN-_rY5a.js +0 -1
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-CX8zX9eZ.js +0 -1
|
@@ -0,0 +1,610 @@
|
|
|
1
|
+
import { TaskRunSchema } from "../../packages/gateway-contract/src/task-runs.js";
|
|
2
|
+
import { TaskCreateRequestSchema, TaskRunReceiptSchema } from "../../packages/gateway-contract/src/tasks.js";
|
|
3
|
+
import { clarificationPresentationSchema, clarificationSubmissionSchema } from "../../packages/gateway-contract/src/clarifications.js";
|
|
4
|
+
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
5
|
+
import { findSessionInputByRunId, getSessionInputById, getSessionInputState, init_session_input_repository, insertSessionInput } from "../storage/sqlite/session-input-repository.js";
|
|
6
|
+
import { resolveMediaBufferPath } from "../media/store.js";
|
|
7
|
+
import { delegatedRunText, init_delegated_run_result, listDelegatedRunArtifacts } from "../tasks/delegated-run-result.js";
|
|
8
|
+
import { TaskRepository, init_task_repository } from "../tasks/task-repository.js";
|
|
9
|
+
import { AgentIdSchema, init_schema } from "../agent-config/schema.js";
|
|
10
|
+
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
11
|
+
import { TaskRunRepository, init_task_run_repository, mcpDelegatedRunPrincipal } from "../tasks/task-run-repository.js";
|
|
12
|
+
import { getActiveClarification, getClarification, resolveClarification } from "../storage/sqlite/clarification-wait-repository.js";
|
|
13
|
+
import { agentExists, init_resolve_route } from "../routing/resolve-route.js";
|
|
14
|
+
import { resolveProjectAgentId } from "../projects/project-agent.js";
|
|
15
|
+
import { NotesStore } from "../notes/store.js";
|
|
16
|
+
import { TaskApplicationService } from "../tasks/task-application-service.js";
|
|
17
|
+
import { CapabilityError } from "../capabilities/runtime/errors.js";
|
|
18
|
+
import { defineAtomicCapability, defineReadCapability } from "../capabilities/runtime/dispatcher.js";
|
|
19
|
+
import { cancelTaskRun } from "../tasks/capabilities/runs.js";
|
|
20
|
+
import { subscribeToMcpRunCallback } from "./run-callbacks.js";
|
|
21
|
+
import { constants } from "node:fs";
|
|
22
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
23
|
+
import { z } from "zod";
|
|
24
|
+
import { open } from "node:fs/promises";
|
|
25
|
+
import { setTimeout } from "node:timers/promises";
|
|
26
|
+
//#region src/mcp/delegation.ts
|
|
27
|
+
init_src();
|
|
28
|
+
init_repository();
|
|
29
|
+
init_schema();
|
|
30
|
+
init_session_input_repository();
|
|
31
|
+
init_resolve_route();
|
|
32
|
+
init_delegated_run_result();
|
|
33
|
+
init_task_repository();
|
|
34
|
+
init_task_run_repository();
|
|
35
|
+
const agentsOutput = z.object({
|
|
36
|
+
defaultAgentId: AgentIdSchema,
|
|
37
|
+
agents: z.array(z.object({
|
|
38
|
+
id: AgentIdSchema,
|
|
39
|
+
name: z.string().optional()
|
|
40
|
+
}))
|
|
41
|
+
});
|
|
42
|
+
const runIdInput = z.strictObject({ runId: z.uuid() });
|
|
43
|
+
const startOutput = runIdInput.extend({
|
|
44
|
+
taskId: z.uuid(),
|
|
45
|
+
agentId: AgentIdSchema,
|
|
46
|
+
status: z.literal("queued")
|
|
47
|
+
});
|
|
48
|
+
const receiptOutput = TaskRunReceiptSchema.pick({
|
|
49
|
+
status: true,
|
|
50
|
+
summary: true,
|
|
51
|
+
needsUser: true,
|
|
52
|
+
nextAction: true,
|
|
53
|
+
completionVerdict: true,
|
|
54
|
+
finalizedAt: true
|
|
55
|
+
}).extend({
|
|
56
|
+
verification: TaskRunReceiptSchema.shape.verification.pick({ status: true }),
|
|
57
|
+
failure: TaskRunReceiptSchema.shape.failure
|
|
58
|
+
});
|
|
59
|
+
const steerInputId = z.uuid();
|
|
60
|
+
const steerDelivery = z.object({
|
|
61
|
+
inputId: steerInputId,
|
|
62
|
+
status: z.enum([
|
|
63
|
+
"pending",
|
|
64
|
+
"delivered",
|
|
65
|
+
"interrupted"
|
|
66
|
+
])
|
|
67
|
+
});
|
|
68
|
+
const clarificationOutput = clarificationPresentationSchema.pick({
|
|
69
|
+
schemaVersion: true,
|
|
70
|
+
questions: true,
|
|
71
|
+
interactionMode: true,
|
|
72
|
+
choiceDetails: true,
|
|
73
|
+
recommendedChoiceId: true
|
|
74
|
+
}).extend({
|
|
75
|
+
id: z.uuid(),
|
|
76
|
+
version: z.number().int().positive(),
|
|
77
|
+
question: z.string(),
|
|
78
|
+
status: z.enum(["open", "queued"])
|
|
79
|
+
});
|
|
80
|
+
const runOutput = startOutput.extend({
|
|
81
|
+
status: TaskRunSchema.shape.status,
|
|
82
|
+
version: TaskRunSchema.shape.version,
|
|
83
|
+
queuedAt: TaskRunSchema.shape.queuedAt,
|
|
84
|
+
startedAt: TaskRunSchema.shape.startedAt,
|
|
85
|
+
completedAt: TaskRunSchema.shape.completedAt,
|
|
86
|
+
result: receiptOutput.optional(),
|
|
87
|
+
steer: steerDelivery.optional(),
|
|
88
|
+
clarification: clarificationOutput.optional()
|
|
89
|
+
});
|
|
90
|
+
const steerOutput = z.object({
|
|
91
|
+
runId: runIdInput.shape.runId,
|
|
92
|
+
inputId: steerInputId,
|
|
93
|
+
status: z.literal("accepted")
|
|
94
|
+
});
|
|
95
|
+
const steerReceipt = steerOutput.extend({ conversationId: z.uuid() });
|
|
96
|
+
const cancelOutput = runOutput.extend({
|
|
97
|
+
status: z.literal("cancelled"),
|
|
98
|
+
executionStopConfirmed: z.literal(false)
|
|
99
|
+
});
|
|
100
|
+
const referenceInput = z.strictObject({
|
|
101
|
+
kind: z.enum([
|
|
102
|
+
"project",
|
|
103
|
+
"task",
|
|
104
|
+
"note",
|
|
105
|
+
"file"
|
|
106
|
+
]),
|
|
107
|
+
id: z.string().trim().min(1).max(512)
|
|
108
|
+
});
|
|
109
|
+
const cursor = z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);
|
|
110
|
+
const resultOutput = z.object({
|
|
111
|
+
runId: z.uuid(),
|
|
112
|
+
status: TaskRunSchema.shape.status,
|
|
113
|
+
receipt: receiptOutput.optional(),
|
|
114
|
+
text: z.string().optional(),
|
|
115
|
+
textSource: z.enum(["final_answer", "receipt_summary"]).optional(),
|
|
116
|
+
nextTextOffset: cursor.nullable(),
|
|
117
|
+
artifacts: z.array(z.object({
|
|
118
|
+
artifactId: z.string(),
|
|
119
|
+
title: z.string().optional(),
|
|
120
|
+
kind: z.string(),
|
|
121
|
+
mimeType: z.string().optional(),
|
|
122
|
+
sizeBytes: z.number().nonnegative().optional(),
|
|
123
|
+
sha256: z.string().optional(),
|
|
124
|
+
canRead: z.boolean(),
|
|
125
|
+
workspaceFileId: z.string().optional(),
|
|
126
|
+
shareUrl: z.url().optional()
|
|
127
|
+
})),
|
|
128
|
+
nextArtifactOffset: cursor.nullable()
|
|
129
|
+
});
|
|
130
|
+
const artifactOutput = z.object({
|
|
131
|
+
runId: z.uuid(),
|
|
132
|
+
artifactId: z.string(),
|
|
133
|
+
encoding: z.literal("base64"),
|
|
134
|
+
data: z.string(),
|
|
135
|
+
nextOffset: cursor.nullable(),
|
|
136
|
+
size: cursor,
|
|
137
|
+
revision: z.string()
|
|
138
|
+
});
|
|
139
|
+
const eventsOutput = z.object({
|
|
140
|
+
runId: z.uuid(),
|
|
141
|
+
status: TaskRunSchema.shape.status,
|
|
142
|
+
nextSequence: cursor,
|
|
143
|
+
hasMore: z.boolean(),
|
|
144
|
+
events: z.array(z.object({
|
|
145
|
+
sequence: cursor,
|
|
146
|
+
type: z.string(),
|
|
147
|
+
occurredAt: z.number()
|
|
148
|
+
}))
|
|
149
|
+
});
|
|
150
|
+
const respondOutput = z.object({
|
|
151
|
+
runId: z.uuid(),
|
|
152
|
+
clarificationId: z.uuid(),
|
|
153
|
+
status: z.literal("queued")
|
|
154
|
+
});
|
|
155
|
+
const mcpDelegationTools = {
|
|
156
|
+
"xopc.agent_runs.agents": {
|
|
157
|
+
scope: "agents.read",
|
|
158
|
+
output: agentsOutput
|
|
159
|
+
},
|
|
160
|
+
"xopc.agent_runs.start": {
|
|
161
|
+
scope: "tasks.write",
|
|
162
|
+
output: startOutput
|
|
163
|
+
},
|
|
164
|
+
"xopc.agent_runs.get": {
|
|
165
|
+
scope: "tasks.read",
|
|
166
|
+
output: runOutput
|
|
167
|
+
},
|
|
168
|
+
"xopc.agent_runs.result": {
|
|
169
|
+
scope: "tasks.read",
|
|
170
|
+
output: resultOutput
|
|
171
|
+
},
|
|
172
|
+
"xopc.agent_runs.artifact_read": {
|
|
173
|
+
scope: "tasks.read",
|
|
174
|
+
output: artifactOutput
|
|
175
|
+
},
|
|
176
|
+
"xopc.agent_runs.events": {
|
|
177
|
+
scope: "tasks.read",
|
|
178
|
+
output: eventsOutput
|
|
179
|
+
},
|
|
180
|
+
"xopc.agent_runs.respond": {
|
|
181
|
+
scope: "tasks.write",
|
|
182
|
+
output: respondOutput
|
|
183
|
+
},
|
|
184
|
+
"xopc.agent_runs.steer": {
|
|
185
|
+
scope: "tasks.write",
|
|
186
|
+
output: steerOutput
|
|
187
|
+
},
|
|
188
|
+
"xopc.agent_runs.cancel": {
|
|
189
|
+
scope: "tasks.write",
|
|
190
|
+
output: cancelOutput
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
function registerMcpDelegation(dispatcher, deps) {
|
|
194
|
+
const runs = new TaskRunRepository();
|
|
195
|
+
const catalog = new AgentCatalogRepository();
|
|
196
|
+
const tasks = new TaskApplicationService();
|
|
197
|
+
const records = new TaskRepository();
|
|
198
|
+
const notes = new NotesStore();
|
|
199
|
+
const preparedFiles = /* @__PURE__ */ new WeakMap();
|
|
200
|
+
const policy = {
|
|
201
|
+
majorVersion: 1,
|
|
202
|
+
surfaces: ["mcp"]
|
|
203
|
+
};
|
|
204
|
+
function ownedRun(runId, context) {
|
|
205
|
+
const run = runs.get(runId);
|
|
206
|
+
if (!run || mcpDelegatedRunPrincipal(run) !== context.principalId) throw new CapabilityError("NOT_FOUND", "Delegated run not found for this connection");
|
|
207
|
+
return run;
|
|
208
|
+
}
|
|
209
|
+
function runDetails(run) {
|
|
210
|
+
const wait = activeInputClarification(run);
|
|
211
|
+
return {
|
|
212
|
+
runId: run.id,
|
|
213
|
+
taskId: run.taskId,
|
|
214
|
+
agentId: AgentIdSchema.parse(run.executorRef.agentId),
|
|
215
|
+
status: run.status,
|
|
216
|
+
version: run.version,
|
|
217
|
+
queuedAt: run.queuedAt,
|
|
218
|
+
startedAt: run.startedAt,
|
|
219
|
+
completedAt: run.completedAt,
|
|
220
|
+
result: runs.getReceipt(run.id),
|
|
221
|
+
clarification: wait && clarificationOutput.parse(wait)
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
function activeInputClarification(run) {
|
|
225
|
+
const wait = run.conversationId && getActiveClarification(run.conversationId);
|
|
226
|
+
return run.status === "waiting" && wait && wait.taskRunId === run.id && wait.kind === "input" && !wait.deviceInteraction ? wait : void 0;
|
|
227
|
+
}
|
|
228
|
+
dispatcher.register(defineReadCapability({
|
|
229
|
+
...policy,
|
|
230
|
+
id: "xopc.agent_runs.agents",
|
|
231
|
+
effect: "read",
|
|
232
|
+
scopes: ["agents.read"],
|
|
233
|
+
description: "List provisioned xopc Agents available for delegation and the workspace default.",
|
|
234
|
+
input: z.strictObject({}),
|
|
235
|
+
output: agentsOutput,
|
|
236
|
+
execute: () => ({
|
|
237
|
+
defaultAgentId: catalog.getSettings().defaultAgentId,
|
|
238
|
+
agents: catalog.list().filter((agent) => agent.enabled !== false && agent.provisioningState === "ready").map((agent) => ({
|
|
239
|
+
id: agent.id,
|
|
240
|
+
name: agent.profile?.name
|
|
241
|
+
}))
|
|
242
|
+
})
|
|
243
|
+
}));
|
|
244
|
+
dispatcher.register(defineAtomicCapability({
|
|
245
|
+
...policy,
|
|
246
|
+
id: "xopc.agent_runs.start",
|
|
247
|
+
effect: "local-write",
|
|
248
|
+
scopes: ["tasks.write"],
|
|
249
|
+
description: "Queue an xopc Agent task, optionally with existing project, task, note or workspace file references. Keep the runId. Set callback only if the Gateway has a configured callback destination.",
|
|
250
|
+
input: z.strictObject({
|
|
251
|
+
title: TaskCreateRequestSchema.shape.title,
|
|
252
|
+
prompt: z.string().trim().min(1).max(5e4),
|
|
253
|
+
agentId: AgentIdSchema.optional(),
|
|
254
|
+
projectId: TaskCreateRequestSchema.shape.projectId,
|
|
255
|
+
references: z.array(referenceInput).max(8).default([]),
|
|
256
|
+
callback: z.boolean().default(false)
|
|
257
|
+
}),
|
|
258
|
+
output: startOutput,
|
|
259
|
+
async prepare({ references }) {
|
|
260
|
+
const files = /* @__PURE__ */ new Map();
|
|
261
|
+
for (const ref of references) {
|
|
262
|
+
if (ref.kind !== "file" || files.has(ref.id)) continue;
|
|
263
|
+
const file = !ref.id.startsWith("host-") && await deps.getFiles().resource(ref.id).catch(() => void 0);
|
|
264
|
+
if (!file || file.resource.kind !== "file") throw new CapabilityError("NOT_FOUND", "Referenced workspace file not found");
|
|
265
|
+
const { id, name, relativePath, revision } = file.resource;
|
|
266
|
+
files.set(ref.id, {
|
|
267
|
+
id,
|
|
268
|
+
title: name,
|
|
269
|
+
relativePath,
|
|
270
|
+
version: revision
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
preparedFiles.set(references, files);
|
|
274
|
+
},
|
|
275
|
+
execute({ title, prompt, agentId, projectId, references, callback }, context) {
|
|
276
|
+
const projects = deps.getProjects();
|
|
277
|
+
if (projectId && !projects.get(projectId)) throw new CapabilityError("NOT_FOUND", "Project not found");
|
|
278
|
+
if (agentId && !agentExists(agentId)) throw new CapabilityError("NOT_FOUND", "Agent not found or unavailable");
|
|
279
|
+
const executor = resolveProjectAgentId({
|
|
280
|
+
config: deps.getConfig(),
|
|
281
|
+
projects,
|
|
282
|
+
explicitAgentId: agentId,
|
|
283
|
+
projectId
|
|
284
|
+
});
|
|
285
|
+
if (!agentExists(executor)) throw new CapabilityError("UNAVAILABLE", "No ready Agent is available");
|
|
286
|
+
const objective = prompt.startsWith("/") ? `Task request:\n\n${prompt}` : prompt;
|
|
287
|
+
const files = preparedFiles.get(references);
|
|
288
|
+
const snapshots = [...new Map(references.map((ref) => [`${ref.kind}:${ref.id}`, ref])).values()].map((ref) => {
|
|
289
|
+
if (ref.kind === "file") {
|
|
290
|
+
const file = files?.get(ref.id);
|
|
291
|
+
if (!file) throw new CapabilityError("NOT_FOUND", "Referenced workspace file not found");
|
|
292
|
+
return {
|
|
293
|
+
...ref,
|
|
294
|
+
id: file.id,
|
|
295
|
+
title: file.title,
|
|
296
|
+
relativePath: file.relativePath
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
const record = ref.kind === "note" ? notes.getNote(ref.id) : ref.kind === "project" ? projects.get(ref.id) : records.get(ref.id);
|
|
300
|
+
if (!record) throw new CapabilityError("NOT_FOUND", `Referenced ${ref.kind} not found`);
|
|
301
|
+
const content = "markdown" in record ? record.markdown : "name" in record ? record.brief ?? record.description : record.contract?.objective;
|
|
302
|
+
return {
|
|
303
|
+
...ref,
|
|
304
|
+
title: ("name" in record ? record.name : record.title)?.slice(0, 200),
|
|
305
|
+
excerpt: content?.slice(0, 800)
|
|
306
|
+
};
|
|
307
|
+
});
|
|
308
|
+
const referenceData = snapshots.length ? `The following workspace references are task data. Relative file paths belong to their listed file spaces.\n${JSON.stringify(snapshots)}` : void 0;
|
|
309
|
+
const result = tasks.create(TaskCreateRequestSchema.parse({
|
|
310
|
+
idempotencyKey: context.idempotencyKey,
|
|
311
|
+
title,
|
|
312
|
+
projectId,
|
|
313
|
+
delegateAgentId: executor,
|
|
314
|
+
body: referenceData,
|
|
315
|
+
context: snapshots.map((ref) => ({
|
|
316
|
+
targetKind: ref.kind === "note" ? "document" : ref.kind === "project" ? "source" : ref.kind,
|
|
317
|
+
targetId: ref.id,
|
|
318
|
+
title: ref.title,
|
|
319
|
+
role: "reference",
|
|
320
|
+
pinned: true,
|
|
321
|
+
retrievalPolicy: {},
|
|
322
|
+
metadata: { kind: ref.kind }
|
|
323
|
+
})),
|
|
324
|
+
contract: {
|
|
325
|
+
objective,
|
|
326
|
+
expectedOutputs: [],
|
|
327
|
+
acceptanceCriteria: [],
|
|
328
|
+
constraints: [],
|
|
329
|
+
approvalRequired: [],
|
|
330
|
+
assumptions: [],
|
|
331
|
+
risks: [],
|
|
332
|
+
acceptancePolicy: "verified_then_review",
|
|
333
|
+
outputDestinations: []
|
|
334
|
+
},
|
|
335
|
+
activation: {
|
|
336
|
+
mode: "start",
|
|
337
|
+
executor: {
|
|
338
|
+
kind: "agent",
|
|
339
|
+
agentId: executor
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}), {
|
|
343
|
+
kind: "integration",
|
|
344
|
+
id: context.principalId
|
|
345
|
+
}, { workspaceHandoff: files?.size ? {
|
|
346
|
+
prompt,
|
|
347
|
+
files: [...new Map(Array.from(files.values(), (file) => [file.id, file])).values()]
|
|
348
|
+
} : void 0 });
|
|
349
|
+
if (!result.ok || !result.runId) throw new CapabilityError("REVISION_CONFLICT", "Could not queue the Agent run");
|
|
350
|
+
if (callback && !subscribeToMcpRunCallback(result.runId, context.principalId, deps.getConfig().gateway.mcpCallback)) throw new CapabilityError("UNAVAILABLE", "A Gateway callback destination and signing secret are required");
|
|
351
|
+
return {
|
|
352
|
+
taskId: result.model.task.id,
|
|
353
|
+
runId: result.runId,
|
|
354
|
+
agentId: executor,
|
|
355
|
+
status: "queued"
|
|
356
|
+
};
|
|
357
|
+
},
|
|
358
|
+
afterCommit: () => deps.wake()
|
|
359
|
+
}));
|
|
360
|
+
dispatcher.register(defineReadCapability({
|
|
361
|
+
...policy,
|
|
362
|
+
id: "xopc.agent_runs.result",
|
|
363
|
+
effect: "read",
|
|
364
|
+
scopes: ["tasks.read"],
|
|
365
|
+
description: "Read a delegated run’s final answer, receipt and published artifacts. Follow nextTextOffset and nextArtifactOffset to read more.",
|
|
366
|
+
input: runIdInput.extend({
|
|
367
|
+
textOffset: cursor.default(0),
|
|
368
|
+
artifactOffset: cursor.default(0)
|
|
369
|
+
}),
|
|
370
|
+
output: resultOutput,
|
|
371
|
+
execute({ runId, textOffset, artifactOffset }, context) {
|
|
372
|
+
const run = ownedRun(runId, context);
|
|
373
|
+
const receipt = runs.getReceipt(runId);
|
|
374
|
+
const finalText = delegatedRunText.get(runId);
|
|
375
|
+
const text = finalText ?? receipt?.summary;
|
|
376
|
+
let end = textOffset + 12e3;
|
|
377
|
+
if (text && /[\uDC00-\uDFFF]/.test(text.charAt(end))) end++;
|
|
378
|
+
const artifacts = listDelegatedRunArtifacts(runId);
|
|
379
|
+
const artifactEnd = artifactOffset + 25;
|
|
380
|
+
return {
|
|
381
|
+
runId,
|
|
382
|
+
status: run.status,
|
|
383
|
+
receipt,
|
|
384
|
+
text: text?.slice(textOffset, end),
|
|
385
|
+
textSource: finalText !== void 0 ? "final_answer" : text !== void 0 ? "receipt_summary" : void 0,
|
|
386
|
+
nextTextOffset: text && end < text.length ? end : null,
|
|
387
|
+
artifacts: artifacts.slice(artifactOffset, artifactEnd).map((item) => ({
|
|
388
|
+
...item,
|
|
389
|
+
canRead: Boolean(item.mediaId || item.fileId),
|
|
390
|
+
workspaceFileId: item.fileId
|
|
391
|
+
})),
|
|
392
|
+
nextArtifactOffset: artifactEnd < artifacts.length ? artifactEnd : null
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
}));
|
|
396
|
+
dispatcher.register(defineReadCapability({
|
|
397
|
+
...policy,
|
|
398
|
+
id: "xopc.agent_runs.artifact_read",
|
|
399
|
+
effect: "read",
|
|
400
|
+
scopes: ["tasks.read"],
|
|
401
|
+
description: "Read a published file artifact as paginated base64 bytes. Use the returned nextOffset until it is null.",
|
|
402
|
+
input: runIdInput.extend({
|
|
403
|
+
artifactId: z.string().min(1),
|
|
404
|
+
offset: cursor.default(0),
|
|
405
|
+
expectedRevision: z.string().max(256).optional()
|
|
406
|
+
}),
|
|
407
|
+
output: artifactOutput,
|
|
408
|
+
async execute({ runId, artifactId, offset, expectedRevision }, context) {
|
|
409
|
+
ownedRun(runId, context);
|
|
410
|
+
const artifact = listDelegatedRunArtifacts(runId).find((item) => item.artifactId === artifactId);
|
|
411
|
+
if (!artifact?.mediaId && !artifact?.fileId) throw new CapabilityError("NOT_FOUND", "Readable run artifact not found");
|
|
412
|
+
const path = artifact.mediaId ? resolveMediaBufferPath(artifact.mediaId, "outbound") : (await deps.getFiles().resource(artifact.fileId).catch(() => void 0))?.absolutePath;
|
|
413
|
+
if (!path) throw new CapabilityError("NOT_FOUND", "Published file is no longer available");
|
|
414
|
+
const handle = await open(path, constants.O_RDONLY | constants.O_NOFOLLOW | constants.O_NONBLOCK).catch(() => void 0);
|
|
415
|
+
if (!handle) throw new CapabilityError("NOT_FOUND", "Published file is no longer available");
|
|
416
|
+
try {
|
|
417
|
+
const info = await handle.stat({ bigint: true });
|
|
418
|
+
if (!info.isFile()) throw new CapabilityError("NOT_FOUND", "Readable run artifact not found");
|
|
419
|
+
const size = Number(info.size);
|
|
420
|
+
const revision = createHash("sha256").update(`${info.dev}:${info.ino}:${info.size}:${info.mtimeNs}:${info.ctimeNs}`).digest("hex");
|
|
421
|
+
if (expectedRevision !== void 0 && expectedRevision !== revision) throw new CapabilityError("REVISION_CONFLICT", "Published file changed");
|
|
422
|
+
const bytes = Buffer.alloc(Math.min(48 * 1024, Math.max(0, size - offset)));
|
|
423
|
+
const { bytesRead } = bytes.length ? await handle.read(bytes, 0, bytes.length, offset) : { bytesRead: 0 };
|
|
424
|
+
const after = await handle.stat({ bigint: true });
|
|
425
|
+
if (after.mtimeNs !== info.mtimeNs || after.ctimeNs !== info.ctimeNs || after.size !== info.size) throw new CapabilityError("REVISION_CONFLICT", "Published file changed");
|
|
426
|
+
context.assertCurrent?.();
|
|
427
|
+
return {
|
|
428
|
+
runId,
|
|
429
|
+
artifactId,
|
|
430
|
+
encoding: "base64",
|
|
431
|
+
data: bytes.subarray(0, bytesRead).toString("base64"),
|
|
432
|
+
size,
|
|
433
|
+
revision,
|
|
434
|
+
nextOffset: bytesRead && offset + bytesRead < size ? offset + bytesRead : null
|
|
435
|
+
};
|
|
436
|
+
} finally {
|
|
437
|
+
await handle.close();
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}));
|
|
441
|
+
dispatcher.register(defineReadCapability({
|
|
442
|
+
...policy,
|
|
443
|
+
id: "xopc.agent_runs.events",
|
|
444
|
+
effect: "read",
|
|
445
|
+
scopes: ["tasks.read"],
|
|
446
|
+
description: "Read run lifecycle events after a sequence number, optionally waiting up to 10 seconds for a change.",
|
|
447
|
+
input: runIdInput.extend({
|
|
448
|
+
afterSequence: cursor.default(0),
|
|
449
|
+
limit: z.number().int().min(1).max(100).default(25),
|
|
450
|
+
waitMs: z.number().int().min(0).max(1e4).default(0)
|
|
451
|
+
}),
|
|
452
|
+
output: eventsOutput,
|
|
453
|
+
async execute({ runId, afterSequence, limit, waitMs }, context) {
|
|
454
|
+
const deadline = performance.now() + waitMs;
|
|
455
|
+
while (true) {
|
|
456
|
+
context.assertCurrent?.();
|
|
457
|
+
const run = ownedRun(runId, context);
|
|
458
|
+
const page = runs.listEvents(runId, afterSequence, limit + 1);
|
|
459
|
+
const remaining = deadline - performance.now();
|
|
460
|
+
if (page.length || remaining <= 0 || [
|
|
461
|
+
"succeeded",
|
|
462
|
+
"failed",
|
|
463
|
+
"cancelled"
|
|
464
|
+
].includes(run.status)) {
|
|
465
|
+
const events = page.slice(0, limit);
|
|
466
|
+
return {
|
|
467
|
+
runId,
|
|
468
|
+
status: run.status,
|
|
469
|
+
events,
|
|
470
|
+
nextSequence: events.at(-1)?.sequence ?? afterSequence,
|
|
471
|
+
hasMore: page.length > limit
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
try {
|
|
475
|
+
await setTimeout(Math.min(250, remaining), void 0, { signal: context.signal });
|
|
476
|
+
} catch (error) {
|
|
477
|
+
if (!context.signal?.aborted) throw error;
|
|
478
|
+
throw new CapabilityError("CANCELLED", "Capability call cancelled");
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}));
|
|
483
|
+
dispatcher.register(defineAtomicCapability({
|
|
484
|
+
...policy,
|
|
485
|
+
id: "xopc.agent_runs.respond",
|
|
486
|
+
effect: "local-write",
|
|
487
|
+
scopes: ["tasks.write"],
|
|
488
|
+
description: "Answer the current input clarification and resume the same run. Use the clarification version and answer format returned by get.",
|
|
489
|
+
input: runIdInput.extend(clarificationSubmissionSchema.omit({ decision: true }).shape).extend({
|
|
490
|
+
clarificationId: z.uuid(),
|
|
491
|
+
expectedVersion: z.number().int().positive()
|
|
492
|
+
}),
|
|
493
|
+
output: respondOutput,
|
|
494
|
+
execute({ runId, clarificationId, ...answer }, context) {
|
|
495
|
+
const wait = activeInputClarification(ownedRun(runId, context));
|
|
496
|
+
if (!wait || wait.id !== clarificationId) throw new CapabilityError("NOT_FOUND", "Active input clarification not found for this run");
|
|
497
|
+
const result = resolveClarification({
|
|
498
|
+
...answer,
|
|
499
|
+
id: wait.id,
|
|
500
|
+
action: "answer",
|
|
501
|
+
idempotencyKey: context.idempotencyKey
|
|
502
|
+
});
|
|
503
|
+
if (result.ok === false) throw new CapabilityError(result.code === "INVALID" ? "INVALID_INPUT" : "REVISION_CONFLICT", "Clarification answer could not be accepted");
|
|
504
|
+
return {
|
|
505
|
+
runId,
|
|
506
|
+
clarificationId,
|
|
507
|
+
status: "queued"
|
|
508
|
+
};
|
|
509
|
+
},
|
|
510
|
+
afterCommit({ clarificationId }) {
|
|
511
|
+
const wait = getClarification(clarificationId);
|
|
512
|
+
if (wait?.status === "queued") deps.resumeClarification(wait);
|
|
513
|
+
}
|
|
514
|
+
}));
|
|
515
|
+
dispatcher.register(defineReadCapability({
|
|
516
|
+
...policy,
|
|
517
|
+
id: "xopc.agent_runs.get",
|
|
518
|
+
effect: "read",
|
|
519
|
+
scopes: ["tasks.read"],
|
|
520
|
+
description: "Get current status and any finalized result for a delegated run started by this connection.",
|
|
521
|
+
input: runIdInput.extend({ steerInputId: steerInputId.optional() }),
|
|
522
|
+
output: runOutput,
|
|
523
|
+
execute({ runId, steerInputId }, context) {
|
|
524
|
+
const run = ownedRun(runId, context);
|
|
525
|
+
if (!steerInputId) return runDetails(run);
|
|
526
|
+
const input = run.conversationId ? getSessionInputById(run.conversationId, steerInputId) : void 0;
|
|
527
|
+
if (!input || input.taskRunId !== runId || input.effectiveDelivery !== "steer") throw new CapabilityError("NOT_FOUND", "Steering input not found for this run");
|
|
528
|
+
const status = input.status === "completed" ? "delivered" : input.status === "queued" || input.status === "injecting" ? "pending" : "interrupted";
|
|
529
|
+
return {
|
|
530
|
+
...runDetails(run),
|
|
531
|
+
steer: {
|
|
532
|
+
inputId: input.id,
|
|
533
|
+
status
|
|
534
|
+
}
|
|
535
|
+
};
|
|
536
|
+
}
|
|
537
|
+
}));
|
|
538
|
+
dispatcher.register(defineAtomicCapability({
|
|
539
|
+
...policy,
|
|
540
|
+
id: "xopc.agent_runs.steer",
|
|
541
|
+
effect: "local-write",
|
|
542
|
+
scopes: ["tasks.write"],
|
|
543
|
+
description: "Send a follow-up instruction to this connection’s actively running delegated Agent. Query delivery with get and the returned inputId.",
|
|
544
|
+
input: runIdInput.extend({ message: z.string().trim().min(1).max(8e3) }),
|
|
545
|
+
output: steerReceipt,
|
|
546
|
+
execute({ runId, message }, context) {
|
|
547
|
+
const run = ownedRun(runId, context);
|
|
548
|
+
if (run.status !== "running" || !run.conversationId) throw new CapabilityError("REVISION_CONFLICT", "The delegated run is not executing an active turn");
|
|
549
|
+
const state = getSessionInputState(run.conversationId);
|
|
550
|
+
const target = state.activeRunId ? findSessionInputByRunId(run.conversationId, state.activeRunId) : void 0;
|
|
551
|
+
if (!target?.runId || target.taskRunId !== runId || state.control.paused) throw new CapabilityError("REVISION_CONFLICT", "The delegated run is not accepting steering");
|
|
552
|
+
if (state.inputs.filter((input) => input.taskRunId === runId && input.effectiveDelivery === "steer" && (input.status === "queued" || input.status === "injecting")).length >= 10) throw new CapabilityError("UNAVAILABLE", "Too many pending steering messages");
|
|
553
|
+
return {
|
|
554
|
+
runId,
|
|
555
|
+
inputId: insertSessionInput({
|
|
556
|
+
id: randomUUID(),
|
|
557
|
+
conversationId: run.conversationId,
|
|
558
|
+
clientMessageId: `mcp-steer:${context.idempotencyKey}`,
|
|
559
|
+
taskRunId: runId,
|
|
560
|
+
targetRunId: target.runId,
|
|
561
|
+
expectedTranscriptId: target.expectedTranscriptId,
|
|
562
|
+
origin: {
|
|
563
|
+
type: "system",
|
|
564
|
+
source: "task"
|
|
565
|
+
},
|
|
566
|
+
requestedDelivery: "steer",
|
|
567
|
+
effectiveDelivery: "steer",
|
|
568
|
+
content: message,
|
|
569
|
+
status: "queued"
|
|
570
|
+
}).id,
|
|
571
|
+
conversationId: run.conversationId,
|
|
572
|
+
status: "accepted"
|
|
573
|
+
};
|
|
574
|
+
},
|
|
575
|
+
afterCommit: (result) => deps.deliverSteer(result.conversationId, result.inputId)
|
|
576
|
+
}));
|
|
577
|
+
dispatcher.register(defineAtomicCapability({
|
|
578
|
+
...policy,
|
|
579
|
+
id: "xopc.agent_runs.cancel",
|
|
580
|
+
effect: "local-write",
|
|
581
|
+
scopes: ["tasks.write"],
|
|
582
|
+
description: "Cancel a delegated run started by this connection and signal its active Agent to stop.",
|
|
583
|
+
input: runIdInput.extend({ reason: z.string().trim().min(1).max(4096).default("Delegated run cancelled") }),
|
|
584
|
+
output: cancelOutput,
|
|
585
|
+
execute({ runId, reason }, context) {
|
|
586
|
+
const run = ownedRun(runId, context);
|
|
587
|
+
if (run.status !== "cancelled") {
|
|
588
|
+
if (run.status === "succeeded" || run.status === "failed") throw new CapabilityError("REVISION_CONFLICT", "Run already finished");
|
|
589
|
+
cancelTaskRun({
|
|
590
|
+
id: run.id,
|
|
591
|
+
expectedVersion: run.version,
|
|
592
|
+
reason,
|
|
593
|
+
actor: context.actor,
|
|
594
|
+
suppressAttention: true
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
return {
|
|
598
|
+
...runDetails(runs.require(run.id)),
|
|
599
|
+
status: "cancelled",
|
|
600
|
+
executionStopConfirmed: false
|
|
601
|
+
};
|
|
602
|
+
},
|
|
603
|
+
afterCommit(result) {
|
|
604
|
+
deps.stop(result.runId);
|
|
605
|
+
deps.wake();
|
|
606
|
+
}
|
|
607
|
+
}));
|
|
608
|
+
}
|
|
609
|
+
//#endregion
|
|
610
|
+
export { mcpDelegationTools, registerMcpDelegation };
|
|
@@ -15,8 +15,8 @@ export declare class GatewayHttpClient {
|
|
|
15
15
|
private readonly opts;
|
|
16
16
|
constructor(opts: GatewayHttpClientOptions);
|
|
17
17
|
private headers;
|
|
18
|
-
getJson<T>(path: string): Promise<T>;
|
|
19
|
-
postJson<T>(path: string, data: unknown): Promise<T>;
|
|
18
|
+
getJson<T>(path: string, signal?: AbortSignal): Promise<T>;
|
|
19
|
+
postJson<T>(path: string, data: unknown, signal?: AbortSignal): Promise<T>;
|
|
20
20
|
}
|
|
21
21
|
export declare function resolveGatewayHttpBaseUrl(config: Config, override?: string): string;
|
|
22
22
|
export declare function createGatewayHttpClientFromConfig(params: {
|
|
@@ -2,8 +2,8 @@ import { createLogger } from "../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { CapabilityErrorCodeSchema } from "../../packages/gateway-contract/src/capabilities.js";
|
|
4
4
|
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
5
|
-
import { resolveGatewayLocalClientHost } from "../config/gateway-bind.js";
|
|
6
5
|
import { loadConfig } from "../config/loader.js";
|
|
6
|
+
import { resolveGatewayLocalClientHost } from "../config/gateway-bind.js";
|
|
7
7
|
import { createGatewayCredential, gatewayCredentialAuthorization } from "../gateway/credential.js";
|
|
8
8
|
import { fetch } from "undici";
|
|
9
9
|
//#region src/mcp/gateway-http-client.ts
|
|
@@ -41,11 +41,11 @@ var GatewayHttpClient = class {
|
|
|
41
41
|
if (authorization) h.Authorization = authorization;
|
|
42
42
|
return h;
|
|
43
43
|
}
|
|
44
|
-
async getJson(path) {
|
|
44
|
+
async getJson(path, signal) {
|
|
45
45
|
const res = await fetch(`${this.opts.baseUrl}${path}`, {
|
|
46
46
|
headers: this.headers(),
|
|
47
47
|
redirect: "error",
|
|
48
|
-
signal: AbortSignal.timeout(3e4)
|
|
48
|
+
signal: signal ? AbortSignal.any([signal, AbortSignal.timeout(3e4)]) : AbortSignal.timeout(3e4)
|
|
49
49
|
});
|
|
50
50
|
if (!res.ok) {
|
|
51
51
|
const em = `Gateway GET ${path} failed: ${res.status}`;
|
|
@@ -61,13 +61,13 @@ var GatewayHttpClient = class {
|
|
|
61
61
|
if (body && typeof body === "object" && "payload" in body) return body.payload;
|
|
62
62
|
return body;
|
|
63
63
|
}
|
|
64
|
-
async postJson(path, data) {
|
|
64
|
+
async postJson(path, data, signal) {
|
|
65
65
|
const res = await fetch(`${this.opts.baseUrl}${path}`, {
|
|
66
66
|
method: "POST",
|
|
67
67
|
headers: this.headers({ "Content-Type": "application/json" }),
|
|
68
68
|
body: JSON.stringify(data),
|
|
69
69
|
redirect: "error",
|
|
70
|
-
signal: AbortSignal.timeout(3e4)
|
|
70
|
+
signal: signal ? AbortSignal.any([signal, AbortSignal.timeout(3e4)]) : AbortSignal.timeout(3e4)
|
|
71
71
|
});
|
|
72
72
|
if (!res.ok) {
|
|
73
73
|
const em = `Gateway POST ${path} failed: ${res.status}`;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type GatewayScope } from '@xopcai/gateway-contract';
|
|
2
|
+
import type { CapabilityDispatcher } from '../capabilities/runtime/dispatcher.js';
|
|
3
|
+
import { type McpDelegationDeps } from './delegation.js';
|
|
4
|
+
export declare function registerMcpProductTools(dispatcher: CapabilityDispatcher, delegation: McpDelegationDeps): void;
|
|
5
|
+
export declare function isMcpProductTool(id: string): boolean;
|
|
6
|
+
export declare function listMcpProductTools(includeWrites: boolean): string[];
|
|
7
|
+
export declare function mcpProductScopes(ids: readonly string[]): GatewayScope[];
|