@executioncontrolprotocol/core 0.14.0 → 0.50.0

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 (704) hide show
  1. package/README.md +25 -36
  2. package/dist/bindings/extension.d.ts +15 -1
  3. package/dist/bindings/extension.d.ts.map +1 -1
  4. package/dist/bindings/extension.js +23 -0
  5. package/dist/bindings/extension.js.map +1 -1
  6. package/dist/bindings/policy.d.ts +15 -1
  7. package/dist/bindings/policy.d.ts.map +1 -1
  8. package/dist/bindings/policy.js +23 -0
  9. package/dist/bindings/policy.js.map +1 -1
  10. package/dist/bindings/step.d.ts +3 -3
  11. package/dist/bindings/step.d.ts.map +1 -1
  12. package/dist/compile/extract-workflow-module.d.ts +18 -2
  13. package/dist/compile/extract-workflow-module.d.ts.map +1 -1
  14. package/dist/compile/extract-workflow-module.js +39 -10
  15. package/dist/compile/extract-workflow-module.js.map +1 -1
  16. package/dist/compile/index.d.ts +4 -13
  17. package/dist/compile/index.d.ts.map +1 -1
  18. package/dist/compile/index.js +1 -48
  19. package/dist/compile/index.js.map +1 -1
  20. package/dist/compile/types.d.ts +1 -1
  21. package/dist/compile/types.d.ts.map +1 -1
  22. package/dist/definitions/capability.d.ts +3 -2
  23. package/dist/definitions/capability.d.ts.map +1 -1
  24. package/dist/definitions/capability.js +4 -3
  25. package/dist/definitions/capability.js.map +1 -1
  26. package/dist/definitions/environment.d.ts +38 -0
  27. package/dist/definitions/environment.d.ts.map +1 -0
  28. package/dist/definitions/environment.js +77 -0
  29. package/dist/definitions/environment.js.map +1 -0
  30. package/dist/definitions/extension.d.ts +16 -4
  31. package/dist/definitions/extension.d.ts.map +1 -1
  32. package/dist/definitions/extension.js +27 -6
  33. package/dist/definitions/extension.js.map +1 -1
  34. package/dist/definitions/hook.d.ts +1 -1
  35. package/dist/definitions/hook.d.ts.map +1 -1
  36. package/dist/definitions/index.d.ts +2 -2
  37. package/dist/definitions/index.d.ts.map +1 -1
  38. package/dist/definitions/index.js +1 -1
  39. package/dist/definitions/index.js.map +1 -1
  40. package/dist/definitions/policy.d.ts +8 -0
  41. package/dist/definitions/policy.d.ts.map +1 -1
  42. package/dist/definitions/policy.js +16 -0
  43. package/dist/definitions/policy.js.map +1 -1
  44. package/dist/definitions/types.d.ts +23 -5
  45. package/dist/definitions/types.d.ts.map +1 -1
  46. package/dist/encoding/contracts.js +1 -1
  47. package/dist/encoding/contracts.js.map +1 -1
  48. package/dist/encoding/decode-builder.d.ts +1 -1
  49. package/dist/encoding/decode-builder.d.ts.map +1 -1
  50. package/dist/encoding/decode-builder.js +1 -9
  51. package/dist/encoding/decode-builder.js.map +1 -1
  52. package/dist/encoding/encode-builder.d.ts +1 -1
  53. package/dist/encoding/encode-builder.d.ts.map +1 -1
  54. package/dist/encoding/encode-builder.js +1 -1
  55. package/dist/encoding/encode-builder.js.map +1 -1
  56. package/dist/encoding/errors.d.ts +2 -2
  57. package/dist/encoding/errors.d.ts.map +1 -1
  58. package/dist/encoding/invoke-utility.d.ts +1 -1
  59. package/dist/encoding/invoke-utility.d.ts.map +1 -1
  60. package/dist/encoding/invoke-utility.js +1 -1
  61. package/dist/encoding/invoke-utility.js.map +1 -1
  62. package/dist/encoding/json-codec.d.ts +1 -1
  63. package/dist/encoding/json-codec.d.ts.map +1 -1
  64. package/dist/encoding/json-codec.js +1 -1
  65. package/dist/encoding/json-codec.js.map +1 -1
  66. package/dist/encoding/normalize-workflow.d.ts +1 -1
  67. package/dist/encoding/normalize-workflow.d.ts.map +1 -1
  68. package/dist/encoding/resolve.js +1 -1
  69. package/dist/encoding/resolve.js.map +1 -1
  70. package/dist/encoding/schemas.d.ts +20 -20
  71. package/dist/encoding/schemas.js +1 -1
  72. package/dist/encoding/schemas.js.map +1 -1
  73. package/dist/environment/bindings.d.ts +4 -14
  74. package/dist/environment/bindings.d.ts.map +1 -1
  75. package/dist/environment/bindings.js +2 -7
  76. package/dist/environment/bindings.js.map +1 -1
  77. package/dist/environment/config-resolver.d.ts +1 -3
  78. package/dist/environment/config-resolver.d.ts.map +1 -1
  79. package/dist/environment/config-resolver.js +13 -19
  80. package/dist/environment/config-resolver.js.map +1 -1
  81. package/dist/environment/describe.d.ts +1 -1
  82. package/dist/environment/describe.d.ts.map +1 -1
  83. package/dist/environment/describe.js +32 -24
  84. package/dist/environment/describe.js.map +1 -1
  85. package/dist/environment/ecp.d.ts +2 -12
  86. package/dist/environment/ecp.d.ts.map +1 -1
  87. package/dist/environment/ecp.js +1 -8
  88. package/dist/environment/ecp.js.map +1 -1
  89. package/dist/environment/environment.d.ts +71 -48
  90. package/dist/environment/environment.d.ts.map +1 -1
  91. package/dist/environment/environment.js +165 -159
  92. package/dist/environment/environment.js.map +1 -1
  93. package/dist/environment/search.d.ts +1 -1
  94. package/dist/environment/search.d.ts.map +1 -1
  95. package/dist/environment/search.js +10 -7
  96. package/dist/environment/search.js.map +1 -1
  97. package/dist/environment/validate-binding-config.d.ts +12 -0
  98. package/dist/environment/validate-binding-config.d.ts.map +1 -0
  99. package/dist/environment/validate-binding-config.js +43 -0
  100. package/dist/environment/validate-binding-config.js.map +1 -0
  101. package/dist/file/file-ref.d.ts +1 -1
  102. package/dist/file/file-ref.d.ts.map +1 -1
  103. package/dist/file/file-ref.js +1 -1
  104. package/dist/file/file-ref.js.map +1 -1
  105. package/dist/fluent/encode-fluent.d.ts +1 -1
  106. package/dist/fluent/encode-fluent.d.ts.map +1 -1
  107. package/dist/fluent/encode-fluent.js +1 -1
  108. package/dist/fluent/encode-fluent.js.map +1 -1
  109. package/dist/fluent/render-expr.d.ts +1 -1
  110. package/dist/fluent/render-expr.d.ts.map +1 -1
  111. package/dist/fluent/render-node.d.ts +1 -1
  112. package/dist/fluent/render-node.d.ts.map +1 -1
  113. package/dist/fluent/render-value.d.ts +1 -2
  114. package/dist/fluent/render-value.d.ts.map +1 -1
  115. package/dist/fluent/render-value.js +0 -5
  116. package/dist/fluent/render-value.js.map +1 -1
  117. package/dist/fluent/render-workflow.d.ts +1 -1
  118. package/dist/fluent/render-workflow.d.ts.map +1 -1
  119. package/dist/fluent/render-workflow.js +0 -2
  120. package/dist/fluent/render-workflow.js.map +1 -1
  121. package/dist/formats/format-fluent.d.ts.map +1 -1
  122. package/dist/formats/format-fluent.js +10 -8
  123. package/dist/formats/format-fluent.js.map +1 -1
  124. package/dist/formats/format-json.d.ts.map +1 -1
  125. package/dist/formats/format-json.js +22 -27
  126. package/dist/formats/format-json.js.map +1 -1
  127. package/dist/formats/register-core-formats.d.ts +2 -1
  128. package/dist/formats/register-core-formats.d.ts.map +1 -1
  129. package/dist/formats/register-core-formats.js +2 -4
  130. package/dist/formats/register-core-formats.js.map +1 -1
  131. package/dist/helpers/env.d.ts +1 -1
  132. package/dist/helpers/env.d.ts.map +1 -1
  133. package/dist/helpers/expr.d.ts +1 -1
  134. package/dist/helpers/expr.d.ts.map +1 -1
  135. package/dist/{harness/authoring/to-provider-chat-turns.d.ts → helpers/provider-chat-turns.d.ts} +7 -7
  136. package/dist/helpers/provider-chat-turns.d.ts.map +1 -0
  137. package/dist/{harness/authoring/to-provider-chat-turns.js → helpers/provider-chat-turns.js} +4 -4
  138. package/dist/helpers/provider-chat-turns.js.map +1 -0
  139. package/dist/helpers/ref.d.ts +1 -1
  140. package/dist/helpers/ref.d.ts.map +1 -1
  141. package/dist/helpers/secrets.d.ts +1 -1
  142. package/dist/helpers/secrets.d.ts.map +1 -1
  143. package/dist/helpers/state.d.ts +1 -1
  144. package/dist/helpers/state.d.ts.map +1 -1
  145. package/dist/index.d.ts +20 -20
  146. package/dist/index.d.ts.map +1 -1
  147. package/dist/index.js +18 -19
  148. package/dist/index.js.map +1 -1
  149. package/dist/invoke/execute-invoke.d.ts +2 -2
  150. package/dist/invoke/execute-invoke.d.ts.map +1 -1
  151. package/dist/invoke/execute-invoke.js +5 -19
  152. package/dist/invoke/execute-invoke.js.map +1 -1
  153. package/dist/invoke/invoke-builder.d.ts +1 -3
  154. package/dist/invoke/invoke-builder.d.ts.map +1 -1
  155. package/dist/invoke/invoke-builder.js +1 -6
  156. package/dist/invoke/invoke-builder.js.map +1 -1
  157. package/dist/media/index.d.ts +1 -1
  158. package/dist/media/index.d.ts.map +1 -1
  159. package/dist/media/index.js +1 -1
  160. package/dist/media/index.js.map +1 -1
  161. package/dist/media/resolve-file.d.ts +11 -1
  162. package/dist/media/resolve-file.d.ts.map +1 -1
  163. package/dist/media/resolve-file.js +11 -6
  164. package/dist/media/resolve-file.js.map +1 -1
  165. package/dist/media/write-media.d.ts +1 -1
  166. package/dist/media/write-media.d.ts.map +1 -1
  167. package/dist/media/write-media.js +1 -1
  168. package/dist/media/write-media.js.map +1 -1
  169. package/dist/patch/apply-patch.d.ts +2 -2
  170. package/dist/patch/apply-patch.d.ts.map +1 -1
  171. package/dist/patch/apply-patch.js +1 -1
  172. package/dist/patch/apply-patch.js.map +1 -1
  173. package/dist/patch/normalize-input.d.ts +1 -1
  174. package/dist/patch/normalize-input.d.ts.map +1 -1
  175. package/dist/patch/normalize-input.js +1 -1
  176. package/dist/patch/normalize-input.js.map +1 -1
  177. package/dist/patch/patch-builder.d.ts +1 -1
  178. package/dist/patch/patch-builder.d.ts.map +1 -1
  179. package/dist/patch/patch-builder.js.map +1 -1
  180. package/dist/patch/patch-document.d.ts +2 -2
  181. package/dist/patch/resolve-path.d.ts +2 -2
  182. package/dist/patch/resolve-path.d.ts.map +1 -1
  183. package/dist/patch/resolve-path.js +1 -1
  184. package/dist/patch/resolve-path.js.map +1 -1
  185. package/dist/patch/step-index.d.ts +1 -1
  186. package/dist/patch/step-index.d.ts.map +1 -1
  187. package/dist/policies/registry-control.d.ts +20 -0
  188. package/dist/policies/registry-control.d.ts.map +1 -0
  189. package/dist/policies/registry-control.js +72 -0
  190. package/dist/policies/registry-control.js.map +1 -0
  191. package/dist/registry/ensure-bound-extensions.d.ts +1 -1
  192. package/dist/registry/ensure-bound-extensions.js +2 -2
  193. package/dist/registry/ensure-bound-extensions.js.map +1 -1
  194. package/dist/registry/errors.d.ts +1 -1
  195. package/dist/registry/errors.d.ts.map +1 -1
  196. package/dist/registry/errors.js +2 -1
  197. package/dist/registry/errors.js.map +1 -1
  198. package/dist/registry/extension-catalog.d.ts +3 -18
  199. package/dist/registry/extension-catalog.d.ts.map +1 -1
  200. package/dist/registry/extension-catalog.js +3 -25
  201. package/dist/registry/extension-catalog.js.map +1 -1
  202. package/dist/registry/registry.d.ts +8 -9
  203. package/dist/registry/registry.d.ts.map +1 -1
  204. package/dist/registry/registry.js +9 -10
  205. package/dist/registry/registry.js.map +1 -1
  206. package/dist/runtime/capability-execution.d.ts +9 -8
  207. package/dist/runtime/capability-execution.d.ts.map +1 -1
  208. package/dist/runtime/capability-execution.js +11 -11
  209. package/dist/runtime/capability-execution.js.map +1 -1
  210. package/dist/runtime/commit.d.ts +2 -2
  211. package/dist/runtime/commit.d.ts.map +1 -1
  212. package/dist/runtime/context.d.ts +18 -4
  213. package/dist/runtime/context.d.ts.map +1 -1
  214. package/dist/runtime/context.js.map +1 -1
  215. package/dist/runtime/dispatch-capability.d.ts +1 -1
  216. package/dist/runtime/dispatch-capability.d.ts.map +1 -1
  217. package/dist/runtime/dispatch-capability.js +3 -3
  218. package/dist/runtime/dispatch-capability.js.map +1 -1
  219. package/dist/runtime/executor.d.ts +11 -5
  220. package/dist/runtime/executor.d.ts.map +1 -1
  221. package/dist/runtime/in-memory-executor.d.ts +1 -1
  222. package/dist/runtime/in-memory-executor.d.ts.map +1 -1
  223. package/dist/runtime/in-memory-executor.js +144 -27
  224. package/dist/runtime/in-memory-executor.js.map +1 -1
  225. package/dist/runtime/lifecycle.d.ts +1 -1
  226. package/dist/runtime/lifecycle.d.ts.map +1 -1
  227. package/dist/runtime/mutation-records.d.ts +1 -1
  228. package/dist/runtime/mutation-records.d.ts.map +1 -1
  229. package/dist/runtime/policy-engine.d.ts +3 -2
  230. package/dist/runtime/policy-engine.d.ts.map +1 -1
  231. package/dist/runtime/policy-engine.js +12 -3
  232. package/dist/runtime/policy-engine.js.map +1 -1
  233. package/dist/runtime/remote-invoke.d.ts +15 -2
  234. package/dist/runtime/remote-invoke.d.ts.map +1 -1
  235. package/dist/runtime/remote-invoke.js +34 -2
  236. package/dist/runtime/remote-invoke.js.map +1 -1
  237. package/dist/runtime/resolve-input.d.ts +1 -1
  238. package/dist/runtime/resolve-input.d.ts.map +1 -1
  239. package/dist/runtime/resolve-input.js +6 -0
  240. package/dist/runtime/resolve-input.js.map +1 -1
  241. package/dist/runtime/runtime-ids.d.ts +4 -4
  242. package/dist/runtime/runtime-ids.d.ts.map +1 -1
  243. package/dist/runtime/runtime-ids.js +4 -4
  244. package/dist/runtime/runtime-ids.js.map +1 -1
  245. package/dist/runtime/step-order.d.ts +32 -0
  246. package/dist/runtime/step-order.d.ts.map +1 -0
  247. package/dist/runtime/step-order.js +85 -0
  248. package/dist/runtime/step-order.js.map +1 -0
  249. package/dist/runtime/store.d.ts +1 -1
  250. package/dist/runtime/store.d.ts.map +1 -1
  251. package/dist/schema/json-schema.js +1 -1
  252. package/dist/schema/json-schema.js.map +1 -1
  253. package/dist/schema/workflow-io.d.ts +1 -1
  254. package/dist/schema/workflow-io.d.ts.map +1 -1
  255. package/dist/schemas/decode.result.json +155 -0
  256. package/dist/schemas/encode.result.json +162 -0
  257. package/dist/schemas/environment.describe.json +362 -0
  258. package/dist/schemas/environment.manifest.json +159 -0
  259. package/dist/schemas/environment.search.json +72 -0
  260. package/dist/schemas/patch.json +104 -0
  261. package/dist/schemas/patch.result.json +260 -0
  262. package/dist/schemas/requirements.json +102 -0
  263. package/dist/schemas/run.journal.json +142 -0
  264. package/dist/schemas/run.request.json +491 -0
  265. package/dist/schemas/run.result.json +230 -0
  266. package/dist/schemas/validation.result.json +89 -0
  267. package/dist/schemas/workflow.manifest.json +457 -0
  268. package/dist/testing/index.d.ts +2 -2
  269. package/dist/testing/index.d.ts.map +1 -1
  270. package/dist/testing/index.js +2 -2
  271. package/dist/testing/index.js.map +1 -1
  272. package/dist/testing/test-extension.d.ts +3 -2
  273. package/dist/testing/test-extension.d.ts.map +1 -1
  274. package/dist/testing/test-extension.js +39 -51
  275. package/dist/testing/test-extension.js.map +1 -1
  276. package/dist/testing/test-lifecycle-extension.d.ts +5 -4
  277. package/dist/testing/test-lifecycle-extension.d.ts.map +1 -1
  278. package/dist/testing/test-lifecycle-extension.js +28 -25
  279. package/dist/testing/test-lifecycle-extension.js.map +1 -1
  280. package/dist/types/capabilities.d.ts +39 -0
  281. package/dist/types/capabilities.d.ts.map +1 -0
  282. package/dist/types/capabilities.js +2 -0
  283. package/dist/types/capabilities.js.map +1 -0
  284. package/dist/types/capability-execution.d.ts +5 -0
  285. package/dist/types/capability-execution.d.ts.map +1 -0
  286. package/dist/types/capability-execution.js +3 -0
  287. package/dist/types/capability-execution.js.map +1 -0
  288. package/dist/types/capability-metadata.d.ts +216 -0
  289. package/dist/types/capability-metadata.d.ts.map +1 -0
  290. package/dist/types/capability-metadata.js +138 -0
  291. package/dist/types/capability-metadata.js.map +1 -0
  292. package/dist/types/encoding.d.ts +103 -0
  293. package/dist/types/encoding.d.ts.map +1 -0
  294. package/dist/types/encoding.js +29 -0
  295. package/dist/types/encoding.js.map +1 -0
  296. package/dist/types/environment.d.ts +155 -0
  297. package/dist/types/environment.d.ts.map +1 -0
  298. package/dist/types/environment.js +2 -0
  299. package/dist/types/environment.js.map +1 -0
  300. package/dist/types/errors.d.ts +93 -0
  301. package/dist/types/errors.d.ts.map +1 -0
  302. package/dist/types/errors.js +89 -0
  303. package/dist/types/errors.js.map +1 -0
  304. package/dist/types/file-ref.d.ts +84 -0
  305. package/dist/types/file-ref.d.ts.map +1 -0
  306. package/dist/types/file-ref.js +117 -0
  307. package/dist/types/file-ref.js.map +1 -0
  308. package/dist/types/image-output.d.ts +32 -0
  309. package/dist/types/image-output.d.ts.map +1 -0
  310. package/dist/types/image-output.js +11 -0
  311. package/dist/types/image-output.js.map +1 -0
  312. package/dist/types/index.d.ts +36 -0
  313. package/dist/types/index.d.ts.map +1 -0
  314. package/dist/types/index.js +13 -0
  315. package/dist/types/index.js.map +1 -0
  316. package/dist/types/invoke.d.ts +51 -0
  317. package/dist/types/invoke.d.ts.map +1 -0
  318. package/dist/types/invoke.js +32 -0
  319. package/dist/types/invoke.js.map +1 -0
  320. package/dist/types/journal.d.ts +113 -0
  321. package/dist/types/journal.d.ts.map +1 -0
  322. package/dist/types/journal.js +3 -0
  323. package/dist/types/journal.js.map +1 -0
  324. package/dist/types/lifecycle.d.ts +27 -0
  325. package/dist/types/lifecycle.d.ts.map +1 -0
  326. package/dist/types/lifecycle.js +2 -0
  327. package/dist/types/lifecycle.js.map +1 -0
  328. package/dist/types/model.d.ts +102 -0
  329. package/dist/types/model.d.ts.map +1 -0
  330. package/dist/types/model.js +51 -0
  331. package/dist/types/model.js.map +1 -0
  332. package/dist/types/patch-errors.d.ts +11 -0
  333. package/dist/types/patch-errors.d.ts.map +1 -0
  334. package/dist/types/patch-errors.js +9 -0
  335. package/dist/types/patch-errors.js.map +1 -0
  336. package/dist/types/patch.d.ts +51 -0
  337. package/dist/types/patch.d.ts.map +1 -0
  338. package/dist/types/patch.js +2 -0
  339. package/dist/types/patch.js.map +1 -0
  340. package/dist/types/registry.d.ts +24 -0
  341. package/dist/types/registry.d.ts.map +1 -0
  342. package/dist/types/registry.js +2 -0
  343. package/dist/types/registry.js.map +1 -0
  344. package/dist/types/requirements.d.ts +42 -0
  345. package/dist/types/requirements.d.ts.map +1 -0
  346. package/dist/types/requirements.js +2 -0
  347. package/dist/types/requirements.js.map +1 -0
  348. package/dist/types/run-events.d.ts +32 -0
  349. package/dist/types/run-events.d.ts.map +1 -0
  350. package/dist/types/run-events.js +8 -0
  351. package/dist/types/run-events.js.map +1 -0
  352. package/dist/types/run.d.ts +48 -0
  353. package/dist/types/run.d.ts.map +1 -0
  354. package/dist/types/run.js +2 -0
  355. package/dist/types/run.js.map +1 -0
  356. package/dist/types/schema.d.ts +58 -0
  357. package/dist/types/schema.d.ts.map +1 -0
  358. package/dist/types/schema.js +2 -0
  359. package/dist/types/schema.js.map +1 -0
  360. package/dist/types/store.d.ts +30 -0
  361. package/dist/types/store.d.ts.map +1 -0
  362. package/dist/types/store.js +2 -0
  363. package/dist/types/store.js.map +1 -0
  364. package/dist/types/validation.d.ts +20 -0
  365. package/dist/types/validation.d.ts.map +1 -0
  366. package/dist/types/validation.js +2 -0
  367. package/dist/types/validation.js.map +1 -0
  368. package/dist/types/version.d.ts +5 -0
  369. package/dist/types/version.d.ts.map +1 -0
  370. package/dist/types/version.js +3 -0
  371. package/dist/types/version.js.map +1 -0
  372. package/dist/types/workflow.d.ts +80 -0
  373. package/dist/types/workflow.d.ts.map +1 -0
  374. package/dist/types/workflow.js +2 -0
  375. package/dist/types/workflow.js.map +1 -0
  376. package/dist/util/semver-range.d.ts +6 -0
  377. package/dist/util/semver-range.d.ts.map +1 -0
  378. package/dist/util/semver-range.js +9 -0
  379. package/dist/util/semver-range.js.map +1 -0
  380. package/dist/validate/environment.d.ts +5 -2
  381. package/dist/validate/environment.d.ts.map +1 -1
  382. package/dist/validate/environment.js +38 -19
  383. package/dist/validate/environment.js.map +1 -1
  384. package/dist/validate/workflow-schema.d.ts +17 -31
  385. package/dist/validate/workflow-schema.d.ts.map +1 -1
  386. package/dist/validate/workflow-schema.js +1 -10
  387. package/dist/validate/workflow-schema.js.map +1 -1
  388. package/dist/validate/workflow.d.ts +1 -1
  389. package/dist/validate/workflow.d.ts.map +1 -1
  390. package/dist/validate/workflow.js +2 -11
  391. package/dist/validate/workflow.js.map +1 -1
  392. package/dist/validate/zod-mapper.d.ts +1 -1
  393. package/dist/validate/zod-mapper.d.ts.map +1 -1
  394. package/dist/workflow/assign-unique-step-ids.d.ts +1 -1
  395. package/dist/workflow/assign-unique-step-ids.d.ts.map +1 -1
  396. package/dist/workflow/builder.d.ts +17 -1
  397. package/dist/workflow/builder.d.ts.map +1 -1
  398. package/dist/workflow/builder.js +27 -1
  399. package/dist/workflow/builder.js.map +1 -1
  400. package/dist/workflow/flow.d.ts +2 -2
  401. package/dist/workflow/flow.d.ts.map +1 -1
  402. package/dist/workflow/requirements.d.ts +34 -0
  403. package/dist/workflow/requirements.d.ts.map +1 -0
  404. package/dist/workflow/requirements.js +135 -0
  405. package/dist/workflow/requirements.js.map +1 -0
  406. package/package.json +13 -86
  407. package/dist/bindings/harness.d.ts +0 -24
  408. package/dist/bindings/harness.d.ts.map +0 -1
  409. package/dist/bindings/harness.js +0 -44
  410. package/dist/bindings/harness.js.map +0 -1
  411. package/dist/bindings/runtime.d.ts +0 -19
  412. package/dist/bindings/runtime.d.ts.map +0 -1
  413. package/dist/bindings/runtime.js +0 -32
  414. package/dist/bindings/runtime.js.map +0 -1
  415. package/dist/browser-runtime-entry.d.ts +0 -61
  416. package/dist/browser-runtime-entry.d.ts.map +0 -1
  417. package/dist/browser-runtime-entry.js +0 -54
  418. package/dist/browser-runtime-entry.js.map +0 -1
  419. package/dist/browser.d.ts +0 -20
  420. package/dist/browser.d.ts.map +0 -1
  421. package/dist/browser.js +0 -20
  422. package/dist/browser.js.map +0 -1
  423. package/dist/compile/compile-harness-artifact.d.ts +0 -30
  424. package/dist/compile/compile-harness-artifact.d.ts.map +0 -1
  425. package/dist/compile/compile-harness-artifact.js +0 -43
  426. package/dist/compile/compile-harness-artifact.js.map +0 -1
  427. package/dist/compile/entry.d.ts +0 -3
  428. package/dist/compile/entry.d.ts.map +0 -1
  429. package/dist/compile/entry.js +0 -3
  430. package/dist/compile/entry.js.map +0 -1
  431. package/dist/compile/evaluate-browser.d.ts +0 -7
  432. package/dist/compile/evaluate-browser.d.ts.map +0 -1
  433. package/dist/compile/evaluate-browser.js +0 -26
  434. package/dist/compile/evaluate-browser.js.map +0 -1
  435. package/dist/compile/evaluate-harness-artifact.d.ts +0 -3
  436. package/dist/compile/evaluate-harness-artifact.d.ts.map +0 -1
  437. package/dist/compile/evaluate-harness-artifact.js +0 -17
  438. package/dist/compile/evaluate-harness-artifact.js.map +0 -1
  439. package/dist/compile/evaluate.d.ts +0 -5
  440. package/dist/compile/evaluate.d.ts.map +0 -1
  441. package/dist/compile/evaluate.js +0 -20
  442. package/dist/compile/evaluate.js.map +0 -1
  443. package/dist/compile/extract-harness-artifact.d.ts +0 -9
  444. package/dist/compile/extract-harness-artifact.d.ts.map +0 -1
  445. package/dist/compile/extract-harness-artifact.js +0 -33
  446. package/dist/compile/extract-harness-artifact.js.map +0 -1
  447. package/dist/compile/index.browser.d.ts +0 -49
  448. package/dist/compile/index.browser.d.ts.map +0 -1
  449. package/dist/compile/index.browser.js +0 -93
  450. package/dist/compile/index.browser.js.map +0 -1
  451. package/dist/compile/prepare-browser-source.d.ts +0 -3
  452. package/dist/compile/prepare-browser-source.d.ts.map +0 -1
  453. package/dist/compile/prepare-browser-source.js +0 -25
  454. package/dist/compile/prepare-browser-source.js.map +0 -1
  455. package/dist/compile/transpile-browser.d.ts +0 -44
  456. package/dist/compile/transpile-browser.d.ts.map +0 -1
  457. package/dist/compile/transpile-browser.js +0 -120
  458. package/dist/compile/transpile-browser.js.map +0 -1
  459. package/dist/compile/transpile.d.ts +0 -27
  460. package/dist/compile/transpile.d.ts.map +0 -1
  461. package/dist/compile/transpile.js +0 -150
  462. package/dist/compile/transpile.js.map +0 -1
  463. package/dist/definitions/runtime.d.ts +0 -22
  464. package/dist/definitions/runtime.d.ts.map +0 -1
  465. package/dist/definitions/runtime.js +0 -48
  466. package/dist/definitions/runtime.js.map +0 -1
  467. package/dist/encoding/strip-harness-typescript-output.d.ts +0 -7
  468. package/dist/encoding/strip-harness-typescript-output.d.ts.map +0 -1
  469. package/dist/encoding/strip-harness-typescript-output.js +0 -40
  470. package/dist/encoding/strip-harness-typescript-output.js.map +0 -1
  471. package/dist/encoding/strip-markdown-fences.d.ts +0 -6
  472. package/dist/encoding/strip-markdown-fences.d.ts.map +0 -1
  473. package/dist/encoding/strip-markdown-fences.js +0 -23
  474. package/dist/encoding/strip-markdown-fences.js.map +0 -1
  475. package/dist/feedback/collect.d.ts +0 -32
  476. package/dist/feedback/collect.d.ts.map +0 -1
  477. package/dist/feedback/collect.js +0 -97
  478. package/dist/feedback/collect.js.map +0 -1
  479. package/dist/feedback/index.d.ts +0 -2
  480. package/dist/feedback/index.d.ts.map +0 -1
  481. package/dist/feedback/index.js +0 -2
  482. package/dist/feedback/index.js.map +0 -1
  483. package/dist/harness/authoring/chat-result.d.ts +0 -19
  484. package/dist/harness/authoring/chat-result.d.ts.map +0 -1
  485. package/dist/harness/authoring/chat-result.js +0 -56
  486. package/dist/harness/authoring/chat-result.js.map +0 -1
  487. package/dist/harness/authoring/classified-intent.d.ts +0 -46
  488. package/dist/harness/authoring/classified-intent.d.ts.map +0 -1
  489. package/dist/harness/authoring/classified-intent.js +0 -261
  490. package/dist/harness/authoring/classified-intent.js.map +0 -1
  491. package/dist/harness/authoring/context-policy.d.ts +0 -47
  492. package/dist/harness/authoring/context-policy.d.ts.map +0 -1
  493. package/dist/harness/authoring/context-policy.js +0 -160
  494. package/dist/harness/authoring/context-policy.js.map +0 -1
  495. package/dist/harness/authoring/describe-for-prompt.d.ts +0 -19
  496. package/dist/harness/authoring/describe-for-prompt.d.ts.map +0 -1
  497. package/dist/harness/authoring/describe-for-prompt.js +0 -105
  498. package/dist/harness/authoring/describe-for-prompt.js.map +0 -1
  499. package/dist/harness/authoring/encode-prompt-text.d.ts +0 -7
  500. package/dist/harness/authoring/encode-prompt-text.d.ts.map +0 -1
  501. package/dist/harness/authoring/encode-prompt-text.js +0 -13
  502. package/dist/harness/authoring/encode-prompt-text.js.map +0 -1
  503. package/dist/harness/authoring/environment-question.d.ts +0 -6
  504. package/dist/harness/authoring/environment-question.d.ts.map +0 -1
  505. package/dist/harness/authoring/environment-question.js +0 -11
  506. package/dist/harness/authoring/environment-question.js.map +0 -1
  507. package/dist/harness/authoring/index.d.ts +0 -23
  508. package/dist/harness/authoring/index.d.ts.map +0 -1
  509. package/dist/harness/authoring/index.js +0 -22
  510. package/dist/harness/authoring/index.js.map +0 -1
  511. package/dist/harness/authoring/normalize-create-eql-output.d.ts +0 -27
  512. package/dist/harness/authoring/normalize-create-eql-output.d.ts.map +0 -1
  513. package/dist/harness/authoring/normalize-create-eql-output.js +0 -284
  514. package/dist/harness/authoring/normalize-create-eql-output.js.map +0 -1
  515. package/dist/harness/authoring/normalize-intent-eql-output.d.ts +0 -7
  516. package/dist/harness/authoring/normalize-intent-eql-output.d.ts.map +0 -1
  517. package/dist/harness/authoring/normalize-intent-eql-output.js +0 -59
  518. package/dist/harness/authoring/normalize-intent-eql-output.js.map +0 -1
  519. package/dist/harness/authoring/normalize-patch-eql-output.d.ts +0 -28
  520. package/dist/harness/authoring/normalize-patch-eql-output.d.ts.map +0 -1
  521. package/dist/harness/authoring/normalize-patch-eql-output.js +0 -202
  522. package/dist/harness/authoring/normalize-patch-eql-output.js.map +0 -1
  523. package/dist/harness/authoring/normalize-workflow-output.d.ts +0 -6
  524. package/dist/harness/authoring/normalize-workflow-output.d.ts.map +0 -1
  525. package/dist/harness/authoring/normalize-workflow-output.js +0 -51
  526. package/dist/harness/authoring/normalize-workflow-output.js.map +0 -1
  527. package/dist/harness/authoring/patch-clear-intent.d.ts +0 -17
  528. package/dist/harness/authoring/patch-clear-intent.d.ts.map +0 -1
  529. package/dist/harness/authoring/patch-clear-intent.js +0 -46
  530. package/dist/harness/authoring/patch-clear-intent.js.map +0 -1
  531. package/dist/harness/authoring/presentation.d.ts +0 -57
  532. package/dist/harness/authoring/presentation.d.ts.map +0 -1
  533. package/dist/harness/authoring/presentation.js +0 -137
  534. package/dist/harness/authoring/presentation.js.map +0 -1
  535. package/dist/harness/authoring/recover-structured-patch.d.ts +0 -21
  536. package/dist/harness/authoring/recover-structured-patch.d.ts.map +0 -1
  537. package/dist/harness/authoring/recover-structured-patch.js +0 -230
  538. package/dist/harness/authoring/recover-structured-patch.js.map +0 -1
  539. package/dist/harness/authoring/repair-workflow-json.d.ts +0 -16
  540. package/dist/harness/authoring/repair-workflow-json.d.ts.map +0 -1
  541. package/dist/harness/authoring/repair-workflow-json.js +0 -183
  542. package/dist/harness/authoring/repair-workflow-json.js.map +0 -1
  543. package/dist/harness/authoring/safe-reply.d.ts +0 -71
  544. package/dist/harness/authoring/safe-reply.d.ts.map +0 -1
  545. package/dist/harness/authoring/safe-reply.js +0 -291
  546. package/dist/harness/authoring/safe-reply.js.map +0 -1
  547. package/dist/harness/authoring/summarize-capability-schema.d.ts +0 -20
  548. package/dist/harness/authoring/summarize-capability-schema.d.ts.map +0 -1
  549. package/dist/harness/authoring/summarize-capability-schema.js +0 -141
  550. package/dist/harness/authoring/summarize-capability-schema.js.map +0 -1
  551. package/dist/harness/authoring/summarize-environment.d.ts +0 -77
  552. package/dist/harness/authoring/summarize-environment.d.ts.map +0 -1
  553. package/dist/harness/authoring/summarize-environment.js +0 -298
  554. package/dist/harness/authoring/summarize-environment.js.map +0 -1
  555. package/dist/harness/authoring/summarize-probe-context.d.ts +0 -31
  556. package/dist/harness/authoring/summarize-probe-context.d.ts.map +0 -1
  557. package/dist/harness/authoring/summarize-probe-context.js +0 -134
  558. package/dist/harness/authoring/summarize-probe-context.js.map +0 -1
  559. package/dist/harness/authoring/summarize-run-context.d.ts +0 -28
  560. package/dist/harness/authoring/summarize-run-context.d.ts.map +0 -1
  561. package/dist/harness/authoring/summarize-run-context.js +0 -40
  562. package/dist/harness/authoring/summarize-run-context.js.map +0 -1
  563. package/dist/harness/authoring/summarize-workflow.d.ts +0 -37
  564. package/dist/harness/authoring/summarize-workflow.d.ts.map +0 -1
  565. package/dist/harness/authoring/summarize-workflow.js +0 -148
  566. package/dist/harness/authoring/summarize-workflow.js.map +0 -1
  567. package/dist/harness/authoring/to-provider-chat-turns.d.ts.map +0 -1
  568. package/dist/harness/authoring/to-provider-chat-turns.js.map +0 -1
  569. package/dist/harness/call-model.d.ts +0 -15
  570. package/dist/harness/call-model.d.ts.map +0 -1
  571. package/dist/harness/call-model.js +0 -59
  572. package/dist/harness/call-model.js.map +0 -1
  573. package/dist/harness/context.d.ts +0 -28
  574. package/dist/harness/context.d.ts.map +0 -1
  575. package/dist/harness/context.js +0 -19
  576. package/dist/harness/context.js.map +0 -1
  577. package/dist/harness/define-harness.d.ts +0 -37
  578. package/dist/harness/define-harness.d.ts.map +0 -1
  579. package/dist/harness/define-harness.js +0 -88
  580. package/dist/harness/define-harness.js.map +0 -1
  581. package/dist/harness/definitions/test-minimal-harness.d.ts +0 -13
  582. package/dist/harness/definitions/test-minimal-harness.d.ts.map +0 -1
  583. package/dist/harness/definitions/test-minimal-harness.js +0 -45
  584. package/dist/harness/definitions/test-minimal-harness.js.map +0 -1
  585. package/dist/harness/execute-harness.d.ts +0 -9
  586. package/dist/harness/execute-harness.d.ts.map +0 -1
  587. package/dist/harness/execute-harness.js +0 -142
  588. package/dist/harness/execute-harness.js.map +0 -1
  589. package/dist/harness/format-resolve.d.ts +0 -26
  590. package/dist/harness/format-resolve.d.ts.map +0 -1
  591. package/dist/harness/format-resolve.js +0 -50
  592. package/dist/harness/format-resolve.js.map +0 -1
  593. package/dist/harness/harness-catalog.d.ts +0 -41
  594. package/dist/harness/harness-catalog.d.ts.map +0 -1
  595. package/dist/harness/harness-catalog.js +0 -66
  596. package/dist/harness/harness-catalog.js.map +0 -1
  597. package/dist/harness/index.d.ts +0 -11
  598. package/dist/harness/index.d.ts.map +0 -1
  599. package/dist/harness/index.js +0 -9
  600. package/dist/harness/index.js.map +0 -1
  601. package/dist/harness/prompts/build-repair-hint.d.ts +0 -8
  602. package/dist/harness/prompts/build-repair-hint.d.ts.map +0 -1
  603. package/dist/harness/prompts/build-repair-hint.js +0 -28
  604. package/dist/harness/prompts/build-repair-hint.js.map +0 -1
  605. package/dist/harness/prompts/build-system-prompt.d.ts +0 -7
  606. package/dist/harness/prompts/build-system-prompt.d.ts.map +0 -1
  607. package/dist/harness/prompts/build-system-prompt.js +0 -97
  608. package/dist/harness/prompts/build-system-prompt.js.map +0 -1
  609. package/dist/harness/prompts/eql-primer.d.ts +0 -14
  610. package/dist/harness/prompts/eql-primer.d.ts.map +0 -1
  611. package/dist/harness/prompts/eql-primer.js +0 -221
  612. package/dist/harness/prompts/eql-primer.js.map +0 -1
  613. package/dist/harness/prompts/fixtures-root.d.ts +0 -5
  614. package/dist/harness/prompts/fixtures-root.d.ts.map +0 -1
  615. package/dist/harness/prompts/fixtures-root.js +0 -7
  616. package/dist/harness/prompts/fixtures-root.js.map +0 -1
  617. package/dist/harness/prompts/harness-prompt-fixture-schema.d.ts +0 -95
  618. package/dist/harness/prompts/harness-prompt-fixture-schema.d.ts.map +0 -1
  619. package/dist/harness/prompts/harness-prompt-fixture-schema.js +0 -28
  620. package/dist/harness/prompts/harness-prompt-fixture-schema.js.map +0 -1
  621. package/dist/harness/prompts/identity-primer.d.ts +0 -6
  622. package/dist/harness/prompts/identity-primer.d.ts.map +0 -1
  623. package/dist/harness/prompts/identity-primer.js +0 -9
  624. package/dist/harness/prompts/identity-primer.js.map +0 -1
  625. package/dist/harness/prompts/index.d.ts +0 -7
  626. package/dist/harness/prompts/index.d.ts.map +0 -1
  627. package/dist/harness/prompts/index.js +0 -7
  628. package/dist/harness/prompts/index.js.map +0 -1
  629. package/dist/harness/prompts/load-schema-example.browser.d.ts +0 -11
  630. package/dist/harness/prompts/load-schema-example.browser.d.ts.map +0 -1
  631. package/dist/harness/prompts/load-schema-example.browser.js +0 -70
  632. package/dist/harness/prompts/load-schema-example.browser.js.map +0 -1
  633. package/dist/harness/prompts/load-schema-example.d.ts +0 -11
  634. package/dist/harness/prompts/load-schema-example.d.ts.map +0 -1
  635. package/dist/harness/prompts/load-schema-example.js +0 -22
  636. package/dist/harness/prompts/load-schema-example.js.map +0 -1
  637. package/dist/harness/prompts/load-schema-example.node.d.ts +0 -7
  638. package/dist/harness/prompts/load-schema-example.node.d.ts.map +0 -1
  639. package/dist/harness/prompts/load-schema-example.node.js +0 -38
  640. package/dist/harness/prompts/load-schema-example.node.js.map +0 -1
  641. package/dist/harness/prompts/schema-example-files.d.ts +0 -7
  642. package/dist/harness/prompts/schema-example-files.d.ts.map +0 -1
  643. package/dist/harness/prompts/schema-example-files.js +0 -12
  644. package/dist/harness/prompts/schema-example-files.js.map +0 -1
  645. package/dist/harness/prompts/typescript-primer.d.ts +0 -11
  646. package/dist/harness/prompts/typescript-primer.d.ts.map +0 -1
  647. package/dist/harness/prompts/typescript-primer.js +0 -80
  648. package/dist/harness/prompts/typescript-primer.js.map +0 -1
  649. package/dist/harness/repair-loop-timing.d.ts +0 -17
  650. package/dist/harness/repair-loop-timing.d.ts.map +0 -1
  651. package/dist/harness/repair-loop-timing.js +0 -89
  652. package/dist/harness/repair-loop-timing.js.map +0 -1
  653. package/dist/harness/resolve-harness-binding.d.ts +0 -10
  654. package/dist/harness/resolve-harness-binding.d.ts.map +0 -1
  655. package/dist/harness/resolve-harness-binding.js +0 -14
  656. package/dist/harness/resolve-harness-binding.js.map +0 -1
  657. package/dist/harness/run-model-repair-loop.d.ts +0 -45
  658. package/dist/harness/run-model-repair-loop.d.ts.map +0 -1
  659. package/dist/harness/run-model-repair-loop.js +0 -57
  660. package/dist/harness/run-model-repair-loop.js.map +0 -1
  661. package/dist/harness/types.d.ts +0 -34
  662. package/dist/harness/types.d.ts.map +0 -1
  663. package/dist/harness/types.js +0 -2
  664. package/dist/harness/types.js.map +0 -1
  665. package/dist/helpers/browser.d.ts +0 -12
  666. package/dist/helpers/browser.d.ts.map +0 -1
  667. package/dist/helpers/browser.js +0 -12
  668. package/dist/helpers/browser.js.map +0 -1
  669. package/dist/loaders/files.d.ts +0 -13
  670. package/dist/loaders/files.d.ts.map +0 -1
  671. package/dist/loaders/files.js +0 -66
  672. package/dist/loaders/files.js.map +0 -1
  673. package/dist/loaders/index.d.ts +0 -2
  674. package/dist/loaders/index.d.ts.map +0 -1
  675. package/dist/loaders/index.js +0 -2
  676. package/dist/loaders/index.js.map +0 -1
  677. package/dist/loaders/read-media-file.d.ts +0 -6
  678. package/dist/loaders/read-media-file.d.ts.map +0 -1
  679. package/dist/loaders/read-media-file.js +0 -10
  680. package/dist/loaders/read-media-file.js.map +0 -1
  681. package/dist/node.d.ts +0 -8
  682. package/dist/node.d.ts.map +0 -1
  683. package/dist/node.js +0 -8
  684. package/dist/node.js.map +0 -1
  685. package/dist/runtime/test-session-state.d.ts +0 -23
  686. package/dist/runtime/test-session-state.d.ts.map +0 -1
  687. package/dist/runtime/test-session-state.js +0 -62
  688. package/dist/runtime/test-session-state.js.map +0 -1
  689. package/dist/test-session/index.d.ts +0 -2
  690. package/dist/test-session/index.d.ts.map +0 -1
  691. package/dist/test-session/index.js +0 -2
  692. package/dist/test-session/index.js.map +0 -1
  693. package/dist/test-session/test-session.d.ts +0 -36
  694. package/dist/test-session/test-session.d.ts.map +0 -1
  695. package/dist/test-session/test-session.js +0 -115
  696. package/dist/test-session/test-session.js.map +0 -1
  697. package/dist/testing/test-model-generate.d.ts +0 -15
  698. package/dist/testing/test-model-generate.d.ts.map +0 -1
  699. package/dist/testing/test-model-generate.js +0 -71
  700. package/dist/testing/test-model-generate.js.map +0 -1
  701. package/dist/validate/harness.d.ts +0 -11
  702. package/dist/validate/harness.d.ts.map +0 -1
  703. package/dist/validate/harness.js +0 -72
  704. package/dist/validate/harness.js.map +0 -1
