@xopcai/xopc 0.0.337 → 0.0.339
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/{agent-avatar-dicebear-CSHghJkF.js → agent-avatar-dicebear-Cc_FeKSx.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-DcDz1HJb.js → agent-defaults-settings-panel-s5yXNGQE.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-C7A9k86o.js → agent-plugin-dialog-DoC_yH9K.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-wih5cVy1.js → agents-HRZFsjeH.js} +3 -3
- package/dist/gateway/static/root/assets/{app-management-settings-panel-LQ_zVJ9C.js → app-management-settings-panel-BquxFv-S.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-C2gaax8U.js → appearance-settings-CZYqmnu6.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-CobrkzwB.js → apps-page-jIVrH3te.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-CK_qS4Ex.js → archive-plugin-B0vUM0zp.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-DtuUM9W8.js → automations-page-B0Y5BNRb.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-BNcU6ReT.js → automations-workspace-8OSlJ6lL.js} +1 -1
- package/dist/gateway/static/root/assets/{binary-plugins-BN0iLzVY.js → binary-plugins-NBJu1CLg.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-CpLJmCV2.js → block-editor-TXHouZOO.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-DqKKZQNI.js → browser-automations-page-BqMknmu3.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-B0Vxlns8.js → browser-settings-page-GRFXQqKe.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-page-Bn72DIFn.js → capabilities-page-DmJDCbYN.js} +2 -2
- package/dist/gateway/static/root/assets/{capabilities-settings-panel-n4g4t5LK.js → capabilities-settings-panel-D8kedO-n.js} +1 -1
- package/dist/gateway/static/root/assets/{capability-header-actions-CIxZrN4w.js → capability-header-actions-BF9_u3xd.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-D8P0Sbu1.js → channels-BG-1mvQi.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-terminal-dock-BJzZ5vkP.js → chat-terminal-dock-DYysZFAt.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-WT8yMsKu.js → computer-settings-page-DI3Ek853.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-71NVbenX.js → connector-service-page-BWkcwg_D.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-DdBdSoYi.js → connectors-page-DBTyibaI.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-WyLSk4_J.js → date-picker-Di84qsYg.js} +1 -1
- package/dist/gateway/static/root/assets/{dependency-picker-BTdAiaBP.js → dependency-picker-BfxDCpmT.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-f0MgT5Um.js → desktop-pet-BRTL_oOb.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-DKVITn3D.js → desktop-pet-settings-BNVH1m1M.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-1Buarqmz.js → device-pairing-wizard-C3S9vWJ1.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-BoGtoYn0.js → directory-picker-path-field-BpuRd-vD.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-DPwnz1-y.js → extension-debug-page-mQPbBDJQ.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-CzioOhli.js → extension-page-BHSB_YFM.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-Cqq5bdYp.js → extension-settings-page-IoBTZ9jq.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-CoXYbhk4.js → gateway-settings-9HNthvnR.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-z3Jiv5fF.js → home-page-B_NubC1h.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-DHiUg7PR.js → imports-page-DLJp26Cn.js} +1 -1
- package/dist/gateway/static/root/assets/{index-D3OtdgCs.js → index-CdvabjRm.js} +23 -23
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-CbcZK4S6.js → keyboard-shortcuts-settings-YnkILLU1.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-3HC00KSx.js → local-app-workbench-page-C4d2T20s.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-etrJtvmm.js → local-apps-page-DfOhJ8iP.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-BsSdbCw2.js → logs-page-Ds6pm2I7.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-DODrHfBO.js → management-settings-D0kBRnl2.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-C0JdlHpy.js → media-plugins-vBKV9GvC.js} +1 -1
- package/dist/gateway/static/root/assets/{note-detail-panel-fPUNv1PI.js → note-detail-panel-CSdLXt8V.js} +3 -3
- package/dist/gateway/static/root/assets/{notes-page-I9h6l38z.js → notes-page-CIQEybLR.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-BlcjlzGF.js → page-context-capture-button-DvMerCk-.js} +1 -1
- package/dist/gateway/static/root/assets/{page-tabs-_eLR6cpb.js → page-tabs-Bp0yPTYw.js} +1 -1
- package/dist/gateway/static/root/assets/{preview-open-alternatives-BfJBJ4NU.js → preview-open-alternatives-CQO4X4dH.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-RdYBwQ_V.js → product-open-page-BQ4vLqay.js} +1 -1
- package/dist/gateway/static/root/assets/{project-detail-page-DyAKlm_h.js → project-detail-page-DGRQilZq.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-Bk51sbKy.js → projects-page-EvaT-KoY.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-BbMbnizV.js → remote-access-hub-D6EmYuZ9.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-yqbX-cYN.js → runtime-tools-settings-panel-POD_UkI6.js} +1 -1
- package/dist/gateway/static/root/assets/{scenes-page-L69Imde_.js → scenes-page-gpgblOWJ.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-BWlMiaNv.js → schema-form-DDjuoH6S.js} +1 -1
- package/dist/gateway/static/root/assets/{sessions-page-S-UqCz6P.js → sessions-page-D7QQpt4W.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-CPyqCG90.js +1 -0
- package/dist/gateway/static/root/assets/{settings-form-section-DqUsAh0K.js → settings-form-section-DziWi7ar.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-4eoaA_Hs.js → settings-page-DieZ7WKk.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-6BuwbANT.js → setup-status-panel-aGTS3JX2.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-B-w3pIG5.js → share-preview-page-CKuGdvQ1.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-Bn03bnYk.js → shares-settings-B2oqZsDF.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-api-BN7zgPjv.js → skill-api-CEaxaT32.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-BsBfMvch.js → skill-reload-api-BAzfIHkQ.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-CcYeAh5v.js → skills-page-C4z5rpJp.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-BV2zesop.js → system-settings-panel-DqFk7NdF.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-BqN3GUm7.js → task-detail-page-BIA_56uP.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-Dk3SmnSL.js → tunnel-api-mpYTR5df.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-DStU1Zyn.js → usage-page-CBew7QUj.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-D3oLuZ7h.js → use-autosave-CujxcROb.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-BXMZoqpb.js → user-model-page-DhMojGHW.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-api-key-field-CzvudzG6.js → voice-api-key-field-BAewnwoh.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-D6oUEOYn.js → work-discovery-overlay-Bgtzc3ng.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-CXxr4wmO.js → workflow-run-setup-panel-ONIY4un8.js} +1 -1
- package/dist/gateway/static/root/assets/{workflows-page-D9uPt_T2.js → workflows-page-DcVuZjq_.js} +1 -1
- package/dist/gateway/static/root/index.html +1 -1
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/index.js +2 -0
- package/dist/packages/gateway-contract/src/mobile-user-understanding.js +140 -0
- package/dist/src/agent/agent-manager.js +15 -15
- 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 +4 -4
- package/dist/src/agent/bootstrap/filter-bootstrap-files.js +1 -1
- package/dist/src/agent/coding/repository-instructions.js +1 -1
- package/dist/src/agent/context/coordinator.js +2 -2
- package/dist/src/agent/context/execution-context.js +4 -4
- package/dist/src/agent/context/execution-scope.js +2 -2
- 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/index.js +2 -2
- package/dist/src/agent/embedded/model-runtime.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +4 -4
- package/dist/src/agent/embedded/run-turn.js +4 -4
- package/dist/src/agent/embedded/session-tool-result-guard.js +3 -3
- package/dist/src/agent/embedded/tool-result-truncation.js +1 -1
- package/dist/src/agent/external-tools/cliProvider.js +3 -3
- package/dist/src/agent/external-tools/composio-provider.js +3 -3
- package/dist/src/agent/external-tools/endpoint-provider.js +2 -2
- package/dist/src/agent/external-tools/gateway-tools.js +1 -1
- package/dist/src/agent/external-tools/mcp-provider.js +3 -3
- package/dist/src/agent/image/generation/openai-images-provider.js +1 -1
- package/dist/src/agent/image/generation/providers/dashscope.js +1 -1
- package/dist/src/agent/image/generation/providers/fal.js +1 -1
- package/dist/src/agent/image/generation/providers/google.js +1 -1
- package/dist/src/agent/image/generation/runtime.js +1 -1
- package/dist/src/agent/image/index.js +1 -1
- package/dist/src/agent/image/load-image-media.js +1 -1
- package/dist/src/agent/image/tool-model-config.js +2 -2
- package/dist/src/agent/inbound/attachment-pipeline.js +1 -1
- package/dist/src/agent/inbound/inbound-loop.js +2 -2
- package/dist/src/agent/index.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-config.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-gateway.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-runtime.js +2 -2
- package/dist/src/agent/mcp/index.js +2 -2
- package/dist/src/agent/mcp/mcp-transport.js +1 -1
- package/dist/src/agent/mcp/oauth/mcp-oauth-manager.js +1 -1
- package/dist/src/agent/mcp/plugin-http-fetch.js +1 -1
- package/dist/src/agent/memory/context-recovery.js +1 -1
- package/dist/src/agent/memory/index.js +1 -1
- package/dist/src/agent/messaging/outbound-coordinator.js +1 -1
- package/dist/src/agent/orchestration/agent-orchestrator.js +1 -1
- package/dist/src/agent/prompt/service-prompt-builder.js +2 -2
- package/dist/src/agent/sandbox/exec-policy.js +1 -1
- package/dist/src/agent/service/direct-turn-helpers.js +4 -4
- package/dist/src/agent/service/process-direct-one-shot.js +1 -1
- package/dist/src/agent/service/process-direct-streaming.js +5 -5
- package/dist/src/agent/service/webchat-tts.js +2 -2
- package/dist/src/agent/service.js +21 -21
- package/dist/src/agent/session/session-inspector.js +1 -1
- package/dist/src/agent/source-context/index.d.ts +1 -0
- package/dist/src/agent/source-context/index.js +4 -3
- package/dist/src/agent/source-context/types.d.ts +2 -2
- package/dist/src/agent/source-context/types.js +1 -1
- package/dist/src/agent/source-context/user-assertion-context.d.ts +2 -0
- package/dist/src/agent/source-context/user-assertion-context.js +30 -0
- package/dist/src/agent/tasks/task-judge-service.js +4 -4
- package/dist/src/agent/tools/create-share-tool.js +3 -3
- package/dist/src/agent/tools/dataBatch.js +1 -1
- package/dist/src/agent/tools/delegate-tool.js +3 -3
- package/dist/src/agent/tools/delegation-parent-policy.js +1 -1
- package/dist/src/agent/tools/executor.js +1 -1
- package/dist/src/agent/tools/factory.js +16 -16
- package/dist/src/agent/tools/fetch-text.js +1 -1
- package/dist/src/agent/tools/image-generate-tool.js +3 -3
- package/dist/src/agent/tools/index.js +6 -6
- package/dist/src/agent/tools/list-dir.js +1 -1
- package/dist/src/agent/tools/publish-artifacts.js +2 -2
- package/dist/src/agent/tools/read.js +2 -2
- package/dist/src/agent/tools/review-workspace.js +1 -1
- package/dist/src/agent/tools/send-media.js +2 -2
- package/dist/src/agent/tools/skills-tools.js +1 -1
- package/dist/src/agent/tools/tts-tool.js +1 -1
- package/dist/src/agent/tools/user-context-tool.js +1 -1
- package/dist/src/agent/tools/write.js +2 -2
- package/dist/src/agent/tools/xopc-use-tool.js +1 -1
- package/dist/src/agent/workflow/subagent-runner.js +1 -1
- package/dist/src/agent-catalog/capabilities.js +2 -2
- package/dist/src/ai-assist/text-assist.js +1 -1
- package/dist/src/auth/credentials.js +1 -1
- package/dist/src/auth/oauth-provider-lock.js +1 -1
- package/dist/src/auth/sync-provider-auth.js +1 -1
- package/dist/src/automations/capabilities/drafts.js +1 -1
- package/dist/src/automations/domain/index.js +2 -2
- package/dist/src/automations/index.js +4 -4
- package/dist/src/automations/service/automation-service.js +2 -2
- package/dist/src/bootstrap/application-state.js +1 -1
- package/dist/src/browser/native-messaging-host.js +1 -1
- package/dist/src/capabilities/runtime/dispatcher.js +1 -1
- package/dist/src/capabilities/runtime/product.js +1 -1
- package/dist/src/channels/attachments/voice-stt-webchat.js +2 -2
- package/dist/src/channels/index.js +2 -2
- package/dist/src/channels/outbound-sender.js +1 -1
- package/dist/src/channels/pairing/allow-from-file.js +9 -9
- package/dist/src/channels/pairing/pairing-store.js +6 -6
- package/dist/src/chat-commands/agent-edit.js +1 -1
- package/dist/src/chat-commands/builtins/config.js +4 -4
- package/dist/src/chat-commands/builtins/review.js +1 -1
- 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/builtins/understanding.js +1 -1
- package/dist/src/chat-commands/builtins/workflow.js +2 -2
- package/dist/src/chat-commands/context.js +3 -3
- 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/doctor/checks/provider-auth.js +2 -2
- package/dist/src/cli/commands/doctor/checks/tool-runtimes.js +1 -1
- package/dist/src/cli/commands/extension-agent-plugin.js +2 -2
- package/dist/src/cli/commands/extension-dev.js +1 -1
- package/dist/src/cli/commands/extension-marketplace.js +2 -2
- package/dist/src/cli/commands/extension.js +4 -4
- package/dist/src/cli/commands/gateway/shared.js +1 -1
- package/dist/src/cli/commands/gateway/token.js +1 -1
- 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 +1 -1
- package/dist/src/cli/commands/onboard/channels/registry.js +1 -1
- package/dist/src/cli/commands/onboard/model.js +2 -2
- package/dist/src/cli/commands/onboard.js +1 -1
- package/dist/src/cli/commands/project.js +2 -2
- package/dist/src/cli/commands/runtime.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 +4 -4
- package/dist/src/cli/utils/gateway-client.js +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +2 -2
- package/dist/src/cli/utils/session.js +1 -1
- package/dist/src/computer/runtime.js +2 -2
- package/dist/src/config/index.js +7 -7
- package/dist/src/config/loader.js +3 -3
- package/dist/src/config/models-json.js +1 -1
- package/dist/src/config/schema.js +1 -1
- package/dist/src/connectors/cli/authorization.js +1 -1
- package/dist/src/connectors/cli/runtime.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-understanding.js +3 -3
- package/dist/src/connectors/connection-recovery-service.js +5 -5
- package/dist/src/connectors/health.js +1 -1
- package/dist/src/connectors/plugin-mcp-recovery.js +1 -1
- package/dist/src/discussions/live-worker.js +1 -1
- package/dist/src/discussions/recording.js +1 -1
- package/dist/src/discussions/sealer.js +1 -1
- package/dist/src/extensions/activation-context.js +3 -3
- package/dist/src/extensions/agent-plugins/validation.js +1 -1
- package/dist/src/extensions/api.js +4 -4
- package/dist/src/extensions/bundled-extension-activation.js +1 -1
- package/dist/src/extensions/index.js +3 -3
- package/dist/src/extensions/install.js +1 -1
- package/dist/src/extensions/loader.js +2 -2
- package/dist/src/extensions/sdk/index.js +1 -1
- package/dist/src/extensions/sdk/media.js +1 -1
- package/dist/src/extensions/update.js +1 -1
- package/dist/src/gateway/agents-admin.js +2 -2
- package/dist/src/gateway/device-routes.js +2 -2
- package/dist/src/gateway/file-path-classifier.js +2 -2
- package/dist/src/gateway/global-defaults-admin.js +1 -1
- package/dist/src/gateway/hono/app.js +3 -3
- package/dist/src/gateway/hono/lib/config-payload.js +4 -4
- 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/browser.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 +2 -2
- package/dist/src/gateway/hono/routes/home.js +1 -1
- package/dist/src/gateway/hono/routes/mcp.js +2 -2
- package/dist/src/gateway/hono/routes/media.js +1 -1
- package/dist/src/gateway/hono/routes/models.js +5 -5
- package/dist/src/gateway/hono/routes/notes.js +3 -3
- package/dist/src/gateway/hono/routes/projects.js +4 -4
- package/dist/src/gateway/hono/routes/session-command-handler.js +1 -1
- package/dist/src/gateway/hono/routes/session-input-handler.d.ts +2 -2
- package/dist/src/gateway/hono/routes/session-input-handler.js +3 -3
- package/dist/src/gateway/hono/routes/sessions.js +1 -1
- package/dist/src/gateway/hono/routes/shares.js +3 -3
- package/dist/src/gateway/hono/routes/site-shares.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +1 -1
- package/dist/src/gateway/hono/routes/user-model-refresh.js +1 -1
- package/dist/src/gateway/hono/routes/user-model.js +207 -5
- package/dist/src/gateway/hono/routes/voice.js +6 -6
- package/dist/src/gateway/hono/routes/workflows.js +2 -2
- package/dist/src/gateway/image-generation-setup.js +3 -3
- package/dist/src/gateway/index.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/run-loop.js +1 -1
- package/dist/src/gateway/scenes/mailContext.js +1 -1
- package/dist/src/gateway/scenes/slackThreadSource.js +1 -1
- package/dist/src/gateway/security/gateway-scopes.js +3 -0
- package/dist/src/gateway/server.js +1 -1
- package/dist/src/gateway/service/config-coordinator.js +3 -3
- package/dist/src/gateway/service/run-gateway-agent.js +3 -3
- package/dist/src/gateway/service/session-input-coordinator.js +1 -1
- package/dist/src/gateway/service/sessions-api.js +1 -1
- package/dist/src/gateway/service.js +42 -37
- package/dist/src/gateway/session-context-summary.js +1 -1
- package/dist/src/gateway/workspace-editor-path.js +2 -2
- package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
- package/dist/src/home-intelligence/generator.js +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 +10 -10
- package/dist/src/local-apps/service.js +2 -2
- package/dist/src/mcp/gateway-http-client.js +1 -1
- package/dist/src/media-understanding/openai-compatible-audio.js +1 -1
- package/dist/src/notes/agent-context.js +4 -4
- package/dist/src/notes/index.js +1 -1
- package/dist/src/notes/service.js +1 -1
- package/dist/src/notes/store.js +1 -1
- package/dist/src/providers/auth-runtime/resolve-auth.js +1 -1
- package/dist/src/providers/index.js +2 -2
- package/dist/src/providers/model-catalog-persistence.js +1 -1
- package/dist/src/providers/model-reference-auditor.js +1 -1
- package/dist/src/providers/register-runtime-providers.js +1 -1
- package/dist/src/remote-access/exposure-manager.js +1 -1
- package/dist/src/scenes/taskFollowUp/agentExecutor.js +4 -4
- package/dist/src/scenes/taskFollowUp/resources.js +1 -1
- package/dist/src/scenes/taskFollowUp/service.js +4 -4
- package/dist/src/session/index.js +2 -2
- package/dist/src/session/session-title.js +1 -1
- package/dist/src/session/store.js +4 -4
- package/dist/src/session/thinking-resolve.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 +1 -1
- package/dist/src/tasks/execution-context.js +1 -1
- package/dist/src/tasks/home-query-service.js +3 -3
- package/dist/src/tasks/index.js +4 -4
- package/dist/src/tasks/task-application-service.js +1 -1
- package/dist/src/tasks/task-context-assembler.js +1 -1
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tui/backends/embedded-backend.js +12 -12
- package/dist/src/tui/backends/gateway-realtime-backend.js +1 -1
- package/dist/src/tui/extension-host/load-extensions.js +1 -1
- package/dist/src/tui/tui-command-formatters.js +1 -1
- package/dist/src/tui/tui-commands.js +6 -6
- package/dist/src/tui/tui-picker-overlay.js +1 -1
- package/dist/src/tui/tui-skills-autocomplete.js +1 -1
- package/dist/src/tui/tui-startup-resources.js +4 -4
- package/dist/src/tui/tui.js +7 -7
- package/dist/src/tunnel/gateway-lifecycle.js +1 -1
- package/dist/src/user-model/goals.d.ts +1 -1
- package/dist/src/user-model/goals.js +2 -1
- package/dist/src/voice/realtime/memory-context.js +3 -3
- package/dist/src/voice/realtime/persona-context.js +1 -1
- package/dist/src/voice/realtime/runtime.js +3 -3
- 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/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/xopc-cloud-speech.js +1 -1
- package/dist/src/voice/tts/speak-core.js +1 -1
- package/dist/src/work-discovery/incremental-repository.js +1 -1
- package/dist/src/work-discovery/index.js +1 -1
- package/dist/src/work-discovery/service.js +5 -5
- package/dist/src/workflows/engine/workflow-engine.js +1 -1
- package/dist/src/workflows/service/workflow-run-service.js +8 -8
- package/dist/src/workflows/service/workflow-session-bridge.js +1 -1
- package/package.json +4 -4
- package/dist/gateway/static/root/assets/settings-advanced-gate-Q52AAHh_.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
-
import { shouldSilence } from "../../heartbeat/tokens.js";
|
|
4
3
|
import { createTypingController } from "../lifecycle/typing.js";
|
|
4
|
+
import { shouldSilence } from "../../heartbeat/tokens.js";
|
|
5
5
|
//#region src/agent/messaging/outbound-coordinator.ts
|
|
6
6
|
init_logger();
|
|
7
7
|
const log = createLogger("OutboundCoordinator");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
+
import { resolveEffectiveThinkingLevel } from "../../session/thinking-resolve.js";
|
|
3
4
|
import { abortEmbeddedRun } from "../embedded/runs.js";
|
|
4
5
|
import { persistInboundAttachments } from "../../channels/attachments/inbound-persist.js";
|
|
5
6
|
import { buildTranscriptUserMessage, clearPendingTranscriptUserMessage, hydrateUserTurnForLlm, setPendingTranscriptUserMessage } from "../inbound/attachment-pipeline.js";
|
|
6
|
-
import { resolveEffectiveThinkingLevel } from "../../session/thinking-resolve.js";
|
|
7
7
|
import { runEmbeddedTurnForSession } from "../embedded/run-for-session.js";
|
|
8
8
|
import { randomUUID } from "node:crypto";
|
|
9
9
|
//#region src/agent/orchestration/agent-orchestrator.ts
|
|
@@ -7,13 +7,13 @@ import { DEFAULT_USER_TRUST_LEVEL, init_trust_policy } from "../../user-context/
|
|
|
7
7
|
import { getUserTrustPolicy } from "../../storage/sqlite/user-trust-repository.js";
|
|
8
8
|
import { init_sqlite } from "../../storage/sqlite/index.js";
|
|
9
9
|
import { appendStablePromptSection } from "./cache-boundary.js";
|
|
10
|
+
import { mergeTtsConfigFromAppConfig } from "../../voice/tts/merge-config.js";
|
|
11
|
+
import { buildTtsSystemPromptHint } from "../../voice/tts/directives.js";
|
|
10
12
|
import { getUserTimezone } from "../../user-model/repository.js";
|
|
11
13
|
import "../../user-model/index.js";
|
|
12
14
|
import { resolveSystemPromptBuildParams } from "./system-prompt-params.js";
|
|
13
15
|
import { buildSystemPrompt } from "./system-prompt.js";
|
|
14
16
|
import { resolveResponseLanguageForSession } from "./response-language.js";
|
|
15
|
-
import { buildTtsSystemPromptHint } from "../../voice/tts/directives.js";
|
|
16
|
-
import { mergeTtsConfigFromAppConfig } from "../../voice/tts/merge-config.js";
|
|
17
17
|
//#region src/agent/prompt/service-prompt-builder.ts
|
|
18
18
|
init_sqlite();
|
|
19
19
|
init_interaction_state();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
-
import { validatePath, validateWritePath } from "./path-policy.js";
|
|
4
3
|
import { prepareSafeToolEnv } from "./sanitize-env-vars.js";
|
|
4
|
+
import { validatePath, validateWritePath } from "./path-policy.js";
|
|
5
5
|
import { auditCommand, validateCommand } from "./command-validator.js";
|
|
6
6
|
import { DEFAULT_SANDBOX_CONFIG } from "./types.js";
|
|
7
7
|
import { resolve } from "node:path";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { getClarificationResumeInput, init_clarification_wait_repository } from "../../storage/sqlite/clarification-wait-repository.js";
|
|
2
2
|
import { getConnectionResumeInput, init_connection_wait_repository } from "../../storage/sqlite/connection-wait-repository.js";
|
|
3
|
-
import { resolveImageHandlingStrategy } from "../image/vision-detection.js";
|
|
4
|
-
import { hydrateUserTurnForLlm } from "../inbound/attachment-pipeline.js";
|
|
5
|
-
import { buildTaskExecutionDirective } from "../../tasks/task-context-assembler.js";
|
|
6
|
-
import { shouldSkipResetOverlapCommand } from "../../session/reset-triggers.js";
|
|
7
3
|
import { parseSlashCommand } from "../../chat-commands/command-parse.js";
|
|
8
4
|
import { commandRegistry } from "../../chat-commands/registry.js";
|
|
9
5
|
import "../../chat-commands/index.js";
|
|
6
|
+
import { shouldSkipResetOverlapCommand } from "../../session/reset-triggers.js";
|
|
7
|
+
import { resolveImageHandlingStrategy } from "../image/vision-detection.js";
|
|
8
|
+
import { hydrateUserTurnForLlm } from "../inbound/attachment-pipeline.js";
|
|
10
9
|
import { runEmbeddedTurnForSession } from "../embedded/run-for-session.js";
|
|
11
10
|
import { injectSourceContextsIntoUserMessage } from "../source-context/injector.js";
|
|
11
|
+
import { buildTaskExecutionDirective } from "../../tasks/task-context-assembler.js";
|
|
12
12
|
import { prependAgentContext } from "../context/prepend.js";
|
|
13
13
|
import crypto from "node:crypto";
|
|
14
14
|
//#region src/agent/service/direct-turn-helpers.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { clearPendingTranscriptUserMessage, setPendingTranscriptUserMessage } from "../inbound/attachment-pipeline.js";
|
|
2
1
|
import { initSessionTurn } from "../../session/init-session-turn.js";
|
|
3
2
|
import "../../session/index.js";
|
|
3
|
+
import { clearPendingTranscriptUserMessage, setPendingTranscriptUserMessage } from "../inbound/attachment-pipeline.js";
|
|
4
4
|
import { buildDirectUserMessageContent } from "./build-direct-message-content.js";
|
|
5
5
|
import { hydratePerTurnState, runDirectAgentTurn, tryRunSlashCommand } from "./direct-turn-helpers.js";
|
|
6
6
|
//#region src/agent/service/process-direct-one-shot.ts
|
|
@@ -4,18 +4,18 @@ import { getClarificationResumeInput, init_clarification_wait_repository } from
|
|
|
4
4
|
import { getConnectionResumeInput, init_connection_wait_repository } from "../../storage/sqlite/connection-wait-repository.js";
|
|
5
5
|
import { init_agent_scope, resolveDefaultAgentId } from "../agent-scope.js";
|
|
6
6
|
import { init_agent_session_key, resolveAgentMainConversationId } from "../../routing/agent-session-key.js";
|
|
7
|
-
import {
|
|
8
|
-
import { abortEmbeddedRun } from "../embedded/runs.js";
|
|
9
|
-
import { clearPendingTranscriptUserMessage, setPendingTranscriptUserMessage } from "../inbound/attachment-pipeline.js";
|
|
7
|
+
import { stripEnvelopeTimestampPrefix } from "../../channels/envelope-timestamp.js";
|
|
10
8
|
import { mergeSttConfigFromAppConfig } from "../../voice/stt/config.js";
|
|
11
9
|
import "../../voice/stt/index.js";
|
|
12
|
-
import {
|
|
10
|
+
import { readAgentMessageContent } from "../memory/agent-message-access.js";
|
|
13
11
|
import { resolveConfiguredActivityDetailDefault, resolveEffectiveReasoningLevel } from "../../session/thinking-resolve.js";
|
|
14
12
|
import { initSessionTurn } from "../../session/init-session-turn.js";
|
|
15
13
|
import "../../session/index.js";
|
|
16
|
-
import {
|
|
14
|
+
import { abortEmbeddedRun } from "../embedded/runs.js";
|
|
15
|
+
import { clearPendingTranscriptUserMessage, setPendingTranscriptUserMessage } from "../inbound/attachment-pipeline.js";
|
|
17
16
|
import { isVoiceLikeAttachment, mergeVoiceTranscriptsIntoUserText, requestsOriginalVoiceInspection } from "../../channels/attachments/voice-stt-webchat.js";
|
|
18
17
|
import { applyReasoningVisibility } from "../streaming/reasoning-visibility.js";
|
|
18
|
+
import { formatAgentRunErrorForClient } from "../client-error-format.js";
|
|
19
19
|
import { isSessionSourceBinding, summarizeSourceContext } from "../source-context/types.js";
|
|
20
20
|
import { injectSourceContextsIntoUserMessage } from "../source-context/injector.js";
|
|
21
21
|
import { AsyncQueue, AsyncQueueOverflowError } from "./async-queue.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { appendMediaToAssistantTranscriptEntry, findLatestAssistantTranscriptEntryId } from "../../storage/sqlite/transcript-repository.js";
|
|
2
2
|
import { init_sqlite } from "../../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
|
init_sqlite();
|
|
@@ -1,42 +1,34 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { init_attachment_ref, parseNoteAttachmentTarget } from "../notes/attachment-ref.js";
|
|
4
|
-
import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
|
|
5
|
-
import { applyConfigOverrides } from "../config/runtime-overrides.js";
|
|
6
4
|
import { init_agent_scope, resolveAgentHomeDir, resolveDefaultAgentId } from "./agent-scope.js";
|
|
5
|
+
import { extractTextContent } from "./context/workspace.js";
|
|
6
|
+
import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
|
|
7
7
|
import { init_agent_session_key, resolveAgentIdFromConversationId } from "../routing/agent-session-key.js";
|
|
8
|
-
import { extractProfileAgentId } from "../config/agent-profile.js";
|
|
9
8
|
import { init_providers, resolveModel } from "../providers/index.js";
|
|
10
|
-
import { extractTextContent } from "./context/workspace.js";
|
|
11
|
-
import { effectiveWorkspacePathForSession } from "../session/session-workspace.js";
|
|
12
|
-
import { getProjectForSession } from "../projects/workspace.js";
|
|
13
|
-
import { runWithEmbeddedExecutionSession } from "./embedded/execution-context.js";
|
|
14
9
|
import { removeSkillsLockEntry } from "./skills/hub-lock.js";
|
|
15
10
|
import { installSkillFromZip } from "./skills/managed-store.js";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
11
|
+
import { extractProfileAgentId } from "../config/agent-profile.js";
|
|
12
|
+
import { effectiveWorkspacePathForSession } from "../session/session-workspace.js";
|
|
13
|
+
import { getProjectForSession } from "../projects/workspace.js";
|
|
18
14
|
import { getUserTimezone } from "../user-model/repository.js";
|
|
19
15
|
import "../user-model/index.js";
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { resolveResponseLanguageForSession } from "./prompt/response-language.js";
|
|
27
|
-
import { normalizeSkillInstallTarget } from "./skills/install-target.js";
|
|
28
|
-
import { AgentManager } from "./agent-manager.js";
|
|
16
|
+
import { initializeCommands } from "../chat-commands/index.js";
|
|
17
|
+
import { applyConfigOverrides } from "../config/runtime-overrides.js";
|
|
18
|
+
import { ExtensionHookRunner } from "../extensions/hooks.js";
|
|
19
|
+
import "../extensions/index.js";
|
|
20
|
+
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "./skills/workspace-skills-dir.js";
|
|
21
|
+
import { pullSkillFromSource } from "./skills/hub-pull.js";
|
|
29
22
|
import { MAX_WEBCHAT_ATTACHMENT_FILE_BYTES } from "../gateway/chat-limits.js";
|
|
30
23
|
import { maybeRefineSessionTitleWithLlm, maybeSetProvisionalSessionTitle } from "../session/session-title.js";
|
|
24
|
+
import { resolveCompactionPolicy } from "./memory/compaction-policy.js";
|
|
31
25
|
import { SessionStore } from "../session/store.js";
|
|
26
|
+
import { onSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
32
27
|
import { SessionConfigStore } from "../session/config-store.js";
|
|
33
28
|
import "../session/index.js";
|
|
34
|
-
import { ExtensionHookRunner } from "../extensions/hooks.js";
|
|
35
|
-
import "../extensions/index.js";
|
|
36
29
|
import { SessionTracker } from "./session/tracker.js";
|
|
37
30
|
import { ModelManager } from "./models/manager.js";
|
|
38
31
|
import "./models/index.js";
|
|
39
|
-
import { initializeCommands } from "../chat-commands/index.js";
|
|
40
32
|
import { HookHandler } from "./lifecycle/hook-handler.js";
|
|
41
33
|
import { ToolErrorTracker } from "./tools/error-tracker.js";
|
|
42
34
|
import { RequestLimiter } from "./models/request-limiter.js";
|
|
@@ -48,6 +40,11 @@ import { ContextMiddleware } from "./middleware/context.js";
|
|
|
48
40
|
import "./middleware/index.js";
|
|
49
41
|
import { LifecycleManager } from "./lifecycle/manager.js";
|
|
50
42
|
import "./lifecycle/index.js";
|
|
43
|
+
import { resolveAgentTurnTimeoutMs } from "./orchestration/run-agent-turn-with-timeout.js";
|
|
44
|
+
import { persistInboundAttachments } from "../channels/attachments/inbound-persist.js";
|
|
45
|
+
import { buildTranscriptUserMessage, hydrateUserTurnForLlm } from "./inbound/attachment-pipeline.js";
|
|
46
|
+
import { runWithEmbeddedExecutionSession } from "./embedded/execution-context.js";
|
|
47
|
+
import { runXopcEmbeddedTurn } from "./embedded/run-turn.js";
|
|
51
48
|
import { MessageRouter } from "./messaging/message-router.js";
|
|
52
49
|
import { CommandHandler } from "./messaging/command-handler.js";
|
|
53
50
|
import { StreamManager } from "./messaging/stream-manager.js";
|
|
@@ -66,7 +63,10 @@ import { AgentOrchestrator } from "./orchestration/agent-orchestrator.js";
|
|
|
66
63
|
import { AgentEventHandler } from "./orchestration/agent-event-handler.js";
|
|
67
64
|
import "./orchestration/index.js";
|
|
68
65
|
import { getWorkflowProgressBroker } from "./workflow/progress-broker.js";
|
|
66
|
+
import { resolveResponseLanguageForSession } from "./prompt/response-language.js";
|
|
69
67
|
import "./workflow/index.js";
|
|
68
|
+
import { normalizeSkillInstallTarget } from "./skills/install-target.js";
|
|
69
|
+
import { AgentManager } from "./agent-manager.js";
|
|
70
70
|
import { TaskJudgeService } from "./tasks/task-judge-service.js";
|
|
71
71
|
import { analyzeResponseLanguage } from "../i18n/language-consistency.js";
|
|
72
72
|
import { readFile } from "node:fs/promises";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { init_workspace_defaults, resolveDefaultAgentWorkspaceDir } from "../../config/workspace-defaults.js";
|
|
4
|
-
import { resolveEffectiveAgentProfileForSession } from "../../config/agent-profile.js";
|
|
5
4
|
import { init_providers, resolveModel } from "../../providers/index.js";
|
|
5
|
+
import { resolveEffectiveAgentProfileForSession } from "../../config/agent-profile.js";
|
|
6
6
|
import { getExecutionEnvironmentForSession } from "../../execution-environments/subject.js";
|
|
7
7
|
import { effectiveWorkspacePathForSession, projectWorkspacePath } from "../../session/session-workspace.js";
|
|
8
8
|
import { getProjectForSession } from "../../projects/workspace.js";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { isSessionSourceBinding, isTurnContextRef, parseTurnContextRefs, summarizeSourceContext } from "./types.js";
|
|
2
|
-
import { injectSourceContextsIntoUserMessage } from "./injector.js";
|
|
3
1
|
import { buildFileAgentContext } from "./file-context.js";
|
|
4
2
|
import { buildSessionAgentContext } from "./session-context.js";
|
|
5
3
|
import { buildMcpResourceAgentContext } from "./mcp-resource-context.js";
|
|
6
4
|
import { buildBrowserTabAgentContext } from "./browser-tab.js";
|
|
7
|
-
|
|
5
|
+
import { buildUserAssertionAgentContext } from "./user-assertion-context.js";
|
|
6
|
+
import { isSessionSourceBinding, isTurnContextRef, parseTurnContextRefs, summarizeSourceContext } from "./types.js";
|
|
7
|
+
import { injectSourceContextsIntoUserMessage } from "./injector.js";
|
|
8
|
+
export { buildBrowserTabAgentContext, buildFileAgentContext, buildMcpResourceAgentContext, buildSessionAgentContext, buildUserAssertionAgentContext, injectSourceContextsIntoUserMessage, isSessionSourceBinding, isTurnContextRef, parseTurnContextRefs, summarizeSourceContext };
|
|
@@ -13,7 +13,7 @@ export interface SessionSourceBinding {
|
|
|
13
13
|
}
|
|
14
14
|
export interface TurnContextRef {
|
|
15
15
|
refId?: string;
|
|
16
|
-
kind: 'note' | 'task' | 'file' | 'session' | 'browser_tab' | 'mcp_resource';
|
|
16
|
+
kind: 'note' | 'task' | 'file' | 'session' | 'browser_tab' | 'mcp_resource' | 'user_assertion';
|
|
17
17
|
sourceId: string;
|
|
18
18
|
expectedVersion?: string;
|
|
19
19
|
}
|
|
@@ -32,7 +32,7 @@ export interface SourceContextRefSummary {
|
|
|
32
32
|
}
|
|
33
33
|
export interface AgentSourceContext {
|
|
34
34
|
refId?: string;
|
|
35
|
-
kind: SessionSourceBinding['kind'] | 'task' | 'file' | 'session' | 'mcp_resource' | 'browser_tab' | 'browser_page' | 'app_context';
|
|
35
|
+
kind: SessionSourceBinding['kind'] | 'task' | 'file' | 'session' | 'mcp_resource' | 'browser_tab' | 'browser_page' | 'app_context' | 'user_assertion';
|
|
36
36
|
sourceId: string;
|
|
37
37
|
version: string;
|
|
38
38
|
title: string;
|
|
@@ -17,7 +17,7 @@ function summarizeSourceContext(context) {
|
|
|
17
17
|
function isTurnContextRef(value) {
|
|
18
18
|
if (!value || typeof value !== "object") return false;
|
|
19
19
|
const row = value;
|
|
20
|
-
return (row.kind === "note" || row.kind === "task" || row.kind === "file" || row.kind === "session" || row.kind === "browser_tab" || row.kind === "mcp_resource") && typeof row.sourceId === "string" && row.sourceId.trim().length > 0 && (row.refId === void 0 || typeof row.refId === "string" && /^[A-Za-z0-9_-]{1,64}$/.test(row.refId)) && (row.expectedVersion === void 0 || typeof row.expectedVersion === "string");
|
|
20
|
+
return (row.kind === "note" || row.kind === "task" || row.kind === "file" || row.kind === "session" || row.kind === "browser_tab" || row.kind === "mcp_resource" || row.kind === "user_assertion") && typeof row.sourceId === "string" && row.sourceId.trim().length > 0 && (row.refId === void 0 || typeof row.refId === "string" && /^[A-Za-z0-9_-]{1,64}$/.test(row.refId)) && (row.expectedVersion === void 0 || typeof row.expectedVersion === "string");
|
|
21
21
|
}
|
|
22
22
|
function parseTurnContextRefs(value, max = 5) {
|
|
23
23
|
if (value === void 0) return [];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { getAssertionSlot, getUserAssertion, listUserAssertionSources } from "../../user-model/repository.js";
|
|
2
|
+
import { canUseAssertion } from "../../user-model/usage-policy.js";
|
|
3
|
+
import "../../user-model/index.js";
|
|
4
|
+
//#region src/agent/source-context/user-assertion-context.ts
|
|
5
|
+
function buildUserAssertionAgentContext(assertionId, expectedVersion, agentId) {
|
|
6
|
+
const assertion = getUserAssertion(assertionId);
|
|
7
|
+
const slot = assertion ? getAssertionSlot(assertion.slotId) : void 0;
|
|
8
|
+
if (!assertion || !slot || slot.scope.type !== "global" || expectedVersion && expectedVersion !== String(assertion.recordedAt) || !canUseAssertion(assertion, Date.now(), {
|
|
9
|
+
use: "answer",
|
|
10
|
+
agentId
|
|
11
|
+
})) return null;
|
|
12
|
+
const sources = listUserAssertionSources([assertion.id]).get(assertion.id) ?? [];
|
|
13
|
+
return {
|
|
14
|
+
kind: "user_assertion",
|
|
15
|
+
sourceId: assertion.id,
|
|
16
|
+
version: String(assertion.recordedAt),
|
|
17
|
+
title: assertion.statement,
|
|
18
|
+
text: JSON.stringify({
|
|
19
|
+
id: assertion.id,
|
|
20
|
+
statement: assertion.statement,
|
|
21
|
+
predicate: slot.predicate,
|
|
22
|
+
scope: slot.scope,
|
|
23
|
+
status: assertion.status,
|
|
24
|
+
authority: assertion.authority,
|
|
25
|
+
sources
|
|
26
|
+
}, null, 2)
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { buildUserAssertionAgentContext };
|
|
@@ -2,14 +2,14 @@ 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 { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../../providers/model-response.js";
|
|
5
6
|
import { getAgentDefaultModelRef, init_schema } from "../../config/schema.js";
|
|
6
|
-
import { resolveEffectiveAgentProfileForSession } from "../../config/agent-profile.js";
|
|
7
7
|
import { getApiKey, init_providers, resolveModel } from "../../providers/index.js";
|
|
8
|
-
import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
|
|
9
|
-
import { readWorkspaceRevision } from "../coding/workspace-revision.js";
|
|
10
8
|
import { completeWithResolvedCredentials } from "../../providers/model-call.js";
|
|
11
|
-
import {
|
|
9
|
+
import { resolveEffectiveAgentProfileForSession } from "../../config/agent-profile.js";
|
|
12
10
|
import { TaskApplicationService } from "../../tasks/task-application-service.js";
|
|
11
|
+
import { readWorkspaceRevision } from "../coding/workspace-revision.js";
|
|
12
|
+
import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
|
|
13
13
|
//#region src/agent/tasks/task-judge-service.ts
|
|
14
14
|
init_schema();
|
|
15
15
|
init_providers();
|
|
@@ -1,15 +1,15 @@
|
|
|
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
|
-
import { assertWorkspaceTreeReadable, checkedFilePath } from "../sandbox/fileAccess.js";
|
|
4
|
-
import { resolvePathUnderWorkspace } from "./tool-paths.js";
|
|
5
3
|
import { resolveGatewayEffectiveHost } from "../../config/gateway-bind.js";
|
|
4
|
+
import { resolveReverseProxyPublicUrl } from "../../gateway/public-url.js";
|
|
5
|
+
import { resolvePathUnderWorkspace } from "./tool-paths.js";
|
|
6
|
+
import { assertWorkspaceTreeReadable, checkedFilePath } from "../sandbox/fileAccess.js";
|
|
6
7
|
import { resolveShareConfig } from "../../share/share-config.js";
|
|
7
8
|
import { mergeWithDefaults } from "../../share/site-share-config.js";
|
|
8
9
|
import { getShareStore } from "../../share/share-store.js";
|
|
9
10
|
import { getSiteShareStore } from "../../share/site-share-store.js";
|
|
10
11
|
import { resolveShareUrl, resolveSiteShareUrl } from "../../share/share-url.js";
|
|
11
12
|
import { publishHostedStaticSite } from "../../share/hosted-static-site-publish.js";
|
|
12
|
-
import { resolveReverseProxyPublicUrl } from "../../gateway/public-url.js";
|
|
13
13
|
import { audienceDefaults, decideShareKind, makeDescription, makeTitle, probeShareTarget, rememberStagedSite, stageSingleHtmlAsSite } from "../../share/share-auto.js";
|
|
14
14
|
import { scheduleThumbnail } from "../../share/share-thumbnail.js";
|
|
15
15
|
import { resolveToolLocale, shareToolErrorLine, shareToolSuccessLines } from "../../i18n/share-tool-bundle.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
+
import { renderDataBatch } from "../data-acquisition/render.js";
|
|
3
4
|
import { DataBatchSchema } from "../data-acquisition/schema.js";
|
|
4
5
|
import { acquireData } from "../data-acquisition/service.js";
|
|
5
|
-
import { renderDataBatch } from "../data-acquisition/render.js";
|
|
6
6
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
7
7
|
//#region src/agent/tools/dataBatch.ts
|
|
8
8
|
init_logger();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { runGit } from "../../execution-environments/git.js";
|
|
2
|
+
import { LocalWorktreeManager } from "../../execution-environments/local-worktree-manager.js";
|
|
3
|
+
import { SessionEnvironmentService } from "../../execution-environments/session-environment-service.js";
|
|
1
4
|
import { readWorkspaceRevision } from "../coding/workspace-revision.js";
|
|
2
5
|
import { EXTERNAL_TOOL_NAMES } from "../external-tools/gateway-tools.js";
|
|
3
6
|
import "../external-tools/index.js";
|
|
4
7
|
import { getDelegationScope } from "../orchestration/delegation-scope.js";
|
|
5
8
|
import { createDelegateChildHandle } from "../child-agent-factory.js";
|
|
6
|
-
import { runGit } from "../../execution-environments/git.js";
|
|
7
|
-
import { LocalWorktreeManager } from "../../execution-environments/local-worktree-manager.js";
|
|
8
|
-
import { SessionEnvironmentService } from "../../execution-environments/session-environment-service.js";
|
|
9
9
|
import { DELEGATION_CAPABILITIES, DELEGATION_TOOL_CAPABILITIES, protectDelegatedTool, resolveDelegationTools } from "./delegation-policy.js";
|
|
10
10
|
import { Type } from "@sinclair/typebox";
|
|
11
11
|
//#region src/agent/tools/delegate-tool.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveEffectiveAgentConfigForAgent, resolveEffectiveAgentConfigForSession } from "../../config/agent-profile.js";
|
|
2
|
-
import { parseExternalToolRef } from "../external-tools/refs.js";
|
|
3
2
|
import { mcpToolPolicyId } from "../mcp/bundle-mcp-policy.js";
|
|
3
|
+
import { parseExternalToolRef } from "../external-tools/refs.js";
|
|
4
4
|
import { createAgentTurnPolicy } from "../orchestration/agent-turn-policy.js";
|
|
5
5
|
//#region src/agent/tools/delegation-parent-policy.ts
|
|
6
6
|
/** Noninteractive callers cannot silently turn an ask policy into an allow. */
|
|
@@ -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();
|
|
@@ -7,16 +7,27 @@ import { getSessionMetadata } from "../../storage/sqlite/session-read-repository
|
|
|
7
7
|
import { getSessionTaskPlan, setSessionTaskPlan } from "../../storage/sqlite/session-task-plan-repository.js";
|
|
8
8
|
import { init_sqlite } from "../../storage/sqlite/index.js";
|
|
9
9
|
import { init_agent_scope, resolveDefaultAgentId } from "../agent-scope.js";
|
|
10
|
-
import {
|
|
10
|
+
import { BrowserRuntime } from "../../browser/runtime/browser-runtime.js";
|
|
11
11
|
import "../../../packages/browser-control-contract/src/index.js";
|
|
12
|
-
import {
|
|
12
|
+
import { createBrowserDriver } from "../../browser/drivers/create-driver.js";
|
|
13
|
+
import { checkBrowserReadiness } from "../../browser/readiness.js";
|
|
14
|
+
import "../../browser/index.js";
|
|
15
|
+
import { mergeTtsConfigFromAppConfig } from "../../voice/tts/merge-config.js";
|
|
16
|
+
import { resolveEffectiveAgentConfigForAgent, resolveEffectiveAgentConfigForSession } from "../../config/agent-profile.js";
|
|
17
|
+
import { createWorkflowCatalog } from "../workflow/catalog.js";
|
|
18
|
+
import { ComputerRuntime } from "../../computer/runtime.js";
|
|
19
|
+
import { buildRuntimeEnvironment } from "../../runtime-tools/environment.js";
|
|
20
|
+
import { skillEnvironmentId } from "../skills/installer.js";
|
|
13
21
|
import { wrapToolsWithProtection } from "./executor.js";
|
|
14
22
|
import { EXTERNAL_TOOL_NAMES } from "../external-tools/gateway-tools.js";
|
|
15
|
-
import { buildRuntimeEnvironment } from "../../runtime-tools/environment.js";
|
|
16
23
|
import { createDefaultExternalToolGatewayTools } from "../external-tools/index.js";
|
|
17
|
-
import {
|
|
24
|
+
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
25
|
+
import { getPendingTranscriptUserText } from "../inbound/attachment-pipeline.js";
|
|
18
26
|
import { createDataBatchTool } from "./dataBatch.js";
|
|
19
|
-
import {
|
|
27
|
+
import { getEmbeddedExecutionRunId, getEmbeddedExecutionSession } from "../embedded/execution-context.js";
|
|
28
|
+
import { createDelegateTool } from "./delegate-tool.js";
|
|
29
|
+
import { createDelegationParentPolicy } from "./delegation-parent-policy.js";
|
|
30
|
+
import { createReadFileTool } from "./read.js";
|
|
20
31
|
import { createWriteFileTool } from "./write.js";
|
|
21
32
|
import { createListDirTool } from "./list-dir.js";
|
|
22
33
|
import { createPublishArtifactsTool } from "./publish-artifacts.js";
|
|
@@ -39,14 +50,7 @@ import { createUpdatePlanTool } from "./update-plan-tool.js";
|
|
|
39
50
|
import { createSessionStatusTool } from "./session-status-tool.js";
|
|
40
51
|
import { createMemoryMaintenanceTool } from "./memory-maintenance-tool.js";
|
|
41
52
|
import { createClarifyTool } from "./clarify-tool.js";
|
|
42
|
-
import { BrowserRuntime } from "../../browser/runtime/browser-runtime.js";
|
|
43
|
-
import { createBrowserDriver } from "../../browser/drivers/create-driver.js";
|
|
44
|
-
import { checkBrowserReadiness } from "../../browser/readiness.js";
|
|
45
|
-
import "../../browser/index.js";
|
|
46
|
-
import { getPendingTranscriptUserText } from "../inbound/attachment-pipeline.js";
|
|
47
|
-
import { createDelegateTool } from "./delegate-tool.js";
|
|
48
53
|
import { createWorkflowTool } from "./workflow-tool.js";
|
|
49
|
-
import { createWorkflowCatalog } from "../workflow/catalog.js";
|
|
50
54
|
import { createWorkflowManageTool } from "./workflow-manage-tool.js";
|
|
51
55
|
import { createAutomationTool } from "./automation-tool.js";
|
|
52
56
|
import { createBrowserAutomationTool } from "./browser-automation-tool.js";
|
|
@@ -61,14 +65,10 @@ import { createManagedJobTool } from "./managed-job-tool.js";
|
|
|
61
65
|
import { createImageTool } from "./image-tool.js";
|
|
62
66
|
import { createImageGenerateTool } from "./image-generate-tool.js";
|
|
63
67
|
import "./index.js";
|
|
64
|
-
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
65
68
|
import { createBrowserUseTool } from "./browser/tool/browser-use-tool.js";
|
|
66
|
-
import { ComputerRuntime } from "../../computer/runtime.js";
|
|
67
69
|
import { createComputerUseTool } from "./computer-use-tool.js";
|
|
68
70
|
import { createReviewWorkspaceTool } from "./review-workspace.js";
|
|
69
71
|
import { createLanguageDiagnosticsTool } from "./language-diagnostics.js";
|
|
70
|
-
import { createDelegationParentPolicy } from "./delegation-parent-policy.js";
|
|
71
|
-
import { mergeTtsConfigFromAppConfig } from "../../voice/tts/merge-config.js";
|
|
72
72
|
import { createTextToSpeechTool } from "./tts-tool.js";
|
|
73
73
|
import { getAgentCapabilityToolNames } from "../capabilities/registry.js";
|
|
74
74
|
import "../capabilities/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { checkUrlSafety, checkWebsiteBlocklist } from "./url-safety.js";
|
|
2
|
-
import { Agent, fetch } from "undici";
|
|
3
2
|
import { lookup } from "node:dns";
|
|
3
|
+
import { Agent, fetch } from "undici";
|
|
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 { readWorkspaceFile, writeWorkspaceFile } from "../sandbox/fileAccess.js";
|
|
3
2
|
import { imageAssetFromDataUrl, imageFileExtensionForMimeType, mimeTypeFromFileName, parseImageDataUrl, sniffImageMimeType } from "../image/generation/image-assets.js";
|
|
4
|
-
import {
|
|
3
|
+
import { getImageGenerationProvider } from "../image/generation/provider-registry.js";
|
|
5
4
|
import { buildCapabilityPlansForConfig } from "../../capabilities/readiness/from-config.js";
|
|
6
5
|
import "../../capabilities/readiness/index.js";
|
|
7
6
|
import { applyImageGenerationModelConfigDefaults } from "../image/image-helpers.js";
|
|
7
|
+
import { readWorkspaceFile, writeWorkspaceFile } from "../sandbox/fileAccess.js";
|
|
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,8 +1,13 @@
|
|
|
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 { resolveImageModelConfigForTool } from "../image/tool-model-config.js";
|
|
7
|
+
import { createDataBatchTool } from "./dataBatch.js";
|
|
8
|
+
import { DEFAULT_DELEGATE_TOOLS, DELEGATE_BLOCKED_TOOLS, createDelegateTool } from "./delegate-tool.js";
|
|
3
9
|
import { DEFAULT_MAX_BYTES, DEFAULT_MAX_LINES, GREP_MAX_LINE_LENGTH, formatSize, truncateHead, truncateLine, truncateTail } from "./truncate.js";
|
|
4
10
|
import { createReadFileTool } from "./read.js";
|
|
5
|
-
import { createDataBatchTool } from "./dataBatch.js";
|
|
6
11
|
import { createWriteFileTool, writeFileTool } from "./write.js";
|
|
7
12
|
import { createListDirTool, listDirTool } from "./list-dir.js";
|
|
8
13
|
import { createPublishArtifactsTool } from "./publish-artifacts.js";
|
|
@@ -26,11 +31,6 @@ import { createUpdatePlanTool } from "./update-plan-tool.js";
|
|
|
26
31
|
import { createSessionStatusTool } from "./session-status-tool.js";
|
|
27
32
|
import { createMemoryMaintenanceTool } from "./memory-maintenance-tool.js";
|
|
28
33
|
import { createClarifyTool } from "./clarify-tool.js";
|
|
29
|
-
import { assertBrowserUrlAllowed } from "../../browser/url-policy.js";
|
|
30
|
-
import { BrowserRuntime } from "../../browser/runtime/browser-runtime.js";
|
|
31
|
-
import "../../browser/index.js";
|
|
32
|
-
import { resolveImageModelConfigForTool } from "../image/tool-model-config.js";
|
|
33
|
-
import { DEFAULT_DELEGATE_TOOLS, DELEGATE_BLOCKED_TOOLS, createDelegateTool } from "./delegate-tool.js";
|
|
34
34
|
import { createWorkflowTool } from "./workflow-tool.js";
|
|
35
35
|
import { createWorkflowManageTool } from "./workflow-manage-tool.js";
|
|
36
36
|
import { createAutomationTool } from "./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,9 +1,9 @@
|
|
|
1
1
|
import { turnOutcomeKindFromFileName, turnOutcomeMimeTypeFromFileName } from "../../../packages/gateway-contract/src/turn-outcome.js";
|
|
2
2
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
3
|
+
import { fileResourceId, fileSpaceId } from "../../files/file-service.js";
|
|
4
|
+
import { resolvePathUnderWorkspace } from "./tool-paths.js";
|
|
3
5
|
import { evaluateFilePolicy } from "../sandbox/exec-policy.js";
|
|
4
6
|
import { readWorkspaceFile } from "../sandbox/fileAccess.js";
|
|
5
|
-
import { resolvePathUnderWorkspace } from "./tool-paths.js";
|
|
6
|
-
import { fileResourceId, fileSpaceId } from "../../files/file-service.js";
|
|
7
7
|
import { persistToolMedia } from "./tool-media.js";
|
|
8
8
|
import { basename, isAbsolute, relative, sep } from "node:path";
|
|
9
9
|
import { realpath } from "node:fs/promises";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { isBareProfileMarkdownFileName, resolvePathUnderWorkspace, resolveProfileMarkdownPathIfBareName } from "./tool-paths.js";
|
|
1
2
|
import { checkedFilePath, readWorkspaceFileAsync } from "../sandbox/fileAccess.js";
|
|
2
|
-
import { dataScheduler } from "../data-acquisition/scheduler.js";
|
|
3
3
|
import { checkFileSafety } from "../prompt/safety.js";
|
|
4
|
+
import { dataScheduler } from "../data-acquisition/scheduler.js";
|
|
4
5
|
import { DEFAULT_MAX_BYTES, formatSize, truncateHead } from "./truncate.js";
|
|
5
|
-
import { isBareProfileMarkdownFileName, resolvePathUnderWorkspace, resolveProfileMarkdownPathIfBareName } from "./tool-paths.js";
|
|
6
6
|
import { stat } from "fs/promises";
|
|
7
7
|
import { Type } from "@sinclair/typebox";
|
|
8
8
|
//#region src/agent/tools/read.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { readWorkspaceRevision } from "../coding/workspace-revision.js";
|
|
2
1
|
import { prepareSafeToolEnv } from "../sandbox/sanitize-env-vars.js";
|
|
2
|
+
import { readWorkspaceRevision } from "../coding/workspace-revision.js";
|
|
3
3
|
import { evaluateFilePolicy } from "../sandbox/exec-policy.js";
|
|
4
4
|
import { checkedFilePath, readWorkspaceFile } from "../sandbox/fileAccess.js";
|
|
5
5
|
import { resolve } from "node:path";
|
|
@@ -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
|
-
import { readWorkspaceFile } from "../sandbox/fileAccess.js";
|
|
4
|
-
import { checkFileSafety } from "../prompt/safety.js";
|
|
5
3
|
import { resolvePathUnderWorkspace } from "./tool-paths.js";
|
|
6
4
|
import { MEDIA_MAX_BYTES } from "../../media/store.js";
|
|
5
|
+
import { readWorkspaceFile } from "../sandbox/fileAccess.js";
|
|
6
|
+
import { checkFileSafety } from "../prompt/safety.js";
|
|
7
7
|
import { persistToolMedia } from "./tool-media.js";
|
|
8
8
|
import { basename } from "node:path";
|
|
9
9
|
import { Type } from "@sinclair/typebox";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveStateDir } from "../../config/paths-state.js";
|
|
2
2
|
import { init_paths } from "../../config/paths.js";
|
|
3
|
-
import { DEFAULT_MAX_BYTES, formatSize, truncateHead } from "./truncate.js";
|
|
4
3
|
import { createSkillConfigManager, isSkillEnabled, resolveSkillConfig } from "../skills/config.js";
|
|
4
|
+
import { DEFAULT_MAX_BYTES, formatSize, truncateHead } from "./truncate.js";
|
|
5
5
|
import { resolveSkillReadablePath } from "../skills/skill-view-path.js";
|
|
6
6
|
import { readFileSync, statSync } from "fs";
|
|
7
7
|
import { Type } from "@sinclair/typebox";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
-
import { speak } from "../../voice/tts/speak-core.js";
|
|
4
3
|
import { mergeTtsConfigFromAppConfig } from "../../voice/tts/merge-config.js";
|
|
5
4
|
import { getChannelOutputFormat } from "../../voice/tts/service.js";
|
|
5
|
+
import { speak } from "../../voice/tts/speak-core.js";
|
|
6
6
|
import { compressAudio } from "../../voice/tts/audio.js";
|
|
7
7
|
import { persistOutboundTtsAudio } from "../../channels/attachments/outbound-tts-persist.js";
|
|
8
8
|
import { Type } from "@sinclair/typebox";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { retrievalLexicalSimilarity } from "../../retrieval/textFeatures.js";
|
|
2
1
|
import { deleteUserAssertion, getAssertionSlot, getUserAssertion, listUserAssertionSources, listUserAssertions, reconcileAssertion, setAssertionStatus } from "../../user-model/repository.js";
|
|
3
2
|
import { canUseAssertion } from "../../user-model/usage-policy.js";
|
|
4
3
|
import "../../user-model/index.js";
|
|
4
|
+
import { retrievalLexicalSimilarity } from "../../retrieval/textFeatures.js";
|
|
5
5
|
import { Type } from "@sinclair/typebox";
|
|
6
6
|
//#region src/agent/tools/user-context-tool.ts
|
|
7
7
|
const SearchSchema = Type.Object({
|