@walkeros/core 4.0.0 → 4.1.0-next-1778155282668

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/dist/dev.d.mts CHANGED
@@ -795,6 +795,7 @@ declare const ConfigSchema$5: z.ZodObject<{
795
795
  }>]>>;
796
796
  handler: z.ZodOptional<z.ZodAny>;
797
797
  }, z.core.$strip>>;
798
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
798
799
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
799
800
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
800
801
  cache: z.ZodOptional<z.ZodObject<{
@@ -861,6 +862,7 @@ declare const PartialConfigSchema$3: z.ZodObject<{
861
862
  }>]>>;
862
863
  handler: z.ZodOptional<z.ZodAny>;
863
864
  }, z.core.$strip>>>;
865
+ setup: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
864
866
  before: z.ZodOptional<z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
865
867
  next: z.ZodOptional<z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
866
868
  cache: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -935,6 +937,7 @@ declare const ContextSchema: z.ZodObject<{
935
937
  }>]>>;
936
938
  handler: z.ZodOptional<z.ZodAny>;
937
939
  }, z.core.$strip>>;
940
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
938
941
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
939
942
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
940
943
  cache: z.ZodOptional<z.ZodObject<{
@@ -1003,6 +1006,7 @@ declare const PushContextSchema$1: z.ZodObject<{
1003
1006
  }>]>>;
1004
1007
  handler: z.ZodOptional<z.ZodAny>;
1005
1008
  }, z.core.$strip>>;
1009
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
1006
1010
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1007
1011
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1008
1012
  cache: z.ZodOptional<z.ZodObject<{
@@ -1083,6 +1087,7 @@ declare const PushBatchContextSchema: z.ZodObject<{
1083
1087
  }>]>>;
1084
1088
  handler: z.ZodOptional<z.ZodAny>;
1085
1089
  }, z.core.$strip>>;
1090
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
1086
1091
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1087
1092
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1088
1093
  cache: z.ZodOptional<z.ZodObject<{
@@ -1377,6 +1382,7 @@ declare const InstanceSchema$2: z.ZodObject<{
1377
1382
  }>]>>;
1378
1383
  handler: z.ZodOptional<z.ZodAny>;
1379
1384
  }, z.core.$strip>>;
1385
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
1380
1386
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1381
1387
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1382
1388
  cache: z.ZodOptional<z.ZodObject<{
@@ -1551,6 +1557,7 @@ declare const InitSchema$1: z.ZodObject<{
1551
1557
  }>]>>;
1552
1558
  handler: z.ZodOptional<z.ZodAny>;
1553
1559
  }, z.core.$strip>>;
1560
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
1554
1561
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1555
1562
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1556
1563
  cache: z.ZodOptional<z.ZodObject<{
@@ -1719,6 +1726,7 @@ declare const InitSchema$1: z.ZodObject<{
1719
1726
  }>]>>;
1720
1727
  handler: z.ZodOptional<z.ZodAny>;
1721
1728
  }, z.core.$strip>>>;
1729
+ setup: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
1722
1730
  before: z.ZodOptional<z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1723
1731
  next: z.ZodOptional<z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1724
1732
  cache: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -1785,6 +1793,7 @@ declare const InitDestinationsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1785
1793
  }>]>>;
1786
1794
  handler: z.ZodOptional<z.ZodAny>;
1787
1795
  }, z.core.$strip>>;
1796
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
1788
1797
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1789
1798
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1790
1799
  cache: z.ZodOptional<z.ZodObject<{
@@ -1953,6 +1962,7 @@ declare const InitDestinationsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1953
1962
  }>]>>;
1954
1963
  handler: z.ZodOptional<z.ZodAny>;
1955
1964
  }, z.core.$strip>>>;
1965
+ setup: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
1956
1966
  before: z.ZodOptional<z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1957
1967
  next: z.ZodOptional<z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1958
1968
  cache: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -2018,6 +2028,7 @@ declare const DestinationsSchema$1: z.ZodRecord<z.ZodString, z.ZodObject<{
2018
2028
  }>]>>;
2019
2029
  handler: z.ZodOptional<z.ZodAny>;
2020
2030
  }, z.core.$strip>>;
2031
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
2021
2032
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
2022
2033
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
2023
2034
  cache: z.ZodOptional<z.ZodObject<{
@@ -2784,8 +2795,10 @@ declare const ConfigSchema$3: z.ZodObject<{
2784
2795
  }>]>>;
2785
2796
  handler: z.ZodOptional<z.ZodAny>;
2786
2797
  }, z.core.$strip>>;
2798
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
2787
2799
  ingest: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>]>>;
2788
2800
  disabled: z.ZodOptional<z.ZodBoolean>;
2801
+ init: z.ZodOptional<z.ZodBoolean>;
2789
2802
  }, z.core.$strip>;
2790
2803
  /**
2791
2804
  * PartialConfig - Config with all fields optional
@@ -2841,8 +2854,10 @@ declare const PartialConfigSchema$2: z.ZodObject<{
2841
2854
  }>]>>;
2842
2855
  handler: z.ZodOptional<z.ZodAny>;
2843
2856
  }, z.core.$strip>>>;
2857
+ setup: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
2844
2858
  ingest: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>]>>>;
2845
2859
  disabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2860
+ init: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2846
2861
  }, z.core.$strip>;
2847
2862
  /**
2848
2863
  * Instance - Source instance (runtime object)
@@ -2914,8 +2929,10 @@ declare const InstanceSchema: z.ZodObject<{
2914
2929
  }>]>>;
2915
2930
  handler: z.ZodOptional<z.ZodAny>;
2916
2931
  }, z.core.$strip>>;
2932
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
2917
2933
  ingest: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>]>>;
2918
2934
  disabled: z.ZodOptional<z.ZodBoolean>;
2935
+ init: z.ZodOptional<z.ZodBoolean>;
2919
2936
  }, z.core.$strip>;
2920
2937
  push: z.ZodAny;
2921
2938
  destroy: z.ZodOptional<z.ZodAny>;
@@ -2996,8 +3013,10 @@ declare const InitSourceSchema: z.ZodObject<{
2996
3013
  }>]>>;
2997
3014
  handler: z.ZodOptional<z.ZodAny>;
2998
3015
  }, z.core.$strip>>>;
3016
+ setup: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
2999
3017
  ingest: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>]>>>;
3000
3018
  disabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3019
+ init: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3001
3020
  }, z.core.$strip>>;
3002
3021
  env: z.ZodOptional<z.ZodObject<{
3003
3022
  push: z.ZodOptional<z.ZodUnknown>;
@@ -3059,8 +3078,10 @@ declare const InitSourcesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3059
3078
  }>]>>;
3060
3079
  handler: z.ZodOptional<z.ZodAny>;
3061
3080
  }, z.core.$strip>>>;
3081
+ setup: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
3062
3082
  ingest: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>]>>>;
3063
3083
  disabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3084
+ init: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3064
3085
  }, z.core.$strip>>;
3065
3086
  env: z.ZodOptional<z.ZodObject<{
3066
3087
  push: z.ZodOptional<z.ZodUnknown>;
@@ -3206,6 +3227,7 @@ declare const ConfigSchema$1: z.ZodObject<{
3206
3227
  }>]>>;
3207
3228
  handler: z.ZodOptional<z.ZodAny>;
3208
3229
  }, z.core.$strip>>;
3230
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
3209
3231
  }, z.core.$strip>;
3210
3232
  /**
3211
3233
  * PartialConfig - Config with all fields optional
@@ -3223,6 +3245,7 @@ declare const PartialConfigSchema: z.ZodObject<{
3223
3245
  }>]>>;
3224
3246
  handler: z.ZodOptional<z.ZodAny>;
3225
3247
  }, z.core.$strip>>>;
3248
+ setup: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
3226
3249
  }, z.core.$strip>;
3227
3250
  declare const configJsonSchema$1: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3228
3251
  declare const partialConfigJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
@@ -3253,21 +3276,14 @@ declare namespace store {
3253
3276
  */
3254
3277
 
3255
3278
  /**
3256
- * Primitive value schema for variables.
3279
+ * Variables schema for unified $var. interpolation.
3257
3280
  *
3258
3281
  * @remarks
3259
- * Variables can be strings, numbers, or booleans.
3260
- * Used at root, flow, source, destination, transformer, and store levels.
3282
+ * Variables can hold any value (scalars, objects, arrays). Whole-string $var
3283
+ * references preserve native type; inline interpolation requires scalars.
3284
+ * Deep paths via `$var.name.deep.path` are supported.
3261
3285
  */
