anantham-v2 2.0.0-alpha.1

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 (1199) hide show
  1. package/LICENSE +189 -0
  2. package/README.md +55 -0
  3. package/dist/agents/agent-manager.d.ts +67 -0
  4. package/dist/agents/agent-manager.d.ts.map +1 -0
  5. package/dist/agents/agent-manager.js +224 -0
  6. package/dist/agents/agent-manager.js.map +1 -0
  7. package/dist/agents/agent-registry.d.ts +37 -0
  8. package/dist/agents/agent-registry.d.ts.map +1 -0
  9. package/dist/agents/agent-registry.js +75 -0
  10. package/dist/agents/agent-registry.js.map +1 -0
  11. package/dist/agents/agent-security.d.ts +17 -0
  12. package/dist/agents/agent-security.d.ts.map +1 -0
  13. package/dist/agents/agent-security.js +44 -0
  14. package/dist/agents/agent-security.js.map +1 -0
  15. package/dist/agents/agent-startup-resolver.d.ts +38 -0
  16. package/dist/agents/agent-startup-resolver.d.ts.map +1 -0
  17. package/dist/agents/agent-startup-resolver.js +193 -0
  18. package/dist/agents/agent-startup-resolver.js.map +1 -0
  19. package/dist/agents/delegation-guard.d.ts +23 -0
  20. package/dist/agents/delegation-guard.d.ts.map +1 -0
  21. package/dist/agents/delegation-guard.js +70 -0
  22. package/dist/agents/delegation-guard.js.map +1 -0
  23. package/dist/agents/index.d.ts +7 -0
  24. package/dist/agents/index.d.ts.map +1 -0
  25. package/dist/agents/index.js +7 -0
  26. package/dist/agents/index.js.map +1 -0
  27. package/dist/agents/subagent-manager.d.ts +48 -0
  28. package/dist/agents/subagent-manager.d.ts.map +1 -0
  29. package/dist/agents/subagent-manager.js +222 -0
  30. package/dist/agents/subagent-manager.js.map +1 -0
  31. package/dist/api/api-authenticator.d.ts +24 -0
  32. package/dist/api/api-authenticator.d.ts.map +1 -0
  33. package/dist/api/api-authenticator.js +61 -0
  34. package/dist/api/api-authenticator.js.map +1 -0
  35. package/dist/api/api-authorizer.d.ts +16 -0
  36. package/dist/api/api-authorizer.d.ts.map +1 -0
  37. package/dist/api/api-authorizer.js +31 -0
  38. package/dist/api/api-authorizer.js.map +1 -0
  39. package/dist/api/api-error-mapper.d.ts +15 -0
  40. package/dist/api/api-error-mapper.d.ts.map +1 -0
  41. package/dist/api/api-error-mapper.js +68 -0
  42. package/dist/api/api-error-mapper.js.map +1 -0
  43. package/dist/api/api-idempotency-manager.d.ts +31 -0
  44. package/dist/api/api-idempotency-manager.d.ts.map +1 -0
  45. package/dist/api/api-idempotency-manager.js +46 -0
  46. package/dist/api/api-idempotency-manager.js.map +1 -0
  47. package/dist/api/api-router.d.ts +54 -0
  48. package/dist/api/api-router.d.ts.map +1 -0
  49. package/dist/api/api-router.js +494 -0
  50. package/dist/api/api-router.js.map +1 -0
  51. package/dist/api/api-server.d.ts +57 -0
  52. package/dist/api/api-server.d.ts.map +1 -0
  53. package/dist/api/api-server.js +131 -0
  54. package/dist/api/api-server.js.map +1 -0
  55. package/dist/api/index.d.ts +12 -0
  56. package/dist/api/index.d.ts.map +1 -0
  57. package/dist/api/index.js +12 -0
  58. package/dist/api/index.js.map +1 -0
  59. package/dist/api/openapi-generator.d.ts +8 -0
  60. package/dist/api/openapi-generator.d.ts.map +1 -0
  61. package/dist/api/openapi-generator.js +173 -0
  62. package/dist/api/openapi-generator.js.map +1 -0
  63. package/dist/artifacts/artifact-manager.d.ts +52 -0
  64. package/dist/artifacts/artifact-manager.d.ts.map +1 -0
  65. package/dist/artifacts/artifact-manager.js +178 -0
  66. package/dist/artifacts/artifact-manager.js.map +1 -0
  67. package/dist/artifacts/artifact-reference-validator.d.ts +23 -0
  68. package/dist/artifacts/artifact-reference-validator.d.ts.map +1 -0
  69. package/dist/artifacts/artifact-reference-validator.js +42 -0
  70. package/dist/artifacts/artifact-reference-validator.js.map +1 -0
  71. package/dist/artifacts/index.d.ts +3 -0
  72. package/dist/artifacts/index.d.ts.map +1 -0
  73. package/dist/artifacts/index.js +3 -0
  74. package/dist/artifacts/index.js.map +1 -0
  75. package/dist/bin/anantham.d.ts +3 -0
  76. package/dist/bin/anantham.d.ts.map +1 -0
  77. package/dist/bin/anantham.js +106 -0
  78. package/dist/bin/anantham.js.map +1 -0
  79. package/dist/cli/cli-application.d.ts +73 -0
  80. package/dist/cli/cli-application.d.ts.map +1 -0
  81. package/dist/cli/cli-application.js +172 -0
  82. package/dist/cli/cli-application.js.map +1 -0
  83. package/dist/cli/command-parser.d.ts +18 -0
  84. package/dist/cli/command-parser.d.ts.map +1 -0
  85. package/dist/cli/command-parser.js +133 -0
  86. package/dist/cli/command-parser.js.map +1 -0
  87. package/dist/cli/command-registry.d.ts +58 -0
  88. package/dist/cli/command-registry.d.ts.map +1 -0
  89. package/dist/cli/command-registry.js +471 -0
  90. package/dist/cli/command-registry.js.map +1 -0
  91. package/dist/cli/error-handler.d.ts +16 -0
  92. package/dist/cli/error-handler.d.ts.map +1 -0
  93. package/dist/cli/error-handler.js +53 -0
  94. package/dist/cli/error-handler.js.map +1 -0
  95. package/dist/cli/index.d.ts +13 -0
  96. package/dist/cli/index.d.ts.map +1 -0
  97. package/dist/cli/index.js +13 -0
  98. package/dist/cli/index.js.map +1 -0
  99. package/dist/cli/interactive-session-loop.d.ts +36 -0
  100. package/dist/cli/interactive-session-loop.d.ts.map +1 -0
  101. package/dist/cli/interactive-session-loop.js +77 -0
  102. package/dist/cli/interactive-session-loop.js.map +1 -0
  103. package/dist/cli/output-renderer.d.ts +34 -0
  104. package/dist/cli/output-renderer.d.ts.map +1 -0
  105. package/dist/cli/output-renderer.js +127 -0
  106. package/dist/cli/output-renderer.js.map +1 -0
  107. package/dist/cli/session-controller.d.ts +32 -0
  108. package/dist/cli/session-controller.d.ts.map +1 -0
  109. package/dist/cli/session-controller.js +102 -0
  110. package/dist/cli/session-controller.js.map +1 -0
  111. package/dist/cli/signal-handler.d.ts +19 -0
  112. package/dist/cli/signal-handler.d.ts.map +1 -0
  113. package/dist/cli/signal-handler.js +62 -0
  114. package/dist/cli/signal-handler.js.map +1 -0
  115. package/dist/compaction/compaction-engine.d.ts +50 -0
  116. package/dist/compaction/compaction-engine.d.ts.map +1 -0
  117. package/dist/compaction/compaction-engine.js +208 -0
  118. package/dist/compaction/compaction-engine.js.map +1 -0
  119. package/dist/compaction/compaction-types.d.ts +454 -0
  120. package/dist/compaction/compaction-types.d.ts.map +1 -0
  121. package/dist/compaction/compaction-types.js +40 -0
  122. package/dist/compaction/compaction-types.js.map +1 -0
  123. package/dist/compaction/index.d.ts +3 -0
  124. package/dist/compaction/index.d.ts.map +1 -0
  125. package/dist/compaction/index.js +3 -0
  126. package/dist/compaction/index.js.map +1 -0
  127. package/dist/content/content-access-validator.d.ts +32 -0
  128. package/dist/content/content-access-validator.d.ts.map +1 -0
  129. package/dist/content/content-access-validator.js +71 -0
  130. package/dist/content/content-access-validator.js.map +1 -0
  131. package/dist/content/content-guards.d.ts +64 -0
  132. package/dist/content/content-guards.d.ts.map +1 -0
  133. package/dist/content/content-guards.js +290 -0
  134. package/dist/content/content-guards.js.map +1 -0
  135. package/dist/content/content-ingestion-engine.d.ts +23 -0
  136. package/dist/content/content-ingestion-engine.d.ts.map +1 -0
  137. package/dist/content/content-ingestion-engine.js +164 -0
  138. package/dist/content/content-ingestion-engine.js.map +1 -0
  139. package/dist/content/content-reference-manager.d.ts +24 -0
  140. package/dist/content/content-reference-manager.d.ts.map +1 -0
  141. package/dist/content/content-reference-manager.js +62 -0
  142. package/dist/content/content-reference-manager.js.map +1 -0
  143. package/dist/content/content-sanitizer.d.ts +39 -0
  144. package/dist/content/content-sanitizer.d.ts.map +1 -0
  145. package/dist/content/content-sanitizer.js +155 -0
  146. package/dist/content/content-sanitizer.js.map +1 -0
  147. package/dist/content/index.d.ts +15 -0
  148. package/dist/content/index.d.ts.map +1 -0
  149. package/dist/content/index.js +15 -0
  150. package/dist/content/index.js.map +1 -0
  151. package/dist/content/parsers/archive-parser.d.ts +25 -0
  152. package/dist/content/parsers/archive-parser.d.ts.map +1 -0
  153. package/dist/content/parsers/archive-parser.js +82 -0
  154. package/dist/content/parsers/archive-parser.js.map +1 -0
  155. package/dist/content/parsers/binary-parser.d.ts +17 -0
  156. package/dist/content/parsers/binary-parser.d.ts.map +1 -0
  157. package/dist/content/parsers/binary-parser.js +48 -0
  158. package/dist/content/parsers/binary-parser.js.map +1 -0
  159. package/dist/content/parsers/image-parser.d.ts +23 -0
  160. package/dist/content/parsers/image-parser.d.ts.map +1 -0
  161. package/dist/content/parsers/image-parser.js +88 -0
  162. package/dist/content/parsers/image-parser.js.map +1 -0
  163. package/dist/content/parsers/media-parser.d.ts +19 -0
  164. package/dist/content/parsers/media-parser.d.ts.map +1 -0
  165. package/dist/content/parsers/media-parser.js +71 -0
  166. package/dist/content/parsers/media-parser.js.map +1 -0
  167. package/dist/content/parsers/pdf-parser.d.ts +18 -0
  168. package/dist/content/parsers/pdf-parser.d.ts.map +1 -0
  169. package/dist/content/parsers/pdf-parser.js +73 -0
  170. package/dist/content/parsers/pdf-parser.js.map +1 -0
  171. package/dist/content/parsers/structured-parser.d.ts +20 -0
  172. package/dist/content/parsers/structured-parser.d.ts.map +1 -0
  173. package/dist/content/parsers/structured-parser.js +114 -0
  174. package/dist/content/parsers/structured-parser.js.map +1 -0
  175. package/dist/content/parsers/text-parser.d.ts +20 -0
  176. package/dist/content/parsers/text-parser.d.ts.map +1 -0
  177. package/dist/content/parsers/text-parser.js +94 -0
  178. package/dist/content/parsers/text-parser.js.map +1 -0
  179. package/dist/content/provenance-manager.d.ts +22 -0
  180. package/dist/content/provenance-manager.d.ts.map +1 -0
  181. package/dist/content/provenance-manager.js +59 -0
  182. package/dist/content/provenance-manager.js.map +1 -0
  183. package/dist/content/representation-selector.d.ts +36 -0
  184. package/dist/content/representation-selector.d.ts.map +1 -0
  185. package/dist/content/representation-selector.js +92 -0
  186. package/dist/content/representation-selector.js.map +1 -0
  187. package/dist/context/context-engine.d.ts +85 -0
  188. package/dist/context/context-engine.d.ts.map +1 -0
  189. package/dist/context/context-engine.js +313 -0
  190. package/dist/context/context-engine.js.map +1 -0
  191. package/dist/context/index.d.ts +3 -0
  192. package/dist/context/index.d.ts.map +1 -0
  193. package/dist/context/index.js +3 -0
  194. package/dist/context/index.js.map +1 -0
  195. package/dist/context/tool-result-pruner.d.ts +22 -0
  196. package/dist/context/tool-result-pruner.d.ts.map +1 -0
  197. package/dist/context/tool-result-pruner.js +48 -0
  198. package/dist/context/tool-result-pruner.js.map +1 -0
  199. package/dist/domain/agent.d.ts +873 -0
  200. package/dist/domain/agent.d.ts.map +1 -0
  201. package/dist/domain/agent.js +131 -0
  202. package/dist/domain/agent.js.map +1 -0
  203. package/dist/domain/api.d.ts +273 -0
  204. package/dist/domain/api.d.ts.map +1 -0
  205. package/dist/domain/api.js +89 -0
  206. package/dist/domain/api.js.map +1 -0
  207. package/dist/domain/artifact.d.ts +101 -0
  208. package/dist/domain/artifact.d.ts.map +1 -0
  209. package/dist/domain/artifact.js +55 -0
  210. package/dist/domain/artifact.js.map +1 -0
  211. package/dist/domain/attachment.d.ts +53 -0
  212. package/dist/domain/attachment.d.ts.map +1 -0
  213. package/dist/domain/attachment.js +34 -0
  214. package/dist/domain/attachment.js.map +1 -0
  215. package/dist/domain/auth.d.ts +264 -0
  216. package/dist/domain/auth.d.ts.map +1 -0
  217. package/dist/domain/auth.js +92 -0
  218. package/dist/domain/auth.js.map +1 -0
  219. package/dist/domain/capability.d.ts +351 -0
  220. package/dist/domain/capability.d.ts.map +1 -0
  221. package/dist/domain/capability.js +121 -0
  222. package/dist/domain/capability.js.map +1 -0
  223. package/dist/domain/checkpoint.d.ts +131 -0
  224. package/dist/domain/checkpoint.d.ts.map +1 -0
  225. package/dist/domain/checkpoint.js +65 -0
  226. package/dist/domain/checkpoint.js.map +1 -0
  227. package/dist/domain/cli.d.ts +172 -0
  228. package/dist/domain/cli.d.ts.map +1 -0
  229. package/dist/domain/cli.js +59 -0
  230. package/dist/domain/cli.js.map +1 -0
  231. package/dist/domain/content.d.ts +261 -0
  232. package/dist/domain/content.d.ts.map +1 -0
  233. package/dist/domain/content.js +93 -0
  234. package/dist/domain/content.js.map +1 -0
  235. package/dist/domain/context.d.ts +241 -0
  236. package/dist/domain/context.d.ts.map +1 -0
  237. package/dist/domain/context.js +77 -0
  238. package/dist/domain/context.js.map +1 -0
  239. package/dist/domain/evaluation.d.ts +994 -0
  240. package/dist/domain/evaluation.d.ts.map +1 -0
  241. package/dist/domain/evaluation.js +176 -0
  242. package/dist/domain/evaluation.js.map +1 -0
  243. package/dist/domain/event.d.ts +253 -0
  244. package/dist/domain/event.d.ts.map +1 -0
  245. package/dist/domain/event.js +269 -0
  246. package/dist/domain/event.js.map +1 -0
  247. package/dist/domain/execution.d.ts +281 -0
  248. package/dist/domain/execution.d.ts.map +1 -0
  249. package/dist/domain/execution.js +78 -0
  250. package/dist/domain/execution.js.map +1 -0
  251. package/dist/domain/hook.d.ts +504 -0
  252. package/dist/domain/hook.d.ts.map +1 -0
  253. package/dist/domain/hook.js +123 -0
  254. package/dist/domain/hook.js.map +1 -0
  255. package/dist/domain/index.d.ts +42 -0
  256. package/dist/domain/index.d.ts.map +1 -0
  257. package/dist/domain/index.js +42 -0
  258. package/dist/domain/index.js.map +1 -0
  259. package/dist/domain/integration.d.ts +224 -0
  260. package/dist/domain/integration.d.ts.map +1 -0
  261. package/dist/domain/integration.js +121 -0
  262. package/dist/domain/integration.js.map +1 -0
  263. package/dist/domain/job.d.ts +247 -0
  264. package/dist/domain/job.d.ts.map +1 -0
  265. package/dist/domain/job.js +105 -0
  266. package/dist/domain/job.js.map +1 -0
  267. package/dist/domain/lease.d.ts +649 -0
  268. package/dist/domain/lease.d.ts.map +1 -0
  269. package/dist/domain/lease.js +126 -0
  270. package/dist/domain/lease.js.map +1 -0
  271. package/dist/domain/mcp.d.ts +822 -0
  272. package/dist/domain/mcp.d.ts.map +1 -0
  273. package/dist/domain/mcp.js +111 -0
  274. package/dist/domain/mcp.js.map +1 -0
  275. package/dist/domain/memory.d.ts +73 -0
  276. package/dist/domain/memory.d.ts.map +1 -0
  277. package/dist/domain/memory.js +47 -0
  278. package/dist/domain/memory.js.map +1 -0
  279. package/dist/domain/model.d.ts +374 -0
  280. package/dist/domain/model.d.ts.map +1 -0
  281. package/dist/domain/model.js +65 -0
  282. package/dist/domain/model.js.map +1 -0
  283. package/dist/domain/node.d.ts +293 -0
  284. package/dist/domain/node.d.ts.map +1 -0
  285. package/dist/domain/node.js +126 -0
  286. package/dist/domain/node.js.map +1 -0
  287. package/dist/domain/observability.d.ts +335 -0
  288. package/dist/domain/observability.d.ts.map +1 -0
  289. package/dist/domain/observability.js +114 -0
  290. package/dist/domain/observability.js.map +1 -0
  291. package/dist/domain/plugin.d.ts +803 -0
  292. package/dist/domain/plugin.d.ts.map +1 -0
  293. package/dist/domain/plugin.js +118 -0
  294. package/dist/domain/plugin.js.map +1 -0
  295. package/dist/domain/policy.d.ts +279 -0
  296. package/dist/domain/policy.d.ts.map +1 -0
  297. package/dist/domain/policy.js +96 -0
  298. package/dist/domain/policy.js.map +1 -0
  299. package/dist/domain/project.d.ts +61 -0
  300. package/dist/domain/project.d.ts.map +1 -0
  301. package/dist/domain/project.js +36 -0
  302. package/dist/domain/project.js.map +1 -0
  303. package/dist/domain/provenance.d.ts +61 -0
  304. package/dist/domain/provenance.d.ts.map +1 -0
  305. package/dist/domain/provenance.js +22 -0
  306. package/dist/domain/provenance.js.map +1 -0
  307. package/dist/domain/routing.d.ts +2407 -0
  308. package/dist/domain/routing.d.ts.map +1 -0
  309. package/dist/domain/routing.js +66 -0
  310. package/dist/domain/routing.js.map +1 -0
  311. package/dist/domain/security.d.ts +47 -0
  312. package/dist/domain/security.d.ts.map +1 -0
  313. package/dist/domain/security.js +54 -0
  314. package/dist/domain/security.js.map +1 -0
  315. package/dist/domain/session.d.ts +58 -0
  316. package/dist/domain/session.d.ts.map +1 -0
  317. package/dist/domain/session.js +26 -0
  318. package/dist/domain/session.js.map +1 -0
  319. package/dist/domain/side-effect.d.ts +174 -0
  320. package/dist/domain/side-effect.d.ts.map +1 -0
  321. package/dist/domain/side-effect.js +83 -0
  322. package/dist/domain/side-effect.js.map +1 -0
  323. package/dist/domain/skill.d.ts +465 -0
  324. package/dist/domain/skill.d.ts.map +1 -0
  325. package/dist/domain/skill.js +109 -0
  326. package/dist/domain/skill.js.map +1 -0
  327. package/dist/domain/task.d.ts +91 -0
  328. package/dist/domain/task.d.ts.map +1 -0
  329. package/dist/domain/task.js +105 -0
  330. package/dist/domain/task.js.map +1 -0
  331. package/dist/domain/team.d.ts +687 -0
  332. package/dist/domain/team.d.ts.map +1 -0
  333. package/dist/domain/team.js +195 -0
  334. package/dist/domain/team.js.map +1 -0
  335. package/dist/domain/tool.d.ts +269 -0
  336. package/dist/domain/tool.d.ts.map +1 -0
  337. package/dist/domain/tool.js +85 -0
  338. package/dist/domain/tool.js.map +1 -0
  339. package/dist/domain/tui.d.ts +67 -0
  340. package/dist/domain/tui.d.ts.map +1 -0
  341. package/dist/domain/tui.js +44 -0
  342. package/dist/domain/tui.js.map +1 -0
  343. package/dist/domain/workflow.d.ts +2133 -0
  344. package/dist/domain/workflow.d.ts.map +1 -0
  345. package/dist/domain/workflow.js +272 -0
  346. package/dist/domain/workflow.js.map +1 -0
  347. package/dist/domain/workspace.d.ts +337 -0
  348. package/dist/domain/workspace.d.ts.map +1 -0
  349. package/dist/domain/workspace.js +159 -0
  350. package/dist/domain/workspace.js.map +1 -0
  351. package/dist/evaluation/assertion-evaluator.d.ts +16 -0
  352. package/dist/evaluation/assertion-evaluator.d.ts.map +1 -0
  353. package/dist/evaluation/assertion-evaluator.js +154 -0
  354. package/dist/evaluation/assertion-evaluator.js.map +1 -0
  355. package/dist/evaluation/benchmark-registry.d.ts +10 -0
  356. package/dist/evaluation/benchmark-registry.d.ts.map +1 -0
  357. package/dist/evaluation/benchmark-registry.js +491 -0
  358. package/dist/evaluation/benchmark-registry.js.map +1 -0
  359. package/dist/evaluation/evaluation-harness.d.ts +43 -0
  360. package/dist/evaluation/evaluation-harness.d.ts.map +1 -0
  361. package/dist/evaluation/evaluation-harness.js +203 -0
  362. package/dist/evaluation/evaluation-harness.js.map +1 -0
  363. package/dist/evaluation/evaluation-manager.d.ts +34 -0
  364. package/dist/evaluation/evaluation-manager.d.ts.map +1 -0
  365. package/dist/evaluation/evaluation-manager.js +61 -0
  366. package/dist/evaluation/evaluation-manager.js.map +1 -0
  367. package/dist/evaluation/evidence-collector.d.ts +35 -0
  368. package/dist/evaluation/evidence-collector.d.ts.map +1 -0
  369. package/dist/evaluation/evidence-collector.js +47 -0
  370. package/dist/evaluation/evidence-collector.js.map +1 -0
  371. package/dist/evaluation/index.d.ts +11 -0
  372. package/dist/evaluation/index.d.ts.map +1 -0
  373. package/dist/evaluation/index.js +11 -0
  374. package/dist/evaluation/index.js.map +1 -0
  375. package/dist/evaluation/regression-engine.d.ts +12 -0
  376. package/dist/evaluation/regression-engine.d.ts.map +1 -0
  377. package/dist/evaluation/regression-engine.js +48 -0
  378. package/dist/evaluation/regression-engine.js.map +1 -0
  379. package/dist/event-state/event-store.d.ts +63 -0
  380. package/dist/event-state/event-store.d.ts.map +1 -0
  381. package/dist/event-state/event-store.js +143 -0
  382. package/dist/event-state/event-store.js.map +1 -0
  383. package/dist/event-state/index.d.ts +13 -0
  384. package/dist/event-state/index.d.ts.map +1 -0
  385. package/dist/event-state/index.js +13 -0
  386. package/dist/event-state/index.js.map +1 -0
  387. package/dist/event-state/projections/projection-manager.d.ts +33 -0
  388. package/dist/event-state/projections/projection-manager.d.ts.map +1 -0
  389. package/dist/event-state/projections/projection-manager.js +93 -0
  390. package/dist/event-state/projections/projection-manager.js.map +1 -0
  391. package/dist/event-state/projections/projection.interface.d.ts +29 -0
  392. package/dist/event-state/projections/projection.interface.d.ts.map +1 -0
  393. package/dist/event-state/projections/projection.interface.js +2 -0
  394. package/dist/event-state/projections/projection.interface.js.map +1 -0
  395. package/dist/event-state/projections/session-summary-projection.d.ts +23 -0
  396. package/dist/event-state/projections/session-summary-projection.d.ts.map +1 -0
  397. package/dist/event-state/projections/session-summary-projection.js +79 -0
  398. package/dist/event-state/projections/session-summary-projection.js.map +1 -0
  399. package/dist/event-state/projections/task-board-projection.d.ts +51 -0
  400. package/dist/event-state/projections/task-board-projection.d.ts.map +1 -0
  401. package/dist/event-state/projections/task-board-projection.js +155 -0
  402. package/dist/event-state/projections/task-board-projection.js.map +1 -0
  403. package/dist/event-state/reconstruction/session-reconstruct.d.ts +22 -0
  404. package/dist/event-state/reconstruction/session-reconstruct.d.ts.map +1 -0
  405. package/dist/event-state/reconstruction/session-reconstruct.js +84 -0
  406. package/dist/event-state/reconstruction/session-reconstruct.js.map +1 -0
  407. package/dist/event-state/reconstruction/task-reconstruct.d.ts +27 -0
  408. package/dist/event-state/reconstruction/task-reconstruct.d.ts.map +1 -0
  409. package/dist/event-state/reconstruction/task-reconstruct.js +71 -0
  410. package/dist/event-state/reconstruction/task-reconstruct.js.map +1 -0
  411. package/dist/event-state/session-tree/session-tree-manager.d.ts +47 -0
  412. package/dist/event-state/session-tree/session-tree-manager.d.ts.map +1 -0
  413. package/dist/event-state/session-tree/session-tree-manager.js +116 -0
  414. package/dist/event-state/session-tree/session-tree-manager.js.map +1 -0
  415. package/dist/execution/change-set-calculator.d.ts +23 -0
  416. package/dist/execution/change-set-calculator.d.ts.map +1 -0
  417. package/dist/execution/change-set-calculator.js +155 -0
  418. package/dist/execution/change-set-calculator.js.map +1 -0
  419. package/dist/execution/conflict-detector.d.ts +16 -0
  420. package/dist/execution/conflict-detector.d.ts.map +1 -0
  421. package/dist/execution/conflict-detector.js +182 -0
  422. package/dist/execution/conflict-detector.js.map +1 -0
  423. package/dist/execution/docker-sandbox-executor.d.ts +16 -0
  424. package/dist/execution/docker-sandbox-executor.d.ts.map +1 -0
  425. package/dist/execution/docker-sandbox-executor.js +138 -0
  426. package/dist/execution/docker-sandbox-executor.js.map +1 -0
  427. package/dist/execution/executor-registry.d.ts +18 -0
  428. package/dist/execution/executor-registry.d.ts.map +1 -0
  429. package/dist/execution/executor-registry.js +35 -0
  430. package/dist/execution/executor-registry.js.map +1 -0
  431. package/dist/execution/git-worktree-manager.d.ts +51 -0
  432. package/dist/execution/git-worktree-manager.d.ts.map +1 -0
  433. package/dist/execution/git-worktree-manager.js +174 -0
  434. package/dist/execution/git-worktree-manager.js.map +1 -0
  435. package/dist/execution/index.d.ts +18 -0
  436. package/dist/execution/index.d.ts.map +1 -0
  437. package/dist/execution/index.js +18 -0
  438. package/dist/execution/index.js.map +1 -0
  439. package/dist/execution/local-executor.d.ts +19 -0
  440. package/dist/execution/local-executor.d.ts.map +1 -0
  441. package/dist/execution/local-executor.js +155 -0
  442. package/dist/execution/local-executor.js.map +1 -0
  443. package/dist/execution/parallel-orchestrator.d.ts +34 -0
  444. package/dist/execution/parallel-orchestrator.d.ts.map +1 -0
  445. package/dist/execution/parallel-orchestrator.js +62 -0
  446. package/dist/execution/parallel-orchestrator.js.map +1 -0
  447. package/dist/execution/process-supervisor.d.ts +28 -0
  448. package/dist/execution/process-supervisor.d.ts.map +1 -0
  449. package/dist/execution/process-supervisor.js +113 -0
  450. package/dist/execution/process-supervisor.js.map +1 -0
  451. package/dist/execution/process-tree-killer.d.ts +6 -0
  452. package/dist/execution/process-tree-killer.d.ts.map +1 -0
  453. package/dist/execution/process-tree-killer.js +36 -0
  454. package/dist/execution/process-tree-killer.js.map +1 -0
  455. package/dist/execution/remote-executor.d.ts +13 -0
  456. package/dist/execution/remote-executor.d.ts.map +1 -0
  457. package/dist/execution/remote-executor.js +40 -0
  458. package/dist/execution/remote-executor.js.map +1 -0
  459. package/dist/execution/workspace-integrator.d.ts +37 -0
  460. package/dist/execution/workspace-integrator.d.ts.map +1 -0
  461. package/dist/execution/workspace-integrator.js +223 -0
  462. package/dist/execution/workspace-integrator.js.map +1 -0
  463. package/dist/execution/workspace-manager.d.ts +62 -0
  464. package/dist/execution/workspace-manager.d.ts.map +1 -0
  465. package/dist/execution/workspace-manager.js +180 -0
  466. package/dist/execution/workspace-manager.js.map +1 -0
  467. package/dist/execution/workspace-recovery-engine.d.ts +39 -0
  468. package/dist/execution/workspace-recovery-engine.d.ts.map +1 -0
  469. package/dist/execution/workspace-recovery-engine.js +146 -0
  470. package/dist/execution/workspace-recovery-engine.js.map +1 -0
  471. package/dist/hooks/hook-executor.d.ts +29 -0
  472. package/dist/hooks/hook-executor.d.ts.map +1 -0
  473. package/dist/hooks/hook-executor.js +126 -0
  474. package/dist/hooks/hook-executor.js.map +1 -0
  475. package/dist/hooks/hook-manager.d.ts +65 -0
  476. package/dist/hooks/hook-manager.d.ts.map +1 -0
  477. package/dist/hooks/hook-manager.js +177 -0
  478. package/dist/hooks/hook-manager.js.map +1 -0
  479. package/dist/hooks/hook-matcher.d.ts +19 -0
  480. package/dist/hooks/hook-matcher.d.ts.map +1 -0
  481. package/dist/hooks/hook-matcher.js +68 -0
  482. package/dist/hooks/hook-matcher.js.map +1 -0
  483. package/dist/hooks/hook-recursion-guard.d.ts +38 -0
  484. package/dist/hooks/hook-recursion-guard.d.ts.map +1 -0
  485. package/dist/hooks/hook-recursion-guard.js +81 -0
  486. package/dist/hooks/hook-recursion-guard.js.map +1 -0
  487. package/dist/hooks/hook-registry.d.ts +18 -0
  488. package/dist/hooks/hook-registry.d.ts.map +1 -0
  489. package/dist/hooks/hook-registry.js +59 -0
  490. package/dist/hooks/hook-registry.js.map +1 -0
  491. package/dist/hooks/hook-security.d.ts +19 -0
  492. package/dist/hooks/hook-security.d.ts.map +1 -0
  493. package/dist/hooks/hook-security.js +48 -0
  494. package/dist/hooks/hook-security.js.map +1 -0
  495. package/dist/hooks/hook-test-runner.d.ts +38 -0
  496. package/dist/hooks/hook-test-runner.d.ts.map +1 -0
  497. package/dist/hooks/hook-test-runner.js +52 -0
  498. package/dist/hooks/hook-test-runner.js.map +1 -0
  499. package/dist/hooks/index.d.ts +14 -0
  500. package/dist/hooks/index.d.ts.map +1 -0
  501. package/dist/hooks/index.js +14 -0
  502. package/dist/hooks/index.js.map +1 -0
  503. package/dist/index.d.ts +37 -0
  504. package/dist/index.d.ts.map +1 -0
  505. package/dist/index.js +37 -0
  506. package/dist/index.js.map +1 -0
  507. package/dist/integrations/cicd-adapter.d.ts +29 -0
  508. package/dist/integrations/cicd-adapter.d.ts.map +1 -0
  509. package/dist/integrations/cicd-adapter.js +90 -0
  510. package/dist/integrations/cicd-adapter.js.map +1 -0
  511. package/dist/integrations/ide-adapter.d.ts +35 -0
  512. package/dist/integrations/ide-adapter.d.ts.map +1 -0
  513. package/dist/integrations/ide-adapter.js +100 -0
  514. package/dist/integrations/ide-adapter.js.map +1 -0
  515. package/dist/integrations/index.d.ts +10 -0
  516. package/dist/integrations/index.d.ts.map +1 -0
  517. package/dist/integrations/index.js +10 -0
  518. package/dist/integrations/index.js.map +1 -0
  519. package/dist/integrations/integration-manager.d.ts +41 -0
  520. package/dist/integrations/integration-manager.d.ts.map +1 -0
  521. package/dist/integrations/integration-manager.js +54 -0
  522. package/dist/integrations/integration-manager.js.map +1 -0
  523. package/dist/integrations/webhook-dispatcher.d.ts +37 -0
  524. package/dist/integrations/webhook-dispatcher.d.ts.map +1 -0
  525. package/dist/integrations/webhook-dispatcher.js +155 -0
  526. package/dist/integrations/webhook-dispatcher.js.map +1 -0
  527. package/dist/integrations/webhook-ingestion-engine.d.ts +31 -0
  528. package/dist/integrations/webhook-ingestion-engine.d.ts.map +1 -0
  529. package/dist/integrations/webhook-ingestion-engine.js +136 -0
  530. package/dist/integrations/webhook-ingestion-engine.js.map +1 -0
  531. package/dist/jobs/background-job-manager.d.ts +97 -0
  532. package/dist/jobs/background-job-manager.d.ts.map +1 -0
  533. package/dist/jobs/background-job-manager.js +414 -0
  534. package/dist/jobs/background-job-manager.js.map +1 -0
  535. package/dist/jobs/background-job-recovery.d.ts +32 -0
  536. package/dist/jobs/background-job-recovery.d.ts.map +1 -0
  537. package/dist/jobs/background-job-recovery.js +107 -0
  538. package/dist/jobs/background-job-recovery.js.map +1 -0
  539. package/dist/jobs/background-job-supervisor.d.ts +48 -0
  540. package/dist/jobs/background-job-supervisor.d.ts.map +1 -0
  541. package/dist/jobs/background-job-supervisor.js +102 -0
  542. package/dist/jobs/background-job-supervisor.js.map +1 -0
  543. package/dist/jobs/index.d.ts +8 -0
  544. package/dist/jobs/index.d.ts.map +1 -0
  545. package/dist/jobs/index.js +8 -0
  546. package/dist/jobs/index.js.map +1 -0
  547. package/dist/mcp/index.d.ts +13 -0
  548. package/dist/mcp/index.d.ts.map +1 -0
  549. package/dist/mcp/index.js +13 -0
  550. package/dist/mcp/index.js.map +1 -0
  551. package/dist/mcp/mcp-circuit-breaker.d.ts +33 -0
  552. package/dist/mcp/mcp-circuit-breaker.d.ts.map +1 -0
  553. package/dist/mcp/mcp-circuit-breaker.js +89 -0
  554. package/dist/mcp/mcp-circuit-breaker.js.map +1 -0
  555. package/dist/mcp/mcp-client.d.ts +65 -0
  556. package/dist/mcp/mcp-client.d.ts.map +1 -0
  557. package/dist/mcp/mcp-client.js +325 -0
  558. package/dist/mcp/mcp-client.js.map +1 -0
  559. package/dist/mcp/mcp-output-sanitizer.d.ts +22 -0
  560. package/dist/mcp/mcp-output-sanitizer.d.ts.map +1 -0
  561. package/dist/mcp/mcp-output-sanitizer.js +58 -0
  562. package/dist/mcp/mcp-output-sanitizer.js.map +1 -0
  563. package/dist/mcp/mcp-prompt-manager.d.ts +25 -0
  564. package/dist/mcp/mcp-prompt-manager.d.ts.map +1 -0
  565. package/dist/mcp/mcp-prompt-manager.js +32 -0
  566. package/dist/mcp/mcp-prompt-manager.js.map +1 -0
  567. package/dist/mcp/mcp-registry.d.ts +54 -0
  568. package/dist/mcp/mcp-registry.d.ts.map +1 -0
  569. package/dist/mcp/mcp-registry.js +162 -0
  570. package/dist/mcp/mcp-registry.js.map +1 -0
  571. package/dist/mcp/mcp-resource-normalizer.d.ts +16 -0
  572. package/dist/mcp/mcp-resource-normalizer.d.ts.map +1 -0
  573. package/dist/mcp/mcp-resource-normalizer.js +61 -0
  574. package/dist/mcp/mcp-resource-normalizer.js.map +1 -0
  575. package/dist/mcp/mcp-tool-normalizer.d.ts +16 -0
  576. package/dist/mcp/mcp-tool-normalizer.d.ts.map +1 -0
  577. package/dist/mcp/mcp-tool-normalizer.js +50 -0
  578. package/dist/mcp/mcp-tool-normalizer.js.map +1 -0
  579. package/dist/memory/index.d.ts +5 -0
  580. package/dist/memory/index.d.ts.map +1 -0
  581. package/dist/memory/index.js +5 -0
  582. package/dist/memory/index.js.map +1 -0
  583. package/dist/memory/memory-index-manager.d.ts +36 -0
  584. package/dist/memory/memory-index-manager.d.ts.map +1 -0
  585. package/dist/memory/memory-index-manager.js +85 -0
  586. package/dist/memory/memory-index-manager.js.map +1 -0
  587. package/dist/memory/memory-manager.d.ts +21 -0
  588. package/dist/memory/memory-manager.d.ts.map +1 -0
  589. package/dist/memory/memory-manager.js +76 -0
  590. package/dist/memory/memory-manager.js.map +1 -0
  591. package/dist/memory/memory-retrieval-engine.d.ts +20 -0
  592. package/dist/memory/memory-retrieval-engine.d.ts.map +1 -0
  593. package/dist/memory/memory-retrieval-engine.js +147 -0
  594. package/dist/memory/memory-retrieval-engine.js.map +1 -0
  595. package/dist/memory/memory-types.d.ts +138 -0
  596. package/dist/memory/memory-types.d.ts.map +1 -0
  597. package/dist/memory/memory-types.js +20 -0
  598. package/dist/memory/memory-types.js.map +1 -0
  599. package/dist/models/adapters/anthropic-compatible-adapter.d.ts +30 -0
  600. package/dist/models/adapters/anthropic-compatible-adapter.d.ts.map +1 -0
  601. package/dist/models/adapters/anthropic-compatible-adapter.js +280 -0
  602. package/dist/models/adapters/anthropic-compatible-adapter.js.map +1 -0
  603. package/dist/models/adapters/gemini-adapter.d.ts +28 -0
  604. package/dist/models/adapters/gemini-adapter.d.ts.map +1 -0
  605. package/dist/models/adapters/gemini-adapter.js +250 -0
  606. package/dist/models/adapters/gemini-adapter.js.map +1 -0
  607. package/dist/models/adapters/openai-compatible-adapter.d.ts +30 -0
  608. package/dist/models/adapters/openai-compatible-adapter.d.ts.map +1 -0
  609. package/dist/models/adapters/openai-compatible-adapter.js +286 -0
  610. package/dist/models/adapters/openai-compatible-adapter.js.map +1 -0
  611. package/dist/models/adapters/openrouter-adapter.d.ts +15 -0
  612. package/dist/models/adapters/openrouter-adapter.d.ts.map +1 -0
  613. package/dist/models/adapters/openrouter-adapter.js +31 -0
  614. package/dist/models/adapters/openrouter-adapter.js.map +1 -0
  615. package/dist/models/capability-profiles.d.ts +6 -0
  616. package/dist/models/capability-profiles.d.ts.map +1 -0
  617. package/dist/models/capability-profiles.js +137 -0
  618. package/dist/models/capability-profiles.js.map +1 -0
  619. package/dist/models/capability-resolver.d.ts +15 -0
  620. package/dist/models/capability-resolver.d.ts.map +1 -0
  621. package/dist/models/capability-resolver.js +175 -0
  622. package/dist/models/capability-resolver.js.map +1 -0
  623. package/dist/models/index.d.ts +15 -0
  624. package/dist/models/index.d.ts.map +1 -0
  625. package/dist/models/index.js +15 -0
  626. package/dist/models/index.js.map +1 -0
  627. package/dist/models/key-pool-manager.d.ts +38 -0
  628. package/dist/models/key-pool-manager.d.ts.map +1 -0
  629. package/dist/models/key-pool-manager.js +157 -0
  630. package/dist/models/key-pool-manager.js.map +1 -0
  631. package/dist/models/mock-provider-adapter.d.ts +22 -0
  632. package/dist/models/mock-provider-adapter.d.ts.map +1 -0
  633. package/dist/models/mock-provider-adapter.js +144 -0
  634. package/dist/models/mock-provider-adapter.js.map +1 -0
  635. package/dist/models/model-errors.d.ts +65 -0
  636. package/dist/models/model-errors.d.ts.map +1 -0
  637. package/dist/models/model-errors.js +75 -0
  638. package/dist/models/model-errors.js.map +1 -0
  639. package/dist/models/model-router.d.ts +40 -0
  640. package/dist/models/model-router.d.ts.map +1 -0
  641. package/dist/models/model-router.js +255 -0
  642. package/dist/models/model-router.js.map +1 -0
  643. package/dist/models/provider-adapter.d.ts +17 -0
  644. package/dist/models/provider-adapter.d.ts.map +1 -0
  645. package/dist/models/provider-adapter.js +2 -0
  646. package/dist/models/provider-adapter.js.map +1 -0
  647. package/dist/models/provider-health-tracker.d.ts +16 -0
  648. package/dist/models/provider-health-tracker.d.ts.map +1 -0
  649. package/dist/models/provider-health-tracker.js +112 -0
  650. package/dist/models/provider-health-tracker.js.map +1 -0
  651. package/dist/models/provider-registry.d.ts +48 -0
  652. package/dist/models/provider-registry.d.ts.map +1 -0
  653. package/dist/models/provider-registry.js +60 -0
  654. package/dist/models/provider-registry.js.map +1 -0
  655. package/dist/models/secret-store.d.ts +19 -0
  656. package/dist/models/secret-store.d.ts.map +1 -0
  657. package/dist/models/secret-store.js +27 -0
  658. package/dist/models/secret-store.js.map +1 -0
  659. package/dist/observability/audit-logger.d.ts +48 -0
  660. package/dist/observability/audit-logger.d.ts.map +1 -0
  661. package/dist/observability/audit-logger.js +139 -0
  662. package/dist/observability/audit-logger.js.map +1 -0
  663. package/dist/observability/compliance-exporter.d.ts +11 -0
  664. package/dist/observability/compliance-exporter.d.ts.map +1 -0
  665. package/dist/observability/compliance-exporter.js +35 -0
  666. package/dist/observability/compliance-exporter.js.map +1 -0
  667. package/dist/observability/diagnostic-inspector.d.ts +27 -0
  668. package/dist/observability/diagnostic-inspector.d.ts.map +1 -0
  669. package/dist/observability/diagnostic-inspector.js +127 -0
  670. package/dist/observability/diagnostic-inspector.js.map +1 -0
  671. package/dist/observability/index.d.ts +11 -0
  672. package/dist/observability/index.d.ts.map +1 -0
  673. package/dist/observability/index.js +11 -0
  674. package/dist/observability/index.js.map +1 -0
  675. package/dist/observability/observability-manager.d.ts +32 -0
  676. package/dist/observability/observability-manager.d.ts.map +1 -0
  677. package/dist/observability/observability-manager.js +63 -0
  678. package/dist/observability/observability-manager.js.map +1 -0
  679. package/dist/observability/security-event-classifier.d.ts +13 -0
  680. package/dist/observability/security-event-classifier.d.ts.map +1 -0
  681. package/dist/observability/security-event-classifier.js +67 -0
  682. package/dist/observability/security-event-classifier.js.map +1 -0
  683. package/dist/observability/telemetry-engine.d.ts +71 -0
  684. package/dist/observability/telemetry-engine.d.ts.map +1 -0
  685. package/dist/observability/telemetry-engine.js +153 -0
  686. package/dist/observability/telemetry-engine.js.map +1 -0
  687. package/dist/persistence/index.d.ts +37 -0
  688. package/dist/persistence/index.d.ts.map +1 -0
  689. package/dist/persistence/index.js +37 -0
  690. package/dist/persistence/index.js.map +1 -0
  691. package/dist/persistence/migration-engine.d.ts +36 -0
  692. package/dist/persistence/migration-engine.d.ts.map +1 -0
  693. package/dist/persistence/migration-engine.js +88 -0
  694. package/dist/persistence/migration-engine.js.map +1 -0
  695. package/dist/persistence/migrations/001_initial_core_schema.d.ts +10 -0
  696. package/dist/persistence/migrations/001_initial_core_schema.d.ts.map +1 -0
  697. package/dist/persistence/migrations/001_initial_core_schema.js +219 -0
  698. package/dist/persistence/migrations/001_initial_core_schema.js.map +1 -0
  699. package/dist/persistence/migrations/002_memory_fts.d.ts +3 -0
  700. package/dist/persistence/migrations/002_memory_fts.d.ts.map +1 -0
  701. package/dist/persistence/migrations/002_memory_fts.js +19 -0
  702. package/dist/persistence/migrations/002_memory_fts.js.map +1 -0
  703. package/dist/persistence/migrations/003_task_leases.d.ts +3 -0
  704. package/dist/persistence/migrations/003_task_leases.d.ts.map +1 -0
  705. package/dist/persistence/migrations/003_task_leases.js +38 -0
  706. package/dist/persistence/migrations/003_task_leases.js.map +1 -0
  707. package/dist/persistence/migrations/004_teams_subagents.d.ts +3 -0
  708. package/dist/persistence/migrations/004_teams_subagents.d.ts.map +1 -0
  709. package/dist/persistence/migrations/004_teams_subagents.js +84 -0
  710. package/dist/persistence/migrations/004_teams_subagents.js.map +1 -0
  711. package/dist/persistence/migrations/005_workspaces_parallel.d.ts +3 -0
  712. package/dist/persistence/migrations/005_workspaces_parallel.d.ts.map +1 -0
  713. package/dist/persistence/migrations/005_workspaces_parallel.js +86 -0
  714. package/dist/persistence/migrations/005_workspaces_parallel.js.map +1 -0
  715. package/dist/persistence/migrations/006_workflows_orchestration.d.ts +3 -0
  716. package/dist/persistence/migrations/006_workflows_orchestration.d.ts.map +1 -0
  717. package/dist/persistence/migrations/006_workflows_orchestration.js +60 -0
  718. package/dist/persistence/migrations/006_workflows_orchestration.js.map +1 -0
  719. package/dist/persistence/migrations/007_background_jobs.d.ts +3 -0
  720. package/dist/persistence/migrations/007_background_jobs.d.ts.map +1 -0
  721. package/dist/persistence/migrations/007_background_jobs.js +52 -0
  722. package/dist/persistence/migrations/007_background_jobs.js.map +1 -0
  723. package/dist/persistence/migrations/008_remote_nodes_dispatch.d.ts +3 -0
  724. package/dist/persistence/migrations/008_remote_nodes_dispatch.d.ts.map +1 -0
  725. package/dist/persistence/migrations/008_remote_nodes_dispatch.js +67 -0
  726. package/dist/persistence/migrations/008_remote_nodes_dispatch.js.map +1 -0
  727. package/dist/persistence/migrations/009_integrations_webhooks.d.ts +7 -0
  728. package/dist/persistence/migrations/009_integrations_webhooks.d.ts.map +1 -0
  729. package/dist/persistence/migrations/009_integrations_webhooks.js +62 -0
  730. package/dist/persistence/migrations/009_integrations_webhooks.js.map +1 -0
  731. package/dist/persistence/migrations/010_evaluation_runs.d.ts +7 -0
  732. package/dist/persistence/migrations/010_evaluation_runs.d.ts.map +1 -0
  733. package/dist/persistence/migrations/010_evaluation_runs.js +44 -0
  734. package/dist/persistence/migrations/010_evaluation_runs.js.map +1 -0
  735. package/dist/persistence/repositories/artifact-repository.d.ts +13 -0
  736. package/dist/persistence/repositories/artifact-repository.d.ts.map +1 -0
  737. package/dist/persistence/repositories/artifact-repository.js +73 -0
  738. package/dist/persistence/repositories/artifact-repository.js.map +1 -0
  739. package/dist/persistence/repositories/attachment-repository.d.ts +12 -0
  740. package/dist/persistence/repositories/attachment-repository.d.ts.map +1 -0
  741. package/dist/persistence/repositories/attachment-repository.js +65 -0
  742. package/dist/persistence/repositories/attachment-repository.js.map +1 -0
  743. package/dist/persistence/repositories/checkpoint-repository.d.ts +12 -0
  744. package/dist/persistence/repositories/checkpoint-repository.d.ts.map +1 -0
  745. package/dist/persistence/repositories/checkpoint-repository.js +59 -0
  746. package/dist/persistence/repositories/checkpoint-repository.js.map +1 -0
  747. package/dist/persistence/repositories/evaluation-repository.d.ts +12 -0
  748. package/dist/persistence/repositories/evaluation-repository.d.ts.map +1 -0
  749. package/dist/persistence/repositories/evaluation-repository.js +109 -0
  750. package/dist/persistence/repositories/evaluation-repository.js.map +1 -0
  751. package/dist/persistence/repositories/event-repository.d.ts +20 -0
  752. package/dist/persistence/repositories/event-repository.d.ts.map +1 -0
  753. package/dist/persistence/repositories/event-repository.js +77 -0
  754. package/dist/persistence/repositories/event-repository.js.map +1 -0
  755. package/dist/persistence/repositories/handoff-repository.d.ts +12 -0
  756. package/dist/persistence/repositories/handoff-repository.d.ts.map +1 -0
  757. package/dist/persistence/repositories/handoff-repository.js +76 -0
  758. package/dist/persistence/repositories/handoff-repository.js.map +1 -0
  759. package/dist/persistence/repositories/integration-repository.d.ts +13 -0
  760. package/dist/persistence/repositories/integration-repository.d.ts.map +1 -0
  761. package/dist/persistence/repositories/integration-repository.js +59 -0
  762. package/dist/persistence/repositories/integration-repository.js.map +1 -0
  763. package/dist/persistence/repositories/job-repository.d.ts +21 -0
  764. package/dist/persistence/repositories/job-repository.d.ts.map +1 -0
  765. package/dist/persistence/repositories/job-repository.js +144 -0
  766. package/dist/persistence/repositories/job-repository.js.map +1 -0
  767. package/dist/persistence/repositories/lease-repository.d.ts +17 -0
  768. package/dist/persistence/repositories/lease-repository.d.ts.map +1 -0
  769. package/dist/persistence/repositories/lease-repository.js +113 -0
  770. package/dist/persistence/repositories/lease-repository.js.map +1 -0
  771. package/dist/persistence/repositories/memory-repository.d.ts +15 -0
  772. package/dist/persistence/repositories/memory-repository.d.ts.map +1 -0
  773. package/dist/persistence/repositories/memory-repository.js +83 -0
  774. package/dist/persistence/repositories/memory-repository.js.map +1 -0
  775. package/dist/persistence/repositories/node-repository.d.ts +19 -0
  776. package/dist/persistence/repositories/node-repository.d.ts.map +1 -0
  777. package/dist/persistence/repositories/node-repository.js +96 -0
  778. package/dist/persistence/repositories/node-repository.js.map +1 -0
  779. package/dist/persistence/repositories/peer-message-repository.d.ts +12 -0
  780. package/dist/persistence/repositories/peer-message-repository.d.ts.map +1 -0
  781. package/dist/persistence/repositories/peer-message-repository.js +62 -0
  782. package/dist/persistence/repositories/peer-message-repository.js.map +1 -0
  783. package/dist/persistence/repositories/project-repository.d.ts +15 -0
  784. package/dist/persistence/repositories/project-repository.d.ts.map +1 -0
  785. package/dist/persistence/repositories/project-repository.js +81 -0
  786. package/dist/persistence/repositories/project-repository.js.map +1 -0
  787. package/dist/persistence/repositories/remote-dispatch-repository.d.ts +22 -0
  788. package/dist/persistence/repositories/remote-dispatch-repository.d.ts.map +1 -0
  789. package/dist/persistence/repositories/remote-dispatch-repository.js +109 -0
  790. package/dist/persistence/repositories/remote-dispatch-repository.js.map +1 -0
  791. package/dist/persistence/repositories/session-repository.d.ts +14 -0
  792. package/dist/persistence/repositories/session-repository.d.ts.map +1 -0
  793. package/dist/persistence/repositories/session-repository.js +77 -0
  794. package/dist/persistence/repositories/session-repository.js.map +1 -0
  795. package/dist/persistence/repositories/task-repository.d.ts +15 -0
  796. package/dist/persistence/repositories/task-repository.d.ts.map +1 -0
  797. package/dist/persistence/repositories/task-repository.js +104 -0
  798. package/dist/persistence/repositories/task-repository.js.map +1 -0
  799. package/dist/persistence/repositories/team-repository.d.ts +17 -0
  800. package/dist/persistence/repositories/team-repository.d.ts.map +1 -0
  801. package/dist/persistence/repositories/team-repository.js +103 -0
  802. package/dist/persistence/repositories/team-repository.js.map +1 -0
  803. package/dist/persistence/repositories/webhook-delivery-repository.d.ts +12 -0
  804. package/dist/persistence/repositories/webhook-delivery-repository.d.ts.map +1 -0
  805. package/dist/persistence/repositories/webhook-delivery-repository.js +55 -0
  806. package/dist/persistence/repositories/webhook-delivery-repository.js.map +1 -0
  807. package/dist/persistence/repositories/webhook-subscription-repository.d.ts +13 -0
  808. package/dist/persistence/repositories/webhook-subscription-repository.d.ts.map +1 -0
  809. package/dist/persistence/repositories/webhook-subscription-repository.js +57 -0
  810. package/dist/persistence/repositories/webhook-subscription-repository.js.map +1 -0
  811. package/dist/persistence/repositories/workflow-repository.d.ts +22 -0
  812. package/dist/persistence/repositories/workflow-repository.d.ts.map +1 -0
  813. package/dist/persistence/repositories/workflow-repository.js +214 -0
  814. package/dist/persistence/repositories/workflow-repository.js.map +1 -0
  815. package/dist/persistence/repositories/workspace-repository.d.ts +24 -0
  816. package/dist/persistence/repositories/workspace-repository.d.ts.map +1 -0
  817. package/dist/persistence/repositories/workspace-repository.js +198 -0
  818. package/dist/persistence/repositories/workspace-repository.js.map +1 -0
  819. package/dist/persistence/sqlite-engine.d.ts +76 -0
  820. package/dist/persistence/sqlite-engine.d.ts.map +1 -0
  821. package/dist/persistence/sqlite-engine.js +149 -0
  822. package/dist/persistence/sqlite-engine.js.map +1 -0
  823. package/dist/plugins/index.d.ts +17 -0
  824. package/dist/plugins/index.d.ts.map +1 -0
  825. package/dist/plugins/index.js +17 -0
  826. package/dist/plugins/index.js.map +1 -0
  827. package/dist/plugins/plugin-compatibility.d.ts +26 -0
  828. package/dist/plugins/plugin-compatibility.d.ts.map +1 -0
  829. package/dist/plugins/plugin-compatibility.js +64 -0
  830. package/dist/plugins/plugin-compatibility.js.map +1 -0
  831. package/dist/plugins/plugin-dependency.d.ts +30 -0
  832. package/dist/plugins/plugin-dependency.d.ts.map +1 -0
  833. package/dist/plugins/plugin-dependency.js +119 -0
  834. package/dist/plugins/plugin-dependency.js.map +1 -0
  835. package/dist/plugins/plugin-doctor.d.ts +23 -0
  836. package/dist/plugins/plugin-doctor.d.ts.map +1 -0
  837. package/dist/plugins/plugin-doctor.js +51 -0
  838. package/dist/plugins/plugin-doctor.js.map +1 -0
  839. package/dist/plugins/plugin-installer.d.ts +36 -0
  840. package/dist/plugins/plugin-installer.d.ts.map +1 -0
  841. package/dist/plugins/plugin-installer.js +70 -0
  842. package/dist/plugins/plugin-installer.js.map +1 -0
  843. package/dist/plugins/plugin-manager.d.ts +62 -0
  844. package/dist/plugins/plugin-manager.d.ts.map +1 -0
  845. package/dist/plugins/plugin-manager.js +229 -0
  846. package/dist/plugins/plugin-manager.js.map +1 -0
  847. package/dist/plugins/plugin-package.d.ts +27 -0
  848. package/dist/plugins/plugin-package.d.ts.map +1 -0
  849. package/dist/plugins/plugin-package.js +47 -0
  850. package/dist/plugins/plugin-package.js.map +1 -0
  851. package/dist/plugins/plugin-permissions.d.ts +29 -0
  852. package/dist/plugins/plugin-permissions.d.ts.map +1 -0
  853. package/dist/plugins/plugin-permissions.js +78 -0
  854. package/dist/plugins/plugin-permissions.js.map +1 -0
  855. package/dist/plugins/plugin-registry.d.ts +24 -0
  856. package/dist/plugins/plugin-registry.d.ts.map +1 -0
  857. package/dist/plugins/plugin-registry.js +49 -0
  858. package/dist/plugins/plugin-registry.js.map +1 -0
  859. package/dist/plugins/plugin-state.d.ts +21 -0
  860. package/dist/plugins/plugin-state.d.ts.map +1 -0
  861. package/dist/plugins/plugin-state.js +41 -0
  862. package/dist/plugins/plugin-state.js.map +1 -0
  863. package/dist/plugins/plugin-trust.d.ts +19 -0
  864. package/dist/plugins/plugin-trust.d.ts.map +1 -0
  865. package/dist/plugins/plugin-trust.js +35 -0
  866. package/dist/plugins/plugin-trust.js.map +1 -0
  867. package/dist/policy/approval-manager.d.ts +45 -0
  868. package/dist/policy/approval-manager.d.ts.map +1 -0
  869. package/dist/policy/approval-manager.js +284 -0
  870. package/dist/policy/approval-manager.js.map +1 -0
  871. package/dist/policy/index.d.ts +8 -0
  872. package/dist/policy/index.d.ts.map +1 -0
  873. package/dist/policy/index.js +8 -0
  874. package/dist/policy/index.js.map +1 -0
  875. package/dist/policy/policy-engine.d.ts +19 -0
  876. package/dist/policy/policy-engine.d.ts.map +1 -0
  877. package/dist/policy/policy-engine.js +142 -0
  878. package/dist/policy/policy-engine.js.map +1 -0
  879. package/dist/policy/risk-classifier.d.ts +21 -0
  880. package/dist/policy/risk-classifier.d.ts.map +1 -0
  881. package/dist/policy/risk-classifier.js +102 -0
  882. package/dist/policy/risk-classifier.js.map +1 -0
  883. package/dist/recovery/checkpoint-manifest.d.ts +27 -0
  884. package/dist/recovery/checkpoint-manifest.d.ts.map +1 -0
  885. package/dist/recovery/checkpoint-manifest.js +48 -0
  886. package/dist/recovery/checkpoint-manifest.js.map +1 -0
  887. package/dist/recovery/checkpoint-validator.d.ts +32 -0
  888. package/dist/recovery/checkpoint-validator.d.ts.map +1 -0
  889. package/dist/recovery/checkpoint-validator.js +101 -0
  890. package/dist/recovery/checkpoint-validator.js.map +1 -0
  891. package/dist/recovery/crash-recovery-engine.d.ts +31 -0
  892. package/dist/recovery/crash-recovery-engine.d.ts.map +1 -0
  893. package/dist/recovery/crash-recovery-engine.js +200 -0
  894. package/dist/recovery/crash-recovery-engine.js.map +1 -0
  895. package/dist/recovery/index.d.ts +7 -0
  896. package/dist/recovery/index.d.ts.map +1 -0
  897. package/dist/recovery/index.js +7 -0
  898. package/dist/recovery/index.js.map +1 -0
  899. package/dist/recovery/lease-manager.d.ts +73 -0
  900. package/dist/recovery/lease-manager.d.ts.map +1 -0
  901. package/dist/recovery/lease-manager.js +141 -0
  902. package/dist/recovery/lease-manager.js.map +1 -0
  903. package/dist/recovery/orphan-detector.d.ts +20 -0
  904. package/dist/recovery/orphan-detector.d.ts.map +1 -0
  905. package/dist/recovery/orphan-detector.js +113 -0
  906. package/dist/recovery/orphan-detector.js.map +1 -0
  907. package/dist/recovery/recovery-record.d.ts +103 -0
  908. package/dist/recovery/recovery-record.d.ts.map +1 -0
  909. package/dist/recovery/recovery-record.js +42 -0
  910. package/dist/recovery/recovery-record.js.map +1 -0
  911. package/dist/remote/index.d.ts +10 -0
  912. package/dist/remote/index.d.ts.map +1 -0
  913. package/dist/remote/index.js +10 -0
  914. package/dist/remote/index.js.map +1 -0
  915. package/dist/remote/node-registry.d.ts +49 -0
  916. package/dist/remote/node-registry.d.ts.map +1 -0
  917. package/dist/remote/node-registry.js +168 -0
  918. package/dist/remote/node-registry.js.map +1 -0
  919. package/dist/remote/remote-auth-verifier.d.ts +28 -0
  920. package/dist/remote/remote-auth-verifier.d.ts.map +1 -0
  921. package/dist/remote/remote-auth-verifier.js +56 -0
  922. package/dist/remote/remote-auth-verifier.js.map +1 -0
  923. package/dist/remote/remote-dispatch-manager.d.ts +82 -0
  924. package/dist/remote/remote-dispatch-manager.d.ts.map +1 -0
  925. package/dist/remote/remote-dispatch-manager.js +257 -0
  926. package/dist/remote/remote-dispatch-manager.js.map +1 -0
  927. package/dist/remote/remote-node-client.d.ts +44 -0
  928. package/dist/remote/remote-node-client.d.ts.map +1 -0
  929. package/dist/remote/remote-node-client.js +124 -0
  930. package/dist/remote/remote-node-client.js.map +1 -0
  931. package/dist/remote/remote-recovery-reconciler.d.ts +33 -0
  932. package/dist/remote/remote-recovery-reconciler.d.ts.map +1 -0
  933. package/dist/remote/remote-recovery-reconciler.js +72 -0
  934. package/dist/remote/remote-recovery-reconciler.js.map +1 -0
  935. package/dist/resume/index.d.ts +5 -0
  936. package/dist/resume/index.d.ts.map +1 -0
  937. package/dist/resume/index.js +5 -0
  938. package/dist/resume/index.js.map +1 -0
  939. package/dist/resume/pending-approval-restorer.d.ts +12 -0
  940. package/dist/resume/pending-approval-restorer.d.ts.map +1 -0
  941. package/dist/resume/pending-approval-restorer.js +58 -0
  942. package/dist/resume/pending-approval-restorer.js.map +1 -0
  943. package/dist/resume/resume-contract.d.ts +556 -0
  944. package/dist/resume/resume-contract.d.ts.map +1 -0
  945. package/dist/resume/resume-contract.js +113 -0
  946. package/dist/resume/resume-contract.js.map +1 -0
  947. package/dist/resume/session-resume-engine.d.ts +42 -0
  948. package/dist/resume/session-resume-engine.d.ts.map +1 -0
  949. package/dist/resume/session-resume-engine.js +204 -0
  950. package/dist/resume/session-resume-engine.js.map +1 -0
  951. package/dist/resume/task-dag-restorer.d.ts +14 -0
  952. package/dist/resume/task-dag-restorer.d.ts.map +1 -0
  953. package/dist/resume/task-dag-restorer.js +130 -0
  954. package/dist/resume/task-dag-restorer.js.map +1 -0
  955. package/dist/sdk/anantham-client.d.ts +59 -0
  956. package/dist/sdk/anantham-client.d.ts.map +1 -0
  957. package/dist/sdk/anantham-client.js +136 -0
  958. package/dist/sdk/anantham-client.js.map +1 -0
  959. package/dist/sdk/index.d.ts +7 -0
  960. package/dist/sdk/index.d.ts.map +1 -0
  961. package/dist/sdk/index.js +7 -0
  962. package/dist/sdk/index.js.map +1 -0
  963. package/dist/sdk/sdk-errors.d.ts +18 -0
  964. package/dist/sdk/sdk-errors.d.ts.map +1 -0
  965. package/dist/sdk/sdk-errors.js +19 -0
  966. package/dist/sdk/sdk-errors.js.map +1 -0
  967. package/dist/side-effects/file-divergence-detector.d.ts +11 -0
  968. package/dist/side-effects/file-divergence-detector.d.ts.map +1 -0
  969. package/dist/side-effects/file-divergence-detector.js +85 -0
  970. package/dist/side-effects/file-divergence-detector.js.map +1 -0
  971. package/dist/side-effects/index.d.ts +11 -0
  972. package/dist/side-effects/index.d.ts.map +1 -0
  973. package/dist/side-effects/index.js +11 -0
  974. package/dist/side-effects/index.js.map +1 -0
  975. package/dist/side-effects/retry-budget-manager.d.ts +19 -0
  976. package/dist/side-effects/retry-budget-manager.d.ts.map +1 -0
  977. package/dist/side-effects/retry-budget-manager.js +51 -0
  978. package/dist/side-effects/retry-budget-manager.js.map +1 -0
  979. package/dist/side-effects/retry-decision-engine.d.ts +23 -0
  980. package/dist/side-effects/retry-decision-engine.d.ts.map +1 -0
  981. package/dist/side-effects/retry-decision-engine.js +84 -0
  982. package/dist/side-effects/retry-decision-engine.js.map +1 -0
  983. package/dist/side-effects/side-effect-classifier.d.ts +15 -0
  984. package/dist/side-effects/side-effect-classifier.d.ts.map +1 -0
  985. package/dist/side-effects/side-effect-classifier.js +71 -0
  986. package/dist/side-effects/side-effect-classifier.js.map +1 -0
  987. package/dist/side-effects/side-effect-journal.d.ts +35 -0
  988. package/dist/side-effects/side-effect-journal.d.ts.map +1 -0
  989. package/dist/side-effects/side-effect-journal.js +86 -0
  990. package/dist/side-effects/side-effect-journal.js.map +1 -0
  991. package/dist/side-effects/worktree-divergence-detector.d.ts +10 -0
  992. package/dist/side-effects/worktree-divergence-detector.d.ts.map +1 -0
  993. package/dist/side-effects/worktree-divergence-detector.js +63 -0
  994. package/dist/side-effects/worktree-divergence-detector.js.map +1 -0
  995. package/dist/skills/index.d.ts +16 -0
  996. package/dist/skills/index.d.ts.map +1 -0
  997. package/dist/skills/index.js +16 -0
  998. package/dist/skills/index.js.map +1 -0
  999. package/dist/skills/skill-compatibility.d.ts +21 -0
  1000. package/dist/skills/skill-compatibility.d.ts.map +1 -0
  1001. package/dist/skills/skill-compatibility.js +41 -0
  1002. package/dist/skills/skill-compatibility.js.map +1 -0
  1003. package/dist/skills/skill-dependency.d.ts +29 -0
  1004. package/dist/skills/skill-dependency.d.ts.map +1 -0
  1005. package/dist/skills/skill-dependency.js +88 -0
  1006. package/dist/skills/skill-dependency.js.map +1 -0
  1007. package/dist/skills/skill-loader.d.ts +50 -0
  1008. package/dist/skills/skill-loader.d.ts.map +1 -0
  1009. package/dist/skills/skill-loader.js +109 -0
  1010. package/dist/skills/skill-loader.js.map +1 -0
  1011. package/dist/skills/skill-manager.d.ts +79 -0
  1012. package/dist/skills/skill-manager.d.ts.map +1 -0
  1013. package/dist/skills/skill-manager.js +198 -0
  1014. package/dist/skills/skill-manager.js.map +1 -0
  1015. package/dist/skills/skill-matcher.d.ts +21 -0
  1016. package/dist/skills/skill-matcher.d.ts.map +1 -0
  1017. package/dist/skills/skill-matcher.js +57 -0
  1018. package/dist/skills/skill-matcher.js.map +1 -0
  1019. package/dist/skills/skill-parser.d.ts +15 -0
  1020. package/dist/skills/skill-parser.d.ts.map +1 -0
  1021. package/dist/skills/skill-parser.js +124 -0
  1022. package/dist/skills/skill-parser.js.map +1 -0
  1023. package/dist/skills/skill-registry.d.ts +26 -0
  1024. package/dist/skills/skill-registry.d.ts.map +1 -0
  1025. package/dist/skills/skill-registry.js +65 -0
  1026. package/dist/skills/skill-registry.js.map +1 -0
  1027. package/dist/skills/skill-security.d.ts +21 -0
  1028. package/dist/skills/skill-security.d.ts.map +1 -0
  1029. package/dist/skills/skill-security.js +41 -0
  1030. package/dist/skills/skill-security.js.map +1 -0
  1031. package/dist/skills/skill-test-runner.d.ts +18 -0
  1032. package/dist/skills/skill-test-runner.d.ts.map +1 -0
  1033. package/dist/skills/skill-test-runner.js +80 -0
  1034. package/dist/skills/skill-test-runner.js.map +1 -0
  1035. package/dist/tasks/index.d.ts +4 -0
  1036. package/dist/tasks/index.d.ts.map +1 -0
  1037. package/dist/tasks/index.js +4 -0
  1038. package/dist/tasks/index.js.map +1 -0
  1039. package/dist/tasks/stalled-agent-recovery.d.ts +48 -0
  1040. package/dist/tasks/stalled-agent-recovery.d.ts.map +1 -0
  1041. package/dist/tasks/stalled-agent-recovery.js +168 -0
  1042. package/dist/tasks/stalled-agent-recovery.js.map +1 -0
  1043. package/dist/tasks/task-board.d.ts +52 -0
  1044. package/dist/tasks/task-board.d.ts.map +1 -0
  1045. package/dist/tasks/task-board.js +158 -0
  1046. package/dist/tasks/task-board.js.map +1 -0
  1047. package/dist/tasks/task-claim-manager.d.ts +77 -0
  1048. package/dist/tasks/task-claim-manager.d.ts.map +1 -0
  1049. package/dist/tasks/task-claim-manager.js +500 -0
  1050. package/dist/tasks/task-claim-manager.js.map +1 -0
  1051. package/dist/teams/agent-handoff-manager.d.ts +65 -0
  1052. package/dist/teams/agent-handoff-manager.d.ts.map +1 -0
  1053. package/dist/teams/agent-handoff-manager.js +273 -0
  1054. package/dist/teams/agent-handoff-manager.js.map +1 -0
  1055. package/dist/teams/index.d.ts +5 -0
  1056. package/dist/teams/index.d.ts.map +1 -0
  1057. package/dist/teams/index.js +5 -0
  1058. package/dist/teams/index.js.map +1 -0
  1059. package/dist/teams/peer-messenger.d.ts +37 -0
  1060. package/dist/teams/peer-messenger.d.ts.map +1 -0
  1061. package/dist/teams/peer-messenger.js +142 -0
  1062. package/dist/teams/peer-messenger.js.map +1 -0
  1063. package/dist/teams/team-manager.d.ts +60 -0
  1064. package/dist/teams/team-manager.d.ts.map +1 -0
  1065. package/dist/teams/team-manager.js +180 -0
  1066. package/dist/teams/team-manager.js.map +1 -0
  1067. package/dist/teams/team-topology-evaluator.d.ts +16 -0
  1068. package/dist/teams/team-topology-evaluator.d.ts.map +1 -0
  1069. package/dist/teams/team-topology-evaluator.js +100 -0
  1070. package/dist/teams/team-topology-evaluator.js.map +1 -0
  1071. package/dist/tools/idempotency-store.d.ts +13 -0
  1072. package/dist/tools/idempotency-store.d.ts.map +1 -0
  1073. package/dist/tools/idempotency-store.js +32 -0
  1074. package/dist/tools/idempotency-store.js.map +1 -0
  1075. package/dist/tools/index.d.ts +9 -0
  1076. package/dist/tools/index.d.ts.map +1 -0
  1077. package/dist/tools/index.js +9 -0
  1078. package/dist/tools/index.js.map +1 -0
  1079. package/dist/tools/native/artifact-tools.d.ts +7 -0
  1080. package/dist/tools/native/artifact-tools.d.ts.map +1 -0
  1081. package/dist/tools/native/artifact-tools.js +88 -0
  1082. package/dist/tools/native/artifact-tools.js.map +1 -0
  1083. package/dist/tools/native/filesystem-tools.d.ts +7 -0
  1084. package/dist/tools/native/filesystem-tools.d.ts.map +1 -0
  1085. package/dist/tools/native/filesystem-tools.js +141 -0
  1086. package/dist/tools/native/filesystem-tools.js.map +1 -0
  1087. package/dist/tools/native/git-tools.d.ts +6 -0
  1088. package/dist/tools/native/git-tools.d.ts.map +1 -0
  1089. package/dist/tools/native/git-tools.js +153 -0
  1090. package/dist/tools/native/git-tools.js.map +1 -0
  1091. package/dist/tools/native/index.d.ts +14 -0
  1092. package/dist/tools/native/index.d.ts.map +1 -0
  1093. package/dist/tools/native/index.js +14 -0
  1094. package/dist/tools/native/index.js.map +1 -0
  1095. package/dist/tools/native/memory-tools.d.ts +7 -0
  1096. package/dist/tools/native/memory-tools.d.ts.map +1 -0
  1097. package/dist/tools/native/memory-tools.js +92 -0
  1098. package/dist/tools/native/memory-tools.js.map +1 -0
  1099. package/dist/tools/native/network-tools.d.ts +8 -0
  1100. package/dist/tools/native/network-tools.d.ts.map +1 -0
  1101. package/dist/tools/native/network-tools.js +83 -0
  1102. package/dist/tools/native/network-tools.js.map +1 -0
  1103. package/dist/tools/native/path-utils.d.ts +6 -0
  1104. package/dist/tools/native/path-utils.d.ts.map +1 -0
  1105. package/dist/tools/native/path-utils.js +26 -0
  1106. package/dist/tools/native/path-utils.js.map +1 -0
  1107. package/dist/tools/native/process-tools.d.ts +10 -0
  1108. package/dist/tools/native/process-tools.d.ts.map +1 -0
  1109. package/dist/tools/native/process-tools.js +45 -0
  1110. package/dist/tools/native/process-tools.js.map +1 -0
  1111. package/dist/tools/native/register-native-tools.d.ts +12 -0
  1112. package/dist/tools/native/register-native-tools.d.ts.map +1 -0
  1113. package/dist/tools/native/register-native-tools.js +24 -0
  1114. package/dist/tools/native/register-native-tools.js.map +1 -0
  1115. package/dist/tools/native/search-tools.d.ts +7 -0
  1116. package/dist/tools/native/search-tools.d.ts.map +1 -0
  1117. package/dist/tools/native/search-tools.js +125 -0
  1118. package/dist/tools/native/search-tools.js.map +1 -0
  1119. package/dist/tools/tool-gateway.d.ts +48 -0
  1120. package/dist/tools/tool-gateway.d.ts.map +1 -0
  1121. package/dist/tools/tool-gateway.js +438 -0
  1122. package/dist/tools/tool-gateway.js.map +1 -0
  1123. package/dist/tools/tool-registry.d.ts +38 -0
  1124. package/dist/tools/tool-registry.d.ts.map +1 -0
  1125. package/dist/tools/tool-registry.js +37 -0
  1126. package/dist/tools/tool-registry.js.map +1 -0
  1127. package/dist/tui/index.d.ts +11 -0
  1128. package/dist/tui/index.d.ts.map +1 -0
  1129. package/dist/tui/index.js +11 -0
  1130. package/dist/tui/index.js.map +1 -0
  1131. package/dist/tui/terminal-layout.d.ts +81 -0
  1132. package/dist/tui/terminal-layout.d.ts.map +1 -0
  1133. package/dist/tui/terminal-layout.js +127 -0
  1134. package/dist/tui/terminal-layout.js.map +1 -0
  1135. package/dist/tui/tui-application.d.ts +84 -0
  1136. package/dist/tui/tui-application.d.ts.map +1 -0
  1137. package/dist/tui/tui-application.js +205 -0
  1138. package/dist/tui/tui-application.js.map +1 -0
  1139. package/dist/tui/tui-controller.d.ts +59 -0
  1140. package/dist/tui/tui-controller.d.ts.map +1 -0
  1141. package/dist/tui/tui-controller.js +190 -0
  1142. package/dist/tui/tui-controller.js.map +1 -0
  1143. package/dist/tui/tui-renderer.d.ts +37 -0
  1144. package/dist/tui/tui-renderer.d.ts.map +1 -0
  1145. package/dist/tui/tui-renderer.js +290 -0
  1146. package/dist/tui/tui-renderer.js.map +1 -0
  1147. package/dist/tui/tui-sanitizer.d.ts +22 -0
  1148. package/dist/tui/tui-sanitizer.d.ts.map +1 -0
  1149. package/dist/tui/tui-sanitizer.js +48 -0
  1150. package/dist/tui/tui-sanitizer.js.map +1 -0
  1151. package/dist/tui/tui-state-adapter.d.ts +218 -0
  1152. package/dist/tui/tui-state-adapter.d.ts.map +1 -0
  1153. package/dist/tui/tui-state-adapter.js +163 -0
  1154. package/dist/tui/tui-state-adapter.js.map +1 -0
  1155. package/dist/workflow/condition-evaluator.d.ts +29 -0
  1156. package/dist/workflow/condition-evaluator.d.ts.map +1 -0
  1157. package/dist/workflow/condition-evaluator.js +207 -0
  1158. package/dist/workflow/condition-evaluator.js.map +1 -0
  1159. package/dist/workflow/dag-engine.d.ts +31 -0
  1160. package/dist/workflow/dag-engine.d.ts.map +1 -0
  1161. package/dist/workflow/dag-engine.js +156 -0
  1162. package/dist/workflow/dag-engine.js.map +1 -0
  1163. package/dist/workflow/index.d.ts +15 -0
  1164. package/dist/workflow/index.d.ts.map +1 -0
  1165. package/dist/workflow/index.js +15 -0
  1166. package/dist/workflow/index.js.map +1 -0
  1167. package/dist/workflow/workflow-budget-tracker.d.ts +41 -0
  1168. package/dist/workflow/workflow-budget-tracker.d.ts.map +1 -0
  1169. package/dist/workflow/workflow-budget-tracker.js +83 -0
  1170. package/dist/workflow/workflow-budget-tracker.js.map +1 -0
  1171. package/dist/workflow/workflow-dsl.d.ts +74 -0
  1172. package/dist/workflow/workflow-dsl.d.ts.map +1 -0
  1173. package/dist/workflow/workflow-dsl.js +103 -0
  1174. package/dist/workflow/workflow-dsl.js.map +1 -0
  1175. package/dist/workflow/workflow-engine.d.ts +63 -0
  1176. package/dist/workflow/workflow-engine.d.ts.map +1 -0
  1177. package/dist/workflow/workflow-engine.js +241 -0
  1178. package/dist/workflow/workflow-engine.js.map +1 -0
  1179. package/dist/workflow/workflow-executor.d.ts +54 -0
  1180. package/dist/workflow/workflow-executor.d.ts.map +1 -0
  1181. package/dist/workflow/workflow-executor.js +394 -0
  1182. package/dist/workflow/workflow-executor.js.map +1 -0
  1183. package/dist/workflow/workflow-recovery-reconciler.d.ts +29 -0
  1184. package/dist/workflow/workflow-recovery-reconciler.d.ts.map +1 -0
  1185. package/dist/workflow/workflow-recovery-reconciler.js +85 -0
  1186. package/dist/workflow/workflow-recovery-reconciler.js.map +1 -0
  1187. package/dist/workflow/workflow-registry.d.ts +67 -0
  1188. package/dist/workflow/workflow-registry.d.ts.map +1 -0
  1189. package/dist/workflow/workflow-registry.js +157 -0
  1190. package/dist/workflow/workflow-registry.js.map +1 -0
  1191. package/dist/workflow/workflow-retry-handler.d.ts +22 -0
  1192. package/dist/workflow/workflow-retry-handler.d.ts.map +1 -0
  1193. package/dist/workflow/workflow-retry-handler.js +78 -0
  1194. package/dist/workflow/workflow-retry-handler.js.map +1 -0
  1195. package/dist/workflow/workflow-validator.d.ts +22 -0
  1196. package/dist/workflow/workflow-validator.d.ts.map +1 -0
  1197. package/dist/workflow/workflow-validator.js +110 -0
  1198. package/dist/workflow/workflow-validator.js.map +1 -0
  1199. package/package.json +58 -0
