@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
@@ -1,16 +1,16 @@
1
- import { getActiveCompiledWorkflow, resolveRequiredCompiledWorkflowFromConfig, } from "../workflow-package/workflow-definitions.js";
1
+ import { getActiveCompiledMethod, resolveRequiredCompiledMethodFromConfig, } from "../method-package/method-definitions.js";
2
2
  import { readInterfConfig, resolveSourceFolderPath, resolveSourceControlPath, } from "../project-model/interf-detect.js";
3
3
  export function resolveCompiledContext(compiledPath) {
4
4
  const config = readInterfConfig(compiledPath);
5
- const workflowId = resolveRequiredCompiledWorkflowFromConfig(config, `.interf/interf.json for ${compiledPath}`);
5
+ const methodId = resolveRequiredCompiledMethodFromConfig(config, `.interf/interf.json for ${compiledPath}`);
6
6
  return {
7
7
  compiledName: config?.name ?? "compiled",
8
8
  sourcePath: resolveSourceFolderPath(compiledPath, config),
9
9
  controlPath: resolveSourceControlPath(compiledPath),
10
- workflowId,
10
+ methodId,
11
11
  };
12
12
  }
13
- export function compiledExecutionStages(_workflowId, compiledPath) {
14
- return getActiveCompiledWorkflow(compiledPath)
13
+ export function compiledExecutionStages(_methodId, compiledPath) {
14
+ return getActiveCompiledMethod(compiledPath)
15
15
  .stages;
16
16
  }
@@ -1,4 +1,4 @@
1
- export * as primitives from "./workflow-primitives.js";
1
+ export * as primitives from "./method-primitives.js";
2
2
  export * as schema from "./lib/schema.js";
3
3
  export * as compiledSchema from "./compiled-schema.js";
4
4
  export * as compile from "./compiled-compile.js";
@@ -20,5 +20,5 @@ export * as stateView from "./state-view.js";
20
20
  export * as validate from "./validate.js";
21
21
  export * as validateCompiled from "./validate-compiled.js";
22
22
  export * as validateHelpers from "./validate-helpers.js";
23
- export * as workflows from "./workflows.js";
24
- export type { CompiledCompileResult, CompiledSummarizeResult, StageShellRetentionMode, } from "./workflows.js";
23
+ export * as methods from "./method-runs.js";
24
+ export type { CompiledCompileResult, CompiledSummarizeResult, StageShellRetentionMode, } from "./method-runs.js";
@@ -1,4 +1,4 @@
1
- export * as primitives from "./workflow-primitives.js";
1
+ export * as primitives from "./method-primitives.js";
2
2
  export * as schema from "./lib/schema.js";
3
3
  export * as compiledSchema from "./compiled-schema.js";
4
4
  export * as compile from "./compiled-compile.js";
@@ -20,4 +20,4 @@ export * as stateView from "./state-view.js";
20
20
  export * as validate from "./validate.js";
21
21
  export * as validateCompiled from "./validate-compiled.js";
22
22
  export * as validateHelpers from "./validate-helpers.js";
23
- export * as workflows from "./workflows.js";
23
+ export * as methods from "./method-runs.js";
@@ -1,198 +1,32 @@
1
1
  import { z } from "zod";
2
+ import { ReadinessCheckSchema, ReadinessGateSchema, ReadinessStateSchema, ReadinessStatusSchema, ReadinessTargetResultSchema, RuntimeContractTypeSchema, RuntimeExecutorInfoSchema, RuntimeStageSchema, RuntimeTargetTypeSchema, TestCaseExpectSchema, TestTargetTypeSchema, MethodIdSchema } from "../../contracts/lib/schema.js";
3
+ export { ReadinessCheckSchema, ReadinessGateSchema, ReadinessStateSchema, ReadinessStatusSchema, ReadinessTargetResultSchema, RuntimeContractTypeSchema, RuntimeExecutorInfoSchema, RuntimeStageSchema, RuntimeTargetTypeSchema, SourceCompiledMaxAttemptsSchema, SourceCompiledMaxLoopsSchema, TestCaseExpectSchema, TestTargetTypeSchema, InterfIdPattern, MethodIdSchema, } from "../../contracts/lib/schema.js";
2
4
  export type RuntimeStatus = "idle" | "running" | "compiled" | "stale" | "failed";
3
5
  export type CompiledStage = "idle" | "compiled" | "failed" | string;
4
- export declare const RuntimeTargetTypeSchema: z.ZodEnum<{
5
- compiled: "compiled";
6
- }>;
7
- export declare const TestTargetTypeSchema: z.ZodEnum<{
8
- compiled: "compiled";
9
- raw: "raw";
10
- }>;
11
- export declare const WorkflowIdPattern: RegExp;
12
- export declare const RuntimeStageSchema: z.ZodString;
13
- export declare const RuntimeContractTypeSchema: z.ZodString;
14
- export declare const WorkflowIdSchema: z.ZodString;
15
- export declare const WorkflowZoneIdSchema: z.ZodString;
16
- export declare const WorkflowCompiledZoneKindSchema: z.ZodEnum<{
6
+ export declare const MethodZoneIdSchema: z.ZodString;
7
+ export declare const MethodCompiledZoneKindSchema: z.ZodEnum<{
17
8
  runtime: "runtime";
18
- directory: "directory";
19
9
  file: "file";
10
+ directory: "directory";
20
11
  }>;
21
- export declare const WorkflowZoneRoleSchema: z.ZodEnum<{
12
+ export declare const MethodZoneRoleSchema: z.ZodEnum<{
22
13
  output: "output";
23
14
  runtime: "runtime";
24
15
  input: "input";
25
16
  working: "working";
26
17
  }>;
27
18
  export declare const CompiledStageStatusSchema: z.ZodEnum<{
19
+ failed: "failed";
28
20
  idle: "idle";
29
21
  running: "running";
30
- failed: "failed";
31
22
  succeeded: "succeeded";
32
23
  }>;
33
- export declare const SourceCompiledMaxAttemptsSchema: z.ZodNumber;
34
- export declare const SourceCompiledMaxLoopsSchema: z.ZodNumber;
35
- export declare const ReadinessStatusSchema: z.ZodEnum<{
36
- stale: "stale";
37
- failed: "failed";
38
- "not-configured": "not-configured";
39
- "not-built": "not-built";
40
- building: "building";
41
- built: "built";
42
- checking: "checking";
43
- ready: "ready";
44
- "not-ready": "not-ready";
45
- }>;
46
- export declare const ReadinessGateSchema: z.ZodEnum<{
47
- "preparation-config": "preparation-config";
48
- "portable-context": "portable-context";
49
- "compile-run": "compile-run";
50
- "readiness-checks": "readiness-checks";
51
- "source-baseline": "source-baseline";
52
- "portable-context-check": "portable-context-check";
53
- "checks-current": "checks-current";
54
- }>;
55
- export declare const ReadinessCheckSchema: z.ZodObject<{
56
- gate: z.ZodEnum<{
57
- "preparation-config": "preparation-config";
58
- "portable-context": "portable-context";
59
- "compile-run": "compile-run";
60
- "readiness-checks": "readiness-checks";
61
- "source-baseline": "source-baseline";
62
- "portable-context-check": "portable-context-check";
63
- "checks-current": "checks-current";
64
- }>;
65
- ok: z.ZodBoolean;
66
- status: z.ZodOptional<z.ZodEnum<{
67
- stale: "stale";
68
- failed: "failed";
69
- "not-configured": "not-configured";
70
- "not-built": "not-built";
71
- building: "building";
72
- built: "built";
73
- checking: "checking";
74
- ready: "ready";
75
- "not-ready": "not-ready";
76
- }>>;
77
- summary: z.ZodString;
78
- detail: z.ZodOptional<z.ZodString>;
79
- run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
- artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
- }, z.core.$strict>;
82
- export declare const ReadinessTargetResultSchema: z.ZodObject<{
83
- passed: z.ZodNumber;
84
- total: z.ZodNumber;
85
- pass_rate: z.ZodNullable<z.ZodNumber>;
86
- checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
- stale: z.ZodDefault<z.ZodBoolean>;
88
- run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
- run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
- }, z.core.$strict>;
91
- export declare const ReadinessStateSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
92
- kind: z.ZodLiteral<"interf-readiness-state">;
93
- version: z.ZodLiteral<1>;
94
- generated_at: z.ZodString;
95
- preparation: z.ZodString;
96
- status: z.ZodEnum<{
97
- stale: "stale";
98
- failed: "failed";
99
- "not-configured": "not-configured";
100
- "not-built": "not-built";
101
- building: "building";
102
- built: "built";
103
- checking: "checking";
104
- ready: "ready";
105
- "not-ready": "not-ready";
106
- }>;
107
- ready: z.ZodBoolean;
108
- summary: z.ZodString;
109
- portable_context_path: z.ZodNullable<z.ZodString>;
110
- latest_compile_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
111
- latest_test_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
- compile: z.ZodNullable<z.ZodObject<{
113
- gate: z.ZodEnum<{
114
- "preparation-config": "preparation-config";
115
- "portable-context": "portable-context";
116
- "compile-run": "compile-run";
117
- "readiness-checks": "readiness-checks";
118
- "source-baseline": "source-baseline";
119
- "portable-context-check": "portable-context-check";
120
- "checks-current": "checks-current";
121
- }>;
122
- ok: z.ZodBoolean;
123
- status: z.ZodOptional<z.ZodEnum<{
124
- stale: "stale";
125
- failed: "failed";
126
- "not-configured": "not-configured";
127
- "not-built": "not-built";
128
- building: "building";
129
- built: "built";
130
- checking: "checking";
131
- ready: "ready";
132
- "not-ready": "not-ready";
133
- }>>;
134
- summary: z.ZodString;
135
- detail: z.ZodOptional<z.ZodString>;
136
- run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
- artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
- }, z.core.$strict>>;
139
- check_results: z.ZodObject<{
140
- configured: z.ZodNumber;
141
- fingerprint: z.ZodNullable<z.ZodString>;
142
- source_files: z.ZodNullable<z.ZodObject<{
143
- passed: z.ZodNumber;
144
- total: z.ZodNumber;
145
- pass_rate: z.ZodNullable<z.ZodNumber>;
146
- checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
147
- stale: z.ZodDefault<z.ZodBoolean>;
148
- run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
149
- run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
150
- }, z.core.$strict>>;
151
- portable_context: z.ZodNullable<z.ZodObject<{
152
- passed: z.ZodNumber;
153
- total: z.ZodNumber;
154
- pass_rate: z.ZodNullable<z.ZodNumber>;
155
- checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
- stale: z.ZodDefault<z.ZodBoolean>;
157
- run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
158
- run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
159
- }, z.core.$strict>>;
160
- delta: z.ZodNullable<z.ZodNumber>;
161
- }, z.core.$strict>;
162
- checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
163
- gate: z.ZodEnum<{
164
- "preparation-config": "preparation-config";
165
- "portable-context": "portable-context";
166
- "compile-run": "compile-run";
167
- "readiness-checks": "readiness-checks";
168
- "source-baseline": "source-baseline";
169
- "portable-context-check": "portable-context-check";
170
- "checks-current": "checks-current";
171
- }>;
172
- ok: z.ZodBoolean;
173
- status: z.ZodOptional<z.ZodEnum<{
174
- stale: "stale";
175
- failed: "failed";
176
- "not-configured": "not-configured";
177
- "not-built": "not-built";
178
- building: "building";
179
- built: "built";
180
- checking: "checking";
181
- ready: "ready";
182
- "not-ready": "not-ready";
183
- }>>;
184
- summary: z.ZodString;
185
- detail: z.ZodOptional<z.ZodString>;
186
- run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
187
- artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
188
- }, z.core.$strict>>>;
189
- }, z.core.$strict>>;
190
24
  export declare const CompiledStageStateSchema: z.ZodObject<{
191
25
  contract_type: z.ZodOptional<z.ZodString>;
192
26
  status: z.ZodOptional<z.ZodEnum<{
27
+ failed: "failed";
193
28
  idle: "idle";
194
29
  running: "running";
195
- failed: "failed";
196
30
  succeeded: "succeeded";
197
31
  }>>;
198
32
  started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -209,9 +43,9 @@ export declare const CompiledStateSchema: z.ZodObject<{
209
43
  stages: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
210
44
  contract_type: z.ZodOptional<z.ZodString>;
211
45
  status: z.ZodOptional<z.ZodEnum<{
46
+ failed: "failed";
212
47
  idle: "idle";
213
48
  running: "running";
214
- failed: "failed";
215
49
  succeeded: "succeeded";
216
50
  }>>;
217
51
  started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -258,15 +92,15 @@ export declare const CompiledHealthSchema: z.ZodObject<{
258
92
  target_name: z.ZodString;
259
93
  status: z.ZodEnum<{
260
94
  compiled: "compiled";
261
- idle: "idle";
262
- running: "running";
263
95
  stale: "stale";
264
96
  failed: "failed";
97
+ idle: "idle";
98
+ running: "running";
265
99
  }>;
266
100
  stage: z.ZodUnion<readonly [z.ZodEnum<{
267
101
  compiled: "compiled";
268
- idle: "idle";
269
102
  failed: "failed";
103
+ idle: "idle";
270
104
  }>, z.ZodString]>;
271
105
  summary: z.ZodString;
272
106
  metrics: z.ZodRecord<z.ZodString, z.ZodNumber>;
@@ -316,11 +150,11 @@ export declare const CompiledRawSnapshotSchema: z.ZodObject<{
316
150
  source_total: z.ZodNumber;
317
151
  sample_files: z.ZodArray<z.ZodString>;
318
152
  }, z.core.$strip>;
319
- export declare const WorkflowPurposeSchema: z.ZodObject<{
153
+ export declare const MethodPurposeSchema: z.ZodObject<{
320
154
  label: z.ZodString;
321
155
  task_hint: z.ZodString;
322
156
  }, z.core.$strict>;
323
- export declare const WorkflowZoneSchema: z.ZodObject<{
157
+ export declare const MethodZoneSchema: z.ZodObject<{
324
158
  id: z.ZodString;
325
159
  role: z.ZodEnum<{
326
160
  output: "output";
@@ -331,14 +165,14 @@ export declare const WorkflowZoneSchema: z.ZodObject<{
331
165
  path: z.ZodString;
332
166
  kind: z.ZodEnum<{
333
167
  runtime: "runtime";
334
- directory: "directory";
335
168
  file: "file";
169
+ directory: "directory";
336
170
  }>;
337
171
  required: z.ZodBoolean;
338
172
  owned_by: z.ZodArray<z.ZodString>;
339
173
  description: z.ZodString;
340
174
  }, z.core.$strip>;
341
- export declare const WorkflowCompiledZoneSchema: z.ZodObject<{
175
+ export declare const MethodCompiledZoneSchema: z.ZodObject<{
342
176
  id: z.ZodString;
343
177
  role: z.ZodEnum<{
344
178
  output: "output";
@@ -349,15 +183,15 @@ export declare const WorkflowCompiledZoneSchema: z.ZodObject<{
349
183
  path: z.ZodString;
350
184
  kind: z.ZodEnum<{
351
185
  runtime: "runtime";
352
- directory: "directory";
353
186
  file: "file";
187
+ directory: "directory";
354
188
  }>;
355
189
  required: z.ZodBoolean;
356
190
  owned_by: z.ZodArray<z.ZodString>;
357
191
  description: z.ZodString;
358
192
  }, z.core.$strip>;
359
- export declare const WorkflowSchemaSchema: z.ZodObject<{
360
- kind: z.ZodLiteral<"workflow-schema">;
193
+ export declare const MethodSchemaSchema: z.ZodObject<{
194
+ kind: z.ZodLiteral<"method-schema">;
361
195
  version: z.ZodLiteral<1>;
362
196
  target_type: z.ZodLiteral<"compiled">;
363
197
  label: z.ZodString;
@@ -372,16 +206,16 @@ export declare const WorkflowSchemaSchema: z.ZodObject<{
372
206
  path: z.ZodString;
373
207
  kind: z.ZodEnum<{
374
208
  runtime: "runtime";
375
- directory: "directory";
376
209
  file: "file";
210
+ directory: "directory";
377
211
  }>;
378
212
  required: z.ZodBoolean;
379
213
  owned_by: z.ZodArray<z.ZodString>;
380
214
  description: z.ZodString;
381
215
  }, z.core.$strip>>;
382
216
  }, z.core.$strip>;
383
- export declare const WorkflowCompiledSchemaSchema: z.ZodObject<{
384
- kind: z.ZodLiteral<"workflow-schema">;
217
+ export declare const MethodCompiledSchemaSchema: z.ZodObject<{
218
+ kind: z.ZodLiteral<"method-schema">;
385
219
  version: z.ZodLiteral<1>;
386
220
  target_type: z.ZodLiteral<"compiled">;
387
221
  label: z.ZodString;
@@ -396,20 +230,20 @@ export declare const WorkflowCompiledSchemaSchema: z.ZodObject<{
396
230
  path: z.ZodString;
397
231
  kind: z.ZodEnum<{
398
232
  runtime: "runtime";
399
- directory: "directory";
400
233
  file: "file";
234
+ directory: "directory";
401
235
  }>;
402
236
  required: z.ZodBoolean;
403
237
  owned_by: z.ZodArray<z.ZodString>;
404
238
  description: z.ZodString;
405
239
  }, z.core.$strip>>;
406
240
  }, z.core.$strip>;
407
- export declare const WorkflowCompilerApiSchema: z.ZodObject<{
241
+ export declare const MethodCompilerApiSchema: z.ZodObject<{
408
242
  kind: z.ZodLiteral<"compiled">;
409
243
  version: z.ZodLiteral<1>;
410
244
  }, z.core.$strip>;
411
- export type WorkflowCompilerApi = z.infer<typeof WorkflowCompilerApiSchema>;
412
- export declare const WorkflowStageZoneAccessSchema: z.ZodArray<z.ZodString>;
245
+ export type MethodCompilerApi = z.infer<typeof MethodCompilerApiSchema>;
246
+ export declare const MethodStageZoneAccessSchema: z.ZodArray<z.ZodString>;
413
247
  export declare const ExecutionShellZoneMountSchema: z.ZodObject<{
414
248
  zone_id: z.ZodString;
415
249
  compiled_path: z.ZodString;
@@ -420,7 +254,7 @@ export declare const ExecutionShellZoneMountSchema: z.ZodObject<{
420
254
  export declare const ExecutionShellPathsSchema: z.ZodObject<{
421
255
  kind: z.ZodLiteral<"interf-execution-shell">;
422
256
  version: z.ZodLiteral<1>;
423
- workflow: z.ZodString;
257
+ method: z.ZodString;
424
258
  stage: z.ZodString;
425
259
  reads: z.ZodArray<z.ZodObject<{
426
260
  zone_id: z.ZodString;
@@ -437,20 +271,6 @@ export declare const ExecutionShellPathsSchema: z.ZodObject<{
437
271
  output_mount_path: z.ZodNullable<z.ZodString>;
438
272
  }, z.core.$strip>>;
439
273
  }, z.core.$strip>;
440
- export declare const RuntimeExecutorInfoSchema: z.ZodObject<{
441
- kind: z.ZodEnum<{
442
- "local-agent": "local-agent";
443
- "connected-provider": "connected-provider";
444
- managed: "managed";
445
- }>;
446
- name: z.ZodString;
447
- display_name: z.ZodString;
448
- command: z.ZodNullable<z.ZodString>;
449
- model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
450
- effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
451
- profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
452
- timeout_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
453
- }, z.core.$strip>;
454
274
  export declare const RuntimeStageInstructionsSchema: z.ZodObject<{
455
275
  stage_skill_dir: z.ZodString;
456
276
  effective_mode: z.ZodEnum<{
@@ -488,7 +308,7 @@ export declare const RuntimeStageContractSchema: z.ZodObject<{
488
308
  compiled: "compiled";
489
309
  }>;
490
310
  target_name: z.ZodString;
491
- workflow: z.ZodObject<{
311
+ method: z.ZodObject<{
492
312
  id: z.ZodString;
493
313
  stage_index: z.ZodNullable<z.ZodNumber>;
494
314
  stage_total: z.ZodNumber;
@@ -567,13 +387,13 @@ export declare const RuntimeRunSchema: z.ZodObject<{
567
387
  compiled: "compiled";
568
388
  }>;
569
389
  target_name: z.ZodString;
570
- workflow: z.ZodString;
390
+ method: z.ZodString;
571
391
  stage: z.ZodString;
572
392
  stage_label: z.ZodString;
573
393
  contract_type: z.ZodString;
574
394
  status: z.ZodEnum<{
575
- running: "running";
576
395
  failed: "failed";
396
+ running: "running";
577
397
  succeeded: "succeeded";
578
398
  }>;
579
399
  executor: z.ZodObject<{
@@ -628,14 +448,7 @@ export declare const CompiledInventorySchema: z.ZodObject<{
628
448
  }, z.core.$strict>>;
629
449
  total: z.ZodNumber;
630
450
  }, z.core.$strip>;
631
- export declare const TestCaseExpectSchema: z.ZodObject<{
632
- must_include: z.ZodOptional<z.ZodArray<z.ZodString>>;
633
- must_include_one_of: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
634
- must_not_include: z.ZodOptional<z.ZodArray<z.ZodString>>;
635
- min_words: z.ZodOptional<z.ZodNumber>;
636
- max_words: z.ZodOptional<z.ZodNumber>;
637
- }, z.core.$strip>;
638
- export declare const WorkflowImprovementLoopSummarySchema: z.ZodObject<{
451
+ export declare const MethodImprovementLoopSummarySchema: z.ZodObject<{
639
452
  variation: z.ZodNumber;
640
453
  kind: z.ZodEnum<{
641
454
  baseline: "baseline";
@@ -650,17 +463,17 @@ export declare const WorkflowImprovementLoopSummarySchema: z.ZodObject<{
650
463
  test_sandbox_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
651
464
  summary: z.ZodString;
652
465
  }, z.core.$strip>;
653
- export declare const WorkflowImprovementContextSchema: z.ZodObject<{
654
- kind: z.ZodLiteral<"interf-workflow-improvement-loop">;
466
+ export declare const MethodImprovementContextSchema: z.ZodObject<{
467
+ kind: z.ZodLiteral<"interf-method-improvement-loop">;
655
468
  version: z.ZodLiteral<1>;
656
469
  generated_at: z.ZodString;
657
470
  target_name: z.ZodString;
658
- workflow_id: z.ZodString;
471
+ method_id: z.ZodString;
659
472
  loop_index: z.ZodNumber;
660
473
  max_loops: z.ZodNumber;
661
474
  max_attempts: z.ZodNumber;
662
475
  review_paths: z.ZodObject<{
663
- workflow_root: z.ZodString;
476
+ method_root: z.ZodString;
664
477
  compiled_runtime: z.ZodNullable<z.ZodString>;
665
478
  test_comparisons: z.ZodNullable<z.ZodString>;
666
479
  execution_shells: z.ZodNullable<z.ZodString>;
@@ -705,37 +518,39 @@ export declare const WorkflowImprovementContextSchema: z.ZodObject<{
705
518
  summary: z.ZodString;
706
519
  }, z.core.$strip>>;
707
520
  }, z.core.$strip>;
708
- export type WorkflowImprovementLoopSummary = z.infer<typeof WorkflowImprovementLoopSummarySchema>;
709
- export type WorkflowImprovementContext = z.infer<typeof WorkflowImprovementContextSchema>;
521
+ export type MethodImprovementLoopSummary = z.infer<typeof MethodImprovementLoopSummarySchema>;
522
+ export type MethodImprovementContext = z.infer<typeof MethodImprovementContextSchema>;
710
523
  export declare const PreservedShellTypeSchema: z.ZodEnum<{
711
524
  "stage-execution": "stage-execution";
712
- "workflow-improvement": "workflow-improvement";
525
+ "method-authoring": "method-authoring";
526
+ "method-improvement": "method-improvement";
713
527
  }>;
714
528
  export declare const PreservedShellSnapshotSchema: z.ZodObject<{
715
529
  kind: z.ZodLiteral<"interf-preserved-shell">;
716
530
  version: z.ZodLiteral<1>;
717
531
  shell_type: z.ZodEnum<{
718
532
  "stage-execution": "stage-execution";
719
- "workflow-improvement": "workflow-improvement";
533
+ "method-authoring": "method-authoring";
534
+ "method-improvement": "method-improvement";
720
535
  }>;
721
536
  generated_at: z.ZodString;
722
537
  root_path: z.ZodString;
723
538
  materialized_symlinks: z.ZodNumber;
724
539
  }, z.core.$strip>;
725
- export declare const WorkflowPackageValidationSchema: z.ZodObject<{
540
+ export declare const MethodPackageValidationSchema: z.ZodObject<{
726
541
  ok: z.ZodBoolean;
727
542
  summary: z.ZodString;
728
543
  errors: z.ZodArray<z.ZodString>;
729
544
  counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
730
545
  }, z.core.$strip>;
731
- export declare const WorkflowImprovementLoopRecordSchema: z.ZodObject<{
732
- kind: z.ZodLiteral<"interf-workflow-improvement-loop-record">;
546
+ export declare const MethodImprovementLoopRecordSchema: z.ZodObject<{
547
+ kind: z.ZodLiteral<"interf-method-improvement-loop-record">;
733
548
  version: z.ZodLiteral<1>;
734
549
  recorded_at: z.ZodString;
735
550
  run_id: z.ZodString;
736
551
  loop_index: z.ZodNumber;
737
552
  target_name: z.ZodString;
738
- workflow_id: z.ZodString;
553
+ method_id: z.ZodString;
739
554
  result: z.ZodEnum<{
740
555
  updated: "updated";
741
556
  "no-change": "no-change";
@@ -748,8 +563,8 @@ export declare const WorkflowImprovementLoopRecordSchema: z.ZodObject<{
748
563
  shell_path: z.ZodString;
749
564
  loop_root_path: z.ZodString;
750
565
  context_path: z.ZodString;
751
- workflow_before_path: z.ZodString;
752
- workflow_after_path: z.ZodString;
566
+ method_before_path: z.ZodString;
567
+ method_after_path: z.ZodString;
753
568
  prompt_log_path: z.ZodString;
754
569
  event_log_path: z.ZodString;
755
570
  status_log_path: z.ZodString;
@@ -761,24 +576,24 @@ export declare const WorkflowImprovementLoopRecordSchema: z.ZodObject<{
761
576
  counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
762
577
  }, z.core.$strip>>;
763
578
  }, z.core.$strip>;
764
- export declare const WorkflowImprovementRunLedgerSchema: z.ZodObject<{
765
- kind: z.ZodLiteral<"interf-workflow-improvement-run">;
579
+ export declare const MethodImprovementRunLedgerSchema: z.ZodObject<{
580
+ kind: z.ZodLiteral<"interf-method-improvement-run">;
766
581
  version: z.ZodLiteral<1>;
767
582
  generated_at: z.ZodString;
768
583
  updated_at: z.ZodString;
769
584
  run_id: z.ZodString;
770
585
  target_name: z.ZodString;
771
- workflow_id: z.ZodString;
586
+ method_id: z.ZodString;
772
587
  max_loops: z.ZodNumber;
773
588
  max_attempts: z.ZodNumber;
774
589
  loops: z.ZodArray<z.ZodObject<{
775
- kind: z.ZodLiteral<"interf-workflow-improvement-loop-record">;
590
+ kind: z.ZodLiteral<"interf-method-improvement-loop-record">;
776
591
  version: z.ZodLiteral<1>;
777
592
  recorded_at: z.ZodString;
778
593
  run_id: z.ZodString;
779
594
  loop_index: z.ZodNumber;
780
595
  target_name: z.ZodString;
781
- workflow_id: z.ZodString;
596
+ method_id: z.ZodString;
782
597
  result: z.ZodEnum<{
783
598
  updated: "updated";
784
599
  "no-change": "no-change";
@@ -791,8 +606,8 @@ export declare const WorkflowImprovementRunLedgerSchema: z.ZodObject<{
791
606
  shell_path: z.ZodString;
792
607
  loop_root_path: z.ZodString;
793
608
  context_path: z.ZodString;
794
- workflow_before_path: z.ZodString;
795
- workflow_after_path: z.ZodString;
609
+ method_before_path: z.ZodString;
610
+ method_after_path: z.ZodString;
796
611
  prompt_log_path: z.ZodString;
797
612
  event_log_path: z.ZodString;
798
613
  status_log_path: z.ZodString;
@@ -807,9 +622,9 @@ export declare const WorkflowImprovementRunLedgerSchema: z.ZodObject<{
807
622
  }, z.core.$strip>;
808
623
  export type PreservedShellType = z.infer<typeof PreservedShellTypeSchema>;
809
624
  export type PreservedShellSnapshot = z.infer<typeof PreservedShellSnapshotSchema>;
810
- export type WorkflowPackageValidation = z.infer<typeof WorkflowPackageValidationSchema>;
811
- export type WorkflowImprovementLoopRecord = z.infer<typeof WorkflowImprovementLoopRecordSchema>;
812
- export type WorkflowImprovementRunLedger = z.infer<typeof WorkflowImprovementRunLedgerSchema>;
625
+ export type MethodPackageValidation = z.infer<typeof MethodPackageValidationSchema>;
626
+ export type MethodImprovementLoopRecord = z.infer<typeof MethodImprovementLoopRecordSchema>;
627
+ export type MethodImprovementRunLedger = z.infer<typeof MethodImprovementRunLedgerSchema>;
813
628
  export type ReadinessStatus = z.infer<typeof ReadinessStatusSchema>;
814
629
  export type ReadinessGate = z.infer<typeof ReadinessGateSchema>;
815
630
  export type ReadinessCheck = z.infer<typeof ReadinessCheckSchema>;
@@ -821,10 +636,10 @@ export type ViewCard = z.infer<typeof ViewCardSchema>;
821
636
  export type CompiledHealth = z.infer<typeof CompiledHealthSchema>;
822
637
  export type CompiledViewSpec = z.infer<typeof CompiledViewSpecSchema>;
823
638
  export type CompiledRawSnapshot = z.infer<typeof CompiledRawSnapshotSchema>;
824
- export type WorkflowCompiledZone = z.infer<typeof WorkflowCompiledZoneSchema>;
825
- export type WorkflowCompiledSchema = z.infer<typeof WorkflowCompiledSchemaSchema>;
826
- export type WorkflowCompiledZoneKind = z.infer<typeof WorkflowCompiledZoneKindSchema>;
827
- export type WorkflowZoneId = z.infer<typeof WorkflowZoneIdSchema>;
639
+ export type MethodCompiledZone = z.infer<typeof MethodCompiledZoneSchema>;
640
+ export type MethodCompiledSchema = z.infer<typeof MethodCompiledSchemaSchema>;
641
+ export type MethodCompiledZoneKind = z.infer<typeof MethodCompiledZoneKindSchema>;
642
+ export type MethodZoneId = z.infer<typeof MethodZoneIdSchema>;
828
643
  export type ExecutionShellZoneMount = z.infer<typeof ExecutionShellZoneMountSchema>;
829
644
  export type ExecutionShellPaths = z.infer<typeof ExecutionShellPathsSchema>;
830
645
  export type RuntimeExecutorInfo = z.infer<typeof RuntimeExecutorInfoSchema>;
@@ -832,7 +647,7 @@ export type RuntimeTargetType = z.infer<typeof RuntimeTargetTypeSchema>;
832
647
  export type TestTargetType = z.infer<typeof TestTargetTypeSchema>;
833
648
  export type RuntimeStage = z.infer<typeof RuntimeStageSchema>;
834
649
  export type RuntimeContractType = z.infer<typeof RuntimeContractTypeSchema>;
835
- export type WorkflowId = z.infer<typeof WorkflowIdSchema>;
650
+ export type MethodId = z.infer<typeof MethodIdSchema>;
836
651
  export type LocalInstructionMode = "extend" | "override";
837
652
  export type RuntimeInstructionMode = "builtin" | LocalInstructionMode;
838
653
  export type RuntimeStageInstructions = z.infer<typeof RuntimeStageInstructionsSchema>;