@interf/compiler 0.5.1 → 0.6.3

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 (353) hide show
  1. package/README.md +160 -201
  2. package/builtin-workflows/interf/README.md +22 -10
  3. package/builtin-workflows/interf/compile/stages/shape/SKILL.md +8 -5
  4. package/builtin-workflows/interf/compile/stages/structure/SKILL.md +3 -0
  5. package/builtin-workflows/interf/compile/stages/summarize/SKILL.md +18 -2
  6. package/builtin-workflows/interf/improve/SKILL.md +4 -4
  7. package/builtin-workflows/interf/use/query/SKILL.md +1 -1
  8. package/builtin-workflows/interf/workflow.json +19 -5
  9. package/builtin-workflows/interf/{compiled.schema.json → workflow.schema.json} +10 -3
  10. package/dist/bin.js +2 -28
  11. package/dist/{commands → cli/commands}/check-draft.d.ts +2 -2
  12. package/dist/{commands → cli/commands}/check-draft.js +13 -13
  13. package/dist/{commands → cli/commands}/compile-controller.d.ts +3 -3
  14. package/dist/{commands → cli/commands}/compile-controller.js +39 -44
  15. package/dist/cli/commands/compile.d.ts +33 -0
  16. package/dist/{commands → cli/commands}/compile.js +107 -33
  17. package/dist/{commands → cli/commands}/compiled-flow.d.ts +3 -4
  18. package/dist/{commands → cli/commands}/compiled-flow.js +9 -14
  19. package/dist/{commands → cli/commands}/create-workflow-wizard.d.ts +20 -2
  20. package/dist/cli/commands/create-workflow-wizard.js +288 -0
  21. package/dist/{commands → cli/commands}/create.d.ts +2 -2
  22. package/dist/cli/commands/create.js +166 -0
  23. package/dist/cli/commands/dataset-selection.d.ts +6 -0
  24. package/dist/cli/commands/dataset-selection.js +11 -0
  25. package/dist/{commands → cli/commands}/default.js +5 -5
  26. package/dist/{commands → cli/commands}/doctor.js +12 -13
  27. package/dist/{commands → cli/commands}/executor-flow.d.ts +2 -2
  28. package/dist/{commands → cli/commands}/executor-flow.js +17 -17
  29. package/dist/cli/commands/init.d.ts +11 -0
  30. package/dist/{commands → cli/commands}/init.js +202 -109
  31. package/dist/{commands → cli/commands}/list.js +9 -6
  32. package/dist/{commands → cli/commands}/reset.js +5 -5
  33. package/dist/{commands → cli/commands}/source-config-wizard.d.ts +10 -5
  34. package/dist/{commands → cli/commands}/source-config-wizard.js +202 -95
  35. package/dist/{commands → cli/commands}/status.js +20 -11
  36. package/dist/{commands → cli/commands}/test-flow.d.ts +13 -4
  37. package/dist/{commands → cli/commands}/test-flow.js +30 -26
  38. package/dist/cli/commands/test.d.ts +14 -0
  39. package/dist/{commands → cli/commands}/test.js +48 -40
  40. package/dist/{commands → cli/commands}/verify.js +4 -4
  41. package/dist/cli/index.d.ts +21 -0
  42. package/dist/cli/index.js +33 -0
  43. package/dist/index.d.ts +22 -11
  44. package/dist/index.js +15 -6
  45. package/dist/lib/agent-args.d.ts +1 -3
  46. package/dist/lib/agent-args.js +1 -42
  47. package/dist/lib/agent-constants.d.ts +1 -5
  48. package/dist/lib/agent-constants.js +1 -28
  49. package/dist/lib/agent-detection.d.ts +1 -7
  50. package/dist/lib/agent-detection.js +1 -65
  51. package/dist/lib/agent-execution.d.ts +1 -2
  52. package/dist/lib/agent-execution.js +1 -242
  53. package/dist/lib/agent-logs.d.ts +1 -2
  54. package/dist/lib/agent-logs.js +1 -17
  55. package/dist/lib/agent-preflight.d.ts +1 -7
  56. package/dist/lib/agent-preflight.js +1 -76
  57. package/dist/lib/agent-render.d.ts +1 -8
  58. package/dist/lib/agent-render.js +1 -218
  59. package/dist/lib/agent-shells.d.ts +1 -44
  60. package/dist/lib/agent-shells.js +1 -847
  61. package/dist/lib/agent-status.d.ts +1 -3
  62. package/dist/lib/agent-status.js +1 -58
  63. package/dist/lib/agent-types.d.ts +1 -30
  64. package/dist/lib/agent-types.js +1 -1
  65. package/dist/lib/agents.d.ts +1 -6
  66. package/dist/lib/agents.js +1 -5
  67. package/dist/lib/builtin-compiled-workflow.d.ts +1 -129
  68. package/dist/lib/builtin-compiled-workflow.js +1 -153
  69. package/dist/lib/compiled-compile.d.ts +1 -52
  70. package/dist/lib/compiled-compile.js +1 -274
  71. package/dist/lib/compiled-paths.d.ts +1 -39
  72. package/dist/lib/compiled-paths.js +3 -103
  73. package/dist/lib/compiled-raw.d.ts +1 -49
  74. package/dist/lib/compiled-raw.js +3 -102
  75. package/dist/lib/compiled-reset.d.ts +1 -1
  76. package/dist/lib/compiled-reset.js +3 -44
  77. package/dist/lib/compiled-schema.d.ts +1 -27
  78. package/dist/lib/compiled-schema.js +1 -110
  79. package/dist/lib/discovery.d.ts +1 -1
  80. package/dist/lib/discovery.js +2 -2
  81. package/dist/lib/execution-profile.d.ts +1 -17
  82. package/dist/lib/execution-profile.js +1 -84
  83. package/dist/lib/executors.d.ts +1 -32
  84. package/dist/lib/executors.js +1 -43
  85. package/dist/lib/interf-bootstrap.d.ts +1 -3
  86. package/dist/lib/interf-bootstrap.js +3 -18
  87. package/dist/lib/interf-detect.d.ts +1 -33
  88. package/dist/lib/interf-detect.js +3 -176
  89. package/dist/lib/interf-scaffold.d.ts +1 -2
  90. package/dist/lib/interf-scaffold.js +3 -121
  91. package/dist/lib/interf-workflow-package.d.ts +1 -20
  92. package/dist/lib/interf-workflow-package.js +1 -276
  93. package/dist/lib/interf.d.ts +1 -5
  94. package/dist/lib/interf.js +3 -4
  95. package/dist/lib/local-workflows.d.ts +1 -53
  96. package/dist/lib/local-workflows.js +1 -399
  97. package/dist/lib/package-root.d.ts +1 -0
  98. package/dist/lib/package-root.js +1 -0
  99. package/dist/lib/project-paths.d.ts +1 -11
  100. package/dist/lib/project-paths.js +3 -32
  101. package/dist/lib/runtime-acceptance.d.ts +1 -9
  102. package/dist/lib/runtime-acceptance.js +1 -257
  103. package/dist/lib/runtime-contracts.d.ts +1 -2
  104. package/dist/lib/runtime-contracts.js +1 -47
  105. package/dist/lib/runtime-inventory.d.ts +1 -7
  106. package/dist/lib/runtime-inventory.js +1 -29
  107. package/dist/lib/runtime-paths.d.ts +1 -7
  108. package/dist/lib/runtime-paths.js +1 -23
  109. package/dist/lib/runtime-prompt.d.ts +1 -2
  110. package/dist/lib/runtime-prompt.js +1 -46
  111. package/dist/lib/runtime-reconcile.d.ts +1 -2
  112. package/dist/lib/runtime-reconcile.js +1 -156
  113. package/dist/lib/runtime-runs.d.ts +1 -11
  114. package/dist/lib/runtime-runs.js +1 -250
  115. package/dist/lib/runtime-types.d.ts +1 -43
  116. package/dist/lib/runtime-types.js +1 -1
  117. package/dist/lib/runtime.d.ts +1 -6
  118. package/dist/lib/runtime.js +1 -5
  119. package/dist/lib/schema.d.ts +4 -1016
  120. package/dist/lib/schema.js +6 -539
  121. package/dist/lib/source-config.d.ts +1 -39
  122. package/dist/lib/source-config.js +3 -293
  123. package/dist/lib/state-artifacts.d.ts +1 -8
  124. package/dist/lib/state-artifacts.js +1 -13
  125. package/dist/lib/state-health.d.ts +1 -4
  126. package/dist/lib/state-health.js +1 -132
  127. package/dist/lib/state-io.d.ts +1 -10
  128. package/dist/lib/state-io.js +1 -76
  129. package/dist/lib/state-paths.d.ts +1 -4
  130. package/dist/lib/state-paths.js +1 -13
  131. package/dist/lib/state-view.d.ts +1 -4
  132. package/dist/lib/state-view.js +1 -103
  133. package/dist/lib/state.d.ts +1 -6
  134. package/dist/lib/state.js +1 -5
  135. package/dist/lib/test-execution.d.ts +1 -14
  136. package/dist/lib/test-execution.js +3 -525
  137. package/dist/lib/test-matrices.d.ts +1 -90
  138. package/dist/lib/test-matrices.js +3 -96
  139. package/dist/lib/test-paths.d.ts +1 -12
  140. package/dist/lib/test-paths.js +3 -59
  141. package/dist/lib/test-profile-presets.d.ts +1 -57
  142. package/dist/lib/test-profile-presets.js +3 -50
  143. package/dist/lib/test-sandbox.d.ts +1 -11
  144. package/dist/lib/test-sandbox.js +3 -105
  145. package/dist/lib/test-specs.d.ts +1 -7
  146. package/dist/lib/test-specs.js +3 -114
  147. package/dist/lib/test-targets.d.ts +1 -5
  148. package/dist/lib/test-targets.js +3 -38
  149. package/dist/lib/test-types.d.ts +1 -17
  150. package/dist/lib/test-types.js +3 -1
  151. package/dist/lib/test.d.ts +1 -4
  152. package/dist/lib/test.js +3 -3
  153. package/dist/lib/validate-compiled.d.ts +1 -27
  154. package/dist/lib/validate-compiled.js +1 -238
  155. package/dist/lib/validate-helpers.d.ts +1 -12
  156. package/dist/lib/validate-helpers.js +1 -41
  157. package/dist/lib/validate.d.ts +1 -19
  158. package/dist/lib/validate.js +1 -256
  159. package/dist/lib/workflow-authoring.d.ts +1 -0
  160. package/dist/lib/workflow-authoring.js +1 -0
  161. package/dist/lib/workflow-definitions.d.ts +1 -68
  162. package/dist/lib/workflow-definitions.js +1 -206
  163. package/dist/lib/workflow-edit-session.d.ts +1 -0
  164. package/dist/lib/workflow-edit-session.js +1 -0
  165. package/dist/lib/workflow-edit-utils.d.ts +1 -0
  166. package/dist/lib/workflow-edit-utils.js +1 -0
  167. package/dist/lib/workflow-helpers.d.ts +1 -38
  168. package/dist/lib/workflow-helpers.js +1 -167
  169. package/dist/lib/workflow-improvement.d.ts +1 -22
  170. package/dist/lib/workflow-improvement.js +1 -396
  171. package/dist/lib/workflow-primitives.d.ts +1 -2
  172. package/dist/lib/workflow-primitives.js +1 -5
  173. package/dist/lib/workflow-review-paths.d.ts +1 -10
  174. package/dist/lib/workflow-review-paths.js +1 -27
  175. package/dist/lib/workflow-stage-policy.d.ts +1 -0
  176. package/dist/lib/workflow-stage-policy.js +1 -0
  177. package/dist/lib/workflow-stage-runner.d.ts +1 -41
  178. package/dist/lib/workflow-stage-runner.js +1 -109
  179. package/dist/lib/workflows.d.ts +1 -15
  180. package/dist/lib/workflows.js +1 -31
  181. package/dist/packages/agents/index.d.ts +17 -0
  182. package/dist/packages/agents/index.js +15 -0
  183. package/dist/packages/agents/lib/agents.d.ts +6 -0
  184. package/dist/packages/agents/lib/agents.js +5 -0
  185. package/dist/packages/agents/lib/args.d.ts +4 -0
  186. package/dist/packages/agents/lib/args.js +52 -0
  187. package/dist/packages/agents/lib/constants.d.ts +5 -0
  188. package/dist/packages/agents/lib/constants.js +28 -0
  189. package/dist/packages/agents/lib/detection.d.ts +7 -0
  190. package/dist/packages/agents/lib/detection.js +65 -0
  191. package/dist/packages/agents/lib/execution-profile.d.ts +17 -0
  192. package/dist/packages/agents/lib/execution-profile.js +84 -0
  193. package/dist/packages/agents/lib/execution.d.ts +2 -0
  194. package/dist/packages/agents/lib/execution.js +243 -0
  195. package/dist/packages/agents/lib/executors.d.ts +32 -0
  196. package/dist/packages/agents/lib/executors.js +45 -0
  197. package/dist/packages/agents/lib/logs.d.ts +2 -0
  198. package/dist/packages/agents/lib/logs.js +17 -0
  199. package/dist/packages/agents/lib/preflight.d.ts +7 -0
  200. package/dist/packages/agents/lib/preflight.js +77 -0
  201. package/dist/packages/agents/lib/render.d.ts +8 -0
  202. package/dist/packages/agents/lib/render.js +218 -0
  203. package/dist/packages/agents/lib/schema.d.ts +8 -0
  204. package/dist/packages/agents/lib/schema.js +7 -0
  205. package/dist/packages/agents/lib/shells.d.ts +69 -0
  206. package/dist/packages/agents/lib/shells.js +1021 -0
  207. package/dist/packages/agents/lib/status.d.ts +3 -0
  208. package/dist/packages/agents/lib/status.js +58 -0
  209. package/dist/packages/agents/lib/types.d.ts +30 -0
  210. package/dist/packages/agents/lib/types.js +1 -0
  211. package/dist/{lib → packages/agents/lib}/user-config.d.ts +1 -0
  212. package/dist/{lib → packages/agents/lib}/user-config.js +3 -2
  213. package/dist/packages/compiler/compiled-compile.d.ts +48 -0
  214. package/dist/packages/compiler/compiled-compile.js +256 -0
  215. package/dist/packages/compiler/compiled-schema.d.ts +31 -0
  216. package/dist/packages/compiler/compiled-schema.js +141 -0
  217. package/dist/packages/compiler/index.d.ts +24 -0
  218. package/dist/packages/compiler/index.js +23 -0
  219. package/dist/packages/compiler/lib/schema.d.ts +684 -0
  220. package/dist/packages/compiler/lib/schema.js +361 -0
  221. package/dist/packages/compiler/runtime-acceptance.d.ts +9 -0
  222. package/dist/packages/compiler/runtime-acceptance.js +269 -0
  223. package/dist/packages/compiler/runtime-contracts.d.ts +2 -0
  224. package/dist/packages/compiler/runtime-contracts.js +48 -0
  225. package/dist/packages/compiler/runtime-inventory.d.ts +7 -0
  226. package/dist/packages/compiler/runtime-inventory.js +29 -0
  227. package/dist/packages/compiler/runtime-paths.d.ts +8 -0
  228. package/dist/packages/compiler/runtime-paths.js +26 -0
  229. package/dist/packages/compiler/runtime-prompt.d.ts +2 -0
  230. package/dist/packages/compiler/runtime-prompt.js +48 -0
  231. package/dist/packages/compiler/runtime-reconcile.d.ts +2 -0
  232. package/dist/packages/compiler/runtime-reconcile.js +193 -0
  233. package/dist/packages/compiler/runtime-runs.d.ts +11 -0
  234. package/dist/packages/compiler/runtime-runs.js +262 -0
  235. package/dist/packages/compiler/runtime-types.d.ts +43 -0
  236. package/dist/packages/compiler/runtime-types.js +1 -0
  237. package/dist/packages/compiler/runtime.d.ts +6 -0
  238. package/dist/packages/compiler/runtime.js +5 -0
  239. package/dist/packages/compiler/state-artifacts.d.ts +8 -0
  240. package/dist/packages/compiler/state-artifacts.js +13 -0
  241. package/dist/packages/compiler/state-health.d.ts +4 -0
  242. package/dist/packages/compiler/state-health.js +132 -0
  243. package/dist/packages/compiler/state-io.d.ts +10 -0
  244. package/dist/packages/compiler/state-io.js +76 -0
  245. package/dist/packages/compiler/state-paths.d.ts +4 -0
  246. package/dist/packages/compiler/state-paths.js +13 -0
  247. package/dist/packages/compiler/state-view.d.ts +4 -0
  248. package/dist/packages/compiler/state-view.js +103 -0
  249. package/dist/packages/compiler/state.d.ts +7 -0
  250. package/dist/packages/compiler/state.js +12 -0
  251. package/dist/packages/compiler/validate-compiled.d.ts +27 -0
  252. package/dist/packages/compiler/validate-compiled.js +241 -0
  253. package/dist/packages/compiler/validate-helpers.d.ts +12 -0
  254. package/dist/packages/compiler/validate-helpers.js +41 -0
  255. package/dist/packages/compiler/validate.d.ts +21 -0
  256. package/dist/packages/compiler/validate.js +249 -0
  257. package/dist/packages/compiler/workflow-primitives.d.ts +2 -0
  258. package/dist/packages/compiler/workflow-primitives.js +5 -0
  259. package/dist/packages/compiler/workflows.d.ts +15 -0
  260. package/dist/packages/compiler/workflows.js +31 -0
  261. package/dist/packages/project-model/compiled-paths.d.ts +40 -0
  262. package/dist/packages/project-model/compiled-paths.js +106 -0
  263. package/dist/packages/project-model/compiled-raw.d.ts +49 -0
  264. package/dist/packages/project-model/compiled-raw.js +102 -0
  265. package/dist/packages/project-model/compiled-reset.d.ts +2 -0
  266. package/dist/packages/project-model/compiled-reset.js +72 -0
  267. package/dist/packages/project-model/index.d.ts +11 -0
  268. package/dist/packages/project-model/index.js +10 -0
  269. package/dist/packages/project-model/interf-bootstrap.d.ts +3 -0
  270. package/dist/packages/project-model/interf-bootstrap.js +18 -0
  271. package/dist/packages/project-model/interf-detect.d.ts +33 -0
  272. package/dist/packages/project-model/interf-detect.js +176 -0
  273. package/dist/packages/project-model/interf-scaffold.d.ts +2 -0
  274. package/dist/packages/project-model/interf-scaffold.js +124 -0
  275. package/dist/packages/project-model/interf.d.ts +5 -0
  276. package/dist/packages/project-model/interf.js +4 -0
  277. package/dist/packages/project-model/lib/schema.d.ts +125 -0
  278. package/dist/packages/project-model/lib/schema.js +62 -0
  279. package/dist/packages/project-model/project-paths.d.ts +11 -0
  280. package/dist/packages/project-model/project-paths.js +32 -0
  281. package/dist/packages/project-model/source-config.d.ts +38 -0
  282. package/dist/packages/project-model/source-config.js +297 -0
  283. package/dist/packages/testing/index.d.ts +13 -0
  284. package/dist/packages/testing/index.js +10 -0
  285. package/dist/packages/testing/lib/schema.d.ts +261 -0
  286. package/dist/packages/testing/lib/schema.js +119 -0
  287. package/dist/packages/testing/test-execution.d.ts +14 -0
  288. package/dist/packages/testing/test-execution.js +525 -0
  289. package/dist/packages/testing/test-matrices.d.ts +90 -0
  290. package/dist/packages/testing/test-matrices.js +96 -0
  291. package/dist/packages/testing/test-paths.d.ts +12 -0
  292. package/dist/packages/testing/test-paths.js +59 -0
  293. package/dist/packages/testing/test-profile-presets.d.ts +57 -0
  294. package/dist/packages/testing/test-profile-presets.js +50 -0
  295. package/dist/packages/testing/test-sandbox.d.ts +11 -0
  296. package/dist/packages/testing/test-sandbox.js +105 -0
  297. package/dist/packages/testing/test-specs.d.ts +7 -0
  298. package/dist/packages/testing/test-specs.js +114 -0
  299. package/dist/packages/testing/test-targets.d.ts +5 -0
  300. package/dist/packages/testing/test-targets.js +38 -0
  301. package/dist/packages/testing/test-types.d.ts +16 -0
  302. package/dist/packages/testing/test-types.js +1 -0
  303. package/dist/packages/testing/test.d.ts +4 -0
  304. package/dist/packages/testing/test.js +3 -0
  305. package/dist/packages/workflow-authoring/index.d.ts +4 -0
  306. package/dist/packages/workflow-authoring/index.js +4 -0
  307. package/dist/packages/workflow-authoring/lib/workflow-edit-utils.d.ts +10 -0
  308. package/dist/packages/workflow-authoring/lib/workflow-edit-utils.js +39 -0
  309. package/dist/packages/workflow-authoring/workflow-authoring.d.ts +26 -0
  310. package/dist/packages/workflow-authoring/workflow-authoring.js +120 -0
  311. package/dist/packages/workflow-authoring/workflow-edit-session.d.ts +16 -0
  312. package/dist/packages/workflow-authoring/workflow-edit-session.js +57 -0
  313. package/dist/packages/workflow-authoring/workflow-improvement.d.ts +23 -0
  314. package/dist/packages/workflow-authoring/workflow-improvement.js +209 -0
  315. package/dist/packages/workflow-package/builtin-compiled-workflow.d.ts +38 -0
  316. package/dist/packages/workflow-package/builtin-compiled-workflow.js +94 -0
  317. package/dist/packages/workflow-package/index.d.ts +9 -0
  318. package/dist/packages/workflow-package/index.js +9 -0
  319. package/dist/packages/workflow-package/interf-workflow-package.d.ts +25 -0
  320. package/dist/packages/workflow-package/interf-workflow-package.js +342 -0
  321. package/dist/{lib/config.d.ts → packages/workflow-package/lib/package-root.d.ts} +0 -1
  322. package/dist/packages/workflow-package/lib/package-root.js +6 -0
  323. package/dist/packages/workflow-package/local-workflows.d.ts +54 -0
  324. package/dist/packages/workflow-package/local-workflows.js +422 -0
  325. package/dist/packages/workflow-package/workflow-definitions.d.ts +78 -0
  326. package/dist/packages/workflow-package/workflow-definitions.js +203 -0
  327. package/dist/packages/workflow-package/workflow-helpers.d.ts +38 -0
  328. package/dist/packages/workflow-package/workflow-helpers.js +167 -0
  329. package/dist/packages/workflow-package/workflow-review-paths.d.ts +10 -0
  330. package/dist/packages/workflow-package/workflow-review-paths.js +27 -0
  331. package/dist/packages/workflow-package/workflow-stage-policy.d.ts +5 -0
  332. package/dist/packages/workflow-package/workflow-stage-policy.js +31 -0
  333. package/dist/packages/workflow-package/workflow-stage-runner.d.ts +41 -0
  334. package/dist/packages/workflow-package/workflow-stage-runner.js +109 -0
  335. package/package.json +44 -21
  336. package/dist/commands/compile.d.ts +0 -15
  337. package/dist/commands/create-workflow-wizard.js +0 -125
  338. package/dist/commands/create.js +0 -162
  339. package/dist/commands/init.d.ts +0 -3
  340. package/dist/commands/test.d.ts +0 -9
  341. package/dist/lib/compiled-home.d.ts +0 -5
  342. package/dist/lib/compiled-home.js +0 -32
  343. package/dist/lib/config.js +0 -9
  344. package/dist/lib/obsidian.d.ts +0 -1
  345. package/dist/lib/obsidian.js +0 -15
  346. package/dist/lib/summarize-plan.d.ts +0 -17
  347. package/dist/lib/summarize-plan.js +0 -120
  348. /package/dist/{commands → cli/commands}/default.d.ts +0 -0
  349. /package/dist/{commands → cli/commands}/doctor.d.ts +0 -0
  350. /package/dist/{commands → cli/commands}/list.d.ts +0 -0
  351. /package/dist/{commands → cli/commands}/reset.d.ts +0 -0
  352. /package/dist/{commands → cli/commands}/status.d.ts +0 -0
  353. /package/dist/{commands → cli/commands}/verify.d.ts +0 -0
