@xopcai/xopc 0.0.487 → 0.0.488
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/README.md +9 -3
- package/README.zh-CN.md +9 -3
- package/dist/browser-ext/_locales/en/messages.json +1 -1
- package/dist/browser-ext/_locales/zh_CN/messages.json +1 -1
- package/dist/browser-ext/dist/assets/{auth-8EjgHa-n.js → page-context-DCkQH5LX.js} +237 -172
- package/dist/browser-ext/dist/background.js +650 -108
- package/dist/browser-ext/dist/sidepanel.html +1 -1
- package/dist/browser-ext/dist/sidepanel.js +22 -4
- package/dist/browser-ext/manifest.json +2 -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/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 +1 -1
- package/dist/gateway/server/chunks.bin +1035 -1019
- package/dist/gateway/server/chunks.json +1 -1
- package/dist/gateway/static/root/assets/{activity-store-CWGtissf.js → activity-store-DyHjQrpP.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-D4YSq8A9.js → agent-avatar-dicebear-gADhOk89.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-display-DWv7biOS.js → agent-avatar-display-Dyyk4GdM.js} +2 -2
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-3xdD9dR1.js → agent-defaults-settings-panel-DD5mU7h6.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-BNvw2z1Y.js → agent-plugin-dialog-RZpnW9HG.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-DcENLHHW.js → agents-Ckt9wMj7.js} +3 -3
- package/dist/gateway/static/root/assets/{agents-admin-api-BzpxMKwk.js → agents-admin-api-BW3Mzst8.js} +1 -1
- package/dist/gateway/static/root/assets/{api-D70-LnNE.js → api-Cd5TqEwc.js} +1 -1
- package/dist/gateway/static/root/assets/{api-SIYalfjE.js → api-DVQaJzrB.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-CEveRIMe.js → app-management-settings-panel-Cim6ZmGT.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-CT2NLLuY.js → appearance-settings-BVMDvmUO.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-pEqr4fAK.js → apps-page-B7T55D7Y.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-xnggGfUN.js → archive-plugin-DVoAuR_a.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-api-CaBLskwk.js → automation-api-B6YcuEsE.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-result-state-CeGtOXK0.js → automation-result-state-BycWqFXM.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-run-list-DUpezxj4.js → automation-run-list-DDDHtKq0.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-task-card-CLayJo0S.js → automation-task-card-BBEA23Zb.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-BKfvaA41.js → automations-page-DelDZorh.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-BRcJzgLA.js → automations-workspace-leY4yCvw.js} +2 -2
- package/dist/gateway/static/root/assets/{binary-plugins-DtD3acS4.js → binary-plugins-o-jwYyMd.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-DXjBAN8L.js → block-editor-Bp6TLleA.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-Cgxtr2eR.js → browser-settings-page-CtPARtRA.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-CpwoMqtm.js → capabilities-B5gHYD8r.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-DcD15BrU.js → capabilities-G2ZaAAs2.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-page-x_AS_XJ0.js → capabilities-page-C6KCaaHR.js} +2 -2
- package/dist/gateway/static/root/assets/{capabilities-settings-panel-DMgEXxkC.js → capabilities-settings-panel-CVwdxuL4.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-565FQAGr.js → channels-Bh2bHLni.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-agents-api-BfsNH-ht.js → chat-agents-api-DRKlkcuv.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-chart-block-Dpolmx0-.js → chat-chart-block-DxTCx__V.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-page-Bn44NcvF.js → chat-page-XqG9aYBd.js} +31 -31
- package/dist/gateway/static/root/assets/{chat-terminal-dock-D6fuI2tI.js → chat-terminal-dock-Ch74AWYF.js} +1 -1
- package/dist/gateway/static/root/assets/{command-palette-api-H3lCPfK8.js → command-palette-api-CAKoTF_-.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-model-config-control-BcWrGT5D.js → composer-model-config-control-Bas1wFVW.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-notifications-0fMBrXZD.js → composer-notifications-CpBgWAE4.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-payload-handoff-DCGudJjU.js → composer-payload-handoff-uT_hvvap.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-kvYzJ_j2.js → computer-settings-page-x8YUBBuX.js} +1 -1
- package/dist/gateway/static/root/assets/{connected-providers-grid-CApjiM_x.js → connected-providers-grid-DS21-u3Q.js} +1 -1
- package/dist/gateway/static/root/assets/{connection-usage-guide-C2qOP6Nx.js → connection-usage-guide-DNNFESD9.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-DKihi3WL.js → connector-service-page-BS7IJ6oc.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-api-Dj9RbG9p.js → connectors-api-B27sJ651.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-CR6a3Mne.js → connectors-page-DM6TppXV.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-BX5tr0IG.js → date-picker-D3N2BGVY.js} +1 -1
- package/dist/gateway/static/root/assets/{date-time-picker-CdPsuK2A.js → date-time-picker-BNw099Is.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-DRfOb9ZT.js → desktop-pet-BtY6aGrh.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-D6qCAFLe.js → desktop-pet-settings-DVXfAMaU.js} +1 -1
- package/dist/gateway/static/root/assets/{dev-view-store-DrRxtile.js → dev-view-store-D4EyUkRI.js} +1 -1
- package/dist/gateway/static/root/assets/{device-connections-panel-Drbw9eRH.js → device-connections-panel-DYK_DQzO.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-action-Dd2YtIhH.js → device-pairing-action-DXo8MWy2.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-wtsyHEO3.js → device-pairing-wizard-NddAztJ2.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-B3YBba3x.js → directory-picker-path-field-Bbq7ZyGn.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-authoritative-grants-WXYRv5nA.js → extension-authoritative-grants-qpYvHriJ.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-CKeIq8S2.js → extension-debug-page-BOb-6rpq.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-iframe-host-Cv4PCSVv.js → extension-iframe-host-DpgIPfJe.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-marketplace-api-e0e9OxOT.js → extension-marketplace-api-BhGNQYHl.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-message-router-GPlMiYyF.js → extension-message-router-QjbtEYyu.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-DcP7IEMp.js → extension-page-BOp7wU9Y.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-DZ97b5uA.js → extension-provider-CFPicsnW.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-DIYoawnA.js → extension-settings-page-cXjBvPwg.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-aAsaoOK1.js → gateway-config-swr-DxelrRtx.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-D2B_nv2b.js +1 -0
- package/dist/gateway/static/root/assets/gateway-realtime-store-DrVbjYfI.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-restart-BY6zJgTe.js → gateway-restart-Ce6rCCAr.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-4TvJ0_i0.js → gateway-settings-BTr0Gwdo.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-D0dDJJQ4.js → gateway-startup-retry-Dm0dK8BT.js} +1 -1
- package/dist/gateway/static/root/assets/{global-defaults-api-9iooq81U.js → global-defaults-api-BZnu44eA.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-VMzHth7Q.js → home-page-Bxr3V5lc.js} +3 -3
- package/dist/gateway/static/root/assets/{home-task-actions-iUYzLb18.js → home-task-actions-GAO06s1_.js} +1 -1
- package/dist/gateway/static/root/assets/{image-generation-api-Dv4fjHaE.js → image-generation-api-DrZPmWFt.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-WENCxW7P.js → imports-page-D-x5kijk.js} +1 -1
- package/dist/gateway/static/root/assets/index-BjU5H5hz.js +11 -0
- package/dist/gateway/static/root/assets/index-CREeN6C_.css +1 -0
- package/dist/gateway/static/root/assets/{install-connector-dialog-DNY-rpBC.js → install-connector-dialog-st2O1bez.js} +1 -1
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-DHWEGna7.js → keyboard-shortcuts-settings-DnKkQoqR.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-Dnug0YtC.js → local-app-workbench-page-CKHJa4K8.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-Bjr4rrgT.js → local-apps-page-D28d-sO0.js} +1 -1
- package/dist/gateway/static/root/assets/{local-session-drafts-Z3PoR-8i.js → local-session-drafts-KkAOxXk5.js} +2 -2
- package/dist/gateway/static/root/assets/{locale-store-DgbX5Azb.js → locale-store-Dy0B0XDJ.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-BIZvtqSJ.js → logs-page-BPuHO-iA.js} +1 -1
- package/dist/gateway/static/root/assets/{management-api-CJb5Vclf.js → management-api-BtTRehT0.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-BjtIRkgJ.js → management-settings-B2R43Itv.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-lnMk_L03.js → markdown-view-ByuzuGRb.js} +1 -1
- package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-kq0dZ2Nc.js → mcp-conversation-setup-page-D_6XeyXG.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-RU49QGcW.js → media-plugins-B9Q7WvNF.js} +1 -1
- package/dist/gateway/static/root/assets/messages-Bj6DCoic.js +3 -0
- package/dist/gateway/static/root/assets/{model-selector-BolKz5sx.js → model-selector-8FTrQQ2N.js} +1 -1
- package/dist/gateway/static/root/assets/{models-hub-cache-CjdnTF5z.js → models-hub-cache-DMBOw544.js} +1 -1
- package/dist/gateway/static/root/assets/{new-session-preferences-gb411vZP.js → new-session-preferences-CxCn2Jxk.js} +1 -1
- package/dist/gateway/static/root/assets/{note-detail-panel-Qm1Et_f8.js → note-detail-panel-BTNX68oO.js} +3 -3
- package/dist/gateway/static/root/assets/note-image-lightbox-D20oZuOM.js +1 -0
- package/dist/gateway/static/root/assets/{notes-api-FjHO1h6b.js → notes-api-M1FuRZbW.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-page-B_atfwwi.js → notes-page-FocipOyc.js} +1 -1
- package/dist/gateway/static/root/assets/{oauth-api-B1lbdI3v.js → oauth-api-Dza1tHcr.js} +1 -1
- package/dist/gateway/static/root/assets/{oauth-provider-connect-Cy1Yy8aX.js → oauth-provider-connect-BPNIEiMv.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-Phh-SyES.js → page-context-capture-button-DpGnxSrD.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-draft-M04A73Ul.js → page-context-draft-CHAS3BY3.js} +1 -1
- package/dist/gateway/static/root/assets/{page-header-store-CYA4Isnf.js → page-header-store-BXED3zhV.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-avatar-DF3Frmnt.js → personal-avatar-BCk4KoeZ.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-page-DkDROUWV.js → personal-page-CSc2n5UD.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-profile-settings-LAAXGLKs.js → personal-profile-settings-C86FBPOH.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-settings-panel-B6G-4av9.js → personal-settings-panel-BlPLE0Ip.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-dependencies-card-DeBlKu7M.js → phone-dependencies-card-BCob98OY.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-connection-TStZicIQ.js → phone-model-connection-D-CcYcch.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-picker-C3xcbacO.js → phone-model-picker-eMe7fmZu.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-settings-page-CllfdPFi.js → phone-settings-page-D7yXeGmR.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-workspace-store-CeP3GXUk.js → phone-workspace-store-CcA_vo-t.js} +1 -1
- package/dist/gateway/static/root/assets/{plugin-details-dialog-Ck1dirgu.js → plugin-details-dialog-BAmodjSZ.js} +1 -1
- package/dist/gateway/static/root/assets/{preference-select-fields-DMClbggY.js → preference-select-fields-BBd5CWkM.js} +1 -1
- package/dist/gateway/static/root/assets/{preview-runtime-Cl-SoLXg.js → preview-runtime-DUJ7XhMP.js} +3 -3
- package/dist/gateway/static/root/assets/{product-automation-feedback-Bb_lbw1l.js → product-automation-feedback-BDFpFrSs.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-BWH54iuf.js → product-open-page-t3hsoYql.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-NOZu0WO2.js → product-preview-content-BM0pjf0F.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-modal-ZKiIeKof.js → product-preview-modal-CLQcCVjI.js} +2 -2
- package/dist/gateway/static/root/assets/project-detail-page-CK_EN6Jq.js +7 -0
- package/dist/gateway/static/root/assets/{project-understanding-BWpcOkWw.js → project-understanding-CwtdVbMP.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-Dnx2AcQX.js → projects-page-ESAmJ4I_.js} +1 -1
- package/dist/gateway/static/root/assets/{providers-api-BRAMBKCK.js → providers-api-CR7FJzt-.js} +1 -1
- package/dist/gateway/static/root/assets/{recording-upload-C0d2YjJV.js → recording-upload-DrgujKBt.js} +1 -1
- package/dist/gateway/static/root/assets/{registry-api-Dz4umdY3.js → registry-api-CaBz9f4g.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-BEIzBYdj.js → remote-access-hub-CB-Js5gd.js} +1 -1
- package/dist/gateway/static/root/assets/{resource-unavailable-82byHwG_.js → resource-unavailable-DiPPmZsR.js} +1 -1
- package/dist/gateway/static/root/assets/right-workspace-store-CcRApllu.js +1 -0
- package/dist/gateway/static/root/assets/{route-preload-DkUojqyb.js → route-preload-Ab7Zw-df.js} +2 -2
- package/dist/gateway/static/root/assets/{routine-panel-wJxaH-1V.js → routine-panel-DzdJGicv.js} +2 -2
- package/dist/gateway/static/root/assets/{runtime-tools-api-CQ7fTX-H.js → runtime-tools-api-utBemmh4.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-DZD-cEXM.js → runtime-tools-settings-panel-ChXrIluB.js} +1 -1
- package/dist/gateway/static/root/assets/{service-recommendation-list-CFJ8WBzq.js → service-recommendation-list-Dm5GcMRy.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-Dxhtjzoa.js → session-api-vEn4BzjV.js} +1 -1
- package/dist/gateway/static/root/assets/{session-manager-DvIGR4Sw.js → session-manager-7nbjJYyy.js} +2 -2
- package/dist/gateway/static/root/assets/{sessions-page-BDPieIpD.js → sessions-page-B__ftjgG.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-DV-_ZdXD.js +1 -0
- package/dist/gateway/static/root/assets/{settings-advanced-section-1R7xRVEG.js → settings-advanced-section-DhKzGl03.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-mode-store-D4-i8uQI.js → settings-mode-store-CQofc337.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-DXo8rZFt.js → settings-page-CzW5GM5r.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-header-BooYRGUH.js → settings-page-header-CiS6x6sn.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-layout-BeHnqGAN.js → settings-page-layout-B-rj_rso.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-interaction-page-DqmPSRNo.js → setup-interaction-page-DTgwtj55.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-c4yDTYiK.js → setup-status-panel-BhKPMIds.js} +1 -1
- package/dist/gateway/static/root/assets/{share-link-dialog-Cvma1jxB.js → share-link-dialog-WR7Op1vL.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-BL6FwL4u.js → share-preview-page-DonmTI11.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-api-BqIBNEtd.js → shares-api-CoRLwDnw.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-BoBOd-eB.js → shares-settings-UA91fiMV.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-api-oDg0Zlyb.js → skill-api-BE-iPtTQ.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-list-api-BvfKctht.js → skill-list-api-Dsfjdtuu.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-CnchMEV8.js → skill-reload-api-BIZJWow-.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-CFZk_0nE.js → skills-page-1wvItQag.js} +1 -1
- package/dist/gateway/static/root/assets/{space-api-C_GoZOc_.js → space-api-E8VbAaEl.js} +1 -1
- package/dist/gateway/static/root/assets/space-page-BCzDsNJd.js +2 -0
- package/dist/gateway/static/root/assets/{space-workbook-B8JGuyIf.js → space-workbook-CwltZeHG.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-DzNDyMOH.js → system-settings-panel-03a25GEc.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-BmWkL-KH.js → task-detail-page-B_YXsT9W.js} +1 -1
- package/dist/gateway/static/root/assets/{task-header-title-CCaEJNV4.js → task-header-title-bZVPIbyR.js} +1 -1
- package/dist/gateway/static/root/assets/{task-result-presentation-DwEf7Xf7.js → task-result-presentation-_VWkiekf.js} +1 -1
- package/dist/gateway/static/root/assets/{task-run-issue-notice-COE7ppvl.js → task-run-issue-notice-BXOES2t9.js} +1 -1
- package/dist/gateway/static/root/assets/{tasks-CvOAtEHv.js → tasks-D8bnpu0N.js} +1 -1
- package/dist/gateway/static/root/assets/{terminal-panel-store-CHQ2xJtk.js → terminal-panel-store-BOHv5O2x.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-Bij94a-6.js → theme-store-XNsFzxSj.js} +1 -1
- package/dist/gateway/static/root/assets/{tracing-settings-page-CKH4dKSl.js → tracing-settings-page-Y9z2HoGj.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-ChjCCCGL.js → tunnel-api-XHGjcUi9.js} +1 -1
- package/dist/gateway/static/root/assets/turn-outcome-Bf3N3Bmj.js +1 -0
- package/dist/gateway/static/root/assets/{understanding-activity-store-BD1OXjlI.js → understanding-activity-store-BDBAkksk.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-refresh-store-BSVLFuVh.js → understanding-refresh-store-D7gBfD26.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-v5c3aC-p.js → usage-page-DxESTMwa.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-teDzNJW4.js → use-autosave-D7zZrcsj.js} +1 -1
- package/dist/gateway/static/root/assets/{use-composer-attachments-rUl5n4_a.js → use-composer-attachments-DWiIdMIi.js} +1 -1
- package/dist/gateway/static/root/assets/{use-file-preview-expanded-BRjXpRde.js → use-file-preview-expanded-CA9vFUTT.js} +1 -1
- package/dist/gateway/static/root/assets/{use-generated-media-Bx6BscUT.js → use-generated-media-DX4_ne7C.js} +1 -1
- package/dist/gateway/static/root/assets/{use-personal-profile-Dz3wWaGt.js → use-personal-profile-CaCORKeL.js} +1 -1
- package/dist/gateway/static/root/assets/{use-personal-work-D-Tgi4DZ.js → use-personal-work-D0tMU1bP.js} +1 -1
- package/dist/gateway/static/root/assets/{use-realtime-voice-Bp81D6PV.js → use-realtime-voice-D9k997EW.js} +1 -1
- package/dist/gateway/static/root/assets/{use-share-link-D5HNXEIt.js → use-share-link-CqV3o-VZ.js} +1 -1
- package/dist/gateway/static/root/assets/{use-workspace-tree-DXKhfc1T.js → use-workspace-tree-nnrez9-d.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-B0tEc4rh.js → user-model-page-CpVdbSxS.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-api-key-field-odum3GZx.js → voice-api-key-field-CVi3dBKx.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-CiA2cr3s.js → voice-config-api-DZbcg7qD.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-input-shortcut-events-JsEfJGJz.js → voice-input-shortcut-events-CwKpIInD.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-player-store-CUV5cpmX.js → voice-player-store-DT0f9GPa.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-settings-FOeRWVH4.js → voice-settings-CJdWnHas.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-CJxXUdeq.js → work-discovery-overlay-qEN1Ikir.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-page-Dm0XTxsk.js → work-discovery-page-JjCyt1Kw.js} +1 -1
- package/dist/gateway/static/root/assets/{working-directory-picker-modal-DfyyBJpb.js → working-directory-picker-modal-DX6bRmkQ.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-api-B1JW3oZZ.js → workspace-api-CD_6YyPI.js} +2 -2
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-BuYdf4CO.js +1 -0
- package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-kGa6o4bV.js → workspace-file-preview-dialog-DPHnm_7A.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-open-location-menu-Dl4QsZL3.js → workspace-open-location-menu-BdXn5F2i.js} +1 -1
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-fiyk59YU.js → xopc-cloud-account-card-CLM7hfkN.js} +1 -1
- package/dist/gateway/static/root/index.html +96 -96
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/session-input-command.js +2 -1
- package/dist/packages/gateway-contract/src/task-display.js +1 -1
- package/dist/packages/gateway-contract/src/task-research-result.js +5 -0
- package/dist/packages/realtime-client/src/index.js +6 -1
- package/dist/packages/realtime-protocol/src/browser-preview.js +111 -0
- package/dist/packages/realtime-protocol/src/index.js +5 -1
- package/dist/src/agent/agent-manager.d.ts +2 -2
- package/dist/src/agent/agent-manager.js +24 -21
- 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/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.js +1 -1
- 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 +28 -22
- 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/discovery.js +1 -1
- 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-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/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/browser/tool/browser-use-tool.js +24 -16
- package/dist/src/agent/tools/browser/tool/schemas.d.ts +1 -0
- package/dist/src/agent/tools/browser/tool/schemas.js +6 -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 +27 -19
- 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 +84 -21
- package/dist/src/agent/tools/session-recall-tool.js +10 -2
- package/dist/src/agent/tools/session-search-tool.js +2 -2
- package/dist/src/agent/tools/task-result-tool.js +10 -9
- 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 +6 -4
- package/dist/src/agent/tools/workbook-tools.js +1 -1
- package/dist/src/agent/tools/xopc-use-tool.js +8 -8
- 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 +1 -1
- 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/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/drivers/browser-driver.d.ts +1 -0
- package/dist/src/browser/drivers/extension-driver.d.ts +2 -0
- package/dist/src/browser/drivers/extension-driver.js +11 -1
- package/dist/src/browser/native-messaging-host.js +1 -1
- package/dist/src/browser/runtime/browser-runtime.d.ts +6 -0
- package/dist/src/browser/runtime/browser-runtime.js +13 -1
- package/dist/src/capabilities/capability-catalog.js +4 -4
- package/dist/src/capabilities/runtime/dispatcher.js +1 -1
- package/dist/src/capabilities/store-connector.js +1 -1
- package/dist/src/channels/attachments/voice-stt-webchat.js +1 -1
- package/dist/src/channels/index.js +1 -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/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 +1 -1
- 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/utils/gateway-client.js +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +1 -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/connectors/cli/authorization.js +1 -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/invocation-service.js +2 -2
- package/dist/src/endpoint-tools/target-resolver.js +1 -1
- package/dist/src/execution-environments/session-environment-service.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.js +1 -1
- 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/global-defaults-admin.js +1 -1
- package/dist/src/gateway/hono/app.js +2 -2
- package/dist/src/gateway/hono/lib/config-payload.js +3 -3
- 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/browser.js +38 -0
- 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-push.js +7 -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/execution-environments.js +4 -0
- package/dist/src/gateway/hono/routes/home.js +1 -1
- 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.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/notifications.js +11 -7
- package/dist/src/gateway/hono/routes/personal-agent.js +1 -1
- 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 +7 -8
- package/dist/src/gateway/hono/routes/session-command-handler.js +4 -3
- package/dist/src/gateway/hono/routes/session-input-handler.d.ts +2 -0
- 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/security/gateway-scopes.js +2 -0
- package/dist/src/gateway/server.js +1 -1
- package/dist/src/gateway/service/agent-runner.js +2 -2
- 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 +6 -4
- package/dist/src/gateway/service/session-input-coordinator.js +1 -1
- package/dist/src/gateway/service/session-preparation-worker.js +6 -2
- package/dist/src/gateway/service/sessions-api.js +1 -1
- package/dist/src/gateway/service.d.ts +2 -0
- package/dist/src/gateway/service.js +53 -39
- 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/capabilities/delegate.js +1 -1
- package/dist/src/local-apps/execution-authority.js +2 -2
- package/dist/src/local-apps/p1-services.js +2 -2
- package/dist/src/local-apps/service.js +1 -1
- package/dist/src/mcp/delegation.js +2 -2
- package/dist/src/mcp/gateway-http-client.js +1 -1
- package/dist/src/mcp/run-callback-subscriptions.d.ts +13 -0
- package/dist/src/mcp/run-callback-subscriptions.js +17 -0
- package/dist/src/mcp/run-callbacks.d.ts +1 -4
- package/dist/src/mcp/run-callbacks.js +9 -22
- 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 +1 -1
- package/dist/src/music-generation/worker.js +1 -1
- package/dist/src/notes/agent-context.js +4 -4
- package/dist/src/notes/service.js +1 -1
- package/dist/src/notifications/device-store.js +1 -1
- package/dist/src/notifications/platform-push.d.ts +2 -1
- package/dist/src/notifications/platform-push.js +4 -3
- package/dist/src/notifications/service.js +4 -4
- package/dist/src/personal-agent/capability-service.js +1 -1
- package/dist/src/personal-agent/proactivity/routes.js +1 -1
- package/dist/src/personal-agent/proactivity/service.js +5 -5
- 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/request-delivery.js +1 -1
- package/dist/src/personal-agent/request-service.js +4 -4
- package/dist/src/personal-agent/result-reader.d.ts +2 -0
- package/dist/src/personal-agent/result-reader.js +13 -2
- package/dist/src/personal-agent/service.js +2 -2
- package/dist/src/personal-agent/specialist-capabilities.js +3 -2
- package/dist/src/personal-agent/task-cancel.js +1 -1
- package/dist/src/phone/adb-driver.js +1 -1
- package/dist/src/phone/cloud-adb-connection.js +1 -1
- package/dist/src/phone/model-adapter.js +1 -1
- package/dist/src/phone/runtime.js +4 -4
- package/dist/src/projects/index.js +4 -4
- package/dist/src/projects/project-kind.d.ts +0 -7
- package/dist/src/projects/project-kind.js +1 -6
- package/dist/src/projects/project-service.js +3 -11
- 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/realtime/browser-preview-ice.d.ts +2 -0
- package/dist/src/realtime/browser-preview-ice.js +42 -0
- package/dist/src/realtime/browser-preview.d.ts +45 -0
- package/dist/src/realtime/browser-preview.js +191 -0
- package/dist/src/realtime/runtime.d.ts +4 -1
- package/dist/src/realtime/runtime.js +53 -2
- 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 +8 -8
- package/dist/src/session/thinking-resolve.js +1 -1
- package/dist/src/share/share-thumbnail.js +1 -1
- package/dist/src/share/site-proxy.js +1 -1
- package/dist/src/space/repository.js +1 -1
- package/dist/src/storage/sqlite/connection.js +9 -9
- package/dist/src/storage/sqlite/session-creation-repository.d.ts +2 -0
- package/dist/src/storage/sqlite/session-creation-repository.js +24 -5
- package/dist/src/storage/sqlite/session-input-repository.js +2 -1
- package/dist/src/tasks/capabilities/read.js +2 -2
- package/dist/src/tasks/capabilities/relations.js +1 -1
- package/dist/src/tasks/capabilities/runs.js +1 -1
- package/dist/src/tasks/capabilities/write.js +3 -3
- package/dist/src/tasks/home-query-service.js +1 -1
- package/dist/src/tasks/index.js +4 -4
- package/dist/src/tasks/task-allocation-service.js +6 -6
- package/dist/src/tasks/task-application-service.d.ts +1 -0
- package/dist/src/tasks/task-application-service.js +17 -6
- package/dist/src/tasks/task-context-assembler.js +2 -1
- package/dist/src/tasks/task-contract-planner.js +3 -2
- 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 +4 -0
- package/dist/src/tasks/task-handoff.js +55 -14
- package/dist/src/tasks/task-json-acceptance.js +1 -1
- package/dist/src/tasks/task-main-update-decision-service.js +3 -2
- package/dist/src/tasks/task-main-update-delivery.js +5 -3
- package/dist/src/tasks/task-model-call.js +1 -1
- package/dist/src/tasks/task-origin-repository.d.ts +2 -0
- package/dist/src/tasks/task-origin-repository.js +17 -0
- package/dist/src/tasks/task-research-repair.js +2 -0
- package/dist/src/tasks/task-research-result.d.ts +7 -0
- package/dist/src/tasks/task-research-result.js +135 -33
- package/dist/src/tasks/task-result-delivery-service.js +2 -2
- package/dist/src/tasks/task-retry-service.js +1 -1
- package/dist/src/tasks/task-run-coordinator.js +5 -5
- package/dist/src/tasks/task-run-dispatcher.js +2 -2
- 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 +1 -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 +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-egUNyhxi.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-5YcWzAfG.js +0 -1
- package/dist/gateway/static/root/assets/index-CaUUC83j.css +0 -1
- package/dist/gateway/static/root/assets/index-DwdoCbAF.js +0 -11
- package/dist/gateway/static/root/assets/messages-Clfka2Sx.js +0 -3
- package/dist/gateway/static/root/assets/note-image-lightbox-BVcE6TAF.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-BTgDajpj.js +0 -7
- package/dist/gateway/static/root/assets/right-workspace-store-B8ooYVOe.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-CaALReQD.js +0 -1
- package/dist/gateway/static/root/assets/space-page-CBSaZbyH.js +0 -2
- package/dist/gateway/static/root/assets/turn-outcome-Dtw6OgwL.js +0 -1
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-BbfHBVhA.js +0 -1
|
@@ -3,21 +3,21 @@ import { createCollaborationRule } from "../../storage/sqlite/collaboration-rule
|
|
|
3
3
|
import { createContextEvidence } from "../../storage/sqlite/context-evidence-repository.js";
|
|
4
4
|
import { init_session_instance_repository, readCurrentTranscriptId } from "../../storage/sqlite/session-instance-repository.js";
|
|
5
5
|
import { init_changes, notifyUserContextChange } from "../../user-context/changes.js";
|
|
6
|
-
import { deleteUserAssertion, getAssertionSlot, getUserAssertion, reconcileAssertion, setAssertionStatus, setUserAssertionScope } from "../../user-model/repository.js";
|
|
7
|
-
import { canUseAssertion } from "../../user-model/usage-policy.js";
|
|
8
|
-
import { getPersonalAgentByConversation } from "../../personal-agent/repository.js";
|
|
9
|
-
import "../../user-model/index.js";
|
|
10
6
|
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
11
7
|
import { learningRoleSql, learningTranscriptMessage } from "../../memory-learning/transcript-source.js";
|
|
12
8
|
import { inferMemorySensitivity } from "../memory/sensitivity.js";
|
|
13
9
|
import { canUseKnowledge, knowledgeContentSources } from "../../knowledge-memory/usage-policy.js";
|
|
14
10
|
import { deleteKnowledgeItem, getKnowledgeItem, reviewKnowledgeItem, setKnowledgeScope, writeKnowledgeItem } from "../../knowledge-memory/repository.js";
|
|
15
11
|
import "../../knowledge-memory/index.js";
|
|
16
|
-
import { executeAtomicOperation } from "../../capabilities/runtime/atomic-operations.js";
|
|
17
|
-
import { getSessionInteractionPolicy } from "../session/interaction-policy-state.js";
|
|
18
|
-
import "../session/interaction-policy.js";
|
|
19
12
|
import { ownerExcludesGlobalScope, ownerMemoryScope, standingToolScope } from "../../user-model/capture/evidence-policy.js";
|
|
20
13
|
import { isUnquotedOwnerEvidence } from "../../memory-learning/owner-directive.js";
|
|
14
|
+
import { deleteUserAssertion, getAssertionSlot, getUserAssertion, reconcileAssertion, setAssertionStatus, setUserAssertionScope } from "../../user-model/repository.js";
|
|
15
|
+
import { canUseAssertion } from "../../user-model/usage-policy.js";
|
|
16
|
+
import { getPersonalAgentByConversation } from "../../personal-agent/repository.js";
|
|
17
|
+
import "../../user-model/index.js";
|
|
18
|
+
import { getSessionInteractionPolicy } from "../session/interaction-policy-state.js";
|
|
19
|
+
import "../session/interaction-policy.js";
|
|
20
|
+
import { executeAtomicOperation } from "../../capabilities/runtime/atomic-operations.js";
|
|
21
21
|
import { memoryVersion } from "../../user-context/memory-version.js";
|
|
22
22
|
import { extractAgentUserPlainText } from "../memory/user-message-text.js";
|
|
23
23
|
import { createHash } from "node:crypto";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
2
2
|
import { getEmbeddedExecutionSession } from "../embedded/execution-context.js";
|
|
3
|
-
import { CapabilityDispatcher } from "../../capabilities/runtime/dispatcher.js";
|
|
4
3
|
import { LOCAL_READ_MAX_CHARS } from "./local-read-budget.js";
|
|
4
|
+
import { CapabilityDispatcher } from "../../capabilities/runtime/dispatcher.js";
|
|
5
5
|
import { registerNoteReadCapabilities } from "../../notes/capabilities/read.js";
|
|
6
6
|
import { registerAutomationReadCapabilities } from "../../automations/capabilities/read.js";
|
|
7
7
|
import { registerProjectReadCapabilities } from "../../projects/capabilities/read.js";
|
|
@@ -2,9 +2,9 @@ import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "
|
|
|
2
2
|
import { TaskRunRepository, init_task_run_repository } from "../../tasks/task-run-repository.js";
|
|
3
3
|
import { init_request_repository, personalRequestForExecution } from "../../personal-agent/request-repository.js";
|
|
4
4
|
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
5
|
-
import { selectionRequestHash } from "../../agent-matching/selection-repository.js";
|
|
6
|
-
import { PersonalRequestResultSchema } from "../../personal-agent/request-result.js";
|
|
7
5
|
import { assertPersonalRequestAccountAccess } from "../../personal-agent/request-access.js";
|
|
6
|
+
import { PersonalRequestResultSchema } from "../../personal-agent/request-result.js";
|
|
7
|
+
import { selectionRequestHash } from "../../agent-matching/selection-repository.js";
|
|
8
8
|
import { Type } from "@sinclair/typebox";
|
|
9
9
|
//#region src/agent/tools/personal-request-result-tool.ts
|
|
10
10
|
init_transaction();
|
|
@@ -3,12 +3,12 @@ import { init_session_instance_repository, readCurrentTranscriptId } from "../..
|
|
|
3
3
|
import { getSessionInputState, init_session_input_repository } from "../../storage/sqlite/session-input-repository.js";
|
|
4
4
|
import { getPersonalRequest, init_request_repository, listPersonalRequestsWithoutTask, updatePersonalRequest } from "../../personal-agent/request-repository.js";
|
|
5
5
|
import { getActiveConnectionWait, init_connection_wait_repository, reviseCurrentConnectionObjective, updateConnectionWait } from "../../storage/sqlite/connection-wait-repository.js";
|
|
6
|
+
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
6
7
|
import { TaskAllocationRepository } from "../../tasks/task-allocation-repository.js";
|
|
7
8
|
import { resolveExactConnectionCandidate } from "../../connectors/connection-candidates.js";
|
|
8
|
-
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
9
9
|
import { personalCapabilities } from "../../personal-agent/capability-service.js";
|
|
10
|
-
import { selectionRequestHash } from "../../agent-matching/selection-repository.js";
|
|
11
10
|
import { TASK_NOTIFICATION_PREFERENCES, getTaskNotificationPreference, isTaskNotificationPreference, setTaskNotificationPreference } from "../../tasks/task-notification-preference.js";
|
|
11
|
+
import { selectionRequestHash } from "../../agent-matching/selection-repository.js";
|
|
12
12
|
import { assertPersonalRequestTimeRange, cancelPersonalRequest, personalRequestSnapshot, publishPersonalRequest, stopPersonalRequestExecution, submitPersonalRequest } from "../../personal-agent/request-service.js";
|
|
13
13
|
import { Type } from "@sinclair/typebox";
|
|
14
14
|
//#region src/agent/tools/personal-request-tool.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
2
2
|
import { readPersonalResult, retryPersonalResultDelivery } from "../../personal-agent/result-reader.js";
|
|
3
|
-
import { waitForPersonalResult } from "../../personal-agent/result-read-continuations.js";
|
|
4
3
|
import "./local-read-budget.js";
|
|
4
|
+
import { waitForPersonalResult } from "../../personal-agent/result-read-continuations.js";
|
|
5
5
|
import { Type } from "@sinclair/typebox";
|
|
6
6
|
//#region src/agent/tools/personal-result-tool.ts
|
|
7
7
|
const schema = Type.Object({
|
|
@@ -6,23 +6,23 @@ import { TaskRepository, init_task_repository } from "../../tasks/task-repositor
|
|
|
6
6
|
import { getPersonalRequest, init_request_repository, personalRequestForTask } from "../../personal-agent/request-repository.js";
|
|
7
7
|
import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
|
|
8
8
|
import "../../storage/sqlite/index.js";
|
|
9
|
+
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
9
10
|
import { TaskAllocationRepository } from "../../tasks/task-allocation-repository.js";
|
|
10
11
|
import { getAvailablePersonalAgentTools, personalAgentModelAvailability } from "../../personal-agent/specialist-capabilities.js";
|
|
11
12
|
import { assessSpecialist, matchSpecialists } from "../../agent-matching/service.js";
|
|
12
|
-
import {
|
|
13
|
-
import { parseTaskHandoffReferences } from "../../tasks/task-handoff.js";
|
|
13
|
+
import { parseTaskHandoffReferences, pinTaskHandoffReference } from "../../tasks/task-handoff.js";
|
|
14
14
|
import { TaskReadModelProjector } from "../../tasks/task-read-model-projector.js";
|
|
15
15
|
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
16
16
|
import { TaskResultDeliveryRepository } from "../../tasks/task-result-delivery-repository.js";
|
|
17
17
|
import { TaskOriginRepository } from "../../tasks/task-origin-repository.js";
|
|
18
|
+
import { boundedPersonalResult } from "./personal-result-budget.js";
|
|
18
19
|
import { TaskApplicationService } from "../../tasks/task-application-service.js";
|
|
19
|
-
import { AgentSelectionRepository, selectionRequestHash } from "../../agent-matching/selection-repository.js";
|
|
20
|
-
import { assertSpecialistEligible, createSelectedTask } from "../../agent-matching/delegation-service.js";
|
|
21
20
|
import { TASK_NOTIFICATION_PREFERENCES, isTaskNotificationPreference, setTaskNotificationPreference } from "../../tasks/task-notification-preference.js";
|
|
22
|
-
import { taskConversationSummary } from "../../tasks/task-conversation-summary.js";
|
|
23
|
-
import { boundedPersonalResult } from "./personal-result-budget.js";
|
|
24
21
|
import { createXopcUseTool } from "./xopc-use-tool.js";
|
|
22
|
+
import { AgentSelectionRepository, selectionRequestHash } from "../../agent-matching/selection-repository.js";
|
|
23
|
+
import { assertSpecialistEligible, createSelectedTask } from "../../agent-matching/delegation-service.js";
|
|
25
24
|
import { cancelPersonalTask } from "../../personal-agent/task-cancel.js";
|
|
25
|
+
import { taskConversationSummary } from "../../tasks/task-conversation-summary.js";
|
|
26
26
|
import { PersonalRequestTimeRangeSchema, coordinatePersonalRequest, listUnallocatedPersonalRequests } from "./personal-request-tool.js";
|
|
27
27
|
import { randomUUID } from "node:crypto";
|
|
28
28
|
import { Type } from "@sinclair/typebox";
|
|
@@ -315,7 +315,7 @@ function createPersonalTaskTool(deps) {
|
|
|
315
315
|
return {
|
|
316
316
|
name: "personal_task",
|
|
317
317
|
label: "Personal Task",
|
|
318
|
-
description: "Coordinate ordinary Tasks and connected-app requests. For get, retry, instruct, cancel, answer, collaboration, entry or notifications, use the known taskId or requestId. Connected-app requests awaiting authorization have only a requestId. Use timeRange on instruct for a changed absolute query range. Always include command. When the user asks to retry after reauthorization or failure, locate the original request or Task (list by a distinctive title phrase, using the original date if needed), then call retry with its exact ID. Ask which one only if multiple plausible targets remain. Report the returned status; queued means accepted for execution, waiting_connection means the original request is preserved and may still need action in the connection panel. Do not submit a duplicate. New ordinary goal: submit objective plus useOriginalRequest=true for a self-contained active user message; the host preserves the complete original text. Otherwise supply a concise complete description. Include sourceRefs for required inputs without pre-reading files or planning the execution. Use requirements.requestedAgentId only for an explicitly named executor; preserve explicitly requested requiredSkills. The background Router chooses the executor. After successful persistence, give one short confirmation and finish; updates arrive automatically.\nRUNNING work: send instruct with the known ID and instruction for new direction, or answer with the known ID, questionId and instruction for an exact worker question. Reuse the SAME Task, without a baseline lookup. Never revise running work.\nCOMPLETED ordinary work only: get(section=\"revision\"), then revise with instruction and exact returned revisionBaseline.resultId, baselineVersion and expectedVersion. If revisionBaseline is absent, use instruct/answer; never invent placeholders. This saves a revision and queues background allocation atomically. Reuse idempotencyKey for uncertain retries. supersedesEntryIds names only earlier instruction/answer entries to replace; all other requirements remain. Independent goals use submit with pinned old-result sources; connected-app side effects require a newly authorized Request.\nsourceRefs: workspace input {kind:\"file\",sourceId:\"path\"}; prior result {kind:\"result\",resultId:\"exact result ID\",sourceId:\"exact artifact ID or unique file title\"}, omitting sourceId only for retained body; other prior inputs use stable sourceId and optional expectedVersion. The host authorizes and pins exact versions; workspace inputs are not executor cwd. Do not invent composite IDs.\nUse notifications with the known ID and notificationPreference to change an existing Task only when the user asks. Use get(section=\"status\") for a brief current status; list locates a Task or a request awaiting authorization and get(section,limit,offset) reads details. collaboration(afterSequence) returns previews; entry(entryId,bodyOffset) reads full bodies through nextBodyOffset. Read complete questions before answering. cancel only on explicit user instruction; report executionStopConfirmed accurately. retry_allocation retries selection, not
|
|
318
|
+
description: "Coordinate ordinary Tasks and connected-app requests. For get, retry, instruct, cancel, answer, collaboration, entry or notifications, use the known taskId or requestId. Connected-app requests awaiting authorization have only a requestId. Use timeRange on instruct for a changed absolute query range. Always include command. When the user asks to retry after reauthorization or failure, locate the original request or Task (list by a distinctive title phrase, using the original date if needed), then call retry with its exact ID. Ask which one only if multiple plausible targets remain. Report the returned status; queued means accepted for execution, waiting_connection means the original request is preserved and may still need action in the connection panel. Do not submit a duplicate. New ordinary goal: submit objective plus useOriginalRequest=true for a self-contained active user message; the host preserves the complete original text. Otherwise supply a concise complete description. Include sourceRefs for required inputs without pre-reading files or planning the execution. Use requirements.requestedAgentId only for an explicitly named executor; preserve explicitly requested requiredSkills. The background Router chooses the executor. After successful persistence, give one short confirmation and finish; updates arrive automatically.\nRUNNING work: send instruct with the known ID and instruction for new direction, or answer with the known ID, questionId and instruction for an exact worker question. Reuse the SAME Task, without a baseline lookup. Never revise running work.\nCOMPLETED ordinary work only: get(section=\"revision\"), then revise with instruction and exact returned revisionBaseline.resultId, baselineVersion and expectedVersion. If revisionBaseline is absent, use instruct/answer; never invent placeholders. This saves a revision and queues background allocation atomically. Reuse idempotencyKey for uncertain retries. supersedesEntryIds names only earlier instruction/answer entries to replace; all other requirements remain. Independent goals use submit with pinned old-result sources; connected-app side effects require a newly authorized Request.\nFor a follow-up depending on a delivered result, use personal_result list/get to identify the exact result and pass it as a pinned source. Saying that the original is in chat does not give the worker access. If a required input is missing, resolve it before submitting.\nsourceRefs: workspace input {kind:\"file\",sourceId:\"path\"}; prior result {kind:\"result\",resultId:\"exact result ID\",sourceId:\"exact artifact ID or unique file title\"}, omitting sourceId only for retained body; other prior inputs use stable sourceId and optional expectedVersion. The host authorizes and pins exact versions; workspace inputs are not executor cwd. Do not invent composite IDs.\nUse notifications with the known ID and notificationPreference to change an existing Task only when the user asks. Use get(section=\"status\") for a brief current status; list locates a Task or a request awaiting authorization and get(section,limit,offset) reads details. collaboration(afterSequence) returns previews; entry(entryId,bodyOffset) reads full bodies through nextBodyOffset. Read complete questions before answering. cancel only on explicit user instruction; report executionStopConfirmed accurately. retry_allocation retries selection. For source_reference_unavailable on an unstarted task, supply complete replacement sourceRefs for its unresolved inputs. Reuse the existing task. Do not retry unchanged inputs from a background task update. Saved, delivered, executor-confirmed and verified completion are distinct; report only confirmed states.",
|
|
319
319
|
parameters: PersonalTaskModelSchema,
|
|
320
320
|
mutatesWorkspace: true,
|
|
321
321
|
mutationScope: "external",
|
|
@@ -328,7 +328,11 @@ function createPersonalTaskTool(deps) {
|
|
|
328
328
|
if (input.notificationPreference !== void 0 && (!isTaskNotificationPreference(input.notificationPreference) || !["submit", "notifications"].includes(input.command))) throw new Error("Invalid Task notification preference");
|
|
329
329
|
if (input.dueAt !== void 0 && input.command !== "submit") throw new Error("dueAt is supported only by submit");
|
|
330
330
|
if (input.taskReference !== void 0 && input.command !== "instruct") throw new Error("taskReference is supported only by instruct");
|
|
331
|
-
if (modelInput.sourceRefs?.length && ![
|
|
331
|
+
if (modelInput.sourceRefs?.length && ![
|
|
332
|
+
"submit",
|
|
333
|
+
"revise",
|
|
334
|
+
"retry_allocation"
|
|
335
|
+
].includes(input.command)) throw new Error("sourceRefs requires submit, revise, or recovery of a blocked allocation");
|
|
332
336
|
const conversationId = deps.getCurrentConversationId?.();
|
|
333
337
|
const ownAgentId = deps.getCurrentAgentId?.();
|
|
334
338
|
if (!conversationId || !ownAgentId || !isPersonalConversation(conversationId)) throw new Error("Personal conversation context is unavailable");
|
|
@@ -461,6 +465,9 @@ function createPersonalTaskTool(deps) {
|
|
|
461
465
|
details: {}
|
|
462
466
|
};
|
|
463
467
|
}
|
|
468
|
+
const refs = parseTaskHandoffReferences(modelInput.sourceRefs);
|
|
469
|
+
if (!refs) throw new Error("Invalid Task sourceRefs");
|
|
470
|
+
const sourceRefs = modelInput.sourceRefs && refs.map((ref) => pinTaskHandoffReference(conversationId, ref));
|
|
464
471
|
let selectedProductTool = productTool;
|
|
465
472
|
let pendingSelection;
|
|
466
473
|
let command = input.command;
|
|
@@ -468,7 +475,9 @@ function createPersonalTaskTool(deps) {
|
|
|
468
475
|
if (command === "submit") {
|
|
469
476
|
const objective = input.objective?.trim();
|
|
470
477
|
const inputId = getSessionInputState(conversationId).activeInputId;
|
|
471
|
-
const
|
|
478
|
+
const activeInput = inputId ? getSessionInputById(conversationId, inputId) : void 0;
|
|
479
|
+
if (activeInput?.origin.type === "system" && activeInput.origin.source === "task_update") throw new Error("A Task update cannot authorize a new Task. Handle the existing Task or leave it waiting for the user.");
|
|
480
|
+
const original = input.useOriginalRequest ? activeInput : void 0;
|
|
472
481
|
if (input.useOriginalRequest && (!original || original.kind !== "message" || !original.content.trim())) throw new Error("The active original user request is unavailable; submit a complete description instead");
|
|
473
482
|
const description = [original?.content, input.description?.trim()].filter(Boolean).join("\n\n");
|
|
474
483
|
if (!objective || !description) throw new Error("objective and a complete description or active original request are required");
|
|
@@ -482,7 +491,7 @@ function createPersonalTaskTool(deps) {
|
|
|
482
491
|
sourceInput: inputId ?? toolCallId,
|
|
483
492
|
brief,
|
|
484
493
|
requirements,
|
|
485
|
-
sourceRefs
|
|
494
|
+
sourceRefs,
|
|
486
495
|
conversationExcerpts: modelInput.conversationExcerpts,
|
|
487
496
|
expectedOutputs: input.expectedOutputs,
|
|
488
497
|
acceptanceCriteria: input.acceptanceCriteria,
|
|
@@ -499,7 +508,7 @@ function createPersonalTaskTool(deps) {
|
|
|
499
508
|
requirements,
|
|
500
509
|
dueAt: input.dueAt,
|
|
501
510
|
notificationPreference: input.notificationPreference,
|
|
502
|
-
sourceRefs
|
|
511
|
+
sourceRefs,
|
|
503
512
|
conversationExcerpts: modelInput.conversationExcerpts,
|
|
504
513
|
includeConversationContext: false,
|
|
505
514
|
expectedOutputs: input.expectedOutputs,
|
|
@@ -605,15 +614,16 @@ function createPersonalTaskTool(deps) {
|
|
|
605
614
|
if (activeInput?.kind === "message" && !workerUpdate) {
|
|
606
615
|
const directory = new TaskOriginRepository();
|
|
607
616
|
const reference = input.taskReference?.trim();
|
|
617
|
+
const anchored = directory.recentResultTask(conversationId, activeInput.id, activeInput.createdAtMs) === taskId;
|
|
608
618
|
if (!reference) {
|
|
609
|
-
if (directory.list(conversationId, 1, { excludeClosed: true }).total > 1) throw new Error("Several tasks are still open. Provide taskReference quoted from the latest user message, or ask which task they mean.");
|
|
619
|
+
if (!anchored && directory.list(conversationId, 1, { excludeClosed: true }).total > 1) throw new Error("Several tasks are still open. Provide taskReference quoted from the latest user message, or ask which task they mean.");
|
|
610
620
|
} else {
|
|
611
621
|
if (!activeInput.content.toLowerCase().includes(reference.toLowerCase())) throw new Error("Provide taskReference quoted from the latest user message, or omit it for an implicit follow-up to the only open task.");
|
|
612
622
|
let matches = directory.list(conversationId, 1, { query: reference });
|
|
613
623
|
const shortReference = reference.replace(/(?:[这那][份个项条](?:任务)?|(?:的)?任务|\s+task)$/iu, "").trimEnd();
|
|
614
624
|
if (!matches.total && shortReference && shortReference !== reference) matches = directory.list(conversationId, 1, { query: shortReference });
|
|
615
625
|
if (matches.total > 1) throw new Error("The taskReference does not identify this task uniquely. Ask which task the user means without retrying this reference.");
|
|
616
|
-
if (matches.items[0]?.id !== taskId) throw new Error("The taskReference does not identify the selected task. Use a distinctive quote from the user’s message that matches its title or objective, or ask which task they mean.");
|
|
626
|
+
if (matches.items[0]?.id !== taskId && !(anchored && matches.total === 0)) throw new Error("The taskReference does not identify the selected task. Use a distinctive quote from the user’s message that matches its title or objective, or ask which task they mean.");
|
|
617
627
|
}
|
|
618
628
|
}
|
|
619
629
|
}
|
|
@@ -645,9 +655,23 @@ function createPersonalTaskTool(deps) {
|
|
|
645
655
|
details: {}
|
|
646
656
|
};
|
|
647
657
|
}
|
|
648
|
-
if (command === "get" && input.section === "revision") {
|
|
658
|
+
if (command === "get" && input.section === "revision" || command === "instruct") {
|
|
649
659
|
const model = new TaskReadModelProjector().get(taskId);
|
|
650
|
-
return {
|
|
660
|
+
if (command === "instruct" && model.revisionBaseline && model.allowedCommands.includes("revise")) return {
|
|
661
|
+
content: [{
|
|
662
|
+
type: "text",
|
|
663
|
+
text: JSON.stringify({
|
|
664
|
+
ok: false,
|
|
665
|
+
reason: "revision_required",
|
|
666
|
+
taskId,
|
|
667
|
+
revisionBaseline: model.revisionBaseline,
|
|
668
|
+
expectedVersion: model.task.version,
|
|
669
|
+
recovery: "Call revise on this same Task with the instruction and the returned baseline and expectedVersion."
|
|
670
|
+
})
|
|
671
|
+
}],
|
|
672
|
+
details: {}
|
|
673
|
+
};
|
|
674
|
+
if (command === "get") return {
|
|
651
675
|
content: [{
|
|
652
676
|
type: "text",
|
|
653
677
|
text: JSON.stringify({
|
|
@@ -666,8 +690,6 @@ function createPersonalTaskTool(deps) {
|
|
|
666
690
|
}
|
|
667
691
|
if (command === "revise") {
|
|
668
692
|
if (!input.instruction || !input.baselineResultId || !input.baselineVersion || !input.expectedVersion) throw new Error("Revision requires instruction, baseline result/version, and expected task version");
|
|
669
|
-
const refs = parseTaskHandoffReferences(modelInput.sourceRefs);
|
|
670
|
-
if (!refs) throw new Error("Invalid revision sourceRefs");
|
|
671
693
|
const result = new TaskApplicationService().reviseCompleted({
|
|
672
694
|
taskId,
|
|
673
695
|
conversationId,
|
|
@@ -675,7 +697,7 @@ function createPersonalTaskTool(deps) {
|
|
|
675
697
|
baselineResultId: input.baselineResultId,
|
|
676
698
|
baselineVersion: input.baselineVersion,
|
|
677
699
|
expectedVersion: input.expectedVersion,
|
|
678
|
-
sourceRefs
|
|
700
|
+
sourceRefs,
|
|
679
701
|
supersedesEntryIds: input.supersedesEntryIds,
|
|
680
702
|
idempotencyKey: input.idempotencyKey ?? `personal-revise:${conversationId}:${toolCallId}`
|
|
681
703
|
});
|
|
@@ -762,11 +784,51 @@ function createPersonalTaskTool(deps) {
|
|
|
762
784
|
};
|
|
763
785
|
}
|
|
764
786
|
if (command === "retry_allocation") {
|
|
787
|
+
const activeInputId = getSessionInputState(conversationId).activeInputId;
|
|
788
|
+
const activeInput = activeInputId ? getSessionInputById(conversationId, activeInputId) : void 0;
|
|
789
|
+
if (!sourceRefs?.length && activeInput?.origin.type === "system" && activeInput.origin.source === "task_update") throw new Error("An unchanged allocation cannot be retried from a background Task update");
|
|
790
|
+
const expectedVersion = new TaskRepository().require(taskId).version;
|
|
791
|
+
if (sourceRefs?.length) {
|
|
792
|
+
const mutation = {
|
|
793
|
+
taskId,
|
|
794
|
+
type: "retry_allocation",
|
|
795
|
+
expectedVersion,
|
|
796
|
+
sourceRefs
|
|
797
|
+
};
|
|
798
|
+
if (deps.authorizeCapability && !await deps.authorizeCapability("xopc.tasks.command", mutation)) throw new Error("Task access denied");
|
|
799
|
+
const result = new TaskApplicationService().execute({
|
|
800
|
+
taskId,
|
|
801
|
+
expectedVersion,
|
|
802
|
+
idempotencyKey: input.idempotencyKey ?? `allocation-sources:${taskId}:${toolCallId}`,
|
|
803
|
+
command: { type: "retry_allocation" },
|
|
804
|
+
allocationSources: sourceRefs,
|
|
805
|
+
actor: {
|
|
806
|
+
kind: "agent",
|
|
807
|
+
id: ownAgentId
|
|
808
|
+
}
|
|
809
|
+
});
|
|
810
|
+
if (result.ok) deps.dispatchTaskRuns?.();
|
|
811
|
+
const response = result.ok === false ? {
|
|
812
|
+
ok: false,
|
|
813
|
+
reason: result.reason
|
|
814
|
+
} : {
|
|
815
|
+
ok: true,
|
|
816
|
+
taskId,
|
|
817
|
+
allocation: result.model.allocation
|
|
818
|
+
};
|
|
819
|
+
return {
|
|
820
|
+
content: [{
|
|
821
|
+
type: "text",
|
|
822
|
+
text: JSON.stringify(response)
|
|
823
|
+
}],
|
|
824
|
+
details: {}
|
|
825
|
+
};
|
|
826
|
+
}
|
|
765
827
|
command = "command";
|
|
766
828
|
args = {
|
|
767
829
|
taskId,
|
|
768
830
|
type: "retry_allocation",
|
|
769
|
-
expectedVersion
|
|
831
|
+
expectedVersion
|
|
770
832
|
};
|
|
771
833
|
} else if (command === "instruct" || command === "answer") {
|
|
772
834
|
const body = input.instruction?.trim();
|
|
@@ -794,9 +856,10 @@ function createPersonalTaskTool(deps) {
|
|
|
794
856
|
command,
|
|
795
857
|
args
|
|
796
858
|
}, signal, void 0);
|
|
797
|
-
if (
|
|
859
|
+
if (input.command === "answer" && input.taskId && result.details.result && result.details.result.ok !== false) {
|
|
798
860
|
const allocation = new TaskAllocationRepository().get(input.taskId);
|
|
799
|
-
|
|
861
|
+
const question = input.questionId ? new TaskCollaborationRepository().get(input.questionId) : void 0;
|
|
862
|
+
if (allocation?.status === "blocked" && allocation.reason_code === "needs_input" && question?.taskId === input.taskId && question.authorKind === "system" && question.authorId === "task-router" && question.createdAt >= allocation.updated_at) {
|
|
800
863
|
new TaskApplicationService().execute({
|
|
801
864
|
taskId: input.taskId,
|
|
802
865
|
expectedVersion: new TaskRepository().require(input.taskId).version,
|
|
@@ -7,6 +7,7 @@ const SessionRecallSchema = Type.Object({
|
|
|
7
7
|
maxLength: 500,
|
|
8
8
|
description: "Keywords, an exact phrase, path, URL, ID, date, or name to find in this session."
|
|
9
9
|
}),
|
|
10
|
+
matchMode: Type.Optional(Type.Union([Type.Literal("keyword"), Type.Literal("phrase")], { description: "Use keyword for multiple search terms, or phrase for exact wording. Defaults to exact phrase first with a keyword fallback." })),
|
|
10
11
|
limit: Type.Optional(Type.Integer({
|
|
11
12
|
minimum: 1,
|
|
12
13
|
maximum: 20,
|
|
@@ -51,10 +52,17 @@ function createSessionRecallTool(deps) {
|
|
|
51
52
|
const query = input.query.trim();
|
|
52
53
|
const limit = Math.min(20, Math.max(1, input.limit ?? 8));
|
|
53
54
|
const maxChars = Math.min(2e4, Math.max(500, input.maxCharsPerResult ?? 6e3));
|
|
54
|
-
const
|
|
55
|
+
const store = deps.getSessionStore();
|
|
56
|
+
const options = {
|
|
55
57
|
limit,
|
|
56
58
|
...input.beforeSeq ? { beforeSeq: input.beforeSeq } : {},
|
|
57
|
-
...deps.maxOutputChars ? { orderBySeq: true } : {}
|
|
59
|
+
...deps.maxOutputChars ? { orderBySeq: true } : {},
|
|
60
|
+
...input.matchMode ? { matchMode: input.matchMode } : {}
|
|
61
|
+
};
|
|
62
|
+
let matches = store.recallSession(conversationId, query, options);
|
|
63
|
+
if (!input.matchMode && !matches.length && /\s/u.test(query)) matches = store.recallSession(conversationId, query, {
|
|
64
|
+
...options,
|
|
65
|
+
matchMode: "keyword"
|
|
58
66
|
});
|
|
59
67
|
const protectedEntries = deps.getHistoryContext ? forgottenHistoryEntries(deps.getHistoryContext(), deps.getCurrentUserText?.()) : /* @__PURE__ */ new Set();
|
|
60
68
|
for (const match of matches) if (protectedEntries.has(`${conversationId}:*`) || protectedEntries.has(`${conversationId}:${match.entryId}`)) match.content = FORGOTTEN_HISTORY_EXCERPT;
|
|
@@ -2,10 +2,10 @@ import { createLogger } from "../../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { init_fts, sessionSearchTerms } from "../../storage/sqlite/fts.js";
|
|
4
4
|
import { readAgentMessageContent } from "../memory/agent-message-access.js";
|
|
5
|
-
import { init_providers, resolveModel } from "../../providers/index.js";
|
|
6
5
|
import { FORGOTTEN_HISTORY_EXCERPT, forgottenHistoryEntries, projectUnadmittedForgottenFields } from "../../memory-learning/forgotten-history.js";
|
|
7
|
-
import {
|
|
6
|
+
import { init_providers, resolveModel } from "../../providers/index.js";
|
|
8
7
|
import { completeWithResolvedCredentials } from "../../providers/model-call.js";
|
|
8
|
+
import { stripRuntimeContextFromUserMessage } from "../../session/user-message-display.js";
|
|
9
9
|
import "./local-read-budget.js";
|
|
10
10
|
import { Type } from "@sinclair/typebox";
|
|
11
11
|
//#region src/agent/tools/session-search-tool.ts
|
|
@@ -46,6 +46,12 @@ const schema = Type.Object({
|
|
|
46
46
|
maxItems: 50,
|
|
47
47
|
uniqueItems: true
|
|
48
48
|
})),
|
|
49
|
+
replacementArtifactIds: Type.Optional(Type.Array(Type.String({ minLength: 1 }), {
|
|
50
|
+
minItems: 1,
|
|
51
|
+
maxItems: 50,
|
|
52
|
+
uniqueItems: true,
|
|
53
|
+
description: "With explicit mode=amend and no finalArtifactIds, supply only the new receipts. Use sources: [] and claims: [] when the existing evidence is unchanged."
|
|
54
|
+
})),
|
|
49
55
|
mode: Type.Optional(Type.Union([Type.Literal("replace"), Type.Literal("amend")])),
|
|
50
56
|
retireClaimIds: Type.Optional(Type.Array(id, { maxItems: 40 })),
|
|
51
57
|
sources: Type.Array(Type.Object({
|
|
@@ -69,10 +75,7 @@ const schema = Type.Object({
|
|
|
69
75
|
required: ["toolCallId", "excerptRange"],
|
|
70
76
|
not: { required: ["excerpt"] }
|
|
71
77
|
}]
|
|
72
|
-
}), {
|
|
73
|
-
minItems: 1,
|
|
74
|
-
maxItems: 40
|
|
75
|
-
}),
|
|
78
|
+
}), { maxItems: 40 }),
|
|
76
79
|
claims: Type.Array(Type.Object({
|
|
77
80
|
id,
|
|
78
81
|
statement: Type.String({
|
|
@@ -88,17 +91,14 @@ const schema = Type.Object({
|
|
|
88
91
|
minItems: 1,
|
|
89
92
|
maxItems: 8
|
|
90
93
|
})
|
|
91
|
-
}, { additionalProperties: false }), {
|
|
92
|
-
minItems: 1,
|
|
93
|
-
maxItems: 40
|
|
94
|
-
})
|
|
94
|
+
}, { additionalProperties: false }), { maxItems: 40 })
|
|
95
95
|
}, { additionalProperties: false });
|
|
96
96
|
function createTaskResultTool(getConversationId) {
|
|
97
97
|
return {
|
|
98
98
|
name: "publish_task_result",
|
|
99
99
|
label: "Publish research conclusions",
|
|
100
100
|
parameters: schema,
|
|
101
|
-
description: "For sources prefer toolCallId plus excerptRange {start,end} copied from evidence receipts, and OMIT excerpt. Ranges use Unicode character offsets, at most 1000 characters; the host extracts the original successful read exactly so code escapes and commands cannot corrupt quotes. Supply exactly one of excerptRange or a short exact excerpt. Never include the input command as output. When this execution published files, finalArtifactIds
|
|
101
|
+
description: "For sources prefer toolCallId plus excerptRange {start,end} copied from evidence receipts, and OMIT excerpt. Ranges use Unicode character offsets, at most 1000 characters; the host extracts the original successful read exactly so code escapes and commands cannot corrupt quotes. Supply exactly one of excerptRange or a short exact excerpt. Never include the input command as output. When this execution published files, use finalArtifactIds to select the exact receipts for the initial or changed set of outputs. For republication of files already selected under the current requirements, use mode=amend and replacementArtifactIds with just the replacement receipts. Exclude intermediate, failed, obsolete and unrelated files. [] explicitly selects a text-only final result. New submissions replace this final selection; no historical union. Submit Task research evidence for per-criterion review; publish required files first. Initial submission creates the ledger; subsequent submissions default to amend so earlier evidence is retained. Use explicit replace only for a complete replacement ledger. During repair retain stable source/claim IDs, update targeted claims and retire obsolete/wrong claim IDs with retireClaimIds. All retained claims are reviewed again. Reviewer support/note/checks fields are read-only; never send them back in sources or claims. Never drop valid calculation/input evidence merely to fix a file. Negative assertions such as \"never reran a script\" need an observable, scoped execution record; do not invent proof of absence or add an unnecessary absolute negative claim. Keep prohibitions as constraints, and retire unsupported optional claims while retaining required verified findings. Sources require short contiguous exact excerpts from successful read_file/read_media/image/web/exec/session_status results or publication receipts (including image_generate) in this TaskRun. Use image observations for visual criteria; generation/publication alone does not verify appearance or confirm delivery to the originating chat. Never concatenate passages, invent call IDs, or cite an earlier review as factual evidence. Use task_collaboration get section evidence to list/read original toolCallIds. Use finalText to submit the exact chat deliverable for content checks. It is not a source for external factual claims. On source_quote_mismatch follow the recovery instruction; never repeat unchanged sources. Prefer original inputs; the host reads published reports/scripts. URL is optional; actual web metadata is preserved. Claims reference source IDs and distinguish fact/inference/recommendation. Publication receipts prove availability, not prices. This binds provenance and runs model review, not independent fact certification. Resubmit changed evidence or adopted directions; do not endlessly repeat unchanged data when review is unavailable. Do not use outside a Task.",
|
|
102
102
|
supportsParallel: false,
|
|
103
103
|
mutationScope: "none",
|
|
104
104
|
idempotent: false,
|
|
@@ -115,6 +115,7 @@ function createTaskResultTool(getConversationId) {
|
|
|
115
115
|
readyForCompletion,
|
|
116
116
|
...readyForCompletion ? {} : { nextAction: "The saved ledger is not fully verified. Before finishing, amend evidence for required unsupported findings; retire optional unsupported claims with retireClaimIds while preserving valid required evidence. Do not replay completed or uncertain operations just to change the ledger. If a required finding cannot be verified safely, retain an honest partial result." },
|
|
117
117
|
review: research.review,
|
|
118
|
+
finalArtifactIds: research.finalArtifactIds,
|
|
118
119
|
claims: research.claims,
|
|
119
120
|
checks: research.checks,
|
|
120
121
|
instructionChecks: research.instructionChecks
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
+
import { speak } from "../../voice/tts/speak-core.js";
|
|
3
4
|
import { mergeTtsConfigFromAppConfig } from "../../voice/tts/merge-config.js";
|
|
4
5
|
import { getChannelOutputFormat } from "../../voice/tts/service.js";
|
|
5
|
-
import { speak } from "../../voice/tts/speak-core.js";
|
|
6
6
|
import { compressAudio } from "../../voice/tts/audio.js";
|
|
7
7
|
import { persistOutboundTtsAudio } from "../../channels/attachments/outbound-tts-persist.js";
|
|
8
8
|
import { Type } from "@sinclair/typebox";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { projectForgottenEvidence } from "../../memory-learning/forgotten-history.js";
|
|
2
|
+
import { retrievalLexicalSimilarity } from "../../retrieval/textFeatures.js";
|
|
1
3
|
import { deleteUserAssertion, getAssertionSlot, getUserAssertion, listUserAssertionSources, listUserAssertions, reconcileAssertion, setAssertionStatus } from "../../user-model/repository.js";
|
|
2
4
|
import { canUseAssertion } from "../../user-model/usage-policy.js";
|
|
3
5
|
import "../../user-model/index.js";
|
|
4
|
-
import { projectForgottenEvidence } from "../../memory-learning/forgotten-history.js";
|
|
5
|
-
import { retrievalLexicalSimilarity } from "../../retrieval/textFeatures.js";
|
|
6
6
|
import "./local-read-budget.js";
|
|
7
7
|
import { memoryVersion } from "../../user-context/memory-version.js";
|
|
8
8
|
import { Type } from "@sinclair/typebox";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
-
import { fetchPublicText } from "./fetch-text.js";
|
|
4
3
|
import { SearchError, classifySearchError, searchFailureInfo } from "./search/errors.js";
|
|
5
4
|
import { SearchProviderRegistry } from "./search/registry.js";
|
|
6
5
|
import { resolveWebSearchConfig } from "./search/resolve-config.js";
|
|
7
6
|
import { sanitizeSearchInfo } from "./search/search-info.js";
|
|
7
|
+
import { fetchPublicText } from "./fetch-text.js";
|
|
8
8
|
import { Type } from "@sinclair/typebox";
|
|
9
9
|
//#region src/agent/tools/web.ts
|
|
10
10
|
init_logger();
|
|
@@ -38,7 +38,7 @@ function searchToolResult(query, count, response) {
|
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
function searchToolError(error, signal) {
|
|
41
|
+
function searchToolError(query, count, error, signal) {
|
|
42
42
|
const failure = classifySearchError(error, signal);
|
|
43
43
|
return {
|
|
44
44
|
content: [{
|
|
@@ -46,6 +46,8 @@ function searchToolError(error, signal) {
|
|
|
46
46
|
text: `Search error (${failure.kind}): ${failure.message}`
|
|
47
47
|
}],
|
|
48
48
|
details: {
|
|
49
|
+
query,
|
|
50
|
+
count,
|
|
49
51
|
results: [],
|
|
50
52
|
error: failure.message,
|
|
51
53
|
failure: searchFailureInfo(failure),
|
|
@@ -75,7 +77,7 @@ function createWebSearchTool(getConfig) {
|
|
|
75
77
|
}
|
|
76
78
|
};
|
|
77
79
|
} catch (error) {
|
|
78
|
-
const result = searchToolError(error, signal);
|
|
80
|
+
const result = searchToolError(params.query, count, error, signal);
|
|
79
81
|
return {
|
|
80
82
|
...result,
|
|
81
83
|
details: {
|
|
@@ -96,7 +98,7 @@ function createWebSearchTool(getConfig) {
|
|
|
96
98
|
return {
|
|
97
99
|
sourceRequests: registry.sourceRequests,
|
|
98
100
|
items: responses.map((item) => {
|
|
99
|
-
const result = item.response ? searchToolResult(item.query, item.count, item.response) : searchToolError(new SearchError(item.error), signal);
|
|
101
|
+
const result = item.response ? searchToolResult(item.query, item.count, item.response) : searchToolError(item.query, item.count, new SearchError(item.error), signal);
|
|
100
102
|
return {
|
|
101
103
|
id: item.id,
|
|
102
104
|
result: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { spaceWorkbookRoute } from "../../../packages/gateway-contract/src/space.js";
|
|
2
2
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
3
3
|
import { getSessionInteractionPolicy } from "../session/interaction-policy-state.js";
|
|
4
|
-
import { currentWorkbookTurn, workbookForTurn } from "../../space/workbook-turn.js";
|
|
5
4
|
import { applyWorkbookProposal, createWorkbookProposal, findWorkbookProposal, isLatestWorkbookProposal, workbookProposalView } from "../../space/workbook-proposals.js";
|
|
5
|
+
import { currentWorkbookTurn, workbookForTurn } from "../../space/workbook-turn.js";
|
|
6
6
|
import { Type } from "@sinclair/typebox";
|
|
7
7
|
import { Value } from "@sinclair/typebox/value";
|
|
8
8
|
//#region src/agent/tools/workbook-tools.ts
|
|
@@ -11,9 +11,9 @@ import { TaskRunRepository, mcpDelegatedRunPrincipal } from "../../tasks/task-ru
|
|
|
11
11
|
import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
|
|
12
12
|
import "../../storage/sqlite/index.js";
|
|
13
13
|
import "../../activity/index.js";
|
|
14
|
-
import { hasUnlocalizedTaskText, resolveTaskLocale } from "../../tasks/task-language.js";
|
|
15
14
|
import { getDefaultAgentId, init_resolve_route } from "../../routing/resolve-route.js";
|
|
16
15
|
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
16
|
+
import { hasUnlocalizedTaskText, resolveTaskLocale } from "../../tasks/task-language.js";
|
|
17
17
|
import { resolveProjectAgentId } from "../../projects/project-agent.js";
|
|
18
18
|
import "../../projects/index.js";
|
|
19
19
|
import { parseTaskConversationExcerpts, parseTaskHandoffReferences } from "../../tasks/task-handoff.js";
|
|
@@ -21,22 +21,22 @@ import { TaskReadModelProjector } from "../../tasks/task-read-model-projector.js
|
|
|
21
21
|
import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
|
|
22
22
|
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
23
23
|
import { TaskOriginRepository } from "../../tasks/task-origin-repository.js";
|
|
24
|
-
import {
|
|
24
|
+
import { getEmbeddedExecutionRunId } from "../embedded/execution-context.js";
|
|
25
25
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
26
26
|
import { getAutomationSetup } from "../../automations/configuration-conversation.js";
|
|
27
|
-
import { AutomationMcpSourceInput, prepareAutomationMcpSource } from "../../automations/mcp-source.js";
|
|
28
|
-
import { getEmbeddedExecutionRunId } from "../embedded/execution-context.js";
|
|
29
|
-
import { isTaskNotificationPreference, taskNotificationContext } from "../../tasks/task-notification-preference.js";
|
|
30
|
-
import { defineTaskContract } from "../../tasks/task-contract-definition.js";
|
|
31
|
-
import { resolveResponseLanguageForSession } from "../prompt/response-language.js";
|
|
32
27
|
import "../../capabilities/runtime/dispatcher.js";
|
|
33
|
-
import {
|
|
28
|
+
import { AutomationMcpSourceInput, prepareAutomationMcpSource } from "../../automations/mcp-source.js";
|
|
29
|
+
import { TaskApplicationService } from "../../tasks/task-application-service.js";
|
|
34
30
|
import { AutomationCreateCapabilityInputSchema, AutomationUpdatePatchSchema } from "../../automations/capabilities/write.js";
|
|
31
|
+
import { resolveResponseLanguageForSession } from "../prompt/response-language.js";
|
|
35
32
|
import { TaskMutationOutputSchema } from "../../tasks/capabilities/write.js";
|
|
36
33
|
import { TaskDeletionService } from "../../tasks/task-deletion-service.js";
|
|
37
34
|
import { TaskDeleteOutputSchema } from "../../tasks/capabilities/management.js";
|
|
35
|
+
import { getDelegationScope } from "../orchestration/delegation-scope.js";
|
|
38
36
|
import { localAppCapabilities } from "../../local-apps/capabilities/runtime.js";
|
|
39
37
|
import { createProductDispatcher } from "../../capabilities/runtime/product.js";
|
|
38
|
+
import { isTaskNotificationPreference, taskNotificationContext } from "../../tasks/task-notification-preference.js";
|
|
39
|
+
import { defineTaskContract } from "../../tasks/task-contract-definition.js";
|
|
40
40
|
import "../../tasks/index.js";
|
|
41
41
|
import { randomUUID } from "node:crypto";
|
|
42
42
|
import { Type } from "@sinclair/typebox";
|
|
@@ -4,8 +4,8 @@ import { init_agent_config } from "../agent-config/index.js";
|
|
|
4
4
|
import { AgentCatalogRepository, init_repository } from "./repository.js";
|
|
5
5
|
import { init_agent_scope, resolveAgentWorkspaceDir } from "../agent/agent-scope.js";
|
|
6
6
|
import { CapabilityError } from "../capabilities/runtime/errors.js";
|
|
7
|
-
import { AgentCatalogService } from "./service.js";
|
|
8
7
|
import { defineAtomicCapability, defineReadCapability } from "../capabilities/runtime/dispatcher.js";
|
|
8
|
+
import { AgentCatalogService } from "./service.js";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
//#region src/agent-catalog/capabilities.ts
|
|
11
11
|
init_agent_config();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { getDefaultModelSync, init_providers, resolveModel } from "../providers/index.js";
|
|
4
|
-
import { getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
|
|
5
4
|
import { createResolvedModelStream, isLocalModelBaseUrl, resolveModelCallApiKey } from "../providers/model-call.js";
|
|
5
|
+
import { getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
|
|
6
6
|
//#region src/ai-assist/text-assist.ts
|
|
7
7
|
init_providers();
|
|
8
8
|
init_logger();
|
|
@@ -3,8 +3,8 @@ import { generatePKCE, init_pkce } from "./pkce.js";
|
|
|
3
3
|
import { init_resolution, resolveConnectedPlatformEndpoint } from "../../platform/resolution.js";
|
|
4
4
|
import { hostname } from "node:os";
|
|
5
5
|
import { randomBytes } from "node:crypto";
|
|
6
|
-
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
7
6
|
import http from "node:http";
|
|
7
|
+
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
8
8
|
//#region src/auth/oauth/xopc-cloud.ts
|
|
9
9
|
function consoleUrl() {
|
|
10
10
|
return (process.env.XOPC_CONSOLE_URL ?? resolveConnectedPlatformEndpoint("authorizationServer") ?? DEFAULT_CONSOLE_URL).replace(/\/+$/, "");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { init_paths, resolveAgentAuthProfilesPath, resolveAuthProfilesPath, resolveOAuthPath } from "../config/paths.js";
|
|
3
|
+
import { getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
|
|
3
4
|
import { assertCurrentModelProvider, init_provider_policy } from "../providers/provider-policy.js";
|
|
4
5
|
import { init_registry, isOAuthOnlyProvider } from "./oauth/registry.js";
|
|
5
|
-
import { getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
|
|
6
6
|
import { existsSync, readFileSync } from "node:fs";
|
|
7
7
|
//#region src/auth/sync-provider-auth.ts
|
|
8
8
|
/**
|
|
@@ -12,9 +12,9 @@ import { getAutomationEventForRun } from "../events/event-repository.js";
|
|
|
12
12
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
13
13
|
import "../events/index.js";
|
|
14
14
|
import { assertAutomationSetupTarget, bindAutomationSetup, getAutomationSetup } from "../configuration-conversation.js";
|
|
15
|
-
import { AutomationAlreadyExistsError, AutomationAlreadyRunningError, AutomationInvalidAgentError, AutomationInvalidScheduleError, AutomationInvalidSourceError } from "../service/automation-service.js";
|
|
16
15
|
import { defineAtomicCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
17
16
|
import { LocalAppAutomationSubmitSchema } from "../../local-apps/capabilities/projections.js";
|
|
17
|
+
import { AutomationAlreadyExistsError, AutomationAlreadyRunningError, AutomationInvalidAgentError, AutomationInvalidScheduleError, AutomationInvalidSourceError } from "../service/automation-service.js";
|
|
18
18
|
import { personalScheduleInput } from "../../personal-agent/schedules.js";
|
|
19
19
|
import { z } from "zod";
|
|
20
20
|
//#region src/automations/capabilities/write.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AutomationActionSchema, AutomationDeliveryPolicySchema, AutomationManagementSchema, AutomationReliabilitySchema, AutomationSafetyPolicySchema, AutomationScheduleSchema, AutomationSchema, AutomationStateSchema, AutomationTriggerSchema, CreateAutomationSchema, UpdateAutomationSchema } from "./validation.js";
|
|
2
|
-
import { DEFAULT_AUTOMATION_TIMEOUT_SECONDS, defaultAutomationTimeoutSeconds, resolveAutomationTimeoutSeconds } from "./defaults.js";
|
|
3
2
|
import { computeNextAutomationRunAtMs, computeNextScheduleRunAtMs, timerDelayUntil } from "./schedule.js";
|
|
3
|
+
import { DEFAULT_AUTOMATION_TIMEOUT_SECONDS, defaultAutomationTimeoutSeconds, resolveAutomationTimeoutSeconds } from "./defaults.js";
|
|
4
4
|
export { AutomationActionSchema, AutomationDeliveryPolicySchema, AutomationManagementSchema, AutomationReliabilitySchema, AutomationSafetyPolicySchema, AutomationScheduleSchema, AutomationSchema, AutomationStateSchema, AutomationTriggerSchema, CreateAutomationSchema, DEFAULT_AUTOMATION_TIMEOUT_SECONDS, UpdateAutomationSchema, computeNextAutomationRunAtMs, computeNextScheduleRunAtMs, defaultAutomationTimeoutSeconds, resolveAutomationTimeoutSeconds, timerDelayUntil };
|