@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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { getSqliteDatabase, init_transaction } from "../storage/sqlite/transaction.js";
|
|
2
2
|
import { getSessionConfig } from "../storage/sqlite/config-repository.js";
|
|
3
|
+
import { isOwnerIdentity } from "../user-context/identity-bindings.js";
|
|
3
4
|
import { getConversationRouting } from "../storage/sqlite/conversation-repository.js";
|
|
4
5
|
import { init_session_key } from "../routing/session-key.js";
|
|
5
|
-
import { isOwnerIdentity } from "../user-context/identity-bindings.js";
|
|
6
|
-
import { canonicalWorkspacePath } from "../projects/workspace-project.js";
|
|
7
6
|
import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
|
|
8
7
|
import { OWNER_LEARNING_SESSION_SQL } from "../memory-learning/transcript-source.js";
|
|
8
|
+
import { canonicalWorkspacePath } from "../projects/workspace-project.js";
|
|
9
9
|
//#region src/session/history-recall-policy.ts
|
|
10
10
|
init_transaction();
|
|
11
11
|
init_session_key();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { buildSessionContextForLlm, init_session_context_for_llm, isTranscriptContextEntry, mergeLlmMessagesPreservingContextRows, transcriptRowsFromJsonArray } from "./session-context-for-llm.js";
|
|
2
2
|
import { SessionStatus, init_types } from "./types.js";
|
|
3
|
-
import { emitSessionTranscriptUpdate, onSessionTranscriptUpdate } from "./transcript-events.js";
|
|
4
3
|
import { effectiveWorkspacePathForSession, normalizeWorkingDirectoryInput, projectWorkspacePath } from "./session-workspace.js";
|
|
5
|
-
import {
|
|
4
|
+
import { emitSessionTranscriptUpdate, onSessionTranscriptUpdate } from "./transcript-events.js";
|
|
6
5
|
import { flattenMessageContent, messagesToClientHistory } from "./client-history.js";
|
|
6
|
+
import { fallbackTitleFromMessages, generateSessionTitleFromMessages, getSessionTitleSource, isWebchatConversationId, maybeRefineSessionTitleWithLlm, maybeSetProvisionalSessionTitle, provisionalTitleFromUserText, sanitizeGeneratedSessionTitle, sanitizeSessionTitle, shouldAutoTitleConversationId, shouldRefineSessionTitleWithLlm } from "./session-title.js";
|
|
7
7
|
import { SessionStore } from "./store.js";
|
|
8
8
|
import { applySessionPatchToMetadata } from "./patch-metadata.js";
|
|
9
9
|
import { SessionIndex } from "./manager.js";
|
|
@@ -7,8 +7,8 @@ import { getConversationRouting } from "../storage/sqlite/conversation-repositor
|
|
|
7
7
|
import { isCronConversationId } from "../routing/agent-session-key.js";
|
|
8
8
|
import { init_session_key } from "../routing/session-key.js";
|
|
9
9
|
import { init_providers, resolveModel } from "../providers/index.js";
|
|
10
|
-
import { stripRuntimeContextFromUserMessage } from "./user-message-display.js";
|
|
11
10
|
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
11
|
+
import { stripRuntimeContextFromUserMessage } from "./user-message-display.js";
|
|
12
12
|
//#region src/session/session-title.ts
|
|
13
13
|
init_src();
|
|
14
14
|
init_session_key();
|
|
@@ -14,25 +14,25 @@ import { appendCompactionBoundaryIfUnchanged, appendTranscriptEntry, archiveFail
|
|
|
14
14
|
import { getSessionConfig, setSessionConfig } from "../storage/sqlite/config-repository.js";
|
|
15
15
|
import "../storage/sqlite/index.js";
|
|
16
16
|
import { init_agent_session_key, resolveAgentIdFromConversationId } from "../routing/agent-session-key.js";
|
|
17
|
-
import { resolveEffectiveAgentProfile } from "../config/agent-profile.js";
|
|
18
17
|
import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
18
|
+
import { resolveEffectiveAgentProfile } from "../config/agent-profile.js";
|
|
19
|
+
import { ACCEPTANCE_REPAIR_READ_TOOLS, canResumeAfterModelFailure } from "../agent/orchestration/turn-recovery.js";
|
|
20
|
+
import { transcriptRowsToClientHistory } from "./client-history.js";
|
|
21
|
+
import { listMusicJobIds } from "../music-generation/repository.js";
|
|
22
|
+
import { deleteVideoJobPlacements, listVideoJobIds } from "../video-generation/repository.js";
|
|
23
|
+
import { deleteVideoDraft } from "../video-generation/drafts.js";
|
|
21
24
|
import { SessionCompactor } from "../agent/memory/compaction.js";
|
|
22
25
|
import { resolveCompactionPolicy } from "../agent/memory/compaction-policy.js";
|
|
26
|
+
import { IdleCompactionScheduler } from "../agent/memory/idle-compaction-scheduler.js";
|
|
27
|
+
import { readPostCompactionContext } from "../agent/reply/post-compaction-context.js";
|
|
23
28
|
import { promoteCompactionLedger } from "../agent/memory/compaction-promotion.js";
|
|
24
29
|
import { deleteMusicArtifact } from "../music-generation/artifact.js";
|
|
25
|
-
import { listMusicJobIds } from "../music-generation/repository.js";
|
|
26
30
|
import { deleteVideoArtifact } from "../video-generation/artifact.js";
|
|
27
|
-
import { deleteVideoJobPlacements, listVideoJobIds } from "../video-generation/repository.js";
|
|
28
|
-
import { deleteVideoDraft } from "../video-generation/drafts.js";
|
|
29
31
|
import { SlidingWindow } from "../agent/memory/window.js";
|
|
30
32
|
import { isAppendOnlyLlmTranscriptMessage } from "./transcript-stats.js";
|
|
31
|
-
import { transcriptRowsToClientHistory } from "./client-history.js";
|
|
32
33
|
import { compactHistory } from "./compact-history.js";
|
|
33
34
|
import { backfillStructuredTurnOutcomes } from "./turn-outcome-projector.js";
|
|
34
35
|
import { computeTranscriptUserRoundDeleteRange } from "./user-round-delete.js";
|
|
35
|
-
import { ACCEPTANCE_REPAIR_READ_TOOLS, canResumeAfterModelFailure } from "../agent/orchestration/turn-recovery.js";
|
|
36
36
|
//#region src/session/store.ts
|
|
37
37
|
init_paths_state();
|
|
38
38
|
init_agent_session_key();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { normalizeThinkLevel } from "../agent/transcript/thinking-types.js";
|
|
2
1
|
import { resolveReasoningLevel, resolveThinkingLevel } from "./config-store.js";
|
|
2
|
+
import { normalizeThinkLevel } from "../agent/transcript/thinking-types.js";
|
|
3
3
|
//#region src/session/thinking-resolve.ts
|
|
4
4
|
const FALLBACK = "medium";
|
|
5
5
|
/**
|
|
@@ -2,9 +2,9 @@ import { resolveStateDir } from "../config/paths-state.js";
|
|
|
2
2
|
import { createLogger } from "../utils/logger/index.js";
|
|
3
3
|
import { init_logger } from "../utils/logger.js";
|
|
4
4
|
import { init_paths } from "../config/paths.js";
|
|
5
|
-
import { loadPlaywrightCoreModule } from "../browser/providers/playwright-doctor.js";
|
|
6
5
|
import { getShareStore } from "./share-store.js";
|
|
7
6
|
import { getSiteShareStore } from "./site-share-store.js";
|
|
7
|
+
import { loadPlaywrightCoreModule } from "../browser/providers/playwright-doctor.js";
|
|
8
8
|
import { join } from "node:path";
|
|
9
9
|
import { mkdir, readFile, stat, unlink, writeFile } from "node:fs/promises";
|
|
10
10
|
//#region src/share/share-thumbnail.ts
|
|
@@ -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 { request } from "undici";
|
|
4
|
-
import { Readable } from "node:stream";
|
|
5
4
|
import * as ws from "ws";
|
|
5
|
+
import { Readable } from "node:stream";
|
|
6
6
|
//#region src/share/site-proxy.ts
|
|
7
7
|
init_logger();
|
|
8
8
|
const wsAny = ws;
|
|
@@ -4,9 +4,9 @@ import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
|
4
4
|
import { resolveMediaBufferPath } from "../media/store.js";
|
|
5
5
|
import { archiveSpaceContent, spaceMarkdown } from "./ingest.js";
|
|
6
6
|
import { escapeFts5Query, escapeSqlLike, init_fts } from "../storage/sqlite/fts.js";
|
|
7
|
+
import { purgeWorkbookProposals } from "./workbook-proposals.js";
|
|
7
8
|
import { parseByteRange } from "../media-shared/http/byte-range.js";
|
|
8
9
|
import { toFileWebStream } from "../media-shared/http/file-response.js";
|
|
9
|
-
import { purgeWorkbookProposals } from "./workbook-proposals.js";
|
|
10
10
|
import { constants, lstatSync } from "node:fs";
|
|
11
11
|
import { createHash } from "node:crypto";
|
|
12
12
|
import { open } from "node:fs/promises";
|
|
@@ -7,7 +7,7 @@ import { ensureXopcDatabaseSchema, init_schema } from "./schema.js";
|
|
|
7
7
|
import { init_node_sqlite, requireNodeSqlite } from "../../infra/node-sqlite.js";
|
|
8
8
|
import { init_unhandled_rejections, installSqliteTransientRejectionHandler } from "../../infra/unhandled-rejections.js";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import fs from "node:fs";
|
|
11
11
|
import childProcess from "node:child_process";
|
|
12
12
|
//#region src/storage/sqlite/connection.ts
|
|
13
13
|
function normalizeNonNegativeInteger(value, label) {
|
|
@@ -17,7 +17,7 @@ function normalizeNonNegativeInteger(value, label) {
|
|
|
17
17
|
function findExistingVolumePath(targetPath) {
|
|
18
18
|
let current = path.resolve(targetPath);
|
|
19
19
|
while (true) try {
|
|
20
|
-
return
|
|
20
|
+
return fs.statSync(current).isDirectory() ? current : path.dirname(current);
|
|
21
21
|
} catch {
|
|
22
22
|
const parent = path.dirname(current);
|
|
23
23
|
if (parent === current) return null;
|
|
@@ -64,7 +64,7 @@ function parseMountCommandEntries(contents) {
|
|
|
64
64
|
}
|
|
65
65
|
function readMountEntries() {
|
|
66
66
|
try {
|
|
67
|
-
return parseProcMountInfoEntries(
|
|
67
|
+
return parseProcMountInfoEntries(fs.readFileSync(PROC_MOUNTINFO_PATH, "utf8"));
|
|
68
68
|
} catch {}
|
|
69
69
|
try {
|
|
70
70
|
return parseMountCommandEntries(String(childProcess.execFileSync("mount", [])));
|
|
@@ -91,7 +91,7 @@ function isNetworkMountEntryPath(targetPath) {
|
|
|
91
91
|
return mountEntry ? isNetworkMountType(mountEntry.fsType) : false;
|
|
92
92
|
}
|
|
93
93
|
function isNetworkBackedPath(targetPath) {
|
|
94
|
-
if (typeof
|
|
94
|
+
if (typeof fs.statfsSync !== "function") return isNetworkMountEntryPath(targetPath);
|
|
95
95
|
const checkedPath = findExistingVolumePath(targetPath);
|
|
96
96
|
if (!checkedPath) return false;
|
|
97
97
|
try {
|
|
@@ -100,7 +100,7 @@ function isNetworkBackedPath(targetPath) {
|
|
|
100
100
|
4283649346,
|
|
101
101
|
4266872130,
|
|
102
102
|
20859
|
|
103
|
-
].includes(
|
|
103
|
+
].includes(fs.statfsSync(checkedPath).type >>> 0)) return true;
|
|
104
104
|
} catch {
|
|
105
105
|
return isNetworkMountEntryPath(checkedPath);
|
|
106
106
|
}
|
|
@@ -145,13 +145,13 @@ function ensureDatabasePermissions(pathname) {
|
|
|
145
145
|
if (pathname === ":memory:") return;
|
|
146
146
|
const dir = pathname.slice(0, Math.max(pathname.lastIndexOf("/"), pathname.lastIndexOf("\\")));
|
|
147
147
|
if (dir) {
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
149
|
+
fs.chmodSync(dir, DB_DIR_MODE);
|
|
150
150
|
}
|
|
151
151
|
for (const suffix of DB_SIDECAR_SUFFIXES) {
|
|
152
152
|
const candidate = `${pathname}${suffix}`;
|
|
153
|
-
if (!
|
|
154
|
-
|
|
153
|
+
if (!fs.existsSync(candidate)) continue;
|
|
154
|
+
fs.chmodSync(candidate, DB_FILE_MODE);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
function openDatabaseAtPath(pathname) {
|
|
@@ -37,6 +37,7 @@ export declare function acceptSessionCommand(input: {
|
|
|
37
37
|
command: SessionInputCommand | SessionMaterializeCommand;
|
|
38
38
|
preparedInput?: Omit<Parameters<typeof insertSessionInput>[0], 'conversationId' | 'id' | 'clientMessageId' | 'expectedTranscriptId'>;
|
|
39
39
|
config?: SessionAgentConfig;
|
|
40
|
+
defaultExecution?: SessionCreation['execution'];
|
|
40
41
|
sourceChannel?: 'webchat' | 'tui';
|
|
41
42
|
attachProject?: (conversationId: string, projectId: string) => void;
|
|
42
43
|
}): SessionInputReceipt;
|
|
@@ -47,4 +48,5 @@ export declare function retrySessionPreparation(conversationId: string, principa
|
|
|
47
48
|
operationId: string;
|
|
48
49
|
expectedRevision: number;
|
|
49
50
|
idempotencyKey: string;
|
|
51
|
+
executionMode?: 'local_checkout';
|
|
50
52
|
}): SessionPreparation;
|
|
@@ -67,7 +67,10 @@ function acceptSessionCommand(input) {
|
|
|
67
67
|
const pending = db.prepare(`SELECT count(*) AS count FROM session_inputs WHERE conversation_id=?
|
|
68
68
|
AND status IN ('queued','running','injecting','interrupted')`).get(conversationId);
|
|
69
69
|
if (input.preparedInput && pending.count >= 10) throw new SessionCommandError("QUEUE_FULL", "Input queue is full");
|
|
70
|
-
const creation = "creation" in command ?
|
|
70
|
+
const creation = "creation" in command ? {
|
|
71
|
+
...command.creation,
|
|
72
|
+
execution: command.creation.execution ?? input.defaultExecution ?? null
|
|
73
|
+
} : void 0;
|
|
71
74
|
let session = getSessionMetadata(conversationId);
|
|
72
75
|
if (creation) {
|
|
73
76
|
if (session) throw new SessionCommandError("CONVERSATION_EXISTS", "Conversation already exists");
|
|
@@ -159,14 +162,30 @@ function retrySessionPreparation(conversationId, principalId, input) {
|
|
|
159
162
|
const operation = getSessionPreparation(conversationId);
|
|
160
163
|
if (!operation) throw new SessionCommandError("NOT_FOUND", "Preparation not found");
|
|
161
164
|
if (db.prepare("SELECT principal_id FROM session_input_receipts WHERE conversation_id=? ORDER BY accepted_at LIMIT 1").get(conversationId)?.principal_id !== principalId) throw new SessionCommandError("FORBIDDEN", "Preparation belongs to another principal");
|
|
162
|
-
const
|
|
165
|
+
const useLocalCheckout = input.executionMode === "local_checkout";
|
|
166
|
+
const retryKey = useLocalCheckout ? "\0local_checkout:" + input.idempotencyKey : input.idempotencyKey;
|
|
167
|
+
const previous = db.prepare("SELECT * FROM session_preparation_retries WHERE conversation_id=? AND idempotency_key=?").get(conversationId, retryKey);
|
|
163
168
|
if (previous) {
|
|
164
169
|
if (previous.operation_id !== input.operationId || previous.expected_revision !== input.expectedRevision || previous.principal_id !== principalId) throw new SessionCommandError("IDEMPOTENCY_CONFLICT", "Retry identity was reused");
|
|
165
170
|
return operation;
|
|
166
171
|
}
|
|
167
|
-
if (
|
|
168
|
-
|
|
169
|
-
|
|
172
|
+
if (operation.operationId !== input.operationId || operation.revision !== input.expectedRevision || operation.state !== "preparation_failed") throw new SessionCommandError("SESSION_CHANGED", "Preparation state changed");
|
|
173
|
+
const reserved = db.prepare("SELECT 1 FROM execution_environments WHERE environment_id=?").get(operation.environmentId);
|
|
174
|
+
const now = Date.now();
|
|
175
|
+
if (useLocalCheckout) {
|
|
176
|
+
const binding = db.prepare("SELECT 1 FROM execution_environment_bindings WHERE conversation_id=? AND released_at IS NULL").get(conversationId);
|
|
177
|
+
if (operation.creation.execution?.mode !== "managed_worktree" || binding) throw new SessionCommandError("SESSION_CHANGED", "Only an unbound Worktree preparation can switch to the project folder");
|
|
178
|
+
if (reserved) db.prepare(`INSERT INTO session_preparation_cleanup (environment_id,conversation_id,not_before)
|
|
179
|
+
VALUES (?,?,?) ON CONFLICT(environment_id) DO NOTHING`).run(operation.environmentId, conversationId, now + 5e3);
|
|
180
|
+
}
|
|
181
|
+
const creation = useLocalCheckout ? {
|
|
182
|
+
...operation.creation,
|
|
183
|
+
execution: { mode: "local_checkout" }
|
|
184
|
+
} : operation.creation;
|
|
185
|
+
const baseCommit = !useLocalCheckout && reserved ? operation.baseCommit : null;
|
|
186
|
+
db.prepare(`UPDATE session_preparations SET state='preparing',revision=revision+1,lease_until=0,last_error=NULL,
|
|
187
|
+
updated_at=?,creation_json=?,environment_id=?,base_commit=? WHERE conversation_id=?`).run(now, JSON.stringify(creation), useLocalCheckout ? randomUUID() : operation.environmentId, baseCommit, conversationId);
|
|
188
|
+
db.prepare("INSERT INTO session_preparation_retries VALUES (?,?,?,?,?)").run(conversationId, retryKey, input.operationId, input.expectedRevision, principalId);
|
|
170
189
|
return getSessionPreparation(conversationId);
|
|
171
190
|
});
|
|
172
191
|
}
|
|
@@ -44,7 +44,8 @@ function bumpSessionInputRevision(db, conversationId) {
|
|
|
44
44
|
}
|
|
45
45
|
function getSessionInputState(conversationId) {
|
|
46
46
|
const db = getSqliteDatabase();
|
|
47
|
-
const preparation = db.prepare(
|
|
47
|
+
const preparation = db.prepare(`SELECT operation_id AS operationId, revision, state, last_error AS lastError,
|
|
48
|
+
json_extract(creation_json, '$.execution.mode') AS executionMode FROM session_preparations WHERE conversation_id=?`).get(conversationId);
|
|
48
49
|
const runtime = db.prepare(`SELECT revision, active_run_id, active_input_id
|
|
49
50
|
FROM session_input_runtime WHERE conversation_id = ?`).get(conversationId);
|
|
50
51
|
const rows = db.prepare(`${SELECT_INPUTS} WHERE conversation_id = ? AND status IN
|
|
@@ -5,14 +5,14 @@ import { init_task_deliverables, listDeliverables } from "../task-deliverables.j
|
|
|
5
5
|
import { TaskRepository, init_task_repository } from "../task-repository.js";
|
|
6
6
|
import { init_task_result_versions, listTaskResultVersions } from "../task-result-versions.js";
|
|
7
7
|
import { TaskRunRepository, init_task_run_repository } from "../task-run-repository.js";
|
|
8
|
-
import { TaskContextRepository } from "../task-context-repository.js";
|
|
9
8
|
import { TaskCriterionReviewRepository } from "../task-criterion-review-repository.js";
|
|
9
|
+
import { TaskContextRepository } from "../task-context-repository.js";
|
|
10
10
|
import { TaskReadModelProjector } from "../task-read-model-projector.js";
|
|
11
|
-
import { TaskDependencyService } from "../task-dependency-service.js";
|
|
12
11
|
import { TaskConversationRepository } from "../task-conversation-repository.js";
|
|
13
12
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
14
13
|
import { defineReadCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
15
14
|
import { LocalAppTaskListSchema, LocalAppTaskOutputSchema } from "../../local-apps/capabilities/projections.js";
|
|
15
|
+
import { TaskDependencyService } from "../task-dependency-service.js";
|
|
16
16
|
import { TaskValueMetricsService } from "../task-value-metrics-service.js";
|
|
17
17
|
//#region src/tasks/capabilities/read.ts
|
|
18
18
|
init_src();
|
|
@@ -4,9 +4,9 @@ import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
|
4
4
|
import { enqueueTaskChangedEvent, init_task_change_events } from "../task-change-events.js";
|
|
5
5
|
import { TaskRepository, init_task_repository } from "../task-repository.js";
|
|
6
6
|
import { TaskContextRepository } from "../task-context-repository.js";
|
|
7
|
-
import { TaskDependencyError, TaskDependencyService } from "../task-dependency-service.js";
|
|
8
7
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
9
8
|
import { defineAtomicCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
9
|
+
import { TaskDependencyError, TaskDependencyService } from "../task-dependency-service.js";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
//#region src/tasks/capabilities/relations.ts
|
|
12
12
|
init_src();
|
|
@@ -2,9 +2,9 @@ import { TaskRunCancelInputSchema, TaskRunCancelOutputSchema, TaskRunFeedbackInp
|
|
|
2
2
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
3
3
|
import { TaskRepository, init_task_repository } from "../task-repository.js";
|
|
4
4
|
import { TaskRunRepository, init_task_run_repository } from "../task-run-repository.js";
|
|
5
|
-
import { TaskApplicationService } from "../task-application-service.js";
|
|
6
5
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
7
6
|
import { defineAtomicCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
7
|
+
import { TaskApplicationService } from "../task-application-service.js";
|
|
8
8
|
//#region src/tasks/capabilities/runs.ts
|
|
9
9
|
init_src();
|
|
10
10
|
init_task_repository();
|
|
@@ -3,15 +3,15 @@ import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
|
3
3
|
import { DurableState, init_durable_state } from "../../storage/sqlite/durable-state.js";
|
|
4
4
|
import { TaskRepository, init_task_repository } from "../task-repository.js";
|
|
5
5
|
import { TaskRunRepository, init_task_run_repository } from "../task-run-repository.js";
|
|
6
|
-
import { resolveTaskLocale } from "../task-language.js";
|
|
7
6
|
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
7
|
+
import { resolveTaskLocale } from "../task-language.js";
|
|
8
8
|
import { resolveProjectAgentId } from "../../projects/project-agent.js";
|
|
9
|
-
import { TaskApplicationService } from "../task-application-service.js";
|
|
10
9
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
11
|
-
import { resolveResponseLanguageForSession } from "../../agent/prompt/response-language.js";
|
|
12
10
|
import { defineAtomicCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
13
11
|
import { LocalAppTaskMutationSchema } from "../../local-apps/capabilities/projections.js";
|
|
12
|
+
import { TaskApplicationService } from "../task-application-service.js";
|
|
14
13
|
import { TaskSignalService } from "../task-signal-service.js";
|
|
14
|
+
import { resolveResponseLanguageForSession } from "../../agent/prompt/response-language.js";
|
|
15
15
|
import { z } from "zod";
|
|
16
16
|
//#region src/tasks/capabilities/write.ts
|
|
17
17
|
init_src();
|
|
@@ -6,9 +6,9 @@ import { isHomeAttentionAcknowledged } from "../storage/sqlite/home-attention-re
|
|
|
6
6
|
import "../storage/sqlite/index.js";
|
|
7
7
|
import { TaskReadModelProjector } from "./task-read-model-projector.js";
|
|
8
8
|
import "../automations/domain/defaults.js";
|
|
9
|
+
import { AttentionGovernor, compareHomeDecisions } from "./attention-governor.js";
|
|
9
10
|
import "../automations/index.js";
|
|
10
11
|
import { stripMarkdown } from "../voice/tts/preprocess.js";
|
|
11
|
-
import { AttentionGovernor, compareHomeDecisions } from "./attention-governor.js";
|
|
12
12
|
//#region src/tasks/home-query-service.ts
|
|
13
13
|
init_task_repository();
|
|
14
14
|
init_task_run_repository();
|
package/dist/src/tasks/index.js
CHANGED
|
@@ -3,18 +3,18 @@ import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
|
3
3
|
import { TaskRunRepository, init_task_run_repository, mcpDelegatedRunPrincipal } from "./task-run-repository.js";
|
|
4
4
|
import { TaskContextRepository } from "./task-context-repository.js";
|
|
5
5
|
import { TaskReadModelProjector } from "./task-read-model-projector.js";
|
|
6
|
-
import { TaskDependencyError, TaskDependencyService } from "./task-dependency-service.js";
|
|
7
6
|
import { TaskConversationConflictError, TaskConversationRepository } from "./task-conversation-repository.js";
|
|
8
|
-
import {
|
|
9
|
-
import { defineTaskContract } from "./task-contract-definition.js";
|
|
10
|
-
import { assembleTaskContext, buildDelegatedTaskDirective, buildTaskExecutionDirective, getTaskContextManifest, getTaskExecutionBrief } from "./task-context-assembler.js";
|
|
7
|
+
import { TaskDependencyError, TaskDependencyService } from "./task-dependency-service.js";
|
|
11
8
|
import { TaskValueMetricsService } from "./task-value-metrics-service.js";
|
|
9
|
+
import { TaskApplicationService } from "./task-application-service.js";
|
|
12
10
|
import { TaskSignalService } from "./task-signal-service.js";
|
|
13
11
|
import { TaskDeletionService } from "./task-deletion-service.js";
|
|
14
12
|
import { resolveExecutionContext } from "./execution-context.js";
|
|
15
13
|
import { AttentionGovernor, compareHomeDecisions } from "./attention-governor.js";
|
|
16
14
|
import { HomeQueryService, buildHomeWorkbench, decisionFromTask } from "./home-query-service.js";
|
|
15
|
+
import { defineTaskContract } from "./task-contract-definition.js";
|
|
17
16
|
import { ModelTaskContractPlanner, parseTaskContractResponse } from "./task-contract-planner.js";
|
|
17
|
+
import { assembleTaskContext, buildDelegatedTaskDirective, buildTaskExecutionDirective, getTaskContextManifest, getTaskExecutionBrief } from "./task-context-assembler.js";
|
|
18
18
|
import { TaskRunCoordinator } from "./task-run-coordinator.js";
|
|
19
19
|
import { ProjectOperatingViewService, summarizeProjectOperatingView } from "./project-operating-view-service.js";
|
|
20
20
|
import { TaskHandoffService } from "./task-handoff-service.js";
|
|
@@ -9,21 +9,21 @@ import { init_agent_config } from "../agent-config/index.js";
|
|
|
9
9
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
10
10
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
11
11
|
import { init_request_repository, personalRequestForTask, updatePersonalRequest } from "../personal-agent/request-repository.js";
|
|
12
|
+
import { init_providers, resolveModel } from "../providers/index.js";
|
|
13
|
+
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
14
|
+
import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
|
|
12
15
|
import { hasUnlocalizedTaskText, resolveTaskLocale } from "./task-language.js";
|
|
13
16
|
import { TaskAllocationRepository } from "./task-allocation-repository.js";
|
|
14
|
-
import { init_providers, resolveModel } from "../providers/index.js";
|
|
15
17
|
import { personalCapabilities } from "../personal-agent/capability-service.js";
|
|
16
18
|
import { getTaskHandoff, resolveTaskHandoffReferences } from "./task-handoff.js";
|
|
17
19
|
import { assessTaskExecutor, captureExecutionRequirements, taskExecutionRequirements } from "./task-execution-capabilities.js";
|
|
18
20
|
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
19
21
|
import { TaskApplicationService } from "./task-application-service.js";
|
|
20
|
-
import { AgentSelectionRepository, selectionRequestHash } from "../agent-matching/selection-repository.js";
|
|
21
|
-
import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
|
|
22
|
-
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
23
22
|
import { defineTaskContract } from "./task-contract-definition.js";
|
|
24
|
-
import { supersededTaskInstructionIds } from "./task-research-result.js";
|
|
25
|
-
import { taskJsonAcceptance } from "./task-json-acceptance.js";
|
|
26
23
|
import { ModelTaskContractPlanner } from "./task-contract-planner.js";
|
|
24
|
+
import { taskJsonAcceptance } from "./task-json-acceptance.js";
|
|
25
|
+
import { supersededTaskInstructionIds } from "./task-research-result.js";
|
|
26
|
+
import { AgentSelectionRepository, selectionRequestHash } from "../agent-matching/selection-repository.js";
|
|
27
27
|
import { z } from "zod";
|
|
28
28
|
//#region src/tasks/task-allocation-service.ts
|
|
29
29
|
init_src();
|
|
@@ -9,18 +9,18 @@ import { init_task_instruction_sequence, taskInstructionSequence } from "./task-
|
|
|
9
9
|
import { init_task_workspace_verification, verifyTaskWorkspace } from "./task-workspace-verification.js";
|
|
10
10
|
import { TaskRunRepository, init_task_run_repository, mcpDelegatedRunPrincipal } from "./task-run-repository.js";
|
|
11
11
|
import { init_request_repository, personalRequestForTask } from "../personal-agent/request-repository.js";
|
|
12
|
-
import { TaskContextRepository } from "./task-context-repository.js";
|
|
13
12
|
import { resolveTaskLocale } from "./task-language.js";
|
|
14
13
|
import { TaskAllocationRepository } from "./task-allocation-repository.js";
|
|
15
14
|
import { TaskCriterionReviewRepository } from "./task-criterion-review-repository.js";
|
|
16
15
|
import { resolvePersonalResultReference } from "../personal-agent/result-reader.js";
|
|
17
|
-
import {
|
|
16
|
+
import { TaskContextRepository } from "./task-context-repository.js";
|
|
17
|
+
import { captureTaskHandoff, captureWorkspaceFileHandoff, replaceUnresolvedTaskHandoffReferences } from "./task-handoff.js";
|
|
18
18
|
import { TaskReadModelProjector } from "./task-read-model-projector.js";
|
|
19
|
-
import { TaskDependencyService } from "./task-dependency-service.js";
|
|
20
19
|
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
21
20
|
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
22
21
|
import { TaskResultDeliveryRepository } from "./task-result-delivery-repository.js";
|
|
23
22
|
import { TaskOriginRepository } from "./task-origin-repository.js";
|
|
23
|
+
import { TaskDependencyService } from "./task-dependency-service.js";
|
|
24
24
|
import { createHash, randomUUID } from "node:crypto";
|
|
25
25
|
//#region src/tasks/task-application-service.ts
|
|
26
26
|
init_src();
|
|
@@ -351,7 +351,17 @@ var TaskApplicationService = class {
|
|
|
351
351
|
reason: "conflict",
|
|
352
352
|
model
|
|
353
353
|
};
|
|
354
|
-
if (
|
|
354
|
+
if (input.allocationSources && input.command.type !== "retry_allocation") return {
|
|
355
|
+
ok: false,
|
|
356
|
+
reason: "invalid_transition",
|
|
357
|
+
model
|
|
358
|
+
};
|
|
359
|
+
const commandHash = requestHash(input.allocationSources ? {
|
|
360
|
+
taskId: input.taskId,
|
|
361
|
+
command: input.command,
|
|
362
|
+
sources: input.allocationSources
|
|
363
|
+
} : input.command);
|
|
364
|
+
if (this.readCommand(input.idempotencyKey, commandHash)) return {
|
|
355
365
|
ok: true,
|
|
356
366
|
model
|
|
357
367
|
};
|
|
@@ -402,7 +412,7 @@ var TaskApplicationService = class {
|
|
|
402
412
|
break;
|
|
403
413
|
case "retry_allocation": {
|
|
404
414
|
const allocation = new TaskAllocationRepository().get(task.id);
|
|
405
|
-
if (!allocation || !["blocked", "failed"].includes(allocation.status) || task.phase === "closed" || this.#runs.getActiveRoot(task.id) || this.#runs.listActiveWaits(task.id).length) {
|
|
415
|
+
if (!allocation || !["blocked", "failed"].includes(allocation.status) || task.phase === "closed" || this.#runs.getActiveRoot(task.id) || this.#runs.listActiveWaits(task.id).length || input.allocationSources && (allocation.reason_code !== "source_reference_unavailable" || this.#runs.getLatestRoot(task.id))) {
|
|
406
416
|
result = {
|
|
407
417
|
ok: false,
|
|
408
418
|
reason: "invalid_transition",
|
|
@@ -419,6 +429,7 @@ var TaskApplicationService = class {
|
|
|
419
429
|
};
|
|
420
430
|
break;
|
|
421
431
|
}
|
|
432
|
+
if (input.allocationSources) replaceUnresolvedTaskHandoffReferences(task.id, input.allocationSources);
|
|
422
433
|
db.prepare("UPDATE task_allocations SET status = 'pending', attempts = 0, reason_code = NULL, task_version = ?, next_attempt_at = ?, updated_at = ? WHERE task_id = ?").run(updated.version, Date.now(), Date.now(), task.id);
|
|
423
434
|
new TaskAllocationRepository().publish(task.id, `任务「${task.title}」正在重新分配执行者。`);
|
|
424
435
|
result = {
|
|
@@ -647,7 +658,7 @@ var TaskApplicationService = class {
|
|
|
647
658
|
key: input.idempotencyKey,
|
|
648
659
|
type: `task.${input.command.type}`,
|
|
649
660
|
subjectId: task.id,
|
|
650
|
-
hash:
|
|
661
|
+
hash: commandHash,
|
|
651
662
|
result: {
|
|
652
663
|
taskId: task.id,
|
|
653
664
|
runId: result.runId
|
|
@@ -162,7 +162,8 @@ function buildTaskExecutionDirective(conversationId) {
|
|
|
162
162
|
})))}`,
|
|
163
163
|
verifyJson ? "For this exact JSON-only request, the host directly checks the published file against every criterion. Publish only the requested final JSON file, then finish. This check replaces publish_task_result for this request." : "",
|
|
164
164
|
contract.resultPolicy === "selected" && !verifyJson ? PERSONAL_WORKER_RESULT_GUIDANCE : "",
|
|
165
|
-
verifyJson ? "" : "For research or evidence-based conclusions, use publish_task_result before finishing when that tool is available. Cite exact excerpts from successful reads in this TaskRun, link each claim to source ids, and distinguish facts, inferences and recommendations. Publish required files first, then
|
|
165
|
+
verifyJson ? "" : "For research or evidence-based conclusions, use publish_task_result before finishing when that tool is available. Cite exact excerpts from successful reads in this TaskRun, link each claim to source ids, and distinguish facts, inferences and recommendations. Publish required files first, then select only the final deliverables from their publication receipts. Use finalArtifactIds for a new or changed set of outputs. For republication of selected files, use mode=amend and replacementArtifactIds with only their new receipts. Read its per-criterion review; correct unsupported claims or explicitly disclose unmet/unverified criteria. Never replace missing evidence with a self-declared pass. Use task_collaboration get section evidence to recover real toolCallIds and exact excerpts. If the chat reply itself is a deliverable, include the exact reply in finalText, including any required limitations, links and formatting. The host will review that text and deliver it verbatim. Keep it within the requested limits and amend finalText if the review finds gaps. Do not cite it as a source or create a separate file to prove its wording. A source quote match proves provenance, not factual truth. Keep the final reply concise; full evidence belongs in the result and report.",
|
|
166
|
+
verifyJson ? "" : "When the request has material coverage requirements, search the distinct parts of the requested scope. Use targeted follow-up reads to resolve thin, duplicate or failed results and check original sources when summaries lack the required details. In the final result state the actual scope covered and any remaining gap. A few supported examples only satisfy a request for examples.",
|
|
166
167
|
"For chat delivery, lead with the result and keep the evidence, material changes, and limitations that affect use. Use the shortest form that covers what the user asked for. General brevity is an editorial preference. Apply numerical length limits only when requested. When files contain the full report, leave methodology and repeated detail there unless requested.",
|
|
167
168
|
`Acceptance policy: ${contract.acceptancePolicy}. Automatic tasks close after verified completion. Request user input only for a real missing decision or authorization; do not ask for routine acceptance.`,
|
|
168
169
|
contract.constraints.length ? `Constraints: ${contract.constraints.join("; ")}` : "",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
-
import { hasUnlocalizedTaskText, resolveTaskLocale } from "./task-language.js";
|
|
4
3
|
import { getAgentDefaultChatModelConfig, init_schema } from "../config/schema.js";
|
|
4
|
+
import { hasUnlocalizedTaskText, resolveTaskLocale } from "./task-language.js";
|
|
5
5
|
import { EXECUTION_CAPABILITIES } from "./task-execution-capabilities.js";
|
|
6
6
|
import { finalReplyCharacterLimit, isChatReplyOutput } from "./task-final-reply.js";
|
|
7
|
-
import { completeTaskModelCall } from "./task-model-call.js";
|
|
8
7
|
import { defineTaskContract } from "./task-contract-definition.js";
|
|
8
|
+
import { completeTaskModelCall } from "./task-model-call.js";
|
|
9
9
|
//#region src/tasks/task-contract-planner.ts
|
|
10
10
|
init_schema();
|
|
11
11
|
init_logger();
|
|
@@ -93,6 +93,7 @@ var ModelTaskContractPlanner = class {
|
|
|
93
93
|
"Keep each criterion concise and concrete. For simple work use the fewest checks that cover all explicit deliverables and material constraints. Prefer observable checks such as the required file, format, fields or count. Treat optional analysis, extra conclusions and aesthetic improvements as optional unless the user requires them. Do not invent work to make the contract more elaborate.",
|
|
94
94
|
"Keep delivery format and character limits in their own criteria, separate from factual accuracy, publication dates and source requirements. For explicit chat format and limits, use concrete wording such as \"The final reply must be plain text\" or \"The final reply must be at most 500 characters\". For explicitly requested HTML structure, describe the required file name or page elements separately from what those elements must substantively say.",
|
|
95
95
|
"Define criteria for the deliverables requested by the user. When the requested answer is a chat reply, list it explicitly in expectedOutputs and preserve its concrete requirements, including language and any length limits the user actually set. Treat general brevity or “keep it short” as a presentation preference. Do not turn it into a word or character quota or an acceptance check. Keep source support, calculations, completeness and requested limitations as separate criteria. Do not create self-referential criteria about calling publish_task_result, receiving this review or wording a routine delivery acknowledgement.",
|
|
96
|
+
"When the user asks for a survey, roundup, comparison, or other scoped retrieval, define a separate coverage criterion. Describe the intended population or scope and the material dimensions the request implies, such as time range, source groups, entities, or topics. Require disclosure of gaps. Do not infer completeness from correctness of the items returned, invent arbitrary quotas, or require broad coverage for a single factual lookup.",
|
|
96
97
|
"requiredCapabilities is a minimal subset of read_input, execute_code, publish_files, web_research, browser, generate_image. Include only operations necessary for the requested inputs/outputs; this list selects registered tools and grants no permissions. Do not require browser when ordinary web fetch suffices. Preserve explicit executor/Skill and scope constraints.",
|
|
97
98
|
"List assumptions explicitly. Put only irreversible, external, financial, privacy, or permission decisions in approvalRequired.",
|
|
98
99
|
"Return one JSON object only. Every array contains flat strings, never objects or nested arrays. Schema example: {\"objective\":\"Deliver the requested work\",\"expectedOutputs\":[\"report.md\"],\"acceptanceCriteria\":[\"report.md contains the requested evidence\"],\"constraints\":[],\"approvalRequired\":[],\"assumptions\":[],\"risks\":[],\"requiredCapabilities\":[\"read_input\",\"publish_files\"]}. Capabilities must use the allowed enum values.",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { finalReplyCharacterLimit, isReplyLengthCriterion } from "./task-final-reply.js";
|
|
2
|
-
import MarkdownIt from "markdown-it";
|
|
3
2
|
import { parseHTML } from "linkedom";
|
|
3
|
+
import MarkdownIt from "markdown-it";
|
|
4
4
|
//#region src/tasks/task-delivery-checks.ts
|
|
5
5
|
const markdown = new MarkdownIt({ html: true });
|
|
6
6
|
const plainChat = /^(?:(?:最终)?(?:回复|答复)为纯文本(?:聊天内容)?|(?:use |deliver )(?:a )?plain[- ]text chat (?:reply|response)|(?:the )?(?:final )?(?:chat )?(?:reply|response) (?:is|must be) plain[- ]text)(?:[,,]\s*(?:未生成任何文件|不生成(?:任何)?文件|without (?:any )?(?:files|attachments)))?$/iu;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getSqliteDatabase, init_transaction } from "../storage/sqlite/transaction.js";
|
|
2
2
|
import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
3
|
-
import { TaskContextRepository } from "./task-context-repository.js";
|
|
4
3
|
import { assessSpecialist } from "../agent-matching/service.js";
|
|
5
4
|
import { personalCapabilities } from "../personal-agent/capability-service.js";
|
|
5
|
+
import { TaskContextRepository } from "./task-context-repository.js";
|
|
6
6
|
import { assertTaskHandoffExecutorAccess } from "./task-handoff.js";
|
|
7
7
|
//#region src/tasks/task-execution-capabilities.ts
|
|
8
8
|
init_transaction();
|
|
@@ -4,8 +4,8 @@ import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
|
4
4
|
import { normalizeAgentId } from "../agent-catalog/id.js";
|
|
5
5
|
import { init_agent_scope, listAgentEntries } from "../agent/agent-scope.js";
|
|
6
6
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
7
|
-
import { TaskContextRepository } from "./task-context-repository.js";
|
|
8
7
|
import { init_session_key, resolveConversationId, sanitizeSegment } from "../routing/session-key.js";
|
|
8
|
+
import { TaskContextRepository } from "./task-context-repository.js";
|
|
9
9
|
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
10
10
|
//#region src/tasks/task-handoff-service.ts
|
|
11
11
|
init_agent_scope();
|
|
@@ -54,6 +54,8 @@ export type WorkspaceFileInput = {
|
|
|
54
54
|
export declare function captureWorkspaceFileHandoff(taskId: string, prompt: string, files: readonly WorkspaceFileInput[]): void;
|
|
55
55
|
/** Normalize model-facing references without fetching any source on the submission path. */
|
|
56
56
|
export declare function parseTaskHandoffReferences(raw: unknown): TurnContextRef[] | null;
|
|
57
|
+
/** Pin a result reference using only delivery metadata, before any file or body read. */
|
|
58
|
+
export declare function pinTaskHandoffReference(conversationId: string, ref: TurnContextRef): TurnContextRef;
|
|
57
59
|
/** Pin an exact, visible passage without copying the rest of its message into the Task. */
|
|
58
60
|
export declare function parseTaskConversationExcerpts(conversationId: string | undefined, raw: unknown, config?: Config): ConversationExcerpt[] | null;
|
|
59
61
|
export declare function readTaskConversationExcerpts(handoff: TaskHandoff, config?: Config): ({
|
|
@@ -71,6 +73,8 @@ export declare function readTaskConversationExcerpts(handoff: TaskHandoff, confi
|
|
|
71
73
|
export declare function captureTaskHandoff(taskId: string, conversationId: string, interpretation: string, references?: TurnContextRef[]): void;
|
|
72
74
|
export declare function getTaskHandoff(taskId: string): TaskHandoff | undefined;
|
|
73
75
|
export declare function assertTaskHandoffAccess(handoff: TaskHandoff): void;
|
|
76
|
+
/** Replace the unresolved model-selected inputs of an unstarted allocation. */
|
|
77
|
+
export declare function replaceUnresolvedTaskHandoffReferences(taskId: string, references: TurnContextRef[]): void;
|
|
74
78
|
/** Selected result pointers delegate only the pinned source, never the owner's result directory. */
|
|
75
79
|
export declare function readTaskHandoffSource(taskId: string, sourceIndex: number, input: PersonalResultInput, config?: Config): Promise<Record<string, unknown>>;
|
|
76
80
|
/** Resolve the main Agent's selected history pointers only after the foreground commit. */
|