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
@@ -58,20 +58,15 @@ export declare const ReplyModeSchema: z.ZodDefault<z.ZodEnum<{
58
58
  * streaming behavior, typing indicator mode, and delivery timing/coalescer settings.
59
59
  */
60
60
  export declare const PerChannelStreamingConfigSchema: z.ZodObject<{
61
- /** Whether block streaming is enabled for this channel */
62
61
  enabled: z.ZodDefault<z.ZodBoolean>;
63
- /** How to split response text into blocks */
64
62
  chunkMode: z.ZodDefault<z.ZodEnum<{
65
63
  length: "length";
66
64
  paragraph: "paragraph";
67
65
  newline: "newline";
68
66
  sentence: "sentence";
69
67
  }>>;
70
- /** Maximum characters per block (falls back to platform maxMessageChars if not set) */
71
68
  chunkMaxChars: z.ZodOptional<z.ZodNumber>;
72
- /** Minimum characters before allowing a split point */
73
69
  chunkMinChars: z.ZodDefault<z.ZodNumber>;
74
- /** Delivery timing configuration (pacing between block deliveries) */
75
70
  deliveryTiming: z.ZodDefault<z.ZodObject<{
76
71
  mode: z.ZodDefault<z.ZodEnum<{
77
72
  custom: "custom";
@@ -84,7 +79,6 @@ export declare const PerChannelStreamingConfigSchema: z.ZodObject<{
84
79
  jitterMs: z.ZodDefault<z.ZodNumber>;
85
80
  firstBlockDelayMs: z.ZodDefault<z.ZodNumber>;
86
81
  }, z.core.$strict>>;
87
- /** Block coalescer configuration (accumulation before flush) */
88
82
  coalescer: z.ZodDefault<z.ZodObject<{
89
83
  minChars: z.ZodDefault<z.ZodNumber>;
90
84
  maxChars: z.ZodDefault<z.ZodNumber>;
@@ -95,34 +89,26 @@ export declare const PerChannelStreamingConfigSchema: z.ZodObject<{
95
89
  }>>;
96
90
  adaptiveIdle: z.ZodDefault<z.ZodBoolean>;
97
91
  }, z.core.$strict>>;
98
- /** When to show typing indicators */
99
92
  typingMode: z.ZodDefault<z.ZodEnum<{
100
93
  message: "message";
101
94
  never: "never";
102
95
  instant: "instant";
103
96
  thinking: "thinking";
104
97
  }>>;
105
- /** Typing indicator refresh interval in ms (platforms auto-clear after ~10s) */
106
98
  typingRefreshMs: z.ZodDefault<z.ZodNumber>;
107
- /** Consecutive sendTyping failures before circuit breaker trips (default 3) */
108
99
  typingCircuitBreakerThreshold: z.ZodDefault<z.ZodNumber>;
109
- /** Maximum typing indicator duration in ms before auto-stop (default 60s) */
110
100
  typingTtlMs: z.ZodDefault<z.ZodNumber>;
111
- /** Whether to use Markdown IR pipeline for format-first chunking (prevents double-chunking with chunkBlocks) */
112
101
  useMarkdownIR: z.ZodDefault<z.ZodBoolean>;
113
- /** Table conversion mode when using IR pipeline */
114
102
  tableMode: z.ZodDefault<z.ZodEnum<{
115
103
  off: "off";
116
104
  code: "code";
117
105
  bullets: "bullets";
118
106
  }>>;
119
- /** Reply-to threading mode for outbound messages */
120
107
  replyMode: z.ZodDefault<z.ZodEnum<{
121
108
  off: "off";
122
109
  first: "first";
123
110
  all: "all";
124
111
  }>>;
125
- /** Per-chat-type reply mode overrides (e.g., { dm: "off", group: "first", forum: "all" }) */
126
112
  replyModeByChatType: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
127
113
  channel: "channel";
128
114
  dm: "dm";
@@ -142,16 +128,13 @@ export declare const PerChannelStreamingConfigSchema: z.ZodObject<{
142
128
  * Per-channel overrides take precedence over these defaults.
143
129
  */
144
130
  export declare const StreamingConfigSchema: z.ZodObject<{
145
- /** Global enable/disable for block streaming (defaults to enabled) */
146
131
  enabled: z.ZodDefault<z.ZodBoolean>;
147
- /** Default chunk mode for channels without per-channel override */
148
132
  defaultChunkMode: z.ZodDefault<z.ZodEnum<{
149
133
  length: "length";
150
134
  paragraph: "paragraph";
151
135
  newline: "newline";
152
136
  sentence: "sentence";
153
137
  }>>;
154
- /** Default delivery timing for channels without per-channel override */
155
138
  defaultDeliveryTiming: z.ZodDefault<z.ZodObject<{
156
139
  mode: z.ZodDefault<z.ZodEnum<{
157
140
  custom: "custom";
@@ -164,7 +147,6 @@ export declare const StreamingConfigSchema: z.ZodObject<{
164
147
  jitterMs: z.ZodDefault<z.ZodNumber>;
165
148
  firstBlockDelayMs: z.ZodDefault<z.ZodNumber>;
166
149
  }, z.core.$strict>>;
167
- /** Default coalescer for channels without per-channel override */
168
150
  defaultCoalescer: z.ZodDefault<z.ZodObject<{
169
151
  minChars: z.ZodDefault<z.ZodNumber>;
170
152
  maxChars: z.ZodDefault<z.ZodNumber>;
@@ -175,45 +157,34 @@ export declare const StreamingConfigSchema: z.ZodObject<{
175
157
  }>>;
176
158
  adaptiveIdle: z.ZodDefault<z.ZodBoolean>;
177
159
  }, z.core.$strict>>;
178
- /** Default typing indicator mode */
179
160
  defaultTypingMode: z.ZodDefault<z.ZodEnum<{
180
161
  message: "message";
181
162
  never: "never";
182
163
  instant: "instant";
183
164
  thinking: "thinking";
184
165
  }>>;
185
- /** Default typing indicator refresh interval in ms */
186
166
  defaultTypingRefreshMs: z.ZodDefault<z.ZodNumber>;
187
- /** Default table conversion mode for IR pipeline */
188
167
  defaultTableMode: z.ZodDefault<z.ZodEnum<{
189
168
  off: "off";
190
169
  code: "code";
191
170
  bullets: "bullets";
192
171
  }>>;
193
- /** Default for Markdown IR pipeline (true = format-aware chunking with platform rendering) */
194
172
  defaultUseMarkdownIR: z.ZodDefault<z.ZodBoolean>;
195
- /** Default reply-to threading mode for channels without per-channel override */
196
173
  defaultReplyMode: z.ZodDefault<z.ZodEnum<{
197
174
  off: "off";
198
175
  first: "first";
199
176
  all: "all";
200
177
  }>>;
201
- /** Per-channel-type streaming configuration overrides */
202
178
  perChannel: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
203
- /** Whether block streaming is enabled for this channel */
204
179
  enabled: z.ZodDefault<z.ZodBoolean>;
205
- /** How to split response text into blocks */
206
180
  chunkMode: z.ZodDefault<z.ZodEnum<{
207
181
  length: "length";
208
182
  paragraph: "paragraph";
209
183
  newline: "newline";
210
184
  sentence: "sentence";
211
185
  }>>;
212
- /** Maximum characters per block (falls back to platform maxMessageChars if not set) */
213
186
  chunkMaxChars: z.ZodOptional<z.ZodNumber>;
214
- /** Minimum characters before allowing a split point */
215
187
  chunkMinChars: z.ZodDefault<z.ZodNumber>;
216
- /** Delivery timing configuration (pacing between block deliveries) */
217
188
  deliveryTiming: z.ZodDefault<z.ZodObject<{
218
189
  mode: z.ZodDefault<z.ZodEnum<{
219
190
  custom: "custom";
@@ -226,7 +197,6 @@ export declare const StreamingConfigSchema: z.ZodObject<{
226
197
  jitterMs: z.ZodDefault<z.ZodNumber>;
227
198
  firstBlockDelayMs: z.ZodDefault<z.ZodNumber>;
228
199
  }, z.core.$strict>>;
229
- /** Block coalescer configuration (accumulation before flush) */
230
200
  coalescer: z.ZodDefault<z.ZodObject<{
231
201
  minChars: z.ZodDefault<z.ZodNumber>;
232
202
  maxChars: z.ZodDefault<z.ZodNumber>;
@@ -237,34 +207,26 @@ export declare const StreamingConfigSchema: z.ZodObject<{
237
207
  }>>;
238
208
  adaptiveIdle: z.ZodDefault<z.ZodBoolean>;
239
209
  }, z.core.$strict>>;
240
- /** When to show typing indicators */
241
210
  typingMode: z.ZodDefault<z.ZodEnum<{
242
211
  message: "message";
243
212
  never: "never";
244
213
  instant: "instant";
245
214
  thinking: "thinking";
246
215
  }>>;
247
- /** Typing indicator refresh interval in ms (platforms auto-clear after ~10s) */
248
216
  typingRefreshMs: z.ZodDefault<z.ZodNumber>;
249
- /** Consecutive sendTyping failures before circuit breaker trips (default 3) */
250
217
  typingCircuitBreakerThreshold: z.ZodDefault<z.ZodNumber>;
251
- /** Maximum typing indicator duration in ms before auto-stop (default 60s) */
252
218
  typingTtlMs: z.ZodDefault<z.ZodNumber>;
253
- /** Whether to use Markdown IR pipeline for format-first chunking (prevents double-chunking with chunkBlocks) */
254
219
  useMarkdownIR: z.ZodDefault<z.ZodBoolean>;
255
- /** Table conversion mode when using IR pipeline */
256
220
  tableMode: z.ZodDefault<z.ZodEnum<{
257
221
  off: "off";
258
222
  code: "code";
259
223
  bullets: "bullets";
260
224
  }>>;
261
- /** Reply-to threading mode for outbound messages */
262
225
  replyMode: z.ZodDefault<z.ZodEnum<{
263
226
  off: "off";
264
227
  first: "first";
265
228
  all: "all";
266
229
  }>>;
267
- /** Per-chat-type reply mode overrides (e.g., { dm: "off", group: "first", forum: "all" }) */
268
230
  replyModeByChatType: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
269
231
  channel: "channel";
270
232
  dm: "dm";
@@ -9,11 +9,8 @@ import { z } from "zod";
9
9
  * Enabled by default for Telegram channels.
10
10
  */
11
11
  export declare const TelegramFileRefGuardConfigSchema: z.ZodObject<{
12
- /** Whether the file reference guard is active */
13
12
  enabled: z.ZodDefault<z.ZodBoolean>;
14
- /** Additional file extensions to detect beyond the built-in curated set */
15
13
  additionalExtensions: z.ZodDefault<z.ZodArray<z.ZodString>>;
16
- /** File extensions to exclude from guard detection */
17
14
  excludedExtensions: z.ZodDefault<z.ZodArray<z.ZodString>>;
18
15
  }, z.core.$strict>;
19
16
  export type TelegramFileRefGuardConfig = z.infer<typeof TelegramFileRefGuardConfigSchema>;
@@ -0,0 +1,87 @@
1
+ /**
2
+ * Tool-first capability-layer configuration schema (v1.1).
3
+ *
4
+ * Operator-only YAML tree controlling capability clusters, MCP/skill
5
+ * capability hints, install-detour mode, and the per-turn capability
6
+ * index toggle. The entire `tooling.*` subtree is immutable at runtime
7
+ * (see immutable-keys.ts) -- agents cannot self-configure capability
8
+ * routing or detour policy.
9
+ *
10
+ * @module
11
+ */
12
+ import { z } from "zod";
13
+ /**
14
+ * Tool-first capability-layer configuration.
15
+ *
16
+ * Strict object: unknown top-level keys (and unknown keys at every nested
17
+ * level) are rejected at parse time. Every section is `.default(...)` so an
18
+ * empty `tooling: {}` block (or omitting `tooling` entirely from
19
+ * AppConfig) yields a fully-populated default tree.
20
+ *
21
+ * The entire tree is immutable at runtime and operator-only -- agents must
22
+ * not self-configure capability routing or detour policy.
23
+ */
24
+ export declare const ToolingConfigSchema: z.ZodObject<{
25
+ capabilityClusters: z.ZodDefault<z.ZodObject<{
26
+ clusters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
27
+ label: z.ZodString;
28
+ priority: z.ZodDefault<z.ZodNumber>;
29
+ preferOverInstalls: z.ZodDefault<z.ZodBoolean>;
30
+ }, z.core.$strict>>>;
31
+ builtinAssignments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
32
+ }, z.core.$strict>>;
33
+ mcp: z.ZodDefault<z.ZodObject<{
34
+ capabilityHints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
35
+ cluster: z.ZodString;
36
+ description: z.ZodString;
37
+ replacesPackages: z.ZodDefault<z.ZodArray<z.ZodString>>;
38
+ }, z.core.$strict>>>;
39
+ }, z.core.$strict>>;
40
+ skills: z.ZodDefault<z.ZodObject<{
41
+ capabilityHints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
42
+ cluster: z.ZodString;
43
+ description: z.ZodOptional<z.ZodString>;
44
+ replacesPackages: z.ZodDefault<z.ZodArray<z.ZodString>>;
45
+ }, z.core.$strict>>>;
46
+ }, z.core.$strict>>;
47
+ capabilityIndex: z.ZodDefault<z.ZodObject<{
48
+ enabled: z.ZodDefault<z.ZodBoolean>;
49
+ }, z.core.$strict>>;
50
+ installDetours: z.ZodDefault<z.ZodObject<{
51
+ mode: z.ZodDefault<z.ZodEnum<{
52
+ observe: "observe";
53
+ advise: "advise";
54
+ "soft-stop": "soft-stop";
55
+ }>>;
56
+ }, z.core.$strict>>;
57
+ }, z.core.$strict>;
58
+ /** Inferred ToolingConfig type. */
59
+ export type ToolingConfig = z.infer<typeof ToolingConfigSchema>;
60
+ /**
61
+ * Three reserved cluster IDs ship by default. Renderer references them by literal:
62
+ * - "external-integrations" -- connected MCP servers without an operator hint
63
+ * - "prompt-skills" -- visible skills without operator/manifest metadata
64
+ * - "other-tools" -- non-MCP tools without getBuiltinCluster() resolution
65
+ *
66
+ * Operators may override label, priority, preferOverInstalls per-key, but the IDs
67
+ * themselves are fixed.
68
+ *
69
+ * IMPORTANT: This object is intentionally NOT used as a `.default(...)` argument on
70
+ * `clusters` because z.record(...).default({}) does NOT key-merge -- it replaces
71
+ * the whole record. The merge MUST happen at adapter construction:
72
+ *
73
+ * const mergedClusters = {
74
+ * ...DEFAULT_CLUSTER_CONFIG,
75
+ * ...config.tooling.capabilityClusters.clusters, // operator wins per-key
76
+ * };
77
+ */
78
+ export declare const DEFAULT_CLUSTER_CONFIG: Readonly<Record<string, {
79
+ readonly label: string;
80
+ readonly priority: number;
81
+ readonly preferOverInstalls: boolean;
82
+ }>>;
83
+ /**
84
+ * Default builtin tool->cluster assignments. Empty by default; operators
85
+ * populate via `tooling.capabilityClusters.builtinAssignments`.
86
+ */
87
+ export declare const DEFAULT_BUILTIN_ASSIGNMENTS: Readonly<Record<string, string>>;
@@ -0,0 +1,152 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ /**
3
+ * Tool-first capability-layer configuration schema (v1.1).
4
+ *
5
+ * Operator-only YAML tree controlling capability clusters, MCP/skill
6
+ * capability hints, install-detour mode, and the per-turn capability
7
+ * index toggle. The entire `tooling.*` subtree is immutable at runtime
8
+ * (see immutable-keys.ts) -- agents cannot self-configure capability
9
+ * routing or detour policy.
10
+ *
11
+ * @module
12
+ */
13
+ import { z } from "zod";
14
+ /**
15
+ * Operator-overridable shape for a single cluster entry.
16
+ *
17
+ * `priority` (default 100) and `preferOverInstalls` (default true) make sense
18
+ * across both reserved and operator-defined clusters. Reserved IDs are listed
19
+ * in DEFAULT_CLUSTER_CONFIG below; operators may override scalar fields per-key
20
+ * but the IDs themselves are fixed (renderer references them by literal).
21
+ */
22
+ const ClusterEntrySchema = z.strictObject({
23
+ /** Display label for the cluster (e.g., "Data fetching - financial / market"). */
24
+ label: z.string().min(1),
25
+ /** Render-order priority. Lower numbers surface earlier. (default: 100) */
26
+ priority: z.number().int().default(100),
27
+ /** Should this cluster's tools be preferred over `pip install`/`npm install` of comparable packages? (default: true) */
28
+ preferOverInstalls: z.boolean().default(true),
29
+ });
30
+ /**
31
+ * Capability hint shape for an MCP server.
32
+ *
33
+ * BOTH `cluster` and `description` are required. The asymmetry vs. skills is
34
+ * intentional: MCP servers do not carry an in-band human-readable description
35
+ * suitable for the renderer, so the operator must supply one. Skills already
36
+ * carry `description` in the manifest, so the hint may omit it.
37
+ */
38
+ const McpCapabilityHintSchema = z.strictObject({
39
+ cluster: z.string().min(1),
40
+ description: z.string().min(1),
41
+ replacesPackages: z.array(z.string().min(1)).default([]),
42
+ });
43
+ /**
44
+ * Capability hint shape for a prompt skill.
45
+ *
46
+ * `description` is optional -- skills carry their own description in the
47
+ * manifest frontmatter; the hint may override it but is not required to.
48
+ */
49
+ const SkillCapabilityHintSchema = z.strictObject({
50
+ cluster: z.string().min(1),
51
+ description: z.string().min(1).optional(),
52
+ replacesPackages: z.array(z.string().min(1)).default([]),
53
+ });
54
+ // Sub-section schemas (inner). Each top-level field uses
55
+ // `.default(() => Sub.parse({}))` so empty input yields fully-populated
56
+ // defaults (matches the codebase-wide convention -- see schema.ts root).
57
+ const CapabilityClustersSubSchema = z.strictObject({
58
+ clusters: z.record(z.string(), ClusterEntrySchema).default({}),
59
+ /** Builtin tool name -> cluster ID assignments. Operator-supplied. */
60
+ builtinAssignments: z.record(z.string(), z.string()).default({}),
61
+ });
62
+ const McpSubSchema = z.strictObject({
63
+ capabilityHints: z.record(z.string(), McpCapabilityHintSchema).default({}),
64
+ });
65
+ const SkillsSubSchema = z.strictObject({
66
+ capabilityHints: z.record(z.string(), SkillCapabilityHintSchema).default({}),
67
+ });
68
+ const CapabilityIndexSubSchema = z.strictObject({
69
+ enabled: z.boolean().default(true),
70
+ });
71
+ const InstallDetoursSubSchema = z.strictObject({
72
+ /**
73
+ * Install-detour mode controls how the install-detour validator acts when
74
+ * an exec command would `pip install` / `npm install` a package that
75
+ * overlaps with an already-connected MCP server or skill.
76
+ *
77
+ * - "observe" -- emit an event, no user-facing message, allow the install.
78
+ * - "advise" -- emit an event AND surface a hint to the agent. (default)
79
+ * - "soft-stop" -- emit an event AND block the install pending override.
80
+ */
81
+ mode: z.enum(["observe", "advise", "soft-stop"]).default("advise"),
82
+ });
83
+ /**
84
+ * Tool-first capability-layer configuration.
85
+ *
86
+ * Strict object: unknown top-level keys (and unknown keys at every nested
87
+ * level) are rejected at parse time. Every section is `.default(...)` so an
88
+ * empty `tooling: {}` block (or omitting `tooling` entirely from
89
+ * AppConfig) yields a fully-populated default tree.
90
+ *
91
+ * The entire tree is immutable at runtime and operator-only -- agents must
92
+ * not self-configure capability routing or detour policy.
93
+ */
94
+ export const ToolingConfigSchema = z.strictObject({
95
+ /**
96
+ * Cluster definitions and builtin tool->cluster assignments.
97
+ *
98
+ * NOTE: `clusters` is a `z.record(...)` whose default is `{}`, NOT
99
+ * `DEFAULT_CLUSTER_CONFIG`. See the load-bearing JSDoc on
100
+ * DEFAULT_CLUSTER_CONFIG below for why -- the merge-with-defaults
101
+ * contract is enforced at adapter-construction time.
102
+ */
103
+ capabilityClusters: CapabilityClustersSubSchema.default(() => CapabilityClustersSubSchema.parse({})),
104
+ /** Capability hints for connected MCP servers (keyed by server name). */
105
+ mcp: McpSubSchema.default(() => McpSubSchema.parse({})),
106
+ /** Capability hints for prompt skills (keyed by skill name or skill-key). */
107
+ skills: SkillsSubSchema.default(() => SkillsSubSchema.parse({})),
108
+ /** Per-turn capability index toggle. Default: true. */
109
+ capabilityIndex: CapabilityIndexSubSchema.default(() => CapabilityIndexSubSchema.parse({})),
110
+ /** Install-detour validator mode. Default: "advise". */
111
+ installDetours: InstallDetoursSubSchema.default(() => InstallDetoursSubSchema.parse({})),
112
+ });
113
+ /**
114
+ * Three reserved cluster IDs ship by default. Renderer references them by literal:
115
+ * - "external-integrations" -- connected MCP servers without an operator hint
116
+ * - "prompt-skills" -- visible skills without operator/manifest metadata
117
+ * - "other-tools" -- non-MCP tools without getBuiltinCluster() resolution
118
+ *
119
+ * Operators may override label, priority, preferOverInstalls per-key, but the IDs
120
+ * themselves are fixed.
121
+ *
122
+ * IMPORTANT: This object is intentionally NOT used as a `.default(...)` argument on
123
+ * `clusters` because z.record(...).default({}) does NOT key-merge -- it replaces
124
+ * the whole record. The merge MUST happen at adapter construction:
125
+ *
126
+ * const mergedClusters = {
127
+ * ...DEFAULT_CLUSTER_CONFIG,
128
+ * ...config.tooling.capabilityClusters.clusters, // operator wins per-key
129
+ * };
130
+ */
131
+ export const DEFAULT_CLUSTER_CONFIG = Object.freeze({
132
+ "external-integrations": Object.freeze({
133
+ label: "External integrations",
134
+ priority: 9999,
135
+ preferOverInstalls: true,
136
+ }),
137
+ "prompt-skills": Object.freeze({
138
+ label: "Prompt skills",
139
+ priority: 9999,
140
+ preferOverInstalls: true,
141
+ }),
142
+ "other-tools": Object.freeze({
143
+ label: "Other tools",
144
+ priority: 9999,
145
+ preferOverInstalls: false,
146
+ }),
147
+ });
148
+ /**
149
+ * Default builtin tool->cluster assignments. Empty by default; operators
150
+ * populate via `tooling.capabilityClusters.builtinAssignments`.
151
+ */
152
+ export const DEFAULT_BUILTIN_ASSIGNMENTS = Object.freeze({});
@@ -11,7 +11,6 @@ export declare const VerbosityLevelSchema: z.ZodEnum<{
11
11
  detailed: "detailed";
12
12
  }>;
13
13
  export declare const VerbosityOverrideSchema: z.ZodObject<{
14
- /** Override verbosity level for this channel. */
15
14
  level: z.ZodOptional<z.ZodEnum<{
16
15
  auto: "auto";
17
16
  terse: "terse";
@@ -19,17 +18,12 @@ export declare const VerbosityOverrideSchema: z.ZodObject<{
19
18
  standard: "standard";
20
19
  detailed: "detailed";
21
20
  }>>;
22
- /** Target response length in characters. */
23
21
  maxResponseChars: z.ZodOptional<z.ZodNumber>;
24
- /** Whether to use markdown formatting (undefined = no opinion). */
25
22
  useMarkdown: z.ZodOptional<z.ZodBoolean>;
26
- /** Whether code blocks are allowed. */
27
23
  allowCodeBlocks: z.ZodOptional<z.ZodBoolean>;
28
24
  }, z.core.$strict>;
29
25
  export declare const VerbosityConfigSchema: z.ZodObject<{
30
- /** Whether verbosity hints are enabled for this agent. */
31
26
  enabled: z.ZodDefault<z.ZodBoolean>;
32
- /** Default verbosity level. */
33
27
  defaultLevel: z.ZodDefault<z.ZodEnum<{
34
28
  auto: "auto";
35
29
  terse: "terse";
@@ -37,7 +31,6 @@ export declare const VerbosityConfigSchema: z.ZodObject<{
37
31
  standard: "standard";
38
32
  detailed: "detailed";
39
33
  }>>;
40
- /** Override level for thread messages. */
41
34
  threadLevel: z.ZodOptional<z.ZodEnum<{
42
35
  auto: "auto";
43
36
  terse: "terse";
@@ -45,9 +38,7 @@ export declare const VerbosityConfigSchema: z.ZodObject<{
45
38
  standard: "standard";
46
39
  detailed: "detailed";
47
40
  }>>;
48
- /** Per-channel overrides keyed by channelType. */
49
41
  overrides: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
50
- /** Override verbosity level for this channel. */
51
42
  level: z.ZodOptional<z.ZodEnum<{
52
43
  auto: "auto";
53
44
  terse: "terse";
@@ -55,11 +46,8 @@ export declare const VerbosityConfigSchema: z.ZodObject<{
55
46
  standard: "standard";
56
47
  detailed: "detailed";
57
48
  }>>;
58
- /** Target response length in characters. */
59
49
  maxResponseChars: z.ZodOptional<z.ZodNumber>;
60
- /** Whether to use markdown formatting (undefined = no opinion). */
61
50
  useMarkdown: z.ZodOptional<z.ZodBoolean>;
62
- /** Whether code blocks are allowed. */
63
51
  allowCodeBlocks: z.ZodOptional<z.ZodBoolean>;
64
52
  }, z.core.$strict>>>;
65
53
  }, z.core.$strict>;
@@ -6,9 +6,7 @@ import { z } from "zod";
6
6
  * If neither is provided, the mapping matches all requests.
7
7
  */
8
8
  export declare const WebhookMappingMatchSchema: z.ZodObject<{
9
- /** URL path segment to match (normalized: leading/trailing slashes stripped) */
10
9
  path: z.ZodOptional<z.ZodString>;
11
- /** Source identifier to match (from payload or header) */
12
10
  source: z.ZodOptional<z.ZodString>;
13
11
  }, z.core.$strict>;
14
12
  /**
@@ -19,44 +17,28 @@ export declare const WebhookMappingMatchSchema: z.ZodObject<{
19
17
  * message template).
20
18
  */
21
19
  export declare const WebhookMappingConfigSchema: z.ZodObject<{
22
- /** Unique identifier for this mapping */
23
20
  id: z.ZodOptional<z.ZodString>;
24
- /** Match conditions (path and/or source) */
25
21
  match: z.ZodOptional<z.ZodObject<{
26
- /** URL path segment to match (normalized: leading/trailing slashes stripped) */
27
22
  path: z.ZodOptional<z.ZodString>;
28
- /** Source identifier to match (from payload or header) */
29
23
  source: z.ZodOptional<z.ZodString>;
30
24
  }, z.core.$strict>>;
31
- /** Action to take: "wake" triggers heartbeat, "agent" invokes agent */
32
25
  action: z.ZodDefault<z.ZodEnum<{
33
26
  wake: "wake";
34
27
  agent: "agent";
35
28
  }>>;
36
- /** Wake mode: "now" fires immediately, "next-heartbeat" waits for next cycle */
37
29
  wakeMode: z.ZodDefault<z.ZodEnum<{
38
30
  now: "now";
39
31
  "next-heartbeat": "next-heartbeat";
40
32
  }>>;
41
- /** Human-readable name for this mapping */
42
33
  name: z.ZodOptional<z.ZodString>;
43
- /** Target agent ID for agent actions */
44
34
  agentId: z.ZodOptional<z.ZodString>;
45
- /** Session key template (supports {{expr}} placeholders) */
46
35
  sessionKey: z.ZodOptional<z.ZodString>;
47
- /** Message template for agent actions (supports {{expr}} placeholders) */
48
36
  messageTemplate: z.ZodOptional<z.ZodString>;
49
- /** Alternative text template (plain text version) */
50
37
  textTemplate: z.ZodOptional<z.ZodString>;
51
- /** Whether to deliver the message to a channel */
52
38
  deliver: z.ZodOptional<z.ZodBoolean>;
53
- /** Target channel for delivery */
54
39
  channel: z.ZodOptional<z.ZodString>;
55
- /** Target recipient for delivery */
56
40
  to: z.ZodOptional<z.ZodString>;
57
- /** Model override for agent execution */
58
41
  model: z.ZodOptional<z.ZodString>;
59
- /** Timeout in seconds for agent execution */
60
42
  timeoutSeconds: z.ZodOptional<z.ZodNumber>;
61
43
  }, z.core.$strict>;
62
44
  /**
@@ -66,11 +48,8 @@ export declare const WebhookMappingConfigSchema: z.ZodObject<{
66
48
  * body size limits, preset mappings, and custom mappings.
67
49
  */
68
50
  export declare const WebhooksConfigSchema: z.ZodObject<{
69
- /** Enable the webhook subsystem (default: false) */
70
51
  enabled: z.ZodDefault<z.ZodBoolean>;
71
- /** Base path for webhook endpoints (default: "/hooks") */
72
52
  path: z.ZodDefault<z.ZodString>;
73
- /** Optional bearer token for webhook authentication (min 32 chars when provided; string or SecretRef) */
74
53
  token: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
75
54
  source: z.ZodEnum<{
76
55
  file: "file";
@@ -80,50 +59,31 @@ export declare const WebhooksConfigSchema: z.ZodObject<{
80
59
  provider: z.ZodString;
81
60
  id: z.ZodString;
82
61
  }, z.core.$strict>]>>;
83
- /** Maximum request body size in bytes (default: 256KB) */
84
62
  maxBodyBytes: z.ZodDefault<z.ZodNumber>;
85
- /** Preset mapping names to load (e.g., ["gmail", "github"]) */
86
63
  presets: z.ZodDefault<z.ZodArray<z.ZodString>>;
87
- /** Custom webhook mappings */
88
64
  mappings: z.ZodDefault<z.ZodArray<z.ZodObject<{
89
- /** Unique identifier for this mapping */
90
65
  id: z.ZodOptional<z.ZodString>;
91
- /** Match conditions (path and/or source) */
92
66
  match: z.ZodOptional<z.ZodObject<{
93
- /** URL path segment to match (normalized: leading/trailing slashes stripped) */
94
67
  path: z.ZodOptional<z.ZodString>;
95
- /** Source identifier to match (from payload or header) */
96
68
  source: z.ZodOptional<z.ZodString>;
97
69
  }, z.core.$strict>>;
98
- /** Action to take: "wake" triggers heartbeat, "agent" invokes agent */
99
70
  action: z.ZodDefault<z.ZodEnum<{
100
71
  wake: "wake";
101
72
  agent: "agent";
102
73
  }>>;
103
- /** Wake mode: "now" fires immediately, "next-heartbeat" waits for next cycle */
104
74
  wakeMode: z.ZodDefault<z.ZodEnum<{
105
75
  now: "now";
106
76
  "next-heartbeat": "next-heartbeat";
107
77
  }>>;
108
- /** Human-readable name for this mapping */
109
78
  name: z.ZodOptional<z.ZodString>;
110
- /** Target agent ID for agent actions */
111
79
  agentId: z.ZodOptional<z.ZodString>;
112
- /** Session key template (supports {{expr}} placeholders) */
113
80
  sessionKey: z.ZodOptional<z.ZodString>;
114
- /** Message template for agent actions (supports {{expr}} placeholders) */
115
81
  messageTemplate: z.ZodOptional<z.ZodString>;
116
- /** Alternative text template (plain text version) */
117
82
  textTemplate: z.ZodOptional<z.ZodString>;
118
- /** Whether to deliver the message to a channel */
119
83
  deliver: z.ZodOptional<z.ZodBoolean>;
120
- /** Target channel for delivery */
121
84
  channel: z.ZodOptional<z.ZodString>;
122
- /** Target recipient for delivery */
123
85
  to: z.ZodOptional<z.ZodString>;
124
- /** Model override for agent execution */
125
86
  model: z.ZodOptional<z.ZodString>;
126
- /** Timeout in seconds for agent execution */
127
87
  timeoutSeconds: z.ZodOptional<z.ZodNumber>;
128
88
  }, z.core.$strict>>>;
129
89
  }, z.core.$strict>;