@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
@@ -3,6 +3,12 @@ export declare const InterfIdPattern: RegExp;
3
3
  export declare const PreparationNamePattern: RegExp;
4
4
  export declare const PreparationNameSchema: z.ZodString;
5
5
  export declare const MethodIdSchema: z.ZodString;
6
+ /**
7
+ * Method-declared artifact identifier. Same shape as `MethodIdSchema`
8
+ * but conceptually distinct — it identifies a produced thing inside
9
+ * one Method, while `MethodIdSchema` identifies the Method itself.
10
+ */
11
+ export declare const ArtifactIdSchema: z.ZodString;
6
12
  export declare const RuntimeStageSchema: z.ZodString;
7
13
  export declare const RuntimeContractTypeSchema: z.ZodString;
8
14
  export declare const RuntimeTargetTypeSchema: z.ZodEnum<{
@@ -12,13 +18,39 @@ export declare const TestTargetTypeSchema: z.ZodEnum<{
12
18
  "source-files": "source-files";
13
19
  compiled: "compiled";
14
20
  }>;
21
+ export declare function isInterfRelativePath(value: string): boolean;
22
+ /**
23
+ * A locator identifies where a resource lives so the API and UI can
24
+ * route the right action without hard-coding deployment shape.
25
+ *
26
+ * local-path → engine has filesystem access; UI opens via OS shell
27
+ * remote-url → signed URL; UI opens in a browser tab
28
+ * api-served → relative API route; UI fetches via the engine
29
+ */
30
+ export declare const LocatorKindSchema: z.ZodEnum<{
31
+ "local-path": "local-path";
32
+ "remote-url": "remote-url";
33
+ "api-served": "api-served";
34
+ }>;
35
+ export declare const LocatorSchema: z.ZodObject<{
36
+ kind: z.ZodEnum<{
37
+ "local-path": "local-path";
38
+ "remote-url": "remote-url";
39
+ "api-served": "api-served";
40
+ }>;
41
+ value: z.ZodString;
42
+ }, z.core.$strict>;
43
+ export type LocatorKind = z.infer<typeof LocatorKindSchema>;
44
+ export type Locator = z.infer<typeof LocatorSchema>;
15
45
  export declare const SourceKindSchema: z.ZodEnum<{
16
46
  "local-folder": "local-folder";
47
+ "remote-folder": "remote-folder";
17
48
  }>;
18
49
  export declare const SourceSchema: z.ZodObject<{
19
50
  id: z.ZodString;
20
51
  kind: z.ZodEnum<{
21
52
  "local-folder": "local-folder";
53
+ "remote-folder": "remote-folder";
22
54
  }>;
23
55
  locator: z.ZodString;
24
56
  }, z.core.$strict>;
@@ -35,6 +67,7 @@ export declare const SourceFilesSchema: z.ZodObject<{
35
67
  id: z.ZodString;
36
68
  kind: z.ZodEnum<{
37
69
  "local-folder": "local-folder";
70
+ "remote-folder": "remote-folder";
38
71
  }>;
39
72
  locator: z.ZodString;
40
73
  }, z.core.$strict>;
@@ -55,6 +88,7 @@ export declare const SourceSnapshotSchema: z.ZodObject<{
55
88
  id: z.ZodString;
56
89
  kind: z.ZodEnum<{
57
90
  "local-folder": "local-folder";
91
+ "remote-folder": "remote-folder";
58
92
  }>;
59
93
  locator: z.ZodString;
60
94
  }, z.core.$strict>;
@@ -87,54 +121,266 @@ export declare const StageInputsSchema: z.ZodObject<{
87
121
  }, z.core.$strict>;
88
122
  export declare const SourceCompiledMaxAttemptsSchema: z.ZodNumber;
89
123
  export declare const SourceCompiledMaxLoopsSchema: z.ZodNumber;
124
+ /**
125
+ * Canonical check kinds the engine knows how to evaluate.
126
+ *
127
+ * Adding a new kind requires an engine release (the evaluator must
128
+ * implement it). Methods and user checks pick from this list; they
129
+ * cannot invent custom kinds.
130
+ *
131
+ * file_exists — file is present and non-empty
132
+ * min_file_count — directory has ≥ N files (params: { min: number })
133
+ * min_file_count_matches_source — directory has ≥ source_total files (the "all files analyzed" check)
134
+ * frontmatter_valid — every markdown file has parseable YAML frontmatter
135
+ * frontmatter_required_keys — every markdown file has these frontmatter keys (params: { keys: string[] })
136
+ * wikilinks_valid — every wikilink resolves
137
+ * must_not_contain — file/directory does not contain forbidden phrases (params: { phrases: string[] })
138
+ * must_contain — file/directory contains required phrases (params: { phrases: string[] })
139
+ * qa_match — user-defined Q/A: agent answer matches expected (params: { question, expected, strictness })
140
+ */
141
+ export declare const CHECK_KINDS: readonly ["file_exists", "min_file_count", "min_file_count_matches_source", "frontmatter_valid", "frontmatter_required_keys", "wikilinks_valid", "must_not_contain", "must_contain", "qa_match"];
142
+ export declare const CheckKindSchema: z.ZodEnum<{
143
+ file_exists: "file_exists";
144
+ min_file_count: "min_file_count";
145
+ min_file_count_matches_source: "min_file_count_matches_source";
146
+ frontmatter_valid: "frontmatter_valid";
147
+ frontmatter_required_keys: "frontmatter_required_keys";
148
+ wikilinks_valid: "wikilinks_valid";
149
+ must_not_contain: "must_not_contain";
150
+ must_contain: "must_contain";
151
+ qa_match: "qa_match";
152
+ }>;
153
+ export type CheckKind = z.infer<typeof CheckKindSchema>;
154
+ /**
155
+ * One check declaration. Reusable across stage/artifact/user scopes.
156
+ *
157
+ * `id` is local to the declaring container (a stage's checks have ids
158
+ * scoped to the stage; an artifact's checks have ids scoped to the
159
+ * artifact). `kind` selects the canonical evaluator. `params` carries
160
+ * rule-specific config (typed at the engine evaluator).
161
+ *
162
+ * `required: true` (default) → a failed check fails the parent
163
+ * (stage/artifact/preparation). `required: false` → soft check, fails
164
+ * warn but don't block the `ready` verdict.
165
+ */
166
+ export declare const CheckSchema: z.ZodObject<{
167
+ id: z.ZodString;
168
+ kind: z.ZodEnum<{
169
+ file_exists: "file_exists";
170
+ min_file_count: "min_file_count";
171
+ min_file_count_matches_source: "min_file_count_matches_source";
172
+ frontmatter_valid: "frontmatter_valid";
173
+ frontmatter_required_keys: "frontmatter_required_keys";
174
+ wikilinks_valid: "wikilinks_valid";
175
+ must_not_contain: "must_not_contain";
176
+ must_contain: "must_contain";
177
+ qa_match: "qa_match";
178
+ }>;
179
+ description: z.ZodOptional<z.ZodString>;
180
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
181
+ required: z.ZodDefault<z.ZodBoolean>;
182
+ }, z.core.$strict>;
183
+ export type Check = z.infer<typeof CheckSchema>;
184
+ /**
185
+ * Evidence a check ran. `passed` is the binary outcome; `summary` is a
186
+ * short one-line label for the UI; `details` carries rule-specific
187
+ * structured data (e.g., file count, missing keys, broken link list).
188
+ */
189
+ export declare const ProofSchema: z.ZodObject<{
190
+ check_id: z.ZodString;
191
+ kind: z.ZodEnum<{
192
+ file_exists: "file_exists";
193
+ min_file_count: "min_file_count";
194
+ min_file_count_matches_source: "min_file_count_matches_source";
195
+ frontmatter_valid: "frontmatter_valid";
196
+ frontmatter_required_keys: "frontmatter_required_keys";
197
+ wikilinks_valid: "wikilinks_valid";
198
+ must_not_contain: "must_not_contain";
199
+ must_contain: "must_contain";
200
+ qa_match: "qa_match";
201
+ }>;
202
+ passed: z.ZodBoolean;
203
+ required: z.ZodBoolean;
204
+ summary: z.ZodString;
205
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
206
+ evaluated_at: z.ZodString;
207
+ }, z.core.$strict>;
208
+ export type Proof = z.infer<typeof ProofSchema>;
209
+ /**
210
+ * Per-thing readiness verdict. Used for an artifact, a stage, or a
211
+ * preparation. Aggregate verdict over its required checks.
212
+ */
213
+ export declare const ReadyVerdictSchema: z.ZodEnum<{
214
+ ready: "ready";
215
+ not_ready: "not_ready";
216
+ failed: "failed";
217
+ skipped: "skipped";
218
+ }>;
219
+ export type ReadyVerdict = z.infer<typeof ReadyVerdictSchema>;
220
+ /**
221
+ * Standard frontmatter key list used by Methods that emit markdown
222
+ * summaries of source files. Method authors that adopt this evidence
223
+ * convention reference this constant in `frontmatter_required_keys`
224
+ * check params rather than re-typing the list.
225
+ */
226
+ export declare const STANDARD_EVIDENCE_FRONTMATTER_KEYS: readonly ["source", "source_kind", "evidence_tier", "truth_mode", "state"];
227
+ export type StandardEvidenceFrontmatterKey = typeof STANDARD_EVIDENCE_FRONTMATTER_KEYS[number];
228
+ /**
229
+ * Where an Artifact materializes. Discriminated union so future kinds
230
+ * (literal value, remote handle, confirmation-only) slot in without a
231
+ * schema break. `path` is always relative to the portable-context root,
232
+ * and `artifact_kind` tells consumers whether the target materializes
233
+ * as a file or directory.
234
+ */
235
+ export declare const ArtifactPathShapeSchema: z.ZodObject<{
236
+ kind: z.ZodLiteral<"path">;
237
+ path: z.ZodString;
238
+ artifact_kind: z.ZodEnum<{
239
+ file: "file";
240
+ directory: "directory";
241
+ }>;
242
+ }, z.core.$strict>;
243
+ export declare const ArtifactShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
244
+ kind: z.ZodLiteral<"path">;
245
+ path: z.ZodString;
246
+ artifact_kind: z.ZodEnum<{
247
+ file: "file";
248
+ directory: "directory";
249
+ }>;
250
+ }, z.core.$strict>], "kind">;
251
+ export type ArtifactPathShape = z.infer<typeof ArtifactPathShapeSchema>;
252
+ export type ArtifactShape = z.infer<typeof ArtifactShapeSchema>;
253
+ /**
254
+ * Method-declared Artifact — a produced thing.
255
+ *
256
+ * `checks[]` is the locked vocabulary: an array of `Check` (with
257
+ * `kind` from `CHECK_KINDS`). The runtime evaluates them via the
258
+ * shared check evaluator and produces `Proof[]` on each compile run.
259
+ */
260
+ export declare const ArtifactSchema: z.ZodObject<{
261
+ id: z.ZodString;
262
+ description: z.ZodString;
263
+ shape: z.ZodDiscriminatedUnion<[z.ZodObject<{
264
+ kind: z.ZodLiteral<"path">;
265
+ path: z.ZodString;
266
+ artifact_kind: z.ZodEnum<{
267
+ file: "file";
268
+ directory: "directory";
269
+ }>;
270
+ }, z.core.$strict>], "kind">;
271
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
272
+ id: z.ZodString;
273
+ kind: z.ZodEnum<{
274
+ file_exists: "file_exists";
275
+ min_file_count: "min_file_count";
276
+ min_file_count_matches_source: "min_file_count_matches_source";
277
+ frontmatter_valid: "frontmatter_valid";
278
+ frontmatter_required_keys: "frontmatter_required_keys";
279
+ wikilinks_valid: "wikilinks_valid";
280
+ must_not_contain: "must_not_contain";
281
+ must_contain: "must_contain";
282
+ qa_match: "qa_match";
283
+ }>;
284
+ description: z.ZodOptional<z.ZodString>;
285
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
286
+ required: z.ZodDefault<z.ZodBoolean>;
287
+ }, z.core.$strict>>>;
288
+ built_by_stages: z.ZodDefault<z.ZodArray<z.ZodString>>;
289
+ }, z.core.$strict>;
290
+ export type Artifact = z.infer<typeof ArtifactSchema>;
291
+ /**
292
+ * Per-Artifact runtime status. Lives on compile-run resources and on
293
+ * preparation resources. `proofs[]` carries the structured evidence
294
+ * emitted by the shared check evaluator.
295
+ */
296
+ export declare const ArtifactStatusValueSchema: z.ZodEnum<{
297
+ ready: "ready";
298
+ not_ready: "not_ready";
299
+ failed: "failed";
300
+ skipped: "skipped";
301
+ }>;
302
+ export type ArtifactStatusValue = ReadyVerdict;
303
+ export declare const ArtifactStatusSchema: z.ZodObject<{
304
+ artifact_id: z.ZodString;
305
+ status: z.ZodEnum<{
306
+ ready: "ready";
307
+ not_ready: "not_ready";
308
+ failed: "failed";
309
+ skipped: "skipped";
310
+ }>;
311
+ built_by_stages: z.ZodDefault<z.ZodArray<z.ZodString>>;
312
+ proofs: z.ZodDefault<z.ZodArray<z.ZodObject<{
313
+ check_id: z.ZodString;
314
+ kind: z.ZodEnum<{
315
+ file_exists: "file_exists";
316
+ min_file_count: "min_file_count";
317
+ min_file_count_matches_source: "min_file_count_matches_source";
318
+ frontmatter_valid: "frontmatter_valid";
319
+ frontmatter_required_keys: "frontmatter_required_keys";
320
+ wikilinks_valid: "wikilinks_valid";
321
+ must_not_contain: "must_not_contain";
322
+ must_contain: "must_contain";
323
+ qa_match: "qa_match";
324
+ }>;
325
+ passed: z.ZodBoolean;
326
+ required: z.ZodBoolean;
327
+ summary: z.ZodString;
328
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
329
+ evaluated_at: z.ZodString;
330
+ }, z.core.$strict>>>;
331
+ summary: z.ZodOptional<z.ZodString>;
332
+ }, z.core.$strict>;
333
+ export type ArtifactStatus = z.infer<typeof ArtifactStatusSchema>;
90
334
  export declare const ReadinessStatusSchema: z.ZodEnum<{
335
+ ready: "ready";
336
+ failed: "failed";
91
337
  "not-configured": "not-configured";
92
338
  "not-built": "not-built";
93
339
  building: "building";
94
340
  built: "built";
95
341
  checking: "checking";
96
- ready: "ready";
97
342
  "not-ready": "not-ready";
98
343
  stale: "stale";
99
- failed: "failed";
100
344
  }>;
