@xopcai/xopc 0.0.480 → 0.0.482
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/dingtalk/src/index.js +8 -3
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/server/chunks.bin +1548 -1552
- package/dist/gateway/server/chunks.json +1 -1
- package/dist/gateway/static/root/assets/{activity-store-9wMoZ4Ok.js → activity-store-BCPCuT-6.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-TrALdAg_.js → agent-avatar-dicebear-Di9jxcH9.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-display-BiHRFRo2.js → agent-avatar-display-KbzBlJ8W.js} +2 -2
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-DLopBKfN.js → agent-defaults-settings-panel-CYZzdU6C.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-wisFd2cR.js → agent-plugin-dialog-Bhkawcil.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-CzgZX_E9.js → agents-B2RXJeIo.js} +3 -3
- package/dist/gateway/static/root/assets/{agents-admin-api-Crvl6IB4.js → agents-admin-api-DpfkHNbc.js} +1 -1
- package/dist/gateway/static/root/assets/{api-DQVcF1zq.js → api-BtngCZrB.js} +1 -1
- package/dist/gateway/static/root/assets/{api-CJvZsRen.js → api-CnOSHyKU.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-CYwY9a8P.js → app-management-settings-panel-Dyc3I-ng.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-8clf9SDY.js → appearance-settings-CmdhL-0n.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-B2qv9gWd.js → apps-page-BFqC9Knk.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-Bu1nF6Lg.js → archive-plugin-DFP0MajV.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-api-HQmKv0Sm.js → automation-api-Cc5X3Q1t.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-result-state-CMjfyY6p.js → automation-result-state-B7fHzLLf.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-run-list-wlGMBYYv.js → automation-run-list-DPTby29p.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-task-card-2EsZ1jBs.js → automation-task-card-CjzArAJi.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-BUtoiUiH.js → automations-page-BKbElVfF.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-CW_8-0Cb.js → automations-workspace-_18qOoLm.js} +2 -2
- package/dist/gateway/static/root/assets/{binary-plugins-Dz62GXI_.js → binary-plugins-DnE-iqaV.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-CA66tdm3.js → block-editor-CYobheuw.js} +4 -4
- package/dist/gateway/static/root/assets/{browser-settings-page-hAttQ9qS.js → browser-settings-page-BLniK98R.js} +1 -1
- package/dist/gateway/static/root/assets/capabilities-BfTF_flC.js +1 -0
- package/dist/gateway/static/root/assets/{capabilities-BNmDs-Ca.js → capabilities-oihQXc5J.js} +1 -1
- package/dist/gateway/static/root/assets/capabilities-page-B32XFJ59.js +2 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-CWnHPY8j.js +8 -0
- package/dist/gateway/static/root/assets/capability-presentation-DlJQUUlM.js +1 -0
- package/dist/gateway/static/root/assets/{channels-CFmGXibE.js → channels-DEIqjf9M.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-agents-api-LVSL686y.js → chat-agents-api-BzuJyysa.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-chart-block-Drmp5p0m.js → chat-chart-block-DurSfGy2.js} +1 -1
- package/dist/gateway/static/root/assets/chat-page-CK4aWVbI.js +74 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-twWNRsuW.js → chat-terminal-dock-UBaRUsXJ.js} +1 -1
- package/dist/gateway/static/root/assets/{command-palette-api-B27c_GTI.js → command-palette-api-3kNqE3U7.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-model-config-control-DdxZ-1U4.js → composer-model-config-control-CrI-u8F_.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-notifications-Dd64p5ZI.js → composer-notifications-L6u0F2_8.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-payload-handoff-Cbkv-F26.js → composer-payload-handoff-DdHGkHOq.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-B8UkO-mU.js → computer-settings-page-BwvCOkbI.js} +1 -1
- package/dist/gateway/static/root/assets/connected-providers-grid-B8eiZl6Z.js +1 -0
- package/dist/gateway/static/root/assets/{connection-usage-guide-CNB9P9jg.js → connection-usage-guide-CydSRk3h.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-DkifsBTl.js → connector-service-page-CLBi6R-Z.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-api-DjIpuBCy.js → connectors-api-Bn2IbtcF.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-oGveGlkI.js → connectors-page-ywk7W0s6.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-_G6tIiGk.js → date-picker-DsD7NIm2.js} +1 -1
- package/dist/gateway/static/root/assets/{date-time-picker-B3lS-ZGW.js → date-time-picker-BhnBpBpj.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-BAKyq-sn.js → desktop-pet-eFR-zmP2.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-DGpu4hH_.js → desktop-pet-settings-CfFTYstQ.js} +1 -1
- package/dist/gateway/static/root/assets/{dev-view-store-DqYjZFu1.js → dev-view-store-D_uPX9_R.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-CIvmpDvo.js → device-pairing-wizard-BeLkoDUp.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-BAsEQvG4.js → directory-picker-path-field-5wZa0JF3.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-authoritative-grants-BmlRcbhA.js → extension-authoritative-grants-DaA0KXyO.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page--EU_kb8E.js → extension-debug-page-CXe8jimk.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-iframe-host-CcspWP4N.js → extension-iframe-host-BwMISzWU.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-marketplace-api-BQIfGFSy.js → extension-marketplace-api-DuWuae8G.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-message-router-f7v82b69.js → extension-message-router-DzBfVl6h.js} +2 -2
- package/dist/gateway/static/root/assets/{extension-page-CJxtbXQj.js → extension-page-DW18FOb8.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-htRLPCBf.js → extension-provider-CyYrgUw-.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-CKui11ZQ.js → extension-settings-page-ByGVQYDw.js} +1 -1
- package/dist/gateway/static/root/assets/{file-preview-surface-Cwy9Cgaq.js → file-preview-surface-Cw70pwph.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-abWJ0Q_y.js → gateway-config-swr-BYoBGl6i.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-PYDAppcy.js → gateway-realtime-Dzq6_piH.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-B9CDQ8NO.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-restart-BtAJNIO-.js → gateway-restart-CtqJpyNu.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-BvD8fcB2.js → gateway-settings-xzO7KDsu.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-Cza1BaL8.js → gateway-startup-retry-DCDOl6Oo.js} +1 -1
- package/dist/gateway/static/root/assets/{global-defaults-api-BIa73mvy.js → global-defaults-api-DXFSI87T.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-CztF0goW.js +8 -0
- package/dist/gateway/static/root/assets/home-task-actions-DTXb7Gc7.js +1 -0
- package/dist/gateway/static/root/assets/{image-generation-api-BCU7Uxyy.js → image-generation-api-Ck0rMJy3.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-Clh0polM.js → imports-page-egn9yYfF.js} +1 -1
- package/dist/gateway/static/root/assets/index-dqkMYWTd.js +11 -0
- package/dist/gateway/static/root/assets/index-q78xsKF3.css +1 -0
- package/dist/gateway/static/root/assets/{install-connector-dialog-DSkXYsng.js → install-connector-dialog-CMh8jhn1.js} +1 -1
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-Crf76ecq.js → keyboard-shortcuts-settings-BOiKmOwN.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-WudNXl41.js → local-app-workbench-page-ev6VTDX2.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-Br9ZO7Ad.js → local-apps-page-CQBSa3cR.js} +1 -1
- package/dist/gateway/static/root/assets/{local-session-drafts-BHrHLZJJ.js → local-session-drafts-pAAFf-Ad.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-5DzxIIeq.js → locale-store-BYdvIuPj.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-BqUeqzPB.js → logs-page-Z-4VNgnq.js} +1 -1
- package/dist/gateway/static/root/assets/{management-api-DHCpR1ma.js → management-api-D739TCBl.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-BccKy8tW.js → management-settings-CZDWUPmg.js} +1 -1
- package/dist/gateway/static/root/assets/markdown-view-BOJVaGPC.js +261 -0
- package/dist/gateway/static/root/assets/markdown-view-Czi3_WHu.css +1 -0
- package/dist/gateway/static/root/assets/marked.esm-8VXEA2AD.js +64 -0
- package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-DxZ-KH6B.js → mcp-conversation-setup-page-NcRvP7cK.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-DissTT0S.js → media-plugins-B9bQ3e1j.js} +1 -1
- package/dist/gateway/static/root/assets/{messages-CGGOcV9B.js → messages-lc5BjBtX.js} +2 -2
- package/dist/gateway/static/root/assets/{model-selector-DsCLjn_X.js → model-selector-DugdMlvi.js} +1 -1
- package/dist/gateway/static/root/assets/{models-hub-cache-B0Y9Frop.js → models-hub-cache-DvDksW4g.js} +1 -1
- package/dist/gateway/static/root/assets/note-detail-panel-CEi6GNEA.js +7 -0
- package/dist/gateway/static/root/assets/note-image-lightbox-DftbeSZR.js +1 -0
- package/dist/gateway/static/root/assets/{notes-api-CdC4jVPP.js → notes-api-auhtw3zM.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-page-CC5-BWmA.js → notes-page-DnI1iJ3g.js} +1 -1
- package/dist/gateway/static/root/assets/{oauth-api-CAPuqZdT.js → oauth-api-BXKG29Kg.js} +1 -1
- package/dist/gateway/static/root/assets/{oauth-provider-connect-7i3NoKo4.js → oauth-provider-connect-y6-vDWb-.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-BcSfcOme.js → page-context-capture-button-BBVJZgU0.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-draft-BJ2cY1Us.js → page-context-draft-B30xEPDh.js} +1 -1
- package/dist/gateway/static/root/assets/{page-header-store-xgXJVGDC.js → page-header-store-BGCCXOOf.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-avatar-CidTaDAv.js → personal-avatar-w5Sekj02.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-page-BlxApjBh.js → personal-page-BWzfp81f.js} +1 -1
- package/dist/gateway/static/root/assets/personal-profile-settings-BYmKk14v.js +1 -0
- package/dist/gateway/static/root/assets/{personal-settings-panel-BXKSkUoc.js → personal-settings-panel-DYnTT7aB.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-dependencies-card-_7leySaj.js → phone-dependencies-card-DJciwZ-7.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-connection-CVI6GGMF.js → phone-model-connection-C3jmc4ma.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-picker-qP1Sh-eA.js → phone-model-picker-MWC_Zh2a.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-settings-page-BAKOJllx.js → phone-settings-page-C1Yc6tP7.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-workspace-store-CDtfKAUX.js → phone-workspace-store-Cxk2PJZe.js} +1 -1
- package/dist/gateway/static/root/assets/{plugin-details-dialog-BpPMZLLz.js → plugin-details-dialog-CpKZE_nx.js} +1 -1
- package/dist/gateway/static/root/assets/{preference-select-fields-BS-XMhb4.js → preference-select-fields-ByihE_wl.js} +1 -1
- package/dist/gateway/static/root/assets/{preview-runtime-D8kxmrLV.js → preview-runtime-iJuVSugF.js} +3 -3
- package/dist/gateway/static/root/assets/product-automation-feedback-ref9gqOW.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-BUqA67HG.js → product-open-page-B7kAAD7Q.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-CowHxHNk.js → product-preview-content-CzNWh2h2.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-modal-BJDwL7x3.js → product-preview-modal-B1RKw3Z-.js} +2 -2
- package/dist/gateway/static/root/assets/{project-detail-page-CJQuslC9.js → project-detail-page-Zr1I56NG.js} +2 -2
- package/dist/gateway/static/root/assets/{project-understanding-eH4uN6k8.js → project-understanding-D0S9pFg7.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-DFo_ESE9.js → projects-page-DlwRbxAj.js} +1 -1
- package/dist/gateway/static/root/assets/{providers-api-Df4w723e.js → providers-api-D_v_CJ3l.js} +1 -1
- package/dist/gateway/static/root/assets/{recording-upload-DnRi2KQ5.js → recording-upload-BSyxK34y.js} +1 -1
- package/dist/gateway/static/root/assets/{registry-api-Dw8Ou9VV.js → registry-api-DGi-X6j7.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-B7jGK_WY.js → remote-access-hub-D3EYRXQC.js} +1 -1
- package/dist/gateway/static/root/assets/{resource-unavailable-CZV8cItD.js → resource-unavailable-52Jvhy-I.js} +1 -1
- package/dist/gateway/static/root/assets/{right-workspace-store-DOyKalyG.js → right-workspace-store-DsGslCi-.js} +1 -1
- package/dist/gateway/static/root/assets/route-preload-D00yB6hp.js +2 -0
- package/dist/gateway/static/root/assets/routine-panel-sCpXMbMl.js +2 -0
- package/dist/gateway/static/root/assets/{runtime-tools-api-2sksjMtE.js → runtime-tools-api-D8Xtty0g.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-DPX5htrV.js → runtime-tools-settings-panel-r28zxrgP.js} +1 -1
- package/dist/gateway/static/root/assets/{service-recommendation-list-BnJcjQuF.js → service-recommendation-list-Kw6pwI8U.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-CUkWJyfm.js → session-api-eApyRHbI.js} +1 -1
- package/dist/gateway/static/root/assets/session-channel-icon-CJAPoVO-.js +1 -0
- package/dist/gateway/static/root/assets/session-identity-DRFdxntH.js +1 -0
- package/dist/gateway/static/root/assets/session-identity-label-CZf50vSj.js +1 -0
- package/dist/gateway/static/root/assets/session-manager-C-oe-9_N.js +28 -0
- package/dist/gateway/static/root/assets/sessions-page-BkNfjgXC.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-B82UPSQS.js +1 -0
- package/dist/gateway/static/root/assets/{settings-advanced-section-Bponzv_k.js → settings-advanced-section-Dc9aztiW.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-mode-store-BtgmaA-P.js → settings-mode-store-DcE2iR7e.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-C1USPFgf.js → settings-page-CXRPZxuB.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-header-B8nLRdnY.js → settings-page-header-CQueaD1Z.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-layout-DhOLVJYv.js → settings-page-layout-BlwyxcEq.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-interaction-page-CyEO6jAM.js → setup-interaction-page-BvL6C5ja.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-CNpRqxnq.js → setup-status-panel-Dp5cY2P9.js} +1 -1
- package/dist/gateway/static/root/assets/{share-link-dialog-kZSUpbBN.js → share-link-dialog-CB3LkWw8.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-9-aTa7_a.js → share-preview-page-IG0fTWJO.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-api-BxQqmxkq.js → shares-api-DgYOJV0T.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-DoMMw8Ud.js → shares-settings-YeLkRDki.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-api-V3Y6pTog.js → skill-api-DRCHLW2T.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-list-api-BSHfM0qb.js → skill-list-api-CQUhEUOF.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-Dq3F9pqP.js → skill-reload-api-BoEna1cx.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-DGWy1Jns.js → skills-page-CBAL83FE.js} +1 -1
- package/dist/gateway/static/root/assets/{space-api-BkXqM2MT.js → space-api-d4Q4hkEY.js} +1 -1
- package/dist/gateway/static/root/assets/space-page-8BMb_g2p.js +2 -0
- package/dist/gateway/static/root/assets/{space-workbook-7S_FfalA.js → space-workbook-BDjeiRtr.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-DSmwwU8o.js → system-settings-panel-dt8k0K4V.js} +1 -1
- package/dist/gateway/static/root/assets/task-detail-page-DFeKIcxT.js +3 -0
- package/dist/gateway/static/root/assets/{task-header-title-DAwu5vni.js → task-header-title-ClyuCAFb.js} +1 -1
- package/dist/gateway/static/root/assets/task-run-issue-notice-XWlgvgEo.js +1 -0
- package/dist/gateway/static/root/assets/{tasks-BIehlq7k.js → tasks-CwyNaa-j.js} +1 -1
- package/dist/gateway/static/root/assets/{terminal-panel-store-IpKmyQVN.js → terminal-panel-store-CNkRP4kf.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-B75oCec7.js → theme-store-nXIuAiQZ.js} +1 -1
- package/dist/gateway/static/root/assets/{tracing-settings-page-CVj7aLAl.js → tracing-settings-page-CoWcr2c0.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-TWW8dGwO.js → tunnel-api-DgsELO9g.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-activity-store-NgjWPD55.js → understanding-activity-store-BI_PbKCi.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-refresh-store-CN-7T5G5.js → understanding-refresh-store-DPHzCi1Q.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-D6mzQviK.js → usage-page-BVNBJa59.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-BYtW_pgF.js → use-autosave-BPDFVsgM.js} +1 -1
- package/dist/gateway/static/root/assets/{use-composer-attachments-Dn6X6xAP.js → use-composer-attachments-9nVD0sQ1.js} +1 -1
- package/dist/gateway/static/root/assets/{use-file-preview-expanded-BT0pss9g.js → use-file-preview-expanded-BhmEiOkv.js} +1 -1
- package/dist/gateway/static/root/assets/{use-generated-media-CuhMqXFp.js → use-generated-media-CLEV4wYC.js} +1 -1
- package/dist/gateway/static/root/assets/{use-personal-profile-DxE21oPS.js → use-personal-profile-CFaihmiJ.js} +1 -1
- package/dist/gateway/static/root/assets/{use-personal-work-j8AH0g9w.js → use-personal-work-CIZMwOlm.js} +1 -1
- package/dist/gateway/static/root/assets/{use-realtime-voice-CNG2yeaO.js → use-realtime-voice-CvtX2HcA.js} +1 -1
- package/dist/gateway/static/root/assets/{use-workspace-tree-BohZkOOW.js → use-workspace-tree-BnvuxYD4.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-Dlm-Mmo4.js → user-model-page-D4yNFvW1.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-api-key-field-D_o-xx9v.js → voice-api-key-field-NINoxB5r.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-BX2Q9Cgb.js → voice-config-api-7cvKLNoE.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-input-shortcut-events-qbqLMfW_.js → voice-input-shortcut-events-DaCuiqoi.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-player-store-z-upb7lD.js → voice-player-store-DipmM7w1.js} +1 -1
- package/dist/gateway/static/root/assets/voice-settings-BTvMqF_9.js +1 -0
- package/dist/gateway/static/root/assets/{work-discovery-overlay-ClPiLw1F.js → work-discovery-overlay-BKdumzyK.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-page-BohjMx1A.js → work-discovery-page-uX1VIzJY.js} +1 -1
- package/dist/gateway/static/root/assets/{working-directory-picker-modal-CcD0smT0.js → working-directory-picker-modal-C9hWAPvW.js} +1 -1
- package/dist/gateway/static/root/assets/workspace-api-_mQWmOZm.js +2 -0
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-BzuNTkZu.js +1 -0
- package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-BjJEOajj.js → workspace-file-preview-dialog-D4Nc7XkR.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-open-location-menu-Bc8qK8WA.js → workspace-open-location-menu-BZSS94es.js} +1 -1
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-BWdmU4iy.js → xopc-cloud-account-card-xJr48TmR.js} +1 -1
- package/dist/gateway/static/root/index.html +125 -123
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/tasks.js +38 -2
- package/dist/src/agent/agent-manager.d.ts +1 -0
- package/dist/src/agent/agent-manager.js +6 -5
- package/dist/src/agent/embedded/execution-tool-policy.d.ts +1 -0
- package/dist/src/agent/embedded/execution-tool-policy.js +8 -2
- package/dist/src/agent/external-tools/cliProvider.js +2 -2
- package/dist/src/agent/external-tools/composio-provider.js +3 -3
- package/dist/src/agent/external-tools/discovery.js +1 -1
- package/dist/src/agent/external-tools/gateway-tools.js +1 -1
- package/dist/src/agent/mcp/connection-drafts.d.ts +1 -1
- package/dist/src/agent/mcp/connection-drafts.js +15 -2
- package/dist/src/agent/mcp/managed-discovery.js +2 -2
- package/dist/src/agent/sandbox/exec-policy.js +1 -1
- package/dist/src/agent/service.js +5 -4
- package/dist/src/agent/service.types.d.ts +1 -0
- package/dist/src/agent/skills/filesystem-watcher.js +1 -1
- package/dist/src/agent/skills/hub-pull.js +2 -2
- package/dist/src/agent/skills/marketplace/adapters/store/adapter.js +1 -1
- package/dist/src/agent/skills/marketplace/adapters/store/store-api-client.js +1 -1
- package/dist/src/agent/tools/factory.d.ts +1 -0
- package/dist/src/agent/tools/factory.js +3 -2
- package/dist/src/agent/tools/personal-memory-tool.js +2 -2
- package/dist/src/agent/tools/personal-request-tool.d.ts +1 -0
- package/dist/src/agent/tools/personal-request-tool.js +2 -1
- package/dist/src/agent/tools/personal-task-tool.js +44 -13
- package/dist/src/agent/tools/publish-artifacts.js +1 -1
- package/dist/src/agent/tools/review-workspace.js +1 -1
- package/dist/src/agent/tools/skill-manage-tool.js +1 -1
- package/dist/src/agent/tools/task-collaboration-tool.js +1 -1
- package/dist/src/agent/tools/user-context-tool.js +1 -1
- package/dist/src/agent/tools/write.js +1 -1
- package/dist/src/agent/tools/xopc-use-tool.d.ts +1 -0
- package/dist/src/agent/tools/xopc-use-tool.js +3 -3
- package/dist/src/agent-matching/delegation-service.js +1 -1
- package/dist/src/automations/capabilities/write.js +1 -1
- package/dist/src/automations/configuration-conversation.js +1 -1
- package/dist/src/automations/delivery/delivery-router.js +1 -1
- package/dist/src/automations/service/automation-service.js +1 -1
- package/dist/src/capabilities/capability-catalog.js +1 -1
- package/dist/src/capabilities/runtime/product.js +1 -1
- package/dist/src/capabilities/store-connector.js +1 -1
- package/dist/src/channels/enterprise/setup.d.ts +4 -0
- package/dist/src/channels/enterprise/setup.js +3 -2
- package/dist/src/channels/plugins/types.adapters.d.ts +4 -0
- package/dist/src/cli/commands/skills.js +1 -1
- package/dist/src/connectors/cli/authorization.js +1 -1
- package/dist/src/connectors/connection-recovery-service.d.ts +2 -1
- package/dist/src/connectors/connection-recovery-service.js +10 -7
- package/dist/src/extensions/agent-plugins/skill-catalog.js +1 -1
- package/dist/src/extensions/api.js +1 -1
- package/dist/src/gateway/agent-builtin-tools.d.ts +1 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
- package/dist/src/gateway/hono/routes/lazy-bundles.js +8 -0
- package/dist/src/gateway/hono/routes/local-app-run-streams.js +1 -1
- package/dist/src/gateway/hono/routes/mobile-capability-panels.d.ts +3 -1
- package/dist/src/gateway/hono/routes/mobile-capability-panels.js +144 -50
- package/dist/src/gateway/hono/routes/personal-agent.js +1 -1
- package/dist/src/gateway/hono/routes/phone-dependencies.js +1 -1
- package/dist/src/gateway/hono/routes/projects.js +3 -3
- package/dist/src/gateway/hono/routes/shares.js +1 -1
- package/dist/src/gateway/hono/routes/task-retry.d.ts +3 -0
- package/dist/src/gateway/hono/routes/task-retry.js +20 -0
- package/dist/src/gateway/hono/routes/tui.js +2 -2
- package/dist/src/gateway/hono/routes/user-model.js +1 -1
- package/dist/src/gateway/media-access.js +2 -2
- package/dist/src/gateway/service/marketplace-service.js +2 -2
- package/dist/src/gateway/service.d.ts +9 -0
- package/dist/src/gateway/service.js +21 -13
- package/dist/src/local-apps/automation-proposals.js +1 -1
- package/dist/src/local-apps/capabilities/projections.d.ts +1 -1
- package/dist/src/local-apps/execution-authority.js +1 -1
- package/dist/src/local-apps/p1-services.js +2 -2
- package/dist/src/local-apps/preview-worker.js +1 -1
- package/dist/src/local-apps/service.js +3 -3
- package/dist/src/notes/index.js +1 -1
- package/dist/src/notes/service.js +3 -3
- package/dist/src/personal-agent/capability-service.js +2 -2
- package/dist/src/personal-agent/prompt-context.js +1 -1
- package/dist/src/personal-agent/prompts.js +2 -2
- package/dist/src/personal-agent/reply-composer.d.ts +2 -0
- package/dist/src/personal-agent/reply-composer.js +132 -82
- package/dist/src/personal-agent/reply-result.d.ts +11 -0
- package/dist/src/personal-agent/reply-result.js +60 -0
- package/dist/src/personal-agent/reply-style.d.ts +1 -1
- package/dist/src/personal-agent/reply-style.js +1 -1
- package/dist/src/personal-agent/request-access.js +1 -1
- package/dist/src/personal-agent/request-delivery.d.ts +1 -1
- package/dist/src/personal-agent/request-delivery.js +10 -9
- package/dist/src/personal-agent/request-service.d.ts +3 -1
- package/dist/src/personal-agent/request-service.js +75 -64
- package/dist/src/projects/capabilities/write.js +3 -3
- package/dist/src/projects/project-service.js +1 -1
- package/dist/src/projects/project-skill-service.js +2 -2
- package/dist/src/runtime-tools/harmony-dependencies.js +5 -5
- package/dist/src/runtime-tools/hdc-files.js +1 -1
- package/dist/src/runtime-tools/phone-dependencies.js +2 -2
- package/dist/src/tasks/capabilities/read.js +1 -1
- package/dist/src/tasks/capabilities/relations.js +1 -1
- package/dist/src/tasks/capabilities/write.d.ts +1 -1
- package/dist/src/tasks/capabilities/write.js +1 -1
- package/dist/src/tasks/index.js +1 -1
- package/dist/src/tasks/task-allocation-service.js +3 -3
- package/dist/src/tasks/task-application-service.d.ts +8 -0
- package/dist/src/tasks/task-application-service.js +18 -7
- package/dist/src/tasks/task-context-assembler.js +2 -2
- package/dist/src/tasks/task-contract-planner.js +1 -1
- package/dist/src/tasks/task-execution-capabilities.js +2 -2
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tasks/task-handoff.js +2 -2
- package/dist/src/tasks/task-origin-repository.d.ts +2 -0
- package/dist/src/tasks/task-origin-repository.js +3 -2
- package/dist/src/tasks/task-read-model-projector.js +22 -8
- package/dist/src/tasks/task-research-result.js +1 -1
- package/dist/src/tasks/task-result-delivery-service.js +1 -1
- package/dist/src/tasks/task-retry-policy.d.ts +5 -0
- package/dist/src/tasks/task-retry-policy.js +48 -0
- package/dist/src/tasks/task-retry-service.d.ts +18 -0
- package/dist/src/tasks/task-retry-service.js +186 -0
- package/dist/src/tasks/task-run-coordinator.js +3 -3
- package/dist/src/tasks/task-run-dispatcher.js +2 -1
- package/dist/src/tasks/task-run-repository.d.ts +1 -1
- package/dist/src/tui/backends/embedded-backend.js +3 -3
- package/dist/src/tui/tui-capabilities.js +1 -1
- package/dist/src/tui/tui-startup-resources.js +2 -2
- package/dist/src/user-context/changes.d.ts +1 -1
- package/dist/src/voice/realtime/memory-context.d.ts +1 -1
- package/dist/src/voice/realtime/memory-context.js +12 -10
- package/dist/src/voice/realtime/omniEngine.js +32 -12
- package/dist/src/voice/realtime/omniRoute.js +1 -1
- package/dist/src/voice/realtime/runtime.js +15 -11
- package/package.json +2 -2
- package/dist/gateway/static/root/assets/capabilities-BcgSEYc5.js +0 -1
- package/dist/gateway/static/root/assets/capabilities-page-CT6qMkqA.js +0 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-9lLzGQ-F.js +0 -8
- package/dist/gateway/static/root/assets/chat-page-qrdWReZ2.js +0 -72
- package/dist/gateway/static/root/assets/connected-providers-grid-ds0J-7Qc.js +0 -1
- package/dist/gateway/static/root/assets/diagnostics-Bo0Z42P_.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-DTcS5Hqk.js +0 -1
- package/dist/gateway/static/root/assets/home-page-CwUc6499.js +0 -8
- package/dist/gateway/static/root/assets/index-BWJ0tePz.js +0 -11
- package/dist/gateway/static/root/assets/index-C-4H3NhI.css +0 -1
- package/dist/gateway/static/root/assets/markdown-view-BwbjZnQ6.js +0 -324
- package/dist/gateway/static/root/assets/markdown-view-DG8DDkEA.css +0 -1
- package/dist/gateway/static/root/assets/note-detail-panel-DEz8I-eN.js +0 -7
- package/dist/gateway/static/root/assets/note-image-lightbox-D-7a_BCN.js +0 -1
- package/dist/gateway/static/root/assets/personal-profile-settings-D1TpPIVg.js +0 -1
- package/dist/gateway/static/root/assets/product-automation-feedback-CDjJlwol.js +0 -7
- package/dist/gateway/static/root/assets/route-preload-N7Ieq1wB.js +0 -2
- package/dist/gateway/static/root/assets/routine-panel-BvBR3khG.js +0 -2
- package/dist/gateway/static/root/assets/session-channel-icon-COynhpeK.js +0 -1
- package/dist/gateway/static/root/assets/session-identity-label-DCIZvqbN.js +0 -1
- package/dist/gateway/static/root/assets/session-manager-BRzFtnn4.js +0 -22
- package/dist/gateway/static/root/assets/sessions-page-PjTnKj7l.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-JrndQtAT.js +0 -1
- package/dist/gateway/static/root/assets/space-page-BAp28k1I.js +0 -2
- package/dist/gateway/static/root/assets/task-detail-page-15Qm8kNq.js +0 -3
- package/dist/gateway/static/root/assets/task-result-evidence-BqAt23uk.js +0 -1
- package/dist/gateway/static/root/assets/voice-settings-BEhihzNq.js +0 -1
- package/dist/gateway/static/root/assets/workspace-api-Bpq_rBZM.js +0 -2
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-BkCt8mdN.js +0 -1
- package/dist/gateway/static/root/assets/workspace-preview-store-QUX-jyAL.js +0 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { createLogger } from "../utils/logger/index.js";
|
|
2
|
+
import { init_logger } from "../utils/logger.js";
|
|
3
|
+
import { tryParseMediaUri } from "../media/uri.js";
|
|
4
|
+
import { MEDIA_ARTIFACT_MAX_BYTES, resolveMediaBufferPath, saveMediaBuffer } from "../media/store.js";
|
|
5
|
+
import { sanitizePersonalResultFileLinks } from "./result-file-links.js";
|
|
6
|
+
import { isAvailableDeliverable } from "../tasks/task-deliverables.js";
|
|
7
|
+
import { deleteMediaUris } from "../media/session-references.js";
|
|
8
|
+
import { createHash } from "node:crypto";
|
|
9
|
+
import { lstat } from "node:fs/promises";
|
|
10
|
+
//#region src/personal-agent/reply-result.ts
|
|
11
|
+
init_logger();
|
|
12
|
+
const log = createLogger("PersonalReplyComposer");
|
|
13
|
+
const INLINE_REPORT_LIMIT = 600;
|
|
14
|
+
function isLongPersonalReport(report) {
|
|
15
|
+
return report.length > INLINE_REPORT_LIMIT && Array.from(report).length > INLINE_REPORT_LIMIT;
|
|
16
|
+
}
|
|
17
|
+
async function preparePersonalReplyResult(packet) {
|
|
18
|
+
if (!isLongPersonalReport(packet.report)) return void 0;
|
|
19
|
+
const bytes = Buffer.from(sanitizePersonalResultFileLinks(packet.report));
|
|
20
|
+
if (!bytes.length) return void 0;
|
|
21
|
+
const sha256 = createHash("sha256").update(bytes).digest("hex");
|
|
22
|
+
const existing = packet.delivery.outcome.deliverables.find((item) => item.sha256 === sha256 && item.uri?.startsWith("media://outbound/") && item.capabilities.includes("download") && isAvailableDeliverable(item, Date.now()));
|
|
23
|
+
const mediaRef = existing?.uri && tryParseMediaUri(existing.uri);
|
|
24
|
+
if (mediaRef && mediaRef.bucket === "outbound") {
|
|
25
|
+
const file = await lstat(resolveMediaBufferPath(mediaRef.id, mediaRef.bucket)).catch(() => void 0);
|
|
26
|
+
if (file?.isFile() && file.size === bytes.length) return {};
|
|
27
|
+
}
|
|
28
|
+
const zh = /[\u3400-\u9fff]/u.test(packet.objective);
|
|
29
|
+
try {
|
|
30
|
+
const media = await saveMediaBuffer(bytes, {
|
|
31
|
+
bucket: "outbound",
|
|
32
|
+
contentType: "text/markdown",
|
|
33
|
+
maxBytes: MEDIA_ARTIFACT_MAX_BYTES,
|
|
34
|
+
originalFilename: "full-result.md"
|
|
35
|
+
});
|
|
36
|
+
return { attachment: {
|
|
37
|
+
artifactId: media.id,
|
|
38
|
+
title: zh ? "完整结果.md" : "Full result.md",
|
|
39
|
+
kind: "document",
|
|
40
|
+
mimeType: media.contentType,
|
|
41
|
+
sizeBytes: media.size,
|
|
42
|
+
sha256,
|
|
43
|
+
availability: "available",
|
|
44
|
+
location: "artifact_store",
|
|
45
|
+
uri: media.uri,
|
|
46
|
+
capabilities: ["preview", "download"]
|
|
47
|
+
} };
|
|
48
|
+
} catch (err) {
|
|
49
|
+
log.warn({
|
|
50
|
+
err,
|
|
51
|
+
taskRunId: packet.delivery.taskRunId
|
|
52
|
+
}, "Could not attach the full task result");
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
async function releasePersonalReplyResult(result) {
|
|
57
|
+
if (result?.attachment) await deleteMediaUris([result.attachment.uri]);
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
export { isLongPersonalReport, preparePersonalReplyResult, releasePersonalReplyResult };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const PERSONAL_REPLY_STYLE_RULES: readonly ["Distinguish a failed internal attempt from the user’s final outcome. Keep recoverable routing, allocation and tool failures private when recovery is confirmed and no user action or significant delay needs attention. For an unsolicited internal update after recovery with no new requested result, return NO_REPLY. Clearly disclose final failure, unmet requirements and material partial failures; never describe an unresolved failure as no findings or still checking. Preserve actual retry state: only claim recovery or continuation after a successful tool receipt, and never invent a retry.", "Do not invent a new owner lookup, verification, contact or follow-up step to make an update sound helpful. If the supplied team is the relevant responsible party, name that team without creating a missing-person lookup. An unknown detail does not authorize you to investigate it. Promise a later notification only for a requested or already-authorized follow-up with a verified enabled delivery path. If that path is absent or unknown, give the current facts without promising a later update.", "Keep the supplied action and its object specific when rewriting progress: checking an appliance or comparing quantities must not collapse into vaguely handling the matter. Preserve known successes, failures, uncertainty and actual retry state while adopting newer facts. Express each fact once in ordinary language; do not restate not started as waiting to start or add status boilerplate to a simple acknowledgement. Precision must still read like a natural reply, not a checklist.", "Own the user-facing work in the first person: prefer \"I will check\", \"I am checking\" or \"Here is what I found\" to dispatch language such as \"I assigned someone to check\". Internal Agent coordination does not need to become the subject of the reply. Match the verb to verified progress: intent or queue admission is not running, a worker report is not your independent verification, and completion is not delivery. Name an external collaborator only when relevant to the user and supported by evidence. Promise later updates only when a verified follow-up or delivery path supports them.", "
|
|
1
|
+
export declare const PERSONAL_REPLY_STYLE_RULES: readonly ["Distinguish a failed internal attempt from the user’s final outcome. Keep recoverable routing, allocation and tool failures private when recovery is confirmed and no user action or significant delay needs attention. For an unsolicited internal update after recovery with no new requested result, return NO_REPLY. Clearly disclose final failure, unmet requirements and material partial failures; never describe an unresolved failure as no findings or still checking. Preserve actual retry state: only claim recovery or continuation after a successful tool receipt, and never invent a retry.", "Do not invent a new owner lookup, verification, contact or follow-up step to make an update sound helpful. If the supplied team is the relevant responsible party, name that team without creating a missing-person lookup. An unknown detail does not authorize you to investigate it. Promise a later notification only for a requested or already-authorized follow-up with a verified enabled delivery path. If that path is absent or unknown, give the current facts without promising a later update.", "Keep the supplied action and its object specific when rewriting progress: checking an appliance or comparing quantities must not collapse into vaguely handling the matter. Preserve known successes, failures, uncertainty and actual retry state while adopting newer facts. Express each fact once in ordinary language; do not restate not started as waiting to start or add status boilerplate to a simple acknowledgement. Precision must still read like a natural reply, not a checklist.", "Own the user-facing work in the first person: prefer \"I will check\", \"I am checking\" or \"Here is what I found\" to dispatch language such as \"I assigned someone to check\". Internal Agent coordination does not need to become the subject of the reply. Match the verb to verified progress: intent or queue admission is not running, a worker report is not your independent verification, and completion is not delivery. Name an external collaborator only when relevant to the user and supported by evidence. Promise later updates only when a verified follow-up or delivery path supports them.", "Write the reply as a short message to one person. In the opening sentences, say what they can decide, use, or do now, and name the condition or uncertainty that could change that. For a decision, include the decisive trade-offs once. For a task result, say which parts are usable, what is still missing, and any action the reader needs to take. Use at most one short paragraph plus a few distinct bullets when that covers the request. For ordinary replies, aim for about 120–250 Chinese characters or 60–120 English words, with room for essential facts. Keep the figures, deadlines, and limits needed to act. Leave the background, play-by-play, repeated summary and optional next steps out. Honor a numerical length limit when the user sets one. Requests for detail, exact text, code, tables, reports, or complete lists take precedence.", "For summaries, lead with the conclusion and select findings by relevance to the user’s request. Merge duplicate notices about the same event. Include concrete actions and deadlines when supported; group routine newsletters and promotions briefly. Omit expired verification codes and irrelevant historical notices unless requested or material to the question. Do not turn every retrieved item into a finding or append the source inventory after the summary. Place useful source links beside the findings they support. Provide a complete list only when requested.", "Keep routine execution assurances out of the reply: do not list operations you did not perform, announce read-only access, or recite exact query timestamps by default. State coverage briefly when it matters to interpreting the answer, and always disclose incomplete retrieval or a material evidence gap. Do not add a generic disclaimer that you have not independently rechecked a worker report; qualify the particular uncertain claim instead. A newsletter’s claims remain attributed claims, not verified technical advice; do not infer current calendars or subscription consequences from a notification alone.", "Use short paragraphs and useful structure. When the user accepts a settled plan with no new question, acknowledge briefly and end: no next-step reminder, new question, benefit statement, or re-teaching. Answer new substantive requests normally.", "Interpret short replies in context; an acknowledgement is not a new task, cancellation, or request for detail. Continue accepted offers and honor stop requests.", "Vary openings naturally; greetings, reassurance, humor, and questions are optional. Continue from the user's last substantive point; a brief agreement can stand on its own. When the user switches topics, let an unsolicited task result name its original subject briefly and keep the current conversation intact. Keep ongoing tone and detail preferences; a single-turn exception does not reset them.", "Keep requested content, limits, and partial failures visible. Separate plans, actions, and verified outcomes; agreement is not proof of trust, fairness, or resolution. Cite sources when requested or necessary.", "Use supplied facts in drafts and roleplay. Never invent a private disclosure, quote, action or reaction to win agreement. Requested fiction may add details, but not contradict given facts. Speak for yourself; laughter does not prove feelings. Leave unknown motives open, even in questions; one incident is not a lasting pattern. Drop corrected readings. Respond in your current role. Give requested wording or advice. After agreement, close without recapping duties, teaching its value or seeking feedback. Explain only live confusion or risk."];
|
|
2
2
|
export declare const PERSONAL_REPLY_EXAMPLES = "Examples; use evidence.\n<examples>\n<example>Context: Report export failed, no file created and no retry initiated. User: \u8BF4\u77ED\u4E00\u70B9\u3002 Assistant: \u5BFC\u51FA\u5931\u8D25\uFF0C\u8FD8\u6CA1\u6709\u751F\u6210\u6587\u4EF6\u3002</example>\n<example>Context: Support team is handling a ticket; no request or capability for follow-up. User: \u8C01\u5728\u5904\u7406\uFF0C\u73B0\u5728\u4EC0\u4E48\u8FDB\u5EA6\uFF1F Assistant: \u5BA2\u670D\u56E2\u961F\u6B63\u5728\u5904\u7406\uFF0C\u76EE\u524D\u8FD8\u6CA1\u6709\u5904\u7406\u7ED3\u679C\u3002</example>\n<example>Context: Lookup not started. User: \u67E5\u4E00\u4E0B\u8FD9\u4E2A\u95EE\u9898\u3002 Assistant: \u6211\u6765\u67E5\u4E00\u4E0B\u3002</example>\n<example>Context: The user asked to retry a search after an incomplete reply; continuation was accepted. User: \u518D\u67E5\u4E00\u904D\uFF0C\u7B80\u6D01\u4E00\u70B9\u3002 Assistant: \u6211\u518D\u67E5\u4E00\u904D\uFF0C\u5148\u628A\u6709\u4F9D\u636E\u7684\u539F\u56E0\u548C\u5173\u952E\u6D88\u606F\u8BF4\u6E05\u695A\u3002</example>\n<example>Context: Internal lookup confirmed running; no findings yet. User: \u67E5\u5F97\u600E\u4E48\u6837\u4E86\uFF1F Assistant: \u6211\u6B63\u5728\u67E5\uFF0C\u76EE\u524D\u8FD8\u6CA1\u6709\u786E\u8BA4\u7684\u7ED3\u679C\u3002</example>\n<example>Context: Lookup queued, not running. User: \u5DF2\u7ECF\u5F00\u59CB\u67E5\u4E86\u5417\uFF1F Assistant: \u8FD8\u6CA1\u6709\uFF0C\u67E5\u8BE2\u8FD8\u5728\u7B49\u5F85\u5F00\u59CB\u3002</example>\n<example>Context: Worker returned leads, not independently verified. User: \u6709\u7ED3\u679C\u4E86\u5417\uFF1F Assistant: \u76EE\u524D\u67E5\u5230\u4E00\u4E9B\u7EBF\u7D22\uFF0C\u5177\u4F53\u539F\u56E0\u8FD8\u6CA1\u786E\u8BA4\u3002</example>\n<example>Context: Recipient unclear. User: \u53D1\u7ED9\u4ED6\u3002 Assistant: \u4F60\u6307\u7684\u662F\u521A\u624D\u63D0\u5230\u7684\u54EA\u4E00\u4F4D\uFF1F</example>\n<example>Context: Mail partly retrieved; auth expired. Assistant: \u5DF2\u7ECF\u67E5\u5230\u7684\u51E0\u5C01\u90AE\u4EF6\u5728\u4E0B\u9762\u3002\u5269\u4E0B\u7684\u56E0\u4E3A\u8FDE\u63A5\u8FC7\u671F\u6682\u65F6\u6CA1\u67E5\u5B8C\uFF1B\u91CD\u65B0\u8FDE\u63A5\u540E\u624D\u80FD\u63A5\u7740\u770B\u3002</example>\n<example>User: \u5199\u4E00\u6BB5\u9A91\u58EB\u5728\u66B4\u98CE\u96E8\u524D\u9F13\u821E\u540C\u4F34\u7684\u72EC\u767D\u3002 Assistant: \u96E8\u8FD8\u6CA1\u6709\u843D\u4E0B\uFF0C\u8BF8\u4F4D\uFF0C\u53EF\u6211\u5DF2\u542C\u89C1\u4F60\u4EEC\u76FE\u724C\u4E0A\u672A\u6765\u7684\u96F7\u58F0\u3002\u4ECA\u591C\u5B88\u4F4F\u8FD9\u5EA7\u6865\uFF0C\u6865\u540E\u7684\u706F\u706B\u4FBF\u4E0D\u4F1A\u7184\u706D\u3002</example>\n<example>Context: \u5BF9\u4EB2\u621A\u8C08\u521A\u624D\u7684\u73A9\u7B11\u3002 User: \u4F60\u662F\u89C9\u5F97\u6211\u8FD9\u4EBA\u4E0D\u884C\uFF1F Assistant: \u4E0D\u662F\u3002\u6211\u662F\u4E0D\u559C\u6B22\u90A3\u4E2A\u73A9\u7B11\uFF0C\u5E0C\u671B\u4EE5\u540E\u522B\u518D\u62FF\u8FD9\u4EF6\u4E8B\u5F00\u73A9\u7B11\u3002</example>\n<example>User: \u60F3\u7EA6\u670B\u53CB\u5403\u996D\uFF0C\u4F46\u6211\u548C\u5BF9\u8C61\u8FD8\u6CA1\u5B9A\u54EA\u5929\u6709\u7A7A\u3002 Assistant: \u53EF\u4EE5\u5148\u770B\u770B\u5468\u4E09\u665A\u4E0A\uFF1B\u4F60\u4EEC\u539F\u6765\u7684\u5B89\u6392\u518D\u6362\u4E2A\u65F6\u95F4\u3002</example>\n<example>User: One sentence to apologize for interrupting. Assistant: \u201CI cut you off earlier. I'm sorry\u2014I'd like to hear the rest.\u201D</example>\n<example>Context: Plan accepted. User: \u597D\uFF0C\u90A3\u6211\u5468\u4E94\u628A\u6750\u6599\u53D1\u8FC7\u53BB\u3002 Assistant: \u597D\u3002</example>\n</examples>";
|
|
@@ -4,7 +4,7 @@ const PERSONAL_REPLY_STYLE_RULES = [
|
|
|
4
4
|
"Do not invent a new owner lookup, verification, contact or follow-up step to make an update sound helpful. If the supplied team is the relevant responsible party, name that team without creating a missing-person lookup. An unknown detail does not authorize you to investigate it. Promise a later notification only for a requested or already-authorized follow-up with a verified enabled delivery path. If that path is absent or unknown, give the current facts without promising a later update.",
|
|
5
5
|
"Keep the supplied action and its object specific when rewriting progress: checking an appliance or comparing quantities must not collapse into vaguely handling the matter. Preserve known successes, failures, uncertainty and actual retry state while adopting newer facts. Express each fact once in ordinary language; do not restate not started as waiting to start or add status boilerplate to a simple acknowledgement. Precision must still read like a natural reply, not a checklist.",
|
|
6
6
|
"Own the user-facing work in the first person: prefer \"I will check\", \"I am checking\" or \"Here is what I found\" to dispatch language such as \"I assigned someone to check\". Internal Agent coordination does not need to become the subject of the reply. Match the verb to verified progress: intent or queue admission is not running, a worker report is not your independent verification, and completion is not delivery. Name an external collaborator only when relevant to the user and supported by evidence. Promise later updates only when a verified follow-up or delivery path supports them.",
|
|
7
|
-
"
|
|
7
|
+
"Write the reply as a short message to one person. In the opening sentences, say what they can decide, use, or do now, and name the condition or uncertainty that could change that. For a decision, include the decisive trade-offs once. For a task result, say which parts are usable, what is still missing, and any action the reader needs to take. Use at most one short paragraph plus a few distinct bullets when that covers the request. For ordinary replies, aim for about 120–250 Chinese characters or 60–120 English words, with room for essential facts. Keep the figures, deadlines, and limits needed to act. Leave the background, play-by-play, repeated summary and optional next steps out. Honor a numerical length limit when the user sets one. Requests for detail, exact text, code, tables, reports, or complete lists take precedence.",
|
|
8
8
|
"For summaries, lead with the conclusion and select findings by relevance to the user’s request. Merge duplicate notices about the same event. Include concrete actions and deadlines when supported; group routine newsletters and promotions briefly. Omit expired verification codes and irrelevant historical notices unless requested or material to the question. Do not turn every retrieved item into a finding or append the source inventory after the summary. Place useful source links beside the findings they support. Provide a complete list only when requested.",
|
|
9
9
|
"Keep routine execution assurances out of the reply: do not list operations you did not perform, announce read-only access, or recite exact query timestamps by default. State coverage briefly when it matters to interpreting the answer, and always disclose incomplete retrieval or a material evidence gap. Do not add a generic disclaimer that you have not independently rechecked a worker report; qualify the particular uncertain claim instead. A newsletter’s claims remain attributed claims, not verified technical advice; do not infer current calendars or subscription consequences from a notification alone.",
|
|
10
10
|
"Use short paragraphs and useful structure. When the user accepts a settled plan with no new question, acknowledge briefly and end: no next-step reminder, new question, benefit statement, or re-teaching. Answer new substantive requests normally.",
|
|
@@ -4,9 +4,9 @@ import { TaskRunRepository, init_task_run_repository } from "../tasks/task-run-r
|
|
|
4
4
|
import { getPersonalRequest, init_request_repository, personalRequestForExecution } from "./request-repository.js";
|
|
5
5
|
import { getConnectorAccount, init_connector_account_repository } from "../storage/sqlite/connector-account-repository.js";
|
|
6
6
|
import { getConnectorConnection, getConnectorInstallation, init_connector_repository } from "../storage/sqlite/connector-repository.js";
|
|
7
|
-
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
8
7
|
import { canAccessConnectorAccount } from "../connectors/account-access.js";
|
|
9
8
|
import { connectorPrincipalForSession } from "../connectors/principal.js";
|
|
9
|
+
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
10
10
|
//#region src/personal-agent/request-access.ts
|
|
11
11
|
init_connector_account_repository();
|
|
12
12
|
init_connector_repository();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** Closed authorization waits retain their feedback marker for restart-safe delivery. */
|
|
2
2
|
export declare function drainPersonalRequestContinuations(notify?: (conversationId: string, requestId: string) => void): void;
|
|
3
3
|
/** Stage Task-backed personal results in the shared delivery outbox. */
|
|
4
|
-
export declare function drainPersonalRequestResults(notify?: (conversationId: string, requestId: string) => void): void;
|
|
4
|
+
export declare function drainPersonalRequestResults(notify?: (conversationId: string, requestId: string, deliveryId?: string) => void): void;
|
|
@@ -11,8 +11,8 @@ import { getPersonalRequest, init_request_repository, updatePersonalRequest } fr
|
|
|
11
11
|
import { appendTranscriptEntry, loadLlmMessagesForSession } from "../storage/sqlite/transcript-repository.js";
|
|
12
12
|
import { getPersonalAgentByConversation } from "./repository.js";
|
|
13
13
|
import { emitSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
14
|
-
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
15
14
|
import { warmPersonalResult } from "./result-reader.js";
|
|
15
|
+
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
16
16
|
import { PersonalRequestResultSchema, renderPersonalRequestResult } from "./request-result.js";
|
|
17
17
|
import { enqueuePersonalReply } from "./reply-composer.js";
|
|
18
18
|
//#region src/personal-agent/request-delivery.ts
|
|
@@ -77,11 +77,11 @@ function drainPersonalRequestResults(notify) {
|
|
|
77
77
|
const db = getSqliteDatabase();
|
|
78
78
|
const rows = db.prepare(`SELECT request_id, delivery_attempts FROM personal_requests request WHERE task_id IS NOT NULL
|
|
79
79
|
AND state != 'cancelled' AND notified_at IS NULL AND delivery_attempts < 8 AND delivery_next_attempt_at <= ? AND EXISTS
|
|
80
|
-
(SELECT 1 FROM task_runs run WHERE run.
|
|
80
|
+
(SELECT 1 FROM task_runs run WHERE run.run_id = (SELECT latest.run_id FROM task_runs latest
|
|
81
|
+
WHERE latest.task_id = request.task_id AND latest.parent_run_id IS NULL ORDER BY latest.queued_at DESC, latest.rowid DESC LIMIT 1)
|
|
81
82
|
AND run.status IN ('succeeded','failed','cancelled')
|
|
82
|
-
AND NOT EXISTS (SELECT 1 FROM
|
|
83
|
-
AND
|
|
84
|
-
AND NOT EXISTS (SELECT 1 FROM task_result_deliveries delivery WHERE json_extract(delivery.reply_payload_json, '$.requestId') = request.request_id)
|
|
83
|
+
AND NOT EXISTS (SELECT 1 FROM task_result_deliveries delivery WHERE delivery.task_run_id = run.run_id
|
|
84
|
+
AND json_extract(delivery.reply_payload_json, '$.requestId') = request.request_id))
|
|
85
85
|
ORDER BY created_at LIMIT 50`).all(Date.now());
|
|
86
86
|
for (const row of rows) try {
|
|
87
87
|
const request = getPersonalRequest(row.request_id);
|
|
@@ -91,6 +91,7 @@ function drainPersonalRequestResults(notify) {
|
|
|
91
91
|
"failed",
|
|
92
92
|
"cancelled"
|
|
93
93
|
].includes(run.status)) continue;
|
|
94
|
+
const deliveryId = `personal-request:${request.requestId}${run.retryOfRunId ? `:${run.id}` : ""}`;
|
|
94
95
|
const state = new TaskConversationRepository().getState(request.taskId);
|
|
95
96
|
const receipt = new TaskRunRepository().getReceipt(run.id);
|
|
96
97
|
runSqliteWriteTransaction(() => {
|
|
@@ -119,7 +120,7 @@ function drainPersonalRequestResults(notify) {
|
|
|
119
120
|
const now = Date.now();
|
|
120
121
|
const delivery = TaskResultDeliverySchema.parse({
|
|
121
122
|
version: 1,
|
|
122
|
-
deliveryId
|
|
123
|
+
deliveryId,
|
|
123
124
|
taskId: request.taskId,
|
|
124
125
|
taskRunId: run.id,
|
|
125
126
|
taskResultId: !outdated && !unverifiedDirections ? finalizedTaskResultId(run.id) : void 0,
|
|
@@ -132,9 +133,9 @@ function drainPersonalRequestResults(notify) {
|
|
|
132
133
|
instructionSequence: latestDirection,
|
|
133
134
|
outcome: {
|
|
134
135
|
version: 1,
|
|
135
|
-
outcomeId:
|
|
136
|
+
outcomeId: deliveryId,
|
|
136
137
|
runId: run.id,
|
|
137
|
-
turnId:
|
|
138
|
+
turnId: deliveryId,
|
|
138
139
|
status: failed ? "failed" : outdated || unverifiedDirections || parsed?.success && parsed.data.coverage?.partial ? "partial" : "succeeded",
|
|
139
140
|
summary: content.slice(0, 2e3),
|
|
140
141
|
deliverables: [],
|
|
@@ -168,7 +169,7 @@ function drainPersonalRequestResults(notify) {
|
|
|
168
169
|
const delivered = db.prepare("SELECT delivery_entry_id, notified_at FROM personal_requests WHERE request_id = ?").get(request.requestId);
|
|
169
170
|
if (delivered.delivery_entry_id && !delivered.notified_at) {
|
|
170
171
|
emitSessionTranscriptUpdate({ conversationId: request.conversationId });
|
|
171
|
-
notify?.(request.conversationId, request.requestId);
|
|
172
|
+
notify?.(request.conversationId, request.requestId, deliveryId);
|
|
172
173
|
db.prepare("UPDATE personal_requests SET notified_at = ? WHERE request_id = ?").run(Date.now(), request.requestId);
|
|
173
174
|
}
|
|
174
175
|
} catch (err) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ConnectionWait } from '@xopcai/gateway-contract';
|
|
1
|
+
import { type ConnectionWait, type TaskRun } from '@xopcai/gateway-contract';
|
|
2
2
|
import { type PersonalRequest } from './request-repository.js';
|
|
3
3
|
export declare function assertPersonalRequestTimeRange(range: NonNullable<PersonalRequest['parameters']['timeRange']>): void;
|
|
4
4
|
export declare function submitPersonalRequest(input: {
|
|
@@ -19,6 +19,8 @@ export declare function submitPersonalRequest(input: {
|
|
|
19
19
|
export declare function resolvePersonalRequestConnection(wait: ConnectionWait, resolution: 'continued' | 'skipped'): PersonalRequest | undefined;
|
|
20
20
|
/** A worker can request access recovery without requiring a new main-chat turn. */
|
|
21
21
|
export declare function requirePersonalWorkerConnection(conversationId: string): PersonalRequest;
|
|
22
|
+
/** Caller owns the write transaction that binds the request and its run. */
|
|
23
|
+
export declare function waitForPersonalRequestConnection(request: PersonalRequest, run: TaskRun): PersonalRequest;
|
|
22
24
|
export declare function personalRequestSnapshot(request: PersonalRequest): PersonalRequest;
|
|
23
25
|
/** Dispatch only the request's bound execution; SDK acknowledgement must not block input. */
|
|
24
26
|
export declare function stopPersonalRequestExecution(request: PersonalRequest): {
|
|
@@ -14,16 +14,16 @@ import { cancelConnectionObjective, init_connection_wait_repository, publishConn
|
|
|
14
14
|
import { getUserProfileSnapshot } from "../user-model/profile.js";
|
|
15
15
|
import { isPersonalConversation } from "./repository.js";
|
|
16
16
|
import { resolveTaskLocale } from "../tasks/task-language.js";
|
|
17
|
-
import {
|
|
17
|
+
import { assessSpecialist } from "../agent-matching/service.js";
|
|
18
18
|
import { canAccessConnectorAccount } from "../connectors/account-access.js";
|
|
19
|
+
import { resolveConnectionCandidate } from "../connectors/connection-candidates.js";
|
|
19
20
|
import { connectorPrincipalForSession } from "../connectors/principal.js";
|
|
21
|
+
import { personalCapabilities } from "./capability-service.js";
|
|
22
|
+
import { TaskCollaborationRepository } from "../tasks/task-collaboration-repository.js";
|
|
20
23
|
import { abortEmbeddedRun } from "../agent/embedded/runs.js";
|
|
21
|
-
import { resolveConnectionCandidate } from "../connectors/connection-candidates.js";
|
|
22
24
|
import { TaskApplicationService } from "../tasks/task-application-service.js";
|
|
23
25
|
import { resolveResponseLanguageForSession } from "../agent/prompt/response-language.js";
|
|
24
26
|
import { defineTaskContract } from "../tasks/task-contract-definition.js";
|
|
25
|
-
import { assessSpecialist } from "../agent-matching/service.js";
|
|
26
|
-
import { personalCapabilities } from "./capability-service.js";
|
|
27
27
|
import { AgentSelectionRepository, selectionRequestHash } from "../agent-matching/selection-repository.js";
|
|
28
28
|
import { assertSpecialistEligible } from "../agent-matching/delegation-service.js";
|
|
29
29
|
import { createHash, randomUUID } from "node:crypto";
|
|
@@ -349,12 +349,19 @@ function resolvePersonalRequestConnection(wait, resolution) {
|
|
|
349
349
|
if (capability?.status !== "ready" || !capability.accounts.some((account) => account.accountId === need.accountId && account.executorAgentIds.includes(updated.executorAgentId))) throw new Error("Account or Agent permission changed");
|
|
350
350
|
const runs = new TaskRunRepository();
|
|
351
351
|
const run = runs.getActiveRoot(updated.taskId);
|
|
352
|
-
|
|
353
|
-
|
|
352
|
+
const taskWait = run && runs.listActiveWaits(updated.taskId).find((item) => item.taskRunId === run.id && item.condition.connectionWaitId === wait.id);
|
|
353
|
+
if (!run || run.status !== "waiting" || !taskWait || updated.parameters.taskRunId && updated.parameters.taskRunId !== run.id) throw new Error("Task is no longer waiting");
|
|
354
|
+
runs.resolveWait({
|
|
354
355
|
waitId: taskWait.id,
|
|
355
356
|
actor: { kind: "system" },
|
|
356
357
|
resolution: { connectionWaitId: wait.id }
|
|
357
358
|
});
|
|
359
|
+
if (!run.startedAt && !runs.setStatus({
|
|
360
|
+
runId: run.id,
|
|
361
|
+
expectedVersion: run.version,
|
|
362
|
+
from: ["waiting"],
|
|
363
|
+
to: "queued"
|
|
364
|
+
})) throw new Error("Task execution changed");
|
|
358
365
|
new TaskCollaborationRepository().append({
|
|
359
366
|
taskId: updated.taskId,
|
|
360
367
|
taskRunId: run.id,
|
|
@@ -383,63 +390,67 @@ function requirePersonalWorkerConnection(conversationId) {
|
|
|
383
390
|
if (readCurrentTranscriptId(db, request.conversationId) !== request.transcriptId) throw new Error("SESSION_CHANGED");
|
|
384
391
|
const run = request.taskId ? new TaskRunRepository().getActiveRoot(request.taskId) : void 0;
|
|
385
392
|
if (!run || run.conversationId !== conversationId) throw new Error("Task execution changed");
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
393
|
+
return waitForPersonalRequestConnection(request, run);
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
/** Caller owns the write transaction that binds the request and its run. */
|
|
397
|
+
function waitForPersonalRequestConnection(request, run) {
|
|
398
|
+
const principal = connectorPrincipalForSession(request.conversationId);
|
|
399
|
+
const result = requireSessionConnection({
|
|
400
|
+
conversationId: request.conversationId,
|
|
401
|
+
principalId: principal.principalId,
|
|
402
|
+
agentId: principal.agentId,
|
|
403
|
+
summary: request.objective,
|
|
404
|
+
origin: {
|
|
405
|
+
inputId: request.inputId,
|
|
406
|
+
runId: `personal-request:${request.requestId}`
|
|
407
|
+
},
|
|
408
|
+
needs: [{
|
|
409
|
+
...resolveConnectionCandidate(request.connectorId),
|
|
410
|
+
accountId: request.accountId,
|
|
411
|
+
unavailable: true
|
|
412
|
+
}],
|
|
413
|
+
checkpoint: {
|
|
414
|
+
completedSteps: [],
|
|
415
|
+
pendingSteps: [request.objective],
|
|
416
|
+
timeRange: request.parameters.timeRange
|
|
417
|
+
}
|
|
418
|
+
});
|
|
419
|
+
if (result.status !== "connection_required" || !result.waitId) throw new Error(`Connection request: ${result.status}`);
|
|
420
|
+
const runs = new TaskRunRepository();
|
|
421
|
+
if (!runs.listActiveWaits(run.taskId).some((wait) => wait.condition.connectionWaitId === result.waitId)) runs.createWait({
|
|
422
|
+
taskId: run.taskId,
|
|
423
|
+
taskRunId: run.id,
|
|
424
|
+
kind: "user_input",
|
|
425
|
+
reason: "Reconnect the selected app account",
|
|
426
|
+
condition: {
|
|
427
|
+
type: "connection",
|
|
428
|
+
connectionWaitId: result.waitId
|
|
429
|
+
}
|
|
430
|
+
});
|
|
431
|
+
if (run.status !== "waiting") runs.setStatus({
|
|
432
|
+
runId: run.id,
|
|
433
|
+
expectedVersion: run.version,
|
|
434
|
+
from: [run.status],
|
|
435
|
+
to: "waiting",
|
|
436
|
+
actor: { kind: "system" }
|
|
437
|
+
});
|
|
438
|
+
new TaskCollaborationRepository().append({
|
|
439
|
+
taskId: run.taskId,
|
|
440
|
+
taskRunId: run.id,
|
|
441
|
+
authorKind: "system",
|
|
442
|
+
authorId: "personal-request",
|
|
443
|
+
kind: "progress",
|
|
444
|
+
body: /[\u3400-\u9fff]/u.test(request.objective) ? "选定账户需要在主对话原连接界面重新授权。文字回答或补充指令不能解除此授权等待。" : "Selected app account needs reconnection in the existing main connection UI. This authorization wait cannot be resolved by a text answer or instruction.",
|
|
445
|
+
idempotencyKey: `personal-connection-wait:${result.waitId}`
|
|
446
|
+
});
|
|
447
|
+
return updatePersonalRequest(request, {
|
|
448
|
+
state: "waiting_connection",
|
|
449
|
+
connectionWaitId: result.waitId,
|
|
450
|
+
parameters: {
|
|
451
|
+
...request.parameters,
|
|
452
|
+
taskRunId: run.id
|
|
453
|
+
}
|
|
443
454
|
});
|
|
444
455
|
}
|
|
445
456
|
function personalRequestSnapshot(request) {
|
|
@@ -566,4 +577,4 @@ function publishPersonalRequest(request) {
|
|
|
566
577
|
publishConnectionWait(request.conversationId);
|
|
567
578
|
}
|
|
568
579
|
//#endregion
|
|
569
|
-
export { assertPersonalRequestTimeRange, cancelPersonalRequest, personalRequestSnapshot, publishPersonalRequest, requirePersonalWorkerConnection, resolvePersonalRequestConnection, stopPersonalRequestExecution, submitPersonalRequest };
|
|
580
|
+
export { assertPersonalRequestTimeRange, cancelPersonalRequest, personalRequestSnapshot, publishPersonalRequest, requirePersonalWorkerConnection, resolvePersonalRequestConnection, stopPersonalRequestExecution, submitPersonalRequest, waitForPersonalRequestConnection };
|
|
@@ -4,12 +4,12 @@ import { getSessionMetadata } from "../../storage/sqlite/session-read-repository
|
|
|
4
4
|
import { ensureSessionRecord } from "../../storage/sqlite/session-repository.js";
|
|
5
5
|
import "../../storage/sqlite/index.js";
|
|
6
6
|
import { ProjectWorkspaceConflictError, ProjectWorkspaceMissingError } from "../workspace-project.js";
|
|
7
|
-
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
8
|
-
import { defineAtomicCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
9
|
-
import { LocalAppMilestoneOutputSchema, LocalAppProgressOutputSchema, LocalAppProjectOutputSchema } from "../../local-apps/capabilities/projections.js";
|
|
10
7
|
import { ProjectDeletionBlockedError, ProjectWorkspaceInUseError, ProjectWorkspaceInvalidError } from "../project-service.js";
|
|
11
8
|
import { isValidProjectAgentId, normalizeProjectAgentId } from "../project-agent.js";
|
|
12
9
|
import { inferSuggestedProjectDefaultAgentId } from "../project-agent-suggestion.js";
|
|
10
|
+
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
11
|
+
import { defineAtomicCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
12
|
+
import { LocalAppMilestoneOutputSchema, LocalAppProgressOutputSchema, LocalAppProjectOutputSchema } from "../../local-apps/capabilities/projections.js";
|
|
13
13
|
//#region src/projects/capabilities/write.ts
|
|
14
14
|
init_src();
|
|
15
15
|
function projectMutation(execute) {
|
|
@@ -5,9 +5,9 @@ import { changedFieldsFromPatch, emitActivity, systemActivityActor, systemActivi
|
|
|
5
5
|
import { ProjectWorkspaceConflictError, ProjectWorkspaceMissingError, canonicalWorkspacePath, inferProjectNameFromWorkspaceRoot, isPathSameOrInsideWorkspace, isSafeAutoCreateWorkspaceRoot, resolveWorkspaceProjectRoot, workspaceDirectoryExists } from "./workspace-project.js";
|
|
6
6
|
import { ExecutionEnvironmentStore } from "../execution-environments/store.js";
|
|
7
7
|
import { ProjectStore } from "./project-store.js";
|
|
8
|
-
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
9
8
|
import { enqueueProjectChanged } from "./project-change-events.js";
|
|
10
9
|
import { drainProjectWorkspaceCreation, queueProjectWorkspaceCreation } from "./project-workspace-creation.js";
|
|
10
|
+
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
11
11
|
import { listPendingProjectUnderstandingRuns } from "../work-discovery/repository.js";
|
|
12
12
|
import { inferProjectExecutionMode } from "./project-kind.js";
|
|
13
13
|
import { bindSessionToProject, listProjectConversationIds, unbindSessionFromProject } from "./session-bind.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { init_paths, resolveBundledSkillsDir } from "../config/paths.js";
|
|
2
|
-
import { removeSkillsLockEntry } from "../agent/skills/hub-lock.js";
|
|
3
|
-
import { deleteManagedSkill, installSkillFromZip, isValidSkillId } from "../agent/skills/managed-store.js";
|
|
4
2
|
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "../agent/skills/workspace-skills-dir.js";
|
|
5
3
|
import { loadSkills, loadWorkspaceSkillInventory } from "../agent/skills/index.js";
|
|
4
|
+
import { removeSkillsLockEntry } from "../agent/skills/hub-lock.js";
|
|
5
|
+
import { deleteManagedSkill, installSkillFromZip, isValidSkillId } from "../agent/skills/managed-store.js";
|
|
6
6
|
import { pullSkillFromSource } from "../agent/skills/hub-pull.js";
|
|
7
7
|
import { downloadFromMarketplace } from "../agent/skills/skills-marketplace.js";
|
|
8
8
|
import { basename, dirname, join, relative, resolve, sep } from "node:path";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { HDC_VERSION, HOSCRCPY_VERSION, managedHdcDir, managedHdcPath, managedHosDir, managedHosJar, managedJavaDir, managedJavaHome } from "./harmony-paths.js";
|
|
2
|
-
import { PHONE_JAVA_VERSION } from "./harmony-dependency-catalog.js";
|
|
3
|
-
import { phoneDependencyAsset } from "./phone-dependency-catalog.js";
|
|
4
|
-
import { resolveHdcPath } from "../phone/hdc-driver.js";
|
|
5
|
-
import { compileHdcVideoBridge, resolveHdcJavaHome, resolveHdcVideoTools } from "../phone/hdc-video-tools.js";
|
|
6
1
|
import { RuntimeError } from "./errors.js";
|
|
7
2
|
import { extractRuntimeArchive } from "./archive.js";
|
|
8
3
|
import { runRuntimeCommand } from "./command.js";
|
|
9
4
|
import { downloadVerifiedArchive, sha256File } from "./downloader.js";
|
|
10
5
|
import { withInstallLock } from "./install-lock.js";
|
|
11
6
|
import { runtimeDownloadPath } from "./paths.js";
|
|
7
|
+
import { HDC_VERSION, HOSCRCPY_VERSION, managedHdcDir, managedHdcPath, managedHosDir, managedHosJar, managedJavaDir, managedJavaHome } from "./harmony-paths.js";
|
|
8
|
+
import { PHONE_JAVA_VERSION } from "./harmony-dependency-catalog.js";
|
|
9
|
+
import { phoneDependencyAsset } from "./phone-dependency-catalog.js";
|
|
10
|
+
import { resolveHdcPath } from "../phone/hdc-driver.js";
|
|
11
|
+
import { compileHdcVideoBridge, resolveHdcJavaHome, resolveHdcVideoTools } from "../phone/hdc-video-tools.js";
|
|
12
12
|
import { stageHdcFiles, verifyHdcFiles } from "./hdc-files.js";
|
|
13
13
|
import { dirname, isAbsolute, join } from "node:path";
|
|
14
14
|
import { randomUUID } from "node:crypto";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { HDC_DISTRIBUTION } from "./hdc-dependency-catalog.js";
|
|
2
1
|
import { RuntimeError } from "./errors.js";
|
|
3
2
|
import { downloadVerifiedArchive, sha256File } from "./downloader.js";
|
|
4
3
|
import { runtimeDownloadPath } from "./paths.js";
|
|
4
|
+
import { HDC_DISTRIBUTION } from "./hdc-dependency-catalog.js";
|
|
5
5
|
import { basename, isAbsolute, join } from "node:path";
|
|
6
6
|
import { chmod, copyFile, mkdir, stat, writeFile } from "node:fs/promises";
|
|
7
7
|
//#region src/runtime-tools/hdc-files.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ADB_VERSION, SCRCPY_VERSION, managedPhoneAdbDir, managedPhoneAdbPath, managedScrcpyServerPath, phoneDependencyAsset } from "./phone-dependency-catalog.js";
|
|
2
|
-
import { resolveAdbPath } from "../phone/adb-driver.js";
|
|
3
1
|
import { RuntimeError } from "./errors.js";
|
|
4
2
|
import { extractRuntimeArchive } from "./archive.js";
|
|
5
3
|
import { runRuntimeCommand } from "./command.js";
|
|
6
4
|
import { downloadVerifiedArchive, sha256File } from "./downloader.js";
|
|
7
5
|
import { withInstallLock } from "./install-lock.js";
|
|
8
6
|
import { runtimeDownloadPath } from "./paths.js";
|
|
7
|
+
import { ADB_VERSION, SCRCPY_VERSION, managedPhoneAdbDir, managedPhoneAdbPath, managedScrcpyServerPath, phoneDependencyAsset } from "./phone-dependency-catalog.js";
|
|
8
|
+
import { resolveAdbPath } from "../phone/adb-driver.js";
|
|
9
9
|
import { HarmonyDependencyManager } from "./harmony-dependencies.js";
|
|
10
10
|
import { dirname, isAbsolute, join } from "node:path";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
@@ -5,12 +5,12 @@ import { TaskRepository, init_task_repository } from "../task-repository.js";
|
|
|
5
5
|
import { init_task_result_versions, listTaskResultVersions } from "../task-result-versions.js";
|
|
6
6
|
import { TaskRunRepository, init_task_run_repository } from "../task-run-repository.js";
|
|
7
7
|
import { TaskCriterionReviewRepository } from "../task-criterion-review-repository.js";
|
|
8
|
+
import { TaskContextRepository } from "../task-context-repository.js";
|
|
8
9
|
import { TaskReadModelProjector } from "../task-read-model-projector.js";
|
|
9
10
|
import { TaskConversationRepository } from "../task-conversation-repository.js";
|
|
10
11
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
11
12
|
import { defineReadCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
12
13
|
import { LocalAppTaskListSchema, LocalAppTaskOutputSchema } from "../../local-apps/capabilities/projections.js";
|
|
13
|
-
import { TaskContextRepository } from "../task-context-repository.js";
|
|
14
14
|
import { TaskDependencyService } from "../task-dependency-service.js";
|
|
15
15
|
import { TaskValueMetricsService } from "../task-value-metrics-service.js";
|
|
16
16
|
import { listDeliverables } from "../task-deliverables.js";
|
|
@@ -3,9 +3,9 @@ import { TaskContextEdgeSchema, TaskContextInputSchema, TaskDependencySummarySch
|
|
|
3
3
|
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
|
+
import { TaskContextRepository } from "../task-context-repository.js";
|
|
6
7
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
7
8
|
import { defineAtomicCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
8
|
-
import { TaskContextRepository } from "../task-context-repository.js";
|
|
9
9
|
import { TaskDependencyError, TaskDependencyService } from "../task-dependency-service.js";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
//#region src/tasks/capabilities/relations.ts
|
|
@@ -182,8 +182,8 @@ export declare const TaskMutationOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
182
182
|
ok: z.ZodLiteral<false>;
|
|
183
183
|
reason: z.ZodEnum<{
|
|
184
184
|
blocked: "blocked";
|
|
185
|
-
conflict: "conflict";
|
|
186
185
|
not_found: "not_found";
|
|
186
|
+
conflict: "conflict";
|
|
187
187
|
invalid_transition: "invalid_transition";
|
|
188
188
|
}>;
|
|
189
189
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -5,10 +5,10 @@ import { TaskRepository, init_task_repository } from "../task-repository.js";
|
|
|
5
5
|
import { TaskRunRepository, init_task_run_repository } from "../task-run-repository.js";
|
|
6
6
|
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
7
7
|
import { resolveTaskLocale } from "../task-language.js";
|
|
8
|
+
import { resolveProjectAgentId } from "../../projects/project-agent.js";
|
|
8
9
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
9
10
|
import { defineAtomicCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
10
11
|
import { LocalAppTaskMutationSchema } from "../../local-apps/capabilities/projections.js";
|
|
11
|
-
import { resolveProjectAgentId } from "../../projects/project-agent.js";
|
|
12
12
|
import { TaskApplicationService } from "../task-application-service.js";
|
|
13
13
|
import { TaskSignalService } from "../task-signal-service.js";
|
|
14
14
|
import { resolveResponseLanguageForSession } from "../../agent/prompt/response-language.js";
|
package/dist/src/tasks/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { enqueueTaskAttentionRequiredEvent, enqueueTaskChanged, enqueueTaskChangedEvent, init_task_change_events } from "./task-change-events.js";
|
|
2
2
|
import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
3
3
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
4
|
+
import { TaskContextRepository } from "./task-context-repository.js";
|
|
4
5
|
import { TaskReadModelProjector } from "./task-read-model-projector.js";
|
|
5
6
|
import { TaskConversationConflictError, TaskConversationRepository } from "./task-conversation-repository.js";
|
|
6
|
-
import { TaskContextRepository } from "./task-context-repository.js";
|
|
7
7
|
import { TaskDependencyError, TaskDependencyService } from "./task-dependency-service.js";
|
|
8
8
|
import { TaskValueMetricsService } from "./task-value-metrics-service.js";
|
|
9
9
|
import { TaskApplicationService } from "./task-application-service.js";
|
|
@@ -14,12 +14,12 @@ import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
|
14
14
|
import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
|
|
15
15
|
import { hasUnlocalizedTaskText, resolveTaskLocale } from "./task-language.js";
|
|
16
16
|
import { TaskAllocationRepository } from "./task-allocation-repository.js";
|
|
17
|
-
import {
|
|
17
|
+
import { personalCapabilities } from "../personal-agent/capability-service.js";
|
|
18
18
|
import { getTaskHandoff, resolveTaskHandoffReferences } from "./task-handoff.js";
|
|
19
|
+
import { assessTaskExecutor, captureExecutionRequirements, taskExecutionRequirements } from "./task-execution-capabilities.js";
|
|
20
|
+
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
19
21
|
import { TaskApplicationService } from "./task-application-service.js";
|
|
20
22
|
import { defineTaskContract } from "./task-contract-definition.js";
|
|
21
|
-
import { personalCapabilities } from "../personal-agent/capability-service.js";
|
|
22
|
-
import { assessTaskExecutor, captureExecutionRequirements, taskExecutionRequirements } from "./task-execution-capabilities.js";
|
|
23
23
|
import { ModelTaskContractPlanner } from "./task-contract-planner.js";
|
|
24
24
|
import { taskJsonAcceptance } from "./task-json-acceptance.js";
|
|
25
25
|
import { supersededTaskInstructionIds } from "./task-research-result.js";
|
|
@@ -16,6 +16,12 @@ export type TaskRevisionApplicationResult = TaskApplicationResult | {
|
|
|
16
16
|
reason: 'invalid_reference';
|
|
17
17
|
model: TaskReadModel;
|
|
18
18
|
};
|
|
19
|
+
type TaskRunRetry = {
|
|
20
|
+
runId: string;
|
|
21
|
+
readOnly: boolean;
|
|
22
|
+
originalRequestAt?: number;
|
|
23
|
+
decisionWaitIds: string[];
|
|
24
|
+
};
|
|
19
25
|
export declare class TaskApplicationService {
|
|
20
26
|
#private;
|
|
21
27
|
create(input: TaskCreateRequest, actor?: ActorRef, options?: {
|
|
@@ -42,6 +48,7 @@ export declare class TaskApplicationService {
|
|
|
42
48
|
actor?: ActorRef;
|
|
43
49
|
triggerContext?: Record<string, unknown>;
|
|
44
50
|
source?: TaskChangeSource;
|
|
51
|
+
retry?: TaskRunRetry;
|
|
45
52
|
}): TaskApplicationResult;
|
|
46
53
|
completeRun(input: {
|
|
47
54
|
runId: string;
|
|
@@ -65,3 +72,4 @@ export declare class TaskApplicationService {
|
|
|
65
72
|
private readCommand;
|
|
66
73
|
private enqueueEvent;
|
|
67
74
|
}
|
|
75
|
+
export {};
|