@nodetool-ai/protocol 0.7.0-rc.22 → 0.8.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 (419) hide show
  1. package/README.md +56 -0
  2. package/dist/.nodetool-build-stamp +1 -0
  3. package/dist/ai-video-production.d.ts +249 -0
  4. package/dist/ai-video-production.d.ts.map +1 -0
  5. package/dist/ai-video-production.js +131 -0
  6. package/dist/ai-video-production.js.map +1 -0
  7. package/dist/api-schemas/agent-access.d.ts +134 -0
  8. package/dist/api-schemas/agent-access.d.ts.map +1 -0
  9. package/dist/api-schemas/agent-access.js +93 -0
  10. package/dist/api-schemas/agent-access.js.map +1 -0
  11. package/dist/api-schemas/api-error-code.d.ts +11 -1
  12. package/dist/api-schemas/api-error-code.d.ts.map +1 -1
  13. package/dist/api-schemas/api-error-code.js +10 -0
  14. package/dist/api-schemas/api-error-code.js.map +1 -1
  15. package/dist/api-schemas/applications.d.ts +1411 -0
  16. package/dist/api-schemas/applications.d.ts.map +1 -0
  17. package/dist/api-schemas/applications.js +333 -0
  18. package/dist/api-schemas/applications.js.map +1 -0
  19. package/dist/api-schemas/assets.d.ts +230 -0
  20. package/dist/api-schemas/assets.d.ts.map +1 -1
  21. package/dist/api-schemas/assets.js +131 -5
  22. package/dist/api-schemas/assets.js.map +1 -1
  23. package/dist/api-schemas/code-gen.d.ts +176 -0
  24. package/dist/api-schemas/code-gen.d.ts.map +1 -0
  25. package/dist/api-schemas/code-gen.js +205 -0
  26. package/dist/api-schemas/code-gen.js.map +1 -0
  27. package/dist/api-schemas/collections.d.ts.map +1 -1
  28. package/dist/api-schemas/collections.js +3 -4
  29. package/dist/api-schemas/collections.js.map +1 -1
  30. package/dist/api-schemas/costs.d.ts +179 -0
  31. package/dist/api-schemas/costs.d.ts.map +1 -1
  32. package/dist/api-schemas/costs.js +100 -4
  33. package/dist/api-schemas/costs.js.map +1 -1
  34. package/dist/api-schemas/credits.d.ts +42 -0
  35. package/dist/api-schemas/credits.d.ts.map +1 -0
  36. package/dist/api-schemas/credits.js +43 -0
  37. package/dist/api-schemas/credits.js.map +1 -0
  38. package/dist/api-schemas/documents.d.ts +163 -0
  39. package/dist/api-schemas/documents.d.ts.map +1 -0
  40. package/dist/api-schemas/documents.js +75 -0
  41. package/dist/api-schemas/documents.js.map +1 -0
  42. package/dist/api-schemas/files.d.ts +13 -0
  43. package/dist/api-schemas/files.d.ts.map +1 -1
  44. package/dist/api-schemas/files.js +8 -0
  45. package/dist/api-schemas/files.js.map +1 -1
  46. package/dist/api-schemas/fonts.d.ts +17 -1
  47. package/dist/api-schemas/fonts.d.ts.map +1 -1
  48. package/dist/api-schemas/fonts.js +19 -3
  49. package/dist/api-schemas/fonts.js.map +1 -1
  50. package/dist/api-schemas/index.d.ts +23 -1
  51. package/dist/api-schemas/index.d.ts.map +1 -1
  52. package/dist/api-schemas/index.js +23 -1
  53. package/dist/api-schemas/index.js.map +1 -1
  54. package/dist/api-schemas/jobs.d.ts +12 -0
  55. package/dist/api-schemas/jobs.d.ts.map +1 -1
  56. package/dist/api-schemas/jobs.js +12 -2
  57. package/dist/api-schemas/jobs.js.map +1 -1
  58. package/dist/api-schemas/js-scripts.d.ts +364 -0
  59. package/dist/api-schemas/js-scripts.d.ts.map +1 -0
  60. package/dist/api-schemas/js-scripts.js +333 -0
  61. package/dist/api-schemas/js-scripts.js.map +1 -0
  62. package/dist/api-schemas/mcp-config.d.ts.map +1 -1
  63. package/dist/api-schemas/mcp-config.js +3 -1
  64. package/dist/api-schemas/mcp-config.js.map +1 -1
  65. package/dist/api-schemas/memories.d.ts +84 -0
  66. package/dist/api-schemas/memories.d.ts.map +1 -0
  67. package/dist/api-schemas/memories.js +54 -0
  68. package/dist/api-schemas/memories.js.map +1 -0
  69. package/dist/api-schemas/messages.d.ts +1 -0
  70. package/dist/api-schemas/messages.d.ts.map +1 -1
  71. package/dist/api-schemas/messages.js +4 -4
  72. package/dist/api-schemas/messages.js.map +1 -1
  73. package/dist/api-schemas/models.d.ts +156 -0
  74. package/dist/api-schemas/models.d.ts.map +1 -1
  75. package/dist/api-schemas/models.js +51 -6
  76. package/dist/api-schemas/models.js.map +1 -1
  77. package/dist/api-schemas/nodes.d.ts +97 -0
  78. package/dist/api-schemas/nodes.d.ts.map +1 -1
  79. package/dist/api-schemas/nodes.js +89 -0
  80. package/dist/api-schemas/nodes.js.map +1 -1
  81. package/dist/api-schemas/projects.d.ts +427 -0
  82. package/dist/api-schemas/projects.d.ts.map +1 -0
  83. package/dist/api-schemas/projects.js +224 -0
  84. package/dist/api-schemas/projects.js.map +1 -0
  85. package/dist/api-schemas/recipes.d.ts +172 -0
  86. package/dist/api-schemas/recipes.d.ts.map +1 -0
  87. package/dist/api-schemas/recipes.js +144 -0
  88. package/dist/api-schemas/recipes.js.map +1 -0
  89. package/dist/api-schemas/resources.d.ts +112 -0
  90. package/dist/api-schemas/resources.d.ts.map +1 -0
  91. package/dist/api-schemas/resources.js +44 -0
  92. package/dist/api-schemas/resources.js.map +1 -0
  93. package/dist/api-schemas/scripts.d.ts +1571 -0
  94. package/dist/api-schemas/scripts.d.ts.map +1 -0
  95. package/dist/api-schemas/scripts.js +153 -0
  96. package/dist/api-schemas/scripts.js.map +1 -0
  97. package/dist/api-schemas/sdk-execution-v1.d.ts +467 -0
  98. package/dist/api-schemas/sdk-execution-v1.d.ts.map +1 -0
  99. package/dist/api-schemas/sdk-execution-v1.js +115 -0
  100. package/dist/api-schemas/sdk-execution-v1.js.map +1 -0
  101. package/dist/api-schemas/sdk-lifecycle-v1.d.ts +217 -0
  102. package/dist/api-schemas/sdk-lifecycle-v1.d.ts.map +1 -0
  103. package/dist/api-schemas/sdk-lifecycle-v1.js +117 -0
  104. package/dist/api-schemas/sdk-lifecycle-v1.js.map +1 -0
  105. package/dist/api-schemas/sdk-models-v1.d.ts +181 -0
  106. package/dist/api-schemas/sdk-models-v1.d.ts.map +1 -0
  107. package/dist/api-schemas/sdk-models-v1.js +108 -0
  108. package/dist/api-schemas/sdk-models-v1.js.map +1 -0
  109. package/dist/api-schemas/sdk-v1-http-operations.d.ts +941 -0
  110. package/dist/api-schemas/sdk-v1-http-operations.d.ts.map +1 -0
  111. package/dist/api-schemas/sdk-v1-http-operations.js +465 -0
  112. package/dist/api-schemas/sdk-v1-http-operations.js.map +1 -0
  113. package/dist/api-schemas/sdk-v1-operations.d.ts +151 -0
  114. package/dist/api-schemas/sdk-v1-operations.d.ts.map +1 -0
  115. package/dist/api-schemas/sdk-v1-operations.js +97 -0
  116. package/dist/api-schemas/sdk-v1-operations.js.map +1 -0
  117. package/dist/api-schemas/sdk-v1-websocket-operations.d.ts +97 -0
  118. package/dist/api-schemas/sdk-v1-websocket-operations.d.ts.map +1 -0
  119. package/dist/api-schemas/sdk-v1-websocket-operations.js +96 -0
  120. package/dist/api-schemas/sdk-v1-websocket-operations.js.map +1 -0
  121. package/dist/api-schemas/sdk-v1.d.ts +15 -0
  122. package/dist/api-schemas/sdk-v1.d.ts.map +1 -0
  123. package/dist/api-schemas/sdk-v1.js +22 -0
  124. package/dist/api-schemas/sdk-v1.js.map +1 -0
  125. package/dist/api-schemas/segmentation.d.ts +75 -0
  126. package/dist/api-schemas/segmentation.d.ts.map +1 -0
  127. package/dist/api-schemas/segmentation.js +54 -0
  128. package/dist/api-schemas/segmentation.js.map +1 -0
  129. package/dist/api-schemas/settings.d.ts +159 -0
  130. package/dist/api-schemas/settings.d.ts.map +1 -1
  131. package/dist/api-schemas/settings.js +70 -0
  132. package/dist/api-schemas/settings.js.map +1 -1
  133. package/dist/api-schemas/sketch.d.ts +847 -0
  134. package/dist/api-schemas/sketch.d.ts.map +1 -0
  135. package/dist/api-schemas/sketch.js +544 -0
  136. package/dist/api-schemas/sketch.js.map +1 -0
  137. package/dist/api-schemas/skills.d.ts +27 -14
  138. package/dist/api-schemas/skills.d.ts.map +1 -1
  139. package/dist/api-schemas/skills.js +64 -11
  140. package/dist/api-schemas/skills.js.map +1 -1
  141. package/dist/api-schemas/storage.d.ts +8 -0
  142. package/dist/api-schemas/storage.d.ts.map +1 -1
  143. package/dist/api-schemas/storage.js +7 -0
  144. package/dist/api-schemas/storage.js.map +1 -1
  145. package/dist/api-schemas/storyboards.d.ts +7026 -0
  146. package/dist/api-schemas/storyboards.d.ts.map +1 -0
  147. package/dist/api-schemas/storyboards.js +393 -0
  148. package/dist/api-schemas/storyboards.js.map +1 -0
  149. package/dist/api-schemas/threads.d.ts +12 -4
  150. package/dist/api-schemas/threads.d.ts.map +1 -1
  151. package/dist/api-schemas/threads.js +12 -4
  152. package/dist/api-schemas/threads.js.map +1 -1
  153. package/dist/api-schemas/timeline-tool-contracts.d.ts +1650 -0
  154. package/dist/api-schemas/timeline-tool-contracts.d.ts.map +1 -0
  155. package/dist/api-schemas/timeline-tool-contracts.js +725 -0
  156. package/dist/api-schemas/timeline-tool-contracts.js.map +1 -0
  157. package/dist/api-schemas/timeline-tool-params.d.ts +1237 -0
  158. package/dist/api-schemas/timeline-tool-params.d.ts.map +1 -0
  159. package/dist/api-schemas/timeline-tool-params.js +1518 -0
  160. package/dist/api-schemas/timeline-tool-params.js.map +1 -0
  161. package/dist/api-schemas/timeline.d.ts +12803 -0
  162. package/dist/api-schemas/timeline.d.ts.map +1 -0
  163. package/dist/api-schemas/timeline.js +1838 -0
  164. package/dist/api-schemas/timeline.js.map +1 -0
  165. package/dist/api-schemas/ui-tool-contract.d.ts +35 -0
  166. package/dist/api-schemas/ui-tool-contract.d.ts.map +1 -0
  167. package/dist/api-schemas/ui-tool-contract.js +31 -0
  168. package/dist/api-schemas/ui-tool-contract.js.map +1 -0
  169. package/dist/api-schemas/workflows.d.ts +852 -18
  170. package/dist/api-schemas/workflows.d.ts.map +1 -1
  171. package/dist/api-schemas/workflows.js +484 -6
  172. package/dist/api-schemas/workflows.js.map +1 -1
  173. package/dist/api-schemas/workspace.d.ts +45 -0
  174. package/dist/api-schemas/workspace.d.ts.map +1 -1
  175. package/dist/api-schemas/workspace.js +47 -1
  176. package/dist/api-schemas/workspace.js.map +1 -1
  177. package/dist/api-types.d.ts +621 -27
  178. package/dist/api-types.d.ts.map +1 -1
  179. package/dist/api-types.js +246 -1
  180. package/dist/api-types.js.map +1 -1
  181. package/dist/app-deployment.d.ts +37 -0
  182. package/dist/app-deployment.d.ts.map +1 -0
  183. package/dist/app-deployment.js +42 -0
  184. package/dist/app-deployment.js.map +1 -0
  185. package/dist/asset-generation.d.ts +58 -0
  186. package/dist/asset-generation.d.ts.map +1 -0
  187. package/dist/asset-generation.js +147 -0
  188. package/dist/asset-generation.js.map +1 -0
  189. package/dist/blend-modes.d.ts +20 -0
  190. package/dist/blend-modes.d.ts.map +1 -0
  191. package/dist/blend-modes.js +33 -0
  192. package/dist/blend-modes.js.map +1 -0
  193. package/dist/bridge-frames.d.ts +654 -0
  194. package/dist/bridge-frames.d.ts.map +1 -0
  195. package/dist/bridge-frames.js +448 -0
  196. package/dist/bridge-frames.js.map +1 -0
  197. package/dist/bridge-frames.schema.json +862 -0
  198. package/dist/bridge-protocol.d.ts +57 -20
  199. package/dist/bridge-protocol.d.ts.map +1 -1
  200. package/dist/bridge-protocol.js +57 -20
  201. package/dist/bridge-protocol.js.map +1 -1
  202. package/dist/builtin-packs.d.ts +45 -0
  203. package/dist/builtin-packs.d.ts.map +1 -0
  204. package/dist/builtin-packs.js +115 -0
  205. package/dist/builtin-packs.js.map +1 -0
  206. package/dist/caption-word.d.ts +15 -0
  207. package/dist/caption-word.d.ts.map +1 -0
  208. package/dist/caption-word.js +10 -0
  209. package/dist/caption-word.js.map +1 -0
  210. package/dist/cloud-profile.d.ts +187 -0
  211. package/dist/cloud-profile.d.ts.map +1 -0
  212. package/dist/cloud-profile.js +281 -0
  213. package/dist/cloud-profile.js.map +1 -0
  214. package/dist/creative.d.ts +486 -0
  215. package/dist/creative.d.ts.map +1 -0
  216. package/dist/creative.js +269 -0
  217. package/dist/creative.js.map +1 -0
  218. package/dist/custom-providers.d.ts +70 -0
  219. package/dist/custom-providers.d.ts.map +1 -0
  220. package/dist/custom-providers.js +125 -0
  221. package/dist/custom-providers.js.map +1 -0
  222. package/dist/document-ops.d.ts +15 -0
  223. package/dist/document-ops.d.ts.map +1 -0
  224. package/dist/document-ops.js +2 -0
  225. package/dist/document-ops.js.map +1 -0
  226. package/dist/game-assets.d.ts +344 -0
  227. package/dist/game-assets.d.ts.map +1 -0
  228. package/dist/game-assets.js +297 -0
  229. package/dist/game-assets.js.map +1 -0
  230. package/dist/game-design.d.ts +90 -0
  231. package/dist/game-design.d.ts.map +1 -0
  232. package/dist/game-design.js +417 -0
  233. package/dist/game-design.js.map +1 -0
  234. package/dist/game-flow-prompt.d.ts +68 -0
  235. package/dist/game-flow-prompt.d.ts.map +1 -0
  236. package/dist/game-flow-prompt.js +121 -0
  237. package/dist/game-flow-prompt.js.map +1 -0
  238. package/dist/game-graph.d.ts +96 -0
  239. package/dist/game-graph.d.ts.map +1 -0
  240. package/dist/game-graph.js +481 -0
  241. package/dist/game-graph.js.map +1 -0
  242. package/dist/game-migration.d.ts +4 -0
  243. package/dist/game-migration.d.ts.map +1 -0
  244. package/dist/game-migration.js +6 -0
  245. package/dist/game-migration.js.map +1 -0
  246. package/dist/game-slot-prompt.d.ts +90 -0
  247. package/dist/game-slot-prompt.d.ts.map +1 -0
  248. package/dist/game-slot-prompt.js +237 -0
  249. package/dist/game-slot-prompt.js.map +1 -0
  250. package/dist/game.d.ts +1663 -0
  251. package/dist/game.d.ts.map +1 -0
  252. package/dist/game.js +228 -0
  253. package/dist/game.js.map +1 -0
  254. package/dist/graph.d.ts +191 -5
  255. package/dist/graph.d.ts.map +1 -1
  256. package/dist/graph.js +497 -0
  257. package/dist/graph.js.map +1 -1
  258. package/dist/index.d.ts +47 -2
  259. package/dist/index.d.ts.map +1 -1
  260. package/dist/index.js +46 -2
  261. package/dist/index.js.map +1 -1
  262. package/dist/loop.d.ts +38 -0
  263. package/dist/loop.d.ts.map +1 -0
  264. package/dist/loop.js +69 -0
  265. package/dist/loop.js.map +1 -0
  266. package/dist/mcp-server-config.d.ts +113 -0
  267. package/dist/mcp-server-config.d.ts.map +1 -0
  268. package/dist/mcp-server-config.js +147 -0
  269. package/dist/mcp-server-config.js.map +1 -0
  270. package/dist/messages.d.ts +1565 -243
  271. package/dist/messages.d.ts.map +1 -1
  272. package/dist/messages.js +709 -22
  273. package/dist/messages.js.map +1 -1
  274. package/dist/model-selection.d.ts +20 -0
  275. package/dist/model-selection.d.ts.map +1 -0
  276. package/dist/model-selection.js +27 -0
  277. package/dist/model-selection.js.map +1 -0
  278. package/dist/nodetool-models.d.ts +71 -0
  279. package/dist/nodetool-models.d.ts.map +1 -0
  280. package/dist/nodetool-models.js +138 -0
  281. package/dist/nodetool-models.js.map +1 -0
  282. package/dist/package-assets.d.ts +39 -0
  283. package/dist/package-assets.d.ts.map +1 -0
  284. package/dist/package-assets.js +63 -0
  285. package/dist/package-assets.js.map +1 -0
  286. package/dist/platform.d.ts +66 -0
  287. package/dist/platform.d.ts.map +1 -0
  288. package/dist/platform.js +68 -0
  289. package/dist/platform.js.map +1 -0
  290. package/dist/predicates.d.ts +43 -0
  291. package/dist/predicates.d.ts.map +1 -0
  292. package/dist/predicates.js +65 -0
  293. package/dist/predicates.js.map +1 -0
  294. package/dist/processing-messages.schema.json +2525 -0
  295. package/dist/production-authoring.d.ts +757 -0
  296. package/dist/production-authoring.d.ts.map +1 -0
  297. package/dist/production-authoring.js +736 -0
  298. package/dist/production-authoring.js.map +1 -0
  299. package/dist/render-record.d.ts +86 -0
  300. package/dist/render-record.d.ts.map +1 -0
  301. package/dist/render-record.js +133 -0
  302. package/dist/render-record.js.map +1 -0
  303. package/dist/resource-id.d.ts +22 -0
  304. package/dist/resource-id.d.ts.map +1 -0
  305. package/dist/resource-id.js +32 -0
  306. package/dist/resource-id.js.map +1 -0
  307. package/dist/resource-uri.d.ts +15 -0
  308. package/dist/resource-uri.d.ts.map +1 -0
  309. package/dist/resource-uri.js +88 -0
  310. package/dist/resource-uri.js.map +1 -0
  311. package/dist/sandbox-capability.d.ts +86 -0
  312. package/dist/sandbox-capability.d.ts.map +1 -0
  313. package/dist/sandbox-capability.js +106 -0
  314. package/dist/sandbox-capability.js.map +1 -0
  315. package/dist/sandbox-host.d.ts +98 -0
  316. package/dist/sandbox-host.d.ts.map +1 -0
  317. package/dist/sandbox-host.js +311 -0
  318. package/dist/sandbox-host.js.map +1 -0
  319. package/dist/sandbox-package.d.ts +674 -0
  320. package/dist/sandbox-package.d.ts.map +1 -0
  321. package/dist/sandbox-package.js +622 -0
  322. package/dist/sandbox-package.js.map +1 -0
  323. package/dist/sandbox-wasm.d.ts +84 -0
  324. package/dist/sandbox-wasm.d.ts.map +1 -0
  325. package/dist/sandbox-wasm.js +139 -0
  326. package/dist/sandbox-wasm.js.map +1 -0
  327. package/dist/screenplay-authoring.d.ts +69 -0
  328. package/dist/screenplay-authoring.d.ts.map +1 -0
  329. package/dist/screenplay-authoring.js +351 -0
  330. package/dist/screenplay-authoring.js.map +1 -0
  331. package/dist/script-authoring.d.ts +161 -0
  332. package/dist/script-authoring.d.ts.map +1 -0
  333. package/dist/script-authoring.js +503 -0
  334. package/dist/script-authoring.js.map +1 -0
  335. package/dist/script-fill.d.ts +39 -0
  336. package/dist/script-fill.d.ts.map +1 -0
  337. package/dist/script-fill.js +67 -0
  338. package/dist/script-fill.js.map +1 -0
  339. package/dist/script-link.d.ts +110 -0
  340. package/dist/script-link.d.ts.map +1 -0
  341. package/dist/script-link.js +252 -0
  342. package/dist/script-link.js.map +1 -0
  343. package/dist/sha256.d.ts +11 -0
  344. package/dist/sha256.d.ts.map +1 -0
  345. package/dist/sha256.js +110 -0
  346. package/dist/sha256.js.map +1 -0
  347. package/dist/shot-prompt.d.ts +78 -0
  348. package/dist/shot-prompt.d.ts.map +1 -0
  349. package/dist/shot-prompt.js +120 -0
  350. package/dist/shot-prompt.js.map +1 -0
  351. package/dist/skill-document.d.ts +36 -0
  352. package/dist/skill-document.d.ts.map +1 -0
  353. package/dist/skill-document.js +137 -0
  354. package/dist/skill-document.js.map +1 -0
  355. package/dist/style-presets.d.ts +73 -0
  356. package/dist/style-presets.d.ts.map +1 -0
  357. package/dist/style-presets.js +147 -0
  358. package/dist/style-presets.js.map +1 -0
  359. package/dist/supervisor.d.ts +227 -0
  360. package/dist/supervisor.d.ts.map +1 -0
  361. package/dist/supervisor.js +116 -0
  362. package/dist/supervisor.js.map +1 -0
  363. package/dist/token-providers.d.ts +31 -0
  364. package/dist/token-providers.d.ts.map +1 -0
  365. package/dist/token-providers.js +52 -0
  366. package/dist/token-providers.js.map +1 -0
  367. package/dist/toolSchemas.d.ts +10 -14
  368. package/dist/toolSchemas.d.ts.map +1 -1
  369. package/dist/toolSchemas.js +13 -23
  370. package/dist/toolSchemas.js.map +1 -1
  371. package/dist/triggers.d.ts +41 -0
  372. package/dist/triggers.d.ts.map +1 -0
  373. package/dist/triggers.js +50 -0
  374. package/dist/triggers.js.map +1 -0
  375. package/dist/trpc-policy.d.ts +3 -0
  376. package/dist/trpc-policy.d.ts.map +1 -0
  377. package/dist/trpc-policy.js +3 -0
  378. package/dist/trpc-policy.js.map +1 -0
  379. package/dist/type-metadata.d.ts +5 -0
  380. package/dist/type-metadata.d.ts.map +1 -1
  381. package/dist/type-metadata.js +17 -8
  382. package/dist/type-metadata.js.map +1 -1
  383. package/dist/typecheck.d.ts.map +1 -1
  384. package/dist/typecheck.js +5 -4
  385. package/dist/typecheck.js.map +1 -1
  386. package/dist/wasm-binary.d.ts +61 -0
  387. package/dist/wasm-binary.d.ts.map +1 -0
  388. package/dist/wasm-binary.js +215 -0
  389. package/dist/wasm-binary.js.map +1 -0
  390. package/dist/workflow-plan.d.ts +197 -0
  391. package/dist/workflow-plan.d.ts.map +1 -0
  392. package/dist/workflow-plan.js +438 -0
  393. package/dist/workflow-plan.js.map +1 -0
  394. package/dist/wrap-primitives.d.ts +0 -11
  395. package/dist/wrap-primitives.d.ts.map +1 -1
  396. package/dist/wrap-primitives.js +3 -9
  397. package/dist/wrap-primitives.js.map +1 -1
  398. package/dist/ws-commands.d.ts +665 -0
  399. package/dist/ws-commands.d.ts.map +1 -0
  400. package/dist/ws-commands.js +610 -0
  401. package/dist/ws-commands.js.map +1 -0
  402. package/dist/zod-schema.d.ts +20 -0
  403. package/dist/zod-schema.d.ts.map +1 -0
  404. package/dist/zod-schema.js +298 -0
  405. package/dist/zod-schema.js.map +1 -0
  406. package/package.json +84 -7
  407. package/schema/sdk-v1.asyncapi.implemented.json +65 -0
  408. package/schema/sdk-v1.asyncapi.json +65 -0
  409. package/schema/sdk-v1.discovery.schema.json +1218 -0
  410. package/schema/sdk-v1.execution.schema.json +2792 -0
  411. package/schema/sdk-v1.lifecycle.schema.json +1031 -0
  412. package/schema/sdk-v1.manifest.json +71 -0
  413. package/schema/sdk-v1.openapi.implemented.json +730 -0
  414. package/schema/sdk-v1.openapi.json +730 -0
  415. package/schema/sdk-v1.operations.json +732 -0
  416. package/dist/agent-protocol.d.ts +0 -217
  417. package/dist/agent-protocol.d.ts.map +0 -1
  418. package/dist/agent-protocol.js +0 -85
  419. package/dist/agent-protocol.js.map +0 -1
