@xopcai/xopc 0.0.337 → 0.0.339
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/feishu/src/adapters/cli-login.js +3 -3
- package/dist/extensions/feishu/src/outbound/media-load.js +1 -1
- package/dist/extensions/telegram/src/inbound-processor.js +2 -2
- package/dist/extensions/telegram/src/outbound-sender.js +1 -1
- package/dist/extensions/telegram/src/plugin.js +2 -2
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/extensions/weixin/src/api/api.js +2 -2
- package/dist/extensions/weixin/src/auth/accounts.js +12 -12
- package/dist/extensions/weixin/src/messaging/debug-mode.js +5 -5
- package/dist/extensions/weixin/src/messaging/inbound.js +11 -11
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-CSHghJkF.js → agent-avatar-dicebear-Cc_FeKSx.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-DcDz1HJb.js → agent-defaults-settings-panel-s5yXNGQE.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-C7A9k86o.js → agent-plugin-dialog-DoC_yH9K.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-wih5cVy1.js → agents-HRZFsjeH.js} +3 -3
- package/dist/gateway/static/root/assets/{app-management-settings-panel-LQ_zVJ9C.js → app-management-settings-panel-BquxFv-S.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-C2gaax8U.js → appearance-settings-CZYqmnu6.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-CobrkzwB.js → apps-page-jIVrH3te.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-CK_qS4Ex.js → archive-plugin-B0vUM0zp.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-DtuUM9W8.js → automations-page-B0Y5BNRb.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-BNcU6ReT.js → automations-workspace-8OSlJ6lL.js} +1 -1
- package/dist/gateway/static/root/assets/{binary-plugins-BN0iLzVY.js → binary-plugins-NBJu1CLg.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-CpLJmCV2.js → block-editor-TXHouZOO.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-DqKKZQNI.js → browser-automations-page-BqMknmu3.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-B0Vxlns8.js → browser-settings-page-GRFXQqKe.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-page-Bn72DIFn.js → capabilities-page-DmJDCbYN.js} +2 -2
- package/dist/gateway/static/root/assets/{capabilities-settings-panel-n4g4t5LK.js → capabilities-settings-panel-D8kedO-n.js} +1 -1
- package/dist/gateway/static/root/assets/{capability-header-actions-CIxZrN4w.js → capability-header-actions-BF9_u3xd.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-D8P0Sbu1.js → channels-BG-1mvQi.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-terminal-dock-BJzZ5vkP.js → chat-terminal-dock-DYysZFAt.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-WT8yMsKu.js → computer-settings-page-DI3Ek853.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-71NVbenX.js → connector-service-page-BWkcwg_D.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-DdBdSoYi.js → connectors-page-DBTyibaI.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-WyLSk4_J.js → date-picker-Di84qsYg.js} +1 -1
- package/dist/gateway/static/root/assets/{dependency-picker-BTdAiaBP.js → dependency-picker-BfxDCpmT.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-f0MgT5Um.js → desktop-pet-BRTL_oOb.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-DKVITn3D.js → desktop-pet-settings-BNVH1m1M.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-1Buarqmz.js → device-pairing-wizard-C3S9vWJ1.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-BoGtoYn0.js → directory-picker-path-field-BpuRd-vD.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-DPwnz1-y.js → extension-debug-page-mQPbBDJQ.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-CzioOhli.js → extension-page-BHSB_YFM.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-Cqq5bdYp.js → extension-settings-page-IoBTZ9jq.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-CoXYbhk4.js → gateway-settings-9HNthvnR.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-z3Jiv5fF.js → home-page-B_NubC1h.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-DHiUg7PR.js → imports-page-DLJp26Cn.js} +1 -1
- package/dist/gateway/static/root/assets/{index-D3OtdgCs.js → index-CdvabjRm.js} +23 -23
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-CbcZK4S6.js → keyboard-shortcuts-settings-YnkILLU1.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-3HC00KSx.js → local-app-workbench-page-C4d2T20s.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-etrJtvmm.js → local-apps-page-DfOhJ8iP.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-BsSdbCw2.js → logs-page-Ds6pm2I7.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-DODrHfBO.js → management-settings-D0kBRnl2.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-C0JdlHpy.js → media-plugins-vBKV9GvC.js} +1 -1
- package/dist/gateway/static/root/assets/{note-detail-panel-fPUNv1PI.js → note-detail-panel-CSdLXt8V.js} +3 -3
- package/dist/gateway/static/root/assets/{notes-page-I9h6l38z.js → notes-page-CIQEybLR.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-BlcjlzGF.js → page-context-capture-button-DvMerCk-.js} +1 -1
- package/dist/gateway/static/root/assets/{page-tabs-_eLR6cpb.js → page-tabs-Bp0yPTYw.js} +1 -1
- package/dist/gateway/static/root/assets/{preview-open-alternatives-BfJBJ4NU.js → preview-open-alternatives-CQO4X4dH.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-RdYBwQ_V.js → product-open-page-BQ4vLqay.js} +1 -1
- package/dist/gateway/static/root/assets/{project-detail-page-DyAKlm_h.js → project-detail-page-DGRQilZq.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-Bk51sbKy.js → projects-page-EvaT-KoY.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-BbMbnizV.js → remote-access-hub-D6EmYuZ9.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-yqbX-cYN.js → runtime-tools-settings-panel-POD_UkI6.js} +1 -1
- package/dist/gateway/static/root/assets/{scenes-page-L69Imde_.js → scenes-page-gpgblOWJ.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-BWlMiaNv.js → schema-form-DDjuoH6S.js} +1 -1
- package/dist/gateway/static/root/assets/{sessions-page-S-UqCz6P.js → sessions-page-D7QQpt4W.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-CPyqCG90.js +1 -0
- package/dist/gateway/static/root/assets/{settings-form-section-DqUsAh0K.js → settings-form-section-DziWi7ar.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-4eoaA_Hs.js → settings-page-DieZ7WKk.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-6BuwbANT.js → setup-status-panel-aGTS3JX2.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-B-w3pIG5.js → share-preview-page-CKuGdvQ1.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-Bn03bnYk.js → shares-settings-B2oqZsDF.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-api-BN7zgPjv.js → skill-api-CEaxaT32.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-BsBfMvch.js → skill-reload-api-BAzfIHkQ.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-CcYeAh5v.js → skills-page-C4z5rpJp.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-BV2zesop.js → system-settings-panel-DqFk7NdF.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-BqN3GUm7.js → task-detail-page-BIA_56uP.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-Dk3SmnSL.js → tunnel-api-mpYTR5df.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-DStU1Zyn.js → usage-page-CBew7QUj.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-D3oLuZ7h.js → use-autosave-CujxcROb.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-BXMZoqpb.js → user-model-page-DhMojGHW.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-api-key-field-CzvudzG6.js → voice-api-key-field-BAewnwoh.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-D6oUEOYn.js → work-discovery-overlay-Bgtzc3ng.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-CXxr4wmO.js → workflow-run-setup-panel-ONIY4un8.js} +1 -1
- package/dist/gateway/static/root/assets/{workflows-page-D9uPt_T2.js → workflows-page-DcVuZjq_.js} +1 -1
- package/dist/gateway/static/root/index.html +1 -1
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/index.js +2 -0
- package/dist/packages/gateway-contract/src/mobile-user-understanding.js +140 -0
- package/dist/src/agent/agent-manager.js +15 -15
- package/dist/src/agent/agent-scope.js +2 -2
- package/dist/src/agent/background-review/prompts.js +1 -1
- package/dist/src/agent/background-review/run-background-review.js +4 -4
- package/dist/src/agent/bootstrap/filter-bootstrap-files.js +1 -1
- package/dist/src/agent/coding/repository-instructions.js +1 -1
- package/dist/src/agent/context/coordinator.js +2 -2
- package/dist/src/agent/context/execution-context.js +4 -4
- package/dist/src/agent/context/execution-scope.js +2 -2
- package/dist/src/agent/context/project-context.js +3 -3
- package/dist/src/agent/data-acquisition/service.js +1 -1
- package/dist/src/agent/embedded/index.js +2 -2
- package/dist/src/agent/embedded/model-runtime.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +4 -4
- package/dist/src/agent/embedded/run-turn.js +4 -4
- package/dist/src/agent/embedded/session-tool-result-guard.js +3 -3
- package/dist/src/agent/embedded/tool-result-truncation.js +1 -1
- package/dist/src/agent/external-tools/cliProvider.js +3 -3
- package/dist/src/agent/external-tools/composio-provider.js +3 -3
- package/dist/src/agent/external-tools/endpoint-provider.js +2 -2
- package/dist/src/agent/external-tools/gateway-tools.js +1 -1
- package/dist/src/agent/external-tools/mcp-provider.js +3 -3
- package/dist/src/agent/image/generation/openai-images-provider.js +1 -1
- package/dist/src/agent/image/generation/providers/dashscope.js +1 -1
- package/dist/src/agent/image/generation/providers/fal.js +1 -1
- package/dist/src/agent/image/generation/providers/google.js +1 -1
- package/dist/src/agent/image/generation/runtime.js +1 -1
- package/dist/src/agent/image/index.js +1 -1
- package/dist/src/agent/image/load-image-media.js +1 -1
- package/dist/src/agent/image/tool-model-config.js +2 -2
- package/dist/src/agent/inbound/attachment-pipeline.js +1 -1
- package/dist/src/agent/inbound/inbound-loop.js +2 -2
- package/dist/src/agent/index.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-config.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-gateway.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-runtime.js +2 -2
- package/dist/src/agent/mcp/index.js +2 -2
- package/dist/src/agent/mcp/mcp-transport.js +1 -1
- package/dist/src/agent/mcp/oauth/mcp-oauth-manager.js +1 -1
- package/dist/src/agent/mcp/plugin-http-fetch.js +1 -1
- package/dist/src/agent/memory/context-recovery.js +1 -1
- package/dist/src/agent/memory/index.js +1 -1
- package/dist/src/agent/messaging/outbound-coordinator.js +1 -1
- package/dist/src/agent/orchestration/agent-orchestrator.js +1 -1
- package/dist/src/agent/prompt/service-prompt-builder.js +2 -2
- package/dist/src/agent/sandbox/exec-policy.js +1 -1
- package/dist/src/agent/service/direct-turn-helpers.js +4 -4
- package/dist/src/agent/service/process-direct-one-shot.js +1 -1
- package/dist/src/agent/service/process-direct-streaming.js +5 -5
- package/dist/src/agent/service/webchat-tts.js +2 -2
- package/dist/src/agent/service.js +21 -21
- package/dist/src/agent/session/session-inspector.js +1 -1
- package/dist/src/agent/source-context/index.d.ts +1 -0
- package/dist/src/agent/source-context/index.js +4 -3
- package/dist/src/agent/source-context/types.d.ts +2 -2
- package/dist/src/agent/source-context/types.js +1 -1
- package/dist/src/agent/source-context/user-assertion-context.d.ts +2 -0
- package/dist/src/agent/source-context/user-assertion-context.js +30 -0
- package/dist/src/agent/tasks/task-judge-service.js +4 -4
- package/dist/src/agent/tools/create-share-tool.js +3 -3
- package/dist/src/agent/tools/dataBatch.js +1 -1
- package/dist/src/agent/tools/delegate-tool.js +3 -3
- package/dist/src/agent/tools/delegation-parent-policy.js +1 -1
- package/dist/src/agent/tools/executor.js +1 -1
- package/dist/src/agent/tools/factory.js +16 -16
- package/dist/src/agent/tools/fetch-text.js +1 -1
- package/dist/src/agent/tools/image-generate-tool.js +3 -3
- package/dist/src/agent/tools/index.js +6 -6
- package/dist/src/agent/tools/list-dir.js +1 -1
- package/dist/src/agent/tools/publish-artifacts.js +2 -2
- package/dist/src/agent/tools/read.js +2 -2
- package/dist/src/agent/tools/review-workspace.js +1 -1
- package/dist/src/agent/tools/send-media.js +2 -2
- package/dist/src/agent/tools/skills-tools.js +1 -1
- package/dist/src/agent/tools/tts-tool.js +1 -1
- package/dist/src/agent/tools/user-context-tool.js +1 -1
- package/dist/src/agent/tools/write.js +2 -2
- package/dist/src/agent/tools/xopc-use-tool.js +1 -1
- package/dist/src/agent/workflow/subagent-runner.js +1 -1
- package/dist/src/agent-catalog/capabilities.js +2 -2
- package/dist/src/ai-assist/text-assist.js +1 -1
- package/dist/src/auth/credentials.js +1 -1
- package/dist/src/auth/oauth-provider-lock.js +1 -1
- package/dist/src/auth/sync-provider-auth.js +1 -1
- package/dist/src/automations/capabilities/drafts.js +1 -1
- package/dist/src/automations/domain/index.js +2 -2
- package/dist/src/automations/index.js +4 -4
- package/dist/src/automations/service/automation-service.js +2 -2
- package/dist/src/bootstrap/application-state.js +1 -1
- package/dist/src/browser/native-messaging-host.js +1 -1
- package/dist/src/capabilities/runtime/dispatcher.js +1 -1
- package/dist/src/capabilities/runtime/product.js +1 -1
- package/dist/src/channels/attachments/voice-stt-webchat.js +2 -2
- package/dist/src/channels/index.js +2 -2
- package/dist/src/channels/outbound-sender.js +1 -1
- package/dist/src/channels/pairing/allow-from-file.js +9 -9
- package/dist/src/channels/pairing/pairing-store.js +6 -6
- package/dist/src/chat-commands/agent-edit.js +1 -1
- package/dist/src/chat-commands/builtins/config.js +4 -4
- package/dist/src/chat-commands/builtins/review.js +1 -1
- package/dist/src/chat-commands/builtins/session.js +1 -1
- package/dist/src/chat-commands/builtins/thinking.js +1 -1
- package/dist/src/chat-commands/builtins/tts.js +1 -1
- package/dist/src/chat-commands/builtins/understanding.js +1 -1
- package/dist/src/chat-commands/builtins/workflow.js +2 -2
- package/dist/src/chat-commands/context.js +3 -3
- package/dist/src/chat-commands/index.js +3 -3
- package/dist/src/cli/commands/agent.js +7 -7
- package/dist/src/cli/commands/agents.js +1 -1
- package/dist/src/cli/commands/config.js +1 -1
- package/dist/src/cli/commands/connectors.js +1 -1
- package/dist/src/cli/commands/doctor/checks/channel-plugins.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 +2 -2
- package/dist/src/cli/commands/doctor/checks/tool-runtimes.js +1 -1
- package/dist/src/cli/commands/extension-agent-plugin.js +2 -2
- package/dist/src/cli/commands/extension-dev.js +1 -1
- package/dist/src/cli/commands/extension-marketplace.js +2 -2
- package/dist/src/cli/commands/extension.js +4 -4
- package/dist/src/cli/commands/gateway/shared.js +1 -1
- package/dist/src/cli/commands/gateway/token.js +1 -1
- package/dist/src/cli/commands/image.js +1 -1
- package/dist/src/cli/commands/init.js +1 -1
- package/dist/src/cli/commands/models.js +1 -1
- package/dist/src/cli/commands/onboard/channels/registry.js +1 -1
- 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 +2 -2
- package/dist/src/cli/commands/runtime.js +1 -1
- package/dist/src/cli/commands/skills.js +2 -2
- package/dist/src/cli/commands/tunnel.js +4 -4
- package/dist/src/cli/extension-cli-register.js +4 -4
- package/dist/src/cli/utils/gateway-client.js +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +2 -2
- package/dist/src/cli/utils/session.js +1 -1
- package/dist/src/computer/runtime.js +2 -2
- package/dist/src/config/index.js +7 -7
- package/dist/src/config/loader.js +3 -3
- package/dist/src/config/models-json.js +1 -1
- package/dist/src/config/schema.js +1 -1
- package/dist/src/connectors/cli/authorization.js +1 -1
- package/dist/src/connectors/cli/runtime.js +1 -1
- package/dist/src/connectors/composio-sessions.js +1 -1
- package/dist/src/connectors/composio.js +1 -1
- package/dist/src/connectors/connected-source-understanding.js +3 -3
- package/dist/src/connectors/connection-recovery-service.js +5 -5
- package/dist/src/connectors/health.js +1 -1
- package/dist/src/connectors/plugin-mcp-recovery.js +1 -1
- package/dist/src/discussions/live-worker.js +1 -1
- package/dist/src/discussions/recording.js +1 -1
- package/dist/src/discussions/sealer.js +1 -1
- package/dist/src/extensions/activation-context.js +3 -3
- package/dist/src/extensions/agent-plugins/validation.js +1 -1
- package/dist/src/extensions/api.js +4 -4
- package/dist/src/extensions/bundled-extension-activation.js +1 -1
- package/dist/src/extensions/index.js +3 -3
- package/dist/src/extensions/install.js +1 -1
- package/dist/src/extensions/loader.js +2 -2
- package/dist/src/extensions/sdk/index.js +1 -1
- package/dist/src/extensions/sdk/media.js +1 -1
- package/dist/src/extensions/update.js +1 -1
- package/dist/src/gateway/agents-admin.js +2 -2
- package/dist/src/gateway/device-routes.js +2 -2
- package/dist/src/gateway/file-path-classifier.js +2 -2
- package/dist/src/gateway/global-defaults-admin.js +1 -1
- package/dist/src/gateway/hono/app.js +3 -3
- package/dist/src/gateway/hono/lib/config-payload.js +4 -4
- package/dist/src/gateway/hono/routes/agents.js +1 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
- package/dist/src/gateway/hono/routes/browser.js +1 -1
- package/dist/src/gateway/hono/routes/commands-skills.js +4 -4
- package/dist/src/gateway/hono/routes/config-patch/gateway.js +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +2 -2
- package/dist/src/gateway/hono/routes/home.js +1 -1
- package/dist/src/gateway/hono/routes/mcp.js +2 -2
- package/dist/src/gateway/hono/routes/media.js +1 -1
- package/dist/src/gateway/hono/routes/models.js +5 -5
- package/dist/src/gateway/hono/routes/notes.js +3 -3
- package/dist/src/gateway/hono/routes/projects.js +4 -4
- package/dist/src/gateway/hono/routes/session-command-handler.js +1 -1
- package/dist/src/gateway/hono/routes/session-input-handler.d.ts +2 -2
- package/dist/src/gateway/hono/routes/session-input-handler.js +3 -3
- package/dist/src/gateway/hono/routes/sessions.js +1 -1
- package/dist/src/gateway/hono/routes/shares.js +3 -3
- package/dist/src/gateway/hono/routes/site-shares.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +1 -1
- package/dist/src/gateway/hono/routes/user-model-refresh.js +1 -1
- package/dist/src/gateway/hono/routes/user-model.js +207 -5
- package/dist/src/gateway/hono/routes/voice.js +6 -6
- package/dist/src/gateway/hono/routes/workflows.js +2 -2
- package/dist/src/gateway/image-generation-setup.js +3 -3
- package/dist/src/gateway/index.js +1 -1
- package/dist/src/gateway/lock.js +11 -11
- package/dist/src/gateway/media-access.js +1 -1
- package/dist/src/gateway/mobile-privacy.js +2 -2
- package/dist/src/gateway/ports.js +6 -6
- package/dist/src/gateway/run-loop.js +1 -1
- package/dist/src/gateway/scenes/mailContext.js +1 -1
- package/dist/src/gateway/scenes/slackThreadSource.js +1 -1
- package/dist/src/gateway/security/gateway-scopes.js +3 -0
- package/dist/src/gateway/server.js +1 -1
- package/dist/src/gateway/service/config-coordinator.js +3 -3
- package/dist/src/gateway/service/run-gateway-agent.js +3 -3
- package/dist/src/gateway/service/session-input-coordinator.js +1 -1
- package/dist/src/gateway/service/sessions-api.js +1 -1
- package/dist/src/gateway/service.js +42 -37
- package/dist/src/gateway/session-context-summary.js +1 -1
- package/dist/src/gateway/workspace-editor-path.js +2 -2
- package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
- package/dist/src/home-intelligence/generator.js +1 -1
- package/dist/src/infra/gateway-processes.js +2 -2
- package/dist/src/infra/path-env.js +3 -3
- package/dist/src/infra/update-global.js +10 -10
- package/dist/src/local-apps/service.js +2 -2
- package/dist/src/mcp/gateway-http-client.js +1 -1
- package/dist/src/media-understanding/openai-compatible-audio.js +1 -1
- package/dist/src/notes/agent-context.js +4 -4
- package/dist/src/notes/index.js +1 -1
- package/dist/src/notes/service.js +1 -1
- package/dist/src/notes/store.js +1 -1
- package/dist/src/providers/auth-runtime/resolve-auth.js +1 -1
- package/dist/src/providers/index.js +2 -2
- package/dist/src/providers/model-catalog-persistence.js +1 -1
- package/dist/src/providers/model-reference-auditor.js +1 -1
- package/dist/src/providers/register-runtime-providers.js +1 -1
- package/dist/src/remote-access/exposure-manager.js +1 -1
- package/dist/src/scenes/taskFollowUp/agentExecutor.js +4 -4
- package/dist/src/scenes/taskFollowUp/resources.js +1 -1
- package/dist/src/scenes/taskFollowUp/service.js +4 -4
- package/dist/src/session/index.js +2 -2
- package/dist/src/session/session-title.js +1 -1
- package/dist/src/session/store.js +4 -4
- package/dist/src/session/thinking-resolve.js +1 -1
- package/dist/src/share/share-store.js +1 -1
- package/dist/src/share/share-thumbnail.js +1 -1
- package/dist/src/share/site-proxy.js +1 -1
- package/dist/src/share/site-share-store.js +1 -1
- package/dist/src/storage/sqlite/connection.js +9 -9
- package/dist/src/tasks/capabilities/read.js +2 -2
- package/dist/src/tasks/capabilities/write.js +1 -1
- package/dist/src/tasks/execution-context.js +1 -1
- package/dist/src/tasks/home-query-service.js +3 -3
- package/dist/src/tasks/index.js +4 -4
- package/dist/src/tasks/task-application-service.js +1 -1
- package/dist/src/tasks/task-context-assembler.js +1 -1
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tui/backends/embedded-backend.js +12 -12
- package/dist/src/tui/backends/gateway-realtime-backend.js +1 -1
- package/dist/src/tui/extension-host/load-extensions.js +1 -1
- package/dist/src/tui/tui-command-formatters.js +1 -1
- package/dist/src/tui/tui-commands.js +6 -6
- package/dist/src/tui/tui-picker-overlay.js +1 -1
- package/dist/src/tui/tui-skills-autocomplete.js +1 -1
- package/dist/src/tui/tui-startup-resources.js +4 -4
- package/dist/src/tui/tui.js +7 -7
- package/dist/src/tunnel/gateway-lifecycle.js +1 -1
- package/dist/src/user-model/goals.d.ts +1 -1
- package/dist/src/user-model/goals.js +2 -1
- package/dist/src/voice/realtime/memory-context.js +3 -3
- package/dist/src/voice/realtime/persona-context.js +1 -1
- package/dist/src/voice/realtime/runtime.js +3 -3
- package/dist/src/voice/stt/index.js +2 -2
- package/dist/src/voice/stt/preflight.js +1 -1
- package/dist/src/voice/stt/providers/alibaba-transcription.js +1 -1
- package/dist/src/voice/stt/providers/xopc-cloud-transcription.js +1 -1
- package/dist/src/voice/stt/transcribe-core.js +1 -1
- package/dist/src/voice/tts/index.js +3 -3
- package/dist/src/voice/tts/merge-config.js +1 -1
- package/dist/src/voice/tts/payload.js +1 -1
- package/dist/src/voice/tts/providers/xopc-cloud-speech.js +1 -1
- package/dist/src/voice/tts/speak-core.js +1 -1
- package/dist/src/work-discovery/incremental-repository.js +1 -1
- package/dist/src/work-discovery/index.js +1 -1
- package/dist/src/work-discovery/service.js +5 -5
- package/dist/src/workflows/engine/workflow-engine.js +1 -1
- package/dist/src/workflows/service/workflow-run-service.js +8 -8
- package/dist/src/workflows/service/workflow-session-bridge.js +1 -1
- package/package.json +4 -4
- package/dist/gateway/static/root/assets/settings-advanced-gate-Q52AAHh_.js +0 -1
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { init_transaction, runSqliteWriteTransaction } from "../../../storage/sqlite/transaction.js";
|
|
2
2
|
import { createCollaborationRule, getCollaborationRule, init_collaboration_rule_repository, listCollaborationRules, setCollaborationRuleStatus } from "../../../storage/sqlite/collaboration-rule-repository.js";
|
|
3
|
-
import { KnowledgeReviewConflictError, deleteKnowledgeItem, getKnowledgeItem, listKnowledgeItems, reviewKnowledgeItem, searchKnowledgeItems } from "../../../knowledge-memory/repository.js";
|
|
4
|
-
import "../../../knowledge-memory/index.js";
|
|
5
3
|
import { deleteUserAssertion, getAssertionSlot, getUserAssertion, listUserAssertionSources, listUserAssertions, reconcileAssertion, setAssertionStatus } from "../../../user-model/repository.js";
|
|
6
4
|
import { listActionRuleSuggestions } from "../../../user-model/action-rule-suggestions.js";
|
|
7
5
|
import { createPriorityWindow, createUserGoal, listPriorityWindows, listUserGoals, setUserGoalStatus, updatePriorityWindow, updateUserGoal } from "../../../user-model/goals.js";
|
|
@@ -10,11 +8,13 @@ import { applyUserProfilePatch, getUserProfileSnapshot } from "../../../user-mod
|
|
|
10
8
|
import { bootstrapUserModel } from "../../../user-model/bootstrap.js";
|
|
11
9
|
import { canUseAssertion } from "../../../user-model/usage-policy.js";
|
|
12
10
|
import "../../../user-model/index.js";
|
|
13
|
-
import {
|
|
14
|
-
import "../../../memory
|
|
15
|
-
import { getExecutionContextAudit, recordExecutionContextFeedback } from "../../../agent/context/audit.js";
|
|
11
|
+
import { KnowledgeReviewConflictError, deleteKnowledgeItem, getKnowledgeItem, listKnowledgeItems, reviewKnowledgeItem, searchKnowledgeItems } from "../../../knowledge-memory/repository.js";
|
|
12
|
+
import "../../../knowledge-memory/index.js";
|
|
16
13
|
import { getActiveUnderstandingConsent } from "../../../user-context/sources/consent-repository.js";
|
|
17
14
|
import { listUnderstandingSourceGrants } from "../../../user-context/sources/repository.js";
|
|
15
|
+
import { getExecutionContextAudit, recordExecutionContextFeedback } from "../../../agent/context/audit.js";
|
|
16
|
+
import { listMemoryMaintenanceRuns } from "../../../memory-maintenance/service.js";
|
|
17
|
+
import "../../../memory-maintenance/index.js";
|
|
18
18
|
import { userInfo } from "node:os";
|
|
19
19
|
//#region src/gateway/hono/routes/user-model.ts
|
|
20
20
|
init_transaction();
|
|
@@ -116,6 +116,19 @@ const RULE_STATUSES = new Set([
|
|
|
116
116
|
"disabled",
|
|
117
117
|
"archived"
|
|
118
118
|
]);
|
|
119
|
+
const MOBILE_PROFILE_PREDICATES = new Set([
|
|
120
|
+
"identity.call_name",
|
|
121
|
+
"identity.role",
|
|
122
|
+
"identity.pronouns",
|
|
123
|
+
"preference.timezone",
|
|
124
|
+
"preference.locale"
|
|
125
|
+
]);
|
|
126
|
+
const MOBILE_ASSERTION_FILTERS = new Set([
|
|
127
|
+
"all",
|
|
128
|
+
"explicit",
|
|
129
|
+
"learned",
|
|
130
|
+
"review"
|
|
131
|
+
]);
|
|
119
132
|
function assertionView(assertion, sources = listUserAssertionSources([assertion.id]).get(assertion.id) ?? []) {
|
|
120
133
|
const slot = getAssertionSlot(assertion.slotId);
|
|
121
134
|
if (!slot) throw new Error(`Assertion slot not found: ${assertion.slotId}`);
|
|
@@ -131,6 +144,70 @@ function assertionView(assertion, sources = listUserAssertionSources([assertion.
|
|
|
131
144
|
})
|
|
132
145
|
};
|
|
133
146
|
}
|
|
147
|
+
function mobileAssertionView(assertion, sources = listUserAssertionSources([assertion.id]).get(assertion.id) ?? []) {
|
|
148
|
+
const view = assertionView(assertion, sources);
|
|
149
|
+
return {
|
|
150
|
+
id: view.id,
|
|
151
|
+
predicate: view.predicate,
|
|
152
|
+
statement: view.statement,
|
|
153
|
+
kind: view.kind,
|
|
154
|
+
status: view.status,
|
|
155
|
+
authority: view.authority,
|
|
156
|
+
usable: view.usable,
|
|
157
|
+
confidence: view.confidence,
|
|
158
|
+
volatility: view.volatility,
|
|
159
|
+
layer: view.layer,
|
|
160
|
+
independentSourceCount: view.independentSourceCount,
|
|
161
|
+
observedAt: view.observedAt,
|
|
162
|
+
recordedAt: view.recordedAt,
|
|
163
|
+
...view.validTo === void 0 ? {} : { validTo: view.validTo },
|
|
164
|
+
scope: view.scope,
|
|
165
|
+
sources: view.sources
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
function isMobileAssertion(item, filter) {
|
|
169
|
+
if (item.scope.type !== "global" || MOBILE_PROFILE_PREDICATES.has(item.predicate)) return false;
|
|
170
|
+
if (filter === "review") return item.status === "needs_review" || item.status === "conflicted";
|
|
171
|
+
if (!item.usable) return false;
|
|
172
|
+
if (filter === "explicit") return item.authority === "user_explicit";
|
|
173
|
+
if (filter === "learned") return item.authority !== "user_explicit";
|
|
174
|
+
return true;
|
|
175
|
+
}
|
|
176
|
+
function normalizeMobileSearch(value, maxLength) {
|
|
177
|
+
const normalized = (value ?? "").normalize("NFKC").trim().toLocaleLowerCase();
|
|
178
|
+
return maxLength === void 0 ? normalized : normalized.slice(0, maxLength);
|
|
179
|
+
}
|
|
180
|
+
function matchesMobileSearch(item, query) {
|
|
181
|
+
if (!query) return true;
|
|
182
|
+
const statusAliases = item.status === "needs_review" || item.status === "conflicted" ? "needs review review 待确认 需要确认" : item.status;
|
|
183
|
+
const authorityAliases = item.authority === "user_explicit" ? "explicit user said 你明确说过 用户明确" : "learned inferred 逐渐学到 系统推断";
|
|
184
|
+
return normalizeMobileSearch([
|
|
185
|
+
item.statement,
|
|
186
|
+
item.predicate,
|
|
187
|
+
item.kind,
|
|
188
|
+
statusAliases,
|
|
189
|
+
authorityAliases,
|
|
190
|
+
item.scope.type,
|
|
191
|
+
item.scope.id ?? "",
|
|
192
|
+
...item.sources.flatMap((source) => [
|
|
193
|
+
source.label ?? "",
|
|
194
|
+
source.kind,
|
|
195
|
+
source.category ?? ""
|
|
196
|
+
])
|
|
197
|
+
].join(" ")).includes(query);
|
|
198
|
+
}
|
|
199
|
+
function encodeMobileCursor(item) {
|
|
200
|
+
return Buffer.from(JSON.stringify([item.recordedAt, item.id])).toString("base64url");
|
|
201
|
+
}
|
|
202
|
+
function decodeMobileCursor(value) {
|
|
203
|
+
if (!value) return void 0;
|
|
204
|
+
try {
|
|
205
|
+
const parsed = JSON.parse(Buffer.from(value, "base64url").toString("utf8"));
|
|
206
|
+
return Array.isArray(parsed) && typeof parsed[0] === "number" && typeof parsed[1] === "string" ? [parsed[0], parsed[1]] : void 0;
|
|
207
|
+
} catch {
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
134
211
|
function registerUserModelRoutes(authenticated, deps) {
|
|
135
212
|
const write = deps.strictRateLimitMiddleware;
|
|
136
213
|
authenticated.get("/api/user-model", (c) => {
|
|
@@ -184,6 +261,78 @@ function registerUserModelRoutes(authenticated, deps) {
|
|
|
184
261
|
}
|
|
185
262
|
});
|
|
186
263
|
});
|
|
264
|
+
authenticated.get("/api/user-model/mobile-summary", (c) => {
|
|
265
|
+
const rawAssertions = listUserAssertions({
|
|
266
|
+
statuses: [
|
|
267
|
+
"active",
|
|
268
|
+
"candidate",
|
|
269
|
+
"needs_review",
|
|
270
|
+
"conflicted",
|
|
271
|
+
"stale"
|
|
272
|
+
],
|
|
273
|
+
limit: 2e3
|
|
274
|
+
});
|
|
275
|
+
const sourceMap = listUserAssertionSources(rawAssertions.map((item) => item.id));
|
|
276
|
+
const items = rawAssertions.map((item) => mobileAssertionView(item, sourceMap.get(item.id) ?? []));
|
|
277
|
+
const visible = items.filter((item) => isMobileAssertion(item, "all"));
|
|
278
|
+
const review = items.filter((item) => isMobileAssertion(item, "review"));
|
|
279
|
+
const profile = getUserProfileSnapshot();
|
|
280
|
+
const goals = listUserGoals();
|
|
281
|
+
const now = Date.now();
|
|
282
|
+
const primary = listPriorityWindows().filter((item) => item.status === "active" && item.rank === "primary" && item.validTo >= now).sort((left, right) => (right.declaredImportance ?? right.urgency) - (left.declaredImportance ?? left.urgency))[0];
|
|
283
|
+
const primaryGoal = primary?.targetType === "goal" ? goals.find((goal) => goal.id === primary.targetId) : void 0;
|
|
284
|
+
const primaryTitle = primaryGoal?.title ?? (primary && !/^[0-9a-f]{8}-[0-9a-f-]{20,}$/i.test(primary.targetId) ? primary.targetId : void 0);
|
|
285
|
+
const mobileGoals = goals.filter((goal) => goal.status === "active" || goal.status === "paused" || goal.status === "proposed").sort((left, right) => {
|
|
286
|
+
if (left.id === primaryGoal?.id) return -1;
|
|
287
|
+
if (right.id === primaryGoal?.id) return 1;
|
|
288
|
+
if (left.status === "active" && right.status !== "active") return -1;
|
|
289
|
+
if (right.status === "active" && left.status !== "active") return 1;
|
|
290
|
+
return (left.targetAt ?? Number.MAX_SAFE_INTEGER) - (right.targetAt ?? Number.MAX_SAFE_INTEGER) || right.updatedAt - left.updatedAt;
|
|
291
|
+
}).slice(0, 5).map((goal) => ({
|
|
292
|
+
id: goal.id,
|
|
293
|
+
title: goal.title,
|
|
294
|
+
desiredOutcome: goal.desiredOutcome,
|
|
295
|
+
status: goal.status,
|
|
296
|
+
...goal.targetAt === void 0 ? {} : { targetAt: goal.targetAt },
|
|
297
|
+
updatedAt: goal.updatedAt,
|
|
298
|
+
isPrimary: goal.id === primaryGoal?.id
|
|
299
|
+
}));
|
|
300
|
+
const result = {
|
|
301
|
+
profile: {
|
|
302
|
+
callName: profile.callName ?? "",
|
|
303
|
+
role: profile.role ?? "",
|
|
304
|
+
pronouns: profile.pronouns ?? "",
|
|
305
|
+
timezone: profile.timezone ?? "",
|
|
306
|
+
locale: profile.locale ?? ""
|
|
307
|
+
},
|
|
308
|
+
suggestedCallName: profile.callName || machineCallName(),
|
|
309
|
+
counts: {
|
|
310
|
+
total: visible.length,
|
|
311
|
+
explicit: visible.filter((item) => item.authority === "user_explicit").length,
|
|
312
|
+
learned: visible.filter((item) => item.authority !== "user_explicit").length,
|
|
313
|
+
review: review.length,
|
|
314
|
+
workMemory: listKnowledgeItems({
|
|
315
|
+
statuses: ["active"],
|
|
316
|
+
recordClass: "memory",
|
|
317
|
+
limit: 2e3
|
|
318
|
+
}).length
|
|
319
|
+
},
|
|
320
|
+
...primary && primaryTitle ? { primaryFocus: {
|
|
321
|
+
id: primary.id,
|
|
322
|
+
title: primaryTitle,
|
|
323
|
+
...primaryGoal?.desiredOutcome ? { desiredOutcome: primaryGoal.desiredOutcome } : {},
|
|
324
|
+
validTo: primary.validTo
|
|
325
|
+
} } : {},
|
|
326
|
+
goals: mobileGoals,
|
|
327
|
+
recent: [...visible].sort((left, right) => right.recordedAt - left.recordedAt).slice(0, 3),
|
|
328
|
+
rules: listCollaborationRules().filter((rule) => rule.status === "active").slice(0, 3).map((rule) => ({
|
|
329
|
+
id: rule.id,
|
|
330
|
+
statement: rule.statement,
|
|
331
|
+
category: rule.category
|
|
332
|
+
}))
|
|
333
|
+
};
|
|
334
|
+
return c.json(result);
|
|
335
|
+
});
|
|
187
336
|
authenticated.patch("/api/user-model/profile", write, async (c) => {
|
|
188
337
|
const input = await body(c);
|
|
189
338
|
if (!input) return c.json({ error: "A profile patch is required" }, 400);
|
|
@@ -224,6 +373,34 @@ function registerUserModelRoutes(authenticated, deps) {
|
|
|
224
373
|
}
|
|
225
374
|
});
|
|
226
375
|
authenticated.get("/api/user-model/assertions", (c) => {
|
|
376
|
+
if (c.req.query("view") === "mobile") {
|
|
377
|
+
const filter = c.req.query("filter") ?? "all";
|
|
378
|
+
if (!MOBILE_ASSERTION_FILTERS.has(filter)) return c.json({ error: "Invalid mobile assertion filter" }, 400);
|
|
379
|
+
const requestedLimit = Number(c.req.query("limit") ?? 20);
|
|
380
|
+
const limit = Number.isFinite(requestedLimit) ? Math.max(1, Math.min(50, Math.trunc(requestedLimit))) : 20;
|
|
381
|
+
const query = normalizeMobileSearch(c.req.query("q"), 100);
|
|
382
|
+
const cursorValue = c.req.query("cursor");
|
|
383
|
+
const cursor = decodeMobileCursor(cursorValue);
|
|
384
|
+
if (cursorValue && !cursor) return c.json({ error: "Invalid cursor" }, 400);
|
|
385
|
+
const assertions = listUserAssertions({
|
|
386
|
+
statuses: [
|
|
387
|
+
"active",
|
|
388
|
+
"candidate",
|
|
389
|
+
"needs_review",
|
|
390
|
+
"conflicted",
|
|
391
|
+
"stale"
|
|
392
|
+
],
|
|
393
|
+
limit: 2e3
|
|
394
|
+
});
|
|
395
|
+
const sourceMap = listUserAssertionSources(assertions.map((item) => item.id));
|
|
396
|
+
const filtered = assertions.map((item) => mobileAssertionView(item, sourceMap.get(item.id) ?? [])).filter((item) => isMobileAssertion(item, filter)).filter((item) => matchesMobileSearch(item, query)).sort((left, right) => right.recordedAt - left.recordedAt || right.id.localeCompare(left.id)).filter((item) => !cursor || item.recordedAt < cursor[0] || item.recordedAt === cursor[0] && item.id.localeCompare(cursor[1]) < 0);
|
|
397
|
+
const items = filtered.slice(0, limit);
|
|
398
|
+
const result = {
|
|
399
|
+
items,
|
|
400
|
+
...filtered.length > limit && items.length ? { nextCursor: encodeMobileCursor(items[items.length - 1]) } : {}
|
|
401
|
+
};
|
|
402
|
+
return c.json(result);
|
|
403
|
+
}
|
|
227
404
|
const requested = c.req.query("status")?.split(",").filter(Boolean);
|
|
228
405
|
if (requested?.some((status) => !ASSERTION_STATUSES.has(status))) return c.json({ error: "Invalid assertion status" }, 400);
|
|
229
406
|
const assertions = listUserAssertions({
|
|
@@ -363,6 +540,31 @@ function registerUserModelRoutes(authenticated, deps) {
|
|
|
363
540
|
const goal = setUserGoalStatus(c.req.param("id"), status);
|
|
364
541
|
return goal ? c.json({ goal }) : c.json({ error: "Goal not found" }, 404);
|
|
365
542
|
});
|
|
543
|
+
authenticated.patch("/api/user-model/goals/:id", write, async (c) => {
|
|
544
|
+
const input = await body(c);
|
|
545
|
+
const current = listUserGoals().find((goal) => goal.id === c.req.param("id"));
|
|
546
|
+
if (!current) return c.json({ error: "Goal not found" }, 404);
|
|
547
|
+
if (!input) return c.json({ error: "A goal patch is required" }, 400);
|
|
548
|
+
const title = Object.hasOwn(input, "title") ? input.title : current.title;
|
|
549
|
+
const desiredOutcome = Object.hasOwn(input, "desiredOutcome") ? input.desiredOutcome : current.desiredOutcome;
|
|
550
|
+
const rawTargetAt = Object.hasOwn(input, "targetAt") ? input.targetAt : current.targetAt;
|
|
551
|
+
const status = Object.hasOwn(input, "status") ? input.status : current.status;
|
|
552
|
+
if (typeof title !== "string" || typeof desiredOutcome !== "string" || rawTargetAt !== void 0 && rawTargetAt !== null && typeof rawTargetAt !== "number" || typeof status !== "string" || !GOAL_STATUSES.has(status)) return c.json({ error: "Goal patch fields have invalid types" }, 400);
|
|
553
|
+
const targetAt = typeof rawTargetAt === "number" ? rawTargetAt : rawTargetAt === null ? null : void 0;
|
|
554
|
+
try {
|
|
555
|
+
const goal = runSqliteWriteTransaction(() => {
|
|
556
|
+
const updated = updateUserGoal(current.id, {
|
|
557
|
+
title,
|
|
558
|
+
desiredOutcome,
|
|
559
|
+
...targetAt === void 0 ? {} : { targetAt }
|
|
560
|
+
});
|
|
561
|
+
return status === current.status ? updated : setUserGoalStatus(current.id, status);
|
|
562
|
+
});
|
|
563
|
+
return c.json({ goal });
|
|
564
|
+
} catch (error) {
|
|
565
|
+
return c.json({ error: errorMessage(error) }, 400);
|
|
566
|
+
}
|
|
567
|
+
});
|
|
366
568
|
authenticated.get("/api/user-model/rules", (c) => c.json({ rules: listCollaborationRules() }));
|
|
367
569
|
authenticated.post("/api/user-model/rules", write, async (c) => {
|
|
368
570
|
const input = await body(c);
|
|
@@ -2,17 +2,17 @@ import { voiceSelectionSchema } from "../../../../packages/realtime-protocol/src
|
|
|
2
2
|
import { createVoiceSessionRequestSchema, init_voice } from "../../../../packages/realtime-protocol/src/voice.js";
|
|
3
3
|
import { getDefaultModelSync, init_providers, resolveModel } from "../../../providers/index.js";
|
|
4
4
|
import { completeWithResolvedCredentials } from "../../../providers/model-call.js";
|
|
5
|
+
import { resolveTtsProviderConfigSlice } from "../../../voice/tts/config-slice.js";
|
|
6
|
+
import { isTTSAvailable, resolveSpeechProvider } from "../../../voice/tts/factory.js";
|
|
7
|
+
import { mergeTtsConfigFromAppConfig } from "../../../voice/tts/merge-config.js";
|
|
8
|
+
import { speak, speakStream } from "../../../voice/tts/speak-core.js";
|
|
5
9
|
import { resolveSttProviderConfigSlice } from "../../../voice/stt/config-slice.js";
|
|
6
|
-
import { STTTranscriptionError, transcribe } from "../../../voice/stt/transcribe-core.js";
|
|
7
10
|
import { isSTTAvailable } from "../../../voice/stt/availability.js";
|
|
11
|
+
import "../../../voice/tts/index.js";
|
|
12
|
+
import { STTTranscriptionError, transcribe } from "../../../voice/stt/transcribe-core.js";
|
|
8
13
|
import { mergeSttConfigFromAppConfig } from "../../../voice/stt/config.js";
|
|
9
14
|
import "../../../voice/stt/index.js";
|
|
10
|
-
import { resolveTtsProviderConfigSlice } from "../../../voice/tts/config-slice.js";
|
|
11
|
-
import { isTTSAvailable, resolveSpeechProvider } from "../../../voice/tts/factory.js";
|
|
12
|
-
import { speak, speakStream } from "../../../voice/tts/speak-core.js";
|
|
13
|
-
import { mergeTtsConfigFromAppConfig } from "../../../voice/tts/merge-config.js";
|
|
14
15
|
import { listSttProvidersForApi } from "../../../voice/stt/list-providers.js";
|
|
15
|
-
import "../../../voice/tts/index.js";
|
|
16
16
|
import { withModelConfigLock } from "../../../session/model-config-lock.js";
|
|
17
17
|
import { getSessionPreparation } from "../../../storage/sqlite/session-creation-repository.js";
|
|
18
18
|
import { resolveOmniRoute } from "../../../voice/realtime/omniRoute.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { init_agent_scope, resolveDefaultAgentId } from "../../../agent/agent-scope.js";
|
|
2
|
+
import { validateWorkflowDefinitionInput } from "../../../workflows/domain/validation.js";
|
|
3
|
+
import { WorkflowNameConflictError, WorkflowRevisionConflictError, createWorkflowCatalog } from "../../../agent/workflow/catalog.js";
|
|
2
4
|
import { resolveProjectAgentId } from "../../../projects/project-agent.js";
|
|
3
5
|
import "../../../projects/index.js";
|
|
4
6
|
import { messagesToClientHistory } from "../../../session/client-history.js";
|
|
5
|
-
import { validateWorkflowDefinitionInput } from "../../../workflows/domain/validation.js";
|
|
6
|
-
import { WorkflowNameConflictError, WorkflowRevisionConflictError, createWorkflowCatalog } from "../../../agent/workflow/catalog.js";
|
|
7
7
|
import "../../../workflows/domain/index.js";
|
|
8
8
|
import { WorkflowDraftConflictError, WorkflowDraftStore } from "../../../workflows/authoring/workflow-draft-store.js";
|
|
9
9
|
import "../../../workflows/authoring/index.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { normalizeAgentId } from "../agent-catalog/id.js";
|
|
2
2
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
3
|
-
import { ConfigSchema, init_schema } from "../config/schema.js";
|
|
4
3
|
import { init_agent_scope } from "../agent/agent-scope.js";
|
|
5
|
-
import {
|
|
4
|
+
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
5
|
+
import { ConfigSchema, init_schema } from "../config/schema.js";
|
|
6
6
|
import { fetchWithTimeoutGuarded } from "../media-shared/http/provider-http.js";
|
|
7
7
|
import "../media-shared/http/index.js";
|
|
8
|
-
import {
|
|
8
|
+
import { resolveEffectiveAgentConfigForAgent } from "../config/agent-profile.js";
|
|
9
9
|
import { getImageGenerationProvider, listImageGenerationProvidersSummary } from "../agent/image/generation/provider-registry.js";
|
|
10
10
|
//#region src/gateway/image-generation-setup.ts
|
|
11
11
|
init_repository();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { GatewayLockError, acquireGatewayLock } from "./lock.js";
|
|
1
2
|
import { buildDefaultCorsOrigins, isAllInterfacesHost, isLoopbackHost, resolveEffectiveGatewayPort, resolveGatewayServiceListenPort } from "./host.js";
|
|
2
3
|
import { defaultGatewayBindMode, isContainerEnvironment, resolveGatewayBindHost, resolveGatewayBindHostSync, resolveGatewayBindMode, resolveGatewayEffectiveHost } from "../config/gateway-bind.js";
|
|
3
|
-
import { GatewayLockError, acquireGatewayLock } from "./lock.js";
|
|
4
4
|
import { assertGatewayAuthConfigured, extractToken, resolveGatewayAuth, validateToken } from "./auth.js";
|
|
5
5
|
import { resolveGatewayListenHost, resolveGatewayListenPlan } from "./listen.js";
|
|
6
6
|
import { buckets } from "./rate-limit/buckets.js";
|
package/dist/src/gateway/lock.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
-
import
|
|
2
|
+
import fsSync from "node:fs";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
|
+
import fs from "node:fs/promises";
|
|
4
5
|
import net from "node:net";
|
|
5
|
-
import fs$1 from "node:fs/promises";
|
|
6
6
|
import { homedir } from "os";
|
|
7
7
|
//#region src/gateway/lock.ts
|
|
8
8
|
/**
|
|
@@ -29,7 +29,7 @@ function resolveGatewayLockPath(configPath) {
|
|
|
29
29
|
function isGatewayConfigLockedByAnotherProcessSync(configPath, currentPid = process.pid) {
|
|
30
30
|
const lockPath = resolveGatewayLockPath(configPath);
|
|
31
31
|
try {
|
|
32
|
-
const parsed = JSON.parse(
|
|
32
|
+
const parsed = JSON.parse(fsSync.readFileSync(lockPath, "utf8"));
|
|
33
33
|
if (typeof parsed.pid !== "number" || parsed.pid === currentPid || parsed.configPath !== configPath) return false;
|
|
34
34
|
if (!isPidAlive(parsed.pid)) return false;
|
|
35
35
|
if (process.platform !== "linux" || !Number.isFinite(parsed.startTime)) return true;
|
|
@@ -69,7 +69,7 @@ function isPidAlive(pid) {
|
|
|
69
69
|
function readLinuxStartTime(pid) {
|
|
70
70
|
if (process.platform !== "linux") return null;
|
|
71
71
|
try {
|
|
72
|
-
const raw =
|
|
72
|
+
const raw = fsSync.readFileSync(`/proc/${pid}/stat`, "utf8").trim();
|
|
73
73
|
const closeParen = raw.lastIndexOf(")");
|
|
74
74
|
if (closeParen < 0) return null;
|
|
75
75
|
const fields = raw.slice(closeParen + 1).trim().split(/\s+/);
|
|
@@ -81,7 +81,7 @@ function readLinuxStartTime(pid) {
|
|
|
81
81
|
}
|
|
82
82
|
async function readLockPayload(lockPath) {
|
|
83
83
|
try {
|
|
84
|
-
const raw = await fs
|
|
84
|
+
const raw = await fs.readFile(lockPath, "utf8");
|
|
85
85
|
const parsed = JSON.parse(raw);
|
|
86
86
|
if (typeof parsed.pid !== "number") return null;
|
|
87
87
|
if (typeof parsed.createdAt !== "string") return null;
|
|
@@ -117,11 +117,11 @@ async function acquireGatewayLock(configPath, opts = {}) {
|
|
|
117
117
|
const staleMs = opts.staleMs ?? DEFAULT_STALE_MS;
|
|
118
118
|
const port = opts.port;
|
|
119
119
|
const lockPath = resolveGatewayLockPath(configPath);
|
|
120
|
-
await fs
|
|
120
|
+
await fs.mkdir(path.dirname(lockPath), { recursive: true });
|
|
121
121
|
const startedAt = Date.now();
|
|
122
122
|
let lastPayload = null;
|
|
123
123
|
while (Date.now() - startedAt < timeoutMs) try {
|
|
124
|
-
const handle = await fs
|
|
124
|
+
const handle = await fs.open(lockPath, "wx");
|
|
125
125
|
const startTime = process.platform === "linux" ? readLinuxStartTime(process.pid) : null;
|
|
126
126
|
const payload = {
|
|
127
127
|
pid: process.pid,
|
|
@@ -136,7 +136,7 @@ async function acquireGatewayLock(configPath, opts = {}) {
|
|
|
136
136
|
configPath,
|
|
137
137
|
release: async () => {
|
|
138
138
|
await handle.close().catch(() => void 0);
|
|
139
|
-
await fs
|
|
139
|
+
await fs.rm(lockPath, { force: true });
|
|
140
140
|
console.log(`[GatewayLock] Lock released: lockPath=${lockPath}`);
|
|
141
141
|
}
|
|
142
142
|
};
|
|
@@ -147,7 +147,7 @@ async function acquireGatewayLock(configPath, opts = {}) {
|
|
|
147
147
|
const ownerStatus = ownerPid ? await resolveOwnerStatus(ownerPid, lastPayload, port) : "unknown";
|
|
148
148
|
if (ownerStatus === "dead" && ownerPid) {
|
|
149
149
|
console.warn(`[GatewayLock] Cleaning up stale gateway lock: pid=${ownerPid}`);
|
|
150
|
-
await fs
|
|
150
|
+
await fs.rm(lockPath, { force: true });
|
|
151
151
|
continue;
|
|
152
152
|
}
|
|
153
153
|
if (ownerStatus !== "alive") {
|
|
@@ -157,14 +157,14 @@ async function acquireGatewayLock(configPath, opts = {}) {
|
|
|
157
157
|
stale = Number.isFinite(createdAt) ? Date.now() - createdAt > staleMs : false;
|
|
158
158
|
}
|
|
159
159
|
if (!stale) try {
|
|
160
|
-
const st = await fs
|
|
160
|
+
const st = await fs.stat(lockPath);
|
|
161
161
|
stale = Date.now() - st.mtimeMs > staleMs;
|
|
162
162
|
} catch {
|
|
163
163
|
stale = false;
|
|
164
164
|
}
|
|
165
165
|
if (stale) {
|
|
166
166
|
console.warn(`[GatewayLock] Removing stale lock file: lockPath=${lockPath}`);
|
|
167
|
-
await fs
|
|
167
|
+
await fs.rm(lockPath, { force: true });
|
|
168
168
|
continue;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TaskRepository, init_task_repository } from "../tasks/task-repository.js";
|
|
2
|
+
import { TaskContextRepository } from "../tasks/task-context-repository.js";
|
|
2
3
|
import { FileServiceError } from "../files/file-service.js";
|
|
3
4
|
import { resolveMediaReference } from "../media/media-reference.js";
|
|
4
5
|
import { pendingTranscriptReferencesMediaUri } from "../agent/inbound/attachment-pipeline.js";
|
|
5
|
-
import { TaskContextRepository } from "../tasks/task-context-repository.js";
|
|
6
6
|
import { messagesReferenceMediaUri } from "../media/session-references.js";
|
|
7
7
|
//#region src/gateway/media-access.ts
|
|
8
8
|
init_task_repository();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { getProviderRegistry, init_plugin_registry } from "../providers/plugin-registry.js";
|
|
2
2
|
import { PROVIDER_META, getAvailableModels, init_providers } from "../providers/index.js";
|
|
3
|
-
import { resolveSTTProviderChain } from "../voice/stt/factory.js";
|
|
4
|
-
import { mergeSttConfigFromAppConfig } from "../voice/stt/config.js";
|
|
5
3
|
import { resolveSpeechProviderChain } from "../voice/tts/factory.js";
|
|
6
4
|
import { mergeTtsConfigFromAppConfig } from "../voice/tts/merge-config.js";
|
|
5
|
+
import { resolveSTTProviderChain } from "../voice/stt/factory.js";
|
|
6
|
+
import { mergeSttConfigFromAppConfig } from "../voice/stt/config.js";
|
|
7
7
|
import { getVoiceProviderMetadata } from "../voice/metadata/registry.js";
|
|
8
8
|
import "../voice/metadata/index.js";
|
|
9
9
|
import { getImageGenerationCatalog } from "./image-generation-setup.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
-
import
|
|
3
|
+
import fsSync from "node:fs";
|
|
4
4
|
import { execFileSync } from "node:child_process";
|
|
5
5
|
import net from "node:net";
|
|
6
6
|
//#region src/gateway/ports.ts
|
|
@@ -54,7 +54,7 @@ function listPortListenersViaProc(port) {
|
|
|
54
54
|
for (const procFile of ["/proc/net/tcp", "/proc/net/tcp6"]) {
|
|
55
55
|
let content;
|
|
56
56
|
try {
|
|
57
|
-
content =
|
|
57
|
+
content = fsSync.readFileSync(procFile, "utf-8");
|
|
58
58
|
} catch {
|
|
59
59
|
continue;
|
|
60
60
|
}
|
|
@@ -68,7 +68,7 @@ function listPortListenersViaProc(port) {
|
|
|
68
68
|
if (inodeSet.size === 0) return results;
|
|
69
69
|
let pidDirs;
|
|
70
70
|
try {
|
|
71
|
-
pidDirs =
|
|
71
|
+
pidDirs = fsSync.readdirSync("/proc").filter((name) => /^\d+$/.test(name));
|
|
72
72
|
} catch {
|
|
73
73
|
return results;
|
|
74
74
|
}
|
|
@@ -76,14 +76,14 @@ function listPortListenersViaProc(port) {
|
|
|
76
76
|
const fdDir = `/proc/${pidStr}/fd`;
|
|
77
77
|
let fds;
|
|
78
78
|
try {
|
|
79
|
-
fds =
|
|
79
|
+
fds = fsSync.readdirSync(fdDir);
|
|
80
80
|
} catch {
|
|
81
81
|
continue;
|
|
82
82
|
}
|
|
83
83
|
for (const fd of fds) {
|
|
84
84
|
let target;
|
|
85
85
|
try {
|
|
86
|
-
target =
|
|
86
|
+
target = fsSync.readlinkSync(`${fdDir}/${fd}`);
|
|
87
87
|
} catch {
|
|
88
88
|
continue;
|
|
89
89
|
}
|
|
@@ -93,7 +93,7 @@ function listPortListenersViaProc(port) {
|
|
|
93
93
|
if (!results.some((p) => p.pid === pid)) {
|
|
94
94
|
let command;
|
|
95
95
|
try {
|
|
96
|
-
command =
|
|
96
|
+
command = fsSync.readFileSync(`/proc/${pidStr}/comm`, "utf-8").trim();
|
|
97
97
|
} catch {}
|
|
98
98
|
results.push({
|
|
99
99
|
pid,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { acquireGatewayLock } from "./lock.js";
|
|
2
|
-
import { loadConfig } from "../config/loader.js";
|
|
3
2
|
import { runBootstrapMigrationsSync } from "../migrations/runner.js";
|
|
3
|
+
import { loadConfig } from "../config/loader.js";
|
|
4
4
|
import "../config/index.js";
|
|
5
5
|
import { isRestartEnabled } from "../config/commands.flags.js";
|
|
6
6
|
import { restartGatewayProcessWithFreshPid } from "./respawn.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { getConnectorConnection, getConnectorInstallation, init_connector_repository } from "../../storage/sqlite/connector-repository.js";
|
|
2
2
|
import { ComposioSessionsAdapter } from "../../connectors/composio-sessions.js";
|
|
3
3
|
import { getConnectorDefinition } from "../../connectors/catalog.js";
|
|
4
|
-
import { sceneContentHash } from "../../scenes/contracts.js";
|
|
5
4
|
import { normalizeConnectedSourceResult } from "../../connectors/connected-source-normalizers.js";
|
|
6
5
|
import { sanitizeConnectedSourceValue } from "../../connectors/connected-source-sanitization.js";
|
|
6
|
+
import { sceneContentHash } from "../../scenes/contracts.js";
|
|
7
7
|
import { SceneSourceNotReady, sceneSourceFailureReason } from "../../scenes/readiness.js";
|
|
8
8
|
import { SceneMailContextProvider } from "../../scenes/mailContext.js";
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getConnectorConnection, getConnectorInstallation, init_connector_repository } from "../../storage/sqlite/connector-repository.js";
|
|
2
2
|
import { ComposioSessionsAdapter } from "../../connectors/composio-sessions.js";
|
|
3
3
|
import { getConnectorDefinition } from "../../connectors/catalog.js";
|
|
4
|
-
import { sceneContentHash } from "../../scenes/contracts.js";
|
|
5
4
|
import { sanitizeConnectedSourceValue } from "../../connectors/connected-source-sanitization.js";
|
|
5
|
+
import { sceneContentHash } from "../../scenes/contracts.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/gateway/scenes/slackThreadSource.ts
|
|
8
8
|
init_connector_repository();
|
|
@@ -35,6 +35,9 @@ function requiredGatewayScope(method, path) {
|
|
|
35
35
|
if (path === "/api/voice/selection" || path === "/api/voice/catalog/refresh") return "voice.configure";
|
|
36
36
|
if (path.startsWith("/api/voice") || path.startsWith("/api/media") || path.startsWith("/api/clarifications")) return "sessions.write";
|
|
37
37
|
if (path.startsWith("/api/commands") || path.startsWith("/api/skills")) return methodScope(method, "agents.read", "gateway.admin");
|
|
38
|
+
if (path === "/api/user-model/refresh" || path.startsWith("/api/user-model/refresh/")) return "gateway.admin";
|
|
39
|
+
if (path === "/api/user-model" || path.startsWith("/api/user-model/")) return methodScope(method, "workspace.read", "workspace.write");
|
|
40
|
+
if (path === "/api/knowledge-memory" || path.startsWith("/api/knowledge-memory/")) return methodScope(method, "workspace.read", "workspace.write");
|
|
38
41
|
if (path === "/api/discussions" || path.startsWith("/api/discussions/") || path === "/api/discussion-capture/settings" || path.startsWith("/api/workspace") || path.startsWith("/api/files") || path.startsWith("/api/projects") || path.startsWith("/api/notes") || path.startsWith("/api/shares")) return methodScope(method, "workspace.read", "workspace.write");
|
|
39
42
|
return "gateway.admin";
|
|
40
43
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolveGatewayBindHost, resolveGatewayListenHosts } from "../config/gateway-bind.js";
|
|
2
1
|
import { ensureXopcCliOnPath } from "../infra/path-env.js";
|
|
2
|
+
import { resolveGatewayBindHost, resolveGatewayListenHosts } from "../config/gateway-bind.js";
|
|
3
3
|
import { resolveGatewayListenPlan } from "./listen.js";
|
|
4
4
|
import { GatewayService } from "./service.js";
|
|
5
5
|
import { handleSiteShareUpgrade } from "../share/site-share-router.js";
|
|
@@ -2,13 +2,13 @@ import { createLogger } from "../../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { getModelRegistry } from "../../providers/model-registry.js";
|
|
4
4
|
import { init_providers } from "../../providers/index.js";
|
|
5
|
-
import { disposeAllSessionMcpRuntimes } from "../../agent/mcp/bundle-mcp-runtime.js";
|
|
6
|
-
import { reloadImageGenerationProviders } from "../../agent/image/generation/provider-registry.js";
|
|
7
|
-
import "../../agent/mcp/bundle-mcp-tools.js";
|
|
8
5
|
import { loadConfig, saveConfig } from "../../config/loader.js";
|
|
9
6
|
import { ConfigHotReloader } from "../../config/reload.js";
|
|
10
7
|
import "../../config/index.js";
|
|
8
|
+
import { disposeAllSessionMcpRuntimes } from "../../agent/mcp/bundle-mcp-runtime.js";
|
|
11
9
|
import { computeExtensionActivationPatch } from "../../extensions/bundled-extension-activation.js";
|
|
10
|
+
import { reloadImageGenerationProviders } from "../../agent/image/generation/provider-registry.js";
|
|
11
|
+
import "../../agent/mcp/bundle-mcp-tools.js";
|
|
12
12
|
import { sanitizeTunnelConfig } from "../../tunnel/tunnel-config.js";
|
|
13
13
|
//#region src/gateway/service/config-coordinator.ts
|
|
14
14
|
init_providers();
|
|
@@ -7,11 +7,11 @@ import { getConnectionResumeInput, init_connection_wait_repository, isConnection
|
|
|
7
7
|
import { init_sqlite } from "../../storage/sqlite/index.js";
|
|
8
8
|
import { getConversationRouting } from "../../storage/sqlite/conversation-repository.js";
|
|
9
9
|
import { init_session_key } from "../../routing/session-key.js";
|
|
10
|
+
import { prependEnvelopeTimestamp } from "../../channels/envelope-timestamp.js";
|
|
11
|
+
import "../chat-limits.js";
|
|
12
|
+
import { formatAgentRunErrorForClient } from "../../agent/client-error-format.js";
|
|
10
13
|
import { resolveExecutionContext } from "../../tasks/execution-context.js";
|
|
11
14
|
import { TaskRunCoordinator } from "../../tasks/task-run-coordinator.js";
|
|
12
|
-
import { formatAgentRunErrorForClient } from "../../agent/client-error-format.js";
|
|
13
|
-
import "../chat-limits.js";
|
|
14
|
-
import { prependEnvelopeTimestamp } from "../../channels/envelope-timestamp.js";
|
|
15
15
|
import { ChatStreamMapper } from "../chat-stream/mapper.js";
|
|
16
16
|
import { markdownNotificationPreview } from "../../notifications/plain-text.js";
|
|
17
17
|
import { resolveWebchatConversationId } from "../resolve-webchat-session-key.js";
|
|
@@ -26,7 +26,7 @@ function sameAppContext(input, existing) {
|
|
|
26
26
|
return isDeepStrictEqual(identity(input.sourceContexts), identity(existing.contextSnapshots));
|
|
27
27
|
}
|
|
28
28
|
function contextRefsMatchFrozenSnapshot(requested, frozen) {
|
|
29
|
-
const editable = frozen?.filter((ref) => ref.kind === "note" || ref.kind === "task" || ref.kind === "file" || ref.kind === "session" || ref.kind === "browser_tab" || ref.kind === "mcp_resource") ?? [];
|
|
29
|
+
const editable = frozen?.filter((ref) => ref.kind === "note" || ref.kind === "task" || ref.kind === "file" || ref.kind === "session" || ref.kind === "browser_tab" || ref.kind === "mcp_resource" || ref.kind === "user_assertion") ?? [];
|
|
30
30
|
if (requested.length !== editable.length) return false;
|
|
31
31
|
return requested.every((ref, index) => {
|
|
32
32
|
const snapshot = editable[index];
|
|
@@ -2,8 +2,8 @@ import { init_agent_session_key, resolveAgentIdFromConversationId } from "../../
|
|
|
2
2
|
import { retireSessionMcpRuntimeForConversationId } from "../../agent/mcp/bundle-mcp-runtime.js";
|
|
3
3
|
import { buildSessionTimeline } from "../../session/transcript-outline.js";
|
|
4
4
|
import { transcriptRowsToClientHistory } from "../../session/client-history.js";
|
|
5
|
-
import "../../agent/mcp/bundle-mcp-tools.js";
|
|
6
5
|
import { collectMediaUrisFromValues, deleteMediaUris } from "../../media/session-references.js";
|
|
6
|
+
import "../../agent/mcp/bundle-mcp-tools.js";
|
|
7
7
|
import { withModelConfigLock } from "../../session/model-config-lock.js";
|
|
8
8
|
import { getDistinctSessionChatIds } from "./session-chat-ids.js";
|
|
9
9
|
import { performSessionReset } from "../session-reset-service.js";
|