@interf/compiler 0.6.1 → 0.6.4

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 (391) hide show
  1. package/README.md +106 -80
  2. package/builtin-workflows/interf/README.md +5 -5
  3. package/builtin-workflows/interf/compile/stages/shape/SKILL.md +4 -4
  4. package/builtin-workflows/interf/improve/SKILL.md +2 -2
  5. package/builtin-workflows/interf/use/query/SKILL.md +1 -1
  6. package/builtin-workflows/interf/workflow.json +6 -6
  7. package/builtin-workflows/interf/workflow.schema.json +1 -1
  8. package/dist/bin.js +2 -28
  9. package/dist/{commands → cli/commands}/check-draft.d.ts +2 -2
  10. package/dist/{commands → cli/commands}/check-draft.js +16 -16
  11. package/dist/{commands → cli/commands}/compile-controller.d.ts +3 -3
  12. package/dist/{commands → cli/commands}/compile-controller.js +37 -35
  13. package/dist/{commands → cli/commands}/compile.d.ts +2 -2
  14. package/dist/{commands → cli/commands}/compile.js +15 -11
  15. package/dist/{commands → cli/commands}/compiled-flow.d.ts +3 -4
  16. package/dist/{commands → cli/commands}/compiled-flow.js +9 -14
  17. package/dist/{commands → cli/commands}/create-workflow-wizard.d.ts +3 -3
  18. package/dist/{commands → cli/commands}/create-workflow-wizard.js +64 -37
  19. package/dist/{commands → cli/commands}/create.d.ts +1 -1
  20. package/dist/{commands → cli/commands}/create.js +15 -18
  21. package/dist/{commands → cli/commands}/dataset-selection.d.ts +1 -1
  22. package/dist/{commands → cli/commands}/default.js +3 -3
  23. package/dist/{commands → cli/commands}/doctor.js +5 -6
  24. package/dist/{commands → cli/commands}/executor-flow.d.ts +1 -1
  25. package/dist/{commands → cli/commands}/executor-flow.js +13 -16
  26. package/dist/{commands → cli/commands}/init.d.ts +4 -1
  27. package/dist/{commands → cli/commands}/init.js +162 -77
  28. package/dist/{commands → cli/commands}/list.js +6 -6
  29. package/dist/{commands → cli/commands}/reset.js +4 -4
  30. package/dist/{commands → cli/commands}/source-config-wizard.d.ts +9 -4
  31. package/dist/{commands → cli/commands}/source-config-wizard.js +168 -94
  32. package/dist/{commands → cli/commands}/status.js +20 -11
  33. package/dist/{commands → cli/commands}/test-flow.d.ts +13 -4
  34. package/dist/{commands → cli/commands}/test-flow.js +52 -48
  35. package/dist/cli/commands/test.d.ts +14 -0
  36. package/dist/{commands → cli/commands}/test.js +40 -24
  37. package/dist/{commands → cli/commands}/verify.js +4 -4
  38. package/dist/cli/index.d.ts +21 -0
  39. package/dist/cli/index.js +33 -0
  40. package/dist/index.d.ts +22 -11
  41. package/dist/index.js +15 -6
  42. package/dist/lib/agent-args.d.ts +1 -4
  43. package/dist/lib/agent-args.js +1 -52
  44. package/dist/lib/agent-constants.d.ts +1 -5
  45. package/dist/lib/agent-constants.js +1 -28
  46. package/dist/lib/agent-detection.d.ts +1 -7
  47. package/dist/lib/agent-detection.js +1 -65
  48. package/dist/lib/agent-execution.d.ts +1 -2
  49. package/dist/lib/agent-execution.js +1 -243
  50. package/dist/lib/agent-logs.d.ts +1 -2
  51. package/dist/lib/agent-logs.js +1 -17
  52. package/dist/lib/agent-preflight.d.ts +1 -7
  53. package/dist/lib/agent-preflight.js +1 -77
  54. package/dist/lib/agent-render.d.ts +1 -8
  55. package/dist/lib/agent-render.js +1 -218
  56. package/dist/lib/agent-shells.d.ts +1 -69
  57. package/dist/lib/agent-shells.js +1 -1021
  58. package/dist/lib/agent-status.d.ts +1 -3
  59. package/dist/lib/agent-status.js +1 -58
  60. package/dist/lib/agent-types.d.ts +1 -30
  61. package/dist/lib/agent-types.js +1 -1
  62. package/dist/lib/agents.d.ts +1 -6
  63. package/dist/lib/agents.js +1 -5
  64. package/dist/lib/builtin-compiled-workflow.d.ts +1 -38
  65. package/dist/lib/builtin-compiled-workflow.js +1 -94
  66. package/dist/lib/chart-guidance.d.ts +1 -1
  67. package/dist/lib/chart-guidance.js +1 -8
  68. package/dist/lib/compiled-compile.d.ts +1 -48
  69. package/dist/lib/compiled-compile.js +1 -255
  70. package/dist/lib/compiled-paths.d.ts +1 -40
  71. package/dist/lib/compiled-paths.js +3 -106
  72. package/dist/lib/compiled-raw.d.ts +1 -49
  73. package/dist/lib/compiled-raw.js +3 -102
  74. package/dist/lib/compiled-reset.d.ts +1 -2
  75. package/dist/lib/compiled-reset.js +3 -72
  76. package/dist/lib/compiled-schema.d.ts +1 -31
  77. package/dist/lib/compiled-schema.js +1 -141
  78. package/dist/lib/discovery.d.ts +1 -7
  79. package/dist/lib/discovery.js +1 -84
  80. package/dist/lib/execution-profile.d.ts +1 -17
  81. package/dist/lib/execution-profile.js +1 -84
  82. package/dist/lib/executors.d.ts +1 -32
  83. package/dist/lib/executors.js +1 -43
  84. package/dist/lib/filesystem.d.ts +1 -2
  85. package/dist/lib/filesystem.js +1 -55
  86. package/dist/lib/interf-bootstrap.d.ts +1 -3
  87. package/dist/lib/interf-bootstrap.js +3 -18
  88. package/dist/lib/interf-detect.d.ts +1 -33
  89. package/dist/lib/interf-detect.js +3 -176
  90. package/dist/lib/interf-scaffold.d.ts +1 -2
  91. package/dist/lib/interf-scaffold.js +3 -114
  92. package/dist/lib/interf-workflow-package.d.ts +1 -25
  93. package/dist/lib/interf-workflow-package.js +1 -342
  94. package/dist/lib/interf.d.ts +1 -5
  95. package/dist/lib/interf.js +3 -4
  96. package/dist/lib/local-workflows.d.ts +1 -54
  97. package/dist/lib/local-workflows.js +1 -422
  98. package/dist/lib/logger.d.ts +1 -3
  99. package/dist/lib/logger.js +1 -10
  100. package/dist/lib/package-root.d.ts +1 -0
  101. package/dist/lib/package-root.js +1 -0
  102. package/dist/lib/parse.d.ts +1 -8
  103. package/dist/lib/parse.js +1 -145
  104. package/dist/lib/project-paths.d.ts +1 -11
  105. package/dist/lib/project-paths.js +3 -32
  106. package/dist/lib/runtime-acceptance.d.ts +1 -9
  107. package/dist/lib/runtime-acceptance.js +1 -269
  108. package/dist/lib/runtime-contracts.d.ts +1 -2
  109. package/dist/lib/runtime-contracts.js +1 -48
  110. package/dist/lib/runtime-inventory.d.ts +1 -7
  111. package/dist/lib/runtime-inventory.js +1 -29
  112. package/dist/lib/runtime-paths.d.ts +1 -8
  113. package/dist/lib/runtime-paths.js +1 -26
  114. package/dist/lib/runtime-prompt.d.ts +1 -2
  115. package/dist/lib/runtime-prompt.js +1 -48
  116. package/dist/lib/runtime-reconcile.d.ts +1 -2
  117. package/dist/lib/runtime-reconcile.js +1 -193
  118. package/dist/lib/runtime-runs.d.ts +1 -11
  119. package/dist/lib/runtime-runs.js +1 -262
  120. package/dist/lib/runtime-types.d.ts +1 -43
  121. package/dist/lib/runtime-types.js +1 -1
  122. package/dist/lib/runtime.d.ts +1 -6
  123. package/dist/lib/runtime.js +1 -5
  124. package/dist/lib/schema.d.ts +4 -1073
  125. package/dist/lib/schema.js +6 -542
  126. package/dist/lib/source-config.d.ts +1 -39
  127. package/dist/lib/source-config.js +3 -293
  128. package/dist/lib/state-artifacts.d.ts +1 -8
  129. package/dist/lib/state-artifacts.js +1 -13
  130. package/dist/lib/state-health.d.ts +1 -4
  131. package/dist/lib/state-health.js +1 -132
  132. package/dist/lib/state-io.d.ts +1 -10
  133. package/dist/lib/state-io.js +1 -76
  134. package/dist/lib/state-paths.d.ts +1 -4
  135. package/dist/lib/state-paths.js +1 -13
  136. package/dist/lib/state-view.d.ts +1 -4
  137. package/dist/lib/state-view.js +1 -103
  138. package/dist/lib/state.d.ts +1 -7
  139. package/dist/lib/state.js +1 -12
  140. package/dist/lib/test-execution.d.ts +1 -14
  141. package/dist/lib/test-execution.js +3 -525
  142. package/dist/lib/test-matrices.d.ts +1 -90
  143. package/dist/lib/test-matrices.js +3 -96
  144. package/dist/lib/test-paths.d.ts +1 -12
  145. package/dist/lib/test-paths.js +3 -59
  146. package/dist/lib/test-profile-presets.d.ts +1 -57
  147. package/dist/lib/test-profile-presets.js +3 -50
  148. package/dist/lib/test-sandbox.d.ts +1 -11
  149. package/dist/lib/test-sandbox.js +3 -105
  150. package/dist/lib/test-specs.d.ts +1 -7
  151. package/dist/lib/test-specs.js +3 -114
  152. package/dist/lib/test-targets.d.ts +1 -5
  153. package/dist/lib/test-targets.js +3 -38
  154. package/dist/lib/test-types.d.ts +1 -17
  155. package/dist/lib/test-types.js +3 -1
  156. package/dist/lib/test.d.ts +1 -4
  157. package/dist/lib/test.js +3 -3
  158. package/dist/lib/util.d.ts +1 -4
  159. package/dist/lib/util.js +1 -25
  160. package/dist/lib/validate-compiled.d.ts +1 -27
  161. package/dist/lib/validate-compiled.js +1 -241
  162. package/dist/lib/validate-helpers.d.ts +1 -12
  163. package/dist/lib/validate-helpers.js +1 -41
  164. package/dist/lib/validate.d.ts +1 -21
  165. package/dist/lib/validate.js +1 -249
  166. package/dist/lib/workflow-authoring.d.ts +1 -26
  167. package/dist/lib/workflow-authoring.js +1 -119
  168. package/dist/lib/workflow-definitions.d.ts +1 -78
  169. package/dist/lib/workflow-definitions.js +1 -203
  170. package/dist/lib/workflow-edit-session.d.ts +1 -16
  171. package/dist/lib/workflow-edit-session.js +1 -57
  172. package/dist/lib/workflow-edit-utils.d.ts +1 -10
  173. package/dist/lib/workflow-edit-utils.js +1 -39
  174. package/dist/lib/workflow-helpers.d.ts +1 -38
  175. package/dist/lib/workflow-helpers.js +1 -167
  176. package/dist/lib/workflow-improvement.d.ts +1 -22
  177. package/dist/lib/workflow-improvement.js +1 -209
  178. package/dist/lib/workflow-primitives.d.ts +1 -2
  179. package/dist/lib/workflow-primitives.js +1 -5
  180. package/dist/lib/workflow-review-paths.d.ts +1 -10
  181. package/dist/lib/workflow-review-paths.js +1 -27
  182. package/dist/lib/workflow-stage-policy.d.ts +1 -5
  183. package/dist/lib/workflow-stage-policy.js +1 -31
  184. package/dist/lib/workflow-stage-runner.d.ts +1 -41
  185. package/dist/lib/workflow-stage-runner.js +1 -109
  186. package/dist/lib/workflows.d.ts +1 -15
  187. package/dist/lib/workflows.js +1 -31
  188. package/dist/packages/agents/index.d.ts +18 -0
  189. package/dist/packages/agents/index.js +16 -0
  190. package/dist/packages/agents/lib/agents.d.ts +6 -0
  191. package/dist/packages/agents/lib/agents.js +5 -0
  192. package/dist/packages/agents/lib/args.d.ts +4 -0
  193. package/dist/packages/agents/lib/args.js +52 -0
  194. package/dist/packages/agents/lib/chart-guidance.d.ts +1 -0
  195. package/dist/packages/agents/lib/chart-guidance.js +8 -0
  196. package/dist/packages/agents/lib/compiled-bootstrap.d.ts +3 -0
  197. package/dist/packages/agents/lib/compiled-bootstrap.js +18 -0
  198. package/dist/packages/agents/lib/constants.d.ts +5 -0
  199. package/dist/packages/agents/lib/constants.js +28 -0
  200. package/dist/packages/agents/lib/detection.d.ts +7 -0
  201. package/dist/packages/agents/lib/detection.js +65 -0
  202. package/dist/packages/agents/lib/execution-profile.d.ts +17 -0
  203. package/dist/packages/agents/lib/execution-profile.js +84 -0
  204. package/dist/packages/agents/lib/execution.d.ts +2 -0
  205. package/dist/packages/agents/lib/execution.js +243 -0
  206. package/dist/packages/agents/lib/executors.d.ts +32 -0
  207. package/dist/packages/agents/lib/executors.js +45 -0
  208. package/dist/packages/agents/lib/logs.d.ts +2 -0
  209. package/dist/packages/agents/lib/logs.js +17 -0
  210. package/dist/packages/agents/lib/preflight.d.ts +7 -0
  211. package/dist/packages/agents/lib/preflight.js +77 -0
  212. package/dist/packages/agents/lib/render.d.ts +8 -0
  213. package/dist/packages/agents/lib/render.js +218 -0
  214. package/dist/packages/agents/lib/schema.d.ts +8 -0
  215. package/dist/packages/agents/lib/schema.js +7 -0
  216. package/dist/packages/agents/lib/shells.d.ts +71 -0
  217. package/dist/packages/agents/lib/shells.js +1023 -0
  218. package/dist/packages/agents/lib/status.d.ts +3 -0
  219. package/dist/packages/agents/lib/status.js +58 -0
  220. package/dist/packages/agents/lib/types.d.ts +30 -0
  221. package/dist/packages/agents/lib/types.js +1 -0
  222. package/dist/{lib → packages/agents/lib}/user-config.d.ts +1 -0
  223. package/dist/{lib → packages/agents/lib}/user-config.js +3 -2
  224. package/dist/packages/compiler/compiled-compile.d.ts +4 -0
  225. package/dist/packages/compiler/compiled-compile.js +4 -0
  226. package/dist/packages/compiler/compiled-paths.d.ts +40 -0
  227. package/dist/packages/compiler/compiled-paths.js +106 -0
  228. package/dist/packages/compiler/compiled-pipeline.d.ts +39 -0
  229. package/dist/packages/compiler/compiled-pipeline.js +134 -0
  230. package/dist/packages/compiler/compiled-schema.d.ts +31 -0
  231. package/dist/packages/compiler/compiled-schema.js +141 -0
  232. package/dist/packages/compiler/compiled-stage-plan.d.ts +15 -0
  233. package/dist/packages/compiler/compiled-stage-plan.js +79 -0
  234. package/dist/packages/compiler/compiled-stage-runner.d.ts +10 -0
  235. package/dist/packages/compiler/compiled-stage-runner.js +46 -0
  236. package/dist/packages/compiler/compiled-target.d.ts +11 -0
  237. package/dist/packages/compiler/compiled-target.js +16 -0
  238. package/dist/packages/compiler/discovery.d.ts +7 -0
  239. package/dist/packages/compiler/discovery.js +80 -0
  240. package/dist/packages/compiler/index.d.ts +24 -0
  241. package/dist/packages/compiler/index.js +23 -0
  242. package/dist/packages/compiler/lib/schema.d.ts +684 -0
  243. package/dist/packages/compiler/lib/schema.js +363 -0
  244. package/dist/packages/compiler/raw-snapshot.d.ts +49 -0
  245. package/dist/packages/compiler/raw-snapshot.js +102 -0
  246. package/dist/packages/compiler/reset.d.ts +2 -0
  247. package/dist/packages/compiler/reset.js +72 -0
  248. package/dist/packages/compiler/runtime-acceptance.d.ts +9 -0
  249. package/dist/packages/compiler/runtime-acceptance.js +269 -0
  250. package/dist/packages/compiler/runtime-contracts.d.ts +2 -0
  251. package/dist/packages/compiler/runtime-contracts.js +48 -0
  252. package/dist/packages/compiler/runtime-inventory.d.ts +7 -0
  253. package/dist/packages/compiler/runtime-inventory.js +29 -0
  254. package/dist/packages/compiler/runtime-paths.d.ts +8 -0
  255. package/dist/packages/compiler/runtime-paths.js +26 -0
  256. package/dist/packages/compiler/runtime-prompt.d.ts +2 -0
  257. package/dist/packages/compiler/runtime-prompt.js +48 -0
  258. package/dist/packages/compiler/runtime-reconcile.d.ts +2 -0
  259. package/dist/packages/compiler/runtime-reconcile.js +193 -0
  260. package/dist/packages/compiler/runtime-runs.d.ts +11 -0
  261. package/dist/packages/compiler/runtime-runs.js +262 -0
  262. package/dist/packages/compiler/runtime-types.d.ts +43 -0
  263. package/dist/packages/compiler/runtime-types.js +1 -0
  264. package/dist/packages/compiler/runtime.d.ts +6 -0
  265. package/dist/packages/compiler/runtime.js +5 -0
  266. package/dist/packages/compiler/state-artifacts.d.ts +8 -0
  267. package/dist/packages/compiler/state-artifacts.js +13 -0
  268. package/dist/packages/compiler/state-health.d.ts +4 -0
  269. package/dist/packages/compiler/state-health.js +132 -0
  270. package/dist/packages/compiler/state-io.d.ts +10 -0
  271. package/dist/packages/compiler/state-io.js +76 -0
  272. package/dist/packages/compiler/state-paths.d.ts +4 -0
  273. package/dist/packages/compiler/state-paths.js +13 -0
  274. package/dist/packages/compiler/state-view.d.ts +4 -0
  275. package/dist/packages/compiler/state-view.js +103 -0
  276. package/dist/packages/compiler/state.d.ts +7 -0
  277. package/dist/packages/compiler/state.js +12 -0
  278. package/dist/packages/compiler/validate-compiled.d.ts +27 -0
  279. package/dist/packages/compiler/validate-compiled.js +241 -0
  280. package/dist/packages/compiler/validate-helpers.d.ts +12 -0
  281. package/dist/packages/compiler/validate-helpers.js +41 -0
  282. package/dist/packages/compiler/validate.d.ts +21 -0
  283. package/dist/packages/compiler/validate.js +249 -0
  284. package/dist/packages/compiler/workflow-primitives.d.ts +2 -0
  285. package/dist/packages/compiler/workflow-primitives.js +5 -0
  286. package/dist/packages/compiler/workflows.d.ts +15 -0
  287. package/dist/packages/compiler/workflows.js +31 -0
  288. package/dist/packages/project-model/compiled-paths.d.ts +1 -0
  289. package/dist/packages/project-model/compiled-paths.js +1 -0
  290. package/dist/packages/project-model/compiled-raw.d.ts +1 -0
  291. package/dist/packages/project-model/compiled-raw.js +1 -0
  292. package/dist/packages/project-model/compiled-reset.d.ts +1 -0
  293. package/dist/packages/project-model/compiled-reset.js +1 -0
  294. package/dist/packages/project-model/index.d.ts +11 -0
  295. package/dist/packages/project-model/index.js +10 -0
  296. package/dist/packages/project-model/interf-bootstrap.d.ts +1 -0
  297. package/dist/packages/project-model/interf-bootstrap.js +1 -0
  298. package/dist/packages/project-model/interf-detect.d.ts +33 -0
  299. package/dist/packages/project-model/interf-detect.js +176 -0
  300. package/dist/packages/project-model/interf-scaffold.d.ts +2 -0
  301. package/dist/packages/project-model/interf-scaffold.js +124 -0
  302. package/dist/packages/project-model/interf.d.ts +5 -0
  303. package/dist/packages/project-model/interf.js +4 -0
  304. package/dist/packages/project-model/lib/schema.d.ts +125 -0
  305. package/dist/packages/project-model/lib/schema.js +62 -0
  306. package/dist/packages/project-model/project-paths.d.ts +11 -0
  307. package/dist/packages/project-model/project-paths.js +32 -0
  308. package/dist/packages/project-model/source-config.d.ts +38 -0
  309. package/dist/packages/project-model/source-config.js +298 -0
  310. package/dist/packages/shared/file-types.d.ts +1 -0
  311. package/dist/packages/shared/file-types.js +4 -0
  312. package/dist/packages/shared/filesystem.d.ts +2 -0
  313. package/dist/packages/shared/filesystem.js +55 -0
  314. package/dist/packages/shared/index.d.ts +7 -0
  315. package/dist/packages/shared/index.js +7 -0
  316. package/dist/packages/shared/logger.d.ts +3 -0
  317. package/dist/packages/shared/logger.js +10 -0
  318. package/dist/packages/shared/naming.d.ts +1 -0
  319. package/dist/packages/shared/naming.js +8 -0
  320. package/dist/packages/shared/parse.d.ts +8 -0
  321. package/dist/packages/shared/parse.js +145 -0
  322. package/dist/packages/shared/path-guards.d.ts +2 -0
  323. package/dist/packages/shared/path-guards.js +14 -0
  324. package/dist/packages/shared/util.d.ts +3 -0
  325. package/dist/packages/shared/util.js +3 -0
  326. package/dist/packages/testing/index.d.ts +13 -0
  327. package/dist/packages/testing/index.js +10 -0
  328. package/dist/packages/testing/lib/schema.d.ts +261 -0
  329. package/dist/packages/testing/lib/schema.js +119 -0
  330. package/dist/packages/testing/test-execution.d.ts +14 -0
  331. package/dist/packages/testing/test-execution.js +525 -0
  332. package/dist/packages/testing/test-matrices.d.ts +90 -0
  333. package/dist/packages/testing/test-matrices.js +96 -0
  334. package/dist/packages/testing/test-paths.d.ts +12 -0
  335. package/dist/packages/testing/test-paths.js +59 -0
  336. package/dist/packages/testing/test-profile-presets.d.ts +57 -0
  337. package/dist/packages/testing/test-profile-presets.js +50 -0
  338. package/dist/packages/testing/test-sandbox.d.ts +11 -0
  339. package/dist/packages/testing/test-sandbox.js +105 -0
  340. package/dist/packages/testing/test-specs.d.ts +7 -0
  341. package/dist/packages/testing/test-specs.js +114 -0
  342. package/dist/packages/testing/test-targets.d.ts +5 -0
  343. package/dist/packages/testing/test-targets.js +38 -0
  344. package/dist/packages/testing/test-types.d.ts +16 -0
  345. package/dist/packages/testing/test-types.js +1 -0
  346. package/dist/packages/testing/test.d.ts +4 -0
  347. package/dist/packages/testing/test.js +3 -0
  348. package/dist/packages/workflow-authoring/index.d.ts +4 -0
  349. package/dist/packages/workflow-authoring/index.js +4 -0
  350. package/dist/packages/workflow-authoring/lib/workflow-edit-utils.d.ts +10 -0
  351. package/dist/packages/workflow-authoring/lib/workflow-edit-utils.js +39 -0
  352. package/dist/packages/workflow-authoring/workflow-authoring.d.ts +26 -0
  353. package/dist/packages/workflow-authoring/workflow-authoring.js +121 -0
  354. package/dist/packages/workflow-authoring/workflow-edit-session.d.ts +16 -0
  355. package/dist/packages/workflow-authoring/workflow-edit-session.js +57 -0
  356. package/dist/packages/workflow-authoring/workflow-improvement.d.ts +23 -0
  357. package/dist/packages/workflow-authoring/workflow-improvement.js +210 -0
  358. package/dist/packages/workflow-package/builtin-compiled-workflow.d.ts +38 -0
  359. package/dist/packages/workflow-package/builtin-compiled-workflow.js +94 -0
  360. package/dist/packages/workflow-package/context-interface.d.ts +96 -0
  361. package/dist/packages/workflow-package/context-interface.js +146 -0
  362. package/dist/packages/workflow-package/index.d.ts +11 -0
  363. package/dist/packages/workflow-package/index.js +11 -0
  364. package/dist/packages/workflow-package/interf-workflow-package.d.ts +25 -0
  365. package/dist/packages/workflow-package/interf-workflow-package.js +389 -0
  366. package/dist/{lib/config.d.ts → packages/workflow-package/lib/package-root.d.ts} +0 -1
  367. package/dist/packages/workflow-package/lib/package-root.js +6 -0
  368. package/dist/packages/workflow-package/local-workflows.d.ts +57 -0
  369. package/dist/packages/workflow-package/local-workflows.js +424 -0
  370. package/dist/packages/workflow-package/workflow-definitions.d.ts +82 -0
  371. package/dist/packages/workflow-package/workflow-definitions.js +210 -0
  372. package/dist/packages/workflow-package/workflow-helpers.d.ts +38 -0
  373. package/dist/packages/workflow-package/workflow-helpers.js +167 -0
  374. package/dist/packages/workflow-package/workflow-review-paths.d.ts +10 -0
  375. package/dist/packages/workflow-package/workflow-review-paths.js +27 -0
  376. package/dist/packages/workflow-package/workflow-stage-policy.d.ts +5 -0
  377. package/dist/packages/workflow-package/workflow-stage-policy.js +31 -0
  378. package/dist/packages/workflow-package/workflow-stage-runner.d.ts +41 -0
  379. package/dist/packages/workflow-package/workflow-stage-runner.js +109 -0
  380. package/package.json +43 -19
  381. package/dist/commands/test.d.ts +0 -3
  382. package/dist/lib/compiled-home.d.ts +0 -5
  383. package/dist/lib/compiled-home.js +0 -32
  384. package/dist/lib/config.js +0 -9
  385. /package/dist/{commands → cli/commands}/dataset-selection.js +0 -0
  386. /package/dist/{commands → cli/commands}/default.d.ts +0 -0
  387. /package/dist/{commands → cli/commands}/doctor.d.ts +0 -0
  388. /package/dist/{commands → cli/commands}/list.d.ts +0 -0
  389. /package/dist/{commands → cli/commands}/reset.d.ts +0 -0
  390. /package/dist/{commands → cli/commands}/status.d.ts +0 -0
  391. /package/dist/{commands → cli/commands}/verify.d.ts +0 -0
