@haibun/core 3.9.0 → 3.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- export declare const currentVersion = "3.8.4";
1
+ export declare const currentVersion = "3.9.3";
2
2
  //# sourceMappingURL=currentVersion.d.ts.map
@@ -1,2 +1,2 @@
1
- export const currentVersion = '3.8.4';
1
+ export const currentVersion = '3.9.3';
2
2
  //# sourceMappingURL=currentVersion.js.map
@@ -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";
5
4
  debug: "debug";
6
5
  trace: "trace";
7
6
  log: "log";
8
7
  info: "info";
9
8
  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";
248
247
  debug: "debug";
249
248
  trace: "trace";
250
249
  log: "log";
251
250
  info: "info";
252
251
  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";
262
261
  debug: "debug";
263
262
  trace: "trace";
264
263
  log: "log";
265
264
  info: "info";
266
265
  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";
294
293
  debug: "debug";
295
294
  trace: "trace";
296
295
  log: "log";
297
296
  info: "info";
298
297
  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";
328
327
  debug: "debug";
329
328
  trace: "trace";
330
329
  log: "log";
331
330
  info: "info";
332
331
  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";
363
362
  debug: "debug";
364
363
  trace: "trace";
365
364
  log: "log";
366
365
  info: "info";
367
366
  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";
404
403
  debug: "debug";
405
404
  trace: "trace";
406
405
  log: "log";
407
406
  info: "info";
408
407
  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";
446
445
  debug: "debug";
447
446
  trace: "trace";
448
447
  log: "log";
449
448
  info: "info";
450
449
  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";
479
478
  debug: "debug";
480
479
  trace: "trace";
481
480
  log: "log";
482
481
  info: "info";
483
482
  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";
513
512
  debug: "debug";
514
513
  trace: "trace";
515
514
  log: "log";
516
515
  info: "info";
517
516
  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";
553
552
  debug: "debug";
554
553
  trace: "trace";
555
554
  log: "log";
556
555
  info: "info";
557
556
  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";
596
595
  debug: "debug";
597
596
  trace: "trace";
598
597
  log: "log";
599
598
  info: "info";
600
599
  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";
612
611
  debug: "debug";
613
612
  trace: "trace";
614
613
  log: "log";
615
614
  info: "info";
616
615
  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";
630
629
  debug: "debug";
631
630
  trace: "trace";
632
631
  log: "log";
633
632
  info: "info";
634
633
  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";
651
650
  debug: "debug";
652
651
  trace: "trace";
653
652
  log: "log";
654
653
  info: "info";
655
654
  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";
668
667
  debug: "debug";
669
668
  trace: "trace";
670
669
  log: "log";
671
670
  info: "info";
672
671
  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";
686
685
  debug: "debug";
687
686
  trace: "trace";
688
687
  log: "log";
689
688
  info: "info";
690
689
  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";
706
705
  debug: "debug";
707
706
  trace: "trace";
708
707
  log: "log";
709
708
  info: "info";
710
709
  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";
723
722
  debug: "debug";
724
723
  trace: "trace";
725
724
  log: "log";
726
725
  info: "info";
727
726
  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";
741
740
  debug: "debug";
742
741
  trace: "trace";
743
742
  log: "log";
744
743
  info: "info";
745
744
  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";
780
779
  debug: "debug";
781
780
  trace: "trace";
782
781
  log: "log";
783
782
  info: "info";
784
783
  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";
805
804
  debug: "debug";
806
805
  trace: "trace";
807
806
  log: "log";
808
807
  info: "info";
809
808
  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";
823
822
  debug: "debug";
824
823
  trace: "trace";
825
824
  log: "log";
826
825
  info: "info";
827
826
  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";
840
839
  debug: "debug";
841
840
  trace: "trace";
842
841
  log: "log";
843
842
  info: "info";
844
843
  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";
860
859
  debug: "debug";
861
860
  trace: "trace";
862
861
  log: "log";
863
862
  info: "info";
864
863
  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";
876
875
  debug: "debug";
877
876
  trace: "trace";
878
877
  log: "log";
879
878
  info: "info";
880
879
  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";
893
892
  debug: "debug";
894
893
  trace: "trace";
895
894
  log: "log";
896
895
  info: "info";
897
896
  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";
912
911
  debug: "debug";
913
912
  trace: "trace";
914
913
  log: "log";
915
914
  info: "info";
916
915
  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";
928
927
  debug: "debug";
929
928
  trace: "trace";
930
929
  log: "log";
931
930
  info: "info";
932
931
  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";
945
944
  debug: "debug";
946
945
  trace: "trace";
947
946
  log: "log";
948
947
  info: "info";
949
948
  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";
976
975
  debug: "debug";
977
976
  trace: "trace";
978
977
  log: "log";
979
978
  info: "info";
980
979
  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";
1000
999
  debug: "debug";
1001
1000
  trace: "trace";
1002
1001
  log: "log";
1003
1002
  info: "info";
1004
1003
  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";
1018
1017
  debug: "debug";
1019
1018
  trace: "trace";
