@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
|
@@ -2,12 +2,12 @@ import { init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/t
|
|
|
2
2
|
import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
|
|
3
3
|
import "../storage/sqlite/index.js";
|
|
4
4
|
import { changedFieldsFromPatch, emitActivity, systemActivityActor, systemActivitySource } from "../activity/emitter.js";
|
|
5
|
-
import { ExecutionEnvironmentStore } from "../execution-environments/store.js";
|
|
6
5
|
import { ProjectStore } from "./project-store.js";
|
|
7
6
|
import { enqueueProjectChanged } from "./project-change-events.js";
|
|
8
7
|
import { ProjectWorkspaceConflictError, ProjectWorkspaceMissingError, canonicalWorkspacePath, inferProjectNameFromWorkspaceRoot, isPathSameOrInsideWorkspace, isSafeAutoCreateWorkspaceRoot, resolveWorkspaceProjectRoot, workspaceDirectoryExists } from "./workspace-project.js";
|
|
9
8
|
import { drainProjectWorkspaceCreation, queueProjectWorkspaceCreation } from "./project-workspace-creation.js";
|
|
10
9
|
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
10
|
+
import { ExecutionEnvironmentStore } from "../execution-environments/store.js";
|
|
11
11
|
import { listPendingProjectUnderstandingRuns } from "../work-discovery/repository.js";
|
|
12
12
|
import { inferProjectExecutionMode } from "./project-kind.js";
|
|
13
13
|
import { bindSessionToProject, listProjectConversationIds, unbindSessionFromProject } from "./session-bind.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { init_paths, resolveBundledSkillsDir } from "../config/paths.js";
|
|
2
|
-
import { removeSkillsLockEntry } from "../agent/skills/hub-lock.js";
|
|
3
|
-
import { deleteManagedSkill, installSkillFromZip, isValidSkillId } from "../agent/skills/managed-store.js";
|
|
4
2
|
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "../agent/skills/workspace-skills-dir.js";
|
|
5
3
|
import { loadSkills, loadWorkspaceSkillInventory } from "../agent/skills/index.js";
|
|
4
|
+
import { removeSkillsLockEntry } from "../agent/skills/hub-lock.js";
|
|
5
|
+
import { deleteManagedSkill, installSkillFromZip, isValidSkillId } from "../agent/skills/managed-store.js";
|
|
6
6
|
import { pullSkillFromSource } from "../agent/skills/hub-pull.js";
|
|
7
7
|
import { downloadFromMarketplace } from "../agent/skills/skills-marketplace.js";
|
|
8
8
|
import { basename, dirname, join, relative, resolve, sep } from "node:path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { isXopcDatabaseOpen } from "../storage/sqlite/connection.js";
|
|
2
2
|
import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
|
|
3
3
|
import "../storage/sqlite/index.js";
|
|
4
|
+
import { ProjectStore } from "./project-store.js";
|
|
4
5
|
import { resolveEffectiveAgentProfileForSession } from "../config/agent-profile.js";
|
|
5
6
|
import { projectWorkspacePath } from "../session/session-workspace.js";
|
|
6
|
-
import { ProjectStore } from "./project-store.js";
|
|
7
7
|
//#region src/projects/workspace.ts
|
|
8
8
|
function resolveProjectWorkspacePath(config, conversationId, project) {
|
|
9
9
|
const projectWorkspace = projectWorkspacePath(project);
|
|
@@ -4,8 +4,8 @@ import { init_model_policy, isComputerModel, isDedicatedComputerProfile } from "
|
|
|
4
4
|
import { getModelCatalogStore, init_model_catalog_store } from "./model-catalog-store.js";
|
|
5
5
|
import { getModelRegistry, init_model_registry } from "./model-registry.js";
|
|
6
6
|
import { phoneModelProfile } from "../phone/model-adapter.js";
|
|
7
|
-
import { parseImageGenerationModelRef } from "../agent/image/generation/model-ref.js";
|
|
8
7
|
import { getImageGenerationProvider } from "../agent/image/generation/provider-registry.js";
|
|
8
|
+
import { parseImageGenerationModelRef } from "../agent/image/generation/model-ref.js";
|
|
9
9
|
//#region src/providers/model-reference-auditor.ts
|
|
10
10
|
init_contracts();
|
|
11
11
|
init_repository();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { hasGatewayScope } from "../gateway/security/gateway-scopes.js";
|
|
4
|
-
import { EndpointToolPolicyError } from "../endpoint-tools/policy.js";
|
|
5
4
|
import { REALTIME_CAPABILITIES, REALTIME_HEARTBEAT_INTERVAL_MS, REALTIME_HEARTBEAT_TIMEOUT_MS, REALTIME_HELLO_TIMEOUT_MS, REALTIME_MAX_CLIENT_FRAME_BYTES, parseClientRealtimeJsonFrame, parseClientRealtimeMessage } from "../../packages/realtime-protocol/src/index.js";
|
|
5
|
+
import { EndpointToolPolicyError } from "../endpoint-tools/policy.js";
|
|
6
6
|
import { verifyDeviceConnectionProof } from "../gateway/security/device-request-proof.js";
|
|
7
7
|
import { compactRunEvent } from "./compact-run-event.js";
|
|
8
8
|
import { createPreauthConnectionBudget } from "../gateway/security/preauth-connection-budget.js";
|
|
@@ -2,9 +2,9 @@ import { createLogger } from "../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { isTailscaleInstalled } from "../infra/tailscale.js";
|
|
4
4
|
import { resolveGatewayBindMode } from "../config/gateway-bind.js";
|
|
5
|
-
import { getTunnelService } from "../tunnel/tunnel-service.js";
|
|
6
5
|
import { collectExposureConflicts } from "./exposure-guards.js";
|
|
7
6
|
import { getTailscaleExposureState, maybeStartTailscaleFromConfig, stopTailscaleExposure } from "../gateway/tailscale-lifecycle.js";
|
|
7
|
+
import { getTunnelService } from "../tunnel/tunnel-service.js";
|
|
8
8
|
import { getTunnelConsentState } from "../tunnel/consent.js";
|
|
9
9
|
import { maybeAutoStartTunnelFromConfig } from "../tunnel/gateway-lifecycle.js";
|
|
10
10
|
//#region src/remote-access/exposure-manager.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { validateConversationId } from "../../packages/gateway-contract/src/conversation-identity.js";
|
|
3
3
|
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
4
|
+
import { init_string_coerce, normalizeLowercaseStringOrEmpty } from "../utils/string-coerce.js";
|
|
4
5
|
import { DEFAULT_ACCOUNT_ID, init_account_id, normalizeAccountId, normalizeOptionalAccountId } from "./account-id.js";
|
|
5
6
|
import { init_conversation_repository, requireConversation, resolveRoutedConversation } from "../storage/sqlite/conversation-repository.js";
|
|
6
|
-
import { init_string_coerce, normalizeLowercaseStringOrEmpty } from "../utils/string-coerce.js";
|
|
7
7
|
//#region src/routing/agent-session-key.ts
|
|
8
8
|
function normalizeMainKey(value) {
|
|
9
9
|
return normalizeLowercaseStringOrEmpty(value) || "main";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ADB_VERSION, SCRCPY_VERSION, managedPhoneAdbDir, managedPhoneAdbPath, managedScrcpyServerPath, phoneDependencyAsset } from "./phone-dependency-catalog.js";
|
|
2
|
-
import { resolveAdbPath } from "../phone/adb-driver.js";
|
|
3
1
|
import { RuntimeError } from "./errors.js";
|
|
4
2
|
import { extractRuntimeArchive } from "./archive.js";
|
|
5
3
|
import { runRuntimeCommand } from "./command.js";
|
|
6
4
|
import { downloadVerifiedArchive, sha256File } from "./downloader.js";
|
|
7
5
|
import { withInstallLock } from "./install-lock.js";
|
|
8
6
|
import { runtimeDownloadPath } from "./paths.js";
|
|
7
|
+
import { ADB_VERSION, SCRCPY_VERSION, managedPhoneAdbDir, managedPhoneAdbPath, managedScrcpyServerPath, phoneDependencyAsset } from "./phone-dependency-catalog.js";
|
|
8
|
+
import { resolveAdbPath } from "../phone/adb-driver.js";
|
|
9
9
|
import { dirname, isAbsolute, join } from "node:path";
|
|
10
10
|
import { randomUUID } from "node:crypto";
|
|
11
11
|
import { EventEmitter } from "node:events";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { buildSessionContextForLlm, init_session_context_for_llm, isTranscriptContextEntry, mergeLlmMessagesPreservingContextRows, transcriptRowsFromJsonArray } from "./session-context-for-llm.js";
|
|
2
2
|
import { SessionStatus, init_types } from "./types.js";
|
|
3
|
-
import { effectiveWorkspacePathForSession, normalizeWorkingDirectoryInput, projectWorkspacePath } from "./session-workspace.js";
|
|
4
3
|
import { emitSessionTranscriptUpdate, onSessionTranscriptUpdate } from "./transcript-events.js";
|
|
5
|
-
import {
|
|
4
|
+
import { effectiveWorkspacePathForSession, normalizeWorkingDirectoryInput, projectWorkspacePath } from "./session-workspace.js";
|
|
6
5
|
import { fallbackTitleFromMessages, generateSessionTitleFromMessages, getSessionTitleSource, isWebchatConversationId, maybeRefineSessionTitleWithLlm, maybeSetProvisionalSessionTitle, provisionalTitleFromUserText, sanitizeGeneratedSessionTitle, sanitizeSessionTitle, shouldAutoTitleConversationId, shouldRefineSessionTitleWithLlm } from "./session-title.js";
|
|
6
|
+
import { flattenMessageContent, messagesToClientHistory } from "./client-history.js";
|
|
7
7
|
import { SessionStore } from "./store.js";
|
|
8
8
|
import { applySessionPatchToMetadata } from "./patch-metadata.js";
|
|
9
9
|
import { SessionIndex } from "./manager.js";
|
|
@@ -2,8 +2,8 @@ import { createLogger } from "../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { requireXopcDatabase } from "../storage/sqlite/connection.js";
|
|
4
4
|
import "../storage/sqlite/index.js";
|
|
5
|
-
import { SessionConfigSchema, init_schema } from "../config/schema.js";
|
|
6
5
|
import { isPersonalConversation } from "../personal-agent/repository.js";
|
|
6
|
+
import { SessionConfigSchema, init_schema } from "../config/schema.js";
|
|
7
7
|
import { evaluateSessionFreshness, resolveSessionResetPolicy } from "./reset-policy.js";
|
|
8
8
|
import { resolveChannelResetConfig, resolveSessionResetType } from "./reset-type.js";
|
|
9
9
|
import { resolveSessionLifecycleTimestamps } from "./lifecycle-timestamps.js";
|
|
@@ -5,8 +5,8 @@ import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js
|
|
|
5
5
|
import { findConversationIdByTranscriptId } from "../storage/sqlite/session-repository.js";
|
|
6
6
|
import { getSessionConfig } from "../storage/sqlite/config-repository.js";
|
|
7
7
|
import "../storage/sqlite/index.js";
|
|
8
|
-
import { SessionConfigSchema, init_schema } from "../config/schema.js";
|
|
9
8
|
import { isPersonalConversation } from "../personal-agent/repository.js";
|
|
9
|
+
import { SessionConfigSchema, init_schema } from "../config/schema.js";
|
|
10
10
|
import { normalizeThinkLevel, normalizeVerboseLevel } from "../agent/transcript/thinking-types.js";
|
|
11
11
|
import { evaluateSessionFreshness, resolveSessionResetPolicy } from "./reset-policy.js";
|
|
12
12
|
import { resolveChannelResetConfig, resolveSessionResetType } from "./reset-type.js";
|
|
@@ -13,22 +13,22 @@ import { appendCompactionBoundaryIfUnchanged, appendTranscriptEntry, archiveFail
|
|
|
13
13
|
import { getSessionConfig, setSessionConfig } from "../storage/sqlite/config-repository.js";
|
|
14
14
|
import "../storage/sqlite/index.js";
|
|
15
15
|
import { init_agent_session_key, resolveAgentIdFromConversationId } from "../routing/agent-session-key.js";
|
|
16
|
-
import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
|
|
17
16
|
import { resolveEffectiveAgentProfile } from "../config/agent-profile.js";
|
|
18
|
-
import { ACCEPTANCE_REPAIR_READ_TOOLS, canResumeAfterModelFailure } from "../agent/orchestration/turn-recovery.js";
|
|
19
17
|
import { DurableState } from "../storage/sqlite/durable-state.js";
|
|
20
|
-
import {
|
|
21
|
-
import { SessionCompactor } from "../agent/memory/compaction.js";
|
|
22
|
-
import { resolveCompactionPolicy } from "../agent/memory/compaction-policy.js";
|
|
18
|
+
import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
|
|
23
19
|
import { IdleCompactionScheduler } from "../agent/memory/idle-compaction-scheduler.js";
|
|
24
20
|
import { readPostCompactionContext } from "../agent/reply/post-compaction-context.js";
|
|
21
|
+
import { SessionCompactor } from "../agent/memory/compaction.js";
|
|
22
|
+
import { resolveCompactionPolicy } from "../agent/memory/compaction-policy.js";
|
|
25
23
|
import { promoteCompactionLedger } from "../agent/memory/compaction-promotion.js";
|
|
26
24
|
import { SlidingWindow } from "../agent/memory/window.js";
|
|
27
25
|
import { isAppendOnlyLlmTranscriptMessage } from "./transcript-stats.js";
|
|
26
|
+
import { transcriptRowsToClientHistory } from "./client-history.js";
|
|
28
27
|
import { compactHistory } from "./compact-history.js";
|
|
29
28
|
import { backfillStructuredTurnOutcomes } from "./turn-outcome-projector.js";
|
|
30
29
|
import { computeTranscriptUserRoundDeleteRange } from "./user-round-delete.js";
|
|
31
30
|
import { findSessionMessages } from "./session-find.js";
|
|
31
|
+
import { ACCEPTANCE_REPAIR_READ_TOOLS, canResumeAfterModelFailure } from "../agent/orchestration/turn-recovery.js";
|
|
32
32
|
//#region src/session/store.ts
|
|
33
33
|
init_paths_state();
|
|
34
34
|
init_agent_session_key();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolveReasoningLevel, resolveThinkingLevel } from "./config-store.js";
|
|
2
1
|
import { normalizeThinkLevel } from "../agent/transcript/thinking-types.js";
|
|
2
|
+
import { resolveReasoningLevel, resolveThinkingLevel } from "./config-store.js";
|
|
3
3
|
//#region src/session/thinking-resolve.ts
|
|
4
4
|
const FALLBACK = "medium";
|
|
5
5
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { init_connection, requireXopcDatabase } from "../storage/sqlite/connection.js";
|
|
2
2
|
import { init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
3
|
-
import { init_resolution, resolveConnectedPlatformEndpoint } from "../platform/resolution.js";
|
|
4
|
-
import { CredentialResolver, init_credentials } from "../auth/credentials.js";
|
|
5
3
|
import { resolveMediaReference } from "../media/media-reference.js";
|
|
4
|
+
import { init_resolution, resolveConnectedPlatformEndpoint } from "../platform/resolution.js";
|
|
6
5
|
import { DurableState } from "../storage/sqlite/durable-state.js";
|
|
6
|
+
import { CredentialResolver, init_credentials } from "../auth/credentials.js";
|
|
7
7
|
import { projectSessionShare } from "./session-share-projector.js";
|
|
8
8
|
import { SessionShareSnapshotConflictError } from "./session-share-service.js";
|
|
9
9
|
import { basename } from "node:path";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { resolveStateDir } from "../config/paths-state.js";
|
|
2
2
|
import { createLogger } from "../utils/logger/index.js";
|
|
3
3
|
import { init_logger } from "../utils/logger.js";
|
|
4
|
-
import { init_paths } from "../config/paths.js";
|
|
5
4
|
import { resolveMediaReference } from "../media/media-reference.js";
|
|
5
|
+
import { init_paths } from "../config/paths.js";
|
|
6
6
|
import { projectSessionShare } from "./session-share-projector.js";
|
|
7
7
|
import { issueShareAssetTicket, verifyShareAssetTicket } from "./share-asset-ticket.js";
|
|
8
8
|
import { basename, join } from "node:path";
|
|
@@ -5,8 +5,8 @@ import { init_connection, requireXopcDatabase } from "../storage/sqlite/connecti
|
|
|
5
5
|
import { init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
6
6
|
import { init_paths } from "../config/paths.js";
|
|
7
7
|
import { DurableState } from "../storage/sqlite/durable-state.js";
|
|
8
|
-
import { SHARE_CONFIG_DEFAULTS } from "./share-types.js";
|
|
9
8
|
import { isPathUnderWorkspace } from "../gateway/workspace-editor-path.js";
|
|
9
|
+
import { SHARE_CONFIG_DEFAULTS } from "./share-types.js";
|
|
10
10
|
import { logShareAudit } from "./share-audit.js";
|
|
11
11
|
import { join, relative, resolve } from "node:path";
|
|
12
12
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
@@ -2,9 +2,9 @@ import { resolveStateDir } from "../config/paths-state.js";
|
|
|
2
2
|
import { createLogger } from "../utils/logger/index.js";
|
|
3
3
|
import { init_logger } from "../utils/logger.js";
|
|
4
4
|
import { init_paths } from "../config/paths.js";
|
|
5
|
+
import { loadPlaywrightCoreModule } from "../browser/providers/playwright-doctor.js";
|
|
5
6
|
import { getShareStore } from "./share-store.js";
|
|
6
7
|
import { getSiteShareStore } from "./site-share-store.js";
|
|
7
|
-
import { loadPlaywrightCoreModule } from "../browser/providers/playwright-doctor.js";
|
|
8
8
|
import { join } from "node:path";
|
|
9
9
|
import { mkdir, readFile, stat, unlink, writeFile } from "node:fs/promises";
|
|
10
10
|
//#region src/share/share-thumbnail.ts
|
|
@@ -3,8 +3,8 @@ import { init_logger } from "../utils/logger.js";
|
|
|
3
3
|
import { init_connection, requireXopcDatabase } from "../storage/sqlite/connection.js";
|
|
4
4
|
import { init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
5
5
|
import { DurableState } from "../storage/sqlite/durable-state.js";
|
|
6
|
-
import { SITE_SHARE_CONFIG_DEFAULTS } from "./site-share-types.js";
|
|
7
6
|
import { isPathUnderWorkspace } from "../gateway/workspace-editor-path.js";
|
|
7
|
+
import { SITE_SHARE_CONFIG_DEFAULTS } from "./site-share-types.js";
|
|
8
8
|
import { relative, resolve } from "node:path";
|
|
9
9
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
10
10
|
import { lstat, readdir, realpath, stat } from "node:fs/promises";
|
|
@@ -7,7 +7,7 @@ import { ensureXopcDatabaseSchema, init_schema } from "./schema.js";
|
|
|
7
7
|
import { init_node_sqlite, requireNodeSqlite } from "../../infra/node-sqlite.js";
|
|
8
8
|
import { init_unhandled_rejections, installSqliteTransientRejectionHandler } from "../../infra/unhandled-rejections.js";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import fsSync from "node:fs";
|
|
11
11
|
import childProcess from "node:child_process";
|
|
12
12
|
//#region src/storage/sqlite/connection.ts
|
|
13
13
|
function normalizeNonNegativeInteger(value, label) {
|
|
@@ -17,7 +17,7 @@ function normalizeNonNegativeInteger(value, label) {
|
|
|
17
17
|
function findExistingVolumePath(targetPath) {
|
|
18
18
|
let current = path.resolve(targetPath);
|
|
19
19
|
while (true) try {
|
|
20
|
-
return
|
|
20
|
+
return fsSync.statSync(current).isDirectory() ? current : path.dirname(current);
|
|
21
21
|
} catch {
|
|
22
22
|
const parent = path.dirname(current);
|
|
23
23
|
if (parent === current) return null;
|
|
@@ -64,7 +64,7 @@ function parseMountCommandEntries(contents) {
|
|
|
64
64
|
}
|
|
65
65
|
function readMountEntries() {
|
|
66
66
|
try {
|
|
67
|
-
return parseProcMountInfoEntries(
|
|
67
|
+
return parseProcMountInfoEntries(fsSync.readFileSync(PROC_MOUNTINFO_PATH, "utf8"));
|
|
68
68
|
} catch {}
|
|
69
69
|
try {
|
|
70
70
|
return parseMountCommandEntries(String(childProcess.execFileSync("mount", [])));
|
|
@@ -91,7 +91,7 @@ function isNetworkMountEntryPath(targetPath) {
|
|
|
91
91
|
return mountEntry ? isNetworkMountType(mountEntry.fsType) : false;
|
|
92
92
|
}
|
|
93
93
|
function isNetworkBackedPath(targetPath) {
|
|
94
|
-
if (typeof
|
|
94
|
+
if (typeof fsSync.statfsSync !== "function") return isNetworkMountEntryPath(targetPath);
|
|
95
95
|
const checkedPath = findExistingVolumePath(targetPath);
|
|
96
96
|
if (!checkedPath) return false;
|
|
97
97
|
try {
|
|
@@ -100,7 +100,7 @@ function isNetworkBackedPath(targetPath) {
|
|
|
100
100
|
4283649346,
|
|
101
101
|
4266872130,
|
|
102
102
|
20859
|
|
103
|
-
].includes(
|
|
103
|
+
].includes(fsSync.statfsSync(checkedPath).type >>> 0)) return true;
|
|
104
104
|
} catch {
|
|
105
105
|
return isNetworkMountEntryPath(checkedPath);
|
|
106
106
|
}
|
|
@@ -145,13 +145,13 @@ function ensureDatabasePermissions(pathname) {
|
|
|
145
145
|
if (pathname === ":memory:") return;
|
|
146
146
|
const dir = pathname.slice(0, Math.max(pathname.lastIndexOf("/"), pathname.lastIndexOf("\\")));
|
|
147
147
|
if (dir) {
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
fsSync.mkdirSync(dir, { recursive: true });
|
|
149
|
+
fsSync.chmodSync(dir, DB_DIR_MODE);
|
|
150
150
|
}
|
|
151
151
|
for (const suffix of DB_SIDECAR_SUFFIXES) {
|
|
152
152
|
const candidate = `${pathname}${suffix}`;
|
|
153
|
-
if (!
|
|
154
|
-
|
|
153
|
+
if (!fsSync.existsSync(candidate)) continue;
|
|
154
|
+
fsSync.chmodSync(candidate, DB_FILE_MODE);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
function openDatabaseAtPath(pathname) {
|
|
@@ -4,10 +4,10 @@ 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 { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
6
6
|
import { defineReadCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
7
|
-
import { TaskReadModelProjector } from "../task-read-model-projector.js";
|
|
8
|
-
import { TaskConversationRepository } from "../task-conversation-repository.js";
|
|
9
7
|
import { TaskContextRepository } from "../task-context-repository.js";
|
|
8
|
+
import { TaskReadModelProjector } from "../task-read-model-projector.js";
|
|
10
9
|
import { TaskDependencyService } from "../task-dependency-service.js";
|
|
10
|
+
import { TaskConversationRepository } from "../task-conversation-repository.js";
|
|
11
11
|
import { TaskCriterionReviewRepository } from "../task-criterion-review-repository.js";
|
|
12
12
|
import { TaskValueMetricsService } from "../task-value-metrics-service.js";
|
|
13
13
|
//#region src/tasks/capabilities/read.ts
|
|
@@ -6,8 +6,8 @@ import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
|
6
6
|
import { defineAtomicCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
7
7
|
import { resolveTaskLocale } from "../task-language.js";
|
|
8
8
|
import { resolveProjectAgentId } from "../../projects/project-agent.js";
|
|
9
|
-
import { resolveResponseLanguageForSession } from "../../agent/prompt/response-language.js";
|
|
10
9
|
import { TaskApplicationService } from "../task-application-service.js";
|
|
10
|
+
import { resolveResponseLanguageForSession } from "../../agent/prompt/response-language.js";
|
|
11
11
|
import { TaskSignalService } from "../task-signal-service.js";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
//#region src/tasks/capabilities/write.ts
|
|
@@ -5,8 +5,8 @@ import { listConnectorApprovals } from "../storage/sqlite/connector-repository.j
|
|
|
5
5
|
import "../storage/sqlite/index.js";
|
|
6
6
|
import { TaskReadModelProjector } from "./task-read-model-projector.js";
|
|
7
7
|
import "../automations/domain/defaults.js";
|
|
8
|
-
import { AttentionGovernor } from "./attention-governor.js";
|
|
9
8
|
import "../automations/index.js";
|
|
9
|
+
import { AttentionGovernor } from "./attention-governor.js";
|
|
10
10
|
//#region src/tasks/home-query-service.ts
|
|
11
11
|
init_task_repository();
|
|
12
12
|
init_task_run_repository();
|
package/dist/src/tasks/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { enqueueTaskAttentionRequiredEvent, enqueueTaskChanged, enqueueTaskChangedEvent, init_task_change_events } from "./task-change-events.js";
|
|
2
2
|
import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
3
3
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
4
|
+
import { TaskContextRepository } from "./task-context-repository.js";
|
|
4
5
|
import { TaskReadModelProjector } from "./task-read-model-projector.js";
|
|
6
|
+
import { TaskDependencyError, TaskDependencyService } from "./task-dependency-service.js";
|
|
5
7
|
import { TaskConversationConflictError, TaskConversationRepository } from "./task-conversation-repository.js";
|
|
8
|
+
import { TaskApplicationService } from "./task-application-service.js";
|
|
6
9
|
import { defineTaskContract } from "./task-contract-definition.js";
|
|
7
|
-
import {
|
|
8
|
-
import { TaskDependencyError, TaskDependencyService } from "./task-dependency-service.js";
|
|
10
|
+
import { assembleTaskContext, buildDelegatedTaskDirective, buildTaskExecutionDirective, getTaskContextManifest, getTaskExecutionBrief } from "./task-context-assembler.js";
|
|
9
11
|
import { TaskValueMetricsService } from "./task-value-metrics-service.js";
|
|
10
12
|
import { TaskDeletionService } from "./task-deletion-service.js";
|
|
11
|
-
import { TaskApplicationService } from "./task-application-service.js";
|
|
12
13
|
import { TaskSignalService } from "./task-signal-service.js";
|
|
13
14
|
import { resolveExecutionContext } from "./execution-context.js";
|
|
14
15
|
import { AttentionGovernor } from "./attention-governor.js";
|
|
15
16
|
import { HomeQueryService, buildHomeWorkbench, decisionFromTask } from "./home-query-service.js";
|
|
16
17
|
import { ModelTaskContractPlanner, parseTaskContractResponse } from "./task-contract-planner.js";
|
|
17
|
-
import { assembleTaskContext, buildDelegatedTaskDirective, buildTaskExecutionDirective, getTaskContextManifest, getTaskExecutionBrief } from "./task-context-assembler.js";
|
|
18
18
|
import { TaskRunCoordinator } from "./task-run-coordinator.js";
|
|
19
19
|
import { ProjectOperatingViewService, summarizeProjectOperatingView } from "./project-operating-view-service.js";
|
|
20
20
|
import { TaskHandoffService } from "./task-handoff-service.js";
|
|
@@ -9,20 +9,20 @@ import { init_request_repository, personalRequestForTask, updatePersonalRequest
|
|
|
9
9
|
import { resolveEffectiveAgentConfig } from "../agent-config/resolver.js";
|
|
10
10
|
import { init_agent_config } from "../agent-config/index.js";
|
|
11
11
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
12
|
-
import { init_providers, resolveModel } from "../providers/index.js";
|
|
13
|
-
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
14
|
-
import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
|
|
15
12
|
import { hasUnlocalizedTaskText, resolveTaskLocale } from "./task-language.js";
|
|
16
13
|
import { TaskAllocationRepository } from "./task-allocation-repository.js";
|
|
14
|
+
import { getTaskHandoff, resolveTaskHandoffReferences } from "./task-handoff.js";
|
|
17
15
|
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
16
|
+
import { TaskApplicationService } from "./task-application-service.js";
|
|
17
|
+
import { AgentSelectionRepository, selectionRequestHash } from "../agent-matching/selection-repository.js";
|
|
18
|
+
import { init_providers, resolveModel } from "../providers/index.js";
|
|
19
|
+
import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
|
|
20
|
+
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
18
21
|
import { defineTaskContract } from "./task-contract-definition.js";
|
|
19
22
|
import { supersededTaskInstructionIds } from "./task-research-result.js";
|
|
20
|
-
import { getTaskHandoff, resolveTaskHandoffReferences } from "./task-handoff.js";
|
|
21
|
-
import { TaskApplicationService } from "./task-application-service.js";
|
|
22
23
|
import { personalCapabilities } from "../personal-agent/capability-service.js";
|
|
23
24
|
import { assessTaskExecutor, captureExecutionRequirements, taskExecutionRequirements } from "./task-execution-capabilities.js";
|
|
24
25
|
import { ModelTaskContractPlanner } from "./task-contract-planner.js";
|
|
25
|
-
import { AgentSelectionRepository, selectionRequestHash } from "../agent-matching/selection-repository.js";
|
|
26
26
|
import { z } from "zod";
|
|
27
27
|
//#region src/tasks/task-allocation-service.ts
|
|
28
28
|
init_src();
|
|
@@ -6,18 +6,18 @@ import { enqueueTaskAttentionRequiredEvent, enqueueTaskChangedEvent, init_task_c
|
|
|
6
6
|
import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
7
7
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
8
8
|
import { init_request_repository, personalRequestForTask } from "../personal-agent/request-repository.js";
|
|
9
|
+
import { TaskContextRepository } from "./task-context-repository.js";
|
|
9
10
|
import { resolveTaskLocale } from "./task-language.js";
|
|
10
11
|
import { TaskAllocationRepository } from "./task-allocation-repository.js";
|
|
11
12
|
import { TaskReadModelProjector } from "./task-read-model-projector.js";
|
|
12
|
-
import {
|
|
13
|
+
import { TaskDependencyService } from "./task-dependency-service.js";
|
|
13
14
|
import { resolvePersonalResultReference } from "../personal-agent/result-reader.js";
|
|
14
|
-
import {
|
|
15
|
+
import { TaskOriginRepository } from "./task-origin-repository.js";
|
|
16
|
+
import { captureTaskHandoff } from "./task-handoff.js";
|
|
15
17
|
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
16
|
-
import {
|
|
17
|
-
import { TaskContextRepository } from "./task-context-repository.js";
|
|
18
|
-
import { TaskDependencyService } from "./task-dependency-service.js";
|
|
18
|
+
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
19
19
|
import { TaskCriterionReviewRepository } from "./task-criterion-review-repository.js";
|
|
20
|
-
import {
|
|
20
|
+
import { TaskResultDeliveryRepository } from "./task-result-delivery-repository.js";
|
|
21
21
|
import { createHash, randomUUID } from "node:crypto";
|
|
22
22
|
//#region src/tasks/task-application-service.ts
|
|
23
23
|
init_src();
|
|
@@ -4,8 +4,8 @@ import { getSqliteDatabase, init_transaction } from "../storage/sqlite/transacti
|
|
|
4
4
|
import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
5
5
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
6
6
|
import { init_request_repository, personalRequestForTask } from "../personal-agent/request-repository.js";
|
|
7
|
-
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
8
7
|
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
8
|
+
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
9
9
|
import { TaskApplicationService } from "./task-application-service.js";
|
|
10
10
|
//#region src/tasks/task-collaboration-delivery.ts
|
|
11
11
|
init_request_repository();
|
|
@@ -6,10 +6,10 @@ import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
|
6
6
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
7
7
|
import { init_request_repository, personalRequestForTask } from "../personal-agent/request-repository.js";
|
|
8
8
|
import "../storage/sqlite/index.js";
|
|
9
|
+
import { TaskContextRepository } from "./task-context-repository.js";
|
|
9
10
|
import { TaskOriginRepository } from "./task-origin-repository.js";
|
|
10
|
-
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
11
11
|
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
12
|
-
import {
|
|
12
|
+
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
13
13
|
//#region src/tasks/task-context-assembler.ts
|
|
14
14
|
init_src();
|
|
15
15
|
init_task_repository();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
-
import { getAgentDefaultChatModelConfig, init_schema } from "../config/schema.js";
|
|
4
3
|
import { hasUnlocalizedTaskText, resolveTaskLocale } from "./task-language.js";
|
|
4
|
+
import { getAgentDefaultChatModelConfig, init_schema } from "../config/schema.js";
|
|
5
5
|
import { completeTaskModelCall } from "./task-model-call.js";
|
|
6
6
|
import { defineTaskContract } from "./task-contract-definition.js";
|
|
7
7
|
import { PERSONAL_WORKER_RESULT_GUIDANCE } from "../personal-agent/communication.js";
|
|
@@ -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 { normalizeAgentId } from "../agent-catalog/id.js";
|
|
6
6
|
import { init_agent_scope, listAgentEntries } from "../agent/agent-scope.js";
|
|
7
|
+
import { TaskContextRepository } from "./task-context-repository.js";
|
|
7
8
|
import { init_session_key, resolveConversationId, sanitizeSegment } from "../routing/session-key.js";
|
|
8
9
|
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
9
|
-
import { TaskContextRepository } from "./task-context-repository.js";
|
|
10
10
|
//#region src/tasks/task-handoff-service.ts
|
|
11
11
|
init_agent_scope();
|
|
12
12
|
init_session_key();
|
|
@@ -8,17 +8,17 @@ import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
|
8
8
|
import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
|
|
9
9
|
import { init_session_repository } from "../storage/sqlite/session-repository.js";
|
|
10
10
|
import { getSessionConfig } from "../storage/sqlite/config-repository.js";
|
|
11
|
-
import {
|
|
12
|
-
import { getProjectForSession } from "../projects/workspace.js";
|
|
11
|
+
import { TaskContextRepository } from "./task-context-repository.js";
|
|
13
12
|
import { resolveMediaReference } from "../media/media-reference.js";
|
|
14
13
|
import { assertPersonalResultDelegateAccess, readPersonalResult, resolvePersonalResultReference } from "../personal-agent/result-reader.js";
|
|
15
|
-
import { fileSpaceId, parseFileResourceId } from "../files/file-service.js";
|
|
16
|
-
import { NotesStore } from "../notes/store.js";
|
|
17
|
-
import { TaskContextRepository } from "./task-context-repository.js";
|
|
18
14
|
import { buildResultAgentContext } from "../agent/source-context/result-context.js";
|
|
19
15
|
import { buildTaskAgentContext } from "../agent/source-context/task-context.js";
|
|
20
16
|
import { parseTurnContextRefs } from "../agent/source-context/types.js";
|
|
21
17
|
import { buildUserAssertionAgentContext } from "../agent/source-context/user-assertion-context.js";
|
|
18
|
+
import { effectiveWorkspacePathForSession } from "../session/session-workspace.js";
|
|
19
|
+
import { getProjectForSession } from "../projects/workspace.js";
|
|
20
|
+
import { fileSpaceId, parseFileResourceId } from "../files/file-service.js";
|
|
21
|
+
import { NotesStore } from "../notes/store.js";
|
|
22
22
|
import { basename, isAbsolute, relative, resolve, sep } from "node:path";
|
|
23
23
|
import { constants } from "node:fs";
|
|
24
24
|
import { createHash } from "node:crypto";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
2
2
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
3
|
-
import { init_providers, resolveModel } from "../providers/index.js";
|
|
4
|
-
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
5
|
-
import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
|
|
6
3
|
import { getPersonalAgentByConversation } from "../personal-agent/repository.js";
|
|
7
4
|
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
5
|
+
import { init_providers, resolveModel } from "../providers/index.js";
|
|
6
|
+
import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
|
|
7
|
+
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
8
8
|
//#region src/tasks/task-main-update-decision-service.ts
|
|
9
9
|
init_providers();
|
|
10
10
|
init_task_repository();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { init_providers, resolveModel } from "../providers/index.js";
|
|
4
|
-
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
5
4
|
import { getAssistantMessageErrorReason, isTransientProviderErrorMessage } from "../providers/model-response.js";
|
|
5
|
+
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
6
6
|
//#region src/tasks/task-model-call.ts
|
|
7
7
|
init_providers();
|
|
8
8
|
init_logger();
|
|
@@ -8,14 +8,14 @@ import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
|
8
8
|
import { init_session_instance_repository, readCurrentTranscriptId } from "../storage/sqlite/session-instance-repository.js";
|
|
9
9
|
import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
10
10
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
11
|
-
import { resolveEffectiveAgentConfigForSession } from "../config/agent-profile.js";
|
|
12
|
-
import { extractAssistantText, stripCodeFences } from "../providers/model-response.js";
|
|
13
11
|
import { readMediaReference } from "../media/media-reference.js";
|
|
14
|
-
import {
|
|
15
|
-
import { completeTaskModelCall } from "./task-model-call.js";
|
|
12
|
+
import { resolveEffectiveAgentConfigForSession } from "../config/agent-profile.js";
|
|
16
13
|
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
14
|
+
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
17
15
|
import { taskInstructionSequence } from "./task-instruction-sequence.js";
|
|
18
16
|
import { TaskResultDeliveryRepository } from "./task-result-delivery-repository.js";
|
|
17
|
+
import { extractAssistantText, stripCodeFences } from "../providers/model-response.js";
|
|
18
|
+
import { completeTaskModelCall } from "./task-model-call.js";
|
|
19
19
|
import { defineTaskContract } from "./task-contract-definition.js";
|
|
20
20
|
import { observedEvidenceExcerpt, suggestedEvidenceRanges } from "./task-evidence-ranges.js";
|
|
21
21
|
import { createHash } from "node:crypto";
|
|
@@ -7,8 +7,8 @@ import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
|
7
7
|
import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
8
8
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
9
9
|
import { init_request_repository, personalRequestForTask } from "../personal-agent/request-repository.js";
|
|
10
|
-
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
11
10
|
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
11
|
+
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
12
12
|
import { hasPersonalResultFileLinks, sanitizePersonalResultFileLinks } from "../personal-agent/result-file-links.js";
|
|
13
13
|
import { taskInstructionSequence } from "./task-instruction-sequence.js";
|
|
14
14
|
import { randomUUID } from "node:crypto";
|
|
@@ -7,17 +7,17 @@ import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
|
7
7
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
8
8
|
import { init_request_repository, personalRequestForTask } from "../personal-agent/request-repository.js";
|
|
9
9
|
import { appendTranscriptEntry } from "../storage/sqlite/transcript-repository.js";
|
|
10
|
-
import { getPersonalAgentByConversation } from "../personal-agent/repository.js";
|
|
11
10
|
import { emitSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
12
11
|
import { resolveTaskLocale } from "./task-language.js";
|
|
13
12
|
import { tryParseMediaUri } from "../media/uri.js";
|
|
14
13
|
import { resolveMediaBufferPath } from "../media/store.js";
|
|
14
|
+
import { getPersonalAgentByConversation } from "../personal-agent/repository.js";
|
|
15
15
|
import { warmPersonalResult } from "../personal-agent/result-reader.js";
|
|
16
16
|
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
17
17
|
import { taskInstructionSequence } from "./task-instruction-sequence.js";
|
|
18
18
|
import { TaskResultDeliveryRepository } from "./task-result-delivery-repository.js";
|
|
19
|
-
import "./task-research-result.js";
|
|
20
19
|
import { recordPersonalPerformance } from "../personal-agent/performance.js";
|
|
20
|
+
import "./task-research-result.js";
|
|
21
21
|
import { enqueuePersonalReply } from "../personal-agent/reply-composer.js";
|
|
22
22
|
import { createReadStream } from "node:fs";
|
|
23
23
|
import { createHash } from "node:crypto";
|
|
@@ -5,16 +5,16 @@ import { init_request_repository, personalRequestForTask } from "../personal-age
|
|
|
5
5
|
import { loadTranscriptRowsForSession } from "../storage/sqlite/transcript-repository.js";
|
|
6
6
|
import "../storage/sqlite/index.js";
|
|
7
7
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
8
|
-
import {
|
|
9
|
-
import { ACCEPTANCE_REPAIR_READ_TOOLS, canResumeAfterModelFailure } from "../agent/orchestration/turn-recovery.js";
|
|
8
|
+
import { TaskContextRepository } from "./task-context-repository.js";
|
|
10
9
|
import { resolveTaskLocale } from "./task-language.js";
|
|
11
10
|
import { TaskAllocationRepository } from "./task-allocation-repository.js";
|
|
12
11
|
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
13
12
|
import { taskInstructionSequence } from "./task-instruction-sequence.js";
|
|
14
13
|
import { TaskResultDeliveryRepository } from "./task-result-delivery-repository.js";
|
|
15
|
-
import { currentTaskResearchResult } from "./task-research-result.js";
|
|
16
|
-
import { TaskContextRepository } from "./task-context-repository.js";
|
|
17
14
|
import { TaskApplicationService } from "./task-application-service.js";
|
|
15
|
+
import { isTransientProviderErrorMessage } from "../providers/model-response.js";
|
|
16
|
+
import { currentTaskResearchResult } from "./task-research-result.js";
|
|
17
|
+
import { ACCEPTANCE_REPAIR_READ_TOOLS, canResumeAfterModelFailure } from "../agent/orchestration/turn-recovery.js";
|
|
18
18
|
import { buildResearchRepair, inspectTaskPublications } from "./task-research-repair.js";
|
|
19
19
|
//#region src/tasks/task-run-coordinator.ts
|
|
20
20
|
init_repository();
|