package/README.md CHANGED
@@ -1,48 +1,85 @@
1
1
  # Interf
2
2
 
3
- Interf helps make data ready for agent work.
3
+ Interf prepares context for your agents.
4
4
 
5
- Measure how well your agent can answer the questions your task depends on. If raw files are not enough, Interf can prepare a compiled dataset and test it again on the same saved checks.
5
+ Start with the files for the work you want to do. Tell Interf what you need, let it suggest a few questions to check later, and build portable context when the files alone are not enough.
6
6
 
7
- Start with checks. Give Interf the files behind a task and a few saved checks. It shows how well local agents do on the raw files first, so you can see what already works and which agent performs best.
7
+ It writes the result as a local folder inside your project. Your agents can use that folder directly, and Interf can check it on the same questions to show whether it actually helped.
8
8
 
9
- The compiled dataset is a real folder your agent can open and work from. If the first workflow still fails, Interf can retry the same workflow variation or edit the workflow across self-improving loops within the configured budgets and test each new variation on the same saved checks.
9
+ Your source files stay the source of truth. Interf builds on them; it does not replace them.
10
10
 
11
- Interf runs local workflows that prepare and structure the files for the task before your agent uses them.
11
+ Interf calls that folder portable context:
12
12
 
13
- A recent run in this repo on the CBRE chart sanity dataset produced:
13
+ ```text
14
+ interf/<dataset>/
15
+ AGENTS.md
16
+ CLAUDE.md
17
+ raw/
18
+ <workflow-declared compiled outputs>
19
+ .interf/
20
+ interf.json
21
+ workflow/
22
+ runtime/
23
+ tests/
24
+ ```
25
+
26
+ For example, this repo tests a PDF market report with questions like:
27
+
28
+ - `What were Bristol's annual take-up values in 2018 and 2016?`
29
+ - `What were Bristol's availability values in 2018 and 2016?`
30
+
31
+ On those same questions, a recent run in this repo produced:
14
32
 
