@xopcai/xopc 0.0.430 → 0.0.431
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/feishu/src/adapters/cli-login.js +3 -3
- package/dist/extensions/feishu/src/outbound/media-load.js +1 -1
- package/dist/extensions/telegram/src/inbound-processor.js +2 -2
- package/dist/extensions/telegram/src/outbound-sender.js +1 -1
- package/dist/extensions/telegram/src/plugin.js +2 -2
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/extensions/weixin/src/api/api.js +2 -2
- package/dist/extensions/weixin/src/auth/accounts.js +12 -12
- package/dist/extensions/weixin/src/messaging/debug-mode.js +5 -5
- package/dist/extensions/weixin/src/messaging/inbound.js +11 -11
- package/dist/gateway/static/root/assets/{index-C5BhE5cA.js → index-BmUSsdwn.js} +6 -6
- package/dist/gateway/static/root/index.html +1 -1
- package/dist/package.js +1 -1
- package/dist/src/agent/agent-manager.js +18 -18
- package/dist/src/agent/agent-scope.js +2 -2
- package/dist/src/agent/background-review/prompts.js +1 -1
- package/dist/src/agent/background-review/run-background-review.js +12 -12
- package/dist/src/agent/child-agent-factory.js +2 -2
- package/dist/src/agent/context/coordinator.js +2 -2
- package/dist/src/agent/context/execution-context.js +4 -4
- package/dist/src/agent/context/project-context.js +3 -3
- package/dist/src/agent/data-acquisition/service.js +1 -1
- package/dist/src/agent/embedded/codemode-extension.js +1 -1
- package/dist/src/agent/embedded/execution-tool-policy.js +1 -1
- package/dist/src/agent/embedded/external-tool-discovery.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +6 -6
- package/dist/src/agent/embedded/run-turn.js +19 -19
- package/dist/src/agent/embedded/session-runner.js +4 -4
- package/dist/src/agent/embedded/session-tool-result-guard.js +1 -1
- package/dist/src/agent/embedded/xopc-tools-bridge.js +1 -1
- package/dist/src/agent/external-tools/cliProvider.js +4 -4
- package/dist/src/agent/external-tools/composio-provider.js +4 -4
- package/dist/src/agent/external-tools/endpoint-provider.js +6 -6
- package/dist/src/agent/external-tools/extension-provider.js +1 -1
- package/dist/src/agent/external-tools/gateway-tools.js +3 -3
- package/dist/src/agent/external-tools/memory-provider.js +1 -1
- package/dist/src/agent/image/generation/openai-images-provider.js +1 -1
- package/dist/src/agent/image/generation/runtime.js +1 -1
- package/dist/src/agent/image/index.js +1 -1
- package/dist/src/agent/inbound/attachment-pipeline.js +2 -2
- package/dist/src/agent/inbound/inbound-loop.js +2 -2
- package/dist/src/agent/independent-execution.js +2 -2
- package/dist/src/agent/index.js +3 -3
- package/dist/src/agent/mcp/connection-drafts.js +1 -1
- package/dist/src/agent/mcp/connection-setup.js +1 -1
- package/dist/src/agent/mcp/conversation-setup.js +1 -1
- package/dist/src/agent/mcp/discovery.js +2 -2
- package/dist/src/agent/mcp/transport.js +1 -1
- package/dist/src/agent/memory/index.js +1 -1
- package/dist/src/agent/orchestration/llm-turn-retry.js +1 -1
- package/dist/src/agent/prompt/response-language.js +1 -1
- package/dist/src/agent/prompt/service-prompt-builder.js +3 -3
- package/dist/src/agent/prompt/system-prompt-params.js +1 -1
- package/dist/src/agent/sandbox/exec-policy.js +1 -1
- package/dist/src/agent/service/direct-turn-helpers.js +6 -6
- package/dist/src/agent/service/process-direct-streaming.js +6 -6
- package/dist/src/agent/service/webchat-tts.js +2 -2
- package/dist/src/agent/service.js +22 -22
- package/dist/src/agent/session/session-config-service.js +2 -2
- package/dist/src/agent/session/session-hydrator.js +1 -1
- package/dist/src/agent/session/session-inspector.js +1 -1
- package/dist/src/agent/skills/filesystem-watcher.js +1 -1
- package/dist/src/agent/skills/hub-lock.js +1 -1
- package/dist/src/agent/skills/hub-pull.js +2 -2
- package/dist/src/agent/skills/index.js +1 -1
- package/dist/src/agent/skills/managed-store.js +1 -1
- package/dist/src/agent/skills/marketplace/adapters/store/adapter.js +1 -1
- package/dist/src/agent/skills/marketplace/adapters/store/store-api-client.js +1 -1
- package/dist/src/agent/skills/skill-manage-ops.js +1 -1
- package/dist/src/agent/skills/skill-manager.js +1 -1
- package/dist/src/agent/skills/skill-sources.js +1 -1
- package/dist/src/agent/source-context/index.js +1 -1
- package/dist/src/agent/tasks/task-judge-service.js +8 -8
- package/dist/src/agent/tools/create-share-tool.js +2 -2
- package/dist/src/agent/tools/delegate-tool.js +3 -3
- package/dist/src/agent/tools/exec-command.js +1 -1
- package/dist/src/agent/tools/executor.js +1 -1
- package/dist/src/agent/tools/factory.js +19 -19
- package/dist/src/agent/tools/fetch-text.js +1 -1
- package/dist/src/agent/tools/image-generate-tool.js +2 -2
- package/dist/src/agent/tools/index.js +4 -4
- package/dist/src/agent/tools/list-dir.js +1 -1
- package/dist/src/agent/tools/personal-attention-tool.js +2 -2
- package/dist/src/agent/tools/personal-read-tool.js +1 -1
- package/dist/src/agent/tools/personal-request-result-tool.js +1 -1
- package/dist/src/agent/tools/personal-request-tool.js +4 -4
- package/dist/src/agent/tools/personal-result-tool.js +1 -1
- package/dist/src/agent/tools/personal-task-tool.js +5 -5
- package/dist/src/agent/tools/phone-use-tool.js +1 -1
- package/dist/src/agent/tools/publish-artifacts.js +1 -1
- package/dist/src/agent/tools/read.js +1 -1
- package/dist/src/agent/tools/review-workspace.js +1 -1
- package/dist/src/agent/tools/send-media.js +1 -1
- package/dist/src/agent/tools/skill-manage-tool.js +1 -1
- package/dist/src/agent/tools/task-collaboration-tool.js +2 -2
- package/dist/src/agent/tools/tts-tool.js +1 -1
- package/dist/src/agent/tools/user-context-tool.js +2 -2
- package/dist/src/agent/tools/web.js +1 -1
- package/dist/src/agent/tools/write.js +1 -1
- package/dist/src/agent/tools/xopc-use-tool.js +12 -12
- package/dist/src/agent/transcript/index.js +2 -2
- package/dist/src/agent/transcript/transcript-hygiene.js +2 -2
- package/dist/src/agent-catalog/capabilities.js +2 -2
- package/dist/src/agent-catalog/repository.js +1 -1
- package/dist/src/agent-matching/delegation-service.js +1 -1
- package/dist/src/ai-assist/text-assist.js +1 -1
- package/dist/src/auth/credentials.js +1 -1
- package/dist/src/auth/oauth/openai.js +1 -1
- package/dist/src/auth/oauth/xopc-cloud.js +1 -1
- package/dist/src/auth/profiles/store.js +1 -1
- package/dist/src/automations/api/routes.js +2 -2
- package/dist/src/automations/capabilities/drafts.js +1 -1
- package/dist/src/automations/capabilities/write.js +1 -1
- package/dist/src/automations/configuration-conversation.js +1 -1
- package/dist/src/automations/delivery/delivery-router.js +1 -1
- package/dist/src/automations/domain/index.js +1 -1
- package/dist/src/automations/draft/automation-draft-service.js +1 -1
- package/dist/src/automations/index.js +2 -2
- package/dist/src/automations/service/action-executor.js +2 -2
- package/dist/src/automations/service/automation-service.js +2 -2
- package/dist/src/browser/native-messaging-host.js +1 -1
- package/dist/src/browser/providers/browser-ext-install.js +2 -2
- package/dist/src/capabilities/runtime/dispatcher.js +1 -1
- package/dist/src/capabilities/runtime/product.js +1 -1
- package/dist/src/capabilities/store-connector.js +2 -2
- package/dist/src/channels/attachments/voice-stt-webchat.js +1 -1
- package/dist/src/channels/index.js +1 -1
- package/dist/src/channels/outbound-sender.js +1 -1
- package/dist/src/channels/pairing/allow-from-file.js +9 -9
- package/dist/src/channels/pairing/pairing-store.js +6 -6
- package/dist/src/chat-commands/agent-edit.js +1 -1
- package/dist/src/chat-commands/builtins/config.js +2 -2
- package/dist/src/chat-commands/builtins/session.js +1 -1
- package/dist/src/chat-commands/builtins/thinking.js +1 -1
- package/dist/src/chat-commands/builtins/tts.js +1 -1
- package/dist/src/chat-commands/context.js +1 -1
- package/dist/src/chat-commands/index.js +3 -3
- package/dist/src/cli/commands/agent.js +7 -7
- package/dist/src/cli/commands/agents.js +1 -1
- package/dist/src/cli/commands/config.js +1 -1
- package/dist/src/cli/commands/connectors.js +1 -1
- package/dist/src/cli/commands/doctor/checks/channel-plugins.js +1 -1
- package/dist/src/cli/commands/doctor/checks/gateway-health.js +1 -1
- package/dist/src/cli/commands/extension-agent-plugin.js +1 -1
- package/dist/src/cli/commands/extension-dev.js +1 -1
- package/dist/src/cli/commands/extension.js +2 -2
- package/dist/src/cli/commands/image.js +1 -1
- package/dist/src/cli/commands/init.js +1 -1
- package/dist/src/cli/commands/models.js +3 -3
- package/dist/src/cli/commands/onboard/channels/registry.js +1 -1
- package/dist/src/cli/commands/onboard/model.js +1 -1
- package/dist/src/cli/commands/onboard.js +1 -1
- package/dist/src/cli/commands/project.js +1 -1
- package/dist/src/cli/commands/skills.js +2 -2
- package/dist/src/cli/commands/tunnel.js +4 -4
- package/dist/src/cli/extension-cli-register.js +5 -5
- package/dist/src/cli/utils/gateway-client.js +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +3 -3
- package/dist/src/cli/utils/session.js +1 -1
- package/dist/src/computer/flows.js +1 -1
- package/dist/src/computer/model-adapter.js +1 -1
- package/dist/src/computer/runtime.js +4 -4
- package/dist/src/config/agent-profile.js +1 -1
- package/dist/src/config/index.js +3 -3
- package/dist/src/config/loader.js +1 -1
- package/dist/src/config/models-json.js +1 -1
- package/dist/src/connectors/cli/authorization.js +1 -1
- package/dist/src/connectors/composio-sessions.js +1 -1
- package/dist/src/connectors/composio.js +1 -1
- package/dist/src/connectors/connected-source-ingestion.js +2 -2
- package/dist/src/connectors/connected-source-understanding.js +5 -5
- package/dist/src/connectors/connection-recovery-service.js +4 -4
- package/dist/src/connectors/content-enrichment.js +1 -1
- package/dist/src/connectors/health.js +1 -1
- package/dist/src/connectors/instances.js +1 -1
- package/dist/src/connectors/runtime-adapter-registry.js +2 -2
- package/dist/src/discussions/live-worker.js +1 -1
- package/dist/src/discussions/sealer.js +1 -1
- package/dist/src/endpoint-tools/index.js +1 -1
- package/dist/src/endpoint-tools/runtime.js +2 -2
- package/dist/src/execution-environments/local-worktree-manager.js +1 -1
- package/dist/src/extensions/activation-context.js +3 -3
- package/dist/src/extensions/agent-plugins/auth.js +1 -1
- package/dist/src/extensions/agent-plugins/skill-catalog.js +3 -3
- package/dist/src/extensions/agent-plugins/source-http-fetch.js +1 -1
- package/dist/src/extensions/agent-plugins/validation.js +1 -1
- package/dist/src/extensions/api.js +3 -3
- package/dist/src/extensions/bundled-extension-activation.js +1 -1
- package/dist/src/extensions/index.js +3 -3
- package/dist/src/extensions/loader.js +2 -2
- package/dist/src/extensions/lockfile.js +1 -1
- package/dist/src/extensions/sdk/index.js +1 -1
- package/dist/src/extensions/sdk/media.js +1 -1
- package/dist/src/gateway/agents-admin.js +2 -2
- package/dist/src/gateway/device-routes.js +1 -1
- package/dist/src/gateway/file-path-classifier.js +1 -1
- package/dist/src/gateway/global-defaults-admin.js +2 -2
- package/dist/src/gateway/hono/app.js +2 -2
- package/dist/src/gateway/hono/lib/config-payload.js +2 -2
- package/dist/src/gateway/hono/oauth-async.js +1 -1
- package/dist/src/gateway/hono/routes/agent-plugins.js +1 -1
- package/dist/src/gateway/hono/routes/agents.js +1 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
- package/dist/src/gateway/hono/routes/commands-skills.js +4 -4
- package/dist/src/gateway/hono/routes/config-patch/gateway.js +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +1 -1
- package/dist/src/gateway/hono/routes/connectors.js +1 -1
- package/dist/src/gateway/hono/routes/context-sources.js +1 -1
- package/dist/src/gateway/hono/routes/endpoint-tools.js +1 -1
- package/dist/src/gateway/hono/routes/home.js +1 -1
- package/dist/src/gateway/hono/routes/location-sharing.js +1 -1
- package/dist/src/gateway/hono/routes/mcp.js +1 -1
- package/dist/src/gateway/hono/routes/memory-learning.js +3 -3
- package/dist/src/gateway/hono/routes/models.js +4 -4
- package/dist/src/gateway/hono/routes/notes.js +3 -3
- package/dist/src/gateway/hono/routes/phone-dependencies.js +1 -1
- package/dist/src/gateway/hono/routes/phone-setup.js +2 -2
- package/dist/src/gateway/hono/routes/phone.js +2 -2
- package/dist/src/gateway/hono/routes/projects.js +5 -5
- package/dist/src/gateway/hono/routes/runtime-tools.js +1 -1
- package/dist/src/gateway/hono/routes/session-command-handler.js +2 -2
- package/dist/src/gateway/hono/routes/session-input-handler.js +5 -5
- package/dist/src/gateway/hono/routes/sessions.js +3 -3
- package/dist/src/gateway/hono/routes/shares.js +1 -1
- package/dist/src/gateway/hono/routes/side-chats.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +2 -2
- package/dist/src/gateway/hono/routes/user-model.js +7 -7
- package/dist/src/gateway/hono/routes/voice.js +7 -7
- package/dist/src/gateway/image-generation-setup.js +1 -1
- package/dist/src/gateway/lock.js +11 -11
- package/dist/src/gateway/media-access.js +1 -1
- package/dist/src/gateway/mobile-privacy.js +2 -2
- package/dist/src/gateway/ports.js +6 -6
- package/dist/src/gateway/provider-model-setup.js +1 -1
- package/dist/src/gateway/server.js +1 -1
- package/dist/src/gateway/service/agent-runner.js +2 -2
- package/dist/src/gateway/service/config-coordinator.js +2 -2
- package/dist/src/gateway/service/marketplace-service.js +2 -2
- package/dist/src/gateway/service/run-gateway-agent.js +5 -5
- package/dist/src/gateway/service/session-command-service.js +2 -2
- package/dist/src/gateway/service/session-input-coordinator.js +1 -1
- package/dist/src/gateway/service.js +45 -45
- package/dist/src/gateway/session-context-summary.js +4 -4
- package/dist/src/gateway/session-reset-service.js +1 -1
- package/dist/src/gateway/workspace-editor-path.js +2 -2
- package/dist/src/gateway/xopc-cloud-capability-setup.js +4 -4
- package/dist/src/home-intelligence/generator.js +2 -2
- package/dist/src/home-intelligence/host.js +2 -2
- package/dist/src/imports/importService.js +1 -1
- package/dist/src/imports/inventory.js +2 -2
- package/dist/src/imports/productImport.js +1 -1
- package/dist/src/imports/runtime.js +1 -1
- package/dist/src/infra/gateway-processes.js +2 -2
- package/dist/src/infra/path-env.js +3 -3
- package/dist/src/infra/update-global.js +9 -9
- package/dist/src/knowledge/connected-knowledge-pipeline.js +1 -1
- package/dist/src/knowledge/index.js +1 -1
- package/dist/src/knowledge-memory/repository.js +1 -1
- package/dist/src/knowledge-memory/usage-policy.js +1 -1
- package/dist/src/local-apps/service.js +3 -3
- package/dist/src/mcp/gateway-http-client.js +1 -1
- package/dist/src/media-understanding/openai-compatible-audio.js +1 -1
- package/dist/src/memory-learning/source-learning.js +5 -5
- package/dist/src/memory-learning/task-receipts.js +1 -1
- package/dist/src/notes/agent-context.js +4 -4
- package/dist/src/notes/index.js +1 -1
- package/dist/src/notes/service.js +3 -3
- package/dist/src/personal-agent/capability-service.js +2 -2
- package/dist/src/personal-agent/proactivity/routes.js +1 -1
- package/dist/src/personal-agent/proactivity/service.js +7 -7
- package/dist/src/personal-agent/prompt-context.js +7 -7
- package/dist/src/personal-agent/prompts.js +2 -2
- package/dist/src/personal-agent/reply-composer.js +9 -9
- package/dist/src/personal-agent/request-delivery.js +2 -2
- package/dist/src/personal-agent/request-service.js +7 -7
- package/dist/src/personal-agent/result-reader.js +1 -1
- package/dist/src/personal-agent/service.js +2 -2
- package/dist/src/phone/model-adapter.js +1 -1
- package/dist/src/phone/repository.js +1 -1
- package/dist/src/phone/runtime.js +4 -4
- package/dist/src/projects/index.js +2 -2
- package/dist/src/projects/project-agent-suggestion.js +1 -1
- package/dist/src/projects/project-service.js +2 -2
- package/dist/src/projects/project-skill-service.js +2 -2
- package/dist/src/projects/workspace.js +1 -1
- package/dist/src/providers/model-reference-auditor.js +1 -1
- package/dist/src/realtime/runtime.js +1 -1
- package/dist/src/remote-access/exposure-manager.js +1 -1
- package/dist/src/runtime-tools/archive.js +1 -1
- package/dist/src/runtime-tools/phone-dependencies.js +2 -2
- package/dist/src/session/index.js +2 -2
- package/dist/src/session/init-session-turn.js +1 -1
- package/dist/src/session/resolve-session.js +1 -1
- package/dist/src/session/store.js +5 -5
- package/dist/src/session/thinking-resolve.js +1 -1
- package/dist/src/share/hosted-session-share.js +2 -2
- package/dist/src/share/session-share-service.js +1 -1
- package/dist/src/share/share-store.js +1 -1
- package/dist/src/share/share-thumbnail.js +1 -1
- package/dist/src/share/site-proxy.js +1 -1
- package/dist/src/share/site-share-store.js +1 -1
- package/dist/src/storage/sqlite/connection.js +9 -9
- package/dist/src/tasks/capabilities/read.js +2 -2
- package/dist/src/tasks/capabilities/write.js +2 -2
- package/dist/src/tasks/home-query-service.js +1 -1
- package/dist/src/tasks/index.js +5 -5
- package/dist/src/tasks/task-allocation-service.js +5 -5
- package/dist/src/tasks/task-application-service.js +5 -5
- package/dist/src/tasks/task-collaboration-delivery.js +1 -1
- package/dist/src/tasks/task-context-assembler.js +2 -2
- package/dist/src/tasks/task-contract-planner.js +2 -2
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tasks/task-handoff.js +4 -4
- package/dist/src/tasks/task-main-update-decision-service.js +3 -3
- package/dist/src/tasks/task-model-call.js +1 -1
- package/dist/src/tasks/task-research-result.js +4 -4
- package/dist/src/tasks/task-result-delivery-repository.js +1 -1
- package/dist/src/tasks/task-result-delivery-service.js +2 -2
- package/dist/src/tasks/task-run-coordinator.js +3 -3
- package/dist/src/tasks/task-run-dispatcher.js +1 -1
- package/dist/src/tui/backends/embedded-backend.js +12 -12
- package/dist/src/tui/backends/gateway-realtime-backend.js +2 -2
- package/dist/src/tui/extension-host/load-extensions.js +1 -1
- package/dist/src/tui/tui-commands.js +5 -5
- package/dist/src/tui/tui-picker-overlay.js +1 -1
- package/dist/src/tui/tui-skills-autocomplete.js +1 -1
- package/dist/src/tui/tui-startup-resources.js +3 -3
- package/dist/src/tui/tui.js +4 -4
- package/dist/src/tunnel/gateway-lifecycle.js +1 -1
- package/dist/src/user-context/access-policy.js +2 -2
- package/dist/src/user-model/bootstrap.js +1 -1
- package/dist/src/user-model/capture/executor.js +1 -1
- package/dist/src/user-model/index.js +2 -2
- package/dist/src/user-model/usage-policy.js +1 -1
- package/dist/src/voice/realtime/memory-context.js +5 -5
- package/dist/src/voice/realtime/omniRoute.js +1 -1
- package/dist/src/voice/realtime/persona-context.js +1 -1
- package/dist/src/voice/realtime/runtime.js +4 -4
- package/dist/src/voice/stt/index.js +2 -2
- package/dist/src/voice/stt/preflight.js +1 -1
- package/dist/src/voice/stt/providers/alibaba-transcription.js +1 -1
- package/dist/src/voice/stt/providers/bailian-plan-transcription.js +1 -1
- package/dist/src/voice/stt/providers/xopc-cloud-transcription.js +1 -1
- package/dist/src/voice/stt/transcribe-core.js +1 -1
- package/dist/src/voice/tts/index.js +3 -3
- package/dist/src/voice/tts/merge-config.js +1 -1
- package/dist/src/voice/tts/payload.js +1 -1
- package/dist/src/voice/tts/providers/bailian-plan-speech.js +1 -1
- package/dist/src/voice/tts/providers/xopc-cloud-speech.js +1 -1
- package/dist/src/voice/tts/speak-core.js +1 -1
- package/dist/src/work-discovery/service.js +7 -7
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { init_search_text, memorySearchQuery } from "./search-text.js";
|
|
2
2
|
import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
3
3
|
import { validateScope } from "../user-model/domain.js";
|
|
4
|
-
import { clearMemoryAudit, isMemorySuppressed, memoryFingerprint, restoreMemory, suppressMemory } from "../user-context/memory-suppression.js";
|
|
5
4
|
import { inferMemorySensitivity } from "../agent/memory/sensitivity.js";
|
|
5
|
+
import { clearMemoryAudit, isMemorySuppressed, memoryFingerprint, restoreMemory, suppressMemory } from "../user-context/memory-suppression.js";
|
|
6
6
|
import { canUseKnowledge, knowledgeContentSources } from "./usage-policy.js";
|
|
7
7
|
import { randomUUID } from "node:crypto";
|
|
8
8
|
//#region src/knowledge-memory/repository.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getSqliteDatabase, init_transaction } from "../storage/sqlite/transaction.js";
|
|
2
2
|
import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
|
|
3
3
|
import { init_session_repository } from "../storage/sqlite/session-repository.js";
|
|
4
|
-
import { getUnderstandingConsent } from "../user-context/sources/consent-repository.js";
|
|
5
4
|
import { isOwnerIdentity } from "../user-context/identity-bindings.js";
|
|
5
|
+
import { getUnderstandingConsent } from "../user-context/sources/consent-repository.js";
|
|
6
6
|
//#region src/knowledge-memory/usage-policy.ts
|
|
7
7
|
init_transaction();
|
|
8
8
|
init_session_repository();
|
|
@@ -5,11 +5,11 @@ import { init_logger } from "../utils/logger.js";
|
|
|
5
5
|
import { afterSqliteCommit, init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
6
6
|
import { ExtensionCapabilityBindingsSchema, extensionCapabilityPermissions } from "../../packages/gateway-contract/src/extension-capabilities.js";
|
|
7
7
|
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
8
|
-
import { CapabilityError } from "../capabilities/runtime/errors.js";
|
|
9
|
-
import { slugifyProjectName } from "../projects/project-store.js";
|
|
10
|
-
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
11
8
|
import { init_paths, resolveExtensionsDir } from "../config/paths.js";
|
|
9
|
+
import { slugifyProjectName } from "../projects/project-store.js";
|
|
10
|
+
import { CapabilityError } from "../capabilities/runtime/errors.js";
|
|
12
11
|
import { LocalAppStore } from "./store.js";
|
|
12
|
+
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
13
13
|
import { validateLocalAppCapabilityContracts } from "./capabilities/contracts.js";
|
|
14
14
|
import { buildLocalAppFixGuidance } from "./fix-guidance.js";
|
|
15
15
|
import { readLocalAppAcceptanceConfig } from "./acceptance.js";
|
|
@@ -2,8 +2,8 @@ import { createLogger } from "../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { CapabilityErrorCodeSchema } from "../../packages/gateway-contract/src/capabilities.js";
|
|
4
4
|
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
5
|
-
import { loadConfig } from "../config/loader.js";
|
|
6
5
|
import { resolveGatewayLocalClientHost } from "../config/gateway-bind.js";
|
|
6
|
+
import { loadConfig } from "../config/loader.js";
|
|
7
7
|
import { createGatewayCredential, gatewayCredentialAuthorization } from "../gateway/credential.js";
|
|
8
8
|
import { fetch } from "undici";
|
|
9
9
|
//#region src/mcp/gateway-http-client.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { registerMediaUnderstandingProvider } from "./registry.js";
|
|
1
2
|
import { normalizeBaseUrl, postMultipartRequest } from "../media-shared/http/provider-http.js";
|
|
2
3
|
import "../media-shared/http/index.js";
|
|
3
|
-
import { registerMediaUnderstandingProvider } from "./registry.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
//#region src/media-understanding/openai-compatible-audio.ts
|
|
6
6
|
/**
|
|
@@ -2,16 +2,16 @@ import { createLogger } from "../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
4
4
|
import { claimContextExtractionRun, finishContextExtractionRun } from "../storage/sqlite/context-extraction-repository.js";
|
|
5
|
-
import { getActiveUnderstandingConsent, getUnderstandingConsent } from "../user-context/sources/consent-repository.js";
|
|
6
5
|
import { init_config, resolveKnowledgeReadPolicy } from "../user-context/config.js";
|
|
6
|
+
import { learningPolicyHash } from "./repository.js";
|
|
7
|
+
import { getActiveUnderstandingConsent, getUnderstandingConsent } from "../user-context/sources/consent-repository.js";
|
|
8
|
+
import { resolveModelSelector } from "../config/agent-model-intents.js";
|
|
7
9
|
import { init_providers, resolveModel } from "../providers/index.js";
|
|
8
10
|
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
9
|
-
import {
|
|
10
|
-
import { resolveModelSelector } from "../config/agent-model-intents.js";
|
|
11
|
+
import { isLoopbackModel } from "../providers/local-model.js";
|
|
11
12
|
import { ConnectedKnowledgePipeline } from "../knowledge/connected-knowledge-pipeline.js";
|
|
13
|
+
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
12
14
|
import { extractionInputHash } from "../user-context/extraction/registry.js";
|
|
13
|
-
import { learningPolicyHash } from "./repository.js";
|
|
14
|
-
import { isLoopbackModel } from "../providers/local-model.js";
|
|
15
15
|
import { WorkCandidateSchema } from "./work-candidate.js";
|
|
16
16
|
import { applyWorkCandidates } from "./work-capture.js";
|
|
17
17
|
import { randomUUID } from "node:crypto";
|
|
@@ -2,10 +2,10 @@ import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "
|
|
|
2
2
|
import { createContextEvidence } from "../storage/sqlite/context-evidence-repository.js";
|
|
3
3
|
import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
|
|
4
4
|
import { init_session_repository } from "../storage/sqlite/session-repository.js";
|
|
5
|
+
import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
|
|
5
6
|
import { inferMemorySensitivity } from "../agent/memory/sensitivity.js";
|
|
6
7
|
import { writeKnowledgeItem } from "../knowledge-memory/repository.js";
|
|
7
8
|
import "../knowledge-memory/index.js";
|
|
8
|
-
import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
10
10
|
//#region src/memory-learning/task-receipts.ts
|
|
11
11
|
init_session_repository();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { getNoteAgentContextRecord, upsertNoteAgentContextRecord } from "../storage/sqlite/note-agent-context-repository.js";
|
|
2
2
|
import "../storage/sqlite/index.js";
|
|
3
|
-
import { isSTTAvailable } from "../voice/stt/availability.js";
|
|
4
|
-
import { transcribe } from "../voice/stt/transcribe-core.js";
|
|
5
|
-
import { mergeSttConfigFromAppConfig } from "../voice/stt/config.js";
|
|
6
|
-
import "../voice/stt/index.js";
|
|
7
3
|
import { extractDocumentText } from "../document-understanding/extract.js";
|
|
8
4
|
import { resolveImageModelConfigForTool } from "../agent/image/tool-model-config.js";
|
|
9
5
|
import { describeImagesWithFallback } from "../agent/image/understanding/runtime.js";
|
|
6
|
+
import { transcribe } from "../voice/stt/transcribe-core.js";
|
|
7
|
+
import { isSTTAvailable } from "../voice/stt/availability.js";
|
|
8
|
+
import { mergeSttConfigFromAppConfig } from "../voice/stt/config.js";
|
|
9
|
+
import "../voice/stt/index.js";
|
|
10
10
|
import { extname } from "node:path";
|
|
11
11
|
import { readFile } from "node:fs/promises";
|
|
12
12
|
//#region src/notes/agent-context.ts
|
package/dist/src/notes/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { buildNoteAgentContext, buildNoteAgentContextArtifact, getCachedNoteAgentContextArtifact } from "./agent-context.js";
|
|
1
2
|
import { resolveNoteMediaDir, resolveNotesDir } from "./paths.js";
|
|
2
3
|
import { NotesStore } from "./store.js";
|
|
3
|
-
import { buildNoteAgentContext, buildNoteAgentContextArtifact, getCachedNoteAgentContextArtifact } from "./agent-context.js";
|
|
4
4
|
import { NotesService } from "./service.js";
|
|
5
5
|
export { NotesService, NotesStore, buildNoteAgentContext, buildNoteAgentContextArtifact, getCachedNoteAgentContextArtifact, resolveNoteMediaDir, resolveNotesDir };
|
|
@@ -6,13 +6,13 @@ import { buildNoteAttachmentRef } from "./attachment-ref.js";
|
|
|
6
6
|
import { parseNoteMarkdown } from "./note-markdown.js";
|
|
7
7
|
import { listNoteProjectSummaries } from "../storage/sqlite/notes-repository.js";
|
|
8
8
|
import { changedFieldsFromPatch, emitActivity, previewText, systemActivityActor, systemActivitySource } from "../activity/emitter.js";
|
|
9
|
-
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
10
|
-
import { revokeNoteShareRecords } from "../share/note-share-revocation.js";
|
|
11
|
-
import { NotesStore } from "./store.js";
|
|
12
9
|
import { getDefaultModelSync, init_providers, resolveModel } from "../providers/index.js";
|
|
13
10
|
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
14
11
|
import { partitionAttachmentsByReference } from "./note-attachment-sync.js";
|
|
15
12
|
import { buildNoteAgentContextArtifact, getCachedNoteAgentContextArtifact } from "./agent-context.js";
|
|
13
|
+
import { revokeNoteShareRecords } from "../share/note-share-revocation.js";
|
|
14
|
+
import { NotesStore } from "./store.js";
|
|
15
|
+
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
16
16
|
import { createHash, randomUUID } from "node:crypto";
|
|
17
17
|
//#region src/notes/service.ts
|
|
18
18
|
init_providers();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getConnectorInstallation, init_connector_repository, listConnectorConnections } from "../storage/sqlite/connector-repository.js";
|
|
2
2
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
3
|
+
import { isPersonalConversation } from "./repository.js";
|
|
3
4
|
import { canAccessConnectorAccount, currentAccountConnections } from "../connectors/account-access.js";
|
|
4
5
|
import { connectorPrincipalForSession } from "../connectors/principal.js";
|
|
5
|
-
import { isPersonalConversation } from "./repository.js";
|
|
6
|
-
import { assessSpecialist } from "../agent-matching/service.js";
|
|
7
6
|
import { connectionCandidates, resolveConnectionCandidate } from "../connectors/connection-candidates.js";
|
|
7
|
+
import { assessSpecialist } from "../agent-matching/service.js";
|
|
8
8
|
//#region src/personal-agent/capability-service.ts
|
|
9
9
|
init_repository();
|
|
10
10
|
init_connector_repository();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PersonalFeedbackSchema, PersonalProactivitySettingsSchema, PersonalStrategyRollbackSchema } from "../../../packages/gateway-contract/src/personal-proactivity.js";
|
|
2
2
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
3
|
-
import { getPersonalAgent } from "../repository.js";
|
|
4
3
|
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
4
|
+
import { getPersonalAgent } from "../repository.js";
|
|
5
5
|
import { getProactivitySettings, listInterestCandidates, patchAttention, patchProactivitySettings, provenanceDetail, recordFeedback, rollbackStrategy, strategyState } from "./repository.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/personal-agent/proactivity/routes.ts
|
|
@@ -6,16 +6,16 @@ import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
|
6
6
|
import { init_session_instance_repository, readCurrentTranscriptId } from "../../storage/sqlite/session-instance-repository.js";
|
|
7
7
|
import { appendTranscriptEntry } from "../../storage/sqlite/transcript-repository.js";
|
|
8
8
|
import { AgentCatalogRepository, init_repository } from "../../agent-catalog/repository.js";
|
|
9
|
-
import {
|
|
10
|
-
import { getPersonalAgent } from "../repository.js";
|
|
11
|
-
import { DurableState } from "../../storage/sqlite/durable-state.js";
|
|
9
|
+
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
12
10
|
import { init_providers, resolveModel } from "../../providers/index.js";
|
|
13
|
-
import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../../providers/model-response.js";
|
|
14
11
|
import { completeWithResolvedCredentials } from "../../providers/model-call.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
12
|
+
import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../../providers/model-response.js";
|
|
13
|
+
import { getPersonalAgent } from "../repository.js";
|
|
14
|
+
import { emitSessionTranscriptUpdate } from "../../session/transcript-events.js";
|
|
15
|
+
import { DurableState } from "../../storage/sqlite/durable-state.js";
|
|
18
16
|
import { enqueueDue, enqueueWakeup, getAttention, getAttentionSources, getProactivitySettings, isQuiet, listAttention, localDay, preparationStrategy, recordFeedback, reserveModelCall, saveAttention, sourceFingerprint, userText } from "./repository.js";
|
|
17
|
+
import { PERSONAL_PERSONA_GUIDANCE } from "../persona.js";
|
|
18
|
+
import { personalConversationState } from "../conversation-state.js";
|
|
19
19
|
import { randomUUID } from "node:crypto";
|
|
20
20
|
import { z } from "zod";
|
|
21
21
|
//#region src/personal-agent/proactivity/service.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
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 { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
|
|
5
|
+
import { isKnowledgeCurrent, knowledgeItemAllowed, listKnowledgeItems } from "../knowledge-memory/repository.js";
|
|
6
|
+
import "../knowledge-memory/index.js";
|
|
4
7
|
import { getActiveAssertionForSlot } from "../user-model/repository.js";
|
|
5
|
-
import {
|
|
6
|
-
import { listPersonalResults } from "./result-reader.js";
|
|
7
|
-
import { TaskOriginRepository } from "../tasks/task-origin-repository.js";
|
|
8
|
+
import { getProjectForSession } from "../projects/workspace.js";
|
|
8
9
|
import { canUseAssertion } from "../user-model/usage-policy.js";
|
|
9
10
|
import "../user-model/index.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import "
|
|
13
|
-
import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
|
|
11
|
+
import { isPersonalConversation } from "./repository.js";
|
|
12
|
+
import { TaskOriginRepository } from "../tasks/task-origin-repository.js";
|
|
13
|
+
import { listPersonalResults } from "./result-reader.js";
|
|
14
14
|
//#region src/personal-agent/prompt-context.ts
|
|
15
15
|
const clip = (value, limit) => value && (value.length > limit ? `${value.slice(0, limit - 1)}…` : value);
|
|
16
16
|
/** Keep complete JSON records and identifiers, even when the snapshot is incomplete. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PERSONAL_DEFAULT_STYLE_RULES } from "./default-style.js";
|
|
2
|
-
import { PERSONAL_REPLY_EXAMPLES, PERSONAL_REPLY_STYLE_RULES } from "./reply-style.js";
|
|
3
1
|
import { PERSONAL_EMOTIONAL_STYLE_RULE, PERSONAL_IDENTITY_CONTINUITY_RULE } from "./persona.js";
|
|
4
2
|
import { PERSONAL_COMMUNICATION_RULES, PERSONAL_RELIABILITY_RULES } from "./communication.js";
|
|
3
|
+
import { PERSONAL_DEFAULT_STYLE_RULES } from "./default-style.js";
|
|
4
|
+
import { PERSONAL_REPLY_EXAMPLES, PERSONAL_REPLY_STYLE_RULES } from "./reply-style.js";
|
|
5
5
|
//#region src/personal-agent/prompts.ts
|
|
6
6
|
const DELEGATION_RULES = [
|
|
7
7
|
"Answer directly when your capabilities suffice. Otherwise call personal_task(command=\"submit\") with a short objective. For a self-contained current request send {command:\"submit\", objective:\"short outcome\", useOriginalRequest:true}; command is required. With this mode, the host copies its entire stored text, including exact constraints. Preserve sourceRefs and explicitly requested Agent/Skills. Use a concise complete description instead when earlier conversation must be synthesized. Submit before reading materials. The background Task Router selects and starts the executor. After the tool succeeds, reply only with a short confirmation such as \"Submitted; I will report the result here.\" in the conversation language, then finish. Do not restate any task details, files, requirements or acceptance criteria, and do not wait for the worker. Remain available for conversation.",
|
|
@@ -10,23 +10,23 @@ import { appendTranscriptEntry, loadLlmMessagesForSession } from "../storage/sql
|
|
|
10
10
|
import { getSessionConfig } from "../storage/sqlite/config-repository.js";
|
|
11
11
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
12
12
|
import { init_agent_scope, resolveAgentProfileDir } from "../agent/agent-scope.js";
|
|
13
|
-
import {
|
|
13
|
+
import { init_providers, resolveModel } from "../providers/index.js";
|
|
14
|
+
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
15
|
+
import { extractAssistantText, getAssistantMessageErrorReason } from "../providers/model-response.js";
|
|
14
16
|
import { getPersonalAgentByConversation } from "./repository.js";
|
|
15
|
-
import {
|
|
17
|
+
import { emitSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
16
18
|
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
19
|
+
import { loadProfileBootstrapFiles } from "../agent/bootstrap/load-bootstrap-files.js";
|
|
17
20
|
import { TaskCriterionReviewRepository } from "../tasks/task-criterion-review-repository.js";
|
|
21
|
+
import { TaskCollaborationRepository } from "../tasks/task-collaboration-repository.js";
|
|
18
22
|
import { hasPersonalResultFileLinks, sanitizePersonalResultFileLinks } from "./result-file-links.js";
|
|
19
23
|
import { taskInstructionSequence } from "../tasks/task-instruction-sequence.js";
|
|
20
|
-
import {
|
|
21
|
-
import { extractAssistantText, getAssistantMessageErrorReason } from "../providers/model-response.js";
|
|
22
|
-
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
23
|
-
import { PERSONAL_DEFAULT_STYLE_RULES } from "./default-style.js";
|
|
24
|
-
import { recordPersonalPerformance } from "./performance.js";
|
|
24
|
+
import { PERSONAL_PERSONA_GUIDANCE } from "./persona.js";
|
|
25
25
|
import "../tasks/task-research-result.js";
|
|
26
|
+
import { recordPersonalPerformance } from "./performance.js";
|
|
27
|
+
import { PERSONAL_DEFAULT_STYLE_RULES } from "./default-style.js";
|
|
26
28
|
import { PERSONAL_REPLY_EXAMPLES, PERSONAL_REPLY_STYLE_RULES } from "./reply-style.js";
|
|
27
29
|
import { personalConversationState } from "./conversation-state.js";
|
|
28
|
-
import { PERSONAL_PERSONA_GUIDANCE } from "./persona.js";
|
|
29
|
-
import { loadProfileBootstrapFiles } from "../agent/bootstrap/load-bootstrap-files.js";
|
|
30
30
|
import { randomUUID } from "node:crypto";
|
|
31
31
|
import { z } from "zod";
|
|
32
32
|
//#region src/personal-agent/reply-composer.ts
|
|
@@ -7,11 +7,11 @@ import { init_session_instance_repository, readCurrentTranscriptId } from "../st
|
|
|
7
7
|
import { TaskRunRepository, init_task_run_repository } from "../tasks/task-run-repository.js";
|
|
8
8
|
import { getPersonalRequest, init_request_repository, updatePersonalRequest } from "./request-repository.js";
|
|
9
9
|
import { appendTranscriptEntry, loadLlmMessagesForSession } from "../storage/sqlite/transcript-repository.js";
|
|
10
|
-
import { emitSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
11
10
|
import { getPersonalAgentByConversation } from "./repository.js";
|
|
11
|
+
import { emitSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
12
12
|
import { warmPersonalResult } from "./result-reader.js";
|
|
13
|
-
import { TaskCollaborationRepository } from "../tasks/task-collaboration-repository.js";
|
|
14
13
|
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
14
|
+
import { TaskCollaborationRepository } from "../tasks/task-collaboration-repository.js";
|
|
15
15
|
import { PersonalRequestResultSchema, renderPersonalRequestResult } from "./request-result.js";
|
|
16
16
|
import { enqueuePersonalReply } from "./reply-composer.js";
|
|
17
17
|
//#region src/personal-agent/request-delivery.ts
|
|
@@ -13,21 +13,21 @@ import { getConnectorAccount, init_connector_account_repository } from "../stora
|
|
|
13
13
|
import { getConnectorConnection, getConnectorInstallation, init_connector_repository, listConnectorConnections } from "../storage/sqlite/connector-repository.js";
|
|
14
14
|
import { cancelConnectionObjective, init_connection_wait_repository, publishConnectionWait, requireSessionConnection } from "../storage/sqlite/connection-wait-repository.js";
|
|
15
15
|
import { getUserProfileSnapshot } from "../user-model/profile.js";
|
|
16
|
+
import { isPersonalConversation } from "./repository.js";
|
|
16
17
|
import { resolveTaskLocale } from "../tasks/task-language.js";
|
|
17
18
|
import { canAccessConnectorAccount } from "../connectors/account-access.js";
|
|
18
19
|
import { connectorPrincipalForSession } from "../connectors/principal.js";
|
|
19
|
-
import {
|
|
20
|
+
import { resolveConnectionCandidate } from "../connectors/connection-candidates.js";
|
|
20
21
|
import { TaskCollaborationRepository } from "../tasks/task-collaboration-repository.js";
|
|
21
22
|
import { TaskApplicationService } from "../tasks/task-application-service.js";
|
|
22
|
-
import {
|
|
23
|
-
import { assessSpecialist } from "../agent-matching/service.js";
|
|
24
|
-
import { assertSpecialistEligible } from "../agent-matching/delegation-service.js";
|
|
25
|
-
import { resolveConnectionCandidate } from "../connectors/connection-candidates.js";
|
|
23
|
+
import { resolveResponseLanguageForSession } from "../agent/prompt/response-language.js";
|
|
26
24
|
import { defineTaskContract } from "../tasks/task-contract-definition.js";
|
|
27
|
-
import { personalCapabilities } from "./capability-service.js";
|
|
28
25
|
import "./communication.js";
|
|
29
|
-
import {
|
|
26
|
+
import { assessSpecialist } from "../agent-matching/service.js";
|
|
27
|
+
import { personalCapabilities } from "./capability-service.js";
|
|
30
28
|
import { abortEmbeddedRun } from "../agent/embedded/runs.js";
|
|
29
|
+
import { AgentSelectionRepository, selectionRequestHash } from "../agent-matching/selection-repository.js";
|
|
30
|
+
import { assertSpecialistEligible } from "../agent-matching/delegation-service.js";
|
|
31
31
|
import { createHash, randomUUID } from "node:crypto";
|
|
32
32
|
//#region src/personal-agent/request-service.ts
|
|
33
33
|
init_src();
|
|
@@ -7,10 +7,10 @@ import { init_session_instance_repository, readCurrentTranscriptId } from "../st
|
|
|
7
7
|
import { init_request_repository, personalRequestForTask } from "./request-repository.js";
|
|
8
8
|
import { getConnectorAccount, init_connector_account_repository } from "../storage/sqlite/connector-account-repository.js";
|
|
9
9
|
import { getConnectorConnection, getConnectorInstallation, init_connector_repository } from "../storage/sqlite/connector-repository.js";
|
|
10
|
+
import { isPersonalConversation } from "./repository.js";
|
|
10
11
|
import { canAccessConnectorAccount } from "../connectors/account-access.js";
|
|
11
12
|
import { connectorPrincipalForSession } from "../connectors/principal.js";
|
|
12
13
|
import { resolveMediaReference } from "../media/media-reference.js";
|
|
13
|
-
import { isPersonalConversation } from "./repository.js";
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
import { existsSync } from "node:fs";
|
|
16
16
|
import { fileURLToPath } from "node:url";
|
|
@@ -2,11 +2,11 @@ import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js
|
|
|
2
2
|
import { init_session_repository, patchSessionMetadata } from "../storage/sqlite/session-repository.js";
|
|
3
3
|
import { setSessionConfig } from "../storage/sqlite/config-repository.js";
|
|
4
4
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
5
|
-
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
6
5
|
import { createConversation, init_conversation_repository } from "../storage/sqlite/conversation-repository.js";
|
|
7
|
-
import { getPersonalAgent, personalAgentId } from "./repository.js";
|
|
8
6
|
import { getAvailableModels, init_providers } from "../providers/index.js";
|
|
7
|
+
import { getPersonalAgent, personalAgentId } from "./repository.js";
|
|
9
8
|
import { PERSONAL_MAIN_TOOL_IDS, PERSONAL_READ_TOOL_ALIASES } from "./policy.js";
|
|
9
|
+
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
10
10
|
import { getModelThinking } from "../providers/model-thinking.js";
|
|
11
11
|
import { personalInstructions } from "./prompts.js";
|
|
12
12
|
import { completePersonalOnboarding } from "./onboarding.js";
|
|
@@ -3,10 +3,10 @@ import { init_model_policy, phoneModelProfile } from "./model-policy.js";
|
|
|
3
3
|
import { getApiKey, init_providers, resolveModel } from "../providers/index.js";
|
|
4
4
|
import { cloudCreditBudgetHeaders, reportCloudCreditError } from "../providers/xopc-cloud-credit-budget.js";
|
|
5
5
|
import { currentPhoneTrace, measurePhonePhase } from "./execution-trace.js";
|
|
6
|
+
import { phoneAllowsApp } from "./app-access.js";
|
|
6
7
|
import { predictPhoneToolDecision } from "./structured-model.js";
|
|
7
8
|
import { readPhoneModelResponse } from "./model-response.js";
|
|
8
9
|
import { AutoGlmHistory, autoGlmSystemPrompt, buildAutoGlmMessages } from "./autoglm-protocol.js";
|
|
9
|
-
import { phoneAllowsApp } from "./app-access.js";
|
|
10
10
|
import { PHONE_PLANNING_RULES, PhonePlanSchema } from "./planning.js";
|
|
11
11
|
import { phoneSemanticControls } from "./semantic-controls.js";
|
|
12
12
|
import { guiPhonePrompt, parseDoubaoPhone, parseGuiOwlPhone } from "./gui-protocol.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PhoneDeviceSchema, PhoneError, init_contracts } from "./contracts.js";
|
|
2
|
-
import { DurableState } from "../storage/sqlite/durable-state.js";
|
|
3
2
|
import { normalizePhoneAppAccess } from "./app-access.js";
|
|
3
|
+
import { DurableState } from "../storage/sqlite/durable-state.js";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
//#region src/phone/repository.ts
|
|
6
6
|
init_contracts();
|
|
@@ -4,10 +4,6 @@ import { MOCK_PHONE_MODEL, PhoneError, PhoneInputSchema, init_contracts } from "
|
|
|
4
4
|
import { resolveEffectiveAgentConfigForAgent } from "../config/agent-profile.js";
|
|
5
5
|
import { PhoneExecutionTrace, currentPhoneTrace, measurePhonePhase } from "./execution-trace.js";
|
|
6
6
|
import { phoneAllowsApp, phoneAppAccess } from "./app-access.js";
|
|
7
|
-
import { advancePhonePlan, buildPhonePlan, createPhonePlanState } from "./planning.js";
|
|
8
|
-
import { canDispatchPhoneAction, observationSignature, phoneCompletionSatisfied } from "./reliability.js";
|
|
9
|
-
import { groundPhoneCoordinateAction, resolvePhoneSemanticAction } from "./semantic-controls.js";
|
|
10
|
-
import { createPhoneModel, isAboutScreen } from "./model-adapter.js";
|
|
11
7
|
import { nativePhoneOutput, updatePhoneFeedback } from "./task-feedback.js";
|
|
12
8
|
import { PhoneFrameCache, PhoneOperationBudget } from "./live-state.js";
|
|
13
9
|
import { PhoneInteractiveSession } from "./interactive-session.js";
|
|
@@ -17,6 +13,10 @@ import { AdbPhoneDriver, resolveAdbPath } from "./adb-driver.js";
|
|
|
17
13
|
import { CloudPhones } from "./cloud-phones.js";
|
|
18
14
|
import { PhoneLocationEnvironment } from "./location-environment.js";
|
|
19
15
|
import { WirelessPhones } from "./wireless.js";
|
|
16
|
+
import { advancePhonePlan, buildPhonePlan, createPhonePlanState } from "./planning.js";
|
|
17
|
+
import { canDispatchPhoneAction, observationSignature, phoneCompletionSatisfied } from "./reliability.js";
|
|
18
|
+
import { groundPhoneCoordinateAction, resolvePhoneSemanticAction } from "./semantic-controls.js";
|
|
19
|
+
import { createPhoneModel, isAboutScreen } from "./model-adapter.js";
|
|
20
20
|
import { PhoneRepository } from "./repository.js";
|
|
21
21
|
import { phoneCompletionGuidance, phoneCompletionRecoveryHint } from "./completion-recovery.js";
|
|
22
22
|
import { confirmPhoneFocusRecovery, phoneBackRecovery, phoneUnfocusedTypingHint, preparePhoneFocusRecovery } from "./recovery.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ProjectStore, slugifyProjectName } from "./project-store.js";
|
|
2
|
+
import { getProjectForSession, getProjectWorkspacePathForSession, resolveProjectWorkspacePath } from "./workspace.js";
|
|
2
3
|
import { ProjectWorkspaceConflictError, ProjectWorkspaceMissingError, canonicalWorkspacePath, ensureWorkspaceDirectory, inferProjectNameFromWorkspaceRoot, isPathSameOrInsideWorkspace, isSafeAutoCreateWorkspaceRoot, resolveWorkspaceProjectRoot, workspaceDirectoryExists } from "./workspace-project.js";
|
|
3
4
|
import { inferProjectExecutionMode, inferProjectKind } from "./project-kind.js";
|
|
4
5
|
import { bindSessionToProject, bindSessionsToProject, listProjectConversationIds, moveSessionToProject, unbindSessionFromProject } from "./session-bind.js";
|
|
5
6
|
import { ProjectDeletionBlockedError, ProjectService, ProjectWorkspaceInUseError, ProjectWorkspaceInvalidError } from "./project-service.js";
|
|
6
|
-
import { ProjectSkillError, ProjectSkillService } from "./project-skill-service.js";
|
|
7
7
|
import { isValidProjectAgentId, normalizeProjectAgentId, resolveProjectAgentId } from "./project-agent.js";
|
|
8
8
|
import { CODING_PROJECT_AGENT_ID, inferSuggestedProjectDefaultAgentId, suggestProjectDefaultAgentId } from "./project-agent-suggestion.js";
|
|
9
|
+
import { ProjectSkillError, ProjectSkillService } from "./project-skill-service.js";
|
|
9
10
|
import { buildProjectLoopOverview } from "./project-loop.js";
|
|
10
11
|
import { bindAutomationToProject } from "./automation-bind.js";
|
|
11
12
|
import { bindKnowledgeItemToProject } from "./knowledge-bind.js";
|
|
12
|
-
import { getProjectForSession, getProjectWorkspacePathForSession, resolveProjectWorkspacePath } from "./workspace.js";
|
|
13
13
|
export { CODING_PROJECT_AGENT_ID, ProjectDeletionBlockedError, ProjectService, ProjectSkillError, ProjectSkillService, ProjectStore, ProjectWorkspaceConflictError, ProjectWorkspaceInUseError, ProjectWorkspaceInvalidError, ProjectWorkspaceMissingError, bindAutomationToProject, bindKnowledgeItemToProject, bindSessionToProject, bindSessionsToProject, buildProjectLoopOverview, canonicalWorkspacePath, ensureWorkspaceDirectory, getProjectForSession, getProjectWorkspacePathForSession, inferProjectExecutionMode, inferProjectKind, inferProjectNameFromWorkspaceRoot, inferSuggestedProjectDefaultAgentId, isPathSameOrInsideWorkspace, isSafeAutoCreateWorkspaceRoot, isValidProjectAgentId, listProjectConversationIds, moveSessionToProject, normalizeProjectAgentId, resolveProjectAgentId, resolveProjectWorkspacePath, resolveWorkspaceProjectRoot, slugifyProjectName, suggestProjectDefaultAgentId, unbindSessionFromProject, workspaceDirectoryExists };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inferProjectKind } from "./project-kind.js";
|
|
2
1
|
import { agentExists, init_resolve_route } from "../routing/resolve-route.js";
|
|
2
|
+
import { inferProjectKind } from "./project-kind.js";
|
|
3
3
|
//#region src/projects/project-agent-suggestion.ts
|
|
4
4
|
init_resolve_route();
|
|
5
5
|
const CODING_PROJECT_AGENT_ID = "coder";
|
|
@@ -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";
|
|
5
6
|
import { ProjectStore } from "./project-store.js";
|
|
7
|
+
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
6
8
|
import { enqueueProjectChanged } from "./project-change-events.js";
|
|
7
9
|
import { ProjectWorkspaceConflictError, ProjectWorkspaceMissingError, canonicalWorkspacePath, inferProjectNameFromWorkspaceRoot, isPathSameOrInsideWorkspace, isSafeAutoCreateWorkspaceRoot, resolveWorkspaceProjectRoot, workspaceDirectoryExists } from "./workspace-project.js";
|
|
8
10
|
import { drainProjectWorkspaceCreation, queueProjectWorkspaceCreation } from "./project-workspace-creation.js";
|
|
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 { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "../agent/skills/workspace-skills-dir.js";
|
|
3
|
-
import { loadSkills, loadWorkspaceSkillInventory } from "../agent/skills/index.js";
|
|
4
2
|
import { removeSkillsLockEntry } from "../agent/skills/hub-lock.js";
|
|
5
3
|
import { deleteManagedSkill, installSkillFromZip, isValidSkillId } from "../agent/skills/managed-store.js";
|
|
4
|
+
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "../agent/skills/workspace-skills-dir.js";
|
|
5
|
+
import { loadSkills, loadWorkspaceSkillInventory } from "../agent/skills/index.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";
|
|
5
4
|
import { resolveEffectiveAgentProfileForSession } from "../config/agent-profile.js";
|
|
6
5
|
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);
|
|
@@ -5,8 +5,8 @@ import { init_model_policy, isComputerModel, isDedicatedComputerProfile } from "
|
|
|
5
5
|
import { getModelCatalogStore, init_model_catalog_store } from "./model-catalog-store.js";
|
|
6
6
|
import { getModelRegistry, init_model_registry } from "./model-registry.js";
|
|
7
7
|
import "../phone/model-adapter.js";
|
|
8
|
-
import { getImageGenerationProvider } from "../agent/image/generation/provider-registry.js";
|
|
9
8
|
import { parseImageGenerationModelRef } from "../agent/image/generation/model-ref.js";
|
|
9
|
+
import { getImageGenerationProvider } from "../agent/image/generation/provider-registry.js";
|
|
10
10
|
//#region src/providers/model-reference-auditor.ts
|
|
11
11
|
init_contracts();
|
|
12
12
|
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 { 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
4
|
import { EndpointToolPolicyError } from "../endpoint-tools/policy.js";
|
|
5
|
+
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";
|
|
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";
|
|
5
6
|
import { collectExposureConflicts } from "./exposure-guards.js";
|
|
6
7
|
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,8 +1,8 @@
|
|
|
1
1
|
import { RuntimeError } from "./errors.js";
|
|
2
2
|
import { isAbsolute, join, posix, relative, resolve } from "node:path";
|
|
3
3
|
import { spawn } from "node:child_process";
|
|
4
|
-
import { lstat, mkdir, readdir, readlink, rename, rm, stat } from "node:fs/promises";
|
|
5
4
|
import AdmZip from "adm-zip";
|
|
5
|
+
import { lstat, mkdir, readdir, readlink, rename, rm, stat } from "node:fs/promises";
|
|
6
6
|
//#region src/runtime-tools/archive.ts
|
|
7
7
|
const MAX_ARCHIVE_ENTRIES = 5e4;
|
|
8
8
|
const MAX_TAR_OUTPUT_BYTES = 16 * 1024 * 1024;
|
|
@@ -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";
|
|
1
3
|
import { RuntimeError } from "./errors.js";
|
|
2
4
|
import { extractRuntimeArchive } from "./archive.js";
|
|
3
5
|
import { runRuntimeCommand } from "./command.js";
|
|
4
6
|
import { downloadVerifiedArchive, sha256File } from "./downloader.js";
|
|
5
7
|
import { withInstallLock } from "./install-lock.js";
|
|
6
8
|
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 { emitSessionTranscriptUpdate, onSessionTranscriptUpdate } from "./transcript-events.js";
|
|
4
3
|
import { effectiveWorkspacePathForSession, normalizeWorkingDirectoryInput, projectWorkspacePath } from "./session-workspace.js";
|
|
5
|
-
import {
|
|
4
|
+
import { emitSessionTranscriptUpdate, onSessionTranscriptUpdate } from "./transcript-events.js";
|
|
6
5
|
import { flattenMessageContent, messagesToClientHistory } from "./client-history.js";
|
|
6
|
+
import { fallbackTitleFromMessages, generateSessionTitleFromMessages, getSessionTitleSource, isWebchatConversationId, maybeRefineSessionTitleWithLlm, maybeSetProvisionalSessionTitle, provisionalTitleFromUserText, sanitizeGeneratedSessionTitle, sanitizeSessionTitle, shouldAutoTitleConversationId, shouldRefineSessionTitleWithLlm } from "./session-title.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 { isPersonalConversation } from "../personal-agent/repository.js";
|
|
6
5
|
import { SessionConfigSchema, init_schema } from "../config/schema.js";
|
|
6
|
+
import { isPersonalConversation } from "../personal-agent/repository.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 { isPersonalConversation } from "../personal-agent/repository.js";
|
|
9
8
|
import { SessionConfigSchema, init_schema } from "../config/schema.js";
|
|
9
|
+
import { isPersonalConversation } from "../personal-agent/repository.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";
|
|
16
17
|
import { resolveEffectiveAgentProfile } from "../config/agent-profile.js";
|
|
18
|
+
import { ACCEPTANCE_REPAIR_READ_TOOLS, canResumeAfterModelFailure } from "../agent/orchestration/turn-recovery.js";
|
|
17
19
|
import { DurableState } from "../storage/sqlite/durable-state.js";
|
|
18
|
-
import {
|
|
19
|
-
import { IdleCompactionScheduler } from "../agent/memory/idle-compaction-scheduler.js";
|
|
20
|
-
import { readPostCompactionContext } from "../agent/reply/post-compaction-context.js";
|
|
20
|
+
import { transcriptRowsToClientHistory } from "./client-history.js";
|
|
21
21
|
import { SessionCompactor } from "../agent/memory/compaction.js";
|
|
22
22
|
import { resolveCompactionPolicy } from "../agent/memory/compaction-policy.js";
|
|
23
|
+
import { IdleCompactionScheduler } from "../agent/memory/idle-compaction-scheduler.js";
|
|
24
|
+
import { readPostCompactionContext } from "../agent/reply/post-compaction-context.js";
|
|
23
25
|
import { promoteCompactionLedger } from "../agent/memory/compaction-promotion.js";
|
|
24
26
|
import { SlidingWindow } from "../agent/memory/window.js";
|
|
25
27
|
import { isAppendOnlyLlmTranscriptMessage } from "./transcript-stats.js";
|
|
26
|
-
import { transcriptRowsToClientHistory } from "./client-history.js";
|
|
27
28
|
import { compactHistory } from "./compact-history.js";
|
|
28
29
|
import { backfillStructuredTurnOutcomes } from "./turn-outcome-projector.js";
|
|
29
30
|
import { computeTranscriptUserRoundDeleteRange } from "./user-round-delete.js";
|
|
30
31
|
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 { normalizeThinkLevel } from "../agent/transcript/thinking-types.js";
|
|
2
1
|
import { resolveReasoningLevel, resolveThinkingLevel } from "./config-store.js";
|
|
2
|
+
import { normalizeThinkLevel } from "../agent/transcript/thinking-types.js";
|
|
3
3
|
//#region src/session/thinking-resolve.ts
|
|
4
4
|
const FALLBACK = "medium";
|
|
5
5
|
/**
|