comisai 1.0.34 → 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 (448) hide show
  1. package/node_modules/@comis/agent/dist/background/auto-background-middleware.d.ts +11 -1
  2. package/node_modules/@comis/agent/dist/background/auto-background-middleware.js +30 -4
  3. package/node_modules/@comis/agent/dist/background/background-task-manager.d.ts +22 -2
  4. package/node_modules/@comis/agent/dist/background/background-task-manager.js +88 -40
  5. package/node_modules/@comis/agent/dist/background/background-task-persistence.js +34 -4
  6. package/node_modules/@comis/agent/dist/background/background-task-types.d.ts +59 -3
  7. package/node_modules/@comis/agent/dist/background/background-task-types.js +1 -1
  8. package/node_modules/@comis/agent/dist/background/completion-dispatcher.d.ts +130 -0
  9. package/node_modules/@comis/agent/dist/background/completion-dispatcher.js +215 -0
  10. package/node_modules/@comis/agent/dist/background/completion-formatter.d.ts +39 -0
  11. package/node_modules/@comis/agent/dist/background/completion-formatter.js +77 -0
  12. package/node_modules/@comis/agent/dist/background/completion-runner.d.ts +62 -0
  13. package/node_modules/@comis/agent/dist/background/completion-runner.js +234 -0
  14. package/node_modules/@comis/agent/dist/background/index.d.ts +10 -1
  15. package/node_modules/@comis/agent/dist/background/index.js +4 -0
  16. package/node_modules/@comis/agent/dist/background/session-resolver.d.ts +85 -0
  17. package/node_modules/@comis/agent/dist/background/session-resolver.js +78 -0
  18. package/node_modules/@comis/agent/dist/bootstrap/sections/messaging-sections.js +1 -0
  19. package/node_modules/@comis/agent/dist/bootstrap/sections/tool-descriptions.js +3 -3
  20. package/node_modules/@comis/agent/dist/bootstrap/sections/tooling-sections.d.ts +30 -2
  21. package/node_modules/@comis/agent/dist/bootstrap/sections/tooling-sections.js +51 -2
  22. package/node_modules/@comis/agent/dist/bootstrap/system-prompt-assembler.d.ts +22 -0
  23. package/node_modules/@comis/agent/dist/bootstrap/system-prompt-assembler.js +2 -2
  24. package/node_modules/@comis/agent/dist/bridge/bridge-event-handlers.d.ts +1 -5
  25. package/node_modules/@comis/agent/dist/bridge/bridge-event-handlers.js +2 -14
  26. package/node_modules/@comis/agent/dist/bridge/bridge-metrics.d.ts +43 -2
  27. package/node_modules/@comis/agent/dist/bridge/bridge-metrics.js +17 -2
  28. package/node_modules/@comis/agent/dist/bridge/pi-event-bridge.d.ts +32 -23
  29. package/node_modules/@comis/agent/dist/bridge/pi-event-bridge.js +145 -62
  30. package/node_modules/@comis/agent/dist/bridge/thinking-block-hash-invariant.d.ts +6 -7
  31. package/node_modules/@comis/agent/dist/bridge/thinking-block-hash-invariant.js +24 -25
  32. package/node_modules/@comis/agent/dist/budget/cost-tracker.d.ts +1 -1
  33. package/node_modules/@comis/agent/dist/context-engine/constants.d.ts +5 -5
  34. package/node_modules/@comis/agent/dist/context-engine/constants.js +12 -12
  35. package/node_modules/@comis/agent/dist/context-engine/context-engine.js +13 -4
  36. package/node_modules/@comis/agent/dist/context-engine/dag-annotator.d.ts +1 -2
  37. package/node_modules/@comis/agent/dist/context-engine/dag-annotator.js +1 -2
  38. package/node_modules/@comis/agent/dist/context-engine/llm-compaction.js +20 -16
  39. package/node_modules/@comis/agent/dist/context-engine/rehydration.js +6 -6
  40. package/node_modules/@comis/agent/dist/context-engine/signature-replay-scrubber.d.ts +12 -12
  41. package/node_modules/@comis/agent/dist/context-engine/signature-replay-scrubber.js +36 -22
  42. package/node_modules/@comis/agent/dist/context-engine/signature-surrogate-guard.d.ts +10 -10
  43. package/node_modules/@comis/agent/dist/context-engine/signature-surrogate-guard.js +14 -14
  44. package/node_modules/@comis/agent/dist/context-engine/thinking-block-cleaner.d.ts +11 -13
  45. package/node_modules/@comis/agent/dist/context-engine/thinking-block-cleaner.js +14 -15
  46. package/node_modules/@comis/agent/dist/context-engine/types-core.d.ts +15 -0
  47. package/node_modules/@comis/agent/dist/executor/cache-break-detection.d.ts +6 -6
  48. package/node_modules/@comis/agent/dist/executor/cache-break-detection.js +8 -8
  49. package/node_modules/@comis/agent/dist/executor/capability-index-context.d.ts +72 -0
  50. package/node_modules/@comis/agent/dist/executor/capability-index-context.js +329 -0
  51. package/node_modules/@comis/agent/dist/executor/drain-helper.d.ts +122 -0
  52. package/node_modules/@comis/agent/dist/executor/drain-helper.js +173 -0
  53. package/node_modules/@comis/agent/dist/executor/error-classifier.js +2 -2
  54. package/node_modules/@comis/agent/dist/executor/executor-context-engine-setup.d.ts +16 -0
  55. package/node_modules/@comis/agent/dist/executor/executor-context-engine-setup.js +46 -5
  56. package/node_modules/@comis/agent/dist/executor/executor-post-execution.d.ts +78 -4
  57. package/node_modules/@comis/agent/dist/executor/executor-post-execution.js +150 -31
  58. package/node_modules/@comis/agent/dist/executor/executor-prompt-runner.d.ts +7 -0
  59. package/node_modules/@comis/agent/dist/executor/executor-prompt-runner.js +26 -5
  60. package/node_modules/@comis/agent/dist/executor/executor-response-filter.d.ts +7 -6
  61. package/node_modules/@comis/agent/dist/executor/executor-response-filter.js +9 -42
  62. package/node_modules/@comis/agent/dist/executor/executor-tool-assembly.d.ts +18 -1
  63. package/node_modules/@comis/agent/dist/executor/executor-tool-assembly.js +20 -18
  64. package/node_modules/@comis/agent/dist/executor/gemini-cache-injector.d.ts +2 -2
  65. package/node_modules/@comis/agent/dist/executor/gemini-cache-injector.js +4 -4
  66. package/node_modules/@comis/agent/dist/executor/jit-guide-injector.d.ts +11 -2
  67. package/node_modules/@comis/agent/dist/executor/jit-guide-injector.js +16 -2
  68. package/node_modules/@comis/agent/dist/executor/phase-filter.d.ts +2 -2
  69. package/node_modules/@comis/agent/dist/executor/phase-filter.js +5 -7
  70. package/node_modules/@comis/agent/dist/executor/pi-executor.d.ts +21 -2
  71. package/node_modules/@comis/agent/dist/executor/pi-executor.js +96 -18
  72. package/node_modules/@comis/agent/dist/executor/post-batch-continuation.js +7 -7
  73. package/node_modules/@comis/agent/dist/executor/prompt-assembly.d.ts +9 -1
  74. package/node_modules/@comis/agent/dist/executor/prompt-assembly.js +15 -1
  75. package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body-injector.d.ts +1 -1
  76. package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body-injector.js +1 -1
  77. package/node_modules/@comis/agent/dist/executor/tool-deferral.d.ts +18 -27
  78. package/node_modules/@comis/agent/dist/executor/tool-deferral.js +34 -43
  79. package/node_modules/@comis/agent/dist/index.d.ts +17 -0
  80. package/node_modules/@comis/agent/dist/index.js +32 -11
  81. package/node_modules/@comis/agent/dist/model/auth-provider.d.ts +25 -2
  82. package/node_modules/@comis/agent/dist/model/auth-provider.js +6 -0
  83. package/node_modules/@comis/agent/dist/model/compaction-model-resolver.d.ts +3 -3
  84. package/node_modules/@comis/agent/dist/model/compaction-model-resolver.js +3 -3
  85. package/node_modules/@comis/agent/dist/model/model-registry-adapter.js +1 -1
  86. package/node_modules/@comis/agent/dist/model/model-scanner.js +1 -1
  87. package/node_modules/@comis/agent/dist/model/oauth-credential-store-file.d.ts +37 -0
  88. package/node_modules/@comis/agent/dist/model/oauth-credential-store-file.js +279 -0
  89. package/node_modules/@comis/agent/dist/model/oauth-credential-store-selector.d.ts +49 -0
  90. package/node_modules/@comis/agent/dist/model/oauth-credential-store-selector.js +50 -0
  91. package/node_modules/@comis/agent/dist/model/oauth-device-code.d.ts +57 -0
  92. package/node_modules/@comis/agent/dist/model/oauth-device-code.js +302 -0
  93. package/node_modules/@comis/agent/dist/model/oauth-env.d.ts +33 -0
  94. package/node_modules/@comis/agent/dist/model/oauth-env.js +38 -0
  95. package/node_modules/@comis/agent/dist/model/oauth-errors.d.ts +41 -0
  96. package/node_modules/@comis/agent/dist/model/oauth-errors.js +88 -0
  97. package/node_modules/@comis/agent/dist/model/oauth-identity.d.ts +53 -0
  98. package/node_modules/@comis/agent/dist/model/oauth-identity.js +141 -0
  99. package/node_modules/@comis/agent/dist/model/oauth-login-runner.d.ts +99 -0
  100. package/node_modules/@comis/agent/dist/model/oauth-login-runner.js +374 -0
  101. package/node_modules/@comis/agent/dist/model/oauth-tls-preflight.d.ts +58 -0
  102. package/node_modules/@comis/agent/dist/model/oauth-tls-preflight.js +82 -0
  103. package/node_modules/@comis/agent/dist/model/oauth-token-manager.d.ts +86 -16
  104. package/node_modules/@comis/agent/dist/model/oauth-token-manager.js +961 -66
  105. package/node_modules/@comis/agent/dist/model/operation-model-defaults.d.ts +9 -4
  106. package/node_modules/@comis/agent/dist/model/operation-model-defaults.js +36 -9
  107. package/node_modules/@comis/agent/dist/model/resolve-provider-api-key.d.ts +48 -0
  108. package/node_modules/@comis/agent/dist/model/resolve-provider-api-key.js +66 -0
  109. package/node_modules/@comis/agent/dist/provider/capabilities.d.ts +5 -5
  110. package/node_modules/@comis/agent/dist/provider/capabilities.js +10 -23
  111. package/node_modules/@comis/agent/dist/safety/tool-output-safety.js +3 -3
  112. package/node_modules/@comis/agent/dist/safety/tool-retry-breaker.d.ts +11 -1
  113. package/node_modules/@comis/agent/dist/safety/tool-retry-breaker.js +19 -22
  114. package/node_modules/@comis/agent/dist/session/comis-session-manager.d.ts +17 -3
  115. package/node_modules/@comis/agent/dist/session/comis-session-manager.js +1 -1
  116. package/node_modules/@comis/agent/dist/spawn/narrative-caster.d.ts +10 -0
  117. package/node_modules/@comis/agent/dist/spawn/narrative-caster.js +5 -1
  118. package/node_modules/@comis/agent/dist/spawn/pi-mono-adapters.d.ts +1 -1
  119. package/node_modules/@comis/agent/dist/spawn/pi-mono-adapters.js +5 -5
  120. package/node_modules/@comis/agent/dist/workspace/data-env.d.ts +38 -0
  121. package/node_modules/@comis/agent/dist/workspace/data-env.js +56 -0
  122. package/node_modules/@comis/agent/dist/workspace/index.d.ts +1 -0
  123. package/node_modules/@comis/agent/dist/workspace/index.js +1 -0
  124. package/node_modules/@comis/agent/dist/workspace/templates.js +5 -1
  125. package/node_modules/@comis/agent/package.json +1 -1
  126. package/node_modules/@comis/channels/dist/email/email-adapter.js +6 -6
  127. package/node_modules/@comis/channels/dist/email/imap-lifecycle.js +7 -7
  128. package/node_modules/@comis/channels/dist/index.d.ts +1 -1
  129. package/node_modules/@comis/channels/dist/index.js +1 -1
  130. package/node_modules/@comis/channels/dist/shared/channel-manager.d.ts +9 -3
  131. package/node_modules/@comis/channels/dist/shared/deliver-to-channel.js +12 -10
  132. package/node_modules/@comis/channels/dist/shared/inbound-gate.d.ts +1 -1
  133. package/node_modules/@comis/channels/dist/shared/inbound-gate.js +22 -7
  134. package/node_modules/@comis/channels/dist/shared/inbound-pipeline.d.ts +10 -3
  135. package/node_modules/@comis/channels/dist/shared/inbound-route.d.ts +1 -1
  136. package/node_modules/@comis/channels/dist/shared/inbound-route.js +13 -2
  137. package/node_modules/@comis/channels/dist/shared/response-filter.d.ts +11 -24
  138. package/node_modules/@comis/channels/dist/shared/response-filter.js +25 -53
  139. package/node_modules/@comis/channels/dist/telegram/telegram-adapter.js +1 -1
  140. package/node_modules/@comis/channels/package.json +1 -1
  141. package/node_modules/@comis/cli/dist/cli.js +2 -0
  142. package/node_modules/@comis/cli/dist/commands/agent.d.ts +3 -3
  143. package/node_modules/@comis/cli/dist/commands/agent.js +46 -3
  144. package/node_modules/@comis/cli/dist/commands/auth.d.ts +37 -0
  145. package/node_modules/@comis/cli/dist/commands/auth.js +433 -0
  146. package/node_modules/@comis/cli/dist/commands/doctor.d.ts +4 -1
  147. package/node_modules/@comis/cli/dist/commands/doctor.js +20 -5
  148. package/node_modules/@comis/cli/dist/commands/providers.d.ts +1 -2
  149. package/node_modules/@comis/cli/dist/commands/providers.js +5 -6
  150. package/node_modules/@comis/cli/dist/doctor/checks/oauth-health.d.ts +39 -0
  151. package/node_modules/@comis/cli/dist/doctor/checks/oauth-health.js +399 -0
  152. package/node_modules/@comis/cli/dist/doctor/types.d.ts +19 -0
  153. package/node_modules/@comis/cli/dist/index.d.ts +1 -0
  154. package/node_modules/@comis/cli/dist/index.js +10 -4
  155. package/node_modules/@comis/cli/dist/output/relative-time.d.ts +23 -0
  156. package/node_modules/@comis/cli/dist/output/relative-time.js +36 -0
  157. package/node_modules/@comis/cli/dist/wizard/non-interactive.js +17 -8
  158. package/node_modules/@comis/cli/dist/wizard/steps/03-provider.js +2 -1
  159. package/node_modules/@comis/cli/dist/wizard/steps/04-credentials.js +223 -34
  160. package/node_modules/@comis/cli/dist/wizard/steps/10-write-config.js +14 -0
  161. package/node_modules/@comis/cli/dist/wizard/steps/11-daemon-start.js +3 -3
  162. package/node_modules/@comis/cli/dist/wizard/types.d.ts +7 -0
  163. package/node_modules/@comis/cli/package.json +1 -1
  164. package/node_modules/@comis/core/dist/bootstrap.d.ts +1 -1
  165. package/node_modules/@comis/core/dist/config/env-substitution.d.ts +66 -0
  166. package/node_modules/@comis/core/dist/config/env-substitution.js +115 -0
  167. package/node_modules/@comis/core/dist/config/field-metadata.js +2 -0
  168. package/node_modules/@comis/core/dist/config/immutable-keys.js +4 -1
  169. package/node_modules/@comis/core/dist/config/index.d.ts +7 -1
  170. package/node_modules/@comis/core/dist/config/index.js +4 -1
  171. package/node_modules/@comis/core/dist/config/loader.js +61 -0
  172. package/node_modules/@comis/core/dist/config/managed-sections.d.ts +3 -3
  173. package/node_modules/@comis/core/dist/config/managed-sections.js +10 -5
  174. package/node_modules/@comis/core/dist/config/schema-agent.d.ts +4 -792
  175. package/node_modules/@comis/core/dist/config/schema-agent.js +16 -1
  176. package/node_modules/@comis/core/dist/config/schema-approvals.d.ts +0 -14
  177. package/node_modules/@comis/core/dist/config/schema-auto-reply-engine.d.ts +0 -6
  178. package/node_modules/@comis/core/dist/config/schema-background-tasks.d.ts +1 -6
  179. package/node_modules/@comis/core/dist/config/schema-background-tasks.js +7 -0
  180. package/node_modules/@comis/core/dist/config/schema-browser.d.ts +0 -18
  181. package/node_modules/@comis/core/dist/config/schema-channel.d.ts +0 -158
  182. package/node_modules/@comis/core/dist/config/schema-coalescer.d.ts +0 -5
  183. package/node_modules/@comis/core/dist/config/schema-daemon.d.ts +0 -32
  184. package/node_modules/@comis/core/dist/config/schema-delivery.d.ts +1 -17
  185. package/node_modules/@comis/core/dist/config/schema-delivery.js +2 -0
  186. package/node_modules/@comis/core/dist/config/schema-documentation.d.ts +0 -12
  187. package/node_modules/@comis/core/dist/config/schema-embedding.d.ts +0 -20
  188. package/node_modules/@comis/core/dist/config/schema-envelope.d.ts +0 -15
  189. package/node_modules/@comis/core/dist/config/schema-gateway.d.ts +0 -37
  190. package/node_modules/@comis/core/dist/config/schema-gemini-cache.d.ts +0 -4
  191. package/node_modules/@comis/core/dist/config/schema-gemini-cache.js +0 -2
  192. package/node_modules/@comis/core/dist/config/schema-integrations.d.ts +0 -318
  193. package/node_modules/@comis/core/dist/config/schema-lifecycle-reactions.d.ts +0 -18
  194. package/node_modules/@comis/core/dist/config/schema-memory-review.d.ts +0 -7
  195. package/node_modules/@comis/core/dist/config/schema-memory.d.ts +0 -16
  196. package/node_modules/@comis/core/dist/config/schema-messages.d.ts +0 -8
  197. package/node_modules/@comis/core/dist/config/schema-models.d.ts +0 -15
  198. package/node_modules/@comis/core/dist/config/schema-notification.d.ts +0 -5
  199. package/node_modules/@comis/core/dist/config/schema-oauth.d.ts +18 -0
  200. package/node_modules/@comis/core/dist/config/schema-oauth.js +19 -0
  201. package/node_modules/@comis/core/dist/config/schema-observability.d.ts +0 -38
  202. package/node_modules/@comis/core/dist/config/schema-output-retention.d.ts +34 -0
  203. package/node_modules/@comis/core/dist/config/schema-output-retention.js +48 -0
  204. package/node_modules/@comis/core/dist/config/schema-plugins.d.ts +0 -8
  205. package/node_modules/@comis/core/dist/config/schema-providers.d.ts +0 -64
  206. package/node_modules/@comis/core/dist/config/schema-queue.d.ts +0 -58
  207. package/node_modules/@comis/core/dist/config/schema-response-prefix.d.ts +0 -2
  208. package/node_modules/@comis/core/dist/config/schema-retry.d.ts +0 -6
  209. package/node_modules/@comis/core/dist/config/schema-scheduler.d.ts +0 -39
  210. package/node_modules/@comis/core/dist/config/schema-secrets.d.ts +0 -3
  211. package/node_modules/@comis/core/dist/config/schema-security.d.ts +0 -18
  212. package/node_modules/@comis/core/dist/config/schema-send-policy.d.ts +0 -13
  213. package/node_modules/@comis/core/dist/config/schema-sender-trust-display.d.ts +0 -5
  214. package/node_modules/@comis/core/dist/config/schema-serializer.js +2 -0
  215. package/node_modules/@comis/core/dist/config/schema-skills.d.ts +0 -63
  216. package/node_modules/@comis/core/dist/config/schema-skills.js +3 -4
  217. package/node_modules/@comis/core/dist/config/schema-streaming.d.ts +0 -38
  218. package/node_modules/@comis/core/dist/config/schema-telegram-file-guard.d.ts +0 -3
  219. package/node_modules/@comis/core/dist/config/schema-tooling.d.ts +87 -0
  220. package/node_modules/@comis/core/dist/config/schema-tooling.js +152 -0
  221. package/node_modules/@comis/core/dist/config/schema-verbosity.d.ts +0 -12
  222. package/node_modules/@comis/core/dist/config/schema-webhooks.d.ts +0 -40
  223. package/node_modules/@comis/core/dist/config/schema.d.ts +50 -37
  224. package/node_modules/@comis/core/dist/config/schema.js +9 -0
  225. package/node_modules/@comis/core/dist/context/context.d.ts +0 -4
  226. package/node_modules/@comis/core/dist/domain/approval-request.d.ts +0 -17
  227. package/node_modules/@comis/core/dist/domain/background-task-origin.d.ts +29 -0
  228. package/node_modules/@comis/core/dist/domain/background-task-origin.js +39 -0
  229. package/node_modules/@comis/core/dist/domain/delivery-origin.d.ts +0 -5
  230. package/node_modules/@comis/core/dist/domain/execution-graph.d.ts +0 -48
  231. package/node_modules/@comis/core/dist/domain/memory-entry.d.ts +0 -3
  232. package/node_modules/@comis/core/dist/domain/model-compat.d.ts +0 -4
  233. package/node_modules/@comis/core/dist/domain/normalized-message.d.ts +0 -15
  234. package/node_modules/@comis/core/dist/domain/provider-capabilities.d.ts +0 -6
  235. package/node_modules/@comis/core/dist/domain/rich-message.d.ts +0 -14
  236. package/node_modules/@comis/core/dist/domain/subagent-context-config.d.ts +0 -22
  237. package/node_modules/@comis/core/dist/domain/subagent-context-types.d.ts +0 -8
  238. package/node_modules/@comis/core/dist/event-bus/events-agent.d.ts +31 -0
  239. package/node_modules/@comis/core/dist/event-bus/events-infra.d.ts +76 -2
  240. package/node_modules/@comis/core/dist/exports/config.d.ts +2 -2
  241. package/node_modules/@comis/core/dist/exports/config.js +3 -1
  242. package/node_modules/@comis/core/dist/exports/domain.d.ts +2 -0
  243. package/node_modules/@comis/core/dist/exports/domain.js +1 -0
  244. package/node_modules/@comis/core/dist/exports/hooks.d.ts +1 -1
  245. package/node_modules/@comis/core/dist/exports/ports.d.ts +2 -2
  246. package/node_modules/@comis/core/dist/exports/ports.js +1 -1
  247. package/node_modules/@comis/core/dist/ports/channel-plugin.d.ts +0 -13
  248. package/node_modules/@comis/core/dist/ports/delivery-queue.d.ts +23 -0
  249. package/node_modules/@comis/core/dist/ports/delivery-queue.js +2 -0
  250. package/node_modules/@comis/core/dist/ports/index.d.ts +4 -0
  251. package/node_modules/@comis/core/dist/ports/index.js +5 -0
  252. package/node_modules/@comis/core/dist/ports/no-op-tool-capability.d.ts +30 -0
  253. package/node_modules/@comis/core/dist/ports/no-op-tool-capability.js +47 -0
  254. package/node_modules/@comis/core/dist/ports/oauth-credential-store.d.ts +64 -0
  255. package/node_modules/@comis/core/dist/ports/oauth-credential-store.js +37 -0
  256. package/node_modules/@comis/core/dist/ports/tool-capability.d.ts +165 -0
  257. package/node_modules/@comis/core/dist/ports/tool-capability.js +15 -0
  258. package/node_modules/@comis/core/dist/security/audit.d.ts +0 -11
  259. package/node_modules/@comis/core/dist/tool-metadata.d.ts +41 -1
  260. package/node_modules/@comis/core/dist/tool-metadata.js +1 -1
  261. package/node_modules/@comis/core/package.json +1 -1
  262. package/node_modules/@comis/daemon/bundled-skills/skill-creator/scripts/validate-skill.py +1 -1
  263. package/node_modules/@comis/daemon/dist/daemon-types.d.ts +23 -3
  264. package/node_modules/@comis/daemon/dist/daemon.js +168 -30
  265. package/node_modules/@comis/daemon/dist/index.d.ts +2 -0
  266. package/node_modules/@comis/daemon/dist/index.js +5 -0
  267. package/node_modules/@comis/daemon/dist/observability/channel-health-logger.js +3 -3
  268. package/node_modules/@comis/daemon/dist/observability/delivery-queue-logger.js +1 -1
  269. package/node_modules/@comis/daemon/dist/rpc/agent-handlers.d.ts +22 -1
  270. package/node_modules/@comis/daemon/dist/rpc/agent-handlers.js +84 -21
  271. package/node_modules/@comis/daemon/dist/rpc/agent-inline-workspace.d.ts +1 -1
  272. package/node_modules/@comis/daemon/dist/rpc/agent-inline-workspace.js +3 -3
  273. package/node_modules/@comis/daemon/dist/rpc/builtin-provider-guard.js +2 -2
  274. package/node_modules/@comis/daemon/dist/rpc/config-handlers.d.ts +9 -1
  275. package/node_modules/@comis/daemon/dist/rpc/config-handlers.js +104 -23
  276. package/node_modules/@comis/daemon/dist/rpc/credential-resolver.d.ts +30 -1
  277. package/node_modules/@comis/daemon/dist/rpc/credential-resolver.js +74 -11
  278. package/node_modules/@comis/daemon/dist/rpc/mcp-handlers.d.ts +8 -0
  279. package/node_modules/@comis/daemon/dist/rpc/mcp-handlers.js +22 -8
  280. package/node_modules/@comis/daemon/dist/rpc/model-handlers.d.ts +1 -1
  281. package/node_modules/@comis/daemon/dist/rpc/model-handlers.js +2 -2
  282. package/node_modules/@comis/daemon/dist/rpc/provider-handlers.js +9 -12
  283. package/node_modules/@comis/daemon/dist/rpc/rpc-dispatch.d.ts +1 -0
  284. package/node_modules/@comis/daemon/dist/rpc/rpc-dispatch.js +27 -2
  285. package/node_modules/@comis/daemon/dist/setup-docker-restart-warn.js +0 -1
  286. package/node_modules/@comis/daemon/dist/sub-agent-runner.d.ts +18 -0
  287. package/node_modules/@comis/daemon/dist/sub-agent-runner.js +41 -9
  288. package/node_modules/@comis/daemon/dist/wiring/index.d.ts +4 -0
  289. package/node_modules/@comis/daemon/dist/wiring/index.js +2 -0
  290. package/node_modules/@comis/daemon/dist/wiring/oauth-preflight.d.ts +21 -0
  291. package/node_modules/@comis/daemon/dist/wiring/oauth-preflight.js +134 -0
  292. package/node_modules/@comis/daemon/dist/wiring/setup-agents.d.ts +81 -2
  293. package/node_modules/@comis/daemon/dist/wiring/setup-agents.js +164 -3
  294. package/node_modules/@comis/daemon/dist/wiring/setup-background-completion-runner.d.ts +58 -0
  295. package/node_modules/@comis/daemon/dist/wiring/setup-background-completion-runner.js +59 -0
  296. package/node_modules/@comis/daemon/dist/wiring/setup-background-tasks.d.ts +10 -3
  297. package/node_modules/@comis/daemon/dist/wiring/setup-background-tasks.js +13 -7
  298. package/node_modules/@comis/daemon/dist/wiring/setup-channels.d.ts +9 -2
  299. package/node_modules/@comis/daemon/dist/wiring/setup-channels.js +35 -10
  300. package/node_modules/@comis/daemon/dist/wiring/setup-cross-session.d.ts +20 -5
  301. package/node_modules/@comis/daemon/dist/wiring/setup-cross-session.js +21 -16
  302. package/node_modules/@comis/daemon/dist/wiring/setup-delivery.d.ts +14 -5
  303. package/node_modules/@comis/daemon/dist/wiring/setup-delivery.js +65 -20
  304. package/node_modules/@comis/daemon/dist/wiring/setup-gateway.d.ts +4 -6
  305. package/node_modules/@comis/daemon/dist/wiring/setup-gateway.js +3 -5
  306. package/node_modules/@comis/daemon/dist/wiring/setup-heartbeat.d.ts +20 -5
  307. package/node_modules/@comis/daemon/dist/wiring/setup-heartbeat.js +11 -2
  308. package/node_modules/@comis/daemon/dist/wiring/setup-output-retention.d.ts +89 -0
  309. package/node_modules/@comis/daemon/dist/wiring/setup-output-retention.js +212 -0
  310. package/node_modules/@comis/daemon/dist/wiring/setup-schedulers.js +4 -0
  311. package/node_modules/@comis/daemon/dist/wiring/setup-tools.d.ts +18 -4
  312. package/node_modules/@comis/daemon/dist/wiring/setup-tools.js +29 -10
  313. package/node_modules/@comis/daemon/dist/wiring/tool-capability-adapter.d.ts +75 -0
  314. package/node_modules/@comis/daemon/dist/wiring/tool-capability-adapter.js +253 -0
  315. package/node_modules/@comis/daemon/package.json +1 -1
  316. package/node_modules/@comis/gateway/dist/index.d.ts +2 -0
  317. package/node_modules/@comis/gateway/dist/index.js +2 -0
  318. package/node_modules/@comis/gateway/dist/oauth/oauth-callback-route.d.ts +66 -0
  319. package/node_modules/@comis/gateway/dist/oauth/oauth-callback-route.js +212 -0
  320. package/node_modules/@comis/gateway/dist/server/hono-server.d.ts +14 -0
  321. package/node_modules/@comis/gateway/dist/server/hono-server.js +10 -0
  322. package/node_modules/@comis/gateway/dist/webhook/webhook-endpoint.d.ts +0 -4
  323. package/node_modules/@comis/gateway/package.json +1 -1
  324. package/node_modules/@comis/infra/dist/logging/log-fields.d.ts +23 -0
  325. package/node_modules/@comis/infra/package.json +1 -1
  326. package/node_modules/@comis/memory/dist/compaction.d.ts +3 -5
  327. package/node_modules/@comis/memory/dist/compaction.js +2 -3
  328. package/node_modules/@comis/memory/dist/delivery-queue-adapter.d.ts +2 -2
  329. package/node_modules/@comis/memory/dist/delivery-queue-adapter.js +49 -1
  330. package/node_modules/@comis/memory/dist/index.d.ts +2 -0
  331. package/node_modules/@comis/memory/dist/index.js +3 -0
  332. package/node_modules/@comis/memory/dist/memory-api.d.ts +1 -1
  333. package/node_modules/@comis/memory/dist/memory-api.js +1 -1
  334. package/node_modules/@comis/memory/dist/oauth-profile-schema.d.ts +17 -0
  335. package/node_modules/@comis/memory/dist/oauth-profile-schema.js +33 -0
  336. package/node_modules/@comis/memory/dist/oauth-profile-store-encrypted.d.ts +27 -0
  337. package/node_modules/@comis/memory/dist/oauth-profile-store-encrypted.js +144 -0
  338. package/node_modules/@comis/memory/dist/session-store.d.ts +1 -1
  339. package/node_modules/@comis/memory/dist/session-store.js +1 -1
  340. package/node_modules/@comis/memory/dist/sqlite-secret-store.d.ts +29 -3
  341. package/node_modules/@comis/memory/dist/sqlite-secret-store.js +11 -3
  342. package/node_modules/@comis/memory/package.json +1 -1
  343. package/node_modules/@comis/scheduler/dist/cron/cron-types.d.ts +0 -42
  344. package/node_modules/@comis/scheduler/dist/execution/execution-lock.d.ts +13 -0
  345. package/node_modules/@comis/scheduler/dist/execution/execution-lock.js +1 -1
  346. package/node_modules/@comis/scheduler/dist/execution/index.d.ts +2 -0
  347. package/node_modules/@comis/scheduler/dist/execution/index.js +2 -0
  348. package/node_modules/@comis/scheduler/dist/heartbeat/agent-heartbeat-source.d.ts +29 -8
  349. package/node_modules/@comis/scheduler/dist/heartbeat/agent-heartbeat-source.js +20 -8
  350. package/node_modules/@comis/scheduler/dist/index.d.ts +2 -0
  351. package/node_modules/@comis/scheduler/dist/index.js +2 -0
  352. package/node_modules/@comis/scheduler/dist/system-events/system-event-types.d.ts +0 -3
  353. package/node_modules/@comis/scheduler/dist/tasks/task-types.d.ts +0 -17
  354. package/node_modules/@comis/scheduler/package.json +1 -1
  355. package/node_modules/@comis/shared/dist/index.d.ts +3 -0
  356. package/node_modules/@comis/shared/dist/index.js +4 -0
  357. package/node_modules/@comis/shared/dist/mcp-tool-name.d.ts +78 -0
  358. package/node_modules/@comis/shared/dist/mcp-tool-name.js +92 -0
  359. package/node_modules/@comis/shared/dist/silent-tokens.d.ts +38 -0
  360. package/node_modules/@comis/shared/dist/silent-tokens.js +51 -0
  361. package/node_modules/@comis/shared/dist/visible-delivery.d.ts +28 -0
  362. package/node_modules/@comis/shared/dist/visible-delivery.js +16 -0
  363. package/node_modules/@comis/shared/package.json +1 -1
  364. package/node_modules/@comis/skills/dist/bridge/mcp-tool-bridge.d.ts +2 -13
  365. package/node_modules/@comis/skills/dist/bridge/mcp-tool-bridge.js +3 -21
  366. package/node_modules/@comis/skills/dist/bridge/schema-validator.d.ts +38 -0
  367. package/node_modules/@comis/skills/dist/bridge/schema-validator.js +169 -0
  368. package/node_modules/@comis/skills/dist/bridge/tool-metadata-enforcement.js +12 -0
  369. package/node_modules/@comis/skills/dist/bridge/tool-metadata-registry.js +133 -3
  370. package/node_modules/@comis/skills/dist/builtin/exec-diagnostics.d.ts +32 -0
  371. package/node_modules/@comis/skills/dist/builtin/exec-diagnostics.js +127 -0
  372. package/node_modules/@comis/skills/dist/builtin/exec-security.js +38 -0
  373. package/node_modules/@comis/skills/dist/builtin/exec-tool.d.ts +55 -9
  374. package/node_modules/@comis/skills/dist/builtin/exec-tool.js +392 -19
  375. package/node_modules/@comis/skills/dist/builtin/file-tools/grep-tool.js +6 -6
  376. package/node_modules/@comis/skills/dist/builtin/install-detour.d.ts +67 -0
  377. package/node_modules/@comis/skills/dist/builtin/install-detour.js +342 -0
  378. package/node_modules/@comis/skills/dist/builtin/platform/admin-manage-factory.js +5 -5
  379. package/node_modules/@comis/skills/dist/builtin/platform/agents-manage-tool.d.ts +7 -6
  380. package/node_modules/@comis/skills/dist/builtin/platform/agents-manage-tool.js +40 -29
  381. package/node_modules/@comis/skills/dist/builtin/platform/background-tasks-tool.d.ts +4 -1
  382. package/node_modules/@comis/skills/dist/builtin/platform/background-tasks-tool.js +3 -3
  383. package/node_modules/@comis/skills/dist/builtin/platform/cron-tool.js +1 -1
  384. package/node_modules/@comis/skills/dist/builtin/platform/gateway-tool.js +6 -6
  385. package/node_modules/@comis/skills/dist/builtin/platform/mcp-manage-tool.d.ts +1 -1
  386. package/node_modules/@comis/skills/dist/builtin/platform/mcp-manage-tool.js +9 -9
  387. package/node_modules/@comis/skills/dist/builtin/platform/message-tool.js +18 -0
  388. package/node_modules/@comis/skills/dist/builtin/platform/messaging-factory.d.ts +18 -1
  389. package/node_modules/@comis/skills/dist/builtin/platform/messaging-factory.js +18 -2
  390. package/node_modules/@comis/skills/dist/builtin/platform/models-manage-tool.js +3 -3
  391. package/node_modules/@comis/skills/dist/builtin/process-registry.d.ts +14 -0
  392. package/node_modules/@comis/skills/dist/builtin/process-tool.d.ts +24 -4
  393. package/node_modules/@comis/skills/dist/builtin/process-tool.js +25 -7
  394. package/node_modules/@comis/skills/dist/builtin/sandbox/bwrap-provider.d.ts +11 -0
  395. package/node_modules/@comis/skills/dist/builtin/sandbox/bwrap-provider.js +123 -1
  396. package/node_modules/@comis/skills/dist/builtin/sandbox/detect-provider.js +40 -15
  397. package/node_modules/@comis/skills/dist/index.d.ts +4 -1
  398. package/node_modules/@comis/skills/dist/index.js +3 -1
  399. package/node_modules/@comis/skills/dist/manifest/capability-parser.d.ts +44 -0
  400. package/node_modules/@comis/skills/dist/manifest/capability-parser.js +68 -0
  401. package/node_modules/@comis/skills/dist/manifest/schema.d.ts +44 -37
  402. package/node_modules/@comis/skills/dist/manifest/schema.js +35 -0
  403. package/node_modules/@comis/skills/dist/media/ssrf-fetcher.d.ts +7 -0
  404. package/node_modules/@comis/skills/dist/media/ssrf-fetcher.js +9 -2
  405. package/node_modules/@comis/skills/dist/registry/discovery.d.ts +8 -0
  406. package/node_modules/@comis/skills/dist/registry/discovery.js +10 -3
  407. package/node_modules/@comis/skills/dist/registry/skill-registry.d.ts +45 -1
  408. package/node_modules/@comis/skills/dist/registry/skill-registry.js +70 -7
  409. package/node_modules/@comis/skills/package.json +1 -1
  410. package/node_modules/@comis/web/dist/assets/{agent-detail-71BSbSfD.js → agent-detail-q8t1NB7w.js} +1 -1
  411. package/node_modules/@comis/web/dist/assets/{agent-editor-CTSDZhwT.js → agent-editor-B46io5gv.js} +1 -1
  412. package/node_modules/@comis/web/dist/assets/{agent-list-BEhni2ea.js → agent-list-DQ6g2Rcx.js} +1 -1
  413. package/node_modules/@comis/web/dist/assets/{billing-view-DVP1IvVs.js → billing-view-IWPR8LgF.js} +1 -1
  414. package/node_modules/@comis/web/dist/assets/{channel-detail-N_YK74xC.js → channel-detail-DlNNZuuC.js} +1 -1
  415. package/node_modules/@comis/web/dist/assets/{channel-list-DRk6ZJaF.js → channel-list-DhGwxiMc.js} +1 -1
  416. package/node_modules/@comis/web/dist/assets/{chat-console-Dm-GtSf9.js → chat-console-Nv6fM3Rc.js} +1 -1
  417. package/node_modules/@comis/web/dist/assets/{config-editor-CIferYX6.js → config-editor-BYKuJF76.js} +1 -1
  418. package/node_modules/@comis/web/dist/assets/{context-dag-browser-CL84rXXM.js → context-dag-browser-ClNEtzYE.js} +1 -1
  419. package/node_modules/@comis/web/dist/assets/{context-engine-B1HOTEZv.js → context-engine-BZJ6HChd.js} +1 -1
  420. package/node_modules/@comis/web/dist/assets/{delivery-view-Y6JKYVFw.js → delivery-view-Cb7I3vGu.js} +1 -1
  421. package/node_modules/@comis/web/dist/assets/{diagnostics-view-DWV1UQjz.js → diagnostics-view-9u9Lyu5a.js} +1 -1
  422. package/node_modules/@comis/web/dist/assets/{ic-chat-message-DfSERzzg.js → ic-chat-message-BFt3cVpx.js} +1 -1
  423. package/node_modules/@comis/web/dist/assets/{ic-connection-dot-CXyhlJup.js → ic-connection-dot-y77LZ3Gu.js} +1 -1
  424. package/node_modules/@comis/web/dist/assets/{ic-tool-call-DNmwTjek.js → ic-tool-call-qt6w1NQl.js} +1 -1
  425. package/node_modules/@comis/web/dist/assets/{index-CBr0Tm9_.js → index-8Tg9oc-C.js} +2 -2
  426. package/node_modules/@comis/web/dist/assets/{mcp-management-BaH2-vox.js → mcp-management-69dtH_kY.js} +2 -2
  427. package/node_modules/@comis/web/dist/assets/{media-config-CZLshJoN.js → media-config-BdjLj5c1.js} +1 -1
  428. package/node_modules/@comis/web/dist/assets/{media-test-C9NUWgo_.js → media-test-DuPqrixi.js} +1 -1
  429. package/node_modules/@comis/web/dist/assets/{memory-inspector-D_fmTcRN.js → memory-inspector-B-Pepbq-.js} +1 -1
  430. package/node_modules/@comis/web/dist/assets/{message-center-BBFlNCZn.js → message-center-B7l0yNYY.js} +1 -1
  431. package/node_modules/@comis/web/dist/assets/{models-BytGLm99.js → models-JHFHuv5S.js} +1 -1
  432. package/node_modules/@comis/web/dist/assets/{observe-view-VXtHqaqq.js → observe-view-r8mqhy4O.js} +1 -1
  433. package/node_modules/@comis/web/dist/assets/{pipeline-builder-CfXczlfJ.js → pipeline-builder-XjkiZRcR.js} +1 -1
  434. package/node_modules/@comis/web/dist/assets/{pipeline-history-CPmXFnbe.js → pipeline-history-CZqJv_Hj.js} +1 -1
  435. package/node_modules/@comis/web/dist/assets/{pipeline-history-detail-DcueTMs9.js → pipeline-history-detail-BEFGMoDy.js} +1 -1
  436. package/node_modules/@comis/web/dist/assets/{pipeline-list-B-xG5WZh.js → pipeline-list-B6q5LvO1.js} +1 -1
  437. package/node_modules/@comis/web/dist/assets/{pipeline-monitor-pnIOYaSY.js → pipeline-monitor-BNomXjVL.js} +1 -1
  438. package/node_modules/@comis/web/dist/assets/{scheduler-BtUIFHhA.js → scheduler-BJEjcGKA.js} +1 -1
  439. package/node_modules/@comis/web/dist/assets/{security-C8mWRq2y.js → security-2G1jhBfV.js} +1 -1
  440. package/node_modules/@comis/web/dist/assets/{session-detail-DgdkO5ka.js → session-detail-DmVPzFBR.js} +1 -1
  441. package/node_modules/@comis/web/dist/assets/{session-list-DcylcfTn.js → session-list-CsqMQoHs.js} +1 -1
  442. package/node_modules/@comis/web/dist/assets/{setup-wizard-BP5yjsuL.js → setup-wizard-CAdM-gSP.js} +1 -1
  443. package/node_modules/@comis/web/dist/assets/{skills-DXt1bX8Z.js → skills-2ODqKaWr.js} +1 -1
  444. package/node_modules/@comis/web/dist/assets/{subagents-C7YbUHXY.js → subagents-BFlwfTbD.js} +1 -1
  445. package/node_modules/@comis/web/dist/assets/{workspace-manager-DP6pW4wa.js → workspace-manager--CbOx_dI.js} +1 -1
  446. package/node_modules/@comis/web/dist/index.html +1 -1
  447. package/node_modules/@comis/web/package.json +1 -1
  448. package/package.json +25 -24
