@interf/compiler 0.13.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. package/LICENSE.md +1 -0
  2. package/README.md +50 -7
  3. package/TRADEMARKS.md +4 -4
  4. package/agent-skills/interf-actions/SKILL.md +51 -5
  5. package/agent-skills/interf-actions/references/cli.md +82 -82
  6. package/builtin-methods/interf-default/README.md +6 -7
  7. package/builtin-methods/interf-default/method.json +7 -68
  8. package/builtin-methods/interf-default/method.schema.json +52 -50
  9. package/dist/cli/commands/agents.d.ts +2 -0
  10. package/dist/cli/commands/agents.js +213 -0
  11. package/dist/cli/commands/compile.js +10 -1
  12. package/dist/cli/commands/doctor.js +1 -1
  13. package/dist/cli/commands/login.js +1 -1
  14. package/dist/cli/commands/logout.js +1 -1
  15. package/dist/cli/commands/mcp.d.ts +42 -0
  16. package/dist/cli/commands/mcp.js +239 -0
  17. package/dist/cli/commands/method.js +1 -1
  18. package/dist/cli/commands/prep.js +81 -7
  19. package/dist/cli/commands/reset.js +1 -1
  20. package/dist/cli/commands/runs.js +1 -1
  21. package/dist/cli/commands/status.js +1 -1
  22. package/dist/cli/commands/verify.d.ts +10 -0
  23. package/dist/cli/commands/{test.js → verify.js} +30 -15
  24. package/dist/cli/commands/web.js +71 -18
  25. package/dist/cli/commands/wizard.js +462 -107
  26. package/dist/cli/index.d.ts +4 -2
  27. package/dist/cli/index.js +7 -3
  28. package/dist/compiler-ui/404.html +1 -1
  29. package/dist/compiler-ui/__next.__PAGE__.txt +2 -2
  30. package/dist/compiler-ui/__next._full.txt +3 -3
  31. package/dist/compiler-ui/__next._head.txt +1 -1
  32. package/dist/compiler-ui/__next._index.txt +2 -2
  33. package/dist/compiler-ui/__next._tree.txt +2 -2
  34. package/dist/compiler-ui/_next/static/chunks/{045gole2ojo3g.css → 0_c_tvh-cukjz.css} +1 -1
  35. package/dist/compiler-ui/_next/static/chunks/0f_geuwdesg_c.js +114 -0
  36. package/dist/compiler-ui/_not-found/__next._full.txt +2 -2
  37. package/dist/compiler-ui/_not-found/__next._head.txt +1 -1
  38. package/dist/compiler-ui/_not-found/__next._index.txt +2 -2
  39. package/dist/compiler-ui/_not-found/__next._not-found.__PAGE__.txt +1 -1
  40. package/dist/compiler-ui/_not-found/__next._not-found.txt +1 -1
  41. package/dist/compiler-ui/_not-found/__next._tree.txt +2 -2
  42. package/dist/compiler-ui/_not-found.html +1 -1
  43. package/dist/compiler-ui/_not-found.txt +2 -2
  44. package/dist/compiler-ui/index.html +1 -1
  45. package/dist/compiler-ui/index.txt +3 -3
  46. package/dist/index.d.ts +2 -2
  47. package/dist/index.js +2 -2
  48. package/dist/packages/contracts/index.d.ts +2 -1
  49. package/dist/packages/contracts/index.js +1 -0
  50. package/dist/packages/contracts/lib/schema.d.ts +324 -31
  51. package/dist/packages/contracts/lib/schema.js +281 -21
  52. package/dist/packages/{local-service → engine}/action-definitions.js +9 -2
  53. package/dist/packages/{local-service → engine}/action-planner.d.ts +1 -1
  54. package/dist/packages/{local-service → engine}/action-planner.js +1 -1
  55. package/dist/packages/{agents → engine/agents}/index.d.ts +3 -0
  56. package/dist/packages/{agents → engine/agents}/index.js +3 -0
  57. package/dist/packages/{agents → engine/agents}/lib/compiled-bootstrap.js +2 -2
  58. package/dist/packages/engine/agents/lib/detection.d.ts +13 -0
  59. package/dist/packages/{agents → engine/agents}/lib/detection.js +11 -0
  60. package/dist/packages/{agents → engine/agents}/lib/executors.d.ts +2 -2
  61. package/dist/packages/{agents → engine/agents}/lib/shells.d.ts +14 -6
  62. package/dist/packages/{agents → engine/agents}/lib/shells.js +133 -126
  63. package/dist/packages/{agents → engine/agents}/lib/user-config.js +2 -2
  64. package/dist/packages/engine/agents/registry.d.ts +91 -0
  65. package/dist/packages/engine/agents/registry.js +321 -0
  66. package/dist/packages/engine/agents/role-executors.d.ts +35 -0
  67. package/dist/packages/engine/agents/role-executors.js +88 -0
  68. package/dist/packages/engine/agents/role-router.d.ts +66 -0
  69. package/dist/packages/engine/agents/role-router.js +73 -0
  70. package/dist/packages/{local-service → engine}/client.d.ts +9 -9
  71. package/dist/packages/{local-service → engine}/client.js +11 -11
  72. package/dist/packages/engine/cloud-seams.d.ts +115 -0
  73. package/dist/packages/engine/cloud-seams.js +84 -0
  74. package/dist/packages/engine/compile/artifact-counts.d.ts +1 -0
  75. package/dist/packages/{compiler → engine/compile}/artifact-counts.js +4 -4
  76. package/dist/packages/engine/compile/artifact-status.d.ts +41 -0
  77. package/dist/packages/engine/compile/artifact-status.js +166 -0
  78. package/dist/packages/engine/compile/billing-events.d.ts +89 -0
  79. package/dist/packages/engine/compile/billing-events.js +74 -0
  80. package/dist/packages/engine/compile/check-evaluator.d.ts +66 -0
  81. package/dist/packages/engine/compile/check-evaluator.js +298 -0
  82. package/dist/packages/{compiler → engine/compile}/compiled-pipeline.d.ts +12 -1
  83. package/dist/packages/{compiler → engine/compile}/compiled-pipeline.js +16 -6
  84. package/dist/packages/engine/compile/compiled-schema.d.ts +21 -0
  85. package/dist/packages/engine/compile/compiled-schema.js +126 -0
  86. package/dist/packages/{compiler → engine/compile}/compiled-stage-plan.d.ts +2 -1
  87. package/dist/packages/{compiler → engine/compile}/compiled-stage-plan.js +35 -18
  88. package/dist/packages/{compiler → engine/compile}/compiled-stage-runner.d.ts +1 -1
  89. package/dist/packages/{compiler → engine/compile}/compiled-stage-runner.js +4 -4
  90. package/dist/packages/{compiler → engine/compile}/compiled-target.d.ts +2 -2
  91. package/dist/packages/{compiler → engine/compile}/compiled-target.js +2 -2
  92. package/dist/packages/{compiler → engine/compile}/discovery.js +1 -1
  93. package/dist/packages/{compiler → engine/compile}/index.d.ts +0 -1
  94. package/dist/packages/{compiler → engine/compile}/index.js +0 -1
  95. package/dist/packages/{compiler → engine/compile}/lib/schema.d.ts +113 -94
  96. package/dist/packages/{compiler → engine/compile}/lib/schema.js +35 -39
  97. package/dist/packages/engine/compile/method-primitives.d.ts +2 -0
  98. package/dist/packages/{compiler → engine/compile}/method-primitives.js +1 -1
  99. package/dist/packages/{compiler → engine/compile}/method-runs.d.ts +3 -3
  100. package/dist/packages/{compiler → engine/compile}/method-runs.js +3 -3
  101. package/dist/packages/{compiler → engine/compile}/reset.js +4 -4
  102. package/dist/packages/{compiler → engine/compile}/runtime-contracts.js +2 -1
  103. package/dist/packages/{compiler → engine/compile}/runtime-prompt.js +3 -2
  104. package/dist/packages/{compiler → engine/compile}/runtime-reconcile.d.ts +1 -1
  105. package/dist/packages/{compiler → engine/compile}/runtime-reconcile.js +47 -45
  106. package/dist/packages/{compiler → engine/compile}/runtime-runs.d.ts +1 -2
  107. package/dist/packages/{compiler → engine/compile}/runtime-runs.js +3 -44
  108. package/dist/packages/{compiler → engine/compile}/runtime-types.d.ts +7 -12
  109. package/dist/packages/engine/compile/runtime.d.ts +5 -0
  110. package/dist/packages/{compiler → engine/compile}/runtime.js +1 -2
  111. package/dist/packages/{compiler → engine/compile}/source-files.d.ts +1 -1
  112. package/dist/packages/{compiler → engine/compile}/source-files.js +3 -3
  113. package/dist/packages/{compiler → engine/compile}/state-health.js +8 -8
  114. package/dist/packages/{compiler → engine/compile}/state-io.js +2 -2
  115. package/dist/packages/{compiler → engine/compile}/state-view.js +9 -8
  116. package/dist/packages/{compiler → engine/compile}/validate-compiled.js +63 -32
  117. package/dist/packages/{compiler → engine/compile}/validate.d.ts +1 -1
  118. package/dist/packages/{compiler → engine/compile}/validate.js +29 -27
  119. package/dist/packages/{execution → engine/execution}/lib/schema.d.ts +81 -55
  120. package/dist/packages/{execution → engine/execution}/lib/schema.js +14 -6
  121. package/dist/packages/engine/index.d.ts +22 -0
  122. package/dist/packages/engine/index.js +15 -0
  123. package/dist/packages/{local-service → engine}/lib/schema.d.ts +620 -435
  124. package/dist/packages/{local-service → engine}/lib/schema.js +103 -63
  125. package/dist/packages/{local-service → engine}/native-run-handlers.d.ts +7 -5
  126. package/dist/packages/{local-service → engine}/native-run-handlers.js +81 -29
  127. package/dist/packages/{local-service → engine}/preparation-store.d.ts +22 -4
  128. package/dist/packages/{local-service → engine}/preparation-store.js +56 -25
  129. package/dist/packages/{local-service → engine}/readiness-check-draft.d.ts +2 -2
  130. package/dist/packages/{local-service → engine}/routes.d.ts +36 -1
  131. package/dist/packages/{local-service → engine}/routes.js +38 -1
  132. package/dist/packages/{local-service → engine}/run-observability.d.ts +3 -3
  133. package/dist/packages/{local-service → engine}/run-observability.js +15 -15
  134. package/dist/packages/{local-service → engine}/runtime-event-applier.d.ts +1 -1
  135. package/dist/packages/{local-service → engine}/runtime-event-applier.js +7 -0
  136. package/dist/packages/{local-service → engine}/runtime-persistence.d.ts +6 -6
  137. package/dist/packages/{local-service → engine}/runtime-persistence.js +9 -9
  138. package/dist/packages/{local-service → engine}/runtime-proposal-helpers.d.ts +1 -1
  139. package/dist/packages/{local-service → engine}/runtime-proposal-helpers.js +5 -5
  140. package/dist/packages/{local-service → engine}/runtime-resource-builders.d.ts +12 -12
  141. package/dist/packages/{local-service → engine}/runtime-resource-builders.js +6 -5
  142. package/dist/packages/{local-service → engine}/runtime.d.ts +147 -56
  143. package/dist/packages/{local-service → engine}/runtime.js +333 -205
  144. package/dist/packages/{local-service → engine}/server.d.ts +25 -0
  145. package/dist/packages/{local-service → engine}/server.js +338 -17
  146. package/dist/packages/engine/verify/index.d.ts +13 -0
  147. package/dist/packages/engine/verify/index.js +10 -0
  148. package/dist/packages/{testing → engine/verify}/lib/schema.d.ts +1 -1
  149. package/dist/packages/{testing → engine/verify}/lib/schema.js +1 -1
  150. package/dist/packages/{testing → engine/verify}/readiness-check-run.d.ts +27 -11
  151. package/dist/packages/{testing → engine/verify}/readiness-check-run.js +72 -60
  152. package/dist/packages/{testing/test-execution.d.ts → engine/verify/verify-execution.d.ts} +2 -2
  153. package/dist/packages/{testing/test-execution.js → engine/verify/verify-execution.js} +2 -2
  154. package/dist/packages/{testing/test-paths.d.ts → engine/verify/verify-paths.d.ts} +1 -1
  155. package/dist/packages/{testing/test-paths.js → engine/verify/verify-paths.js} +2 -2
  156. package/dist/packages/{testing/test-sandbox.d.ts → engine/verify/verify-sandbox.d.ts} +1 -1
  157. package/dist/packages/{testing/test-sandbox.js → engine/verify/verify-sandbox.js} +6 -6
  158. package/dist/packages/{testing/test-specs.d.ts → engine/verify/verify-specs.d.ts} +1 -1
  159. package/dist/packages/{testing/test-specs.js → engine/verify/verify-specs.js} +2 -2
  160. package/dist/packages/{testing/test-targets.d.ts → engine/verify/verify-targets.d.ts} +1 -1
  161. package/dist/packages/{testing/test-targets.js → engine/verify/verify-targets.js} +3 -3
  162. package/dist/packages/{testing/test.d.ts → engine/verify/verify.d.ts} +4 -4
  163. package/dist/packages/{testing/test.js → engine/verify/verify.js} +3 -3
  164. package/dist/packages/engine/wire-schemas.d.ts +545 -0
  165. package/dist/packages/engine/wire-schemas.js +59 -0
  166. package/dist/packages/methods/authoring/method-authoring.d.ts +34 -0
  167. package/dist/packages/methods/authoring/method-authoring.js +260 -0
  168. package/dist/packages/{method-authoring → methods/authoring}/method-edit-session.d.ts +2 -2
  169. package/dist/packages/{method-authoring → methods/authoring}/method-edit-session.js +5 -5
  170. package/dist/packages/{method-authoring → methods/authoring}/method-improvement.d.ts +4 -4
  171. package/dist/packages/{method-authoring → methods/authoring}/method-improvement.js +16 -10
  172. package/dist/packages/{method-package → methods/package}/builtin-compiled-method.d.ts +12 -12
  173. package/dist/packages/{method-package → methods/package}/builtin-compiled-method.js +27 -24
  174. package/dist/packages/methods/package/context-interface.d.ts +73 -0
  175. package/dist/packages/{method-package → methods/package}/context-interface.js +50 -41
  176. package/dist/packages/{method-package → methods/package}/interf-method-package.js +31 -49
  177. package/dist/packages/{method-package → methods/package}/lib/package-root.js +2 -2
  178. package/dist/packages/{method-package → methods/package}/local-methods.d.ts +10 -5
  179. package/dist/packages/{method-package → methods/package}/local-methods.js +41 -68
  180. package/dist/packages/{method-package → methods/package}/method-definitions.d.ts +11 -7
  181. package/dist/packages/{method-package → methods/package}/method-definitions.js +5 -8
  182. package/dist/packages/{method-package → methods/package}/method-helpers.d.ts +1 -3
  183. package/dist/packages/{method-package → methods/package}/method-helpers.js +4 -8
  184. package/dist/packages/{method-package → methods/package}/method-review-paths.d.ts +1 -1
  185. package/dist/packages/{method-package → methods/package}/method-review-paths.js +1 -1
  186. package/dist/packages/{method-package → methods/package}/method-stage-runner.d.ts +4 -9
  187. package/dist/packages/{method-package → methods/package}/method-stage-runner.js +1 -29
  188. package/dist/packages/{method-package → methods/package}/user-methods.js +2 -2
  189. package/dist/packages/{project-model → project}/interf-bootstrap.d.ts +1 -1
  190. package/dist/packages/{project-model → project}/interf-bootstrap.js +1 -1
  191. package/dist/packages/{project-model → project}/interf-detect.js +4 -4
  192. package/dist/packages/{project-model → project}/interf-scaffold.js +18 -18
  193. package/dist/packages/{project-model → project}/lib/schema.d.ts +2 -2
  194. package/dist/packages/{project-model → project}/lib/schema.js +1 -1
  195. package/dist/packages/{project-model → project}/source-config.d.ts +1 -1
  196. package/dist/packages/{project-model → project}/source-config.js +9 -8
  197. package/dist/packages/{project-model → project}/source-folders.js +2 -2
  198. package/package.json +7 -16
  199. package/dist/cli/commands/test.d.ts +0 -9
  200. package/dist/compiler-ui/_next/static/chunks/17t-lulmyawg5.js +0 -89
  201. package/dist/packages/agents/lib/detection.d.ts +0 -7
  202. package/dist/packages/compiler/artifact-counts.d.ts +0 -1
  203. package/dist/packages/compiler/compiled-schema.d.ts +0 -31
  204. package/dist/packages/compiler/compiled-schema.js +0 -141
  205. package/dist/packages/compiler/method-primitives.d.ts +0 -2
  206. package/dist/packages/compiler/runtime-acceptance.d.ts +0 -9
  207. package/dist/packages/compiler/runtime-acceptance.js +0 -262
  208. package/dist/packages/compiler/runtime.d.ts +0 -6
  209. package/dist/packages/local-service/index.d.ts +0 -22
  210. package/dist/packages/local-service/index.js +0 -15
  211. package/dist/packages/method-authoring/method-authoring.d.ts +0 -24
  212. package/dist/packages/method-authoring/method-authoring.js +0 -116
  213. package/dist/packages/method-package/context-interface.d.ts +0 -60
  214. package/dist/packages/testing/index.d.ts +0 -13
  215. package/dist/packages/testing/index.js +0 -10
  216. /package/dist/compiler-ui/_next/static/{C6vVfy3aeYuIO3d2AoNvC → 6qyE1u9m_oBUkvAhhoCmO}/_buildManifest.js +0 -0
  217. /package/dist/compiler-ui/_next/static/{C6vVfy3aeYuIO3d2AoNvC → 6qyE1u9m_oBUkvAhhoCmO}/_clientMiddlewareManifest.js +0 -0
  218. /package/dist/compiler-ui/_next/static/{C6vVfy3aeYuIO3d2AoNvC → 6qyE1u9m_oBUkvAhhoCmO}/_ssgManifest.js +0 -0
  219. /package/dist/packages/{shared → contracts/utils}/file-types.d.ts +0 -0
  220. /package/dist/packages/{shared → contracts/utils}/file-types.js +0 -0
  221. /package/dist/packages/{shared → contracts/utils}/filesystem.d.ts +0 -0
  222. /package/dist/packages/{shared → contracts/utils}/filesystem.js +0 -0
  223. /package/dist/packages/{shared → contracts/utils}/logger.d.ts +0 -0
  224. /package/dist/packages/{shared → contracts/utils}/logger.js +0 -0
  225. /package/dist/packages/{shared → contracts/utils}/naming.d.ts +0 -0
  226. /package/dist/packages/{shared → contracts/utils}/naming.js +0 -0
  227. /package/dist/packages/{shared → contracts/utils}/parse.d.ts +0 -0
  228. /package/dist/packages/{shared → contracts/utils}/parse.js +0 -0
  229. /package/dist/packages/{shared → contracts/utils}/path-guards.d.ts +0 -0
  230. /package/dist/packages/{shared → contracts/utils}/path-guards.js +0 -0
  231. /package/dist/packages/{local-service → engine}/action-definitions.d.ts +0 -0
  232. /package/dist/packages/{local-service → engine}/action-values.d.ts +0 -0
  233. /package/dist/packages/{local-service → engine}/action-values.js +0 -0
  234. /package/dist/packages/{agents → engine/agents}/lib/agents.d.ts +0 -0
  235. /package/dist/packages/{agents → engine/agents}/lib/agents.js +0 -0
  236. /package/dist/packages/{agents → engine/agents}/lib/args.d.ts +0 -0
  237. /package/dist/packages/{agents → engine/agents}/lib/args.js +0 -0
  238. /package/dist/packages/{agents → engine/agents}/lib/chart-guidance.d.ts +0 -0
  239. /package/dist/packages/{agents → engine/agents}/lib/chart-guidance.js +0 -0
  240. /package/dist/packages/{agents → engine/agents}/lib/compiled-bootstrap.d.ts +0 -0
  241. /package/dist/packages/{agents → engine/agents}/lib/constants.d.ts +0 -0
  242. /package/dist/packages/{agents → engine/agents}/lib/constants.js +0 -0
  243. /package/dist/packages/{agents → engine/agents}/lib/execution-profile.d.ts +0 -0
  244. /package/dist/packages/{agents → engine/agents}/lib/execution-profile.js +0 -0
  245. /package/dist/packages/{agents → engine/agents}/lib/execution.d.ts +0 -0
  246. /package/dist/packages/{agents → engine/agents}/lib/execution.js +0 -0
  247. /package/dist/packages/{agents → engine/agents}/lib/executors.js +0 -0
  248. /package/dist/packages/{agents → engine/agents}/lib/logs.d.ts +0 -0
  249. /package/dist/packages/{agents → engine/agents}/lib/logs.js +0 -0
  250. /package/dist/packages/{agents → engine/agents}/lib/preflight.d.ts +0 -0
  251. /package/dist/packages/{agents → engine/agents}/lib/preflight.js +0 -0
  252. /package/dist/packages/{agents → engine/agents}/lib/render.d.ts +0 -0
  253. /package/dist/packages/{agents → engine/agents}/lib/render.js +0 -0
  254. /package/dist/packages/{agents → engine/agents}/lib/schema.d.ts +0 -0
  255. /package/dist/packages/{agents → engine/agents}/lib/schema.js +0 -0
  256. /package/dist/packages/{agents → engine/agents}/lib/status.d.ts +0 -0
  257. /package/dist/packages/{agents → engine/agents}/lib/status.js +0 -0
  258. /package/dist/packages/{agents → engine/agents}/lib/types.d.ts +0 -0
  259. /package/dist/packages/{agents → engine/agents}/lib/types.js +0 -0
  260. /package/dist/packages/{agents → engine/agents}/lib/user-config.d.ts +0 -0
  261. /package/dist/packages/{compiler → engine/compile}/compiled-compile.d.ts +0 -0
  262. /package/dist/packages/{compiler → engine/compile}/compiled-compile.js +0 -0
  263. /package/dist/packages/{compiler → engine/compile}/compiled-paths.d.ts +0 -0
  264. /package/dist/packages/{compiler → engine/compile}/compiled-paths.js +0 -0
  265. /package/dist/packages/{compiler → engine/compile}/discovery.d.ts +0 -0
  266. /package/dist/packages/{compiler → engine/compile}/reset.d.ts +0 -0
  267. /package/dist/packages/{compiler → engine/compile}/runtime-contracts.d.ts +0 -0
  268. /package/dist/packages/{compiler → engine/compile}/runtime-inventory.d.ts +0 -0
  269. /package/dist/packages/{compiler → engine/compile}/runtime-inventory.js +0 -0
  270. /package/dist/packages/{compiler → engine/compile}/runtime-paths.d.ts +0 -0
  271. /package/dist/packages/{compiler → engine/compile}/runtime-paths.js +0 -0
  272. /package/dist/packages/{compiler → engine/compile}/runtime-prompt.d.ts +0 -0
  273. /package/dist/packages/{compiler → engine/compile}/runtime-types.js +0 -0
  274. /package/dist/packages/{compiler → engine/compile}/state-artifacts.d.ts +0 -0
  275. /package/dist/packages/{compiler → engine/compile}/state-artifacts.js +0 -0
  276. /package/dist/packages/{compiler → engine/compile}/state-health.d.ts +0 -0
  277. /package/dist/packages/{compiler → engine/compile}/state-io.d.ts +0 -0
  278. /package/dist/packages/{compiler → engine/compile}/state-paths.d.ts +0 -0
  279. /package/dist/packages/{compiler → engine/compile}/state-paths.js +0 -0
  280. /package/dist/packages/{compiler → engine/compile}/state-view.d.ts +0 -0
  281. /package/dist/packages/{compiler → engine/compile}/state.d.ts +0 -0
  282. /package/dist/packages/{compiler → engine/compile}/state.js +0 -0
  283. /package/dist/packages/{compiler → engine/compile}/validate-compiled.d.ts +0 -0
  284. /package/dist/packages/{compiler → engine/compile}/validate-helpers.d.ts +0 -0
  285. /package/dist/packages/{compiler → engine/compile}/validate-helpers.js +0 -0
  286. /package/dist/packages/{local-service → engine}/connection-config.d.ts +0 -0
  287. /package/dist/packages/{local-service → engine}/connection-config.js +0 -0
  288. /package/dist/packages/{execution → engine/execution}/adapters.d.ts +0 -0
  289. /package/dist/packages/{execution → engine/execution}/adapters.js +0 -0
  290. /package/dist/packages/{execution → engine/execution}/events.d.ts +0 -0
  291. /package/dist/packages/{execution → engine/execution}/events.js +0 -0
  292. /package/dist/packages/{execution → engine/execution}/index.d.ts +0 -0
  293. /package/dist/packages/{execution → engine/execution}/index.js +0 -0
  294. /package/dist/packages/{local-service → engine}/instance-paths.d.ts +0 -0
  295. /package/dist/packages/{local-service → engine}/instance-paths.js +0 -0
  296. /package/dist/packages/{local-service → engine}/readiness-check-draft.js +0 -0
  297. /package/dist/packages/{local-service → engine}/runtime-caches.d.ts +0 -0
  298. /package/dist/packages/{local-service → engine}/runtime-caches.js +0 -0
  299. /package/dist/packages/{local-service → engine}/service-registry.d.ts +0 -0
  300. /package/dist/packages/{local-service → engine}/service-registry.js +0 -0
  301. /package/dist/packages/{testing/test-profile-presets.d.ts → engine/verify/verify-profile-presets.d.ts} +0 -0
  302. /package/dist/packages/{testing/test-profile-presets.js → engine/verify/verify-profile-presets.js} +0 -0
  303. /package/dist/packages/{testing/test-types.d.ts → engine/verify/verify-types.d.ts} +0 -0
  304. /package/dist/packages/{testing/test-types.js → engine/verify/verify-types.js} +0 -0
  305. /package/dist/packages/{method-authoring → methods/authoring}/index.d.ts +0 -0
  306. /package/dist/packages/{method-authoring → methods/authoring}/index.js +0 -0
  307. /package/dist/packages/{method-authoring → methods/authoring}/lib/method-edit-utils.d.ts +0 -0
  308. /package/dist/packages/{method-authoring → methods/authoring}/lib/method-edit-utils.js +0 -0
  309. /package/dist/packages/{method-package → methods/package}/interf-method-package.d.ts +0 -0
  310. /package/dist/packages/{method-package → methods/package}/lib/package-root.d.ts +0 -0
  311. /package/dist/packages/{method-package → methods/package}/user-methods.d.ts +0 -0
  312. /package/dist/packages/{project-model → project}/index.d.ts +0 -0
  313. /package/dist/packages/{project-model → project}/index.js +0 -0
  314. /package/dist/packages/{project-model → project}/interf-detect.d.ts +0 -0
  315. /package/dist/packages/{project-model → project}/interf-scaffold.d.ts +0 -0
  316. /package/dist/packages/{project-model → project}/interf.d.ts +0 -0
  317. /package/dist/packages/{project-model → project}/interf.js +0 -0
  318. /package/dist/packages/{project-model → project}/preparation-entries.d.ts +0 -0
  319. /package/dist/packages/{project-model → project}/preparation-entries.js +0 -0
  320. /package/dist/packages/{project-model → project}/source-folders.d.ts +0 -0