15
33
  <!-- PUBLIC_BENCHMARK_TABLE:START -->
16
- | Agent | Files as-is | Compiled dataset |
34
+ | Agent | Source files | Portable context |
17
35
  | --- | --- | --- |
18
36
  | Codex (GPT-5.4, xhigh) | `2/2` | `2/2` |
19
37
  | Claude Code (Claude Opus 4.6, max) | `0/2` | `2/2` |
20
38
  <!-- PUBLIC_BENCHMARK_TABLE:END -->
21
39
 
22
- Same task. Same saved checks. Same local setup.
40
+ That means:
41
+
42
+ - Codex already passed on the source files.
43
+ - Claude Code failed on the source files.
44
+ - Both passed after Interf built the portable context.
45
+
46
+ Same work. Same questions. Same local setup.
47
+
48
+ ## How It Works
49
+
50
+ 1. Start with the files for the work.
51
+ 2. Tell Interf what you need from them.
52
+ 3. Let Interf recommend a few questions to check accuracy later, or edit them yourself.
53
+ 4. Build the portable context for that work.
54
+ 5. Run `interf test` on the same questions and keep the result only if it helped.
55
+
56
+ Checking the source files first is still important. It shows what already works and which local agent performs best before you spend time improving anything.
23
57
 
24
58
  ## Why It Exists