3262
- declare const PrimitiveSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
3263
- /**
3264
- * Variables schema for interpolation.
3265
- */
3266
- declare const VariablesSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
3267
- /**
3268
- * Definitions schema for reusable configurations.
3269
- */
3270
- declare const DefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3286
+ declare const VariablesSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3271
3287
  /**
3272
3288
  * Settings schema - free-form key-value bag inside Flow.Config.settings.
3273
3289
  */
@@ -3290,6 +3306,7 @@ declare const BundleSchema: z.ZodObject<{
3290
3306
  path: z.ZodOptional<z.ZodString>;
3291
3307
  }, z.core.$strip>>>;
3292
3308
  overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3309
+ traceInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
3293
3310
  }, z.core.$strict>;
3294
3311
  /**
3295
3312
  * Inline code schema for embedding JavaScript functions in JSON configs.
@@ -3377,11 +3394,12 @@ declare const SourceSchema: z.ZodObject<{
3377
3394
  type: z.ZodOptional<z.ZodString>;
3378
3395
  init: z.ZodOptional<z.ZodString>;
3379
3396
  }, z.core.$strip>]>>;
3380
- config: z.ZodOptional<z.ZodUnknown>;
3397
+ config: z.ZodOptional<z.ZodObject<{
3398
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
3399
+ }, z.core.$loose>>;
3381
3400
  env: z.ZodOptional<z.ZodUnknown>;
3382
3401
  primary: z.ZodOptional<z.ZodBoolean>;
3383
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3384
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3402
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3385
3403
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3386
3404
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3387
3405
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -3427,8 +3445,7 @@ declare const TransformerSchema: z.ZodObject<{
3427
3445
  env: z.ZodOptional<z.ZodUnknown>;
3428
3446
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3429
3447
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3430
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3431
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3448
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3432
3449
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3433
3450
  title: z.ZodOptional<z.ZodString>;
3434
3451
  description: z.ZodOptional<z.ZodString>;
@@ -3468,10 +3485,11 @@ declare const DestinationSchema: z.ZodObject<{
3468
3485
  type: z.ZodOptional<z.ZodString>;
3469
3486
  init: z.ZodOptional<z.ZodString>;
3470
3487
  }, z.core.$strip>]>>;
3471
- config: z.ZodOptional<z.ZodUnknown>;
3488
+ config: z.ZodOptional<z.ZodObject<{
3489
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
3490
+ }, z.core.$loose>>;
3472
3491
  env: z.ZodOptional<z.ZodUnknown>;
3473
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3474
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3492
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3475
3493
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3476
3494
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3477
3495
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -3517,10 +3535,11 @@ declare const StoreSchema: z.ZodObject<{
3517
3535
  type: z.ZodOptional<z.ZodString>;
3518
3536
  init: z.ZodOptional<z.ZodString>;
3519
3537
  }, z.core.$strip>]>>;
3520
- config: z.ZodOptional<z.ZodUnknown>;
3538
+ config: z.ZodOptional<z.ZodObject<{
3539
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
3540
+ }, z.core.$loose>>;
3521
3541
  env: z.ZodOptional<z.ZodUnknown>;
3522
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3523
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3542
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3524
3543
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3525
3544
  title: z.ZodOptional<z.ZodString>;
3526
3545
  description: z.ZodOptional<z.ZodString>;
@@ -3602,6 +3621,7 @@ declare const ConfigSchema: z.ZodObject<{
3602
3621
  path: z.ZodOptional<z.ZodString>;
3603
3622
  }, z.core.$strip>>>;
3604
3623
  overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3624
+ traceInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
3605
3625
  }, z.core.$strict>>;
3606
3626
  }, z.core.$strip>;
3607
3627
  /**
@@ -3626,6 +3646,7 @@ declare const FlowSchema: z.ZodObject<{
3626
3646
  path: z.ZodOptional<z.ZodString>;
3627
3647
  }, z.core.$strip>>>;
3628
3648
  overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3649
+ traceInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
3629
3650
  }, z.core.$strict>>;
3630
3651
  }, z.core.$strip>>;
3631
3652
  sources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -3635,11 +3656,12 @@ declare const FlowSchema: z.ZodObject<{
3635
3656
  type: z.ZodOptional<z.ZodString>;
3636
3657
  init: z.ZodOptional<z.ZodString>;
3637
3658
  }, z.core.$strip>]>>;
3638
- config: z.ZodOptional<z.ZodUnknown>;
3659
+ config: z.ZodOptional<z.ZodObject<{
3660
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
3661
+ }, z.core.$loose>>;
3639
3662
  env: z.ZodOptional<z.ZodUnknown>;
3640
3663
  primary: z.ZodOptional<z.ZodBoolean>;
3641
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3642
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3664
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3643
3665
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3644
3666
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3645
3667
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -3678,10 +3700,11 @@ declare const FlowSchema: z.ZodObject<{
3678
3700
  type: z.ZodOptional<z.ZodString>;
3679
3701
  init: z.ZodOptional<z.ZodString>;
3680
3702
  }, z.core.$strip>]>>;
3681
- config: z.ZodOptional<z.ZodUnknown>;
3703
+ config: z.ZodOptional<z.ZodObject<{
3704
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
3705
+ }, z.core.$loose>>;
3682
3706
  env: z.ZodOptional<z.ZodUnknown>;
3683
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3684
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3707
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3685
3708
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3686
3709
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3687
3710
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -3724,8 +3747,7 @@ declare const FlowSchema: z.ZodObject<{
3724
3747
  env: z.ZodOptional<z.ZodUnknown>;
3725
3748
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3726
3749
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3727
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3728
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3750
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3729
3751
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3730
3752
  title: z.ZodOptional<z.ZodString>;
3731
3753
  description: z.ZodOptional<z.ZodString>;
@@ -3762,10 +3784,11 @@ declare const FlowSchema: z.ZodObject<{
3762
3784
  type: z.ZodOptional<z.ZodString>;
3763
3785
  init: z.ZodOptional<z.ZodString>;
3764
3786
  }, z.core.$strip>]>>;
3765
- config: z.ZodOptional<z.ZodUnknown>;
3787
+ config: z.ZodOptional<z.ZodObject<{
3788
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
3789
+ }, z.core.$loose>>;
3766
3790
  env: z.ZodOptional<z.ZodUnknown>;
3767
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3768
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3791
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3769
3792
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3770
3793
  title: z.ZodOptional<z.ZodString>;
3771
3794
  description: z.ZodOptional<z.ZodString>;
@@ -3786,22 +3809,20 @@ declare const FlowSchema: z.ZodObject<{
3786
3809
  }, z.core.$strip>>>;
3787
3810
  }, z.core.$strip>>>;
3788
3811
  collector: z.ZodOptional<z.ZodUnknown>;
3789
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3790
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3812
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3791
3813
  }, z.core.$strip>;
3792
3814
  /**
3793
3815
  * Root walkerOS multi-flow configuration schema (Flow.Json, v4).
3794
3816
  *
3795
3817
  * @remarks
3796
3818
  * This is the complete schema for walkeros.config.json files.
3797
- * Contains multiple named flows with shared variables, definitions, and contracts.
3819
+ * Contains multiple named flows with shared variables and contracts.
3798
3820
  */
3799
3821
  declare const JsonSchema: z.ZodObject<{
3800
3822
  version: z.ZodLiteral<4>;
3801
3823
  $schema: z.ZodOptional<z.ZodString>;
3802
3824
  include: z.ZodOptional<z.ZodArray<z.ZodString>>;
3803
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3804
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3825
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3805
3826
  contract: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3806
3827
  extends: z.ZodOptional<z.ZodString>;
3807
3828
  tagging: z.ZodOptional<z.ZodNumber>;
@@ -3828,6 +3849,7 @@ declare const JsonSchema: z.ZodObject<{
3828
3849
  path: z.ZodOptional<z.ZodString>;
3829
3850
  }, z.core.$strip>>>;
3830
3851
  overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3852
+ traceInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
3831
3853
  }, z.core.$strict>>;
3832
3854
  }, z.core.$strip>>;
3833
3855
  sources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -3837,11 +3859,12 @@ declare const JsonSchema: z.ZodObject<{
3837
3859
  type: z.ZodOptional<z.ZodString>;
3838
3860
  init: z.ZodOptional<z.ZodString>;
3839
3861
  }, z.core.$strip>]>>;
3840
- config: z.ZodOptional<z.ZodUnknown>;
3862
+ config: z.ZodOptional<z.ZodObject<{
3863
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
3864
+ }, z.core.$loose>>;
3841
3865
  env: z.ZodOptional<z.ZodUnknown>;
3842
3866
  primary: z.ZodOptional<z.ZodBoolean>;
3843
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3844
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3867
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3845
3868
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3846
3869
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3847
3870
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -3880,10 +3903,11 @@ declare const JsonSchema: z.ZodObject<{
3880
3903
  type: z.ZodOptional<z.ZodString>;
3881
3904
  init: z.ZodOptional<z.ZodString>;
3882
3905
  }, z.core.$strip>]>>;
