@interf/compiler 0.13.0 → 0.16.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 (292) hide show
  1. package/README.md +40 -0
  2. package/agent-skills/interf-actions/SKILL.md +51 -5
  3. package/agent-skills/interf-actions/references/cli.md +82 -82
  4. package/dist/cli/commands/agents.d.ts +2 -0
  5. package/dist/cli/commands/agents.js +213 -0
  6. package/dist/cli/commands/compile.js +10 -1
  7. package/dist/cli/commands/doctor.js +1 -1
  8. package/dist/cli/commands/login.js +1 -1
  9. package/dist/cli/commands/logout.js +1 -1
  10. package/dist/cli/commands/mcp.d.ts +42 -0
  11. package/dist/cli/commands/mcp.js +239 -0
  12. package/dist/cli/commands/method.js +1 -1
  13. package/dist/cli/commands/prep.js +23 -5
  14. package/dist/cli/commands/reset.js +1 -1
  15. package/dist/cli/commands/runs.js +1 -1
  16. package/dist/cli/commands/status.js +1 -1
  17. package/dist/cli/commands/verify.d.ts +8 -0
  18. package/dist/cli/commands/{test.js → verify.js} +24 -18
  19. package/dist/cli/commands/web.js +71 -18
  20. package/dist/cli/commands/wizard.js +373 -126
  21. package/dist/cli/index.d.ts +4 -2
  22. package/dist/cli/index.js +7 -3
  23. package/dist/compiler-ui/404.html +1 -1
  24. package/dist/compiler-ui/__next.__PAGE__.txt +2 -2
  25. package/dist/compiler-ui/__next._full.txt +3 -3
  26. package/dist/compiler-ui/__next._head.txt +1 -1
  27. package/dist/compiler-ui/__next._index.txt +2 -2
  28. package/dist/compiler-ui/__next._tree.txt +2 -2
  29. package/dist/compiler-ui/_next/static/chunks/{17t-lulmyawg5.js → 0jipmpez3_ehh.js} +16 -16
  30. package/dist/compiler-ui/_next/static/chunks/{045gole2ojo3g.css → 13awzu4tooflw.css} +1 -1
  31. package/dist/compiler-ui/_not-found/__next._full.txt +2 -2
  32. package/dist/compiler-ui/_not-found/__next._head.txt +1 -1
  33. package/dist/compiler-ui/_not-found/__next._index.txt +2 -2
  34. package/dist/compiler-ui/_not-found/__next._not-found.__PAGE__.txt +1 -1
  35. package/dist/compiler-ui/_not-found/__next._not-found.txt +1 -1
  36. package/dist/compiler-ui/_not-found/__next._tree.txt +2 -2
  37. package/dist/compiler-ui/_not-found.html +1 -1
  38. package/dist/compiler-ui/_not-found.txt +2 -2
  39. package/dist/compiler-ui/index.html +1 -1
  40. package/dist/compiler-ui/index.txt +3 -3
  41. package/dist/index.d.ts +2 -2
  42. package/dist/index.js +2 -2
  43. package/dist/packages/contracts/index.d.ts +2 -1
  44. package/dist/packages/contracts/index.js +1 -0
  45. package/dist/packages/contracts/lib/schema.d.ts +102 -8
  46. package/dist/packages/contracts/lib/schema.js +102 -2
  47. package/dist/packages/{local-service → engine}/action-definitions.js +8 -1
  48. package/dist/packages/{local-service → engine}/action-planner.d.ts +1 -1
  49. package/dist/packages/{local-service → engine}/action-planner.js +1 -1
  50. package/dist/packages/{agents → engine/agents}/index.d.ts +3 -0
  51. package/dist/packages/{agents → engine/agents}/index.js +3 -0
  52. package/dist/packages/{agents → engine/agents}/lib/compiled-bootstrap.js +2 -2
  53. package/dist/packages/engine/agents/lib/detection.d.ts +13 -0
  54. package/dist/packages/{agents → engine/agents}/lib/detection.js +11 -0
  55. package/dist/packages/{agents → engine/agents}/lib/executors.d.ts +2 -2
  56. package/dist/packages/{agents → engine/agents}/lib/shells.d.ts +4 -4
  57. package/dist/packages/{agents → engine/agents}/lib/shells.js +8 -8
  58. package/dist/packages/{agents → engine/agents}/lib/user-config.js +2 -2
  59. package/dist/packages/engine/agents/registry.d.ts +91 -0
  60. package/dist/packages/engine/agents/registry.js +321 -0
  61. package/dist/packages/engine/agents/role-executors.d.ts +35 -0
  62. package/dist/packages/engine/agents/role-executors.js +88 -0
  63. package/dist/packages/engine/agents/role-router.d.ts +66 -0
  64. package/dist/packages/engine/agents/role-router.js +73 -0
  65. package/dist/packages/{local-service → engine}/client.d.ts +9 -9
  66. package/dist/packages/{local-service → engine}/client.js +11 -11
  67. package/dist/packages/{compiler → engine/compile}/artifact-counts.js +1 -1
  68. package/dist/packages/{compiler → engine/compile}/compiled-pipeline.d.ts +12 -1
  69. package/dist/packages/{compiler → engine/compile}/compiled-pipeline.js +16 -6
  70. package/dist/packages/{compiler → engine/compile}/compiled-schema.d.ts +2 -2
  71. package/dist/packages/{compiler → engine/compile}/compiled-schema.js +4 -4
  72. package/dist/packages/{compiler → engine/compile}/compiled-stage-plan.d.ts +1 -1
  73. package/dist/packages/{compiler → engine/compile}/compiled-stage-plan.js +4 -4
  74. package/dist/packages/{compiler → engine/compile}/compiled-stage-runner.d.ts +1 -1
  75. package/dist/packages/{compiler → engine/compile}/compiled-stage-runner.js +3 -3
  76. package/dist/packages/{compiler → engine/compile}/compiled-target.d.ts +2 -2
  77. package/dist/packages/{compiler → engine/compile}/compiled-target.js +2 -2
  78. package/dist/packages/{compiler → engine/compile}/discovery.js +1 -1
  79. package/dist/packages/{compiler → engine/compile}/lib/schema.d.ts +4 -4
  80. package/dist/packages/{compiler → engine/compile}/lib/schema.js +2 -2
  81. package/dist/packages/{compiler → engine/compile}/method-runs.d.ts +3 -3
  82. package/dist/packages/{compiler → engine/compile}/method-runs.js +3 -3
  83. package/dist/packages/{compiler → engine/compile}/runtime-acceptance.js +17 -14
  84. package/dist/packages/{compiler → engine/compile}/runtime-reconcile.d.ts +1 -1
  85. package/dist/packages/{compiler → engine/compile}/runtime-reconcile.js +12 -10
  86. package/dist/packages/{compiler → engine/compile}/runtime-runs.d.ts +1 -2
  87. package/dist/packages/{compiler → engine/compile}/runtime-runs.js +3 -43
  88. package/dist/packages/{compiler → engine/compile}/runtime-types.d.ts +1 -5
  89. package/dist/packages/{compiler → engine/compile}/runtime.d.ts +2 -2
  90. package/dist/packages/{compiler → engine/compile}/runtime.js +1 -1
  91. package/dist/packages/{compiler → engine/compile}/source-files.d.ts +1 -1
  92. package/dist/packages/{compiler → engine/compile}/source-files.js +3 -3
  93. package/dist/packages/{compiler → engine/compile}/state-health.js +2 -2
  94. package/dist/packages/{compiler → engine/compile}/state-io.js +2 -2
  95. package/dist/packages/{compiler → engine/compile}/state-view.js +2 -2
  96. package/dist/packages/{compiler → engine/compile}/validate-compiled.js +2 -2
  97. package/dist/packages/{compiler → engine/compile}/validate.d.ts +1 -1
  98. package/dist/packages/{compiler → engine/compile}/validate.js +3 -3
  99. package/dist/packages/{execution → engine/execution}/lib/schema.d.ts +2 -22
  100. package/dist/packages/{execution → engine/execution}/lib/schema.js +2 -2
  101. package/dist/packages/{local-service → engine}/index.d.ts +4 -4
  102. package/dist/packages/{local-service → engine}/index.js +2 -2
  103. package/dist/packages/{local-service → engine}/lib/schema.d.ts +85 -209
  104. package/dist/packages/{local-service → engine}/lib/schema.js +58 -54
  105. package/dist/packages/{local-service → engine}/native-run-handlers.d.ts +7 -5
  106. package/dist/packages/{local-service → engine}/native-run-handlers.js +69 -25
  107. package/dist/packages/{local-service → engine}/preparation-store.d.ts +16 -4
  108. package/dist/packages/{local-service → engine}/preparation-store.js +48 -25
  109. package/dist/packages/{local-service → engine}/readiness-check-draft.d.ts +2 -2
  110. package/dist/packages/{local-service → engine}/routes.d.ts +30 -1
  111. package/dist/packages/{local-service → engine}/routes.js +32 -1
  112. package/dist/packages/{local-service → engine}/run-observability.d.ts +3 -3
  113. package/dist/packages/{local-service → engine}/run-observability.js +14 -13
  114. package/dist/packages/{local-service → engine}/runtime-event-applier.d.ts +1 -1
  115. package/dist/packages/{local-service → engine}/runtime-persistence.d.ts +6 -6
  116. package/dist/packages/{local-service → engine}/runtime-persistence.js +9 -9
  117. package/dist/packages/{local-service → engine}/runtime-proposal-helpers.d.ts +1 -1
  118. package/dist/packages/{local-service → engine}/runtime-proposal-helpers.js +5 -5
  119. package/dist/packages/{local-service → engine}/runtime-resource-builders.d.ts +6 -6
  120. package/dist/packages/{local-service → engine}/runtime-resource-builders.js +1 -1
  121. package/dist/packages/{local-service → engine}/runtime.d.ts +80 -49
  122. package/dist/packages/{local-service → engine}/runtime.js +177 -179
  123. package/dist/packages/{local-service → engine}/server.js +276 -14
  124. package/dist/packages/{testing → engine/verify}/lib/schema.d.ts +1 -1
  125. package/dist/packages/{testing → engine/verify}/lib/schema.js +1 -1
  126. package/dist/packages/{testing → engine/verify}/readiness-check-run.d.ts +6 -13
  127. package/dist/packages/{testing → engine/verify}/readiness-check-run.js +25 -81
  128. package/dist/packages/{testing → engine/verify}/test-paths.js +2 -2
  129. package/dist/packages/{testing → engine/verify}/test-sandbox.js +6 -6
  130. package/dist/packages/{testing → engine/verify}/test-specs.js +1 -1
  131. package/dist/packages/{testing → engine/verify}/test-targets.js +3 -3
  132. package/dist/packages/{method-authoring → methods/authoring}/method-authoring.d.ts +11 -3
  133. package/dist/packages/{method-authoring → methods/authoring}/method-authoring.js +68 -5
  134. package/dist/packages/{method-authoring → methods/authoring}/method-edit-session.d.ts +2 -2
  135. package/dist/packages/{method-authoring → methods/authoring}/method-improvement.d.ts +4 -4
  136. package/dist/packages/{method-authoring → methods/authoring}/method-improvement.js +15 -9
  137. package/dist/packages/{method-package → methods/package}/builtin-compiled-method.d.ts +1 -1
  138. package/dist/packages/{method-package → methods/package}/builtin-compiled-method.js +2 -2
  139. package/dist/packages/{method-package → methods/package}/context-interface.d.ts +1 -1
  140. package/dist/packages/{method-package → methods/package}/context-interface.js +3 -3
  141. package/dist/packages/{method-package → methods/package}/interf-method-package.js +3 -2
  142. package/dist/packages/{method-package → methods/package}/lib/package-root.js +2 -2
  143. package/dist/packages/{method-package → methods/package}/local-methods.d.ts +8 -2
  144. package/dist/packages/{method-package → methods/package}/local-methods.js +8 -7
  145. package/dist/packages/{method-package → methods/package}/method-definitions.d.ts +8 -2
  146. package/dist/packages/{method-package → methods/package}/method-definitions.js +5 -4
  147. package/dist/packages/{method-package → methods/package}/method-helpers.d.ts +1 -1
  148. package/dist/packages/{method-package → methods/package}/method-helpers.js +4 -4
  149. package/dist/packages/{method-package → methods/package}/method-review-paths.d.ts +1 -1
  150. package/dist/packages/{method-package → methods/package}/method-review-paths.js +1 -1
  151. package/dist/packages/{method-package → methods/package}/method-stage-runner.d.ts +4 -9
  152. package/dist/packages/{method-package → methods/package}/method-stage-runner.js +1 -29
  153. package/dist/packages/{method-package → methods/package}/user-methods.js +2 -2
  154. package/dist/packages/{project-model → project}/interf-bootstrap.d.ts +1 -1
  155. package/dist/packages/{project-model → project}/interf-bootstrap.js +1 -1
  156. package/dist/packages/{project-model → project}/interf-detect.js +4 -4
  157. package/dist/packages/{project-model → project}/interf-scaffold.js +7 -7
  158. package/dist/packages/{project-model → project}/lib/schema.d.ts +2 -2
  159. package/dist/packages/{project-model → project}/lib/schema.js +1 -1
  160. package/dist/packages/{project-model → project}/source-config.d.ts +1 -1
  161. package/dist/packages/{project-model → project}/source-config.js +7 -7
  162. package/dist/packages/{project-model → project}/source-folders.js +2 -2
  163. package/package.json +6 -5
  164. package/dist/cli/commands/test.d.ts +0 -9
  165. package/dist/packages/agents/lib/detection.d.ts +0 -7
  166. /package/dist/compiler-ui/_next/static/{C6vVfy3aeYuIO3d2AoNvC → a3UiUF0DiMEbfWy_0gihg}/_buildManifest.js +0 -0
  167. /package/dist/compiler-ui/_next/static/{C6vVfy3aeYuIO3d2AoNvC → a3UiUF0DiMEbfWy_0gihg}/_clientMiddlewareManifest.js +0 -0
  168. /package/dist/compiler-ui/_next/static/{C6vVfy3aeYuIO3d2AoNvC → a3UiUF0DiMEbfWy_0gihg}/_ssgManifest.js +0 -0
  169. /package/dist/packages/{shared → contracts/utils}/file-types.d.ts +0 -0
  170. /package/dist/packages/{shared → contracts/utils}/file-types.js +0 -0
  171. /package/dist/packages/{shared → contracts/utils}/filesystem.d.ts +0 -0
  172. /package/dist/packages/{shared → contracts/utils}/filesystem.js +0 -0
  173. /package/dist/packages/{shared → contracts/utils}/logger.d.ts +0 -0
  174. /package/dist/packages/{shared → contracts/utils}/logger.js +0 -0
  175. /package/dist/packages/{shared → contracts/utils}/naming.d.ts +0 -0
  176. /package/dist/packages/{shared → contracts/utils}/naming.js +0 -0
  177. /package/dist/packages/{shared → contracts/utils}/parse.d.ts +0 -0
  178. /package/dist/packages/{shared → contracts/utils}/parse.js +0 -0
  179. /package/dist/packages/{shared → contracts/utils}/path-guards.d.ts +0 -0
  180. /package/dist/packages/{shared → contracts/utils}/path-guards.js +0 -0
  181. /package/dist/packages/{local-service → engine}/action-definitions.d.ts +0 -0
  182. /package/dist/packages/{local-service → engine}/action-values.d.ts +0 -0
  183. /package/dist/packages/{local-service → engine}/action-values.js +0 -0
  184. /package/dist/packages/{agents → engine/agents}/lib/agents.d.ts +0 -0
  185. /package/dist/packages/{agents → engine/agents}/lib/agents.js +0 -0
  186. /package/dist/packages/{agents → engine/agents}/lib/args.d.ts +0 -0
  187. /package/dist/packages/{agents → engine/agents}/lib/args.js +0 -0
  188. /package/dist/packages/{agents → engine/agents}/lib/chart-guidance.d.ts +0 -0
  189. /package/dist/packages/{agents → engine/agents}/lib/chart-guidance.js +0 -0
  190. /package/dist/packages/{agents → engine/agents}/lib/compiled-bootstrap.d.ts +0 -0
  191. /package/dist/packages/{agents → engine/agents}/lib/constants.d.ts +0 -0
  192. /package/dist/packages/{agents → engine/agents}/lib/constants.js +0 -0
  193. /package/dist/packages/{agents → engine/agents}/lib/execution-profile.d.ts +0 -0
  194. /package/dist/packages/{agents → engine/agents}/lib/execution-profile.js +0 -0
  195. /package/dist/packages/{agents → engine/agents}/lib/execution.d.ts +0 -0
  196. /package/dist/packages/{agents → engine/agents}/lib/execution.js +0 -0
  197. /package/dist/packages/{agents → engine/agents}/lib/executors.js +0 -0
  198. /package/dist/packages/{agents → engine/agents}/lib/logs.d.ts +0 -0
  199. /package/dist/packages/{agents → engine/agents}/lib/logs.js +0 -0
  200. /package/dist/packages/{agents → engine/agents}/lib/preflight.d.ts +0 -0
  201. /package/dist/packages/{agents → engine/agents}/lib/preflight.js +0 -0
  202. /package/dist/packages/{agents → engine/agents}/lib/render.d.ts +0 -0
  203. /package/dist/packages/{agents → engine/agents}/lib/render.js +0 -0
  204. /package/dist/packages/{agents → engine/agents}/lib/schema.d.ts +0 -0
  205. /package/dist/packages/{agents → engine/agents}/lib/schema.js +0 -0
  206. /package/dist/packages/{agents → engine/agents}/lib/status.d.ts +0 -0
  207. /package/dist/packages/{agents → engine/agents}/lib/status.js +0 -0
  208. /package/dist/packages/{agents → engine/agents}/lib/types.d.ts +0 -0
  209. /package/dist/packages/{agents → engine/agents}/lib/types.js +0 -0
  210. /package/dist/packages/{agents → engine/agents}/lib/user-config.d.ts +0 -0
  211. /package/dist/packages/{compiler → engine/compile}/artifact-counts.d.ts +0 -0
  212. /package/dist/packages/{compiler → engine/compile}/compiled-compile.d.ts +0 -0
  213. /package/dist/packages/{compiler → engine/compile}/compiled-compile.js +0 -0
  214. /package/dist/packages/{compiler → engine/compile}/compiled-paths.d.ts +0 -0
  215. /package/dist/packages/{compiler → engine/compile}/compiled-paths.js +0 -0
  216. /package/dist/packages/{compiler → engine/compile}/discovery.d.ts +0 -0
  217. /package/dist/packages/{compiler → engine/compile}/index.d.ts +0 -0
  218. /package/dist/packages/{compiler → engine/compile}/index.js +0 -0
  219. /package/dist/packages/{compiler → engine/compile}/method-primitives.d.ts +0 -0
  220. /package/dist/packages/{compiler → engine/compile}/method-primitives.js +0 -0
  221. /package/dist/packages/{compiler → engine/compile}/reset.d.ts +0 -0
  222. /package/dist/packages/{compiler → engine/compile}/reset.js +0 -0
  223. /package/dist/packages/{compiler → engine/compile}/runtime-acceptance.d.ts +0 -0
  224. /package/dist/packages/{compiler → engine/compile}/runtime-contracts.d.ts +0 -0
  225. /package/dist/packages/{compiler → engine/compile}/runtime-contracts.js +0 -0
  226. /package/dist/packages/{compiler → engine/compile}/runtime-inventory.d.ts +0 -0
  227. /package/dist/packages/{compiler → engine/compile}/runtime-inventory.js +0 -0
  228. /package/dist/packages/{compiler → engine/compile}/runtime-paths.d.ts +0 -0
  229. /package/dist/packages/{compiler → engine/compile}/runtime-paths.js +0 -0
  230. /package/dist/packages/{compiler → engine/compile}/runtime-prompt.d.ts +0 -0
  231. /package/dist/packages/{compiler → engine/compile}/runtime-prompt.js +0 -0
  232. /package/dist/packages/{compiler → engine/compile}/runtime-types.js +0 -0
  233. /package/dist/packages/{compiler → engine/compile}/state-artifacts.d.ts +0 -0
  234. /package/dist/packages/{compiler → engine/compile}/state-artifacts.js +0 -0
  235. /package/dist/packages/{compiler → engine/compile}/state-health.d.ts +0 -0
  236. /package/dist/packages/{compiler → engine/compile}/state-io.d.ts +0 -0
  237. /package/dist/packages/{compiler → engine/compile}/state-paths.d.ts +0 -0
  238. /package/dist/packages/{compiler → engine/compile}/state-paths.js +0 -0
  239. /package/dist/packages/{compiler → engine/compile}/state-view.d.ts +0 -0
  240. /package/dist/packages/{compiler → engine/compile}/state.d.ts +0 -0
  241. /package/dist/packages/{compiler → engine/compile}/state.js +0 -0
  242. /package/dist/packages/{compiler → engine/compile}/validate-compiled.d.ts +0 -0
  243. /package/dist/packages/{compiler → engine/compile}/validate-helpers.d.ts +0 -0
  244. /package/dist/packages/{compiler → engine/compile}/validate-helpers.js +0 -0
  245. /package/dist/packages/{local-service → engine}/connection-config.d.ts +0 -0
  246. /package/dist/packages/{local-service → engine}/connection-config.js +0 -0
  247. /package/dist/packages/{execution → engine/execution}/adapters.d.ts +0 -0
  248. /package/dist/packages/{execution → engine/execution}/adapters.js +0 -0
  249. /package/dist/packages/{execution → engine/execution}/events.d.ts +0 -0
  250. /package/dist/packages/{execution → engine/execution}/events.js +0 -0
  251. /package/dist/packages/{execution → engine/execution}/index.d.ts +0 -0
  252. /package/dist/packages/{execution → engine/execution}/index.js +0 -0
  253. /package/dist/packages/{local-service → engine}/instance-paths.d.ts +0 -0
  254. /package/dist/packages/{local-service → engine}/instance-paths.js +0 -0
  255. /package/dist/packages/{local-service → engine}/readiness-check-draft.js +0 -0
  256. /package/dist/packages/{local-service → engine}/runtime-caches.d.ts +0 -0
  257. /package/dist/packages/{local-service → engine}/runtime-caches.js +0 -0
  258. /package/dist/packages/{local-service → engine}/runtime-event-applier.js +0 -0
  259. /package/dist/packages/{local-service → engine}/server.d.ts +0 -0
  260. /package/dist/packages/{local-service → engine}/service-registry.d.ts +0 -0
  261. /package/dist/packages/{local-service → engine}/service-registry.js +0 -0
  262. /package/dist/packages/{testing → engine/verify}/index.d.ts +0 -0
  263. /package/dist/packages/{testing → engine/verify}/index.js +0 -0
  264. /package/dist/packages/{testing → engine/verify}/test-execution.d.ts +0 -0
  265. /package/dist/packages/{testing → engine/verify}/test-execution.js +0 -0
  266. /package/dist/packages/{testing → engine/verify}/test-paths.d.ts +0 -0
  267. /package/dist/packages/{testing → engine/verify}/test-profile-presets.d.ts +0 -0
  268. /package/dist/packages/{testing → engine/verify}/test-profile-presets.js +0 -0
  269. /package/dist/packages/{testing → engine/verify}/test-sandbox.d.ts +0 -0
  270. /package/dist/packages/{testing → engine/verify}/test-specs.d.ts +0 -0
  271. /package/dist/packages/{testing → engine/verify}/test-targets.d.ts +0 -0
  272. /package/dist/packages/{testing → engine/verify}/test-types.d.ts +0 -0
  273. /package/dist/packages/{testing → engine/verify}/test-types.js +0 -0
  274. /package/dist/packages/{testing → engine/verify}/test.d.ts +0 -0
  275. /package/dist/packages/{testing → engine/verify}/test.js +0 -0
  276. /package/dist/packages/{method-authoring → methods/authoring}/index.d.ts +0 -0
  277. /package/dist/packages/{method-authoring → methods/authoring}/index.js +0 -0
  278. /package/dist/packages/{method-authoring → methods/authoring}/lib/method-edit-utils.d.ts +0 -0
  279. /package/dist/packages/{method-authoring → methods/authoring}/lib/method-edit-utils.js +0 -0
  280. /package/dist/packages/{method-authoring → methods/authoring}/method-edit-session.js +0 -0
  281. /package/dist/packages/{method-package → methods/package}/interf-method-package.d.ts +0 -0
  282. /package/dist/packages/{method-package → methods/package}/lib/package-root.d.ts +0 -0
  283. /package/dist/packages/{method-package → methods/package}/user-methods.d.ts +0 -0
  284. /package/dist/packages/{project-model → project}/index.d.ts +0 -0
  285. /package/dist/packages/{project-model → project}/index.js +0 -0
  286. /package/dist/packages/{project-model → project}/interf-detect.d.ts +0 -0
  287. /package/dist/packages/{project-model → project}/interf-scaffold.d.ts +0 -0
  288. /package/dist/packages/{project-model → project}/interf.d.ts +0 -0
  289. /package/dist/packages/{project-model → project}/interf.js +0 -0
  290. /package/dist/packages/{project-model → project}/preparation-entries.d.ts +0 -0
  291. /package/dist/packages/{project-model → project}/preparation-entries.js +0 -0
  292. /package/dist/packages/{project-model → project}/source-folders.d.ts +0 -0
