@interf/compiler 0.7.2 → 0.9.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 (306) hide show
  1. package/README.md +141 -99
  2. package/TRADEMARKS.md +1 -1
  3. package/agent-skills/interf-actions/SKILL.md +71 -0
  4. package/agent-skills/interf-actions/references/cli.md +190 -0
  5. package/apps/compiler-ui/.next/server/app/index.html +1 -0
  6. package/apps/compiler-ui/.next/static/XWKL548yXD_UOG4ID9G3J/_buildManifest.js +11 -0
  7. package/apps/compiler-ui/.next/static/XWKL548yXD_UOG4ID9G3J/_clientMiddlewareManifest.js +1 -0
  8. package/apps/compiler-ui/.next/static/XWKL548yXD_UOG4ID9G3J/_ssgManifest.js +1 -0
  9. package/apps/compiler-ui/.next/static/chunks/03~yq9q893hmn.js +1 -0
  10. package/apps/compiler-ui/.next/static/chunks/06z~l3kwb891e.js +1 -0
  11. package/apps/compiler-ui/.next/static/chunks/08g7lvje.te.u.js +1 -0
  12. package/apps/compiler-ui/.next/static/chunks/08m7vf5asqlsm.js +91 -0
  13. package/apps/compiler-ui/.next/static/chunks/0_i-3_5l9t2qe.js +1 -0
  14. package/apps/compiler-ui/.next/static/chunks/0b-ywny_j0g~0.js +1 -0
  15. package/apps/compiler-ui/.next/static/chunks/0b52v41o1gixx.js +1 -0
  16. package/apps/compiler-ui/.next/static/chunks/0fgt_8knmicoz.js +124 -0
  17. package/apps/compiler-ui/.next/static/chunks/0gpzgsv0w.q~m.js +31 -0
  18. package/apps/compiler-ui/.next/static/chunks/0ilwfezfvu6~-.js +1 -0
  19. package/apps/compiler-ui/.next/static/chunks/0n51hrfoufc7g.js +1 -0
  20. package/apps/compiler-ui/.next/static/chunks/0ti_66mx7~w2-.js +5 -0
  21. package/apps/compiler-ui/.next/static/chunks/0xxmf45eskdt~.css +1 -0
  22. package/apps/compiler-ui/.next/static/chunks/0y5z3t-z1c8ks.js.map +5 -0
  23. package/apps/compiler-ui/.next/static/chunks/13g~4mamjft.c.css +3 -0
  24. package/apps/compiler-ui/.next/static/chunks/14wtz~vq25~qq.js +1 -0
  25. package/apps/compiler-ui/.next/static/chunks/turbopack-109rtik40vwh5.js +1 -0
  26. package/apps/compiler-ui/.next/static/chunks/turbopack-10e~t1yzi4svj.js +1 -0
  27. package/apps/compiler-ui/.next/static/chunks/turbopack-worker-0sjn--fhq~1cg.js +1 -0
  28. package/apps/compiler-ui/.next/static/media/GeistMono_Variable.p.17jn9btb_52pq.woff2 +0 -0
  29. package/apps/compiler-ui/.next/static/media/Geist_Variable-s.p.0-te~ja_gpvcf.woff2 +0 -0
  30. package/apps/compiler-ui/.next/static/media/worker.102zas1s52_pf.js +109 -0
  31. package/builtin-workflows/interf/README.md +8 -8
  32. package/builtin-workflows/interf/compile/stages/shape/SKILL.md +6 -6
  33. package/builtin-workflows/interf/compile/stages/structure/SKILL.md +1 -1
  34. package/builtin-workflows/interf/improve/SKILL.md +2 -2
  35. package/builtin-workflows/interf/use/query/SKILL.md +2 -2
  36. package/builtin-workflows/interf/workflow.json +9 -9
  37. package/builtin-workflows/interf/workflow.schema.json +2 -2
  38. package/dist/cli/commands/check-draft.d.ts +5 -4
  39. package/dist/cli/commands/check-draft.js +18 -17
  40. package/dist/cli/commands/compile-controller.d.ts +3 -0
  41. package/dist/cli/commands/compile-controller.js +53 -45
  42. package/dist/cli/commands/compile.js +83 -27
  43. package/dist/cli/commands/compiled-flow.d.ts +3 -0
  44. package/dist/cli/commands/compiled-flow.js +9 -7
  45. package/dist/cli/commands/control-path.d.ts +11 -0
  46. package/dist/cli/commands/control-path.js +72 -0
  47. package/dist/cli/commands/create-workflow-wizard.d.ts +12 -0
  48. package/dist/cli/commands/create-workflow-wizard.js +232 -66
  49. package/dist/cli/commands/create.js +70 -46
  50. package/dist/cli/commands/default.js +5 -3
  51. package/dist/cli/commands/doctor.js +5 -5
  52. package/dist/cli/commands/executor-flow.js +1 -1
  53. package/dist/cli/commands/init.js +362 -101
  54. package/dist/cli/commands/list.js +8 -7
  55. package/dist/cli/commands/preparation-selection.d.ts +6 -0
  56. package/dist/cli/commands/preparation-selection.js +11 -0
  57. package/dist/cli/commands/reset.js +3 -3
  58. package/dist/cli/commands/source-config-wizard.d.ts +4 -4
  59. package/dist/cli/commands/source-config-wizard.js +175 -200
  60. package/dist/cli/commands/status.js +116 -8
  61. package/dist/cli/commands/test-flow.d.ts +1 -1
  62. package/dist/cli/commands/test-flow.js +35 -33
  63. package/dist/cli/commands/test.d.ts +4 -0
  64. package/dist/cli/commands/test.js +95 -58
  65. package/dist/cli/commands/verify.js +7 -7
  66. package/dist/cli/commands/web.d.ts +11 -0
  67. package/dist/cli/commands/web.js +373 -0
  68. package/dist/cli/index.d.ts +2 -1
  69. package/dist/cli/index.js +3 -1
  70. package/dist/index.d.ts +4 -2
  71. package/dist/index.js +3 -1
  72. package/dist/packages/agents/lib/execution.js +4 -2
  73. package/dist/packages/agents/lib/executors.d.ts +1 -0
  74. package/dist/packages/agents/lib/executors.js +1 -0
  75. package/dist/packages/agents/lib/render.d.ts +2 -2
  76. package/dist/packages/agents/lib/render.js +10 -9
  77. package/dist/packages/agents/lib/shells.d.ts +3 -11
  78. package/dist/packages/agents/lib/shells.js +58 -106
  79. package/dist/packages/agents/lib/types.d.ts +1 -0
  80. package/dist/packages/compiler/compiled-paths.d.ts +4 -1
  81. package/dist/packages/compiler/compiled-paths.js +8 -2
  82. package/dist/packages/compiler/compiled-pipeline.d.ts +7 -0
  83. package/dist/packages/compiler/compiled-pipeline.js +15 -4
  84. package/dist/packages/compiler/compiled-schema.js +1 -1
  85. package/dist/packages/compiler/compiled-stage-plan.d.ts +2 -2
  86. package/dist/packages/compiler/compiled-stage-plan.js +4 -4
  87. package/dist/packages/compiler/compiled-stage-runner.d.ts +5 -0
  88. package/dist/packages/compiler/compiled-stage-runner.js +50 -2
  89. package/dist/packages/compiler/compiled-target.d.ts +1 -1
  90. package/dist/packages/compiler/compiled-target.js +2 -2
  91. package/dist/packages/compiler/lib/schema.d.ts +161 -1
  92. package/dist/packages/compiler/lib/schema.js +87 -1
  93. package/dist/packages/compiler/raw-snapshot.d.ts +9 -2
  94. package/dist/packages/compiler/runtime-acceptance.js +1 -1
  95. package/dist/packages/compiler/runtime-contracts.js +2 -2
  96. package/dist/packages/compiler/runtime-prompt.js +7 -7
  97. package/dist/packages/compiler/runtime-reconcile.js +3 -3
  98. package/dist/packages/compiler/runtime-runs.js +3 -0
  99. package/dist/packages/compiler/runtime-types.d.ts +1 -0
  100. package/dist/packages/compiler/state-health.js +1 -1
  101. package/dist/packages/compiler/state-view.js +2 -2
  102. package/dist/packages/compiler/validate-compiled.js +11 -9
  103. package/dist/packages/execution/adapters.d.ts +15 -0
  104. package/dist/packages/execution/adapters.js +1 -0
  105. package/dist/packages/execution/events.d.ts +8 -0
  106. package/dist/packages/execution/events.js +16 -0
  107. package/dist/packages/execution/index.d.ts +9 -0
  108. package/dist/packages/execution/index.js +6 -0
  109. package/dist/packages/execution/lib/schema.d.ts +1554 -0
  110. package/dist/packages/execution/lib/schema.js +319 -0
  111. package/dist/packages/local-service/action-values.d.ts +23 -0
  112. package/dist/packages/local-service/action-values.js +31 -0
  113. package/dist/packages/local-service/client.d.ts +119 -0
  114. package/dist/packages/local-service/client.js +356 -0
  115. package/dist/packages/local-service/index.d.ts +15 -0
  116. package/dist/packages/local-service/index.js +11 -0
  117. package/dist/packages/local-service/lib/schema.d.ts +7355 -0
  118. package/dist/packages/local-service/lib/schema.js +636 -0
  119. package/dist/packages/local-service/routes.d.ts +27 -0
  120. package/dist/packages/local-service/routes.js +32 -0
  121. package/dist/packages/local-service/runtime.d.ts +134 -0
  122. package/dist/packages/local-service/runtime.js +2841 -0
  123. package/dist/packages/local-service/server.d.ts +17 -0
  124. package/dist/packages/local-service/server.js +572 -0
  125. package/dist/packages/project-model/index.d.ts +2 -1
  126. package/dist/packages/project-model/index.js +1 -0
  127. package/dist/packages/project-model/interf-detect.d.ts +6 -2
  128. package/dist/packages/project-model/interf-detect.js +48 -19
  129. package/dist/packages/project-model/interf-scaffold.d.ts +1 -0
  130. package/dist/packages/project-model/interf-scaffold.js +39 -17
  131. package/dist/packages/project-model/interf.d.ts +2 -2
  132. package/dist/packages/project-model/interf.js +2 -2
  133. package/dist/packages/project-model/lib/schema.d.ts +80 -6
  134. package/dist/packages/project-model/lib/schema.js +29 -19
  135. package/dist/packages/project-model/project-paths.d.ts +3 -1
  136. package/dist/packages/project-model/project-paths.js +6 -2
  137. package/dist/packages/project-model/source-config.d.ts +25 -11
  138. package/dist/packages/project-model/source-config.js +152 -82
  139. package/dist/packages/project-model/source-folders.d.ts +11 -0
  140. package/dist/packages/project-model/source-folders.js +110 -0
  141. package/dist/packages/testing/test-execution.js +5 -5
  142. package/dist/packages/testing/test-paths.js +4 -3
  143. package/dist/packages/workflow-authoring/workflow-authoring.d.ts +4 -6
  144. package/dist/packages/workflow-authoring/workflow-authoring.js +46 -85
  145. package/dist/packages/workflow-authoring/workflow-edit-session.d.ts +2 -0
  146. package/dist/packages/workflow-authoring/workflow-edit-session.js +83 -49
  147. package/dist/packages/workflow-authoring/workflow-improvement.js +2 -1
  148. package/dist/packages/workflow-package/context-interface.js +2 -2
  149. package/dist/packages/workflow-package/interf-workflow-package.d.ts +6 -0
  150. package/dist/packages/workflow-package/interf-workflow-package.js +115 -8
  151. package/dist/packages/workflow-package/local-workflows.js +33 -17
  152. package/dist/packages/workflow-package/workflow-definitions.d.ts +5 -5
  153. package/dist/packages/workflow-package/workflow-definitions.js +23 -22
  154. package/dist/packages/workflow-package/workflow-helpers.js +10 -6
  155. package/dist/packages/workflow-package/workflow-review-paths.js +5 -1
  156. package/dist/packages/workflow-package/workflow-stage-runner.d.ts +1 -0
  157. package/dist/packages/workflow-package/workflow-stage-runner.js +2 -0
  158. package/package.json +18 -4
  159. package/dist/cli/commands/dataset-selection.d.ts +0 -6
  160. package/dist/cli/commands/dataset-selection.js +0 -11
  161. package/dist/lib/agent-args.d.ts +0 -1
  162. package/dist/lib/agent-args.js +0 -1
  163. package/dist/lib/agent-constants.d.ts +0 -1
  164. package/dist/lib/agent-constants.js +0 -1
  165. package/dist/lib/agent-detection.d.ts +0 -1
  166. package/dist/lib/agent-detection.js +0 -1
  167. package/dist/lib/agent-execution.d.ts +0 -1
  168. package/dist/lib/agent-execution.js +0 -1
  169. package/dist/lib/agent-logs.d.ts +0 -1
  170. package/dist/lib/agent-logs.js +0 -1
  171. package/dist/lib/agent-preflight.d.ts +0 -1
  172. package/dist/lib/agent-preflight.js +0 -1
  173. package/dist/lib/agent-render.d.ts +0 -1
  174. package/dist/lib/agent-render.js +0 -1
  175. package/dist/lib/agent-shells.d.ts +0 -1
  176. package/dist/lib/agent-shells.js +0 -1
  177. package/dist/lib/agent-status.d.ts +0 -1
  178. package/dist/lib/agent-status.js +0 -1
  179. package/dist/lib/agent-types.d.ts +0 -1
  180. package/dist/lib/agent-types.js +0 -1
  181. package/dist/lib/agents.d.ts +0 -1
  182. package/dist/lib/agents.js +0 -1
  183. package/dist/lib/builtin-compiled-workflow.d.ts +0 -1
  184. package/dist/lib/builtin-compiled-workflow.js +0 -1
  185. package/dist/lib/chart-guidance.d.ts +0 -1
  186. package/dist/lib/chart-guidance.js +0 -1
  187. package/dist/lib/compiled-compile.d.ts +0 -1
  188. package/dist/lib/compiled-compile.js +0 -1
  189. package/dist/lib/compiled-paths.d.ts +0 -1
  190. package/dist/lib/compiled-paths.js +0 -3
  191. package/dist/lib/compiled-raw.d.ts +0 -1
  192. package/dist/lib/compiled-raw.js +0 -3
  193. package/dist/lib/compiled-reset.d.ts +0 -1
  194. package/dist/lib/compiled-reset.js +0 -3
  195. package/dist/lib/compiled-schema.d.ts +0 -1
  196. package/dist/lib/compiled-schema.js +0 -1
  197. package/dist/lib/discovery.d.ts +0 -1
  198. package/dist/lib/discovery.js +0 -1
  199. package/dist/lib/execution-profile.d.ts +0 -1
  200. package/dist/lib/execution-profile.js +0 -1
  201. package/dist/lib/executors.d.ts +0 -1
  202. package/dist/lib/executors.js +0 -1
  203. package/dist/lib/filesystem.d.ts +0 -1
  204. package/dist/lib/filesystem.js +0 -1
  205. package/dist/lib/interf-bootstrap.d.ts +0 -1
  206. package/dist/lib/interf-bootstrap.js +0 -3
  207. package/dist/lib/interf-detect.d.ts +0 -1
  208. package/dist/lib/interf-detect.js +0 -3
  209. package/dist/lib/interf-scaffold.d.ts +0 -1
  210. package/dist/lib/interf-scaffold.js +0 -3
  211. package/dist/lib/interf-workflow-package.d.ts +0 -1
  212. package/dist/lib/interf-workflow-package.js +0 -1
  213. package/dist/lib/interf.d.ts +0 -1
  214. package/dist/lib/interf.js +0 -3
  215. package/dist/lib/local-workflows.d.ts +0 -1
  216. package/dist/lib/local-workflows.js +0 -1
  217. package/dist/lib/logger.d.ts +0 -1
  218. package/dist/lib/logger.js +0 -1
  219. package/dist/lib/package-root.d.ts +0 -1
  220. package/dist/lib/package-root.js +0 -1
  221. package/dist/lib/parse.d.ts +0 -1
  222. package/dist/lib/parse.js +0 -1
  223. package/dist/lib/project-paths.d.ts +0 -1
  224. package/dist/lib/project-paths.js +0 -3
  225. package/dist/lib/runtime-acceptance.d.ts +0 -1
  226. package/dist/lib/runtime-acceptance.js +0 -1
  227. package/dist/lib/runtime-contracts.d.ts +0 -1
  228. package/dist/lib/runtime-contracts.js +0 -1
  229. package/dist/lib/runtime-inventory.d.ts +0 -1
  230. package/dist/lib/runtime-inventory.js +0 -1
  231. package/dist/lib/runtime-paths.d.ts +0 -1
  232. package/dist/lib/runtime-paths.js +0 -1
  233. package/dist/lib/runtime-prompt.d.ts +0 -1
  234. package/dist/lib/runtime-prompt.js +0 -1
  235. package/dist/lib/runtime-reconcile.d.ts +0 -1
  236. package/dist/lib/runtime-reconcile.js +0 -1
  237. package/dist/lib/runtime-runs.d.ts +0 -1
  238. package/dist/lib/runtime-runs.js +0 -1
  239. package/dist/lib/runtime-types.d.ts +0 -1
  240. package/dist/lib/runtime-types.js +0 -1
  241. package/dist/lib/runtime.d.ts +0 -1
  242. package/dist/lib/runtime.js +0 -1
  243. package/dist/lib/schema.d.ts +0 -4
  244. package/dist/lib/schema.js +0 -6
  245. package/dist/lib/source-config.d.ts +0 -1
  246. package/dist/lib/source-config.js +0 -3
  247. package/dist/lib/state-artifacts.d.ts +0 -1
  248. package/dist/lib/state-artifacts.js +0 -1
  249. package/dist/lib/state-health.d.ts +0 -1
  250. package/dist/lib/state-health.js +0 -1
  251. package/dist/lib/state-io.d.ts +0 -1
  252. package/dist/lib/state-io.js +0 -1
  253. package/dist/lib/state-paths.d.ts +0 -1
  254. package/dist/lib/state-paths.js +0 -1
  255. package/dist/lib/state-view.d.ts +0 -1
  256. package/dist/lib/state-view.js +0 -1
  257. package/dist/lib/state.d.ts +0 -1
  258. package/dist/lib/state.js +0 -1
  259. package/dist/lib/test-execution.d.ts +0 -1
  260. package/dist/lib/test-execution.js +0 -3
  261. package/dist/lib/test-matrices.d.ts +0 -1
  262. package/dist/lib/test-matrices.js +0 -3
  263. package/dist/lib/test-paths.d.ts +0 -1
  264. package/dist/lib/test-paths.js +0 -3
  265. package/dist/lib/test-profile-presets.d.ts +0 -1
  266. package/dist/lib/test-profile-presets.js +0 -3
  267. package/dist/lib/test-sandbox.d.ts +0 -1
  268. package/dist/lib/test-sandbox.js +0 -3
  269. package/dist/lib/test-specs.d.ts +0 -1
  270. package/dist/lib/test-specs.js +0 -3
  271. package/dist/lib/test-targets.d.ts +0 -1
  272. package/dist/lib/test-targets.js +0 -3
  273. package/dist/lib/test-types.d.ts +0 -1
  274. package/dist/lib/test-types.js +0 -3
  275. package/dist/lib/test.d.ts +0 -1
  276. package/dist/lib/test.js +0 -3
  277. package/dist/lib/util.d.ts +0 -1
  278. package/dist/lib/util.js +0 -1
  279. package/dist/lib/validate-compiled.d.ts +0 -1
  280. package/dist/lib/validate-compiled.js +0 -1
  281. package/dist/lib/validate-helpers.d.ts +0 -1
  282. package/dist/lib/validate-helpers.js +0 -1
  283. package/dist/lib/validate.d.ts +0 -1
  284. package/dist/lib/validate.js +0 -1
  285. package/dist/lib/workflow-authoring.d.ts +0 -1
  286. package/dist/lib/workflow-authoring.js +0 -1
  287. package/dist/lib/workflow-definitions.d.ts +0 -1
  288. package/dist/lib/workflow-definitions.js +0 -1
  289. package/dist/lib/workflow-edit-session.d.ts +0 -1
  290. package/dist/lib/workflow-edit-session.js +0 -1
  291. package/dist/lib/workflow-edit-utils.d.ts +0 -1
  292. package/dist/lib/workflow-edit-utils.js +0 -1
  293. package/dist/lib/workflow-helpers.d.ts +0 -1
  294. package/dist/lib/workflow-helpers.js +0 -1
  295. package/dist/lib/workflow-improvement.d.ts +0 -1
  296. package/dist/lib/workflow-improvement.js +0 -1
  297. package/dist/lib/workflow-primitives.d.ts +0 -1
  298. package/dist/lib/workflow-primitives.js +0 -1
  299. package/dist/lib/workflow-review-paths.d.ts +0 -1
  300. package/dist/lib/workflow-review-paths.js +0 -1
  301. package/dist/lib/workflow-stage-policy.d.ts +0 -1
  302. package/dist/lib/workflow-stage-policy.js +0 -1
  303. package/dist/lib/workflow-stage-runner.d.ts +0 -1
  304. package/dist/lib/workflow-stage-runner.js +0 -1
  305. package/dist/lib/workflows.d.ts +0 -1
  306. package/dist/lib/workflows.js +0 -1