25
59
 
26
- Local agents do well when the working surface is already shaped for the job. Raw task data usually is not. Reports, decks, transcripts, exports, PDFs, notes, and mixed folders are all technically available, but they are not prepared in a way that makes local agent work reliable.
60
+ Local agents can open raw files and still reason badly over them. Reports, decks, transcripts, exports, PDFs, notes, and mixed folders may all be present, but they are often missing the structure a real piece of work needs.
61
+
62
+ Interf takes the files for the work, builds a local folder your agents can use, and then checks whether it actually helped.
27
63
 
28
- Interf keeps the loop honest:
64
+ Interf is built around a few simple rules:
29
65
 
30
- - `Measure first`: test files as-is on saved truth checks before claiming improvement.
31
- - `One output`: keep one compiled dataset your agent can use directly.
32
- - `File-native`: the compiled dataset is a real folder you can inspect, diff, review, and version.
33
- - `Source-backed`: raw files remain the source of truth.
34
- - `Bring your own agent`: use Claude Code, Codex, or another local agent on the same compiled dataset.
35
- - `Self-improving`: when truth checks fail, Interf can inspect the failed run, edit the workflow, and retest new workflow variations on the same checks. Retries keep the same workflow variation; loops change the workflow itself.
66
+ - Start from the files you already have.
67
+ - Check the source files and the portable context on the same questions.
68
+ - Keep the result in a local folder you can inspect, diff, review, and version.
69
+ - Keep raw files as the source of truth.
70
+ - Use the portable context manually from Claude Code, Codex, or another local agent. Automated Interf runs currently support Claude Code and Codex.
71
+ - If the first pass is not good enough, let Interf revise the workflow and try again. Retries keep the same workflow variation; loops change the workflow itself.
36
72
 
