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.
Files changed (239) hide show
  1. package/node_modules/@comis/agent/dist/background/auto-background-middleware.js +9 -0
  2. package/node_modules/@comis/agent/dist/background/background-task-manager.d.ts +22 -2
  3. package/node_modules/@comis/agent/dist/background/background-task-manager.js +48 -41
  4. package/node_modules/@comis/agent/dist/background/background-task-persistence.js +28 -5
  5. package/node_modules/@comis/agent/dist/background/background-task-types.d.ts +49 -0
  6. package/node_modules/@comis/agent/dist/background/completion-dispatcher.d.ts +130 -0
  7. package/node_modules/@comis/agent/dist/background/completion-dispatcher.js +215 -0
  8. package/node_modules/@comis/agent/dist/background/completion-runner.d.ts +10 -1
  9. package/node_modules/@comis/agent/dist/background/completion-runner.js +98 -15
  10. package/node_modules/@comis/agent/dist/background/index.d.ts +6 -1
  11. package/node_modules/@comis/agent/dist/background/index.js +2 -0
  12. package/node_modules/@comis/agent/dist/background/session-resolver.d.ts +85 -0
  13. package/node_modules/@comis/agent/dist/background/session-resolver.js +78 -0
  14. package/node_modules/@comis/agent/dist/bootstrap/sections/messaging-sections.js +1 -0
  15. package/node_modules/@comis/agent/dist/bootstrap/sections/tool-descriptions.js +3 -3
  16. package/node_modules/@comis/agent/dist/bootstrap/sections/tooling-sections.d.ts +30 -2
  17. package/node_modules/@comis/agent/dist/bootstrap/sections/tooling-sections.js +51 -2
  18. package/node_modules/@comis/agent/dist/bootstrap/system-prompt-assembler.d.ts +22 -0
  19. package/node_modules/@comis/agent/dist/bootstrap/system-prompt-assembler.js +2 -2
  20. package/node_modules/@comis/agent/dist/bridge/bridge-event-handlers.d.ts +1 -5
  21. package/node_modules/@comis/agent/dist/bridge/bridge-event-handlers.js +2 -14
  22. package/node_modules/@comis/agent/dist/bridge/bridge-metrics.d.ts +26 -0
  23. package/node_modules/@comis/agent/dist/bridge/bridge-metrics.js +3 -0
  24. package/node_modules/@comis/agent/dist/bridge/pi-event-bridge.d.ts +9 -0
  25. package/node_modules/@comis/agent/dist/bridge/pi-event-bridge.js +73 -2
  26. package/node_modules/@comis/agent/dist/context-engine/signature-surrogate-guard.d.ts +10 -10
  27. package/node_modules/@comis/agent/dist/context-engine/signature-surrogate-guard.js +14 -14
  28. package/node_modules/@comis/agent/dist/context-engine/thinking-block-cleaner.d.ts +11 -13
  29. package/node_modules/@comis/agent/dist/context-engine/thinking-block-cleaner.js +14 -15
  30. package/node_modules/@comis/agent/dist/executor/capability-index-context.d.ts +72 -0
  31. package/node_modules/@comis/agent/dist/executor/capability-index-context.js +329 -0
  32. package/node_modules/@comis/agent/dist/executor/drain-helper.d.ts +122 -0
  33. package/node_modules/@comis/agent/dist/executor/drain-helper.js +173 -0
  34. package/node_modules/@comis/agent/dist/executor/error-classifier.js +2 -2
  35. package/node_modules/@comis/agent/dist/executor/executor-post-execution.d.ts +48 -4
  36. package/node_modules/@comis/agent/dist/executor/executor-post-execution.js +134 -31
  37. package/node_modules/@comis/agent/dist/executor/executor-prompt-runner.d.ts +7 -0
  38. package/node_modules/@comis/agent/dist/executor/executor-prompt-runner.js +25 -4
  39. package/node_modules/@comis/agent/dist/executor/executor-tool-assembly.d.ts +18 -1
  40. package/node_modules/@comis/agent/dist/executor/executor-tool-assembly.js +19 -16
  41. package/node_modules/@comis/agent/dist/executor/jit-guide-injector.d.ts +11 -2
  42. package/node_modules/@comis/agent/dist/executor/jit-guide-injector.js +16 -2
  43. package/node_modules/@comis/agent/dist/executor/pi-executor.d.ts +8 -2
  44. package/node_modules/@comis/agent/dist/executor/pi-executor.js +25 -12
  45. package/node_modules/@comis/agent/dist/executor/prompt-assembly.d.ts +9 -1
  46. package/node_modules/@comis/agent/dist/executor/prompt-assembly.js +15 -1
  47. package/node_modules/@comis/agent/dist/executor/tool-deferral.d.ts +18 -27
  48. package/node_modules/@comis/agent/dist/executor/tool-deferral.js +29 -38
  49. package/node_modules/@comis/agent/dist/model/model-registry-adapter.js +1 -1
  50. package/node_modules/@comis/agent/dist/model/model-scanner.js +1 -1
  51. package/node_modules/@comis/agent/dist/safety/tool-retry-breaker.d.ts +11 -1
  52. package/node_modules/@comis/agent/dist/safety/tool-retry-breaker.js +19 -22
  53. package/node_modules/@comis/agent/dist/session/comis-session-manager.d.ts +16 -2
  54. package/node_modules/@comis/agent/dist/spawn/pi-mono-adapters.d.ts +1 -1
  55. package/node_modules/@comis/agent/dist/spawn/pi-mono-adapters.js +5 -5
  56. package/node_modules/@comis/agent/dist/workspace/data-env.d.ts +38 -0
  57. package/node_modules/@comis/agent/dist/workspace/data-env.js +56 -0
  58. package/node_modules/@comis/agent/dist/workspace/index.d.ts +1 -0
  59. package/node_modules/@comis/agent/dist/workspace/index.js +1 -0
  60. package/node_modules/@comis/agent/dist/workspace/templates.js +5 -1
  61. package/node_modules/@comis/agent/package.json +1 -1
  62. package/node_modules/@comis/channels/dist/index.d.ts +1 -1
  63. package/node_modules/@comis/channels/dist/index.js +1 -1
  64. package/node_modules/@comis/channels/dist/shared/channel-manager.d.ts +9 -3
  65. package/node_modules/@comis/channels/dist/shared/inbound-gate.d.ts +1 -1
  66. package/node_modules/@comis/channels/dist/shared/inbound-gate.js +22 -7
  67. package/node_modules/@comis/channels/dist/shared/inbound-pipeline.d.ts +10 -3
  68. package/node_modules/@comis/channels/dist/shared/inbound-route.d.ts +1 -1
  69. package/node_modules/@comis/channels/dist/shared/inbound-route.js +13 -2
  70. package/node_modules/@comis/channels/dist/shared/response-filter.d.ts +11 -24
  71. package/node_modules/@comis/channels/dist/shared/response-filter.js +25 -53
  72. package/node_modules/@comis/channels/package.json +1 -1
  73. package/node_modules/@comis/cli/dist/commands/providers.d.ts +1 -2
  74. package/node_modules/@comis/cli/dist/commands/providers.js +5 -6
  75. package/node_modules/@comis/cli/package.json +1 -1
  76. package/node_modules/@comis/core/dist/config/field-metadata.js +2 -0
  77. package/node_modules/@comis/core/dist/config/immutable-keys.js +4 -1
  78. package/node_modules/@comis/core/dist/config/index.d.ts +4 -0
  79. package/node_modules/@comis/core/dist/config/index.js +2 -0
  80. package/node_modules/@comis/core/dist/config/schema-agent.d.ts +0 -792
  81. package/node_modules/@comis/core/dist/config/schema-approvals.d.ts +0 -14
  82. package/node_modules/@comis/core/dist/config/schema-auto-reply-engine.d.ts +0 -6
  83. package/node_modules/@comis/core/dist/config/schema-background-tasks.d.ts +0 -12
  84. package/node_modules/@comis/core/dist/config/schema-browser.d.ts +0 -18
  85. package/node_modules/@comis/core/dist/config/schema-channel.d.ts +0 -158
  86. package/node_modules/@comis/core/dist/config/schema-coalescer.d.ts +0 -5
  87. package/node_modules/@comis/core/dist/config/schema-daemon.d.ts +0 -32
  88. package/node_modules/@comis/core/dist/config/schema-delivery.d.ts +0 -18
  89. package/node_modules/@comis/core/dist/config/schema-documentation.d.ts +0 -12
  90. package/node_modules/@comis/core/dist/config/schema-embedding.d.ts +0 -20
  91. package/node_modules/@comis/core/dist/config/schema-envelope.d.ts +0 -15
  92. package/node_modules/@comis/core/dist/config/schema-gateway.d.ts +0 -37
  93. package/node_modules/@comis/core/dist/config/schema-gemini-cache.d.ts +0 -2
  94. package/node_modules/@comis/core/dist/config/schema-integrations.d.ts +0 -318
  95. package/node_modules/@comis/core/dist/config/schema-lifecycle-reactions.d.ts +0 -18
  96. package/node_modules/@comis/core/dist/config/schema-memory-review.d.ts +0 -7
  97. package/node_modules/@comis/core/dist/config/schema-memory.d.ts +0 -16
  98. package/node_modules/@comis/core/dist/config/schema-messages.d.ts +0 -8
  99. package/node_modules/@comis/core/dist/config/schema-models.d.ts +0 -15
  100. package/node_modules/@comis/core/dist/config/schema-notification.d.ts +0 -5
  101. package/node_modules/@comis/core/dist/config/schema-oauth.d.ts +0 -5
  102. package/node_modules/@comis/core/dist/config/schema-observability.d.ts +0 -38
  103. package/node_modules/@comis/core/dist/config/schema-output-retention.d.ts +34 -0
  104. package/node_modules/@comis/core/dist/config/schema-output-retention.js +48 -0
  105. package/node_modules/@comis/core/dist/config/schema-plugins.d.ts +0 -8
  106. package/node_modules/@comis/core/dist/config/schema-providers.d.ts +0 -64
  107. package/node_modules/@comis/core/dist/config/schema-queue.d.ts +0 -58
  108. package/node_modules/@comis/core/dist/config/schema-response-prefix.d.ts +0 -2
  109. package/node_modules/@comis/core/dist/config/schema-retry.d.ts +0 -6
  110. package/node_modules/@comis/core/dist/config/schema-scheduler.d.ts +0 -39
  111. package/node_modules/@comis/core/dist/config/schema-secrets.d.ts +0 -3
  112. package/node_modules/@comis/core/dist/config/schema-security.d.ts +0 -18
  113. package/node_modules/@comis/core/dist/config/schema-send-policy.d.ts +0 -13
  114. package/node_modules/@comis/core/dist/config/schema-sender-trust-display.d.ts +0 -5
  115. package/node_modules/@comis/core/dist/config/schema-serializer.js +2 -0
  116. package/node_modules/@comis/core/dist/config/schema-skills.d.ts +0 -61
  117. package/node_modules/@comis/core/dist/config/schema-streaming.d.ts +0 -38
  118. package/node_modules/@comis/core/dist/config/schema-telegram-file-guard.d.ts +0 -3
  119. package/node_modules/@comis/core/dist/config/schema-tooling.d.ts +87 -0
  120. package/node_modules/@comis/core/dist/config/schema-tooling.js +152 -0
  121. package/node_modules/@comis/core/dist/config/schema-verbosity.d.ts +0 -12
  122. package/node_modules/@comis/core/dist/config/schema-webhooks.d.ts +0 -40
  123. package/node_modules/@comis/core/dist/config/schema.d.ts +41 -38
  124. package/node_modules/@comis/core/dist/config/schema.js +6 -0
  125. package/node_modules/@comis/core/dist/context/context.d.ts +0 -4
  126. package/node_modules/@comis/core/dist/domain/approval-request.d.ts +0 -17
  127. package/node_modules/@comis/core/dist/domain/background-task-origin.d.ts +0 -10
  128. package/node_modules/@comis/core/dist/domain/delivery-origin.d.ts +0 -5
  129. package/node_modules/@comis/core/dist/domain/execution-graph.d.ts +0 -48
  130. package/node_modules/@comis/core/dist/domain/memory-entry.d.ts +0 -3
  131. package/node_modules/@comis/core/dist/domain/model-compat.d.ts +0 -4
  132. package/node_modules/@comis/core/dist/domain/normalized-message.d.ts +0 -15
  133. package/node_modules/@comis/core/dist/domain/provider-capabilities.d.ts +0 -6
  134. package/node_modules/@comis/core/dist/domain/rich-message.d.ts +0 -14
  135. package/node_modules/@comis/core/dist/domain/subagent-context-config.d.ts +0 -22
  136. package/node_modules/@comis/core/dist/domain/subagent-context-types.d.ts +0 -8
  137. package/node_modules/@comis/core/dist/event-bus/events-agent.d.ts +31 -0
  138. package/node_modules/@comis/core/dist/event-bus/events-infra.d.ts +5 -0
  139. package/node_modules/@comis/core/dist/exports/config.d.ts +2 -2
  140. package/node_modules/@comis/core/dist/exports/config.js +3 -1
  141. package/node_modules/@comis/core/dist/exports/hooks.d.ts +1 -1
  142. package/node_modules/@comis/core/dist/exports/ports.d.ts +2 -2
  143. package/node_modules/@comis/core/dist/exports/ports.js +1 -1
  144. package/node_modules/@comis/core/dist/ports/channel-plugin.d.ts +0 -13
  145. package/node_modules/@comis/core/dist/ports/index.d.ts +2 -0
  146. package/node_modules/@comis/core/dist/ports/index.js +4 -0
  147. package/node_modules/@comis/core/dist/ports/no-op-tool-capability.d.ts +30 -0
  148. package/node_modules/@comis/core/dist/ports/no-op-tool-capability.js +47 -0
  149. package/node_modules/@comis/core/dist/ports/tool-capability.d.ts +165 -0
  150. package/node_modules/@comis/core/dist/ports/tool-capability.js +15 -0
  151. package/node_modules/@comis/core/dist/security/audit.d.ts +0 -11
  152. package/node_modules/@comis/core/dist/tool-metadata.d.ts +21 -1
  153. package/node_modules/@comis/core/dist/tool-metadata.js +1 -1
  154. package/node_modules/@comis/core/package.json +1 -1
  155. package/node_modules/@comis/daemon/bundled-skills/skill-creator/scripts/validate-skill.py +1 -1
  156. package/node_modules/@comis/daemon/dist/daemon.js +89 -14
  157. package/node_modules/@comis/daemon/dist/rpc/agent-inline-workspace.d.ts +1 -1
  158. package/node_modules/@comis/daemon/dist/rpc/agent-inline-workspace.js +1 -1
  159. package/node_modules/@comis/daemon/dist/rpc/builtin-provider-guard.js +2 -2
  160. package/node_modules/@comis/daemon/dist/rpc/credential-resolver.js +1 -1
  161. package/node_modules/@comis/daemon/dist/rpc/model-handlers.d.ts +1 -1
  162. package/node_modules/@comis/daemon/dist/rpc/model-handlers.js +2 -2
  163. package/node_modules/@comis/daemon/dist/sub-agent-runner.d.ts +18 -0
  164. package/node_modules/@comis/daemon/dist/sub-agent-runner.js +41 -9
  165. package/node_modules/@comis/daemon/dist/wiring/index.d.ts +2 -0
  166. package/node_modules/@comis/daemon/dist/wiring/index.js +1 -0
  167. package/node_modules/@comis/daemon/dist/wiring/setup-agents.d.ts +36 -2
  168. package/node_modules/@comis/daemon/dist/wiring/setup-agents.js +45 -8
  169. package/node_modules/@comis/daemon/dist/wiring/setup-background-completion-runner.d.ts +28 -9
  170. package/node_modules/@comis/daemon/dist/wiring/setup-background-completion-runner.js +36 -9
  171. package/node_modules/@comis/daemon/dist/wiring/setup-background-tasks.js +2 -2
  172. package/node_modules/@comis/daemon/dist/wiring/setup-channels.d.ts +9 -2
  173. package/node_modules/@comis/daemon/dist/wiring/setup-channels.js +15 -9
  174. package/node_modules/@comis/daemon/dist/wiring/setup-cross-session.d.ts +20 -5
  175. package/node_modules/@comis/daemon/dist/wiring/setup-cross-session.js +20 -15
  176. package/node_modules/@comis/daemon/dist/wiring/setup-delivery.js +14 -2
  177. package/node_modules/@comis/daemon/dist/wiring/setup-gateway.d.ts +4 -6
  178. package/node_modules/@comis/daemon/dist/wiring/setup-gateway.js +3 -5
  179. package/node_modules/@comis/daemon/dist/wiring/setup-heartbeat.d.ts +20 -5
  180. package/node_modules/@comis/daemon/dist/wiring/setup-heartbeat.js +11 -2
  181. package/node_modules/@comis/daemon/dist/wiring/setup-output-retention.d.ts +89 -0
  182. package/node_modules/@comis/daemon/dist/wiring/setup-output-retention.js +212 -0
  183. package/node_modules/@comis/daemon/dist/wiring/setup-tools.d.ts +18 -4
  184. package/node_modules/@comis/daemon/dist/wiring/setup-tools.js +29 -10
  185. package/node_modules/@comis/daemon/dist/wiring/tool-capability-adapter.d.ts +75 -0
  186. package/node_modules/@comis/daemon/dist/wiring/tool-capability-adapter.js +253 -0
  187. package/node_modules/@comis/daemon/package.json +1 -1
  188. package/node_modules/@comis/gateway/dist/webhook/webhook-endpoint.d.ts +0 -4
  189. package/node_modules/@comis/gateway/package.json +1 -1
  190. package/node_modules/@comis/infra/package.json +1 -1
  191. package/node_modules/@comis/memory/package.json +1 -1
  192. package/node_modules/@comis/scheduler/dist/cron/cron-types.d.ts +0 -42
  193. package/node_modules/@comis/scheduler/dist/heartbeat/agent-heartbeat-source.d.ts +29 -8
  194. package/node_modules/@comis/scheduler/dist/heartbeat/agent-heartbeat-source.js +19 -7
  195. package/node_modules/@comis/scheduler/dist/system-events/system-event-types.d.ts +0 -3
  196. package/node_modules/@comis/scheduler/dist/tasks/task-types.d.ts +0 -17
  197. package/node_modules/@comis/scheduler/package.json +1 -1
  198. package/node_modules/@comis/shared/dist/index.d.ts +3 -0
  199. package/node_modules/@comis/shared/dist/index.js +4 -0
  200. package/node_modules/@comis/shared/dist/mcp-tool-name.d.ts +78 -0
  201. package/node_modules/@comis/shared/dist/mcp-tool-name.js +92 -0
  202. package/node_modules/@comis/shared/dist/silent-tokens.d.ts +38 -0
  203. package/node_modules/@comis/shared/dist/silent-tokens.js +51 -0
  204. package/node_modules/@comis/shared/dist/visible-delivery.d.ts +28 -0
  205. package/node_modules/@comis/shared/dist/visible-delivery.js +16 -0
  206. package/node_modules/@comis/shared/package.json +1 -1
  207. package/node_modules/@comis/skills/dist/bridge/mcp-tool-bridge.d.ts +2 -13
  208. package/node_modules/@comis/skills/dist/bridge/mcp-tool-bridge.js +3 -21
  209. package/node_modules/@comis/skills/dist/bridge/tool-metadata-enforcement.js +1 -1
  210. package/node_modules/@comis/skills/dist/bridge/tool-metadata-registry.js +4 -4
  211. package/node_modules/@comis/skills/dist/builtin/exec-tool.d.ts +55 -9
  212. package/node_modules/@comis/skills/dist/builtin/exec-tool.js +383 -19
  213. package/node_modules/@comis/skills/dist/builtin/install-detour.d.ts +67 -0
  214. package/node_modules/@comis/skills/dist/builtin/install-detour.js +342 -0
  215. package/node_modules/@comis/skills/dist/builtin/platform/admin-manage-factory.js +5 -5
  216. package/node_modules/@comis/skills/dist/builtin/platform/agents-manage-tool.d.ts +2 -2
  217. package/node_modules/@comis/skills/dist/builtin/platform/agents-manage-tool.js +2 -2
  218. package/node_modules/@comis/skills/dist/builtin/platform/message-tool.js +18 -0
  219. package/node_modules/@comis/skills/dist/builtin/platform/messaging-factory.d.ts +18 -1
  220. package/node_modules/@comis/skills/dist/builtin/platform/messaging-factory.js +18 -2
  221. package/node_modules/@comis/skills/dist/builtin/platform/models-manage-tool.js +3 -3
  222. package/node_modules/@comis/skills/dist/builtin/process-registry.d.ts +14 -0
  223. package/node_modules/@comis/skills/dist/builtin/process-tool.d.ts +24 -4
  224. package/node_modules/@comis/skills/dist/builtin/process-tool.js +25 -7
  225. package/node_modules/@comis/skills/dist/builtin/sandbox/bwrap-provider.d.ts +1 -1
  226. package/node_modules/@comis/skills/dist/builtin/sandbox/bwrap-provider.js +9 -0
  227. package/node_modules/@comis/skills/dist/index.d.ts +4 -1
  228. package/node_modules/@comis/skills/dist/index.js +3 -1
  229. package/node_modules/@comis/skills/dist/manifest/capability-parser.d.ts +44 -0
  230. package/node_modules/@comis/skills/dist/manifest/capability-parser.js +68 -0
  231. package/node_modules/@comis/skills/dist/manifest/schema.d.ts +44 -37
  232. package/node_modules/@comis/skills/dist/manifest/schema.js +35 -0
  233. package/node_modules/@comis/skills/dist/registry/discovery.d.ts +8 -0
  234. package/node_modules/@comis/skills/dist/registry/discovery.js +10 -3
  235. package/node_modules/@comis/skills/dist/registry/skill-registry.d.ts +45 -1
  236. package/node_modules/@comis/skills/dist/registry/skill-registry.js +70 -7
  237. package/node_modules/@comis/skills/package.json +1 -1
  238. package/node_modules/@comis/web/package.json +1 -1
  239. 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>;