@@ -52,38 +52,26 @@ export type NodeTypeId = z.infer<typeof NodeTypeIdSchema>;
52
52
  * `dependsOn` array.
53
53
  */
54
54
  export declare const GraphNodeSchema: z.ZodObject<{
55
- /** Unique identifier within the graph */
56
55
  nodeId: z.ZodString;
57
- /** Task description for the sub-agent */
58
56
  task: z.ZodString;
59
- /** Which agent executes this node (defaults to caller's agent) */
60
57
  agentId: z.ZodOptional<z.ZodString>;
61
- /** Model override for this node */
62
58
  model: z.ZodOptional<z.ZodString>;
63
- /** Node IDs that must complete before this node can run */
64
59
  dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
65
- /** Per-node timeout in milliseconds. When omitted, typed nodes use driver.defaultTimeoutMs; regular nodes rely on maxSteps / graph-level timeout. */
66
60
  timeoutMs: z.ZodOptional<z.ZodNumber>;
67
- /** Maximum agentic steps for the sub-agent */
68
61
  maxSteps: z.ZodOptional<z.ZodNumber>;
69
- /** Barrier mode for fan-in nodes: all (default), majority (>50%), best-effort (any completed) */
70
62
  barrierMode: z.ZodDefault<z.ZodEnum<{
71
63
  all: "all";
72
64
  majority: "majority";
73
65
  "best-effort": "best-effort";
74
66
  }>>;
75
- /** Number of automatic retries on failure (0-3, default 1) */
76
67
  retries: z.ZodDefault<z.ZodNumber>;
77
- /** Context verbosity mode: full (default), summary (500 chars + shared dir ref), refs (file path refs), none (skip upstream outputs) */
78
68
  contextMode: z.ZodDefault<z.ZodEnum<{
79
69
  full: "full";
80
70
  none: "none";
81
71
  summary: "summary";
82
72
  refs: "refs";
83
73
  }>>;
84
- /** MCP server names whose tools should be pre-discovered for this node's sub-agent. Resolves against the graph tool superset at spawn time. */
85
74
  mcpServers: z.ZodDefault<z.ZodArray<z.ZodString>>;
86
- /** Node type identifier -- if set, this node uses a built-in driver instead of direct agent execution */
87
75
  typeId: z.ZodOptional<z.ZodEnum<{
88
76
  agent: "agent";
89
77
  debate: "debate";
@@ -93,7 +81,6 @@ export declare const GraphNodeSchema: z.ZodObject<{
93
81
  "approval-gate": "approval-gate";
94
82
  "map-reduce": "map-reduce";
95
83
  }>>;
96
- /** Type-specific configuration -- validated against the driver's configSchema at the RPC layer */
97
84
  typeConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
98
85
  }, z.core.$strict>;
99
86
  export type GraphNode = z.infer<typeof GraphNodeSchema>;
@@ -104,9 +91,7 @@ export type GraphNode = z.infer<typeof GraphNodeSchema>;
104
91
  * and timing information for observability.
105
92
  */
106
93
  export declare const NodeExecutionStateSchema: z.ZodObject<{
107
- /** Node identifier (matches GraphNode.nodeId) */
108
94
  nodeId: z.ZodString;
109
- /** Current lifecycle status */
110
95
  status: z.ZodEnum<{
111
96
  completed: "completed";
112
97
  failed: "failed";
@@ -115,31 +100,18 @@ export declare const NodeExecutionStateSchema: z.ZodObject<{
115
100
  running: "running";
116
101
  skipped: "skipped";
117
102
  }>;
118
- /** Sub-agent run ID, set when running */
119
103
  runId: z.ZodOptional<z.ZodString>;
120
- /** Result text, set when completed */
121
104
  output: z.ZodOptional<z.ZodString>;
122
- /** Error text, set when failed */
123
105
  error: z.ZodOptional<z.ZodString>;
124
- /** Epoch ms when execution started */
125
106
  startedAt: z.ZodOptional<z.ZodNumber>;
126
- /** Epoch ms when execution finished */
127
107
  completedAt: z.ZodOptional<z.ZodNumber>;
128
- /** Current retry attempt number (0 = first run, 1 = first retry, etc.) */
129
108
  retryAttempt: z.ZodOptional<z.ZodNumber>;
130
- /** Number of retries still available */
131
109
  retriesRemaining: z.ZodOptional<z.ZodNumber>;
132
- /** Formatted sessionKey of the most recent aborted attempt. Passed as
133
- * reuseSessionKey on the next retry spawn so the sub-agent can benefit
134
- * from any cache written by the aborted run and avoid sending an entirely
135
- * cold prompt. Cleared when the node reaches a terminal state. */
136
110
  priorSessionKey: z.ZodOptional<z.ZodString>;
137
111
  }, z.core.$strict>;
138
112
  export type NodeExecutionState = z.infer<typeof NodeExecutionStateSchema>;
139
113
  export declare const GraphBudgetSchema: z.ZodObject<{
140
- /** Maximum total tokens across all nodes */
141
114
  maxTokens: z.ZodOptional<z.ZodNumber>;
142
- /** Maximum total cost across all nodes */
143
115
  maxCost: z.ZodOptional<z.ZodNumber>;
144
116
  }, z.core.$strict>;
145
117
  export type GraphBudget = z.infer<typeof GraphBudgetSchema>;
@@ -151,40 +123,27 @@ export type GraphBudget = z.infer<typeof GraphBudgetSchema>;
151
123
  * must be acyclic.
152
124
  */
153
125
  export declare const ExecutionGraphSchema: z.ZodObject<{
154
- /** DAG nodes (1..20) */
155
126
  nodes: z.ZodArray<z.ZodObject<{
156
- /** Unique identifier within the graph */
157
127
  nodeId: z.ZodString;
158
- /** Task description for the sub-agent */
159
128
  task: z.ZodString;
160
- /** Which agent executes this node (defaults to caller's agent) */
161
129
  agentId: z.ZodOptional<z.ZodString>;
162
- /** Model override for this node */
163
130
  model: z.ZodOptional<z.ZodString>;
164
- /** Node IDs that must complete before this node can run */
165
131
  dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
166
- /** Per-node timeout in milliseconds. When omitted, typed nodes use driver.defaultTimeoutMs; regular nodes rely on maxSteps / graph-level timeout. */
167
132
  timeoutMs: z.ZodOptional<z.ZodNumber>;
168
- /** Maximum agentic steps for the sub-agent */
169
133
  maxSteps: z.ZodOptional<z.ZodNumber>;
170
- /** Barrier mode for fan-in nodes: all (default), majority (>50%), best-effort (any completed) */
171
134
  barrierMode: z.ZodDefault<z.ZodEnum<{
172
135
  all: "all";
173
136
  majority: "majority";
174
137
  "best-effort": "best-effort";
175
138
  }>>;
176
- /** Number of automatic retries on failure (0-3, default 1) */
177
139
  retries: z.ZodDefault<z.ZodNumber>;
178
- /** Context verbosity mode: full (default), summary (500 chars + shared dir ref), refs (file path refs), none (skip upstream outputs) */
179
140
  contextMode: z.ZodDefault<z.ZodEnum<{
180
141
  full: "full";
181
142
  none: "none";
182
143
  summary: "summary";
183
144
  refs: "refs";
184
145
  }>>;
185
- /** MCP server names whose tools should be pre-discovered for this node's sub-agent. Resolves against the graph tool superset at spawn time. */
186
146
  mcpServers: z.ZodDefault<z.ZodArray<z.ZodString>>;
187
- /** Node type identifier -- if set, this node uses a built-in driver instead of direct agent execution */
188
147
  typeId: z.ZodOptional<z.ZodEnum<{
189
148
  agent: "agent";
190
149
  debate: "debate";
@@ -194,23 +153,16 @@ export declare const ExecutionGraphSchema: z.ZodObject<{
194
153
  "approval-gate": "approval-gate";
195
154
  "map-reduce": "map-reduce";
196
155
  }>>;
197
- /** Type-specific configuration -- validated against the driver's configSchema at the RPC layer */
198
156
  typeConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
199
157
  }, z.core.$strict>>;
200
- /** Human-readable graph label */
201
158
  label: z.ZodOptional<z.ZodString>;
202
- /** Failure strategy: fail-fast stops on first failure, continue runs remaining */
203
159
  onFailure: z.ZodDefault<z.ZodEnum<{
204
160
  continue: "continue";
205
161
  "fail-fast": "fail-fast";
206
162
  }>>;
207
- /** Graph-level timeout in milliseconds (default: 1 500 000 — 25 minutes) */
208
163
  timeoutMs: z.ZodDefault<z.ZodNumber>;
209
- /** Resource limits for the graph execution */
210
164
  budget: z.ZodOptional<z.ZodObject<{
211
- /** Maximum total tokens across all nodes */
212
165
  maxTokens: z.ZodOptional<z.ZodNumber>;
213
- /** Maximum total cost across all nodes */
214
166
  maxCost: z.ZodOptional<z.ZodNumber>;
215
167
  }, z.core.$strict>>;
216
168
  }, z.core.$strict>;
@@ -32,7 +32,6 @@ export declare const MemorySourceSchema: z.ZodObject<{
32
32
  export declare const MemoryEntrySchema: z.ZodObject<{
33
33
  id: z.ZodGUID;
34
34
  tenantId: z.ZodDefault<z.ZodString>;
35
- /** Agent that created this memory entry (enables per-agent memory isolation) */
36
35
  agentId: z.ZodDefault<z.ZodString>;
37
36
  userId: z.ZodString;
38
37
  content: z.ZodString;
@@ -51,13 +50,11 @@ export declare const MemoryEntrySchema: z.ZodObject<{
51
50
  createdAt: z.ZodNumber;
52
51
  updatedAt: z.ZodOptional<z.ZodNumber>;
53
52
  expiresAt: z.ZodOptional<z.ZodNumber>;
54
- /** Taint level indicating content sanitization status */
55
53
  taintLevel: z.ZodOptional<z.ZodEnum<{
56
54
  clean: "clean";
57
55
  wrapped: "wrapped";
58
56
  raw: "raw";
59
57
  }>>;
60
- /** Type of source that produced this entry */
61
58
  sourceType: z.ZodOptional<z.ZodEnum<{
62
59
  system: "system";
63
60
  unknown: "unknown";
@@ -43,19 +43,15 @@ export type ToolCallArgumentsEncoding = z.infer<typeof ToolCallArgumentsEncoding
43
43
  * Strict object: unknown fields are rejected to catch typos early.
44
44
  */
45
45
  export declare const ModelCompatConfigSchema: z.ZodObject<{
46
- /** Whether this model supports tool use. Undefined = assume yes. */
47
46
  supportsTools: z.ZodOptional<z.ZodBoolean>;
48
- /** Tool schema transformation profile. Undefined = "default". */
49
47
  toolSchemaProfile: z.ZodOptional<z.ZodEnum<{
50
48
  default: "default";
51
49
  xai: "xai";
52
50
  }>>;
53
- /** How the model encodes tool call arguments. Undefined = "json". */
54
51
  toolCallArgumentsEncoding: z.ZodOptional<z.ZodEnum<{
55
52
  json: "json";
56
53
  "html-entities": "html-entities";
57
54
  }>>;
58
- /** Whether the model has a native web search tool (e.g., Perplexity). Undefined = false. */
59
55
  nativeWebSearchTool: z.ZodOptional<z.ZodBoolean>;
60
56
  }, z.core.$strict>;
61
57
  export type ModelCompatConfig = z.infer<typeof ModelCompatConfigSchema>;
@@ -4,9 +4,7 @@ import { z } from "zod";
4
4
  * Voice-specific metadata for voice notes and audio messages.
5
5
  */
6
6
  export declare const VoiceMetaSchema: z.ZodObject<{
7
- /** Base64-encoded waveform amplitude data (256 samples, 0-255) */
8
7
  waveform: z.ZodOptional<z.ZodString>;
9
- /** Audio codec name (e.g., "opus", "vorbis", "aac") */
10
8
  codec: z.ZodOptional<z.ZodString>;
11
9
  }, z.core.$strict>;
12
10
  export type VoiceMeta = z.infer<typeof VoiceMetaSchema>;
@@ -25,18 +23,12 @@ export declare const AttachmentSchema: z.ZodObject<{
25
23
  mimeType: z.ZodOptional<z.ZodString>;
26
24
  fileName: z.ZodOptional<z.ZodString>;
27
25
  sizeBytes: z.ZodOptional<z.ZodNumber>;
28
- /** Audio/video duration in milliseconds */
29
26
  durationMs: z.ZodOptional<z.ZodNumber>;
30
- /** Whether this is a voice note (not regular audio) */
31
27
  isVoiceNote: z.ZodOptional<z.ZodBoolean>;
32
- /** Voice-specific metadata (waveform, codec) */
33
28
  voiceMeta: z.ZodOptional<z.ZodObject<{
34
- /** Base64-encoded waveform amplitude data (256 samples, 0-255) */
35
29
  waveform: z.ZodOptional<z.ZodString>;
36
- /** Audio codec name (e.g., "opus", "vorbis", "aac") */
37
30
  codec: z.ZodOptional<z.ZodString>;
38
31
  }, z.core.$strict>>;
39
- /** Transcription text (filled by STT pipeline) */
40
32
  transcription: z.ZodOptional<z.ZodString>;
41
33
  }, z.core.$strict>;
42
34
  export type Attachment = z.infer<typeof AttachmentSchema>;
@@ -66,22 +58,15 @@ export declare const NormalizedMessageSchema: z.ZodObject<{
66
58
  mimeType: z.ZodOptional<z.ZodString>;
67
59
  fileName: z.ZodOptional<z.ZodString>;
68
60
  sizeBytes: z.ZodOptional<z.ZodNumber>;
69
- /** Audio/video duration in milliseconds */
70
61
  durationMs: z.ZodOptional<z.ZodNumber>;
71
- /** Whether this is a voice note (not regular audio) */
72
62
  isVoiceNote: z.ZodOptional<z.ZodBoolean>;
73
- /** Voice-specific metadata (waveform, codec) */
74
63
  voiceMeta: z.ZodOptional<z.ZodObject<{
75
- /** Base64-encoded waveform amplitude data (256 samples, 0-255) */
76
64
  waveform: z.ZodOptional<z.ZodString>;
77
- /** Audio codec name (e.g., "opus", "vorbis", "aac") */
78
65
  codec: z.ZodOptional<z.ZodString>;
79
66
  }, z.core.$strict>>;
80
- /** Transcription text (filled by STT pipeline) */
81
67
  transcription: z.ZodOptional<z.ZodString>;
82
68
  }, z.core.$strict>>>;
83
69
  replyTo: z.ZodOptional<z.ZodGUID>;
84
- /** Normalized chat type derived from platform metadata. */
85
70
  chatType: z.ZodOptional<z.ZodEnum<{
86
71
  channel: "channel";
87
72
  dm: "dm";
@@ -47,23 +47,17 @@ export type TranscriptToolCallIdMode = z.infer<typeof TranscriptToolCallIdModeSc
47
47
  * Strict object: unknown fields are rejected.
48
48
  */
49
49
  export declare const ProviderCapabilitiesSchema: z.ZodObject<{
50
- /** Provider family for SDK dispatch. Default: "default". */
51
50
  providerFamily: z.ZodDefault<z.ZodEnum<{
52
51
  default: "default";
53
52
  openai: "openai";
54
53
  anthropic: "anthropic";
55
54
  google: "google";
56
55
  }>>;
57
- /** Model name substrings that should have thinking blocks dropped from context.
58
- * Empty array = no special handling. */
59
56
  dropThinkingBlockModelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
60
- /** How tool_call_id values are formatted in transcripts. Default: "default". */
61
57
  transcriptToolCallIdMode: z.ZodDefault<z.ZodEnum<{
62
58
  default: "default";
63
59
  strict9: "strict9";
64
60
  }>>;
65
- /** Model name substrings that should use strict9 tool_call_id mode.
66
- * Empty array = no special handling. */
67
61
  transcriptToolCallIdModelHints: z.ZodDefault<z.ZodArray<z.ZodString>>;
68
62
  }, z.core.$strict>;
69
63
  export type ProviderCapabilities = z.infer<typeof ProviderCapabilitiesSchema>;
@@ -11,13 +11,9 @@
11
11
  import type { Result } from "@comis/shared";
12
12
  import { z } from "zod";
13
13
  export declare const RichButtonSchema: z.ZodObject<{
14
- /** Button label text */
15
14
  text: z.ZodString;
16
- /** Callback identifier for interactive buttons (64-byte Telegram limit) */
17
15
  callback_data: z.ZodOptional<z.ZodString>;
18
- /** URL for link buttons (mutually exclusive with callback_data) */
19
16
  url: z.ZodOptional<z.ZodString>;
20
- /** Visual style hint for platform rendering */
21
17
  style: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
22
18
  link: "link";
23
19
  primary: "primary";
@@ -32,29 +28,19 @@ export declare const RichCardFieldSchema: z.ZodObject<{
32
28
  inline: z.ZodOptional<z.ZodBoolean>;
33
29
  }, z.core.$strict>;
34
30
  export declare const RichCardSchema: z.ZodObject<{
35
- /** Card title */
36
31
  title: z.ZodOptional<z.ZodString>;
37
- /** Card description/body text */
38
32
  description: z.ZodOptional<z.ZodString>;
39
- /** Image URL for card thumbnail/image */
40
33
  image_url: z.ZodOptional<z.ZodString>;
41
- /** Color as integer (e.g. 0x0099FF) for embed accent */
42
34
  color: z.ZodOptional<z.ZodNumber>;
43
- /** Structured key-value fields */
44
35
  fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
45
36
  name: z.ZodString;
46
37
  value: z.ZodString;
47
38
  inline: z.ZodOptional<z.ZodBoolean>;
48
39
  }, z.core.$strict>>>;
49
- /** Card-level button rows (for Discord embed + button combos) */
50
40
  buttons: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
51
- /** Button label text */
52
41
  text: z.ZodString;
53
- /** Callback identifier for interactive buttons (64-byte Telegram limit) */
54
42
  callback_data: z.ZodOptional<z.ZodString>;
55
- /** URL for link buttons (mutually exclusive with callback_data) */
56
43
  url: z.ZodOptional<z.ZodString>;
57
- /** Visual style hint for platform rendering */
58
44
  style: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
59
45
  link: "link";
60
46
  primary: "primary";
@@ -10,53 +10,31 @@ import { z } from "zod";
10
10
  * `config/schema-security.ts`.
11
11
  */
12
12
  export declare const SubagentContextConfigSchema: z.ZodObject<{
13
- /** Maximum spawn depth (parent -> child -> grandchild). 1 = no nesting. */
14
13
  maxSpawnDepth: z.ZodDefault<z.ZodNumber>;
15
- /** Maximum concurrent active children per parent agent */
16
14
  maxChildrenPerAgent: z.ZodDefault<z.ZodNumber>;
17
- /** Token threshold: below = passthrough (L1), above = LLM condensation (L2) */
18
15
  maxResultTokens: z.ZodDefault<z.ZodNumber>;
19
- /** Result file retention in ms (auto-sweep after this) */
20
16
  resultRetentionMs: z.ZodDefault<z.ZodNumber>;
21
- /** Condensation strategy: "auto" selects level based on token count */
22
17
  condensationStrategy: z.ZodDefault<z.ZodEnum<{
23
18
  never: "never";
24
19
  always: "always";
25
20
  auto: "auto";
26
21
  }>>;
27
- /** Parent history mode: "none" = no parent context, "summary" = LLM summary */
28
22
  includeParentHistory: z.ZodDefault<z.ZodEnum<{
29
23
  none: "none";
30
24
  summary: "summary";
31
25
  }>>;
32
- /** Inject objective statement that survives compaction */
33
26
  objectiveReinforcement: z.ZodDefault<z.ZodBoolean>;
34
- /** Pass artifact references to subagent (file paths, not inline content) */
35
27
  artifactPassthrough: z.ZodDefault<z.ZodBoolean>;
36
- /** Context fill ratio that triggers auto-compaction (0-1) */
37
28
  autoCompactThreshold: z.ZodDefault<z.ZodNumber>;
38
- /** Preserve error details in condensed results */
39
29
  errorPreservation: z.ZodDefault<z.ZodBoolean>;
40
- /** Apply narrative casting tags to subagent results */
41
30
  narrativeCasting: z.ZodDefault<z.ZodBoolean>;
42
- /** Tag prefix for narrative casting of subagent results */
43
31
  resultTagPrefix: z.ZodDefault<z.ZodString>;
44
- /** Maximum tokens for parent context summary (when includeParentHistory = "summary") */
45
32
  parentSummaryMaxTokens: z.ZodDefault<z.ZodNumber>;
46
- /** Maximum queued spawns per caller before true backpressure rejection. 0 disables queuing (preserves old throw behavior). */
47
33
  maxQueuedPerAgent: z.ZodDefault<z.ZodNumber>;
48
- /** How long a queued spawn waits before failing with timeout (ms). */
49
34
  queueTimeoutMs: z.ZodDefault<z.ZodNumber>;
50
- /** Maximum wall-clock time for a single sub-agent run before watchdog force-fail (ms). */
51
35
  maxRunTimeoutMs: z.ZodDefault<z.ZodNumber>;
52
- /** Per-step timeout used to compute dynamic watchdog: min(max_steps * perStepTimeoutMs, maxRunTimeoutMs). */
53
36
  perStepTimeoutMs: z.ZodDefault<z.ZodNumber>;
54
- /** Health-tick stuck kill threshold for graph sub-agents (ms). Graph spawns do multi-step
55
- * analytical work that routinely exceeds the regular threshold. Falls back to
56
- * stuckKillThresholdMs if unset. Set to 0 to disable for graph runs. */
57
37
  graphStuckKillThresholdMs: z.ZodDefault<z.ZodNumber>;
58
- /** Health-tick stuck kill threshold for regular (non-graph) sub-agents (ms).
59
- * Set to 0 to disable. */
60
38
  stuckKillThresholdMs: z.ZodDefault<z.ZodNumber>;
61
39
  }, z.core.$strict>;
62
40
  export type SubagentContextConfig = z.infer<typeof SubagentContextConfigSchema>;
@@ -8,21 +8,13 @@ import { z } from "zod";
8
8
  * Validated at runtime because the result is parsed from LLM output.
9
9
  */
10
10
  export declare const SubagentResultSchema: z.ZodObject<{
11
- /** Whether the subagent completed its task successfully */
12
11
  taskComplete: z.ZodBoolean;
13
- /** Human-readable summary of what was accomplished */
14
12
  summary: z.ZodString;
15
- /** Key conclusions or findings */
16
13
  conclusions: z.ZodArray<z.ZodString>;
17
- /** File paths created or modified */
18
14
  filePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
19
- /** Next steps the parent should consider */
20
15
  actionableItems: z.ZodOptional<z.ZodArray<z.ZodString>>;
21
- /** Error descriptions encountered */
22
16
  errors: z.ZodOptional<z.ZodArray<z.ZodString>>;
23
- /** Arbitrary structured data for parent consumption */
24
17
  keyData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
25
- /** Confidence score (0-1) for the conclusions */
26
18
  confidence: z.ZodOptional<z.ZodNumber>;
27
19
  }, z.core.$strict>;
28
20
  export type SubagentResult = z.infer<typeof SubagentResultSchema>;
@@ -118,6 +118,37 @@ export interface AgentEvents {
118
118
  }>;
119
119
  timestamp: number;
120
120
  };
121
+ /**
122
+ * v1.1 capability layer -- install detour detected by exec/process tool.
123
+ * Emission lives in the skills package; this is the type-only declaration.
124
+ *
125
+ * Privacy invariants:
126
+ * - NO raw command text, shell fragments, URLs, VCS specs, local paths,
127
+ * registry credentials, stdout, or stderr.
128
+ * - `commandDigest` is a stable, non-reversible hash (SHA-256).
129
+ * - `packages[].normalizedName` is a registry-safe identifier only.
130
+ */
131
+ "tool:install_detour_detected": {
132
+ readonly agentId?: string;
133
+ readonly sessionKey?: string;
134
+ readonly traceId?: string;
135
+ readonly packageManager: "pip" | "npm" | "pnpm" | "yarn";
136
+ /** Stable, non-reversible hash of normalized command shape. NEVER raw command. */
137
+ readonly commandDigest: string;
138
+ readonly packages: ReadonlyArray<{
139
+ readonly normalizedName: string;
140
+ readonly ecosystem: "python" | "node";
141
+ }>;
142
+ readonly overlaps: ReadonlyArray<{
143
+ readonly packageName: string;
144
+ readonly sourceType: "mcp" | "skill";
145
+ readonly sourceName: string;
146
+ readonly reason: "direct-server-name" | "mcp-operator-alias" | "skill-comis-alias" | "skill-operator-alias";
147
+ }>;
148
+ readonly mode: "observe" | "advise" | "soft-stop";
149
+ readonly action: "observed" | "hinted" | "soft_stopped" | "override_requested" | "overridden" | "override_denied";
150
+ readonly timestamp: number;
151
+ };
121
152
  /** Audit log event for compliance and security monitoring */
122
153
  "audit:event": {
123
154
  timestamp: number;
@@ -1,3 +1,4 @@
1
+ import type { BackgroundTaskOrigin } from "../domain/background-task-origin.js";
1
2
  /**
2
3
  * InfraEvents: Config, plugin, hook, auth, diagnostic,
3
4
  * media, scheduler, system, and metrics events.
@@ -61,9 +62,53 @@ export interface InfraEvents {
61
62
  "auth:token_rotated": {
62
63
  provider: string;
63
64
  profileName: string;
65
+ /** Canonical "<provider>:<identity>" form. Coexists with profileName for backward compat. */
66
+ profileId: string;
64
67
  expiresAtMs: number;
65
68
  timestamp: number;
66
69
  };
70
+ /**
71
+ * OAuth profile bootstrapped from environment variable on first
72
+ * store-empty access. Fires once per process per provider.
73
+ */
74
+ "auth:profile_bootstrapped": {
75
+ provider: string;
76
+ profileId: string;
77
+ /** Semi-redacted email (e.g. "mo…e@gmail.com") or "id-<base64url>" fallback. */
78
+ identity: string;
79
+ timestamp: number;
80
+ };
81
+ /**
82
+ * OAuth profile added to the credential store by an external writer
83
+ * (CLI `auth login` or wizard step 04). Emitted by OAuthTokenManager's
84
+ * file watcher after a chokidar `change`/`add` event invalidates the
85
+ * cache and the store list reveals a new profile.
86
+ *
87
+ * `source: "external"` indicates the writer is outside this manager
88
+ * instance.
89
+ */
90
+ "auth:profile_added": {
91
+ provider: string;
92
+ profileId: string;
93
+ /** Semi-redacted email (e.g. "mo…e@gmail.com") or "id-<base64url>" fallback. */
94
+ identity: string;
95
+ source: "external";
96
+ timestamp: number;
97
+ };
98
+ /**
99
+ * OAuth refresh failed terminally (e.g. refresh_token_reused, network
100
+ * error after retries, timeout). Emitted with coarse errorKind because
101
+ * pi-ai swallows the original cause.
102
+ */
103
+ "auth:refresh_failed": {
104
+ provider: string;
105
+ profileId: string;
106
+ /** Coarse classification: refresh_token_reused | network | timeout | refresh_failed. */
107
+ errorKind: string;
108
+ /** Operator action recommendation. */
109
+ hint: string;
110
+ timestamp: number;
111
+ };
67
112
  /** Full message lifecycle diagnostic with timing and cost */
68
113
  "diagnostic:message_processed": {
69
114
  messageId: string;
@@ -185,6 +230,12 @@ export interface InfraEvents {
185
230
  sessionStrategy?: "fresh" | "rolling" | "accumulate";
186
231
  /** Number of recent turns to keep for rolling strategy. */
187
232
  maxHistoryTurns?: number;
233
+ /** Schedule cadence in ms when known. Populated only for schedule.kind === "every"
234
+ * (where everyMs is a literal). Undefined for cron-expression and one-shot ("at")
235
+ * schedules — deriving cadence from a cron expression would require parsing and is
236
+ * intentionally out of scope for this field. Used by the cron handler to warn when
237
+ * long-cadence jobs run with a cache-wasting sessionStrategy. */
238
+ cadenceMs?: number;
188
239
  /** Per-cron-job model override from CronPayload.agent_turn.model. */
189
240
  cronJobModel?: string;
190
241
  /** Per-cron-job cache retention override from CronJob config. */
@@ -349,21 +400,44 @@ export interface InfraEvents {
349
400
  toolName: string;
350
401
  timestamp: number;
351
402
  };
352
- /** Background task completed successfully */
403
+ /** Background task completed successfully. `origin` carries originating
404
+ * session attribution so subscribers (the completion runner) can
405
+ * re-enter the right session without a synchronous round-trip through
406
+ * the manager. */
353
407
  "background_task:completed": {
354
408
  agentId: string;
355
409
  taskId: string;
356
410
  toolName: string;
357
411
  durationMs: number;
412
+ origin: BackgroundTaskOrigin;
358
413
  timestamp: number;
359
414
  };
360
- /** Background task failed (timeout, error, or daemon restart) */
415
+ /** Background task failed (timeout, error, or daemon restart).
416
+ * `origin` is populated for in-process failures and for restart-recovery
417
+ * failures (recoverOnStartup re-emits with origin from the persisted JSON). */
361
418
  "background_task:failed": {
362
419
  agentId: string;
363
420
  taskId: string;
364
421
  toolName: string;
365
422
  error: string;
366
423
  durationMs: number;
424
+ origin: BackgroundTaskOrigin;
425
+ timestamp: number;
426
+ };
427
+ /** Background completion runner is about to invoke executor.execute() on
428
+ * the originating session (latency-instrumentation hook). Subscribers
429
+ * may compute the delta from background_task:completed.timestamp to
430
+ * this event for SLO tracking (target: p95 ≤ 1000ms over 50 trials). */
431
+ "background_task:reentered": {
432
+ taskId: string;
433
+ agentId: string;
434
+ sessionKey: string;
435
+ hopCount: number;
436
+ /** traceId from task.origin for operator log continuity.
437
+ * null when no trace was active at promote() time. Carried through so
438
+ * subscribers (and operator log lines) preserve the originating trace
439
+ * across the background_task:completed → :reentered boundary. */
440
+ traceId: string | null;
367
441
  timestamp: number;
368
442
  };
369
443
  /** Background task cancelled by user or system */
@@ -1,2 +1,2 @@
1
- export { AppConfigSchema, AgentConfigSchema, AgentsMapSchema, BudgetConfigSchema, CircuitBreakerConfigSchema, DmScopeConfigSchema, ElevatedReplyConfigSchema, ModelRoutesSchema, HeartbeatConfigSchema, HeartbeatTargetSchema, PerAgentConfigSchema, PerAgentCronConfigSchema, PerAgentHeartbeatConfigSchema, PerAgentSchedulerConfigSchema, PruningConfigSchema, RagConfigSchema, ResetPolicyOverrideSchema, RoutingBindingSchema, RoutingConfigSchema, SessionResetPolicySchema, TracingConfigSchema, ChannelConfigSchema, ChannelEntrySchema, ChannelHealthCheckSchema, MemoryConfigSchema, CompactionConfigSchema, RetentionConfigSchema, SecurityConfigSchema, PermissionConfigSchema, ActionConfirmationConfigSchema, AgentToAgentConfigSchema, SkillsConfigSchema, DaemonConfigSchema, LoggingConfigSchema, TracingDefaultsSchema, ConfigWebhookSchema, SchedulerConfigSchema, GatewayConfigSchema, GatewayTlsConfigSchema, GatewayTokenSchema, GatewayRateLimitSchema, IntegrationsConfigSchema, BraveSearchConfigSchema, McpServerEntrySchema, McpConfigSchema, TranscriptionConfigSchema, TtsConfigSchema, TtsAutoModeSchema, ElevenLabsVoiceSettingsSchema, TtsOutputFormatSchema, ImageAnalysisConfigSchema, VisionScopeRuleSchema, VisionConfigSchema, LinkUnderstandingConfigSchema, MediaConfigSchema, DOCUMENT_MIME_WHITELIST, FileExtractionConfigSchema, AutoReplyRuleSchema, AutoReplyConfigSchema, MonitoringConfigSchema, PluginsConfigSchema, PluginEntrySchema, QueueConfigSchema, QueueModeSchema, OverflowPolicySchema, PerChannelQueueConfigSchema, OverflowConfigSchema, DebounceBufferConfigSchema, FollowupConfigSchema, PriorityLaneConfigSchema, LaneAssignmentConfigSchema, StreamingConfigSchema, PerChannelStreamingConfigSchema, TypingModeSchema, ChunkModeSchema, DeliveryMirrorConfigSchema, DeliveryQueueConfigSchema, DeliveryTimingConfigSchema, DeliveryTimingModeSchema, CoalescerConfigSchema, AutoReplyEngineConfigSchema, GroupActivationModeSchema, SendPolicyConfigSchema, SendPolicyRuleSchema, SendActionSchema, EnvelopeConfigSchema, RetryConfigSchema, WebhooksConfigSchema, WebhookMappingConfigSchema, WebhookMappingMatchSchema, AgentSecretsConfigSchema, SecretsConfigSchema, DocumentationConfigSchema, DocumentationLinkSchema, ImageGenerationConfigSchema, NotificationConfigSchema, VerbosityConfigSchema, VerbosityLevelSchema, VerbosityOverrideSchema, ContextEngineConfigSchema, BackgroundTasksConfigSchema, MemoryReviewConfigSchema, ProviderEntrySchema, ProvidersConfigSchema, UserModelSchema, ModelCostSchema, OperationModelEntrySchema, OperationModelsSchema, substituteEnvVars, warnSuspiciousEnvValues, loadConfigFile, validateConfig, deepMerge, mergeLayered, loadLayered, IMMUTABLE_CONFIG_PREFIXES, MUTABLE_CONFIG_OVERRIDES, isImmutableConfigPath, matchesOverridePattern, getMutableOverridesForSection, MANAGED_SECTIONS, getManagedSectionRedirect, formatRedirectHint, getConfigSchema, getConfigSections, getFieldMetadata, validatePartial, createConfigGitManager, checkApprovalsConfig, } from "../config/index.js";
2
- export type { AppConfig, AgentConfig, BudgetConfig, CircuitBreakerConfig, DmScopeConfig, ElevatedReplyConfig, ModelRoutes, PruningConfig, HeartbeatConfig, HeartbeatTarget, PerAgentConfig, PerAgentCronConfig, PerAgentHeartbeatConfig, PerAgentSchedulerConfig, RagConfig, ResetPolicyOverride, RoutingBinding, RoutingConfig, SessionResetPolicyConfig, TracingConfig, ChannelConfig, ChannelEntry, ChannelHealthCheckConfig, AckReactionConfig, MemoryConfig, CompactionConfig, RetentionConfig, SecurityConfig, PermissionConfig, ActionConfirmationConfig, AgentToAgentConfig, SkillsConfig, DaemonConfig, LoggingConfig, TracingDefaults, ConfigWebhook, SchedulerConfig, GatewayConfig, GatewayTlsConfig, GatewayToken, GatewayRateLimit, IntegrationsConfig, BraveSearchConfig, McpServerEntry, McpConfig, TranscriptionConfig, TtsConfig, TtsAutoMode, ElevenLabsVoiceSettings, TtsOutputFormat, ImageAnalysisConfig, VisionScopeRule, VisionConfig, LinkUnderstandingConfig, MediaConfig, FileExtractionConfig, AutoReplyRule, AutoReplyConfig, MonitoringConfig, DiskMonitorConfig, ResourceMonitorConfig, SystemdMonitorConfig, SecurityUpdateMonitorConfig, GitMonitorConfig, PluginsConfig, PluginEntry, QueueConfig, PerChannelQueueConfig, QueueMode, OverflowPolicy, OverflowConfig, DebounceBufferConfig, FollowupConfig, PriorityLaneConfig, LaneAssignmentConfig, StreamingConfig, PerChannelStreamingConfig, TypingMode, ChunkMode, DeliveryMirrorConfig, DeliveryQueueConfig, DeliveryTimingConfig, DeliveryTimingMode, CoalescerConfig, AutoReplyEngineConfig, GroupActivationMode, SendPolicyConfig, SendPolicyRule, SendAction, EnvelopeConfig, RetryConfig, WebhooksConfig, WebhookMappingConfig, AgentSecretsConfig, SecretsConfig, ConfigError, ConfigErrorCode, FieldMetadata, PartialValidationResult, ConfigGitManager, GitCommitMetadata, HistoryEntry, GitManagerDeps, ExecGitFn, EnvValueWarning, LifecycleReactionsConfig, LifecycleReactionsTimingConfig, SenderTrustDisplayConfig, DocumentationConfig, DocumentationLink, ImageGenerationConfig, NotificationConfig, VerbosityConfig, VerbosityLevel, VerbosityOverride, ContextEngineConfig, BackgroundTasksConfig, MemoryReviewConfig, ProviderEntry, ProvidersConfig, UserModel, ModelCost, OperationModelEntry, OperationModels, ModelOperationType, } from "../config/index.js";
1
+ export { AppConfigSchema, AgentConfigSchema, AgentsMapSchema, BudgetConfigSchema, CircuitBreakerConfigSchema, DmScopeConfigSchema, ElevatedReplyConfigSchema, ModelRoutesSchema, HeartbeatConfigSchema, HeartbeatTargetSchema, PerAgentConfigSchema, PerAgentCronConfigSchema, PerAgentHeartbeatConfigSchema, PerAgentSchedulerConfigSchema, PruningConfigSchema, RagConfigSchema, ResetPolicyOverrideSchema, RoutingBindingSchema, RoutingConfigSchema, SessionResetPolicySchema, TracingConfigSchema, ChannelConfigSchema, ChannelEntrySchema, ChannelHealthCheckSchema, MemoryConfigSchema, CompactionConfigSchema, RetentionConfigSchema, SecurityConfigSchema, PermissionConfigSchema, ActionConfirmationConfigSchema, AgentToAgentConfigSchema, SkillsConfigSchema, DaemonConfigSchema, LoggingConfigSchema, TracingDefaultsSchema, ConfigWebhookSchema, SchedulerConfigSchema, GatewayConfigSchema, GatewayTlsConfigSchema, GatewayTokenSchema, GatewayRateLimitSchema, IntegrationsConfigSchema, BraveSearchConfigSchema, McpServerEntrySchema, McpConfigSchema, TranscriptionConfigSchema, TtsConfigSchema, TtsAutoModeSchema, ElevenLabsVoiceSettingsSchema, TtsOutputFormatSchema, ImageAnalysisConfigSchema, VisionScopeRuleSchema, VisionConfigSchema, LinkUnderstandingConfigSchema, MediaConfigSchema, DOCUMENT_MIME_WHITELIST, FileExtractionConfigSchema, AutoReplyRuleSchema, AutoReplyConfigSchema, MonitoringConfigSchema, PluginsConfigSchema, PluginEntrySchema, QueueConfigSchema, QueueModeSchema, OverflowPolicySchema, PerChannelQueueConfigSchema, OverflowConfigSchema, DebounceBufferConfigSchema, FollowupConfigSchema, PriorityLaneConfigSchema, LaneAssignmentConfigSchema, StreamingConfigSchema, PerChannelStreamingConfigSchema, TypingModeSchema, ChunkModeSchema, DeliveryMirrorConfigSchema, DeliveryQueueConfigSchema, DeliveryTimingConfigSchema, DeliveryTimingModeSchema, CoalescerConfigSchema, AutoReplyEngineConfigSchema, GroupActivationModeSchema, SendPolicyConfigSchema, SendPolicyRuleSchema, SendActionSchema, EnvelopeConfigSchema, RetryConfigSchema, WebhooksConfigSchema, WebhookMappingConfigSchema, WebhookMappingMatchSchema, AgentSecretsConfigSchema, SecretsConfigSchema, DocumentationConfigSchema, DocumentationLinkSchema, ImageGenerationConfigSchema, NotificationConfigSchema, VerbosityConfigSchema, VerbosityLevelSchema, VerbosityOverrideSchema, ContextEngineConfigSchema, BackgroundTasksConfigSchema, OutputRetentionConfigSchema, MemoryReviewConfigSchema, ProviderEntrySchema, ProvidersConfigSchema, UserModelSchema, ModelCostSchema, OperationModelEntrySchema, OperationModelsSchema, OAuthConfigSchema, substituteEnvVars, warnSuspiciousEnvValues, findUnresolvedEnvRefs, formatMissingEnvRefError, loadConfigFile, validateConfig, deepMerge, mergeLayered, loadLayered, IMMUTABLE_CONFIG_PREFIXES, MUTABLE_CONFIG_OVERRIDES, isImmutableConfigPath, matchesOverridePattern, getMutableOverridesForSection, MANAGED_SECTIONS, getManagedSectionRedirect, formatRedirectHint, getConfigSchema, getConfigSections, getFieldMetadata, validatePartial, createConfigGitManager, ToolingConfigSchema, DEFAULT_CLUSTER_CONFIG, DEFAULT_BUILTIN_ASSIGNMENTS, checkApprovalsConfig, } from "../config/index.js";
2
+ export type { AppConfig, AgentConfig, BudgetConfig, CircuitBreakerConfig, DmScopeConfig, ElevatedReplyConfig, ModelRoutes, PruningConfig, HeartbeatConfig, HeartbeatTarget, PerAgentConfig, PerAgentCronConfig, PerAgentHeartbeatConfig, PerAgentSchedulerConfig, RagConfig, ResetPolicyOverride, RoutingBinding, RoutingConfig, SessionResetPolicyConfig, TracingConfig, ChannelConfig, ChannelEntry, ChannelHealthCheckConfig, AckReactionConfig, MemoryConfig, CompactionConfig, RetentionConfig, SecurityConfig, PermissionConfig, ActionConfirmationConfig, AgentToAgentConfig, SkillsConfig, DaemonConfig, LoggingConfig, TracingDefaults, ConfigWebhook, SchedulerConfig, GatewayConfig, GatewayTlsConfig, GatewayToken, GatewayRateLimit, IntegrationsConfig, BraveSearchConfig, McpServerEntry, McpConfig, TranscriptionConfig, TtsConfig, TtsAutoMode, ElevenLabsVoiceSettings, TtsOutputFormat, ImageAnalysisConfig, VisionScopeRule, VisionConfig, LinkUnderstandingConfig, MediaConfig, FileExtractionConfig, AutoReplyRule, AutoReplyConfig, MonitoringConfig, DiskMonitorConfig, ResourceMonitorConfig, SystemdMonitorConfig, SecurityUpdateMonitorConfig, GitMonitorConfig, PluginsConfig, PluginEntry, QueueConfig, PerChannelQueueConfig, QueueMode, OverflowPolicy, OverflowConfig, DebounceBufferConfig, FollowupConfig, PriorityLaneConfig, LaneAssignmentConfig, StreamingConfig, PerChannelStreamingConfig, TypingMode, ChunkMode, DeliveryMirrorConfig, DeliveryQueueConfig, DeliveryTimingConfig, DeliveryTimingMode, CoalescerConfig, AutoReplyEngineConfig, GroupActivationMode, SendPolicyConfig, SendPolicyRule, SendAction, EnvelopeConfig, RetryConfig, WebhooksConfig, WebhookMappingConfig, AgentSecretsConfig, SecretsConfig, ConfigError, ConfigErrorCode, FieldMetadata, PartialValidationResult, ConfigGitManager, GitCommitMetadata, HistoryEntry, GitManagerDeps, ExecGitFn, EnvValueWarning, UnresolvedEnvRef, LifecycleReactionsConfig, LifecycleReactionsTimingConfig, SenderTrustDisplayConfig, DocumentationConfig, DocumentationLink, ImageGenerationConfig, NotificationConfig, VerbosityConfig, VerbosityLevel, VerbosityOverride, ContextEngineConfig, BackgroundTasksConfig, OutputRetentionConfig, RetentionClass, MemoryReviewConfig, ProviderEntry, ProvidersConfig, UserModel, ModelCost, OperationModelEntry, OperationModels, ModelOperationType, ToolingConfig, OAuthConfig, } from "../config/index.js";
@@ -1,3 +1,5 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  // @comis/core exports — Config (layered configuration with Zod validation)
3
- export { AppConfigSchema, AgentConfigSchema, AgentsMapSchema, BudgetConfigSchema, CircuitBreakerConfigSchema, DmScopeConfigSchema, ElevatedReplyConfigSchema, ModelRoutesSchema, HeartbeatConfigSchema, HeartbeatTargetSchema, PerAgentConfigSchema, PerAgentCronConfigSchema, PerAgentHeartbeatConfigSchema, PerAgentSchedulerConfigSchema, PruningConfigSchema, RagConfigSchema, ResetPolicyOverrideSchema, RoutingBindingSchema, RoutingConfigSchema, SessionResetPolicySchema, TracingConfigSchema, ChannelConfigSchema, ChannelEntrySchema, ChannelHealthCheckSchema, MemoryConfigSchema, CompactionConfigSchema, RetentionConfigSchema, SecurityConfigSchema, PermissionConfigSchema, ActionConfirmationConfigSchema, AgentToAgentConfigSchema, SkillsConfigSchema, DaemonConfigSchema, LoggingConfigSchema, TracingDefaultsSchema, ConfigWebhookSchema, SchedulerConfigSchema, GatewayConfigSchema, GatewayTlsConfigSchema, GatewayTokenSchema, GatewayRateLimitSchema, IntegrationsConfigSchema, BraveSearchConfigSchema, McpServerEntrySchema, McpConfigSchema, TranscriptionConfigSchema, TtsConfigSchema, TtsAutoModeSchema, ElevenLabsVoiceSettingsSchema, TtsOutputFormatSchema, ImageAnalysisConfigSchema, VisionScopeRuleSchema, VisionConfigSchema, LinkUnderstandingConfigSchema, MediaConfigSchema, DOCUMENT_MIME_WHITELIST, FileExtractionConfigSchema, AutoReplyRuleSchema, AutoReplyConfigSchema, MonitoringConfigSchema, PluginsConfigSchema, PluginEntrySchema, QueueConfigSchema, QueueModeSchema, OverflowPolicySchema, PerChannelQueueConfigSchema, OverflowConfigSchema, DebounceBufferConfigSchema, FollowupConfigSchema, PriorityLaneConfigSchema, LaneAssignmentConfigSchema, StreamingConfigSchema, PerChannelStreamingConfigSchema, TypingModeSchema, ChunkModeSchema, DeliveryMirrorConfigSchema, DeliveryQueueConfigSchema, DeliveryTimingConfigSchema, DeliveryTimingModeSchema, CoalescerConfigSchema, AutoReplyEngineConfigSchema, GroupActivationModeSchema, SendPolicyConfigSchema, SendPolicyRuleSchema, SendActionSchema, EnvelopeConfigSchema, RetryConfigSchema, WebhooksConfigSchema, WebhookMappingConfigSchema, WebhookMappingMatchSchema, AgentSecretsConfigSchema, SecretsConfigSchema, DocumentationConfigSchema, DocumentationLinkSchema, ImageGenerationConfigSchema, NotificationConfigSchema, VerbosityConfigSchema, VerbosityLevelSchema, VerbosityOverrideSchema, ContextEngineConfigSchema, BackgroundTasksConfigSchema, MemoryReviewConfigSchema, ProviderEntrySchema, ProvidersConfigSchema, UserModelSchema, ModelCostSchema, OperationModelEntrySchema, OperationModelsSchema, substituteEnvVars, warnSuspiciousEnvValues, loadConfigFile, validateConfig, deepMerge, mergeLayered, loadLayered, IMMUTABLE_CONFIG_PREFIXES, MUTABLE_CONFIG_OVERRIDES, isImmutableConfigPath, matchesOverridePattern, getMutableOverridesForSection, MANAGED_SECTIONS, getManagedSectionRedirect, formatRedirectHint, getConfigSchema, getConfigSections, getFieldMetadata, validatePartial, createConfigGitManager, checkApprovalsConfig, } from "../config/index.js";
3
+ export { AppConfigSchema, AgentConfigSchema, AgentsMapSchema, BudgetConfigSchema, CircuitBreakerConfigSchema, DmScopeConfigSchema, ElevatedReplyConfigSchema, ModelRoutesSchema, HeartbeatConfigSchema, HeartbeatTargetSchema, PerAgentConfigSchema, PerAgentCronConfigSchema, PerAgentHeartbeatConfigSchema, PerAgentSchedulerConfigSchema, PruningConfigSchema, RagConfigSchema, ResetPolicyOverrideSchema, RoutingBindingSchema, RoutingConfigSchema, SessionResetPolicySchema, TracingConfigSchema, ChannelConfigSchema, ChannelEntrySchema, ChannelHealthCheckSchema, MemoryConfigSchema, CompactionConfigSchema, RetentionConfigSchema, SecurityConfigSchema, PermissionConfigSchema, ActionConfirmationConfigSchema, AgentToAgentConfigSchema, SkillsConfigSchema, DaemonConfigSchema, LoggingConfigSchema, TracingDefaultsSchema, ConfigWebhookSchema, SchedulerConfigSchema, GatewayConfigSchema, GatewayTlsConfigSchema, GatewayTokenSchema, GatewayRateLimitSchema, IntegrationsConfigSchema, BraveSearchConfigSchema, McpServerEntrySchema, McpConfigSchema, TranscriptionConfigSchema, TtsConfigSchema, TtsAutoModeSchema, ElevenLabsVoiceSettingsSchema, TtsOutputFormatSchema, ImageAnalysisConfigSchema, VisionScopeRuleSchema, VisionConfigSchema, LinkUnderstandingConfigSchema, MediaConfigSchema, DOCUMENT_MIME_WHITELIST, FileExtractionConfigSchema, AutoReplyRuleSchema, AutoReplyConfigSchema, MonitoringConfigSchema, PluginsConfigSchema, PluginEntrySchema, QueueConfigSchema, QueueModeSchema, OverflowPolicySchema, PerChannelQueueConfigSchema, OverflowConfigSchema, DebounceBufferConfigSchema, FollowupConfigSchema, PriorityLaneConfigSchema, LaneAssignmentConfigSchema, StreamingConfigSchema, PerChannelStreamingConfigSchema, TypingModeSchema, ChunkModeSchema, DeliveryMirrorConfigSchema, DeliveryQueueConfigSchema, DeliveryTimingConfigSchema, DeliveryTimingModeSchema, CoalescerConfigSchema, AutoReplyEngineConfigSchema, GroupActivationModeSchema, SendPolicyConfigSchema, SendPolicyRuleSchema, SendActionSchema, EnvelopeConfigSchema, RetryConfigSchema, WebhooksConfigSchema, WebhookMappingConfigSchema, WebhookMappingMatchSchema, AgentSecretsConfigSchema, SecretsConfigSchema, DocumentationConfigSchema, DocumentationLinkSchema, ImageGenerationConfigSchema, NotificationConfigSchema, VerbosityConfigSchema, VerbosityLevelSchema, VerbosityOverrideSchema, ContextEngineConfigSchema, BackgroundTasksConfigSchema, OutputRetentionConfigSchema, MemoryReviewConfigSchema, ProviderEntrySchema, ProvidersConfigSchema, UserModelSchema, ModelCostSchema, OperationModelEntrySchema, OperationModelsSchema, OAuthConfigSchema, substituteEnvVars, warnSuspiciousEnvValues, findUnresolvedEnvRefs, formatMissingEnvRefError, loadConfigFile, validateConfig, deepMerge, mergeLayered, loadLayered, IMMUTABLE_CONFIG_PREFIXES, MUTABLE_CONFIG_OVERRIDES, isImmutableConfigPath, matchesOverridePattern, getMutableOverridesForSection, MANAGED_SECTIONS, getManagedSectionRedirect, formatRedirectHint, getConfigSchema, getConfigSections, getFieldMetadata, validatePartial, createConfigGitManager,
4
+ // Tooling subtree (capability layer v1.1)
5
+ ToolingConfigSchema, DEFAULT_CLUSTER_CONFIG, DEFAULT_BUILTIN_ASSIGNMENTS, checkApprovalsConfig, } from "../config/index.js";
@@ -1,2 +1,4 @@
1
1
  export { AttachmentSchema, NormalizedMessageSchema, parseMessage, TrustLevelSchema, MemorySourceSchema, MemoryEntrySchema, ToolCallSchema, TokenUsageSchema, AgentResponseSchema, SessionKeySchema, parseSessionKey, formatSessionKey, parseFormattedSessionKey, PollInputSchema, PollOptionResultSchema, NormalizedPollResultSchema, normalizePollDurationHours, RichButtonSchema, RichCardFieldSchema, RichCardSchema, RichEffectSchema, ApprovalRequestSchema, ApprovalResolutionSchema, SerializedApprovalRequestSchema, SerializedApprovalCacheEntrySchema, InjectionTypeSchema, CredentialMappingSchema, SecretRefSchema, isSecretRef, SecretRefOrStringSchema, DeliveryOriginSchema, createDeliveryOrigin, NodeStatusSchema, GraphStatusSchema, GraphNodeSchema, NodeExecutionStateSchema, ExecutionGraphSchema, GraphValidationError, parseExecutionGraph, topologicalSort, validateAndSortGraph, SubagentResultSchema, SubagentEndReasonSchema, parseSubagentResult, SubagentContextConfigSchema, NodeTypeIdSchema, ToolSchemaProfileSchema, ToolCallArgumentsEncodingSchema, ModelCompatConfigSchema, ProviderFamilySchema, TranscriptToolCallIdModeSchema, ProviderCapabilitiesSchema, } from "../domain/index.js";
2
+ export { BackgroundTaskOriginSchema } from "../domain/background-task-origin.js";
3
+ export type { BackgroundTaskOrigin } from "../domain/background-task-origin.js";
2
4
  export type { Attachment, NormalizedMessage, TrustLevel, MemoryEntry, ToolCall, TokenUsage, AgentResponse, SessionKey, PollInput, NormalizedPollResult, PollOptionResult, RichButton, RichCard, RichEffect, ApprovalRequest, ApprovalResolution, SerializedApprovalRequest, SerializedApprovalCacheEntry, InjectionType, CredentialMapping, SecretRef, DeliveryOrigin, NodeStatus, GraphStatus, GraphNode, NodeExecutionState, ExecutionGraph, ValidatedGraph, SubagentResult, SubagentEndReason, SpawnPacket, CondensedResult, SubAgentSpawnPreparedEvent, SubAgentSpawnRejectedEvent, SubAgentSpawnStartedEvent, SubAgentResultCondensedEvent, SubAgentLifecycleEndedEvent, SubAgentContextCompactedEvent, SubagentContextConfig, NodeTypeId, NodeTypeDriver, NodeDriverAction, NodeDriverContext, ToolSchemaProfile, ToolCallArgumentsEncoding, ModelCompatConfig, ProviderFamily, TranscriptToolCallIdMode, ProviderCapabilities, } from "../domain/index.js";
@@ -31,3 +31,4 @@ NodeTypeIdSchema,
31
31
  ToolSchemaProfileSchema, ToolCallArgumentsEncodingSchema, ModelCompatConfigSchema,
32
32
  // Provider capabilities
33
33
  ProviderFamilySchema, TranscriptToolCallIdModeSchema, ProviderCapabilitiesSchema, } from "../domain/index.js";
34
+ export { BackgroundTaskOriginSchema } from "../domain/background-task-origin.js";
@@ -3,4 +3,4 @@ export type { PluginRegistry, PluginRegistryOptions, HookRunner, HookRunnerOptio
3
3
  export { createApprovalGate } from "../approval/index.js";
4
4
  export type { ApprovalGate, ApprovalGateDeps } from "../approval/index.js";
5
5
  export { registerToolMetadata, getToolMetadata, getAllToolMetadata, truncateContentBlocks, } from "../tool-metadata.js";
6
- export type { ComisToolMetadata } from "../tool-metadata.js";
6
+ export type { ComisToolMetadata, ToolCapabilityMetadata } from "../tool-metadata.js";
@@ -1,2 +1,2 @@
1
- export { ChannelCapabilitySchema, createNoOpDeliveryQueue, createNoOpDeliveryMirror } from "../ports/index.js";
2
- export type { ChannelPort, MessageHandler, SendMessageOptions, FetchMessagesOptions, FetchedMessage, AttachmentPayload, ChannelPluginPort, ChannelCapability, ChannelStatus, MemoryPort, MemorySearchOptions, MemorySearchResult, MemoryUpdateFields, SkillPort, SkillPermissions, SkillInput, SkillOutput, SkillManifest, EmbeddingPort, TranscriptionPort, TranscriptionOptions, TranscriptionResult, TTSPort, TTSOptions, TTSResult, ImageAnalysisPort, ImageAnalysisOptions, VisionRequest, VideoRequest, VisionResult, VisionProvider, ResolvedMedia, MediaResolverPort, FileClassification, FileExtractionErrorKind, FileExtractionError, FileExtractionInput, FileExtractionResult, FileExtractionPort, HookName, ModifyingHookName, VoidHookName, HookHandlerMap, HookBeforeAgentStartEvent, HookBeforeAgentStartContext, HookBeforeAgentStartResult, HookAgentEndEvent, HookAgentEndContext, HookBeforeToolCallEvent, HookBeforeToolCallContext, HookBeforeToolCallResult, HookAfterToolCallEvent, HookAfterToolCallContext, HookToolResultPersistEvent, HookToolResultPersistContext, HookToolResultPersistResult, HookBeforeCompactionEvent, HookBeforeCompactionContext, HookBeforeCompactionResult, HookAfterCompactionEvent, HookAfterCompactionContext, HookSessionStartEvent, HookSessionStartContext, HookSessionEndEvent, HookSessionEndContext, HookGatewayStartEvent, HookGatewayStartContext, HookGatewayStopEvent, HookGatewayStopContext, PluginPort, PluginRegistryApi, RegisteredHook, PluginToolDefinition, PluginHttpRoute, DeviceIdentity, DeviceIdentityPort, PairingRequest, PairedDevice, OutputGuardPort, OutputGuardFinding, OutputGuardResult, SecretStorePort, SecretMetadata, CredentialMappingPort, DeliveryQueuePort, DeliveryQueueEntry, DeliveryQueueEnqueueInput, DeliveryQueueStatusCounts, DeliveryMirrorPort, DeliveryMirrorEntry, DeliveryMirrorRecordInput, Provider, ImageGenInput, ImageGenOutput, ImageGenerationPort, } from "../ports/index.js";
1
+ export { ChannelCapabilitySchema, createNoOpDeliveryQueue, createNoOpDeliveryMirror, createNoOpCapabilityPort, validateProfileId, PROFILE_ID_RE, } from "../ports/index.js";
2
+ export type { ChannelPort, MessageHandler, SendMessageOptions, FetchMessagesOptions, FetchedMessage, AttachmentPayload, ChannelPluginPort, ChannelCapability, ChannelStatus, MemoryPort, MemorySearchOptions, MemorySearchResult, MemoryUpdateFields, SkillPort, SkillPermissions, SkillInput, SkillOutput, SkillManifest, EmbeddingPort, TranscriptionPort, TranscriptionOptions, TranscriptionResult, TTSPort, TTSOptions, TTSResult, ImageAnalysisPort, ImageAnalysisOptions, VisionRequest, VideoRequest, VisionResult, VisionProvider, ResolvedMedia, MediaResolverPort, FileClassification, FileExtractionErrorKind, FileExtractionError, FileExtractionInput, FileExtractionResult, FileExtractionPort, HookName, ModifyingHookName, VoidHookName, HookHandlerMap, HookBeforeAgentStartEvent, HookBeforeAgentStartContext, HookBeforeAgentStartResult, HookAgentEndEvent, HookAgentEndContext, HookBeforeToolCallEvent, HookBeforeToolCallContext, HookBeforeToolCallResult, HookAfterToolCallEvent, HookAfterToolCallContext, HookToolResultPersistEvent, HookToolResultPersistContext, HookToolResultPersistResult, HookBeforeCompactionEvent, HookBeforeCompactionContext, HookBeforeCompactionResult, HookAfterCompactionEvent, HookAfterCompactionContext, HookSessionStartEvent, HookSessionStartContext, HookSessionEndEvent, HookSessionEndContext, HookGatewayStartEvent, HookGatewayStartContext, HookGatewayStopEvent, HookGatewayStopContext, PluginPort, PluginRegistryApi, RegisteredHook, PluginToolDefinition, PluginHttpRoute, DeviceIdentity, DeviceIdentityPort, PairingRequest, PairedDevice, OutputGuardPort, OutputGuardFinding, OutputGuardResult, SecretStorePort, SecretMetadata, CredentialMappingPort, OAuthCredentialStorePort, OAuthProfile, DeliveryQueuePort, DeliveryQueueEntry, DeliveryQueueEnqueueInput, DeliveryQueueStatusCounts, DeliveryMirrorPort, DeliveryMirrorEntry, DeliveryMirrorRecordInput, Provider, ImageGenInput, ImageGenOutput, ImageGenerationPort, ToolCapabilityPort, PromptSkillCapability, CapabilitySourceRef, ClusterConfig, McpServerHint, SkillHint, } from "../ports/index.js";