@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { init_paths_state, resolveStateDir } from "../../config/paths-state.js";
|
|
2
2
|
import { init_write_file_atomic, writeTextAtomic, writeTextAtomicSync } from "../../infra/write-file-atomic.js";
|
|
3
|
-
import { pluginName } from "./validation.js";
|
|
4
3
|
import { CredentialResolver, init_credentials } from "../../auth/credentials.js";
|
|
5
4
|
import { isDangerousHostEnvVarName } from "../../infra/host-env-security.js";
|
|
5
|
+
import { pluginName } from "./validation.js";
|
|
6
6
|
import { join } from "node:path";
|
|
7
7
|
import { existsSync, readFileSync } from "node:fs";
|
|
8
8
|
import { createHash } from "node:crypto";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { CredentialResolver, init_credentials } from "../../auth/credentials.js";
|
|
1
2
|
import { parsePluginAuthorizationCheck, pluginAuthorizations, safeAuthorizationUrl } from "./setup-contract.js";
|
|
2
3
|
import { containedPath } from "./contained-path.js";
|
|
3
4
|
import { expandPluginVariables, resolvePluginCwd, validatePluginServer } from "./validation.js";
|
|
4
5
|
import { spawnProcess } from "../../process/run-process.js";
|
|
5
|
-
import { CredentialResolver, init_credentials } from "../../auth/credentials.js";
|
|
6
6
|
import { expandUserConfig, readPluginUserConfig } from "./user-config.js";
|
|
7
7
|
import { pluginNodeRuntime } from "./node-runtime.js";
|
|
8
8
|
import { homedir } from "node:os";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { init_paths_state, resolveStateDir } from "../../config/paths-state.js";
|
|
2
|
-
import { pluginName, pluginServerId } from "./validation.js";
|
|
3
2
|
import { CredentialResolver, init_credentials } from "../../auth/credentials.js";
|
|
3
|
+
import { pluginName, pluginServerId } from "./validation.js";
|
|
4
4
|
import { pluginCredentialProviderPrefix } from "./auth.js";
|
|
5
5
|
import { pluginOAuthCredentialId } from "./mcp-adapter.js";
|
|
6
6
|
import { createNativeMcpCredentials } from "../../agent/mcp/credential-store.js";
|
|
@@ -7,12 +7,12 @@ import { pluginName, pluginServerId } from "./validation.js";
|
|
|
7
7
|
import { AgentPluginStore } from "./store.js";
|
|
8
8
|
import { readPluginAuthBinding, savePluginAuthBinding, savePluginOAuthReference } from "./auth.js";
|
|
9
9
|
import { pluginConfigMissing, readPluginUserConfig, savePluginUserConfig } from "./user-config.js";
|
|
10
|
-
import { cancelPluginCliAuthorizations, getPluginCliAuthorization, inspectPluginCliAuthorization, startPluginCliAuthorization } from "./cli-authorization.js";
|
|
11
10
|
import { materializePluginServers } from "./mcp-adapter.js";
|
|
12
11
|
import { connectionFingerprint, matchingReusableConnection } from "./connection-reuse.js";
|
|
13
12
|
import { createNativeMcpCredentials } from "../../agent/mcp/credential-store.js";
|
|
14
13
|
import { getNativePiAgentDir } from "../../agent/mcp/native-mcp.js";
|
|
15
14
|
import { cancelMcpAuthorization, getMcpAuthorization, probeMcpConnection, startMcpAuthorization, submitMcpRedirect } from "../../agent/mcp/connection-setup.js";
|
|
15
|
+
import { cancelPluginCliAuthorizations, getPluginCliAuthorization, inspectPluginCliAuthorization, startPluginCliAuthorization } from "./cli-authorization.js";
|
|
16
16
|
import { join } from "node:path";
|
|
17
17
|
import { existsSync, readFileSync } from "node:fs";
|
|
18
18
|
import { randomUUID } from "node:crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { containedPath } from "./contained-path.js";
|
|
2
|
-
import "./validation.js";
|
|
3
|
-
import { AgentPluginStore } from "./store.js";
|
|
4
1
|
import { parseFrontmatter } from "../../markdown/frontmatter.js";
|
|
5
2
|
import { createSkillConfigManager } from "../../agent/skills/config.js";
|
|
6
3
|
import { parseSkillLocalizations } from "../../agent/skills/parse-skill-metadata.js";
|
|
4
|
+
import { containedPath } from "./contained-path.js";
|
|
5
|
+
import "./validation.js";
|
|
6
|
+
import { AgentPluginStore } from "./store.js";
|
|
7
7
|
import { buildSkillMarkdownPreviewFromRaw } from "../../agent/skills/skill-markdown-preview-from-raw.js";
|
|
8
8
|
import { agentPluginInventoryRow } from "./inventory.js";
|
|
9
9
|
import { basename, dirname } from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BlockList, isIP } from "node:net";
|
|
2
|
-
import { lookup } from "node:dns";
|
|
3
2
|
import { Agent, fetch } from "undici";
|
|
3
|
+
import { lookup } from "node:dns";
|
|
4
4
|
//#region src/extensions/agent-plugins/source-http-fetch.ts
|
|
5
5
|
const blocked = new BlockList();
|
|
6
6
|
for (const [network, prefix] of [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { init_write_file_atomic, writeTextAtomicSync } from "../../infra/write-file-atomic.js";
|
|
2
|
+
import { CredentialResolver, init_credentials } from "../../auth/credentials.js";
|
|
2
3
|
import { pluginAuthorizations } from "./setup-contract.js";
|
|
3
4
|
import { pluginName } from "./validation.js";
|
|
4
|
-
import { CredentialResolver, init_credentials } from "../../auth/credentials.js";
|
|
5
5
|
import { pluginCredentialProviderPrefix } from "./auth.js";
|
|
6
6
|
import { join } from "node:path";
|
|
7
7
|
import { existsSync, readFileSync } from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { McpOAuthConfigSchema, init_schema } from "../../config/schema.js";
|
|
1
2
|
import { pluginAuthorizations, safeAuthorizationUrl } from "./setup-contract.js";
|
|
2
3
|
import { pluginCapabilityAccess } from "./capability-access.js";
|
|
3
4
|
import { normalizePluginMcpServer } from "./mcp-format.js";
|
|
4
|
-
import { McpOAuthConfigSchema, init_schema } from "../../config/schema.js";
|
|
5
5
|
import { containedPath } from "./contained-path.js";
|
|
6
6
|
import { pluginResources } from "./resources.js";
|
|
7
7
|
import { collectPluginSkillFiles, readPluginLayout } from "./formats.js";
|
|
@@ -2,10 +2,10 @@ import { createLogger } from "../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { getProviderRegistry, init_plugin_registry } from "../providers/plugin-registry.js";
|
|
4
4
|
import { registerMarketplaceAdapter, unregisterMarketplaceAdapter } from "../agent/skills/marketplace/registry.js";
|
|
5
|
-
import { registerMediaUnderstandingProvider } from "../media-understanding/registry.js";
|
|
6
5
|
import { registerSpeechProvider } from "../voice/tts/speech-registry.js";
|
|
7
|
-
import {
|
|
6
|
+
import { registerMediaUnderstandingProvider } from "../media-understanding/registry.js";
|
|
8
7
|
import { commandRegistry } from "../chat-commands/registry.js";
|
|
8
|
+
import { HOOK_EXECUTION_MODES } from "./types/hooks.js";
|
|
9
9
|
import { TypedEventBus } from "./typed-event-bus.js";
|
|
10
10
|
import { ExtensionRegistryImpl } from "./extension-registry-impl.js";
|
|
11
11
|
import { registerMigration } from "../migrations/registry.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isBundledChannelExtension } from "../channels/bundled-channel-extensions.js";
|
|
2
|
-
import { ActivationPlanner } from "./activation-planner.js";
|
|
3
2
|
import { mergeActivationContext } from "./activation-context.js";
|
|
3
|
+
import { ActivationPlanner } from "./activation-planner.js";
|
|
4
4
|
//#region src/extensions/bundled-extension-activation.ts
|
|
5
5
|
/**
|
|
6
6
|
* Compute `extensions` config changes for enabling/disabling a bundled extension from the gateway UI.
|
|
@@ -2,12 +2,12 @@ import { normalizeExtensionManifest } from "./normalize-manifest.js";
|
|
|
2
2
|
import { areExtensionsGloballyDisabled, discoverExtensionsFromDisk } from "./discover-extensions.js";
|
|
3
3
|
import { ManifestRegistry } from "./manifest-registry.js";
|
|
4
4
|
import { buildExtensionMetadataSnapshot, resolveExtensionLoaderOptionsFromConfig } from "./extension-metadata-snapshot.js";
|
|
5
|
+
import { collectConfiguredChannelIds, collectConfiguredProviderIds, mergeActivationContext } from "./activation-context.js";
|
|
5
6
|
import { HOOK_EXECUTION_MODES } from "./types/hooks.js";
|
|
6
7
|
import { BUILTIN_PROVIDERS } from "./types/providers.js";
|
|
7
8
|
import { ExtensionRegistryImpl } from "./extension-registry-impl.js";
|
|
8
9
|
import { ExtensionApiImpl, createExtensionLogger, createPathResolver } from "./api.js";
|
|
9
10
|
import { ActivationPlanner } from "./activation-planner.js";
|
|
10
|
-
import { collectConfiguredChannelIds, collectConfiguredProviderIds, mergeActivationContext } from "./activation-context.js";
|
|
11
11
|
import { ExtensionLoader, normalizeExtensionConfig, resolveExtensionPath } from "./loader.js";
|
|
12
12
|
import { listOnboardChannels, listOnboardProviders, resolveProviderForModel } from "./onboard-helpers.js";
|
|
13
13
|
import { ExtensionHookRunner, createHookContext, isHookEvent } from "./hooks.js";
|
|
@@ -9,8 +9,8 @@ import { collectExtensionPackageDependencyIssues } from "./package-contract.js";
|
|
|
9
9
|
import { dirname, isAbsolute, join, resolve, sep } from "path";
|
|
10
10
|
import { cpSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, writeFileSync } from "fs";
|
|
11
11
|
import { execFileSync } from "node:child_process";
|
|
12
|
-
import AdmZip from "adm-zip";
|
|
13
12
|
import semver from "semver";
|
|
13
|
+
import AdmZip from "adm-zip";
|
|
14
14
|
import { tmpdir } from "os";
|
|
15
15
|
//#region src/extensions/install.ts
|
|
16
16
|
/**
|
|
@@ -7,10 +7,10 @@ import { getProviderRegistry, init_plugin_registry } from "../providers/plugin-r
|
|
|
7
7
|
import { normalizeExtensionManifest } from "./normalize-manifest.js";
|
|
8
8
|
import { areExtensionsGloballyDisabled, discoverExtensionsFromDisk } from "./discover-extensions.js";
|
|
9
9
|
import { ManifestRegistry } from "./manifest-registry.js";
|
|
10
|
+
import { mergeActivationContext } from "./activation-context.js";
|
|
10
11
|
import { ExtensionRegistryImpl } from "./extension-registry-impl.js";
|
|
11
12
|
import { ExtensionApiImpl, createExtensionLogger, createPathResolver } from "./api.js";
|
|
12
13
|
import { ActivationPlanner } from "./activation-planner.js";
|
|
13
|
-
import { mergeActivationContext } from "./activation-context.js";
|
|
14
14
|
import { checkEngineCompatibility } from "./engine-check.js";
|
|
15
15
|
import { validateSpeechProviderContracts } from "./speech-provider-contracts.js";
|
|
16
16
|
import { validateMediaUnderstandingProviderContracts } from "./media-provider-contracts.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ProviderPluginRegistry, getProviderRegistry, init_plugin_registry } from "../../providers/plugin-registry.js";
|
|
2
|
+
import { defineChannelPluginEntry } from "./channel-entry.js";
|
|
2
3
|
import { HOOK_EXECUTION_MODES } from "../types/hooks.js";
|
|
3
4
|
import { TypedEventBus } from "../typed-event-bus.js";
|
|
4
5
|
import { ExtensionRegistryImpl } from "../extension-registry-impl.js";
|
|
@@ -7,7 +8,6 @@ import { DEFAULT_SECURITY_CONFIG, checkExtensionDirSafety, checkExtensionPathSaf
|
|
|
7
8
|
import { SlotRegistry, getSlotRegistry, registerSlotType } from "../slots.js";
|
|
8
9
|
import { ExtensionDiagnostics, ExtensionLoaderCacheImpl, getExtensionCache, getExtensionDiagnostics } from "../diagnostics.js";
|
|
9
10
|
import { ExtensionHookRunner, createHookContext, isHookEvent } from "../hooks.js";
|
|
10
|
-
import { defineChannelPluginEntry } from "./channel-entry.js";
|
|
11
11
|
import { registerExtensionCliProgram } from "./channel-helpers.js";
|
|
12
12
|
import { lazyFunction, lazyModule } from "./lazy.js";
|
|
13
13
|
import { createMockExtensionApi, createTestGateway } from "./testing.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getMediaUnderstandingProvider, listMediaUnderstandingProviders, registerMediaUnderstandingProvider } from "../../media-understanding/registry.js";
|
|
2
1
|
import { ProviderHttpError, assertOkOrThrowHttpError } from "../../media-shared/http/provider-http-errors.js";
|
|
3
2
|
import { SsrfBlockedError, assertSafeUrl } from "../../media-shared/http/ssrf-guard.js";
|
|
4
3
|
import { fetchWithTimeoutGuarded, normalizeBaseUrl, postMultipartRequest } from "../../media-shared/http/provider-http.js";
|
|
5
4
|
import "../../media-shared/http/index.js";
|
|
5
|
+
import { getMediaUnderstandingProvider, listMediaUnderstandingProviders, registerMediaUnderstandingProvider } from "../../media-understanding/registry.js";
|
|
6
6
|
import { buildAudioTranscriptionFormData, createOpenAiCompatibleAudioProvider, registerOpenAiCompatibleAudioProvider, resolveAudioTranscriptionUploadFileName, transcribeOpenAiCompatibleAudio } from "../../media-understanding/openai-compatible-audio.js";
|
|
7
7
|
export { ProviderHttpError, SsrfBlockedError, assertOkOrThrowHttpError, assertSafeUrl, buildAudioTranscriptionFormData, createOpenAiCompatibleAudioProvider, fetchWithTimeoutGuarded, getMediaUnderstandingProvider, listMediaUnderstandingProviders, normalizeBaseUrl, postMultipartRequest, registerMediaUnderstandingProvider, registerOpenAiCompatibleAudioProvider, resolveAudioTranscriptionUploadFileName, transcribeOpenAiCompatibleAudio };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Config } from '../config/schema.js';
|
|
2
|
+
import { ProjectService } from '../projects/project-service.js';
|
|
3
|
+
import { FileSpaceService } from './file-service.js';
|
|
4
|
+
export declare function createWorkspaceFileSpaceService(getConfig: () => Config, projects?: ProjectService, resolveSessionWorkspace?: (conversationId: string) => string | Promise<string>): FileSpaceService;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { getSessionConfig, listSessionWorkspaceOverrides } from "../storage/sqlite/config-repository.js";
|
|
2
|
+
import { ProjectService } from "../projects/project-service.js";
|
|
3
|
+
import { effectiveWorkspacePathForSession } from "../session/session-workspace.js";
|
|
4
|
+
import { getProjectForSession } from "../projects/workspace.js";
|
|
5
|
+
import { FileSpaceService } from "./file-service.js";
|
|
6
|
+
//#region src/files/workspace-file-spaces.ts
|
|
7
|
+
function createWorkspaceFileSpaceService(getConfig, projects = new ProjectService(), resolveSessionWorkspace = (conversationId) => effectiveWorkspacePathForSession(getConfig(), conversationId, getSessionConfig(conversationId), getProjectForSession(conversationId))) {
|
|
8
|
+
return new FileSpaceService(getConfig, projects, resolveSessionWorkspace, () => listSessionWorkspaceOverrides().map(({ conversationId, workingDirectoryOverride }) => ({
|
|
9
|
+
conversationId,
|
|
10
|
+
root: effectiveWorkspacePathForSession(getConfig(), conversationId, { workingDirectoryOverride }, getProjectForSession(conversationId))
|
|
11
|
+
})));
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { createWorkspaceFileSpaceService };
|
|
@@ -7,11 +7,11 @@ import { getActiveConnectionWait, init_connection_wait_repository } from "../../
|
|
|
7
7
|
import { getCurrentTranscriptId, init_session_repository } from "../../storage/sqlite/session-repository.js";
|
|
8
8
|
import { getActiveClarification } from "../../storage/sqlite/clarification-wait-repository.js";
|
|
9
9
|
import { getSessionConfig } from "../../storage/sqlite/config-repository.js";
|
|
10
|
-
import { resolveEffectiveAgentConfigForAgent } from "../../config/agent-profile.js";
|
|
11
10
|
import { init_providers, resolveModel } from "../../providers/index.js";
|
|
12
|
-
import { completeWithResolvedCredentials } from "../../providers/model-call.js";
|
|
13
|
-
import { stripRuntimeContextFromUserMessage } from "../../session/user-message-display.js";
|
|
14
11
|
import { resolveMessageReactionsEnabled } from "../../personal-agent/repository.js";
|
|
12
|
+
import { resolveEffectiveAgentConfigForAgent } from "../../config/agent-profile.js";
|
|
13
|
+
import { stripRuntimeContextFromUserMessage } from "../../session/user-message-display.js";
|
|
14
|
+
import { completeWithResolvedCredentials } from "../../providers/model-call.js";
|
|
15
15
|
import { flattenMessageContent } from "../../session/client-history.js";
|
|
16
16
|
import { activeReactionEntry, commitAgentReaction, hasActiveReactionInput, reactionCoolingDown, recentAgentReactionEmojis } from "../../storage/sqlite/agent-reaction-repository.js";
|
|
17
17
|
import { setImmediate, setTimeout } from "node:timers/promises";
|
|
@@ -3,8 +3,8 @@ import { AgentCatalogRepository, init_repository } from "../agent-catalog/reposi
|
|
|
3
3
|
import { init_agent_scope, listAgentEntries, resolveAgentProfileDir, resolveAgentWorkspaceDir, resolveDefaultAgentId, resolveUserPath } from "../agent/agent-scope.js";
|
|
4
4
|
import { resolveEffectiveAgentProfile } from "../config/agent-profile.js";
|
|
5
5
|
import { AGENT_PROFILE_MARKDOWN_SYSTEM_FILES, REQUIRED_AGENT_PROFILE_MARKDOWN_FILE_SET } from "../agent/context/workspace.js";
|
|
6
|
-
import { isPathUnderWorkspace, resolveWorkspaceSafePath } from "./workspace-editor-path.js";
|
|
7
6
|
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
7
|
+
import { isPathUnderWorkspace, resolveWorkspaceSafePath } from "./workspace-editor-path.js";
|
|
8
8
|
import { GATEWAY_BUILTIN_TOOL_IDS } from "./agent-builtin-tools.js";
|
|
9
9
|
import { resolve } from "node:path";
|
|
10
10
|
import { mkdir, readFile, realpath, stat, unlink, writeFile } from "node:fs/promises";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveReverseProxyPublicUrl } from "./public-url.js";
|
|
2
|
-
import { getTunnelService } from "../tunnel/tunnel-service.js";
|
|
3
2
|
import { getTailscaleExposureState } from "./tailscale-lifecycle.js";
|
|
3
|
+
import { getTunnelService } from "../tunnel/tunnel-service.js";
|
|
4
4
|
import crypto from "node:crypto";
|
|
5
5
|
//#region src/gateway/device-routes.ts
|
|
6
6
|
function secureUrl(value) {
|
|
@@ -2,8 +2,8 @@ import { init_paths_state, resolveStateDir } from "../config/paths-state.js";
|
|
|
2
2
|
import { init_agent_scope, resolveAgentProfileDir } from "../agent/agent-scope.js";
|
|
3
3
|
import { init_paths, resolveConfigPath, resolveSkillsDir } from "../config/paths.js";
|
|
4
4
|
import { extractProfileAgentId } from "../config/agent-profile.js";
|
|
5
|
-
import { isPathUnderWorkspace } from "./workspace-editor-path.js";
|
|
6
5
|
import { isBareProfileMarkdownFileName, resolveProfileMarkdownPathIfBareName } from "../agent/tools/tool-paths.js";
|
|
6
|
+
import { isPathUnderWorkspace } from "./workspace-editor-path.js";
|
|
7
7
|
import { homedir } from "node:os";
|
|
8
8
|
import { basename, isAbsolute, resolve } from "node:path";
|
|
9
9
|
import { stat } from "node:fs/promises";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FileSpaceService } from '../files/file-service.js';
|
|
1
|
+
import type { FileSpaceService } from '../files/file-service.js';
|
|
2
2
|
type GatewayFileSpaceHost = {
|
|
3
3
|
currentConfig: ConstructorParameters<typeof FileSpaceService>[0] extends () => infer T ? T : never;
|
|
4
4
|
projects: ConstructorParameters<typeof FileSpaceService>[1];
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { effectiveWorkspacePathForSession } from "../session/session-workspace.js";
|
|
3
|
-
import { getProjectForSession } from "../projects/workspace.js";
|
|
4
|
-
import { FileSpaceService } from "../files/file-service.js";
|
|
1
|
+
import { createWorkspaceFileSpaceService } from "../files/workspace-file-spaces.js";
|
|
5
2
|
//#region src/gateway/file-space-service.ts
|
|
6
3
|
const services = /* @__PURE__ */ new WeakMap();
|
|
7
4
|
/** Share the file registry, including session-specific spaces, across gateway routes. */
|
|
8
5
|
function getGatewayFileSpaceService(service) {
|
|
9
6
|
const existing = services.get(service);
|
|
10
7
|
if (existing) return existing;
|
|
11
|
-
const created =
|
|
12
|
-
conversationId,
|
|
13
|
-
root: effectiveWorkspacePathForSession(service.currentConfig, conversationId, { workingDirectoryOverride }, getProjectForSession(conversationId))
|
|
14
|
-
})));
|
|
8
|
+
const created = createWorkspaceFileSpaceService(() => service.currentConfig, service.projects, (conversationId) => service.sessions.getEffectiveWorkspacePath(conversationId));
|
|
15
9
|
services.set(service, created);
|
|
16
10
|
return created;
|
|
17
11
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AgentDefaultsSchema } from "../agent-config/schema.js";
|
|
2
2
|
import { init_agent_config } from "../agent-config/index.js";
|
|
3
3
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
4
|
-
import { validatePhoneModelChange } from "../phone/model-adapter.js";
|
|
5
4
|
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
6
5
|
import { validateComputerModelChange } from "../computer/model-config.js";
|
|
7
6
|
import { GATEWAY_BUILTIN_TOOLS } from "./agent-builtin-tools.js";
|
|
7
|
+
import { validatePhoneModelChange } from "../phone/model-adapter.js";
|
|
8
8
|
import { isDeepStrictEqual } from "node:util";
|
|
9
9
|
//#region src/gateway/global-defaults-admin.ts
|
|
10
10
|
init_agent_config();
|
|
@@ -5,13 +5,15 @@ import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
|
5
5
|
import { resolveAllowedBrowserOrigins, resolveGatewayServiceListenPort } from "../host.js";
|
|
6
6
|
import { listDevices } from "../../storage/sqlite/device-access-repository.js";
|
|
7
7
|
import { ENDPOINT_MAX_FILE_BYTES, init_src as init_src$1 } from "../../../packages/endpoint-tools-protocol/src/index.js";
|
|
8
|
+
import { REMOTE_MCP_PATH, init_remote_config } from "../../mcp/remote-config.js";
|
|
8
9
|
import { resolveReverseProxyPublicUrl } from "../public-url.js";
|
|
10
|
+
import { BROWSER_EXTENSION_ID } from "../../browser/extension-identity.js";
|
|
9
11
|
import { resolveGatewayEffectiveHost } from "../../config/gateway-bind.js";
|
|
10
|
-
import { loadTunnelState } from "../../tunnel/tunnel-state.js";
|
|
11
12
|
import { maxSessionInputRequestBodyBytes } from "../chat-limits.js";
|
|
12
|
-
import { BROWSER_EXTENSION_ID } from "../../browser/extension-identity.js";
|
|
13
13
|
import { isLoopbackIpAddress, isTrustedProxyAddress } from "../client-ip.js";
|
|
14
|
+
import { loadTunnelState } from "../../tunnel/tunnel-state.js";
|
|
14
15
|
import "../html-preview-shell.js";
|
|
16
|
+
import { MCP_BRIDGE_PATH, authenticateMcpConnection, getMcpBearerToken } from "../../mcp/connection-grants.js";
|
|
15
17
|
import { buildGatewayConsoleCspHeader } from "../security/csp.js";
|
|
16
18
|
import { checkBrowserOrigin, isChromeExtensionOrigin } from "../security/origin-check.js";
|
|
17
19
|
import { auth } from "./middleware/auth.js";
|
|
@@ -37,6 +39,7 @@ import { getConnInfo } from "@hono/node-server/conninfo";
|
|
|
37
39
|
//#region src/gateway/hono/app.ts
|
|
38
40
|
init_src();
|
|
39
41
|
init_src$1();
|
|
42
|
+
init_remote_config();
|
|
40
43
|
init_logger();
|
|
41
44
|
const log = createLogger("Gateway:App");
|
|
42
45
|
/**
|
|
@@ -205,11 +208,25 @@ function createHonoApp(config) {
|
|
|
205
208
|
}, 413);
|
|
206
209
|
}
|
|
207
210
|
}));
|
|
211
|
+
app.use(MCP_BRIDGE_PATH, async (c, next) => {
|
|
212
|
+
const host = c.req.header("host") ?? "";
|
|
213
|
+
const token = getMcpBearerToken(c.req.header("Authorization"));
|
|
214
|
+
if (!isLoopbackIpAddress(resolveRequestRemoteAddress(c)) || !/^(127\.0\.0\.1|localhost|\[::1\])(?::[0-9]+)?$/i.test(host) || [
|
|
215
|
+
"origin",
|
|
216
|
+
"forwarded",
|
|
217
|
+
"x-forwarded-for",
|
|
218
|
+
"x-forwarded-host",
|
|
219
|
+
"x-forwarded-proto",
|
|
220
|
+
"x-real-ip"
|
|
221
|
+
].some((header) => c.req.header(header) !== void 0) || !authenticateMcpConnection(token)) return c.json({ code: "FORBIDDEN" }, 403);
|
|
222
|
+
await next();
|
|
223
|
+
});
|
|
208
224
|
app.use("/api/*", async (c, next) => {
|
|
209
225
|
const contentType = c.req.header("content-type");
|
|
210
226
|
const isAttachmentInputRequest = c.req.method === "POST" && c.req.path === "/api/tasks" || c.req.method === "POST" && /^\/api\/sessions\/[^/]+\/inputs$/.test(c.req.path) || c.req.method === "POST" && /^\/api\/tasks\/[^/]+\/inputs$/.test(c.req.path) || c.req.method === "PATCH" && /^\/api\/sessions\/[^/]+\/inputs\/[^/]+$/.test(c.req.path);
|
|
211
227
|
const isEndpointUpload = c.req.method === "POST" && /^\/api\/endpoint-tools\/invocations\/[^/]+\/files$/.test(c.req.path);
|
|
212
|
-
const
|
|
228
|
+
const isVideoUpload = c.req.method === "POST" && /^\/api\/video-generation\/sessions\/[^/]+\/jobs$/.test(c.req.path);
|
|
229
|
+
const maxSize = c.req.path === "/api/mcp/bridge" ? 16 * 1024 * 1024 : isVideoUpload ? VIDEO_IMAGE_MAX_BYTES + 64 * 1024 : isEndpointUpload ? ENDPOINT_MAX_FILE_BYTES : isAttachmentInputRequest ? SESSION_INPUT_BODY_MAX : c.req.path === "/api/skills/upload" ? SKILL_UPLOAD_BODY_MAX : c.req.path === "/api/voice/transcriptions" ? VOICE_TRANSCRIBE_BODY_MAX : c.req.path === "/api/media" && c.req.method === "POST" ? MEDIA_UPLOAD_BODY_MAX : isNoteMediaUploadRequest(c.req.path, c.req.method, contentType) ? NOTE_MEDIA_BODY_MAX : isFileUploadRequest(c.req.path, c.req.method, contentType) ? NOTE_MEDIA_BODY_MAX : discussionUploadBodyMax(c.req.path, c.req.method, contentType) ?? DEFAULT_API_BODY_MAX;
|
|
213
230
|
const maxSizeMb = Math.ceil(maxSize / (1024 * 1024));
|
|
214
231
|
return bodyLimit({
|
|
215
232
|
maxSize,
|
|
@@ -238,7 +255,7 @@ function createHonoApp(config) {
|
|
|
238
255
|
registerPublicLocalAppPreviewRoutes(app, service);
|
|
239
256
|
const authenticated = new Hono();
|
|
240
257
|
authenticated.use(routeErrorMiddleware());
|
|
241
|
-
|
|
258
|
+
const gatewayAuth = auth({
|
|
242
259
|
getGatewayAuth: () => service.currentConfig.gateway?.auth,
|
|
243
260
|
getResolvedAuth: () => service.getResolvedAuth(),
|
|
244
261
|
isPublicTunnelEnabled: () => service.currentConfig.tunnel?.enabled === true,
|
|
@@ -246,8 +263,10 @@ function createHonoApp(config) {
|
|
|
246
263
|
trustedProxies: service.currentConfig.gateway?.trustedProxies,
|
|
247
264
|
allowRealIpFallback: service.currentConfig.gateway?.allowRealIpFallback === true
|
|
248
265
|
})
|
|
249
|
-
})
|
|
250
|
-
|
|
266
|
+
});
|
|
267
|
+
const enforceGatewayScopes = gatewayScopes();
|
|
268
|
+
authenticated.use((c, next) => c.req.path === "/api/mcp/bridge" ? next() : gatewayAuth(c, next));
|
|
269
|
+
authenticated.use((c, next) => c.req.path === "/api/mcp/bridge" ? next() : enforceGatewayScopes(c, next));
|
|
251
270
|
const strictRateLimitMiddleware = createStrictRateLimitMiddleware({ getTrustedProxyContext: () => ({
|
|
252
271
|
trustedProxies: service.currentConfig.gateway?.trustedProxies,
|
|
253
272
|
allowRealIpFallback: service.currentConfig.gateway?.allowRealIpFallback === true
|
|
@@ -268,16 +287,18 @@ function createHonoApp(config) {
|
|
|
268
287
|
trustedProxies: service.currentConfig.gateway?.trustedProxies,
|
|
269
288
|
allowRealIpFallback: service.currentConfig.gateway?.allowRealIpFallback === true
|
|
270
289
|
}) });
|
|
290
|
+
const xopcCloudPollRateLimitMiddleware = createXopcCloudPollRateLimitMiddleware({ getTrustedProxyContext: () => ({
|
|
291
|
+
trustedProxies: service.currentConfig.gateway?.trustedProxies,
|
|
292
|
+
allowRealIpFallback: service.currentConfig.gateway?.allowRealIpFallback === true
|
|
293
|
+
}) });
|
|
294
|
+
app.use(REMOTE_MCP_PATH, strictRateLimitMiddleware);
|
|
271
295
|
registerAuthenticatedRoutes(app, authenticated, {
|
|
272
296
|
service,
|
|
273
297
|
strictRateLimitMiddleware,
|
|
274
298
|
chatRateLimitMiddleware,
|
|
275
299
|
mediaRateLimitMiddleware,
|
|
276
300
|
taskRateLimitMiddleware,
|
|
277
|
-
xopcCloudPollRateLimitMiddleware
|
|
278
|
-
trustedProxies: service.currentConfig.gateway?.trustedProxies,
|
|
279
|
-
allowRealIpFallback: service.currentConfig.gateway?.allowRealIpFallback === true
|
|
280
|
-
}) }),
|
|
301
|
+
xopcCloudPollRateLimitMiddleware,
|
|
281
302
|
channelRateLimitMiddleware
|
|
282
303
|
});
|
|
283
304
|
const prewarm = prewarmStaticUiCache();
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { normalizeAgentId } from "../../../agent-catalog/id.js";
|
|
2
2
|
import { AgentCatalogRepository, init_repository } from "../../../agent-catalog/repository.js";
|
|
3
3
|
import { init_agent_scope, listAgentEntries, resolveDefaultAgentId } from "../../../agent/agent-scope.js";
|
|
4
|
-
import { resolveModelsJsonPath } from "../../../config/paths.js";
|
|
5
4
|
import { ContextPlanningConfigSchema, KnowledgeMemoryConfigSchema, UserModelConfigSchema, init_config } from "../../../user-context/config.js";
|
|
5
|
+
import { resolveModelsJsonPath } from "../../../config/paths.js";
|
|
6
6
|
import { init_models_json, loadModelsJson } from "../../../config/models-json.js";
|
|
7
7
|
import { CredentialResolver, init_credentials } from "../../../auth/credentials.js";
|
|
8
8
|
import { getProviderRegistry, init_plugin_registry } from "../../../providers/plugin-registry.js";
|
|
9
9
|
import { getAllProviders, init_providers, isProviderConfigured } from "../../../providers/index.js";
|
|
10
10
|
import { normalizeConfiguredMcpServers } from "../../../config/mcp-config-normalize.js";
|
|
11
|
-
import { resolveShareConfig } from "../../../share/share-config.js";
|
|
12
|
-
import { maskTunnelSecretForWeb } from "../../../tunnel/env.js";
|
|
13
11
|
import { buildChannelCatalogForConfig, buildChannelCatalogFromSnapshot, getChannelSetupStatus } from "../../../channels/catalog/channel-catalog-service.js";
|
|
14
12
|
import { resolveSessionConfigForWeb, resolveUpdateConfigForWeb } from "../../../config/web-patch.js";
|
|
15
13
|
import { GENERIC_MASKED_SECRET, maskSecretLength } from "./mask-secret-length.js";
|
|
16
14
|
import { safeToolsWebForGet } from "../../config-tools-web.js";
|
|
15
|
+
import { maskTunnelSecretForWeb } from "../../../tunnel/env.js";
|
|
16
|
+
import { resolveShareConfig } from "../../../share/share-config.js";
|
|
17
17
|
import { redactEnterpriseChannelSecret } from "../../../channels/enterprise/config-surface.js";
|
|
18
18
|
import { voiceSettingsRevisions } from "./voice-settings-revisions.js";
|
|
19
19
|
import { buildSafeProvidersConfigForWeb } from "./safe-providers-config.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { DurableState } from "../../../storage/sqlite/durable-state.js";
|
|
1
|
+
import { DurableState, init_durable_state } from "../../../storage/sqlite/durable-state.js";
|
|
2
2
|
//#region src/gateway/hono/lib/extension-store.ts
|
|
3
|
+
init_durable_state();
|
|
3
4
|
const state = new DurableState("extension-ui");
|
|
4
5
|
function validateNamespace(namespace) {
|
|
5
6
|
if (!namespace.trim()) throw new Error("Extension namespace is required");
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { getGatewayFileSpaceService } from "../../file-space-service.js";
|
|
2
|
+
import { registerMcpProductTools } from "../../../mcp/product-tools.js";
|
|
3
|
+
import { createGatewayProductDispatcher } from "../routes/capability-operations.js";
|
|
4
|
+
//#region src/gateway/hono/lib/mcp-dispatcher.ts
|
|
5
|
+
function createGatewayMcpDispatcher(service) {
|
|
6
|
+
const dispatcher = createGatewayProductDispatcher({ service });
|
|
7
|
+
registerMcpProductTools(dispatcher, {
|
|
8
|
+
getConfig: () => service.currentConfig,
|
|
9
|
+
getProjects: () => service.projects,
|
|
10
|
+
getFiles: () => getGatewayFileSpaceService(service),
|
|
11
|
+
wake: () => service.dispatchTaskRuns(),
|
|
12
|
+
stop: (runId) => service.stopDelegatedTaskRun(runId),
|
|
13
|
+
deliverSteer: (conversationId, inputId) => service.deliverDelegatedTaskSteer(conversationId, inputId),
|
|
14
|
+
resumeClarification: (wait) => service.resumeDelegatedRunClarification(wait)
|
|
15
|
+
});
|
|
16
|
+
return dispatcher;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { createGatewayMcpDispatcher };
|
|
@@ -3,9 +3,9 @@ import { init_logger } from "../../utils/logger.js";
|
|
|
3
3
|
import { isLoopbackHost } from "../host.js";
|
|
4
4
|
import { getOAuthProviderInterfaces, init_registry } from "../../auth/oauth/registry.js";
|
|
5
5
|
import { CredentialResolver, init_credentials } from "../../auth/credentials.js";
|
|
6
|
+
import { resolveReverseProxyPublicUrl } from "../public-url.js";
|
|
6
7
|
import { buildCapabilityPlansForConfig } from "../../capabilities/readiness/from-config.js";
|
|
7
8
|
import "../../capabilities/readiness/index.js";
|
|
8
|
-
import { resolveReverseProxyPublicUrl } from "../public-url.js";
|
|
9
9
|
import { applyXopcCloudCapabilitySetup } from "../xopc-cloud-capability-setup.js";
|
|
10
10
|
import { Hono } from "hono";
|
|
11
11
|
//#region src/gateway/hono/oauth-async.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PluginSelectionRequired } from "../../../extensions/agent-plugins/source-catalog.js";
|
|
2
2
|
import { AgentPluginStore } from "../../../extensions/agent-plugins/store.js";
|
|
3
|
+
import { savePluginAuthBinding } from "../../../extensions/agent-plugins/auth.js";
|
|
3
4
|
import { getWorkspacePath } from "../../../config/workspace-path-helpers.js";
|
|
4
5
|
import { agentPluginInventoryRow } from "../../../extensions/agent-plugins/inventory.js";
|
|
5
|
-
import { savePluginAuthBinding } from "../../../extensions/agent-plugins/auth.js";
|
|
6
6
|
import { cancelPluginCliAuthorizations } from "../../../extensions/agent-plugins/cli-authorization.js";
|
|
7
7
|
import { PluginSetupService, setupActionSchema } from "../../../extensions/agent-plugins/setup.js";
|
|
8
8
|
import { evictAllEmbeddedSessionRunners } from "../../../agent/embedded/session-runner.js";
|
|
@@ -5,18 +5,18 @@ import { getAllModels, getAvailableModels, init_providers } from "../../../provi
|
|
|
5
5
|
import { listAutomations } from "../../../automations/storage/automation-repository.js";
|
|
6
6
|
import "../../../automations/storage/index.js";
|
|
7
7
|
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
8
|
+
import { isBundledChannelExtension } from "../../../channels/bundled-channel-extensions.js";
|
|
8
9
|
import { listAgentPluginInventory } from "../../../extensions/agent-plugins/inventory.js";
|
|
10
|
+
import { fetchRegistry, listExtensions, searchExtensions } from "../../../extensions/marketplace.js";
|
|
11
|
+
import { mergeActivationContext } from "../../../extensions/activation-context.js";
|
|
12
|
+
import { ActivationPlanner } from "../../../extensions/activation-planner.js";
|
|
13
|
+
import { validateExtensionConfig } from "../../../extensions/config-validation.js";
|
|
14
|
+
import { getGatewayFileSpaceService } from "../../file-space-service.js";
|
|
9
15
|
import { automationConfigurationDigest } from "../../../local-apps/capabilities/automation-policy.js";
|
|
10
16
|
import { assertProposalCurrent, automationProposalReview, readAutomationProposal, resolveAutomationProposal } from "../../../local-apps/automation-proposals.js";
|
|
11
17
|
import { assertResourceRequest, localAppConnectorOptions, readAppResourceRequest, resolveAppResourceRequest } from "../../../local-apps/p1-services.js";
|
|
12
18
|
import { listLocalAppAccess, recordLocalAppAccess } from "../../../local-apps/access-audit.js";
|
|
13
19
|
import { createProductDispatcher } from "../../../capabilities/runtime/product.js";
|
|
14
|
-
import { isBundledChannelExtension } from "../../../channels/bundled-channel-extensions.js";
|
|
15
|
-
import { fetchRegistry, listExtensions, searchExtensions } from "../../../extensions/marketplace.js";
|
|
16
|
-
import { ActivationPlanner } from "../../../extensions/activation-planner.js";
|
|
17
|
-
import { mergeActivationContext } from "../../../extensions/activation-context.js";
|
|
18
|
-
import { validateExtensionConfig } from "../../../extensions/config-validation.js";
|
|
19
|
-
import { getGatewayFileSpaceService } from "../../file-space-service.js";
|
|
20
20
|
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
21
21
|
import { capabilityHttpContext, capabilityHttpError } from "../../../capabilities/adapters/http.js";
|
|
22
22
|
import { createOAuthAsyncHandler } from "../oauth-async.js";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { Hono } from 'hono';
|
|
2
2
|
import type { AuthenticatedRouteDeps } from './deps.js';
|
|
3
|
+
export declare function createGatewayProductDispatcher(deps: Pick<AuthenticatedRouteDeps, 'service'>): import("../../../capabilities/runtime/dispatcher.js").CapabilityDispatcher;
|
|
3
4
|
export declare function registerCapabilityOperationRoutes(app: Hono, deps: AuthenticatedRouteDeps): void;
|
|
@@ -6,8 +6,8 @@ import { createProductDispatcher } from "../../../capabilities/runtime/product.j
|
|
|
6
6
|
import { capabilityHttpContext, capabilityHttpError } from "../../../capabilities/adapters/http.js";
|
|
7
7
|
//#region src/gateway/hono/routes/capability-operations.ts
|
|
8
8
|
init_src();
|
|
9
|
-
function
|
|
10
|
-
|
|
9
|
+
function createGatewayProductDispatcher(deps) {
|
|
10
|
+
return createProductDispatcher(() => deps.service.notesServiceInstance, {
|
|
11
11
|
getConfig: () => deps.service.currentConfig,
|
|
12
12
|
getProjects: () => deps.service.projects,
|
|
13
13
|
getAutomations: () => deps.service.automationServiceInstance,
|
|
@@ -19,6 +19,9 @@ function registerCapabilityOperationRoutes(app, deps) {
|
|
|
19
19
|
if (liveRunId) await deps.service.abortAgentRun(liveRunId);
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
+
}
|
|
23
|
+
function registerCapabilityOperationRoutes(app, deps) {
|
|
24
|
+
const dispatcher = createGatewayProductDispatcher(deps);
|
|
22
25
|
app.get("/api/capabilities/operations", (c) => c.json({ capabilities: dispatcher.list(capabilityHttpContext(c)) }));
|
|
23
26
|
app.get("/api/capabilities/operations/:id", (c) => {
|
|
24
27
|
try {
|
|
@@ -42,4 +45,4 @@ function registerCapabilityOperationRoutes(app, deps) {
|
|
|
42
45
|
});
|
|
43
46
|
}
|
|
44
47
|
//#endregion
|
|
45
|
-
export { registerCapabilityOperationRoutes };
|
|
48
|
+
export { createGatewayProductDispatcher, registerCapabilityOperationRoutes };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { init_agent_scope, resolveDefaultAgentId } from "../../../agent/agent-scope.js";
|
|
2
2
|
import { getSessionMetadata } from "../../../storage/sqlite/session-read-repository.js";
|
|
3
3
|
import { init_session_repository } from "../../../storage/sqlite/session-repository.js";
|
|
4
|
-
import { resolveEffectiveAgentProfile } from "../../../config/agent-profile.js";
|
|
5
|
-
import { effectiveWorkspacePathForSession, projectWorkspacePath } from "../../../session/session-workspace.js";
|
|
6
|
-
import { getProjectForSession } from "../../../projects/workspace.js";
|
|
7
4
|
import { ProjectService } from "../../../projects/project-service.js";
|
|
8
5
|
import { isRegisteredProvider } from "../../../agent/skills/marketplace/registry.js";
|
|
9
6
|
import "../../../agent/skills/skills-marketplace.js";
|
|
7
|
+
import { resolveEffectiveAgentProfile } from "../../../config/agent-profile.js";
|
|
8
|
+
import { effectiveWorkspacePathForSession, projectWorkspacePath } from "../../../session/session-workspace.js";
|
|
9
|
+
import { getProjectForSession } from "../../../projects/workspace.js";
|
|
10
10
|
import "../../../projects/index.js";
|
|
11
|
-
import { isSkillInstallTarget } from "../../../agent/skills/install-target.js";
|
|
12
11
|
import { commandRegistry } from "../../../chat-commands/registry.js";
|
|
13
12
|
import { buildReviewContext, resolveGitRoot } from "../../../review/review-git.js";
|
|
14
13
|
import "../../../chat-commands/index.js";
|
|
14
|
+
import { isSkillInstallTarget } from "../../../agent/skills/install-target.js";
|
|
15
15
|
//#region src/gateway/hono/routes/commands-skills.ts
|
|
16
16
|
init_agent_scope();
|
|
17
17
|
init_session_repository();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { OutboundProxySchema, init_outbound_proxy } from "../../../../config/outbound-proxy.js";
|
|
2
2
|
import { init_public_url, validatePublicUrl } from "../../../../config/public-url.js";
|
|
3
3
|
import { isValidIPv4 } from "../../../../config/gateway-bind.js";
|
|
4
|
+
import { isMaskedSecretPatchValue } from "../../lib/mask-secret-length.js";
|
|
4
5
|
import { mergeShareConfigPatch } from "../../../../share/share-config.js";
|
|
5
6
|
import { mergeSiteShareConfigPatch } from "../../../../share/site-share-config.js";
|
|
6
|
-
import { isMaskedSecretPatchValue } from "../../lib/mask-secret-length.js";
|
|
7
7
|
import { PATCH_OK, patchError } from "./result.js";
|
|
8
8
|
//#region src/gateway/hono/routes/config-patch/gateway.ts
|
|
9
9
|
init_outbound_proxy();
|
|
@@ -9,10 +9,10 @@ import { init_agent_scope, resolveDefaultAgentId } from "../../../agent/agent-sc
|
|
|
9
9
|
import { getEndpointPrincipal, listEndpointPrincipals } from "../../../storage/sqlite/endpoint-principal-repository.js";
|
|
10
10
|
import { createConversation, init_conversation_repository } from "../../../storage/sqlite/conversation-repository.js";
|
|
11
11
|
import { init_src as init_src$1 } from "../../../../packages/computer-control-contract/src/index.js";
|
|
12
|
-
import { getEndpointDeviceSettings } from "../../../storage/sqlite/endpoint-device-settings-repository.js";
|
|
13
|
-
import { deviceFolderSnapshots, deviceFoldersFor, mobileFolderPlatforms, pairedFolderClientId, saveDeviceFolderSnapshot } from "../../../endpoint-tools/folder-connections.js";
|
|
14
12
|
import { deviceCapabilityAllowed, deviceCapabilityTitles, isManagedDeviceCapability, saveDesktopCapabilitySnapshot, setMobileCapabilityAllowed } from "../../../endpoint-tools/device-capability-grants.js";
|
|
15
13
|
import { parseEndpointPublicKey } from "../../../endpoint-tools/auth.js";
|
|
14
|
+
import { deviceFolderSnapshots, deviceFoldersFor, mobileFolderPlatforms, pairedFolderClientId, saveDeviceFolderSnapshot } from "../../../endpoint-tools/folder-connections.js";
|
|
15
|
+
import { getEndpointDeviceSettings } from "../../../storage/sqlite/endpoint-device-settings-repository.js";
|
|
16
16
|
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
17
17
|
import { verify } from "node:crypto";
|
|
18
18
|
import { z } from "zod";
|
|
@@ -3,8 +3,8 @@ import { deviceExecutionPrincipalId } from "../../../endpoint-tools/execution-ac
|
|
|
3
3
|
import { getSessionMetadata } from "../../../storage/sqlite/session-read-repository.js";
|
|
4
4
|
import { init_session_repository } from "../../../storage/sqlite/session-repository.js";
|
|
5
5
|
import { getEndpointPrincipal } from "../../../storage/sqlite/endpoint-principal-repository.js";
|
|
6
|
-
import { getEndpointDeviceSettings } from "../../../storage/sqlite/endpoint-device-settings-repository.js";
|
|
7
6
|
import { deviceFoldersFor } from "../../../endpoint-tools/folder-connections.js";
|
|
7
|
+
import { getEndpointDeviceSettings } from "../../../storage/sqlite/endpoint-device-settings-repository.js";
|
|
8
8
|
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
import { bodyLimit } from "hono/body-limit";
|