@xopcai/xopc 0.0.419 → 0.0.420
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-DS60ZSdQ.js → index-UCOlAnf-.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 +42 -42
- 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
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { parseFrontmatterBlock } from "../markdown/frontmatter.js";
|
|
2
|
+
import { getChannelPlugin, getChannelRegistryVersion, listChannelPlugins, syncChannelPluginsFromManager } from "./plugins/registry.js";
|
|
2
3
|
import { findFenceSpanAt, isSafeFenceBreak, parseFenceSpans } from "../markdown/fences.js";
|
|
3
4
|
import { chunkText } from "../markdown/chunk.js";
|
|
4
5
|
import { chunkMarkdownIR, markdownToIR, markdownToIRWithMeta } from "../markdown/ir.js";
|
|
6
|
+
import { compileAllowlist, evaluateAccess, hasBotMention, removeBotMention, resolveAllowlistMatch, resolveAllowlistMatchSimple, resolveDmPolicy, resolveGroupPolicy } from "./security.js";
|
|
5
7
|
import { renderMarkdownWithMarkers } from "../markdown/render.js";
|
|
6
8
|
import { convertMarkdownTables } from "../markdown/tables.js";
|
|
7
9
|
import { buildCodeSpanIndex, createInlineCodeState } from "../markdown/code-spans.js";
|
|
8
10
|
import "./format.js";
|
|
9
|
-
import { compileAllowlist, evaluateAccess, hasBotMention, removeBotMention, resolveAllowlistMatch, resolveAllowlistMatchSimple, resolveDmPolicy, resolveGroupPolicy } from "./security.js";
|
|
10
11
|
import { MessagePipeline, createEnvelopeTimestampHandler, createFilterCommandsHandler, createFilterEmptyHandler, createFilterSelfHandler, createPipeline, standardPreflightHandlers, standardProcessHandlers } from "./pipeline.js";
|
|
11
|
-
import { getChannelPlugin, getChannelRegistryVersion, listChannelPlugins, syncChannelPluginsFromManager } from "./plugins/registry.js";
|
|
12
12
|
import { ChannelManager, createChannelManager } from "./manager.js";
|
|
13
13
|
import { collectSetupWizardChannels } from "./setup-wizard-discovery.js";
|
|
14
14
|
export { ChannelManager, MessagePipeline, buildCodeSpanIndex, chunkMarkdownIR, chunkText, collectSetupWizardChannels, compileAllowlist, convertMarkdownTables, createChannelManager, createEnvelopeTimestampHandler, createFilterCommandsHandler, createFilterEmptyHandler, createFilterSelfHandler, createInlineCodeState, createPipeline, evaluateAccess, findFenceSpanAt, getChannelPlugin, getChannelRegistryVersion, hasBotMention, isSafeFenceBreak, listChannelPlugins, markdownToIR, markdownToIRWithMeta, parseFenceSpans, parseFrontmatterBlock, removeBotMention, renderMarkdownWithMarkers, resolveAllowlistMatch, resolveAllowlistMatchSimple, resolveDmPolicy, resolveGroupPolicy, standardPreflightHandlers, standardProcessHandlers, syncChannelPluginsFromManager };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
-
import "./internal-outbound.js";
|
|
4
3
|
import { mergeTtsConfigFromAppConfig } from "../voice/tts/merge-config.js";
|
|
5
4
|
import { maybeApplyTtsToPayload } from "../voice/tts/payload.js";
|
|
5
|
+
import "./internal-outbound.js";
|
|
6
6
|
import { deliverOutboundMessage } from "./outbound/deliver.js";
|
|
7
7
|
import { OutboundPersistStore } from "./outbound/persist-store.js";
|
|
8
8
|
//#region src/channels/outbound-sender.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
-
import
|
|
2
|
+
import fs from "node:fs";
|
|
3
3
|
//#region src/channels/pairing/allow-from-file.ts
|
|
4
4
|
function readAllowFromFile(filePath) {
|
|
5
5
|
try {
|
|
6
|
-
if (!
|
|
6
|
+
if (!fs.existsSync(filePath)) return {
|
|
7
7
|
version: 1,
|
|
8
8
|
allowFrom: []
|
|
9
9
|
};
|
|
10
|
-
const raw =
|
|
10
|
+
const raw = fs.readFileSync(filePath, "utf-8");
|
|
11
11
|
const parsed = JSON.parse(raw);
|
|
12
12
|
if (Array.isArray(parsed.allowFrom)) return {
|
|
13
13
|
version: 1,
|
|
@@ -26,13 +26,13 @@ function appendAllowFromIdSync(filePath, userId) {
|
|
|
26
26
|
const trimmed = userId.trim();
|
|
27
27
|
if (!trimmed) return { changed: false };
|
|
28
28
|
const dir = path.dirname(filePath);
|
|
29
|
-
|
|
29
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
30
30
|
const content = readAllowFromFile(filePath);
|
|
31
31
|
if (content.allowFrom.includes(trimmed)) return { changed: false };
|
|
32
32
|
content.allowFrom.push(trimmed);
|
|
33
|
-
|
|
33
|
+
fs.writeFileSync(filePath, JSON.stringify(content, null, 2), "utf-8");
|
|
34
34
|
try {
|
|
35
|
-
|
|
35
|
+
fs.chmodSync(filePath, 384);
|
|
36
36
|
} catch {}
|
|
37
37
|
return { changed: true };
|
|
38
38
|
}
|
|
@@ -43,13 +43,13 @@ function removeAllowFromIdSync(filePath, userId) {
|
|
|
43
43
|
const next = content.allowFrom.filter((id) => id !== trimmed);
|
|
44
44
|
if (next.length === content.allowFrom.length) return { changed: false };
|
|
45
45
|
const dir = path.dirname(filePath);
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
47
|
+
fs.writeFileSync(filePath, JSON.stringify({
|
|
48
48
|
version: 1,
|
|
49
49
|
allowFrom: next
|
|
50
50
|
}, null, 2), "utf-8");
|
|
51
51
|
try {
|
|
52
|
-
|
|
52
|
+
fs.chmodSync(filePath, 384);
|
|
53
53
|
} catch {}
|
|
54
54
|
return { changed: true };
|
|
55
55
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { appendAllowFromIdSync } from "./allow-from-file.js";
|
|
2
2
|
import "./pairing-constants.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fs from "node:fs";
|
|
5
5
|
import crypto from "node:crypto";
|
|
6
6
|
//#region src/channels/pairing/pairing-store.ts
|
|
7
7
|
const PAIRING_CODE_LENGTH = 8;
|
|
@@ -36,11 +36,11 @@ function requestAccountId(entry) {
|
|
|
36
36
|
}
|
|
37
37
|
function readStore(filePath) {
|
|
38
38
|
try {
|
|
39
|
-
if (!
|
|
39
|
+
if (!fs.existsSync(filePath)) return {
|
|
40
40
|
version: 1,
|
|
41
41
|
requests: []
|
|
42
42
|
};
|
|
43
|
-
const raw =
|
|
43
|
+
const raw = fs.readFileSync(filePath, "utf-8");
|
|
44
44
|
const parsed = JSON.parse(raw);
|
|
45
45
|
if (parsed && Array.isArray(parsed.requests)) return {
|
|
46
46
|
version: 1,
|
|
@@ -54,10 +54,10 @@ function readStore(filePath) {
|
|
|
54
54
|
}
|
|
55
55
|
function writeStore(filePath, store) {
|
|
56
56
|
const dir = path.dirname(filePath);
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
58
|
+
fs.writeFileSync(filePath, JSON.stringify(store, null, 2), "utf-8");
|
|
59
59
|
try {
|
|
60
|
-
|
|
60
|
+
fs.chmodSync(filePath, 384);
|
|
61
61
|
} catch {}
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { normalizeAgentId } from "../agent-catalog/id.js";
|
|
2
2
|
import { init_agent_scope, resolveAgentProfileDir } from "../agent/agent-scope.js";
|
|
3
|
-
import { init_agent_session_key, resolveAgentIdFromConversationId } from "../routing/agent-session-key.js";
|
|
4
3
|
import { WORKSPACE_FILES, init_paths } from "../config/paths.js";
|
|
4
|
+
import { init_agent_session_key, resolveAgentIdFromConversationId } from "../routing/agent-session-key.js";
|
|
5
5
|
import { commandRegistry } from "./registry.js";
|
|
6
6
|
import { join } from "node:path";
|
|
7
7
|
import { readFile } from "node:fs/promises";
|
|
@@ -2,11 +2,11 @@ import { createLogger } from "../../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { init_paths, resolveConfigPath } from "../../config/paths.js";
|
|
4
4
|
import { ConfigSchema, init_schema } from "../../config/schema.js";
|
|
5
|
-
import { loadConfig, saveConfig } from "../../config/loader.js";
|
|
6
|
-
import { resolveAllowlistMatchSimple } from "../../channels/security.js";
|
|
7
5
|
import { commandRegistry } from "../registry.js";
|
|
8
|
-
import { getConfigValueAtPath, parseConfigPath, setConfigValueAtPath, unsetConfigValueAtPath } from "../config-paths.js";
|
|
9
6
|
import { parseConfigValue } from "../config-value.js";
|
|
7
|
+
import { getConfigValueAtPath, parseConfigPath, setConfigValueAtPath, unsetConfigValueAtPath } from "../config-paths.js";
|
|
8
|
+
import { loadConfig, saveConfig } from "../../config/loader.js";
|
|
9
|
+
import { resolveAllowlistMatchSimple } from "../../channels/security.js";
|
|
10
10
|
//#region src/chat-commands/builtins/config.ts
|
|
11
11
|
init_schema();
|
|
12
12
|
init_paths();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { commandRegistry } from "../registry.js";
|
|
2
1
|
import { formatThinkingLevels, normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel } from "../../agent/transcript/thinking-types.js";
|
|
2
|
+
import { commandRegistry } from "../registry.js";
|
|
3
3
|
//#region src/chat-commands/builtins/thinking.ts
|
|
4
4
|
async function setSessionAgentField(store, conversationId, field, value) {
|
|
5
5
|
if (!store) return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isTTSAvailable } from "../../voice/tts/factory.js";
|
|
2
2
|
import { appendTtsReadinessNote, formatTtsSetupHint, mergeTtsConfigFromAppConfig } from "../../voice/tts/merge-config.js";
|
|
3
|
-
import { ttsStatusTracker } from "../../voice/tts/status-tracker.js";
|
|
4
3
|
import { commandRegistry } from "../registry.js";
|
|
4
|
+
import { ttsStatusTracker } from "../../voice/tts/status-tracker.js";
|
|
5
5
|
import "../../voice/tts/index.js";
|
|
6
6
|
//#region src/chat-commands/builtins/tts.ts
|
|
7
7
|
function defaultTtsVoiceForProvider(provider) {
|
|
@@ -4,8 +4,8 @@ import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
|
|
|
4
4
|
import { resolveEffectiveAgentConfigForSession } from "../config/agent-profile.js";
|
|
5
5
|
import { effectiveWorkspacePathForSession } from "../session/session-workspace.js";
|
|
6
6
|
import { getProjectForSession } from "../projects/workspace.js";
|
|
7
|
-
import { saveConfig } from "../config/loader.js";
|
|
8
7
|
import { getSessionDisplayName } from "./session-key.js";
|
|
8
|
+
import { saveConfig } from "../config/loader.js";
|
|
9
9
|
import { wrapMarkdownExportAsHtml } from "../session/chat-export.js";
|
|
10
10
|
import { join } from "path";
|
|
11
11
|
import { mkdir, writeFile } from "fs/promises";
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { generateConversationId, getSessionDisplayName } from "./session-key.js";
|
|
2
1
|
import { normalizeTelegramCommandName, parseSlashCommand } from "./command-parse.js";
|
|
3
2
|
import { CommandRegistry, commandRegistry } from "./registry.js";
|
|
4
|
-
import {
|
|
5
|
-
import { CommandContextImpl, createCommandContext } from "./context.js";
|
|
3
|
+
import { generateConversationId, getSessionDisplayName } from "./session-key.js";
|
|
6
4
|
import { registerSessionCommands } from "./builtins/session.js";
|
|
7
5
|
import { registerModelCommands } from "./builtins/model.js";
|
|
8
6
|
import { registerSystemCommands } from "./builtins/system.js";
|
|
@@ -13,6 +11,8 @@ import { registerContextCommands } from "./builtins/context.js";
|
|
|
13
11
|
import { registerReviewCommand } from "./builtins/review.js";
|
|
14
12
|
import { registerSkillCommand } from "./builtins/skill.js";
|
|
15
13
|
import { registerUnderstandingCommands } from "./builtins/understanding.js";
|
|
14
|
+
import { registerAgentEditCommand } from "./agent-edit.js";
|
|
15
|
+
import { CommandContextImpl, createCommandContext } from "./context.js";
|
|
16
16
|
//#region src/chat-commands/index.ts
|
|
17
17
|
/**
|
|
18
18
|
* Unified Command System
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { init_agent_scope, resolveDefaultAgentId } from "../../agent/agent-scope.js";
|
|
4
|
-
import { init_agent_session_key, resolveAgentMainConversationId } from "../../routing/agent-session-key.js";
|
|
5
4
|
import { getAgentDefaultModelRef, init_schema } from "../../config/schema.js";
|
|
6
|
-
import {
|
|
7
|
-
import { formatExamples, register } from "../registry.js";
|
|
8
|
-
import { getContextWithOpts } from "../context.js";
|
|
9
|
-
import { MessageBus, MessageBusShutdownError } from "../../infra/bus/queue.js";
|
|
10
|
-
import "../../infra/bus/index.js";
|
|
5
|
+
import { init_agent_session_key, resolveAgentMainConversationId } from "../../routing/agent-session-key.js";
|
|
11
6
|
import { getWorkspacePath } from "../../config/workspace-path-helpers.js";
|
|
12
|
-
import "../../config/index.js";
|
|
13
7
|
import { ExtensionLoader } from "../../extensions/loader.js";
|
|
14
8
|
import "../../extensions/index.js";
|
|
9
|
+
import { loadConfig } from "../../config/loader.js";
|
|
10
|
+
import { MessageBus, MessageBusShutdownError } from "../../infra/bus/queue.js";
|
|
11
|
+
import "../../infra/bus/index.js";
|
|
15
12
|
import { AgentService } from "../../agent/service.js";
|
|
16
|
-
import { getXopcCloudCatalogCoordinator } from "../../providers/xopc-cloud-catalog-coordinator.js";
|
|
17
13
|
import "../../agent/index.js";
|
|
14
|
+
import { formatExamples, register } from "../registry.js";
|
|
15
|
+
import { getContextWithOpts } from "../context.js";
|
|
16
|
+
import "../../config/index.js";
|
|
17
|
+
import { getXopcCloudCatalogCoordinator } from "../../providers/xopc-cloud-catalog-coordinator.js";
|
|
18
18
|
import { listSessions } from "./agent/sessions.js";
|
|
19
19
|
import { renderStreamToTerminal } from "./agent/stream-renderer.js";
|
|
20
20
|
import { startInteractiveChat } from "./agent/interactive.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigSchema, init_schema } from "../../config/schema.js";
|
|
2
|
-
import { formatExamples, register } from "../registry.js";
|
|
3
2
|
import { resolveGatewayLocalClientHost } from "../../config/gateway-bind.js";
|
|
3
|
+
import { formatExamples, register } from "../registry.js";
|
|
4
4
|
import { existsSync, readFileSync } from "fs";
|
|
5
5
|
import { Command } from "commander";
|
|
6
6
|
//#region src/cli/commands/config.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { loadConfig, saveConfig } from "../../config/loader.js";
|
|
2
1
|
import { getStoreConnectorInstallPlan, installStoreConnector, listStoreConnectors } from "../../capabilities/store-connector.js";
|
|
2
|
+
import { loadConfig, saveConfig } from "../../config/loader.js";
|
|
3
3
|
import { register } from "../registry.js";
|
|
4
4
|
import { confirm } from "@inquirer/prompts";
|
|
5
5
|
import { Command } from "commander";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { loadConfig } from "../../../../config/loader.js";
|
|
2
1
|
import { listChannelPlugins } from "../../../../channels/plugins/registry.js";
|
|
2
|
+
import { loadConfig } from "../../../../config/loader.js";
|
|
3
3
|
import { existsSync } from "node:fs";
|
|
4
4
|
//#region src/cli/commands/doctor/checks/channel-plugins.ts
|
|
5
5
|
function toCheckResults(plugin, raw) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { loadConfig } from "../../../../config/loader.js";
|
|
2
1
|
import { resolveGatewayLocalClientHost } from "../../../../config/gateway-bind.js";
|
|
2
|
+
import { loadConfig } from "../../../../config/loader.js";
|
|
3
3
|
import { existsSync } from "node:fs";
|
|
4
4
|
//#region src/cli/commands/doctor/checks/gateway-health.ts
|
|
5
5
|
function resolveGatewayBaseUrl(cfg) {
|
|
@@ -3,10 +3,10 @@ import { PLUGIN_MANIFEST_PATHS } from "../../extensions/agent-plugins/formats.js
|
|
|
3
3
|
import { pluginServerId } from "../../extensions/agent-plugins/validation.js";
|
|
4
4
|
import { isGitPluginSource } from "../../extensions/agent-plugins/source-catalog.js";
|
|
5
5
|
import { AgentPluginStore } from "../../extensions/agent-plugins/store.js";
|
|
6
|
-
import { loadConfig } from "../../config/loader.js";
|
|
7
|
-
import { getContextWithOpts } from "../context.js";
|
|
8
6
|
import { getWorkspacePath } from "../../config/workspace-path-helpers.js";
|
|
7
|
+
import { loadConfig } from "../../config/loader.js";
|
|
9
8
|
import { PluginSetupService } from "../../extensions/agent-plugins/setup.js";
|
|
9
|
+
import { getContextWithOpts } from "../context.js";
|
|
10
10
|
import { isAgentPluginArchive, withAgentPluginSource } from "../../extensions/agent-plugins/sources.js";
|
|
11
11
|
import { removePluginCredentials } from "../../extensions/agent-plugins/credentials.js";
|
|
12
12
|
import { join, resolve } from "node:path";
|
|
@@ -3,9 +3,9 @@ import { createLogger } from "../../utils/logger/index.js";
|
|
|
3
3
|
import { init_logger } from "../../utils/logger.js";
|
|
4
4
|
import { init_paths, resolveConfigPath, resolveExtensionsDir } from "../../config/paths.js";
|
|
5
5
|
import { normalizeExtensionManifest } from "../../extensions/normalize-manifest.js";
|
|
6
|
+
import { checkEngineCompatibility } from "../../extensions/engine-check.js";
|
|
6
7
|
import { loadConfig } from "../../config/loader.js";
|
|
7
8
|
import { getContextWithOpts } from "../context.js";
|
|
8
|
-
import { checkEngineCompatibility } from "../../extensions/engine-check.js";
|
|
9
9
|
import { GatewayServer } from "../../gateway/server.js";
|
|
10
10
|
import { runGatewayLoop } from "../../gateway/run-loop.js";
|
|
11
11
|
import "../../gateway/index.js";
|
|
@@ -4,10 +4,10 @@ import { init_logger } from "../../utils/logger.js";
|
|
|
4
4
|
import { init_paths, resolveExtensionsDir } from "../../config/paths.js";
|
|
5
5
|
import { computeExtensionDirectoryIntegrity, getExtensionLockfileManager } from "../../extensions/lockfile.js";
|
|
6
6
|
import { AgentPluginStore } from "../../extensions/agent-plugins/store.js";
|
|
7
|
-
import { loadConfig, saveConfig } from "../../config/loader.js";
|
|
8
|
-
import { getContextWithOpts } from "../context.js";
|
|
9
7
|
import { checkEngineCompatibility } from "../../extensions/engine-check.js";
|
|
10
8
|
import { ExtensionLoader } from "../../extensions/loader.js";
|
|
9
|
+
import { loadConfig, saveConfig } from "../../config/loader.js";
|
|
10
|
+
import { getContextWithOpts } from "../context.js";
|
|
11
11
|
import { checkAllExtensionsHealth, getExtensionHealthChecker } from "../../extensions/health.js";
|
|
12
12
|
import { collectExtensionPackageDependencyIssues } from "../../extensions/package-contract.js";
|
|
13
13
|
import { withAgentPluginSource } from "../../extensions/agent-plugins/sources.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { formatExamples, register } from "../registry.js";
|
|
2
1
|
import { listImageGenerationProvidersSummary } from "../../agent/image/generation/runtime.js";
|
|
2
|
+
import { formatExamples, register } from "../registry.js";
|
|
3
3
|
import "../../agent/image/index.js";
|
|
4
4
|
import { Command } from "commander";
|
|
5
5
|
//#region src/cli/commands/image.ts
|
|
@@ -3,8 +3,8 @@ import { createLogger } from "../../utils/logger/index.js";
|
|
|
3
3
|
import { init_logger } from "../../utils/logger.js";
|
|
4
4
|
import { resolveAgentWorkspaceDir } from "../../agent/agent-scope.js";
|
|
5
5
|
import { WORKSPACE_FILES, init_paths, resolveAgentDir, resolveAgentHomeDir, resolveAgentProfileDir, resolveConfigPath } from "../../config/paths.js";
|
|
6
|
-
import { ensureStarterAgentsInitialized } from "../../agent/starter-agents.js";
|
|
7
6
|
import { loadConfig, saveConfig } from "../../config/loader.js";
|
|
7
|
+
import { ensureStarterAgentsInitialized } from "../../agent/starter-agents.js";
|
|
8
8
|
import { formatExamples, register } from "../registry.js";
|
|
9
9
|
import { join } from "path";
|
|
10
10
|
import { existsSync } from "fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { loadConfig } from "../../config/loader.js";
|
|
2
|
-
import { register } from "../registry.js";
|
|
3
1
|
import { getNativePiAgentDir, prepareNativeMcpConfig } from "../../agent/mcp/native-mcp.js";
|
|
2
|
+
import { loadConfig } from "../../config/loader.js";
|
|
4
3
|
import { resolveMcpSetupConfig } from "../../agent/mcp/effective-server.js";
|
|
4
|
+
import { register } from "../registry.js";
|
|
5
5
|
import { createGatewayHttpClientFromConfig } from "../../mcp/gateway-http-client.js";
|
|
6
6
|
import { createCapabilityMcpServer } from "../../mcp/capability-server.js";
|
|
7
7
|
import { join } from "node:path";
|
|
@@ -6,13 +6,13 @@ import { getAgentDefaultModelRef, init_schema } from "../../config/schema.js";
|
|
|
6
6
|
import { CredentialResolver, init_credentials } from "../../auth/credentials.js";
|
|
7
7
|
import { getAllModels, getAvailableModels, getConfiguredProviders, getProviderAuthState, getProviderDisplayName, init_providers, isProviderConfigured, providerSupportsApiKey, providerSupportsOAuth, resolveModel } from "../../providers/index.js";
|
|
8
8
|
import { XopcCloudAccountService } from "../../providers/xopc-cloud-account-service.js";
|
|
9
|
+
import { listImageProviderSpecs } from "../../../packages/image-providers/src/catalog.js";
|
|
10
|
+
import "../../../packages/image-providers/src/index.js";
|
|
9
11
|
import { loadConfig } from "../../config/loader.js";
|
|
10
12
|
import { formatExamples, register } from "../registry.js";
|
|
11
13
|
import { getContextWithOpts } from "../context.js";
|
|
12
14
|
import "../../config/index.js";
|
|
13
15
|
import { prepareUpdateGlobalDefaults } from "../../gateway/global-defaults-admin.js";
|
|
14
|
-
import { listImageProviderSpecs } from "../../../packages/image-providers/src/catalog.js";
|
|
15
|
-
import "../../../packages/image-providers/src/index.js";
|
|
16
16
|
import { disconnectProvider } from "../../providers/provider-disconnect.js";
|
|
17
17
|
import { colors } from "../utils/colors.js";
|
|
18
18
|
import { runCliOAuthLogin } from "../utils/oauth-login.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { buildExtensionMetadataSnapshot, resolveExtensionLoaderOptionsFromConfig } from "../../../../extensions/extension-metadata-snapshot.js";
|
|
2
1
|
import { listChannelPlugins } from "../../../../channels/plugins/registry.js";
|
|
3
2
|
import { ExtensionLoader } from "../../../../extensions/loader.js";
|
|
3
|
+
import { buildExtensionMetadataSnapshot, resolveExtensionLoaderOptionsFromConfig } from "../../../../extensions/extension-metadata-snapshot.js";
|
|
4
4
|
import { channelSetupWizardToConfigurator } from "./wizard-to-configurator.js";
|
|
5
5
|
import { channelOnboardToConfigurator } from "./onboard-to-configurator.js";
|
|
6
6
|
//#region src/cli/commands/onboard/channels/registry.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { init_paths_state, resolveStateDir } from "../../config/paths-state.js";
|
|
2
2
|
import { AgentCatalogRepository, init_repository } from "../../agent-catalog/repository.js";
|
|
3
3
|
import { ConfigSchema, init_schema } from "../../config/schema.js";
|
|
4
|
+
import { resolveGatewayLocalClientHost } from "../../config/gateway-bind.js";
|
|
4
5
|
import { saveConfig } from "../../config/loader.js";
|
|
5
6
|
import { formatExamples, register } from "../registry.js";
|
|
6
7
|
import "../../config/index.js";
|
|
7
|
-
import { resolveGatewayLocalClientHost } from "../../config/gateway-bind.js";
|
|
8
8
|
import { provisionEagerRuntimes } from "../../runtime-tools/bootstrap.js";
|
|
9
9
|
import { colors } from "../utils/colors.js";
|
|
10
10
|
import { initWorkspace } from "../utils/init-workspace.js";
|
|
@@ -5,9 +5,9 @@ import "../../storage/sqlite/index.js";
|
|
|
5
5
|
import { ProjectService } from "../../projects/project-service.js";
|
|
6
6
|
import { isValidProjectAgentId, normalizeProjectAgentId } from "../../projects/project-agent.js";
|
|
7
7
|
import "../../projects/index.js";
|
|
8
|
+
import "../../tasks/index.js";
|
|
8
9
|
import { loadConfig } from "../../config/loader.js";
|
|
9
10
|
import { formatExamples, register } from "../registry.js";
|
|
10
|
-
import "../../tasks/index.js";
|
|
11
11
|
import { Command } from "commander";
|
|
12
12
|
//#region src/cli/commands/project.ts
|
|
13
13
|
function parseStatus(raw) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { resolveStateDir } from "../../config/paths-state.js";
|
|
2
2
|
import { init_paths, resolveBundledSkillsDir, resolveSkillsLockPath } from "../../config/paths.js";
|
|
3
|
+
import { loadSkillsLock } from "../../agent/skills/hub-lock.js";
|
|
3
4
|
import { findInstallSpec, hasBinary, installSkill } from "../../agent/skills/installer.js";
|
|
4
5
|
import { createSkillConfigManager, isSkillEnabled } from "../../agent/skills/config.js";
|
|
5
6
|
import { formatScanSummary, scanSkillDirectory } from "../../agent/skills/scanner.js";
|
|
6
7
|
import { createSkillLoader } from "../../agent/skills/index.js";
|
|
7
|
-
import { loadSkillsLock } from "../../agent/skills/hub-lock.js";
|
|
8
8
|
import { pullSkillFromSource, updateSkillFromLock } from "../../agent/skills/hub-pull.js";
|
|
9
|
+
import { ProjectTrustStore } from "../../project-trust/trust-store.js";
|
|
9
10
|
import { loadConfig } from "../../config/loader.js";
|
|
10
11
|
import { register } from "../registry.js";
|
|
11
|
-
import { ProjectTrustStore } from "../../project-trust/trust-store.js";
|
|
12
12
|
import { createSkillsTestCommand } from "./skills-test.js";
|
|
13
13
|
import { Command } from "commander";
|
|
14
14
|
//#region src/cli/commands/skills.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { init_connection, isXopcDatabaseOpen, openXopcDatabase } from "../../storage/sqlite/connection.js";
|
|
4
|
-
import { loadConfig, saveConfig } from "../../config/loader.js";
|
|
5
|
-
import { formatExamples, register } from "../registry.js";
|
|
6
|
-
import "../../config/index.js";
|
|
7
4
|
import { resolveGatewayEffectiveHost } from "../../config/gateway-bind.js";
|
|
8
|
-
import { resolveGatewayAuth } from "../../gateway/auth.js";
|
|
9
5
|
import { ensureFrpcBinary } from "../../tunnel/frpc-binary.js";
|
|
10
6
|
import { resolveTunnelBrokerUrl, resolveTunnelRegistrationSecret } from "../../tunnel/env.js";
|
|
11
7
|
import { loadTunnelState } from "../../tunnel/tunnel-state.js";
|
|
12
8
|
import { getTunnelService } from "../../tunnel/tunnel-service.js";
|
|
9
|
+
import { loadConfig, saveConfig } from "../../config/loader.js";
|
|
10
|
+
import { formatExamples, register } from "../registry.js";
|
|
11
|
+
import "../../config/index.js";
|
|
12
|
+
import { resolveGatewayAuth } from "../../gateway/auth.js";
|
|
13
13
|
import { requireTunnelGatewayToken } from "../../tunnel/auth-policy.js";
|
|
14
14
|
import { TUNNEL_RISK_SUMMARY_LINES, TunnelConsentError, assertTunnelMayStart, hasValidTunnelConsent } from "../../tunnel/consent.js";
|
|
15
15
|
import { resolveFrpSubdomainHost } from "../../tunnel/frp-subdomain-host.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { bootstrapApplicationStateSync } from "../bootstrap/application-state.js";
|
|
2
|
-
import { loadConfig } from "../config/loader.js";
|
|
3
|
-
import { createDefaultContext } from "./registry.js";
|
|
4
|
-
import { MessageBus } from "../infra/bus/queue.js";
|
|
5
|
-
import "../infra/bus/index.js";
|
|
6
1
|
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
7
|
-
import "../config/index.js";
|
|
8
2
|
import { collectConfiguredChannelIds } from "../extensions/activation-context.js";
|
|
9
3
|
import { ExtensionLoader } from "../extensions/loader.js";
|
|
10
4
|
import "../extensions/index.js";
|
|
5
|
+
import { loadConfig } from "../config/loader.js";
|
|
6
|
+
import { MessageBus } from "../infra/bus/queue.js";
|
|
7
|
+
import "../infra/bus/index.js";
|
|
8
|
+
import { bootstrapApplicationStateSync } from "../bootstrap/application-state.js";
|
|
9
|
+
import { createDefaultContext } from "./registry.js";
|
|
10
|
+
import "../config/index.js";
|
|
11
11
|
import { registerExtensionCliProgram } from "../extensions/sdk/channel-helpers.js";
|
|
12
12
|
import { join } from "path";
|
|
13
13
|
//#region src/cli/extension-cli-register.ts
|
|
@@ -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 { init_paths, resolveConfigPath } from "../../config/paths.js";
|
|
4
|
+
import { resolveGatewayEffectiveHost } from "../../config/gateway-bind.js";
|
|
4
5
|
import { loadConfig } from "../../config/loader.js";
|
|
5
6
|
import "../../config/index.js";
|
|
6
|
-
import { resolveGatewayEffectiveHost } from "../../config/gateway-bind.js";
|
|
7
7
|
import { createGatewayCredential, gatewayCredentialAuthorization } from "../../gateway/credential.js";
|
|
8
8
|
import { assertSecureGatewayHttpUrl } from "../../gateway/ws-security.js";
|
|
9
9
|
import { addGatewayClientOptions, parseGatewayClientOptions } from "./gateway-client-options.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AgentCatalogRepository, init_repository } from "../../agent-catalog/repository.js";
|
|
2
2
|
import { AgentCatalogService } from "../../agent-catalog/service.js";
|
|
3
3
|
import { ConfigSchema, init_schema } from "../../config/schema.js";
|
|
4
|
-
import { ensureStarterAgentsInitialized } from "../../agent/starter-agents.js";
|
|
5
|
-
import { bootstrapApplicationStateSync } from "../../bootstrap/application-state.js";
|
|
6
4
|
import { readConfigFileSnapshot } from "../../config/config-file.js";
|
|
7
5
|
import { saveConfig } from "../../config/loader.js";
|
|
6
|
+
import { ensureStarterAgentsInitialized } from "../../agent/starter-agents.js";
|
|
7
|
+
import { bootstrapApplicationStateSync } from "../../bootstrap/application-state.js";
|
|
8
8
|
import { dirname } from "node:path";
|
|
9
9
|
import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
10
10
|
import { randomBytes } from "node:crypto";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { loadConfig } from "../../config/loader.js";
|
|
2
1
|
import { SessionIndex } from "../../session/manager.js";
|
|
3
2
|
import "../../session/index.js";
|
|
3
|
+
import { loadConfig } from "../../config/loader.js";
|
|
4
4
|
//#region src/cli/utils/session.ts
|
|
5
5
|
/**
|
|
6
6
|
* Session management utilities for CLI commands
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DurableState } from "../storage/sqlite/durable-state.js";
|
|
2
1
|
import { inferMemorySensitivity } from "../agent/memory/sensitivity.js";
|
|
2
|
+
import { DurableState } from "../storage/sqlite/durable-state.js";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/computer/flows.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComputerActionSchema, init_src } from "../../packages/computer-control-contract/src/index.js";
|
|
2
|
+
import { ComputerButtonPlan, ComputerButtonPlanSchema } from "./semantic-plan.js";
|
|
2
3
|
import { ComputerDiagnosticSchema, ComputerOperationError, computerDiagnostic } from "./errors.js";
|
|
3
4
|
import { normalizeComputerKeys } from "./keyboard.js";
|
|
4
|
-
import { ComputerButtonPlan, ComputerButtonPlanSchema } from "./semantic-plan.js";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/computer/model-adapter.ts
|
|
@@ -5,12 +5,12 @@ import { COMPUTER_CONTROL_TOOL, ComputerAppSchema, ComputerObservationSchema, Co
|
|
|
5
5
|
import { ComputerServiceLimitsSchema, computerModelProfile, init_model_policy } from "./model-policy.js";
|
|
6
6
|
import { getApiKey, init_providers, resolveModel } from "../providers/index.js";
|
|
7
7
|
import { rejectUnbudgetedCloudTransport } from "../providers/xopc-cloud-credit-budget.js";
|
|
8
|
-
import { ComputerDiagnosticSchema, ComputerOperationError, computerDiagnostic, computerRecovery } from "./errors.js";
|
|
9
8
|
import { enterComputerControl, leaveComputerControl } from "./control-guard.js";
|
|
10
|
-
import {
|
|
11
|
-
import { ComputerFlowCapture, ComputerFlowStore, computerFlowHint, computerFlowMetadata } from "./flows.js";
|
|
9
|
+
import { ComputerDiagnosticSchema, ComputerOperationError, computerDiagnostic, computerRecovery } from "./errors.js";
|
|
12
10
|
import { createComputerModelAdapter, predictComputerStep, readComputerJson } from "./model-adapter.js";
|
|
13
11
|
import { groundComputerAction } from "./semantic-actions.js";
|
|
12
|
+
import { ComputerFlowCapture, ComputerFlowStore, computerFlowHint, computerFlowMetadata } from "./flows.js";
|
|
13
|
+
import { ComputerNativeTimingSchema, ComputerSessionDiagnostics } from "./diagnostics.js";
|
|
14
14
|
import { ComputerExpectationSchema, ComputerTaskState, verifyComputerExpectation } from "./task-state.js";
|
|
15
15
|
import { randomUUID } from "node:crypto";
|
|
16
16
|
import { z } from "zod";
|
package/dist/src/config/index.js
CHANGED
|
@@ -9,16 +9,16 @@ import { AgentImageGenerationModelSchema, AgentModelRefSchema, AgentModelsSchema
|
|
|
9
9
|
import { extractProfileAgentId, resolveEffectiveAgentConfigForAgent, resolveEffectiveAgentConfigForSession, resolveEffectiveAgentProfile, resolveEffectiveAgentProfileForSession } from "./agent-profile.js";
|
|
10
10
|
import { clearConfigValueCache, getAllowedCommands, getCacheStats, init_resolve_config_value, resolveConfigValue, resolveHeaders, testApiKeyResolution } from "./resolve-config-value.js";
|
|
11
11
|
import { CustomModelSchema, ImageGenerationCapabilitiesSchema, ImageGenerationModelSchema, ImageGenerationProviderSchema, ModelOverrideSchema, ModelsJsonSchema, OpenAICompatSchema, OpenAICompletionsCompatSchema, OpenAIResponsesCompatSchema, OpenRouterRoutingSchema, ProviderConfigSchema, VercelGatewayRoutingSchema, getDefaultModelValues, init_models_json, loadModelsJson, modelsJsonExists, saveModelsJson, validateModelsConfig } from "./models-json.js";
|
|
12
|
-
import { loadConfig, saveConfig } from "./loader.js";
|
|
13
|
-
import { formatThinkingLevels, listThinkingLevels, normalizeElevatedMode, normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel, thinkLevelToNumber } from "../agent/transcript/thinking-types.js";
|
|
14
12
|
import { getWorkspacePath } from "./workspace-path-helpers.js";
|
|
13
|
+
import { applyConfigOverrides, getConfigOverrides, resetConfigOverrides, setConfigOverride, unsetConfigOverride } from "./runtime-overrides.js";
|
|
14
|
+
import { canonicalizeConfiguredMcpServer, normalizeConfiguredMcpServers } from "./mcp-config-normalize.js";
|
|
15
|
+
import { formatThinkingLevels, listThinkingLevels, normalizeElevatedMode, normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel, thinkLevelToNumber } from "../agent/transcript/thinking-types.js";
|
|
16
|
+
import { loadConfig, saveConfig } from "./loader.js";
|
|
15
17
|
import { listAgentProfileMarkdownDirs, listAgentWorkspaceDirs } from "./workspace-dirs.js";
|
|
16
18
|
import { ProfileManager, createProfile, deleteProfile, getCurrentProfile, getProfileManager, getProfileNameFromDir, getSwitchCommand, listProfiles, resolveProfileStateDir } from "./profile.js";
|
|
17
19
|
import { diffConfigPaths } from "./diff.js";
|
|
18
20
|
import { BASE_RELOAD_RULES, buildReloadPlan, matchReloadRule } from "./rules.js";
|
|
19
21
|
import { ConfigHotReloader } from "./reload.js";
|
|
20
|
-
import { applyConfigOverrides, getConfigOverrides, resetConfigOverrides, setConfigOverride, unsetConfigOverride } from "./runtime-overrides.js";
|
|
21
|
-
import { canonicalizeConfiguredMcpServer, normalizeConfiguredMcpServers } from "./mcp-config-normalize.js";
|
|
22
22
|
//#region src/config/index.ts
|
|
23
23
|
init_schema();
|
|
24
24
|
init_paths();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
-
import { init_paths, resolveConfigPath } from "./paths.js";
|
|
4
3
|
import { init_write_file_atomic, writeTextAtomic } from "../infra/write-file-atomic.js";
|
|
4
|
+
import { init_paths, resolveConfigPath } from "./paths.js";
|
|
5
5
|
import { ConfigSchema, init_schema } from "./schema.js";
|
|
6
6
|
import { init_resolution, setActivePlatformDiscovery } from "../platform/resolution.js";
|
|
7
7
|
import { assertChannelPluginConfigs } from "./validate-channel-configs.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { init_paths, resolveModelsJsonPath } from "./paths.js";
|
|
3
2
|
import { init_write_file_atomic, writeTextAtomicSync } from "../infra/write-file-atomic.js";
|
|
3
|
+
import { init_paths, resolveModelsJsonPath } from "./paths.js";
|
|
4
4
|
import { PhoneModelMetadataSchema, init_contracts } from "../phone/contracts.js";
|
|
5
5
|
import { ComputerProfileSchema, init_src } from "../../packages/computer-control-contract/src/index.js";
|
|
6
6
|
import { init_model_policy, isComputerModel } from "../computer/model-policy.js";
|
|
@@ -2,9 +2,9 @@ import { createLogger } from "../../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { getConnectorAccount, init_connector_account_repository } from "../../storage/sqlite/connector-account-repository.js";
|
|
4
4
|
import { getConnectorConnection, getConnectorInstallation, init_connector_repository, upsertConnectorInstallation } from "../../storage/sqlite/connector-repository.js";
|
|
5
|
+
import { cliContextPath, startCliProcess } from "./process.js";
|
|
5
6
|
import { getCliAdapter } from "./adapterRegistry.js";
|
|
6
7
|
import { getConnectorInstance, getInstalledConnectorDefinition } from "../instances.js";
|
|
7
|
-
import { cliContextPath, startCliProcess } from "./process.js";
|
|
8
8
|
import { installCli } from "./installer.js";
|
|
9
9
|
import { cliAuthorizationView, commitCliIdentity, createCliAuthorization, readCliAuthorization, updateCliAuthorization } from "./store.js";
|
|
10
10
|
import { join, relative } from "node:path";
|
|
@@ -3,8 +3,8 @@ import { init_logger } from "../utils/logger.js";
|
|
|
3
3
|
import { getSqliteDatabase, init_transaction } from "../storage/sqlite/transaction.js";
|
|
4
4
|
import { getConnectorAccount, init_connector_account_repository, reconcileConnectorAccount } from "../storage/sqlite/connector-account-repository.js";
|
|
5
5
|
import { appendConnectorExecutionAudit, getConnectorConnection, getConnectorInstallation, init_connector_repository, listConnectorConnections, upsertConnectorConnection } from "../storage/sqlite/connector-repository.js";
|
|
6
|
-
import { canAccessConnectorAccount } from "./account-access.js";
|
|
7
6
|
import { CredentialResolver, init_credentials } from "../auth/credentials.js";
|
|
7
|
+
import { canAccessConnectorAccount } from "./account-access.js";
|
|
8
8
|
import { ensureComposioBackend, getComposioBackend, listComposioBackends, resolveBackendKey } from "./composio-backends.js";
|
|
9
9
|
import { saveAuthorizationAttempt } from "./authorization-attempts.js";
|
|
10
10
|
import { connectorIdentityKey, mergeConnectorIdentity } from "./connector-identity.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getConnectorAccount, init_connector_account_repository, refreshConnectorAccountCurrent, updateConnectorAccount } from "../storage/sqlite/connector-account-repository.js";
|
|
2
2
|
import { getConnectorConnection, getConnectorInstallation, init_connector_repository, listConnectorConnections, upsertConnectorActionMetadata, upsertConnectorConnection, upsertConnectorInstallation } from "../storage/sqlite/connector-repository.js";
|
|
3
|
-
import { canAccessConnectorAccount, currentAccountConnections } from "./account-access.js";
|
|
4
3
|
import { CredentialResolver, init_credentials } from "../auth/credentials.js";
|
|
4
|
+
import { canAccessConnectorAccount, currentAccountConnections } from "./account-access.js";
|
|
5
5
|
import { activateComposioBackend, addComposioBackend, ensureComposioBackend, getComposioBackend, listComposioBackends, markComposioBackendVerified, resolveBackendKey } from "./composio-backends.js";
|
|
6
6
|
import { connectorIdentityKey } from "./connector-identity.js";
|
|
7
7
|
import { ComposioSessionsAdapter, assertComposioAccessConfigured } from "./composio-sessions.js";
|