37
73
  ## What You Get
38
74
 
39
- A project using one dataset stays simple:
75
+ A project with one saved setup stays simple:
40
76
 
41
77
  ```text
42
- your-task-folder/
43
- report.pdf
44
- notes.md
45
- exports/
78
+ your-project/
79
+ task-files/
80
+ report.pdf
81
+ notes.md
82
+ exports/
46
83
  interf.json
47
84
  interf/
48
85
  <dataset>/
@@ -50,22 +87,7 @@ your-task-folder/
50
87
  <dataset>/
51
88
  ```
52
89
 
53
- A compiled dataset looks like:
54
-
55
- ```text
56
- interf/<dataset>/
57
- AGENTS.md
58
- CLAUDE.md
59
- raw/
60
- <workflow-declared compiled outputs>
61
- .interf/
62
- interf.json
63
- workflow/
64
- runtime/
65
- tests/
66
- ```
67
-
68
- The compiled dataset is the folder your agent should work from.
90
+ After Interf runs, point your agents at the portable context first. Go back to the source files whenever you need to verify something.
69
91
 
70
92
  ## Quick Start
71
93
 
@@ -80,23 +102,18 @@ Install:
80
102
  npm install -g @interf/compiler
81
103
  ```
82
104
 
83
- Start from a folder that already contains the files for the task:
84
-
85
- ```bash
86
- cd ~/my-task-folder
87
- interf
88
- interf test
89
- interf compile
90
- interf test
91
- ```
105
+ Start from a project folder that contains one or more source folders for the work.
92
106
 
93
107
  The first run can:
94
108
 
95
109
  - draft `interf.json`
96
- - help you create truth checks for the task, or let you add them manually
97
- - run a files-as-is baseline on those checks
98
- - build the compiled dataset
99
- - let you test the compiled dataset on the same checks
110
+ - let you choose the source folder for the work
111
+ - default the dataset id from that folder name, then let you change it
112
+ - ask what work you need help with
113
+ - recommend questions to check accuracy later, or let you add them manually
114
+ - run a source-files baseline on those questions so you can see what already works
115
+ - build the portable context for that work
116
+ - let you check the portable context on the same questions
100
117
 
101
118
  If Interf cannot find your local executor setup, run:
102
119
 
@@ -104,17 +121,23 @@ If Interf cannot find your local executor setup, run:
104
121
  interf doctor --live
105
122
  ```
106
123
 
107
- ## Truth Checks
124
+ ## Questions
125
+
126
+ Interf uses simple question-and-answer checks to see whether the portable context is good enough for this work.
127
+
128
+ Each saved check stores a question and the expected answer. In `interf.json`, those definitions live under the technical field `checks[]`.
108
129
 
109
- Truth checks are just question-and-answer pairs you already know how to verify from the files behind the task.
130
+ They are just question-and-answer pairs you can verify from the files you selected for the work.
110
131
 
111
- Good first truth checks are small and practical:
132
+ You do not need to write them from scratch before you know the data well. Interf can recommend a starting set from the files and the work description, then you can confirm, edit, or replace them. Their job is simple: check accuracy before you trust the portable context.
133
+
134
+ Good first questions are small and practical:
112
135
 
113
136
  - one exact number from a chart, table, or filing
114
137
  - one short statement that should be true or false
115
138
  - one simple comparison across years, files, or sections
116
139
 
117
- A maintained public test run in this repo uses checks like this:
140
+ A maintained public test example in this repo stores them like this:
118
141
 
