@interf/compiler 0.9.1 → 0.9.3

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 (250) hide show
  1. package/README.md +9 -9
  2. package/agent-skills/interf-actions/SKILL.md +3 -0
  3. package/agent-skills/interf-actions/references/cli.md +13 -13
  4. package/{builtin-workflows/interf → builtin-methods/interf-default}/README.md +2 -2
  5. package/builtin-methods/interf-default/improve/SKILL.md +18 -0
  6. package/{builtin-workflows/interf/workflow.json → builtin-methods/interf-default/method.json} +4 -4
  7. package/{builtin-workflows/interf/workflow.schema.json → builtin-methods/interf-default/method.schema.json} +2 -2
  8. package/dist/cli/commands/check-draft.d.ts +6 -6
  9. package/dist/cli/commands/check-draft.js +5 -5
  10. package/dist/cli/commands/compile-controller.d.ts +7 -7
  11. package/dist/cli/commands/compile-controller.js +35 -38
  12. package/dist/cli/commands/compile.d.ts +3 -3
  13. package/dist/cli/commands/compile.js +23 -21
  14. package/dist/cli/commands/compiled-flow.d.ts +11 -11
  15. package/dist/cli/commands/compiled-flow.js +33 -30
  16. package/dist/cli/commands/create-method-wizard.d.ts +76 -0
  17. package/dist/cli/commands/{create-workflow-wizard.js → create-method-wizard.js} +153 -163
  18. package/dist/cli/commands/create.d.ts +3 -3
  19. package/dist/cli/commands/create.js +44 -45
  20. package/dist/cli/commands/default.js +1 -1
  21. package/dist/cli/commands/executor-flow.d.ts +6 -6
  22. package/dist/cli/commands/executor-flow.js +1 -1
  23. package/dist/cli/commands/init.d.ts +2 -2
  24. package/dist/cli/commands/init.js +139 -118
  25. package/dist/cli/commands/list.js +11 -10
  26. package/dist/cli/commands/preparation-selection.d.ts +3 -3
  27. package/dist/cli/commands/source-config-wizard.d.ts +9 -9
  28. package/dist/cli/commands/source-config-wizard.js +43 -43
  29. package/dist/cli/commands/status.js +36 -9
  30. package/dist/cli/commands/test-flow.d.ts +15 -15
  31. package/dist/cli/commands/test-flow.js +29 -219
  32. package/dist/cli/commands/test.d.ts +2 -2
  33. package/dist/cli/commands/test.js +50 -51
  34. package/dist/cli/commands/verify.js +7 -7
  35. package/dist/cli/commands/web.js +41 -28
  36. package/dist/compiler-ui/404.html +1 -0
  37. package/dist/compiler-ui/__next.__PAGE__.txt +10 -0
  38. package/dist/compiler-ui/__next._full.txt +20 -0
  39. package/dist/compiler-ui/__next._head.txt +5 -0
  40. package/dist/compiler-ui/__next._index.txt +5 -0
  41. package/dist/compiler-ui/__next._tree.txt +5 -0
  42. package/dist/compiler-ui/_next/static/chunks/06yhdspx~ca5-.js +5 -0
  43. package/{apps/compiler-ui/.next/static/chunks/13g~4mamjft.c.css → dist/compiler-ui/_next/static/chunks/0c9mu7yldxyyg.css} +1 -1
  44. package/{apps/compiler-ui/.next/static/chunks/0fgt_8knmicoz.js → dist/compiler-ui/_next/static/chunks/15mks7ry_cupt.js} +15 -21
  45. package/{apps/compiler-ui/.next/static/chunks/turbopack-109rtik40vwh5.js → dist/compiler-ui/_next/static/chunks/turbopack-0.uq1k8c0j4s..js} +1 -1
  46. package/dist/compiler-ui/_not-found/__next._full.txt +15 -0
  47. package/dist/compiler-ui/_not-found/__next._head.txt +5 -0
  48. package/dist/compiler-ui/_not-found/__next._index.txt +5 -0
  49. package/dist/compiler-ui/_not-found/__next._not-found.__PAGE__.txt +5 -0
  50. package/dist/compiler-ui/_not-found/__next._not-found.txt +5 -0
  51. package/dist/compiler-ui/_not-found/__next._tree.txt +2 -0
  52. package/dist/compiler-ui/_not-found.html +1 -0
  53. package/dist/compiler-ui/_not-found.txt +15 -0
  54. package/{apps/compiler-ui/.next/server/app → dist/compiler-ui}/index.html +1 -1
  55. package/dist/compiler-ui/index.txt +20 -0
  56. package/dist/index.d.ts +8 -6
  57. package/dist/index.js +5 -3
  58. package/dist/packages/agents/index.d.ts +1 -1
  59. package/dist/packages/agents/lib/args.d.ts +2 -2
  60. package/dist/packages/agents/lib/compiled-bootstrap.js +7 -6
  61. package/dist/packages/agents/lib/execution-profile.d.ts +5 -5
  62. package/dist/packages/agents/lib/execution-profile.js +7 -6
  63. package/dist/packages/agents/lib/executors.d.ts +13 -13
  64. package/dist/packages/agents/lib/preflight.d.ts +1 -0
  65. package/dist/packages/agents/lib/preflight.js +32 -9
  66. package/dist/packages/agents/lib/shells.d.ts +25 -24
  67. package/dist/packages/agents/lib/shells.js +161 -154
  68. package/dist/packages/agents/lib/types.d.ts +2 -2
  69. package/dist/packages/compiler/artifact-counts.d.ts +1 -0
  70. package/dist/packages/compiler/artifact-counts.js +30 -0
  71. package/dist/packages/compiler/compiled-paths.d.ts +4 -7
  72. package/dist/packages/compiler/compiled-paths.js +9 -15
  73. package/dist/packages/compiler/compiled-pipeline.d.ts +11 -12
  74. package/dist/packages/compiler/compiled-pipeline.js +22 -22
  75. package/dist/packages/compiler/compiled-schema.d.ts +20 -20
  76. package/dist/packages/compiler/compiled-schema.js +29 -29
  77. package/dist/packages/compiler/compiled-stage-plan.d.ts +4 -4
  78. package/dist/packages/compiler/compiled-stage-plan.js +8 -8
  79. package/dist/packages/compiler/compiled-stage-runner.d.ts +5 -5
  80. package/dist/packages/compiler/compiled-stage-runner.js +7 -7
  81. package/dist/packages/compiler/compiled-target.d.ts +5 -5
  82. package/dist/packages/compiler/compiled-target.js +5 -5
  83. package/dist/packages/compiler/index.d.ts +3 -3
  84. package/dist/packages/compiler/index.js +2 -2
  85. package/dist/packages/compiler/lib/schema.d.ts +62 -247
  86. package/dist/packages/compiler/lib/schema.js +56 -174
  87. package/dist/packages/compiler/{workflows.d.ts → method-runs.d.ts} +4 -4
  88. package/dist/packages/compiler/{workflows.js → method-runs.js} +4 -3
  89. package/dist/packages/compiler/raw-snapshot.d.ts +0 -7
  90. package/dist/packages/compiler/raw-snapshot.js +0 -1
  91. package/dist/packages/compiler/reset.js +3 -3
  92. package/dist/packages/compiler/runtime-acceptance.js +9 -16
  93. package/dist/packages/compiler/runtime-contracts.js +9 -9
  94. package/dist/packages/compiler/runtime-prompt.js +4 -4
  95. package/dist/packages/compiler/runtime-reconcile.d.ts +2 -2
  96. package/dist/packages/compiler/runtime-reconcile.js +3 -3
  97. package/dist/packages/compiler/runtime-runs.js +9 -9
  98. package/dist/packages/compiler/runtime-types.d.ts +8 -7
  99. package/dist/packages/compiler/state-health.js +26 -35
  100. package/dist/packages/compiler/state-view.js +6 -6
  101. package/dist/packages/compiler/validate-compiled.d.ts +5 -5
  102. package/dist/packages/compiler/validate-compiled.js +56 -64
  103. package/dist/packages/compiler/validate.d.ts +2 -2
  104. package/dist/packages/compiler/validate.js +22 -14
  105. package/dist/packages/contracts/index.d.ts +2 -0
  106. package/dist/packages/contracts/index.js +1 -0
  107. package/dist/packages/contracts/lib/schema.d.ts +205 -0
  108. package/dist/packages/contracts/lib/schema.js +101 -0
  109. package/dist/packages/execution/index.d.ts +2 -2
  110. package/dist/packages/execution/index.js +1 -1
  111. package/dist/packages/execution/lib/schema.d.ts +80 -83
  112. package/dist/packages/execution/lib/schema.js +25 -48
  113. package/dist/packages/local-service/action-values.d.ts +0 -1
  114. package/dist/packages/local-service/action-values.js +0 -1
  115. package/dist/packages/local-service/client.d.ts +4 -4
  116. package/dist/packages/local-service/client.js +4 -4
  117. package/dist/packages/local-service/index.d.ts +3 -3
  118. package/dist/packages/local-service/index.js +2 -2
  119. package/dist/packages/local-service/lib/schema.d.ts +536 -974
  120. package/dist/packages/local-service/lib/schema.js +43 -160
  121. package/dist/packages/local-service/run-observability.d.ts +6 -0
  122. package/dist/packages/local-service/run-observability.js +592 -0
  123. package/dist/packages/local-service/runtime.d.ts +19 -23
  124. package/dist/packages/local-service/runtime.js +302 -880
  125. package/dist/packages/local-service/server.d.ts +1 -0
  126. package/dist/packages/local-service/server.js +25 -20
  127. package/dist/packages/method-authoring/index.d.ts +4 -0
  128. package/dist/packages/method-authoring/index.js +4 -0
  129. package/dist/packages/{workflow-authoring/lib/workflow-edit-utils.d.ts → method-authoring/lib/method-edit-utils.d.ts} +3 -3
  130. package/dist/packages/method-authoring/method-authoring.d.ts +24 -0
  131. package/dist/packages/method-authoring/method-authoring.js +116 -0
  132. package/dist/packages/method-authoring/method-edit-session.d.ts +18 -0
  133. package/dist/packages/method-authoring/method-edit-session.js +125 -0
  134. package/dist/packages/method-authoring/method-improvement.d.ts +23 -0
  135. package/dist/packages/{workflow-authoring/workflow-improvement.js → method-authoring/method-improvement.js} +63 -63
  136. package/dist/packages/{workflow-package/builtin-compiled-workflow.d.ts → method-package/builtin-compiled-method.d.ts} +1 -1
  137. package/dist/packages/{workflow-package/builtin-compiled-workflow.js → method-package/builtin-compiled-method.js} +17 -17
  138. package/dist/packages/{workflow-package → method-package}/context-interface.d.ts +12 -12
  139. package/dist/packages/{workflow-package → method-package}/context-interface.js +19 -19
  140. package/dist/packages/method-package/index.d.ts +11 -0
  141. package/dist/packages/method-package/index.js +11 -0
  142. package/dist/packages/method-package/interf-method-package.d.ts +31 -0
  143. package/dist/packages/{workflow-package/interf-workflow-package.js → method-package/interf-method-package.js} +145 -145
  144. package/dist/packages/{workflow-package → method-package}/lib/package-root.js +1 -1
  145. package/dist/packages/method-package/local-methods.d.ts +64 -0
  146. package/dist/packages/method-package/local-methods.js +466 -0
  147. package/dist/packages/method-package/method-definitions.d.ts +83 -0
  148. package/dist/packages/method-package/method-definitions.js +205 -0
  149. package/dist/packages/{workflow-package/workflow-helpers.d.ts → method-package/method-helpers.d.ts} +10 -10
  150. package/dist/packages/{workflow-package/workflow-helpers.js → method-package/method-helpers.js} +22 -26
  151. package/dist/packages/method-package/method-review-paths.d.ts +10 -0
  152. package/dist/packages/{workflow-package/workflow-review-paths.js → method-package/method-review-paths.js} +4 -4
  153. package/dist/packages/{workflow-package/workflow-stage-runner.d.ts → method-package/method-stage-runner.d.ts} +12 -11
  154. package/dist/packages/{workflow-package/workflow-stage-runner.js → method-package/method-stage-runner.js} +6 -6
  155. package/dist/packages/methods/index.d.ts +2 -0
  156. package/dist/packages/methods/index.js +2 -0
  157. package/dist/packages/methods/method-resolution.d.ts +6 -0
  158. package/dist/packages/methods/method-resolution.js +7 -0
  159. package/dist/packages/project-model/index.d.ts +1 -4
  160. package/dist/packages/project-model/index.js +0 -3
  161. package/dist/packages/project-model/interf-detect.d.ts +1 -5
  162. package/dist/packages/project-model/interf-detect.js +7 -18
  163. package/dist/packages/project-model/interf-scaffold.d.ts +2 -2
  164. package/dist/packages/project-model/interf-scaffold.js +38 -39
  165. package/dist/packages/project-model/interf.d.ts +1 -2
  166. package/dist/packages/project-model/interf.js +1 -2
  167. package/dist/packages/project-model/lib/schema.d.ts +2 -66
  168. package/dist/packages/project-model/lib/schema.js +5 -23
  169. package/dist/packages/project-model/project-paths.d.ts +9 -10
  170. package/dist/packages/project-model/project-paths.js +14 -17
  171. package/dist/packages/project-model/source-config.d.ts +11 -18
  172. package/dist/packages/project-model/source-config.js +42 -60
  173. package/dist/packages/project-model/source-folders.d.ts +4 -4
  174. package/dist/packages/project-model/source-folders.js +10 -10
  175. package/dist/packages/testing/index.d.ts +2 -2
  176. package/dist/packages/testing/index.js +1 -1
  177. package/dist/packages/testing/lib/schema.d.ts +11 -11
  178. package/dist/packages/testing/lib/schema.js +8 -9
  179. package/dist/packages/testing/readiness-check-run.d.ts +67 -0
  180. package/dist/packages/testing/readiness-check-run.js +258 -0
  181. package/dist/packages/testing/test-execution.d.ts +3 -3
  182. package/dist/packages/testing/test-execution.js +5 -5
  183. package/dist/packages/testing/test-paths.js +6 -6
  184. package/dist/packages/testing/test-profile-presets.js +2 -2
  185. package/dist/packages/testing/test-sandbox.js +10 -11
  186. package/dist/packages/testing/test-targets.d.ts +1 -1
  187. package/dist/packages/testing/test-targets.js +8 -7
  188. package/dist/packages/testing/test-types.d.ts +1 -1
  189. package/package.json +16 -33
  190. package/apps/compiler-ui/.next/static/chunks/0ti_66mx7~w2-.js +0 -5
  191. package/builtin-workflows/interf/improve/SKILL.md +0 -18
  192. package/dist/cli/commands/create-workflow-wizard.d.ts +0 -76
  193. package/dist/packages/project-model/compiled-paths.d.ts +0 -1
  194. package/dist/packages/project-model/compiled-paths.js +0 -1
  195. package/dist/packages/project-model/compiled-raw.d.ts +0 -1
  196. package/dist/packages/project-model/compiled-raw.js +0 -1
  197. package/dist/packages/project-model/compiled-reset.d.ts +0 -1
  198. package/dist/packages/project-model/compiled-reset.js +0 -1
  199. package/dist/packages/shared/index.d.ts +0 -7
  200. package/dist/packages/shared/index.js +0 -7
  201. package/dist/packages/shared/util.d.ts +0 -3
  202. package/dist/packages/shared/util.js +0 -3
  203. package/dist/packages/testing/test-matrices.d.ts +0 -90
  204. package/dist/packages/testing/test-matrices.js +0 -96
  205. package/dist/packages/workflow-authoring/index.d.ts +0 -4
  206. package/dist/packages/workflow-authoring/index.js +0 -4
  207. package/dist/packages/workflow-authoring/workflow-authoring.d.ts +0 -24
  208. package/dist/packages/workflow-authoring/workflow-authoring.js +0 -82
  209. package/dist/packages/workflow-authoring/workflow-edit-session.d.ts +0 -18
  210. package/dist/packages/workflow-authoring/workflow-edit-session.js +0 -91
  211. package/dist/packages/workflow-authoring/workflow-improvement.d.ts +0 -23
  212. package/dist/packages/workflow-package/index.d.ts +0 -11
  213. package/dist/packages/workflow-package/index.js +0 -11
  214. package/dist/packages/workflow-package/interf-workflow-package.d.ts +0 -31
  215. package/dist/packages/workflow-package/local-workflows.d.ts +0 -64
  216. package/dist/packages/workflow-package/local-workflows.js +0 -457
  217. package/dist/packages/workflow-package/workflow-definitions.d.ts +0 -82
  218. package/dist/packages/workflow-package/workflow-definitions.js +0 -211
  219. package/dist/packages/workflow-package/workflow-review-paths.d.ts +0 -10
  220. /package/{builtin-workflows/interf → builtin-methods/interf-default}/compile/stages/shape/SKILL.md +0 -0
  221. /package/{builtin-workflows/interf → builtin-methods/interf-default}/compile/stages/structure/SKILL.md +0 -0
  222. /package/{builtin-workflows/interf → builtin-methods/interf-default}/compile/stages/summarize/SKILL.md +0 -0
  223. /package/{builtin-workflows/interf → builtin-methods/interf-default}/use/query/SKILL.md +0 -0
  224. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/03~yq9q893hmn.js +0 -0
  225. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/06z~l3kwb891e.js +0 -0
  226. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/08g7lvje.te.u.js +0 -0
  227. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/08m7vf5asqlsm.js +0 -0
  228. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/0_i-3_5l9t2qe.js +0 -0
  229. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/0b-ywny_j0g~0.js +0 -0
  230. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/0b52v41o1gixx.js +0 -0
  231. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/0gpzgsv0w.q~m.js +0 -0
  232. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/0ilwfezfvu6~-.js +0 -0
  233. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/0n51hrfoufc7g.js +0 -0
  234. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/0xxmf45eskdt~.css +0 -0
  235. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/0y5z3t-z1c8ks.js.map +0 -0
  236. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/14wtz~vq25~qq.js +0 -0
  237. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/turbopack-10e~t1yzi4svj.js +0 -0
  238. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/turbopack-worker-0sjn--fhq~1cg.js +0 -0
  239. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/media/GeistMono_Variable.p.17jn9btb_52pq.woff2 +0 -0
  240. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/media/Geist_Variable-s.p.0-te~ja_gpvcf.woff2 +0 -0
  241. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/media/worker.102zas1s52_pf.js +0 -0
  242. /package/{apps/compiler-ui/.next/static/XWKL548yXD_UOG4ID9G3J → dist/compiler-ui/_next/static/pIZnDsV3Je6hdC3cOsGdK}/_buildManifest.js +0 -0
  243. /package/{apps/compiler-ui/.next/static/XWKL548yXD_UOG4ID9G3J → dist/compiler-ui/_next/static/pIZnDsV3Je6hdC3cOsGdK}/_clientMiddlewareManifest.js +0 -0
  244. /package/{apps/compiler-ui/.next/static/XWKL548yXD_UOG4ID9G3J → dist/compiler-ui/_next/static/pIZnDsV3Je6hdC3cOsGdK}/_ssgManifest.js +0 -0
  245. /package/dist/packages/compiler/{workflow-primitives.d.ts → method-primitives.d.ts} +0 -0
  246. /package/dist/packages/compiler/{workflow-primitives.js → method-primitives.js} +0 -0
  247. /package/dist/packages/{workflow-authoring/lib/workflow-edit-utils.js → method-authoring/lib/method-edit-utils.js} +0 -0
  248. /package/dist/packages/{workflow-package → method-package}/lib/package-root.d.ts +0 -0
  249. /package/dist/packages/{workflow-package/workflow-stage-policy.d.ts → method-package/method-stage-policy.d.ts} +0 -0
  250. /package/dist/packages/{workflow-package/workflow-stage-policy.js → method-package/method-stage-policy.js} +0 -0
