@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
|
@@ -28,6 +28,11 @@ import { extractTextContent } from "./context/workspace.js";
|
|
|
28
28
|
import { runPersistentLearningJob } from "./background-review/run-background-review.js";
|
|
29
29
|
import { applyConfigOverrides } from "../config/runtime-overrides.js";
|
|
30
30
|
import { isPersonalConversation } from "../personal-agent/repository.js";
|
|
31
|
+
import { createSkillConfigManager, isSkillEnabled, resolveSkillConfig } from "./skills/config.js";
|
|
32
|
+
import { isValidSkillEnvVarName } from "./skills/required-env-vars.js";
|
|
33
|
+
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "./skills/workspace-skills-dir.js";
|
|
34
|
+
import { loadSkillsLock } from "./skills/hub-lock.js";
|
|
35
|
+
import { isUnderManagedSkillsDir } from "./skills/managed-store.js";
|
|
31
36
|
import { PersonalPromptContext } from "../personal-agent/prompt-context.js";
|
|
32
37
|
import { getEmbeddedExecutionRunId } from "./embedded/execution-context.js";
|
|
33
38
|
import { abortEmbeddedRun } from "./embedded/runs.js";
|
|
@@ -35,11 +40,6 @@ import { resolveExecutionToolPolicy } from "./embedded/execution-tool-policy.js"
|
|
|
35
40
|
import { buildExecutionScopeContextForPrompt } from "./context/execution-scope.js";
|
|
36
41
|
import { clearBootstrapSnapshot } from "./bootstrap/bootstrap-cache.js";
|
|
37
42
|
import { resolveBootstrapContextSync } from "./bootstrap/bootstrap-files.js";
|
|
38
|
-
import { loadSkillsLock } from "./skills/hub-lock.js";
|
|
39
|
-
import { isUnderManagedSkillsDir } from "./skills/managed-store.js";
|
|
40
|
-
import { createSkillConfigManager, isSkillEnabled, resolveSkillConfig } from "./skills/config.js";
|
|
41
|
-
import { isValidSkillEnvVarName } from "./skills/required-env-vars.js";
|
|
42
|
-
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "./skills/workspace-skills-dir.js";
|
|
43
43
|
import { createAgentTurnPolicy } from "./orchestration/agent-turn-policy.js";
|
|
44
44
|
import { createAgentCapabilitySessionState, resolveAgentCapabilityCatalog } from "./capabilities/registry.js";
|
|
45
45
|
import "./capabilities/index.js";
|
|
@@ -300,6 +300,7 @@ var AgentManager = class {
|
|
|
300
300
|
getChatPreviewService: this.config.getChatPreviewService,
|
|
301
301
|
dispatchTaskEvents: this.config.dispatchTaskEvents,
|
|
302
302
|
dispatchTaskRuns: this.config.dispatchTaskRuns,
|
|
303
|
+
retryTask: this.config.retryTask,
|
|
303
304
|
onAgentCatalogMutate: this.config.onAgentCatalogMutate,
|
|
304
305
|
getSkillIndexingContext: () => {
|
|
305
306
|
const ctx = this.config.getCurrentContext?.();
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { getXopcDatabase, init_connection, isXopcDatabaseOpen } from "../../storage/sqlite/connection.js";
|
|
2
|
+
import { TaskRunRepository, init_task_run_repository } from "../../tasks/task-run-repository.js";
|
|
2
3
|
import { init_request_repository, personalRequestForExecution } from "../../personal-agent/request-repository.js";
|
|
3
4
|
import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
|
|
4
5
|
import { init_session_repository } from "../../storage/sqlite/session-repository.js";
|
|
5
6
|
import { getExecutionAuthority } from "../../infra/execution-authority.js";
|
|
6
7
|
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
8
|
+
import { allowsReadOnlyRetryTool } from "../../tasks/task-retry-policy.js";
|
|
7
9
|
import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
|
|
8
10
|
import { getSessionInteractionPolicy } from "../session/interaction-policy-state.js";
|
|
9
11
|
import { isReadOnlySessionTool } from "../session/interaction-policy.js";
|
|
@@ -12,6 +14,7 @@ import { PERSONAL_MAIN_TOOL_IDS } from "../../personal-agent/policy.js";
|
|
|
12
14
|
init_request_repository();
|
|
13
15
|
init_connection();
|
|
14
16
|
init_session_repository();
|
|
17
|
+
init_task_run_repository();
|
|
15
18
|
const TASK_EXECUTION_TOOL_IDS = ["task_collaboration", "publish_task_result"];
|
|
16
19
|
const PERSONAL_REQUEST_TOOL_IDS = [
|
|
17
20
|
"tool_search",
|
|
@@ -32,22 +35,24 @@ function resolveExecutionToolPolicy(conversationId) {
|
|
|
32
35
|
const interaction = getSessionInteractionPolicy(conversationId);
|
|
33
36
|
const readOnly = interaction.mode === "plan" || interaction.access === "read-only";
|
|
34
37
|
const taskSession = isXopcDatabaseOpen() ? new TaskConversationRepository().resolveActiveExecutionSession(conversationId) : void 0;
|
|
38
|
+
const readOnlyRetry = Boolean(taskSession?.runId && new TaskRunRepository().get(taskSession.runId)?.trigger.readOnlyRetry === true);
|
|
35
39
|
const followUp = Boolean(taskSession && getXopcDatabase().db.prepare("SELECT 1 FROM home_followup_steps WHERE task_id=? UNION ALL SELECT 1 FROM home_followups WHERE root_task_id=? LIMIT 1").get(taskSession.taskId, taskSession.taskId));
|
|
36
40
|
const privateRoutine = followUp || Boolean(taskSession && getXopcDatabase().db.prepare(`SELECT 1 FROM observation_routine_executions WHERE task_id=?
|
|
37
41
|
UNION ALL SELECT 1 FROM observation_methods WHERE validation_task_id=?
|
|
38
42
|
UNION ALL SELECT 1 FROM home_observation_trials WHERE task_id=? LIMIT 1`).get(taskSession.taskId, taskSession.taskId, taskSession.taskId));
|
|
39
|
-
const unrestricted = !privateRoutine && configured && !readOnly && (!authority || authority.unrestrictedTools);
|
|
43
|
+
const unrestricted = !privateRoutine && configured && !readOnly && !readOnlyRetry && (!authority || authority.unrestrictedTools);
|
|
40
44
|
return {
|
|
41
45
|
surface,
|
|
42
46
|
taskExecution: Boolean(taskSession),
|
|
43
47
|
privateRoutine,
|
|
44
48
|
followUp,
|
|
45
49
|
readOnly,
|
|
50
|
+
readOnlyRetry,
|
|
46
51
|
nativeMcp: unrestricted,
|
|
47
52
|
externalMaterialization: unrestricted,
|
|
48
53
|
discovery: unrestricted,
|
|
49
54
|
codemode: unrestricted,
|
|
50
|
-
revision: `unified-tool-discovery-v1:${interaction.mode}:${interaction.access}:${interaction.sandbox ?? "configured"}:${interaction.network ?? false}:${authority?.revision ?? ""}:${privateRoutine ? "private-routine" : ""}`
|
|
55
|
+
revision: `unified-tool-discovery-v1:${interaction.mode}:${interaction.access}:${interaction.sandbox ?? "configured"}:${interaction.network ?? false}:${authority?.revision ?? ""}:${privateRoutine ? "private-routine" : ""}:${readOnlyRetry}`
|
|
51
56
|
};
|
|
52
57
|
}
|
|
53
58
|
function allowsExecutionTool(policy, name) {
|
|
@@ -55,6 +60,7 @@ function allowsExecutionTool(policy, name) {
|
|
|
55
60
|
authority?.assertCurrent();
|
|
56
61
|
if (policy.privateRoutine && !PRIVATE_ROUTINE_TOOLS.has(name) && !(policy.followUp && name === "task_collaboration")) return false;
|
|
57
62
|
if (policy.readOnly && !isReadOnlySessionTool(name)) return false;
|
|
63
|
+
if (policy.readOnlyRetry && !allowsReadOnlyRetryTool(name)) return false;
|
|
58
64
|
if (authority && !authority.allowsTool(name)) return false;
|
|
59
65
|
if (TASK_EXECUTION_TOOL_IDS.includes(name) && !policy.taskExecution) return false;
|
|
60
66
|
if (policy.surface === "agent") return !name.startsWith("personal_");
|
|
@@ -6,14 +6,14 @@ import { appendConnectorExecutionAudit, consumeConnectorApproval, createConnecto
|
|
|
6
6
|
import { connectorObjectiveScope, init_connection_wait_repository, publishConnectionWait, requireSessionConnection } from "../../storage/sqlite/connection-wait-repository.js";
|
|
7
7
|
import "../../storage/sqlite/index.js";
|
|
8
8
|
import { connectorArgumentsHash, connectorArgumentsPreview } from "../../connectors/approval.js";
|
|
9
|
+
import { getCliAdapter } from "../../connectors/cli/adapterRegistry.js";
|
|
10
|
+
import { evaluateConnectorExecutionPolicy } from "../../connectors/policy.js";
|
|
9
11
|
import { connectorPrincipalForSession } from "../../connectors/principal.js";
|
|
10
12
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
11
13
|
import { ExternalEffectNotAppliedError, executeExternalOperation } from "../../capabilities/runtime/external-operations.js";
|
|
12
14
|
import "../../capabilities/runtime/dispatcher.js";
|
|
13
15
|
import { selectConnectorAccount } from "../../connectors/account-selection.js";
|
|
14
16
|
import { cliContextPath } from "../../connectors/cli/process.js";
|
|
15
|
-
import { getCliAdapter } from "../../connectors/cli/adapterRegistry.js";
|
|
16
|
-
import { evaluateConnectorExecutionPolicy } from "../../connectors/policy.js";
|
|
17
17
|
import { listConnectorInstances } from "../../connectors/instances.js";
|
|
18
18
|
import { cliOwnerId, recoverCliExecutions } from "../../connectors/cli/store.js";
|
|
19
19
|
import { validateActionInput } from "../../connectors/cli/protocol.js";
|
|
@@ -7,14 +7,14 @@ import { bindObjectiveAccount, connectionBinding, connectionBindings, connectorO
|
|
|
7
7
|
import "../../storage/sqlite/index.js";
|
|
8
8
|
import { connectorArgumentsHash, connectorArgumentsPreview } from "../../connectors/approval.js";
|
|
9
9
|
import { canAccessConnectorAccount, currentAccountConnections } from "../../connectors/account-access.js";
|
|
10
|
-
import { connectorPrincipalForSession } from "../../connectors/principal.js";
|
|
11
|
-
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
12
|
-
import { ExternalEffectNotAppliedError, executeExternalOperation } from "../../capabilities/runtime/external-operations.js";
|
|
13
10
|
import { connectorIdentitySummary } from "../../connectors/connector-identity.js";
|
|
14
11
|
import { evaluateConnectorExecutionPolicy } from "../../connectors/policy.js";
|
|
15
12
|
import { ComposioSessionsAdapter } from "../../connectors/composio-sessions.js";
|
|
16
13
|
import { getComposioToolkitScope, getConfiguredComposioAuthConfigs, isComposioActionAllowedByCatalog, scopeForComposioAction } from "../../connectors/composio.js";
|
|
17
14
|
import { getConnectorDefinition } from "../../connectors/catalog.js";
|
|
15
|
+
import { connectorPrincipalForSession } from "../../connectors/principal.js";
|
|
16
|
+
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
17
|
+
import { ExternalEffectNotAppliedError, executeExternalOperation } from "../../capabilities/runtime/external-operations.js";
|
|
18
18
|
import { listConnectorInstances } from "../../connectors/instances.js";
|
|
19
19
|
import { externalToolRef, parseExternalToolRef } from "./refs.js";
|
|
20
20
|
import { isToolInputSchema } from "../../connectors/connection-capabilities.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { connectionBindings, getActiveConnectionWait, init_connection_wait_repository } from "../../storage/sqlite/connection-wait-repository.js";
|
|
2
|
-
import { searchStoreConnectorInstallCandidates } from "../../capabilities/store-connector.js";
|
|
3
2
|
import { connectionCandidates } from "../../connectors/connection-candidates.js";
|
|
3
|
+
import { searchStoreConnectorInstallCandidates } from "../../capabilities/store-connector.js";
|
|
4
4
|
import { EXTERNAL_TOOL_SOURCES } from "./types.js";
|
|
5
5
|
//#region src/agent/external-tools/discovery.ts
|
|
6
6
|
init_connection_wait_repository();
|
|
@@ -5,6 +5,7 @@ import { getConnectorConnection, getConnectorInstallation, init_connector_reposi
|
|
|
5
5
|
import { connectionBindings, init_connection_wait_repository, publishConnectionWait, requireSessionConnection, reviseCurrentConnectionObjective } from "../../storage/sqlite/connection-wait-repository.js";
|
|
6
6
|
import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
|
|
7
7
|
import { init_session_repository } from "../../storage/sqlite/session-repository.js";
|
|
8
|
+
import { resolveConnectionCandidate } from "../../connectors/connection-candidates.js";
|
|
8
9
|
import { connectorPrincipalForSession } from "../../connectors/principal.js";
|
|
9
10
|
import { setXopcToolMetadata } from "../embedded/tool-metadata.js";
|
|
10
11
|
import { listConnectorInstances } from "../../connectors/instances.js";
|
|
@@ -12,7 +13,6 @@ import { parseExternalToolRef } from "./refs.js";
|
|
|
12
13
|
import { getStoreConnectorInstallPlan, parseStoreConnectorCandidateRef } from "../../capabilities/store-connector.js";
|
|
13
14
|
import { createPersonalRequestExecutionAuthorizer } from "../../personal-agent/request-access.js";
|
|
14
15
|
import { resolvePluginConnectionCandidate } from "../../connectors/plugin-connection.js";
|
|
15
|
-
import { resolveConnectionCandidate } from "../../connectors/connection-candidates.js";
|
|
16
16
|
import { ExternalToolService } from "./service.js";
|
|
17
17
|
import { EXTERNAL_TOOL_SOURCES } from "./types.js";
|
|
18
18
|
import { discoverExternalTools } from "./discovery.js";
|
|
@@ -26,7 +26,7 @@ export declare class McpConnectionDrafts {
|
|
|
26
26
|
conflict?: boolean;
|
|
27
27
|
}>;
|
|
28
28
|
});
|
|
29
|
-
create(owner: string, input: McpDraftInput): Promise<{
|
|
29
|
+
create(owner: string, input: McpDraftInput, bearerToken?: string): Promise<{
|
|
30
30
|
id: `${string}-${string}-${string}-${string}-${string}`;
|
|
31
31
|
serverId: string;
|
|
32
32
|
expiresAt: number;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { McpServerSchema, init_schema } from "../../config/schema.js";
|
|
2
|
+
import { CredentialResolver, init_credentials } from "../../auth/credentials.js";
|
|
2
3
|
import { getWorkspacePath } from "../../config/workspace-path-helpers.js";
|
|
4
|
+
import { createConnectorSecretReference } from "../../connectors/secret-store.js";
|
|
3
5
|
import { isManagedConnectorServer } from "../../connectors/materialize.js";
|
|
4
6
|
import { createNativeMcpCredentials } from "./credential-store.js";
|
|
5
7
|
import { loadMergedMcpConfig } from "./config.js";
|
|
@@ -7,6 +9,7 @@ import { discoverMcpTools } from "./tool-catalog.js";
|
|
|
7
9
|
import { cancelMcpAuthorization, getMcpAuthorization, probeMcpConnection, startMcpAuthorization, submitMcpRedirect } from "./connection-setup.js";
|
|
8
10
|
import { createHash, randomUUID } from "node:crypto";
|
|
9
11
|
//#region src/agent/mcp/connection-drafts.ts
|
|
12
|
+
init_credentials();
|
|
10
13
|
init_schema();
|
|
11
14
|
const TTL_MS = 10 * 6e4;
|
|
12
15
|
function canonical(value) {
|
|
@@ -30,7 +33,7 @@ var McpConnectionDrafts = class {
|
|
|
30
33
|
constructor(options) {
|
|
31
34
|
this.options = options;
|
|
32
35
|
}
|
|
33
|
-
async create(owner, input) {
|
|
36
|
+
async create(owner, input, bearerToken) {
|
|
34
37
|
const current = this.options.readConfig();
|
|
35
38
|
if (!/^[a-zA-Z0-9_-]+$/.test(input.serverId) || input.sourceServerId && input.sourceServerId !== input.serverId) throw new McpDraftError(400, "Invalid or changed MCP server ID.");
|
|
36
39
|
const source = Object.hasOwn(current.mcp?.servers ?? {}, input.serverId) ? current.mcp?.servers?.[input.serverId] : void 0;
|
|
@@ -51,7 +54,8 @@ var McpConnectionDrafts = class {
|
|
|
51
54
|
const config = structuredClone(current);
|
|
52
55
|
config.mcp = { servers: { [input.serverId]: {
|
|
53
56
|
...server,
|
|
54
|
-
enabled: true
|
|
57
|
+
enabled: true,
|
|
58
|
+
...bearerToken ? { headers: { Authorization: `Bearer ${bearerToken}` } } : {}
|
|
55
59
|
} } };
|
|
56
60
|
const credentials = await createNativeMcpCredentials(true);
|
|
57
61
|
if (this.drafts.size >= 100 || [...this.drafts.values()].filter((draft) => draft.owner === owner).length >= 8) throw new McpDraftError(429, "Too many unsaved MCP connection tests.");
|
|
@@ -71,6 +75,7 @@ var McpConnectionDrafts = class {
|
|
|
71
75
|
server,
|
|
72
76
|
config,
|
|
73
77
|
credentials,
|
|
78
|
+
bearerToken,
|
|
74
79
|
controller: new AbortController(),
|
|
75
80
|
timer,
|
|
76
81
|
expiresAt: Date.now() + TTL_MS,
|
|
@@ -184,10 +189,17 @@ var McpConnectionDrafts = class {
|
|
|
184
189
|
draft.committing = true;
|
|
185
190
|
let alias;
|
|
186
191
|
let durable;
|
|
192
|
+
let bearerProvider;
|
|
187
193
|
let published = false;
|
|
188
194
|
try {
|
|
189
195
|
const server = structuredClone(draft.server);
|
|
190
196
|
if (enable) server.enabled = true;
|
|
197
|
+
if (draft.bearerToken) {
|
|
198
|
+
const reference = createConnectorSecretReference(`mcp-draft-${id}`, "token", { prefix: "Bearer " });
|
|
199
|
+
bearerProvider = reference.xopcSecretRef.provider;
|
|
200
|
+
await new CredentialResolver().saveApiKey(bearerProvider, draft.bearerToken);
|
|
201
|
+
server.headers = { Authorization: reference };
|
|
202
|
+
}
|
|
191
203
|
if (typeof server.url === "string") {
|
|
192
204
|
const state = await draft.credentials.forServer(draft.serverId, server.url).load();
|
|
193
205
|
const candidateAlias = `mcp_draft_${randomUUID().replaceAll("-", "")}`;
|
|
@@ -240,6 +252,7 @@ var McpConnectionDrafts = class {
|
|
|
240
252
|
draft.committing = false;
|
|
241
253
|
if (alias && this.options.readConfig().mcp?.servers?.[draft.serverId]?.xopcOAuthCredentialId === alias) published = true;
|
|
242
254
|
if (!published && alias && durable && typeof draft.server.url === "string") durable.remove(alias, draft.server.url);
|
|
255
|
+
if (!published && bearerProvider) await new CredentialResolver().deleteProfile(`${bearerProvider}:default`);
|
|
243
256
|
if (this.drafts.has(id) && draft.expiresAt <= Date.now()) this.dispose(draft);
|
|
244
257
|
}
|
|
245
258
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AgentPluginStore } from "../../extensions/agent-plugins/store.js";
|
|
2
2
|
import { isExcludedStoreConnector, preferredStorePlugin } from "../../connectors/excluded-connectors.js";
|
|
3
3
|
import { getConnectorDefinition, listConnectorCatalog } from "../../connectors/catalog.js";
|
|
4
|
-
import {
|
|
4
|
+
import { connectionCandidates } from "../../connectors/connection-candidates.js";
|
|
5
5
|
import { listIntegrationPackages, resolveExtensionsStoreBaseUrl, resolveSkillsStoreBaseUrl } from "../skills/marketplace/adapters/store/store-api-client.js";
|
|
6
|
+
import { listConnectorInstances } from "../../connectors/instances.js";
|
|
6
7
|
import { storeConnectorCandidateRef } from "../../capabilities/store-connector.js";
|
|
7
|
-
import { connectionCandidates } from "../../connectors/connection-candidates.js";
|
|
8
8
|
//#region src/agent/mcp/managed-discovery.ts
|
|
9
9
|
function matches(serviceName, ...names) {
|
|
10
10
|
const normalize = (name) => name.toLowerCase().replace(/[^\p{L}\p{N}]/gu, "");
|
|
@@ -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 { getExecutionAuthority } from "../../infra/execution-authority.js";
|
|
4
|
-
import { validatePath, validateWritePath } from "./path-policy.js";
|
|
5
4
|
import { prepareSafeToolEnv } from "./sanitize-env-vars.js";
|
|
5
|
+
import { validatePath, validateWritePath } from "./path-policy.js";
|
|
6
6
|
import { getDelegationScope } from "../orchestration/delegation-scope.js";
|
|
7
7
|
import { auditCommand, validateCommand } from "./command-validator.js";
|
|
8
8
|
import { DEFAULT_SANDBOX_CONFIG } from "./types.js";
|
|
@@ -14,14 +14,14 @@ import { applyConfigOverrides } from "../config/runtime-overrides.js";
|
|
|
14
14
|
import { effectiveWorkspacePathForSession } from "../session/session-workspace.js";
|
|
15
15
|
import { getProjectForSession } from "../projects/workspace.js";
|
|
16
16
|
import { onSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
17
|
-
import { persistInboundAttachments } from "../channels/attachments/inbound-persist.js";
|
|
18
|
-
import { buildTranscriptUserMessage, hydrateUserTurnForLlm } from "./inbound/attachment-pipeline.js";
|
|
19
|
-
import { runWithEmbeddedExecutionSession } from "./embedded/execution-context.js";
|
|
20
17
|
import "../user-model/index.js";
|
|
18
|
+
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "./skills/workspace-skills-dir.js";
|
|
21
19
|
import { removeSkillsLockEntry } from "./skills/hub-lock.js";
|
|
22
20
|
import { installSkillFromZip } from "./skills/managed-store.js";
|
|
23
|
-
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "./skills/workspace-skills-dir.js";
|
|
24
21
|
import { pullSkillFromSource } from "./skills/hub-pull.js";
|
|
22
|
+
import { persistInboundAttachments } from "../channels/attachments/inbound-persist.js";
|
|
23
|
+
import { buildTranscriptUserMessage, hydrateUserTurnForLlm } from "./inbound/attachment-pipeline.js";
|
|
24
|
+
import { runWithEmbeddedExecutionSession } from "./embedded/execution-context.js";
|
|
25
25
|
import { resolveResponseLanguageForSession } from "./prompt/response-language.js";
|
|
26
26
|
import { normalizeSkillInstallTarget } from "./skills/install-target.js";
|
|
27
27
|
import { drainEmbeddedSessionRunnerShutdowns } from "./embedded/session-runner.js";
|
|
@@ -248,6 +248,7 @@ var AgentService = class {
|
|
|
248
248
|
getChatPreviewService: config.getChatPreviewService,
|
|
249
249
|
dispatchTaskEvents: config.dispatchTaskEvents,
|
|
250
250
|
dispatchTaskRuns: config.dispatchTaskRuns,
|
|
251
|
+
retryTask: config.retryTask,
|
|
251
252
|
onAgentCatalogMutate: config.onAgentCatalogMutate,
|
|
252
253
|
onSkillsUpdated: config.onSkillsUpdated,
|
|
253
254
|
installSkillFromSource: (opts) => this.installSkillFromSource(opts),
|
|
@@ -43,6 +43,7 @@ export interface AgentServiceConfig {
|
|
|
43
43
|
getChatPreviewService?: () => ChatPreviewService | undefined;
|
|
44
44
|
dispatchTaskEvents?: () => void;
|
|
45
45
|
dispatchTaskRuns?: () => void;
|
|
46
|
+
retryTask?: (input: import('../tasks/task-retry-service.js').TaskRetryInput) => Promise<import('@xopcai/gateway-contract').TaskRetryResult>;
|
|
46
47
|
/** Gateway: refresh runtime state and notify clients after a conversational Agent mutation. */
|
|
47
48
|
onAgentCatalogMutate?: () => void;
|
|
48
49
|
/**
|
|
@@ -2,10 +2,10 @@ 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, resolveSkillsDir } from "../../config/paths.js";
|
|
5
|
-
import { isManagedSkillTransientDirName } from "./managed-store.js";
|
|
6
5
|
import { createSkillConfigManager } from "./config.js";
|
|
7
6
|
import { resolveWorkspaceSkillsDir } from "./workspace-skills-dir.js";
|
|
8
7
|
import { resolveAgentsSkillsDir, resolveWorkspaceAgentsSkillsDir } from "./skill-sources.js";
|
|
8
|
+
import { isManagedSkillTransientDirName } from "./managed-store.js";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import chokidar from "chokidar";
|
|
11
11
|
//#region src/agent/skills/filesystem-watcher.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { parseFrontmatter } from "../../markdown/frontmatter.js";
|
|
2
|
-
import { getSkillsLockEntry, recordSkillsHubInstall } from "./hub-lock.js";
|
|
3
|
-
import { installSkillFromZip, isIgnorableZipEntry, isValidSkillId, prepareManagedSkillTempDir, promoteManagedSkillTempDir } from "./managed-store.js";
|
|
4
2
|
import { formatScanSummary, scanSkillDirectory } from "./scanner.js";
|
|
5
3
|
import { computeSkillTreeHashSync } from "./hub-hash.js";
|
|
4
|
+
import { getSkillsLockEntry, recordSkillsHubInstall } from "./hub-lock.js";
|
|
5
|
+
import { installSkillFromZip, isIgnorableZipEntry, isValidSkillId, prepareManagedSkillTempDir, promoteManagedSkillTempDir } from "./managed-store.js";
|
|
6
6
|
import { tmpdir } from "node:os";
|
|
7
7
|
import { basename, dirname, join, normalize, resolve, sep } from "node:path";
|
|
8
8
|
import { cpSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { downloadSkillZipBuffer, fetchMarketplacePackageDetail, listSkillCategories, listSkillPackages, resolveSkillZipDownloadUrl, resolveSkillsStoreBaseUrl, skillIdForMarketplaceInstall, verifyStoreArtifactSha256 } from "./store-api-client.js";
|
|
2
1
|
import { registerMarketplaceAdapter } from "../../registry.js";
|
|
3
2
|
import { buildSkillMarkdownPreviewFromRaw } from "../../../skill-markdown-preview-from-raw.js";
|
|
3
|
+
import { downloadSkillZipBuffer, fetchMarketplacePackageDetail, listSkillCategories, listSkillPackages, resolveSkillZipDownloadUrl, resolveSkillsStoreBaseUrl, skillIdForMarketplaceInstall, verifyStoreArtifactSha256 } from "./store-api-client.js";
|
|
4
4
|
//#region src/agent/skills/marketplace/adapters/store/adapter.ts
|
|
5
5
|
const storeMarketplaceAdapter = {
|
|
6
6
|
id: "store",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { init_resolution, resolveConnectedPlatformEndpoint } from "../../../../../platform/resolution.js";
|
|
2
|
-
import { MAX_EXTENSION_STORE_ZIP_BYTES } from "../../../../../extensions/store-zip-limits.js";
|
|
3
2
|
import { MAX_SKILL_ZIP_BYTES, isValidSkillId } from "../../../managed-store.js";
|
|
3
|
+
import { MAX_EXTENSION_STORE_ZIP_BYTES } from "../../../../../extensions/store-zip-limits.js";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
//#region src/agent/skills/marketplace/adapters/store/store-api-client.ts
|
|
6
6
|
/**
|
|
@@ -74,6 +74,7 @@ export interface ToolFactoryDeps {
|
|
|
74
74
|
dispatchTaskEvents?: () => void;
|
|
75
75
|
/** Gateway: queues Task execution for xopc_use task start/resume/verify actions. */
|
|
76
76
|
dispatchTaskRuns?: () => void;
|
|
77
|
+
retryTask?: import('../service.types.js').AgentServiceConfig['retryTask'];
|
|
77
78
|
/** Gateway: refreshes Agent runtime state after xopc_use mutates the catalog. */
|
|
78
79
|
onAgentCatalogMutate?: () => void;
|
|
79
80
|
/** Current session skill indexing (tool gating + allowlist); used by skills_list / skill_view. */
|
|
@@ -16,6 +16,8 @@ import { resolveEffectiveAgentConfigForAgent } from "../../config/agent-profile.
|
|
|
16
16
|
import { getExecutionAuthority } from "../../infra/execution-authority.js";
|
|
17
17
|
import { canRecallConversation, canRecallHistoryEntry } from "../../session/history-recall-policy.js";
|
|
18
18
|
import { getExecutionEnvironmentForSession } from "../../execution-environments/subject.js";
|
|
19
|
+
import { buildRuntimeEnvironment } from "../../runtime-tools/environment.js";
|
|
20
|
+
import { skillEnvironmentId } from "../skills/installer.js";
|
|
19
21
|
import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
|
|
20
22
|
import { getActiveTranscriptUserText, getPendingTranscriptUserText } from "../inbound/attachment-pipeline.js";
|
|
21
23
|
import { getEmbeddedExecutionRunId, getEmbeddedExecutionSession } from "../embedded/execution-context.js";
|
|
@@ -34,8 +36,6 @@ import { markCodemodeCoreRead } from "./codemode-permissions.js";
|
|
|
34
36
|
import "../../../packages/browser-control-contract/src/index.js";
|
|
35
37
|
import { wrapToolsWithProtection } from "./executor.js";
|
|
36
38
|
import { createDefaultExternalToolGatewayTools } from "../external-tools/index.js";
|
|
37
|
-
import { buildRuntimeEnvironment } from "../../runtime-tools/environment.js";
|
|
38
|
-
import { skillEnvironmentId } from "../skills/installer.js";
|
|
39
39
|
import { createDataBatchTool } from "./dataBatch.js";
|
|
40
40
|
import { createXopcUseTool } from "./xopc-use-tool.js";
|
|
41
41
|
import { createMcpSetupTool } from "./mcp-setup-tool.js";
|
|
@@ -499,6 +499,7 @@ var AgentToolsFactory = class AgentToolsFactory {
|
|
|
499
499
|
getPhoneSetupService: this.deps.getPhoneSetupService,
|
|
500
500
|
dispatchTaskEvents: this.deps.dispatchTaskEvents,
|
|
501
501
|
dispatchTaskRuns: this.deps.dispatchTaskRuns,
|
|
502
|
+
retryTask: this.deps.retryTask,
|
|
502
503
|
onAgentCatalogMutate: this.deps.onAgentCatalogMutate
|
|
503
504
|
};
|
|
504
505
|
const core = [
|
|
@@ -14,11 +14,11 @@ import { isUnquotedOwnerEvidence } from "../../memory-learning/owner-directive.j
|
|
|
14
14
|
import { deleteUserAssertion, getAssertionSlot, getUserAssertion, reconcileAssertion, setAssertionStatus, setUserAssertionScope } from "../../user-model/repository.js";
|
|
15
15
|
import { canUseAssertion } from "../../user-model/usage-policy.js";
|
|
16
16
|
import { getPersonalAgentByConversation } from "../../personal-agent/repository.js";
|
|
17
|
+
import "../../user-model/index.js";
|
|
17
18
|
import { getSessionInteractionPolicy } from "../session/interaction-policy-state.js";
|
|
18
19
|
import "../session/interaction-policy.js";
|
|
19
20
|
import { executeAtomicOperation } from "../../capabilities/runtime/atomic-operations.js";
|
|
20
21
|
import { memoryVersion } from "../../user-context/memory-version.js";
|
|
21
|
-
import "../../user-model/index.js";
|
|
22
22
|
import { extractAgentUserPlainText } from "../memory/user-message-text.js";
|
|
23
23
|
import { createHash } from "node:crypto";
|
|
24
24
|
import { Type } from "@sinclair/typebox";
|
|
@@ -352,7 +352,7 @@ function createPersonalMemoryTool(deps) {
|
|
|
352
352
|
};
|
|
353
353
|
});
|
|
354
354
|
notifyUserContextChange({
|
|
355
|
-
kind: "session",
|
|
355
|
+
kind: receipt.status === "forgotten" ? "history-forgotten" : "session",
|
|
356
356
|
id: conversationId
|
|
357
357
|
});
|
|
358
358
|
const assertion = receipt.target === "user" ? getUserAssertion(receipt.id) : void 0;
|
|
@@ -14,6 +14,7 @@ export declare function listUnallocatedPersonalRequests(conversationId: string,
|
|
|
14
14
|
title: string;
|
|
15
15
|
connectorId: string;
|
|
16
16
|
state: import("../../personal-agent/request-repository.js").PersonalRequestState;
|
|
17
|
+
createdAt: number;
|
|
17
18
|
updatedAt: number;
|
|
18
19
|
}[];
|
|
19
20
|
};
|
|
@@ -6,8 +6,8 @@ import { getActiveConnectionWait, init_connection_wait_repository, reviseCurrent
|
|
|
6
6
|
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
7
7
|
import { TaskAllocationRepository } from "../../tasks/task-allocation-repository.js";
|
|
8
8
|
import { resolveExactConnectionCandidate } from "../../connectors/connection-candidates.js";
|
|
9
|
-
import { TASK_NOTIFICATION_PREFERENCES, getTaskNotificationPreference, isTaskNotificationPreference, setTaskNotificationPreference } from "../../tasks/task-notification-preference.js";
|
|
10
9
|
import { personalCapabilities } from "../../personal-agent/capability-service.js";
|
|
10
|
+
import { TASK_NOTIFICATION_PREFERENCES, getTaskNotificationPreference, isTaskNotificationPreference, setTaskNotificationPreference } from "../../tasks/task-notification-preference.js";
|
|
11
11
|
import { selectionRequestHash } from "../../agent-matching/selection-repository.js";
|
|
12
12
|
import { assertPersonalRequestTimeRange, cancelPersonalRequest, personalRequestSnapshot, publishPersonalRequest, stopPersonalRequestExecution, submitPersonalRequest } from "../../personal-agent/request-service.js";
|
|
13
13
|
import { Type } from "@sinclair/typebox";
|
|
@@ -91,6 +91,7 @@ function listUnallocatedPersonalRequests(conversationId, limit, offset, query) {
|
|
|
91
91
|
title: request.objective,
|
|
92
92
|
connectorId: request.connectorId,
|
|
93
93
|
state: request.state,
|
|
94
|
+
createdAt: request.createdAt,
|
|
94
95
|
updatedAt: request.updatedAt
|
|
95
96
|
}))
|
|
96
97
|
};
|
|
@@ -8,16 +8,16 @@ import { getSessionMetadata } from "../../storage/sqlite/session-read-repository
|
|
|
8
8
|
import "../../storage/sqlite/index.js";
|
|
9
9
|
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
10
10
|
import { TaskAllocationRepository } from "../../tasks/task-allocation-repository.js";
|
|
11
|
+
import { getAvailablePersonalAgentTools, personalAgentModelAvailability } from "../../personal-agent/specialist-capabilities.js";
|
|
12
|
+
import { assessSpecialist, matchSpecialists } from "../../agent-matching/service.js";
|
|
13
|
+
import { parseTaskHandoffReferences } from "../../tasks/task-handoff.js";
|
|
11
14
|
import { TaskReadModelProjector } from "../../tasks/task-read-model-projector.js";
|
|
12
15
|
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
13
16
|
import { TaskResultDeliveryRepository } from "../../tasks/task-result-delivery-repository.js";
|
|
14
17
|
import { TaskOriginRepository } from "../../tasks/task-origin-repository.js";
|
|
15
18
|
import { boundedPersonalResult } from "./personal-result-budget.js";
|
|
16
|
-
import { parseTaskHandoffReferences } from "../../tasks/task-handoff.js";
|
|
17
19
|
import { TaskApplicationService } from "../../tasks/task-application-service.js";
|
|
18
20
|
import { TASK_NOTIFICATION_PREFERENCES, isTaskNotificationPreference, setTaskNotificationPreference } from "../../tasks/task-notification-preference.js";
|
|
19
|
-
import { getAvailablePersonalAgentTools, personalAgentModelAvailability } from "../../personal-agent/specialist-capabilities.js";
|
|
20
|
-
import { assessSpecialist, matchSpecialists } from "../../agent-matching/service.js";
|
|
21
21
|
import { createXopcUseTool } from "./xopc-use-tool.js";
|
|
22
22
|
import { AgentSelectionRepository, selectionRequestHash } from "../../agent-matching/selection-repository.js";
|
|
23
23
|
import { assertSpecialistEligible, createSelectedTask } from "../../agent-matching/delegation-service.js";
|
|
@@ -35,6 +35,7 @@ const PersonalTaskSchema = Type.Object({
|
|
|
35
35
|
command: Type.Union([
|
|
36
36
|
Type.Literal("revise"),
|
|
37
37
|
Type.Literal("retry_allocation"),
|
|
38
|
+
Type.Literal("retry"),
|
|
38
39
|
Type.Literal("submit"),
|
|
39
40
|
Type.Literal("match"),
|
|
40
41
|
Type.Literal("selection"),
|
|
@@ -108,7 +109,7 @@ const PersonalTaskSchema = Type.Object({
|
|
|
108
109
|
taskReference: Type.Optional(Type.String({
|
|
109
110
|
minLength: 1,
|
|
110
111
|
maxLength: 200,
|
|
111
|
-
description: "For instruct
|
|
112
|
+
description: "For instruct, omit for an implicit follow-up to the only open task. For a named task or when several open tasks exist, quote a distinctive reference from the latest user message, such as 华东 or 新闻任务. If the target is still ambiguous, ask which task the user means."
|
|
112
113
|
})),
|
|
113
114
|
entryId: Type.Optional(Type.String({ description: "Read one complete collaboration entry, including its question or instruction body." })),
|
|
114
115
|
afterSequence: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
@@ -164,12 +165,13 @@ const PersonalTaskModelSchema = Type.Object({
|
|
|
164
165
|
"entry",
|
|
165
166
|
"instruct",
|
|
166
167
|
"answer",
|
|
168
|
+
"retry",
|
|
167
169
|
"retry_allocation",
|
|
168
170
|
"selection",
|
|
169
171
|
"cancel",
|
|
170
172
|
"notifications"
|
|
171
173
|
]],
|
|
172
|
-
description: "Required. submit=new goal; instruct=new direction on running work; answer=worker question; revise=completed work with an exact returned result baseline only."
|
|
174
|
+
description: "Required. submit=new goal; instruct=new direction on running work; answer=worker question; retry=explicit request to resume or rerun existing work; revise=completed work with an exact returned result baseline only."
|
|
173
175
|
}),
|
|
174
176
|
sourceRefs: Type.Optional(Type.Array(Type.Object({
|
|
175
177
|
kind: Type.Union([
|
|
@@ -261,7 +263,8 @@ const PersonalTaskModelSchema = Type.Object({
|
|
|
261
263
|
properties: { command: { enum: [
|
|
262
264
|
"get",
|
|
263
265
|
"collaboration",
|
|
264
|
-
"cancel"
|
|
266
|
+
"cancel",
|
|
267
|
+
"retry"
|
|
265
268
|
] } },
|
|
266
269
|
required: [id]
|
|
267
270
|
},
|
|
@@ -312,7 +315,7 @@ function createPersonalTaskTool(deps) {
|
|
|
312
315
|
return {
|
|
313
316
|
name: "personal_task",
|
|
314
317
|
label: "Personal Task",
|
|
315
|
-
description: "Coordinate ordinary Tasks and connected-app requests. For get, instruct, cancel, answer, collaboration, entry or notifications, use the known taskId or requestId. Connected-app requests awaiting authorization have only a requestId. Use timeRange on instruct for a changed absolute query range. Always include command. New ordinary goal: submit objective plus useOriginalRequest=true for a self-contained active user message; the host preserves the complete original text. Otherwise supply a concise complete description. Include sourceRefs for required inputs without pre-reading files or planning the execution. Use requirements.requestedAgentId only for an explicitly named executor; preserve explicitly requested requiredSkills. The background Router chooses the executor. After successful persistence, give one short confirmation and finish; updates arrive automatically.\nRUNNING work: send instruct with the known ID and instruction for new direction, or answer with the known ID, questionId and instruction for an exact worker question. Reuse the SAME Task, without a baseline lookup. Never revise running work.\nCOMPLETED ordinary work only: get(section=\"revision\"), then revise with instruction and exact returned revisionBaseline.resultId, baselineVersion and expectedVersion. If revisionBaseline is absent, use instruct/answer; never invent placeholders. This saves a revision and queues background allocation atomically. Reuse idempotencyKey for uncertain retries. supersedesEntryIds names only earlier instruction/answer entries to replace; all other requirements remain. Independent goals use submit with pinned old-result sources; connected-app side effects require a newly authorized Request.\nsourceRefs: workspace input {kind:\"file\",sourceId:\"path\"}; prior result {kind:\"result\",resultId:\"exact result ID\",sourceId:\"exact artifact ID or unique file title\"}, omitting sourceId only for retained body; other prior inputs use stable sourceId and optional expectedVersion. The host authorizes and pins exact versions; workspace inputs are not executor cwd. Do not invent composite IDs.\nUse notifications with the known ID and notificationPreference to change an existing Task only when the user asks. Use get(section=\"status\") for a brief current status; list locates a Task or a request awaiting authorization and get(section,limit,offset) reads details. collaboration(afterSequence) returns previews; entry(entryId,bodyOffset) reads full bodies through nextBodyOffset. Read complete questions before answering. cancel only on explicit user instruction; report executionStopConfirmed accurately. retry_allocation retries selection, not arbitrary execution. Saved, delivered, executor-confirmed and verified completion are distinct; report only confirmed states.",
|
|
318
|
+
description: "Coordinate ordinary Tasks and connected-app requests. For get, retry, instruct, cancel, answer, collaboration, entry or notifications, use the known taskId or requestId. Connected-app requests awaiting authorization have only a requestId. Use timeRange on instruct for a changed absolute query range. Always include command. When the user asks to retry after reauthorization or failure, locate the original request or Task (list by a distinctive title phrase, using the original date if needed), then call retry with its exact ID. Ask which one only if multiple plausible targets remain. Report the returned status; queued means accepted for execution, waiting_connection means the original request is preserved and may still need action in the connection panel. Do not submit a duplicate. New ordinary goal: submit objective plus useOriginalRequest=true for a self-contained active user message; the host preserves the complete original text. Otherwise supply a concise complete description. Include sourceRefs for required inputs without pre-reading files or planning the execution. Use requirements.requestedAgentId only for an explicitly named executor; preserve explicitly requested requiredSkills. The background Router chooses the executor. After successful persistence, give one short confirmation and finish; updates arrive automatically.\nRUNNING work: send instruct with the known ID and instruction for new direction, or answer with the known ID, questionId and instruction for an exact worker question. Reuse the SAME Task, without a baseline lookup. Never revise running work.\nCOMPLETED ordinary work only: get(section=\"revision\"), then revise with instruction and exact returned revisionBaseline.resultId, baselineVersion and expectedVersion. If revisionBaseline is absent, use instruct/answer; never invent placeholders. This saves a revision and queues background allocation atomically. Reuse idempotencyKey for uncertain retries. supersedesEntryIds names only earlier instruction/answer entries to replace; all other requirements remain. Independent goals use submit with pinned old-result sources; connected-app side effects require a newly authorized Request.\nsourceRefs: workspace input {kind:\"file\",sourceId:\"path\"}; prior result {kind:\"result\",resultId:\"exact result ID\",sourceId:\"exact artifact ID or unique file title\"}, omitting sourceId only for retained body; other prior inputs use stable sourceId and optional expectedVersion. The host authorizes and pins exact versions; workspace inputs are not executor cwd. Do not invent composite IDs.\nUse notifications with the known ID and notificationPreference to change an existing Task only when the user asks. Use get(section=\"status\") for a brief current status; list locates a Task or a request awaiting authorization and get(section,limit,offset) reads details. collaboration(afterSequence) returns previews; entry(entryId,bodyOffset) reads full bodies through nextBodyOffset. Read complete questions before answering. cancel only on explicit user instruction; report executionStopConfirmed accurately. retry_allocation retries selection, not arbitrary execution. Saved, delivered, executor-confirmed and verified completion are distinct; report only confirmed states.",
|
|
316
319
|
parameters: PersonalTaskModelSchema,
|
|
317
320
|
mutatesWorkspace: true,
|
|
318
321
|
mutationScope: "external",
|
|
@@ -329,6 +332,28 @@ function createPersonalTaskTool(deps) {
|
|
|
329
332
|
const conversationId = deps.getCurrentConversationId?.();
|
|
330
333
|
const ownAgentId = deps.getCurrentAgentId?.();
|
|
331
334
|
if (!conversationId || !ownAgentId || !isPersonalConversation(conversationId)) throw new Error("Personal conversation context is unavailable");
|
|
335
|
+
if (input.command === "retry") {
|
|
336
|
+
if (!deps.retryTask) throw new Error("Task recovery is unavailable");
|
|
337
|
+
const taskId = input.taskId?.trim();
|
|
338
|
+
const requestId = input.requestId?.trim();
|
|
339
|
+
if (Boolean(taskId) === Boolean(requestId)) throw new Error("Provide either taskId or requestId");
|
|
340
|
+
if (input.timeRange !== void 0) throw new Error("Retry preserves the original time range");
|
|
341
|
+
const activeId = getSessionInputState(conversationId).activeInputId;
|
|
342
|
+
const active = activeId ? getSessionInputById(conversationId, activeId) : void 0;
|
|
343
|
+
if (!active || active.kind !== "message" || active.origin.type === "system" && active.origin.source !== "cli") throw new Error("Retry requires a user message in the active Personal conversation");
|
|
344
|
+
const result = await deps.retryTask({
|
|
345
|
+
...taskId ? { taskId } : { requestId },
|
|
346
|
+
conversationId,
|
|
347
|
+
idempotencyKey: active.id
|
|
348
|
+
});
|
|
349
|
+
return {
|
|
350
|
+
content: [{
|
|
351
|
+
type: "text",
|
|
352
|
+
text: JSON.stringify(result)
|
|
353
|
+
}],
|
|
354
|
+
details: {}
|
|
355
|
+
};
|
|
356
|
+
}
|
|
332
357
|
if (!requestResolved && REQUEST_COORDINATION_COMMANDS.includes(input.command)) {
|
|
333
358
|
if (input.requestId !== void 0 && input.taskId !== void 0) throw new Error("Provide either taskId or requestId");
|
|
334
359
|
const request = input.requestId !== void 0 ? getPersonalRequest(input.requestId.trim()) : input.taskId ? personalRequestForTask(input.taskId.trim()) : void 0;
|
|
@@ -576,14 +601,20 @@ function createPersonalTaskTool(deps) {
|
|
|
576
601
|
if (command === "instruct" && !requestResolved) {
|
|
577
602
|
const activeInputId = getSessionInputState(conversationId).activeInputId;
|
|
578
603
|
const activeInput = activeInputId ? getSessionInputById(conversationId, activeInputId) : void 0;
|
|
579
|
-
const directory = new TaskOriginRepository();
|
|
580
604
|
const workerUpdate = activeInput?.origin.type === "system" && activeInput.origin.source === "task_update";
|
|
581
|
-
if (activeInput?.kind === "message" && !workerUpdate
|
|
605
|
+
if (activeInput?.kind === "message" && !workerUpdate) {
|
|
606
|
+
const directory = new TaskOriginRepository();
|
|
582
607
|
const reference = input.taskReference?.trim();
|
|
583
|
-
if (!reference
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
608
|
+
if (!reference) {
|
|
609
|
+
if (directory.list(conversationId, 1, { excludeClosed: true }).total > 1) throw new Error("Several tasks are still open. Provide taskReference quoted from the latest user message, or ask which task they mean.");
|
|
610
|
+
} else {
|
|
611
|
+
if (!activeInput.content.toLowerCase().includes(reference.toLowerCase())) throw new Error("Provide taskReference quoted from the latest user message, or omit it for an implicit follow-up to the only open task.");
|
|
612
|
+
let matches = directory.list(conversationId, 1, { query: reference });
|
|
613
|
+
const shortReference = reference.replace(/(?:[这那][份个项条](?:任务)?|(?:的)?任务|\s+task)$/iu, "").trimEnd();
|
|
614
|
+
if (!matches.total && shortReference && shortReference !== reference) matches = directory.list(conversationId, 1, { query: shortReference });
|
|
615
|
+
if (matches.total > 1) throw new Error("The taskReference does not identify this task uniquely. Ask which task the user means without retrying this reference.");
|
|
616
|
+
if (matches.items[0]?.id !== taskId) throw new Error("The taskReference does not identify the selected task. Use a distinctive quote from the user’s message that matches its title or objective, or ask which task they mean.");
|
|
617
|
+
}
|
|
587
618
|
}
|
|
588
619
|
}
|
|
589
620
|
if (command === "notifications") {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { turnOutcomeKindFromFileName, turnOutcomeMimeTypeFromFileName } from "../../../packages/gateway-contract/src/turn-outcome.js";
|
|
2
2
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
3
|
-
import { resolvePathUnderWorkspace } from "./tool-paths.js";
|
|
4
3
|
import { fileResourceId, fileSpaceId } from "../../files/file-service.js";
|
|
4
|
+
import { resolvePathUnderWorkspace } from "./tool-paths.js";
|
|
5
5
|
import { evaluateFilePolicy } from "../sandbox/exec-policy.js";
|
|
6
6
|
import { readWorkspaceFile } from "../sandbox/fileAccess.js";
|
|
7
7
|
import { persistToolMedia } from "./tool-media.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { readWorkspaceRevision } from "../coding/workspace-revision.js";
|
|
2
1
|
import { prepareSafeToolEnv } from "../sandbox/sanitize-env-vars.js";
|
|
2
|
+
import { readWorkspaceRevision } from "../coding/workspace-revision.js";
|
|
3
3
|
import { evaluateFilePolicy } from "../sandbox/exec-policy.js";
|
|
4
4
|
import { checkedFilePath, readWorkspaceFile } from "../sandbox/fileAccess.js";
|
|
5
5
|
import { resolve } from "node:path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { resolveStateDir } from "../../config/paths-state.js";
|
|
2
2
|
import { init_paths } from "../../config/paths.js";
|
|
3
|
-
import { removeSkillsLockEntry } from "../skills/hub-lock.js";
|
|
4
3
|
import { hasBinary } from "../skills/installer.js";
|
|
5
4
|
import { createSkillConfigManager, getSkillEnvironment, isSkillEnabled, resolveSkillConfig } from "../skills/config.js";
|
|
6
5
|
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "../skills/workspace-skills-dir.js";
|
|
6
|
+
import { removeSkillsLockEntry } from "../skills/hub-lock.js";
|
|
7
7
|
import { applyPatchToContent, atomicWriteUtf8, effectiveAgentWritePolicy, ensureCategorySegment, isPathInsideDir, maxSkillMdChars, maxSupportFileBytes, mutatableSkillOrNull, resolveCreateSkillDir, scanSkillDirOrError, validateSkillMdContent, validateSkillNameSegment, validateSupportingRelativePath } from "../skills/skill-manage-ops.js";
|
|
8
8
|
import { join } from "path";
|
|
9
9
|
import { existsSync, rmSync } from "fs";
|