119
142
  <!-- PUBLIC_TEST_CHECKS:START -->
120
143
  ```jsonc
@@ -122,6 +145,7 @@ A maintained public test run in this repo uses checks like this:
122
145
  "datasets": [
123
146
  {
124
147
  "name": "cbre-chart-sanity",
148
+ "path": "./task-files",
125
149
  "about": "Bristol historical take-up and availability chart lookup.",
126
150
  "checks": [
127
151
  {
@@ -141,33 +165,35 @@ A maintained public test run in this repo uses checks like this:
141
165
 
142
166
  ## What `interf test` Proves
143
167
 
144
- `interf test` compares files as-is and the compiled dataset on the same saved truth checks.
168
+ `interf test` compares the source files and the portable context on the same questions.
145
169
 
146
- That comparison is the product record:
170
+ That comparison is the proof:
147
171
 
148
- - same task
149
- - same saved checks
172
+ - same work
173
+ - same questions
150
174
  - same local agent setup
151
- - raw files on one side
152
- - compiled dataset on the other
175
+ - source files on one side
176
+ - portable context on the other
153
177
 
154
178
  Use `interf test` on your own files instead of trusting a frozen benchmark snapshot in the docs.
155
179
 
156
- Interf saves the latest comparison plus detailed raw and compiled runs under `interf/tests/` in the same folder.
180
+ Interf saves the latest comparison plus the underlying source-files and portable-context runs under `interf/tests/` in the same project.
157
181
 
158
182
  ## The Core Loop
159
183
 
160
- 1. Save a few truth checks for the task in `interf.json`.
161
- 2. Optionally run `interf test` to measure files as-is first.
162
- 3. Run `interf compile` to build the compiled dataset.
163
- 4. Run `interf test` again on the same saved checks.
184
+ 1. Save a few questions for the work in `interf.json`.
185
+ 2. Optionally run `interf test` to see how the source files do first.
186
+ 3. Run `interf compile` to build the portable context your agent can use.
187
+ 4. Run `interf test` again on the same questions.
164
188
  5. If loops are enabled, let Interf retry the same workflow variation or edit the workflow and test the new variation.
165
189
 
166
- The project root owns dataset setup and saved truth checks. The compiled dataset carries the local runtime copy needed for repeat runs.
190
+ The project root stores the source-folder setup and saved questions. Technically, that portable context is the compiled context used for repeat runs.
167
191
 
168
192
  ## Workflows
169
193
 
170
- A workflow tells Interf how to prepare the files for this task.
194
+ A workflow tells Interf how to prepare and structure the files for a kind of work before your agent uses them.
195
+
196
+ Technically, a workflow package defines the context interface: the zones, paths, and stage ownership of the compiled context Interf will build for that work.
171
197
 
172
198
  Interf ships with a built-in `interf` workflow for the common case. If you need a different method, create one locally:
173
199
 
@@ -180,7 +206,7 @@ Workflow creation supports two paths:
180
206
  - draft a workflow from the current project with a local agent
181
207
  - copy an existing workflow and edit stage guidance directly
182
208
 
183
- After assignment, compile the dataset and run `interf test` on the same truth checks.
209
+ After assignment, build the portable context with `interf compile` and run `interf test` on the same questions.
184
210
 
185
211
  ## Compile Loops
186
212
 
@@ -188,9 +214,9 @@ After assignment, compile the dataset and run `interf test` on the same truth ch
188
214
 
189
215
  Retries keep the target fixed:
190
216
 
191
- - same dataset
217
+ - same configured dataset
192
218
  - same workflow variation
193
- - same truth checks
219
+ - same questions
194
220
  - same measurement
195
221
 
196
222
  `max_loops` enables self-improving workflow edits in the normal `interf compile` path.
@@ -199,13 +225,13 @@ In that loop, the thing that changes is the workflow itself.
199
225
 
200
226
  Each loop can:
201
227
 
202
- - run the current workflow variation on the dataset
203
- - test it on the same truth checks
228
+ - run the current workflow variation on the same configured dataset
229
+ - test it on the same questions
204
230
  - inspect failed traces, preserved stage shells, and test artifacts
205
231
  - edit the workflow
206
232
  - build and test the next workflow variation
207
233
 
208
- Interf preserves workflow-improvement shells, workflow-before / workflow-after snapshots, failed stage shells, and saved test runs from each loop so you can inspect exactly what changed.
234
+ Interf preserves workflow-improvement shells, workflow-before / workflow-after snapshots, failed stage shells, and test runs from each loop so you can inspect exactly what changed.
209
235
 
210
236
  ## Use It With Your Agent
211
237
 
@@ -216,19 +242,19 @@ Paste something like this into your agent:
216
242
  ```text
217
243
  Install `@interf/compiler`, run `interf` in this folder, and use the local agent executor.
218
244
 
219
- If `interf.json` is missing, draft one dataset entry for this task with a few truth checks this agent should be able to answer from the selected files and add the expected answers for me to confirm.
245
+ If `interf.json` is missing, draft one dataset entry for this work. Ask what I need from the selected files, recommend a few questions to check accuracy from those files, and add the expected answers for me to confirm. Store those checks under `checks[]`.
220
246
 
221
- Then run a files-as-is baseline if helpful, compile the dataset, and run `interf test`.
247
+ Then run a source-files baseline if helpful, build the portable context for that work, and run `interf test`.
222
248
 
