comisai 1.0.36 → 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.js +9 -0
- 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 +48 -41
- package/node_modules/@comis/agent/dist/background/background-task-persistence.js +28 -5
- package/node_modules/@comis/agent/dist/background/background-task-types.d.ts +49 -0
- 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-runner.d.ts +10 -1
- package/node_modules/@comis/agent/dist/background/completion-runner.js +98 -15
- package/node_modules/@comis/agent/dist/background/index.d.ts +6 -1
- package/node_modules/@comis/agent/dist/background/index.js +2 -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 +26 -0
- package/node_modules/@comis/agent/dist/bridge/bridge-metrics.js +3 -0
- package/node_modules/@comis/agent/dist/bridge/pi-event-bridge.d.ts +9 -0
- package/node_modules/@comis/agent/dist/bridge/pi-event-bridge.js +73 -2
- 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/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-post-execution.d.ts +48 -4
- package/node_modules/@comis/agent/dist/executor/executor-post-execution.js +134 -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 +25 -4
- 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 +19 -16
- 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/pi-executor.d.ts +8 -2
- package/node_modules/@comis/agent/dist/executor/pi-executor.js +25 -12
- 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/tool-deferral.d.ts +18 -27
- package/node_modules/@comis/agent/dist/executor/tool-deferral.js +29 -38
- 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/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 +16 -2
- 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/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/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/package.json +1 -1
- 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/package.json +1 -1
- 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 +4 -0
- package/node_modules/@comis/core/dist/config/index.js +2 -0
- package/node_modules/@comis/core/dist/config/schema-agent.d.ts +0 -792
- 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 +0 -12
- 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 +0 -18
- 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 -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 +0 -5
- 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 -61
- 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 +41 -38
- package/node_modules/@comis/core/dist/config/schema.js +6 -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 +0 -10
- 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 +5 -0
- 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/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/index.d.ts +2 -0
- package/node_modules/@comis/core/dist/ports/index.js +4 -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/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 +21 -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.js +89 -14
- 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 +1 -1
- package/node_modules/@comis/daemon/dist/rpc/builtin-provider-guard.js +2 -2
- package/node_modules/@comis/daemon/dist/rpc/credential-resolver.js +1 -1
- 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/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 +2 -0
- package/node_modules/@comis/daemon/dist/wiring/index.js +1 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-agents.d.ts +36 -2
- package/node_modules/@comis/daemon/dist/wiring/setup-agents.js +45 -8
- package/node_modules/@comis/daemon/dist/wiring/setup-background-completion-runner.d.ts +28 -9
- package/node_modules/@comis/daemon/dist/wiring/setup-background-completion-runner.js +36 -9
- package/node_modules/@comis/daemon/dist/wiring/setup-background-tasks.js +2 -2
- package/node_modules/@comis/daemon/dist/wiring/setup-channels.d.ts +9 -2
- package/node_modules/@comis/daemon/dist/wiring/setup-channels.js +15 -9
- 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 +20 -15
- package/node_modules/@comis/daemon/dist/wiring/setup-delivery.js +14 -2
- 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-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/webhook/webhook-endpoint.d.ts +0 -4
- package/node_modules/@comis/gateway/package.json +1 -1
- package/node_modules/@comis/infra/package.json +1 -1
- 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/heartbeat/agent-heartbeat-source.d.ts +29 -8
- package/node_modules/@comis/scheduler/dist/heartbeat/agent-heartbeat-source.js +19 -7
- 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/tool-metadata-enforcement.js +1 -1
- package/node_modules/@comis/skills/dist/bridge/tool-metadata-registry.js +4 -4
- package/node_modules/@comis/skills/dist/builtin/exec-tool.d.ts +55 -9
- package/node_modules/@comis/skills/dist/builtin/exec-tool.js +383 -19
- 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 +2 -2
- package/node_modules/@comis/skills/dist/builtin/platform/agents-manage-tool.js +2 -2
- 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 +1 -1
- package/node_modules/@comis/skills/dist/builtin/sandbox/bwrap-provider.js +9 -0
- 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/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/package.json +1 -1
- package/package.json +21 -21
|
@@ -7,9 +7,7 @@ import { z } from "zod";
|
|
|
7
7
|
* file (or even empty object) produces a valid AppConfig.
|
|
8
8
|
*/
|
|
9
9
|
export declare const AppConfigSchema: z.ZodObject<{
|
|
10
|
-
/** Tenant identifier for SaaS multi-tenancy */
|
|
11
10
|
tenantId: z.ZodDefault<z.ZodString>;
|
|
12
|
-
/** Global log level */
|
|
13
11
|
logLevel: z.ZodDefault<z.ZodEnum<{
|
|
14
12
|
error: "error";
|
|
15
13
|
trace: "trace";
|
|
@@ -18,11 +16,8 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
18
16
|
warn: "warn";
|
|
19
17
|
fatal: "fatal";
|
|
20
18
|
}>>;
|
|
21
|
-
/** Base data directory for all persistent storage (default: ~/.comis) */
|
|
22
19
|
dataDir: z.ZodDefault<z.ZodString>;
|
|
23
|
-
/** SDK agent directory for persistent settings (default: ~/.pi/agent) */
|
|
24
20
|
agentDir: z.ZodDefault<z.ZodString>;
|
|
25
|
-
/** Multi-agent configuration map (agent ID -> per-agent config with optional skills) */
|
|
26
21
|
agents: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
27
22
|
name: z.ZodDefault<z.ZodString>;
|
|
28
23
|
model: z.ZodDefault<z.ZodString>;
|
|
@@ -510,7 +505,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
510
505
|
}, z.core.$strict>>;
|
|
511
506
|
oauthProfiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
512
507
|
}, z.core.$strict>>>;
|
|
513
|
-
/** Channel adapter configuration */
|
|
514
508
|
channels: z.ZodDefault<z.ZodObject<{
|
|
515
509
|
telegram: z.ZodDefault<z.ZodObject<{
|
|
516
510
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1082,7 +1076,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1082
1076
|
restartCooldownMs: z.ZodDefault<z.ZodNumber>;
|
|
1083
1077
|
}, z.core.$strict>>;
|
|
1084
1078
|
}, z.core.$strict>>;
|
|
1085
|
-
/** Memory system configuration */
|
|
1086
1079
|
memory: z.ZodDefault<z.ZodObject<{
|
|
1087
1080
|
dbPath: z.ZodDefault<z.ZodString>;
|
|
1088
1081
|
walMode: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1098,7 +1091,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1098
1091
|
maxEntries: z.ZodDefault<z.ZodNumber>;
|
|
1099
1092
|
}, z.core.$strict>>;
|
|
1100
1093
|
}, z.core.$strict>>;
|
|
1101
|
-
/** Security configuration */
|
|
1102
1094
|
security: z.ZodDefault<z.ZodObject<{
|
|
1103
1095
|
logRedaction: z.ZodDefault<z.ZodBoolean>;
|
|
1104
1096
|
auditLog: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1168,7 +1160,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1168
1160
|
dbPath: z.ZodDefault<z.ZodString>;
|
|
1169
1161
|
}, z.core.$strict>>;
|
|
1170
1162
|
}, z.core.$strict>>;
|
|
1171
|
-
/** Multi-agent routing configuration */
|
|
1172
1163
|
routing: z.ZodDefault<z.ZodObject<{
|
|
1173
1164
|
defaultAgentId: z.ZodDefault<z.ZodString>;
|
|
1174
1165
|
bindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -1179,7 +1170,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1179
1170
|
agentId: z.ZodString;
|
|
1180
1171
|
}, z.core.$strict>>>;
|
|
1181
1172
|
}, z.core.$strict>>;
|
|
1182
|
-
/** Daemon process configuration */
|
|
1183
1173
|
daemon: z.ZodDefault<z.ZodObject<{
|
|
1184
1174
|
watchdogIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
1185
1175
|
shutdownTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1218,7 +1208,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1218
1208
|
}, z.core.$strict>]>>;
|
|
1219
1209
|
}, z.core.$strict>>;
|
|
1220
1210
|
}, z.core.$strict>>;
|
|
1221
|
-
/** Scheduler / proactive automation configuration */
|
|
1222
1211
|
scheduler: z.ZodDefault<z.ZodObject<{
|
|
1223
1212
|
cron: z.ZodDefault<z.ZodObject<{
|
|
1224
1213
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1258,7 +1247,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1258
1247
|
storeDir: z.ZodDefault<z.ZodString>;
|
|
1259
1248
|
}, z.core.$strict>>;
|
|
1260
1249
|
}, z.core.$strict>>;
|
|
1261
|
-
/** Gateway HTTPS server configuration */
|
|
1262
1250
|
gateway: z.ZodDefault<z.ZodObject<{
|
|
1263
1251
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1264
1252
|
host: z.ZodDefault<z.ZodString>;
|
|
@@ -1301,7 +1289,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1301
1289
|
windowMs: z.ZodDefault<z.ZodNumber>;
|
|
1302
1290
|
}, z.core.$strict>>;
|
|
1303
1291
|
}, z.core.$strict>>;
|
|
1304
|
-
/** External integrations configuration */
|
|
1305
1292
|
integrations: z.ZodDefault<z.ZodObject<{
|
|
1306
1293
|
braveSearch: z.ZodDefault<z.ZodObject<{
|
|
1307
1294
|
apiKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -1477,7 +1464,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1477
1464
|
}, z.core.$strict>>>;
|
|
1478
1465
|
}, z.core.$strict>>;
|
|
1479
1466
|
}, z.core.$strict>>;
|
|
1480
|
-
/** System monitoring configuration */
|
|
1481
1467
|
monitoring: z.ZodDefault<z.ZodObject<{
|
|
1482
1468
|
disk: z.ZodDefault<z.ZodObject<{
|
|
1483
1469
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1503,7 +1489,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1503
1489
|
checkRemote: z.ZodDefault<z.ZodBoolean>;
|
|
1504
1490
|
}, z.core.$strict>>;
|
|
1505
1491
|
}, z.core.$strict>>;
|
|
1506
|
-
/** Observability persistence configuration */
|
|
1507
1492
|
observability: z.ZodDefault<z.ZodObject<{
|
|
1508
1493
|
persistence: z.ZodDefault<z.ZodObject<{
|
|
1509
1494
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1511,14 +1496,12 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1511
1496
|
snapshotIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
1512
1497
|
}, z.core.$strict>>;
|
|
1513
1498
|
}, z.core.$strict>>;
|
|
1514
|
-
/** OAuth credential storage configuration (storage backend selector) */
|
|
1515
1499
|
oauth: z.ZodDefault<z.ZodObject<{
|
|
1516
1500
|
storage: z.ZodDefault<z.ZodEnum<{
|
|
1517
1501
|
file: "file";
|
|
1518
1502
|
encrypted: "encrypted";
|
|
1519
1503
|
}>>;
|
|
1520
1504
|
}, z.core.$strict>>;
|
|
1521
|
-
/** Plugin system configuration */
|
|
1522
1505
|
plugins: z.ZodDefault<z.ZodObject<{
|
|
1523
1506
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1524
1507
|
plugins: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -1527,7 +1510,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1527
1510
|
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1528
1511
|
}, z.core.$strict>>>;
|
|
1529
1512
|
}, z.core.$strict>>;
|
|
1530
|
-
/** Command queue configuration for session serialization and concurrency control */
|
|
1531
1513
|
queue: z.ZodDefault<z.ZodObject<{
|
|
1532
1514
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1533
1515
|
maxConcurrentSessions: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1593,7 +1575,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1593
1575
|
}, z.core.$strict>>;
|
|
1594
1576
|
priorityEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
1595
1577
|
}, z.core.$strict>>;
|
|
1596
|
-
/** Block streaming and typing indicator configuration */
|
|
1597
1578
|
streaming: z.ZodDefault<z.ZodObject<{
|
|
1598
1579
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1599
1580
|
defaultChunkMode: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1707,7 +1688,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1707
1688
|
}>>>;
|
|
1708
1689
|
}, z.core.$strict>>>;
|
|
1709
1690
|
}, z.core.$strict>>;
|
|
1710
|
-
/** Auto-reply engine: controls whether the agent activates for inbound messages */
|
|
1711
1691
|
autoReplyEngine: z.ZodDefault<z.ZodObject<{
|
|
1712
1692
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1713
1693
|
groupActivation: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1720,7 +1700,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1720
1700
|
maxHistoryInjections: z.ZodDefault<z.ZodNumber>;
|
|
1721
1701
|
maxGroupHistoryMessages: z.ZodDefault<z.ZodNumber>;
|
|
1722
1702
|
}, z.core.$strict>>;
|
|
1723
|
-
/** Send policy: rules-based outbound message gating */
|
|
1724
1703
|
sendPolicy: z.ZodDefault<z.ZodObject<{
|
|
1725
1704
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1726
1705
|
defaultAction: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1738,7 +1717,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1738
1717
|
description: z.ZodOptional<z.ZodString>;
|
|
1739
1718
|
}, z.core.$strict>>>;
|
|
1740
1719
|
}, z.core.$strict>>;
|
|
1741
|
-
/** Embedding provider configuration (local GGUF, OpenAI, auto-selection) */
|
|
1742
1720
|
embedding: z.ZodDefault<z.ZodObject<{
|
|
1743
1721
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1744
1722
|
provider: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1775,7 +1753,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1775
1753
|
}, z.core.$strict>>;
|
|
1776
1754
|
autoReindex: z.ZodDefault<z.ZodBoolean>;
|
|
1777
1755
|
}, z.core.$strict>>;
|
|
1778
|
-
/** Message envelope: enriches inbound messages with provider, timestamp, and elapsed time for LLM context */
|
|
1779
1756
|
envelope: z.ZodDefault<z.ZodObject<{
|
|
1780
1757
|
timezoneMode: z.ZodDefault<z.ZodString>;
|
|
1781
1758
|
timeFormat: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1786,7 +1763,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1786
1763
|
showProvider: z.ZodDefault<z.ZodBoolean>;
|
|
1787
1764
|
elapsedMaxMs: z.ZodDefault<z.ZodNumber>;
|
|
1788
1765
|
}, z.core.$strict>>;
|
|
1789
|
-
/** Browser automation configuration (CDP, headless Chrome) */
|
|
1790
1766
|
browser: z.ZodDefault<z.ZodObject<{
|
|
1791
1767
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1792
1768
|
chromePath: z.ZodOptional<z.ZodString>;
|
|
@@ -1808,7 +1784,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1808
1784
|
downloadsDir: z.ZodOptional<z.ZodString>;
|
|
1809
1785
|
downloadTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1810
1786
|
}, z.core.$strict>>;
|
|
1811
|
-
/** Model catalog and alias configuration */
|
|
1812
1787
|
models: z.ZodDefault<z.ZodObject<{
|
|
1813
1788
|
scanOnStartup: z.ZodDefault<z.ZodBoolean>;
|
|
1814
1789
|
scanTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1820,7 +1795,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1820
1795
|
defaultModel: z.ZodDefault<z.ZodString>;
|
|
1821
1796
|
defaultProvider: z.ZodDefault<z.ZodString>;
|
|
1822
1797
|
}, z.core.$strict>>;
|
|
1823
|
-
/** LLM provider configuration (API keys via SecretManager, endpoints, retries) */
|
|
1824
1798
|
providers: z.ZodDefault<z.ZodObject<{
|
|
1825
1799
|
entries: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1826
1800
|
type: z.ZodString;
|
|
@@ -1877,7 +1851,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1877
1851
|
}, z.core.$strict>>>;
|
|
1878
1852
|
}, z.core.$strict>>>;
|
|
1879
1853
|
}, z.core.$strict>>;
|
|
1880
|
-
/** Messaging UX configuration (splitting, typing indicators, receipts) */
|
|
1881
1854
|
messages: z.ZodDefault<z.ZodObject<{
|
|
1882
1855
|
maxOutboundLength: z.ZodDefault<z.ZodNumber>;
|
|
1883
1856
|
splitLongMessages: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1888,7 +1861,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1888
1861
|
readReceipts: z.ZodDefault<z.ZodBoolean>;
|
|
1889
1862
|
maxSendsPerExecution: z.ZodDefault<z.ZodNumber>;
|
|
1890
1863
|
}, z.core.$strict>>;
|
|
1891
|
-
/** Action approval workflow configuration (rules-based gating) */
|
|
1892
1864
|
approvals: z.ZodDefault<z.ZodObject<{
|
|
1893
1865
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1894
1866
|
defaultMode: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1915,7 +1887,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1915
1887
|
denialCacheTtlMs: z.ZodDefault<z.ZodNumber>;
|
|
1916
1888
|
batchApprovalTtlMs: z.ZodDefault<z.ZodNumber>;
|
|
1917
1889
|
}, z.core.$strict>>;
|
|
1918
|
-
/** Webhook subsystem configuration (path-based routing, HMAC auth, mappings) */
|
|
1919
1890
|
webhooks: z.ZodDefault<z.ZodObject<{
|
|
1920
1891
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1921
1892
|
path: z.ZodDefault<z.ZodString>;
|
|
@@ -1956,7 +1927,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1956
1927
|
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1957
1928
|
}, z.core.$strict>>>;
|
|
1958
1929
|
}, z.core.$strict>>;
|
|
1959
|
-
/** Lifecycle status reactions for agent processing phases */
|
|
1960
1930
|
lifecycleReactions: z.ZodDefault<z.ZodObject<{
|
|
1961
1931
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1962
1932
|
emojiTier: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1980,7 +1950,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1980
1950
|
}>>;
|
|
1981
1951
|
}, z.core.$strict>>>;
|
|
1982
1952
|
}, z.core.$strict>>;
|
|
1983
|
-
/** Response prefix/suffix template injected into agent replies */
|
|
1984
1953
|
responsePrefix: z.ZodDefault<z.ZodObject<{
|
|
1985
1954
|
template: z.ZodDefault<z.ZodString>;
|
|
1986
1955
|
position: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1988,7 +1957,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1988
1957
|
append: "append";
|
|
1989
1958
|
}>>;
|
|
1990
1959
|
}, z.core.$strict>>;
|
|
1991
|
-
/** Crash-safe outbound delivery queue configuration */
|
|
1992
1960
|
deliveryQueue: z.ZodDefault<z.ZodObject<{
|
|
1993
1961
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1994
1962
|
maxQueueDepth: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1999,7 +1967,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
1999
1967
|
drainIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
2000
1968
|
pruneIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
2001
1969
|
}, z.core.$strict>>;
|
|
2002
|
-
/** Session mirroring persistence configuration */
|
|
2003
1970
|
deliveryMirror: z.ZodDefault<z.ZodObject<{
|
|
2004
1971
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2005
1972
|
retentionMs: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2007,7 +1974,13 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
2007
1974
|
maxEntriesPerInjection: z.ZodDefault<z.ZodNumber>;
|
|
2008
1975
|
maxCharsPerInjection: z.ZodDefault<z.ZodNumber>;
|
|
2009
1976
|
}, z.core.$strict>>;
|
|
2010
|
-
|
|
1977
|
+
outputRetention: z.ZodDefault<z.ZodObject<{
|
|
1978
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1979
|
+
intervalMs: z.ZodDefault<z.ZodNumber>;
|
|
1980
|
+
classes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1981
|
+
retentionMs: z.ZodNumber;
|
|
1982
|
+
}, z.core.$strict>>>;
|
|
1983
|
+
}, z.core.$strict>>;
|
|
2011
1984
|
deliveryTiming: z.ZodDefault<z.ZodObject<{
|
|
2012
1985
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
2013
1986
|
custom: "custom";
|
|
@@ -2020,7 +1993,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
2020
1993
|
jitterMs: z.ZodDefault<z.ZodNumber>;
|
|
2021
1994
|
firstBlockDelayMs: z.ZodDefault<z.ZodNumber>;
|
|
2022
1995
|
}, z.core.$strict>>;
|
|
2023
|
-
/** Block coalescer: accumulates small streaming blocks before delivery */
|
|
2024
1996
|
coalescer: z.ZodDefault<z.ZodObject<{
|
|
2025
1997
|
minChars: z.ZodDefault<z.ZodNumber>;
|
|
2026
1998
|
maxChars: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2031,7 +2003,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
2031
2003
|
}>>;
|
|
2032
2004
|
adaptiveIdle: z.ZodDefault<z.ZodBoolean>;
|
|
2033
2005
|
}, z.core.$strict>>;
|
|
2034
|
-
/** Sender trust display: controls how sender identity is surfaced to the LLM */
|
|
2035
2006
|
senderTrustDisplay: z.ZodDefault<z.ZodObject<{
|
|
2036
2007
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2037
2008
|
displayMode: z.ZodDefault<z.ZodEnum<{
|
|
@@ -2043,7 +2014,6 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
2043
2014
|
hashSecretRef: z.ZodDefault<z.ZodString>;
|
|
2044
2015
|
aliases: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2045
2016
|
}, z.core.$strict>>;
|
|
2046
|
-
/** Documentation links injected into system prompt */
|
|
2047
2017
|
documentation: z.ZodDefault<z.ZodObject<{
|
|
2048
2018
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2049
2019
|
localDocsPath: z.ZodDefault<z.ZodString>;
|
|
@@ -2057,11 +2027,44 @@ export declare const AppConfigSchema: z.ZodObject<{
|
|
|
2057
2027
|
url: z.ZodString;
|
|
2058
2028
|
}, z.core.$strict>>>;
|
|
2059
2029
|
}, z.core.$strict>>;
|
|
2060
|
-
/** Telegram file reference guard: detects hallucinated file paths in responses */
|
|
2061
2030
|
telegramFileRefGuard: z.ZodDefault<z.ZodObject<{
|
|
2062
2031
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2063
2032
|
additionalExtensions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2064
2033
|
excludedExtensions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2065
2034
|
}, z.core.$strict>>;
|
|
2035
|
+
tooling: z.ZodDefault<z.ZodObject<{
|
|
2036
|
+
capabilityClusters: z.ZodDefault<z.ZodObject<{
|
|
2037
|
+
clusters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2038
|
+
label: z.ZodString;
|
|
2039
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
2040
|
+
preferOverInstalls: z.ZodDefault<z.ZodBoolean>;
|
|
2041
|
+
}, z.core.$strict>>>;
|
|
2042
|
+
builtinAssignments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2043
|
+
}, z.core.$strict>>;
|
|
2044
|
+
mcp: z.ZodDefault<z.ZodObject<{
|
|
2045
|
+
capabilityHints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2046
|
+
cluster: z.ZodString;
|
|
2047
|
+
description: z.ZodString;
|
|
2048
|
+
replacesPackages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2049
|
+
}, z.core.$strict>>>;
|
|
2050
|
+
}, z.core.$strict>>;
|
|
2051
|
+
skills: z.ZodDefault<z.ZodObject<{
|
|
2052
|
+
capabilityHints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2053
|
+
cluster: z.ZodString;
|
|
2054
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2055
|
+
replacesPackages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2056
|
+
}, z.core.$strict>>>;
|
|
2057
|
+
}, z.core.$strict>>;
|
|
2058
|
+
capabilityIndex: z.ZodDefault<z.ZodObject<{
|
|
2059
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2060
|
+
}, z.core.$strict>>;
|
|
2061
|
+
installDetours: z.ZodDefault<z.ZodObject<{
|
|
2062
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
2063
|
+
observe: "observe";
|
|
2064
|
+
advise: "advise";
|
|
2065
|
+
"soft-stop": "soft-stop";
|
|
2066
|
+
}>>;
|
|
2067
|
+
}, z.core.$strict>>;
|
|
2068
|
+
}, z.core.$strict>>;
|
|
2066
2069
|
}, z.core.$strict>;
|
|
2067
2070
|
export type AppConfig = z.infer<typeof AppConfigSchema>;
|
|
@@ -8,6 +8,7 @@ import { ChannelConfigSchema } from "./schema-channel.js";
|
|
|
8
8
|
import { CoalescerConfigSchema } from "./schema-coalescer.js";
|
|
9
9
|
import { DaemonConfigSchema } from "./schema-daemon.js";
|
|
10
10
|
import { DeliveryMirrorConfigSchema, DeliveryQueueConfigSchema, DeliveryTimingConfigSchema } from "./schema-delivery.js";
|
|
11
|
+
import { OutputRetentionConfigSchema } from "./schema-output-retention.js";
|
|
11
12
|
import { DocumentationConfigSchema } from "./schema-documentation.js";
|
|
12
13
|
import { EmbeddingConfigSchema } from "./schema-embedding.js";
|
|
13
14
|
import { EnvelopeConfigSchema } from "./schema-envelope.js";
|
|
@@ -30,6 +31,7 @@ import { SenderTrustDisplayConfigSchema } from "./schema-sender-trust-display.js
|
|
|
30
31
|
import { SendPolicyConfigSchema } from "./schema-send-policy.js";
|
|
31
32
|
import { StreamingConfigSchema } from "./schema-streaming.js";
|
|
32
33
|
import { TelegramFileRefGuardConfigSchema } from "./schema-telegram-file-guard.js";
|
|
34
|
+
import { ToolingConfigSchema } from "./schema-tooling.js";
|
|
33
35
|
import { WebhooksConfigSchema } from "./schema-webhooks.js";
|
|
34
36
|
/**
|
|
35
37
|
* Root application configuration schema.
|
|
@@ -105,6 +107,8 @@ export const AppConfigSchema = z.strictObject({
|
|
|
105
107
|
deliveryQueue: DeliveryQueueConfigSchema.default(() => DeliveryQueueConfigSchema.parse({})),
|
|
106
108
|
/** Session mirroring persistence configuration */
|
|
107
109
|
deliveryMirror: DeliveryMirrorConfigSchema.default(() => DeliveryMirrorConfigSchema.parse({})),
|
|
110
|
+
/** Output retention housekeeper configuration (per-class retentionMs). */
|
|
111
|
+
outputRetention: OutputRetentionConfigSchema.default(() => OutputRetentionConfigSchema.parse({})),
|
|
108
112
|
/** Inter-block delivery timing and pacing configuration */
|
|
109
113
|
deliveryTiming: DeliveryTimingConfigSchema.default(() => DeliveryTimingConfigSchema.parse({})),
|
|
110
114
|
/** Block coalescer: accumulates small streaming blocks before delivery */
|
|
@@ -115,6 +119,8 @@ export const AppConfigSchema = z.strictObject({
|
|
|
115
119
|
documentation: DocumentationConfigSchema.default(() => DocumentationConfigSchema.parse({})),
|
|
116
120
|
/** Telegram file reference guard: detects hallucinated file paths in responses */
|
|
117
121
|
telegramFileRefGuard: TelegramFileRefGuardConfigSchema.default(() => TelegramFileRefGuardConfigSchema.parse({})),
|
|
122
|
+
/** Tool-first capability layer (v1.1) -- capability clusters, MCP/skill hints, install-detour mode. Operator-only. */
|
|
123
|
+
tooling: ToolingConfigSchema.default(() => ToolingConfigSchema.parse({})),
|
|
118
124
|
}).superRefine((config, ctx) => {
|
|
119
125
|
// Startup invariant: reject the reserved "default" provider name.
|
|
120
126
|
// "default" collides with PerAgentConfigSchema.provider's schema default
|
|
@@ -36,11 +36,8 @@ export declare const RequestContextSchema: z.ZodObject<{
|
|
|
36
36
|
user: "user";
|
|
37
37
|
guest: "guest";
|
|
38
38
|
}>>;
|
|
39
|
-
/** Per-session random delimiter for external content wrapping */
|
|
40
39
|
contentDelimiter: z.ZodOptional<z.ZodString>;
|
|
41
|
-
/** Channel type for the originating request (e.g. "telegram", "discord"). Flows through AsyncLocalStorage for downstream delivery routing. */
|
|
42
40
|
channelType: z.ZodOptional<z.ZodString>;
|
|
43
|
-
/** Immutable origin context for delivery routing. Captured at channel adapter entry point. */
|
|
44
41
|
deliveryOrigin: z.ZodOptional<z.ZodObject<{
|
|
45
42
|
channelType: z.ZodString;
|
|
46
43
|
channelId: z.ZodString;
|
|
@@ -48,7 +45,6 @@ export declare const RequestContextSchema: z.ZodObject<{
|
|
|
48
45
|
threadId: z.ZodOptional<z.ZodString>;
|
|
49
46
|
tenantId: z.ZodDefault<z.ZodString>;
|
|
50
47
|
}, z.core.$strict>>;
|
|
51
|
-
/** Resolved model string ("provider:modelId") set by parent executor for sub-agent inheritance via ALS. */
|
|
52
48
|
resolvedModel: z.ZodOptional<z.ZodString>;
|
|
53
49
|
}, z.core.$strict>;
|
|
54
50
|
export type RequestContext = z.infer<typeof RequestContextSchema>;
|
|
@@ -17,27 +17,18 @@ import { z } from "zod";
|
|
|
17
17
|
* informed approve/deny decision.
|
|
18
18
|
*/
|
|
19
19
|
export declare const ApprovalRequestSchema: z.ZodObject<{
|
|
20
|
-
/** Unique identifier for this approval request */
|
|
21
20
|
requestId: z.ZodString;
|
|
22
|
-
/** Name of the tool being invoked */
|
|
23
21
|
toolName: z.ZodString;
|
|
24
|
-
/** The classified action (e.g., "agents.delete") */
|
|
25
22
|
action: z.ZodString;
|
|
26
|
-
/** Tool parameters (sanitized, no secrets) */
|
|
27
23
|
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
28
|
-
/** The agent that triggered the action */
|
|
29
24
|
agentId: z.ZodString;
|
|
30
|
-
/** Session context identifier */
|
|
31
25
|
sessionKey: z.ZodString;
|
|
32
|
-
/** Trust level of the requesting user */
|
|
33
26
|
trustLevel: z.ZodEnum<{
|
|
34
27
|
admin: "admin";
|
|
35
28
|
user: "user";
|
|
36
29
|
guest: "guest";
|
|
37
30
|
}>;
|
|
38
|
-
/** Timestamp when the request was created (epoch ms) */
|
|
39
31
|
createdAt: z.ZodNumber;
|
|
40
|
-
/** How long before auto-deny (ms) */
|
|
41
32
|
timeoutMs: z.ZodNumber;
|
|
42
33
|
}, z.core.$strict>;
|
|
43
34
|
/** An approval request awaiting operator decision. */
|
|
@@ -48,15 +39,10 @@ export type ApprovalRequest = z.infer<typeof ApprovalRequestSchema>;
|
|
|
48
39
|
* Created when an operator approves/denies or the request times out.
|
|
49
40
|
*/
|
|
50
41
|
export declare const ApprovalResolutionSchema: z.ZodObject<{
|
|
51
|
-
/** The request being resolved */
|
|
52
42
|
requestId: z.ZodString;
|
|
53
|
-
/** Whether the action was approved */
|
|
54
43
|
approved: z.ZodBoolean;
|
|
55
|
-
/** Who approved/denied (operator ID or "system:timeout") */
|
|
56
44
|
approvedBy: z.ZodString;
|
|
57
|
-
/** Optional reason for the decision */
|
|
58
45
|
reason: z.ZodOptional<z.ZodString>;
|
|
59
|
-
/** Timestamp when the resolution was made (epoch ms) */
|
|
60
46
|
resolvedAt: z.ZodNumber;
|
|
61
47
|
}, z.core.$strict>;
|
|
62
48
|
/** The resolution outcome of an approval request. */
|
|
@@ -81,9 +67,7 @@ export declare const SerializedApprovalRequestSchema: z.ZodObject<{
|
|
|
81
67
|
export type SerializedApprovalRequest = z.infer<typeof SerializedApprovalRequestSchema>;
|
|
82
68
|
/** Schema for a serialized approval cache entry (for restart persistence of cached approvals). */
|
|
83
69
|
export declare const SerializedApprovalCacheEntrySchema: z.ZodObject<{
|
|
84
|
-
/** The cache key: "${sessionKey}::${action}" */
|
|
85
70
|
cacheKey: z.ZodString;
|
|
86
|
-
/** The cached approval resolution */
|
|
87
71
|
resolution: z.ZodObject<{
|
|
88
72
|
requestId: z.ZodString;
|
|
89
73
|
approved: z.ZodBoolean;
|
|
@@ -91,7 +75,6 @@ export declare const SerializedApprovalCacheEntrySchema: z.ZodObject<{
|
|
|
91
75
|
reason: z.ZodOptional<z.ZodString>;
|
|
92
76
|
resolvedAt: z.ZodNumber;
|
|
93
77
|
}, z.core.$strict>;
|
|
94
|
-
/** Absolute expiry timestamp (epoch ms) */
|
|
95
78
|
expiresAt: z.ZodNumber;
|
|
96
79
|
}, z.core.$strict>;
|
|
97
80
|
/** A serialized approval cache entry for persistence across restarts. */
|
|
@@ -19,21 +19,11 @@ import { z } from "zod";
|
|
|
19
19
|
* correct session.
|
|
20
20
|
*/
|
|
21
21
|
export declare const BackgroundTaskOriginSchema: z.ZodObject<{
|
|
22
|
-
/** The agent that owned the tool call. */
|
|
23
22
|
agentId: z.ZodString;
|
|
24
|
-
/** Formatted session key string (parseFormattedSessionKey-compatible). */
|
|
25
23
|
sessionKey: z.ZodString;
|
|
26
|
-
/** Channel type the originating message arrived on (e.g., "telegram"). */
|
|
27
24
|
channelType: z.ZodString;
|
|
28
|
-
/** Channel-specific identifier for the originating user/group. */
|
|
29
25
|
channelId: z.ZodString;
|
|
30
|
-
/** Per-execution trace identifier; null when no trace was active. */
|
|
31
26
|
traceId: z.ZodNullable<z.ZodString>;
|
|
32
|
-
/** Recursion-bound counter. Captured at promote-time from the inbound
|
|
33
|
-
* NormalizedMessage's metadata.backgroundHopCount (defaults to 0 for
|
|
34
|
-
* top-level user messages). The completion runner increments this
|
|
35
|
-
* when constructing the outgoing synthetic message, and falls back to
|
|
36
|
-
* fallbackNotifyFn when (incomingHopCount + 1) >= maxBackgroundHops. */
|
|
37
27
|
backgroundHopCount: z.ZodDefault<z.ZodNumber>;
|
|
38
28
|
}, z.core.$strict>;
|
|
39
29
|
export type BackgroundTaskOrigin = z.infer<typeof BackgroundTaskOriginSchema>;
|
|
@@ -11,15 +11,10 @@ import { z } from "zod";
|
|
|
11
11
|
* to guarantee immutability after creation.
|
|
12
12
|
*/
|
|
13
13
|
export declare const DeliveryOriginSchema: z.ZodObject<{
|
|
14
|
-
/** Platform identifier (e.g., "telegram", "discord", "gateway") */
|
|
15
14
|
channelType: z.ZodString;
|
|
16
|
-
/** Channel or chat identifier within the platform */
|
|
17
15
|
channelId: z.ZodString;
|
|
18
|
-
/** Originating user identifier */
|
|
19
16
|
userId: z.ZodString;
|
|
20
|
-
/** Thread within the channel (platform-specific, e.g., Discord thread, Telegram topic) */
|
|
21
17
|
threadId: z.ZodOptional<z.ZodString>;
|
|
22
|
-
/** Multi-tenant isolation key */
|
|
23
18
|
tenantId: z.ZodDefault<z.ZodString>;
|
|
24
19
|
}, z.core.$strict>;
|
|
25
20
|
export type DeliveryOrigin = Readonly<z.infer<typeof DeliveryOriginSchema>>;
|
|
@@ -52,38 +52,26 @@ export type NodeTypeId = z.infer<typeof NodeTypeIdSchema>;
|
|
|
52
52
|
* `dependsOn` array.
|
|
53
53
|
*/
|
|
54
54
|
export declare const GraphNodeSchema: z.ZodObject<{
|
|
55
|
-
/** Unique identifier within the graph */
|
|
56
55
|
nodeId: z.ZodString;
|
|
57
|
-
/** Task description for the sub-agent */
|
|
58
56
|
task: z.ZodString;
|
|
59
|
-
/** Which agent executes this node (defaults to caller's agent) */
|
|
60
57
|
agentId: z.ZodOptional<z.ZodString>;
|
|
61
|
-
/** Model override for this node */
|
|
62
58
|
model: z.ZodOptional<z.ZodString>;
|
|
63
|
-
/** Node IDs that must complete before this node can run */
|
|
64
59
|
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
65
|
-
/** Per-node timeout in milliseconds. When omitted, typed nodes use driver.defaultTimeoutMs; regular nodes rely on maxSteps / graph-level timeout. */
|
|
66
60
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
67
|
-
/** Maximum agentic steps for the sub-agent */
|
|
68
61
|
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
69
|
-
/** Barrier mode for fan-in nodes: all (default), majority (>50%), best-effort (any completed) */
|
|
70
62
|
barrierMode: z.ZodDefault<z.ZodEnum<{
|
|
71
63
|
all: "all";
|
|
72
64
|
majority: "majority";
|
|
73
65
|
"best-effort": "best-effort";
|
|
74
66
|
}>>;
|
|
75
|
-
/** Number of automatic retries on failure (0-3, default 1) */
|
|
76
67
|
retries: z.ZodDefault<z.ZodNumber>;
|
|
77
|
-
/** Context verbosity mode: full (default), summary (500 chars + shared dir ref), refs (file path refs), none (skip upstream outputs) */
|
|
78
68
|
contextMode: z.ZodDefault<z.ZodEnum<{
|
|
79
69
|
full: "full";
|
|
80
70
|
none: "none";
|
|
81
71
|
summary: "summary";
|
|
82
72
|
refs: "refs";
|
|
83
73
|
}>>;
|
|
84
|
-
/** MCP server names whose tools should be pre-discovered for this node's sub-agent. Resolves against the graph tool superset at spawn time. */
|
|
85
74
|
mcpServers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
86
|
-
/** Node type identifier -- if set, this node uses a built-in driver instead of direct agent execution */
|
|
87
75
|
typeId: z.ZodOptional<z.ZodEnum<{
|
|
88
76
|
agent: "agent";
|
|
89
77
|
debate: "debate";
|
|
@@ -93,7 +81,6 @@ export declare const GraphNodeSchema: z.ZodObject<{
|
|
|
93
81
|
"approval-gate": "approval-gate";
|
|
94
82
|
"map-reduce": "map-reduce";
|
|
95
83
|
}>>;
|
|
96
|
-
/** Type-specific configuration -- validated against the driver's configSchema at the RPC layer */
|
|
97
84
|
typeConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
98
85
|
}, z.core.$strict>;
|
|
99
86
|
export type GraphNode = z.infer<typeof GraphNodeSchema>;
|
|
@@ -104,9 +91,7 @@ export type GraphNode = z.infer<typeof GraphNodeSchema>;
|
|
|
104
91
|
* and timing information for observability.
|
|
105
92
|
*/
|
|
106
93
|
export declare const NodeExecutionStateSchema: z.ZodObject<{
|
|
107
|
-
/** Node identifier (matches GraphNode.nodeId) */
|
|
108
94
|
nodeId: z.ZodString;
|
|
109
|
-
/** Current lifecycle status */
|
|
110
95
|
status: z.ZodEnum<{
|
|
111
96
|
completed: "completed";
|
|
112
97
|
failed: "failed";
|
|
@@ -115,31 +100,18 @@ export declare const NodeExecutionStateSchema: z.ZodObject<{
|
|
|
115
100
|
running: "running";
|
|
116
101
|
skipped: "skipped";
|
|
117
102
|
}>;
|
|
118
|
-
/** Sub-agent run ID, set when running */
|
|
119
103
|
runId: z.ZodOptional<z.ZodString>;
|
|
120
|
-
/** Result text, set when completed */
|
|
121
104
|
output: z.ZodOptional<z.ZodString>;
|
|
122
|
-
/** Error text, set when failed */
|
|
123
105
|
error: z.ZodOptional<z.ZodString>;
|
|
124
|
-
/** Epoch ms when execution started */
|
|
125
106
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
126
|
-
/** Epoch ms when execution finished */
|
|
127
107
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
128
|
-
/** Current retry attempt number (0 = first run, 1 = first retry, etc.) */
|
|
129
108
|
retryAttempt: z.ZodOptional<z.ZodNumber>;
|
|
130
|
-
/** Number of retries still available */
|
|
131
109
|
retriesRemaining: z.ZodOptional<z.ZodNumber>;
|
|
132
|
-
/** Formatted sessionKey of the most recent aborted attempt. Passed as
|
|
133
|
-
* reuseSessionKey on the next retry spawn so the sub-agent can benefit
|
|
134
|
-
* from any cache written by the aborted run and avoid sending an entirely
|
|
135
|
-
* cold prompt. Cleared when the node reaches a terminal state. */
|
|
136
110
|
priorSessionKey: z.ZodOptional<z.ZodString>;
|
|
137
111
|
}, z.core.$strict>;
|
|
138
112
|
export type NodeExecutionState = z.infer<typeof NodeExecutionStateSchema>;
|
|
139
113
|
export declare const GraphBudgetSchema: z.ZodObject<{
|
|
140
|
-
/** Maximum total tokens across all nodes */
|
|
141
114
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
142
|
-
/** Maximum total cost across all nodes */
|
|
143
115
|
maxCost: z.ZodOptional<z.ZodNumber>;
|
|
144
116
|
}, z.core.$strict>;
|
|
145
117
|
export type GraphBudget = z.infer<typeof GraphBudgetSchema>;
|
|
@@ -151,40 +123,27 @@ export type GraphBudget = z.infer<typeof GraphBudgetSchema>;
|
|
|
151
123
|
* must be acyclic.
|
|
152
124
|
*/
|
|
153
125
|
export declare const ExecutionGraphSchema: z.ZodObject<{
|
|
154
|
-
/** DAG nodes (1..20) */
|
|
155
126
|
nodes: z.ZodArray<z.ZodObject<{
|
|
156
|
-
/** Unique identifier within the graph */
|
|
157
127
|
nodeId: z.ZodString;
|
|
158
|
-
/** Task description for the sub-agent */
|
|
159
128
|
task: z.ZodString;
|
|
160
|
-
/** Which agent executes this node (defaults to caller's agent) */
|
|
161
129
|
agentId: z.ZodOptional<z.ZodString>;
|
|
162
|
-
/** Model override for this node */
|
|
163
130
|
model: z.ZodOptional<z.ZodString>;
|
|
164
|
-
/** Node IDs that must complete before this node can run */
|
|
165
131
|
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
166
|
-
/** Per-node timeout in milliseconds. When omitted, typed nodes use driver.defaultTimeoutMs; regular nodes rely on maxSteps / graph-level timeout. */
|
|
167
132
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
168
|
-
/** Maximum agentic steps for the sub-agent */
|
|
169
133
|
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
170
|
-
/** Barrier mode for fan-in nodes: all (default), majority (>50%), best-effort (any completed) */
|
|
171
134
|
barrierMode: z.ZodDefault<z.ZodEnum<{
|
|
172
135
|
all: "all";
|
|
173
136
|
majority: "majority";
|
|
174
137
|
"best-effort": "best-effort";
|
|
175
138
|
}>>;
|
|
176
|
-
/** Number of automatic retries on failure (0-3, default 1) */
|
|
177
139
|
retries: z.ZodDefault<z.ZodNumber>;
|
|
178
|
-
/** Context verbosity mode: full (default), summary (500 chars + shared dir ref), refs (file path refs), none (skip upstream outputs) */
|
|
179
140
|
contextMode: z.ZodDefault<z.ZodEnum<{
|
|
180
141
|
full: "full";
|
|
181
142
|
none: "none";
|
|
182
143
|
summary: "summary";
|
|
183
144
|
refs: "refs";
|
|
184
145
|
}>>;
|
|
185
|
-
/** MCP server names whose tools should be pre-discovered for this node's sub-agent. Resolves against the graph tool superset at spawn time. */
|
|
186
146
|
mcpServers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
187
|
-
/** Node type identifier -- if set, this node uses a built-in driver instead of direct agent execution */
|
|
188
147
|
typeId: z.ZodOptional<z.ZodEnum<{
|
|
189
148
|
agent: "agent";
|
|
190
149
|
debate: "debate";
|
|
@@ -194,23 +153,16 @@ export declare const ExecutionGraphSchema: z.ZodObject<{
|
|
|
194
153
|
"approval-gate": "approval-gate";
|
|
195
154
|
"map-reduce": "map-reduce";
|
|
196
155
|
}>>;
|
|
197
|
-
/** Type-specific configuration -- validated against the driver's configSchema at the RPC layer */
|
|
198
156
|
typeConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
199
157
|
}, z.core.$strict>>;
|
|
200
|
-
/** Human-readable graph label */
|
|
201
158
|
label: z.ZodOptional<z.ZodString>;
|
|
202
|
-
/** Failure strategy: fail-fast stops on first failure, continue runs remaining */
|
|
203
159
|
onFailure: z.ZodDefault<z.ZodEnum<{
|
|
204
160
|
continue: "continue";
|
|
205
161
|
"fail-fast": "fail-fast";
|
|
206
162
|
}>>;
|
|
207
|
-
/** Graph-level timeout in milliseconds (default: 1 500 000 — 25 minutes) */
|
|
208
163
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
209
|
-
/** Resource limits for the graph execution */
|
|
210
164
|
budget: z.ZodOptional<z.ZodObject<{
|
|
211
|
-
/** Maximum total tokens across all nodes */
|
|
212
165
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
213
|
-
/** Maximum total cost across all nodes */
|
|
214
166
|
maxCost: z.ZodOptional<z.ZodNumber>;
|
|
215
167
|
}, z.core.$strict>>;
|
|
216
168
|
}, z.core.$strict>;
|
|
@@ -32,7 +32,6 @@ export declare const MemorySourceSchema: z.ZodObject<{
|
|
|
32
32
|
export declare const MemoryEntrySchema: z.ZodObject<{
|
|
33
33
|
id: z.ZodGUID;
|
|
34
34
|
tenantId: z.ZodDefault<z.ZodString>;
|
|
35
|
-
/** Agent that created this memory entry (enables per-agent memory isolation) */
|
|
36
35
|
agentId: z.ZodDefault<z.ZodString>;
|
|
37
36
|
userId: z.ZodString;
|
|
38
37
|
content: z.ZodString;
|
|
@@ -51,13 +50,11 @@ export declare const MemoryEntrySchema: z.ZodObject<{
|
|
|
51
50
|
createdAt: z.ZodNumber;
|
|
52
51
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
53
52
|
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
54
|
-
/** Taint level indicating content sanitization status */
|
|
55
53
|
taintLevel: z.ZodOptional<z.ZodEnum<{
|
|
56
54
|
clean: "clean";
|
|
57
55
|
wrapped: "wrapped";
|
|
58
56
|
raw: "raw";
|
|
59
57
|
}>>;
|
|
60
|
-
/** Type of source that produced this entry */
|
|
61
58
|
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
62
59
|
system: "system";
|
|
63
60
|
unknown: "unknown";
|