@haibun/core 3.9.0 → 4.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/build/currentVersion.d.ts +1 -1
  2. package/build/currentVersion.d.ts.map +1 -1
  3. package/build/currentVersion.js +1 -1
  4. package/build/currentVersion.js.map +1 -1
  5. package/build/lib/EventLogger.d.ts +8 -5
  6. package/build/lib/EventLogger.d.ts.map +1 -1
  7. package/build/lib/EventLogger.js +15 -12
  8. package/build/lib/EventLogger.js.map +1 -1
  9. package/build/lib/core/flow-runner.js +6 -6
  10. package/build/lib/core/flow-runner.js.map +1 -1
  11. package/build/lib/defs.d.ts +13 -2
  12. package/build/lib/defs.d.ts.map +1 -1
  13. package/build/lib/defs.js.map +1 -1
  14. package/build/lib/feature-variables.d.ts.map +1 -1
  15. package/build/lib/feature-variables.js +8 -3
  16. package/build/lib/feature-variables.js.map +1 -1
  17. package/build/lib/namedVars.d.ts.map +1 -1
  18. package/build/lib/namedVars.js +2 -1
  19. package/build/lib/namedVars.js.map +1 -1
  20. package/build/lib/step-dispatch.d.ts +105 -0
  21. package/build/lib/step-dispatch.d.ts.map +1 -0
  22. package/build/lib/step-dispatch.js +206 -0
  23. package/build/lib/step-dispatch.js.map +1 -0
  24. package/build/lib/step-helpers.d.ts +10 -0
  25. package/build/lib/step-helpers.d.ts.map +1 -0
  26. package/build/lib/step-helpers.js +16 -0
  27. package/build/lib/step-helpers.js.map +1 -0
  28. package/build/lib/step-validation.d.ts +26 -0
  29. package/build/lib/step-validation.d.ts.map +1 -0
  30. package/build/lib/step-validation.js +26 -0
  31. package/build/lib/step-validation.js.map +1 -0
  32. package/build/lib/stepper-registry.d.ts +5 -2
  33. package/build/lib/stepper-registry.d.ts.map +1 -1
  34. package/build/lib/stepper-registry.js +2 -1
  35. package/build/lib/stepper-registry.js.map +1 -1
  36. package/build/lib/test/EventCollectorStepper.d.ts +6 -4
  37. package/build/lib/test/EventCollectorStepper.d.ts.map +1 -1
  38. package/build/lib/test/EventCollectorStepper.js +14 -22
  39. package/build/lib/test/EventCollectorStepper.js.map +1 -1
  40. package/build/lib/test/TestStepsWithOptions.d.ts +5 -1
  41. package/build/lib/test/TestStepsWithOptions.d.ts.map +1 -1
  42. package/build/lib/test/TestStepsWithOptions.js +4 -2
  43. package/build/lib/test/TestStepsWithOptions.js.map +1 -1
  44. package/build/lib/util/index.d.ts +12 -4
  45. package/build/lib/util/index.d.ts.map +1 -1
  46. package/build/lib/util/index.js +45 -4
  47. package/build/lib/util/index.js.map +1 -1
  48. package/build/phases/Executor.d.ts.map +1 -1
  49. package/build/phases/Executor.js +3 -2
  50. package/build/phases/Executor.js.map +1 -1
  51. package/build/schema/protocol.d.ts +67 -61
  52. package/build/schema/protocol.d.ts.map +1 -1
  53. package/build/schema/protocol.js +3 -3
  54. package/build/schema/protocol.js.map +1 -1
  55. package/build/steps/activities-stepper.d.ts.map +1 -1
  56. package/build/steps/activities-stepper.js +12 -7
  57. package/build/steps/activities-stepper.js.map +1 -1
  58. package/build/steps/debugger-stepper.js +1 -1
  59. package/build/steps/debugger-stepper.js.map +1 -1
  60. package/build/steps/finalizer-stepper.d.ts +3 -1
  61. package/build/steps/finalizer-stepper.d.ts.map +1 -1
  62. package/build/steps/finalizer-stepper.js +35 -11
  63. package/build/steps/finalizer-stepper.js.map +1 -1
  64. package/build/steps/logic-stepper.d.ts +5 -1
  65. package/build/steps/logic-stepper.d.ts.map +1 -1
  66. package/build/steps/logic-stepper.js +4 -2
  67. package/build/steps/logic-stepper.js.map +1 -1
  68. package/package.json +1 -1
@@ -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";
@@ -113,7 +113,7 @@ export declare const FlowSignalSchema: z.ZodObject<{
113
113
  }>;
114
114
  message: z.ZodOptional<z.ZodString>;
115
115
  fatal: z.ZodOptional<z.ZodBoolean>;
116
- topics: z.ZodOptional<z.ZodUnknown>;
116
+ products: z.ZodOptional<z.ZodUnknown>;
117
117
  }, z.core.$strip>;
118
118
  export type FlowSignal = z.infer<typeof FlowSignalSchema>;