@@ -1,15 +1,15 @@
1
1
  import { join } from "node:path";
2
2
  import { buildRuntimeStageContract, } from "./runtime.js";
3
3
  import { discoverSourceFiles } from "./discovery.js";
4
- import { listFilesRecursive } from "../shared/filesystem.js";
5
- import { compiledContractArtifactPathsForZoneIds, findCompiledSchemaZone, readCompiledSchemaFile, } from "./compiled-schema.js";
6
- import { buildLocalSkillContractExtension, buildStageInstructions, methodCompileStageDirectory, } from "../method-package/method-helpers.js";
7
- import { getActiveCompiledStagePolicyNotes, resolveActiveCompiledStageAcceptance, } from "../method-package/method-definitions.js";
4
+ import { listFilesRecursive } from "../../contracts/utils/filesystem.js";
5
+ import { compiledContractArtifactPath, compiledContractArtifactPathsForArtifactIds, findCompiledSchemaArtifact, readCompiledSchemaFile, } from "./compiled-schema.js";
6
+ import { buildLocalSkillContractExtension, buildStageInstructions, methodCompileStageDirectory, } from "../../methods/package/method-helpers.js";
7
+ import { getActiveCompiledStagePolicyNotes, } from "../../methods/package/method-definitions.js";
8
8
  import { methodPackagePathForCompiled } from "./compiled-paths.js";