3883
- config: z.ZodOptional<z.ZodUnknown>;
3906
+ config: z.ZodOptional<z.ZodObject<{
3907
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
3908
+ }, z.core.$loose>>;
3884
3909
  env: z.ZodOptional<z.ZodUnknown>;
3885
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3886
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3910
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3887
3911
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3888
3912
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3889
3913
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -3926,8 +3950,7 @@ declare const JsonSchema: z.ZodObject<{
3926
3950
  env: z.ZodOptional<z.ZodUnknown>;
3927
3951
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3928
3952
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3929
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3930
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3953
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3931
3954
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3932
3955
  title: z.ZodOptional<z.ZodString>;
3933
3956
  description: z.ZodOptional<z.ZodString>;
@@ -3964,10 +3987,11 @@ declare const JsonSchema: z.ZodObject<{
3964
3987
  type: z.ZodOptional<z.ZodString>;
3965
3988
  init: z.ZodOptional<z.ZodString>;
3966
3989
  }, z.core.$strip>]>>;
3967
- config: z.ZodOptional<z.ZodUnknown>;
3990
+ config: z.ZodOptional<z.ZodObject<{
3991
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
3992
+ }, z.core.$loose>>;
3968
3993
  env: z.ZodOptional<z.ZodUnknown>;
3969
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3970
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3994
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3971
3995
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3972
3996
  title: z.ZodOptional<z.ZodString>;
3973
3997
  description: z.ZodOptional<z.ZodString>;
@@ -3988,8 +4012,7 @@ declare const JsonSchema: z.ZodObject<{
3988
4012
  }, z.core.$strip>>>;
3989
4013
  }, z.core.$strip>>>;
3990
4014
  collector: z.ZodOptional<z.ZodUnknown>;
3991
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3992
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4015
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3993
4016
  }, z.core.$strip>>;
3994
4017
  }, z.core.$strip>;
