@xopcai/xopc 0.0.358 → 0.0.359
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-DEs_xwQi.js → agent-avatar-dicebear-D-yhlYSG.js} +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-CYq-3pbE.js +1 -0
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-BuKJ-Ybo.js → agent-plugin-dialog-Cx3UbhqT.js} +1 -1
- package/dist/gateway/static/root/assets/agents-Ce9uvui7.js +66 -0
- package/dist/gateway/static/root/assets/{app-management-settings-panel-BqyvMQXO.js → app-management-settings-panel-CiSdkzuX.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-Cn9qgXLw.js → appearance-settings-SdlCHKg8.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-ChPOmrPa.js → apps-page-ntyBe6mP.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-OUapkL2D.js → automations-page-DU0R5C65.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-BaHJml4R.js +7 -0
- package/dist/gateway/static/root/assets/{block-editor-_-QK0EnY.js → block-editor-CLejMPkV.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automation-inputs-CnLQ649y.js → browser-automation-inputs-MmkUGn9W.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-DZlWdikj.js → browser-automations-page-BjGswNM0.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-CEF_LSjz.js → browser-settings-page-DBcYssNQ.js} +1 -1
- package/dist/gateway/static/root/assets/capabilities-page-CsTpcrPP.js +2 -0
- package/dist/gateway/static/root/assets/{capabilities-settings-panel-CD5K7e1B.js → capabilities-settings-panel-BXlVwnMr.js} +1 -1
- package/dist/gateway/static/root/assets/{capability-header-actions-CA_XNTSW.js → capability-header-actions-B0Xiav_-.js} +1 -1
- package/dist/gateway/static/root/assets/channels-TPqwcbZ4.js +1 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-DRV-4qeP.js → chat-terminal-dock-C9pMFB6k.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-CqY40STw.js → computer-settings-page-BJOn14Ow.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-BKAt0jvO.js → connector-service-page-OyQKwHNr.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-Cn14oruE.js → connectors-page-DBWH5bVr.js} +1 -1
- package/dist/gateway/static/root/assets/date-picker-DxGsweV_.js +1 -0
- package/dist/gateway/static/root/assets/{dependency-picker-D0RWVtBt.js → dependency-picker-D9ZfAJwn.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-9B1PIjsV.js → desktop-pet-DFgK1z5i.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-cq5n59Pr.js → desktop-pet-settings-CyFW0raW.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-DKO8iqDJ.js → device-pairing-wizard-C6Co5dT3.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-C40-GlX1.js → directory-picker-path-field-2nrl6Exh.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-BshgQ_pO.js → extension-page-DMb2YFlb.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-DAJZVzIQ.js → extension-settings-page-D3hvXtxi.js} +1 -1
- package/dist/gateway/static/root/assets/fallback-models-DsXySQVF.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-settings-DAQu7q_Q.js → gateway-settings-CubM1m6Z.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-BHS2713D.js → home-page-CQ9y_LMT.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-Bsn8Qted.js → imports-page-Czzsa_Eu.js} +1 -1
- package/dist/gateway/static/root/assets/index-DUU_2HF0.js +106 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-DjuXyBbC.js → keyboard-shortcuts-settings-DqsFlXlp.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-D77r2CKa.js → local-app-workbench-page-BcDFXc1k.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-GsohMT3J.js → local-apps-page-BaxqXA1-.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-DeBeNPb4.js → logs-page-DmJjZ0Uk.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-Di9r7yBX.js → management-settings-1O7zsu4t.js} +1 -1
- package/dist/gateway/static/root/assets/{note-detail-panel-CLq8afeQ.js → note-detail-panel-BLvVlQG8.js} +3 -3
- package/dist/gateway/static/root/assets/{notes-page-FORwlFnt.js → notes-page-AWU_G61i.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-C9H1dHg2.js → page-context-capture-button-gL3453SU.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-page-BpTFGG44.js → personal-page-BPy5m3QR.js} +1 -1
- package/dist/gateway/static/root/assets/popover-select-BgSdSbCL.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-pW662VEC.js → product-open-page-Dw8JPizo.js} +1 -1
- package/dist/gateway/static/root/assets/{project-detail-page-3_Bqq0OV.js → project-detail-page-Zg4KZ0vK.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-D85PDbCM.js → projects-page-B33uj1lz.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-CzzTxbhr.js → remote-access-hub-BZoUVzgS.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-BUgsyhm_.js → runtime-tools-settings-panel-BLNXzyeh.js} +1 -1
- package/dist/gateway/static/root/assets/{scenes-page-Bds4V34P.js → scenes-page-D868Zuj9.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-BQz6ezGe.js → schema-form-5z33VTce.js} +1 -1
- package/dist/gateway/static/root/assets/{sessions-page-DkXKhSWK.js → sessions-page-Du7ueBFc.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-CaxCsIIZ.js +1 -0
- package/dist/gateway/static/root/assets/{settings-page-CKmMkdPu.js → settings-page-BG_dOYMq.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-Cjv6CDgq.js → setup-status-panel-DNj1hD_H.js} +1 -1
- package/dist/gateway/static/root/assets/{share-link-dialog-QAjExHAL.js → share-link-dialog-BvSRHs1P.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-DXpj-oOC.js → shares-settings-Cr_Ut6FE.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-api-BO1b2oYj.js → skill-api-BBaKs-Xx.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-cwXzLyU0.js → skills-page-DU7fV5pc.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-CIDRPUj4.js → system-settings-panel-DKjsZo49.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-ZmkA0E9f.js → task-detail-page-DSvaiKGb.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-BkgD61qc.js → tunnel-api-DR8Qu6R_.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-BjgYDab4.js → usage-page-CAIqAduR.js} +1 -1
- package/dist/gateway/static/root/assets/{use-composer-attachments-qK3z-EGz.js → use-composer-attachments-CUaywGe0.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-DpPGpkkg.js → user-model-page-C--t6SLp.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-Ce3PKQvh.js → work-discovery-overlay-wGFcle2p.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-Dv6xUycS.js → workflow-run-setup-panel-CewS2IbN.js} +1 -1
- package/dist/gateway/static/root/assets/{workflows-page-CgJlVdec.js → workflows-page-CxfsWFL5.js} +1 -1
- package/dist/gateway/static/root/index.html +4 -5
- package/dist/package.js +1 -1
- 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/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 +5 -5
- 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-stdio-transport.js +1 -1
- 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/oauth/mcp-oauth-store.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/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 +22 -22
- package/dist/src/agent/session/session-config-service.js +1 -1
- package/dist/src/agent/session/session-hydrator.js +1 -1
- package/dist/src/agent/session/session-inspector.js +1 -1
- package/dist/src/agent/skills/hub-lock.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/source-context/index.js +2 -2
- 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/personal-task-tool.js +2 -2
- 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 +5 -5
- 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 +2 -2
- package/dist/src/auth/oauth-provider-lock.js +1 -1
- package/dist/src/auth/profiles/store.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/backup/archive.js +1 -1
- package/dist/src/bootstrap/application-state.js +1 -1
- package/dist/src/browser/native-messaging-host.js +1 -1
- package/dist/src/browser/providers/browser-ext-install.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 +3 -3
- 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 +1 -1
- 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 +5 -5
- 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 +8 -8
- package/dist/src/config/loader.js +2 -2
- package/dist/src/config/models-json.js +2 -2
- 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/lockfile.js +1 -1
- 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 +6 -6
- package/dist/src/gateway/hono/routes/notes.js +3 -3
- package/dist/src/gateway/hono/routes/personal-agent.js +1 -1
- 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.js +4 -4
- package/dist/src/gateway/hono/routes/sessions.js +2 -2
- package/dist/src/gateway/hono/routes/shares.js +3 -3
- package/dist/src/gateway/hono/routes/side-chats.js +1 -1
- package/dist/src/gateway/hono/routes/site-shares.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +2 -2
- package/dist/src/gateway/hono/routes/user-model-refresh.js +1 -1
- package/dist/src/gateway/hono/routes/user-model.js +5 -5
- package/dist/src/gateway/hono/routes/voice.js +7 -7
- 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/server.js +1 -1
- package/dist/src/gateway/service/agent-runner.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-command-service.js +2 -2
- package/dist/src/gateway/service/sessions-api.js +1 -1
- package/dist/src/gateway/service.js +37 -37
- package/dist/src/gateway/session-context-summary.js +2 -2
- package/dist/src/gateway/session-reset-service.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/personal-agent/service.js +2 -2
- 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/model-registry.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/resolve-session.js +1 -1
- 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/share-zip.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 +3 -3
- package/dist/src/tasks/task-collaboration-delivery.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/tasks/task-main-update-decision-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/frpc-binary.js +1 -1
- package/dist/src/tunnel/gateway-lifecycle.js +1 -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 +4 -4
- 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 +3 -3
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-B23VK3UU.js +0 -1
- package/dist/gateway/static/root/assets/agents-DxH-UFs7.js +0 -66
- package/dist/gateway/static/root/assets/automations-workspace-DMqpfefB.js +0 -7
- package/dist/gateway/static/root/assets/capabilities-page-KUggKcIq.js +0 -2
- package/dist/gateway/static/root/assets/channels-CG_xCUnf.js +0 -1
- package/dist/gateway/static/root/assets/date-picker-B4jSGi8k.js +0 -1
- package/dist/gateway/static/root/assets/index-BcTY7RBG.js +0 -106
- package/dist/gateway/static/root/assets/popover-select-BNZZDJpO.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-C7ww6VRj.js +0 -1
- package/dist/gateway/static/root/assets/settings-shell-layer-context-BTQUDoJ2.js +0 -1
package/dist/src/gateway/lock.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
-
import
|
|
2
|
+
import fs from "node:fs";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
|
-
import fs from "node:fs/promises";
|
|
5
4
|
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(fs.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 = fs.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.readFile(lockPath, "utf8");
|
|
84
|
+
const raw = await fs$1.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.mkdir(path.dirname(lockPath), { recursive: true });
|
|
120
|
+
await fs$1.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.open(lockPath, "wx");
|
|
124
|
+
const handle = await fs$1.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.rm(lockPath, { force: true });
|
|
139
|
+
await fs$1.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.rm(lockPath, { force: true });
|
|
150
|
+
await fs$1.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.stat(lockPath);
|
|
160
|
+
const st = await fs$1.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.rm(lockPath, { force: true });
|
|
167
|
+
await fs$1.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";
|
|
3
2
|
import { FileServiceError } from "../files/file-service.js";
|
|
4
3
|
import { resolveMediaReference } from "../media/media-reference.js";
|
|
5
4
|
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 { resolveSpeechProviderChain } from "../voice/tts/factory.js";
|
|
4
|
-
import { mergeTtsConfigFromAppConfig } from "../voice/tts/merge-config.js";
|
|
5
3
|
import { resolveSTTProviderChain } from "../voice/stt/factory.js";
|
|
6
4
|
import { mergeSttConfigFromAppConfig } from "../voice/stt/config.js";
|
|
5
|
+
import { resolveSpeechProviderChain } from "../voice/tts/factory.js";
|
|
6
|
+
import { mergeTtsConfigFromAppConfig } from "../voice/tts/merge-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 fs 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 = fs.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 = fs.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 = fs.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 = fs.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 = fs.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 { runBootstrapMigrationsSync } from "../migrations/runner.js";
|
|
3
2
|
import { loadConfig } from "../config/loader.js";
|
|
3
|
+
import { runBootstrapMigrationsSync } from "../migrations/runner.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";
|
|
4
5
|
import { normalizeConnectedSourceResult } from "../../connectors/connected-source-normalizers.js";
|
|
5
6
|
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 { sanitizeConnectedSourceValue } from "../../connectors/connected-source-sanitization.js";
|
|
5
4
|
import { sceneContentHash } from "../../scenes/contracts.js";
|
|
5
|
+
import { sanitizeConnectedSourceValue } from "../../connectors/connected-source-sanitization.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/gateway/scenes/slackThreadSource.ts
|
|
8
8
|
init_connector_repository();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ensureXopcCliOnPath } from "../infra/path-env.js";
|
|
2
1
|
import { resolveGatewayBindHost, resolveGatewayListenHosts } from "../config/gateway-bind.js";
|
|
2
|
+
import { ensureXopcCliOnPath } from "../infra/path-env.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";
|
|
@@ -6,8 +6,8 @@ import { TaskRepository, init_task_repository } from "../../tasks/task-repositor
|
|
|
6
6
|
import { createClarificationWait, getClarification, getClarificationSnapshot, init_clarification_wait_repository, resolveClarification, supersedeActiveClarification } from "../../storage/sqlite/clarification-wait-repository.js";
|
|
7
7
|
import { init_connection_wait_repository, onConnectionWaitChanged } from "../../storage/sqlite/connection-wait-repository.js";
|
|
8
8
|
import { init_sqlite } from "../../storage/sqlite/index.js";
|
|
9
|
-
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
10
9
|
import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
|
|
10
|
+
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
11
11
|
import { TaskApplicationService } from "../../tasks/task-application-service.js";
|
|
12
12
|
import { EphemeralClarificationWaiter } from "../ephemeral-clarification-waiter.js";
|
|
13
13
|
import { describeActiveExecution } from "./active-execution.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";
|
|
5
8
|
import { loadConfig, saveConfig } from "../../config/loader.js";
|
|
6
9
|
import { ConfigHotReloader } from "../../config/reload.js";
|
|
7
10
|
import "../../config/index.js";
|
|
8
|
-
import { disposeAllSessionMcpRuntimes } from "../../agent/mcp/bundle-mcp-runtime.js";
|
|
9
11
|
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();
|
|
@@ -8,11 +8,11 @@ import { getConnectionResumeInput, init_connection_wait_repository, isConnection
|
|
|
8
8
|
import { init_sqlite } from "../../storage/sqlite/index.js";
|
|
9
9
|
import { getConversationRouting } from "../../storage/sqlite/conversation-repository.js";
|
|
10
10
|
import { init_session_key } from "../../routing/session-key.js";
|
|
11
|
-
import { prependEnvelopeTimestamp } from "../../channels/envelope-timestamp.js";
|
|
12
|
-
import "../chat-limits.js";
|
|
13
|
-
import { formatAgentRunErrorForClient } from "../../agent/client-error-format.js";
|
|
14
11
|
import { resolveExecutionContext } from "../../tasks/execution-context.js";
|
|
15
12
|
import { TaskRunCoordinator } from "../../tasks/task-run-coordinator.js";
|
|
13
|
+
import { formatAgentRunErrorForClient } from "../../agent/client-error-format.js";
|
|
14
|
+
import "../chat-limits.js";
|
|
15
|
+
import { prependEnvelopeTimestamp } from "../../channels/envelope-timestamp.js";
|
|
16
16
|
import { ChatStreamMapper } from "../chat-stream/mapper.js";
|
|
17
17
|
import { markdownNotificationPreview } from "../../notifications/plain-text.js";
|
|
18
18
|
import { resolveWebchatConversationId } from "../resolve-webchat-session-key.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
|
|
2
2
|
import { init_session_repository } from "../../storage/sqlite/session-repository.js";
|
|
3
|
-
import { init_providers, resolveModel } from "../../providers/index.js";
|
|
4
3
|
import { resolveEffectiveAgentConfigForAgent, resolveEffectiveAgentConfigForSession } from "../../config/agent-profile.js";
|
|
4
|
+
import { init_providers, resolveModel } from "../../providers/index.js";
|
|
5
5
|
import { resolveProjectAgentId } from "../../projects/project-agent.js";
|
|
6
6
|
import "../../projects/index.js";
|
|
7
|
-
import { getPersonalAgentByConversation } from "../../personal-agent/repository.js";
|
|
8
7
|
import { getModelThinking } from "../../providers/model-thinking.js";
|
|
8
|
+
import { getPersonalAgentByConversation } from "../../personal-agent/repository.js";
|
|
9
9
|
import { withModelConfigLock } from "../../session/model-config-lock.js";
|
|
10
10
|
import { SessionCommandError, acceptSessionCommand, getSessionPreparation, matchSessionInputReceipt, sessionCommandHash } from "../../storage/sqlite/session-creation-repository.js";
|
|
11
11
|
//#region src/gateway/service/session-command-service.ts
|
|
@@ -3,8 +3,8 @@ import { retireSessionMcpRuntimeForConversationId } from "../../agent/mcp/bundle
|
|
|
3
3
|
import { buildSessionTimeline } from "../../session/transcript-outline.js";
|
|
4
4
|
import { transcriptRowsToClientHistory } from "../../session/client-history.js";
|
|
5
5
|
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
6
|
-
import { collectMediaUrisFromValues, deleteMediaUris } from "../../media/session-references.js";
|
|
7
6
|
import "../../agent/mcp/bundle-mcp-tools.js";
|
|
7
|
+
import { collectMediaUrisFromValues, deleteMediaUris } from "../../media/session-references.js";
|
|
8
8
|
import { withModelConfigLock } from "../../session/model-config-lock.js";
|
|
9
9
|
import { publicExecutionDetail } from "../../session/execution-detail.js";
|
|
10
10
|
import { getDistinctSessionChatIds } from "./session-chat-ids.js";
|
|
@@ -17,48 +17,69 @@ import { init_session_repository, listSessionMetadata, patchSessionMetadata } fr
|
|
|
17
17
|
import { getSessionConfig, init_config_repository } from "../storage/sqlite/config-repository.js";
|
|
18
18
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
19
19
|
import { normalizeAgentId } from "../agent-catalog/id.js";
|
|
20
|
-
import { init_agent_scope, listAgentEntries, resolveAgentWorkspaceDir, resolveDefaultAgentId } from "../agent/agent-scope.js";
|
|
21
20
|
import { init_config, resolveKnowledgeReadPolicy } from "../user-context/config.js";
|
|
22
21
|
import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
|
|
23
|
-
import {
|
|
24
|
-
import { prewarmModelRegistry } from "../providers/model-registry.js";
|
|
22
|
+
import { init_agent_scope, listAgentEntries, resolveAgentWorkspaceDir, resolveDefaultAgentId } from "../agent/agent-scope.js";
|
|
25
23
|
import { init_agent_session_key, resolveAgentMainConversationId } from "../routing/agent-session-key.js";
|
|
26
24
|
import { init_session_key, resolveConversationId, sanitizeSegment } from "../routing/session-key.js";
|
|
27
25
|
import { getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
|
|
26
|
+
import { resolveEffectiveAgentProfileForSession } from "../config/agent-profile.js";
|
|
27
|
+
import { init_paths, resolveConfigPath, resolveExtensionsDir } from "../config/paths.js";
|
|
28
|
+
import { prewarmModelRegistry } from "../providers/model-registry.js";
|
|
28
29
|
import { init_providers, providers_exports } from "../providers/index.js";
|
|
29
30
|
import { AI_USAGE_RETENTION_MS, markStaleAiUsageEventsUnknown, pruneAiUsageEvents } from "../storage/sqlite/ai-usage-repository.js";
|
|
31
|
+
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
32
|
+
import { listKnowledgeItems } from "../knowledge-memory/repository.js";
|
|
33
|
+
import "../knowledge-memory/index.js";
|
|
34
|
+
import { getEmbeddedExecutionSession } from "../agent/embedded/execution-context.js";
|
|
35
|
+
import { disposeAllSessionMcpRuntimes } from "../agent/mcp/bundle-mcp-runtime.js";
|
|
36
|
+
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
37
|
+
import { ProjectService } from "../projects/project-service.js";
|
|
38
|
+
import { resolveProjectAgentId } from "../projects/project-agent.js";
|
|
39
|
+
import "../projects/index.js";
|
|
40
|
+
import { resolveEffectiveGatewayPort } from "./host.js";
|
|
41
|
+
import { runMemoryMaintenance } from "../memory-maintenance/service.js";
|
|
42
|
+
import "../memory-maintenance/index.js";
|
|
43
|
+
import { RealtimeExtensionBrowserProvider } from "../browser/providers/realtime-extension.js";
|
|
44
|
+
import { onSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
45
|
+
import { buildNoteAgentContext } from "../notes/agent-context.js";
|
|
46
|
+
import { NotesStore } from "../notes/store.js";
|
|
47
|
+
import { NotesService } from "../notes/service.js";
|
|
48
|
+
import { LocalAppService } from "../local-apps/service.js";
|
|
49
|
+
import { TaskApplicationService } from "../tasks/task-application-service.js";
|
|
30
50
|
import { AutomationService } from "../automations/service/automation-service.js";
|
|
51
|
+
import { TaskSignalService } from "../tasks/task-signal-service.js";
|
|
52
|
+
import { createProductDispatcher } from "../capabilities/runtime/product.js";
|
|
31
53
|
import "../automations/index.js";
|
|
32
|
-
import {
|
|
33
|
-
import
|
|
54
|
+
import { TaskRunDispatcher } from "../tasks/task-run-dispatcher.js";
|
|
55
|
+
import "../tasks/index.js";
|
|
56
|
+
import "../agent/mcp/bundle-mcp-tools.js";
|
|
34
57
|
import { areExtensionsGloballyDisabled } from "../extensions/discover-extensions.js";
|
|
58
|
+
import { SessionIndex } from "../session/manager.js";
|
|
59
|
+
import "../session/index.js";
|
|
60
|
+
import { ExtensionLoader } from "../extensions/loader.js";
|
|
35
61
|
import { buildExtensionMetadataSnapshot } from "../extensions/extension-metadata-snapshot.js";
|
|
62
|
+
import "../extensions/index.js";
|
|
36
63
|
import { buildChannelCatalogForConfig, buildChannelCatalogFromSnapshot } from "../channels/catalog/channel-catalog-service.js";
|
|
37
64
|
import { loadConfig, saveConfig } from "../config/loader.js";
|
|
65
|
+
import { MessageBus, MessageBusShutdownError } from "../infra/bus/queue.js";
|
|
66
|
+
import "../infra/bus/index.js";
|
|
67
|
+
import { collectMediaUrisFromMessages, deleteMediaUris } from "../media/session-references.js";
|
|
68
|
+
import { AgentService } from "../agent/service.js";
|
|
69
|
+
import { bootstrapApplicationStateSync } from "../bootstrap/application-state.js";
|
|
38
70
|
import { setPairingBroadcastSink } from "../channels/pairing/pairing-events.js";
|
|
39
71
|
import { registerClarificationChannelRuntime } from "./clarify-runtime.js";
|
|
40
72
|
import { ChannelManager } from "../channels/manager.js";
|
|
41
|
-
import { resolveEffectiveAgentProfileForSession } from "../config/agent-profile.js";
|
|
42
73
|
import { ChatPreviewService } from "../chat-previews/service.js";
|
|
43
74
|
import "../chat-previews/index.js";
|
|
44
|
-
import { MessageBus, MessageBusShutdownError } from "../infra/bus/queue.js";
|
|
45
|
-
import "../infra/bus/index.js";
|
|
46
75
|
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
47
76
|
import "../config/index.js";
|
|
48
|
-
import { ExtensionLoader } from "../extensions/loader.js";
|
|
49
|
-
import "../extensions/index.js";
|
|
50
|
-
import { resolveEffectiveGatewayPort } from "./host.js";
|
|
51
|
-
import { disposeAllSessionMcpRuntimes } from "../agent/mcp/bundle-mcp-runtime.js";
|
|
52
77
|
import { ManagedComposioEventPoller } from "../connectors/composio-managed-events.js";
|
|
53
|
-
import { listKnowledgeItems } from "../knowledge-memory/repository.js";
|
|
54
|
-
import "../knowledge-memory/index.js";
|
|
55
78
|
import { startConnectedKnowledgeCoordinator } from "../knowledge/coordinator.js";
|
|
56
79
|
import "../knowledge/index.js";
|
|
57
80
|
import { ConnectionRecoveryService } from "../connectors/connection-recovery-service.js";
|
|
58
81
|
import { startConnectorLearningCoordinator } from "../connectors/learning-coordinator.js";
|
|
59
82
|
import { startConnectorSupervisor } from "../connectors/supervisor.js";
|
|
60
|
-
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
61
|
-
import { TaskApplicationService } from "../tasks/task-application-service.js";
|
|
62
83
|
import { DiscussionService } from "../discussions/service.js";
|
|
63
84
|
import { DiscussionOrganizer } from "../discussions/organizer.js";
|
|
64
85
|
import { DiscussionLiveWorker } from "../discussions/live-worker.js";
|
|
@@ -67,10 +88,6 @@ import { DiscussionSealer } from "../discussions/sealer.js";
|
|
|
67
88
|
import "../discussions/index.js";
|
|
68
89
|
import { EndpointToolRuntime } from "../endpoint-tools/runtime.js";
|
|
69
90
|
import "../endpoint-tools/index.js";
|
|
70
|
-
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
71
|
-
import { ProjectService } from "../projects/project-service.js";
|
|
72
|
-
import { resolveProjectAgentId } from "../projects/project-agent.js";
|
|
73
|
-
import "../projects/index.js";
|
|
74
91
|
import { assertGatewayAuthConfigured, extractToken, resolveGatewayAuth, validateToken } from "./auth.js";
|
|
75
92
|
import { prepareAutomationAgentSession } from "./automation-agent-session.js";
|
|
76
93
|
import { stopTailscaleExposure } from "./tailscale-lifecycle.js";
|
|
@@ -87,23 +104,6 @@ import { WorkDiscoveryService } from "../work-discovery/service.js";
|
|
|
87
104
|
import { buildVoiceMemoryContext } from "../voice/realtime/memory-context.js";
|
|
88
105
|
import { buildVoicePersonaContext } from "../voice/realtime/persona-context.js";
|
|
89
106
|
import { voiceMemoryBudget, voicePersonaBudget } from "../voice/realtime/conversation-context.js";
|
|
90
|
-
import { SessionIndex } from "../session/manager.js";
|
|
91
|
-
import { onSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
92
|
-
import "../session/index.js";
|
|
93
|
-
import { getEmbeddedExecutionSession } from "../agent/embedded/execution-context.js";
|
|
94
|
-
import { collectMediaUrisFromMessages, deleteMediaUris } from "../media/session-references.js";
|
|
95
|
-
import { runMemoryMaintenance } from "../memory-maintenance/service.js";
|
|
96
|
-
import "../memory-maintenance/index.js";
|
|
97
|
-
import { buildNoteAgentContext } from "../notes/agent-context.js";
|
|
98
|
-
import { NotesStore } from "../notes/store.js";
|
|
99
|
-
import { NotesService } from "../notes/service.js";
|
|
100
|
-
import { LocalAppService } from "../local-apps/service.js";
|
|
101
|
-
import { TaskSignalService } from "../tasks/task-signal-service.js";
|
|
102
|
-
import { createProductDispatcher } from "../capabilities/runtime/product.js";
|
|
103
|
-
import { TaskRunDispatcher } from "../tasks/task-run-dispatcher.js";
|
|
104
|
-
import "../tasks/index.js";
|
|
105
|
-
import "../agent/mcp/bundle-mcp-tools.js";
|
|
106
|
-
import { AgentService } from "../agent/service.js";
|
|
107
107
|
import "../notes/index.js";
|
|
108
108
|
import { buildWorkflowChildTools } from "../agent/workflow/workflow-child-tools.js";
|
|
109
109
|
import { WorkflowRunService } from "../workflows/service/workflow-run-service.js";
|
|
@@ -6,14 +6,14 @@ import { TaskRepository, init_task_repository } from "../tasks/task-repository.j
|
|
|
6
6
|
import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
|
|
7
7
|
import { getCurrentTranscriptId, init_session_repository } from "../storage/sqlite/session-repository.js";
|
|
8
8
|
import { getSessionConfig, init_config_repository } from "../storage/sqlite/config-repository.js";
|
|
9
|
+
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
9
10
|
import { getExecutionEnvironmentForSession } from "../execution-environments/subject.js";
|
|
10
11
|
import { effectiveWorkspacePathForSession } from "../session/session-workspace.js";
|
|
11
12
|
import { ProjectStore } from "../projects/project-store.js";
|
|
12
13
|
import { runExec } from "../infra/exec.js";
|
|
13
14
|
import { TaskCollaborationRepository } from "../tasks/task-collaboration-repository.js";
|
|
14
|
-
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
15
|
-
import { isSessionSourceBinding } from "../agent/source-context/types.js";
|
|
16
15
|
import { TaskOriginRepository } from "../tasks/task-origin-repository.js";
|
|
16
|
+
import { isSessionSourceBinding } from "../agent/source-context/types.js";
|
|
17
17
|
import { realpath, stat } from "node:fs/promises";
|
|
18
18
|
//#region src/gateway/session-context-summary.ts
|
|
19
19
|
init_config_repository();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { retireSessionMcpRuntimeForConversationId } from "../agent/mcp/bundle-mcp-runtime.js";
|
|
4
|
-
import { isPersonalConversation } from "../personal-agent/repository.js";
|
|
5
4
|
import { abortEmbeddedRun } from "../agent/embedded/runs.js";
|
|
5
|
+
import { isPersonalConversation } from "../personal-agent/repository.js";
|
|
6
6
|
import "../agent/mcp/bundle-mcp-tools.js";
|
|
7
7
|
//#region src/gateway/session-reset-service.ts
|
|
8
8
|
init_logger();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import path, { relative, resolve } from "node:path";
|
|
2
|
-
import
|
|
2
|
+
import fs from "node:fs";
|
|
3
3
|
//#region src/gateway/workspace-editor-path.ts
|
|
4
4
|
/** Resolve a workspace-relative POSIX path safely (no `..`, stays under root). */
|
|
5
5
|
function resolveWorkspaceSafePath(workspaceRoot, rel) {
|
|
@@ -20,7 +20,7 @@ function isPathUnderWorkspace(workspaceRoot, absPath) {
|
|
|
20
20
|
function normalizeComparablePath(input) {
|
|
21
21
|
let resolved = resolve(input);
|
|
22
22
|
try {
|
|
23
|
-
resolved =
|
|
23
|
+
resolved = fs.realpathSync.native(resolved);
|
|
24
24
|
} catch {}
|
|
25
25
|
return process.platform === "win32" ? resolved.toLowerCase() : resolved;
|
|
26
26
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
2
|
-
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
3
2
|
import { getModelCatalogStore, init_model_catalog_store } from "../providers/model-catalog-store.js";
|
|
4
3
|
import { getAvailableModels, init_providers } from "../providers/index.js";
|
|
5
4
|
import { compareCatalogModels } from "../providers/model-catalog-ranking.js";
|
|
5
|
+
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
6
6
|
import { prepareUpdateGlobalDefaults } from "./global-defaults-admin.js";
|
|
7
7
|
//#region src/gateway/xopc-cloud-capability-setup.ts
|
|
8
8
|
init_repository();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { init_agent_scope, resolveDefaultAgentId } from "../agent/agent-scope.js";
|
|
2
|
-
import { extractAssistantText, getAssistantMessageErrorReason } from "../providers/model-response.js";
|
|
3
2
|
import { init_providers, resolveModel } from "../providers/index.js";
|
|
4
3
|
import { completeWithResolvedCredentials, isLocalModelBaseUrl } from "../providers/model-call.js";
|
|
4
|
+
import { extractAssistantText, getAssistantMessageErrorReason } from "../providers/model-response.js";
|
|
5
5
|
import { resolveModelSelector } from "../config/agent-model-intents.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/home-intelligence/generator.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { listPortListeners } from "../gateway/ports.js";
|
|
2
2
|
import { isGatewayArgv, parseProcCmdline } from "./gateway-process-argv.js";
|
|
3
|
-
import
|
|
3
|
+
import fs from "node:fs";
|
|
4
4
|
import { spawnSync } from "node:child_process";
|
|
5
5
|
//#region src/infra/gateway-processes.ts
|
|
6
6
|
function readGatewayProcessArgsSync(pid) {
|
|
7
7
|
if (process.platform === "linux") try {
|
|
8
|
-
return parseProcCmdline(
|
|
8
|
+
return parseProcCmdline(fs.readFileSync(`/proc/${pid}/cmdline`, "utf8"));
|
|
9
9
|
} catch {
|
|
10
10
|
return null;
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveBrewPathDirs } from "./brew.js";
|
|
2
2
|
import os from "node:os";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fs from "node:fs";
|
|
5
5
|
//#region src/infra/path-env.ts
|
|
6
6
|
function isTruthyEnvValue(value) {
|
|
7
7
|
if (!value) return false;
|
|
@@ -10,7 +10,7 @@ function isTruthyEnvValue(value) {
|
|
|
10
10
|
}
|
|
11
11
|
function isExecutable(filePath) {
|
|
12
12
|
try {
|
|
13
|
-
|
|
13
|
+
fs.accessSync(filePath, fs.constants.X_OK);
|
|
14
14
|
return true;
|
|
15
15
|
} catch {
|
|
16
16
|
return false;
|
|
@@ -18,7 +18,7 @@ function isExecutable(filePath) {
|
|
|
18
18
|
}
|
|
19
19
|
function isDirectory(dirPath) {
|
|
20
20
|
try {
|
|
21
|
-
return
|
|
21
|
+
return fs.statSync(dirPath).isDirectory();
|
|
22
22
|
} catch {
|
|
23
23
|
return false;
|
|
24
24
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { resolveExecPathBinPrepend } from "./path-env.js";
|
|
2
1
|
import { applyPathPrepend } from "./path-prepend.js";
|
|
2
|
+
import { resolveExecPathBinPrepend } from "./path-env.js";
|
|
3
3
|
import { readPackageVersion } from "./package-json.js";
|
|
4
4
|
import { createDefaultCommandRunner } from "./run-command.js";
|
|
5
5
|
import path from "node:path";
|
|
6
|
-
import
|
|
7
|
-
import fs from "node:fs/promises";
|
|
6
|
+
import fs from "node:fs";
|
|
7
|
+
import fs$1 from "node:fs/promises";
|
|
8
8
|
//#region src/infra/update-global.ts
|
|
9
9
|
const XOPC_PACKAGE_NAME = "@xopcai/xopc";
|
|
10
10
|
const GLOBAL_RENAME_PREFIX = ".";
|
|
@@ -18,7 +18,7 @@ const NPM_GLOBAL_INSTALL_OMIT_OPTIONAL_FLAGS = ["--omit=optional", ...NPM_GLOBAL
|
|
|
18
18
|
const GLOBAL_DETECT_TIMEOUT_MS = 15e3;
|
|
19
19
|
async function pathExists(targetPath) {
|
|
20
20
|
try {
|
|
21
|
-
await fs.access(targetPath);
|
|
21
|
+
await fs$1.access(targetPath);
|
|
22
22
|
return true;
|
|
23
23
|
} catch {
|
|
24
24
|
return false;
|
|
@@ -26,7 +26,7 @@ async function pathExists(targetPath) {
|
|
|
26
26
|
}
|
|
27
27
|
async function tryRealpath(targetPath) {
|
|
28
28
|
try {
|
|
29
|
-
return await fs.realpath(targetPath);
|
|
29
|
+
return await fs$1.realpath(targetPath);
|
|
30
30
|
} catch {
|
|
31
31
|
return path.resolve(targetPath);
|
|
32
32
|
}
|
|
@@ -49,14 +49,14 @@ function resolvePreferredNpmCommand(pkgRoot) {
|
|
|
49
49
|
const prefix = inferNpmPrefixFromPackageRoot(pkgRoot);
|
|
50
50
|
if (!prefix) return null;
|
|
51
51
|
const candidate = process.platform === "win32" ? path.join(prefix, "npm.cmd") : path.join(prefix, "bin", "npm");
|
|
52
|
-
return
|
|
52
|
+
return fs.existsSync(candidate) ? candidate : null;
|
|
53
53
|
}
|
|
54
54
|
function resolveNpmFromExecPath() {
|
|
55
55
|
const execPath = process.execPath?.trim();
|
|
56
56
|
if (!execPath) return null;
|
|
57
57
|
const binDir = path.dirname(execPath);
|
|
58
58
|
const candidate = process.platform === "win32" ? path.join(binDir, "npm.cmd") : path.join(binDir, "npm");
|
|
59
|
-
return
|
|
59
|
+
return fs.existsSync(candidate) ? candidate : null;
|
|
60
60
|
}
|
|
61
61
|
function resolvePreferredGlobalManagerCommand(manager, pkgRoot) {
|
|
62
62
|
if (manager !== "npm") return manager;
|
|
@@ -204,7 +204,7 @@ async function cleanupGlobalRenameDirs(params) {
|
|
|
204
204
|
const prefix = `${GLOBAL_RENAME_PREFIX}${name}-`;
|
|
205
205
|
let entries = [];
|
|
206
206
|
try {
|
|
207
|
-
entries = await fs.readdir(root);
|
|
207
|
+
entries = await fs$1.readdir(root);
|
|
208
208
|
} catch {
|
|
209
209
|
return { removed };
|
|
210
210
|
}
|
|
@@ -212,8 +212,8 @@ async function cleanupGlobalRenameDirs(params) {
|
|
|
212
212
|
if (!entry.startsWith(prefix)) continue;
|
|
213
213
|
const target = path.join(root, entry);
|
|
214
214
|
try {
|
|
215
|
-
if (!(await fs.lstat(target)).isDirectory()) continue;
|
|
216
|
-
await fs.rm(target, {
|
|
215
|
+
if (!(await fs$1.lstat(target)).isDirectory()) continue;
|
|
216
|
+
await fs$1.rm(target, {
|
|
217
217
|
recursive: true,
|
|
218
218
|
force: true
|
|
219
219
|
});
|
|
@@ -5,11 +5,11 @@ import { currentOperationId, init_operation_context } from "../infra/operation-c
|
|
|
5
5
|
import { afterSqliteCommit, init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
6
6
|
import { ExtensionCapabilityBindingsSchema, extensionCapabilityPermissions } from "../../packages/gateway-contract/src/extension-capabilities.js";
|
|
7
7
|
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
8
|
-
import { CapabilityError } from "../capabilities/runtime/errors.js";
|
|
9
8
|
import { init_paths, resolveExtensionsDir } from "../config/paths.js";
|
|
9
|
+
import { LocalAppStore } from "./store.js";
|
|
10
10
|
import { slugifyProjectName } from "../projects/project-store.js";
|
|
11
|
+
import { CapabilityError } from "../capabilities/runtime/errors.js";
|
|
11
12
|
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
12
|
-
import { LocalAppStore } from "./store.js";
|
|
13
13
|
import { validateLocalAppCapabilityContracts } from "./capabilities/contracts.js";
|
|
14
14
|
import { buildLocalAppFixGuidance } from "./fix-guidance.js";
|
|
15
15
|
import { readLocalAppAcceptanceConfig } from "./acceptance.js";
|
|
@@ -2,8 +2,8 @@ import { createLogger } from "../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { CapabilityErrorCodeSchema } from "../../packages/gateway-contract/src/capabilities.js";
|
|
4
4
|
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
5
|
-
import { loadConfig } from "../config/loader.js";
|
|
6
5
|
import { resolveGatewayLocalClientHost } from "../config/gateway-bind.js";
|
|
6
|
+
import { loadConfig } from "../config/loader.js";
|
|
7
7
|
import { createGatewayCredential, gatewayCredentialAuthorization } from "../gateway/credential.js";
|
|
8
8
|
import { fetch } from "undici";
|
|
9
9
|
//#region src/mcp/gateway-http-client.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { registerMediaUnderstandingProvider } from "./registry.js";
|
|
1
2
|
import { normalizeBaseUrl, postMultipartRequest } from "../media-shared/http/provider-http.js";
|
|
2
3
|
import "../media-shared/http/index.js";
|
|
3
|
-
import { registerMediaUnderstandingProvider } from "./registry.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
//#region src/media-understanding/openai-compatible-audio.ts
|
|
6
6
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { getNoteAgentContextRecord, upsertNoteAgentContextRecord } from "../storage/sqlite/note-agent-context-repository.js";
|
|
2
2
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
3
|
-
import {
|
|
3
|
+
import { resolveImageModelConfigForTool } from "../agent/image/tool-model-config.js";
|
|
4
|
+
import { describeImagesWithFallback } from "../agent/image/understanding/runtime.js";
|
|
5
|
+
import { extractDocumentText } from "../document-understanding/extract.js";
|
|
4
6
|
import { transcribe } from "../voice/stt/transcribe-core.js";
|
|
7
|
+
import { isSTTAvailable } from "../voice/stt/availability.js";
|
|
5
8
|
import { mergeSttConfigFromAppConfig } from "../voice/stt/config.js";
|
|
6
9
|
import "../voice/stt/index.js";
|
|
7
|
-
import { extractDocumentText } from "../document-understanding/extract.js";
|
|
8
|
-
import { resolveImageModelConfigForTool } from "../agent/image/tool-model-config.js";
|
|
9
|
-
import { describeImagesWithFallback } from "../agent/image/understanding/runtime.js";
|
|
10
10
|
import { extname } from "node:path";
|
|
11
11
|
import { readFile } from "node:fs/promises";
|
|
12
12
|
//#region src/notes/agent-context.ts
|