1020
1019
  log: "log";
1021
1020
  info: "info";
1022
1021
  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";
1045
1044
  debug: "debug";
1046
1045
  trace: "trace";
1047
1046
  log: "log";
1048
1047
  info: "info";
1049
1048
  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";
1078
1077
  debug: "debug";
1079
1078
  trace: "trace";
1080
1079
  log: "log";
1081
1080
  info: "info";
1082
1081
  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";
1112
1111
  debug: "debug";
1113
1112
  trace: "trace";
1114
1113
  log: "log";
1115
1114
  info: "info";
1116
1115
  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";
1152
1151
  debug: "debug";
1153
1152
  trace: "trace";
1154
1153
  log: "log";
1155
1154
  info: "info";
1156
1155
  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";
1194
1193
  debug: "debug";
1195
1194
  trace: "trace";
1196
1195
  log: "log";
1197
1196
  info: "info";
1198
1197
  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";
1209
1208
  debug: "debug";
1210
1209
  trace: "trace";
1211
1210
  log: "log";
1212
1211
  info: "info";
1213
1212
  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";
1226
1225
  debug: "debug";
1227
1226
  trace: "trace";
1228
1227
  log: "log";
1229
1228
  info: "info";
1230
1229
  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";
1246
1245
  debug: "debug";
1247
1246
  trace: "trace";
1248
1247
  log: "log";
1249
1248
  info: "info";
1250
1249
  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";
1262
1261
  debug: "debug";
1263
1262
  trace: "trace";
1264
1263
  log: "log";
1265
1264
  info: "info";
1266
1265
  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";
1279
1278
  debug: "debug";
1280
1279
  trace: "trace";
1281
1280
  log: "log";
1282
1281
  info: "info";
1283
1282
  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";
1298
1297
  debug: "debug";
1299
1298
  trace: "trace";
1300
1299
  log: "log";
1301
1300
  info: "info";
1302
1301
  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";
1314
1313
  debug: "debug";
1315
1314
  trace: "trace";
1316
1315
  log: "log";
1317
1316
  info: "info";
1318
1317
  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";
1331
1330
  debug: "debug";
1332
1331
  trace: "trace";
1333
1332
  log: "log";
1334
1333
  info: "info";
1335
1334
  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";
1362
1361
  debug: "debug";
1363
1362
  trace: "trace";
1364
1363
  log: "log";
1365
1364
  info: "info";
1366
1365
  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";
1386
1385
  debug: "debug";
1387
1386
  trace: "trace";
1388
1387
  log: "log";
1389
1388
  info: "info";
1390
1389
  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";
1403
1402
  debug: "debug";
1404
1403
  trace: "trace";
1405
1404
  log: "log";
1406
1405
  info: "info";
1407
1406
  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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult>;
53
+ }, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult>;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult>;
65
+ }, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult>;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult>;
83
+ }, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult>;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult>;
95
+ }, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult>;
96
96
  };
