@xopcai/xopc 0.0.418 → 0.0.419
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-fKpEKELX.js → index-DS60ZSdQ.js} +1 -1
- package/dist/gateway/static/root/index.html +1 -1
- package/dist/package.js +1 -1
- package/dist/src/agent/agent-manager.js +17 -17
- 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/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/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 +5 -5
- package/dist/src/agent/embedded/run-turn.js +15 -15
- package/dist/src/agent/embedded/session-runner.js +4 -4
- package/dist/src/agent/embedded/session-tool-result-guard.js +2 -2
- package/dist/src/agent/embedded/tool-result-truncation.js +1 -1
- package/dist/src/agent/embedded/xopc-tools-bridge.js +1 -1
- package/dist/src/agent/external-tools/cliProvider.js +3 -3
- package/dist/src/agent/external-tools/composio-provider.js +2 -2
- package/dist/src/agent/external-tools/endpoint-provider.js +4 -4
- 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/image/load-image-media.js +1 -1
- package/dist/src/agent/inbound/attachment-pipeline.js +3 -3
- package/dist/src/agent/inbound/inbound-loop.js +2 -2
- package/dist/src/agent/independent-execution.js +1 -1
- package/dist/src/agent/index.js +3 -3
- package/dist/src/agent/mcp/connection-drafts.js +1 -1
- package/dist/src/agent/memory/context-budget.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/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 +4 -4
- 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 +4 -4
- package/dist/src/agent/service/process-direct-streaming.js +7 -7
- 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/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-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 +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/exec-command.js +1 -1
- package/dist/src/agent/tools/executor.js +1 -1
- package/dist/src/agent/tools/factory.js +18 -18
- 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 +5 -5
- 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 +6 -6
- 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 +1 -1
- package/dist/src/agent/tools/session-search-tool.js +1 -1
- package/dist/src/agent/tools/skills-tools.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 +2 -2
- package/dist/src/agent/tools/xopc-use-tool.js +5 -5
- package/dist/src/agent/transcript/index.js +2 -2
- package/dist/src/agent/transcript/transcript-hygiene.js +2 -2
- 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/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 +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/store-connector.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/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 +8 -8
- 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 +2 -2
- 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/mcp.js +2 -2
- package/dist/src/cli/commands/models.js +2 -2
- package/dist/src/cli/commands/onboard/channels/registry.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 +6 -6
- 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/flows.js +1 -1
- package/dist/src/computer/model-adapter.js +1 -1
- package/dist/src/computer/runtime.js +3 -3
- package/dist/src/config/index.js +4 -4
- 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 +3 -3
- 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/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/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 +2 -2
- package/dist/src/extensions/agent-plugins/source-http-fetch.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 +1 -1
- package/dist/src/gateway/device-routes.js +2 -2
- package/dist/src/gateway/file-path-classifier.js +1 -1
- package/dist/src/gateway/global-defaults-admin.js +1 -1
- package/dist/src/gateway/hono/app.js +3 -3
- package/dist/src/gateway/hono/lib/config-payload.js +3 -3
- 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/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/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 +1 -1
- package/dist/src/gateway/hono/routes/phone-dependencies.js +1 -1
- package/dist/src/gateway/hono/routes/phone-setup.js +1 -1
- package/dist/src/gateway/hono/routes/phone.js +2 -2
- package/dist/src/gateway/hono/routes/projects.js +4 -4
- 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 +2 -2
- 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 +1 -1
- 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/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 +3 -3
- 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 +4 -4
- package/dist/src/gateway/service/session-command-service.js +2 -2
- package/dist/src/gateway/service.js +44 -44
- package/dist/src/gateway/session-context-summary.js +4 -4
- 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 +2 -2
- 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 +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/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 +1 -1
- package/dist/src/personal-agent/reply-composer.js +10 -10
- package/dist/src/personal-agent/request-delivery.js +2 -2
- package/dist/src/personal-agent/request-service.js +8 -8
- package/dist/src/personal-agent/result-reader.js +1 -1
- package/dist/src/personal-agent/service.js +1 -1
- package/dist/src/personal-agent/task-cancel.js +1 -1
- package/dist/src/phone/repository.js +1 -1
- package/dist/src/phone/runtime.js +4 -4
- package/dist/src/projects/index.js +1 -1
- package/dist/src/projects/project-agent-suggestion.js +1 -1
- package/dist/src/projects/project-service.js +1 -1
- 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/routing/agent-session-key.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-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/home-query-service.js +1 -1
- package/dist/src/tasks/index.js +4 -4
- package/dist/src/tasks/task-allocation-service.js +6 -6
- package/dist/src/tasks/task-application-service.js +6 -6
- 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 +1 -1
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tasks/task-handoff.js +5 -5
- 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 +4 -4
- package/dist/src/tasks/task-run-dispatcher.js +1 -1
- package/dist/src/tui/backends/embedded-backend.js +11 -11
- package/dist/src/tui/backends/gateway-realtime-backend.js +2 -2
- package/dist/src/tui/extension-host/load-extensions.js +2 -2
- 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 +4 -4
- 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/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
|
@@ -4,9 +4,9 @@ import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
|
4
4
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
5
5
|
import { loadTranscriptRowsForSession } from "../storage/sqlite/transcript-repository.js";
|
|
6
6
|
import "../storage/sqlite/index.js";
|
|
7
|
-
import { canResumeAfterModelFailure } from "../agent/orchestration/turn-recovery.js";
|
|
8
7
|
import { resolveTaskLocale } from "./task-language.js";
|
|
9
8
|
import { TaskApplicationService } from "./task-application-service.js";
|
|
9
|
+
import { canResumeAfterModelFailure } from "../agent/orchestration/turn-recovery.js";
|
|
10
10
|
import { runInIndependentAgentExecution } from "../agent/independent-execution.js";
|
|
11
11
|
//#region src/tasks/task-run-dispatcher.ts
|
|
12
12
|
init_logger();
|
|
@@ -11,27 +11,27 @@ import "../../storage/sqlite/index.js";
|
|
|
11
11
|
import { normalizeAgentId } from "../../agent-catalog/id.js";
|
|
12
12
|
import { init_agent_scope, listAgentEntries } from "../../agent/agent-scope.js";
|
|
13
13
|
import { AgentCatalogService } from "../../agent-catalog/service.js";
|
|
14
|
+
import { ProjectService } from "../../projects/project-service.js";
|
|
14
15
|
import { init_paths } from "../../config/paths.js";
|
|
15
16
|
import { getAgentDefaultModelRef, init_schema } from "../../config/schema.js";
|
|
17
|
+
import { inferSuggestedProjectDefaultAgentId } from "../../projects/project-agent-suggestion.js";
|
|
16
18
|
import { resolveEffectiveAgentProfile } from "../../config/agent-profile.js";
|
|
17
|
-
import { getWorkspacePath } from "../../config/workspace-path-helpers.js";
|
|
18
19
|
import { effectiveWorkspacePathForSession } from "../../session/session-workspace.js";
|
|
19
|
-
import { ProjectService } from "../../projects/project-service.js";
|
|
20
|
-
import { inferSuggestedProjectDefaultAgentId } from "../../projects/project-agent-suggestion.js";
|
|
21
20
|
import "../../projects/index.js";
|
|
22
|
-
import { buildSessionTimeline } from "../../session/transcript-outline.js";
|
|
23
|
-
import { transcriptRowsToClientHistory } from "../../session/client-history.js";
|
|
24
|
-
import { createCreateShareTool, isShareToolAvailable } from "../../agent/tools/create-share-tool.js";
|
|
25
|
-
import { evictEmbeddedSessionRunner } from "../../agent/embedded/session-runner.js";
|
|
26
|
-
import { SessionIndex } from "../../session/manager.js";
|
|
27
|
-
import "../../session/index.js";
|
|
28
|
-
import { parseModelRef } from "../../agent/models/selection.js";
|
|
29
21
|
import { loadConfig } from "../../config/loader.js";
|
|
22
|
+
import { prependEnvelopeTimestamp } from "../../channels/envelope-timestamp.js";
|
|
30
23
|
import { buildReviewContext, resolveGitRoot } from "../../review/review-git.js";
|
|
31
24
|
import { MessageBus, MessageBusShutdownError } from "../../infra/bus/queue.js";
|
|
32
25
|
import "../../infra/bus/index.js";
|
|
33
|
-
import {
|
|
26
|
+
import { getWorkspacePath } from "../../config/workspace-path-helpers.js";
|
|
34
27
|
import "../../config/index.js";
|
|
28
|
+
import { evictEmbeddedSessionRunner } from "../../agent/embedded/session-runner.js";
|
|
29
|
+
import { buildSessionTimeline } from "../../session/transcript-outline.js";
|
|
30
|
+
import { transcriptRowsToClientHistory } from "../../session/client-history.js";
|
|
31
|
+
import { SessionIndex } from "../../session/manager.js";
|
|
32
|
+
import "../../session/index.js";
|
|
33
|
+
import { parseModelRef } from "../../agent/models/selection.js";
|
|
34
|
+
import { createCreateShareTool, isShareToolAvailable } from "../../agent/tools/create-share-tool.js";
|
|
35
35
|
import { ChatStreamMapper } from "../../gateway/chat-stream/mapper.js";
|
|
36
36
|
import { getXopcCloudCatalogCoordinator } from "../../providers/xopc-cloud-catalog-coordinator.js";
|
|
37
37
|
import { acceptSessionCommand } from "../../storage/sqlite/session-creation-repository.js";
|
|
@@ -5,10 +5,10 @@ import { sessionInputCommandSchema } from "../../../packages/gateway-contract/sr
|
|
|
5
5
|
import { isSessionCommandRejected } from "../../../packages/gateway-contract/src/session-command-rejection.js";
|
|
6
6
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
7
7
|
import { init_paths } from "../../config/paths.js";
|
|
8
|
-
import { transcriptRowsToClientHistory } from "../../session/client-history.js";
|
|
9
|
-
import { parseModelRef } from "../../agent/models/selection.js";
|
|
10
8
|
import { RealtimeClient } from "../../../packages/realtime-client/src/index.js";
|
|
11
9
|
import { gatewayCredentialAuthorization } from "../../gateway/credential.js";
|
|
10
|
+
import { transcriptRowsToClientHistory } from "../../session/client-history.js";
|
|
11
|
+
import { parseModelRef } from "../../agent/models/selection.js";
|
|
12
12
|
import { buildTuiTranscriptTree, transcriptTreeEntryIdToRowNumber } from "../tui-transcript-tree.js";
|
|
13
13
|
import { computeTuiSessionStats } from "../tui-session-stats.js";
|
|
14
14
|
import { createRequire } from "node:module";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { init_paths, resolveExtensionsDir } from "../../config/paths.js";
|
|
4
|
-
import { getWorkspacePath } from "../../config/workspace-path-helpers.js";
|
|
5
|
-
import { ExtensionLoader } from "../../extensions/loader.js";
|
|
6
4
|
import { loadConfig } from "../../config/loader.js";
|
|
5
|
+
import { getWorkspacePath } from "../../config/workspace-path-helpers.js";
|
|
7
6
|
import "../../config/index.js";
|
|
7
|
+
import { ExtensionLoader } from "../../extensions/loader.js";
|
|
8
8
|
//#region src/tui/extension-host/load-extensions.ts
|
|
9
9
|
init_paths();
|
|
10
10
|
init_logger();
|
|
@@ -2,18 +2,18 @@ import { closeXopcDatabase, isXopcDatabaseOpen, openXopcDatabase } from "../stor
|
|
|
2
2
|
import { TaskRepository } from "../tasks/task-repository.js";
|
|
3
3
|
import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
|
|
4
4
|
import "../storage/sqlite/index.js";
|
|
5
|
-
import { resolveConfigPath } from "../config/paths.js";
|
|
6
5
|
import { init_agent_session_key, isValidAgentId, normalizeAgentId } from "../routing/agent-session-key.js";
|
|
7
|
-
import { init_providers, providerSupportsOAuth } from "../providers/index.js";
|
|
8
6
|
import { ProjectService } from "../projects/project-service.js";
|
|
7
|
+
import { resolveConfigPath } from "../config/paths.js";
|
|
9
8
|
import { isValidProjectAgentId, normalizeProjectAgentId } from "../projects/project-agent.js";
|
|
10
9
|
import { inferSuggestedProjectDefaultAgentId } from "../projects/project-agent-suggestion.js";
|
|
11
10
|
import "../projects/index.js";
|
|
12
|
-
import "../
|
|
13
|
-
import { normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel } from "../agent/transcript/thinking-types.js";
|
|
14
|
-
import { provenanceTracker } from "../extensions/security.js";
|
|
11
|
+
import { init_providers, providerSupportsOAuth } from "../providers/index.js";
|
|
15
12
|
import { loadConfig } from "../config/loader.js";
|
|
13
|
+
import { normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel } from "../agent/transcript/thinking-types.js";
|
|
16
14
|
import "../config/index.js";
|
|
15
|
+
import { provenanceTracker } from "../extensions/security.js";
|
|
16
|
+
import "../tasks/index.js";
|
|
17
17
|
import { theme } from "./theme.js";
|
|
18
18
|
import { getTuiKeybindingsPath } from "./tui-keybindings-file.js";
|
|
19
19
|
import { formatKeyIds, formatXopcTuiHotkeys } from "./format-tui-hotkeys.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getProjectTrustOptions, hasTrustRequiringProjectResources } from "../project-trust/trust-store.js";
|
|
2
1
|
import { listThinkingLevels, normalizeThinkLevel } from "../agent/transcript/thinking-types.js";
|
|
2
|
+
import { getProjectTrustOptions, hasTrustRequiringProjectResources } from "../project-trust/trust-store.js";
|
|
3
3
|
import { searchableSelectListTheme, theme } from "./theme.js";
|
|
4
4
|
import { formatKeyIds } from "./format-tui-hotkeys.js";
|
|
5
5
|
import { formatSessionPickerDescription } from "./tui-session-format.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { resolveStateDir } from "../config/paths-state.js";
|
|
2
2
|
import { init_paths, resolveBundledSkillsDir } from "../config/paths.js";
|
|
3
|
-
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
4
3
|
import { loadSkills } from "../agent/skills/index.js";
|
|
5
4
|
import { loadConfig } from "../config/loader.js";
|
|
5
|
+
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
6
6
|
import "../config/index.js";
|
|
7
7
|
//#region src/tui/tui-skills-autocomplete.ts
|
|
8
8
|
init_paths();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { resolveStateDir } from "../config/paths-state.js";
|
|
2
2
|
import { init_paths, resolveAgentProfileDir, resolveBundledSkillsDir } from "../config/paths.js";
|
|
3
|
-
import { resolveEffectiveAgentProfile, resolveEffectiveAgentProfileForSession } from "../config/agent-profile.js";
|
|
4
|
-
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
5
|
-
import { resolveBootstrapFilesSync } from "../agent/bootstrap/bootstrap-files.js";
|
|
6
|
-
import { listConnectorInstances } from "../connectors/instances.js";
|
|
7
3
|
import { createSkillConfigManager, isSkillEnabled } from "../agent/skills/config.js";
|
|
8
4
|
import { loadSkills } from "../agent/skills/index.js";
|
|
5
|
+
import { resolveEffectiveAgentProfile, resolveEffectiveAgentProfileForSession } from "../config/agent-profile.js";
|
|
6
|
+
import { listConnectorInstances } from "../connectors/instances.js";
|
|
7
|
+
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
9
8
|
import "../config/index.js";
|
|
9
|
+
import { resolveBootstrapFilesSync } from "../agent/bootstrap/bootstrap-files.js";
|
|
10
10
|
import { basename } from "node:path";
|
|
11
11
|
//#region src/tui/tui-startup-resources.ts
|
|
12
12
|
init_paths();
|
package/dist/src/tui/tui.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { version } from "../../package.js";
|
|
2
2
|
import { resolveStateDir, resolveXopcDatabasePath } from "../config/paths-state.js";
|
|
3
|
-
import { init_paths } from "../config/paths.js";
|
|
4
3
|
import { init_agent_session_key, normalizeAgentId } from "../routing/agent-session-key.js";
|
|
4
|
+
import { init_paths } from "../config/paths.js";
|
|
5
5
|
import { resolveEffectiveAgentProfile } from "../config/agent-profile.js";
|
|
6
6
|
import { getAllModels, getAllProviders, getApiKey, init_providers, isProviderConfiguredSync } from "../providers/index.js";
|
|
7
|
-
import { ProjectTrustStore, hasTrustRequiringProjectResources } from "../project-trust/trust-store.js";
|
|
8
|
-
import { MAX_WEBCHAT_ATTACHMENT_FILE_BYTES } from "../gateway/chat-limits.js";
|
|
9
|
-
import { loadConfig } from "../config/loader.js";
|
|
10
7
|
import { ensureStarterAgentsInitialized } from "../agent/starter-agents.js";
|
|
8
|
+
import { loadConfig } from "../config/loader.js";
|
|
11
9
|
import "../config/index.js";
|
|
10
|
+
import { MAX_WEBCHAT_ATTACHMENT_FILE_BYTES } from "../gateway/chat-limits.js";
|
|
11
|
+
import { ProjectTrustStore, hasTrustRequiringProjectResources } from "../project-trust/trust-store.js";
|
|
12
12
|
import { resolveTuiConversationId, resolveTuiStartupConversationId } from "../routing/resolve-tui-session-key.js";
|
|
13
13
|
import { applyThemeById, getBashExcludeBorderColor, getBashModeBorderColor, getCustomThemesDir, getThemeExports, getThinkingBorderColor, initTuiTheme, listAvailableThemeIds, resolveThemePalette } from "./theme-manager.js";
|
|
14
14
|
import { editorTheme, theme } from "./theme.js";
|
|
@@ -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 { resolveGatewayEffectiveHost } from "../config/gateway-bind.js";
|
|
4
|
+
import { resolveGatewayAuth } from "../gateway/auth.js";
|
|
4
5
|
import { resolveOptionalTunnelRegistrationSecret, resolveTunnelBrokerUrl } from "./env.js";
|
|
5
6
|
import { getTunnelService } from "./tunnel-service.js";
|
|
6
|
-
import { resolveGatewayAuth } from "../gateway/auth.js";
|
|
7
7
|
import { requireTunnelGatewayToken } from "./auth-policy.js";
|
|
8
8
|
import { hasValidTunnelConsent } from "./consent.js";
|
|
9
9
|
import { resolveFrpSubdomainHost } from "./frp-subdomain-host.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getSessionConfig } from "../storage/sqlite/config-repository.js";
|
|
2
|
-
import { init_config, resolveKnowledgeReadPolicy } from "./config.js";
|
|
3
|
-
import { isOwnerIdentity } from "./identity-bindings.js";
|
|
4
2
|
import { getConversationRouting } from "../storage/sqlite/conversation-repository.js";
|
|
5
3
|
import { init_session_key } from "../routing/session-key.js";
|
|
4
|
+
import { isOwnerIdentity } from "./identity-bindings.js";
|
|
5
|
+
import { init_config, resolveKnowledgeReadPolicy } from "./config.js";
|
|
6
6
|
//#region src/user-context/access-policy.ts
|
|
7
7
|
init_config();
|
|
8
8
|
init_session_key();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createCollaborationRule, listCollaborationRules } from "../storage/sqlite/collaboration-rule-repository.js";
|
|
2
|
-
import { createPriorityWindow, createUserGoal, listPriorityWindows, listUserGoals } from "./goals.js";
|
|
3
2
|
import { reconcileAssertion } from "./repository.js";
|
|
4
3
|
import { applyUserProfilePatch } from "./profile.js";
|
|
4
|
+
import { createPriorityWindow, createUserGoal, listPriorityWindows, listUserGoals } from "./goals.js";
|
|
5
5
|
//#region src/user-model/bootstrap.ts
|
|
6
6
|
function statements(values, limit) {
|
|
7
7
|
return [...new Set((values ?? []).map((value) => value.trim().slice(0, 500)).filter(Boolean))].slice(0, limit);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createCollaborationRule, listCollaborationRules } from "../../storage/sqlite/collaboration-rule-repository.js";
|
|
2
2
|
import { createContextEvidence } from "../../storage/sqlite/context-evidence-repository.js";
|
|
3
|
-
import { createUserGoal, listUserGoals } from "../goals.js";
|
|
4
3
|
import { deleteUserAssertion, getAssertionSlot, getUserAssertion, linkAssertionEvidence, mergeAssertionObservation, reconcileAssertion, setAssertionStatus } from "../repository.js";
|
|
4
|
+
import { createUserGoal, listUserGoals } from "../goals.js";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
//#region src/user-model/capture/executor.ts
|
|
7
7
|
function emptyUserModelCaptureResult() {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PERSONAL_DOMAINS, USER_MODEL_PRINCIPAL_ID, defaultAssertionDomain, defaultAssertionLayer, validateCandidate, validateScope } from "./domain.js";
|
|
2
|
-
import { createPriorityWindow, createUserGoal, listPriorityWindows, listUserGoals, setUserGoalStatus, updatePriorityWindow, updateUserGoal } from "./goals.js";
|
|
3
2
|
import { defaultReviewAt, isAssertionValidAt, requiresBoundedValidity, resolveCurrentAssertion } from "./temporal.js";
|
|
4
3
|
import { deleteUserAssertion, getActiveAssertionByPredicate, getActiveAssertionForSlot, getAssertionSlot, getUserAssertion, getUserTimezone, linkAssertionEvidence, listSlotAssertions, listUserAssertionSources, listUserAssertions, mergeAssertionObservation, reconcileAssertion, setAssertionStatus, setUserAssertionScope } from "./repository.js";
|
|
4
|
+
import { applyUserProfilePatch, getUserProfileSnapshot } from "./profile.js";
|
|
5
5
|
import { listActionRuleSuggestions } from "./action-rule-suggestions.js";
|
|
6
6
|
import { calculateExecutionValue } from "./importance.js";
|
|
7
|
+
import { createPriorityWindow, createUserGoal, listPriorityWindows, listUserGoals, setUserGoalStatus, updatePriorityWindow, updateUserGoal } from "./goals.js";
|
|
7
8
|
import { deleteUserModelObservationsForGrant, linkUserAssertions, listUserAssertionEdges, listUserModelObservations, recordUserModelObservation } from "./observation-repository.js";
|
|
8
|
-
import { applyUserProfilePatch, getUserProfileSnapshot } from "./profile.js";
|
|
9
9
|
import { bootstrapUserModel } from "./bootstrap.js";
|
|
10
10
|
import { canUseAssertion, isWorkingAssumption } from "./usage-policy.js";
|
|
11
11
|
export { PERSONAL_DOMAINS, USER_MODEL_PRINCIPAL_ID, applyUserProfilePatch, bootstrapUserModel, calculateExecutionValue, canUseAssertion, createPriorityWindow, createUserGoal, defaultAssertionDomain, defaultAssertionLayer, defaultReviewAt, deleteUserAssertion, deleteUserModelObservationsForGrant, getActiveAssertionByPredicate, getActiveAssertionForSlot, getAssertionSlot, getUserAssertion, getUserProfileSnapshot, getUserTimezone, isAssertionValidAt, isWorkingAssumption, linkAssertionEvidence, linkUserAssertions, listActionRuleSuggestions, listPriorityWindows, listSlotAssertions, listUserAssertionEdges, listUserAssertionSources, listUserAssertions, listUserGoals, listUserModelObservations, mergeAssertionObservation, reconcileAssertion, recordUserModelObservation, requiresBoundedValidity, resolveCurrentAssertion, setAssertionStatus, setUserAssertionScope, setUserGoalStatus, updatePriorityWindow, updateUserGoal, validateCandidate, validateScope };
|
|
@@ -3,8 +3,8 @@ import { getSqliteDatabase, init_transaction } from "../storage/sqlite/transacti
|
|
|
3
3
|
import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
|
|
4
4
|
import { init_session_repository } from "../storage/sqlite/session-repository.js";
|
|
5
5
|
import "../storage/sqlite/index.js";
|
|
6
|
-
import { isOwnerIdentity } from "../user-context/identity-bindings.js";
|
|
7
6
|
import { getUnderstandingConsent } from "../user-context/sources/consent-repository.js";
|
|
7
|
+
import { isOwnerIdentity } from "../user-context/identity-bindings.js";
|
|
8
8
|
//#region src/user-model/usage-policy.ts
|
|
9
9
|
init_transaction();
|
|
10
10
|
init_session_repository();
|
|
@@ -3,18 +3,18 @@ import { init_logger } from "../../utils/logger.js";
|
|
|
3
3
|
import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
|
|
4
4
|
import { init_session_repository } from "../../storage/sqlite/session-repository.js";
|
|
5
5
|
import { getSessionConfig } from "../../storage/sqlite/config-repository.js";
|
|
6
|
-
import {
|
|
6
|
+
import { getUserAssertion } from "../../user-model/repository.js";
|
|
7
7
|
import { getConversationRouting } from "../../storage/sqlite/conversation-repository.js";
|
|
8
8
|
import { getConversation } from "../../routing/agent-session-key.js";
|
|
9
9
|
import { init_session_key } from "../../routing/session-key.js";
|
|
10
|
-
import
|
|
10
|
+
import "../../user-model/index.js";
|
|
11
|
+
import { init_config, resolveKnowledgeReadPolicy } from "../../user-context/config.js";
|
|
11
12
|
import { canUseKnowledge } from "../../knowledge-memory/usage-policy.js";
|
|
12
13
|
import { getKnowledgeItem } from "../../knowledge-memory/repository.js";
|
|
13
14
|
import "../../knowledge-memory/index.js";
|
|
14
|
-
import {
|
|
15
|
-
import { getUserAssertion } from "../../user-model/repository.js";
|
|
16
|
-
import "../../user-model/index.js";
|
|
15
|
+
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
17
16
|
import { buildExecutionContext } from "../../agent/context/execution-context.js";
|
|
17
|
+
import { stripRuntimeContextFromUserMessage } from "../../session/user-message-display.js";
|
|
18
18
|
//#region src/voice/realtime/memory-context.ts
|
|
19
19
|
init_config();
|
|
20
20
|
init_session_key();
|
|
@@ -2,8 +2,8 @@ import { voiceSupportsMode } from "../../../packages/realtime-protocol/src/voice
|
|
|
2
2
|
import { init_voice } from "../../../packages/realtime-protocol/src/voice.js";
|
|
3
3
|
import { init_xopc_cloud_config, resolveXopcModelRouterUrl } from "../../providers/xopc-cloud-config.js";
|
|
4
4
|
import { getProviderAuthService, init_provider_auth_service } from "../../providers/provider-auth-service.js";
|
|
5
|
-
import { requirePlatformVoiceModel } from "../platform-catalog.js";
|
|
6
5
|
import { BAILIAN_PLAN_HOST } from "../token-plan.js";
|
|
6
|
+
import { requirePlatformVoiceModel } from "../platform-catalog.js";
|
|
7
7
|
//#region src/voice/realtime/omniRoute.ts
|
|
8
8
|
init_voice();
|
|
9
9
|
init_provider_auth_service();
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { init_changes, onUserContextChange } from "../../user-context/changes.js";
|
|
4
|
+
import { getPersonalAgentByConversation } from "../../personal-agent/repository.js";
|
|
4
5
|
import { init_model_usage, withModelUsageOrigin } from "../../providers/model-usage.js";
|
|
5
6
|
import { decodeVoiceUplinkAudioFrame, encodeVoiceAudioFrame } from "../../../packages/realtime-protocol/src/voice-audio.js";
|
|
6
7
|
import { VOICE_REALTIME_HEARTBEAT_INTERVAL_MS, VOICE_REALTIME_MAX_BINARY_FRAME_BYTES, VOICE_REALTIME_START_TIMEOUT_MS, VOICE_REALTIME_WS_PATH, init_voice, parseVoiceClientJsonFrame, parseVoiceClientMessage } from "../../../packages/realtime-protocol/src/voice.js";
|
|
7
8
|
import { getModelCatalogStore, init_model_catalog_store } from "../../providers/model-catalog-store.js";
|
|
8
|
-
import { getPersonalAgentByConversation } from "../../personal-agent/repository.js";
|
|
9
|
-
import { getMediaUnderstandingProvider } from "../../media-understanding/registry.js";
|
|
10
|
-
import { resolveSTTProviderChain } from "../stt/factory.js";
|
|
11
|
-
import { mergeSttConfigFromAppConfig } from "../stt/config.js";
|
|
12
9
|
import { ALIBABA_REALTIME_TTS_MODEL } from "../tts/providers/alibaba-speech.js";
|
|
13
10
|
import { resolveSpeechProviderChain } from "../tts/factory.js";
|
|
14
11
|
import { mergeTtsConfigFromAppConfig } from "../tts/merge-config.js";
|
|
12
|
+
import { getMediaUnderstandingProvider } from "../../media-understanding/registry.js";
|
|
13
|
+
import { resolveSTTProviderChain } from "../stt/factory.js";
|
|
14
|
+
import { mergeSttConfigFromAppConfig } from "../stt/config.js";
|
|
15
15
|
import { voiceConversationInstructions } from "./conversation-context.js";
|
|
16
16
|
import { verifyDeviceConnectionProof } from "../../gateway/security/device-request-proof.js";
|
|
17
17
|
import { createPreauthConnectionBudget } from "../../gateway/security/preauth-connection-budget.js";
|
|
@@ -2,10 +2,10 @@ import { openAiTranscriptionProvider } from "./providers/openai-transcription.js
|
|
|
2
2
|
import { alibabaTranscriptionProvider } from "./providers/alibaba-transcription.js";
|
|
3
3
|
import "./providers/index.js";
|
|
4
4
|
import { resolveSTTProviderChain, resolveSTTProviderConfig, resolveSTTProviderOrder } from "./factory.js";
|
|
5
|
-
import { STTTranscriptionError, transcribe } from "./transcribe-core.js";
|
|
6
5
|
import { isSTTAvailable } from "./availability.js";
|
|
7
|
-
import { mergeSttConfigFromAppConfig } from "./config.js";
|
|
8
6
|
import { checkMentionInTranscription } from "./mention.js";
|
|
7
|
+
import { STTTranscriptionError, transcribe } from "./transcribe-core.js";
|
|
8
|
+
import { mergeSttConfigFromAppConfig } from "./config.js";
|
|
9
9
|
import { audioPreflightTranscribe } from "./preflight.js";
|
|
10
10
|
//#region src/voice/stt/index.ts
|
|
11
11
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
-
import { transcribe } from "./transcribe-core.js";
|
|
4
3
|
import { isSTTAvailable } from "./availability.js";
|
|
5
4
|
import { checkMentionInTranscription } from "./mention.js";
|
|
5
|
+
import { transcribe } from "./transcribe-core.js";
|
|
6
6
|
//#region src/voice/stt/preflight.ts
|
|
7
7
|
init_logger();
|
|
8
8
|
const log = createLogger("STT:Preflight");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../../utils/logger.js";
|
|
3
|
-
import { registerMediaUnderstandingProvider } from "../../../media-understanding/registry.js";
|
|
4
3
|
import { postJsonRequest } from "../../../media-shared/http/provider-http.js";
|
|
5
4
|
import "../../../media-shared/http/index.js";
|
|
5
|
+
import { registerMediaUnderstandingProvider } from "../../../media-understanding/registry.js";
|
|
6
6
|
import { openDashScopeStreamingStt } from "../../dashscope/streaming-stt-session.js";
|
|
7
7
|
//#region src/voice/stt/providers/alibaba-transcription.ts
|
|
8
8
|
init_logger();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { assertProviderUsage, init_model_usage } from "../../../providers/model-usage.js";
|
|
2
2
|
import { init_sync_provider_auth, resolveProviderApiKeyForAgentSync } from "../../../auth/sync-provider-auth.js";
|
|
3
3
|
import { getProviderAuthService, init_provider_auth_service } from "../../../providers/provider-auth-service.js";
|
|
4
|
+
import { BAILIAN_PLAN_HOST, BAILIAN_PLAN_PROVIDER, BAILIAN_PLAN_STT_MODEL } from "../../token-plan.js";
|
|
4
5
|
import { registerMediaUnderstandingProvider } from "../../../media-understanding/registry.js";
|
|
5
6
|
import { alibabaTranscriptionProvider } from "./alibaba-transcription.js";
|
|
6
|
-
import { BAILIAN_PLAN_HOST, BAILIAN_PLAN_PROVIDER, BAILIAN_PLAN_STT_MODEL } from "../../token-plan.js";
|
|
7
7
|
//#region src/voice/stt/providers/bailian-plan-transcription.ts
|
|
8
8
|
init_sync_provider_auth();
|
|
9
9
|
init_provider_auth_service();
|
|
@@ -4,10 +4,10 @@ import { getProviderAuthService, init_provider_auth_service } from "../../../pro
|
|
|
4
4
|
import { captureCloudUsageResponse } from "../../../usage/cloud-receipts.js";
|
|
5
5
|
import { cloudCreditBudgetHeaders, rejectUnbudgetedCloudTransport, reportCloudCreditError } from "../../../providers/xopc-cloud-credit-budget.js";
|
|
6
6
|
import { compareCatalogModels } from "../../../providers/model-catalog-ranking.js";
|
|
7
|
-
import { registerMediaUnderstandingProvider } from "../../../media-understanding/registry.js";
|
|
8
7
|
import { trackCloudCapabilityUsage } from "../../../usage/cloud-capability.js";
|
|
9
8
|
import { openPlatformStt } from "../../platform-streams.js";
|
|
10
9
|
import { platformVoiceModels, requirePlatformVoiceModel } from "../../platform-catalog.js";
|
|
10
|
+
import { registerMediaUnderstandingProvider } from "../../../media-understanding/registry.js";
|
|
11
11
|
//#region src/voice/stt/providers/xopc-cloud-transcription.ts
|
|
12
12
|
init_model_catalog_store();
|
|
13
13
|
init_provider_auth_service();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
-
import { runAudioTranscription } from "../../media-understanding/audio-transcription-runner.js";
|
|
4
3
|
import { resolveSTTProviderChain } from "./factory.js";
|
|
4
|
+
import { runAudioTranscription } from "../../media-understanding/audio-transcription-runner.js";
|
|
5
5
|
//#region src/voice/stt/transcribe-core.ts
|
|
6
6
|
init_logger();
|
|
7
7
|
const log = createLogger("STT");
|
|
@@ -4,12 +4,12 @@ import { alibabaSpeechProvider } from "./providers/alibaba-speech.js";
|
|
|
4
4
|
import { edgeSpeechProvider } from "./providers/edge-speech.js";
|
|
5
5
|
import { MINIMAX_TTS_MODELS, MINIMAX_TTS_VOICES, minimaxSpeechProvider } from "./providers/minimax-speech.js";
|
|
6
6
|
import "./providers/index.js";
|
|
7
|
-
import { buildTtsSystemPromptHint, hasTtsDirectives, parseTtsDirectives, stripTtsDirectives } from "./directives.js";
|
|
8
7
|
import { getAvailableProviders, isProviderConfigured, isTTSAvailable, listRegisteredSpeechProviderIds, resolveProviderOrder, resolveSpeechProvider, resolveSpeechProviderChain } from "./factory.js";
|
|
9
|
-
import { preprocessText } from "./preprocess.js";
|
|
10
|
-
import { speak, speakStream, speakWithProvider } from "./speak-core.js";
|
|
11
8
|
import { appendTtsReadinessNote, formatTtsSetupHint, mergeTtsConfigFromAppConfig } from "./merge-config.js";
|
|
12
9
|
import { TTSService, getChannelOutputFormat, getSupportedChannels, isVoiceCompatibleChannel, shouldUseTTS } from "./service.js";
|
|
10
|
+
import { buildTtsSystemPromptHint, hasTtsDirectives, parseTtsDirectives, stripTtsDirectives } from "./directives.js";
|
|
11
|
+
import { preprocessText } from "./preprocess.js";
|
|
12
|
+
import { speak, speakStream, speakWithProvider } from "./speak-core.js";
|
|
13
13
|
import { recordTtsFailure, recordTtsSuccess, ttsStatusTracker } from "./status-tracker.js";
|
|
14
14
|
import { isTtsEnabled, maybeApplyTtsToPayload, resolveTtsAutoMode } from "./payload.js";
|
|
15
15
|
export { MINIMAX_TTS_MODELS, MINIMAX_TTS_VOICES, OPENAI_TTS_MODELS, OPENAI_TTS_VOICES, TTSService, alibabaSpeechProvider, appendTtsReadinessNote, buildTtsSystemPromptHint, edgeSpeechProvider, formatTtsSetupHint, getAvailableProviders, getChannelOutputFormat, getSpeechProvider, getSupportedChannels, hasTtsDirectives, isProviderConfigured, isTTSAvailable, isTtsEnabled, isVoiceCompatibleChannel, listRegisteredSpeechProviderIds, listSpeechProviders, maybeApplyTtsToPayload, mergeTtsConfigFromAppConfig, minimaxSpeechProvider, openAiSpeechProvider, parseTtsDirectives, preprocessText, recordTtsFailure, recordTtsSuccess, registerSpeechProvider, resolveProviderOrder, resolveSpeechProvider, resolveSpeechProviderChain, resolveTtsAutoMode, shouldUseTTS, speak, speakStream, speakWithProvider, stripTtsDirectives, ttsStatusTracker };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isTTSAvailable } from "./factory.js";
|
|
2
1
|
import { DEFAULT_TTS_CONFIG } from "./types.js";
|
|
2
|
+
import { isTTSAvailable } from "./factory.js";
|
|
3
3
|
//#region src/voice/tts/merge-config.ts
|
|
4
4
|
/**
|
|
5
5
|
* Merge persisted app config `tts` with defaults to a full {@link TTSConfig}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
-
import { speak } from "./speak-core.js";
|
|
4
3
|
import { getChannelOutputFormat, shouldUseTTS } from "./service.js";
|
|
4
|
+
import { speak } from "./speak-core.js";
|
|
5
5
|
import { compressAudio } from "./audio.js";
|
|
6
6
|
import { recordTtsFailure, recordTtsSuccess } from "./status-tracker.js";
|
|
7
7
|
//#region src/voice/tts/payload.ts
|
|
@@ -3,8 +3,8 @@ import { init_sync_provider_auth, resolveProviderApiKeyForAgentSync } from "../.
|
|
|
3
3
|
import { getProviderAuthService, init_provider_auth_service } from "../../../providers/provider-auth-service.js";
|
|
4
4
|
import { fetchWithTimeoutGuarded, postJsonRequest } from "../../../media-shared/http/provider-http.js";
|
|
5
5
|
import "../../../media-shared/http/index.js";
|
|
6
|
-
import { BAILIAN_PLAN_HOST, BAILIAN_PLAN_PROVIDER, BAILIAN_PLAN_TTS_MODEL, BAILIAN_PLAN_TTS_VOICE } from "../../token-plan.js";
|
|
7
6
|
import { registerSpeechProvider } from "../speech-registry.js";
|
|
7
|
+
import { BAILIAN_PLAN_HOST, BAILIAN_PLAN_PROVIDER, BAILIAN_PLAN_TTS_MODEL, BAILIAN_PLAN_TTS_VOICE } from "../../token-plan.js";
|
|
8
8
|
//#region src/voice/tts/providers/bailian-plan-speech.ts
|
|
9
9
|
init_sync_provider_auth();
|
|
10
10
|
init_provider_auth_service();
|
|
@@ -6,10 +6,10 @@ import { getProviderAuthService, init_provider_auth_service } from "../../../pro
|
|
|
6
6
|
import { captureCloudUsageResponse } from "../../../usage/cloud-receipts.js";
|
|
7
7
|
import { cloudCreditBudgetHeaders, rejectUnbudgetedCloudTransport, reportCloudCreditError } from "../../../providers/xopc-cloud-credit-budget.js";
|
|
8
8
|
import { compareCatalogModels } from "../../../providers/model-catalog-ranking.js";
|
|
9
|
+
import { registerSpeechProvider } from "../speech-registry.js";
|
|
9
10
|
import { trackCloudCapabilityUsage } from "../../../usage/cloud-capability.js";
|
|
10
11
|
import { openPlatformTts } from "../../platform-streams.js";
|
|
11
12
|
import { requirePlatformVoiceModel } from "../../platform-catalog.js";
|
|
12
|
-
import { registerSpeechProvider } from "../speech-registry.js";
|
|
13
13
|
//#region src/voice/tts/providers/xopc-cloud-speech.ts
|
|
14
14
|
init_model_catalog_store();
|
|
15
15
|
init_voice();
|
|
@@ -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 { assertProviderUsage, init_model_usage, isProviderUsageScopeError } from "../../providers/model-usage.js";
|
|
4
|
-
import { parseTtsDirectives } from "./directives.js";
|
|
5
4
|
import { resolveSpeechProvider, resolveSpeechProviderChain } from "./factory.js";
|
|
5
|
+
import { parseTtsDirectives } from "./directives.js";
|
|
6
6
|
import { preprocessText } from "./preprocess.js";
|
|
7
7
|
import { summarizeForTts } from "./summarize.js";
|
|
8
8
|
//#region src/voice/tts/speak-core.ts
|
|
@@ -5,19 +5,19 @@ import { createContextEvidence } from "../storage/sqlite/context-evidence-reposi
|
|
|
5
5
|
import { ensureSessionRecord, patchSessionMetadata } from "../storage/sqlite/session-repository.js";
|
|
6
6
|
import "../storage/sqlite/index.js";
|
|
7
7
|
import { ActivityService } from "../activity/service.js";
|
|
8
|
-
import {
|
|
8
|
+
import { linkAssertionEvidence, reconcileAssertion } from "../user-model/repository.js";
|
|
9
9
|
import { init_session_key, resolveConversationId } from "../routing/session-key.js";
|
|
10
|
-
import {
|
|
11
|
-
import "../
|
|
10
|
+
import { createPriorityWindow, createUserGoal } from "../user-model/goals.js";
|
|
11
|
+
import "../user-model/index.js";
|
|
12
|
+
import { createWorkDiscoveryRun, getProjectUnderstandingRun, getWorkDiscoveryOnboardingState, getWorkDiscoveryRun, getWorkDiscoveryRunByIdempotencyKey, listPendingProjectUnderstandingRuns, setWorkDiscoveryFeedback, setWorkDiscoveryOnboardingState, updateWorkDiscoveryRun } from "./repository.js";
|
|
13
|
+
import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
|
|
12
14
|
import { getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
|
|
13
15
|
import { resolveEffectiveAgentProfile } from "../config/agent-profile.js";
|
|
14
16
|
import { init_providers, resolveModel } from "../providers/index.js";
|
|
15
17
|
import { isLocalModelBaseUrl } from "../providers/model-call.js";
|
|
16
|
-
import { createPriorityWindow, createUserGoal } from "../user-model/goals.js";
|
|
17
|
-
import { linkAssertionEvidence, reconcileAssertion } from "../user-model/repository.js";
|
|
18
|
-
import "../user-model/index.js";
|
|
19
|
-
import { createWorkDiscoveryRun, getProjectUnderstandingRun, getWorkDiscoveryOnboardingState, getWorkDiscoveryRun, getWorkDiscoveryRunByIdempotencyKey, listPendingProjectUnderstandingRuns, setWorkDiscoveryFeedback, setWorkDiscoveryOnboardingState, updateWorkDiscoveryRun } from "./repository.js";
|
|
20
18
|
import { createUnderstandingSourceRun, getUnderstandingSourceGrant, getUnderstandingSourceRun, updateUnderstandingSourceGrantCheckpoint, updateUnderstandingSourceGrantPolicies, updateUnderstandingSourceRun, upsertUnderstandingSourceGrant } from "../user-context/sources/repository.js";
|
|
19
|
+
import { writeKnowledgeItem } from "../knowledge-memory/repository.js";
|
|
20
|
+
import "../knowledge-memory/index.js";
|
|
21
21
|
import { allowsRemoteSourceProcessing } from "../user-context/sources/processing-policy.js";
|
|
22
22
|
import { analyzeUnderstandingSources, analyzeWorkContext, workDiscoveryResultMarkdown } from "./analyzer.js";
|
|
23
23
|
import { clusterActivityTopics } from "../user-context/sources/activity-clustering.js";
|
package/package.json
CHANGED