@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
|
@@ -8,10 +8,11 @@ import { AgentPluginStore } from "../../../extensions/agent-plugins/store.js";
|
|
|
8
8
|
import { CredentialResolver, init_credentials } from "../../../auth/credentials.js";
|
|
9
9
|
import { getWorkspacePath } from "../../../config/workspace-path-helpers.js";
|
|
10
10
|
import { getPersonalAgent, personalAgentId } from "../../../personal-agent/repository.js";
|
|
11
|
-
import {
|
|
12
|
-
import { checkUrlSafety } from "../../../agent/tools/url-safety.js";
|
|
11
|
+
import { assertComposioAccessConfigured } from "../../../connectors/composio-sessions.js";
|
|
13
12
|
import { listComposioConnections, revokeComposioConnection } from "../../../connectors/composio.js";
|
|
14
13
|
import { getConnectorDefinition } from "../../../connectors/catalog.js";
|
|
14
|
+
import { connectorPrincipalForSession } from "../../../connectors/principal.js";
|
|
15
|
+
import { checkUrlSafety } from "../../../agent/tools/url-safety.js";
|
|
15
16
|
import { connectorSecretProviderId } from "../../../connectors/secret-store.js";
|
|
16
17
|
import { materializeConnectorMcpServer } from "../../../connectors/materialize.js";
|
|
17
18
|
import { getInstalledConnectorDefinition, listConnectorInstances } from "../../../connectors/instances.js";
|
|
@@ -56,6 +57,15 @@ const schema = z.strictObject({
|
|
|
56
57
|
flow: z.string().max(160).optional(),
|
|
57
58
|
revision: z.number().int().optional()
|
|
58
59
|
});
|
|
60
|
+
function useCapability(name, id, t) {
|
|
61
|
+
const label = name.replace(/\s+/g, " ").trim();
|
|
62
|
+
const target = label && label !== id ? `${label} (${id})` : id;
|
|
63
|
+
return t(`请使用「${target}」帮我:`, `Use “${target}” to help me with:`);
|
|
64
|
+
}
|
|
65
|
+
function skillChatPrompt(item, t) {
|
|
66
|
+
if (!item.enabled || item.plugin && (!item.plugin.active || item.plugin.readiness !== "ready")) return;
|
|
67
|
+
return /^[A-Za-z0-9][A-Za-z0-9._-]*$/.test(item.name) ? `/skill:${item.name} ` : useCapability(item.name, item.directoryId, t);
|
|
68
|
+
}
|
|
59
69
|
function safeLink(value) {
|
|
60
70
|
if (!value) return;
|
|
61
71
|
try {
|
|
@@ -166,8 +176,7 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
166
176
|
const connectorSignIns = /* @__PURE__ */ new Map();
|
|
167
177
|
async function skill(c, id, t, command) {
|
|
168
178
|
if (id === "marketplace:search") {
|
|
169
|
-
const
|
|
170
|
-
if (installing) await skillMarket.install(c, command.action.slice(8));
|
|
179
|
+
const installed = command?.action.startsWith("install:") ? await skillMarket.install(c, command.action.slice(8)) : void 0;
|
|
171
180
|
const query = command?.values.query?.trim() ?? "";
|
|
172
181
|
const panel = {
|
|
173
182
|
fields: [{
|
|
@@ -179,8 +188,11 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
179
188
|
label: t("搜索", "Search")
|
|
180
189
|
}]
|
|
181
190
|
};
|
|
182
|
-
if (
|
|
183
|
-
|
|
191
|
+
if (installed) {
|
|
192
|
+
const entry = service.marketplace.getSkillsApi().catalog.find((row) => row.directoryId === installed.name);
|
|
193
|
+
panel.message = t("技能已安装", "Skill installed");
|
|
194
|
+
if (entry) panel.chatPrompt = skillChatPrompt(entry, t);
|
|
195
|
+
} else if (query) {
|
|
184
196
|
if (query.length < 2) return {
|
|
185
197
|
...panel,
|
|
186
198
|
message: t("请输入至少两个字符。", "Enter at least two characters.")
|
|
@@ -217,6 +229,7 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
217
229
|
return {
|
|
218
230
|
fields: [toggle("enabled", t("启用技能", "Enable skill"), item.enabled !== false)],
|
|
219
231
|
message: command?.action === "save" ? t("已保存", "Saved") : void 0,
|
|
232
|
+
chatPrompt: skillChatPrompt(item, t),
|
|
220
233
|
actions: [{
|
|
221
234
|
id: "save",
|
|
222
235
|
label: t("保存", "Save")
|
|
@@ -317,7 +330,10 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
317
330
|
message: failure ? `${name} · ${failure}` : name
|
|
318
331
|
};
|
|
319
332
|
if (result.expired || result.phase === "cancelled") return { message: result.expired ? t("连接请求已过期。", "Connection request expired.") : t("连接已取消。", "Connection cancelled.") };
|
|
320
|
-
if (result.phase === "ready") return {
|
|
333
|
+
if (result.phase === "ready") return {
|
|
334
|
+
message: result.reloadRequired ? t("连接已保存,重启网关后生效。", "Connection saved. Restart the Gateway to apply it.") : t("连接已完成。", "Connection complete."),
|
|
335
|
+
...!result.reloadRequired ? { chatPrompt: useCapability(name, result.serverId, t) } : {}
|
|
336
|
+
};
|
|
321
337
|
if (!setup) return ended;
|
|
322
338
|
const cancel = {
|
|
323
339
|
id: "cancel",
|
|
@@ -396,11 +412,47 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
396
412
|
if (id === "mcp:setup") {
|
|
397
413
|
const owner = getGatewayPrincipal(c).principalId;
|
|
398
414
|
const flow = command?.flow;
|
|
415
|
+
const form = (url = "", name = "") => ({
|
|
416
|
+
fields: [
|
|
417
|
+
{
|
|
418
|
+
...text("url", t("MCP 服务地址", "MCP server URL"), url),
|
|
419
|
+
hint: "https://"
|
|
420
|
+
},
|
|
421
|
+
text("id", t("名称(选填)", "Name (optional)"), name),
|
|
422
|
+
{
|
|
423
|
+
...text("token", t("Bearer 令牌(选填)", "Bearer token (optional)"), "", "secret"),
|
|
424
|
+
advanced: true
|
|
425
|
+
}
|
|
426
|
+
],
|
|
427
|
+
actions: [{
|
|
428
|
+
id: "create",
|
|
429
|
+
label: t("测试并连接", "Test and connect")
|
|
430
|
+
}]
|
|
431
|
+
});
|
|
399
432
|
if (flow) {
|
|
400
|
-
|
|
401
|
-
await withGatewayConfigWriteLock(service, () => drafts.commit(owner, flow, true))
|
|
402
|
-
|
|
403
|
-
|
|
433
|
+
const complete = async () => {
|
|
434
|
+
const result = await withGatewayConfigWriteLock(service, () => drafts.commit(owner, flow, true)).catch((error) => {
|
|
435
|
+
if (error instanceof McpDraftError && error.status === 500) return void 0;
|
|
436
|
+
throw error;
|
|
437
|
+
});
|
|
438
|
+
if (!result) return {
|
|
439
|
+
flow,
|
|
440
|
+
message: t("验证通过,暂未保存连接。", "Verification passed. The connection could not be saved."),
|
|
441
|
+
actions: [{
|
|
442
|
+
id: "save",
|
|
443
|
+
label: t("重试保存", "Retry save")
|
|
444
|
+
}, {
|
|
445
|
+
id: "cancel",
|
|
446
|
+
label: t("取消连接", "Cancel connection")
|
|
447
|
+
}]
|
|
448
|
+
};
|
|
449
|
+
if (result.reloadRequired) return { message: t("连接已保存,重启网关后生效。", "Connection saved. Restart the Gateway to apply it.") };
|
|
450
|
+
return {
|
|
451
|
+
message: t("连接已添加", "Connection added"),
|
|
452
|
+
chatPrompt: useCapability(service.currentConfig.mcp?.servers?.[result.serverId]?.displayName ?? result.serverId, result.serverId, t)
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
if (command.action === "save") return complete();
|
|
404
456
|
if (command.action === "cancel") {
|
|
405
457
|
drafts.remove(owner, flow);
|
|
406
458
|
return connection(c, id, t);
|
|
@@ -422,15 +474,20 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
422
474
|
break;
|
|
423
475
|
default: throw new McpDraftError(400, "Unknown connection action.");
|
|
424
476
|
}
|
|
425
|
-
if (current.state === "connected")
|
|
426
|
-
await withGatewayConfigWriteLock(service, () => drafts.commit(owner, flow, true));
|
|
427
|
-
return { message: t("连接已添加,可以使用了。", "Connection added and ready to use.") };
|
|
428
|
-
}
|
|
477
|
+
if (current.state === "connected") return complete();
|
|
429
478
|
const authorizing = current.state === "authorizing" || current.state === "starting";
|
|
430
|
-
const
|
|
479
|
+
const canAuthorize = current.state === "oauth_required" || current.state === "auth_unknown" || current.state === "error" && command.action !== "probe";
|
|
480
|
+
if (!authorizing && !canAuthorize) {
|
|
481
|
+
const { url, id: name, token } = command.values;
|
|
482
|
+
drafts.remove(owner, flow);
|
|
483
|
+
return {
|
|
484
|
+
...form(url, name),
|
|
485
|
+
message: current.state === "token_required" || token ? t("连接验证失败。请检查服务地址、令牌和访问权限。", "Verification failed. Check the server URL, token and permissions.") : t("无法建立连接。请检查服务地址后重试。", "Could not connect. Check the server URL and try again.")
|
|
486
|
+
};
|
|
487
|
+
}
|
|
431
488
|
return {
|
|
432
489
|
flow,
|
|
433
|
-
message: authorizing ? t("请在服务商页面完成授权。返回后会自动添加。", "Finish signing in with the provider. The connection will be added automatically.") :
|
|
490
|
+
message: authorizing ? t("请在服务商页面完成授权。返回后会自动添加。", "Finish signing in with the provider. The connection will be added automatically.") : current.state === "auth_unknown" ? t("此服务需要授权。可以尝试登录,或修改配置并填写服务商提供的令牌。", "This server requires authorization. Sign in or edit the connection to enter the provider’s token.") : current.state === "error" ? t("授权未完成。请重试或修改连接配置。", "Sign-in did not complete. Retry or edit the connection settings.") : t("此连接需要服务商授权。", "This connection needs provider authorization."),
|
|
434
491
|
authorizationUrl: authorizing ? safeLink(current.authorizationUrl) : void 0,
|
|
435
492
|
pollAction: authorizing ? "status" : void 0,
|
|
436
493
|
fields: authorizing && current.acceptsRedirect ? [{
|
|
@@ -439,22 +496,19 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
439
496
|
advanced: true
|
|
440
497
|
}] : void 0,
|
|
441
498
|
actions: [
|
|
442
|
-
...!authorizing ? [
|
|
499
|
+
...!authorizing ? [{
|
|
443
500
|
id: "authorize",
|
|
444
501
|
label: t("连接账号", "Connect account")
|
|
445
|
-
} : {
|
|
446
|
-
id: "cancel",
|
|
447
|
-
label: t("修改地址", "Edit address")
|
|
448
502
|
}] : [],
|
|
449
503
|
...authorizing && current.acceptsRedirect ? [{
|
|
450
504
|
id: "callback",
|
|
451
505
|
label: t("完成授权", "Finish authorization"),
|
|
452
506
|
advanced: true
|
|
453
507
|
}] : [],
|
|
454
|
-
|
|
508
|
+
{
|
|
455
509
|
id: "cancel",
|
|
456
|
-
label: t("取消连接", "Cancel connection")
|
|
457
|
-
}
|
|
510
|
+
label: authorizing ? t("取消连接", "Cancel connection") : t("修改连接配置", "Edit connection settings")
|
|
511
|
+
}
|
|
458
512
|
]
|
|
459
513
|
};
|
|
460
514
|
}
|
|
@@ -464,6 +518,8 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
464
518
|
if (!address.success) throw new McpDraftError(400, t("请输入完整的 HTTPS 地址。", "Enter the full HTTPS address."));
|
|
465
519
|
const url = new URL(address.data);
|
|
466
520
|
if (url.protocol !== "https:" || url.username || url.password || url.search || url.hash || !checkUrlSafety(url.href).safe) throw new McpDraftError(400, t("请输入不含账号或参数的公共 HTTPS 地址。", "Use a public HTTPS address without a username, password, or parameters."));
|
|
521
|
+
const token = command.values.token?.trim();
|
|
522
|
+
if (token && !/^[!-~]+$/.test(token)) throw new McpDraftError(400, t("请输入服务商提供的 Bearer 令牌。", "Enter the Bearer token provided by the service."));
|
|
467
523
|
const serverId = url.hostname.toLowerCase().replace(/[^a-z0-9-]/g, "-").slice(0, 42) + "-" + createHash("sha256").update(url.href).digest("hex").slice(0, 12);
|
|
468
524
|
return connection(c, id, t, {
|
|
469
525
|
action: "probe",
|
|
@@ -475,26 +531,14 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
475
531
|
displayName: displayName || url.hostname,
|
|
476
532
|
xopcPublicOnly: true
|
|
477
533
|
}
|
|
478
|
-
})).id,
|
|
479
|
-
values:
|
|
534
|
+
}, token)).id,
|
|
535
|
+
values: command.values
|
|
480
536
|
});
|
|
481
537
|
}
|
|
482
|
-
return
|
|
483
|
-
fields: [{
|
|
484
|
-
...text("url", t("服务地址", "Service address")),
|
|
485
|
-
hint: "https://"
|
|
486
|
-
}, {
|
|
487
|
-
...text("id", t("名称(选填)", "Name (optional)")),
|
|
488
|
-
hint: t("留空则使用服务名称", "Defaults to the service name")
|
|
489
|
-
}],
|
|
490
|
-
actions: [{
|
|
491
|
-
id: "create",
|
|
492
|
-
label: t("添加连接", "Add connection")
|
|
493
|
-
}]
|
|
494
|
-
};
|
|
538
|
+
return form();
|
|
495
539
|
}
|
|
496
540
|
if (id.startsWith("mcp:")) {
|
|
497
|
-
const key = id.slice(4);
|
|
541
|
+
const key = id === "mcp:server:setup" ? "setup" : id.slice(4);
|
|
498
542
|
const server = Object.hasOwn(service.currentConfig.mcp?.servers ?? {}, key) ? service.currentConfig.mcp?.servers?.[key] : void 0;
|
|
499
543
|
if (!server) throw new McpDraftError(404, "Connection not found.");
|
|
500
544
|
if (command?.action === "save") {
|
|
@@ -510,6 +554,7 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
510
554
|
}
|
|
511
555
|
return {
|
|
512
556
|
fields: [toggle("enabled", t("启用连接", "Enable connection"), server.enabled !== false)],
|
|
557
|
+
chatPrompt: server.enabled !== false ? useCapability(server.displayName ?? key, key, t) : void 0,
|
|
513
558
|
actions: [{
|
|
514
559
|
id: "save",
|
|
515
560
|
label: t("保存配置", "Save settings")
|
|
@@ -549,8 +594,10 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
549
594
|
message: t("连接设置已保存。", "Connection settings saved.")
|
|
550
595
|
};
|
|
551
596
|
}
|
|
597
|
+
const ready = instance?.enabled && !["unauthorized", "error"].includes(instance.connectionStatus) && !["missing", "unauthorized"].includes(instance.authStatus);
|
|
552
598
|
return {
|
|
553
599
|
fields: [...connectorFields(known, instance?.config), ...instance ? [toggle("enabled", t("启用连接", "Enable connection"), instance.enabled)] : []],
|
|
600
|
+
chatPrompt: ready ? useCapability(instance.displayName, id, t) : void 0,
|
|
554
601
|
actions: [{
|
|
555
602
|
id: "save",
|
|
556
603
|
label: instance ? t("保存设置", "Save settings") : t("添加连接", "Add connection"),
|
|
@@ -609,13 +656,23 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
609
656
|
}
|
|
610
657
|
return { actions: [{
|
|
611
658
|
id: "inspect",
|
|
612
|
-
label: t("
|
|
659
|
+
label: t("设置连接", "Set up connection")
|
|
613
660
|
}] };
|
|
614
661
|
}
|
|
615
662
|
const currentAccounts = () => listConnectorConnections({
|
|
616
663
|
principalId: "local-owner",
|
|
617
664
|
connectorId: id
|
|
618
665
|
}).filter((row) => row.status === "active");
|
|
666
|
+
const instanceFor = (config) => listConnectorInstances(config).find((row) => row.connectorId === id);
|
|
667
|
+
const ensureEnabled = () => withGatewayConfigWriteLock(service, async () => {
|
|
668
|
+
const previous = service.currentConfig;
|
|
669
|
+
const instance = instanceFor(previous);
|
|
670
|
+
if (instance?.enabled) return;
|
|
671
|
+
const next = structuredClone(previous);
|
|
672
|
+
if (instance) setConnectorEnabled(next, instance.instanceId, true);
|
|
673
|
+
else await installConnectorDefinition(next, definition, {});
|
|
674
|
+
if (!(await service.saveConfig(next, previous)).saved) throw new McpDraftError(409, "Connection settings changed.");
|
|
675
|
+
});
|
|
619
676
|
const rows = currentAccounts();
|
|
620
677
|
const principal = getGatewayPrincipal(c).principalId;
|
|
621
678
|
const waiting = (flow, url) => ({
|
|
@@ -628,8 +685,15 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
628
685
|
label: t("取消连接", "Cancel sign-in")
|
|
629
686
|
}]
|
|
630
687
|
});
|
|
631
|
-
if (command?.action === "authorize") {
|
|
632
|
-
|
|
688
|
+
if (command?.action === "authorize" || command?.action === "enable") {
|
|
689
|
+
await assertComposioAccessConfigured().catch(() => {
|
|
690
|
+
throw new McpDraftError(400, t("请先在电脑端的连接服务设置中配置 Composio 或登录 XOPC Cloud,再回到手机连接此账号。", "Set up Composio or sign in to XOPC Cloud in Connection service settings on your computer, then try again here."));
|
|
691
|
+
});
|
|
692
|
+
await ensureEnabled();
|
|
693
|
+
if (command.action === "enable") return connection(c, id, t);
|
|
694
|
+
const auth = await startConnectorAuthorization(definition, service.currentConfig).catch(() => {
|
|
695
|
+
throw new McpDraftError(400, t("无法启动授权。请检查电脑端的连接服务和此应用的授权配置,然后重试。", "Could not start sign-in. Check the connection service and this app’s authorization settings on your computer, then try again."));
|
|
696
|
+
});
|
|
633
697
|
const authorizationUrl = safeLink(auth.authorizationUrl);
|
|
634
698
|
if (!authorizationUrl) throw new McpDraftError(500, t("未收到可用的授权链接。", "No valid authorization link was returned."));
|
|
635
699
|
const flow = randomUUID();
|
|
@@ -671,8 +735,16 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
671
735
|
await revokeComposioConnection(row.id);
|
|
672
736
|
return connection(c, id, t);
|
|
673
737
|
}
|
|
738
|
+
if (rows.length && !instanceFor(service.currentConfig)?.enabled) return {
|
|
739
|
+
message: t("账号已授权,连接待启用。", "Account authorized. Enable the connection to use it."),
|
|
740
|
+
actions: [{
|
|
741
|
+
id: "enable",
|
|
742
|
+
label: t("启用连接", "Enable connection")
|
|
743
|
+
}]
|
|
744
|
+
};
|
|
674
745
|
return {
|
|
675
746
|
message: rows.length ? t("已连接", "Connected") : t("尚未连接", "Not connected"),
|
|
747
|
+
chatPrompt: rows.length ? useCapability(definition.displayName, id, t) : void 0,
|
|
676
748
|
actions: rows.length ? rows.map((row, index) => ({
|
|
677
749
|
id: "disconnect:" + row.id,
|
|
678
750
|
label: rows.length > 1 ? t("断开账号 ", "Disconnect account ") + (index + 1) : t("断开连接", "Disconnect"),
|
|
@@ -695,14 +767,18 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
695
767
|
if (command?.action === "save") {
|
|
696
768
|
const result = await service.setExtensionActivationTarget(id, command.values.enabled === "true");
|
|
697
769
|
if (!result.ok) throw new McpDraftError(400, result.error ?? "Could not save extension settings.");
|
|
770
|
+
const panel = await plugin(c, id, t);
|
|
698
771
|
return {
|
|
699
|
-
...
|
|
772
|
+
...panel,
|
|
773
|
+
chatPrompt: result.requiresGatewayRestart ? void 0 : panel.chatPrompt,
|
|
700
774
|
message: result.requiresGatewayRestart ? t("已保存,重启网关后生效。", "Settings saved. Restart the Gateway to apply them.") : t("已保存。", "Settings saved.")
|
|
701
775
|
};
|
|
702
776
|
}
|
|
703
777
|
const active = new ActivationPlanner(loader.buildManifestRegistry()).getActivatedIds(mergeActivationContext(service.currentConfig)).includes(id);
|
|
778
|
+
const runtime = loader.getRegistry().getExtension(id);
|
|
704
779
|
return {
|
|
705
780
|
fields: [toggle("enabled", t("启用插件", "Enable plugin"), active)],
|
|
781
|
+
chatPrompt: active && runtime?.enabled ? useCapability(runtime.name, id, t) : void 0,
|
|
706
782
|
actions: [{
|
|
707
783
|
id: "save",
|
|
708
784
|
label: t("保存设置", "Save settings")
|
|
@@ -834,6 +910,7 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
834
910
|
const directServers = Object.keys(pkg.servers).filter((name) => !declarations.some((account) => account.servers.includes(name)));
|
|
835
911
|
let authorizationUrl;
|
|
836
912
|
let authorizationQrUrl;
|
|
913
|
+
let signInExpiresAt;
|
|
837
914
|
let signInState;
|
|
838
915
|
let signInAction;
|
|
839
916
|
let redirectAction;
|
|
@@ -918,6 +995,7 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
918
995
|
const challengeUrl = safeLink(auth.challenge?.url);
|
|
919
996
|
if (auth.challenge?.type === "qr") authorizationQrUrl = challengeUrl;
|
|
920
997
|
if (auth.challenge?.type === "url") authorizationUrl = challengeUrl;
|
|
998
|
+
signInExpiresAt = auth.expiresAt;
|
|
921
999
|
signInInstruction = auth.challenge?.message;
|
|
922
1000
|
} else if (auth && "authorizationUrl" in auth) authorizationUrl = safeLink(auth.authorizationUrl);
|
|
923
1001
|
signInAction = (chosen ? "status:" : "status-server:") + target;
|
|
@@ -953,9 +1031,10 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
953
1031
|
].includes(signInState)) return {
|
|
954
1032
|
authorizationUrl,
|
|
955
1033
|
qrUrl: authorizationQrUrl,
|
|
1034
|
+
expiresAt: signInExpiresAt,
|
|
956
1035
|
revision: job?.revision,
|
|
957
1036
|
pollAction: signInAction,
|
|
958
|
-
message: signInInstruction ?? t("请在服务商页面完成授权,返回后会自动更新。", "Finish signing in with the provider. This panel updates automatically."),
|
|
1037
|
+
message: signInInstruction ?? (authorizationQrUrl ? t("请用对应应用扫描二维码。", "Scan this QR code with the service’s app.") : t("请在服务商页面完成授权,返回后会自动更新。", "Finish signing in with the provider. This panel updates automatically.")),
|
|
959
1038
|
...redirectAction ? {
|
|
960
1039
|
fields: [{
|
|
961
1040
|
...text("callback", t("浏览器最后打开的地址", "Address shown in your browser")),
|
|
@@ -971,6 +1050,7 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
971
1050
|
const result = {
|
|
972
1051
|
revision: job?.revision,
|
|
973
1052
|
actions: [],
|
|
1053
|
+
chatPrompt: active && pkg.readiness === "ready" && !store.pending(id) ? useCapability(pkg.manifest.name, id, t) : void 0,
|
|
974
1054
|
message: active ? t("已启用", "Enabled") : t("未启用", "Disabled")
|
|
975
1055
|
};
|
|
976
1056
|
const actions = result.actions;
|
|
@@ -1114,6 +1194,9 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
1114
1194
|
return channelPairPanel({
|
|
1115
1195
|
flow,
|
|
1116
1196
|
qrUrl: pending.needsCode ? void 0 : pending.qrUrl,
|
|
1197
|
+
authorizationUrl: pending.needsCode ? void 0 : pending.authorizationUrl,
|
|
1198
|
+
deviceVerificationCode: pending.needsCode ? void 0 : pending.deviceVerificationCode,
|
|
1199
|
+
expiresAt: pending.expires,
|
|
1117
1200
|
message: pending.message,
|
|
1118
1201
|
fields: pending.needsCode ? [text("code", t("微信验证码", "WeChat verification code"))] : void 0
|
|
1119
1202
|
}, t);
|
|
@@ -1140,7 +1223,7 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
1140
1223
|
const stored = flow ? flows.get(flow) : void 0;
|
|
1141
1224
|
if (command.action !== "pair" && (!stored || stored.channel !== id || stored.principal !== principal || stored.expires <= Date.now())) return {
|
|
1142
1225
|
...await channel(c, id, t),
|
|
1143
|
-
message: t("
|
|
1226
|
+
message: t("配置已过期,请重新连接。", "Setup expired. Connect again.")
|
|
1144
1227
|
};
|
|
1145
1228
|
const adapter = await service.ensureChannelRuntimePlugin(id);
|
|
1146
1229
|
if (!adapter?.runtimeActions) throw new McpDraftError(404, "Channel is unavailable.");
|
|
@@ -1178,17 +1261,25 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
1178
1261
|
if (!qrUrl) throw new McpDraftError(400, t("未能生成二维码,请重试。", "Could not generate a QR code. Try again."));
|
|
1179
1262
|
for (const [key, value] of flows) if (value.expires <= Date.now() || value.principal === principal && value.channel === id) flows.delete(key);
|
|
1180
1263
|
if (flows.size >= 128) flows.delete(flows.keys().next().value);
|
|
1264
|
+
const authorizationUrl = safeLink(payload.deviceVerification?.url);
|
|
1265
|
+
const deviceVerificationCode = authorizationUrl ? payload.deviceVerification?.userCode : void 0;
|
|
1266
|
+
const expiresAt = Date.now() + Math.min(payload.expiresInSec ?? 300, 300) * 1e3;
|
|
1181
1267
|
qr = {
|
|
1182
1268
|
flow: payload.conversationId,
|
|
1183
1269
|
qrUrl,
|
|
1184
|
-
|
|
1270
|
+
authorizationUrl,
|
|
1271
|
+
deviceVerificationCode,
|
|
1272
|
+
expiresAt,
|
|
1273
|
+
message: authorizationUrl ? t("请在验证页完成授权,返回后会自动更新。", "Complete authorization on the verification page. The status updates when you return.") : t("请用对应应用扫描二维码。", "Scan this QR code with the service’s app.")
|
|
1185
1274
|
};
|
|
1186
1275
|
flows.set(payload.conversationId, {
|
|
1187
1276
|
principal,
|
|
1188
1277
|
channel: id,
|
|
1189
1278
|
accountId: typeof payload.accountId === "string" ? payload.accountId : accountId,
|
|
1190
|
-
expires:
|
|
1279
|
+
expires: expiresAt,
|
|
1191
1280
|
qrUrl,
|
|
1281
|
+
authorizationUrl,
|
|
1282
|
+
deviceVerificationCode,
|
|
1192
1283
|
message: qr.message
|
|
1193
1284
|
});
|
|
1194
1285
|
}
|
|
@@ -1202,7 +1293,10 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
1202
1293
|
qr = {
|
|
1203
1294
|
flow,
|
|
1204
1295
|
qrUrl: payload.pinAction ? void 0 : stored?.qrUrl,
|
|
1205
|
-
|
|
1296
|
+
authorizationUrl: payload.pinAction ? void 0 : stored?.authorizationUrl,
|
|
1297
|
+
deviceVerificationCode: payload.pinAction ? void 0 : stored?.deviceVerificationCode,
|
|
1298
|
+
expiresAt: stored?.expires,
|
|
1299
|
+
message: payload.message ?? stored?.message,
|
|
1206
1300
|
fields: payload.pinAction ? [text("code", t("微信验证码", "WeChat verification code"))] : []
|
|
1207
1301
|
};
|
|
1208
1302
|
} else if (payload?.type === "poll" && !paired) {
|
|
@@ -1433,7 +1527,7 @@ function registerMobileCapabilityPanels(app, { service, strictRateLimitMiddlewar
|
|
|
1433
1527
|
actions: [
|
|
1434
1528
|
{
|
|
1435
1529
|
id: "pair",
|
|
1436
|
-
label: t("
|
|
1530
|
+
label: t("开始连接", "Start connection")
|
|
1437
1531
|
},
|
|
1438
1532
|
{
|
|
1439
1533
|
id: "manual",
|
|
@@ -2,10 +2,10 @@ import { init_transaction, runSqliteWriteTransaction } from "../../../storage/sq
|
|
|
2
2
|
import { init_voice, voiceCallPreferencesPatchSchema } from "../../../../packages/realtime-protocol/src/voice.js";
|
|
3
3
|
import { getPersonalRequest, init_request_repository, listPersonalRequests } from "../../../personal-agent/request-repository.js";
|
|
4
4
|
import { getPersonalAgent, resolveMessageReactionsEnabled } from "../../../personal-agent/repository.js";
|
|
5
|
-
import { TaskOriginRepository } from "../../../tasks/task-origin-repository.js";
|
|
6
5
|
import { AutomationScheduleSchema } from "../../../automations/domain/validation.js";
|
|
7
6
|
import { getAutomation } from "../../../automations/storage/automation-repository.js";
|
|
8
7
|
import "../../../automations/storage/index.js";
|
|
8
|
+
import { TaskOriginRepository } from "../../../tasks/task-origin-repository.js";
|
|
9
9
|
import { listDeliverables } from "../../../tasks/task-deliverables.js";
|
|
10
10
|
import { isPersonalSchedule, personalScheduleInput } from "../../../personal-agent/schedules.js";
|
|
11
11
|
import { cancelPersonalRequest, personalRequestSnapshot, publishPersonalRequest } from "../../../personal-agent/request-service.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { init_paths_state, resolveStateDir } from "../../../config/paths-state.js";
|
|
2
|
+
import { RuntimeError } from "../../../runtime-tools/errors.js";
|
|
2
3
|
import { managedHdcPath, managedHosJar, managedJavaHome } from "../../../runtime-tools/harmony-paths.js";
|
|
3
4
|
import { resolveAdbPath } from "../../../phone/adb-driver.js";
|
|
4
5
|
import { getPhoneRuntime } from "../../../phone/runtime.js";
|
|
5
|
-
import { RuntimeError } from "../../../runtime-tools/errors.js";
|
|
6
6
|
import { PhoneDependencyManager, probePhoneAdb } from "../../../runtime-tools/phone-dependencies.js";
|
|
7
7
|
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
8
8
|
import { z } from "zod";
|
|
@@ -10,15 +10,15 @@ import { listKnowledgeItems, writeKnowledgeItem } from "../../../knowledge-memor
|
|
|
10
10
|
import "../../../knowledge-memory/index.js";
|
|
11
11
|
import { resolveEffectiveAgentProfile } from "../../../config/agent-profile.js";
|
|
12
12
|
import { ProjectWorkspaceConflictError, ProjectWorkspaceMissingError } from "../../../projects/workspace-project.js";
|
|
13
|
-
import { TaskReadModelProjector } from "../../../tasks/task-read-model-projector.js";
|
|
14
|
-
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
15
|
-
import "../../../capabilities/runtime/dispatcher.js";
|
|
16
13
|
import { inferProjectExecutionMode, inferProjectKind } from "../../../projects/project-kind.js";
|
|
17
14
|
import { ProjectDeletionBlockedError, ProjectWorkspaceInUseError } from "../../../projects/project-service.js";
|
|
18
15
|
import { resolveProjectAgentId } from "../../../projects/project-agent.js";
|
|
19
16
|
import { inferSuggestedProjectDefaultAgentId } from "../../../projects/project-agent-suggestion.js";
|
|
20
17
|
import { buildProjectLoopOverview } from "../../../projects/project-loop.js";
|
|
21
18
|
import "../../../projects/index.js";
|
|
19
|
+
import { TaskReadModelProjector } from "../../../tasks/task-read-model-projector.js";
|
|
20
|
+
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
21
|
+
import "../../../capabilities/runtime/dispatcher.js";
|
|
22
22
|
import { TaskApplicationService } from "../../../tasks/task-application-service.js";
|
|
23
23
|
import { defineTaskContract } from "../../../tasks/task-contract-definition.js";
|
|
24
24
|
import { ProjectOperatingViewService, summarizeProjectOperatingView } from "../../../tasks/project-operating-view-service.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getClientIpFromHeaders } from "../../security/loopback.js";
|
|
2
2
|
import { loadCompactionSourceSnapshot } from "../../../storage/sqlite/transcript-repository.js";
|
|
3
3
|
import "../../../storage/sqlite/index.js";
|
|
4
|
-
import { resolveReverseProxyPublicUrl } from "../../public-url.js";
|
|
5
4
|
import { FileServiceError } from "../../../files/file-service.js";
|
|
5
|
+
import { resolveReverseProxyPublicUrl } from "../../public-url.js";
|
|
6
6
|
import { resolveGatewayEffectiveHost } from "../../../config/gateway-bind.js";
|
|
7
7
|
import { SHARE_CONFIG_DEFAULTS } from "../../../share/share-types.js";
|
|
8
8
|
import { resolveSiteShareConfig } from "../../../share/site-share-config.js";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TaskRetryRequestSchema } from "../../../../packages/gateway-contract/src/tasks.js";
|
|
2
|
+
import { init_src } from "../../../../packages/gateway-contract/src/index.js";
|
|
3
|
+
import { hasGatewayScope } from "../../security/gateway-scopes.js";
|
|
4
|
+
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
5
|
+
//#region src/gateway/hono/routes/task-retry.ts
|
|
6
|
+
init_src();
|
|
7
|
+
function registerTaskRetryRoutes(app, deps) {
|
|
8
|
+
app.post("/api/tasks/:id/retry", deps.taskRateLimitMiddleware ?? deps.strictRateLimitMiddleware, async (c) => {
|
|
9
|
+
if (!hasGatewayScope(getGatewayPrincipal(c).scopes, "tasks.write")) return c.json({ error: "Forbidden" }, 403);
|
|
10
|
+
const parsed = TaskRetryRequestSchema.safeParse(await c.req.json().catch(() => null));
|
|
11
|
+
if (!parsed.success) return c.json({ error: "Invalid task retry request" }, 400);
|
|
12
|
+
const result = await deps.service.retryTask({
|
|
13
|
+
taskId: c.req.param("id"),
|
|
14
|
+
...parsed.data
|
|
15
|
+
});
|
|
16
|
+
return c.json(result, result.status === "not_found" ? 404 : 200);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { registerTaskRetryRoutes };
|
|
@@ -2,11 +2,11 @@ import { getSessionConfig } from "../../../storage/sqlite/config-repository.js";
|
|
|
2
2
|
import { resolveEffectiveAgentProfile } from "../../../config/agent-profile.js";
|
|
3
3
|
import { effectiveWorkspacePathForSession, projectWorkspacePath } from "../../../session/session-workspace.js";
|
|
4
4
|
import { getProjectForSession } from "../../../projects/workspace.js";
|
|
5
|
+
import { ProjectService } from "../../../projects/project-service.js";
|
|
6
|
+
import "../../../projects/index.js";
|
|
5
7
|
import { getSessionInteractionPolicy, sessionInteractionPolicySchema } from "../../../agent/session/interaction-policy-state.js";
|
|
6
8
|
import { getChildRun, getChildRunMessages, listChildRuns, steerChildRun, stopChildRun } from "../../../agent/orchestration/child-run-monitor.js";
|
|
7
9
|
import { setSessionInteractionPolicy } from "../../../agent/session/interaction-policy.js";
|
|
8
|
-
import { ProjectService } from "../../../projects/project-service.js";
|
|
9
|
-
import "../../../projects/index.js";
|
|
10
10
|
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
11
11
|
import { getTuiJob, getTuiWorkspaceDiff, listTuiJobs, resizeTuiJob, searchTuiHistory, stopTuiJob, writeTuiJob } from "../../../tui/backend-services.js";
|
|
12
12
|
import { listTuiCapabilities } from "../../../tui/tui-capabilities.js";
|
|
@@ -8,10 +8,10 @@ import { createPriorityWindow, createUserGoal, listPriorityWindows, listUserGoal
|
|
|
8
8
|
import { deleteUserAssertion, getAssertionSlot, getUserAssertion, listUserAssertionSources, listUserAssertions, reconcileAssertion, setAssertionStatus, setUserAssertionScope } from "../../../user-model/repository.js";
|
|
9
9
|
import { canUseAssertion } from "../../../user-model/usage-policy.js";
|
|
10
10
|
import { applyUserProfilePatch, getUserProfileSnapshot } from "../../../user-model/profile.js";
|
|
11
|
-
import { memoryVersion } from "../../../user-context/memory-version.js";
|
|
12
11
|
import { listActionRuleSuggestions } from "../../../user-model/action-rule-suggestions.js";
|
|
13
12
|
import { bootstrapUserModel } from "../../../user-model/bootstrap.js";
|
|
14
13
|
import "../../../user-model/index.js";
|
|
14
|
+
import { memoryVersion } from "../../../user-context/memory-version.js";
|
|
15
15
|
import { listMemoryMaintenanceRuns } from "../../../memory-maintenance/service.js";
|
|
16
16
|
import "../../../memory-maintenance/index.js";
|
|
17
17
|
import { getExecutionContextAudit, recordExecutionContextFeedback } from "../../../agent/context/audit.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TaskRepository, init_task_repository } from "../tasks/task-repository.js";
|
|
2
2
|
import { resolveMediaReference } from "../media/media-reference.js";
|
|
3
|
-
import { pendingTranscriptReferencesMediaUri } from "../agent/inbound/attachment-pipeline.js";
|
|
4
|
-
import { TaskContextRepository } from "../tasks/task-context-repository.js";
|
|
5
3
|
import { FileServiceError } from "../files/file-service.js";
|
|
4
|
+
import { TaskContextRepository } from "../tasks/task-context-repository.js";
|
|
5
|
+
import { pendingTranscriptReferencesMediaUri } from "../agent/inbound/attachment-pipeline.js";
|
|
6
6
|
import { messagesReferenceMediaUri, taskOutcomeReferencesMediaUri, taskResultReferencesMediaUri } from "../media/session-references.js";
|
|
7
7
|
//#region src/gateway/media-access.ts
|
|
8
8
|
init_task_repository();
|
|
@@ -5,10 +5,10 @@ import { init_agent_scope, resolveDefaultAgentId } from "../../agent/agent-scope
|
|
|
5
5
|
import { init_paths, resolveExtensionsDir } from "../../config/paths.js";
|
|
6
6
|
import { getExtensionLockfileManager } from "../../extensions/lockfile.js";
|
|
7
7
|
import { AgentPluginStore } from "../../extensions/agent-plugins/store.js";
|
|
8
|
-
import { removeSkillsLockEntry } from "../../agent/skills/hub-lock.js";
|
|
9
|
-
import { deleteManagedSkill, installSkillFromZip, listManagedSkillDirs } from "../../agent/skills/managed-store.js";
|
|
10
8
|
import { createSkillConfigManager } from "../../agent/skills/config.js";
|
|
11
9
|
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "../../agent/skills/workspace-skills-dir.js";
|
|
10
|
+
import { removeSkillsLockEntry } from "../../agent/skills/hub-lock.js";
|
|
11
|
+
import { deleteManagedSkill, installSkillFromZip, listManagedSkillDirs } from "../../agent/skills/managed-store.js";
|
|
12
12
|
import { normalizeSkillInstallTarget } from "../../agent/skills/install-target.js";
|
|
13
13
|
import { pluginSkillPreview, withPluginSkillCatalog } from "../../extensions/agent-plugins/skill-catalog.js";
|
|
14
14
|
import { isAgentPluginArchive, withAgentPluginArchive } from "../../extensions/agent-plugins/sources.js";
|
|
@@ -148,6 +148,15 @@ export declare class GatewayService {
|
|
|
148
148
|
dispatchTaskEvents(): void;
|
|
149
149
|
runAgent(...args: Parameters<GatewayAgentRunner['runAgent']>): ReturnType<GatewayAgentRunner['runAgent']>;
|
|
150
150
|
readonly connectionRecovery: ConnectionRecoveryService;
|
|
151
|
+
retryTask(input: import('../tasks/task-retry-service.js').TaskRetryInput): Promise<{
|
|
152
|
+
status: "queued" | "cancelled" | "waiting" | "failed" | "succeeded" | "running" | "verifying" | "blocked" | "waiting_connection" | "not_found" | "changed" | "not_retryable";
|
|
153
|
+
taskId?: string;
|
|
154
|
+
requestId?: string;
|
|
155
|
+
runId?: string;
|
|
156
|
+
connectionConversationId?: string;
|
|
157
|
+
connectionPhase?: "queued" | "ready" | "needs_connection" | "review_scope";
|
|
158
|
+
reason?: "check_failed" | "other_wait" | "read_scope_unverified" | "account_unavailable";
|
|
159
|
+
}>;
|
|
151
160
|
submitSessionInput(...args: Parameters<GatewayAgentRunner['submitSessionInput']>): Promise<{
|
|
152
161
|
ok: true;
|
|
153
162
|
effectiveDelivery: import("../storage/sqlite/session-input-repository.js").SessionInputDelivery;
|