@xopcai/xopc 0.0.445 → 0.0.447
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/dist/assets/{auth-DAIwDtVp.js → auth-CQmxIyWw.js} +225 -8
- package/dist/browser-ext/dist/background.js +254 -16
- package/dist/browser-ext/dist/sidepanel.html +1 -1
- package/dist/browser-ext/dist/sidepanel.js +3 -49
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/src/draft-stream-lifecycle.d.ts +2 -3
- package/dist/extensions/telegram/src/plugin.d.ts +0 -1
- package/dist/extensions/telegram/src/plugin.js +0 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{activity-store-CuPXAoLe.js → activity-store-D_KDDoA1.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-D92uHOFV.js → agent-avatar-dicebear-CGHzO0HR.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-display-DINzeGs0.js → agent-avatar-display-Dm1YHaAt.js} +2 -2
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-rH1QpgiR.js → agent-defaults-settings-panel-BGTfRvG5.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-B2vXlrDW.js → agent-plugin-dialog-D0AQB-2O.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-lvQfOQPN.js → agents-Ckr-T2KU.js} +3 -3
- package/dist/gateway/static/root/assets/{agents-admin-api-DPLtjJtX.js → agents-admin-api-D0qHxAok.js} +1 -1
- package/dist/gateway/static/root/assets/{api-snfMD8_Y.js → api-pQXrYBTk.js} +1 -1
- package/dist/gateway/static/root/assets/{api-CEzBruRJ.js → api-uriioEZx.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-CONwDpqL.js → app-management-settings-panel-CQbKhrjd.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-Bu7K-_ri.js → appearance-settings-Dm0GM368.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-C3iDd3ZQ.js → apps-page-DCeINCy-.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-CfLz9o-2.js → archive-plugin-Cd4FOTEH.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-api-Dl9fi8t0.js → automation-api-B3df53ms.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-result-state-BjjZCxee.js → automation-result-state-CpgaWu2r.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-run-list-9IPHu_UC.js → automation-run-list-DrJfwJN_.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-task-card-CKbHMLSy.js → automation-task-card-C2mxNw5Q.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-K3trjTZl.js → automations-page-B5bnb-N8.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-D7m3w_9B.js → automations-workspace-7R4mL3M-.js} +2 -2
- package/dist/gateway/static/root/assets/{binary-plugins-Bv4ixxo4.js → binary-plugins-C0QOjfJV.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-CtaJSB9U.js → block-editor-BY1Mb-WW.js} +3 -2
- package/dist/gateway/static/root/assets/{browser-settings-page-CmBsnx24.js → browser-settings-page-DUsk02LK.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-DJYgOjeq.js → capabilities-Bt1fAcDI.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-DDJJhQ40.js → capabilities-Bu7efUpH.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-page-CBqvHAyp.js → capabilities-page-DFv5-mPY.js} +2 -2
- package/dist/gateway/static/root/assets/{capabilities-settings-panel-wjezs0OE.js → capabilities-settings-panel-BtRMZjAx.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-D4q8hiD0.js → channels-CByFQQ_H.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-agents-api-BOB3dILf.js → chat-agents-api-SruH_oEQ.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-chart-block-DsaCatBN.js → chat-chart-block-BBchFbUa.js} +1 -1
- package/dist/gateway/static/root/assets/chat-page-C3ttsYGZ.js +71 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-D9o0nUEV.js → chat-terminal-dock-DCNAz0CB.js} +1 -1
- package/dist/gateway/static/root/assets/{command-palette-api-Cj0_7g9o.js → command-palette-api-r8U5soT7.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-payload-handoff-CoDWKzBm.js → composer-payload-handoff-RaEQXTjj.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-DJ9BIOHC.js → computer-settings-page-C7cj9Zyx.js} +1 -1
- package/dist/gateway/static/root/assets/{connected-providers-grid-C5-3MDIj.js → connected-providers-grid-DgJ7I1do.js} +1 -1
- package/dist/gateway/static/root/assets/{connection-usage-guide-bD1sKiAp.js → connection-usage-guide-De6QJt8B.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-BEq3i3Vi.js → connector-service-page-qSYlFATU.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-api-DEExP6a7.js → connectors-api-CqyteNnT.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-QVWuoxuK.js → connectors-page-BB3V-zJS.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-D2whl8Ci.js → date-picker-CB6IVCiq.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-narrative-C8zQtMcw.js → desktop-pet-narrative-B7I1II0Z.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-C54b1FY4.js → desktop-pet-settings-Cm1O5CEG.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-qnIdmNnH.js → desktop-pet-wqyOn6xs.js} +1 -1
- package/dist/gateway/static/root/assets/{dev-view-store-bryv5YRw.js → dev-view-store-BxPWx1Gi.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-Du-yOxZv.js → device-pairing-wizard-CqgjknYy.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-GsMkjw59.js → directory-picker-path-field-BCOUShCs.js} +1 -1
- package/dist/gateway/static/root/assets/{discussion-annotation-sync-CrpDiC7J.js → discussion-annotation-sync-uvwyXFX3.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-CDZfdMAR.js → extension-debug-page-C7ZJumIY.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-iframe-host-CG70QWPS.js → extension-iframe-host-B0rM3Ohp.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-marketplace-api-D7Av-sOf.js → extension-marketplace-api-DIGw487r.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-DpJTL6-v.js → extension-page-C5LnL_Dy.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-BZTbdvCF.js → extension-provider-D5L3t0e3.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-CC4rmiFC.js → extension-settings-page-DnXoNNDa.js} +1 -1
- package/dist/gateway/static/root/assets/{file-preview-surface-Dtla5oAW.js → file-preview-surface-Bfqc0ZKv.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-B5THNdYK.js → gateway-config-swr-Db2fE-gT.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-nI6k8qP8.js +1 -0
- package/dist/gateway/static/root/assets/gateway-realtime-store-CjYSSi_l.js +1 -0
- package/dist/gateway/static/root/assets/gateway-restart-CyhN9Fk3.js +1 -0
- package/dist/gateway/static/root/assets/gateway-settings-Nr0Bzbsy.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry-CqtCJzWJ.js → gateway-startup-retry-Du7l0oxt.js} +1 -1
- package/dist/gateway/static/root/assets/{global-defaults-api-BQMdHLlp.js → global-defaults-api-qGBKLt28.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-Df3X6-Ko.js → home-page-h6D4Pqqc.js} +2 -2
- package/dist/gateway/static/root/assets/{image-generation-api-G3tQFhif.js → image-generation-api-DeolJQxY.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-BmEqiunH.js → imports-page-B3kUV_dq.js} +1 -1
- package/dist/gateway/static/root/assets/index-Bj6IrJGJ.js +11 -0
- package/dist/gateway/static/root/assets/index-D3YWUSNe.css +1 -0
- package/dist/gateway/static/root/assets/install-connector-dialog-Brl22l1N.js +1 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-CtNI6i7K.js → keyboard-shortcuts-settings-CFrEEDZu.js} +1 -1
- package/dist/gateway/static/root/assets/languages-kF11aUYU.js +2 -0
- package/dist/gateway/static/root/assets/{local-app-workbench-page-CE46mHc0.js → local-app-workbench-page-CbHgQzs4.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-DqZT5hLH.js → local-apps-page-Cdeawk2X.js} +1 -1
- package/dist/gateway/static/root/assets/{local-session-drafts-Bt_e3A8f.js → local-session-drafts-oWhYPECv.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-Bld7_m-Q.js → locale-store-BY-fRY-q.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-CzajqK40.js → logs-page-3dWLrUy0.js} +1 -1
- package/dist/gateway/static/root/assets/management-api-BzdYxqsC.js +1 -0
- package/dist/gateway/static/root/assets/management-settings-yWWgFlzF.js +1 -0
- package/dist/gateway/static/root/assets/{markdown-editor-BuuGlcfG.js → markdown-editor-CjQJ-Nho.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-B3cFKCfO.js → markdown-view-ClNfoiYC.js} +1 -1
- package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-ZcY1nqMO.js → mcp-conversation-setup-page-C0M7yW4O.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-DSOplRhW.js → media-plugins-DmVG3TQ5.js} +1 -1
- package/dist/gateway/static/root/assets/messages-DFCLetQl.js +3 -0
- package/dist/gateway/static/root/assets/{model-selector-yAKlOR3O.js → model-selector-DkytsBae.js} +1 -1
- package/dist/gateway/static/root/assets/{models-hub-cache-8V-ZpAIa.js → models-hub-cache-CESzQ_tk.js} +1 -1
- package/dist/gateway/static/root/assets/navigation-ByOzYT0t.js +1 -0
- package/dist/gateway/static/root/assets/note-detail-panel-CQIrUO6h.js +7 -0
- package/dist/gateway/static/root/assets/note-image-lightbox-Cw-TaViX.js +1 -0
- package/dist/gateway/static/root/assets/{notes-api-CVQqqmGI.js → notes-api-32qiHxz2.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-page-DIugUbkV.js → notes-page-gl59x-7l.js} +2 -2
- package/dist/gateway/static/root/assets/{oauth-api-DGa6PTuq.js → oauth-api-CMpfoRed.js} +1 -1
- package/dist/gateway/static/root/assets/{oauth-provider-connect-Bc-KLH1e.js → oauth-provider-connect-XzlLkqnK.js} +1 -1
- package/dist/gateway/static/root/assets/page-context-capture-button-CdMxGZaM.js +1 -0
- package/dist/gateway/static/root/assets/{page-context-draft-GveHK8e2.js → page-context-draft-CrgFs0h3.js} +1 -1
- package/dist/gateway/static/root/assets/page-header-store-BNjlQHqU.js +1 -0
- package/dist/gateway/static/root/assets/{personal-avatar-Cu8lGBXZ.js → personal-avatar-BHMRbUIc.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-page-BZWJKyZ8.js → personal-page-DUuJe2P9.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-settings-panel-awr10jTV.js → personal-settings-panel-CZjvI9rl.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-dependencies-card-CAxn3usD.js → phone-dependencies-card-BCEI4PGp.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-connection-BBG3LxRP.js → phone-model-connection-BqOzyoRr.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-picker-CfPjKpnd.js → phone-model-picker-BGAAMeo6.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-settings-page-C4dJdwRW.js → phone-settings-page-BdoFCa2J.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-workspace-store-BKltFHtG.js → phone-workspace-store-D1BS7otl.js} +1 -1
- package/dist/gateway/static/root/assets/{plugin-details-dialog-BqcFfZFH.js → plugin-details-dialog-BP-ZS2g2.js} +1 -1
- package/dist/gateway/static/root/assets/{preference-select-fields-QlyIA8ve.js → preference-select-fields-RITbo_ES.js} +1 -1
- package/dist/gateway/static/root/assets/{product-automation-feedback-CRsfuAXl.js → product-automation-feedback-CQvcSORB.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-CQ4dk-_l.js → product-open-page-CJfYOVkw.js} +1 -1
- package/dist/gateway/static/root/assets/product-preview-content-B0-rh4uS.js +1 -0
- package/dist/gateway/static/root/assets/product-preview-modal-CSFxc7oy.js +2 -0
- package/dist/gateway/static/root/assets/project-detail-page-CgU7vGyT.js +7 -0
- package/dist/gateway/static/root/assets/project-overview-model-DrLXaO-t.js +1 -0
- package/dist/gateway/static/root/assets/{project-understanding-CU2af95r.js → project-understanding-szQw-qin.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-BsgZb6n9.js → projects-page-BFZsIyzp.js} +1 -1
- package/dist/gateway/static/root/assets/{providers-api-CspehmSU.js → providers-api-j511FMYv.js} +1 -1
- package/dist/gateway/static/root/assets/{recording-upload-BOZAOdCI.js → recording-upload-jq70ER5Y.js} +1 -1
- package/dist/gateway/static/root/assets/{registry-api-Bdp3UUyz.js → registry-api-BnEoY6_B.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-Bos3uwAT.js → remote-access-hub-B8AHjzC5.js} +1 -1
- package/dist/gateway/static/root/assets/{resource-unavailable-DJR3SCy6.js → resource-unavailable-AT-LkLIB.js} +1 -1
- package/dist/gateway/static/root/assets/route-preload-ByDpGuZp.js +2 -0
- package/dist/gateway/static/root/assets/{runtime-tools-api-DsbahxzE.js → runtime-tools-api-BDjAwlQF.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-DW9_OFi2.js → runtime-tools-settings-panel-kvbXN_HV.js} +1 -1
- package/dist/gateway/static/root/assets/{service-recommendation-list-Bd1JDO5T.js → service-recommendation-list-DquxQCKH.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-DjnHJ-0n.js → session-api-CgTDekPG.js} +1 -1
- package/dist/gateway/static/root/assets/{session-manager-ChHnJOWW.js → session-manager-V8cj3NVD.js} +2 -2
- package/dist/gateway/static/root/assets/{sessions-page-BM-oqd22.js → sessions-page-KFescmNm.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-JCPJyeK-.js +1 -0
- package/dist/gateway/static/root/assets/{settings-advanced-section-CM44UlF8.js → settings-advanced-section-Daxv3VGf.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-mode-store-Blc4C8aw.js → settings-mode-store-LUeLxacj.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-irv-JoTz.js → settings-page-Bi6rvZGw.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-header-BYFaTD8a.js → settings-page-header-Dmw3nYJ1.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-layout-CnUQSxT3.js → settings-page-layout-YJXlkr_Z.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-interaction-page-DqaiLQ0I.js → setup-interaction-page-Dd3Ovfgm.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-iOYgfkoK.js → setup-status-panel-BZZXpXiB.js} +1 -1
- package/dist/gateway/static/root/assets/{share-link-dialog-C_uYNUlp.js → share-link-dialog-B1g7Xero.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-CFebGqyB.js → share-preview-page-1GlB7603.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-api-C2GDyqxP.js → shares-api-DXOD--vt.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-B-7la3QN.js → shares-settings-Bj-HKS3s.js} +1 -1
- package/dist/gateway/static/root/assets/skill-api-HQEXke4-.js +1 -0
- package/dist/gateway/static/root/assets/{skill-list-api-7MY9ewiu.js → skill-list-api-CJBrtxil.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-DkDpu3Wd.js → skill-reload-api-CO6jhwui.js} +1 -1
- package/dist/gateway/static/root/assets/skills-page-DAxov1a8.js +2 -0
- package/dist/gateway/static/root/assets/{source-workspace-editor-kxosllTu.js → source-workspace-editor-BwYU5OEh.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-BltKPJdb.js → system-settings-panel-By3gokfs.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-6awKGnOr.js → task-detail-page-Cf58C6gC.js} +1 -1
- package/dist/gateway/static/root/assets/{task-result-evidence-Cy9txdqV.js → task-result-evidence-DWfp9UIc.js} +1 -1
- package/dist/gateway/static/root/assets/{terminal-panel-store-DUEJoa1M.js → terminal-panel-store-DBC-pqGy.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-DsvYj7Vy.js → theme-store-C57ZxHqm.js} +1 -1
- package/dist/gateway/static/root/assets/tool-friendly-title-YQmN1S2k.js +2 -0
- package/dist/gateway/static/root/assets/{tracing-settings-page-B_Xdc2VF.js → tracing-settings-page-BQ7regHS.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-B6BhWTh3.js → tunnel-api-BOJVQPqI.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-activity-store-B7rFXhDk.js → understanding-activity-store-YrDh1XvR.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-refresh-store-DCFASve5.js → understanding-refresh-store-D6gM1s8M.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-DqzosTxy.js → usage-page-DpC6gP1I.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-DsqcLHV9.js → use-autosave-NOpNkLFw.js} +1 -1
- package/dist/gateway/static/root/assets/{use-composer-attachments-ClakaDU1.js → use-composer-attachments-R6kKpDgc.js} +1 -1
- package/dist/gateway/static/root/assets/use-file-preview-expanded-M7LSoDLc.js +15 -0
- package/dist/gateway/static/root/assets/{use-personal-profile-T2e6P5Ed.js → use-personal-profile-JPLBYzew.js} +1 -1
- package/dist/gateway/static/root/assets/{use-workspace-tree-Dq0qgK3N.js → use-workspace-tree-jzKVAl3N.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-Ziz55hVM.js → user-model-page-CPZgl93P.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-api-key-field-D7NPAc1E.js → voice-api-key-field-R_KAYzHp.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-UQDTh6hh.js → voice-config-api-D6ueBjfw.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-input-shortcut-events-SD2gZVg8.js → voice-input-shortcut-events-04u9YoRg.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-transcribe-api-Bf9FaI-p.js → voice-transcribe-api-B2NVJYnu.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-B41GOFXh.js → work-discovery-overlay-BHaemIrQ.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-page-NNhExALx.js → work-discovery-page-Bt_j5iQ5.js} +1 -1
- package/dist/gateway/static/root/assets/{working-directory-picker-modal-DeNWVFFK.js → working-directory-picker-modal-5EsBeKBO.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-api-DrVss2Fd.js → workspace-api-BmUCKePi.js} +2 -2
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-Sy1CLe2K.js +1 -0
- package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-C2egBzza.js → workspace-file-preview-dialog-hYGX2hWZ.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-open-location-menu-XFUtwfLY.js → workspace-open-location-menu-DqLui4B1.js} +1 -1
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-BlhFT1q9.js → xopc-cloud-account-card-CVq7U7Ft.js} +1 -1
- package/dist/gateway/static/root/index.html +85 -84
- package/dist/package.js +1 -1
- package/dist/packages/endpoint-tools-client/src/index.js +309 -17
- package/dist/packages/endpoint-tools-protocol/src/index.js +62 -10
- package/dist/packages/endpoint-tools-protocol/src/provider-execution.js +32 -0
- package/dist/packages/endpoint-tools-protocol/src/providers.js +233 -0
- package/dist/packages/gateway-contract/src/clarifications.js +1 -1
- package/dist/packages/gateway-contract/src/device-pairing.js +2 -1
- package/dist/packages/gateway-contract/src/device-request-proof.js +32 -0
- package/dist/packages/gateway-contract/src/index.js +2 -2
- package/dist/packages/realtime-client/src/index.js +1 -0
- package/dist/packages/realtime-protocol/src/index.js +4 -1
- package/dist/src/agent/agent-manager.d.ts +0 -1
- package/dist/src/agent/agent-manager.js +1 -4
- package/dist/src/agent/background-review/run-background-review.js +1 -1
- package/dist/src/agent/commands/command-registry.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +4 -7
- package/dist/src/agent/embedded/session-runner.js +8 -3
- package/dist/src/agent/embedded/tool-metadata.d.ts +1 -1
- package/dist/src/agent/embedded/tool-search-extension.d.ts +1 -0
- package/dist/src/agent/embedded/tool-search-extension.js +35 -2
- package/dist/src/agent/external-tools/cliProvider.js +2 -2
- package/dist/src/agent/external-tools/composio-provider.js +2 -2
- package/dist/src/agent/external-tools/endpoint-provider.d.ts +3 -0
- package/dist/src/agent/external-tools/endpoint-provider.js +96 -18
- package/dist/src/agent/external-tools/index.js +2 -2
- package/dist/src/agent/external-tools/personal-request-scope.js +6 -0
- package/dist/src/agent/external-tools/read-policy.js +15 -8
- package/dist/src/agent/external-tools/service.js +8 -0
- package/dist/src/agent/external-tools/types.d.ts +1 -0
- package/dist/src/agent/inbound/inbound-loop.js +2 -1
- package/dist/src/agent/mcp/continuation-guard.js +1 -1
- package/dist/src/agent/mcp/conversation-setup.js +1 -1
- package/dist/src/agent/mcp/discovery.js +1 -1
- package/dist/src/agent/mcp/native-mcp.d.ts +2 -0
- package/dist/src/agent/mcp/native-mcp.js +5 -0
- package/dist/src/agent/mcp/transport.d.ts +2 -1
- package/dist/src/agent/mcp/transport.js +21 -6
- package/dist/src/agent/orchestration/agent-orchestrator.d.ts +2 -1
- package/dist/src/agent/orchestration/agent-orchestrator.js +6 -5
- package/dist/src/agent/service.js +1 -1
- package/dist/src/agent/skills/index.js +1 -1
- package/dist/src/agent/skills/managed-store.js +1 -1
- package/dist/src/agent/skills/marketplace/adapters/clawhub/adapter.d.ts +1 -0
- package/dist/src/agent/skills/marketplace/adapters/clawhub/adapter.js +56 -30
- package/dist/src/agent/skills/marketplace/search.js +2 -2
- package/dist/src/agent/skills/skill-manage-ops.js +1 -1
- package/dist/src/agent/tool-manuals/computer.d.ts +1 -1
- package/dist/src/agent/tool-manuals/computer.js +2 -0
- package/dist/src/agent/tools/clarify-tool.d.ts +1 -0
- package/dist/src/agent/tools/device-use-tool.d.ts +9 -0
- package/dist/src/agent/tools/device-use-tool.js +158 -0
- package/dist/src/agent/tools/factory.js +24 -3
- package/dist/src/agent/tools/personal-read-tool.js +1 -1
- package/dist/src/agent/tools/xopc-use-tool.js +2 -2
- package/dist/src/agent-catalog/capabilities.js +2 -2
- package/dist/src/agent-catalog/repository.js +1 -1
- package/dist/src/automations/api/routes.js +2 -2
- package/dist/src/automations/capabilities/drafts.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/mcp-source.js +1 -1
- package/dist/src/automations/service/action-executor.js +10 -2
- package/dist/src/browser/providers/browser-ext-install.js +1 -1
- package/dist/src/browser/remote/device-driver.js +7 -3
- package/dist/src/browser/remote/device-target.d.ts +1 -1
- package/dist/src/browser/remote/device-target.js +8 -6
- package/dist/src/capabilities/runtime/dispatcher.js +1 -1
- package/dist/src/capabilities/runtime/product.js +1 -1
- package/dist/src/channels/lifecycle-supervisor.js +2 -1
- package/dist/src/channels/pairing/paths.d.ts +1 -1
- package/dist/src/channels/pairing/paths.js +1 -1
- package/dist/src/channels/verified-inbound.d.ts +13 -0
- package/dist/src/channels/verified-inbound.js +29 -0
- package/dist/src/cli/command-loaders.js +1 -0
- package/dist/src/cli/command-manifest.js +4 -0
- package/dist/src/cli/commands/agents.js +1 -1
- package/dist/src/cli/commands/device-host.js +52 -0
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/cli/commands/models.js +1 -1
- package/dist/src/cli/commands/onboard/model.js +1 -1
- package/dist/src/cli/index.js +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +1 -1
- package/dist/src/computer/diagnostics.d.ts +3 -3
- package/dist/src/computer/endpoint-transport.js +1 -1
- package/dist/src/computer/errors.js +4 -0
- package/dist/src/computer/evaluation.d.ts +2 -2
- package/dist/src/computer/flows.js +1 -1
- package/dist/src/computer/runtime.d.ts +1 -0
- package/dist/src/computer/runtime.js +25 -3
- package/dist/src/config/agent-profile.js +1 -1
- package/dist/src/config/paths.d.ts +1 -1
- package/dist/src/config/paths.js +1 -1
- package/dist/src/config/schema.d.ts +2 -0
- package/dist/src/config/schema.js +1 -0
- package/dist/src/connectors/composio-triggers.js +1 -1
- package/dist/src/endpoint-tools/bridge-host.d.ts +5 -4
- package/dist/src/endpoint-tools/bridge-host.js +165 -30
- package/dist/src/endpoint-tools/bridge.d.ts +1 -1
- package/dist/src/endpoint-tools/bridge.js +39 -7
- package/dist/src/endpoint-tools/capability-catalog.d.ts +1 -1
- package/dist/src/endpoint-tools/capability-catalog.js +1 -1
- package/dist/src/endpoint-tools/delegation.d.ts +60 -0
- package/dist/src/endpoint-tools/delegation.js +130 -0
- package/dist/src/endpoint-tools/desktop-execution.js +1 -1
- package/dist/src/endpoint-tools/device-host.d.ts +98 -0
- package/dist/src/endpoint-tools/device-host.js +89 -0
- package/dist/src/endpoint-tools/execution-actor.d.ts +6 -0
- package/dist/src/endpoint-tools/execution-actor.js +53 -0
- package/dist/src/endpoint-tools/grant-service.d.ts +7 -4
- package/dist/src/endpoint-tools/grant-service.js +12 -4
- package/dist/src/endpoint-tools/host-credentials.d.ts +42 -0
- package/dist/src/endpoint-tools/host-credentials.js +144 -0
- package/dist/src/endpoint-tools/index.d.ts +1 -1
- package/dist/src/endpoint-tools/index.js +3 -3
- package/dist/src/endpoint-tools/invocation-service.d.ts +47 -4
- package/dist/src/endpoint-tools/invocation-service.js +328 -36
- package/dist/src/endpoint-tools/mcp-provider.d.ts +32 -0
- package/dist/src/endpoint-tools/mcp-provider.js +258 -0
- package/dist/src/endpoint-tools/policy.js +0 -3
- package/dist/src/endpoint-tools/provider-catalog.d.ts +45 -0
- package/dist/src/endpoint-tools/provider-catalog.js +202 -0
- package/dist/src/endpoint-tools/provider-operation-journal.d.ts +18 -0
- package/dist/src/endpoint-tools/provider-operation-journal.js +111 -0
- package/dist/src/endpoint-tools/provider-operation-status.d.ts +33 -0
- package/dist/src/endpoint-tools/provider-operation-status.js +80 -0
- package/dist/src/endpoint-tools/registry.d.ts +14 -1
- package/dist/src/endpoint-tools/registry.js +15 -1
- package/dist/src/endpoint-tools/result-projector.d.ts +1 -2
- package/dist/src/endpoint-tools/result-projector.js +3 -11
- package/dist/src/endpoint-tools/runtime.d.ts +10 -2
- package/dist/src/endpoint-tools/runtime.js +102 -11
- package/dist/src/endpoint-tools/target-resolver.d.ts +8 -3
- package/dist/src/endpoint-tools/target-resolver.js +24 -5
- package/dist/src/endpoint-tools/task-targets.d.ts +38 -0
- package/dist/src/endpoint-tools/task-targets.js +95 -0
- package/dist/src/endpoint-tools/upload-service.d.ts +34 -1
- package/dist/src/endpoint-tools/upload-service.js +88 -2
- package/dist/src/execution-environments/local-worktree-manager.js +1 -1
- package/dist/src/extensions/agent-plugins/refresh-runtime-access.d.ts +7 -2
- package/dist/src/extensions/agent-plugins/refresh-runtime-access.js +36 -25
- package/dist/src/extensions/agent-plugins/setup.d.ts +1 -1
- package/dist/src/extensions/agent-plugins/setup.js +2 -2
- package/dist/src/extensions/agent-plugins/skill-catalog.js +1 -1
- package/dist/src/extensions/agent-plugins/validation.js +1 -1
- package/dist/src/extensions/loader.d.ts +0 -1
- package/dist/src/extensions/loader.js +3 -38
- package/dist/src/extensions/typed-event-bus.d.ts +0 -1
- package/dist/src/extensions/typed-event-bus.js +0 -1
- package/dist/src/gateway/agents-admin.js +1 -1
- package/dist/src/gateway/global-defaults-admin.js +1 -1
- package/dist/src/gateway/hono/routes/agent-stream.js +12 -1
- package/dist/src/gateway/hono/routes/agents.js +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +1 -1
- package/dist/src/gateway/hono/routes/device-authorizations.js +4 -10
- package/dist/src/gateway/hono/routes/device-hosts.d.ts +3 -0
- package/dist/src/gateway/hono/routes/device-hosts.js +82 -0
- package/dist/src/gateway/hono/routes/device-providers.d.ts +3 -0
- package/dist/src/gateway/hono/routes/device-providers.js +297 -0
- package/dist/src/gateway/hono/routes/device-targets.d.ts +3 -0
- package/dist/src/gateway/hono/routes/device-targets.js +117 -0
- package/dist/src/gateway/hono/routes/endpoint-compatibility.js +2 -1
- package/dist/src/gateway/hono/routes/endpoint-tools.js +2 -78
- package/dist/src/gateway/hono/routes/lazy-bundles.js +24 -8
- package/dist/src/gateway/hono/routes/notes.js +2 -2
- package/dist/src/gateway/hono/routes/phone-setup.js +1 -1
- package/dist/src/gateway/hono/routes/projects.js +2 -2
- package/dist/src/gateway/hono/routes/session-command-handler.js +2 -0
- package/dist/src/gateway/hono/routes/session-input-handler.js +3 -1
- package/dist/src/gateway/hono/routes/tasks.js +1 -1
- package/dist/src/gateway/image-generation-setup.js +1 -1
- package/dist/src/gateway/security/device-request-proof.js +8 -18
- package/dist/src/gateway/security/gateway-scopes.js +1 -0
- package/dist/src/gateway/service/agent-runner.d.ts +3 -0
- package/dist/src/gateway/service/agent-runner.js +21 -5
- package/dist/src/gateway/service/config-coordinator.d.ts +1 -0
- package/dist/src/gateway/service.js +9 -4
- package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
- package/dist/src/home-intelligence/host.js +2 -2
- package/dist/src/imports/importService.js +1 -1
- package/dist/src/local-apps/service.js +1 -1
- package/dist/src/mcp/capability-server.js +1 -1
- package/dist/src/notes/agent-context.d.ts +3 -0
- package/dist/src/notes/agent-context.js +32 -4
- package/dist/src/personal-agent/proactivity/repository.js +1 -1
- package/dist/src/personal-agent/proactivity/service.js +1 -1
- package/dist/src/personal-agent/service.js +1 -1
- package/dist/src/phone/assistance.js +1 -1
- package/dist/src/phone/location-environment.js +1 -1
- package/dist/src/phone/repository.js +1 -1
- package/dist/src/phone/setup/service.js +1 -1
- package/dist/src/realtime/runtime.js +5 -0
- package/dist/src/runtime-tools/archive.js +1 -1
- package/dist/src/session/session-context-for-llm.js +9 -1
- package/dist/src/session/store.js +1 -1
- package/dist/src/share/hosted-session-share.js +1 -1
- package/dist/src/share/share-store.js +1 -1
- package/dist/src/storage/sqlite/clarification-wait-repository.d.ts +7 -1
- package/dist/src/storage/sqlite/clarification-wait-repository.js +40 -2
- package/dist/src/storage/sqlite/device-access-repository.d.ts +2 -8
- package/dist/src/storage/sqlite/device-access-repository.js +1 -3
- package/dist/src/storage/sqlite/endpoint-tool-invocation-repository.d.ts +1 -0
- package/dist/src/storage/sqlite/endpoint-tool-invocation-repository.js +2 -2
- package/dist/src/storage/sqlite/index.d.ts +0 -1
- package/dist/src/storage/sqlite/index.js +3 -3
- package/dist/src/storage/sqlite/schema.d.ts +2 -2
- package/dist/src/storage/sqlite/schema.js +7 -7
- package/dist/src/storage/sqlite/schema.sql +2 -10
- package/dist/src/storage/sqlite/session-input-repository.js +8 -0
- package/dist/src/storage/sqlite/upgrades/270_device_bridge_kind.sql +30 -0
- package/dist/src/tasks/capabilities/read.js +2 -2
- package/dist/src/tasks/capabilities/write.js +1 -1
- package/dist/src/tui/backends/embedded-backend.js +1 -1
- package/dist/src/voice/realtime/persona-context.js +1 -1
- package/package.json +4 -5
- package/dist/extensions/feishu/src/auth/paths.d.ts +0 -2
- package/dist/extensions/feishu/src/auth/paths.js +0 -16
- package/dist/extensions/feishu/src/state/thread-bindings.d.ts +0 -19
- package/dist/extensions/feishu/src/state/thread-bindings.js +0 -44
- package/dist/extensions/feishu/src/subagent-hooks.d.ts +0 -12
- package/dist/extensions/feishu/src/subagent-hooks.js +0 -50
- package/dist/extensions/feishu/src/tools/docx/docx-batch-insert.d.ts +0 -11
- package/dist/extensions/feishu/src/tools/docx/docx-batch-insert.js +0 -93
- package/dist/extensions/feishu/src/tools/docx/docx-color-text.d.ts +0 -15
- package/dist/extensions/feishu/src/tools/docx/docx-color-text.js +0 -73
- package/dist/extensions/feishu/src/tools/docx/docx-table-ops.d.ts +0 -20
- package/dist/extensions/feishu/src/tools/docx/docx-table-ops.js +0 -171
- package/dist/extensions/feishu/src/tools/docx/docx-types.d.ts +0 -34
- package/dist/gateway/static/root/assets/chat-page-CeHOmJqM.js +0 -72
- package/dist/gateway/static/root/assets/gateway-realtime-hnEaDFaA.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-ugwtyD4q.js +0 -1
- package/dist/gateway/static/root/assets/gateway-restart-kwv0njYq.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-CxYPJTy8.js +0 -1
- package/dist/gateway/static/root/assets/index-DE2bG5EI.css +0 -1
- package/dist/gateway/static/root/assets/index-PewrhviZ.js +0 -11
- package/dist/gateway/static/root/assets/install-connector-dialog-BU4l6KJv.js +0 -1
- package/dist/gateway/static/root/assets/languages-zXtNocoy.js +0 -2
- package/dist/gateway/static/root/assets/management-settings-BgdAP0kf.js +0 -1
- package/dist/gateway/static/root/assets/messages-CGO1P4mz.js +0 -3
- package/dist/gateway/static/root/assets/navigation-D62kPsA9.js +0 -1
- package/dist/gateway/static/root/assets/note-detail-panel-DWIWloib.js +0 -5
- package/dist/gateway/static/root/assets/note-image-lightbox-BbNYW2Rw.js +0 -1
- package/dist/gateway/static/root/assets/page-context-capture-button-B9L7V_n2.js +0 -1
- package/dist/gateway/static/root/assets/page-header-store-YZfSLNTg.js +0 -1
- package/dist/gateway/static/root/assets/product-preview-content-CGbqoID0.js +0 -1
- package/dist/gateway/static/root/assets/product-preview-modal-0wvIDcVr.js +0 -2
- package/dist/gateway/static/root/assets/project-detail-page-Bkxs8knZ.js +0 -7
- package/dist/gateway/static/root/assets/route-preload-BVo8JPwW.js +0 -2
- package/dist/gateway/static/root/assets/settings-advanced-gate-DyGT3o1e.js +0 -1
- package/dist/gateway/static/root/assets/skill-api-BnpTSZGc.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-sL2kGqHZ.js +0 -2
- package/dist/gateway/static/root/assets/tool-friendly-title-DEGpbye4.js +0 -1
- package/dist/gateway/static/root/assets/use-file-preview-expanded-9DED7ohY.js +0 -2
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-CmSYxTmk.js +0 -1
- package/dist/packages/endpoint-tools-protocol/src/bridge.js +0 -105
- package/dist/packages/gateway-contract/src/desktop-chat.js +0 -29
- package/dist/src/endpoint-tools/binding-service.d.ts +0 -24
- package/dist/src/endpoint-tools/binding-service.js +0 -57
- package/dist/src/gateway/hono/routes/desktop-chat.d.ts +0 -3
- package/dist/src/gateway/hono/routes/desktop-chat.js +0 -30
- package/dist/src/storage/sqlite/endpoint-session-binding-repository.d.ts +0 -9
- package/dist/src/storage/sqlite/endpoint-session-binding-repository.js +0 -41
- /package/dist/{extensions/feishu/src/tools/docx/docx-types.js → src/cli/commands/device-host.d.ts} +0 -0
|
@@ -3,10 +3,10 @@ import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
|
3
3
|
import { resolveAutomationSafetyForTrust } from "../../user-context/trust-policy.js";
|
|
4
4
|
import { getUserTrustPolicy } from "../../storage/sqlite/user-trust-repository.js";
|
|
5
5
|
import "../../storage/sqlite/index.js";
|
|
6
|
+
import { init_agent_scope, resolveDefaultAgentId } from "../../agent/agent-scope.js";
|
|
6
7
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
7
8
|
import { ExternalEffectNotAppliedError } from "../../capabilities/runtime/external-operations.js";
|
|
8
9
|
import { defineExternalCapability, defineReadCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
9
|
-
import { init_agent_scope, resolveDefaultAgentId } from "../../agent/agent-scope.js";
|
|
10
10
|
import { AutomationCreateCapabilityInputSchema, materializeAutomationTrigger } from "./write.js";
|
|
11
11
|
import { simulateAutomation } from "../draft/automation-draft-validator.js";
|
|
12
12
|
import { AutomationDraftService } from "../draft/automation-draft-service.js";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AutomationCancelOutputSchema, AutomationDeleteInputSchema, AutomationDeleteOutputSchema, AutomationMutationOutputSchema, AutomationReadAllInputSchema, AutomationReadAllOutputSchema, AutomationReadOutputSchema, AutomationRecoveryOutputSchema, AutomationReplayEventInputSchema, AutomationRetryDeliveryInputSchema, AutomationRunMutationOutputSchema, AutomationSetEnabledInputSchema, CapabilityResourceInputSchema } from "../../../packages/gateway-contract/src/capabilities.js";
|
|
2
2
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
3
3
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
4
|
-
import { defineAtomicCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
5
4
|
import { AutomationTriggerSchema, CreateAutomationSchema, UpdateAutomationSchema } from "../domain/validation.js";
|
|
6
5
|
import { getAutomation } from "../storage/automation-repository.js";
|
|
7
6
|
import { getAutomationRun, markAllAutomationRunsRead, markAutomationRunRead } from "../storage/automation-run-repository.js";
|
|
@@ -9,6 +8,7 @@ import "../storage/index.js";
|
|
|
9
8
|
import { getAutomationEventForRun } from "../events/event-repository.js";
|
|
10
9
|
import "../events/index.js";
|
|
11
10
|
import { assertAutomationSetupTarget, bindAutomationSetup } from "../configuration-conversation.js";
|
|
11
|
+
import { defineAtomicCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
12
12
|
import { AutomationAlreadyExistsError, AutomationAlreadyRunningError, AutomationInvalidAgentError, AutomationInvalidScheduleError, AutomationInvalidSourceError } from "../service/automation-service.js";
|
|
13
13
|
import { z } from "zod";
|
|
14
14
|
//#region src/automations/capabilities/write.ts
|
|
@@ -3,9 +3,9 @@ import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "
|
|
|
3
3
|
import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
|
|
4
4
|
import { init_session_repository, patchSessionMetadata } from "../storage/sqlite/session-repository.js";
|
|
5
5
|
import "../storage/sqlite/index.js";
|
|
6
|
-
import { CapabilityError } from "../capabilities/runtime/errors.js";
|
|
7
6
|
import { init_agent_scope, listAgentEntries } from "../agent/agent-scope.js";
|
|
8
7
|
import { createConversation, init_conversation_repository } from "../storage/sqlite/conversation-repository.js";
|
|
8
|
+
import { CapabilityError } from "../capabilities/runtime/errors.js";
|
|
9
9
|
import { getAutomation } from "./storage/automation-repository.js";
|
|
10
10
|
import { getAutomationRun, listAutomationRuns } from "./storage/automation-run-repository.js";
|
|
11
11
|
import { listAutomationResultDeliveries } from "./delivery/delivery-router.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { DurableState } from "../storage/sqlite/durable-state.js";
|
|
1
2
|
import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
|
|
2
3
|
import { init_session_repository } from "../storage/sqlite/session-repository.js";
|
|
3
4
|
import { connectorPrincipalForSession } from "../connectors/principal.js";
|
|
4
|
-
import { DurableState } from "../storage/sqlite/durable-state.js";
|
|
5
5
|
import { isManagedConnectorServer } from "../connectors/materialize.js";
|
|
6
6
|
import { discoverMcpTools } from "../agent/mcp/tool-catalog.js";
|
|
7
7
|
import { mcpConfigRevision } from "../agent/mcp/connection-drafts.js";
|
|
@@ -6,6 +6,7 @@ import { init_model_usage, withModelUsageOrigin } from "../../providers/model-us
|
|
|
6
6
|
import { init_session_key, resolveConversationId } from "../../routing/session-key.js";
|
|
7
7
|
import { getAutomationRunRequest, listAutomationRuns } from "../storage/automation-run-repository.js";
|
|
8
8
|
import "../storage/index.js";
|
|
9
|
+
import { withDeviceDelegation } from "../../endpoint-tools/delegation.js";
|
|
9
10
|
import { withAutomationMcpSource } from "../mcp-source.js";
|
|
10
11
|
import { resolveAutomationTimeoutSeconds } from "../domain/defaults.js";
|
|
11
12
|
//#region src/automations/service/action-executor.ts
|
|
@@ -249,14 +250,21 @@ var AutomationActionExecutor = class {
|
|
|
249
250
|
}),
|
|
250
251
|
"</automation_handoff>"
|
|
251
252
|
].join("\n") : "";
|
|
252
|
-
const process = () =>
|
|
253
|
+
const process = () => withDeviceDelegation({
|
|
254
|
+
subject: {
|
|
255
|
+
kind: "automation",
|
|
256
|
+
automationId: automation.id
|
|
257
|
+
},
|
|
258
|
+
acceptedAt: run.createdAtMs,
|
|
259
|
+
automation
|
|
260
|
+
}, conversationId, run.id, () => agentService.turnDispatcher.processDirect(buildSafetyInstruction(automation, [appendTriggerContext(action.instruction, context.triggerEvent), handoff].filter(Boolean).join("\n\n")), conversationId, {
|
|
253
261
|
type: "system",
|
|
254
262
|
source: "automation"
|
|
255
263
|
}, void 0, void 0, {
|
|
256
264
|
signal,
|
|
257
265
|
runId: run.id,
|
|
258
266
|
deadlineAtMs
|
|
259
|
-
});
|
|
267
|
+
}));
|
|
260
268
|
if (action.mcpSourceId && !this.deps.getConfig) return {
|
|
261
269
|
status: "failed",
|
|
262
270
|
error: "The selected MCP source cannot be checked in this runtime.",
|
|
@@ -13,8 +13,8 @@ import { accessSync, chmodSync, constants, existsSync, mkdirSync, readFileSync,
|
|
|
13
13
|
import { fileURLToPath } from "node:url";
|
|
14
14
|
import { createHash } from "node:crypto";
|
|
15
15
|
import { execFileSync, spawn } from "node:child_process";
|
|
16
|
-
import { readFile, readdir, rm } from "node:fs/promises";
|
|
17
16
|
import AdmZip from "adm-zip";
|
|
17
|
+
import { readFile, readdir, rm } from "node:fs/promises";
|
|
18
18
|
//#region src/browser/providers/browser-ext-install.ts
|
|
19
19
|
/**
|
|
20
20
|
* Install bundled Chrome extension artifacts into {resolveBinDir()}/browser-ext/.
|
|
@@ -120,10 +120,14 @@ var RemoteDeviceBrowserDriver = class {
|
|
|
120
120
|
async connect() {
|
|
121
121
|
this.current();
|
|
122
122
|
}
|
|
123
|
-
current() {
|
|
123
|
+
current(releasing = false) {
|
|
124
124
|
const endpoint = this.endpoints.registry.get(this.endpointId), authority = endpoint?.executionAuthority;
|
|
125
125
|
const tool = this.endpoints.registry.getTool(this.endpointId, REMOTE_BROWSER_CONTROL_TOOL);
|
|
126
126
|
if (!endpoint || endpoint.kind !== "desktop" || !authority || !tool || endpoint.availability !== "foreground" || endpoint.principalId !== authority.deviceId || authority.expiresAt <= Date.now()) throw new Error("BROWSER_REMOTE_AUTHORITY_INVALID");
|
|
127
|
+
if (!releasing) {
|
|
128
|
+
const target = this.endpoints.targets.resolve(this.owner);
|
|
129
|
+
if (!target || target.endpointId !== this.endpointId || target.connectionId !== endpoint.connectionId) throw new Error("BROWSER_TARGET_SCOPE_CHANGED");
|
|
130
|
+
}
|
|
127
131
|
const next = {
|
|
128
132
|
connectionId: endpoint.connectionId,
|
|
129
133
|
deviceId: authority.deviceId,
|
|
@@ -202,7 +206,7 @@ var RemoteDeviceBrowserDriver = class {
|
|
|
202
206
|
if (target && (target.kind !== "endpoint" || target.endpointId !== this.endpointId)) throw new Error("BROWSER_REMOTE_TARGET_MISMATCH");
|
|
203
207
|
}
|
|
204
208
|
async send(sessionId, input, target, signal) {
|
|
205
|
-
this.current();
|
|
209
|
+
this.current(input.action === "close");
|
|
206
210
|
this.target(target);
|
|
207
211
|
if (this.session !== sessionId) throw new Error("BROWSER_REMOTE_SESSION_MISMATCH");
|
|
208
212
|
const command = {
|
|
@@ -221,7 +225,7 @@ var RemoteDeviceBrowserDriver = class {
|
|
|
221
225
|
if (json.length !== 1 || files.length > 1) throw new Error("BROWSER_REMOTE_RESULT_INVALID");
|
|
222
226
|
const result = replySchema.parse(json[0].value).result;
|
|
223
227
|
const state = "error" in result ? result.error.observation : result.receipt.observation;
|
|
224
|
-
this.current();
|
|
228
|
+
this.current(input.action === "close");
|
|
225
229
|
signal?.throwIfAborted();
|
|
226
230
|
if (state && state.sessionId !== sessionId || !("error" in result) && result.receipt.action !== input.action) throw new Error("BROWSER_REMOTE_RESULT_MISMATCH");
|
|
227
231
|
if (files.length && (!bytes || !state || !["image/png", "image/jpeg"].includes(files[0].mimeType))) throw new Error("BROWSER_REMOTE_FRAME_MISSING");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { TurnOrigin } from '@xopcai/endpoint-tools-protocol';
|
|
2
2
|
import type { EndpointToolRuntime } from '../../endpoint-tools/runtime.js';
|
|
3
|
-
/**
|
|
3
|
+
/** A selected task target wins over the message source, including when it becomes unavailable. */
|
|
4
4
|
export declare function remoteBrowserEndpoint(runtime: EndpointToolRuntime, owner: string, origin: TurnOrigin): string | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDevice } from "../../storage/sqlite/device-access-repository.js";
|
|
2
2
|
import { getBoundEndpointPrincipalId } from "../../storage/sqlite/endpoint-principal-repository.js";
|
|
3
3
|
//#region src/browser/remote/device-target.ts
|
|
4
|
-
/**
|
|
4
|
+
/** A selected task target wins over the message source, including when it becomes unavailable. */
|
|
5
5
|
function remoteBrowserEndpoint(runtime, owner, origin) {
|
|
6
6
|
const desktop = (id) => {
|
|
7
7
|
const endpoint = runtime.registry.get(id);
|
|
@@ -10,11 +10,13 @@ function remoteBrowserEndpoint(runtime, owner, origin) {
|
|
|
10
10
|
const principalId = endpoint?.principalId ?? getBoundEndpointPrincipalId(id);
|
|
11
11
|
return Boolean(principalId && getDevice(principalId)?.platform === "desktop");
|
|
12
12
|
};
|
|
13
|
-
if (
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
if (runtime.targets.get(owner)) {
|
|
14
|
+
const endpoint = runtime.targets.resolve(owner);
|
|
15
|
+
if (!endpoint) throw new Error("BROWSER_TARGET_OFFLINE");
|
|
16
|
+
if (!desktop(endpoint.endpointId)) throw new Error("BROWSER_TARGET_UNSUPPORTED");
|
|
17
|
+
return endpoint.endpointId;
|
|
18
|
+
}
|
|
19
|
+
return origin.type === "endpoint" && desktop(origin.endpointId) ? origin.endpointId : void 0;
|
|
18
20
|
}
|
|
19
21
|
//#endregion
|
|
20
22
|
export { remoteBrowserEndpoint };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SqliteCommitEffectError, init_transaction } from "../../storage/sqlite/transaction.js";
|
|
2
|
-
import { OperationConflictError, executeAtomicOperation } from "./atomic-operations.js";
|
|
3
2
|
import { CapabilityError } from "./errors.js";
|
|
4
3
|
import { executeExternalOperation } from "./external-operations.js";
|
|
4
|
+
import { OperationConflictError, executeAtomicOperation } from "./atomic-operations.js";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/capabilities/runtime/dispatcher.ts
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CapabilityError } from "./errors.js";
|
|
2
2
|
import { CapabilityDispatcher } from "./dispatcher.js";
|
|
3
|
-
import { registerAgentCapabilities } from "../../agent-catalog/capabilities.js";
|
|
4
3
|
import { registerLocalAppReadCapabilities } from "../../local-apps/capabilities/read.js";
|
|
5
4
|
import { registerNoteReadCapabilities } from "../../notes/capabilities/read.js";
|
|
6
5
|
import { registerNoteWriteCapabilities } from "../../notes/capabilities/write.js";
|
|
@@ -17,6 +16,7 @@ import { registerAutomationDraftCapabilities } from "../../automations/capabilit
|
|
|
17
16
|
import { registerTaskWriteCapabilities } from "../../tasks/capabilities/write.js";
|
|
18
17
|
import { registerSettingsCapability } from "./settings.js";
|
|
19
18
|
import { registerAppContextCapability } from "./app-context.js";
|
|
19
|
+
import { registerAgentCapabilities } from "../../agent-catalog/capabilities.js";
|
|
20
20
|
//#region src/capabilities/runtime/product.ts
|
|
21
21
|
function createProductDispatcher(getNotes, taskWrites) {
|
|
22
22
|
const dispatcher = new CapabilityDispatcher();
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
+
import { verifiedChannelBus } from "./verified-inbound.js";
|
|
3
4
|
import { CHANNEL_RESTART_POLICY, computeBackoff } from "./restart-policy.js";
|
|
4
5
|
//#region src/channels/lifecycle-supervisor.ts
|
|
5
6
|
init_logger();
|
|
@@ -211,7 +212,7 @@ var ChannelLifecycleSupervisor = class {
|
|
|
211
212
|
async initializePlugin(plugin, channelConfig) {
|
|
212
213
|
try {
|
|
213
214
|
const options = {
|
|
214
|
-
bus: this.opts.bus,
|
|
215
|
+
bus: verifiedChannelBus(this.opts.bus, plugin.id),
|
|
215
216
|
config: this.opts.getConfig(),
|
|
216
217
|
channelConfig,
|
|
217
218
|
sessionModel: this.opts.getSessionModelHooks?.()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StandardPairingChannel } from './pairing-channel.js';
|
|
2
2
|
export declare function resolveDefaultCredentialsDir(env?: NodeJS.ProcessEnv): string;
|
|
3
|
-
/**
|
|
3
|
+
/** Resolve the persisted allowlist path for a channel account. */
|
|
4
4
|
export declare function resolveStandardAllowFromPath(channel: StandardPairingChannel, accountId: string, env?: NodeJS.ProcessEnv): string;
|
|
5
5
|
export declare function resolveStandardPairingPath(channel: StandardPairingChannel, accountId: string, env?: NodeJS.ProcessEnv): string;
|
|
6
6
|
/** Weixin stores under `~/.xopc/weixin/credentials/` (matches `extensions/weixin` accounts helper). */
|
|
@@ -10,7 +10,7 @@ function resolveDefaultCredentialsDir(env = process.env) {
|
|
|
10
10
|
function safeAccountKey(accountId) {
|
|
11
11
|
return accountId.trim().toLowerCase().replace(/[\\/:*?"<>|]/g, "_").replace(/\.\./g, "_");
|
|
12
12
|
}
|
|
13
|
-
/**
|
|
13
|
+
/** Resolve the persisted allowlist path for a channel account. */
|
|
14
14
|
function resolveStandardAllowFromPath(channel, accountId, env = process.env) {
|
|
15
15
|
const base = `xopc-${channel}`.replace(/[\\/:*?"<>|]/g, "_");
|
|
16
16
|
const safe = safeAccountKey(accountId);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MessageBus } from '../infra/bus/index.js';
|
|
2
|
+
import type { DeviceDelegationSubject } from '../endpoint-tools/delegation.js';
|
|
3
|
+
import type { InboundMessage } from './transport-types.js';
|
|
4
|
+
type VerifiedInbound = {
|
|
5
|
+
subject: Extract<DeviceDelegationSubject, {
|
|
6
|
+
kind: 'channel';
|
|
7
|
+
}>;
|
|
8
|
+
acceptedAt: number;
|
|
9
|
+
};
|
|
10
|
+
/** Only channel lifecycle code gives a plugin access to this ingress. Ordinary bus publishers cannot mark a message. */
|
|
11
|
+
export declare function verifiedChannelBus(bus: MessageBus, channel: string): MessageBus;
|
|
12
|
+
export declare function verifiedChannelInbound(message: InboundMessage): VerifiedInbound | undefined;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region src/channels/verified-inbound.ts
|
|
2
|
+
const verified = /* @__PURE__ */ new WeakMap();
|
|
3
|
+
/** Only channel lifecycle code gives a plugin access to this ingress. Ordinary bus publishers cannot mark a message. */
|
|
4
|
+
function verifiedChannelBus(bus, channel) {
|
|
5
|
+
return new Proxy(bus, { get(target, property) {
|
|
6
|
+
if (property === "publishInbound") return (message) => {
|
|
7
|
+
const meta = message.metadata;
|
|
8
|
+
if (message.channel === channel && channel !== "system" && channel !== "webchat" && channel !== "cli" && typeof meta?.accountId === "string" && typeof meta.messageId === "string" && meta.messageId.length > 0 && typeof meta.isGroup === "boolean" && !meta.isCommand && !meta.isReaction && message.chat_id && message.sender_id) verified.set(message, {
|
|
9
|
+
subject: {
|
|
10
|
+
kind: "channel",
|
|
11
|
+
channel,
|
|
12
|
+
accountId: meta.accountId,
|
|
13
|
+
chatId: message.chat_id,
|
|
14
|
+
senderId: message.sender_id,
|
|
15
|
+
...typeof meta.threadId === "string" && meta.threadId ? { threadId: meta.threadId } : {}
|
|
16
|
+
},
|
|
17
|
+
acceptedAt: Date.now()
|
|
18
|
+
});
|
|
19
|
+
return target.publishInbound(message);
|
|
20
|
+
};
|
|
21
|
+
const value = Reflect.get(target, property, target);
|
|
22
|
+
return typeof value === "function" ? value.bind(target) : value;
|
|
23
|
+
} });
|
|
24
|
+
}
|
|
25
|
+
function verifiedChannelInbound(message) {
|
|
26
|
+
return verified.get(message);
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { verifiedChannelBus, verifiedChannelInbound };
|
|
@@ -19,6 +19,7 @@ const REGISTRY_COMMAND_MODULES = {
|
|
|
19
19
|
doctor: () => import("./commands/doctor/index.js"),
|
|
20
20
|
support: () => import("./commands/support.js"),
|
|
21
21
|
runtime: () => import("./commands/runtime.js"),
|
|
22
|
+
"device-host": () => import("./commands/device-host.js"),
|
|
22
23
|
mcp: () => import("./commands/mcp.js"),
|
|
23
24
|
platform: () => import("./commands/platform.js"),
|
|
24
25
|
image: () => import("./commands/image.js"),
|
|
@@ -95,6 +95,10 @@ const ROOT_HELP_COMMANDS = [
|
|
|
95
95
|
name: "runtime",
|
|
96
96
|
description: "Manage agent runtimes and phone dependencies"
|
|
97
97
|
},
|
|
98
|
+
{
|
|
99
|
+
name: "device-host [options]",
|
|
100
|
+
description: "Publish explicitly installed device-local MCP capabilities to a Gateway"
|
|
101
|
+
},
|
|
98
102
|
{
|
|
99
103
|
name: "mcp",
|
|
100
104
|
description: "Manage native pi MCP servers and expose Gateway capabilities"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { normalizeAgentId, validateAgentIdForNewAgent } from "../../agent-catalog/id.js";
|
|
2
2
|
import { AgentCatalogRepository, init_repository } from "../../agent-catalog/repository.js";
|
|
3
3
|
import { init_agent_scope, resolveAgentDir, resolveAgentWorkspaceDir, resolveDefaultAgentId } from "../../agent/agent-scope.js";
|
|
4
|
-
import { AgentCatalogService } from "../../agent-catalog/service.js";
|
|
5
4
|
import { resolveEffectiveAgentConfigForAgent } from "../../config/agent-profile.js";
|
|
5
|
+
import { AgentCatalogService } from "../../agent-catalog/service.js";
|
|
6
6
|
import { colors } from "../utils/colors.js";
|
|
7
7
|
//#region src/cli/commands/agents.ts
|
|
8
8
|
init_repository();
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { register } from "../registry.js";
|
|
2
|
+
import { readDeviceHostConfig, startDeviceHost } from "../../endpoint-tools/device-host.js";
|
|
3
|
+
import { Command } from "commander";
|
|
4
|
+
//#region src/cli/commands/device-host.ts
|
|
5
|
+
register({
|
|
6
|
+
id: "device-host",
|
|
7
|
+
name: "device-host",
|
|
8
|
+
description: "Publish device-local MCP capabilities to a Gateway",
|
|
9
|
+
metadata: { category: "runtime" },
|
|
10
|
+
factory: () => new Command("device-host").description("Publish explicitly installed device-local MCP capabilities to a Gateway").requiredOption("--host-config <path>", "Device host JSON configuration; independent of Gateway MCP configuration").option("--interactive", "Ask locally before each confirmation-required invocation").action(async (options) => {
|
|
11
|
+
if (options.interactive && !process.stdin.isTTY) throw new Error("Interactive approval requires a local terminal");
|
|
12
|
+
let approvalQueue = Promise.resolve();
|
|
13
|
+
const host = await startDeviceHost(await readDeviceHostConfig(options.hostConfig), {
|
|
14
|
+
confirm: options.interactive ? (request) => {
|
|
15
|
+
const decision = approvalQueue.then(async () => {
|
|
16
|
+
request.signal.throwIfAborted();
|
|
17
|
+
const { createInterface } = await import("node:readline/promises");
|
|
18
|
+
const prompt = createInterface({
|
|
19
|
+
input: process.stdin,
|
|
20
|
+
output: process.stderr
|
|
21
|
+
});
|
|
22
|
+
try {
|
|
23
|
+
return (await prompt.question(`Allow ${JSON.stringify(request.descriptor.title)} (${request.descriptor.effect}) with arguments ${JSON.stringify(request.arguments).slice(0, 4e3)}? [y/N] `, { signal: request.signal })).trim().toLowerCase() === "y";
|
|
24
|
+
} finally {
|
|
25
|
+
prompt.close();
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
approvalQueue = decision.then(() => {}, () => {});
|
|
29
|
+
return decision;
|
|
30
|
+
} : void 0,
|
|
31
|
+
onError: (providerId) => {
|
|
32
|
+
console.error(`Device provider ${providerId} became unavailable`);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
console.log(`Device host connected: ${host.principalId}`);
|
|
36
|
+
let stop;
|
|
37
|
+
const stopped = new Promise((resolve) => {
|
|
38
|
+
stop = resolve;
|
|
39
|
+
});
|
|
40
|
+
process.once("SIGINT", stop);
|
|
41
|
+
process.once("SIGTERM", stop);
|
|
42
|
+
try {
|
|
43
|
+
await stopped;
|
|
44
|
+
} finally {
|
|
45
|
+
process.off("SIGINT", stop);
|
|
46
|
+
process.off("SIGTERM", stop);
|
|
47
|
+
await host.close();
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
//#endregion
|
|
52
|
+
export {};
|
|
@@ -31,7 +31,7 @@ async function checkDatabaseSchema(ctx) {
|
|
|
31
31
|
id: "database-schema",
|
|
32
32
|
label: "Database schema",
|
|
33
33
|
status: "pass",
|
|
34
|
-
message: `SQLite schema v${readSchemaVersion(getSqliteDatabase())} (current release
|
|
34
|
+
message: `SQLite schema v${readSchemaVersion(getSqliteDatabase())} (current release v270).`,
|
|
35
35
|
hints: []
|
|
36
36
|
};
|
|
37
37
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { creditDecimal } from "../../../packages/gateway-contract/src/cloud-credits.js";
|
|
2
2
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
3
3
|
import { AgentCatalogRepository, init_repository } from "../../agent-catalog/repository.js";
|
|
4
|
-
import { AgentCatalogService } from "../../agent-catalog/service.js";
|
|
5
4
|
import { getAgentDefaultModelRef, init_schema } from "../../config/schema.js";
|
|
6
5
|
import { CredentialResolver, init_credentials } from "../../auth/credentials.js";
|
|
7
6
|
import { getAllModels, getAvailableModels, getConfiguredProviders, getProviderAuthState, getProviderDisplayName, init_providers, isProviderConfigured, providerSupportsApiKey, providerSupportsOAuth, resolveModel } from "../../providers/index.js";
|
|
8
7
|
import { XopcCloudAccountService } from "../../providers/xopc-cloud-account-service.js";
|
|
8
|
+
import { AgentCatalogService } from "../../agent-catalog/service.js";
|
|
9
9
|
import { listImageProviderSpecs } from "../../../packages/image-providers/src/catalog.js";
|
|
10
10
|
import "../../../packages/image-providers/src/index.js";
|
|
11
11
|
import { loadConfig } from "../../config/loader.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AgentCatalogRepository, init_repository } from "../../../agent-catalog/repository.js";
|
|
2
|
-
import { AgentCatalogService } from "../../../agent-catalog/service.js";
|
|
3
2
|
import { resolveModelsJsonPath } from "../../../config/paths.js";
|
|
4
3
|
import { ConfigSchema, getAgentDefaultModelRef, init_schema } from "../../../config/schema.js";
|
|
5
4
|
import { init_models_json, loadModelsJson, saveModelsJson } from "../../../config/models-json.js";
|
|
@@ -7,6 +6,7 @@ import { getApiKeyFromEnv } from "../../../providers/env-keys.js";
|
|
|
7
6
|
import { getModelRegistry } from "../../../providers/model-registry.js";
|
|
8
7
|
import { CredentialResolver, init_credentials } from "../../../auth/credentials.js";
|
|
9
8
|
import { getAllProviders, getModelsByProvider, getProviderDisplayName, init_providers, providerSupportsApiKey, providerSupportsOAuth } from "../../../providers/index.js";
|
|
9
|
+
import { AgentCatalogService } from "../../../agent-catalog/service.js";
|
|
10
10
|
import { prepareUpdateGlobalDefaults } from "../../../gateway/global-defaults-admin.js";
|
|
11
11
|
import { discoverProviderModels, isProviderApiDiscoverable } from "../../../providers/model-discovery.js";
|
|
12
12
|
import { getXopcCloudCatalogCoordinator } from "../../../providers/xopc-cloud-catalog-coordinator.js";
|
package/dist/src/cli/index.js
CHANGED
|
@@ -27,7 +27,7 @@ function buildProgram(ctx) {
|
|
|
27
27
|
const next = hookOwner.opts();
|
|
28
28
|
for (const k of Object.keys(parsedOpts)) delete parsedOpts[k];
|
|
29
29
|
Object.assign(parsedOpts, next);
|
|
30
|
-
if (actionCommand?.name()
|
|
30
|
+
if (["backup", "device-host"].includes(actionCommand?.name() ?? "") || actionCommand?.parent?.name() === "backup") return;
|
|
31
31
|
bootstrapApplicationStateSync();
|
|
32
32
|
});
|
|
33
33
|
program.hook("postAction", async (_hookOwner, actionCommand) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AgentCatalogRepository, init_repository } from "../../agent-catalog/repository.js";
|
|
2
|
-
import { AgentCatalogService } from "../../agent-catalog/service.js";
|
|
3
2
|
import { ConfigSchema, init_schema } from "../../config/schema.js";
|
|
3
|
+
import { AgentCatalogService } from "../../agent-catalog/service.js";
|
|
4
4
|
import { readConfigFileSnapshot } from "../../config/config-file.js";
|
|
5
5
|
import { saveConfig } from "../../config/loader.js";
|
|
6
6
|
import { ensureStarterAgentsInitialized } from "../../agent/starter-agents.js";
|
|
@@ -19,9 +19,9 @@ export declare const ComputerFailureCategorySchema: z.ZodEnum<{
|
|
|
19
19
|
cancelled: "cancelled";
|
|
20
20
|
model: "model";
|
|
21
21
|
observation: "observation";
|
|
22
|
-
transport: "transport";
|
|
23
22
|
budget: "budget";
|
|
24
23
|
native: "native";
|
|
24
|
+
transport: "transport";
|
|
25
25
|
no_progress: "no_progress";
|
|
26
26
|
harness: "harness";
|
|
27
27
|
}>;
|
|
@@ -33,9 +33,9 @@ export declare const ComputerFailureSchema: z.ZodObject<{
|
|
|
33
33
|
cancelled: "cancelled";
|
|
34
34
|
model: "model";
|
|
35
35
|
observation: "observation";
|
|
36
|
-
transport: "transport";
|
|
37
36
|
budget: "budget";
|
|
38
37
|
native: "native";
|
|
38
|
+
transport: "transport";
|
|
39
39
|
no_progress: "no_progress";
|
|
40
40
|
harness: "harness";
|
|
41
41
|
}>;
|
|
@@ -312,9 +312,9 @@ export declare const ComputerSessionReportSchema: z.ZodObject<{
|
|
|
312
312
|
cancelled: "cancelled";
|
|
313
313
|
model: "model";
|
|
314
314
|
observation: "observation";
|
|
315
|
-
transport: "transport";
|
|
316
315
|
budget: "budget";
|
|
317
316
|
native: "native";
|
|
317
|
+
transport: "transport";
|
|
318
318
|
no_progress: "no_progress";
|
|
319
319
|
harness: "harness";
|
|
320
320
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { canonicalJson, init_src } from "../../packages/endpoint-tools-protocol/src/index.js";
|
|
2
|
-
import { ExternalEffectNotAppliedError, executeExternalOperation } from "../capabilities/runtime/external-operations.js";
|
|
3
2
|
import { COMPUTER_CONTROL_TOOL, REMOTE_COMPUTER_CONTROL_TOOL, init_src as init_src$1 } from "../../packages/computer-control-contract/src/index.js";
|
|
3
|
+
import { ExternalEffectNotAppliedError, executeExternalOperation } from "../capabilities/runtime/external-operations.js";
|
|
4
4
|
import { EndpointToolExecutionError } from "../endpoint-tools/invocation-service.js";
|
|
5
5
|
import { createHash, randomUUID } from "node:crypto";
|
|
6
6
|
//#region src/computer/endpoint-transport.ts
|
|
@@ -216,6 +216,10 @@ function computerRecoveryDirective(code, dispatch = "notStarted") {
|
|
|
216
216
|
}
|
|
217
217
|
/** Recovery instructions are deterministic; never replay an input with unknown delivery. */
|
|
218
218
|
function computerRecovery(code) {
|
|
219
|
+
if (code === "COMPUTER_TARGET_REQUIRED") return "Use device_use discover to find an accessible desktop, then device_use select with its exact targetRef. Continue in this conversation; opening it in another client is not required.";
|
|
220
|
+
if (code === "COMPUTER_TARGET_UNSUPPORTED") return "The selected device does not provide desktop control. Explicitly select a device with Computer Use capability.";
|
|
221
|
+
if (code === "COMPUTER_TARGET_SCOPE_CHANGED") return "This input is outside the active device execution context. Close the current control session before explicitly selecting the authorized target.";
|
|
222
|
+
if (code === "COMPUTER_TARGET_OFFLINE") return "The selected desktop execution context is unavailable or its connection changed. Do not switch devices or replay actions. Check device_use discover and reconcile any uncertain operation before explicitly selecting a new context.";
|
|
219
223
|
if (code === "COMPUTER_AGENT_MODEL_REQUIRED") return "Direct UI programs require an active visual main-model turn. Select a visual model and open with planner:agent; do not change models inside an active desktop session.";
|
|
220
224
|
if (code === "COMPUTER_AGENT_MODEL_CHANGED" || code === "COMPUTER_PLANNER_MISMATCH") return "The requested UI planner does not match the active session. Close and confirm release before opening the requested mode with the current main model.";
|
|
221
225
|
if (code === "COMPUTER_PROGRAM_UNAWAITED_CALL") return "The program ended with an unawaited UI call. Earlier inputs may already have completed. Control was released. Reopen and observe current state before performing only the remaining authorized actions; never replay the script. Await every ui.* call, including emitScreenshot. observe({visual:true}) already attaches the screenshot.";
|
|
@@ -54,9 +54,9 @@ export declare const ComputerEvaluationRunSchema: z.ZodObject<{
|
|
|
54
54
|
cancelled: "cancelled";
|
|
55
55
|
model: "model";
|
|
56
56
|
observation: "observation";
|
|
57
|
-
transport: "transport";
|
|
58
57
|
budget: "budget";
|
|
59
58
|
native: "native";
|
|
59
|
+
transport: "transport";
|
|
60
60
|
no_progress: "no_progress";
|
|
61
61
|
harness: "harness";
|
|
62
62
|
}>;
|
|
@@ -276,7 +276,7 @@ export declare function isAutonomousComputerSuccess(run: ComputerEvaluationRun):
|
|
|
276
276
|
/** Export measured runtime values only; an executor must supply independent safety and oracle evidence. */
|
|
277
277
|
export declare function computerReportMeasurements(report: ComputerSessionReport): {
|
|
278
278
|
failure?: {
|
|
279
|
-
category: "permission" | "target" | "unknown" | "cancelled" | "model" | "observation" | "
|
|
279
|
+
category: "permission" | "target" | "unknown" | "cancelled" | "model" | "observation" | "budget" | "native" | "transport" | "no_progress" | "harness";
|
|
280
280
|
phase: "open" | "executor" | "model" | "dispatch" | "observe" | "release" | "frame_upload" | "oracle";
|
|
281
281
|
errorCode: string;
|
|
282
282
|
dispatch: "unknown" | "completed" | "started" | "notStarted";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inferMemorySensitivity } from "../agent/memory/sensitivity.js";
|
|
2
1
|
import { DurableState } from "../storage/sqlite/durable-state.js";
|
|
2
|
+
import { inferMemorySensitivity } from "../agent/memory/sensitivity.js";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/computer/flows.ts
|
|
@@ -143,6 +143,13 @@ var ComputerRuntime = class {
|
|
|
143
143
|
if (!owner) throw new Error("COMPUTER_CONVERSATION_REQUIRED");
|
|
144
144
|
const stale = this.sessions.get(owner);
|
|
145
145
|
if (stale && !this.operations.has(owner) && this.verifiedRemoteStop(stale)) this.forget(stale);
|
|
146
|
+
const active = this.sessions.get(owner);
|
|
147
|
+
if (active && ![
|
|
148
|
+
"close",
|
|
149
|
+
"report",
|
|
150
|
+
"flows",
|
|
151
|
+
"forget_flow"
|
|
152
|
+
].includes(input.op)) this.assertTarget(owner, active);
|
|
146
153
|
if (input.op === "flows" || input.op === "forget_flow") {
|
|
147
154
|
signal?.throwIfAborted();
|
|
148
155
|
const scope = this.flowScope(owner);
|
|
@@ -566,6 +573,7 @@ var ComputerRuntime = class {
|
|
|
566
573
|
const id = randomUUID();
|
|
567
574
|
const reply = await this.send({
|
|
568
575
|
endpointId: endpoint.endpointId,
|
|
576
|
+
connectionId: endpoint.connectionId,
|
|
569
577
|
id
|
|
570
578
|
}, {
|
|
571
579
|
op: "discover",
|
|
@@ -648,6 +656,7 @@ var ComputerRuntime = class {
|
|
|
648
656
|
prepare: input.prepare,
|
|
649
657
|
windowRef: input.windowRef,
|
|
650
658
|
endpointId: endpoint.endpointId,
|
|
659
|
+
connectionId: endpoint.connectionId,
|
|
651
660
|
adapter,
|
|
652
661
|
binding,
|
|
653
662
|
...endpoint.executionAuthority ? { executionScope: {
|
|
@@ -671,6 +680,7 @@ var ComputerRuntime = class {
|
|
|
671
680
|
serviceLimits
|
|
672
681
|
};
|
|
673
682
|
s.diagnostics.bind(s.id);
|
|
683
|
+
s.releaseTarget = this.endpoints.targets.hold(owner, `computer:${s.id}`);
|
|
674
684
|
this.sessions.set(owner, s);
|
|
675
685
|
enterComputerControl(owner, async () => {
|
|
676
686
|
await this.close(owner);
|
|
@@ -1086,15 +1096,26 @@ var ComputerRuntime = class {
|
|
|
1086
1096
|
};
|
|
1087
1097
|
}
|
|
1088
1098
|
resolveEndpoint(owner) {
|
|
1089
|
-
const explicitBinding = this.endpoints.
|
|
1099
|
+
const explicitBinding = this.endpoints.targets.get(owner);
|
|
1090
1100
|
const turnEndpoint = this.getTurnEndpoint?.(owner);
|
|
1091
|
-
const endpoint = explicitBinding ? this.endpoints.
|
|
1092
|
-
if (!endpoint
|
|
1101
|
+
const endpoint = explicitBinding ? this.endpoints.targets.resolve(owner) : turnEndpoint ? this.endpoints.registry.get(turnEndpoint) : this.endpoints.targets.resolve(owner);
|
|
1102
|
+
if (!endpoint) throw new Error(explicitBinding ? "COMPUTER_TARGET_OFFLINE" : "COMPUTER_TARGET_REQUIRED");
|
|
1103
|
+
if (endpoint.kind !== "desktop") throw new Error("COMPUTER_TARGET_UNSUPPORTED");
|
|
1093
1104
|
if (!this.endpoints.registry.getTool(endpoint.endpointId, endpoint.executionAuthority ? "desktop.computer.remote_control" : "desktop.computer.control")) throw new Error("COMPUTER_DESKTOP_UPGRADE_REQUIRED");
|
|
1105
|
+
if (!explicitBinding) this.endpoints.targets.select(owner, endpoint.endpointId);
|
|
1094
1106
|
return endpoint;
|
|
1095
1107
|
}
|
|
1108
|
+
assertTarget(owner, session) {
|
|
1109
|
+
const current = this.endpoints.registry.get(session.endpointId);
|
|
1110
|
+
if (!current || current.connectionId !== session.connectionId) throw new Error("COMPUTER_TARGET_OFFLINE");
|
|
1111
|
+
const selected = this.endpoints.targets.resolve(owner);
|
|
1112
|
+
if (!selected || selected.endpointId !== session.endpointId || selected.connectionId !== session.connectionId) throw new Error("COMPUTER_TARGET_SCOPE_CHANGED");
|
|
1113
|
+
}
|
|
1096
1114
|
async send(s, command, signal) {
|
|
1097
1115
|
signal?.throwIfAborted();
|
|
1116
|
+
const current = this.endpoints.registry.get(s.endpointId);
|
|
1117
|
+
if (!current || current.connectionId !== s.connectionId) throw new Error("COMPUTER_TARGET_OFFLINE");
|
|
1118
|
+
if (command.op !== "release") this.assertTarget(command.owner, s);
|
|
1098
1119
|
const invoke = () => invokeComputerCommand(this.endpoints, s.endpointId, command, signal);
|
|
1099
1120
|
const phase = command.op === "open" ? "open" : command.op === "act" ? "dispatch" : command.op === "observe" ? "observe" : command.op === "release" ? "release" : void 0;
|
|
1100
1121
|
if (command.op === "observe") s.diagnostics?.count("observations");
|
|
@@ -1132,6 +1153,7 @@ var ComputerRuntime = class {
|
|
|
1132
1153
|
if (this.sessions.get(s.owner) !== s) return;
|
|
1133
1154
|
this.sessions.delete(s.owner);
|
|
1134
1155
|
leaveComputerControl(s.owner);
|
|
1156
|
+
s.releaseTarget?.();
|
|
1135
1157
|
s.diagnostics.finish(true);
|
|
1136
1158
|
this.retainReport(s.owner, s.diagnostics);
|
|
1137
1159
|
clearComputerFrames(s.owner);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { normalizeAgentId } from "../agent-catalog/id.js";
|
|
1
2
|
import { resolveEffectiveAgentConfig } from "../agent-config/resolver.js";
|
|
2
3
|
import { init_agent_config } from "../agent-config/index.js";
|
|
3
|
-
import { normalizeAgentId } from "../agent-catalog/id.js";
|
|
4
4
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
5
5
|
import { init_agent_scope, resolveAgentWorkspaceDir } from "../agent/agent-scope.js";
|
|
6
6
|
import { getConversationRouting } from "../storage/sqlite/conversation-repository.js";
|
|
@@ -182,7 +182,7 @@ export declare function resolveBundledExtensionsDir(): string | null;
|
|
|
182
182
|
*/
|
|
183
183
|
export declare function resolveBundledSkillsDir(): string | null;
|
|
184
184
|
/**
|
|
185
|
-
*
|
|
185
|
+
* Resolve the extension SDK source entry path.
|
|
186
186
|
*/
|
|
187
187
|
export declare function resolveExtensionSdkPath(): string;
|
|
188
188
|
export { existsSync };
|
package/dist/src/config/paths.js
CHANGED