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
|
@@ -21,20 +21,15 @@ export declare const DeliveryTimingModeSchema: z.ZodDefault<z.ZodEnum<{
|
|
|
21
21
|
* and before the channel adapter sends it.
|
|
22
22
|
*/
|
|
23
23
|
export declare const DeliveryTimingConfigSchema: z.ZodObject<{
|
|
24
|
-
/** Timing mode: off, natural, custom, or adaptive */
|
|
25
24
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
26
25
|
custom: "custom";
|
|
27
26
|
off: "off";
|
|
28
27
|
natural: "natural";
|
|
29
28
|
adaptive: "adaptive";
|
|
30
29
|
}>>;
|
|
31
|
-
/** Minimum delay (ms) between block deliveries */
|
|
32
30
|
minMs: z.ZodDefault<z.ZodNumber>;
|
|
33
|
-
/** Maximum delay (ms) between block deliveries */
|
|
34
31
|
maxMs: z.ZodDefault<z.ZodNumber>;
|
|
35
|
-
/** Random jitter (ms) added to each delay for natural feel */
|
|
36
32
|
jitterMs: z.ZodDefault<z.ZodNumber>;
|
|
37
|
-
/** Extra delay (ms) before delivering the first block of a response */
|
|
38
33
|
firstBlockDelayMs: z.ZodDefault<z.ZodNumber>;
|
|
39
34
|
}, z.core.$strict>;
|
|
40
35
|
export type DeliveryTimingConfig = z.infer<typeof DeliveryTimingConfigSchema>;
|
|
@@ -53,21 +48,13 @@ export type DeliveryTimingMode = z.infer<typeof DeliveryTimingModeSchema>;
|
|
|
53
48
|
* All fields have sensible defaults so an empty object produces a valid config.
|
|
54
49
|
*/
|
|
55
50
|
export declare const DeliveryQueueConfigSchema: z.ZodObject<{
|
|
56
|
-
/** Whether the delivery queue is enabled. When false, messages bypass persistence. */
|
|
57
51
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
58
|
-
/** Maximum number of entries allowed in the queue. Enqueue rejects when full. */
|
|
59
52
|
maxQueueDepth: z.ZodDefault<z.ZodNumber>;
|
|
60
|
-
/** Default maximum delivery attempts before marking an entry as failed. */
|
|
61
53
|
defaultMaxAttempts: z.ZodDefault<z.ZodNumber>;
|
|
62
|
-
/** Default time-to-live in milliseconds before an entry expires (1 hour). */
|
|
63
54
|
defaultExpireMs: z.ZodDefault<z.ZodNumber>;
|
|
64
|
-
/** Whether to drain pending entries on daemon startup (crash recovery). */
|
|
65
55
|
drainOnStartup: z.ZodDefault<z.ZodBoolean>;
|
|
66
|
-
/** Maximum time in milliseconds allowed for startup drain before continuing. */
|
|
67
56
|
drainBudgetMs: z.ZodDefault<z.ZodNumber>;
|
|
68
|
-
/** Interval in milliseconds between recurring drain ticks after startup. Set tick cadence for SPEC-R1 continuous drainer. */
|
|
69
57
|
drainIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
70
|
-
/** Interval in milliseconds between automatic prune sweeps for expired entries. */
|
|
71
58
|
pruneIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
72
59
|
}, z.core.$strict>;
|
|
73
60
|
export type DeliveryQueueConfig = z.infer<typeof DeliveryQueueConfigSchema>;
|
|
@@ -85,15 +72,10 @@ export type DeliveryQueueConfig = z.infer<typeof DeliveryQueueConfigSchema>;
|
|
|
85
72
|
* All fields have sensible defaults so an empty object produces a valid config.
|
|
86
73
|
*/
|
|
87
74
|
export declare const DeliveryMirrorConfigSchema: z.ZodObject<{
|
|
88
|
-
/** Whether the delivery mirror is enabled. When false, no entries are recorded. */
|
|
89
75
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
90
|
-
/** Maximum age in milliseconds before mirror entries are pruned (24 hours). */
|
|
91
76
|
retentionMs: z.ZodDefault<z.ZodNumber>;
|
|
92
|
-
/** Interval in milliseconds between automatic prune sweeps (5 minutes). */
|
|
93
77
|
pruneIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
94
|
-
/** Maximum number of mirror entries injected per prompt turn. */
|
|
95
78
|
maxEntriesPerInjection: z.ZodDefault<z.ZodNumber>;
|
|
96
|
-
/** Maximum total characters of mirror text injected per prompt turn. */
|
|
97
79
|
maxCharsPerInjection: z.ZodDefault<z.ZodNumber>;
|
|
98
80
|
}, z.core.$strict>;
|
|
99
81
|
export type DeliveryMirrorConfig = z.infer<typeof DeliveryMirrorConfigSchema>;
|
|
@@ -3,9 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
* Custom documentation link entry.
|
|
4
4
|
*/
|
|
5
5
|
export declare const DocumentationLinkSchema: z.ZodObject<{
|
|
6
|
-
/** Human-readable label for the link */
|
|
7
6
|
label: z.ZodString;
|
|
8
|
-
/** URL for the documentation resource */
|
|
9
7
|
url: z.ZodString;
|
|
10
8
|
}, z.core.$strict>;
|
|
11
9
|
/**
|
|
@@ -16,25 +14,15 @@ export declare const DocumentationLinkSchema: z.ZodObject<{
|
|
|
16
14
|
* system prompt so the agent can reference and share them with users.
|
|
17
15
|
*/
|
|
18
16
|
export declare const DocumentationConfigSchema: z.ZodObject<{
|
|
19
|
-
/** Whether documentation links are injected into the system prompt */
|
|
20
17
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
-
/** Filesystem path to local documentation (for file-based lookup) */
|
|
22
18
|
localDocsPath: z.ZodDefault<z.ZodString>;
|
|
23
|
-
/** Public documentation URL */
|
|
24
19
|
publicDocsUrl: z.ZodDefault<z.ZodString>;
|
|
25
|
-
/** Source code repository URL */
|
|
26
20
|
sourceUrl: z.ZodDefault<z.ZodString>;
|
|
27
|
-
/** Community or support URL */
|
|
28
21
|
communityUrl: z.ZodDefault<z.ZodString>;
|
|
29
|
-
/** Skills marketplace URL for browsing and installing agent skills */
|
|
30
22
|
skillsMarketplaceUrl: z.ZodDefault<z.ZodString>;
|
|
31
|
-
/** MCP server registry URL for browsing and installing MCP integrations */
|
|
32
23
|
mcpRegistryUrl: z.ZodDefault<z.ZodString>;
|
|
33
|
-
/** Additional custom documentation links */
|
|
34
24
|
customLinks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
35
|
-
/** Human-readable label for the link */
|
|
36
25
|
label: z.ZodString;
|
|
37
|
-
/** URL for the documentation resource */
|
|
38
26
|
url: z.ZodString;
|
|
39
27
|
}, z.core.$strict>>>;
|
|
40
28
|
}, z.core.$strict>;
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const EmbeddingConfigSchema: z.ZodObject<{
|
|
3
|
-
/** Enable embedding generation. When false, only FTS5 search is used. */
|
|
4
3
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
5
|
-
/** Provider preference: "auto" tries local then remote */
|
|
6
4
|
provider: z.ZodDefault<z.ZodEnum<{
|
|
7
5
|
auto: "auto";
|
|
8
6
|
local: "local";
|
|
9
7
|
openai: "openai";
|
|
10
8
|
}>>;
|
|
11
|
-
/** Local model configuration (node-llama-cpp GGUF) */
|
|
12
9
|
local: z.ZodDefault<z.ZodObject<{
|
|
13
|
-
/** HuggingFace model URI or path to local GGUF file */
|
|
14
10
|
modelUri: z.ZodDefault<z.ZodString>;
|
|
15
|
-
/** Directory to store downloaded models */
|
|
16
11
|
modelsDir: z.ZodDefault<z.ZodString>;
|
|
17
|
-
/** GPU acceleration mode */
|
|
18
12
|
gpu: z.ZodDefault<z.ZodEnum<{
|
|
19
13
|
auto: "auto";
|
|
20
14
|
metal: "metal";
|
|
@@ -22,37 +16,23 @@ export declare const EmbeddingConfigSchema: z.ZodObject<{
|
|
|
22
16
|
vulkan: "vulkan";
|
|
23
17
|
false: "false";
|
|
24
18
|
}>>;
|
|
25
|
-
/** Context size for embedding model (tokens). nomic-embed-text-v1.5 trains on 2048; 8192 requires YaRN RoPE scaling not available in node-llama-cpp. */
|
|
26
19
|
contextSize: z.ZodDefault<z.ZodNumber>;
|
|
27
20
|
}, z.core.$strict>>;
|
|
28
|
-
/** Remote OpenAI configuration */
|
|
29
21
|
openai: z.ZodDefault<z.ZodObject<{
|
|
30
|
-
/** OpenAI embedding model */
|
|
31
22
|
model: z.ZodDefault<z.ZodString>;
|
|
32
|
-
/** Vector dimensions (must match model output) */
|
|
33
23
|
dimensions: z.ZodDefault<z.ZodNumber>;
|
|
34
24
|
}, z.core.$strict>>;
|
|
35
|
-
/** Embedding cache configuration */
|
|
36
25
|
cache: z.ZodDefault<z.ZodObject<{
|
|
37
|
-
/** Maximum cached embeddings in L1 in-memory cache (0 = disabled) */
|
|
38
26
|
maxEntries: z.ZodDefault<z.ZodNumber>;
|
|
39
|
-
/** Enable persistent L2 SQLite cache. Default: false (in-memory only). */
|
|
40
27
|
persistent: z.ZodDefault<z.ZodBoolean>;
|
|
41
|
-
/** Maximum entries in L2 persistent cache. Default: 50_000. */
|
|
42
28
|
persistentMaxEntries: z.ZodDefault<z.ZodNumber>;
|
|
43
|
-
/** TTL in milliseconds for cache entries. Default: undefined (no TTL, LRU only). */
|
|
44
29
|
ttlMs: z.ZodOptional<z.ZodNumber>;
|
|
45
|
-
/** Prune check interval in milliseconds. Default: 300_000 (5 min). */
|
|
46
30
|
pruneIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
47
31
|
}, z.core.$strict>>;
|
|
48
|
-
/** Batch indexer configuration */
|
|
49
32
|
batch: z.ZodDefault<z.ZodObject<{
|
|
50
|
-
/** Texts per batch call to embedBatch() */
|
|
51
33
|
batchSize: z.ZodDefault<z.ZodNumber>;
|
|
52
|
-
/** Whether to index unembedded memories on startup */
|
|
53
34
|
indexOnStartup: z.ZodDefault<z.ZodBoolean>;
|
|
54
35
|
}, z.core.$strict>>;
|
|
55
|
-
/** Whether to auto-reindex when provider model changes */
|
|
56
36
|
autoReindex: z.ZodDefault<z.ZodBoolean>;
|
|
57
37
|
}, z.core.$strict>;
|
|
58
38
|
export type EmbeddingConfig = z.infer<typeof EmbeddingConfigSchema>;
|
|
@@ -8,28 +8,13 @@ import { z } from "zod";
|
|
|
8
8
|
* source platform, and relative gaps between messages.
|
|
9
9
|
*/
|
|
10
10
|
export declare const EnvelopeConfigSchema: z.ZodObject<{
|
|
11
|
-
/**
|
|
12
|
-
* Timezone mode for timestamp formatting.
|
|
13
|
-
*
|
|
14
|
-
* - `'utc'`: Format timestamps in UTC (default)
|
|
15
|
-
* - `'local'`: Format timestamps in server-local timezone
|
|
16
|
-
* - Any other string: Treated as IANA timezone (e.g., "America/New_York")
|
|
17
|
-
*/
|
|
18
11
|
timezoneMode: z.ZodDefault<z.ZodString>;
|
|
19
|
-
/** Time display format: 12-hour or 24-hour clock */
|
|
20
12
|
timeFormat: z.ZodDefault<z.ZodEnum<{
|
|
21
13
|
"12h": "12h";
|
|
22
14
|
"24h": "24h";
|
|
23
15
|
}>>;
|
|
24
|
-
/** Whether to show elapsed time since previous message (e.g., +2m, +1h) */
|
|
25
16
|
showElapsed: z.ZodDefault<z.ZodBoolean>;
|
|
26
|
-
/** Whether to show the platform provider prefix (e.g., [telegram], [discord]) */
|
|
27
17
|
showProvider: z.ZodDefault<z.ZodBoolean>;
|
|
28
|
-
/**
|
|
29
|
-
* Maximum elapsed time to display in milliseconds.
|
|
30
|
-
* Elapsed times beyond this threshold are omitted (too stale to be useful).
|
|
31
|
-
* Default: 86_400_000 (24 hours).
|
|
32
|
-
*/
|
|
33
18
|
elapsedMaxMs: z.ZodDefault<z.ZodNumber>;
|
|
34
19
|
}, z.core.$strict>;
|
|
35
20
|
export type EnvelopeConfig = z.infer<typeof EnvelopeConfigSchema>;
|
|
@@ -6,13 +6,9 @@ import { z } from "zod";
|
|
|
6
6
|
* All paths should be absolute or relative to the process working directory.
|
|
7
7
|
*/
|
|
8
8
|
export declare const GatewayTlsConfigSchema: z.ZodObject<{
|
|
9
|
-
/** Path to the server TLS certificate (PEM format) */
|
|
10
9
|
certPath: z.ZodString;
|
|
11
|
-
/** Path to the server TLS private key (PEM format) */
|
|
12
10
|
keyPath: z.ZodString;
|
|
13
|
-
/** Path to the CA certificate for client cert verification (PEM format) */
|
|
14
11
|
caPath: z.ZodString;
|
|
15
|
-
/** Require client certificates for mutual TLS (default: true) */
|
|
16
12
|
requireClientCert: z.ZodDefault<z.ZodBoolean>;
|
|
17
13
|
}, z.core.$strict>;
|
|
18
14
|
/**
|
|
@@ -24,9 +20,7 @@ export declare const GatewayTlsConfigSchema: z.ZodObject<{
|
|
|
24
20
|
* environment variable or auto-generation.
|
|
25
21
|
*/
|
|
26
22
|
export declare const GatewayTokenSchema: z.ZodObject<{
|
|
27
|
-
/** Unique identifier for this token */
|
|
28
23
|
id: z.ZodString;
|
|
29
|
-
/** The secret value (min 32 chars; resolved at runtime if omitted; string or SecretRef) */
|
|
30
24
|
secret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
31
25
|
source: z.ZodEnum<{
|
|
32
26
|
file: "file";
|
|
@@ -36,16 +30,13 @@ export declare const GatewayTokenSchema: z.ZodObject<{
|
|
|
36
30
|
provider: z.ZodString;
|
|
37
31
|
id: z.ZodString;
|
|
38
32
|
}, z.core.$strict>]>>;
|
|
39
|
-
/** Allowed scopes for this token (e.g., ["rpc", "ws", "admin"]) */
|
|
40
33
|
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
41
34
|
}, z.core.$strict>;
|
|
42
35
|
/**
|
|
43
36
|
* Rate limiting configuration for the gateway.
|
|
44
37
|
*/
|
|
45
38
|
export declare const GatewayRateLimitSchema: z.ZodObject<{
|
|
46
|
-
/** Time window in milliseconds (default: 60000 = 1 minute) */
|
|
47
39
|
windowMs: z.ZodDefault<z.ZodNumber>;
|
|
48
|
-
/** Maximum requests per window (default: 100) */
|
|
49
40
|
maxRequests: z.ZodDefault<z.ZodNumber>;
|
|
50
41
|
}, z.core.$strict>;
|
|
51
42
|
/**
|
|
@@ -54,7 +45,6 @@ export declare const GatewayRateLimitSchema: z.ZodObject<{
|
|
|
54
45
|
* disabled, the daemon skips /app/*, /api, SSE, and the `/` -> `/app/` redirect.
|
|
55
46
|
*/
|
|
56
47
|
export declare const GatewayWebConfigSchema: z.ZodObject<{
|
|
57
|
-
/** Enable the web dashboard SPA (default: true) */
|
|
58
48
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
59
49
|
}, z.core.$strict>;
|
|
60
50
|
/**
|
|
@@ -64,28 +54,17 @@ export declare const GatewayWebConfigSchema: z.ZodObject<{
|
|
|
64
54
|
* rate limiting, JSON-RPC batching, and WebSocket heartbeat settings.
|
|
65
55
|
*/
|
|
66
56
|
export declare const GatewayConfigSchema: z.ZodObject<{
|
|
67
|
-
/** Enable the gateway server (default: true) */
|
|
68
57
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
69
|
-
/** Host to bind the server to (default: "127.0.0.1" — secure-by-default, use "0.0.0.0" for external access) */
|
|
70
58
|
host: z.ZodDefault<z.ZodString>;
|
|
71
|
-
/** Port to listen on (default: 4766) */
|
|
72
59
|
port: z.ZodDefault<z.ZodNumber>;
|
|
73
|
-
/** TLS / mTLS configuration (omit for dev-mode plain HTTP) */
|
|
74
60
|
tls: z.ZodOptional<z.ZodObject<{
|
|
75
|
-
/** Path to the server TLS certificate (PEM format) */
|
|
76
61
|
certPath: z.ZodString;
|
|
77
|
-
/** Path to the server TLS private key (PEM format) */
|
|
78
62
|
keyPath: z.ZodString;
|
|
79
|
-
/** Path to the CA certificate for client cert verification (PEM format) */
|
|
80
63
|
caPath: z.ZodString;
|
|
81
|
-
/** Require client certificates for mutual TLS (default: true) */
|
|
82
64
|
requireClientCert: z.ZodDefault<z.ZodBoolean>;
|
|
83
65
|
}, z.core.$strict>>;
|
|
84
|
-
/** Bearer tokens for API key authentication */
|
|
85
66
|
tokens: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
86
|
-
/** Unique identifier for this token */
|
|
87
67
|
id: z.ZodString;
|
|
88
|
-
/** The secret value (min 32 chars; resolved at runtime if omitted; string or SecretRef) */
|
|
89
68
|
secret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
90
69
|
source: z.ZodEnum<{
|
|
91
70
|
file: "file";
|
|
@@ -95,40 +74,24 @@ export declare const GatewayConfigSchema: z.ZodObject<{
|
|
|
95
74
|
provider: z.ZodString;
|
|
96
75
|
id: z.ZodString;
|
|
97
76
|
}, z.core.$strict>]>>;
|
|
98
|
-
/** Allowed scopes for this token (e.g., ["rpc", "ws", "admin"]) */
|
|
99
77
|
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
100
78
|
}, z.core.$strict>>>;
|
|
101
|
-
/** Rate limiting settings */
|
|
102
79
|
rateLimit: z.ZodDefault<z.ZodObject<{
|
|
103
|
-
/** Time window in milliseconds (default: 60000 = 1 minute) */
|
|
104
80
|
windowMs: z.ZodDefault<z.ZodNumber>;
|
|
105
|
-
/** Maximum requests per window (default: 100) */
|
|
106
81
|
maxRequests: z.ZodDefault<z.ZodNumber>;
|
|
107
82
|
}, z.core.$strict>>;
|
|
108
|
-
/** Web dashboard (mounted at /app/*, shares gateway host/port/auth) */
|
|
109
83
|
web: z.ZodDefault<z.ZodObject<{
|
|
110
|
-
/** Enable the web dashboard SPA (default: true) */
|
|
111
84
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
112
85
|
}, z.core.$strict>>;
|
|
113
|
-
/** Maximum JSON-RPC batch size (default: 50) */
|
|
114
86
|
maxBatchSize: z.ZodDefault<z.ZodNumber>;
|
|
115
|
-
/** WebSocket heartbeat interval in milliseconds (default: 30000) */
|
|
116
87
|
wsHeartbeatMs: z.ZodDefault<z.ZodNumber>;
|
|
117
|
-
/** CORS allowed origins. Empty array = same-origin only (restrictive default). */
|
|
118
88
|
corsOrigins: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
119
|
-
/** Suppress insecure-HTTP WARN log (for dev/test environments). Default: false. */
|
|
120
89
|
allowInsecureHttp: z.ZodDefault<z.ZodBoolean>;
|
|
121
|
-
/** Trusted proxy IPs. Only these IPs' X-Forwarded-For headers are trusted for rate limiting. Empty = trust none (default). */
|
|
122
90
|
trustedProxies: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>>>;
|
|
123
|
-
/** Maximum HTTP request body size in bytes for POST endpoints (default: 1MB). */
|
|
124
91
|
httpBodyLimitBytes: z.ZodDefault<z.ZodNumber>;
|
|
125
|
-
/** Maximum WebSocket message size in characters before JSON.parse (default: 1MB). */
|
|
126
92
|
wsMaxMessageBytes: z.ZodDefault<z.ZodNumber>;
|
|
127
|
-
/** Per-connection WebSocket message rate limiting. */
|
|
128
93
|
wsMessageRateLimit: z.ZodDefault<z.ZodObject<{
|
|
129
|
-
/** Maximum messages per window (default: 60). */
|
|
130
94
|
maxMessages: z.ZodDefault<z.ZodNumber>;
|
|
131
|
-
/** Time window in milliseconds (default: 60000 = 1 minute). */
|
|
132
95
|
windowMs: z.ZodDefault<z.ZodNumber>;
|
|
133
96
|
}, z.core.$strict>>;
|
|
134
97
|
}, z.core.$strict>;
|
|
@@ -9,9 +9,7 @@ import { z } from "zod";
|
|
|
9
9
|
*/
|
|
10
10
|
/** Gemini cache configuration (per-agent, nested under AgentConfigSchema). */
|
|
11
11
|
export declare const GeminiCacheConfigSchema: z.ZodObject<{
|
|
12
|
-
/** Enable Gemini explicit CachedContent caching. Default: false. */
|
|
13
12
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
14
|
-
/** Maximum active cached contents per agent (bounds storage cost). Must be a positive integer. Default: 20. */
|
|
15
13
|
maxActiveCaches: z.ZodDefault<z.ZodNumber>;
|
|
16
14
|
}, z.core.$strict>;
|
|
17
15
|
export type GeminiCacheConfig = z.infer<typeof GeminiCacheConfigSchema>;
|