@xopcai/xopc 0.0.430 → 0.0.431
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/{index-C5BhE5cA.js → index-BmUSsdwn.js} +6 -6
- package/dist/gateway/static/root/index.html +1 -1
- package/dist/package.js +1 -1
- package/dist/src/agent/agent-manager.js +18 -18
- 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 +12 -12
- package/dist/src/agent/child-agent-factory.js +2 -2
- package/dist/src/agent/context/coordinator.js +2 -2
- package/dist/src/agent/context/execution-context.js +4 -4
- 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/codemode-extension.js +1 -1
- package/dist/src/agent/embedded/execution-tool-policy.js +1 -1
- package/dist/src/agent/embedded/external-tool-discovery.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +6 -6
- package/dist/src/agent/embedded/run-turn.js +19 -19
- package/dist/src/agent/embedded/session-runner.js +4 -4
- package/dist/src/agent/embedded/session-tool-result-guard.js +1 -1
- package/dist/src/agent/embedded/xopc-tools-bridge.js +1 -1
- package/dist/src/agent/external-tools/cliProvider.js +4 -4
- package/dist/src/agent/external-tools/composio-provider.js +4 -4
- package/dist/src/agent/external-tools/endpoint-provider.js +6 -6
- package/dist/src/agent/external-tools/extension-provider.js +1 -1
- package/dist/src/agent/external-tools/gateway-tools.js +3 -3
- package/dist/src/agent/external-tools/memory-provider.js +1 -1
- package/dist/src/agent/image/generation/openai-images-provider.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/inbound/attachment-pipeline.js +2 -2
- package/dist/src/agent/inbound/inbound-loop.js +2 -2
- package/dist/src/agent/independent-execution.js +2 -2
- package/dist/src/agent/index.js +3 -3
- package/dist/src/agent/mcp/connection-drafts.js +1 -1
- package/dist/src/agent/mcp/connection-setup.js +1 -1
- package/dist/src/agent/mcp/conversation-setup.js +1 -1
- package/dist/src/agent/mcp/discovery.js +2 -2
- package/dist/src/agent/mcp/transport.js +1 -1
- package/dist/src/agent/memory/index.js +1 -1
- package/dist/src/agent/orchestration/llm-turn-retry.js +1 -1
- package/dist/src/agent/prompt/response-language.js +1 -1
- package/dist/src/agent/prompt/service-prompt-builder.js +3 -3
- package/dist/src/agent/prompt/system-prompt-params.js +1 -1
- package/dist/src/agent/sandbox/exec-policy.js +1 -1
- package/dist/src/agent/service/direct-turn-helpers.js +6 -6
- package/dist/src/agent/service/process-direct-streaming.js +6 -6
- 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 +2 -2
- 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/filesystem-watcher.js +1 -1
- package/dist/src/agent/skills/hub-lock.js +1 -1
- package/dist/src/agent/skills/hub-pull.js +2 -2
- package/dist/src/agent/skills/index.js +1 -1
- package/dist/src/agent/skills/managed-store.js +1 -1
- package/dist/src/agent/skills/marketplace/adapters/store/adapter.js +1 -1
- package/dist/src/agent/skills/marketplace/adapters/store/store-api-client.js +1 -1
- package/dist/src/agent/skills/skill-manage-ops.js +1 -1
- package/dist/src/agent/skills/skill-manager.js +1 -1
- package/dist/src/agent/skills/skill-sources.js +1 -1
- package/dist/src/agent/source-context/index.js +1 -1
- package/dist/src/agent/tasks/task-judge-service.js +8 -8
- package/dist/src/agent/tools/create-share-tool.js +2 -2
- package/dist/src/agent/tools/delegate-tool.js +3 -3
- package/dist/src/agent/tools/exec-command.js +1 -1
- package/dist/src/agent/tools/executor.js +1 -1
- package/dist/src/agent/tools/factory.js +19 -19
- package/dist/src/agent/tools/fetch-text.js +1 -1
- package/dist/src/agent/tools/image-generate-tool.js +2 -2
- package/dist/src/agent/tools/index.js +4 -4
- package/dist/src/agent/tools/list-dir.js +1 -1
- package/dist/src/agent/tools/personal-attention-tool.js +2 -2
- package/dist/src/agent/tools/personal-read-tool.js +1 -1
- package/dist/src/agent/tools/personal-request-result-tool.js +1 -1
- package/dist/src/agent/tools/personal-request-tool.js +4 -4
- package/dist/src/agent/tools/personal-result-tool.js +1 -1
- package/dist/src/agent/tools/personal-task-tool.js +5 -5
- package/dist/src/agent/tools/phone-use-tool.js +1 -1
- package/dist/src/agent/tools/publish-artifacts.js +1 -1
- package/dist/src/agent/tools/read.js +1 -1
- package/dist/src/agent/tools/review-workspace.js +1 -1
- package/dist/src/agent/tools/send-media.js +1 -1
- package/dist/src/agent/tools/skill-manage-tool.js +1 -1
- package/dist/src/agent/tools/task-collaboration-tool.js +2 -2
- package/dist/src/agent/tools/tts-tool.js +1 -1
- package/dist/src/agent/tools/user-context-tool.js +2 -2
- package/dist/src/agent/tools/web.js +1 -1
- package/dist/src/agent/tools/write.js +1 -1
- package/dist/src/agent/tools/xopc-use-tool.js +12 -12
- package/dist/src/agent/transcript/index.js +2 -2
- package/dist/src/agent/transcript/transcript-hygiene.js +2 -2
- package/dist/src/agent-catalog/capabilities.js +2 -2
- package/dist/src/agent-catalog/repository.js +1 -1
- package/dist/src/agent-matching/delegation-service.js +1 -1
- package/dist/src/ai-assist/text-assist.js +1 -1
- package/dist/src/auth/credentials.js +1 -1
- package/dist/src/auth/oauth/openai.js +1 -1
- package/dist/src/auth/oauth/xopc-cloud.js +1 -1
- package/dist/src/auth/profiles/store.js +1 -1
- package/dist/src/automations/api/routes.js +2 -2
- package/dist/src/automations/capabilities/drafts.js +1 -1
- package/dist/src/automations/capabilities/write.js +1 -1
- package/dist/src/automations/configuration-conversation.js +1 -1
- package/dist/src/automations/delivery/delivery-router.js +1 -1
- package/dist/src/automations/domain/index.js +1 -1
- package/dist/src/automations/draft/automation-draft-service.js +1 -1
- package/dist/src/automations/index.js +2 -2
- package/dist/src/automations/service/action-executor.js +2 -2
- package/dist/src/automations/service/automation-service.js +2 -2
- package/dist/src/browser/native-messaging-host.js +1 -1
- package/dist/src/browser/providers/browser-ext-install.js +2 -2
- package/dist/src/capabilities/runtime/dispatcher.js +1 -1
- package/dist/src/capabilities/runtime/product.js +1 -1
- package/dist/src/capabilities/store-connector.js +2 -2
- package/dist/src/channels/attachments/voice-stt-webchat.js +1 -1
- package/dist/src/channels/index.js +1 -1
- 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 +2 -2
- 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/context.js +1 -1
- 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/extension-agent-plugin.js +1 -1
- package/dist/src/cli/commands/extension-dev.js +1 -1
- package/dist/src/cli/commands/extension.js +2 -2
- 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 +3 -3
- 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 +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 +3 -3
- package/dist/src/cli/utils/session.js +1 -1
- package/dist/src/computer/flows.js +1 -1
- package/dist/src/computer/model-adapter.js +1 -1
- package/dist/src/computer/runtime.js +4 -4
- package/dist/src/config/agent-profile.js +1 -1
- package/dist/src/config/index.js +3 -3
- package/dist/src/config/loader.js +1 -1
- package/dist/src/config/models-json.js +1 -1
- package/dist/src/connectors/cli/authorization.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-ingestion.js +2 -2
- package/dist/src/connectors/connected-source-understanding.js +5 -5
- package/dist/src/connectors/connection-recovery-service.js +4 -4
- package/dist/src/connectors/content-enrichment.js +1 -1
- package/dist/src/connectors/health.js +1 -1
- package/dist/src/connectors/instances.js +1 -1
- package/dist/src/connectors/runtime-adapter-registry.js +2 -2
- package/dist/src/discussions/live-worker.js +1 -1
- package/dist/src/discussions/sealer.js +1 -1
- package/dist/src/endpoint-tools/index.js +1 -1
- package/dist/src/endpoint-tools/runtime.js +2 -2
- package/dist/src/execution-environments/local-worktree-manager.js +1 -1
- package/dist/src/extensions/activation-context.js +3 -3
- package/dist/src/extensions/agent-plugins/auth.js +1 -1
- package/dist/src/extensions/agent-plugins/skill-catalog.js +3 -3
- package/dist/src/extensions/agent-plugins/source-http-fetch.js +1 -1
- package/dist/src/extensions/agent-plugins/validation.js +1 -1
- package/dist/src/extensions/api.js +3 -3
- package/dist/src/extensions/bundled-extension-activation.js +1 -1
- package/dist/src/extensions/index.js +3 -3
- 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/gateway/agents-admin.js +2 -2
- package/dist/src/gateway/device-routes.js +1 -1
- package/dist/src/gateway/file-path-classifier.js +1 -1
- package/dist/src/gateway/global-defaults-admin.js +2 -2
- package/dist/src/gateway/hono/app.js +2 -2
- package/dist/src/gateway/hono/lib/config-payload.js +2 -2
- package/dist/src/gateway/hono/oauth-async.js +1 -1
- package/dist/src/gateway/hono/routes/agent-plugins.js +1 -1
- package/dist/src/gateway/hono/routes/agents.js +1 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.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 +1 -1
- package/dist/src/gateway/hono/routes/connectors.js +1 -1
- package/dist/src/gateway/hono/routes/context-sources.js +1 -1
- package/dist/src/gateway/hono/routes/endpoint-tools.js +1 -1
- package/dist/src/gateway/hono/routes/home.js +1 -1
- package/dist/src/gateway/hono/routes/location-sharing.js +1 -1
- package/dist/src/gateway/hono/routes/mcp.js +1 -1
- package/dist/src/gateway/hono/routes/memory-learning.js +3 -3
- package/dist/src/gateway/hono/routes/models.js +4 -4
- package/dist/src/gateway/hono/routes/notes.js +3 -3
- package/dist/src/gateway/hono/routes/phone-dependencies.js +1 -1
- package/dist/src/gateway/hono/routes/phone-setup.js +2 -2
- package/dist/src/gateway/hono/routes/phone.js +2 -2
- package/dist/src/gateway/hono/routes/projects.js +5 -5
- package/dist/src/gateway/hono/routes/runtime-tools.js +1 -1
- package/dist/src/gateway/hono/routes/session-command-handler.js +2 -2
- package/dist/src/gateway/hono/routes/session-input-handler.js +5 -5
- package/dist/src/gateway/hono/routes/sessions.js +3 -3
- package/dist/src/gateway/hono/routes/shares.js +1 -1
- package/dist/src/gateway/hono/routes/side-chats.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +2 -2
- package/dist/src/gateway/hono/routes/user-model.js +7 -7
- package/dist/src/gateway/hono/routes/voice.js +7 -7
- package/dist/src/gateway/image-generation-setup.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/provider-model-setup.js +1 -1
- package/dist/src/gateway/server.js +1 -1
- package/dist/src/gateway/service/agent-runner.js +2 -2
- package/dist/src/gateway/service/config-coordinator.js +2 -2
- package/dist/src/gateway/service/marketplace-service.js +2 -2
- package/dist/src/gateway/service/run-gateway-agent.js +5 -5
- package/dist/src/gateway/service/session-command-service.js +2 -2
- package/dist/src/gateway/service/session-input-coordinator.js +1 -1
- package/dist/src/gateway/service.js +45 -45
- package/dist/src/gateway/session-context-summary.js +4 -4
- 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 +4 -4
- package/dist/src/home-intelligence/generator.js +2 -2
- package/dist/src/home-intelligence/host.js +2 -2
- package/dist/src/imports/importService.js +1 -1
- package/dist/src/imports/inventory.js +2 -2
- package/dist/src/imports/productImport.js +1 -1
- package/dist/src/imports/runtime.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 +9 -9
- package/dist/src/knowledge/connected-knowledge-pipeline.js +1 -1
- package/dist/src/knowledge/index.js +1 -1
- package/dist/src/knowledge-memory/repository.js +1 -1
- package/dist/src/knowledge-memory/usage-policy.js +1 -1
- package/dist/src/local-apps/service.js +3 -3
- package/dist/src/mcp/gateway-http-client.js +1 -1
- package/dist/src/media-understanding/openai-compatible-audio.js +1 -1
- package/dist/src/memory-learning/source-learning.js +5 -5
- package/dist/src/memory-learning/task-receipts.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 +3 -3
- package/dist/src/personal-agent/capability-service.js +2 -2
- package/dist/src/personal-agent/proactivity/routes.js +1 -1
- package/dist/src/personal-agent/proactivity/service.js +7 -7
- package/dist/src/personal-agent/prompt-context.js +7 -7
- package/dist/src/personal-agent/prompts.js +2 -2
- package/dist/src/personal-agent/reply-composer.js +9 -9
- package/dist/src/personal-agent/request-delivery.js +2 -2
- package/dist/src/personal-agent/request-service.js +7 -7
- package/dist/src/personal-agent/result-reader.js +1 -1
- package/dist/src/personal-agent/service.js +2 -2
- package/dist/src/phone/model-adapter.js +1 -1
- package/dist/src/phone/repository.js +1 -1
- package/dist/src/phone/runtime.js +4 -4
- package/dist/src/projects/index.js +2 -2
- package/dist/src/projects/project-agent-suggestion.js +1 -1
- package/dist/src/projects/project-service.js +2 -2
- package/dist/src/projects/project-skill-service.js +2 -2
- package/dist/src/projects/workspace.js +1 -1
- package/dist/src/providers/model-reference-auditor.js +1 -1
- package/dist/src/realtime/runtime.js +1 -1
- package/dist/src/remote-access/exposure-manager.js +1 -1
- package/dist/src/runtime-tools/archive.js +1 -1
- package/dist/src/runtime-tools/phone-dependencies.js +2 -2
- package/dist/src/session/index.js +2 -2
- package/dist/src/session/init-session-turn.js +1 -1
- package/dist/src/session/resolve-session.js +1 -1
- package/dist/src/session/store.js +5 -5
- package/dist/src/session/thinking-resolve.js +1 -1
- package/dist/src/share/hosted-session-share.js +2 -2
- package/dist/src/share/session-share-service.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 +2 -2
- package/dist/src/tasks/home-query-service.js +1 -1
- package/dist/src/tasks/index.js +5 -5
- package/dist/src/tasks/task-allocation-service.js +5 -5
- package/dist/src/tasks/task-application-service.js +5 -5
- package/dist/src/tasks/task-collaboration-delivery.js +1 -1
- package/dist/src/tasks/task-context-assembler.js +2 -2
- package/dist/src/tasks/task-contract-planner.js +2 -2
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tasks/task-handoff.js +4 -4
- package/dist/src/tasks/task-main-update-decision-service.js +3 -3
- package/dist/src/tasks/task-model-call.js +1 -1
- package/dist/src/tasks/task-research-result.js +4 -4
- package/dist/src/tasks/task-result-delivery-repository.js +1 -1
- package/dist/src/tasks/task-result-delivery-service.js +2 -2
- package/dist/src/tasks/task-run-coordinator.js +3 -3
- package/dist/src/tasks/task-run-dispatcher.js +1 -1
- package/dist/src/tui/backends/embedded-backend.js +12 -12
- package/dist/src/tui/backends/gateway-realtime-backend.js +2 -2
- package/dist/src/tui/extension-host/load-extensions.js +1 -1
- package/dist/src/tui/tui-commands.js +5 -5
- 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 +3 -3
- package/dist/src/tui/tui.js +4 -4
- package/dist/src/tunnel/gateway-lifecycle.js +1 -1
- package/dist/src/user-context/access-policy.js +2 -2
- package/dist/src/user-model/bootstrap.js +1 -1
- package/dist/src/user-model/capture/executor.js +1 -1
- package/dist/src/user-model/index.js +2 -2
- package/dist/src/user-model/usage-policy.js +1 -1
- package/dist/src/voice/realtime/memory-context.js +5 -5
- package/dist/src/voice/realtime/omniRoute.js +1 -1
- 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/bailian-plan-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/bailian-plan-speech.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/service.js +7 -7
- package/package.json +1 -1
|
@@ -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,9 +1,9 @@
|
|
|
1
1
|
import { getProviderSetupProfile, init_profiles, isInteractiveOnlyProvider } from "../providers/setup/profiles.js";
|
|
2
2
|
import { getModelCatalogStore, init_model_catalog_store } from "../providers/model-catalog-store.js";
|
|
3
3
|
import { getAllModels, getAllProviders, getModelsByProvider, getProviderDisplayName, init_providers, isProviderConfigured, isProviderConfiguredSync, providerSupportsOAuth } from "../providers/index.js";
|
|
4
|
+
import { getImageGenerationProvider } from "../agent/image/generation/provider-registry.js";
|
|
4
5
|
import { listSttProvidersForApi } from "../voice/stt/list-providers.js";
|
|
5
6
|
import { listGlobalDefaults } from "./global-defaults-admin.js";
|
|
6
|
-
import { getImageGenerationProvider } from "../agent/image/generation/provider-registry.js";
|
|
7
7
|
import { getRecommendedModelsForProvider } from "../providers/presentation.js";
|
|
8
8
|
import { listTtsProvidersForApi } from "../voice/tts/list-providers.js";
|
|
9
9
|
import { readSetupVoiceState } from "../providers/setup/voice.js";
|
|
@@ -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";
|
|
@@ -8,11 +8,11 @@ import { TaskRepository, init_task_repository } from "../../tasks/task-repositor
|
|
|
8
8
|
import { init_connection_wait_repository, onConnectionWaitChanged } from "../../storage/sqlite/connection-wait-repository.js";
|
|
9
9
|
import { createClarificationWait, getClarification, getClarificationSnapshot, resolveClarification, supersedeActiveClarification } from "../../storage/sqlite/clarification-wait-repository.js";
|
|
10
10
|
import "../../storage/sqlite/index.js";
|
|
11
|
+
import { AgentRunCancelledError } from "../../agent/orchestration/run-termination.js";
|
|
11
12
|
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
12
|
-
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
13
13
|
import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
|
|
14
|
+
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
14
15
|
import { TaskApplicationService } from "../../tasks/task-application-service.js";
|
|
15
|
-
import { AgentRunCancelledError } from "../../agent/orchestration/run-termination.js";
|
|
16
16
|
import { reserveEmbeddedRunCancellation } from "../../agent/embedded/runs.js";
|
|
17
17
|
import { EphemeralClarificationWaiter } from "../ephemeral-clarification-waiter.js";
|
|
18
18
|
import { completePhoneAssistanceFromUser, preparePhoneContinuation } from "../../phone/assistance-service.js";
|
|
@@ -3,12 +3,12 @@ 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
5
|
import { configureTracing } from "../../observability/runtime.js";
|
|
6
|
+
import { evictAllEmbeddedSessionRunners } from "../../agent/embedded/session-runner.js";
|
|
7
|
+
import { reloadImageGenerationProviders } from "../../agent/image/generation/provider-registry.js";
|
|
6
8
|
import { loadConfig, saveConfig } from "../../config/loader.js";
|
|
7
9
|
import { ConfigHotReloader } from "../../config/reload.js";
|
|
8
10
|
import "../../config/index.js";
|
|
9
11
|
import { computeExtensionActivationPatch } from "../../extensions/bundled-extension-activation.js";
|
|
10
|
-
import { reloadImageGenerationProviders } from "../../agent/image/generation/provider-registry.js";
|
|
11
|
-
import { evictAllEmbeddedSessionRunners } from "../../agent/embedded/session-runner.js";
|
|
12
12
|
import { sanitizeTunnelConfig } from "../../tunnel/tunnel-config.js";
|
|
13
13
|
import { isDeepStrictEqual } from "node:util";
|
|
14
14
|
//#region src/gateway/service/config-coordinator.ts
|
|
@@ -3,12 +3,12 @@ import { createLogger } from "../../utils/logger/index.js";
|
|
|
3
3
|
import { init_logger } from "../../utils/logger.js";
|
|
4
4
|
import { init_agent_scope, resolveDefaultAgentId } from "../../agent/agent-scope.js";
|
|
5
5
|
import { init_paths, resolveExtensionsDir } from "../../config/paths.js";
|
|
6
|
-
import { createSkillConfigManager } from "../../agent/skills/config.js";
|
|
7
|
-
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "../../agent/skills/workspace-skills-dir.js";
|
|
8
6
|
import { getExtensionLockfileManager } from "../../extensions/lockfile.js";
|
|
9
7
|
import { AgentPluginStore } from "../../extensions/agent-plugins/store.js";
|
|
10
8
|
import { removeSkillsLockEntry } from "../../agent/skills/hub-lock.js";
|
|
11
9
|
import { deleteManagedSkill, installSkillFromZip, listManagedSkillDirs } from "../../agent/skills/managed-store.js";
|
|
10
|
+
import { createSkillConfigManager } from "../../agent/skills/config.js";
|
|
11
|
+
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "../../agent/skills/workspace-skills-dir.js";
|
|
12
12
|
import { normalizeSkillInstallTarget } from "../../agent/skills/install-target.js";
|
|
13
13
|
import { pluginSkillPreview, withPluginSkillCatalog } from "../../extensions/agent-plugins/skill-catalog.js";
|
|
14
14
|
import { isAgentPluginArchive, withAgentPluginArchive } from "../../extensions/agent-plugins/sources.js";
|
|
@@ -11,15 +11,15 @@ import { updateInteractionStateFromMessage } from "../../storage/sqlite/interact
|
|
|
11
11
|
import "../../storage/sqlite/index.js";
|
|
12
12
|
import { getConversationRouting } from "../../storage/sqlite/conversation-repository.js";
|
|
13
13
|
import { init_session_key } from "../../routing/session-key.js";
|
|
14
|
+
import { resolveAgentTurnTimeoutMs } from "../../agent/orchestration/run-agent-turn-with-timeout.js";
|
|
14
15
|
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
15
|
-
import { prependEnvelopeTimestamp } from "../../channels/envelope-timestamp.js";
|
|
16
|
-
import { recordPersonalPerformance } from "../../personal-agent/performance.js";
|
|
17
|
-
import "../chat-limits.js";
|
|
18
16
|
import { isPhoneAssistanceSuspended } from "../../phone/assistance.js";
|
|
19
|
-
import { resolveAgentTurnTimeoutMs } from "../../agent/orchestration/run-agent-turn-with-timeout.js";
|
|
20
|
-
import { formatAgentRunErrorForClient } from "../../agent/client-error-format.js";
|
|
21
17
|
import { resolveExecutionContext } from "../../tasks/execution-context.js";
|
|
22
18
|
import { TaskRunCoordinator } from "../../tasks/task-run-coordinator.js";
|
|
19
|
+
import { recordPersonalPerformance } from "../../personal-agent/performance.js";
|
|
20
|
+
import { formatAgentRunErrorForClient } from "../../agent/client-error-format.js";
|
|
21
|
+
import "../chat-limits.js";
|
|
22
|
+
import { prependEnvelopeTimestamp } from "../../channels/envelope-timestamp.js";
|
|
23
23
|
import { ChatStreamMapper } from "../chat-stream/mapper.js";
|
|
24
24
|
import { markdownNotificationPreview } from "../../notifications/plain-text.js";
|
|
25
25
|
import { resolveWebchatConversationId } from "../resolve-webchat-session-key.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
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 { resolveEffectiveAgentConfigForAgent, resolveEffectiveAgentConfigForSession } from "../../config/agent-profile.js";
|
|
4
|
+
import { init_providers, resolveModel } from "../../providers/index.js";
|
|
3
5
|
import { getPersonalAgentByConversation } from "../../personal-agent/repository.js";
|
|
4
6
|
import { resolveProjectAgentId } from "../../projects/project-agent.js";
|
|
5
|
-
import { resolveEffectiveAgentConfigForAgent, resolveEffectiveAgentConfigForSession } from "../../config/agent-profile.js";
|
|
6
7
|
import "../../projects/index.js";
|
|
7
|
-
import { init_providers, resolveModel } from "../../providers/index.js";
|
|
8
8
|
import { getModelThinking } from "../../providers/model-thinking.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";
|
|
@@ -10,9 +10,9 @@ import { consumeClarificationResume, getActiveClarification, supersedeActiveClar
|
|
|
10
10
|
import { replaceLatestSessionTurnAndQueueInput, validateLatestSessionTurnTarget } from "../../storage/sqlite/session-turn-replace-repository.js";
|
|
11
11
|
import "../../storage/sqlite/index.js";
|
|
12
12
|
import { emitSessionTranscriptUpdate } from "../../session/transcript-events.js";
|
|
13
|
+
import { consumePhoneAssistance, finishPhoneAssistance, phoneAssistance, queuePhoneAssistance, reconcilePhoneAssistance } from "../../phone/assistance.js";
|
|
13
14
|
import { summarizeSourceContext } from "../../agent/source-context/types.js";
|
|
14
15
|
import { TaskApplicationService } from "../../tasks/task-application-service.js";
|
|
15
|
-
import { consumePhoneAssistance, finishPhoneAssistance, phoneAssistance, queuePhoneAssistance, reconcilePhoneAssistance } from "../../phone/assistance.js";
|
|
16
16
|
import { injectSourceContextsIntoUserMessage } from "../../agent/source-context/injector.js";
|
|
17
17
|
import { deleteMediaUrisNoLongerReferenced } from "../../media/session-references.js";
|
|
18
18
|
import { fitSourceContextsToBudget } from "../../agent/source-context/budget.js";
|
|
@@ -21,58 +21,74 @@ import { init_session_repository, listSessionMetadata, patchSessionMetadata } fr
|
|
|
21
21
|
import { getSessionConfig } from "../storage/sqlite/config-repository.js";
|
|
22
22
|
import "../storage/sqlite/index.js";
|
|
23
23
|
import { init_agent_scope, listAgentEntries, resolveAgentWorkspaceDir, resolveDefaultAgentId } from "../agent/agent-scope.js";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
24
|
+
import { init_paths, resolveConfigPath, resolveExtensionsDir } from "../config/paths.js";
|
|
25
|
+
import { init_config, resolveKnowledgeReadPolicy } from "../user-context/config.js";
|
|
26
|
+
import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
|
|
26
27
|
import { init_agent_session_key, resolveAgentMainConversationId } from "../routing/agent-session-key.js";
|
|
27
28
|
import { init_session_key, resolveConversationId, sanitizeSegment } from "../routing/session-key.js";
|
|
29
|
+
import { listKnowledgeItems } from "../knowledge-memory/repository.js";
|
|
30
|
+
import "../knowledge-memory/index.js";
|
|
31
|
+
import { getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
|
|
32
|
+
import { resolveEffectiveAgentConfigForAgent, resolveEffectiveAgentProfileForSession } from "../config/agent-profile.js";
|
|
33
|
+
import { prewarmModelRegistry } from "../providers/model-registry.js";
|
|
34
|
+
import { init_providers, providers_exports } from "../providers/index.js";
|
|
35
|
+
import { AI_USAGE_RETENTION_MS, markStaleAiUsageEventsUnknown, pruneAiUsageEvents } from "../storage/sqlite/ai-usage-repository.js";
|
|
36
|
+
import { flushTracing } from "../observability/runtime.js";
|
|
37
|
+
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
28
38
|
import { getPersonalAgentByConversation } from "../personal-agent/repository.js";
|
|
39
|
+
import { onSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
40
|
+
import { TaskAllocationRepository } from "../tasks/task-allocation-repository.js";
|
|
29
41
|
import { stopPersonalResultPreparations } from "../personal-agent/result-reader.js";
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
42
|
+
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
43
|
+
import { getEmbeddedExecutionSession } from "../agent/embedded/execution-context.js";
|
|
44
|
+
import { buildNoteAgentContext } from "../notes/agent-context.js";
|
|
45
|
+
import { NotesStore } from "../notes/store.js";
|
|
33
46
|
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
47
|
+
import { NotesService } from "../notes/service.js";
|
|
48
|
+
import { LocalAppService } from "../local-apps/service.js";
|
|
34
49
|
import { ProjectService } from "../projects/project-service.js";
|
|
35
|
-
import { init_paths, resolveConfigPath, resolveExtensionsDir } from "../config/paths.js";
|
|
36
|
-
import { init_config, resolveKnowledgeReadPolicy } from "../user-context/config.js";
|
|
37
|
-
import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
|
|
38
|
-
import { getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
|
|
39
50
|
import { resolveProjectAgentId } from "../projects/project-agent.js";
|
|
40
|
-
import {
|
|
51
|
+
import { buildResultAgentContext } from "../agent/source-context/result-context.js";
|
|
52
|
+
import { buildTaskAgentContext } from "../agent/source-context/task-context.js";
|
|
53
|
+
import { buildUserAssertionAgentContext } from "../agent/source-context/user-assertion-context.js";
|
|
41
54
|
import "../projects/index.js";
|
|
42
|
-
import { NotesStore } from "../notes/store.js";
|
|
43
55
|
import { assertTaskHandoffAccess, getTaskHandoff } from "../tasks/task-handoff.js";
|
|
44
|
-
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
45
56
|
import { onTaskResultQueued } from "../tasks/task-result-delivery-repository.js";
|
|
46
57
|
import { TaskApplicationService } from "../tasks/task-application-service.js";
|
|
47
|
-
import { prewarmModelRegistry } from "../providers/model-registry.js";
|
|
48
|
-
import { init_providers, providers_exports } from "../providers/index.js";
|
|
49
|
-
import { AI_USAGE_RETENTION_MS, markStaleAiUsageEventsUnknown, pruneAiUsageEvents } from "../storage/sqlite/ai-usage-repository.js";
|
|
50
|
-
import { flushTracing } from "../observability/runtime.js";
|
|
51
|
-
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
52
58
|
import { setPairingBroadcastSink } from "../channels/pairing/pairing-events.js";
|
|
53
59
|
import { weixinPrivateIdentity } from "../agent/mcp/weixin-setup-scope.js";
|
|
54
60
|
import { AutomationService } from "../automations/service/automation-service.js";
|
|
61
|
+
import { TaskSignalService } from "../tasks/task-signal-service.js";
|
|
62
|
+
import { createProductDispatcher } from "../capabilities/runtime/product.js";
|
|
55
63
|
import "../automations/index.js";
|
|
56
|
-
import {
|
|
64
|
+
import { assertTaskExecutorReady } from "../tasks/task-execution-capabilities.js";
|
|
65
|
+
import { TaskRunDispatcher } from "../tasks/task-run-dispatcher.js";
|
|
66
|
+
import "../tasks/index.js";
|
|
67
|
+
import { runMemoryMaintenance } from "../memory-maintenance/service.js";
|
|
68
|
+
import "../memory-maintenance/index.js";
|
|
57
69
|
import { RealtimeExtensionBrowserProvider } from "../browser/providers/realtime-extension.js";
|
|
70
|
+
import { drainEmbeddedSessionRunnerShutdowns, evictAllEmbeddedSessionRunners } from "../agent/embedded/session-runner.js";
|
|
71
|
+
import { drainPersonalResultReads } from "../personal-agent/result-read-continuations.js";
|
|
58
72
|
import { areExtensionsGloballyDisabled } from "../extensions/discover-extensions.js";
|
|
73
|
+
import { SessionIndex } from "../session/manager.js";
|
|
74
|
+
import "../session/index.js";
|
|
75
|
+
import { ExtensionLoader } from "../extensions/loader.js";
|
|
59
76
|
import { buildExtensionMetadataSnapshot } from "../extensions/extension-metadata-snapshot.js";
|
|
77
|
+
import "../extensions/index.js";
|
|
60
78
|
import { buildChannelCatalogForConfig, buildChannelCatalogFromSnapshot } from "../channels/catalog/channel-catalog-service.js";
|
|
61
79
|
import { loadConfig, saveConfig } from "../config/loader.js";
|
|
62
|
-
import {
|
|
80
|
+
import { MessageBus, MessageBusShutdownError } from "../infra/bus/queue.js";
|
|
81
|
+
import "../infra/bus/index.js";
|
|
82
|
+
import { collectMediaUrisFromMessages, deleteMediaUris } from "../media/session-references.js";
|
|
83
|
+
import { AgentService } from "../agent/service.js";
|
|
84
|
+
import { bootstrapApplicationStateSync } from "../bootstrap/application-state.js";
|
|
63
85
|
import { registerClarificationChannelRuntime } from "./clarify-runtime.js";
|
|
64
86
|
import { ChannelManager } from "../channels/manager.js";
|
|
65
87
|
import { ChatPreviewService } from "../chat-previews/service.js";
|
|
66
88
|
import "../chat-previews/index.js";
|
|
67
89
|
import { configureGatewayHttpProxy } from "../infra/http-proxy-env.js";
|
|
68
|
-
import { MessageBus, MessageBusShutdownError } from "../infra/bus/queue.js";
|
|
69
|
-
import "../infra/bus/index.js";
|
|
70
90
|
import "../config/index.js";
|
|
71
|
-
import { ExtensionLoader } from "../extensions/loader.js";
|
|
72
|
-
import "../extensions/index.js";
|
|
73
91
|
import { ManagedComposioEventPoller } from "../connectors/composio-managed-events.js";
|
|
74
|
-
import { listKnowledgeItems } from "../knowledge-memory/repository.js";
|
|
75
|
-
import "../knowledge-memory/index.js";
|
|
76
92
|
import { startConnectedKnowledgeCoordinator } from "../knowledge/coordinator.js";
|
|
77
93
|
import "../knowledge/index.js";
|
|
78
94
|
import { PersonalReplyComposer } from "../personal-agent/reply-composer.js";
|
|
@@ -87,6 +103,10 @@ import { DiscussionSealer } from "../discussions/sealer.js";
|
|
|
87
103
|
import "../discussions/index.js";
|
|
88
104
|
import { EndpointToolRuntime } from "../endpoint-tools/runtime.js";
|
|
89
105
|
import "../endpoint-tools/index.js";
|
|
106
|
+
import { HomeCapabilityPreflightService } from "../home-intelligence/capability-preflight.js";
|
|
107
|
+
import { HomeAdviceGenerator } from "../home-intelligence/generator.js";
|
|
108
|
+
import { HomeIntelligenceHost } from "../home-intelligence/host.js";
|
|
109
|
+
import { HomeSnapshotBuilder } from "../home-intelligence/snapshot.js";
|
|
90
110
|
import { assertGatewayAuthConfigured, extractToken, resolveGatewayAuth, validateToken } from "./auth.js";
|
|
91
111
|
import { prepareAutomationAgentSession } from "./automation-agent-session.js";
|
|
92
112
|
import { deliverAutomationCompletion } from "./automation-completion-delivery.js";
|
|
@@ -98,7 +118,6 @@ import { BrowserSetupService } from "../browser/setup/service.js";
|
|
|
98
118
|
import { McpConversationSetup } from "../agent/mcp/conversation-setup.js";
|
|
99
119
|
import { withGatewayConfigWriteLock } from "./hono/lib/config-write-lock.js";
|
|
100
120
|
import { PhoneStreamGateway } from "../phone/stream-gateway.js";
|
|
101
|
-
import { drainPersonalResultReads } from "../personal-agent/result-read-continuations.js";
|
|
102
121
|
import { PersonalProactivityService } from "../personal-agent/proactivity/service.js";
|
|
103
122
|
import { reconcilePersonalProactivityAutomation } from "../personal-agent/proactivity/automation.js";
|
|
104
123
|
import { createBackgroundTask } from "../infra/background-task.js";
|
|
@@ -109,21 +128,6 @@ import { WorkDiscoveryService } from "../work-discovery/service.js";
|
|
|
109
128
|
import { buildVoiceMemoryContext } from "../voice/realtime/memory-context.js";
|
|
110
129
|
import { buildVoicePersonaContext } from "../voice/realtime/persona-context.js";
|
|
111
130
|
import { voiceMemoryBudget, voicePersonaBudget } from "../voice/realtime/conversation-context.js";
|
|
112
|
-
import { drainEmbeddedSessionRunnerShutdowns, evictAllEmbeddedSessionRunners } from "../agent/embedded/session-runner.js";
|
|
113
|
-
import { SessionIndex } from "../session/manager.js";
|
|
114
|
-
import "../session/index.js";
|
|
115
|
-
import { collectMediaUrisFromMessages, deleteMediaUris } from "../media/session-references.js";
|
|
116
|
-
import { buildNoteAgentContext } from "../notes/agent-context.js";
|
|
117
|
-
import { NotesService } from "../notes/service.js";
|
|
118
|
-
import { LocalAppService } from "../local-apps/service.js";
|
|
119
|
-
import { TaskSignalService } from "../tasks/task-signal-service.js";
|
|
120
|
-
import { createProductDispatcher } from "../capabilities/runtime/product.js";
|
|
121
|
-
import { assertTaskExecutorReady } from "../tasks/task-execution-capabilities.js";
|
|
122
|
-
import { TaskRunDispatcher } from "../tasks/task-run-dispatcher.js";
|
|
123
|
-
import "../tasks/index.js";
|
|
124
|
-
import { runMemoryMaintenance } from "../memory-maintenance/service.js";
|
|
125
|
-
import "../memory-maintenance/index.js";
|
|
126
|
-
import { AgentService } from "../agent/service.js";
|
|
127
131
|
import "../notes/index.js";
|
|
128
132
|
import { EphemeralSideChatManager } from "./side-chat/manager.js";
|
|
129
133
|
import { SideChatRunService } from "./side-chat/run-service.js";
|
|
@@ -166,10 +170,6 @@ import { TaskMainUpdateDecisionService } from "../tasks/task-main-update-decisio
|
|
|
166
170
|
import { selectTaskMainUpdateAttempt, submitAndConfirmTaskMainUpdate } from "../tasks/task-main-update-input.js";
|
|
167
171
|
import { checkAppContextAccess, prepareAppContext } from "./service/app-context-access.js";
|
|
168
172
|
import { applyAutomaticVoiceLanguage, inferProductLanguageFromEnvironment, initializeVoiceDefaults } from "../voice/language-profile.js";
|
|
169
|
-
import { HomeAdviceGenerator } from "../home-intelligence/generator.js";
|
|
170
|
-
import { HomeIntelligenceHost } from "../home-intelligence/host.js";
|
|
171
|
-
import { HomeSnapshotBuilder } from "../home-intelligence/snapshot.js";
|
|
172
|
-
import { HomeCapabilityPreflightService } from "../home-intelligence/capability-preflight.js";
|
|
173
173
|
import crypto from "node:crypto";
|
|
174
174
|
//#region src/gateway/service.ts
|
|
175
175
|
init_session_repository();
|
|
@@ -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 } from "../storage/sqlite/config-repository.js";
|
|
9
|
-
import { TaskOriginRepository } from "../tasks/task-origin-repository.js";
|
|
10
|
-
import { isSessionSourceBinding } from "../agent/source-context/types.js";
|
|
11
|
-
import { ProjectStore } from "../projects/project-store.js";
|
|
12
9
|
import { runExec } from "../infra/exec.js";
|
|
13
10
|
import { getExecutionEnvironmentForSession } from "../execution-environments/subject.js";
|
|
14
11
|
import { effectiveWorkspacePathForSession } from "../session/session-workspace.js";
|
|
15
|
-
import {
|
|
12
|
+
import { ProjectStore } from "../projects/project-store.js";
|
|
13
|
+
import { TaskOriginRepository } from "../tasks/task-origin-repository.js";
|
|
16
14
|
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
15
|
+
import { isSessionSourceBinding } from "../agent/source-context/types.js";
|
|
16
|
+
import { TaskCollaborationRepository } from "../tasks/task-collaboration-repository.js";
|
|
17
17
|
import { realpath, stat } from "node:fs/promises";
|
|
18
18
|
//#region src/gateway/session-context-summary.ts
|
|
19
19
|
init_session_repository();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { isPersonalConversation } from "../personal-agent/repository.js";
|
|
4
|
-
import { abortEmbeddedRun } from "../agent/embedded/runs.js";
|
|
5
4
|
import { cancelPhoneAssistance } from "../phone/assistance.js";
|
|
6
5
|
import { getPhoneRuntime } from "../phone/runtime.js";
|
|
6
|
+
import { abortEmbeddedRun } from "../agent/embedded/runs.js";
|
|
7
7
|
//#region src/gateway/session-reset-service.ts
|
|
8
8
|
init_logger();
|
|
9
9
|
const log = createLogger("SessionReset");
|
|
@@ -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,15 +1,15 @@
|
|
|
1
1
|
import "../agent-config/schema.js";
|
|
2
2
|
import { init_agent_config } from "../agent-config/index.js";
|
|
3
3
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
4
|
-
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
5
4
|
import { ConfigSchema, init_schema } from "../config/schema.js";
|
|
6
5
|
import { phoneModelProfile } from "../phone/model-policy.js";
|
|
7
6
|
import { init_model_policy, isComputerModel, isDedicatedComputerProfile } from "../computer/model-policy.js";
|
|
8
7
|
import { voiceSupportsMode } from "../../packages/realtime-protocol/src/voice-catalog.js";
|
|
9
8
|
import { init_voice } from "../../packages/realtime-protocol/src/voice.js";
|
|
10
9
|
import { getModelCatalogStore, init_model_catalog_store } from "../providers/model-catalog-store.js";
|
|
11
|
-
import { compareCatalogModels } from "../providers/model-catalog-ranking.js";
|
|
12
10
|
import "../phone/model-adapter.js";
|
|
11
|
+
import { compareCatalogModels } from "../providers/model-catalog-ranking.js";
|
|
12
|
+
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
13
13
|
import { prepareUpdateGlobalDefaults } from "./global-defaults-admin.js";
|
|
14
14
|
//#region src/gateway/xopc-cloud-capability-setup.ts
|
|
15
15
|
init_voice();
|
|
@@ -103,9 +103,9 @@ function completeXopcCloudModelRoutes(models, source) {
|
|
|
103
103
|
})).sort((left, right) => compareCatalogModels(left, right))[0];
|
|
104
104
|
if (computer) next.computerUse ??= route(computer);
|
|
105
105
|
const preferredPhone = [
|
|
106
|
+
"phone",
|
|
106
107
|
"phone-doubao",
|
|
107
|
-
"phone-gui-plus"
|
|
108
|
-
"phone"
|
|
108
|
+
"phone-gui-plus"
|
|
109
109
|
].find((id) => source.models.some((model) => model.id === id && model.availability === "available" && phoneModelProfile({
|
|
110
110
|
...model,
|
|
111
111
|
provider: source.providerId,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HomeEvidenceGroupSchema } from "../../packages/gateway-contract/src/home.js";
|
|
2
2
|
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
3
3
|
import { init_agent_scope, resolveDefaultAgentId } from "../agent/agent-scope.js";
|
|
4
|
+
import { resolveModelSelector } from "../config/agent-model-intents.js";
|
|
4
5
|
import { init_providers, resolveModel } from "../providers/index.js";
|
|
5
|
-
import { extractAssistantText, getAssistantMessageErrorReason } from "../providers/model-response.js";
|
|
6
6
|
import { completeWithResolvedCredentials, isLocalModelBaseUrl } from "../providers/model-call.js";
|
|
7
|
-
import {
|
|
7
|
+
import { extractAssistantText, getAssistantMessageErrorReason } from "../providers/model-response.js";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
//#region src/home-intelligence/generator.ts
|
|
10
10
|
init_src();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
-
import { HomeAdviceBudgetExceededError, isHomeProseLocalized } from "./generator.js";
|
|
4
3
|
import { homePatternKey } from "./strategy.js";
|
|
5
|
-
import { HomeAdvicePolicy } from "./policy.js";
|
|
6
4
|
import { HomeIntelligenceRepository } from "./repository.js";
|
|
7
5
|
import { HomeOpportunityApplicationService } from "./application-service.js";
|
|
6
|
+
import { HomeAdvicePolicy } from "./policy.js";
|
|
7
|
+
import { HomeAdviceBudgetExceededError, isHomeProseLocalized } from "./generator.js";
|
|
8
8
|
import { buildHomeOpportunityNotification } from "./notification.js";
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
10
10
|
//#region src/home-intelligence/host.ts
|
|
@@ -11,8 +11,8 @@ import { scanLocal } from "./scanner.js";
|
|
|
11
11
|
import { dirname, join } from "node:path";
|
|
12
12
|
import { existsSync, lstatSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
13
13
|
import { randomUUID } from "node:crypto";
|
|
14
|
-
import yaml from "js-yaml";
|
|
15
14
|
import lockfile from "proper-lockfile";
|
|
15
|
+
import yaml from "js-yaml";
|
|
16
16
|
//#region src/imports/importService.ts
|
|
17
17
|
init_write_file_atomic();
|
|
18
18
|
init_logger();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ProjectService } from "../projects/project-service.js";
|
|
2
1
|
import { init_paths, resolveSkillsDir } from "../config/paths.js";
|
|
3
|
-
import { resolveWorkspaceSkillsDir } from "../agent/skills/workspace-skills-dir.js";
|
|
4
2
|
import { listKnowledgeItems } from "../knowledge-memory/repository.js";
|
|
5
3
|
import "../knowledge-memory/index.js";
|
|
4
|
+
import { ProjectService } from "../projects/project-service.js";
|
|
5
|
+
import { resolveWorkspaceSkillsDir } from "../agent/skills/workspace-skills-dir.js";
|
|
6
6
|
import { ImportError } from "./types.js";
|
|
7
7
|
import { digest } from "./files.js";
|
|
8
8
|
import { canonicalTarget } from "./planner.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveStateDir } from "../config/paths-state.js";
|
|
2
2
|
import { init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
3
|
-
import { ProjectService } from "../projects/project-service.js";
|
|
4
3
|
import { init_paths } from "../config/paths.js";
|
|
4
|
+
import { ProjectService } from "../projects/project-service.js";
|
|
5
5
|
import { ImportError } from "./types.js";
|
|
6
6
|
import { digest, fileHash, readRegularFile, readTree } from "./files.js";
|
|
7
7
|
import { importContextDocument } from "./contextImport.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveStateDir } from "../config/paths-state.js";
|
|
2
|
-
import { ProjectService } from "../projects/project-service.js";
|
|
3
2
|
import { init_paths, resolveBundledSkillsDir, resolveSkillsDir } from "../config/paths.js";
|
|
3
|
+
import { ProjectService } from "../projects/project-service.js";
|
|
4
4
|
import { resolveWorkspaceSkillsDir } from "../agent/skills/workspace-skills-dir.js";
|
|
5
5
|
import { loadSkills } from "../agent/skills/index.js";
|
|
6
6
|
import { ProjectTrustStore } from "../project-trust/trust-store.js";
|
|
@@ -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
|
}
|
|
@@ -4,8 +4,8 @@ import { readPackageVersion } from "./package-json.js";
|
|
|
4
4
|
import { createDefaultCommandRunner } from "./run-command.js";
|
|
5
5
|
import { verifyInstalledGatewayRuntime } from "./package-runtime-check.js";
|
|
6
6
|
import path from "node:path";
|
|
7
|
-
import
|
|
8
|
-
import fs from "node:fs/promises";
|
|
7
|
+
import fs from "node:fs";
|
|
8
|
+
import fs$1 from "node:fs/promises";
|
|
9
9
|
//#region src/infra/update-global.ts
|
|
10
10
|
const XOPC_PACKAGE_NAME = "@xopcai/xopc";
|
|
11
11
|
const GLOBAL_RENAME_PREFIX = ".";
|
|
@@ -19,7 +19,7 @@ const NPM_GLOBAL_INSTALL_OMIT_OPTIONAL_FLAGS = ["--omit=optional", ...NPM_GLOBAL
|
|
|
19
19
|
const GLOBAL_DETECT_TIMEOUT_MS = 15e3;
|
|
20
20
|
async function pathExists(targetPath) {
|
|
21
21
|
try {
|
|
22
|
-
await fs.access(targetPath);
|
|
22
|
+
await fs$1.access(targetPath);
|
|
23
23
|
return true;
|
|
24
24
|
} catch {
|
|
25
25
|
return false;
|
|
@@ -27,7 +27,7 @@ async function pathExists(targetPath) {
|
|
|
27
27
|
}
|
|
28
28
|
async function tryRealpath(targetPath) {
|
|
29
29
|
try {
|
|
30
|
-
return await fs.realpath(targetPath);
|
|
30
|
+
return await fs$1.realpath(targetPath);
|
|
31
31
|
} catch {
|
|
32
32
|
return path.resolve(targetPath);
|
|
33
33
|
}
|
|
@@ -50,14 +50,14 @@ function resolvePreferredNpmCommand(pkgRoot) {
|
|
|
50
50
|
const prefix = inferNpmPrefixFromPackageRoot(pkgRoot);
|
|
51
51
|
if (!prefix) return null;
|
|
52
52
|
const candidate = process.platform === "win32" ? path.join(prefix, "npm.cmd") : path.join(prefix, "bin", "npm");
|
|
53
|
-
return
|
|
53
|
+
return fs.existsSync(candidate) ? candidate : null;
|
|
54
54
|
}
|
|
55
55
|
function resolveNpmFromExecPath() {
|
|
56
56
|
const execPath = process.execPath?.trim();
|
|
57
57
|
if (!execPath) return null;
|
|
58
58
|
const binDir = path.dirname(execPath);
|
|
59
59
|
const candidate = process.platform === "win32" ? path.join(binDir, "npm.cmd") : path.join(binDir, "npm");
|
|
60
|
-
return
|
|
60
|
+
return fs.existsSync(candidate) ? candidate : null;
|
|
61
61
|
}
|
|
62
62
|
function resolvePreferredGlobalManagerCommand(manager, pkgRoot) {
|
|
63
63
|
if (manager !== "npm") return manager;
|
|
@@ -206,7 +206,7 @@ async function cleanupGlobalRenameDirs(params) {
|
|
|
206
206
|
const prefix = `${GLOBAL_RENAME_PREFIX}${name}-`;
|
|
207
207
|
let entries = [];
|
|
208
208
|
try {
|
|
209
|
-
entries = await fs.readdir(root);
|
|
209
|
+
entries = await fs$1.readdir(root);
|
|
210
210
|
} catch {
|
|
211
211
|
return { removed };
|
|
212
212
|
}
|
|
@@ -214,8 +214,8 @@ async function cleanupGlobalRenameDirs(params) {
|
|
|
214
214
|
if (!entry.startsWith(prefix)) continue;
|
|
215
215
|
const target = path.join(root, entry);
|
|
216
216
|
try {
|
|
217
|
-
if (!(await fs.lstat(target)).isDirectory()) continue;
|
|
218
|
-
await fs.rm(target, {
|
|
217
|
+
if (!(await fs$1.lstat(target)).isDirectory()) continue;
|
|
218
|
+
await fs$1.rm(target, {
|
|
219
219
|
recursive: true,
|
|
220
220
|
force: true
|
|
221
221
|
});
|
|
@@ -7,9 +7,9 @@ import { claimKnowledgeSourceItems, completeKnowledgeSourceItemSynthesis, pruneB
|
|
|
7
7
|
import "../storage/sqlite/index.js";
|
|
8
8
|
import { clearMemoryAudit } from "../user-context/memory-suppression.js";
|
|
9
9
|
import { getActiveUnderstandingConsent } from "../user-context/sources/consent-repository.js";
|
|
10
|
-
import { consentFilteredText } from "../user-context/sources/consent-fields.js";
|
|
11
10
|
import { listKnowledgeItems, transitionKnowledgeStatus, writeKnowledgeItem } from "../knowledge-memory/repository.js";
|
|
12
11
|
import "../knowledge-memory/index.js";
|
|
12
|
+
import { consentFilteredText } from "../user-context/sources/consent-fields.js";
|
|
13
13
|
import { randomUUID } from "node:crypto";
|
|
14
14
|
//#region src/knowledge/connected-knowledge-pipeline.ts
|
|
15
15
|
init_transaction();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { KnowledgeIngestionService, SqliteKnowledgeSourceStateStore } from "./ingestion-service.js";
|
|
2
1
|
import { ConnectedKnowledgePipeline } from "./connected-knowledge-pipeline.js";
|
|
2
|
+
import { KnowledgeIngestionService, SqliteKnowledgeSourceStateStore } from "./ingestion-service.js";
|
|
3
3
|
import { startConnectedKnowledgeCoordinator } from "./coordinator.js";
|
|
4
4
|
import { LocalFolderKnowledgeSourceAdapter } from "./local-folder-adapter.js";
|
|
5
5
|
export { ConnectedKnowledgePipeline, KnowledgeIngestionService, LocalFolderKnowledgeSourceAdapter, SqliteKnowledgeSourceStateStore, startConnectedKnowledgeCoordinator };
|