@@ -0,0 +1,205 @@
1
+ import { z } from "zod";
2
+ export declare const InterfIdPattern: RegExp;
3
+ export declare const PreparationNamePattern: RegExp;
4
+ export declare const PreparationNameSchema: z.ZodString;
5
+ export declare const MethodIdSchema: z.ZodString;
6
+ export declare const RuntimeStageSchema: z.ZodString;
7
+ export declare const RuntimeContractTypeSchema: z.ZodString;
8
+ export declare const RuntimeTargetTypeSchema: z.ZodEnum<{
9
+ compiled: "compiled";
10
+ }>;
11
+ export declare const TestTargetTypeSchema: z.ZodEnum<{
12
+ compiled: "compiled";
13
+ raw: "raw";
14
+ }>;
15
+ export declare const SourceCompiledMaxAttemptsSchema: z.ZodNumber;
16
+ export declare const SourceCompiledMaxLoopsSchema: z.ZodNumber;
17
+ export declare const ReadinessStatusSchema: z.ZodEnum<{
18
+ "not-configured": "not-configured";
19
+ "not-built": "not-built";
20
+ building: "building";
21
+ built: "built";
22
+ checking: "checking";
23
+ ready: "ready";
24
+ "not-ready": "not-ready";
25
+ stale: "stale";
26
+ failed: "failed";
27
+ }>;
28
+ export declare const ReadinessGateSchema: z.ZodEnum<{
29
+ "preparation-config": "preparation-config";
30
+ "portable-context": "portable-context";
31
+ "compile-run": "compile-run";
32
+ "readiness-checks": "readiness-checks";
33
+ "source-baseline": "source-baseline";
34
+ "portable-context-check": "portable-context-check";
35
+ "checks-current": "checks-current";
36
+ }>;
37
+ export declare const ReadinessCheckSchema: z.ZodObject<{
38
+ gate: z.ZodEnum<{
39
+ "preparation-config": "preparation-config";
40
+ "portable-context": "portable-context";
41
+ "compile-run": "compile-run";
42
+ "readiness-checks": "readiness-checks";
43
+ "source-baseline": "source-baseline";
44
+ "portable-context-check": "portable-context-check";
45
+ "checks-current": "checks-current";
46
+ }>;
47
+ ok: z.ZodBoolean;
48
+ status: z.ZodOptional<z.ZodEnum<{
49
+ "not-configured": "not-configured";
50
+ "not-built": "not-built";
51
+ building: "building";
52
+ built: "built";
53
+ checking: "checking";
54
+ ready: "ready";
55
+ "not-ready": "not-ready";
56
+ stale: "stale";
57
+ failed: "failed";
58
+ }>>;
59
+ summary: z.ZodString;
60
+ detail: z.ZodOptional<z.ZodString>;
61
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ }, z.core.$strict>;
64
+ export declare const ReadinessTargetResultSchema: z.ZodObject<{
65
+ passed: z.ZodNumber;
66
+ total: z.ZodNumber;
67
+ pass_rate: z.ZodNullable<z.ZodNumber>;
68
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ stale: z.ZodDefault<z.ZodBoolean>;
70
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ }, z.core.$strict>;
73
+ export declare const ReadinessStateSchema: z.ZodObject<{
74
+ kind: z.ZodLiteral<"interf-readiness-state">;
75
+ version: z.ZodLiteral<1>;
76
+ generated_at: z.ZodString;
77
+ preparation: z.ZodString;
78
+ status: z.ZodEnum<{
79
+ "not-configured": "not-configured";
80
+ "not-built": "not-built";
81
+ building: "building";
82
+ built: "built";
83
+ checking: "checking";
84
+ ready: "ready";
85
+ "not-ready": "not-ready";
86
+ stale: "stale";
87
+ failed: "failed";
88
+ }>;
89
+ ready: z.ZodBoolean;
90
+ summary: z.ZodString;
91
+ portable_context_path: z.ZodNullable<z.ZodString>;
92
+ latest_compile_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
+ latest_test_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ compile: z.ZodNullable<z.ZodObject<{
95
+ gate: z.ZodEnum<{
96
+ "preparation-config": "preparation-config";
97
+ "portable-context": "portable-context";
98
+ "compile-run": "compile-run";
99
+ "readiness-checks": "readiness-checks";
100
+ "source-baseline": "source-baseline";
101
+ "portable-context-check": "portable-context-check";
102
+ "checks-current": "checks-current";
103
+ }>;
104
+ ok: z.ZodBoolean;
105
+ status: z.ZodOptional<z.ZodEnum<{
106
+ "not-configured": "not-configured";
107
+ "not-built": "not-built";
108
+ building: "building";
109
+ built: "built";
110
+ checking: "checking";
111
+ ready: "ready";
112
+ "not-ready": "not-ready";
113
+ stale: "stale";
114
+ failed: "failed";
115
+ }>>;
116
+ summary: z.ZodString;
117
+ detail: z.ZodOptional<z.ZodString>;
118
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
+ }, z.core.$strict>>;
121
+ check_results: z.ZodObject<{
122
+ configured: z.ZodNumber;
123
+ fingerprint: z.ZodNullable<z.ZodString>;
124
+ source_files: z.ZodNullable<z.ZodObject<{
125
+ passed: z.ZodNumber;
126
+ total: z.ZodNumber;
127
+ pass_rate: z.ZodNullable<z.ZodNumber>;
128
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
+ stale: z.ZodDefault<z.ZodBoolean>;
130
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
132
+ }, z.core.$strict>>;
133
+ portable_context: z.ZodNullable<z.ZodObject<{
134
+ passed: z.ZodNumber;
135
+ total: z.ZodNumber;
136
+ pass_rate: z.ZodNullable<z.ZodNumber>;
137
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
+ stale: z.ZodDefault<z.ZodBoolean>;
139
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
140
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
141
+ }, z.core.$strict>>;
142
+ delta: z.ZodNullable<z.ZodNumber>;
143
+ }, z.core.$strict>;
144
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
145
+ gate: z.ZodEnum<{
146
+ "preparation-config": "preparation-config";
147
+ "portable-context": "portable-context";
148
+ "compile-run": "compile-run";
149
+ "readiness-checks": "readiness-checks";
150
+ "source-baseline": "source-baseline";
151
+ "portable-context-check": "portable-context-check";
152
+ "checks-current": "checks-current";
153
+ }>;
154
+ ok: z.ZodBoolean;
155
+ status: z.ZodOptional<z.ZodEnum<{
156
+ "not-configured": "not-configured";
157
+ "not-built": "not-built";
158
+ building: "building";
159
+ built: "built";
160
+ checking: "checking";
161
+ ready: "ready";
162
+ "not-ready": "not-ready";
163
+ stale: "stale";
164
+ failed: "failed";
165
+ }>>;
166
+ summary: z.ZodString;
167
+ detail: z.ZodOptional<z.ZodString>;
168
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
169
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
170
+ }, z.core.$strict>>>;
171
+ }, z.core.$strict>;
172
+ export declare const RuntimeExecutorInfoSchema: z.ZodObject<{
173
+ kind: z.ZodEnum<{
174
+ "local-agent": "local-agent";
175
+ "connected-provider": "connected-provider";
176
+ managed: "managed";
177
+ }>;
178
+ name: z.ZodString;
179
+ display_name: z.ZodString;
180
+ command: z.ZodNullable<z.ZodString>;
181
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
182
+ effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
183
+ profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
184
+ timeout_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
185
+ }, z.core.$strip>;
186
+ export declare const TestCaseExpectSchema: z.ZodObject<{
187
+ must_include: z.ZodOptional<z.ZodArray<z.ZodString>>;
188
+ must_include_one_of: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
189
+ must_not_include: z.ZodOptional<z.ZodArray<z.ZodString>>;
190
+ min_words: z.ZodOptional<z.ZodNumber>;
191
+ max_words: z.ZodOptional<z.ZodNumber>;
192
+ }, z.core.$strip>;
193
+ export type PreparationName = z.infer<typeof PreparationNameSchema>;
194
+ export type MethodId = z.infer<typeof MethodIdSchema>;
195
+ export type RuntimeStage = z.infer<typeof RuntimeStageSchema>;
196
+ export type RuntimeContractType = z.infer<typeof RuntimeContractTypeSchema>;
197
+ export type RuntimeTargetType = z.infer<typeof RuntimeTargetTypeSchema>;
198
+ export type TestTargetType = z.infer<typeof TestTargetTypeSchema>;
199
+ export type ReadinessStatus = z.infer<typeof ReadinessStatusSchema>;
200
+ export type ReadinessGate = z.infer<typeof ReadinessGateSchema>;
201
+ export type ReadinessCheck = z.infer<typeof ReadinessCheckSchema>;
202
+ export type ReadinessTargetResult = z.infer<typeof ReadinessTargetResultSchema>;
203
+ export type ReadinessState = z.infer<typeof ReadinessStateSchema>;
204
+ export type RuntimeExecutorInfo = z.infer<typeof RuntimeExecutorInfoSchema>;
205
+ export type TestCaseExpect = z.infer<typeof TestCaseExpectSchema>;
@@ -0,0 +1,101 @@
1
+ import { z } from "zod";
2
+ export const InterfIdPattern = /^[a-z0-9][a-z0-9-]{0,79}$/;
3
+ export const PreparationNamePattern = /^[a-z0-9][a-z0-9-]*$/;
4
+ const RESERVED_PREPARATION_NAMES = new Set(["tests", "methods"]);
5
+ export const PreparationNameSchema = z
6
+ .string()
7
+ .regex(PreparationNamePattern, "Preparation names must use lowercase letters, numbers, and dashes only.")
8
+ .refine((value) => !RESERVED_PREPARATION_NAMES.has(value), "Preparation name is reserved.");
9
+ export const MethodIdSchema = z.string().regex(InterfIdPattern);
10
+ export const RuntimeStageSchema = z.string().regex(InterfIdPattern);
11
+ export const RuntimeContractTypeSchema = z.string().regex(InterfIdPattern);
12
+ export const RuntimeTargetTypeSchema = z.enum(["compiled"]);
13
+ export const TestTargetTypeSchema = z.enum(["compiled", "raw"]);
14
+ export const SourceCompiledMaxAttemptsSchema = z.number().int().min(1).max(5);
15
+ export const SourceCompiledMaxLoopsSchema = z.number().int().min(1).max(3);
16
+ export const ReadinessStatusSchema = z.enum([
17
+ "not-configured",
18
+ "not-built",
19
+ "building",
20
+ "built",
21
+ "checking",
22
+ "ready",
23
+ "not-ready",
24
+ "stale",
25
+ "failed",
26
+ ]);
27
+ export const ReadinessGateSchema = z.enum([
28
+ "preparation-config",
29
+ "portable-context",
30
+ "compile-run",
31
+ "readiness-checks",
32
+ "source-baseline",
33
+ "portable-context-check",
34
+ "checks-current",
35
+ ]);
36
+ export const ReadinessCheckSchema = z.object({
37
+ gate: ReadinessGateSchema,
38
+ ok: z.boolean(),
39
+ status: ReadinessStatusSchema.optional(),
40
+ summary: z.string().min(1),
41
+ detail: z.string().min(1).optional(),
42
+ run_id: z.string().min(1).nullable().optional(),
43
+ artifact_path: z.string().min(1).nullable().optional(),
44
+ }).strict();
45
+ export const ReadinessTargetResultSchema = z.object({
46
+ passed: z.number().int().min(0),
47
+ total: z.number().int().min(0),
48
+ pass_rate: z.number().min(0).max(100).nullable(),
49
+ checks_fingerprint: z.string().min(1).nullable().optional(),
50
+ stale: z.boolean().default(false),
51
+ run_id: z.string().min(1).nullable().optional(),
52
+ run_path: z.string().min(1).nullable().optional(),
53
+ }).strict();
54
+ export const ReadinessStateSchema = z.object({
55
+ kind: z.literal("interf-readiness-state"),
56
+ version: z.literal(1),
57
+ generated_at: z.string().min(1),
58
+ preparation: z.string().min(1),
59
+ status: ReadinessStatusSchema,
60
+ ready: z.boolean(),
61
+ summary: z.string().min(1),
62
+ portable_context_path: z.string().min(1).nullable(),
63
+ latest_compile_run_id: z.string().min(1).nullable().optional(),
64
+ latest_test_run_id: z.string().min(1).nullable().optional(),
65
+ compile: ReadinessCheckSchema.nullable(),
66
+ check_results: z.object({
67
+ configured: z.number().int().min(0),
68
+ fingerprint: z.string().min(1).nullable(),
69
+ source_files: ReadinessTargetResultSchema.nullable(),
70
+ portable_context: ReadinessTargetResultSchema.nullable(),
71
+ delta: z.number().nullable(),
72
+ }).strict(),
73
+ checks: z.array(ReadinessCheckSchema).default([]),
74
+ }).strict();
75
+ export const RuntimeExecutorInfoSchema = z.object({
76
+ kind: z.enum(["local-agent", "connected-provider", "managed"]),
77
+ name: z.string(),
78
+ display_name: z.string(),
79
+ command: z.string().nullable(),
80
+ model: z.string().nullable().optional(),
81
+ effort: z.string().nullable().optional(),
82
+ profile: z.string().nullable().optional(),
83
+ timeout_ms: z.number().nullable().optional(),
84
+ });
85
+ export const TestCaseExpectSchema = z.object({
86
+ must_include: z.array(z.string().min(1)).optional(),
87
+ must_include_one_of: z.array(z.array(z.string().min(1)).min(1)).optional(),
88
+ must_not_include: z.array(z.string().min(1)).optional(),
89
+ min_words: z.number().int().nonnegative().optional(),
90
+ max_words: z.number().int().nonnegative().optional(),
91
+ }).refine((value) => value.min_words === undefined ||
92
+ value.max_words === undefined ||
93
+ value.max_words >= value.min_words, {
94
+ message: "max_words must be greater than or equal to min_words",
95
+ }).refine((value) => (value.must_include?.length ?? 0) > 0 ||
96
+ (value.must_include_one_of?.length ?? 0) > 0 ||
97
+ (value.must_not_include?.length ?? 0) > 0 ||
98
+ value.min_words !== undefined ||
99
+ value.max_words !== undefined, {
100
+ message: "Test expectations must include at least one check",
101
+ });
@@ -1,8 +1,8 @@
1
1
  export * as schema from "./lib/schema.js";