223
- Tell me whether the compiled dataset passes the truth checks, and only recommend it if it does.
249
+ Tell me whether the portable context passes those questions, and only recommend it if it does.
224
250
  ```
225
251
 
226
252
  ## More Docs
227
253
 
228
- - [docs/architecture.md](./docs/architecture.md) for the short system map
229
- - [docs/interf-primitives.md](./docs/interf-primitives.md) for runtime and workflow concepts
230
- - [docs/workflow-spec.md](./docs/workflow-spec.md) for the workflow model
231
- - [docs/runtime-contract.md](./docs/runtime-contract.md) for the runtime execution ABI
254
+ - [src/packages/README.md](./src/packages/README.md) for the short system map
255
+ - [src/packages/compiler/PACKAGE.md](./src/packages/compiler/PACKAGE.md) for compiler primitives and the runtime ABI
256
+ - [src/packages/workflow-package/PACKAGE.md](./src/packages/workflow-package/PACKAGE.md) for the workflow package model
257
+ - [src/packages/workflow-authoring/PACKAGE.md](./src/packages/workflow-authoring/PACKAGE.md) for workflow authoring and self-improving loops
232
258
 
233
259
  Maintainers should use [CONTRIBUTING.md](./CONTRIBUTING.md) for test and release gates.
234
260
 
@@ -1,11 +1,11 @@
1
1
  # Interf (Built-in Workflow)
2
2
 
3
- Interf's built-in workflow: summarize source-grounded evidence, structure the cross-file layer, then shape the final compiled dataset around its task focus and saved truth checks.
3
+ Interf's built-in workflow: summarize source-grounded evidence, structure the cross-file layer, then shape the final context folder around its task focus and checks.
4
4
 
5
5
  ## Purpose
6
6
 
7
- - General agent-ready dataset preparation
8
- - Prepare mixed raw files into evidence-backed summaries, cross-file structure, and a usable entrypoint for agents answering the questions this task depends on.
7
+ - General compiled context workflow for agent use
8
+ - Compile mixed raw files into evidence-backed summaries, cross-file structure, and a usable entrypoint for agents answering the questions this task depends on.
9
9
 
10
10
  ## Zones
11
11
 
@@ -21,11 +21,11 @@ Interf's built-in workflow: summarize source-grounded evidence, structure the cr
21
21
 
22
22
  - `summarize` — Turn source files into per-file summaries. (compiled-file-evidence; reads: raw, runtime; writes: summaries)
23
23
  - `structure` — Build the cross-file knowledge structure from the summaries. (compiled-knowledge-structure; reads: summaries, runtime; writes: knowledge-entities, knowledge-claims, knowledge-indexes)
24
- - `shape` — Shape the final compiled dataset around the saved task focus and truth checks. (compiled-query-shape; reads: raw, summaries, knowledge-entities, knowledge-claims, knowledge-indexes, runtime; writes: knowledge-indexes, home)
24
+ - `shape` — Shape the final context folder around the saved task focus and checks. (compiled-query-shape; reads: raw, summaries, knowledge-entities, knowledge-claims, knowledge-indexes, runtime; writes: knowledge-indexes, home)
25
25
 
26
26
  ## Why `home.md` exists here
27
27
 
28
- This built-in workflow creates `home.md` as the main agent entrypoint for the compiled dataset.
28
+ This built-in workflow creates `home.md` as the main agent entrypoint for the context folder.
29
29
  That is behavior of the `interf` workflow, not a compiler-wide rule.
30
30
 
31
31
  This package is the built-in seed for `interf`.
@@ -1,6 +1,6 @@
1
1
  # Shape
2
2
 
3
- Shape the final compiled dataset around the saved task focus and truth checks.
3
+ Shape the final context folder around the saved task focus and checks.
4
4
 
5
5
  Contract type: `compiled-query-shape`
6
6
 
@@ -18,12 +18,12 @@ Contract type: `compiled-query-shape`
18
18
  - If a mark touches or nearly touches a labeled gridline, anchor the answer at that gridline or the immediately adjacent half-band.
19
19
  - Do not widen a chart-derived range across multiple visible bands unless the chart genuinely supports that uncertainty.
20
20
  - When you settle on a bounded chart read, keep that same band consistent across `home.md`, focused indexes, and claim/entity notes for that metric and year.
21
- - Do not copy expected answers into the compiled dataset.
21
+ - Do not copy expected answers into the context folder.
22
22
 
23
23
  ## Notes
24
24
 
25
- - Use the saved task focus and truth checks to bias the final compiled dataset toward the job it should be especially good at.
26
- - Do not copy expected answers into the final compiled dataset just because the checks imply them.
25
+ - Use the saved task focus and checks to bias the final context folder toward the job it should be especially good at.
26
+ - Do not copy expected answers into the final context folder just because the checks imply them.
27
27
  - Prefer the saved summary evidence and structured notes when they already preserve the bounded chart/table reads plus provenance you need.
28
28
  - Reopen `raw/` during shaping only when the compiled layer is missing the needed value, the metric family is ambiguous, or the earlier bounded read is clearly inconsistent.
29
29
  - If a saved truth check depends on chart-derived or table-derived values, carry the final bounded reads forward into focused notes with provenance instead of repeatedly recomputing them from raw.
@@ -8,11 +8,11 @@ The improver edits this local package directly.
8
8
  Default loop:
9
9
  1. Read the loop context first.
10
10
  2. Review preserved stage shells, runtime logs, and saved test runs from failed attempts.
11
- 3. Edit only the local workflow package for this compiled dataset to create a better workflow variation for this dataset.
11
+ 3. Edit only the local workflow package for this context folder to create a better workflow variation for this task.
12
12
  4. Keep `workflow.json`, `workflow.schema.json`, and any changed stage docs aligned.
13
13
 
14
14
  Guardrails:
15
- - do not edit truth checks, test specs, or raw dataset files
15
+ - do not edit checks, test specs, or raw source files
16
16
  - do not hardcode expected answers into workflow docs
17
17
  - keep this package standalone; do not add or rely on runtime `extends` or fallback behavior
18
18
  - prefer small, defensible workflow changes over random churn
@@ -25,4 +25,4 @@ Answering rule:
25
25
  - if multiple compiled notes mention the same chart read, keep the answer consistent with the most focused compiled note rather than synthesizing a new midpoint or shifted band
26
26
  - when the compiled layer is insufficient, verify in `raw/` and then answer
27
27
 
28
- You can edit this file to bias manual question-answering behavior for this compiled dataset.
28
+ You can edit this file to bias manual question-answering behavior for this context folder.
@@ -6,11 +6,11 @@
6
6
  "version": 1
7
7
  },
8
8
  "purpose": {
9
- "label": "General agent-ready dataset preparation",
10
- "task_hint": "Prepare mixed raw files into evidence-backed summaries, cross-file structure, and a usable entrypoint for agents answering the questions this task depends on."
9
+ "label": "General compiled context workflow for agent use",
10
+ "task_hint": "Compile mixed raw files into evidence-backed summaries, cross-file structure, and a usable entrypoint for agents answering the questions this task depends on."
11
11
  },
12
12
  "label": "Interf (Built-in)",
13
- "hint": "Interf's built-in workflow: summarize source-grounded evidence, structure the cross-file layer, then shape the final compiled dataset around its task focus and saved truth checks.",
13
+ "hint": "Interf's built-in workflow: summarize source-grounded evidence, structure the cross-file layer, then shape the final context folder around its task focus and checks.",
14
14
  "stages": [
15
15
  {
16
16
  "id": "summarize",
@@ -82,7 +82,7 @@
82
82
  {
83
83
  "id": "shape",
84
84
  "label": "Shape",
85
- "description": "Shape the final compiled dataset around the saved task focus and truth checks.",
85
+ "description": "Shape the final context folder around the saved task focus and checks.",
86
86
  "contract_type": "compiled-query-shape",
87
87
  "skill_dir": "shape",
88
88
  "reads": [
@@ -135,8 +135,8 @@
135
135
  "For summary references, prefer explicit links like `[[summaries/<file-stem>]]` or plain code paths. For knowledge notes, prefer the final filename stem under `knowledge/`."
136
136
  ],
137
137
  "shape": [
138
- "Use the saved task focus and truth checks to bias the final compiled dataset toward the job it should be especially good at.",
139
- "Do not copy expected answers into the final compiled dataset just because the checks imply them.",
138
+ "Use the saved task focus and checks to bias the final context folder toward the job it should be especially good at.",
139
+ "Do not copy expected answers into the final context folder just because the checks imply them.",
140
140
  "If a saved truth check depends on chart-derived or table-derived values, verify the needed evidence in `raw/` while shaping and write focused notes that preserve bounded values plus provenance.",
141
141
  "Prefer better routing, prioritization, and focused navigation over speculative synthesis.",
142
142
  "Any wikilinks you add to `home.md` or indexes must resolve to real compiled note basenames or explicit relative paths."
@@ -67,7 +67,7 @@
67
67
  "owned_by": [
68
68
  "shape"
69
69
  ],
70
- "description": "Primary entrypoint note for agents using the compiled dataset."
70
+ "description": "Primary entrypoint note for agents using the context folder."
71
71
  },
72
72
  {
73
73
  "id": "runtime",
package/dist/bin.js CHANGED
@@ -1,29 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import yargs from "yargs";
3
- import { hideBin } from "yargs/helpers";
4
- import { initCommand } from "./commands/init.js";
5
- import { createCommand } from "./commands/create.js";
6
- import { compileCommand } from "./commands/compile.js";
7
- import { testCommand } from "./commands/test.js";
8
- import { doctorCommand } from "./commands/doctor.js";
9
- import { listCommand } from "./commands/list.js";
10
- import { statusCommand } from "./commands/status.js";
11
- import { resetCommand } from "./commands/reset.js";
12
- import { defaultCommand } from "./commands/default.js";
13
- import { verifyCommand } from "./commands/verify.js";
14
- yargs(hideBin(process.argv))
15
- .scriptName("interf")
16
- .command(defaultCommand)
17
- .command(initCommand)
18
- .command(compileCommand)
19
- .command(testCommand)
20
- .command(createCommand)
21
- .command(doctorCommand)
22
- .command(listCommand)
23
- .command(statusCommand)
24
- .command(verifyCommand)
25
- .command(resetCommand)
26
- .strict()
27
- .help()
28
- .version()
29
- .parse();
2
+ import { runCli } from "./cli/index.js";
3
+ await runCli();
@@ -1,5 +1,5 @@
1
- import type { WorkflowExecutor } from "../lib/executors.js";
2
- import type { SourceTruthCheck } from "../lib/schema.js";
1
+ import type { WorkflowExecutor } from "../../packages/agents/lib/executors.js";
2
+ import type { SourceTruthCheck } from "../../packages/project-model/lib/schema.js";
3
3
  export declare function buildTruthCheckDraftPrompt(options: {
4
4
  datasetName: string;
5
5
  datasetPath: string;
@@ -11,28 +11,28 @@ export function buildTruthCheckDraftPrompt(options) {
11
11
  const normalizedAbout = options.about?.trim();
12
12
  const taskLines = normalizedAbout
13
13
  ? [
14
- `Primary task: ${normalizedAbout}`,
15
- "Draft checks that directly measure whether a local agent can answer the key questions from the data behind that task.",
14
+ `Primary work: ${normalizedAbout}`,
15
+ "Draft checks that directly measure whether a local agent can answer the key questions from the data behind that work.",
16
16
  "Prefer checks that would make a human confident the dataset is useful for that exact job.",
17
17
  ]
18
18
  : [
19
- "No primary task was provided.",
20
- "Prefer broad, representative checks that reflect the most useful questions a human would verify from this dataset.",
19
+ "No primary work was provided.",
20
+ "Prefer broad, representative checks that reflect the most useful questions a human would verify from this source folder.",
21
21
  ];
22
22
  return [
23
- "You are drafting Interf truth checks for a local dataset.",
23
+ "You are drafting Interf checks for a local source folder.",
24
24
  "Read the files in this folder and draft a small set of checks that a human can verify from the source material.",
25
25
  "Do not ask follow-up questions.",
26
- "Keep the checks concrete, explicit, and useful for measuring whether an agent can reason correctly over the data in this dataset.",
26
+ "Keep the checks concrete, explicit, and useful for measuring whether an agent can reason correctly over the files in this source folder.",
27
27
  "",
28
- `Dataset id: ${options.datasetName}`,
29
- `Dataset folder: ${options.datasetPath}`,
28
+ `Setup id: ${options.datasetName}`,
29
+ `Source folder: ${options.datasetPath}`,
30
30
  ...taskLines,
31
31
  "",
32
32
  `Write exactly one JSON array to ${JSON.stringify(options.outputPath)}.`,
33
- `Draft ${options.targetCount} checks unless the dataset is too small; in that case write fewer.`,
33
+ `Draft ${options.targetCount} checks unless the source folder is too small; in that case write fewer.`,
34
34
  "Each array item must be an object with exactly these keys:",
35
- '- "question": a plain-English question answerable from this dataset',
35
+ '- "question": a plain-English question answerable from this source folder',
36
36
  '- "answer": the expected correct answer in plain English',
37
37
  "",
38
38
  "Quality bar:",
@@ -43,7 +43,7 @@ export function buildTruthCheckDraftPrompt(options) {
43
43
  "- Avoid unstable superlatives unless the source itself clearly states the ranking in one place.",
44
44
  "- Avoid checks where the expected answer depends on scanning many pages for a hidden exception or a larger outlier.",
45
45
  "- Avoid vague essay questions, open-ended opinions, or anything requiring outside knowledge.",
46
- "- Avoid duplicate checks that test the same fact in slightly different words.",
46
+ "- Avoid duplicate checks that cover the same fact in slightly different words.",
47
47
  "",
48
48
  "Output rules:",
49
49
  "- JSON only in the output file.",
@@ -72,8 +72,8 @@ export async function draftTruthChecks(options) {
72
72
  return {
73
73
  checks: null,
74
74
  error: code === 0
75
- ? "The local agent finished without writing draft truth checks."
76
- : "The local agent did not produce draft truth checks.",
75
+ ? "The local agent finished without writing draft checks."
76
+ : "The local agent did not produce draft checks.",
77
77
  };
78
78
  }
79
79
  let parsed;
@@ -83,15 +83,15 @@ export async function draftTruthChecks(options) {
83
83
  catch (error) {
84
84
  return {
85
85
  checks: null,
86
- error: `Draft truth checks were not valid JSON: ${error instanceof Error ? error.message : String(error)}`,
86
+ error: `Draft checks were not valid JSON: ${error instanceof Error ? error.message : String(error)}`,
87
87
  };
88
88
  }
89
89
  const validated = DraftTruthChecksSchema.safeParse(parsed);
90
90
  if (!validated.success) {
91
- const detail = validated.error.issues[0]?.message ?? "invalid draft truth checks";
91
+ const detail = validated.error.issues[0]?.message ?? "invalid draft checks";
92
92
  return {
93
93
  checks: null,
94
- error: `Draft truth checks did not match the required shape: ${detail}`,
94
+ error: `Draft checks did not match the required shape: ${detail}`,
95
95
  };
96
96
  }
97
97
  return {
@@ -1,6 +1,6 @@
1
- import type { WorkflowExecutionProfile, WorkflowExecutor } from "../lib/executors.js";
2
- import type { SourceDatasetConfig } from "../lib/schema.js";
3
- import type { StageShellRetentionMode } from "../lib/workflows.js";
1
+ import type { WorkflowExecutionProfile, WorkflowExecutor } from "../../packages/agents/lib/executors.js";
2
+ import type { SourceDatasetConfig } from "../../packages/project-model/lib/schema.js";
3
+ import type { StageShellRetentionMode } from "../../packages/compiler/workflows.js";
4
4
  export declare function runConfiguredCompiledCompile(options: {
5
5
  executor: WorkflowExecutor;
6
6
  testExecutor?: WorkflowExecutor | null;