@interf/compiler 0.9.1 → 0.9.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 (250) hide show
  1. package/README.md +9 -9
  2. package/agent-skills/interf-actions/SKILL.md +3 -0
  3. package/agent-skills/interf-actions/references/cli.md +13 -13
  4. package/{builtin-workflows/interf → builtin-methods/interf-default}/README.md +2 -2
  5. package/builtin-methods/interf-default/improve/SKILL.md +18 -0
  6. package/{builtin-workflows/interf/workflow.json → builtin-methods/interf-default/method.json} +4 -4
  7. package/{builtin-workflows/interf/workflow.schema.json → builtin-methods/interf-default/method.schema.json} +2 -2
  8. package/dist/cli/commands/check-draft.d.ts +6 -6
  9. package/dist/cli/commands/check-draft.js +5 -5
  10. package/dist/cli/commands/compile-controller.d.ts +7 -7
  11. package/dist/cli/commands/compile-controller.js +35 -38
  12. package/dist/cli/commands/compile.d.ts +3 -3
  13. package/dist/cli/commands/compile.js +23 -21
  14. package/dist/cli/commands/compiled-flow.d.ts +11 -11
  15. package/dist/cli/commands/compiled-flow.js +33 -30
  16. package/dist/cli/commands/create-method-wizard.d.ts +76 -0
  17. package/dist/cli/commands/{create-workflow-wizard.js → create-method-wizard.js} +153 -163
  18. package/dist/cli/commands/create.d.ts +3 -3
  19. package/dist/cli/commands/create.js +44 -45
  20. package/dist/cli/commands/default.js +1 -1
  21. package/dist/cli/commands/executor-flow.d.ts +6 -6
  22. package/dist/cli/commands/executor-flow.js +1 -1
  23. package/dist/cli/commands/init.d.ts +2 -2
  24. package/dist/cli/commands/init.js +139 -118
  25. package/dist/cli/commands/list.js +11 -10
  26. package/dist/cli/commands/preparation-selection.d.ts +3 -3
  27. package/dist/cli/commands/source-config-wizard.d.ts +9 -9
  28. package/dist/cli/commands/source-config-wizard.js +43 -43
  29. package/dist/cli/commands/status.js +36 -9
  30. package/dist/cli/commands/test-flow.d.ts +15 -15
  31. package/dist/cli/commands/test-flow.js +29 -219
  32. package/dist/cli/commands/test.d.ts +2 -2
  33. package/dist/cli/commands/test.js +50 -51
  34. package/dist/cli/commands/verify.js +7 -7
  35. package/dist/cli/commands/web.js +41 -28
  36. package/dist/compiler-ui/404.html +1 -0
  37. package/dist/compiler-ui/__next.__PAGE__.txt +10 -0
  38. package/dist/compiler-ui/__next._full.txt +20 -0
  39. package/dist/compiler-ui/__next._head.txt +5 -0
  40. package/dist/compiler-ui/__next._index.txt +5 -0
  41. package/dist/compiler-ui/__next._tree.txt +5 -0
  42. package/dist/compiler-ui/_next/static/chunks/06yhdspx~ca5-.js +5 -0
  43. package/{apps/compiler-ui/.next/static/chunks/13g~4mamjft.c.css → dist/compiler-ui/_next/static/chunks/0c9mu7yldxyyg.css} +1 -1
  44. package/{apps/compiler-ui/.next/static/chunks/0fgt_8knmicoz.js → dist/compiler-ui/_next/static/chunks/15mks7ry_cupt.js} +15 -21
  45. package/{apps/compiler-ui/.next/static/chunks/turbopack-109rtik40vwh5.js → dist/compiler-ui/_next/static/chunks/turbopack-0.uq1k8c0j4s..js} +1 -1
  46. package/dist/compiler-ui/_not-found/__next._full.txt +15 -0
  47. package/dist/compiler-ui/_not-found/__next._head.txt +5 -0
  48. package/dist/compiler-ui/_not-found/__next._index.txt +5 -0
  49. package/dist/compiler-ui/_not-found/__next._not-found.__PAGE__.txt +5 -0
  50. package/dist/compiler-ui/_not-found/__next._not-found.txt +5 -0
  51. package/dist/compiler-ui/_not-found/__next._tree.txt +2 -0
  52. package/dist/compiler-ui/_not-found.html +1 -0
  53. package/dist/compiler-ui/_not-found.txt +15 -0
  54. package/{apps/compiler-ui/.next/server/app → dist/compiler-ui}/index.html +1 -1
  55. package/dist/compiler-ui/index.txt +20 -0
  56. package/dist/index.d.ts +8 -6
  57. package/dist/index.js +5 -3
  58. package/dist/packages/agents/index.d.ts +1 -1
  59. package/dist/packages/agents/lib/args.d.ts +2 -2
  60. package/dist/packages/agents/lib/compiled-bootstrap.js +7 -6
  61. package/dist/packages/agents/lib/execution-profile.d.ts +5 -5
  62. package/dist/packages/agents/lib/execution-profile.js +7 -6
  63. package/dist/packages/agents/lib/executors.d.ts +13 -13
  64. package/dist/packages/agents/lib/preflight.d.ts +1 -0
  65. package/dist/packages/agents/lib/preflight.js +32 -9
  66. package/dist/packages/agents/lib/shells.d.ts +25 -24
  67. package/dist/packages/agents/lib/shells.js +161 -154
  68. package/dist/packages/agents/lib/types.d.ts +2 -2
  69. package/dist/packages/compiler/artifact-counts.d.ts +1 -0
  70. package/dist/packages/compiler/artifact-counts.js +30 -0
  71. package/dist/packages/compiler/compiled-paths.d.ts +4 -7
  72. package/dist/packages/compiler/compiled-paths.js +9 -15
  73. package/dist/packages/compiler/compiled-pipeline.d.ts +11 -12
  74. package/dist/packages/compiler/compiled-pipeline.js +22 -22
  75. package/dist/packages/compiler/compiled-schema.d.ts +20 -20
  76. package/dist/packages/compiler/compiled-schema.js +29 -29
  77. package/dist/packages/compiler/compiled-stage-plan.d.ts +4 -4
  78. package/dist/packages/compiler/compiled-stage-plan.js +8 -8
  79. package/dist/packages/compiler/compiled-stage-runner.d.ts +5 -5
  80. package/dist/packages/compiler/compiled-stage-runner.js +7 -7
  81. package/dist/packages/compiler/compiled-target.d.ts +5 -5
  82. package/dist/packages/compiler/compiled-target.js +5 -5
  83. package/dist/packages/compiler/index.d.ts +3 -3
  84. package/dist/packages/compiler/index.js +2 -2
  85. package/dist/packages/compiler/lib/schema.d.ts +62 -247
  86. package/dist/packages/compiler/lib/schema.js +56 -174
  87. package/dist/packages/compiler/{workflows.d.ts → method-runs.d.ts} +4 -4
  88. package/dist/packages/compiler/{workflows.js → method-runs.js} +4 -3
  89. package/dist/packages/compiler/raw-snapshot.d.ts +0 -7
  90. package/dist/packages/compiler/raw-snapshot.js +0 -1
  91. package/dist/packages/compiler/reset.js +3 -3
  92. package/dist/packages/compiler/runtime-acceptance.js +9 -16
  93. package/dist/packages/compiler/runtime-contracts.js +9 -9
  94. package/dist/packages/compiler/runtime-prompt.js +4 -4
  95. package/dist/packages/compiler/runtime-reconcile.d.ts +2 -2
  96. package/dist/packages/compiler/runtime-reconcile.js +3 -3
  97. package/dist/packages/compiler/runtime-runs.js +9 -9
  98. package/dist/packages/compiler/runtime-types.d.ts +8 -7
  99. package/dist/packages/compiler/state-health.js +26 -35
  100. package/dist/packages/compiler/state-view.js +6 -6
  101. package/dist/packages/compiler/validate-compiled.d.ts +5 -5
  102. package/dist/packages/compiler/validate-compiled.js +56 -64
  103. package/dist/packages/compiler/validate.d.ts +2 -2
  104. package/dist/packages/compiler/validate.js +22 -14
  105. package/dist/packages/contracts/index.d.ts +2 -0
  106. package/dist/packages/contracts/index.js +1 -0
  107. package/dist/packages/contracts/lib/schema.d.ts +205 -0
  108. package/dist/packages/contracts/lib/schema.js +101 -0
  109. package/dist/packages/execution/index.d.ts +2 -2
  110. package/dist/packages/execution/index.js +1 -1
  111. package/dist/packages/execution/lib/schema.d.ts +80 -83
  112. package/dist/packages/execution/lib/schema.js +25 -48
  113. package/dist/packages/local-service/action-values.d.ts +0 -1
  114. package/dist/packages/local-service/action-values.js +0 -1
  115. package/dist/packages/local-service/client.d.ts +4 -4
  116. package/dist/packages/local-service/client.js +4 -4
  117. package/dist/packages/local-service/index.d.ts +3 -3
  118. package/dist/packages/local-service/index.js +2 -2
  119. package/dist/packages/local-service/lib/schema.d.ts +536 -974
  120. package/dist/packages/local-service/lib/schema.js +43 -160
  121. package/dist/packages/local-service/run-observability.d.ts +6 -0
  122. package/dist/packages/local-service/run-observability.js +592 -0
  123. package/dist/packages/local-service/runtime.d.ts +19 -23
  124. package/dist/packages/local-service/runtime.js +302 -880
  125. package/dist/packages/local-service/server.d.ts +1 -0
  126. package/dist/packages/local-service/server.js +25 -20
  127. package/dist/packages/method-authoring/index.d.ts +4 -0
  128. package/dist/packages/method-authoring/index.js +4 -0
  129. package/dist/packages/{workflow-authoring/lib/workflow-edit-utils.d.ts → method-authoring/lib/method-edit-utils.d.ts} +3 -3
  130. package/dist/packages/method-authoring/method-authoring.d.ts +24 -0
  131. package/dist/packages/method-authoring/method-authoring.js +116 -0
  132. package/dist/packages/method-authoring/method-edit-session.d.ts +18 -0
  133. package/dist/packages/method-authoring/method-edit-session.js +125 -0
  134. package/dist/packages/method-authoring/method-improvement.d.ts +23 -0
  135. package/dist/packages/{workflow-authoring/workflow-improvement.js → method-authoring/method-improvement.js} +63 -63
  136. package/dist/packages/{workflow-package/builtin-compiled-workflow.d.ts → method-package/builtin-compiled-method.d.ts} +1 -1
  137. package/dist/packages/{workflow-package/builtin-compiled-workflow.js → method-package/builtin-compiled-method.js} +17 -17
  138. package/dist/packages/{workflow-package → method-package}/context-interface.d.ts +12 -12
  139. package/dist/packages/{workflow-package → method-package}/context-interface.js +19 -19
  140. package/dist/packages/method-package/index.d.ts +11 -0
  141. package/dist/packages/method-package/index.js +11 -0
  142. package/dist/packages/method-package/interf-method-package.d.ts +31 -0
  143. package/dist/packages/{workflow-package/interf-workflow-package.js → method-package/interf-method-package.js} +145 -145
  144. package/dist/packages/{workflow-package → method-package}/lib/package-root.js +1 -1
  145. package/dist/packages/method-package/local-methods.d.ts +64 -0
  146. package/dist/packages/method-package/local-methods.js +466 -0
  147. package/dist/packages/method-package/method-definitions.d.ts +83 -0
  148. package/dist/packages/method-package/method-definitions.js +205 -0
  149. package/dist/packages/{workflow-package/workflow-helpers.d.ts → method-package/method-helpers.d.ts} +10 -10
  150. package/dist/packages/{workflow-package/workflow-helpers.js → method-package/method-helpers.js} +22 -26
  151. package/dist/packages/method-package/method-review-paths.d.ts +10 -0
  152. package/dist/packages/{workflow-package/workflow-review-paths.js → method-package/method-review-paths.js} +4 -4
  153. package/dist/packages/{workflow-package/workflow-stage-runner.d.ts → method-package/method-stage-runner.d.ts} +12 -11
  154. package/dist/packages/{workflow-package/workflow-stage-runner.js → method-package/method-stage-runner.js} +6 -6
  155. package/dist/packages/methods/index.d.ts +2 -0
  156. package/dist/packages/methods/index.js +2 -0
  157. package/dist/packages/methods/method-resolution.d.ts +6 -0
  158. package/dist/packages/methods/method-resolution.js +7 -0
  159. package/dist/packages/project-model/index.d.ts +1 -4
  160. package/dist/packages/project-model/index.js +0 -3
  161. package/dist/packages/project-model/interf-detect.d.ts +1 -5
  162. package/dist/packages/project-model/interf-detect.js +7 -18
  163. package/dist/packages/project-model/interf-scaffold.d.ts +2 -2
  164. package/dist/packages/project-model/interf-scaffold.js +38 -39
  165. package/dist/packages/project-model/interf.d.ts +1 -2
  166. package/dist/packages/project-model/interf.js +1 -2
  167. package/dist/packages/project-model/lib/schema.d.ts +2 -66
  168. package/dist/packages/project-model/lib/schema.js +5 -23
  169. package/dist/packages/project-model/project-paths.d.ts +9 -10
  170. package/dist/packages/project-model/project-paths.js +14 -17
  171. package/dist/packages/project-model/source-config.d.ts +11 -18
  172. package/dist/packages/project-model/source-config.js +42 -60
  173. package/dist/packages/project-model/source-folders.d.ts +4 -4
  174. package/dist/packages/project-model/source-folders.js +10 -10
  175. package/dist/packages/testing/index.d.ts +2 -2
  176. package/dist/packages/testing/index.js +1 -1
  177. package/dist/packages/testing/lib/schema.d.ts +11 -11
  178. package/dist/packages/testing/lib/schema.js +8 -9
  179. package/dist/packages/testing/readiness-check-run.d.ts +67 -0
  180. package/dist/packages/testing/readiness-check-run.js +258 -0
  181. package/dist/packages/testing/test-execution.d.ts +3 -3
  182. package/dist/packages/testing/test-execution.js +5 -5
  183. package/dist/packages/testing/test-paths.js +6 -6
  184. package/dist/packages/testing/test-profile-presets.js +2 -2
  185. package/dist/packages/testing/test-sandbox.js +10 -11
  186. package/dist/packages/testing/test-targets.d.ts +1 -1
  187. package/dist/packages/testing/test-targets.js +8 -7
  188. package/dist/packages/testing/test-types.d.ts +1 -1
  189. package/package.json +16 -33
  190. package/apps/compiler-ui/.next/static/chunks/0ti_66mx7~w2-.js +0 -5
  191. package/builtin-workflows/interf/improve/SKILL.md +0 -18
  192. package/dist/cli/commands/create-workflow-wizard.d.ts +0 -76
  193. package/dist/packages/project-model/compiled-paths.d.ts +0 -1
  194. package/dist/packages/project-model/compiled-paths.js +0 -1
  195. package/dist/packages/project-model/compiled-raw.d.ts +0 -1
  196. package/dist/packages/project-model/compiled-raw.js +0 -1
  197. package/dist/packages/project-model/compiled-reset.d.ts +0 -1
  198. package/dist/packages/project-model/compiled-reset.js +0 -1
  199. package/dist/packages/shared/index.d.ts +0 -7
  200. package/dist/packages/shared/index.js +0 -7
  201. package/dist/packages/shared/util.d.ts +0 -3
  202. package/dist/packages/shared/util.js +0 -3
  203. package/dist/packages/testing/test-matrices.d.ts +0 -90
  204. package/dist/packages/testing/test-matrices.js +0 -96
  205. package/dist/packages/workflow-authoring/index.d.ts +0 -4
  206. package/dist/packages/workflow-authoring/index.js +0 -4
  207. package/dist/packages/workflow-authoring/workflow-authoring.d.ts +0 -24
  208. package/dist/packages/workflow-authoring/workflow-authoring.js +0 -82
  209. package/dist/packages/workflow-authoring/workflow-edit-session.d.ts +0 -18
  210. package/dist/packages/workflow-authoring/workflow-edit-session.js +0 -91
  211. package/dist/packages/workflow-authoring/workflow-improvement.d.ts +0 -23
  212. package/dist/packages/workflow-package/index.d.ts +0 -11
  213. package/dist/packages/workflow-package/index.js +0 -11
  214. package/dist/packages/workflow-package/interf-workflow-package.d.ts +0 -31
  215. package/dist/packages/workflow-package/local-workflows.d.ts +0 -64
  216. package/dist/packages/workflow-package/local-workflows.js +0 -457
  217. package/dist/packages/workflow-package/workflow-definitions.d.ts +0 -82
  218. package/dist/packages/workflow-package/workflow-definitions.js +0 -211
  219. package/dist/packages/workflow-package/workflow-review-paths.d.ts +0 -10
  220. /package/{builtin-workflows/interf → builtin-methods/interf-default}/compile/stages/shape/SKILL.md +0 -0
  221. /package/{builtin-workflows/interf → builtin-methods/interf-default}/compile/stages/structure/SKILL.md +0 -0
  222. /package/{builtin-workflows/interf → builtin-methods/interf-default}/compile/stages/summarize/SKILL.md +0 -0
  223. /package/{builtin-workflows/interf → builtin-methods/interf-default}/use/query/SKILL.md +0 -0
  224. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/03~yq9q893hmn.js +0 -0
  225. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/06z~l3kwb891e.js +0 -0
  226. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/08g7lvje.te.u.js +0 -0
  227. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/08m7vf5asqlsm.js +0 -0
  228. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/0_i-3_5l9t2qe.js +0 -0
  229. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/0b-ywny_j0g~0.js +0 -0
  230. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/0b52v41o1gixx.js +0 -0
  231. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/0gpzgsv0w.q~m.js +0 -0
  232. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/0ilwfezfvu6~-.js +0 -0
  233. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/0n51hrfoufc7g.js +0 -0
  234. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/0xxmf45eskdt~.css +0 -0
  235. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/0y5z3t-z1c8ks.js.map +0 -0
  236. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/14wtz~vq25~qq.js +0 -0
  237. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/turbopack-10e~t1yzi4svj.js +0 -0
  238. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/chunks/turbopack-worker-0sjn--fhq~1cg.js +0 -0
  239. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/media/GeistMono_Variable.p.17jn9btb_52pq.woff2 +0 -0
  240. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/media/Geist_Variable-s.p.0-te~ja_gpvcf.woff2 +0 -0
  241. /package/{apps/compiler-ui/.next → dist/compiler-ui/_next}/static/media/worker.102zas1s52_pf.js +0 -0
  242. /package/{apps/compiler-ui/.next/static/XWKL548yXD_UOG4ID9G3J → dist/compiler-ui/_next/static/pIZnDsV3Je6hdC3cOsGdK}/_buildManifest.js +0 -0
  243. /package/{apps/compiler-ui/.next/static/XWKL548yXD_UOG4ID9G3J → dist/compiler-ui/_next/static/pIZnDsV3Je6hdC3cOsGdK}/_clientMiddlewareManifest.js +0 -0
  244. /package/{apps/compiler-ui/.next/static/XWKL548yXD_UOG4ID9G3J → dist/compiler-ui/_next/static/pIZnDsV3Je6hdC3cOsGdK}/_ssgManifest.js +0 -0
  245. /package/dist/packages/compiler/{workflow-primitives.d.ts → method-primitives.d.ts} +0 -0
  246. /package/dist/packages/compiler/{workflow-primitives.js → method-primitives.js} +0 -0
  247. /package/dist/packages/{workflow-authoring/lib/workflow-edit-utils.js → method-authoring/lib/method-edit-utils.js} +0 -0
  248. /package/dist/packages/{workflow-package → method-package}/lib/package-root.d.ts +0 -0
  249. /package/dist/packages/{workflow-package/workflow-stage-policy.d.ts → method-package/method-stage-policy.d.ts} +0 -0
  250. /package/dist/packages/{workflow-package/workflow-stage-policy.js → method-package/method-stage-policy.js} +0 -0
