@interf/compiler 0.16.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/LICENSE.md +1 -0
  2. package/README.md +90 -73
  3. package/TRADEMARKS.md +4 -4
  4. package/dist/cli/commands/mcp.d.ts +0 -34
  5. package/dist/cli/commands/mcp.js +246 -45
  6. package/dist/cli/commands/method.js +261 -15
  7. package/dist/cli/commands/prep.js +116 -15
  8. package/dist/cli/commands/runs.js +103 -9
  9. package/dist/cli/commands/status.js +4 -2
  10. package/dist/cli/commands/test.d.ts +10 -0
  11. package/dist/cli/commands/{verify.js → test.js} +24 -17
  12. package/dist/cli/commands/web.js +82 -8
  13. package/dist/cli/commands/wizard.js +158 -51
  14. package/dist/cli/index.d.ts +2 -2
  15. package/dist/cli/index.js +3 -3
  16. package/dist/compiler-ui/404.html +1 -1
  17. package/dist/compiler-ui/__next.__PAGE__.txt +5 -5
  18. package/dist/compiler-ui/__next._full.txt +13 -12
  19. package/dist/compiler-ui/__next._head.txt +3 -3
  20. package/dist/compiler-ui/__next._index.txt +5 -4
  21. package/dist/compiler-ui/__next._tree.txt +4 -3
  22. package/dist/compiler-ui/_next/static/chunks/01646j7yi.w5a.css +1 -0
  23. package/dist/compiler-ui/_next/static/chunks/{0n51hrfoufc7g.js → 02f_.8.ebn556.js} +1 -1
  24. package/dist/compiler-ui/_next/static/chunks/02r7siaw-_p5w.js +1 -0
  25. package/dist/compiler-ui/_next/static/chunks/{08m7vf5asqlsm.js → 04d0ly-7xb~-j.js} +10 -10
  26. package/dist/compiler-ui/_next/static/chunks/0fhs9psnxqd8s.js +1 -0
  27. package/dist/compiler-ui/_next/static/chunks/0mssmhpbifj15.css +2 -0
  28. package/dist/compiler-ui/_next/static/chunks/0nypu~ddwxari.js +116 -0
  29. package/dist/compiler-ui/_next/static/chunks/0p3s8iyhgcww2.js +31 -0
  30. package/dist/compiler-ui/_next/static/chunks/0tjf-vu_rz8s0.css +1 -0
  31. package/dist/compiler-ui/_next/static/chunks/0u6p3fpbbfgtl.js +1 -0
  32. package/dist/compiler-ui/_next/static/chunks/0wpx5..8dnh0w.js +1 -0
  33. package/dist/compiler-ui/_next/static/chunks/0y0uj160p0ts~.js +1 -0
  34. package/dist/compiler-ui/_next/static/chunks/10t8l~_oenf.c.js +1 -0
  35. package/dist/compiler-ui/_next/static/chunks/13gz9e7z~imx1.js +5 -0
  36. package/dist/compiler-ui/_next/static/chunks/156xed-b6czaw.js +1 -0
  37. package/dist/compiler-ui/_next/static/chunks/{turbopack-0.uq1k8c0j4s..js → turbopack-02-3e_c-yz~5g.js} +1 -1
  38. package/dist/compiler-ui/_next/static/chunks/{turbopack-10e~t1yzi4svj.js → turbopack-0apv8vb-nczuy.js} +1 -1
  39. package/dist/compiler-ui/_not-found/__next._full.txt +10 -9
  40. package/dist/compiler-ui/_not-found/__next._head.txt +3 -3
  41. package/dist/compiler-ui/_not-found/__next._index.txt +5 -4
  42. package/dist/compiler-ui/_not-found/__next._not-found.__PAGE__.txt +2 -2
  43. package/dist/compiler-ui/_not-found/__next._not-found.txt +3 -3
  44. package/dist/compiler-ui/_not-found/__next._tree.txt +3 -2
  45. package/dist/compiler-ui/_not-found.html +1 -1
  46. package/dist/compiler-ui/_not-found.txt +10 -9
  47. package/dist/compiler-ui/index.html +1 -1
  48. package/dist/compiler-ui/index.txt +13 -12
  49. package/dist/packages/contracts/index.d.ts +2 -2
  50. package/dist/packages/contracts/index.js +1 -1
  51. package/dist/packages/contracts/lib/schema.d.ts +275 -72
  52. package/dist/packages/contracts/lib/schema.js +244 -83
  53. package/dist/packages/engine/action-definitions.d.ts +174 -13
  54. package/dist/packages/engine/action-definitions.js +125 -122
  55. package/dist/packages/engine/action-planner.js +4 -11
  56. package/dist/packages/engine/agents/lib/shells.d.ts +15 -5
  57. package/dist/packages/engine/agents/lib/shells.js +134 -123
  58. package/dist/packages/engine/agents/role-executors.js +1 -1
  59. package/dist/packages/engine/cloud-seams.d.ts +115 -0
  60. package/dist/packages/engine/cloud-seams.js +84 -0
  61. package/dist/packages/engine/compile/artifact-counts.d.ts +1 -1
  62. package/dist/packages/engine/compile/artifact-counts.js +3 -3
  63. package/dist/packages/engine/compile/artifact-status.d.ts +41 -0
  64. package/dist/packages/engine/compile/artifact-status.js +166 -0
  65. package/dist/packages/engine/compile/billing-events.d.ts +89 -0
  66. package/dist/packages/engine/compile/billing-events.js +74 -0
  67. package/dist/packages/engine/compile/check-evaluator.d.ts +66 -0
  68. package/dist/packages/engine/compile/check-evaluator.js +298 -0
  69. package/dist/packages/engine/compile/compiled-paths.js +6 -6
  70. package/dist/packages/engine/compile/compiled-schema.d.ts +7 -17
  71. package/dist/packages/engine/compile/compiled-schema.js +55 -70
  72. package/dist/packages/engine/compile/compiled-stage-plan.d.ts +1 -0
  73. package/dist/packages/engine/compile/compiled-stage-plan.js +32 -15
  74. package/dist/packages/engine/compile/compiled-stage-runner.js +1 -1
  75. package/dist/packages/engine/compile/index.d.ts +0 -1
  76. package/dist/packages/engine/compile/index.js +0 -1
  77. package/dist/packages/engine/compile/lib/schema.d.ts +111 -92
  78. package/dist/packages/engine/compile/lib/schema.js +35 -39
  79. package/dist/packages/engine/compile/method-primitives.d.ts +2 -2
  80. package/dist/packages/engine/compile/method-primitives.js +1 -1
  81. package/dist/packages/engine/compile/reset.js +4 -4
  82. package/dist/packages/engine/compile/runtime-contracts.js +2 -1
  83. package/dist/packages/engine/compile/runtime-prompt.js +3 -2
  84. package/dist/packages/engine/compile/runtime-reconcile.js +35 -35
  85. package/dist/packages/engine/compile/runtime-runs.js +0 -1
  86. package/dist/packages/engine/compile/runtime-types.d.ts +7 -8
  87. package/dist/packages/engine/compile/runtime.d.ts +1 -2
  88. package/dist/packages/engine/compile/runtime.js +0 -1
  89. package/dist/packages/engine/compile/state-health.js +6 -6
  90. package/dist/packages/engine/compile/state-view.js +7 -6
  91. package/dist/packages/engine/compile/validate-compiled.js +61 -30
  92. package/dist/packages/engine/compile/validate.js +26 -24
  93. package/dist/packages/engine/connection-config.js +1 -1
  94. package/dist/packages/engine/execution/lib/schema.d.ts +89 -33
  95. package/dist/packages/engine/execution/lib/schema.js +13 -5
  96. package/dist/packages/engine/index.d.ts +2 -2
  97. package/dist/packages/engine/index.js +1 -1
  98. package/dist/packages/engine/instance-paths.d.ts +15 -9
  99. package/dist/packages/engine/instance-paths.js +15 -9
  100. package/dist/packages/engine/lib/schema.d.ts +1316 -351
  101. package/dist/packages/engine/lib/schema.js +99 -36
  102. package/dist/packages/engine/native-run-handlers.js +25 -15
  103. package/dist/packages/engine/preparation-store.d.ts +9 -7
  104. package/dist/packages/engine/preparation-store.js +20 -0
  105. package/dist/packages/engine/requested-artifacts.d.ts +5 -0
  106. package/dist/packages/engine/requested-artifacts.js +36 -0
  107. package/dist/packages/engine/routes.d.ts +7 -1
  108. package/dist/packages/engine/routes.js +7 -1
  109. package/dist/packages/engine/run-observability.js +4 -4
  110. package/dist/packages/engine/runtime-event-applier.js +7 -0
  111. package/dist/packages/engine/runtime-proposal-helpers.d.ts +2 -2
  112. package/dist/packages/engine/runtime-proposal-helpers.js +6 -8
  113. package/dist/packages/engine/runtime-resource-builders.d.ts +11 -6
  114. package/dist/packages/engine/runtime-resource-builders.js +18 -6
  115. package/dist/packages/engine/runtime.d.ts +70 -8
  116. package/dist/packages/engine/runtime.js +304 -49
  117. package/dist/packages/engine/server.d.ts +25 -0
  118. package/dist/packages/engine/server.js +161 -50
  119. package/dist/packages/engine/verify/index.d.ts +10 -10
  120. package/dist/packages/engine/verify/index.js +8 -8
  121. package/dist/packages/engine/verify/readiness-check-run.d.ts +27 -4
  122. package/dist/packages/engine/verify/readiness-check-run.js +92 -24
  123. package/dist/packages/engine/verify/{test-execution.d.ts → verify-execution.d.ts} +2 -2
  124. package/dist/packages/engine/verify/{test-execution.js → verify-execution.js} +3 -3
  125. package/dist/packages/engine/verify/{test-paths.d.ts → verify-paths.d.ts} +1 -1
  126. package/dist/packages/engine/verify/{test-sandbox.d.ts → verify-sandbox.d.ts} +1 -1
  127. package/dist/packages/engine/verify/{test-specs.d.ts → verify-specs.d.ts} +1 -1
  128. package/dist/packages/engine/verify/{test-specs.js → verify-specs.js} +1 -1
  129. package/dist/packages/engine/verify/{test-targets.d.ts → verify-targets.d.ts} +1 -1
  130. package/dist/packages/engine/verify/{test.d.ts → verify.d.ts} +4 -4
  131. package/dist/packages/engine/verify/{test.js → verify.js} +3 -3
  132. package/dist/packages/engine/wire-schemas.d.ts +549 -0
  133. package/dist/packages/engine/wire-schemas.js +59 -0
  134. package/dist/packages/methods/authoring/method-authoring.d.ts +5 -1
  135. package/dist/packages/methods/authoring/method-authoring.js +68 -18
  136. package/dist/packages/methods/authoring/method-edit-session.js +5 -5
  137. package/dist/packages/methods/authoring/method-improvement.js +1 -1
  138. package/dist/packages/methods/package/builtin-compiled-method.d.ts +12 -12
  139. package/dist/packages/methods/package/builtin-compiled-method.js +26 -23
  140. package/dist/packages/methods/package/context-interface.d.ts +39 -26
  141. package/dist/packages/methods/package/context-interface.js +48 -39
  142. package/dist/packages/methods/package/interf-method-package.js +28 -47
  143. package/dist/packages/methods/package/local-methods.d.ts +4 -4
  144. package/dist/packages/methods/package/local-methods.js +53 -66
  145. package/dist/packages/methods/package/method-definitions.d.ts +4 -6
  146. package/dist/packages/methods/package/method-definitions.js +1 -5
  147. package/dist/packages/methods/package/method-helpers.d.ts +0 -2
  148. package/dist/packages/methods/package/method-helpers.js +0 -4
  149. package/dist/packages/project/interf-detect.js +6 -6
  150. package/dist/packages/project/interf-scaffold.js +12 -12
  151. package/dist/packages/project/lib/schema.d.ts +193 -0
  152. package/dist/packages/project/lib/schema.js +46 -1
  153. package/dist/packages/project/source-config.js +6 -1
  154. package/dist/packages/project/source-folders.js +1 -1
  155. package/package.json +12 -23
  156. package/public-repo/CONTRIBUTING.md +47 -0
  157. package/public-repo/LICENSE.md +1 -0
  158. package/public-repo/README.md +325 -0
  159. package/public-repo/SECURITY.md +67 -0
  160. package/public-repo/TRADEMARKS.md +8 -0
  161. package/{builtin-methods → public-repo/methods}/interf-default/README.md +10 -7
  162. package/{builtin-methods → public-repo/methods}/interf-default/compile/stages/shape/SKILL.md +4 -8
  163. package/{builtin-methods → public-repo/methods}/interf-default/method.json +8 -69
  164. package/public-repo/methods/interf-default/method.schema.json +75 -0
  165. package/public-repo/methods/interf-default/use/query/SKILL.md +23 -0
  166. package/public-repo/plugins/README.md +9 -0
  167. package/public-repo/plugins/interf/.claude-plugin/plugin.json +21 -0
  168. package/public-repo/plugins/interf/.mcp.json +12 -0
  169. package/public-repo/plugins/interf/README.md +29 -0
  170. package/public-repo/plugins/interf/skills/interf/SKILL.md +477 -0
  171. package/public-repo/skills/interf/SKILL.md +477 -0
  172. package/agent-skills/interf-actions/SKILL.md +0 -185
  173. package/agent-skills/interf-actions/references/cli.md +0 -243
  174. package/builtin-methods/interf-default/method.schema.json +0 -73
  175. package/builtin-methods/interf-default/use/query/SKILL.md +0 -28
  176. package/dist/cli/commands/verify.d.ts +0 -8
  177. package/dist/compiler-ui/_next/static/chunks/06yhdspx~ca5-.js +0 -5
  178. package/dist/compiler-ui/_next/static/chunks/06z~l3kwb891e.js +0 -1
  179. package/dist/compiler-ui/_next/static/chunks/08g7lvje.te.u.js +0 -1
  180. package/dist/compiler-ui/_next/static/chunks/0_i-3_5l9t2qe.js +0 -1
  181. package/dist/compiler-ui/_next/static/chunks/0b-ywny_j0g~0.js +0 -1
  182. package/dist/compiler-ui/_next/static/chunks/0b52v41o1gixx.js +0 -1
  183. package/dist/compiler-ui/_next/static/chunks/0gpzgsv0w.q~m.js +0 -31
  184. package/dist/compiler-ui/_next/static/chunks/0ilwfezfvu6~-.js +0 -1
  185. package/dist/compiler-ui/_next/static/chunks/0jipmpez3_ehh.js +0 -89
  186. package/dist/compiler-ui/_next/static/chunks/0xxmf45eskdt~.css +0 -1
  187. package/dist/compiler-ui/_next/static/chunks/13awzu4tooflw.css +0 -3
  188. package/dist/compiler-ui/_next/static/chunks/14wtz~vq25~qq.js +0 -1
  189. package/dist/packages/engine/compile/runtime-acceptance.d.ts +0 -9
  190. package/dist/packages/engine/compile/runtime-acceptance.js +0 -265
  191. /package/dist/compiler-ui/_next/static/{a3UiUF0DiMEbfWy_0gihg → tYHMLL9oKds1yDoNYgkPV}/_buildManifest.js +0 -0
  192. /package/dist/compiler-ui/_next/static/{a3UiUF0DiMEbfWy_0gihg → tYHMLL9oKds1yDoNYgkPV}/_clientMiddlewareManifest.js +0 -0
  193. /package/dist/compiler-ui/_next/static/{a3UiUF0DiMEbfWy_0gihg → tYHMLL9oKds1yDoNYgkPV}/_ssgManifest.js +0 -0
  194. /package/dist/packages/engine/verify/{test-paths.js → verify-paths.js} +0 -0
  195. /package/dist/packages/engine/verify/{test-profile-presets.d.ts → verify-profile-presets.d.ts} +0 -0
  196. /package/dist/packages/engine/verify/{test-profile-presets.js → verify-profile-presets.js} +0 -0
  197. /package/dist/packages/engine/verify/{test-sandbox.js → verify-sandbox.js} +0 -0
  198. /package/dist/packages/engine/verify/{test-targets.js → verify-targets.js} +0 -0
  199. /package/dist/packages/engine/verify/{test-types.d.ts → verify-types.d.ts} +0 -0
  200. /package/dist/packages/engine/verify/{test-types.js → verify-types.js} +0 -0
  201. /package/{builtin-methods → public-repo/methods}/interf-default/compile/stages/structure/SKILL.md +0 -0
  202. /package/{builtin-methods → public-repo/methods}/interf-default/compile/stages/summarize/SKILL.md +0 -0
  203. /package/{builtin-methods → public-repo/methods}/interf-default/improve/SKILL.md +0 -0
