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
|
@@ -7,30 +7,21 @@ import { z } from "zod";
|
|
|
7
7
|
*/
|
|
8
8
|
/** Configuration for acknowledgment reactions sent when the agent starts processing. */
|
|
9
9
|
export declare const AckReactionConfigSchema: z.ZodObject<{
|
|
10
|
-
/** Whether to send an ack reaction when agent starts processing a message */
|
|
11
10
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
-
/** Emoji to react with (Unicode emoji or platform-specific format) */
|
|
13
11
|
emoji: z.ZodDefault<z.ZodString>;
|
|
14
12
|
}, z.core.$strict>;
|
|
15
13
|
export type AckReactionConfig = z.infer<typeof AckReactionConfigSchema>;
|
|
16
14
|
/** Per-channel media processing toggles. All default to true for backward compatibility. */
|
|
17
15
|
export declare const MediaProcessingSchema: z.ZodObject<{
|
|
18
|
-
/** Enable voice transcription (STT) for inbound audio attachments */
|
|
19
16
|
transcribeAudio: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
-
/** Enable image analysis (Vision) for inbound image attachments */
|
|
21
17
|
analyzeImages: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
-
/** Enable video description for inbound video attachments */
|
|
23
18
|
describeVideos: z.ZodDefault<z.ZodBoolean>;
|
|
24
|
-
/** Enable document text extraction for inbound file attachments */
|
|
25
19
|
extractDocuments: z.ZodDefault<z.ZodBoolean>;
|
|
26
|
-
/** Enable link content fetching for URLs in message text */
|
|
27
20
|
understandLinks: z.ZodDefault<z.ZodBoolean>;
|
|
28
21
|
}, z.core.$strict>;
|
|
29
22
|
export type MediaProcessingConfig = z.infer<typeof MediaProcessingSchema>;
|
|
30
23
|
export declare const ChannelEntrySchema: z.ZodObject<{
|
|
31
|
-
/** Whether this channel is active */
|
|
32
24
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
33
|
-
/** API key for the channel service (string or SecretRef) */
|
|
34
25
|
apiKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
35
26
|
source: z.ZodEnum<{
|
|
36
27
|
file: "file";
|
|
@@ -40,7 +31,6 @@ export declare const ChannelEntrySchema: z.ZodObject<{
|
|
|
40
31
|
provider: z.ZodString;
|
|
41
32
|
id: z.ZodString;
|
|
42
33
|
}, z.core.$strict>]>>;
|
|
43
|
-
/** Bot token for the channel service (string or SecretRef) */
|
|
44
34
|
botToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
45
35
|
source: z.ZodEnum<{
|
|
46
36
|
file: "file";
|
|
@@ -50,11 +40,8 @@ export declare const ChannelEntrySchema: z.ZodObject<{
|
|
|
50
40
|
provider: z.ZodString;
|
|
51
41
|
id: z.ZodString;
|
|
52
42
|
}, z.core.$strict>]>>;
|
|
53
|
-
/** Webhook URL for receiving events */
|
|
54
43
|
webhookUrl: z.ZodOptional<z.ZodURL>;
|
|
55
|
-
/** Allowed sender IDs (empty = allow all) */
|
|
56
44
|
allowFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
57
|
-
/** Slack app-level token for Socket Mode (xapp-..., string or SecretRef) */
|
|
58
45
|
appToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
59
46
|
source: z.ZodEnum<{
|
|
60
47
|
file: "file";
|
|
@@ -64,7 +51,6 @@ export declare const ChannelEntrySchema: z.ZodObject<{
|
|
|
64
51
|
provider: z.ZodString;
|
|
65
52
|
id: z.ZodString;
|
|
66
53
|
}, z.core.$strict>]>>;
|
|
67
|
-
/** Slack signing secret for HTTP request verification (string or SecretRef) */
|
|
68
54
|
signingSecret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
69
55
|
source: z.ZodEnum<{
|
|
70
56
|
file: "file";
|
|
@@ -74,26 +60,17 @@ export declare const ChannelEntrySchema: z.ZodObject<{
|
|
|
74
60
|
provider: z.ZodString;
|
|
75
61
|
id: z.ZodString;
|
|
76
62
|
}, z.core.$strict>]>>;
|
|
77
|
-
/** Slack connection mode: socket (Socket Mode) or http (Events API) */
|
|
78
63
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
79
64
|
socket: "socket";
|
|
80
65
|
http: "http";
|
|
81
66
|
}>>;
|
|
82
|
-
/** Directory for WhatsApp multi-device auth state files */
|
|
83
67
|
authDir: z.ZodOptional<z.ZodString>;
|
|
84
|
-
/** Whether to print QR code to terminal for WhatsApp pairing */
|
|
85
68
|
printQR: z.ZodOptional<z.ZodBoolean>;
|
|
86
|
-
/** Per-channel media processing overrides (defaults: all enabled) */
|
|
87
69
|
mediaProcessing: z.ZodDefault<z.ZodObject<{
|
|
88
|
-
/** Enable voice transcription (STT) for inbound audio attachments */
|
|
89
70
|
transcribeAudio: z.ZodDefault<z.ZodBoolean>;
|
|
90
|
-
/** Enable image analysis (Vision) for inbound image attachments */
|
|
91
71
|
analyzeImages: z.ZodDefault<z.ZodBoolean>;
|
|
92
|
-
/** Enable video description for inbound video attachments */
|
|
93
72
|
describeVideos: z.ZodDefault<z.ZodBoolean>;
|
|
94
|
-
/** Enable document text extraction for inbound file attachments */
|
|
95
73
|
extractDocuments: z.ZodDefault<z.ZodBoolean>;
|
|
96
|
-
/** Enable link content fetching for URLs in message text */
|
|
97
74
|
understandLinks: z.ZodDefault<z.ZodBoolean>;
|
|
98
75
|
}, z.core.$strict>>;
|
|
99
76
|
}, z.core.$strict>;
|
|
@@ -145,15 +122,10 @@ export declare const SignalChannelEntrySchema: z.ZodObject<{
|
|
|
145
122
|
authDir: z.ZodOptional<z.ZodString>;
|
|
146
123
|
printQR: z.ZodOptional<z.ZodBoolean>;
|
|
147
124
|
mediaProcessing: z.ZodDefault<z.ZodObject<{
|
|
148
|
-
/** Enable voice transcription (STT) for inbound audio attachments */
|
|
149
125
|
transcribeAudio: z.ZodDefault<z.ZodBoolean>;
|
|
150
|
-
/** Enable image analysis (Vision) for inbound image attachments */
|
|
151
126
|
analyzeImages: z.ZodDefault<z.ZodBoolean>;
|
|
152
|
-
/** Enable video description for inbound video attachments */
|
|
153
127
|
describeVideos: z.ZodDefault<z.ZodBoolean>;
|
|
154
|
-
/** Enable document text extraction for inbound file attachments */
|
|
155
128
|
extractDocuments: z.ZodDefault<z.ZodBoolean>;
|
|
156
|
-
/** Enable link content fetching for URLs in message text */
|
|
157
129
|
understandLinks: z.ZodDefault<z.ZodBoolean>;
|
|
158
130
|
}, z.core.$strict>>;
|
|
159
131
|
baseUrl: z.ZodDefault<z.ZodString>;
|
|
@@ -208,15 +180,10 @@ export declare const IMessageChannelEntrySchema: z.ZodObject<{
|
|
|
208
180
|
authDir: z.ZodOptional<z.ZodString>;
|
|
209
181
|
printQR: z.ZodOptional<z.ZodBoolean>;
|
|
210
182
|
mediaProcessing: z.ZodDefault<z.ZodObject<{
|
|
211
|
-
/** Enable voice transcription (STT) for inbound audio attachments */
|
|
212
183
|
transcribeAudio: z.ZodDefault<z.ZodBoolean>;
|
|
213
|
-
/** Enable image analysis (Vision) for inbound image attachments */
|
|
214
184
|
analyzeImages: z.ZodDefault<z.ZodBoolean>;
|
|
215
|
-
/** Enable video description for inbound video attachments */
|
|
216
185
|
describeVideos: z.ZodDefault<z.ZodBoolean>;
|
|
217
|
-
/** Enable document text extraction for inbound file attachments */
|
|
218
186
|
extractDocuments: z.ZodDefault<z.ZodBoolean>;
|
|
219
|
-
/** Enable link content fetching for URLs in message text */
|
|
220
187
|
understandLinks: z.ZodDefault<z.ZodBoolean>;
|
|
221
188
|
}, z.core.$strict>>;
|
|
222
189
|
binaryPath: z.ZodOptional<z.ZodString>;
|
|
@@ -270,15 +237,10 @@ export declare const LineChannelEntrySchema: z.ZodObject<{
|
|
|
270
237
|
authDir: z.ZodOptional<z.ZodString>;
|
|
271
238
|
printQR: z.ZodOptional<z.ZodBoolean>;
|
|
272
239
|
mediaProcessing: z.ZodDefault<z.ZodObject<{
|
|
273
|
-
/** Enable voice transcription (STT) for inbound audio attachments */
|
|
274
240
|
transcribeAudio: z.ZodDefault<z.ZodBoolean>;
|
|
275
|
-
/** Enable image analysis (Vision) for inbound image attachments */
|
|
276
241
|
analyzeImages: z.ZodDefault<z.ZodBoolean>;
|
|
277
|
-
/** Enable video description for inbound video attachments */
|
|
278
242
|
describeVideos: z.ZodDefault<z.ZodBoolean>;
|
|
279
|
-
/** Enable document text extraction for inbound file attachments */
|
|
280
243
|
extractDocuments: z.ZodDefault<z.ZodBoolean>;
|
|
281
|
-
/** Enable link content fetching for URLs in message text */
|
|
282
244
|
understandLinks: z.ZodDefault<z.ZodBoolean>;
|
|
283
245
|
}, z.core.$strict>>;
|
|
284
246
|
channelSecret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -340,15 +302,10 @@ export declare const EmailChannelEntrySchema: z.ZodObject<{
|
|
|
340
302
|
authDir: z.ZodOptional<z.ZodString>;
|
|
341
303
|
printQR: z.ZodOptional<z.ZodBoolean>;
|
|
342
304
|
mediaProcessing: z.ZodDefault<z.ZodObject<{
|
|
343
|
-
/** Enable voice transcription (STT) for inbound audio attachments */
|
|
344
305
|
transcribeAudio: z.ZodDefault<z.ZodBoolean>;
|
|
345
|
-
/** Enable image analysis (Vision) for inbound image attachments */
|
|
346
306
|
analyzeImages: z.ZodDefault<z.ZodBoolean>;
|
|
347
|
-
/** Enable video description for inbound video attachments */
|
|
348
307
|
describeVideos: z.ZodDefault<z.ZodBoolean>;
|
|
349
|
-
/** Enable document text extraction for inbound file attachments */
|
|
350
308
|
extractDocuments: z.ZodDefault<z.ZodBoolean>;
|
|
351
|
-
/** Enable link content fetching for URLs in message text */
|
|
352
309
|
understandLinks: z.ZodDefault<z.ZodBoolean>;
|
|
353
310
|
}, z.core.$strict>>;
|
|
354
311
|
imapHost: z.ZodOptional<z.ZodString>;
|
|
@@ -442,15 +399,10 @@ export declare const IrcChannelEntrySchema: z.ZodObject<{
|
|
|
442
399
|
authDir: z.ZodOptional<z.ZodString>;
|
|
443
400
|
printQR: z.ZodOptional<z.ZodBoolean>;
|
|
444
401
|
mediaProcessing: z.ZodDefault<z.ZodObject<{
|
|
445
|
-
/** Enable voice transcription (STT) for inbound audio attachments */
|
|
446
402
|
transcribeAudio: z.ZodDefault<z.ZodBoolean>;
|
|
447
|
-
/** Enable image analysis (Vision) for inbound image attachments */
|
|
448
403
|
analyzeImages: z.ZodDefault<z.ZodBoolean>;
|
|
449
|
-
/** Enable video description for inbound video attachments */
|
|
450
404
|
describeVideos: z.ZodDefault<z.ZodBoolean>;
|
|
451
|
-
/** Enable document text extraction for inbound file attachments */
|
|
452
405
|
extractDocuments: z.ZodDefault<z.ZodBoolean>;
|
|
453
|
-
/** Enable link content fetching for URLs in message text */
|
|
454
406
|
understandLinks: z.ZodDefault<z.ZodBoolean>;
|
|
455
407
|
}, z.core.$strict>>;
|
|
456
408
|
host: z.ZodOptional<z.ZodString>;
|
|
@@ -470,33 +422,21 @@ export declare const IrcChannelEntrySchema: z.ZodObject<{
|
|
|
470
422
|
}, z.core.$strict>;
|
|
471
423
|
/** Configuration for channel health monitoring and automatic restart. */
|
|
472
424
|
export declare const ChannelHealthCheckSchema: z.ZodObject<{
|
|
473
|
-
/** Whether health monitoring is enabled */
|
|
474
425
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
475
|
-
/** Interval between health check polls (ms) */
|
|
476
426
|
pollIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
477
|
-
/** Threshold after which a channel with no messages is considered stale (ms) */
|
|
478
427
|
staleThresholdMs: z.ZodDefault<z.ZodNumber>;
|
|
479
|
-
/** Threshold for idle warning before stale (ms) */
|
|
480
428
|
idleThresholdMs: z.ZodDefault<z.ZodNumber>;
|
|
481
|
-
/** Number of consecutive errors before marking channel degraded */
|
|
482
429
|
errorThreshold: z.ZodDefault<z.ZodNumber>;
|
|
483
|
-
/** Threshold after which a stuck send operation triggers alert (ms) */
|
|
484
430
|
stuckThresholdMs: z.ZodDefault<z.ZodNumber>;
|
|
485
|
-
/** Grace period after startup before health checks begin (ms) */
|
|
486
431
|
startupGraceMs: z.ZodDefault<z.ZodNumber>;
|
|
487
|
-
/** Whether to automatically restart channels that become stale */
|
|
488
432
|
autoRestartOnStale: z.ZodDefault<z.ZodBoolean>;
|
|
489
|
-
/** Maximum number of automatic restarts per hour */
|
|
490
433
|
maxRestartsPerHour: z.ZodDefault<z.ZodNumber>;
|
|
491
|
-
/** Minimum cooldown between automatic restarts (ms) */
|
|
492
434
|
restartCooldownMs: z.ZodDefault<z.ZodNumber>;
|
|
493
435
|
}, z.core.$strict>;
|
|
494
436
|
export type ChannelHealthCheckConfig = z.infer<typeof ChannelHealthCheckSchema>;
|
|
495
437
|
export declare const ChannelConfigSchema: z.ZodObject<{
|
|
496
438
|
telegram: z.ZodDefault<z.ZodObject<{
|
|
497
|
-
/** Whether this channel is active */
|
|
498
439
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
499
|
-
/** API key for the channel service (string or SecretRef) */
|
|
500
440
|
apiKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
501
441
|
source: z.ZodEnum<{
|
|
502
442
|
file: "file";
|
|
@@ -506,7 +446,6 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
506
446
|
provider: z.ZodString;
|
|
507
447
|
id: z.ZodString;
|
|
508
448
|
}, z.core.$strict>]>>;
|
|
509
|
-
/** Bot token for the channel service (string or SecretRef) */
|
|
510
449
|
botToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
511
450
|
source: z.ZodEnum<{
|
|
512
451
|
file: "file";
|
|
@@ -516,11 +455,8 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
516
455
|
provider: z.ZodString;
|
|
517
456
|
id: z.ZodString;
|
|
518
457
|
}, z.core.$strict>]>>;
|
|
519
|
-
/** Webhook URL for receiving events */
|
|
520
458
|
webhookUrl: z.ZodOptional<z.ZodURL>;
|
|
521
|
-
/** Allowed sender IDs (empty = allow all) */
|
|
522
459
|
allowFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
523
|
-
/** Slack app-level token for Socket Mode (xapp-..., string or SecretRef) */
|
|
524
460
|
appToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
525
461
|
source: z.ZodEnum<{
|
|
526
462
|
file: "file";
|
|
@@ -530,7 +466,6 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
530
466
|
provider: z.ZodString;
|
|
531
467
|
id: z.ZodString;
|
|
532
468
|
}, z.core.$strict>]>>;
|
|
533
|
-
/** Slack signing secret for HTTP request verification (string or SecretRef) */
|
|
534
469
|
signingSecret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
535
470
|
source: z.ZodEnum<{
|
|
536
471
|
file: "file";
|
|
@@ -540,33 +475,22 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
540
475
|
provider: z.ZodString;
|
|
541
476
|
id: z.ZodString;
|
|
542
477
|
}, z.core.$strict>]>>;
|
|
543
|
-
/** Slack connection mode: socket (Socket Mode) or http (Events API) */
|
|
544
478
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
545
479
|
socket: "socket";
|
|
546
480
|
http: "http";
|
|
547
481
|
}>>;
|
|
548
|
-
/** Directory for WhatsApp multi-device auth state files */
|
|
549
482
|
authDir: z.ZodOptional<z.ZodString>;
|
|
550
|
-
/** Whether to print QR code to terminal for WhatsApp pairing */
|
|
551
483
|
printQR: z.ZodOptional<z.ZodBoolean>;
|
|
552
|
-
/** Per-channel media processing overrides (defaults: all enabled) */
|
|
553
484
|
mediaProcessing: z.ZodDefault<z.ZodObject<{
|
|
554
|
-
/** Enable voice transcription (STT) for inbound audio attachments */
|
|
555
485
|
transcribeAudio: z.ZodDefault<z.ZodBoolean>;
|
|
556
|
-
/** Enable image analysis (Vision) for inbound image attachments */
|
|
557
486
|
analyzeImages: z.ZodDefault<z.ZodBoolean>;
|
|
558
|
-
/** Enable video description for inbound video attachments */
|
|
559
487
|
describeVideos: z.ZodDefault<z.ZodBoolean>;
|
|
560
|
-
/** Enable document text extraction for inbound file attachments */
|
|
561
488
|
extractDocuments: z.ZodDefault<z.ZodBoolean>;
|
|
562
|
-
/** Enable link content fetching for URLs in message text */
|
|
563
489
|
understandLinks: z.ZodDefault<z.ZodBoolean>;
|
|
564
490
|
}, z.core.$strict>>;
|
|
565
491
|
}, z.core.$strict>>;
|
|
566
492
|
discord: z.ZodDefault<z.ZodObject<{
|
|
567
|
-
/** Whether this channel is active */
|
|
568
493
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
569
|
-
/** API key for the channel service (string or SecretRef) */
|
|
570
494
|
apiKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
571
495
|
source: z.ZodEnum<{
|
|
572
496
|
file: "file";
|
|
@@ -576,7 +500,6 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
576
500
|
provider: z.ZodString;
|
|
577
501
|
id: z.ZodString;
|
|
578
502
|
}, z.core.$strict>]>>;
|
|
579
|
-
/** Bot token for the channel service (string or SecretRef) */
|
|
580
503
|
botToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
581
504
|
source: z.ZodEnum<{
|
|
582
505
|
file: "file";
|
|
@@ -586,11 +509,8 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
586
509
|
provider: z.ZodString;
|
|
587
510
|
id: z.ZodString;
|
|
588
511
|
}, z.core.$strict>]>>;
|
|
589
|
-
/** Webhook URL for receiving events */
|
|
590
512
|
webhookUrl: z.ZodOptional<z.ZodURL>;
|
|
591
|
-
/** Allowed sender IDs (empty = allow all) */
|
|
592
513
|
allowFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
593
|
-
/** Slack app-level token for Socket Mode (xapp-..., string or SecretRef) */
|
|
594
514
|
appToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
595
515
|
source: z.ZodEnum<{
|
|
596
516
|
file: "file";
|
|
@@ -600,7 +520,6 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
600
520
|
provider: z.ZodString;
|
|
601
521
|
id: z.ZodString;
|
|
602
522
|
}, z.core.$strict>]>>;
|
|
603
|
-
/** Slack signing secret for HTTP request verification (string or SecretRef) */
|
|
604
523
|
signingSecret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
605
524
|
source: z.ZodEnum<{
|
|
606
525
|
file: "file";
|
|
@@ -610,33 +529,22 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
610
529
|
provider: z.ZodString;
|
|
611
530
|
id: z.ZodString;
|
|
612
531
|
}, z.core.$strict>]>>;
|
|
613
|
-
/** Slack connection mode: socket (Socket Mode) or http (Events API) */
|
|
614
532
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
615
533
|
socket: "socket";
|
|
616
534
|
http: "http";
|
|
617
535
|
}>>;
|
|
618
|
-
/** Directory for WhatsApp multi-device auth state files */
|
|
619
536
|
authDir: z.ZodOptional<z.ZodString>;
|
|
620
|
-
/** Whether to print QR code to terminal for WhatsApp pairing */
|
|
621
537
|
printQR: z.ZodOptional<z.ZodBoolean>;
|
|
622
|
-
/** Per-channel media processing overrides (defaults: all enabled) */
|
|
623
538
|
mediaProcessing: z.ZodDefault<z.ZodObject<{
|
|
624
|
-
/** Enable voice transcription (STT) for inbound audio attachments */
|
|
625
539
|
transcribeAudio: z.ZodDefault<z.ZodBoolean>;
|
|
626
|
-
/** Enable image analysis (Vision) for inbound image attachments */
|
|
627
540
|
analyzeImages: z.ZodDefault<z.ZodBoolean>;
|
|
628
|
-
/** Enable video description for inbound video attachments */
|
|
629
541
|
describeVideos: z.ZodDefault<z.ZodBoolean>;
|
|
630
|
-
/** Enable document text extraction for inbound file attachments */
|
|
631
542
|
extractDocuments: z.ZodDefault<z.ZodBoolean>;
|
|
632
|
-
/** Enable link content fetching for URLs in message text */
|
|
633
543
|
understandLinks: z.ZodDefault<z.ZodBoolean>;
|
|
634
544
|
}, z.core.$strict>>;
|
|
635
545
|
}, z.core.$strict>>;
|
|
636
546
|
slack: z.ZodDefault<z.ZodObject<{
|
|
637
|
-
/** Whether this channel is active */
|
|
638
547
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
639
|
-
/** API key for the channel service (string or SecretRef) */
|
|
640
548
|
apiKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
641
549
|
source: z.ZodEnum<{
|
|
642
550
|
file: "file";
|
|
@@ -646,7 +554,6 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
646
554
|
provider: z.ZodString;
|
|
647
555
|
id: z.ZodString;
|
|
648
556
|
}, z.core.$strict>]>>;
|
|
649
|
-
/** Bot token for the channel service (string or SecretRef) */
|
|
650
557
|
botToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
651
558
|
source: z.ZodEnum<{
|
|
652
559
|
file: "file";
|
|
@@ -656,11 +563,8 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
656
563
|
provider: z.ZodString;
|
|
657
564
|
id: z.ZodString;
|
|
658
565
|
}, z.core.$strict>]>>;
|
|
659
|
-
/** Webhook URL for receiving events */
|
|
660
566
|
webhookUrl: z.ZodOptional<z.ZodURL>;
|
|
661
|
-
/** Allowed sender IDs (empty = allow all) */
|
|
662
567
|
allowFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
663
|
-
/** Slack app-level token for Socket Mode (xapp-..., string or SecretRef) */
|
|
664
568
|
appToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
665
569
|
source: z.ZodEnum<{
|
|
666
570
|
file: "file";
|
|
@@ -670,7 +574,6 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
670
574
|
provider: z.ZodString;
|
|
671
575
|
id: z.ZodString;
|
|
672
576
|
}, z.core.$strict>]>>;
|
|
673
|
-
/** Slack signing secret for HTTP request verification (string or SecretRef) */
|
|
674
577
|
signingSecret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
675
578
|
source: z.ZodEnum<{
|
|
676
579
|
file: "file";
|
|
@@ -680,33 +583,22 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
680
583
|
provider: z.ZodString;
|
|
681
584
|
id: z.ZodString;
|
|
682
585
|
}, z.core.$strict>]>>;
|
|
683
|
-
/** Slack connection mode: socket (Socket Mode) or http (Events API) */
|
|
684
586
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
685
587
|
socket: "socket";
|
|
686
588
|
http: "http";
|
|
687
589
|
}>>;
|
|
688
|
-
/** Directory for WhatsApp multi-device auth state files */
|
|
689
590
|
authDir: z.ZodOptional<z.ZodString>;
|
|
690
|
-
/** Whether to print QR code to terminal for WhatsApp pairing */
|
|
691
591
|
printQR: z.ZodOptional<z.ZodBoolean>;
|
|
692
|
-
/** Per-channel media processing overrides (defaults: all enabled) */
|
|
693
592
|
mediaProcessing: z.ZodDefault<z.ZodObject<{
|
|
694
|
-
/** Enable voice transcription (STT) for inbound audio attachments */
|
|
695
593
|
transcribeAudio: z.ZodDefault<z.ZodBoolean>;
|
|
696
|
-
/** Enable image analysis (Vision) for inbound image attachments */
|
|
697
594
|
analyzeImages: z.ZodDefault<z.ZodBoolean>;
|
|
698
|
-
/** Enable video description for inbound video attachments */
|
|
699
595
|
describeVideos: z.ZodDefault<z.ZodBoolean>;
|
|
700
|
-
/** Enable document text extraction for inbound file attachments */
|
|
701
596
|
extractDocuments: z.ZodDefault<z.ZodBoolean>;
|
|
702
|
-
/** Enable link content fetching for URLs in message text */
|
|
703
597
|
understandLinks: z.ZodDefault<z.ZodBoolean>;
|
|
704
598
|
}, z.core.$strict>>;
|
|
705
599
|
}, z.core.$strict>>;
|
|
706
600
|
whatsapp: z.ZodDefault<z.ZodObject<{
|
|
707
|
-
/** Whether this channel is active */
|
|
708
601
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
709
|
-
/** API key for the channel service (string or SecretRef) */
|
|
710
602
|
apiKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
711
603
|
source: z.ZodEnum<{
|
|
712
604
|
file: "file";
|
|
@@ -716,7 +608,6 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
716
608
|
provider: z.ZodString;
|
|
717
609
|
id: z.ZodString;
|
|
718
610
|
}, z.core.$strict>]>>;
|
|
719
|
-
/** Bot token for the channel service (string or SecretRef) */
|
|
720
611
|
botToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
721
612
|
source: z.ZodEnum<{
|
|
722
613
|
file: "file";
|
|
@@ -726,11 +617,8 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
726
617
|
provider: z.ZodString;
|
|
727
618
|
id: z.ZodString;
|
|
728
619
|
}, z.core.$strict>]>>;
|
|
729
|
-
/** Webhook URL for receiving events */
|
|
730
620
|
webhookUrl: z.ZodOptional<z.ZodURL>;
|
|
731
|
-
/** Allowed sender IDs (empty = allow all) */
|
|
732
621
|
allowFrom: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
733
|
-
/** Slack app-level token for Socket Mode (xapp-..., string or SecretRef) */
|
|
734
622
|
appToken: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
735
623
|
source: z.ZodEnum<{
|
|
736
624
|
file: "file";
|
|
@@ -740,7 +628,6 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
740
628
|
provider: z.ZodString;
|
|
741
629
|
id: z.ZodString;
|
|
742
630
|
}, z.core.$strict>]>>;
|
|
743
|
-
/** Slack signing secret for HTTP request verification (string or SecretRef) */
|
|
744
631
|
signingSecret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
745
632
|
source: z.ZodEnum<{
|
|
746
633
|
file: "file";
|
|
@@ -750,26 +637,17 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
750
637
|
provider: z.ZodString;
|
|
751
638
|
id: z.ZodString;
|
|
752
639
|
}, z.core.$strict>]>>;
|
|
753
|
-
/** Slack connection mode: socket (Socket Mode) or http (Events API) */
|
|
754
640
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
755
641
|
socket: "socket";
|
|
756
642
|
http: "http";
|
|
757
643
|
}>>;
|
|
758
|
-
/** Directory for WhatsApp multi-device auth state files */
|
|
759
644
|
authDir: z.ZodOptional<z.ZodString>;
|
|
760
|
-
/** Whether to print QR code to terminal for WhatsApp pairing */
|
|
761
645
|
printQR: z.ZodOptional<z.ZodBoolean>;
|
|
762
|
-
/** Per-channel media processing overrides (defaults: all enabled) */
|
|
763
646
|
mediaProcessing: z.ZodDefault<z.ZodObject<{
|
|
764
|
-
/** Enable voice transcription (STT) for inbound audio attachments */
|
|
765
647
|
transcribeAudio: z.ZodDefault<z.ZodBoolean>;
|
|
766
|
-
/** Enable image analysis (Vision) for inbound image attachments */
|
|
767
648
|
analyzeImages: z.ZodDefault<z.ZodBoolean>;
|
|
768
|
-
/** Enable video description for inbound video attachments */
|
|
769
649
|
describeVideos: z.ZodDefault<z.ZodBoolean>;
|
|
770
|
-
/** Enable document text extraction for inbound file attachments */
|
|
771
650
|
extractDocuments: z.ZodDefault<z.ZodBoolean>;
|
|
772
|
-
/** Enable link content fetching for URLs in message text */
|
|
773
651
|
understandLinks: z.ZodDefault<z.ZodBoolean>;
|
|
774
652
|
}, z.core.$strict>>;
|
|
775
653
|
}, z.core.$strict>>;
|
|
@@ -820,15 +698,10 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
820
698
|
authDir: z.ZodOptional<z.ZodString>;
|
|
821
699
|
printQR: z.ZodOptional<z.ZodBoolean>;
|
|
822
700
|
mediaProcessing: z.ZodDefault<z.ZodObject<{
|
|
823
|
-
/** Enable voice transcription (STT) for inbound audio attachments */
|
|
824
701
|
transcribeAudio: z.ZodDefault<z.ZodBoolean>;
|
|
825
|
-
/** Enable image analysis (Vision) for inbound image attachments */
|
|
826
702
|
analyzeImages: z.ZodDefault<z.ZodBoolean>;
|
|
827
|
-
/** Enable video description for inbound video attachments */
|
|
828
703
|
describeVideos: z.ZodDefault<z.ZodBoolean>;
|
|
829
|
-
/** Enable document text extraction for inbound file attachments */
|
|
830
704
|
extractDocuments: z.ZodDefault<z.ZodBoolean>;
|
|
831
|
-
/** Enable link content fetching for URLs in message text */
|
|
832
705
|
understandLinks: z.ZodDefault<z.ZodBoolean>;
|
|
833
706
|
}, z.core.$strict>>;
|
|
834
707
|
baseUrl: z.ZodDefault<z.ZodString>;
|
|
@@ -882,15 +755,10 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
882
755
|
authDir: z.ZodOptional<z.ZodString>;
|
|
883
756
|
printQR: z.ZodOptional<z.ZodBoolean>;
|
|
884
757
|
mediaProcessing: z.ZodDefault<z.ZodObject<{
|
|
885
|
-
/** Enable voice transcription (STT) for inbound audio attachments */
|
|
886
758
|
transcribeAudio: z.ZodDefault<z.ZodBoolean>;
|
|
887
|
-
/** Enable image analysis (Vision) for inbound image attachments */
|
|
888
759
|
analyzeImages: z.ZodDefault<z.ZodBoolean>;
|
|
889
|
-
/** Enable video description for inbound video attachments */
|
|
890
760
|
describeVideos: z.ZodDefault<z.ZodBoolean>;
|
|
891
|
-
/** Enable document text extraction for inbound file attachments */
|
|
892
761
|
extractDocuments: z.ZodDefault<z.ZodBoolean>;
|
|
893
|
-
/** Enable link content fetching for URLs in message text */
|
|
894
762
|
understandLinks: z.ZodDefault<z.ZodBoolean>;
|
|
895
763
|
}, z.core.$strict>>;
|
|
896
764
|
binaryPath: z.ZodOptional<z.ZodString>;
|
|
@@ -943,15 +811,10 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
943
811
|
authDir: z.ZodOptional<z.ZodString>;
|
|
944
812
|
printQR: z.ZodOptional<z.ZodBoolean>;
|
|
945
813
|
mediaProcessing: z.ZodDefault<z.ZodObject<{
|
|
946
|
-
/** Enable voice transcription (STT) for inbound audio attachments */
|
|
947
814
|
transcribeAudio: z.ZodDefault<z.ZodBoolean>;
|
|
948
|
-
/** Enable image analysis (Vision) for inbound image attachments */
|
|
949
815
|
analyzeImages: z.ZodDefault<z.ZodBoolean>;
|
|
950
|
-
/** Enable video description for inbound video attachments */
|
|
951
816
|
describeVideos: z.ZodDefault<z.ZodBoolean>;
|
|
952
|
-
/** Enable document text extraction for inbound file attachments */
|
|
953
817
|
extractDocuments: z.ZodDefault<z.ZodBoolean>;
|
|
954
|
-
/** Enable link content fetching for URLs in message text */
|
|
955
818
|
understandLinks: z.ZodDefault<z.ZodBoolean>;
|
|
956
819
|
}, z.core.$strict>>;
|
|
957
820
|
channelSecret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -1012,15 +875,10 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
1012
875
|
authDir: z.ZodOptional<z.ZodString>;
|
|
1013
876
|
printQR: z.ZodOptional<z.ZodBoolean>;
|
|
1014
877
|
mediaProcessing: z.ZodDefault<z.ZodObject<{
|
|
1015
|
-
/** Enable voice transcription (STT) for inbound audio attachments */
|
|
1016
878
|
transcribeAudio: z.ZodDefault<z.ZodBoolean>;
|
|
1017
|
-
/** Enable image analysis (Vision) for inbound image attachments */
|
|
1018
879
|
analyzeImages: z.ZodDefault<z.ZodBoolean>;
|
|
1019
|
-
/** Enable video description for inbound video attachments */
|
|
1020
880
|
describeVideos: z.ZodDefault<z.ZodBoolean>;
|
|
1021
|
-
/** Enable document text extraction for inbound file attachments */
|
|
1022
881
|
extractDocuments: z.ZodDefault<z.ZodBoolean>;
|
|
1023
|
-
/** Enable link content fetching for URLs in message text */
|
|
1024
882
|
understandLinks: z.ZodDefault<z.ZodBoolean>;
|
|
1025
883
|
}, z.core.$strict>>;
|
|
1026
884
|
host: z.ZodOptional<z.ZodString>;
|
|
@@ -1085,15 +943,10 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
1085
943
|
authDir: z.ZodOptional<z.ZodString>;
|
|
1086
944
|
printQR: z.ZodOptional<z.ZodBoolean>;
|
|
1087
945
|
mediaProcessing: z.ZodDefault<z.ZodObject<{
|
|
1088
|
-
/** Enable voice transcription (STT) for inbound audio attachments */
|
|
1089
946
|
transcribeAudio: z.ZodDefault<z.ZodBoolean>;
|
|
1090
|
-
/** Enable image analysis (Vision) for inbound image attachments */
|
|
1091
947
|
analyzeImages: z.ZodDefault<z.ZodBoolean>;
|
|
1092
|
-
/** Enable video description for inbound video attachments */
|
|
1093
948
|
describeVideos: z.ZodDefault<z.ZodBoolean>;
|
|
1094
|
-
/** Enable document text extraction for inbound file attachments */
|
|
1095
949
|
extractDocuments: z.ZodDefault<z.ZodBoolean>;
|
|
1096
|
-
/** Enable link content fetching for URLs in message text */
|
|
1097
950
|
understandLinks: z.ZodDefault<z.ZodBoolean>;
|
|
1098
951
|
}, z.core.$strict>>;
|
|
1099
952
|
imapHost: z.ZodOptional<z.ZodString>;
|
|
@@ -1139,27 +992,16 @@ export declare const ChannelConfigSchema: z.ZodObject<{
|
|
|
1139
992
|
}>>;
|
|
1140
993
|
pollingIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
1141
994
|
}, z.core.$strict>>;
|
|
1142
|
-
/** Health monitoring configuration */
|
|
1143
995
|
healthCheck: z.ZodDefault<z.ZodObject<{
|
|
1144
|
-
/** Whether health monitoring is enabled */
|
|
1145
996
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1146
|
-
/** Interval between health check polls (ms) */
|
|
1147
997
|
pollIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
1148
|
-
/** Threshold after which a channel with no messages is considered stale (ms) */
|
|
1149
998
|
staleThresholdMs: z.ZodDefault<z.ZodNumber>;
|
|
1150
|
-
/** Threshold for idle warning before stale (ms) */
|
|
1151
999
|
idleThresholdMs: z.ZodDefault<z.ZodNumber>;
|
|
1152
|
-
/** Number of consecutive errors before marking channel degraded */
|
|
1153
1000
|
errorThreshold: z.ZodDefault<z.ZodNumber>;
|
|
1154
|
-
/** Threshold after which a stuck send operation triggers alert (ms) */
|
|
1155
1001
|
stuckThresholdMs: z.ZodDefault<z.ZodNumber>;
|
|
1156
|
-
/** Grace period after startup before health checks begin (ms) */
|
|
1157
1002
|
startupGraceMs: z.ZodDefault<z.ZodNumber>;
|
|
1158
|
-
/** Whether to automatically restart channels that become stale */
|
|
1159
1003
|
autoRestartOnStale: z.ZodDefault<z.ZodBoolean>;
|
|
1160
|
-
/** Maximum number of automatic restarts per hour */
|
|
1161
1004
|
maxRestartsPerHour: z.ZodDefault<z.ZodNumber>;
|
|
1162
|
-
/** Minimum cooldown between automatic restarts (ms) */
|
|
1163
1005
|
restartCooldownMs: z.ZodDefault<z.ZodNumber>;
|
|
1164
1006
|
}, z.core.$strict>>;
|
|
1165
1007
|
}, z.core.$strict>;
|
|
@@ -7,18 +7,13 @@ import { z } from "zod";
|
|
|
7
7
|
* while preserving natural block boundaries (e.g., code blocks, paragraphs).
|
|
8
8
|
*/
|
|
9
9
|
export declare const CoalescerConfigSchema: z.ZodObject<{
|
|
10
|
-
/** Minimum characters -- blocks below this threshold are always coalesced */
|
|
11
10
|
minChars: z.ZodDefault<z.ZodNumber>;
|
|
12
|
-
/** Maximum characters -- flush threshold; coalesced content is sent when this is reached */
|
|
13
11
|
maxChars: z.ZodDefault<z.ZodNumber>;
|
|
14
|
-
/** Idle timeout (ms) before flushing accumulated content */
|
|
15
12
|
idleMs: z.ZodDefault<z.ZodNumber>;
|
|
16
|
-
/** Code block handling: standalone (always flush separately) or coalesce (merge with surrounding text) */
|
|
17
13
|
codeBlockPolicy: z.ZodDefault<z.ZodEnum<{
|
|
18
14
|
standalone: "standalone";
|
|
19
15
|
coalesce: "coalesce";
|
|
20
16
|
}>>;
|
|
21
|
-
/** Whether idle timeout adapts to accumulated block length (longer content = shorter timeout) */
|
|
22
17
|
adaptiveIdle: z.ZodDefault<z.ZodBoolean>;
|
|
23
18
|
}, z.core.$strict>;
|
|
24
19
|
export type CoalescerConfig = z.infer<typeof CoalescerConfigSchema>;
|
|
@@ -9,11 +9,8 @@ import { z } from "zod";
|
|
|
9
9
|
* Trace file rotation and configurable trace paths.
|
|
10
10
|
*/
|
|
11
11
|
declare const TracingDefaultsSchema: z.ZodObject<{
|
|
12
|
-
/** Default output directory for JSONL trace files. Supports ~ expansion. */
|
|
13
12
|
outputDir: z.ZodDefault<z.ZodString>;
|
|
14
|
-
/** Maximum trace file size before rotation. Supports k/m/g suffixes. */
|
|
15
13
|
maxSize: z.ZodDefault<z.ZodString>;
|
|
16
|
-
/** Number of rotated trace files to keep per session. */
|
|
17
14
|
maxFiles: z.ZodDefault<z.ZodNumber>;
|
|
18
15
|
}, z.core.$strict>;
|
|
19
16
|
/**
|
|
@@ -26,21 +23,13 @@ declare const TracingDefaultsSchema: z.ZodObject<{
|
|
|
26
23
|
* Logging rotation config.
|
|
27
24
|
*/
|
|
28
25
|
declare const LoggingConfigSchema: z.ZodObject<{
|
|
29
|
-
/** Path to the active log file. Supports ~ expansion. */
|
|
30
26
|
filePath: z.ZodDefault<z.ZodString>;
|
|
31
|
-
/** Maximum file size before rotation. Supports k/m/g suffixes. */
|
|
32
27
|
maxSize: z.ZodDefault<z.ZodString>;
|
|
33
|
-
/** Number of rotated files to keep. */
|
|
34
28
|
maxFiles: z.ZodDefault<z.ZodNumber>;
|
|
35
|
-
/** Compress rotated files (not yet supported by transport). */
|
|
36
29
|
compress: z.ZodDefault<z.ZodBoolean>;
|
|
37
|
-
/** JSONL trace file defaults (overridable per agent in agents.<name>.tracing) */
|
|
38
30
|
tracing: z.ZodDefault<z.ZodObject<{
|
|
39
|
-
/** Default output directory for JSONL trace files. Supports ~ expansion. */
|
|
40
31
|
outputDir: z.ZodDefault<z.ZodString>;
|
|
41
|
-
/** Maximum trace file size before rotation. Supports k/m/g suffixes. */
|
|
42
32
|
maxSize: z.ZodDefault<z.ZodString>;
|
|
43
|
-
/** Number of rotated trace files to keep per session. */
|
|
44
33
|
maxFiles: z.ZodDefault<z.ZodNumber>;
|
|
45
34
|
}, z.core.$strict>>;
|
|
46
35
|
}, z.core.$strict>;
|
|
@@ -55,11 +44,8 @@ declare const LoggingConfigSchema: z.ZodObject<{
|
|
|
55
44
|
* HMAC-SHA256 signature.
|
|
56
45
|
*/
|
|
57
46
|
declare const ConfigWebhookSchema: z.ZodObject<{
|
|
58
|
-
/** Webhook URL to receive config change notifications (empty = disabled) */
|
|
59
47
|
url: z.ZodOptional<z.ZodString>;
|
|
60
|
-
/** Timeout in milliseconds for webhook delivery (default: 5000) */
|
|
61
48
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
62
|
-
/** Optional shared secret for HMAC-SHA256 signature in X-Webhook-Signature header (string or SecretRef) */
|
|
63
49
|
secret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
64
50
|
source: z.ZodEnum<{
|
|
65
51
|
file: "file";
|
|
@@ -78,15 +64,10 @@ declare const ConfigWebhookSchema: z.ZodObject<{
|
|
|
78
64
|
* systemd-managed daemon.
|
|
79
65
|
*/
|
|
80
66
|
export declare const DaemonConfigSchema: z.ZodObject<{
|
|
81
|
-
/** WatchdogSec value in milliseconds (default: 30000, set 0 to disable) */
|
|
82
67
|
watchdogIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
83
|
-
/** Graceful shutdown timeout in milliseconds */
|
|
84
68
|
shutdownTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
85
|
-
/** Process metrics collection interval in milliseconds */
|
|
86
69
|
metricsIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
87
|
-
/** Event loop delay threshold in ms — skip watchdog ping if exceeded */
|
|
88
70
|
eventLoopDelayThresholdMs: z.ZodDefault<z.ZodNumber>;
|
|
89
|
-
/** Per-module log level overrides (module name -> level) */
|
|
90
71
|
logLevels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
91
72
|
error: "error";
|
|
92
73
|
trace: "trace";
|
|
@@ -95,33 +76,20 @@ export declare const DaemonConfigSchema: z.ZodObject<{
|
|
|
95
76
|
warn: "warn";
|
|
96
77
|
fatal: "fatal";
|
|
97
78
|
}>>>;
|
|
98
|
-
/** Log file rotation configuration */
|
|
99
79
|
logging: z.ZodDefault<z.ZodObject<{
|
|
100
|
-
/** Path to the active log file. Supports ~ expansion. */
|
|
101
80
|
filePath: z.ZodDefault<z.ZodString>;
|
|
102
|
-
/** Maximum file size before rotation. Supports k/m/g suffixes. */
|
|
103
81
|
maxSize: z.ZodDefault<z.ZodString>;
|
|
104
|
-
/** Number of rotated files to keep. */
|
|
105
82
|
maxFiles: z.ZodDefault<z.ZodNumber>;
|
|
106
|
-
/** Compress rotated files (not yet supported by transport). */
|
|
107
83
|
compress: z.ZodDefault<z.ZodBoolean>;
|
|
108
|
-
/** JSONL trace file defaults (overridable per agent in agents.<name>.tracing) */
|
|
109
84
|
tracing: z.ZodDefault<z.ZodObject<{
|
|
110
|
-
/** Default output directory for JSONL trace files. Supports ~ expansion. */
|
|
111
85
|
outputDir: z.ZodDefault<z.ZodString>;
|
|
112
|
-
/** Maximum trace file size before rotation. Supports k/m/g suffixes. */
|
|
113
86
|
maxSize: z.ZodDefault<z.ZodString>;
|
|
114
|
-
/** Number of rotated trace files to keep per session. */
|
|
115
87
|
maxFiles: z.ZodDefault<z.ZodNumber>;
|
|
116
88
|
}, z.core.$strict>>;
|
|
117
89
|
}, z.core.$strict>>;
|
|
118
|
-
/** Config change webhook notification (best-effort HTTP POST on every config.patch/apply) */
|
|
119
90
|
configWebhook: z.ZodDefault<z.ZodObject<{
|
|
120
|
-
/** Webhook URL to receive config change notifications (empty = disabled) */
|
|
121
91
|
url: z.ZodOptional<z.ZodString>;
|
|
122
|
-
/** Timeout in milliseconds for webhook delivery (default: 5000) */
|
|
123
92
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
124
|
-
/** Optional shared secret for HMAC-SHA256 signature in X-Webhook-Signature header (string or SecretRef) */
|
|
125
93
|
secret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
126
94
|
source: z.ZodEnum<{
|
|
127
95
|
file: "file";
|