@@ -10,13 +10,23 @@ export const LOCAL_SERVICE_ROUTES = {
10
10
  methods: "/v1/methods",
11
11
  runs: "/v1/runs",
12
12
  actionProposals: "/v1/action-proposals",
13
+ /**
14
+ * 0.14 single-active-agent shortcut. Kept as a back-compat shim
15
+ * over the role-map's `general` row in 0.15+.
16
+ */
13
17
  executor: "/v1/executor",
18
+ /**
19
+ * 0.15 connected-agents primitive — registry, role-map, role list.
20
+ * `agents/{name}` and `agents/role-map` are sub-resources handled
21
+ * by string match in `server.ts`.
22
+ */
23
+ agents: "/v1/agents",
14
24
  openPath: "/v1/open-path",
15
25
  };
16
26
  /** Preparation-scoped sub-resources (relative to /v1/preparations/<id>/). */
17
27
  export const PREPARATION_SUBRESOURCES = {
18
28
  compileRuns: "compile-runs",
19
- testRuns: "test-runs",
29
+ verifyRuns: "verify-runs",
20
30
  methodAuthoringRuns: "method-authoring-runs",
21
31
  methodImprovementRuns: "method-improvement-runs",
22
32
  readinessCheckDrafts: "readiness-check-drafts",
@@ -26,6 +36,23 @@ export const PREPARATION_SUBRESOURCES = {
26
36
  readiness: "readiness",
27
37
  sourceFiles: "source-files",
28
38
  portableContext: "portable-context",
39
+ /**
40
+ * 0.16 — read a portable-context file (read-only, path-guarded
41
+ * inside the prep's portable-context root). Used by the locator
42
+ * pattern's `api-served` kind:
43
+ * GET /v1/preparations/<id>/files/<relpath>
44
+ */
45
+ files: "files",
46
+ };
47
+ /** Method-scoped sub-resources (relative to /v1/methods/<id>/). */
48
+ export const METHOD_SUBRESOURCES = {
49
+ runs: "runs",
50
+ /**
51
+ * 0.16 — read a method package file (read-only, path-guarded inside
52
+ * the method root). Used by the locator pattern's `api-served` kind:
53
+ * GET /v1/methods/<id>/files/<relpath>
54
+ */
55
+ files: "files",
29
56
  };
30
57
  /** Run-scoped sub-resources (relative to /v1/runs/<run-id>/). */
31
58
  export const RUN_SUBRESOURCES = {
@@ -59,3 +86,7 @@ export function runSubresourcePath(runId, sub) {
59
86
  export function methodResourcePath(methodId) {
60
87
  return `${LOCAL_SERVICE_ROUTES.methods}/${encodeURIComponent(methodId)}`;
61
88
  }
89
+ /** Path builder: /v1/methods/<id>/<subresource>. */
90
+ export function methodSubresourcePath(methodId, sub) {
91
+ return `${methodResourcePath(methodId)}/${METHOD_SUBRESOURCES[sub]}`;
92
+ }
@@ -1,6 +1,6 @@
1
- import { type ArtifactRef, type CompileRun } from "../execution/lib/schema.js";
2
- import { type LocalJobRunResource, type RunObservabilityResource, type TestRunResource } from "./lib/schema.js";
1
+ import { type ArtifactRef, type CompileRun } from "./execution/lib/schema.js";
2
+ import { type LocalJobRunResource, type RunObservabilityResource, type VerifyRunResource } from "./lib/schema.js";
3
3
  export declare function uniqueArtifacts(artifacts: ArtifactRef[]): ArtifactRef[];
4
4
  export declare function compileRunToObservability(run: CompileRun): RunObservabilityResource;
5
- export declare function testRunToObservability(run: TestRunResource): RunObservabilityResource;
5
+ export declare function verifyRunToObservability(run: VerifyRunResource): RunObservabilityResource;
6
6
  export declare function jobRunToObservability(job: LocalJobRunResource): RunObservabilityResource;
@@ -1,4 +1,4 @@
1
- import { createRunEventTimestamp, } from "../execution/events.js";
1
+ import { createRunEventTimestamp, } from "./execution/events.js";
2
2
  import { RunObservabilityResourceSchema, } from "./lib/schema.js";
3
3
  export function uniqueArtifacts(artifacts) {
4
4
  const seen = new Set();
@@ -268,10 +268,10 @@ export function compileRunToObservability(run) {
268
268
  },
269
269
  });
270
270
  }
271
- export function testRunToObservability(run) {
271
+ export function verifyRunToObservability(run) {
272
272
  const traceStatus = methodTraceRunStatus(run.status);
273
273
  const title = `Check readiness ${run.preparation}`;
274
- const methodName = interfTraceName("test", title);
274
+ const methodName = interfTraceName("verify", title);
275
275
  const completedAt = run.finished_at ?? (traceStatus === "completed" || traceStatus === "failed" || traceStatus === "cancelled"
276
276
  ? run.started_at ?? new Date().toISOString()
277
277
  : undefined);
@@ -307,9 +307,10 @@ export function testRunToObservability(run) {
307
307
  deploymentId: "local-interf",
308
308
  methodName,
309
309
  input: {
310
- kind: "test",
310
+ kind: "verify",
311
311
  preparation: run.preparation,
312
- mode: run.mode,
312
+ // 0.15 — verify runs always judge against compiled output.
313
+ mode: "compiled",
313
314
  },
314
315
  }),
315
316
  ];
@@ -318,7 +319,7 @@ export function testRunToObservability(run) {
318
319
  methodName,
319
320
  input: {
320
321
  preparation: run.preparation,
321
- mode: run.mode,
322
+ mode: "compiled",
322
323
  },
323
324
  }));