@@ -0,0 +1,155 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/DecodeResultDocument",
4
+ "definitions": {
5
+ "DecodeResultDocument": {
6
+ "$ref": "#/definitions/DecodeResult%3Cunknown%3E",
7
+ "description": "Concrete decode result for schema generation.",
8
+ "category": "Encoding"
9
+ },
10
+ "DecodeResult<unknown>": {
11
+ "type": "object",
12
+ "properties": {
13
+ "schema": {
14
+ "type": "string",
15
+ "const": "@executioncontrolprotocol.decode.result"
16
+ },
17
+ "version": {
18
+ "$ref": "#/definitions/EcpVersion"
19
+ },
20
+ "success": {
21
+ "type": "boolean"
22
+ },
23
+ "targetSchema": {
24
+ "$ref": "#/definitions/EcpSchema"
25
+ },
26
+ "targetVersion": {
27
+ "$ref": "#/definitions/EcpVersion"
28
+ },
29
+ "result": {},
30
+ "validation": {
31
+ "$ref": "#/definitions/ValidationResult"
32
+ },
33
+ "diagnostics": {
34
+ "type": "array",
35
+ "items": {
36
+ "$ref": "#/definitions/ValidationIssue"
37
+ }
38
+ }
39
+ },
40
+ "required": [
41
+ "schema",
42
+ "version",
43
+ "success",
44
+ "diagnostics"
45
+ ],
46
+ "additionalProperties": false,
47
+ "description": "Decode operation result.",
48
+ "category": "Encoding"
49
+ },
50
+ "EcpVersion": {
51
+ "type": "string",
52
+ "description": "ECP semantic version literal.",
53
+ "category": "Common"
54
+ },
55
+ "EcpSchema": {
56
+ "type": "string",
57
+ "enum": [
58
+ "@executioncontrolprotocol.workflow",
59
+ "@executioncontrolprotocol.environment",
60
+ "@executioncontrolprotocol.environment.describe",
61
+ "@executioncontrolprotocol.environment.search",
62
+ "@executioncontrolprotocol.requirements",
63
+ "@executioncontrolprotocol.run.request",
64
+ "@executioncontrolprotocol.run.result",
65
+ "@executioncontrolprotocol.run.event",
66
+ "@executioncontrolprotocol.validation.result",
67
+ "@executioncontrolprotocol.patch",
68
+ "@executioncontrolprotocol.patch.result",
69
+ "@executioncontrolprotocol.encode.result",
70
+ "@executioncontrolprotocol.decode.result",
71
+ "@executioncontrolprotocol.run.journal"
72
+ ],
73
+ "description": "Serialized object schema discriminator.",
74
+ "category": "Common"
75
+ },
76
+ "ValidationResult": {
77
+ "type": "object",
78
+ "properties": {
79
+ "schema": {
80
+ "type": "string",
81
+ "const": "@executioncontrolprotocol.validation.result"
82
+ },
83
+ "version": {
84
+ "$ref": "#/definitions/EcpVersion"
85
+ },
86
+ "valid": {
87
+ "type": "boolean"
88
+ },
89
+ "errors": {
90
+ "type": "array",
91
+ "items": {
92
+ "$ref": "#/definitions/ValidationIssue"
93
+ }
94
+ },
95
+ "warnings": {
96
+ "type": "array",
97
+ "items": {
98
+ "$ref": "#/definitions/ValidationIssue"
99
+ }
100
+ }
101
+ },
102
+ "required": [
103
+ "schema",
104
+ "version",
105
+ "valid",
106
+ "errors",
107
+ "warnings"
108
+ ],
109
+ "additionalProperties": false,
110
+ "description": "Validation result document.",
111
+ "category": "Validation"
112
+ },
113
+ "ValidationIssue": {
114
+ "type": "object",
115
+ "properties": {
116
+ "code": {
117
+ "type": "string"
118
+ },
119
+ "message": {
120
+ "type": "string"
121
+ },
122
+ "path": {
123
+ "type": "string"
124
+ },
125
+ "suggestions": {
126
+ "type": "array",
127
+ "items": {
128
+ "type": "string"
129
+ }
130
+ },
131
+ "severity": {
132
+ "$ref": "#/definitions/ValidationSeverity"
133
+ }
134
+ },
135
+ "required": [
136
+ "code",
137
+ "message"
138
+ ],
139
+ "additionalProperties": false,
140
+ "description": "Single validation issue.",
141
+ "category": "Validation"
142
+ },
143
+ "ValidationSeverity": {
144
+ "type": "string",
145
+ "enum": [
146
+ "error",
147
+ "warning",
148
+ "info"
149
+ ],
150
+ "description": "Validation issue severity.",
151
+ "category": "Validation"
152
+ }
153
+ },
154
+ "$id": "https://ecp.dev/schemas/decode.result.json"
155
+ }
@@ -0,0 +1,162 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/EncodeResultDocument",
4
+ "definitions": {
5
+ "EncodeResultDocument": {
6
+ "$ref": "#/definitions/EncodeResult%3Cunknown%3E",
7
+ "description": "Concrete encode result for schema generation.",
8
+ "category": "Encoding"
9
+ },
10
+ "EncodeResult<unknown>": {
11
+ "type": "object",
12
+ "properties": {
13
+ "schema": {
14
+ "type": "string",
15
+ "const": "@executioncontrolprotocol.encode.result"
16
+ },
17
+ "version": {
18
+ "$ref": "#/definitions/EcpVersion"
19
+ },
20
+ "success": {
21
+ "type": "boolean"
22
+ },
23
+ "format": {
24
+ "type": "string"
25
+ },
26
+ "sourceSchema": {
27
+ "$ref": "#/definitions/EcpSchema"
28
+ },
29
+ "sourceVersion": {
30
+ "$ref": "#/definitions/EcpVersion"
31
+ },
32
+ "mediaType": {
33
+ "type": "string"
34
+ },
35
+ "result": {},
36
+ "validation": {
37
+ "$ref": "#/definitions/ValidationResult"
38
+ },
39
+ "diagnostics": {
40
+ "type": "array",
41
+ "items": {
42
+ "$ref": "#/definitions/ValidationIssue"
43
+ }
44
+ }
45
+ },
46
+ "required": [
47
+ "schema",
48
+ "version",
49
+ "success",
50
+ "format",
51
+ "diagnostics"
52
+ ],
53
+ "additionalProperties": false,
54
+ "description": "Encode operation result.",
55
+ "category": "Encoding"
56
+ },
57
+ "EcpVersion": {
58
+ "type": "string",
59
+ "description": "ECP semantic version literal.",
60
+ "category": "Common"
61
+ },
62
+ "EcpSchema": {
63
+ "type": "string",
64
+ "enum": [
65
+ "@executioncontrolprotocol.workflow",
66
+ "@executioncontrolprotocol.environment",
67
+ "@executioncontrolprotocol.environment.describe",
68
+ "@executioncontrolprotocol.environment.search",
69
+ "@executioncontrolprotocol.requirements",
70
+ "@executioncontrolprotocol.run.request",
71
+ "@executioncontrolprotocol.run.result",
72
+ "@executioncontrolprotocol.run.event",
73
+ "@executioncontrolprotocol.validation.result",
74
+ "@executioncontrolprotocol.patch",
75
+ "@executioncontrolprotocol.patch.result",
76
+ "@executioncontrolprotocol.encode.result",
77
+ "@executioncontrolprotocol.decode.result",
78
+ "@executioncontrolprotocol.run.journal"
79
+ ],
80
+ "description": "Serialized object schema discriminator.",
81
+ "category": "Common"
82
+ },
83
+ "ValidationResult": {
84
+ "type": "object",
85
+ "properties": {
86
+ "schema": {
87
+ "type": "string",
88
+ "const": "@executioncontrolprotocol.validation.result"
89
+ },
90
+ "version": {
91
+ "$ref": "#/definitions/EcpVersion"
92
+ },
93
+ "valid": {
94
+ "type": "boolean"
95
+ },
96
+ "errors": {
97
+ "type": "array",
98
+ "items": {
99
+ "$ref": "#/definitions/ValidationIssue"
100
+ }
101
+ },
102
+ "warnings": {
103
+ "type": "array",
104
+ "items": {
105
+ "$ref": "#/definitions/ValidationIssue"
106
+ }
107
+ }
108
+ },
109
+ "required": [
110
+ "schema",
111
+ "version",
112
+ "valid",
113
+ "errors",
114
+ "warnings"
115
+ ],
116
+ "additionalProperties": false,
117
+ "description": "Validation result document.",
118
+ "category": "Validation"
119
+ },
120
+ "ValidationIssue": {
121
+ "type": "object",
122
+ "properties": {
123
+ "code": {
124
+ "type": "string"
125
+ },
126
+ "message": {
127
+ "type": "string"
128
+ },
129
+ "path": {
130
+ "type": "string"
131
+ },
132
+ "suggestions": {
133
+ "type": "array",
134
+ "items": {
135
+ "type": "string"
136
+ }
137
+ },
138
+ "severity": {
139
+ "$ref": "#/definitions/ValidationSeverity"
140
+ }
141
+ },
142
+ "required": [
143
+ "code",
144
+ "message"
145
+ ],
146
+ "additionalProperties": false,
147
+ "description": "Single validation issue.",
148
+ "category": "Validation"
149
+ },
150
+ "ValidationSeverity": {
151
+ "type": "string",
152
+ "enum": [
153
+ "error",
154
+ "warning",
155
+ "info"
156
+ ],
157
+ "description": "Validation issue severity.",
158
+ "category": "Validation"
159
+ }
160
+ },
161
+ "$id": "https://ecp.dev/schemas/encode.result.json"
162
+ }
@@ -0,0 +1,362 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/EnvironmentDescriptor",
4
+ "definitions": {
5
+ "EnvironmentDescriptor": {
6
+ "type": "object",
7
+ "properties": {
8
+ "schema": {
9
+ "type": "string",
10
+ "const": "@executioncontrolprotocol.environment.describe"
11
+ },
12
+ "version": {
13
+ "$ref": "#/definitions/EcpVersion"
14
+ },
15
+ "environment": {
16
+ "type": "object",
17
+ "properties": {
18
+ "id": {
19
+ "type": "string"
20
+ },
21
+ "label": {
22
+ "type": "string"
23
+ }
24
+ },
25
+ "required": [
26
+ "id"
27
+ ],
28
+ "additionalProperties": false
29
+ },
30
+ "runtime": {
31
+ "$ref": "#/definitions/RuntimeDescription"
32
+ },
33
+ "extensions": {
34
+ "type": "array",
35
+ "items": {
36
+ "$ref": "#/definitions/ExtensionDescription"
37
+ }
38
+ },
39
+ "capabilities": {
40
+ "type": "array",
41
+ "items": {
42
+ "$ref": "#/definitions/CapabilityDescription"
43
+ }
44
+ },
45
+ "policies": {
46
+ "type": "array",
47
+ "items": {
48
+ "$ref": "#/definitions/PolicyDescription"
49
+ }
50
+ },
51
+ "remoteInvoke": {
52
+ "type": "object",
53
+ "properties": {
54
+ "url": {
55
+ "type": "string"
56
+ }
57
+ },
58
+ "required": [
59
+ "url"
60
+ ],
61
+ "additionalProperties": false,
62
+ "description": "Local invoke host URL when this environment hops host/mixed capabilities. Token is never included."
63
+ }
64
+ },
65
+ "required": [
66
+ "schema",
67
+ "version",
68
+ "environment",
69
+ "runtime",
70
+ "extensions",
71
+ "capabilities",
72
+ "policies"
73
+ ],
74
+ "additionalProperties": false,
75
+ "description": "Environment descriptor for discovery.",
76
+ "category": "Environment"
77
+ },
78
+ "EcpVersion": {
79
+ "type": "string",
80
+ "description": "ECP semantic version literal.",
81
+ "category": "Common"
82
+ },
83
+ "RuntimeDescription": {
84
+ "type": "object",
85
+ "properties": {
86
+ "id": {
87
+ "type": "string"
88
+ },
89
+ "label": {
90
+ "type": "string"
91
+ },
92
+ "features": {
93
+ "$ref": "#/definitions/RuntimeFeatures"
94
+ }
95
+ },
96
+ "required": [
97
+ "id",
98
+ "features"
99
+ ],
100
+ "additionalProperties": false,
101
+ "description": "Runtime section of descriptor.",
102
+ "category": "Environment"
103
+ },
104
+ "RuntimeFeatures": {
105
+ "type": "object",
106
+ "properties": {
107
+ "durableExecution": {
108
+ "type": "boolean"
109
+ },
110
+ "loops": {
111
+ "type": "boolean"
112
+ },
113
+ "parallel": {
114
+ "type": "boolean"
115
+ },
116
+ "branches": {
117
+ "type": "boolean"
118
+ },
119
+ "pauses": {
120
+ "type": "boolean"
121
+ },
122
+ "cancellation": {
123
+ "type": "boolean"
124
+ },
125
+ "longRunningWorkflows": {
126
+ "type": "boolean"
127
+ }
128
+ },
129
+ "additionalProperties": false,
130
+ "description": "Runtime feature flags for validation.",
131
+ "category": "Environment"
132
+ },
133
+ "ExtensionDescription": {
134
+ "type": "object",
135
+ "properties": {
136
+ "id": {
137
+ "type": "string"
138
+ },
139
+ "label": {
140
+ "type": "string"
141
+ },
142
+ "summary": {
143
+ "type": "string",
144
+ "description": "One-line summary from extension metadata (inventory)."
145
+ },
146
+ "order": {
147
+ "type": "number"
148
+ },
149
+ "configSchema": {},
150
+ "capabilities": {
151
+ "type": "array",
152
+ "items": {
153
+ "type": "string"
154
+ }
155
+ },
156
+ "isAuthorable": {
157
+ "type": "boolean",
158
+ "description": "From extension metadata. Present only when `false` (default authorable). Capability inventory omits extensions with `isAuthorable: false`."
159
+ },
160
+ "metadata": {
161
+ "$ref": "#/definitions/ExtensionMetadata",
162
+ "description": "Full extension metadata (exact-id describe only)."
163
+ },
164
+ "supportedEnvironments": {
165
+ "type": "array",
166
+ "items": {
167
+ "type": "string"
168
+ },
169
+ "description": "Environments this extension supports when restricted; omitted when universal."
170
+ }
171
+ },
172
+ "required": [
173
+ "id",
174
+ "order",
175
+ "capabilities"
176
+ ],
177
+ "additionalProperties": false,
178
+ "description": "Extension section of descriptor.",
179
+ "category": "Environment"
180
+ },
181
+ "ExtensionMetadata": {
182
+ "type": "object",
183
+ "properties": {
184
+ "summary": {
185
+ "type": "string",
186
+ "description": "One-line what + when."
187
+ },
188
+ "description": {
189
+ "type": "string",
190
+ "description": "Full agent docs for the extension package."
191
+ },
192
+ "useCases": {
193
+ "type": "array",
194
+ "items": {
195
+ "type": "string"
196
+ },
197
+ "description": "Optional situations an agent should recognize."
198
+ },
199
+ "label": {
200
+ "type": "string",
201
+ "description": "Optional distinct display title."
202
+ },
203
+ "isAuthorable": {
204
+ "type": "boolean",
205
+ "description": "When `false`, capability inventory omits this extension. Default / omit is `true` (workflow-facing packages stay visible)."
206
+ },
207
+ "topicAlias": {
208
+ "type": "string",
209
+ "description": "Optional kebab-case oclif topic alias generated by `ecp plugins build`. Commands stay under {@code definition.name}; the alias is extra, not a second definition."
210
+ },
211
+ "_meta": {
212
+ "type": "object",
213
+ "additionalProperties": {},
214
+ "description": "Non-standard extensions."
215
+ }
216
+ },
217
+ "required": [
218
+ "summary",
219
+ "description"
220
+ ],
221
+ "additionalProperties": false,
222
+ "description": "Agent-facing extension docs authored via {@code .withMetadata()}. Shape matches {@link extensionMetadataSchema } (Zod is the runtime source of truth).",
223
+ "category": "Schema"
224
+ },
225
+ "CapabilityDescription": {
226
+ "type": "object",
227
+ "properties": {
228
+ "id": {
229
+ "type": "string"
230
+ },
231
+ "label": {
232
+ "type": "string"
233
+ },
234
+ "summary": {
235
+ "type": "string",
236
+ "description": "One-line summary from capability metadata (inventory)."
237
+ },
238
+ "extension": {
239
+ "type": "string"
240
+ },
241
+ "inputSchema": {},
242
+ "outputSchema": {},
243
+ "metadata": {
244
+ "$ref": "#/definitions/CapabilityMetadata",
245
+ "description": "Full capability metadata (exact-id describe only)."
246
+ },
247
+ "execution": {
248
+ "$ref": "#/definitions/CapabilityExecution",
249
+ "description": "Where this capability executes (`local` | `host` | `mixed`). Omitted when not declared and not inferred from the extension."
250
+ }
251
+ },
252
+ "required": [
253
+ "id",
254
+ "extension"
255
+ ],
256
+ "additionalProperties": false,
257
+ "description": "Capability metadata in descriptor.",
258
+ "category": "Environment"
259
+ },
260
+ "CapabilityMetadata": {
261
+ "type": "object",
262
+ "properties": {
263
+ "summary": {
264
+ "type": "string",
265
+ "description": "One-line what + when (inventory / catalog)."
266
+ },
267
+ "description": {
268
+ "type": "string",
269
+ "description": "Full agent docs: behavior, product limits, when this capability applies."
270
+ },
271
+ "useCases": {
272
+ "type": "array",
273
+ "items": {
274
+ "type": "string"
275
+ },
276
+ "description": "Concrete situations an agent should recognize (before the call)."
277
+ },
278
+ "label": {
279
+ "type": "string",
280
+ "description": "Optional distinct display title; describe falls back to capability name."
281
+ },
282
+ "projections": {
283
+ "type": "array",
284
+ "items": {
285
+ "$ref": "#/definitions/CapabilityProjection"
286
+ },
287
+ "description": "What to take from the output after the call, in plain text. Stays off authoring inventory; shown with exact-id detail and after inspect runs."
288
+ },
289
+ "_meta": {
290
+ "type": "object",
291
+ "additionalProperties": {},
292
+ "description": "Non-standard extensions (vendor docs urls, tags, …)."
293
+ }
294
+ },
295
+ "required": [
296
+ "summary",
297
+ "description",
298
+ "useCases",
299
+ "projections"
300
+ ],
301
+ "additionalProperties": false,
302
+ "description": "Agent-facing capability docs authored via {@code .withMetadata()}. Shape matches {@link capabilityMetadataSchema } (Zod is the runtime source of truth). Declared as an interface so JSON Schema generation and object-literal checks stay stable.",
303
+ "category": "Schema"
304
+ },
305
+ "CapabilityProjection": {
306
+ "type": "object",
307
+ "properties": {
308
+ "summary": {
309
+ "type": "string",
310
+ "description": "What to take from the output after the call."
311
+ },
312
+ "description": {
313
+ "type": "string",
314
+ "description": "How to take it, in sentences."
315
+ }
316
+ },
317
+ "required": [
318
+ "summary",
319
+ "description"
320
+ ],
321
+ "additionalProperties": false,
322
+ "description": "Plain-text note for what to take from a capability output after the call. Used after discovery / inspect runs; not a sample payload or path query. Shape matches {@link capabilityProjectionSchema } (Zod is the runtime source of truth).",
323
+ "category": "Schema"
324
+ },
325
+ "CapabilityExecution": {
326
+ "type": "string",
327
+ "enum": [
328
+ "local",
329
+ "host",
330
+ "mixed"
331
+ ],
332
+ "description": "Capability execution kind.",
333
+ "category": "Capabilities"
334
+ },
335
+ "PolicyDescription": {
336
+ "type": "object",
337
+ "properties": {
338
+ "id": {
339
+ "type": "string"
340
+ },
341
+ "label": {
342
+ "type": "string"
343
+ },
344
+ "summary": {
345
+ "type": "string"
346
+ },
347
+ "config": {
348
+ "type": "object",
349
+ "additionalProperties": {}
350
+ },
351
+ "configSchema": {}
352
+ },
353
+ "required": [
354
+ "id"
355
+ ],
356
+ "additionalProperties": false,
357
+ "description": "Policy metadata in descriptor.",
358
+ "category": "Environment"
359
+ }
360
+ },
361
+ "$id": "https://ecp.dev/schemas/environment.describe.json"
362
+ }