3995
4018
  /**
@@ -4030,6 +4053,7 @@ declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
4030
4053
  path?: string | undefined;
4031
4054
  }> | undefined;
4032
4055
  overrides?: Record<string, string> | undefined;
4056
+ traceInclude?: string[] | undefined;
4033
4057
  } | undefined;
4034
4058
  } | undefined;
4035
4059
  sources?: Record<string, {
@@ -4039,11 +4063,13 @@ declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
4039
4063
  type?: string | undefined;
4040
4064
  init?: string | undefined;
4041
4065
  } | undefined;
4042
- config?: unknown;
4066
+ config?: {
4067
+ [x: string]: unknown;
4068
+ setup?: boolean | Record<string, unknown> | undefined;
4069
+ } | undefined;
4043
4070
  env?: unknown;
4044
4071
  primary?: boolean | undefined;
4045
- variables?: Record<string, string | number | boolean> | undefined;
4046
- definitions?: Record<string, unknown> | undefined;
4072
+ variables?: Record<string, unknown> | undefined;
4047
4073
  next?: unknown;
4048
4074
  before?: unknown;
4049
4075
  examples?: Record<string, {
@@ -4077,10 +4103,12 @@ declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
4077
4103
  type?: string | undefined;
4078
4104
  init?: string | undefined;
4079
4105
  } | undefined;
4080
- config?: unknown;
4106
+ config?: {
4107
+ [x: string]: unknown;
4108
+ setup?: boolean | Record<string, unknown> | undefined;
4109
+ } | undefined;
4081
4110
  env?: unknown;
4082
- variables?: Record<string, string | number | boolean> | undefined;
4083
- definitions?: Record<string, unknown> | undefined;
4111
+ variables?: Record<string, unknown> | undefined;
4084
4112
  before?: unknown;
4085
4113
  next?: unknown;
4086
4114
  examples?: Record<string, {
@@ -4118,8 +4146,7 @@ declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
4118
4146
  env?: unknown;
4119
4147
  before?: unknown;
4120
4148
  next?: unknown;
4121
- variables?: Record<string, string | number | boolean> | undefined;
4122
- definitions?: Record<string, unknown> | undefined;
4149
+ variables?: Record<string, unknown> | undefined;
4123
4150
  examples?: Record<string, {
4124
4151
  title?: string | undefined;
4125
4152
  description?: string | undefined;
@@ -4151,10 +4178,12 @@ declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
4151
4178
  type?: string | undefined;
4152
4179
  init?: string | undefined;
4153
4180
  } | undefined;
4154
- config?: unknown;
4181
+ config?: {
4182
+ [x: string]: unknown;
4183
+ setup?: boolean | Record<string, unknown> | undefined;
4184
+ } | undefined;
4155
4185
  env?: unknown;
4156
- variables?: Record<string, string | number | boolean> | undefined;
4157
- definitions?: Record<string, unknown> | undefined;
4186
+ variables?: Record<string, unknown> | undefined;
4158
4187
  examples?: Record<string, {
4159
4188
  title?: string | undefined;
4160
4189
  description?: string | undefined;
@@ -4170,13 +4199,11 @@ declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
4170
4199
  }> | undefined;
4171
4200
  }> | undefined;
4172
4201
  collector?: unknown;
4173
- variables?: Record<string, string | number | boolean> | undefined;
4174
- definitions?: Record<string, unknown> | undefined;
4202
+ variables?: Record<string, unknown> | undefined;
4175
4203
  }>;
4176
4204
  $schema?: string | undefined;
4177
4205
  include?: string[] | undefined;
4178
- variables?: Record<string, string | number | boolean> | undefined;
4179
- definitions?: Record<string, unknown> | undefined;
4206
+ variables?: Record<string, unknown> | undefined;
4180
4207
  contract?: Record<string, {
4181
4208
  extends?: string | undefined;
4182
4209
  tagging?: number | undefined;
@@ -4212,6 +4239,7 @@ declare function safeParseFlow(data: unknown): z.ZodSafeParseResult<{
4212
4239
  path?: string | undefined;
4213
4240
  }> | undefined;
4214
4241
  overrides?: Record<string, string> | undefined;
4242
+ traceInclude?: string[] | undefined;
4215
4243
  } | undefined;
4216
4244
  } | undefined;
4217
4245
  sources?: Record<string, {
@@ -4221,11 +4249,13 @@ declare function safeParseFlow(data: unknown): z.ZodSafeParseResult<{
4221
4249
  type?: string | undefined;
4222
4250
  init?: string | undefined;
4223
4251
  } | undefined;
4224
- config?: unknown;
4252
+ config?: {
4253
+ [x: string]: unknown;
4254
+ setup?: boolean | Record<string, unknown> | undefined;
4255
+ } | undefined;
4225
4256
  env?: unknown;
4226
4257
  primary?: boolean | undefined;
4227
- variables?: Record<string, string | number | boolean> | undefined;
4228
- definitions?: Record<string, unknown> | undefined;
4258
+ variables?: Record<string, unknown> | undefined;
4229
4259
  next?: unknown;
4230
4260
  before?: unknown;
4231
4261
  examples?: Record<string, {
@@ -4259,10 +4289,12 @@ declare function safeParseFlow(data: unknown): z.ZodSafeParseResult<{
4259
4289
  type?: string | undefined;
4260
4290
  init?: string | undefined;
4261
4291
  } | undefined;
4262
- config?: unknown;
4292
+ config?: {
4293
+ [x: string]: unknown;
4294
+ setup?: boolean | Record<string, unknown> | undefined;
4295
+ } | undefined;
4263
4296
  env?: unknown;
4264
- variables?: Record<string, string | number | boolean> | undefined;
4265
- definitions?: Record<string, unknown> | undefined;
4297
+ variables?: Record<string, unknown> | undefined;
4266
4298
  before?: unknown;
4267
4299
  next?: unknown;
4268
4300
  examples?: Record<string, {
@@ -4300,8 +4332,7 @@ declare function safeParseFlow(data: unknown): z.ZodSafeParseResult<{
4300
4332
  env?: unknown;
4301
4333
  before?: unknown;
4302
4334
  next?: unknown;
4303
- variables?: Record<string, string | number | boolean> | undefined;
4304
- definitions?: Record<string, unknown> | undefined;
4335
+ variables?: Record<string, unknown> | undefined;
4305
4336
  examples?: Record<string, {
4306
4337
  title?: string | undefined;
4307
4338
  description?: string | undefined;
@@ -4333,10 +4364,12 @@ declare function safeParseFlow(data: unknown): z.ZodSafeParseResult<{
4333
4364
  type?: string | undefined;
4334
4365
  init?: string | undefined;
4335
4366
  } | undefined;
4336
- config?: unknown;
4367
+ config?: {
4368
+ [x: string]: unknown;
4369
+ setup?: boolean | Record<string, unknown> | undefined;
4370
+ } | undefined;
4337
4371
  env?: unknown;
4338
- variables?: Record<string, string | number | boolean> | undefined;
4339
- definitions?: Record<string, unknown> | undefined;
4372
+ variables?: Record<string, unknown> | undefined;
4340
4373
  examples?: Record<string, {
4341
4374
  title?: string | undefined;
4342
4375
  description?: string | undefined;
@@ -4352,8 +4385,7 @@ declare function safeParseFlow(data: unknown): z.ZodSafeParseResult<{
4352
4385
  }> | undefined;
4353
4386
  }> | undefined;
4354
4387
  collector?: unknown;
4355
- variables?: Record<string, string | number | boolean> | undefined;
4356
- definitions?: Record<string, unknown> | undefined;
4388
+ variables?: Record<string, unknown> | undefined;
4357
4389
  }>;
4358
4390
  /**
4359
4391
  * JSON Schema for Flow.Json (root walkeros.config.json).
@@ -4366,8 +4398,7 @@ declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<
4366
4398
  version: z.ZodLiteral<4>;
4367
4399
  $schema: z.ZodOptional<z.ZodString>;
4368
4400
  include: z.ZodOptional<z.ZodArray<z.ZodString>>;
4369
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
4370
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4401
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4371
4402
  contract: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
4372
4403
  extends: z.ZodOptional<z.ZodString>;
4373
4404
  tagging: z.ZodOptional<z.ZodNumber>;
@@ -4394,6 +4425,7 @@ declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<
4394
4425
  path: z.ZodOptional<z.ZodString>;
4395
4426
  }, z.core.$strip>>>;
4396
4427
  overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4428
+ traceInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
4397
4429
  }, z.core.$strict>>;
4398
4430
  }, z.core.$strip>>;
4399
4431
  sources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -4403,11 +4435,12 @@ declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<
4403
4435
  type: z.ZodOptional<z.ZodString>;
4404
4436
  init: z.ZodOptional<z.ZodString>;
4405
4437
  }, z.core.$strip>]>>;
4406
- config: z.ZodOptional<z.ZodUnknown>;
4438
+ config: z.ZodOptional<z.ZodObject<{
4439
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
4440
+ }, z.core.$loose>>;
4407
4441
  env: z.ZodOptional<z.ZodUnknown>;
4408
4442
  primary: z.ZodOptional<z.ZodBoolean>;
4409
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
4410
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4443
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4411
4444
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
4412
4445
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
4413
4446
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -4446,10 +4479,11 @@ declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<
4446
4479
  type: z.ZodOptional<z.ZodString>;
4447
4480
  init: z.ZodOptional<z.ZodString>;
4448
4481
  }, z.core.$strip>]>>;
4449
- config: z.ZodOptional<z.ZodUnknown>;
4482
+ config: z.ZodOptional<z.ZodObject<{
4483
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
4484
+ }, z.core.$loose>>;
4450
4485
  env: z.ZodOptional<z.ZodUnknown>;
4451
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
4452
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4486
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4453
4487
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
4454
4488
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
4455
4489
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -4492,8 +4526,7 @@ declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<
4492
4526
  env: z.ZodOptional<z.ZodUnknown>;
4493
4527
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
4494
4528
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
4495
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
4496
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4529
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4497
4530
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
4498
4531
  title: z.ZodOptional<z.ZodString>;
4499
4532
  description: z.ZodOptional<z.ZodString>;
@@ -4530,10 +4563,11 @@ declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<
4530
4563
  type: z.ZodOptional<z.ZodString>;
4531
4564
  init: z.ZodOptional<z.ZodString>;
4532
4565
  }, z.core.$strip>]>>;
4533
- config: z.ZodOptional<z.ZodUnknown>;
4566
+ config: z.ZodOptional<z.ZodObject<{
4567
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
4568
+ }, z.core.$loose>>;
4534
4569
  env: z.ZodOptional<z.ZodUnknown>;
4535
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
4536
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4570
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4537
4571
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
4538
4572
  title: z.ZodOptional<z.ZodString>;
4539
4573
  description: z.ZodOptional<z.ZodString>;
@@ -4554,8 +4588,7 @@ declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<
4554
4588
  }, z.core.$strip>>>;
4555
4589
  }, z.core.$strip>>>;
4556
4590
  collector: z.ZodOptional<z.ZodUnknown>;
4557
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
4558
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4591
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4559
4592
  }, z.core.$strip>>;
4560
4593
  }, z.core.$strip>>;
4561
4594
  /**
@@ -4599,11 +4632,9 @@ declare const flow_ContractEventsSchema: typeof ContractEventsSchema;
4599
4632
  declare const flow_ContractRuleSchema: typeof ContractRuleSchema;
4600
4633
  declare const flow_ContractSchema: typeof ContractSchema;
4601
4634
  declare const flow_ContractSchemaEntry: typeof ContractSchemaEntry;
4602
- declare const flow_DefinitionsSchema: typeof DefinitionsSchema;
4603
4635
  declare const flow_DestinationSchema: typeof DestinationSchema;
4604
4636
  declare const flow_FlowSchema: typeof FlowSchema;
4605
4637
  declare const flow_JsonSchema: typeof JsonSchema;
4606
- declare const flow_PrimitiveSchema: typeof PrimitiveSchema;
4607
4638
  declare const flow_SettingsSchema: typeof SettingsSchema;
4608
4639
  declare const flow_SourceSchema: typeof SourceSchema;
4609
4640
  declare const flow_StepExampleSchema: typeof StepExampleSchema;
@@ -4626,7 +4657,7 @@ declare const flow_sourceJsonSchema: typeof sourceJsonSchema;
4626
4657
  declare const flow_storeJsonSchema: typeof storeJsonSchema;
4627
4658
  declare const flow_transformerJsonSchema: typeof transformerJsonSchema;
4628
4659
  declare namespace flow {
4629
- export { flow_BundlePackageSchema as BundlePackageSchema, flow_BundleSchema as BundleSchema, CodeSchema$1 as CodeSchema, flow_ConfigSchema as ConfigSchema, flow_ContractActionsSchema as ContractActionsSchema, flow_ContractEventsSchema as ContractEventsSchema, flow_ContractRuleSchema as ContractRuleSchema, flow_ContractSchema as ContractSchema, flow_ContractSchemaEntry as ContractSchemaEntry, flow_DefinitionsSchema as DefinitionsSchema, flow_DestinationSchema as DestinationSchema, flow_FlowSchema as FlowSchema, flow_JsonSchema as JsonSchema, flow_PrimitiveSchema as PrimitiveSchema, flow_SettingsSchema as SettingsSchema, flow_SourceSchema as SourceSchema, flow_StepExampleSchema as StepExampleSchema, flow_StepExamplesSchema as StepExamplesSchema, flow_StoreSchema as StoreSchema, flow_TransformerSchema as TransformerSchema, flow_TriggerDescriptorSchema as TriggerDescriptorSchema, flow_VariablesSchema as VariablesSchema, flow_configJsonSchema as configJsonSchema, flow_contractJsonSchema as contractJsonSchema, flow_contractRuleJsonSchema as contractRuleJsonSchema, flow_destinationJsonSchema as destinationJsonSchema, flow_flowConfigJsonSchema as flowConfigJsonSchema, flow_flowJsonSchema as flowJsonSchema, flow_parseConfig as parseConfig, flow_parseFlow as parseFlow, flow_safeParseConfig as safeParseConfig, flow_safeParseFlow as safeParseFlow, flow_sourceJsonSchema as sourceJsonSchema, flow_storeJsonSchema as storeJsonSchema, flow_transformerJsonSchema as transformerJsonSchema };
4660
+ export { flow_BundlePackageSchema as BundlePackageSchema, flow_BundleSchema as BundleSchema, CodeSchema$1 as CodeSchema, flow_ConfigSchema as ConfigSchema, flow_ContractActionsSchema as ContractActionsSchema, flow_ContractEventsSchema as ContractEventsSchema, flow_ContractRuleSchema as ContractRuleSchema, flow_ContractSchema as ContractSchema, flow_ContractSchemaEntry as ContractSchemaEntry, flow_DestinationSchema as DestinationSchema, flow_FlowSchema as FlowSchema, flow_JsonSchema as JsonSchema, flow_SettingsSchema as SettingsSchema, flow_SourceSchema as SourceSchema, flow_StepExampleSchema as StepExampleSchema, flow_StepExamplesSchema as StepExamplesSchema, flow_StoreSchema as StoreSchema, flow_TransformerSchema as TransformerSchema, flow_TriggerDescriptorSchema as TriggerDescriptorSchema, flow_VariablesSchema as VariablesSchema, flow_configJsonSchema as configJsonSchema, flow_contractJsonSchema as contractJsonSchema, flow_contractRuleJsonSchema as contractRuleJsonSchema, flow_destinationJsonSchema as destinationJsonSchema, flow_flowConfigJsonSchema as flowConfigJsonSchema, flow_flowJsonSchema as flowJsonSchema, flow_parseConfig as parseConfig, flow_parseFlow as parseFlow, flow_safeParseConfig as safeParseConfig, flow_safeParseFlow as safeParseFlow, flow_sourceJsonSchema as sourceJsonSchema, flow_storeJsonSchema as storeJsonSchema, flow_transformerJsonSchema as transformerJsonSchema };
4630
4661
  }
4631
4662
 
4632
4663
  /**
@@ -4855,8 +4886,7 @@ interface PackageInfo {
4855
4886
  description?: string;
4856
4887
  }
4857
4888
  interface IntelliSenseContext {
4858
- variables?: Record<string, string | number | boolean>;
4859
- definitions?: Record<string, unknown>;
4889
+ variables?: Record<string, unknown>;
4860
4890
  secrets?: string[];
4861
4891
  stepNames?: {
4862
4892
  sources?: string[];
@@ -4875,12 +4905,12 @@ interface IntelliSenseContext {
4875
4905
  * Validate a Flow.Config JSON string.
4876
4906
  *
4877
4907
  * Performs three levels of validation:
4878
- * 1. JSON syntax parse error with line/column
4879
- * 2. Schema Zod ConfigSchema validation with mapped positions
4880
- * 3. References checks $var., $def., $secret. against extracted context
4908
+ * 1. JSON syntax (parse error with line/column)
4909
+ * 2. Schema (Zod ConfigSchema validation with mapped positions)
4910
+ * 3. References (checks $var., $secret. against extracted context)
4881
4911
  *
4882
4912
  * Returns errors, warnings, and extracted IntelliSenseContext as a byproduct.
4883
- * Pure function works in Node.js (CLI/MCP) and browser (CodeBox).
4913
+ * Pure function: works in Node.js (CLI/MCP) and browser (CodeBox).
4884
4914
  */
