@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,71 +3,73 @@
3
3
  "version": 1,
4
4
  "target_type": "compiled",
5
5
  "label": "Interf built-in Method schema",
6
- "zones": [
6
+ "artifacts": [
7
+ {
8
+ "id": "atlas",
9
+ "description": "Primary entrypoint note that agents read first. Routes to summaries, knowledge entities, claims, and indexes.",
10
+ "shape": { "kind": "path", "path": "home.md", "artifact_kind": "file" },
11
+ "checks": [
12
+ { "id": "exists", "kind": "file_exists", "required": true },
13
+ {
14
+ "id": "no-placeholder",
15
+ "kind": "must_not_contain",
16
+ "required": true,
17
+ "params": { "phrases": ["Not yet compiled."] }
18
+ },
19
+ { "id": "wikilinks", "kind": "wikilinks_valid", "required": true }
20
+ ],
21
+ "built_by_stages": ["shape"]
22
+ },
7
23
  {
8
24
  "id": "summaries",
9
- "role": "working",
10
- "path": "summaries",
11
- "kind": "directory",
12
- "required": true,
13
- "owned_by": [
14
- "summarize"
25
+ "description": "Per-file evidence notes that preserve the source-grounded synthesis agents quote against.",
26
+ "shape": { "kind": "path", "path": "summaries", "artifact_kind": "directory" },
27
+ "checks": [
28
+ {
29
+ "id": "all-files-summarized",
30
+ "kind": "min_file_count_matches_source",
31
+ "required": true,
32
+ "params": { "match": "source_total" }
33
+ },
34
+ { "id": "frontmatter-valid", "kind": "frontmatter_valid", "required": true },
35
+ {
36
+ "id": "evidence-keys",
37
+ "kind": "frontmatter_required_keys",
38
+ "required": true,
39
+ "params": { "keys": ["source", "source_kind", "evidence_tier", "truth_mode", "state"] }
40
+ }
15
41
  ],
16
- "description": "Per-file evidence notes produced by file-evidence stages."
42
+ "built_by_stages": ["summarize"]
17
43
  },
18
44
  {
19
45
  "id": "knowledge-entities",
20
- "role": "output",
21
- "path": "knowledge/entities",
22
- "kind": "directory",
23
- "required": true,
24
- "owned_by": [
25
- "structure"
46
+ "description": "Canonical entity notes that anchor the cross-file knowledge structure.",
47
+ "shape": { "kind": "path", "path": "knowledge/entities", "artifact_kind": "directory" },
48
+ "checks": [
49
+ { "id": "exists", "kind": "min_file_count", "required": true, "params": { "min": 1 } },
50
+ { "id": "wikilinks", "kind": "wikilinks_valid", "required": true }
26
51
  ],
27
- "description": "Canonical entity notes produced by knowledge-structure stages."
52
+ "built_by_stages": ["structure"]
28
53
  },
29
54
  {
30
55
  "id": "knowledge-claims",
31
- "role": "output",
32
- "path": "knowledge/claims",
33
- "kind": "directory",
34
- "required": true,
35
- "owned_by": [
36
- "structure"
56
+ "description": "Claim notes extracted from summaries with evidence references.",
57
+ "shape": { "kind": "path", "path": "knowledge/claims", "artifact_kind": "directory" },
58
+ "checks": [
59
+ { "id": "exists", "kind": "min_file_count", "required": true, "params": { "min": 1 } },
60
+ { "id": "wikilinks", "kind": "wikilinks_valid", "required": true }
37
61
  ],
38
- "description": "Claim notes produced by knowledge-structure stages."
62
+ "built_by_stages": ["structure"]
39
63
  },
40
64
  {
41
65
  "id": "knowledge-indexes",
42
- "role": "output",
43
- "path": "knowledge/indexes",
44
- "kind": "directory",
45
- "required": true,
46
- "owned_by": [
47
- "structure",
48
- "shape"
49
- ],
50
- "description": "Retrieval indexes and navigation notes produced by structure and shape stages."
51
- },
52
- {
53
- "id": "home",
54
- "role": "output",
55
- "path": "home.md",
56
- "kind": "file",
57
- "required": true,
58
- "owned_by": [
59
- "shape"
66
+ "description": "Retrieval indexes and navigation notes for the knowledge structure.",
67
+ "shape": { "kind": "path", "path": "knowledge/indexes", "artifact_kind": "directory" },
68
+ "checks": [
69
+ { "id": "exists", "kind": "min_file_count", "required": true, "params": { "min": 1 } },
70
+ { "id": "wikilinks", "kind": "wikilinks_valid", "required": true }
60
71
  ],
61
- "description": "Primary entrypoint note for agents using the portable context."
62
- },
63
- {
64
- "id": "runtime",
65
- "role": "runtime",
66
- "path": ".interf/runtime",
67
- "kind": "runtime",
68
- "required": true,
69
- "owned_by": [],
70
- "description": "CLI-owned runtime state, health, stage contracts, and proof artifacts."
72
+ "built_by_stages": ["structure", "shape"]
71
73
  }
72
74
  ]
73
75
  }
@@ -0,0 +1,2 @@
1
+ import type { CommandModule } from "yargs";
2
+ export declare const agentsCommand: CommandModule;
@@ -0,0 +1,213 @@
1
+ /**
2
+ * `interf agents` — manage connected agents + role mapping.
3
+ *
4
+ * interf agents ls # list registered + detected
5
+ * interf agents use <name> # set active agent
6
+ * interf agents register <name> --command <cmd> [--display-name <s>]
7
+ * interf agents unregister <name> # custom CLIs only
8
+ * interf agents map <role> <agent> # pin a role to an agent
9
+ * interf agents unmap <role> # clear a role
10
+ *
11
+ * All subcommands hit the connected local service. They never touch
12
+ * `~/.interf/agents.json` directly — the service is the source of truth.
13
+ */
14
+ import chalk from "chalk";
15
+ import { CONNECT_OR_ERROR_HINT, readActiveConnection, } from "../../packages/engine/connection-config.js";
16
+ function resolveConnection(args) {
17
+ const conn = readActiveConnection({
18
+ urlOverride: args.url,
19
+ authTokenOverride: args.token,
20
+ });
21
+ if (!conn) {
22
+ console.error(CONNECT_OR_ERROR_HINT);
23
+ process.exit(1);
24
+ }
25
+ return { url: conn.url.replace(/\/+$/, ""), token: conn.auth_token };
26
+ }
27
+ async function callJson(url, token, init = {}) {
28
+ const headers = new Headers(init.headers ?? {});
29
+ if (token)
30
+ headers.set("authorization", `Bearer ${token}`);
31
+ if (init.body && !headers.has("content-type")) {
32
+ headers.set("content-type", "application/json");
33
+ }
34
+ const response = await fetch(url, { ...init, headers });
35
+ const raw = await response.text();
36
+ let body = null;
37
+ if (raw.length > 0) {
38
+ try {
39
+ body = JSON.parse(raw);
40
+ }
41
+ catch {
42
+ body = null;
43
+ }
44
+ }
45
+ return { status: response.status, body, raw };
46
+ }
47
+ function formatAgentLine(agent, registry) {
48
+ const isActive = agent.name === registry.active_agent?.name;
49
+ const sourceLabel = agent.source === "builtin" ? "builtin" : "user";
50
+ const activeMarker = isActive ? chalk.green(" (active)") : "";
51
+ const availabilityMarker = agent.available === false ? chalk.yellow(" (not installed)") : "";
52
+ return ` ${chalk.bold(agent.name)} ${chalk.dim(`[${sourceLabel}]`)} ${chalk.dim(agent.display_name)} — ${chalk.dim(agent.command)}${activeMarker}${availabilityMarker}`;
53
+ }
54
+ function printRegistry(registry) {
55
+ if (registry.agents.length === 0) {
56
+ console.log();
57
+ console.log(chalk.yellow(" No agents available."));
58
+ console.log();
59
+ console.log(" Install Claude Code, Codex, Gemini, or another agent CLI,");
60
+ console.log(" or register a custom CLI: `interf agents register <name> --command <cmd>`.");
61
+ console.log();
62
+ return;
63
+ }
64
+ console.log();
65
+ console.log(chalk.bold(" Connected agents"));
66
+ for (const agent of registry.agents) {
67
+ console.log(formatAgentLine(agent, registry));
68
+ }
69
+ if (Object.keys(registry.role_map).length > 0) {
70
+ console.log();
71
+ console.log(chalk.bold(" Role mapping"));
72
+ for (const [role, agentName] of Object.entries(registry.role_map)) {
73
+ console.log(` ${chalk.bold(role.padEnd(11))} → ${agentName}`);
74
+ }
75
+ }
76
+ console.log();
77
+ }
78
+ export const agentsCommand = {
79
+ command: "agents <subcommand>",
80
+ describe: "Manage connected agents and role mapping",
81
+ builder: (yargs) => yargs
82
+ .option("url", { type: "string", describe: "Override the active connection URL" })
83
+ .option("token", { type: "string", describe: "Override the active bearer token" })
84
+ .command("ls", "List registered + detected agents", (y) => y, async (args) => {
85
+ const { url, token } = resolveConnection(args);
86
+ const { status, body, raw } = await callJson(`${url}/v1/agents`, token);
87
+ if (status !== 200 || !body) {
88
+ console.error(chalk.red(`Failed to list agents (HTTP ${status}).`));
89
+ if (raw)
90
+ console.error(raw);
91
+ process.exit(1);
92
+ }
93
+ printRegistry(body);
94
+ })
95
+ .command("use <name>", "Set the active agent (mirrors to role_map.general + sweeps roles still on the prior active)", (y) => y.positional("name", {
96
+ type: "string",
97
+ demandOption: true,
98
+ describe: "Agent name (e.g. claude-code, codex, opencode)",
99
+ }), async (args) => {
100
+ const { url, token } = resolveConnection(args);
101
+ const { status, body, raw } = await callJson(`${url}/v1/executor`, token, {
102
+ method: "POST",
103
+ body: JSON.stringify({ agent: args.name }),
104
+ });
105
+ if (status !== 200 && status !== 202) {
106
+ console.error(chalk.red(`Failed to set active agent (HTTP ${status}).`));
107
+ if (raw)
108
+ console.error(raw);
109
+ process.exit(1);
110
+ }
111
+ const display = body?.executor?.display_name ?? args.name;
112
+ console.log(chalk.green(` Active agent: ${chalk.bold(display)}.`));
113
+ })
114
+ .command("register <name>", "Register a custom agent CLI", (y) => y
115
+ .positional("name", {
116
+ type: "string",
117
+ demandOption: true,
118
+ describe: "Agent name (lowercase identifier, e.g. opencode)",
119
+ })
120
+ .option("command", {
121
+ type: "string",
122
+ demandOption: true,
123
+ describe: "Command to invoke (e.g. \"opencode --prompt\")",
124
+ })
125
+ .option("display-name", {
126
+ type: "string",
127
+ describe: "Human-readable name (defaults to the agent name)",
128
+ }), async (args) => {
129
+ const { url, token } = resolveConnection(args);
130
+ const displayName = args.displayName ?? args.name;
131
+ const { status, body, raw } = await callJson(`${url}/v1/agents`, token, {
132
+ method: "POST",
133
+ body: JSON.stringify({
134
+ name: args.name,
135
+ display_name: displayName,
136
+ command: args.command,
137
+ }),
138
+ });
139
+ if (status !== 201 || !body) {
140
+ console.error(chalk.red(`Failed to register agent (HTTP ${status}).`));
141
+ if (raw)
142
+ console.error(raw);
143
+ process.exit(1);
144
+ }
145
+ console.log(chalk.green(` Registered ${chalk.bold(args.name)} → ${args.command}.`));
146
+ printRegistry(body);
147
+ })
148
+ .command("unregister <name>", "Unregister a custom agent (built-ins cannot be unregistered)", (y) => y.positional("name", {
149
+ type: "string",
150
+ demandOption: true,
151
+ describe: "Agent name to remove",
152
+ }), async (args) => {
153
+ const { url, token } = resolveConnection(args);
154
+ const { status, body, raw } = await callJson(`${url}/v1/agents/${encodeURIComponent(args.name)}`, token, { method: "DELETE" });
155
+ if (status !== 200 || !body) {
156
+ console.error(chalk.red(`Failed to unregister agent (HTTP ${status}).`));
157
+ if (raw)
158
+ console.error(raw);
159
+ process.exit(1);
160
+ }
161
+ console.log(chalk.green(` Unregistered ${chalk.bold(args.name)}.`));
162
+ printRegistry(body);
163
+ })
164
+ .command("map <role> <agent>", "Map a role to an agent", (y) => y
165
+ .positional("role", {
166
+ type: "string",
167
+ demandOption: true,
168
+ describe: "Role name (e.g. extractor, summarizer, verifier, general)",
169
+ })
170
+ .positional("agent", {
171
+ type: "string",
172
+ demandOption: true,
173
+ describe: "Agent name to bind to the role",
174
+ }), async (args) => {
175
+ const { url, token } = resolveConnection(args);
176
+ const patch = { [args.role]: args.agent };
177
+ const { status, body, raw } = await callJson(`${url}/v1/agents/role-map`, token, {
178
+ method: "PATCH",
179
+ body: JSON.stringify(patch),
180
+ });
181
+ if (status !== 200 || !body) {
182
+ console.error(chalk.red(`Failed to update role map (HTTP ${status}).`));
183
+ if (raw)
184
+ console.error(raw);
185
+ process.exit(1);
186
+ }
187
+ console.log(chalk.green(` Mapped ${chalk.bold(args.role)} → ${args.agent}.`));
188
+ })
189
+ .command("unmap <role>", "Clear a role mapping (falls back to active agent)", (y) => y.positional("role", {
190
+ type: "string",
191
+ demandOption: true,
192
+ describe: "Role name to clear",
193
+ }), async (args) => {
194
+ const { url, token } = resolveConnection(args);
195
+ const patch = { [args.role]: "" };
196
+ const { status, raw } = await callJson(`${url}/v1/agents/role-map`, token, {
197
+ method: "PATCH",
198
+ body: JSON.stringify(patch),
199
+ });
200
+ if (status !== 200) {
201
+ console.error(chalk.red(`Failed to clear role mapping (HTTP ${status}).`));
202
+ if (raw)
203
+ console.error(raw);
204
+ process.exit(1);
205
+ }
206
+ console.log(chalk.green(` Cleared role ${chalk.bold(args.role)}.`));
207
+ })
208
+ .demandCommand(1)
209
+ .strict(),
210
+ handler: () => {
211
+ /* yargs subcommand handlers do the work */
212
+ },
213
+ };
@@ -8,7 +8,7 @@
8
8
  * Requires an active connection. Hits POST /v1/preparations/<id>/compile-runs.
9
9
  */
10
10
  import chalk from "chalk";
11
- import { CONNECT_OR_ERROR_HINT, readActiveConnection } from "../../packages/local-service/connection-config.js";
11
+ import { CONNECT_OR_ERROR_HINT, readActiveConnection } from "../../packages/engine/connection-config.js";
12
12
  function resolveConnection(args) {
13
13
  const conn = readActiveConnection({
14
14
  urlOverride: args.url,
@@ -51,6 +51,15 @@ export const compileCommand = {
51
51
  .option("token", { type: "string", describe: "Override the active bearer token" }),
52
52
  handler: async (args) => {
53
53
  const { url, token } = resolveConnection(args);
54
+ // 0.15 hard-error: refuse to start a compile if the engine has zero
55
+ // connected agents — the compile pipeline can't run without one.
56
+ const instance = await callJson(`${url}/v1/instance`, token);
57
+ if (instance.body && instance.body.agent_count === 0) {
58
+ console.error(chalk.red(" Cannot compile — no agents available."));
59
+ console.error(" Install Claude Code, Codex, Gemini, or another agent CLI, or");
60
+ console.error(" register a custom CLI: `interf agents register <name> --command <cmd>`.");
61
+ process.exit(1);
62
+ }
54
63
  const headers = {};
55
64
  if (args.idempotencyKey)
56
65
  headers["x-interf-idempotency-key"] = args.idempotencyKey;
@@ -1,5 +1,5 @@
1
1
  import chalk from "chalk";
2
- import { agents, userConfig } from "../../packages/agents/index.js";
2
+ import { agents, userConfig } from "../../packages/engine/agents/index.js";
3
3
  function iconFor(status) {
4
4
  if (status === "pass")
5
5
  return chalk.green("✓");
@@ -10,7 +10,7 @@
10
10
  * startup).
11
11
  */
12
12
  import chalk from "chalk";
13
- import { ConnectionRecordSchema, writeConnection, } from "../../packages/local-service/connection-config.js";
13
+ import { ConnectionRecordSchema, writeConnection, } from "../../packages/engine/connection-config.js";
14
14
  export const loginCommand = {
15
15
  command: "login",
16
16
  describe: "Set the active Interf instance connection (URL + optional bearer token)",
@@ -5,7 +5,7 @@
5
5
  * non-zero with the connect-or-error hint until a new connection is set.
6
6
  */
7
7
  import chalk from "chalk";
8
- import { clearConnection } from "../../packages/local-service/connection-config.js";
8
+ import { clearConnection } from "../../packages/engine/connection-config.js";
9
9
  export const logoutCommand = {
10
10
  command: "logout",
11
11
  describe: "Clear the active Interf instance connection",
@@ -0,0 +1,42 @@
1
+ /**
2
+ * `interf mcp` — Model Context Protocol server.
3
+ *
4
+ * Wraps the local-service HTTP API as a typed agent surface so coding
5
+ * agents can interact with Interf the same way they call other MCP tools
6
+ * (instead of shelling out to the CLI).
7
+ *
8
+ * interf mcp # stdio transport (default)
9
+ * interf mcp --transport=http --port=4889 # advanced: HTTP transport
10
+ *
11
+ * The server reads `~/.interf/connection.json` (the same file every other
12
+ * client uses) and exits non-zero with the connect-or-error hint if no
13
+ * instance is reachable. Tools call straight through to the API; the
14
+ * server itself holds no state. The transport options are intentionally
15
+ * minimal — agents speaking MCP today are stdio-first.
16
+ *
17
+ * Tool list mirrors the API verbatim:
18
+ * prep_list GET /v1/preparations
19
+ * prep_create POST /v1/preparations
20
+ * prep_show GET /v1/preparations/{id}
21
+ * prep_set_method PATCH /v1/preparations/{id}
22
+ * prep_remove DELETE /v1/preparations/{id}
23
+ * prep_compile POST /v1/preparations/{id}/compile-runs
24
+ * prep_verify POST /v1/preparations/{id}/verify-runs
25
+ * method_list GET /v1/methods
26
+ * method_install POST /v1/methods (preparation-scoped via `prep_id`)
27
+ * method_draft POST /v1/preparations/{id}/method-authoring-runs
28
+ * method_improve POST /v1/preparations/{id}/method-improvement-runs
29
+ * runs_status GET /v1/runs/{run-id}
30
+ * runs_watch GET /v1/runs/{run-id}/events (snapshot, not SSE)
31
+ * runs_cancel POST /v1/runs/{run-id}/cancel
32
+ * runs_fetch GET /v1/runs/{run-id}/artifacts
33
+ * instance_status GET /v1/instance
34
+ */
35
+ import type { CommandModule } from "yargs";
36
+ interface McpArgs {
37
+ transport?: "stdio" | "http";
38
+ url?: string;
39
+ token?: string;
40
+ }
41
+ export declare const mcpCommand: CommandModule<unknown, McpArgs>;
42
+ export {};