@@ -1,121 +1,3 @@
1
- import { mkdirSync, existsSync, writeFileSync, } from "node:fs";
2
- import { basename, join, relative, sep } from "node:path";
3
- import { getCompiledWorkflow } from "./workflow-definitions.js";
4
- import { refreshCompiledArtifacts, saveState, initCompiledState, } from "./state.js";
5
- import { saveEmptyCompiledInventory } from "./state-io.js";
6
- import { writeObsidianDefaults } from "./obsidian.js";
7
- import { assertCompiledContainer, assertWritableTargetDir, assertCompiledName, } from "./interf-detect.js";
8
- import { refreshCompiledBootstrapGuidance } from "./interf-bootstrap.js";
9
- import { seedCompiledWorkflowPackage } from "./interf-workflow-package.js";
10
- import { compiledCompiledPathForDataset } from "./project-paths.js";
11
- import { syncCompiledRawSnapshot } from "./compiled-raw.js";
12
- import { ensureCompiledZoneTargets, readCompiledSchemaFile } from "./compiled-schema.js";
13
- import { findSourceDatasetConfig, loadSourceFolderConfig, resolveSourceDatasetPath, saveCompiledInterfConfig, } from "./source-config.js";
14
- import { defaultControlPathForCompiled, workflowPackagePathForCompiled } from "./compiled-paths.js";
15
- const DEFAULT_INTERFIGNORE = [
16
- ".claude/",
17
- ".codex/",
18
- ".agents/",
19
- ".cursor/",
20
- ".interf/tests/",
21
- ".interf/tests/targets/sandboxes/",
22
- ".interf/runtime/",
23
- ".obsidian/",
24
- "",
25
- ].join("\n");
26
- const UNCOMPILED_COMPILED_PLACEHOLDER = "Not yet compiled. Run `interf compile` to build the compiled dataset.";
27
- function renderUncompiledCompiledFile(compiledName, relativePath, about) {
28
- return [
29
- `# ${compiledName} — ${relativePath}`,
30
- "",
31
- UNCOMPILED_COMPILED_PLACEHOLDER,
32
- ...(about ? ["", `About: ${about}`] : []),
33
- "",
34
- ].join("\n");
35
- }
36
- function compiledGitignoreEntries(compiledPath) {
37
- const schema = readCompiledSchemaFile(workflowPackagePathForCompiled(compiledPath));
38
- const zoneEntries = (schema?.zones ?? [])
39
- .filter((zone) => zone.kind !== "runtime")
40
- .map((zone) => zone.kind === "file" ? zone.path : `${zone.path}/`);
41
- return [
42
- ...zoneEntries,
43
- ".claude/",
44
- ".codex/",
45
- ".agents/",
46
- ".cursor/",
47
- ".interf/tests/",
48
- ".interf/tests/targets/sandboxes/",
49
- ".interf/runtime/",
50
- ".obsidian/",
51
- ];
52
- }
53
- function scaffoldCompiledOutputs(compiledPath, compiledName, about) {
54
- const schema = readCompiledSchemaFile(workflowPackagePathForCompiled(compiledPath));
55
- if (!schema) {
56
- throw new Error(`Missing compiled schema at ${workflowPackagePathForCompiled(compiledPath)}.`);
57
- }
58
- ensureCompiledZoneTargets(compiledPath, schema);
59
- for (const zone of schema.zones) {
60
- if (!zone.required || zone.kind !== "file" || zone.id === "raw")
61
- continue;
62
- const targetPath = join(compiledPath, zone.path);
63
- if (existsSync(targetPath))
64
- continue;
65
- writeFileSync(targetPath, renderUncompiledCompiledFile(compiledName, zone.path, about));
66
- }
67
- }
68
- export function createCompiled(name, sourcePath, workflowId = "interf", about, datasetPath = sourcePath) {
69
- assertCompiledName(name, "Compiled");
70
- assertCompiledContainer(sourcePath);
71
- const compiledPath = compiledCompiledPathForDataset(sourcePath, name);
72
- assertWritableTargetDir(compiledPath, "Compiled");
73
- mkdirSync(compiledPath, { recursive: true });
74
- const savedCompiled = findSourceDatasetConfig(loadSourceFolderConfig(sourcePath), name);
75
- const selectedWorkflow = getCompiledWorkflow(workflowId, { sourcePath });
76
- const resolvedAbout = about ?? savedCompiled?.about;
77
- const resolvedDatasetPath = savedCompiled
78
- ? resolveSourceDatasetPath(sourcePath, savedCompiled)
79
- : datasetPath;
80
- saveCompiledInterfConfig(compiledPath, {
81
- type: "compiled",
82
- name,
83
- ...(resolvedAbout ? { about: resolvedAbout } : {}),
84
- workflow: selectedWorkflow.id,
85
- ...(typeof savedCompiled?.max_attempts === "number"
86
- ? { max_attempts: savedCompiled.max_attempts }
87
- : {}),
88
- ...(typeof savedCompiled?.max_loops === "number"
89
- ? { max_loops: savedCompiled.max_loops }
90
- : {}),
91
- checks: savedCompiled?.checks ?? [],
92
- workflow_origin: {
93
- selected: selectedWorkflow.id,
94
- local_draft: false,
95
- },
96
- source: {
97
- path: "./raw",
98
- control_path: defaultControlPathForCompiled(compiledPath),
99
- dataset_path: relative(compiledPath, resolvedDatasetPath).split(sep).join("/") || ".",
100
- },
101
- });
102
- mkdirSync(join(compiledPath, "raw"), { recursive: true });
103
- syncCompiledRawSnapshot(compiledPath, resolvedDatasetPath);
104
- writeFileSync(join(compiledPath, ".interfignore"), DEFAULT_INTERFIGNORE);
105
- seedCompiledWorkflowPackage({
106
- compiledPath,
107
- sourcePath,
108
- workflowId: selectedWorkflow.id,
109
- });
110
- scaffoldCompiledOutputs(compiledPath, name, about);
111
- refreshCompiledBootstrapGuidance(compiledPath);
112
- writeFileSync(join(compiledPath, ".gitignore"), [...compiledGitignoreEntries(compiledPath), ""].join("\n"));
113
- saveState(compiledPath, initCompiledState());
114
- saveEmptyCompiledInventory(compiledPath);
115
- refreshCompiledArtifacts(compiledPath, { ensureViewSpec: true });
116
- writeObsidianDefaults(compiledPath, "compiled");
117
- return compiledPath;
118
- }
119
- export function defaultCompiledNameForSource(sourcePath) {
120
- return basename(sourcePath);
121
- }
1
+ // Compatibility shim for historical `src/lib/interf-scaffold.ts` imports.
2
+ // Source of truth: `src/packages/project-model/interf-scaffold.ts`.
3
+ export * from "../packages/project-model/interf-scaffold.js";
@@ -1,20 +1 @@
1
- import { type WorkflowDefinition } from "./workflow-definitions.js";
2
- export declare function writeCompiledWorkflowPackage(compiledPath: string, workflow: WorkflowDefinition<string>): void;
3
- export declare function writeWorkflowPackageToDir(workflowDir: string, workflow: WorkflowDefinition<string>, options?: {
4
- overwrite?: boolean;
5
- }): void;
6
- export declare function seedCompiledWorkflowPackage(options: {
7
- compiledPath: string;
8
- sourcePath: string;
9
- workflowId: string;
10
- }): void;
11
- export declare function createLocalWorkflowPackageFromTemplate(options: {
12
- sourcePath: string;
13
- baseWorkflowId: string;
14
- workflowId: string;
15
- label: string;
16
- hint: string;
17
- summarizeBias: string;
18
- structureBias: string;
19
- shapeBias: string;
20
- }): string;
1
+ export * from "../packages/workflow-package/interf-workflow-package.js";
@@ -1,276 +1 @@
1
- import { existsSync, mkdirSync, writeFileSync } from "node:fs";
2
- import { dirname, join } from "node:path";
3
- import { copyWorkflowPackageDirectory, isPortableWorkflowPackage, patchWorkflowPackageMetadata, resolveWorkflowPackageSourcePath, workflowDefinitionPath, } from "./local-workflows.js";
4
- import { getCompiledWorkflow, } from "./workflow-definitions.js";
5
- import { renderCompiledQuerySkill } from "./agent-shells.js";
6
- import { CHART_APPROXIMATION_NOTES } from "./chart-guidance.js";
7
- import { writeCompiledSchemaFile } from "./compiled-schema.js";
8
- import { workflowPackagePathForCompiled } from "./compiled-paths.js";
9
- function workflowPackagePath(dirPath) {
10
- return workflowPackagePathForCompiled(dirPath);
11
- }
12
- function mergeWorkflowStagePolicyNotes(stages, baseNotes, nextNotes) {
13
- const merged = {};
14
- for (const stage of stages) {
15
- const combined = Array.from(new Set([
16
- ...(baseNotes?.[stage.id] ?? []),
17
- ...(nextNotes?.[stage.id] ?? []),
18
- ].map((note) => note.trim()).filter((note) => note.length > 0)));
19
- if (combined.length > 0) {
20
- merged[stage.id] = combined;
21
- }
22
- }
23
- return Object.keys(merged).length > 0 ? merged : undefined;
24
- }
25
- function writeWorkflowStarterDocs(dirPath, docs, options) {
26
- for (const doc of docs ?? []) {
27
- const targetPath = join(dirPath, doc.relativePath);
28
- if (!options.overwrite && existsSync(targetPath))
29
- continue;
30
- mkdirSync(dirname(targetPath), { recursive: true });
31
- writeFileSync(targetPath, doc.content);
32
- }
33
- }
34
- function writeWorkflowPackageJson(rootPath, workflow, options) {
35
- const targetPath = join(rootPath, "workflow.json");
36
- if (!options.overwrite && existsSync(targetPath))
37
- return;
38
- writeFileSync(targetPath, `${JSON.stringify({
39
- id: workflow.id,
40
- type: "compiled",
41
- compiler_api: workflow.compilerApi ?? {
42
- kind: "compiled",
43
- version: 1,
44
- },
45
- label: workflow.label,
46
- hint: workflow.hint,
47
- stages: workflow.stages.map((stage) => ({
48
- id: stage.id,
49
- label: stage.label,
50
- description: stage.description,
51
- contract_type: stage.contractType,
52
- skill_dir: stage.skillDir,
53
- reads: stage.reads,
54
- writes: stage.writes,
55
- ...(stage.acceptance ? { acceptance: stage.acceptance } : {}),
56
- })),
57
- ...(workflow.stagePolicyNotes ? { stage_policy_notes: workflow.stagePolicyNotes } : {}),
58
- }, null, 2)}\n`);
59
- }
60
- function renderWorkflowReadme(workflow) {
61
- const stageLines = workflow.stages
62
- .map((stage) => `- \`${stage.id}\` — ${stage.description} (${stage.contractType}; reads: ${stage.reads.join(", ")}; writes: ${stage.writes.join(", ")})`)
63
- .join("\n");
64
- return [
65
- `# ${workflow.label}`,
66
- "",
67
- workflow.hint,
68
- "",
69
- "## Package",
70
- "",
71
- "- `workflow.json` = stage graph, compiler API target, and compile contract mapping",
72
- "- `compiled.schema.json` = deterministic compiled-dataset output shape",
73
- "- `improve/`, `compile/stages/`, and `use/query/` = human-readable authoring docs",
74
- "- Portable workflow packages are standalone: explicit stages, schema, and docs live together in this folder",
75
- "- Interf Compiler projects native agent shells from these docs for query use, stage execution, and workflow-improvement loops",
76
- "",
77
- "## Stages",
78
- "",
79
- stageLines,
80
- "",
81
- "Interf Compiler runs the local copy of this package directly from `.interf/workflow/` inside each compiled dataset.",
82
- "",
83
- ].join("\n");
84
- }
85
- function renderDerivedWorkflowReadme(options) {
86
- return [
87
- `# ${options.label}`,
88
- "",
89
- options.hint,
90
- "",
91
- `This workflow package was copied from \`${options.baseWorkflowId}\` and materialized as a standalone package for this dataset job.`,
92
- "",
93
- "Interf Compiler runs the local copy of this package directly. Keep changes in this folder self-contained instead of relying on runtime inheritance or fallback.",
94
- "",
95
- "## Emphasis",
96
- "",
97
- `- summarize: ${options.summarizeBias}`,
98
- `- structure: ${options.structureBias}`,
99
- `- shape: ${options.shapeBias}`,
100
- "",
101
- ].join("\n");
102
- }
103
- function renderImproveSkill(workflow) {
104
- return [
105
- "# Workflow Improvement",
106
- "",
107
- `Workflow: ${workflow.id}`,
108
- "",
109
- "This file is the editable authoring source for Interf Compiler's generated native workflow-improver shell.",
110
- "The improver edits this local package directly.",
111
- "",
112
- "Default loop:",
113
- "1. Read the loop context first.",
114
- "2. Review preserved stage shells, runtime logs, and saved test runs from failed attempts.",
115
- "3. Edit only the local workflow package for this compiled dataset to create a better workflow variation for this dataset.",
116
- "4. Keep `workflow.json`, `compiled.schema.json`, and any changed stage docs aligned.",
117
- "",
118
- "Guardrails:",
119
- "- do not edit truth checks, test specs, or raw dataset files",
120
- "- do not hardcode expected answers into workflow docs",
121
- "- keep this package standalone; do not add or rely on runtime `extends` or fallback behavior",
122
- "- prefer small, defensible workflow changes over random churn",
123
- "",
124
- ].join("\n");
125
- }
126
- function renderStageSkill(workflow, stage) {
127
- const notes = workflow.stagePolicyNotes?.[stage.id] ?? [];
128
- const stageSpecificNotes = stage.contractType === "compiled-file-evidence"
129
- ? [
130
- "Each summary must use JSON frontmatter and include `source`, `source_kind`, `evidence_tier`, `truth_mode`, `state`, and a non-empty `abstract`.",
131
- "Include a clear abstract block in the body so a human can skim the summary quickly.",
132
- "Do not skip the abstract just because the overview section is present.",
133
- ]
134
- : stage.contractType === "compiled-knowledge-structure"
135
- ? [
136
- "Treat the knowledge layer as retrieval structure, not final truth.",
137
- "Prefer durable entity, claim, and index notes over one giant catch-all file.",
138
- ]
139
- : stage.contractType === "compiled-query-shape"
140
- ? [
141
- "Use the compiled focus plus saved truth-check question text to shape `home.md` and retrieval routes.",
142
- "Rewrite `home.md` into a real entrypoint note. Do not leave the scaffold `Not yet compiled.` placeholder in place.",
143
- ...CHART_APPROXIMATION_NOTES,
144
- "Do not copy expected answers into the compiled dataset.",
145
- ]
146
- : [];
147
- return [
148
- `# ${stage.label}`,
149
- "",
150
- stage.description,
151
- "",
152
- `Contract type: \`${stage.contractType}\``,
153
- "",
154
- ...(stageSpecificNotes.length > 0
155
- ? [
156
- "## Requirements",
157
- "",
158
- ...stageSpecificNotes.map((note) => `- ${note}`),
159
- "",
160
- ]
161
- : []),
162
- ...(notes.length > 0
163
- ? [
164
- "## Notes",
165
- "",
166
- ...notes.map((note) => `- ${note}`),
167
- "",
168
- ]
169
- : []),
170
- ].join("\n");
171
- }
172
- export function writeCompiledWorkflowPackage(compiledPath, workflow) {
173
- writeWorkflowPackageToDir(workflowPackagePath(compiledPath), workflow);
174
- }
175
- export function writeWorkflowPackageToDir(workflowDir, workflow, options = {}) {
176
- const overwrite = options.overwrite ?? true;
177
- mkdirSync(join(workflowDir, "improve"), { recursive: true });
178
- mkdirSync(join(workflowDir, "use", "query"), { recursive: true });
179
- mkdirSync(join(workflowDir, "compile", "stages"), { recursive: true });
180
- for (const stage of workflow.stages) {
181
- mkdirSync(join(workflowDir, "compile", "stages", stage.skillDir), { recursive: true });
182
- }
183
- writeWorkflowPackageJson(workflowDir, workflow, { overwrite });
184
- if (overwrite || !existsSync(join(workflowDir, "compiled.schema.json"))) {
185
- writeCompiledSchemaFile(workflowDir, workflow.stages, `${workflow.label} compiled schema`);
186
- }
187
- if (overwrite || !existsSync(join(workflowDir, "README.md"))) {
188
- writeFileSync(join(workflowDir, "README.md"), renderWorkflowReadme(workflow));
189
- }
190
- if (overwrite || !existsSync(join(workflowDir, "improve", "SKILL.md"))) {
191
- writeFileSync(join(workflowDir, "improve", "SKILL.md"), renderImproveSkill(workflow));
192
- }
193
- if (overwrite || !existsSync(join(workflowDir, "use", "query", "SKILL.md"))) {
194
- writeFileSync(join(workflowDir, "use", "query", "SKILL.md"), renderCompiledQuerySkill());
195
- }
196
- for (const stage of workflow.stages) {
197
- const targetPath = join(workflowDir, "compile", "stages", stage.skillDir, "SKILL.md");
198
- if (overwrite || !existsSync(targetPath)) {
199
- writeFileSync(targetPath, renderStageSkill(workflow, stage));
200
- }
201
- }
202
- writeWorkflowStarterDocs(workflowDir, workflow.starterDocs, { overwrite });
203
- }
204
- export function seedCompiledWorkflowPackage(options) {
205
- const resolvedWorkflow = getCompiledWorkflow(options.workflowId, {
206
- sourcePath: options.sourcePath,
207
- });
208
- const sourceWorkflowPath = resolveWorkflowPackageSourcePath(options.sourcePath, resolvedWorkflow.id);
209
- if (sourceWorkflowPath && isPortableWorkflowPackage(sourceWorkflowPath)) {
210
- // Portable seed packages can be copied directly because compile runs the
211
- // local package folder without any source-root fallback.
212
- copyWorkflowPackageDirectory(sourceWorkflowPath, workflowPackagePath(options.compiledPath));
213
- return;
214
- }
215
- // Legacy or partially-defined seed packages are resolved once and
216
- // materialized into a standalone local package.
217
- writeCompiledWorkflowPackage(options.compiledPath, resolvedWorkflow);
218
- }
219
- export function createLocalWorkflowPackageFromTemplate(options) {
220
- const sourceWorkflowPath = resolveWorkflowPackageSourcePath(options.sourcePath, options.baseWorkflowId);
221
- const targetPath = workflowDefinitionPath(options.sourcePath, options.workflowId);
222
- const stagePolicyNotes = {
223
- summarize: [options.summarizeBias],
224
- structure: [options.structureBias],
225
- shape: [options.shapeBias],
226
- };
227
- if (sourceWorkflowPath && isPortableWorkflowPackage(sourceWorkflowPath)) {
228
- // Copy directly when the base package is already portable and standalone.
229
- copyWorkflowPackageDirectory(sourceWorkflowPath, targetPath);
230
- patchWorkflowPackageMetadata(targetPath, {
231
- id: options.workflowId,
232
- label: options.label,
233
- hint: options.hint,
234
- stagePolicyNotes,
235
- });
236
- writeFileSync(join(targetPath, "README.md"), renderDerivedWorkflowReadme({
237
- label: options.label,
238
- hint: options.hint,
239
- baseWorkflowId: options.baseWorkflowId,
240
- summarizeBias: options.summarizeBias,
241
- structureBias: options.structureBias,
242
- shapeBias: options.shapeBias,
243
- }));
244
- return targetPath;
245
- }
246
- // Legacy or inherited base packages are materialized immediately so the new
247
- // local workflow package is standalone from its first write.
248
- const baseWorkflow = getCompiledWorkflow(options.baseWorkflowId, {
249
- sourcePath: options.sourcePath,
250
- });
251
- const localWorkflow = {
252
- ...baseWorkflow,
253
- id: options.workflowId,
254
- label: options.label,
255
- hint: options.hint,
256
- recommended: false,
257
- scope: "local",
258
- stagePolicyNotes: mergeWorkflowStagePolicyNotes(baseWorkflow.stages, baseWorkflow.stagePolicyNotes, stagePolicyNotes),
259
- starterDocs: [
260
- {
261
- relativePath: "README.md",
262
- content: renderDerivedWorkflowReadme({
263
- label: options.label,
264
- hint: options.hint,
265
- baseWorkflowId: options.baseWorkflowId,
266
- summarizeBias: options.summarizeBias,
267
- structureBias: options.structureBias,
268
- shapeBias: options.shapeBias,
269
- }),
270
- },
271
- ...(baseWorkflow.starterDocs ?? []).filter((doc) => doc.relativePath !== "README.md"),
272
- ],
273
- };
274
- writeWorkflowPackageToDir(targetPath, localWorkflow);
275
- return targetPath;
276
- }
1
+ export * from "../packages/workflow-package/interf-workflow-package.js";
@@ -1,5 +1 @@
1
- export { INTERF_CONTAINER_NAME, WORKFLOW_CONTAINER_NAME, TEST_CONTAINER_NAME, INTERF_CONFIG_FILE, WORKFLOW_PACKAGE_DIR, readInterfConfig, detectInterf, resolveCompiled, resolveSourceFolderPath, resolveSourceControlPath, resolveSourceInputPath, listCompiledDatasetsForSourceFolder, hasSourceFolderInput, assertCompiledContainer, assertWritableTargetDir, assertCompiledName, } from "./interf-detect.js";
2
- export type { InterfConfig, ResolvedCompiled } from "./interf-detect.js";
3
- export { ensureCompiledRawBinding, resolveCompiledRawPath, syncCompiledRawSnapshot, } from "./compiled-raw.js";
4
- export { refreshCompiledBootstrapGuidance, renderClaudeBootstrap, } from "./interf-bootstrap.js";
5
- export { createCompiled, defaultCompiledNameForSource, } from "./interf-scaffold.js";
1
+ export * from "../packages/project-model/interf.js";
@@ -1,4 +1,3 @@
1
- export { INTERF_CONTAINER_NAME, WORKFLOW_CONTAINER_NAME, TEST_CONTAINER_NAME, INTERF_CONFIG_FILE, WORKFLOW_PACKAGE_DIR, readInterfConfig, detectInterf, resolveCompiled, resolveSourceFolderPath, resolveSourceControlPath, resolveSourceInputPath, listCompiledDatasetsForSourceFolder, hasSourceFolderInput, assertCompiledContainer, assertWritableTargetDir, assertCompiledName, } from "./interf-detect.js";
2
- export { ensureCompiledRawBinding, resolveCompiledRawPath, syncCompiledRawSnapshot, } from "./compiled-raw.js";
3
- export { refreshCompiledBootstrapGuidance, renderClaudeBootstrap, } from "./interf-bootstrap.js";
4
- export { createCompiled, defaultCompiledNameForSource, } from "./interf-scaffold.js";
1
+ // Compatibility shim for historical `src/lib/interf.ts` imports.
2
+ // Source of truth: `src/packages/project-model/interf.ts`.
3
+ export * from "../packages/project-model/interf.js";
@@ -1,53 +1 @@
1
- import { z } from "zod";
2
- import { WorkflowCompilerApiSchema, RuntimeContractTypeSchema, RuntimeStageAcceptanceSchema, WorkflowStageZoneAccessSchema, type WorkflowCompiledSchema } from "./schema.js";
3
- export interface LocalWorkflowStarterDoc {
4
- relativePath: string;
5
- content: string;
6
- }
7
- export interface LocalWorkflowStageDefinition {
8
- id: string;
9
- label: string;
10
- contract_type: z.infer<typeof RuntimeContractTypeSchema>;
11
- skill_dir?: string;
12
- description?: string;
13
- reads: z.infer<typeof WorkflowStageZoneAccessSchema>;
14
- writes: z.infer<typeof WorkflowStageZoneAccessSchema>;
15
- acceptance?: z.infer<typeof RuntimeStageAcceptanceSchema>;
16
- }
17
- export interface LocalWorkflowDefinition {
18
- id: string;
19
- type: "compiled";
20
- compiler_api?: z.infer<typeof WorkflowCompilerApiSchema>;
21
- label: string;
22
- hint: string;
23
- extends?: string;
24
- stages?: LocalWorkflowStageDefinition[];
25
- stage_policy_notes?: Record<string, string[]>;
26
- compiled_schema: WorkflowCompiledSchema;
27
- starter_docs: LocalWorkflowStarterDoc[];
28
- directoryPath: string;
29
- workflowPath: string;
30
- compiledSchemaPath: string;
31
- }
32
- export declare function workflowDefinitionPath(sourcePath: string, id: string): string;
33
- export declare function loadWorkflowDefinitionFromDir(dirPath: string): LocalWorkflowDefinition | null;
34
- export declare function listLocalWorkflowDefinitions(sourcePath: string): LocalWorkflowDefinition[];
35
- export declare function loadLocalWorkflowDefinition(sourcePath: string, id: string): LocalWorkflowDefinition | null;
36
- export declare function resolveWorkflowPackageSourcePath(sourcePath: string, workflowId: string): string | null;
37
- export declare function isWorkflowId(value: string): boolean;
38
- export declare function patchWorkflowPackageMetadata(dirPath: string, options?: {
39
- id?: string;
40
- label?: string;
41
- hint?: string;
42
- stagePolicyNotes?: Record<string, string[]>;
43
- }): void;
44
- export declare function describeWorkflowPackagePortability(dirPath: string): string[];
45
- export declare function isPortableWorkflowPackage(dirPath: string): boolean;
46
- export declare function copyWorkflowPackageDirectory(sourceWorkflowPath: string, targetWorkflowPath: string): void;
47
- export interface WorkflowValidationResult {
48
- ok: boolean;
49
- summary: string;
50
- errors: string[];
51
- counts: Record<string, number>;
52
- }
53
- export declare function validateWorkflowPackage(dirPath: string): WorkflowValidationResult;
1
+ export * from "../packages/workflow-package/local-workflows.js";