@@ -0,0 +1,1554 @@
1
+ import { z } from "zod";
2
+ export declare const WorkflowTraceRunStatusSchema: z.ZodEnum<{
3
+ running: "running";
4
+ failed: "failed";
5
+ pending: "pending";
6
+ completed: "completed";
7
+ cancelled: "cancelled";
8
+ }>;
9
+ export declare const WorkflowTraceEventTypeSchema: z.ZodEnum<{
10
+ run_created: "run_created";
11
+ run_started: "run_started";
12
+ run_completed: "run_completed";
13
+ run_failed: "run_failed";
14
+ run_cancelled: "run_cancelled";
15
+ step_created: "step_created";
16
+ step_started: "step_started";
17
+ step_completed: "step_completed";
18
+ step_failed: "step_failed";
19
+ step_retrying: "step_retrying";
20
+ hook_created: "hook_created";
21
+ hook_received: "hook_received";
22
+ hook_disposed: "hook_disposed";
23
+ hook_conflict: "hook_conflict";
24
+ wait_created: "wait_created";
25
+ wait_completed: "wait_completed";
26
+ }>;
27
+ export declare const WorkflowTraceStructuredErrorSchema: z.ZodObject<{
28
+ message: z.ZodString;
29
+ stack: z.ZodOptional<z.ZodString>;
30
+ code: z.ZodOptional<z.ZodString>;
31
+ }, z.core.$strict>;
32
+ export declare const WorkflowTraceRunSchema: z.ZodObject<{
33
+ runId: z.ZodString;
34
+ status: z.ZodEnum<{
35
+ running: "running";
36
+ failed: "failed";
37
+ pending: "pending";
38
+ completed: "completed";
39
+ cancelled: "cancelled";
40
+ }>;
41
+ deploymentId: z.ZodString;
42
+ workflowName: z.ZodString;
43
+ specVersion: z.ZodLiteral<1>;
44
+ executionContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
45
+ input: z.ZodUnknown;
46
+ output: z.ZodOptional<z.ZodUnknown>;
47
+ error: z.ZodOptional<z.ZodObject<{
48
+ message: z.ZodString;
49
+ stack: z.ZodOptional<z.ZodString>;
50
+ code: z.ZodOptional<z.ZodString>;
51
+ }, z.core.$strict>>;
52
+ expiredAt: z.ZodOptional<z.ZodString>;
53
+ startedAt: z.ZodOptional<z.ZodString>;
54
+ completedAt: z.ZodOptional<z.ZodString>;
55
+ createdAt: z.ZodString;
56
+ updatedAt: z.ZodString;
57
+ }, z.core.$strict>;
58
+ export declare const WorkflowTraceEventSchema: z.ZodObject<{
59
+ runId: z.ZodString;
60
+ eventId: z.ZodString;
61
+ eventType: z.ZodEnum<{
62
+ run_created: "run_created";
63
+ run_started: "run_started";
64
+ run_completed: "run_completed";
65
+ run_failed: "run_failed";
66
+ run_cancelled: "run_cancelled";
67
+ step_created: "step_created";
68
+ step_started: "step_started";
69
+ step_completed: "step_completed";
70
+ step_failed: "step_failed";
71
+ step_retrying: "step_retrying";
72
+ hook_created: "hook_created";
73
+ hook_received: "hook_received";
74
+ hook_disposed: "hook_disposed";
75
+ hook_conflict: "hook_conflict";
76
+ wait_created: "wait_created";
77
+ wait_completed: "wait_completed";
78
+ }>;
79
+ correlationId: z.ZodOptional<z.ZodString>;
80
+ specVersion: z.ZodLiteral<1>;
81
+ createdAt: z.ZodString;
82
+ eventData: z.ZodOptional<z.ZodUnknown>;
83
+ }, z.core.$strict>;
84
+ export declare const WorkflowTraceStreamChunkSchema: z.ZodObject<{
85
+ streamId: z.ZodString;
86
+ chunkId: z.ZodString;
87
+ index: z.ZodNumber;
88
+ createdAt: z.ZodString;
89
+ text: z.ZodString;
90
+ data: z.ZodOptional<z.ZodUnknown>;
91
+ }, z.core.$strict>;
92
+ export declare const WorkflowTraceSchema: z.ZodObject<{
93
+ run: z.ZodObject<{
94
+ runId: z.ZodString;
95
+ status: z.ZodEnum<{
96
+ running: "running";
97
+ failed: "failed";
98
+ pending: "pending";
99
+ completed: "completed";
100
+ cancelled: "cancelled";
101
+ }>;
102
+ deploymentId: z.ZodString;
103
+ workflowName: z.ZodString;
104
+ specVersion: z.ZodLiteral<1>;
105
+ executionContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
106
+ input: z.ZodUnknown;
107
+ output: z.ZodOptional<z.ZodUnknown>;
108
+ error: z.ZodOptional<z.ZodObject<{
109
+ message: z.ZodString;
110
+ stack: z.ZodOptional<z.ZodString>;
111
+ code: z.ZodOptional<z.ZodString>;
112
+ }, z.core.$strict>>;
113
+ expiredAt: z.ZodOptional<z.ZodString>;
114
+ startedAt: z.ZodOptional<z.ZodString>;
115
+ completedAt: z.ZodOptional<z.ZodString>;
116
+ createdAt: z.ZodString;
117
+ updatedAt: z.ZodString;
118
+ }, z.core.$strict>;
119
+ events: z.ZodDefault<z.ZodArray<z.ZodObject<{
120
+ runId: z.ZodString;
121
+ eventId: z.ZodString;
122
+ eventType: z.ZodEnum<{
123
+ run_created: "run_created";
124
+ run_started: "run_started";
125
+ run_completed: "run_completed";
126
+ run_failed: "run_failed";
127
+ run_cancelled: "run_cancelled";
128
+ step_created: "step_created";
129
+ step_started: "step_started";
130
+ step_completed: "step_completed";
131
+ step_failed: "step_failed";
132
+ step_retrying: "step_retrying";
133
+ hook_created: "hook_created";
134
+ hook_received: "hook_received";
135
+ hook_disposed: "hook_disposed";
136
+ hook_conflict: "hook_conflict";
137
+ wait_created: "wait_created";
138
+ wait_completed: "wait_completed";
139
+ }>;
140
+ correlationId: z.ZodOptional<z.ZodString>;
141
+ specVersion: z.ZodLiteral<1>;
142
+ createdAt: z.ZodString;
143
+ eventData: z.ZodOptional<z.ZodUnknown>;
144
+ }, z.core.$strict>>>;
145
+ streams: z.ZodDefault<z.ZodArray<z.ZodObject<{
146
+ streamId: z.ZodString;
147
+ chunkId: z.ZodString;
148
+ index: z.ZodNumber;
149
+ createdAt: z.ZodString;
150
+ text: z.ZodString;
151
+ data: z.ZodOptional<z.ZodUnknown>;
152
+ }, z.core.$strict>>>;
153
+ }, z.core.$strict>;
154
+ export declare const ObservableRunTypeSchema: z.ZodEnum<{
155
+ compile: "compile";
156
+ "preparation-setup": "preparation-setup";
157
+ test: "test";
158
+ "readiness-check-draft": "readiness-check-draft";
159
+ "method-authoring": "method-authoring";
160
+ "method-improvement": "method-improvement";
161
+ job: "job";
162
+ }>;
163
+ export declare const ObservableRunStatusSchema: z.ZodEnum<{
164
+ running: "running";
165
+ failed: "failed";
166
+ succeeded: "succeeded";
167
+ cancelled: "cancelled";
168
+ queued: "queued";
169
+ }>;
170
+ export declare const ObservableRunMetricSchema: z.ZodObject<{
171
+ label: z.ZodString;
172
+ value: z.ZodString;
173
+ detail: z.ZodOptional<z.ZodString>;
174
+ }, z.core.$strict>;
175
+ export declare const ExecutionBackendKindSchema: z.ZodEnum<{
176
+ native: "native";
177
+ "workflow-sdk": "workflow-sdk";
178
+ }>;
179
+ export declare const CompileRunStatusSchema: z.ZodEnum<{
180
+ running: "running";
181
+ failed: "failed";
182
+ succeeded: "succeeded";
183
+ cancelled: "cancelled";
184
+ queued: "queued";
185
+ }>;
186
+ export declare const StageRunStatusSchema: z.ZodEnum<{
187
+ running: "running";
188
+ failed: "failed";
189
+ succeeded: "succeeded";
190
+ queued: "queued";
191
+ skipped: "skipped";
192
+ }>;
193
+ export declare const ArtifactRoleSchema: z.ZodEnum<{
194
+ output: "output";
195
+ runtime: "runtime";
196
+ source: "source";
197
+ test: "test";
198
+ proof: "proof";
199
+ }>;
200
+ export declare const ArtifactRefSchema: z.ZodObject<{
201
+ path: z.ZodString;
202
+ role: z.ZodEnum<{
203
+ output: "output";
204
+ runtime: "runtime";
205
+ source: "source";
206
+ test: "test";
207
+ proof: "proof";
208
+ }>;
209
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
210
+ label: z.ZodOptional<z.ZodString>;
211
+ sha256: z.ZodOptional<z.ZodString>;
212
+ }, z.core.$strict>;
213
+ export declare const ProofCheckSchema: z.ZodObject<{
214
+ id: z.ZodString;
215
+ label: z.ZodString;
216
+ ok: z.ZodBoolean;
217
+ detail: z.ZodOptional<z.ZodString>;
218
+ }, z.core.$strict>;
219
+ export declare const RunObservabilitySchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
220
+ kind: z.ZodLiteral<"interf-run-observability">;
221
+ version: z.ZodLiteral<1>;
222
+ run_id: z.ZodString;
223
+ run_type: z.ZodEnum<{
224
+ compile: "compile";
225
+ "preparation-setup": "preparation-setup";
226
+ test: "test";
227
+ "readiness-check-draft": "readiness-check-draft";
228
+ "method-authoring": "method-authoring";
229
+ "method-improvement": "method-improvement";
230
+ job: "job";
231
+ }>;
232
+ title: z.ZodString;
233
+ status: z.ZodEnum<{
234
+ running: "running";
235
+ failed: "failed";
236
+ succeeded: "succeeded";
237
+ cancelled: "cancelled";
238
+ queued: "queued";
239
+ }>;
240
+ preparation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
241
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
+ source_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
243
+ output_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
+ executor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
245
+ kind: z.ZodEnum<{
246
+ "local-agent": "local-agent";
247
+ "connected-provider": "connected-provider";
248
+ managed: "managed";
249
+ }>;
250
+ name: z.ZodString;
251
+ display_name: z.ZodString;
252
+ command: z.ZodNullable<z.ZodString>;
253
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
254
+ effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
255
+ profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
256
+ timeout_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
257
+ }, z.core.$strip>>>;
258
+ agent_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
259
+ created_at: z.ZodString;
260
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
261
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
262
+ metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
263
+ label: z.ZodString;
264
+ value: z.ZodString;
265
+ detail: z.ZodOptional<z.ZodString>;
266
+ }, z.core.$strict>>>;
267
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
268
+ path: z.ZodString;
269
+ role: z.ZodEnum<{
270
+ output: "output";
271
+ runtime: "runtime";
272
+ source: "source";
273
+ test: "test";
274
+ proof: "proof";
275
+ }>;
276
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
277
+ label: z.ZodOptional<z.ZodString>;
278
+ sha256: z.ZodOptional<z.ZodString>;
279
+ }, z.core.$strict>>>;
280
+ proof: z.ZodDefault<z.ZodArray<z.ZodObject<{
281
+ id: z.ZodString;
282
+ label: z.ZodString;
283
+ ok: z.ZodBoolean;
284
+ detail: z.ZodOptional<z.ZodString>;
285
+ }, z.core.$strict>>>;
286
+ readiness: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
287
+ kind: z.ZodLiteral<"interf-readiness-state">;
288
+ version: z.ZodLiteral<1>;
289
+ generated_at: z.ZodString;
290
+ preparation: z.ZodString;
291
+ status: z.ZodEnum<{
292
+ stale: "stale";
293
+ failed: "failed";
294
+ "not-configured": "not-configured";
295
+ "not-built": "not-built";
296
+ building: "building";
297
+ built: "built";
298
+ checking: "checking";
299
+ ready: "ready";
300
+ "not-ready": "not-ready";
301
+ }>;
302
+ ready: z.ZodBoolean;
303
+ summary: z.ZodString;
304
+ portable_context_path: z.ZodNullable<z.ZodString>;
305
+ latest_compile_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
306
+ latest_test_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
307
+ compile: z.ZodNullable<z.ZodObject<{
308
+ gate: z.ZodEnum<{
309
+ "preparation-config": "preparation-config";
310
+ "portable-context": "portable-context";
311
+ "compile-run": "compile-run";
312
+ "readiness-checks": "readiness-checks";
313
+ "source-baseline": "source-baseline";
314
+ "portable-context-check": "portable-context-check";
315
+ "checks-current": "checks-current";
316
+ }>;
317
+ ok: z.ZodBoolean;
318
+ status: z.ZodOptional<z.ZodEnum<{
319
+ stale: "stale";
320
+ failed: "failed";
321
+ "not-configured": "not-configured";
322
+ "not-built": "not-built";
323
+ building: "building";
324
+ built: "built";
325
+ checking: "checking";
326
+ ready: "ready";
327
+ "not-ready": "not-ready";
328
+ }>>;
329
+ summary: z.ZodString;
330
+ detail: z.ZodOptional<z.ZodString>;
331
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
332
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
333
+ }, z.core.$strict>>;
334
+ check_results: z.ZodObject<{
335
+ configured: z.ZodNumber;
336
+ fingerprint: z.ZodNullable<z.ZodString>;
337
+ source_files: z.ZodNullable<z.ZodObject<{
338
+ passed: z.ZodNumber;
339
+ total: z.ZodNumber;
340
+ pass_rate: z.ZodNullable<z.ZodNumber>;
341
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
342
+ stale: z.ZodDefault<z.ZodBoolean>;
343
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
344
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
345
+ }, z.core.$strict>>;
346
+ portable_context: z.ZodNullable<z.ZodObject<{
347
+ passed: z.ZodNumber;
348
+ total: z.ZodNumber;
349
+ pass_rate: z.ZodNullable<z.ZodNumber>;
350
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
351
+ stale: z.ZodDefault<z.ZodBoolean>;
352
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
353
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
354
+ }, z.core.$strict>>;
355
+ delta: z.ZodNullable<z.ZodNumber>;
356
+ }, z.core.$strict>;
357
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
358
+ gate: z.ZodEnum<{
359
+ "preparation-config": "preparation-config";
360
+ "portable-context": "portable-context";
361
+ "compile-run": "compile-run";
362
+ "readiness-checks": "readiness-checks";
363
+ "source-baseline": "source-baseline";
364
+ "portable-context-check": "portable-context-check";
365
+ "checks-current": "checks-current";
366
+ }>;
367
+ ok: z.ZodBoolean;
368
+ status: z.ZodOptional<z.ZodEnum<{
369
+ stale: "stale";
370
+ failed: "failed";
371
+ "not-configured": "not-configured";
372
+ "not-built": "not-built";
373
+ building: "building";
374
+ built: "built";
375
+ checking: "checking";
376
+ ready: "ready";
377
+ "not-ready": "not-ready";
378
+ }>>;
379
+ summary: z.ZodString;
380
+ detail: z.ZodOptional<z.ZodString>;
381
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
382
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
383
+ }, z.core.$strict>>>;
384
+ }, z.core.$strict>>>>;
385
+ trace: z.ZodObject<{
386
+ run: z.ZodObject<{
387
+ runId: z.ZodString;
388
+ status: z.ZodEnum<{
389
+ running: "running";
390
+ failed: "failed";
391
+ pending: "pending";
392
+ completed: "completed";
393
+ cancelled: "cancelled";
394
+ }>;
395
+ deploymentId: z.ZodString;
396
+ workflowName: z.ZodString;
397
+ specVersion: z.ZodLiteral<1>;
398
+ executionContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
399
+ input: z.ZodUnknown;
400
+ output: z.ZodOptional<z.ZodUnknown>;
401
+ error: z.ZodOptional<z.ZodObject<{
402
+ message: z.ZodString;
403
+ stack: z.ZodOptional<z.ZodString>;
404
+ code: z.ZodOptional<z.ZodString>;
405
+ }, z.core.$strict>>;
406
+ expiredAt: z.ZodOptional<z.ZodString>;
407
+ startedAt: z.ZodOptional<z.ZodString>;
408
+ completedAt: z.ZodOptional<z.ZodString>;
409
+ createdAt: z.ZodString;
410
+ updatedAt: z.ZodString;
411
+ }, z.core.$strict>;
412
+ events: z.ZodDefault<z.ZodArray<z.ZodObject<{
413
+ runId: z.ZodString;
414
+ eventId: z.ZodString;
415
+ eventType: z.ZodEnum<{
416
+ run_created: "run_created";
417
+ run_started: "run_started";
418
+ run_completed: "run_completed";
419
+ run_failed: "run_failed";
420
+ run_cancelled: "run_cancelled";
421
+ step_created: "step_created";
422
+ step_started: "step_started";
423
+ step_completed: "step_completed";
424
+ step_failed: "step_failed";
425
+ step_retrying: "step_retrying";
426
+ hook_created: "hook_created";
427
+ hook_received: "hook_received";
428
+ hook_disposed: "hook_disposed";
429
+ hook_conflict: "hook_conflict";
430
+ wait_created: "wait_created";
431
+ wait_completed: "wait_completed";
432
+ }>;
433
+ correlationId: z.ZodOptional<z.ZodString>;
434
+ specVersion: z.ZodLiteral<1>;
435
+ createdAt: z.ZodString;
436
+ eventData: z.ZodOptional<z.ZodUnknown>;
437
+ }, z.core.$strict>>>;
438
+ streams: z.ZodDefault<z.ZodArray<z.ZodObject<{
439
+ streamId: z.ZodString;
440
+ chunkId: z.ZodString;
441
+ index: z.ZodNumber;
442
+ createdAt: z.ZodString;
443
+ text: z.ZodString;
444
+ data: z.ZodOptional<z.ZodUnknown>;
445
+ }, z.core.$strict>>>;
446
+ }, z.core.$strict>;
447
+ }, z.core.$strict>>;
448
+ export declare const ProofRecordSchema: z.ZodObject<{
449
+ id: z.ZodString;
450
+ run_id: z.ZodString;
451
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
452
+ generated_at: z.ZodString;
453
+ summary: z.ZodString;
454
+ files_processed: z.ZodOptional<z.ZodNumber>;
455
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
456
+ path: z.ZodString;
457
+ role: z.ZodEnum<{
458
+ output: "output";
459
+ runtime: "runtime";
460
+ source: "source";
461
+ test: "test";
462
+ proof: "proof";
463
+ }>;
464
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
465
+ label: z.ZodOptional<z.ZodString>;
466
+ sha256: z.ZodOptional<z.ZodString>;
467
+ }, z.core.$strict>>>;
468
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
469
+ id: z.ZodString;
470
+ label: z.ZodString;
471
+ ok: z.ZodBoolean;
472
+ detail: z.ZodOptional<z.ZodString>;
473
+ }, z.core.$strict>>>;
474
+ }, z.core.$strict>;
475
+ export declare const StageRunContractSchema: z.ZodObject<{
476
+ stage_label: z.ZodOptional<z.ZodString>;
477
+ stage_index: z.ZodOptional<z.ZodNumber>;
478
+ stage_total: z.ZodOptional<z.ZodNumber>;
479
+ reads: z.ZodDefault<z.ZodArray<z.ZodString>>;
480
+ writes: z.ZodDefault<z.ZodArray<z.ZodString>>;
481
+ acceptance: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
482
+ }, z.core.$strict>;
483
+ export declare const StageRunLogsSchema: z.ZodObject<{
484
+ prompt_path: z.ZodOptional<z.ZodString>;
485
+ event_stream_path: z.ZodOptional<z.ZodString>;
486
+ status_path: z.ZodOptional<z.ZodString>;
487
+ contract_path: z.ZodOptional<z.ZodString>;
488
+ }, z.core.$strict>;
489
+ export declare const RunStartedEventSchema: z.ZodObject<{
490
+ event_id: z.ZodString;
491
+ run_id: z.ZodString;
492
+ timestamp: z.ZodString;
493
+ type: z.ZodLiteral<"run.started">;
494
+ preparation: z.ZodString;
495
+ method: z.ZodString;
496
+ portable_context_path: z.ZodString;
497
+ backend: z.ZodEnum<{
498
+ native: "native";
499
+ "workflow-sdk": "workflow-sdk";
500
+ }>;
501
+ }, z.core.$strict>;
502
+ export declare const StageStartedEventSchema: z.ZodObject<{
503
+ event_id: z.ZodString;
504
+ run_id: z.ZodString;
505
+ timestamp: z.ZodString;
506
+ type: z.ZodLiteral<"stage.started">;
507
+ stage_id: z.ZodString;
508
+ stage_index: z.ZodOptional<z.ZodNumber>;
509
+ stage_total: z.ZodOptional<z.ZodNumber>;
510
+ }, z.core.$strict>;
511
+ export declare const FileProcessedEventSchema: z.ZodObject<{
512
+ event_id: z.ZodString;
513
+ run_id: z.ZodString;
514
+ timestamp: z.ZodString;
515
+ type: z.ZodLiteral<"file.processed">;
516
+ stage_id: z.ZodString;
517
+ path: z.ZodString;
518
+ }, z.core.$strict>;
519
+ export declare const ArtifactWrittenEventSchema: z.ZodObject<{
520
+ event_id: z.ZodString;
521
+ run_id: z.ZodString;
522
+ timestamp: z.ZodString;
523
+ type: z.ZodLiteral<"artifact.written">;
524
+ stage_id: z.ZodString;
525
+ artifact: z.ZodObject<{
526
+ path: z.ZodString;
527
+ role: z.ZodEnum<{
528
+ output: "output";
529
+ runtime: "runtime";
530
+ source: "source";
531
+ test: "test";
532
+ proof: "proof";
533
+ }>;
534
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
535
+ label: z.ZodOptional<z.ZodString>;
536
+ sha256: z.ZodOptional<z.ZodString>;
537
+ }, z.core.$strict>;
538
+ }, z.core.$strict>;
539
+ export declare const ProofUpdatedEventSchema: z.ZodObject<{
540
+ event_id: z.ZodString;
541
+ run_id: z.ZodString;
542
+ timestamp: z.ZodString;
543
+ type: z.ZodLiteral<"proof.updated">;
544
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
545
+ proof: z.ZodObject<{
546
+ id: z.ZodString;
547
+ run_id: z.ZodString;
548
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
549
+ generated_at: z.ZodString;
550
+ summary: z.ZodString;
551
+ files_processed: z.ZodOptional<z.ZodNumber>;
552
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
553
+ path: z.ZodString;
554
+ role: z.ZodEnum<{
555
+ output: "output";
556
+ runtime: "runtime";
557
+ source: "source";
558
+ test: "test";
559
+ proof: "proof";
560
+ }>;
561
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
562
+ label: z.ZodOptional<z.ZodString>;
563
+ sha256: z.ZodOptional<z.ZodString>;
564
+ }, z.core.$strict>>>;
565
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
566
+ id: z.ZodString;
567
+ label: z.ZodString;
568
+ ok: z.ZodBoolean;
569
+ detail: z.ZodOptional<z.ZodString>;
570
+ }, z.core.$strict>>>;
571
+ }, z.core.$strict>;
572
+ }, z.core.$strict>;
573
+ export declare const LogAppendedEventSchema: z.ZodObject<{
574
+ event_id: z.ZodString;
575
+ run_id: z.ZodString;
576
+ timestamp: z.ZodString;
577
+ type: z.ZodLiteral<"log.appended">;
578
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
579
+ stream: z.ZodEnum<{
580
+ status: "status";
581
+ trace: "trace";
582
+ system: "system";
583
+ }>;
584
+ message: z.ZodString;
585
+ }, z.core.$strict>;
586
+ export declare const StagePassedEventSchema: z.ZodObject<{
587
+ event_id: z.ZodString;
588
+ run_id: z.ZodString;
589
+ timestamp: z.ZodString;
590
+ type: z.ZodLiteral<"stage.passed">;
591
+ stage_id: z.ZodString;
592
+ summary: z.ZodOptional<z.ZodString>;
593
+ }, z.core.$strict>;
594
+ export declare const StageFailedEventSchema: z.ZodObject<{
595
+ event_id: z.ZodString;
596
+ run_id: z.ZodString;
597
+ timestamp: z.ZodString;
598
+ type: z.ZodLiteral<"stage.failed">;
599
+ stage_id: z.ZodString;
600
+ error: z.ZodString;
601
+ }, z.core.$strict>;
602
+ export declare const RunCompletedEventSchema: z.ZodObject<{
603
+ event_id: z.ZodString;
604
+ run_id: z.ZodString;
605
+ timestamp: z.ZodString;
606
+ type: z.ZodLiteral<"run.completed">;
607
+ summary: z.ZodOptional<z.ZodString>;
608
+ }, z.core.$strict>;
609
+ export declare const RunFailedEventSchema: z.ZodObject<{
610
+ event_id: z.ZodString;
611
+ run_id: z.ZodString;
612
+ timestamp: z.ZodString;
613
+ type: z.ZodLiteral<"run.failed">;
614
+ error: z.ZodString;
615
+ }, z.core.$strict>;
616
+ export declare const ChecksEvaluatedEventSchema: z.ZodObject<{
617
+ event_id: z.ZodString;
618
+ run_id: z.ZodString;
619
+ timestamp: z.ZodString;
620
+ type: z.ZodLiteral<"checks.evaluated">;
621
+ passed: z.ZodNumber;
622
+ total: z.ZodNumber;
623
+ target: z.ZodOptional<z.ZodEnum<{
624
+ compiled: "compiled";
625
+ raw: "raw";
626
+ }>>;
627
+ checks_fingerprint: z.ZodOptional<z.ZodString>;
628
+ stale: z.ZodOptional<z.ZodBoolean>;
629
+ test_run_id: z.ZodOptional<z.ZodString>;
630
+ }, z.core.$strict>;
631
+ export declare const ReadinessUpdatedEventSchema: z.ZodObject<{
632
+ event_id: z.ZodString;
633
+ run_id: z.ZodString;
634
+ timestamp: z.ZodString;
635
+ type: z.ZodLiteral<"readiness.updated">;
636
+ preparation: z.ZodString;
637
+ readiness: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
638
+ kind: z.ZodLiteral<"interf-readiness-state">;
639
+ version: z.ZodLiteral<1>;
640
+ generated_at: z.ZodString;
641
+ preparation: z.ZodString;
642
+ status: z.ZodEnum<{
643
+ stale: "stale";
644
+ failed: "failed";
645
+ "not-configured": "not-configured";
646
+ "not-built": "not-built";
647
+ building: "building";
648
+ built: "built";
649
+ checking: "checking";
650
+ ready: "ready";
651
+ "not-ready": "not-ready";
652
+ }>;
653
+ ready: z.ZodBoolean;
654
+ summary: z.ZodString;
655
+ portable_context_path: z.ZodNullable<z.ZodString>;
656
+ latest_compile_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
657
+ latest_test_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
658
+ compile: z.ZodNullable<z.ZodObject<{
659
+ gate: z.ZodEnum<{
660
+ "preparation-config": "preparation-config";
661
+ "portable-context": "portable-context";
662
+ "compile-run": "compile-run";
663
+ "readiness-checks": "readiness-checks";
664
+ "source-baseline": "source-baseline";
665
+ "portable-context-check": "portable-context-check";
666
+ "checks-current": "checks-current";
667
+ }>;
668
+ ok: z.ZodBoolean;
669
+ status: z.ZodOptional<z.ZodEnum<{
670
+ stale: "stale";
671
+ failed: "failed";
672
+ "not-configured": "not-configured";
673
+ "not-built": "not-built";
674
+ building: "building";
675
+ built: "built";
676
+ checking: "checking";
677
+ ready: "ready";
678
+ "not-ready": "not-ready";
679
+ }>>;
680
+ summary: z.ZodString;
681
+ detail: z.ZodOptional<z.ZodString>;
682
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
683
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
684
+ }, z.core.$strict>>;
685
+ check_results: z.ZodObject<{
686
+ configured: z.ZodNumber;
687
+ fingerprint: z.ZodNullable<z.ZodString>;
688
+ source_files: z.ZodNullable<z.ZodObject<{
689
+ passed: z.ZodNumber;
690
+ total: z.ZodNumber;
691
+ pass_rate: z.ZodNullable<z.ZodNumber>;
692
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
693
+ stale: z.ZodDefault<z.ZodBoolean>;
694
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
695
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
696
+ }, z.core.$strict>>;
697
+ portable_context: z.ZodNullable<z.ZodObject<{
698
+ passed: z.ZodNumber;
699
+ total: z.ZodNumber;
700
+ pass_rate: z.ZodNullable<z.ZodNumber>;
701
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
702
+ stale: z.ZodDefault<z.ZodBoolean>;
703
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
704
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
705
+ }, z.core.$strict>>;
706
+ delta: z.ZodNullable<z.ZodNumber>;
707
+ }, z.core.$strict>;
708
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
709
+ gate: z.ZodEnum<{
710
+ "preparation-config": "preparation-config";
711
+ "portable-context": "portable-context";
712
+ "compile-run": "compile-run";
713
+ "readiness-checks": "readiness-checks";
714
+ "source-baseline": "source-baseline";
715
+ "portable-context-check": "portable-context-check";
716
+ "checks-current": "checks-current";
717
+ }>;
718
+ ok: z.ZodBoolean;
719
+ status: z.ZodOptional<z.ZodEnum<{
720
+ stale: "stale";
721
+ failed: "failed";
722
+ "not-configured": "not-configured";
723
+ "not-built": "not-built";
724
+ building: "building";
725
+ built: "built";
726
+ checking: "checking";
727
+ ready: "ready";
728
+ "not-ready": "not-ready";
729
+ }>>;
730
+ summary: z.ZodString;
731
+ detail: z.ZodOptional<z.ZodString>;
732
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
733
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
734
+ }, z.core.$strict>>>;
735
+ }, z.core.$strict>>;
736
+ }, z.core.$strict>;
737
+ export declare const InterfRunEventSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
738
+ event_id: z.ZodString;
739
+ run_id: z.ZodString;
740
+ timestamp: z.ZodString;
741
+ type: z.ZodLiteral<"run.started">;
742
+ preparation: z.ZodString;
743
+ method: z.ZodString;
744
+ portable_context_path: z.ZodString;
745
+ backend: z.ZodEnum<{
746
+ native: "native";
747
+ "workflow-sdk": "workflow-sdk";
748
+ }>;
749
+ }, z.core.$strict>, z.ZodObject<{
750
+ event_id: z.ZodString;
751
+ run_id: z.ZodString;
752
+ timestamp: z.ZodString;
753
+ type: z.ZodLiteral<"stage.started">;
754
+ stage_id: z.ZodString;
755
+ stage_index: z.ZodOptional<z.ZodNumber>;
756
+ stage_total: z.ZodOptional<z.ZodNumber>;
757
+ }, z.core.$strict>, z.ZodObject<{
758
+ event_id: z.ZodString;
759
+ run_id: z.ZodString;
760
+ timestamp: z.ZodString;
761
+ type: z.ZodLiteral<"file.processed">;
762
+ stage_id: z.ZodString;
763
+ path: z.ZodString;
764
+ }, z.core.$strict>, z.ZodObject<{
765
+ event_id: z.ZodString;
766
+ run_id: z.ZodString;
767
+ timestamp: z.ZodString;
768
+ type: z.ZodLiteral<"artifact.written">;
769
+ stage_id: z.ZodString;
770
+ artifact: z.ZodObject<{
771
+ path: z.ZodString;
772
+ role: z.ZodEnum<{
773
+ output: "output";
774
+ runtime: "runtime";
775
+ source: "source";
776
+ test: "test";
777
+ proof: "proof";
778
+ }>;
779
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
780
+ label: z.ZodOptional<z.ZodString>;
781
+ sha256: z.ZodOptional<z.ZodString>;
782
+ }, z.core.$strict>;
783
+ }, z.core.$strict>, z.ZodObject<{
784
+ event_id: z.ZodString;
785
+ run_id: z.ZodString;
786
+ timestamp: z.ZodString;
787
+ type: z.ZodLiteral<"proof.updated">;
788
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
789
+ proof: z.ZodObject<{
790
+ id: z.ZodString;
791
+ run_id: z.ZodString;
792
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
793
+ generated_at: z.ZodString;
794
+ summary: z.ZodString;
795
+ files_processed: z.ZodOptional<z.ZodNumber>;
796
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
797
+ path: z.ZodString;
798
+ role: z.ZodEnum<{
799
+ output: "output";
800
+ runtime: "runtime";
801
+ source: "source";
802
+ test: "test";
803
+ proof: "proof";
804
+ }>;
805
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
806
+ label: z.ZodOptional<z.ZodString>;
807
+ sha256: z.ZodOptional<z.ZodString>;
808
+ }, z.core.$strict>>>;
809
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
810
+ id: z.ZodString;
811
+ label: z.ZodString;
812
+ ok: z.ZodBoolean;
813
+ detail: z.ZodOptional<z.ZodString>;
814
+ }, z.core.$strict>>>;
815
+ }, z.core.$strict>;
816
+ }, z.core.$strict>, z.ZodObject<{
817
+ event_id: z.ZodString;
818
+ run_id: z.ZodString;
819
+ timestamp: z.ZodString;
820
+ type: z.ZodLiteral<"log.appended">;
821
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
822
+ stream: z.ZodEnum<{
823
+ status: "status";
824
+ trace: "trace";
825
+ system: "system";
826
+ }>;
827
+ message: z.ZodString;
828
+ }, z.core.$strict>, z.ZodObject<{
829
+ event_id: z.ZodString;
830
+ run_id: z.ZodString;
831
+ timestamp: z.ZodString;
832
+ type: z.ZodLiteral<"stage.passed">;
833
+ stage_id: z.ZodString;
834
+ summary: z.ZodOptional<z.ZodString>;
835
+ }, z.core.$strict>, z.ZodObject<{
836
+ event_id: z.ZodString;
837
+ run_id: z.ZodString;
838
+ timestamp: z.ZodString;
839
+ type: z.ZodLiteral<"stage.failed">;
840
+ stage_id: z.ZodString;
841
+ error: z.ZodString;
842
+ }, z.core.$strict>, z.ZodObject<{
843
+ event_id: z.ZodString;
844
+ run_id: z.ZodString;
845
+ timestamp: z.ZodString;
846
+ type: z.ZodLiteral<"run.completed">;
847
+ summary: z.ZodOptional<z.ZodString>;
848
+ }, z.core.$strict>, z.ZodObject<{
849
+ event_id: z.ZodString;
850
+ run_id: z.ZodString;
851
+ timestamp: z.ZodString;
852
+ type: z.ZodLiteral<"run.failed">;
853
+ error: z.ZodString;
854
+ }, z.core.$strict>, z.ZodObject<{
855
+ event_id: z.ZodString;
856
+ run_id: z.ZodString;
857
+ timestamp: z.ZodString;
858
+ type: z.ZodLiteral<"checks.evaluated">;
859
+ passed: z.ZodNumber;
860
+ total: z.ZodNumber;
861
+ target: z.ZodOptional<z.ZodEnum<{
862
+ compiled: "compiled";
863
+ raw: "raw";
864
+ }>>;
865
+ checks_fingerprint: z.ZodOptional<z.ZodString>;
866
+ stale: z.ZodOptional<z.ZodBoolean>;
867
+ test_run_id: z.ZodOptional<z.ZodString>;
868
+ }, z.core.$strict>, z.ZodObject<{
869
+ event_id: z.ZodString;
870
+ run_id: z.ZodString;
871
+ timestamp: z.ZodString;
872
+ type: z.ZodLiteral<"readiness.updated">;
873
+ preparation: z.ZodString;
874
+ readiness: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
875
+ kind: z.ZodLiteral<"interf-readiness-state">;
876
+ version: z.ZodLiteral<1>;
877
+ generated_at: z.ZodString;
878
+ preparation: z.ZodString;
879
+ status: z.ZodEnum<{
880
+ stale: "stale";
881
+ failed: "failed";
882
+ "not-configured": "not-configured";
883
+ "not-built": "not-built";
884
+ building: "building";
885
+ built: "built";
886
+ checking: "checking";
887
+ ready: "ready";
888
+ "not-ready": "not-ready";
889
+ }>;
890
+ ready: z.ZodBoolean;
891
+ summary: z.ZodString;
892
+ portable_context_path: z.ZodNullable<z.ZodString>;
893
+ latest_compile_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
894
+ latest_test_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
895
+ compile: z.ZodNullable<z.ZodObject<{
896
+ gate: z.ZodEnum<{
897
+ "preparation-config": "preparation-config";
898
+ "portable-context": "portable-context";
899
+ "compile-run": "compile-run";
900
+ "readiness-checks": "readiness-checks";
901
+ "source-baseline": "source-baseline";
902
+ "portable-context-check": "portable-context-check";
903
+ "checks-current": "checks-current";
904
+ }>;
905
+ ok: z.ZodBoolean;
906
+ status: z.ZodOptional<z.ZodEnum<{
907
+ stale: "stale";
908
+ failed: "failed";
909
+ "not-configured": "not-configured";
910
+ "not-built": "not-built";
911
+ building: "building";
912
+ built: "built";
913
+ checking: "checking";
914
+ ready: "ready";
915
+ "not-ready": "not-ready";
916
+ }>>;
917
+ summary: z.ZodString;
918
+ detail: z.ZodOptional<z.ZodString>;
919
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
920
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
921
+ }, z.core.$strict>>;
922
+ check_results: z.ZodObject<{
923
+ configured: z.ZodNumber;
924
+ fingerprint: z.ZodNullable<z.ZodString>;
925
+ source_files: z.ZodNullable<z.ZodObject<{
926
+ passed: z.ZodNumber;
927
+ total: z.ZodNumber;
928
+ pass_rate: z.ZodNullable<z.ZodNumber>;
929
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
930
+ stale: z.ZodDefault<z.ZodBoolean>;
931
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
932
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
933
+ }, z.core.$strict>>;
934
+ portable_context: z.ZodNullable<z.ZodObject<{
935
+ passed: z.ZodNumber;
936
+ total: z.ZodNumber;
937
+ pass_rate: z.ZodNullable<z.ZodNumber>;
938
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
939
+ stale: z.ZodDefault<z.ZodBoolean>;
940
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
941
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
942
+ }, z.core.$strict>>;
943
+ delta: z.ZodNullable<z.ZodNumber>;
944
+ }, z.core.$strict>;
945
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
946
+ gate: z.ZodEnum<{
947
+ "preparation-config": "preparation-config";
948
+ "portable-context": "portable-context";
949
+ "compile-run": "compile-run";
950
+ "readiness-checks": "readiness-checks";
951
+ "source-baseline": "source-baseline";
952
+ "portable-context-check": "portable-context-check";
953
+ "checks-current": "checks-current";
954
+ }>;
955
+ ok: z.ZodBoolean;
956
+ status: z.ZodOptional<z.ZodEnum<{
957
+ stale: "stale";
958
+ failed: "failed";
959
+ "not-configured": "not-configured";
960
+ "not-built": "not-built";
961
+ building: "building";
962
+ built: "built";
963
+ checking: "checking";
964
+ ready: "ready";
965
+ "not-ready": "not-ready";
966
+ }>>;
967
+ summary: z.ZodString;
968
+ detail: z.ZodOptional<z.ZodString>;
969
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
970
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
971
+ }, z.core.$strict>>>;
972
+ }, z.core.$strict>>;
973
+ }, z.core.$strict>], "type">>;
974
+ export declare const StageRunSchema: z.ZodObject<{
975
+ run_id: z.ZodString;
976
+ stage_id: z.ZodString;
977
+ stage_label: z.ZodOptional<z.ZodString>;
978
+ stage_index: z.ZodOptional<z.ZodNumber>;
979
+ stage_total: z.ZodOptional<z.ZodNumber>;
980
+ status: z.ZodEnum<{
981
+ running: "running";
982
+ failed: "failed";
983
+ succeeded: "succeeded";
984
+ queued: "queued";
985
+ skipped: "skipped";
986
+ }>;
987
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
988
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
989
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
990
+ contract: z.ZodOptional<z.ZodObject<{
991
+ stage_label: z.ZodOptional<z.ZodString>;
992
+ stage_index: z.ZodOptional<z.ZodNumber>;
993
+ stage_total: z.ZodOptional<z.ZodNumber>;
994
+ reads: z.ZodDefault<z.ZodArray<z.ZodString>>;
995
+ writes: z.ZodDefault<z.ZodArray<z.ZodString>>;
996
+ acceptance: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
997
+ }, z.core.$strict>>;
998
+ executor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
999
+ kind: z.ZodEnum<{
1000
+ "local-agent": "local-agent";
1001
+ "connected-provider": "connected-provider";
1002
+ managed: "managed";
1003
+ }>;
1004
+ name: z.ZodString;
1005
+ display_name: z.ZodString;
1006
+ command: z.ZodNullable<z.ZodString>;
1007
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1008
+ effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1009
+ profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1010
+ timeout_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1011
+ }, z.core.$strip>>>;
1012
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1013
+ path: z.ZodString;
1014
+ role: z.ZodEnum<{
1015
+ output: "output";
1016
+ runtime: "runtime";
1017
+ source: "source";
1018
+ test: "test";
1019
+ proof: "proof";
1020
+ }>;
1021
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1022
+ label: z.ZodOptional<z.ZodString>;
1023
+ sha256: z.ZodOptional<z.ZodString>;
1024
+ }, z.core.$strict>>>;
1025
+ logs: z.ZodOptional<z.ZodObject<{
1026
+ prompt_path: z.ZodOptional<z.ZodString>;
1027
+ event_stream_path: z.ZodOptional<z.ZodString>;
1028
+ status_path: z.ZodOptional<z.ZodString>;
1029
+ contract_path: z.ZodOptional<z.ZodString>;
1030
+ }, z.core.$strict>>;
1031
+ latest_proof: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1032
+ id: z.ZodString;
1033
+ run_id: z.ZodString;
1034
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1035
+ generated_at: z.ZodString;
1036
+ summary: z.ZodString;
1037
+ files_processed: z.ZodOptional<z.ZodNumber>;
1038
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1039
+ path: z.ZodString;
1040
+ role: z.ZodEnum<{
1041
+ output: "output";
1042
+ runtime: "runtime";
1043
+ source: "source";
1044
+ test: "test";
1045
+ proof: "proof";
1046
+ }>;
1047
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1048
+ label: z.ZodOptional<z.ZodString>;
1049
+ sha256: z.ZodOptional<z.ZodString>;
1050
+ }, z.core.$strict>>>;
1051
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1052
+ id: z.ZodString;
1053
+ label: z.ZodString;
1054
+ ok: z.ZodBoolean;
1055
+ detail: z.ZodOptional<z.ZodString>;
1056
+ }, z.core.$strict>>>;
1057
+ }, z.core.$strict>>>;
1058
+ failure: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1059
+ }, z.core.$strict>;
1060
+ export declare const CompileRunSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
1061
+ kind: z.ZodLiteral<"interf-compile-run">;
1062
+ version: z.ZodLiteral<1>;
1063
+ run_id: z.ZodString;
1064
+ status: z.ZodEnum<{
1065
+ running: "running";
1066
+ failed: "failed";
1067
+ succeeded: "succeeded";
1068
+ cancelled: "cancelled";
1069
+ queued: "queued";
1070
+ }>;
1071
+ preparation: z.ZodString;
1072
+ method: z.ZodString;
1073
+ backend: z.ZodEnum<{
1074
+ native: "native";
1075
+ "workflow-sdk": "workflow-sdk";
1076
+ }>;
1077
+ source_path: z.ZodString;
1078
+ portable_context_path: z.ZodString;
1079
+ created_at: z.ZodString;
1080
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1081
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1082
+ stages: z.ZodDefault<z.ZodArray<z.ZodObject<{
1083
+ run_id: z.ZodString;
1084
+ stage_id: z.ZodString;
1085
+ stage_label: z.ZodOptional<z.ZodString>;
1086
+ stage_index: z.ZodOptional<z.ZodNumber>;
1087
+ stage_total: z.ZodOptional<z.ZodNumber>;
1088
+ status: z.ZodEnum<{
1089
+ running: "running";
1090
+ failed: "failed";
1091
+ succeeded: "succeeded";
1092
+ queued: "queued";
1093
+ skipped: "skipped";
1094
+ }>;
1095
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1096
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1097
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1098
+ contract: z.ZodOptional<z.ZodObject<{
1099
+ stage_label: z.ZodOptional<z.ZodString>;
1100
+ stage_index: z.ZodOptional<z.ZodNumber>;
1101
+ stage_total: z.ZodOptional<z.ZodNumber>;
1102
+ reads: z.ZodDefault<z.ZodArray<z.ZodString>>;
1103
+ writes: z.ZodDefault<z.ZodArray<z.ZodString>>;
1104
+ acceptance: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1105
+ }, z.core.$strict>>;
1106
+ executor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1107
+ kind: z.ZodEnum<{
1108
+ "local-agent": "local-agent";
1109
+ "connected-provider": "connected-provider";
1110
+ managed: "managed";
1111
+ }>;
1112
+ name: z.ZodString;
1113
+ display_name: z.ZodString;
1114
+ command: z.ZodNullable<z.ZodString>;
1115
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1116
+ effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1117
+ profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1118
+ timeout_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1119
+ }, z.core.$strip>>>;
1120
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1121
+ path: z.ZodString;
1122
+ role: z.ZodEnum<{
1123
+ output: "output";
1124
+ runtime: "runtime";
1125
+ source: "source";
1126
+ test: "test";
1127
+ proof: "proof";
1128
+ }>;
1129
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1130
+ label: z.ZodOptional<z.ZodString>;
1131
+ sha256: z.ZodOptional<z.ZodString>;
1132
+ }, z.core.$strict>>>;
1133
+ logs: z.ZodOptional<z.ZodObject<{
1134
+ prompt_path: z.ZodOptional<z.ZodString>;
1135
+ event_stream_path: z.ZodOptional<z.ZodString>;
1136
+ status_path: z.ZodOptional<z.ZodString>;
1137
+ contract_path: z.ZodOptional<z.ZodString>;
1138
+ }, z.core.$strict>>;
1139
+ latest_proof: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1140
+ id: z.ZodString;
1141
+ run_id: z.ZodString;
1142
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1143
+ generated_at: z.ZodString;
1144
+ summary: z.ZodString;
1145
+ files_processed: z.ZodOptional<z.ZodNumber>;
1146
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1147
+ path: z.ZodString;
1148
+ role: z.ZodEnum<{
1149
+ output: "output";
1150
+ runtime: "runtime";
1151
+ source: "source";
1152
+ test: "test";
1153
+ proof: "proof";
1154
+ }>;
1155
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1156
+ label: z.ZodOptional<z.ZodString>;
1157
+ sha256: z.ZodOptional<z.ZodString>;
1158
+ }, z.core.$strict>>>;
1159
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1160
+ id: z.ZodString;
1161
+ label: z.ZodString;
1162
+ ok: z.ZodBoolean;
1163
+ detail: z.ZodOptional<z.ZodString>;
1164
+ }, z.core.$strict>>>;
1165
+ }, z.core.$strict>>>;
1166
+ failure: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1167
+ }, z.core.$strict>>>;
1168
+ events: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1169
+ event_id: z.ZodString;
1170
+ run_id: z.ZodString;
1171
+ timestamp: z.ZodString;
1172
+ type: z.ZodLiteral<"run.started">;
1173
+ preparation: z.ZodString;
1174
+ method: z.ZodString;
1175
+ portable_context_path: z.ZodString;
1176
+ backend: z.ZodEnum<{
1177
+ native: "native";
1178
+ "workflow-sdk": "workflow-sdk";
1179
+ }>;
1180
+ }, z.core.$strict>, z.ZodObject<{
1181
+ event_id: z.ZodString;
1182
+ run_id: z.ZodString;
1183
+ timestamp: z.ZodString;
1184
+ type: z.ZodLiteral<"stage.started">;
1185
+ stage_id: z.ZodString;
1186
+ stage_index: z.ZodOptional<z.ZodNumber>;
1187
+ stage_total: z.ZodOptional<z.ZodNumber>;
1188
+ }, z.core.$strict>, z.ZodObject<{
1189
+ event_id: z.ZodString;
1190
+ run_id: z.ZodString;
1191
+ timestamp: z.ZodString;
1192
+ type: z.ZodLiteral<"file.processed">;
1193
+ stage_id: z.ZodString;
1194
+ path: z.ZodString;
1195
+ }, z.core.$strict>, z.ZodObject<{
1196
+ event_id: z.ZodString;
1197
+ run_id: z.ZodString;
1198
+ timestamp: z.ZodString;
1199
+ type: z.ZodLiteral<"artifact.written">;
1200
+ stage_id: z.ZodString;
1201
+ artifact: z.ZodObject<{
1202
+ path: z.ZodString;
1203
+ role: z.ZodEnum<{
1204
+ output: "output";
1205
+ runtime: "runtime";
1206
+ source: "source";
1207
+ test: "test";
1208
+ proof: "proof";
1209
+ }>;
1210
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1211
+ label: z.ZodOptional<z.ZodString>;
1212
+ sha256: z.ZodOptional<z.ZodString>;
1213
+ }, z.core.$strict>;
1214
+ }, z.core.$strict>, z.ZodObject<{
1215
+ event_id: z.ZodString;
1216
+ run_id: z.ZodString;
1217
+ timestamp: z.ZodString;
1218
+ type: z.ZodLiteral<"proof.updated">;
1219
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1220
+ proof: z.ZodObject<{
1221
+ id: z.ZodString;
1222
+ run_id: z.ZodString;
1223
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1224
+ generated_at: z.ZodString;
1225
+ summary: z.ZodString;
1226
+ files_processed: z.ZodOptional<z.ZodNumber>;
1227
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1228
+ path: z.ZodString;
1229
+ role: z.ZodEnum<{
1230
+ output: "output";
1231
+ runtime: "runtime";
1232
+ source: "source";
1233
+ test: "test";
1234
+ proof: "proof";
1235
+ }>;
1236
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1237
+ label: z.ZodOptional<z.ZodString>;
1238
+ sha256: z.ZodOptional<z.ZodString>;
1239
+ }, z.core.$strict>>>;
1240
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1241
+ id: z.ZodString;
1242
+ label: z.ZodString;
1243
+ ok: z.ZodBoolean;
1244
+ detail: z.ZodOptional<z.ZodString>;
1245
+ }, z.core.$strict>>>;
1246
+ }, z.core.$strict>;
1247
+ }, z.core.$strict>, z.ZodObject<{
1248
+ event_id: z.ZodString;
1249
+ run_id: z.ZodString;
1250
+ timestamp: z.ZodString;
1251
+ type: z.ZodLiteral<"log.appended">;
1252
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1253
+ stream: z.ZodEnum<{
1254
+ status: "status";
1255
+ trace: "trace";
1256
+ system: "system";
1257
+ }>;
1258
+ message: z.ZodString;
1259
+ }, z.core.$strict>, z.ZodObject<{
1260
+ event_id: z.ZodString;
1261
+ run_id: z.ZodString;
1262
+ timestamp: z.ZodString;
1263
+ type: z.ZodLiteral<"stage.passed">;
1264
+ stage_id: z.ZodString;
1265
+ summary: z.ZodOptional<z.ZodString>;
1266
+ }, z.core.$strict>, z.ZodObject<{
1267
+ event_id: z.ZodString;
1268
+ run_id: z.ZodString;
1269
+ timestamp: z.ZodString;
1270
+ type: z.ZodLiteral<"stage.failed">;
1271
+ stage_id: z.ZodString;
1272
+ error: z.ZodString;
1273
+ }, z.core.$strict>, z.ZodObject<{
1274
+ event_id: z.ZodString;
1275
+ run_id: z.ZodString;
1276
+ timestamp: z.ZodString;
1277
+ type: z.ZodLiteral<"run.completed">;
1278
+ summary: z.ZodOptional<z.ZodString>;
1279
+ }, z.core.$strict>, z.ZodObject<{
1280
+ event_id: z.ZodString;
1281
+ run_id: z.ZodString;
1282
+ timestamp: z.ZodString;
1283
+ type: z.ZodLiteral<"run.failed">;
1284
+ error: z.ZodString;
1285
+ }, z.core.$strict>, z.ZodObject<{
1286
+ event_id: z.ZodString;
1287
+ run_id: z.ZodString;
1288
+ timestamp: z.ZodString;
1289
+ type: z.ZodLiteral<"checks.evaluated">;
1290
+ passed: z.ZodNumber;
1291
+ total: z.ZodNumber;
1292
+ target: z.ZodOptional<z.ZodEnum<{
1293
+ compiled: "compiled";
1294
+ raw: "raw";
1295
+ }>>;
1296
+ checks_fingerprint: z.ZodOptional<z.ZodString>;
1297
+ stale: z.ZodOptional<z.ZodBoolean>;
1298
+ test_run_id: z.ZodOptional<z.ZodString>;
1299
+ }, z.core.$strict>, z.ZodObject<{
1300
+ event_id: z.ZodString;
1301
+ run_id: z.ZodString;
1302
+ timestamp: z.ZodString;
1303
+ type: z.ZodLiteral<"readiness.updated">;
1304
+ preparation: z.ZodString;
1305
+ readiness: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
1306
+ kind: z.ZodLiteral<"interf-readiness-state">;
1307
+ version: z.ZodLiteral<1>;
1308
+ generated_at: z.ZodString;
1309
+ preparation: z.ZodString;
1310
+ status: z.ZodEnum<{
1311
+ stale: "stale";
1312
+ failed: "failed";
1313
+ "not-configured": "not-configured";
1314
+ "not-built": "not-built";
1315
+ building: "building";
1316
+ built: "built";
1317
+ checking: "checking";
1318
+ ready: "ready";
1319
+ "not-ready": "not-ready";
1320
+ }>;
1321
+ ready: z.ZodBoolean;
1322
+ summary: z.ZodString;
1323
+ portable_context_path: z.ZodNullable<z.ZodString>;
1324
+ latest_compile_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1325
+ latest_test_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1326
+ compile: z.ZodNullable<z.ZodObject<{
1327
+ gate: z.ZodEnum<{
1328
+ "preparation-config": "preparation-config";
1329
+ "portable-context": "portable-context";
1330
+ "compile-run": "compile-run";
1331
+ "readiness-checks": "readiness-checks";
1332
+ "source-baseline": "source-baseline";
1333
+ "portable-context-check": "portable-context-check";
1334
+ "checks-current": "checks-current";
1335
+ }>;
1336
+ ok: z.ZodBoolean;
1337
+ status: z.ZodOptional<z.ZodEnum<{
1338
+ stale: "stale";
1339
+ failed: "failed";
1340
+ "not-configured": "not-configured";
1341
+ "not-built": "not-built";
1342
+ building: "building";
1343
+ built: "built";
1344
+ checking: "checking";
1345
+ ready: "ready";
1346
+ "not-ready": "not-ready";
1347
+ }>>;
1348
+ summary: z.ZodString;
1349
+ detail: z.ZodOptional<z.ZodString>;
1350
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1351
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1352
+ }, z.core.$strict>>;
1353
+ check_results: z.ZodObject<{
1354
+ configured: z.ZodNumber;
1355
+ fingerprint: z.ZodNullable<z.ZodString>;
1356
+ source_files: z.ZodNullable<z.ZodObject<{
1357
+ passed: z.ZodNumber;
1358
+ total: z.ZodNumber;
1359
+ pass_rate: z.ZodNullable<z.ZodNumber>;
1360
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1361
+ stale: z.ZodDefault<z.ZodBoolean>;
1362
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1363
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1364
+ }, z.core.$strict>>;
1365
+ portable_context: z.ZodNullable<z.ZodObject<{
1366
+ passed: z.ZodNumber;
1367
+ total: z.ZodNumber;
1368
+ pass_rate: z.ZodNullable<z.ZodNumber>;
1369
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1370
+ stale: z.ZodDefault<z.ZodBoolean>;
1371
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1372
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1373
+ }, z.core.$strict>>;
1374
+ delta: z.ZodNullable<z.ZodNumber>;
1375
+ }, z.core.$strict>;
1376
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1377
+ gate: z.ZodEnum<{
1378
+ "preparation-config": "preparation-config";
1379
+ "portable-context": "portable-context";
1380
+ "compile-run": "compile-run";
1381
+ "readiness-checks": "readiness-checks";
1382
+ "source-baseline": "source-baseline";
1383
+ "portable-context-check": "portable-context-check";
1384
+ "checks-current": "checks-current";
1385
+ }>;
1386
+ ok: z.ZodBoolean;
1387
+ status: z.ZodOptional<z.ZodEnum<{
1388
+ stale: "stale";
1389
+ failed: "failed";
1390
+ "not-configured": "not-configured";
1391
+ "not-built": "not-built";
1392
+ building: "building";
1393
+ built: "built";
1394
+ checking: "checking";
1395
+ ready: "ready";
1396
+ "not-ready": "not-ready";
1397
+ }>>;
1398
+ summary: z.ZodString;
1399
+ detail: z.ZodOptional<z.ZodString>;
1400
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1401
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1402
+ }, z.core.$strict>>>;
1403
+ }, z.core.$strict>>;
1404
+ }, z.core.$strict>], "type">>>>;
1405
+ latest_proof: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1406
+ id: z.ZodString;
1407
+ run_id: z.ZodString;
1408
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1409
+ generated_at: z.ZodString;
1410
+ summary: z.ZodString;
1411
+ files_processed: z.ZodOptional<z.ZodNumber>;
1412
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1413
+ path: z.ZodString;
1414
+ role: z.ZodEnum<{
1415
+ output: "output";
1416
+ runtime: "runtime";
1417
+ source: "source";
1418
+ test: "test";
1419
+ proof: "proof";
1420
+ }>;
1421
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1422
+ label: z.ZodOptional<z.ZodString>;
1423
+ sha256: z.ZodOptional<z.ZodString>;
1424
+ }, z.core.$strict>>>;
1425
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1426
+ id: z.ZodString;
1427
+ label: z.ZodString;
1428
+ ok: z.ZodBoolean;
1429
+ detail: z.ZodOptional<z.ZodString>;
1430
+ }, z.core.$strict>>>;
1431
+ }, z.core.$strict>>>;
1432
+ readiness: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
1433
+ kind: z.ZodLiteral<"interf-readiness-state">;
1434
+ version: z.ZodLiteral<1>;
1435
+ generated_at: z.ZodString;
1436
+ preparation: z.ZodString;
1437
+ status: z.ZodEnum<{
1438
+ stale: "stale";
1439
+ failed: "failed";
1440
+ "not-configured": "not-configured";
1441
+ "not-built": "not-built";
1442
+ building: "building";
1443
+ built: "built";
1444
+ checking: "checking";
1445
+ ready: "ready";
1446
+ "not-ready": "not-ready";
1447
+ }>;
1448
+ ready: z.ZodBoolean;
1449
+ summary: z.ZodString;
1450
+ portable_context_path: z.ZodNullable<z.ZodString>;
1451
+ latest_compile_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1452
+ latest_test_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1453
+ compile: z.ZodNullable<z.ZodObject<{
1454
+ gate: z.ZodEnum<{
1455
+ "preparation-config": "preparation-config";
1456
+ "portable-context": "portable-context";
1457
+ "compile-run": "compile-run";
1458
+ "readiness-checks": "readiness-checks";
1459
+ "source-baseline": "source-baseline";
1460
+ "portable-context-check": "portable-context-check";
1461
+ "checks-current": "checks-current";
1462
+ }>;
1463
+ ok: z.ZodBoolean;
1464
+ status: z.ZodOptional<z.ZodEnum<{
1465
+ stale: "stale";
1466
+ failed: "failed";
1467
+ "not-configured": "not-configured";
1468
+ "not-built": "not-built";
1469
+ building: "building";
1470
+ built: "built";
1471
+ checking: "checking";
1472
+ ready: "ready";
1473
+ "not-ready": "not-ready";
1474
+ }>>;
1475
+ summary: z.ZodString;
1476
+ detail: z.ZodOptional<z.ZodString>;
1477
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1478
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1479
+ }, z.core.$strict>>;
1480
+ check_results: z.ZodObject<{
1481
+ configured: z.ZodNumber;
1482
+ fingerprint: z.ZodNullable<z.ZodString>;
1483
+ source_files: z.ZodNullable<z.ZodObject<{
1484
+ passed: z.ZodNumber;
1485
+ total: z.ZodNumber;
1486
+ pass_rate: z.ZodNullable<z.ZodNumber>;
1487
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1488
+ stale: z.ZodDefault<z.ZodBoolean>;
1489
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1490
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1491
+ }, z.core.$strict>>;
1492
+ portable_context: z.ZodNullable<z.ZodObject<{
1493
+ passed: z.ZodNumber;
1494
+ total: z.ZodNumber;
1495
+ pass_rate: z.ZodNullable<z.ZodNumber>;
1496
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1497
+ stale: z.ZodDefault<z.ZodBoolean>;
1498
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1499
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1500
+ }, z.core.$strict>>;
1501
+ delta: z.ZodNullable<z.ZodNumber>;
1502
+ }, z.core.$strict>;
1503
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1504
+ gate: z.ZodEnum<{
1505
+ "preparation-config": "preparation-config";
1506
+ "portable-context": "portable-context";
1507
+ "compile-run": "compile-run";
1508
+ "readiness-checks": "readiness-checks";
1509
+ "source-baseline": "source-baseline";
1510
+ "portable-context-check": "portable-context-check";
1511
+ "checks-current": "checks-current";
1512
+ }>;
1513
+ ok: z.ZodBoolean;
1514
+ status: z.ZodOptional<z.ZodEnum<{
1515
+ stale: "stale";
1516
+ failed: "failed";
1517
+ "not-configured": "not-configured";
1518
+ "not-built": "not-built";
1519
+ building: "building";
1520
+ built: "built";
1521
+ checking: "checking";
1522
+ ready: "ready";
1523
+ "not-ready": "not-ready";
1524
+ }>>;
1525
+ summary: z.ZodString;
1526
+ detail: z.ZodOptional<z.ZodString>;
1527
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1528
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1529
+ }, z.core.$strict>>>;
1530
+ }, z.core.$strict>>>>;
1531
+ }, z.core.$strict>>;
1532
+ export type ExecutionBackendKind = z.infer<typeof ExecutionBackendKindSchema>;
1533
+ export type WorkflowTraceRunStatus = z.infer<typeof WorkflowTraceRunStatusSchema>;
1534
+ export type WorkflowTraceEventType = z.infer<typeof WorkflowTraceEventTypeSchema>;
1535
+ export type WorkflowTraceStructuredError = z.infer<typeof WorkflowTraceStructuredErrorSchema>;
1536
+ export type WorkflowTraceRun = z.infer<typeof WorkflowTraceRunSchema>;
1537
+ export type WorkflowTraceEvent = z.infer<typeof WorkflowTraceEventSchema>;
1538
+ export type WorkflowTraceStreamChunk = z.infer<typeof WorkflowTraceStreamChunkSchema>;
1539
+ export type WorkflowTrace = z.infer<typeof WorkflowTraceSchema>;
1540
+ export type ObservableRunType = z.infer<typeof ObservableRunTypeSchema>;
1541
+ export type ObservableRunStatus = z.infer<typeof ObservableRunStatusSchema>;
1542
+ export type ObservableRunMetric = z.infer<typeof ObservableRunMetricSchema>;
1543
+ export type RunObservability = z.infer<typeof RunObservabilitySchema>;
1544
+ export type CompileRunStatus = z.infer<typeof CompileRunStatusSchema>;
1545
+ export type StageRunStatus = z.infer<typeof StageRunStatusSchema>;
1546
+ export type ArtifactRole = z.infer<typeof ArtifactRoleSchema>;
1547
+ export type ArtifactRef = z.infer<typeof ArtifactRefSchema>;
1548
+ export type ProofCheck = z.infer<typeof ProofCheckSchema>;
1549
+ export type ProofRecord = z.infer<typeof ProofRecordSchema>;
1550
+ export type StageRunContract = z.infer<typeof StageRunContractSchema>;
1551
+ export type StageRunLogs = z.infer<typeof StageRunLogsSchema>;
1552
+ export type InterfRunEvent = z.infer<typeof InterfRunEventSchema>;
1553
+ export type StageRun = z.infer<typeof StageRunSchema>;
1554
+ export type CompileRun = z.infer<typeof CompileRunSchema>;