@haibun/core 3.8.4 → 3.9.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/build/schema/protocol.d.ts +49 -49
- package/build/steps/activities-stepper.d.ts +4 -4
- package/build/steps/finalizer-stepper.d.ts +12 -0
- package/build/steps/finalizer-stepper.d.ts.map +1 -0
- package/build/steps/finalizer-stepper.js +47 -0
- package/build/steps/finalizer-stepper.js.map +1 -0
- package/build/steps/haibun.d.ts +4 -4
- package/build/steps/narrator.d.ts +4 -4
- package/build/steps/variables-stepper.d.ts +25 -25
- package/package.json +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const HAIBUN_LOG_LEVELS: readonly ["debug", "trace", "log", "info", "warn", "error"];
|
|
3
3
|
export declare const HaibunLogLevel: z.ZodEnum<{
|
|
4
|
+
error: "error";
|
|
4
5
|
debug: "debug";
|
|
5
6
|
trace: "trace";
|
|
6
7
|
log: "log";
|
|
7
8
|
info: "info";
|
|
8
9
|
warn: "warn";
|
|
9
|
-
error: "error";
|
|
10
10
|
}>;
|
|
11
11
|
export type THaibunLogLevel = z.infer<typeof HaibunLogLevel>;
|
|
12
12
|
export declare const CHECK_YES = "\u2705";
|
|
@@ -244,12 +244,12 @@ export declare const BaseEvent: z.ZodObject<{
|
|
|
244
244
|
source: z.ZodDefault<z.ZodString>;
|
|
245
245
|
emitter: z.ZodOptional<z.ZodString>;
|
|
246
246
|
level: z.ZodDefault<z.ZodEnum<{
|
|
247
|
+
error: "error";
|
|
247
248
|
debug: "debug";
|
|
248
249
|
trace: "trace";
|
|
249
250
|
log: "log";
|
|
250
251
|
info: "info";
|
|
251
252
|
warn: "warn";
|
|
252
|
-
error: "error";
|
|
253
253
|
}>>;
|
|
254
254
|
}, z.core.$strip>;
|
|
255
255
|
export declare const LifecycleEventCommon: z.ZodObject<{
|
|
@@ -258,12 +258,12 @@ export declare const LifecycleEventCommon: z.ZodObject<{
|
|
|
258
258
|
source: z.ZodDefault<z.ZodString>;
|
|
259
259
|
emitter: z.ZodOptional<z.ZodString>;
|
|
260
260
|
level: z.ZodDefault<z.ZodEnum<{
|
|
261
|
+
error: "error";
|
|
261
262
|
debug: "debug";
|
|
262
263
|
trace: "trace";
|
|
263
264
|
log: "log";
|
|
264
265
|
info: "info";
|
|
265
266
|
warn: "warn";
|
|
266
|
-
error: "error";
|
|
267
267
|
}>>;
|
|
268
268
|
kind: z.ZodLiteral<"lifecycle">;
|
|
269
269
|
stage: z.ZodEnum<{
|
|
@@ -290,12 +290,12 @@ export declare const FeatureEvent: z.ZodObject<{
|
|
|
290
290
|
source: z.ZodDefault<z.ZodString>;
|
|
291
291
|
emitter: z.ZodOptional<z.ZodString>;
|
|
292
292
|
level: z.ZodDefault<z.ZodEnum<{
|
|
293
|
+
error: "error";
|
|
293
294
|
debug: "debug";
|
|
294
295
|
trace: "trace";
|
|
295
296
|
log: "log";
|
|
296
297
|
info: "info";
|
|
297
298
|
warn: "warn";
|
|
298
|
-
error: "error";
|
|
299
299
|
}>>;
|
|
300
300
|
kind: z.ZodLiteral<"lifecycle">;
|
|
301
301
|
stage: z.ZodEnum<{
|
|
@@ -324,12 +324,12 @@ export declare const ScenarioEvent: z.ZodObject<{
|
|
|
324
324
|
source: z.ZodDefault<z.ZodString>;
|
|
325
325
|
emitter: z.ZodOptional<z.ZodString>;
|
|
326
326
|
level: z.ZodDefault<z.ZodEnum<{
|
|
327
|
+
error: "error";
|
|
327
328
|
debug: "debug";
|
|
328
329
|
trace: "trace";
|
|
329
330
|
log: "log";
|
|
330
331
|
info: "info";
|
|
331
332
|
warn: "warn";
|
|
332
|
-
error: "error";
|
|
333
333
|
}>>;
|
|
334
334
|
kind: z.ZodLiteral<"lifecycle">;
|
|
335
335
|
stage: z.ZodEnum<{
|
|
@@ -359,12 +359,12 @@ export declare const StepEvent: z.ZodObject<{
|
|
|
359
359
|
source: z.ZodDefault<z.ZodString>;
|
|
360
360
|
emitter: z.ZodOptional<z.ZodString>;
|
|
361
361
|
level: z.ZodDefault<z.ZodEnum<{
|
|
362
|
+
error: "error";
|
|
362
363
|
debug: "debug";
|
|
363
364
|
trace: "trace";
|
|
364
365
|
log: "log";
|
|
365
366
|
info: "info";
|
|
366
367
|
warn: "warn";
|
|
367
|
-
error: "error";
|
|
368
368
|
}>>;
|
|
369
369
|
kind: z.ZodLiteral<"lifecycle">;
|
|
370
370
|
stage: z.ZodEnum<{
|
|
@@ -400,12 +400,12 @@ export declare const GenericLifecycleEvent: z.ZodObject<{
|
|
|
400
400
|
source: z.ZodDefault<z.ZodString>;
|
|
401
401
|
emitter: z.ZodOptional<z.ZodString>;
|
|
402
402
|
level: z.ZodDefault<z.ZodEnum<{
|
|
403
|
+
error: "error";
|
|
403
404
|
debug: "debug";
|
|
404
405
|
trace: "trace";
|
|
405
406
|
log: "log";
|
|
406
407
|
info: "info";
|
|
407
408
|
warn: "warn";
|
|
408
|
-
error: "error";
|
|
409
409
|
}>>;
|
|
410
410
|
kind: z.ZodLiteral<"lifecycle">;
|
|
411
411
|
stage: z.ZodEnum<{
|
|
@@ -442,12 +442,12 @@ export declare const LifecycleEvent: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
442
442
|
source: z.ZodDefault<z.ZodString>;
|
|
443
443
|
emitter: z.ZodOptional<z.ZodString>;
|
|
444
444
|
level: z.ZodDefault<z.ZodEnum<{
|
|
445
|
+
error: "error";
|
|
445
446
|
debug: "debug";
|
|
446
447
|
trace: "trace";
|
|
447
448
|
log: "log";
|
|
448
449
|
info: "info";
|
|
449
450
|
warn: "warn";
|
|
450
|
-
error: "error";
|
|
451
451
|
}>>;
|
|
452
452
|
kind: z.ZodLiteral<"lifecycle">;
|
|
453
453
|
stage: z.ZodEnum<{
|
|
@@ -475,12 +475,12 @@ export declare const LifecycleEvent: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
475
475
|
source: z.ZodDefault<z.ZodString>;
|
|
476
476
|
emitter: z.ZodOptional<z.ZodString>;
|
|
477
477
|
level: z.ZodDefault<z.ZodEnum<{
|
|
478
|
+
error: "error";
|
|
478
479
|
debug: "debug";
|
|
479
480
|
trace: "trace";
|
|
480
481
|
log: "log";
|
|
481
482
|
info: "info";
|
|
482
483
|
warn: "warn";
|
|
483
|
-
error: "error";
|
|
484
484
|
}>>;
|
|
485
485
|
kind: z.ZodLiteral<"lifecycle">;
|
|
486
486
|
stage: z.ZodEnum<{
|
|
@@ -509,12 +509,12 @@ export declare const LifecycleEvent: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
509
509
|
source: z.ZodDefault<z.ZodString>;
|
|
510
510
|
emitter: z.ZodOptional<z.ZodString>;
|
|
511
511
|
level: z.ZodDefault<z.ZodEnum<{
|
|
512
|
+
error: "error";
|
|
512
513
|
debug: "debug";
|
|
513
514
|
trace: "trace";
|
|
514
515
|
log: "log";
|
|
515
516
|
info: "info";
|
|
516
517
|
warn: "warn";
|
|
517
|
-
error: "error";
|
|
518
518
|
}>>;
|
|
519
519
|
kind: z.ZodLiteral<"lifecycle">;
|
|
520
520
|
stage: z.ZodEnum<{
|
|
@@ -549,12 +549,12 @@ export declare const LifecycleEvent: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
549
549
|
source: z.ZodDefault<z.ZodString>;
|
|
550
550
|
emitter: z.ZodOptional<z.ZodString>;
|
|
551
551
|
level: z.ZodDefault<z.ZodEnum<{
|
|
552
|
+
error: "error";
|
|
552
553
|
debug: "debug";
|
|
553
554
|
trace: "trace";
|
|
554
555
|
log: "log";
|
|
555
556
|
info: "info";
|
|
556
557
|
warn: "warn";
|
|
557
|
-
error: "error";
|
|
558
558
|
}>>;
|
|
559
559
|
kind: z.ZodLiteral<"lifecycle">;
|
|
560
560
|
stage: z.ZodEnum<{
|
|
@@ -592,12 +592,12 @@ export declare const LogEvent: z.ZodObject<{
|
|
|
592
592
|
emitter: z.ZodOptional<z.ZodString>;
|
|
593
593
|
kind: z.ZodLiteral<"log">;
|
|
594
594
|
level: z.ZodEnum<{
|
|
595
|
+
error: "error";
|
|
595
596
|
debug: "debug";
|
|
596
597
|
trace: "trace";
|
|
597
598
|
log: "log";
|
|
598
599
|
info: "info";
|
|
599
600
|
warn: "warn";
|
|
600
|
-
error: "error";
|
|
601
601
|
}>;
|
|
602
602
|
message: z.ZodString;
|
|
603
603
|
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -608,12 +608,12 @@ export declare const ImageArtifact: z.ZodObject<{
|
|
|
608
608
|
source: z.ZodDefault<z.ZodString>;
|
|
609
609
|
emitter: z.ZodOptional<z.ZodString>;
|
|
610
610
|
level: z.ZodDefault<z.ZodEnum<{
|
|
611
|
+
error: "error";
|
|
611
612
|
debug: "debug";
|
|
612
613
|
trace: "trace";
|
|
613
614
|
log: "log";
|
|
614
615
|
info: "info";
|
|
615
616
|
warn: "warn";
|
|
616
|
-
error: "error";
|
|
617
617
|
}>>;
|
|
618
618
|
kind: z.ZodLiteral<"artifact">;
|
|
619
619
|
artifactType: z.ZodLiteral<"image">;
|
|
@@ -626,12 +626,12 @@ export declare const VideoArtifact: z.ZodObject<{
|
|
|
626
626
|
source: z.ZodDefault<z.ZodString>;
|
|
627
627
|
emitter: z.ZodOptional<z.ZodString>;
|
|
628
628
|
level: z.ZodDefault<z.ZodEnum<{
|
|
629
|
+
error: "error";
|
|
629
630
|
debug: "debug";
|
|
630
631
|
trace: "trace";
|
|
631
632
|
log: "log";
|
|
632
633
|
info: "info";
|
|
633
634
|
warn: "warn";
|
|
634
|
-
error: "error";
|
|
635
635
|
}>>;
|
|
636
636
|
kind: z.ZodLiteral<"artifact">;
|
|
637
637
|
artifactType: z.ZodLiteral<"video">;
|
|
@@ -647,12 +647,12 @@ export declare const VideoStartArtifact: z.ZodObject<{
|
|
|
647
647
|
source: z.ZodDefault<z.ZodString>;
|
|
648
648
|
emitter: z.ZodOptional<z.ZodString>;
|
|
649
649
|
level: z.ZodDefault<z.ZodEnum<{
|
|
650
|
+
error: "error";
|
|
650
651
|
debug: "debug";
|
|
651
652
|
trace: "trace";
|
|
652
653
|
log: "log";
|
|
653
654
|
info: "info";
|
|
654
655
|
warn: "warn";
|
|
655
|
-
error: "error";
|
|
656
656
|
}>>;
|
|
657
657
|
kind: z.ZodLiteral<"artifact">;
|
|
658
658
|
artifactType: z.ZodLiteral<"video-start">;
|
|
@@ -664,12 +664,12 @@ export declare const HtmlArtifact: z.ZodObject<{
|
|
|
664
664
|
source: z.ZodDefault<z.ZodString>;
|
|
665
665
|
emitter: z.ZodOptional<z.ZodString>;
|
|
666
666
|
level: z.ZodDefault<z.ZodEnum<{
|
|
667
|
+
error: "error";
|
|
667
668
|
debug: "debug";
|
|
668
669
|
trace: "trace";
|
|
669
670
|
log: "log";
|
|
670
671
|
info: "info";
|
|
671
672
|
warn: "warn";
|
|
672
|
-
error: "error";
|
|
673
673
|
}>>;
|
|
674
674
|
kind: z.ZodLiteral<"artifact">;
|
|
675
675
|
artifactType: z.ZodLiteral<"html">;
|
|
@@ -682,12 +682,12 @@ export declare const SpeechArtifact: z.ZodObject<{
|
|
|
682
682
|
source: z.ZodDefault<z.ZodString>;
|
|
683
683
|
emitter: z.ZodOptional<z.ZodString>;
|
|
684
684
|
level: z.ZodDefault<z.ZodEnum<{
|
|
685
|
+
error: "error";
|
|
685
686
|
debug: "debug";
|
|
686
687
|
trace: "trace";
|
|
687
688
|
log: "log";
|
|
688
689
|
info: "info";
|
|
689
690
|
warn: "warn";
|
|
690
|
-
error: "error";
|
|
691
691
|
}>>;
|
|
692
692
|
kind: z.ZodLiteral<"artifact">;
|
|
693
693
|
artifactType: z.ZodLiteral<"speech">;
|
|
@@ -702,12 +702,12 @@ export declare const JsonArtifact: z.ZodObject<{
|
|
|
702
702
|
source: z.ZodDefault<z.ZodString>;
|
|
703
703
|
emitter: z.ZodOptional<z.ZodString>;
|
|
704
704
|
level: z.ZodDefault<z.ZodEnum<{
|
|
705
|
+
error: "error";
|
|
705
706
|
debug: "debug";
|
|
706
707
|
trace: "trace";
|
|
707
708
|
log: "log";
|
|
708
709
|
info: "info";
|
|
709
710
|
warn: "warn";
|
|
710
|
-
error: "error";
|
|
711
711
|
}>>;
|
|
712
712
|
kind: z.ZodLiteral<"artifact">;
|
|
713
713
|
artifactType: z.ZodLiteral<"json">;
|
|
@@ -719,12 +719,12 @@ export declare const MermaidArtifact: z.ZodObject<{
|
|
|
719
719
|
timestamp: z.ZodNumber;
|
|
720
720
|
emitter: z.ZodOptional<z.ZodString>;
|
|
721
721
|
level: z.ZodDefault<z.ZodEnum<{
|
|
722
|
+
error: "error";
|
|
722
723
|
debug: "debug";
|
|
723
724
|
trace: "trace";
|
|
724
725
|
log: "log";
|
|
725
726
|
info: "info";
|
|
726
727
|
warn: "warn";
|
|
727
|
-
error: "error";
|
|
728
728
|
}>>;
|
|
729
729
|
kind: z.ZodLiteral<"artifact">;
|
|
730
730
|
artifactType: z.ZodLiteral<"mermaid">;
|
|
@@ -737,12 +737,12 @@ export declare const HttpTraceArtifact: z.ZodObject<{
|
|
|
737
737
|
source: z.ZodDefault<z.ZodString>;
|
|
738
738
|
emitter: z.ZodOptional<z.ZodString>;
|
|
739
739
|
level: z.ZodDefault<z.ZodEnum<{
|
|
740
|
+
error: "error";
|
|
740
741
|
debug: "debug";
|
|
741
742
|
trace: "trace";
|
|
742
743
|
log: "log";
|
|
743
744
|
info: "info";
|
|
744
745
|
warn: "warn";
|
|
745
|
-
error: "error";
|
|
746
746
|
}>>;
|
|
747
747
|
kind: z.ZodLiteral<"artifact">;
|
|
748
748
|
artifactType: z.ZodLiteral<"http-trace">;
|
|
@@ -776,12 +776,12 @@ export declare const ResolvedFeaturesArtifact: z.ZodObject<{
|
|
|
776
776
|
source: z.ZodDefault<z.ZodString>;
|
|
777
777
|
emitter: z.ZodOptional<z.ZodString>;
|
|
778
778
|
level: z.ZodDefault<z.ZodEnum<{
|
|
779
|
+
error: "error";
|
|
779
780
|
debug: "debug";
|
|
780
781
|
trace: "trace";
|
|
781
782
|
log: "log";
|
|
782
783
|
info: "info";
|
|
783
784
|
warn: "warn";
|
|
784
|
-
error: "error";
|
|
785
785
|
}>>;
|
|
786
786
|
kind: z.ZodLiteral<"artifact">;
|
|
787
787
|
artifactType: z.ZodLiteral<"resolvedFeatures">;
|
|
@@ -801,12 +801,12 @@ export declare const FileArtifact: z.ZodObject<{
|
|
|
801
801
|
source: z.ZodDefault<z.ZodString>;
|
|
802
802
|
emitter: z.ZodOptional<z.ZodString>;
|
|
803
803
|
level: z.ZodDefault<z.ZodEnum<{
|
|
804
|
+
error: "error";
|
|
804
805
|
debug: "debug";
|
|
805
806
|
trace: "trace";
|
|
806
807
|
log: "log";
|
|
807
808
|
info: "info";
|
|
808
809
|
warn: "warn";
|
|
809
|
-
error: "error";
|
|
810
810
|
}>>;
|
|
811
811
|
kind: z.ZodLiteral<"artifact">;
|
|
812
812
|
artifactType: z.ZodLiteral<"file">;
|
|
@@ -819,12 +819,12 @@ export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
819
819
|
source: z.ZodDefault<z.ZodString>;
|
|
820
820
|
emitter: z.ZodOptional<z.ZodString>;
|
|
821
821
|
level: z.ZodDefault<z.ZodEnum<{
|
|
822
|
+
error: "error";
|
|
822
823
|
debug: "debug";
|
|
823
824
|
trace: "trace";
|
|
824
825
|
log: "log";
|
|
825
826
|
info: "info";
|
|
826
827
|
warn: "warn";
|
|
827
|
-
error: "error";
|
|
828
828
|
}>>;
|
|
829
829
|
kind: z.ZodLiteral<"artifact">;
|
|
830
830
|
artifactType: z.ZodLiteral<"image">;
|
|
@@ -836,12 +836,12 @@ export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
836
836
|
source: z.ZodDefault<z.ZodString>;
|
|
837
837
|
emitter: z.ZodOptional<z.ZodString>;
|
|
838
838
|
level: z.ZodDefault<z.ZodEnum<{
|
|
839
|
+
error: "error";
|
|
839
840
|
debug: "debug";
|
|
840
841
|
trace: "trace";
|
|
841
842
|
log: "log";
|
|
842
843
|
info: "info";
|
|
843
844
|
warn: "warn";
|
|
844
|
-
error: "error";
|
|
845
845
|
}>>;
|
|
846
846
|
kind: z.ZodLiteral<"artifact">;
|
|
847
847
|
artifactType: z.ZodLiteral<"video">;
|
|
@@ -856,12 +856,12 @@ export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
856
856
|
source: z.ZodDefault<z.ZodString>;
|
|
857
857
|
emitter: z.ZodOptional<z.ZodString>;
|
|
858
858
|
level: z.ZodDefault<z.ZodEnum<{
|
|
859
|
+
error: "error";
|
|
859
860
|
debug: "debug";
|
|
860
861
|
trace: "trace";
|
|
861
862
|
log: "log";
|
|
862
863
|
info: "info";
|
|
863
864
|
warn: "warn";
|
|
864
|
-
error: "error";
|
|
865
865
|
}>>;
|
|
866
866
|
kind: z.ZodLiteral<"artifact">;
|
|
867
867
|
artifactType: z.ZodLiteral<"video-start">;
|
|
@@ -872,12 +872,12 @@ export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
872
872
|
source: z.ZodDefault<z.ZodString>;
|
|
873
873
|
emitter: z.ZodOptional<z.ZodString>;
|
|
874
874
|
level: z.ZodDefault<z.ZodEnum<{
|
|
875
|
+
error: "error";
|
|
875
876
|
debug: "debug";
|
|
876
877
|
trace: "trace";
|
|
877
878
|
log: "log";
|
|
878
879
|
info: "info";
|
|
879
880
|
warn: "warn";
|
|
880
|
-
error: "error";
|
|
881
881
|
}>>;
|
|
882
882
|
kind: z.ZodLiteral<"artifact">;
|
|
883
883
|
artifactType: z.ZodLiteral<"html">;
|
|
@@ -889,12 +889,12 @@ export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
889
889
|
source: z.ZodDefault<z.ZodString>;
|
|
890
890
|
emitter: z.ZodOptional<z.ZodString>;
|
|
891
891
|
level: z.ZodDefault<z.ZodEnum<{
|
|
892
|
+
error: "error";
|
|
892
893
|
debug: "debug";
|
|
893
894
|
trace: "trace";
|
|
894
895
|
log: "log";
|
|
895
896
|
info: "info";
|
|
896
897
|
warn: "warn";
|
|
897
|
-
error: "error";
|
|
898
898
|
}>>;
|
|
899
899
|
kind: z.ZodLiteral<"artifact">;
|
|
900
900
|
artifactType: z.ZodLiteral<"speech">;
|
|
@@ -908,12 +908,12 @@ export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
908
908
|
source: z.ZodDefault<z.ZodString>;
|
|
909
909
|
emitter: z.ZodOptional<z.ZodString>;
|
|
910
910
|
level: z.ZodDefault<z.ZodEnum<{
|
|
911
|
+
error: "error";
|
|
911
912
|
debug: "debug";
|
|
912
913
|
trace: "trace";
|
|
913
914
|
log: "log";
|
|
914
915
|
info: "info";
|
|
915
916
|
warn: "warn";
|
|
916
|
-
error: "error";
|
|
917
917
|
}>>;
|
|
918
918
|
kind: z.ZodLiteral<"artifact">;
|
|
919
919
|
artifactType: z.ZodLiteral<"json">;
|
|
@@ -924,12 +924,12 @@ export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
924
924
|
timestamp: z.ZodNumber;
|
|
925
925
|
emitter: z.ZodOptional<z.ZodString>;
|
|
926
926
|
level: z.ZodDefault<z.ZodEnum<{
|
|
927
|
+
error: "error";
|
|
927
928
|
debug: "debug";
|
|
928
929
|
trace: "trace";
|
|
929
930
|
log: "log";
|
|
930
931
|
info: "info";
|
|
931
932
|
warn: "warn";
|
|
932
|
-
error: "error";
|
|
933
933
|
}>>;
|
|
934
934
|
kind: z.ZodLiteral<"artifact">;
|
|
935
935
|
artifactType: z.ZodLiteral<"mermaid">;
|
|
@@ -941,12 +941,12 @@ export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
941
941
|
source: z.ZodDefault<z.ZodString>;
|
|
942
942
|
emitter: z.ZodOptional<z.ZodString>;
|
|
943
943
|
level: z.ZodDefault<z.ZodEnum<{
|
|
944
|
+
error: "error";
|
|
944
945
|
debug: "debug";
|
|
945
946
|
trace: "trace";
|
|
946
947
|
log: "log";
|
|
947
948
|
info: "info";
|
|
948
949
|
warn: "warn";
|
|
949
|
-
error: "error";
|
|
950
950
|
}>>;
|
|
951
951
|
kind: z.ZodLiteral<"artifact">;
|
|
952
952
|
artifactType: z.ZodLiteral<"http-trace">;
|
|
@@ -972,12 +972,12 @@ export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
972
972
|
source: z.ZodDefault<z.ZodString>;
|
|
973
973
|
emitter: z.ZodOptional<z.ZodString>;
|
|
974
974
|
level: z.ZodDefault<z.ZodEnum<{
|
|
975
|
+
error: "error";
|
|
975
976
|
debug: "debug";
|
|
976
977
|
trace: "trace";
|
|
977
978
|
log: "log";
|
|
978
979
|
info: "info";
|
|
979
980
|
warn: "warn";
|
|
980
|
-
error: "error";
|
|
981
981
|
}>>;
|
|
982
982
|
kind: z.ZodLiteral<"artifact">;
|
|
983
983
|
artifactType: z.ZodLiteral<"resolvedFeatures">;
|
|
@@ -996,12 +996,12 @@ export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
996
996
|
source: z.ZodDefault<z.ZodString>;
|
|
997
997
|
emitter: z.ZodOptional<z.ZodString>;
|
|
998
998
|
level: z.ZodDefault<z.ZodEnum<{
|
|
999
|
+
error: "error";
|
|
999
1000
|
debug: "debug";
|
|
1000
1001
|
trace: "trace";
|
|
1001
1002
|
log: "log";
|
|
1002
1003
|
info: "info";
|
|
1003
1004
|
warn: "warn";
|
|
1004
|
-
error: "error";
|
|
1005
1005
|
}>>;
|
|
1006
1006
|
kind: z.ZodLiteral<"artifact">;
|
|
1007
1007
|
artifactType: z.ZodLiteral<"file">;
|
|
@@ -1014,12 +1014,12 @@ export declare const ControlEvent: z.ZodObject<{
|
|
|
1014
1014
|
source: z.ZodDefault<z.ZodString>;
|
|
1015
1015
|
emitter: z.ZodOptional<z.ZodString>;
|
|
1016
1016
|
level: z.ZodDefault<z.ZodEnum<{
|
|
1017
|
+
error: "error";
|
|
1017
1018
|
debug: "debug";
|
|
1018
1019
|
trace: "trace";
|
|
1019
1020
|
log: "log";
|
|
1020
1021
|
info: "info";
|
|
1021
1022
|
warn: "warn";
|
|
1022
|
-
error: "error";
|
|
1023
1023
|
}>>;
|
|
1024
1024
|
kind: z.ZodLiteral<"control">;
|
|
1025
1025
|
signal: z.ZodEnum<{
|
|
@@ -1041,12 +1041,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
|
|
|
1041
1041
|
source: z.ZodDefault<z.ZodString>;
|
|
1042
1042
|
emitter: z.ZodOptional<z.ZodString>;
|
|
1043
1043
|
level: z.ZodDefault<z.ZodEnum<{
|
|
1044
|
+
error: "error";
|
|
1044
1045
|
debug: "debug";
|
|
1045
1046
|
trace: "trace";
|
|
1046
1047
|
log: "log";
|
|
1047
1048
|
info: "info";
|
|
1048
1049
|
warn: "warn";
|
|
1049
|
-
error: "error";
|
|
1050
1050
|
}>>;
|
|
1051
1051
|
kind: z.ZodLiteral<"lifecycle">;
|
|
1052
1052
|
stage: z.ZodEnum<{
|
|
@@ -1074,12 +1074,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
|
|
|
1074
1074
|
source: z.ZodDefault<z.ZodString>;
|
|
1075
1075
|
emitter: z.ZodOptional<z.ZodString>;
|
|
1076
1076
|
level: z.ZodDefault<z.ZodEnum<{
|
|
1077
|
+
error: "error";
|
|
1077
1078
|
debug: "debug";
|
|
1078
1079
|
trace: "trace";
|
|
1079
1080
|
log: "log";
|
|
1080
1081
|
info: "info";
|
|
1081
1082
|
warn: "warn";
|
|
1082
|
-
error: "error";
|
|
1083
1083
|
}>>;
|
|
1084
1084
|
kind: z.ZodLiteral<"lifecycle">;
|
|
1085
1085
|
stage: z.ZodEnum<{
|
|
@@ -1108,12 +1108,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
|
|
|
1108
1108
|
source: z.ZodDefault<z.ZodString>;
|
|
1109
1109
|
emitter: z.ZodOptional<z.ZodString>;
|
|
1110
1110
|
level: z.ZodDefault<z.ZodEnum<{
|
|
1111
|
+
error: "error";
|
|
1111
1112
|
debug: "debug";
|
|
1112
1113
|
trace: "trace";
|
|
1113
1114
|
log: "log";
|
|
1114
1115
|
info: "info";
|
|
1115
1116
|
warn: "warn";
|
|
1116
|
-
error: "error";
|
|
1117
1117
|
}>>;
|
|
1118
1118
|
kind: z.ZodLiteral<"lifecycle">;
|
|
1119
1119
|
stage: z.ZodEnum<{
|
|
@@ -1148,12 +1148,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
|
|
|
1148
1148
|
source: z.ZodDefault<z.ZodString>;
|
|
1149
1149
|
emitter: z.ZodOptional<z.ZodString>;
|
|
1150
1150
|
level: z.ZodDefault<z.ZodEnum<{
|
|
1151
|
+
error: "error";
|
|
1151
1152
|
debug: "debug";
|
|
1152
1153
|
trace: "trace";
|
|
1153
1154
|
log: "log";
|
|
1154
1155
|
info: "info";
|
|
1155
1156
|
warn: "warn";
|
|
1156
|
-
error: "error";
|
|
1157
1157
|
}>>;
|
|
1158
1158
|
kind: z.ZodLiteral<"lifecycle">;
|
|
1159
1159
|
stage: z.ZodEnum<{
|
|
@@ -1190,12 +1190,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
|
|
|
1190
1190
|
emitter: z.ZodOptional<z.ZodString>;
|
|
1191
1191
|
kind: z.ZodLiteral<"log">;
|
|
1192
1192
|
level: z.ZodEnum<{
|
|
1193
|
+
error: "error";
|
|
1193
1194
|
debug: "debug";
|
|
1194
1195
|
trace: "trace";
|
|
1195
1196
|
log: "log";
|
|
1196
1197
|
info: "info";
|
|
1197
1198
|
warn: "warn";
|
|
1198
|
-
error: "error";
|
|
1199
1199
|
}>;
|
|
1200
1200
|
message: z.ZodString;
|
|
1201
1201
|
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1205,12 +1205,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
|
|
|
1205
1205
|
source: z.ZodDefault<z.ZodString>;
|
|
1206
1206
|
emitter: z.ZodOptional<z.ZodString>;
|
|
1207
1207
|
level: z.ZodDefault<z.ZodEnum<{
|
|
1208
|
+
error: "error";
|
|
1208
1209
|
debug: "debug";
|
|
1209
1210
|
trace: "trace";
|
|
1210
1211
|
log: "log";
|
|
1211
1212
|
info: "info";
|
|
1212
1213
|
warn: "warn";
|
|
1213
|
-
error: "error";
|
|
1214
1214
|
}>>;
|
|
1215
1215
|
kind: z.ZodLiteral<"artifact">;
|
|
1216
1216
|
artifactType: z.ZodLiteral<"image">;
|
|
@@ -1222,12 +1222,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
|
|
|
1222
1222
|
source: z.ZodDefault<z.ZodString>;
|
|
1223
1223
|
emitter: z.ZodOptional<z.ZodString>;
|
|
1224
1224
|
level: z.ZodDefault<z.ZodEnum<{
|
|
1225
|
+
error: "error";
|
|
1225
1226
|
debug: "debug";
|
|
1226
1227
|
trace: "trace";
|
|
1227
1228
|
log: "log";
|
|
1228
1229
|
info: "info";
|
|
1229
1230
|
warn: "warn";
|
|
1230
|
-
error: "error";
|
|
1231
1231
|
}>>;
|
|
1232
1232
|
kind: z.ZodLiteral<"artifact">;
|
|
1233
1233
|
artifactType: z.ZodLiteral<"video">;
|
|
@@ -1242,12 +1242,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
|
|
|
1242
1242
|
source: z.ZodDefault<z.ZodString>;
|
|
1243
1243
|
emitter: z.ZodOptional<z.ZodString>;
|
|
1244
1244
|
level: z.ZodDefault<z.ZodEnum<{
|
|
1245
|
+
error: "error";
|
|
1245
1246
|
debug: "debug";
|
|
1246
1247
|
trace: "trace";
|
|
1247
1248
|
log: "log";
|
|
1248
1249
|
info: "info";
|
|
1249
1250
|
warn: "warn";
|
|
1250
|
-
error: "error";
|
|
1251
1251
|
}>>;
|
|
1252
1252
|
kind: z.ZodLiteral<"artifact">;
|
|
1253
1253
|
artifactType: z.ZodLiteral<"video-start">;
|
|
@@ -1258,12 +1258,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
|
|
|
1258
1258
|
source: z.ZodDefault<z.ZodString>;
|
|
1259
1259
|
emitter: z.ZodOptional<z.ZodString>;
|
|
1260
1260
|
level: z.ZodDefault<z.ZodEnum<{
|
|
1261
|
+
error: "error";
|
|
1261
1262
|
debug: "debug";
|
|
1262
1263
|
trace: "trace";
|
|
1263
1264
|
log: "log";
|
|
1264
1265
|
info: "info";
|
|
1265
1266
|
warn: "warn";
|
|
1266
|
-
error: "error";
|
|
1267
1267
|
}>>;
|
|
1268
1268
|
kind: z.ZodLiteral<"artifact">;
|
|
1269
1269
|
artifactType: z.ZodLiteral<"html">;
|
|
@@ -1275,12 +1275,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
|
|
|
1275
1275
|
source: z.ZodDefault<z.ZodString>;
|
|
1276
1276
|
emitter: z.ZodOptional<z.ZodString>;
|
|
1277
1277
|
level: z.ZodDefault<z.ZodEnum<{
|
|
1278
|
+
error: "error";
|
|
1278
1279
|
debug: "debug";
|
|
1279
1280
|
trace: "trace";
|
|
1280
1281
|
log: "log";
|
|
1281
1282
|
info: "info";
|
|
1282
1283
|
warn: "warn";
|
|
1283
|
-
error: "error";
|
|
1284
1284
|
}>>;
|
|
1285
1285
|
kind: z.ZodLiteral<"artifact">;
|
|
1286
1286
|
artifactType: z.ZodLiteral<"speech">;
|
|
@@ -1294,12 +1294,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
|
|
|
1294
1294
|
source: z.ZodDefault<z.ZodString>;
|
|
1295
1295
|
emitter: z.ZodOptional<z.ZodString>;
|
|
1296
1296
|
level: z.ZodDefault<z.ZodEnum<{
|
|
1297
|
+
error: "error";
|
|
1297
1298
|
debug: "debug";
|
|
1298
1299
|
trace: "trace";
|
|
1299
1300
|
log: "log";
|
|
1300
1301
|
info: "info";
|
|
1301
1302
|
warn: "warn";
|
|
1302
|
-
error: "error";
|
|
1303
1303
|
}>>;
|
|
1304
1304
|
kind: z.ZodLiteral<"artifact">;
|
|
1305
1305
|
artifactType: z.ZodLiteral<"json">;
|
|
@@ -1310,12 +1310,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
|
|
|
1310
1310
|
timestamp: z.ZodNumber;
|
|
1311
1311
|
emitter: z.ZodOptional<z.ZodString>;
|
|
1312
1312
|
level: z.ZodDefault<z.ZodEnum<{
|
|
1313
|
+
error: "error";
|
|
1313
1314
|
debug: "debug";
|
|
1314
1315
|
trace: "trace";
|
|
1315
1316
|
log: "log";
|
|
1316
1317
|
info: "info";
|
|
1317
1318
|
warn: "warn";
|
|
1318
|
-
error: "error";
|
|
1319
1319
|
}>>;
|
|
1320
1320
|
kind: z.ZodLiteral<"artifact">;
|
|
1321
1321
|
artifactType: z.ZodLiteral<"mermaid">;
|
|
@@ -1327,12 +1327,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
|
|
|
1327
1327
|
source: z.ZodDefault<z.ZodString>;
|
|
1328
1328
|
emitter: z.ZodOptional<z.ZodString>;
|
|
1329
1329
|
level: z.ZodDefault<z.ZodEnum<{
|
|
1330
|
+
error: "error";
|
|
1330
1331
|
debug: "debug";
|
|
1331
1332
|
trace: "trace";
|
|
1332
1333
|
log: "log";
|
|
1333
1334
|
info: "info";
|
|
1334
1335
|
warn: "warn";
|
|
1335
|
-
error: "error";
|
|
1336
1336
|
}>>;
|
|
1337
1337
|
kind: z.ZodLiteral<"artifact">;
|
|
1338
1338
|
artifactType: z.ZodLiteral<"http-trace">;
|
|
@@ -1358,12 +1358,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
|
|
|
1358
1358
|
source: z.ZodDefault<z.ZodString>;
|
|
1359
1359
|
emitter: z.ZodOptional<z.ZodString>;
|
|
1360
1360
|
level: z.ZodDefault<z.ZodEnum<{
|
|
1361
|
+
error: "error";
|
|
1361
1362
|
debug: "debug";
|
|
1362
1363
|
trace: "trace";
|
|
1363
1364
|
log: "log";
|
|
1364
1365
|
info: "info";
|
|
1365
1366
|
warn: "warn";
|
|
1366
|
-
error: "error";
|
|
1367
1367
|
}>>;
|
|
1368
1368
|
kind: z.ZodLiteral<"artifact">;
|
|
1369
1369
|
artifactType: z.ZodLiteral<"resolvedFeatures">;
|
|
@@ -1382,12 +1382,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
|
|
|
1382
1382
|
source: z.ZodDefault<z.ZodString>;
|
|
1383
1383
|
emitter: z.ZodOptional<z.ZodString>;
|
|
1384
1384
|
level: z.ZodDefault<z.ZodEnum<{
|
|
1385
|
+
error: "error";
|
|
1385
1386
|
debug: "debug";
|
|
1386
1387
|
trace: "trace";
|
|
1387
1388
|
log: "log";
|
|
1388
1389
|
info: "info";
|
|
1389
1390
|
warn: "warn";
|
|
1390
|
-
error: "error";
|
|
1391
1391
|
}>>;
|
|
1392
1392
|
kind: z.ZodLiteral<"artifact">;
|
|
1393
1393
|
artifactType: z.ZodLiteral<"file">;
|
|
@@ -1399,12 +1399,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
|
|
|
1399
1399
|
source: z.ZodDefault<z.ZodString>;
|
|
1400
1400
|
emitter: z.ZodOptional<z.ZodString>;
|
|
1401
1401
|
level: z.ZodDefault<z.ZodEnum<{
|
|
1402
|
+
error: "error";
|
|
1402
1403
|
debug: "debug";
|
|
1403
1404
|
trace: "trace";
|
|
1404
1405
|
log: "log";
|
|
1405
1406
|
info: "info";
|
|
1406
1407
|
warn: "warn";
|
|
1407
|
-
error: "error";
|
|
1408
1408
|
}>>;
|
|
1409
1409
|
kind: z.ZodLiteral<"control">;
|
|
1410
1410
|
signal: z.ZodEnum<{
|
|
@@ -50,7 +50,7 @@ export declare class ActivitiesStepper extends AStepper implements IHasCycles {
|
|
|
50
50
|
readonly precludes: ["ActivitiesStepper.waypointLabel"];
|
|
51
51
|
readonly action: ({ proof }: {
|
|
52
52
|
proof: TFeatureStep[];
|
|
53
|
-
}, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").
|
|
53
|
+
}, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult>;
|
|
54
54
|
};
|
|
55
55
|
readonly waypointLabel: {
|
|
56
56
|
readonly gwta: "waypoint {outcome}";
|
|
@@ -62,7 +62,7 @@ export declare class ActivitiesStepper extends AStepper implements IHasCycles {
|
|
|
62
62
|
readonly unique: true;
|
|
63
63
|
readonly action: ({ outcome }: {
|
|
64
64
|
outcome: TFeatureStep[];
|
|
65
|
-
}, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").
|
|
65
|
+
}, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult>;
|
|
66
66
|
};
|
|
67
67
|
readonly showWaypoints: {
|
|
68
68
|
readonly exact: "show waypoints";
|
|
@@ -80,7 +80,7 @@ export declare class ActivitiesStepper extends AStepper implements IHasCycles {
|
|
|
80
80
|
readonly precludes: ["ActivitiesStepper.waypointLabel"];
|
|
81
81
|
readonly action: ({ proof }: {
|
|
82
82
|
proof: TFeatureStep[];
|
|
83
|
-
}, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").
|
|
83
|
+
}, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult>;
|
|
84
84
|
};
|
|
85
85
|
readonly waypointLabel: {
|
|
86
86
|
readonly gwta: "waypoint {outcome}";
|
|
@@ -92,7 +92,7 @@ export declare class ActivitiesStepper extends AStepper implements IHasCycles {
|
|
|
92
92
|
readonly unique: true;
|
|
93
93
|
readonly action: ({ outcome }: {
|
|
94
94
|
outcome: TFeatureStep[];
|
|
95
|
-
}, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").
|
|
95
|
+
}, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult>;
|
|
96
96
|
};
|
|
97
97
|
readonly showWaypoints: {
|
|
98
98
|
readonly exact: "show waypoints";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AStepper, IHasCycles, TStepperSteps } from '../lib/astepper.js';
|
|
2
|
+
import { IStepperCycles, TWorld } from '../lib/defs.js';
|
|
3
|
+
import { FlowRunner } from '../lib/core/flow-runner.js';
|
|
4
|
+
export default class FinalizerStepper extends AStepper implements IHasCycles {
|
|
5
|
+
description: string;
|
|
6
|
+
flowRunner: FlowRunner;
|
|
7
|
+
registeredStatements: string[];
|
|
8
|
+
cycles: IStepperCycles;
|
|
9
|
+
setWorld(world: TWorld, steppers: AStepper[]): Promise<void>;
|
|
10
|
+
steps: TStepperSteps;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=finalizer-stepper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finalizer-stepper.d.ts","sourceRoot":"","sources":["../../src/steps/finalizer-stepper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,cAAc,EAAgB,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAKxD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,QAAS,YAAW,UAAU;IAC3E,WAAW,SAA8D;IAEzE,UAAU,EAAE,UAAU,CAAC;IACvB,oBAAoB,EAAE,MAAM,EAAE,CAAM;IACpC,MAAM,EAAE,cAAc,CAsBpB;IAEI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE;IAKlD,KAAK,EAAE,aAAa,CAYlB;CACF"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { AStepper } from '../lib/astepper.js';
|
|
2
|
+
import { FlowRunner } from '../lib/core/flow-runner.js';
|
|
3
|
+
import { OK } from '../schema/protocol.js';
|
|
4
|
+
import { DOMAIN_STATEMENT } from '../lib/domain-types.js';
|
|
5
|
+
import { actionNotOK } from '../lib/util/index.js';
|
|
6
|
+
export default class FinalizerStepper extends AStepper {
|
|
7
|
+
description = 'Runs registered finalizer statements at end of execution';
|
|
8
|
+
flowRunner;
|
|
9
|
+
registeredStatements = [];
|
|
10
|
+
cycles = {
|
|
11
|
+
startExecution: () => {
|
|
12
|
+
this.registeredStatements = [];
|
|
13
|
+
},
|
|
14
|
+
endExecution: async () => {
|
|
15
|
+
if (this.registeredStatements.length === 0) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
for (const [index, statement] of this.registeredStatements.entries()) {
|
|
19
|
+
const result = await this.flowRunner.runStatement(statement, {
|
|
20
|
+
seqPath: [998, index + 1],
|
|
21
|
+
intent: { mode: 'authoritative' },
|
|
22
|
+
});
|
|
23
|
+
if (result.kind !== 'ok') {
|
|
24
|
+
this.getWorld().eventLogger.warn(`finalizer-stepper: statement failed: ${statement} :: ${result.message || 'unknown error'}`);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
async setWorld(world, steppers) {
|
|
30
|
+
await super.setWorld(world, steppers);
|
|
31
|
+
this.flowRunner = new FlowRunner(world, steppers);
|
|
32
|
+
}
|
|
33
|
+
steps = {
|
|
34
|
+
registerFinalizer: {
|
|
35
|
+
gwta: `finalizer {statement:${DOMAIN_STATEMENT}}`,
|
|
36
|
+
action: (_, featureStep) => {
|
|
37
|
+
const statement = featureStep.action?.stepValuesMap?.statement?.term?.trim();
|
|
38
|
+
if (!statement) {
|
|
39
|
+
return actionNotOK('finalizer statement is required');
|
|
40
|
+
}
|
|
41
|
+
this.registeredStatements.push(statement);
|
|
42
|
+
return OK;
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=finalizer-stepper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finalizer-stepper.js","sourceRoot":"","sources":["../../src/steps/finalizer-stepper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA6B,MAAM,oBAAoB,CAAC;AAEzE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,EAAE,EAAE,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,QAAQ;IACrD,WAAW,GAAG,0DAA0D,CAAC;IAEzE,UAAU,CAAa;IACvB,oBAAoB,GAAa,EAAE,CAAC;IACpC,MAAM,GAAmB;QACxB,cAAc,EAAE,GAAG,EAAE;YACpB,IAAI,CAAC,oBAAoB,GAAG,EAAE,CAAC;QAChC,CAAC;QACD,YAAY,EAAE,KAAK,IAAI,EAAE;YACxB,IAAI,IAAI,CAAC,oBAAoB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC5C,OAAO;YACR,CAAC;YAED,KAAK,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,IAAI,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAAE,EAAE,CAAC;gBACtE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,SAAS,EAAE;oBAC5D,OAAO,EAAE,CAAC,GAAG,EAAE,KAAK,GAAG,CAAC,CAAC;oBACzB,MAAM,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE;iBACjC,CAAC,CAAC;gBAEH,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;oBAC1B,IAAI,CAAC,QAAQ,EAAE,CAAC,WAAW,CAAC,IAAI,CAC/B,wCAAwC,SAAS,OAAO,MAAM,CAAC,OAAO,IAAI,eAAe,EAAE,CAC3F,CAAC;gBACH,CAAC;YACF,CAAC;QACF,CAAC;KACD,CAAC;IAEF,KAAK,CAAC,QAAQ,CAAC,KAAa,EAAE,QAAoB;QACjD,MAAM,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,IAAI,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IACnD,CAAC;IAED,KAAK,GAAkB;QACtB,iBAAiB,EAAE;YAClB,IAAI,EAAE,wBAAwB,gBAAgB,GAAG;YACjD,MAAM,EAAE,CAAC,CAAU,EAAE,WAAyB,EAAE,EAAE;gBACjD,MAAM,SAAS,GAAG,WAAW,CAAC,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;gBAC7E,IAAI,CAAC,SAAS,EAAE,CAAC;oBAChB,OAAO,WAAW,CAAC,iCAAiC,CAAC,CAAC;gBACvD,CAAC;gBACD,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBAC1C,OAAO,EAAE,CAAC;YACX,CAAC;SACD;KACD,CAAC;CACF"}
|
package/build/steps/haibun.d.ts
CHANGED
|
@@ -19,14 +19,14 @@ declare class Haibun extends AStepper implements IHasCycles {
|
|
|
19
19
|
gwta: string;
|
|
20
20
|
action: ({ statements }: {
|
|
21
21
|
statements: TFeatureStep[];
|
|
22
|
-
}, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").
|
|
22
|
+
}, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult>;
|
|
23
23
|
};
|
|
24
24
|
backgrounds: {
|
|
25
25
|
gwta: string;
|
|
26
26
|
resolveFeatureLine: (line: string, _path: string, _stepper: AStepper, backgrounds: TFeatures) => false;
|
|
27
27
|
action: ({ names }: {
|
|
28
28
|
names: string;
|
|
29
|
-
}, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").
|
|
29
|
+
}, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult>;
|
|
30
30
|
};
|
|
31
31
|
nothing: {
|
|
32
32
|
exact: string;
|
|
@@ -61,7 +61,7 @@ declare class Haibun extends AStepper implements IHasCycles {
|
|
|
61
61
|
gwta: string;
|
|
62
62
|
action: ({ result }: {
|
|
63
63
|
result: string;
|
|
64
|
-
}) => import("../schema/protocol.js").
|
|
64
|
+
}) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
65
65
|
};
|
|
66
66
|
showSteppers: {
|
|
67
67
|
exact: string;
|
|
@@ -109,7 +109,7 @@ declare class Haibun extends AStepper implements IHasCycles {
|
|
|
109
109
|
action: ({ statement }: {
|
|
110
110
|
stepperName: string;
|
|
111
111
|
statement: TFeatureStep[];
|
|
112
|
-
}, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
112
|
+
}, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
113
113
|
};
|
|
114
114
|
};
|
|
115
115
|
}
|
|
@@ -40,20 +40,20 @@ declare class Narrator extends AStepper implements IHasOptions, IHasCycles {
|
|
|
40
40
|
prose: {
|
|
41
41
|
precludes: string[];
|
|
42
42
|
match: RegExp;
|
|
43
|
-
action: (_args: TStepArgs, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").
|
|
43
|
+
action: (_args: TStepArgs, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult>;
|
|
44
44
|
};
|
|
45
45
|
feature: {
|
|
46
46
|
precludes: string[];
|
|
47
47
|
gwta: string;
|
|
48
|
-
action: ({ feature }: TStepArgs, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").
|
|
48
|
+
action: ({ feature }: TStepArgs, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult>;
|
|
49
49
|
};
|
|
50
50
|
scenario: {
|
|
51
51
|
precludes: string[];
|
|
52
52
|
gwta: string;
|
|
53
|
-
action: ({ scenario }: TStepArgs, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").
|
|
53
|
+
action: ({ scenario }: TStepArgs, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult>;
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
-
maybeSay(featureStep: TFeatureStep): Promise<import("../schema/protocol.js").
|
|
56
|
+
maybeSay(featureStep: TFeatureStep): Promise<import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult>;
|
|
57
57
|
}
|
|
58
58
|
export default Narrator;
|
|
59
59
|
//# sourceMappingURL=narrator.d.ts.map
|
|
@@ -13,7 +13,7 @@ declare class VariablesStepper extends AStepper implements IHasCycles {
|
|
|
13
13
|
action: ({ domain, superdomains }: {
|
|
14
14
|
domain: string;
|
|
15
15
|
superdomains: TFeatureStep[];
|
|
16
|
-
}, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
16
|
+
}, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
17
17
|
};
|
|
18
18
|
defineOrderedSet: {
|
|
19
19
|
precludes: string[];
|
|
@@ -22,7 +22,7 @@ declare class VariablesStepper extends AStepper implements IHasCycles {
|
|
|
22
22
|
action: ({ domain, values }: {
|
|
23
23
|
domain: string;
|
|
24
24
|
values: TFeatureStep[];
|
|
25
|
-
}, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
25
|
+
}, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
26
26
|
};
|
|
27
27
|
defineValuesSet: {
|
|
28
28
|
gwta: string;
|
|
@@ -30,7 +30,7 @@ declare class VariablesStepper extends AStepper implements IHasCycles {
|
|
|
30
30
|
action: ({ domain, values }: {
|
|
31
31
|
domain: string;
|
|
32
32
|
values: TFeatureStep[];
|
|
33
|
-
}, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
33
|
+
}, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
34
34
|
};
|
|
35
35
|
statementSetValues: {
|
|
36
36
|
expose: false;
|
|
@@ -53,7 +53,7 @@ declare class VariablesStepper extends AStepper implements IHasCycles {
|
|
|
53
53
|
increment: {
|
|
54
54
|
gwta: string;
|
|
55
55
|
handlesUndefined: string[];
|
|
56
|
-
action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
56
|
+
action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
57
57
|
};
|
|
58
58
|
showEnv: {
|
|
59
59
|
gwta: string;
|
|
@@ -94,7 +94,7 @@ declare class VariablesStepper extends AStepper implements IHasCycles {
|
|
|
94
94
|
is: {
|
|
95
95
|
gwta: string;
|
|
96
96
|
handlesUndefined: string[];
|
|
97
|
-
action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
97
|
+
action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
98
98
|
};
|
|
99
99
|
isLessThan: {
|
|
100
100
|
gwta: string;
|
|
@@ -103,7 +103,7 @@ declare class VariablesStepper extends AStepper implements IHasCycles {
|
|
|
103
103
|
action: ({ what, value }: {
|
|
104
104
|
what: string;
|
|
105
105
|
value: string;
|
|
106
|
-
}, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
106
|
+
}, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
107
107
|
};
|
|
108
108
|
isMoreThan: {
|
|
109
109
|
gwta: string;
|
|
@@ -112,17 +112,17 @@ declare class VariablesStepper extends AStepper implements IHasCycles {
|
|
|
112
112
|
action: ({ what, value }: {
|
|
113
113
|
what: string;
|
|
114
114
|
value: string;
|
|
115
|
-
}, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
115
|
+
}, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
116
116
|
};
|
|
117
117
|
exists: {
|
|
118
118
|
gwta: string;
|
|
119
119
|
handlesUndefined: string[];
|
|
120
|
-
action: ({ what }: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
120
|
+
action: ({ what }: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
121
121
|
};
|
|
122
122
|
showVar: {
|
|
123
123
|
gwta: string;
|
|
124
124
|
handlesUndefined: string[];
|
|
125
|
-
action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
125
|
+
action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
126
126
|
};
|
|
127
127
|
showDomains: {
|
|
128
128
|
gwta: string;
|
|
@@ -131,19 +131,19 @@ declare class VariablesStepper extends AStepper implements IHasCycles {
|
|
|
131
131
|
showDomain: {
|
|
132
132
|
gwta: string;
|
|
133
133
|
handlesUndefined: string[];
|
|
134
|
-
action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
134
|
+
action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
135
135
|
};
|
|
136
136
|
isIn: {
|
|
137
137
|
match: RegExp;
|
|
138
138
|
fallback: true;
|
|
139
|
-
action: (_: unknown, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
139
|
+
action: (_: unknown, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
140
140
|
};
|
|
141
141
|
matches: {
|
|
142
142
|
gwta: string;
|
|
143
143
|
action: ({ value, pattern }: {
|
|
144
144
|
value: string;
|
|
145
145
|
pattern: string;
|
|
146
|
-
}, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
146
|
+
}, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
149
|
readonly typedSteps: {
|
|
@@ -153,7 +153,7 @@ declare class VariablesStepper extends AStepper implements IHasCycles {
|
|
|
153
153
|
action: ({ domain, superdomains }: {
|
|
154
154
|
domain: string;
|
|
155
155
|
superdomains: TFeatureStep[];
|
|
156
|
-
}, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
156
|
+
}, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
157
157
|
};
|
|
158
158
|
defineOrderedSet: {
|
|
159
159
|
precludes: string[];
|
|
@@ -162,7 +162,7 @@ declare class VariablesStepper extends AStepper implements IHasCycles {
|
|
|
162
162
|
action: ({ domain, values }: {
|
|
163
163
|
domain: string;
|
|
164
164
|
values: TFeatureStep[];
|
|
165
|
-
}, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
165
|
+
}, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
166
166
|
};
|
|
167
167
|
defineValuesSet: {
|
|
168
168
|
gwta: string;
|
|
@@ -170,7 +170,7 @@ declare class VariablesStepper extends AStepper implements IHasCycles {
|
|
|
170
170
|
action: ({ domain, values }: {
|
|
171
171
|
domain: string;
|
|
172
172
|
values: TFeatureStep[];
|
|
173
|
-
}, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
173
|
+
}, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
174
174
|
};
|
|
175
175
|
statementSetValues: {
|
|
176
176
|
expose: false;
|
|
@@ -193,7 +193,7 @@ declare class VariablesStepper extends AStepper implements IHasCycles {
|
|
|
193
193
|
increment: {
|
|
194
194
|
gwta: string;
|
|
195
195
|
handlesUndefined: string[];
|
|
196
|
-
action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
196
|
+
action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
197
197
|
};
|
|
198
198
|
showEnv: {
|
|
199
199
|
gwta: string;
|
|
@@ -234,7 +234,7 @@ declare class VariablesStepper extends AStepper implements IHasCycles {
|
|
|
234
234
|
is: {
|
|
235
235
|
gwta: string;
|
|
236
236
|
handlesUndefined: string[];
|
|
237
|
-
action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
237
|
+
action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
238
238
|
};
|
|
239
239
|
isLessThan: {
|
|
240
240
|
gwta: string;
|
|
@@ -243,7 +243,7 @@ declare class VariablesStepper extends AStepper implements IHasCycles {
|
|
|
243
243
|
action: ({ what, value }: {
|
|
244
244
|
what: string;
|
|
245
245
|
value: string;
|
|
246
|
-
}, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
246
|
+
}, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
247
247
|
};
|
|
248
248
|
isMoreThan: {
|
|
249
249
|
gwta: string;
|
|
@@ -252,17 +252,17 @@ declare class VariablesStepper extends AStepper implements IHasCycles {
|
|
|
252
252
|
action: ({ what, value }: {
|
|
253
253
|
what: string;
|
|
254
254
|
value: string;
|
|
255
|
-
}, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
255
|
+
}, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
256
256
|
};
|
|
257
257
|
exists: {
|
|
258
258
|
gwta: string;
|
|
259
259
|
handlesUndefined: string[];
|
|
260
|
-
action: ({ what }: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
260
|
+
action: ({ what }: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
261
261
|
};
|
|
262
262
|
showVar: {
|
|
263
263
|
gwta: string;
|
|
264
264
|
handlesUndefined: string[];
|
|
265
|
-
action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
265
|
+
action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
266
266
|
};
|
|
267
267
|
showDomains: {
|
|
268
268
|
gwta: string;
|
|
@@ -271,22 +271,22 @@ declare class VariablesStepper extends AStepper implements IHasCycles {
|
|
|
271
271
|
showDomain: {
|
|
272
272
|
gwta: string;
|
|
273
273
|
handlesUndefined: string[];
|
|
274
|
-
action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
274
|
+
action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
275
275
|
};
|
|
276
276
|
isIn: {
|
|
277
277
|
match: RegExp;
|
|
278
278
|
fallback: true;
|
|
279
|
-
action: (_: unknown, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
279
|
+
action: (_: unknown, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
280
280
|
};
|
|
281
281
|
matches: {
|
|
282
282
|
gwta: string;
|
|
283
283
|
action: ({ value, pattern }: {
|
|
284
284
|
value: string;
|
|
285
285
|
pattern: string;
|
|
286
|
-
}, featureStep: TFeatureStep) => import("../schema/protocol.js").
|
|
286
|
+
}, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
287
287
|
};
|
|
288
288
|
};
|
|
289
|
-
compareValues(featureStep: TFeatureStep, rawTerm: string, value: string, operator: string): import("../schema/protocol.js").
|
|
289
|
+
compareValues(featureStep: TFeatureStep, rawTerm: string, value: string, operator: string): import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
|
|
290
290
|
/**
|
|
291
291
|
* Interpolates a template string by replacing {varName} placeholders with variable values.
|
|
292
292
|
* Returns the interpolated string or an error if a variable is not found.
|