101
345
  export declare const ReadinessGateSchema: z.ZodEnum<{
102
346
  "portable-context": "portable-context";
103
347
  "preparation-config": "preparation-config";
104
348
  "compile-run": "compile-run";
105
349
  "readiness-checks": "readiness-checks";
106
- "source-baseline": "source-baseline";
107
- "portable-context-check": "portable-context-check";
108
350
  "checks-current": "checks-current";
109
351
  }>;
110
- export declare const ReadinessCheckSchema: z.ZodObject<{
352
+ /**
353
+ * Per-gate status — one row in the readiness summary. A gate is a
354
+ * high-level layer (is config valid? is portable context built? did
355
+ * latest compile succeed?). Gate failures are aggregated alongside
356
+ * artifact-check failures into the overall `Readiness` verdict.
357
+ */
358
+ export declare const GateStatusSchema: z.ZodObject<{
111
359
  gate: z.ZodEnum<{
112
360
  "portable-context": "portable-context";
113
361
  "preparation-config": "preparation-config";
114
362
  "compile-run": "compile-run";
115
363
  "readiness-checks": "readiness-checks";
116
- "source-baseline": "source-baseline";
117
- "portable-context-check": "portable-context-check";
118
364
  "checks-current": "checks-current";
119
365
  }>;
120
366
  ok: z.ZodBoolean;
121
367
  status: z.ZodOptional<z.ZodEnum<{
368
+ ready: "ready";
369
+ failed: "failed";
122
370
  "not-configured": "not-configured";
123
371
  "not-built": "not-built";
124
372
  building: "building";
125
373
  built: "built";
126
374
  checking: "checking";
127
- ready: "ready";
128
375
  "not-ready": "not-ready";
129
376
  stale: "stale";
130
- failed: "failed";
131
377
  }>>;
132
378
  summary: z.ZodString;
133
379
  detail: z.ZodOptional<z.ZodString>;
134
380
  run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
381
  artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
136
382
  }, z.core.$strict>;
137
- export declare const ReadinessTargetResultSchema: z.ZodObject<{
383
+ export declare const VerifyTargetResultSchema: z.ZodObject<{
138
384
  passed: z.ZodNumber;
139
385
  total: z.ZodNumber;
140
386
  pass_rate: z.ZodNullable<z.ZodNumber>;
@@ -143,21 +389,28 @@ export declare const ReadinessTargetResultSchema: z.ZodObject<{
143
389
  run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
144
390
  run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
145
391
  }, z.core.$strict>;
146
- export declare const ReadinessStateSchema: z.ZodObject<{
392
+ /**
393
+ * Preparation-level readiness verdict.
394
+ *
395
+ * Field names retain the preparation-readiness wire shape
396
+ * (`latest_test_run_id`, `check_results`, `checks`). The exported type
397
+ * name is `Readiness`.
398
+ */
399
+ export declare const ReadinessSchema: z.ZodObject<{
147
400
  kind: z.ZodLiteral<"interf-readiness-state">;
148
401
  version: z.ZodLiteral<1>;
149
402
  generated_at: z.ZodString;
150
403
  preparation: z.ZodString;
151
404
  status: z.ZodEnum<{
405
+ ready: "ready";
406
+ failed: "failed";
152
407
  "not-configured": "not-configured";
153
408
  "not-built": "not-built";
154
409
  building: "building";
155
410
  built: "built";
156
411
  checking: "checking";
157
- ready: "ready";
158
412
  "not-ready": "not-ready";
159
413
  stale: "stale";
160
- failed: "failed";
161
414
  }>;
162
415
  ready: z.ZodBoolean;
163
416
  summary: z.ZodString;
@@ -170,21 +423,19 @@ export declare const ReadinessStateSchema: z.ZodObject<{
170
423
  "preparation-config": "preparation-config";
171
424
  "compile-run": "compile-run";
172
425
  "readiness-checks": "readiness-checks";
173
- "source-baseline": "source-baseline";
174
- "portable-context-check": "portable-context-check";
175
426
  "checks-current": "checks-current";
176
427
  }>;
177
428
  ok: z.ZodBoolean;
178
429
  status: z.ZodOptional<z.ZodEnum<{
430
+ ready: "ready";
431
+ failed: "failed";
179
432
  "not-configured": "not-configured";
180
433
  "not-built": "not-built";
181
434
  building: "building";
182
435
  built: "built";
183
436
  checking: "checking";
184
- ready: "ready";
185
437
  "not-ready": "not-ready";
186
438
  stale: "stale";
187
- failed: "failed";
188
439
  }>>;
189
440
  summary: z.ZodString;
190
441
  detail: z.ZodOptional<z.ZodString>;
@@ -219,21 +470,19 @@ export declare const ReadinessStateSchema: z.ZodObject<{
219
470
  "preparation-config": "preparation-config";
220
471
  "compile-run": "compile-run";
221
472
  "readiness-checks": "readiness-checks";
222
- "source-baseline": "source-baseline";
223
- "portable-context-check": "portable-context-check";
224
473
  "checks-current": "checks-current";
225
474
  }>;
226
475
  ok: z.ZodBoolean;
227
476
  status: z.ZodOptional<z.ZodEnum<{
477
+ ready: "ready";
478
+ failed: "failed";
228
479
  "not-configured": "not-configured";
229
480
  "not-built": "not-built";
230
481
  building: "building";
231
482
  built: "built";
232
483
  checking: "checking";
233
- ready: "ready";
234
484
  "not-ready": "not-ready";
235
485
  stale: "stale";
236
- failed: "failed";
237
486
  }>>;
238
487
  summary: z.ZodString;
239
488
  detail: z.ZodOptional<z.ZodString>;
@@ -241,6 +490,13 @@ export declare const ReadinessStateSchema: z.ZodObject<{
241
490
  artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
491
  }, z.core.$strict>>>;
243
492
  }, z.core.$strict>;
493
+ export declare const TestCaseExpectSchema: z.ZodObject<{
494
+ must_include: z.ZodOptional<z.ZodArray<z.ZodString>>;
495
+ must_include_one_of: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
496
+ must_not_include: z.ZodOptional<z.ZodArray<z.ZodString>>;
497
+ min_words: z.ZodOptional<z.ZodNumber>;
498
+ max_words: z.ZodOptional<z.ZodNumber>;
499
+ }, z.core.$strip>;
244
500
  export declare const RuntimeExecutorInfoSchema: z.ZodObject<{
245
501
  kind: z.ZodEnum<{
246
502
  "local-agent": "local-agent";
@@ -255,15 +511,52 @@ export declare const RuntimeExecutorInfoSchema: z.ZodObject<{
255
511
  profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
256
512
  timeout_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
257
513
  }, z.core.$strip>;
258
- export declare const TestCaseExpectSchema: z.ZodObject<{
259
- must_include: z.ZodOptional<z.ZodArray<z.ZodString>>;
260
- must_include_one_of: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
261
- must_not_include: z.ZodOptional<z.ZodArray<z.ZodString>>;
262
- min_words: z.ZodOptional<z.ZodNumber>;
263
- max_words: z.ZodOptional<z.ZodNumber>;
264
- }, z.core.$strip>;
514
+ /**
515
+ * The 5 canonical roles a Method stage can declare. Methods MAY declare
516
+ * custom role names; the engine treats any unknown role as `general`.
517
+ */
518
+ export declare const CANONICAL_ROLES: readonly ["extractor", "summarizer", "structurer", "verifier", "general"];
519
+ export type CanonicalRole = typeof CANONICAL_ROLES[number];
520
+ /**
521
+ * Open-ended role identifier. Methods invent role names freely; the
522
+ * role-router maps unknown names to `general` at run time.
523
+ */
524
+ export declare const RoleSchema: z.ZodString;
525
+ /**
526
+ * One agent in the registry. `available` is a runtime-only flag — true
527
+ * if the command's first token resolves on PATH. Stripped before
528
+ * persistence.
529
+ */
530
+ export declare const AgentRecordSchema: z.ZodObject<{
531
+ name: z.ZodString;
532
+ display_name: z.ZodString;
533
+ command: z.ZodString;
534
+ source: z.ZodEnum<{
535
+ builtin: "builtin";
536
+ user: "user";
537
+ }>;
538
+ available: z.ZodOptional<z.ZodBoolean>;
539
+ }, z.core.$strict>;
540
+ export type AgentRecord = z.infer<typeof AgentRecordSchema>;
541
+ export declare const RoleMapSchema: z.ZodRecord<z.ZodString, z.ZodString>;
542
+ export type RoleMap = z.infer<typeof RoleMapSchema>;
543
+ export declare const AgentsRegistrySchema: z.ZodObject<{
544
+ agents: z.ZodDefault<z.ZodArray<z.ZodObject<{
545
+ name: z.ZodString;
546
+ display_name: z.ZodString;
547
+ command: z.ZodString;
548
+ source: z.ZodEnum<{
549
+ builtin: "builtin";
550
+ user: "user";
551
+ }>;
552
+ available: z.ZodOptional<z.ZodBoolean>;
553
+ }, z.core.$strict>>>;
554
+ role_map: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
555
+ }, z.core.$strict>;
556
+ export type AgentsRegistry = z.infer<typeof AgentsRegistrySchema>;
265
557
  export type PreparationName = z.infer<typeof PreparationNameSchema>;
266
558
  export type MethodId = z.infer<typeof MethodIdSchema>;
559
+ export type ArtifactId = z.infer<typeof ArtifactIdSchema>;
267
560
  export type RuntimeStage = z.infer<typeof RuntimeStageSchema>;
268
561
  export type RuntimeContractType = z.infer<typeof RuntimeContractTypeSchema>;
269
562
  export type RuntimeTargetType = z.infer<typeof RuntimeTargetTypeSchema>;
@@ -277,8 +570,8 @@ export type StageInput = z.infer<typeof StageInputSchema>;
277
570
  export type StageInputs = z.infer<typeof StageInputsSchema>;
278
571
  export type ReadinessStatus = z.infer<typeof ReadinessStatusSchema>;
279
572
  export type ReadinessGate = z.infer<typeof ReadinessGateSchema>;
280
- export type ReadinessCheck = z.infer<typeof ReadinessCheckSchema>;
281
- export type ReadinessTargetResult = z.infer<typeof ReadinessTargetResultSchema>;
282
- export type ReadinessState = z.infer<typeof ReadinessStateSchema>;
573
+ export type GateStatus = z.infer<typeof GateStatusSchema>;
574
+ export type VerifyTargetResult = z.infer<typeof VerifyTargetResultSchema>;
575
+ export type Readiness = z.infer<typeof ReadinessSchema>;
283
576
  export type RuntimeExecutorInfo = z.infer<typeof RuntimeExecutorInfoSchema>;
284
577
  export type TestCaseExpect = z.infer<typeof TestCaseExpectSchema>;