4885
4915
  declare function validateFlowConfig(json: string): ValidationResult;
4886
4916
 
@@ -5127,7 +5157,6 @@ type index_PackageInfo = PackageInfo;
5127
5157
  declare const index_PartialEventSchema: typeof PartialEventSchema;
5128
5158
  declare const index_PolicySchema: typeof PolicySchema;
5129
5159
  declare const index_PrimaryConfig: typeof PrimaryConfig;
5130
- declare const index_PrimitiveSchema: typeof PrimitiveSchema;
5131
5160
  declare const index_PrimitiveValue: typeof PrimitiveValue;
5132
5161
  declare const index_ProcessingControlConfig: typeof ProcessingControlConfig;
5133
5162
  declare const index_PropertiesSchema: typeof PropertiesSchema;
@@ -5194,7 +5223,7 @@ declare const index_valueJsonSchema: typeof valueJsonSchema;
5194
5223
  declare const index_z: typeof z;
5195
5224
  declare const index_zodToSchema: typeof zodToSchema;
5196
5225
  declare namespace index {
5197
- export { index_BaseContextConfig as BaseContextConfig, index_BatchConfig as BatchConfig, index_CacheRuleSchema as CacheRuleSchema, index_CacheSchema as CacheSchema, cache as CacheSchemas, index_ClickIdEntrySchema as ClickIdEntrySchema, index_CodeSchema as CodeSchema, collector as CollectorSchemas, index_ConsentSchema as ConsentSchema, index_ContractActionsSchema as ContractActionsSchema, index_ContractRuleSchema as ContractRuleSchema, index_ContractSchema as ContractSchema, index_ContractSchemaEntry as ContractSchemaEntry, index_Counter as Counter, index_DeepPartialEventSchema as DeepPartialEventSchema, destination as DestinationSchemas, index_DestinationsMapConfig as DestinationsMapConfig, index_EntitiesSchema as EntitiesSchema, index_EntitySchema as EntitySchema, index_EventSchema as EventSchema, BundlePackageSchema as FlowBundlePackageSchema, BundleSchema as FlowBundleSchema, CodeSchema$1 as FlowCodeSchema, ConfigSchema as FlowConfigSchema, DestinationSchema as FlowDestinationSchema, JsonSchema as FlowJsonSchema, index_FlowSchema as FlowSchema, flow as FlowSchemas, SourceSchema as FlowSourceSchema, StoreSchema as FlowStoreSchema, TransformerSchema as FlowTransformerSchema, index_GenericEnvConfig as GenericEnvConfig, index_GenericSettingsConfig as GenericSettingsConfig, index_HandlersConfig as HandlersConfig, index_HintSchema as HintSchema, index_HintsSchema as HintsSchema, index_IdConfig as IdConfig, index_Identifier as Identifier, InitConfig$1 as InitConfig, type index_IntelliSenseContext as IntelliSenseContext, type index_JSONSchema as JSONSchema, index_LoggerConfigSchema as LoggerConfigSchema, index_LoggerHandlerSchema as LoggerHandlerSchema, index_LoopSchema as LoopSchema, index_MapSchema as MapSchema, ResultSchema$1 as MappingResultSchema, mapping as MappingSchemas, index_MatchExpressionSchema as MatchExpressionSchema, matcher as MatcherSchemas, index_NextRuleSchema as NextRuleSchema, index_OptionalPrimitiveValue as OptionalPrimitiveValue, index_OrderedPropertiesSchema as OrderedPropertiesSchema, type index_PackageInfo as PackageInfo, index_PartialEventSchema as PartialEventSchema, index_PolicySchema as PolicySchema, index_PrimaryConfig as PrimaryConfig, index_PrimitiveSchema as PrimitiveSchema, index_PrimitiveValue as PrimitiveValue, index_ProcessingControlConfig as ProcessingControlConfig, index_PropertiesSchema as PropertiesSchema, type index_PropertyDef as PropertyDef, index_PropertySchema as PropertySchema, index_PropertyTypeSchema as PropertyTypeSchema, index_QueueConfig as QueueConfig, index_RequiredBoolean as RequiredBoolean, index_RequiredNumber as RequiredNumber, index_RequiredString as RequiredString, index_RoutableNextSchema as RoutableNextSchema, index_RuleSchema as RuleSchema, index_RulesSchema as RulesSchema, index_RuntimeInstanceConfig as RuntimeInstanceConfig, index_SetSchema as SetSchema, SourceSchema$1 as SourceSchema, source as SourceSchemas, index_SourceTypeSchema as SourceTypeSchema, index_SourcesMapConfig as SourcesMapConfig, store as StoreSchemas, index_Timestamp as Timestamp, transformer as TransformerSchemas, index_UserSchema as UserSchema, utilities as UtilitySchemas, type index_ValidationIssue as ValidationIssue, type index_ValidationResult as ValidationResult, index_ValueConfigSchema as ValueConfigSchema, index_ValueSchema as ValueSchema, index_ValuesSchema as ValuesSchema, index_VerboseConfig as VerboseConfig, walkeros as WalkerOSSchemas, index_configJsonSchema as configJsonSchema, index_consentJsonSchema as consentJsonSchema, index_contractJsonSchema as contractJsonSchema, index_contractRuleJsonSchema as contractRuleJsonSchema, index_createArraySchema as createArraySchema, index_createConsentConfig as createConsentConfig, index_createDataTransformationConfig as createDataTransformationConfig, index_createEnumSchema as createEnumSchema, index_createMappingRulesConfig as createMappingRulesConfig, index_createObjectSchema as createObjectSchema, index_createPolicyConfig as createPolicyConfig, index_createTupleSchema as createTupleSchema, index_destinationJsonSchema as destinationJsonSchema, index_entityJsonSchema as entityJsonSchema, index_eventJsonSchema as eventJsonSchema, index_flowConfigJsonSchema as flowConfigJsonSchema, index_flowJsonSchema as flowJsonSchema, index_loopJsonSchema as loopJsonSchema, index_mapJsonSchema as mapJsonSchema, index_orderedPropertiesJsonSchema as orderedPropertiesJsonSchema, index_parseConfig as parseConfig, index_parseFlow as parseFlow, index_partialEventJsonSchema as partialEventJsonSchema, index_policyJsonSchema as policyJsonSchema, index_propertiesJsonSchema as propertiesJsonSchema, index_ruleJsonSchema as ruleJsonSchema, index_rulesJsonSchema as rulesJsonSchema, index_safeParseConfig as safeParseConfig, index_safeParseFlow as safeParseFlow, index_setJsonSchema as setJsonSchema, index_sourceJsonSchema as sourceJsonSchema, index_sourceTypeJsonSchema as sourceTypeJsonSchema, index_storeJsonSchema as storeJsonSchema, index_transformerJsonSchema as transformerJsonSchema, index_userJsonSchema as userJsonSchema, index_validateFlowConfig as validateFlowConfig, index_valueConfigJsonSchema as valueConfigJsonSchema, index_valueJsonSchema as valueJsonSchema, index_z as z, index_zodToSchema as zodToSchema };
5226
+ export { index_BaseContextConfig as BaseContextConfig, index_BatchConfig as BatchConfig, index_CacheRuleSchema as CacheRuleSchema, index_CacheSchema as CacheSchema, cache as CacheSchemas, index_ClickIdEntrySchema as ClickIdEntrySchema, index_CodeSchema as CodeSchema, collector as CollectorSchemas, index_ConsentSchema as ConsentSchema, index_ContractActionsSchema as ContractActionsSchema, index_ContractRuleSchema as ContractRuleSchema, index_ContractSchema as ContractSchema, index_ContractSchemaEntry as ContractSchemaEntry, index_Counter as Counter, index_DeepPartialEventSchema as DeepPartialEventSchema, destination as DestinationSchemas, index_DestinationsMapConfig as DestinationsMapConfig, index_EntitiesSchema as EntitiesSchema, index_EntitySchema as EntitySchema, index_EventSchema as EventSchema, BundlePackageSchema as FlowBundlePackageSchema, BundleSchema as FlowBundleSchema, CodeSchema$1 as FlowCodeSchema, ConfigSchema as FlowConfigSchema, DestinationSchema as FlowDestinationSchema, JsonSchema as FlowJsonSchema, index_FlowSchema as FlowSchema, flow as FlowSchemas, SourceSchema as FlowSourceSchema, StoreSchema as FlowStoreSchema, TransformerSchema as FlowTransformerSchema, index_GenericEnvConfig as GenericEnvConfig, index_GenericSettingsConfig as GenericSettingsConfig, index_HandlersConfig as HandlersConfig, index_HintSchema as HintSchema, index_HintsSchema as HintsSchema, index_IdConfig as IdConfig, index_Identifier as Identifier, InitConfig$1 as InitConfig, type index_IntelliSenseContext as IntelliSenseContext, type index_JSONSchema as JSONSchema, index_LoggerConfigSchema as LoggerConfigSchema, index_LoggerHandlerSchema as LoggerHandlerSchema, index_LoopSchema as LoopSchema, index_MapSchema as MapSchema, ResultSchema$1 as MappingResultSchema, mapping as MappingSchemas, index_MatchExpressionSchema as MatchExpressionSchema, matcher as MatcherSchemas, index_NextRuleSchema as NextRuleSchema, index_OptionalPrimitiveValue as OptionalPrimitiveValue, index_OrderedPropertiesSchema as OrderedPropertiesSchema, type index_PackageInfo as PackageInfo, index_PartialEventSchema as PartialEventSchema, index_PolicySchema as PolicySchema, index_PrimaryConfig as PrimaryConfig, index_PrimitiveValue as PrimitiveValue, index_ProcessingControlConfig as ProcessingControlConfig, index_PropertiesSchema as PropertiesSchema, type index_PropertyDef as PropertyDef, index_PropertySchema as PropertySchema, index_PropertyTypeSchema as PropertyTypeSchema, index_QueueConfig as QueueConfig, index_RequiredBoolean as RequiredBoolean, index_RequiredNumber as RequiredNumber, index_RequiredString as RequiredString, index_RoutableNextSchema as RoutableNextSchema, index_RuleSchema as RuleSchema, index_RulesSchema as RulesSchema, index_RuntimeInstanceConfig as RuntimeInstanceConfig, index_SetSchema as SetSchema, SourceSchema$1 as SourceSchema, source as SourceSchemas, index_SourceTypeSchema as SourceTypeSchema, index_SourcesMapConfig as SourcesMapConfig, store as StoreSchemas, index_Timestamp as Timestamp, transformer as TransformerSchemas, index_UserSchema as UserSchema, utilities as UtilitySchemas, type index_ValidationIssue as ValidationIssue, type index_ValidationResult as ValidationResult, index_ValueConfigSchema as ValueConfigSchema, index_ValueSchema as ValueSchema, index_ValuesSchema as ValuesSchema, index_VerboseConfig as VerboseConfig, walkeros as WalkerOSSchemas, index_configJsonSchema as configJsonSchema, index_consentJsonSchema as consentJsonSchema, index_contractJsonSchema as contractJsonSchema, index_contractRuleJsonSchema as contractRuleJsonSchema, index_createArraySchema as createArraySchema, index_createConsentConfig as createConsentConfig, index_createDataTransformationConfig as createDataTransformationConfig, index_createEnumSchema as createEnumSchema, index_createMappingRulesConfig as createMappingRulesConfig, index_createObjectSchema as createObjectSchema, index_createPolicyConfig as createPolicyConfig, index_createTupleSchema as createTupleSchema, index_destinationJsonSchema as destinationJsonSchema, index_entityJsonSchema as entityJsonSchema, index_eventJsonSchema as eventJsonSchema, index_flowConfigJsonSchema as flowConfigJsonSchema, index_flowJsonSchema as flowJsonSchema, index_loopJsonSchema as loopJsonSchema, index_mapJsonSchema as mapJsonSchema, index_orderedPropertiesJsonSchema as orderedPropertiesJsonSchema, index_parseConfig as parseConfig, index_parseFlow as parseFlow, index_partialEventJsonSchema as partialEventJsonSchema, index_policyJsonSchema as policyJsonSchema, index_propertiesJsonSchema as propertiesJsonSchema, index_ruleJsonSchema as ruleJsonSchema, index_rulesJsonSchema as rulesJsonSchema, index_safeParseConfig as safeParseConfig, index_safeParseFlow as safeParseFlow, index_setJsonSchema as setJsonSchema, index_sourceJsonSchema as sourceJsonSchema, index_sourceTypeJsonSchema as sourceTypeJsonSchema, index_storeJsonSchema as storeJsonSchema, index_transformerJsonSchema as transformerJsonSchema, index_userJsonSchema as userJsonSchema, index_validateFlowConfig as validateFlowConfig, index_valueConfigJsonSchema as valueConfigJsonSchema, index_valueJsonSchema as valueJsonSchema, index_z as z, index_zodToSchema as zodToSchema };
5198
5227
  }
