@xopcai/xopc 0.0.428 → 0.0.430
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/{agents-yTsbcxRi.js → agents-Ds7K3D7T.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-task-card-w6cKxfaP.js → automation-task-card-DIjI_Y1X.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-D4LyOLzY.js → automations-page-BQwSCkmd.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-BGyvZZj5.js → automations-workspace-BUFTTjBq.js} +2 -2
- package/dist/gateway/static/root/assets/{capabilities-page-DHJLl4RD.js → capabilities-page-B8UgQ4dD.js} +2 -2
- package/dist/gateway/static/root/assets/{capabilities-settings-panel-FJ3Vo7Wa.js → capabilities-settings-panel-Bxn8HtEO.js} +2 -2
- package/dist/gateway/static/root/assets/{chat-page--dKUIg5W.js → chat-page-e-xCsrdS.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-Bm70SIjD.js → computer-settings-page-BIHbjBVt.js} +1 -1
- package/dist/gateway/static/root/assets/{image-generation-api-BbEnKsK1.js → image-generation-api-CdwYgzhU.js} +1 -1
- package/dist/gateway/static/root/assets/{index-ClPeYgQk.js → index-C5BhE5cA.js} +5 -5
- package/dist/gateway/static/root/assets/model-selector-YsCHu1Gn.js +1 -0
- package/dist/gateway/static/root/assets/{personal-page-CiKdXLeR.js → personal-page-Cvd-v9kT.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-connection-ucX3Tvl8.js → phone-model-connection-BieYnAJ5.js} +1 -1
- package/dist/gateway/static/root/assets/phone-model-picker-Bkex4Sre.js +1 -0
- package/dist/gateway/static/root/assets/{phone-settings-page-BSdB2pnW.js → phone-settings-page-D8PuvEuJ.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-CNaJb6Bj.js → product-preview-content-VcvxaO2S.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-modal-DgwrrpqJ.js → product-preview-modal-Ym6bomTW.js} +2 -2
- package/dist/gateway/static/root/assets/{project-detail-page-FReFYUv0.js → project-detail-page-CFbXWvcd.js} +1 -1
- package/dist/gateway/static/root/assets/{route-preload-DS4fVFbc.js → route-preload-C-VRKwB1.js} +2 -2
- package/dist/gateway/static/root/assets/{sessions-page-C8gwrFHR.js → sessions-page-C2CH-55n.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-DCQnHCNN.js → settings-page-B6vrcc6f.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-interaction-page-B9ACeAvO.js → setup-interaction-page-BDPte58u.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-L5RIelv0.js → task-detail-page-CC3Rzqq9.js} +1 -1
- package/dist/gateway/static/root/index.html +6 -6
- 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/coding/run-verification.d.ts +1 -0
- package/dist/src/agent/coding/run-verification.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 +6 -6
- package/dist/src/agent/embedded/run-turn.js +31 -23
- 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 +15 -12
- 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/database-schema.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/model-policy.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.d.ts +6 -0
- package/dist/src/config/models-json.js +10 -5
- 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 +1 -1
- 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 +16 -9
- 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 +3 -2
- package/dist/src/gateway/hono/routes/phone.js +3 -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 +6 -7
- 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 +47 -47
- 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 +5 -2
- package/dist/src/home-intelligence/generator.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/observability/runtime.d.ts +2 -0
- package/dist/src/observability/runtime.js +12 -1
- 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/contracts.d.ts +2 -0
- package/dist/src/phone/contracts.js +1 -0
- package/dist/src/phone/model-adapter.d.ts +1 -1
- package/dist/src/phone/model-adapter.js +30 -7
- package/dist/src/phone/model-policy.d.ts +4 -0
- package/dist/src/phone/model-policy.js +30 -0
- package/dist/src/phone/repository.js +1 -1
- package/dist/src/phone/runtime.js +4 -4
- package/dist/src/phone/structured-model.d.ts +6 -0
- package/dist/src/phone/structured-model.js +87 -0
- 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-catalog-types.d.ts +1 -1
- package/dist/src/providers/model-reference-auditor.js +3 -2
- package/dist/src/providers/presentation.js +5 -3
- 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/storage/sqlite/schema.d.ts +2 -2
- package/dist/src/storage/sqlite/schema.js +7 -7
- package/dist/src/storage/sqlite/upgrades/261_session_input_task_origins.sql +6 -0
- 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/platform-catalog.d.ts +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
- package/dist/gateway/static/root/assets/model-selector-DJSVr3LM.js +0 -1
- package/dist/gateway/static/root/assets/phone-model-picker-CU37sziM.js +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { appendMediaToAssistantTranscriptEntry, findLatestAssistantTranscriptEntryId } from "../../storage/sqlite/transcript-repository.js";
|
|
2
2
|
import "../../storage/sqlite/index.js";
|
|
3
3
|
import { isTTSAvailable } from "../../voice/tts/factory.js";
|
|
4
|
-
import { speak } from "../../voice/tts/speak-core.js";
|
|
5
4
|
import { mergeTtsConfigFromAppConfig } from "../../voice/tts/merge-config.js";
|
|
6
5
|
import { getChannelOutputFormat, shouldUseTTS } from "../../voice/tts/service.js";
|
|
6
|
+
import { speak } from "../../voice/tts/speak-core.js";
|
|
7
7
|
import { compressAudio } from "../../voice/tts/audio.js";
|
|
8
|
-
import { persistOutboundTtsAudio } from "../../channels/attachments/outbound-tts-persist.js";
|
|
9
8
|
import "../../voice/tts/index.js";
|
|
9
|
+
import { persistOutboundTtsAudio } from "../../channels/attachments/outbound-tts-persist.js";
|
|
10
10
|
import { deleteMediaUris } from "../../media/session-references.js";
|
|
11
11
|
//#region src/agent/service/webchat-tts.ts
|
|
12
12
|
/** True when the explicit TTS tool already produced durable Webchat audio. */
|
|
@@ -2,44 +2,39 @@ import { createLogger } from "../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { parseNoteAttachmentTarget } from "../notes/attachment-ref.js";
|
|
4
4
|
import { init_agent_scope, resolveAgentHomeDir, resolveDefaultAgentId } from "./agent-scope.js";
|
|
5
|
-
import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
|
|
6
|
-
import { init_agent_session_key, resolveAgentIdFromConversationId } from "../routing/agent-session-key.js";
|
|
7
|
-
import { extractProfileAgentId, resolveEffectiveAgentConfigForSession } from "../config/agent-profile.js";
|
|
8
|
-
import { init_providers, resolveModel } from "../providers/index.js";
|
|
9
|
-
import { configureTracing, flushTracing } from "../observability/runtime.js";
|
|
10
|
-
import { getUserTimezone } from "../user-model/repository.js";
|
|
11
5
|
import { extractTextContent } from "./context/workspace.js";
|
|
12
|
-
import { resolveAgentTurnTimeoutMs } from "./orchestration/run-agent-turn-with-timeout.js";
|
|
13
|
-
import { applyConfigOverrides } from "../config/runtime-overrides.js";
|
|
14
|
-
import { effectiveWorkspacePathForSession } from "../session/session-workspace.js";
|
|
15
|
-
import { getProjectForSession } from "../projects/workspace.js";
|
|
16
|
-
import "../user-model/index.js";
|
|
17
6
|
import { onSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
18
|
-
import {
|
|
7
|
+
import { getUserTimezone } from "../user-model/repository.js";
|
|
8
|
+
import { init_agent_session_key, resolveAgentIdFromConversationId } from "../routing/agent-session-key.js";
|
|
9
|
+
import "../user-model/index.js";
|
|
10
|
+
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "./skills/workspace-skills-dir.js";
|
|
11
|
+
import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
|
|
19
12
|
import { removeSkillsLockEntry } from "./skills/hub-lock.js";
|
|
20
13
|
import { installSkillFromZip } from "./skills/managed-store.js";
|
|
21
|
-
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "./skills/workspace-skills-dir.js";
|
|
22
14
|
import { pullSkillFromSource } from "./skills/hub-pull.js";
|
|
15
|
+
import { extractProfileAgentId, resolveEffectiveAgentConfigForSession } from "../config/agent-profile.js";
|
|
16
|
+
import { effectiveWorkspacePathForSession } from "../session/session-workspace.js";
|
|
17
|
+
import { getProjectForSession } from "../projects/workspace.js";
|
|
18
|
+
import { init_providers, resolveModel } from "../providers/index.js";
|
|
19
|
+
import { configureTracing, flushTracing } from "../observability/runtime.js";
|
|
20
|
+
import { runWithEmbeddedExecutionSession } from "./embedded/execution-context.js";
|
|
21
|
+
import { initializeCommands } from "../chat-commands/index.js";
|
|
22
|
+
import { applyConfigOverrides } from "../config/runtime-overrides.js";
|
|
23
|
+
import { ExtensionHookRunner } from "../extensions/hooks.js";
|
|
24
|
+
import "../extensions/index.js";
|
|
23
25
|
import { resolveResponseLanguageForSession } from "./prompt/response-language.js";
|
|
26
|
+
import { MAX_WEBCHAT_ATTACHMENT_FILE_BYTES } from "../gateway/chat-limits.js";
|
|
24
27
|
import { persistInboundAttachments } from "../channels/attachments/inbound-persist.js";
|
|
25
28
|
import { buildTranscriptUserMessage, hydrateUserTurnForLlm } from "./inbound/attachment-pipeline.js";
|
|
26
29
|
import { drainEmbeddedSessionRunnerShutdowns } from "./embedded/session-runner.js";
|
|
27
|
-
import { resolveCompactionPolicy } from "./memory/compaction-policy.js";
|
|
28
|
-
import { getModelThinking } from "../providers/model-thinking.js";
|
|
29
|
-
import { runXopcEmbeddedTurn } from "./embedded/run-turn.js";
|
|
30
|
-
import { normalizeSkillInstallTarget } from "./skills/install-target.js";
|
|
31
|
-
import { AgentManager } from "./agent-manager.js";
|
|
32
|
-
import { MAX_WEBCHAT_ATTACHMENT_FILE_BYTES } from "../gateway/chat-limits.js";
|
|
33
30
|
import { maybeRefineSessionTitleWithLlm, maybeSetProvisionalSessionTitle } from "../session/session-title.js";
|
|
31
|
+
import { resolveCompactionPolicy } from "./memory/compaction-policy.js";
|
|
34
32
|
import { SessionStore } from "../session/store.js";
|
|
35
33
|
import { SessionConfigStore } from "../session/config-store.js";
|
|
36
34
|
import "../session/index.js";
|
|
37
|
-
import { ExtensionHookRunner } from "../extensions/hooks.js";
|
|
38
|
-
import "../extensions/index.js";
|
|
39
35
|
import { SessionTracker } from "./session/tracker.js";
|
|
40
36
|
import { ModelManager } from "./models/manager.js";
|
|
41
37
|
import "./models/index.js";
|
|
42
|
-
import { initializeCommands } from "../chat-commands/index.js";
|
|
43
38
|
import { HookHandler } from "./lifecycle/hook-handler.js";
|
|
44
39
|
import { ToolErrorTracker } from "./tools/error-tracker.js";
|
|
45
40
|
import { RequestLimiter } from "./models/request-limiter.js";
|
|
@@ -51,6 +46,9 @@ import { ContextMiddleware } from "./middleware/context.js";
|
|
|
51
46
|
import "./middleware/index.js";
|
|
52
47
|
import { LifecycleManager } from "./lifecycle/manager.js";
|
|
53
48
|
import "./lifecycle/index.js";
|
|
49
|
+
import { resolveAgentTurnTimeoutMs } from "./orchestration/run-agent-turn-with-timeout.js";
|
|
50
|
+
import { getModelThinking } from "../providers/model-thinking.js";
|
|
51
|
+
import { runXopcEmbeddedTurn } from "./embedded/run-turn.js";
|
|
54
52
|
import { MessageRouter } from "./messaging/message-router.js";
|
|
55
53
|
import { CommandHandler } from "./messaging/command-handler.js";
|
|
56
54
|
import { StreamManager } from "./messaging/stream-manager.js";
|
|
@@ -68,6 +66,8 @@ import "./session/index.js";
|
|
|
68
66
|
import { AgentOrchestrator } from "./orchestration/agent-orchestrator.js";
|
|
69
67
|
import { AgentEventHandler } from "./orchestration/agent-event-handler.js";
|
|
70
68
|
import "./orchestration/index.js";
|
|
69
|
+
import { normalizeSkillInstallTarget } from "./skills/install-target.js";
|
|
70
|
+
import { AgentManager } from "./agent-manager.js";
|
|
71
71
|
import { TaskJudgeService } from "./tasks/task-judge-service.js";
|
|
72
72
|
import { analyzeResponseLanguage } from "../i18n/language-consistency.js";
|
|
73
73
|
import { readFile } from "node:fs/promises";
|
|
@@ -2,14 +2,14 @@ import { createLogger } from "../../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { chooseModelThinking } from "../../../packages/gateway-contract/src/model-selection.js";
|
|
4
4
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
5
|
+
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
5
6
|
import { ResponseLanguageSchema, init_response_language } from "../../i18n/response-language.js";
|
|
6
7
|
import { resolveEffectiveAgentConfigForSession } from "../../config/agent-profile.js";
|
|
7
8
|
import { normalizeWorkingDirectoryInput } from "../../session/session-workspace.js";
|
|
8
9
|
import { getProjectWorkspacePathForSession } from "../../projects/workspace.js";
|
|
9
|
-
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
10
|
-
import { getModelThinking } from "../../providers/model-thinking.js";
|
|
11
10
|
import { normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel } from "../transcript/thinking-types.js";
|
|
12
11
|
import "../../session/index.js";
|
|
12
|
+
import { getModelThinking } from "../../providers/model-thinking.js";
|
|
13
13
|
import { mkdir } from "node:fs/promises";
|
|
14
14
|
//#region src/agent/session/session-config-service.ts
|
|
15
15
|
init_src();
|
|
@@ -3,9 +3,9 @@ import { init_logger } from "../../utils/logger.js";
|
|
|
3
3
|
import { getExecutionEnvironmentForSession } from "../../execution-environments/subject.js";
|
|
4
4
|
import { effectiveWorkspacePathForSession, normalizeWorkingDirectoryInput, projectWorkspacePath } from "../../session/session-workspace.js";
|
|
5
5
|
import { getProjectForSession } from "../../projects/workspace.js";
|
|
6
|
-
import { getModelThinking } from "../../providers/model-thinking.js";
|
|
7
6
|
import { resolveEffectiveThinkingLevel } from "../../session/thinking-resolve.js";
|
|
8
7
|
import "../../session/index.js";
|
|
8
|
+
import { getModelThinking } from "../../providers/model-thinking.js";
|
|
9
9
|
import { mkdir, stat } from "node:fs/promises";
|
|
10
10
|
//#region src/agent/session/session-hydrator.ts
|
|
11
11
|
/**
|
|
@@ -2,10 +2,10 @@ import { createLogger } from "../../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { init_workspace_defaults, resolveDefaultAgentWorkspaceDir } from "../../config/workspace-defaults.js";
|
|
4
4
|
import { resolveEffectiveAgentProfileForSession } from "../../config/agent-profile.js";
|
|
5
|
-
import { init_providers, resolveModel } from "../../providers/index.js";
|
|
6
5
|
import { getExecutionEnvironmentForSession } from "../../execution-environments/subject.js";
|
|
7
6
|
import { effectiveWorkspacePathForSession, projectWorkspacePath } from "../../session/session-workspace.js";
|
|
8
7
|
import { getProjectForSession } from "../../projects/workspace.js";
|
|
8
|
+
import { init_providers, resolveModel } from "../../providers/index.js";
|
|
9
9
|
import { resolveCompactionPolicy } from "../memory/compaction-policy.js";
|
|
10
10
|
import { resolveVerboseLevel } from "../../session/config-store.js";
|
|
11
11
|
import { resolveConfiguredActivityDetailDefault, resolveEffectiveReasoningLevel, resolveEffectiveThinkingLevel } from "../../session/thinking-resolve.js";
|
|
@@ -2,10 +2,10 @@ 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, resolveSkillsDir } from "../../config/paths.js";
|
|
5
|
-
import { isManagedSkillTransientDirName } from "./managed-store.js";
|
|
6
5
|
import { createSkillConfigManager } from "./config.js";
|
|
7
6
|
import { resolveWorkspaceSkillsDir } from "./workspace-skills-dir.js";
|
|
8
7
|
import { resolveAgentsSkillsDir, resolveWorkspaceAgentsSkillsDir } from "./skill-sources.js";
|
|
8
|
+
import { isManagedSkillTransientDirName } from "./managed-store.js";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import chokidar from "chokidar";
|
|
11
11
|
//#region src/agent/skills/filesystem-watcher.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { init_write_file_atomic, writeTextAtomicSync } from "../../infra/write-file-atomic.js";
|
|
2
1
|
import { init_paths, resolveSkillsLockPath } from "../../config/paths.js";
|
|
2
|
+
import { init_write_file_atomic, writeTextAtomicSync } from "../../infra/write-file-atomic.js";
|
|
3
3
|
import { existsSync, readFileSync } from "node:fs";
|
|
4
4
|
//#region src/agent/skills/hub-lock.ts
|
|
5
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { parseFrontmatter } from "../../markdown/frontmatter.js";
|
|
2
|
-
import { getSkillsLockEntry, recordSkillsHubInstall } from "./hub-lock.js";
|
|
3
|
-
import { installSkillFromZip, isIgnorableZipEntry, isValidSkillId, prepareManagedSkillTempDir, promoteManagedSkillTempDir } from "./managed-store.js";
|
|
4
2
|
import { formatScanSummary, scanSkillDirectory } from "./scanner.js";
|
|
5
3
|
import { computeSkillTreeHashSync } from "./hub-hash.js";
|
|
4
|
+
import { getSkillsLockEntry, recordSkillsHubInstall } from "./hub-lock.js";
|
|
5
|
+
import { installSkillFromZip, isIgnorableZipEntry, isValidSkillId, prepareManagedSkillTempDir, promoteManagedSkillTempDir } from "./managed-store.js";
|
|
6
6
|
import { tmpdir } from "node:os";
|
|
7
7
|
import { basename, dirname, join, normalize, resolve, sep } from "node:path";
|
|
8
8
|
import { cpSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -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 { parseFrontmatter } from "../../markdown/frontmatter.js";
|
|
5
|
+
import { init_paths } from "../../config/paths.js";
|
|
6
6
|
import { findInstallSpec, hasBinary, installSkill } from "./installer.js";
|
|
7
7
|
import { applySkillEnvOverrides, createSkillConfigManager, getSkillEnvironment, isSkillEnabled, resolveSkillConfig, validateSkillConfig } from "./config.js";
|
|
8
8
|
import { parseSkillToolConditions } from "./skill-tool-gating.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { init_paths, resolveSkillsDir } from "../../config/paths.js";
|
|
2
1
|
import { parseFrontmatter } from "../../markdown/frontmatter.js";
|
|
2
|
+
import { init_paths, resolveSkillsDir } from "../../config/paths.js";
|
|
3
3
|
import { loadSkillsLock } from "./hub-lock.js";
|
|
4
4
|
import { dirname, join, resolve, sep } from "node:path";
|
|
5
5
|
import { existsSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { downloadSkillZipBuffer, fetchMarketplacePackageDetail, listSkillCategories, listSkillPackages, resolveSkillZipDownloadUrl, resolveSkillsStoreBaseUrl, skillIdForMarketplaceInstall, verifyStoreArtifactSha256 } from "./store-api-client.js";
|
|
2
1
|
import { registerMarketplaceAdapter } from "../../registry.js";
|
|
3
2
|
import { buildSkillMarkdownPreviewFromRaw } from "../../../skill-markdown-preview-from-raw.js";
|
|
3
|
+
import { downloadSkillZipBuffer, fetchMarketplacePackageDetail, listSkillCategories, listSkillPackages, resolveSkillZipDownloadUrl, resolveSkillsStoreBaseUrl, skillIdForMarketplaceInstall, verifyStoreArtifactSha256 } from "./store-api-client.js";
|
|
4
4
|
//#region src/agent/skills/marketplace/adapters/store/adapter.ts
|
|
5
5
|
const storeMarketplaceAdapter = {
|
|
6
6
|
id: "store",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { MAX_SKILL_ZIP_BYTES, isValidSkillId } from "../../../managed-store.js";
|
|
1
2
|
import { init_resolution, resolveConnectedPlatformEndpoint } from "../../../../../platform/resolution.js";
|
|
2
3
|
import { MAX_EXTENSION_STORE_ZIP_BYTES } from "../../../../../extensions/store-zip-limits.js";
|
|
3
|
-
import { MAX_SKILL_ZIP_BYTES, isValidSkillId } from "../../../managed-store.js";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
//#region src/agent/skills/marketplace/adapters/store/store-api-client.ts
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { init_paths, resolveSkillsDir } from "../../config/paths.js";
|
|
2
1
|
import { parseFrontmatter } from "../../markdown/frontmatter.js";
|
|
2
|
+
import { init_paths, resolveSkillsDir } from "../../config/paths.js";
|
|
3
3
|
import { resolveWorkspaceSkillsDir } from "./workspace-skills-dir.js";
|
|
4
4
|
import { formatScanSummary, scanSkillDirectory } from "./scanner.js";
|
|
5
5
|
import { fuzzyFindText, normalizeForFuzzyMatch, normalizeToLF, restoreLineEndings } from "../tools/edit-diff.js";
|
|
@@ -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, resolveBundledSkillsDir } from "../../config/paths.js";
|
|
5
|
-
import { AgentPluginStore } from "../../extensions/agent-plugins/store.js";
|
|
6
5
|
import { createSkillConfigManager, isSkillEnabled } from "./config.js";
|
|
7
6
|
import { formatSkillsForPrompt, selectSkillsVisibleInPrompt } from "./format-skills-prompt.js";
|
|
7
|
+
import { AgentPluginStore } from "../../extensions/agent-plugins/store.js";
|
|
8
8
|
import { createSkillLoader } from "./index.js";
|
|
9
9
|
//#region src/agent/skills/skill-manager.ts
|
|
10
10
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { init_paths, resolveSkillsDir } from "../../config/paths.js";
|
|
2
|
+
import { resolveWorkspaceSkillsDir } from "./workspace-skills-dir.js";
|
|
2
3
|
import { resolvePluginCapabilityAccess } from "../../extensions/agent-plugins/capability-access.js";
|
|
3
4
|
import { AgentPluginStore } from "../../extensions/agent-plugins/store.js";
|
|
4
|
-
import { resolveWorkspaceSkillsDir } from "./workspace-skills-dir.js";
|
|
5
5
|
import { homedir } from "node:os";
|
|
6
6
|
import { isAbsolute, join, relative, resolve } from "node:path";
|
|
7
7
|
import { existsSync, realpathSync } from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isSessionSourceBinding, isTurnContextRef, parseTurnContextRefs, summarizeSourceContext } from "./types.js";
|
|
2
2
|
import { buildUserAssertionAgentContext } from "./user-assertion-context.js";
|
|
3
|
-
import { injectSourceContextsIntoUserMessage } from "./injector.js";
|
|
4
3
|
import { buildFileAgentContext } from "./file-context.js";
|
|
5
4
|
import { buildSessionAgentContext } from "./session-context.js";
|
|
6
5
|
import { buildBrowserTabAgentContext } from "./browser-tab.js";
|
|
6
|
+
import { injectSourceContextsIntoUserMessage } from "./injector.js";
|
|
7
7
|
export { buildBrowserTabAgentContext, buildFileAgentContext, buildSessionAgentContext, buildUserAssertionAgentContext, injectSourceContextsIntoUserMessage, isSessionSourceBinding, isTurnContextRef, parseTurnContextRefs, summarizeSourceContext };
|
|
@@ -2,19 +2,19 @@ import { createLogger } from "../../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { TaskRepository, init_task_repository } from "../../tasks/task-repository.js";
|
|
4
4
|
import { TaskRunRepository, init_task_run_repository } from "../../tasks/task-run-repository.js";
|
|
5
|
+
import { resolveTaskLocale } from "../../tasks/task-language.js";
|
|
5
6
|
import { getAgentDefaultModelRef, init_schema } from "../../config/schema.js";
|
|
6
7
|
import { resolveEffectiveAgentProfileForSession } from "../../config/agent-profile.js";
|
|
7
|
-
import { getApiKey, init_providers, resolveModel } from "../../providers/index.js";
|
|
8
|
-
import { completeWithResolvedCredentials } from "../../providers/model-call.js";
|
|
9
|
-
import { extractAssistantText, getAssistantMessageErrorReason, isTransientProviderErrorMessage, stripCodeFences } from "../../providers/model-response.js";
|
|
10
|
-
import { canResumeAfterModelFailure } from "../orchestration/turn-recovery.js";
|
|
11
|
-
import { resolveTaskLocale } from "../../tasks/task-language.js";
|
|
12
|
-
import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
|
|
13
|
-
import { readWorkspaceRevision } from "../coding/workspace-revision.js";
|
|
14
8
|
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
9
|
+
import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
|
|
15
10
|
import { TaskApplicationService } from "../../tasks/task-application-service.js";
|
|
16
|
-
import {
|
|
11
|
+
import { getApiKey, init_providers, resolveModel } from "../../providers/index.js";
|
|
12
|
+
import { extractAssistantText, getAssistantMessageErrorReason, isTransientProviderErrorMessage, stripCodeFences } from "../../providers/model-response.js";
|
|
13
|
+
import { completeWithResolvedCredentials } from "../../providers/model-call.js";
|
|
17
14
|
import { currentTaskResearchResult } from "../../tasks/task-research-result.js";
|
|
15
|
+
import { resolveResponseLanguageForSession } from "../prompt/response-language.js";
|
|
16
|
+
import { readWorkspaceRevision } from "../coding/workspace-revision.js";
|
|
17
|
+
import { canResumeAfterModelFailure } from "../orchestration/turn-recovery.js";
|
|
18
18
|
import { buildResponseLanguageSection } from "../prompt/sections/response-language.js";
|
|
19
19
|
//#region src/agent/tasks/task-judge-service.ts
|
|
20
20
|
init_schema();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { turnOutcomeKindFromFileName } from "../../../packages/gateway-contract/src/turn-outcome.js";
|
|
2
2
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
3
3
|
import { resolveReverseProxyPublicUrl } from "../../gateway/public-url.js";
|
|
4
|
-
import { assertWorkspaceTreeReadable, checkedFilePath } from "../sandbox/fileAccess.js";
|
|
5
|
-
import { resolvePathUnderWorkspace } from "./tool-paths.js";
|
|
6
4
|
import { resolveGatewayEffectiveHost } from "../../config/gateway-bind.js";
|
|
5
|
+
import { resolvePathUnderWorkspace } from "./tool-paths.js";
|
|
6
|
+
import { assertWorkspaceTreeReadable, checkedFilePath } from "../sandbox/fileAccess.js";
|
|
7
7
|
import { resolveShareConfig } from "../../share/share-config.js";
|
|
8
8
|
import { mergeWithDefaults } from "../../share/site-share-config.js";
|
|
9
9
|
import { getShareStore } from "../../share/share-store.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { researchResumeContext } from "../orchestration/research-checkpoint.js";
|
|
2
2
|
import { claimResearchCheckpoint, createResearchCheckpoint, finishResearchCheckpoint, getResearchCheckpoint, recordResearchEvidence, recordResearchSearch, saveResearchCheckpoint } from "../../storage/sqlite/research-checkpoint-repository.js";
|
|
3
3
|
import { resolveAgentAbortReason } from "../orchestration/run-termination.js";
|
|
4
|
+
import { runGit } from "../../execution-environments/git.js";
|
|
5
|
+
import { LocalWorktreeManager } from "../../execution-environments/local-worktree-manager.js";
|
|
6
|
+
import { SessionEnvironmentService } from "../../execution-environments/session-environment-service.js";
|
|
4
7
|
import { readWorkspaceRevision } from "../coding/workspace-revision.js";
|
|
5
8
|
import { EXTERNAL_TOOL_NAMES } from "../external-tools/gateway-tools.js";
|
|
6
9
|
import "../external-tools/index.js";
|
|
7
10
|
import { getDelegationScope } from "../orchestration/delegation-scope.js";
|
|
8
11
|
import { DELEGATION_BUDGETS } from "../orchestration/delegation-budget.js";
|
|
9
12
|
import { createDelegateChildHandle } from "../child-agent-factory.js";
|
|
10
|
-
import { runGit } from "../../execution-environments/git.js";
|
|
11
|
-
import { LocalWorktreeManager } from "../../execution-environments/local-worktree-manager.js";
|
|
12
|
-
import { SessionEnvironmentService } from "../../execution-environments/session-environment-service.js";
|
|
13
13
|
import { DELEGATION_CAPABILITIES, DELEGATION_TOOL_CAPABILITIES, protectDelegatedTool, resolveDelegationTools } from "./delegation-policy.js";
|
|
14
14
|
import { resolve } from "node:path";
|
|
15
15
|
import { Type } from "@sinclair/typebox";
|
|
@@ -2,9 +2,9 @@ import { runProcess } from "../../process/run-process.js";
|
|
|
2
2
|
import { readWorkspaceRevision } from "../coding/workspace-revision.js";
|
|
3
3
|
import { commandRegistry, commandTimeout } from "../commands/command-registry.js";
|
|
4
4
|
import { evaluateExecPolicy } from "../sandbox/exec-policy.js";
|
|
5
|
+
import { classifyVerificationCommand } from "../coding/verification-command.js";
|
|
5
6
|
import { formatSize, truncateTail } from "./truncate.js";
|
|
6
7
|
import { publishArtifactPaths } from "./publish-artifacts.js";
|
|
7
|
-
import { classifyVerificationCommand } from "../coding/verification-command.js";
|
|
8
8
|
import { resolve } from "node:path";
|
|
9
9
|
import { Type } from "@sinclair/typebox";
|
|
10
10
|
//#region src/agent/tools/exec-command.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
+
import { withRetry } from "../../infra/retry.js";
|
|
3
4
|
import { commandTimeout } from "../commands/command-registry.js";
|
|
4
5
|
import { DEFAULT_TOOL_EXECUTION_TIMEOUT_MS, TimeoutError, executeWithTimeout } from "../lifecycle/timeout-wrapper.js";
|
|
5
|
-
import { withRetry } from "../../infra/retry.js";
|
|
6
6
|
import { ToolConcurrencyController, resolveToolLockMode } from "./concurrency.js";
|
|
7
7
|
//#region src/agent/tools/executor.ts
|
|
8
8
|
init_logger();
|
|
@@ -11,24 +11,32 @@ import "../../storage/sqlite/index.js";
|
|
|
11
11
|
import { init_agent_scope, resolveDefaultAgentId } from "../agent-scope.js";
|
|
12
12
|
import { getConversationRouting } from "../../storage/sqlite/conversation-repository.js";
|
|
13
13
|
import { init_session_key } from "../../routing/session-key.js";
|
|
14
|
-
import {
|
|
14
|
+
import { buildRuntimeEnvironment } from "../../runtime-tools/environment.js";
|
|
15
|
+
import { skillEnvironmentId } from "../skills/installer.js";
|
|
15
16
|
import { resolveEffectiveAgentConfigForAgent } from "../../config/agent-profile.js";
|
|
16
|
-
import { PERSONAL_TOOL_DESCRIPTIONS } from "../../personal-agent/policy.js";
|
|
17
17
|
import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
|
|
18
|
-
import {
|
|
19
|
-
import
|
|
18
|
+
import { BrowserRuntime } from "../../browser/runtime/browser-runtime.js";
|
|
19
|
+
import "../../../packages/browser-control-contract/src/index.js";
|
|
20
|
+
import { createBrowserDriver } from "../../browser/drivers/create-driver.js";
|
|
21
|
+
import { checkBrowserReadiness } from "../../browser/readiness.js";
|
|
22
|
+
import "../../browser/index.js";
|
|
20
23
|
import { getEmbeddedExecutionRunId, getEmbeddedExecutionSession } from "../embedded/execution-context.js";
|
|
24
|
+
import { mergeTtsConfigFromAppConfig } from "../../voice/tts/merge-config.js";
|
|
25
|
+
import { ComputerRuntime } from "../../computer/runtime.js";
|
|
26
|
+
import { wrapToolsWithProtection } from "./executor.js";
|
|
27
|
+
import { createDefaultExternalToolGatewayTools } from "../external-tools/index.js";
|
|
28
|
+
import { getPhoneRuntime, phoneExecutionContext } from "../../phone/runtime.js";
|
|
29
|
+
import { createWebFetchTool, createWebSearchTool } from "./web.js";
|
|
30
|
+
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
31
|
+
import { getActiveTranscriptUserText, getPendingTranscriptUserText } from "../inbound/attachment-pipeline.js";
|
|
32
|
+
import { createDataBatchTool } from "./dataBatch.js";
|
|
33
|
+
import { markCodemodeCoreRead } from "./codemode-permissions.js";
|
|
34
|
+
import { PERSONAL_TOOL_DESCRIPTIONS } from "../../personal-agent/policy.js";
|
|
35
|
+
import { PERSONAL_REQUEST_TOOL_IDS, TASK_EXECUTION_TOOL_IDS, filterExecutionTools, resolveExecutionToolPolicy } from "../embedded/execution-tool-policy.js";
|
|
21
36
|
import { createPhoneUseTool } from "./phone-use-tool.js";
|
|
22
37
|
import { LOCAL_READ_MAX_CHARS } from "./local-read-budget.js";
|
|
23
38
|
import { createPersonalAttentionTool } from "./personal-attention-tool.js";
|
|
24
39
|
import { withCoreToolExposure } from "./toolExposure.js";
|
|
25
|
-
import { markCodemodeCoreRead } from "./codemode-permissions.js";
|
|
26
|
-
import "../../../packages/browser-control-contract/src/index.js";
|
|
27
|
-
import { wrapToolsWithProtection } from "./executor.js";
|
|
28
|
-
import { createDefaultExternalToolGatewayTools } from "../external-tools/index.js";
|
|
29
|
-
import { buildRuntimeEnvironment } from "../../runtime-tools/environment.js";
|
|
30
|
-
import { skillEnvironmentId } from "../skills/installer.js";
|
|
31
|
-
import { createDataBatchTool } from "./dataBatch.js";
|
|
32
40
|
import { createXopcUseTool } from "./xopc-use-tool.js";
|
|
33
41
|
import { createMcpSetupTool } from "./mcp-setup-tool.js";
|
|
34
42
|
import { createReadFileTool } from "./read.js";
|
|
@@ -43,7 +51,6 @@ import { createSessionSearchTool } from "./session-search-tool.js";
|
|
|
43
51
|
import { createSessionRecallTool } from "./session-recall-tool.js";
|
|
44
52
|
import { createGrepTool } from "./grep.js";
|
|
45
53
|
import { createFindTool } from "./find.js";
|
|
46
|
-
import { createWebFetchTool, createWebSearchTool } from "./web.js";
|
|
47
54
|
import { createWebExtractTool } from "./web-extract.js";
|
|
48
55
|
import { createMessageTool } from "./communication.js";
|
|
49
56
|
import { createSendMediaTool } from "./send-media.js";
|
|
@@ -55,11 +62,6 @@ import { createUpdatePlanTool } from "./update-plan-tool.js";
|
|
|
55
62
|
import { createSessionStatusTool } from "./session-status-tool.js";
|
|
56
63
|
import { createMemoryMaintenanceTool } from "./memory-maintenance-tool.js";
|
|
57
64
|
import { createClarifyTool } from "./clarify-tool.js";
|
|
58
|
-
import { BrowserRuntime } from "../../browser/runtime/browser-runtime.js";
|
|
59
|
-
import { createBrowserDriver } from "../../browser/drivers/create-driver.js";
|
|
60
|
-
import { checkBrowserReadiness } from "../../browser/readiness.js";
|
|
61
|
-
import "../../browser/index.js";
|
|
62
|
-
import { getActiveTranscriptUserText, getPendingTranscriptUserText } from "../inbound/attachment-pipeline.js";
|
|
63
65
|
import { createDelegateTool } from "./delegate-tool.js";
|
|
64
66
|
import { createAutomationTool } from "./automation-tool.js";
|
|
65
67
|
import { createBrowserAutomationTool } from "./browser-automation-tool.js";
|
|
@@ -82,12 +84,10 @@ import { withPersonalPerformance } from "./personal-performance.js";
|
|
|
82
84
|
import { createPersonalRequestTools } from "./personal-request-tool.js";
|
|
83
85
|
import { createPersonalRequestConnectionTool, createPersonalRequestResultTool } from "./personal-request-result-tool.js";
|
|
84
86
|
import { createBrowserUseTool } from "./browser/tool/browser-use-tool.js";
|
|
85
|
-
import { ComputerRuntime } from "../../computer/runtime.js";
|
|
86
87
|
import { createComputerUseTool } from "./computer-use-tool.js";
|
|
87
88
|
import { createReviewWorkspaceTool } from "./review-workspace.js";
|
|
88
89
|
import { createLanguageDiagnosticsTool } from "./language-diagnostics.js";
|
|
89
90
|
import { createNoninteractiveToolPolicy } from "./noninteractive-tool-policy.js";
|
|
90
|
-
import { mergeTtsConfigFromAppConfig } from "../../voice/tts/merge-config.js";
|
|
91
91
|
import { createTextToSpeechTool } from "./tts-tool.js";
|
|
92
92
|
import { getAgentCapabilityToolNames } from "../capabilities/registry.js";
|
|
93
93
|
import "../capabilities/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { checkUrlSafety, checkWebsiteBlocklist } from "./url-safety.js";
|
|
2
|
-
import { lookup } from "node:dns";
|
|
3
2
|
import { Agent, fetch } from "undici";
|
|
3
|
+
import { lookup } from "node:dns";
|
|
4
4
|
//#region src/agent/tools/fetch-text.ts
|
|
5
5
|
/** Validate each redirect and the address actually used for the connection. */
|
|
6
6
|
async function fetchPublicText(input, blocklist, signal) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { getAgentDefaultImageGenerationModelConfig, init_schema } from "../../config/schema.js";
|
|
2
|
+
import { imageAssetFromDataUrl, imageFileExtensionForMimeType, mimeTypeFromFileName, parseImageDataUrl, sniffImageMimeType } from "../image/generation/image-assets.js";
|
|
3
|
+
import { getImageGenerationProvider } from "../image/generation/provider-registry.js";
|
|
2
4
|
import { buildCapabilityPlansForConfig } from "../../capabilities/readiness/from-config.js";
|
|
3
5
|
import "../../capabilities/readiness/index.js";
|
|
4
6
|
import { applyImageGenerationModelConfigDefaults } from "../image/image-helpers.js";
|
|
5
7
|
import { readWorkspaceFile, writeWorkspaceFile } from "../sandbox/fileAccess.js";
|
|
6
|
-
import { imageAssetFromDataUrl, imageFileExtensionForMimeType, mimeTypeFromFileName, parseImageDataUrl, sniffImageMimeType } from "../image/generation/image-assets.js";
|
|
7
8
|
import { persistToolMedia } from "./tool-media.js";
|
|
8
9
|
import { isFailoverError } from "../failover-error.js";
|
|
9
|
-
import { getImageGenerationProvider } from "../image/generation/provider-registry.js";
|
|
10
10
|
import { generateImage, listImageGenerationProvidersSummary } from "../image/generation/runtime.js";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
import { randomBytes } from "node:crypto";
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { assertBrowserUrlAllowed } from "../../browser/url-policy.js";
|
|
2
|
+
import { BrowserRuntime } from "../../browser/runtime/browser-runtime.js";
|
|
3
|
+
import "../../browser/index.js";
|
|
1
4
|
import { DEFAULT_TOOL_METADATA, getToolMetadata } from "./metadata.js";
|
|
2
5
|
import { ToolConcurrencyController, resolveToolLockMode } from "./concurrency.js";
|
|
6
|
+
import { createWebFetchTool, createWebSearchTool } from "./web.js";
|
|
3
7
|
import { resolveImageModelConfigForTool } from "../image/tool-model-config.js";
|
|
4
8
|
import { createDataBatchTool } from "./dataBatch.js";
|
|
5
9
|
import { createXopcUseTool } from "./xopc-use-tool.js";
|
|
@@ -18,7 +22,6 @@ import { createSessionSearchTool } from "./session-search-tool.js";
|
|
|
18
22
|
import { createSessionRecallTool } from "./session-recall-tool.js";
|
|
19
23
|
import { createGrepTool, grepTool } from "./grep.js";
|
|
20
24
|
import { createFindTool, findTool } from "./find.js";
|
|
21
|
-
import { createWebFetchTool, createWebSearchTool } from "./web.js";
|
|
22
25
|
import { DEFAULT_WEB_EXTRACT_MAX_LENGTH, MAX_RAW_HTML_CHARS_FOR_WEB_EXTRACT, createWebExtractTool, stripHtmlBoilerplate } from "./web-extract.js";
|
|
23
26
|
import { createMessageTool } from "./communication.js";
|
|
24
27
|
import { createSendMediaTool } from "./send-media.js";
|
|
@@ -30,9 +33,6 @@ import { createUpdatePlanTool } from "./update-plan-tool.js";
|
|
|
30
33
|
import { createSessionStatusTool } from "./session-status-tool.js";
|
|
31
34
|
import { createMemoryMaintenanceTool } from "./memory-maintenance-tool.js";
|
|
32
35
|
import { createClarifyTool } from "./clarify-tool.js";
|
|
33
|
-
import { assertBrowserUrlAllowed } from "../../browser/url-policy.js";
|
|
34
|
-
import { BrowserRuntime } from "../../browser/runtime/browser-runtime.js";
|
|
35
|
-
import "../../browser/index.js";
|
|
36
36
|
import { DEFAULT_DELEGATE_TOOLS, DELEGATE_BLOCKED_TOOLS, createDelegateTool } from "./delegate-tool.js";
|
|
37
37
|
import { createAutomationTool } from "./automation-tool.js";
|
|
38
38
|
import { createBrowserAutomationTool } from "./browser-automation-tool.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { checkedFilePath } from "../sandbox/fileAccess.js";
|
|
2
1
|
import { resolvePathUnderWorkspace } from "./tool-paths.js";
|
|
2
|
+
import { checkedFilePath } from "../sandbox/fileAccess.js";
|
|
3
3
|
import { readdir } from "fs/promises";
|
|
4
4
|
import { Type } from "@sinclair/typebox";
|
|
5
5
|
//#region src/agent/tools/list-dir.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getSqliteDatabase, init_transaction } from "../../storage/sqlite/transaction.js";
|
|
2
2
|
import { init_session_instance_repository, readCurrentTranscriptId } from "../../storage/sqlite/session-instance-repository.js";
|
|
3
|
-
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
4
3
|
import { getPersonalAgentByConversation } from "../../personal-agent/repository.js";
|
|
5
|
-
import {
|
|
4
|
+
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
6
5
|
import { parseLocalCheckTime } from "../../personal-agent/proactivity/follow-up-request.js";
|
|
7
6
|
import { applyThreadFeedback, getAttention, getProactivitySettings, listAttention, listInterestCandidates, patchAttention, patchProactivitySettings, rollbackStrategy, saveAttention, strategyState, userText } from "../../personal-agent/proactivity/repository.js";
|
|
7
|
+
import { boundedPersonalResult } from "./personal-result-budget.js";
|
|
8
8
|
import { Type } from "@sinclair/typebox";
|
|
9
9
|
//#region src/agent/tools/personal-attention-tool.ts
|
|
10
10
|
init_transaction();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { CapabilityDispatcher } from "../../capabilities/runtime/dispatcher.js";
|
|
1
2
|
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
2
3
|
import { getEmbeddedExecutionSession } from "../embedded/execution-context.js";
|
|
3
4
|
import { LOCAL_READ_MAX_CHARS } from "./local-read-budget.js";
|
|
4
|
-
import { CapabilityDispatcher } from "../../capabilities/runtime/dispatcher.js";
|
|
5
5
|
import { registerNoteReadCapabilities } from "../../notes/capabilities/read.js";
|
|
6
6
|
import { registerProjectReadCapabilities } from "../../projects/capabilities/read.js";
|
|
7
7
|
import { registerAutomationReadCapabilities } from "../../automations/capabilities/read.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "../../storage/sqlite/transaction.js";
|
|
2
2
|
import { TaskRunRepository, init_task_run_repository } from "../../tasks/task-run-repository.js";
|
|
3
3
|
import { init_request_repository, personalRequestForExecution } from "../../personal-agent/request-repository.js";
|
|
4
|
-
import { assertPersonalRequestAccountAccess } from "../../personal-agent/request-access.js";
|
|
5
4
|
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
6
5
|
import { selectionRequestHash } from "../../agent-matching/selection-repository.js";
|
|
7
6
|
import { PersonalRequestResultSchema } from "../../personal-agent/request-result.js";
|
|
7
|
+
import { assertPersonalRequestAccountAccess } from "../../personal-agent/request-access.js";
|
|
8
8
|
import { Type } from "@sinclair/typebox";
|
|
9
9
|
//#region src/agent/tools/personal-request-result-tool.ts
|
|
10
10
|
init_transaction();
|
|
@@ -5,13 +5,13 @@ import { getPersonalRequest, init_request_repository, listPersonalRequests, upda
|
|
|
5
5
|
import { getActiveConnectionWait, init_connection_wait_repository, reviseCurrentConnectionObjective, updateConnectionWait } from "../../storage/sqlite/connection-wait-repository.js";
|
|
6
6
|
import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
|
|
7
7
|
import { init_session_repository } from "../../storage/sqlite/session-repository.js";
|
|
8
|
-
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
9
8
|
import { TaskAllocationRepository } from "../../tasks/task-allocation-repository.js";
|
|
10
|
-
import {
|
|
11
|
-
import { personalCapabilities } from "../../personal-agent/capability-service.js";
|
|
9
|
+
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
12
10
|
import { selectionRequestHash } from "../../agent-matching/selection-repository.js";
|
|
13
|
-
import {
|
|
11
|
+
import { personalCapabilities } from "../../personal-agent/capability-service.js";
|
|
14
12
|
import { assertPersonalRequestTimeRange, cancelPersonalRequest, personalRequestSnapshot, publishPersonalRequest, stopPersonalRequestExecution, submitPersonalRequest } from "../../personal-agent/request-service.js";
|
|
13
|
+
import { boundedPersonalResult } from "./personal-result-budget.js";
|
|
14
|
+
import { createPersonalTaskTool } from "./personal-task-tool.js";
|
|
15
15
|
import { Type } from "@sinclair/typebox";
|
|
16
16
|
//#region src/agent/tools/personal-request-tool.ts
|
|
17
17
|
init_session_input_repository();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
2
2
|
import { readPersonalResult, retryPersonalResultDelivery } from "../../personal-agent/result-reader.js";
|
|
3
|
-
import "./local-read-budget.js";
|
|
4
3
|
import { waitForPersonalResult } from "../../personal-agent/result-read-continuations.js";
|
|
4
|
+
import "./local-read-budget.js";
|
|
5
5
|
import { Type } from "@sinclair/typebox";
|
|
6
6
|
//#region src/agent/tools/personal-result-tool.ts
|
|
7
7
|
const schema = Type.Object({
|
|
@@ -7,20 +7,20 @@ import { TaskRepository, init_task_repository } from "../../tasks/task-repositor
|
|
|
7
7
|
import { getPersonalRequest, init_request_repository } from "../../personal-agent/request-repository.js";
|
|
8
8
|
import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
|
|
9
9
|
import "../../storage/sqlite/index.js";
|
|
10
|
-
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
11
10
|
import { TaskAllocationRepository } from "../../tasks/task-allocation-repository.js";
|
|
12
11
|
import { TaskReadModelProjector } from "../../tasks/task-read-model-projector.js";
|
|
12
|
+
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
13
13
|
import { TaskOriginRepository } from "../../tasks/task-origin-repository.js";
|
|
14
|
-
import { boundedPersonalResult } from "./personal-result-budget.js";
|
|
15
14
|
import { parseTaskHandoffReferences } from "../../tasks/task-handoff.js";
|
|
16
15
|
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
17
16
|
import { TaskApplicationService } from "../../tasks/task-application-service.js";
|
|
18
|
-
import "../../
|
|
17
|
+
import { AgentSelectionRepository, selectionRequestHash } from "../../agent-matching/selection-repository.js";
|
|
19
18
|
import { getAvailablePersonalAgentTools, personalAgentModelAvailability } from "../../personal-agent/specialist-capabilities.js";
|
|
20
19
|
import { assessSpecialist, matchSpecialists } from "../../agent-matching/service.js";
|
|
21
|
-
import { createXopcUseTool } from "./xopc-use-tool.js";
|
|
22
|
-
import { AgentSelectionRepository, selectionRequestHash } from "../../agent-matching/selection-repository.js";
|
|
23
20
|
import { assertSpecialistEligible, createSelectedTask } from "../../agent-matching/delegation-service.js";
|
|
21
|
+
import "../../personal-agent/communication.js";
|
|
22
|
+
import { boundedPersonalResult } from "./personal-result-budget.js";
|
|
23
|
+
import { createXopcUseTool } from "./xopc-use-tool.js";
|
|
24
24
|
import { cancelPersonalTask } from "../../personal-agent/task-cancel.js";
|
|
25
25
|
import { randomUUID } from "node:crypto";
|
|
26
26
|
import { Type } from "@sinclair/typebox";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PhoneError, PhoneInputSchema, init_contracts } from "../../phone/contracts.js";
|
|
2
|
-
import { cancelPhoneAssistance, phoneResumeForRun, requirePhoneAssistance } from "../../phone/assistance.js";
|
|
3
2
|
import { getEmbeddedExecutionRunId } from "../embedded/execution-context.js";
|
|
3
|
+
import { cancelPhoneAssistance, phoneResumeForRun, requirePhoneAssistance } from "../../phone/assistance.js";
|
|
4
4
|
import { Type } from "@sinclair/typebox";
|
|
5
5
|
//#region src/agent/tools/phone-use-tool.ts
|
|
6
6
|
init_contracts();
|