2
2
  export * as events from "./events.js";
3
3
  export * as adapters from "./adapters.js";
4
- export type { ArtifactRef, ArtifactRole, CompileRun, CompileRunStatus, ExecutionBackendKind, InterfRunEvent, ObservableRunMetric, ObservableRunStatus, ObservableRunType, ProofCheck, ProofRecord, RunObservability, StageRun, StageRunContract, StageRunLogs, StageRunStatus, WorkflowTrace, WorkflowTraceEvent, WorkflowTraceEventType, WorkflowTraceRun, WorkflowTraceRunStatus, WorkflowTraceStreamChunk, WorkflowTraceStructuredError, } from "./lib/schema.js";
5
- export { ArtifactRefSchema, ArtifactRoleSchema, CompileRunSchema, CompileRunStatusSchema, ExecutionBackendKindSchema, InterfRunEventSchema, LogAppendedEventSchema, ObservableRunMetricSchema, ObservableRunStatusSchema, ObservableRunTypeSchema, ProofCheckSchema, ProofRecordSchema, RunObservabilitySchema, StageRunSchema, StageRunContractSchema, StageRunLogsSchema, StageRunStatusSchema, WorkflowTraceEventSchema, WorkflowTraceEventTypeSchema, WorkflowTraceRunSchema, WorkflowTraceRunStatusSchema, WorkflowTraceSchema, WorkflowTraceStreamChunkSchema, WorkflowTraceStructuredErrorSchema, } from "./lib/schema.js";
4
+ export type { ArtifactRef, ArtifactRole, CompileRun, CompileRunStatus, ExecutionBackendKind, InterfRunEvent, ObservableRunMetric, ObservableRunStatus, ObservableRunType, ProofCheck, ProofRecord, RunObservability, StageRun, StageRunContract, StageRunLogs, StageRunStatus, MethodTrace, MethodTraceEvent, MethodTraceEventType, MethodTraceRun, MethodTraceRunStatus, MethodTraceStreamChunk, MethodTraceStructuredError, } from "./lib/schema.js";
5
+ export { ArtifactRefSchema, ArtifactRoleSchema, CompileRunSchema, CompileRunStatusSchema, ExecutionBackendKindSchema, InterfRunEventSchema, LogAppendedEventSchema, ObservableRunMetricSchema, ObservableRunStatusSchema, ObservableRunTypeSchema, ProofCheckSchema, ProofRecordSchema, RunObservabilitySchema, StageRunSchema, StageRunContractSchema, StageRunLogsSchema, StageRunStatusSchema, MethodTraceEventSchema, MethodTraceEventTypeSchema, MethodTraceRunSchema, MethodTraceRunStatusSchema, MethodTraceSchema, MethodTraceStreamChunkSchema, MethodTraceStructuredErrorSchema, } from "./lib/schema.js";
6
6
  export type { ExecutionAdapter, ExecutionAdapterContext, ExecutionEventRecorder, } from "./adapters.js";
