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
|
@@ -6,15 +6,10 @@ import { z } from "zod";
|
|
|
6
6
|
* states, and soft/hard stall detection thresholds.
|
|
7
7
|
*/
|
|
8
8
|
export declare const LifecycleReactionsTimingSchema: z.ZodObject<{
|
|
9
|
-
/** Debounce period (ms) before committing a phase transition emoji */
|
|
10
9
|
debounceMs: z.ZodDefault<z.ZodNumber>;
|
|
11
|
-
/** How long (ms) to hold done emoji before cleanup */
|
|
12
10
|
holdDoneMs: z.ZodDefault<z.ZodNumber>;
|
|
13
|
-
/** How long (ms) to hold error emoji before cleanup */
|
|
14
11
|
holdErrorMs: z.ZodDefault<z.ZodNumber>;
|
|
15
|
-
/** Soft stall warning threshold (ms) -- emits reaction:stall_detected with severity "soft" */
|
|
16
12
|
stallSoftMs: z.ZodDefault<z.ZodNumber>;
|
|
17
|
-
/** Hard stall warning threshold (ms) -- emits reaction:stall_detected with severity "hard" */
|
|
18
13
|
stallHardMs: z.ZodDefault<z.ZodNumber>;
|
|
19
14
|
}, z.core.$strict>;
|
|
20
15
|
/**
|
|
@@ -24,9 +19,7 @@ export declare const LifecycleReactionsTimingSchema: z.ZodObject<{
|
|
|
24
19
|
* without affecting the global default.
|
|
25
20
|
*/
|
|
26
21
|
export declare const LifecycleReactionsPerChannelSchema: z.ZodObject<{
|
|
27
|
-
/** Override enabled state for this channel (omit to use global) */
|
|
28
22
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
-
/** Override emoji tier for this channel (omit to use global) */
|
|
30
23
|
emojiTier: z.ZodOptional<z.ZodEnum<{
|
|
31
24
|
custom: "custom";
|
|
32
25
|
unicode: "unicode";
|
|
@@ -41,32 +34,21 @@ export declare const LifecycleReactionsPerChannelSchema: z.ZodObject<{
|
|
|
41
34
|
* Emoji tier selects between simple Unicode, platform-native, or custom emoji.
|
|
42
35
|
*/
|
|
43
36
|
export declare const LifecycleReactionsConfigSchema: z.ZodObject<{
|
|
44
|
-
/** Whether lifecycle reactions are enabled globally */
|
|
45
37
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
46
|
-
/** Emoji set to use: unicode (cross-platform), platform (channel-native), or custom */
|
|
47
38
|
emojiTier: z.ZodDefault<z.ZodEnum<{
|
|
48
39
|
custom: "custom";
|
|
49
40
|
unicode: "unicode";
|
|
50
41
|
platform: "platform";
|
|
51
42
|
}>>;
|
|
52
|
-
/** Timing thresholds for debounce, hold, and stall detection */
|
|
53
43
|
timing: z.ZodDefault<z.ZodObject<{
|
|
54
|
-
/** Debounce period (ms) before committing a phase transition emoji */
|
|
55
44
|
debounceMs: z.ZodDefault<z.ZodNumber>;
|
|
56
|
-
/** How long (ms) to hold done emoji before cleanup */
|
|
57
45
|
holdDoneMs: z.ZodDefault<z.ZodNumber>;
|
|
58
|
-
/** How long (ms) to hold error emoji before cleanup */
|
|
59
46
|
holdErrorMs: z.ZodDefault<z.ZodNumber>;
|
|
60
|
-
/** Soft stall warning threshold (ms) -- emits reaction:stall_detected with severity "soft" */
|
|
61
47
|
stallSoftMs: z.ZodDefault<z.ZodNumber>;
|
|
62
|
-
/** Hard stall warning threshold (ms) -- emits reaction:stall_detected with severity "hard" */
|
|
63
48
|
stallHardMs: z.ZodDefault<z.ZodNumber>;
|
|
64
49
|
}, z.core.$strict>>;
|
|
65
|
-
/** Per-channel overrides keyed by channel type (e.g., "telegram", "discord") */
|
|
66
50
|
perChannel: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
67
|
-
/** Override enabled state for this channel (omit to use global) */
|
|
68
51
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
-
/** Override emoji tier for this channel (omit to use global) */
|
|
70
52
|
emojiTier: z.ZodOptional<z.ZodEnum<{
|
|
71
53
|
custom: "custom";
|
|
72
54
|
unicode: "unicode";
|
|
@@ -20,19 +20,12 @@ import { z } from "zod";
|
|
|
20
20
|
* - autoTags: extra tags applied to extracted memories
|
|
21
21
|
*/
|
|
22
22
|
export declare const MemoryReviewConfigSchema: z.ZodObject<{
|
|
23
|
-
/** Enable periodic memory review for this agent. Default: false (opt-in). */
|
|
24
23
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
25
|
-
/** Cron schedule for review runs. Default: daily at 2 AM UTC. */
|
|
26
24
|
schedule: z.ZodDefault<z.ZodString>;
|
|
27
|
-
/** Minimum messages in a session to qualify for review. */
|
|
28
25
|
minMessages: z.ZodDefault<z.ZodNumber>;
|
|
29
|
-
/** Maximum sessions to process per review cycle. */
|
|
30
26
|
maxSessionsPerRun: z.ZodDefault<z.ZodNumber>;
|
|
31
|
-
/** Maximum LLM response tokens for the review call. */
|
|
32
27
|
maxReviewTokens: z.ZodDefault<z.ZodNumber>;
|
|
33
|
-
/** Semantic similarity threshold (0-1) for deduplication. */
|
|
34
28
|
dedupThreshold: z.ZodDefault<z.ZodNumber>;
|
|
35
|
-
/** Extra tags applied to all extracted memory entries. */
|
|
36
29
|
autoTags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
37
30
|
}, z.core.$strict>;
|
|
38
31
|
export type MemoryReviewConfig = z.infer<typeof MemoryReviewConfigSchema>;
|
|
@@ -6,42 +6,26 @@ import { z } from "zod";
|
|
|
6
6
|
* embedding model selection, compaction, and retention policies.
|
|
7
7
|
*/
|
|
8
8
|
export declare const CompactionConfigSchema: z.ZodObject<{
|
|
9
|
-
/** Whether automatic compaction is enabled */
|
|
10
9
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
11
|
-
/** Minimum number of entries before compaction triggers */
|
|
12
10
|
threshold: z.ZodDefault<z.ZodNumber>;
|
|
13
|
-
/** Maximum entries to keep after compaction */
|
|
14
11
|
targetSize: z.ZodDefault<z.ZodNumber>;
|
|
15
12
|
}, z.core.$strict>;
|
|
16
13
|
export declare const RetentionConfigSchema: z.ZodObject<{
|
|
17
|
-
/** Maximum age of entries in days (0 = no limit) */
|
|
18
14
|
maxAgeDays: z.ZodDefault<z.ZodNumber>;
|
|
19
|
-
/** Maximum total entries (0 = no limit) */
|
|
20
15
|
maxEntries: z.ZodDefault<z.ZodNumber>;
|
|
21
16
|
}, z.core.$strict>;
|
|
22
17
|
export declare const MemoryConfigSchema: z.ZodObject<{
|
|
23
|
-
/** Path to the SQLite database file (resolved relative to dataDir if not absolute) */
|
|
24
18
|
dbPath: z.ZodDefault<z.ZodString>;
|
|
25
|
-
/** Enable WAL mode for better concurrent read performance */
|
|
26
19
|
walMode: z.ZodDefault<z.ZodBoolean>;
|
|
27
|
-
/** Embedding model identifier */
|
|
28
20
|
embeddingModel: z.ZodDefault<z.ZodString>;
|
|
29
|
-
/** Embedding vector dimensions */
|
|
30
21
|
embeddingDimensions: z.ZodDefault<z.ZodNumber>;
|
|
31
|
-
/** Compaction settings */
|
|
32
22
|
compaction: z.ZodDefault<z.ZodObject<{
|
|
33
|
-
/** Whether automatic compaction is enabled */
|
|
34
23
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
35
|
-
/** Minimum number of entries before compaction triggers */
|
|
36
24
|
threshold: z.ZodDefault<z.ZodNumber>;
|
|
37
|
-
/** Maximum entries to keep after compaction */
|
|
38
25
|
targetSize: z.ZodDefault<z.ZodNumber>;
|
|
39
26
|
}, z.core.$strict>>;
|
|
40
|
-
/** Retention policy */
|
|
41
27
|
retention: z.ZodDefault<z.ZodObject<{
|
|
42
|
-
/** Maximum age of entries in days (0 = no limit) */
|
|
43
28
|
maxAgeDays: z.ZodDefault<z.ZodNumber>;
|
|
44
|
-
/** Maximum total entries (0 = no limit) */
|
|
45
29
|
maxEntries: z.ZodDefault<z.ZodNumber>;
|
|
46
30
|
}, z.core.$strict>>;
|
|
47
31
|
}, z.core.$strict>;
|
|
@@ -8,21 +8,13 @@ import { z } from "zod";
|
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
10
|
export declare const MessagesConfigSchema: z.ZodObject<{
|
|
11
|
-
/** Maximum outbound message length in characters (0 = no limit, default: 0) */
|
|
12
11
|
maxOutboundLength: z.ZodDefault<z.ZodNumber>;
|
|
13
|
-
/** Whether to split long messages into multiple parts (default: true) */
|
|
14
12
|
splitLongMessages: z.ZodDefault<z.ZodBoolean>;
|
|
15
|
-
/** Character limit per split part (default: 4000) */
|
|
16
13
|
splitMaxChars: z.ZodDefault<z.ZodNumber>;
|
|
17
|
-
/** Separator string between split parts (default: double newline) */
|
|
18
14
|
splitSeparator: z.ZodDefault<z.ZodString>;
|
|
19
|
-
/** Enable typing indicator during agent processing (default: true) */
|
|
20
15
|
showTypingIndicator: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
-
/** Prefix for system messages shown to users (default: "[System] ") */
|
|
22
16
|
systemMessagePrefix: z.ZodDefault<z.ZodString>;
|
|
23
|
-
/** Enable read receipts where supported (default: false) */
|
|
24
17
|
readReceipts: z.ZodDefault<z.ZodBoolean>;
|
|
25
|
-
/** Maximum message.send/reply tool calls per agent execution (0 = no limit, default: 3) */
|
|
26
18
|
maxSendsPerExecution: z.ZodDefault<z.ZodNumber>;
|
|
27
19
|
}, z.core.$strict>;
|
|
28
20
|
/** Inferred messages configuration type. */
|
|
@@ -12,34 +12,19 @@ import { z } from "zod";
|
|
|
12
12
|
* A single model alias mapping a friendly name to a provider + model ID pair.
|
|
13
13
|
*/
|
|
14
14
|
export declare const ModelAliasSchema: z.ZodObject<{
|
|
15
|
-
/** Short alias name (e.g., "claude", "gpt4") */
|
|
16
15
|
alias: z.ZodString;
|
|
17
|
-
/** Provider identifier (e.g., "anthropic", "openai") */
|
|
18
16
|
provider: z.ZodString;
|
|
19
|
-
/** Full model identifier at the provider (e.g., "claude-sonnet-4-5-20250929") */
|
|
20
17
|
modelId: z.ZodString;
|
|
21
18
|
}, z.core.$strict>;
|
|
22
19
|
export declare const ModelsConfigSchema: z.ZodObject<{
|
|
23
|
-
/** Enable automatic model scanning on startup (default: false) */
|
|
24
20
|
scanOnStartup: z.ZodDefault<z.ZodBoolean>;
|
|
25
|
-
/** Model scan timeout in milliseconds (default: 30000) */
|
|
26
21
|
scanTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
27
|
-
/** Friendly model aliases (e.g., "claude" -> anthropic/claude-sonnet-4) */
|
|
28
22
|
aliases: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
29
|
-
/** Short alias name (e.g., "claude", "gpt4") */
|
|
30
23
|
alias: z.ZodString;
|
|
31
|
-
/** Provider identifier (e.g., "anthropic", "openai") */
|
|
32
24
|
provider: z.ZodString;
|
|
33
|
-
/** Full model identifier at the provider (e.g., "claude-sonnet-4-5-20250929") */
|
|
34
25
|
modelId: z.ZodString;
|
|
35
26
|
}, z.core.$strict>>>;
|
|
36
|
-
/** Default model identifier. When a per-agent config sets model: "default", this value is used.
|
|
37
|
-
* When empty (the default), runtime resolution picks the mid-tier cost
|
|
38
|
-
* model from the resolved provider's pi-ai catalog (resolveOperationDefaults). */
|
|
39
27
|
defaultModel: z.ZodDefault<z.ZodString>;
|
|
40
|
-
/** Default provider. When a per-agent config sets provider: "default", this value is used.
|
|
41
|
-
* When empty (the default), runtime resolution picks the most-populated
|
|
42
|
-
* native provider from the pi-ai catalog (heuristic). */
|
|
43
28
|
defaultProvider: z.ZodDefault<z.ZodString>;
|
|
44
29
|
}, z.core.$strict>;
|
|
45
30
|
/** Inferred models configuration type. */
|
|
@@ -8,18 +8,13 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
export declare const NotificationConfigSchema: z.ZodObject<{
|
|
11
|
-
/** Whether proactive notifications are enabled for this agent. */
|
|
12
11
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
13
|
-
/** Maximum notifications per hour (rolling window). Must be positive. */
|
|
14
12
|
maxPerHour: z.ZodDefault<z.ZodNumber>;
|
|
15
|
-
/** Deduplication window in milliseconds. 0 disables dedup. */
|
|
16
13
|
dedupeWindowMs: z.ZodDefault<z.ZodNumber>;
|
|
17
|
-
/** Preferred delivery channel. Falls back to session-based resolution if unset. */
|
|
18
14
|
primaryChannel: z.ZodOptional<z.ZodObject<{
|
|
19
15
|
channelType: z.ZodString;
|
|
20
16
|
channelId: z.ZodString;
|
|
21
17
|
}, z.core.$strict>>;
|
|
22
|
-
/** Maximum notification chain depth (0 = no chaining). */
|
|
23
18
|
maxChainDepth: z.ZodDefault<z.ZodNumber>;
|
|
24
19
|
}, z.core.$strict>;
|
|
25
20
|
export type NotificationConfig = z.infer<typeof NotificationConfigSchema>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* OAuth credential storage configuration.
|
|
4
|
+
*
|
|
5
|
+
* Forward-room for Phases 8-11 to add clientId, scopes, profileSelectors
|
|
6
|
+
* etc. without scattering OAuth config across the codebase. Today only
|
|
7
|
+
* the storage-backend selector is meaningful.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
|
+
export declare const OAuthConfigSchema: z.ZodObject<{
|
|
12
|
+
storage: z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
file: "file";
|
|
14
|
+
encrypted: "encrypted";
|
|
15
|
+
}>>;
|
|
16
|
+
}, z.core.$strict>;
|
|
17
|
+
/** Inferred OAuth configuration type. */
|
|
18
|
+
export type OAuthConfig = z.infer<typeof OAuthConfigSchema>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
/**
|
|
4
|
+
* OAuth credential storage configuration.
|
|
5
|
+
*
|
|
6
|
+
* Forward-room for Phases 8-11 to add clientId, scopes, profileSelectors
|
|
7
|
+
* etc. without scattering OAuth config across the codebase. Today only
|
|
8
|
+
* the storage-backend selector is meaningful.
|
|
9
|
+
*
|
|
10
|
+
* @module
|
|
11
|
+
*/
|
|
12
|
+
export const OAuthConfigSchema = z.strictObject({
|
|
13
|
+
/**
|
|
14
|
+
* Storage backend for refreshed OAuth credentials.
|
|
15
|
+
* - "file" (default): plaintext JSON at ${dataDir}/auth-profiles.json with mode 0o600
|
|
16
|
+
* - "encrypted": AES-256-GCM SQLite (requires SECRETS_MASTER_KEY)
|
|
17
|
+
*/
|
|
18
|
+
storage: z.enum(["file", "encrypted"]).default("file"),
|
|
19
|
+
});
|
|
@@ -12,39 +12,26 @@ import { z } from "zod";
|
|
|
12
12
|
* Security update and git repo monitoring
|
|
13
13
|
*/
|
|
14
14
|
declare const DiskMonitorSchema: z.ZodObject<{
|
|
15
|
-
/** Whether disk space monitoring is enabled. */
|
|
16
15
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
17
|
-
/** Filesystem paths to monitor. */
|
|
18
16
|
paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
19
|
-
/** Alert when usage exceeds this percentage. */
|
|
20
17
|
thresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
21
18
|
}, z.core.$strict>;
|
|
22
19
|
declare const ResourceMonitorSchema: z.ZodObject<{
|
|
23
|
-
/** Whether CPU/memory monitoring is enabled. */
|
|
24
20
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
25
|
-
/** Alert when CPU usage exceeds this percentage. */
|
|
26
21
|
cpuThresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
27
|
-
/** Alert when memory usage exceeds this percentage. */
|
|
28
22
|
memoryThresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
29
23
|
}, z.core.$strict>;
|
|
30
24
|
declare const SystemdMonitorSchema: z.ZodObject<{
|
|
31
|
-
/** Whether systemd service monitoring is enabled. */
|
|
32
25
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
33
|
-
/** Specific services to monitor (empty = check all failed). */
|
|
34
26
|
services: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
35
27
|
}, z.core.$strict>;
|
|
36
28
|
declare const SecurityUpdateMonitorSchema: z.ZodObject<{
|
|
37
|
-
/** Whether security update monitoring is enabled. */
|
|
38
29
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
39
|
-
/** Only check for security updates (not all updates). */
|
|
40
30
|
securityOnly: z.ZodDefault<z.ZodBoolean>;
|
|
41
31
|
}, z.core.$strict>;
|
|
42
32
|
declare const GitMonitorSchema: z.ZodObject<{
|
|
43
|
-
/** Whether git repository monitoring is enabled (default: off). */
|
|
44
33
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
45
|
-
/** Absolute paths to git repositories to monitor. */
|
|
46
34
|
repositories: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
47
|
-
/** Check remote for unpushed commits. */
|
|
48
35
|
checkRemote: z.ZodDefault<z.ZodBoolean>;
|
|
49
36
|
}, z.core.$strict>;
|
|
50
37
|
/**
|
|
@@ -54,45 +41,27 @@ declare const GitMonitorSchema: z.ZodObject<{
|
|
|
54
41
|
* produces a valid MonitoringConfig.
|
|
55
42
|
*/
|
|
56
43
|
export declare const MonitoringConfigSchema: z.ZodObject<{
|
|
57
|
-
/** Disk space monitoring. */
|
|
58
44
|
disk: z.ZodDefault<z.ZodObject<{
|
|
59
|
-
/** Whether disk space monitoring is enabled. */
|
|
60
45
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
61
|
-
/** Filesystem paths to monitor. */
|
|
62
46
|
paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
63
|
-
/** Alert when usage exceeds this percentage. */
|
|
64
47
|
thresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
65
48
|
}, z.core.$strict>>;
|
|
66
|
-
/** CPU and memory monitoring. */
|
|
67
49
|
resources: z.ZodDefault<z.ZodObject<{
|
|
68
|
-
/** Whether CPU/memory monitoring is enabled. */
|
|
69
50
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
70
|
-
/** Alert when CPU usage exceeds this percentage. */
|
|
71
51
|
cpuThresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
72
|
-
/** Alert when memory usage exceeds this percentage. */
|
|
73
52
|
memoryThresholdPercent: z.ZodDefault<z.ZodNumber>;
|
|
74
53
|
}, z.core.$strict>>;
|
|
75
|
-
/** systemd service health monitoring. */
|
|
76
54
|
systemd: z.ZodDefault<z.ZodObject<{
|
|
77
|
-
/** Whether systemd service monitoring is enabled. */
|
|
78
55
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
79
|
-
/** Specific services to monitor (empty = check all failed). */
|
|
80
56
|
services: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
81
57
|
}, z.core.$strict>>;
|
|
82
|
-
/** Security update monitoring. */
|
|
83
58
|
securityUpdates: z.ZodDefault<z.ZodObject<{
|
|
84
|
-
/** Whether security update monitoring is enabled. */
|
|
85
59
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
86
|
-
/** Only check for security updates (not all updates). */
|
|
87
60
|
securityOnly: z.ZodDefault<z.ZodBoolean>;
|
|
88
61
|
}, z.core.$strict>>;
|
|
89
|
-
/** Git repository monitoring. */
|
|
90
62
|
git: z.ZodDefault<z.ZodObject<{
|
|
91
|
-
/** Whether git repository monitoring is enabled (default: off). */
|
|
92
63
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
93
|
-
/** Absolute paths to git repositories to monitor. */
|
|
94
64
|
repositories: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
95
|
-
/** Check remote for unpushed commits. */
|
|
96
65
|
checkRemote: z.ZodDefault<z.ZodBoolean>;
|
|
97
66
|
}, z.core.$strict>>;
|
|
98
67
|
}, z.core.$strict>;
|
|
@@ -111,11 +80,8 @@ export type GitMonitorConfig = z.infer<typeof GitMonitorSchema>;
|
|
|
111
80
|
* Observability Persistence Store.
|
|
112
81
|
*/
|
|
113
82
|
declare const ObservabilityPersistenceSchema: z.ZodObject<{
|
|
114
|
-
/** Whether observability persistence is enabled. */
|
|
115
83
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
116
|
-
/** Number of days to retain observability data before pruning. */
|
|
117
84
|
retentionDays: z.ZodDefault<z.ZodNumber>;
|
|
118
|
-
/** Interval in milliseconds between channel health snapshots. */
|
|
119
85
|
snapshotIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
120
86
|
}, z.core.$strict>;
|
|
121
87
|
/**
|
|
@@ -124,13 +90,9 @@ declare const ObservabilityPersistenceSchema: z.ZodObject<{
|
|
|
124
90
|
* Has sensible defaults so an empty object produces a valid ObservabilityConfig.
|
|
125
91
|
*/
|
|
126
92
|
export declare const ObservabilityConfigSchema: z.ZodObject<{
|
|
127
|
-
/** Persistence layer settings. */
|
|
128
93
|
persistence: z.ZodDefault<z.ZodObject<{
|
|
129
|
-
/** Whether observability persistence is enabled. */
|
|
130
94
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
131
|
-
/** Number of days to retain observability data before pruning. */
|
|
132
95
|
retentionDays: z.ZodDefault<z.ZodNumber>;
|
|
133
|
-
/** Interval in milliseconds between channel health snapshots. */
|
|
134
96
|
snapshotIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
135
97
|
}, z.core.$strict>>;
|
|
136
98
|
}, z.core.$strict>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Output retention configuration schema.
|
|
4
|
+
*
|
|
5
|
+
* Per-class retention for files in the agent's output directory. The
|
|
6
|
+
* housekeeper (packages/daemon/src/wiring/setup-output-retention.ts)
|
|
7
|
+
* runs at intervalMs, scans output/, deletes files whose age exceeds
|
|
8
|
+
* the class-specific retentionMs.
|
|
9
|
+
*
|
|
10
|
+
* The housekeeper consumes JSONL details.visibleDelivery for offline
|
|
11
|
+
* analysis; per-class retention bounds the JSONL persistence cost.
|
|
12
|
+
*
|
|
13
|
+
* Per AGENTS §6.4: schema follows `z.strictObject` + `.default()` + `z.infer`
|
|
14
|
+
* (mirrors schema-background-tasks.ts). Wired into AppConfigSchema as a
|
|
15
|
+
* top-level section because output retention is daemon-level (not per-agent
|
|
16
|
+
* like backgroundTasks): a single housekeeper scans the workspace's output/
|
|
17
|
+
* tree across all agents.
|
|
18
|
+
*
|
|
19
|
+
* @module schema-output-retention
|
|
20
|
+
*/
|
|
21
|
+
/** Per-class retention. Each class is a directory under `output/`. */
|
|
22
|
+
declare const RetentionClassSchema: z.ZodObject<{
|
|
23
|
+
retentionMs: z.ZodNumber;
|
|
24
|
+
}, z.core.$strict>;
|
|
25
|
+
export declare const OutputRetentionConfigSchema: z.ZodObject<{
|
|
26
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
27
|
+
intervalMs: z.ZodDefault<z.ZodNumber>;
|
|
28
|
+
classes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
29
|
+
retentionMs: z.ZodNumber;
|
|
30
|
+
}, z.core.$strict>>>;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
export type OutputRetentionConfig = z.infer<typeof OutputRetentionConfigSchema>;
|
|
33
|
+
export type RetentionClass = z.infer<typeof RetentionClassSchema>;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
/**
|
|
4
|
+
* Output retention configuration schema.
|
|
5
|
+
*
|
|
6
|
+
* Per-class retention for files in the agent's output directory. The
|
|
7
|
+
* housekeeper (packages/daemon/src/wiring/setup-output-retention.ts)
|
|
8
|
+
* runs at intervalMs, scans output/, deletes files whose age exceeds
|
|
9
|
+
* the class-specific retentionMs.
|
|
10
|
+
*
|
|
11
|
+
* The housekeeper consumes JSONL details.visibleDelivery for offline
|
|
12
|
+
* analysis; per-class retention bounds the JSONL persistence cost.
|
|
13
|
+
*
|
|
14
|
+
* Per AGENTS §6.4: schema follows `z.strictObject` + `.default()` + `z.infer`
|
|
15
|
+
* (mirrors schema-background-tasks.ts). Wired into AppConfigSchema as a
|
|
16
|
+
* top-level section because output retention is daemon-level (not per-agent
|
|
17
|
+
* like backgroundTasks): a single housekeeper scans the workspace's output/
|
|
18
|
+
* tree across all agents.
|
|
19
|
+
*
|
|
20
|
+
* @module schema-output-retention
|
|
21
|
+
*/
|
|
22
|
+
/** Per-class retention. Each class is a directory under `output/`. */
|
|
23
|
+
const RetentionClassSchema = z.strictObject({
|
|
24
|
+
/** Time-to-live for files in this class, in ms. Must be a positive integer. */
|
|
25
|
+
retentionMs: z.number().int().positive(),
|
|
26
|
+
});
|
|
27
|
+
export const OutputRetentionConfigSchema = z.strictObject({
|
|
28
|
+
/** Whether the housekeeper is enabled. Default true. */
|
|
29
|
+
enabled: z.boolean().default(true),
|
|
30
|
+
/** How often the housekeeper scans output/ for expired files. Default 1h. */
|
|
31
|
+
intervalMs: z.number().int().positive().default(3_600_000),
|
|
32
|
+
/**
|
|
33
|
+
* Per-class retention. Keys are class names (subdirectory names under
|
|
34
|
+
* output/); values are `{ retentionMs }`. Default classes:
|
|
35
|
+
* - "attachment" — channel-delivered attachments (caption + bytes), 7 days
|
|
36
|
+
* - "chart" — generated chart images, 30 days
|
|
37
|
+
* - "transcript" — STT transcript files, 90 days
|
|
38
|
+
* - "default" — fallback for files in output/ not matching a class, 14 days
|
|
39
|
+
*/
|
|
40
|
+
classes: z
|
|
41
|
+
.record(z.string(), RetentionClassSchema)
|
|
42
|
+
.default({
|
|
43
|
+
attachment: { retentionMs: 7 * 24 * 3_600_000 },
|
|
44
|
+
chart: { retentionMs: 30 * 24 * 3_600_000 },
|
|
45
|
+
transcript: { retentionMs: 90 * 24 * 3_600_000 },
|
|
46
|
+
default: { retentionMs: 14 * 24 * 3_600_000 },
|
|
47
|
+
}),
|
|
48
|
+
});
|
|
@@ -6,11 +6,8 @@ import { z } from "zod";
|
|
|
6
6
|
* execution order, and given arbitrary plugin-specific configuration.
|
|
7
7
|
*/
|
|
8
8
|
export declare const PluginEntrySchema: z.ZodObject<{
|
|
9
|
-
/** Whether this plugin is active (default: true) */
|
|
10
9
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
11
|
-
/** Hook execution priority: higher runs first (default: 0, range: -100 to 100) */
|
|
12
10
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
13
|
-
/** Plugin-specific configuration (opaque to the registry) */
|
|
14
11
|
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15
12
|
}, z.core.$strict>;
|
|
16
13
|
/**
|
|
@@ -19,15 +16,10 @@ export declare const PluginEntrySchema: z.ZodObject<{
|
|
|
19
16
|
* Controls the global plugin system toggle and per-plugin settings.
|
|
20
17
|
*/
|
|
21
18
|
export declare const PluginsConfigSchema: z.ZodObject<{
|
|
22
|
-
/** Global plugin system toggle (default: true) */
|
|
23
19
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
24
|
-
/** Per-plugin configuration keyed by plugin ID */
|
|
25
20
|
plugins: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
26
|
-
/** Whether this plugin is active (default: true) */
|
|
27
21
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
28
|
-
/** Hook execution priority: higher runs first (default: 0, range: -100 to 100) */
|
|
29
22
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
30
|
-
/** Plugin-specific configuration (opaque to the registry) */
|
|
31
23
|
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
32
24
|
}, z.core.$strict>>>;
|
|
33
25
|
}, z.core.$strict>;
|
|
@@ -11,13 +11,9 @@ import { z } from "zod";
|
|
|
11
11
|
*/
|
|
12
12
|
/** Cost per million tokens for a user-defined model. */
|
|
13
13
|
export declare const ModelCostSchema: z.ZodObject<{
|
|
14
|
-
/** Input cost per million tokens (USD). */
|
|
15
14
|
input: z.ZodOptional<z.ZodNumber>;
|
|
16
|
-
/** Output cost per million tokens (USD). */
|
|
17
15
|
output: z.ZodOptional<z.ZodNumber>;
|
|
18
|
-
/** Cache read cost per million tokens (USD). */
|
|
19
16
|
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
20
|
-
/** Cache write cost per million tokens (USD). */
|
|
21
17
|
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
22
18
|
}, z.core.$strict>;
|
|
23
19
|
/** Inferred model cost type. */
|
|
@@ -31,33 +27,21 @@ export type ModelCost = z.infer<typeof ModelCostSchema>;
|
|
|
31
27
|
* `sdkCompat` uses loose z.record (forward-compatible with SDK changes).
|
|
32
28
|
*/
|
|
33
29
|
export declare const UserModelSchema: z.ZodObject<{
|
|
34
|
-
/** Model identifier at the provider (must be non-empty). */
|
|
35
30
|
id: z.ZodString;
|
|
36
|
-
/** Human-readable display name. */
|
|
37
31
|
name: z.ZodOptional<z.ZodString>;
|
|
38
|
-
/** Whether this model supports extended thinking / reasoning. Default: false. */
|
|
39
32
|
reasoning: z.ZodDefault<z.ZodBoolean>;
|
|
40
|
-
/** Maximum context window in tokens. */
|
|
41
33
|
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
42
|
-
/** Maximum output tokens. */
|
|
43
34
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
44
|
-
/** Supported input modalities. Default: ["text"]. */
|
|
45
35
|
input: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
46
36
|
text: "text";
|
|
47
37
|
image: "image";
|
|
48
38
|
}>>>;
|
|
49
|
-
/** Cost per million tokens. */
|
|
50
39
|
cost: z.ZodOptional<z.ZodObject<{
|
|
51
|
-
/** Input cost per million tokens (USD). */
|
|
52
40
|
input: z.ZodOptional<z.ZodNumber>;
|
|
53
|
-
/** Output cost per million tokens (USD). */
|
|
54
41
|
output: z.ZodOptional<z.ZodNumber>;
|
|
55
|
-
/** Cache read cost per million tokens (USD). */
|
|
56
42
|
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
57
|
-
/** Cache write cost per million tokens (USD). */
|
|
58
43
|
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
59
44
|
}, z.core.$strict>>;
|
|
60
|
-
/** Comis-domain compatibility flags (strict validation). */
|
|
61
45
|
comisCompat: z.ZodOptional<z.ZodObject<{
|
|
62
46
|
supportsTools: z.ZodOptional<z.ZodBoolean>;
|
|
63
47
|
toolSchemaProfile: z.ZodOptional<z.ZodEnum<{
|
|
@@ -70,7 +54,6 @@ export declare const UserModelSchema: z.ZodObject<{
|
|
|
70
54
|
}>>;
|
|
71
55
|
nativeWebSearchTool: z.ZodOptional<z.ZodBoolean>;
|
|
72
56
|
}, z.core.$strict>>;
|
|
73
|
-
/** SDK pass-through overrides (loose validation for forward-compatibility). */
|
|
74
57
|
sdkCompat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
75
58
|
}, z.core.$strict>;
|
|
76
59
|
/** Inferred user model type. */
|
|
@@ -79,23 +62,14 @@ export type UserModel = z.infer<typeof UserModelSchema>;
|
|
|
79
62
|
* Configuration for a single LLM provider.
|
|
80
63
|
*/
|
|
81
64
|
export declare const ProviderEntrySchema: z.ZodObject<{
|
|
82
|
-
/** Provider type identifier (e.g., "anthropic", "openai", "ollama") */
|
|
83
65
|
type: z.ZodString;
|
|
84
|
-
/** Display name for the provider */
|
|
85
66
|
name: z.ZodDefault<z.ZodString>;
|
|
86
|
-
/** API base URL override */
|
|
87
67
|
baseUrl: z.ZodDefault<z.ZodString>;
|
|
88
|
-
/** SecretManager key name for API key (not the key itself) */
|
|
89
68
|
apiKeyName: z.ZodDefault<z.ZodString>;
|
|
90
|
-
/** Whether this provider is enabled (default: true) */
|
|
91
69
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
92
|
-
/** Request timeout in milliseconds (default: 120000) */
|
|
93
70
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
94
|
-
/** Maximum retries for transient errors (default: 2) */
|
|
95
71
|
maxRetries: z.ZodDefault<z.ZodNumber>;
|
|
96
|
-
/** Custom headers to include in API requests */
|
|
97
72
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
98
|
-
/** Provider-level capability overrides. */
|
|
99
73
|
capabilities: z.ZodDefault<z.ZodObject<{
|
|
100
74
|
providerFamily: z.ZodDefault<z.ZodEnum<{
|
|
101
75
|
default: "default";
|
|
@@ -110,35 +84,22 @@ export declare const ProviderEntrySchema: z.ZodObject<{
|
|
|
110
84
|
}>>;
|
|
111
85
|
transcriptToolCallIdModelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
112
86
|
}, z.core.$strict>>;
|
|
113
|
-
/** User-defined model entries for this provider. */
|
|
114
87
|
models: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
115
|
-
/** Model identifier at the provider (must be non-empty). */
|
|
116
88
|
id: z.ZodString;
|
|
117
|
-
/** Human-readable display name. */
|
|
118
89
|
name: z.ZodOptional<z.ZodString>;
|
|
119
|
-
/** Whether this model supports extended thinking / reasoning. Default: false. */
|
|
120
90
|
reasoning: z.ZodDefault<z.ZodBoolean>;
|
|
121
|
-
/** Maximum context window in tokens. */
|
|
122
91
|
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
123
|
-
/** Maximum output tokens. */
|
|
124
92
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
125
|
-
/** Supported input modalities. Default: ["text"]. */
|
|
126
93
|
input: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
127
94
|
text: "text";
|
|
128
95
|
image: "image";
|
|
129
96
|
}>>>;
|
|
130
|
-
/** Cost per million tokens. */
|
|
131
97
|
cost: z.ZodOptional<z.ZodObject<{
|
|
132
|
-
/** Input cost per million tokens (USD). */
|
|
133
98
|
input: z.ZodOptional<z.ZodNumber>;
|
|
134
|
-
/** Output cost per million tokens (USD). */
|
|
135
99
|
output: z.ZodOptional<z.ZodNumber>;
|
|
136
|
-
/** Cache read cost per million tokens (USD). */
|
|
137
100
|
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
138
|
-
/** Cache write cost per million tokens (USD). */
|
|
139
101
|
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
140
102
|
}, z.core.$strict>>;
|
|
141
|
-
/** Comis-domain compatibility flags (strict validation). */
|
|
142
103
|
comisCompat: z.ZodOptional<z.ZodObject<{
|
|
143
104
|
supportsTools: z.ZodOptional<z.ZodBoolean>;
|
|
144
105
|
toolSchemaProfile: z.ZodOptional<z.ZodEnum<{
|
|
@@ -151,30 +112,19 @@ export declare const ProviderEntrySchema: z.ZodObject<{
|
|
|
151
112
|
}>>;
|
|
152
113
|
nativeWebSearchTool: z.ZodOptional<z.ZodBoolean>;
|
|
153
114
|
}, z.core.$strict>>;
|
|
154
|
-
/** SDK pass-through overrides (loose validation for forward-compatibility). */
|
|
155
115
|
sdkCompat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
156
116
|
}, z.core.$strict>>>;
|
|
157
117
|
}, z.core.$strict>;
|
|
158
118
|
export declare const ProvidersConfigSchema: z.ZodObject<{
|
|
159
|
-
/** Named provider configurations (key = provider name) */
|
|
160
119
|
entries: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
161
|
-
/** Provider type identifier (e.g., "anthropic", "openai", "ollama") */
|
|
162
120
|
type: z.ZodString;
|
|
163
|
-
/** Display name for the provider */
|
|
164
121
|
name: z.ZodDefault<z.ZodString>;
|
|
165
|
-
/** API base URL override */
|
|
166
122
|
baseUrl: z.ZodDefault<z.ZodString>;
|
|
167
|
-
/** SecretManager key name for API key (not the key itself) */
|
|
168
123
|
apiKeyName: z.ZodDefault<z.ZodString>;
|
|
169
|
-
/** Whether this provider is enabled (default: true) */
|
|
170
124
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
171
|
-
/** Request timeout in milliseconds (default: 120000) */
|
|
172
125
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
173
|
-
/** Maximum retries for transient errors (default: 2) */
|
|
174
126
|
maxRetries: z.ZodDefault<z.ZodNumber>;
|
|
175
|
-
/** Custom headers to include in API requests */
|
|
176
127
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
177
|
-
/** Provider-level capability overrides. */
|
|
178
128
|
capabilities: z.ZodDefault<z.ZodObject<{
|
|
179
129
|
providerFamily: z.ZodDefault<z.ZodEnum<{
|
|
180
130
|
default: "default";
|
|
@@ -189,35 +139,22 @@ export declare const ProvidersConfigSchema: z.ZodObject<{
|
|
|
189
139
|
}>>;
|
|
190
140
|
transcriptToolCallIdModelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
191
141
|
}, z.core.$strict>>;
|
|
192
|
-
/** User-defined model entries for this provider. */
|
|
193
142
|
models: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
194
|
-
/** Model identifier at the provider (must be non-empty). */
|
|
195
143
|
id: z.ZodString;
|
|
196
|
-
/** Human-readable display name. */
|
|
197
144
|
name: z.ZodOptional<z.ZodString>;
|
|
198
|
-
/** Whether this model supports extended thinking / reasoning. Default: false. */
|
|
199
145
|
reasoning: z.ZodDefault<z.ZodBoolean>;
|
|
200
|
-
/** Maximum context window in tokens. */
|
|
201
146
|
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
202
|
-
/** Maximum output tokens. */
|
|
203
147
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
204
|
-
/** Supported input modalities. Default: ["text"]. */
|
|
205
148
|
input: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
206
149
|
text: "text";
|
|
207
150
|
image: "image";
|
|
208
151
|
}>>>;
|
|
209
|
-
/** Cost per million tokens. */
|
|
210
152
|
cost: z.ZodOptional<z.ZodObject<{
|
|
211
|
-
/** Input cost per million tokens (USD). */
|
|
212
153
|
input: z.ZodOptional<z.ZodNumber>;
|
|
213
|
-
/** Output cost per million tokens (USD). */
|
|
214
154
|
output: z.ZodOptional<z.ZodNumber>;
|
|
215
|
-
/** Cache read cost per million tokens (USD). */
|
|
216
155
|
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
217
|
-
/** Cache write cost per million tokens (USD). */
|
|
218
156
|
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
219
157
|
}, z.core.$strict>>;
|
|
220
|
-
/** Comis-domain compatibility flags (strict validation). */
|
|
221
158
|
comisCompat: z.ZodOptional<z.ZodObject<{
|
|
222
159
|
supportsTools: z.ZodOptional<z.ZodBoolean>;
|
|
223
160
|
toolSchemaProfile: z.ZodOptional<z.ZodEnum<{
|
|
@@ -230,7 +167,6 @@ export declare const ProvidersConfigSchema: z.ZodObject<{
|
|
|
230
167
|
}>>;
|
|
231
168
|
nativeWebSearchTool: z.ZodOptional<z.ZodBoolean>;
|
|
232
169
|
}, z.core.$strict>>;
|
|
233
|
-
/** SDK pass-through overrides (loose validation for forward-compatibility). */
|
|
234
170
|
sdkCompat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
235
171
|
}, z.core.$strict>>>;
|
|
236
172
|
}, z.core.$strict>>>;
|