5199
5228
 
5200
5229
  type PackageType = 'source' | 'destination' | 'transformer' | 'store';
@@ -5400,7 +5429,6 @@ interface Instance$5 {
5400
5429
  timing: number;
5401
5430
  user: User;
5402
5431
  pending: {
5403
- sources: InitSources;
5404
5432
  destinations: InitDestinations;
5405
5433
  };
5406
5434
  }
@@ -5417,29 +5445,25 @@ interface Base<C = unknown, E = unknown> {
5417
5445
  }
5418
5446
 
5419
5447
  /**
5420
- * Context provided to the destroy() lifecycle method.
5421
- *
5422
- * A subset of the init context — config, env, logger, and id.
5423
- * Does NOT include collector or event data. Destroy should only
5424
- * clean up resources, not interact with the event pipeline.
5448
+ * Shared context for one-shot lifecycle hooks (setup, destroy).
5449
+ * No event pipeline machinery — just config, env, logger, and id.
5425
5450
  */
5426
- interface DestroyContext<C = unknown, E = unknown> {
5427
- /** Step instance ID. */
5451
+ interface LifecycleContext<C = unknown, E = unknown> {
5428
5452
  id: string;
5429
- /** Step configuration (contains settings with SDK clients, etc.). */
5430
5453
  config: C;
5431
- /** Runtime environment/dependencies (DB clients, auth clients, etc.). */
5432
5454
  env: E;
5433
- /** Scoped logger for this step instance. */
5434
5455
  logger: Instance$3;
5435
5456
  }
5457
+ /**
5458
+ * Setup function signature. Called once via `walkeros setup <kind>.<name>`.
5459
+ * Packages own idempotency and error semantics. Return value (if any) is
5460
+ * JSON-stringified to stdout by the CLI for scripting use.
5461
+ */
5462
+ type SetupFn<C = unknown, E = unknown> = (context: LifecycleContext<C, E>) => PromiseOrValue<unknown>;
5436
5463
  /**
5437
5464
  * Destroy function signature for step lifecycle cleanup.
5438
- *
5439
- * Implementations should be idempotent — calling destroy() twice must not throw.
5440
- * Used for closing connections, clearing timers, releasing SDK clients.
5441
5465
  */
5442
- type DestroyFn<C = unknown, E = unknown> = (context: DestroyContext<C, E>) => PromiseOrValue<void>;
5466
+ type DestroyFn<C = unknown, E = unknown> = (context: LifecycleContext<C, E>) => PromiseOrValue<void>;
5443
5467
 
5444
5468
  /**
5445
5469
  * Base environment requirements interface for walkerOS destinations
@@ -5457,13 +5481,14 @@ interface BaseEnv$3 {
5457
5481
  }
5458
5482
  /**
5459
5483
  * Type bundle for destination generics.
5460
- * Groups Settings, InitSettings, Mapping, and Env into a single type parameter.
5484
+ * Groups Settings, InitSettings, Mapping, Env, and Setup into a single type parameter.
5461
5485
  */
5462
- interface Types$4<S = unknown, M = unknown, E = BaseEnv$3, I = S> {
5486
+ interface Types$4<S = unknown, M = unknown, E = BaseEnv$3, I = S, U = unknown> {
5463
5487
  settings: S;
5464
5488
  initSettings: I;
5465
5489
  mapping: M;
5466
5490
  env: E;
5491
+ setup: U;
5467
5492
  }
5468
5493
  /**
5469
5494
  * Generic constraint for Types - ensures T has required properties for indexed access
@@ -5473,10 +5498,12 @@ type TypesGeneric$3 = {
5473
5498
  initSettings: any;
5474
5499
  mapping: any;
5475
5500
  env: any;
5501
+ setup: any;
5476
5502
  };
5477
5503
  type InitSettings$3<T extends TypesGeneric$3 = Types$4> = T['initSettings'];
5478
5504
  type Mapping$1<T extends TypesGeneric$3 = Types$4> = T['mapping'];
5479
5505
  type Env$3<T extends TypesGeneric$3 = Types$4> = T['env'];
5506
+ type SetupOptions$2<T extends TypesGeneric$3 = Types$4> = T['setup'];
5480
5507
  interface Instance$4<T extends TypesGeneric$3 = Types$4> {
5481
5508
  config: Config$6<T>;
5482
5509
  queuePush?: Events;
@@ -5488,6 +5515,7 @@ interface Instance$4<T extends TypesGeneric$3 = Types$4> {
5488
5515
  batches?: BatchRegistry<Mapping$1<T>>;
5489
5516
  type?: string;
5490
5517
  env?: Env$3<T>;
5518
+ setup?: SetupFn<Config$6<T>, Env$3<T>>;
5491
5519
  init?: InitFn$1<T>;
5492
5520
  push: PushFn<T>;
5493
5521
  pushBatch?: PushBatchFn<T>;
@@ -5521,6 +5549,11 @@ interface Config$6<T extends TypesGeneric$3 = Types$4> {
5521
5549
  queue?: boolean;
5522
5550
  /** Defer destination initialization until these collector events fire (e.g., `['consent']`). */
5523
5551
  require?: string[];
5552
+ /**
5553
+ * Provisioning options for `walker setup`. `boolean | object`.
5554
+ * Triggered only by explicit CLI invocation; never automatic.
5555
+ */
5556
+ setup?: boolean | SetupOptions$2<T>;
5524
5557
  /** Transformer chain to run after collector processing but before this destination. */
5525
5558
  before?: Next;
5526
5559
  /** Transformer chain to run after destination push completes. Push response available at ingest._response. */
@@ -5933,20 +5966,22 @@ interface BaseEnv$1 {
5933
5966
  }
5934
5967
  /**
5935
5968
  * Type bundle for source generics.
5936
- * Groups Settings, Mapping, Push, Env, and InitSettings into a single type parameter.
5969
+ * Groups Settings, Mapping, Push, Env, InitSettings, and Setup into a single type parameter.
5937
5970
  *
5938
5971
  * @template S - Settings configuration type
5939
5972
  * @template M - Mapping configuration type
5940
5973
  * @template P - Push function signature (flexible to support HTTP handlers, etc.)
5941
5974
  * @template E - Environment dependencies type
5942
5975
  * @template I - InitSettings configuration type (user input)
5976
+ * @template U - Setup options type (provisioning options for `walker setup`)
5943
5977
  */
5944
- interface Types$1<S = unknown, M = unknown, P = Fn$3, E = BaseEnv$1, I = S> {
5978
+ interface Types$1<S = unknown, M = unknown, P = Fn$3, E = BaseEnv$1, I = S, U = unknown> {
5945
5979
  settings: S;
5946
5980
  initSettings: I;
5947
5981
  mapping: M;
5948
5982
  push: P;
5949
5983
  env: E;
5984
+ setup: U;
5950
5985
  }
5951
5986
  /**
5952
5987
  * Generic constraint for Types - ensures T has required properties for indexed access
@@ -5957,11 +5992,13 @@ type TypesGeneric$1 = {
5957
5992
  mapping: any;
5958
5993
  push: any;
5959
5994
  env: any;
5995
+ setup: any;
5960
5996
  };
5961
5997
  type InitSettings$1<T extends TypesGeneric$1 = Types$1> = T['initSettings'];
5962
5998
  type Mapping<T extends TypesGeneric$1 = Types$1> = T['mapping'];
5963
5999
  type Push<T extends TypesGeneric$1 = Types$1> = T['push'];
5964
6000
  type Env$1<T extends TypesGeneric$1 = Types$1> = T['env'];
6001
+ type SetupOptions$1<T extends TypesGeneric$1 = Types$1> = T['setup'];
5965
6002
  interface Config$2<T extends TypesGeneric$1 = Types$1> extends Config<Mapping<T>> {
5966
6003
  /** Implementation-specific configuration passed to the init function. */
5967
6004
  settings?: InitSettings$1<T>;
@@ -5975,6 +6012,11 @@ interface Config$2<T extends TypesGeneric$1 = Types$1> extends Config<Mapping<T>
5975
6012
  primary?: boolean;
5976
6013
  /** Defer source initialization until these collector events fire (e.g., `['consent']`). */
5977
6014
  require?: string[];
6015
+ /**
6016
+ * Provisioning options for `walker setup`. `boolean | object`.
6017
+ * Triggered only by explicit CLI invocation; never automatic.
6018
+ */
6019
+ setup?: boolean | SetupOptions$1<T>;
5978
6020
  /**
5979
6021
  * Ingest metadata extraction mapping.
5980
6022
  * Extracts values from raw request objects (Express req, Lambda event, etc.)
@@ -5990,13 +6032,38 @@ interface Config$2<T extends TypesGeneric$1 = Types$1> extends Config<Mapping<T>
5990
6032
  ingest?: Data;
5991
6033
  /** Completely skip this source — no init, no event capture. */
5992
6034
  disabled?: boolean;
6035
+ /**
6036
+ * Init lifecycle flag. Set by the collector to `true` after `Instance.init()`
6037
+ * has been called. Used together with `require` to gate `on()` delivery:
6038
+ * lifecycle events are queued in `Instance.queueOn` until both
6039
+ * `config.init === true` and `config.require` is empty/absent, then replayed.
6040
+ */
6041
+ init?: boolean;
5993
6042
  }
5994
6043
  interface Instance$1<T extends TypesGeneric$1 = Types$1> {
5995
6044
  type: string;
5996
6045
  config: Config$2<T>;
6046
+ setup?: SetupFn<Config$2<T>, Env$1<T>>;
5997
6047
  push: Push<T>;
5998
6048
  destroy?: DestroyFn<Config$2<T>, Env$1<T>>;
5999
6049
  on?(event: Types$3, context?: unknown): void | boolean | Promise<void | boolean>;
6050
+ /**
6051
+ * Optional setup hook. Called by the collector eagerly after all source
6052
+ * factories have run, regardless of `config.require`. Use for prep work
6053
+ * such as draining a pre-init window queue or attaching DOM listeners.
6054
+ * The collector still gates `on()` delivery, and `Collector.push`
6055
+ * enforces `allowed`/consent at the destination layer.
6056
+ */
6057
+ init?: () => void | Promise<void>;
6058
+ /**
6059
+ * Lifecycle event queue. Populated by `onApply` when the source is not
6060
+ * yet started (`config.init !== true` or `config.require` non-empty).
6061
+ * Flushed by the collector when the source becomes started.
6062
+ */
6063
+ queueOn?: Array<{
6064
+ type: Types$3;
6065
+ data: unknown;
6066
+ }>;
6000
6067
  }
6001
6068
  /**
6002
6069
  * Context provided to source init function.
@@ -6036,24 +6103,32 @@ interface InitSources {
6036
6103
  interface BaseEnv {
6037
6104
  [key: string]: unknown;
6038
6105
  }
6039
- interface Types<S = unknown, E = BaseEnv, I = S> {
6106
+ interface Types<S = unknown, E = BaseEnv, I = S, U = unknown> {
6040
6107
  settings: S;
6041
6108
  initSettings: I;
6042
6109
  env: E;
6110
+ setup: U;
6043
6111
  }
6044
6112
  type TypesGeneric = {
6045
6113
  settings: any;
6046
6114
  initSettings: any;
6047
6115
  env: any;
6116
+ setup: any;
6048
6117
  };
6049
6118
  type Settings<T extends TypesGeneric = Types> = T['settings'];
6050
6119
  type InitSettings<T extends TypesGeneric = Types> = T['initSettings'];
6051
6120
  type Env<T extends TypesGeneric = Types> = T['env'];
6121
+ type SetupOptions<T extends TypesGeneric = Types> = T['setup'];
6052
6122
  interface Config$1<T extends TypesGeneric = Types> {
6053
6123
  settings?: InitSettings<T>;
6054
6124
  env?: Env<T>;
6055
6125
  id?: string;
6056
6126
  logger?: Config$5;
6127
+ /**
6128
+ * Provisioning options for `walker setup`. `boolean | object`.
6129
+ * Triggered only by explicit CLI invocation; never automatic.
6130
+ */
6131
+ setup?: boolean | SetupOptions<T>;
6057
6132
  }
6058
6133
  interface Context$1<T extends TypesGeneric = Types> extends Base<Config$1<T>, Env<T>> {
6059
6134
  id: string;
@@ -6067,6 +6142,7 @@ interface Instance<T extends TypesGeneric = Types> {
6067
6142
  get: GetFn;
6068
6143
  set: SetFn;
6069
6144
  delete: DeleteFn;
6145
+ setup?: SetupFn<Config$1<T>, Env<T>>;
6070
6146
  destroy?: DestroyFn<Config$1<T>, Env<T>>;
6071
6147
  }
6072
6148
  type Init<T extends TypesGeneric = Types> = (context: Context$1<Types<Partial<Settings<T>>, Env<T>, InitSettings<T>>>) => Instance<T> | Promise<Instance<T>>;
@@ -6246,7 +6322,8 @@ interface Cache {
6246
6322
  * Represents one deployment target (e.g., web_prod, server_stage).
6247
6323
  * Platform is determined by `config.platform` ('web' | 'server').
6248
6324
  *
6249
- * Variables/definitions cascade: source/destination > flow > root config.
6325
+ * Variables cascade (resolveFlowSettings): step > flow > root config.
6326
+ * "step" applies uniformly to source, destination, transformer, and store.
6250
6327
  */
6251
6328
  interface Flow {
6252
6329
  /** Per-flow configuration: platform, url, settings, bundle. */
@@ -6310,11 +6387,6 @@ interface Flow {
6310
6387
  * Override root variables; overridden by source/destination variables.
6311
6388
  */
6312
6389
  variables?: Flow.Variables;
6313
- /**
6314
- * Flow-level definitions.
6315
- * Extend root definitions; overridden by source/destination definitions.
6316
- */
6317
- definitions?: Flow.Definitions;
6318
6390
  }
6319
6391
  declare namespace Flow {
6320
6392
  /**
@@ -6359,11 +6431,6 @@ declare namespace Flow {
6359
6431
  * Syntax: $var.name
6360
6432
  */
6361
6433
  variables?: Variables;
6362
- /**
6363
- * Reusable configuration definitions.
6364
- * Syntax: $def.name
6365
- */
6366
- definitions?: Definitions;
6367
6434
  /**
6368
6435
  * Data contract definition.
6369
6436
  * Entity → action keyed JSON Schema with additive inheritance.
@@ -6403,23 +6470,17 @@ declare namespace Flow {
6403
6470
  */
6404
6471
  settings?: Settings;
6405
6472
  /**
6406
- * Bundle configuration: NPM packages to include, transitive dependency overrides.
6473
+ * Bundle configuration: NPM packages to include, transitive dependency
6474
+ * overrides, and extra trace includes for server bundles.
6407
6475
  * Consumed by the CLI bundler at build time.
6408
6476
  */
6409
6477
  bundle?: Bundle;
6410
6478
  }
6411
- /** Primitive value types for variables. */
6412
- type Primitive = string | number | boolean;
6413
6479
  /**
6414
- * Variables record type for interpolation.
6415
- * Used at root, flow, source, destination, transformer, and store levels.
6480
+ * Reusable values referenced via `$var.name` (with optional deep paths).
6481
+ * Whole-string references preserve native type; inline interpolation requires scalars.
6416
6482
  */
6417
- type Variables = Record<string, Primitive>;
6418
- /**
6419
- * Definitions record type for reusable configurations.
6420
- * Used at root, flow, source, destination, transformer, and store levels.
6421
- */
6422
- type Definitions = Record<string, unknown>;
6483
+ type Variables = Record<string, unknown>;
6423
6484
  /**
6424
6485
  * Free-form settings bag inside `Flow.Config.settings`.
6425
6486
  * Mirrors the package settings convention (arbitrary keys).
@@ -6428,8 +6489,12 @@ declare namespace Flow {
6428
6489
  /**
6429
6490
  * Bundle configuration for a flow.
6430
6491
  *
6431
- * Groups all build-time bundling concerns: NPM packages to include and
6432
- * transitive dependency overrides. Consumed by the CLI bundler.
6492
+ * Groups all build-time bundling concerns: NPM packages to include,
6493
+ * transitive dependency overrides, and extra trace includes (server only).
6494
+ * Consumed by the CLI bundler.
6495
+ *
6496
+ * The `flow.config.bundle.external` sub-field is no longer supported
6497
+ * (replaced by nft tracing in @walkeros/cli@4.x).
6433
6498
  */
6434
6499
  interface Bundle {
6435
6500
  /** NPM packages to bundle, keyed by package name. */
@@ -6437,7 +6502,7 @@ declare namespace Flow {
6437
6502
  /**
6438
6503
  * Transitive dependency version pins.
6439
6504
  *
6440
- * Maps package name version spec. Applied during bundle package install
6505
+ * Maps package name to version spec. Applied during bundle package install
6441
6506
  * to force transitive dependencies to a specific version. Useful for
6442
6507
  * resolving conflicts between packages that depend on incompatible
6443
6508
  * versions of a shared dependency.
@@ -6450,6 +6515,17 @@ declare namespace Flow {
6450
6515
  * ```
6451
6516
  */
6452
6517
  overrides?: Record<string, string>;
6518
+ /**
6519
+ * Extra paths the bundler must include in the trace output.
6520
+ *
6521
+ * Each entry is either a literal path or a glob (matched via picomatch),
6522
+ * resolved against the bundler's install root. Use as an escape hatch
6523
+ * when the file tracer cannot statically discover an asset (e.g.,
6524
+ * dynamic require, runtime configuration files).
6525
+ *
6526
+ * Server flows only.
6527
+ */
6528
+ traceInclude?: string[];
6453
6529
  }
6454
6530
  /**
6455
6531
  * Single bundle package entry.
@@ -6545,11 +6621,6 @@ declare namespace Flow {
6545
6621
  * Overrides flow and root variables.
6546
6622
  */
6547
6623
  variables?: Variables;
6548
- /**
6549
- * Source-level definitions (highest priority in cascade).
6550
- * Overrides flow and root definitions.
6551
- */
6552
- definitions?: Definitions;
6553
6624
  /**
6554
6625
  * Named examples for testing and documentation.
6555
6626
  * Stripped during flow resolution (not included in bundles).
@@ -6597,8 +6668,6 @@ declare namespace Flow {
6597
6668
  cache?: Cache;
6598
6669
  /** Destination-level variables (highest priority in cascade). */
6599
6670
  variables?: Variables;
6600
- /** Destination-level definitions (highest priority in cascade). */
6601
- definitions?: Definitions;
6602
6671
  /**
6603
6672
  * Named examples for testing and documentation.
6604
6673
  * Stripped during flow resolution.
@@ -6643,8 +6712,6 @@ declare namespace Flow {
6643
6712
  cache?: Cache;
6644
6713
  /** Transformer-level variables (highest priority in cascade). */
6645
6714
  variables?: Variables;
6646
- /** Transformer-level definitions (highest priority in cascade). */
6647
- definitions?: Definitions;
6648
6715
  /**
6649
6716
  * Named examples for testing and documentation.
6650
6717
  * Stripped during flow resolution.
@@ -6669,8 +6736,6 @@ declare namespace Flow {
6669
6736
  env?: unknown;
6670
6737
  /** Store-level variables (highest priority in cascade). */
6671
6738
  variables?: Variables;
6672
- /** Store-level definitions (highest priority in cascade). */
6673
- definitions?: Definitions;
6674
6739
  /**
6675
6740
  * Named examples for testing and documentation.
6676
6741
  * Stripped during flow resolution.