@xopcai/xopc 0.0.338 → 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-D7lwnzGf.js → agent-avatar-dicebear-Cc_FeKSx.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-Bsf_C5G-.js → agent-defaults-settings-panel-s5yXNGQE.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-D1bd54F4.js → agent-plugin-dialog-DoC_yH9K.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-D9LauN1U.js → agents-HRZFsjeH.js} +3 -3
- package/dist/gateway/static/root/assets/{app-management-settings-panel-Blp7cgN9.js → app-management-settings-panel-BquxFv-S.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-CKEHZAl0.js → appearance-settings-CZYqmnu6.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-CHCvTpXO.js → apps-page-jIVrH3te.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-BTQaxZoS.js → archive-plugin-B0vUM0zp.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-DT_SzVIu.js → automations-page-B0Y5BNRb.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-xyYt1P_F.js → automations-workspace-8OSlJ6lL.js} +1 -1
- package/dist/gateway/static/root/assets/{binary-plugins-CeeqvrXF.js → binary-plugins-NBJu1CLg.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-B5Si55pP.js → block-editor-TXHouZOO.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-DApYWSvZ.js → browser-automations-page-BqMknmu3.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-B4FRZt79.js → browser-settings-page-GRFXQqKe.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-page-Dm3rO9D9.js → capabilities-page-DmJDCbYN.js} +2 -2
- package/dist/gateway/static/root/assets/{capabilities-settings-panel-BxWC1fto.js → capabilities-settings-panel-D8kedO-n.js} +1 -1
- package/dist/gateway/static/root/assets/{capability-header-actions-ulVgiGk5.js → capability-header-actions-BF9_u3xd.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-CxjiPi_K.js → channels-BG-1mvQi.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-terminal-dock-k7s5v_aC.js → chat-terminal-dock-DYysZFAt.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-B6aKe8Pz.js → computer-settings-page-DI3Ek853.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-DS_dCuYu.js → connector-service-page-BWkcwg_D.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-CbLxkIGU.js → connectors-page-DBTyibaI.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-DOl4D6Og.js → date-picker-Di84qsYg.js} +1 -1
- package/dist/gateway/static/root/assets/{dependency-picker-DTZpqUW9.js → dependency-picker-BfxDCpmT.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-A9AmyZFd.js → desktop-pet-BRTL_oOb.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-D4NMQfeC.js → desktop-pet-settings-BNVH1m1M.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-B19IahuA.js → device-pairing-wizard-C3S9vWJ1.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-D_92XGjD.js → directory-picker-path-field-BpuRd-vD.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-CJEVTdVQ.js → extension-debug-page-mQPbBDJQ.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-Bo_QfERv.js → extension-page-BHSB_YFM.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-DyQKVwEg.js → extension-settings-page-IoBTZ9jq.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-Cm57iUdQ.js → gateway-settings-9HNthvnR.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-NBbSjN9G.js → home-page-B_NubC1h.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-B9T8hM43.js → imports-page-DLJp26Cn.js} +1 -1
- package/dist/gateway/static/root/assets/{index-B-NICmRj.js → index-CdvabjRm.js} +23 -23
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-DU3r7EWf.js → keyboard-shortcuts-settings-YnkILLU1.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-ChpwIJTp.js → local-app-workbench-page-C4d2T20s.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-Cz8SE9jo.js → local-apps-page-DfOhJ8iP.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-1oTbkOs_.js → logs-page-Ds6pm2I7.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-BXeXgpGe.js → management-settings-D0kBRnl2.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-DU8A_g9F.js → media-plugins-vBKV9GvC.js} +1 -1
- package/dist/gateway/static/root/assets/{note-detail-panel-D4KpPyvg.js → note-detail-panel-CSdLXt8V.js} +3 -3
- package/dist/gateway/static/root/assets/{notes-page-DvUYRsn1.js → notes-page-CIQEybLR.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-BmpkysKb.js → page-context-capture-button-DvMerCk-.js} +1 -1
- package/dist/gateway/static/root/assets/{page-tabs-BYVaSh2t.js → page-tabs-Bp0yPTYw.js} +1 -1
- package/dist/gateway/static/root/assets/{preview-open-alternatives-C3EhH0bN.js → preview-open-alternatives-CQO4X4dH.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-CR5vTalE.js → product-open-page-BQ4vLqay.js} +1 -1
- package/dist/gateway/static/root/assets/{project-detail-page-5e5nW6aK.js → project-detail-page-DGRQilZq.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-BEcT_inq.js → projects-page-EvaT-KoY.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-B1qvhjS4.js → remote-access-hub-D6EmYuZ9.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-B_0CfBAT.js → runtime-tools-settings-panel-POD_UkI6.js} +1 -1
- package/dist/gateway/static/root/assets/{scenes-page-DUL9nosj.js → scenes-page-gpgblOWJ.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-va7QWGEA.js → schema-form-DDjuoH6S.js} +1 -1
- package/dist/gateway/static/root/assets/{sessions-page-vVCF7_fY.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-CFLiI9wl.js → settings-form-section-DziWi7ar.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-uNvPtLCL.js → settings-page-DieZ7WKk.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-_w4HzIN6.js → setup-status-panel-aGTS3JX2.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-ByyeLleG.js → share-preview-page-CKuGdvQ1.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-BiLA03S-.js → shares-settings-B2oqZsDF.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-api-DXOq4iWa.js → skill-api-CEaxaT32.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-D2uzVAZq.js → skill-reload-api-BAzfIHkQ.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-BSnyNWx-.js → skills-page-C4z5rpJp.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-BPoF82eS.js → system-settings-panel-DqFk7NdF.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-DvVPVptc.js → task-detail-page-BIA_56uP.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-CA92GwfO.js → tunnel-api-mpYTR5df.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-B7F4u0TA.js → usage-page-CBew7QUj.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-Ca0tBkcs.js → use-autosave-CujxcROb.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-aeTxECGB.js → user-model-page-DhMojGHW.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-api-key-field-BL6CNWHA.js → voice-api-key-field-BAewnwoh.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-CSc9Xv9J.js → work-discovery-overlay-Bgtzc3ng.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-hho2_zza.js → workflow-run-setup-panel-ONIY4un8.js} +1 -1
- package/dist/gateway/static/root/assets/{workflows-page-N--cEC4e.js → workflows-page-DcVuZjq_.js} +1 -1
- package/dist/gateway/static/root/index.html +1 -1
- package/dist/package.js +1 -1
- package/dist/src/agent/agent-manager.js +13 -13
- 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 +3 -3
- 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/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 +1 -1
- 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 +19 -19
- package/dist/src/agent/session/session-inspector.js +1 -1
- package/dist/src/agent/source-context/index.js +2 -2
- 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/workflow/subagent-runner.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/sync-provider-auth.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/browser/native-messaging-host.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/builtins/config.js +3 -3
- 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 +6 -6
- 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/onboard/channels/registry.js +1 -1
- 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/index.js +1 -1
- package/dist/src/cli/utils/gateway-client.js +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +1 -1
- package/dist/src/cli/utils/session.js +1 -1
- package/dist/src/computer/runtime.js +2 -2
- package/dist/src/config/index.js +4 -4
- package/dist/src/config/loader.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/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 +1 -1
- package/dist/src/gateway/device-routes.js +2 -2
- package/dist/src/gateway/file-path-classifier.js +1 -1
- package/dist/src/gateway/global-defaults-admin.js +1 -1
- package/dist/src/gateway/hono/app.js +3 -3
- package/dist/src/gateway/hono/lib/config-payload.js +3 -3
- package/dist/src/gateway/hono/routes/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/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 +1 -1
- package/dist/src/gateway/hono/routes/projects.js +2 -2
- package/dist/src/gateway/hono/routes/session-command-handler.js +1 -1
- package/dist/src/gateway/hono/routes/session-input-handler.js +2 -2
- 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/user-model-refresh.js +1 -1
- package/dist/src/gateway/hono/routes/user-model.js +5 -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 +1 -1
- 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/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/sessions-api.js +1 -1
- package/dist/src/gateway/service.js +35 -35
- package/dist/src/gateway/session-context-summary.js +1 -1
- package/dist/src/gateway/workspace-editor-path.js +2 -2
- 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 +1 -1
- 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-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 +9 -9
- 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 +5 -5
- package/dist/src/tui/tui-picker-overlay.js +1 -1
- package/dist/src/tui/tui-skills-autocomplete.js +1 -1
- package/dist/src/tui/tui-startup-resources.js +4 -4
- package/dist/src/tui/tui.js +6 -6
- package/dist/src/tunnel/gateway-lifecycle.js +1 -1
- package/dist/src/voice/realtime/memory-context.js +3 -3
- 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 +3 -3
- package/dist/gateway/static/root/assets/settings-advanced-gate-BArcldzX.js +0 -1
|
@@ -4,39 +4,31 @@ import { init_attachment_ref, parseNoteAttachmentTarget } from "../notes/attachm
|
|
|
4
4
|
import { init_agent_scope, resolveAgentHomeDir, resolveDefaultAgentId } from "./agent-scope.js";
|
|
5
5
|
import { extractTextContent } from "./context/workspace.js";
|
|
6
6
|
import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
|
|
7
|
-
import { applyConfigOverrides } from "../config/runtime-overrides.js";
|
|
8
7
|
import { init_agent_session_key, resolveAgentIdFromConversationId } from "../routing/agent-session-key.js";
|
|
9
|
-
import { extractProfileAgentId } from "../config/agent-profile.js";
|
|
10
8
|
import { init_providers, resolveModel } from "../providers/index.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,8 +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
8
|
export { buildBrowserTabAgentContext, buildFileAgentContext, buildMcpResourceAgentContext, buildSessionAgentContext, buildUserAssertionAgentContext, injectSourceContextsIntoUserMessage, isSessionSourceBinding, isTurnContextRef, parseTurnContextRefs, summarizeSourceContext };
|
|
@@ -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({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { appendProductDeliveryText } from "../../../packages/gateway-contract/src/product-delivery.js";
|
|
2
2
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
3
|
+
import { fileResourceId, fileSpaceId } from "../../files/file-service.js";
|
|
4
|
+
import { isBareProfileMarkdownFileName, resolvePathUnderWorkspace, resolveProfileMarkdownPathIfBareName } from "./tool-paths.js";
|
|
3
5
|
import { writeWorkspaceFile } from "../sandbox/fileAccess.js";
|
|
4
6
|
import { checkFileSafety } from "../prompt/safety.js";
|
|
5
|
-
import { isBareProfileMarkdownFileName, resolvePathUnderWorkspace, resolveProfileMarkdownPathIfBareName } from "./tool-paths.js";
|
|
6
|
-
import { fileResourceId, fileSpaceId } from "../../files/file-service.js";
|
|
7
7
|
import { basename, relative, sep } from "path";
|
|
8
8
|
import { realpath } from "fs/promises";
|
|
9
9
|
import { Type } from "@sinclair/typebox";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { createSqliteTranscriptRuntime } from "../embedded/transcript-runtime.js";
|
|
4
|
+
import { STRUCTURED_OUTPUT_TOOL_NAME, createStructuredOutputTool } from "./structured-output-tool.js";
|
|
4
5
|
import { createDelegateChildHandle } from "../child-agent-factory.js";
|
|
5
6
|
import { DELEGATION_TOOL_CAPABILITIES, protectDelegatedTool, resolveDelegationTools } from "../tools/delegation-policy.js";
|
|
6
7
|
import { DELEGATE_BLOCKED_TOOLS } from "../tools/delegate-tool.js";
|
|
7
8
|
import { createDelegationParentPolicy } from "../tools/delegation-parent-policy.js";
|
|
8
|
-
import { STRUCTURED_OUTPUT_TOOL_NAME, createStructuredOutputTool } from "./structured-output-tool.js";
|
|
9
9
|
//#region src/agent/workflow/subagent-runner.ts
|
|
10
10
|
init_logger();
|
|
11
11
|
const log = createLogger("Agent:WorkflowSubagent");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
+
import { getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
|
|
3
4
|
import { getDefaultModelSync, init_providers, resolveModel } from "../providers/index.js";
|
|
4
5
|
import { createExtensionAwareStreamFn } from "../providers/extension-stream-bridge.js";
|
|
5
6
|
import { trackAiUsageStream } from "../usage/recorder.js";
|
|
6
7
|
import { isLocalModelBaseUrl, resolveModelCallApiKey, resolveModelCallOptions } from "../providers/model-call.js";
|
|
7
|
-
import { getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
|
|
8
8
|
import { normalizeContext } from "@earendil-works/pi-ai";
|
|
9
9
|
//#region src/ai-assist/text-assist.ts
|
|
10
10
|
init_providers();
|
|
@@ -3,8 +3,8 @@ import { createLogger } from "../utils/logger/index.js";
|
|
|
3
3
|
import { init_logger } from "../utils/logger.js";
|
|
4
4
|
import { init_paths, resolveAgentAuthProfilesPath, resolveAuthProfilesPath, resolveCredentialsDir, resolveOAuthPath } from "../config/paths.js";
|
|
5
5
|
import { init_write_file_atomic, writeTextAtomic } from "../infra/write-file-atomic.js";
|
|
6
|
-
import { getOAuthProviderDefinition, init_registry } from "./oauth/registry.js";
|
|
7
6
|
import { getApiKeyFromEnv, init_env_keys } from "../providers/env-keys.js";
|
|
7
|
+
import { getOAuthProviderDefinition, init_registry } from "./oauth/registry.js";
|
|
8
8
|
import { init_oauth_provider_lock, withOAuthProviderLock } from "./oauth-provider-lock.js";
|
|
9
9
|
import { dirname, join } from "path";
|
|
10
10
|
import { mkdir, readFile, readdir, rm } from "fs/promises";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { init_paths, resolveAgentAuthProfilesPath, resolveAuthProfilesPath, resolveOAuthPath } from "../config/paths.js";
|
|
3
|
-
import { getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
|
|
4
3
|
import { init_registry, isOAuthOnlyProvider } from "./oauth/registry.js";
|
|
4
|
+
import { getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
|
|
5
5
|
import { existsSync, readFileSync } from "node:fs";
|
|
6
6
|
//#region src/auth/sync-provider-auth.ts
|
|
7
7
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AutomationActionSchema, AutomationDeliveryPolicySchema, AutomationManagementSchema, AutomationReliabilitySchema, AutomationSafetyPolicySchema, AutomationScheduleSchema, AutomationSchema, AutomationStateSchema, AutomationTriggerSchema, CreateAutomationSchema, UpdateAutomationSchema } from "./validation.js";
|
|
2
|
-
import { computeNextAutomationRunAtMs, computeNextScheduleRunAtMs, timerDelayUntil } from "./schedule.js";
|
|
3
1
|
import { DEFAULT_AUTOMATION_TIMEOUT_SECONDS, DEFAULT_BROWSER_AUTOMATION_TIMEOUT_SECONDS, defaultAutomationTimeoutSeconds, resolveAutomationTimeoutSeconds } from "./defaults.js";
|
|
2
|
+
import { computeNextAutomationRunAtMs, computeNextScheduleRunAtMs, timerDelayUntil } from "./schedule.js";
|
|
3
|
+
import { AutomationActionSchema, AutomationDeliveryPolicySchema, AutomationManagementSchema, AutomationReliabilitySchema, AutomationSafetyPolicySchema, AutomationScheduleSchema, AutomationSchema, AutomationStateSchema, AutomationTriggerSchema, CreateAutomationSchema, UpdateAutomationSchema } from "./validation.js";
|
|
4
4
|
export { AutomationActionSchema, AutomationDeliveryPolicySchema, AutomationManagementSchema, AutomationReliabilitySchema, AutomationSafetyPolicySchema, AutomationScheduleSchema, AutomationSchema, AutomationStateSchema, AutomationTriggerSchema, CreateAutomationSchema, DEFAULT_AUTOMATION_TIMEOUT_SECONDS, DEFAULT_BROWSER_AUTOMATION_TIMEOUT_SECONDS, UpdateAutomationSchema, computeNextAutomationRunAtMs, computeNextScheduleRunAtMs, defaultAutomationTimeoutSeconds, resolveAutomationTimeoutSeconds, timerDelayUntil };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import { DEFAULT_AUTOMATION_TIMEOUT_SECONDS, DEFAULT_BROWSER_AUTOMATION_TIMEOUT_SECONDS, defaultAutomationTimeoutSeconds, resolveAutomationTimeoutSeconds } from "./domain/defaults.js";
|
|
2
|
+
import { computeNextAutomationRunAtMs, computeNextScheduleRunAtMs, timerDelayUntil } from "./domain/schedule.js";
|
|
1
3
|
import { AutomationActionSchema, AutomationDeliveryPolicySchema, AutomationManagementSchema, AutomationReliabilitySchema, AutomationSafetyPolicySchema, AutomationScheduleSchema, AutomationSchema, AutomationStateSchema, AutomationTriggerSchema, CreateAutomationSchema, UpdateAutomationSchema } from "./domain/validation.js";
|
|
4
|
+
import "./domain/index.js";
|
|
5
|
+
import { AutomationActionExecutor } from "./service/action-executor.js";
|
|
2
6
|
import { listBusinessEventDefinitions, registerBusinessEvent, validateCatalogedBusinessEvent } from "./events/event-catalog.js";
|
|
3
7
|
import { automationEventPublisher, claimAutomationEventDeliveries, claimAutomationEventsForProjection, completeAutomationEventDelivery, completeAutomationEventProjection, deferAutomationEventDelivery, expireAutomationEventProjectionLeases, failAutomationEventProjection, getAutomationEventDeliveryRunId, getAutomationEventForRun, getAutomationEventQueueMetrics, ingestAutomationEvent, listAutomationEventRecords, listAutomationEvents, markAutomationEventDeliveryQueued, reconcileAutomationEventDeliveries, releaseAutomationEventDelivery, releaseAutomationEventProjection, replayAutomationEvent, skipAutomationEventDelivery } from "./events/event-repository.js";
|
|
4
|
-
import { computeNextAutomationRunAtMs, computeNextScheduleRunAtMs, timerDelayUntil } from "./domain/schedule.js";
|
|
5
|
-
import { DEFAULT_AUTOMATION_TIMEOUT_SECONDS, DEFAULT_BROWSER_AUTOMATION_TIMEOUT_SECONDS, defaultAutomationTimeoutSeconds, resolveAutomationTimeoutSeconds } from "./domain/defaults.js";
|
|
6
|
-
import { AutomationActionExecutor } from "./service/action-executor.js";
|
|
7
8
|
import { AutomationEventDispatcher } from "./events/event-dispatcher.js";
|
|
8
9
|
import "./events/index.js";
|
|
9
10
|
import { resolveAutomationWebhookSecret } from "./webhook-secrets.js";
|
|
10
11
|
import { AutomationDeliveryRouter, getAutomationResultDeliveryMetrics, listAutomationResultDeliveries, retryAutomationResultDelivery } from "./delivery/delivery-router.js";
|
|
11
12
|
import "./delivery/index.js";
|
|
12
13
|
import { AutomationAlreadyExistsError, AutomationAlreadyRunningError, AutomationService } from "./service/automation-service.js";
|
|
13
|
-
import "./domain/index.js";
|
|
14
14
|
import "./service/index.js";
|
|
15
15
|
export { AutomationActionExecutor, AutomationActionSchema, AutomationAlreadyExistsError, AutomationAlreadyRunningError, AutomationDeliveryPolicySchema, AutomationDeliveryRouter, AutomationEventDispatcher, AutomationManagementSchema, AutomationReliabilitySchema, AutomationSafetyPolicySchema, AutomationScheduleSchema, AutomationSchema, AutomationService, AutomationStateSchema, AutomationTriggerSchema, CreateAutomationSchema, DEFAULT_AUTOMATION_TIMEOUT_SECONDS, DEFAULT_BROWSER_AUTOMATION_TIMEOUT_SECONDS, UpdateAutomationSchema, automationEventPublisher, claimAutomationEventDeliveries, claimAutomationEventsForProjection, completeAutomationEventDelivery, completeAutomationEventProjection, computeNextAutomationRunAtMs, computeNextScheduleRunAtMs, defaultAutomationTimeoutSeconds, deferAutomationEventDelivery, expireAutomationEventProjectionLeases, failAutomationEventProjection, getAutomationEventDeliveryRunId, getAutomationEventForRun, getAutomationEventQueueMetrics, getAutomationResultDeliveryMetrics, ingestAutomationEvent, listAutomationEventRecords, listAutomationEvents, listAutomationResultDeliveries, listBusinessEventDefinitions, markAutomationEventDeliveryQueued, reconcileAutomationEventDeliveries, registerBusinessEvent, releaseAutomationEventDelivery, releaseAutomationEventProjection, replayAutomationEvent, resolveAutomationTimeoutSeconds, resolveAutomationWebhookSecret, retryAutomationResultDelivery, skipAutomationEventDelivery, timerDelayUntil, validateCatalogedBusinessEvent };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { init_transaction, runSqliteWriteTransaction } from "../../storage/sqlite/transaction.js";
|
|
4
|
+
import { computeNextAutomationRunAtMs, timerDelayUntil } from "../domain/schedule.js";
|
|
4
5
|
import { AutomationSchema, CreateAutomationSchema, UpdateAutomationSchema } from "../domain/validation.js";
|
|
6
|
+
import { AutomationActionExecutor } from "./action-executor.js";
|
|
5
7
|
import { deleteAutomation, getAutomation, getDeletedAutomationRevision, listAutomations, saveAutomation, saveAutomations } from "../storage/automation-repository.js";
|
|
6
8
|
import { appendAutomationRunEvent, getAutomationRun, getAutomationRunRequest, listAutomationRunEvents, listAutomationRuns, listAutomationRunsForProductEvent, listUnfinishedAutomationRuns, markAllAutomationRunsRead, markAutomationRunRead, pruneAutomationHistory, saveAutomationRun, saveAutomationRunRequest, touchAutomationRunLease } from "../storage/automation-run-repository.js";
|
|
7
9
|
import "../storage/index.js";
|
|
8
10
|
import { getAutomationEventDeliveryRunId, getAutomationEventForRun, getAutomationEventQueueMetrics, ingestAutomationEvent, listAutomationEventRecords, markAutomationEventDeliveryQueued, replayAutomationEvent } from "../events/event-repository.js";
|
|
9
|
-
import { computeNextAutomationRunAtMs, timerDelayUntil } from "../domain/schedule.js";
|
|
10
|
-
import { AutomationActionExecutor } from "./action-executor.js";
|
|
11
11
|
import { AutomationEventDispatcher } from "../events/event-dispatcher.js";
|
|
12
12
|
import { AutomationDeliveryRouter, getAutomationResultDeliveryMetrics, listAutomationResultDeliveries, retryAutomationResultDelivery } from "../delivery/delivery-router.js";
|
|
13
13
|
import "../delivery/index.js";
|
|
@@ -3,9 +3,9 @@ import { browserPairingInvitationPayloadSchema, formatBrowserPairingInvitation }
|
|
|
3
3
|
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
4
4
|
import { getGatewayIdentityPublicKeyRaw, getOrCreateGatewayIdentity, init_gateway_identity_repository } from "../storage/sqlite/gateway-identity-repository.js";
|
|
5
5
|
import { createDevicePairingSetup, init_device_pairing_repository } from "../storage/sqlite/device-pairing-repository.js";
|
|
6
|
-
import { loadConfig } from "../config/loader.js";
|
|
7
6
|
import { browserEnrollmentPublicKeyThumbprint } from "./enrollment.js";
|
|
8
7
|
import { BROWSER_EXTENSION_ID, BROWSER_NATIVE_HOST_NAME } from "./extension-identity.js";
|
|
8
|
+
import { loadConfig } from "../config/loader.js";
|
|
9
9
|
import os from "node:os";
|
|
10
10
|
//#region src/browser/native-messaging-host.ts
|
|
11
11
|
init_src();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
-
import { decodeInboundAttachmentBase64, readInboundAttachmentBuffer } from "./inbound-persist.js";
|
|
4
|
-
import { transcribe } from "../../voice/stt/transcribe-core.js";
|
|
5
3
|
import { isSTTAvailable } from "../../voice/stt/availability.js";
|
|
4
|
+
import { transcribe } from "../../voice/stt/transcribe-core.js";
|
|
6
5
|
import "../../voice/stt/index.js";
|
|
6
|
+
import { decodeInboundAttachmentBase64, readInboundAttachmentBuffer } from "./inbound-persist.js";
|
|
7
7
|
//#region src/channels/attachments/voice-stt-webchat.ts
|
|
8
8
|
init_logger();
|
|
9
9
|
const STT_MAX_BYTES = 25 * 1024 * 1024;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { parseFrontmatterBlock } from "../markdown/frontmatter.js";
|
|
2
|
-
import { getChannelPlugin, getChannelRegistryVersion, listChannelPlugins, syncChannelPluginsFromManager } from "./plugins/registry.js";
|
|
3
2
|
import { findFenceSpanAt, isSafeFenceBreak, parseFenceSpans } from "../markdown/fences.js";
|
|
4
3
|
import { chunkText } from "../markdown/chunk.js";
|
|
5
4
|
import { chunkMarkdownIR, markdownToIR, markdownToIRWithMeta } from "../markdown/ir.js";
|
|
6
|
-
import { compileAllowlist, evaluateAccess, hasBotMention, removeBotMention, resolveAllowlistMatch, resolveAllowlistMatchSimple, resolveDmPolicy, resolveGroupPolicy } from "./security.js";
|
|
7
5
|
import { renderMarkdownWithMarkers } from "../markdown/render.js";
|
|
8
6
|
import { convertMarkdownTables } from "../markdown/tables.js";
|
|
9
7
|
import { buildCodeSpanIndex, createInlineCodeState } from "../markdown/code-spans.js";
|
|
10
8
|
import "./format.js";
|
|
9
|
+
import { compileAllowlist, evaluateAccess, hasBotMention, removeBotMention, resolveAllowlistMatch, resolveAllowlistMatchSimple, resolveDmPolicy, resolveGroupPolicy } from "./security.js";
|
|
11
10
|
import { MessagePipeline, createEnvelopeTimestampHandler, createFilterCommandsHandler, createFilterEmptyHandler, createFilterSelfHandler, createPipeline, standardPreflightHandlers, standardProcessHandlers } from "./pipeline.js";
|
|
11
|
+
import { getChannelPlugin, getChannelRegistryVersion, listChannelPlugins, syncChannelPluginsFromManager } from "./plugins/registry.js";
|
|
12
12
|
import { ChannelManager, createChannelManager } from "./manager.js";
|
|
13
13
|
import { collectSetupWizardChannels } from "./setup-wizard-discovery.js";
|
|
14
14
|
export { ChannelManager, MessagePipeline, buildCodeSpanIndex, chunkMarkdownIR, chunkText, collectSetupWizardChannels, compileAllowlist, convertMarkdownTables, createChannelManager, createEnvelopeTimestampHandler, createFilterCommandsHandler, createFilterEmptyHandler, createFilterSelfHandler, createInlineCodeState, createPipeline, evaluateAccess, findFenceSpanAt, getChannelPlugin, getChannelRegistryVersion, hasBotMention, isSafeFenceBreak, listChannelPlugins, markdownToIR, markdownToIRWithMeta, parseFenceSpans, parseFrontmatterBlock, removeBotMention, renderMarkdownWithMarkers, resolveAllowlistMatch, resolveAllowlistMatchSimple, resolveDmPolicy, resolveGroupPolicy, standardPreflightHandlers, standardProcessHandlers, syncChannelPluginsFromManager };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
+
import "./internal-outbound.js";
|
|
3
4
|
import { mergeTtsConfigFromAppConfig } from "../voice/tts/merge-config.js";
|
|
4
5
|
import { maybeApplyTtsToPayload } from "../voice/tts/payload.js";
|
|
5
|
-
import "./internal-outbound.js";
|
|
6
6
|
import { deliverOutboundMessage } from "./outbound/deliver.js";
|
|
7
7
|
import { OutboundPersistStore } from "./outbound/persist-store.js";
|
|
8
8
|
//#region src/channels/outbound-sender.ts
|