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
@@ -8,11 +8,8 @@ import { z } from "zod";
8
8
  * during execution.
9
9
  */
10
10
  export declare const DebounceBufferConfigSchema: z.ZodObject<{
11
- /** Per-channel debounce window in milliseconds. 0 = disabled. */
12
11
  windowMs: z.ZodDefault<z.ZodNumber>;
13
- /** Maximum messages to buffer per session before forced flush */
14
12
  maxBufferedMessages: z.ZodDefault<z.ZodNumber>;
15
- /** First message in burst triggers immediately (skip debounce) */
16
13
  firstMessageImmediate: z.ZodDefault<z.ZodBoolean>;
17
14
  }, z.core.$strict>;
18
15
  export type DebounceBufferConfig = z.infer<typeof DebounceBufferConfigSchema>;
@@ -46,9 +43,7 @@ export declare const OverflowPolicySchema: z.ZodDefault<z.ZodEnum<{
46
43
  * Overflow prevention configuration for a queue lane.
47
44
  */
48
45
  export declare const OverflowConfigSchema: z.ZodObject<{
49
- /** Maximum queued messages per session before overflow triggers */
50
46
  maxDepth: z.ZodDefault<z.ZodNumber>;
51
- /** What to do when maxDepth is reached */
52
47
  policy: z.ZodDefault<z.ZodEnum<{
53
48
  "drop-old": "drop-old";
54
49
  "drop-new": "drop-new";
@@ -62,25 +57,20 @@ export declare const OverflowConfigSchema: z.ZodObject<{
62
57
  * queue modes and overflow policies.
63
58
  */
64
59
  export declare const PerChannelQueueConfigSchema: z.ZodObject<{
65
- /** How rapid messages during active execution are handled */
66
60
  mode: z.ZodDefault<z.ZodEnum<{
67
61
  followup: "followup";
68
62
  collect: "collect";
69
63
  steer: "steer";
70
64
  "steer+followup": "steer+followup";
71
65
  }>>;
72
- /** Overflow prevention settings */
73
66
  overflow: z.ZodDefault<z.ZodObject<{
74
- /** Maximum queued messages per session before overflow triggers */
75
67
  maxDepth: z.ZodDefault<z.ZodNumber>;
76
- /** What to do when maxDepth is reached */
77
68
  policy: z.ZodDefault<z.ZodEnum<{
78
69
  "drop-old": "drop-old";
79
70
  "drop-new": "drop-new";
80
71
  summarize: "summarize";
81
72
  }>>;
82
73
  }, z.core.$strict>>;
83
- /** Debounce delay in ms (0 = disabled). Waits this long after last message before processing. */
84
74
  debounceMs: z.ZodDefault<z.ZodNumber>;
85
75
  }, z.core.$strict>;
86
76
  /**
@@ -90,9 +80,7 @@ export declare const PerChannelQueueConfigSchema: z.ZodObject<{
90
80
  * without external intervention.
91
81
  */
92
82
  export declare const FollowupConfigSchema: z.ZodObject<{
93
- /** Maximum follow-up runs in a single chain (prevents infinite loops) */
94
83
  maxFollowupRuns: z.ZodDefault<z.ZodNumber>;
95
- /** Whether to trigger follow-up on compaction flush events */
96
84
  followupOnCompaction: z.ZodDefault<z.ZodBoolean>;
97
85
  }, z.core.$strict>;
98
86
  export type FollowupConfig = z.infer<typeof FollowupConfigSchema>;
@@ -104,13 +92,9 @@ export type FollowupConfig = z.infer<typeof FollowupConfigSchema>;
104
92
  * different scheduling priorities.
105
93
  */
106
94
  export declare const PriorityLaneConfigSchema: z.ZodObject<{
107
- /** Lane name (e.g., "high", "normal", "low") */
108
95
  name: z.ZodString;
109
- /** Concurrency limit for this lane */
110
96
  concurrency: z.ZodDefault<z.ZodNumber>;
111
- /** Scheduling priority (higher number = higher priority) */
112
97
  priority: z.ZodDefault<z.ZodNumber>;
113
- /** Age threshold in ms after which tasks emit aging promotion events (0 = disabled) */
114
98
  agingPromotionMs: z.ZodDefault<z.ZodNumber>;
115
99
  }, z.core.$strict>;
116
100
  export type PriorityLaneConfig = z.infer<typeof PriorityLaneConfigSchema>;
@@ -121,15 +105,10 @@ export type PriorityLaneConfig = z.infer<typeof PriorityLaneConfigSchema>;
121
105
  * named priority lanes. The lane names must match entries in priorityLanes.
122
106
  */
123
107
  export declare const LaneAssignmentConfigSchema: z.ZodObject<{
124
- /** Default lane for messages that don't match any rule */
125
108
  defaultLane: z.ZodDefault<z.ZodString>;
126
- /** Lane for DM messages */
127
109
  dmLane: z.ZodDefault<z.ZodString>;
128
- /** Lane for group mentions */
129
110
  mentionLane: z.ZodDefault<z.ZodString>;
130
- /** Lane for follow-up messages */
131
111
  followupLane: z.ZodDefault<z.ZodString>;
132
- /** Lane for scheduled/background tasks */
133
112
  scheduledLane: z.ZodDefault<z.ZodString>;
134
113
  }, z.core.$strict>;
135
114
  export type LaneAssignmentConfig = z.infer<typeof LaneAssignmentConfigSchema>;
@@ -140,105 +119,68 @@ export type LaneAssignmentConfig = z.infer<typeof LaneAssignmentConfigSchema>;
140
119
  * and caps global concurrency across all sessions.
141
120
  */
142
121
  export declare const QueueConfigSchema: z.ZodObject<{
143
- /** Whether the command queue is enabled */
144
122
  enabled: z.ZodDefault<z.ZodBoolean>;
145
- /** Maximum concurrent agent executions across all sessions */
146
123
  maxConcurrentSessions: z.ZodDefault<z.ZodNumber>;
147
- /** Milliseconds before an idle lane is garbage collected (default: 10 minutes) */
148
124
  cleanupIdleMs: z.ZodDefault<z.ZodNumber>;
149
- /** Default queue mode for channels without per-channel override */
150
125
  defaultMode: z.ZodDefault<z.ZodEnum<{
151
126
  followup: "followup";
152
127
  collect: "collect";
153
128
  steer: "steer";
154
129
  "steer+followup": "steer+followup";
155
130
  }>>;
156
- /** Default overflow config for channels without per-channel override */
157
131
  defaultOverflow: z.ZodDefault<z.ZodObject<{
158
- /** Maximum queued messages per session before overflow triggers */
159
132
  maxDepth: z.ZodDefault<z.ZodNumber>;
160
- /** What to do when maxDepth is reached */
161
133
  policy: z.ZodDefault<z.ZodEnum<{
162
134
  "drop-old": "drop-old";
163
135
  "drop-new": "drop-new";
164
136
  summarize: "summarize";
165
137
  }>>;
166
138
  }, z.core.$strict>>;
167
- /** Default debounce delay in ms for channels without per-channel override */
168
139
  defaultDebounceMs: z.ZodDefault<z.ZodNumber>;
169
- /** Per-channel-type queue configuration overrides */
170
140
  perChannel: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
171
- /** How rapid messages during active execution are handled */
172
141
  mode: z.ZodDefault<z.ZodEnum<{
173
142
  followup: "followup";
174
143
  collect: "collect";
175
144
  steer: "steer";
176
145
  "steer+followup": "steer+followup";
177
146
  }>>;
178
- /** Overflow prevention settings */
179
147
  overflow: z.ZodDefault<z.ZodObject<{
180
- /** Maximum queued messages per session before overflow triggers */
181
148
  maxDepth: z.ZodDefault<z.ZodNumber>;
182
- /** What to do when maxDepth is reached */
183
149
  policy: z.ZodDefault<z.ZodEnum<{
184
150
  "drop-old": "drop-old";
185
151
  "drop-new": "drop-new";
186
152
  summarize: "summarize";
187
153
  }>>;
188
154
  }, z.core.$strict>>;
189
- /** Debounce delay in ms (0 = disabled). Waits this long after last message before processing. */
190
155
  debounceMs: z.ZodDefault<z.ZodNumber>;
191
156
  }, z.core.$strict>>>;
192
- /** Global debounce buffer configuration (ingress-layer coalescing before queue entry) */
193
157
  debounce: z.ZodDefault<z.ZodObject<{
194
- /** Per-channel debounce window in milliseconds. 0 = disabled. */
195
158
  windowMs: z.ZodDefault<z.ZodNumber>;
196
- /** Maximum messages to buffer per session before forced flush */
197
159
  maxBufferedMessages: z.ZodDefault<z.ZodNumber>;
198
- /** First message in burst triggers immediately (skip debounce) */
199
160
  firstMessageImmediate: z.ZodDefault<z.ZodBoolean>;
200
161
  }, z.core.$strict>>;
201
- /** Per-channel-type debounce buffer overrides */
202
162
  perChannelDebounce: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
203
- /** Per-channel debounce window in milliseconds. 0 = disabled. */
204
163
  windowMs: z.ZodDefault<z.ZodNumber>;
205
- /** Maximum messages to buffer per session before forced flush */
206
164
  maxBufferedMessages: z.ZodDefault<z.ZodNumber>;
207
- /** First message in burst triggers immediately (skip debounce) */
208
165
  firstMessageImmediate: z.ZodDefault<z.ZodBoolean>;
209
166
  }, z.core.$strict>>>;
210
- /** Follow-up trigger configuration for continuation runs */
211
167
  followup: z.ZodDefault<z.ZodObject<{
212
- /** Maximum follow-up runs in a single chain (prevents infinite loops) */
213
168
  maxFollowupRuns: z.ZodDefault<z.ZodNumber>;
214
- /** Whether to trigger follow-up on compaction flush events */
215
169
  followupOnCompaction: z.ZodDefault<z.ZodBoolean>;
216
170
  }, z.core.$strict>>;
217
- /** Priority lane definitions. Default: high(3), normal(5), low(2) = total concurrency 10 */
218
171
  priorityLanes: z.ZodDefault<z.ZodArray<z.ZodObject<{
219
- /** Lane name (e.g., "high", "normal", "low") */
220
172
  name: z.ZodString;
221
- /** Concurrency limit for this lane */
222
173
  concurrency: z.ZodDefault<z.ZodNumber>;
223
- /** Scheduling priority (higher number = higher priority) */
224
174
  priority: z.ZodDefault<z.ZodNumber>;
225
- /** Age threshold in ms after which tasks emit aging promotion events (0 = disabled) */
226
175
  agingPromotionMs: z.ZodDefault<z.ZodNumber>;
227
176
  }, z.core.$strict>>>;
228
- /** Lane assignment rules */
229
177
  laneAssignment: z.ZodDefault<z.ZodObject<{
230
- /** Default lane for messages that don't match any rule */
231
178
  defaultLane: z.ZodDefault<z.ZodString>;
232
- /** Lane for DM messages */
233
179
  dmLane: z.ZodDefault<z.ZodString>;
234
- /** Lane for group mentions */
235
180
  mentionLane: z.ZodDefault<z.ZodString>;
236
- /** Lane for follow-up messages */
237
181
  followupLane: z.ZodDefault<z.ZodString>;
238
- /** Lane for scheduled/background tasks */
239
182
  scheduledLane: z.ZodDefault<z.ZodString>;
240
183
  }, z.core.$strict>>;
241
- /** Enable priority lane scheduling (false = single global gate) */
242
184
  priorityEnabled: z.ZodDefault<z.ZodBoolean>;
243
185
  }, z.core.$strict>;
244
186
  export type QueueConfig = z.infer<typeof QueueConfigSchema>;
@@ -9,9 +9,7 @@ import { z } from "zod";
9
9
  * Example template: "{agent.emoji} {model|short}{?thinking: | think}"
10
10
  */
11
11
  export declare const ResponsePrefixConfigSchema: z.ZodObject<{
12
- /** Template string for the prefix; empty string disables the feature */
13
12
  template: z.ZodDefault<z.ZodString>;
14
- /** Where to insert the rendered template relative to the response body */
15
13
  position: z.ZodDefault<z.ZodEnum<{
16
14
  prepend: "prepend";
17
15
  append: "append";
@@ -9,17 +9,11 @@ import { z } from "zod";
9
9
  * errors, and markdown/HTML parse errors.
10
10
  */
11
11
  export declare const RetryConfigSchema: z.ZodObject<{
12
- /** Maximum retry attempts per message send (default: 3) */
13
12
  maxAttempts: z.ZodDefault<z.ZodNumber>;
14
- /** Minimum delay in ms before first retry (default: 500) */
15
13
  minDelayMs: z.ZodDefault<z.ZodNumber>;
16
- /** Maximum delay in ms (cap for exponential backoff, default: 30_000) */
17
14
  maxDelayMs: z.ZodDefault<z.ZodNumber>;
18
- /** Add random jitter to delay (prevents thundering herd, default: true) */
19
15
  jitter: z.ZodDefault<z.ZodBoolean>;
20
- /** Respect platform-provided retry_after headers (default: true) */
21
16
  respectRetryAfter: z.ZodDefault<z.ZodBoolean>;
22
- /** Fall back to plain text on markdown/HTML parse errors (default: true) */
23
17
  markdownFallback: z.ZodDefault<z.ZodBoolean>;
24
18
  }, z.core.$strict>;
25
19
  export type RetryConfig = z.infer<typeof RetryConfigSchema>;
@@ -1,89 +1,50 @@
1
1
  import { z } from "zod";
2
2
  export declare const HeartbeatConfigSchema: z.ZodObject<{
3
- /** Enable periodic heartbeat checks */
4
3
  enabled: z.ZodDefault<z.ZodBoolean>;
5
- /** Heartbeat interval in milliseconds */
6
4
  intervalMs: z.ZodDefault<z.ZodNumber>;
7
- /** Show OK status in heartbeat output */
8
5
  showOk: z.ZodDefault<z.ZodBoolean>;
9
- /** Show alerts in heartbeat output */
10
6
  showAlerts: z.ZodDefault<z.ZodBoolean>;
11
- /** Consecutive failures before alerting */
12
7
  alertThreshold: z.ZodDefault<z.ZodNumber>;
13
- /** Minimum ms between alerts for the same source */
14
8
  alertCooldownMs: z.ZodDefault<z.ZodNumber>;
15
- /** Max ms a heartbeat tick can run before stuck detection */
16
9
  staleMs: z.ZodDefault<z.ZodNumber>;
17
10
  }, z.core.$strict>;
18
11
  export type HeartbeatConfig = z.infer<typeof HeartbeatConfigSchema>;
19
12
  export declare const SchedulerConfigSchema: z.ZodObject<{
20
- /** Cron job scheduling configuration */
21
13
  cron: z.ZodDefault<z.ZodObject<{
22
- /** Enable cron job scheduling */
23
14
  enabled: z.ZodDefault<z.ZodBoolean>;
24
- /** Directory for cron job state persistence */
25
15
  storeDir: z.ZodDefault<z.ZodString>;
26
- /** Maximum concurrent cron job runs */
27
16
  maxConcurrentRuns: z.ZodDefault<z.ZodNumber>;
28
- /** Default timezone for cron expressions (empty = UTC) */
29
17
  defaultTimezone: z.ZodDefault<z.ZodString>;
30
- /** Maximum number of cron jobs allowed (0 = unlimited) */
31
18
  maxJobs: z.ZodDefault<z.ZodNumber>;
32
- /** Maximum consecutive errors before auto-suspending a cron job (0 = never suspend) */
33
19
  maxConsecutiveErrors: z.ZodDefault<z.ZodNumber>;
34
20
  }, z.core.$strict>>;
35
- /** Heartbeat monitoring configuration */
36
21
  heartbeat: z.ZodDefault<z.ZodObject<{
37
- /** Enable periodic heartbeat checks */
38
22
  enabled: z.ZodDefault<z.ZodBoolean>;
39
- /** Heartbeat interval in milliseconds */
40
23
  intervalMs: z.ZodDefault<z.ZodNumber>;
41
- /** Show OK status in heartbeat output */
42
24
  showOk: z.ZodDefault<z.ZodBoolean>;
43
- /** Show alerts in heartbeat output */
44
25
  showAlerts: z.ZodDefault<z.ZodBoolean>;
45
- /** Consecutive failures before alerting */
46
26
  alertThreshold: z.ZodDefault<z.ZodNumber>;
47
- /** Minimum ms between alerts for the same source */
48
27
  alertCooldownMs: z.ZodDefault<z.ZodNumber>;
49
- /** Max ms a heartbeat tick can run before stuck detection */
50
28
  staleMs: z.ZodDefault<z.ZodNumber>;
51
29
  }, z.core.$strict>>;
52
- /** Quiet hours configuration */
53
30
  quietHours: z.ZodDefault<z.ZodObject<{
54
- /** Enable quiet hours (suppress non-critical automation) */
55
31
  enabled: z.ZodDefault<z.ZodBoolean>;
56
- /** Quiet hours start time (HH:MM format) */
57
32
  start: z.ZodDefault<z.ZodString>;
58
- /** Quiet hours end time (HH:MM format) */
59
33
  end: z.ZodDefault<z.ZodString>;
60
- /** Timezone for quiet hours (empty = system local) */
61
34
  timezone: z.ZodDefault<z.ZodString>;
62
- /** Allow critical-priority items to bypass quiet hours */
63
35
  criticalBypass: z.ZodDefault<z.ZodBoolean>;
64
36
  }, z.core.$strict>>;
65
- /** Execution safety configuration */
66
37
  execution: z.ZodDefault<z.ZodObject<{
67
- /** Directory for execution lock files */
68
38
  lockDir: z.ZodDefault<z.ZodString>;
69
- /** Lock stale timeout in milliseconds */
70
39
  staleMs: z.ZodDefault<z.ZodNumber>;
71
- /** Lock update interval in milliseconds */
72
40
  updateMs: z.ZodDefault<z.ZodNumber>;
73
- /** Directory for execution log files */
74
41
  logDir: z.ZodDefault<z.ZodString>;
75
- /** Maximum log file size in bytes */
76
42
  maxLogBytes: z.ZodDefault<z.ZodNumber>;
77
- /** Maximum lines to keep in ring-buffer log */
78
43
  keepLines: z.ZodDefault<z.ZodNumber>;
79
44
  }, z.core.$strict>>;
80
- /** Task extraction from conversations */
81
45
  tasks: z.ZodDefault<z.ZodObject<{
82
- /** Enable task extraction from conversations */
83
46
  enabled: z.ZodDefault<z.ZodBoolean>;
84
- /** Minimum confidence threshold for extracted tasks (0-1) */
85
47
  confidenceThreshold: z.ZodDefault<z.ZodNumber>;
86
- /** Directory for task state persistence */
87
48
  storeDir: z.ZodDefault<z.ZodString>;
88
49
  }, z.core.$strict>>;
89
50
  }, z.core.$strict>;
@@ -1,15 +1,12 @@
1
1
  import { z } from "zod";
2
2
  /** Per-agent secret access configuration. */
3
3
  export declare const AgentSecretsConfigSchema: z.ZodObject<{
4
- /** Glob patterns for allowed secret names. Empty array = unrestricted access (backward compat). */
5
4
  allow: z.ZodDefault<z.ZodArray<z.ZodString>>;
6
5
  }, z.core.$strict>;
7
6
  export type AgentSecretsConfig = z.infer<typeof AgentSecretsConfigSchema>;
8
7
  /** Global encrypted secrets store configuration. */
9
8
  export declare const SecretsConfigSchema: z.ZodObject<{
10
- /** Enable encrypted secrets store. Default false for backward compat. */
11
9
  enabled: z.ZodDefault<z.ZodBoolean>;
12
- /** Path to secrets.db relative to dataDir. */
13
10
  dbPath: z.ZodDefault<z.ZodString>;
14
11
  }, z.core.$strict>;
15
12
  export type SecretsConfig = z.infer<typeof SecretsConfigSchema>;
@@ -6,19 +6,13 @@ import { z } from "zod";
6
6
  * and action confirmation requirements.
7
7
  */
8
8
  export declare const PermissionConfigSchema: z.ZodObject<{
9
- /** Enable Node.js --permission flag enforcement */
10
9
  enableNodePermissions: z.ZodDefault<z.ZodBoolean>;
11
- /** Allowed filesystem read/write paths */
12
10
  allowedFsPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
13
- /** Allowed network hosts for outbound connections */
14
11
  allowedNetHosts: z.ZodDefault<z.ZodArray<z.ZodString>>;
15
12
  }, z.core.$strict>;
16
13
  export declare const ActionConfirmationConfigSchema: z.ZodObject<{
17
- /** Require human confirmation for destructive actions */
18
14
  requireForDestructive: z.ZodDefault<z.ZodBoolean>;
19
- /** Require human confirmation for sensitive (non-destructive but important) actions */
20
15
  requireForSensitive: z.ZodDefault<z.ZodBoolean>;
21
- /** Actions that are always auto-approved (bypass confirmation) */
22
16
  autoApprove: z.ZodDefault<z.ZodArray<z.ZodString>>;
23
17
  }, z.core.$strict>;
24
18
  export declare const AgentToAgentConfigSchema: z.ZodObject<{
@@ -74,29 +68,18 @@ export declare const AgentToAgentConfigSchema: z.ZodObject<{
74
68
  }, z.core.$strict>;
75
69
  export type AgentToAgentConfig = z.infer<typeof AgentToAgentConfigSchema>;
76
70
  export declare const SecurityConfigSchema: z.ZodObject<{
77
- /** Enable structured log redaction of sensitive fields */
78
71
  logRedaction: z.ZodDefault<z.ZodBoolean>;
79
- /** Enable audit event logging */
80
72
  auditLog: z.ZodDefault<z.ZodBoolean>;
81
- /** Node.js permission model settings */
82
73
  permission: z.ZodDefault<z.ZodObject<{
83
- /** Enable Node.js --permission flag enforcement */
84
74
  enableNodePermissions: z.ZodDefault<z.ZodBoolean>;
85
- /** Allowed filesystem read/write paths */
86
75
  allowedFsPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
87
- /** Allowed network hosts for outbound connections */
88
76
  allowedNetHosts: z.ZodDefault<z.ZodArray<z.ZodString>>;
89
77
  }, z.core.$strict>>;
90
- /** Action confirmation requirements */
91
78
  actionConfirmation: z.ZodDefault<z.ZodObject<{
92
- /** Require human confirmation for destructive actions */
93
79
  requireForDestructive: z.ZodDefault<z.ZodBoolean>;
94
- /** Require human confirmation for sensitive (non-destructive but important) actions */
95
80
  requireForSensitive: z.ZodDefault<z.ZodBoolean>;
96
- /** Actions that are always auto-approved (bypass confirmation) */
97
81
  autoApprove: z.ZodDefault<z.ZodArray<z.ZodString>>;
98
82
  }, z.core.$strict>>;
99
- /** Agent-to-agent session messaging policy */
100
83
  agentToAgent: z.ZodDefault<z.ZodObject<{
101
84
  enabled: z.ZodDefault<z.ZodBoolean>;
102
85
  maxPingPongTurns: z.ZodDefault<z.ZodNumber>;
@@ -148,7 +131,6 @@ export declare const SecurityConfigSchema: z.ZodObject<{
148
131
  stuckKillThresholdMs: z.ZodDefault<z.ZodNumber>;
149
132
  }, z.core.$strict>>;
150
133
  }, z.core.$strict>>;
151
- /** Encrypted secrets store configuration */
152
134
  secrets: z.ZodDefault<z.ZodObject<{
153
135
  enabled: z.ZodDefault<z.ZodBoolean>;
154
136
  dbPath: z.ZodDefault<z.ZodString>;
@@ -14,18 +14,13 @@ export declare const SendActionSchema: z.ZodDefault<z.ZodEnum<{
14
14
  * present for the rule to be meaningful.
15
15
  */
16
16
  export declare const SendPolicyRuleSchema: z.ZodObject<{
17
- /** Channel ID to match (exact string match, or omit for any) */
18
17
  channelId: z.ZodOptional<z.ZodString>;
19
- /** Chat type to match: dm, group, thread, channel, forum (or omit for any) */
20
18
  chatType: z.ZodOptional<z.ZodString>;
21
- /** Channel type to match: telegram, discord, slack, whatsapp (or omit for any) */
22
19
  channelType: z.ZodOptional<z.ZodString>;
23
- /** Action when this rule matches */
24
20
  action: z.ZodDefault<z.ZodEnum<{
25
21
  allow: "allow";
26
22
  deny: "deny";
27
23
  }>>;
28
- /** Human-readable description for config readability */
29
24
  description: z.ZodOptional<z.ZodString>;
30
25
  }, z.core.$strict>;
31
26
  /**
@@ -36,27 +31,19 @@ export declare const SendPolicyRuleSchema: z.ZodObject<{
36
31
  * order; first match wins. If no rule matches, the defaultAction applies.
37
32
  */
38
33
  export declare const SendPolicyConfigSchema: z.ZodObject<{
39
- /** Enable send policy enforcement (default: true) */
40
34
  enabled: z.ZodDefault<z.ZodBoolean>;
41
- /** Default action when no rules match */
42
35
  defaultAction: z.ZodDefault<z.ZodEnum<{
43
36
  allow: "allow";
44
37
  deny: "deny";
45
38
  }>>;
46
- /** Ordered list of rules (first match wins) */
47
39
  rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
48
- /** Channel ID to match (exact string match, or omit for any) */
49
40
  channelId: z.ZodOptional<z.ZodString>;
50
- /** Chat type to match: dm, group, thread, channel, forum (or omit for any) */
51
41
  chatType: z.ZodOptional<z.ZodString>;
52
- /** Channel type to match: telegram, discord, slack, whatsapp (or omit for any) */
53
42
  channelType: z.ZodOptional<z.ZodString>;
54
- /** Action when this rule matches */
55
43
  action: z.ZodDefault<z.ZodEnum<{
56
44
  allow: "allow";
57
45
  deny: "deny";
58
46
  }>>;
59
- /** Human-readable description for config readability */
60
47
  description: z.ZodOptional<z.ZodString>;
61
48
  }, z.core.$strict>>>;
62
49
  }, z.core.$strict>;
@@ -8,19 +8,14 @@ import { z } from "zod";
8
8
  * to human-readable aliases (operator-managed mapping).
9
9
  */
10
10
  export declare const SenderTrustDisplayConfigSchema: z.ZodObject<{
11
- /** Whether sender identity is included in the message envelope */
12
11
  enabled: z.ZodDefault<z.ZodBoolean>;
13
- /** Display mode: raw (platform ID), hash (HMAC prefix), or alias (operator-defined name) */
14
12
  displayMode: z.ZodDefault<z.ZodEnum<{
15
13
  raw: "raw";
16
14
  alias: "alias";
17
15
  hash: "hash";
18
16
  }>>;
19
- /** Number of hex characters to show from the HMAC digest (4-16) */
20
17
  hashPrefix: z.ZodDefault<z.ZodNumber>;
21
- /** SecretManager key for the HMAC secret; empty string uses agentId as fallback */
22
18
  hashSecretRef: z.ZodDefault<z.ZodString>;
23
- /** Sender ID to human-readable alias mapping (used when displayMode is "alias") */
24
19
  aliases: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
25
20
  }, z.core.$strict>;
26
21
  export type SenderTrustDisplayConfig = z.infer<typeof SenderTrustDisplayConfigSchema>;
@@ -24,6 +24,7 @@ import { MonitoringConfigSchema } from "./schema-observability.js";
24
24
  import { ProvidersConfigSchema } from "./schema-providers.js";
25
25
  import { SchedulerConfigSchema } from "./schema-scheduler.js";
26
26
  import { SecurityConfigSchema } from "./schema-security.js";
27
+ import { ToolingConfigSchema } from "./schema-tooling.js";
27
28
  // ---------------------------------------------------------------------------
28
29
  // Section schema lookup
29
30
  // ---------------------------------------------------------------------------
@@ -46,6 +47,7 @@ const SECTION_SCHEMAS = {
46
47
  providers: ProvidersConfigSchema,
47
48
  messages: MessagesConfigSchema,
48
49
  approvals: ApprovalsConfigSchema,
50
+ tooling: ToolingConfigSchema,
49
51
  };
50
52
  // ---------------------------------------------------------------------------
51
53
  // Full schema cache
@@ -4,15 +4,10 @@ import { z } from "zod";
4
4
  * Controls limits, behavior, and eligibility for Markdown instruction skills.
5
5
  */
6
6
  export declare const PromptSkillsConfigSchema: z.ZodObject<{
7
- /** Maximum skill body length in characters (default: 20000) */
8
7
  maxBodyLength: z.ZodDefault<z.ZodNumber>;
9
- /** Enable dynamic context -- shell command execution in skill bodies (default: false) */
10
8
  enableDynamicContext: z.ZodDefault<z.ZodBoolean>;
11
- /** Maximum prompt skills auto-injected per request (default: 3) */
12
9
  maxAutoInject: z.ZodDefault<z.ZodNumber>;
13
- /** Skill names allowed for this agent. Empty array = allow all discovered skills. */
14
10
  allowedSkills: z.ZodDefault<z.ZodArray<z.ZodString>>;
15
- /** Skill names denied for this agent. Applied after allowedSkills filter. */
16
11
  deniedSkills: z.ZodDefault<z.ZodArray<z.ZodString>>;
17
12
  }, z.core.$strict>;
18
13
  /**
@@ -23,50 +18,26 @@ export declare const PromptSkillsConfigSchema: z.ZodObject<{
23
18
  * per-deployment without a rebuild.
24
19
  */
25
20
  declare const ToolDiscoverySchema: z.ZodObject<{
26
- /** Minimum BM25 score as FRACTION OF TOP MATCH (0..1). Default 0.8.
27
- * BM25 scores are normalized to [0, 1] before this floor applies,
28
- * matching the semantics of minHybridScore. A value of 0.8 means
29
- * "return only tools scoring >= 80% of the top match". Values > 1.0 fail
30
- * validation at config load (stale raw-score overrides would produce zero
31
- * matches under the new normalized semantics; fail-fast surfaces the
32
- * error immediately per AGENTS.md §3.4). */
33
21
  minBm25Score: z.ZodDefault<z.ZodNumber>;
34
- /** Minimum combined score (0..1 normalized) for hybrid mode. Default 0.35. */
35
22
  minHybridScore: z.ZodDefault<z.ZodNumber>;
36
23
  }, z.core.$strict>;
37
24
  export declare const SkillsConfigSchema: z.ZodObject<{
38
- /** Directories to scan for SKILL.md files (relative to data dir) */
39
25
  discoveryPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
40
- /** Built-in tool toggles (enabled/disabled by config) */
41
26
  builtinTools: z.ZodDefault<z.ZodObject<{
42
- /** Read file contents with line numbers and pagination */
43
27
  read: z.ZodDefault<z.ZodBoolean>;
44
- /** Write or overwrite files; auto-creates parent directories */
45
28
  write: z.ZodDefault<z.ZodBoolean>;
46
- /** Surgical search-and-replace on files (exact text match) */
47
29
  edit: z.ZodDefault<z.ZodBoolean>;
48
- /** Cell-level Jupyter notebook editing */
49
30
  notebookEdit: z.ZodDefault<z.ZodBoolean>;
50
- /** Regex search across files (ripgrep-based, respects .gitignore). Requires `rg` system binary. */
51
31
  grep: z.ZodDefault<z.ZodBoolean>;
52
- /** Find files by glob pattern (fd-based, respects .gitignore). Requires `fd` system binary. */
53
32
  find: z.ZodDefault<z.ZodBoolean>;
54
- /** List directory contents alphabetically, including dotfiles */
55
33
  ls: z.ZodDefault<z.ZodBoolean>;
56
- /** Shell command execution with foreground/background modes */
57
34
  exec: z.ZodDefault<z.ZodBoolean>;
58
- /** Background process management (list, kill, status, log) */
59
35
  process: z.ZodDefault<z.ZodBoolean>;
60
- /** Web search API integration */
61
36
  webSearch: z.ZodDefault<z.ZodBoolean>;
62
- /** URL content fetching */
63
37
  webFetch: z.ZodDefault<z.ZodBoolean>;
64
- /** Headless browser control (requires Playwright/Chromium) */
65
38
  browser: z.ZodDefault<z.ZodBoolean>;
66
39
  }, z.core.$strict>>;
67
- /** Tool policy: controls which tools are available per agent */
68
40
  toolPolicy: z.ZodDefault<z.ZodObject<{
69
- /** Named profile: controls baseline tool set */
70
41
  profile: z.ZodDefault<z.ZodEnum<{
71
42
  minimal: "minimal";
72
43
  coding: "coding";
@@ -74,67 +45,35 @@ export declare const SkillsConfigSchema: z.ZodObject<{
74
45
  supervisor: "supervisor";
75
46
  full: "full";
76
47
  }>>;
77
- /** Additional tools to allow beyond the profile (tool names or group:xxx) */
78
48
  allow: z.ZodDefault<z.ZodArray<z.ZodString>>;
79
- /** Tools to deny even if in the profile (tool names or group:xxx) */
80
49
  deny: z.ZodDefault<z.ZodArray<z.ZodString>>;
81
50
  }, z.core.$strict>>;
82
- /** Prompt-based skill configuration (Markdown instruction skills) */
83
51
  promptSkills: z.ZodDefault<z.ZodObject<{
84
- /** Maximum skill body length in characters (default: 20000) */
85
52
  maxBodyLength: z.ZodDefault<z.ZodNumber>;
86
- /** Enable dynamic context -- shell command execution in skill bodies (default: false) */
87
53
  enableDynamicContext: z.ZodDefault<z.ZodBoolean>;
88
- /** Maximum prompt skills auto-injected per request (default: 3) */
89
54
  maxAutoInject: z.ZodDefault<z.ZodNumber>;
90
- /** Skill names allowed for this agent. Empty array = allow all discovered skills. */
91
55
  allowedSkills: z.ZodDefault<z.ZodArray<z.ZodString>>;
92
- /** Skill names denied for this agent. Applied after allowedSkills filter. */
93
56
  deniedSkills: z.ZodDefault<z.ZodArray<z.ZodString>>;
94
57
  }, z.core.$strict>>;
95
- /** Runtime eligibility filtering: exclude skills whose OS/binary/env prerequisites are not met */
96
58
  runtimeEligibility: z.ZodDefault<z.ZodObject<{
97
- /** Enable runtime eligibility filtering based on os, binary, and env var prerequisites (default: true). */
98
59
  enabled: z.ZodDefault<z.ZodBoolean>;
99
60
  }, z.core.$strict>>;
100
- /** Content scanning: detect dangerous patterns in skill bodies at load time */
101
61
  contentScanning: z.ZodDefault<z.ZodObject<{
102
- /** Enable content scanning at skill load time (default: true). */
103
62
  enabled: z.ZodDefault<z.ZodBoolean>;
104
- /** Block skill loading when CRITICAL findings are present (default: true). */
105
63
  blockOnCritical: z.ZodDefault<z.ZodBoolean>;
106
64
  }, z.core.$strict>>;
107
- /** Exec tool OS-level sandbox configuration */
108
65
  execSandbox: z.ZodDefault<z.ZodObject<{
109
- /**
110
- * Whether OS-level sandboxing is active for exec tool commands.
111
- * - "always": sandbox is enabled; if the sandbox binary is unavailable the
112
- * exec tool logs a warning and runs unsandboxed (graceful fallback).
113
- * - "never": sandbox is unconditionally disabled.
114
- */
115
66
  enabled: z.ZodDefault<z.ZodEnum<{
116
67
  never: "never";
117
68
  always: "always";
118
69
  }>>;
119
- /** Additional read-only paths to expose inside the sandbox (e.g., shared data dirs). */
120
70
  readOnlyAllowPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
121
71
  }, z.core.$strict>>;
122
- /** discover_tools score-floor thresholds (BM25 + hybrid). */
123
72
  toolDiscovery: z.ZodDefault<z.ZodObject<{
124
- /** Minimum BM25 score as FRACTION OF TOP MATCH (0..1). Default 0.8.
125
- * BM25 scores are normalized to [0, 1] before this floor applies,
126
- * matching the semantics of minHybridScore. A value of 0.8 means
127
- * "return only tools scoring >= 80% of the top match". Values > 1.0 fail
128
- * validation at config load (stale raw-score overrides would produce zero
129
- * matches under the new normalized semantics; fail-fast surfaces the
130
- * error immediately per AGENTS.md §3.4). */
131
73
  minBm25Score: z.ZodDefault<z.ZodNumber>;
132
- /** Minimum combined score (0..1 normalized) for hybrid mode. Default 0.35. */
133
74
  minHybridScore: z.ZodDefault<z.ZodNumber>;
134
75
  }, z.core.$strict>>;
135
- /** Enable file watching for automatic skill reload (default: true). */
136
76
  watchEnabled: z.ZodDefault<z.ZodBoolean>;
137
- /** Debounce interval in milliseconds for file change coalescing (default: 400). */
138
77
  watchDebounceMs: z.ZodDefault<z.ZodNumber>;
139
78
  }, z.core.$strict>;
140
79
  /** Inferred skills configuration type. */