7
7
  export { nativeExecutionBackendKind, } from "./adapters.js";
8
8
  export type { RunEventSink, } from "./events.js";
@@ -1,6 +1,6 @@
1
1
  export * as schema from "./lib/schema.js";
2
2
  export * as events from "./events.js";
3
3
  export * as adapters from "./adapters.js";
4
- export { ArtifactRefSchema, ArtifactRoleSchema, CompileRunSchema, CompileRunStatusSchema, ExecutionBackendKindSchema, InterfRunEventSchema, LogAppendedEventSchema, ObservableRunMetricSchema, ObservableRunStatusSchema, ObservableRunTypeSchema, ProofCheckSchema, ProofRecordSchema, RunObservabilitySchema, StageRunSchema, StageRunContractSchema, StageRunLogsSchema, StageRunStatusSchema, WorkflowTraceEventSchema, WorkflowTraceEventTypeSchema, WorkflowTraceRunSchema, WorkflowTraceRunStatusSchema, WorkflowTraceSchema, WorkflowTraceStreamChunkSchema, WorkflowTraceStructuredErrorSchema, } from "./lib/schema.js";
4
+ export { ArtifactRefSchema, ArtifactRoleSchema, CompileRunSchema, CompileRunStatusSchema, ExecutionBackendKindSchema, InterfRunEventSchema, LogAppendedEventSchema, ObservableRunMetricSchema, ObservableRunStatusSchema, ObservableRunTypeSchema, ProofCheckSchema, ProofRecordSchema, RunObservabilitySchema, StageRunSchema, StageRunContractSchema, StageRunLogsSchema, StageRunStatusSchema, MethodTraceEventSchema, MethodTraceEventTypeSchema, MethodTraceRunSchema, MethodTraceRunStatusSchema, MethodTraceSchema, MethodTraceStreamChunkSchema, MethodTraceStructuredErrorSchema, } from "./lib/schema.js";
5
5
  export { nativeExecutionBackendKind, } from "./adapters.js";
6
6
  export { createRunEventId, createRunEventTimestamp, nullRunEventSink, parseInterfRunEvent, } from "./events.js";