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
|
@@ -8,11 +8,8 @@ import { z } from "zod";
|
|
|
8
8
|
* during execution.
|
|
9
9
|
*/
|
|
10
10
|
export declare const DebounceBufferConfigSchema: z.ZodObject<{
|
|
11
|
-
/** Per-channel debounce window in milliseconds. 0 = disabled. */
|
|
12
11
|
windowMs: z.ZodDefault<z.ZodNumber>;
|
|
13
|
-
/** Maximum messages to buffer per session before forced flush */
|
|
14
12
|
maxBufferedMessages: z.ZodDefault<z.ZodNumber>;
|
|
15
|
-
/** First message in burst triggers immediately (skip debounce) */
|
|
16
13
|
firstMessageImmediate: z.ZodDefault<z.ZodBoolean>;
|
|
17
14
|
}, z.core.$strict>;
|
|
18
15
|
export type DebounceBufferConfig = z.infer<typeof DebounceBufferConfigSchema>;
|
|
@@ -46,9 +43,7 @@ export declare const OverflowPolicySchema: z.ZodDefault<z.ZodEnum<{
|
|
|
46
43
|
* Overflow prevention configuration for a queue lane.
|
|
47
44
|
*/
|
|
48
45
|
export declare const OverflowConfigSchema: z.ZodObject<{
|
|
49
|
-
/** Maximum queued messages per session before overflow triggers */
|
|
50
46
|
maxDepth: z.ZodDefault<z.ZodNumber>;
|
|
51
|
-
/** What to do when maxDepth is reached */
|
|
52
47
|
policy: z.ZodDefault<z.ZodEnum<{
|
|
53
48
|
"drop-old": "drop-old";
|
|
54
49
|
"drop-new": "drop-new";
|
|
@@ -62,25 +57,20 @@ export declare const OverflowConfigSchema: z.ZodObject<{
|
|
|
62
57
|
* queue modes and overflow policies.
|
|
63
58
|
*/
|
|
64
59
|
export declare const PerChannelQueueConfigSchema: z.ZodObject<{
|
|
65
|
-
/** How rapid messages during active execution are handled */
|
|
66
60
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
67
61
|
followup: "followup";
|
|
68
62
|
collect: "collect";
|
|
69
63
|
steer: "steer";
|
|
70
64
|
"steer+followup": "steer+followup";
|
|
71
65
|
}>>;
|
|
72
|
-
/** Overflow prevention settings */
|
|
73
66
|
overflow: z.ZodDefault<z.ZodObject<{
|
|
74
|
-
/** Maximum queued messages per session before overflow triggers */
|
|
75
67
|
maxDepth: z.ZodDefault<z.ZodNumber>;
|
|
76
|
-
/** What to do when maxDepth is reached */
|
|
77
68
|
policy: z.ZodDefault<z.ZodEnum<{
|
|
78
69
|
"drop-old": "drop-old";
|
|
79
70
|
"drop-new": "drop-new";
|
|
80
71
|
summarize: "summarize";
|
|
81
72
|
}>>;
|
|
82
73
|
}, z.core.$strict>>;
|
|
83
|
-
/** Debounce delay in ms (0 = disabled). Waits this long after last message before processing. */
|
|
84
74
|
debounceMs: z.ZodDefault<z.ZodNumber>;
|
|
85
75
|
}, z.core.$strict>;
|
|
86
76
|
/**
|
|
@@ -90,9 +80,7 @@ export declare const PerChannelQueueConfigSchema: z.ZodObject<{
|
|
|
90
80
|
* without external intervention.
|
|
91
81
|
*/
|
|
92
82
|
export declare const FollowupConfigSchema: z.ZodObject<{
|
|
93
|
-
/** Maximum follow-up runs in a single chain (prevents infinite loops) */
|
|
94
83
|
maxFollowupRuns: z.ZodDefault<z.ZodNumber>;
|
|
95
|
-
/** Whether to trigger follow-up on compaction flush events */
|
|
96
84
|
followupOnCompaction: z.ZodDefault<z.ZodBoolean>;
|
|
97
85
|
}, z.core.$strict>;
|
|
98
86
|
export type FollowupConfig = z.infer<typeof FollowupConfigSchema>;
|
|
@@ -104,13 +92,9 @@ export type FollowupConfig = z.infer<typeof FollowupConfigSchema>;
|
|
|
104
92
|
* different scheduling priorities.
|
|
105
93
|
*/
|
|
106
94
|
export declare const PriorityLaneConfigSchema: z.ZodObject<{
|
|
107
|
-
/** Lane name (e.g., "high", "normal", "low") */
|
|
108
95
|
name: z.ZodString;
|
|
109
|
-
/** Concurrency limit for this lane */
|
|
110
96
|
concurrency: z.ZodDefault<z.ZodNumber>;
|
|
111
|
-
/** Scheduling priority (higher number = higher priority) */
|
|
112
97
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
113
|
-
/** Age threshold in ms after which tasks emit aging promotion events (0 = disabled) */
|
|
114
98
|
agingPromotionMs: z.ZodDefault<z.ZodNumber>;
|
|
115
99
|
}, z.core.$strict>;
|
|
116
100
|
export type PriorityLaneConfig = z.infer<typeof PriorityLaneConfigSchema>;
|
|
@@ -121,15 +105,10 @@ export type PriorityLaneConfig = z.infer<typeof PriorityLaneConfigSchema>;
|
|
|
121
105
|
* named priority lanes. The lane names must match entries in priorityLanes.
|
|
122
106
|
*/
|
|
123
107
|
export declare const LaneAssignmentConfigSchema: z.ZodObject<{
|
|
124
|
-
/** Default lane for messages that don't match any rule */
|
|
125
108
|
defaultLane: z.ZodDefault<z.ZodString>;
|
|
126
|
-
/** Lane for DM messages */
|
|
127
109
|
dmLane: z.ZodDefault<z.ZodString>;
|
|
128
|
-
/** Lane for group mentions */
|
|
129
110
|
mentionLane: z.ZodDefault<z.ZodString>;
|
|
130
|
-
/** Lane for follow-up messages */
|
|
131
111
|
followupLane: z.ZodDefault<z.ZodString>;
|
|
132
|
-
/** Lane for scheduled/background tasks */
|
|
133
112
|
scheduledLane: z.ZodDefault<z.ZodString>;
|
|
134
113
|
}, z.core.$strict>;
|
|
135
114
|
export type LaneAssignmentConfig = z.infer<typeof LaneAssignmentConfigSchema>;
|
|
@@ -140,105 +119,68 @@ export type LaneAssignmentConfig = z.infer<typeof LaneAssignmentConfigSchema>;
|
|
|
140
119
|
* and caps global concurrency across all sessions.
|
|
141
120
|
*/
|
|
142
121
|
export declare const QueueConfigSchema: z.ZodObject<{
|
|
143
|
-
/** Whether the command queue is enabled */
|
|
144
122
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
145
|
-
/** Maximum concurrent agent executions across all sessions */
|
|
146
123
|
maxConcurrentSessions: z.ZodDefault<z.ZodNumber>;
|
|
147
|
-
/** Milliseconds before an idle lane is garbage collected (default: 10 minutes) */
|
|
148
124
|
cleanupIdleMs: z.ZodDefault<z.ZodNumber>;
|
|
149
|
-
/** Default queue mode for channels without per-channel override */
|
|
150
125
|
defaultMode: z.ZodDefault<z.ZodEnum<{
|
|
151
126
|
followup: "followup";
|
|
152
127
|
collect: "collect";
|
|
153
128
|
steer: "steer";
|
|
154
129
|
"steer+followup": "steer+followup";
|
|
155
130
|
}>>;
|
|
156
|
-
/** Default overflow config for channels without per-channel override */
|
|
157
131
|
defaultOverflow: z.ZodDefault<z.ZodObject<{
|
|
158
|
-
/** Maximum queued messages per session before overflow triggers */
|
|
159
132
|
maxDepth: z.ZodDefault<z.ZodNumber>;
|
|
160
|
-
/** What to do when maxDepth is reached */
|
|
161
133
|
policy: z.ZodDefault<z.ZodEnum<{
|
|
162
134
|
"drop-old": "drop-old";
|
|
163
135
|
"drop-new": "drop-new";
|
|
164
136
|
summarize: "summarize";
|
|
165
137
|
}>>;
|
|
166
138
|
}, z.core.$strict>>;
|
|
167
|
-
/** Default debounce delay in ms for channels without per-channel override */
|
|
168
139
|
defaultDebounceMs: z.ZodDefault<z.ZodNumber>;
|
|
169
|
-
/** Per-channel-type queue configuration overrides */
|
|
170
140
|
perChannel: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
171
|
-
/** How rapid messages during active execution are handled */
|
|
172
141
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
173
142
|
followup: "followup";
|
|
174
143
|
collect: "collect";
|
|
175
144
|
steer: "steer";
|
|
176
145
|
"steer+followup": "steer+followup";
|
|
177
146
|
}>>;
|
|
178
|
-
/** Overflow prevention settings */
|
|
179
147
|
overflow: z.ZodDefault<z.ZodObject<{
|
|
180
|
-
/** Maximum queued messages per session before overflow triggers */
|
|
181
148
|
maxDepth: z.ZodDefault<z.ZodNumber>;
|
|
182
|
-
/** What to do when maxDepth is reached */
|
|
183
149
|
policy: z.ZodDefault<z.ZodEnum<{
|
|
184
150
|
"drop-old": "drop-old";
|
|
185
151
|
"drop-new": "drop-new";
|
|
186
152
|
summarize: "summarize";
|
|
187
153
|
}>>;
|
|
188
154
|
}, z.core.$strict>>;
|
|
189
|
-
/** Debounce delay in ms (0 = disabled). Waits this long after last message before processing. */
|
|
190
155
|
debounceMs: z.ZodDefault<z.ZodNumber>;
|
|
191
156
|
}, z.core.$strict>>>;
|
|
192
|
-
/** Global debounce buffer configuration (ingress-layer coalescing before queue entry) */
|
|
193
157
|
debounce: z.ZodDefault<z.ZodObject<{
|
|
194
|
-
/** Per-channel debounce window in milliseconds. 0 = disabled. */
|
|
195
158
|
windowMs: z.ZodDefault<z.ZodNumber>;
|
|
196
|
-
/** Maximum messages to buffer per session before forced flush */
|
|
197
159
|
maxBufferedMessages: z.ZodDefault<z.ZodNumber>;
|
|
198
|
-
/** First message in burst triggers immediately (skip debounce) */
|
|
199
160
|
firstMessageImmediate: z.ZodDefault<z.ZodBoolean>;
|
|
200
161
|
}, z.core.$strict>>;
|
|
201
|
-
/** Per-channel-type debounce buffer overrides */
|
|
202
162
|
perChannelDebounce: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
203
|
-
/** Per-channel debounce window in milliseconds. 0 = disabled. */
|
|
204
163
|
windowMs: z.ZodDefault<z.ZodNumber>;
|
|
205
|
-
/** Maximum messages to buffer per session before forced flush */
|
|
206
164
|
maxBufferedMessages: z.ZodDefault<z.ZodNumber>;
|
|
207
|
-
/** First message in burst triggers immediately (skip debounce) */
|
|
208
165
|
firstMessageImmediate: z.ZodDefault<z.ZodBoolean>;
|
|
209
166
|
}, z.core.$strict>>>;
|
|
210
|
-
/** Follow-up trigger configuration for continuation runs */
|
|
211
167
|
followup: z.ZodDefault<z.ZodObject<{
|
|
212
|
-
/** Maximum follow-up runs in a single chain (prevents infinite loops) */
|
|
213
168
|
maxFollowupRuns: z.ZodDefault<z.ZodNumber>;
|
|
214
|
-
/** Whether to trigger follow-up on compaction flush events */
|
|
215
169
|
followupOnCompaction: z.ZodDefault<z.ZodBoolean>;
|
|
216
170
|
}, z.core.$strict>>;
|
|
217
|
-
/** Priority lane definitions. Default: high(3), normal(5), low(2) = total concurrency 10 */
|
|
218
171
|
priorityLanes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
219
|
-
/** Lane name (e.g., "high", "normal", "low") */
|
|
220
172
|
name: z.ZodString;
|
|
221
|
-
/** Concurrency limit for this lane */
|
|
222
173
|
concurrency: z.ZodDefault<z.ZodNumber>;
|
|
223
|
-
/** Scheduling priority (higher number = higher priority) */
|
|
224
174
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
225
|
-
/** Age threshold in ms after which tasks emit aging promotion events (0 = disabled) */
|
|
226
175
|
agingPromotionMs: z.ZodDefault<z.ZodNumber>;
|
|
227
176
|
}, z.core.$strict>>>;
|
|
228
|
-
/** Lane assignment rules */
|
|
229
177
|
laneAssignment: z.ZodDefault<z.ZodObject<{
|
|
230
|
-
/** Default lane for messages that don't match any rule */
|
|
231
178
|
defaultLane: z.ZodDefault<z.ZodString>;
|
|
232
|
-
/** Lane for DM messages */
|
|
233
179
|
dmLane: z.ZodDefault<z.ZodString>;
|
|
234
|
-
/** Lane for group mentions */
|
|
235
180
|
mentionLane: z.ZodDefault<z.ZodString>;
|
|
236
|
-
/** Lane for follow-up messages */
|
|
237
181
|
followupLane: z.ZodDefault<z.ZodString>;
|
|
238
|
-
/** Lane for scheduled/background tasks */
|
|
239
182
|
scheduledLane: z.ZodDefault<z.ZodString>;
|
|
240
183
|
}, z.core.$strict>>;
|
|
241
|
-
/** Enable priority lane scheduling (false = single global gate) */
|
|
242
184
|
priorityEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
243
185
|
}, z.core.$strict>;
|
|
244
186
|
export type QueueConfig = z.infer<typeof QueueConfigSchema>;
|
|
@@ -9,9 +9,7 @@ import { z } from "zod";
|
|
|
9
9
|
* Example template: "{agent.emoji} {model|short}{?thinking: | think}"
|
|
10
10
|
*/
|
|
11
11
|
export declare const ResponsePrefixConfigSchema: z.ZodObject<{
|
|
12
|
-
/** Template string for the prefix; empty string disables the feature */
|
|
13
12
|
template: z.ZodDefault<z.ZodString>;
|
|
14
|
-
/** Where to insert the rendered template relative to the response body */
|
|
15
13
|
position: z.ZodDefault<z.ZodEnum<{
|
|
16
14
|
prepend: "prepend";
|
|
17
15
|
append: "append";
|
|
@@ -9,17 +9,11 @@ import { z } from "zod";
|
|
|
9
9
|
* errors, and markdown/HTML parse errors.
|
|
10
10
|
*/
|
|
11
11
|
export declare const RetryConfigSchema: z.ZodObject<{
|
|
12
|
-
/** Maximum retry attempts per message send (default: 3) */
|
|
13
12
|
maxAttempts: z.ZodDefault<z.ZodNumber>;
|
|
14
|
-
/** Minimum delay in ms before first retry (default: 500) */
|
|
15
13
|
minDelayMs: z.ZodDefault<z.ZodNumber>;
|
|
16
|
-
/** Maximum delay in ms (cap for exponential backoff, default: 30_000) */
|
|
17
14
|
maxDelayMs: z.ZodDefault<z.ZodNumber>;
|
|
18
|
-
/** Add random jitter to delay (prevents thundering herd, default: true) */
|
|
19
15
|
jitter: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
-
/** Respect platform-provided retry_after headers (default: true) */
|
|
21
16
|
respectRetryAfter: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
-
/** Fall back to plain text on markdown/HTML parse errors (default: true) */
|
|
23
17
|
markdownFallback: z.ZodDefault<z.ZodBoolean>;
|
|
24
18
|
}, z.core.$strict>;
|
|
25
19
|
export type RetryConfig = z.infer<typeof RetryConfigSchema>;
|
|
@@ -1,89 +1,50 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const HeartbeatConfigSchema: z.ZodObject<{
|
|
3
|
-
/** Enable periodic heartbeat checks */
|
|
4
3
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
5
|
-
/** Heartbeat interval in milliseconds */
|
|
6
4
|
intervalMs: z.ZodDefault<z.ZodNumber>;
|
|
7
|
-
/** Show OK status in heartbeat output */
|
|
8
5
|
showOk: z.ZodDefault<z.ZodBoolean>;
|
|
9
|
-
/** Show alerts in heartbeat output */
|
|
10
6
|
showAlerts: z.ZodDefault<z.ZodBoolean>;
|
|
11
|
-
/** Consecutive failures before alerting */
|
|
12
7
|
alertThreshold: z.ZodDefault<z.ZodNumber>;
|
|
13
|
-
/** Minimum ms between alerts for the same source */
|
|
14
8
|
alertCooldownMs: z.ZodDefault<z.ZodNumber>;
|
|
15
|
-
/** Max ms a heartbeat tick can run before stuck detection */
|
|
16
9
|
staleMs: z.ZodDefault<z.ZodNumber>;
|
|
17
10
|
}, z.core.$strict>;
|
|
18
11
|
export type HeartbeatConfig = z.infer<typeof HeartbeatConfigSchema>;
|
|
19
12
|
export declare const SchedulerConfigSchema: z.ZodObject<{
|
|
20
|
-
/** Cron job scheduling configuration */
|
|
21
13
|
cron: z.ZodDefault<z.ZodObject<{
|
|
22
|
-
/** Enable cron job scheduling */
|
|
23
14
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
24
|
-
/** Directory for cron job state persistence */
|
|
25
15
|
storeDir: z.ZodDefault<z.ZodString>;
|
|
26
|
-
/** Maximum concurrent cron job runs */
|
|
27
16
|
maxConcurrentRuns: z.ZodDefault<z.ZodNumber>;
|
|
28
|
-
/** Default timezone for cron expressions (empty = UTC) */
|
|
29
17
|
defaultTimezone: z.ZodDefault<z.ZodString>;
|
|
30
|
-
/** Maximum number of cron jobs allowed (0 = unlimited) */
|
|
31
18
|
maxJobs: z.ZodDefault<z.ZodNumber>;
|
|
32
|
-
/** Maximum consecutive errors before auto-suspending a cron job (0 = never suspend) */
|
|
33
19
|
maxConsecutiveErrors: z.ZodDefault<z.ZodNumber>;
|
|
34
20
|
}, z.core.$strict>>;
|
|
35
|
-
/** Heartbeat monitoring configuration */
|
|
36
21
|
heartbeat: z.ZodDefault<z.ZodObject<{
|
|
37
|
-
/** Enable periodic heartbeat checks */
|
|
38
22
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
39
|
-
/** Heartbeat interval in milliseconds */
|
|
40
23
|
intervalMs: z.ZodDefault<z.ZodNumber>;
|
|
41
|
-
/** Show OK status in heartbeat output */
|
|
42
24
|
showOk: z.ZodDefault<z.ZodBoolean>;
|
|
43
|
-
/** Show alerts in heartbeat output */
|
|
44
25
|
showAlerts: z.ZodDefault<z.ZodBoolean>;
|
|
45
|
-
/** Consecutive failures before alerting */
|
|
46
26
|
alertThreshold: z.ZodDefault<z.ZodNumber>;
|
|
47
|
-
/** Minimum ms between alerts for the same source */
|
|
48
27
|
alertCooldownMs: z.ZodDefault<z.ZodNumber>;
|
|
49
|
-
/** Max ms a heartbeat tick can run before stuck detection */
|
|
50
28
|
staleMs: z.ZodDefault<z.ZodNumber>;
|
|
51
29
|
}, z.core.$strict>>;
|
|
52
|
-
/** Quiet hours configuration */
|
|
53
30
|
quietHours: z.ZodDefault<z.ZodObject<{
|
|
54
|
-
/** Enable quiet hours (suppress non-critical automation) */
|
|
55
31
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
56
|
-
/** Quiet hours start time (HH:MM format) */
|
|
57
32
|
start: z.ZodDefault<z.ZodString>;
|
|
58
|
-
/** Quiet hours end time (HH:MM format) */
|
|
59
33
|
end: z.ZodDefault<z.ZodString>;
|
|
60
|
-
/** Timezone for quiet hours (empty = system local) */
|
|
61
34
|
timezone: z.ZodDefault<z.ZodString>;
|
|
62
|
-
/** Allow critical-priority items to bypass quiet hours */
|
|
63
35
|
criticalBypass: z.ZodDefault<z.ZodBoolean>;
|
|
64
36
|
}, z.core.$strict>>;
|
|
65
|
-
/** Execution safety configuration */
|
|
66
37
|
execution: z.ZodDefault<z.ZodObject<{
|
|
67
|
-
/** Directory for execution lock files */
|
|
68
38
|
lockDir: z.ZodDefault<z.ZodString>;
|
|
69
|
-
/** Lock stale timeout in milliseconds */
|
|
70
39
|
staleMs: z.ZodDefault<z.ZodNumber>;
|
|
71
|
-
/** Lock update interval in milliseconds */
|
|
72
40
|
updateMs: z.ZodDefault<z.ZodNumber>;
|
|
73
|
-
/** Directory for execution log files */
|
|
74
41
|
logDir: z.ZodDefault<z.ZodString>;
|
|
75
|
-
/** Maximum log file size in bytes */
|
|
76
42
|
maxLogBytes: z.ZodDefault<z.ZodNumber>;
|
|
77
|
-
/** Maximum lines to keep in ring-buffer log */
|
|
78
43
|
keepLines: z.ZodDefault<z.ZodNumber>;
|
|
79
44
|
}, z.core.$strict>>;
|
|
80
|
-
/** Task extraction from conversations */
|
|
81
45
|
tasks: z.ZodDefault<z.ZodObject<{
|
|
82
|
-
/** Enable task extraction from conversations */
|
|
83
46
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
84
|
-
/** Minimum confidence threshold for extracted tasks (0-1) */
|
|
85
47
|
confidenceThreshold: z.ZodDefault<z.ZodNumber>;
|
|
86
|
-
/** Directory for task state persistence */
|
|
87
48
|
storeDir: z.ZodDefault<z.ZodString>;
|
|
88
49
|
}, z.core.$strict>>;
|
|
89
50
|
}, z.core.$strict>;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/** Per-agent secret access configuration. */
|
|
3
3
|
export declare const AgentSecretsConfigSchema: z.ZodObject<{
|
|
4
|
-
/** Glob patterns for allowed secret names. Empty array = unrestricted access (backward compat). */
|
|
5
4
|
allow: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6
5
|
}, z.core.$strict>;
|
|
7
6
|
export type AgentSecretsConfig = z.infer<typeof AgentSecretsConfigSchema>;
|
|
8
7
|
/** Global encrypted secrets store configuration. */
|
|
9
8
|
export declare const SecretsConfigSchema: z.ZodObject<{
|
|
10
|
-
/** Enable encrypted secrets store. Default false for backward compat. */
|
|
11
9
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
-
/** Path to secrets.db relative to dataDir. */
|
|
13
10
|
dbPath: z.ZodDefault<z.ZodString>;
|
|
14
11
|
}, z.core.$strict>;
|
|
15
12
|
export type SecretsConfig = z.infer<typeof SecretsConfigSchema>;
|
|
@@ -6,19 +6,13 @@ import { z } from "zod";
|
|
|
6
6
|
* and action confirmation requirements.
|
|
7
7
|
*/
|
|
8
8
|
export declare const PermissionConfigSchema: z.ZodObject<{
|
|
9
|
-
/** Enable Node.js --permission flag enforcement */
|
|
10
9
|
enableNodePermissions: z.ZodDefault<z.ZodBoolean>;
|
|
11
|
-
/** Allowed filesystem read/write paths */
|
|
12
10
|
allowedFsPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
13
|
-
/** Allowed network hosts for outbound connections */
|
|
14
11
|
allowedNetHosts: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
15
12
|
}, z.core.$strict>;
|
|
16
13
|
export declare const ActionConfirmationConfigSchema: z.ZodObject<{
|
|
17
|
-
/** Require human confirmation for destructive actions */
|
|
18
14
|
requireForDestructive: z.ZodDefault<z.ZodBoolean>;
|
|
19
|
-
/** Require human confirmation for sensitive (non-destructive but important) actions */
|
|
20
15
|
requireForSensitive: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
-
/** Actions that are always auto-approved (bypass confirmation) */
|
|
22
16
|
autoApprove: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
23
17
|
}, z.core.$strict>;
|
|
24
18
|
export declare const AgentToAgentConfigSchema: z.ZodObject<{
|
|
@@ -74,29 +68,18 @@ export declare const AgentToAgentConfigSchema: z.ZodObject<{
|
|
|
74
68
|
}, z.core.$strict>;
|
|
75
69
|
export type AgentToAgentConfig = z.infer<typeof AgentToAgentConfigSchema>;
|
|
76
70
|
export declare const SecurityConfigSchema: z.ZodObject<{
|
|
77
|
-
/** Enable structured log redaction of sensitive fields */
|
|
78
71
|
logRedaction: z.ZodDefault<z.ZodBoolean>;
|
|
79
|
-
/** Enable audit event logging */
|
|
80
72
|
auditLog: z.ZodDefault<z.ZodBoolean>;
|
|
81
|
-
/** Node.js permission model settings */
|
|
82
73
|
permission: z.ZodDefault<z.ZodObject<{
|
|
83
|
-
/** Enable Node.js --permission flag enforcement */
|
|
84
74
|
enableNodePermissions: z.ZodDefault<z.ZodBoolean>;
|
|
85
|
-
/** Allowed filesystem read/write paths */
|
|
86
75
|
allowedFsPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
87
|
-
/** Allowed network hosts for outbound connections */
|
|
88
76
|
allowedNetHosts: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
89
77
|
}, z.core.$strict>>;
|
|
90
|
-
/** Action confirmation requirements */
|
|
91
78
|
actionConfirmation: z.ZodDefault<z.ZodObject<{
|
|
92
|
-
/** Require human confirmation for destructive actions */
|
|
93
79
|
requireForDestructive: z.ZodDefault<z.ZodBoolean>;
|
|
94
|
-
/** Require human confirmation for sensitive (non-destructive but important) actions */
|
|
95
80
|
requireForSensitive: z.ZodDefault<z.ZodBoolean>;
|
|
96
|
-
/** Actions that are always auto-approved (bypass confirmation) */
|
|
97
81
|
autoApprove: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
98
82
|
}, z.core.$strict>>;
|
|
99
|
-
/** Agent-to-agent session messaging policy */
|
|
100
83
|
agentToAgent: z.ZodDefault<z.ZodObject<{
|
|
101
84
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
102
85
|
maxPingPongTurns: z.ZodDefault<z.ZodNumber>;
|
|
@@ -148,7 +131,6 @@ export declare const SecurityConfigSchema: z.ZodObject<{
|
|
|
148
131
|
stuckKillThresholdMs: z.ZodDefault<z.ZodNumber>;
|
|
149
132
|
}, z.core.$strict>>;
|
|
150
133
|
}, z.core.$strict>>;
|
|
151
|
-
/** Encrypted secrets store configuration */
|
|
152
134
|
secrets: z.ZodDefault<z.ZodObject<{
|
|
153
135
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
154
136
|
dbPath: z.ZodDefault<z.ZodString>;
|
|
@@ -14,18 +14,13 @@ export declare const SendActionSchema: z.ZodDefault<z.ZodEnum<{
|
|
|
14
14
|
* present for the rule to be meaningful.
|
|
15
15
|
*/
|
|
16
16
|
export declare const SendPolicyRuleSchema: z.ZodObject<{
|
|
17
|
-
/** Channel ID to match (exact string match, or omit for any) */
|
|
18
17
|
channelId: z.ZodOptional<z.ZodString>;
|
|
19
|
-
/** Chat type to match: dm, group, thread, channel, forum (or omit for any) */
|
|
20
18
|
chatType: z.ZodOptional<z.ZodString>;
|
|
21
|
-
/** Channel type to match: telegram, discord, slack, whatsapp (or omit for any) */
|
|
22
19
|
channelType: z.ZodOptional<z.ZodString>;
|
|
23
|
-
/** Action when this rule matches */
|
|
24
20
|
action: z.ZodDefault<z.ZodEnum<{
|
|
25
21
|
allow: "allow";
|
|
26
22
|
deny: "deny";
|
|
27
23
|
}>>;
|
|
28
|
-
/** Human-readable description for config readability */
|
|
29
24
|
description: z.ZodOptional<z.ZodString>;
|
|
30
25
|
}, z.core.$strict>;
|
|
31
26
|
/**
|
|
@@ -36,27 +31,19 @@ export declare const SendPolicyRuleSchema: z.ZodObject<{
|
|
|
36
31
|
* order; first match wins. If no rule matches, the defaultAction applies.
|
|
37
32
|
*/
|
|
38
33
|
export declare const SendPolicyConfigSchema: z.ZodObject<{
|
|
39
|
-
/** Enable send policy enforcement (default: true) */
|
|
40
34
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
41
|
-
/** Default action when no rules match */
|
|
42
35
|
defaultAction: z.ZodDefault<z.ZodEnum<{
|
|
43
36
|
allow: "allow";
|
|
44
37
|
deny: "deny";
|
|
45
38
|
}>>;
|
|
46
|
-
/** Ordered list of rules (first match wins) */
|
|
47
39
|
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
48
|
-
/** Channel ID to match (exact string match, or omit for any) */
|
|
49
40
|
channelId: z.ZodOptional<z.ZodString>;
|
|
50
|
-
/** Chat type to match: dm, group, thread, channel, forum (or omit for any) */
|
|
51
41
|
chatType: z.ZodOptional<z.ZodString>;
|
|
52
|
-
/** Channel type to match: telegram, discord, slack, whatsapp (or omit for any) */
|
|
53
42
|
channelType: z.ZodOptional<z.ZodString>;
|
|
54
|
-
/** Action when this rule matches */
|
|
55
43
|
action: z.ZodDefault<z.ZodEnum<{
|
|
56
44
|
allow: "allow";
|
|
57
45
|
deny: "deny";
|
|
58
46
|
}>>;
|
|
59
|
-
/** Human-readable description for config readability */
|
|
60
47
|
description: z.ZodOptional<z.ZodString>;
|
|
61
48
|
}, z.core.$strict>>>;
|
|
62
49
|
}, z.core.$strict>;
|
|
@@ -8,19 +8,14 @@ import { z } from "zod";
|
|
|
8
8
|
* to human-readable aliases (operator-managed mapping).
|
|
9
9
|
*/
|
|
10
10
|
export declare const SenderTrustDisplayConfigSchema: z.ZodObject<{
|
|
11
|
-
/** Whether sender identity is included in the message envelope */
|
|
12
11
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
13
|
-
/** Display mode: raw (platform ID), hash (HMAC prefix), or alias (operator-defined name) */
|
|
14
12
|
displayMode: z.ZodDefault<z.ZodEnum<{
|
|
15
13
|
raw: "raw";
|
|
16
14
|
alias: "alias";
|
|
17
15
|
hash: "hash";
|
|
18
16
|
}>>;
|
|
19
|
-
/** Number of hex characters to show from the HMAC digest (4-16) */
|
|
20
17
|
hashPrefix: z.ZodDefault<z.ZodNumber>;
|
|
21
|
-
/** SecretManager key for the HMAC secret; empty string uses agentId as fallback */
|
|
22
18
|
hashSecretRef: z.ZodDefault<z.ZodString>;
|
|
23
|
-
/** Sender ID to human-readable alias mapping (used when displayMode is "alias") */
|
|
24
19
|
aliases: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
25
20
|
}, z.core.$strict>;
|
|
26
21
|
export type SenderTrustDisplayConfig = z.infer<typeof SenderTrustDisplayConfigSchema>;
|
|
@@ -24,6 +24,7 @@ import { MonitoringConfigSchema } from "./schema-observability.js";
|
|
|
24
24
|
import { ProvidersConfigSchema } from "./schema-providers.js";
|
|
25
25
|
import { SchedulerConfigSchema } from "./schema-scheduler.js";
|
|
26
26
|
import { SecurityConfigSchema } from "./schema-security.js";
|
|
27
|
+
import { ToolingConfigSchema } from "./schema-tooling.js";
|
|
27
28
|
// ---------------------------------------------------------------------------
|
|
28
29
|
// Section schema lookup
|
|
29
30
|
// ---------------------------------------------------------------------------
|
|
@@ -46,6 +47,7 @@ const SECTION_SCHEMAS = {
|
|
|
46
47
|
providers: ProvidersConfigSchema,
|
|
47
48
|
messages: MessagesConfigSchema,
|
|
48
49
|
approvals: ApprovalsConfigSchema,
|
|
50
|
+
tooling: ToolingConfigSchema,
|
|
49
51
|
};
|
|
50
52
|
// ---------------------------------------------------------------------------
|
|
51
53
|
// Full schema cache
|
|
@@ -4,15 +4,10 @@ import { z } from "zod";
|
|
|
4
4
|
* Controls limits, behavior, and eligibility for Markdown instruction skills.
|
|
5
5
|
*/
|
|
6
6
|
export declare const PromptSkillsConfigSchema: z.ZodObject<{
|
|
7
|
-
/** Maximum skill body length in characters (default: 20000) */
|
|
8
7
|
maxBodyLength: z.ZodDefault<z.ZodNumber>;
|
|
9
|
-
/** Enable dynamic context -- shell command execution in skill bodies (default: false) */
|
|
10
8
|
enableDynamicContext: z.ZodDefault<z.ZodBoolean>;
|
|
11
|
-
/** Maximum prompt skills auto-injected per request (default: 3) */
|
|
12
9
|
maxAutoInject: z.ZodDefault<z.ZodNumber>;
|
|
13
|
-
/** Skill names allowed for this agent. Empty array = allow all discovered skills. */
|
|
14
10
|
allowedSkills: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
15
|
-
/** Skill names denied for this agent. Applied after allowedSkills filter. */
|
|
16
11
|
deniedSkills: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
17
12
|
}, z.core.$strict>;
|
|
18
13
|
/**
|
|
@@ -23,51 +18,26 @@ export declare const PromptSkillsConfigSchema: z.ZodObject<{
|
|
|
23
18
|
* per-deployment without a rebuild.
|
|
24
19
|
*/
|
|
25
20
|
declare const ToolDiscoverySchema: z.ZodObject<{
|
|
26
|
-
/** Minimum BM25 score as FRACTION OF TOP MATCH (0..1). Default 0.8.
|
|
27
|
-
* As of 2026-04-23, BM25 scores are normalized to [0, 1] before this floor
|
|
28
|
-
* applies, matching the semantics of minHybridScore. A value of 0.8 means
|
|
29
|
-
* "return only tools scoring >= 80% of the top match". Values > 1.0 fail
|
|
30
|
-
* validation at config load (stale raw-score overrides would produce zero
|
|
31
|
-
* matches under the new normalized semantics; fail-fast surfaces the
|
|
32
|
-
* error immediately per AGENTS.md §3.4). See design §5.6:
|
|
33
|
-
* .planning/design/discover-tools-bm25-fallback-fix.md */
|
|
34
21
|
minBm25Score: z.ZodDefault<z.ZodNumber>;
|
|
35
|
-
/** Minimum combined score (0..1 normalized) for hybrid mode. Default 0.35. */
|
|
36
22
|
minHybridScore: z.ZodDefault<z.ZodNumber>;
|
|
37
23
|
}, z.core.$strict>;
|
|
38
24
|
export declare const SkillsConfigSchema: z.ZodObject<{
|
|
39
|
-
/** Directories to scan for SKILL.md files (relative to data dir) */
|
|
40
25
|
discoveryPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
41
|
-
/** Built-in tool toggles (enabled/disabled by config) */
|
|
42
26
|
builtinTools: z.ZodDefault<z.ZodObject<{
|
|
43
|
-
/** Read file contents with line numbers and pagination */
|
|
44
27
|
read: z.ZodDefault<z.ZodBoolean>;
|
|
45
|
-
/** Write or overwrite files; auto-creates parent directories */
|
|
46
28
|
write: z.ZodDefault<z.ZodBoolean>;
|
|
47
|
-
/** Surgical search-and-replace on files (exact text match) */
|
|
48
29
|
edit: z.ZodDefault<z.ZodBoolean>;
|
|
49
|
-
/** Cell-level Jupyter notebook editing */
|
|
50
30
|
notebookEdit: z.ZodDefault<z.ZodBoolean>;
|
|
51
|
-
/** Regex search across files (ripgrep-based, respects .gitignore). Requires `rg` system binary. */
|
|
52
31
|
grep: z.ZodDefault<z.ZodBoolean>;
|
|
53
|
-
/** Find files by glob pattern (fd-based, respects .gitignore). Requires `fd` system binary. */
|
|
54
32
|
find: z.ZodDefault<z.ZodBoolean>;
|
|
55
|
-
/** List directory contents alphabetically, including dotfiles */
|
|
56
33
|
ls: z.ZodDefault<z.ZodBoolean>;
|
|
57
|
-
/** Shell command execution with foreground/background modes */
|
|
58
34
|
exec: z.ZodDefault<z.ZodBoolean>;
|
|
59
|
-
/** Background process management (list, kill, status, log) */
|
|
60
35
|
process: z.ZodDefault<z.ZodBoolean>;
|
|
61
|
-
/** Web search API integration */
|
|
62
36
|
webSearch: z.ZodDefault<z.ZodBoolean>;
|
|
63
|
-
/** URL content fetching */
|
|
64
37
|
webFetch: z.ZodDefault<z.ZodBoolean>;
|
|
65
|
-
/** Headless browser control (requires Playwright/Chromium) */
|
|
66
38
|
browser: z.ZodDefault<z.ZodBoolean>;
|
|
67
39
|
}, z.core.$strict>>;
|
|
68
|
-
/** Tool policy: controls which tools are available per agent */
|
|
69
40
|
toolPolicy: z.ZodDefault<z.ZodObject<{
|
|
70
|
-
/** Named profile: controls baseline tool set */
|
|
71
41
|
profile: z.ZodDefault<z.ZodEnum<{
|
|
72
42
|
minimal: "minimal";
|
|
73
43
|
coding: "coding";
|
|
@@ -75,68 +45,35 @@ export declare const SkillsConfigSchema: z.ZodObject<{
|
|
|
75
45
|
supervisor: "supervisor";
|
|
76
46
|
full: "full";
|
|
77
47
|
}>>;
|
|
78
|
-
/** Additional tools to allow beyond the profile (tool names or group:xxx) */
|
|
79
48
|
allow: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
80
|
-
/** Tools to deny even if in the profile (tool names or group:xxx) */
|
|
81
49
|
deny: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
82
50
|
}, z.core.$strict>>;
|
|
83
|
-
/** Prompt-based skill configuration (Markdown instruction skills) */
|
|
84
51
|
promptSkills: z.ZodDefault<z.ZodObject<{
|
|
85
|
-
/** Maximum skill body length in characters (default: 20000) */
|
|
86
52
|
maxBodyLength: z.ZodDefault<z.ZodNumber>;
|
|
87
|
-
/** Enable dynamic context -- shell command execution in skill bodies (default: false) */
|
|
88
53
|
enableDynamicContext: z.ZodDefault<z.ZodBoolean>;
|
|
89
|
-
/** Maximum prompt skills auto-injected per request (default: 3) */
|
|
90
54
|
maxAutoInject: z.ZodDefault<z.ZodNumber>;
|
|
91
|
-
/** Skill names allowed for this agent. Empty array = allow all discovered skills. */
|
|
92
55
|
allowedSkills: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
93
|
-
/** Skill names denied for this agent. Applied after allowedSkills filter. */
|
|
94
56
|
deniedSkills: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
95
57
|
}, z.core.$strict>>;
|
|
96
|
-
/** Runtime eligibility filtering: exclude skills whose OS/binary/env prerequisites are not met */
|
|
97
58
|
runtimeEligibility: z.ZodDefault<z.ZodObject<{
|
|
98
|
-
/** Enable runtime eligibility filtering based on os, binary, and env var prerequisites (default: true). */
|
|
99
59
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
100
60
|
}, z.core.$strict>>;
|
|
101
|
-
/** Content scanning: detect dangerous patterns in skill bodies at load time */
|
|
102
61
|
contentScanning: z.ZodDefault<z.ZodObject<{
|
|
103
|
-
/** Enable content scanning at skill load time (default: true). */
|
|
104
62
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
105
|
-
/** Block skill loading when CRITICAL findings are present (default: true). */
|
|
106
63
|
blockOnCritical: z.ZodDefault<z.ZodBoolean>;
|
|
107
64
|
}, z.core.$strict>>;
|
|
108
|
-
/** Exec tool OS-level sandbox configuration */
|
|
109
65
|
execSandbox: z.ZodDefault<z.ZodObject<{
|
|
110
|
-
/**
|
|
111
|
-
* Whether OS-level sandboxing is active for exec tool commands.
|
|
112
|
-
* - "always": sandbox is enabled; if the sandbox binary is unavailable the
|
|
113
|
-
* exec tool logs a warning and runs unsandboxed (graceful fallback).
|
|
114
|
-
* - "never": sandbox is unconditionally disabled.
|
|
115
|
-
*/
|
|
116
66
|
enabled: z.ZodDefault<z.ZodEnum<{
|
|
117
67
|
never: "never";
|
|
118
68
|
always: "always";
|
|
119
69
|
}>>;
|
|
120
|
-
/** Additional read-only paths to expose inside the sandbox (e.g., shared data dirs). */
|
|
121
70
|
readOnlyAllowPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
122
71
|
}, z.core.$strict>>;
|
|
123
|
-
/** discover_tools score-floor thresholds (BM25 + hybrid). */
|
|
124
72
|
toolDiscovery: z.ZodDefault<z.ZodObject<{
|
|
125
|
-
/** Minimum BM25 score as FRACTION OF TOP MATCH (0..1). Default 0.8.
|
|
126
|
-
* As of 2026-04-23, BM25 scores are normalized to [0, 1] before this floor
|
|
127
|
-
* applies, matching the semantics of minHybridScore. A value of 0.8 means
|
|
128
|
-
* "return only tools scoring >= 80% of the top match". Values > 1.0 fail
|
|
129
|
-
* validation at config load (stale raw-score overrides would produce zero
|
|
130
|
-
* matches under the new normalized semantics; fail-fast surfaces the
|
|
131
|
-
* error immediately per AGENTS.md §3.4). See design §5.6:
|
|
132
|
-
* .planning/design/discover-tools-bm25-fallback-fix.md */
|
|
133
73
|
minBm25Score: z.ZodDefault<z.ZodNumber>;
|
|
134
|
-
/** Minimum combined score (0..1 normalized) for hybrid mode. Default 0.35. */
|
|
135
74
|
minHybridScore: z.ZodDefault<z.ZodNumber>;
|
|
136
75
|
}, z.core.$strict>>;
|
|
137
|
-
/** Enable file watching for automatic skill reload (default: true). */
|
|
138
76
|
watchEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
139
|
-
/** Debounce interval in milliseconds for file change coalescing (default: 400). */
|
|
140
77
|
watchDebounceMs: z.ZodDefault<z.ZodNumber>;
|
|
141
78
|
}, z.core.$strict>;
|
|
142
79
|
/** Inferred skills configuration type. */
|
|
@@ -94,13 +94,12 @@ const ExecSandboxSchema = z.strictObject({
|
|
|
94
94
|
*/
|
|
95
95
|
const ToolDiscoverySchema = z.strictObject({
|
|
96
96
|
/** Minimum BM25 score as FRACTION OF TOP MATCH (0..1). Default 0.8.
|
|
97
|
-
*
|
|
98
|
-
*
|
|
97
|
+
* BM25 scores are normalized to [0, 1] before this floor applies,
|
|
98
|
+
* matching the semantics of minHybridScore. A value of 0.8 means
|
|
99
99
|
* "return only tools scoring >= 80% of the top match". Values > 1.0 fail
|
|
100
100
|
* validation at config load (stale raw-score overrides would produce zero
|
|
101
101
|
* matches under the new normalized semantics; fail-fast surfaces the
|
|
102
|
-
* error immediately per AGENTS.md §3.4).
|
|
103
|
-
* .planning/design/discover-tools-bm25-fallback-fix.md */
|
|
102
|
+
* error immediately per AGENTS.md §3.4). */
|
|
104
103
|
minBm25Score: z.number().min(0).max(1).default(0.8),
|
|
105
104
|
/** Minimum combined score (0..1 normalized) for hybrid mode. Default 0.35. */
|
|
106
105
|
minHybridScore: z.number().min(0).max(1).default(0.35),
|