9
- import { readInterfConfig } from "../project-model/interf-detect.js";
9
+ import { readInterfConfig } from "../../project/interf-detect.js";
10
10
  import { resolveCompiledContext, } from "./compiled-target.js";
11
- function zoneArtifactCount(compiledPath, zonePath, kind) {
12
- const absolutePath = join(compiledPath, zonePath);
11
+ function artifactCount(compiledPath, artifactPath, kind) {
12
+ const absolutePath = join(compiledPath, artifactPath);
13
13
  try {
14
14
  if (kind === "file") {
15
15
  return listFilesRecursive(absolutePath).length > 0 ? 1 : 0;
@@ -27,28 +27,45 @@ export function resolveStageContractArtifacts(compiledPath, stageDefinition) {
27
27
  throw new Error(`Missing Method schema for stage "${stageDefinition.id}" at ${methodPackagePathForCompiled(compiledPath)}.`);
28
28
  }
29
29
  return {
30
- reads: compiledContractArtifactPathsForZoneIds(schema, stageDefinition.reads),
31
- writes: compiledContractArtifactPathsForZoneIds(schema, stageDefinition.writes),
30
+ reads: compiledContractArtifactPathsForArtifactIds(schema, stageDefinition.reads),
31
+ writes: compiledContractArtifactPathsForArtifactIds(schema, stageDefinition.writes),
32
+ writeContracts: stageDefinition.writes.map((artifactId) => {
33
+ const artifact = schema.artifacts.find((candidate) => candidate.id === artifactId);
34
+ if (!artifact) {
35
+ throw new Error(`Compiled schema is missing declared Artifact "${artifactId}".`);
36
+ }
37
+ const path = artifact.shape.kind === "path"
38
+ ? compiledContractArtifactPath({
39
+ path: artifact.shape.path,
40
+ kind: artifact.shape.artifact_kind,
41
+ })
42
+ : artifact.id;
43
+ return {
44
+ artifact_id: artifact.id,
45
+ path,
46
+ checks: artifact.checks ?? [],
47
+ };
48
+ }),
32
49
  };
33
50
  }
34
51
  export function buildStageCounts(compiledPath, stageDefinition) {
35
52
  const context = resolveCompiledContext(compiledPath);
36
53
  const sourceTotal = discoverSourceFiles(context.sourcePath, compiledPath).totalCount;
37
54
  const schema = readCompiledSchemaFile(methodPackagePathForCompiled(compiledPath));
38
- const zoneCounts = {};
55
+ const artifactCounts = {};
39
56
  if (schema) {
40
- for (const zoneId of new Set([...stageDefinition.reads, ...stageDefinition.writes])) {
41
- const zone = findCompiledSchemaZone(schema, zoneId);
42
- if (!zone)
57
+ for (const artifactId of new Set([...stageDefinition.reads, ...stageDefinition.writes])) {
58
+ const artifact = findCompiledSchemaArtifact(schema, artifactId);
59
+ if (!artifact)
43
60
  continue;
44
- zoneCounts[zoneId] = zoneArtifactCount(compiledPath, zone.path, zone.kind);
61
+ artifactCounts[artifactId] = artifactCount(compiledPath, artifact.path, artifact.kind);
45
62
  }
46
63
  }
47
64
  return {
48
65
  source_total: sourceTotal,
49
- read_zone_total: stageDefinition.reads.length,
50
- write_zone_total: stageDefinition.writes.length,
51
- ...zoneCounts,
66
+ read_artifact_total: stageDefinition.reads.length,
67
+ write_artifact_total: stageDefinition.writes.length,
68
+ ...artifactCounts,
52
69
  };
53
70
  }
54
71
  export function buildStageContract(compiledPath, stageDefinition, instructions) {
@@ -65,10 +82,10 @@ export function buildStageContract(compiledPath, stageDefinition, instructions)
65
82
  ],
66
83
  stageReadArtifacts: stageArtifacts.reads,
67
84
  stageWriteArtifacts: stageArtifacts.writes,
85
+ stageWriteContracts: stageArtifacts.writeContracts,
68
86
  methodNotes: getActiveCompiledStagePolicyNotes(compiledPath, stageDefinition.id),
69
87
  localSkillDocs: instructions.local_docs,
70
88
  instructions,
71
- acceptance: resolveActiveCompiledStageAcceptance(compiledPath, stageDefinition.id),
72
89
  });
73
90
  }
74
91
  export function buildCompiledStageExecutionPlan(compiledPath, stageDefinition) {
@@ -1,5 +1,5 @@
1
1
  import { type MethodExecutor } from "../agents/lib/executors.js";
2
- import { type MethodReporter, type MethodStageResult } from "../method-package/method-helpers.js";
2
+ import { type MethodReporter, type MethodStageResult } from "../../methods/package/method-helpers.js";
3
3
  import { type CompiledStageExecutionDefinition } from "./compiled-target.js";
4
4
  import { type RunEventSink } from "../execution/events.js";
5
5
  export declare function runCompiledStage(options: {
@@ -2,9 +2,9 @@ import { createStageExecutionShell, freezeStageExecutionShell, syncStageExecutio
2
2
  import { reconcileCompiledStageRun } from "./runtime-reconcile.js";
3
3
  import { refreshCompiledArtifacts } from "./state.js";
4
4
  import { validateCompiledStage } from "./validate.js";
5
- import { executeValidatedStage, } from "../method-package/method-stage-runner.js";
6
- import { formatActiveCompiledMethodStageStep, } from "../method-package/method-definitions.js";
7
- import { reportBlankLine, reportLine, } from "../method-package/method-helpers.js";
5
+ import { executeValidatedStage, } from "../../methods/package/method-stage-runner.js";
6
+ import { formatActiveCompiledMethodStageStep, } from "../../methods/package/method-definitions.js";
7
+ import { reportBlankLine, reportLine, } from "../../methods/package/method-helpers.js";
8
8
  import { buildCompiledStageExecutionPlan, } from "./compiled-stage-plan.js";
9
9
  import { createRunEventId, createRunEventTimestamp, } from "../execution/events.js";
10
10
  async function emitRunEvent(sink, event) {
@@ -44,7 +44,7 @@ export async function runCompiledStage(options) {
44
44
  statusLines: [
45
45
  `Emit exactly one startup line: STATUS: loaded ${stageDefinition.label.toLowerCase()} stage.`,
46
46
  "Emit STATUS: reading declared inputs after you confirm the shell contract and local docs.",
47
- "Emit STATUS: writing declared outputs after the stage starts updating the compiled zones.",
47
+ "Emit STATUS: writing declared outputs after the stage starts updating the compiled Artifacts.",
48
48
  `Emit DONE: ${stageDefinition.id} complete when the declared outputs and proof are on disk.`,
49
49
  ],
50
50
  reporter: options.reporter,
@@ -1,5 +1,5 @@
1
- import { type MethodStageDefinition } from "../method-package/method-definitions.js";
2
- import { type CompiledMethodId } from "../method-package/method-definitions.js";
1
+ import { type MethodStageDefinition } from "../../methods/package/method-definitions.js";
2
+ import { type CompiledMethodId } from "../../methods/package/method-definitions.js";
3
3
  export interface CompiledStageExecutionDefinition extends MethodStageDefinition {
4
4
  }
5
5
  export declare function resolveCompiledContext(compiledPath: string): {
@@ -1,5 +1,5 @@
1
- import { getActiveCompiledMethod, resolveRequiredCompiledMethodFromConfig, } from "../method-package/method-definitions.js";
2
- import { readInterfConfig, resolveSourceFolderPath, resolveSourceControlPath, } from "../project-model/interf-detect.js";
1
+ import { getActiveCompiledMethod, resolveRequiredCompiledMethodFromConfig, } from "../../methods/package/method-definitions.js";
2
+ import { readInterfConfig, resolveSourceFolderPath, resolveSourceControlPath, } from "../../project/interf-detect.js";
3
3
  export function resolveCompiledContext(compiledPath) {
4
4
  const config = readInterfConfig(compiledPath);
5
5
  const methodId = resolveRequiredCompiledMethodFromConfig(config, `.interf/interf.json for ${compiledPath}`);
@@ -1,6 +1,6 @@
1
1
  import { existsSync, readFileSync } from "node:fs";
2
2
  import { join, relative } from "node:path";
3
- import { listFilesRecursive } from "../shared/filesystem.js";
3
+ import { listFilesRecursive } from "../../contracts/utils/filesystem.js";
4
4
  const DEFAULT_IGNORE_DIRS = new Set([
5
5
  "interf",
6
6
  ".interf",
@@ -3,7 +3,6 @@ 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";
5
5
  export * as runtime from "./runtime.js";
6
- export * as runtimeAcceptance from "./runtime-acceptance.js";
7
6
  export * as runtimeContracts from "./runtime-contracts.js";
8
7
  export * as runtimeInventory from "./runtime-inventory.js";
9
8
  export * as runtimePaths from "./runtime-paths.js";
@@ -3,7 +3,6 @@ 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";
5
5
  export * as runtime from "./runtime.js";
6
- export * as runtimeAcceptance from "./runtime-acceptance.js";
7
6
  export * as runtimeContracts from "./runtime-contracts.js";
8
7
  export * as runtimeInventory from "./runtime-inventory.js";
9
8
  export * as runtimePaths from "./runtime-paths.js";
@@ -1,15 +1,15 @@
1
1
  import { z } from "zod";
2
- import { ReadinessCheckSchema, ReadinessGateSchema, ReadinessStateSchema, ReadinessStatusSchema, ReadinessTargetResultSchema, RuntimeContractTypeSchema, RuntimeExecutorInfoSchema, RuntimeStageSchema, RuntimeTargetTypeSchema, SourceFilesSchema, SourceFileSchema, SourceKindSchema, SourceSchema, SourceSnapshotSchema, StageInputSchema, StageInputsSchema, TestCaseExpectSchema, TestTargetTypeSchema, MethodIdSchema } from "../../contracts/lib/schema.js";
3
- export { ReadinessCheckSchema, ReadinessGateSchema, ReadinessStateSchema, ReadinessStatusSchema, ReadinessTargetResultSchema, RuntimeContractTypeSchema, RuntimeExecutorInfoSchema, RuntimeStageSchema, RuntimeTargetTypeSchema, SourceFilesSchema, SourceFileSchema, SourceKindSchema, SourceSchema, SourceSnapshotSchema, StageInputSchema, StageInputsSchema, SourceCompiledMaxAttemptsSchema, SourceCompiledMaxLoopsSchema, TestCaseExpectSchema, TestTargetTypeSchema, InterfIdPattern, MethodIdSchema, } from "../../contracts/lib/schema.js";
2
+ import { GateStatusSchema, ReadinessGateSchema, ReadinessSchema, ReadinessStatusSchema, VerifyTargetResultSchema, RuntimeContractTypeSchema, RuntimeExecutorInfoSchema, RuntimeStageSchema, RuntimeTargetTypeSchema, SourceFilesSchema, SourceFileSchema, SourceKindSchema, SourceSchema, SourceSnapshotSchema, StageInputSchema, StageInputsSchema, TestCaseExpectSchema, TestTargetTypeSchema, MethodIdSchema } from "../../../contracts/lib/schema.js";
3
+ export { GateStatusSchema, ReadinessGateSchema, ReadinessSchema, ReadinessStatusSchema, VerifyTargetResultSchema, RuntimeContractTypeSchema, RuntimeExecutorInfoSchema, RuntimeStageSchema, RuntimeTargetTypeSchema, SourceFilesSchema, SourceFileSchema, SourceKindSchema, SourceSchema, SourceSnapshotSchema, StageInputSchema, StageInputsSchema, SourceCompiledMaxAttemptsSchema, SourceCompiledMaxLoopsSchema, TestCaseExpectSchema, TestTargetTypeSchema, InterfIdPattern, MethodIdSchema, } from "../../../contracts/lib/schema.js";
4
4
  export type RuntimeStatus = "idle" | "running" | "compiled" | "stale" | "failed";
5
5
  export type CompiledStage = "idle" | "compiled" | "failed" | string;
6
- export declare const MethodZoneIdSchema: z.ZodString;
7
- export declare const MethodCompiledZoneKindSchema: z.ZodEnum<{
6
+ export declare const MethodArtifactIdSchema: z.ZodString;
7
+ export declare const MethodCompiledArtifactKindSchema: z.ZodEnum<{
8
8
  runtime: "runtime";
9
9
  file: "file";
10
10
  directory: "directory";
11
11
  }>;
12
- export declare const MethodZoneRoleSchema: z.ZodEnum<{
12
+ export declare const MethodArtifactRoleSchema: z.ZodEnum<{
13
13
  runtime: "runtime";
14
14
  output: "output";
15
15
  input: "input";
@@ -32,7 +32,7 @@ export declare const CompiledStageStateSchema: z.ZodObject<{
32
32
  started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
34
  counts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
35
- zone_counts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
35
+ artifact_counts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
36
36
  artifacts: z.ZodOptional<z.ZodArray<z.ZodString>>;
37
37
  summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
38
  run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -51,7 +51,7 @@ export declare const CompiledStateSchema: z.ZodObject<{
51
51
  started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
52
  finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
53
  counts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
54
- zone_counts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
54
+ artifact_counts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
55
55
  artifacts: z.ZodOptional<z.ZodArray<z.ZodString>>;
56
56
  summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
57
  run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -92,8 +92,8 @@ export declare const CompiledHealthSchema: z.ZodObject<{
92
92
  target_name: z.ZodString;
93
93
  status: z.ZodEnum<{
94
94
  compiled: "compiled";
95
- stale: "stale";
96
95
  failed: "failed";
96
+ stale: "stale";
97
97
  running: "running";
98
98
  idle: "idle";
99
99
  }>;
@@ -144,7 +144,7 @@ export declare const MethodPurposeSchema: z.ZodObject<{
144
144
  label: z.ZodString;
145
145
  task_hint: z.ZodString;
146
146
  }, z.core.$strict>;
147
- export declare const MethodZoneSchema: z.ZodObject<{
147
+ export declare const MethodCompiledArtifactProjectionSchema: z.ZodObject<{
148
148
  id: z.ZodString;
149
149
  role: z.ZodEnum<{
150
150
  runtime: "runtime";
@@ -162,7 +162,7 @@ export declare const MethodZoneSchema: z.ZodObject<{
162
162
  owned_by: z.ZodArray<z.ZodString>;
163
163
  description: z.ZodString;
164
164
  }, z.core.$strip>;
165
- export declare const MethodCompiledZoneSchema: z.ZodObject<{
165
+ export declare const MethodCompiledArtifactSchema: z.ZodObject<{
166
166
  id: z.ZodString;
167
167
  role: z.ZodEnum<{
168
168
  runtime: "runtime";
@@ -185,58 +185,85 @@ export declare const MethodSchemaSchema: z.ZodObject<{
185
185
  version: z.ZodLiteral<1>;
186
186
  target_type: z.ZodLiteral<"compiled">;
187
187
  label: z.ZodString;
188
- zones: z.ZodArray<z.ZodObject<{
188
+ artifacts: z.ZodArray<z.ZodObject<{
189
189
  id: z.ZodString;
190
- role: z.ZodEnum<{
191
- runtime: "runtime";
192
- output: "output";
193
- input: "input";
194
- working: "working";
195
- }>;
196
- path: z.ZodString;
197
- kind: z.ZodEnum<{
198
- runtime: "runtime";
199
- file: "file";
200
- directory: "directory";
201
- }>;
202
- required: z.ZodBoolean;
203
- owned_by: z.ZodArray<z.ZodString>;
204
190
  description: z.ZodString;
205
- }, z.core.$strip>>;
206
- }, z.core.$strip>;
191
+ shape: z.ZodDiscriminatedUnion<[z.ZodObject<{
192
+ kind: z.ZodLiteral<"path">;
193
+ path: z.ZodString;
194
+ artifact_kind: z.ZodEnum<{
195
+ file: "file";
196
+ directory: "directory";
197
+ }>;
198
+ }, z.core.$strict>], "kind">;
199
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
200
+ id: z.ZodString;
201
+ kind: z.ZodEnum<{
202
+ file_exists: "file_exists";
203
+ min_file_count: "min_file_count";
204
+ min_file_count_matches_source: "min_file_count_matches_source";
205
+ frontmatter_valid: "frontmatter_valid";
206
+ frontmatter_required_keys: "frontmatter_required_keys";
207
+ wikilinks_valid: "wikilinks_valid";
208
+ must_not_contain: "must_not_contain";
209
+ must_contain: "must_contain";
210
+ qa_match: "qa_match";
211
+ }>;
212
+ description: z.ZodOptional<z.ZodString>;
213
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
214
+ required: z.ZodDefault<z.ZodBoolean>;
215
+ }, z.core.$strict>>>;
216
+ built_by_stages: z.ZodDefault<z.ZodArray<z.ZodString>>;
217
+ }, z.core.$strict>>;
218
+ }, z.core.$strict>;
207
219
  export declare const MethodCompiledSchemaSchema: z.ZodObject<{
208
220
  kind: z.ZodLiteral<"method-schema">;
209
221
  version: z.ZodLiteral<1>;
210
222
  target_type: z.ZodLiteral<"compiled">;
211
223
  label: z.ZodString;
212
- zones: z.ZodArray<z.ZodObject<{
224
+ artifacts: z.ZodArray<z.ZodObject<{
213
225
  id: z.ZodString;
214
- role: z.ZodEnum<{
215
- runtime: "runtime";
216
- output: "output";
217
- input: "input";
218
- working: "working";
219
- }>;
220
- path: z.ZodString;
221
- kind: z.ZodEnum<{
222
- runtime: "runtime";
223
- file: "file";
224
- directory: "directory";
225
- }>;
226
- required: z.ZodBoolean;
227
- owned_by: z.ZodArray<z.ZodString>;
228
226
  description: z.ZodString;
229
- }, z.core.$strip>>;
230
- }, z.core.$strip>;
227
+ shape: z.ZodDiscriminatedUnion<[z.ZodObject<{
228
+ kind: z.ZodLiteral<"path">;
229
+ path: z.ZodString;
230
+ artifact_kind: z.ZodEnum<{
231
+ file: "file";
232
+ directory: "directory";
233
+ }>;
234
+ }, z.core.$strict>], "kind">;
235
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
236
+ id: z.ZodString;
237
+ kind: z.ZodEnum<{
238
+ file_exists: "file_exists";
239
+ min_file_count: "min_file_count";
240
+ min_file_count_matches_source: "min_file_count_matches_source";
241
+ frontmatter_valid: "frontmatter_valid";
242
+ frontmatter_required_keys: "frontmatter_required_keys";
243
+ wikilinks_valid: "wikilinks_valid";
244
+ must_not_contain: "must_not_contain";
245
+ must_contain: "must_contain";
246
+ qa_match: "qa_match";
247
+ }>;
248
+ description: z.ZodOptional<z.ZodString>;
249
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
250
+ required: z.ZodDefault<z.ZodBoolean>;
251
+ }, z.core.$strict>>>;
252
+ built_by_stages: z.ZodDefault<z.ZodArray<z.ZodString>>;
253
+ }, z.core.$strict>>;
254
+ }, z.core.$strict>;
231
255
  export declare const MethodCompilerApiSchema: z.ZodObject<{
232
256
  kind: z.ZodLiteral<"compiled">;
233
257
  version: z.ZodLiteral<1>;
234
258
  }, z.core.$strip>;
235
259
  export type MethodCompilerApi = z.infer<typeof MethodCompilerApiSchema>;
236
- export declare const MethodStageZoneAccessSchema: z.ZodArray<z.ZodString>;
237
- export declare const ExecutionShellZoneMountSchema: z.ZodObject<{
238
- zone_id: z.ZodString;
239
- compiled_path: z.ZodString;
260
+ export declare const MethodStageArtifactReadAccessSchema: z.ZodArray<z.ZodString>;
261
+ export declare const MethodStageArtifactWriteAccessSchema: z.ZodArray<z.ZodString>;
262
+ export type MethodStageArtifactReadAccess = z.infer<typeof MethodStageArtifactReadAccessSchema>;
263
+ export type MethodStageArtifactWriteAccess = z.infer<typeof MethodStageArtifactWriteAccessSchema>;
264
+ export declare const ExecutionShellArtifactMountSchema: z.ZodObject<{
265
+ artifact_id: z.ZodString;
266
+ artifact_path: z.ZodString;
240
267
  shell_root_path: z.ZodString;
241
268
  input_mount_path: z.ZodNullable<z.ZodString>;
242
269
  output_mount_path: z.ZodNullable<z.ZodString>;
@@ -247,15 +274,15 @@ export declare const ExecutionShellPathsSchema: z.ZodObject<{
247
274
  method: z.ZodString;
248
275
  stage: z.ZodString;
249
276
  reads: z.ZodArray<z.ZodObject<{
250
- zone_id: z.ZodString;
251
- compiled_path: z.ZodString;
277
+ artifact_id: z.ZodString;
278
+ artifact_path: z.ZodString;
252
279
  shell_root_path: z.ZodString;
253
280
  input_mount_path: z.ZodNullable<z.ZodString>;
254
281
  output_mount_path: z.ZodNullable<z.ZodString>;
255
282
  }, z.core.$strip>>;
256
283
  writes: z.ZodArray<z.ZodObject<{
257
- zone_id: z.ZodString;
258
- compiled_path: z.ZodString;
284
+ artifact_id: z.ZodString;
285
+ artifact_path: z.ZodString;
259
286
  shell_root_path: z.ZodString;
260
287
  input_mount_path: z.ZodNullable<z.ZodString>;
261
288
  output_mount_path: z.ZodNullable<z.ZodString>;
@@ -264,8 +291,8 @@ export declare const ExecutionShellPathsSchema: z.ZodObject<{
264
291
  export declare const RuntimeStageInstructionsSchema: z.ZodObject<{
265
292
  stage_skill_dir: z.ZodString;
266
293
  effective_mode: z.ZodEnum<{
267
- override: "override";
268
294
  builtin: "builtin";
295
+ override: "override";
269
296
  extend: "extend";
270
297
  }>;
271
298
  local_mode: z.ZodNullable<z.ZodEnum<{
@@ -275,20 +302,6 @@ export declare const RuntimeStageInstructionsSchema: z.ZodObject<{
275
302
  local_docs: z.ZodArray<z.ZodString>;
276
303
  mode_sources: z.ZodArray<z.ZodString>;
277
304
  }, z.core.$strict>;
278
- export declare const RuntimeStageAcceptanceSchema: z.ZodObject<{
279
- artifacts_exist: z.ZodOptional<z.ZodArray<z.ZodString>>;
280
- stage_truthy: z.ZodOptional<z.ZodArray<z.ZodString>>;
281
- stage_equals_counts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
282
- stage_at_least: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
283
- stage_at_least_counts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
284
- zone_counts_at_least: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
285
- zone_counts_at_least_counts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
286
- markdown_frontmatter_valid_zones: z.ZodOptional<z.ZodArray<z.ZodString>>;
287
- frontmatter_required_keys_in_zones: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
288
- markdown_abstract_valid_zones: z.ZodOptional<z.ZodArray<z.ZodString>>;
289
- wikilinks_valid_in_zones: z.ZodOptional<z.ZodArray<z.ZodString>>;
290
- artifacts_must_not_contain: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
291
- }, z.core.$strict>;
292
305
  export declare const RuntimeStageContractSchema: z.ZodObject<{
293
306
  kind: z.ZodLiteral<"interf-stage-contract">;
294
307
  version: z.ZodLiteral<1>;
@@ -324,8 +337,8 @@ export declare const RuntimeStageContractSchema: z.ZodObject<{
324
337
  instructions: z.ZodObject<{
325
338
  stage_skill_dir: z.ZodString;
326
339
  effective_mode: z.ZodEnum<{
327
- override: "override";
328
340
  builtin: "builtin";
341
+ override: "override";
329
342
  extend: "extend";
330
343
  }>;
331
344
  local_mode: z.ZodNullable<z.ZodEnum<{
@@ -336,23 +349,30 @@ export declare const RuntimeStageContractSchema: z.ZodObject<{
336
349
  mode_sources: z.ZodArray<z.ZodString>;
337
350
  }, z.core.$strict>;
338
351
  counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
339
- acceptance: z.ZodOptional<z.ZodObject<{
340
- artifacts_exist: z.ZodOptional<z.ZodArray<z.ZodString>>;
341
- stage_truthy: z.ZodOptional<z.ZodArray<z.ZodString>>;
342
- stage_equals_counts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
343
- stage_at_least: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
344
- stage_at_least_counts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
345
- zone_counts_at_least: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
346
- zone_counts_at_least_counts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
347
- markdown_frontmatter_valid_zones: z.ZodOptional<z.ZodArray<z.ZodString>>;
348
- frontmatter_required_keys_in_zones: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
349
- markdown_abstract_valid_zones: z.ZodOptional<z.ZodArray<z.ZodString>>;
350
- wikilinks_valid_in_zones: z.ZodOptional<z.ZodArray<z.ZodString>>;
351
- artifacts_must_not_contain: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
352
- }, z.core.$strict>>;
353
352
  artifacts: z.ZodObject<{
354
353
  reads: z.ZodArray<z.ZodString>;
355
354
  writes: z.ZodArray<z.ZodString>;
355
+ write_contracts: z.ZodDefault<z.ZodArray<z.ZodObject<{
356
+ artifact_id: z.ZodString;
357
+ path: z.ZodString;
358
+ checks: z.ZodArray<z.ZodObject<{
359
+ id: z.ZodString;
360
+ kind: z.ZodEnum<{
361
+ file_exists: "file_exists";
362
+ min_file_count: "min_file_count";
363
+ min_file_count_matches_source: "min_file_count_matches_source";
364
+ frontmatter_valid: "frontmatter_valid";
365
+ frontmatter_required_keys: "frontmatter_required_keys";
366
+ wikilinks_valid: "wikilinks_valid";
367
+ must_not_contain: "must_not_contain";
368
+ must_contain: "must_contain";
369
+ qa_match: "qa_match";
370
+ }>;
371
+ description: z.ZodOptional<z.ZodString>;
372
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
373
+ required: z.ZodDefault<z.ZodBoolean>;
374
+ }, z.core.$strict>>;
375
+ }, z.core.$strict>>>;
356
376
  }, z.core.$strip>;
357
377
  policies: z.ZodObject<{
358
378
  execution_mode: z.ZodLiteral<"deterministic">;
@@ -416,9 +436,9 @@ export declare const RuntimeRunSchema: z.ZodObject<{
416
436
  error: z.ZodNullable<z.ZodString>;
417
437
  }, z.core.$strip>;
418
438
  export declare const CompiledInventoryEntrySchema: z.ZodObject<{
419
- input_zone: z.ZodOptional<z.ZodString>;
439
+ input_artifact: z.ZodOptional<z.ZodString>;
420
440
  input_path: z.ZodOptional<z.ZodString>;
421
- output_zone: z.ZodString;
441
+ output_artifact: z.ZodString;
422
442
  output_path: z.ZodString;
423
443
  state: z.ZodOptional<z.ZodString>;
424
444
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -428,9 +448,9 @@ export declare const CompiledInventorySchema: z.ZodObject<{
428
448
  version: z.ZodOptional<z.ZodNumber>;
429
449
  stage: z.ZodOptional<z.ZodString>;
430
450
  entries: z.ZodArray<z.ZodObject<{
431
- input_zone: z.ZodOptional<z.ZodString>;
451
+ input_artifact: z.ZodOptional<z.ZodString>;
432
452
  input_path: z.ZodOptional<z.ZodString>;
433
- output_zone: z.ZodString;
453
+ output_artifact: z.ZodString;
434
454
  output_path: z.ZodString;
435
455
  state: z.ZodOptional<z.ZodString>;
436
456
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -616,9 +636,9 @@ export type MethodImprovementLoopRecord = z.infer<typeof MethodImprovementLoopRe
616
636
  export type MethodImprovementRunLedger = z.infer<typeof MethodImprovementRunLedgerSchema>;
617
637
  export type ReadinessStatus = z.infer<typeof ReadinessStatusSchema>;
618
638
  export type ReadinessGate = z.infer<typeof ReadinessGateSchema>;
619
- export type ReadinessCheck = z.infer<typeof ReadinessCheckSchema>;
620
- export type ReadinessTargetResult = z.infer<typeof ReadinessTargetResultSchema>;
621
- export type ReadinessState = z.infer<typeof ReadinessStateSchema>;
639
+ export type GateStatus = z.infer<typeof GateStatusSchema>;
640
+ export type VerifyTargetResult = z.infer<typeof VerifyTargetResultSchema>;
641
+ export type Readiness = z.infer<typeof ReadinessSchema>;
622
642
  export type CompiledState = z.infer<typeof CompiledStateSchema>;
623
643
  export type ViewSection = z.infer<typeof ViewSectionSchema>;
624
644
  export type ViewCard = z.infer<typeof ViewCardSchema>;
@@ -631,11 +651,11 @@ export type SourceFiles = z.infer<typeof SourceFilesSchema>;
631
651
  export type SourceSnapshot = z.infer<typeof SourceSnapshotSchema>;
632
652
  export type StageInput = z.infer<typeof StageInputSchema>;
633
653
  export type StageInputs = z.infer<typeof StageInputsSchema>;
634
- export type MethodCompiledZone = z.infer<typeof MethodCompiledZoneSchema>;
654
+ export type MethodCompiledArtifact = z.infer<typeof MethodCompiledArtifactSchema>;
635
655
  export type MethodCompiledSchema = z.infer<typeof MethodCompiledSchemaSchema>;
636
- export type MethodCompiledZoneKind = z.infer<typeof MethodCompiledZoneKindSchema>;
637
- export type MethodZoneId = z.infer<typeof MethodZoneIdSchema>;
638
- export type ExecutionShellZoneMount = z.infer<typeof ExecutionShellZoneMountSchema>;
656
+ export type MethodCompiledArtifactKind = z.infer<typeof MethodCompiledArtifactKindSchema>;
657
+ export type MethodArtifactId = z.infer<typeof MethodArtifactIdSchema>;
658
+ export type ExecutionShellArtifactMount = z.infer<typeof ExecutionShellArtifactMountSchema>;
639
659
  export type ExecutionShellPaths = z.infer<typeof ExecutionShellPathsSchema>;
640
660
  export type RuntimeExecutorInfo = z.infer<typeof RuntimeExecutorInfoSchema>;
641
661
  export type RuntimeTargetType = z.infer<typeof RuntimeTargetTypeSchema>;
@@ -646,7 +666,6 @@ export type MethodId = z.infer<typeof MethodIdSchema>;
646
666
  export type LocalInstructionMode = "extend" | "override";
647
667
  export type RuntimeInstructionMode = "builtin" | LocalInstructionMode;
648
668
  export type RuntimeStageInstructions = z.infer<typeof RuntimeStageInstructionsSchema>;
649
- export type RuntimeStageAcceptance = z.infer<typeof RuntimeStageAcceptanceSchema>;
650
669
  export type RuntimeStageContract = z.infer<typeof RuntimeStageContractSchema>;
651
670
  export type RuntimeRun = z.infer<typeof RuntimeRunSchema>;
652
671
  export type CompiledInventoryEntry = z.infer<typeof CompiledInventoryEntrySchema>;