@@ -0,0 +1,2133 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Authoritative Workflow Scopes.
4
+ * PRD Part 2 Section 111.
5
+ * Precedence: project > profile > global > built-in.
6
+ */
7
+ export declare const WorkflowScopeSchema: z.ZodEnum<["built-in", "global", "profile", "project"]>;
8
+ export type WorkflowScope = z.infer<typeof WorkflowScopeSchema>;
9
+ /**
10
+ * Workflow status lifecycle.
11
+ */
12
+ export declare const WorkflowStatusSchema: z.ZodEnum<["DRAFT", "REGISTERED", "ACTIVE", "DEPRECATED", "DISABLED"]>;
13
+ export type WorkflowStatus = z.infer<typeof WorkflowStatusSchema>;
14
+ /**
15
+ * Workflow run execution state.
16
+ * PRD Part 2 Section 113.
17
+ */
18
+ export declare const WorkflowRunStatusSchema: z.ZodEnum<["QUEUED", "RUNNING", "PAUSED", "WAITING_APPROVAL", "COMPLETED", "FAILED", "CANCELLED"]>;
19
+ export type WorkflowRunStatus = z.infer<typeof WorkflowRunStatusSchema>;
20
+ /**
21
+ * Workflow Condition evaluation schema.
22
+ */
23
+ export declare const WorkflowConditionSchema: z.ZodObject<{
24
+ type: z.ZodEnum<["expression", "artifact_exists", "task_status", "custom"]>;
25
+ expression: z.ZodOptional<z.ZodString>;
26
+ artifactId: z.ZodOptional<z.ZodString>;
27
+ taskId: z.ZodOptional<z.ZodString>;
28
+ expectedStatus: z.ZodOptional<z.ZodString>;
29
+ ifTrue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30
+ ifFalse: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
33
+ taskId?: string | undefined;
34
+ expression?: string | undefined;
35
+ artifactId?: string | undefined;
36
+ expectedStatus?: string | undefined;
37
+ ifTrue?: string[] | undefined;
38
+ ifFalse?: string[] | undefined;
39
+ }, {
40
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
41
+ taskId?: string | undefined;
42
+ expression?: string | undefined;
43
+ artifactId?: string | undefined;
44
+ expectedStatus?: string | undefined;
45
+ ifTrue?: string[] | undefined;
46
+ ifFalse?: string[] | undefined;
47
+ }>;
48
+ export type WorkflowCondition = z.infer<typeof WorkflowConditionSchema>;
49
+ /**
50
+ * Single Task Node in a Workflow DAG.
51
+ * PRD Part 2 Section 109 & 110.
52
+ */
53
+ export declare const WorkflowTaskNodeSchema: z.ZodObject<{
54
+ kind: z.ZodDefault<z.ZodLiteral<"task">>;
55
+ id: z.ZodString;
56
+ agentId: z.ZodString;
57
+ title: z.ZodOptional<z.ZodString>;
58
+ description: z.ZodOptional<z.ZodString>;
59
+ modelProfile: z.ZodOptional<z.ZodString>;
60
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
61
+ condition: z.ZodOptional<z.ZodObject<{
62
+ type: z.ZodEnum<["expression", "artifact_exists", "task_status", "custom"]>;
63
+ expression: z.ZodOptional<z.ZodString>;
64
+ artifactId: z.ZodOptional<z.ZodString>;
65
+ taskId: z.ZodOptional<z.ZodString>;
66
+ expectedStatus: z.ZodOptional<z.ZodString>;
67
+ ifTrue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
68
+ ifFalse: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
71
+ taskId?: string | undefined;
72
+ expression?: string | undefined;
73
+ artifactId?: string | undefined;
74
+ expectedStatus?: string | undefined;
75
+ ifTrue?: string[] | undefined;
76
+ ifFalse?: string[] | undefined;
77
+ }, {
78
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
79
+ taskId?: string | undefined;
80
+ expression?: string | undefined;
81
+ artifactId?: string | undefined;
82
+ expectedStatus?: string | undefined;
83
+ ifTrue?: string[] | undefined;
84
+ ifFalse?: string[] | undefined;
85
+ }>>;
86
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
87
+ maxRetries: z.ZodDefault<z.ZodNumber>;
88
+ budgetTokens: z.ZodOptional<z.ZodNumber>;
89
+ inputs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
90
+ outputs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
91
+ requiredCapabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
92
+ targetFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
93
+ readOnlyFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ id: string;
96
+ kind: "task";
97
+ agentId: string;
98
+ inputs: Record<string, unknown>;
99
+ outputs: string[];
100
+ requiredCapabilities: string[];
101
+ maxRetries: number;
102
+ dependsOn: string[];
103
+ targetFiles: string[];
104
+ readOnlyFiles: string[];
105
+ modelProfile?: string | undefined;
106
+ description?: string | undefined;
107
+ timeoutMs?: number | undefined;
108
+ title?: string | undefined;
109
+ condition?: {
110
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
111
+ taskId?: string | undefined;
112
+ expression?: string | undefined;
113
+ artifactId?: string | undefined;
114
+ expectedStatus?: string | undefined;
115
+ ifTrue?: string[] | undefined;
116
+ ifFalse?: string[] | undefined;
117
+ } | undefined;
118
+ budgetTokens?: number | undefined;
119
+ }, {
120
+ id: string;
121
+ agentId: string;
122
+ kind?: "task" | undefined;
123
+ modelProfile?: string | undefined;
124
+ description?: string | undefined;
125
+ inputs?: Record<string, unknown> | undefined;
126
+ outputs?: string[] | undefined;
127
+ requiredCapabilities?: string[] | undefined;
128
+ timeoutMs?: number | undefined;
129
+ title?: string | undefined;
130
+ maxRetries?: number | undefined;
131
+ dependsOn?: string[] | undefined;
132
+ condition?: {
133
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
134
+ taskId?: string | undefined;
135
+ expression?: string | undefined;
136
+ artifactId?: string | undefined;
137
+ expectedStatus?: string | undefined;
138
+ ifTrue?: string[] | undefined;
139
+ ifFalse?: string[] | undefined;
140
+ } | undefined;
141
+ budgetTokens?: number | undefined;
142
+ targetFiles?: string[] | undefined;
143
+ readOnlyFiles?: string[] | undefined;
144
+ }>;
145
+ export type WorkflowTaskNode = z.infer<typeof WorkflowTaskNodeSchema>;
146
+ /**
147
+ * Parallel Node grouping multiple parallel tasks.
148
+ * PRD Part 2 Section 110.
149
+ */
150
+ export declare const WorkflowParallelNodeSchema: z.ZodObject<{
151
+ kind: z.ZodDefault<z.ZodLiteral<"parallel">>;
152
+ id: z.ZodString;
153
+ tasks: z.ZodArray<z.ZodObject<{
154
+ kind: z.ZodDefault<z.ZodLiteral<"task">>;
155
+ id: z.ZodString;
156
+ agentId: z.ZodString;
157
+ title: z.ZodOptional<z.ZodString>;
158
+ description: z.ZodOptional<z.ZodString>;
159
+ modelProfile: z.ZodOptional<z.ZodString>;
160
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
161
+ condition: z.ZodOptional<z.ZodObject<{
162
+ type: z.ZodEnum<["expression", "artifact_exists", "task_status", "custom"]>;
163
+ expression: z.ZodOptional<z.ZodString>;
164
+ artifactId: z.ZodOptional<z.ZodString>;
165
+ taskId: z.ZodOptional<z.ZodString>;
166
+ expectedStatus: z.ZodOptional<z.ZodString>;
167
+ ifTrue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
168
+ ifFalse: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
171
+ taskId?: string | undefined;
172
+ expression?: string | undefined;
173
+ artifactId?: string | undefined;
174
+ expectedStatus?: string | undefined;
175
+ ifTrue?: string[] | undefined;
176
+ ifFalse?: string[] | undefined;
177
+ }, {
178
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
179
+ taskId?: string | undefined;
180
+ expression?: string | undefined;
181
+ artifactId?: string | undefined;
182
+ expectedStatus?: string | undefined;
183
+ ifTrue?: string[] | undefined;
184
+ ifFalse?: string[] | undefined;
185
+ }>>;
186
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
187
+ maxRetries: z.ZodDefault<z.ZodNumber>;
188
+ budgetTokens: z.ZodOptional<z.ZodNumber>;
189
+ inputs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
190
+ outputs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
191
+ requiredCapabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
192
+ targetFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
193
+ readOnlyFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ id: string;
196
+ kind: "task";
197
+ agentId: string;
198
+ inputs: Record<string, unknown>;
199
+ outputs: string[];
200
+ requiredCapabilities: string[];
201
+ maxRetries: number;
202
+ dependsOn: string[];
203
+ targetFiles: string[];
204
+ readOnlyFiles: string[];
205
+ modelProfile?: string | undefined;
206
+ description?: string | undefined;
207
+ timeoutMs?: number | undefined;
208
+ title?: string | undefined;
209
+ condition?: {
210
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
211
+ taskId?: string | undefined;
212
+ expression?: string | undefined;
213
+ artifactId?: string | undefined;
214
+ expectedStatus?: string | undefined;
215
+ ifTrue?: string[] | undefined;
216
+ ifFalse?: string[] | undefined;
217
+ } | undefined;
218
+ budgetTokens?: number | undefined;
219
+ }, {
220
+ id: string;
221
+ agentId: string;
222
+ kind?: "task" | undefined;
223
+ modelProfile?: string | undefined;
224
+ description?: string | undefined;
225
+ inputs?: Record<string, unknown> | undefined;
226
+ outputs?: string[] | undefined;
227
+ requiredCapabilities?: string[] | undefined;
228
+ timeoutMs?: number | undefined;
229
+ title?: string | undefined;
230
+ maxRetries?: number | undefined;
231
+ dependsOn?: string[] | undefined;
232
+ condition?: {
233
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
234
+ taskId?: string | undefined;
235
+ expression?: string | undefined;
236
+ artifactId?: string | undefined;
237
+ expectedStatus?: string | undefined;
238
+ ifTrue?: string[] | undefined;
239
+ ifFalse?: string[] | undefined;
240
+ } | undefined;
241
+ budgetTokens?: number | undefined;
242
+ targetFiles?: string[] | undefined;
243
+ readOnlyFiles?: string[] | undefined;
244
+ }>, "many">;
245
+ maxConcurrency: z.ZodOptional<z.ZodNumber>;
246
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ id: string;
249
+ kind: "parallel";
250
+ dependsOn: string[];
251
+ tasks: {
252
+ id: string;
253
+ kind: "task";
254
+ agentId: string;
255
+ inputs: Record<string, unknown>;
256
+ outputs: string[];
257
+ requiredCapabilities: string[];
258
+ maxRetries: number;
259
+ dependsOn: string[];
260
+ targetFiles: string[];
261
+ readOnlyFiles: string[];
262
+ modelProfile?: string | undefined;
263
+ description?: string | undefined;
264
+ timeoutMs?: number | undefined;
265
+ title?: string | undefined;
266
+ condition?: {
267
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
268
+ taskId?: string | undefined;
269
+ expression?: string | undefined;
270
+ artifactId?: string | undefined;
271
+ expectedStatus?: string | undefined;
272
+ ifTrue?: string[] | undefined;
273
+ ifFalse?: string[] | undefined;
274
+ } | undefined;
275
+ budgetTokens?: number | undefined;
276
+ }[];
277
+ maxConcurrency?: number | undefined;
278
+ }, {
279
+ id: string;
280
+ tasks: {
281
+ id: string;
282
+ agentId: string;
283
+ kind?: "task" | undefined;
284
+ modelProfile?: string | undefined;
285
+ description?: string | undefined;
286
+ inputs?: Record<string, unknown> | undefined;
287
+ outputs?: string[] | undefined;
288
+ requiredCapabilities?: string[] | undefined;
289
+ timeoutMs?: number | undefined;
290
+ title?: string | undefined;
291
+ maxRetries?: number | undefined;
292
+ dependsOn?: string[] | undefined;
293
+ condition?: {
294
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
295
+ taskId?: string | undefined;
296
+ expression?: string | undefined;
297
+ artifactId?: string | undefined;
298
+ expectedStatus?: string | undefined;
299
+ ifTrue?: string[] | undefined;
300
+ ifFalse?: string[] | undefined;
301
+ } | undefined;
302
+ budgetTokens?: number | undefined;
303
+ targetFiles?: string[] | undefined;
304
+ readOnlyFiles?: string[] | undefined;
305
+ }[];
306
+ kind?: "parallel" | undefined;
307
+ dependsOn?: string[] | undefined;
308
+ maxConcurrency?: number | undefined;
309
+ }>;
310
+ export type WorkflowParallelNode = z.infer<typeof WorkflowParallelNodeSchema>;
311
+ /**
312
+ * Foreach Node for iterating across collections.
313
+ * PRD Part 2 Section 110.
314
+ */
315
+ export declare const WorkflowForeachNodeSchema: z.ZodObject<{
316
+ kind: z.ZodDefault<z.ZodLiteral<"foreach">>;
317
+ id: z.ZodString;
318
+ collection: z.ZodString;
319
+ iteratorVariable: z.ZodString;
320
+ task: z.ZodObject<{
321
+ kind: z.ZodDefault<z.ZodLiteral<"task">>;
322
+ id: z.ZodString;
323
+ agentId: z.ZodString;
324
+ title: z.ZodOptional<z.ZodString>;
325
+ description: z.ZodOptional<z.ZodString>;
326
+ modelProfile: z.ZodOptional<z.ZodString>;
327
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
328
+ condition: z.ZodOptional<z.ZodObject<{
329
+ type: z.ZodEnum<["expression", "artifact_exists", "task_status", "custom"]>;
330
+ expression: z.ZodOptional<z.ZodString>;
331
+ artifactId: z.ZodOptional<z.ZodString>;
332
+ taskId: z.ZodOptional<z.ZodString>;
333
+ expectedStatus: z.ZodOptional<z.ZodString>;
334
+ ifTrue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
335
+ ifFalse: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
336
+ }, "strip", z.ZodTypeAny, {
337
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
338
+ taskId?: string | undefined;
339
+ expression?: string | undefined;
340
+ artifactId?: string | undefined;
341
+ expectedStatus?: string | undefined;
342
+ ifTrue?: string[] | undefined;
343
+ ifFalse?: string[] | undefined;
344
+ }, {
345
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
346
+ taskId?: string | undefined;
347
+ expression?: string | undefined;
348
+ artifactId?: string | undefined;
349
+ expectedStatus?: string | undefined;
350
+ ifTrue?: string[] | undefined;
351
+ ifFalse?: string[] | undefined;
352
+ }>>;
353
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
354
+ maxRetries: z.ZodDefault<z.ZodNumber>;
355
+ budgetTokens: z.ZodOptional<z.ZodNumber>;
356
+ inputs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
357
+ outputs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
358
+ requiredCapabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
359
+ targetFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
360
+ readOnlyFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
361
+ }, "strip", z.ZodTypeAny, {
362
+ id: string;
363
+ kind: "task";
364
+ agentId: string;
365
+ inputs: Record<string, unknown>;
366
+ outputs: string[];
367
+ requiredCapabilities: string[];
368
+ maxRetries: number;
369
+ dependsOn: string[];
370
+ targetFiles: string[];
371
+ readOnlyFiles: string[];
372
+ modelProfile?: string | undefined;
373
+ description?: string | undefined;
374
+ timeoutMs?: number | undefined;
375
+ title?: string | undefined;
376
+ condition?: {
377
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
378
+ taskId?: string | undefined;
379
+ expression?: string | undefined;
380
+ artifactId?: string | undefined;
381
+ expectedStatus?: string | undefined;
382
+ ifTrue?: string[] | undefined;
383
+ ifFalse?: string[] | undefined;
384
+ } | undefined;
385
+ budgetTokens?: number | undefined;
386
+ }, {
387
+ id: string;
388
+ agentId: string;
389
+ kind?: "task" | undefined;
390
+ modelProfile?: string | undefined;
391
+ description?: string | undefined;
392
+ inputs?: Record<string, unknown> | undefined;
393
+ outputs?: string[] | undefined;
394
+ requiredCapabilities?: string[] | undefined;
395
+ timeoutMs?: number | undefined;
396
+ title?: string | undefined;
397
+ maxRetries?: number | undefined;
398
+ dependsOn?: string[] | undefined;
399
+ condition?: {
400
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
401
+ taskId?: string | undefined;
402
+ expression?: string | undefined;
403
+ artifactId?: string | undefined;
404
+ expectedStatus?: string | undefined;
405
+ ifTrue?: string[] | undefined;
406
+ ifFalse?: string[] | undefined;
407
+ } | undefined;
408
+ budgetTokens?: number | undefined;
409
+ targetFiles?: string[] | undefined;
410
+ readOnlyFiles?: string[] | undefined;
411
+ }>;
412
+ maxConcurrency: z.ZodOptional<z.ZodNumber>;
413
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
414
+ }, "strip", z.ZodTypeAny, {
415
+ id: string;
416
+ kind: "foreach";
417
+ task: {
418
+ id: string;
419
+ kind: "task";
420
+ agentId: string;
421
+ inputs: Record<string, unknown>;
422
+ outputs: string[];
423
+ requiredCapabilities: string[];
424
+ maxRetries: number;
425
+ dependsOn: string[];
426
+ targetFiles: string[];
427
+ readOnlyFiles: string[];
428
+ modelProfile?: string | undefined;
429
+ description?: string | undefined;
430
+ timeoutMs?: number | undefined;
431
+ title?: string | undefined;
432
+ condition?: {
433
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
434
+ taskId?: string | undefined;
435
+ expression?: string | undefined;
436
+ artifactId?: string | undefined;
437
+ expectedStatus?: string | undefined;
438
+ ifTrue?: string[] | undefined;
439
+ ifFalse?: string[] | undefined;
440
+ } | undefined;
441
+ budgetTokens?: number | undefined;
442
+ };
443
+ dependsOn: string[];
444
+ collection: string;
445
+ iteratorVariable: string;
446
+ maxConcurrency?: number | undefined;
447
+ }, {
448
+ id: string;
449
+ task: {
450
+ id: string;
451
+ agentId: string;
452
+ kind?: "task" | undefined;
453
+ modelProfile?: string | undefined;
454
+ description?: string | undefined;
455
+ inputs?: Record<string, unknown> | undefined;
456
+ outputs?: string[] | undefined;
457
+ requiredCapabilities?: string[] | undefined;
458
+ timeoutMs?: number | undefined;
459
+ title?: string | undefined;
460
+ maxRetries?: number | undefined;
461
+ dependsOn?: string[] | undefined;
462
+ condition?: {
463
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
464
+ taskId?: string | undefined;
465
+ expression?: string | undefined;
466
+ artifactId?: string | undefined;
467
+ expectedStatus?: string | undefined;
468
+ ifTrue?: string[] | undefined;
469
+ ifFalse?: string[] | undefined;
470
+ } | undefined;
471
+ budgetTokens?: number | undefined;
472
+ targetFiles?: string[] | undefined;
473
+ readOnlyFiles?: string[] | undefined;
474
+ };
475
+ collection: string;
476
+ iteratorVariable: string;
477
+ kind?: "foreach" | undefined;
478
+ dependsOn?: string[] | undefined;
479
+ maxConcurrency?: number | undefined;
480
+ }>;
481
+ export type WorkflowForeachNode = z.infer<typeof WorkflowForeachNodeSchema>;
482
+ /**
483
+ * Automated Verification Node.
484
+ * PRD Part 2 Section 109 & 110.
485
+ */
486
+ export declare const WorkflowVerifyNodeSchema: z.ZodObject<{
487
+ kind: z.ZodDefault<z.ZodLiteral<"verify">>;
488
+ id: z.ZodString;
489
+ assertions: z.ZodArray<z.ZodString, "many">;
490
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
491
+ }, "strip", z.ZodTypeAny, {
492
+ id: string;
493
+ kind: "verify";
494
+ assertions: string[];
495
+ dependsOn: string[];
496
+ }, {
497
+ id: string;
498
+ assertions: string[];
499
+ kind?: "verify" | undefined;
500
+ dependsOn?: string[] | undefined;
501
+ }>;
502
+ export type WorkflowVerifyNode = z.infer<typeof WorkflowVerifyNodeSchema>;
503
+ /**
504
+ * Human Approval Gate Node.
505
+ * PRD Part 2 Section 110.
506
+ */
507
+ export declare const WorkflowApproveNodeSchema: z.ZodObject<{
508
+ kind: z.ZodDefault<z.ZodLiteral<"approve">>;
509
+ id: z.ZodString;
510
+ message: z.ZodString;
511
+ requiredRole: z.ZodOptional<z.ZodString>;
512
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
513
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
514
+ }, "strip", z.ZodTypeAny, {
515
+ message: string;
516
+ id: string;
517
+ kind: "approve";
518
+ dependsOn: string[];
519
+ timeoutMs?: number | undefined;
520
+ requiredRole?: string | undefined;
521
+ }, {
522
+ message: string;
523
+ id: string;
524
+ kind?: "approve" | undefined;
525
+ timeoutMs?: number | undefined;
526
+ dependsOn?: string[] | undefined;
527
+ requiredRole?: string | undefined;
528
+ }>;
529
+ export type WorkflowApproveNode = z.infer<typeof WorkflowApproveNodeSchema>;
530
+ /**
531
+ * Union of all valid Workflow Nodes.
532
+ */
533
+ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
534
+ kind: z.ZodDefault<z.ZodLiteral<"task">>;
535
+ id: z.ZodString;
536
+ agentId: z.ZodString;
537
+ title: z.ZodOptional<z.ZodString>;
538
+ description: z.ZodOptional<z.ZodString>;
539
+ modelProfile: z.ZodOptional<z.ZodString>;
540
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
541
+ condition: z.ZodOptional<z.ZodObject<{
542
+ type: z.ZodEnum<["expression", "artifact_exists", "task_status", "custom"]>;
543
+ expression: z.ZodOptional<z.ZodString>;
544
+ artifactId: z.ZodOptional<z.ZodString>;
545
+ taskId: z.ZodOptional<z.ZodString>;
546
+ expectedStatus: z.ZodOptional<z.ZodString>;
547
+ ifTrue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
548
+ ifFalse: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
549
+ }, "strip", z.ZodTypeAny, {
550
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
551
+ taskId?: string | undefined;
552
+ expression?: string | undefined;
553
+ artifactId?: string | undefined;
554
+ expectedStatus?: string | undefined;
555
+ ifTrue?: string[] | undefined;
556
+ ifFalse?: string[] | undefined;
557
+ }, {
558
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
559
+ taskId?: string | undefined;
560
+ expression?: string | undefined;
561
+ artifactId?: string | undefined;
562
+ expectedStatus?: string | undefined;
563
+ ifTrue?: string[] | undefined;
564
+ ifFalse?: string[] | undefined;
565
+ }>>;
566
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
567
+ maxRetries: z.ZodDefault<z.ZodNumber>;
568
+ budgetTokens: z.ZodOptional<z.ZodNumber>;
569
+ inputs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
570
+ outputs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
571
+ requiredCapabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
572
+ targetFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
573
+ readOnlyFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
574
+ }, "strip", z.ZodTypeAny, {
575
+ id: string;
576
+ kind: "task";
577
+ agentId: string;
578
+ inputs: Record<string, unknown>;
579
+ outputs: string[];
580
+ requiredCapabilities: string[];
581
+ maxRetries: number;
582
+ dependsOn: string[];
583
+ targetFiles: string[];
584
+ readOnlyFiles: string[];
585
+ modelProfile?: string | undefined;
586
+ description?: string | undefined;
587
+ timeoutMs?: number | undefined;
588
+ title?: string | undefined;
589
+ condition?: {
590
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
591
+ taskId?: string | undefined;
592
+ expression?: string | undefined;
593
+ artifactId?: string | undefined;
594
+ expectedStatus?: string | undefined;
595
+ ifTrue?: string[] | undefined;
596
+ ifFalse?: string[] | undefined;
597
+ } | undefined;
598
+ budgetTokens?: number | undefined;
599
+ }, {
600
+ id: string;
601
+ agentId: string;
602
+ kind?: "task" | undefined;
603
+ modelProfile?: string | undefined;
604
+ description?: string | undefined;
605
+ inputs?: Record<string, unknown> | undefined;
606
+ outputs?: string[] | undefined;
607
+ requiredCapabilities?: string[] | undefined;
608
+ timeoutMs?: number | undefined;
609
+ title?: string | undefined;
610
+ maxRetries?: number | undefined;
611
+ dependsOn?: string[] | undefined;
612
+ condition?: {
613
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
614
+ taskId?: string | undefined;
615
+ expression?: string | undefined;
616
+ artifactId?: string | undefined;
617
+ expectedStatus?: string | undefined;
618
+ ifTrue?: string[] | undefined;
619
+ ifFalse?: string[] | undefined;
620
+ } | undefined;
621
+ budgetTokens?: number | undefined;
622
+ targetFiles?: string[] | undefined;
623
+ readOnlyFiles?: string[] | undefined;
624
+ }>, z.ZodObject<{
625
+ kind: z.ZodDefault<z.ZodLiteral<"parallel">>;
626
+ id: z.ZodString;
627
+ tasks: z.ZodArray<z.ZodObject<{
628
+ kind: z.ZodDefault<z.ZodLiteral<"task">>;
629
+ id: z.ZodString;
630
+ agentId: z.ZodString;
631
+ title: z.ZodOptional<z.ZodString>;
632
+ description: z.ZodOptional<z.ZodString>;
633
+ modelProfile: z.ZodOptional<z.ZodString>;
634
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
635
+ condition: z.ZodOptional<z.ZodObject<{
636
+ type: z.ZodEnum<["expression", "artifact_exists", "task_status", "custom"]>;
637
+ expression: z.ZodOptional<z.ZodString>;
638
+ artifactId: z.ZodOptional<z.ZodString>;
639
+ taskId: z.ZodOptional<z.ZodString>;
640
+ expectedStatus: z.ZodOptional<z.ZodString>;
641
+ ifTrue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
642
+ ifFalse: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
643
+ }, "strip", z.ZodTypeAny, {
644
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
645
+ taskId?: string | undefined;
646
+ expression?: string | undefined;
647
+ artifactId?: string | undefined;
648
+ expectedStatus?: string | undefined;
649
+ ifTrue?: string[] | undefined;
650
+ ifFalse?: string[] | undefined;
651
+ }, {
652
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
653
+ taskId?: string | undefined;
654
+ expression?: string | undefined;
655
+ artifactId?: string | undefined;
656
+ expectedStatus?: string | undefined;
657
+ ifTrue?: string[] | undefined;
658
+ ifFalse?: string[] | undefined;
659
+ }>>;
660
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
661
+ maxRetries: z.ZodDefault<z.ZodNumber>;
662
+ budgetTokens: z.ZodOptional<z.ZodNumber>;
663
+ inputs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
664
+ outputs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
665
+ requiredCapabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
666
+ targetFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
667
+ readOnlyFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
668
+ }, "strip", z.ZodTypeAny, {
669
+ id: string;
670
+ kind: "task";
671
+ agentId: string;
672
+ inputs: Record<string, unknown>;
673
+ outputs: string[];
674
+ requiredCapabilities: string[];
675
+ maxRetries: number;
676
+ dependsOn: string[];
677
+ targetFiles: string[];
678
+ readOnlyFiles: string[];
679
+ modelProfile?: string | undefined;
680
+ description?: string | undefined;
681
+ timeoutMs?: number | undefined;
682
+ title?: string | undefined;
683
+ condition?: {
684
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
685
+ taskId?: string | undefined;
686
+ expression?: string | undefined;
687
+ artifactId?: string | undefined;
688
+ expectedStatus?: string | undefined;
689
+ ifTrue?: string[] | undefined;
690
+ ifFalse?: string[] | undefined;
691
+ } | undefined;
692
+ budgetTokens?: number | undefined;
693
+ }, {
694
+ id: string;
695
+ agentId: string;
696
+ kind?: "task" | undefined;
697
+ modelProfile?: string | undefined;
698
+ description?: string | undefined;
699
+ inputs?: Record<string, unknown> | undefined;
700
+ outputs?: string[] | undefined;
701
+ requiredCapabilities?: string[] | undefined;
702
+ timeoutMs?: number | undefined;
703
+ title?: string | undefined;
704
+ maxRetries?: number | undefined;
705
+ dependsOn?: string[] | undefined;
706
+ condition?: {
707
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
708
+ taskId?: string | undefined;
709
+ expression?: string | undefined;
710
+ artifactId?: string | undefined;
711
+ expectedStatus?: string | undefined;
712
+ ifTrue?: string[] | undefined;
713
+ ifFalse?: string[] | undefined;
714
+ } | undefined;
715
+ budgetTokens?: number | undefined;
716
+ targetFiles?: string[] | undefined;
717
+ readOnlyFiles?: string[] | undefined;
718
+ }>, "many">;
719
+ maxConcurrency: z.ZodOptional<z.ZodNumber>;
720
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
721
+ }, "strip", z.ZodTypeAny, {
722
+ id: string;
723
+ kind: "parallel";
724
+ dependsOn: string[];
725
+ tasks: {
726
+ id: string;
727
+ kind: "task";
728
+ agentId: string;
729
+ inputs: Record<string, unknown>;
730
+ outputs: string[];
731
+ requiredCapabilities: string[];
732
+ maxRetries: number;
733
+ dependsOn: string[];
734
+ targetFiles: string[];
735
+ readOnlyFiles: string[];
736
+ modelProfile?: string | undefined;
737
+ description?: string | undefined;
738
+ timeoutMs?: number | undefined;
739
+ title?: string | undefined;
740
+ condition?: {
741
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
742
+ taskId?: string | undefined;
743
+ expression?: string | undefined;
744
+ artifactId?: string | undefined;
745
+ expectedStatus?: string | undefined;
746
+ ifTrue?: string[] | undefined;
747
+ ifFalse?: string[] | undefined;
748
+ } | undefined;
749
+ budgetTokens?: number | undefined;
750
+ }[];
751
+ maxConcurrency?: number | undefined;
752
+ }, {
753
+ id: string;
754
+ tasks: {
755
+ id: string;
756
+ agentId: string;
757
+ kind?: "task" | undefined;
758
+ modelProfile?: string | undefined;
759
+ description?: string | undefined;
760
+ inputs?: Record<string, unknown> | undefined;
761
+ outputs?: string[] | undefined;
762
+ requiredCapabilities?: string[] | undefined;
763
+ timeoutMs?: number | undefined;
764
+ title?: string | undefined;
765
+ maxRetries?: number | undefined;
766
+ dependsOn?: string[] | undefined;
767
+ condition?: {
768
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
769
+ taskId?: string | undefined;
770
+ expression?: string | undefined;
771
+ artifactId?: string | undefined;
772
+ expectedStatus?: string | undefined;
773
+ ifTrue?: string[] | undefined;
774
+ ifFalse?: string[] | undefined;
775
+ } | undefined;
776
+ budgetTokens?: number | undefined;
777
+ targetFiles?: string[] | undefined;
778
+ readOnlyFiles?: string[] | undefined;
779
+ }[];
780
+ kind?: "parallel" | undefined;
781
+ dependsOn?: string[] | undefined;
782
+ maxConcurrency?: number | undefined;
783
+ }>, z.ZodObject<{
784
+ kind: z.ZodDefault<z.ZodLiteral<"foreach">>;
785
+ id: z.ZodString;
786
+ collection: z.ZodString;
787
+ iteratorVariable: z.ZodString;
788
+ task: z.ZodObject<{
789
+ kind: z.ZodDefault<z.ZodLiteral<"task">>;
790
+ id: z.ZodString;
791
+ agentId: z.ZodString;
792
+ title: z.ZodOptional<z.ZodString>;
793
+ description: z.ZodOptional<z.ZodString>;
794
+ modelProfile: z.ZodOptional<z.ZodString>;
795
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
796
+ condition: z.ZodOptional<z.ZodObject<{
797
+ type: z.ZodEnum<["expression", "artifact_exists", "task_status", "custom"]>;
798
+ expression: z.ZodOptional<z.ZodString>;
799
+ artifactId: z.ZodOptional<z.ZodString>;
800
+ taskId: z.ZodOptional<z.ZodString>;
801
+ expectedStatus: z.ZodOptional<z.ZodString>;
802
+ ifTrue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
803
+ ifFalse: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
804
+ }, "strip", z.ZodTypeAny, {
805
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
806
+ taskId?: string | undefined;
807
+ expression?: string | undefined;
808
+ artifactId?: string | undefined;
809
+ expectedStatus?: string | undefined;
810
+ ifTrue?: string[] | undefined;
811
+ ifFalse?: string[] | undefined;
812
+ }, {
813
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
814
+ taskId?: string | undefined;
815
+ expression?: string | undefined;
816
+ artifactId?: string | undefined;
817
+ expectedStatus?: string | undefined;
818
+ ifTrue?: string[] | undefined;
819
+ ifFalse?: string[] | undefined;
820
+ }>>;
821
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
822
+ maxRetries: z.ZodDefault<z.ZodNumber>;
823
+ budgetTokens: z.ZodOptional<z.ZodNumber>;
824
+ inputs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
825
+ outputs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
826
+ requiredCapabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
827
+ targetFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
828
+ readOnlyFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
829
+ }, "strip", z.ZodTypeAny, {
830
+ id: string;
831
+ kind: "task";
832
+ agentId: string;
833
+ inputs: Record<string, unknown>;
834
+ outputs: string[];
835
+ requiredCapabilities: string[];
836
+ maxRetries: number;
837
+ dependsOn: string[];
838
+ targetFiles: string[];
839
+ readOnlyFiles: string[];
840
+ modelProfile?: string | undefined;
841
+ description?: string | undefined;
842
+ timeoutMs?: number | undefined;
843
+ title?: string | undefined;
844
+ condition?: {
845
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
846
+ taskId?: string | undefined;
847
+ expression?: string | undefined;
848
+ artifactId?: string | undefined;
849
+ expectedStatus?: string | undefined;
850
+ ifTrue?: string[] | undefined;
851
+ ifFalse?: string[] | undefined;
852
+ } | undefined;
853
+ budgetTokens?: number | undefined;
854
+ }, {
855
+ id: string;
856
+ agentId: string;
857
+ kind?: "task" | undefined;
858
+ modelProfile?: string | undefined;
859
+ description?: string | undefined;
860
+ inputs?: Record<string, unknown> | undefined;
861
+ outputs?: string[] | undefined;
862
+ requiredCapabilities?: string[] | undefined;
863
+ timeoutMs?: number | undefined;
864
+ title?: string | undefined;
865
+ maxRetries?: number | undefined;
866
+ dependsOn?: string[] | undefined;
867
+ condition?: {
868
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
869
+ taskId?: string | undefined;
870
+ expression?: string | undefined;
871
+ artifactId?: string | undefined;
872
+ expectedStatus?: string | undefined;
873
+ ifTrue?: string[] | undefined;
874
+ ifFalse?: string[] | undefined;
875
+ } | undefined;
876
+ budgetTokens?: number | undefined;
877
+ targetFiles?: string[] | undefined;
878
+ readOnlyFiles?: string[] | undefined;
879
+ }>;
880
+ maxConcurrency: z.ZodOptional<z.ZodNumber>;
881
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
882
+ }, "strip", z.ZodTypeAny, {
883
+ id: string;
884
+ kind: "foreach";
885
+ task: {
886
+ id: string;
887
+ kind: "task";
888
+ agentId: string;
889
+ inputs: Record<string, unknown>;
890
+ outputs: string[];
891
+ requiredCapabilities: string[];
892
+ maxRetries: number;
893
+ dependsOn: string[];
894
+ targetFiles: string[];
895
+ readOnlyFiles: string[];
896
+ modelProfile?: string | undefined;
897
+ description?: string | undefined;
898
+ timeoutMs?: number | undefined;
899
+ title?: string | undefined;
900
+ condition?: {
901
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
902
+ taskId?: string | undefined;
903
+ expression?: string | undefined;
904
+ artifactId?: string | undefined;
905
+ expectedStatus?: string | undefined;
906
+ ifTrue?: string[] | undefined;
907
+ ifFalse?: string[] | undefined;
908
+ } | undefined;
909
+ budgetTokens?: number | undefined;
910
+ };
911
+ dependsOn: string[];
912
+ collection: string;
913
+ iteratorVariable: string;
914
+ maxConcurrency?: number | undefined;
915
+ }, {
916
+ id: string;
917
+ task: {
918
+ id: string;
919
+ agentId: string;
920
+ kind?: "task" | undefined;
921
+ modelProfile?: string | undefined;
922
+ description?: string | undefined;
923
+ inputs?: Record<string, unknown> | undefined;
924
+ outputs?: string[] | undefined;
925
+ requiredCapabilities?: string[] | undefined;
926
+ timeoutMs?: number | undefined;
927
+ title?: string | undefined;
928
+ maxRetries?: number | undefined;
929
+ dependsOn?: string[] | undefined;
930
+ condition?: {
931
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
932
+ taskId?: string | undefined;
933
+ expression?: string | undefined;
934
+ artifactId?: string | undefined;
935
+ expectedStatus?: string | undefined;
936
+ ifTrue?: string[] | undefined;
937
+ ifFalse?: string[] | undefined;
938
+ } | undefined;
939
+ budgetTokens?: number | undefined;
940
+ targetFiles?: string[] | undefined;
941
+ readOnlyFiles?: string[] | undefined;
942
+ };
943
+ collection: string;
944
+ iteratorVariable: string;
945
+ kind?: "foreach" | undefined;
946
+ dependsOn?: string[] | undefined;
947
+ maxConcurrency?: number | undefined;
948
+ }>, z.ZodObject<{
949
+ kind: z.ZodDefault<z.ZodLiteral<"verify">>;
950
+ id: z.ZodString;
951
+ assertions: z.ZodArray<z.ZodString, "many">;
952
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
953
+ }, "strip", z.ZodTypeAny, {
954
+ id: string;
955
+ kind: "verify";
956
+ assertions: string[];
957
+ dependsOn: string[];
958
+ }, {
959
+ id: string;
960
+ assertions: string[];
961
+ kind?: "verify" | undefined;
962
+ dependsOn?: string[] | undefined;
963
+ }>, z.ZodObject<{
964
+ kind: z.ZodDefault<z.ZodLiteral<"approve">>;
965
+ id: z.ZodString;
966
+ message: z.ZodString;
967
+ requiredRole: z.ZodOptional<z.ZodString>;
968
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
969
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
970
+ }, "strip", z.ZodTypeAny, {
971
+ message: string;
972
+ id: string;
973
+ kind: "approve";
974
+ dependsOn: string[];
975
+ timeoutMs?: number | undefined;
976
+ requiredRole?: string | undefined;
977
+ }, {
978
+ message: string;
979
+ id: string;
980
+ kind?: "approve" | undefined;
981
+ timeoutMs?: number | undefined;
982
+ dependsOn?: string[] | undefined;
983
+ requiredRole?: string | undefined;
984
+ }>]>;
985
+ export type WorkflowNode = z.infer<typeof WorkflowNodeSchema>;
986
+ /**
987
+ * Workflow Concurrency settings.
988
+ * PRD Part 2 Section 109.
989
+ */
990
+ export declare const WorkflowConcurrencySchema: z.ZodObject<{
991
+ maxAgents: z.ZodDefault<z.ZodNumber>;
992
+ maxParallelTasks: z.ZodDefault<z.ZodNumber>;
993
+ }, "strip", z.ZodTypeAny, {
994
+ maxAgents: number;
995
+ maxParallelTasks: number;
996
+ }, {
997
+ maxAgents?: number | undefined;
998
+ maxParallelTasks?: number | undefined;
999
+ }>;
1000
+ export type WorkflowConcurrency = z.infer<typeof WorkflowConcurrencySchema>;
1001
+ /**
1002
+ * Workflow Resource & Budget constraints.
1003
+ * PRD Part 2 Section 118 & 161.
1004
+ */
1005
+ export declare const WorkflowBudgetSchema: z.ZodObject<{
1006
+ maxTokens: z.ZodOptional<z.ZodNumber>;
1007
+ maxCostUsd: z.ZodOptional<z.ZodNumber>;
1008
+ maxDurationMs: z.ZodOptional<z.ZodNumber>;
1009
+ }, "strip", z.ZodTypeAny, {
1010
+ maxTokens?: number | undefined;
1011
+ maxCostUsd?: number | undefined;
1012
+ maxDurationMs?: number | undefined;
1013
+ }, {
1014
+ maxTokens?: number | undefined;
1015
+ maxCostUsd?: number | undefined;
1016
+ maxDurationMs?: number | undefined;
1017
+ }>;
1018
+ export type WorkflowBudget = z.infer<typeof WorkflowBudgetSchema>;
1019
+ /**
1020
+ * Complete Workflow Definition contract.
1021
+ * PRD Part 2 Section 109 & 112.
1022
+ */
1023
+ export declare const WorkflowDefinitionSchema: z.ZodObject<{
1024
+ id: z.ZodString;
1025
+ projectId: z.ZodOptional<z.ZodString>;
1026
+ name: z.ZodString;
1027
+ version: z.ZodString;
1028
+ scope: z.ZodDefault<z.ZodEnum<["built-in", "global", "profile", "project"]>>;
1029
+ description: z.ZodOptional<z.ZodString>;
1030
+ status: z.ZodDefault<z.ZodEnum<["DRAFT", "REGISTERED", "ACTIVE", "DEPRECATED", "DISABLED"]>>;
1031
+ concurrency: z.ZodDefault<z.ZodObject<{
1032
+ maxAgents: z.ZodDefault<z.ZodNumber>;
1033
+ maxParallelTasks: z.ZodDefault<z.ZodNumber>;
1034
+ }, "strip", z.ZodTypeAny, {
1035
+ maxAgents: number;
1036
+ maxParallelTasks: number;
1037
+ }, {
1038
+ maxAgents?: number | undefined;
1039
+ maxParallelTasks?: number | undefined;
1040
+ }>>;
1041
+ budget: z.ZodOptional<z.ZodObject<{
1042
+ maxTokens: z.ZodOptional<z.ZodNumber>;
1043
+ maxCostUsd: z.ZodOptional<z.ZodNumber>;
1044
+ maxDurationMs: z.ZodOptional<z.ZodNumber>;
1045
+ }, "strip", z.ZodTypeAny, {
1046
+ maxTokens?: number | undefined;
1047
+ maxCostUsd?: number | undefined;
1048
+ maxDurationMs?: number | undefined;
1049
+ }, {
1050
+ maxTokens?: number | undefined;
1051
+ maxCostUsd?: number | undefined;
1052
+ maxDurationMs?: number | undefined;
1053
+ }>>;
1054
+ tasks: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1055
+ kind: z.ZodDefault<z.ZodLiteral<"task">>;
1056
+ id: z.ZodString;
1057
+ agentId: z.ZodString;
1058
+ title: z.ZodOptional<z.ZodString>;
1059
+ description: z.ZodOptional<z.ZodString>;
1060
+ modelProfile: z.ZodOptional<z.ZodString>;
1061
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1062
+ condition: z.ZodOptional<z.ZodObject<{
1063
+ type: z.ZodEnum<["expression", "artifact_exists", "task_status", "custom"]>;
1064
+ expression: z.ZodOptional<z.ZodString>;
1065
+ artifactId: z.ZodOptional<z.ZodString>;
1066
+ taskId: z.ZodOptional<z.ZodString>;
1067
+ expectedStatus: z.ZodOptional<z.ZodString>;
1068
+ ifTrue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1069
+ ifFalse: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1070
+ }, "strip", z.ZodTypeAny, {
1071
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1072
+ taskId?: string | undefined;
1073
+ expression?: string | undefined;
1074
+ artifactId?: string | undefined;
1075
+ expectedStatus?: string | undefined;
1076
+ ifTrue?: string[] | undefined;
1077
+ ifFalse?: string[] | undefined;
1078
+ }, {
1079
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1080
+ taskId?: string | undefined;
1081
+ expression?: string | undefined;
1082
+ artifactId?: string | undefined;
1083
+ expectedStatus?: string | undefined;
1084
+ ifTrue?: string[] | undefined;
1085
+ ifFalse?: string[] | undefined;
1086
+ }>>;
1087
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
1088
+ maxRetries: z.ZodDefault<z.ZodNumber>;
1089
+ budgetTokens: z.ZodOptional<z.ZodNumber>;
1090
+ inputs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1091
+ outputs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1092
+ requiredCapabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1093
+ targetFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1094
+ readOnlyFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1095
+ }, "strip", z.ZodTypeAny, {
1096
+ id: string;
1097
+ kind: "task";
1098
+ agentId: string;
1099
+ inputs: Record<string, unknown>;
1100
+ outputs: string[];
1101
+ requiredCapabilities: string[];
1102
+ maxRetries: number;
1103
+ dependsOn: string[];
1104
+ targetFiles: string[];
1105
+ readOnlyFiles: string[];
1106
+ modelProfile?: string | undefined;
1107
+ description?: string | undefined;
1108
+ timeoutMs?: number | undefined;
1109
+ title?: string | undefined;
1110
+ condition?: {
1111
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1112
+ taskId?: string | undefined;
1113
+ expression?: string | undefined;
1114
+ artifactId?: string | undefined;
1115
+ expectedStatus?: string | undefined;
1116
+ ifTrue?: string[] | undefined;
1117
+ ifFalse?: string[] | undefined;
1118
+ } | undefined;
1119
+ budgetTokens?: number | undefined;
1120
+ }, {
1121
+ id: string;
1122
+ agentId: string;
1123
+ kind?: "task" | undefined;
1124
+ modelProfile?: string | undefined;
1125
+ description?: string | undefined;
1126
+ inputs?: Record<string, unknown> | undefined;
1127
+ outputs?: string[] | undefined;
1128
+ requiredCapabilities?: string[] | undefined;
1129
+ timeoutMs?: number | undefined;
1130
+ title?: string | undefined;
1131
+ maxRetries?: number | undefined;
1132
+ dependsOn?: string[] | undefined;
1133
+ condition?: {
1134
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1135
+ taskId?: string | undefined;
1136
+ expression?: string | undefined;
1137
+ artifactId?: string | undefined;
1138
+ expectedStatus?: string | undefined;
1139
+ ifTrue?: string[] | undefined;
1140
+ ifFalse?: string[] | undefined;
1141
+ } | undefined;
1142
+ budgetTokens?: number | undefined;
1143
+ targetFiles?: string[] | undefined;
1144
+ readOnlyFiles?: string[] | undefined;
1145
+ }>, z.ZodObject<{
1146
+ kind: z.ZodDefault<z.ZodLiteral<"parallel">>;
1147
+ id: z.ZodString;
1148
+ tasks: z.ZodArray<z.ZodObject<{
1149
+ kind: z.ZodDefault<z.ZodLiteral<"task">>;
1150
+ id: z.ZodString;
1151
+ agentId: z.ZodString;
1152
+ title: z.ZodOptional<z.ZodString>;
1153
+ description: z.ZodOptional<z.ZodString>;
1154
+ modelProfile: z.ZodOptional<z.ZodString>;
1155
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1156
+ condition: z.ZodOptional<z.ZodObject<{
1157
+ type: z.ZodEnum<["expression", "artifact_exists", "task_status", "custom"]>;
1158
+ expression: z.ZodOptional<z.ZodString>;
1159
+ artifactId: z.ZodOptional<z.ZodString>;
1160
+ taskId: z.ZodOptional<z.ZodString>;
1161
+ expectedStatus: z.ZodOptional<z.ZodString>;
1162
+ ifTrue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1163
+ ifFalse: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1164
+ }, "strip", z.ZodTypeAny, {
1165
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1166
+ taskId?: string | undefined;
1167
+ expression?: string | undefined;
1168
+ artifactId?: string | undefined;
1169
+ expectedStatus?: string | undefined;
1170
+ ifTrue?: string[] | undefined;
1171
+ ifFalse?: string[] | undefined;
1172
+ }, {
1173
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1174
+ taskId?: string | undefined;
1175
+ expression?: string | undefined;
1176
+ artifactId?: string | undefined;
1177
+ expectedStatus?: string | undefined;
1178
+ ifTrue?: string[] | undefined;
1179
+ ifFalse?: string[] | undefined;
1180
+ }>>;
1181
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
1182
+ maxRetries: z.ZodDefault<z.ZodNumber>;
1183
+ budgetTokens: z.ZodOptional<z.ZodNumber>;
1184
+ inputs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1185
+ outputs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1186
+ requiredCapabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1187
+ targetFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1188
+ readOnlyFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1189
+ }, "strip", z.ZodTypeAny, {
1190
+ id: string;
1191
+ kind: "task";
1192
+ agentId: string;
1193
+ inputs: Record<string, unknown>;
1194
+ outputs: string[];
1195
+ requiredCapabilities: string[];
1196
+ maxRetries: number;
1197
+ dependsOn: string[];
1198
+ targetFiles: string[];
1199
+ readOnlyFiles: string[];
1200
+ modelProfile?: string | undefined;
1201
+ description?: string | undefined;
1202
+ timeoutMs?: number | undefined;
1203
+ title?: string | undefined;
1204
+ condition?: {
1205
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1206
+ taskId?: string | undefined;
1207
+ expression?: string | undefined;
1208
+ artifactId?: string | undefined;
1209
+ expectedStatus?: string | undefined;
1210
+ ifTrue?: string[] | undefined;
1211
+ ifFalse?: string[] | undefined;
1212
+ } | undefined;
1213
+ budgetTokens?: number | undefined;
1214
+ }, {
1215
+ id: string;
1216
+ agentId: string;
1217
+ kind?: "task" | undefined;
1218
+ modelProfile?: string | undefined;
1219
+ description?: string | undefined;
1220
+ inputs?: Record<string, unknown> | undefined;
1221
+ outputs?: string[] | undefined;
1222
+ requiredCapabilities?: string[] | undefined;
1223
+ timeoutMs?: number | undefined;
1224
+ title?: string | undefined;
1225
+ maxRetries?: number | undefined;
1226
+ dependsOn?: string[] | undefined;
1227
+ condition?: {
1228
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1229
+ taskId?: string | undefined;
1230
+ expression?: string | undefined;
1231
+ artifactId?: string | undefined;
1232
+ expectedStatus?: string | undefined;
1233
+ ifTrue?: string[] | undefined;
1234
+ ifFalse?: string[] | undefined;
1235
+ } | undefined;
1236
+ budgetTokens?: number | undefined;
1237
+ targetFiles?: string[] | undefined;
1238
+ readOnlyFiles?: string[] | undefined;
1239
+ }>, "many">;
1240
+ maxConcurrency: z.ZodOptional<z.ZodNumber>;
1241
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1242
+ }, "strip", z.ZodTypeAny, {
1243
+ id: string;
1244
+ kind: "parallel";
1245
+ dependsOn: string[];
1246
+ tasks: {
1247
+ id: string;
1248
+ kind: "task";
1249
+ agentId: string;
1250
+ inputs: Record<string, unknown>;
1251
+ outputs: string[];
1252
+ requiredCapabilities: string[];
1253
+ maxRetries: number;
1254
+ dependsOn: string[];
1255
+ targetFiles: string[];
1256
+ readOnlyFiles: string[];
1257
+ modelProfile?: string | undefined;
1258
+ description?: string | undefined;
1259
+ timeoutMs?: number | undefined;
1260
+ title?: string | undefined;
1261
+ condition?: {
1262
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1263
+ taskId?: string | undefined;
1264
+ expression?: string | undefined;
1265
+ artifactId?: string | undefined;
1266
+ expectedStatus?: string | undefined;
1267
+ ifTrue?: string[] | undefined;
1268
+ ifFalse?: string[] | undefined;
1269
+ } | undefined;
1270
+ budgetTokens?: number | undefined;
1271
+ }[];
1272
+ maxConcurrency?: number | undefined;
1273
+ }, {
1274
+ id: string;
1275
+ tasks: {
1276
+ id: string;
1277
+ agentId: string;
1278
+ kind?: "task" | undefined;
1279
+ modelProfile?: string | undefined;
1280
+ description?: string | undefined;
1281
+ inputs?: Record<string, unknown> | undefined;
1282
+ outputs?: string[] | undefined;
1283
+ requiredCapabilities?: string[] | undefined;
1284
+ timeoutMs?: number | undefined;
1285
+ title?: string | undefined;
1286
+ maxRetries?: number | undefined;
1287
+ dependsOn?: string[] | undefined;
1288
+ condition?: {
1289
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1290
+ taskId?: string | undefined;
1291
+ expression?: string | undefined;
1292
+ artifactId?: string | undefined;
1293
+ expectedStatus?: string | undefined;
1294
+ ifTrue?: string[] | undefined;
1295
+ ifFalse?: string[] | undefined;
1296
+ } | undefined;
1297
+ budgetTokens?: number | undefined;
1298
+ targetFiles?: string[] | undefined;
1299
+ readOnlyFiles?: string[] | undefined;
1300
+ }[];
1301
+ kind?: "parallel" | undefined;
1302
+ dependsOn?: string[] | undefined;
1303
+ maxConcurrency?: number | undefined;
1304
+ }>, z.ZodObject<{
1305
+ kind: z.ZodDefault<z.ZodLiteral<"foreach">>;
1306
+ id: z.ZodString;
1307
+ collection: z.ZodString;
1308
+ iteratorVariable: z.ZodString;
1309
+ task: z.ZodObject<{
1310
+ kind: z.ZodDefault<z.ZodLiteral<"task">>;
1311
+ id: z.ZodString;
1312
+ agentId: z.ZodString;
1313
+ title: z.ZodOptional<z.ZodString>;
1314
+ description: z.ZodOptional<z.ZodString>;
1315
+ modelProfile: z.ZodOptional<z.ZodString>;
1316
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1317
+ condition: z.ZodOptional<z.ZodObject<{
1318
+ type: z.ZodEnum<["expression", "artifact_exists", "task_status", "custom"]>;
1319
+ expression: z.ZodOptional<z.ZodString>;
1320
+ artifactId: z.ZodOptional<z.ZodString>;
1321
+ taskId: z.ZodOptional<z.ZodString>;
1322
+ expectedStatus: z.ZodOptional<z.ZodString>;
1323
+ ifTrue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1324
+ ifFalse: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1325
+ }, "strip", z.ZodTypeAny, {
1326
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1327
+ taskId?: string | undefined;
1328
+ expression?: string | undefined;
1329
+ artifactId?: string | undefined;
1330
+ expectedStatus?: string | undefined;
1331
+ ifTrue?: string[] | undefined;
1332
+ ifFalse?: string[] | undefined;
1333
+ }, {
1334
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1335
+ taskId?: string | undefined;
1336
+ expression?: string | undefined;
1337
+ artifactId?: string | undefined;
1338
+ expectedStatus?: string | undefined;
1339
+ ifTrue?: string[] | undefined;
1340
+ ifFalse?: string[] | undefined;
1341
+ }>>;
1342
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
1343
+ maxRetries: z.ZodDefault<z.ZodNumber>;
1344
+ budgetTokens: z.ZodOptional<z.ZodNumber>;
1345
+ inputs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1346
+ outputs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1347
+ requiredCapabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1348
+ targetFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1349
+ readOnlyFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1350
+ }, "strip", z.ZodTypeAny, {
1351
+ id: string;
1352
+ kind: "task";
1353
+ agentId: string;
1354
+ inputs: Record<string, unknown>;
1355
+ outputs: string[];
1356
+ requiredCapabilities: string[];
1357
+ maxRetries: number;
1358
+ dependsOn: string[];
1359
+ targetFiles: string[];
1360
+ readOnlyFiles: string[];
1361
+ modelProfile?: string | undefined;
1362
+ description?: string | undefined;
1363
+ timeoutMs?: number | undefined;
1364
+ title?: string | undefined;
1365
+ condition?: {
1366
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1367
+ taskId?: string | undefined;
1368
+ expression?: string | undefined;
1369
+ artifactId?: string | undefined;
1370
+ expectedStatus?: string | undefined;
1371
+ ifTrue?: string[] | undefined;
1372
+ ifFalse?: string[] | undefined;
1373
+ } | undefined;
1374
+ budgetTokens?: number | undefined;
1375
+ }, {
1376
+ id: string;
1377
+ agentId: string;
1378
+ kind?: "task" | undefined;
1379
+ modelProfile?: string | undefined;
1380
+ description?: string | undefined;
1381
+ inputs?: Record<string, unknown> | undefined;
1382
+ outputs?: string[] | undefined;
1383
+ requiredCapabilities?: string[] | undefined;
1384
+ timeoutMs?: number | undefined;
1385
+ title?: string | undefined;
1386
+ maxRetries?: number | undefined;
1387
+ dependsOn?: string[] | undefined;
1388
+ condition?: {
1389
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1390
+ taskId?: string | undefined;
1391
+ expression?: string | undefined;
1392
+ artifactId?: string | undefined;
1393
+ expectedStatus?: string | undefined;
1394
+ ifTrue?: string[] | undefined;
1395
+ ifFalse?: string[] | undefined;
1396
+ } | undefined;
1397
+ budgetTokens?: number | undefined;
1398
+ targetFiles?: string[] | undefined;
1399
+ readOnlyFiles?: string[] | undefined;
1400
+ }>;
1401
+ maxConcurrency: z.ZodOptional<z.ZodNumber>;
1402
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1403
+ }, "strip", z.ZodTypeAny, {
1404
+ id: string;
1405
+ kind: "foreach";
1406
+ task: {
1407
+ id: string;
1408
+ kind: "task";
1409
+ agentId: string;
1410
+ inputs: Record<string, unknown>;
1411
+ outputs: string[];
1412
+ requiredCapabilities: string[];
1413
+ maxRetries: number;
1414
+ dependsOn: string[];
1415
+ targetFiles: string[];
1416
+ readOnlyFiles: string[];
1417
+ modelProfile?: string | undefined;
1418
+ description?: string | undefined;
1419
+ timeoutMs?: number | undefined;
1420
+ title?: string | undefined;
1421
+ condition?: {
1422
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1423
+ taskId?: string | undefined;
1424
+ expression?: string | undefined;
1425
+ artifactId?: string | undefined;
1426
+ expectedStatus?: string | undefined;
1427
+ ifTrue?: string[] | undefined;
1428
+ ifFalse?: string[] | undefined;
1429
+ } | undefined;
1430
+ budgetTokens?: number | undefined;
1431
+ };
1432
+ dependsOn: string[];
1433
+ collection: string;
1434
+ iteratorVariable: string;
1435
+ maxConcurrency?: number | undefined;
1436
+ }, {
1437
+ id: string;
1438
+ task: {
1439
+ id: string;
1440
+ agentId: string;
1441
+ kind?: "task" | undefined;
1442
+ modelProfile?: string | undefined;
1443
+ description?: string | undefined;
1444
+ inputs?: Record<string, unknown> | undefined;
1445
+ outputs?: string[] | undefined;
1446
+ requiredCapabilities?: string[] | undefined;
1447
+ timeoutMs?: number | undefined;
1448
+ title?: string | undefined;
1449
+ maxRetries?: number | undefined;
1450
+ dependsOn?: string[] | undefined;
1451
+ condition?: {
1452
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1453
+ taskId?: string | undefined;
1454
+ expression?: string | undefined;
1455
+ artifactId?: string | undefined;
1456
+ expectedStatus?: string | undefined;
1457
+ ifTrue?: string[] | undefined;
1458
+ ifFalse?: string[] | undefined;
1459
+ } | undefined;
1460
+ budgetTokens?: number | undefined;
1461
+ targetFiles?: string[] | undefined;
1462
+ readOnlyFiles?: string[] | undefined;
1463
+ };
1464
+ collection: string;
1465
+ iteratorVariable: string;
1466
+ kind?: "foreach" | undefined;
1467
+ dependsOn?: string[] | undefined;
1468
+ maxConcurrency?: number | undefined;
1469
+ }>, z.ZodObject<{
1470
+ kind: z.ZodDefault<z.ZodLiteral<"verify">>;
1471
+ id: z.ZodString;
1472
+ assertions: z.ZodArray<z.ZodString, "many">;
1473
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1474
+ }, "strip", z.ZodTypeAny, {
1475
+ id: string;
1476
+ kind: "verify";
1477
+ assertions: string[];
1478
+ dependsOn: string[];
1479
+ }, {
1480
+ id: string;
1481
+ assertions: string[];
1482
+ kind?: "verify" | undefined;
1483
+ dependsOn?: string[] | undefined;
1484
+ }>, z.ZodObject<{
1485
+ kind: z.ZodDefault<z.ZodLiteral<"approve">>;
1486
+ id: z.ZodString;
1487
+ message: z.ZodString;
1488
+ requiredRole: z.ZodOptional<z.ZodString>;
1489
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
1490
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1491
+ }, "strip", z.ZodTypeAny, {
1492
+ message: string;
1493
+ id: string;
1494
+ kind: "approve";
1495
+ dependsOn: string[];
1496
+ timeoutMs?: number | undefined;
1497
+ requiredRole?: string | undefined;
1498
+ }, {
1499
+ message: string;
1500
+ id: string;
1501
+ kind?: "approve" | undefined;
1502
+ timeoutMs?: number | undefined;
1503
+ dependsOn?: string[] | undefined;
1504
+ requiredRole?: string | undefined;
1505
+ }>]>, "many">;
1506
+ verify: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1507
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1508
+ createdAt: z.ZodString;
1509
+ updatedAt: z.ZodString;
1510
+ }, "strip", z.ZodTypeAny, {
1511
+ status: "ACTIVE" | "DRAFT" | "REGISTERED" | "DEPRECATED" | "DISABLED";
1512
+ name: string;
1513
+ version: string;
1514
+ metadata: Record<string, unknown>;
1515
+ id: string;
1516
+ createdAt: string;
1517
+ updatedAt: string;
1518
+ scope: "project" | "global" | "profile" | "built-in";
1519
+ tasks: ({
1520
+ id: string;
1521
+ kind: "task";
1522
+ agentId: string;
1523
+ inputs: Record<string, unknown>;
1524
+ outputs: string[];
1525
+ requiredCapabilities: string[];
1526
+ maxRetries: number;
1527
+ dependsOn: string[];
1528
+ targetFiles: string[];
1529
+ readOnlyFiles: string[];
1530
+ modelProfile?: string | undefined;
1531
+ description?: string | undefined;
1532
+ timeoutMs?: number | undefined;
1533
+ title?: string | undefined;
1534
+ condition?: {
1535
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1536
+ taskId?: string | undefined;
1537
+ expression?: string | undefined;
1538
+ artifactId?: string | undefined;
1539
+ expectedStatus?: string | undefined;
1540
+ ifTrue?: string[] | undefined;
1541
+ ifFalse?: string[] | undefined;
1542
+ } | undefined;
1543
+ budgetTokens?: number | undefined;
1544
+ } | {
1545
+ id: string;
1546
+ kind: "parallel";
1547
+ dependsOn: string[];
1548
+ tasks: {
1549
+ id: string;
1550
+ kind: "task";
1551
+ agentId: string;
1552
+ inputs: Record<string, unknown>;
1553
+ outputs: string[];
1554
+ requiredCapabilities: string[];
1555
+ maxRetries: number;
1556
+ dependsOn: string[];
1557
+ targetFiles: string[];
1558
+ readOnlyFiles: string[];
1559
+ modelProfile?: string | undefined;
1560
+ description?: string | undefined;
1561
+ timeoutMs?: number | undefined;
1562
+ title?: string | undefined;
1563
+ condition?: {
1564
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1565
+ taskId?: string | undefined;
1566
+ expression?: string | undefined;
1567
+ artifactId?: string | undefined;
1568
+ expectedStatus?: string | undefined;
1569
+ ifTrue?: string[] | undefined;
1570
+ ifFalse?: string[] | undefined;
1571
+ } | undefined;
1572
+ budgetTokens?: number | undefined;
1573
+ }[];
1574
+ maxConcurrency?: number | undefined;
1575
+ } | {
1576
+ id: string;
1577
+ kind: "foreach";
1578
+ task: {
1579
+ id: string;
1580
+ kind: "task";
1581
+ agentId: string;
1582
+ inputs: Record<string, unknown>;
1583
+ outputs: string[];
1584
+ requiredCapabilities: string[];
1585
+ maxRetries: number;
1586
+ dependsOn: string[];
1587
+ targetFiles: string[];
1588
+ readOnlyFiles: string[];
1589
+ modelProfile?: string | undefined;
1590
+ description?: string | undefined;
1591
+ timeoutMs?: number | undefined;
1592
+ title?: string | undefined;
1593
+ condition?: {
1594
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1595
+ taskId?: string | undefined;
1596
+ expression?: string | undefined;
1597
+ artifactId?: string | undefined;
1598
+ expectedStatus?: string | undefined;
1599
+ ifTrue?: string[] | undefined;
1600
+ ifFalse?: string[] | undefined;
1601
+ } | undefined;
1602
+ budgetTokens?: number | undefined;
1603
+ };
1604
+ dependsOn: string[];
1605
+ collection: string;
1606
+ iteratorVariable: string;
1607
+ maxConcurrency?: number | undefined;
1608
+ } | {
1609
+ id: string;
1610
+ kind: "verify";
1611
+ assertions: string[];
1612
+ dependsOn: string[];
1613
+ } | {
1614
+ message: string;
1615
+ id: string;
1616
+ kind: "approve";
1617
+ dependsOn: string[];
1618
+ timeoutMs?: number | undefined;
1619
+ requiredRole?: string | undefined;
1620
+ })[];
1621
+ verify: string[];
1622
+ concurrency: {
1623
+ maxAgents: number;
1624
+ maxParallelTasks: number;
1625
+ };
1626
+ projectId?: string | undefined;
1627
+ description?: string | undefined;
1628
+ budget?: {
1629
+ maxTokens?: number | undefined;
1630
+ maxCostUsd?: number | undefined;
1631
+ maxDurationMs?: number | undefined;
1632
+ } | undefined;
1633
+ }, {
1634
+ name: string;
1635
+ version: string;
1636
+ id: string;
1637
+ createdAt: string;
1638
+ updatedAt: string;
1639
+ tasks: ({
1640
+ id: string;
1641
+ agentId: string;
1642
+ kind?: "task" | undefined;
1643
+ modelProfile?: string | undefined;
1644
+ description?: string | undefined;
1645
+ inputs?: Record<string, unknown> | undefined;
1646
+ outputs?: string[] | undefined;
1647
+ requiredCapabilities?: string[] | undefined;
1648
+ timeoutMs?: number | undefined;
1649
+ title?: string | undefined;
1650
+ maxRetries?: number | undefined;
1651
+ dependsOn?: string[] | undefined;
1652
+ condition?: {
1653
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1654
+ taskId?: string | undefined;
1655
+ expression?: string | undefined;
1656
+ artifactId?: string | undefined;
1657
+ expectedStatus?: string | undefined;
1658
+ ifTrue?: string[] | undefined;
1659
+ ifFalse?: string[] | undefined;
1660
+ } | undefined;
1661
+ budgetTokens?: number | undefined;
1662
+ targetFiles?: string[] | undefined;
1663
+ readOnlyFiles?: string[] | undefined;
1664
+ } | {
1665
+ id: string;
1666
+ tasks: {
1667
+ id: string;
1668
+ agentId: string;
1669
+ kind?: "task" | undefined;
1670
+ modelProfile?: string | undefined;
1671
+ description?: string | undefined;
1672
+ inputs?: Record<string, unknown> | undefined;
1673
+ outputs?: string[] | undefined;
1674
+ requiredCapabilities?: string[] | undefined;
1675
+ timeoutMs?: number | undefined;
1676
+ title?: string | undefined;
1677
+ maxRetries?: number | undefined;
1678
+ dependsOn?: string[] | undefined;
1679
+ condition?: {
1680
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1681
+ taskId?: string | undefined;
1682
+ expression?: string | undefined;
1683
+ artifactId?: string | undefined;
1684
+ expectedStatus?: string | undefined;
1685
+ ifTrue?: string[] | undefined;
1686
+ ifFalse?: string[] | undefined;
1687
+ } | undefined;
1688
+ budgetTokens?: number | undefined;
1689
+ targetFiles?: string[] | undefined;
1690
+ readOnlyFiles?: string[] | undefined;
1691
+ }[];
1692
+ kind?: "parallel" | undefined;
1693
+ dependsOn?: string[] | undefined;
1694
+ maxConcurrency?: number | undefined;
1695
+ } | {
1696
+ id: string;
1697
+ task: {
1698
+ id: string;
1699
+ agentId: string;
1700
+ kind?: "task" | undefined;
1701
+ modelProfile?: string | undefined;
1702
+ description?: string | undefined;
1703
+ inputs?: Record<string, unknown> | undefined;
1704
+ outputs?: string[] | undefined;
1705
+ requiredCapabilities?: string[] | undefined;
1706
+ timeoutMs?: number | undefined;
1707
+ title?: string | undefined;
1708
+ maxRetries?: number | undefined;
1709
+ dependsOn?: string[] | undefined;
1710
+ condition?: {
1711
+ type: "custom" | "expression" | "artifact_exists" | "task_status";
1712
+ taskId?: string | undefined;
1713
+ expression?: string | undefined;
1714
+ artifactId?: string | undefined;
1715
+ expectedStatus?: string | undefined;
1716
+ ifTrue?: string[] | undefined;
1717
+ ifFalse?: string[] | undefined;
1718
+ } | undefined;
1719
+ budgetTokens?: number | undefined;
1720
+ targetFiles?: string[] | undefined;
1721
+ readOnlyFiles?: string[] | undefined;
1722
+ };
1723
+ collection: string;
1724
+ iteratorVariable: string;
1725
+ kind?: "foreach" | undefined;
1726
+ dependsOn?: string[] | undefined;
1727
+ maxConcurrency?: number | undefined;
1728
+ } | {
1729
+ id: string;
1730
+ assertions: string[];
1731
+ kind?: "verify" | undefined;
1732
+ dependsOn?: string[] | undefined;
1733
+ } | {
1734
+ message: string;
1735
+ id: string;
1736
+ kind?: "approve" | undefined;
1737
+ timeoutMs?: number | undefined;
1738
+ dependsOn?: string[] | undefined;
1739
+ requiredRole?: string | undefined;
1740
+ })[];
1741
+ status?: "ACTIVE" | "DRAFT" | "REGISTERED" | "DEPRECATED" | "DISABLED" | undefined;
1742
+ metadata?: Record<string, unknown> | undefined;
1743
+ projectId?: string | undefined;
1744
+ scope?: "project" | "global" | "profile" | "built-in" | undefined;
1745
+ description?: string | undefined;
1746
+ budget?: {
1747
+ maxTokens?: number | undefined;
1748
+ maxCostUsd?: number | undefined;
1749
+ maxDurationMs?: number | undefined;
1750
+ } | undefined;
1751
+ verify?: string[] | undefined;
1752
+ concurrency?: {
1753
+ maxAgents?: number | undefined;
1754
+ maxParallelTasks?: number | undefined;
1755
+ } | undefined;
1756
+ }>;
1757
+ export type WorkflowDefinition = z.infer<typeof WorkflowDefinitionSchema>;
1758
+ /**
1759
+ * Computed Workflow DAG representation with topological waves.
1760
+ * PRD Part 2 Section 116.
1761
+ */
1762
+ export declare const WorkflowDAGSchema: z.ZodObject<{
1763
+ workflowId: z.ZodString;
1764
+ nodeIds: z.ZodArray<z.ZodString, "many">;
1765
+ adjacencyList: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
1766
+ reverseAdjacency: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
1767
+ inDegree: z.ZodRecord<z.ZodString, z.ZodNumber>;
1768
+ levels: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
1769
+ hasCycles: z.ZodBoolean;
1770
+ cycleNodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1771
+ }, "strip", z.ZodTypeAny, {
1772
+ workflowId: string;
1773
+ nodeIds: string[];
1774
+ adjacencyList: Record<string, string[]>;
1775
+ reverseAdjacency: Record<string, string[]>;
1776
+ inDegree: Record<string, number>;
1777
+ levels: string[][];
1778
+ hasCycles: boolean;
1779
+ cycleNodes?: string[] | undefined;
1780
+ }, {
1781
+ workflowId: string;
1782
+ nodeIds: string[];
1783
+ adjacencyList: Record<string, string[]>;
1784
+ reverseAdjacency: Record<string, string[]>;
1785
+ inDegree: Record<string, number>;
1786
+ levels: string[][];
1787
+ hasCycles: boolean;
1788
+ cycleNodes?: string[] | undefined;
1789
+ }>;
1790
+ export type WorkflowDAG = z.infer<typeof WorkflowDAGSchema>;
1791
+ /**
1792
+ * Pinned Versions snapshot for active workflow run.
1793
+ * PRD Part 2 Section 112: "A workflow run must pin workflow version, plugin versions, skill versions, agent versions, model profile."
1794
+ */
1795
+ export declare const PinnedVersionsSchema: z.ZodObject<{
1796
+ workflowVersion: z.ZodString;
1797
+ pluginVersions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1798
+ skillVersions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1799
+ agentVersions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1800
+ modelProfile: z.ZodOptional<z.ZodString>;
1801
+ }, "strip", z.ZodTypeAny, {
1802
+ workflowVersion: string;
1803
+ pluginVersions: Record<string, string>;
1804
+ skillVersions: Record<string, string>;
1805
+ agentVersions: Record<string, string>;
1806
+ modelProfile?: string | undefined;
1807
+ }, {
1808
+ workflowVersion: string;
1809
+ modelProfile?: string | undefined;
1810
+ pluginVersions?: Record<string, string> | undefined;
1811
+ skillVersions?: Record<string, string> | undefined;
1812
+ agentVersions?: Record<string, string> | undefined;
1813
+ }>;
1814
+ export type PinnedVersions = z.infer<typeof PinnedVersionsSchema>;
1815
+ /**
1816
+ * Workflow Node Execution Status lifecycle.
1817
+ */
1818
+ export declare const WorkflowNodeStatusSchema: z.ZodEnum<["PENDING", "READY", "RUNNING", "WAITING_APPROVAL", "COMPLETED", "FAILED", "SKIPPED", "TIMED_OUT", "CANCELLED"]>;
1819
+ export type WorkflowNodeStatus = z.infer<typeof WorkflowNodeStatusSchema>;
1820
+ /**
1821
+ * Detailed state tracking per node.
1822
+ */
1823
+ export declare const WorkflowNodeStateSchema: z.ZodObject<{
1824
+ status: z.ZodDefault<z.ZodEnum<["PENDING", "READY", "RUNNING", "WAITING_APPROVAL", "COMPLETED", "FAILED", "SKIPPED", "TIMED_OUT", "CANCELLED"]>>;
1825
+ attempts: z.ZodDefault<z.ZodNumber>;
1826
+ startedAt: z.ZodOptional<z.ZodString>;
1827
+ completedAt: z.ZodOptional<z.ZodString>;
1828
+ error: z.ZodOptional<z.ZodString>;
1829
+ result: z.ZodOptional<z.ZodUnknown>;
1830
+ }, "strip", z.ZodTypeAny, {
1831
+ status: "COMPLETED" | "CANCELLED" | "FAILED" | "READY" | "PENDING" | "RUNNING" | "WAITING_APPROVAL" | "SKIPPED" | "TIMED_OUT";
1832
+ attempts: number;
1833
+ error?: string | undefined;
1834
+ result?: unknown;
1835
+ startedAt?: string | undefined;
1836
+ completedAt?: string | undefined;
1837
+ }, {
1838
+ status?: "COMPLETED" | "CANCELLED" | "FAILED" | "READY" | "PENDING" | "RUNNING" | "WAITING_APPROVAL" | "SKIPPED" | "TIMED_OUT" | undefined;
1839
+ error?: string | undefined;
1840
+ attempts?: number | undefined;
1841
+ result?: unknown;
1842
+ startedAt?: string | undefined;
1843
+ completedAt?: string | undefined;
1844
+ }>;
1845
+ export type WorkflowNodeState = z.infer<typeof WorkflowNodeStateSchema>;
1846
+ /**
1847
+ * Budget and resource consumption tracking for active workflow runs.
1848
+ */
1849
+ export declare const WorkflowBudgetConsumptionSchema: z.ZodObject<{
1850
+ tokens: z.ZodDefault<z.ZodNumber>;
1851
+ costUsd: z.ZodDefault<z.ZodNumber>;
1852
+ durationMs: z.ZodDefault<z.ZodNumber>;
1853
+ toolCalls: z.ZodDefault<z.ZodNumber>;
1854
+ }, "strip", z.ZodTypeAny, {
1855
+ toolCalls: number;
1856
+ costUsd: number;
1857
+ durationMs: number;
1858
+ tokens: number;
1859
+ }, {
1860
+ toolCalls?: number | undefined;
1861
+ costUsd?: number | undefined;
1862
+ durationMs?: number | undefined;
1863
+ tokens?: number | undefined;
1864
+ }>;
1865
+ export type WorkflowBudgetConsumption = z.infer<typeof WorkflowBudgetConsumptionSchema>;
1866
+ /**
1867
+ * Per-node Foreach execution state.
1868
+ */
1869
+ export declare const WorkflowForeachStateSchema: z.ZodObject<{
1870
+ totalItems: z.ZodDefault<z.ZodNumber>;
1871
+ completedItems: z.ZodDefault<z.ZodNumber>;
1872
+ failedItems: z.ZodDefault<z.ZodNumber>;
1873
+ itemResults: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1874
+ }, "strip", z.ZodTypeAny, {
1875
+ totalItems: number;
1876
+ completedItems: number;
1877
+ failedItems: number;
1878
+ itemResults: Record<string, unknown>;
1879
+ }, {
1880
+ totalItems?: number | undefined;
1881
+ completedItems?: number | undefined;
1882
+ failedItems?: number | undefined;
1883
+ itemResults?: Record<string, unknown> | undefined;
1884
+ }>;
1885
+ export type WorkflowForeachState = z.infer<typeof WorkflowForeachStateSchema>;
1886
+ /**
1887
+ * Active Approval Gate state attached to workflow run.
1888
+ */
1889
+ export declare const WorkflowApprovalGateSchema: z.ZodObject<{
1890
+ nodeId: z.ZodString;
1891
+ message: z.ZodString;
1892
+ requiredRole: z.ZodOptional<z.ZodString>;
1893
+ requestedAt: z.ZodString;
1894
+ approvedAt: z.ZodOptional<z.ZodString>;
1895
+ approvedBy: z.ZodOptional<z.ZodString>;
1896
+ decision: z.ZodOptional<z.ZodEnum<["APPROVED", "REJECTED"]>>;
1897
+ }, "strip", z.ZodTypeAny, {
1898
+ message: string;
1899
+ nodeId: string;
1900
+ requestedAt: string;
1901
+ decision?: "REJECTED" | "APPROVED" | undefined;
1902
+ requiredRole?: string | undefined;
1903
+ approvedAt?: string | undefined;
1904
+ approvedBy?: string | undefined;
1905
+ }, {
1906
+ message: string;
1907
+ nodeId: string;
1908
+ requestedAt: string;
1909
+ decision?: "REJECTED" | "APPROVED" | undefined;
1910
+ requiredRole?: string | undefined;
1911
+ approvedAt?: string | undefined;
1912
+ approvedBy?: string | undefined;
1913
+ }>;
1914
+ export type WorkflowApprovalGate = z.infer<typeof WorkflowApprovalGateSchema>;
1915
+ /**
1916
+ * Workflow Run instance state.
1917
+ * PRD Part 2 Section 113.
1918
+ */
1919
+ export declare const WorkflowRunSchema: z.ZodObject<{
1920
+ id: z.ZodString;
1921
+ workflowId: z.ZodString;
1922
+ projectId: z.ZodOptional<z.ZodString>;
1923
+ sessionId: z.ZodString;
1924
+ status: z.ZodDefault<z.ZodEnum<["QUEUED", "RUNNING", "PAUSED", "WAITING_APPROVAL", "COMPLETED", "FAILED", "CANCELLED"]>>;
1925
+ currentStepIndex: z.ZodDefault<z.ZodNumber>;
1926
+ completedTasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1927
+ failedTasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1928
+ runningTasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1929
+ taskResults: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1930
+ nodeStates: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1931
+ status: z.ZodDefault<z.ZodEnum<["PENDING", "READY", "RUNNING", "WAITING_APPROVAL", "COMPLETED", "FAILED", "SKIPPED", "TIMED_OUT", "CANCELLED"]>>;
1932
+ attempts: z.ZodDefault<z.ZodNumber>;
1933
+ startedAt: z.ZodOptional<z.ZodString>;
1934
+ completedAt: z.ZodOptional<z.ZodString>;
1935
+ error: z.ZodOptional<z.ZodString>;
1936
+ result: z.ZodOptional<z.ZodUnknown>;
1937
+ }, "strip", z.ZodTypeAny, {
1938
+ status: "COMPLETED" | "CANCELLED" | "FAILED" | "READY" | "PENDING" | "RUNNING" | "WAITING_APPROVAL" | "SKIPPED" | "TIMED_OUT";
1939
+ attempts: number;
1940
+ error?: string | undefined;
1941
+ result?: unknown;
1942
+ startedAt?: string | undefined;
1943
+ completedAt?: string | undefined;
1944
+ }, {
1945
+ status?: "COMPLETED" | "CANCELLED" | "FAILED" | "READY" | "PENDING" | "RUNNING" | "WAITING_APPROVAL" | "SKIPPED" | "TIMED_OUT" | undefined;
1946
+ error?: string | undefined;
1947
+ attempts?: number | undefined;
1948
+ result?: unknown;
1949
+ startedAt?: string | undefined;
1950
+ completedAt?: string | undefined;
1951
+ }>>>;
1952
+ budgetConsumption: z.ZodDefault<z.ZodObject<{
1953
+ tokens: z.ZodDefault<z.ZodNumber>;
1954
+ costUsd: z.ZodDefault<z.ZodNumber>;
1955
+ durationMs: z.ZodDefault<z.ZodNumber>;
1956
+ toolCalls: z.ZodDefault<z.ZodNumber>;
1957
+ }, "strip", z.ZodTypeAny, {
1958
+ toolCalls: number;
1959
+ costUsd: number;
1960
+ durationMs: number;
1961
+ tokens: number;
1962
+ }, {
1963
+ toolCalls?: number | undefined;
1964
+ costUsd?: number | undefined;
1965
+ durationMs?: number | undefined;
1966
+ tokens?: number | undefined;
1967
+ }>>;
1968
+ foreachStates: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1969
+ totalItems: z.ZodDefault<z.ZodNumber>;
1970
+ completedItems: z.ZodDefault<z.ZodNumber>;
1971
+ failedItems: z.ZodDefault<z.ZodNumber>;
1972
+ itemResults: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1973
+ }, "strip", z.ZodTypeAny, {
1974
+ totalItems: number;
1975
+ completedItems: number;
1976
+ failedItems: number;
1977
+ itemResults: Record<string, unknown>;
1978
+ }, {
1979
+ totalItems?: number | undefined;
1980
+ completedItems?: number | undefined;
1981
+ failedItems?: number | undefined;
1982
+ itemResults?: Record<string, unknown> | undefined;
1983
+ }>>>;
1984
+ approvalGate: z.ZodOptional<z.ZodObject<{
1985
+ nodeId: z.ZodString;
1986
+ message: z.ZodString;
1987
+ requiredRole: z.ZodOptional<z.ZodString>;
1988
+ requestedAt: z.ZodString;
1989
+ approvedAt: z.ZodOptional<z.ZodString>;
1990
+ approvedBy: z.ZodOptional<z.ZodString>;
1991
+ decision: z.ZodOptional<z.ZodEnum<["APPROVED", "REJECTED"]>>;
1992
+ }, "strip", z.ZodTypeAny, {
1993
+ message: string;
1994
+ nodeId: string;
1995
+ requestedAt: string;
1996
+ decision?: "REJECTED" | "APPROVED" | undefined;
1997
+ requiredRole?: string | undefined;
1998
+ approvedAt?: string | undefined;
1999
+ approvedBy?: string | undefined;
2000
+ }, {
2001
+ message: string;
2002
+ nodeId: string;
2003
+ requestedAt: string;
2004
+ decision?: "REJECTED" | "APPROVED" | undefined;
2005
+ requiredRole?: string | undefined;
2006
+ approvedAt?: string | undefined;
2007
+ approvedBy?: string | undefined;
2008
+ }>>;
2009
+ pinnedVersions: z.ZodObject<{
2010
+ workflowVersion: z.ZodString;
2011
+ pluginVersions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
2012
+ skillVersions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
2013
+ agentVersions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
2014
+ modelProfile: z.ZodOptional<z.ZodString>;
2015
+ }, "strip", z.ZodTypeAny, {
2016
+ workflowVersion: string;
2017
+ pluginVersions: Record<string, string>;
2018
+ skillVersions: Record<string, string>;
2019
+ agentVersions: Record<string, string>;
2020
+ modelProfile?: string | undefined;
2021
+ }, {
2022
+ workflowVersion: string;
2023
+ modelProfile?: string | undefined;
2024
+ pluginVersions?: Record<string, string> | undefined;
2025
+ skillVersions?: Record<string, string> | undefined;
2026
+ agentVersions?: Record<string, string> | undefined;
2027
+ }>;
2028
+ startedAt: z.ZodString;
2029
+ completedAt: z.ZodOptional<z.ZodString>;
2030
+ errorMessage: z.ZodOptional<z.ZodString>;
2031
+ }, "strip", z.ZodTypeAny, {
2032
+ status: "PAUSED" | "COMPLETED" | "CANCELLED" | "FAILED" | "QUEUED" | "RUNNING" | "WAITING_APPROVAL";
2033
+ id: string;
2034
+ sessionId: string;
2035
+ startedAt: string;
2036
+ workflowId: string;
2037
+ currentStepIndex: number;
2038
+ completedTasks: string[];
2039
+ failedTasks: string[];
2040
+ runningTasks: string[];
2041
+ taskResults: Record<string, unknown>;
2042
+ nodeStates: Record<string, {
2043
+ status: "COMPLETED" | "CANCELLED" | "FAILED" | "READY" | "PENDING" | "RUNNING" | "WAITING_APPROVAL" | "SKIPPED" | "TIMED_OUT";
2044
+ attempts: number;
2045
+ error?: string | undefined;
2046
+ result?: unknown;
2047
+ startedAt?: string | undefined;
2048
+ completedAt?: string | undefined;
2049
+ }>;
2050
+ budgetConsumption: {
2051
+ toolCalls: number;
2052
+ costUsd: number;
2053
+ durationMs: number;
2054
+ tokens: number;
2055
+ };
2056
+ foreachStates: Record<string, {
2057
+ totalItems: number;
2058
+ completedItems: number;
2059
+ failedItems: number;
2060
+ itemResults: Record<string, unknown>;
2061
+ }>;
2062
+ pinnedVersions: {
2063
+ workflowVersion: string;
2064
+ pluginVersions: Record<string, string>;
2065
+ skillVersions: Record<string, string>;
2066
+ agentVersions: Record<string, string>;
2067
+ modelProfile?: string | undefined;
2068
+ };
2069
+ projectId?: string | undefined;
2070
+ errorMessage?: string | undefined;
2071
+ completedAt?: string | undefined;
2072
+ approvalGate?: {
2073
+ message: string;
2074
+ nodeId: string;
2075
+ requestedAt: string;
2076
+ decision?: "REJECTED" | "APPROVED" | undefined;
2077
+ requiredRole?: string | undefined;
2078
+ approvedAt?: string | undefined;
2079
+ approvedBy?: string | undefined;
2080
+ } | undefined;
2081
+ }, {
2082
+ id: string;
2083
+ sessionId: string;
2084
+ startedAt: string;
2085
+ workflowId: string;
2086
+ pinnedVersions: {
2087
+ workflowVersion: string;
2088
+ modelProfile?: string | undefined;
2089
+ pluginVersions?: Record<string, string> | undefined;
2090
+ skillVersions?: Record<string, string> | undefined;
2091
+ agentVersions?: Record<string, string> | undefined;
2092
+ };
2093
+ status?: "PAUSED" | "COMPLETED" | "CANCELLED" | "FAILED" | "QUEUED" | "RUNNING" | "WAITING_APPROVAL" | undefined;
2094
+ projectId?: string | undefined;
2095
+ errorMessage?: string | undefined;
2096
+ completedAt?: string | undefined;
2097
+ currentStepIndex?: number | undefined;
2098
+ completedTasks?: string[] | undefined;
2099
+ failedTasks?: string[] | undefined;
2100
+ runningTasks?: string[] | undefined;
2101
+ taskResults?: Record<string, unknown> | undefined;
2102
+ nodeStates?: Record<string, {
2103
+ status?: "COMPLETED" | "CANCELLED" | "FAILED" | "READY" | "PENDING" | "RUNNING" | "WAITING_APPROVAL" | "SKIPPED" | "TIMED_OUT" | undefined;
2104
+ error?: string | undefined;
2105
+ attempts?: number | undefined;
2106
+ result?: unknown;
2107
+ startedAt?: string | undefined;
2108
+ completedAt?: string | undefined;
2109
+ }> | undefined;
2110
+ budgetConsumption?: {
2111
+ toolCalls?: number | undefined;
2112
+ costUsd?: number | undefined;
2113
+ durationMs?: number | undefined;
2114
+ tokens?: number | undefined;
2115
+ } | undefined;
2116
+ foreachStates?: Record<string, {
2117
+ totalItems?: number | undefined;
2118
+ completedItems?: number | undefined;
2119
+ failedItems?: number | undefined;
2120
+ itemResults?: Record<string, unknown> | undefined;
2121
+ }> | undefined;
2122
+ approvalGate?: {
2123
+ message: string;
2124
+ nodeId: string;
2125
+ requestedAt: string;
2126
+ decision?: "REJECTED" | "APPROVED" | undefined;
2127
+ requiredRole?: string | undefined;
2128
+ approvedAt?: string | undefined;
2129
+ approvedBy?: string | undefined;
2130
+ } | undefined;
2131
+ }>;
2132
+ export type WorkflowRun = z.infer<typeof WorkflowRunSchema>;
2133
+ //# sourceMappingURL=workflow.d.ts.map