comisai 1.0.34 → 1.0.37
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/node_modules/@comis/agent/dist/background/auto-background-middleware.d.ts +11 -1
- package/node_modules/@comis/agent/dist/background/auto-background-middleware.js +30 -4
- package/node_modules/@comis/agent/dist/background/background-task-manager.d.ts +22 -2
- package/node_modules/@comis/agent/dist/background/background-task-manager.js +88 -40
- package/node_modules/@comis/agent/dist/background/background-task-persistence.js +34 -4
- package/node_modules/@comis/agent/dist/background/background-task-types.d.ts +59 -3
- package/node_modules/@comis/agent/dist/background/background-task-types.js +1 -1
- package/node_modules/@comis/agent/dist/background/completion-dispatcher.d.ts +130 -0
- package/node_modules/@comis/agent/dist/background/completion-dispatcher.js +215 -0
- package/node_modules/@comis/agent/dist/background/completion-formatter.d.ts +39 -0
- package/node_modules/@comis/agent/dist/background/completion-formatter.js +77 -0
- package/node_modules/@comis/agent/dist/background/completion-runner.d.ts +62 -0
- package/node_modules/@comis/agent/dist/background/completion-runner.js +234 -0
- package/node_modules/@comis/agent/dist/background/index.d.ts +10 -1
- package/node_modules/@comis/agent/dist/background/index.js +4 -0
- package/node_modules/@comis/agent/dist/background/session-resolver.d.ts +85 -0
- package/node_modules/@comis/agent/dist/background/session-resolver.js +78 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/messaging-sections.js +1 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/tool-descriptions.js +3 -3
- package/node_modules/@comis/agent/dist/bootstrap/sections/tooling-sections.d.ts +30 -2
- package/node_modules/@comis/agent/dist/bootstrap/sections/tooling-sections.js +51 -2
- package/node_modules/@comis/agent/dist/bootstrap/system-prompt-assembler.d.ts +22 -0
- package/node_modules/@comis/agent/dist/bootstrap/system-prompt-assembler.js +2 -2
- package/node_modules/@comis/agent/dist/bridge/bridge-event-handlers.d.ts +1 -5
- package/node_modules/@comis/agent/dist/bridge/bridge-event-handlers.js +2 -14
- package/node_modules/@comis/agent/dist/bridge/bridge-metrics.d.ts +43 -2
- package/node_modules/@comis/agent/dist/bridge/bridge-metrics.js +17 -2
- package/node_modules/@comis/agent/dist/bridge/pi-event-bridge.d.ts +32 -23
- package/node_modules/@comis/agent/dist/bridge/pi-event-bridge.js +145 -62
- package/node_modules/@comis/agent/dist/bridge/thinking-block-hash-invariant.d.ts +6 -7
- package/node_modules/@comis/agent/dist/bridge/thinking-block-hash-invariant.js +24 -25
- package/node_modules/@comis/agent/dist/budget/cost-tracker.d.ts +1 -1
- package/node_modules/@comis/agent/dist/context-engine/constants.d.ts +5 -5
- package/node_modules/@comis/agent/dist/context-engine/constants.js +12 -12
- package/node_modules/@comis/agent/dist/context-engine/context-engine.js +13 -4
- package/node_modules/@comis/agent/dist/context-engine/dag-annotator.d.ts +1 -2
- package/node_modules/@comis/agent/dist/context-engine/dag-annotator.js +1 -2
- package/node_modules/@comis/agent/dist/context-engine/llm-compaction.js +20 -16
- package/node_modules/@comis/agent/dist/context-engine/rehydration.js +6 -6
- package/node_modules/@comis/agent/dist/context-engine/signature-replay-scrubber.d.ts +12 -12
- package/node_modules/@comis/agent/dist/context-engine/signature-replay-scrubber.js +36 -22
- package/node_modules/@comis/agent/dist/context-engine/signature-surrogate-guard.d.ts +10 -10
- package/node_modules/@comis/agent/dist/context-engine/signature-surrogate-guard.js +14 -14
- package/node_modules/@comis/agent/dist/context-engine/thinking-block-cleaner.d.ts +11 -13
- package/node_modules/@comis/agent/dist/context-engine/thinking-block-cleaner.js +14 -15
- package/node_modules/@comis/agent/dist/context-engine/types-core.d.ts +15 -0
- package/node_modules/@comis/agent/dist/executor/cache-break-detection.d.ts +6 -6
- package/node_modules/@comis/agent/dist/executor/cache-break-detection.js +8 -8
- package/node_modules/@comis/agent/dist/executor/capability-index-context.d.ts +72 -0
- package/node_modules/@comis/agent/dist/executor/capability-index-context.js +329 -0
- package/node_modules/@comis/agent/dist/executor/drain-helper.d.ts +122 -0
- package/node_modules/@comis/agent/dist/executor/drain-helper.js +173 -0
- package/node_modules/@comis/agent/dist/executor/error-classifier.js +2 -2
- package/node_modules/@comis/agent/dist/executor/executor-context-engine-setup.d.ts +16 -0
- package/node_modules/@comis/agent/dist/executor/executor-context-engine-setup.js +46 -5
- package/node_modules/@comis/agent/dist/executor/executor-post-execution.d.ts +78 -4
- package/node_modules/@comis/agent/dist/executor/executor-post-execution.js +150 -31
- package/node_modules/@comis/agent/dist/executor/executor-prompt-runner.d.ts +7 -0
- package/node_modules/@comis/agent/dist/executor/executor-prompt-runner.js +26 -5
- package/node_modules/@comis/agent/dist/executor/executor-response-filter.d.ts +7 -6
- package/node_modules/@comis/agent/dist/executor/executor-response-filter.js +9 -42
- package/node_modules/@comis/agent/dist/executor/executor-tool-assembly.d.ts +18 -1
- package/node_modules/@comis/agent/dist/executor/executor-tool-assembly.js +20 -18
- package/node_modules/@comis/agent/dist/executor/gemini-cache-injector.d.ts +2 -2
- package/node_modules/@comis/agent/dist/executor/gemini-cache-injector.js +4 -4
- package/node_modules/@comis/agent/dist/executor/jit-guide-injector.d.ts +11 -2
- package/node_modules/@comis/agent/dist/executor/jit-guide-injector.js +16 -2
- package/node_modules/@comis/agent/dist/executor/phase-filter.d.ts +2 -2
- package/node_modules/@comis/agent/dist/executor/phase-filter.js +5 -7
- package/node_modules/@comis/agent/dist/executor/pi-executor.d.ts +21 -2
- package/node_modules/@comis/agent/dist/executor/pi-executor.js +96 -18
- package/node_modules/@comis/agent/dist/executor/post-batch-continuation.js +7 -7
- package/node_modules/@comis/agent/dist/executor/prompt-assembly.d.ts +9 -1
- package/node_modules/@comis/agent/dist/executor/prompt-assembly.js +15 -1
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body-injector.d.ts +1 -1
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body-injector.js +1 -1
- package/node_modules/@comis/agent/dist/executor/tool-deferral.d.ts +18 -27
- package/node_modules/@comis/agent/dist/executor/tool-deferral.js +34 -43
- package/node_modules/@comis/agent/dist/index.d.ts +17 -0
- package/node_modules/@comis/agent/dist/index.js +32 -11
- package/node_modules/@comis/agent/dist/model/auth-provider.d.ts +25 -2
- package/node_modules/@comis/agent/dist/model/auth-provider.js +6 -0
- package/node_modules/@comis/agent/dist/model/compaction-model-resolver.d.ts +3 -3
- package/node_modules/@comis/agent/dist/model/compaction-model-resolver.js +3 -3
- package/node_modules/@comis/agent/dist/model/model-registry-adapter.js +1 -1
- package/node_modules/@comis/agent/dist/model/model-scanner.js +1 -1
- package/node_modules/@comis/agent/dist/model/oauth-credential-store-file.d.ts +37 -0
- package/node_modules/@comis/agent/dist/model/oauth-credential-store-file.js +279 -0
- package/node_modules/@comis/agent/dist/model/oauth-credential-store-selector.d.ts +49 -0
- package/node_modules/@comis/agent/dist/model/oauth-credential-store-selector.js +50 -0
- package/node_modules/@comis/agent/dist/model/oauth-device-code.d.ts +57 -0
- package/node_modules/@comis/agent/dist/model/oauth-device-code.js +302 -0
- package/node_modules/@comis/agent/dist/model/oauth-env.d.ts +33 -0
- package/node_modules/@comis/agent/dist/model/oauth-env.js +38 -0
- package/node_modules/@comis/agent/dist/model/oauth-errors.d.ts +41 -0
- package/node_modules/@comis/agent/dist/model/oauth-errors.js +88 -0
- package/node_modules/@comis/agent/dist/model/oauth-identity.d.ts +53 -0
- package/node_modules/@comis/agent/dist/model/oauth-identity.js +141 -0
- package/node_modules/@comis/agent/dist/model/oauth-login-runner.d.ts +99 -0
- package/node_modules/@comis/agent/dist/model/oauth-login-runner.js +374 -0
- package/node_modules/@comis/agent/dist/model/oauth-tls-preflight.d.ts +58 -0
- package/node_modules/@comis/agent/dist/model/oauth-tls-preflight.js +82 -0
- package/node_modules/@comis/agent/dist/model/oauth-token-manager.d.ts +86 -16
- package/node_modules/@comis/agent/dist/model/oauth-token-manager.js +961 -66
- package/node_modules/@comis/agent/dist/model/operation-model-defaults.d.ts +9 -4
- package/node_modules/@comis/agent/dist/model/operation-model-defaults.js +36 -9
- package/node_modules/@comis/agent/dist/model/resolve-provider-api-key.d.ts +48 -0
- package/node_modules/@comis/agent/dist/model/resolve-provider-api-key.js +66 -0
- package/node_modules/@comis/agent/dist/provider/capabilities.d.ts +5 -5
- package/node_modules/@comis/agent/dist/provider/capabilities.js +10 -23
- package/node_modules/@comis/agent/dist/safety/tool-output-safety.js +3 -3
- package/node_modules/@comis/agent/dist/safety/tool-retry-breaker.d.ts +11 -1
- package/node_modules/@comis/agent/dist/safety/tool-retry-breaker.js +19 -22
- package/node_modules/@comis/agent/dist/session/comis-session-manager.d.ts +17 -3
- package/node_modules/@comis/agent/dist/session/comis-session-manager.js +1 -1
- package/node_modules/@comis/agent/dist/spawn/narrative-caster.d.ts +10 -0
- package/node_modules/@comis/agent/dist/spawn/narrative-caster.js +5 -1
- package/node_modules/@comis/agent/dist/spawn/pi-mono-adapters.d.ts +1 -1
- package/node_modules/@comis/agent/dist/spawn/pi-mono-adapters.js +5 -5
- package/node_modules/@comis/agent/dist/workspace/data-env.d.ts +38 -0
- package/node_modules/@comis/agent/dist/workspace/data-env.js +56 -0
- package/node_modules/@comis/agent/dist/workspace/index.d.ts +1 -0
- package/node_modules/@comis/agent/dist/workspace/index.js +1 -0
- package/node_modules/@comis/agent/dist/workspace/templates.js +5 -1
- package/node_modules/@comis/agent/package.json +1 -1
- package/node_modules/@comis/channels/dist/email/email-adapter.js +6 -6
- package/node_modules/@comis/channels/dist/email/imap-lifecycle.js +7 -7
- package/node_modules/@comis/channels/dist/index.d.ts +1 -1
- package/node_modules/@comis/channels/dist/index.js +1 -1
- package/node_modules/@comis/channels/dist/shared/channel-manager.d.ts +9 -3
- package/node_modules/@comis/channels/dist/shared/deliver-to-channel.js +12 -10
- package/node_modules/@comis/channels/dist/shared/inbound-gate.d.ts +1 -1
- package/node_modules/@comis/channels/dist/shared/inbound-gate.js +22 -7
- package/node_modules/@comis/channels/dist/shared/inbound-pipeline.d.ts +10 -3
- package/node_modules/@comis/channels/dist/shared/inbound-route.d.ts +1 -1
- package/node_modules/@comis/channels/dist/shared/inbound-route.js +13 -2
- package/node_modules/@comis/channels/dist/shared/response-filter.d.ts +11 -24
- package/node_modules/@comis/channels/dist/shared/response-filter.js +25 -53
- package/node_modules/@comis/channels/dist/telegram/telegram-adapter.js +1 -1
- package/node_modules/@comis/channels/package.json +1 -1
- package/node_modules/@comis/cli/dist/cli.js +2 -0
- package/node_modules/@comis/cli/dist/commands/agent.d.ts +3 -3
- package/node_modules/@comis/cli/dist/commands/agent.js +46 -3
- package/node_modules/@comis/cli/dist/commands/auth.d.ts +37 -0
- package/node_modules/@comis/cli/dist/commands/auth.js +433 -0
- package/node_modules/@comis/cli/dist/commands/doctor.d.ts +4 -1
- package/node_modules/@comis/cli/dist/commands/doctor.js +20 -5
- package/node_modules/@comis/cli/dist/commands/providers.d.ts +1 -2
- package/node_modules/@comis/cli/dist/commands/providers.js +5 -6
- package/node_modules/@comis/cli/dist/doctor/checks/oauth-health.d.ts +39 -0
- package/node_modules/@comis/cli/dist/doctor/checks/oauth-health.js +399 -0
- package/node_modules/@comis/cli/dist/doctor/types.d.ts +19 -0
- package/node_modules/@comis/cli/dist/index.d.ts +1 -0
- package/node_modules/@comis/cli/dist/index.js +10 -4
- package/node_modules/@comis/cli/dist/output/relative-time.d.ts +23 -0
- package/node_modules/@comis/cli/dist/output/relative-time.js +36 -0
- package/node_modules/@comis/cli/dist/wizard/non-interactive.js +17 -8
- package/node_modules/@comis/cli/dist/wizard/steps/03-provider.js +2 -1
- package/node_modules/@comis/cli/dist/wizard/steps/04-credentials.js +223 -34
- package/node_modules/@comis/cli/dist/wizard/steps/10-write-config.js +14 -0
- package/node_modules/@comis/cli/dist/wizard/steps/11-daemon-start.js +3 -3
- package/node_modules/@comis/cli/dist/wizard/types.d.ts +7 -0
- package/node_modules/@comis/cli/package.json +1 -1
- package/node_modules/@comis/core/dist/bootstrap.d.ts +1 -1
- package/node_modules/@comis/core/dist/config/env-substitution.d.ts +66 -0
- package/node_modules/@comis/core/dist/config/env-substitution.js +115 -0
- package/node_modules/@comis/core/dist/config/field-metadata.js +2 -0
- package/node_modules/@comis/core/dist/config/immutable-keys.js +4 -1
- package/node_modules/@comis/core/dist/config/index.d.ts +7 -1
- package/node_modules/@comis/core/dist/config/index.js +4 -1
- package/node_modules/@comis/core/dist/config/loader.js +61 -0
- package/node_modules/@comis/core/dist/config/managed-sections.d.ts +3 -3
- package/node_modules/@comis/core/dist/config/managed-sections.js +10 -5
- package/node_modules/@comis/core/dist/config/schema-agent.d.ts +4 -792
- package/node_modules/@comis/core/dist/config/schema-agent.js +16 -1
- package/node_modules/@comis/core/dist/config/schema-approvals.d.ts +0 -14
- package/node_modules/@comis/core/dist/config/schema-auto-reply-engine.d.ts +0 -6
- package/node_modules/@comis/core/dist/config/schema-background-tasks.d.ts +1 -6
- package/node_modules/@comis/core/dist/config/schema-background-tasks.js +7 -0
- package/node_modules/@comis/core/dist/config/schema-browser.d.ts +0 -18
- package/node_modules/@comis/core/dist/config/schema-channel.d.ts +0 -158
- package/node_modules/@comis/core/dist/config/schema-coalescer.d.ts +0 -5
- package/node_modules/@comis/core/dist/config/schema-daemon.d.ts +0 -32
- package/node_modules/@comis/core/dist/config/schema-delivery.d.ts +1 -17
- package/node_modules/@comis/core/dist/config/schema-delivery.js +2 -0
- package/node_modules/@comis/core/dist/config/schema-documentation.d.ts +0 -12
- package/node_modules/@comis/core/dist/config/schema-embedding.d.ts +0 -20
- package/node_modules/@comis/core/dist/config/schema-envelope.d.ts +0 -15
- package/node_modules/@comis/core/dist/config/schema-gateway.d.ts +0 -37
- package/node_modules/@comis/core/dist/config/schema-gemini-cache.d.ts +0 -4
- package/node_modules/@comis/core/dist/config/schema-gemini-cache.js +0 -2
- package/node_modules/@comis/core/dist/config/schema-integrations.d.ts +0 -318
- package/node_modules/@comis/core/dist/config/schema-lifecycle-reactions.d.ts +0 -18
- package/node_modules/@comis/core/dist/config/schema-memory-review.d.ts +0 -7
- package/node_modules/@comis/core/dist/config/schema-memory.d.ts +0 -16
- package/node_modules/@comis/core/dist/config/schema-messages.d.ts +0 -8
- package/node_modules/@comis/core/dist/config/schema-models.d.ts +0 -15
- package/node_modules/@comis/core/dist/config/schema-notification.d.ts +0 -5
- package/node_modules/@comis/core/dist/config/schema-oauth.d.ts +18 -0
- package/node_modules/@comis/core/dist/config/schema-oauth.js +19 -0
- package/node_modules/@comis/core/dist/config/schema-observability.d.ts +0 -38
- package/node_modules/@comis/core/dist/config/schema-output-retention.d.ts +34 -0
- package/node_modules/@comis/core/dist/config/schema-output-retention.js +48 -0
- package/node_modules/@comis/core/dist/config/schema-plugins.d.ts +0 -8
- package/node_modules/@comis/core/dist/config/schema-providers.d.ts +0 -64
- package/node_modules/@comis/core/dist/config/schema-queue.d.ts +0 -58
- package/node_modules/@comis/core/dist/config/schema-response-prefix.d.ts +0 -2
- package/node_modules/@comis/core/dist/config/schema-retry.d.ts +0 -6
- package/node_modules/@comis/core/dist/config/schema-scheduler.d.ts +0 -39
- package/node_modules/@comis/core/dist/config/schema-secrets.d.ts +0 -3
- package/node_modules/@comis/core/dist/config/schema-security.d.ts +0 -18
- package/node_modules/@comis/core/dist/config/schema-send-policy.d.ts +0 -13
- package/node_modules/@comis/core/dist/config/schema-sender-trust-display.d.ts +0 -5
- package/node_modules/@comis/core/dist/config/schema-serializer.js +2 -0
- package/node_modules/@comis/core/dist/config/schema-skills.d.ts +0 -63
- package/node_modules/@comis/core/dist/config/schema-skills.js +3 -4
- package/node_modules/@comis/core/dist/config/schema-streaming.d.ts +0 -38
- package/node_modules/@comis/core/dist/config/schema-telegram-file-guard.d.ts +0 -3
- package/node_modules/@comis/core/dist/config/schema-tooling.d.ts +87 -0
- package/node_modules/@comis/core/dist/config/schema-tooling.js +152 -0
- package/node_modules/@comis/core/dist/config/schema-verbosity.d.ts +0 -12
- package/node_modules/@comis/core/dist/config/schema-webhooks.d.ts +0 -40
- package/node_modules/@comis/core/dist/config/schema.d.ts +50 -37
- package/node_modules/@comis/core/dist/config/schema.js +9 -0
- package/node_modules/@comis/core/dist/context/context.d.ts +0 -4
- package/node_modules/@comis/core/dist/domain/approval-request.d.ts +0 -17
- package/node_modules/@comis/core/dist/domain/background-task-origin.d.ts +29 -0
- package/node_modules/@comis/core/dist/domain/background-task-origin.js +39 -0
- package/node_modules/@comis/core/dist/domain/delivery-origin.d.ts +0 -5
- package/node_modules/@comis/core/dist/domain/execution-graph.d.ts +0 -48
- package/node_modules/@comis/core/dist/domain/memory-entry.d.ts +0 -3
- package/node_modules/@comis/core/dist/domain/model-compat.d.ts +0 -4
- package/node_modules/@comis/core/dist/domain/normalized-message.d.ts +0 -15
- package/node_modules/@comis/core/dist/domain/provider-capabilities.d.ts +0 -6
- package/node_modules/@comis/core/dist/domain/rich-message.d.ts +0 -14
- package/node_modules/@comis/core/dist/domain/subagent-context-config.d.ts +0 -22
- package/node_modules/@comis/core/dist/domain/subagent-context-types.d.ts +0 -8
- package/node_modules/@comis/core/dist/event-bus/events-agent.d.ts +31 -0
- package/node_modules/@comis/core/dist/event-bus/events-infra.d.ts +76 -2
- package/node_modules/@comis/core/dist/exports/config.d.ts +2 -2
- package/node_modules/@comis/core/dist/exports/config.js +3 -1
- package/node_modules/@comis/core/dist/exports/domain.d.ts +2 -0
- package/node_modules/@comis/core/dist/exports/domain.js +1 -0
- package/node_modules/@comis/core/dist/exports/hooks.d.ts +1 -1
- package/node_modules/@comis/core/dist/exports/ports.d.ts +2 -2
- package/node_modules/@comis/core/dist/exports/ports.js +1 -1
- package/node_modules/@comis/core/dist/ports/channel-plugin.d.ts +0 -13
- package/node_modules/@comis/core/dist/ports/delivery-queue.d.ts +23 -0
- package/node_modules/@comis/core/dist/ports/delivery-queue.js +2 -0
- package/node_modules/@comis/core/dist/ports/index.d.ts +4 -0
- package/node_modules/@comis/core/dist/ports/index.js +5 -0
- package/node_modules/@comis/core/dist/ports/no-op-tool-capability.d.ts +30 -0
- package/node_modules/@comis/core/dist/ports/no-op-tool-capability.js +47 -0
- package/node_modules/@comis/core/dist/ports/oauth-credential-store.d.ts +64 -0
- package/node_modules/@comis/core/dist/ports/oauth-credential-store.js +37 -0
- package/node_modules/@comis/core/dist/ports/tool-capability.d.ts +165 -0
- package/node_modules/@comis/core/dist/ports/tool-capability.js +15 -0
- package/node_modules/@comis/core/dist/security/audit.d.ts +0 -11
- package/node_modules/@comis/core/dist/tool-metadata.d.ts +41 -1
- package/node_modules/@comis/core/dist/tool-metadata.js +1 -1
- package/node_modules/@comis/core/package.json +1 -1
- package/node_modules/@comis/daemon/bundled-skills/skill-creator/scripts/validate-skill.py +1 -1
- package/node_modules/@comis/daemon/dist/daemon-types.d.ts +23 -3
- package/node_modules/@comis/daemon/dist/daemon.js +168 -30
- package/node_modules/@comis/daemon/dist/index.d.ts +2 -0
- package/node_modules/@comis/daemon/dist/index.js +5 -0
- package/node_modules/@comis/daemon/dist/observability/channel-health-logger.js +3 -3
- package/node_modules/@comis/daemon/dist/observability/delivery-queue-logger.js +1 -1
- package/node_modules/@comis/daemon/dist/rpc/agent-handlers.d.ts +22 -1
- package/node_modules/@comis/daemon/dist/rpc/agent-handlers.js +84 -21
- package/node_modules/@comis/daemon/dist/rpc/agent-inline-workspace.d.ts +1 -1
- package/node_modules/@comis/daemon/dist/rpc/agent-inline-workspace.js +3 -3
- package/node_modules/@comis/daemon/dist/rpc/builtin-provider-guard.js +2 -2
- package/node_modules/@comis/daemon/dist/rpc/config-handlers.d.ts +9 -1
- package/node_modules/@comis/daemon/dist/rpc/config-handlers.js +104 -23
- package/node_modules/@comis/daemon/dist/rpc/credential-resolver.d.ts +30 -1
- package/node_modules/@comis/daemon/dist/rpc/credential-resolver.js +74 -11
- package/node_modules/@comis/daemon/dist/rpc/mcp-handlers.d.ts +8 -0
- package/node_modules/@comis/daemon/dist/rpc/mcp-handlers.js +22 -8
- package/node_modules/@comis/daemon/dist/rpc/model-handlers.d.ts +1 -1
- package/node_modules/@comis/daemon/dist/rpc/model-handlers.js +2 -2
- package/node_modules/@comis/daemon/dist/rpc/provider-handlers.js +9 -12
- package/node_modules/@comis/daemon/dist/rpc/rpc-dispatch.d.ts +1 -0
- package/node_modules/@comis/daemon/dist/rpc/rpc-dispatch.js +27 -2
- package/node_modules/@comis/daemon/dist/setup-docker-restart-warn.js +0 -1
- package/node_modules/@comis/daemon/dist/sub-agent-runner.d.ts +18 -0
- package/node_modules/@comis/daemon/dist/sub-agent-runner.js +41 -9
- package/node_modules/@comis/daemon/dist/wiring/index.d.ts +4 -0
- package/node_modules/@comis/daemon/dist/wiring/index.js +2 -0
- package/node_modules/@comis/daemon/dist/wiring/oauth-preflight.d.ts +21 -0
- package/node_modules/@comis/daemon/dist/wiring/oauth-preflight.js +134 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-agents.d.ts +81 -2
- package/node_modules/@comis/daemon/dist/wiring/setup-agents.js +164 -3
- package/node_modules/@comis/daemon/dist/wiring/setup-background-completion-runner.d.ts +58 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-background-completion-runner.js +59 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-background-tasks.d.ts +10 -3
- package/node_modules/@comis/daemon/dist/wiring/setup-background-tasks.js +13 -7
- package/node_modules/@comis/daemon/dist/wiring/setup-channels.d.ts +9 -2
- package/node_modules/@comis/daemon/dist/wiring/setup-channels.js +35 -10
- package/node_modules/@comis/daemon/dist/wiring/setup-cross-session.d.ts +20 -5
- package/node_modules/@comis/daemon/dist/wiring/setup-cross-session.js +21 -16
- package/node_modules/@comis/daemon/dist/wiring/setup-delivery.d.ts +14 -5
- package/node_modules/@comis/daemon/dist/wiring/setup-delivery.js +65 -20
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway.d.ts +4 -6
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway.js +3 -5
- package/node_modules/@comis/daemon/dist/wiring/setup-heartbeat.d.ts +20 -5
- package/node_modules/@comis/daemon/dist/wiring/setup-heartbeat.js +11 -2
- package/node_modules/@comis/daemon/dist/wiring/setup-output-retention.d.ts +89 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-output-retention.js +212 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-schedulers.js +4 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-tools.d.ts +18 -4
- package/node_modules/@comis/daemon/dist/wiring/setup-tools.js +29 -10
- package/node_modules/@comis/daemon/dist/wiring/tool-capability-adapter.d.ts +75 -0
- package/node_modules/@comis/daemon/dist/wiring/tool-capability-adapter.js +253 -0
- package/node_modules/@comis/daemon/package.json +1 -1
- package/node_modules/@comis/gateway/dist/index.d.ts +2 -0
- package/node_modules/@comis/gateway/dist/index.js +2 -0
- package/node_modules/@comis/gateway/dist/oauth/oauth-callback-route.d.ts +66 -0
- package/node_modules/@comis/gateway/dist/oauth/oauth-callback-route.js +212 -0
- package/node_modules/@comis/gateway/dist/server/hono-server.d.ts +14 -0
- package/node_modules/@comis/gateway/dist/server/hono-server.js +10 -0
- package/node_modules/@comis/gateway/dist/webhook/webhook-endpoint.d.ts +0 -4
- package/node_modules/@comis/gateway/package.json +1 -1
- package/node_modules/@comis/infra/dist/logging/log-fields.d.ts +23 -0
- package/node_modules/@comis/infra/package.json +1 -1
- package/node_modules/@comis/memory/dist/compaction.d.ts +3 -5
- package/node_modules/@comis/memory/dist/compaction.js +2 -3
- package/node_modules/@comis/memory/dist/delivery-queue-adapter.d.ts +2 -2
- package/node_modules/@comis/memory/dist/delivery-queue-adapter.js +49 -1
- package/node_modules/@comis/memory/dist/index.d.ts +2 -0
- package/node_modules/@comis/memory/dist/index.js +3 -0
- package/node_modules/@comis/memory/dist/memory-api.d.ts +1 -1
- package/node_modules/@comis/memory/dist/memory-api.js +1 -1
- package/node_modules/@comis/memory/dist/oauth-profile-schema.d.ts +17 -0
- package/node_modules/@comis/memory/dist/oauth-profile-schema.js +33 -0
- package/node_modules/@comis/memory/dist/oauth-profile-store-encrypted.d.ts +27 -0
- package/node_modules/@comis/memory/dist/oauth-profile-store-encrypted.js +144 -0
- package/node_modules/@comis/memory/dist/session-store.d.ts +1 -1
- package/node_modules/@comis/memory/dist/session-store.js +1 -1
- package/node_modules/@comis/memory/dist/sqlite-secret-store.d.ts +29 -3
- package/node_modules/@comis/memory/dist/sqlite-secret-store.js +11 -3
- package/node_modules/@comis/memory/package.json +1 -1
- package/node_modules/@comis/scheduler/dist/cron/cron-types.d.ts +0 -42
- package/node_modules/@comis/scheduler/dist/execution/execution-lock.d.ts +13 -0
- package/node_modules/@comis/scheduler/dist/execution/execution-lock.js +1 -1
- package/node_modules/@comis/scheduler/dist/execution/index.d.ts +2 -0
- package/node_modules/@comis/scheduler/dist/execution/index.js +2 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/agent-heartbeat-source.d.ts +29 -8
- package/node_modules/@comis/scheduler/dist/heartbeat/agent-heartbeat-source.js +20 -8
- package/node_modules/@comis/scheduler/dist/index.d.ts +2 -0
- package/node_modules/@comis/scheduler/dist/index.js +2 -0
- package/node_modules/@comis/scheduler/dist/system-events/system-event-types.d.ts +0 -3
- package/node_modules/@comis/scheduler/dist/tasks/task-types.d.ts +0 -17
- package/node_modules/@comis/scheduler/package.json +1 -1
- package/node_modules/@comis/shared/dist/index.d.ts +3 -0
- package/node_modules/@comis/shared/dist/index.js +4 -0
- package/node_modules/@comis/shared/dist/mcp-tool-name.d.ts +78 -0
- package/node_modules/@comis/shared/dist/mcp-tool-name.js +92 -0
- package/node_modules/@comis/shared/dist/silent-tokens.d.ts +38 -0
- package/node_modules/@comis/shared/dist/silent-tokens.js +51 -0
- package/node_modules/@comis/shared/dist/visible-delivery.d.ts +28 -0
- package/node_modules/@comis/shared/dist/visible-delivery.js +16 -0
- package/node_modules/@comis/shared/package.json +1 -1
- package/node_modules/@comis/skills/dist/bridge/mcp-tool-bridge.d.ts +2 -13
- package/node_modules/@comis/skills/dist/bridge/mcp-tool-bridge.js +3 -21
- package/node_modules/@comis/skills/dist/bridge/schema-validator.d.ts +38 -0
- package/node_modules/@comis/skills/dist/bridge/schema-validator.js +169 -0
- package/node_modules/@comis/skills/dist/bridge/tool-metadata-enforcement.js +12 -0
- package/node_modules/@comis/skills/dist/bridge/tool-metadata-registry.js +133 -3
- package/node_modules/@comis/skills/dist/builtin/exec-diagnostics.d.ts +32 -0
- package/node_modules/@comis/skills/dist/builtin/exec-diagnostics.js +127 -0
- package/node_modules/@comis/skills/dist/builtin/exec-security.js +38 -0
- package/node_modules/@comis/skills/dist/builtin/exec-tool.d.ts +55 -9
- package/node_modules/@comis/skills/dist/builtin/exec-tool.js +392 -19
- package/node_modules/@comis/skills/dist/builtin/file-tools/grep-tool.js +6 -6
- package/node_modules/@comis/skills/dist/builtin/install-detour.d.ts +67 -0
- package/node_modules/@comis/skills/dist/builtin/install-detour.js +342 -0
- package/node_modules/@comis/skills/dist/builtin/platform/admin-manage-factory.js +5 -5
- package/node_modules/@comis/skills/dist/builtin/platform/agents-manage-tool.d.ts +7 -6
- package/node_modules/@comis/skills/dist/builtin/platform/agents-manage-tool.js +40 -29
- package/node_modules/@comis/skills/dist/builtin/platform/background-tasks-tool.d.ts +4 -1
- package/node_modules/@comis/skills/dist/builtin/platform/background-tasks-tool.js +3 -3
- package/node_modules/@comis/skills/dist/builtin/platform/cron-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/gateway-tool.js +6 -6
- package/node_modules/@comis/skills/dist/builtin/platform/mcp-manage-tool.d.ts +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/mcp-manage-tool.js +9 -9
- package/node_modules/@comis/skills/dist/builtin/platform/message-tool.js +18 -0
- package/node_modules/@comis/skills/dist/builtin/platform/messaging-factory.d.ts +18 -1
- package/node_modules/@comis/skills/dist/builtin/platform/messaging-factory.js +18 -2
- package/node_modules/@comis/skills/dist/builtin/platform/models-manage-tool.js +3 -3
- package/node_modules/@comis/skills/dist/builtin/process-registry.d.ts +14 -0
- package/node_modules/@comis/skills/dist/builtin/process-tool.d.ts +24 -4
- package/node_modules/@comis/skills/dist/builtin/process-tool.js +25 -7
- package/node_modules/@comis/skills/dist/builtin/sandbox/bwrap-provider.d.ts +11 -0
- package/node_modules/@comis/skills/dist/builtin/sandbox/bwrap-provider.js +123 -1
- package/node_modules/@comis/skills/dist/builtin/sandbox/detect-provider.js +40 -15
- package/node_modules/@comis/skills/dist/index.d.ts +4 -1
- package/node_modules/@comis/skills/dist/index.js +3 -1
- package/node_modules/@comis/skills/dist/manifest/capability-parser.d.ts +44 -0
- package/node_modules/@comis/skills/dist/manifest/capability-parser.js +68 -0
- package/node_modules/@comis/skills/dist/manifest/schema.d.ts +44 -37
- package/node_modules/@comis/skills/dist/manifest/schema.js +35 -0
- package/node_modules/@comis/skills/dist/media/ssrf-fetcher.d.ts +7 -0
- package/node_modules/@comis/skills/dist/media/ssrf-fetcher.js +9 -2
- package/node_modules/@comis/skills/dist/registry/discovery.d.ts +8 -0
- package/node_modules/@comis/skills/dist/registry/discovery.js +10 -3
- package/node_modules/@comis/skills/dist/registry/skill-registry.d.ts +45 -1
- package/node_modules/@comis/skills/dist/registry/skill-registry.js +70 -7
- package/node_modules/@comis/skills/package.json +1 -1
- package/node_modules/@comis/web/dist/assets/{agent-detail-71BSbSfD.js → agent-detail-q8t1NB7w.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{agent-editor-CTSDZhwT.js → agent-editor-B46io5gv.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{agent-list-BEhni2ea.js → agent-list-DQ6g2Rcx.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{billing-view-DVP1IvVs.js → billing-view-IWPR8LgF.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{channel-detail-N_YK74xC.js → channel-detail-DlNNZuuC.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{channel-list-DRk6ZJaF.js → channel-list-DhGwxiMc.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{chat-console-Dm-GtSf9.js → chat-console-Nv6fM3Rc.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{config-editor-CIferYX6.js → config-editor-BYKuJF76.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{context-dag-browser-CL84rXXM.js → context-dag-browser-ClNEtzYE.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{context-engine-B1HOTEZv.js → context-engine-BZJ6HChd.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{delivery-view-Y6JKYVFw.js → delivery-view-Cb7I3vGu.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{diagnostics-view-DWV1UQjz.js → diagnostics-view-9u9Lyu5a.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{ic-chat-message-DfSERzzg.js → ic-chat-message-BFt3cVpx.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{ic-connection-dot-CXyhlJup.js → ic-connection-dot-y77LZ3Gu.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{ic-tool-call-DNmwTjek.js → ic-tool-call-qt6w1NQl.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{index-CBr0Tm9_.js → index-8Tg9oc-C.js} +2 -2
- package/node_modules/@comis/web/dist/assets/{mcp-management-BaH2-vox.js → mcp-management-69dtH_kY.js} +2 -2
- package/node_modules/@comis/web/dist/assets/{media-config-CZLshJoN.js → media-config-BdjLj5c1.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{media-test-C9NUWgo_.js → media-test-DuPqrixi.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{memory-inspector-D_fmTcRN.js → memory-inspector-B-Pepbq-.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{message-center-BBFlNCZn.js → message-center-B7l0yNYY.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{models-BytGLm99.js → models-JHFHuv5S.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{observe-view-VXtHqaqq.js → observe-view-r8mqhy4O.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{pipeline-builder-CfXczlfJ.js → pipeline-builder-XjkiZRcR.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{pipeline-history-CPmXFnbe.js → pipeline-history-CZqJv_Hj.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{pipeline-history-detail-DcueTMs9.js → pipeline-history-detail-BEFGMoDy.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{pipeline-list-B-xG5WZh.js → pipeline-list-B6q5LvO1.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{pipeline-monitor-pnIOYaSY.js → pipeline-monitor-BNomXjVL.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{scheduler-BtUIFHhA.js → scheduler-BJEjcGKA.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{security-C8mWRq2y.js → security-2G1jhBfV.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{session-detail-DgdkO5ka.js → session-detail-DmVPzFBR.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{session-list-DcylcfTn.js → session-list-CsqMQoHs.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{setup-wizard-BP5yjsuL.js → setup-wizard-CAdM-gSP.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{skills-DXt1bX8Z.js → skills-2ODqKaWr.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{subagents-C7YbUHXY.js → subagents-BFlwfTbD.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{workspace-manager-DP6pW4wa.js → workspace-manager--CbOx_dI.js} +1 -1
- package/node_modules/@comis/web/dist/index.html +1 -1
- package/node_modules/@comis/web/package.json +1 -1
- package/package.json +25 -24
|
@@ -3,7 +3,6 @@ import { z } from "zod";
|
|
|
3
3
|
* Brave Search integration configuration.
|
|
4
4
|
*/
|
|
5
5
|
export declare const BraveSearchConfigSchema: z.ZodObject<{
|
|
6
|
-
/** Brave Search API key (optional — search disabled without it; string or SecretRef) */
|
|
7
6
|
apiKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
8
7
|
source: z.ZodEnum<{
|
|
9
8
|
file: "file";
|
|
@@ -13,104 +12,68 @@ export declare const BraveSearchConfigSchema: z.ZodObject<{
|
|
|
13
12
|
provider: z.ZodString;
|
|
14
13
|
id: z.ZodString;
|
|
15
14
|
}, z.core.$strict>]>>;
|
|
16
|
-
/** Default number of results to return (default: 5) */
|
|
17
15
|
maxResultsDefault: z.ZodDefault<z.ZodNumber>;
|
|
18
|
-
/** Cache TTL in milliseconds (default: 3600000 = 1 hour) */
|
|
19
16
|
cacheTtlMs: z.ZodDefault<z.ZodNumber>;
|
|
20
|
-
/** Rate limit in requests per second (default: 1) */
|
|
21
17
|
rateLimitRps: z.ZodDefault<z.ZodNumber>;
|
|
22
18
|
}, z.core.$strict>;
|
|
23
19
|
/**
|
|
24
20
|
* MCP (Model Context Protocol) server entry.
|
|
25
21
|
*/
|
|
26
22
|
export declare const McpServerEntrySchema: z.ZodObject<{
|
|
27
|
-
/** Unique name for this MCP server */
|
|
28
23
|
name: z.ZodString;
|
|
29
|
-
/** Transport type: "stdio" for local process, "sse" for legacy SSE servers, "http" for Streamable HTTP */
|
|
30
24
|
transport: z.ZodEnum<{
|
|
31
25
|
http: "http";
|
|
32
26
|
stdio: "stdio";
|
|
33
27
|
sse: "sse";
|
|
34
28
|
}>;
|
|
35
|
-
/** Command to execute for stdio transport */
|
|
36
29
|
command: z.ZodOptional<z.ZodString>;
|
|
37
|
-
/** Arguments for the stdio command */
|
|
38
30
|
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
39
|
-
/** URL for remote transports (sse, http) */
|
|
40
31
|
url: z.ZodOptional<z.ZodURL>;
|
|
41
|
-
/** Environment variables to pass to the stdio process (e.g. API keys) */
|
|
42
32
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
43
|
-
/** Working directory for stdio transport. Overrides the default workspace CWD. */
|
|
44
33
|
cwd: z.ZodOptional<z.ZodString>;
|
|
45
|
-
/** Whether this server is enabled (default: true) */
|
|
46
34
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
47
|
-
/** Custom HTTP headers for remote transports (sse, http). Ignored for stdio. */
|
|
48
35
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
49
|
-
/** Maximum concurrent tool calls to this server. Undefined = auto (transport-based default). */
|
|
50
36
|
maxConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
51
37
|
}, z.core.$strict>;
|
|
52
38
|
/**
|
|
53
39
|
* MCP integration configuration.
|
|
54
40
|
*/
|
|
55
41
|
export declare const McpConfigSchema: z.ZodObject<{
|
|
56
|
-
/** List of MCP servers to connect to */
|
|
57
42
|
servers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
58
|
-
/** Unique name for this MCP server */
|
|
59
43
|
name: z.ZodString;
|
|
60
|
-
/** Transport type: "stdio" for local process, "sse" for legacy SSE servers, "http" for Streamable HTTP */
|
|
61
44
|
transport: z.ZodEnum<{
|
|
62
45
|
http: "http";
|
|
63
46
|
stdio: "stdio";
|
|
64
47
|
sse: "sse";
|
|
65
48
|
}>;
|
|
66
|
-
/** Command to execute for stdio transport */
|
|
67
49
|
command: z.ZodOptional<z.ZodString>;
|
|
68
|
-
/** Arguments for the stdio command */
|
|
69
50
|
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
70
|
-
/** URL for remote transports (sse, http) */
|
|
71
51
|
url: z.ZodOptional<z.ZodURL>;
|
|
72
|
-
/** Environment variables to pass to the stdio process (e.g. API keys) */
|
|
73
52
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
74
|
-
/** Working directory for stdio transport. Overrides the default workspace CWD. */
|
|
75
53
|
cwd: z.ZodOptional<z.ZodString>;
|
|
76
|
-
/** Whether this server is enabled (default: true) */
|
|
77
54
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
78
|
-
/** Custom HTTP headers for remote transports (sse, http). Ignored for stdio. */
|
|
79
55
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
80
|
-
/** Maximum concurrent tool calls to this server. Undefined = auto (transport-based default). */
|
|
81
56
|
maxConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
82
57
|
}, z.core.$strict>>>;
|
|
83
|
-
/** Default timeout for MCP tool calls in milliseconds (default: 120000).
|
|
84
|
-
* Image generation and other slow tools may need 2+ minutes. */
|
|
85
58
|
callToolTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
86
|
-
/** Default max concurrent tool calls for stdio servers (default: 1). */
|
|
87
59
|
stdioDefaultConcurrency: z.ZodDefault<z.ZodNumber>;
|
|
88
|
-
/** Default max concurrent tool calls for HTTP/SSE servers (default: 4). */
|
|
89
60
|
httpDefaultConcurrency: z.ZodDefault<z.ZodNumber>;
|
|
90
61
|
}, z.core.$strict>;
|
|
91
62
|
/**
|
|
92
63
|
* Transcription service configuration.
|
|
93
64
|
*/
|
|
94
65
|
export declare const TranscriptionConfigSchema: z.ZodObject<{
|
|
95
|
-
/** Primary STT provider (default: "openai") */
|
|
96
66
|
provider: z.ZodDefault<z.ZodEnum<{
|
|
97
67
|
openai: "openai";
|
|
98
68
|
groq: "groq";
|
|
99
69
|
deepgram: "deepgram";
|
|
100
70
|
}>>;
|
|
101
|
-
/** Provider-specific model ID (e.g., "gpt-4o-mini-transcribe", "whisper-large-v3-turbo", "nova-3") */
|
|
102
71
|
model: z.ZodOptional<z.ZodString>;
|
|
103
|
-
/** Maximum file size in megabytes (default: 25) */
|
|
104
72
|
maxFileSizeMb: z.ZodDefault<z.ZodNumber>;
|
|
105
|
-
/** API request timeout in milliseconds (default: 60000) */
|
|
106
73
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
107
|
-
/** BCP-47 language hint for transcription (e.g., "en", "es"). Auto-detect if omitted. */
|
|
108
74
|
language: z.ZodOptional<z.ZodString>;
|
|
109
|
-
/** Auto-transcribe voice messages in the inbound pipeline (default: true) */
|
|
110
75
|
autoTranscribe: z.ZodDefault<z.ZodBoolean>;
|
|
111
|
-
/** Enable preflight STT for mention detection in voice messages (default: true) */
|
|
112
76
|
preflight: z.ZodDefault<z.ZodBoolean>;
|
|
113
|
-
/** Ordered fallback providers to try when primary fails (default: []) */
|
|
114
77
|
fallbackProviders: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
115
78
|
openai: "openai";
|
|
116
79
|
groq: "groq";
|
|
@@ -135,19 +98,12 @@ export declare const TtsAutoModeSchema: z.ZodDefault<z.ZodEnum<{
|
|
|
135
98
|
* ElevenLabs-specific voice settings for fine-grained control.
|
|
136
99
|
*/
|
|
137
100
|
export declare const ElevenLabsVoiceSettingsSchema: z.ZodObject<{
|
|
138
|
-
/** Voice stability (0-1, higher = more consistent) */
|
|
139
101
|
stability: z.ZodOptional<z.ZodNumber>;
|
|
140
|
-
/** Similarity boost (0-1, higher = more similar to original voice) */
|
|
141
102
|
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
142
|
-
/** Style exaggeration (0-1) */
|
|
143
103
|
style: z.ZodOptional<z.ZodNumber>;
|
|
144
|
-
/** Enable speaker boost for clarity */
|
|
145
104
|
useSpeakerBoost: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
-
/** Playback speed multiplier */
|
|
147
105
|
speed: z.ZodOptional<z.ZodNumber>;
|
|
148
|
-
/** Random seed for reproducible output */
|
|
149
106
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
150
|
-
/** Text normalization mode */
|
|
151
107
|
applyTextNormalization: z.ZodDefault<z.ZodEnum<{
|
|
152
108
|
auto: "auto";
|
|
153
109
|
off: "off";
|
|
@@ -162,72 +118,46 @@ export declare const ElevenLabsVoiceSettingsSchema: z.ZodObject<{
|
|
|
162
118
|
* actual codec (e.g., "opus" -> "opus" for OpenAI, "opus_48000_64" for ElevenLabs).
|
|
163
119
|
*/
|
|
164
120
|
export declare const TtsOutputFormatSchema: z.ZodObject<{
|
|
165
|
-
/** Telegram: Opus for native voice notes */
|
|
166
121
|
telegram: z.ZodDefault<z.ZodString>;
|
|
167
|
-
/** Discord: MP3 for broadest compatibility */
|
|
168
122
|
discord: z.ZodDefault<z.ZodString>;
|
|
169
|
-
/** WhatsApp: MP3 default */
|
|
170
123
|
whatsapp: z.ZodDefault<z.ZodString>;
|
|
171
|
-
/** Slack: MP3 default */
|
|
172
124
|
slack: z.ZodDefault<z.ZodString>;
|
|
173
|
-
/** Default format for unknown channels */
|
|
174
125
|
default: z.ZodDefault<z.ZodString>;
|
|
175
126
|
}, z.core.$strict>;
|
|
176
127
|
/**
|
|
177
128
|
* Text-to-speech service configuration.
|
|
178
129
|
*/
|
|
179
130
|
export declare const TtsConfigSchema: z.ZodObject<{
|
|
180
|
-
/** TTS provider (default: "openai") */
|
|
181
131
|
provider: z.ZodDefault<z.ZodEnum<{
|
|
182
132
|
openai: "openai";
|
|
183
133
|
elevenlabs: "elevenlabs";
|
|
184
134
|
edge: "edge";
|
|
185
135
|
}>>;
|
|
186
|
-
/** Voice identifier (default: "alloy") */
|
|
187
136
|
voice: z.ZodDefault<z.ZodString>;
|
|
188
|
-
/** Output audio format (default: "opus") */
|
|
189
137
|
format: z.ZodDefault<z.ZodString>;
|
|
190
|
-
/** Provider-specific model ID (e.g., "eleven_multilingual_v2" for ElevenLabs) */
|
|
191
138
|
model: z.ZodOptional<z.ZodString>;
|
|
192
|
-
/** Auto mode — when to automatically synthesize speech */
|
|
193
139
|
autoMode: z.ZodDefault<z.ZodDefault<z.ZodEnum<{
|
|
194
140
|
always: "always";
|
|
195
141
|
off: "off";
|
|
196
142
|
inbound: "inbound";
|
|
197
143
|
tagged: "tagged";
|
|
198
144
|
}>>>;
|
|
199
|
-
/** Maximum text length for TTS synthesis (default: 4096) */
|
|
200
145
|
maxTextLength: z.ZodDefault<z.ZodNumber>;
|
|
201
|
-
/** Regex pattern to detect TTS-tagged responses (default matches [[tts]] or [[tts:...]]) */
|
|
202
146
|
tagPattern: z.ZodDefault<z.ZodString>;
|
|
203
|
-
/** Per-channel output format overrides */
|
|
204
147
|
outputFormats: z.ZodDefault<z.ZodObject<{
|
|
205
|
-
/** Telegram: Opus for native voice notes */
|
|
206
148
|
telegram: z.ZodDefault<z.ZodString>;
|
|
207
|
-
/** Discord: MP3 for broadest compatibility */
|
|
208
149
|
discord: z.ZodDefault<z.ZodString>;
|
|
209
|
-
/** WhatsApp: MP3 default */
|
|
210
150
|
whatsapp: z.ZodDefault<z.ZodString>;
|
|
211
|
-
/** Slack: MP3 default */
|
|
212
151
|
slack: z.ZodDefault<z.ZodString>;
|
|
213
|
-
/** Default format for unknown channels */
|
|
214
152
|
default: z.ZodDefault<z.ZodString>;
|
|
215
153
|
}, z.core.$strict>>;
|
|
216
|
-
/** ElevenLabs-specific voice settings */
|
|
217
154
|
elevenlabsSettings: z.ZodOptional<z.ZodObject<{
|
|
218
|
-
/** Voice stability (0-1, higher = more consistent) */
|
|
219
155
|
stability: z.ZodOptional<z.ZodNumber>;
|
|
220
|
-
/** Similarity boost (0-1, higher = more similar to original voice) */
|
|
221
156
|
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
222
|
-
/** Style exaggeration (0-1) */
|
|
223
157
|
style: z.ZodOptional<z.ZodNumber>;
|
|
224
|
-
/** Enable speaker boost for clarity */
|
|
225
158
|
useSpeakerBoost: z.ZodOptional<z.ZodBoolean>;
|
|
226
|
-
/** Playback speed multiplier */
|
|
227
159
|
speed: z.ZodOptional<z.ZodNumber>;
|
|
228
|
-
/** Random seed for reproducible output */
|
|
229
160
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
230
|
-
/** Text normalization mode */
|
|
231
161
|
applyTextNormalization: z.ZodDefault<z.ZodEnum<{
|
|
232
162
|
auto: "auto";
|
|
233
163
|
off: "off";
|
|
@@ -239,20 +169,15 @@ export declare const TtsConfigSchema: z.ZodObject<{
|
|
|
239
169
|
* Image analysis service configuration.
|
|
240
170
|
*/
|
|
241
171
|
export declare const ImageAnalysisConfigSchema: z.ZodObject<{
|
|
242
|
-
/** Maximum image file size in megabytes (default: 20) */
|
|
243
172
|
maxFileSizeMb: z.ZodDefault<z.ZodNumber>;
|
|
244
173
|
}, z.core.$strict>;
|
|
245
174
|
/**
|
|
246
175
|
* Vision scope rule: controls which channels/chats trigger vision analysis.
|
|
247
176
|
*/
|
|
248
177
|
export declare const VisionScopeRuleSchema: z.ZodObject<{
|
|
249
|
-
/** Channel type to match (e.g. "telegram", "discord"). */
|
|
250
178
|
channel: z.ZodOptional<z.ZodString>;
|
|
251
|
-
/** Chat type to match (e.g. "private", "group"). */
|
|
252
179
|
chatType: z.ZodOptional<z.ZodString>;
|
|
253
|
-
/** Session key prefix to match via startsWith. */
|
|
254
180
|
keyPrefix: z.ZodOptional<z.ZodString>;
|
|
255
|
-
/** Action to take when this rule matches. */
|
|
256
181
|
action: z.ZodEnum<{
|
|
257
182
|
allow: "allow";
|
|
258
183
|
deny: "deny";
|
|
@@ -262,41 +187,27 @@ export declare const VisionScopeRuleSchema: z.ZodObject<{
|
|
|
262
187
|
* Vision analysis configuration: multi-provider image/video analysis.
|
|
263
188
|
*/
|
|
264
189
|
export declare const VisionConfigSchema: z.ZodObject<{
|
|
265
|
-
/** Enable vision analysis (default: true). */
|
|
266
190
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
267
|
-
/** Ordered list of vision providers to consider (default: all three). */
|
|
268
191
|
providers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
269
192
|
openai: "openai";
|
|
270
193
|
anthropic: "anthropic";
|
|
271
194
|
google: "google";
|
|
272
195
|
}>>>;
|
|
273
|
-
/** Preferred default provider (overrides auto-selection). */
|
|
274
196
|
defaultProvider: z.ZodOptional<z.ZodString>;
|
|
275
|
-
/** Maximum base64-encoded size for video in bytes (default: 70MB). */
|
|
276
197
|
videoMaxBase64Bytes: z.ZodDefault<z.ZodNumber>;
|
|
277
|
-
/** Maximum raw video file size in bytes (default: 50MB). */
|
|
278
198
|
videoMaxRawBytes: z.ZodDefault<z.ZodNumber>;
|
|
279
|
-
/** Timeout in milliseconds for video description API calls (default: 120s). */
|
|
280
199
|
videoTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
281
|
-
/** Maximum characters for video description output (default: 500). */
|
|
282
200
|
videoMaxDescriptionChars: z.ZodDefault<z.ZodNumber>;
|
|
283
|
-
/** Maximum image file size in megabytes (default: 20). */
|
|
284
201
|
imageMaxFileSizeMb: z.ZodDefault<z.ZodNumber>;
|
|
285
|
-
/** Scope rules for vision analysis (first match wins). */
|
|
286
202
|
scopeRules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
287
|
-
/** Channel type to match (e.g. "telegram", "discord"). */
|
|
288
203
|
channel: z.ZodOptional<z.ZodString>;
|
|
289
|
-
/** Chat type to match (e.g. "private", "group"). */
|
|
290
204
|
chatType: z.ZodOptional<z.ZodString>;
|
|
291
|
-
/** Session key prefix to match via startsWith. */
|
|
292
205
|
keyPrefix: z.ZodOptional<z.ZodString>;
|
|
293
|
-
/** Action to take when this rule matches. */
|
|
294
206
|
action: z.ZodEnum<{
|
|
295
207
|
allow: "allow";
|
|
296
208
|
deny: "deny";
|
|
297
209
|
}>;
|
|
298
210
|
}, z.core.$strict>>>;
|
|
299
|
-
/** Default action when no scope rule matches (default: "allow"). */
|
|
300
211
|
defaultScopeAction: z.ZodDefault<z.ZodEnum<{
|
|
301
212
|
allow: "allow";
|
|
302
213
|
deny: "deny";
|
|
@@ -309,28 +220,19 @@ export declare const VisionConfigSchema: z.ZodObject<{
|
|
|
309
220
|
* from inbound messages.
|
|
310
221
|
*/
|
|
311
222
|
export declare const LinkUnderstandingConfigSchema: z.ZodObject<{
|
|
312
|
-
/** Enable automatic link understanding (default: true) */
|
|
313
223
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
314
|
-
/** Maximum number of links to process per message (default: 3) */
|
|
315
224
|
maxLinks: z.ZodDefault<z.ZodNumber>;
|
|
316
|
-
/** Timeout for fetching each URL in milliseconds (default: 10000) */
|
|
317
225
|
fetchTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
318
|
-
/** Maximum characters of extracted content per link (default: 5000) */
|
|
319
226
|
maxContentChars: z.ZodDefault<z.ZodNumber>;
|
|
320
|
-
/** User-Agent string for outbound fetch requests */
|
|
321
227
|
userAgentString: z.ZodDefault<z.ZodString>;
|
|
322
228
|
}, z.core.$strict>;
|
|
323
229
|
/**
|
|
324
230
|
* Media infrastructure configuration for fetch limits, concurrency, and temp file management.
|
|
325
231
|
*/
|
|
326
232
|
export declare const MediaInfraConfigSchema: z.ZodObject<{
|
|
327
|
-
/** Max file size for remote media fetches in bytes (default: 25MB) */
|
|
328
233
|
maxRemoteFetchBytes: z.ZodDefault<z.ZodNumber>;
|
|
329
|
-
/** Max concurrent media operations (default: 3) */
|
|
330
234
|
concurrencyLimit: z.ZodDefault<z.ZodNumber>;
|
|
331
|
-
/** Temp file TTL in milliseconds (default: 30 min) */
|
|
332
235
|
tempFileTtlMs: z.ZodDefault<z.ZodNumber>;
|
|
333
|
-
/** Cleanup interval in milliseconds (default: 5 min) */
|
|
334
236
|
tempCleanupIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
335
237
|
}, z.core.$strict>;
|
|
336
238
|
/**
|
|
@@ -348,23 +250,14 @@ export declare const DOCUMENT_MIME_WHITELIST: readonly ["text/plain", "text/csv"
|
|
|
348
250
|
* All fields have sensible defaults so an empty object produces a valid configuration.
|
|
349
251
|
*/
|
|
350
252
|
export declare const FileExtractionConfigSchema: z.ZodObject<{
|
|
351
|
-
/** Enable document extraction (default: true) */
|
|
352
253
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
353
|
-
/** Allowed MIME types for extraction (default: DOCUMENT_MIME_WHITELIST) */
|
|
354
254
|
allowedMimes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
355
|
-
/** Maximum file size in bytes (default: 10MB) */
|
|
356
255
|
maxBytes: z.ZodDefault<z.ZodNumber>;
|
|
357
|
-
/** Maximum characters in extracted text (default: 200000) */
|
|
358
256
|
maxChars: z.ZodDefault<z.ZodNumber>;
|
|
359
|
-
/** Maximum total characters across all attachments per message (default: 500000) */
|
|
360
257
|
maxTotalChars: z.ZodDefault<z.ZodNumber>;
|
|
361
|
-
/** Maximum pages to extract from paginated documents (default: 20) */
|
|
362
258
|
maxPages: z.ZodDefault<z.ZodNumber>;
|
|
363
|
-
/** Extraction timeout in milliseconds (default: 30000) */
|
|
364
259
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
365
|
-
/** Use OCR/image fallback for PDF pages with little text (default: false) */
|
|
366
260
|
pdfImageFallback: z.ZodDefault<z.ZodBoolean>;
|
|
367
|
-
/** Minimum character threshold per page to trigger image fallback (default: 50, 0 = always fallback) */
|
|
368
261
|
pdfImageFallbackThreshold: z.ZodDefault<z.ZodNumber>;
|
|
369
262
|
}, z.core.$strict>;
|
|
370
263
|
/**
|
|
@@ -374,117 +267,77 @@ export declare const FileExtractionConfigSchema: z.ZodObject<{
|
|
|
374
267
|
* to organized workspace subdirectories.
|
|
375
268
|
*/
|
|
376
269
|
export declare const MediaPersistenceConfigSchema: z.ZodObject<{
|
|
377
|
-
/** Enable automatic media file persistence to workspace (default: true) */
|
|
378
270
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
379
|
-
/** Soft limit for total workspace media storage in MB (default: 1024 = 1GB). Logs WARN when exceeded. */
|
|
380
271
|
maxStorageMb: z.ZodDefault<z.ZodNumber>;
|
|
381
|
-
/** Maximum individual file size in bytes (default: 52428800 = 50MB) */
|
|
382
272
|
maxFileBytes: z.ZodDefault<z.ZodNumber>;
|
|
383
273
|
}, z.core.$strict>;
|
|
384
274
|
/**
|
|
385
275
|
* Image generation service configuration.
|
|
386
276
|
*/
|
|
387
277
|
export declare const ImageGenerationConfigSchema: z.ZodObject<{
|
|
388
|
-
/** Image generation provider (default: "fal") */
|
|
389
278
|
provider: z.ZodDefault<z.ZodEnum<{
|
|
390
279
|
openai: "openai";
|
|
391
280
|
fal: "fal";
|
|
392
281
|
}>>;
|
|
393
|
-
/** Provider-specific model ID (e.g., "fal-ai/flux/dev", "gpt-image-1") */
|
|
394
282
|
model: z.ZodOptional<z.ZodString>;
|
|
395
|
-
/** Enable safety checker on generated images (default: true) */
|
|
396
283
|
safetyChecker: z.ZodDefault<z.ZodBoolean>;
|
|
397
|
-
/** Maximum image generations per hour per agent (default: 10) */
|
|
398
284
|
maxPerHour: z.ZodDefault<z.ZodNumber>;
|
|
399
|
-
/** Default image size/dimensions (default: "1024x1024") */
|
|
400
285
|
defaultSize: z.ZodDefault<z.ZodString>;
|
|
401
|
-
/** Generation timeout in milliseconds (default: 60000) */
|
|
402
286
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
403
287
|
}, z.core.$strict>;
|
|
404
288
|
/**
|
|
405
289
|
* Media processing configuration (transcription, TTS, image analysis, vision, link understanding, infrastructure, persistence).
|
|
406
290
|
*/
|
|
407
291
|
export declare const MediaConfigSchema: z.ZodObject<{
|
|
408
|
-
/** Transcription (voice-to-text) settings */
|
|
409
292
|
transcription: z.ZodDefault<z.ZodObject<{
|
|
410
|
-
/** Primary STT provider (default: "openai") */
|
|
411
293
|
provider: z.ZodDefault<z.ZodEnum<{
|
|
412
294
|
openai: "openai";
|
|
413
295
|
groq: "groq";
|
|
414
296
|
deepgram: "deepgram";
|
|
415
297
|
}>>;
|
|
416
|
-
/** Provider-specific model ID (e.g., "gpt-4o-mini-transcribe", "whisper-large-v3-turbo", "nova-3") */
|
|
417
298
|
model: z.ZodOptional<z.ZodString>;
|
|
418
|
-
/** Maximum file size in megabytes (default: 25) */
|
|
419
299
|
maxFileSizeMb: z.ZodDefault<z.ZodNumber>;
|
|
420
|
-
/** API request timeout in milliseconds (default: 60000) */
|
|
421
300
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
422
|
-
/** BCP-47 language hint for transcription (e.g., "en", "es"). Auto-detect if omitted. */
|
|
423
301
|
language: z.ZodOptional<z.ZodString>;
|
|
424
|
-
/** Auto-transcribe voice messages in the inbound pipeline (default: true) */
|
|
425
302
|
autoTranscribe: z.ZodDefault<z.ZodBoolean>;
|
|
426
|
-
/** Enable preflight STT for mention detection in voice messages (default: true) */
|
|
427
303
|
preflight: z.ZodDefault<z.ZodBoolean>;
|
|
428
|
-
/** Ordered fallback providers to try when primary fails (default: []) */
|
|
429
304
|
fallbackProviders: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
430
305
|
openai: "openai";
|
|
431
306
|
groq: "groq";
|
|
432
307
|
deepgram: "deepgram";
|
|
433
308
|
}>>>;
|
|
434
309
|
}, z.core.$strict>>;
|
|
435
|
-
/** Text-to-speech settings */
|
|
436
310
|
tts: z.ZodDefault<z.ZodObject<{
|
|
437
|
-
/** TTS provider (default: "openai") */
|
|
438
311
|
provider: z.ZodDefault<z.ZodEnum<{
|
|
439
312
|
openai: "openai";
|
|
440
313
|
elevenlabs: "elevenlabs";
|
|
441
314
|
edge: "edge";
|
|
442
315
|
}>>;
|
|
443
|
-
/** Voice identifier (default: "alloy") */
|
|
444
316
|
voice: z.ZodDefault<z.ZodString>;
|
|
445
|
-
/** Output audio format (default: "opus") */
|
|
446
317
|
format: z.ZodDefault<z.ZodString>;
|
|
447
|
-
/** Provider-specific model ID (e.g., "eleven_multilingual_v2" for ElevenLabs) */
|
|
448
318
|
model: z.ZodOptional<z.ZodString>;
|
|
449
|
-
/** Auto mode — when to automatically synthesize speech */
|
|
450
319
|
autoMode: z.ZodDefault<z.ZodDefault<z.ZodEnum<{
|
|
451
320
|
always: "always";
|
|
452
321
|
off: "off";
|
|
453
322
|
inbound: "inbound";
|
|
454
323
|
tagged: "tagged";
|
|
455
324
|
}>>>;
|
|
456
|
-
/** Maximum text length for TTS synthesis (default: 4096) */
|
|
457
325
|
maxTextLength: z.ZodDefault<z.ZodNumber>;
|
|
458
|
-
/** Regex pattern to detect TTS-tagged responses (default matches [[tts]] or [[tts:...]]) */
|
|
459
326
|
tagPattern: z.ZodDefault<z.ZodString>;
|
|
460
|
-
/** Per-channel output format overrides */
|
|
461
327
|
outputFormats: z.ZodDefault<z.ZodObject<{
|
|
462
|
-
/** Telegram: Opus for native voice notes */
|
|
463
328
|
telegram: z.ZodDefault<z.ZodString>;
|
|
464
|
-
/** Discord: MP3 for broadest compatibility */
|
|
465
329
|
discord: z.ZodDefault<z.ZodString>;
|
|
466
|
-
/** WhatsApp: MP3 default */
|
|
467
330
|
whatsapp: z.ZodDefault<z.ZodString>;
|
|
468
|
-
/** Slack: MP3 default */
|
|
469
331
|
slack: z.ZodDefault<z.ZodString>;
|
|
470
|
-
/** Default format for unknown channels */
|
|
471
332
|
default: z.ZodDefault<z.ZodString>;
|
|
472
333
|
}, z.core.$strict>>;
|
|
473
|
-
/** ElevenLabs-specific voice settings */
|
|
474
334
|
elevenlabsSettings: z.ZodOptional<z.ZodObject<{
|
|
475
|
-
/** Voice stability (0-1, higher = more consistent) */
|
|
476
335
|
stability: z.ZodOptional<z.ZodNumber>;
|
|
477
|
-
/** Similarity boost (0-1, higher = more similar to original voice) */
|
|
478
336
|
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
479
|
-
/** Style exaggeration (0-1) */
|
|
480
337
|
style: z.ZodOptional<z.ZodNumber>;
|
|
481
|
-
/** Enable speaker boost for clarity */
|
|
482
338
|
useSpeakerBoost: z.ZodOptional<z.ZodBoolean>;
|
|
483
|
-
/** Playback speed multiplier */
|
|
484
339
|
speed: z.ZodOptional<z.ZodNumber>;
|
|
485
|
-
/** Random seed for reproducible output */
|
|
486
340
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
487
|
-
/** Text normalization mode */
|
|
488
341
|
applyTextNormalization: z.ZodDefault<z.ZodEnum<{
|
|
489
342
|
auto: "auto";
|
|
490
343
|
off: "off";
|
|
@@ -492,123 +345,74 @@ export declare const MediaConfigSchema: z.ZodObject<{
|
|
|
492
345
|
}>>;
|
|
493
346
|
}, z.core.$strict>>;
|
|
494
347
|
}, z.core.$strict>>;
|
|
495
|
-
/** Image analysis settings */
|
|
496
348
|
imageAnalysis: z.ZodDefault<z.ZodObject<{
|
|
497
|
-
/** Maximum image file size in megabytes (default: 20) */
|
|
498
349
|
maxFileSizeMb: z.ZodDefault<z.ZodNumber>;
|
|
499
350
|
}, z.core.$strict>>;
|
|
500
|
-
/** Multi-provider vision analysis settings */
|
|
501
351
|
vision: z.ZodDefault<z.ZodObject<{
|
|
502
|
-
/** Enable vision analysis (default: true). */
|
|
503
352
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
504
|
-
/** Ordered list of vision providers to consider (default: all three). */
|
|
505
353
|
providers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
506
354
|
openai: "openai";
|
|
507
355
|
anthropic: "anthropic";
|
|
508
356
|
google: "google";
|
|
509
357
|
}>>>;
|
|
510
|
-
/** Preferred default provider (overrides auto-selection). */
|
|
511
358
|
defaultProvider: z.ZodOptional<z.ZodString>;
|
|
512
|
-
/** Maximum base64-encoded size for video in bytes (default: 70MB). */
|
|
513
359
|
videoMaxBase64Bytes: z.ZodDefault<z.ZodNumber>;
|
|
514
|
-
/** Maximum raw video file size in bytes (default: 50MB). */
|
|
515
360
|
videoMaxRawBytes: z.ZodDefault<z.ZodNumber>;
|
|
516
|
-
/** Timeout in milliseconds for video description API calls (default: 120s). */
|
|
517
361
|
videoTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
518
|
-
/** Maximum characters for video description output (default: 500). */
|
|
519
362
|
videoMaxDescriptionChars: z.ZodDefault<z.ZodNumber>;
|
|
520
|
-
/** Maximum image file size in megabytes (default: 20). */
|
|
521
363
|
imageMaxFileSizeMb: z.ZodDefault<z.ZodNumber>;
|
|
522
|
-
/** Scope rules for vision analysis (first match wins). */
|
|
523
364
|
scopeRules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
524
|
-
/** Channel type to match (e.g. "telegram", "discord"). */
|
|
525
365
|
channel: z.ZodOptional<z.ZodString>;
|
|
526
|
-
/** Chat type to match (e.g. "private", "group"). */
|
|
527
366
|
chatType: z.ZodOptional<z.ZodString>;
|
|
528
|
-
/** Session key prefix to match via startsWith. */
|
|
529
367
|
keyPrefix: z.ZodOptional<z.ZodString>;
|
|
530
|
-
/** Action to take when this rule matches. */
|
|
531
368
|
action: z.ZodEnum<{
|
|
532
369
|
allow: "allow";
|
|
533
370
|
deny: "deny";
|
|
534
371
|
}>;
|
|
535
372
|
}, z.core.$strict>>>;
|
|
536
|
-
/** Default action when no scope rule matches (default: "allow"). */
|
|
537
373
|
defaultScopeAction: z.ZodDefault<z.ZodEnum<{
|
|
538
374
|
allow: "allow";
|
|
539
375
|
deny: "deny";
|
|
540
376
|
}>>;
|
|
541
377
|
}, z.core.$strict>>;
|
|
542
|
-
/** Link understanding settings */
|
|
543
378
|
linkUnderstanding: z.ZodDefault<z.ZodObject<{
|
|
544
|
-
/** Enable automatic link understanding (default: true) */
|
|
545
379
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
546
|
-
/** Maximum number of links to process per message (default: 3) */
|
|
547
380
|
maxLinks: z.ZodDefault<z.ZodNumber>;
|
|
548
|
-
/** Timeout for fetching each URL in milliseconds (default: 10000) */
|
|
549
381
|
fetchTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
550
|
-
/** Maximum characters of extracted content per link (default: 5000) */
|
|
551
382
|
maxContentChars: z.ZodDefault<z.ZodNumber>;
|
|
552
|
-
/** User-Agent string for outbound fetch requests */
|
|
553
383
|
userAgentString: z.ZodDefault<z.ZodString>;
|
|
554
384
|
}, z.core.$strict>>;
|
|
555
|
-
/** Infrastructure settings (fetch limits, concurrency, temp files) */
|
|
556
385
|
infrastructure: z.ZodDefault<z.ZodObject<{
|
|
557
|
-
/** Max file size for remote media fetches in bytes (default: 25MB) */
|
|
558
386
|
maxRemoteFetchBytes: z.ZodDefault<z.ZodNumber>;
|
|
559
|
-
/** Max concurrent media operations (default: 3) */
|
|
560
387
|
concurrencyLimit: z.ZodDefault<z.ZodNumber>;
|
|
561
|
-
/** Temp file TTL in milliseconds (default: 30 min) */
|
|
562
388
|
tempFileTtlMs: z.ZodDefault<z.ZodNumber>;
|
|
563
|
-
/** Cleanup interval in milliseconds (default: 5 min) */
|
|
564
389
|
tempCleanupIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
565
390
|
}, z.core.$strict>>;
|
|
566
|
-
/** Document extraction settings */
|
|
567
391
|
documentExtraction: z.ZodDefault<z.ZodObject<{
|
|
568
|
-
/** Enable document extraction (default: true) */
|
|
569
392
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
570
|
-
/** Allowed MIME types for extraction (default: DOCUMENT_MIME_WHITELIST) */
|
|
571
393
|
allowedMimes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
572
|
-
/** Maximum file size in bytes (default: 10MB) */
|
|
573
394
|
maxBytes: z.ZodDefault<z.ZodNumber>;
|
|
574
|
-
/** Maximum characters in extracted text (default: 200000) */
|
|
575
395
|
maxChars: z.ZodDefault<z.ZodNumber>;
|
|
576
|
-
/** Maximum total characters across all attachments per message (default: 500000) */
|
|
577
396
|
maxTotalChars: z.ZodDefault<z.ZodNumber>;
|
|
578
|
-
/** Maximum pages to extract from paginated documents (default: 20) */
|
|
579
397
|
maxPages: z.ZodDefault<z.ZodNumber>;
|
|
580
|
-
/** Extraction timeout in milliseconds (default: 30000) */
|
|
581
398
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
582
|
-
/** Use OCR/image fallback for PDF pages with little text (default: false) */
|
|
583
399
|
pdfImageFallback: z.ZodDefault<z.ZodBoolean>;
|
|
584
|
-
/** Minimum character threshold per page to trigger image fallback (default: 50, 0 = always fallback) */
|
|
585
400
|
pdfImageFallbackThreshold: z.ZodDefault<z.ZodNumber>;
|
|
586
401
|
}, z.core.$strict>>;
|
|
587
|
-
/** Media file persistence settings */
|
|
588
402
|
persistence: z.ZodDefault<z.ZodObject<{
|
|
589
|
-
/** Enable automatic media file persistence to workspace (default: true) */
|
|
590
403
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
591
|
-
/** Soft limit for total workspace media storage in MB (default: 1024 = 1GB). Logs WARN when exceeded. */
|
|
592
404
|
maxStorageMb: z.ZodDefault<z.ZodNumber>;
|
|
593
|
-
/** Maximum individual file size in bytes (default: 52428800 = 50MB) */
|
|
594
405
|
maxFileBytes: z.ZodDefault<z.ZodNumber>;
|
|
595
406
|
}, z.core.$strict>>;
|
|
596
|
-
/** Image generation settings */
|
|
597
407
|
imageGeneration: z.ZodDefault<z.ZodObject<{
|
|
598
|
-
/** Image generation provider (default: "fal") */
|
|
599
408
|
provider: z.ZodDefault<z.ZodEnum<{
|
|
600
409
|
openai: "openai";
|
|
601
410
|
fal: "fal";
|
|
602
411
|
}>>;
|
|
603
|
-
/** Provider-specific model ID (e.g., "fal-ai/flux/dev", "gpt-image-1") */
|
|
604
412
|
model: z.ZodOptional<z.ZodString>;
|
|
605
|
-
/** Enable safety checker on generated images (default: true) */
|
|
606
413
|
safetyChecker: z.ZodDefault<z.ZodBoolean>;
|
|
607
|
-
/** Maximum image generations per hour per agent (default: 10) */
|
|
608
414
|
maxPerHour: z.ZodDefault<z.ZodNumber>;
|
|
609
|
-
/** Default image size/dimensions (default: "1024x1024") */
|
|
610
415
|
defaultSize: z.ZodDefault<z.ZodString>;
|
|
611
|
-
/** Generation timeout in milliseconds (default: 60000) */
|
|
612
416
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
613
417
|
}, z.core.$strict>>;
|
|
614
418
|
}, z.core.$strict>;
|
|
@@ -616,34 +420,22 @@ export declare const MediaConfigSchema: z.ZodObject<{
|
|
|
616
420
|
* Auto-reply rule entry.
|
|
617
421
|
*/
|
|
618
422
|
export declare const AutoReplyRuleSchema: z.ZodObject<{
|
|
619
|
-
/** Unique identifier for this rule */
|
|
620
423
|
id: z.ZodString;
|
|
621
|
-
/** Regex pattern to match incoming messages */
|
|
622
424
|
pattern: z.ZodString;
|
|
623
|
-
/** Response template (supports {{match}} placeholders) */
|
|
624
425
|
template: z.ZodString;
|
|
625
|
-
/** Optional channel filter (rule applies only to listed channels) */
|
|
626
426
|
channels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
627
|
-
/** Priority for rule ordering (higher = first, default: 0) */
|
|
628
427
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
629
428
|
}, z.core.$strict>;
|
|
630
429
|
/**
|
|
631
430
|
* Auto-reply configuration.
|
|
632
431
|
*/
|
|
633
432
|
export declare const AutoReplyConfigSchema: z.ZodObject<{
|
|
634
|
-
/** Enable auto-reply rules (default: false) */
|
|
635
433
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
636
|
-
/** List of auto-reply rules */
|
|
637
434
|
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
638
|
-
/** Unique identifier for this rule */
|
|
639
435
|
id: z.ZodString;
|
|
640
|
-
/** Regex pattern to match incoming messages */
|
|
641
436
|
pattern: z.ZodString;
|
|
642
|
-
/** Response template (supports {{match}} placeholders) */
|
|
643
437
|
template: z.ZodString;
|
|
644
|
-
/** Optional channel filter (rule applies only to listed channels) */
|
|
645
438
|
channels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
646
|
-
/** Priority for rule ordering (higher = first, default: 0) */
|
|
647
439
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
648
440
|
}, z.core.$strict>>>;
|
|
649
441
|
}, z.core.$strict>;
|
|
@@ -654,9 +446,7 @@ export declare const AutoReplyConfigSchema: z.ZodObject<{
|
|
|
654
446
|
* media processing (transcription, TTS, image analysis), and auto-reply rules.
|
|
655
447
|
*/
|
|
656
448
|
export declare const IntegrationsConfigSchema: z.ZodObject<{
|
|
657
|
-
/** Brave Search API integration */
|
|
658
449
|
braveSearch: z.ZodDefault<z.ZodObject<{
|
|
659
|
-
/** Brave Search API key (optional — search disabled without it; string or SecretRef) */
|
|
660
450
|
apiKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
661
451
|
source: z.ZodEnum<{
|
|
662
452
|
file: "file";
|
|
@@ -666,132 +456,81 @@ export declare const IntegrationsConfigSchema: z.ZodObject<{
|
|
|
666
456
|
provider: z.ZodString;
|
|
667
457
|
id: z.ZodString;
|
|
668
458
|
}, z.core.$strict>]>>;
|
|
669
|
-
/** Default number of results to return (default: 5) */
|
|
670
459
|
maxResultsDefault: z.ZodDefault<z.ZodNumber>;
|
|
671
|
-
/** Cache TTL in milliseconds (default: 3600000 = 1 hour) */
|
|
672
460
|
cacheTtlMs: z.ZodDefault<z.ZodNumber>;
|
|
673
|
-
/** Rate limit in requests per second (default: 1) */
|
|
674
461
|
rateLimitRps: z.ZodDefault<z.ZodNumber>;
|
|
675
462
|
}, z.core.$strict>>;
|
|
676
|
-
/** MCP (Model Context Protocol) server connections */
|
|
677
463
|
mcp: z.ZodDefault<z.ZodObject<{
|
|
678
|
-
/** List of MCP servers to connect to */
|
|
679
464
|
servers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
680
|
-
/** Unique name for this MCP server */
|
|
681
465
|
name: z.ZodString;
|
|
682
|
-
/** Transport type: "stdio" for local process, "sse" for legacy SSE servers, "http" for Streamable HTTP */
|
|
683
466
|
transport: z.ZodEnum<{
|
|
684
467
|
http: "http";
|
|
685
468
|
stdio: "stdio";
|
|
686
469
|
sse: "sse";
|
|
687
470
|
}>;
|
|
688
|
-
/** Command to execute for stdio transport */
|
|
689
471
|
command: z.ZodOptional<z.ZodString>;
|
|
690
|
-
/** Arguments for the stdio command */
|
|
691
472
|
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
692
|
-
/** URL for remote transports (sse, http) */
|
|
693
473
|
url: z.ZodOptional<z.ZodURL>;
|
|
694
|
-
/** Environment variables to pass to the stdio process (e.g. API keys) */
|
|
695
474
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
696
|
-
/** Working directory for stdio transport. Overrides the default workspace CWD. */
|
|
697
475
|
cwd: z.ZodOptional<z.ZodString>;
|
|
698
|
-
/** Whether this server is enabled (default: true) */
|
|
699
476
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
700
|
-
/** Custom HTTP headers for remote transports (sse, http). Ignored for stdio. */
|
|
701
477
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
702
|
-
/** Maximum concurrent tool calls to this server. Undefined = auto (transport-based default). */
|
|
703
478
|
maxConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
704
479
|
}, z.core.$strict>>>;
|
|
705
|
-
/** Default timeout for MCP tool calls in milliseconds (default: 120000).
|
|
706
|
-
* Image generation and other slow tools may need 2+ minutes. */
|
|
707
480
|
callToolTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
708
|
-
/** Default max concurrent tool calls for stdio servers (default: 1). */
|
|
709
481
|
stdioDefaultConcurrency: z.ZodDefault<z.ZodNumber>;
|
|
710
|
-
/** Default max concurrent tool calls for HTTP/SSE servers (default: 4). */
|
|
711
482
|
httpDefaultConcurrency: z.ZodDefault<z.ZodNumber>;
|
|
712
483
|
}, z.core.$strict>>;
|
|
713
|
-
/** Media processing services */
|
|
714
484
|
media: z.ZodDefault<z.ZodObject<{
|
|
715
|
-
/** Transcription (voice-to-text) settings */
|
|
716
485
|
transcription: z.ZodDefault<z.ZodObject<{
|
|
717
|
-
/** Primary STT provider (default: "openai") */
|
|
718
486
|
provider: z.ZodDefault<z.ZodEnum<{
|
|
719
487
|
openai: "openai";
|
|
720
488
|
groq: "groq";
|
|
721
489
|
deepgram: "deepgram";
|
|
722
490
|
}>>;
|
|
723
|
-
/** Provider-specific model ID (e.g., "gpt-4o-mini-transcribe", "whisper-large-v3-turbo", "nova-3") */
|
|
724
491
|
model: z.ZodOptional<z.ZodString>;
|
|
725
|
-
/** Maximum file size in megabytes (default: 25) */
|
|
726
492
|
maxFileSizeMb: z.ZodDefault<z.ZodNumber>;
|
|
727
|
-
/** API request timeout in milliseconds (default: 60000) */
|
|
728
493
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
729
|
-
/** BCP-47 language hint for transcription (e.g., "en", "es"). Auto-detect if omitted. */
|
|
730
494
|
language: z.ZodOptional<z.ZodString>;
|
|
731
|
-
/** Auto-transcribe voice messages in the inbound pipeline (default: true) */
|
|
732
495
|
autoTranscribe: z.ZodDefault<z.ZodBoolean>;
|
|
733
|
-
/** Enable preflight STT for mention detection in voice messages (default: true) */
|
|
734
496
|
preflight: z.ZodDefault<z.ZodBoolean>;
|
|
735
|
-
/** Ordered fallback providers to try when primary fails (default: []) */
|
|
736
497
|
fallbackProviders: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
737
498
|
openai: "openai";
|
|
738
499
|
groq: "groq";
|
|
739
500
|
deepgram: "deepgram";
|
|
740
501
|
}>>>;
|
|
741
502
|
}, z.core.$strict>>;
|
|
742
|
-
/** Text-to-speech settings */
|
|
743
503
|
tts: z.ZodDefault<z.ZodObject<{
|
|
744
|
-
/** TTS provider (default: "openai") */
|
|
745
504
|
provider: z.ZodDefault<z.ZodEnum<{
|
|
746
505
|
openai: "openai";
|
|
747
506
|
elevenlabs: "elevenlabs";
|
|
748
507
|
edge: "edge";
|
|
749
508
|
}>>;
|
|
750
|
-
/** Voice identifier (default: "alloy") */
|
|
751
509
|
voice: z.ZodDefault<z.ZodString>;
|
|
752
|
-
/** Output audio format (default: "opus") */
|
|
753
510
|
format: z.ZodDefault<z.ZodString>;
|
|
754
|
-
/** Provider-specific model ID (e.g., "eleven_multilingual_v2" for ElevenLabs) */
|
|
755
511
|
model: z.ZodOptional<z.ZodString>;
|
|
756
|
-
/** Auto mode — when to automatically synthesize speech */
|
|
757
512
|
autoMode: z.ZodDefault<z.ZodDefault<z.ZodEnum<{
|
|
758
513
|
always: "always";
|
|
759
514
|
off: "off";
|
|
760
515
|
inbound: "inbound";
|
|
761
516
|
tagged: "tagged";
|
|
762
517
|
}>>>;
|
|
763
|
-
/** Maximum text length for TTS synthesis (default: 4096) */
|
|
764
518
|
maxTextLength: z.ZodDefault<z.ZodNumber>;
|
|
765
|
-
/** Regex pattern to detect TTS-tagged responses (default matches [[tts]] or [[tts:...]]) */
|
|
766
519
|
tagPattern: z.ZodDefault<z.ZodString>;
|
|
767
|
-
/** Per-channel output format overrides */
|
|
768
520
|
outputFormats: z.ZodDefault<z.ZodObject<{
|
|
769
|
-
/** Telegram: Opus for native voice notes */
|
|
770
521
|
telegram: z.ZodDefault<z.ZodString>;
|
|
771
|
-
/** Discord: MP3 for broadest compatibility */
|
|
772
522
|
discord: z.ZodDefault<z.ZodString>;
|
|
773
|
-
/** WhatsApp: MP3 default */
|
|
774
523
|
whatsapp: z.ZodDefault<z.ZodString>;
|
|
775
|
-
/** Slack: MP3 default */
|
|
776
524
|
slack: z.ZodDefault<z.ZodString>;
|
|
777
|
-
/** Default format for unknown channels */
|
|
778
525
|
default: z.ZodDefault<z.ZodString>;
|
|
779
526
|
}, z.core.$strict>>;
|
|
780
|
-
/** ElevenLabs-specific voice settings */
|
|
781
527
|
elevenlabsSettings: z.ZodOptional<z.ZodObject<{
|
|
782
|
-
/** Voice stability (0-1, higher = more consistent) */
|
|
783
528
|
stability: z.ZodOptional<z.ZodNumber>;
|
|
784
|
-
/** Similarity boost (0-1, higher = more similar to original voice) */
|
|
785
529
|
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
786
|
-
/** Style exaggeration (0-1) */
|
|
787
530
|
style: z.ZodOptional<z.ZodNumber>;
|
|
788
|
-
/** Enable speaker boost for clarity */
|
|
789
531
|
useSpeakerBoost: z.ZodOptional<z.ZodBoolean>;
|
|
790
|
-
/** Playback speed multiplier */
|
|
791
532
|
speed: z.ZodOptional<z.ZodNumber>;
|
|
792
|
-
/** Random seed for reproducible output */
|
|
793
533
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
794
|
-
/** Text normalization mode */
|
|
795
534
|
applyTextNormalization: z.ZodDefault<z.ZodEnum<{
|
|
796
535
|
auto: "auto";
|
|
797
536
|
off: "off";
|
|
@@ -799,141 +538,84 @@ export declare const IntegrationsConfigSchema: z.ZodObject<{
|
|
|
799
538
|
}>>;
|
|
800
539
|
}, z.core.$strict>>;
|
|
801
540
|
}, z.core.$strict>>;
|
|
802
|
-
/** Image analysis settings */
|
|
803
541
|
imageAnalysis: z.ZodDefault<z.ZodObject<{
|
|
804
|
-
/** Maximum image file size in megabytes (default: 20) */
|
|
805
542
|
maxFileSizeMb: z.ZodDefault<z.ZodNumber>;
|
|
806
543
|
}, z.core.$strict>>;
|
|
807
|
-
/** Multi-provider vision analysis settings */
|
|
808
544
|
vision: z.ZodDefault<z.ZodObject<{
|
|
809
|
-
/** Enable vision analysis (default: true). */
|
|
810
545
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
811
|
-
/** Ordered list of vision providers to consider (default: all three). */
|
|
812
546
|
providers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
813
547
|
openai: "openai";
|
|
814
548
|
anthropic: "anthropic";
|
|
815
549
|
google: "google";
|
|
816
550
|
}>>>;
|
|
817
|
-
/** Preferred default provider (overrides auto-selection). */
|
|
818
551
|
defaultProvider: z.ZodOptional<z.ZodString>;
|
|
819
|
-
/** Maximum base64-encoded size for video in bytes (default: 70MB). */
|
|
820
552
|
videoMaxBase64Bytes: z.ZodDefault<z.ZodNumber>;
|
|
821
|
-
/** Maximum raw video file size in bytes (default: 50MB). */
|
|
822
553
|
videoMaxRawBytes: z.ZodDefault<z.ZodNumber>;
|
|
823
|
-
/** Timeout in milliseconds for video description API calls (default: 120s). */
|
|
824
554
|
videoTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
825
|
-
/** Maximum characters for video description output (default: 500). */
|
|
826
555
|
videoMaxDescriptionChars: z.ZodDefault<z.ZodNumber>;
|
|
827
|
-
/** Maximum image file size in megabytes (default: 20). */
|
|
828
556
|
imageMaxFileSizeMb: z.ZodDefault<z.ZodNumber>;
|
|
829
|
-
/** Scope rules for vision analysis (first match wins). */
|
|
830
557
|
scopeRules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
831
|
-
/** Channel type to match (e.g. "telegram", "discord"). */
|
|
832
558
|
channel: z.ZodOptional<z.ZodString>;
|
|
833
|
-
/** Chat type to match (e.g. "private", "group"). */
|
|
834
559
|
chatType: z.ZodOptional<z.ZodString>;
|
|
835
|
-
/** Session key prefix to match via startsWith. */
|
|
836
560
|
keyPrefix: z.ZodOptional<z.ZodString>;
|
|
837
|
-
/** Action to take when this rule matches. */
|
|
838
561
|
action: z.ZodEnum<{
|
|
839
562
|
allow: "allow";
|
|
840
563
|
deny: "deny";
|
|
841
564
|
}>;
|
|
842
565
|
}, z.core.$strict>>>;
|
|
843
|
-
/** Default action when no scope rule matches (default: "allow"). */
|
|
844
566
|
defaultScopeAction: z.ZodDefault<z.ZodEnum<{
|
|
845
567
|
allow: "allow";
|
|
846
568
|
deny: "deny";
|
|
847
569
|
}>>;
|
|
848
570
|
}, z.core.$strict>>;
|
|
849
|
-
/** Link understanding settings */
|
|
850
571
|
linkUnderstanding: z.ZodDefault<z.ZodObject<{
|
|
851
|
-
/** Enable automatic link understanding (default: true) */
|
|
852
572
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
853
|
-
/** Maximum number of links to process per message (default: 3) */
|
|
854
573
|
maxLinks: z.ZodDefault<z.ZodNumber>;
|
|
855
|
-
/** Timeout for fetching each URL in milliseconds (default: 10000) */
|
|
856
574
|
fetchTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
857
|
-
/** Maximum characters of extracted content per link (default: 5000) */
|
|
858
575
|
maxContentChars: z.ZodDefault<z.ZodNumber>;
|
|
859
|
-
/** User-Agent string for outbound fetch requests */
|
|
860
576
|
userAgentString: z.ZodDefault<z.ZodString>;
|
|
861
577
|
}, z.core.$strict>>;
|
|
862
|
-
/** Infrastructure settings (fetch limits, concurrency, temp files) */
|
|
863
578
|
infrastructure: z.ZodDefault<z.ZodObject<{
|
|
864
|
-
/** Max file size for remote media fetches in bytes (default: 25MB) */
|
|
865
579
|
maxRemoteFetchBytes: z.ZodDefault<z.ZodNumber>;
|
|
866
|
-
/** Max concurrent media operations (default: 3) */
|
|
867
580
|
concurrencyLimit: z.ZodDefault<z.ZodNumber>;
|
|
868
|
-
/** Temp file TTL in milliseconds (default: 30 min) */
|
|
869
581
|
tempFileTtlMs: z.ZodDefault<z.ZodNumber>;
|
|
870
|
-
/** Cleanup interval in milliseconds (default: 5 min) */
|
|
871
582
|
tempCleanupIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
872
583
|
}, z.core.$strict>>;
|
|
873
|
-
/** Document extraction settings */
|
|
874
584
|
documentExtraction: z.ZodDefault<z.ZodObject<{
|
|
875
|
-
/** Enable document extraction (default: true) */
|
|
876
585
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
877
|
-
/** Allowed MIME types for extraction (default: DOCUMENT_MIME_WHITELIST) */
|
|
878
586
|
allowedMimes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
879
|
-
/** Maximum file size in bytes (default: 10MB) */
|
|
880
587
|
maxBytes: z.ZodDefault<z.ZodNumber>;
|
|
881
|
-
/** Maximum characters in extracted text (default: 200000) */
|
|
882
588
|
maxChars: z.ZodDefault<z.ZodNumber>;
|
|
883
|
-
/** Maximum total characters across all attachments per message (default: 500000) */
|
|
884
589
|
maxTotalChars: z.ZodDefault<z.ZodNumber>;
|
|
885
|
-
/** Maximum pages to extract from paginated documents (default: 20) */
|
|
886
590
|
maxPages: z.ZodDefault<z.ZodNumber>;
|
|
887
|
-
/** Extraction timeout in milliseconds (default: 30000) */
|
|
888
591
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
889
|
-
/** Use OCR/image fallback for PDF pages with little text (default: false) */
|
|
890
592
|
pdfImageFallback: z.ZodDefault<z.ZodBoolean>;
|
|
891
|
-
/** Minimum character threshold per page to trigger image fallback (default: 50, 0 = always fallback) */
|
|
892
593
|
pdfImageFallbackThreshold: z.ZodDefault<z.ZodNumber>;
|
|
893
594
|
}, z.core.$strict>>;
|
|
894
|
-
/** Media file persistence settings */
|
|
895
595
|
persistence: z.ZodDefault<z.ZodObject<{
|
|
896
|
-
/** Enable automatic media file persistence to workspace (default: true) */
|
|
897
596
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
898
|
-
/** Soft limit for total workspace media storage in MB (default: 1024 = 1GB). Logs WARN when exceeded. */
|
|
899
597
|
maxStorageMb: z.ZodDefault<z.ZodNumber>;
|
|
900
|
-
/** Maximum individual file size in bytes (default: 52428800 = 50MB) */
|
|
901
598
|
maxFileBytes: z.ZodDefault<z.ZodNumber>;
|
|
902
599
|
}, z.core.$strict>>;
|
|
903
|
-
/** Image generation settings */
|
|
904
600
|
imageGeneration: z.ZodDefault<z.ZodObject<{
|
|
905
|
-
/** Image generation provider (default: "fal") */
|
|
906
601
|
provider: z.ZodDefault<z.ZodEnum<{
|
|
907
602
|
openai: "openai";
|
|
908
603
|
fal: "fal";
|
|
909
604
|
}>>;
|
|
910
|
-
/** Provider-specific model ID (e.g., "fal-ai/flux/dev", "gpt-image-1") */
|
|
911
605
|
model: z.ZodOptional<z.ZodString>;
|
|
912
|
-
/** Enable safety checker on generated images (default: true) */
|
|
913
606
|
safetyChecker: z.ZodDefault<z.ZodBoolean>;
|
|
914
|
-
/** Maximum image generations per hour per agent (default: 10) */
|
|
915
607
|
maxPerHour: z.ZodDefault<z.ZodNumber>;
|
|
916
|
-
/** Default image size/dimensions (default: "1024x1024") */
|
|
917
608
|
defaultSize: z.ZodDefault<z.ZodString>;
|
|
918
|
-
/** Generation timeout in milliseconds (default: 60000) */
|
|
919
609
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
920
610
|
}, z.core.$strict>>;
|
|
921
611
|
}, z.core.$strict>>;
|
|
922
|
-
/** Auto-reply rule engine */
|
|
923
612
|
autoReply: z.ZodDefault<z.ZodObject<{
|
|
924
|
-
/** Enable auto-reply rules (default: false) */
|
|
925
613
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
926
|
-
/** List of auto-reply rules */
|
|
927
614
|
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
928
|
-
/** Unique identifier for this rule */
|
|
929
615
|
id: z.ZodString;
|
|
930
|
-
/** Regex pattern to match incoming messages */
|
|
931
616
|
pattern: z.ZodString;
|
|
932
|
-
/** Response template (supports {{match}} placeholders) */
|
|
933
617
|
template: z.ZodString;
|
|
934
|
-
/** Optional channel filter (rule applies only to listed channels) */
|
|
935
618
|
channels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
936
|
-
/** Priority for rule ordering (higher = first, default: 0) */
|
|
937
619
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
938
620
|
}, z.core.$strict>>>;
|
|
939
621
|
}, z.core.$strict>>;
|