324
325
  }
@@ -350,7 +351,7 @@ export function testRunToObservability(run) {
350
351
  status: run.status === "failed" ? "failed" : "succeeded",
351
352
  input: {
352
353
  preparation: run.preparation,
353
- mode: run.mode,
354
+ mode: "compiled",
354
355
  },
355
356
  output: readinessRun ?? null,
356
357
  });
@@ -358,7 +359,7 @@ export function testRunToObservability(run) {
358
359
  for (const step of targetSteps) {
359
360
  const timestamp = run.started_at ?? run.finished_at ?? new Date().toISOString();
360
361
  events.push(traceEvent(run.run_id, "step_created", timestamp, eventIndex++, {
361
- stepName: methodStepName("test", step.label),
362
+ stepName: methodStepName("verify", step.label),
362
363
  input: step.input,
363
364
  }, step.id));
364
365
  events.push(traceEvent(run.run_id, "step_started", timestamp, eventIndex++, {
@@ -388,7 +389,7 @@ export function testRunToObservability(run) {
388
389
  kind: "interf-run-observability",
389
390
  version: 1,
390
391
  run_id: run.run_id,
391
- run_type: "test",
392
+ run_type: "verify",
392
393
  title,
393
394
  status: observableRunStatus(run.status),
394
395
  preparation: run.preparation,
@@ -401,7 +402,7 @@ export function testRunToObservability(run) {
401
402
  readiness: run.readiness ?? null,
402
403
  metrics: [
403
404
  { label: "Preparation", value: run.preparation },
404
- { label: "Mode", value: run.mode },
405
+ { label: "Mode", value: "compiled" },
405
406
  { label: "Readiness checks", value: compiled ? `${compiled.passed_cases}/${compiled.total_cases}` : sourceFiles ? `${sourceFiles.passed_cases}/${sourceFiles.total_cases}` : "0/0" },
406
407
  { label: "Source files", value: sourceFiles ? `${sourceFiles.passed_cases}/${sourceFiles.total_cases}` : "-" },
407
408
  { label: "Portable context", value: compiled ? `${compiled.passed_cases}/${compiled.total_cases}` : "-" },
@@ -417,13 +418,13 @@ export function testRunToObservability(run) {
417
418
  specVersion: 1,
418
419
  executionContext: {
419
420
  product: "Interf",
420
- run_type: "test",
421
+ run_type: "verify",
421
422
  preparation: run.preparation,
422
- mode: run.mode,
423
+ mode: "compiled",
423
424
  },
424
425
  input: {
425
426
  preparation: run.preparation,
426
- mode: run.mode,
427
+ mode: "compiled",
427
428
  source_path: run.source_path ?? null,
428
429
  portable_context_path: run.portable_context_path ?? null,
429
430
  },
@@ -6,7 +6,7 @@
6
6
  * what lets the runtime coordinator stay small: every other handler can
7
7
  * compose these without learning the resource shape.
8
8
  */
9
- import { type CompileRun, type InterfRunEvent } from "../execution/lib/schema.js";
9
+ import { type CompileRun, type InterfRunEvent } from "./execution/lib/schema.js";
10
10
  import { type LocalJobEvent, type LocalJobRunResource } from "./lib/schema.js";
11
11
  export declare function applyEventToCompileRun(run: CompileRun, event: InterfRunEvent): CompileRun;
12
12
  export declare function applyEventToLocalJob(run: LocalJobRunResource, event: LocalJobEvent): LocalJobRunResource;
@@ -1,10 +1,10 @@
1
- import { type CompileRun } from "../execution/lib/schema.js";
2
- import { type RuntimeRun } from "../compiler/lib/schema.js";
3
- import { type ActionProposalResource, type LocalJobRunResource, type TestRunResource } from "./lib/schema.js";
1
+ import { type CompileRun } from "./execution/lib/schema.js";
2
+ import { type RuntimeRun } from "./compile/lib/schema.js";
3
+ import { type ActionProposalResource, type LocalJobRunResource, type VerifyRunResource } from "./lib/schema.js";
4
4
  export declare function compileRunsRoot(compiledPath: string): string;
5
5
  export declare function compileRunPath(compiledPath: string, runId: string): string;
6
- export declare function testRunsRoot(compiledPath: string): string;
7
- export declare function testRunPath(compiledPath: string, runId: string): string;
6
+ export declare function verifyRunsRoot(compiledPath: string): string;
7
+ export declare function verifyRunPath(compiledPath: string, runId: string): string;
8
8
  export declare function localJobsRoot(rootPath: string): string;
9
9
  export declare function localJobPath(rootPath: string, runId: string): string;
10
10
  export declare function actionProposalsRoot(rootPath: string): string;
@@ -21,7 +21,7 @@ export declare function readJsonOrNull<T>(filePath: string, schema: {
21
21
  }): T | null;
22
22
  export declare function listJsonFiles(dirPath: string): string[];
23
23
  export declare function readCompileRunAt(filePath: string): CompileRun | null;
24
- export declare function readTestRunAt(filePath: string): TestRunResource | null;
24
+ export declare function readVerifyRunAt(filePath: string): VerifyRunResource | null;
25
25
  export declare function readLocalJobRunAt(filePath: string): LocalJobRunResource | null;
26
26
  export declare function readActionProposalAt(filePath: string): ActionProposalResource | null;
27
27
  /**
@@ -7,11 +7,11 @@
7
7
  */
8
8
  import { existsSync, mkdirSync, readdirSync, readFileSync, statSync, writeFileSync, } from "node:fs";
9
9
  import { dirname, join } from "node:path";
10
- import { CompileRunSchema, } from "../execution/lib/schema.js";
11
- import { compiledRuntimeRunHistoryPath, compiledRuntimeRoot, testRootForCompiled, } from "../compiler/compiled-paths.js";
12
- import { RuntimeRunSchema, } from "../compiler/lib/schema.js";
10
+ import { CompileRunSchema, } from "./execution/lib/schema.js";
11
+ import { compiledRuntimeRunHistoryPath, compiledRuntimeRoot, testRootForCompiled, } from "./compile/compiled-paths.js";
12
+ import { RuntimeRunSchema, } from "./compile/lib/schema.js";
13
13
  import { asPreparationDataDir, preparationServiceActionProposalsRoot, preparationServiceJobsRoot, } from "../contracts/lib/preparation-paths.js";
14
- import { ActionProposalResourceSchema, LocalJobRunResourceSchema, TestRunResourceSchema, } from "./lib/schema.js";
14
+ import { ActionProposalResourceSchema, LocalJobRunResourceSchema, VerifyRunResourceSchema, } from "./lib/schema.js";
15
15
  // ---- Path helpers --------------------------------------------------------
16
16
  export function compileRunsRoot(compiledPath) {
17
17
  return join(compiledRuntimeRoot(compiledPath), "compile-runs");
@@ -19,11 +19,11 @@ export function compileRunsRoot(compiledPath) {
19
19
  export function compileRunPath(compiledPath, runId) {
20
20
  return join(compileRunsRoot(compiledPath), `${runId}.json`);
21
21
  }
22
- export function testRunsRoot(compiledPath) {
22
+ export function verifyRunsRoot(compiledPath) {
23
23
  return join(testRootForCompiled(compiledPath), "service-runs");
24
24
  }
25
- export function testRunPath(compiledPath, runId) {
26
- return join(testRunsRoot(compiledPath), `${runId}.json`);
25
+ export function verifyRunPath(compiledPath, runId) {
26
+ return join(verifyRunsRoot(compiledPath), `${runId}.json`);
27
27
  }
28
28
  export function localJobsRoot(rootPath) {
29
29
  return preparationServiceJobsRoot(asPreparationDataDir(rootPath));
@@ -75,8 +75,8 @@ export function listJsonFiles(dirPath) {
75
75
  export function readCompileRunAt(filePath) {
76
76
  return readJsonOrNull(filePath, CompileRunSchema);
77
77
  }
78
- export function readTestRunAt(filePath) {
79
- return readJsonOrNull(filePath, TestRunResourceSchema);
78
+ export function readVerifyRunAt(filePath) {
79
+ return readJsonOrNull(filePath, VerifyRunResourceSchema);
80
80
  }
81
81
  export function readLocalJobRunAt(filePath) {
82
82
  return readJsonOrNull(filePath, LocalJobRunResourceSchema);
@@ -1,4 +1,4 @@
1
- import { type SourcePreparationConfig } from "../project-model/lib/schema.js";
1
+ import { type SourcePreparationConfig } from "../project/lib/schema.js";
2
2
  import { type ActionProposalPlanActionType, type ActionProposalResource } from "./lib/schema.js";
3
3
  export declare const ACTION_PLANNER_CLARIFICATION_MESSAGE = "I can help with this Interf Workspace. Ask a question about Interf, or ask me to create a Preparation, prepare, check readiness, improve, or draft a Method and I will prepare an approval proposal.";
4
4
  export type LocalTestMode = "source-files" | "compiled" | "both";
@@ -6,12 +6,12 @@
6
6
  * helpers without booting a runtime.
7
7
  */
8
8
  import { existsSync } from "node:fs";
9
- import { AGENTS, } from "../agents/lib/constants.js";
10
- import { detectAgents, supportsAutomatedRuns, } from "../agents/lib/detection.js";
11
- import { loadUserConfig, } from "../agents/lib/user-config.js";
9
+ import { AGENTS, } from "./agents/lib/constants.js";
10
+ import { detectAgents, supportsAutomatedRuns, } from "./agents/lib/detection.js";
11
+ import { loadUserConfig, } from "./agents/lib/user-config.js";
12
12
  import { asPreparationDataDir, preparationPortableContextPath, } from "../contracts/lib/preparation-paths.js";
13
- import { DEFAULT_METHOD_ID, methodIdForSourcePreparationConfig, } from "../project-model/source-config.js";
14
- import { createCompiledTestTarget, } from "../testing/test-targets.js";
13
+ import { DEFAULT_METHOD_ID, methodIdForSourcePreparationConfig, } from "../project/source-config.js";
14
+ import { createCompiledTestTarget, } from "./verify/test-targets.js";
15
15
  import { methodAuthoringTaskPrompt, MethodAuthoringActionValuesSchema, } from "./action-values.js";
16
16
  import { ActionProposalPlanActionTypeSchema, } from "./lib/schema.js";
17
17
  export const ACTION_PLANNER_CLARIFICATION_MESSAGE = "I can help with this Interf Workspace. Ask a question about Interf, or ask me to create a Preparation, prepare, check readiness, improve, or draft a Method and I will prepare an approval proposal.";
@@ -6,14 +6,14 @@
6
6
  * Splitting these out keeps the runtime coordinator focused on
7
7
  * orchestration rather than payload formatting.
8
8
  */
9
- import { type ArtifactRef, type ProofRecord } from "../execution/lib/schema.js";
10
- import { type CompiledState } from "../compiler/state.js";
11
- import { type RuntimeRun } from "../compiler/lib/schema.js";
9
+ import { type ArtifactRef, type ProofRecord } from "./execution/lib/schema.js";
10
+ import { type CompiledState } from "./compile/state.js";
11
+ import { type RuntimeRun } from "./compile/lib/schema.js";
12
12
  import { type ReadinessState, type ReadinessTargetResult } from "../contracts/lib/schema.js";
13
- import { type TestRunTargetSummary } from "../testing/lib/schema.js";
14
- import { type SourcePreparationConfig } from "../project-model/lib/schema.js";
13
+ import { type TestRunTargetSummary } from "./verify/lib/schema.js";
14
+ import { type SourcePreparationConfig } from "../project/lib/schema.js";
15
15
  import { type MethodResource, type PreparationResource } from "./lib/schema.js";
16
- export declare function createRunId(prefix: "compile" | "test" | "job"): string;
16
+ export declare function createRunId(prefix: "compile" | "verify" | "job"): string;
17
17
  export declare function stageArtifactRefs(stageId: string, artifacts: string[] | undefined): ArtifactRef[];
18
18
  export declare function proofForStage(options: {
19
19
  runId: string;
@@ -1,5 +1,5 @@
1
1
  import { ReadinessStateSchema, } from "../contracts/lib/schema.js";
2
- import { methodIdForSourcePreparationConfig, resolveSourcePreparationPath, } from "../project-model/source-config.js";
2
+ import { methodIdForSourcePreparationConfig, resolveSourcePreparationPath, } from "../project/source-config.js";
3
3
  import { MethodResourceSchema, PreparationResourceSchema, } from "./lib/schema.js";
4
4
  export function createRunId(prefix) {
5
5
  return `${prefix}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)}`;
@@ -1,8 +1,8 @@
1
- import { type ArtifactRef, type CompileRun, type InterfRunEvent, type ProofRecord } from "../execution/lib/schema.js";
2
- import { type RunEventSink } from "../execution/events.js";
1
+ import { type ArtifactRef, type CompileRun, type InterfRunEvent, type ProofRecord } from "./execution/lib/schema.js";
2
+ import { type RunEventSink } from "./execution/events.js";
3
3
  import { type ReadinessState } from "../contracts/lib/schema.js";
4
- import type { SourcePreparationConfig } from "../project-model/lib/schema.js";
5
- import { type ActionProposalCreateRequest, type ActionProposalPlan, type ActionProposalResource, type CompileRunCreateRequest, type CompileRunResource, type MethodResource, type LocalServiceHealth, type LocalJobEvent, type LocalJobEventAppendRequest, type LocalExecutorStatus, type LocalJobRunResource, type LocalRunHandlerResult, type PortableContextResource, type PreparationResource, type ReadinessCheckDraftCreateRequest, type ReadinessCheckDraftResult, type RunObservabilityResource, type ServiceRegistryWorkspace, type SourceFileResource, type WorkspaceFileResource, type TestRunCreateRequest, type TestRunResource, type MethodAuthoringCreateRequest, type MethodAuthoringResult, type MethodChangeResult, type PreparationChangeResult, type PreparationSetupResult, type WorkspaceBootstrapResult, type ResetResult } from "./lib/schema.js";
4
+ import type { SourcePreparationConfig } from "../project/lib/schema.js";
5
+ import { type ActionProposalCreateRequest, type ActionProposalPlan, type ActionProposalResource, type CompileRunCreateRequest, type CompileRunResource, type MethodResource, type LocalServiceHealth, type LocalJobEvent, type LocalJobEventAppendRequest, type LocalExecutorStatus, type LocalJobRunResource, type LocalRunHandlerResult, type PortableContextResource, type PreparationResource, type ReadinessCheckDraftCreateRequest, type ReadinessCheckDraftResult, type RunObservabilityResource, type ServiceRegistryWorkspace, type SourceFileResource, type WorkspaceFileResource, type VerifyRunCreateRequest, type VerifyRunResource, type MethodAuthoringCreateRequest, type MethodAuthoringResult, type MethodChangeResult, type PreparationChangeResult, type PreparationSetupResult, type ResetResult } from "./lib/schema.js";
6
6
  export interface LocalServiceCompileRunContext {
7
7
  runId: string;
8
8
  sourcePath: string;
@@ -10,7 +10,7 @@ export interface LocalServiceCompileRunContext {
10
10
  preparationConfig: SourcePreparationConfig;
11
11
  events: RunEventSink;
12
12
  }
13
- export interface LocalServiceTestRunContext {
13
+ export interface LocalServiceVerifyRunContext {
14
14
  runId: string;
15
15
  sourcePath: string;
16
16
  compiledPath: string;
@@ -41,7 +41,7 @@ export interface LocalServiceActionPlanningContext {
41
41
  export interface LocalServiceRunHandlers {
42
42
  planActionProposal(request: ActionProposalCreateRequest, context: LocalServiceActionPlanningContext): Promise<ActionProposalPlan>;
43
43
  createCompileRun(request: CompileRunCreateRequest, context: LocalServiceCompileRunContext): Promise<LocalRunHandlerResult>;
44
- createTestRun(request: TestRunCreateRequest, context: LocalServiceTestRunContext): Promise<LocalRunHandlerResult>;
44
+ createVerifyRun(request: VerifyRunCreateRequest, context: LocalServiceVerifyRunContext): Promise<LocalRunHandlerResult>;
45
45
  createReadinessCheckDraft(request: ReadinessCheckDraftCreateRequest, context: LocalServiceJobRunContext): Promise<ReadinessCheckDraftResult>;
46
46
  createMethodAuthoringRun(request: MethodAuthoringCreateRequest, context: LocalServiceJobRunContext): Promise<MethodAuthoringResult>;
47
47
  }
@@ -60,9 +60,9 @@ export interface LocalServiceRuntimeOptions {
60
60
  authToken?: string;
61
61
  }
62
62
  /**
63
- * Per-workspace context tracked by the runtime. Multiple workspaces can be
64
- * registered against one running service; each one owns its rootPath and
65
- * activity timestamps. Routes pass the workspace explicitly to every
63
+ * Per-preparation context tracked by the runtime. Multiple preparations can
64
+ * be registered against one running service; each one owns its rootPath and
65
+ * activity timestamps. Routes pass the preparation explicitly to every
66
66
  * runtime method that needs one, so there is no swap-state to manage.
67
67
  */
68
68
  export interface PreparationContext {
@@ -89,10 +89,10 @@ export declare class LocalServiceRuntime {
89
89
  */
90
90
  readonly authToken: string | null;
91
91
  /** Map of prepDataDir -> PreparationContext. */
92
- private workspaces;
93
- /** Hook called whenever a workspace is registered or deregistered. */
92
+ private preparationContexts;
93
+ /** Hook called whenever a preparation is registered or deregistered. */
94
94
  private onRegistryChanged;
95
- /** In-flight runs across all workspaces. Used for `idle_for_seconds`. */
95
+ /** In-flight runs across all preparations. Used for `idle_for_seconds`. */
96
96
  private activeRunCount;
97
97
  /**
98
98
  * Active compile-run cancellation handles, keyed by run id. Populated
@@ -103,10 +103,10 @@ export declare class LocalServiceRuntime {
103
103
  private activeCompileRuns;
104
104
  /**
105
105
  * Idempotency-key cache for `POST /v1/compile-runs`. Outer key is the
106
- * resolved workspace root; inner key is the client-supplied idempotency
107
- * value. Namespacing per workspace prevents key collisions across
108
- * tenants on the same engine (CSO finding: a malicious workspace could
109
- * otherwise hijack another workspace's run id by reusing its key).
106
+ * resolved preparation root; inner key is the client-supplied idempotency
107
+ * value. Namespacing per preparation prevents key collisions across
108
+ * tenants on the same engine (CSO finding: a malicious preparation could
109
+ * otherwise hijack another preparation's run id by reusing its key).
110
110
  * Entries expire after `IDEMPOTENCY_TTL_MS`.
111
111
  */
112
112
  private idempotencyKeyCache;
@@ -118,53 +118,59 @@ export declare class LocalServiceRuntime {
118
118
  * matching write path. See {@link runtime-caches} for design notes.
119
119
  */
120
120
  private readonly compileRunCache;
121
- private readonly testRunCache;
121
+ private readonly verifyRunCache;
122
122
  private readonly readinessCache;
123
123
  private readonly sourceFilesCache;
124
124
  private readonly methodListingCache;
125
125
  constructor(options: LocalServiceRuntimeOptions);
126
126
  setBoundPort(port: number): void;
127
- /** Set a hook that fires whenever the registered workspaces change. */
127
+ /** Set a hook that fires whenever the registered preparations change. */
128
128
  setOnRegistryChanged(handler: (() => void) | null): void;
129
129
  /**
130
- * Register a workspace with this runtime. Returns the PreparationContext.
131
- * Idempotent: re-registering an existing workspace updates `lastActivity`.
130
+ * Register a preparation with this runtime. Returns the PreparationContext.
131
+ * Idempotent: re-registering an existing preparation updates `lastActivity`.
132
132
  */
133
133
  registerPreparation(prepDataDir: string): PreparationContext;
134
134
  /**
135
- * Remove a workspace from the runtime. Returns true if a workspace was
135
+ * Remove a preparation from the runtime. Returns true if a preparation was
136
136
  * removed.
137
137
  */
138
138
  deregisterPreparation(prepDataDir: string): boolean;
139
139
  /**
140
- * Most recently active workspace, or the first registered if none has
140
+ * Most recently active preparation, or the first registered if none has
141
141
  * activity yet. Server code uses this as the fallback when a request
142
- * omits the workspace header. Throws if no workspace is registered.
142
+ * does not specify a preparation. Throws if none are registered.
143
143
  */
144
144
  defaultPreparationDataDir(): string;
145
- /** Look up a workspace context by rootPath. */
145
+ /** Look up a preparation context by rootPath. */
146
146
  getPreparationContext(prepDataDir: string): PreparationContext | null;
147
- /** All registered workspaces, ordered by registration time. */
147
+ /** All registered preparations, ordered by registration time. */
148
148
  listRegisteredPreparations(): PreparationContext[];
149
- /** True when no workspaces are registered. */
150
- hasNoWorkspaces(): boolean;
151
- /** Number of registered workspaces. */
149
+ /** True when no preparations are registered. */
150
+ hasNoPreparations(): boolean;
151
+ /** Number of registered preparations. */
152
152
  registeredPreparationCount(): number;
153
153
  /** Increment in-flight run counter. Call when a long-running run starts. */
154
154
  beginActiveRun(): void;
155
155
  /** Decrement in-flight run counter. Pair with `beginActiveRun`. */
156
156
  endActiveRun(): void;
157
- /** Sum of in-flight runs across all workspaces. */
157
+ /** Sum of in-flight runs across all preparations. */
158
158
  activeRuns(): number;
159
159
  /**
160
- * Mark the workspace as recently active. Routes call this on entry so
160
+ * Mark the preparation as recently active. Routes call this on entry so
161
161
  * `idleForSeconds` and the registry snapshots stay in sync with the
162
162
  * actual request cadence.
163
163
  */
164
164
  touchPreparation(prepDataDir: string): void;
165
- /** Snapshot of registered workspaces for the registry / status output. */
165
+ /**
166
+ * Snapshot of registered preparations for the registry / status output.
167
+ * Wire shape (`ServiceRegistryWorkspace`) keeps the legacy
168
+ * "workspace" name for backward compatibility with the public health
169
+ * response and `~/.interf/services.json`. Synthetic-workspace bridge
170
+ * code; do not rename without coordinating an API break.
171
+ */
166
172
  registeredPreparationSnapshots(): ServiceRegistryWorkspace[];
167
- /** Seconds since the most recent workspace activity (0 if active). */
173
+ /** Seconds since the most recent preparation activity (0 if active). */
168
174
  idleForSeconds(): number;
169
175
  health(prepDataDir?: string): LocalServiceHealth;
170
176
  listPreparations(prepDataDir: string): PreparationResource[];
@@ -184,25 +190,50 @@ export declare class LocalServiceRuntime {
184
190
  getJobEvents(prepDataDir: string, runId: string): LocalJobEvent[] | null;
185
191
  getExecutorStatus(): LocalExecutorStatus;
186
192
  selectExecutor(requestValue: unknown): LocalExecutorStatus;
193
+ /**
194
+ * Snapshot of the merged agents registry (built-in detected + custom)
195
+ * with the current role-map and resolved active agent.
196
+ */
197
+ getAgentsRegistry(): {
198
+ agents: import("../contracts/lib/schema.js").AgentRecord[];
199
+ role_map: import("../contracts/lib/schema.js").RoleMap;
200
+ active_agent: import("../contracts/lib/schema.js").AgentRecord | null;
201
+ };
202
+ registerCustomAgent(input: {
203
+ name: string;
204
+ display_name: string;
205
+ command: string;
206
+ }): {
207
+ agents: import("../contracts/lib/schema.js").AgentRecord[];
208
+ role_map: import("../contracts/lib/schema.js").RoleMap;
209
+ active_agent: import("../contracts/lib/schema.js").AgentRecord | null;
210
+ };
211
+ unregisterCustomAgent(name: string): {
212
+ agents: import("../contracts/lib/schema.js").AgentRecord[];
213
+ role_map: import("../contracts/lib/schema.js").RoleMap;
214
+ active_agent: import("../contracts/lib/schema.js").AgentRecord | null;
215
+ };
216
+ patchAgentsRoleMap(patch: Record<string, string>): {
217
+ role_map: import("../contracts/lib/schema.js").RoleMap;
218
+ active_agent: import("../contracts/lib/schema.js").AgentRecord | null;
219
+ };
187
220
  listActionProposals(prepDataDir: string): ActionProposalResource[];
188
221
  getActionProposal(prepDataDir: string, proposalId: string): ActionProposalResource | null;
189
222
  createActionProposal(prepDataDir: string, requestValue: unknown): Promise<ActionProposalResource>;
190
223
  decideActionProposal(prepDataDir: string, proposalId: string, requestValue: unknown): Promise<ActionProposalResource | null>;
191
224
  listRunObservability(prepDataDir: string): RunObservabilityResource[];
192
225
  getRunObservability(prepDataDir: string, runId: string): RunObservabilityResource | null;
226
+ /**
227
+ * Method-scoped runs: every method-authoring or method-improvement job
228
+ * whose `method` matches `methodId`. Surfaced through
229
+ * `GET /v1/methods/<id>/runs` so Method Detail can show the full audit
230
+ * trail of authoring + improvement work for a Method.
231
+ */
232
+ listMethodRuns(prepDataDir: string, methodId: string): RunObservabilityResource[];
193
233
  private createJobRun;
194
234
  private appendJobRunEvent;
195
235
  createReadinessCheckDraftRun(prepDataDir: string, requestValue: unknown): Promise<LocalJobRunResource>;
196
236
  applyMethodChange(prepDataDir: string, requestValue: unknown): MethodChangeResult;
197
- /**
198
- * Bootstrap the workspace's source-folder binding and seed the default
199
- * Method. Idempotent: re-running with the same source folder preserves
200
- * existing preparations and reports `changed: false`.
201
- *
202
- * The CLI calls this in place of writing `interf.json` directly, so the
203
- * operation is recorded by the service (and visible to other clients).
204
- */
205
- bootstrapWorkspace(prepDataDir: string, requestValue: unknown): WorkspaceBootstrapResult;
206
237
  applyPreparationSetup(prepDataDir: string, requestValue: unknown): PreparationSetupResult;
207
238
  applyPreparationChange(prepDataDir: string, requestValue: unknown): PreparationChangeResult;
208
239
  applyReset(prepDataDir: string, requestValue: unknown): ResetResult;
@@ -230,8 +261,8 @@ export declare class LocalServiceRuntime {
230
261
  /**
231
262
  * Look up the run id previously associated with this idempotency key in
232
263
  * `prepDataDir`. Returns null when the key is unknown or its TTL has
233
- * elapsed. The workspace argument is required so that the same key in
234
- * two different workspaces always returns two different runs.
264
+ * elapsed. The preparation argument is required so that the same key in
265
+ * two different preparations always returns two different runs.
235
266
  */
236
267
  findIdempotentCompileRun(prepDataDir: string, key: string): string | null;
237
268
  /**
@@ -242,7 +273,7 @@ export declare class LocalServiceRuntime {
242
273
  * when the cache grows past {@link IDEMPOTENCY_PRUNE_THRESHOLD}.
243
274
  */
244
275
  recordIdempotentCompileRun(prepDataDir: string, key: string, runId: string): void;
245
- /** Total cached idempotency entries across all workspaces. */
276
+ /** Total cached idempotency entries across all preparations. */
246
277
  private totalIdempotencyEntries;
247
278
  private pruneIdempotencyKeyCache;
248
279
  /**
@@ -253,10 +284,10 @@ export declare class LocalServiceRuntime {
253
284
  * unrelated runtime state.
254
285
  */
255
286
  expireIdempotencyKeyForTesting(prepDataDir: string, key: string): boolean;
256
- listTestRuns(prepDataDir: string): TestRunResource[];
257
- listTestRunsForPreparation(prepDataDir: string, preparationName: string): TestRunResource[];
258
- getTestRun(prepDataDir: string, runId: string): TestRunResource | null;
259
- createTestRun(prepDataDir: string, requestValue: unknown): Promise<TestRunResource>;
287
+ listVerifyRuns(prepDataDir: string): VerifyRunResource[];
288
+ listVerifyRunsForPreparation(prepDataDir: string, preparationName: string): VerifyRunResource[];
289
+ getVerifyRun(prepDataDir: string, runId: string): VerifyRunResource | null;
290
+ createVerifyRun(prepDataDir: string, requestValue: unknown): Promise<VerifyRunResource>;
260
291
  private runCompileInBackground;
261
292
  private runTestInBackground;
262
293
  private runReadinessCheckDraftInBackground;
@@ -282,6 +313,6 @@ export declare class LocalServiceRuntime {
282
313
  private readLatestReadinessRun;
283
314
  private checksEvaluatedEvent;
284
315
  private readinessUpdatedEvent;
285
- private writeTestRun;
316
+ private writeVerifyRun;
286
317
  }
287
318
  export declare function createLocalServiceRuntime(options: LocalServiceRuntimeOptions): LocalServiceRuntime;