@@ -286,15 +286,15 @@ export declare const RunObservabilitySchema: z.ZodObject<{
286
286
  generated_at: z.ZodString;
287
287
  preparation: z.ZodString;
288
288
  status: z.ZodEnum<{
289
+ ready: "ready";
290
+ failed: "failed";
289
291
  "not-configured": "not-configured";
290
292
  "not-built": "not-built";
291
293
  building: "building";
292
294
  built: "built";
293
295
  checking: "checking";
294
- ready: "ready";
295
296
  "not-ready": "not-ready";
296
297
  stale: "stale";
297
- failed: "failed";
298
298
  }>;
299
299
  ready: z.ZodBoolean;
300
300
  summary: z.ZodString;
@@ -306,20 +306,21 @@ export declare const RunObservabilitySchema: z.ZodObject<{
306
306
  "portable-context": "portable-context";
307
307
  "preparation-config": "preparation-config";
308
308
  "compile-run": "compile-run";
309
+ "artifact-checks": "artifact-checks";
309
310
  "readiness-checks": "readiness-checks";
310
311
  "checks-current": "checks-current";
311
312
  }>;
312
313
  ok: z.ZodBoolean;
313
314
  status: z.ZodOptional<z.ZodEnum<{
315
+ ready: "ready";
316
+ failed: "failed";
314
317
  "not-configured": "not-configured";
315
318
  "not-built": "not-built";
316
319
  building: "building";
317
320
  built: "built";
318
321
  checking: "checking";
319
- ready: "ready";
320
322
  "not-ready": "not-ready";
321
323
  stale: "stale";
322
- failed: "failed";
323
324
  }>>;
324
325
  summary: z.ZodString;
325
326
  detail: z.ZodOptional<z.ZodString>;
@@ -353,20 +354,21 @@ export declare const RunObservabilitySchema: z.ZodObject<{
353
354
  "portable-context": "portable-context";
354
355
  "preparation-config": "preparation-config";
355
356
  "compile-run": "compile-run";
357
+ "artifact-checks": "artifact-checks";
356
358
  "readiness-checks": "readiness-checks";
357
359
  "checks-current": "checks-current";
358
360
  }>;
359
361
  ok: z.ZodBoolean;
360
362
  status: z.ZodOptional<z.ZodEnum<{
363
+ ready: "ready";
364
+ failed: "failed";
361
365
  "not-configured": "not-configured";
362
366
  "not-built": "not-built";
363
367
  building: "building";
364
368
  built: "built";
365
369
  checking: "checking";
366
- ready: "ready";
367
370
  "not-ready": "not-ready";
368
371
  stale: "stale";
369
- failed: "failed";
370
372
  }>>;
371
373
  summary: z.ZodString;
372
374
  detail: z.ZodOptional<z.ZodString>;
@@ -470,7 +472,6 @@ export declare const StageRunContractSchema: z.ZodObject<{
470
472
  stage_total: z.ZodOptional<z.ZodNumber>;
471
473
  reads: z.ZodDefault<z.ZodArray<z.ZodString>>;
472
474
  writes: z.ZodDefault<z.ZodArray<z.ZodString>>;
473
- acceptance: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
474
475
  }, z.core.$strict>;
475
476
  export declare const StageRunLogsSchema: z.ZodObject<{
476
477
  prompt_path: z.ZodOptional<z.ZodString>;
@@ -605,6 +606,13 @@ export declare const RunFailedEventSchema: z.ZodObject<{
605
606
  type: z.ZodLiteral<"run.failed">;
606
607
  error: z.ZodString;
607
608
  }, z.core.$strict>;
609
+ export declare const RunCancelledEventSchema: z.ZodObject<{
610
+ event_id: z.ZodString;
611
+ run_id: z.ZodString;
612
+ timestamp: z.ZodString;
613
+ type: z.ZodLiteral<"run.cancelled">;
614
+ reason: z.ZodOptional<z.ZodString>;
615
+ }, z.core.$strict>;
608
616
  export declare const ChecksEvaluatedEventSchema: z.ZodObject<{
609
617
  event_id: z.ZodString;
610
618
  run_id: z.ZodString;
@@ -632,15 +640,15 @@ export declare const ReadinessUpdatedEventSchema: z.ZodObject<{
632
640
  generated_at: z.ZodString;
633
641
  preparation: z.ZodString;
634
642
  status: z.ZodEnum<{
643
+ ready: "ready";
644
+ failed: "failed";
635
645
  "not-configured": "not-configured";
636
646
  "not-built": "not-built";
637
647
  building: "building";
638
648
  built: "built";
639
649
  checking: "checking";
640
- ready: "ready";
641
650
  "not-ready": "not-ready";
642
651
  stale: "stale";
643
- failed: "failed";
644
652
  }>;
645
653
  ready: z.ZodBoolean;
646
654
  summary: z.ZodString;
@@ -652,20 +660,21 @@ export declare const ReadinessUpdatedEventSchema: z.ZodObject<{
652
660
  "portable-context": "portable-context";
653
661
  "preparation-config": "preparation-config";
654
662
  "compile-run": "compile-run";
663
+ "artifact-checks": "artifact-checks";
655
664
  "readiness-checks": "readiness-checks";
656
665
  "checks-current": "checks-current";
657
666
  }>;
658
667
  ok: z.ZodBoolean;
659
668
  status: z.ZodOptional<z.ZodEnum<{
669
+ ready: "ready";
670
+ failed: "failed";
660
671
  "not-configured": "not-configured";
661
672
  "not-built": "not-built";
662
673
  building: "building";
663
674
  built: "built";
664
675
  checking: "checking";
665
- ready: "ready";
666
676
  "not-ready": "not-ready";
667
677
  stale: "stale";
668
- failed: "failed";
669
678
  }>>;
670
679
  summary: z.ZodString;
671
680
  detail: z.ZodOptional<z.ZodString>;
@@ -699,20 +708,21 @@ export declare const ReadinessUpdatedEventSchema: z.ZodObject<{
699
708
  "portable-context": "portable-context";
700
709
  "preparation-config": "preparation-config";
701
710
  "compile-run": "compile-run";
711
+ "artifact-checks": "artifact-checks";
702
712
  "readiness-checks": "readiness-checks";
703
713
  "checks-current": "checks-current";
704
714
  }>;
705
715
  ok: z.ZodBoolean;
706
716
  status: z.ZodOptional<z.ZodEnum<{
717
+ ready: "ready";
718
+ failed: "failed";
707
719
  "not-configured": "not-configured";
708
720
  "not-built": "not-built";
709
721
  building: "building";
710
722
  built: "built";
711
723
  checking: "checking";
712
- ready: "ready";
713
724
  "not-ready": "not-ready";
714
725
  stale: "stale";
715
- failed: "failed";
716
726
  }>>;
717
727
  summary: z.ZodString;
718
728
  detail: z.ZodOptional<z.ZodString>;
@@ -838,6 +848,12 @@ export declare const InterfRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
838
848
  timestamp: z.ZodString;
839
849
  type: z.ZodLiteral<"run.failed">;
840
850
  error: z.ZodString;
851
+ }, z.core.$strict>, z.ZodObject<{
852
+ event_id: z.ZodString;
853
+ run_id: z.ZodString;
854
+ timestamp: z.ZodString;
855
+ type: z.ZodLiteral<"run.cancelled">;
856
+ reason: z.ZodOptional<z.ZodString>;
841
857
  }, z.core.$strict>, z.ZodObject<{
842
858
  event_id: z.ZodString;
843
859
  run_id: z.ZodString;
@@ -864,15 +880,15 @@ export declare const InterfRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
864
880
  generated_at: z.ZodString;
865
881
  preparation: z.ZodString;
866
882
  status: z.ZodEnum<{
883
+ ready: "ready";
884
+ failed: "failed";
867
885
  "not-configured": "not-configured";
868
886
  "not-built": "not-built";
869
887
  building: "building";
870
888
  built: "built";
871
889
  checking: "checking";
872
- ready: "ready";
873
890
  "not-ready": "not-ready";
874
891
  stale: "stale";
875
- failed: "failed";
876
892
  }>;
877
893
  ready: z.ZodBoolean;
878
894
  summary: z.ZodString;
@@ -884,20 +900,21 @@ export declare const InterfRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
884
900
  "portable-context": "portable-context";
885
901
  "preparation-config": "preparation-config";
886
902
  "compile-run": "compile-run";
903
+ "artifact-checks": "artifact-checks";
887
904
  "readiness-checks": "readiness-checks";
888
905
  "checks-current": "checks-current";
889
906
  }>;
890
907
  ok: z.ZodBoolean;
891
908
  status: z.ZodOptional<z.ZodEnum<{
909
+ ready: "ready";
910
+ failed: "failed";
892
911
  "not-configured": "not-configured";
893
912
  "not-built": "not-built";
894
913
  building: "building";
895
914
  built: "built";
896
915
  checking: "checking";
897
- ready: "ready";
898
916
  "not-ready": "not-ready";
899
917
  stale: "stale";
900
- failed: "failed";
901
918
  }>>;
902
919
  summary: z.ZodString;
903
920
  detail: z.ZodOptional<z.ZodString>;
@@ -931,20 +948,21 @@ export declare const InterfRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
931
948
  "portable-context": "portable-context";
932
949
  "preparation-config": "preparation-config";
933
950
  "compile-run": "compile-run";
951
+ "artifact-checks": "artifact-checks";
934
952
  "readiness-checks": "readiness-checks";
935
953
  "checks-current": "checks-current";
936
954
  }>;
937
955
  ok: z.ZodBoolean;
938
956
  status: z.ZodOptional<z.ZodEnum<{
957
+ ready: "ready";
958
+ failed: "failed";
939
959
  "not-configured": "not-configured";
940
960
  "not-built": "not-built";
941
961
  building: "building";
942
962
  built: "built";
943
963
  checking: "checking";
944
- ready: "ready";
945
964
  "not-ready": "not-ready";
946
965
  stale: "stale";
947
- failed: "failed";
948
966
  }>>;
949
967
  summary: z.ZodString;
950
968
  detail: z.ZodOptional<z.ZodString>;
@@ -974,7 +992,6 @@ export declare const StageRunSchema: z.ZodObject<{
974
992
  stage_total: z.ZodOptional<z.ZodNumber>;
975
993
  reads: z.ZodDefault<z.ZodArray<z.ZodString>>;
976
994
  writes: z.ZodDefault<z.ZodArray<z.ZodString>>;
977
- acceptance: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
978
995
  }, z.core.$strict>>;
979
996
  executor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
980
997
  kind: z.ZodEnum<{
@@ -1081,7 +1098,6 @@ export declare const CompileRunSchema: z.ZodObject<{
1081
1098
  stage_total: z.ZodOptional<z.ZodNumber>;
1082
1099
  reads: z.ZodDefault<z.ZodArray<z.ZodString>>;
1083
1100
  writes: z.ZodDefault<z.ZodArray<z.ZodString>>;
1084
- acceptance: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1085
1101
  }, z.core.$strict>>;
1086
1102
  executor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1087
1103
  kind: z.ZodEnum<{
@@ -1262,6 +1278,12 @@ export declare const CompileRunSchema: z.ZodObject<{
1262
1278
  timestamp: z.ZodString;
1263
1279
  type: z.ZodLiteral<"run.failed">;
1264
1280
  error: z.ZodString;
1281
+ }, z.core.$strict>, z.ZodObject<{
1282
+ event_id: z.ZodString;
1283
+ run_id: z.ZodString;
1284
+ timestamp: z.ZodString;
1285
+ type: z.ZodLiteral<"run.cancelled">;
1286
+ reason: z.ZodOptional<z.ZodString>;
1265
1287
  }, z.core.$strict>, z.ZodObject<{
1266
1288
  event_id: z.ZodString;
1267
1289
  run_id: z.ZodString;
@@ -1288,15 +1310,15 @@ export declare const CompileRunSchema: z.ZodObject<{
1288
1310
  generated_at: z.ZodString;
1289
1311
  preparation: z.ZodString;
1290
1312
  status: z.ZodEnum<{
1313
+ ready: "ready";
1314
+ failed: "failed";
1291
1315
  "not-configured": "not-configured";
1292
1316
  "not-built": "not-built";
1293
1317
  building: "building";
1294
1318
  built: "built";
1295
1319
  checking: "checking";
1296
- ready: "ready";
1297
1320
  "not-ready": "not-ready";
1298
1321
  stale: "stale";
1299
- failed: "failed";
1300
1322
  }>;
1301
1323
  ready: z.ZodBoolean;
1302
1324
  summary: z.ZodString;
@@ -1308,20 +1330,21 @@ export declare const CompileRunSchema: z.ZodObject<{
1308
1330
  "portable-context": "portable-context";
1309
1331
  "preparation-config": "preparation-config";
1310
1332
  "compile-run": "compile-run";
1333
+ "artifact-checks": "artifact-checks";
1311
1334
  "readiness-checks": "readiness-checks";
1312
1335
  "checks-current": "checks-current";
1313
1336
  }>;
1314
1337
  ok: z.ZodBoolean;
1315
1338
  status: z.ZodOptional<z.ZodEnum<{
1339
+ ready: "ready";
1340
+ failed: "failed";
1316
1341
  "not-configured": "not-configured";
1317
1342
  "not-built": "not-built";
1318
1343
  building: "building";
1319
1344
  built: "built";
1320
1345
  checking: "checking";
1321
- ready: "ready";
1322
1346
  "not-ready": "not-ready";
1323
1347
  stale: "stale";
1324
- failed: "failed";
1325
1348
  }>>;
1326
1349
  summary: z.ZodString;
1327
1350
  detail: z.ZodOptional<z.ZodString>;
@@ -1355,20 +1378,21 @@ export declare const CompileRunSchema: z.ZodObject<{
1355
1378
  "portable-context": "portable-context";
1356
1379
  "preparation-config": "preparation-config";
1357
1380
  "compile-run": "compile-run";
1381
+ "artifact-checks": "artifact-checks";
1358
1382
  "readiness-checks": "readiness-checks";
1359
1383
  "checks-current": "checks-current";
1360
1384
  }>;
1361
1385
  ok: z.ZodBoolean;
1362
1386
  status: z.ZodOptional<z.ZodEnum<{
1387
+ ready: "ready";
1388
+ failed: "failed";
1363
1389
  "not-configured": "not-configured";
1364
1390
  "not-built": "not-built";
1365
1391
  building: "building";
1366
1392
  built: "built";
1367
1393
  checking: "checking";
1368
- ready: "ready";
1369
1394
  "not-ready": "not-ready";
1370
1395
  stale: "stale";
1371
- failed: "failed";
1372
1396
  }>>;
1373
1397
  summary: z.ZodString;
1374
1398
  detail: z.ZodOptional<z.ZodString>;
@@ -1410,15 +1434,15 @@ export declare const CompileRunSchema: z.ZodObject<{
1410
1434
  generated_at: z.ZodString;
1411
1435
  preparation: z.ZodString;
1412
1436
  status: z.ZodEnum<{
1437
+ ready: "ready";
1438
+ failed: "failed";
1413
1439
  "not-configured": "not-configured";
1414
1440
  "not-built": "not-built";
1415
1441
  building: "building";
1416
1442
  built: "built";
1417
1443
  checking: "checking";
1418
- ready: "ready";
1419
1444
  "not-ready": "not-ready";
1420
1445
  stale: "stale";
1421
- failed: "failed";
1422
1446
  }>;
1423
1447
  ready: z.ZodBoolean;
1424
1448
  summary: z.ZodString;
@@ -1430,20 +1454,21 @@ export declare const CompileRunSchema: z.ZodObject<{
1430
1454
  "portable-context": "portable-context";
1431
1455
  "preparation-config": "preparation-config";
1432
1456
  "compile-run": "compile-run";
1457
+ "artifact-checks": "artifact-checks";
1433
1458
  "readiness-checks": "readiness-checks";
1434
1459
  "checks-current": "checks-current";
1435
1460
  }>;
1436
1461
  ok: z.ZodBoolean;
1437
1462
  status: z.ZodOptional<z.ZodEnum<{
1463
+ ready: "ready";
1464
+ failed: "failed";
1438
1465
  "not-configured": "not-configured";
1439
1466
  "not-built": "not-built";
1440
1467
  building: "building";
1441
1468
  built: "built";
1442
1469
  checking: "checking";
1443
- ready: "ready";
1444
1470
  "not-ready": "not-ready";
1445
1471
  stale: "stale";
1446
- failed: "failed";
1447
1472
  }>>;
1448
1473
  summary: z.ZodString;
1449
1474
  detail: z.ZodOptional<z.ZodString>;
@@ -1477,20 +1502,21 @@ export declare const CompileRunSchema: z.ZodObject<{
1477
1502
  "portable-context": "portable-context";
1478
1503
  "preparation-config": "preparation-config";
1479
1504
  "compile-run": "compile-run";
1505
+ "artifact-checks": "artifact-checks";
1480
1506
  "readiness-checks": "readiness-checks";
1481
1507
  "checks-current": "checks-current";
1482
1508
  }>;
1483
1509
  ok: z.ZodBoolean;
1484
1510
  status: z.ZodOptional<z.ZodEnum<{
1511
+ ready: "ready";
1512
+ failed: "failed";
1485
1513
  "not-configured": "not-configured";
1486
1514
  "not-built": "not-built";
1487
1515
  building: "building";
1488
1516
  built: "built";
1489
1517
  checking: "checking";
1490
- ready: "ready";
1491
1518
  "not-ready": "not-ready";
1492
1519
  stale: "stale";
1493
- failed: "failed";
1494
1520
  }>>;
1495
1521
  summary: z.ZodString;
1496
1522
  detail: z.ZodOptional<z.ZodString>;
@@ -1498,6 +1524,36 @@ export declare const CompileRunSchema: z.ZodObject<{
1498
1524
  artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1499
1525
  }, z.core.$strict>>>;
1500
1526
  }, z.core.$strict>>>;
1527
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1528
+ artifact_id: z.ZodString;
1529
+ status: z.ZodEnum<{
1530
+ ready: "ready";
1531
+ not_ready: "not_ready";
1532
+ failed: "failed";
1533
+ skipped: "skipped";
1534
+ }>;
1535
+ built_by_stages: z.ZodDefault<z.ZodArray<z.ZodString>>;
1536
+ proofs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1537
+ check_id: z.ZodString;
1538
+ kind: z.ZodEnum<{
1539
+ file_exists: "file_exists";
1540
+ min_file_count: "min_file_count";
1541
+ min_file_count_matches_source: "min_file_count_matches_source";
1542
+ frontmatter_valid: "frontmatter_valid";
1543
+ frontmatter_required_keys: "frontmatter_required_keys";
1544
+ wikilinks_valid: "wikilinks_valid";
1545
+ must_not_contain: "must_not_contain";
1546
+ must_contain: "must_contain";
1547
+ qa_match: "qa_match";
1548
+ }>;
1549
+ passed: z.ZodBoolean;
1550
+ required: z.ZodBoolean;
1551
+ summary: z.ZodString;
1552
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1553
+ evaluated_at: z.ZodString;
1554
+ }, z.core.$strict>>>;
1555
+ summary: z.ZodOptional<z.ZodString>;
1556
+ }, z.core.$strict>>>;
1501
1557
  }, z.core.$strict>;
1502
1558
  export type ExecutionBackendKind = z.infer<typeof ExecutionBackendKindSchema>;
1503
1559
  export type MethodTraceRunStatus = z.infer<typeof MethodTraceRunStatusSchema>;
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { RuntimeExecutorInfoSchema, RuntimeStageSchema, MethodIdSchema, ReadinessStateSchema, PreparationNameSchema, } from "../../../contracts/lib/schema.js";
2
+ import { ArtifactStatusSchema, RuntimeExecutorInfoSchema, RuntimeStageSchema, MethodIdSchema, ReadinessSchema, PreparationNameSchema, } from "../../../contracts/lib/schema.js";
3
3
  const RunIdSchema = z.string().min(1);
4
4
  const JsonObjectSchema = z.record(z.string(), z.unknown());
5
5
  export const MethodTraceRunStatusSchema = z.enum([
@@ -146,7 +146,7 @@ export const RunObservabilitySchema = z.object({
146
146
  metrics: z.array(ObservableRunMetricSchema).default([]),
147
147
  artifacts: z.array(ArtifactRefSchema).default([]),
148
148
  proof: z.array(ProofCheckSchema).default([]),
149
- readiness: ReadinessStateSchema.nullable().optional(),
149
+ readiness: ReadinessSchema.nullable().optional(),
150
150
  trace: MethodTraceSchema,
151
151
  }).strict();
152
152
  export const ProofRecordSchema = z.object({
@@ -165,7 +165,6 @@ export const StageRunContractSchema = z.object({
165
165
  stage_total: z.number().int().min(1).optional(),
166
166
  reads: z.array(z.string().min(1)).default([]),
167
167
  writes: z.array(z.string().min(1)).default([]),
168
- acceptance: z.record(z.string(), z.unknown()).optional(),
169
168
  }).strict();
170
169
  export const StageRunLogsSchema = z.object({
171
170
  prompt_path: z.string().min(1).optional(),
@@ -230,6 +229,10 @@ export const RunFailedEventSchema = RunEventBaseSchema.extend({
230
229
  type: z.literal("run.failed"),
231
230
  error: z.string().min(1),
232
231
  }).strict();
232
+ export const RunCancelledEventSchema = RunEventBaseSchema.extend({
233
+ type: z.literal("run.cancelled"),
234
+ reason: z.string().min(1).optional(),
235
+ }).strict();
233
236
  export const ChecksEvaluatedEventSchema = RunEventBaseSchema.extend({
234
237
  type: z.literal("checks.evaluated"),
235
238
  passed: z.number().int().min(0),
@@ -242,7 +245,7 @@ export const ChecksEvaluatedEventSchema = RunEventBaseSchema.extend({
242
245
  export const ReadinessUpdatedEventSchema = RunEventBaseSchema.extend({
243
246
  type: z.literal("readiness.updated"),
244
247
  preparation: PreparationNameSchema,
245
- readiness: ReadinessStateSchema,
248
+ readiness: ReadinessSchema,
246
249
  }).strict();
247
250
  export const InterfRunEventSchema = z.discriminatedUnion("type", [
248
251
  RunStartedEventSchema,
@@ -255,6 +258,7 @@ export const InterfRunEventSchema = z.discriminatedUnion("type", [
255
258
  StageFailedEventSchema,
256
259
  RunCompletedEventSchema,
257
260
  RunFailedEventSchema,
261
+ RunCancelledEventSchema,
258
262
  ChecksEvaluatedEventSchema,
259
263
  ReadinessUpdatedEventSchema,
260
264
  ]);
@@ -291,5 +295,9 @@ export const CompileRunSchema = z.object({
291
295
  stages: z.array(StageRunSchema).default([]),
292
296
  events: z.array(InterfRunEventSchema).default([]),
293
297
  latest_proof: ProofRecordSchema.nullable().optional(),
294
- readiness: ReadinessStateSchema.nullable().optional(),
298
+ readiness: ReadinessSchema.nullable().optional(),
299
+ // Per-Artifact status records when the Method declares an
300
+ // `artifacts[]` block. Computed
301
+ // once the run reaches a terminal status; `not_ready` while running.
302
+ artifacts: z.array(ArtifactStatusSchema).default([]),
295
303
  }).strict();
@@ -5,8 +5,8 @@ export * as routes from "./routes.js";
5
5
  export * as client from "./client.js";
6
6
  export * as runtime from "./runtime.js";
7
7
  export * as server from "./server.js";
8
- export type { CompileRunCreateRequest, CompileRunResource, CompileRunSummary, LocalServiceDiscovery, PortableContextMapping, PreparationRunLinkage, PreparationResource, MethodResource, LocalJobAgent, LocalJobEvent, LocalJobEventAppendRequest, LocalJobEventType, LocalJobRunCreateRequest, LocalJobRunResource, LocalJobStatus, LocalRunHandlerResult, LocalJobStep, LocalJobType, LocalServiceConfig, LocalServiceError, LocalServiceHealth, LocalExecutorStatus, ActionClientOrigin, ActionProposalApproval, ActionProposalApprovalRequest, ActionProposalCreateRequest, ActionProposalListResponse, ActionProposalPlan, ActionProposalPlanActionType, ActionProposalResource, ActionProposalStatus, ActionProposalType, MethodChangeResult, PreparationChangeResult, PreparationSetupResult, ResetRequest, ResetResult, PortableContextResource, ReadinessResource, SourceFileResource, ReadinessCheckDraftCreateRequest, ReadinessCheckDraftResult, VerifyRunCreateRequest, VerifyRunResource, VerifyRunStatus, RunObservabilityListResponse, RunObservabilityResource, MethodAuthoringCreateRequest, MethodAuthoringResult, PreparationListResponse, MethodListResponse, PortableContextListResponse, SourceFileListResponse, OpenPathRequest, OpenPathResponse, WorkspaceFileResource, } from "./lib/schema.js";
9
- export { CompileRunCreateRequestSchema, CompileRunResourceSchema, CompileRunSummarySchema, LocalServiceDiscoverySchema, PortableContextMappingSchema, PreparationRunLinkageSchema, PreparationResourceSchema, MethodResourceSchema, LocalJobAgentSchema, LocalJobEventAppendRequestSchema, LocalJobEventSchema, LocalJobEventTypeSchema, LocalJobRunCreateRequestSchema, LocalJobRunResourceSchema, LocalJobStatusSchema, LocalRunHandlerResultSchema, LocalJobStepSchema, LocalJobTypeSchema, LocalServiceConfigSchema, LocalServiceErrorSchema, LocalServiceHealthSchema, PortableContextResourceSchema, ReadinessResourceSchema, SourceFileResourceSchema, ReadinessCheckDraftCreateRequestSchema, ReadinessCheckDraftResultSchema, VerifyRunCreateRequestSchema, VerifyRunResourceSchema, VerifyRunStatusSchema, RunObservabilityResourceSchema, RunObservabilityListResponseSchema, LocalExecutorStatusSchema, ActionClientOriginSchema, ActionProposalApprovalRequestSchema, ActionProposalApprovalSchema, ActionProposalCreateRequestSchema, ActionProposalListResponseSchema, ActionProposalPlanSchema, ActionProposalPlanActionTypeSchema, ActionProposalResourceSchema, ActionProposalStatusSchema, ActionProposalTypeSchema, ResetRequestSchema, ResetResultSchema, MethodAuthoringCreateRequestSchema, MethodAuthoringResultSchema, PreparationListResponseSchema, MethodListResponseSchema, PortableContextListResponseSchema, SourceFileListResponseSchema, OpenPathRequestSchema, OpenPathResponseSchema, } from "./lib/schema.js";
8
+ export type { CompileRunCreateRequest, CompileRunResource, CompileRunSummary, LocalServiceDiscovery, PortableContextMapping, PreparationRunLinkage, PreparationResource, PreparationWireShape, MethodResource, LocalJobAgent, LocalJobEvent, LocalJobEventAppendRequest, LocalJobEventType, LocalJobRunCreateRequest, LocalJobRunResource, LocalJobStatus, LocalRunHandlerResult, LocalJobStep, LocalJobType, LocalServiceConfig, LocalServiceError, LocalServiceHealth, LocalExecutorStatus, ActionClientOrigin, ActionProposalApproval, ActionProposalApprovalRequest, ActionProposalCreateRequest, ActionProposalListResponse, ActionProposalPlan, ActionProposalPlanActionType, ActionProposalResource, ActionProposalStatus, ActionProposalType, MethodChangeResult, PreparationChangeResult, PreparationSetupResult, ResetRequest, ResetResult, PortableContextResource, ReadinessResource, SourceFileResource, ReadinessCheckDraftCreateRequest, ReadinessCheckDraftResult, VerifyRunCreateRequest, VerifyRunResource, VerifyRunStatus, RunObservabilityListResponse, RunObservabilityResource, MethodAuthoringCreateRequest, MethodAuthoringResult, PreparationListResponse, MethodListResponse, PortableContextListResponse, SourceFileListResponse, OpenPathRequest, OpenPathResponse, WorkspaceFileResource, } from "./lib/schema.js";
9
+ export { CompileRunCreateRequestSchema, CompileRunResourceSchema, CompileRunSummarySchema, LocalServiceDiscoverySchema, PortableContextMappingSchema, PreparationRunLinkageSchema, PreparationResourceSchema, PreparationWireShapeSchema, MethodResourceSchema, LocalJobAgentSchema, LocalJobEventAppendRequestSchema, LocalJobEventSchema, LocalJobEventTypeSchema, LocalJobRunCreateRequestSchema, LocalJobRunResourceSchema, LocalJobStatusSchema, LocalRunHandlerResultSchema, LocalJobStepSchema, LocalJobTypeSchema, LocalServiceConfigSchema, LocalServiceErrorSchema, LocalServiceHealthSchema, PortableContextResourceSchema, ReadinessResourceSchema, SourceFileResourceSchema, ReadinessCheckDraftCreateRequestSchema, ReadinessCheckDraftResultSchema, VerifyRunCreateRequestSchema, VerifyRunResourceSchema, VerifyRunStatusSchema, RunObservabilityResourceSchema, RunObservabilityListResponseSchema, LocalExecutorStatusSchema, ActionClientOriginSchema, ActionProposalApprovalRequestSchema, ActionProposalApprovalSchema, ActionProposalCreateRequestSchema, ActionProposalListResponseSchema, ActionProposalPlanSchema, ActionProposalPlanActionTypeSchema, ActionProposalResourceSchema, ActionProposalStatusSchema, ActionProposalTypeSchema, ResetRequestSchema, ResetResultSchema, MethodAuthoringCreateRequestSchema, MethodAuthoringResultSchema, PreparationListResponseSchema, MethodListResponseSchema, PortableContextListResponseSchema, SourceFileListResponseSchema, OpenPathRequestSchema, OpenPathResponseSchema, } from "./lib/schema.js";
10
10
  export { LOCAL_SERVICE_DEFAULT_HOST, LOCAL_SERVICE_DEFAULT_PORT, LOCAL_SERVICE_ROUTES, buildLocalServiceUrl, } from "./routes.js";
11
11
  export type { ServiceRegistry, ServiceRegistryEntry, ServiceRegistryWorkspace, } from "./lib/schema.js";
12
12
  export { ServiceRegistrySchema, ServiceRegistryEntrySchema, ServiceRegistryWorkspaceSchema, } from "./lib/schema.js";
@@ -5,7 +5,7 @@ export * as routes from "./routes.js";
5
5
  export * as client from "./client.js";
6
6
  export * as runtime from "./runtime.js";
7
7
  export * as server from "./server.js";
8
- export { CompileRunCreateRequestSchema, CompileRunResourceSchema, CompileRunSummarySchema, LocalServiceDiscoverySchema, PortableContextMappingSchema, PreparationRunLinkageSchema, PreparationResourceSchema, MethodResourceSchema, LocalJobAgentSchema, LocalJobEventAppendRequestSchema, LocalJobEventSchema, LocalJobEventTypeSchema, LocalJobRunCreateRequestSchema, LocalJobRunResourceSchema, LocalJobStatusSchema, LocalRunHandlerResultSchema, LocalJobStepSchema, LocalJobTypeSchema, LocalServiceConfigSchema, LocalServiceErrorSchema, LocalServiceHealthSchema, PortableContextResourceSchema, ReadinessResourceSchema, SourceFileResourceSchema, ReadinessCheckDraftCreateRequestSchema, ReadinessCheckDraftResultSchema, VerifyRunCreateRequestSchema, VerifyRunResourceSchema, VerifyRunStatusSchema, RunObservabilityResourceSchema, RunObservabilityListResponseSchema, LocalExecutorStatusSchema, ActionClientOriginSchema, ActionProposalApprovalRequestSchema, ActionProposalApprovalSchema, ActionProposalCreateRequestSchema, ActionProposalListResponseSchema, ActionProposalPlanSchema, ActionProposalPlanActionTypeSchema, ActionProposalResourceSchema, ActionProposalStatusSchema, ActionProposalTypeSchema, ResetRequestSchema, ResetResultSchema, MethodAuthoringCreateRequestSchema, MethodAuthoringResultSchema, PreparationListResponseSchema, MethodListResponseSchema, PortableContextListResponseSchema, SourceFileListResponseSchema, OpenPathRequestSchema, OpenPathResponseSchema, } from "./lib/schema.js";
8
+ export { CompileRunCreateRequestSchema, CompileRunResourceSchema, CompileRunSummarySchema, LocalServiceDiscoverySchema, PortableContextMappingSchema, PreparationRunLinkageSchema, PreparationResourceSchema, PreparationWireShapeSchema, MethodResourceSchema, LocalJobAgentSchema, LocalJobEventAppendRequestSchema, LocalJobEventSchema, LocalJobEventTypeSchema, LocalJobRunCreateRequestSchema, LocalJobRunResourceSchema, LocalJobStatusSchema, LocalRunHandlerResultSchema, LocalJobStepSchema, LocalJobTypeSchema, LocalServiceConfigSchema, LocalServiceErrorSchema, LocalServiceHealthSchema, PortableContextResourceSchema, ReadinessResourceSchema, SourceFileResourceSchema, ReadinessCheckDraftCreateRequestSchema, ReadinessCheckDraftResultSchema, VerifyRunCreateRequestSchema, VerifyRunResourceSchema, VerifyRunStatusSchema, RunObservabilityResourceSchema, RunObservabilityListResponseSchema, LocalExecutorStatusSchema, ActionClientOriginSchema, ActionProposalApprovalRequestSchema, ActionProposalApprovalSchema, ActionProposalCreateRequestSchema, ActionProposalListResponseSchema, ActionProposalPlanSchema, ActionProposalPlanActionTypeSchema, ActionProposalResourceSchema, ActionProposalStatusSchema, ActionProposalTypeSchema, ResetRequestSchema, ResetResultSchema, MethodAuthoringCreateRequestSchema, MethodAuthoringResultSchema, PreparationListResponseSchema, MethodListResponseSchema, PortableContextListResponseSchema, SourceFileListResponseSchema, OpenPathRequestSchema, OpenPathResponseSchema, } from "./lib/schema.js";
9
9
  export { LOCAL_SERVICE_DEFAULT_HOST, LOCAL_SERVICE_DEFAULT_PORT, LOCAL_SERVICE_ROUTES, buildLocalServiceUrl, } from "./routes.js";
10
10
  export { ServiceRegistrySchema, ServiceRegistryEntrySchema, ServiceRegistryWorkspaceSchema, } from "./lib/schema.js";
11
11
  export { readServiceRegistry, registerServiceLocally, unregisterService, writeServiceRegistry, serviceRegistryPath, } from "./service-registry.js";
@@ -1,18 +1,24 @@
1
1
  /**
2
- * Source of truth for every Interf path on disk in 0.13.
2
+ * Interf Home path helpers used by the local service.
3
3
  *
4
4
  * The instance is a black box that owns its preparation state. Storage lives
5
5
  * under `~/.interf/`. The CLI never opens these files directly — it asks the
6
6
  * API where things are and reads from the locator the API returns.
7
7
  *
8
+ * Current preparation config and portable-context paths live in
9
+ * `contracts/lib/preparation-paths.ts` and are bridged by
10
+ * `preparation-store.ts` for the existing compile runtime. Keep the old
11
+ * `config.json` / `portable-context` constants below as a migration boundary
12
+ * only; do not cite them as current user-visible layout.
13
+ *
8
14
  * Layout:
9
15
  * ~/.interf/
10
16
  * connection.json ← single CLI connection record
11
17
  * services.json ← internal stop-lookup registry
12
18
  * methods/<id>/ ← user-installed methods (cross-preparation)
13
19
  * preparations/<prep-id>/ ← per-preparation state owned by the engine
14
- * config.json ← preparation config (id, source, method, …)
15
- * portable-context/ compiled portable context output
20
+ * interf.json ← current preparation config bridge
21
+ * <prep-id>/ current portable context output
16
22
  * .interf/ ← per-preparation runtime/method/tests state
17
23
  * runs/ ← persisted run records
18
24
  * jobs/ ← service job runs
@@ -65,9 +71,9 @@ export declare function userMethodPackagePath(methodId: string): string;
65
71
  export declare function preparationsRoot(): string;
66
72
  /** `~/.interf/preparations/<prep-id>/` — one preparation's state dir. */
67
73
  export declare function preparationDataDir(prepId: string): PreparationDataDir;
68
- /** `<prep-data>/config.json` preparation config source of truth. */
74
+ /** Legacy planned path: `<prep-data>/config.json`. Current runtime uses `interf.json`. */
69
75
  export declare function preparationConfigPath(prepId: string): string;
70
- /** `<prep-data>/portable-context/` compiled portable context output. */
76
+ /** Legacy planned path: `<prep-data>/portable-context/`. Current runtime uses `<prep-data>/<prep-id>/`. */
71
77
  export declare function preparationPortableContextDir(prepId: string): PortableContextPath;
72
78
  /** `<prep-data>/runs/` — compile/test run records. */
73
79
  export declare function preparationRunsRoot(prepId: string): string;
@@ -88,13 +94,13 @@ export declare function portableContextRuntimeRoot(portableContext: PortableCont
88
94
  /** `<portable-context>/.interf/tests/`. */
89
95
  export declare function portableContextTestsRoot(portableContext: PortableContextPath): string;
90
96
  export type PreparationTestTargetLabel = "source-files" | "compiled";
91
- /** `<prep-data>/portable-context/.interf/tests/<target>/runs/`. */
97
+ /** Legacy planned path: `<prep-data>/portable-context/.interf/tests/<target>/runs/`. */
92
98
  export declare function preparationTestRunsRoot(prepId: string, target: PreparationTestTargetLabel): string;
93
- /** `<prep-data>/portable-context/.interf/tests/latest.json`. */
99
+ /** Legacy planned path: `<prep-data>/portable-context/.interf/tests/latest.json`. */
94
100
  export declare function preparationLatestReadinessRunPath(prepId: string): string;
95
- /** `<prep-data>/portable-context/.interf/tests/latest.md`. */
101
+ /** Legacy planned path: `<prep-data>/portable-context/.interf/tests/latest.md`. */
96
102
  export declare function preparationLatestReadinessSummaryPath(prepId: string): string;
97
103
  /** Normalize a free-form string into a stable kebab-cased id (≤80 chars). */
98
104
  export declare function normalizePreparationTestRunId(input: string): string;
99
- /** `<prep-data>/portable-context/.interf/tests/<target>/runs/<timestamp>-<run-id>[-<suffix>].json`. */
105
+ /** Legacy planned path: `<prep-data>/portable-context/.interf/tests/<target>/runs/<timestamp>-<run-id>[-<suffix>].json`. */
100
106
  export declare function preparationTestRunPath(prepId: string, target: PreparationTestTargetLabel, generatedAt: string, runId: string, runSuffix?: string | null): string;
@@ -1,18 +1,24 @@
1
1
  /**
2
- * Source of truth for every Interf path on disk in 0.13.
2
+ * Interf Home path helpers used by the local service.
3
3
  *
4
4
  * The instance is a black box that owns its preparation state. Storage lives
5
5
  * under `~/.interf/`. The CLI never opens these files directly — it asks the
6
6
  * API where things are and reads from the locator the API returns.
7
7
  *
8
+ * Current preparation config and portable-context paths live in
9
+ * `contracts/lib/preparation-paths.ts` and are bridged by
10
+ * `preparation-store.ts` for the existing compile runtime. Keep the old
11
+ * `config.json` / `portable-context` constants below as a migration boundary
12
+ * only; do not cite them as current user-visible layout.
13
+ *
8
14
  * Layout:
9
15
  * ~/.interf/
10
16
  * connection.json ← single CLI connection record
11
17
  * services.json ← internal stop-lookup registry
12
18
  * methods/<id>/ ← user-installed methods (cross-preparation)
13
19
  * preparations/<prep-id>/ ← per-preparation state owned by the engine
14
- * config.json ← preparation config (id, source, method, …)
15
- * portable-context/ compiled portable context output
20
+ * interf.json ← current preparation config bridge
21
+ * <prep-id>/ current portable context output
16
22
  * .interf/ ← per-preparation runtime/method/tests state
17
23
  * runs/ ← persisted run records
18
24
  * jobs/ ← service job runs
@@ -90,11 +96,11 @@ export function preparationsRoot() {
90
96
  export function preparationDataDir(prepId) {
91
97
  return asPreparationDataDir(join(preparationsRoot(), prepId));
92
98
  }
93
- /** `<prep-data>/config.json` preparation config source of truth. */
99
+ /** Legacy planned path: `<prep-data>/config.json`. Current runtime uses `interf.json`. */
94
100
  export function preparationConfigPath(prepId) {
95
101
  return join(preparationDataDir(prepId), PREPARATION_CONFIG_FILENAME);
96
102
  }
97
- /** `<prep-data>/portable-context/` compiled portable context output. */
103
+ /** Legacy planned path: `<prep-data>/portable-context/`. Current runtime uses `<prep-data>/<prep-id>/`. */
98
104
  export function preparationPortableContextDir(prepId) {
99
105
  return asPortableContextPath(join(preparationDataDir(prepId), PREPARATION_PORTABLE_CONTEXT_DIR));
100
106
  }
@@ -137,15 +143,15 @@ export function portableContextRuntimeRoot(portableContext) {
137
143
  export function portableContextTestsRoot(portableContext) {
138
144
  return join(portableContextStateRoot(portableContext), PORTABLE_CONTEXT_TESTS_DIR);
139
145
  }
140
- /** `<prep-data>/portable-context/.interf/tests/<target>/runs/`. */
146
+ /** Legacy planned path: `<prep-data>/portable-context/.interf/tests/<target>/runs/`. */
141
147
  export function preparationTestRunsRoot(prepId, target) {
142
148
  return join(portableContextTestsRoot(preparationPortableContextDir(prepId)), target, "runs");
143
149
  }
144
- /** `<prep-data>/portable-context/.interf/tests/latest.json`. */
150
+ /** Legacy planned path: `<prep-data>/portable-context/.interf/tests/latest.json`. */
145
151
  export function preparationLatestReadinessRunPath(prepId) {
146
152
  return join(portableContextTestsRoot(preparationPortableContextDir(prepId)), "latest.json");
147
153
  }
148
- /** `<prep-data>/portable-context/.interf/tests/latest.md`. */
154
+ /** Legacy planned path: `<prep-data>/portable-context/.interf/tests/latest.md`. */
149
155
  export function preparationLatestReadinessSummaryPath(prepId) {
150
156
  return join(portableContextTestsRoot(preparationPortableContextDir(prepId)), "latest.md");
151
157
  }
@@ -158,7 +164,7 @@ export function normalizePreparationTestRunId(input) {
158
164
  .replace(/^-+|-+$/g, "")
159
165
  .slice(0, 80);
160
166
  }
161
- /** `<prep-data>/portable-context/.interf/tests/<target>/runs/<timestamp>-<run-id>[-<suffix>].json`. */
167
+ /** Legacy planned path: `<prep-data>/portable-context/.interf/tests/<target>/runs/<timestamp>-<run-id>[-<suffix>].json`. */
162
168
  export function preparationTestRunPath(prepId, target, generatedAt, runId, runSuffix) {
163
169
  const suffix = runSuffix ? `-${normalizePreparationTestRunId(runSuffix)}` : "";
164
170
  return join(preparationTestRunsRoot(prepId, target), `${generatedAt.replace(/[:.]/g, "-")}-${runId}${suffix}.json`);