@@ -0,0 +1,2525 @@
1
+ {
2
+ "$id": "https://nodetool.ai/schemas/protocol/processing-messages.schema.json",
3
+ "description": "Every ProcessingMessage variant NodeTool streams over WebSocket/msgpack and the Python stdio bridge, generated from @nodetool-ai/protocol's Zod schemas.",
4
+ "title": "NodeTool ProcessingMessage",
5
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
6
+ "oneOf": [
7
+ {
8
+ "type": "object",
9
+ "properties": {
10
+ "type": {
11
+ "type": "string",
12
+ "const": "job_update"
13
+ },
14
+ "status": {
15
+ "type": "string"
16
+ },
17
+ "job_id": {
18
+ "anyOf": [
19
+ {
20
+ "type": "string"
21
+ },
22
+ {
23
+ "type": "null"
24
+ }
25
+ ]
26
+ },
27
+ "workflow_id": {
28
+ "anyOf": [
29
+ {
30
+ "type": "string"
31
+ },
32
+ {
33
+ "type": "null"
34
+ }
35
+ ]
36
+ },
37
+ "message": {
38
+ "anyOf": [
39
+ {
40
+ "type": "string"
41
+ },
42
+ {
43
+ "type": "null"
44
+ }
45
+ ]
46
+ },
47
+ "result": {
48
+ "anyOf": [
49
+ {
50
+ "type": "object",
51
+ "propertyNames": {
52
+ "type": "string"
53
+ },
54
+ "additionalProperties": {}
55
+ },
56
+ {
57
+ "type": "null"
58
+ }
59
+ ]
60
+ },
61
+ "error": {
62
+ "anyOf": [
63
+ {
64
+ "type": "string"
65
+ },
66
+ {
67
+ "type": "null"
68
+ }
69
+ ]
70
+ },
71
+ "traceback": {
72
+ "anyOf": [
73
+ {
74
+ "type": "string"
75
+ },
76
+ {
77
+ "type": "null"
78
+ }
79
+ ]
80
+ },
81
+ "duration": {
82
+ "anyOf": [
83
+ {
84
+ "type": "number"
85
+ },
86
+ {
87
+ "type": "null"
88
+ }
89
+ ]
90
+ },
91
+ "queue_position": {
92
+ "anyOf": [
93
+ {
94
+ "type": "number"
95
+ },
96
+ {
97
+ "type": "null"
98
+ }
99
+ ]
100
+ },
101
+ "validation_issues": {
102
+ "anyOf": [
103
+ {
104
+ "type": "array",
105
+ "items": {
106
+ "type": "object",
107
+ "properties": {
108
+ "node_id": {
109
+ "type": "string"
110
+ },
111
+ "node_type": {
112
+ "anyOf": [
113
+ {
114
+ "type": "string"
115
+ },
116
+ {
117
+ "type": "null"
118
+ }
119
+ ]
120
+ },
121
+ "property": {
122
+ "type": "string"
123
+ },
124
+ "message": {
125
+ "type": "string"
126
+ }
127
+ },
128
+ "required": [
129
+ "node_id",
130
+ "property",
131
+ "message"
132
+ ],
133
+ "additionalProperties": false
134
+ }
135
+ },
136
+ {
137
+ "type": "null"
138
+ }
139
+ ]
140
+ },
141
+ "error_code": {
142
+ "anyOf": [
143
+ {
144
+ "type": "string"
145
+ },
146
+ {
147
+ "type": "null"
148
+ }
149
+ ]
150
+ }
151
+ },
152
+ "required": [
153
+ "type",
154
+ "status"
155
+ ],
156
+ "additionalProperties": false
157
+ },
158
+ {
159
+ "type": "object",
160
+ "properties": {
161
+ "type": {
162
+ "type": "string",
163
+ "const": "node_update"
164
+ },
165
+ "node_id": {
166
+ "type": "string"
167
+ },
168
+ "node_name": {
169
+ "type": "string"
170
+ },
171
+ "node_type": {
172
+ "type": "string"
173
+ },
174
+ "status": {
175
+ "type": "string"
176
+ },
177
+ "error": {
178
+ "anyOf": [
179
+ {
180
+ "type": "string"
181
+ },
182
+ {
183
+ "type": "null"
184
+ }
185
+ ]
186
+ },
187
+ "error_detail": {
188
+ "anyOf": [
189
+ {
190
+ "type": "object",
191
+ "properties": {
192
+ "code": {
193
+ "type": "string"
194
+ },
195
+ "provider": {
196
+ "anyOf": [
197
+ {
198
+ "type": "string"
199
+ },
200
+ {
201
+ "type": "null"
202
+ }
203
+ ]
204
+ },
205
+ "secret_key": {
206
+ "anyOf": [
207
+ {
208
+ "type": "string"
209
+ },
210
+ {
211
+ "type": "null"
212
+ }
213
+ ]
214
+ }
215
+ },
216
+ "required": [
217
+ "code"
218
+ ],
219
+ "additionalProperties": false
220
+ },
221
+ {
222
+ "type": "null"
223
+ }
224
+ ]
225
+ },
226
+ "result": {
227
+ "anyOf": [
228
+ {
229
+ "type": "object",
230
+ "propertyNames": {
231
+ "type": "string"
232
+ },
233
+ "additionalProperties": {}
234
+ },
235
+ {
236
+ "type": "null"
237
+ }
238
+ ]
239
+ },
240
+ "properties": {
241
+ "anyOf": [
242
+ {
243
+ "type": "object",
244
+ "propertyNames": {
245
+ "type": "string"
246
+ },
247
+ "additionalProperties": {}
248
+ },
249
+ {
250
+ "type": "null"
251
+ }
252
+ ]
253
+ },
254
+ "provider_cost": {
255
+ "anyOf": [
256
+ {
257
+ "type": "object",
258
+ "properties": {
259
+ "provider": {
260
+ "type": "string"
261
+ },
262
+ "amount": {
263
+ "type": "number"
264
+ },
265
+ "unit": {
266
+ "type": "string"
267
+ },
268
+ "model": {
269
+ "anyOf": [
270
+ {
271
+ "type": "string"
272
+ },
273
+ {
274
+ "type": "null"
275
+ }
276
+ ]
277
+ },
278
+ "billing_unit": {
279
+ "anyOf": [
280
+ {
281
+ "type": "string"
282
+ },
283
+ {
284
+ "type": "null"
285
+ }
286
+ ]
287
+ },
288
+ "quantity": {
289
+ "anyOf": [
290
+ {
291
+ "type": "number"
292
+ },
293
+ {
294
+ "type": "null"
295
+ }
296
+ ]
297
+ },
298
+ "unit_price": {
299
+ "anyOf": [
300
+ {
301
+ "type": "number"
302
+ },
303
+ {
304
+ "type": "null"
305
+ }
306
+ ]
307
+ },
308
+ "currency": {
309
+ "anyOf": [
310
+ {
311
+ "type": "string"
312
+ },
313
+ {
314
+ "type": "null"
315
+ }
316
+ ]
317
+ },
318
+ "input_tokens": {
319
+ "anyOf": [
320
+ {
321
+ "type": "number"
322
+ },
323
+ {
324
+ "type": "null"
325
+ }
326
+ ]
327
+ },
328
+ "output_tokens": {
329
+ "anyOf": [
330
+ {
331
+ "type": "number"
332
+ },
333
+ {
334
+ "type": "null"
335
+ }
336
+ ]
337
+ },
338
+ "cached_tokens": {
339
+ "anyOf": [
340
+ {
341
+ "type": "number"
342
+ },
343
+ {
344
+ "type": "null"
345
+ }
346
+ ]
347
+ },
348
+ "provider_request_id": {
349
+ "anyOf": [
350
+ {
351
+ "type": "string"
352
+ },
353
+ {
354
+ "type": "null"
355
+ }
356
+ ]
357
+ }
358
+ },
359
+ "required": [
360
+ "provider",
361
+ "amount",
362
+ "unit"
363
+ ],
364
+ "additionalProperties": false
365
+ },
366
+ {
367
+ "type": "null"
368
+ }
369
+ ]
370
+ },
371
+ "workflow_id": {
372
+ "anyOf": [
373
+ {
374
+ "type": "string"
375
+ },
376
+ {
377
+ "type": "null"
378
+ }
379
+ ]
380
+ },
381
+ "job_id": {
382
+ "anyOf": [
383
+ {
384
+ "type": "string"
385
+ },
386
+ {
387
+ "type": "null"
388
+ }
389
+ ]
390
+ }
391
+ },
392
+ "required": [
393
+ "type",
394
+ "node_id",
395
+ "node_name",
396
+ "node_type",
397
+ "status"
398
+ ],
399
+ "additionalProperties": false
400
+ },
401
+ {
402
+ "type": "object",
403
+ "properties": {
404
+ "type": {
405
+ "type": "string",
406
+ "const": "generation_complete"
407
+ },
408
+ "node_id": {
409
+ "type": "string"
410
+ },
411
+ "node_name": {
412
+ "type": "string"
413
+ },
414
+ "node_type": {
415
+ "type": "string"
416
+ },
417
+ "index": {
418
+ "type": "number"
419
+ },
420
+ "outputs": {
421
+ "type": "object",
422
+ "propertyNames": {
423
+ "type": "string"
424
+ },
425
+ "additionalProperties": {}
426
+ },
427
+ "properties": {
428
+ "anyOf": [
429
+ {
430
+ "type": "object",
431
+ "propertyNames": {
432
+ "type": "string"
433
+ },
434
+ "additionalProperties": {}
435
+ },
436
+ {
437
+ "type": "null"
438
+ }
439
+ ]
440
+ },
441
+ "job_id": {
442
+ "anyOf": [
443
+ {
444
+ "type": "string"
445
+ },
446
+ {
447
+ "type": "null"
448
+ }
449
+ ]
450
+ },
451
+ "workflow_id": {
452
+ "anyOf": [
453
+ {
454
+ "type": "string"
455
+ },
456
+ {
457
+ "type": "null"
458
+ }
459
+ ]
460
+ }
461
+ },
462
+ "required": [
463
+ "type",
464
+ "node_id",
465
+ "node_name",
466
+ "node_type",
467
+ "outputs"
468
+ ],
469
+ "additionalProperties": false
470
+ },
471
+ {
472
+ "type": "object",
473
+ "properties": {
474
+ "type": {
475
+ "type": "string",
476
+ "const": "node_progress"
477
+ },
478
+ "node_id": {
479
+ "type": "string"
480
+ },
481
+ "progress": {
482
+ "type": "number"
483
+ },
484
+ "total": {
485
+ "type": "number"
486
+ },
487
+ "chunk": {
488
+ "type": "string"
489
+ },
490
+ "workflow_id": {
491
+ "anyOf": [
492
+ {
493
+ "type": "string"
494
+ },
495
+ {
496
+ "type": "null"
497
+ }
498
+ ]
499
+ },
500
+ "job_id": {
501
+ "anyOf": [
502
+ {
503
+ "type": "string"
504
+ },
505
+ {
506
+ "type": "null"
507
+ }
508
+ ]
509
+ }
510
+ },
511
+ "required": [
512
+ "type",
513
+ "node_id",
514
+ "progress",
515
+ "total"
516
+ ],
517
+ "additionalProperties": false
518
+ },
519
+ {
520
+ "type": "object",
521
+ "properties": {
522
+ "type": {
523
+ "type": "string",
524
+ "const": "edge_update"
525
+ },
526
+ "workflow_id": {
527
+ "anyOf": [
528
+ {
529
+ "type": "string"
530
+ },
531
+ {
532
+ "type": "null"
533
+ }
534
+ ]
535
+ },
536
+ "job_id": {
537
+ "anyOf": [
538
+ {
539
+ "type": "string"
540
+ },
541
+ {
542
+ "type": "null"
543
+ }
544
+ ]
545
+ },
546
+ "edge_id": {
547
+ "type": "string"
548
+ },
549
+ "status": {
550
+ "type": "string"
551
+ },
552
+ "counter": {
553
+ "anyOf": [
554
+ {
555
+ "type": "number"
556
+ },
557
+ {
558
+ "type": "null"
559
+ }
560
+ ]
561
+ }
562
+ },
563
+ "required": [
564
+ "type",
565
+ "edge_id",
566
+ "status"
567
+ ],
568
+ "additionalProperties": false
569
+ },
570
+ {
571
+ "type": "object",
572
+ "properties": {
573
+ "type": {
574
+ "type": "string",
575
+ "const": "output_update"
576
+ },
577
+ "node_id": {
578
+ "type": "string"
579
+ },
580
+ "node_name": {
581
+ "type": "string"
582
+ },
583
+ "output_name": {
584
+ "type": "string"
585
+ },
586
+ "value": {},
587
+ "output_type": {
588
+ "type": "string"
589
+ },
590
+ "metadata": {
591
+ "type": "object",
592
+ "propertyNames": {
593
+ "type": "string"
594
+ },
595
+ "additionalProperties": {}
596
+ },
597
+ "disposition": {
598
+ "type": "string",
599
+ "enum": [
600
+ "append",
601
+ "replace"
602
+ ]
603
+ },
604
+ "done": {
605
+ "type": "boolean"
606
+ },
607
+ "workflow_id": {
608
+ "anyOf": [
609
+ {
610
+ "type": "string"
611
+ },
612
+ {
613
+ "type": "null"
614
+ }
615
+ ]
616
+ },
617
+ "job_id": {
618
+ "anyOf": [
619
+ {
620
+ "type": "string"
621
+ },
622
+ {
623
+ "type": "null"
624
+ }
625
+ ]
626
+ }
627
+ },
628
+ "required": [
629
+ "type",
630
+ "node_id",
631
+ "node_name",
632
+ "output_name",
633
+ "value",
634
+ "output_type",
635
+ "metadata"
636
+ ],
637
+ "additionalProperties": false
638
+ },
639
+ {
640
+ "type": "object",
641
+ "properties": {
642
+ "type": {
643
+ "type": "string",
644
+ "const": "save_update"
645
+ },
646
+ "node_id": {
647
+ "type": "string"
648
+ },
649
+ "name": {
650
+ "type": "string"
651
+ },
652
+ "value": {},
653
+ "output_type": {
654
+ "type": "string"
655
+ },
656
+ "metadata": {
657
+ "type": "object",
658
+ "propertyNames": {
659
+ "type": "string"
660
+ },
661
+ "additionalProperties": {}
662
+ }
663
+ },
664
+ "required": [
665
+ "type",
666
+ "node_id",
667
+ "name",
668
+ "value",
669
+ "output_type",
670
+ "metadata"
671
+ ],
672
+ "additionalProperties": false
673
+ },
674
+ {
675
+ "type": "object",
676
+ "properties": {
677
+ "type": {
678
+ "type": "string",
679
+ "const": "binary_update"
680
+ },
681
+ "node_id": {
682
+ "type": "string"
683
+ },
684
+ "output_name": {
685
+ "type": "string"
686
+ },
687
+ "binary": {}
688
+ },
689
+ "required": [
690
+ "type",
691
+ "node_id",
692
+ "output_name",
693
+ "binary"
694
+ ],
695
+ "additionalProperties": false
696
+ },
697
+ {
698
+ "type": "object",
699
+ "properties": {
700
+ "type": {
701
+ "type": "string",
702
+ "const": "log_update"
703
+ },
704
+ "node_id": {
705
+ "type": "string"
706
+ },
707
+ "node_name": {
708
+ "type": "string"
709
+ },
710
+ "content": {
711
+ "type": "string"
712
+ },
713
+ "severity": {
714
+ "type": "string",
715
+ "enum": [
716
+ "info",
717
+ "warning",
718
+ "error"
719
+ ]
720
+ },
721
+ "workflow_id": {
722
+ "anyOf": [
723
+ {
724
+ "type": "string"
725
+ },
726
+ {
727
+ "type": "null"
728
+ }
729
+ ]
730
+ }
731
+ },
732
+ "required": [
733
+ "type",
734
+ "node_id",
735
+ "node_name",
736
+ "content",
737
+ "severity"
738
+ ],
739
+ "additionalProperties": false
740
+ },
741
+ {
742
+ "type": "object",
743
+ "properties": {
744
+ "type": {
745
+ "type": "string",
746
+ "const": "notification"
747
+ },
748
+ "node_id": {
749
+ "type": "string"
750
+ },
751
+ "content": {
752
+ "type": "string"
753
+ },
754
+ "severity": {
755
+ "type": "string",
756
+ "enum": [
757
+ "info",
758
+ "warning",
759
+ "error"
760
+ ]
761
+ },
762
+ "workflow_id": {
763
+ "anyOf": [
764
+ {
765
+ "type": "string"
766
+ },
767
+ {
768
+ "type": "null"
769
+ }
770
+ ]
771
+ }
772
+ },
773
+ "required": [
774
+ "type",
775
+ "node_id",
776
+ "content",
777
+ "severity"
778
+ ],
779
+ "additionalProperties": false
780
+ },
781
+ {
782
+ "type": "object",
783
+ "properties": {
784
+ "type": {
785
+ "type": "string",
786
+ "const": "error"
787
+ },
788
+ "message": {
789
+ "type": "string"
790
+ },
791
+ "thread_id": {
792
+ "anyOf": [
793
+ {
794
+ "type": "string"
795
+ },
796
+ {
797
+ "type": "null"
798
+ }
799
+ ]
800
+ },
801
+ "workflow_id": {
802
+ "anyOf": [
803
+ {
804
+ "type": "string"
805
+ },
806
+ {
807
+ "type": "null"
808
+ }
809
+ ]
810
+ }
811
+ },
812
+ "required": [
813
+ "type",
814
+ "message"
815
+ ],
816
+ "additionalProperties": false
817
+ },
818
+ {
819
+ "type": "object",
820
+ "properties": {
821
+ "type": {
822
+ "type": "string",
823
+ "const": "tool_call_update"
824
+ },
825
+ "node_id": {
826
+ "anyOf": [
827
+ {
828
+ "type": "string"
829
+ },
830
+ {
831
+ "type": "null"
832
+ }
833
+ ]
834
+ },
835
+ "thread_id": {
836
+ "anyOf": [
837
+ {
838
+ "type": "string"
839
+ },
840
+ {
841
+ "type": "null"
842
+ }
843
+ ]
844
+ },
845
+ "workflow_id": {
846
+ "anyOf": [
847
+ {
848
+ "type": "string"
849
+ },
850
+ {
851
+ "type": "null"
852
+ }
853
+ ]
854
+ },
855
+ "tool_call_id": {
856
+ "anyOf": [
857
+ {
858
+ "type": "string"
859
+ },
860
+ {
861
+ "type": "null"
862
+ }
863
+ ]
864
+ },
865
+ "name": {
866
+ "type": "string"
867
+ },
868
+ "args": {
869
+ "type": "object",
870
+ "propertyNames": {
871
+ "type": "string"
872
+ },
873
+ "additionalProperties": {}
874
+ },
875
+ "message": {
876
+ "anyOf": [
877
+ {
878
+ "type": "string"
879
+ },
880
+ {
881
+ "type": "null"
882
+ }
883
+ ]
884
+ },
885
+ "step_id": {
886
+ "anyOf": [
887
+ {
888
+ "type": "string"
889
+ },
890
+ {
891
+ "type": "null"
892
+ }
893
+ ]
894
+ },
895
+ "agent_execution_id": {
896
+ "anyOf": [
897
+ {
898
+ "type": "string"
899
+ },
900
+ {
901
+ "type": "null"
902
+ }
903
+ ]
904
+ },
905
+ "parent_tool_call_id": {
906
+ "anyOf": [
907
+ {
908
+ "type": "string"
909
+ },
910
+ {
911
+ "type": "null"
912
+ }
913
+ ]
914
+ },
915
+ "subtask_depth": {
916
+ "anyOf": [
917
+ {
918
+ "type": "number"
919
+ },
920
+ {
921
+ "type": "null"
922
+ }
923
+ ]
924
+ }
925
+ },
926
+ "required": [
927
+ "type",
928
+ "name",
929
+ "args"
930
+ ],
931
+ "additionalProperties": false
932
+ },
933
+ {
934
+ "type": "object",
935
+ "properties": {
936
+ "type": {
937
+ "type": "string",
938
+ "const": "tool_result_update"
939
+ },
940
+ "node_id": {
941
+ "type": "string"
942
+ },
943
+ "thread_id": {
944
+ "anyOf": [
945
+ {
946
+ "type": "string"
947
+ },
948
+ {
949
+ "type": "null"
950
+ }
951
+ ]
952
+ },
953
+ "workflow_id": {
954
+ "anyOf": [
955
+ {
956
+ "type": "string"
957
+ },
958
+ {
959
+ "type": "null"
960
+ }
961
+ ]
962
+ },
963
+ "result": {
964
+ "type": "object",
965
+ "propertyNames": {
966
+ "type": "string"
967
+ },
968
+ "additionalProperties": {}
969
+ },
970
+ "tool_call_id": {
971
+ "anyOf": [
972
+ {
973
+ "type": "string"
974
+ },
975
+ {
976
+ "type": "null"
977
+ }
978
+ ]
979
+ },
980
+ "name": {
981
+ "anyOf": [
982
+ {
983
+ "type": "string"
984
+ },
985
+ {
986
+ "type": "null"
987
+ }
988
+ ]
989
+ },
990
+ "is_error": {
991
+ "type": "boolean"
992
+ },
993
+ "parent_tool_call_id": {
994
+ "anyOf": [
995
+ {
996
+ "type": "string"
997
+ },
998
+ {
999
+ "type": "null"
1000
+ }
1001
+ ]
1002
+ },
1003
+ "subtask_depth": {
1004
+ "anyOf": [
1005
+ {
1006
+ "type": "number"
1007
+ },
1008
+ {
1009
+ "type": "null"
1010
+ }
1011
+ ]
1012
+ }
1013
+ },
1014
+ "required": [
1015
+ "type",
1016
+ "node_id",
1017
+ "result"
1018
+ ],
1019
+ "additionalProperties": false
1020
+ },
1021
+ {
1022
+ "type": "object",
1023
+ "properties": {
1024
+ "type": {
1025
+ "type": "string",
1026
+ "const": "task_update"
1027
+ },
1028
+ "node_id": {
1029
+ "anyOf": [
1030
+ {
1031
+ "type": "string"
1032
+ },
1033
+ {
1034
+ "type": "null"
1035
+ }
1036
+ ]
1037
+ },
1038
+ "thread_id": {
1039
+ "anyOf": [
1040
+ {
1041
+ "type": "string"
1042
+ },
1043
+ {
1044
+ "type": "null"
1045
+ }
1046
+ ]
1047
+ },
1048
+ "workflow_id": {
1049
+ "anyOf": [
1050
+ {
1051
+ "type": "string"
1052
+ },
1053
+ {
1054
+ "type": "null"
1055
+ }
1056
+ ]
1057
+ },
1058
+ "task": {
1059
+ "type": "object",
1060
+ "properties": {
1061
+ "id": {
1062
+ "type": "string"
1063
+ },
1064
+ "name": {
1065
+ "type": "string"
1066
+ },
1067
+ "title": {
1068
+ "type": "string"
1069
+ },
1070
+ "description": {
1071
+ "type": "string"
1072
+ },
1073
+ "instructions": {
1074
+ "type": "string"
1075
+ },
1076
+ "status": {
1077
+ "type": "string"
1078
+ },
1079
+ "steps": {
1080
+ "type": "array",
1081
+ "items": {
1082
+ "type": "object",
1083
+ "properties": {
1084
+ "id": {
1085
+ "type": "string"
1086
+ },
1087
+ "name": {
1088
+ "type": "string"
1089
+ },
1090
+ "instructions": {
1091
+ "type": "string"
1092
+ },
1093
+ "status": {
1094
+ "type": "string"
1095
+ },
1096
+ "tool": {
1097
+ "anyOf": [
1098
+ {
1099
+ "type": "string"
1100
+ },
1101
+ {
1102
+ "type": "null"
1103
+ }
1104
+ ]
1105
+ },
1106
+ "result": {},
1107
+ "error": {
1108
+ "anyOf": [
1109
+ {
1110
+ "type": "string"
1111
+ },
1112
+ {
1113
+ "type": "null"
1114
+ }
1115
+ ]
1116
+ },
1117
+ "completed": {
1118
+ "type": "boolean"
1119
+ },
1120
+ "start_time": {
1121
+ "type": "number"
1122
+ }
1123
+ },
1124
+ "additionalProperties": {}
1125
+ }
1126
+ },
1127
+ "result": {},
1128
+ "error": {
1129
+ "anyOf": [
1130
+ {
1131
+ "type": "string"
1132
+ },
1133
+ {
1134
+ "type": "null"
1135
+ }
1136
+ ]
1137
+ }
1138
+ },
1139
+ "additionalProperties": {}
1140
+ },
1141
+ "step": {
1142
+ "anyOf": [
1143
+ {
1144
+ "type": "object",
1145
+ "properties": {
1146
+ "id": {
1147
+ "type": "string"
1148
+ },
1149
+ "name": {
1150
+ "type": "string"
1151
+ },
1152
+ "instructions": {
1153
+ "type": "string"
1154
+ },
1155
+ "status": {
1156
+ "type": "string"
1157
+ },
1158
+ "tool": {
1159
+ "anyOf": [
1160
+ {
1161
+ "type": "string"
1162
+ },
1163
+ {
1164
+ "type": "null"
1165
+ }
1166
+ ]
1167
+ },
1168
+ "result": {},
1169
+ "error": {
1170
+ "anyOf": [
1171
+ {
1172
+ "type": "string"
1173
+ },
1174
+ {
1175
+ "type": "null"
1176
+ }
1177
+ ]
1178
+ },
1179
+ "completed": {
1180
+ "type": "boolean"
1181
+ },
1182
+ "start_time": {
1183
+ "type": "number"
1184
+ }
1185
+ },
1186
+ "additionalProperties": {}
1187
+ },
1188
+ {
1189
+ "type": "null"
1190
+ }
1191
+ ]
1192
+ },
1193
+ "event": {
1194
+ "type": "string",
1195
+ "enum": [
1196
+ "task_planned",
1197
+ "task_removed",
1198
+ "task_created",
1199
+ "step_started",
1200
+ "entered_conclusion_stage",
1201
+ "step_completed",
1202
+ "step_failed",
1203
+ "task_completed",
1204
+ "task_failed"
1205
+ ]
1206
+ }
1207
+ },
1208
+ "required": [
1209
+ "type",
1210
+ "task",
1211
+ "event"
1212
+ ],
1213
+ "additionalProperties": false
1214
+ },
1215
+ {
1216
+ "type": "object",
1217
+ "properties": {
1218
+ "type": {
1219
+ "type": "string",
1220
+ "const": "step_result"
1221
+ },
1222
+ "step": {
1223
+ "type": "object",
1224
+ "properties": {
1225
+ "id": {
1226
+ "type": "string"
1227
+ },
1228
+ "name": {
1229
+ "type": "string"
1230
+ },
1231
+ "instructions": {
1232
+ "type": "string"
1233
+ },
1234
+ "status": {
1235
+ "type": "string"
1236
+ },
1237
+ "tool": {
1238
+ "anyOf": [
1239
+ {
1240
+ "type": "string"
1241
+ },
1242
+ {
1243
+ "type": "null"
1244
+ }
1245
+ ]
1246
+ },
1247
+ "result": {},
1248
+ "error": {
1249
+ "anyOf": [
1250
+ {
1251
+ "type": "string"
1252
+ },
1253
+ {
1254
+ "type": "null"
1255
+ }
1256
+ ]
1257
+ },
1258
+ "completed": {
1259
+ "type": "boolean"
1260
+ },
1261
+ "start_time": {
1262
+ "type": "number"
1263
+ }
1264
+ },
1265
+ "additionalProperties": {}
1266
+ },
1267
+ "result": {},
1268
+ "error": {
1269
+ "anyOf": [
1270
+ {
1271
+ "type": "string"
1272
+ },
1273
+ {
1274
+ "type": "null"
1275
+ }
1276
+ ]
1277
+ },
1278
+ "is_task_result": {
1279
+ "type": "boolean"
1280
+ },
1281
+ "thread_id": {
1282
+ "anyOf": [
1283
+ {
1284
+ "type": "string"
1285
+ },
1286
+ {
1287
+ "type": "null"
1288
+ }
1289
+ ]
1290
+ },
1291
+ "workflow_id": {
1292
+ "anyOf": [
1293
+ {
1294
+ "type": "string"
1295
+ },
1296
+ {
1297
+ "type": "null"
1298
+ }
1299
+ ]
1300
+ }
1301
+ },
1302
+ "required": [
1303
+ "type",
1304
+ "step",
1305
+ "result"
1306
+ ],
1307
+ "additionalProperties": false
1308
+ },
1309
+ {
1310
+ "type": "object",
1311
+ "properties": {
1312
+ "type": {
1313
+ "type": "string",
1314
+ "const": "planning_update"
1315
+ },
1316
+ "node_id": {
1317
+ "anyOf": [
1318
+ {
1319
+ "type": "string"
1320
+ },
1321
+ {
1322
+ "type": "null"
1323
+ }
1324
+ ]
1325
+ },
1326
+ "thread_id": {
1327
+ "anyOf": [
1328
+ {
1329
+ "type": "string"
1330
+ },
1331
+ {
1332
+ "type": "null"
1333
+ }
1334
+ ]
1335
+ },
1336
+ "workflow_id": {
1337
+ "anyOf": [
1338
+ {
1339
+ "type": "string"
1340
+ },
1341
+ {
1342
+ "type": "null"
1343
+ }
1344
+ ]
1345
+ },
1346
+ "phase": {
1347
+ "type": "string"
1348
+ },
1349
+ "status": {
1350
+ "type": "string"
1351
+ },
1352
+ "content": {
1353
+ "anyOf": [
1354
+ {
1355
+ "type": "string"
1356
+ },
1357
+ {
1358
+ "type": "null"
1359
+ }
1360
+ ]
1361
+ }
1362
+ },
1363
+ "required": [
1364
+ "type",
1365
+ "phase",
1366
+ "status"
1367
+ ],
1368
+ "additionalProperties": false
1369
+ },
1370
+ {
1371
+ "type": "object",
1372
+ "properties": {
1373
+ "type": {
1374
+ "type": "string",
1375
+ "const": "chunk"
1376
+ },
1377
+ "node_id": {
1378
+ "anyOf": [
1379
+ {
1380
+ "type": "string"
1381
+ },
1382
+ {
1383
+ "type": "null"
1384
+ }
1385
+ ]
1386
+ },
1387
+ "thread_id": {
1388
+ "anyOf": [
1389
+ {
1390
+ "type": "string"
1391
+ },
1392
+ {
1393
+ "type": "null"
1394
+ }
1395
+ ]
1396
+ },
1397
+ "workflow_id": {
1398
+ "anyOf": [
1399
+ {
1400
+ "type": "string"
1401
+ },
1402
+ {
1403
+ "type": "null"
1404
+ }
1405
+ ]
1406
+ },
1407
+ "job_id": {
1408
+ "anyOf": [
1409
+ {
1410
+ "type": "string"
1411
+ },
1412
+ {
1413
+ "type": "null"
1414
+ }
1415
+ ]
1416
+ },
1417
+ "content_type": {
1418
+ "type": "string",
1419
+ "enum": [
1420
+ "text",
1421
+ "audio",
1422
+ "image",
1423
+ "video",
1424
+ "document",
1425
+ "tool_call",
1426
+ "agent_status"
1427
+ ]
1428
+ },
1429
+ "content": {
1430
+ "anyOf": [
1431
+ {
1432
+ "type": "string"
1433
+ },
1434
+ {}
1435
+ ]
1436
+ },
1437
+ "content_metadata": {
1438
+ "type": "object",
1439
+ "propertyNames": {
1440
+ "type": "string"
1441
+ },
1442
+ "additionalProperties": {}
1443
+ },
1444
+ "done": {
1445
+ "type": "boolean"
1446
+ },
1447
+ "thinking": {
1448
+ "type": "boolean"
1449
+ },
1450
+ "parent_tool_call_id": {
1451
+ "anyOf": [
1452
+ {
1453
+ "type": "string"
1454
+ },
1455
+ {
1456
+ "type": "null"
1457
+ }
1458
+ ]
1459
+ },
1460
+ "subtask_depth": {
1461
+ "anyOf": [
1462
+ {
1463
+ "type": "number"
1464
+ },
1465
+ {
1466
+ "type": "null"
1467
+ }
1468
+ ]
1469
+ }
1470
+ },
1471
+ "required": [
1472
+ "type",
1473
+ "content"
1474
+ ],
1475
+ "additionalProperties": false
1476
+ },
1477
+ {
1478
+ "type": "object",
1479
+ "properties": {
1480
+ "type": {
1481
+ "type": "string",
1482
+ "const": "prediction"
1483
+ },
1484
+ "id": {
1485
+ "type": "string"
1486
+ },
1487
+ "user_id": {
1488
+ "type": "string"
1489
+ },
1490
+ "node_id": {
1491
+ "type": "string"
1492
+ },
1493
+ "workflow_id": {
1494
+ "anyOf": [
1495
+ {
1496
+ "type": "string"
1497
+ },
1498
+ {
1499
+ "type": "null"
1500
+ }
1501
+ ]
1502
+ },
1503
+ "provider": {
1504
+ "anyOf": [
1505
+ {
1506
+ "type": "string"
1507
+ },
1508
+ {
1509
+ "type": "null"
1510
+ }
1511
+ ]
1512
+ },
1513
+ "model": {
1514
+ "anyOf": [
1515
+ {
1516
+ "type": "string"
1517
+ },
1518
+ {
1519
+ "type": "null"
1520
+ }
1521
+ ]
1522
+ },
1523
+ "capability": {
1524
+ "anyOf": [
1525
+ {
1526
+ "type": "string"
1527
+ },
1528
+ {
1529
+ "type": "null"
1530
+ }
1531
+ ]
1532
+ },
1533
+ "version": {
1534
+ "anyOf": [
1535
+ {
1536
+ "type": "string"
1537
+ },
1538
+ {
1539
+ "type": "null"
1540
+ }
1541
+ ]
1542
+ },
1543
+ "node_type": {
1544
+ "anyOf": [
1545
+ {
1546
+ "type": "string"
1547
+ },
1548
+ {
1549
+ "type": "null"
1550
+ }
1551
+ ]
1552
+ },
1553
+ "status": {
1554
+ "type": "string",
1555
+ "enum": [
1556
+ "pending",
1557
+ "running",
1558
+ "recovering",
1559
+ "completed",
1560
+ "failed",
1561
+ "cancelled",
1562
+ "needs_attention",
1563
+ "interrupted"
1564
+ ]
1565
+ },
1566
+ "submission_status": {
1567
+ "type": "string",
1568
+ "enum": [
1569
+ "accepted",
1570
+ "submitting",
1571
+ "submitted",
1572
+ "submission_unknown"
1573
+ ]
1574
+ },
1575
+ "provider_status": {
1576
+ "type": "string",
1577
+ "enum": [
1578
+ "unknown",
1579
+ "queued",
1580
+ "running",
1581
+ "succeeded",
1582
+ "failed",
1583
+ "cancelled"
1584
+ ]
1585
+ },
1586
+ "output_status": {
1587
+ "type": "string",
1588
+ "enum": [
1589
+ "pending",
1590
+ "saving",
1591
+ "ready",
1592
+ "retrying",
1593
+ "unavailable"
1594
+ ]
1595
+ },
1596
+ "attachment_status": {
1597
+ "type": "string",
1598
+ "enum": [
1599
+ "pending",
1600
+ "attached",
1601
+ "superseded",
1602
+ "target_deleted",
1603
+ "retrying"
1604
+ ]
1605
+ },
1606
+ "params": {
1607
+ "type": "object",
1608
+ "propertyNames": {
1609
+ "type": "string"
1610
+ },
1611
+ "additionalProperties": {}
1612
+ },
1613
+ "data": {
1614
+ "anyOf": [
1615
+ {},
1616
+ {
1617
+ "type": "null"
1618
+ }
1619
+ ]
1620
+ },
1621
+ "cost": {
1622
+ "anyOf": [
1623
+ {
1624
+ "type": "number"
1625
+ },
1626
+ {
1627
+ "type": "null"
1628
+ }
1629
+ ]
1630
+ },
1631
+ "logs": {
1632
+ "anyOf": [
1633
+ {
1634
+ "type": "string"
1635
+ },
1636
+ {
1637
+ "type": "null"
1638
+ }
1639
+ ]
1640
+ },
1641
+ "error": {
1642
+ "anyOf": [
1643
+ {
1644
+ "type": "string"
1645
+ },
1646
+ {
1647
+ "type": "null"
1648
+ }
1649
+ ]
1650
+ },
1651
+ "duration": {
1652
+ "anyOf": [
1653
+ {
1654
+ "type": "number"
1655
+ },
1656
+ {
1657
+ "type": "null"
1658
+ }
1659
+ ]
1660
+ },
1661
+ "created_at": {
1662
+ "anyOf": [
1663
+ {
1664
+ "type": "string"
1665
+ },
1666
+ {
1667
+ "type": "null"
1668
+ }
1669
+ ]
1670
+ },
1671
+ "started_at": {
1672
+ "anyOf": [
1673
+ {
1674
+ "type": "string"
1675
+ },
1676
+ {
1677
+ "type": "null"
1678
+ }
1679
+ ]
1680
+ },
1681
+ "completed_at": {
1682
+ "anyOf": [
1683
+ {
1684
+ "type": "string"
1685
+ },
1686
+ {
1687
+ "type": "null"
1688
+ }
1689
+ ]
1690
+ },
1691
+ "origin": {
1692
+ "type": "object",
1693
+ "properties": {
1694
+ "surface": {
1695
+ "type": "string",
1696
+ "enum": [
1697
+ "workflow",
1698
+ "capability",
1699
+ "chat",
1700
+ "rpc",
1701
+ "cli"
1702
+ ]
1703
+ },
1704
+ "thread_id": {
1705
+ "anyOf": [
1706
+ {
1707
+ "type": "string"
1708
+ },
1709
+ {
1710
+ "type": "null"
1711
+ }
1712
+ ]
1713
+ },
1714
+ "tool_call_id": {
1715
+ "anyOf": [
1716
+ {
1717
+ "type": "string"
1718
+ },
1719
+ {
1720
+ "type": "null"
1721
+ }
1722
+ ]
1723
+ },
1724
+ "job_id": {
1725
+ "anyOf": [
1726
+ {
1727
+ "type": "string"
1728
+ },
1729
+ {
1730
+ "type": "null"
1731
+ }
1732
+ ]
1733
+ },
1734
+ "node_id": {
1735
+ "anyOf": [
1736
+ {
1737
+ "type": "string"
1738
+ },
1739
+ {
1740
+ "type": "null"
1741
+ }
1742
+ ]
1743
+ },
1744
+ "request_id": {
1745
+ "anyOf": [
1746
+ {
1747
+ "type": "string"
1748
+ },
1749
+ {
1750
+ "type": "null"
1751
+ }
1752
+ ]
1753
+ }
1754
+ },
1755
+ "required": [
1756
+ "surface"
1757
+ ],
1758
+ "additionalProperties": false
1759
+ },
1760
+ "asset_ids": {
1761
+ "type": "array",
1762
+ "items": {
1763
+ "type": "string"
1764
+ }
1765
+ },
1766
+ "receipt": {
1767
+ "anyOf": [
1768
+ {
1769
+ "type": "object",
1770
+ "properties": {
1771
+ "provider_request_id": {
1772
+ "anyOf": [
1773
+ {
1774
+ "type": "string"
1775
+ },
1776
+ {
1777
+ "type": "null"
1778
+ }
1779
+ ]
1780
+ },
1781
+ "cost": {
1782
+ "anyOf": [
1783
+ {
1784
+ "type": "object",
1785
+ "properties": {
1786
+ "amount": {
1787
+ "type": "number"
1788
+ },
1789
+ "currency": {
1790
+ "anyOf": [
1791
+ {
1792
+ "type": "string"
1793
+ },
1794
+ {
1795
+ "type": "null"
1796
+ }
1797
+ ]
1798
+ },
1799
+ "billing_unit": {
1800
+ "anyOf": [
1801
+ {
1802
+ "type": "string"
1803
+ },
1804
+ {
1805
+ "type": "null"
1806
+ }
1807
+ ]
1808
+ },
1809
+ "quantity": {
1810
+ "anyOf": [
1811
+ {
1812
+ "type": "number"
1813
+ },
1814
+ {
1815
+ "type": "null"
1816
+ }
1817
+ ]
1818
+ },
1819
+ "unit_price": {
1820
+ "anyOf": [
1821
+ {
1822
+ "type": "number"
1823
+ },
1824
+ {
1825
+ "type": "null"
1826
+ }
1827
+ ]
1828
+ }
1829
+ },
1830
+ "required": [
1831
+ "amount"
1832
+ ],
1833
+ "additionalProperties": false
1834
+ },
1835
+ {
1836
+ "type": "null"
1837
+ }
1838
+ ]
1839
+ }
1840
+ },
1841
+ "additionalProperties": false
1842
+ },
1843
+ {
1844
+ "type": "null"
1845
+ }
1846
+ ]
1847
+ }
1848
+ },
1849
+ "required": [
1850
+ "type",
1851
+ "id",
1852
+ "user_id",
1853
+ "node_id",
1854
+ "status"
1855
+ ],
1856
+ "additionalProperties": {}
1857
+ },
1858
+ {
1859
+ "type": "object",
1860
+ "properties": {
1861
+ "type": {
1862
+ "type": "string",
1863
+ "const": "llm_call"
1864
+ },
1865
+ "node_id": {
1866
+ "type": "string"
1867
+ },
1868
+ "node_name": {
1869
+ "anyOf": [
1870
+ {
1871
+ "type": "string"
1872
+ },
1873
+ {
1874
+ "type": "null"
1875
+ }
1876
+ ]
1877
+ },
1878
+ "provider": {
1879
+ "type": "string"
1880
+ },
1881
+ "model": {
1882
+ "type": "string"
1883
+ },
1884
+ "messages": {
1885
+ "type": "array",
1886
+ "items": {
1887
+ "type": "object",
1888
+ "properties": {
1889
+ "role": {
1890
+ "type": "string"
1891
+ },
1892
+ "content": {}
1893
+ },
1894
+ "required": [
1895
+ "role",
1896
+ "content"
1897
+ ],
1898
+ "additionalProperties": false
1899
+ }
1900
+ },
1901
+ "response": {},
1902
+ "tool_calls": {
1903
+ "anyOf": [
1904
+ {
1905
+ "type": "array",
1906
+ "items": {
1907
+ "type": "object",
1908
+ "properties": {
1909
+ "id": {
1910
+ "type": "string"
1911
+ },
1912
+ "name": {
1913
+ "type": "string"
1914
+ },
1915
+ "args": {}
1916
+ },
1917
+ "required": [
1918
+ "id",
1919
+ "name",
1920
+ "args"
1921
+ ],
1922
+ "additionalProperties": false
1923
+ }
1924
+ },
1925
+ {
1926
+ "type": "null"
1927
+ }
1928
+ ]
1929
+ },
1930
+ "tokens_input": {
1931
+ "anyOf": [
1932
+ {
1933
+ "type": "number"
1934
+ },
1935
+ {
1936
+ "type": "null"
1937
+ }
1938
+ ]
1939
+ },
1940
+ "tokens_output": {
1941
+ "anyOf": [
1942
+ {
1943
+ "type": "number"
1944
+ },
1945
+ {
1946
+ "type": "null"
1947
+ }
1948
+ ]
1949
+ },
1950
+ "cost": {
1951
+ "anyOf": [
1952
+ {
1953
+ "type": "number"
1954
+ },
1955
+ {
1956
+ "type": "null"
1957
+ }
1958
+ ]
1959
+ },
1960
+ "duration_ms": {
1961
+ "type": "number"
1962
+ },
1963
+ "error": {
1964
+ "anyOf": [
1965
+ {
1966
+ "type": "string"
1967
+ },
1968
+ {
1969
+ "type": "null"
1970
+ }
1971
+ ]
1972
+ },
1973
+ "timestamp": {
1974
+ "type": "string"
1975
+ }
1976
+ },
1977
+ "required": [
1978
+ "type",
1979
+ "node_id",
1980
+ "provider",
1981
+ "model",
1982
+ "messages",
1983
+ "response",
1984
+ "duration_ms",
1985
+ "timestamp"
1986
+ ],
1987
+ "additionalProperties": false
1988
+ },
1989
+ {
1990
+ "type": "object",
1991
+ "properties": {
1992
+ "type": {
1993
+ "type": "string",
1994
+ "const": "provider_call_failed"
1995
+ },
1996
+ "provider": {
1997
+ "type": "string"
1998
+ },
1999
+ "model": {
2000
+ "anyOf": [
2001
+ {
2002
+ "type": "string"
2003
+ },
2004
+ {
2005
+ "type": "null"
2006
+ }
2007
+ ]
2008
+ },
2009
+ "operation": {
2010
+ "type": "string"
2011
+ },
2012
+ "kind": {
2013
+ "type": "string"
2014
+ },
2015
+ "status": {
2016
+ "anyOf": [
2017
+ {
2018
+ "type": "number"
2019
+ },
2020
+ {
2021
+ "type": "null"
2022
+ }
2023
+ ]
2024
+ },
2025
+ "message": {
2026
+ "type": "string"
2027
+ },
2028
+ "error_name": {
2029
+ "anyOf": [
2030
+ {
2031
+ "type": "string"
2032
+ },
2033
+ {
2034
+ "type": "null"
2035
+ }
2036
+ ]
2037
+ },
2038
+ "request_id": {
2039
+ "anyOf": [
2040
+ {
2041
+ "type": "string"
2042
+ },
2043
+ {
2044
+ "type": "null"
2045
+ }
2046
+ ]
2047
+ },
2048
+ "duration_ms": {
2049
+ "anyOf": [
2050
+ {
2051
+ "type": "number"
2052
+ },
2053
+ {
2054
+ "type": "null"
2055
+ }
2056
+ ]
2057
+ },
2058
+ "request_source": {
2059
+ "anyOf": [
2060
+ {
2061
+ "type": "string"
2062
+ },
2063
+ {
2064
+ "type": "null"
2065
+ }
2066
+ ]
2067
+ },
2068
+ "request": {
2069
+ "anyOf": [
2070
+ {},
2071
+ {
2072
+ "type": "null"
2073
+ }
2074
+ ]
2075
+ },
2076
+ "workflow_id": {
2077
+ "anyOf": [
2078
+ {
2079
+ "type": "string"
2080
+ },
2081
+ {
2082
+ "type": "null"
2083
+ }
2084
+ ]
2085
+ },
2086
+ "job_id": {
2087
+ "anyOf": [
2088
+ {
2089
+ "type": "string"
2090
+ },
2091
+ {
2092
+ "type": "null"
2093
+ }
2094
+ ]
2095
+ },
2096
+ "timestamp": {
2097
+ "type": "string"
2098
+ }
2099
+ },
2100
+ "required": [
2101
+ "type",
2102
+ "provider",
2103
+ "operation",
2104
+ "kind",
2105
+ "message",
2106
+ "timestamp"
2107
+ ],
2108
+ "additionalProperties": false
2109
+ },
2110
+ {
2111
+ "type": "object",
2112
+ "properties": {
2113
+ "type": {
2114
+ "type": "string",
2115
+ "const": "todo_update"
2116
+ },
2117
+ "thread_id": {
2118
+ "anyOf": [
2119
+ {
2120
+ "type": "string"
2121
+ },
2122
+ {
2123
+ "type": "null"
2124
+ }
2125
+ ]
2126
+ },
2127
+ "workflow_id": {
2128
+ "anyOf": [
2129
+ {
2130
+ "type": "string"
2131
+ },
2132
+ {
2133
+ "type": "null"
2134
+ }
2135
+ ]
2136
+ },
2137
+ "node_id": {
2138
+ "anyOf": [
2139
+ {
2140
+ "type": "string"
2141
+ },
2142
+ {
2143
+ "type": "null"
2144
+ }
2145
+ ]
2146
+ },
2147
+ "todos": {
2148
+ "type": "array",
2149
+ "items": {
2150
+ "type": "object",
2151
+ "properties": {
2152
+ "content": {
2153
+ "type": "string"
2154
+ },
2155
+ "status": {
2156
+ "type": "string",
2157
+ "enum": [
2158
+ "pending",
2159
+ "in_progress",
2160
+ "completed"
2161
+ ]
2162
+ }
2163
+ },
2164
+ "required": [
2165
+ "content",
2166
+ "status"
2167
+ ],
2168
+ "additionalProperties": false
2169
+ }
2170
+ }
2171
+ },
2172
+ "required": [
2173
+ "type",
2174
+ "todos"
2175
+ ],
2176
+ "additionalProperties": false
2177
+ },
2178
+ {
2179
+ "type": "object",
2180
+ "properties": {
2181
+ "type": {
2182
+ "type": "string",
2183
+ "const": "supervisor_escalation"
2184
+ },
2185
+ "node_id": {
2186
+ "type": "string"
2187
+ },
2188
+ "node_name": {
2189
+ "anyOf": [
2190
+ {
2191
+ "type": "string"
2192
+ },
2193
+ {
2194
+ "type": "null"
2195
+ }
2196
+ ]
2197
+ },
2198
+ "escalation": {
2199
+ "type": "object",
2200
+ "properties": {
2201
+ "nodeId": {
2202
+ "type": "string"
2203
+ },
2204
+ "nodeType": {
2205
+ "type": "string"
2206
+ },
2207
+ "correlationLineage": {
2208
+ "type": "array",
2209
+ "items": {
2210
+ "type": "string"
2211
+ }
2212
+ },
2213
+ "invocationKey": {
2214
+ "type": "string"
2215
+ },
2216
+ "allowedActions": {
2217
+ "type": "array",
2218
+ "items": {
2219
+ "type": "string",
2220
+ "enum": [
2221
+ "retry",
2222
+ "substitute",
2223
+ "skip",
2224
+ "end_stream",
2225
+ "fail"
2226
+ ]
2227
+ }
2228
+ },
2229
+ "detail": {
2230
+ "type": "string"
2231
+ },
2232
+ "failureSignature": {
2233
+ "type": "string"
2234
+ },
2235
+ "candidateOutput": {},
2236
+ "inputs": {
2237
+ "type": "object",
2238
+ "propertyNames": {
2239
+ "type": "string"
2240
+ },
2241
+ "additionalProperties": {}
2242
+ },
2243
+ "declaredOutputs": {
2244
+ "type": "object",
2245
+ "propertyNames": {
2246
+ "type": "string"
2247
+ },
2248
+ "additionalProperties": {
2249
+ "type": "string"
2250
+ }
2251
+ },
2252
+ "attempt": {
2253
+ "type": "number"
2254
+ },
2255
+ "spentCostUsd": {
2256
+ "type": "number"
2257
+ },
2258
+ "createdAssets": {
2259
+ "type": "boolean"
2260
+ },
2261
+ "retrySafe": {
2262
+ "type": "boolean"
2263
+ },
2264
+ "emitted": {
2265
+ "type": "boolean"
2266
+ }
2267
+ },
2268
+ "required": [
2269
+ "nodeId",
2270
+ "nodeType",
2271
+ "correlationLineage",
2272
+ "invocationKey",
2273
+ "allowedActions",
2274
+ "detail",
2275
+ "inputs",
2276
+ "declaredOutputs",
2277
+ "attempt",
2278
+ "spentCostUsd",
2279
+ "createdAssets",
2280
+ "retrySafe",
2281
+ "emitted"
2282
+ ],
2283
+ "additionalProperties": false
2284
+ }
2285
+ },
2286
+ "required": [
2287
+ "type",
2288
+ "node_id",
2289
+ "escalation"
2290
+ ],
2291
+ "additionalProperties": false
2292
+ },
2293
+ {
2294
+ "type": "object",
2295
+ "properties": {
2296
+ "type": {
2297
+ "type": "string",
2298
+ "const": "supervisor_decision"
2299
+ },
2300
+ "node_id": {
2301
+ "type": "string"
2302
+ },
2303
+ "node_name": {
2304
+ "anyOf": [
2305
+ {
2306
+ "type": "string"
2307
+ },
2308
+ {
2309
+ "type": "null"
2310
+ }
2311
+ ]
2312
+ },
2313
+ "escalation": {
2314
+ "type": "object",
2315
+ "properties": {
2316
+ "nodeId": {
2317
+ "type": "string"
2318
+ },
2319
+ "nodeType": {
2320
+ "type": "string"
2321
+ },
2322
+ "correlationLineage": {
2323
+ "type": "array",
2324
+ "items": {
2325
+ "type": "string"
2326
+ }
2327
+ },
2328
+ "invocationKey": {
2329
+ "type": "string"
2330
+ },
2331
+ "allowedActions": {
2332
+ "type": "array",
2333
+ "items": {
2334
+ "type": "string",
2335
+ "enum": [
2336
+ "retry",
2337
+ "substitute",
2338
+ "skip",
2339
+ "end_stream",
2340
+ "fail"
2341
+ ]
2342
+ }
2343
+ },
2344
+ "detail": {
2345
+ "type": "string"
2346
+ },
2347
+ "failureSignature": {
2348
+ "type": "string"
2349
+ },
2350
+ "candidateOutput": {},
2351
+ "inputs": {
2352
+ "type": "object",
2353
+ "propertyNames": {
2354
+ "type": "string"
2355
+ },
2356
+ "additionalProperties": {}
2357
+ },
2358
+ "declaredOutputs": {
2359
+ "type": "object",
2360
+ "propertyNames": {
2361
+ "type": "string"
2362
+ },
2363
+ "additionalProperties": {
2364
+ "type": "string"
2365
+ }
2366
+ },
2367
+ "attempt": {
2368
+ "type": "number"
2369
+ },
2370
+ "spentCostUsd": {
2371
+ "type": "number"
2372
+ },
2373
+ "createdAssets": {
2374
+ "type": "boolean"
2375
+ },
2376
+ "retrySafe": {
2377
+ "type": "boolean"
2378
+ },
2379
+ "emitted": {
2380
+ "type": "boolean"
2381
+ }
2382
+ },
2383
+ "required": [
2384
+ "nodeId",
2385
+ "nodeType",
2386
+ "correlationLineage",
2387
+ "invocationKey",
2388
+ "allowedActions",
2389
+ "detail",
2390
+ "inputs",
2391
+ "declaredOutputs",
2392
+ "attempt",
2393
+ "spentCostUsd",
2394
+ "createdAssets",
2395
+ "retrySafe",
2396
+ "emitted"
2397
+ ],
2398
+ "additionalProperties": false
2399
+ },
2400
+ "verdict": {
2401
+ "oneOf": [
2402
+ {
2403
+ "type": "object",
2404
+ "properties": {
2405
+ "action": {
2406
+ "type": "string",
2407
+ "const": "retry"
2408
+ }
2409
+ },
2410
+ "required": [
2411
+ "action"
2412
+ ],
2413
+ "additionalProperties": false
2414
+ },
2415
+ {
2416
+ "type": "object",
2417
+ "properties": {
2418
+ "action": {
2419
+ "type": "string",
2420
+ "const": "substitute"
2421
+ },
2422
+ "outputs": {
2423
+ "type": "object",
2424
+ "propertyNames": {
2425
+ "type": "string"
2426
+ },
2427
+ "additionalProperties": {}
2428
+ }
2429
+ },
2430
+ "required": [
2431
+ "action",
2432
+ "outputs"
2433
+ ],
2434
+ "additionalProperties": false
2435
+ },
2436
+ {
2437
+ "type": "object",
2438
+ "properties": {
2439
+ "action": {
2440
+ "type": "string",
2441
+ "const": "skip"
2442
+ },
2443
+ "applyTo": {
2444
+ "type": "string",
2445
+ "enum": [
2446
+ "invocation",
2447
+ "signature"
2448
+ ]
2449
+ }
2450
+ },
2451
+ "required": [
2452
+ "action"
2453
+ ],
2454
+ "additionalProperties": false
2455
+ },
2456
+ {
2457
+ "type": "object",
2458
+ "properties": {
2459
+ "action": {
2460
+ "type": "string",
2461
+ "const": "end_stream"
2462
+ }
2463
+ },
2464
+ "required": [
2465
+ "action"
2466
+ ],
2467
+ "additionalProperties": false
2468
+ },
2469
+ {
2470
+ "type": "object",
2471
+ "properties": {
2472
+ "action": {
2473
+ "type": "string",
2474
+ "const": "fail"
2475
+ },
2476
+ "reason": {
2477
+ "type": "string"
2478
+ },
2479
+ "applyTo": {
2480
+ "type": "string",
2481
+ "enum": [
2482
+ "invocation",
2483
+ "signature"
2484
+ ]
2485
+ }
2486
+ },
2487
+ "required": [
2488
+ "action"
2489
+ ],
2490
+ "additionalProperties": false
2491
+ }
2492
+ ]
2493
+ },
2494
+ "decided_by": {
2495
+ "type": "string",
2496
+ "enum": [
2497
+ "agent",
2498
+ "sticky",
2499
+ "bounds",
2500
+ "default",
2501
+ "kernel"
2502
+ ]
2503
+ },
2504
+ "cost": {
2505
+ "anyOf": [
2506
+ {
2507
+ "type": "number"
2508
+ },
2509
+ {
2510
+ "type": "null"
2511
+ }
2512
+ ]
2513
+ }
2514
+ },
2515
+ "required": [
2516
+ "type",
2517
+ "node_id",
2518
+ "escalation",
2519
+ "verdict",
2520
+ "decided_by"
2521
+ ],
2522
+ "additionalProperties": false
2523
+ }
2524
+ ]
2525
+ }