@@ -1 +0,0 @@
1
- export * from "../compiler/compiled-paths.js";
@@ -1 +0,0 @@
1
- export * from "../compiler/raw-snapshot.js";
@@ -1 +0,0 @@
1
- export * from "../compiler/raw-snapshot.js";
@@ -1 +0,0 @@
1
- export * from "../compiler/reset.js";
@@ -1 +0,0 @@
1
- export * from "../compiler/reset.js";
@@ -1,7 +0,0 @@
1
- export * from "./file-types.js";
2
- export * from "./filesystem.js";
3
- export * from "./logger.js";
4
- export * from "./naming.js";
5
- export * from "./parse.js";
6
- export * from "./path-guards.js";
7
- export * from "./util.js";
@@ -1,7 +0,0 @@
1
- export * from "./file-types.js";
2
- export * from "./filesystem.js";
3
- export * from "./logger.js";
4
- export * from "./naming.js";
5
- export * from "./parse.js";
6
- export * from "./path-guards.js";
7
- export * from "./util.js";
@@ -1,3 +0,0 @@
1
- export { isMarkdownFile } from "./file-types.js";
2
- export { slugify } from "./naming.js";
3
- export { assertPathWithinRoot, isPathWithinRoot } from "./path-guards.js";
@@ -1,3 +0,0 @@
1
- export { isMarkdownFile } from "./file-types.js";
2
- export { slugify } from "./naming.js";
3
- export { assertPathWithinRoot, isPathWithinRoot } from "./path-guards.js";
@@ -1,90 +0,0 @@
1
- import { z } from "zod";
2
- import type { WorkflowExecutionProfile } from "../agents/lib/executors.js";
3
- export declare const TestMatrixAgentSchema: z.ZodEnum<{
4
- "claude-code": "claude-code";
5
- codex: "codex";
6
- }>;
7
- export declare const TestMatrixProfileSchema: z.ZodPipe<z.ZodObject<{
8
- id: z.ZodString;
9
- preset: z.ZodOptional<z.ZodEnum<{
10
- "release-claude-high": "release-claude-high";
11
- "release-codex-high": "release-codex-high";
12
- "tier1-max-claude": "tier1-max-claude";
13
- "tier1-max-codex": "tier1-max-codex";
14
- }>>;
15
- agent: z.ZodOptional<z.ZodEnum<{
16
- "claude-code": "claude-code";
17
- codex: "codex";
18
- }>>;
19
- model: z.ZodOptional<z.ZodString>;
20
- profile: z.ZodOptional<z.ZodString>;
21
- effort: z.ZodOptional<z.ZodString>;
22
- timeout_ms: z.ZodOptional<z.ZodNumber>;
23
- }, z.core.$strip>, z.ZodTransform<{
24
- agent: "claude-code" | "codex";
25
- id: string;
26
- preset?: "release-claude-high" | "release-codex-high" | "tier1-max-claude" | "tier1-max-codex" | undefined;
27
- model?: string | undefined;
28
- profile?: string | undefined;
29
- effort?: string | undefined;
30
- timeout_ms?: number | undefined;
31
- }, {
32
- id: string;
33
- preset?: "release-claude-high" | "release-codex-high" | "tier1-max-claude" | "tier1-max-codex" | undefined;
34
- agent?: "claude-code" | "codex" | undefined;
35
- model?: string | undefined;
36
- profile?: string | undefined;
37
- effort?: string | undefined;
38
- timeout_ms?: number | undefined;
39
- }>>;
40
- export declare const TestMatrixRetryPolicySchema: z.ZodObject<{
41
- max_attempts_per_profile: z.ZodOptional<z.ZodNumber>;
42
- }, z.core.$strip>;
43
- export declare const TestMatrixDatasetSchema: z.ZodString;
44
- export declare const TestMatrixSchema: z.ZodObject<{
45
- id: z.ZodString;
46
- name: z.ZodString;
47
- source_path: z.ZodString;
48
- compile_profiles: z.ZodArray<z.ZodPipe<z.ZodObject<{
49
- id: z.ZodString;
50
- preset: z.ZodOptional<z.ZodEnum<{
51
- "release-claude-high": "release-claude-high";
52
- "release-codex-high": "release-codex-high";
53
- "tier1-max-claude": "tier1-max-claude";
54
- "tier1-max-codex": "tier1-max-codex";
55
- }>>;
56
- agent: z.ZodOptional<z.ZodEnum<{
57
- "claude-code": "claude-code";
58
- codex: "codex";
59
- }>>;
60
- model: z.ZodOptional<z.ZodString>;
61
- profile: z.ZodOptional<z.ZodString>;
62
- effort: z.ZodOptional<z.ZodString>;
63
- timeout_ms: z.ZodOptional<z.ZodNumber>;
64
- }, z.core.$strip>, z.ZodTransform<{
65
- agent: "claude-code" | "codex";
66
- id: string;
67
- preset?: "release-claude-high" | "release-codex-high" | "tier1-max-claude" | "tier1-max-codex" | undefined;
68
- model?: string | undefined;
69
- profile?: string | undefined;
70
- effort?: string | undefined;
71
- timeout_ms?: number | undefined;
72
- }, {
73
- id: string;
74
- preset?: "release-claude-high" | "release-codex-high" | "tier1-max-claude" | "tier1-max-codex" | undefined;
75
- agent?: "claude-code" | "codex" | undefined;
76
- model?: string | undefined;
77
- profile?: string | undefined;
78
- effort?: string | undefined;
79
- timeout_ms?: number | undefined;
80
- }>>>;
81
- retry_policy: z.ZodOptional<z.ZodObject<{
82
- max_attempts_per_profile: z.ZodOptional<z.ZodNumber>;
83
- }, z.core.$strip>>;
84
- datasets: z.ZodArray<z.ZodString>;
85
- }, z.core.$strip>;
86
- export type TestMatrixProfile = z.infer<typeof TestMatrixProfileSchema>;
87
- export type TestMatrixRetryPolicy = z.infer<typeof TestMatrixRetryPolicySchema>;
88
- export type TestMatrixDataset = z.infer<typeof TestMatrixDatasetSchema>;
89
- export type TestMatrix = z.infer<typeof TestMatrixSchema>;
90
- export declare function testMatrixProfileToExecutionProfile(profile: TestMatrixProfile): WorkflowExecutionProfile;
@@ -1,96 +0,0 @@
1
- import { z } from "zod";
2
- import { WorkflowIdPattern } from "../compiler/lib/schema.js";
3
- import { TestProfilePresetIdSchema, resolveTestProfilePreset, } from "./test-profile-presets.js";
4
- export const TestMatrixAgentSchema = z.enum(["claude-code", "codex"]);
5
- const TestMatrixProfileInputSchema = z.object({
6
- id: z.string().regex(WorkflowIdPattern),
7
- preset: TestProfilePresetIdSchema.optional(),
8
- agent: TestMatrixAgentSchema.optional(),
9
- model: z.string().min(1).optional(),
10
- profile: z.string().min(1).optional(),
11
- effort: z.string().min(1).optional(),
12
- timeout_ms: z.number().int().positive().optional(),
13
- }).superRefine((value, ctx) => {
14
- if (!value.preset && !value.agent) {
15
- ctx.addIssue({
16
- code: z.ZodIssueCode.custom,
17
- path: ["agent"],
18
- message: "Test-matrix profiles need either `agent` or `preset`.",
19
- });
20
- }
21
- if (value.preset) {
22
- for (const field of ["agent", "model", "profile", "effort", "timeout_ms"]) {
23
- if (value[field] !== undefined) {
24
- ctx.addIssue({
25
- code: z.ZodIssueCode.custom,
26
- path: [field],
27
- message: `Test profile presets own \`${field}\`; remove the inline override or stop using \`preset\`.`,
28
- });
29
- }
30
- }
31
- }
32
- });
33
- export const TestMatrixProfileSchema = TestMatrixProfileInputSchema.transform((value) => {
34
- if (!value.preset) {
35
- return {
36
- ...value,
37
- agent: value.agent,
38
- };
39
- }
40
- const preset = resolveTestProfilePreset(value.preset);
41
- return {
42
- ...value,
43
- agent: preset.agent,
44
- model: preset.model,
45
- profile: preset.profile,
46
- effort: preset.effort,
47
- timeout_ms: preset.timeout_ms,
48
- };
49
- });
50
- export const TestMatrixRetryPolicySchema = z.object({
51
- max_attempts_per_profile: z.number().int().min(1).max(5).optional(),
52
- });
53
- export const TestMatrixDatasetSchema = z.string().regex(WorkflowIdPattern);
54
- export const TestMatrixSchema = z.object({
55
- id: z.string().regex(WorkflowIdPattern),
56
- name: z.string().min(1),
57
- source_path: z.string().min(1),
58
- compile_profiles: z.array(TestMatrixProfileSchema).min(1),
59
- retry_policy: TestMatrixRetryPolicySchema.optional(),
60
- datasets: z.array(TestMatrixDatasetSchema).min(1),
61
- }).superRefine((value, ctx) => {
62
- const duplicateProfileIds = findDuplicates(value.compile_profiles.map((profile) => profile.id));
63
- for (const id of duplicateProfileIds) {
64
- ctx.addIssue({
65
- code: z.ZodIssueCode.custom,
66
- path: ["compile_profiles"],
67
- message: `Duplicate compile profile id in test matrix: ${id}`,
68
- });
69
- }
70
- const duplicateCompiledIds = findDuplicates(value.datasets);
71
- for (const id of duplicateCompiledIds) {
72
- ctx.addIssue({
73
- code: z.ZodIssueCode.custom,
74
- path: ["datasets"],
75
- message: `Duplicate dataset id in test matrix: ${id}`,
76
- });
77
- }
78
- });
79
- function findDuplicates(values) {
80
- const seen = new Set();
81
- const duplicates = new Set();
82
- for (const value of values) {
83
- if (seen.has(value))
84
- duplicates.add(value);
85
- seen.add(value);
86
- }
87
- return Array.from(duplicates.values()).sort();
88
- }
89
- export function testMatrixProfileToExecutionProfile(profile) {
90
- return {
91
- model: profile.model ?? null,
92
- profile: profile.profile ?? null,
93
- effort: profile.effort ?? null,
94
- timeoutMs: profile.timeout_ms ?? null,
95
- };
96
- }
@@ -1,4 +0,0 @@
1
- export * as authoring from "./workflow-authoring.js";
2
- export * as editSession from "./workflow-edit-session.js";
3
- export * as editUtils from "./lib/workflow-edit-utils.js";
4
- export * as improvement from "./workflow-improvement.js";
@@ -1,4 +0,0 @@
1
- export * as authoring from "./workflow-authoring.js";
2
- export * as editSession from "./workflow-edit-session.js";
3
- export * as editUtils from "./lib/workflow-edit-utils.js";
4
- export * as improvement from "./workflow-improvement.js";
@@ -1,24 +0,0 @@
1
- import type { WorkflowExecutor } from "../agents/lib/executors.js";
2
- import { validateWorkflowPackage } from "../workflow-package/local-workflows.js";
3
- import type { SourceReadinessCheck } from "../project-model/lib/schema.js";
4
- export interface WorkflowAuthoringRunResult {
5
- status: "updated" | "no-change" | "invalid" | "executor-failed";
6
- changed: boolean;
7
- summary: string;
8
- validation: ReturnType<typeof validateWorkflowPackage> | null;
9
- workflowPath: string;
10
- shellPath: string;
11
- }
12
- export declare function runWorkflowAuthoringDraft(options: {
13
- sourcePath: string;
14
- datasetPath: string;
15
- baseWorkflowId?: string;
16
- workflowId: string;
17
- label: string;
18
- hint: string;
19
- taskPrompt: string;
20
- checks?: SourceReadinessCheck[];
21
- executor: WorkflowExecutor;
22
- onStatus?: (line: string) => void;
23
- }): Promise<WorkflowAuthoringRunResult>;
24
- export declare function resolveWorkflowDraftPath(sourcePath: string, workflowId: string): string;
@@ -1,82 +0,0 @@
1
- import { rmSync } from "node:fs";
2
- import { createWorkflowAuthoringShell } from "../agents/lib/shells.js";
3
- import { createScratchLocalWorkflowPackage } from "../workflow-package/interf-workflow-package.js";
4
- import { CONTEXT_INTERFACE_FILE } from "../workflow-package/context-interface.js";
5
- import { validateWorkflowPackage, workflowDefinitionPath } from "../workflow-package/local-workflows.js";
6
- import { runWorkflowEditSession } from "./workflow-edit-session.js";
7
- function buildWorkflowAuthoringPrompt() {
8
- return [
9
- "This is an automated Interf workflow-authoring run, not an open-ended chat session.",
10
- "Execute it now.",
11
- "Create one standalone workflow for the source data, desired portable-context outputs, and proof requirements in this source folder.",
12
- "Read `runtime/authoring-context.json` first.",
13
- "Treat `task_prompt` as the user's preparation-and-evidence brief: source data, output shape, and evidence that should show the data is ready.",
14
- `Then read \`workflow/README.md\`, \`workflow/workflow.json\`, and \`workflow/${CONTEXT_INTERFACE_FILE}\`.`,
15
- "The workflow directory starts as a neutral scaffold, not as a suggested workflow.",
16
- "Replace the scaffold purpose, inputs, context interface, stages, stage docs, proof rules, and query guidance with the method this work actually needs.",
17
- "Review `artifacts/source-dataset/raw/` before editing the package.",
18
- "Prefer direct file-reading and search tools over shell commands for routine file inspection.",
19
- "Do not use shell helpers like `cat`, `sed`, `ls`, or `find` when a native read/search tool can inspect the same files.",
20
- "Edit only files under `workflow/`.",
21
- "Keep the workflow valid for the current compiler API and workflow schema.",
22
- "Choose stage ids, stage order, reads, writes, acceptance criteria, and stage docs from the source data and preparation-and-evidence brief.",
23
- "Do not preserve the placeholder `prepare` stage unless the final workflow genuinely needs a stage with that exact role.",
24
- "When editing acceptance criteria: `zone_counts_at_least` maps declared zone ids to fixed numeric minimums.",
25
- "`zone_counts_at_least_counts` also maps declared zone ids to runtime count-key strings such as `source_total`; `source_total` is a value, never a zone key.",
26
- "Before stopping, verify every acceptance zone key is declared in `workflow.schema.json`.",
27
- "For every stage in `workflow.json`, create `workflow/compile/stages/<skill_dir>/SKILL.md` and make the folder name exactly match that stage's `skill_dir`.",
28
- "Every zone path in `workflow.schema.json` must be unique and non-overlapping. Do not declare both `knowledge/indexes` and `knowledge/indexes/some-file.md` as separate zones.",
29
- "Make the package materially specific to this dataset task, output shape, and proof requirement. A no-op scaffold is not acceptable.",
30
- "Treat the workflow package as four aligned layers: purpose, inputs, context interface, and stages.",
31
- "Keep the portable-context entrypoint canonical: if the Method writes an agent entrypoint, declare zone id `home` with path `home.md` and make the final shaping stage own it.",
32
- "Do not move the main entrypoint to `knowledge/home.md` or any other nested path.",
33
- "Prefer explicit stage-doc, stage-policy, purpose, input-contract, and context-interface edits over vague rewrites.",
34
- "Do not introduce wikilinks unless the workflow also creates the target note by exact basename or explicit relative path.",
35
- "Respect stage boundaries: a stage may only introduce links that resolve within that stage's declared writes or already-existing read zones.",
36
- "Do not make one stage point at files or notes that are only created later by another stage.",
37
- "Prefer conservative retrieval routing over speculative note sprawl.",
38
- "Do not narrate plans or ask follow-up questions.",
39
- "Only emit user-visible updates that begin with STATUS:, DONE:, BLOCKED:, or ERROR:.",
40
- "As soon as the workflow edits are complete, stop.",
41
- ].join("\n");
42
- }
43
- export async function runWorkflowAuthoringDraft(options) {
44
- const workflowPath = createScratchLocalWorkflowPackage({
45
- sourcePath: options.sourcePath,
46
- workflowId: options.workflowId,
47
- label: options.label,
48
- hint: options.hint,
49
- });
50
- const shell = createWorkflowAuthoringShell({
51
- workflowPath,
52
- workflowId: options.workflowId,
53
- label: options.label,
54
- referenceWorkflowId: options.baseWorkflowId ?? null,
55
- datasetPath: options.datasetPath,
56
- taskPrompt: options.taskPrompt,
57
- checks: options.checks ?? [],
58
- });
59
- const session = await runWorkflowEditSession({
60
- executor: options.executor,
61
- workflowPath,
62
- shell,
63
- prompt: buildWorkflowAuthoringPrompt(),
64
- validate: validateWorkflowPackage,
65
- maxValidationRepairAttempts: 1,
66
- onStatus: options.onStatus,
67
- });
68
- if (session.status !== "updated") {
69
- rmSync(workflowPath, { recursive: true, force: true });
70
- }
71
- return {
72
- status: session.status,
73
- changed: session.changed,
74
- summary: session.summary,
75
- validation: session.validation,
76
- workflowPath,
77
- shellPath: shell.rootPath,
78
- };
79
- }
80
- export function resolveWorkflowDraftPath(sourcePath, workflowId) {
81
- return workflowDefinitionPath(sourcePath, workflowId);
82
- }
@@ -1,18 +0,0 @@
1
- import type { WorkflowExecutor } from "../agents/lib/executors.js";
2
- import type { WorkflowValidationResult } from "../workflow-package/local-workflows.js";
3
- import { type WorkflowEditShellArtifacts } from "./lib/workflow-edit-utils.js";
4
- export interface WorkflowEditSessionResult {
5
- status: "updated" | "no-change" | "invalid" | "executor-failed";
6
- changed: boolean;
7
- validation: WorkflowValidationResult | null;
8
- summary: string;
9
- }
10
- export declare function runWorkflowEditSession(options: {
11
- executor: WorkflowExecutor;
12
- workflowPath: string;
13
- shell: WorkflowEditShellArtifacts;
14
- prompt: string;
15
- validate: (workflowPath: string) => WorkflowValidationResult;
16
- maxValidationRepairAttempts?: number;
17
- onStatus?: (line: string) => void;
18
- }): Promise<WorkflowEditSessionResult>;
@@ -1,91 +0,0 @@
1
- import { appendFileSync, writeFileSync } from "node:fs";
2
- import { copyDirectory, directoriesMatch, } from "./lib/workflow-edit-utils.js";
3
- export async function runWorkflowEditSession(options) {
4
- copyDirectory(options.workflowPath, options.shell.workflowBeforePath);
5
- writeFileSync(options.shell.promptLogPath, `${options.prompt}\n`);
6
- const maxValidationRepairAttempts = options.maxValidationRepairAttempts ?? 0;
7
- let prompt = options.prompt;
8
- for (let attempt = 0; attempt <= maxValidationRepairAttempts; attempt += 1) {
9
- let code = 1;
10
- let executeError = null;
11
- try {
12
- code = await options.executor.execute(options.shell.rootPath, prompt, {
13
- eventLogPath: options.shell.eventLogPath,
14
- statusLogPath: options.shell.statusLogPath,
15
- onStatus: options.onStatus,
16
- });
17
- }
18
- catch (error) {
19
- executeError = error instanceof Error ? error.message : String(error);
20
- }
21
- copyDirectory(options.workflowPath, options.shell.workflowAfterPath);
22
- const changed = !directoriesMatch(options.shell.workflowBeforePath, options.shell.workflowAfterPath);
23
- if (executeError) {
24
- copyDirectory(options.shell.workflowBeforePath, options.workflowPath);
25
- return {
26
- status: "executor-failed",
27
- changed,
28
- validation: null,
29
- summary: `Workflow editor failed before completing: ${executeError}`,
30
- };
31
- }
32
- if (code !== 0) {
33
- copyDirectory(options.shell.workflowBeforePath, options.workflowPath);
34
- return {
35
- status: "executor-failed",
36
- changed,
37
- validation: null,
38
- summary: `Workflow editor exited with code ${code}.`,
39
- };
40
- }
41
- const validation = options.validate(options.workflowPath);
42
- if (validation.ok) {
43
- return {
44
- status: changed ? "updated" : "no-change",
45
- changed,
46
- validation,
47
- summary: changed
48
- ? "Workflow package updated and validated."
49
- : "Workflow package is valid without additional edits.",
50
- };
51
- }
52
- const details = validation.errors.length > 0
53
- ? `: ${validation.errors.slice(0, 6).join("; ")}`
54
- : "";
55
- if (!changed || attempt >= maxValidationRepairAttempts) {
56
- copyDirectory(options.shell.workflowBeforePath, options.workflowPath);
57
- return {
58
- status: "invalid",
59
- changed,
60
- validation,
61
- summary: changed
62
- ? `Workflow package failed validation: ${validation.summary}${details}`
63
- : `Workflow package is invalid without any workflow edits: ${validation.summary}${details}`,
64
- };
65
- }
66
- prompt = [
67
- "This is an automated Interf Method validation-repair pass.",
68
- "The previous edit did not pass package validation.",
69
- "Fix only the validation errors below. Do not redesign the Method.",
70
- "",
71
- "Validation errors:",
72
- ...validation.errors.slice(0, 12).map((error) => `- ${error}`),
73
- "",
74
- "Rules:",
75
- "- Edit only files under `workflow/`.",
76
- "- Keep every stage `skill_dir` matched by `workflow/compile/stages/<skill_dir>/SKILL.md`.",
77
- "- Keep `workflow.schema.json` zone paths unique and non-overlapping.",
78
- "- Keep acceptance zone keys declared in `workflow.schema.json`.",
79
- "- Preserve root `home.md` as the main portable-context entrypoint when the Method writes an entrypoint.",
80
- "- Stop as soon as the package should validate.",
81
- ].join("\n");
82
- appendFileSync(options.shell.promptLogPath, `\n\n---\n\n${prompt}\n`);
83
- }
84
- copyDirectory(options.shell.workflowBeforePath, options.workflowPath);
85
- return {
86
- status: "invalid",
87
- changed: true,
88
- validation: null,
89
- summary: "Workflow package failed validation.",
90
- };
91
- }
@@ -1,23 +0,0 @@
1
- import type { WorkflowExecutor } from "../agents/lib/executors.js";
2
- import { type WorkflowValidationResult } from "../workflow-package/local-workflows.js";
3
- import type { SourceDatasetConfig } from "../project-model/lib/schema.js";
4
- import type { WorkflowImprovementLoopSummary } from "../compiler/lib/schema.js";
5
- export interface WorkflowImprovementRunResult {
6
- status: "updated" | "no-change" | "invalid" | "executor-failed";
7
- changed: boolean;
8
- validation: WorkflowValidationResult | null;
9
- summary: string;
10
- shellPath: string;
11
- loopRootPath: string;
12
- }
13
- export declare function runWorkflowImprovementLoop(options: {
14
- executor: WorkflowExecutor;
15
- compiledPath: string;
16
- workflowId: string;
17
- compiledConfig: Pick<SourceDatasetConfig, "checks">;
18
- runId: string;
19
- loopIndex: number;
20
- maxLoops: number;
21
- maxAttempts: number;
22
- previousVariations: WorkflowImprovementLoopSummary[];
23
- }): Promise<WorkflowImprovementRunResult>;
@@ -1,11 +0,0 @@
1
- export * as builtinWorkflow from "./builtin-compiled-workflow.js";
2
- export * as contextInterface from "./context-interface.js";
3
- export * as localWorkflows from "./local-workflows.js";
4
- export * as packageWriters from "./interf-workflow-package.js";
5
- export * as workflowDefinitions from "./workflow-definitions.js";
6
- export * as workflowHelpers from "./workflow-helpers.js";
7
- export * as workflowStagePolicy from "./workflow-stage-policy.js";
8
- export * as workflowStageRunner from "./workflow-stage-runner.js";
9
- export * as workflowReviewPaths from "./workflow-review-paths.js";
10
- export * as packageRoot from "./lib/package-root.js";
11
- export { CONTEXT_INTERFACE_FILE, ContextInterfaceSchema, ContextInterfaceZoneSchema, ContextInterfaceZoneIdSchema, ContextInterfaceZoneRoleSchema, WorkflowInputSpecSchema, WorkflowInputContractSchema, contextInterfaceFilePath, resolveContextInterfacePath, contextInterfaceExists, contextInterfaceRelativePath, listContextInterfaceZones, findContextInterfaceZone, contextInterfaceZoneAbsolutePath, contextInterfaceArtifactPath, contextInterfaceArtifactPathsForZoneIds, buildContextInterface, writeContextInterfaceFile, writeContextInterface, readContextInterface, type ContextInterface, type ContextInterfaceZone, type ContextInterfaceZoneId, type ContextInterfaceZoneRole, type ContextInterfaceStageLike, type WorkflowInputSpec, type ContextInterfaceSummary, summarizeContextInterface, deriveWorkflowInputsFromContextInterface, } from "./context-interface.js";
@@ -1,11 +0,0 @@
1
- export * as builtinWorkflow from "./builtin-compiled-workflow.js";
2
- export * as contextInterface from "./context-interface.js";
3
- export * as localWorkflows from "./local-workflows.js";
4
- export * as packageWriters from "./interf-workflow-package.js";
5
- export * as workflowDefinitions from "./workflow-definitions.js";
6
- export * as workflowHelpers from "./workflow-helpers.js";
7
- export * as workflowStagePolicy from "./workflow-stage-policy.js";
8
- export * as workflowStageRunner from "./workflow-stage-runner.js";
9
- export * as workflowReviewPaths from "./workflow-review-paths.js";
10
- export * as packageRoot from "./lib/package-root.js";
11
- export { CONTEXT_INTERFACE_FILE, ContextInterfaceSchema, ContextInterfaceZoneSchema, ContextInterfaceZoneIdSchema, ContextInterfaceZoneRoleSchema, WorkflowInputSpecSchema, WorkflowInputContractSchema, contextInterfaceFilePath, resolveContextInterfacePath, contextInterfaceExists, contextInterfaceRelativePath, listContextInterfaceZones, findContextInterfaceZone, contextInterfaceZoneAbsolutePath, contextInterfaceArtifactPath, contextInterfaceArtifactPathsForZoneIds, buildContextInterface, writeContextInterfaceFile, writeContextInterface, readContextInterface, summarizeContextInterface, deriveWorkflowInputsFromContextInterface, } from "./context-interface.js";
@@ -1,31 +0,0 @@
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
- stagePolicyNotes: Record<string, string[]>;
18
- }): string;
19
- export declare function seedLocalWorkflowPackageFromBase(options: {
20
- sourcePath: string;
21
- baseWorkflowId: string;
22
- workflowId: string;
23
- label: string;
24
- hint: string;
25
- }): string;
26
- export declare function createScratchLocalWorkflowPackage(options: {
27
- sourcePath: string;
28
- workflowId: string;
29
- label: string;
30
- hint: string;
31
- }): string;
@@ -1,64 +0,0 @@
1
- import { z } from "zod";
2
- import { WorkflowCompilerApiSchema, RuntimeContractTypeSchema, RuntimeStageAcceptanceSchema, WorkflowPurposeSchema, WorkflowStageZoneAccessSchema } from "../compiler/lib/schema.js";
3
- import { WorkflowInputSpecSchema, type ContextInterface, type WorkflowInputSpec } from "./context-interface.js";
4
- export interface LocalWorkflowStarterDoc {
5
- relativePath: string;
6
- content: string;
7
- }
8
- export interface LocalWorkflowStageDefinition {
9
- id: string;
10
- label: string;
11
- contract_type: z.infer<typeof RuntimeContractTypeSchema>;
12
- skill_dir?: string;
13
- description?: string;
14
- reads: z.infer<typeof WorkflowStageZoneAccessSchema>;
15
- writes: z.infer<typeof WorkflowStageZoneAccessSchema>;
16
- acceptance?: z.infer<typeof RuntimeStageAcceptanceSchema>;
17
- }
18
- export interface LocalWorkflowDefinition {
19
- id: string;
20
- type: "compiled";
21
- compiler_api?: z.infer<typeof WorkflowCompilerApiSchema>;
22
- purpose?: z.infer<typeof WorkflowPurposeSchema>;
23
- inputs?: Array<z.infer<typeof WorkflowInputSpecSchema>>;
24
- label: string;
25
- hint: string;
26
- extends?: string;
27
- stages?: LocalWorkflowStageDefinition[];
28
- stage_policy_notes?: Record<string, string[]>;
29
- workflow_schema: ContextInterface;
30
- starter_docs: LocalWorkflowStarterDoc[];
31
- directoryPath: string;
32
- workflowPath: string;
33
- workflowSchemaPath: string;
34
- }
35
- export declare function workflowDefinitionPath(sourcePath: string, id: string): string;
36
- export declare function loadWorkflowDefinitionFromDir(dirPath: string): LocalWorkflowDefinition | null;
37
- export declare function listLocalWorkflowDefinitions(sourcePath: string): LocalWorkflowDefinition[];
38
- export declare function loadLocalWorkflowDefinition(sourcePath: string, id: string): LocalWorkflowDefinition | null;
39
- export declare function resolveWorkflowPackageSourcePath(sourcePath: string, workflowId: string): string | null;
40
- export declare function seedLocalDefaultWorkflow(options: {
41
- sourcePath: string;
42
- }): {
43
- workflowId: string;
44
- targetPath: string;
45
- alreadyExisted: boolean;
46
- };
47
- export declare function isWorkflowId(value: string): boolean;
48
- export declare function patchWorkflowPackageMetadata(dirPath: string, options?: {
49
- id?: string;
50
- inputs?: WorkflowInputSpec[];
51
- label?: string;
52
- hint?: string;
53
- stagePolicyNotes?: Record<string, string[]>;
54
- }): void;
55
- export declare function describeWorkflowPackagePortability(dirPath: string): string[];
56
- export declare function isPortableWorkflowPackage(dirPath: string): boolean;
57
- export declare function copyWorkflowPackageDirectory(sourceWorkflowPath: string, targetWorkflowPath: string): void;
58
- export interface WorkflowValidationResult {
59
- ok: boolean;
60
- summary: string;
61
- errors: string[];
62
- counts: Record<string, number>;
63
- }
64
- export declare function validateWorkflowPackage(dirPath: string): WorkflowValidationResult;