@interf/compiler 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -0
- package/README.md +10 -7
- package/TRADEMARKS.md +4 -4
- package/builtin-methods/interf-default/README.md +6 -7
- package/builtin-methods/interf-default/method.json +7 -68
- package/builtin-methods/interf-default/method.schema.json +52 -50
- package/dist/cli/commands/prep.js +58 -2
- package/dist/cli/commands/verify.d.ts +2 -0
- package/dist/cli/commands/verify.js +17 -8
- package/dist/cli/commands/wizard.js +122 -14
- package/dist/compiler-ui/404.html +1 -1
- package/dist/compiler-ui/__next.__PAGE__.txt +2 -2
- package/dist/compiler-ui/__next._full.txt +3 -3
- package/dist/compiler-ui/__next._head.txt +1 -1
- package/dist/compiler-ui/__next._index.txt +2 -2
- package/dist/compiler-ui/__next._tree.txt +2 -2
- package/dist/compiler-ui/_next/static/chunks/{13awzu4tooflw.css → 0_c_tvh-cukjz.css} +1 -1
- package/dist/compiler-ui/_next/static/chunks/{0jipmpez3_ehh.js → 0f_geuwdesg_c.js} +42 -17
- package/dist/compiler-ui/_not-found/__next._full.txt +2 -2
- package/dist/compiler-ui/_not-found/__next._head.txt +1 -1
- package/dist/compiler-ui/_not-found/__next._index.txt +2 -2
- package/dist/compiler-ui/_not-found/__next._not-found.__PAGE__.txt +1 -1
- package/dist/compiler-ui/_not-found/__next._not-found.txt +1 -1
- package/dist/compiler-ui/_not-found/__next._tree.txt +2 -2
- package/dist/compiler-ui/_not-found.html +1 -1
- package/dist/compiler-ui/_not-found.txt +2 -2
- package/dist/compiler-ui/index.html +1 -1
- package/dist/compiler-ui/index.txt +3 -3
- package/dist/packages/contracts/index.d.ts +2 -2
- package/dist/packages/contracts/index.js +1 -1
- package/dist/packages/contracts/lib/schema.d.ts +271 -72
- package/dist/packages/contracts/lib/schema.js +243 -83
- package/dist/packages/engine/action-definitions.js +1 -1
- package/dist/packages/engine/agents/lib/shells.d.ts +12 -4
- package/dist/packages/engine/agents/lib/shells.js +127 -120
- package/dist/packages/engine/cloud-seams.d.ts +115 -0
- package/dist/packages/engine/cloud-seams.js +84 -0
- package/dist/packages/engine/compile/artifact-counts.d.ts +1 -1
- package/dist/packages/engine/compile/artifact-counts.js +3 -3
- package/dist/packages/engine/compile/artifact-status.d.ts +41 -0
- package/dist/packages/engine/compile/artifact-status.js +166 -0
- package/dist/packages/engine/compile/billing-events.d.ts +89 -0
- package/dist/packages/engine/compile/billing-events.js +74 -0
- package/dist/packages/engine/compile/check-evaluator.d.ts +66 -0
- package/dist/packages/engine/compile/check-evaluator.js +298 -0
- package/dist/packages/engine/compile/compiled-schema.d.ts +7 -17
- package/dist/packages/engine/compile/compiled-schema.js +55 -70
- package/dist/packages/engine/compile/compiled-stage-plan.d.ts +1 -0
- package/dist/packages/engine/compile/compiled-stage-plan.js +32 -15
- package/dist/packages/engine/compile/compiled-stage-runner.js +1 -1
- package/dist/packages/engine/compile/index.d.ts +0 -1
- package/dist/packages/engine/compile/index.js +0 -1
- package/dist/packages/engine/compile/lib/schema.d.ts +111 -92
- package/dist/packages/engine/compile/lib/schema.js +35 -39
- package/dist/packages/engine/compile/method-primitives.d.ts +2 -2
- package/dist/packages/engine/compile/method-primitives.js +1 -1
- package/dist/packages/engine/compile/reset.js +4 -4
- package/dist/packages/engine/compile/runtime-contracts.js +2 -1
- package/dist/packages/engine/compile/runtime-prompt.js +3 -2
- package/dist/packages/engine/compile/runtime-reconcile.js +35 -35
- package/dist/packages/engine/compile/runtime-runs.js +0 -1
- package/dist/packages/engine/compile/runtime-types.d.ts +7 -8
- package/dist/packages/engine/compile/runtime.d.ts +1 -2
- package/dist/packages/engine/compile/runtime.js +0 -1
- package/dist/packages/engine/compile/state-health.js +6 -6
- package/dist/packages/engine/compile/state-view.js +7 -6
- package/dist/packages/engine/compile/validate-compiled.js +61 -30
- package/dist/packages/engine/compile/validate.js +26 -24
- package/dist/packages/engine/execution/lib/schema.d.ts +79 -33
- package/dist/packages/engine/execution/lib/schema.js +13 -5
- package/dist/packages/engine/index.d.ts +2 -2
- package/dist/packages/engine/index.js +1 -1
- package/dist/packages/engine/lib/schema.d.ts +551 -242
- package/dist/packages/engine/lib/schema.js +53 -17
- package/dist/packages/engine/native-run-handlers.js +15 -7
- package/dist/packages/engine/preparation-store.d.ts +6 -0
- package/dist/packages/engine/preparation-store.js +8 -0
- package/dist/packages/engine/routes.d.ts +6 -0
- package/dist/packages/engine/routes.js +6 -0
- package/dist/packages/engine/run-observability.js +1 -2
- package/dist/packages/engine/runtime-event-applier.js +7 -0
- package/dist/packages/engine/runtime-proposal-helpers.js +1 -1
- package/dist/packages/engine/runtime-resource-builders.d.ts +6 -6
- package/dist/packages/engine/runtime-resource-builders.js +5 -4
- package/dist/packages/engine/runtime.d.ts +67 -7
- package/dist/packages/engine/runtime.js +159 -29
- package/dist/packages/engine/server.d.ts +25 -0
- package/dist/packages/engine/server.js +62 -3
- package/dist/packages/engine/verify/index.d.ts +10 -10
- package/dist/packages/engine/verify/index.js +8 -8
- package/dist/packages/engine/verify/readiness-check-run.d.ts +27 -4
- package/dist/packages/engine/verify/readiness-check-run.js +92 -24
- package/dist/packages/engine/verify/{test-execution.d.ts → verify-execution.d.ts} +2 -2
- package/dist/packages/engine/verify/{test-execution.js → verify-execution.js} +2 -2
- package/dist/packages/engine/verify/{test-paths.d.ts → verify-paths.d.ts} +1 -1
- package/dist/packages/engine/verify/{test-sandbox.d.ts → verify-sandbox.d.ts} +1 -1
- package/dist/packages/engine/verify/{test-specs.d.ts → verify-specs.d.ts} +1 -1
- package/dist/packages/engine/verify/{test-specs.js → verify-specs.js} +1 -1
- package/dist/packages/engine/verify/{test-targets.d.ts → verify-targets.d.ts} +1 -1
- package/dist/packages/engine/verify/{test.d.ts → verify.d.ts} +4 -4
- package/dist/packages/engine/verify/{test.js → verify.js} +3 -3
- package/dist/packages/engine/wire-schemas.d.ts +545 -0
- package/dist/packages/engine/wire-schemas.js +59 -0
- package/dist/packages/methods/authoring/method-authoring.d.ts +2 -0
- package/dist/packages/methods/authoring/method-authoring.js +99 -18
- package/dist/packages/methods/authoring/method-edit-session.js +5 -5
- package/dist/packages/methods/authoring/method-improvement.js +1 -1
- package/dist/packages/methods/package/builtin-compiled-method.d.ts +12 -12
- package/dist/packages/methods/package/builtin-compiled-method.js +25 -22
- package/dist/packages/methods/package/context-interface.d.ts +39 -26
- package/dist/packages/methods/package/context-interface.js +48 -39
- package/dist/packages/methods/package/interf-method-package.js +28 -47
- package/dist/packages/methods/package/local-methods.d.ts +3 -4
- package/dist/packages/methods/package/local-methods.js +34 -62
- package/dist/packages/methods/package/method-definitions.d.ts +4 -6
- package/dist/packages/methods/package/method-definitions.js +0 -4
- package/dist/packages/methods/package/method-helpers.d.ts +0 -2
- package/dist/packages/methods/package/method-helpers.js +0 -4
- package/dist/packages/project/interf-scaffold.js +12 -12
- package/dist/packages/project/source-config.js +2 -1
- package/package.json +6 -16
- package/dist/packages/engine/compile/runtime-acceptance.d.ts +0 -9
- package/dist/packages/engine/compile/runtime-acceptance.js +0 -265
- /package/dist/compiler-ui/_next/static/{a3UiUF0DiMEbfWy_0gihg → 6qyE1u9m_oBUkvAhhoCmO}/_buildManifest.js +0 -0
- /package/dist/compiler-ui/_next/static/{a3UiUF0DiMEbfWy_0gihg → 6qyE1u9m_oBUkvAhhoCmO}/_clientMiddlewareManifest.js +0 -0
- /package/dist/compiler-ui/_next/static/{a3UiUF0DiMEbfWy_0gihg → 6qyE1u9m_oBUkvAhhoCmO}/_ssgManifest.js +0 -0
- /package/dist/packages/engine/verify/{test-paths.js → verify-paths.js} +0 -0
- /package/dist/packages/engine/verify/{test-profile-presets.d.ts → verify-profile-presets.d.ts} +0 -0
- /package/dist/packages/engine/verify/{test-profile-presets.js → verify-profile-presets.js} +0 -0
- /package/dist/packages/engine/verify/{test-sandbox.js → verify-sandbox.js} +0 -0
- /package/dist/packages/engine/verify/{test-targets.js → verify-targets.js} +0 -0
- /package/dist/packages/engine/verify/{test-types.d.ts → verify-types.d.ts} +0 -0
- /package/dist/packages/engine/verify/{test-types.js → verify-types.js} +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;
|
|
@@ -311,15 +311,15 @@ export declare const RunObservabilitySchema: z.ZodObject<{
|
|
|
311
311
|
}>;
|
|
312
312
|
ok: z.ZodBoolean;
|
|
313
313
|
status: z.ZodOptional<z.ZodEnum<{
|
|
314
|
+
ready: "ready";
|
|
315
|
+
failed: "failed";
|
|
314
316
|
"not-configured": "not-configured";
|
|
315
317
|
"not-built": "not-built";
|
|
316
318
|
building: "building";
|
|
317
319
|
built: "built";
|
|
318
320
|
checking: "checking";
|
|
319
|
-
ready: "ready";
|
|
320
321
|
"not-ready": "not-ready";
|
|
321
322
|
stale: "stale";
|
|
322
|
-
failed: "failed";
|
|
323
323
|
}>>;
|
|
324
324
|
summary: z.ZodString;
|
|
325
325
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -358,15 +358,15 @@ export declare const RunObservabilitySchema: z.ZodObject<{
|
|
|
358
358
|
}>;
|
|
359
359
|
ok: z.ZodBoolean;
|
|
360
360
|
status: z.ZodOptional<z.ZodEnum<{
|
|
361
|
+
ready: "ready";
|
|
362
|
+
failed: "failed";
|
|
361
363
|
"not-configured": "not-configured";
|
|
362
364
|
"not-built": "not-built";
|
|
363
365
|
building: "building";
|
|
364
366
|
built: "built";
|
|
365
367
|
checking: "checking";
|
|
366
|
-
ready: "ready";
|
|
367
368
|
"not-ready": "not-ready";
|
|
368
369
|
stale: "stale";
|
|
369
|
-
failed: "failed";
|
|
370
370
|
}>>;
|
|
371
371
|
summary: z.ZodString;
|
|
372
372
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -470,7 +470,6 @@ export declare const StageRunContractSchema: z.ZodObject<{
|
|
|
470
470
|
stage_total: z.ZodOptional<z.ZodNumber>;
|
|
471
471
|
reads: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
472
472
|
writes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
473
|
-
acceptance: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
474
473
|
}, z.core.$strict>;
|
|
475
474
|
export declare const StageRunLogsSchema: z.ZodObject<{
|
|
476
475
|
prompt_path: z.ZodOptional<z.ZodString>;
|
|
@@ -605,6 +604,13 @@ export declare const RunFailedEventSchema: z.ZodObject<{
|
|
|
605
604
|
type: z.ZodLiteral<"run.failed">;
|
|
606
605
|
error: z.ZodString;
|
|
607
606
|
}, z.core.$strict>;
|
|
607
|
+
export declare const RunCancelledEventSchema: z.ZodObject<{
|
|
608
|
+
event_id: z.ZodString;
|
|
609
|
+
run_id: z.ZodString;
|
|
610
|
+
timestamp: z.ZodString;
|
|
611
|
+
type: z.ZodLiteral<"run.cancelled">;
|
|
612
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
613
|
+
}, z.core.$strict>;
|
|
608
614
|
export declare const ChecksEvaluatedEventSchema: z.ZodObject<{
|
|
609
615
|
event_id: z.ZodString;
|
|
610
616
|
run_id: z.ZodString;
|
|
@@ -632,15 +638,15 @@ export declare const ReadinessUpdatedEventSchema: z.ZodObject<{
|
|
|
632
638
|
generated_at: z.ZodString;
|
|
633
639
|
preparation: z.ZodString;
|
|
634
640
|
status: z.ZodEnum<{
|
|
641
|
+
ready: "ready";
|
|
642
|
+
failed: "failed";
|
|
635
643
|
"not-configured": "not-configured";
|
|
636
644
|
"not-built": "not-built";
|
|
637
645
|
building: "building";
|
|
638
646
|
built: "built";
|
|
639
647
|
checking: "checking";
|
|
640
|
-
ready: "ready";
|
|
641
648
|
"not-ready": "not-ready";
|
|
642
649
|
stale: "stale";
|
|
643
|
-
failed: "failed";
|
|
644
650
|
}>;
|
|
645
651
|
ready: z.ZodBoolean;
|
|
646
652
|
summary: z.ZodString;
|
|
@@ -657,15 +663,15 @@ export declare const ReadinessUpdatedEventSchema: z.ZodObject<{
|
|
|
657
663
|
}>;
|
|
658
664
|
ok: z.ZodBoolean;
|
|
659
665
|
status: z.ZodOptional<z.ZodEnum<{
|
|
666
|
+
ready: "ready";
|
|
667
|
+
failed: "failed";
|
|
660
668
|
"not-configured": "not-configured";
|
|
661
669
|
"not-built": "not-built";
|
|
662
670
|
building: "building";
|
|
663
671
|
built: "built";
|
|
664
672
|
checking: "checking";
|
|
665
|
-
ready: "ready";
|
|
666
673
|
"not-ready": "not-ready";
|
|
667
674
|
stale: "stale";
|
|
668
|
-
failed: "failed";
|
|
669
675
|
}>>;
|
|
670
676
|
summary: z.ZodString;
|
|
671
677
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -704,15 +710,15 @@ export declare const ReadinessUpdatedEventSchema: z.ZodObject<{
|
|
|
704
710
|
}>;
|
|
705
711
|
ok: z.ZodBoolean;
|
|
706
712
|
status: z.ZodOptional<z.ZodEnum<{
|
|
713
|
+
ready: "ready";
|
|
714
|
+
failed: "failed";
|
|
707
715
|
"not-configured": "not-configured";
|
|
708
716
|
"not-built": "not-built";
|
|
709
717
|
building: "building";
|
|
710
718
|
built: "built";
|
|
711
719
|
checking: "checking";
|
|
712
|
-
ready: "ready";
|
|
713
720
|
"not-ready": "not-ready";
|
|
714
721
|
stale: "stale";
|
|
715
|
-
failed: "failed";
|
|
716
722
|
}>>;
|
|
717
723
|
summary: z.ZodString;
|
|
718
724
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -838,6 +844,12 @@ export declare const InterfRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
838
844
|
timestamp: z.ZodString;
|
|
839
845
|
type: z.ZodLiteral<"run.failed">;
|
|
840
846
|
error: z.ZodString;
|
|
847
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
848
|
+
event_id: z.ZodString;
|
|
849
|
+
run_id: z.ZodString;
|
|
850
|
+
timestamp: z.ZodString;
|
|
851
|
+
type: z.ZodLiteral<"run.cancelled">;
|
|
852
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
841
853
|
}, z.core.$strict>, z.ZodObject<{
|
|
842
854
|
event_id: z.ZodString;
|
|
843
855
|
run_id: z.ZodString;
|
|
@@ -864,15 +876,15 @@ export declare const InterfRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
864
876
|
generated_at: z.ZodString;
|
|
865
877
|
preparation: z.ZodString;
|
|
866
878
|
status: z.ZodEnum<{
|
|
879
|
+
ready: "ready";
|
|
880
|
+
failed: "failed";
|
|
867
881
|
"not-configured": "not-configured";
|
|
868
882
|
"not-built": "not-built";
|
|
869
883
|
building: "building";
|
|
870
884
|
built: "built";
|
|
871
885
|
checking: "checking";
|
|
872
|
-
ready: "ready";
|
|
873
886
|
"not-ready": "not-ready";
|
|
874
887
|
stale: "stale";
|
|
875
|
-
failed: "failed";
|
|
876
888
|
}>;
|
|
877
889
|
ready: z.ZodBoolean;
|
|
878
890
|
summary: z.ZodString;
|
|
@@ -889,15 +901,15 @@ export declare const InterfRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
889
901
|
}>;
|
|
890
902
|
ok: z.ZodBoolean;
|
|
891
903
|
status: z.ZodOptional<z.ZodEnum<{
|
|
904
|
+
ready: "ready";
|
|
905
|
+
failed: "failed";
|
|
892
906
|
"not-configured": "not-configured";
|
|
893
907
|
"not-built": "not-built";
|
|
894
908
|
building: "building";
|
|
895
909
|
built: "built";
|
|
896
910
|
checking: "checking";
|
|
897
|
-
ready: "ready";
|
|
898
911
|
"not-ready": "not-ready";
|
|
899
912
|
stale: "stale";
|
|
900
|
-
failed: "failed";
|
|
901
913
|
}>>;
|
|
902
914
|
summary: z.ZodString;
|
|
903
915
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -936,15 +948,15 @@ export declare const InterfRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
936
948
|
}>;
|
|
937
949
|
ok: z.ZodBoolean;
|
|
938
950
|
status: z.ZodOptional<z.ZodEnum<{
|
|
951
|
+
ready: "ready";
|
|
952
|
+
failed: "failed";
|
|
939
953
|
"not-configured": "not-configured";
|
|
940
954
|
"not-built": "not-built";
|
|
941
955
|
building: "building";
|
|
942
956
|
built: "built";
|
|
943
957
|
checking: "checking";
|
|
944
|
-
ready: "ready";
|
|
945
958
|
"not-ready": "not-ready";
|
|
946
959
|
stale: "stale";
|
|
947
|
-
failed: "failed";
|
|
948
960
|
}>>;
|
|
949
961
|
summary: z.ZodString;
|
|
950
962
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -974,7 +986,6 @@ export declare const StageRunSchema: z.ZodObject<{
|
|
|
974
986
|
stage_total: z.ZodOptional<z.ZodNumber>;
|
|
975
987
|
reads: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
976
988
|
writes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
977
|
-
acceptance: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
978
989
|
}, z.core.$strict>>;
|
|
979
990
|
executor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
980
991
|
kind: z.ZodEnum<{
|
|
@@ -1081,7 +1092,6 @@ export declare const CompileRunSchema: z.ZodObject<{
|
|
|
1081
1092
|
stage_total: z.ZodOptional<z.ZodNumber>;
|
|
1082
1093
|
reads: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1083
1094
|
writes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1084
|
-
acceptance: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1085
1095
|
}, z.core.$strict>>;
|
|
1086
1096
|
executor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1087
1097
|
kind: z.ZodEnum<{
|
|
@@ -1262,6 +1272,12 @@ export declare const CompileRunSchema: z.ZodObject<{
|
|
|
1262
1272
|
timestamp: z.ZodString;
|
|
1263
1273
|
type: z.ZodLiteral<"run.failed">;
|
|
1264
1274
|
error: z.ZodString;
|
|
1275
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1276
|
+
event_id: z.ZodString;
|
|
1277
|
+
run_id: z.ZodString;
|
|
1278
|
+
timestamp: z.ZodString;
|
|
1279
|
+
type: z.ZodLiteral<"run.cancelled">;
|
|
1280
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1265
1281
|
}, z.core.$strict>, z.ZodObject<{
|
|
1266
1282
|
event_id: z.ZodString;
|
|
1267
1283
|
run_id: z.ZodString;
|
|
@@ -1288,15 +1304,15 @@ export declare const CompileRunSchema: z.ZodObject<{
|
|
|
1288
1304
|
generated_at: z.ZodString;
|
|
1289
1305
|
preparation: z.ZodString;
|
|
1290
1306
|
status: z.ZodEnum<{
|
|
1307
|
+
ready: "ready";
|
|
1308
|
+
failed: "failed";
|
|
1291
1309
|
"not-configured": "not-configured";
|
|
1292
1310
|
"not-built": "not-built";
|
|
1293
1311
|
building: "building";
|
|
1294
1312
|
built: "built";
|
|
1295
1313
|
checking: "checking";
|
|
1296
|
-
ready: "ready";
|
|
1297
1314
|
"not-ready": "not-ready";
|
|
1298
1315
|
stale: "stale";
|
|
1299
|
-
failed: "failed";
|
|
1300
1316
|
}>;
|
|
1301
1317
|
ready: z.ZodBoolean;
|
|
1302
1318
|
summary: z.ZodString;
|
|
@@ -1313,15 +1329,15 @@ export declare const CompileRunSchema: z.ZodObject<{
|
|
|
1313
1329
|
}>;
|
|
1314
1330
|
ok: z.ZodBoolean;
|
|
1315
1331
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1332
|
+
ready: "ready";
|
|
1333
|
+
failed: "failed";
|
|
1316
1334
|
"not-configured": "not-configured";
|
|
1317
1335
|
"not-built": "not-built";
|
|
1318
1336
|
building: "building";
|
|
1319
1337
|
built: "built";
|
|
1320
1338
|
checking: "checking";
|
|
1321
|
-
ready: "ready";
|
|
1322
1339
|
"not-ready": "not-ready";
|
|
1323
1340
|
stale: "stale";
|
|
1324
|
-
failed: "failed";
|
|
1325
1341
|
}>>;
|
|
1326
1342
|
summary: z.ZodString;
|
|
1327
1343
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -1360,15 +1376,15 @@ export declare const CompileRunSchema: z.ZodObject<{
|
|
|
1360
1376
|
}>;
|
|
1361
1377
|
ok: z.ZodBoolean;
|
|
1362
1378
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1379
|
+
ready: "ready";
|
|
1380
|
+
failed: "failed";
|
|
1363
1381
|
"not-configured": "not-configured";
|
|
1364
1382
|
"not-built": "not-built";
|
|
1365
1383
|
building: "building";
|
|
1366
1384
|
built: "built";
|
|
1367
1385
|
checking: "checking";
|
|
1368
|
-
ready: "ready";
|
|
1369
1386
|
"not-ready": "not-ready";
|
|
1370
1387
|
stale: "stale";
|
|
1371
|
-
failed: "failed";
|
|
1372
1388
|
}>>;
|
|
1373
1389
|
summary: z.ZodString;
|
|
1374
1390
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -1410,15 +1426,15 @@ export declare const CompileRunSchema: z.ZodObject<{
|
|
|
1410
1426
|
generated_at: z.ZodString;
|
|
1411
1427
|
preparation: z.ZodString;
|
|
1412
1428
|
status: z.ZodEnum<{
|
|
1429
|
+
ready: "ready";
|
|
1430
|
+
failed: "failed";
|
|
1413
1431
|
"not-configured": "not-configured";
|
|
1414
1432
|
"not-built": "not-built";
|
|
1415
1433
|
building: "building";
|
|
1416
1434
|
built: "built";
|
|
1417
1435
|
checking: "checking";
|
|
1418
|
-
ready: "ready";
|
|
1419
1436
|
"not-ready": "not-ready";
|
|
1420
1437
|
stale: "stale";
|
|
1421
|
-
failed: "failed";
|
|
1422
1438
|
}>;
|
|
1423
1439
|
ready: z.ZodBoolean;
|
|
1424
1440
|
summary: z.ZodString;
|
|
@@ -1435,15 +1451,15 @@ export declare const CompileRunSchema: z.ZodObject<{
|
|
|
1435
1451
|
}>;
|
|
1436
1452
|
ok: z.ZodBoolean;
|
|
1437
1453
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1454
|
+
ready: "ready";
|
|
1455
|
+
failed: "failed";
|
|
1438
1456
|
"not-configured": "not-configured";
|
|
1439
1457
|
"not-built": "not-built";
|
|
1440
1458
|
building: "building";
|
|
1441
1459
|
built: "built";
|
|
1442
1460
|
checking: "checking";
|
|
1443
|
-
ready: "ready";
|
|
1444
1461
|
"not-ready": "not-ready";
|
|
1445
1462
|
stale: "stale";
|
|
1446
|
-
failed: "failed";
|
|
1447
1463
|
}>>;
|
|
1448
1464
|
summary: z.ZodString;
|
|
1449
1465
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -1482,15 +1498,15 @@ export declare const CompileRunSchema: z.ZodObject<{
|
|
|
1482
1498
|
}>;
|
|
1483
1499
|
ok: z.ZodBoolean;
|
|
1484
1500
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1501
|
+
ready: "ready";
|
|
1502
|
+
failed: "failed";
|
|
1485
1503
|
"not-configured": "not-configured";
|
|
1486
1504
|
"not-built": "not-built";
|
|
1487
1505
|
building: "building";
|
|
1488
1506
|
built: "built";
|
|
1489
1507
|
checking: "checking";
|
|
1490
|
-
ready: "ready";
|
|
1491
1508
|
"not-ready": "not-ready";
|
|
1492
1509
|
stale: "stale";
|
|
1493
|
-
failed: "failed";
|
|
1494
1510
|
}>>;
|
|
1495
1511
|
summary: z.ZodString;
|
|
1496
1512
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -1498,6 +1514,36 @@ export declare const CompileRunSchema: z.ZodObject<{
|
|
|
1498
1514
|
artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1499
1515
|
}, z.core.$strict>>>;
|
|
1500
1516
|
}, z.core.$strict>>>;
|
|
1517
|
+
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1518
|
+
artifact_id: z.ZodString;
|
|
1519
|
+
status: z.ZodEnum<{
|
|
1520
|
+
ready: "ready";
|
|
1521
|
+
not_ready: "not_ready";
|
|
1522
|
+
failed: "failed";
|
|
1523
|
+
skipped: "skipped";
|
|
1524
|
+
}>;
|
|
1525
|
+
built_by_stages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1526
|
+
proofs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1527
|
+
check_id: z.ZodString;
|
|
1528
|
+
kind: z.ZodEnum<{
|
|
1529
|
+
file_exists: "file_exists";
|
|
1530
|
+
min_file_count: "min_file_count";
|
|
1531
|
+
min_file_count_matches_source: "min_file_count_matches_source";
|
|
1532
|
+
frontmatter_valid: "frontmatter_valid";
|
|
1533
|
+
frontmatter_required_keys: "frontmatter_required_keys";
|
|
1534
|
+
wikilinks_valid: "wikilinks_valid";
|
|
1535
|
+
must_not_contain: "must_not_contain";
|
|
1536
|
+
must_contain: "must_contain";
|
|
1537
|
+
qa_match: "qa_match";
|
|
1538
|
+
}>;
|
|
1539
|
+
passed: z.ZodBoolean;
|
|
1540
|
+
required: z.ZodBoolean;
|
|
1541
|
+
summary: z.ZodString;
|
|
1542
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1543
|
+
evaluated_at: z.ZodString;
|
|
1544
|
+
}, z.core.$strict>>>;
|
|
1545
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1546
|
+
}, z.core.$strict>>>;
|
|
1501
1547
|
}, z.core.$strict>;
|
|
1502
1548
|
export type ExecutionBackendKind = z.infer<typeof ExecutionBackendKindSchema>;
|
|
1503
1549
|
export type MethodTraceRunStatus = z.infer<typeof MethodTraceRunStatusSchema>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { RuntimeExecutorInfoSchema, RuntimeStageSchema, MethodIdSchema,
|
|
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:
|
|
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:
|
|
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:
|
|
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";
|