97
97
  readonly showWaypoints: {
98
98
  readonly exact: "show waypoints";
@@ -4,7 +4,9 @@ import { FlowRunner } from '../lib/core/flow-runner.js';
4
4
  export default class FinalizerStepper extends AStepper implements IHasCycles {
5
5
  description: string;
6
6
  flowRunner: FlowRunner;
7
- registeredStatements: string[];
7
+ registeredStatementsByFeature: Map<string, string[]>;
8
+ activeFeaturePath?: string;
9
+ private runFinalizersForFeature;
8
10
  cycles: IStepperCycles;
9
11
  setWorld(world: TWorld, steppers: AStepper[]): Promise<void>;
10
12
  steps: TStepperSteps;
@@ -1 +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"}
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,6BAA6B,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAa;IACjE,iBAAiB,CAAC,EAAE,MAAM,CAAC;YAEb,uBAAuB;IAoBrC,MAAM,EAAE,cAAc,CAuBpB;IAEI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE;IAKlD,KAAK,EAAE,aAAa,CAelB;CACF"}
@@ -6,16 +6,12 @@ import { actionNotOK } from '../lib/util/index.js';
6
6
  export default class FinalizerStepper extends AStepper {
7
7
  description = 'Runs registered finalizer statements at end of execution';
8
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()) {
9
+ registeredStatementsByFeature = new Map();
10
+ activeFeaturePath;
11
+ async runFinalizersForFeature(featurePath) {
12
+ const statements = this.registeredStatementsByFeature.get(featurePath);
13
+ if (statements && statements.length > 0) {
14
+ for (const [index, statement] of statements.entries()) {
19
15
  const result = await this.flowRunner.runStatement(statement, {
20
16
  seqPath: [998, index + 1],
21
17
  intent: { mode: 'authoritative' },
@@ -24,6 +20,31 @@ export default class FinalizerStepper extends AStepper {
24
20
  this.getWorld().eventLogger.warn(`finalizer-stepper: statement failed: ${statement} :: ${result.message || 'unknown error'}`);
25
21
  }
26
22
  }
23
+ }
24
+ this.registeredStatementsByFeature.delete(featurePath);
25
+ }
26
+ cycles = {
27
+ startExecution: () => {
28
+ this.registeredStatementsByFeature = new Map();
29
+ this.activeFeaturePath = undefined;
30
+ },
31
+ startFeature: ({ resolvedFeature }) => {
32
+ this.activeFeaturePath = resolvedFeature.path;
33
+ if (!this.registeredStatementsByFeature.has(resolvedFeature.path)) {
34
+ this.registeredStatementsByFeature.set(resolvedFeature.path, []);
35
+ }
36
+ },
37
+ endFeature: async () => {
38
+ if (!this.activeFeaturePath) {
39
+ return;
40
+ }
41
+ await this.runFinalizersForFeature(this.activeFeaturePath);
42
+ this.activeFeaturePath = undefined;
43
+ },
44
+ endExecution: async () => {
45
+ for (const featurePath of this.registeredStatementsByFeature.keys()) {
46
+ await this.runFinalizersForFeature(featurePath);
47
+ }
27
48
  },
28
49
  };
29
50
  async setWorld(world, steppers) {
@@ -38,7 +59,10 @@ export default class FinalizerStepper extends AStepper {
38
59
  if (!statement) {
39
60
  return actionNotOK('finalizer statement is required');
40
61
  }
41
- this.registeredStatements.push(statement);
62
+ const featurePath = this.getWorld().runtime.currentFeaturePath || featureStep.source.path;
63
+ const statements = this.registeredStatementsByFeature.get(featurePath) || [];
64
+ statements.push(statement);
65
+ this.registeredStatementsByFeature.set(featurePath, statements);
42
66
  return OK;
43
67
  },
44
68
  },
@@ -1 +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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C,OAAO,CAAC,kBAAkB,IAAI,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC;gBAC1F,MAAM,UAAU,GAAG,IAAI,CAAC,6BAA6B,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;gBAC7E,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBAC3B,IAAI,CAAC,6BAA6B,CAAC,GAAG,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;gBAChE,OAAO,EAAE,CAAC;YACX,CAAC;SACD;KACD,CAAC;CACF"}
@@ -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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult>;
22
+ }, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult>;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult>;
29
+ }, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult>;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
64
+ }) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
112
+ }, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult>;
43
+ action: (_args: TStepArgs, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult>;
44
44
  };
45
45
  feature: {
46
46
  precludes: string[];
47
47
  gwta: string;
48
- action: ({ feature }: TStepArgs, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult>;
48
+ action: ({ feature }: TStepArgs, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult>;
49
49
  };
50
50
  scenario: {
51
51
  precludes: string[];
52
52
  gwta: string;
53
- action: ({ scenario }: TStepArgs, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult>;
53
+ action: ({ scenario }: TStepArgs, featureStep: TFeatureStep) => Promise<import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult>;
54
54
  };
55
55
  };
56
- maybeSay(featureStep: TFeatureStep): Promise<import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult>;
56
+ maybeSay(featureStep: TFeatureStep): Promise<import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult>;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
16
+ }, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
25
+ }, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
33
+ }, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
56
+ action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
97
+ action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
106
+ }, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
115
+ }, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
116
116
  };
117
117
  exists: {
118
118
  gwta: string;
119
119
  handlesUndefined: string[];
120
- action: ({ what }: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
120
+ action: ({ what }: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
121
121
  };
122
122
  showVar: {
123
123
  gwta: string;
124
124
  handlesUndefined: string[];
125
- action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
125
+ action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
134
+ action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
135
135
  };
136
136
  isIn: {
137
137
  match: RegExp;
138
138
  fallback: true;
139
- action: (_: unknown, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
139
+ action: (_: unknown, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
146
+ }, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
156
+ }, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
165
+ }, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
173
+ }, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
196
+ action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
237
+ action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
246
+ }, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
255
+ }, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
256
256
  };
257
257
  exists: {
258
258
  gwta: string;
259
259
  handlesUndefined: string[];
260
- action: ({ what }: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
260
+ action: ({ what }: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
261
261
  };
262
262
  showVar: {
263
263
  gwta: string;
264
264
  handlesUndefined: string[];
265
- action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
265
+ action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
274
+ action: (_: TStepArgs, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
275
275
  };
276
276
  isIn: {
277
277
  match: RegExp;
278
278
  fallback: true;
279
- action: (_: unknown, featureStep: TFeatureStep) => import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
279
+ action: (_: unknown, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
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").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
286
+ }, featureStep: TFeatureStep) => import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
287
287
  };
288
288
  };
289
- compareValues(featureStep: TFeatureStep, rawTerm: string, value: string, operator: string): import("../schema/protocol.js").TNotOKActionResult | import("../schema/protocol.js").TOKActionResult;
289
+ compareValues(featureStep: TFeatureStep, rawTerm: string, value: string, operator: string): import("../schema/protocol.js").TOKActionResult | import("../schema/protocol.js").TNotOKActionResult;
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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@haibun/core",
3
3
  "type": "module",
4
- "version": "3.9.0",
4
+ "version": "3.9.3",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "exports": {