@xopcai/xopc 0.0.483 → 0.0.484
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-tm02ZZB8.js → auth-8EjgHa-n.js} +28 -6
- package/dist/browser-ext/dist/background.js +7 -3
- package/dist/browser-ext/dist/sidepanel.html +1 -1
- package/dist/browser-ext/dist/sidepanel.js +1 -1
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/src/plugin.js +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/extensions/weixin/src/messaging/process-message.js +1 -1
- package/dist/gateway/server/chunks.bin +794 -785
- package/dist/gateway/server/chunks.json +1 -1
- package/dist/gateway/static/root/assets/{apps-page-DO5uTFRI.js → apps-page-CH9wENBj.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-C5rp_vOE.js → automations-page-B1Ri4sh8.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-BxN47gkP.js → automations-workspace-CNSza6ir.js} +2 -2
- package/dist/gateway/static/root/assets/bell-BlYch9Vg.js +1 -0
- package/dist/gateway/static/root/assets/browser-notification-delivery-DjK3F0oR.js +1 -0
- package/dist/gateway/static/root/assets/capabilities-page-EENl65YY.js +2 -0
- package/dist/gateway/static/root/assets/{capabilities-settings-panel-B1o8BKxy.js → capabilities-settings-panel-BOwbZn9X.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-_m_FjvAY.js → channels-DlnXbcOj.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-page-D7l_0kTV.js → chat-page-LOR5JxDh.js} +15 -15
- package/dist/gateway/static/root/assets/{chat-terminal-dock-BKnlzlXT.js → chat-terminal-dock-DE8j-K9d.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-CXNy8Y5R.js → connectors-page-BJm1jjct.js} +1 -1
- package/dist/gateway/static/root/assets/device-connections-panel-DE01vyK_.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-BcjkhaY9.js → extension-debug-page-D3X7SlzG.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-iframe-host-RWjaucjJ.js → extension-iframe-host-CIAq7PSn.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-message-router-CzVgJn5c.js → extension-message-router-B2wbucV7.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-DC58VBdj.js → extension-page-qwY7r1_p.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-BGrqW0_n.js → extension-provider-DFcRbTHI.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-DYbal3Iq.js → extension-settings-page-Cpnh9lcZ.js} +1 -1
- package/dist/gateway/static/root/assets/file-preview-surface-Da1xZiG6.js +1 -0
- package/dist/gateway/static/root/assets/gateway-realtime-CoIFB3im.js +1 -0
- package/dist/gateway/static/root/assets/{home-page-DnjsusRG.js → home-page-BusNFHe-.js} +3 -3
- package/dist/gateway/static/root/assets/index-B_TGvH_k.css +1 -0
- package/dist/gateway/static/root/assets/index-DE6GguFZ.js +11 -0
- package/dist/gateway/static/root/assets/{local-app-workbench-page-DH5c5Zhv.js → local-app-workbench-page-B9uSL1Mi.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-D2olKpTB.js → logs-page-0hkRbcUR.js} +1 -1
- package/dist/gateway/static/root/assets/map-pin-BFRLhzQ9.js +1 -0
- package/dist/gateway/static/root/assets/note-detail-panel-DXzfoiyk.js +7 -0
- package/dist/gateway/static/root/assets/{notes-page-YQAAdasN.js → notes-page-BNTgiHSk.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-CDSH76wA.js → page-context-capture-button-BXSBeGms.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-page-Bfgb5oQI.js → personal-page-D7zTHQ0K.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-profile-settings-BvjLssF9.js → personal-profile-settings-TcI0Zfwr.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-settings-panel-Ffr7gcx4.js → personal-settings-panel-BJ46T7ZO.js} +1 -1
- package/dist/gateway/static/root/assets/{preview-runtime-pNF_b2oD.js → preview-runtime-C1U57WSM.js} +1 -1
- package/dist/gateway/static/root/assets/product-automation-feedback-GA_YPLkr.js +1 -0
- package/dist/gateway/static/root/assets/{project-detail-page-DDaG-n-H.js → project-detail-page-Dgs8ImMC.js} +1 -1
- package/dist/gateway/static/root/assets/route-preload-7WVrzJca.js +2 -0
- package/dist/gateway/static/root/assets/routine-panel-Bfbiz0IN.js +2 -0
- package/dist/gateway/static/root/assets/{session-manager-CVNlrzFB.js → session-manager-DUWeBdeG.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-DzISa84O.js → settings-page-BOzzOS6k.js} +1 -1
- package/dist/gateway/static/root/assets/share-2-CnIB9PsV.js +1 -0
- package/dist/gateway/static/root/assets/{share-link-dialog-D31jDQN9.js → share-link-dialog-2JjvWs0q.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-Co6GUYV5.js → share-preview-page-Di5_ukH8.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-C-czUl49.js → shares-settings-CirGM67m.js} +1 -1
- package/dist/gateway/static/root/assets/space-page-CKVuhV2i.js +2 -0
- package/dist/gateway/static/root/assets/system-settings-panel-0e2zfQLt.js +1 -0
- package/dist/gateway/static/root/assets/{task-detail-page-DWoXIgp2.js → task-detail-page-DEpYIaok.js} +1 -1
- package/dist/gateway/static/root/assets/{task-header-title-DfyaQ58P.js → task-header-title-Cdgp2rCs.js} +1 -1
- package/dist/gateway/static/root/assets/{task-run-issue-notice-CljFUd21.js → task-run-issue-notice-CGrUMy0s.js} +1 -1
- package/dist/gateway/static/root/assets/use-composer-attachments-DJsIzJ1c.js +2 -0
- package/dist/gateway/static/root/assets/{use-file-preview-expanded-U5rH80Jf.js → use-file-preview-expanded-BFF2vXm5.js} +1 -1
- package/dist/gateway/static/root/assets/{use-personal-work-FI9Cgyq5.js → use-personal-work-Dd2jRUpz.js} +1 -1
- package/dist/gateway/static/root/assets/{use-realtime-voice-BARxeNLd.js → use-realtime-voice-9OvLwHzk.js} +1 -1
- package/dist/gateway/static/root/assets/use-share-link-WKZLlEqr.js +1 -0
- package/dist/gateway/static/root/assets/{use-workspace-tree-NEeru2fw.js → use-workspace-tree-LCIT1H-D.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-settings-bAmN4bUq.js → voice-settings-j8o-hGTm.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-api-C8-p66T-.js → workspace-api-BuNWyNvA.js} +2 -2
- package/dist/gateway/static/root/assets/workspace-file-preview-dialog-DwVWTehC.js +1 -0
- package/dist/gateway/static/root/index.html +26 -23
- package/dist/package.js +1 -1
- package/dist/packages/endpoint-tools-client/src/index.js +6 -3
- package/dist/packages/endpoint-tools-protocol/src/folders.js +5 -10
- package/dist/packages/endpoint-tools-protocol/src/index.js +50 -10
- package/dist/packages/endpoint-tools-protocol/src/location.js +1 -1
- package/dist/packages/endpoint-tools-protocol/src/personal.js +2 -2
- package/dist/src/agent/agent-manager.js +14 -14
- package/dist/src/agent/background-review/prompts.js +1 -1
- package/dist/src/agent/background-review/run-background-review.js +8 -8
- package/dist/src/agent/context/coordinator.js +1 -1
- package/dist/src/agent/context/deep-recall.js +4 -4
- package/dist/src/agent/context/execution-context.js +3 -3
- package/dist/src/agent/context/project-context.js +4 -4
- package/dist/src/agent/embedded/execution-tool-policy.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +4 -4
- package/dist/src/agent/embedded/run-turn.js +1 -1
- package/dist/src/agent/embedded/session-runner.js +3 -3
- package/dist/src/agent/external-tools/cliProvider.js +4 -4
- package/dist/src/agent/external-tools/composio-provider.js +3 -3
- package/dist/src/agent/external-tools/endpoint-provider.js +24 -14
- package/dist/src/agent/image/tool-model-config.js +1 -1
- package/dist/src/agent/inbound/attachment-pipeline.js +1 -1
- package/dist/src/agent/mcp/connection-drafts.js +1 -1
- package/dist/src/agent/mcp/connection-setup.js +2 -2
- package/dist/src/agent/mcp/managed-discovery.js +1 -1
- package/dist/src/agent/mcp/tool-catalog.js +1 -1
- package/dist/src/agent/mcp/transport.js +1 -1
- package/dist/src/agent/orchestration/agent-orchestrator.js +1 -1
- package/dist/src/agent/orchestration/child-run-resume.js +1 -1
- package/dist/src/agent/prompt/response-language.js +1 -1
- package/dist/src/agent/prompt/service-prompt-builder.js +1 -1
- package/dist/src/agent/prompt/system-prompt-params.js +1 -1
- package/dist/src/agent/sandbox/exec-policy.js +1 -1
- package/dist/src/agent/service/process-direct-streaming.js +2 -2
- package/dist/src/agent/service.js +10 -10
- package/dist/src/agent/session/session-config-service.js +1 -1
- package/dist/src/agent/session/session-inspector.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/skill-manage-ops.js +1 -1
- package/dist/src/agent/skills/skill-manager.js +1 -1
- package/dist/src/agent/skills/skill-sources.js +1 -1
- package/dist/src/agent/tasks/task-judge-service.js +6 -6
- package/dist/src/agent/tool-manuals/computer.d.ts +1 -1
- package/dist/src/agent/tool-manuals/computer.js +2 -2
- package/dist/src/agent/tools/factory.js +10 -10
- package/dist/src/agent/tools/fetch-text.js +1 -1
- package/dist/src/agent/tools/index.js +3 -3
- package/dist/src/agent/tools/knowledge-memory-tool.js +1 -1
- package/dist/src/agent/tools/personal-attention-tool.js +1 -1
- package/dist/src/agent/tools/personal-memory-tool.js +5 -5
- package/dist/src/agent/tools/personal-read-tool.js +1 -1
- package/dist/src/agent/tools/personal-request-result-tool.js +1 -1
- package/dist/src/agent/tools/personal-request-tool.js +2 -2
- package/dist/src/agent/tools/personal-task-tool.js +4 -4
- package/dist/src/agent/tools/session-search-tool.js +2 -2
- package/dist/src/agent/tools/user-context-tool.js +2 -2
- package/dist/src/agent/tools/xopc-use-tool.js +5 -5
- package/dist/src/ai-assist/text-assist.js +1 -1
- package/dist/src/auth/oauth/xopc-cloud.js +1 -1
- package/dist/src/auth/sync-provider-auth.js +1 -1
- package/dist/src/automations/api/routes.js +2 -2
- package/dist/src/automations/capabilities/write.js +3 -3
- package/dist/src/automations/configuration-conversation.js +1 -1
- package/dist/src/automations/domain/index.js +1 -1
- package/dist/src/automations/draft/automation-draft-service.js +1 -1
- package/dist/src/automations/index.js +2 -2
- package/dist/src/automations/service/action-executor.js +2 -2
- package/dist/src/automations/service/automation-service.js +2 -2
- package/dist/src/browser/native-messaging-host.js +1 -1
- package/dist/src/capabilities/capability-catalog.js +3 -3
- package/dist/src/capabilities/runtime/dispatcher.js +1 -1
- package/dist/src/capabilities/runtime/product.js +2 -2
- package/dist/src/capabilities/store-connector.js +1 -1
- package/dist/src/chat-commands/agent-edit.js +1 -1
- package/dist/src/chat-commands/builtins/config.js +1 -1
- package/dist/src/cli/commands/agent.js +1 -1
- package/dist/src/cli/commands/agents.js +1 -1
- package/dist/src/cli/commands/connectors.js +1 -1
- package/dist/src/cli/commands/doctor/checks/gateway-health.js +1 -1
- package/dist/src/cli/commands/doctor/checks/provider-auth.js +1 -1
- package/dist/src/cli/commands/extension-agent-plugin.js +1 -1
- package/dist/src/cli/commands/init.js +1 -1
- package/dist/src/cli/commands/models.js +2 -2
- package/dist/src/cli/commands/onboard/model.js +2 -2
- package/dist/src/cli/commands/onboard.js +1 -1
- package/dist/src/cli/commands/project.js +1 -1
- package/dist/src/cli/commands/tunnel.js +1 -1
- package/dist/src/cli/extension-cli-register.js +1 -1
- package/dist/src/cli/utils/gateway-client.js +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +2 -2
- package/dist/src/computer/endpoint-transport.d.ts +1 -1
- package/dist/src/computer/endpoint-transport.js +3 -2
- package/dist/src/computer/errors.js +2 -1
- package/dist/src/computer/model-adapter.js +1 -0
- package/dist/src/computer/runtime.d.ts +1 -0
- package/dist/src/computer/runtime.js +15 -3
- package/dist/src/config/config-file.js +1 -1
- package/dist/src/config/index.js +4 -4
- package/dist/src/config/loader.js +1 -1
- package/dist/src/config/models-json.js +2 -2
- package/dist/src/connectors/connected-source-ingestion.js +2 -2
- package/dist/src/connectors/connected-source-understanding.js +2 -2
- package/dist/src/connectors/content-enrichment.js +1 -1
- package/dist/src/connectors/health.js +1 -1
- package/dist/src/endpoint-tools/device-capability-grants.d.ts +13 -0
- package/dist/src/endpoint-tools/device-capability-grants.js +71 -0
- package/dist/src/endpoint-tools/folder-connections.d.ts +3 -1
- package/dist/src/endpoint-tools/folder-connections.js +12 -8
- package/dist/src/endpoint-tools/invocation-service.d.ts +3 -0
- package/dist/src/endpoint-tools/invocation-service.js +8 -1
- package/dist/src/endpoint-tools/policy.js +1 -1
- package/dist/src/endpoint-tools/target-resolver.js +12 -7
- package/dist/src/endpoint-tools/task-targets.d.ts +3 -2
- package/dist/src/endpoint-tools/task-targets.js +9 -4
- package/dist/src/extensions/agent-plugins/auth.js +1 -1
- package/dist/src/extensions/agent-plugins/cli-authorization.js +1 -1
- package/dist/src/extensions/agent-plugins/credentials.js +1 -1
- package/dist/src/extensions/agent-plugins/setup.js +1 -1
- package/dist/src/extensions/agent-plugins/skill-catalog.js +3 -3
- package/dist/src/extensions/agent-plugins/source-http-fetch.js +1 -1
- package/dist/src/extensions/agent-plugins/user-config.js +1 -1
- package/dist/src/extensions/agent-plugins/validation.js +2 -2
- package/dist/src/extensions/install.js +1 -1
- package/dist/src/gateway/agent-reactions/reaction.js +3 -3
- package/dist/src/gateway/agents-admin.js +2 -2
- package/dist/src/gateway/file-path-classifier.js +1 -1
- package/dist/src/gateway/global-defaults-admin.js +1 -1
- package/dist/src/gateway/hono/app.js +1 -1
- package/dist/src/gateway/hono/lib/config-payload.js +2 -2
- package/dist/src/gateway/hono/middleware/auth.js +10 -0
- package/dist/src/gateway/hono/oauth-async.js +1 -1
- package/dist/src/gateway/hono/routes/agent-plugins.js +1 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
- package/dist/src/gateway/hono/routes/commands-skills.js +3 -3
- package/dist/src/gateway/hono/routes/config-patch/misc.js +1 -1
- package/dist/src/gateway/hono/routes/device-connections.js +105 -14
- package/dist/src/gateway/hono/routes/endpoint-compatibility.js +6 -0
- package/dist/src/gateway/hono/routes/home.js +1 -1
- package/dist/src/gateway/hono/routes/lazy-bundles.js +1 -1
- package/dist/src/gateway/hono/routes/local-app-run-streams.js +1 -1
- package/dist/src/gateway/hono/routes/mcp.js +1 -1
- package/dist/src/gateway/hono/routes/media.js +18 -32
- package/dist/src/gateway/hono/routes/memory-learning.js +2 -2
- package/dist/src/gateway/hono/routes/mobile-capability-actions.js +4 -4
- package/dist/src/gateway/hono/routes/mobile-capability-panels.js +9 -9
- package/dist/src/gateway/hono/routes/models.js +2 -2
- package/dist/src/gateway/hono/routes/music-generation.js +1 -1
- package/dist/src/gateway/hono/routes/notes.js +2 -2
- package/dist/src/gateway/hono/routes/phone-setup.js +3 -3
- package/dist/src/gateway/hono/routes/phone.js +2 -2
- package/dist/src/gateway/hono/routes/projects.js +5 -5
- package/dist/src/gateway/hono/routes/session-input-handler.js +1 -1
- package/dist/src/gateway/hono/routes/sessions.js +1 -1
- package/dist/src/gateway/hono/routes/shares.js +96 -12
- package/dist/src/gateway/hono/routes/space.js +6 -3
- package/dist/src/gateway/hono/routes/tasks.js +2 -2
- package/dist/src/gateway/hono/routes/tui.js +1 -1
- package/dist/src/gateway/hono/routes/user-model.js +5 -5
- package/dist/src/gateway/hono/routes/video-generation.js +1 -1
- package/dist/src/gateway/image-generation-setup.js +1 -1
- package/dist/src/gateway/media-access.js +1 -1
- package/dist/src/gateway/security/gateway-scopes.d.ts +1 -0
- package/dist/src/gateway/security/gateway-scopes.js +9 -1
- package/dist/src/gateway/security/media-playback-ticket.d.ts +3 -0
- package/dist/src/gateway/security/media-playback-ticket.js +41 -0
- package/dist/src/gateway/service/agent-runner.js +2 -2
- package/dist/src/gateway/service/config-coordinator.js +1 -1
- package/dist/src/gateway/service/marketplace-service.js +2 -2
- package/dist/src/gateway/service/run-gateway-agent.js +1 -1
- package/dist/src/gateway/service/session-command-service.js +2 -2
- package/dist/src/gateway/service/session-input-coordinator.js +1 -1
- package/dist/src/gateway/service.js +29 -29
- package/dist/src/gateway/session-context-summary.js +1 -1
- package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
- package/dist/src/home-intelligence/follow-ups.js +1 -1
- package/dist/src/home-intelligence/generator.js +2 -2
- package/dist/src/home-intelligence/host.js +5 -5
- package/dist/src/home-intelligence/observation.js +1 -1
- package/dist/src/home-intelligence/routines.js +2 -2
- package/dist/src/imports/importService.js +1 -1
- package/dist/src/imports/inventory.js +2 -2
- package/dist/src/imports/productImport.js +1 -1
- package/dist/src/knowledge-memory/repository.js +1 -1
- package/dist/src/knowledge-memory/usage-policy.js +1 -1
- package/dist/src/local-apps/automation-proposals.js +2 -2
- package/dist/src/local-apps/capabilities/automation-policy.js +1 -1
- package/dist/src/local-apps/capabilities/delegate.js +4 -4
- package/dist/src/local-apps/execution-authority.js +2 -2
- package/dist/src/local-apps/p1-services.js +3 -3
- package/dist/src/local-apps/preview-worker.js +1 -1
- package/dist/src/local-apps/service.js +2 -2
- package/dist/src/mcp/gateway-http-client.js +1 -1
- package/dist/src/media-shared/http/file-response.d.ts +3 -0
- package/dist/src/media-shared/http/file-response.js +31 -0
- package/dist/src/memory-learning/choice-observations.js +6 -6
- package/dist/src/memory-learning/source-learning.js +4 -4
- package/dist/src/memory-learning/task-receipts.js +1 -1
- package/dist/src/memory-learning/work-capture.js +1 -1
- package/dist/src/memory-learning/work-review.js +2 -2
- package/dist/src/music-generation/artifact.d.ts +1 -1
- package/dist/src/music-generation/artifact.js +4 -18
- package/dist/src/notes/service.js +1 -1
- package/dist/src/personal-agent/capability-service.js +1 -1
- package/dist/src/personal-agent/proactivity/routes.js +1 -1
- package/dist/src/personal-agent/proactivity/service.js +4 -4
- package/dist/src/personal-agent/prompt-context.js +4 -4
- package/dist/src/personal-agent/reply-composer.js +4 -4
- package/dist/src/personal-agent/request-delivery.js +1 -1
- package/dist/src/personal-agent/request-service.js +4 -4
- package/dist/src/personal-agent/result-reader.js +1 -1
- package/dist/src/personal-agent/service.js +1 -1
- package/dist/src/personal-agent/task-cancel.js +1 -1
- package/dist/src/phone/cloud-adb-connection.js +1 -1
- package/dist/src/projects/capabilities/write.js +2 -2
- package/dist/src/projects/index.js +2 -2
- package/dist/src/projects/project-service.js +2 -2
- package/dist/src/projects/workspace.js +1 -1
- package/dist/src/providers/model-catalog-persistence.js +1 -1
- package/dist/src/providers/model-registry.js +1 -1
- package/dist/src/realtime/compact-run-event.js +5 -1
- package/dist/src/session/compact-history.js +6 -3
- package/dist/src/session/history-recall-policy.js +2 -2
- package/dist/src/session/index.js +1 -1
- package/dist/src/session/session-title.js +1 -1
- package/dist/src/session/store.js +1 -1
- package/dist/src/share/share-landing.d.ts +2 -0
- package/dist/src/share/share-landing.js +4 -0
- package/dist/src/share/share-store.js +3 -2
- package/dist/src/share/share-thumbnail.js +1 -1
- package/dist/src/share/share-types.d.ts +4 -0
- package/dist/src/share/site-proxy.js +1 -1
- package/dist/src/space/repository.d.ts +9 -1
- package/dist/src/space/repository.js +75 -30
- package/dist/src/storage/sqlite/device-pairing-approval.js +1 -0
- package/dist/src/tasks/capabilities/read.js +4 -4
- package/dist/src/tasks/capabilities/relations.js +1 -1
- package/dist/src/tasks/capabilities/write.js +4 -4
- package/dist/src/tasks/home-query-service.js +1 -1
- package/dist/src/tasks/index.js +2 -2
- package/dist/src/tasks/task-allocation-service.js +4 -4
- package/dist/src/tasks/task-application-service.js +2 -2
- package/dist/src/tasks/task-contract-planner.js +1 -1
- package/dist/src/tasks/task-execution-capabilities.js +1 -1
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tasks/task-handoff.js +6 -6
- package/dist/src/tasks/task-json-acceptance.js +1 -1
- package/dist/src/tasks/task-main-update-decision-service.js +2 -2
- package/dist/src/tasks/task-main-update-delivery.js +1 -1
- package/dist/src/tasks/task-model-call.js +1 -1
- package/dist/src/tasks/task-research-result.js +2 -2
- package/dist/src/tasks/task-result-delivery-service.js +1 -1
- package/dist/src/tasks/task-retry-service.js +1 -1
- package/dist/src/tasks/task-run-coordinator.js +4 -4
- package/dist/src/tasks/task-run-dispatcher.js +1 -1
- package/dist/src/tui/backends/embedded-backend.js +6 -6
- package/dist/src/tui/tui-capabilities.js +2 -2
- package/dist/src/tui/tui-commands.js +2 -2
- package/dist/src/tui/tui-management.js +6 -6
- package/dist/src/tui/tui-skills-autocomplete.js +1 -1
- package/dist/src/tui/tui-startup-resources.js +2 -2
- package/dist/src/tui/tui.js +4 -4
- package/dist/src/user-context/access-policy.js +2 -2
- package/dist/src/user-model/bootstrap.js +1 -1
- package/dist/src/user-model/capture/executor.js +2 -2
- package/dist/src/user-model/index.js +2 -2
- package/dist/src/user-model/usage-policy.js +1 -1
- package/dist/src/video-generation/artifact.d.ts +1 -1
- package/dist/src/video-generation/artifact.js +4 -28
- package/dist/src/voice/realtime/conversation-context.js +1 -1
- package/dist/src/voice/realtime/memory-context.js +4 -4
- package/dist/src/voice/realtime/persona-context.js +1 -1
- package/dist/src/voice/realtime/user-context.js +1 -1
- package/dist/src/work-discovery/service.js +6 -6
- package/package.json +1 -1
- package/dist/gateway/static/root/assets/browser-notification-delivery-DmE2FgGc.js +0 -1
- package/dist/gateway/static/root/assets/capabilities-page-BFYx0xu5.js +0 -2
- package/dist/gateway/static/root/assets/device-connections-panel-XtEX1NcJ.js +0 -1
- package/dist/gateway/static/root/assets/file-preview-surface-BOfJPMux.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-jIH8iEGO.js +0 -1
- package/dist/gateway/static/root/assets/index-Cl5ueYDl.css +0 -1
- package/dist/gateway/static/root/assets/index-DYRzuQl_.js +0 -11
- package/dist/gateway/static/root/assets/map-pin-DNclV497.js +0 -1
- package/dist/gateway/static/root/assets/note-detail-panel-lU1-3mBw.js +0 -7
- package/dist/gateway/static/root/assets/product-automation-feedback-BxA2Ype-.js +0 -1
- package/dist/gateway/static/root/assets/route-preload-B-OXsVjy.js +0 -2
- package/dist/gateway/static/root/assets/routine-panel-BWLC11Ou.js +0 -2
- package/dist/gateway/static/root/assets/space-page-DhhqkNGh.js +0 -2
- package/dist/gateway/static/root/assets/system-settings-panel-Gu0rWNOv.js +0 -1
- package/dist/gateway/static/root/assets/use-composer-attachments-Dnrs5cP1.js +0 -2
- package/dist/gateway/static/root/assets/workspace-file-preview-dialog-BlNfLhnV.js +0 -1
|
@@ -3,19 +3,22 @@ import { init_logger } from "../../../utils/logger.js";
|
|
|
3
3
|
import { init_transaction, runSqliteWriteTransaction } from "../../../storage/sqlite/transaction.js";
|
|
4
4
|
import { getDevice, listDevices } from "../../../storage/sqlite/device-access-repository.js";
|
|
5
5
|
import { deviceFolderSigningPayload, deviceFolderSnapshotSchema } from "../../../../packages/endpoint-tools-protocol/src/folders.js";
|
|
6
|
-
import { deviceConnectionChatRequestSchema, endpointTurnClaimSchema, init_src } from "../../../../packages/endpoint-tools-protocol/src/index.js";
|
|
6
|
+
import { desktopCapabilitySigningPayload, desktopCapabilitySnapshotSchema, deviceConnectionChatRequestSchema, endpointTurnClaimSchema, init_src, mobileDeviceCapabilityGrantSchema } from "../../../../packages/endpoint-tools-protocol/src/index.js";
|
|
7
7
|
import { deviceExecutionPrincipalId } from "../../../endpoint-tools/execution-actor.js";
|
|
8
8
|
import { init_agent_scope, resolveDefaultAgentId } from "../../../agent/agent-scope.js";
|
|
9
9
|
import { getEndpointPrincipal, listEndpointPrincipals } from "../../../storage/sqlite/endpoint-principal-repository.js";
|
|
10
10
|
import { createConversation, init_conversation_repository } from "../../../storage/sqlite/conversation-repository.js";
|
|
11
|
+
import { init_src as init_src$1 } from "../../../../packages/computer-control-contract/src/index.js";
|
|
11
12
|
import { getEndpointDeviceSettings } from "../../../storage/sqlite/endpoint-device-settings-repository.js";
|
|
12
|
-
import { deviceFolderSnapshots, deviceFoldersFor, mobileFolderPlatforms, saveDeviceFolderSnapshot } from "../../../endpoint-tools/folder-connections.js";
|
|
13
|
+
import { deviceFolderSnapshots, deviceFoldersFor, mobileFolderPlatforms, pairedFolderClientId, saveDeviceFolderSnapshot } from "../../../endpoint-tools/folder-connections.js";
|
|
14
|
+
import { deviceCapabilityAllowed, deviceCapabilityTitles, isManagedDeviceCapability, saveDesktopCapabilitySnapshot, setMobileCapabilityAllowed } from "../../../endpoint-tools/device-capability-grants.js";
|
|
13
15
|
import { parseEndpointPublicKey } from "../../../endpoint-tools/auth.js";
|
|
14
16
|
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
15
17
|
import { verify } from "node:crypto";
|
|
16
18
|
import { z } from "zod";
|
|
17
19
|
import { bodyLimit } from "hono/body-limit";
|
|
18
20
|
//#region src/gateway/hono/routes/device-connections.ts
|
|
21
|
+
init_src$1();
|
|
19
22
|
init_src();
|
|
20
23
|
init_agent_scope();
|
|
21
24
|
init_conversation_repository();
|
|
@@ -28,20 +31,21 @@ const publicationSchema = z.strictObject({
|
|
|
28
31
|
snapshot: deviceFolderSnapshotSchema,
|
|
29
32
|
signature: z.string().regex(/^[A-Za-z0-9_-]{86}$/)
|
|
30
33
|
});
|
|
34
|
+
const desktopPublicationSchema = publicationSchema.extend({ snapshot: desktopCapabilitySnapshotSchema });
|
|
31
35
|
function registerDeviceConnectionRoutes(app, deps) {
|
|
32
36
|
const runtime = deps.service.endpointTools;
|
|
33
37
|
app.get(root, (c) => {
|
|
34
38
|
c.header("Cache-Control", "no-store");
|
|
35
39
|
const actor = getGatewayPrincipal(c);
|
|
36
40
|
const owner = actor.kind === "owner" && actor.scopes.includes("gateway.admin");
|
|
37
|
-
const
|
|
38
|
-
if (!owner &&
|
|
41
|
+
const sourceId = pairedFolderClientId(actor);
|
|
42
|
+
if (!owner && !sourceId) return c.json({
|
|
39
43
|
ok: false,
|
|
40
44
|
error: { code: "FORBIDDEN" }
|
|
41
45
|
}, 403);
|
|
42
46
|
const ids = /* @__PURE__ */ new Map();
|
|
43
47
|
for (const device of listDevices()) {
|
|
44
|
-
if (device.revokedAt !== void 0 || !owner && device.id !==
|
|
48
|
+
if (device.revokedAt !== void 0 || !owner && device.id !== sourceId) continue;
|
|
45
49
|
if (device.platform === "desktop" || mobileFolderPlatforms.has(device.platform)) ids.set(device.id, {
|
|
46
50
|
kind: device.platform === "desktop" ? "desktop" : "mobile",
|
|
47
51
|
platform: device.platform,
|
|
@@ -49,7 +53,7 @@ function registerDeviceConnectionRoutes(app, deps) {
|
|
|
49
53
|
});
|
|
50
54
|
}
|
|
51
55
|
for (const principal of listEndpointPrincipals()) {
|
|
52
|
-
if (principal.revokedAt !== void 0 || principal.kind !== "desktop" && principal.kind !== "mobile" || !owner && principal.kind !== "desktop" && principal.id !==
|
|
56
|
+
if (principal.revokedAt !== void 0 || principal.kind !== "desktop" && principal.kind !== "mobile" || !owner && principal.kind !== "desktop" && principal.id !== sourceId) continue;
|
|
53
57
|
if (getDevice(principal.id)?.revokedAt !== void 0) continue;
|
|
54
58
|
ids.set(principal.id, {
|
|
55
59
|
kind: principal.kind,
|
|
@@ -60,13 +64,26 @@ function registerDeviceConnectionRoutes(app, deps) {
|
|
|
60
64
|
const connections = runtime.registry.list().sort((a, b) => b.lastHeartbeatAt - a.lastHeartbeatAt);
|
|
61
65
|
const devices = [...ids].map(([id, metadata]) => {
|
|
62
66
|
const candidates = connections.filter((endpoint) => endpoint.principalId === id && endpoint.kind === metadata.kind);
|
|
63
|
-
const endpoint = metadata.kind === "mobile" ? candidates.find((candidate) => candidate.availability === "foreground" && candidate.tools.length > 0) ?? candidates[0] : candidates.find((candidate) => candidate.tools.some((tool) => tool.descriptor.name === "desktop.folder.search")) ?? candidates[0];
|
|
64
|
-
const folders = metadata.kind !== "desktop" ? [] : (deviceFolderSnapshots.get(id)?.folders ?? []).filter((folder) => owner || folder.mobileIds
|
|
67
|
+
const endpoint = metadata.kind === "mobile" ? candidates.find((candidate) => candidate.availability === "foreground" && candidate.tools.length > 0) ?? candidates[0] : candidates.find((candidate) => candidate.tools.some((tool) => tool.descriptor.name === "desktop.folder.search")) ?? candidates.find((candidate) => !candidate.executionAuthority) ?? candidates[0];
|
|
68
|
+
const folders = metadata.kind !== "desktop" ? [] : (deviceFolderSnapshots.get(id)?.folders ?? []).filter((folder) => owner || folder.access === "gateway" || Boolean(sourceId && folder.mobileIds?.includes(sourceId))).map(({ id, kind, label, access }) => ({
|
|
65
69
|
id,
|
|
66
70
|
kind,
|
|
67
|
-
label
|
|
71
|
+
label,
|
|
72
|
+
...access && { access }
|
|
68
73
|
}));
|
|
69
|
-
const mayExposeEndpoint = owner || id ===
|
|
74
|
+
const mayExposeEndpoint = owner || id === sourceId || folders.length > 0 && endpoint?.tools.some((tool) => tool.descriptor.name === "desktop.folder.search");
|
|
75
|
+
const capabilities = owner || id === sourceId ? endpoint?.tools.flatMap(({ descriptor: { name, requiresForeground } }) => {
|
|
76
|
+
if (!isManagedDeviceCapability(endpoint, name)) return [];
|
|
77
|
+
const [titleZh, title] = deviceCapabilityTitles[name];
|
|
78
|
+
return [{
|
|
79
|
+
name,
|
|
80
|
+
title,
|
|
81
|
+
titleZh,
|
|
82
|
+
requiresForeground,
|
|
83
|
+
allowed: deviceCapabilityAllowed(endpoint, name),
|
|
84
|
+
...name === "desktop.computer.control" && !deps.service.currentConfig.computer.enabled && { needsSetup: true }
|
|
85
|
+
}];
|
|
86
|
+
}) ?? [] : void 0;
|
|
70
87
|
return {
|
|
71
88
|
id,
|
|
72
89
|
...metadata,
|
|
@@ -74,11 +91,12 @@ function registerDeviceConnectionRoutes(app, deps) {
|
|
|
74
91
|
...mayExposeEndpoint && endpoint ? { endpointId: endpoint.endpointId } : {},
|
|
75
92
|
availability: endpoint?.availability ?? "offline",
|
|
76
93
|
tools: mayExposeEndpoint ? endpoint?.tools.map((tool) => tool.descriptor.name) ?? [] : [],
|
|
94
|
+
...capabilities && { capabilities },
|
|
77
95
|
folders
|
|
78
96
|
};
|
|
79
97
|
});
|
|
80
98
|
const payload = {
|
|
81
|
-
...
|
|
99
|
+
...sourceId ? { currentDeviceId: sourceId } : {},
|
|
82
100
|
devices
|
|
83
101
|
};
|
|
84
102
|
return c.json({
|
|
@@ -86,6 +104,33 @@ function registerDeviceConnectionRoutes(app, deps) {
|
|
|
86
104
|
payload
|
|
87
105
|
});
|
|
88
106
|
});
|
|
107
|
+
app.patch(root, bodyLimit({ maxSize: 1024 }), async (c) => {
|
|
108
|
+
c.header("Cache-Control", "no-store");
|
|
109
|
+
const deviceId = pairedFolderClientId(getGatewayPrincipal(c));
|
|
110
|
+
if (!deviceId) return c.json({
|
|
111
|
+
ok: false,
|
|
112
|
+
error: { code: "FORBIDDEN" }
|
|
113
|
+
}, 403);
|
|
114
|
+
const parsed = mobileDeviceCapabilityGrantSchema.safeParse(await c.req.json().catch(() => null));
|
|
115
|
+
if (!parsed.success) return c.json({
|
|
116
|
+
ok: false,
|
|
117
|
+
error: { code: "BAD_REQUEST" }
|
|
118
|
+
}, 400);
|
|
119
|
+
const { toolName, allowed } = parsed.data;
|
|
120
|
+
if (allowed && !runtime.registry.list().some((endpoint) => endpoint.principalId === deviceId && endpoint.kind === "mobile" && runtime.registry.getTool(endpoint.endpointId, toolName))) return c.json({
|
|
121
|
+
ok: false,
|
|
122
|
+
error: { code: "TARGET_UNAVAILABLE" }
|
|
123
|
+
}, 409);
|
|
124
|
+
setMobileCapabilityAllowed(deviceId, toolName, allowed);
|
|
125
|
+
if (!allowed) runtime.invocations.revokeDeviceCapability(deviceId, toolName);
|
|
126
|
+
return c.json({
|
|
127
|
+
ok: true,
|
|
128
|
+
payload: {
|
|
129
|
+
toolName,
|
|
130
|
+
allowed
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
});
|
|
89
134
|
app.post(`${root}/chat`, bodyLimit({ maxSize: 4096 }), async (c) => {
|
|
90
135
|
c.header("Cache-Control", "no-store");
|
|
91
136
|
const actor = getGatewayPrincipal(c);
|
|
@@ -100,7 +145,7 @@ function registerDeviceConnectionRoutes(app, deps) {
|
|
|
100
145
|
error: { code: "BAD_REQUEST" }
|
|
101
146
|
}, 400);
|
|
102
147
|
const { endpointId, toolName } = parsed.data;
|
|
103
|
-
if (
|
|
148
|
+
if (toolName && !owner) return c.json({
|
|
104
149
|
ok: false,
|
|
105
150
|
error: { code: "FORBIDDEN" }
|
|
106
151
|
}, 403);
|
|
@@ -112,14 +157,19 @@ function registerDeviceConnectionRoutes(app, deps) {
|
|
|
112
157
|
if (toolName) {
|
|
113
158
|
const principal = getEndpointPrincipal(endpoint.principalId);
|
|
114
159
|
const device = getDevice(endpoint.principalId);
|
|
115
|
-
if (endpoint
|
|
160
|
+
if (!isManagedDeviceCapability(endpoint, toolName) || principal?.kind !== endpoint.kind || principal.revokedAt !== void 0 || device?.revokedAt !== void 0) return c.json({
|
|
116
161
|
ok: false,
|
|
117
162
|
error: { code: "FORBIDDEN" }
|
|
118
163
|
}, 403);
|
|
119
|
-
|
|
164
|
+
const tool = runtime.registry.getTool(endpointId, toolName);
|
|
165
|
+
if (!tool || tool.descriptor.requiresForeground && endpoint.availability !== "foreground" || toolName === "desktop.computer.control" && !deps.service.currentConfig.computer.enabled) return c.json({
|
|
120
166
|
ok: false,
|
|
121
167
|
error: { code: "TARGET_UNAVAILABLE" }
|
|
122
168
|
}, 409);
|
|
169
|
+
if (!deviceCapabilityAllowed(endpoint, toolName)) return c.json({
|
|
170
|
+
ok: false,
|
|
171
|
+
error: { code: "CAPABILITY_AUTHORIZATION_REQUIRED" }
|
|
172
|
+
}, 403);
|
|
123
173
|
} else if (!deviceFoldersFor(endpoint, actor).length) return c.json({
|
|
124
174
|
ok: false,
|
|
125
175
|
error: { code: "FORBIDDEN" }
|
|
@@ -152,6 +202,47 @@ function registerDeviceConnectionRoutes(app, deps) {
|
|
|
152
202
|
}, 409);
|
|
153
203
|
}
|
|
154
204
|
});
|
|
205
|
+
app.post(`${root}/capabilities`, bodyLimit({ maxSize: 4096 }), async (c) => {
|
|
206
|
+
c.header("Cache-Control", "no-store");
|
|
207
|
+
const actor = getGatewayPrincipal(c);
|
|
208
|
+
if (actor.kind !== "owner" || !actor.scopes.includes("gateway.admin")) return c.json({
|
|
209
|
+
ok: false,
|
|
210
|
+
error: { code: "FORBIDDEN" }
|
|
211
|
+
}, 403);
|
|
212
|
+
const parsed = desktopPublicationSchema.safeParse(await c.req.json().catch(() => null));
|
|
213
|
+
if (!parsed.success) return c.json({
|
|
214
|
+
ok: false,
|
|
215
|
+
error: { code: "BAD_REQUEST" }
|
|
216
|
+
}, 400);
|
|
217
|
+
const { origin, snapshot, signature } = parsed.data;
|
|
218
|
+
const endpoint = runtime.registry.get(origin.endpointId);
|
|
219
|
+
if (endpoint?.kind !== "desktop" || endpoint.executionAuthority || !runtime.registry.verifyTurnClaim(origin.endpointId, origin.token)) return c.json({
|
|
220
|
+
ok: false,
|
|
221
|
+
error: { code: "SOURCE_UNAVAILABLE" }
|
|
222
|
+
}, 409);
|
|
223
|
+
const principal = getEndpointPrincipal(endpoint.principalId);
|
|
224
|
+
if (principal?.kind !== "desktop" || principal.revokedAt !== void 0 || getDevice(principal.id)?.revokedAt !== void 0 || !verify("sha256", Buffer.from(desktopCapabilitySigningPayload(origin, snapshot)), {
|
|
225
|
+
key: parseEndpointPublicKey(principal.publicKey),
|
|
226
|
+
dsaEncoding: "ieee-p1363"
|
|
227
|
+
}, Buffer.from(signature, "base64url"))) return c.json({
|
|
228
|
+
ok: false,
|
|
229
|
+
error: { code: "FORBIDDEN" }
|
|
230
|
+
}, 403);
|
|
231
|
+
if (new Set(snapshot.allowed).size !== snapshot.allowed.length || snapshot.allowed.some((name) => !runtime.registry.getTool(endpoint.endpointId, name))) return c.json({
|
|
232
|
+
ok: false,
|
|
233
|
+
error: { code: "BAD_REQUEST" }
|
|
234
|
+
}, 400);
|
|
235
|
+
const revoked = saveDesktopCapabilitySnapshot(endpoint.principalId, snapshot);
|
|
236
|
+
if (!revoked) return c.json({
|
|
237
|
+
ok: false,
|
|
238
|
+
error: { code: "CAPABILITY_REVISION_CONFLICT" }
|
|
239
|
+
}, 409);
|
|
240
|
+
for (const name of revoked) runtime.invocations.revokeDeviceCapability(endpoint.principalId, name);
|
|
241
|
+
return c.json({
|
|
242
|
+
ok: true,
|
|
243
|
+
payload: { revision: snapshot.revision }
|
|
244
|
+
});
|
|
245
|
+
});
|
|
155
246
|
app.post(`${root}/folders`, bodyLimit({ maxSize: 48e3 }), async (c) => {
|
|
156
247
|
c.header("Cache-Control", "no-store");
|
|
157
248
|
const actor = getGatewayPrincipal(c);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { init_connection, isXopcDatabaseOpen } from "../../../storage/sqlite/connection.js";
|
|
2
|
+
import { getOrCreateGatewayIdentity } from "../../../storage/sqlite/gateway-identity-repository.js";
|
|
1
3
|
import { init_src } from "../../../../packages/endpoint-tools-protocol/src/index.js";
|
|
2
4
|
import { COMPUTER_DESCRIPTOR, COMPUTER_FRAME_MAX_BYTES, init_src as init_src$1 } from "../../../../packages/computer-control-contract/src/index.js";
|
|
3
5
|
import { REALTIME_CAPABILITIES } from "../../../../packages/realtime-protocol/src/index.js";
|
|
@@ -5,6 +7,7 @@ import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
|
5
7
|
//#region src/gateway/hono/routes/endpoint-compatibility.ts
|
|
6
8
|
init_src$1();
|
|
7
9
|
init_src();
|
|
10
|
+
init_connection();
|
|
8
11
|
function registerEndpointCompatibilityRoutes(authenticated) {
|
|
9
12
|
authenticated.get("/api/endpoint-tools/compatibility", (c) => {
|
|
10
13
|
const principal = getGatewayPrincipal(c);
|
|
@@ -21,6 +24,7 @@ function registerEndpointCompatibilityRoutes(authenticated) {
|
|
|
21
24
|
turnDeviceContextV1: true,
|
|
22
25
|
clarificationVersions: process.env.XOPC_CLARIFY_MULTI_QUESTION === "false" ? [1] : [1, 2],
|
|
23
26
|
endpointEnvironmentV1: true,
|
|
27
|
+
...isXopcDatabaseOpen() ? { gatewayId: getOrCreateGatewayIdentity().id } : {},
|
|
24
28
|
locationSharingV1: true,
|
|
25
29
|
mobilePhoneWorkspaceV1: true,
|
|
26
30
|
phoneMediaProtocolVersion: 1,
|
|
@@ -31,6 +35,8 @@ function registerEndpointCompatibilityRoutes(authenticated) {
|
|
|
31
35
|
mobilePersonalToolsV1: true,
|
|
32
36
|
mobileExtendedPersonalToolsV1: true,
|
|
33
37
|
deviceFolderConnectionsV1: true,
|
|
38
|
+
deviceFolderGatewayAccessV1: true,
|
|
39
|
+
desktopCapabilityAccessV1: true,
|
|
34
40
|
...principal.kind === "device" ? { deviceId: principal.deviceId } : {},
|
|
35
41
|
endpointProtocolVersion: 3,
|
|
36
42
|
computerControl: COMPUTER_DESCRIPTOR,
|
|
@@ -8,8 +8,8 @@ import { acknowledgeHomeAttention } from "../../../storage/sqlite/home-attention
|
|
|
8
8
|
import "../../../storage/sqlite/index.js";
|
|
9
9
|
import { HomeQueryService, buildHomeWorkbench, decisionFromTask } from "../../../tasks/home-query-service.js";
|
|
10
10
|
import { resumeApprovedConnectorAction } from "../../../connectors/approval-resume.js";
|
|
11
|
-
import { HomeOpportunityActionError, HomeOpportunityNotFoundError } from "../../../home-intelligence/application-service.js";
|
|
12
11
|
import { ObservationConflictError } from "../../../home-intelligence/observation.js";
|
|
12
|
+
import { HomeOpportunityActionError, HomeOpportunityNotFoundError } from "../../../home-intelligence/application-service.js";
|
|
13
13
|
//#region src/gateway/hono/routes/home.ts
|
|
14
14
|
init_src();
|
|
15
15
|
/** Register the unified work-home read model and its decision actions. */
|
|
@@ -146,7 +146,7 @@ const AUTHENTICATED_LAZY_ROUTE_BUNDLES = [
|
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
id: "device-connections",
|
|
149
|
-
match: (path) => /^\/api\/endpoint-tools\/device-connections(?:\/(?:folders|chat))?$/.test(path),
|
|
149
|
+
match: (path) => /^\/api\/endpoint-tools\/device-connections(?:\/(?:folders|chat|capabilities))?$/.test(path),
|
|
150
150
|
load: async () => {
|
|
151
151
|
const { registerDeviceConnectionRoutes } = await import("./device-connections.js");
|
|
152
152
|
return { register: registerDeviceConnectionRoutes };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { onAutomationRunChange } from "../../../automations/run-changes.js";
|
|
1
2
|
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
2
3
|
import "../../../capabilities/runtime/dispatcher.js";
|
|
3
|
-
import { onAutomationRunChange } from "../../../automations/run-changes.js";
|
|
4
4
|
import { localAppResourceAllowed } from "../../../local-apps/capabilities/resource-policy.js";
|
|
5
5
|
import { localAppCapabilities } from "../../../local-apps/capabilities/runtime.js";
|
|
6
6
|
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { getWorkspacePath } from "../../../config/workspace-path-helpers.js";
|
|
1
2
|
import { isManagedConnectorServer } from "../../../connectors/materialize.js";
|
|
2
3
|
import { resolveMcpSetupConfig } from "../../../agent/mcp/effective-server.js";
|
|
3
4
|
import { loadMergedMcpConfig } from "../../../agent/mcp/config.js";
|
|
4
5
|
import { discoverMcpTools } from "../../../agent/mcp/tool-catalog.js";
|
|
5
|
-
import { getWorkspacePath } from "../../../config/workspace-path-helpers.js";
|
|
6
6
|
import { cancelMcpAuthorization, getMcpAuthorization, probeMcpConnection, startMcpAuthorization, submitMcpRedirect } from "../../../agent/mcp/connection-setup.js";
|
|
7
7
|
import { McpConnectionDrafts, McpDraftError, mcpConfigRevision } from "../../../agent/mcp/connection-drafts.js";
|
|
8
8
|
import { withGatewayConfigWriteLock } from "../lib/config-write-lock.js";
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import { MEDIA_ARTIFACT_MAX_BYTES, mimeTypeFromMediaPath, saveMediaBuffer } from "../../../media/store.js";
|
|
2
|
-
import { readMediaReference } from "../../../media/media-reference.js";
|
|
3
2
|
import { MAX_WEBCHAT_ATTACHMENT_FILE_BYTES } from "../../chat-limits.js";
|
|
4
|
-
import {
|
|
3
|
+
import { fileRangeResponse } from "../../../media-shared/http/file-response.js";
|
|
4
|
+
import { issueMediaPlaybackTicket } from "../../security/media-playback-ticket.js";
|
|
5
|
+
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
5
6
|
import { createGatewayRouteLogger } from "../lib/route-logger.js";
|
|
6
7
|
import { resolveScopedMediaReference } from "../../media-access.js";
|
|
8
|
+
import { stat } from "node:fs/promises";
|
|
7
9
|
//#region src/gateway/hono/routes/media.ts
|
|
8
10
|
const log = createGatewayRouteLogger("Media");
|
|
9
11
|
function registerMediaRoutes(authenticated, deps) {
|
|
12
|
+
authenticated.post("/api/media/playback-ticket", deps.strictRateLimitMiddleware, async (c) => {
|
|
13
|
+
const body = await c.req.json().catch(() => null);
|
|
14
|
+
if (typeof body?.path !== "string") return c.json({ error: "Missing media path" }, 400);
|
|
15
|
+
const path = issueMediaPlaybackTicket(body.path, getGatewayPrincipal(c));
|
|
16
|
+
if (!path) return c.json({ error: "Playback is unavailable for this resource" }, 403);
|
|
17
|
+
return c.json({ path }, 201, { "Cache-Control": "no-store" });
|
|
18
|
+
});
|
|
10
19
|
authenticated.post("/api/media", deps.strictRateLimitMiddleware, async (c) => {
|
|
11
20
|
const file = (await c.req.formData().catch(() => null))?.get("file");
|
|
12
21
|
if (!(file instanceof Blob)) return c.json({
|
|
@@ -51,40 +60,17 @@ function registerMediaRoutes(authenticated, deps) {
|
|
|
51
60
|
error: { message: "Missing media scope" }
|
|
52
61
|
}, 400);
|
|
53
62
|
try {
|
|
54
|
-
const
|
|
63
|
+
const { path, bucket } = await resolveScopedMediaReference(deps.service, uriRaw.trim(), {
|
|
55
64
|
conversationId,
|
|
56
65
|
taskId
|
|
57
66
|
});
|
|
58
|
-
const
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"Accept-Ranges": "bytes",
|
|
67
|
+
const file = await stat(path);
|
|
68
|
+
const maxBytes = bucket === "outbound" ? MEDIA_ARTIFACT_MAX_BYTES : MAX_WEBCHAT_ATTACHMENT_FILE_BYTES;
|
|
69
|
+
if (!file.isFile() || file.size > maxBytes) throw new Error("Media unavailable");
|
|
70
|
+
return fileRangeResponse(path, file.size, c.req.header("Range"), {
|
|
63
71
|
"Cache-Control": "private, max-age=3600",
|
|
64
|
-
"Content-Type":
|
|
65
|
-
};
|
|
66
|
-
if (range === "invalid") return new Response(null, {
|
|
67
|
-
status: 416,
|
|
68
|
-
headers: {
|
|
69
|
-
...commonHeaders,
|
|
70
|
-
"Content-Range": `bytes */${buffer.byteLength}`
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
if (range) {
|
|
74
|
-
const body = buffer.subarray(range.start, range.end + 1);
|
|
75
|
-
return new Response(body, {
|
|
76
|
-
status: 206,
|
|
77
|
-
headers: {
|
|
78
|
-
...commonHeaders,
|
|
79
|
-
"Content-Length": String(body.byteLength),
|
|
80
|
-
"Content-Range": `bytes ${range.start}-${range.end}/${buffer.byteLength}`
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
return new Response(buffer, { headers: {
|
|
85
|
-
...commonHeaders,
|
|
86
|
-
"Content-Length": String(buffer.byteLength)
|
|
87
|
-
} });
|
|
72
|
+
"Content-Type": mimeTypeFromMediaPath(path)
|
|
73
|
+
}, c.req.method === "HEAD");
|
|
88
74
|
} catch (err) {
|
|
89
75
|
const em = err instanceof Error ? err.message : String(err);
|
|
90
76
|
log.warn({
|
|
@@ -2,13 +2,13 @@ import { getSqliteDatabase, init_transaction } from "../../../storage/sqlite/tra
|
|
|
2
2
|
import { getSessionMetadata } from "../../../storage/sqlite/session-read-repository.js";
|
|
3
3
|
import { init_session_repository } from "../../../storage/sqlite/session-repository.js";
|
|
4
4
|
import { getSessionConfig } from "../../../storage/sqlite/config-repository.js";
|
|
5
|
-
import { bindOwnerIdentity } from "../../../user-context/identity-bindings.js";
|
|
6
5
|
import { init_config, resolveKnowledgeReadPolicy } from "../../../user-context/config.js";
|
|
7
|
-
import {
|
|
6
|
+
import { bindOwnerIdentity } from "../../../user-context/identity-bindings.js";
|
|
8
7
|
import { enqueueConversationLearning, learningStatus } from "../../../memory-learning/repository.js";
|
|
9
8
|
import { canUseKnowledge, knowledgeExclusion } from "../../../knowledge-memory/usage-policy.js";
|
|
10
9
|
import { getKnowledgeItem } from "../../../knowledge-memory/repository.js";
|
|
11
10
|
import "../../../knowledge-memory/index.js";
|
|
11
|
+
import { resolveEffectiveAgentProfileForSession } from "../../../config/agent-profile.js";
|
|
12
12
|
import { suggestWorkMemoryReview } from "../../../memory-learning/work-review.js";
|
|
13
13
|
//#region src/gateway/hono/routes/memory-learning.ts
|
|
14
14
|
init_transaction();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AgentCatalogRepository, init_repository } from "../../../agent-catalog/repository.js";
|
|
2
|
-
import { AgentCatalogService } from "../../../agent-catalog/service.js";
|
|
3
|
-
import { personalAgentId } from "../../../personal-agent/repository.js";
|
|
4
2
|
import { pluginAuthorizations } from "../../../extensions/agent-plugins/setup-contract.js";
|
|
5
3
|
import { AgentPluginStore } from "../../../extensions/agent-plugins/store.js";
|
|
6
|
-
import { checkUrlSafety } from "../../../agent/tools/url-safety.js";
|
|
7
4
|
import { getWorkspacePath } from "../../../config/workspace-path-helpers.js";
|
|
8
|
-
import {
|
|
5
|
+
import { personalAgentId } from "../../../personal-agent/repository.js";
|
|
6
|
+
import { checkUrlSafety } from "../../../agent/tools/url-safety.js";
|
|
9
7
|
import { PluginSetupService, setupActionSchema } from "../../../extensions/agent-plugins/setup.js";
|
|
8
|
+
import { McpConnectionDrafts, McpDraftError } from "../../../agent/mcp/connection-drafts.js";
|
|
9
|
+
import { AgentCatalogService } from "../../../agent-catalog/service.js";
|
|
10
10
|
import { searchSkillMarketplaces } from "../../../agent/skills/marketplace/search.js";
|
|
11
11
|
import { evictAllEmbeddedSessionRunners } from "../../../agent/embedded/session-runner.js";
|
|
12
12
|
import { withGatewayConfigWriteLock } from "../lib/config-write-lock.js";
|
|
@@ -2,29 +2,29 @@ import { createLogger } from "../../../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../../../utils/logger.js";
|
|
3
3
|
import { AgentCatalogRepository, init_repository } from "../../../agent-catalog/repository.js";
|
|
4
4
|
import { init_connector_repository, listConnectorConnections } from "../../../storage/sqlite/connector-repository.js";
|
|
5
|
-
import {
|
|
5
|
+
import { pluginAuthorizations } from "../../../extensions/agent-plugins/setup-contract.js";
|
|
6
|
+
import { pluginName } from "../../../extensions/agent-plugins/validation.js";
|
|
7
|
+
import { AgentPluginStore } from "../../../extensions/agent-plugins/store.js";
|
|
6
8
|
import { CredentialResolver, init_credentials } from "../../../auth/credentials.js";
|
|
9
|
+
import { getWorkspacePath } from "../../../config/workspace-path-helpers.js";
|
|
10
|
+
import { getPersonalAgent, personalAgentId } from "../../../personal-agent/repository.js";
|
|
7
11
|
import { assertComposioAccessConfigured } from "../../../connectors/composio-sessions.js";
|
|
8
12
|
import { listComposioConnections, revokeComposioConnection } from "../../../connectors/composio.js";
|
|
9
13
|
import { getConnectorDefinition } from "../../../connectors/catalog.js";
|
|
10
14
|
import { connectorPrincipalForSession } from "../../../connectors/principal.js";
|
|
11
|
-
import { getPersonalAgent, personalAgentId } from "../../../personal-agent/repository.js";
|
|
12
|
-
import { pluginAuthorizations } from "../../../extensions/agent-plugins/setup-contract.js";
|
|
13
|
-
import { pluginName } from "../../../extensions/agent-plugins/validation.js";
|
|
14
|
-
import { AgentPluginStore } from "../../../extensions/agent-plugins/store.js";
|
|
15
15
|
import { checkUrlSafety } from "../../../agent/tools/url-safety.js";
|
|
16
16
|
import { connectorSecretProviderId } from "../../../connectors/secret-store.js";
|
|
17
17
|
import { materializeConnectorMcpServer } from "../../../connectors/materialize.js";
|
|
18
|
-
import { readPluginUserConfig } from "../../../extensions/agent-plugins/user-config.js";
|
|
19
|
-
import { getWorkspacePath } from "../../../config/workspace-path-helpers.js";
|
|
20
|
-
import { McpDraftError } from "../../../agent/mcp/connection-drafts.js";
|
|
21
|
-
import { buildChannelCatalogForConfig, buildChannelCatalogFromSnapshot, getChannelSetupStatus } from "../../../channels/catalog/channel-catalog-service.js";
|
|
22
18
|
import { getInstalledConnectorDefinition, listConnectorInstances } from "../../../connectors/instances.js";
|
|
23
19
|
import { installConnectorDefinition, updateConnectorConfig } from "../../../connectors/install.js";
|
|
24
20
|
import { getStoreConnectorInstallPlan, installStoreConnector } from "../../../capabilities/store-connector.js";
|
|
25
21
|
import { listAgentPluginInventory } from "../../../extensions/agent-plugins/inventory.js";
|
|
22
|
+
import { readPluginUserConfig } from "../../../extensions/agent-plugins/user-config.js";
|
|
26
23
|
import { PluginSetupService } from "../../../extensions/agent-plugins/setup.js";
|
|
24
|
+
import { McpDraftError } from "../../../agent/mcp/connection-drafts.js";
|
|
25
|
+
import { AgentCatalogService } from "../../../agent-catalog/service.js";
|
|
27
26
|
import { isBundledChannelExtension } from "../../../channels/bundled-channel-extensions.js";
|
|
27
|
+
import { buildChannelCatalogForConfig, buildChannelCatalogFromSnapshot, getChannelSetupStatus } from "../../../channels/catalog/channel-catalog-service.js";
|
|
28
28
|
import { findExtension } from "../../../extensions/marketplace.js";
|
|
29
29
|
import { evictAllEmbeddedSessionRunners } from "../../../agent/embedded/session-runner.js";
|
|
30
30
|
import { ActivationPlanner } from "../../../extensions/activation-planner.js";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import "../../../../packages/gateway-contract/src/music-generation.js";
|
|
2
2
|
import { init_src } from "../../../../packages/gateway-contract/src/index.js";
|
|
3
|
+
import { resolveModelsJsonPath } from "../../../config/paths.js";
|
|
3
4
|
import { getProviderSetupProfile, init_profiles } from "../../../providers/setup/profiles.js";
|
|
4
5
|
import { init_model_usage, withModelUsageOrigin } from "../../../providers/model-usage.js";
|
|
6
|
+
import { resolveEffectiveAgentConfigForAgent } from "../../../config/agent-profile.js";
|
|
5
7
|
import { init_resolve_config_value, testApiKeyResolution } from "../../../config/resolve-config-value.js";
|
|
6
8
|
import "../../../providers/constants.js";
|
|
7
9
|
import { init_model_policy, isDedicatedPhoneModel, phoneModelProfile } from "../../../phone/model-policy.js";
|
|
8
|
-
import { resolveModelsJsonPath } from "../../../config/paths.js";
|
|
9
10
|
import { computerModelProfile, init_model_policy as init_model_policy$1, isDedicatedComputerModel } from "../../../computer/model-policy.js";
|
|
10
11
|
import { init_models_json, loadModelsJson, saveModelsJson, validateModelsConfig } from "../../../config/models-json.js";
|
|
11
12
|
import { getModelCatalogStore, init_model_catalog_store } from "../../../providers/model-catalog-store.js";
|
|
@@ -13,7 +14,6 @@ import { getModelRegistry } from "../../../providers/model-registry.js";
|
|
|
13
14
|
import { CredentialResolver, init_credentials } from "../../../auth/credentials.js";
|
|
14
15
|
import { getProviderRegistry, init_plugin_registry } from "../../../providers/plugin-registry.js";
|
|
15
16
|
import { PROVIDER_META, getAllModels, getAllProviders, getAvailableModels, getProviderAuthState, init_providers, isProviderConfigured, isProviderConfiguredSync } from "../../../providers/index.js";
|
|
16
|
-
import { resolveEffectiveAgentConfigForAgent } from "../../../config/agent-profile.js";
|
|
17
17
|
import { XopcCloudAccountError, XopcCloudAccountService } from "../../../providers/xopc-cloud-account-service.js";
|
|
18
18
|
import { buildCapabilityPlansForConfig } from "../../../capabilities/readiness/from-config.js";
|
|
19
19
|
import "../../../capabilities/readiness/index.js";
|
|
@@ -76,7 +76,7 @@ function registerMusicGenerationRoutes(app, deps) {
|
|
|
76
76
|
const session = await deps.service.sessionIndexInstance.getSessionMetadata(conversationId);
|
|
77
77
|
const job = getMusicJob(conversationId, c.req.param("jobId"));
|
|
78
78
|
if (!session?.transcriptId || job?.transcript_id !== session.transcriptId || job.state !== "completed") return c.json({ error: "Audio not found" }, 404);
|
|
79
|
-
return readMusicArtifact(job.id, c.req.header("Range"), c.req.query("download") === "1");
|
|
79
|
+
return readMusicArtifact(job.id, c.req.header("Range"), c.req.query("download") === "1", c.req.method === "HEAD");
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { NoteDeleteOutputSchema, NoteGetOutputSchema, ProductReadContracts } from "../../../../packages/gateway-contract/src/capabilities.js";
|
|
2
2
|
import { init_src } from "../../../../packages/gateway-contract/src/index.js";
|
|
3
|
-
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
4
|
-
import "../../../capabilities/runtime/dispatcher.js";
|
|
5
3
|
import { init_session_key, resolveConversationId } from "../../../routing/session-key.js";
|
|
6
4
|
import { agentExists, getDefaultAgentId, init_resolve_route } from "../../../routing/resolve-route.js";
|
|
5
|
+
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
6
|
+
import "../../../capabilities/runtime/dispatcher.js";
|
|
7
7
|
import { resolveReverseProxyPublicUrl } from "../../public-url.js";
|
|
8
8
|
import { createProductDispatcher } from "../../../capabilities/runtime/product.js";
|
|
9
9
|
import { resolveGatewayEffectiveHost } from "../../../config/gateway-bind.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { resolveStateDir } from "../../../config/paths-state.js";
|
|
2
2
|
import { AgentCatalogRepository, init_repository } from "../../../agent-catalog/repository.js";
|
|
3
3
|
import { getSessionMetadata, init_session_read_repository } from "../../../storage/sqlite/session-read-repository.js";
|
|
4
|
-
import { AgentCatalogService } from "../../../agent-catalog/service.js";
|
|
5
|
-
import { phoneModelProfile } from "../../../phone/model-policy.js";
|
|
6
4
|
import { init_paths } from "../../../config/paths.js";
|
|
7
|
-
import { getAllModels, init_providers, isProviderConfiguredSync, resolveModel } from "../../../providers/index.js";
|
|
8
5
|
import { resolveEffectiveAgentConfigForAgent } from "../../../config/agent-profile.js";
|
|
6
|
+
import { phoneModelProfile } from "../../../phone/model-policy.js";
|
|
7
|
+
import { getAllModels, init_providers, isProviderConfiguredSync, resolveModel } from "../../../providers/index.js";
|
|
9
8
|
import { phoneAllowsApp } from "../../../phone/app-access.js";
|
|
10
9
|
import { managedHdcPath, managedHosJar, managedJavaHome } from "../../../runtime-tools/harmony-paths.js";
|
|
11
10
|
import { managedPhoneAdbPath } from "../../../runtime-tools/phone-dependency-catalog.js";
|
|
12
11
|
import "../../../phone/model-adapter.js";
|
|
13
12
|
import { getPhoneRuntime } from "../../../phone/runtime.js";
|
|
13
|
+
import { AgentCatalogService } from "../../../agent-catalog/service.js";
|
|
14
14
|
import { PhoneSetupService } from "../../../phone/setup/service.js";
|
|
15
15
|
import { PhoneDependencyManager, probePhoneAdb } from "../../../runtime-tools/phone-dependencies.js";
|
|
16
16
|
import { createHash } from "node:crypto";
|
|
@@ -3,10 +3,10 @@ import { init_logger } from "../../../utils/logger.js";
|
|
|
3
3
|
import { setDevicePhoneAccess } from "../../../storage/sqlite/device-access-repository.js";
|
|
4
4
|
import { getSessionMetadata } from "../../../storage/sqlite/session-read-repository.js";
|
|
5
5
|
import { init_session_repository } from "../../../storage/sqlite/session-repository.js";
|
|
6
|
-
import { createConversation, init_conversation_repository } from "../../../storage/sqlite/conversation-repository.js";
|
|
7
6
|
import { MOCK_PHONE_MODEL, PhoneActionSchema, PhoneConfigSchema, PhoneDeviceSchema, PhoneError, PhoneExecutionModeSchema, PhoneInputSchema, init_contracts } from "../../../phone/contracts.js";
|
|
8
|
-
import {
|
|
7
|
+
import { createConversation, init_conversation_repository } from "../../../storage/sqlite/conversation-repository.js";
|
|
9
8
|
import { getDefaultAgentId, init_resolve_route } from "../../../routing/resolve-route.js";
|
|
9
|
+
import { phoneModelProfile } from "../../../phone/model-policy.js";
|
|
10
10
|
import { getAllModels, init_providers, isProviderConfiguredSync } from "../../../providers/index.js";
|
|
11
11
|
import { normalizePhoneAppAccess, phoneAppAccess } from "../../../phone/app-access.js";
|
|
12
12
|
import { cancelPhoneAssistance, pendingPhoneAssistance, phoneAssistance, phoneAssistanceReport } from "../../../phone/assistance.js";
|
|
@@ -6,20 +6,20 @@ import { loadTranscriptRowsForSession } from "../../../storage/sqlite/transcript
|
|
|
6
6
|
import "../../../storage/sqlite/index.js";
|
|
7
7
|
import { ActivityService } from "../../../activity/service.js";
|
|
8
8
|
import "../../../activity/index.js";
|
|
9
|
-
import {
|
|
10
|
-
import "../../../
|
|
9
|
+
import { listKnowledgeItems, writeKnowledgeItem } from "../../../knowledge-memory/repository.js";
|
|
10
|
+
import "../../../knowledge-memory/index.js";
|
|
11
|
+
import { resolveEffectiveAgentProfile } from "../../../config/agent-profile.js";
|
|
11
12
|
import { ProjectWorkspaceConflictError, ProjectWorkspaceMissingError } from "../../../projects/workspace-project.js";
|
|
12
13
|
import { inferProjectExecutionMode, inferProjectKind } from "../../../projects/project-kind.js";
|
|
13
14
|
import { ProjectDeletionBlockedError, ProjectWorkspaceInUseError } from "../../../projects/project-service.js";
|
|
14
15
|
import { resolveProjectAgentId } from "../../../projects/project-agent.js";
|
|
15
16
|
import { inferSuggestedProjectDefaultAgentId } from "../../../projects/project-agent-suggestion.js";
|
|
16
17
|
import { buildProjectLoopOverview } from "../../../projects/project-loop.js";
|
|
17
|
-
import { resolveEffectiveAgentProfile } from "../../../config/agent-profile.js";
|
|
18
18
|
import "../../../projects/index.js";
|
|
19
19
|
import { TaskReadModelProjector } from "../../../tasks/task-read-model-projector.js";
|
|
20
|
+
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
21
|
+
import "../../../capabilities/runtime/dispatcher.js";
|
|
20
22
|
import { TaskApplicationService } from "../../../tasks/task-application-service.js";
|
|
21
|
-
import { listKnowledgeItems, writeKnowledgeItem } from "../../../knowledge-memory/repository.js";
|
|
22
|
-
import "../../../knowledge-memory/index.js";
|
|
23
23
|
import { defineTaskContract } from "../../../tasks/task-contract-definition.js";
|
|
24
24
|
import { ProjectOperatingViewService, summarizeProjectOperatingView } from "../../../tasks/project-operating-view-service.js";
|
|
25
25
|
import "../../../tasks/index.js";
|
|
@@ -9,9 +9,9 @@ import { SessionInputControlConflict, init_session_input_control_repository } fr
|
|
|
9
9
|
import { endpointTurnClaimSchema, init_src as init_src$1 } from "../../../../packages/endpoint-tools-protocol/src/index.js";
|
|
10
10
|
import { recordDeviceExecutionActor } from "../../../endpoint-tools/execution-actor.js";
|
|
11
11
|
import { init_types, parseTurnContextRefs } from "../../../agent/source-context/types.js";
|
|
12
|
+
import { init_providers, resolveModel } from "../../../providers/index.js";
|
|
12
13
|
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
13
14
|
import "../../../capabilities/runtime/dispatcher.js";
|
|
14
|
-
import { init_providers, resolveModel } from "../../../providers/index.js";
|
|
15
15
|
import { getModelThinking } from "../../../providers/model-thinking.js";
|
|
16
16
|
import { validateWebchatAttachments, validateWebchatContent } from "../../chat-limits.js";
|
|
17
17
|
import { isTaskDestructiveCommand } from "../../../session/reset-triggers.js";
|
|
@@ -3,8 +3,8 @@ import { SessionDiscoveryQuerySchema } from "../../../../packages/gateway-contra
|
|
|
3
3
|
import { init_src } from "../../../../packages/gateway-contract/src/index.js";
|
|
4
4
|
import "../../../session/types.js";
|
|
5
5
|
import { SidebarLayoutConflictError, getSidebarLayout, replaceSidebarLayout, sortBySidebarLayout } from "../../../storage/sqlite/sidebar-layout-repository.js";
|
|
6
|
-
import { getPersonalAgentByConversation, isPersonalConversation, resolveMessageReactionsEnabled } from "../../../personal-agent/repository.js";
|
|
7
6
|
import { summarizeAiUsageByConversations } from "../../../storage/sqlite/ai-usage-repository.js";
|
|
7
|
+
import { getPersonalAgentByConversation, isPersonalConversation, resolveMessageReactionsEnabled } from "../../../personal-agent/repository.js";
|
|
8
8
|
import { messagesToClientHistory } from "../../../session/client-history.js";
|
|
9
9
|
import { SessionEnvironmentService } from "../../../execution-environments/session-environment-service.js";
|
|
10
10
|
import { evictEmbeddedSessionRunner } from "../../../agent/embedded/session-runner.js";
|