119
119
  export declare const SystemMessageSchema: z.ZodObject<{
@@ -127,7 +127,7 @@ export declare const SystemMessageSchema: z.ZodObject<{
127
127
  }>;
128
128
  message: z.ZodOptional<z.ZodString>;
129
129
  fatal: z.ZodOptional<z.ZodBoolean>;
130
- topics: z.ZodOptional<z.ZodUnknown>;
130
+ products: z.ZodOptional<z.ZodUnknown>;
131
131
  }, z.core.$strip>;
132
132
  intent: z.ZodObject<{
133
133
  mode: z.ZodDefault<z.ZodEnum<{
@@ -150,7 +150,13 @@ export type TOKActionResult = {
150
150
  controlSignal?: TDebugSignal;
151
151
  artifact?: TArtifactEvent;
152
152
  protocol?: SystemMessage;
153
- topics?: Record<string, unknown>;
153
+ };
154
+ export type TActionOKWithProducts = {
155
+ ok: true;
156
+ products: Record<string, unknown>;
157
+ controlSignal?: TDebugSignal;
158
+ artifact?: TArtifactEvent;
159
+ protocol?: SystemMessage;
154
160
  };
155
161
  export type TNotOKActionResult = {
156
162
  ok: false;
@@ -158,9 +164,9 @@ export type TNotOKActionResult = {
158
164
  controlSignal?: TDebugSignal;
159
165
  artifact?: TArtifactEvent;
160
166
  protocol?: SystemMessage;
161
- topics?: Record<string, unknown>;
162
167
  };
163
168
  export type TActionResult = TOKActionResult | TNotOKActionResult;
169
+ export type TActionResultWithProducts = TActionOKWithProducts | TNotOKActionResult;
164
170
  export declare const OK: TOKActionResult;
165
171
  export type TStepValueValue = unknown;
166
172
  export type TStepArgs = Record<string, TStepValueValue>;
@@ -244,12 +250,12 @@ export declare const BaseEvent: z.ZodObject<{
244
250
  source: z.ZodDefault<z.ZodString>;
245
251
  emitter: z.ZodOptional<z.ZodString>;
246
252
  level: z.ZodDefault<z.ZodEnum<{
247
- error: "error";
248
253
  debug: "debug";
249
254
  trace: "trace";
250
255
  log: "log";
251
256
  info: "info";
252
257
  warn: "warn";
258
+ error: "error";
253
259
  }>>;
254
260
  }, z.core.$strip>;
255
261
  export declare const LifecycleEventCommon: z.ZodObject<{
@@ -258,12 +264,12 @@ export declare const LifecycleEventCommon: z.ZodObject<{
258
264
  source: z.ZodDefault<z.ZodString>;
259
265
  emitter: z.ZodOptional<z.ZodString>;
260
266
  level: z.ZodDefault<z.ZodEnum<{
261
- error: "error";
262
267
  debug: "debug";
263
268
  trace: "trace";
264
269
  log: "log";
265
270
  info: "info";
266
271
  warn: "warn";
272
+ error: "error";
267
273
  }>>;
268
274
  kind: z.ZodLiteral<"lifecycle">;
269
275
  stage: z.ZodEnum<{
@@ -290,12 +296,12 @@ export declare const FeatureEvent: z.ZodObject<{
290
296
  source: z.ZodDefault<z.ZodString>;
291
297
  emitter: z.ZodOptional<z.ZodString>;
292
298
  level: z.ZodDefault<z.ZodEnum<{
293
- error: "error";
294
299
  debug: "debug";
295
300
  trace: "trace";
296
301
  log: "log";
297
302
  info: "info";
298
303
  warn: "warn";
304
+ error: "error";
299
305
  }>>;
300
306
  kind: z.ZodLiteral<"lifecycle">;
301
307
  stage: z.ZodEnum<{
@@ -324,12 +330,12 @@ export declare const ScenarioEvent: z.ZodObject<{
324
330
  source: z.ZodDefault<z.ZodString>;
325
331
  emitter: z.ZodOptional<z.ZodString>;
326
332
  level: z.ZodDefault<z.ZodEnum<{
327
- error: "error";
328
333
  debug: "debug";
329
334
  trace: "trace";
330
335
  log: "log";
331
336
  info: "info";
332
337
  warn: "warn";
338
+ error: "error";
333
339
  }>>;
334
340
  kind: z.ZodLiteral<"lifecycle">;
335
341
  stage: z.ZodEnum<{
@@ -359,12 +365,12 @@ export declare const StepEvent: z.ZodObject<{
359
365
  source: z.ZodDefault<z.ZodString>;
360
366
  emitter: z.ZodOptional<z.ZodString>;
361
367
  level: z.ZodDefault<z.ZodEnum<{
362
- error: "error";
363
368
  debug: "debug";
364
369
  trace: "trace";
365
370
  log: "log";
366
371
  info: "info";
367
372
  warn: "warn";
373
+ error: "error";
368
374
  }>>;
369
375
  kind: z.ZodLiteral<"lifecycle">;
370
376
  stage: z.ZodEnum<{
@@ -391,7 +397,7 @@ export declare const StepEvent: z.ZodObject<{
391
397
  actionName: z.ZodOptional<z.ZodString>;
392
398
  stepArgs: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>;
393
399
  stepValuesMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
394
- topics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
400
+ products: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
395
401
  featurePath: z.ZodOptional<z.ZodString>;
396
402
  }, z.core.$strip>;
397
403
  export declare const GenericLifecycleEvent: z.ZodObject<{
@@ -400,12 +406,12 @@ export declare const GenericLifecycleEvent: z.ZodObject<{
400
406
  source: z.ZodDefault<z.ZodString>;
401
407
  emitter: z.ZodOptional<z.ZodString>;
402
408
  level: z.ZodDefault<z.ZodEnum<{
403
- error: "error";
404
409
  debug: "debug";
405
410
  trace: "trace";
406
411
  log: "log";
407
412
  info: "info";
408
413
  warn: "warn";
414
+ error: "error";
409
415
  }>>;
410
416
  kind: z.ZodLiteral<"lifecycle">;
411
417
  stage: z.ZodEnum<{
@@ -432,7 +438,7 @@ export declare const GenericLifecycleEvent: z.ZodObject<{
432
438
  execution: "execution";
433
439
  }>;
434
440
  in: z.ZodOptional<z.ZodString>;
435
- topics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
441
+ products: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
436
442
  lineNumber: z.ZodOptional<z.ZodNumber>;
437
443
  featurePath: z.ZodOptional<z.ZodString>;
438
444
  }, z.core.$strip>;
@@ -442,12 +448,12 @@ export declare const LifecycleEvent: z.ZodUnion<readonly [z.ZodObject<{
442
448
  source: z.ZodDefault<z.ZodString>;
443
449
  emitter: z.ZodOptional<z.ZodString>;
444
450
  level: z.ZodDefault<z.ZodEnum<{
445
- error: "error";
446
451
  debug: "debug";
447
452
  trace: "trace";
448
453
  log: "log";
449
454
  info: "info";
450
455
  warn: "warn";
456
+ error: "error";
451
457
  }>>;
452
458
  kind: z.ZodLiteral<"lifecycle">;
453
459
  stage: z.ZodEnum<{
@@ -475,12 +481,12 @@ export declare const LifecycleEvent: z.ZodUnion<readonly [z.ZodObject<{
475
481
  source: z.ZodDefault<z.ZodString>;
476
482
  emitter: z.ZodOptional<z.ZodString>;
477
483
  level: z.ZodDefault<z.ZodEnum<{
478
- error: "error";
479
484
  debug: "debug";
480
485
  trace: "trace";
481
486
  log: "log";
482
487
  info: "info";
483
488
  warn: "warn";
489
+ error: "error";
484
490
  }>>;
485
491
  kind: z.ZodLiteral<"lifecycle">;
486
492
  stage: z.ZodEnum<{
@@ -509,12 +515,12 @@ export declare const LifecycleEvent: z.ZodUnion<readonly [z.ZodObject<{
509
515
  source: z.ZodDefault<z.ZodString>;
510
516
  emitter: z.ZodOptional<z.ZodString>;
511
517
  level: z.ZodDefault<z.ZodEnum<{
512
- error: "error";
513
518
  debug: "debug";
514
519
  trace: "trace";
515
520
  log: "log";
516
521
  info: "info";
517
522
  warn: "warn";
523
+ error: "error";
518
524
  }>>;
519
525
  kind: z.ZodLiteral<"lifecycle">;
520
526
  stage: z.ZodEnum<{
@@ -541,7 +547,7 @@ export declare const LifecycleEvent: z.ZodUnion<readonly [z.ZodObject<{
541
547
  actionName: z.ZodOptional<z.ZodString>;
542
548
  stepArgs: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>;
543
549
  stepValuesMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
544
- topics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
550
+ products: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
545
551
  featurePath: z.ZodOptional<z.ZodString>;
546
552
  }, z.core.$strip>, z.ZodObject<{
547
553
  id: z.ZodString;
@@ -549,12 +555,12 @@ export declare const LifecycleEvent: z.ZodUnion<readonly [z.ZodObject<{
549
555
  source: z.ZodDefault<z.ZodString>;
550
556
  emitter: z.ZodOptional<z.ZodString>;
551
557
  level: z.ZodDefault<z.ZodEnum<{
552
- error: "error";
553
558
  debug: "debug";
554
559
  trace: "trace";
555
560
  log: "log";
556
561
  info: "info";
557
562
  warn: "warn";
563
+ error: "error";
558
564
  }>>;
559
565
  kind: z.ZodLiteral<"lifecycle">;
560
566
  stage: z.ZodEnum<{
@@ -581,7 +587,7 @@ export declare const LifecycleEvent: z.ZodUnion<readonly [z.ZodObject<{
581
587
  execution: "execution";
582
588
  }>;
583
589
  in: z.ZodOptional<z.ZodString>;
584
- topics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
590
+ products: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
585
591
  lineNumber: z.ZodOptional<z.ZodNumber>;
586
592
  featurePath: z.ZodOptional<z.ZodString>;
587
593
  }, z.core.$strip>]>;
@@ -592,12 +598,12 @@ export declare const LogEvent: z.ZodObject<{
592
598
  emitter: z.ZodOptional<z.ZodString>;
593
599
  kind: z.ZodLiteral<"log">;
594
600
  level: z.ZodEnum<{
595
- error: "error";
596
601
  debug: "debug";
597
602
  trace: "trace";
598
603
  log: "log";
599
604
  info: "info";
600
605
  warn: "warn";
606
+ error: "error";
601
607
  }>;
602
608
  message: z.ZodString;
603
609
  attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -608,12 +614,12 @@ export declare const ImageArtifact: z.ZodObject<{
608
614
  source: z.ZodDefault<z.ZodString>;
609
615
  emitter: z.ZodOptional<z.ZodString>;
610
616
  level: z.ZodDefault<z.ZodEnum<{
611
- error: "error";
612
617
  debug: "debug";
613
618
  trace: "trace";
614
619
  log: "log";
615
620
  info: "info";
616
621
  warn: "warn";
622
+ error: "error";
617
623
  }>>;
618
624
  kind: z.ZodLiteral<"artifact">;
619
625
  artifactType: z.ZodLiteral<"image">;
@@ -626,12 +632,12 @@ export declare const VideoArtifact: z.ZodObject<{
626
632
  source: z.ZodDefault<z.ZodString>;
627
633
  emitter: z.ZodOptional<z.ZodString>;
628
634
  level: z.ZodDefault<z.ZodEnum<{
629
- error: "error";
630
635
  debug: "debug";
631
636
  trace: "trace";
632
637
  log: "log";
633
638
  info: "info";
634
639
  warn: "warn";
640
+ error: "error";
635
641
  }>>;
636
642
  kind: z.ZodLiteral<"artifact">;
637
643
  artifactType: z.ZodLiteral<"video">;
@@ -647,12 +653,12 @@ export declare const VideoStartArtifact: z.ZodObject<{
647
653
  source: z.ZodDefault<z.ZodString>;
648
654
  emitter: z.ZodOptional<z.ZodString>;
649
655
  level: z.ZodDefault<z.ZodEnum<{
650
- error: "error";
651
656
  debug: "debug";
652
657
  trace: "trace";
653
658
  log: "log";
654
659
  info: "info";
655
660
  warn: "warn";
661
+ error: "error";
656
662
  }>>;
657
663
  kind: z.ZodLiteral<"artifact">;
658
664
  artifactType: z.ZodLiteral<"video-start">;
@@ -664,12 +670,12 @@ export declare const HtmlArtifact: z.ZodObject<{
664
670
  source: z.ZodDefault<z.ZodString>;
665
671
  emitter: z.ZodOptional<z.ZodString>;
666
672
  level: z.ZodDefault<z.ZodEnum<{
667
- error: "error";
668
673
  debug: "debug";
669
674
  trace: "trace";
670
675
  log: "log";
671
676
  info: "info";
672
677
  warn: "warn";
678
+ error: "error";
673
679
  }>>;
674
680
  kind: z.ZodLiteral<"artifact">;
675
681
  artifactType: z.ZodLiteral<"html">;
@@ -682,12 +688,12 @@ export declare const SpeechArtifact: z.ZodObject<{
682
688
  source: z.ZodDefault<z.ZodString>;
683
689
  emitter: z.ZodOptional<z.ZodString>;
684
690
  level: z.ZodDefault<z.ZodEnum<{
685
- error: "error";
686
691
  debug: "debug";
687
692
  trace: "trace";
688
693
  log: "log";
689
694
  info: "info";
690
695
  warn: "warn";
696
+ error: "error";
691
697
  }>>;
692
698
  kind: z.ZodLiteral<"artifact">;
693
699
  artifactType: z.ZodLiteral<"speech">;
@@ -702,12 +708,12 @@ export declare const JsonArtifact: z.ZodObject<{
702
708
  source: z.ZodDefault<z.ZodString>;
703
709
  emitter: z.ZodOptional<z.ZodString>;
704
710
  level: z.ZodDefault<z.ZodEnum<{
705
- error: "error";
706
711
  debug: "debug";
707
712
  trace: "trace";
708
713
  log: "log";
709
714
  info: "info";
710
715
  warn: "warn";
716
+ error: "error";
711
717
  }>>;
712
718
  kind: z.ZodLiteral<"artifact">;
713
719
  artifactType: z.ZodLiteral<"json">;
@@ -719,12 +725,12 @@ export declare const MermaidArtifact: z.ZodObject<{
719
725
  timestamp: z.ZodNumber;
720
726
  emitter: z.ZodOptional<z.ZodString>;
721
727
  level: z.ZodDefault<z.ZodEnum<{
722
- error: "error";
723
728
  debug: "debug";
724
729
  trace: "trace";
725
730
  log: "log";
726
731
  info: "info";
727
732
  warn: "warn";
733
+ error: "error";
728
734
  }>>;
729
735
  kind: z.ZodLiteral<"artifact">;
730
736
  artifactType: z.ZodLiteral<"mermaid">;
@@ -737,12 +743,12 @@ export declare const HttpTraceArtifact: z.ZodObject<{
737
743
  source: z.ZodDefault<z.ZodString>;
738
744
  emitter: z.ZodOptional<z.ZodString>;
739
745
  level: z.ZodDefault<z.ZodEnum<{
740
- error: "error";
741
746
  debug: "debug";
742
747
  trace: "trace";
743
748
  log: "log";
744
749
  info: "info";
745
750
  warn: "warn";
751
+ error: "error";
746
752
  }>>;
747
753
  kind: z.ZodLiteral<"artifact">;
748
754
  artifactType: z.ZodLiteral<"http-trace">;
@@ -776,12 +782,12 @@ export declare const ResolvedFeaturesArtifact: z.ZodObject<{
776
782
  source: z.ZodDefault<z.ZodString>;
777
783
  emitter: z.ZodOptional<z.ZodString>;
778
784
  level: z.ZodDefault<z.ZodEnum<{
779
- error: "error";
780
785
  debug: "debug";
781
786
  trace: "trace";
782
787
  log: "log";
783
788
  info: "info";
784
789
  warn: "warn";
790
+ error: "error";
785
791
  }>>;
786
792
  kind: z.ZodLiteral<"artifact">;
787
793
  artifactType: z.ZodLiteral<"resolvedFeatures">;
@@ -801,12 +807,12 @@ export declare const FileArtifact: z.ZodObject<{
801
807
  source: z.ZodDefault<z.ZodString>;
802
808
  emitter: z.ZodOptional<z.ZodString>;
803
809
  level: z.ZodDefault<z.ZodEnum<{
804
- error: "error";
805
810
  debug: "debug";
806
811
  trace: "trace";
807
812
  log: "log";
808
813
  info: "info";
809
814
  warn: "warn";
815
+ error: "error";
810
816
  }>>;
811
817
  kind: z.ZodLiteral<"artifact">;
812
818
  artifactType: z.ZodLiteral<"file">;
@@ -819,12 +825,12 @@ export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
819
825
  source: z.ZodDefault<z.ZodString>;
820
826
  emitter: z.ZodOptional<z.ZodString>;
821
827
  level: z.ZodDefault<z.ZodEnum<{
822
- error: "error";
823
828
  debug: "debug";
824
829
  trace: "trace";
825
830
  log: "log";
826
831
  info: "info";
827
832
  warn: "warn";
833
+ error: "error";
828
834
  }>>;
829
835
  kind: z.ZodLiteral<"artifact">;
830
836
  artifactType: z.ZodLiteral<"image">;
@@ -836,12 +842,12 @@ export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
836
842
  source: z.ZodDefault<z.ZodString>;
837
843
  emitter: z.ZodOptional<z.ZodString>;
838
844
  level: z.ZodDefault<z.ZodEnum<{
839
- error: "error";
840
845
  debug: "debug";
841
846
  trace: "trace";
842
847
  log: "log";
843
848
  info: "info";
844
849
  warn: "warn";
850
+ error: "error";
845
851
  }>>;
846
852
  kind: z.ZodLiteral<"artifact">;
847
853
  artifactType: z.ZodLiteral<"video">;
@@ -856,12 +862,12 @@ export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
856
862
  source: z.ZodDefault<z.ZodString>;
857
863
  emitter: z.ZodOptional<z.ZodString>;
858
864
  level: z.ZodDefault<z.ZodEnum<{
859
- error: "error";
860
865
  debug: "debug";
861
866
  trace: "trace";
862
867
  log: "log";
863
868
  info: "info";
864
869
  warn: "warn";
870
+ error: "error";
865
871
  }>>;
866
872
  kind: z.ZodLiteral<"artifact">;
867
873
  artifactType: z.ZodLiteral<"video-start">;
@@ -872,12 +878,12 @@ export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
872
878
  source: z.ZodDefault<z.ZodString>;
873
879
  emitter: z.ZodOptional<z.ZodString>;
874
880
  level: z.ZodDefault<z.ZodEnum<{
875
- error: "error";
876
881
  debug: "debug";
877
882
  trace: "trace";
878
883
  log: "log";
879
884
  info: "info";
880
885
  warn: "warn";
886
+ error: "error";
881
887
  }>>;
882
888
  kind: z.ZodLiteral<"artifact">;
883
889
  artifactType: z.ZodLiteral<"html">;
@@ -889,12 +895,12 @@ export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
889
895
  source: z.ZodDefault<z.ZodString>;
890
896
  emitter: z.ZodOptional<z.ZodString>;
891
897
  level: z.ZodDefault<z.ZodEnum<{
892
- error: "error";
893
898
  debug: "debug";
894
899
  trace: "trace";
895
900
  log: "log";
896
901
  info: "info";
897
902
  warn: "warn";
903
+ error: "error";
898
904
  }>>;
899
905
  kind: z.ZodLiteral<"artifact">;
900
906
  artifactType: z.ZodLiteral<"speech">;
@@ -908,12 +914,12 @@ export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
908
914
  source: z.ZodDefault<z.ZodString>;
909
915
  emitter: z.ZodOptional<z.ZodString>;
910
916
  level: z.ZodDefault<z.ZodEnum<{
911
- error: "error";
912
917
  debug: "debug";
913
918
  trace: "trace";
914
919
  log: "log";
915
920
  info: "info";
916
921
  warn: "warn";
922
+ error: "error";
917
923
  }>>;
918
924
  kind: z.ZodLiteral<"artifact">;
919
925
  artifactType: z.ZodLiteral<"json">;
@@ -924,12 +930,12 @@ export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
924
930
  timestamp: z.ZodNumber;
925
931
  emitter: z.ZodOptional<z.ZodString>;
926
932
  level: z.ZodDefault<z.ZodEnum<{
927
- error: "error";
928
933
  debug: "debug";
929
934
  trace: "trace";
930
935
  log: "log";
931
936
  info: "info";
932
937
  warn: "warn";
938
+ error: "error";
933
939
  }>>;
934
940
  kind: z.ZodLiteral<"artifact">;
935
941
  artifactType: z.ZodLiteral<"mermaid">;
@@ -941,12 +947,12 @@ export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
941
947
  source: z.ZodDefault<z.ZodString>;
942
948
  emitter: z.ZodOptional<z.ZodString>;
943
949
  level: z.ZodDefault<z.ZodEnum<{
944
- error: "error";
945
950
  debug: "debug";
946
951
  trace: "trace";
947
952
  log: "log";
948
953
  info: "info";
949
954
  warn: "warn";
955
+ error: "error";
950
956
  }>>;
951
957
  kind: z.ZodLiteral<"artifact">;
952
958
  artifactType: z.ZodLiteral<"http-trace">;
@@ -972,12 +978,12 @@ export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
972
978
  source: z.ZodDefault<z.ZodString>;
973
979
  emitter: z.ZodOptional<z.ZodString>;
974
980
  level: z.ZodDefault<z.ZodEnum<{
975
- error: "error";
976
981
  debug: "debug";
977
982
  trace: "trace";
978
983
  log: "log";
979
984
  info: "info";
980
985
  warn: "warn";
986
+ error: "error";
981
987
  }>>;
982
988
  kind: z.ZodLiteral<"artifact">;
983
989
  artifactType: z.ZodLiteral<"resolvedFeatures">;
@@ -996,12 +1002,12 @@ export declare const ArtifactEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
996
1002
  source: z.ZodDefault<z.ZodString>;
997
1003
  emitter: z.ZodOptional<z.ZodString>;
998
1004
  level: z.ZodDefault<z.ZodEnum<{
999
- error: "error";
1000
1005
  debug: "debug";
1001
1006
  trace: "trace";
1002
1007
  log: "log";
1003
1008
  info: "info";
1004
1009
  warn: "warn";
1010
+ error: "error";
1005
1011
  }>>;
1006
1012
  kind: z.ZodLiteral<"artifact">;
1007
1013
  artifactType: z.ZodLiteral<"file">;
@@ -1014,17 +1020,17 @@ export declare const ControlEvent: z.ZodObject<{
1014
1020
  source: z.ZodDefault<z.ZodString>;
1015
1021
  emitter: z.ZodOptional<z.ZodString>;
1016
1022
  level: z.ZodDefault<z.ZodEnum<{
1017
- error: "error";
1018
1023
  debug: "debug";
1019
1024
  trace: "trace";
1020
1025
  log: "log";
1021
1026
  info: "info";
1022
1027
  warn: "warn";
1028
+ error: "error";
1023
1029
  }>>;
1024
1030
  kind: z.ZodLiteral<"control">;
1025
1031
  signal: z.ZodEnum<{
1026
- fail: "fail";
1027
1032
  step: "step";
1033
+ fail: "fail";
1028
1034
  continue: "continue";
1029
1035
  retry: "retry";
1030
1036
  next: "next";
@@ -1041,12 +1047,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
1041
1047
  source: z.ZodDefault<z.ZodString>;
1042
1048
  emitter: z.ZodOptional<z.ZodString>;
1043
1049
  level: z.ZodDefault<z.ZodEnum<{
1044
- error: "error";
1045
1050
  debug: "debug";
1046
1051
  trace: "trace";
1047
1052
  log: "log";
1048
1053
  info: "info";
1049
1054
  warn: "warn";
1055
+ error: "error";
1050
1056
  }>>;
1051
1057
  kind: z.ZodLiteral<"lifecycle">;
1052
1058
  stage: z.ZodEnum<{
@@ -1074,12 +1080,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
1074
1080
  source: z.ZodDefault<z.ZodString>;
1075
1081
  emitter: z.ZodOptional<z.ZodString>;
1076
1082
  level: z.ZodDefault<z.ZodEnum<{
1077
- error: "error";
1078
1083
  debug: "debug";
1079
1084
  trace: "trace";
1080
1085
  log: "log";
1081
1086
  info: "info";
1082
1087
  warn: "warn";
1088
+ error: "error";
1083
1089
  }>>;
1084
1090
  kind: z.ZodLiteral<"lifecycle">;
1085
1091
  stage: z.ZodEnum<{
@@ -1108,12 +1114,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
1108
1114
  source: z.ZodDefault<z.ZodString>;
1109
1115
  emitter: z.ZodOptional<z.ZodString>;
1110
1116
  level: z.ZodDefault<z.ZodEnum<{
1111
- error: "error";
1112
1117
  debug: "debug";
1113
1118
  trace: "trace";
1114
1119
  log: "log";
1115
1120
  info: "info";
1116
1121
  warn: "warn";
1122
+ error: "error";
1117
1123
  }>>;
1118
1124
  kind: z.ZodLiteral<"lifecycle">;
1119
1125
  stage: z.ZodEnum<{
@@ -1140,7 +1146,7 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
1140
1146
  actionName: z.ZodOptional<z.ZodString>;
1141
1147
  stepArgs: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>;
1142
1148
  stepValuesMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1143
- topics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1149
+ products: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1144
1150
  featurePath: z.ZodOptional<z.ZodString>;
1145
1151
  }, z.core.$strip>, z.ZodObject<{
1146
1152
  id: z.ZodString;
@@ -1148,12 +1154,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
1148
1154
  source: z.ZodDefault<z.ZodString>;
1149
1155
  emitter: z.ZodOptional<z.ZodString>;
1150
1156
  level: z.ZodDefault<z.ZodEnum<{
1151
- error: "error";
1152
1157
  debug: "debug";
1153
1158
  trace: "trace";
1154
1159
  log: "log";
1155
1160
  info: "info";
1156
1161
  warn: "warn";
1162
+ error: "error";
1157
1163
  }>>;
1158
1164
  kind: z.ZodLiteral<"lifecycle">;
1159
1165
  stage: z.ZodEnum<{
@@ -1180,7 +1186,7 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
1180
1186
  execution: "execution";
1181
1187
  }>;
1182
1188
  in: z.ZodOptional<z.ZodString>;
1183
- topics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1189
+ products: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1184
1190
  lineNumber: z.ZodOptional<z.ZodNumber>;
1185
1191
  featurePath: z.ZodOptional<z.ZodString>;
1186
1192
  }, z.core.$strip>]>, z.ZodObject<{
@@ -1190,12 +1196,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
1190
1196
  emitter: z.ZodOptional<z.ZodString>;
1191
1197
  kind: z.ZodLiteral<"log">;
1192
1198
  level: z.ZodEnum<{
1193
- error: "error";
1194
1199
  debug: "debug";
1195
1200
  trace: "trace";
1196
1201
  log: "log";
1197
1202
  info: "info";
1198
1203
  warn: "warn";
1204
+ error: "error";
1199
1205
  }>;
1200
1206
  message: z.ZodString;
1201
1207
  attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1205,12 +1211,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
1205
1211
  source: z.ZodDefault<z.ZodString>;
1206
1212
  emitter: z.ZodOptional<z.ZodString>;
1207
1213
  level: z.ZodDefault<z.ZodEnum<{
1208
- error: "error";
1209
1214
  debug: "debug";
1210
1215
  trace: "trace";
1211
1216
  log: "log";
1212
1217
  info: "info";
1213
1218
  warn: "warn";
1219
+ error: "error";
1214
1220
  }>>;
1215
1221
  kind: z.ZodLiteral<"artifact">;
1216
1222
  artifactType: z.ZodLiteral<"image">;
@@ -1222,12 +1228,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
1222
1228
  source: z.ZodDefault<z.ZodString>;
1223
1229
  emitter: z.ZodOptional<z.ZodString>;
1224
1230
  level: z.ZodDefault<z.ZodEnum<{
1225
- error: "error";
1226
1231
  debug: "debug";
1227
1232
  trace: "trace";
1228
1233
  log: "log";
1229
1234
  info: "info";
1230
1235
  warn: "warn";
1236
+ error: "error";
1231
1237
  }>>;
1232
1238
  kind: z.ZodLiteral<"artifact">;
1233
1239
  artifactType: z.ZodLiteral<"video">;
@@ -1242,12 +1248,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
1242
1248
  source: z.ZodDefault<z.ZodString>;
1243
1249
  emitter: z.ZodOptional<z.ZodString>;
1244
1250
  level: z.ZodDefault<z.ZodEnum<{
1245
- error: "error";
1246
1251
  debug: "debug";
1247
1252
  trace: "trace";
1248
1253
  log: "log";
1249
1254
  info: "info";
1250
1255
  warn: "warn";
1256
+ error: "error";
1251
1257
  }>>;
1252
1258
  kind: z.ZodLiteral<"artifact">;
1253
1259
  artifactType: z.ZodLiteral<"video-start">;
@@ -1258,12 +1264,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
1258
1264
  source: z.ZodDefault<z.ZodString>;
1259
1265
  emitter: z.ZodOptional<z.ZodString>;
1260
1266
  level: z.ZodDefault<z.ZodEnum<{
1261
- error: "error";
1262
1267
  debug: "debug";
1263
1268
  trace: "trace";
1264
1269
  log: "log";
1265
1270
  info: "info";
1266
1271
  warn: "warn";
1272
+ error: "error";
1267
1273
  }>>;
1268
1274
  kind: z.ZodLiteral<"artifact">;
1269
1275
  artifactType: z.ZodLiteral<"html">;
@@ -1275,12 +1281,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
1275
1281
  source: z.ZodDefault<z.ZodString>;
1276
1282
  emitter: z.ZodOptional<z.ZodString>;
1277
1283
  level: z.ZodDefault<z.ZodEnum<{
1278
- error: "error";
1279
1284
  debug: "debug";
1280
1285
  trace: "trace";
1281
1286
  log: "log";
1282
1287
  info: "info";
1283
1288
  warn: "warn";
1289
+ error: "error";
1284
1290
  }>>;
1285
1291
  kind: z.ZodLiteral<"artifact">;
1286
1292
  artifactType: z.ZodLiteral<"speech">;
@@ -1294,12 +1300,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
1294
1300
  source: z.ZodDefault<z.ZodString>;
1295
1301
  emitter: z.ZodOptional<z.ZodString>;
1296
1302
  level: z.ZodDefault<z.ZodEnum<{
1297
- error: "error";
1298
1303
  debug: "debug";
1299
1304
  trace: "trace";
1300
1305
  log: "log";
1301
1306
  info: "info";
1302
1307
  warn: "warn";
1308
+ error: "error";
1303
1309
  }>>;
1304
1310
  kind: z.ZodLiteral<"artifact">;
1305
1311
  artifactType: z.ZodLiteral<"json">;
@@ -1310,12 +1316,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
1310
1316
  timestamp: z.ZodNumber;
1311
1317
  emitter: z.ZodOptional<z.ZodString>;
1312
1318
  level: z.ZodDefault<z.ZodEnum<{
1313
- error: "error";
1314
1319
  debug: "debug";
1315
1320
  trace: "trace";
1316
1321
  log: "log";
1317
1322
  info: "info";
1318
1323
  warn: "warn";
1324
+ error: "error";
1319
1325
  }>>;
1320
1326
  kind: z.ZodLiteral<"artifact">;
1321
1327
  artifactType: z.ZodLiteral<"mermaid">;
@@ -1327,12 +1333,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
1327
1333
  source: z.ZodDefault<z.ZodString>;
1328
1334
  emitter: z.ZodOptional<z.ZodString>;
1329
1335
  level: z.ZodDefault<z.ZodEnum<{
1330
- error: "error";
1331
1336
  debug: "debug";
1332
1337
  trace: "trace";
1333
1338
  log: "log";
1334
1339
  info: "info";
1335
1340
  warn: "warn";
1341
+ error: "error";
1336
1342
  }>>;
1337
1343
  kind: z.ZodLiteral<"artifact">;
1338
1344
  artifactType: z.ZodLiteral<"http-trace">;
@@ -1358,12 +1364,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
1358
1364
  source: z.ZodDefault<z.ZodString>;
1359
1365
  emitter: z.ZodOptional<z.ZodString>;
1360
1366
  level: z.ZodDefault<z.ZodEnum<{
1361
- error: "error";
1362
1367
  debug: "debug";
1363
1368
  trace: "trace";
1364
1369
  log: "log";
1365
1370
  info: "info";
1366
1371
  warn: "warn";
1372
+ error: "error";
1367
1373
  }>>;
1368
1374
  kind: z.ZodLiteral<"artifact">;
1369
1375
  artifactType: z.ZodLiteral<"resolvedFeatures">;
@@ -1382,12 +1388,12 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
1382
1388
  source: z.ZodDefault<z.ZodString>;
1383
1389
  emitter: z.ZodOptional<z.ZodString>;
1384
1390
  level: z.ZodDefault<z.ZodEnum<{
1385
- error: "error";
1386
1391
  debug: "debug";
1387
1392
  trace: "trace";
1388
1393
  log: "log";
1389
1394
  info: "info";
1390
1395
  warn: "warn";
1396
+ error: "error";
1391
1397
  }>>;
1392
1398
  kind: z.ZodLiteral<"artifact">;
1393
1399
  artifactType: z.ZodLiteral<"file">;
@@ -1399,17 +1405,17 @@ export declare const HaibunEvent: z.ZodUnion<readonly [z.ZodUnion<readonly [z.Zo
1399
1405
  source: z.ZodDefault<z.ZodString>;
1400
1406
  emitter: z.ZodOptional<z.ZodString>;
1401
1407
  level: z.ZodDefault<z.ZodEnum<{
1402
- error: "error";
1403
1408
  debug: "debug";
1404
1409
  trace: "trace";
1405
1410
  log: "log";
1406
1411
  info: "info";
1407
1412
  warn: "warn";
1413
+ error: "error";
1408
1414
  }>>;
1409
1415
  kind: z.ZodLiteral<"control">;
1410
1416
  signal: z.ZodEnum<{
1411
- fail: "fail";
1412
1417
  step: "step";
1418
+ fail: "fail";
1413
1419
  continue: "continue";
1414
1420
  retry: "retry";
1415
1421
  next: "next";